asma-core-ui 3.1.76 → 3.1.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,4 +35,4 @@ var e=Object.defineProperty,t=(t,n,r)=>(((t,n,r)=>{n in t?e(t,n,{enumerable:!0,c
35
35
  * This source code is licensed under the MIT license found in the
36
36
  * LICENSE file in the root directory of this source tree.
37
37
  */
38
- "production"===process.env.NODE_ENV?Rd.exports=function(){if(Md)return Pd;Md=1;var e=r,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,r){var s,l={},c=null,d=null;for(s in void 0!==r&&(c=""+r),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(d=n.ref),n)o.call(n,s)&&!a.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:d,props:l,_owner:i.current}}return Pd.Fragment=n,Pd.jsx=s,Pd.jsxs=s,Pd}():Rd.exports=(Td||(Td=1,"production"!==process.env.NODE_ENV&&function(){var e=r,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator,g="@@iterator",y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=y.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console.error,console,o)}(0,e,n)}var b;function x(e){return e.displayName||"Context"}function w(e){if(null==e)return null;if("number"==typeof e.tag&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case u:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return x(e)+".Consumer";case s:return x(e._context)+".Provider";case c:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:w(e.type)||"Memo";case f:var r=e,h=r._payload,m=r._init;try{return w(m(h))}catch{return null}}return null}b=Symbol.for("react.module.reference");var C,k,j,N,_,E,I,O=Object.assign,S=0;function M(){}M.__reactDisabledLog=!0;var T,R=y.ReactCurrentDispatcher;function P(e,t,n){if(void 0===T)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);T=r&&r[1]||""}return"\n"+T+e}var D,z=!1,A="function"==typeof WeakMap?WeakMap:Map;function V(e,t){if(!e||z)return"";var n,r=D.get(e);if(void 0!==r)return r;z=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=R.current,R.current=null,function(){if(0===S){C=console.log,k=console.info,j=console.warn,N=console.error,_=console.group,E=console.groupCollapsed,I=console.groupEnd;var e={configurable:!0,enumerable:!0,value:M,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}S++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),c=s.length-1,d=l.length-1;c>=1&&d>=0&&s[c]!==l[d];)d--;for(;c>=1&&d>=0;c--,d--)if(s[c]!==l[d]){if(1!==c||1!==d)do{if(c--,--d<0||s[c]!==l[d]){var u="\n"+s[c].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),"function"==typeof e&&D.set(e,u),u}}while(c>=1&&d>=0);break}}}finally{z=!1,R.current=o,function(){if(0==--S){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},e,{value:C}),info:O({},e,{value:k}),warn:O({},e,{value:j}),error:O({},e,{value:N}),group:O({},e,{value:_}),groupCollapsed:O({},e,{value:E}),groupEnd:O({},e,{value:I})})}S<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",f=p?P(p):"";return"function"==typeof e&&D.set(e,f),f}function L(e,t,n){if(null==e)return"";if("function"==typeof e)return V(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return P(e);switch(e){case d:return P("Suspense");case u:return P("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return function(e,t,n){return V(e,!1)}(e.render);case p:return L(e.type,t,n);case f:var o=e,i=o._payload,a=o._init;try{return L(a(i),t,n)}catch{}}return""}D=new A;var F=Object.prototype.hasOwnProperty,$={},B=y.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,n=L(e.type,e._source,t?t.type:null);B.setExtraStackFrame(n)}else B.setExtraStackFrame(null)}var H=Array.isArray;function U(e){return H(e)}function W(e){return""+e}function K(e){if(function(e){try{return W(e),!1}catch{return!0}}(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",(t=e,"function"==typeof Symbol&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object")),W(e);var t}var G,Y,J,X=y.ReactCurrentOwner,Z={key:!0,ref:!0,__self:!0,__source:!0};J={};var Q=function(e,n,r,o,i,a,s){var l={$$typeof:t,type:e,key:n,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};var ee,te=y.ReactCurrentOwner,ne=y.ReactDebugCurrentFrame;function re(e){if(e){var t=e._owner,n=L(e.type,e._source,t?t.type:null);ne.setExtraStackFrame(n)}else ne.setExtraStackFrame(null)}function oe(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}function ie(){if(te.current){var e=w(te.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ee=!1;var ae={};function se(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=ie();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!ae[n]){ae[n]=!0;var r="";e&&e._owner&&e._owner!==te.current&&(r=" It was passed a child from "+w(e._owner.type)+"."),re(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),re(null)}}}function le(e,t){if("object"==typeof e)if(U(e))for(var n=0;n<e.length;n++){var r=e[n];oe(r)&&se(r,t)}else if(oe(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=m&&e[m]||e[g];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)oe(i.value)&&se(i.value,t)}}function ce(e,n,r,m,g,y){var x,C=!("string"!=typeof(x=e)&&"function"!=typeof x&&x!==o&&x!==a&&x!==i&&x!==d&&x!==u&&x!==h&&("object"!=typeof x||null===x||x.$$typeof!==f&&x.$$typeof!==p&&x.$$typeof!==s&&x.$$typeof!==l&&x.$$typeof!==c&&x.$$typeof!==b&&void 0===x.getModuleId));if(!C){var k="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(k+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var j,N=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(g);k+=N||ie(),null===e?j="null":U(e)?j="array":void 0!==e&&e.$$typeof===t?(j="<"+(w(e.type)||"Unknown")+" />",k=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,k)}var _=function(e,t,n,r,o){var i,a,s,l,c={},d=null,u=null;for(i in void 0!==n&&(K(n),d=""+n),function(e){if(F.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(K(t.key),d=""+t.key),function(e){if(F.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(u=t.ref,function(e,t){if("string"==typeof e.ref&&X.current&&t&&X.current.stateNode!==t){var n=w(X.current.type);J[n]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',w(X.current.type),e.ref),J[n]=!0)}}(t,o)),t)F.call(t,i)&&!Z.hasOwnProperty(i)&&(c[i]=t[i]);if(e&&e.defaultProps){var p=e.defaultProps;for(i in p)void 0===c[i]&&(c[i]=p[i])}if(d||u){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;d&&(a=c,s=f,(l=function(){G||(G=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",s))}).isReactWarning=!0,Object.defineProperty(a,"key",{get:l,configurable:!0})),u&&function(e,t){var n=function(){Y||(Y=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(c,f)}return Q(e,d,u,o,r,X.current,c)}(e,n,r,g,y);if(null==_)return _;if(C){var E=n.children;if(void 0!==E)if(m)if(U(E)){for(var I=0;I<E.length;I++)le(E[I],e);Object.freeze&&Object.freeze(E)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else le(E,e)}return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){re(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),re(null);break}}null!==e.ref&&(re(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),re(null))}(_):function(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==p)return;t=n.propTypes}if(t){var r=w(n);!function(e,t,n,r,o){var i=Function.call.bind(F);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}s&&!(s instanceof Error)&&(q(o),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof s),q(null)),s instanceof Error&&!(s.message in $)&&($[s.message]=!0,q(o),v("Failed %s type: %s",n,s.message),q(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||ee||(ee=!0,v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",w(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}(_),_}Dd.Fragment=o,Dd.jsx=function(e,t,n){return ce(e,t,n,!1)},Dd.jsxs=function(e,t,n){return ce(e,t,n,!0)}}()),Dd);var zd=Rd.exports;function Ad(e){return zd.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zd.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:2,children:[zd.jsx("path",{strokeDasharray:60,strokeDashoffset:60,strokeOpacity:.3,d:"M12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3Z",children:zd.jsx("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"1.3s",values:"60;0"})}),zd.jsxs("path",{strokeDasharray:15,strokeDashoffset:15,d:"M12 3C16.9706 3 21 7.02944 21 12",children:[zd.jsx("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"15;0"}),zd.jsx("animateTransform",{attributeName:"transform",dur:"1.5s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"})]})]})})}function Vd(e){return zd.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zd.jsx("path",{fill:"currentColor",d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})})}const Ld=({className:e,contentToCopy:t,locale:n,messageInfo:r,text:o})=>{const i="en"===n?"Copy":"Kopier",a=ya();return ge.jsx(ta,{title:i,children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"copy-button",className:e,size:"small",variant:"text",startIcon:ge.jsx(Vd,{width:20,height:20}),onClick:()=>{navigator.clipboard.writeText(t).then((()=>{r("no"===n?"Kopieres til utklippstavlen":"Copied to clipboard")}))},children:!a&&(o||i)})})})},Fd="_copy-wrapper_1gjzc_1",$d="_hidden-copy_1gjzc_1",Bd=({className:e,contentToCopy:t,locale:n,messageInfo:r,children:o})=>ge.jsxs("div",{className:Ca("flex items-center hover:text-gama-500",Fd,e),children:[o,ge.jsx(ta,{title:"no"===n?"Kopier":"Copy",className:$d,children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"copy-button",size:"small",variant:"text",className:"cursor-pointer",onClick:e=>{e.preventDefault(),e.stopPropagation(),navigator.clipboard.writeText(t).then((()=>{r("no"===n?"Kopieres til utklippstavlen":"Copied to clipboard")}))},startIcon:ge.jsx(Vd,{width:20,height:20})})})})]}),qd="_styled-widget-title_1mja5_1",Hd=function(e){return ge.jsx("div",{className:qd,children:e.children})},Ud="_styled-widget-header_1qk88_1",Wd=({actions:e,title:t,containerClassname:n,actionsClassname:r})=>ge.jsxs("div",{className:Ca(Ud,n),children:[ge.jsx(Hd,{children:t}),ge.jsx("div",{className:r,children:e})]}),Kd="_asma-core-ui-styled-widget_fvr2z_1",Gd="_widget-header-left_fvr2z_19",Yd="_widget-header-right_fvr2z_25",Jd="_widget-content_fvr2z_31",Xd="_widget-footer_fvr2z_41",Zd="_widget-link_fvr2z_46";function Qd(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6z"})})}function eu(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z"})})}const tu=({children:e,title:t,icon:n,link:r,viewMore:o,persistKey:i,isLoading:l,isEmpty:c,emptyText:d,headerRight:u,headerRightClassName:p})=>{const[f,h]=a(!1);return s((()=>{if(i){const e=localStorage.getItem(i);h("true"===e)}}),[i]),s((()=>{i&&localStorage.setItem(i,String(f))}),[f,i]),ge.jsxs("div",{className:Kd,children:[ge.jsxs("div",{className:Gd,children:[n,ge.jsx(Hd,{children:t}),ge.jsx("div",{className:`${Yd} ${p??""}`,children:u})]}),ge.jsx("div",{className:Jd,children:ge.jsxs(ge.Fragment,{children:[e,ge.jsx(Ma,{isLoading:l}),ge.jsx(Oa,{isEmpty:c,emptyText:d})]})}),ge.jsxs("div",{className:Xd,children:[!o||null!=o&&o.hide?ge.jsx("div",{}):ge.jsx(da,{disabled:o.disabled,dataTest:"view-more",variant:"text",endIcon:f?ge.jsx(Qd,{width:20,height:20}):ge.jsx(eu,{width:20,height:20}),onClick:()=>{var e;h(!f),null==(e=null==o?void 0:o.onClick)||e.call(o)},children:f?o.viewLessText:o.viewMoreText}),r&&!r.hide?ge.jsx(Gc,{dataTest:"go-to-button",className:Zd,size:"small",href:r.href,onClick:r.onClick,content:r.content}):ge.jsx("div",{})]})]})},nu="_styled-module-title_174mo_1",ru=function(e){return ge.jsx("h1",{"data-test":e.dataTest,className:nu,children:e.children})},ou="_dialog_erjok_1",iu="_hidden_erjok_9";function au(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M10 21v-2H6.41l4.5-4.5l-1.41-1.41l-4.5 4.5V14H3v7zm4.5-10.09l4.5-4.5V10h2V3h-7v2h3.59l-4.5 4.5z"})})}function su(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M19.5 3.09L15 7.59V4h-2v7h7V9h-3.59l4.5-4.5zM4 13v2h3.59l-4.5 4.5l1.41 1.41l4.5-4.5V20h2v-7z"})})}const lu="object"==typeof global&&global&&global.Object===Object&&global;var cu="object"==typeof self&&self&&self.Object===Object&&self;const du=(lu||cu||Function("return this")()).Symbol;var uu=Object.prototype,pu=uu.hasOwnProperty,fu=uu.toString,hu=du?du.toStringTag:void 0;var mu=Object.prototype.toString;var gu="[object Null]",yu="[object Undefined]",vu=du?du.toStringTag:void 0;function bu(e){return null==e?void 0===e?yu:gu:vu&&vu in Object(e)?function(e){var t=pu.call(e,hu),n=e[hu];try{e[hu]=void 0;var r=!0}catch{}var o=fu.call(e);return r&&(t?e[hu]=n:delete e[hu]),o}(e):function(e){return mu.call(e)}(e)}const xu=Array.isArray;function wu(e){if(!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=bu(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}const Cu=({onCloseText:e="",onMinimizeText:t="",onExpandText:n="",onFullScreenText:r="",showCloseIcon:o=!0,showMinimizeIcon:i=!0,showExpandIcon:s=!0,showFullScreenIcon:l=!0,title:c,label:u,children:p,open:f,onClose:h,className:m="",primaryButtonText:g,primaryButtonLoading:y=!1,secondaryButtonText:v,onPrimaryButtonClick:b,onSecondaryButtonClick:x,dataTest:w,actionNode:C,extraActions:k,extraActionsText:j,btnContainerClassName:N,footerClassName:_,footerInfo:E,locale:I="en",enableFullscreen:O=!0,fullScreenState:S,handleFullScreenState:M})=>{const[T,R]=a(!1),[P,D]=a(!1),{open:z,anchorEl:A,handleOpen:V,handleClose:L}=(()=>{const[e,t]=a(null),n=!!e,r=d((e=>{t(e.currentTarget)}),[]);return{open:n,handleClose:d((()=>{t(null)}),[]),handleOpen:r,anchorEl:e}})();if(!f)return null;const F=void 0!==S?S:P,$=g||y,B=$||v,q=()=>{R(!T)};return ge.jsxs(ge.Fragment,{children:[F&&!T&&ge.jsx("div",{className:"z-[51] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70"}),ge.jsx("div",{style:{zIndex:51},className:Ca(ou,!T&&iu),children:ge.jsxs("div",{className:pi("flex items-center justify-between",!T&&"hidden"),"data-test":w,children:[ge.jsx("div",{className:"truncate text-lg font-semibold text-delta-800",children:c}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[s&&ge.jsx(ta,{title:"en"===I?"Expand":"Utvid",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"minimize-button",variant:"text",size:"small",onClick:q,endIcon:s&&ge.jsx(yr,{height:20,width:20,color:"text-gama-500"}),children:n})})}),o&&ge.jsx(ta,{title:"en"===I?"Close":"Lukk",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"close-button",variant:"textGray",size:"small",onClick:h,endIcon:o&&ge.jsx(Bn,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]})}),ge.jsxs("div",{className:Ca("fixed bottom-4 right-4 z-[51] rounded-lg bg-white shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300",m&&!T?m:"",T&&"!h-0 !w-0 opacity-0 duration-0",F&&!T&&"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-[1000px] h-[95dvh] duration-0"),"data-test":w,children:[ge.jsxs("div",{className:"flex flex-col gap-y-2 p-4 border-b-[1px] border-delta-200",children:[ge.jsxs("div",{className:"flex items-center justify-between",children:[u?ge.jsx("div",{className:"text-sm text-delta-700",children:u}):ge.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:c}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[C,i&&ge.jsx(ta,{title:"en"===I?"Minimize":"Minimer",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"minimize-button",variant:"textGray",size:"small",onClick:q,endIcon:i&&ge.jsx(gr,{height:20,width:20,color:"text-delta-700"}),children:t})})}),O&&l&&ge.jsx(ta,{title:F?"en"===I?"Exit full screen":"Avslutt fullskjerm":"en"===I?"Full screen":"Fullskjerm",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:()=>{void 0!==S&&M?M():D(!P)},endIcon:F?ge.jsx(su,{width:20,height:20,color:"text-delta-700"}):ge.jsx(au,{width:20,height:20,color:"text-delta-700"}),children:r})})}),o&&ge.jsx(ta,{title:"en"===I?"Close":"Lukk",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"close-button",variant:"textGray",size:"small",onClick:h,endIcon:ge.jsx(Bn,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]}),u&&ge.jsx("div",{className:"text-2xl font-semibold text-delta-800 truncate",children:c})]}),ge.jsxs("div",{className:pi("flex flex-col",F&&!T&&"h-[87dvh]"),children:[ge.jsx("div",{className:"flex-grow overflow-y-auto",children:"function"==typeof p?p({fullScreen:F}):p}),(xu(k)&&null!=k&&k.length||wu(k))&&j||E?ge.jsxs("div",{className:Ca("flex items-center justify-between p-4 border-0 border-t-[1px] border-solid border-delta-200 bg-white",_),children:[xu(k)&&null!=k&&k.length&&j?ge.jsxs(ge.Fragment,{children:[ge.jsx(da,{dataTest:"extra-actions-button",variant:"textGray",startIcon:ge.jsx(Tn,{width:24,height:24}),onClick:V,children:j}),ge.jsx(Fc,{open:z,anchorEl:A,onClose:L,children:k.map((e=>ge.jsx($c,{className:e.className,onClick:e.onClick,children:e.label},e.label)))})]}):j&&wu(k)&&ge.jsx(da,{dataTest:"extra-action-button",variant:"text",onClick:k,children:j})," ",E,B?ge.jsxs("div",{className:Ca("flex justify-end gap-x-4",N),children:[v&&x&&ge.jsx(da,{dataTest:"cancel-button",variant:"outlined",onClick:x,children:v}),$&&b&&ge.jsx(da,{dataTest:"save-button",startIcon:y&&ge.jsx(Ad,{width:24,height:24}),onClick:b,children:g})]}):null]}):ge.jsx(ge.Fragment,{children:B?ge.jsxs("div",{className:Ca("flex justify-end gap-x-4 border-t-[1px] border-delta-200 p-4",N),children:[v&&x&&ge.jsx(da,{dataTest:"cancel-button",variant:"outlined",onClick:x,children:v}),$&&b&&ge.jsx(da,{dataTest:"save-button",startIcon:y&&ge.jsx(Ad,{width:24,height:24}),onClick:b,children:g})]}):null})]})]})]})},ku=({showCloseIcon:e,tooltipTitle:t,onClick:n})=>e?ge.jsx(ta,{title:t,placement:"top",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"close-button",variant:"textGray",size:"small",onClick:n,endIcon:ge.jsx(Bn,{height:20,width:20,color:"text-delta-700"})})})}):null,ju=({visibility:e,tooltipTitle:t,onClick:n,type:r})=>{if(!e)return null;const o="minimize"===r;return"expand"===r?ge.jsx("div",{children:ge.jsx(ta,{title:t,placement:"top",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"toggle-minimize-btn",variant:"text",size:"small",onClick:n,endIcon:ge.jsx(yr,{height:20,width:20,color:"text-gama-500"})})})})}):o?ge.jsx("div",{children:ge.jsx(ta,{title:t,placement:"top",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"toggle-minimize-btn",variant:"textGray",size:"small",onClick:n,endIcon:ge.jsx(gr,{height:20,width:20,color:"text-delta-700"})})})})}):null},Nu=({fullScreen:e,showFullScreenIcon:t,tooltipTitle:n,onClick:r})=>t?ge.jsx(ta,{title:n,children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:r,endIcon:e?ge.jsx(su,{width:20,height:20,color:"text-delta-700"}):ge.jsx(au,{width:20,height:20,color:"text-delta-700"})})})}):null,_u="_minimized-dialog_16tvw_5",Eu="_dialog_16tvw_1",Iu="_hidden_16tvw_27",Ou={en:{close:"Close",expand:"Expand",minimize:"Minimize",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen"},no:{close:"Lukk",expand:"Utvid",minimize:"Minimer",fullscreen:"Fullskjerm",exitFullscreen:"Avslutt fullskjerm"}};const Su=e=>{const{showCloseIcon:t=!0,showMinimizeIcon:n=!0,showExpandIcon:r=!0,enableFullscreen:o=!0,title:i,label:s,children:l,open:d,onClose:p,classNameOverrides:f={maximized:"",minimized:"",fullscreen:""},dataTest:h,actionNode:m,locale:g="en",style:y}=e,v=ya(),b=function(e="en"){return u((()=>Ou[e]??Ou.en),[e])}(g),x=c(null),{minimized:w,setMinimized:C,fullScreen:k,setFullScreen:j}=(({fullScreenState:e,handleFullScreenState:t,minimizedState:n,handleMinimizedState:r})=>{const[o,i]=a(!1),[s,l]=a(!1);return{fullScreen:void 0!==e?e:s,setFullScreen:e=>t?t():l(e),minimized:void 0!==n?n:o,setMinimized:e=>r?r(e):i(e)}})(e);return d?ge.jsxs(ge.Fragment,{children:[ge.jsx("div",{style:{zIndex:51,...y},className:Ca(_u,!w&&Iu,f.minimized),children:ge.jsxs("div",{className:pi("flex items-center justify-between",!w&&"hidden"),"data-test":h,children:[ge.jsx("div",{className:"truncate max-w-[303px] text-lg font-semibold text-delta-800 pr-1",children:ge.jsx(ta,{title:i,placement:"top",children:ge.jsx("div",{className:"truncate",children:i})})}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[ge.jsx(ju,{type:"expand",visibility:r,onClick:()=>C(!w),tooltipTitle:b.expand}),ge.jsx(ku,{showCloseIcon:t,onClick:p,tooltipTitle:b.close})]})]})}),k&&!w&&ge.jsx("div",{className:"z-[52] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70",onClick:()=>j(!1)}),ge.jsxs("div",{style:{zIndex:51,...y},ref:x,className:Ca(Eu,w&&Iu,f.maximized,k&&!w&&"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-[1000px] h-[95dvh] duration-0 z-[53]"),children:[ge.jsxs("div",{className:Ca("flex flex-col px-4 border-b-[1px] border-delta-200",v?"py-3 gap-y-1":"py-4 gap-y-2"),children:[ge.jsxs("div",{className:"flex items-center justify-between",children:[s?ge.jsx("div",{className:"text-sm text-delta-700",children:s}):ge.jsx("div",{className:Ca("font-semibold text-delta-800",v?"text-xl line-clamp-2":"text-2xl line-clamp-1"),children:i}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[m,ge.jsx(ju,{visibility:n&&!v,type:"minimize",onClick:()=>C(!w),tooltipTitle:b.minimize}),ge.jsx(Nu,{showFullScreenIcon:o&&!v,fullScreen:k,onClick:()=>j(!k),tooltipTitle:k?b.exitFullscreen:b.fullscreen}),ge.jsx(ku,{showCloseIcon:t,onClick:p,tooltipTitle:b.close})]})]}),s&&ge.jsx("div",{className:Ca("font-semibold text-delta-800",v?"text-xl line-clamp-2":"text-2xl line-clamp-1"),children:i})]}),ge.jsx("div",{className:Ca(w&&"hidden","flex flex-grow flex-col overflow-y-auto"),children:l})]})]}):null};function Mu({config:e,MAX_DIALOG_WIDTH:t=600}){const n=p(void 0);return{DialogStackProvider:({children:r})=>{const[o,i]=a([]),l=function(){const[e,t]=a((()=>window.innerWidth));return s((()=>{const e=()=>t(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),e}(),c=d((e=>{const n=[...e].sort(((e,t)=>e.order-t.order)),r=n.length||1,o=Math.min(t,(l-16*(r+1))/r);return n.map(((e,t)=>({...e,width:o,position:{right:16+t*(o+16)}})))}),[l]),u=d(((t,n)=>{var r,o;const a=null==(r=e[t])?void 0:r.dependencies,s=(null==(o=e[t])?void 0:o.order)??1/0,l=n??s;i((e=>{const n=e.find((e=>e.id===t)),r={id:t,open:!0,width:0,position:{right:0},dependencies:a,order:l},o=n?e.map((e=>e.id===t?{...e,open:!0,dependencies:a}:e)):[...e,r];return c(o.filter((e=>e.open)))}))}),[c]),p=d((e=>{i((t=>{var n;const r=new Set([e]);let o;do{o=!1;for(const e of t)null!=(n=e.dependencies)&&n.some((e=>r.has(e)))&&!r.has(e.id)&&(r.add(e.id),o=!0)}while(o);return c(t.filter((e=>!r.has(e.id))))}))}),[c]),f=d((e=>o.find((t=>t.id===e))),[o]);return ge.jsx(n.Provider,{value:{dialogs:o,openDialog:u,closeDialog:p,getDialogState:f},children:r})},useDialogStack:function(){const e=f(n);if(!e)throw new Error("useDialogStack must be used within DialogStackProvider");return e}}}export{An as ArchiveIcon,bn as AssignmentIcon,xn as AssignmentOutlineIcon,$ as Avatar,br as BadgeIcon,en as BellIcon,Qt as BellOutlineIcon,rr as CalendarBlankOutlineIcon,gn as CalendarIcon,vn as CalendarRangeIcon,Ln as CheckBoxCheckedIcon,mn as CheckFactIcon,hn as CheckFactOutlineIcon,qn as CheckIcon,fn as CheckOutlineIcon,on as ChevronDoubleLeftIcon,an as ChevronDoubleRightIcon,Fn as ChevronDownIcon,rn as ChevronLeftIcon,nn as ChevronRightIcon,$n as ChevronUpIcon,B as ClickAwayListener,Bn as CloseIcon,mr as ConsentsIcon,q as Container,Ld as CopyButton,Bd as CopyWrapper,cn as DashboardViewIcon,dn as DashboardViewOutlineIcon,Xn as DeleteOutlineIcon,Tn as DotsVerticalIcon,Vn as DownloadIcon,Yn as DragHorizontalIcon,zn as DropDownIcon,Dn as DropUpIcon,er as DvrIcon,dr as EarthIcon,xr as EditSquareIcon,tr as ErrorOutlineIcon,H as Fade,ir as FastCheckOutlineIcon,Jn as FilePdfIcon,Zn as FilterIcon,In as FindReplaceIcon,On as FindReplacePeopleIcon,U as FormLabel,tn as HamburgerIcon,jr as HandymanIcon,kr as HandymanOutlineIcon,Wn as InboxOutboxIcon,Kn as InboxOutboxOutlineIcon,nl as IndeterminateIcon,yr as KeyboardCapslockIcon,or as LinkOutlineIcon,wn as ListNumberedIcon,cr as ListSettingsLineIcon,sr as ListStatusIcon,Pn as LoadingIcon,Qn as LockIcon,Cn as MessageProcessingIcon,kn as MessageProcessingOutlineIcon,vr as MessageReplyIcon,Cu as MinimizableDialog,Su as MinimizableDialogV2,gr as MinimizeIcon,yn as NewCalendarIcon,hr as OutlineCalendarMonth,W as Paper,ln as PdfIcon,pr as PencilOutlineIcon,pn as PeopleIcon,un as PeopleOutlineIcon,Hn as PermMediaIcon,Un as PermMediaOutline,Sn as PersonIcon,Mn as PersonOutlineIcon,Nr as PinIcon,wr as PlusIcon,Cr as PlusIconCircle,K as Popper,sn as QnrIcon,nr as ReplayIcon,jn as ReportBoxIcon,Nn as ReportBoxOutlineIcon,Rn as SearchIcon,_n as SettingsIcon,ur as SettingsMenuHorizontalIcon,En as SettingsOutlineIcon,G as Skeleton,Y as Stack,kd as StyledAccordion,Nd as StyledAccordionDetails,jd as StyledAccordionSummary,ye as StyledBadge,da as StyledButton,rl as StyledCheckbox,Er as StyledChip,va as StyledDialog,ka as StyledDialogActions,Na as StyledDialogContent,Ea as StyledDialogTitle,Lc as StyledDrawer,Oa as StyledEmptyPage,Ed as StyledFilterButton,Sd as StyledFilterMenu,Pc as StyledFormControl,Dc as StyledFormControlLabel,Vc as StyledFormGroup,zc as StyledFormHelperText,sa as StyledFormLabel,ol as StyledInputField,Ac as StyledInputLabel,Sr as StyledInteractiveChip,Rc as StyledLabel,Gc as StyledLink,Ma as StyledLoading,Fc as StyledMenu,$c as StyledMenuItem,Bc as StyledMenuList,ru as StyledModuleTitle,_d as StyledPopover,Bl as StyledRadio,Tc as StyledRadioGroup,il as StyledSearchField,ll as StyledSelect,pl as StyledSelectAutocomplete,cl as StyledSelectItem,fl as StyledSlider,Cl as StyledSwitch,Yc as StyledTab,Jc as StyledTabs,sl as StyledTextarea,ta as StyledTooltip,na as StyledTypography,tu as StyledWidget,Wd as StyledWidgetHeader,Hd as StyledWidgetTitle,lr as TextBoxCheckOutlineIcon,Gn as TopicIcon,ar as UnknownDocumentOutlineRoundedIcon,fr as WarningAmberOutlineIcon,_r as WorkIcon,Mu as createDialogStack,te as omit,de as prepareForSlot,le as setMidnightTime,ce as setZeroTime};
38
+ "production"===process.env.NODE_ENV?Rd.exports=function(){if(Md)return Pd;Md=1;var e=r,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,r){var s,l={},c=null,d=null;for(s in void 0!==r&&(c=""+r),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(d=n.ref),n)o.call(n,s)&&!a.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:d,props:l,_owner:i.current}}return Pd.Fragment=n,Pd.jsx=s,Pd.jsxs=s,Pd}():Rd.exports=(Td||(Td=1,"production"!==process.env.NODE_ENV&&function(){var e=r,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator,g="@@iterator",y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=y.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console.error,console,o)}(0,e,n)}var b;function x(e){return e.displayName||"Context"}function w(e){if(null==e)return null;if("number"==typeof e.tag&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case u:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return x(e)+".Consumer";case s:return x(e._context)+".Provider";case c:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:w(e.type)||"Memo";case f:var r=e,h=r._payload,m=r._init;try{return w(m(h))}catch{return null}}return null}b=Symbol.for("react.module.reference");var C,k,j,N,_,E,I,O=Object.assign,S=0;function M(){}M.__reactDisabledLog=!0;var T,R=y.ReactCurrentDispatcher;function P(e,t,n){if(void 0===T)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);T=r&&r[1]||""}return"\n"+T+e}var D,z=!1,A="function"==typeof WeakMap?WeakMap:Map;function V(e,t){if(!e||z)return"";var n,r=D.get(e);if(void 0!==r)return r;z=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=R.current,R.current=null,function(){if(0===S){C=console.log,k=console.info,j=console.warn,N=console.error,_=console.group,E=console.groupCollapsed,I=console.groupEnd;var e={configurable:!0,enumerable:!0,value:M,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}S++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),c=s.length-1,d=l.length-1;c>=1&&d>=0&&s[c]!==l[d];)d--;for(;c>=1&&d>=0;c--,d--)if(s[c]!==l[d]){if(1!==c||1!==d)do{if(c--,--d<0||s[c]!==l[d]){var u="\n"+s[c].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),"function"==typeof e&&D.set(e,u),u}}while(c>=1&&d>=0);break}}}finally{z=!1,R.current=o,function(){if(0==--S){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},e,{value:C}),info:O({},e,{value:k}),warn:O({},e,{value:j}),error:O({},e,{value:N}),group:O({},e,{value:_}),groupCollapsed:O({},e,{value:E}),groupEnd:O({},e,{value:I})})}S<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",f=p?P(p):"";return"function"==typeof e&&D.set(e,f),f}function L(e,t,n){if(null==e)return"";if("function"==typeof e)return V(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return P(e);switch(e){case d:return P("Suspense");case u:return P("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return function(e,t,n){return V(e,!1)}(e.render);case p:return L(e.type,t,n);case f:var o=e,i=o._payload,a=o._init;try{return L(a(i),t,n)}catch{}}return""}D=new A;var F=Object.prototype.hasOwnProperty,$={},B=y.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,n=L(e.type,e._source,t?t.type:null);B.setExtraStackFrame(n)}else B.setExtraStackFrame(null)}var H=Array.isArray;function U(e){return H(e)}function W(e){return""+e}function K(e){if(function(e){try{return W(e),!1}catch{return!0}}(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",(t=e,"function"==typeof Symbol&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object")),W(e);var t}var G,Y,J,X=y.ReactCurrentOwner,Z={key:!0,ref:!0,__self:!0,__source:!0};J={};var Q=function(e,n,r,o,i,a,s){var l={$$typeof:t,type:e,key:n,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};var ee,te=y.ReactCurrentOwner,ne=y.ReactDebugCurrentFrame;function re(e){if(e){var t=e._owner,n=L(e.type,e._source,t?t.type:null);ne.setExtraStackFrame(n)}else ne.setExtraStackFrame(null)}function oe(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}function ie(){if(te.current){var e=w(te.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ee=!1;var ae={};function se(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=ie();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!ae[n]){ae[n]=!0;var r="";e&&e._owner&&e._owner!==te.current&&(r=" It was passed a child from "+w(e._owner.type)+"."),re(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),re(null)}}}function le(e,t){if("object"==typeof e)if(U(e))for(var n=0;n<e.length;n++){var r=e[n];oe(r)&&se(r,t)}else if(oe(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=m&&e[m]||e[g];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)oe(i.value)&&se(i.value,t)}}function ce(e,n,r,m,g,y){var x,C=!("string"!=typeof(x=e)&&"function"!=typeof x&&x!==o&&x!==a&&x!==i&&x!==d&&x!==u&&x!==h&&("object"!=typeof x||null===x||x.$$typeof!==f&&x.$$typeof!==p&&x.$$typeof!==s&&x.$$typeof!==l&&x.$$typeof!==c&&x.$$typeof!==b&&void 0===x.getModuleId));if(!C){var k="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(k+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var j,N=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(g);k+=N||ie(),null===e?j="null":U(e)?j="array":void 0!==e&&e.$$typeof===t?(j="<"+(w(e.type)||"Unknown")+" />",k=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,k)}var _=function(e,t,n,r,o){var i,a,s,l,c={},d=null,u=null;for(i in void 0!==n&&(K(n),d=""+n),function(e){if(F.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(K(t.key),d=""+t.key),function(e){if(F.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(u=t.ref,function(e,t){if("string"==typeof e.ref&&X.current&&t&&X.current.stateNode!==t){var n=w(X.current.type);J[n]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',w(X.current.type),e.ref),J[n]=!0)}}(t,o)),t)F.call(t,i)&&!Z.hasOwnProperty(i)&&(c[i]=t[i]);if(e&&e.defaultProps){var p=e.defaultProps;for(i in p)void 0===c[i]&&(c[i]=p[i])}if(d||u){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;d&&(a=c,s=f,(l=function(){G||(G=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",s))}).isReactWarning=!0,Object.defineProperty(a,"key",{get:l,configurable:!0})),u&&function(e,t){var n=function(){Y||(Y=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(c,f)}return Q(e,d,u,o,r,X.current,c)}(e,n,r,g,y);if(null==_)return _;if(C){var E=n.children;if(void 0!==E)if(m)if(U(E)){for(var I=0;I<E.length;I++)le(E[I],e);Object.freeze&&Object.freeze(E)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else le(E,e)}return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){re(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),re(null);break}}null!==e.ref&&(re(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),re(null))}(_):function(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==p)return;t=n.propTypes}if(t){var r=w(n);!function(e,t,n,r,o){var i=Function.call.bind(F);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}s&&!(s instanceof Error)&&(q(o),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof s),q(null)),s instanceof Error&&!(s.message in $)&&($[s.message]=!0,q(o),v("Failed %s type: %s",n,s.message),q(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||ee||(ee=!0,v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",w(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}(_),_}Dd.Fragment=o,Dd.jsx=function(e,t,n){return ce(e,t,n,!1)},Dd.jsxs=function(e,t,n){return ce(e,t,n,!0)}}()),Dd);var zd=Rd.exports;function Ad(e){return zd.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zd.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:2,children:[zd.jsx("path",{strokeDasharray:60,strokeDashoffset:60,strokeOpacity:.3,d:"M12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3Z",children:zd.jsx("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"1.3s",values:"60;0"})}),zd.jsxs("path",{strokeDasharray:15,strokeDashoffset:15,d:"M12 3C16.9706 3 21 7.02944 21 12",children:[zd.jsx("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"15;0"}),zd.jsx("animateTransform",{attributeName:"transform",dur:"1.5s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"})]})]})})}function Vd(e){return zd.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zd.jsx("path",{fill:"currentColor",d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})})}const Ld=({className:e,contentToCopy:t,locale:n,messageInfo:r,text:o})=>{const i="en"===n?"Copy":"Kopier",a=ya();return ge.jsx(ta,{title:i,children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"copy-button",className:e,size:"small",variant:"text",startIcon:ge.jsx(Vd,{width:20,height:20}),onClick:()=>{navigator.clipboard.writeText(t).then((()=>{r("no"===n?"Kopieres til utklippstavlen":"Copied to clipboard")}))},children:!a&&(o||i)})})})},Fd="_copy-wrapper_1gjzc_1",$d="_hidden-copy_1gjzc_1",Bd=({className:e,contentToCopy:t,locale:n,messageInfo:r,children:o})=>ge.jsxs("div",{className:Ca("flex items-center hover:text-gama-500",Fd,e),children:[o,ge.jsx(ta,{title:"no"===n?"Kopier":"Copy",className:$d,children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"copy-button",size:"small",variant:"text",className:"cursor-pointer",onClick:e=>{e.preventDefault(),e.stopPropagation(),navigator.clipboard.writeText(t).then((()=>{r("no"===n?"Kopieres til utklippstavlen":"Copied to clipboard")}))},startIcon:ge.jsx(Vd,{width:20,height:20})})})})]}),qd="_styled-widget-title_1mja5_1",Hd=function(e){return ge.jsx("div",{className:qd,children:e.children})},Ud="_styled-widget-header_1qk88_1",Wd=({actions:e,title:t,containerClassname:n,actionsClassname:r})=>ge.jsxs("div",{className:Ca(Ud,n),children:[ge.jsx(Hd,{children:t}),ge.jsx("div",{className:r,children:e})]}),Kd="_asma-core-ui-styled-widget_fvr2z_1",Gd="_widget-header-left_fvr2z_19",Yd="_widget-header-right_fvr2z_25",Jd="_widget-content_fvr2z_31",Xd="_widget-footer_fvr2z_41",Zd="_widget-link_fvr2z_46";function Qd(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6z"})})}function eu(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z"})})}const tu=({children:e,title:t,icon:n,link:r,viewMore:o,persistKey:i,isLoading:l,isEmpty:c,emptyText:d,headerRight:u,headerRightClassName:p})=>{const[f,h]=a(!1);s((()=>{if(i){const e=localStorage.getItem(i);h("true"===e)}}),[i]),s((()=>{i&&localStorage.setItem(i,String(f))}),[f,i]);const m=!!r&&!r.hide,g=!(!o||null!=o&&o.hide);return ge.jsxs("div",{className:Kd,children:[ge.jsxs("div",{className:Gd,children:[n,ge.jsx(Hd,{children:t}),ge.jsx("div",{className:`${Yd} ${p??""}`,children:u})]}),ge.jsx("div",{className:Jd,children:ge.jsxs(ge.Fragment,{children:[e,ge.jsx(Ma,{isLoading:l}),ge.jsx(Oa,{isEmpty:c,emptyText:d})]})}),g&&ge.jsxs("div",{className:Xd,children:[!o||null!=o&&o.hide?ge.jsx("div",{}):ge.jsx(da,{disabled:o.disabled,dataTest:"view-more",variant:"text",endIcon:f?ge.jsx(Qd,{width:20,height:20}):ge.jsx(eu,{width:20,height:20}),onClick:()=>{var e;h(!f),null==(e=null==o?void 0:o.onClick)||e.call(o)},children:f?o.viewLessText:o.viewMoreText}),m?ge.jsx(Gc,{dataTest:"go-to-button",className:Zd,size:"small",href:r.href,onClick:r.onClick,content:r.content}):ge.jsx("div",{})]})]})},nu="_styled-module-title_174mo_1",ru=function(e){return ge.jsx("h1",{"data-test":e.dataTest,className:nu,children:e.children})},ou="_dialog_erjok_1",iu="_hidden_erjok_9";function au(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M10 21v-2H6.41l4.5-4.5l-1.41-1.41l-4.5 4.5V14H3v7zm4.5-10.09l4.5-4.5V10h2V3h-7v2h3.59l-4.5 4.5z"})})}function su(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M19.5 3.09L15 7.59V4h-2v7h7V9h-3.59l4.5-4.5zM4 13v2h3.59l-4.5 4.5l1.41 1.41l4.5-4.5V20h2v-7z"})})}const lu="object"==typeof global&&global&&global.Object===Object&&global;var cu="object"==typeof self&&self&&self.Object===Object&&self;const du=(lu||cu||Function("return this")()).Symbol;var uu=Object.prototype,pu=uu.hasOwnProperty,fu=uu.toString,hu=du?du.toStringTag:void 0;var mu=Object.prototype.toString;var gu="[object Null]",yu="[object Undefined]",vu=du?du.toStringTag:void 0;function bu(e){return null==e?void 0===e?yu:gu:vu&&vu in Object(e)?function(e){var t=pu.call(e,hu),n=e[hu];try{e[hu]=void 0;var r=!0}catch{}var o=fu.call(e);return r&&(t?e[hu]=n:delete e[hu]),o}(e):function(e){return mu.call(e)}(e)}const xu=Array.isArray;function wu(e){if(!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=bu(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}const Cu=({onCloseText:e="",onMinimizeText:t="",onExpandText:n="",onFullScreenText:r="",showCloseIcon:o=!0,showMinimizeIcon:i=!0,showExpandIcon:s=!0,showFullScreenIcon:l=!0,title:c,label:u,children:p,open:f,onClose:h,className:m="",primaryButtonText:g,primaryButtonLoading:y=!1,secondaryButtonText:v,onPrimaryButtonClick:b,onSecondaryButtonClick:x,dataTest:w,actionNode:C,extraActions:k,extraActionsText:j,btnContainerClassName:N,footerClassName:_,footerInfo:E,locale:I="en",enableFullscreen:O=!0,fullScreenState:S,handleFullScreenState:M})=>{const[T,R]=a(!1),[P,D]=a(!1),{open:z,anchorEl:A,handleOpen:V,handleClose:L}=(()=>{const[e,t]=a(null),n=!!e,r=d((e=>{t(e.currentTarget)}),[]);return{open:n,handleClose:d((()=>{t(null)}),[]),handleOpen:r,anchorEl:e}})();if(!f)return null;const F=void 0!==S?S:P,$=g||y,B=$||v,q=()=>{R(!T)};return ge.jsxs(ge.Fragment,{children:[F&&!T&&ge.jsx("div",{className:"z-[51] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70"}),ge.jsx("div",{style:{zIndex:51},className:Ca(ou,!T&&iu),children:ge.jsxs("div",{className:pi("flex items-center justify-between",!T&&"hidden"),"data-test":w,children:[ge.jsx("div",{className:"truncate text-lg font-semibold text-delta-800",children:c}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[s&&ge.jsx(ta,{title:"en"===I?"Expand":"Utvid",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"minimize-button",variant:"text",size:"small",onClick:q,endIcon:s&&ge.jsx(yr,{height:20,width:20,color:"text-gama-500"}),children:n})})}),o&&ge.jsx(ta,{title:"en"===I?"Close":"Lukk",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"close-button",variant:"textGray",size:"small",onClick:h,endIcon:o&&ge.jsx(Bn,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]})}),ge.jsxs("div",{className:Ca("fixed bottom-4 right-4 z-[51] rounded-lg bg-white shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300",m&&!T?m:"",T&&"!h-0 !w-0 opacity-0 duration-0",F&&!T&&"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-[1000px] h-[95dvh] duration-0"),"data-test":w,children:[ge.jsxs("div",{className:"flex flex-col gap-y-2 p-4 border-b-[1px] border-delta-200",children:[ge.jsxs("div",{className:"flex items-center justify-between",children:[u?ge.jsx("div",{className:"text-sm text-delta-700",children:u}):ge.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:c}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[C,i&&ge.jsx(ta,{title:"en"===I?"Minimize":"Minimer",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"minimize-button",variant:"textGray",size:"small",onClick:q,endIcon:i&&ge.jsx(gr,{height:20,width:20,color:"text-delta-700"}),children:t})})}),O&&l&&ge.jsx(ta,{title:F?"en"===I?"Exit full screen":"Avslutt fullskjerm":"en"===I?"Full screen":"Fullskjerm",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:()=>{void 0!==S&&M?M():D(!P)},endIcon:F?ge.jsx(su,{width:20,height:20,color:"text-delta-700"}):ge.jsx(au,{width:20,height:20,color:"text-delta-700"}),children:r})})}),o&&ge.jsx(ta,{title:"en"===I?"Close":"Lukk",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"close-button",variant:"textGray",size:"small",onClick:h,endIcon:ge.jsx(Bn,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]}),u&&ge.jsx("div",{className:"text-2xl font-semibold text-delta-800 truncate",children:c})]}),ge.jsxs("div",{className:pi("flex flex-col",F&&!T&&"h-[87dvh]"),children:[ge.jsx("div",{className:"flex-grow overflow-y-auto",children:"function"==typeof p?p({fullScreen:F}):p}),(xu(k)&&null!=k&&k.length||wu(k))&&j||E?ge.jsxs("div",{className:Ca("flex items-center justify-between p-4 border-0 border-t-[1px] border-solid border-delta-200 bg-white",_),children:[xu(k)&&null!=k&&k.length&&j?ge.jsxs(ge.Fragment,{children:[ge.jsx(da,{dataTest:"extra-actions-button",variant:"textGray",startIcon:ge.jsx(Tn,{width:24,height:24}),onClick:V,children:j}),ge.jsx(Fc,{open:z,anchorEl:A,onClose:L,children:k.map((e=>ge.jsx($c,{className:e.className,onClick:e.onClick,children:e.label},e.label)))})]}):j&&wu(k)&&ge.jsx(da,{dataTest:"extra-action-button",variant:"text",onClick:k,children:j})," ",E,B?ge.jsxs("div",{className:Ca("flex justify-end gap-x-4",N),children:[v&&x&&ge.jsx(da,{dataTest:"cancel-button",variant:"outlined",onClick:x,children:v}),$&&b&&ge.jsx(da,{dataTest:"save-button",startIcon:y&&ge.jsx(Ad,{width:24,height:24}),onClick:b,children:g})]}):null]}):ge.jsx(ge.Fragment,{children:B?ge.jsxs("div",{className:Ca("flex justify-end gap-x-4 border-t-[1px] border-delta-200 p-4",N),children:[v&&x&&ge.jsx(da,{dataTest:"cancel-button",variant:"outlined",onClick:x,children:v}),$&&b&&ge.jsx(da,{dataTest:"save-button",startIcon:y&&ge.jsx(Ad,{width:24,height:24}),onClick:b,children:g})]}):null})]})]})]})},ku=({showCloseIcon:e,tooltipTitle:t,onClick:n})=>e?ge.jsx(ta,{title:t,placement:"top",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"close-button",variant:"textGray",size:"small",onClick:n,endIcon:ge.jsx(Bn,{height:20,width:20,color:"text-delta-700"})})})}):null,ju=({visibility:e,tooltipTitle:t,onClick:n,type:r})=>{if(!e)return null;const o="minimize"===r;return"expand"===r?ge.jsx("div",{children:ge.jsx(ta,{title:t,placement:"top",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"toggle-minimize-btn",variant:"text",size:"small",onClick:n,endIcon:ge.jsx(yr,{height:20,width:20,color:"text-gama-500"})})})})}):o?ge.jsx("div",{children:ge.jsx(ta,{title:t,placement:"top",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"toggle-minimize-btn",variant:"textGray",size:"small",onClick:n,endIcon:ge.jsx(gr,{height:20,width:20,color:"text-delta-700"})})})})}):null},Nu=({fullScreen:e,showFullScreenIcon:t,tooltipTitle:n,onClick:r})=>t?ge.jsx(ta,{title:n,children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:r,endIcon:e?ge.jsx(su,{width:20,height:20,color:"text-delta-700"}):ge.jsx(au,{width:20,height:20,color:"text-delta-700"})})})}):null,_u="_minimized-dialog_16tvw_5",Eu="_dialog_16tvw_1",Iu="_hidden_16tvw_27",Ou={en:{close:"Close",expand:"Expand",minimize:"Minimize",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen"},no:{close:"Lukk",expand:"Utvid",minimize:"Minimer",fullscreen:"Fullskjerm",exitFullscreen:"Avslutt fullskjerm"}};const Su=e=>{const{showCloseIcon:t=!0,showMinimizeIcon:n=!0,showExpandIcon:r=!0,enableFullscreen:o=!0,title:i,label:s,children:l,open:d,onClose:p,classNameOverrides:f={maximized:"",minimized:"",fullscreen:""},dataTest:h,actionNode:m,locale:g="en",style:y}=e,v=ya(),b=function(e="en"){return u((()=>Ou[e]??Ou.en),[e])}(g),x=c(null),{minimized:w,setMinimized:C,fullScreen:k,setFullScreen:j}=(({fullScreenState:e,handleFullScreenState:t,minimizedState:n,handleMinimizedState:r})=>{const[o,i]=a(!1),[s,l]=a(!1);return{fullScreen:void 0!==e?e:s,setFullScreen:e=>t?t():l(e),minimized:void 0!==n?n:o,setMinimized:e=>r?r(e):i(e)}})(e);return d?ge.jsxs(ge.Fragment,{children:[ge.jsx("div",{style:{zIndex:51,...y},className:Ca(_u,!w&&Iu,f.minimized),children:ge.jsxs("div",{className:pi("flex items-center justify-between",!w&&"hidden"),"data-test":h,children:[ge.jsx("div",{className:"truncate max-w-[303px] text-lg font-semibold text-delta-800 pr-1",children:ge.jsx(ta,{title:i,placement:"top",children:ge.jsx("div",{className:"truncate",children:i})})}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[ge.jsx(ju,{type:"expand",visibility:r,onClick:()=>C(!w),tooltipTitle:b.expand}),ge.jsx(ku,{showCloseIcon:t,onClick:p,tooltipTitle:b.close})]})]})}),k&&!w&&ge.jsx("div",{className:"z-[52] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70",onClick:()=>j(!1)}),ge.jsxs("div",{style:{zIndex:51,...y},ref:x,className:Ca(Eu,w&&Iu,f.maximized,k&&!w&&"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-[1000px] h-[95dvh] duration-0 z-[53]"),children:[ge.jsxs("div",{className:Ca("flex flex-col px-4 border-b-[1px] border-delta-200",v?"py-3 gap-y-1":"py-4 gap-y-2"),children:[ge.jsxs("div",{className:"flex items-center justify-between",children:[s?ge.jsx("div",{className:"text-sm text-delta-700",children:s}):ge.jsx("div",{className:Ca("font-semibold text-delta-800",v?"text-xl line-clamp-2":"text-2xl line-clamp-1"),children:i}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[m,ge.jsx(ju,{visibility:n&&!v,type:"minimize",onClick:()=>C(!w),tooltipTitle:b.minimize}),ge.jsx(Nu,{showFullScreenIcon:o&&!v,fullScreen:k,onClick:()=>j(!k),tooltipTitle:k?b.exitFullscreen:b.fullscreen}),ge.jsx(ku,{showCloseIcon:t,onClick:p,tooltipTitle:b.close})]})]}),s&&ge.jsx("div",{className:Ca("font-semibold text-delta-800",v?"text-xl line-clamp-2":"text-2xl line-clamp-1"),children:i})]}),ge.jsx("div",{className:Ca(w&&"hidden","flex flex-grow flex-col overflow-y-auto"),children:l})]})]}):null};function Mu({config:e,MAX_DIALOG_WIDTH:t=600}){const n=p(void 0);return{DialogStackProvider:({children:r})=>{const[o,i]=a([]),l=function(){const[e,t]=a((()=>window.innerWidth));return s((()=>{const e=()=>t(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),e}(),c=d((e=>{const n=[...e].sort(((e,t)=>e.order-t.order)),r=n.length||1,o=Math.min(t,(l-16*(r+1))/r);return n.map(((e,t)=>({...e,width:o,position:{right:16+t*(o+16)}})))}),[l]),u=d(((t,n)=>{var r,o;const a=null==(r=e[t])?void 0:r.dependencies,s=(null==(o=e[t])?void 0:o.order)??1/0,l=n??s;i((e=>{const n=e.find((e=>e.id===t)),r={id:t,open:!0,width:0,position:{right:0},dependencies:a,order:l},o=n?e.map((e=>e.id===t?{...e,open:!0,dependencies:a}:e)):[...e,r];return c(o.filter((e=>e.open)))}))}),[c]),p=d((e=>{i((t=>{var n;const r=new Set([e]);let o;do{o=!1;for(const e of t)null!=(n=e.dependencies)&&n.some((e=>r.has(e)))&&!r.has(e.id)&&(r.add(e.id),o=!0)}while(o);return c(t.filter((e=>!r.has(e.id))))}))}),[c]),f=d((e=>o.find((t=>t.id===e))),[o]);return ge.jsx(n.Provider,{value:{dialogs:o,openDialog:u,closeDialog:p,getDialogState:f},children:r})},useDialogStack:function(){const e=f(n);if(!e)throw new Error("useDialogStack must be used within DialogStackProvider");return e}}}export{An as ArchiveIcon,bn as AssignmentIcon,xn as AssignmentOutlineIcon,$ as Avatar,br as BadgeIcon,en as BellIcon,Qt as BellOutlineIcon,rr as CalendarBlankOutlineIcon,gn as CalendarIcon,vn as CalendarRangeIcon,Ln as CheckBoxCheckedIcon,mn as CheckFactIcon,hn as CheckFactOutlineIcon,qn as CheckIcon,fn as CheckOutlineIcon,on as ChevronDoubleLeftIcon,an as ChevronDoubleRightIcon,Fn as ChevronDownIcon,rn as ChevronLeftIcon,nn as ChevronRightIcon,$n as ChevronUpIcon,B as ClickAwayListener,Bn as CloseIcon,mr as ConsentsIcon,q as Container,Ld as CopyButton,Bd as CopyWrapper,cn as DashboardViewIcon,dn as DashboardViewOutlineIcon,Xn as DeleteOutlineIcon,Tn as DotsVerticalIcon,Vn as DownloadIcon,Yn as DragHorizontalIcon,zn as DropDownIcon,Dn as DropUpIcon,er as DvrIcon,dr as EarthIcon,xr as EditSquareIcon,tr as ErrorOutlineIcon,H as Fade,ir as FastCheckOutlineIcon,Jn as FilePdfIcon,Zn as FilterIcon,In as FindReplaceIcon,On as FindReplacePeopleIcon,U as FormLabel,tn as HamburgerIcon,jr as HandymanIcon,kr as HandymanOutlineIcon,Wn as InboxOutboxIcon,Kn as InboxOutboxOutlineIcon,nl as IndeterminateIcon,yr as KeyboardCapslockIcon,or as LinkOutlineIcon,wn as ListNumberedIcon,cr as ListSettingsLineIcon,sr as ListStatusIcon,Pn as LoadingIcon,Qn as LockIcon,Cn as MessageProcessingIcon,kn as MessageProcessingOutlineIcon,vr as MessageReplyIcon,Cu as MinimizableDialog,Su as MinimizableDialogV2,gr as MinimizeIcon,yn as NewCalendarIcon,hr as OutlineCalendarMonth,W as Paper,ln as PdfIcon,pr as PencilOutlineIcon,pn as PeopleIcon,un as PeopleOutlineIcon,Hn as PermMediaIcon,Un as PermMediaOutline,Sn as PersonIcon,Mn as PersonOutlineIcon,Nr as PinIcon,wr as PlusIcon,Cr as PlusIconCircle,K as Popper,sn as QnrIcon,nr as ReplayIcon,jn as ReportBoxIcon,Nn as ReportBoxOutlineIcon,Rn as SearchIcon,_n as SettingsIcon,ur as SettingsMenuHorizontalIcon,En as SettingsOutlineIcon,G as Skeleton,Y as Stack,kd as StyledAccordion,Nd as StyledAccordionDetails,jd as StyledAccordionSummary,ye as StyledBadge,da as StyledButton,rl as StyledCheckbox,Er as StyledChip,va as StyledDialog,ka as StyledDialogActions,Na as StyledDialogContent,Ea as StyledDialogTitle,Lc as StyledDrawer,Oa as StyledEmptyPage,Ed as StyledFilterButton,Sd as StyledFilterMenu,Pc as StyledFormControl,Dc as StyledFormControlLabel,Vc as StyledFormGroup,zc as StyledFormHelperText,sa as StyledFormLabel,ol as StyledInputField,Ac as StyledInputLabel,Sr as StyledInteractiveChip,Rc as StyledLabel,Gc as StyledLink,Ma as StyledLoading,Fc as StyledMenu,$c as StyledMenuItem,Bc as StyledMenuList,ru as StyledModuleTitle,_d as StyledPopover,Bl as StyledRadio,Tc as StyledRadioGroup,il as StyledSearchField,ll as StyledSelect,pl as StyledSelectAutocomplete,cl as StyledSelectItem,fl as StyledSlider,Cl as StyledSwitch,Yc as StyledTab,Jc as StyledTabs,sl as StyledTextarea,ta as StyledTooltip,na as StyledTypography,tu as StyledWidget,Wd as StyledWidgetHeader,Hd as StyledWidgetTitle,lr as TextBoxCheckOutlineIcon,Gn as TopicIcon,ar as UnknownDocumentOutlineRoundedIcon,fr as WarningAmberOutlineIcon,_r as WorkIcon,Mu as createDialogStack,te as omit,de as prepareForSlot,le as setMidnightTime,ce as setZeroTime};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.1.76",
6
+ "version": "3.1.77",
7
7
  "type": "module",
8
8
  "files": [
9
9
  "dist/**/*",