@dodobrat/react-ui-kit
Version:
Simple React Component Library
20 lines (18 loc) • 149 kB
JavaScript
import*as e from"react";import t,{useState as n,useEffect as r,createContext as i,useMemo as o,useContext as a,useRef as l,useCallback as s,forwardRef as c,PureComponent as d,useLayoutEffect as u,useReducer as m}from"react";import v from"prop-types";import p from"react-dom";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var f=function(){return(f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function h(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function g(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function b(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 E,w={exports:{}};
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/E=w,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var o=typeof i;if("string"===o||"number"===o)n.push(i);else if(Array.isArray(i)){if(i.length){var a=t.apply(null,i);a&&n.push(a)}}else if("object"===o)if(i.toString===Object.prototype.toString)for(var l in i)e.call(i,l)&&i[l]&&n.push(l);else n.push(i.toString())}}return n.join(" ")}E.exports?(t.default=t,E.exports=t):window.classNames=t}();var _=w.exports,y=t.forwardRef((function(e,r){var i=e.className,o=e.onToggle,a=void 0===o?null:o,l=e.children,s=h(e,["className","onToggle","children"]),c=function(e){var t;return"Collapse"===(null===(t=null==e?void 0:e.type)||void 0===t?void 0:t.displayName)},d=n(t.Children.toArray(l).reduce((function(e,t){var n,r;return c(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}),{})),u=d[0],m=d[1],v=t.Children.map(l,(function(e,t){return c(e)?f(f({},e),{props:f(f(f({},s),e.props),{isCollapsed:u["collapse_"+t],onToggle:function(n){var r,i;null===(i=null===(r=e.props)||void 0===r?void 0:r.onToggle)||void 0===i||i.call(r,!n),function(e,t){for(var n=[],r=0,i=Object.keys(u);r<i.length;r++){var o=i[r];o==="collapse_"+e?n.push({key:o,value:t}):n.push({key:o,value:!0})}var l=n.reduce((function(e,t){return e[t.key]=t.value,e}),{});m(l),a&&a(l)}(t,!n)}})}):e}));return t.createElement("div",f({"data-testid":"Accordion",className:_("dui__accordion",i)},s,{ref:r}),v)}));function k(){return(k=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 C(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,N(e,t)}function L(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var I=!1,O="production"!==process.env.NODE_ENV?v.oneOfType([v.number,v.shape({enter:v.number,exit:v.number,appear:v.number}).isRequired]):null,T="production"!==process.env.NODE_ENV?v.oneOfType([v.string,v.shape({enter:v.string,exit:v.string,active:v.string}),v.shape({enter:v.string,enterDone:v.string,enterActive:v.string,exit:v.string,exitDone:v.string,exitActive:v.string})]):null,S=t.createContext(null),R=function(e){function n(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i="exited",r.appearStatus="entering"):i="entered":i=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:i},r.nextCallback=null,r}x(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.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)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.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}},r.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"})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[p.findDOMNode(this),r],o=i[0],a=i[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||I?this.safeSetState({status:"entered"},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:"entering"},(function(){t.props.onEntering(o,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(o,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:p.findDOMNode(this);t&&!I?(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)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.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},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:p.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if("unmounted"===e)return null;var n=this.props,r=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var i=C(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(S.Provider,{value:null},"function"==typeof r?r(e,i):t.cloneElement(t.Children.only(r),i))},n}(t.Component);function z(){}R.contextType=S,R.propTypes="production"!==process.env.NODE_ENV?{nodeRef:v.shape({current:"undefined"==typeof Element?v.any:function(e,t,n,r,i,o){var a=e[t];return v.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,o)}}),children:v.oneOfType([v.func.isRequired,v.element.isRequired]).isRequired,in:v.bool,mountOnEnter:v.bool,unmountOnExit:v.bool,appear:v.bool,enter:v.bool,exit:v.bool,timeout:function(e){var t=O;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.apply(void 0,[e].concat(r))},addEndListener:v.func,onEnter:v.func,onEntering:v.func,onEntered:v.func,onExit:v.func,onExiting:v.func,onExited:v.func}:{},R.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:z,onEntering:z,onEntered:z,onExit:z,onExiting:z,onExited:z},R.UNMOUNTED="unmounted",R.EXITED="exited",R.ENTERING="entering",R.ENTERED="entered",R.EXITING="exiting";var M=R,D=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}))},P=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=L(n.className,r):n.setAttribute("class",L(n.className&&n.className.baseVal||"",r)));var n,r}))},F=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];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),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"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,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}x(n,e);var r=n.prototype;return r.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,D(e,r))},r.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&P(e,r),i&&P(e,i),o&&P(e,o)},r.render=function(){var e=this.props;e.classNames;var n=C(e,["classNames"]);return t.createElement(M,k({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(t.Component);F.defaultProps={classNames:""},F.propTypes="production"!==process.env.NODE_ENV?k({},M.propTypes,{classNames:T,onEnter:v.func,onEntering:v.func,onEntered:v.func,onExit:v.func,onExiting:v.func,onExited:v.func}):{};var W=F,j=function(e){var n=e.classNames,r=e.unmountOnExit,i=void 0===r||r,o=e.timeout,a=void 0===o?550:o,l=e.children,s=h(e,["classNames","unmountOnExit","timeout","children"]);return t.createElement(W,f({timeout:a,unmountOnExit:i,classNames:_("dui__anim__collapse-fade collapse-fade",n)},s),l)},A=function(e){var n=e.classNames,r=e.unmountOnExit,i=void 0===r||r,o=e.timeout,a=void 0===o?250:o,l=e.children,s=h(e,["classNames","unmountOnExit","timeout","children"]);return t.createElement(W,f({timeout:a,unmountOnExit:i,classNames:_("dui__anim__fade fade",n)},s),l)},B=function(e,t,n,r){var i=100*(n-e)/(t-e);return 0!==r?Math.min(i,100).toFixed(r):Math.min(i,100).toFixed(0)},H=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"},V=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},G=function(e){var t=f({},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},U=function(e,t){console.warn("Unsupported ("+e+") config passed to component! Please use one of the following:"),console.table(t)},K=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0},Y=function(e){return function(t){e.forEach((function(e){"function"==typeof e?e(t):null!=e&&(e.current=t)}))}},X=function(e,t){var n;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=function(){clearTimeout(n),e.apply(void 0,r)};clearTimeout(n),n=setTimeout(o,t)}},q=function(e){var t,n=e.e,r=e.elem,i=null!==(t=r.current)&&void 0!==t?t:r;if(i){n.stopPropagation();var o=i.getBoundingClientRect(),a=document.createElement("div"),l=Math.max(i.clientWidth,i.clientHeight),s=l/2,c=n.clientX-o.left-s,d=n.clientY-o.top-s;i.style.overflow="hidden",a.style.width=a.style.height=l+"px",a.style.left=c+"px",a.style.top=d+"px",a.classList.add("dui__ripple");var u=i.getElementsByClassName("dui__ripple")[0];u&&u.remove(),i.appendChild(a)}},Z=function(e,t,n,r){var i=e.getBoundingClientRect(),o={x:0,y:0},a=n.split("-")[0],l=n.split("-")[1],s="top"===a||"bottom"===a,c="left"===a||"right"===a,d="top"===a?"bottom":"bottom"===a?"top":"left"===a?"right":"right"===a?"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(a){case"left":o.x=i.left-(t.offsetWidth+r),o.y=i.top+(e.offsetHeight-t.offsetHeight)/2;break;case"right":o.x=i.right+r,o.y=i.top+(e.offsetHeight-t.offsetHeight)/2;break;case"bottom":o.x=i.left+(e.offsetWidth-t.offsetWidth)/2,o.y=i.bottom+r;break;default:o.x=i.left+(e.offsetWidth-t.offsetWidth)/2,o.y=i.top-(t.offsetHeight+r)}switch(l){case"left":o.x=i.left;break;case"right":o.x=i.left+e.offsetWidth-t.offsetWidth;break;case"top":o.y=i.top;break;case"bottom":o.y=i.top+e.offsetHeight-t.offsetHeight}"top"===a&&o.y<u.top&&(o.y=i.bottom+r,d="top"),"bottom"===a&&o.y>u.bottom&&(o.y=i.top-(t.offsetHeight+r),d="bottom"),"left"===a&&o.x<u.left&&(o.x=i.right+r,d="left"),"right"===a&&o.x>u.right&&(o.x=i.left-(t.offsetWidth+r),d="right"),s&&(o.x<u.left&&(o.x=Math.min(u.left,i.right)),o.x>u.right&&(o.x=Math.max(u.right,i.left-t.offsetWidth+r))),c&&(o.y<u.top&&(o.y=Math.min(u.top,i.bottom)),o.y>u.bottom&&(o.y=Math.max(u.bottom,i.top-t.offsetHeight+r))),t.style.top=o.y+"px",t.style.left=o.x+"px",t.style.transformOrigin=""+d}},J=!("undefined"==typeof window||!window.document||!window.document.createElement);var $=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M0 0h24v24H0z"}),e.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:2},e.createElement("path",{d:"M2 11.914L12 22l10-10.086",strokeLinejoin:"round"}),e.createElement("path",{d:"M12 22V2"}))))})),Q=e.memo($);var ee=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M24 0v24H0V0z"}),e.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:2},e.createElement("path",{d:"M12.086 2L2 12l10.086 10",strokeLinejoin:"round"}),e.createElement("path",{d:"M2 12h20"}))))})),te=e.memo(ee);var ne=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M0 24V0h24v24z"}),e.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:2},e.createElement("path",{d:"M11.914 22L22 12 11.914 2",strokeLinejoin:"round"}),e.createElement("path",{d:"M22 12H2"}))))})),re=e.memo(ne);var ie=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M24 24H0V0h24z"}),e.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:2},e.createElement("path",{d:"M22 12.086L12 2 2 12.086",strokeLinejoin:"round"}),e.createElement("path",{d:"M12 2v20"}))))})),oe=e.memo(ie);var ae=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M0 0h24v24H0z"}),e.createElement("path",{d:"M2 22V4h20v18zM17 3V2h1v1zM6 3V2h1v1z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2}),e.createElement("path",{stroke:"currentColor",strokeWidth:2,d:"M2 9.5h20"})))})),le=e.memo(ae);var se=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M0 0h24v24H0z"}),e.createElement("path",{d:"M2 7l10 10L22 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})))})),ce=e.memo(se);var de=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M24 0v24H0V0z"}),e.createElement("path",{d:"M17 2L7 12l10 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})))})),ue=e.memo(de);var me=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M0 24V0h24v24z"}),e.createElement("path",{d:"M7 22l10-10L7 2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})))})),ve=e.memo(me);var pe=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M24 24H0V0h24z"}),e.createElement("path",{d:"M22 17L12 7 2 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})))})),fe=e.memo(pe);var he=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M0 0h24v24H0z"}),e.createElement("path",{d:"M22 4.921L7.842 19.079 2 13.237",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})))})),ge=e.memo(he);var be=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{transform:"translate(-135 -234)",fill:"none"},e.createElement("path",{d:"M159 234v24h-24v-24z"}),e.createElement("circle",{cx:10,cy:10,r:10,transform:"translate(137 236)",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2}),e.createElement("path",{d:"M151 243.169l-5.663 5.663-2.337-2.337",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})))})),Ee=e.memo(be);var we=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{transform:"translate(-315 -134)",fill:"none"},e.createElement("path",{d:"M315 134h24v24h-24z"}),e.createElement("circle",{cx:10,cy:10,r:10,transform:"translate(317 136)",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2}),e.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:2,d:"M327 140v6M330.83 149.214L327 146"})))})),_e=e.memo(we);var ye=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M0 0h24v24H0z"}),e.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2},e.createElement("path",{d:"M2 2l10 10L22 2M2 22l10-10 10 10"}))))})),ke=e.memo(ye);var Ce=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{transform:"translate(-99 -234)",fill:"none"},e.createElement("path",{d:"M123 234v24H99v-24z"}),e.createElement("circle",{cx:10,cy:10,r:10,transform:"translate(101 236)",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2}),e.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:2},e.createElement("path",{d:"M107 242l8 8M107 250l8-8"}))))})),Ne=e.memo(Ce);var xe=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M0 0h24v24H0z"}),e.createElement("path",{d:"M22 11.947V22H2V2h15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2}),e.createElement("path",{d:"M22 4.5L10.673 15.827 6 11.154",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})))})),Le=e.memo(xe);var Ie=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M0 0h24v24H0z"}),e.createElement("g",{transform:"translate(-156 -81)",stroke:"currentColor",strokeLinecap:"round",strokeWidth:2},e.createElement("path",{d:"M168 88.5v6M168 97.5v.5"}),e.createElement("circle",{cx:10,cy:10,r:10,transform:"translate(158 83)",strokeLinejoin:"round"}))))})),Oe=e.memo(Ie);var Te=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M0 0h24v24H0z"}),e.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2},e.createElement("path",{d:"M2 12l10 10 10-10M2 2l10 10L22 2"}))))})),Se=e.memo(Te);var Re=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M24 0v24H0V0z"}),e.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2},e.createElement("path",{d:"M12 2L2 12l10 10M22 2L12 12l10 10"}))))})),ze=e.memo(Re);var Me=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M0 24V0h24v24z"}),e.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2},e.createElement("path",{d:"M12 22l10-10L12 2M2 22l10-10L2 2"}))))})),De=e.memo(Me);var Pe=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M24 24H0V0h24z"}),e.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2},e.createElement("path",{d:"M22 12L12 2 2 12M22 22L12 12 2 22"}))))})),Fe=e.memo(Pe);var We=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("g",{transform:"translate(-314.965 -84)",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2},e.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"}),e.createElement("circle",{cx:1.5,cy:1.5,r:1.5,transform:"translate(325.5 94.5)"})),e.createElement("path",{d:"M24 0v24H0V0z"})))})),je=e.memo(We);var Ae=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{transform:"translate(-315 -84)",fill:"none"},e.createElement("path",{d:"M339 84v24h-24V84z"}),e.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}),e.createElement("circle",{cx:1.5,cy:1.5,r:1.5,transform:"translate(325.535 94.5)",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2}),e.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:2,d:"M337.011 86.011l-20 20"})))})),Be=e.memo(Ae);var He=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M0 0h24v24H0z"}),e.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:2},e.createElement("path",{d:"M2 4h20M2 12h20M2 20h20"}))))})),Ve=e.memo(He);var Ge=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M24 24H0V0h24z"}),e.createElement("g",{transform:"rotate(180 90 52.5)",stroke:"currentColor",strokeLinecap:"round",strokeWidth:2},e.createElement("path",{d:"M168 88.5v6M168 97.5v.5"}),e.createElement("circle",{cx:10,cy:10,r:10,transform:"translate(158 83)",strokeLinejoin:"round"}))))})),Ue=e.memo(Ge);var Ke=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M24 0v24H0V0z"}),e.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 10h20v12H2z"}),e.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})))})),Ye=e.memo(Ke);var Xe=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M24 0v24H0V0z"}),e.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 10h20v12H2z"}),e.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}),e.createElement("path",{d:"M5 9.625V6a4 4 0 014-4h6a4 4 0 014 4",stroke:"currentColor",strokeLinecap:"round",strokeWidth:2})))})),qe=e.memo(Xe);var Ze=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M24 0v24H0V0z"}),e.createElement("path",{d:"M2 4.5h20v.026L12.016 12.5z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2}),e.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 4.5h20v15H2z"})))})),Je=e.memo(Ze);var $e=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.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}),e.createElement("path",{d:"M22 22H2V8l10.016 8L22 8.026V22z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2}),e.createElement("path",{d:"M24 0v24H0V0z"})))})),Qe=e.memo($e);var et=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M0 0h24v24H0z"}),e.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:2,d:"M22 12H2"})))})),tt=e.memo(et);var nt=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M24 0v24H0V0z"}),e.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})))})),rt=e.memo(nt);var it=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{transform:"rotate(90 160.5 97.5)",fill:"none"},e.createElement("path",{d:"M87 234v24H63v-24z"}),e.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}),e.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}),e.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})))})),ot=e.memo(it);var at=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{transform:"translate(-63 -234)",fill:"none"},e.createElement("path",{d:"M87 234v24H63v-24z"}),e.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}),e.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}),e.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})))})),lt=e.memo(at);var st=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24.814 24.821","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M.814 0h24v24h-24z"}),e.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"}),e.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"})))})),ct=e.memo(st);var dt=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M0 0h24v24H0z"}),e.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:2},e.createElement("path",{d:"M12 2v20M22 12H2"}))))})),ut=e.memo(dt);var mt=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.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}),e.createElement("path",{d:"M0 0h24v24H0z"})))})),vt=e.memo(mt);var pt=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{transform:"translate(-207 -134)",fill:"none"},e.createElement("path",{d:"M231 134v24h-24v-24z"}),e.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"}),e.createElement("circle",{cx:8,cy:8,r:8,transform:"translate(211 138)",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2}),e.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})))})),ft=e.memo(pt);var ht=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.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}),e.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}),e.createElement("path",{d:"M0 0h24v24H0z"})))})),gt=e.memo(ht);var bt=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M0 0h24v24H0z"}),e.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 5h14v17H5z"}),e.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:2,d:"M5 2h14M9 10v8M15 10v8"})))})),Et=e.memo(bt);var wt=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{transform:"translate(-207 -184)",fill:"none"},e.createElement("path",{d:"M231 184v24h-24v-24z"}),e.createElement("ellipse",{cx:4,cy:4.5,rx:4,ry:4.5,transform:"translate(215 186)",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2}),e.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})))})),_t=e.memo(wt);var yt=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M24 0v24H0V0z"}),e.createElement("g",{transform:"translate(-207 -180.02)",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2},e.createElement("ellipse",{cx:3,cy:3.5,rx:3,ry:3.5,transform:"translate(214 186.02)"}),e.createElement("path",{d:"M225 202.02h-16c0-3.86 3.589-7 8-7s8 3.14 8 7z"})),e.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})))})),kt=e.memo(yt);var Ct=e.forwardRef((function(t,n){var r=t.title,i=t.titleId,o=h(t,["title","titleId"]);return e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24","aria-label":"dui_icon",ref:n,"aria-labelledby":i},o),r?e.createElement("title",{id:i},r):null,e.createElement("g",{fill:"none"},e.createElement("path",{d:"M0 0h24v24H0z"}),e.createElement("path",{d:"M12 2l10 20H2z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2}),e.createElement("path",{d:"M12 10.327v4M12 17.463v.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:2})))})),Nt=e.memo(Ct),xt=function(e,t){var r=n((function(){if(J)try{var n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return console.log(e),t}})),i=r[0],o=r[1];return[i,function(t){if(J)try{var n=t instanceof Function?t(i):t;o(n),window.localStorage.setItem(e,JSON.stringify(n))}catch(e){console.log(e)}}]},Lt=function(){var e=window.matchMedia("(prefers-color-scheme: dark)"),t=n(e.matches),i=t[0],o=t[1];return r((function(){if(J){var t=function(){e.matches?o(!0):o(!1)};return e.addEventListener("change",t),function(){e.removeEventListener("change",t)}}}),[]),i},It=function(e){var t=e.systemPreferenceFirst,i=void 0===t||t,o=e.element,a=void 0===o?document.documentElement:o,l=e.localStorageKey,s=void 0===l?"dui_dark_theme":l,c=Lt(),d=xt(s,localStorage[s]?localStorage[s]:!!i&&c),u=d[0],m=d[1],v=n(a)[0];return r((function(){if(J)return!localStorage[s]&&i?(v.setAttribute("dark-theme",c.toString()),function(){v.removeAttribute("dark-theme")}):void 0}),[c,v]),r((function(){if(J)return v.setAttribute("dark-theme",u),function(){v.removeAttribute("dark-theme")}}),[u,v]),[u,m]},Ot=i(null),Tt=function(e){var r=e.config,i=void 0===r?{}:r,a=e.darkModeConfig,l=void 0===a?{}:a,s=e.children,c=n(i),d=c[0],u=c[1],m=It(l),v=m[0],p=m[1],f=o((function(){return{config:d,setConfig:u}}),[d,u]),h=o((function(){return{dark:v,setDark:p}}),[v,p]);return t.createElement(Ot.Provider,{value:{appConfig:f,themeConfig:h,toggleDarkTheme:function(){return p((function(e){return!e}))}}},s)},St=function(){var e=a(Ot);if(void 0===e)throw new Error("useConfig must be used within a ConfigContextProvider");return e},Rt=["none","default","primary","secondary","success","warning","info","danger"],zt=["none","subtle","light","medium","strong","interstellar"],Mt=["default","flat","rounded"],Dt=["xs","sm","md","lg","xl"],Pt=["xs","sm","md","lg","xl","fhd","fluid"],Ft=["xs","sm","md","lg","xl","fullscreen"],Wt=["stretch","flex-start","flex-end","center","baseline"],jt=["flex-start","flex-end","center","space-between","space-around","space-evenly"],At=["row","row-reverse","column","column-reverse"],Bt=["nowrap","wrap","wrap-reverse"],Ht=g(g([],Array.from(new Array(12),(function(e,t){return""+(t+1)}))),["auto","reset"]),Vt=["base","xs","sm","md","lg","xl","fhd"],Gt=function(e,t){var n,r=t.isLoading,i=t.disableWhileLoading;return _(((n={})[e+"--loading"]=r,n[e+"--loading-disabled"]=r&&i,n))},Ut=function(e,t){var n,r=t.disabled;return _(((n={})[e+"--disabled"]=r,n))},Kt=function(e,t){var n,r=t.seamless;return _(((n={})[e+"--seamless"]=r,n))},Yt=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.")},i=new Map([["pigment",Rt],["pigmentColor",Rt],["hoverPigment",Rt],["activePigment",Rt],["elevation",zt],["flavor",Mt],["sizing",Dt],["containerSize",Pt],["drawerSize",Dt],["portalSize",Ft],["align",Wt],["justify",jt],["direction",At],["wrap",Bt],["col",Ht],["reset",Ht],["offset",Ht],["offsetRight",Ht]]),o=[],a=0,l=Object.entries(e);a<l.length;a++){var s=l[a];if(s[1]&&"string"==typeof s[1]&&((null===(t=i.get(s[0]))||void 0===t?void 0:t.includes(s[1]))?o.push(s[0]+"--"+s[1]):r(s)),s[1]&&"object"==typeof s[1])for(var c=0,d=Object.entries(s[1]);c<d.length;c++){var u=d[c];Vt.includes(u[0])?u[1]&&"string"==typeof u[1]&&(null===(n=i.get(s[0]))||void 0===n?void 0:n.includes(u[1]))&&o.push(s[0]+"--"+u[0]+"--"+u[1]):r(s)}}return o.join(" ")},Xt=function(e,t){var n,r=t.equalDimensions,i=t.iconStart,o=t.iconEnd,a=t.wide,l=t.unWrapText,s=t.leftAlignContent,c=t.active,d=t.keyboardOnlyFocusRing,u=t.spongy,m=t.vertical;return _(((n={})[e+"--equal"]=r,n[e+"--icon-start"]=i,n[e+"--icon-end"]=o,n[e+"--wide"]=a,n[e+"--no-wrap"]=l,n[e+"--left-align"]=s,n[e+"--active"]=c,n[e+"--focus-ring"]=!d,n[e+"--still"]=!u,n[e+"--vertical"]=m,n))},qt=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 Dt.includes(null===(n=null==e?void 0:e[1])||void 0===n?void 0:n.toString())?"dui__flex--"+t+"-"+e[0]+"-"+e[1]:(U(t,{object:"{xs: 'sm', sm: 'md', md: 'xl' ....}",string:"xs, sm, md, none ..."}),"")})).join(" "):"string"!=typeof e||!Dt.includes(e)&&"none"!==e?(U(t,{object:"{xs: 'sm', sm: 'md', md: 'xl' ....}",string:"xs, sm, md, none ..."}),""):"dui__flex--"+t+"-"+e},Zt=t.forwardRef((function(e,i){var o,a,s,c,d,u,m,v,p,g,b,E=St().appConfig.config,w=e.className,y=e.pigment,k=void 0===y?null!==(o=E.alertPigment)&&void 0!==o?o:"danger":y,C=e.pigmentColor,N=void 0===C?null!==(a=E.alertPigmentColor)&&void 0!==a?a:null:C,x=e.elevation,L=void 0===x?null!==(s=E.alertElevation)&&void 0!==s?s:"none":x,I=e.flavor,O=void 0===I?null!==(c=E.flavor)&&void 0!==c?c:"default":I,T=e.sizing,S=void 0===T?null!==(d=E.sizing)&&void 0!==d?d:"md":T,R=e.animation,z=void 0===R?null!==(u=E.alertAnimation)&&void 0!==u?u:"collapse-n-fade":R,M=e.isVisible,D=void 0===M||M,P=e.withIcon,F=void 0===P?null===(m=E.alertWithIcon)||void 0===m||m:P,W=e.iconComponent,B=e.isDismissible,H=void 0===B?null!==(v=E.alertIsDismissible)&&void 0!==v&&v:B,V=e.isDismissibleOnClick,G=void 0===V?null===(p=E.alertIsDismissibleOnClick)||void 0===p||p:V,U=e.dismissibleComponent,K=void 0===U?null!==(g=E.alertDismissibleComponent)&&void 0!==g?g:null:U,X=e.children,Z=e.withRipple,J=void 0===Z?null!==(b=E.withRipple)&&void 0!==b?b:G:Z,$=e.onPointerDown,Q=e.onKeyDown,ee=h(e,["className","pigment","pigmentColor","elevation","flavor","sizing","animation","isVisible","withIcon","iconComponent","isDismissible","isDismissibleOnClick","dismissibleComponent","children","withRipple","onPointerDown","onKeyDown"]),te={pigment:k,pigmentColor:N,elevation:L,flavor:O,sizing:S},ne="dui__alert",re=l(null),ie=n(D),oe=ie[0],ae=ie[1],le=function(){return ae(!1)},se=function(e){Q&&Q(e),re.current===document.activeElement&&"Space"===e.code&&(e.preventDefault(),G&&le())},ce=function(e){J&&q({e:e,elem:re}),$&&$(e)};r((function(){return ae(D),le}),[D]);var de=function(){return t.createElement("div",f({"data-testid":"Alert",className:_(ne,Yt(te),w),onClick:G?le:null==e?void 0:e.onClick,role:"alert",tabIndex:G?0:-1,onKeyDown:se,onPointerDown:ce},ee,{ref:Y([re,i])}),F&&function(e){if(!W)switch(e){case"danger":return t.createElement(Oe,{className:"dui__alert__icon"});case"warning":return t.createElement(Nt,{className:"dui__alert__icon"});case"success":return t.createElement(Le,{className:"dui__alert__icon"});default:return t.createElement(Ue,{classNam