@telia-ace/knowledge-widget-ui 1.1.1-rc.2 → 1.1.1-rc.4

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.
Files changed (3) hide show
  1. package/index.js +142 -885
  2. package/index.mjs +446 -5404
  3. package/package.json +4 -4
package/index.js CHANGED
@@ -1,778 +1,35 @@
1
- "use strict";var Qn=Object.defineProperty;var Gn=(t,e,n)=>e in t?Qn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var w=(t,e,n)=>(Gn(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),C=require("@emotion/react"),f=require("react"),x=require("@emotion/styled"),gt=require("react-transition-group"),es=require("react-dom"),Qe=require("react-router-dom"),ts=t=>t==="entering"||t==="entered",ns=t=>t==="exiting"||t==="exited",le={fade:{in:"opacity: 1;",out:"opacity: 0;"},"slide-left":{in:"transform: translateX(0);",out:"transform: translateX(-100%);"},"slide-right":{in:"transform: translateX(0);",out:"transform: translateX(100%);"},"slide-up":{in:"transform: translateY(0);",out:"transform: translateY(100%);"},"slide-down":{in:"transform: translateY(0);",out:"transform: translateY(-100%);"},scale:{in:"transform: scale(1);",out:"transform: scale(0);"}},ss=["slide-up","slide-down","slide-left","slide-right","scale"],Ae={compose:(t="exited",e)=>{const{enter:n,exit:s}=e,r=n.transitionKeys.split(" "),o=ss.indexOf(r[0])>-1?"transform":"opacity";if(ts(t))return r&&r.length>0?C.css`
2
- ${r&&r.length>0&&r.map(u=>le[u]?le[u].in:"")}
3
- transition: ${o} ${n.duration}ms ${n.easing};
4
- `:"";const i=r&&r.length>0&&C.css`
5
- ${r.map(u=>le[u]?le[u].out:"")}
6
- `;if(ns(t)){const u=s.transitionKeys.split(" ");return u&&u.length>0&&t==="exiting"?C.css`
7
- ${i};
8
- ${u.map(c=>le[c]?le[c].out:"")}
9
- transition: ${o} ${s.duration}ms ${s.easing};
10
- `:i}},composeViewTransition:(t,e,n)=>{if(e==="slide")return Ae.compose(t,{enter:{transitionKeys:n==="forth"?"slide-right":"slide-left",duration:500},exit:{transitionKeys:n==="forth"?"slide-left":"slide-right",duration:500}});if(e==="fade")return Ae.compose(t,{enter:{transitionKeys:"fade",duration:500},exit:{transitionKeys:"fade",duration:500}})},get:t=>le[t]};var ct=(t=>(t.Opera="opera",t.Chrome="chrome",t.Firefox="firefox",t.Safari="safari",t.Edge="edge",t.EdgeChromium="edge-chromium",t.Blink="blink",t.IE="internet-explorer",t))(ct||{});const lt=()=>{const{opr:t,opera:e,InstallTrigger:n,HTMLElement:s,safari:r,documentMode:o,StyleMedia:i,chrome:u,CSS:c}=window,d=!!t&&!!t.addons||!!e||navigator.userAgent.indexOf(" OPR/")>=0;if(d)return"opera";if(n)return"firefox";const l=(g=>g.toString()==="[object SafariRemoteNotification]")(!r||typeof r<"u"&&r.pushNotification);if(/constructor/i.test(s)||l)return"safari";const h=!!o;if(h)return"internet-explorer";if(!h&&i)return"edge";const m=!!u&&(!!u.webstore||!!u.runtime);if(m)return"chrome";if(m&&navigator.userAgent.indexOf("Edg")!==-1)return"edge-chromium";if((m||d)&&c)return"blink"};function rs(t){const e=[];return t.forEach(n=>{e.indexOf(n)===-1&&e.push(n)}),e}function ut(t="",e=""){const n=t.split(" ").concat(e.split(" "));return rs(n).join(" ").trim()}function os(t,e){if(t){if(typeof e=="string")return e;if(Array.isArray(e)){let n="";return e.forEach(s=>n=ut(n,s)),n}}}function k(...t){let e="";return t.length&&t.forEach(n=>{typeof n=="string"?e=ut(e,n):Array.isArray(n)?e=ut(e,os(...n)):typeof n<"u"&&n!==null&&process.env.NODE_ENV!=="production"&&O.warn("appendClassNames: arguments either haveto be a string or [boolean, ...string[]]. Passed args:",...t)}),e}function ze(t={}){const{phrase:e="",category:n,guideCategory:s,contactCategory:r,take:o,connectionKey:i,accordion:u,id:c,uriName:d,sorting:l,tag:h,tagId:m,tagTitle:g,...y}=t,p={};return Object.keys(y).forEach(v=>{typeof t[v]=="string"&&(p[v]=t[v])}),typeof e=="string"&&e.length&&(p.phrase=e),e===null&&(p.phrase=e),typeof s=="string"&&s!=="0"&&(p.guideCategory=s),typeof s=="number"&&s!==0&&(p.guideCategory=s),typeof s=="object"&&s!==null&&(typeof s.id=="string"&&s.id!=="0"&&(p.guideCategory=s.id),typeof s.id=="number"&&s.id!==0&&(p.guideCategory=s.id)),typeof r=="string"&&r!=="0"&&(p.contactCategory=r),typeof r=="number"&&r!==0&&(p.contactCategory=r),typeof r=="object"&&r!==null&&(typeof r.id=="string"&&r.id!=="0"&&(p.contactCategory=r.id),typeof r.id=="number"&&r.id!==0&&(p.contactCategory=r.id)),typeof n=="string"&&n!=="0"&&(p.category=n),typeof n=="number"&&n!==0&&(p.category=n),typeof n=="object"&&n!==null&&(typeof n.id=="string"&&n.id!=="0"&&(p.category=n.id),typeof n.id=="number"&&n.id!==0&&(p.category=n.id)),c&&(p.id=c),d&&(+p.category||+p.guideCategory||+p.guide||+p.contactCategory||+p.contactMethod)&&(p.uriName=d),i&&(p.connectionKey=i),o&&(p.take=o),l&&(p.sorting=l),typeof u=="string"&&u.length>0&&(p.accordion=u),typeof h=="string"&&h!=="0"&&(p.tag=h),typeof h=="number"&&h!==0&&(p.tag=h),Array.isArray(h)&&h.length&&(p.tag=h),(typeof m=="string"||typeof m=="number")&&(p.tagId=m),typeof g=="string"&&(p.tagTitle=g),typeof p.tag=="string"&&(p.tag=p.tag.split(",")),p}const Ft=t=>{if(!t)return"";const e=[{from:/[äæǽ]+/gi,to:"ae"},{from:/[öœ]+/gi,to:"oe"},{from:/[ü]+/gi,to:"ue"},{from:/[Ä]+/gi,to:"Ae"},{from:/[Ü]+/gi,to:"Ue"},{from:/[Ö]+/gi,to:"Oe"},{from:/[ÀÁÂÃÄÅǺĀĂĄǍΑΆẢẠẦẪẨẬẰẮẴẲẶА]+/gi,to:"A"},{from:/[àáâãåǻāăąǎªαάảạầấẫẩậằắẵẳặа]+/gi,to:"a"},{from:/[Б]+/gi,to:"B"},{from:/[б]+/gi,to:"b"},{from:/[ÇĆĈĊČ]+/gi,to:"C"},{from:/[çćĉċč]+/gi,to:"c"},{from:/[Д]+/gi,to:"D"},{from:/[д]+/gi,to:"d"},{from:/[ÐĎĐΔ]+/gi,to:"Dj"},{from:/[ðďđδ]+/gi,to:"dj"},{from:/[ÈÉÊËĒĔĖĘĚΕΈẼẺẸỀẾỄỂỆЕЭ]+/gi,to:"E"},{from:/[èéêëēĕėęěέεẽẻẹềếễểệеэ]+/gi,to:"e"},{from:/[Ф]+/gi,to:"F"},{from:/[ф]+/gi,to:"f"},{from:/[ĜĞĠĢΓГҐ]+/gi,to:"G"},{from:/[ĝğġģγгґ]+/gi,to:"g"},{from:/[ĤĦ]+/gi,to:"H"},{from:/[ĥħ]+/gi,to:"h"},{from:/[ÌÍÎÏĨĪĬǏĮİΗΉΊΙΪỈỊИЫ]+/gi,to:"I"},{from:/[ìíîïĩīĭǐįıηήίιϊỉịиыї]+/gi,to:"i"},{from:/[Ĵ]+/gi,to:"J"},{from:/[ĵ]+/gi,to:"j"},{from:/[ĶΚК]+/gi,to:"K"},{from:/[ķκк]+/gi,to:"k"},{from:/[ĹĻĽĿŁΛЛ]+/gi,to:"L"},{from:/[ĺļľŀłλл]+/gi,to:"l"},{from:/[М]+/gi,to:"M"},{from:/[м]+/gi,to:"m"},{from:/[ÑŃŅŇΝН]+/gi,to:"N"},{from:/[ñńņňʼnνн]+/gi,to:"n"},{from:/[ÒÓÔÕŌŎǑŐƠØǾΟΌΩΏỎỌỒỐỖỔỘỜỚỠỞỢО]+/gi,to:"O"},{from:/[òóôõōŏǒőơøǿºοόωώỏọồốỗổộờớỡởợо]+/gi,to:"o"},{from:/[П]+/gi,to:"P"},{from:/[п]+/gi,to:"p"},{from:/[ŔŖŘΡР]+/gi,to:"R"},{from:/[ŕŗřρр]+/gi,to:"r"},{from:/[ŚŜŞȘŠΣС]+/gi,to:"S"},{from:/[śŝşșšſσςс]+/gi,to:"s"},{from:/[ȚŢŤŦτТ]+/gi,to:"T"},{from:/[țţťŧт]+/gi,to:"t"},{from:/[ÙÚÛŨŪŬŮŰŲƯǓǕǗǙǛŨỦỤỪỨỮỬỰУ]+/gi,to:"U"},{from:/[ùúûũūŭůűųưǔǖǘǚǜυύϋủụừứữửựу]+/gi,to:"u"},{from:/[ÝŸŶΥΎΫỲỸỶỴЙ]+/gi,to:"Y"},{from:/[ýÿŷỳỹỷỵй]+/gi,to:"y"},{from:/[В]+/gi,to:"V"},{from:/[в]+/gi,to:"v"},{from:/[Ŵ]+/gi,to:"W"},{from:/[ŵ]+/gi,to:"w"},{from:/[ŹŻŽΖЗ]+/gi,to:"Z"},{from:/[źżžζз]+/gi,to:"z"},{from:/[ÆǼ]+/gi,to:"AE"},{from:/[ß]+/gi,to:"ss"},{from:/[IJ]+/gi,to:"IJ"},{from:/[ij]+/gi,to:"ij"},{from:/[Œ]+/gi,to:"OE"},{from:/[ƒ]+/gi,to:"f"},{from:/[ξ]+/gi,to:"ks"},{from:/[π]+/gi,to:"p"},{from:/[β]+/gi,to:"v"},{from:/[μ]+/gi,to:"m"},{from:/[ψ]+/gi,to:"ps"},{from:/[Ё]+/gi,to:"Yo"},{from:/[ё]+/gi,to:"yo"},{from:/[Є]+/gi,to:"Ye"},{from:/[є]+/gi,to:"ye"},{from:/[Ї]+/gi,to:"Yi"},{from:/[Ж]+/gi,to:"Zh"},{from:/[ж]+/gi,to:"zh"},{from:/[Х]+/gi,to:"Kh"},{from:/[х]+/gi,to:"kh"},{from:/[Ц]+/gi,to:"Ts"},{from:/[ц]+/gi,to:"ts"},{from:/[Ч]+/gi,to:"Ch"},{from:/[ч]+/gi,to:"ch"},{from:/[Ш]+/gi,to:"Sh"},{from:/[ш]+/gi,to:"sh"},{from:/[Щ]+/gi,to:"Shch"},{from:/[щ]+/gi,to:"shch"},{from:/[ЪъЬь]+/gi,to:""},{from:/[Ю]+/gi,to:"Yu"},{from:/[ю]+/gi,to:"yu"},{from:/[Я]+/gi,to:"Ya"},{from:/[я]+/gi,to:"ya"}],n=/[^a-zA-Z0-9]+/g,s=/[-]$/;let r=t;for(const o in e)e.hasOwnProperty(o)&&e[o].from.test(t)&&(r=r.replace(e[o].from,e[o].to));return r=r.replace(n,"-"),r=r.replace(s,""),r=r.toLowerCase(),r||"humany"},Me=(t,e,...n)=>typeof e=="string"?t(`[humany] ${e}`,...n):t(e,...n),ge=class{constructor(){w(this,"keys",[]);w(this,"log",(e,...n)=>this.lookup(e,()=>ge.log(...n)));w(this,"warn",(e,...n)=>this.lookup(e,()=>ge.warn(...n)));w(this,"error",(e,...n)=>this.lookup(e,()=>ge.error(...n)));w(this,"info",(e,...n)=>this.lookup(e,()=>ge.info(...n)))}lookup(e,n){this.keys.indexOf(e)===-1&&(this.keys.push(e),n())}};let O=ge;w(O,"log",(...e)=>Me(console.log,...e)),w(O,"warn",(...e)=>Me(console.warn,...e)),w(O,"error",(...e)=>Me(console.error,...e)),w(O,"info",(...e)=>Me(console.info,...e));const sn=t=>{let e={},n,s;if(typeof t!="object"||t===null)return t;e=Array.isArray(t)?[]:{};for(s in t)n=t[s],e[s]=typeof n=="object"&&n!==null?sn(n):n;return e};function Zt(t){let e=0;if(t.length===0)return e.toString();for(let n=0;n<t.length;n++){const s=t.charCodeAt(n);e=(e<<5)-e+s,e=e&e}return e.toString()}const is=(t,e)=>{if(!t||!e)return!0;let n=e.parentNode,s=!1;for(;n!==null;)n===t&&(s=!0),n=n.parentNode;return s};function as(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()}class cs{constructor(e,n){w(this,"tasks",[]);w(this,"current",Promise.resolve());this.lockWarningTime=e,this.lockErrorTime=n,this.next=this.next.bind(this)}add(e,n,s,r){this.tasks.push({task:e,resolve:n,reject:s,done:r}),this.next()}next(){this.current=this.current.then(()=>{const e=this.tasks.shift();if(e){let n;const s=setTimeout(()=>{process.env.NODE_ENV!=="production"&&O.warn(`A lock has exceeded ${this.lockWarningTime} ms. Waiting additional ${this.lockErrorTime} ms before rejecting the task.`,e),n=setTimeout(()=>{e.reject("lock timeout exceeded")},this.lockErrorTime)},this.lockWarningTime),r=Promise.resolve(e.task()).then(o=>(clearTimeout(s),clearTimeout(n),o));return Promise.resolve(r).then(this.next).then(()=>r.then(o=>{e.done(),e.resolve(o)})).catch(o=>(e.done(),e.reject(o),this.next()))}return Promise.resolve()})}}const Oe=new WeakMap;function Ie(t,e=5e3,n=1e3){return Oe.has(t)||Oe.set(t,new cs(e,n)),s=>new Promise((r,o)=>{const i=Oe.get(t);i.add(s,r,o,()=>{i.tasks.length||Oe.delete(t)})})}const Kt=(t={})=>(Object.keys(t).forEach(e=>{(t[e]===null||typeof t[e]>"u")&&delete t[e]}),t),se=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);function oe(){return se()+se()+"-"+se()+"-"+se()+"-"+se()+"-"+se()+se()+se()}const ls=["string","number"],D=t=>Object.keys(t).reduce((e,n)=>{const s=typeof t[n]>"u"?"":t[n],r=typeof s;if(ls.indexOf(r)>-1){const o=n.substring(0,5);o==="data-"||o==="aria-"?e[as(n)]=s.toString():n.substring(0,4)!=="css-"&&(e[n]=s.toString())}else e[n]=s;return e},{}),us=(t,e)=>t.get("seoConfiguration")?a.jsx(On,{...e}):null,ds=t=>new RegExp("^#","i").test(t),rn=t=>({children:e,...n})=>{const{implementation:s,name:r}=t.get("$widget"),{href:o=""}=n;if(ds(o))return a.jsx(xt,{smooth:!0,to:o,children:e});const i=s.bindings.map(d=>d.replace(/\./g,"\\.")).join("|"),c=new RegExp(`^((http[s]?:)?//)?(${i})/([^\\s]+)`).exec(o);if(c&&c.length>=4){const d=c[4];if(s.widgets.get(d)&&!d.startsWith("blob?")&&!d.startsWith(r))return a.jsx(Wt,{widgetName:d,children:e})}return a.jsx("a",{...n,children:e})},yt=t=>{const e={};return Object.keys(t).forEach(n=>{n.indexOf("css-")>-1&&(e[n]=t[n])}),e},on=t=>{let e="";return Object.keys(yt(t)).forEach(n=>{n.indexOf("css-")>-1&&(e+=`${n.replace("css-","")}:${t[n]};`)}),C.css`
11
- ${e}
12
- `},an=(t,e)=>{let n="";const s=()=>{n=""},r=l=>{const h=document.getElementById(n);return h!==null?(l(h),s(),!0):!1},o=l=>(l.preventDefault(),s(),t.onClick&&t.onClick(l),typeof t.to=="string"&&(n=t.to.split("#").slice(1).join("#")),n!==""&&r(t.scroll||(h=>t.smooth?h.scrollIntoView({behavior:"smooth"}):h.scrollIntoView())),!1),{scroll:i,smooth:u,to:c,...d}=t;return e==="a"&&(d.href="javascript:;"),a.jsx(e,{...d,onClick:o,children:t.children})},re=t=>(e,n)=>{let s=e,r="";if(["h1","h2","h3","h4","h5","h6"].includes(e))s=e;else{const u=e.match(/h1|h2|h3|h4|h5|h6/);if(u!=null&&u[0]){s=u[0];const[c]=e.split(s);r=c}}const i=((u,c,d)=>d[u]?`${c}${d[u]}`:`${c}${u}`)(s,r,t.theme.typographyVariantMapping||{});return C.css`
13
- ${i} {
14
- ${n}
15
- }
16
- `};var hs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function cn(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function s(){if(this instanceof s){var r=[null];r.push.apply(r,arguments);var o=Function.bind.apply(e,r);return new o}return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(s){var r=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(n,s,r.get?r:{enumerable:!0,get:function(){return t[s]}})}),n}var ln={exports:{}};(function(t,e){(function(n,s){t.exports=s(f)})(hs,function(n){function s(h,m,g,y){return m===void 0&&(m={}),Object.keys(m).reduce(function(p,v){if(/^on.*/.test(v))return p;var j=v;/^(data|aria)-/.test(v)||g.filter(function(I){return I instanceof RegExp?I.test(v):I===v}).length===0&&(j=r(v));var S,N,$=y(h,j);if($.name==="style")p[$.name]=(S=m.style,N={},S.split(";").filter(function(I){return I.trim()!==""}).forEach(function(I){var T,W=I.split(":");if(W.length>1){var B=function(A){return/^-ms-/.test(A)&&(A=A.substr(1)),A.startsWith("--")?A:r(A)}(W[0].trim()),P=(T=W.slice(1).join(":").trim(),/^\d+$/.test(T)?Number(T):T.replace(/'/g,'"'));N[B]=P}}),N);else{var L=m[v],Y=L===""||String(L).toLowerCase()===j.toLowerCase();p[$.name]=$.isBoolean?Y:L}return p},{})}function r(h){return h.replace(/(-|:)(.)/g,function(m,g,y){return y.toUpperCase()})}n=n&&n.hasOwnProperty("default")?n.default:n;var o=["table","tbody","thead","tfoot","tr"],i={for:"htmlFor",class:"className",allowfullscreen:["allowFullScreen","allowFullscreen"],autocomplete:"autoComplete",autofocus:["autoFocus"],contenteditable:"contentEditable",spellcheck:"spellCheck",srcdoc:"srcDoc",srcset:"srcSet",itemscope:"itemScope",itemprop:"itemProp",itemtype:"itemType"};function u(h,m){var g=i[m],y=document.createElement(h);if(g)return{name:Array.isArray(g)?g[0]:g,isBoolean:c(y,Array.isArray(g)?g[1]||m:g)};for(var p in y)if(p.toLowerCase()===m.toLowerCase())return{name:p,isBoolean:c(y,p)};return{name:m,isBoolean:c(y,m)}}function c(h,m){return h.setAttribute(m,""),h[m]===!0||d.indexOf(m)>-1}var d=["itemScope"];function l(h,m,g,y){y===void 0&&(y=null);var p=g[h],v=g._;return p?n.createElement(p,m,y):v?v(h,m,y):n.createElement(h,m,y)}return function(h,m){if(m===void 0&&(m={}),typeof h!="string")throw new TypeError("Expected HTML string");var g=document.createElement("div");g.innerHTML=h.trim();var y=Array.from(g.childNodes).map(function(p,v){return function j(S,N,$){var L=$.transform||{},Y=$.preserveAttributes||[],I=$.dangerouslySetChildren||["style"],T=L._;if(S.nodeType===8)return null;if(S.nodeType===3){var W=S.textContent;return T?T(W):W}for(var B={},P=S.attributes,A=0;A<P.length;A++)B[P[A].name]=P[A].value;B.key=N.toString();var q=S.tagName.toLowerCase(),ae=s(q,B,Y,u),ce=Array.from(S.childNodes).map(function(_,te){return o.indexOf(q)>-1&&_.nodeType===3&&(_.textContent=_.textContent.trim(),_.textContent==="")?null:j(_,N+"."+te,$)}).filter(Boolean);if(I.indexOf(q)>-1){var ee=S.innerHTML;return ee&&(q!=="style"&&q!=="script"&&(ee=ee.replace(/"/g,"&quot;")),ae.dangerouslySetInnerHTML={__html:ee.trim()}),l(q,ae,L)}var he=ce.length===0?null:ce;return l(q,ae,L,he)}(p,String(v),m)}).filter(Boolean);return y.length===1?y[0]:y}})})(ln);var ms=ln.exports;const Yt=fs(ms);function un(t,e){return e?Yt(t,e):Yt(t)}const dn=t=>e=>a.jsx(In,{attrs:e,htmlBody:t}),hn=(t,e)=>({transform:{a:rn(t),img:dn(e)}}),xt=t=>an(t,"a"),ie=f.forwardRef(({className:t,children:e,...n},s)=>a.jsx(ps,{type:"button",className:k(t,"humany-button"),...D(n),ref:s,children:e})),ps=x.button`
17
- -webkit-appearance: button;
18
- text-transform: none;
19
- overflow: visible;
20
- outline: none;
21
- border: none;
22
- background-color: transparent;
23
- cursor: pointer;
24
- font-family: inherit;
25
- font-size: inherit;
26
- line-height: normal;
27
- margin: 0;
28
- padding: 0;
29
- `,gs=({onChange:t=()=>{},onEnter:e=()=>{},className:n,...s})=>a.jsx("input",{className:k(n,"humany-checkbox"),onKeyDown:r=>{r.key==="Enter"&&e(r)},onChange:r=>t(r.target.value,r.currentTarget.checked),...D(s)}),Ge=new WeakMap;function ys(){return t=>(Ge.has(t)||Ge.set(t,{}),Ge.get(t))}const et=(t,e,n,...s)=>{const r=`[${t.get("$environment").name||"webprovisions"}] ${n}`;switch(e){case"info":console.info(r,...s);break;case"warning":console.warn(r,...s);break;case"error":console.error(r,...s);break}},pe=t=>{const e=t.container||t;return{info:(n,...s)=>et(e,"info",n,...s),warn:(n,...s)=>et(e,"warning",n,...s),error:(n,...s)=>et(e,"error",n,...s)}},M=ys(),vt=(()=>{let t=0;return()=>++t})(),bt=(t,e,n)=>{const s=M(t).touchQueue.get(e);s&&s.forEach(r=>{r(n,t)})};class xs{constructor(e,n,s,r){this.key=e,this.factory=n,this.parent=s,this.container=r,this.id=vt(),this.resolved=!1,this.constructed=!1,this.async=!0}resolve(){if(!this.constructed){const e=this.factory(this.parent,this.container);return this.constructed=!0,this.value=Promise.resolve(e).then(n=>(this.resolved=!0,bt(this.container,this.key,n),n))}return this.value}}class vs{constructor(e,n,s,r){this.key=e,this.value=n,this.parent=s,this.container=r,this.id=vt(),this.async=!1,this.resolved=!1,this.constructed=!0,this.resolve=()=>(this.resolved=!0,bt(this.container,this.key,this.value),this.value)}}class bs{constructor(e,n,s,r){this.key=e,this.value=n,this.parent=s,this.container=r,this.id=vt(),this.async=!1,this.resolved=!1,this.constructed=!1,this.resolve=()=>{this.resolved=!0,this.constructed=!0;const o=this.value(this.parent,this.container);return bt(this.container,this.key,this.value),o}}}class Ct{constructor(e,n,s){this.owner=e,this.name=n,this.parent=s,M(this).resolvers=new Map,M(this).touchQueue=new Map,M(this).children=[]}delete(e){const n=M(this).resolvers,s=Array.from(n.values()).find(r=>r.id===e);return s?(M(this).touchQueue.delete(s.key),Promise.resolve(n.delete(s.key))):this.parent?this.parent.delete(e):Promise.resolve(!1)}clear(){const e=M(this).resolvers,n=Array.from(e.values());return Promise.all(n.map(s=>{if(s.constructed)return Promise.resolve(s.resolve()).then(r=>{if(r!==null&&typeof r=="object"&&typeof r.dispose=="function")return r.dispose.call(r,this,s)})})).then(()=>{n.forEach(s=>this.delete(s.id)),M(this).children.forEach(s=>s.clear())})}detach(){if(this.parent){const e=M(this.parent).children,n=e.indexOf(this);n>-1&&(e.splice(n,1),delete this.parent)}}touch(e,n){const s=M(this).resolvers.get(e);if(s&&s.constructed)Promise.resolve(s.resolve()).then(r=>{n(r,this)});else{const r=M(this).touchQueue;let o=r.get(e);o||(o=[],r.set(e,o)),o.push(n)}return this.parent&&!s?this.parent.touch(e,n):Promise.resolve()}registerAsync(e,n){const s=M(this).resolvers.get(e);s&&!s.async&&process.env.NODE_ENV!=="production"&&pe(this).warn(`Mismatching resolver type. You are registering an async resolver with a key ('${e}') previously used by a non-async resolver.`);const r=new xs(e,n,s,this);return M(this).resolvers.set(e,r),r.id}registerFactory(e,n){const s=M(this).resolvers.get(e);s&&s.async&&process.env.NODE_ENV!=="production"&&pe(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${e}') previously used by an async resolver.`);const r=new bs(e,n,s,this);return M(this).resolvers.set(e,r),r.id}register(e,n){const s=M(this).resolvers.get(e);s&&s.async&&process.env.NODE_ENV!=="production"&&pe(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${e}') previously used by an async resolver.`);const r=new vs(e,n,s,this);return M(this).resolvers.set(e,r),r.id}get(e){const n=M(this).resolvers.get(e);if(n)return n.async&&process.env.NODE_ENV!=="production"&&pe(this).warn(`You are retrieving an async value (with key '${e}') by the non-async function 'container.get(key)'. This will not be supported in future versions. Use 'container.getAsync(key) instead.'`),n.resolve();if(this.parent)return this.parent.get(e)}getAsync(e){const n=M(this).resolvers.get(e);if(n){if(!n.async)throw process.env.NODE_ENV!=="production"&&pe(this).warn(`You are retrieving a non-async value (with key '${e}') by the async function 'container.getAsync(key)'.Use 'container.get(key) instead.'`),"Mismatching resolver type";return n.resolve()}return this.parent?this.parent.getAsync(e):Promise.resolve(void 0)}getMany(...e){const n={};return e.forEach(s=>n[s]=this.get(s)),n}getManyAsync(...e){const n={};return Promise.all(e.map(s=>this.getAsync(s).then(r=>n[s]=r))).then(()=>n)}createChild(e,n){const s=new Ct(e,n,this);return M(this).children.push(s),s}}var Pe=(t=>(t.Implementation="implementation",t.Widget="widget",t))(Pe||{}),ue=(t=>(t.Pre="pre",t.Post="post",t))(ue||{});const Cs=(t,e,n,s)=>{try{const r=new e(n,s);return{name:t,invoke:(o,i)=>{let u;return r[o]&&(u=r[o].call(r,i)),Promise.resolve(u)},getInstance:()=>r}}catch(r){if(r.message&&r.message.indexOf("is not a constructor")>=0)return{name:t,invoke:o=>{let i;return o==="initialize"&&(i=e(n,s)),Promise.resolve(i)},getInstance:()=>e};throw r}};function qt(t,e){return typeof t>"u"?e:t}class ws{constructor(e={}){this.part=e}createCommand(e,n,s){let r;typeof n=="function"?r={scope:Pe.Widget,stage:ue.Post,defaultArgs:void 0,handlerResolver:n}:r={scope:qt(n.scope,Pe.Widget),stage:qt(n.stage,ue.Post),defaultArgs:n.defaultArgs,handlerResolver:s};let o=this.part;const i=e.split(".");return i.forEach((u,c)=>{c===i.length-1?o[u]||(o[u]=()=>r):o=this.part[u]=this.part[u]||{}}),this}get(){return this.part}}const Be=t=>{const e=new ws({});return t(e),e.get()};Be(t=>{t.createCommand("types.register",{scope:Pe.Implementation,stage:ue.Pre},e=>(n,s)=>{e.container.get("$types")[n]=s}).createCommand("type",{stage:ue.Pre},e=>n=>{e.container.register("$type",n)}).createCommand("settings",{stage:ue.Pre,defaultArgs:[null]},e=>n=>{e.events.dispatch("settings:change",n,{bubbles:!0}),e.container.register("$settings",n)}).createCommand("plugin",{stage:ue.Pre},e=>(n,s,r)=>{const{container:o}=e;let i=null,u=n,c=s;typeof n=="string"&&(i=n,u=s,c=r);const d=l=>{const{transformPluginSettings:h}=e.container.get("$environmentOptions"),m=h?h(c||{},i,e.container,u):s;try{const g=Cs(i,u,o,m);o.get("$plugins").push(g),l&&g.invoke("initialize",null)}catch(g){pe(e).warn("Error when initializing plugin",g)}};e.container.get("$instance")?d(!0):e.events.subscribeOnce("widget:instance-created",()=>d(!1))}).createCommand("container.register",e=>(n,s)=>{e.container.register(n,s)}).createCommand("container.registerAsync",e=>(n,s)=>{e.container.registerAsync(n,s)}).createCommand("container.registerFactory",e=>(n,s)=>{e.container.registerFactory(n,s)}).createCommand("container.touch",e=>(n,s)=>{e.container.touch(n,s)}).createCommand("csp",{},e=>n=>{e.container.register("csp",n)})});var fn=(t=>(t.Activating="activating",t.Loading="loading",t.Activated="activated",t.Deactivating="deactivating",t.Deactivated="deactivated",t))(fn||{});const mn=f.createContext(new Ct),pn=f.createContext(1),wt=f.createContext({id:"",type:"",name:"",branch:""}),gn=f.createContext({}),yn=f.createContext(null),xn=f.createContext(null),Ve=()=>f.useContext(wt),H=()=>f.useContext(mn),$s=(t,e)=>{const n=Ve().id,s=H();return(r,o)=>{(e||s).getAsync("actionResolver").then(i=>{i.action(t||n,r,o)})}},vn=t=>{const e=[];return[(s,r)=>{e.push(t.subscribe(s,r))},()=>{e.forEach(s=>{s()})}]};class We{constructor(e,n=[]){this.platform=e,this.rules=n}match(e){return this.rules.every(n=>!(n.id&&n.id!==e.id||n.type&&n.type!==e.type))}ofType(e){return this.rules.push({type:e}),this}withId(e){return this.rules.push({id:e}),this}select(){return new ks(this.platform,this)}}class bn{constructor(e,n,s){w(this,"actions");w(this,"subscribe");w(this,"unsubscribe");this.platform=e,this.node=n,this.actions=new $t(e,new We(e).withId(n.id),s);const[r,o]=vn(this.platform.events);this.subscribe=r,this.unsubscribe=o}properties(e){return e&&this.node.touchProperties(n=>e(n)),this.node.attributes.properties}context(e){return e&&this.subscribe("components:context-changed",(n,{node:s})=>{s===this.node&&e(this.node.attributes.context)}),this.node.attributes.context}layout(e){return e&&this.subscribe("components:layout-changed",(n,{node:s})=>{s===this.node&&e(this.node.attributes.layout)}),this.node.attributes.layout}writeProperties(e,n){this.node.writeProperties(e,n)}writeContext(e,n){this.node.writeProperties(e,n)}writeLayout(e,n){this.node.writeLayout(e,n)}dispose(){this.unsubscribe(),this.actions.dispose()}}class ks{constructor(e,n,s=!0){w(this,"actions");w(this,"removes",[]);this.platform=e,this.target=n,this.clearOnDispose=s,this.actions=new $t(this.platform,this.target)}writeProperties(e,n){this.removes.push(this.platform.write({options:n,attributes:{properties:e},target:this.target,removable:this.clearOnDispose}))}writeContext(e,n){this.removes.push(this.platform.write({options:n,attributes:{context:e},target:this.target,removable:this.clearOnDispose}))}writeLayout(e,n){this.removes.push(this.platform.write({options:n,attributes:{layout:e},target:this.target,removable:this.clearOnDispose}))}dispose(){this.removes.forEach(e=>{e()}),this.actions.dispose()}}const js=(t,e,n)=>{const s=t.concat(),r=(o,i,u)=>{let c=!0;if(s.length){const d=s.shift(),l=(h,m)=>(c=!1,r(h,Object.assign({},i,m),u));return Promise.resolve(d(o,l,u)).then(h=>({...h,cancelled:c}))}return Promise.resolve({data:o,cancelled:!1,options:i})};return r(e,{},n)};class $t{constructor(e,n,s){w(this,"subscriptions",[]);this.platform=e,this.target=n,this.ns=s,this.create=this.create.bind(this)}create(e,n=()=>{}){const s={key:e,fn:n,target:this.target,ns:this.ns};this.platform.actionsState.handlers.push(s);const r=()=>{const o=this.platform.actionsState.handlers.indexOf(s);o>-1&&this.platform.actionsState.handlers.splice(o,1)};return this.subscriptions.push(r),r}dispatch(e,n){const s=this.platform.nodes.all.concat(this.platform.nodes.detached),r={},o=this.platform.actionsState.handlers.filter(i=>i.key===e&&(!i.ns||!this.ns||i.ns===this.ns));return Promise.all(o.map(i=>{const u=s.filter(d=>i.target.match(d)&&this.target.match(d)),c=this.platform.actionsState.watchers.filter(d=>d.key===e&&(!d.ns||!this.ns||d.ns===this.ns)&&u.some(l=>d.target.match(l))).map(d=>d.fn);return Promise.all(u.map(d=>{const l=new bn(this.platform,d,this.ns);return js(c,n,l).then(h=>{const{data:m={},options:g,cancelled:y}=h;return Promise.resolve(y?{}:i.fn(m,g,l)).then(p=>{r[d.id]=p})})}))})).then(()=>r)}watch(e,n){let s=e,r=this.ns;const o=e.split(".");o.length>1&&(r=o[0],s=o.splice(1).join("."));const i={fn:n,target:this.target,key:s,ns:r};this.platform.actionsState.watchers.push(i);const u=()=>{const c=this.platform.actionsState.watchers.indexOf(i);c>-1&&this.platform.actionsState.watchers.splice(c,1)};return this.subscriptions.push(u),u}dispose(){this.subscriptions.forEach(e=>e())}}Be(t=>{t.createCommand("components",e=>n=>{e.events.subscribeOnce("components:platform-created",(s,{platform:r})=>{n.handlers&&n.handlers.forEach(([o,i])=>{r.addComponentHandler(o,i)})})})});class Ut{constructor(e,n){w(this,"id");w(this,"type");w(this,"name");w(this,"parent");w(this,"tags",[]);w(this,"children",{});w(this,"changesets",[]);w(this,"attributes");w(this,"mountCount",0);this.events=e,this.id=oe(),this.type=n,this.attributes={context:{},properties:{},layout:{},tags:[]},this.writeLayout({size:"full",indent:0})}mount(e,n){let s=e.get("mounted-nodes");return s||(s=new Map,e.register("mounted-nodes",s)),s.has(this)?(process.env.NODE_ENV!=="production"&&O.error("Trying to mount an already mounted component node.",this),()=>{}):(this.events.dispatch("components:node-mounted",{node:this}),this.mountCount===0&&(this.mountCount=this.mountCount+1,this.events.dispatch("components:node-enter",{node:this})),()=>{s.delete(this),this.events.dispatch("components:node-unmounted",{node:this}),this.mountCount=this.mountCount-1,this.mountCount===0&&this.events.dispatch("components:node-exit",{node:this})})}appendChild(e,n="default"){if(e.parent){if(e.parent===this)return;e.parent.removeChild(e)}e.parent=this,this.children[n]||(this.children[n]=[]),this.children[n].push(e),this.events.dispatch("components:node-appended",{node:e})}prependChild(e,n="default"){if(e.parent){if(e.parent===this)return;e.parent.removeChild(e)}e.parent=this,this.children[n]||(this.children[n]=[]),this.children[n].unshift(e),this.events.dispatch("components:node-appended",{node:e})}touchProperties(e,n={},s){const o=[{properties:e},n];return this.changesets.push(o),this.events.dispatch("components:set-properties",{node:this}),()=>{if(s){const i=this.changesets.indexOf(o);i>-1&&(this.changesets.splice(i,1),this.events.dispatch("components:set-properties",{node:this}))}}}writeProperties(e,n={},s){const o=[{properties:e},n];return this.changesets.push(o),this.events.dispatch("components:set-properties",{node:this}),()=>{if(s){const i=this.changesets.indexOf(o);i>-1&&(this.changesets.splice(i,1),this.events.dispatch("components:set-properties",{node:this}))}}}writeLayout(e,n={},s){const o=[{layout:e},n];return this.changesets.push(o),this.events.dispatch("components:set-layout",{node:this}),()=>{if(!s)return;const i=this.changesets.indexOf(o);i>-1&&(this.changesets.splice(i,1),this.events.dispatch("components:set-layout",{node:this}))}}writeContext(e,n={},s){const o=[{context:e},n];return this.changesets.push(o),this.events.dispatch("components:set-context",{node:this}),()=>{if(!s)return;const i=this.changesets.indexOf(o);i>-1&&(this.changesets.splice(i,1),this.events.dispatch("components:set-context",{node:this}))}}getChildren(e="default"){const n=this.children[e]||[];return n.reduce((s,r,o)=>{const{order:i=o}=r.attributes.layout;return s[i]?s.splice(i,0,r):s[i]=r,s},Array(n.length))}remove(){this.parent&&this.parent.removeChild(this)}removeChild(e){Object.keys(this.children).forEach(n=>{const s=this.children[n],r=s.indexOf(e);r>-1&&(s.splice(r,1),this.events.dispatch("components:node-removed",{node:e,parentNode:this}))}),delete e.parent}}const Cn=(t,e,n)=>{for(let s=0,r=t.length;s<r&&n(t[s])!==!0;s++){const o=e[t[s].id]||"default",i=t[s].getChildren(o);Cn(i,e,n)}},kt=(t,e,n)=>{if(n(t)!==!0){const s=e[t.id]||"default",r=t.children[s];Cn(r,e,n)}},tt=(t,e)=>{const n=[];return kt(t,e,s=>{n.push(s)}),n},Ss=(t,e,n)=>{let s;return kt(t,e,r=>{if(n(r))return s=r,!0}),s};class Es{constructor(e,n,s){w(this,"all",[]);w(this,"visible",[]);w(this,"detached",[]);this.root=e,this.switches=n,s.subscribe("components:node-appended",(r,o)=>{this.all.push(o.node),this.visible=tt(e,n)}),s.subscribe("components:node-removed",(r,o)=>{let i=this.all.indexOf(o.node);i>-1&&this.all.splice(i,1),i=this.visible.indexOf(o.node),i>-1&&this.visible.splice(i,1),this.visible=tt(e,n)}),s.subscribe("components:node-switched",(r,o)=>{this.visible=tt(e,n)})}query(e={}){const n=[];return kt(this.root,this.switches,s=>{Object.keys(e).every(o=>e[o]===s[o])&&n.push(s)}),n}get(e){return Ss(this.root,this.switches,n=>n.id===e)||this.detached.find(n=>n.id===e)}}class Ls{constructor(){w(this,"handlers",new Map)}add(e,n){this.handlers.set(e,n)}get(e){return this.handlers.get(e)}}const Ns=t=>{let e=t,n=0;for(;e.parent;)n=n+1,e=e.parent;return n},Rs=t=>t.map(([n,s])=>[Ns(n),n,s]).sort(([n],[s])=>n-s).map(([,n,s])=>[n,s]),nt=t=>t instanceof Date?!1:t&&typeof t=="object"&&!Array.isArray(t),Q=(t,...e)=>{if(!e.length)return t;const n=e.shift();if(nt(t)&&nt(n))for(const s in n)nt(n[s])?(t[s]||Object.assign(t,{[s]:{}}),Q(t[s],n[s])):Object.assign(t,{[s]:n[s]});return Q(t,...e)},Ms=(t,e)=>!t||t==="all"?!0:t.some(n=>e.indexOf(n)>-1),Os=(t,e)=>{let n=[],s=[],r;const o=()=>{process.env.NODE_ENV!=="production"&&console.time("state-processor.flush");const u=new Map,c=Rs(n.map((l,h)=>[l,s[h]])),d=(l,h)=>{var N;const m=u.get(l)||{},g=h.context&&!m.context,y=h.properties&&!m.properties,p=h.layout&&!m.layout;u.set(l,{context:m.context||g,properties:m.properties||y,layout:m.layout||p}),y&&(l.attributes.properties={}),p&&(l.attributes.layout={}),g&&(l.attributes.context=Q({},(N=l.parent)==null?void 0:N.attributes.context));const v=[],j=[],S=[];if(l.changesets.forEach($=>{const[L,Y]=$;Ms(Y.breakpoints,t.breakpoints)&&(y&&(typeof L.properties=="function"?v.push(L.properties):Q(l.attributes.properties,L.properties)),p&&(typeof L.layout=="function"?j.push(L.layout):Q(l.attributes.layout,L.layout)),g&&(typeof L.context=="function"?S.push(L.context):Q(l.attributes.context,L.context)))}),v.forEach($=>{Q(l.attributes.properties,$(l.attributes.properties))}),j.forEach($=>{Q(l.attributes.layout,$(l.attributes.layout))}),S.forEach($=>{Q(l.attributes.context,$(l.attributes.context))}),g||h.recursive){const $=t.getBranch(l),L=h.recursive?h:{context:!!g};l.getChildren($).forEach(Y=>{d(Y,L)})}};process.env.NODE_ENV!=="production"&&console.timeEnd("state-processor.flush"),c.forEach(([l,h])=>{d(l,h)}),n=[],s=[],e(u)},i=()=>{clearTimeout(r),r=setTimeout(o,0)};return(u,c)=>{const d=n.indexOf(u);if(d>-1){const l=s[d];return c.context&&(l.context=!0),c.properties&&(l.properties=!0),c.layout&&(l.layout=!0),c.recursive&&(l.recursive=!0),i()}return n.push(u),s.push(c),i()}};class wn{constructor(e,n={}){w(this,"events");w(this,"breakpoints",[]);w(this,"nodes");w(this,"actionsState",{handlers:[],watchers:[]});w(this,"switches",{});w(this,"changesets",[]);w(this,"subscriptions",[]);w(this,"processNode");w(this,"customComponentHandler",new Ls);this.providers=n,this.events=e.events.createChild(this);const s=new Ut(this.events,"root");s.name=`root-${e.name}`,this.nodes=new Es(s,this.switches,this.events);const r=this.processNode=Os(this,o=>{const i=Array.from(o.keys());process.env.NODE_ENV!=="production"&&console.info(`STATE PROCESSOR: ${i.length} node(s) processed:
30
- ${i.map(u=>`${u.name||"<no name>"} (${u.id})
31
- `)}`),i.forEach(u=>{const c=o.get(u);u.parent&&u.parent.type==="root"&&this.events.dispatch("components:root-children-changed",{node:u}),c!=null&&c.context&&this.events.dispatch("components:context-changed",{node:u}),c!=null&&c.properties&&this.events.dispatch("components:properties-changed",{node:u}),c!=null&&c.layout&&this.events.dispatch("components:layout-changed",{node:u})}),this.events.dispatch("components:component-model-initialized",{},{bubbles:!0})});Promise.all(Object.keys(n).map(o=>n[o].load(this))),this.subscriptions.push(this.events.subscribe("components:node-appended",(o,i)=>{const{node:u}=i;this.changesets.forEach(c=>{const{changeset:d,target:l,removes:h}=c,[m,g]=d;l.match(i.node)&&(m.properties&&h.push(u.writeProperties(m.properties,g)),m.context&&h.push(u.writeContext(m.context,g)),m.layout&&h.push(u.writeLayout(m.layout,g)))})})),this.subscriptions.push(this.events.subscribe("components:node-appended",(o,i)=>{r(i.node,{properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:set-properties",(o,i)=>{r(i.node,{properties:!0})})),this.subscriptions.push(this.events.subscribe("components:set-context",(o,i)=>{r(i.node,{properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:set-indent",(o,i)=>{r(i.node,{layout:!0})})),this.subscriptions.push(this.events.subscribe("components:set-layout",(o,i)=>{r(i.node,{layout:!0})})),this.subscriptions.push(this.events.subscribe("components:node-switched",(o,{node:i,branch:u})=>{r(i,{layout:!0,recursive:!0,properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:node-removed",(o,{parentNode:i})=>{r(i,{properties:!0})})),this.events.parent&&this.events.parent.dispatch("components:platform-created",{platform:this})}static getInstance(e){return e.getAsync("components")}addBreakpoint(e){this.breakpoints.indexOf(e)===-1&&(this.breakpoints.push(e),this.processNode(this.nodes.root,{context:!0,properties:!0,layout:!0,recursive:!0}))}removeBreakpoint(e){const n=this.breakpoints.indexOf(e);n>-1&&(this.breakpoints.splice(n,1),this.processNode(this.nodes.root,{context:!0,properties:!0,layout:!0,recursive:!0}))}setSwitch(e,n){this.switches[e.id]=n,this.events.dispatch("components:node-switched",{node:e,branch:n})}getBranch(e){return this.switches[e.id]}createNode(e,n={}){const s=new Ut(this.events,e);return n.detached&&this.nodes.detached.push(s),s}components(){return new We(this)}actions(e,n){return new $t(this,e,n)}write(e){const{provider:n,target:s,attributes:r,options:o={},removable:i}=e,u=e.key||oe(),d={changeset:[r,o],target:s,removes:[]};if(n){const l=this.providers[n];l.write(u,s,r,o),d.removes.push(()=>{l.remove(u)})}return this.changesets.push(d),this.nodes.all.forEach(l=>{if(s.match(l)){let h=()=>{};r.properties&&(h=l.writeProperties(r.properties,o,i)),r.context&&(h=l.writeContext(r.context,o,i)),r.layout&&(h=l.writeContext(r.layout,o,i)),d.removes.push(h)}}),()=>{if(i){d.removes.forEach(h=>h());const l=this.changesets.indexOf(d);l>-1&&this.changesets.splice(l,1)}}}addComponentHandler(e,n){this.customComponentHandler.add(e,n)}getComponentHandler(e){return this.customComponentHandler.get(e)}dispose(){this.subscriptions.forEach(e=>e())}}const Ts=(t,e)=>({id:t.id,type:t.type,name:t.name,branch:e||"default"}),Ds=(t,e,n,s=oe(),r={})=>t.getAsync("components").then(o=>{let i;if(typeof e=="string"){const d=new We(o);d.ofType(e),i=d}else i=e;const u={},c=d=>{const l=u[d.id];return l?Promise.resolve(l.controller):wn.getInstance(t).then(h=>new bn(h,d,s))};o.events.subscribe("components:node-enter",(d,{node:l})=>{i.match(l)&&c(l).then(h=>{Promise.resolve(n(h)).then(m=>{u[l.id]={dispose:m,controller:h}})})}),o.events.subscribe("components:node-exit",(d,{node:l})=>{const h=u[l.id];h&&(h.dispose&&h.dispose(),r.reuseController||(h.controller.dispose(),delete u[l.id]))})});var ke=(t=>(t.open="open",t.closed="closed",t.hidden="hidden",t))(ke||{});const _e=t=>{const e=f.useContext(wt),n=de(),[s,r]=f.useState();return f.useEffect(()=>{if((t||e.id)&&n){const o=n.nodes.get(t||e.id);r(o)}},[t,e.id,n]),s},J=()=>{const t=f.useRef(!1);return f.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),t},de=t=>{const e=H(),[n,s]=f.useState(null),r=J();return f.useEffect(()=>{wn.getInstance(t||e).then(o=>{r.current&&s(o)})},[r]),n},As=()=>{const t=_e(),e=de(),[n,s]=f.useState([]),r=J(),o=f.useCallback(i=>{if(e&&r.current&&i){const u=e.getBranch(i),c=i.getChildren(u).map(d=>Ts(d));s(c)}},[r,e,s,t]);return f.useEffect(()=>{t&&o(t)},[t,e]),f.useEffect(()=>{if(e){const[i,u]=vn(e.events);return i("components:set-layout",(c,d)=>{(t===d.node.parent||d.node.parent===e.nodes.root)&&o(d.node.parent)}),i("components:node-appended",(c,d)=>{(t===d.node.parent||d.node.parent===e.nodes.root)&&o(d.node.parent)}),i("components:node-removed",(c,{parentNode:d})=>{(d===t||d===e.nodes.root)&&o(d)}),()=>{u()}}},[t,e,o]),n},zs=()=>f.useContext(pn),Ps=(t,e)=>{const n=Ve(),s=H(),[r,o]=f.useState(void 0),i=J(),u=t||n.type||"";return f.useEffect(()=>{if(u){let c;return(e||s).getAsync("componentResolver").then(d=>{if(i.current){const l=d.getComponent(u);o(l)}c=d.registerResolver(u,l=>{i.current&&o(l)})}),()=>{c&&c()}}},[i,u,e,s]),r},$n=t=>{const e=_e(t),n=de(),[s,r]=f.useState({}),o=J();return f.useEffect(()=>{e&&o.current&&r(e.attributes.context)},[o,e]),f.useEffect(()=>{if(n){const i=n.events.subscribe("components:context-changed",(u,c)=>{e===c.node&&o.current&&r(c.node.attributes.context)});return()=>{i()}}},[o,n,e]),s},Hs=()=>f.useContext(xn),Is=()=>{const t=de(),e=Ve(),[n,s]=f.useState([]),[r,o]=f.useState();return f.useEffect(()=>{if(t&&e){const i=new We(t).withId(e.id),u=t.actions(i,e.type||oe());o(u),n!==null&&(n.forEach(c=>{u.dispatch(c.key,c.data).then(d=>c.resolve(d)).catch(d=>c.reject(d))}),s(null))}},[t,e.id]),(i,u)=>n!==null?new Promise((c,d)=>{n.push({key:i,data:u,resolve:c,reject:d})}):r.dispatch(i,u)},Z=(t,e,n=window,s=()=>!0)=>{const r=f.useRef(()=>{});f.useEffect(()=>{r.current=e},[e]),f.useEffect(()=>{if(!(n&&s()))return;const i=u=>r.current(u);return n.addEventListener(t,i),()=>{n.removeEventListener(t,i)}},[t,n])},kn=t=>{const e=H(),{events:n}=(t||e).get("$widget");return n},jn=()=>{const[t,e]=f.useState(!1);return f.useEffect(()=>{const n=()=>{e(!1)},s=r=>{r.keyCode===9&&e(!0)};return window.addEventListener("keydown",s),window.addEventListener("click",n),()=>{window.removeEventListener("keydown",s),window.removeEventListener("click",n)}},[]),t},U=(t,e)=>{const[n,s]=f.useState(!1),r=f.useCallback(i=>{const{key:u}=i;u===t&&(s(!0),e&&e(i))},[s,e]),o=f.useCallback(({key:i})=>{i===t&&s(!1)},[s]);return Z("keydown",r,window),Z("keyup",o,window),n},Bs=t=>{const e=_e(t),n=de(),[s,r]=f.useState({}),o=J();return f.useEffect(()=>{e&&o.current&&r(e.attributes.layout)},[e,o]),f.useEffect(()=>{if(n){const i=n.events.subscribe("components:layout-changed",(u,c)=>{e===c.node&&o.current&&r(c.node.attributes.layout)});return()=>{i()}}},[n,o,e]),s},Fe=t=>{const e=f.useRef();return f.useEffect(()=>{e.current=t}),e.current},Vs=()=>f.useContext(gn),Ws=t=>{const[e,n]=f.useState(),s=H(),r=J();return f.useEffect(()=>{let o;const i=(t||s).get("$widget");if(!i)return;const{name:u,invoke:c}=i;return c("renderState").then(d=>{r.current&&n(d)}),(t||s).getAsync("actionResolver").then(d=>{o=d.subscribe(u,(l,h)=>{switch(h){case"close":case"open":r.current&&n(h==="open"?ke.open:ke.closed);break;case"hide":r.current&&n(ke.hidden)}})}),()=>{o&&o()}},[r]),e},jt=()=>f.useContext(yn),St=t=>{const e=H(),n=jt(),[s,r]=f.useState({name:"",params:{}}),o=J();return f.useEffect(()=>{const i=(t||e).get("$widget");if(!i)return;const{events:u}=i;return u.subscribe("router:change",(d,{next:{routeData:l}})=>{if(o.current){const{name:h,params:m}=l;Kt(m),r({name:h,params:m})}})},[o,t,e]),f.useEffect(()=>{if(n&&n.history&&o.current){const i=n.getRouteData(),{name:u,params:c}=i;Kt(c),r({name:u,params:c})}},[n,o]),s},Et=t=>{const e=f.useRef(),n=f.useRef(0);let s;const r=f.useCallback(()=>{var d;(d=e.current)==null||d.classList.add("humany-scrolling"),clearTimeout(s),s=setTimeout(()=>{var l;(l=e.current)==null||l.classList.remove("humany-scrolling")},500)},[e]),o=f.useCallback(d=>{n.current=d.touches[0].clientY},[e]),i=d=>u(d)?d===e.current?d:null:d.parentElement?i(d.parentElement):null,u=d=>d.scrollWidth>d.clientWidth||d.scrollHeight>d.clientHeight,c=f.useCallback(d=>{if(!d.cancelable)return;const l=d.touches[0].clientY,h=i(d.target);if(!h)return;const m=h.scrollTop,g=n.current-l<0?"up":"down",y=m<=0&&g==="up",p=m>=h.scrollHeight-h.offsetHeight&&g==="down";(y||p)&&d.preventDefault(),n.current=l},[e,n]);return Z("scroll",r,e.current,()=>e.current&&t),Z("touchstart",o,e.current,()=>e.current&&t),Z("touchmove",c,e.current,()=>e.current&&t),t?[_s,e]:["",e]},_s=`
32
- overflow-y: ${lt()===ct.Chrome||lt()===ct.EdgeChromium?"overlay":"auto"};
33
- overflow-x: hidden;
34
- -ms-overflow-style: none; /* IE 10+ */
35
- scrollbar-width: thin; /* Firefox */
36
- scrollbar-color: transparent transparent; /* Firefox */
37
-
38
- ::-webkit-scrollbar {
39
- width: 3px !important;
40
- background-color: transparent;
41
- border-left: none;
42
- }
43
- ::-webkit-scrollbar-thumb {
44
- background-color: transparent;
45
- }
46
- ::-webkit-scrollbar-track {
47
- -webkit-box-shadow: none !important;
48
- background-color: transparent;
49
- }
50
- &.humany-scrolling {
51
- scrollbar-color: #7F7F7F transparent;
52
- scrollbar-width: thin; /* Firefox */
53
- -ms-overflow-style: none; /* IE 10+ */
54
-
55
- ::-webkit-scrollbar-thumb {
56
- background-color: #7F7F7F;
57
- }
58
- }
59
- `,Fs=()=>{const[t,e]=f.useState(null),n=H(),s=J();return f.useEffect(()=>{n.get("settings").then(r=>{s.current&&e(r)})},[s]),t},Lt=(t=!1)=>{const[e,n]=f.useState(t),s=f.useCallback(r=>{n(typeof r=="boolean"?r:o=>!o)},[]);return[e,s]},Zs=t=>{const e=H(),n=de(),s=e.get("widgetDOMElement"),[r,o]=f.useState(null),[i,u]=f.useState(null),c=J();f.useEffect(()=>{if(n&&c.current){const l=n.nodes.all.find(m=>m.name==="root-area"),h=n.nodes.all.find(m=>m.type==="view");if(!(h!=null&&h.attributes.properties.animation)&&!(l!=null&&l.attributes.properties.animation))t();else{const m=(p="")=>s==null?void 0:s.querySelector(`[data-node-id="${p}"]`),g=m(h==null?void 0:h.id);g&&o(g);const y=m(l==null?void 0:l.id);y&&u(y)}}},[n,e,c]);const d=f.useCallback(l=>{c.current&&(l.target===r||l.target===i)&&t()},[t,c,r,i]);Z("transitionend",d,r),Z("transitionend",d,i)},Se=(t,e,n=[],s)=>{const r=kn(s);return f.useEffect(()=>{if(r){const o=r.subscribe(t,e);return()=>{o()}}},[r].concat(n)),o=>r==null?void 0:r.dispatch(t,o)},Ze=(t,e)=>{const n=Se("widget:menu-toggled",(s,r)=>{r!==t&&e()});return()=>n(t)},Ce=f.forwardRef(({className:t,children:e,...n},s)=>a.jsx("span",{ref:s,className:k(t,"humany-text"),...D(n),children:e})),Nt=t=>C.css`
60
- display: flex;
61
- justify-content: center;
62
- flex-direction: column;
63
- background: #ffffff;
64
- border-radius: ${t.theme.borderRadius};
65
- border: ${t.theme.border};
66
- box-shadow: ${t.theme.boxShadow||"none"};
67
- ${t["data-loading"]&&"min-height: 150px;"}
68
- `,Sn=t=>{var e,n,s;return C.css`
69
- cursor: pointer;
70
- text-align: center;
71
- border: none;
72
- font-weight: 300;
73
- padding: ${(e=t.theme.sizes)==null?void 0:e.normal};
74
- border-radius: ${t.theme.borderRadius};
75
- font-family: ${(n=t.theme.fonts)==null?void 0:n.type};
76
- font-size: ${(s=t.theme.fonts)==null?void 0:s.normal};
77
- `},Rt=t=>{var i;const{primaryColor:e,secondaryColor:n,active:s,theme:r,disabled:o}=t;return C.css`
78
- ${Sn(t)}
79
- border: 1px solid ${s?n:e};
80
- background-color: ${s?e:n};
81
-
82
- color: ${s?n:e};
83
- transition: background-color 200ms ease-out, color 200ms ease-out;
84
-
85
- span,
86
- i,
87
- p,
88
- a {
89
- transition: color 200ms ease-out;
90
- color: ${s?n:e};
91
- font-size: ${(i=r.fonts)==null?void 0:i.normal};
92
- }
93
-
94
- ${!o&&C.css`
95
- &:hover {
96
- background-color: ${e};
97
- color: ${n};
98
-
99
- span,
100
- i,
101
- p,
102
- a {
103
- color: ${n};
104
- }
105
- }
106
-
107
- &:focus-visible {
108
- ${K(t)};
109
- }
110
- `}
111
- `},K=t=>{var e,n,s;return C.css`
112
- outline: ${(e=t.theme.accessibility)==null?void 0:e.border};
113
- color: ${(s=(n=t.theme.accessibility)==null?void 0:n.colors)==null?void 0:s.inactiveText};
114
- border-color: transparent;
115
- `},En=t=>C.css`
116
- ${K(t)}
117
- text-decoration: underline;
118
- `,dt=t=>{var e;return C.css`
119
- ${K(t)}
120
- outline-offset: ${(e=t.theme.sizes)==null?void 0:e.small};
121
- `},Mt=x(ie)`
122
- position: absolute;
123
- top: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
124
- right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
125
- z-index: 1;
126
-
127
- svg {
128
- stroke: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
129
- }
130
-
131
- &:focus-visible {
132
- ${K}
133
- padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}};
134
- height: 15px;
135
- box-sizing: content-box;
136
- }
137
- `,xe=x(Ce)`
138
- font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
139
- font-weight: normal;
140
- line-height: 1.2em;
141
- color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
142
- `,Ke=t=>{var e;return C.css`
143
- padding: 0;
144
- margin: 0;
145
- list-style: none;
146
- > li {
147
- margin: 0 0 ${(e=t.theme.sizes)==null?void 0:e.normal};
148
- white-space: nowrap;
149
- text-overflow: ellipsis;
150
- min-width: 0;
151
- &:focus {
152
- outline-offset: -2px;
153
- }
154
- > a {
155
- text-decoration: none;
156
- }
157
- }
158
- > li:last-of-type {
159
- margin: 0;
160
- }
161
- `},Ee=t=>{var e,n,s,r;return C.css`
162
- > div {
163
- ${re(t)("> h1",C.css`
164
- margin: 0 0 ${(e=t.theme.sizes)==null?void 0:e.normal};
165
- font-size: ${(n=t.theme.fonts)==null?void 0:n.medium};
166
- font-weight: normal;
167
- line-height: 1.8em;
168
- color: ${(s=t.theme.colors)==null?void 0:s.text};
169
- `)}
170
- }
171
- > ul {
172
- ${Ke(t)}
173
- }
174
- ${re(t)("h1",C.css`
175
- display: flex;
176
- align-items: center;
177
- i {
178
- margin: 7px ${(r=t.theme.sizes)==null?void 0:r.normal} 0 0;
179
- width: 24px;
180
- display: inline-block;
181
- vertical-align: text-bottom;
182
- align-self: flex-start;
183
- min-width: 24px;
184
- min-height: 24px;
185
- text-align: center;
186
- }
187
- `)}
188
- `},Ln=t=>{var e,n,s,r,o,i;return C.css`
189
- font-size: ${(e=t.theme.fonts)==null?void 0:e.normal};
190
- font-weight: 300;
191
- line-height: 1.5em;
192
- color: ${(n=t.theme.colors)==null?void 0:n.text};
193
-
194
- h1,
195
- h2,
196
- h3,
197
- h4,
198
- h5,
199
- h6 {
200
- word-break: break-word;
201
- &:first-child {
202
- margin-top: 0;
203
- }
204
- &:only-child {
205
- margin: 0;
206
- }
207
- &:last-child {
208
- margin-bottom: 0;
209
- }
210
- }
211
-
212
- a {
213
- color: ${(s=t.theme.colors)==null?void 0:s.link};
214
- &:focus-visible {
215
- ${En(t)};
216
- }
217
- }
218
-
219
- img {
220
- max-width: 100% !important;
221
- height: auto !important;
222
- }
223
-
224
- p {
225
- word-break: break-word;
226
- margin: ${(r=t.theme.sizes)==null?void 0:r.normal} 0;
227
- }
228
-
229
- p:first-child {
230
- margin: 0 0 ${(o=t.theme.sizes)==null?void 0:o.normal};
231
- }
232
-
233
- p:last-child {
234
- margin: ${(i=t.theme.sizes)==null?void 0:i.normal} 0 0;
235
- }
236
-
237
- p:only-child {
238
- margin: 0;
239
- }
240
- `},we=({elementId:t="humany-portal-elements",parent:e=document.body,children:n})=>{const[s]=f.useState(()=>{const r=document.getElementById(t)||document.createElement("div");return r.id=t,r});return f.useEffect(()=>(e.appendChild(s),()=>{s.childElementCount<=1&&s.remove()}),[s]),es.createPortal(n,s)},V=({text:t="",backgroundSize:e="contain",size:n=12,symbol:s={content:"",type:""},elementStyle:r={},className:o,...i})=>{const{type:u,content:c}=s,d={"aria-label":t,role:"presentation"};switch(u){case"Uri":{const l={backgroundSize:e,backgroundImage:`url('${c}')`,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundAttachment:"center"};return a.jsx("i",{className:k(o,"humany-icon","humany-custom-icon"),title:t,style:{...l,...r},...d,...i})}case"Svg":{const l={className:k(o,"humany-icon"),width:`${n}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,ref:null},h={minWidth:`${n}`};switch(c){case"search":return a.jsxs("svg",{viewBox:"0 0 32 30",...l,children:[a.jsx("circle",{cx:"14.8457",cy:"14.5175",r:"8.14359",transform:"rotate(45 14.8457 14.5175)"}),a.jsx("line",{x1:"21.1001",y1:"20.4865",x2:"26.5798",y2:"25.9661"})]});case"clear":return a.jsxs("svg",{viewBox:"0 0 27 27",...l,children:[a.jsx("circle",{cx:"13.4351",cy:"13.435",r:"9",transform:"rotate(45 13.4351 13.435)",stroke:"black"}),a.jsx("line",{x1:"16.6172",y1:"10.2531",x2:"10.2533",y2:"16.6171",stroke:"black"}),a.jsx("line",{x1:"16.6171",y1:"16.617",x2:"10.2532",y2:"10.2531",stroke:"black"})]});case"close":return a.jsxs("svg",{viewBox:"0 0 13 13",...l,children:[a.jsx("path",{d:"M12.3068 0.50647L1.27246 11.7273",stroke:"black"}),a.jsx("path",{d:"M12.2812 11.9473L1.24686 0.726451",stroke:"black"})]});case"caret-right":return a.jsxs("svg",{viewBox:"0 0 14 14",style:h,...l,children:[a.jsx("line",{x1:"4.13",y1:"1.05",x2:"10.13",y2:"7.05",stroke:"black"}),a.jsx("line",{x1:"10.13",y1:"6.95",x2:"4.13",y2:"12.95",stroke:"black"})]});case"caret-left":return a.jsxs("svg",{viewBox:"0 0 14 14",style:h,...l,children:[a.jsx("line",{x1:"10.13",y1:"12.95",x2:"4.13",y2:"6.95",stroke:"black"}),a.jsx("line",{x1:"4.13",y1:"7.05",x2:"10.13",y2:"1.05",stroke:"black"})]});case"caret-up":return a.jsxs(Ks,{viewBox:"0 0 14 14",style:h,...l,children:[a.jsx("line",{x1:"13.09",y1:"3.99",x2:"7.1",y2:"9.99",stroke:"black"}),a.jsx("line",{x1:"7.19",y1:"9.99",x2:"1.19",y2:"3.99",stroke:"black"})]});case"caret-down":return a.jsxs("svg",{viewBox:"0 0 14 14",style:h,...l,children:[a.jsx("line",{x1:"13.09",y1:"3.99",x2:"7.1",y2:"9.99",stroke:"black"}),a.jsx("line",{x1:"7.19",y1:"9.99",x2:"1.19",y2:"3.99",stroke:"black"})]});case"back":return a.jsxs("svg",{viewBox:"0 0 18 18",...l,children:[a.jsx("line",{y1:"-0.5",x2:"11.724",y2:"-0.5",transform:"matrix(-0.682355 -0.731021 0.682355 -0.731021 13 16.9999)",stroke:"white"}),a.jsx("line",{y1:"-0.5",x2:"11.724",y2:"-0.5",transform:"matrix(0.682355 -0.731021 0.682355 0.731021 5 9.5705)",stroke:"white"})]});case"alert":return a.jsxs("svg",{viewBox:"0 0 19 19",...l,children:[a.jsx("circle",{cx:"9.5",cy:"9.5",r:"9.5",fill:"#CA0813"}),a.jsx("path",{d:"M10.36 4.878V8.882C10.36 9.30667 10.339 9.72433 10.297 10.135C10.255 10.541 10.199 10.9727 10.129 11.43H8.96C8.89 10.9727 8.834 10.541 8.792 10.135C8.75 9.72433 8.729 9.30667 8.729 8.882V4.878H10.36ZM8.463 14.048C8.463 13.9033 8.48867 13.7657 8.54 13.635C8.596 13.5043 8.67067 13.3923 8.764 13.299C8.862 13.2057 8.97633 13.131 9.107 13.075C9.23767 13.019 9.37767 12.991 9.527 12.991C9.67167 12.991 9.80933 13.019 9.94 13.075C10.0707 13.131 10.1827 13.2057 10.276 13.299C10.3693 13.3923 10.444 13.5043 10.5 13.635C10.556 13.7657 10.584 13.9033 10.584 14.048C10.584 14.1973 10.556 14.3373 10.5 14.468C10.444 14.594 10.3693 14.7037 10.276 14.797C10.1827 14.8903 10.0707 14.9627 9.94 15.014C9.80933 15.07 9.67167 15.098 9.527 15.098C9.37767 15.098 9.23767 15.07 9.107 15.014C8.97633 14.9627 8.862 14.8903 8.764 14.797C8.67067 14.7037 8.596 14.594 8.54 14.468C8.48867 14.3373 8.463 14.1973 8.463 14.048Z",fill:"white"})]});case"send":return a.jsx("svg",{viewBox:"0 0 20 17",...l,children:a.jsx("path",{d:"M18.95 8.56428L0.949951 0.941406V7.02531L13.6351 8.47059L0.950001 9.92276L0.949951 15.9414L18.95 8.56428Z",fill:"#A6A6A6",stroke:"#A6A6A6",strokeWidth:"0.1"})});case"chat":return a.jsxs("svg",{viewBox:"-2 -3 40 40",...l,children:[a.jsx("path",{strokeWidth:"0",fillRule:"evenodd",clipRule:"evenodd",d:"M16.9799 34C21.2676 34 25.1841 32.4256 28.1725 29.8285L34.9534 32.1994C35.7991 32.4951 36.553 31.5778 36.0892 30.8173L32.2559 24.5317C33.3474 22.3103 33.9598 19.8153 33.9598 17.1786C33.9598 7.88838 26.3576 0.357178 16.9799 0.357178C7.60216 0.357178 0 7.88838 0 17.1786C0 26.4688 7.60216 34 16.9799 34ZM30.7031 24.565C31.9094 22.3701 32.5948 19.8536 32.5948 17.1786C32.5948 8.6352 25.6038 1.70942 16.9799 1.70942C8.35601 1.70942 1.36498 8.6352 1.36498 17.1786C1.36498 25.722 8.35601 32.6478 16.9799 32.6478C21.1946 32.6478 25.0193 30.9935 27.8285 28.3047L34.3975 30.5798L30.7031 24.565Z",fill:"currentColor"}),a.jsx("path",{strokeWidth:"0",d:"M12.9395 17.1786C12.9395 18.6079 11.7809 19.7665 10.3516 19.7665C8.92237 19.7665 7.76373 18.6079 7.76373 17.1786C7.76373 15.7493 8.92237 14.5907 10.3516 14.5907C11.7809 14.5907 12.9395 15.7493 12.9395 17.1786Z",fill:"currentColor"}),a.jsx("path",{strokeWidth:"0",d:"M19.4093 17.1786C19.4093 18.6079 18.2507 19.7665 16.8214 19.7665C15.3921 19.7665 14.2335 18.6079 14.2335 17.1786C14.2335 15.7493 15.3921 14.5907 16.8214 14.5907C18.2507 14.5907 19.4093 15.7493 19.4093 17.1786Z",fill:"currentColor"}),a.jsx("path",{strokeWidth:"0",d:"M25.8791 17.1786C25.8791 18.6079 24.7204 19.7665 23.2912 19.7665C21.8619 19.7665 20.7033 18.6079 20.7033 17.1786C20.7033 15.7493 21.8619 14.5907 23.2912 14.5907C24.7204 14.5907 25.8791 15.7493 25.8791 17.1786Z",fill:"currentColor"})]});case"chat-new":return a.jsxs("svg",{viewBox:"0 0 26 24",...l,children:[a.jsx("path",{d:"M22.1109 10.3813C22.3941 10.2876 22.6674 10.1722 22.9288 10.0371C23.1902 10.9797 23.33 11.9734 23.33 13C23.33 19.0751 18.4348 24 12.3962 24C9.6352 24 7.11325 22.9705 5.18893 21.2721L0.82251 22.8226C0.277922 23.0159 -0.207515 22.4161 0.0911259 21.9188L2.55952 17.8084C1.85665 16.3558 1.46233 14.7242 1.46233 13C1.46233 6.92487 6.35758 2 12.3962 2C13.4013 2 14.3747 2.13645 15.2992 2.39193C15.1628 2.65458 15.0464 2.92925 14.9519 3.21394C14.1358 2.99881 13.2793 2.88427 12.3962 2.88427C6.84301 2.88427 2.34128 7.41324 2.34128 13C2.34128 14.7493 2.78263 16.3949 3.5594 17.8302L1.18047 21.7634L5.41046 20.2757C7.21939 22.034 9.68221 23.1157 12.3962 23.1157C17.9493 23.1157 22.451 18.5868 22.451 13C22.451 12.0944 22.3328 11.2165 22.1109 10.3813Z",fill:"currentColor"}),a.jsx("path",{d:"M25.6633 4C25.6633 6.20914 23.8724 8 21.6633 8C19.4541 8 17.6633 6.20914 17.6633 4C17.6633 1.79086 19.4541 0 21.6633 0C23.8724 0 25.6633 1.79086 25.6633 4Z",fill:"currentColor"})]});case"agent":return a.jsxs("svg",{viewBox:"0 0 36 30",...l,children:[a.jsx("path",{d:"M0.900024 15.3887C0.900024 12.9034 2.91474 10.8887 5.40002 10.8887H6.28179V20.0995H5.40002C2.91474 20.0995 0.900024 18.0848 0.900024 15.5995V15.3887Z",stroke:"white"}),a.jsx("path",{d:"M34.65 15.5996C34.65 18.0849 32.6353 20.0996 30.15 20.0996L29.2683 20.0996L29.2683 10.8888L30.15 10.8888C32.6353 10.8888 34.65 12.9035 34.65 15.3888L34.65 15.5996Z",stroke:"white"}),a.jsx("path",{d:"M29.2565 20.5974C29.2565 26.341 22.8747 26.9792 19.6838 26.9792",stroke:"white"}),a.jsx("circle",{cx:"17.4074",cy:"26.9795",r:"2.05271",stroke:"white"}),a.jsx("path",{d:"M6.28467 12.9396C6.28467 11.195 6.28686 18.0452 6.28467 8.47234C6.28248 -1.10049 29.2591 -1.10047 29.259 8.47234C29.259 18.0452 29.2569 11.6631 29.259 12.9396",stroke:"white"})]});case"minimize":return a.jsx("svg",{viewBox:"0 -10 22 22",...l,children:a.jsx("path",{d:"M0 1H22",stroke:"white"})});case"sorting":return a.jsx("svg",{viewBox:"0 0 18 14",...l,children:a.jsx("path",{d:"M18 1H0M8 13H0M13 7H0"})});case"copy":return a.jsxs("svg",{viewBox:"0 0 19 17",...l,children:[a.jsx("rect",{x:"0.5",y:"0.5",width:"11.6667",height:"11.6014",rx:"1.5",fill:"white"}),a.jsx("rect",{x:"6.83301",y:"4.89868",width:"11.6667",height:"11.6014",rx:"1.5",fill:"white"})]});case"print":return a.jsxs("svg",{viewBox:"0 0 16 17",...l,children:[a.jsx("path",{d:"M4.31592 0.999999C4.31592 0.723857 4.53977 0.5 4.81592 0.5H11.1845C11.4606 0.5 11.6845 0.723858 11.6845 1V4.53323H4.31592V0.999999Z",fill:"white",stroke:"black"}),a.jsx("path",{d:"M0.5 4.84595C0.5 4.56981 0.723858 4.34595 1 4.34595H15C15.2761 4.34595 15.5 4.5698 15.5 4.84595V10.8399C15.5 11.116 15.2761 11.3399 15 11.3399H1C0.723858 11.3399 0.5 11.116 0.5 10.8399V4.84595Z",fill:"white",stroke:"black"}),a.jsx("path",{d:"M4.31592 10.0061C4.31592 9.72996 4.53978 9.5061 4.81592 9.5061H11.1845C11.4606 9.5061 11.6845 9.72996 11.6845 10.0061V16.0001C11.6845 16.2762 11.4606 16.5001 11.1845 16.5001H4.81592C4.53978 16.5001 4.31592 16.2762 4.31592 16.0001V10.0061Z",fill:"white",stroke:"black"}),a.jsx("line",{x1:"5.29004",y1:"10.8323",x2:"10.7101",y2:"10.8323",stroke:"black"}),a.jsx("line",{x1:"5.29004",y1:"12.5242",x2:"10.7101",y2:"12.5242",stroke:"black"}),a.jsx("line",{x1:"5.29004",y1:"14.2161",x2:"10.7101",y2:"14.2161",stroke:"black"})]});case"language":return a.jsx("svg",{viewBox:"0 0 19 19",...l,children:a.jsx("path",{d:"M9.5 18C14.1944 18 18 14.1944 18 9.5C18 4.80558 14.1944 1 9.5 1M9.5 18C4.80558 18 1 14.1944 1 9.5C1 4.80558 4.80558 1 9.5 1M9.5 18C11.823 18 13.7062 14.1944 13.7062 9.5C13.7062 4.80558 11.823 1 9.5 1M9.5 18C7.17699 18 5.29381 14.1944 5.29381 9.5C5.29381 4.80558 7.17699 1 9.5 1M1.44333 6.78351H17.4742M1.3088 11.7784H17.6912",stroke:"black"})});case"information":return a.jsxs("svg",{viewBox:"0 0 17 17",...l,children:[a.jsx("path",{d:"M9.72182 5.99993C10.0524 5.99993 10.3203 5.73198 10.3203 5.40145C10.3203 5.07092 10.0524 4.80297 9.72182 4.80297C9.39129 4.80297 9.12335 5.07092 9.12335 5.40145C9.12335 5.73198 9.39129 5.99993 9.72182 5.99993Z",fill:"black"}),a.jsx("path",{d:"M7.21887 6.67639C6.89117 6.71981 6.66072 7.02066 6.70414 7.34836C6.74756 7.67605 7.04841 7.9065 7.3761 7.86308L8.353 7.73364L7.17405 11.3945C7.11289 11.5844 7.15164 11.7825 7.26117 11.932C7.38068 12.1287 7.60875 12.2469 7.85155 12.2147L9.40669 12.0087C9.73436 11.9653 9.96479 11.6645 9.92137 11.3368C9.87795 11.0091 9.57713 10.7787 9.24947 10.8221L8.58762 10.9098L9.76774 7.24534C9.83038 7.05084 9.78821 6.84771 9.67254 6.69702C9.55085 6.50877 9.32791 6.39694 9.09093 6.42834L7.21887 6.67639Z",fill:"black"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 8.5C17 13.1944 13.1944 17 8.5 17C3.80558 17 0 13.1944 0 8.5C0 3.80558 3.80558 0 8.5 0C13.1944 0 17 3.80558 17 8.5ZM16 8.5C16 12.8454 12.8454 16 8.5 16C4.15461 16 1 12.8454 1 8.5C1 4.15461 4.15461 1 8.5 1C12.8454 1 16 4.15461 16 8.5Z",fill:"black"})]});case"options":return a.jsxs("svg",{viewBox:"0 0 16 2",...l,children:[a.jsx("circle",{cx:"15",cy:"1",r:"1",transform:"rotate(90 15 1)",fill:"black"}),a.jsx("circle",{cx:"1",cy:"1",r:"1",transform:"rotate(90 1 1)",fill:"black"}),a.jsx("circle",{cx:"8",cy:"1",r:"1",transform:"rotate(90 8 1)",fill:"black"})]});case"browse":return a.jsxs("svg",{viewBox:"0 0 24 24",...l,children:[a.jsx("circle",{cx:"12",cy:"12",r:"12",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.16663 7.33334C6.16663 6.68901 6.68896 6.16667 7.33329 6.16667H10.25C10.8943 6.16667 11.4166 6.68901 11.4166 7.33334V10.25C11.4166 10.8943 10.8943 11.4167 10.25 11.4167H7.33329C6.68896 11.4167 6.16663 10.8943 6.16663 10.25V7.33334ZM7.33329 7.04167H10.25C10.411 7.04167 10.5416 7.17226 10.5416 7.33334V10.25C10.5416 10.4111 10.411 10.5417 10.25 10.5417H7.33329C7.17221 10.5417 7.04163 10.4111 7.04163 10.25V7.33334C7.04163 7.17226 7.17221 7.04167 7.33329 7.04167Z",fill:"white"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.16663 13.75C6.16663 13.1057 6.68896 12.5833 7.33329 12.5833H10.25C10.8943 12.5833 11.4166 13.1057 11.4166 13.75V16.6667C11.4166 17.311 10.8943 17.8333 10.25 17.8333H7.33329C6.68896 17.8333 6.16663 17.311 6.16663 16.6667V13.75ZM7.33329 13.4583H10.25C10.411 13.4583 10.5416 13.5889 10.5416 13.75V16.6667C10.5416 16.8278 10.411 16.9583 10.25 16.9583H7.33329C7.17221 16.9583 7.04163 16.8278 7.04163 16.6667V13.75C7.04163 13.5889 7.17221 13.4583 7.33329 13.4583Z",fill:"white"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.75 6.16667C13.1056 6.16667 12.5833 6.68901 12.5833 7.33334V10.25C12.5833 10.8943 13.1056 11.4167 13.75 11.4167H16.6666C17.311 11.4167 17.8333 10.8943 17.8333 10.25V7.33334C17.8333 6.68901 17.311 6.16667 16.6666 6.16667H13.75ZM16.6666 7.04167H13.75C13.5889 7.04167 13.4583 7.17226 13.4583 7.33334V10.25C13.4583 10.4111 13.5889 10.5417 13.75 10.5417H16.6666C16.8277 10.5417 16.9583 10.4111 16.9583 10.25V7.33334C16.9583 7.17226 16.8277 7.04167 16.6666 7.04167Z",fill:"white"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8333 15.2083C17.8333 16.6581 16.658 17.8333 15.2083 17.8333C13.7585 17.8333 12.5833 16.6581 12.5833 15.2083C12.5833 13.7586 13.7585 12.5833 15.2083 12.5833C16.658 12.5833 17.8333 13.7586 17.8333 15.2083ZM16.9583 15.2083C16.9583 16.1748 16.1748 16.9583 15.2083 16.9583C14.2418 16.9583 13.4583 16.1748 13.4583 15.2083C13.4583 14.2418 14.2418 13.4583 15.2083 13.4583C16.1748 13.4583 16.9583 14.2418 16.9583 15.2083Z",fill:"white"})]});case"video":return h.minWidth&&typeof h.minWidth=="number"&&(h.minWidth=`${h.minWidth}px`),a.jsxs("svg",{viewBox:"0 0 25 25",...l,style:h,children:[a.jsx("path",{d:"M16.8245 10.0758C18.7392 8.55799 21.3085 7.08973 21.7947 7.61552C22.5982 8.47863 22.5288 16.6929 21.7947 17.4766C21.3482 17.9627 18.7589 16.4945 16.8245 14.9866",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.61914 12.5385C2.61914 7.12973 4.41578 5.32715 9.80764 5.32715C15.1985 5.32715 16.9952 7.12973 16.9952 12.5385C16.9952 17.9462 15.1985 19.7497 9.80764 19.7497C4.41578 19.7497 2.61914 17.9462 2.61914 12.5385Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]});case"star-empty":return a.jsx("svg",{viewBox:"0 0 13 12",...l,children:a.jsx("path",{d:"M2 5.2767L5.11944 4.81796L6.70023 2L7.96487 4.81796L11 5.51699L8.75527 7.64684L9.18735 11L6.42623 9.40534L3.62295 10.7925L4.21311 7.64684L2 5.2767Z",stroke:"black"})});case"star-filled":return a.jsx("svg",{viewBox:"0 0 13 12",...l,children:a.jsx("path",{d:"M2 5.2767L5.11944 4.81796L6.70023 2L7.96487 4.81796L11 5.51699L8.75527 7.64684L9.18735 11L6.42623 9.40534L3.62295 10.7925L4.21311 7.64684L2 5.2767Z",fill:"black",stroke:"black"})});case"cog-wheel":return a.jsx("svg",{viewBox:"0 0 24 24",...l,children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.273 2.68498V1C15.273 0.447715 14.8253 0 14.273 0H9.72754C9.17525 0 8.72754 0.447715 8.72754 1V2.6852C8.72754 3.20708 8.09656 3.46843 7.72754 3.09941L6.53588 1.90775C6.14536 1.51723 5.51219 1.51723 5.12167 1.90775L1.90755 5.12187C1.51702 5.5124 1.51702 6.14556 1.90755 6.53609L3.09865 7.72719C3.46767 8.09621 3.20632 8.72719 2.68444 8.72719H1C0.447715 8.72719 0 9.1749 0 9.72719V14.2726C0 14.8249 0.447715 15.2726 1 15.2726H2.68534C3.20722 15.2726 3.46857 15.9036 3.09955 16.2726L1.90793 17.4643C1.51741 17.8548 1.51741 18.488 1.90793 18.8785L5.12205 22.0926C5.51258 22.4831 6.14574 22.4831 6.53627 22.0926L7.72754 20.9013C8.09656 20.5323 8.72754 20.7937 8.72754 21.3155V23C8.72754 23.5523 9.17525 24 9.72754 24H14.273C14.8253 24 15.273 23.5523 15.273 23V21.3158C15.273 20.7939 15.904 20.5325 16.273 20.9015L17.4639 22.0924C17.8544 22.483 18.4876 22.483 18.8781 22.0924L22.0922 18.8783C22.4828 18.4878 22.4828 17.8546 22.0922 17.4641L20.9008 16.2726C20.5317 15.9036 20.7931 15.2726 21.315 15.2726H23C23.5523 15.2726 24 14.8249 24 14.2726V9.72719C24 9.1749 23.5523 8.72719 23 8.72719H21.3159C20.794 8.72719 20.5326 8.09621 20.9017 7.72719L22.0926 6.53625C22.4831 6.14572 22.4831 5.51256 22.0926 5.12203L18.8785 1.90791C18.488 1.51739 17.8548 1.51739 17.4643 1.90791L16.273 3.0992C15.904 3.46822 15.273 3.20686 15.273 2.68498ZM16.5792 4.20716C16.263 4.52345 15.7775 4.58532 15.3687 4.40375C15.2439 4.34832 15.1174 4.29587 14.9895 4.2465C14.5723 4.08555 14.273 3.69861 14.273 3.25149V2C14.273 1.44771 13.8253 1 13.273 1H10.7275C10.1753 1 9.72754 1.44772 9.72754 2V3.25116C9.72754 3.69832 9.42816 4.08528 9.01096 4.2462C8.88288 4.29561 8.75633 4.34809 8.6314 4.40357C8.22262 4.58511 7.73715 4.52323 7.42087 4.20695L6.53588 3.32196C6.14536 2.93144 5.51219 2.93144 5.12167 3.32196L3.32176 5.12187C2.93124 5.5124 2.93124 6.14556 3.32176 6.53609L4.20676 7.42109C4.52303 7.73736 4.58491 8.22283 4.40338 8.63161C4.34797 8.75638 4.29555 8.88276 4.2462 9.01067C4.08526 9.42784 3.69831 9.72719 3.25118 9.72719H2C1.44772 9.72719 1 10.1749 1 10.7272V13.2726C1 13.8249 1.44772 14.2726 2 14.2726H3.2511C3.69825 14.2726 4.0852 14.572 4.24614 14.9892C4.29556 15.1173 4.34807 15.2439 4.40357 15.3688C4.58513 15.7776 4.52327 16.2631 4.20698 16.5794L3.32215 17.4643C2.93162 17.8548 2.93162 18.488 3.32215 18.8785L5.12205 20.6784C5.51258 21.0689 6.14574 21.0689 6.53627 20.6784L7.42136 19.7933C7.73762 19.477 8.22305 19.4151 8.63183 19.5966C8.75662 19.6521 8.88302 19.7045 9.01096 19.7538C9.42816 19.9147 9.72754 20.3017 9.72754 20.7489V22C9.72754 22.5523 10.1753 23 10.7275 23H13.273C13.8253 23 14.273 22.5523 14.273 22V20.7485C14.273 20.3014 14.5723 19.9145 14.9895 19.7535C15.1173 19.7042 15.2436 19.6518 15.3682 19.5965C15.777 19.4149 16.2625 19.4768 16.5788 19.7931L17.4639 20.6782C17.8544 21.0687 18.4876 21.0687 18.8781 20.6782L20.678 18.8783C21.0685 18.4878 21.0685 17.8546 20.678 17.4641L19.7929 16.579C19.4766 16.2627 19.4147 15.7772 19.5963 15.3684C19.6517 15.2436 19.7042 15.1172 19.7535 14.9892C19.9145 14.572 20.3014 14.2726 20.7486 14.2726H22C22.5523 14.2726 23 13.8249 23 13.2726V10.7272C23 10.1749 22.5523 9.72719 22 9.72719H20.7485C20.3013 9.72719 19.9144 9.42784 19.7535 9.01067C19.7042 8.8829 19.6518 8.75665 19.5965 8.63201C19.415 8.22324 19.4768 7.7378 19.7931 7.42154L20.6784 6.53625C21.0689 6.14572 21.0689 5.51256 20.6784 5.12203L18.8785 3.32213C18.488 2.9316 17.8548 2.9316 17.4643 3.32213L16.5792 4.20716ZM16.5999 12.0001C16.5999 14.5406 14.5404 16.6001 11.9999 16.6001C9.45939 16.6001 7.3999 14.5406 7.3999 12.0001C7.3999 9.45958 9.45939 7.40009 11.9999 7.40009C14.5404 7.40009 16.5999 9.45958 16.5999 12.0001ZM17.5999 12.0001C17.5999 15.0929 15.0927 17.6001 11.9999 17.6001C8.90711 17.6001 6.3999 15.0929 6.3999 12.0001C6.3999 8.90729 8.90711 6.40009 11.9999 6.40009C15.0927 6.40009 17.5999 8.90729 17.5999 12.0001Z",fill:"black"})});case"zoom-in":return a.jsxs("svg",{viewBox:"0 0 24 24",...l,children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.9774 20.8287L17.9149 16.7662C17.8437 16.6957 17.76 16.639 17.668 16.5992C20.7612 12.9331 20.415 7.48045 16.883 4.23507C13.3509 0.989694 7.88848 1.10517 4.49673 4.49691C1.10499 7.88866 0.98951 13.3511 4.23489 16.8831C7.48027 20.4152 12.9329 20.7614 16.599 17.6682C16.6388 17.7601 16.6955 17.8439 16.766 17.9151L20.8285 21.9776C21.1457 22.2948 21.6601 22.2948 21.9774 21.9776C22.2947 21.6603 22.2947 21.1459 21.9774 20.8287ZM10.8404 18.1531C6.80186 18.1531 3.52794 14.8792 3.52794 10.8406C3.52794 6.80204 6.80186 3.52813 10.8404 3.52813C14.879 3.52813 18.1529 6.80204 18.1529 10.8406C18.1483 14.8773 14.8771 18.1484 10.8404 18.1531Z",fill:"white"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8749 6.75003C11.2892 6.75003 11.6249 7.08581 11.6249 7.50003V14.25C11.6249 14.6642 11.2892 15 10.8749 15C10.4607 15 10.1249 14.6642 10.1249 14.25V7.50003C10.1249 7.08581 10.4607 6.75003 10.8749 6.75003Z",fill:"white"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.74994 10.875C6.74994 10.4608 7.08573 10.125 7.49994 10.125H14.2499C14.6642 10.125 14.9999 10.4608 14.9999 10.875C14.9999 11.2892 14.6642 11.625 14.2499 11.625H7.49994C7.08573 11.625 6.74994 11.2892 6.74994 10.875Z",fill:"white"})]});case"zoom-out":return a.jsxs("svg",{viewBox:"0 0 24 24",...l,children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.1025 20.9536L18.04 16.8911C17.9688 16.8206 17.8851 16.764 17.7931 16.7241C20.8864 13.0581 20.5401 7.60539 17.0081 4.36001C13.476 1.11463 8.0136 1.23011 4.62185 4.62185C1.23011 8.0136 1.11463 13.476 4.36001 17.0081C7.60539 20.5401 13.0581 20.8864 16.7241 17.7931C16.764 17.8851 16.8206 17.9688 16.8911 18.04L20.9536 22.1025C21.2709 22.4198 21.7853 22.4198 22.1025 22.1025C22.4198 21.7853 22.4198 21.2709 22.1025 20.9536ZM10.9656 18.2781C6.92698 18.2781 3.65306 15.0041 3.65306 10.9656C3.65306 6.92698 6.92698 3.65306 10.9656 3.65306C15.0041 3.65306 18.2781 6.92698 18.2781 10.9656C18.2734 15.0022 15.0022 18.2734 10.9656 18.2781Z",fill:"white"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.87506 11C6.87506 10.5858 7.21085 10.25 7.62506 10.25H14.3751C14.7893 10.25 15.1251 10.5858 15.1251 11C15.1251 11.4142 14.7893 11.75 14.3751 11.75H7.62506C7.21085 11.75 6.87506 11.4142 6.87506 11Z",fill:"white"})]});case"download":return a.jsx("svg",{viewBox:"0 0 24 24",...l,children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.5 11.1346V18.4038C22.498 20.1873 21.0527 21.6326 19.2692 21.6346H4.73077C2.94731 21.6326 1.50204 20.1873 1.5 18.4038V11.1346C1.5 10.6885 1.86162 10.3269 2.30769 10.3269C2.75377 10.3269 3.11538 10.6885 3.11538 11.1346V18.4038C3.1164 19.2956 3.83904 20.0182 4.73077 20.0192H19.2692C20.161 20.0182 20.8836 19.2956 20.8846 18.4038V11.1346C20.8846 10.6885 21.2462 10.3269 21.6923 10.3269C22.1384 10.3269 22.5 10.6885 22.5 11.1346ZM11.1434 16.2663C11.6167 16.7388 12.3832 16.7388 12.8565 16.2663L17.4172 11.7057C17.7326 11.3903 17.7326 10.8789 17.4172 10.5635C17.1018 10.2481 16.5904 10.2481 16.275 10.5635L12.8076 14.0308V3.05769C12.8076 2.61162 12.446 2.25 11.9999 2.25C11.5539 2.25 11.1923 2.61162 11.1923 3.05769V14.0308L7.72485 10.5636C7.40946 10.2482 6.89812 10.2482 6.58273 10.5636C6.26734 10.8789 6.26734 11.3903 6.58273 11.7057L11.1434 16.2663Z",fill:"white"})});case"lightbox-close":return a.jsx("svg",{viewBox:"0 0 24 24",...l,children:a.jsx("path",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",d:"M19.2621 18.1129C19.4674 18.3182 19.5475 18.6173 19.4724 18.8977C19.3973 19.178 19.1783 19.397 18.8979 19.4721C18.6176 19.5472 18.3184 19.4671 18.1132 19.2619L12.1877 13.3363L6.26214 19.2619C6.0569 19.4671 5.75776 19.5472 5.47741 19.4721C5.19705 19.397 4.97807 19.178 4.90294 18.8977C4.82782 18.6173 4.90798 18.3182 5.11321 18.1129L11.0388 12.1874L5.11321 6.26186C4.90798 6.05663 4.82782 5.75749 4.90294 5.47713C4.97807 5.19678 5.19705 4.97779 5.47741 4.90267C5.75776 4.82755 6.0569 4.9077 6.26214 5.11294L12.1877 11.0385L18.1132 5.11294C18.4305 4.79567 18.9449 4.79567 19.2621 5.11294C19.5794 5.4302 19.5794 5.9446 19.2621 6.26186L13.3366 12.1874L19.2621 18.1129Z",fill:"white"})});case"pagination-left":return a.jsx("svg",{viewBox:"0 0 24 24",...l,children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.7935 18.7087C16.0092 18.9029 16.105 19.1974 16.0447 19.4813C15.9844 19.7652 15.7772 19.9954 15.5012 20.0852C15.2251 20.1749 14.9222 20.1105 14.7065 19.9164L6.58148 12.6039C6.41027 12.4498 6.3125 12.2303 6.3125 12C6.3125 11.7697 6.41027 11.5503 6.58148 11.3962L14.7065 4.08372C15.04 3.78354 15.5536 3.81054 15.8538 4.14402C16.154 4.4775 16.127 4.99119 15.7935 5.29136L8.33939 12L15.7935 18.7087Z",fill:"#222222"})});case"pagination-right":return a.jsx("svg",{viewBox:"0 0 24 24",...l,children:a.jsx("path",{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"})})}return null}case"FontAwesome":return a.jsx(be,{className:o,faIcon:c,title:t,...i});default:case"Text":return t?a.jsx("i",{className:k(o,"humany-letter-symbol"),title:t,...d,...i,children:t.substring(0,2)}):null}},Ks=x.svg`
241
- transform: rotate(180deg);
242
- `,Ys={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",span:"span"},ve=({variant:t,component:e,className:n,children:s})=>{const{typographyVariantMapping:r={}}=$n(),o={...Ys,...r},i=e||o[t]||"span";return a.jsx(qs,{className:n,as:i,children:s})},qs=x.span``;var Nn=(t=>(t.SlideInLeft="slide-in-left",t.SlideInRight="slide-in-right",t.SlideInBottom="slide-in-bottom",t.SlideInTop="slide-in-top",t))(Nn||{});const Us=300,Rn=({className:t,children:e,header:n,onToggle:s,trigger:r,fullScreen:o=!1,closeButtonAriaLabel:i,animation:u={type:"slide-in-bottom"}})=>{const{duration:c=Us}=u,d=f.useRef(),l=f.useRef(),[h,m]=Et(!0),[g,y]=Lt(),p=Fe(g),v=f.useRef(oe());f.useEffect(()=>{s&&s(g)},[g]);const j=U("Escape");f.useEffect(()=>{j&&y(!1)},[j]),Z("click",$=>{const{target:L}=$;!l.current||!m.current||!L||l.current!==L&&m.current!==L&&!m.current.contains(L)&&!l.current.contains(L)&&y(!1)},window);const S=Ze(v.current,()=>{y(!1)});Se("router:changed",()=>{y(!1)}),f.useEffect(()=>{g&&d.current?d.current.focus():!g&&l.current&&p&&l.current.focus()},[g,d.current,l.current]);const N=tr[u.type];return a.jsxs(a.Fragment,{children:[a.jsx(gt.CSSTransition,{in:g,className:"humany-drawer-transition",classNames:"humany-drawer-transition",unmountOnExit:!0,timeout:c,children:a.jsx(we,{children:a.jsxs(N,{duration:c,fullScreen:o,className:k(t,"humany-drawer",`humany-drawer-${v.current}`),clientHeight:document.body.clientHeight,css:h,ref:m,children:[a.jsx(Mt,{onClick:()=>y(!1),tabIndex:0,ref:d,"aria-label":i,children:a.jsx(V,{symbol:{type:"Svg",content:"close"}})}),!!n&&a.jsx(Js,{variant:"h1",className:"humany-drawer-header",children:n}),e]})})}),f.cloneElement(r,{onClick:$=>{y(),S()},ref:l,"aria-label":r.props.title,"aria-expanded":g})]})},Ye=x.div`
243
- font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
244
- font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
245
- position: fixed;
246
- bottom: 0;
247
- left: 0;
248
- border: ${t=>t.theme.border};
249
- width: 100%;
250
- box-shadow: ${t=>t.theme.boxShadow};
251
- background: #ffffff;
252
- ${t=>t.css&&t.css}
253
- `,Js=x(ve)`
254
- padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
255
- margin: 0;
256
- text-align: center;
257
- border-bottom: #eeeeee 1px solid;
258
- background: #ffffff;
259
- position: relative;
260
- display: flex;
261
- justify-content: center;
262
- align-items: center;
263
- font-weight: bold;
264
- color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
265
- font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
266
- line-height: 1.2em;
267
- `,qe=t=>C.css`
268
- transition: ${t.duration}ms;
269
- `,Xs=x(Ye)`
270
- max-height: 0;
271
- ${qe}
272
-
273
- &.humany-drawer-transition-enter {
274
- max-height: 0;
275
- }
276
- &.humany-drawer-transition-enter-active,
277
- &.humany-drawer-transition-enter-done,
278
- &.humany-drawer-transition-exit {
279
- max-height: ${t=>t.fullScreen?"100%":"400px"};
280
- }
281
-
282
- &.humany-drawer-transition-exit-active,
283
- &.humany-drawer-transition-exit-done {
284
- max-height: 0;
285
- }
286
- `,Qs=x(Ye)`
287
- ${qe}
288
- transform: translateX(100%);
289
- height: ${t=>t.fullScreen?"100%":"auto"};
290
-
291
- &.humany-drawer-transition-enter {
292
- transform: translateX(100%);
293
- }
294
- &.humany-drawer-transition-enter-active,
295
- &.humany-drawer-transition-enter-done,
296
- &.humany-drawer-transition-exit {
297
- transform: translateX(0);
298
- }
299
-
300
- &.humany-drawer-transition-exit-active,
301
- &.humany-drawer-transition-exit-done {
302
- transform: translateX(100%);
303
- }
304
- `,Gs=x(Ye)`
305
- ${qe}
306
- transform: translateX(-100%);
307
- height: ${t=>t.fullScreen?"100%":"auto"};
308
-
309
- &.humany-drawer-transition-enter {
310
- transform: translateX(-100%);
311
- }
312
- &.humany-drawer-transition-enter-active,
313
- &.humany-drawer-transition-enter-done,
314
- &.humany-drawer-transition-exit {
315
- transform: translateX(0);
316
- }
317
-
318
- &.humany-drawer-transition-exit-active,
319
- &.humany-drawer-transition-exit-done {
320
- transform: translateX(-100%);
321
- }
322
- `,er=x(Ye)`
323
- ${qe}
324
- bottom: unset;
325
- top: 0;
326
- height: 0;
327
-
328
- &.humany-drawer-transition-enter {
329
- height: 0;
330
- }
331
- &.humany-drawer-transition-enter-active,
332
- &.humany-drawer-transition-enter-done,
333
- &.humany-drawer-transition-exit {
334
- height: ${t=>t.clientHeight}px;
335
- }
336
-
337
- &.humany-drawer-transition-exit-active,
338
- &.humany-drawer-transition-exit-done {
339
- height: 0;
340
- }
341
- `,tr={["slide-in-bottom"]:Xs,["slide-in-right"]:Qs,["slide-in-left"]:Gs,["slide-in-top"]:er},Mn=(t,e,n)=>{const[s,r]=f.useState(0),[o,i]=f.useState(0),u=f.useCallback((c,d)=>{if(c.preventDefault(),d){const l=d.getBoundingClientRect();r(Math.max(document.body.clientWidth-l.right,1)),i(l.bottom+window.scrollY)}},[s,o,r,i]);return f.useEffect(()=>{if(!n||!t)return;const c=n.getBoundingClientRect(),d={x:s,y:o};c.left<0&&(d.x=0),c.bottom>window.innerHeight&&(d.y=0),d.x!==s&&r(d.x),d.y!==o&&i(d.y)},[n,t,e]),[{x:s,y:o},u]},Ot=f.forwardRef(({className:t="",children:e=null,trigger:n,closeButtonAriaLabel:s,...r},o)=>{const i=f.useRef(),u=f.useRef(),c=f.useRef();f.useImperativeHandle(o,()=>c.current,[c.current]);const d=f.useRef(oe()),[l,h]=f.useState(!1),m=Fe(l),[{x:g,y},p]=Mn(l,d.current,c.current),v=U("Escape");f.useEffect(()=>{v&&h(!1)},[v]),f.useEffect(()=>{l&&i.current?i.current.focus():!l&&u.current&&m&&u.current.focus()},[l,i.current,u.current]),Z("click",N=>{const{target:$}=N;!c.current||!$||c.current!==$&&!c.current.contains($)&&h(!1)},window),Se("router:changed",()=>{h(!1)});const j=Ze(d.current,()=>{h(!1)}),S=f.useCallback(N=>{N.stopPropagation(),p(N,u.current),h(!l),j()},[j,p,h]);return a.jsxs(a.Fragment,{children:[l&&a.jsx(we,{children:a.jsxs(nr,{className:k("humany-dropdown",`humany-dropdown-${d.current}`,t),...r,x:g,y,ref:c,children:[a.jsx(Mt,{onClick:()=>h(!1),tabIndex:0,ref:i,"aria-label":s,children:a.jsx(V,{symbol:{type:"Svg",content:"close"}})}),e]})}),f.cloneElement(n,{onClick:S,ref:u,"aria-label":n.props.title,"aria-expanded":l})]})}),nr=x.div`
342
- ${Nt}
343
- padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.medium}};
344
- min-width: 150px;
345
- position: absolute;
346
- box-shadow: ${t=>t.theme.boxShadow};
347
-
348
- ${t=>{var n,s,r;let e="";return t.y>0?e+=`top: calc(${((n=t.theme.sizes)==null?void 0:n.small)||"0px"} + ${t.y||"0"}px);`:e+=`bottom: ${((s=t.theme.sizes)==null?void 0:s.normal)||"0px"};`,t.x>0?e+=`right: ${t.x||"0"}px;`:e+=`left: ${((r=t.theme.sizes)==null?void 0:r.normal)||"0px"};`,e}};
349
- `,On=({...t})=>a.jsx(sr,{...t}),sr=x.div`
350
- display: none;
351
- `,rr=f.forwardRef(({children:t,columns:e,gap:n,className:s,...r},o)=>a.jsx(or,{className:k(s,"humany-grid"),"data-columns":e,"data-gap":n,...yt(r),...D(r),ref:o,children:t})),or=x.div`
352
- display: grid;
353
- grid-template-columns: repeat(${t=>t["data-columns"]}, 1fr);
354
- grid-gap: ${t=>t["data-gap"]};
355
- justify-content: center;
356
- grid-auto-rows: max-content;
357
- ${on}
358
- `,Tt=f.forwardRef(({htmlParseInstruction:t=null,className:e,html:n,...s},r)=>{const o=H(),[i,u]=f.useState();return f.useEffect(()=>{const c=hn(o,n),d={...c,...t,transform:{...c.transform,...t==null?void 0:t.transform}},l=un(n,d);u(l)},[n,t]),a.jsx("div",{className:k(e,"humany-html"),...D(s),ref:r,children:i})}),be=({faIcon:t,title:e,className:n="",role:s="presentation",...r})=>a.jsx("i",{className:k(n,`fa fa-${t}`),title:e,role:s,...D(r)}),ir=f.forwardRef(({className:t="",autoFocus:e=!1,onFocusChange:n=()=>{},onEnter:s=()=>{},onEscape:r=()=>{},selectAllOnFocus:o,onChange:i=()=>{},disabled:u=!1,type:c,...d},l)=>{const[h,m]=f.useState(e),g=f.useRef();f.useImperativeHandle(l,()=>g.current),f.useEffect(()=>{var v;e&&((v=g==null?void 0:g.current)==null||v.focus())},[e,l,g]);const y=(v,j)=>{m(v),n&&n(v),o&&v&&j.target.select()},p={...D(d),disabled:u,autoFocus:e,type:c,onKeyDown:v=>{v.key==="Enter"&&h&&s(v),v.key==="Escape"&&h&&r(v)},onFocus:v=>y(!0,v),onBlur:v=>y(!1,v),onChange:v=>i(v.target.value||""),className:k(t,"humany-input"),"data-type":c};return c!=="textarea"?a.jsx("input",{...p,ref:g}):a.jsx("textarea",{...p,ref:g})}),Le=f.forwardRef(({className:t,items:e,renderItem:n,renderLi:s=!1,...r},o)=>a.jsx("ul",{className:k(t,"humany-list"),"data-item-count":e.length,...D(r),ref:o,children:e.map((i,u,c)=>s?a.jsx("li",{className:"humany-list-item",children:n(i,u,c)},i.id||u):n(i,u,c))})),Dt=f.forwardRef(({text:t,html:e,header:n,className:s,htmlParseInstruction:r,symbol:o,...i},u)=>a.jsxs("div",{className:k(s,"humany-paragraph"),...D(i),ref:u,children:[n?a.jsxs(ve,{variant:"h1",children:[o?a.jsx(V,{symbol:o}):null,n]}):null,e?a.jsx(Tt,{html:e,htmlParseInstruction:r}):null,t?a.jsx(Ce,{children:t}):null]})),$e=f.forwardRef(({header:t,customHeader:e,text:n,html:s,className:r,children:o,symbol:i,items:u,renderItem:c,renderLi:d,ulProps:l,...h},m)=>a.jsxs("div",{className:k(r,"humany-item-list"),"data-item-count":u.length,...D(h),ref:m,children:[e||(t||n||s?a.jsx(Dt,{symbol:i,header:t,text:n,html:s}):null),u.length?a.jsx(Le,{items:u,renderItem:c,renderLi:d,...l}):null,o]})),ar=({className:t="",tree:e,renderItem:n,rootItem:s,renderUnselected:r=!0,renderEmpty:o=!0,ulProps:i,liProps:u})=>{const c=h=>!d(h),d=h=>!h||h.length<1?!0:!h.some(m=>!!m.selected),l=(h,m)=>a.jsx($e,{className:k(`humany-item-tree-level-${m}`),items:h,ulProps:i,renderItem:g=>{const{id:y,selected:p,items:v,matches:j}=g,S=p&&d(v);return!o&&!j?null:f.createElement("li",{...D(u),key:y,className:"humany-item-tree-item"},n&&n(g,m,S),v&&(r||S)&&l(v,m+1))}});return a.jsxs("div",{className:k(t,"humany-item-tree"),children:[s&&s(!c(e||[])),e&&l(e,1)]})};var Tn=function(){};process.env.NODE_ENV!=="production"&&(Tn=function(t,e,n){var s=arguments.length;n=new Array(s>2?s-2:0);for(var r=2;r<s;r++)n[r-2]=arguments[r];if(e===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(e.length<10||/^[s\W]*$/.test(e))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+e);if(!t){var o=0,i="Warning: "+e.replace(/%s/g,function(){return n[o++]});typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}});var cr=Tn,lr=cr;ur(lr);function ur(t){return t&&t.__esModule?t:{default:t}}function Te(t){return t.charAt(0)==="/"}function st(t,e){for(var n=e,s=n+1,r=t.length;s<r;n+=1,s+=1)t[n]=t[s];t.pop()}function dr(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=t&&t.split("/")||[],s=e&&e.split("/")||[],r=t&&Te(t),o=e&&Te(e),i=r||o;if(t&&Te(t)?s=n:n.length&&(s.pop(),s=s.concat(n)),!s.length)return"/";var u=void 0;if(s.length){var c=s[s.length-1];u=c==="."||c===".."||c===""}else u=!1;for(var d=0,l=s.length;l>=0;l--){var h=s[l];h==="."?st(s,l):h===".."?(st(s,l),d++):d&&(st(s,l),d--)}if(!i)for(;d--;d)s.unshift("..");i&&s[0]!==""&&(!s[0]||!Te(s[0]))&&s.unshift("");var m=s.join("/");return u&&m.substr(-1)!=="/"&&(m+="/"),m}const hr=Object.freeze(Object.defineProperty({__proto__:null,default:dr},Symbol.toStringTag,{value:"Module"})),fr=cn(hr);var Jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function De(t,e){if(t===e)return!0;if(t==null||e==null)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(c,d){return De(c,e[d])});var n=typeof t>"u"?"undefined":Jt(t),s=typeof e>"u"?"undefined":Jt(e);if(n!==s)return!1;if(n==="object"){var r=t.valueOf(),o=e.valueOf();if(r!==t||o!==e)return De(r,o);var i=Object.keys(t),u=Object.keys(e);return i.length!==u.length?!1:i.every(function(c){return De(t[c],e[c])})}return!1}const mr=Object.freeze(Object.defineProperty({__proto__:null,default:De},Symbol.toStringTag,{value:"Module"})),pr=cn(mr);var gr=fr;Dn(gr);var yr=pr;Dn(yr);function Dn(t){return t&&t.__esModule?t:{default:t}}var ht=(t=>(t.scopedHash="scopedHash",t.hash="hash",t.browser="browser",t.memory="memory",t))(ht||{});const xr=(t,e)=>{const n=`humany-${e}=([^&?]+)&?`,s=new RegExp(n,"i"),r=t.match(s);return r&&r[1]||"/"};Be(t=>{t.createCommand("routing",e=>n=>{const s={mode:n.mode};n.basePath&&(s.basePath=n.basePath),e.container.register("routingSettings",s)})});var G=(t=>(t.Cookie="cookie",t.Local="local",t.Session="session",t))(G||{}),At=(t=>(t.Tenant="tenant",t.Implementation="implementation",t.Widget="widget",t))(At||{}),F=(t=>(t.Necessary="necessary",t.Functional="functional",t.Analytical="analytical",t.Marketing="marketing",t))(F||{});const vr=(t,e,n,s={})=>Xt(t,n).then(r=>(process.env.NODE_ENV!=="production"&&r&&O.warn(`createStorageWriter: Attempted to create storage writer using unallowed category.
359
- Key: ${e}
360
- Category: ${JSON.stringify(n)}
361
- Options: ${JSON.stringify(s)}`),o=>(Pt(t),Xt(t,n).then(i=>{if(i){process.env.NODE_ENV!=="production"&&O.warn(`storageWriter: Attempted to write to storage using unallowed category.
362
- Key: ${e}
363
- Category: ${JSON.stringify(n)}
364
- Value: ${JSON.stringify(o)}
365
- Options: ${JSON.stringify(s)}`);return}const{scope:u=At.Widget,medium:c=G.Session,duration:d}=s,l=wr();return l[u][e]=Pn(o,n,d),c===G.Cookie?Er(t,l):Nr(t,c,l)})))),br=(t,e,n=G.Session)=>(Pt(t),typeof e>"u"?(process.env.NODE_ENV!=="production"&&O.warn("readStorage: Undefined key passed when reading storage. ",e,n),Promise.resolve(void 0)):n===G.Cookie?Sr(t).then(s=>mt(s,e)):Lr(t,n).then(s=>mt(s,e))),ye=t=>!!Object.entries(t).filter(([e,n])=>typeof n<"u").length,rt=t=>Object.entries(t).filter(([e,n])=>typeof n<"u").forEach(([e,{value:n}])=>{typeof n>"u"&&delete t[e]}),An=(t,e)=>{const n={tenant:{...t.tenant,...e.tenant},implementation:{...t.implementation,...e.implementation},widget:{...t.widget,...e.widget}};return rt(n.tenant),rt(n.implementation),rt(n.widget),n},Cr=t=>Object.entries(t).reduce((n,s)=>{const[r,o]=s;return Object.entries(o).forEach(i=>{const[u,{expiration:c}]=i;c&&n.push(c)}),n},[]).slice().sort((n,s)=>new Date(s).valueOf()-new Date(n).valueOf()).shift()||Ht(),Ue=t=>{const{name:e,implementation:{name:n,tenant:s}}=t.get("$widget");return[`humany_${s}`,`humany_${Zt(s+n)}`,`humany_${Zt(s+n+e)}`]},ot=t=>{const e=new RegExp(`(?:^|;)\\s?${t}=(.*?)(?:;|$)`,"i"),n=document.cookie.match(e);return n&&n[1]&&JSON.parse(n[1])||void 0},it=(t,e,n)=>{const s=`${t}=${JSON.stringify(e).trim()}`,r=`expires=${new Date(n).toUTCString()}`,o="path=/",i="SameSite=None;Secure";return document.cookie=`${s}; ${r}; ${o}; ${i}`},zt=t=>{const[e,n,s]=Ue(t),r=ot(e)||{},o=ot(n)||{},i=ot(s)||{};return{tenant:r,implementation:o,widget:i}},zn=(t,e)=>{const n=zt(t),s=An(n,e),[r,o,i]=Ue(t),{tenant:u,implementation:c,widget:d}=s,l=Cr(e),h=Ht({days:-1});it(r,u,ye(u)?l:h),it(o,c,ye(c)?l:h),it(i,d,ye(d)?l:h)},He=(t,e)=>{const[n,s,r]=Ue(t),o=e.getItem(n)||"{}",i=e.getItem(s)||"{}",u=e.getItem(r)||"{}";return{tenant:JSON.parse(o),implementation:JSON.parse(i),widget:JSON.parse(u)}},ft=(t,e,n)=>{const s=He(t,e),r=An(s,n),[o,i,u]=Ue(t),{tenant:c,implementation:d,widget:l}=r;ye(c)?e.setItem(o,JSON.stringify(c)):e.removeItem(o),ye(d)?e.setItem(i,JSON.stringify(d)):e.removeItem(i),ye(l)?e.setItem(u,JSON.stringify(l)):e.removeItem(u)},wr=()=>({tenant:{},implementation:{},widget:{}}),$r=t=>t?!!t&&new Date>new Date(t):!1,mt=(t,e)=>{const n=t.widget[e]||t.implementation[e]||t.tenant[e];return n==null?void 0:n.value},Pn=(t,e,n)=>n?{value:t,category:e,expiration:typeof n=="object"?Ht(n):n}:{value:t,category:e},kr=(t,e)=>{const n=sn(t);return Object.entries(n).forEach(([s,r])=>{Object.entries(r).forEach(([o,i])=>{const{expiration:u,category:c}=i;($r(u)||jr(e,c))&&(r[o]=Pn(void 0,c,u))})}),n},Xt=(t,e)=>br(t,"storagePolicy",G.Cookie).then((n=[F.Necessary])=>!!e&&n.indexOf(e)===-1),jr=(t=[F.Necessary],e)=>!!e&&t.indexOf(e)===-1,Pt=t=>{const e=zt(t),n=He(t,window.localStorage),s=He(t,sessionStorage),r=mt(e,"storagePolicy"),[o,i,u]=[e,n,s].map(c=>kr(c,r));zn(t,o),ft(t,window.localStorage,i),ft(t,window.sessionStorage,u)},Ht=(t={days:30})=>{const{days:e=0,hours:n=0,minutes:s=0,seconds:r=0}=t,o=new Date;return o.setTime(o.getTime()+n*60*60*1e3),o.setTime(o.getTime()+e*24*60*60*1e3),o.setTime(o.getTime()+s*60*1e3),o.setTime(o.getTime()+r*1e3),o.toISOString()},Sr=t=>Ie(document)(()=>zt(t)),Er=(t,e)=>Ie(document)(()=>zn(t,e)),Lr=(t,e)=>{const n=e===G.Local?window.localStorage:window.sessionStorage;return Ie(n)(()=>He(t,n))},Nr=(t,e,n)=>{const s=e===G.Local?window.localStorage:window.sessionStorage;return Ie(s)(()=>ft(t,s,n))};Be(t=>{t.createCommand("storage",e=>(n={})=>{const{consent:s}=n;if(typeof s<"u"){if(typeof s!="number"&&typeof s!="string"&&!Array.isArray(s)){process.env.NODE_ENV!=="production"&&O.warn(`storagePolicyConfigurationApi: passed consent is not valid. Consent either has to be a number, a string, an array of strings or an array of numbers.
366
- Passed consent: ${JSON.stringify(s)}`);return}if(Array.isArray(s)&&!s.every(o=>typeof o=="number"||typeof o=="string")){process.env.NODE_ENV!=="production"&&O.warn(`storagePolicyConfigurationApi: passed consent is not valid. Consent either has to be a number, a string, an array of strings or an array of numbers.
367
- Passed consent: ${JSON.stringify(s)}`);return}const r=[F.Necessary,F.Functional,F.Analytical,F.Marketing].filter((o,i,u)=>typeof s=="number"?s>i:typeof s=="string"?u.indexOf(s)+1>i:Array.isArray(s)?s.findIndex(c=>c===i+1||c===o)>-1:!0);return r.indexOf(F.Necessary)===-1&&(process.env.NODE_ENV!=="production"&&O.warn(`storagePolicyConfigurationApi: passed consent does not include category: '${F.Necessary}'. Consent has to atleast include the '${F.Necessary}' category.
368
- Passed consent: ${JSON.stringify(s)}`),r.unshift(F.Necessary)),vr(e.container,"storagePolicy",F.Necessary,{medium:G.Cookie,scope:At.Tenant,duration:{days:365}}).then(o=>o(r)).then(()=>{Pt(e.container),e.events.dispatch("storage:policy-changed",r)})}})});const Hn=f.forwardRef(({className:t,onClick:e=()=>{},name:n="",to:s="",params:r={},children:o,...i},u)=>{const c=jt(),d=H();if(!c)return null;let l="";const h={onClick:e,className:k(t,"humany-route-link"),to:l,innerRef:u,...i,ref:null};if(n){if(!(c.routes||[]).find(p=>p.name===n))return process.env.NODE_ENV!=="production"&&O.warn(`Unable to create route. No route named "${n}" exist.`),a.jsx(Qe.Link,{...h,onClick:p=>{e(p),p.preventDefault(),process.env.NODE_ENV!=="production"&&O.warn(`Unable to navigate. No route named "${n}" exist.`)},children:o});const y=Object.keys(r).reduce((p,v)=>{const j=r[v];if(Array.isArray(j)){if(j.length===0)return p;p[v]=j.map(S=>typeof S=="string"?encodeURIComponent(S):S).join(",")}else p[v]=typeof j=="string"?encodeURIComponent(j):j;return p},{});try{l=c.generate(n,y||{})}catch{return a.jsx(Qe.Link,{...h,ref:h.innerRef,children:o})}l&&c.settings.mode&&c.settings.mode===ht.browser&&l[0]!=="/"&&(l=`/${l}`)}else if(s&&c.history)l=c.history.createHref({hash:"",pathname:s,search:"",state:void 0});else return process.env.NODE_ENV!=="production"&&O.warn('Unable to generate path for route link. Either specify route name or use the "to" prop.'),null;if(c.settings&&c.settings.mode===ht.scopedHash){const m=d.get("$widget").name;l=xr(l,m)}return h.as?a.jsx(Rr,{...h,as:h.as,children:o}):a.jsx(Qe.Link,{...h,to:l,children:o})}),Rr=x.span``,Ne=f.forwardRef(({className:t,disabled:e=!1,role:n="link",tabIndex:s=0,onClick:r=()=>{},onKeyDown:o=()=>{},title:i,as:u,href:c,children:d,target:l,routeName:h,params:m,...g},y)=>{const p={title:i,disabled:e,role:n,as:u,tabIndex:s,className:k(t,"humany-link",[!!e,"humany-disabled"]),onClick:v=>{if(v.persist(),e){v.preventDefault();return}r(v)},onKeyDown:v=>{if(v.persist(),e){v.key!=="Tab"&&v.preventDefault();return}o(v)}};return h?a.jsx(Mr,{name:h,params:m,...p,...D(g),ref:y,children:d}):a.jsx(Or,{href:c,target:l,...p,...D(g),ref:y,children:d})}),Mr=x(Hn)`
369
- ${t=>t.disabled?`
370
- pointer-events: none;
371
- opacity: .7;
372
- `:"cursor: pointer;"}
373
- `,Or=x.a`
374
- ${t=>t.disabled?`
375
- pointer-events: none;
376
- opacity: .7;
377
- `:"cursor: pointer;"}
378
- `,It=({visible:t,duration:e=500,children:n,onClick:s=()=>{},...r})=>{const o=f.useRef(),i=f.useCallback(u=>{u.target===o.current&&s(u)},[s]);return a.jsx(gt.CSSTransition,{in:t,className:"humany-overlay-transition",classNames:"humany-overlay-transition",unmountOnExit:!0,timeout:e,children:a.jsx(we,{children:a.jsx(Tr,{className:"humany-overlay",duration:e,ref:o,onClick:i,...r,children:n})})})},Tr=x.div`
379
- background: rgba(0, 0, 0, 0.6);
380
- min-width: 100%;
381
- min-height: 100%;
382
- position: fixed;
383
- top: 0;
384
- bottom: 0;
385
- right: 0;
386
- left: 0;
387
- display: flex;
388
- justify-content: center;
389
- align-items: center;
390
- z-index: 7;
391
-
392
- transition: ${t=>t.duration}ms;
393
- opacity: 0;
394
-
395
- &.humany-overlay-transition-enter {
396
- opacity: 0.1;
397
- }
398
- &.humany-overlay-transition-enter-active,
399
- &.humany-overlay-transition-enter-done,
400
- &.humany-overlay-transition-exit {
401
- opacity: 1;
402
- }
403
-
404
- &.humany-overlay-transition-exit-active,
405
- &.humany-overlay-transition-exit-done {
406
- opacity: 0;
407
- }
408
- `,Dr=C.keyframes`
409
- 100% {
410
- transform: rotate(360deg);
411
- }
412
- `,Ar=C.keyframes`
413
- 0% {
414
- stroke-dasharray: 1, 200;
415
- stroke-dashoffset: 0;
416
- }
417
- 50% {
418
- stroke-dasharray: 89, 200;
419
- stroke-dashoffset: -35px;
420
- }
421
- 100% {
422
- stroke-dasharray: 89, 200;
423
- stroke-dashoffset: -124px;
424
- }
425
- `,zr=x.svg`
426
- animation: ${Dr} 2s linear infinite;
427
- height: 100%;
428
- transform-origin: center center;
429
- width: 100%;
430
- position: absolute;
431
- top: 0;
432
- bottom: 0;
433
- left: 0;
434
- right: 0;
435
- margin: auto;
436
- transition: 200ms ease-out opacity;
437
- `,Pr=x.div`
438
- position: absolute;
439
- top: 0;
440
- bottom: 0;
441
- left: 0;
442
- right: 0;
443
- height: 100%;
444
- width: 100%;
445
- pointer-events: ${t=>t["data-loading"]?"all":"none"};
446
- display: flex;
447
- flex-direction: column;
448
- justify-content: center;
449
- transition: 200ms ease-out opacity;
450
- box-sizing: border-box;
451
- overflow: hidden;
452
- svg {
453
- opacity: ${t=>t["data-loading"]?"1":"0"};
454
- }
455
- `,Hr=x.div`
456
- position: relative;
457
- margin: 0 auto;
458
- width: 100px;
459
- &:before {
460
- content: '';
461
- display: block;
462
- padding-top: 100%;
463
- }
464
- `,Ir=x.circle`
465
- stroke-dasharray: 1, 200;
466
- stroke-dashoffset: 0;
467
- animation: ${Ar} 1.5s ease-in-out infinite;
468
- stroke-linecap: round;
469
- stroke: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
470
- stroke-width: 2px;
471
- `,Br=({className:t,loading:e=!1})=>a.jsx(Pr,{className:k("humany-loader",t),"data-loading":e,children:a.jsx(Hr,{className:"humany-spinner",children:a.jsx(zr,{viewBox:"25 25 50 50",children:a.jsx(Ir,{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"2","stroke-miterlimit":"10"})})})}),Vr=({zoomState:t,image:e,changeZoom:n,...s})=>{var y;const r=f.useRef(null),[o,i]=f.useState(!1),[u,c]=f.useState(!1),{width:d,height:l,...h}=s.style||{},m=f.useCallback(()=>{const p=r.current;if(p){const v=window.innerWidth/p.naturalWidth,j=window.innerHeight/p.naturalHeight,S=Math.min(v,j);return j>=1&&v>=1?1:S}return 1},[o,e.src]),g=f.useMemo(()=>{const p=r.current;if(p&&o){if(!u){c(!0);const v=m();n(v)}return p.naturalWidth>=p.naturalHeight?[`${t*p.naturalWidth}px`,"auto"]:["auto",`${t*p.naturalHeight}px`]}return null},[t,r,o,e.src]);return f.useEffect(()=>(i(!1),function(){c(!1)}),[e.src]),a.jsxs(a.Fragment,{children:[a.jsx(Wr,{loading:!o}),a.jsx(_r,{onLoad:()=>{i(!0)},ref:r,imageSize:g,draggable:"false",...s,alt:((y=s.alt)==null?void 0:y.toString())||"",style:h,src:e.src,loaded:o}),a.jsx(Fr,{})]})},Wr=x(Br)`
472
- svg circle {
473
- stroke: #ffffff;
474
- }
475
- `,_r=x.img`
476
- transform: none;
477
-
478
- ${t=>t.imageSize&&C.css`
479
- width: ${t.imageSize[0]};
480
- height: ${t.imageSize[1]};
481
- display: inline-block;
482
- `}
483
- vertical-align: middle;
484
- position: relative;
485
- ${t=>!t.loaded&&"display:none;"}
486
- `,Fr=x.div`
487
- height: 100%;
488
- display: inline-block;
489
- vertical-align: middle;
490
- `,Zr=()=>{const t=f.useRef(),[e,n]=f.useState(!0),s=f.useCallback(()=>(e||n(!0),t.current&&clearTimeout(t.current),t.current=setTimeout(()=>{n(!1)},3e3),()=>{t.current&&clearTimeout(t.current)}),[e,t]);return[e,s]},In=({attrs:t,htmlBody:e})=>{var Re;const n=U("Escape"),s=U("ArrowLeft"),r=U("ArrowRight"),[o,i]=f.useState(1),[u,c]=f.useState({top:0,left:0,x:0,y:0}),[d,l]=f.useState(!1),[h,m]=Zr(),[g,y]=f.useState(null),[p,v]=f.useState(null),j=f.useRef(null),S=f.useRef(null),N=f.useRef(null),$=f.useRef(null),L=f.useRef(null),[Y,I]=f.useState(null);f.useEffect(()=>{n&&y(null)},[n]),f.useEffect(()=>{i(1)},[g]),f.useEffect(()=>{var z,X;if(g===null||S.current===null)return;const b=S.current.firstElementChild,E=(z=N.current)==null?void 0:z.querySelector(".nav-left"),R=(X=N.current)==null?void 0:X.querySelector(".nav-right");if(p==="Right")fe&&R?R.focus():te&&E&&E.focus();else if(p==="Left")te&&E?E.focus():fe&&R&&R.focus();else{if(!b)return;b.focus()}},[g,S,N,p]),f.useEffect(()=>{if(s){if(te)return he()}else if(r&&fe)return _()},[s,r]),f.useEffect(()=>{var E,R;const b=((R=(E=L.current)==null?void 0:E.style)==null?void 0:R.float)||"";(b==="left"||b==="right")&&I(b)},[]);const T=f.useMemo(()=>{const b=document.createElement("div");b.innerHTML=e||"";const E=b.getElementsByTagName("img");return Array.from(E).reduce((z,X)=>{const ne=X.getAttribute("src");if(ne){const me={src:ne};z.push(me)}return z},[])},[e]),W=f.useCallback(()=>{const{src:b}=t;if(b){const E=T.findIndex((R,z)=>R.src===b);y(E)}},[T,t]),B=f.useCallback(b=>{y(null)},[]),P=f.useCallback(b=>{i(b?o+o*.25:o-o*.25)},[i,o]),A=f.useCallback(()=>{if(g!==null){const{src:b}=T[g];b&&window.open(b,"_self")}},[T,g]),q=f.useCallback(b=>{const E=$.current;E&&(c({top:E.scrollTop,left:E.scrollLeft,x:b.clientX,y:b.clientY}),l(!0))},[$]),ae=f.useCallback(b=>{const E=$.current;if(E&&d){const R=b.clientX-u.x,z=b.clientY-u.y;E.scrollTop=u.top-z,E.scrollLeft=u.left-R}},[d,u]),ce=b=>{b.preventDefault(),l(!1)},ee=f.useMemo(()=>{if($.current){const b=$.current.getElementsByTagName("img");if(b&&b.length){const E=b[0];return E.width>window.innerWidth||E.height>window.innerHeight}}return!1},[$,o]),he=()=>{g!==null&&(v("Left"),y(g-1))},_=()=>{g!==null&&(v("Right"),y(g+1))},te=g!==null&&g>0&&T.length>1,fe=g!==null&&T.length-1>g;return a.jsxs(a.Fragment,{children:[a.jsx(It,{visible:g!==null,onClick:B,children:a.jsxs(Gr,{onMouseDown:()=>m(),onMouseMove:()=>m(),onTouchStart:()=>m(),onKeyDown:()=>m(),children:[a.jsx(eo,{show:h.toString(),children:a.jsx(Ur,{ref:S,buttons:[{id:"download",onClick:A,icon:"download",ariaLabel:"Download image"},{id:"lightbox-close",onClick:()=>y(null),icon:"lightbox-close",ariaLabel:"Close"}]})}),a.jsx(no,{scrolling:d.toString(),isDraggable:ee.toString(),ref:$,onMouseMove:ae,onMouseDown:q,onMouseUp:ce,children:g!==null&&a.jsx(Vr,{changeZoom:b=>{i(b)},zoomState:o,...t,style:{...t.style||{},float:"none"},image:T[g]})}),a.jsx(Xr,{ref:N,show:h.toString(),buttons:[{id:"previous",onClick:he,icon:"caret-left",circle:!0,show:te,className:"nav-left",ariaLabel:"Navigate to previous image"},{id:"next",onClick:_,icon:"caret-right",circle:!0,show:fe,className:"nav-right",ariaLabel:"Navigate to next image"}]}),a.jsxs(to,{show:h.toString(),children:[a.jsx(Jr,{buttons:[{id:"zoom-out",onClick:()=>P(!1),icon:"zoom-out",ariaLabel:"Zoom out"},{id:"zoom-in",onClick:()=>P(!0),icon:"zoom-in",ariaLabel:"Zoom in"}]}),a.jsxs(Qr,{variant:"span",children:[Math.trunc(o*100),"%"]})]})]})}),a.jsx(Kr,{ref:j,onClick:W,onKeyDown:b=>{b.key==="Enter"&&(b.preventDefault(),W())},alignment:Y,tabIndex:0,children:a.jsx(so,{...t,alt:((Re=t.alt)==null?void 0:Re.toString())||"",ref:L})})]})},Bt=f.forwardRef(({show:t="true",buttons:e,className:n},s)=>a.jsx(Yr,{ref:s,show:t,className:k("humany-button-set",n),children:e.map(({id:r,circle:o=!1,show:i=!0,ariaLabel:u,onClick:c,icon:d,className:l},h)=>a.jsx(qr,{circle:o.toString(),onClick:c,tabIndex:i?void 0:-1,show:i.toString(),icon:d,className:l,"aria-label":u,children:a.jsx(V,{size:24,symbol:{type:"Svg",content:d}})},r+h.toString()))})),Bn=x.div`
491
- transition: opacity 0.3s ease 0s;
492
- z-index: 5;
493
- ${t=>t.show==="true"?"opacity: 1;":C.css`
494
- opacity: 0;
495
- pointer-events: none;
496
- `}
497
- `,Kr=x(Ne)`
498
- display: inline-block !important;
499
-
500
- ${t=>(t.alignment==="right"||t.alignment==="left")&&C.css`
501
- float: ${t.alignment};
502
- `}
503
- `,Yr=x(Bn)`
504
- position: fixed;
505
- display: flex;
506
- gap: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
507
- `,pt="39px",qr=x(ie)`
508
- width: ${pt};
509
- height: ${pt};
510
- display: flex;
511
- justify-content: center;
512
- align-items: center;
513
-
514
- ${t=>t.icon==="caret-left"&&C.css`
515
- svg {
516
- position: relative;
517
- left: -2px;
518
- }
519
- `}
520
-
521
- ${t=>{var e;return t.circle==="true"?C.css`
522
- background-color: #ffffff;
523
- border-radius: 50%;
524
-
525
- svg {
526
- path,
527
- line {
528
- stroke: ${(e=t.theme.colors)==null?void 0:e.text};
529
- }
530
- }
531
-
532
- &:focus-visible {
533
- ${K(t)}
534
- outline-color: #ffffff;
535
- background-color: transparent;
536
-
537
- svg {
538
- path,
539
- line {
540
- stroke: #ffffff;
541
- }
542
- }
543
- }
544
- `:C.css`
545
- svg {
546
- path,
547
- line {
548
- stroke: #ffffff;
549
- }
550
- }
551
- &:focus {
552
- outline-color: #ffffff;
553
- }
554
- &:focus-visible {
555
- ${K(t)}
556
- }
557
- `}}
558
-
559
- ${t=>t.show==="true"?C.css`
560
- opacity: 0.8;
561
- transition: opacity 0.3s ease 0s;
562
- &:hover {
563
- opacity: 1;
564
- }
565
- `:C.css`
566
- opacity: 0;
567
- pointer-events: none;
568
- `}
569
- `,Ur=x(Bt)`
570
- top: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
571
- right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
572
- `,Jr=x(Bt)`
573
- bottom: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
574
- width: 100%;
575
- align-items: center;
576
- justify-content: center;
577
- `,Xr=x(Bt)`
578
- display: block;
579
- button {
580
- position: fixed;
581
- top: calc(50% - calc(${pt} / 2));
582
- &:first-child {
583
- left: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
584
- }
585
- &:last-child {
586
- right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
587
- }
588
- }
589
- `,Qr=x(ve)`
590
- position: fixed;
591
- bottom: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
592
- right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
593
- color: #ffffff;
594
- font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.medium}};
595
- font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
596
- `,Vn=x(Bn)`
597
- position: absolute;
598
- width: 100vw;
599
- height: 88px;
600
- left: 0px;
601
- z-index: 5;
602
- `,Gr=x.div`
603
- width: 100%;
604
- `,eo=x(Vn)`
605
- top: 0px;
606
- background-image: linear-gradient(
607
- to bottom,
608
- rgb(34, 34, 34, 0.8),
609
- rgba(34, 34, 34, 0)
610
- );
611
- `,to=x(Vn)`
612
- bottom: 0px;
613
- background-image: linear-gradient(
614
- to top,
615
- rgb(34, 34, 34, 0.8),
616
- rgba(34, 34, 34, 0)
617
- );
618
- `,no=x.div`
619
- width: 100%;
620
- height: 100vh;
621
- overflow: auto;
622
- text-align: center;
623
- vertical-align: middle;
624
- white-space: nowrap;
625
- justify-content: center;
626
- cursor: ${t=>t.isDraggable==="true"?t.scrolling==="true"?"grabbing":"grab":"auto"};
627
- `,so=x.img`
628
- cursor: pointer;
629
- `,Wn=f.forwardRef(({className:t,children:e,trigger:n,onOverlayClick:s=()=>{},close:r=!1,...o},i)=>{const[u,c]=Lt(),[d,l]=Et(!0),h=f.useRef(),m=f.useRef(oe()),g=U("Escape");f.useEffect(()=>{(g||r)&&c(!1)},[g,r]),f.useEffect(()=>{u&&h.current&&h.current.focus()},[u,h.current]),Se("router:changed",()=>{c(!1)});const y=f.useCallback(v=>{c(!1),s(v)},[s,c]);f.useImperativeHandle(i,()=>({close(){c(!1)}}));const p=f.useCallback(()=>Ze(m.current,()=>{c(!1)}),[m.current]);return a.jsxs(a.Fragment,{children:[a.jsx(It,{visible:u,onClick:y,children:a.jsxs(ro,{className:k(t,"humany-modal",`humany-modal-${m.current}`),css:d,tabIndex:-1,...o,ref:l,children:[a.jsx(Mt,{onClick:()=>c(!1),tabIndex:0,ref:h,children:a.jsx(V,{symbol:{type:"Svg",content:"close"}})}),e]})}),f.cloneElement(n,{onClick:v=>{c(),p()}})]})}),ro=x.div`
630
- font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
631
- font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
632
- position: relative;
633
- max-width: 50%;
634
- min-width: 200px;
635
- padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.medium}};
636
- ${t=>Nt(t)}
637
- ${t=>t.css&&t.css}
638
- outline: none;
639
- `,_n=({className:t,trigger:e,header:n="",text:s="",onCancel:r=()=>{},onConfirm:o=()=>{},cancelLabel:i="",confirmLabel:u=""})=>{const c=f.useRef(),d=f.useCallback(()=>{var h;r(),(h=c==null?void 0:c.current)==null||h.close()},[r]),l=f.useCallback(()=>{var h;o(),(h=c==null?void 0:c.current)==null||h.close()},[o]);return a.jsxs(oo,{className:t,trigger:e,ref:c,onOverlayClick:d,children:[n&&a.jsx(xe,{children:n}),s&&a.jsx(xe,{children:s}),u&&a.jsx(io,{onClick:l,children:u}),i&&a.jsx(ao,{onClick:d,children:i})]})},oo=x(Wn)`
640
- display: block;
641
-
642
- span {
643
- display: block;
644
- margin: 0 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
645
-
646
- &:first-of-type:not(:only-of-type) {
647
- font-weight: 700;
648
- margin: 0 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}};
649
- }
650
- }
651
- `,io=x(ie)`
652
- display: inline-block;
653
- min-width: 50px;
654
- ${t=>{var e,n;return`padding: ${(e=t.theme.sizes)==null?void 0:e.small} ${(n=t.theme.sizes)==null?void 0:n.normal};`}}
655
- ${t=>t.theme.borderRadius&&`border-radius: ${t.theme.borderRadius};`}
656
- color: #FFFFFF;
657
- background-color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
658
- border: 1px solid ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
659
-
660
- margin: 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}} 0 0;
661
-
662
- &:focus {
663
- background-color: transparent;
664
- }
665
-
666
- &:focus-visible {
667
- ${K}
668
- }
669
- `,ao=x(ie)`
670
- display: inline-block;
671
- min-width: 50px;
672
- ${t=>{var e,n;return`padding: ${(e=t.theme.sizes)==null?void 0:e.small} ${(n=t.theme.sizes)==null?void 0:n.normal};`}}
673
- ${t=>t.theme.borderRadius&&`border-radius: ${t.theme.borderRadius};`}
674
- background-color: transparent;
675
- color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
676
- border: 1px solid ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
677
-
678
- &:focus-visible {
679
- ${K};
680
- }
681
- `,co=({header:t="",link:e="",suggestionHeader:n="",suggestion:s=""})=>a.jsxs(lo,{children:[a.jsx(uo,{children:a.jsx(ve,{variant:"h2",children:"404"})}),a.jsxs(ho,{children:[a.jsx(ve,{variant:"h3",children:t}),a.jsx(je,{routeName:"index","aria-label":e,text:e})]}),a.jsxs(fo,{children:[a.jsx("span",{children:n}),a.jsx("ul",{children:a.jsx("li",{children:s})})]})]}),lo=x.div`
682
- display: flex;
683
- flex-wrap: wrap;
684
- `,uo=x.div`
685
- ${t=>re(t)("h2",C.css`
686
- padding: 0;
687
- margin: 0;
688
- color: gray;
689
- font-size: 7em;
690
- `)}
691
- `,ho=x.div`
692
- margin-left: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.medium}};
693
-
694
- ${t=>{var e;return re(t)("h3",C.css`
695
- text-transform: uppercase;
696
- font-size: ${(e=t.theme.fonts)==null?void 0:e.normal};
697
- `)}}
698
-
699
- a {
700
- color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.link}};
701
- font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.small}};
702
- }
703
- `,fo=x.div`
704
- margin-top: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.medium}};
705
- min-width: 100%;
706
-
707
- span {
708
- font-weight: bold;
709
- }
710
- `;class mo extends f.Component{constructor(){super(...arguments);w(this,"node");w(this,"onFocusListener");w(this,"state",{boundFocus:!1})}componentWillMount(){const n=this.props.container.get("accessibilitySettings");n&&n.boundFocus&&this.setState({boundFocus:!0})}componentDidMount(){if(!this.state.boundFocus)return;const n=this.props.container.get("widgetDOMElement");this.node&&n&&(this.onFocusListener=this.node.addEventListener("focus",()=>{const s=n.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),o=[].filter.call(s,i=>typeof window>"u"?!0:!(window.getComputedStyle(i).display==="none"||i.offsetWidth<=0&&i.offsetHeight<=0))[0];o&&o.focus()}))}componentWillUnmount(){this.node&&this.node.removeEventListener("focus",this.onFocusListener)}render(){return this.state.boundFocus?a.jsx("div",{style:{opacity:0},tabIndex:0,ref:n=>{this.node=n}}):null}}const je=f.forwardRef(({className:t,description:e,text:n,children:s,...r},o)=>a.jsxs(Ne,{className:k(t,"humany-text-link"),...r,ref:o,children:[s,a.jsx(Ce,{children:n}),e?a.jsx(Tt,{html:e,className:"humany-description"}):null]}));var Je=(t=>(t.HH_MM="hh:mm",t.YYYY_MM_DD="yyyy-mm-dd",t.YYYY_MM_DD_HH_MM="yyyy-mm-dd hh:mm",t))(Je||{});const Vt=({className:t="",format:e="hh:mm",timestamp:n})=>a.jsx("span",{className:k(t,"humany-timestamp"),children:po(n,e)}),Qt=t=>`0${t}`.slice(-2);function po(t,e){const n=new Date(t),s=n.toTimeString().split(" ")[0].split(":"),r=s.length>1?`${s[0]}:${s[1]}`:s[0],o=n.getFullYear(),i=n.getMonth()+1,u=n.getDate(),c=`${o}-${Qt(i)}-${Qt(u)}`;return e==="yyyy-mm-dd"?c:e==="hh:mm"?r:`${c} ${r}`}const go=({className:t,children:e,content:n,sticky:s=!1,...r})=>{const[o,i]=f.useState(!1),u=f.useRef(oe()),c=f.useRef(),[{x:d,y:l},h]=Mn(o,u.current,c.current),m=y=>{const{target:p}=y;!c.current||!p||c.current!==p&&!c.current.contains(p)&&i(!1)};f.useEffect(()=>{if(s)return window.addEventListener("click",m),()=>{window.removeEventListener("click",m)}},[o,s]);const g=f.useCallback((y,p)=>{h(y,c.current),i(p)},[h,i]);return a.jsxs(yo,{ref:c,className:"humany-tooltip-trigger",onMouseEnter:s?void 0:y=>g(y,!0),onMouseLeave:s?void 0:y=>g(y,!1),onTouchEnd:s?y=>g(y,!o):void 0,onClick:s?y=>g(y,!o):void 0,children:[e,o&&a.jsx(we,{children:a.jsx(xo,{className:k(t,"humany-tooltip-container"),x:d,y:l,...r,children:n})})]})},yo=x.div`
711
- display: flex;
712
- align-items: center;
713
- `,xo=x.div`
714
- color: #ffffff;
715
- background: #161616;
716
- border-radius: ${t=>t.theme.borderRadius};
717
- padding: calc(${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}} * 2);
718
- font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
719
- font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
720
- position: absolute;
721
- z-index: 10;
722
-
723
- a {
724
- color: ${t=>t.color?t.color:"inherit"};
725
- text-decoration: none;
726
- }
727
-
728
- i,
729
- svg {
730
- margin-right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}};
731
- }
732
-
733
- ${t=>{let e="";return t.y>0?e+=`top: calc(2px + ${t.y||"0"}px);`:e+="bottom: 2px;",t.x>0?e+=`right: calc(2px + ${t.x||"0"}px);`:e+="left: 2px;",e}};
734
- `,vo=t=>{const{in:e,mountOnEnter:n=!0,unmountOnExit:s=!0,timeout:r,children:o,transitions:i}=t,c=(()=>{var d,l;if(!(!i||i==="none")){if(typeof i=="string")return{enter:{transitionKeys:i,duration:r?typeof r=="number"?r:r.enter:200,easing:"ease-in"},exit:{transitionKeys:i,duration:r?typeof r=="number"?r:r.exit:200,easing:"ease-out"}};if(typeof i=="object"){const{enter:h,exit:m}=i;return{enter:{transitionKeys:(d=i.enter)==null?void 0:d.type,duration:r?typeof r=="number"?r:r.enter:200,easing:h.easing?h.easing:"ease-in"},exit:{transitionKeys:(l=i.enter)==null?void 0:l.type,duration:r?typeof r=="number"?r:r.enter:200,easing:m.easing?m.easing:"ease-out"}}}}})();return a.jsx(gt.Transition,{timeout:{enter:c&&c.enter.duration||0,exit:c&&c.exit.duration||0},in:e,appear:!0,mountOnEnter:n,unmountOnExit:s,onEnter:d=>d.clientHeight,children:d=>o&&o(d,c&&Ae.compose(d,c))})},Wt=f.forwardRef(({className:t,children:e,onClick:n=()=>{},widgetName:s,activationOptions:r,...o},i)=>{const u=H(),c=()=>{const{implementation:h}=u.get("$widget");return h.widgets.get(s)};f.useEffect(()=>{const h=c();return h==null||h.activate(r).then(()=>h.invoke("attach")),()=>{h==null||h.deactivate()}},[s]);const d=h=>{const m=c(),g=h.currentTarget;if(m){const y=()=>{m.invoke("renderState").then(p=>p===ke.open?m.invoke("close"):m.invoke("open")).then(()=>{m.events.subscribeOnce("widget:area-rendered",(p,v)=>{u.get("widgetDOMElement")&&m.events.dispatch("widget:modal-opened",{name:m.name,ref:g})})})};m.state===fn.Deactivated?m.activate(r).then(()=>m.invoke("attach")).then(y):y()}},l=h=>{h.key==="Enter"&&(h.preventDefault(),d(h))};return a.jsx(Ne,{className:k(t,"humany-widget-link"),onKeyDown:l,onClick:h=>{n(h),d(h)},...o,ref:i,children:e})}),bo=f.forwardRef(({portalId:t="humany-widget-overlay-portal",className:e,children:n},s)=>{const r=H(),o=f.useMemo(()=>{if(!r)return null;const i=r.get("widgetDOMElement");return!i||!i.childElementCount?null:i.children[0]},[r]);return o?a.jsx(we,{elementId:t,parent:o,children:a.jsx(Co,{className:k("humany-widget-overlay-outlet",e),ref:s,children:n})}):null}),Co=x.div`
735
- background-color: #ffffff;
736
- position: absolute;
737
- top: 0;
738
- left: 0;
739
- bottom: 0;
740
- right: 0;
741
- z-index: 10;
742
- width: 100%;
743
- height: 100%;
744
- `,wo=(t,e,n,s,r)=>t.getAsync("componentResolver").then(o=>(o.registerComponent(e,f.lazy(()=>n)),Ds(t,e,s||(()=>{}),e,r))),_t=({title:t="",className:e,id:n,parent:s,connection:r,type:o,target:i,href:u,children:c,connectionKey:d})=>{const l={},{name:h,params:m}=St();switch(o){case"default":case"guide":const{id:g,title:y}=s;let p=d||r;g!==n&&!d&&(p=void 0),l.routeName=h,l.params=ze({...m,guide:n,connection:p,uriName:Ft(n===g?y:t)});break;case"link":l.href=u,l.target=i;break}return a.jsx(Ne,{className:k(e,"humany-dialog-link"),...l,children:c||a.jsxs(a.Fragment,{children:[o==="link"&&a.jsx(be,{faIcon:"link"}),a.jsx("span",{children:t})]})})},$o=f.forwardRef(({className:t,dialog:e,...n},s)=>e.length?a.jsx(ko,{className:k(t,"humany-dialog"),items:e,renderItem:r=>a.jsx("li",{"data-dialog":r.connection,children:a.jsx(_t,{...r})},r.connection),...n,ref:s}):null),ko=x(Le)`
745
- ${Ke}
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),s=require("@telia-ace/widget-ui"),v=require("@telia-ace/widget-utilities"),d=require("@emotion/styled"),u=require("react"),y=require("@emotion/react"),P=({title:e="",className:t,id:a,parent:o,connection:i,type:r,target:l,href:h,children:c,connectionKey:m})=>{const p={},{name:f,params:g}=s.useRouteData();switch(r){case"default":case"guide":const{id:w,title:$}=o;let b=m||i;w!==a&&!m&&(b=void 0),p.routeName=f,p.params=v.createParams({...g,guide:a,connection:b,uriName:a===w?v.formatUrl($):v.formatUrl(e)});break;case"link":p.href=h,p.target=l;break}return n.jsx(s.Link,{className:v.appendClassNames(t,"humany-dialog-link"),...p,children:c||n.jsxs(n.Fragment,{children:[r==="link"&&n.jsx(s.Icon,{faIcon:"link"}),n.jsx("span",{children:e})]})})},he=u.forwardRef(({className:e,dialog:t,...a},o)=>t.length?n.jsx(ue,{className:v.appendClassNames(e,"humany-dialog"),items:t,renderItem:i=>n.jsx("li",{"data-dialog":i.connection,children:n.jsx(P,{...i})},i.connection),...a,ref:o}):null),ue=d(s.List)`
2
+ ${s.list}
746
3
  a {
747
4
  min-width: 150px;
748
5
  max-width: 400px;
749
6
  display: block;
750
7
  white-space: normal;
751
- ${t=>{var e,n;return((e=t.theme.colors)==null?void 0:e.primary)&&Rt({primaryColor:(n=t.theme.colors)==null?void 0:n.primary,secondaryColor:"#FFFFFF",theme:t.theme})}}
8
+ ${e=>{var t,a;return((t=e.theme.colors)==null?void 0:t.primary)&&s.invertedHoverButton({primaryColor:(a=e.theme.colors)==null?void 0:a.primary,secondaryColor:"#FFFFFF",theme:e.theme})}}
752
9
  }
753
10
 
754
11
  i {
755
- margin: 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}} 0 0;
12
+ margin: 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}} 0 0;
756
13
  }
757
- `,jo=({trigger:t,header:e,className:n,animation:s,fullScreen:r,onToggle:o,children:i,ref:u,closeButtonAriaLabel:c,...d})=>a.jsx(Rn,{className:k(n,"humany-drawer-list"),trigger:t,header:e,animation:s,fullScreen:r,onToggle:o,closeButtonAriaLabel:c,children:a.jsx(So,{...d,children:i})}),So=x($e)`
758
- ${Ee}
759
- font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
760
- padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.medium}};
14
+ `,fe=({trigger:e,header:t,className:a,animation:o,fullScreen:i,onToggle:r,children:l,ref:h,closeButtonAriaLabel:c,...m})=>n.jsx(s.Drawer,{className:v.appendClassNames(a,"humany-drawer-list"),trigger:e,header:t,animation:o,fullScreen:i,onToggle:r,closeButtonAriaLabel:c,children:n.jsx(ge,{...m,children:l})}),ge=d(s.ItemList)`
15
+ ${s.itemList}
16
+ font-family: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.type}};
17
+ padding: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.medium}};
761
18
  > ul > li {
762
19
  overflow: visible;
763
20
  font-weight: 300;
764
- font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
21
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
765
22
  }
766
- `,Eo=({items:t,renderItem:e,trigger:n,header:s,children:r})=>a.jsx(Ot,{className:"humany-dropdown-actions",trigger:n,children:a.jsxs(Lo,{children:[!!s&&a.jsx(No,{children:s}),t&&e&&a.jsx(Ro,{items:t,renderItem:e}),r]})}),Lo=x.div`
23
+ `,pe=({items:e,renderItem:t,trigger:a,header:o,children:i})=>n.jsx(s.Dropdown,{className:"humany-dropdown-actions",trigger:a,children:n.jsxs(xe,{children:[!!o&&n.jsx(ye,{children:o}),e&&t&&n.jsx(ve,{items:e,renderItem:t}),i]})}),xe=d.div`
767
24
  background: #fff;
768
25
  border: #ccc 1px solid;
769
26
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
770
- font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
771
- font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
772
- `,No=x.div`
773
- padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
27
+ font-family: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.type}};
28
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
29
+ `,ye=d.div`
30
+ padding: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.normal}};
774
31
  padding-bottom: 0;
775
- font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
32
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
776
33
  font-weight: normal;
777
34
  white-space: nowrap;
778
35
  display: flex;
@@ -791,44 +48,44 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
791
48
 
792
49
  svg,
793
50
  i {
794
- margin-right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}};
51
+ margin-right: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}};
795
52
  }
796
- `,Ro=x(Le)`
53
+ `,ve=d(s.List)`
797
54
  list-style: none;
798
55
  padding: 0;
799
56
  margin: 0;
800
- padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}} 0;
57
+ padding: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}} 0;
801
58
 
802
59
  li {
803
60
  background: #fff;
804
61
 
805
62
  a {
806
63
  display: block;
807
- font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.small}};
808
- padding: ${t=>{var e,n;return`${(e=t.theme.sizes)==null?void 0:e.small} ${(n=t.theme.sizes)==null?void 0:n.normal}`}};
64
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.small}};
65
+ padding: ${e=>{var t,a;return`${(t=e.theme.sizes)==null?void 0:t.small} ${(a=e.theme.sizes)==null?void 0:a.normal}`}};
809
66
  cursor: pointer;
810
67
  color: #555;
811
68
  text-decoration: none;
812
69
 
813
70
  &:hover {
814
71
  background: #f9f9f9;
815
- color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
72
+ color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
816
73
  }
817
74
  }
818
75
  }
819
- `,Mo=({trigger:t,className:e,children:n,closeButtonAriaLabel:s,...r})=>a.jsx(Ot,{className:k(e,"humany-dropdown-list"),closeButtonAriaLabel:s,trigger:t,children:a.jsx(Oo,{...r,children:n})}),Oo=x($e)`
820
- ${Ee}
821
- font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
76
+ `,$e=({trigger:e,className:t,children:a,closeButtonAriaLabel:o,...i})=>n.jsx(s.Dropdown,{className:v.appendClassNames(t,"humany-dropdown-list"),closeButtonAriaLabel:o,trigger:e,children:n.jsx(be,{...i,children:a})}),be=d(s.ItemList)`
77
+ ${s.itemList}
78
+ font-family: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.type}};
822
79
  > div {
823
- ${t=>{var e;return re(t)("> h1",C.css`
824
- font-size: ${(e=t.theme.fonts)==null?void 0:e.normal};
80
+ ${e=>{var t;return s.headingElement(e)("> h1",y.css`
81
+ font-size: ${(t=e.theme.fonts)==null?void 0:t.normal};
825
82
  line-height: 1.2em;
826
83
  `)}}
827
84
  }
828
85
  > ul > li {
829
86
  overflow: visible;
830
87
  font-weight: 300;
831
- font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
88
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
832
89
 
833
90
  a {
834
91
  display: inline-block;
@@ -840,42 +97,42 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
840
97
  }
841
98
  }
842
99
  }
843
- `,Fn=t=>C.css`
844
- ${t["data-loading"]&&"position: relative;"};
845
- ${t["data-loading"]&&"min-height: 150px;"}
100
+ `,W=e=>y.css`
101
+ ${e["data-loading"]&&"position: relative;"};
102
+ ${e["data-loading"]&&"min-height: 150px;"}
846
103
  > * {
847
104
  transition: 200ms ease-out opacity;
848
- opacity: ${t["data-loading"]?"0.5":"1"};
105
+ opacity: ${e["data-loading"]?"0.5":"1"};
849
106
  }
850
107
  .humany-loader {
851
- opacity: ${t["data-loading"]?"1":"0"};
108
+ opacity: ${e["data-loading"]?"1":"0"};
852
109
  }
853
- `,To=x(be)`
110
+ `,we=d(s.Icon)`
854
111
  && {
855
- font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.small}};
112
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.small}};
856
113
  }
857
114
  width: 1.2em;
858
- `,Do=x(Ce)`
859
- font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.medium}};
115
+ `,je=d(s.Text)`
116
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.medium}};
860
117
  font-weight: normal;
861
118
  line-height: 1.2em;
862
- color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
863
- `,Zn=x(ie)`
119
+ color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
120
+ `,q=d(s.Button)`
864
121
  display: flex;
865
122
  align-items: center;
866
123
 
867
- ${t=>{var e;return t["data-has-label"]==="true"&&t["data-has-symbol"]==="true"&&`
124
+ ${e=>{var t;return e["data-has-label"]==="true"&&e["data-has-symbol"]==="true"&&`
868
125
  svg, i {
869
- margin: 0 ${(e=t.theme.sizes)==null?void 0:e.small} 0 0;
126
+ margin: 0 ${(t=e.theme.sizes)==null?void 0:t.small} 0 0;
870
127
  }
871
128
  `}}
872
129
 
873
130
  &:focus-visible {
874
- ${t=>t["data-has-label"]==="true"&&dt}
131
+ ${e=>e["data-has-label"]==="true"&&s.paddedBorderTabStyle}
875
132
 
876
133
  svg, i {
877
- ${t=>t["data-has-label"]==="false"&&t["data-has-symbol"]==="true"&&C.css`
878
- ${dt(t)}
134
+ ${e=>e["data-has-label"]==="false"&&e["data-has-symbol"]==="true"&&y.css`
135
+ ${s.paddedBorderTabStyle(e)}
879
136
  box-sizing: content-box;
880
137
  `}
881
138
  }
@@ -885,120 +142,120 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
885
142
  flex: 1;
886
143
  font-weight: 300;
887
144
  }
888
- `,Kn=({addFavoriteTooltip:t,removeFavoriteCancelLabel:e,removeFavoriteConfirmLabel:n,removeFavoriteHeader:s,removeFavoriteLabel:r,removeFavoriteTooltip:o,id:i,isFavorite:u,guideTitle:c,buttonLabel:d="",actions:{addFavorite:l,removeFavorite:h}})=>{const m=f.useCallback(()=>{h(i)},[i,h]),g=f.useCallback(()=>{l(i)},[i,l]),y=`${u?o:t}${c?`: "${c}"`:""}`;return u?a.jsx(_n,{trigger:a.jsxs(Gt,{className:"humany-favorite-button",title:y,"aria-label":y,"data-favorite":"true","data-has-label":d?"true":"false","data-has-symbol":"true",children:[a.jsx(V,{size:16,symbol:{type:"Svg",content:"star-empty"}}),d&&a.jsx(xe,{children:d})]}),onConfirm:m,cancelLabel:e,confirmLabel:n,header:s,text:r}):a.jsxs(Gt,{className:"humany-favorite-button",title:y,"aria-label":y,onClick:g,"data-favorite":"false","data-has-label":d?"true":"false","data-has-symbol":"true",children:[a.jsx(V,{size:16,symbol:{type:"Svg",content:"star-empty"}}),d&&a.jsx(xe,{children:d})]})},Gt=x(Zn)`
145
+ `,Y=({addFavoriteTooltip:e,removeFavoriteCancelLabel:t,removeFavoriteConfirmLabel:a,removeFavoriteHeader:o,removeFavoriteLabel:i,removeFavoriteTooltip:r,id:l,isFavorite:h,guideTitle:c,buttonLabel:m="",actions:{addFavorite:p,removeFavorite:f}})=>{const g=u.useCallback(()=>{f(l)},[l,f]),w=u.useCallback(()=>{p(l)},[l,p]),$=`${h?r:e}${c?`: "${c}"`:""}`;return h?n.jsx(s.Confirm,{trigger:n.jsxs(E,{className:"humany-favorite-button",title:$,"aria-label":$,"data-favorite":"true","data-has-label":m?"true":"false","data-has-symbol":"true",children:[n.jsx(s.SymbolBadge,{size:16,symbol:{type:"Svg",content:"star-empty"}}),m&&n.jsx(s.StyledText,{children:m})]}),onConfirm:g,cancelLabel:t,confirmLabel:a,header:o,text:i}):n.jsxs(E,{className:"humany-favorite-button",title:$,"aria-label":$,onClick:w,"data-favorite":"false","data-has-label":m?"true":"false","data-has-symbol":"true",children:[n.jsx(s.SymbolBadge,{size:16,symbol:{type:"Svg",content:"star-empty"}}),m&&n.jsx(s.StyledText,{children:m})]})},E=d(q)`
889
146
  grid-area: favorite;
890
147
 
891
148
  &:focus-visible {
892
149
  svg {
893
- ${t=>{var e,n;return t["data-favorite"]==="true"?`
150
+ ${e=>{var t,a;return e["data-favorite"]==="true"?`
894
151
  fill: transparent;
895
152
 
896
153
  path {
897
154
  fill: transparent;
898
155
  }
899
156
  `:`
900
- fill: ${(e=t.theme.colors)==null?void 0:e.text};
157
+ fill: ${(t=e.theme.colors)==null?void 0:t.text};
901
158
 
902
159
  path {
903
- fill: ${(n=t.theme.colors)==null?void 0:n.text};
160
+ fill: ${(a=e.theme.colors)==null?void 0:a.text};
904
161
  }
905
162
  `}}
906
163
  }
907
164
  }
908
165
 
909
- ${t=>{var e,n,s,r,o,i,u;return((e=t.theme.colors)==null?void 0:e.text)&&C.css`
166
+ ${e=>{var t,a,o,i,r,l,h;return((t=e.theme.colors)==null?void 0:t.text)&&y.css`
910
167
  svg {
911
- stroke: ${(n=t.theme.colors)==null?void 0:n.text};
168
+ stroke: ${(a=e.theme.colors)==null?void 0:a.text};
912
169
 
913
170
  path {
914
- stroke: ${(s=t.theme.colors)==null?void 0:s.text};
171
+ stroke: ${(o=e.theme.colors)==null?void 0:o.text};
915
172
  }
916
173
 
917
- ${t["data-favorite"]==="true"&&`
918
- fill: ${(r=t.theme.colors)==null?void 0:r.text};
174
+ ${e["data-favorite"]==="true"&&`
175
+ fill: ${(i=e.theme.colors)==null?void 0:i.text};
919
176
 
920
177
  path {
921
- fill: ${(o=t.theme.colors)==null?void 0:o.text};
178
+ fill: ${(r=e.theme.colors)==null?void 0:r.text};
922
179
  }
923
180
  `};
924
181
  }
925
182
 
926
183
  &:hover {
927
184
  svg {
928
- ${t["data-favorite"]==="true"?`
185
+ ${e["data-favorite"]==="true"?`
929
186
  fill: transparent;
930
187
 
931
188
  path {
932
189
  fill: transparent;
933
190
  }
934
191
  `:`
935
- fill: ${(i=t.theme.colors)==null?void 0:i.text};
192
+ fill: ${(l=e.theme.colors)==null?void 0:l.text};
936
193
 
937
194
  path {
938
- fill: ${(u=t.theme.colors)==null?void 0:u.text};
195
+ fill: ${(h=e.theme.colors)==null?void 0:h.text};
939
196
  }
940
197
  `};
941
198
  }
942
199
  }
943
200
  `}}
944
- `,Ao=f.forwardRef(({onFeedback:t=()=>{},direction:e="horizontal",className:n,header:s,positive:r,negative:o,selected:i,...u},c)=>a.jsxs(Po,{className:k(n,"humany-feedback"),"data-direction":e,...D(u),ref:c,children:[!!s&&a.jsx(zo,{children:s}),a.jsxs(en,{className:"humany-feedback-button",disabled:!!i,"data-selected":i==="positive","data-direction":e,onClick:()=>t("positive"),children:[a.jsx(be,{faIcon:"smile-o"}),a.jsx("span",{children:r})]}),a.jsxs(en,{className:"humany-feedback-button",disabled:!!i,"data-selected":i==="negative","data-direction":e,onClick:()=>t("negative"),children:[a.jsx(be,{faIcon:"frown-o"}),a.jsx("span",{children:o})]})]})),zo=x(xe)`
201
+ `,ke=u.forwardRef(({onFeedback:e=()=>{},direction:t="horizontal",className:a,header:o,positive:i,negative:r,selected:l,...h},c)=>n.jsxs(ze,{className:v.appendClassNames(a,"humany-feedback"),"data-direction":t,...s.convertToStringAttributes(h),ref:c,children:[!!o&&n.jsx(Se,{children:o}),n.jsxs(M,{className:"humany-feedback-button",disabled:!!l,"data-selected":l==="positive","data-direction":t,onClick:()=>e("positive"),children:[n.jsx(s.Icon,{faIcon:"smile-o"}),n.jsx("span",{children:i})]}),n.jsxs(M,{className:"humany-feedback-button",disabled:!!l,"data-selected":l==="negative","data-direction":t,onClick:()=>e("negative"),children:[n.jsx(s.Icon,{faIcon:"frown-o"}),n.jsx("span",{children:r})]})]})),Se=d(s.StyledText)`
945
202
  font-weight: normal;
946
- margin: 0 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
947
- font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
203
+ margin: 0 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.normal}};
204
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
948
205
  display: block;
949
- `,en=x(ie)`
206
+ `,M=d(s.Button)`
950
207
  display: inline-block;
951
- font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
208
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
952
209
  font-weight: 300;
953
210
  && {
954
- margin-right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
211
+ margin-right: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
955
212
  }
956
213
 
957
- ${t=>{var e,n;return t["data-direction"]==="horizontal"&&C.css`
214
+ ${e=>{var t,a;return e["data-direction"]==="horizontal"&&y.css`
958
215
  width: 225px;
959
- max-width: calc(50% - ${(e=t.theme.sizes)==null?void 0:e.large} - ${(n=t.theme.sizes)==null?void 0:n.small});
216
+ max-width: calc(50% - ${(t=e.theme.sizes)==null?void 0:t.large} - ${(a=e.theme.sizes)==null?void 0:a.small});
960
217
  `}}
961
218
 
962
- ${t=>t["data-direction"]==="vertical"&&C.css`
219
+ ${e=>e["data-direction"]==="vertical"&&y.css`
963
220
  min-width: 190px;
964
221
  `}
965
222
 
966
- ${t=>{var e,n;return((e=t.theme.colors)==null?void 0:e.primary)&&Rt({active:t["data-selected"],primaryColor:(n=t.theme.colors)==null?void 0:n.primary,secondaryColor:"#FFFFFF",theme:t.theme})}}
223
+ ${e=>{var t,a;return((t=e.theme.colors)==null?void 0:t.primary)&&s.invertedHoverButton({active:e["data-selected"],primaryColor:(a=e.theme.colors)==null?void 0:a.primary,secondaryColor:"#FFFFFF",theme:e.theme})}}
967
224
 
968
225
  i {
969
- margin: 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}} 0 0;
226
+ margin: 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}} 0 0;
970
227
  }
971
- `,Po=x.div`
972
- ${t=>{var e;return t["data-direction"]==="vertical"&&C.css`
228
+ `,ze=d.div`
229
+ ${e=>{var t;return e["data-direction"]==="vertical"&&y.css`
973
230
  > button {
974
231
  width: 100%;
975
232
  &:not(:last-child) {
976
- margin-bottom: ${(e=t.theme.sizes)==null?void 0:e.normal};
233
+ margin-bottom: ${(t=e.theme.sizes)==null?void 0:t.normal};
977
234
  }
978
235
  }
979
236
  `}}
980
- `,Ho=()=>{const[t,e]=f.useState(null),n=U("ArrowLeft"),s=U("ArrowRight"),r=U("ArrowUp"),o=U("ArrowDown"),i=()=>{e(n?"left":s?"right":r?"up":o?"down":null)};return f.useEffect(i,[n,s,r,o]),t},Io=(t,e)=>{const[n,s]=f.useState(t),r=f.useCallback(()=>setTimeout(()=>{s(t)},e),[e,s,t]);return f.useEffect(()=>{const o=r();return()=>{clearTimeout(o)}},[r]),n},Yn=()=>{const t=H(),[e,n]=f.useState([]),s=t.get("favorites");f.useEffect(()=>{if(s){n(s.get());const{events:c}=t.get("$widget");return c.subscribe("widget:favorites-updated",(l,{updated:h})=>{n([...h])})}},[]);const r=c=>s?s.add(c):Promise.resolve([]),o=c=>s?s.remove(c):Promise.resolve([]),i=()=>s?s.clear():Promise.resolve([]),u=f.useCallback(c=>e.indexOf(c)>-1?o(c):r(c),[e]);return[e,f.useMemo(()=>({addFavorite:r,removeFavorite:o,clearFavorites:i,toggleFavorite:u}),[e])]},Bo=()=>{const[t,e]=f.useState(!1),n=f.useRef(),s=f.useCallback(()=>e(!0),[e]),r=f.useCallback(()=>e(!1),[e]);return Z("mouseenter",s,n.current),Z("mouseleave",r,n.current),[t,n]},qn=({format:t=Je.YYYY_MM_DD_HH_MM,className:e="",byLabel:n="",modifiedLabel:s="",publishedLabel:r="",modifiedBy:o="",publishedBy:i="",showModified:u=!1,showPublished:c=!1,modified:d,published:l})=>{const h=c&&l?a.jsx(tn,{format:t,timestamp:l}):null,m=u&&d?a.jsx(tn,{format:t,timestamp:d}):null;return!h&&!m?null:a.jsxs(at,{className:k(e,"humany-metadata"),children:[h&&a.jsxs(at,{className:"humany-published",children:[r,h,n&&i&&` ${n.replace("{{editor}}",i)}`]}),m&&a.jsxs(at,{className:"humany-modified",children:[h&&", ",s,m,n&&o&&` ${n.replace("{{editor}}",o)}`]})]})},tn=x(Vt)`
237
+ `,Le=()=>{const[e,t]=u.useState(null),a=s.useKeyPress("ArrowLeft"),o=s.useKeyPress("ArrowRight"),i=s.useKeyPress("ArrowUp"),r=s.useKeyPress("ArrowDown"),l=()=>{t(a?"left":o?"right":i?"up":r?"down":null)};return u.useEffect(l,[a,o,i,r]),e},Ne=(e,t)=>{const[a,o]=u.useState(e),i=u.useCallback(()=>setTimeout(()=>{o(e)},t),[t,o,e]);return u.useEffect(()=>{const r=i();return()=>{clearTimeout(r)}},[i]),a},_=()=>{const e=s.useContainer(),[t,a]=u.useState([]),o=e.get("favorites");u.useEffect(()=>{if(o){a(o.get());const{events:c}=e.get("$widget");return c.subscribe("widget:favorites-updated",(p,{updated:f})=>{a([...f])})}},[]);const i=c=>o?o.add(c):Promise.resolve([]),r=c=>o?o.remove(c):Promise.resolve([]),l=()=>o?o.clear():Promise.resolve([]),h=u.useCallback(c=>t.indexOf(c)>-1?r(c):i(c),[t]);return[t,u.useMemo(()=>({addFavorite:i,removeFavorite:r,clearFavorites:l,toggleFavorite:h}),[t])]},Ce=()=>{const[e,t]=u.useState(!1),a=u.useRef(),o=u.useCallback(()=>t(!0),[t]),i=u.useCallback(()=>t(!1),[t]);return s.useEventListener("mouseenter",o,a.current),s.useEventListener("mouseleave",i,a.current),[e,a]},K=({format:e=s.DateFormats.YYYY_MM_DD_HH_MM,className:t="",byLabel:a="",modifiedLabel:o="",publishedLabel:i="",modifiedBy:r="",publishedBy:l="",showModified:h=!1,showPublished:c=!1,modified:m,published:p})=>{const f=c&&p?n.jsx(O,{format:e,timestamp:p}):null,g=h&&m?n.jsx(O,{format:e,timestamp:m}):null;return!f&&!g?null:n.jsxs(F,{className:v.appendClassNames(t,"humany-metadata"),children:[f&&n.jsxs(F,{className:"humany-published",children:[i,f,a&&l&&` ${a.replace("{{editor}}",l)}`]}),g&&n.jsxs(F,{className:"humany-modified",children:[f&&", ",o,g,a&&r&&` ${a.replace("{{editor}}",r)}`]})]})},O=d(s.Timestamp)`
981
238
  &:not(:first-child) {
982
239
  margin-left: 4px;
983
240
  }
984
241
  &:not(:last-child) {
985
242
  margin-right: 4px;
986
243
  }
987
- `,at=x(Ce)`
244
+ `,F=d(s.Text)`
988
245
  font-style: italic;
989
- `,Vo=({tags:t})=>t.filter(e=>e.symbol).length?a.jsx(Ko,{className:"humany-guide-list-tags",items:t,renderItem:({id:e,symbol:n,title:s})=>n&&a.jsx("li",{"data-tag":e,children:a.jsx(Yo,{size:18,symbol:n,title:s})},e)}):null,Wo=f.forwardRef(({title:t,id:e,route:n,symbolSize:s,collapseUri:r,children:o},i)=>{const{params:u}=St();return a.jsxs(_o,{ref:i,"data-guide":e,children:[a.jsx(je,{title:t,"aria-label":t,routeName:n,params:ze({...u,uriName:r||void 0,id:void 0,guide:void 0,accordion:void 0}),text:t,children:a.jsx(V,{size:s,symbol:{type:"Svg",content:"caret-up"}})}),o]})}),_o=x.li`
246
+ `,Te=({tags:e})=>e.filter(t=>t.symbol).length?n.jsx(Pe,{className:"humany-guide-list-tags",items:e,renderItem:({id:t,symbol:a,title:o})=>a&&n.jsx("li",{"data-tag":t,children:n.jsx(Ae,{size:18,symbol:a,title:o})},t)}):null,Ie=u.forwardRef(({title:e,id:t,route:a,symbolSize:o,collapseUri:i,children:r},l)=>{const{params:h}=s.useRouteData();return n.jsxs(De,{ref:l,"data-guide":t,children:[n.jsx(s.TextLink,{title:e,"aria-label":e,routeName:a,params:v.createParams({...h,uriName:i||void 0,id:void 0,guide:void 0,accordion:void 0}),text:e,children:n.jsx(s.SymbolBadge,{size:o,symbol:{type:"Svg",content:"caret-up"}})}),r]})}),De=d.li`
990
247
  > a {
991
248
  grid-column: 1/-1;
992
249
  font-weight: bold;
993
- margin: 0 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}} 0;
250
+ margin: 0 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.normal}} 0;
994
251
  }
995
252
 
996
253
  > div {
997
254
  grid-column: 1/-1;
998
255
  }
999
- `,Fo=f.forwardRef(({expandable:t=!1,routing:e={},paramMappers:n={},symbolSize:s=11,pageRole:r="link",pageCaret:o="down",showTags:i=!1,showFavoriteToggle:u=!1,localPaging:c=!1,onItemClick:d=()=>{},dispatch:l=()=>{},metadata:h={},pageLabel:m,className:g,children:y,items:p,renderItem:v,addFavoriteTooltip:j,removeFavoriteCancelLabel:S,removeFavoriteConfirmLabel:N,removeFavoriteHeader:$,removeFavoriteLabel:L,removeFavoriteTooltip:Y,...I},T)=>{const W=jn(),B=f.useRef(),P=Fe(p),{guide:A="guide",page:q="index"}=e,{guide:ae=({id:b})=>ze({guide:b}),page:ce=()=>ze()}=n,[ee,he]=Yn();f.useImperativeHandle(T,()=>B.current);const _=b=>{const{id:E,title:R,tags:z,published:X,modified:ne,publishedBy:me,modifiedBy:Xe}=b;return a.jsxs("li",{"data-guide":E,"has-metadata":(!!(h!=null&&h.showPublished)&&!!X||!!(h!=null&&h.showModified)&&!!ne).toString(),children:[a.jsx(je,{className:"humany-guide-link",title:R,"aria-label":R,routeName:A,onClick:Xn=>d(Xn,b),params:ae(b),text:R,children:a.jsx(V,{size:s,symbol:{type:"Svg",content:t?"caret-down":"caret-right"}})}),u&&a.jsx(Kn,{guideTitle:R,addFavoriteTooltip:j,removeFavoriteCancelLabel:S,removeFavoriteConfirmLabel:N,removeFavoriteHeader:$,removeFavoriteLabel:L,removeFavoriteTooltip:Y,isFavorite:ee.indexOf(E)>-1,actions:he,id:E}),i&&a.jsx(Vo,{tags:z}),a.jsx(qo,{...h,indent:t?void 0:s,modified:ne,published:X,publishedBy:me,modifiedBy:Xe})]},E)},te=f.useCallback((b,E,R)=>v?v(b,E,R,_):_(b),[v,_]),fe=f.useCallback(b=>{c&&(b.preventDefault(),l("page",ce()))},[l,c]);f.useEffect(()=>{if(P&&P.length<p.length&&B.current){const b=B.current.querySelectorAll(".humany-guide-list > ul > li"),E=b[P.length];if(b.length===p.length&&P.length){const R=b[P.length];if(R){const z=R.querySelector(".humany-guide-link");z&&z.focus()}}else E&&new MutationObserver((z,X)=>{z.forEach(ne=>{if(ne.addedNodes){const me=Array.from(ne.addedNodes).find(Xe=>Xe.tagName==="A");me&&is(B.current,document.activeElement)&&(W&&me.focus(),X.disconnect())}})}).observe(E,{attributes:!1,characterData:!1,childList:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1})}});const Re=!!Object.keys(h).filter(b=>typeof h[b]<"u").length;return a.jsxs(Zo,{className:k(g,"humany-guide-list"),"data-item-count":p.length,items:p,renderItem:te,isTabbing:W,expandable:t?"true":"false","grid-items":i||u||Re?"true":"false",...D(I),ref:B,children:[m?a.jsx(je,{text:m,title:m,"aria-label":m,routeName:q,role:r,params:ce(),onClick:fe,children:a.jsx(V,{size:s,symbol:{type:"Svg",content:`caret-${o}`}})}):null,y]})}),Zo=x($e)`
1000
- ${Ee}
1001
- padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
256
+ `,Be=u.forwardRef(({expandable:e=!1,routing:t={},paramMappers:a={},symbolSize:o=11,pageRole:i="link",pageCaret:r="down",showTags:l=!1,showFavoriteToggle:h=!1,localPaging:c=!1,onItemClick:m=()=>{},dispatch:p=()=>{},metadata:f={},pageLabel:g,className:w,children:$,items:b,renderItem:S,addFavoriteTooltip:G,removeFavoriteCancelLabel:J,removeFavoriteConfirmLabel:Q,removeFavoriteHeader:X,removeFavoriteLabel:Z,removeFavoriteTooltip:ee,...te},se)=>{const A=s.useIsTabbing(),L=u.useRef(),N=s.usePrevious(b),{guide:ae="guide",page:ne="index"}=t,{guide:oe=({id:x})=>v.createParams({guide:x}),page:R=()=>v.createParams()}=a,[ie,re]=_();u.useImperativeHandle(se,()=>L.current);const D=x=>{const{id:k,title:j,tags:z,published:T,modified:C,publishedBy:I,modifiedBy:B}=x;return n.jsxs("li",{"data-guide":k,"has-metadata":(!!(f!=null&&f.showPublished)&&!!T||!!(f!=null&&f.showModified)&&!!C).toString(),children:[n.jsx(s.TextLink,{className:"humany-guide-link",title:j,"aria-label":j,routeName:ae,onClick:me=>m(me,x),params:oe(x),text:j,children:n.jsx(s.SymbolBadge,{size:o,symbol:{type:"Svg",content:e?"caret-down":"caret-right"}})}),h&&n.jsx(Y,{guideTitle:j,addFavoriteTooltip:G,removeFavoriteCancelLabel:J,removeFavoriteConfirmLabel:Q,removeFavoriteHeader:X,removeFavoriteLabel:Z,removeFavoriteTooltip:ee,isFavorite:ie.indexOf(k)>-1,actions:re,id:k}),l&&n.jsx(Te,{tags:z}),n.jsx(Re,{...f,indent:e?void 0:o,modified:C,published:T,publishedBy:I,modifiedBy:B})]},k)},le=u.useCallback((x,k,j)=>S?S(x,k,j,D):D(x),[S,D]),ce=u.useCallback(x=>{c&&(x.preventDefault(),p("page",R()))},[p,c]);u.useEffect(()=>{if(N&&N.length<b.length&&L.current){const x=L.current.querySelectorAll(".humany-guide-list > ul > li"),k=x[N.length];if(x.length===b.length&&N.length){const j=x[N.length];if(j){const z=j.querySelector(".humany-guide-link");z&&z.focus()}}else k&&new MutationObserver((z,T)=>{z.forEach(C=>{if(C.addedNodes){const I=Array.from(C.addedNodes).find(B=>B.tagName==="A");I&&v.htmlParentContains(L.current,document.activeElement)&&(A&&I.focus(),T.disconnect())}})}).observe(k,{attributes:!1,characterData:!1,childList:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1})}});const de=!!Object.keys(f).filter(x=>typeof f[x]<"u").length;return n.jsxs(Fe,{className:v.appendClassNames(w,"humany-guide-list"),"data-item-count":b.length,items:b,renderItem:le,isTabbing:A,expandable:e?"true":"false","grid-items":l||h||de?"true":"false",...s.convertToStringAttributes(te),ref:L,children:[g?n.jsx(s.TextLink,{text:g,title:g,"aria-label":g,routeName:ne,role:i,params:R(),onClick:ce,children:n.jsx(s.SymbolBadge,{size:o,symbol:{type:"Svg",content:`caret-${r}`}})}):null,$]})}),Fe=d(s.ItemList)`
257
+ ${s.itemList}
258
+ padding: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
1002
259
  overflow: auto;
1003
260
  justify-content: flex-start;
1004
261
  white-space: nowrap;
@@ -1006,13 +263,13 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
1006
263
  text-decoration: none;
1007
264
 
1008
265
  > div {
1009
- ${t=>re(t)("> h1",C.css`
266
+ ${e=>s.headingElement(e)("> h1",y.css`
1010
267
  white-space: pre-wrap;
1011
268
  `)}
1012
269
  }
1013
270
 
1014
271
  > ul > li {
1015
- ${t=>{var e,n;return t["grid-items"]==="true"&&C.css`
272
+ ${e=>{var t,a;return e["grid-items"]==="true"&&y.css`
1016
273
  display: grid;
1017
274
  grid-template-columns: auto 1fr 1fr;
1018
275
  gap: 0px 0px;
@@ -1020,10 +277,10 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
1020
277
  align-items: center;
1021
278
 
1022
279
  > button {
1023
- margin: 0 0 0 ${(e=t.theme.sizes)==null?void 0:e.small};
280
+ margin: 0 0 0 ${(t=e.theme.sizes)==null?void 0:t.small};
1024
281
 
1025
282
  &[data-favorite='false'] {
1026
- ${t.isTabbing?"opacity: 0;":"display: none;"};
283
+ ${e.isTabbing?"opacity: 0;":"display: none;"};
1027
284
  &:focus {
1028
285
  opacity: 1;
1029
286
  }
@@ -1031,7 +288,7 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
1031
288
  }
1032
289
 
1033
290
  > span {
1034
- font-size: ${(n=t.theme.fonts)==null?void 0:n.small};
291
+ font-size: ${(a=e.theme.fonts)==null?void 0:a.small};
1035
292
  }
1036
293
 
1037
294
  &:hover {
@@ -1049,20 +306,20 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
1049
306
  }
1050
307
  `}}
1051
308
  > a {
1052
- color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
309
+ color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
1053
310
  overflow: hidden;
1054
311
  text-overflow: ellipsis;
1055
312
  max-width: 100%;
1056
313
  display: inline-block;
1057
314
 
1058
315
  svg {
1059
- margin: 0 calc(${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}}*2) 0 0;
316
+ margin: 0 calc(${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}}*2) 0 0;
1060
317
  line {
1061
- stroke: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
318
+ stroke: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
1062
319
  }
1063
320
  }
1064
321
 
1065
- ${t=>{var e;return t.expandable==="true"&&C.css`
322
+ ${e=>{var t;return e.expandable==="true"&&y.css`
1066
323
  display: flex;
1067
324
  flex-direction: row-reverse;
1068
325
  justify-content: flex-end;
@@ -1074,12 +331,12 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
1074
331
  }
1075
332
 
1076
333
  svg {
1077
- margin: 0 0 0 ${(e=t.theme.sizes)==null?void 0:e.small};
334
+ margin: 0 0 0 ${(t=e.theme.sizes)==null?void 0:t.small};
1078
335
  }
1079
336
  `}}
1080
337
 
1081
338
  &:focus-visible {
1082
- ${K}
339
+ ${s.borderTabStyle}
1083
340
  text-decoration: underline;
1084
341
  }
1085
342
 
@@ -1092,8 +349,8 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
1092
349
  }
1093
350
 
1094
351
  > a {
1095
- color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
1096
- margin: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}} 0 0;
352
+ color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
353
+ margin: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.normal}} 0 0;
1097
354
  align-self: flex-start;
1098
355
  align-items: center;
1099
356
  display: flex;
@@ -1103,50 +360,50 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
1103
360
  }
1104
361
 
1105
362
  svg {
1106
- margin: 0 calc(${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}}*2) 0 0;
363
+ margin: 0 calc(${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}}*2) 0 0;
1107
364
  line {
1108
- stroke: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
365
+ stroke: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
1109
366
  }
1110
367
  }
1111
368
 
1112
369
  &:focus-visible {
1113
- ${K}
370
+ ${s.borderTabStyle}
1114
371
  text-decoration: underline;
1115
372
  }
1116
373
  }
1117
- `,Ko=x(Le)`
1118
- ${Ke}
374
+ `,Pe=d(s.List)`
375
+ ${s.list}
1119
376
  display: flex;
1120
377
  margin: 0 0 0 auto;
1121
378
  grid-area: tags;
1122
379
 
1123
380
  li,
1124
381
  li:last-child {
1125
- margin: 0 0 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}};
382
+ margin: 0 0 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}};
1126
383
  display: flex;
1127
384
  align-items: center;
1128
385
  justify-content: space-between;
1129
386
  }
1130
- `,Yo=x(V)`
387
+ `,Ae=d(s.SymbolBadge)`
1131
388
  display: block;
1132
- color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
1133
- ${t=>{if(t.symbol.type==="Uri")return`
1134
- width: ${t.size}px;
1135
- height: ${t.size}px;
1136
- `;if(t.symbol.type==="FontAwesome")return`
1137
- font-size: ${t.size}px;
389
+ color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
390
+ ${e=>{if(e.symbol.type==="Uri")return`
391
+ width: ${e.size}px;
392
+ height: ${e.size}px;
393
+ `;if(e.symbol.type==="FontAwesome")return`
394
+ font-size: ${e.size}px;
1138
395
  `}}
1139
- `,qo=x(qn)`
396
+ `,Re=d(K)`
1140
397
  grid-area: metadata;
1141
398
  text-overflow: ellipsis;
1142
399
  overflow: hidden;
1143
- font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.small}};
1144
- ${t=>{var e;return typeof t.indent=="number"&&`text-indent: calc(${(e=t.theme.sizes)==null?void 0:e.small} * 2 + ${t.indent}px);`}}
1145
- `,Uo=C.keyframes`
400
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.small}};
401
+ ${e=>{var t;return typeof e.indent=="number"&&`text-indent: calc(${(t=e.theme.sizes)==null?void 0:t.small} * 2 + ${e.indent}px);`}}
402
+ `,Ee=y.keyframes`
1146
403
  100% {
1147
404
  transform: rotate(360deg);
1148
405
  }
1149
- `,Jo=C.keyframes`
406
+ `,Me=y.keyframes`
1150
407
  0% {
1151
408
  stroke-dasharray: 1, 200;
1152
409
  stroke-dashoffset: 0;
@@ -1159,8 +416,8 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
1159
416
  stroke-dasharray: 89, 200;
1160
417
  stroke-dashoffset: -124px;
1161
418
  }
1162
- `,Xo=x.svg`
1163
- animation: ${Uo} 2s linear infinite;
419
+ `,Oe=d.svg`
420
+ animation: ${Ee} 2s linear infinite;
1164
421
  height: 100%;
1165
422
  transform-origin: center center;
1166
423
  width: 100%;
@@ -1171,7 +428,7 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
1171
428
  right: 0;
1172
429
  margin: auto;
1173
430
  transition: 200ms ease-out opacity;
1174
- `,Un=x.div`
431
+ `,U=d.div`
1175
432
  position: absolute;
1176
433
  top: 0;
1177
434
  bottom: 0;
@@ -1179,7 +436,7 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
1179
436
  right: 0;
1180
437
  height: 100%;
1181
438
  width: 100%;
1182
- pointer-events: ${t=>t["data-loading"]?"all":"none"};
439
+ pointer-events: ${e=>e["data-loading"]?"all":"none"};
1183
440
  display: flex;
1184
441
  flex-direction: column;
1185
442
  justify-content: center;
@@ -1188,9 +445,9 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
1188
445
  overflow: hidden;
1189
446
 
1190
447
  .humany-spinner-svg {
1191
- opacity: ${t=>t["data-loading"]?"1":"0"};
448
+ opacity: ${e=>e["data-loading"]?"1":"0"};
1192
449
  }
1193
- `,Qo=x.div`
450
+ `,He=d.div`
1194
451
  position: relative;
1195
452
  margin: 0 auto;
1196
453
  width: 100px;
@@ -1199,14 +456,14 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
1199
456
  display: block;
1200
457
  padding-top: 100%;
1201
458
  }
1202
- `,Go=x.circle`
459
+ `,We=d.circle`
1203
460
  stroke-dasharray: 1, 200;
1204
461
  stroke-dashoffset: 0;
1205
- animation: ${Jo} 1.5s ease-in-out infinite;
462
+ animation: ${Me} 1.5s ease-in-out infinite;
1206
463
  stroke-linecap: round;
1207
- stroke: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
464
+ stroke: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
1208
465
  stroke-width: 2px;
1209
- `,Jn=({loading:t=!1})=>a.jsx(Un,{className:"humany-loader","data-loading":t,children:a.jsx(Qo,{className:"humany-spinner",children:a.jsx(Xo,{className:"humany-spinner-svg",viewBox:"25 25 50 50",children:a.jsx(Go,{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"2","stroke-miterlimit":"10"})})})}),ei=({className:t,showHeader:e,notificationList:n,loading:s,...r})=>{const[o,i]=f.useState(null),{id:u,title:c,symbol:d,notifications:l=[],defaultHeaderOptions:h={visible:!0}}=n||{};return!l.length&&!s?null:a.jsx(ni,{...r,"data-loading":s,"data-show-header":typeof e=="boolean"?e:h.visible,className:k(t,"humany-notification-list"),"data-notification-category":u,header:c,symbol:d,items:l,renderItem:({id:m,title:g,body:y,modified:p,expandable:v})=>a.jsx(si,{"data-notification":m,"data-expanded":v?o===m:!0,children:v?a.jsxs(a.Fragment,{children:[a.jsxs(ti,{title:g,"aria-label":g,"aria-expanded":o===m,onClick:()=>i(o===m?null:m),children:[a.jsx("span",{children:g}),a.jsx(ri,{size:11,symbol:{type:"Svg",content:`caret-${o===m?"up":"down"}`}})]}),a.jsx(nn,{html:y}),p&&a.jsx(oi,{format:Je.YYYY_MM_DD,timestamp:p})]}):a.jsx(nn,{html:y})},m),children:a.jsx(Jn,{loading:s})})},ti=x(ie)`
466
+ `,V=({loading:e=!1})=>n.jsx(U,{className:"humany-loader","data-loading":e,children:n.jsx(He,{className:"humany-spinner",children:n.jsx(Oe,{className:"humany-spinner-svg",viewBox:"25 25 50 50",children:n.jsx(We,{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"2","stroke-miterlimit":"10"})})})}),qe=({className:e,showHeader:t,notificationList:a,loading:o,...i})=>{const[r,l]=u.useState(null),{id:h,title:c,symbol:m,notifications:p=[],defaultHeaderOptions:f={visible:!0}}=a||{};return!p.length&&!o?null:n.jsx(_e,{...i,"data-loading":o,"data-show-header":typeof t=="boolean"?t:f.visible,className:v.appendClassNames(e,"humany-notification-list"),"data-notification-category":h,header:c,symbol:m,items:p,renderItem:({id:g,title:w,body:$,modified:b,expandable:S})=>n.jsx(Ke,{"data-notification":g,"data-expanded":S?r===g:!0,children:S?n.jsxs(n.Fragment,{children:[n.jsxs(Ye,{title:w,"aria-label":w,"aria-expanded":r===g,onClick:()=>l(r===g?null:g),children:[n.jsx("span",{children:w}),n.jsx(Ue,{size:11,symbol:{type:"Svg",content:`caret-${r===g?"up":"down"}`}})]}),n.jsx(H,{html:$}),b&&n.jsx(Ve,{format:s.DateFormats.YYYY_MM_DD,timestamp:b})]}):n.jsx(H,{html:$})},g),children:n.jsx(V,{loading:o})})},Ye=d(s.Button)`
1210
467
  display: flex;
1211
468
  justify-content: space-between;
1212
469
  align-items: center;
@@ -1214,32 +471,32 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
1214
471
  text-align: left;
1215
472
  svg,
1216
473
  i {
1217
- color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
474
+ color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
1218
475
  }
1219
476
  span {
1220
- color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
1221
- font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
477
+ color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
478
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
1222
479
  overflow: hidden;
1223
480
  text-overflow: ellipsis;
1224
481
  flex: 1;
1225
482
  white-space: nowrap;
1226
483
  }
1227
484
  &:focus-visible {
1228
- ${K}
485
+ ${s.borderTabStyle}
1229
486
  span {
1230
- color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
487
+ color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
1231
488
  text-decoration: underline;
1232
489
  }
1233
490
  }
1234
- `,ni=x($e)`
1235
- ${Fn}
1236
- ${Ee}
491
+ `,_e=d(s.ItemList)`
492
+ ${W}
493
+ ${s.itemList}
1237
494
  overflow: hidden;
1238
495
  justify-content: flex-start;
1239
- padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
1240
- ${t=>!t["data-show-header"]&&C.css`
496
+ padding: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
497
+ ${e=>!e["data-show-header"]&&y.css`
1241
498
  > div {
1242
- ${re(t)("h1",C.css`
499
+ ${s.headingElement(e)("h1",y.css`
1243
500
  display: none;
1244
501
  `)}
1245
502
  }
@@ -1250,24 +507,24 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
1250
507
  text-decoration: underline;
1251
508
  }
1252
509
  }
1253
- `,nn=x(Dt)`
1254
- ${Ln}
510
+ `,H=d(s.Paragraph)`
511
+ ${s.genericHtml}
1255
512
  font-weight: 300;
1256
513
 
1257
514
  p {
1258
515
  white-space: normal;
1259
516
  }
1260
- `,si=x.li`
517
+ `,Ke=d.li`
1261
518
  .humany-paragraph {
1262
519
  display: none;
1263
520
  &:not(:only-child) {
1264
- ${t=>{var e,n,s;return((e=t.theme.sizes)==null?void 0:e.cardinal)&&((n=t.theme.sizes)==null?void 0:n.normal)&&C.css`
1265
- margin: ${(s=t.theme.sizes)==null?void 0:s.normal} 0;
521
+ ${e=>{var t,a,o;return((t=e.theme.sizes)==null?void 0:t.cardinal)&&((a=e.theme.sizes)==null?void 0:a.normal)&&y.css`
522
+ margin: ${(o=e.theme.sizes)==null?void 0:o.normal} 0;
1266
523
  `}}
1267
524
  }
1268
525
  }
1269
526
 
1270
- ${t=>t["data-expanded"]&&C.css`
527
+ ${e=>e["data-expanded"]&&y.css`
1271
528
  .humany-paragraph {
1272
529
  display: block;
1273
530
  }
@@ -1276,14 +533,14 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
1276
533
  > span {
1277
534
  display: block;
1278
535
  font-weight: 300;
1279
- color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.accent}};
536
+ color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.accent}};
1280
537
  }
1281
- `,ri=x(V)`
1282
- margin: 0 0 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}};
538
+ `,Ue=d(s.SymbolBadge)`
539
+ margin: 0 0 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}};
1283
540
  line {
1284
- stroke: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
541
+ stroke: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
1285
542
  }
1286
- `,oi=x(Vt)`
1287
- font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.small}};
543
+ `,Ve=d(s.Timestamp)`
544
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.small}};
1288
545
  font-weight: 300;
1289
- `,ii=t=>new RegExp("^#","i").test(t),ai=t=>({children:e,...n})=>{const{implementation:s,name:r}=t.get("$widget"),{href:o=""}=n;if(ii(o))return a.jsx(xt,{smooth:!0,to:o,children:e});const i=s.bindings.map(d=>d.replace(/\./g,"\\.")).join("|"),c=new RegExp(`^((http[s]?:)?//)?(${i})/([^\\s]+)`).exec(o);if(c&&c.length>=4){const d=c[4];if(s.widgets.get(d)&&!d.startsWith("blob?")&&!d.startsWith(r))return a.jsx(Wt,{widgetName:d,children:e})}return a.jsx("a",{...n,children:e})},ci=(t,e=[])=>({transform:{a:n=>{const{children:s,...r}=n,o=r["data-target"];if(o&&e.length){const u=e.find(({connection:c})=>c===o);if(u)return a.jsx(_t,{...u,children:s})}return ai(t)(n)}}});exports.AccordionListItem=Wo;exports.AnchorLink=xt;exports.Button=ie;exports.Checkbox=gs;exports.ColumnContext=pn;exports.ComponentNodeContext=wt;exports.ComponentPropertyContext=gn;exports.Confirm=_n;exports.ContainerContext=mn;exports.ConversationContext=xn;exports.DateFormats=Je;exports.DialogLink=_t;exports.DialogList=$o;exports.Drawer=Rn;exports.DrawerAnimationType=Nn;exports.DrawerList=jo;exports.Dropdown=Ot;exports.DropdownActions=Eo;exports.DropdownList=Mo;exports.Empty=On;exports.FavoriteButton=Kn;exports.Feedback=Ao;exports.Grid=rr;exports.GuideList=Fo;exports.Html=Tt;exports.Icon=be;exports.Input=ir;exports.ItemList=$e;exports.ItemTree=ar;exports.Lightbox=In;exports.Link=Ne;exports.List=Le;exports.Loader=Jn;exports.LoaderWrapper=Un;exports.Metadata=qn;exports.Modal=Wn;exports.NotFound=co;exports.NotificationList=ei;exports.Overlay=It;exports.Paragraph=Dt;exports.Portal=we;exports.RouteLink=Hn;exports.RoutingContext=yn;exports.SmallCaret=To;exports.StyledHeaderText=Do;exports.StyledListButton=Zn;exports.StyledText=xe;exports.SymbolBadge=V;exports.TabStop=mo;exports.Text=Ce;exports.TextLink=je;exports.Timestamp=Vt;exports.Tooltip=go;exports.TransitionComponent=vo;exports.Typography=ve;exports.WidgetLink=Wt;exports.WidgetOverlayOutlet=bo;exports.borderTabStyle=K;exports.browser=lt;exports.buttonCss=Sn;exports.contentBox=Nt;exports.convertToStringAttributes=D;exports.createEmptyComponent=us;exports.createReactComponent=wo;exports.defaultRenderInstructions=hn;exports.embeddedLinkMapper=rn;exports.filterCssProps=yt;exports.filterCssPropsStyle=on;exports.genericHashLink=an;exports.genericHtml=Ln;exports.guideRenderInstructions=ci;exports.headingElement=re;exports.imageLightboxRenderer=dn;exports.invertedHoverButton=Rt;exports.itemList=Ee;exports.linkTabStyle=En;exports.list=Ke;exports.loadingOpacity=Fn;exports.paddedBorderTabStyle=dt;exports.processHtmlString=un;exports.transitionComposer=Ae;exports.useAction=$s;exports.useArrowKeys=Ho;exports.useChildren=As;exports.useColumns=zs;exports.useComponent=Ps;exports.useComponentDescriptor=Ve;exports.useComponentNode=_e;exports.useComponentPlatform=de;exports.useContainer=H;exports.useContext=$n;exports.useConversation=Hs;exports.useDebounce=Io;exports.useDispatch=Is;exports.useEventListener=Z;exports.useEvents=kn;exports.useFavorites=Yn;exports.useHover=Bo;exports.useIsMounted=J;exports.useIsTabbing=jn;exports.useKeyPress=U;exports.useLayout=Bs;exports.usePrevious=Fe;exports.useProperties=Vs;exports.useRenderState=Ws;exports.useRouteData=St;exports.useRouter=jt;exports.useScroll=Et;exports.useSettings=Fs;exports.useToggle=Lt;exports.useTransitionEnd=Zs;exports.useUniqueMenu=Ze;exports.useWidgetEvent=Se;
546
+ `,Ge=e=>new RegExp("^#","i").test(e),Je=e=>({children:t,...a})=>{const{implementation:o,name:i}=e.get("$widget"),{href:r=""}=a;if(Ge(r))return n.jsx(s.AnchorLink,{smooth:!0,to:r,children:t});const l=o.bindings.map(m=>m.replace(/\./g,"\\.")).join("|"),c=new RegExp(`^((http[s]?:)?//)?(${l})/([^\\s]+)`).exec(r);if(c&&c.length>=4){const m=c[4];if(o.widgets.get(m)&&!m.startsWith("blob?")&&!m.startsWith(i))return n.jsx(s.WidgetLink,{widgetName:m,children:t})}return n.jsx("a",{...a,children:t})},Qe=(e,t=[])=>({transform:{a:a=>{const{children:o,...i}=a,r=i["data-target"];if(r&&t.length){const h=t.find(({connection:c})=>c===r);if(h)return n.jsx(P,{...h,children:o})}return Je(e)(a)}}});exports.AccordionListItem=Ie;exports.DialogLink=P;exports.DialogList=he;exports.DrawerList=fe;exports.DropdownActions=pe;exports.DropdownList=$e;exports.FavoriteButton=Y;exports.Feedback=ke;exports.GuideList=Be;exports.Loader=V;exports.LoaderWrapper=U;exports.Metadata=K;exports.NotificationList=qe;exports.SmallCaret=we;exports.StyledHeaderText=je;exports.StyledListButton=q;exports.guideRenderInstructions=Qe;exports.loadingOpacity=W;exports.useArrowKeys=Le;exports.useDebounce=Ne;exports.useFavorites=_;exports.useHover=Ce;Object.keys(s).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>s[e]})});