1(self.webpackChunksevi_ui=self.webpackChunksevi_ui||[]).push([[3552],{42838(e){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,s){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,s)}function s(e,a,r){return(s=!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?function(e,s,a){var r=[null];r.push.apply(r,s);var n=new(Function.bind.apply(e,r));return a&&t(n,a.prototype),n}:Reflect.construct).apply(null,arguments)}function a(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,void 0);var s=Object.prototype.toString.call(e).slice(8,-1);if("Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s)return Array.from(e);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return r(e,t)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,a=Array(t);s<t;s++)a[s]=e[s];return a}var n,i=Object.hasOwnProperty,o=Object.setPrototypeOf,l=Object.isFrozen,c=Object.getPrototypeOf,m=Object.getOwnPropertyDescriptor,d=Object.freeze,p=Object.seal,u=Object.create,f="undefined"!=typeof Reflect&&Reflect,h=f.apply,g=f.construct;h||(h=function(e,t,s){return e.apply(t,s)}),d||(d=function(e){return e}),p||(p=function(e){return e}),g||(g=function(e,t){return s(e,a(t))});var y=M(Array.prototype.forEach),v=M(Array.prototype.pop),b=M(Array.prototype.push),_=M(String.prototype.toLowerCase),x=M(String.prototype.toString),E=M(String.prototype.match),w=M(String.prototype.replace),N=M(String.prototype.indexOf),A=M(String.prototype.trim),j=M(RegExp.prototype.test),T=(n=TypeError,function(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return g(n,t)});function M(e){return function(t){for(var s=arguments.length,a=Array(s>1?s-1:0),r=1;r<s;r++)a[r-1]=arguments[r];return h(e,t,a)}}function O(e,t,s){s=null!==(a=s)&&void 0!==a?a:_,o&&o(e,null);for(var a,r=t.length;r--;){var n=t[r];if("string"==typeof n){var i=s(n);i!==n&&(l(t)||(t[r]=i),n=i)}e[n]=!0}return e}function S(e){var t,s=u(null);for(t in e)!0===h(i,e,[t])&&(s[t]=e[t]);return s}function D(e,t){for(;null!==e;){var s=m(e,t);if(s){if(s.get)return M(s.get);if("function"==typeof s.value)return M(s.value)}e=c(e)}return function(e){return console.warn("fallback value for",e),null}}var L=d(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),k=d(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),R=d(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),C=d(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=d(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),F=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),P=d(["#text"]),U=d(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
1spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),H=d(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),z=d(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),V=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=p(/<%[\w\W]*|[\w\W]*%>/gm),G=p(/\${[\w\W]*}/gm),q=p(/^data-[\-\w.\u00B7-\uFFFF]+$/),$=p(/^aria-[\-\w]+$/),X=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=p(/^(?:\w+script|data):/i),Z=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=p(/^html$/i),K=p(/^[a-z][.\w]*(-[.\w]+)+$/i),Q=function(t,s){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var a=null,r="data-tt-policy-suffix";s.currentScript&&s.currentScript.hasAttribute(r)&&(a=s.currentScript.getAttribute(r));var n="dompurify"+(a?"#"+a:"");try{return t.createPolicy(n,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+n+" could not be created."),null}};return function t(){var s,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,i=function(e){return t(e)};if(i.version="2.5.9",i.removed=[],!n||!n.document||9!==n.document.nodeType)return i.isSupported=!1,i;var o=n.document,l=n.document,c=n.DocumentFragment,m=n.HTMLTemplateElement,p=n.Node,u=n.Element,f=n.NodeFilter,h=n.NamedNodeMap,g=void 0===h?n.NamedNodeMap||n.MozNamedAttrMap:h,M=n.HTMLFormElement,ee=n.DOMParser,et=n.trustedTypes,es=u.prototype,ea=D(es,"cloneNode"),er=D(es,"nextSibling"),en=D(es,"childNodes"),ei=D(es,"parentNode");if("function"==typeof m){var eo=l.createElement("template");eo.content&&eo.content.ownerDocument&&(l=eo.content.ownerDocument)}var el=Q(et,o),ec=el?el.createHTML(""):"",em=l,ed=em.implementation,ep=em.createNodeIterator,eu=em.createDocumentFragment,ef=em.getElementsByTagName,eh=o.importNode,eg={};try{eg=S(l).documentMode?l.documentMode:{}}catch(e){}var ey={};i.isSupported="function"==typeof ei&&ed&&void 0!==ed.createHTMLDocument&&9!==eg;var ev=X,eb=null,e_=O({},[].concat(a(L),a(k),a(R),a(I),a(P))),ex=null,eE=O({}
1,[].concat(a(U),a(H),a(z),a(V))),ew=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eN=null,eA=null,ej=!0,eT=!0,eM=!1,eO=!0,eS=!1,eD=!0,eL=!1,ek=!1,eR=!1,eC=!1,eI=!1,eF=!1,eP=!0,eU=!1,eH=!0,ez=!1,eV={},eB=null,eW=O({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),eG=null,eq=O({},["audio","video","img","source","image","track"]),e$=null,eX=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eY="http://www.w3.org/1998/Math/MathML",eZ="http://www.w3.org/2000/svg",eJ="http://www.w3.org/1999/xhtml",eK=eJ,eQ=!1,e0=null,e1=O({},[eY,eZ,eJ],x),e3=["application/xhtml+xml","text/html"],e2=null,e4=l.createElement("form"),e5=function(e){return e instanceof RegExp||e instanceof Function},e9=function(t){(!e2||e2!==t)&&(t&&"object"===e(t)||(t={}),t=S(t),r="application/xhtml+xml"===(s=s=-1===e3.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE)?x:_,eb="ALLOWED_TAGS"in t?O({},t.ALLOWED_TAGS,r):e_,ex="ALLOWED_ATTR"in t?O({},t.ALLOWED_ATTR,r):eE,e0="ALLOWED_NAMESPACES"in t?O({},t.ALLOWED_NAMESPACES,x):e1,e$="ADD_URI_SAFE_ATTR"in t?O(S(eX),t.ADD_URI_SAFE_ATTR,r):eX,eG="ADD_DATA_URI_TAGS"in t?O(S(eq),t.ADD_DATA_URI_TAGS,r):eq,eB="FORBID_CONTENTS"in t?O({},t.FORBID_CONTENTS,r):eW,eN="FORBID_TAGS"in t?O({},t.FORBID_TAGS,r):{},eA="FORBID_ATTR"in t?O({},t.FORBID_ATTR,r):{},eV="USE_PROFILES"in t&&t.USE_PROFILES,ej=!1!==t.ALLOW_ARIA_ATTR,eT=!1!==t.ALLOW_DATA_ATTR,eM=t.ALLOW_UNKNOWN_PROTOCOLS||!1,eO=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,eS=t.SAFE_FOR_TEMPLATES||!1,eD=!1!==t.SAFE_FOR_XML,eL=t.WHOLE_DOCUMENT||!1,eC=t.RETURN_DOM||!1,eI=t.RETURN_DOM_FRAGMENT||!1,eF=t.RETURN_TRUSTED_TYPE||!1,eR=t.FORCE_BODY||!1,eP=!1!==t.SANITIZE_DOM,eU=t.SANITIZE_NAMED_PROPS||!1,eH=!1!==t.KEEP_CONTENT,ez=t.IN_PLACE||!1,ev=t.ALLOWED_URI_REGEXP||ev,eK=t.NAMESPACE||eJ,ew=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&e5(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ew.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&e5(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ew.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ew.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eS&&(eT=!1),eI&&(eC=!0),eV&&(eb=O({},a(P)),ex=[],!0===eV.html&&(O(eb,L),O(ex,U)),!0===eV.svg&&(O(eb,k),O(ex,H),O(ex,V)),!0===eV.svgFilters&&(O(eb,R),O(ex,H),O(ex,V)),!0===eV.mathMl&&(O(eb,I),O(ex,z),O(ex,V))),t.ADD_TAGS&&(eb===e_&&(eb=S(eb)),O(eb,t.ADD_TAGS,r)),t.ADD_ATTR&&(ex===eE&&(ex=S(ex)),O(ex,t.ADD_ATTR,r)),t.ADD_URI_SAFE_ATTR&&O(e$,t.ADD_URI_SAFE_ATTR,r),t.FORBID_CONTENTS&&(eB===eW&&(eB=S(eB)),O(eB,t.FORBID_CONTENTS,r)),eH&&(eb["#text"]=!0),eL&&O(eb,["html","head","body"]),eb.table&&(O(eb,["tbody"]),delete eN.tbody),d&&d(t),e2=t)},e8=O({},["mi","mo","mn","ms","mtext"]),e7=O({},["annotation-xml"]),e6=O({},["title","style","font","a","script"]),te=O({},k);O(te,R),O(te,C);var tt=O({},I);O(tt,F);var ts=function(e){var t=ei(e);t&&t.tagName||(t={namespaceURI:eK,tagName:"template"});var a=_(e.tagName),r=_(t.tagName);return!!e0[e.namespaceURI]&&(e.namespaceURI===eZ?t.namespaceURI===eJ?"svg"===a:t.namespaceURI===eY?"svg"===a&&("annotation-xml"===r||e8[r]):!!te[a]:e.namespaceURI===eY?t.namespaceURI===eJ?"math"===a:t.namespaceURI===eZ?"math"===a&&e7[r]:!!tt[a]:e.namespaceURI===eJ?(t.namespaceURI!==eZ||!!e7[r])&&(t.namespaceURI!==eY||!!e8[r])&&!tt[a]&&(e6[a]||!te[a]):"application/xhtml+xml"===s&&!!e0[e.namespaceURI])},ta=function(e){b(i.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ec}catch(t){e.remove()}}},tr=function(e,t){try{b(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ex[e]){if(eC||eI)try{ta(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}}},tn=function(e){if(eR)e="<remove></remove>"+e;else{var t,a,r=E(e,/^[\r\n\t ]+/);a=r&&r[0]}"application/xhtml+xml"===s&&eK===eJ&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var n=el?el.createHTML(e):e;if(eK===eJ)try{t=new ee().parseFromString(n,s)}catch(e){}if(!t||!t.documentElement){t=ed.createDocument(eK,"template",null);try{t.documentElement.innerHTML=eQ?ec:n}catch(e){}}var i=t.body||t.documentElement;return(e&&a&&i.insertBefore(l.createTextNode(a),i.childNodes[0]||null),eK===eJ)?ef.call(t,eL?"html":"body")[0]:eL?t.documentElement:i},ti=function(e){return ep.call(e.ownerDocument||e,e,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null,!1)},to=function(e){return e instanceof M&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof g)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},tl=function(t){return"object"===e(p)?t instanceof p:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},tc=function(e,t,s){ey[e]&&y(ey[e],function(e){e.call(i,t,s,e2)})},tm=function(e){if(tc("beforeSanitizeElements",e,null),to(e)||j(/[\u0080-\uFFFF]/,e.nodeName))return ta(e),!0;var t,s=r(e.nodeName);if(tc("uponSanitizeElement",e,{tagName:s,allowedTags:eb}),e.hasChildNodes()&&!tl(e.firstElementChild)&&(!tl(e.content)||!tl(e.content.firstElementChild))&&j(/<[/\w]/g,e.innerHTML)&&j(/<[/\w]/g,e.textContent)||"select"===s&&j(/<template/i,e.innerHTML)||7===e.nodeType||eD&&8===e.n
1odeType&&j(/<[/\w]/g,e.data))return ta(e),!0;if(!eb[s]||eN[s]){if(!eN[s]&&tp(s)&&(ew.tagNameCheck instanceof RegExp&&j(ew.tagNameCheck,s)||ew.tagNameCheck instanceof Function&&ew.tagNameCheck(s)))return!1;if(eH&&!eB[s]){var a=ei(e)||e.parentNode,n=en(e)||e.childNodes;if(n&&a)for(var o=n.length,l=o-1;l>=0;--l){var c=ea(n[l],!0);c.__removalCount=(e.__removalCount||0)+1,a.insertBefore(c,er(e))}}return ta(e),!0}return e instanceof u&&!ts(e)||("noscript"===s||"noembed"===s||"noframes"===s)&&j(/<\/no(script|embed|frames)/i,e.innerHTML)?(ta(e),!0):(eS&&3===e.nodeType&&(t=w(t=e.textContent,B," "),t=w(t,W," "),t=w(t,G," "),e.textContent!==t&&(b(i.removed,{element:e.cloneNode()}),e.textContent=t)),tc("afterSanitizeElements",e,null),!1)},td=function(e,t,s){if(eP&&("id"===t||"name"===t)&&(s in l||s in e4))return!1;if(eT&&!eA[t]&&j(q,t));else if(ej&&j($,t));else if(!ex[t]||eA[t]){if(!(tp(e)&&(ew.tagNameCheck instanceof RegExp&&j(ew.tagNameCheck,e)||ew.tagNameCheck instanceof Function&&ew.tagNameCheck(e))&&(ew.attributeNameCheck instanceof RegExp&&j(ew.attributeNameCheck,t)||ew.attributeNameCheck instanceof Function&&ew.attributeNameCheck(t))||"is"===t&&ew.allowCustomizedBuiltInElements&&(ew.tagNameCheck instanceof RegExp&&j(ew.tagNameCheck,s)||ew.tagNameCheck instanceof Function&&ew.tagNameCheck(s))))return!1}else if(e$[t]);else if(j(ev,w(s,Z,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===N(s,"data:")&&eG[e]);else if(eM&&!j(Y,w(s,Z,"")));else if(s)return!1;return!0},tp=function(e){return"annotation-xml"!==e&&E(e,K)},tu=function(t){tc("beforeSanitizeAttributes",t,null);var s,a,n,o,l=t.attributes;if(!(!l||to(t))){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ex};for(o=l.length;o--;){var m=(s=l[o]).name,d=s.namespaceURI;if(a="value"===m?s.value:A(s.value),c.attrName=n=r(m),c.attrValue=a,c.keepAttr=!0,c.forceKeepAttr=void 0,tc("uponSanitizeAttribute",t,c),a=c.attrValue,!c.forceKeepAttr&&(tr(m,t),c.keepAttr)){if(!eO&&j(/\/>/i,a)){tr(m,t);continue}eS&&(a=w(a,B," "),a=w(a,W," "),a=w(a,G," "));var p=r(t.nodeName);if(td(p,n,a)){if(eU&&("id"===n||"name"===n)&&(tr(m,t),a="user-content-"+a),eD&&j(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,a)){tr(m,t);continue}if(el&&"object"===e(et)&&"function"==typeof et.getAttributeType){if(d);else switch(et.getAttributeType(p,n)){case"TrustedHTML":a=el.createHTML(a);break;case"TrustedScriptURL":a=el.createScriptURL(a)}}try{d?t.setAttributeNS(d,m,a):t.setAttribute(m,a),to(t)?ta(t):v(i.removed)}catch(e){}}}}tc("afterSanitizeAttributes",t,null)}},tf=function e(t){var s,a=ti(t);for(tc("beforeSanitizeShadowDOM",t,null);s=a.nextNode();)tc("uponSanitizeShadowNode",s,null),tm(s),tu(s),s.content instanceof c&&e(s.content);tc("afterSanitizeShadowDOM",t,null)};return i.sanitize=function(t){var s,a,l,m,d,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((eQ=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!tl(t)){if("function"==typeof t.toString){if("string"!=typeof(t=t.toString()))throw T("dirty is not a string, aborting")}else throw T("toString is not a function")}if(!i.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(tl(t))return n.toStaticHTML(t.outerHTML)}return t}if(ek||e9(u),i.removed=[],"string"==typeof t&&(ez=!1),ez){if(t.nodeName){var f=r(t.nodeName);if(!eb[f]||eN[f])throw T("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof p)1===(a=(s=tn("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName?s=a:"HTML"===a.nodeName?s=a:s.appendChild(a);else{if(!eC&&!eS&&!eL&&-1===t.indexOf("<"))return el&&eF?el.createHTML(t):t;if(!(s=tn(t)))return eC?null:eF?ec:""}s&&eR&&ta(s.firstChild);for(var h=ti(ez?t:s);l=h.nextNode();)(3!==l.nodeType||l!==m)&&(tm(l),tu(l),l.content instanceof c&&tf(l.content),m=l);if(m=null,ez)return t;if(eC){if(eI)for(d=eu.call(s.ownerDocument);s.firstChild;)d.appendChild(s.firstChild);else d=s;return(ex.shadowroot||ex.shadowrootmod)&&(d=eh.call(o,d,!0)),d}var g=eL?s.outerHTML:s.innerHTML;return eL&&eb["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&j(J,s.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+s.ownerDocument.doctype.name+">\n"+g),eS&&(g=w(g,B," "),g=w(g,W," "),g=w(g,G," ")),el&&eF?el.createHTML(g):g},i.setConfig=function(e){e9(e),ek=!0},i.clearConfig=function(){e2=null,ek=!1},i.isValidAttribute=function(e,t,s){return e2||e9({}),td(r(e),r(t),s)},i.addHook=function(e,t){"function"==typeof t&&(ey[e]=ey[e]||[],b(ey[e],t))},i.removeHook=function(e){if(ey[e])return v(ey[e])},i.removeHooks=function(e){ey[e]&&(ey[e]=[])},i.removeAllHooks=function(){ey={}},i}()}()},4213(e,t,s){var a,r;void 0!==(r="function"==typeof(a=function(){"use strict";function t(e,t,s){var a=new XMLHttpRequest;a.open("GET",e),a.responseType="blob",a.onload=function(){o(a.response,t,s)},a.onerror=function(){console.error("could not download file")},a.send()}function a(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(s){var t=document.createEvent("MouseEvents");
1t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var n="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof s.g&&s.g.global===s.g?s.g:void 0,i=n.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),o=n.saveAs||("object"!=typeof window||window!==n?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(e,s,i){var o=n.URL||n.webkitURL,l=document.createElement("a");l.download=s=s||e.name||"download",l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?r(l):a(l.href)?t(e,s,i):r(l,l.target="_blank")):(l.href=o.createObjectURL(e),setTimeout(function(){o.revokeObjectURL(l.href)},4e4),setTimeout(function(){r(l)},0))}:"msSaveOrOpenBlob"in navigator?function(e,s,n){if(s=s||e.name||"download","string"!=typeof e){var i;navigator.msSaveOrOpenBlob((void 0===(i=n)?i={autoBom:!1}:"object"!=typeof i&&(console.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e),s)}else if(a(e))t(e,s,n);else{var o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){r(o)})}}:function(e,s,a,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return t(e,s,a);var o="application/octet-stream"===e.type,l=/constructor/i.test(n.HTMLElement)||n.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&l||i)&&"undefined"!=typeof FileReader){var m=new FileReader;m.onloadend=function(){var e=m.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location=e,r=null},m.readAsDataURL(e)}else{var d=n.URL||n.webkitURL,p=d.createObjectURL(e);r?r.location=p:location.href=p,r=null,setTimeout(function(){d.revokeObjectURL(p)},4e4)}});n.saveAs=o.saveAs=o,e.exports=o})?a.apply(t,[]):a)&&(e.exports=r)},61298(e,t,s){"use strict";s.d(t,{p:()=>p});var a=s(18420),r=s(96540),n=s(63679),i=s(98955);let o=e=>r.createElement("svg",Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),r.createElement("path",{d:"M21 3c1.654 0 3 1.346 3 3v12c0 1.654-1.346 3-3 3H3c-1.654 0-3-1.346-3-3V6c0-1.654 1.346-3 3-3Zm1 3.203-9.372 7.575a.996.996 0 0 1-1.256 0L2 6.203V18c0 .551.449 1 1 1h18c.551 0 1-.449 1-1V6.203ZM20.307 5H3.693L12 11.714 20.307 5Z",fill:"#222",fillRule:"evenodd",className:"fi-icon-base-fill"}));var l=s(61727),c=s(97297),m=s(45564);let d=(0,n.Ay)(e=>{let{className:t,mousePointer:s,ariaLabel:n,color:l,fill:d,baseColor:p,highlightColor:u}=e,f=(0,a.T)(e,["className","mousePointer","ariaLabel","color","fill","baseColor","highlightColor"]);return r.createElement(o,Object.assign({className:(0,i.A)(c.z,t,{[c.X]:!!s})},f,(0,m.r)(n),(0,m.f)(n)))})` 2 ${l.Zv} 3`,p=e=>r.createElement(d,Object.assign({},e));p.displayName="Icon"},78736(e,t,s){"use strict";s.d(t,{R:()=>p});var a=s(18420),r=s(96540),n=s(63679),i=s(98955);let o=e=>r.createElement("svg",Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),r.createElement("g",{fillRule:"nonzero",fill:"none"},r.createElement("path",{d:"M2 1.333C2 .597 2.599 0 3.327 0h12.006L22 6.667v16.002c0 .735-.599 1.331-1.328 1.331H3.328A1.328 1.328 0 0 1 2 22.667V1.333Z",fill:"#ECEDEE"}),r.createElement("path",{d:"M2 22h20v.67A1.33 1.33 0 0 1 20.67 24H3.33A1.33 1.33 0 0 1 2 22.67V22Z",fill:"#00347A"}),r.createElement("path",{d:"M15.333 0v5.334a1.33 1.33 0 0 0 1.333 1.333H22L15.333 0Z",fill:"#C8CDD0"}),r.createElement("path",{d:"M5.344 10.9a.4.4 0 1 1 0-.8h10.335a.4.4 0 1 1 0 .8H5.344ZM5.344 12.9a.4.4 0 1 1 0-.8h10.335a.4.4 0 1 1 0 .8H5.344ZM5.344 14.9a.4.4 0 1 1 0-.8h10.335a.4.4 0 1 1 0 .8H5.344ZM5.318 16.9a.4.4 0 1 1 0-.8h6.364a.4.4 0 1 1 0 .8H5.318Z",fill:"#00347A"})));var l=s(61727),c=s(97297),m=s(45564);let d=(0,n.Ay)(e=>{let{className:t,mousePointer:s,ariaLabel:n,color:l,fill:d,baseColor:p,highlightColor:u}=e,f=(0,a.T)(e,["className","mousePointer","ariaLabel","color","fill","baseColor","highlightColor"]);return r.createElement(o,Object.assign({className:(0,i.A)(c.z,t,{[c.X]:!!s})},f,(0,m.r)(n),(0,m.f)(n)))})` 4 ${l.C} 5`,p=e=>r.createElement(d,Object.assign({},e));p.displayName="Icon"},80731(e,t,s){"use strict";s.d(t,{A:()=>_});var a,r=s(74848),n=s(96540),i=s(4213),o=s(93443),l=s(34455),c=s(19086),m=s(75214),d=s(94668),p=s(78736),u=s(29104),f=s(96647),h=s(14531),g=s(56875);function y(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}let v=(e,t)=>
5(0,c.e)(e/1024,t,"0,0.00");class b extends(a=n.Component){render(){let{translate:e,lang:t,view:s}=this.props.appContext;return this.props.items&&this.props.items.length>0?(0,r.jsxs)("div",{className:"message-attachments",title:e(this.props.title),children:[(0,r.jsx)("div",{className:"message-attachments-title",children:(0,r.jsx)("span",{className:"semibold text-small",children:e(this.props.title)})}),(0,r.jsx)("div",{role:"list",children:this.props.items.map((s,a)=>(0,r.jsx)("div",{className:"message-attachment",role:"listitem",children:"REMOVED"!==s.state?this.getAttachment(s,e,t):this.getOutdatedAttachmentPlaceholder(s,e)},a))}),(0,r.jsxs)("div",{className:"flex-box flex-wrap justify-content-between",children:[(0,r.jsx)("span",{className:"message-attachment-info-help-text",children:e("my_messages_attachment_save_info")}),(0,r.jsx)(f.q,{to:(0,h.OE)({messageChainId:String(this.props.messageId),returnTo:s?(0,g.s)(s,t):""}),className:"text-small ms-auto",children:e("my_messages_attachment_help")})]})]}):(0,r.jsx)("span",{"aria-label":"-"})}constructor(e){super(e),y(this,"downloadFile",e=>{let t={subject:"",attachmentId:e.attachmentId,mediaType:e.mediaType,name:e.name,size:e.size};this.props.clearErrorMessages();let s=this.props.isPrincipal?"/api/messages/principal/attachment/download":"/api/messages/attachment/download";(0,o.lw)(s,t).then(e=>e.blob()).then(t=>{(0,i.saveAs)(t,e.name)}).catch(()=>{this.props.showErrorMessage({uid:e.attachmentId,contents:[{messageKey:"my_messages_attachment_download_failed"}]})})}),y(this,"getAttachment",(e,t,s)=>{if(e.url){let s=e.subject||e.name;return(0,r.jsxs)(m.N_,{href:e.url,children:[(0,r.jsx)("span",{className:"visually-hidden",children:t("my_messages_aria_download_attachment",{filename:s})}),(0,r.jsxs)("div",{"aria-hidden":"true",className:"message-attachment-file-info",children:[(0,r.jsx)(b.AttachmentIcon,{item:e}),(0,r.jsx)("div",{children:(0,r.jsx)("div",{children:s})})]})]})}return e.attachmentId?this.props.appContext.isFeatureEnabled("MSG-17820_attachment_download_link")?(0,r.jsx)(u.G,{"aria-label":`${t("my_messages_aria_download_attachment",{filename:e.name})}, ${t("screen_reader_external_link")}`,className:"matomo_download",href:this.downloadPath(this.props.isPrincipal,e.attachmentId),labelNewWindow:t("screen_reader_external_link"),toNewWindow:!0,children:(0,r.jsxs)("div",{className:"message-attachment-file-info","aria-hidden":!0,children:[(0,r.jsx)(b.AttachmentIcon,{item:e}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"message-attachment-name",children:e.name}),(0,r.jsxs)("div",{className:"message-attachment-size",children:[v(e.size,s)," ",t("my_messages_attachment_size")]})]})]})}):(0,r.jsx)(m.N_,{"aria-label":t("my_messages_aria_download_attachment",{filename:e.name}),href:"#",onClick:t=>{t.preventDefault(),this.downloadFile(e)},children:(0,r.jsxs)("div",{className:"message-attachment-file-info",children:[(0,r.jsx)(b.AttachmentIcon,{item:e}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"message-attachment-name",children:e.name}),(0,r.jsxs)("div",{className:"message-attachment-size",children:[v(e.size,s)," ",t("my_messages_attachment_size")]})]})]})}):(0,r.jsxs)("div",{className:"message-attachment-file-info",children:[(0,r.jsx)(b.AttachmentIcon,{item:e}),e.name," (",t("my_messages_attachment_not_available"),")"]})}),y(this,"downloadPath",(e,t)=>e?`/api/messages/principal/attachment/${t}`:`/api/messages/attachment/${t}`),y(this,"getOutdatedAttachmentPlaceholder",(e,t)=>(0,r.jsxs)("div",{className:"message-attachment-file-info",children:[(0,r.jsx)(b.AttachmentIcon,{item:e}),t("my_messages_attachment_outdated",{tunniste:e.attachmentId,nimi:e.name})]}))}}y(b,"AttachmentIcon",({item:e})=>e.mediaType&&"link"===e.mediaType?(0,r.jsx)("span",{className:"icon",children:(0,r.jsx)(d.t,{className:"attachment-type-icon"})}):(e.mediaType&&e.mediaType.startsWith("image/"),(0,r.jsx)("span",{className:"icon",children:(0,r.jsx)(p.R,{className:"attachment-type-icon"})})));let _=(0,l.Lk)(b)},53325(e,t,s){"use strict";s.d(t,{A:()=>i});var a=s(96540),r=s(30397);class n extends a.Component{componentDidMount(){this.refreshErrors()}componentDidUpdate(){this.refreshErrors()}render(){return null}constructor(e){var t,s;super(e),t="refreshErrors",s=()=>{this.props.failedValidators&&this.props.failedValidators.length>0&&(this.props.failedValidators.map(e=>{this.props.showErrorMessage((0,r.p)(e))}),this.props.clearValidators())},t in this?Object.defineProperty(this,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):this[t]=s}}let i=n},98921(e,t,s){"use strict";s.d(t,{P:()=>p});var a=s(74848),r=s(96540),n=s(42838),i=s(75214),o=s(30397),l=s(82586);let c=RegExp(/(https?:\/\/[\S]+)/,"gi"),m=(e,t)=>
5{let s=n.sanitize(e);return(0,a.jsx)(i.N_,{href:s,className:"matomo_ignore",children:s},t)},d=e=>{let t=e.match(c);if(!t)return(0,a.jsx)(r.Fragment,{children:e});{let s=e.split(c);return(0,a.jsx)(r.Fragment,{children:s.map((e,s)=>e?t.indexOf(e)>-1?m(e,s):e:null)})}},p=({content:e,bodyFormat:t,parseLinks:s})=>e?t===o.y9.MARKDOWN?(0,a.jsx)("div",{className:"message-content",children:(0,a.jsx)(l.F,{wrapper:({children:e})=>(0,a.jsx)("div",{className:"message-content-markdown",children:e}),components:{h1:e=>(0,a.jsx)("h3",{children:e.children}),h2:e=>(0,a.jsx)("h4",{children:e.children}),a:e=>(0,a.jsx)(i.N_,{href:e.href,className:"matomo_ignore",children:e.children})},children:e})}):(0,a.jsx)("div",{className:"message-content",children:s?d(e):e}):(0,a.jsx)("div",{className:"message-content"})},79602(e,t,s){"use strict";s.d(t,{A:()=>f});var a,r=s(74848),n=s(96540),i=s(23120),o=s(72320),l=s(69583),c=s(34455),m=s(2317);let{useContext:d}=a||(a=s.t(n,2)),p=(e,t)=>(0,i.A)((0,o.Vq)(e,t))+((0,l.Ef)()?"":" "+(0,o.Dj)(e)),u=(e,t,s)=>e?t("my_messages_message_receipt_confirmed_at",{receiptConfirmedAt:(0,o.WV)((0,o.I6)(e),s)}):t("my_messages_message_receipt_confirmed"),f=e=>{let{lang:t,translate:s}=d(c.ic),a=(0,o.I6)(e.createdTime),{confirmationRequirement:n,receiptConfirmedAt:i,state:l}=e.message;return(0,r.jsxs)("div",{className:"row",children:[(0,r.jsxs)("div",{className:"message-header-fromto padding-0 col-lg-9 col-12",children:[(0,r.jsxs)("h3",{className:"message-header-from",children:[(0,r.jsxs)("b",{children:[s("my_messages_aria_sender"),": "]}),(0,r.jsx)("span",{translate:"no",children:e.fromText}),(0,r.jsx)("time",{dateTime:(0,o.Vq)(a,t),className:"visually-hidden",children:p(a,t)})]}),(0,r.jsxs)("h3",{className:"message-header-to",children:[(0,r.jsxs)("b",{children:[s("my_messages_aria_recipient"),": "]}),(0,r.jsx)("span",{translate:"no",children:e.toText})]}),n&&(l===m.q.CONFIRMED||l===m.q.READ)&&(0,r.jsx)("p",{className:"message-header-receipt-confirmation break-words",children:u(i,s,t)})]}),(0,r.jsx)("span",{"aria-hidden":!0,className:"message-header-time text-narrow text-small padding-0 text-lg-right col-lg-3 col-12",children:p(a,t)})]})}},108(e,t,s){"use strict";s.d(t,{Ay:()=>c,a1:()=>o,kb:()=>r});let a="mymessages.failure.activate",r=()=>({type:a}),n="mymessages.failure.deactivate",i=()=>({type:n}),o=()=>e=>e(i()),l={errorActive:!1},c=(e=l,t)=>{switch(t.type){case a:return Object.assign({},{errorActive:!0});case n:return Object.assign({},{errorActive:!1});default:return e}}},68485(e,t,s){"use strict";s.d(t,{$Q:()=>d,GQ:()=>h,Jc:()=>p,Tk:()=>g,US:()=>y,XS:()=>_,Y2:()=>c,bX:()=>l,c4:()=>v,cH:()=>f,ce:()=>E,dh:()=>b,qd:()=>o,tk:()=>x,vI:()=>m});var a=s(30397),r=s(63238),n=s(108),i=s(93443);let o=(e,t)=>p(e)&&t((0,r.im)()),l=(e,t)=>(u(e)||d(e.response))&&t((0,n.kb)()),c=e=>e&&400===e.status&&m(e),m=e=>{var t;return null===(t=e.headers.get("content-type"))||void 0===t?void 0:t.includes("application/json")},d=e=>e&&500===e.status,p=e=>e&&(401===e.status||403===e.status),u=e=>e.response&&e.response.status>300&&!p(e.response)&&!c(e.response),f=e=>e&&e instanceof i.o3,h=e=>e.response&&e.response.status>=500&&e.response.status<600,g=e=>e.response&&401===e.response.status,y=e=>e.response&&403===e.response.status,v=e=>e.response&&404===e.response.status,b=e=>e.response&&409===e.response.status,_=e=>e.failedValidators&&e.failedValidators.length>0,x=()=>({failedValidators:[(0,a.OX)("error_fetch_check_url",!0)]}),E=(e,t,s)=>{"INVALID_EMAIL_ADDRESS"===t.reason&&(0,a.l_)(e,"email_settings_validation_failure",!1,"",[{messageKey:"my_messages_email_settings_validation_failure",messageParams:{value:s}}])}},70437(e,t,s){"use strict";s.d(t,{J:()=>b});var a,r=s(74848),n=s(96540),i=s(63679),o=s(72477),l=s(74553),c=s(5303),m=s(73131),d=s(15828),p=s(72320),u=s(2317),f=s(34455);function h(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{},a=Object.keys(s);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(s).filter(function(e){return Object.getOwnPropertyDescriptor(s,e).enumerable}))),a.forEach(function(t){var a;a=s[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a})}return e}let{useContext:g}=a||(a=s.t(n,2)),y=(0,i.Ay)(e=>(0,r.jsx)(l.i,h({color:d.P.colors.blackLight1},e)))` 6 margin-right: 0.5em; 7 vertical-align: sub; 8`,v=(0,i.Ay)(e=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.i,h({color:d.P.colors.highlightBase},e)),(0,r.jsx)(l.i,h({color:d.P.colors.highlightBase},e))]}))` 9 &:nth-child(2) { 10 margin-left: -0.5em; 11 margin-right: 0.5em; 12 } 13 vertical-align: sub; 14`,b=e=>{let{lang:t,translate:s}=g(f.ic),a=(0,p.Vq)((0,p.I6)(e.modifiedAt),t);return(0,r.jsx)(o.e,{children:e.messageStatus==u.q.UNREAD||e.messageStatus==u.q.READ?(0,r.jsxs)(c.f,{children:[(0,r.jsx)(v,{}),(0,r.jsx)(m.E,{className:"text-narrow text-small",children:s("my_messages_message_status_received",{receivedAt:a})})]}):(0,r.jsxs)(c.f,{children:[(0,r.jsx)(y,{}),(0,r.jsx)(m.E,{className:"text-narrow text-small",children:s("my_messages_message_status_progress")})]})})}},83552(e,t,s){"use strict";s.d(t,{default:()=>F});var a=s(74848),r=s(95758),n=s(30397),i=s(17761),o=s(34455),l=s(96540),c=s.t(l,2),m=s(22079),d=s(14759),p=s(77192),u=s(26994),f=s(98437),h=s(47767),g=s(53325),y=s(8775),v=s(79602),b=s(98921),_=s(70437),x=s(80731),E=s(61298),w=s(9464),N=s(93171);function A(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{},a=Object.keys(s);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(s).filter(function(e){return Object.getOwnPropertyDescriptor(s,e).enumerable}))),a.forEach(function(t){var a;a=s[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a})}return e}let{useContext:j}=c,T=(e,t)=>
14{var s;return e?"my_messages_paper_sent_also_"+((null===(s=t.principal)||void 0===s?void 0:s.type)==="COMPANY"?"ypa":"hpa"):"my_messages_paper_sent_also"},M=e=>{let{translate:t}=j(o.ic);return e.message.paper?(0,a.jsxs)("div",{className:"paper-sent-also-container",children:[(0,a.jsx)(E.p,{}),(0,a.jsx)("span",{className:"paper-sent-also-message",children:t(T(e.isPrincipal,e.authenticatedUser))})]}):null},O=e=>{let{translate:t}=j(o.ic);return(0,n.sx)(e.authenticatedUser)?(0,a.jsx)("div",{className:"restore-message",children:(0,a.jsx)(w.$,{variant:"secondary",className:"messages-button",onClick:()=>e.restoreDeletedMessage(e.message.messageId),children:t(e.message.direction===n.OP.SENT?"my_messages_restore_deleted_sent_message_button":"my_messages_restore_deleted_received_message_button")})}):null},S=e=>{var t,s;return(0,a.jsxs)("div",{role:"article",children:[(0,a.jsx)(b.P,{content:e.message.content,parseLinks:e.message.direction===n.OP.RECEIVED,bodyFormat:null!==(s=e.message.bodyFormat)&&void 0!==s?s:n.y9.TEXT}),e.message.direction===n.OP.SENT&&(0,a.jsx)(_.J,{createdAt:e.message.created,modifiedAt:e.message.modified,messageStatus:e.message.state}),(0,a.jsx)(x.A,{isPrincipal:!!(null===(t=e.authenticatedUser.principal)||void 0===t?void 0:t.identifier),items:e.message.attachments,title:"my_messages_chain_reply_attachments",clearErrorMessages:e.clearErrorMessages,showErrorMessage:e.showErrorMessage,messageId:e.message.messageId}),(0,a.jsx)(M,A({},e)),(0,a.jsx)(O,A({},e))]})},D=e=>{var t,s;let r,i,{lang:l,translate:c}=j(o.ic),{message:m,authenticatedUser:d}=e,p=e.message.senderName||(0,n.IW)(e.authenticatedUser,e.message.receiverId),u=null===(t=e.authenticatedUser.principal)||void 0===t?void 0:t.name,f=null===(s=e.authenticatedUser.principal)||void 0===s?void 0:s.type;return m.direction===n.OP.RECEIVED?(r=(0,n.Jm)(m,(0,N.gD)(l)),i=(0,n.IW)(d,m.receiverId)):(r="PERSON"===f&&u?c("my_messages_hpa_message_with_name_and_principal_sent_message_header",{name:p,principal:u}):"COMPANY"===f&&u?c("my_messages_ypa_message_with_name_and_principal_sent_message_header",{name:p,principal:u}):p,i=(0,n.Jm)(m,(0,N.gD)(l))),(0,a.jsxs)("div",{className:"message",children:[(0,a.jsx)(v.A,{createdTime:m.created,fromText:r,toText:i,message:m}),(0,a.jsx)(S,A({},e)),(0,a.jsx)("div",{className:"message-separator"})]},m.messageId)};class L extends l.Component{componentDidUpdate(e){if(this.props.isFetching!==e.isFetching||this.props.selectedMessage!==e.selectedMessage){let{translate:e}=this.props.appContext;this.props.isFetching?this.props.setDocumentTitle(e("loading")):this.props.selectedMessage&&this.props.setDocumentTitle(e(this.props.selectedMessage.title)),this.headerFocusElementRef.current&&(0,d.je)()&&this.headerFocusElementRef.current.focus()}}render(){let e=(0,u.Pl)(this.props.authenticatedUser),t=!!e.principal&&!!e.principal.identifier,s=this.props.selectedMessage&&this.props.selectedMessage.title||"";return this.props.isFetching?(0,a.jsx)(y.A,{show:!0}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"title-bar",children:(0,a.jsx)("h2",{id:"chain-title",className:"break-words message-chain-subject",ref:this.headerFocusElementRef,tabIndex:-1,children:s})}),this.props.selectedMessage?(0,a.jsx)(D,{authenticatedUser:this.props.authenticatedUser,isPrincipal:t,message:this.props.selectedMessage,clearErrorMessages:this.props.clearErrorMessages,showErrorMessage:this.props.showErrorMessage,restoreDeletedMessage:this.props.restoreDeletedMessage}):""]})}constructor(e){var t,s;super(e),t="headerFocusElementRef",s=l.createRef(),t in this?Object.defineProperty(this,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):this[t]=s}}let k=(0,o.Lk)(L);var R=s(46617),C=s(14531);class I extends l.Component{componentDidMount(){let e=this.props.router.params.deletedMessageId;(0,n.v3)(e)&&this.props.getMyDeletedMessage(Number(e))}render(){return this.props.isFetching?(0,a.jsx)(y.A,{show:!0}):(0,a.jsxs)("div",{children:[(0,a.jsx)(g.A,{failedValidators:this.props.failedValidators,showErrorMessage:this.props.showErrorMessage,clearErrorMessages:this.props.clearErrorMessages,clearValidators:this.props.clearValidators}),(0,a.jsx)(h.sv,{}),this.props.selectedMessage?(0,a.jsx)(k,{isFetching:this.props.isFetching,hasErrors:this.props.hasErrors,selectedMessage:this.props.selectedMessage,clearErrorMessages:this.props.clearErrorMessages,showErrorMessage:this.props.showErrorMessage,authenticatedUser:this.props.authenticatedUser,setDocumentTitle:this.props.setDocumentTitle,restoreDeletedMessage:this.props.restoreDeletedMessage}):""]})}constructor(e){super(e)}}let F=(0,i.y)((0,o.Lk)((0,f.Ng)((e,t)=>{let s=e.myMessagesDeletedView;return{hasErrors:s.hasErrors,isFetching:s.isFetchingMessage,selectedMessage:s.selectedMessage,failedValidators:s.failedValidators,authenticatedUser:(0,u.Pl)(e.user.item)}},(e,t)=>{let{translate:s}=t.appContext,{historyPush:a}=t.appContext;return{getMyDeletedMessage:t=>e(r.D5(t)),showErrorMessage:t=>{e((0,m.tS)(t))},clearErrorMessages:()=>{e((0,m.AP)())},clearValidators:()=>{e(r.Cy())},setDocumentTitle:t=>{{let e=s("site_main_title");document.title=(0,d.Ct)(e,t)}e((0,p.J)(t))},restoreDeletedMessage:t=>e(r.$i(t)).then(()=>{(0,R.Dy)("my_messages_restore_deleted_message_success"),a(C.rp)})}})(I)))},95758(e,t,s){"use strict";s.d(t,{$i:()=>R,Ay:()=>C,Cy:()=>y,D5:()=>k,Y2:()=>L,bB:()=>a.bB});var a=s(30397),r=s(91694),n=s(93443),i=s(68485);function o(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{},a=Object.keys(s);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(s).filter(function(e){return Object.getOwnPropertyDescriptor(s,e).enumerable}))),a.forEach(function(t){var a;a=s[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a})}return e}function l(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);s.push.apply(s,a)}return s}
14)(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))}),e}let c={hasErrors:!1,isFetchingList:!1,isFetchingMessage:!1,messageList:[],selectedMessage:null,paging:(0,a.bB)(),failedValidators:[]},m=e=>e.messages.map(a.mR),d="mymessages.messages.get.deleted.list",p=()=>({type:d}),u="mymessages.messages.get.deleted.list.response",f=e=>({payload:e,type:u}),h="mymessages.messages.get.deleted.list.error",g=e=>({payload:{content:e},type:h}),y=()=>({payload:{},type:"mymessages.messages.get.deleted.clear.validators"}),v="mymessages.messages.get.deleted",b=()=>({type:v}),_="mymessages.messages.get.deleted.response",x=e=>({payload:e.message,type:_}),E="mymessages.messages.get.deleted.error",w=e=>({payload:{content:e},type:E}),N="mymessages.messages.restore.deleted",A=()=>({type:N}),j="mymessages.messages.restore.deleted.error",T=e=>({payload:{content:e},type:j}),M="mymessages.messages.restore.deleted.success",O=()=>({type:M}),S="/api/messages/message",D="/api/messages/principal/message",L=e=>(t,s)=>{t(p());let o={offset:e||0,limit:a.mS},l=((0,a.dq)(s())?D:S)+"/deleted?"+(0,r.zJ)(o);return(0,n.Jt)(l,!0).then(e=>t(f({messageList:m(e),paging:(0,a.NN)(e.pagination)}))).catch(e=>((0,i.Y2)(e.response)&&(0,a.l_)(e,"response_error"),(0,i.bX)(e,t),t(g(e))))},k=e=>(t,s)=>{t(b());let r=((0,a.dq)(s())?D:S)+"/"+e;return(0,n.Jt)(r,!0).then(e=>t(x({message:(0,a.mR)(e.messages[0])}))).catch(e=>((0,i.Y2)(e.response)?(0,a.l_)(e,"response_error",!0):(0,i.c4)(e)?(0,a.l_)(e,"response_not_found",!0):(0,i.bX)(e,t),t(w(e))))},R=e=>(t,s)=>{t(A());let r=((0,a.dq)(s())?D:S)+"/"+e+"/restore";return(0,n.bE)(r).then(()=>{t(O())}).catch(e=>((0,i.Y2)(e.response)?(0,a.l_)(e,"response_error",!0):(0,i.c4)(e)?(0,a.l_)(e,"response_not_found",!0):(0,i.bX)(e,t),t(T(e))))},C=3524==s.j?(e=c,t)=>{switch(t.type){case d:return l(o({},e),{failedValidators:[],hasErrors:!1,isFetchingList:!0,messageList:[]});case u:return l(o({},e),{failedValidators:[],hasErrors:!1,isFetchingList:!1,messageList:t.payload.messageList||[],paging:t.payload.paging});case v:return l(o({},e),{failedValidators:[],hasErrors:!1,isFetchingMessage:!0,selectedMessage:null});case _:return l(o({},e),{failedValidators:[],hasErrors:!1,isFetchingMessage:!1,selectedMessage:t.payload});case E:return l(o({},e),{failedValidators:t.payload.content.failedValidators||[],hasErrors:!0,isFetchingMessage:!1,messageList:e.messageList||[],paging:e.paging||(0,a.bB)(),selectedMessage:e.selectedMessage||null});case h:return l(o({},e),{failedValidators:t.payload.content.failedValidators||[],hasErrors:!0,isFetchingList:!1});case N:return l(o({},e),{failedValidators:[],hasErrors:!1,isFetchingMessage:!0,selectedMessage:e.selectedMessage||null});case M:return l(o({},e),{failedValidators:[],hasErrors:!1,isFetchingMessage:!1,selectedMessage:null});case j:return l(o({},e),{failedValidators:t.payload.content.failedValidators||[],hasErrors:!0,isFetchingMessage:!1,messageList:e.messageList||[],paging:e.paging||(0,a.bB)(),selectedMessage:e.selectedMessage||null});default:return e}}:null},20098(e,t,s){"use strict";s.d(t,{A:()=>r});var a=s(37688);let r=function(e,t,s){var r=e.length;return s=void 0===s?r:s,!t&&s>=r?e:(0,a.A)(e,t,s)}},52843(e,t,s){"use strict";s.d(t,{A:()=>o});var a=s(20098),r=s(70898),n=s(76299),i=s(48182);let o=function(e){return function(t){t=(0,i.A)(t);var s=(0,r.A)(t)?(0,n.A)(t):void 0,o=s?s[0]:t.charAt(0),l=s?(0,a.A)(s,1).join(""):t.slice(1);return o[e]()+l}}},70898(e,t,s){"use strict";s.d(t,{A:()=>r});var a=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");let r=function(e){return a.test(e)}},76299(e,t,s){"use strict";s.d(t,{A:()=>f});var a=s(70898),r="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\ud83c[\udffb-\udfff]",o="[^"+r+"]",l="(?:\ud83c[\udde6-\uddff]){2}",c="[\ud800-\udbff][\udc00-\udfff]",m="(?:"+n+"|"+i+")?",d="[\\ufe0e\\ufe0f]?",p="(?:\\u200d(?:"+[o,l,c].join("|")+")"+d+m+")*",u=RegExp(i+"(?="+i+")|"+("(?:"+[o+n+"?",n,l,c,"["+r+"]"].join("|"))+")"+(d+m+p),"g");let f=function(e){return(0,a.A)(e)?e.match(u)||[]:e.split("")}},23120(e,t,s){"use strict";s.d(t,{A:()=>a});let a=(0,s(52843).A)("toUpperCase")}}]); 15//# sourceMappingURL=3552.09d6942fc1441ccbc923.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.