@dodobrat/react-ui-kit
Version:
Simple React Component Library
6 lines • 153 kB
JavaScript
Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("prop-types"),n=require("react-dom");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=r(e),i=o(e),l=r(t),s=r(n),d=function(){return(d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function c(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function u(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function f(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}var m,p={exports:{}};
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/m=p,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var a=typeof o;if("string"===a||"number"===a)n.push(o);else if(Array.isArray(o)){if(o.length){var i=t.apply(null,o);i&&n.push(i)}}else if("object"===a)if(o.toString===Object.prototype.toString)for(var l in o)e.call(o,l)&&o[l]&&n.push(l);else n.push(o.toString())}}return n.join(" ")}m.exports?(t.default=t,m.exports=t):window.classNames=t}();var v=p.exports,h=a.default.forwardRef((function(t,n){var r=t.className,o=t.onToggle,i=void 0===o?null:o,l=t.children,s=c(t,["className","onToggle","children"]),u=function(e){var t;return"Collapse"===(null===(t=null==e?void 0:e.type)||void 0===t?void 0:t.displayName)},f=e.useState(a.default.Children.toArray(l).reduce((function(e,t){var n,r;return u(t)&&(e[""+t.key.toString().replace(".","collapse_")]=null===(r=null===(n=t.props)||void 0===n?void 0:n.isCollapsed)||void 0===r||r),e}),{})),m=f[0],p=f[1],h=a.default.Children.map(l,(function(e,t){return u(e)?d(d({},e),{props:d(d(d({},s),e.props),{isCollapsed:m["collapse_"+t],onToggle:function(n){var r,o;null===(o=null===(r=e.props)||void 0===r?void 0:r.onToggle)||void 0===o||o.call(r,!n),function(e,t){for(var n=[],r=0,o=Object.keys(m);r<o.length;r++){var a=o[r];a==="collapse_"+e?n.push({key:a,value:t}):n.push({key:a,value:!0})}var l=n.reduce((function(e,t){return e[t.key]=t.value,e}),{});p(l),i&&i(l)}(t,!n)}})}):e}));return a.default.createElement("div",d({"data-testid":"Accordion",className:v("dui__accordion",r)},s,{ref:n}),h)}));function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function b(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,E(e,t)}function _(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var y=!1,x="production"!==process.env.NODE_ENV?l.default.oneOfType([l.default.number,l.default.shape({enter:l.default.number,exit:l.default.number,appear:l.default.number}).isRequired]):null,C="production"!==process.env.NODE_ENV?l.default.oneOfType([l.default.string,l.default.shape({enter:l.default.string,exit:l.default.string,active:l.default.string}),l.default.shape({enter:l.default.string,enterDone:l.default.string,enterActive:l.default.string,exit:l.default.string,exitDone:l.default.string,exitActive:l.default.string})]):null,k=a.default.createContext(null),N=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o="exited",r.appearStatus="entering"):o="entered":o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}w(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),"entering"===t?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[s.default.findDOMNode(this),r],a=o[0],i=o[1],l=this.getTimeouts(),d=r?l.appear:l.enter;!e&&!n||y?this.safeSetState({status:"entered"},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:"entering"},(function(){t.props.onEntering(a,i),t.onTransitionEnd(d,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(a,i)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:s.default.findDOMNode(this);t&&!y?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:s.default.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=b(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a.default.createElement(k.Provider,{value:null},"function"==typeof n?n(e,r):a.default.cloneElement(a.default.Children.only(n),r))},t}(a.default.Component);function L(){}N.contextType=k,N.propTypes="production"!==process.env.NODE_ENV?{nodeRef:l.default.shape({current:"undefined"==typeof Element?l.default.any:function(e,t,n,r,o,a){var i=e[t];return l.default.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,a)}}),children:l.default.oneOfType([l.default.func.isRequired,l.default.element.isRequired]).isRequired,in:l.default.bool,mountOnEnter:l.default.bool,unmountOnExit:l.default.bool,appear:l.default.bool,enter:l.default.bool,exit:l.default.bool,timeout:function(e){var t=x;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.apply(void 0,[e].concat(r))},addEndListener:l.default.func,onEnter:l.default.func,onEntering:l.default.func,onEntered:l.default.func,onExit:l.default.func,onExiting:l.default.func,onExited:l.default.func}:{},N.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:L,onEntering:L,onEntered:L,onExit:L,onExiting:L,onExited:L},N.UNMOUNTED="unmounted",N.EXITED="exited",N.ENTERING="entering",N.ENTERED="entered",N.EXITING="exiting";var R=N,S=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},O=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=_(n.className,r):n.setAttribute("class",_(n.className&&n.className.baseVal||"",r)));var n,r}))},I=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],a=r[1];t.removeClasses(o,"exit"),t.addClass(o,a?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],a=r[1]?"appear":"enter";t.addClass(o,a,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],a=r[1]?"appear":"enter";t.removeClasses(o,a),t.addClass(o,a,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}w(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,S(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,a=n.done;this.appliedClasses[t]={},r&&O(e,r),o&&O(e,o),a&&O(e,a)},n.render=function(){var e=this.props;e.classNames;var t=b(e,["classNames"]);return a.default.createElement(R,g({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(a.default.Component);I.defaultProps={classNames:""},I.propTypes="production"!==process.env.NODE_ENV?g({},R.propTypes,{classNames:C,onEnter:l.default.func,onEntering:l.default.func,onEntered:l.default.func,onExit:l.default.func,onExiting:l.default.func,onExited:l.default.func}):{};var T=I,M=function(e){var t=e.classNames,n=e.unmountOnExit,r=void 0===n||n,o=e.timeout,i=void 0===o?550:o,l=e.children,s=c(e,["classNames","unmountOnExit","timeout","children"]);return a.default.createElement(T,d({timeout:i,unmountOnExit:r,classNames:v("dui__anim__collapse-fade collapse-fade",t)},s),l)},z=function(e){var t=e.classNames,n=e.unmountOnExit,r=void 0===n||n,o=e.timeout,i=void 0===o?250:o,l=e.children,s=c(e,["classNames","unmountOnExit","timeout","children"]);return a.default.createElement(T,d({timeout:i,unmountOnExit:r,classNames:v("dui__anim__fade fade",t)},s),l)},D=function(e,t,n,r){var o=100*(n-e)/(t-e);return 0!==r?Math.min(o,100).toFixed(r):Math.min(o,100).toFixed(0)},P=function(e){if(e){document.body.classList.add("no-scroll");var t=document.documentElement.clientWidth,n=window.innerWidth-t;document.body.style.paddingRight=n+"px",document.body.style.overflow="hidden"}else document.body.classList.remove("no-scroll"),document.body.style.paddingRight="0px",document.body.style.overflow="auto"},F=function(e,t){return"button"===e?t.href?(t.target="_blank",t.rel="noopener",t.role="button","a"):e:(null==t?void 0:t.onClick)||(null==t?void 0:t.to)?(t.role="button",e):(null==t?void 0:t.href)?(t.target="_blank",t.rel="noopener","a"):e},W=function(e){var t=d({},e);return"button"===(null==t?void 0:t.as)?t.href&&(t.target="_blank",t.rel="noopener",t.role="button",t.as="a"):(((null==t?void 0:t.onClick)||(null==t?void 0:t.to))&&(t.role="button"),(null==t?void 0:t.href)&&(t.target="_blank",t.rel="noopener",t.as="a")),t},j=function(e,t){console.warn("Unsupported ("+e+") config passed to component! Please use one of the following:"),console.table(t)},A=function(e){return function(t){e.forEach((function(e){"function"==typeof e?e(t):null!=e&&(e.current=t)}))}},B=function(e){var t,n=e.e,r=e.elem,o=null!==(t=r.current)&&void 0!==t?t:r;if(o){n.stopPropagation();var a=o.getBoundingClientRect(),i=document.createElement("div"),l=Math.max(o.clientWidth,o.clientHeight),s=l/2,d=n.clientX-a.left-s,c=n.clientY-a.top-s;o.style.overflow="hidden",i.style.width=i.style.height=l+"px",i.style.left=d+"px",i.style.top=c+"px",i.classList.add("dui__ripple");var u=o.getElementsByClassName("dui__ripple")[0];u&&u.remove(),o.appendChild(i)}},H=function(e,t,n,r){var o=e.getBoundingClientRect(),a={x:0,y:0},i=n.split("-")[0],l=n.split("-")[1],s="top"===i||"bottom"===i,d="left"===i||"right"===i,c="top"===i?"bottom":"bottom"===i?"top":"left"===i?"right":"right"===i?"left":void 0;if(t){var u={top:r,right:document.body.clientWidth-(t.offsetWidth+r),bottom:window.innerHeight-(t.offsetHeight+r),left:r};switch(i){case"left":a.x=o.left-(t.offsetWidth+r),a.y=o.top+(e.offsetHeight-t.offsetHeight)/2;break;case"right":a.x=o.right+r,a.y=o.top+(e.offsetHeight-t.offsetHeight)/2;break;case"bottom":a.x=o.left+(e.offsetWidth-t.offsetWidth)/2,a.y=o.bottom+r;break;default:a.x=o.left+(e.offsetWidth-t.offsetWidth)/2,a.y=o.top-(t.offsetHeight+r)}switch(l){case"left":a.x=o.left;break;case"right":a.x=o.left+e.offsetWidth-t.offsetWidth;break;case"top":a.y=o.top;break;case"bottom":a.y=o.top+e.offsetHeight-t.offsetHeight}"top"===i&&a.y<u.top&&(a.y=o.bottom+r,c="top"),"bottom"===i&&a.y>u.bottom&&(a.y=o.top-(t.offsetHeight+r),c="bottom"),"left"===i&&a.x<u.left&&(a.x=o.right+r,c="left"),"right"===i&&a.x>u.right&&(a.x=o.left-(t.offsetWidth+r),c="right"),s&&(a.x<u.left&&(a.x=Math.min(u.left,o.right)),a.x>u.right&&(a.x=Math.max(u.right,o.left-t.offsetWidth+r))),d&&(a.y<u.top&&(a.y=Math.min(u.top,o.bottom)),a.y>u.bottom&&(a.y=Math.max(u.bottom,o.top-t.offsetHeight+r))),t.style.top=a.y+"px",t.style.left=a.x+"px",t.style.transformOrigin=""+c}},V=!("undefined"==typeof window||!window.document||!window.document.createElement);var G=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M0 0h24v24H0z"}),i.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:2},i.createElement("path",{d:"M2 11.914L12 22l10-10.086",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 22V2"}))))})),U=i.memo(G);var K=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M24 0v24H0V0z"}),i.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:2},i.createElement("path",{d:"M12.086 2L2 12l10.086 10",strokeLinejoin:"round"}),i.createElement("path",{d:"M2 12h20"}))))})),Y=i.memo(K);var X=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M0 24V0h24v24z"}),i.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:2},i.createElement("path",{d:"M11.914 22L22 12 11.914 2",strokeLinejoin:"round"}),i.createElement("path",{d:"M22 12H2"}))))})),q=i.memo(X);var Z=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M24 24H0V0h24z"}),i.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:2},i.createElement("path",{d:"M22 12.086L12 2 2 12.086",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 2v20"}))))})),J=i.memo(Z);var $=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M0 0h24v24H0z"}),i.createElement("path",{d:"M2 22V4h20v18zM17 3V2h1v1zM6 3V2h1v1z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2}),i.createElement("path",{stroke:"currentColor",strokeWidth:2,d:"M2 9.5h20"})))})),Q=i.memo($);var ee=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M0 0h24v24H0z"}),i.createElement("path",{d:"M2 7l10 10L22 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})))})),te=i.memo(ee);var ne=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M24 0v24H0V0z"}),i.createElement("path",{d:"M17 2L7 12l10 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})))})),re=i.memo(ne);var oe=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M0 24V0h24v24z"}),i.createElement("path",{d:"M7 22l10-10L7 2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})))})),ae=i.memo(oe);var ie=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M24 24H0V0h24z"}),i.createElement("path",{d:"M22 17L12 7 2 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})))})),le=i.memo(ie);var se=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M0 0h24v24H0z"}),i.createElement("path",{d:"M22 4.921L7.842 19.079 2 13.237",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})))})),de=i.memo(se);var ce=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{transform:"translate(-135 -234)",fill:"none"},i.createElement("path",{d:"M159 234v24h-24v-24z"}),i.createElement("circle",{cx:10,cy:10,r:10,transform:"translate(137 236)",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2}),i.createElement("path",{d:"M151 243.169l-5.663 5.663-2.337-2.337",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})))})),ue=i.memo(ce);var fe=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{transform:"translate(-315 -134)",fill:"none"},i.createElement("path",{d:"M315 134h24v24h-24z"}),i.createElement("circle",{cx:10,cy:10,r:10,transform:"translate(317 136)",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2}),i.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:2,d:"M327 140v6M330.83 149.214L327 146"})))})),me=i.memo(fe);var pe=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M0 0h24v24H0z"}),i.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2},i.createElement("path",{d:"M2 2l10 10L22 2M2 22l10-10 10 10"}))))})),ve=i.memo(pe);var he=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{transform:"translate(-99 -234)",fill:"none"},i.createElement("path",{d:"M123 234v24H99v-24z"}),i.createElement("circle",{cx:10,cy:10,r:10,transform:"translate(101 236)",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2}),i.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:2},i.createElement("path",{d:"M107 242l8 8M107 250l8-8"}))))})),ge=i.memo(he);var be=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M0 0h24v24H0z"}),i.createElement("path",{d:"M22 11.947V22H2V2h15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2}),i.createElement("path",{d:"M22 4.5L10.673 15.827 6 11.154",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})))})),Ee=i.memo(be);var we=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M0 0h24v24H0z"}),i.createElement("g",{transform:"translate(-156 -81)",stroke:"currentColor",strokeLinecap:"round",strokeWidth:2},i.createElement("path",{d:"M168 88.5v6M168 97.5v.5"}),i.createElement("circle",{cx:10,cy:10,r:10,transform:"translate(158 83)",strokeLinejoin:"round"}))))})),_e=i.memo(we);var ye=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M0 0h24v24H0z"}),i.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2},i.createElement("path",{d:"M2 12l10 10 10-10M2 2l10 10L22 2"}))))})),xe=i.memo(ye);var Ce=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M24 0v24H0V0z"}),i.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2},i.createElement("path",{d:"M12 2L2 12l10 10M22 2L12 12l10 10"}))))})),ke=i.memo(Ce);var Ne=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M0 24V0h24v24z"}),i.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2},i.createElement("path",{d:"M12 22l10-10L12 2M2 22l10-10L2 2"}))))})),Le=i.memo(Ne);var Re=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M24 24H0V0h24z"}),i.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2},i.createElement("path",{d:"M22 12L12 2 2 12M22 22L12 12 2 22"}))))})),Se=i.memo(Re);var Oe=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("g",{transform:"translate(-314.965 -84)",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2},i.createElement("path",{d:"M332.627 91.657l4.349 4.349h0l-4.35 4.348a8 8 0 01-11.313 0l-4.349-4.348h0l4.35-4.35a8 8 0 0111.313 0z",strokeLinecap:"round"}),i.createElement("circle",{cx:1.5,cy:1.5,r:1.5,transform:"translate(325.5 94.5)"})),i.createElement("path",{d:"M24 0v24H0V0z"})))})),Ie=i.memo(Oe);var Te=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{transform:"translate(-315 -84)",fill:"none"},i.createElement("path",{d:"M339 84v24h-24V84z"}),i.createElement("path",{d:"M332.663 91.657l4.349 4.349h0l-4.35 4.348a8 8 0 01-11.313 0L317 96.006h0l4.35-4.35a8 8 0 0111.313 0z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2}),i.createElement("circle",{cx:1.5,cy:1.5,r:1.5,transform:"translate(325.535 94.5)",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2}),i.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:2,d:"M337.011 86.011l-20 20"})))})),Me=i.memo(Te);var ze=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M0 0h24v24H0z"}),i.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:2},i.createElement("path",{d:"M2 4h20M2 12h20M2 20h20"}))))})),De=i.memo(ze);var Pe=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M24 24H0V0h24z"}),i.createElement("g",{transform:"rotate(180 90 52.5)",stroke:"currentColor",strokeLinecap:"round",strokeWidth:2},i.createElement("path",{d:"M168 88.5v6M168 97.5v.5"}),i.createElement("circle",{cx:10,cy:10,r:10,transform:"translate(158 83)",strokeLinejoin:"round"}))))})),Fe=i.memo(Pe);var We=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M24 0v24H0V0z"}),i.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 10h20v12H2z"}),i.createElement("path",{d:"M13 18.5h-2l1-3a1 1 0 111-1 1 1 0 01-1 1l1 3zM19 10H5V6a4.005 4.005 0 014-4h6a4 4 0 014 4v4z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})))})),je=i.memo(We);var Ae=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M24 0v24H0V0z"}),i.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 10h20v12H2z"}),i.createElement("path",{d:"M13 18.5h-2l1-3a1 1 0 111-1 1 1 0 01-1 1l1 3z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2}),i.createElement("path",{d:"M5 9.625V6a4 4 0 014-4h6a4 4 0 014 4",stroke:"currentColor",strokeLinecap:"round",strokeWidth:2})))})),Be=i.memo(Ae);var He=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M24 0v24H0V0z"}),i.createElement("path",{d:"M2 4.5h20v.026L12.016 12.5z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2}),i.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 4.5h20v15H2z"})))})),Ve=i.memo(He);var Ge=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M2 8.001h0v-.02l9.984-5.98 10.016 6h0v.027l-9.984 7.973z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2}),i.createElement("path",{d:"M22 22H2V8l10.016 8L22 8.026V22z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2}),i.createElement("path",{d:"M24 0v24H0V0z"})))})),Ue=i.memo(Ge);var Ke=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M0 0h24v24H0z"}),i.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:2,d:"M22 12H2"})))})),Ye=i.memo(Ke);var Xe=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M24 0v24H0V0z"}),i.createElement("path",{d:"M11.982 22a10 10 0 01-9.965-9.158 6 6 0 105.476-9.78A9.9 9.9 0 0111.982 2a10 10 0 110 20z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})))})),qe=i.memo(Xe);var Ze=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{transform:"rotate(90 160.5 97.5)",fill:"none"},i.createElement("path",{d:"M87 234v24H63v-24z"}),i.createElement("circle",{cx:1.5,cy:1.5,r:1.5,transform:"rotate(90 -80 156.5)",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3}),i.createElement("circle",{cx:1.5,cy:1.5,r:1.5,transform:"rotate(90 -84 160.5)",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3}),i.createElement("circle",{cx:1.5,cy:1.5,r:1.5,transform:"rotate(90 -88 164.5)",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3})))})),Je=i.memo(Ze);var $e=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{transform:"translate(-63 -234)",fill:"none"},i.createElement("path",{d:"M87 234v24H63v-24z"}),i.createElement("circle",{cx:1.5,cy:1.5,r:1.5,transform:"rotate(90 -80 156.5)",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3}),i.createElement("circle",{cx:1.5,cy:1.5,r:1.5,transform:"rotate(90 -84 160.5)",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3}),i.createElement("circle",{cx:1.5,cy:1.5,r:1.5,transform:"rotate(90 -88 164.5)",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3})))})),Qe=i.memo($e);var et=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24.814 24.821","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M.814 0h24v24h-24z"}),i.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.057 1.929l2.828 2.828L8.743 18.9 5.915 16.07z"}),i.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.057 1.929l2.828 2.828-2.828 2.829-2.828-2.829zM2.828 21.993l1.414-4.243L7.07 20.58z"})))})),tt=i.memo(et);var nt=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M0 0h24v24H0z"}),i.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:2},i.createElement("path",{d:"M12 2v20M22 12H2"}))))})),rt=i.memo(nt);var ot=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M15 15l7 7zm-10.7-.09a7.5 7.5 0 115.3 2.2 7.5 7.5 0 01-5.3-2.2z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2}),i.createElement("path",{d:"M0 0h24v24H0z"})))})),at=i.memo(ot);var it=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{transform:"translate(-207 -134)",fill:"none"},i.createElement("path",{d:"M231 134v24h-24v-24z"}),i.createElement("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,d:"M218 136h2v2h-2zM218 154h2v2h-2zM209 145h2v2h-2zM227 145h2v2h-2zM225.586 138l1.414 1.414-1.414 1.414-1.414-1.414zM212.414 151.172l1.414 1.414-1.414 1.414-1.414-1.414zM212.414 138l1.414 1.414-1.414 1.414-1.414-1.414zM225.586 151.172l1.414 1.414-1.414 1.414-1.414-1.414z"}),i.createElement("circle",{cx:8,cy:8,r:8,transform:"translate(211 138)",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2}),i.createElement("circle",{cx:2.5,cy:2.5,r:2.5,transform:"translate(216.5 143.5)",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})))})),lt=i.memo(it);var st=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M9.64 19.646a8.019 8.019 0 01-5.287-5.287L2 12.005l2.348-2.348a8.018 8.018 0 015.309-5.309L12.005 2l2.354 2.353a8.019 8.019 0 015.287 5.287l2.365 2.365-2.37 2.37a8.018 8.018 0 01-5.266 5.266l-2.37 2.37z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2}),i.createElement("path",{d:"M8.282 19.075H4.93V15.73a8.02 8.02 0 010-7.477V4.925h3.325a8.018 8.018 0 017.507 0h3.321V8.25a8.02 8.02 0 010 7.477v3.344h-3.354a8.017 8.017 0 01-7.448 0z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2}),i.createElement("path",{d:"M0 0h24v24H0z"})))})),dt=i.memo(st);var ct=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M0 0h24v24H0z"}),i.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 5h14v17H5z"}),i.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:2,d:"M5 2h14M9 10v8M15 10v8"})))})),ut=i.memo(ct);var ft=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{transform:"translate(-207 -184)",fill:"none"},i.createElement("path",{d:"M231 184v24h-24v-24z"}),i.createElement("ellipse",{cx:4,cy:4.5,rx:4,ry:4.5,transform:"translate(215 186)",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2}),i.createElement("path",{d:"M229 206h-20c0-4.412 4.486-8 10-8s10 3.588 10 8z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})))})),mt=i.memo(ft);var pt=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M24 0v24H0V0z"}),i.createElement("g",{transform:"translate(-207 -180.02)",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2},i.createElement("ellipse",{cx:3,cy:3.5,rx:3,ry:3.5,transform:"translate(214 186.02)"}),i.createElement("path",{d:"M225 202.02h-16c0-3.86 3.589-7 8-7s8 3.14 8 7z"})),i.createElement("path",{d:"M22 22h-4c0-3.193-2.467-5.98-6-6.779A9.084 9.084 0 0114 15c4.411 0 8 3.14 8 7zm-8-9a2.767 2.767 0 01-2-.891 3.9 3.9 0 000-5.218A2.766 2.766 0 0114 6a3.283 3.283 0 013 3.5 3.283 3.283 0 01-3 3.5z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})))})),vt=i.memo(pt);var ht=i.forwardRef((function(e,t){var n=e.title,r=e.titleId,o=c(e,["title","titleId"]);return i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:t,"aria-labelledby":r},o),n?i.createElement("title",{id:r},n):null,i.createElement("g",{fill:"none"},i.createElement("path",{d:"M0 0h24v24H0z"}),i.createElement("path",{d:"M12 2l10 20H2z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2}),i.createElement("path",{d:"M12 10.327v4M12 17.463v.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:2})))})),gt=i.memo(ht),bt=function(t,n){var r=e.useState((function(){if(V)try{var e=window.localStorage.getItem(t);return e?JSON.parse(e):n}catch(e){return console.log(e),n}})),o=r[0],a=r[1];return[o,function(e){if(V)try{var n=e instanceof Function?e(o):e;a(n),window.localStorage.setItem(t,JSON.stringify(n))}catch(e){console.log(e)}}]},Et=function(){var t=window.matchMedia("(prefers-color-scheme: dark)"),n=e.useState(t.matches),r=n[0],o=n[1];return e.useEffect((function(){if(V){var e=function(){t.matches?o(!0):o(!1)};return t.addEventListener("change",e),function(){t.removeEventListener("change",e)}}}),[]),r},wt=function(t){var n=t.systemPreferenceFirst,r=void 0===n||n,o=t.element,a=void 0===o?document.documentElement:o,i=t.localStorageKey,l=void 0===i?"dui_dark_theme":i,s=Et(),d=bt(l,localStorage[l]?localStorage[l]:!!r&&s),c=d[0],u=d[1],f=e.useState(a)[0];return e.useEffect((function(){if(V)return!localStorage[l]&&r?(f.setAttribute("dark-theme",s.toString()),function(){f.removeAttribute("dark-theme")}):void 0}),[s,f]),e.useEffect((function(){if(V)return f.setAttribute("dark-theme",c),function(){f.removeAttribute("dark-theme")}}),[c,f]),[c,u]},_t=e.createContext(null),yt=function(){var t=e.useContext(_t);if(void 0===t)throw new Error("useConfig must be used within a ConfigContextProvider");return t},xt=["none","default","primary","secondary","success","warning","info","danger"],Ct=["none","subtle","light","medium","strong","interstellar"],kt=["default","flat","rounded"],Nt=["xs","sm","md","lg","xl"],Lt=["xs","sm","md","lg","xl","fhd","fluid"],Rt=["xs","sm","md","lg","xl","fullscreen"],St=["stretch","flex-start","flex-end","center","baseline"],Ot=["flex-start","flex-end","center","space-between","space-around","space-evenly"],It=["row","row-reverse","column","column-reverse"],Tt=["nowrap","wrap","wrap-reverse"],Mt=u(u([],Array.from(new Array(12),(function(e,t){return""+(t+1)}))),["auto","reset"]),zt=["base","xs","sm","md","lg","xl","fhd"],Dt=function(e,t){var n,r=t.isLoading,o=t.disableWhileLoading;return v(((n={})[e+"--loading"]=r,n[e+"--loading-disabled"]=r&&o,n))},Pt=function(e,t){var n,r=t.disabled;return v(((n={})[e+"--disabled"]=r,n))},Ft=function(e,t){var n,r=t.seamless;return v(((n={})[e+"--seamless"]=r,n))},Wt=function(e){var t,n;void 0===e&&(e={});for(var r=function(e){return console.warn('Invalid prop "'+e[0]+'" with value '+JSON.stringify(e[1])+" supplied to component.")},o=new Map([["pigment",xt],["pigmentColor",xt],["hoverPigment",xt],["activePigment",xt],["elevation",Ct],["flavor",kt],["sizing",Nt],["containerSize",Lt],["drawerSize",Nt],["portalSize",Rt],["align",St],["justify",Ot],["direction",It],["wrap",Tt],["col",Mt],["reset",Mt],["offset",Mt],["offsetRight",Mt]]),a=[],i=0,l=Object.entries(e);i<l.length;i++){var s=l[i];if(s[1]&&"string"==typeof s[1]&&((null===(t=o.get(s[0]))||void 0===t?void 0:t.includes(s[1]))?a.push(s[0]+"--"+s[1]):r(s)),s[1]&&"object"==typeof s[1])for(var d=0,c=Object.entries(s[1]);d<c.length;d++){var u=c[d];zt.includes(u[0])?u[1]&&"string"==typeof u[1]&&(null===(n=o.get(s[0]))||void 0===n?void 0:n.includes(u[1]))&&a.push(s[0]+"--"+u[0]+"--"+u[1]):r(s)}}return a.join(" ")},jt=function(e,t){var n,r=t.equalDimensions,o=t.iconStart,a=t.iconEnd,i=t.wide,l=t.unWrapText,s=t.leftAlignContent,d=t.active,c=t.keyboardOnlyFocusRing,u=t.spongy,f=t.vertical;return v(((n={})[e+"--equal"]=r,n[e+"--icon-start"]=o,n[e+"--icon-end"]=a,n[e+"--wide"]=i,n[e+"--no-wrap"]=l,n[e+"--left-align"]=s,n[e+"--active"]=d,n[e+"--focus-ring"]=!c,n[e+"--still"]=!u,n[e+"--vertical"]=f,n))},At=function(e,t){var n;if(e)return"object"==typeof e?null===(n=Object.entries)||void 0===n?void 0:n.call(Object,e).map((function(e){var n;return Nt.includes(null===(n=null==e?void 0:e[1])||void 0===n?void 0:n.toString())?"dui__flex--"+t+"-"+e[0]+"-"+e[1]:(j(t,{object:"{xs: 'sm', sm: 'md', md: 'xl' ....}",string:"xs, sm, md, none ..."}),"")})).join(" "):"string"!=typeof e||!Nt.includes(e)&&"none"!==e?(j(t,{object:"{xs: 'sm', sm: 'md', md: 'xl' ....}",string:"xs, sm, md, none ..."}),""):"dui__flex--"+t+"-"+e},Bt=a.default.forwardRef((function(t,n){var r,o,i,l,s,u,f,m,p,h,g,b=yt().appConfig.config,E=t.className,w=t.pigment,_=void 0===w?null!==(r=b.alertPigment)&&void 0!==r?r:"danger":w,y=t.pigmentColor,x=void 0===y?null!==(o=b.alertPigmentColor)&&void 0!==o?o:null:y,C=t.elevation,k=void 0===C?null!==(i=b.alertElevation)&&void 0!==i?i:"none":C,N=t.flavor,L=void 0===N?null!==(l=b.flavor)&&void 0!==l?l:"default":N,R=t.sizing,S=void 0===R?null!==(s=b.sizing)&&void 0!==s?s:"md":R,O=t.animation,I=void 0===O?null!==(u=b.alertAnimation)&&void 0!==u?u:"collapse-n-fade":O,T=t.isVisible,D=void 0===T||T,P=t.withIcon,F=void 0===P?null===(f=b.alertWithIcon)||void 0===f||f:P,W=t.iconComponent,j=t.isDismissible,H=void 0===j?null!==(m=b.alertIsDismissible)&&void 0!==m&&m:j,V=t.isDismissibleOnClick,G=void 0===V?null===(p=b.alertIsDismissibleOnClick)||void 0===p||p:V,U=t.dismissibleComponent,K=void 0===U?null!==(h=b.alertDismissibleComponent)&&void 0!==h?h:null:U,Y=t.children,X=t.withRipple,q=void 0===X?null!==(g=b.withRipple)&&void 0!==g?g:G:X,Z=t.onPointerDown,J=t.onKeyDown,$=c(t,["className","pigment","pigmentColor","elevation","flavor","sizing","animation","isVisible","withIcon","iconComponent","isDismissible","isDismissibleOnClick","dismissibleComponent","children","withRipple","onPointerDown","onKeyDown"]),Q={pigment:_,pigmentColor:x,elevation:k,flavor:L,sizing:S},ee="dui__alert",te=e.useRef(null),ne=e.useState(D),re=ne[0],oe=ne[1],ae=function(){return oe(!1)},ie=function(e){J&&J(e),te.current===document.activeElement&&"Space"===e.code&&(e.preventDefault(),G&&ae())},le=function(e){q&&B({e:e,elem:te}),Z&&Z(e)};e.useEffect((function(){return oe(D),ae}),[D]);var se=function(){return a.default.createElement("div",d({"data-testid":"Alert",className:v(ee,Wt(Q),E),onClick:G?ae:null==t?void 0:t.onClick,role:"alert",tabIndex:G?0:-1,onKeyDown:ie,onPointerDown:le},$,{ref:A([te,n])}),F&&function(e){if(!W)switch(e){case"danger":return a.default.createElement(_e,{className:"dui__alert__icon"});case"warning":return a.default.createElement(gt,{className:"dui__alert__icon"});case"success":return a.default.createElement(Ee,{className:"dui__alert__icon"});default:return a.default.createElement(Fe,{className:"dui__alert__icon"})}return W}(_),a.default.createElement("div",{className:v("dui__alert__content")},Y),H&&a.default.createElement(a.default.Fragment,null,null!=K?K:a.default.createElement(ve,{onClick:ae,className:"dui__icon"})))};switch(I){case"collapse-n-fade":return a.default.createElement(M,{in:re},a.default.createElement("div",null,a.default.createElement(se,null)));case"fade":return a.default.createElement(z,{in:re},a.default.createElement("div",null,a.default.createElement(se,null)));default:return re&&a.default.createElement(se,null)}})),Ht=a.default.forwardRef((function(e,t){var n,r,o,i,l=yt().