@telia-ace/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 +214 -226
  2. package/index.mjs +1640 -3129
  3. package/package.json +4 -4
package/index.js CHANGED
@@ -1,19 +1,19 @@
1
- "use strict";var jn=Object.defineProperty;var En=(t,e,n)=>e in t?jn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var b=(t,e,n)=>(En(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("@emotion/react"),a=require("react/jsx-runtime"),x=require("@emotion/styled"),f=require("react"),tt=require("react-transition-group"),Sn=require("react-dom"),Be=require("react-router-dom"),Ln=t=>t==="entering"||t==="entered",Rn=t=>t==="exiting"||t==="exited",G={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);"}},Mn=["slide-up","slide-down","slide-left","slide-right","scale"],$e={compose:(t="exited",e)=>{const{enter:n,exit:s}=e,r=n.transitionKeys.split(" "),o=Mn.indexOf(r[0])>-1?"transform":"opacity";if(Ln(t))return r&&r.length>0?j.css`
2
- ${r&&r.length>0&&r.map(u=>G[u]?G[u].in:"")}
3
- transition: ${o} ${n.duration}ms ${n.easing};
4
- `:"";const i=r&&r.length>0&&j.css`
5
- ${r.map(u=>G[u]?G[u].out:"")}
6
- `;if(Rn(t)){const u=s.transitionKeys.split(" ");return u&&u.length>0&&t==="exiting"?j.css`
7
- ${i};
8
- ${u.map(c=>G[c]?G[c].out:"")}
9
- transition: ${o} ${s.duration}ms ${s.easing};
10
- `:i}},composeViewTransition:(t,e,n)=>{if(e==="slide")return $e.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 $e.compose(t,{enter:{transitionKeys:"fade",duration:500},exit:{transitionKeys:"fade",duration:500}})},get:t=>G[t]};var qe=(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))(qe||{});const Ye=()=>{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=(m=>m.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 p=!!u&&(!!u.webstore||!!u.runtime);if(p)return"chrome";if(p&&navigator.userAgent.indexOf("Edg")!==-1)return"edge-chromium";if((p||d)&&c)return"blink"};function Nn(t){const e=[];return t.forEach(n=>{e.indexOf(n)===-1&&e.push(n)}),e}function Ue(t="",e=""){const n=t.split(" ").concat(e.split(" "));return Nn(n).join(" ").trim()}function On(t,e){if(t){if(typeof e=="string")return e;if(Array.isArray(e)){let n="";return e.forEach(s=>n=Ue(n,s)),n}}}function S(...t){let e="";return t.length&&t.forEach(n=>{typeof n=="string"?e=Ue(e,n):Array.isArray(n)?e=Ue(e,On(...n)):typeof n<"u"&&n!==null&&process.env.NODE_ENV!=="production"&&N.warn("appendClassNames: arguments either haveto be a string or [boolean, ...string[]]. Passed args:",...t)}),e}const be=(t,e,...n)=>typeof e=="string"?t(`[humany] ${e}`,...n):t(e,...n),ie=class{constructor(){b(this,"keys",[]);b(this,"log",(e,...n)=>this.lookup(e,()=>ie.log(...n)));b(this,"warn",(e,...n)=>this.lookup(e,()=>ie.warn(...n)));b(this,"error",(e,...n)=>this.lookup(e,()=>ie.error(...n)));b(this,"info",(e,...n)=>this.lookup(e,()=>ie.info(...n)))}lookup(e,n){this.keys.indexOf(e)===-1&&(this.keys.push(e),n())}};let N=ie;b(N,"log",(...e)=>be(console.log,...e)),b(N,"warn",(...e)=>be(console.warn,...e)),b(N,"error",(...e)=>be(console.error,...e)),b(N,"info",(...e)=>be(console.info,...e));const Ot=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?Ot(n):n;return e};function $t(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()}function Tn(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()}class Dn{constructor(e,n){b(this,"tasks",[]);b(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"&&N.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 Ce=new WeakMap;function Se(t,e=5e3,n=1e3){return Ce.has(t)||Ce.set(t,new Dn(e,n)),s=>new Promise((r,o)=>{const i=Ce.get(t);i.add(s,r,o,()=>{i.tasks.length||Ce.delete(t)})})}const jt=(t={})=>(Object.keys(t).forEach(e=>{(t[e]===null||typeof t[e]>"u")&&delete t[e]}),t),J=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);function X(){return J()+J()+"-"+J()+"-"+J()+"-"+J()+"-"+J()+J()+J()}const An=["string","number"],T=t=>Object.keys(t).reduce((e,n)=>{const s=typeof t[n]>"u"?"":t[n],r=typeof s;if(An.indexOf(r)>-1){const o=n.substring(0,5);o==="data-"||o==="aria-"?e[Tn(n)]=s.toString():n.substring(0,4)!=="css-"&&(e[n]=s.toString())}else e[n]=s;return e},{}),Pn=(t,e)=>t.get("seoConfiguration")?a.jsx(on,{...e}):null,Hn=t=>new RegExp("^#","i").test(t),Tt=t=>({children:e,...n})=>{const{implementation:s,name:r}=t.get("$widget"),{href:o=""}=n;if(Hn(o))return a.jsx(It,{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(kn,{widgetName:d,children:e})}return a.jsx("a",{...n,children:e})},nt=t=>{const e={};return Object.keys(t).forEach(n=>{n.indexOf("css-")>-1&&(e[n]=t[n])}),e},Dt=t=>{let e="";return Object.keys(nt(t)).forEach(n=>{n.indexOf("css-")>-1&&(e+=`${n.replace("css-","")}:${t[n]};`)}),j.css`
11
- ${e}
12
- `},At=(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})},fe=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 j.css`
13
- ${i} {
1
+ "use strict";var yt=Object.defineProperty;var bt=(e,t,n)=>t in e?yt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var _=(e,t,n)=>(bt(e,typeof t!="symbol"?t+"":t,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("@emotion/react"),b=require("@telia-ace/widget-utilities"),s=require("react/jsx-runtime"),y=require("@emotion/styled"),i=require("react"),de=require("react-transition-group"),He=require("@webprovisions/platform"),T=require("@telia-ace/widget-core"),vt=require("react-dom"),Ee=require("htmr"),re=require("@telia-ace/widget-routing"),ie=require("react-router-dom"),wt=e=>e==="entering"||e==="entered",kt=e=>e==="exiting"||e==="exited",W={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);"}},jt=["slide-up","slide-down","slide-left","slide-right","scale"],G={compose:(e="exited",t)=>{const{enter:n,exit:o}=t,r=n.transitionKeys.split(" "),a=jt.indexOf(r[0])>-1?"transform":"opacity";if(wt(e))return r&&r.length>0?w.css`
2
+ ${r&&r.length>0&&r.map(f=>W[f]?W[f].in:"")}
3
+ transition: ${a} ${n.duration}ms ${n.easing};
4
+ `:"";const c=r&&r.length>0&&w.css`
5
+ ${r.map(f=>W[f]?W[f].out:"")}
6
+ `;if(kt(e)){const f=o.transitionKeys.split(" ");return f&&f.length>0&&e==="exiting"?w.css`
7
+ ${c};
8
+ ${f.map(l=>W[l]?W[l].out:"")}
9
+ transition: ${a} ${o.duration}ms ${o.easing};
10
+ `:c}},composeViewTransition:(e,t,n)=>{if(t==="slide")return G.compose(e,{enter:{transitionKeys:n==="forth"?"slide-right":"slide-left",duration:500},exit:{transitionKeys:n==="forth"?"slide-left":"slide-right",duration:500}});if(t==="fade")return G.compose(e,{enter:{transitionKeys:"fade",duration:500},exit:{transitionKeys:"fade",duration:500}})},get:e=>W[e]};var ae=(e=>(e.Opera="opera",e.Chrome="chrome",e.Firefox="firefox",e.Safari="safari",e.Edge="edge",e.EdgeChromium="edge-chromium",e.Blink="blink",e.IE="internet-explorer",e))(ae||{});const ce=()=>{const{opr:e,opera:t,InstallTrigger:n,HTMLElement:o,safari:r,documentMode:a,StyleMedia:c,chrome:f,CSS:l}=window,u=!!e&&!!e.addons||!!t||navigator.userAgent.indexOf(" OPR/")>=0;if(u)return"opera";if(n)return"firefox";const d=(p=>p.toString()==="[object SafariRemoteNotification]")(!r||typeof r<"u"&&r.pushNotification);if(/constructor/i.test(o)||d)return"safari";const h=!!a;if(h)return"internet-explorer";if(!h&&c)return"edge";const m=!!f&&(!!f.webstore||!!f.runtime);if(m)return"chrome";if(m&&navigator.userAgent.indexOf("Edg")!==-1)return"edge-chromium";if((m||u)&&l)return"blink"},$t=["string","number"],S=e=>Object.keys(e).reduce((t,n)=>{const o=typeof e[n]>"u"?"":e[n],r=typeof o;if($t.indexOf(r)>-1){const a=n.substring(0,5);a==="data-"||a==="aria-"?t[b.kebabCase(n)]=o.toString():n.substring(0,4)!=="css-"&&(t[n]=o.toString())}else t[n]=o;return t},{}),Lt=(e,t)=>e.get("seoConfiguration")?s.jsx(Ge,{...t}):null,St=e=>new RegExp("^#","i").test(e),Ne=e=>({children:t,...n})=>{const{implementation:o,name:r}=e.get("$widget"),{href:a=""}=n;if(St(a))return s.jsx(We,{smooth:!0,to:a,children:t});const c=o.bindings.map(u=>u.replace(/\./g,"\\.")).join("|"),l=new RegExp(`^((http[s]?:)?//)?(${c})/([^\\s]+)`).exec(a);if(l&&l.length>=4){const u=l[4];if(o.widgets.get(u)&&!u.startsWith("blob?")&&!u.startsWith(r))return s.jsx(lt,{widgetName:u,children:t})}return s.jsx("a",{...n,children:t})},fe=e=>{const t={};return Object.keys(e).forEach(n=>{n.indexOf("css-")>-1&&(t[n]=e[n])}),t},Te=e=>{let t="";return Object.keys(fe(e)).forEach(n=>{n.indexOf("css-")>-1&&(t+=`${n.replace("css-","")}:${e[n]};`)}),w.css`
11
+ ${t}
12
+ `},De=(e,t)=>{let n="";const o=()=>{n=""},r=d=>{const h=document.getElementById(n);return h!==null?(d(h),o(),!0):!1},a=d=>(d.preventDefault(),o(),e.onClick&&e.onClick(d),typeof e.to=="string"&&(n=e.to.split("#").slice(1).join("#")),n!==""&&r(e.scroll||(h=>e.smooth?h.scrollIntoView({behavior:"smooth"}):h.scrollIntoView())),!1),{scroll:c,smooth:f,to:l,...u}=e;return t==="a"&&(u.href="javascript:;"),s.jsx(t,{...u,onClick:a,children:e.children})},P=e=>(t,n)=>{let o=t,r="";if(["h1","h2","h3","h4","h5","h6"].includes(t))o=t;else{const f=t.match(/h1|h2|h3|h4|h5|h6/);if(f!=null&&f[0]){o=f[0];const[l]=t.split(o);r=l}}const c=((f,l,u)=>u[f]?`${l}${u[f]}`:`${l}${f}`)(o,r,e.theme.typographyVariantMapping||{});return w.css`
13
+ ${c} {
14
14
  ${n}
15
15
  }
16
- `};var Bn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Pt(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 Ht={exports:{}};(function(t,e){(function(n,s){t.exports=s(f)})(Bn,function(n){function s(h,p,m,g){return p===void 0&&(p={}),Object.keys(p).reduce(function(y,v){if(/^on.*/.test(v))return y;var k=v;/^(data|aria)-/.test(v)||m.filter(function(B){return B instanceof RegExp?B.test(v):B===v}).length===0&&(k=r(v));var $,R,w=g(h,k);if(w.name==="style")y[w.name]=($=p.style,R={},$.split(";").filter(function(B){return B.trim()!==""}).forEach(function(B){var O,W=B.split(":");if(W.length>1){var Q=function(D){return/^-ms-/.test(D)&&(D=D.substr(1)),D.startsWith("--")?D:r(D)}(W[0].trim()),q=(O=W.slice(1).join(":").trim(),/^\d+$/.test(O)?Number(O):O.replace(/'/g,'"'));R[Q]=q}}),R);else{var E=p[v],I=E===""||String(E).toLowerCase()===k.toLowerCase();y[w.name]=w.isBoolean?I:E}return y},{})}function r(h){return h.replace(/(-|:)(.)/g,function(p,m,g){return g.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,p){var m=i[p],g=document.createElement(h);if(m)return{name:Array.isArray(m)?m[0]:m,isBoolean:c(g,Array.isArray(m)?m[1]||p:m)};for(var y in g)if(y.toLowerCase()===p.toLowerCase())return{name:y,isBoolean:c(g,y)};return{name:p,isBoolean:c(g,p)}}function c(h,p){return h.setAttribute(p,""),h[p]===!0||d.indexOf(p)>-1}var d=["itemScope"];function l(h,p,m,g){g===void 0&&(g=null);var y=m[h],v=m._;return y?n.createElement(y,p,g):v?v(h,p,g):n.createElement(h,p,g)}return function(h,p){if(p===void 0&&(p={}),typeof h!="string")throw new TypeError("Expected HTML string");var m=document.createElement("div");m.innerHTML=h.trim();var g=Array.from(m.childNodes).map(function(y,v){return function k($,R,w){var E=w.transform||{},I=w.preserveAttributes||[],B=w.dangerouslySetChildren||["style"],O=E._;if($.nodeType===8)return null;if($.nodeType===3){var W=$.textContent;return O?O(W):W}for(var Q={},q=$.attributes,D=0;D<q.length;D++)Q[q[D].name]=q[D].value;Q.key=R.toString();var _=$.tagName.toLowerCase(),de=s(_,Q,I,u),ge=Array.from($.childNodes).map(function(Y,re){return o.indexOf(_)>-1&&Y.nodeType===3&&(Y.textContent=Y.textContent.trim(),Y.textContent==="")?null:k(Y,R+"."+re,w)}).filter(Boolean);if(B.indexOf(_)>-1){var se=$.innerHTML;return se&&(_!=="style"&&_!=="script"&&(se=se.replace(/"/g,"&quot;")),de.dangerouslySetInnerHTML={__html:se.trim()}),l(_,de,E)}var ye=ge.length===0?null:ge;return l(_,de,E,ye)}(y,String(v),p)}).filter(Boolean);return g.length===1?g[0]:g}})})(Ht);var Vn=Ht.exports;const Et=zn(Vn);function Bt(t,e){return e?Et(t,e):Et(t)}const zt=t=>e=>a.jsx(yn,{attrs:e,htmlBody:t}),Vt=(t,e)=>({transform:{a:Tt(t),img:zt(e)}}),It=t=>At(t,"a"),pe=f.forwardRef(({className:t,children:e,...n},s)=>a.jsx(In,{type:"button",className:S(t,"humany-button"),...T(n),ref:s,children:e})),In=x.button`
16
+ `};function Be(e,t){return t?Ee(e,t):Ee(e)}const ze=e=>t=>s.jsx(st,{attrs:t,htmlBody:e}),Ve=(e,t)=>({transform:{a:Ne(e),img:ze(t)}}),We=e=>De(e,"a"),K=i.forwardRef(({className:e,children:t,...n},o)=>s.jsx(Rt,{type:"button",className:b.appendClassNames(e,"humany-button"),...S(n),ref:o,children:t})),Rt=y.button`
17
17
  -webkit-appearance: button;
18
18
  text-transform: none;
19
19
  overflow: visible;
@@ -26,10 +26,8 @@
26
26
  line-height: normal;
27
27
  margin: 0;
28
28
  padding: 0;
29
- `,Wn=({onChange:t=()=>{},onEnter:e=()=>{},className:n,...s})=>a.jsx("input",{className:S(n,"humany-checkbox"),onKeyDown:r=>{r.key==="Enter"&&e(r)},onChange:r=>t(r.target.value,r.currentTarget.checked),...T(s)}),ze=new WeakMap;function _n(){return t=>(ze.has(t)||ze.set(t,{}),ze.get(t))}const Ve=(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}},oe=t=>{const e=t.container||t;return{info:(n,...s)=>Ve(e,"info",n,...s),warn:(n,...s)=>Ve(e,"warning",n,...s),error:(n,...s)=>Ve(e,"error",n,...s)}},M=_n(),st=(()=>{let t=0;return()=>++t})(),rt=(t,e,n)=>{const s=M(t).touchQueue.get(e);s&&s.forEach(r=>{r(n,t)})};class Zn{constructor(e,n,s,r){this.key=e,this.factory=n,this.parent=s,this.container=r,this.id=st(),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,rt(this.container,this.key,n),n))}return this.value}}class Fn{constructor(e,n,s,r){this.key=e,this.value=n,this.parent=s,this.container=r,this.id=st(),this.async=!1,this.resolved=!1,this.constructed=!0,this.resolve=()=>(this.resolved=!0,rt(this.container,this.key,this.value),this.value)}}class Kn{constructor(e,n,s,r){this.key=e,this.value=n,this.parent=s,this.container=r,this.id=st(),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 rt(this.container,this.key,this.value),o}}}class ot{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"&&oe(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 Zn(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"&&oe(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 Kn(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"&&oe(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 Fn(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"&&oe(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"&&oe(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 ot(e,n,this);return M(this).children.push(s),s}}var je=(t=>(t.Implementation="implementation",t.Widget="widget",t))(je||{}),ee=(t=>(t.Pre="pre",t.Post="post",t))(ee||{});const qn=(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 St(t,e){return typeof t>"u"?e:t}class Yn{constructor(e={}){this.part=e}createCommand(e,n,s){let r;typeof n=="function"?r={scope:je.Widget,stage:ee.Post,defaultArgs:void 0,handlerResolver:n}:r={scope:St(n.scope,je.Widget),stage:St(n.stage,ee.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 Le=t=>{const e=new Yn({});return t(e),e.get()};Le(t=>{t.createCommand("types.register",{scope:je.Implementation,stage:ee.Pre},e=>(n,s)=>{e.container.get("$types")[n]=s}).createCommand("type",{stage:ee.Pre},e=>n=>{e.container.register("$type",n)}).createCommand("settings",{stage:ee.Pre,defaultArgs:[null]},e=>n=>{e.events.dispatch("settings:change",n,{bubbles:!0}),e.container.register("$settings",n)}).createCommand("plugin",{stage:ee.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"),p=h?h(c||{},i,e.container,u):s;try{const m=qn(i,u,o,p);o.get("$plugins").push(m),l&&m.invoke("initialize",null)}catch(m){oe(e).warn("Error when initializing plugin",m)}};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 Wt=(t=>(t.Activating="activating",t.Loading="loading",t.Activated="activated",t.Deactivating="deactivating",t.Deactivated="deactivated",t))(Wt||{});const _t=f.createContext(new ot),Zt=f.createContext(1),it=f.createContext({id:"",type:"",name:"",branch:""}),Ft=f.createContext({}),Kt=f.createContext(null),qt=f.createContext(null),Re=()=>f.useContext(it),A=()=>f.useContext(_t),Un=(t,e)=>{const n=Re().id,s=A();return(r,o)=>{(e||s).getAsync("actionResolver").then(i=>{i.action(t||n,r,o)})}},Yt=t=>{const e=[];return[(s,r)=>{e.push(t.subscribe(s,r))},()=>{e.forEach(s=>{s()})}]};class Me{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 Jn(this.platform,this)}}class Ut{constructor(e,n,s){b(this,"actions");b(this,"subscribe");b(this,"unsubscribe");this.platform=e,this.node=n,this.actions=new at(e,new Me(e).withId(n.id),s);const[r,o]=Yt(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 Jn{constructor(e,n,s=!0){b(this,"actions");b(this,"removes",[]);this.platform=e,this.target=n,this.clearOnDispose=s,this.actions=new at(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 Xn=(t,e,n)=>{const s=t.concat(),r=(o,i,u)=>{let c=!0;if(s.length){const d=s.shift(),l=(h,p)=>(c=!1,r(h,Object.assign({},i,p),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 at{constructor(e,n,s){b(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 Ut(this.platform,d,this.ns);return Xn(c,n,l).then(h=>{const{data:p={},options:m,cancelled:g}=h;return Promise.resolve(g?{}:i.fn(p,m,l)).then(y=>{r[d.id]=y})})}))})).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())}}Le(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 Lt{constructor(e,n){b(this,"id");b(this,"type");b(this,"name");b(this,"parent");b(this,"tags",[]);b(this,"children",{});b(this,"changesets",[]);b(this,"attributes");b(this,"mountCount",0);this.events=e,this.id=X(),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"&&N.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 Jt=(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);Jt(i,e,n)}},ct=(t,e,n)=>{if(n(t)!==!0){const s=e[t.id]||"default",r=t.children[s];Jt(r,e,n)}},Ie=(t,e)=>{const n=[];return ct(t,e,s=>{n.push(s)}),n},Qn=(t,e,n)=>{let s;return ct(t,e,r=>{if(n(r))return s=r,!0}),s};class Gn{constructor(e,n,s){b(this,"all",[]);b(this,"visible",[]);b(this,"detached",[]);this.root=e,this.switches=n,s.subscribe("components:node-appended",(r,o)=>{this.all.push(o.node),this.visible=Ie(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=Ie(e,n)}),s.subscribe("components:node-switched",(r,o)=>{this.visible=Ie(e,n)})}query(e={}){const n=[];return ct(this.root,this.switches,s=>{Object.keys(e).every(o=>e[o]===s[o])&&n.push(s)}),n}get(e){return Qn(this.root,this.switches,n=>n.id===e)||this.detached.find(n=>n.id===e)}}class es{constructor(){b(this,"handlers",new Map)}add(e,n){this.handlers.set(e,n)}get(e){return this.handlers.get(e)}}const ts=t=>{let e=t,n=0;for(;e.parent;)n=n+1,e=e.parent;return n},ns=t=>t.map(([n,s])=>[ts(n),n,s]).sort(([n],[s])=>n-s).map(([,n,s])=>[n,s]),We=t=>t instanceof Date?!1:t&&typeof t=="object"&&!Array.isArray(t),Z=(t,...e)=>{if(!e.length)return t;const n=e.shift();if(We(t)&&We(n))for(const s in n)We(n[s])?(t[s]||Object.assign(t,{[s]:{}}),Z(t[s],n[s])):Object.assign(t,{[s]:n[s]});return Z(t,...e)},ss=(t,e)=>!t||t==="all"?!0:t.some(n=>e.indexOf(n)>-1),rs=(t,e)=>{let n=[],s=[],r;const o=()=>{process.env.NODE_ENV!=="production"&&console.time("state-processor.flush");const u=new Map,c=ns(n.map((l,h)=>[l,s[h]])),d=(l,h)=>{var R;const p=u.get(l)||{},m=h.context&&!p.context,g=h.properties&&!p.properties,y=h.layout&&!p.layout;u.set(l,{context:p.context||m,properties:p.properties||g,layout:p.layout||y}),g&&(l.attributes.properties={}),y&&(l.attributes.layout={}),m&&(l.attributes.context=Z({},(R=l.parent)==null?void 0:R.attributes.context));const v=[],k=[],$=[];if(l.changesets.forEach(w=>{const[E,I]=w;ss(I.breakpoints,t.breakpoints)&&(g&&(typeof E.properties=="function"?v.push(E.properties):Z(l.attributes.properties,E.properties)),y&&(typeof E.layout=="function"?k.push(E.layout):Z(l.attributes.layout,E.layout)),m&&(typeof E.context=="function"?$.push(E.context):Z(l.attributes.context,E.context)))}),v.forEach(w=>{Z(l.attributes.properties,w(l.attributes.properties))}),k.forEach(w=>{Z(l.attributes.layout,w(l.attributes.layout))}),$.forEach(w=>{Z(l.attributes.context,w(l.attributes.context))}),m||h.recursive){const w=t.getBranch(l),E=h.recursive?h:{context:!!m};l.getChildren(w).forEach(I=>{d(I,E)})}};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 Xt{constructor(e,n={}){b(this,"events");b(this,"breakpoints",[]);b(this,"nodes");b(this,"actionsState",{handlers:[],watchers:[]});b(this,"switches",{});b(this,"changesets",[]);b(this,"subscriptions",[]);b(this,"processNode");b(this,"customComponentHandler",new es);this.providers=n,this.events=e.events.createChild(this);const s=new Lt(this.events,"root");s.name=`root-${e.name}`,this.nodes=new Gn(s,this.switches,this.events);const r=this.processNode=rs(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,[p,m]=d;l.match(i.node)&&(p.properties&&h.push(u.writeProperties(p.properties,m)),p.context&&h.push(u.writeContext(p.context,m)),p.layout&&h.push(u.writeLayout(p.layout,m)))})})),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 Lt(this.events,e);return n.detached&&this.nodes.detached.push(s),s}components(){return new Me(this)}actions(e,n){return new at(this,e,n)}write(e){const{provider:n,target:s,attributes:r,options:o={},removable:i}=e,u=e.key||X(),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 os=(t,e)=>({id:t.id,type:t.type,name:t.name,branch:e||"default"}),is=(t,e,n,s=X(),r={})=>t.getAsync("components").then(o=>{let i;if(typeof e=="string"){const d=new Me(o);d.ofType(e),i=d}else i=e;const u={},c=d=>{const l=u[d.id];return l?Promise.resolve(l.controller):Xt.getInstance(t).then(h=>new Ut(h,d,s))};o.events.subscribe("components:node-enter",(d,{node:l})=>{i.match(l)&&c(l).then(h=>{Promise.resolve(n(h)).then(p=>{u[l.id]={dispose:p,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 he=(t=>(t.open="open",t.closed="closed",t.hidden="hidden",t))(he||{});const Ne=t=>{const e=f.useContext(it),n=ne(),[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},V=()=>{const t=f.useRef(!1);return f.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),t},ne=t=>{const e=A(),[n,s]=f.useState(null),r=V();return f.useEffect(()=>{Xt.getInstance(t||e).then(o=>{r.current&&s(o)})},[r]),n},as=()=>{const t=Ne(),e=ne(),[n,s]=f.useState([]),r=V(),o=f.useCallback(i=>{if(e&&r.current&&i){const u=e.getBranch(i),c=i.getChildren(u).map(d=>os(d));s(c)}},[r,e,s,t]);return f.useEffect(()=>{t&&o(t)},[t,e]),f.useEffect(()=>{if(e){const[i,u]=Yt(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},cs=()=>f.useContext(Zt),ls=(t,e)=>{const n=Re(),s=A(),[r,o]=f.useState(void 0),i=V(),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},Qt=t=>{const e=Ne(t),n=ne(),[s,r]=f.useState({}),o=V();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},us=()=>f.useContext(qt),ds=()=>{const t=ne(),e=Re(),[n,s]=f.useState([]),[r,o]=f.useState();return f.useEffect(()=>{if(t&&e){const i=new Me(t).withId(e.id),u=t.actions(i,e.type||X());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])},Gt=t=>{const e=A(),{events:n}=(t||e).get("$widget");return n},hs=()=>{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},te=(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},fs=t=>{const e=Ne(t),n=ne(),[s,r]=f.useState({}),o=V();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},lt=t=>{const e=f.useRef();return f.useEffect(()=>{e.current=t}),e.current},ps=()=>f.useContext(Ft),ms=t=>{const[e,n]=f.useState(),s=A(),r=V();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"?he.open:he.closed);break;case"hide":r.current&&n(he.hidden)}})}),()=>{o&&o()}},[r]),e},ut=()=>f.useContext(Kt),gs=t=>{const e=A(),n=ut(),[s,r]=f.useState({name:"",params:{}}),o=V();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:p}=l;jt(p),r({name:h,params:p})}})},[o,t,e]),f.useEffect(()=>{if(n&&n.history&&o.current){const i=n.getRouteData(),{name:u,params:c}=i;jt(c),r({name:u,params:c})}},[n,o]),s},dt=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 p=h.scrollTop,m=n.current-l<0?"up":"down",g=p<=0&&m==="up",y=p>=h.scrollHeight-h.offsetHeight&&m==="down";(g||y)&&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?[ys,e]:["",e]},ys=`
32
- overflow-y: ${Ye()===qe.Chrome||Ye()===qe.EdgeChromium?"overlay":"auto"};
29
+ `,Et=({onChange:e=()=>{},onEnter:t=()=>{},className:n,...o})=>s.jsx("input",{className:b.appendClassNames(n,"humany-checkbox"),onKeyDown:r=>{r.key==="Enter"&&t(r)},onChange:r=>e(r.target.value,r.currentTarget.checked),...S(o)}),Ze=i.createContext(new He.Container),Ie=i.createContext(1),he=i.createContext({id:"",type:"",name:"",branch:""}),Oe=i.createContext({}),Ae=i.createContext(null),Fe=i.createContext(null),Q=()=>i.useContext(he),R=()=>i.useContext(Ze),Mt=(e,t)=>{const n=Q().id,o=R();return(r,a)=>{(t||o).getAsync("actionResolver").then(c=>{c.action(e||n,r,a)})}},J=e=>{const t=i.useContext(he),n=I(),[o,r]=i.useState();return i.useEffect(()=>{if((e||t.id)&&n){const a=n.nodes.get(e||t.id);r(a)}},[e,t.id,n]),o},N=()=>{const e=i.useRef(!1);return i.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e},I=e=>{const t=R(),[n,o]=i.useState(null),r=N();return i.useEffect(()=>{T.ComponentPlatform.getInstance(e||t).then(a=>{r.current&&o(a)})},[r]),n},Ht=()=>{const e=J(),t=I(),[n,o]=i.useState([]),r=N(),a=i.useCallback(c=>{if(t&&r.current&&c){const f=t.getBranch(c),l=c.getChildren(f).map(u=>T.asDescriptor(u));o(l)}},[r,t,o,e]);return i.useEffect(()=>{e&&a(e)},[e,t]),i.useEffect(()=>{if(t){const[c,f]=T.createEventSubscriber(t.events);return c("components:set-layout",(l,u)=>{(e===u.node.parent||u.node.parent===t.nodes.root)&&a(u.node.parent)}),c("components:node-appended",(l,u)=>{(e===u.node.parent||u.node.parent===t.nodes.root)&&a(u.node.parent)}),c("components:node-removed",(l,{parentNode:u})=>{(u===e||u===t.nodes.root)&&a(u)}),()=>{f()}}},[e,t,a]),n},Nt=()=>i.useContext(Ie),Tt=(e,t)=>{const n=Q(),o=R(),[r,a]=i.useState(void 0),c=N(),f=e||n.type||"";return i.useEffect(()=>{if(f){let l;return(t||o).getAsync("componentResolver").then(u=>{if(c.current){const d=u.getComponent(f);a(d)}l=u.registerResolver(f,d=>{c.current&&a(d)})}),()=>{l&&l()}}},[c,f,t,o]),r},Pe=e=>{const t=J(e),n=I(),[o,r]=i.useState({}),a=N();return i.useEffect(()=>{t&&a.current&&r(t.attributes.context)},[a,t]),i.useEffect(()=>{if(n){const c=n.events.subscribe("components:context-changed",(f,l)=>{t===l.node&&a.current&&r(l.node.attributes.context)});return()=>{c()}}},[a,n,t]),o},Dt=()=>i.useContext(Fe),Bt=()=>{const e=I(),t=Q(),[n,o]=i.useState([]),[r,a]=i.useState();return i.useEffect(()=>{if(e&&t){const c=new T.ComponentQuery(e).withId(t.id),f=e.actions(c,t.type||b.uuid());a(f),n!==null&&(n.forEach(l=>{f.dispatch(l.key,l.data).then(u=>l.resolve(u)).catch(u=>l.reject(u))}),o(null))}},[e,t.id]),(c,f)=>n!==null?new Promise((l,u)=>{n.push({key:c,data:f,resolve:l,reject:u})}):r.dispatch(c,f)},H=(e,t,n=window,o=()=>!0)=>{const r=i.useRef(()=>{});i.useEffect(()=>{r.current=t},[t]),i.useEffect(()=>{if(!(n&&o()))return;const c=f=>r.current(f);return n.addEventListener(e,c),()=>{n.removeEventListener(e,c)}},[e,n])},Ke=e=>{const t=R(),{events:n}=(e||t).get("$widget");return n},zt=()=>{const[e,t]=i.useState(!1);return i.useEffect(()=>{const n=()=>{t(!1)},o=r=>{r.keyCode===9&&t(!0)};return window.addEventListener("keydown",o),window.addEventListener("click",n),()=>{window.removeEventListener("keydown",o),window.removeEventListener("click",n)}},[]),e},Z=(e,t)=>{const[n,o]=i.useState(!1),r=i.useCallback(c=>{const{key:f}=c;f===e&&(o(!0),t&&t(c))},[o,t]),a=i.useCallback(({key:c})=>{c===e&&o(!1)},[o]);return H("keydown",r,window),H("keyup",a,window),n},Vt=e=>{const t=J(e),n=I(),[o,r]=i.useState({}),a=N();return i.useEffect(()=>{t&&a.current&&r(t.attributes.layout)},[t,a]),i.useEffect(()=>{if(n){const c=n.events.subscribe("components:layout-changed",(f,l)=>{t===l.node&&a.current&&r(l.node.attributes.layout)});return()=>{c()}}},[n,a,t]),o},me=e=>{const t=i.useRef();return i.useEffect(()=>{t.current=e}),t.current},Wt=()=>i.useContext(Oe),Zt=e=>{const[t,n]=i.useState(),o=R(),r=N();return i.useEffect(()=>{let a;const c=(e||o).get("$widget");if(!c)return;const{name:f,invoke:l}=c;return l("renderState").then(u=>{r.current&&n(u)}),(e||o).getAsync("actionResolver").then(u=>{a=u.subscribe(f,(d,h)=>{switch(h){case"close":case"open":r.current&&n(h==="open"?T.WidgetRenderState.open:T.WidgetRenderState.closed);break;case"hide":r.current&&n(T.WidgetRenderState.hidden)}})}),()=>{a&&a()}},[r]),t},pe=()=>i.useContext(Ae),It=e=>{const t=R(),n=pe(),[o,r]=i.useState({name:"",params:{}}),a=N();return i.useEffect(()=>{const c=(e||t).get("$widget");if(!c)return;const{events:f}=c;return f.subscribe("router:change",(u,{next:{routeData:d}})=>{if(a.current){const{name:h,params:m}=d;b.removeNullAndUndefinedValues(m),r({name:h,params:m})}})},[a,e,t]),i.useEffect(()=>{if(n&&n.history&&a.current){const c=n.getRouteData(),{name:f,params:l}=c;b.removeNullAndUndefinedValues(l),r({name:f,params:l})}},[n,a]),o},ge=e=>{const t=i.useRef(),n=i.useRef(0);let o;const r=i.useCallback(()=>{var u;(u=t.current)==null||u.classList.add("humany-scrolling"),clearTimeout(o),o=setTimeout(()=>{var d;(d=t.current)==null||d.classList.remove("humany-scrolling")},500)},[t]),a=i.useCallback(u=>{n.current=u.touches[0].clientY},[t]),c=u=>f(u)?u===t.current?u:null:u.parentElement?c(u.parentElement):null,f=u=>u.scrollWidth>u.clientWidth||u.scrollHeight>u.clientHeight,l=i.useCallback(u=>{if(!u.cancelable)return;const d=u.touches[0].clientY,h=c(u.target);if(!h)return;const m=h.scrollTop,p=n.current-d<0?"up":"down",C=m<=0&&p==="up",g=m>=h.scrollHeight-h.offsetHeight&&p==="down";(C||g)&&u.preventDefault(),n.current=d},[t,n]);return H("scroll",r,t.current,()=>t.current&&e),H("touchstart",a,t.current,()=>t.current&&e),H("touchmove",l,t.current,()=>t.current&&e),e?[Ot,t]:["",t]},Ot=`
30
+ overflow-y: ${ce()===ae.Chrome||ce()===ae.EdgeChromium?"overlay":"auto"};
33
31
  overflow-x: hidden;
34
32
  -ms-overflow-style: none; /* IE 10+ */
35
33
  scrollbar-width: thin; /* Firefox */
@@ -56,30 +54,30 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
56
54
  background-color: #7F7F7F;
57
55
  }
58
56
  }
59
- `,vs=()=>{const[t,e]=f.useState(null),n=A(),s=V();return f.useEffect(()=>{n.get("settings").then(r=>{s.current&&e(r)})},[s]),t},ht=(t=!1)=>{const[e,n]=f.useState(t),s=f.useCallback(r=>{n(typeof r=="boolean"?r:o=>!o)},[]);return[e,s]},xs=t=>{const e=A(),n=ne(),s=e.get("widgetDOMElement"),[r,o]=f.useState(null),[i,u]=f.useState(null),c=V();f.useEffect(()=>{if(n&&c.current){const l=n.nodes.all.find(p=>p.name==="root-area"),h=n.nodes.all.find(p=>p.type==="view");if(!(h!=null&&h.attributes.properties.animation)&&!(l!=null&&l.attributes.properties.animation))t();else{const p=(y="")=>s==null?void 0:s.querySelector(`[data-node-id="${y}"]`),m=p(h==null?void 0:h.id);m&&o(m);const g=p(l==null?void 0:l.id);g&&u(g)}}},[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)},me=(t,e,n=[],s)=>{const r=Gt(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)},Oe=(t,e)=>{const n=me("widget:menu-toggled",(s,r)=>{r!==t&&e()});return()=>n(t)},Te=f.forwardRef(({className:t,children:e,...n},s)=>a.jsx("span",{ref:s,className:S(t,"humany-text"),...T(n),children:e})),ft=t=>j.css`
57
+ `,At=()=>{const[e,t]=i.useState(null),n=R(),o=N();return i.useEffect(()=>{n.get("settings").then(r=>{o.current&&t(r)})},[o]),e},xe=(e=!1)=>{const[t,n]=i.useState(e),o=i.useCallback(r=>{n(typeof r=="boolean"?r:a=>!a)},[]);return[t,o]},Ft=e=>{const t=R(),n=I(),o=t.get("widgetDOMElement"),[r,a]=i.useState(null),[c,f]=i.useState(null),l=N();i.useEffect(()=>{if(n&&l.current){const d=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)&&!(d!=null&&d.attributes.properties.animation))e();else{const m=(g="")=>o==null?void 0:o.querySelector(`[data-node-id="${g}"]`),p=m(h==null?void 0:h.id);p&&a(p);const C=m(d==null?void 0:d.id);C&&f(C)}}},[n,t,l]);const u=i.useCallback(d=>{l.current&&(d.target===r||d.target===c)&&e()},[e,l,r,c]);H("transitionend",u,r),H("transitionend",u,c)},Y=(e,t,n=[],o)=>{const r=Ke(o);return i.useEffect(()=>{if(r){const a=r.subscribe(e,t);return()=>{a()}}},[r].concat(n)),a=>r==null?void 0:r.dispatch(e,a)},ee=(e,t)=>{const n=Y("widget:menu-toggled",(o,r)=>{r!==e&&t()});return()=>n(e)},te=i.forwardRef(({className:e,children:t,...n},o)=>s.jsx("span",{ref:o,className:b.appendClassNames(e,"humany-text"),...S(n),children:t})),Ce=e=>w.css`
60
58
  display: flex;
61
59
  justify-content: center;
62
60
  flex-direction: column;
63
61
  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
- `,en=t=>{var e,n,s;return j.css`
62
+ border-radius: ${e.theme.borderRadius};
63
+ border: ${e.theme.border};
64
+ box-shadow: ${e.theme.boxShadow||"none"};
65
+ ${e["data-loading"]&&"min-height: 150px;"}
66
+ `,Ye=e=>{var t,n,o;return w.css`
69
67
  cursor: pointer;
70
68
  text-align: center;
71
69
  border: none;
72
70
  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
- `},bs=t=>{var i;const{primaryColor:e,secondaryColor:n,active:s,theme:r,disabled:o}=t;return j.css`
78
- ${en(t)}
79
- border: 1px solid ${s?n:e};
80
- background-color: ${s?e:n};
81
-
82
- color: ${s?n:e};
71
+ padding: ${(t=e.theme.sizes)==null?void 0:t.normal};
72
+ border-radius: ${e.theme.borderRadius};
73
+ font-family: ${(n=e.theme.fonts)==null?void 0:n.type};
74
+ font-size: ${(o=e.theme.fonts)==null?void 0:o.normal};
75
+ `},Pt=e=>{var c;const{primaryColor:t,secondaryColor:n,active:o,theme:r,disabled:a}=e;return w.css`
76
+ ${Ye(e)}
77
+ border: 1px solid ${o?n:t};
78
+ background-color: ${o?t:n};
79
+
80
+ color: ${o?n:t};
83
81
  transition: background-color 200ms ease-out, color 200ms ease-out;
84
82
 
85
83
  span,
@@ -87,13 +85,13 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
87
85
  p,
88
86
  a {
89
87
  transition: color 200ms ease-out;
90
- color: ${s?n:e};
91
- font-size: ${(i=r.fonts)==null?void 0:i.normal};
88
+ color: ${o?n:t};
89
+ font-size: ${(c=r.fonts)==null?void 0:c.normal};
92
90
  }
93
91
 
94
- ${!o&&j.css`
92
+ ${!a&&w.css`
95
93
  &:hover {
96
- background-color: ${e};
94
+ background-color: ${t};
97
95
  color: ${n};
98
96
 
99
97
  span,
@@ -105,46 +103,46 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
105
103
  }
106
104
 
107
105
  &:focus-visible {
108
- ${F(t)};
106
+ ${D(e)};
109
107
  }
110
108
  `}
111
- `},F=t=>{var e,n,s;return j.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};
109
+ `},D=e=>{var t,n,o;return w.css`
110
+ outline: ${(t=e.theme.accessibility)==null?void 0:t.border};
111
+ color: ${(o=(n=e.theme.accessibility)==null?void 0:n.colors)==null?void 0:o.inactiveText};
114
112
  border-color: transparent;
115
- `},tn=t=>j.css`
116
- ${F(t)}
113
+ `},qe=e=>w.css`
114
+ ${D(e)}
117
115
  text-decoration: underline;
118
- `,Cs=t=>{var e;return j.css`
119
- ${F(t)}
120
- outline-offset: ${(e=t.theme.sizes)==null?void 0:e.small};
121
- `},pt=x(pe)`
116
+ `,Kt=e=>{var t;return w.css`
117
+ ${D(e)}
118
+ outline-offset: ${(t=e.theme.sizes)==null?void 0:t.small};
119
+ `},ye=y(K)`
122
120
  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}};
121
+ top: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.normal}};
122
+ right: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.normal}};
125
123
  z-index: 1;
126
124
 
127
125
  svg {
128
- stroke: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
126
+ stroke: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
129
127
  }
130
128
 
131
129
  &:focus-visible {
132
- ${F}
133
- padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}};
130
+ ${D}
131
+ padding: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}};
134
132
  height: 15px;
135
133
  box-sizing: content-box;
136
134
  }
137
- `,Je=x(Te)`
138
- font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
135
+ `,le=y(te)`
136
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
139
137
  font-weight: normal;
140
138
  line-height: 1.2em;
141
- color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
142
- `,nn=t=>{var e;return j.css`
139
+ color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
140
+ `,Ue=e=>{var t;return w.css`
143
141
  padding: 0;
144
142
  margin: 0;
145
143
  list-style: none;
146
144
  > li {
147
- margin: 0 0 ${(e=t.theme.sizes)==null?void 0:e.normal};
145
+ margin: 0 0 ${(t=e.theme.sizes)==null?void 0:t.normal};
148
146
  white-space: nowrap;
149
147
  text-overflow: ellipsis;
150
148
  min-width: 0;
@@ -158,24 +156,24 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
158
156
  > li:last-of-type {
159
157
  margin: 0;
160
158
  }
161
- `},ws=t=>{var e,n,s,r;return j.css`
159
+ `},Yt=e=>{var t,n,o,r;return w.css`
162
160
  > div {
163
- ${fe(t)("> h1",j.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};
161
+ ${P(e)("> h1",w.css`
162
+ margin: 0 0 ${(t=e.theme.sizes)==null?void 0:t.normal};
163
+ font-size: ${(n=e.theme.fonts)==null?void 0:n.medium};
166
164
  font-weight: normal;
167
165
  line-height: 1.8em;
168
- color: ${(s=t.theme.colors)==null?void 0:s.text};
166
+ color: ${(o=e.theme.colors)==null?void 0:o.text};
169
167
  `)}
170
168
  }
171
169
  > ul {
172
- ${nn(t)}
170
+ ${Ue(e)}
173
171
  }
174
- ${fe(t)("h1",j.css`
172
+ ${P(e)("h1",w.css`
175
173
  display: flex;
176
174
  align-items: center;
177
175
  i {
178
- margin: 7px ${(r=t.theme.sizes)==null?void 0:r.normal} 0 0;
176
+ margin: 7px ${(r=e.theme.sizes)==null?void 0:r.normal} 0 0;
179
177
  width: 24px;
180
178
  display: inline-block;
181
179
  vertical-align: text-bottom;
@@ -185,11 +183,11 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
185
183
  text-align: center;
186
184
  }
187
185
  `)}
188
- `},ks=t=>{var e,n,s,r,o,i;return j.css`
189
- font-size: ${(e=t.theme.fonts)==null?void 0:e.normal};
186
+ `},qt=e=>{var t,n,o,r,a,c;return w.css`
187
+ font-size: ${(t=e.theme.fonts)==null?void 0:t.normal};
190
188
  font-weight: 300;
191
189
  line-height: 1.5em;
192
- color: ${(n=t.theme.colors)==null?void 0:n.text};
190
+ color: ${(n=e.theme.colors)==null?void 0:n.text};
193
191
 
194
192
  h1,
195
193
  h2,
@@ -210,9 +208,9 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
210
208
  }
211
209
 
212
210
  a {
213
- color: ${(s=t.theme.colors)==null?void 0:s.link};
211
+ color: ${(o=e.theme.colors)==null?void 0:o.link};
214
212
  &:focus-visible {
215
- ${tn(t)};
213
+ ${qe(e)};
216
214
  }
217
215
  }
218
216
 
@@ -223,35 +221,35 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
223
221
 
224
222
  p {
225
223
  word-break: break-word;
226
- margin: ${(r=t.theme.sizes)==null?void 0:r.normal} 0;
224
+ margin: ${(r=e.theme.sizes)==null?void 0:r.normal} 0;
227
225
  }
228
226
 
229
227
  p:first-child {
230
- margin: 0 0 ${(o=t.theme.sizes)==null?void 0:o.normal};
228
+ margin: 0 0 ${(a=e.theme.sizes)==null?void 0:a.normal};
231
229
  }
232
230
 
233
231
  p:last-child {
234
- margin: ${(i=t.theme.sizes)==null?void 0:i.normal} 0 0;
232
+ margin: ${(c=e.theme.sizes)==null?void 0:c.normal} 0 0;
235
233
  }
236
234
 
237
235
  p:only-child {
238
236
  margin: 0;
239
237
  }
240
- `},le=({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]),Sn.createPortal(n,s)},ue=({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:S(o,"humany-icon","humany-custom-icon"),title:t,style:{...l,...r},...d,...i})}case"Svg":{const l={className:S(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($s,{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(an,{className:o,faIcon:c,title:t,...i});default:case"Text":return t?a.jsx("i",{className:S(o,"humany-letter-symbol"),title:t,...d,...i,children:t.substring(0,2)}):null}},$s=x.svg`
238
+ `},A=({elementId:e="humany-portal-elements",parent:t=document.body,children:n})=>{const[o]=i.useState(()=>{const r=document.getElementById(e)||document.createElement("div");return r.id=e,r});return i.useEffect(()=>(t.appendChild(o),()=>{o.childElementCount<=1&&o.remove()}),[o]),vt.createPortal(n,o)},F=({text:e="",backgroundSize:t="contain",size:n=12,symbol:o={content:"",type:""},elementStyle:r={},className:a,...c})=>{const{type:f,content:l}=o,u={"aria-label":e,role:"presentation"};switch(f){case"Uri":{const d={backgroundSize:t,backgroundImage:`url('${l}')`,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundAttachment:"center"};return s.jsx("i",{className:b.appendClassNames(a,"humany-icon","humany-custom-icon"),title:e,style:{...d,...r},...u,...c})}case"Svg":{const d={className:b.appendClassNames(a,"humany-icon"),width:`${n}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",...c,ref:null},h={minWidth:`${n}`};switch(l){case"search":return s.jsxs("svg",{viewBox:"0 0 32 30",...d,children:[s.jsx("circle",{cx:"14.8457",cy:"14.5175",r:"8.14359",transform:"rotate(45 14.8457 14.5175)"}),s.jsx("line",{x1:"21.1001",y1:"20.4865",x2:"26.5798",y2:"25.9661"})]});case"clear":return s.jsxs("svg",{viewBox:"0 0 27 27",...d,children:[s.jsx("circle",{cx:"13.4351",cy:"13.435",r:"9",transform:"rotate(45 13.4351 13.435)",stroke:"black"}),s.jsx("line",{x1:"16.6172",y1:"10.2531",x2:"10.2533",y2:"16.6171",stroke:"black"}),s.jsx("line",{x1:"16.6171",y1:"16.617",x2:"10.2532",y2:"10.2531",stroke:"black"})]});case"close":return s.jsxs("svg",{viewBox:"0 0 13 13",...d,children:[s.jsx("path",{d:"M12.3068 0.50647L1.27246 11.7273",stroke:"black"}),s.jsx("path",{d:"M12.2812 11.9473L1.24686 0.726451",stroke:"black"})]});case"caret-right":return s.jsxs("svg",{viewBox:"0 0 14 14",style:h,...d,children:[s.jsx("line",{x1:"4.13",y1:"1.05",x2:"10.13",y2:"7.05",stroke:"black"}),s.jsx("line",{x1:"10.13",y1:"6.95",x2:"4.13",y2:"12.95",stroke:"black"})]});case"caret-left":return s.jsxs("svg",{viewBox:"0 0 14 14",style:h,...d,children:[s.jsx("line",{x1:"10.13",y1:"12.95",x2:"4.13",y2:"6.95",stroke:"black"}),s.jsx("line",{x1:"4.13",y1:"7.05",x2:"10.13",y2:"1.05",stroke:"black"})]});case"caret-up":return s.jsxs(Ut,{viewBox:"0 0 14 14",style:h,...d,children:[s.jsx("line",{x1:"13.09",y1:"3.99",x2:"7.1",y2:"9.99",stroke:"black"}),s.jsx("line",{x1:"7.19",y1:"9.99",x2:"1.19",y2:"3.99",stroke:"black"})]});case"caret-down":return s.jsxs("svg",{viewBox:"0 0 14 14",style:h,...d,children:[s.jsx("line",{x1:"13.09",y1:"3.99",x2:"7.1",y2:"9.99",stroke:"black"}),s.jsx("line",{x1:"7.19",y1:"9.99",x2:"1.19",y2:"3.99",stroke:"black"})]});case"back":return s.jsxs("svg",{viewBox:"0 0 18 18",...d,children:[s.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"}),s.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 s.jsxs("svg",{viewBox:"0 0 19 19",...d,children:[s.jsx("circle",{cx:"9.5",cy:"9.5",r:"9.5",fill:"#CA0813"}),s.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 s.jsx("svg",{viewBox:"0 0 20 17",...d,children:s.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 s.jsxs("svg",{viewBox:"-2 -3 40 40",...d,children:[s.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"}),s.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"}),s.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"}),s.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 s.jsxs("svg",{viewBox:"0 0 26 24",...d,children:[s.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"}),s.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 s.jsxs("svg",{viewBox:"0 0 36 30",...d,children:[s.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"}),s.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"}),s.jsx("path",{d:"M29.2565 20.5974C29.2565 26.341 22.8747 26.9792 19.6838 26.9792",stroke:"white"}),s.jsx("circle",{cx:"17.4074",cy:"26.9795",r:"2.05271",stroke:"white"}),s.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 s.jsx("svg",{viewBox:"0 -10 22 22",...d,children:s.jsx("path",{d:"M0 1H22",stroke:"white"})});case"sorting":return s.jsx("svg",{viewBox:"0 0 18 14",...d,children:s.jsx("path",{d:"M18 1H0M8 13H0M13 7H0"})});case"copy":return s.jsxs("svg",{viewBox:"0 0 19 17",...d,children:[s.jsx("rect",{x:"0.5",y:"0.5",width:"11.6667",height:"11.6014",rx:"1.5",fill:"white"}),s.jsx("rect",{x:"6.83301",y:"4.89868",width:"11.6667",height:"11.6014",rx:"1.5",fill:"white"})]});case"print":return s.jsxs("svg",{viewBox:"0 0 16 17",...d,children:[s.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"}),s.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"}),s.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"}),s.jsx("line",{x1:"5.29004",y1:"10.8323",x2:"10.7101",y2:"10.8323",stroke:"black"}),s.jsx("line",{x1:"5.29004",y1:"12.5242",x2:"10.7101",y2:"12.5242",stroke:"black"}),s.jsx("line",{x1:"5.29004",y1:"14.2161",x2:"10.7101",y2:"14.2161",stroke:"black"})]});case"language":return s.jsx("svg",{viewBox:"0 0 19 19",...d,children:s.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 s.jsxs("svg",{viewBox:"0 0 17 17",...d,children:[s.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"}),s.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"}),s.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 s.jsxs("svg",{viewBox:"0 0 16 2",...d,children:[s.jsx("circle",{cx:"15",cy:"1",r:"1",transform:"rotate(90 15 1)",fill:"black"}),s.jsx("circle",{cx:"1",cy:"1",r:"1",transform:"rotate(90 1 1)",fill:"black"}),s.jsx("circle",{cx:"8",cy:"1",r:"1",transform:"rotate(90 8 1)",fill:"black"})]});case"browse":return s.jsxs("svg",{viewBox:"0 0 24 24",...d,children:[s.jsx("circle",{cx:"12",cy:"12",r:"12",fill:"currentColor"}),s.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"}),s.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"}),s.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"}),s.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`),s.jsxs("svg",{viewBox:"0 0 25 25",...d,style:h,children:[s.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"}),s.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 s.jsx("svg",{viewBox:"0 0 13 12",...d,children:s.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 s.jsx("svg",{viewBox:"0 0 13 12",...d,children:s.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 s.jsx("svg",{viewBox:"0 0 24 24",...d,children:s.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 s.jsxs("svg",{viewBox:"0 0 24 24",...d,children:[s.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"}),s.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"}),s.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 s.jsxs("svg",{viewBox:"0 0 24 24",...d,children:[s.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"}),s.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 s.jsx("svg",{viewBox:"0 0 24 24",...d,children:s.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 s.jsx("svg",{viewBox:"0 0 24 24",...d,children:s.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 s.jsx("svg",{viewBox:"0 0 24 24",...d,children:s.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 s.jsx("svg",{viewBox:"0 0 24 24",...d,children:s.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 s.jsx(Qe,{className:a,faIcon:l,title:e,...c});default:case"Text":return e?s.jsx("i",{className:b.appendClassNames(a,"humany-letter-symbol"),title:e,...u,...c,children:e.substring(0,2)}):null}},Ut=y.svg`
241
239
  transform: rotate(180deg);
242
- `,js={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",span:"span"},ce=({variant:t,component:e,className:n,children:s})=>{const{typographyVariantMapping:r={}}=Qt(),o={...js,...r},i=e||o[t]||"span";return a.jsx(Es,{className:n,as:i,children:s})},Es=x.span``;var sn=(t=>(t.SlideInLeft="slide-in-left",t.SlideInRight="slide-in-right",t.SlideInBottom="slide-in-bottom",t.SlideInTop="slide-in-top",t))(sn||{});const Ss=300,Ls=({className:t,children:e,header:n,onToggle:s,trigger:r,fullScreen:o=!1,closeButtonAriaLabel:i,animation:u={type:"slide-in-bottom"}})=>{const{duration:c=Ss}=u,d=f.useRef(),l=f.useRef(),[h,p]=dt(!0),[m,g]=ht(),y=lt(m),v=f.useRef(X());f.useEffect(()=>{s&&s(m)},[m]);const k=te("Escape");f.useEffect(()=>{k&&g(!1)},[k]),z("click",w=>{const{target:E}=w;!l.current||!p.current||!E||l.current!==E&&p.current!==E&&!p.current.contains(E)&&!l.current.contains(E)&&g(!1)},window);const $=Oe(v.current,()=>{g(!1)});me("router:changed",()=>{g(!1)}),f.useEffect(()=>{m&&d.current?d.current.focus():!m&&l.current&&y&&l.current.focus()},[m,d.current,l.current]);const R=Ds[u.type];return a.jsxs(a.Fragment,{children:[a.jsx(tt.CSSTransition,{in:m,className:"humany-drawer-transition",classNames:"humany-drawer-transition",unmountOnExit:!0,timeout:c,children:a.jsx(le,{children:a.jsxs(R,{duration:c,fullScreen:o,className:S(t,"humany-drawer",`humany-drawer-${v.current}`),clientHeight:document.body.clientHeight,css:h,ref:p,children:[a.jsx(pt,{onClick:()=>g(!1),tabIndex:0,ref:d,"aria-label":i,children:a.jsx(ue,{symbol:{type:"Svg",content:"close"}})}),!!n&&a.jsx(Rs,{variant:"h1",className:"humany-drawer-header",children:n}),e]})})}),f.cloneElement(r,{onClick:w=>{g(),$()},ref:l,"aria-label":r.props.title,"aria-expanded":m})]})},De=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}};
240
+ `,Xt={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",span:"span"},O=({variant:e,component:t,className:n,children:o})=>{const{typographyVariantMapping:r={}}=Pe(),a={...Xt,...r},c=t||a[e]||"span";return s.jsx(_t,{className:n,as:c,children:o})},_t=y.span``;var Xe=(e=>(e.SlideInLeft="slide-in-left",e.SlideInRight="slide-in-right",e.SlideInBottom="slide-in-bottom",e.SlideInTop="slide-in-top",e))(Xe||{});const Gt=300,Qt=({className:e,children:t,header:n,onToggle:o,trigger:r,fullScreen:a=!1,closeButtonAriaLabel:c,animation:f={type:"slide-in-bottom"}})=>{const{duration:l=Gt}=f,u=i.useRef(),d=i.useRef(),[h,m]=ge(!0),[p,C]=xe(),g=me(p),x=i.useRef(b.uuid());i.useEffect(()=>{o&&o(p)},[p]);const k=Z("Escape");i.useEffect(()=>{k&&C(!1)},[k]),H("click",L=>{const{target:B}=L;!d.current||!m.current||!B||d.current!==B&&m.current!==B&&!m.current.contains(B)&&!d.current.contains(B)&&C(!1)},window);const $=ee(x.current,()=>{C(!1)});Y("router:changed",()=>{C(!1)}),i.useEffect(()=>{p&&u.current?u.current.focus():!p&&d.current&&g&&d.current.focus()},[p,u.current,d.current]);const M=on[f.type];return s.jsxs(s.Fragment,{children:[s.jsx(de.CSSTransition,{in:p,className:"humany-drawer-transition",classNames:"humany-drawer-transition",unmountOnExit:!0,timeout:l,children:s.jsx(A,{children:s.jsxs(M,{duration:l,fullScreen:a,className:b.appendClassNames(e,"humany-drawer",`humany-drawer-${x.current}`),clientHeight:document.body.clientHeight,css:h,ref:m,children:[s.jsx(ye,{onClick:()=>C(!1),tabIndex:0,ref:u,"aria-label":c,children:s.jsx(F,{symbol:{type:"Svg",content:"close"}})}),!!n&&s.jsx(Jt,{variant:"h1",className:"humany-drawer-header",children:n}),t]})})}),i.cloneElement(r,{onClick:L=>{C(),$()},ref:d,"aria-label":r.props.title,"aria-expanded":p})]})},ne=y.div`
241
+ font-family: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.type}};
242
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
245
243
  position: fixed;
246
244
  bottom: 0;
247
245
  left: 0;
248
- border: ${t=>t.theme.border};
246
+ border: ${e=>e.theme.border};
249
247
  width: 100%;
250
- box-shadow: ${t=>t.theme.boxShadow};
248
+ box-shadow: ${e=>e.theme.boxShadow};
251
249
  background: #ffffff;
252
- ${t=>t.css&&t.css}
253
- `,Rs=x(ce)`
254
- padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
250
+ ${e=>e.css&&e.css}
251
+ `,Jt=y(O)`
252
+ padding: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.normal}};
255
253
  margin: 0;
256
254
  text-align: center;
257
255
  border-bottom: #eeeeee 1px solid;
@@ -261,14 +259,14 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
261
259
  justify-content: center;
262
260
  align-items: center;
263
261
  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}};
262
+ color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
263
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
266
264
  line-height: 1.2em;
267
- `,Ae=t=>j.css`
268
- transition: ${t.duration}ms;
269
- `,Ms=x(De)`
265
+ `,se=e=>w.css`
266
+ transition: ${e.duration}ms;
267
+ `,en=y(ne)`
270
268
  max-height: 0;
271
- ${Ae}
269
+ ${se}
272
270
 
273
271
  &.humany-drawer-transition-enter {
274
272
  max-height: 0;
@@ -276,17 +274,17 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
276
274
  &.humany-drawer-transition-enter-active,
277
275
  &.humany-drawer-transition-enter-done,
278
276
  &.humany-drawer-transition-exit {
279
- max-height: ${t=>t.fullScreen?"100%":"400px"};
277
+ max-height: ${e=>e.fullScreen?"100%":"400px"};
280
278
  }
281
279
 
282
280
  &.humany-drawer-transition-exit-active,
283
281
  &.humany-drawer-transition-exit-done {
284
282
  max-height: 0;
285
283
  }
286
- `,Ns=x(De)`
287
- ${Ae}
284
+ `,tn=y(ne)`
285
+ ${se}
288
286
  transform: translateX(100%);
289
- height: ${t=>t.fullScreen?"100%":"auto"};
287
+ height: ${e=>e.fullScreen?"100%":"auto"};
290
288
 
291
289
  &.humany-drawer-transition-enter {
292
290
  transform: translateX(100%);
@@ -301,10 +299,10 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
301
299
  &.humany-drawer-transition-exit-done {
302
300
  transform: translateX(100%);
303
301
  }
304
- `,Os=x(De)`
305
- ${Ae}
302
+ `,nn=y(ne)`
303
+ ${se}
306
304
  transform: translateX(-100%);
307
- height: ${t=>t.fullScreen?"100%":"auto"};
305
+ height: ${e=>e.fullScreen?"100%":"auto"};
308
306
 
309
307
  &.humany-drawer-transition-enter {
310
308
  transform: translateX(-100%);
@@ -319,8 +317,8 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
319
317
  &.humany-drawer-transition-exit-done {
320
318
  transform: translateX(-100%);
321
319
  }
322
- `,Ts=x(De)`
323
- ${Ae}
320
+ `,sn=y(ne)`
321
+ ${se}
324
322
  bottom: unset;
325
323
  top: 0;
326
324
  height: 0;
@@ -331,51 +329,41 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
331
329
  &.humany-drawer-transition-enter-active,
332
330
  &.humany-drawer-transition-enter-done,
333
331
  &.humany-drawer-transition-exit {
334
- height: ${t=>t.clientHeight}px;
332
+ height: ${e=>e.clientHeight}px;
335
333
  }
336
334
 
337
335
  &.humany-drawer-transition-exit-active,
338
336
  &.humany-drawer-transition-exit-done {
339
337
  height: 0;
340
338
  }
341
- `,Ds={["slide-in-bottom"]:Ms,["slide-in-right"]:Ns,["slide-in-left"]:Os,["slide-in-top"]:Ts},rn=(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]},As=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(X()),[l,h]=f.useState(!1),p=lt(l),[{x:m,y:g},y]=rn(l,d.current,c.current),v=te("Escape");f.useEffect(()=>{v&&h(!1)},[v]),f.useEffect(()=>{l&&i.current?i.current.focus():!l&&u.current&&p&&u.current.focus()},[l,i.current,u.current]),z("click",R=>{const{target:w}=R;!c.current||!w||c.current!==w&&!c.current.contains(w)&&h(!1)},window),me("router:changed",()=>{h(!1)});const k=Oe(d.current,()=>{h(!1)}),$=f.useCallback(R=>{R.stopPropagation(),y(R,u.current),h(!l),k()},[k,y,h]);return a.jsxs(a.Fragment,{children:[l&&a.jsx(le,{children:a.jsxs(Ps,{className:S("humany-dropdown",`humany-dropdown-${d.current}`,t),...r,x:m,y:g,ref:c,children:[a.jsx(pt,{onClick:()=>h(!1),tabIndex:0,ref:i,"aria-label":s,children:a.jsx(ue,{symbol:{type:"Svg",content:"close"}})}),e]})}),f.cloneElement(n,{onClick:$,ref:u,"aria-label":n.props.title,"aria-expanded":l})]})}),Ps=x.div`
342
- ${ft}
343
- padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.medium}};
339
+ `,on={["slide-in-bottom"]:en,["slide-in-right"]:tn,["slide-in-left"]:nn,["slide-in-top"]:sn},_e=(e,t,n)=>{const[o,r]=i.useState(0),[a,c]=i.useState(0),f=i.useCallback((l,u)=>{if(l.preventDefault(),u){const d=u.getBoundingClientRect();r(Math.max(document.body.clientWidth-d.right,1)),c(d.bottom+window.scrollY)}},[o,a,r,c]);return i.useEffect(()=>{if(!n||!e)return;const l=n.getBoundingClientRect(),u={x:o,y:a};l.left<0&&(u.x=0),l.bottom>window.innerHeight&&(u.y=0),u.x!==o&&r(u.x),u.y!==a&&c(u.y)},[n,e,t]),[{x:o,y:a},f]},rn=i.forwardRef(({className:e="",children:t=null,trigger:n,closeButtonAriaLabel:o,...r},a)=>{const c=i.useRef(),f=i.useRef(),l=i.useRef();i.useImperativeHandle(a,()=>l.current,[l.current]);const u=i.useRef(b.uuid()),[d,h]=i.useState(!1),m=me(d),[{x:p,y:C},g]=_e(d,u.current,l.current),x=Z("Escape");i.useEffect(()=>{x&&h(!1)},[x]),i.useEffect(()=>{d&&c.current?c.current.focus():!d&&f.current&&m&&f.current.focus()},[d,c.current,f.current]),H("click",M=>{const{target:L}=M;!l.current||!L||l.current!==L&&!l.current.contains(L)&&h(!1)},window),Y("router:changed",()=>{h(!1)});const k=ee(u.current,()=>{h(!1)}),$=i.useCallback(M=>{M.stopPropagation(),g(M,f.current),h(!d),k()},[k,g,h]);return s.jsxs(s.Fragment,{children:[d&&s.jsx(A,{children:s.jsxs(an,{className:b.appendClassNames("humany-dropdown",`humany-dropdown-${u.current}`,e),...r,x:p,y:C,ref:l,children:[s.jsx(ye,{onClick:()=>h(!1),tabIndex:0,ref:c,"aria-label":o,children:s.jsx(F,{symbol:{type:"Svg",content:"close"}})}),t]})}),i.cloneElement(n,{onClick:$,ref:f,"aria-label":n.props.title,"aria-expanded":d})]})}),an=y.div`
340
+ ${Ce}
341
+ padding: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.medium}};
344
342
  min-width: 150px;
345
343
  position: absolute;
346
- box-shadow: ${t=>t.theme.boxShadow};
344
+ box-shadow: ${e=>e.theme.boxShadow};
347
345
 
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(Hs,{...t}),Hs=x.div`
346
+ ${e=>{var n,o,r;let t="";return e.y>0?t+=`top: calc(${((n=e.theme.sizes)==null?void 0:n.small)||"0px"} + ${e.y||"0"}px);`:t+=`bottom: ${((o=e.theme.sizes)==null?void 0:o.normal)||"0px"};`,e.x>0?t+=`right: ${e.x||"0"}px;`:t+=`left: ${((r=e.theme.sizes)==null?void 0:r.normal)||"0px"};`,t}};
347
+ `,Ge=({...e})=>s.jsx(cn,{...e}),cn=y.div`
350
348
  display: none;
351
- `,Bs=f.forwardRef(({children:t,columns:e,gap:n,className:s,...r},o)=>a.jsx(zs,{className:S(s,"humany-grid"),"data-columns":e,"data-gap":n,...nt(r),...T(r),ref:o,children:t})),zs=x.div`
349
+ `,ln=i.forwardRef(({children:e,columns:t,gap:n,className:o,...r},a)=>s.jsx(un,{className:b.appendClassNames(o,"humany-grid"),"data-columns":t,"data-gap":n,...fe(r),...S(r),ref:a,children:e})),un=y.div`
352
350
  display: grid;
353
- grid-template-columns: repeat(${t=>t["data-columns"]}, 1fr);
354
- grid-gap: ${t=>t["data-gap"]};
351
+ grid-template-columns: repeat(${e=>e["data-columns"]}, 1fr);
352
+ grid-gap: ${e=>e["data-gap"]};
355
353
  justify-content: center;
356
354
  grid-auto-rows: max-content;
357
- ${Dt}
358
- `,mt=f.forwardRef(({htmlParseInstruction:t=null,className:e,html:n,...s},r)=>{const o=A(),[i,u]=f.useState();return f.useEffect(()=>{const c=Vt(o,n),d={...c,...t,transform:{...c.transform,...t==null?void 0:t.transform}},l=Bt(n,d);u(l)},[n,t]),a.jsx("div",{className:S(e,"humany-html"),...T(s),ref:r,children:i})}),an=({faIcon:t,title:e,className:n="",role:s="presentation",...r})=>a.jsx("i",{className:S(n,`fa fa-${t}`),title:e,role:s,...T(r)}),Vs=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,p]=f.useState(e),m=f.useRef();f.useImperativeHandle(l,()=>m.current),f.useEffect(()=>{var v;e&&((v=m==null?void 0:m.current)==null||v.focus())},[e,l,m]);const g=(v,k)=>{p(v),n&&n(v),o&&v&&k.target.select()},y={...T(d),disabled:u,autoFocus:e,type:c,onKeyDown:v=>{v.key==="Enter"&&h&&s(v),v.key==="Escape"&&h&&r(v)},onFocus:v=>g(!0,v),onBlur:v=>g(!1,v),onChange:v=>i(v.target.value||""),className:S(t,"humany-input"),"data-type":c};return c!=="textarea"?a.jsx("input",{...y,ref:m}):a.jsx("textarea",{...y,ref:m})}),cn=f.forwardRef(({className:t,items:e,renderItem:n,renderLi:s=!1,...r},o)=>a.jsx("ul",{className:S(t,"humany-list"),"data-item-count":e.length,...T(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))})),ln=f.forwardRef(({text:t,html:e,header:n,className:s,htmlParseInstruction:r,symbol:o,...i},u)=>a.jsxs("div",{className:S(s,"humany-paragraph"),...T(i),ref:u,children:[n?a.jsxs(ce,{variant:"h1",children:[o?a.jsx(ue,{symbol:o}):null,n]}):null,e?a.jsx(mt,{html:e,htmlParseInstruction:r}):null,t?a.jsx(Te,{children:t}):null]})),un=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},p)=>a.jsxs("div",{className:S(r,"humany-item-list"),"data-item-count":u.length,...T(h),ref:p,children:[e||(t||n||s?a.jsx(ln,{symbol:i,header:t,text:n,html:s}):null),u.length?a.jsx(cn,{items:u,renderItem:c,renderLi:d,...l}):null,o]})),Is=({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(p=>!!p.selected),l=(h,p)=>a.jsx(un,{className:S(`humany-item-tree-level-${p}`),items:h,ulProps:i,renderItem:m=>{const{id:g,selected:y,items:v,matches:k}=m,$=y&&d(v);return!o&&!k?null:f.createElement("li",{...T(u),key:g,className:"humany-item-tree-item"},n&&n(m,p,$),v&&(r||$)&&l(v,p+1))}});return a.jsxs("div",{className:S(t,"humany-item-tree"),children:[s&&s(!c(e||[])),e&&l(e,1)]})};var dn=function(){};process.env.NODE_ENV!=="production"&&(dn=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 Ws=dn,_s=Ws;Zs(_s);function Zs(t){return t&&t.__esModule?t:{default:t}}function we(t){return t.charAt(0)==="/"}function _e(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 Fs(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=t&&t.split("/")||[],s=e&&e.split("/")||[],r=t&&we(t),o=e&&we(e),i=r||o;if(t&&we(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==="."?_e(s,l):h===".."?(_e(s,l),d++):d&&(_e(s,l),d--)}if(!i)for(;d--;d)s.unshift("..");i&&s[0]!==""&&(!s[0]||!we(s[0]))&&s.unshift("");var p=s.join("/");return u&&p.substr(-1)!=="/"&&(p+="/"),p}const Ks=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),qs=Pt(Ks);var Rt=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 ke(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 ke(c,e[d])});var n=typeof t>"u"?"undefined":Rt(t),s=typeof e>"u"?"undefined":Rt(e);if(n!==s)return!1;if(n==="object"){var r=t.valueOf(),o=e.valueOf();if(r!==t||o!==e)return ke(r,o);var i=Object.keys(t),u=Object.keys(e);return i.length!==u.length?!1:i.every(function(c){return ke(t[c],e[c])})}return!1}const Ys=Object.freeze(Object.defineProperty({__proto__:null,default:ke},Symbol.toStringTag,{value:"Module"})),Us=Pt(Ys);var Js=qs;hn(Js);var Xs=Us;hn(Xs);function hn(t){return t&&t.__esModule?t:{default:t}}var Xe=(t=>(t.scopedHash="scopedHash",t.hash="hash",t.browser="browser",t.memory="memory",t))(Xe||{});const Qs=(t,e)=>{const n=`humany-${e}=([^&?]+)&?`,s=new RegExp(n,"i"),r=t.match(s);return r&&r[1]||"/"};Le(t=>{t.createCommand("routing",e=>n=>{const s={mode:n.mode};n.basePath&&(s.basePath=n.basePath),e.container.register("routingSettings",s)})});var K=(t=>(t.Cookie="cookie",t.Local="local",t.Session="session",t))(K||{}),gt=(t=>(t.Tenant="tenant",t.Implementation="implementation",t.Widget="widget",t))(gt||{}),H=(t=>(t.Necessary="necessary",t.Functional="functional",t.Analytical="analytical",t.Marketing="marketing",t))(H||{});const Gs=(t,e,n,s={})=>Mt(t,n).then(r=>(process.env.NODE_ENV!=="production"&&r&&N.warn(`createStorageWriter: Attempted to create storage writer using unallowed category.
359
- Key: ${e}
360
- Category: ${JSON.stringify(n)}
361
- Options: ${JSON.stringify(s)}`),o=>(vt(t),Mt(t,n).then(i=>{if(i){process.env.NODE_ENV!=="production"&&N.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=gt.Widget,medium:c=K.Session,duration:d}=s,l=nr();return l[u][e]=mn(o,n,d),c===K.Cookie?ar(t,l):lr(t,c,l)})))),er=(t,e,n=K.Session)=>(vt(t),typeof e>"u"?(process.env.NODE_ENV!=="production"&&N.warn("readStorage: Undefined key passed when reading storage. ",e,n),Promise.resolve(void 0)):n===K.Cookie?ir(t).then(s=>Ge(s,e)):cr(t,n).then(s=>Ge(s,e))),ae=t=>!!Object.entries(t).filter(([e,n])=>typeof n<"u").length,Ze=t=>Object.entries(t).filter(([e,n])=>typeof n<"u").forEach(([e,{value:n}])=>{typeof n>"u"&&delete t[e]}),fn=(t,e)=>{const n={tenant:{...t.tenant,...e.tenant},implementation:{...t.implementation,...e.implementation},widget:{...t.widget,...e.widget}};return Ze(n.tenant),Ze(n.implementation),Ze(n.widget),n},tr=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()||xt(),Pe=t=>{const{name:e,implementation:{name:n,tenant:s}}=t.get("$widget");return[`humany_${s}`,`humany_${$t(s+n)}`,`humany_${$t(s+n+e)}`]},Fe=t=>{const e=new RegExp(`(?:^|;)\\s?${t}=(.*?)(?:;|$)`,"i"),n=document.cookie.match(e);return n&&n[1]&&JSON.parse(n[1])||void 0},Ke=(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}`},yt=t=>{const[e,n,s]=Pe(t),r=Fe(e)||{},o=Fe(n)||{},i=Fe(s)||{};return{tenant:r,implementation:o,widget:i}},pn=(t,e)=>{const n=yt(t),s=fn(n,e),[r,o,i]=Pe(t),{tenant:u,implementation:c,widget:d}=s,l=tr(e),h=xt({days:-1});Ke(r,u,ae(u)?l:h),Ke(o,c,ae(c)?l:h),Ke(i,d,ae(d)?l:h)},Ee=(t,e)=>{const[n,s,r]=Pe(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)}},Qe=(t,e,n)=>{const s=Ee(t,e),r=fn(s,n),[o,i,u]=Pe(t),{tenant:c,implementation:d,widget:l}=r;ae(c)?e.setItem(o,JSON.stringify(c)):e.removeItem(o),ae(d)?e.setItem(i,JSON.stringify(d)):e.removeItem(i),ae(l)?e.setItem(u,JSON.stringify(l)):e.removeItem(u)},nr=()=>({tenant:{},implementation:{},widget:{}}),sr=t=>t?!!t&&new Date>new Date(t):!1,Ge=(t,e)=>{const n=t.widget[e]||t.implementation[e]||t.tenant[e];return n==null?void 0:n.value},mn=(t,e,n)=>n?{value:t,category:e,expiration:typeof n=="object"?xt(n):n}:{value:t,category:e},rr=(t,e)=>{const n=Ot(t);return Object.entries(n).forEach(([s,r])=>{Object.entries(r).forEach(([o,i])=>{const{expiration:u,category:c}=i;(sr(u)||or(e,c))&&(r[o]=mn(void 0,c,u))})}),n},Mt=(t,e)=>er(t,"storagePolicy",K.Cookie).then((n=[H.Necessary])=>!!e&&n.indexOf(e)===-1),or=(t=[H.Necessary],e)=>!!e&&t.indexOf(e)===-1,vt=t=>{const e=yt(t),n=Ee(t,window.localStorage),s=Ee(t,sessionStorage),r=Ge(e,"storagePolicy"),[o,i,u]=[e,n,s].map(c=>rr(c,r));pn(t,o),Qe(t,window.localStorage,i),Qe(t,window.sessionStorage,u)},xt=(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()},ir=t=>Se(document)(()=>yt(t)),ar=(t,e)=>Se(document)(()=>pn(t,e)),cr=(t,e)=>{const n=e===K.Local?window.localStorage:window.sessionStorage;return Se(n)(()=>Ee(t,n))},lr=(t,e,n)=>{const s=e===K.Local?window.localStorage:window.sessionStorage;return Se(s)(()=>Qe(t,s,n))};Le(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"&&N.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"&&N.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=[H.Necessary,H.Functional,H.Analytical,H.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(H.Necessary)===-1&&(process.env.NODE_ENV!=="production"&&N.warn(`storagePolicyConfigurationApi: passed consent does not include category: '${H.Necessary}'. Consent has to atleast include the '${H.Necessary}' category.
368
- Passed consent: ${JSON.stringify(s)}`),r.unshift(H.Necessary)),Gs(e.container,"storagePolicy",H.Necessary,{medium:K.Cookie,scope:gt.Tenant,duration:{days:365}}).then(o=>o(r)).then(()=>{vt(e.container),e.events.dispatch("storage:policy-changed",r)})}})});const gn=f.forwardRef(({className:t,onClick:e=()=>{},name:n="",to:s="",params:r={},children:o,...i},u)=>{const c=ut(),d=A();if(!c)return null;let l="";const h={onClick:e,className:S(t,"humany-route-link"),to:l,innerRef:u,...i,ref:null};if(n){if(!(c.routes||[]).find(y=>y.name===n))return process.env.NODE_ENV!=="production"&&N.warn(`Unable to create route. No route named "${n}" exist.`),a.jsx(Be.Link,{...h,onClick:y=>{e(y),y.preventDefault(),process.env.NODE_ENV!=="production"&&N.warn(`Unable to navigate. No route named "${n}" exist.`)},children:o});const g=Object.keys(r).reduce((y,v)=>{const k=r[v];if(Array.isArray(k)){if(k.length===0)return y;y[v]=k.map($=>typeof $=="string"?encodeURIComponent($):$).join(",")}else y[v]=typeof k=="string"?encodeURIComponent(k):k;return y},{});try{l=c.generate(n,g||{})}catch{return a.jsx(Be.Link,{...h,ref:h.innerRef,children:o})}l&&c.settings.mode&&c.settings.mode===Xe.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"&&N.warn('Unable to generate path for route link. Either specify route name or use the "to" prop.'),null;if(c.settings&&c.settings.mode===Xe.scopedHash){const p=d.get("$widget").name;l=Qs(l,p)}return h.as?a.jsx(ur,{...h,as:h.as,children:o}):a.jsx(Be.Link,{...h,to:l,children:o})}),ur=x.span``,He=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:p,...m},g)=>{const y={title:i,disabled:e,role:n,as:u,tabIndex:s,className:S(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(dr,{name:h,params:p,...y,...T(m),ref:g,children:d}):a.jsx(hr,{href:c,target:l,...y,...T(m),ref:g,children:d})}),dr=x(gn)`
369
- ${t=>t.disabled?`
355
+ ${Te}
356
+ `,be=i.forwardRef(({htmlParseInstruction:e=null,className:t,html:n,...o},r)=>{const a=R(),[c,f]=i.useState();return i.useEffect(()=>{const l=Ve(a,n),u={...l,...e,transform:{...l.transform,...e==null?void 0:e.transform}},d=Be(n,u);f(d)},[n,e]),s.jsx("div",{className:b.appendClassNames(t,"humany-html"),...S(o),ref:r,children:c})}),Qe=({faIcon:e,title:t,className:n="",role:o="presentation",...r})=>s.jsx("i",{className:b.appendClassNames(n,`fa fa-${e}`),title:t,role:o,...S(r)}),dn=i.forwardRef(({className:e="",autoFocus:t=!1,onFocusChange:n=()=>{},onEnter:o=()=>{},onEscape:r=()=>{},selectAllOnFocus:a,onChange:c=()=>{},disabled:f=!1,type:l,...u},d)=>{const[h,m]=i.useState(t),p=i.useRef();i.useImperativeHandle(d,()=>p.current),i.useEffect(()=>{var x;t&&((x=p==null?void 0:p.current)==null||x.focus())},[t,d,p]);const C=(x,k)=>{m(x),n&&n(x),a&&x&&k.target.select()},g={...S(u),disabled:f,autoFocus:t,type:l,onKeyDown:x=>{x.key==="Enter"&&h&&o(x),x.key==="Escape"&&h&&r(x)},onFocus:x=>C(!0,x),onBlur:x=>C(!1,x),onChange:x=>c(x.target.value||""),className:b.appendClassNames(e,"humany-input"),"data-type":l};return l!=="textarea"?s.jsx("input",{...g,ref:p}):s.jsx("textarea",{...g,ref:p})}),Je=i.forwardRef(({className:e,items:t,renderItem:n,renderLi:o=!1,...r},a)=>s.jsx("ul",{className:b.appendClassNames(e,"humany-list"),"data-item-count":t.length,...S(r),ref:a,children:t.map((c,f,l)=>o?s.jsx("li",{className:"humany-list-item",children:n(c,f,l)},c.id||f):n(c,f,l))})),et=i.forwardRef(({text:e,html:t,header:n,className:o,htmlParseInstruction:r,symbol:a,...c},f)=>s.jsxs("div",{className:b.appendClassNames(o,"humany-paragraph"),...S(c),ref:f,children:[n?s.jsxs(O,{variant:"h1",children:[a?s.jsx(F,{symbol:a}):null,n]}):null,t?s.jsx(be,{html:t,htmlParseInstruction:r}):null,e?s.jsx(te,{children:e}):null]})),tt=i.forwardRef(({header:e,customHeader:t,text:n,html:o,className:r,children:a,symbol:c,items:f,renderItem:l,renderLi:u,ulProps:d,...h},m)=>s.jsxs("div",{className:b.appendClassNames(r,"humany-item-list"),"data-item-count":f.length,...S(h),ref:m,children:[t||(e||n||o?s.jsx(et,{symbol:c,header:e,text:n,html:o}):null),f.length?s.jsx(Je,{items:f,renderItem:l,renderLi:u,...d}):null,a]})),fn=({className:e="",tree:t,renderItem:n,rootItem:o,renderUnselected:r=!0,renderEmpty:a=!0,ulProps:c,liProps:f})=>{const l=h=>!u(h),u=h=>!h||h.length<1?!0:!h.some(m=>!!m.selected),d=(h,m)=>s.jsx(tt,{className:b.appendClassNames(`humany-item-tree-level-${m}`),items:h,ulProps:c,renderItem:p=>{const{id:C,selected:g,items:x,matches:k}=p,$=g&&u(x);return!a&&!k?null:i.createElement("li",{...S(f),key:C,className:"humany-item-tree-item"},n&&n(p,m,$),x&&(r||$)&&d(x,m+1))}});return s.jsxs("div",{className:b.appendClassNames(e,"humany-item-tree"),children:[o&&o(!l(t||[])),t&&d(t,1)]})},nt=i.forwardRef(({className:e,onClick:t=()=>{},name:n="",to:o="",params:r={},children:a,...c},f)=>{const l=pe(),u=R();if(!l)return null;let d="";const h={onClick:t,className:b.appendClassNames(e,"humany-route-link"),to:d,innerRef:f,...c,ref:null};if(n){if(!(l.routes||[]).find(g=>g.name===n))return process.env.NODE_ENV!=="production"&&b.Logger.warn(`Unable to create route. No route named "${n}" exist.`),s.jsx(ie.Link,{...h,onClick:g=>{t(g),g.preventDefault(),process.env.NODE_ENV!=="production"&&b.Logger.warn(`Unable to navigate. No route named "${n}" exist.`)},children:a});const C=Object.keys(r).reduce((g,x)=>{const k=r[x];if(Array.isArray(k)){if(k.length===0)return g;g[x]=k.map($=>typeof $=="string"?encodeURIComponent($):$).join(",")}else g[x]=typeof k=="string"?encodeURIComponent(k):k;return g},{});try{d=l.generate(n,C||{})}catch{return s.jsx(ie.Link,{...h,ref:h.innerRef,children:a})}d&&l.settings.mode&&l.settings.mode===re.HistoryMode.browser&&d[0]!=="/"&&(d=`/${d}`)}else if(o&&l.history)d=l.history.createHref({hash:"",pathname:o,search:"",state:void 0});else return process.env.NODE_ENV!=="production"&&b.Logger.warn('Unable to generate path for route link. Either specify route name or use the "to" prop.'),null;if(l.settings&&l.settings.mode===re.HistoryMode.scopedHash){const m=u.get("$widget").name;d=re.getSpecificWidgetPath(d,m)}return h.as?s.jsx(hn,{...h,as:h.as,children:a}):s.jsx(ie.Link,{...h,to:d,children:a})}),hn=y.span``,oe=i.forwardRef(({className:e,disabled:t=!1,role:n="link",tabIndex:o=0,onClick:r=()=>{},onKeyDown:a=()=>{},title:c,as:f,href:l,children:u,target:d,routeName:h,params:m,...p},C)=>{const g={title:c,disabled:t,role:n,as:f,tabIndex:o,className:b.appendClassNames(e,"humany-link",[!!t,"humany-disabled"]),onClick:x=>{if(x.persist(),t){x.preventDefault();return}r(x)},onKeyDown:x=>{if(x.persist(),t){x.key!=="Tab"&&x.preventDefault();return}a(x)}};return h?s.jsx(mn,{name:h,params:m,...g,...S(p),ref:C,children:u}):s.jsx(pn,{href:l,target:d,...g,...S(p),ref:C,children:u})}),mn=y(nt)`
357
+ ${e=>e.disabled?`
370
358
  pointer-events: none;
371
359
  opacity: .7;
372
360
  `:"cursor: pointer;"}
373
- `,hr=x.a`
374
- ${t=>t.disabled?`
361
+ `,pn=y.a`
362
+ ${e=>e.disabled?`
375
363
  pointer-events: none;
376
364
  opacity: .7;
377
365
  `:"cursor: pointer;"}
378
- `,bt=({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(tt.CSSTransition,{in:t,className:"humany-overlay-transition",classNames:"humany-overlay-transition",unmountOnExit:!0,timeout:e,children:a.jsx(le,{children:a.jsx(fr,{className:"humany-overlay",duration:e,ref:o,onClick:i,...r,children:n})})})},fr=x.div`
366
+ `,ve=({visible:e,duration:t=500,children:n,onClick:o=()=>{},...r})=>{const a=i.useRef(),c=i.useCallback(f=>{f.target===a.current&&o(f)},[o]);return s.jsx(de.CSSTransition,{in:e,className:"humany-overlay-transition",classNames:"humany-overlay-transition",unmountOnExit:!0,timeout:t,children:s.jsx(A,{children:s.jsx(gn,{className:"humany-overlay",duration:t,ref:a,onClick:c,...r,children:n})})})},gn=y.div`
379
367
  background: rgba(0, 0, 0, 0.6);
380
368
  min-width: 100%;
381
369
  min-height: 100%;
@@ -389,7 +377,7 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
389
377
  align-items: center;
390
378
  z-index: 7;
391
379
 
392
- transition: ${t=>t.duration}ms;
380
+ transition: ${e=>e.duration}ms;
393
381
  opacity: 0;
394
382
 
395
383
  &.humany-overlay-transition-enter {
@@ -405,11 +393,11 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
405
393
  &.humany-overlay-transition-exit-done {
406
394
  opacity: 0;
407
395
  }
408
- `,pr=j.keyframes`
396
+ `,xn=w.keyframes`
409
397
  100% {
410
398
  transform: rotate(360deg);
411
399
  }
412
- `,mr=j.keyframes`
400
+ `,Cn=w.keyframes`
413
401
  0% {
414
402
  stroke-dasharray: 1, 200;
415
403
  stroke-dashoffset: 0;
@@ -422,8 +410,8 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
422
410
  stroke-dasharray: 89, 200;
423
411
  stroke-dashoffset: -124px;
424
412
  }
425
- `,gr=x.svg`
426
- animation: ${pr} 2s linear infinite;
413
+ `,yn=y.svg`
414
+ animation: ${xn} 2s linear infinite;
427
415
  height: 100%;
428
416
  transform-origin: center center;
429
417
  width: 100%;
@@ -434,7 +422,7 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
434
422
  right: 0;
435
423
  margin: auto;
436
424
  transition: 200ms ease-out opacity;
437
- `,yr=x.div`
425
+ `,bn=y.div`
438
426
  position: absolute;
439
427
  top: 0;
440
428
  bottom: 0;
@@ -442,7 +430,7 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
442
430
  right: 0;
443
431
  height: 100%;
444
432
  width: 100%;
445
- pointer-events: ${t=>t["data-loading"]?"all":"none"};
433
+ pointer-events: ${e=>e["data-loading"]?"all":"none"};
446
434
  display: flex;
447
435
  flex-direction: column;
448
436
  justify-content: center;
@@ -450,9 +438,9 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
450
438
  box-sizing: border-box;
451
439
  overflow: hidden;
452
440
  svg {
453
- opacity: ${t=>t["data-loading"]?"1":"0"};
441
+ opacity: ${e=>e["data-loading"]?"1":"0"};
454
442
  }
455
- `,vr=x.div`
443
+ `,vn=y.div`
456
444
  position: relative;
457
445
  margin: 0 auto;
458
446
  width: 100px;
@@ -461,76 +449,76 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
461
449
  display: block;
462
450
  padding-top: 100%;
463
451
  }
464
- `,xr=x.circle`
452
+ `,wn=y.circle`
465
453
  stroke-dasharray: 1, 200;
466
454
  stroke-dashoffset: 0;
467
- animation: ${mr} 1.5s ease-in-out infinite;
455
+ animation: ${Cn} 1.5s ease-in-out infinite;
468
456
  stroke-linecap: round;
469
- stroke: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
457
+ stroke: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
470
458
  stroke-width: 2px;
471
- `,br=({className:t,loading:e=!1})=>a.jsx(yr,{className:S("humany-loader",t),"data-loading":e,children:a.jsx(vr,{className:"humany-spinner",children:a.jsx(gr,{viewBox:"25 25 50 50",children:a.jsx(xr,{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"2","stroke-miterlimit":"10"})})})}),Cr=({zoomState:t,image:e,changeZoom:n,...s})=>{var g;const r=f.useRef(null),[o,i]=f.useState(!1),[u,c]=f.useState(!1),{width:d,height:l,...h}=s.style||{},p=f.useCallback(()=>{const y=r.current;if(y){const v=window.innerWidth/y.naturalWidth,k=window.innerHeight/y.naturalHeight,$=Math.min(v,k);return k>=1&&v>=1?1:$}return 1},[o,e.src]),m=f.useMemo(()=>{const y=r.current;if(y&&o){if(!u){c(!0);const v=p();n(v)}return y.naturalWidth>=y.naturalHeight?[`${t*y.naturalWidth}px`,"auto"]:["auto",`${t*y.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(kr,{onLoad:()=>{i(!0)},ref:r,imageSize:m,draggable:"false",...s,alt:((g=s.alt)==null?void 0:g.toString())||"",style:h,src:e.src,loaded:o}),a.jsx($r,{})]})},wr=x(br)`
459
+ `,kn=({className:e,loading:t=!1})=>s.jsx(bn,{className:b.appendClassNames("humany-loader",e),"data-loading":t,children:s.jsx(vn,{className:"humany-spinner",children:s.jsx(yn,{viewBox:"25 25 50 50",children:s.jsx(wn,{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"2","stroke-miterlimit":"10"})})})}),jn=({zoomState:e,image:t,changeZoom:n,...o})=>{var C;const r=i.useRef(null),[a,c]=i.useState(!1),[f,l]=i.useState(!1),{width:u,height:d,...h}=o.style||{},m=i.useCallback(()=>{const g=r.current;if(g){const x=window.innerWidth/g.naturalWidth,k=window.innerHeight/g.naturalHeight,$=Math.min(x,k);return k>=1&&x>=1?1:$}return 1},[a,t.src]),p=i.useMemo(()=>{const g=r.current;if(g&&a){if(!f){l(!0);const x=m();n(x)}return g.naturalWidth>=g.naturalHeight?[`${e*g.naturalWidth}px`,"auto"]:["auto",`${e*g.naturalHeight}px`]}return null},[e,r,a,t.src]);return i.useEffect(()=>(c(!1),function(){l(!1)}),[t.src]),s.jsxs(s.Fragment,{children:[s.jsx($n,{loading:!a}),s.jsx(Ln,{onLoad:()=>{c(!0)},ref:r,imageSize:p,draggable:"false",...o,alt:((C=o.alt)==null?void 0:C.toString())||"",style:h,src:t.src,loaded:a}),s.jsx(Sn,{})]})},$n=y(kn)`
472
460
  svg circle {
473
461
  stroke: #ffffff;
474
462
  }
475
- `,kr=x.img`
463
+ `,Ln=y.img`
476
464
  transform: none;
477
465
 
478
- ${t=>t.imageSize&&j.css`
479
- width: ${t.imageSize[0]};
480
- height: ${t.imageSize[1]};
466
+ ${e=>e.imageSize&&w.css`
467
+ width: ${e.imageSize[0]};
468
+ height: ${e.imageSize[1]};
481
469
  display: inline-block;
482
470
  `}
483
471
  vertical-align: middle;
484
472
  position: relative;
485
- ${t=>!t.loaded&&"display:none;"}
486
- `,$r=x.div`
473
+ ${e=>!e.loaded&&"display:none;"}
474
+ `,Sn=y.div`
487
475
  height: 100%;
488
476
  display: inline-block;
489
477
  vertical-align: middle;
490
- `,jr=()=>{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]},yn=({attrs:t,htmlBody:e})=>{var wt;const n=te("Escape"),s=te("ArrowLeft"),r=te("ArrowRight"),[o,i]=f.useState(1),[u,c]=f.useState({top:0,left:0,x:0,y:0}),[d,l]=f.useState(!1),[h,p]=jr(),[m,g]=f.useState(null),[y,v]=f.useState(null),k=f.useRef(null),$=f.useRef(null),R=f.useRef(null),w=f.useRef(null),E=f.useRef(null),[I,B]=f.useState(null);f.useEffect(()=>{n&&g(null)},[n]),f.useEffect(()=>{i(1)},[m]),f.useEffect(()=>{var U,xe;if(m===null||$.current===null)return;const C=$.current.firstElementChild,L=(U=R.current)==null?void 0:U.querySelector(".nav-left"),P=(xe=R.current)==null?void 0:xe.querySelector(".nav-right");if(y==="Right")ve&&P?P.focus():re&&L&&L.focus();else if(y==="Left")re&&L?L.focus():ve&&P&&P.focus();else{if(!C)return;C.focus()}},[m,$,R,y]),f.useEffect(()=>{if(s){if(re)return ye()}else if(r&&ve)return Y()},[s,r]),f.useEffect(()=>{var L,P;const C=((P=(L=E.current)==null?void 0:L.style)==null?void 0:P.float)||"";(C==="left"||C==="right")&&B(C)},[]);const O=f.useMemo(()=>{const C=document.createElement("div");C.innerHTML=e||"";const L=C.getElementsByTagName("img");return Array.from(L).reduce((U,xe)=>{const kt=xe.getAttribute("src");if(kt){const $n={src:kt};U.push($n)}return U},[])},[e]),W=f.useCallback(()=>{const{src:C}=t;if(C){const L=O.findIndex((P,U)=>P.src===C);g(L)}},[O,t]),Q=f.useCallback(C=>{g(null)},[]),q=f.useCallback(C=>{i(C?o+o*.25:o-o*.25)},[i,o]),D=f.useCallback(()=>{if(m!==null){const{src:C}=O[m];C&&window.open(C,"_self")}},[O,m]),_=f.useCallback(C=>{const L=w.current;L&&(c({top:L.scrollTop,left:L.scrollLeft,x:C.clientX,y:C.clientY}),l(!0))},[w]),de=f.useCallback(C=>{const L=w.current;if(L&&d){const P=C.clientX-u.x,U=C.clientY-u.y;L.scrollTop=u.top-U,L.scrollLeft=u.left-P}},[d,u]),ge=C=>{C.preventDefault(),l(!1)},se=f.useMemo(()=>{if(w.current){const C=w.current.getElementsByTagName("img");if(C&&C.length){const L=C[0];return L.width>window.innerWidth||L.height>window.innerHeight}}return!1},[w,o]),ye=()=>{m!==null&&(v("Left"),g(m-1))},Y=()=>{m!==null&&(v("Right"),g(m+1))},re=m!==null&&m>0&&O.length>1,ve=m!==null&&O.length-1>m;return a.jsxs(a.Fragment,{children:[a.jsx(bt,{visible:m!==null,onClick:Q,children:a.jsxs(Tr,{onMouseDown:()=>p(),onMouseMove:()=>p(),onTouchStart:()=>p(),onKeyDown:()=>p(),children:[a.jsx(Dr,{show:h.toString(),children:a.jsx(Rr,{ref:$,buttons:[{id:"download",onClick:D,icon:"download",ariaLabel:"Download image"},{id:"lightbox-close",onClick:()=>g(null),icon:"lightbox-close",ariaLabel:"Close"}]})}),a.jsx(Pr,{scrolling:d.toString(),isDraggable:se.toString(),ref:w,onMouseMove:de,onMouseDown:_,onMouseUp:ge,children:m!==null&&a.jsx(Cr,{changeZoom:C=>{i(C)},zoomState:o,...t,style:{...t.style||{},float:"none"},image:O[m]})}),a.jsx(Nr,{ref:R,show:h.toString(),buttons:[{id:"previous",onClick:ye,icon:"caret-left",circle:!0,show:re,className:"nav-left",ariaLabel:"Navigate to previous image"},{id:"next",onClick:Y,icon:"caret-right",circle:!0,show:ve,className:"nav-right",ariaLabel:"Navigate to next image"}]}),a.jsxs(Ar,{show:h.toString(),children:[a.jsx(Mr,{buttons:[{id:"zoom-out",onClick:()=>q(!1),icon:"zoom-out",ariaLabel:"Zoom out"},{id:"zoom-in",onClick:()=>q(!0),icon:"zoom-in",ariaLabel:"Zoom in"}]}),a.jsxs(Or,{variant:"span",children:[Math.trunc(o*100),"%"]})]})]})}),a.jsx(Er,{ref:k,onClick:W,onKeyDown:C=>{C.key==="Enter"&&(C.preventDefault(),W())},alignment:I,tabIndex:0,children:a.jsx(Hr,{...t,alt:((wt=t.alt)==null?void 0:wt.toString())||"",ref:E})})]})},Ct=f.forwardRef(({show:t="true",buttons:e,className:n},s)=>a.jsx(Sr,{ref:s,show:t,className:S("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(Lr,{circle:o.toString(),onClick:c,tabIndex:i?void 0:-1,show:i.toString(),icon:d,className:l,"aria-label":u,children:a.jsx(ue,{size:24,symbol:{type:"Svg",content:d}})},r+h.toString()))})),vn=x.div`
478
+ `,Rn=()=>{const e=i.useRef(),[t,n]=i.useState(!0),o=i.useCallback(()=>(t||n(!0),e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{n(!1)},3e3),()=>{e.current&&clearTimeout(e.current)}),[t,e]);return[t,o]},st=({attrs:e,htmlBody:t})=>{var Se;const n=Z("Escape"),o=Z("ArrowLeft"),r=Z("ArrowRight"),[a,c]=i.useState(1),[f,l]=i.useState({top:0,left:0,x:0,y:0}),[u,d]=i.useState(!1),[h,m]=Rn(),[p,C]=i.useState(null),[g,x]=i.useState(null),k=i.useRef(null),$=i.useRef(null),M=i.useRef(null),L=i.useRef(null),B=i.useRef(null),[ut,dt]=i.useState(null);i.useEffect(()=>{n&&C(null)},[n]),i.useEffect(()=>{c(1)},[p]),i.useEffect(()=>{var z,X;if(p===null||$.current===null)return;const v=$.current.firstElementChild,j=(z=M.current)==null?void 0:z.querySelector(".nav-left"),E=(X=M.current)==null?void 0:X.querySelector(".nav-right");if(g==="Right")U&&E?E.focus():q&&j&&j.focus();else if(g==="Left")q&&j?j.focus():U&&E&&E.focus();else{if(!v)return;v.focus()}},[p,$,M,g]),i.useEffect(()=>{if(o){if(q)return $e()}else if(r&&U)return Le()},[o,r]),i.useEffect(()=>{var j,E;const v=((E=(j=B.current)==null?void 0:j.style)==null?void 0:E.float)||"";(v==="left"||v==="right")&&dt(v)},[]);const V=i.useMemo(()=>{const v=document.createElement("div");v.innerHTML=t||"";const j=v.getElementsByTagName("img");return Array.from(j).reduce((z,X)=>{const Re=X.getAttribute("src");if(Re){const Ct={src:Re};z.push(Ct)}return z},[])},[t]),ke=i.useCallback(()=>{const{src:v}=e;if(v){const j=V.findIndex((E,z)=>E.src===v);C(j)}},[V,e]),ft=i.useCallback(v=>{C(null)},[]),je=i.useCallback(v=>{c(v?a+a*.25:a-a*.25)},[c,a]),ht=i.useCallback(()=>{if(p!==null){const{src:v}=V[p];v&&window.open(v,"_self")}},[V,p]),mt=i.useCallback(v=>{const j=L.current;j&&(l({top:j.scrollTop,left:j.scrollLeft,x:v.clientX,y:v.clientY}),d(!0))},[L]),pt=i.useCallback(v=>{const j=L.current;if(j&&u){const E=v.clientX-f.x,z=v.clientY-f.y;j.scrollTop=f.top-z,j.scrollLeft=f.left-E}},[u,f]),gt=v=>{v.preventDefault(),d(!1)},xt=i.useMemo(()=>{if(L.current){const v=L.current.getElementsByTagName("img");if(v&&v.length){const j=v[0];return j.width>window.innerWidth||j.height>window.innerHeight}}return!1},[L,a]),$e=()=>{p!==null&&(x("Left"),C(p-1))},Le=()=>{p!==null&&(x("Right"),C(p+1))},q=p!==null&&p>0&&V.length>1,U=p!==null&&V.length-1>p;return s.jsxs(s.Fragment,{children:[s.jsx(ve,{visible:p!==null,onClick:ft,children:s.jsxs(zn,{onMouseDown:()=>m(),onMouseMove:()=>m(),onTouchStart:()=>m(),onKeyDown:()=>m(),children:[s.jsx(Vn,{show:h.toString(),children:s.jsx(Nn,{ref:$,buttons:[{id:"download",onClick:ht,icon:"download",ariaLabel:"Download image"},{id:"lightbox-close",onClick:()=>C(null),icon:"lightbox-close",ariaLabel:"Close"}]})}),s.jsx(Zn,{scrolling:u.toString(),isDraggable:xt.toString(),ref:L,onMouseMove:pt,onMouseDown:mt,onMouseUp:gt,children:p!==null&&s.jsx(jn,{changeZoom:v=>{c(v)},zoomState:a,...e,style:{...e.style||{},float:"none"},image:V[p]})}),s.jsx(Dn,{ref:M,show:h.toString(),buttons:[{id:"previous",onClick:$e,icon:"caret-left",circle:!0,show:q,className:"nav-left",ariaLabel:"Navigate to previous image"},{id:"next",onClick:Le,icon:"caret-right",circle:!0,show:U,className:"nav-right",ariaLabel:"Navigate to next image"}]}),s.jsxs(Wn,{show:h.toString(),children:[s.jsx(Tn,{buttons:[{id:"zoom-out",onClick:()=>je(!1),icon:"zoom-out",ariaLabel:"Zoom out"},{id:"zoom-in",onClick:()=>je(!0),icon:"zoom-in",ariaLabel:"Zoom in"}]}),s.jsxs(Bn,{variant:"span",children:[Math.trunc(a*100),"%"]})]})]})}),s.jsx(En,{ref:k,onClick:ke,onKeyDown:v=>{v.key==="Enter"&&(v.preventDefault(),ke())},alignment:ut,tabIndex:0,children:s.jsx(In,{...e,alt:((Se=e.alt)==null?void 0:Se.toString())||"",ref:B})})]})},we=i.forwardRef(({show:e="true",buttons:t,className:n},o)=>s.jsx(Mn,{ref:o,show:e,className:b.appendClassNames("humany-button-set",n),children:t.map(({id:r,circle:a=!1,show:c=!0,ariaLabel:f,onClick:l,icon:u,className:d},h)=>s.jsx(Hn,{circle:a.toString(),onClick:l,tabIndex:c?void 0:-1,show:c.toString(),icon:u,className:d,"aria-label":f,children:s.jsx(F,{size:24,symbol:{type:"Svg",content:u}})},r+h.toString()))})),ot=y.div`
491
479
  transition: opacity 0.3s ease 0s;
492
480
  z-index: 5;
493
- ${t=>t.show==="true"?"opacity: 1;":j.css`
481
+ ${e=>e.show==="true"?"opacity: 1;":w.css`
494
482
  opacity: 0;
495
483
  pointer-events: none;
496
484
  `}
497
- `,Er=x(He)`
485
+ `,En=y(oe)`
498
486
  display: inline-block !important;
499
487
 
500
- ${t=>(t.alignment==="right"||t.alignment==="left")&&j.css`
501
- float: ${t.alignment};
488
+ ${e=>(e.alignment==="right"||e.alignment==="left")&&w.css`
489
+ float: ${e.alignment};
502
490
  `}
503
- `,Sr=x(vn)`
491
+ `,Mn=y(ot)`
504
492
  position: fixed;
505
493
  display: flex;
506
- gap: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
507
- `,et="39px",Lr=x(pe)`
508
- width: ${et};
509
- height: ${et};
494
+ gap: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.normal}};
495
+ `,ue="39px",Hn=y(K)`
496
+ width: ${ue};
497
+ height: ${ue};
510
498
  display: flex;
511
499
  justify-content: center;
512
500
  align-items: center;
513
501
 
514
- ${t=>t.icon==="caret-left"&&j.css`
502
+ ${e=>e.icon==="caret-left"&&w.css`
515
503
  svg {
516
504
  position: relative;
517
505
  left: -2px;
518
506
  }
519
507
  `}
520
508
 
521
- ${t=>{var e;return t.circle==="true"?j.css`
509
+ ${e=>{var t;return e.circle==="true"?w.css`
522
510
  background-color: #ffffff;
523
511
  border-radius: 50%;
524
512
 
525
513
  svg {
526
514
  path,
527
515
  line {
528
- stroke: ${(e=t.theme.colors)==null?void 0:e.text};
516
+ stroke: ${(t=e.theme.colors)==null?void 0:t.text};
529
517
  }
530
518
  }
531
519
 
532
520
  &:focus-visible {
533
- ${F(t)}
521
+ ${D(e)}
534
522
  outline-color: #ffffff;
535
523
  background-color: transparent;
536
524
 
@@ -541,7 +529,7 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
541
529
  }
542
530
  }
543
531
  }
544
- `:j.css`
532
+ `:w.css`
545
533
  svg {
546
534
  path,
547
535
  line {
@@ -552,70 +540,70 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
552
540
  outline-color: #ffffff;
553
541
  }
554
542
  &:focus-visible {
555
- ${F(t)}
543
+ ${D(e)}
556
544
  }
557
545
  `}}
558
546
 
559
- ${t=>t.show==="true"?j.css`
547
+ ${e=>e.show==="true"?w.css`
560
548
  opacity: 0.8;
561
549
  transition: opacity 0.3s ease 0s;
562
550
  &:hover {
563
551
  opacity: 1;
564
552
  }
565
- `:j.css`
553
+ `:w.css`
566
554
  opacity: 0;
567
555
  pointer-events: none;
568
556
  `}
569
- `,Rr=x(Ct)`
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
- `,Mr=x(Ct)`
573
- bottom: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
557
+ `,Nn=y(we)`
558
+ top: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
559
+ right: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
560
+ `,Tn=y(we)`
561
+ bottom: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
574
562
  width: 100%;
575
563
  align-items: center;
576
564
  justify-content: center;
577
- `,Nr=x(Ct)`
565
+ `,Dn=y(we)`
578
566
  display: block;
579
567
  button {
580
568
  position: fixed;
581
- top: calc(50% - calc(${et} / 2));
569
+ top: calc(50% - calc(${ue} / 2));
582
570
  &:first-child {
583
- left: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
571
+ left: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
584
572
  }
585
573
  &:last-child {
586
- right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
574
+ right: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
587
575
  }
588
576
  }
589
- `,Or=x(ce)`
577
+ `,Bn=y(O)`
590
578
  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}};
579
+ bottom: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
580
+ right: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
593
581
  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
- `,xn=x(vn)`
582
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.medium}};
583
+ font-family: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.type}};
584
+ `,rt=y(ot)`
597
585
  position: absolute;
598
586
  width: 100vw;
599
587
  height: 88px;
600
588
  left: 0px;
601
589
  z-index: 5;
602
- `,Tr=x.div`
590
+ `,zn=y.div`
603
591
  width: 100%;
604
- `,Dr=x(xn)`
592
+ `,Vn=y(rt)`
605
593
  top: 0px;
606
594
  background-image: linear-gradient(
607
595
  to bottom,
608
596
  rgb(34, 34, 34, 0.8),
609
597
  rgba(34, 34, 34, 0)
610
598
  );
611
- `,Ar=x(xn)`
599
+ `,Wn=y(rt)`
612
600
  bottom: 0px;
613
601
  background-image: linear-gradient(
614
602
  to top,
615
603
  rgb(34, 34, 34, 0.8),
616
604
  rgba(34, 34, 34, 0)
617
605
  );
618
- `,Pr=x.div`
606
+ `,Zn=y.div`
619
607
  width: 100%;
620
608
  height: 100vh;
621
609
  overflow: auto;
@@ -623,115 +611,115 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
623
611
  vertical-align: middle;
624
612
  white-space: nowrap;
625
613
  justify-content: center;
626
- cursor: ${t=>t.isDraggable==="true"?t.scrolling==="true"?"grabbing":"grab":"auto"};
627
- `,Hr=x.img`
614
+ cursor: ${e=>e.isDraggable==="true"?e.scrolling==="true"?"grabbing":"grab":"auto"};
615
+ `,In=y.img`
628
616
  cursor: pointer;
629
- `,bn=f.forwardRef(({className:t,children:e,trigger:n,onOverlayClick:s=()=>{},close:r=!1,...o},i)=>{const[u,c]=ht(),[d,l]=dt(!0),h=f.useRef(),p=f.useRef(X()),m=te("Escape");f.useEffect(()=>{(m||r)&&c(!1)},[m,r]),f.useEffect(()=>{u&&h.current&&h.current.focus()},[u,h.current]),me("router:changed",()=>{c(!1)});const g=f.useCallback(v=>{c(!1),s(v)},[s,c]);f.useImperativeHandle(i,()=>({close(){c(!1)}}));const y=f.useCallback(()=>Oe(p.current,()=>{c(!1)}),[p.current]);return a.jsxs(a.Fragment,{children:[a.jsx(bt,{visible:u,onClick:g,children:a.jsxs(Br,{className:S(t,"humany-modal",`humany-modal-${p.current}`),css:d,tabIndex:-1,...o,ref:l,children:[a.jsx(pt,{onClick:()=>c(!1),tabIndex:0,ref:h,children:a.jsx(ue,{symbol:{type:"Svg",content:"close"}})}),e]})}),f.cloneElement(n,{onClick:v=>{c(),y()}})]})}),Br=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}};
617
+ `,it=i.forwardRef(({className:e,children:t,trigger:n,onOverlayClick:o=()=>{},close:r=!1,...a},c)=>{const[f,l]=xe(),[u,d]=ge(!0),h=i.useRef(),m=i.useRef(b.uuid()),p=Z("Escape");i.useEffect(()=>{(p||r)&&l(!1)},[p,r]),i.useEffect(()=>{f&&h.current&&h.current.focus()},[f,h.current]),Y("router:changed",()=>{l(!1)});const C=i.useCallback(x=>{l(!1),o(x)},[o,l]);i.useImperativeHandle(c,()=>({close(){l(!1)}}));const g=i.useCallback(()=>ee(m.current,()=>{l(!1)}),[m.current]);return s.jsxs(s.Fragment,{children:[s.jsx(ve,{visible:f,onClick:C,children:s.jsxs(On,{className:b.appendClassNames(e,"humany-modal",`humany-modal-${m.current}`),css:u,tabIndex:-1,...a,ref:d,children:[s.jsx(ye,{onClick:()=>l(!1),tabIndex:0,ref:h,children:s.jsx(F,{symbol:{type:"Svg",content:"close"}})}),t]})}),i.cloneElement(n,{onClick:x=>{l(),g()}})]})}),On=y.div`
618
+ font-family: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.type}};
619
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
632
620
  position: relative;
633
621
  max-width: 50%;
634
622
  min-width: 200px;
635
- padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.medium}};
636
- ${t=>ft(t)}
637
- ${t=>t.css&&t.css}
623
+ padding: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.medium}};
624
+ ${e=>Ce(e)}
625
+ ${e=>e.css&&e.css}
638
626
  outline: none;
639
- `,zr=({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(Vr,{className:t,trigger:e,ref:c,onOverlayClick:d,children:[n&&a.jsx(Je,{children:n}),s&&a.jsx(Je,{children:s}),u&&a.jsx(Ir,{onClick:l,children:u}),i&&a.jsx(Wr,{onClick:d,children:i})]})},Vr=x(bn)`
627
+ `,An=({className:e,trigger:t,header:n="",text:o="",onCancel:r=()=>{},onConfirm:a=()=>{},cancelLabel:c="",confirmLabel:f=""})=>{const l=i.useRef(),u=i.useCallback(()=>{var h;r(),(h=l==null?void 0:l.current)==null||h.close()},[r]),d=i.useCallback(()=>{var h;a(),(h=l==null?void 0:l.current)==null||h.close()},[a]);return s.jsxs(Fn,{className:e,trigger:t,ref:l,onOverlayClick:u,children:[n&&s.jsx(le,{children:n}),o&&s.jsx(le,{children:o}),f&&s.jsx(Pn,{onClick:d,children:f}),c&&s.jsx(Kn,{onClick:u,children:c})]})},Fn=y(it)`
640
628
  display: block;
641
629
 
642
630
  span {
643
631
  display: block;
644
- margin: 0 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
632
+ margin: 0 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.normal}};
645
633
 
646
634
  &:first-of-type:not(:only-of-type) {
647
635
  font-weight: 700;
648
- margin: 0 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}};
636
+ margin: 0 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}};
649
637
  }
650
638
  }
651
- `,Ir=x(pe)`
639
+ `,Pn=y(K)`
652
640
  display: inline-block;
653
641
  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};`}
642
+ ${e=>{var t,n;return`padding: ${(t=e.theme.sizes)==null?void 0:t.small} ${(n=e.theme.sizes)==null?void 0:n.normal};`}}
643
+ ${e=>e.theme.borderRadius&&`border-radius: ${e.theme.borderRadius};`}
656
644
  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}};
645
+ background-color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
646
+ border: 1px solid ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
659
647
 
660
- margin: 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}} 0 0;
648
+ margin: 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}} 0 0;
661
649
 
662
650
  &:focus {
663
651
  background-color: transparent;
664
652
  }
665
653
 
666
654
  &:focus-visible {
667
- ${F}
655
+ ${D}
668
656
  }
669
- `,Wr=x(pe)`
657
+ `,Kn=y(K)`
670
658
  display: inline-block;
671
659
  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};`}
660
+ ${e=>{var t,n;return`padding: ${(t=e.theme.sizes)==null?void 0:t.small} ${(n=e.theme.sizes)==null?void 0:n.normal};`}}
661
+ ${e=>e.theme.borderRadius&&`border-radius: ${e.theme.borderRadius};`}
674
662
  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}};
663
+ color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
664
+ border: 1px solid ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
677
665
 
678
666
  &:focus-visible {
679
- ${F};
667
+ ${D};
680
668
  }
681
- `,_r=({header:t="",link:e="",suggestionHeader:n="",suggestion:s=""})=>a.jsxs(Zr,{children:[a.jsx(Fr,{children:a.jsx(ce,{variant:"h2",children:"404"})}),a.jsxs(Kr,{children:[a.jsx(ce,{variant:"h3",children:t}),a.jsx(Cn,{routeName:"index","aria-label":e,text:e})]}),a.jsxs(qr,{children:[a.jsx("span",{children:n}),a.jsx("ul",{children:a.jsx("li",{children:s})})]})]}),Zr=x.div`
669
+ `,Yn=({header:e="",link:t="",suggestionHeader:n="",suggestion:o=""})=>s.jsxs(qn,{children:[s.jsx(Un,{children:s.jsx(O,{variant:"h2",children:"404"})}),s.jsxs(Xn,{children:[s.jsx(O,{variant:"h3",children:e}),s.jsx(at,{routeName:"index","aria-label":t,text:t})]}),s.jsxs(_n,{children:[s.jsx("span",{children:n}),s.jsx("ul",{children:s.jsx("li",{children:o})})]})]}),qn=y.div`
682
670
  display: flex;
683
671
  flex-wrap: wrap;
684
- `,Fr=x.div`
685
- ${t=>fe(t)("h2",j.css`
672
+ `,Un=y.div`
673
+ ${e=>P(e)("h2",w.css`
686
674
  padding: 0;
687
675
  margin: 0;
688
676
  color: gray;
689
677
  font-size: 7em;
690
678
  `)}
691
- `,Kr=x.div`
692
- margin-left: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.medium}};
679
+ `,Xn=y.div`
680
+ margin-left: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.medium}};
693
681
 
694
- ${t=>{var e;return fe(t)("h3",j.css`
682
+ ${e=>{var t;return P(e)("h3",w.css`
695
683
  text-transform: uppercase;
696
- font-size: ${(e=t.theme.fonts)==null?void 0:e.normal};
684
+ font-size: ${(t=e.theme.fonts)==null?void 0:t.normal};
697
685
  `)}}
698
686
 
699
687
  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}};
688
+ color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.link}};
689
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.small}};
702
690
  }
703
- `,qr=x.div`
704
- margin-top: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.medium}};
691
+ `,_n=y.div`
692
+ margin-top: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.medium}};
705
693
  min-width: 100%;
706
694
 
707
695
  span {
708
696
  font-weight: bold;
709
697
  }
710
- `;class Yr extends f.Component{constructor(){super(...arguments);b(this,"node");b(this,"onFocusListener");b(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 Cn=f.forwardRef(({className:t,description:e,text:n,children:s,...r},o)=>a.jsxs(He,{className:S(t,"humany-text-link"),...r,ref:o,children:[s,a.jsx(Te,{children:n}),e?a.jsx(mt,{html:e,className:"humany-description"}):null]}));var wn=(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))(wn||{});const Ur=({className:t="",format:e="hh:mm",timestamp:n})=>a.jsx("span",{className:S(t,"humany-timestamp"),children:Jr(n,e)}),Nt=t=>`0${t}`.slice(-2);function Jr(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}-${Nt(i)}-${Nt(u)}`;return e==="yyyy-mm-dd"?c:e==="hh:mm"?r:`${c} ${r}`}const Xr=({className:t,children:e,content:n,sticky:s=!1,...r})=>{const[o,i]=f.useState(!1),u=f.useRef(X()),c=f.useRef(),[{x:d,y:l},h]=rn(o,u.current,c.current),p=g=>{const{target:y}=g;!c.current||!y||c.current!==y&&!c.current.contains(y)&&i(!1)};f.useEffect(()=>{if(s)return window.addEventListener("click",p),()=>{window.removeEventListener("click",p)}},[o,s]);const m=f.useCallback((g,y)=>{h(g,c.current),i(y)},[h,i]);return a.jsxs(Qr,{ref:c,className:"humany-tooltip-trigger",onMouseEnter:s?void 0:g=>m(g,!0),onMouseLeave:s?void 0:g=>m(g,!1),onTouchEnd:s?g=>m(g,!o):void 0,onClick:s?g=>m(g,!o):void 0,children:[e,o&&a.jsx(le,{children:a.jsx(Gr,{className:S(t,"humany-tooltip-container"),x:d,y:l,...r,children:n})})]})},Qr=x.div`
698
+ `;class Gn extends i.Component{constructor(){super(...arguments);_(this,"node");_(this,"onFocusListener");_(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 o=n.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),a=[].filter.call(o,c=>typeof window>"u"?!0:!(window.getComputedStyle(c).display==="none"||c.offsetWidth<=0&&c.offsetHeight<=0))[0];a&&a.focus()}))}componentWillUnmount(){this.node&&this.node.removeEventListener("focus",this.onFocusListener)}render(){return this.state.boundFocus?s.jsx("div",{style:{opacity:0},tabIndex:0,ref:n=>{this.node=n}}):null}}const at=i.forwardRef(({className:e,description:t,text:n,children:o,...r},a)=>s.jsxs(oe,{className:b.appendClassNames(e,"humany-text-link"),...r,ref:a,children:[o,s.jsx(te,{children:n}),t?s.jsx(be,{html:t,className:"humany-description"}):null]}));var ct=(e=>(e.HH_MM="hh:mm",e.YYYY_MM_DD="yyyy-mm-dd",e.YYYY_MM_DD_HH_MM="yyyy-mm-dd hh:mm",e))(ct||{});const Qn=({className:e="",format:t="hh:mm",timestamp:n})=>s.jsx("span",{className:b.appendClassNames(e,"humany-timestamp"),children:Jn(n,t)}),Me=e=>`0${e}`.slice(-2);function Jn(e,t){const n=new Date(e),o=n.toTimeString().split(" ")[0].split(":"),r=o.length>1?`${o[0]}:${o[1]}`:o[0],a=n.getFullYear(),c=n.getMonth()+1,f=n.getDate(),l=`${a}-${Me(c)}-${Me(f)}`;return t==="yyyy-mm-dd"?l:t==="hh:mm"?r:`${l} ${r}`}const es=({className:e,children:t,content:n,sticky:o=!1,...r})=>{const[a,c]=i.useState(!1),f=i.useRef(b.uuid()),l=i.useRef(),[{x:u,y:d},h]=_e(a,f.current,l.current),m=C=>{const{target:g}=C;!l.current||!g||l.current!==g&&!l.current.contains(g)&&c(!1)};i.useEffect(()=>{if(o)return window.addEventListener("click",m),()=>{window.removeEventListener("click",m)}},[a,o]);const p=i.useCallback((C,g)=>{h(C,l.current),c(g)},[h,c]);return s.jsxs(ts,{ref:l,className:"humany-tooltip-trigger",onMouseEnter:o?void 0:C=>p(C,!0),onMouseLeave:o?void 0:C=>p(C,!1),onTouchEnd:o?C=>p(C,!a):void 0,onClick:o?C=>p(C,!a):void 0,children:[t,a&&s.jsx(A,{children:s.jsx(ns,{className:b.appendClassNames(e,"humany-tooltip-container"),x:u,y:d,...r,children:n})})]})},ts=y.div`
711
699
  display: flex;
712
700
  align-items: center;
713
- `,Gr=x.div`
701
+ `,ns=y.div`
714
702
  color: #ffffff;
715
703
  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}};
704
+ border-radius: ${e=>e.theme.borderRadius};
705
+ padding: calc(${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}} * 2);
706
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
707
+ font-family: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.type}};
720
708
  position: absolute;
721
709
  z-index: 10;
722
710
 
723
711
  a {
724
- color: ${t=>t.color?t.color:"inherit"};
712
+ color: ${e=>e.color?e.color:"inherit"};
725
713
  text-decoration: none;
726
714
  }
727
715
 
728
716
  i,
729
717
  svg {
730
- margin-right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}};
718
+ margin-right: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}};
731
719
  }
732
720
 
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
- `,eo=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:p}=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:p.easing?p.easing:"ease-out"}}}}})();return a.jsx(tt.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&&$e.compose(d,c))})},kn=f.forwardRef(({className:t,children:e,onClick:n=()=>{},widgetName:s,activationOptions:r,...o},i)=>{const u=A(),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 p=c(),m=h.currentTarget;if(p){const g=()=>{p.invoke("renderState").then(y=>y===he.open?p.invoke("close"):p.invoke("open")).then(()=>{p.events.subscribeOnce("widget:area-rendered",(y,v)=>{u.get("widgetDOMElement")&&p.events.dispatch("widget:modal-opened",{name:p.name,ref:m})})})};p.state===Wt.Deactivated?p.activate(r).then(()=>p.invoke("attach")).then(g):g()}},l=h=>{h.key==="Enter"&&(h.preventDefault(),d(h))};return a.jsx(He,{className:S(t,"humany-widget-link"),onKeyDown:l,onClick:h=>{n(h),d(h)},...o,ref:i,children:e})}),to=f.forwardRef(({portalId:t="humany-widget-overlay-portal",className:e,children:n},s)=>{const r=A(),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(le,{elementId:t,parent:o,children:a.jsx(no,{className:S("humany-widget-overlay-outlet",e),ref:s,children:n})}):null}),no=x.div`
721
+ ${e=>{let t="";return e.y>0?t+=`top: calc(2px + ${e.y||"0"}px);`:t+="bottom: 2px;",e.x>0?t+=`right: calc(2px + ${e.x||"0"}px);`:t+="left: 2px;",t}};
722
+ `,ss=e=>{const{in:t,mountOnEnter:n=!0,unmountOnExit:o=!0,timeout:r,children:a,transitions:c}=e,l=(()=>{var u,d;if(!(!c||c==="none")){if(typeof c=="string")return{enter:{transitionKeys:c,duration:r?typeof r=="number"?r:r.enter:200,easing:"ease-in"},exit:{transitionKeys:c,duration:r?typeof r=="number"?r:r.exit:200,easing:"ease-out"}};if(typeof c=="object"){const{enter:h,exit:m}=c;return{enter:{transitionKeys:(u=c.enter)==null?void 0:u.type,duration:r?typeof r=="number"?r:r.enter:200,easing:h.easing?h.easing:"ease-in"},exit:{transitionKeys:(d=c.enter)==null?void 0:d.type,duration:r?typeof r=="number"?r:r.enter:200,easing:m.easing?m.easing:"ease-out"}}}}})();return s.jsx(de.Transition,{timeout:{enter:l&&l.enter.duration||0,exit:l&&l.exit.duration||0},in:t,appear:!0,mountOnEnter:n,unmountOnExit:o,onEnter:u=>u.clientHeight,children:u=>a&&a(u,l&&G.compose(u,l))})},lt=i.forwardRef(({className:e,children:t,onClick:n=()=>{},widgetName:o,activationOptions:r,...a},c)=>{const f=R(),l=()=>{const{implementation:h}=f.get("$widget");return h.widgets.get(o)};i.useEffect(()=>{const h=l();return h==null||h.activate(r).then(()=>h.invoke("attach")),()=>{h==null||h.deactivate()}},[o]);const u=h=>{const m=l(),p=h.currentTarget;if(m){const C=()=>{m.invoke("renderState").then(g=>g===T.WidgetRenderState.open?m.invoke("close"):m.invoke("open")).then(()=>{m.events.subscribeOnce("widget:area-rendered",(g,x)=>{f.get("widgetDOMElement")&&m.events.dispatch("widget:modal-opened",{name:m.name,ref:p})})})};m.state===He.WidgetState.Deactivated?m.activate(r).then(()=>m.invoke("attach")).then(C):C()}},d=h=>{h.key==="Enter"&&(h.preventDefault(),u(h))};return s.jsx(oe,{className:b.appendClassNames(e,"humany-widget-link"),onKeyDown:d,onClick:h=>{n(h),u(h)},...a,ref:c,children:t})}),os=i.forwardRef(({portalId:e="humany-widget-overlay-portal",className:t,children:n},o)=>{const r=R(),a=i.useMemo(()=>{if(!r)return null;const c=r.get("widgetDOMElement");return!c||!c.childElementCount?null:c.children[0]},[r]);return a?s.jsx(A,{elementId:e,parent:a,children:s.jsx(rs,{className:b.appendClassNames("humany-widget-overlay-outlet",t),ref:o,children:n})}):null}),rs=y.div`
735
723
  background-color: #ffffff;
736
724
  position: absolute;
737
725
  top: 0;
@@ -741,4 +729,4 @@ ${i.map(u=>`${u.name||"<no name>"} (${u.id})
741
729
  z-index: 10;
742
730
  width: 100%;
743
731
  height: 100%;
744
- `,so=(t,e,n,s,r)=>t.getAsync("componentResolver").then(o=>(o.registerComponent(e,f.lazy(()=>n)),is(t,e,s||(()=>{}),e,r)));exports.AnchorLink=It;exports.Button=pe;exports.Checkbox=Wn;exports.ColumnContext=Zt;exports.ComponentNodeContext=it;exports.ComponentPropertyContext=Ft;exports.Confirm=zr;exports.ContainerContext=_t;exports.ConversationContext=qt;exports.DateFormats=wn;exports.Drawer=Ls;exports.DrawerAnimationType=sn;exports.Dropdown=As;exports.Empty=on;exports.Grid=Bs;exports.Html=mt;exports.Icon=an;exports.Input=Vs;exports.ItemList=un;exports.ItemTree=Is;exports.Lightbox=yn;exports.Link=He;exports.List=cn;exports.Modal=bn;exports.NotFound=_r;exports.Overlay=bt;exports.Paragraph=ln;exports.Portal=le;exports.RouteLink=gn;exports.RoutingContext=Kt;exports.StyledText=Je;exports.SymbolBadge=ue;exports.TabStop=Yr;exports.Text=Te;exports.TextLink=Cn;exports.Timestamp=Ur;exports.Tooltip=Xr;exports.TransitionComponent=eo;exports.Typography=ce;exports.WidgetLink=kn;exports.WidgetOverlayOutlet=to;exports.borderTabStyle=F;exports.browser=Ye;exports.buttonCss=en;exports.contentBox=ft;exports.convertToStringAttributes=T;exports.createEmptyComponent=Pn;exports.createReactComponent=so;exports.defaultRenderInstructions=Vt;exports.embeddedLinkMapper=Tt;exports.filterCssProps=nt;exports.filterCssPropsStyle=Dt;exports.genericHashLink=At;exports.genericHtml=ks;exports.headingElement=fe;exports.imageLightboxRenderer=zt;exports.invertedHoverButton=bs;exports.itemList=ws;exports.linkTabStyle=tn;exports.list=nn;exports.paddedBorderTabStyle=Cs;exports.processHtmlString=Bt;exports.transitionComposer=$e;exports.useAction=Un;exports.useChildren=as;exports.useColumns=cs;exports.useComponent=ls;exports.useComponentDescriptor=Re;exports.useComponentNode=Ne;exports.useComponentPlatform=ne;exports.useContainer=A;exports.useContext=Qt;exports.useConversation=us;exports.useDispatch=ds;exports.useEventListener=z;exports.useEvents=Gt;exports.useIsMounted=V;exports.useIsTabbing=hs;exports.useKeyPress=te;exports.useLayout=fs;exports.usePrevious=lt;exports.useProperties=ps;exports.useRenderState=ms;exports.useRouteData=gs;exports.useRouter=ut;exports.useScroll=dt;exports.useSettings=vs;exports.useToggle=ht;exports.useTransitionEnd=xs;exports.useUniqueMenu=Oe;exports.useWidgetEvent=me;
732
+ `,is=(e,t,n,o,r)=>e.getAsync("componentResolver").then(a=>(a.registerComponent(t,i.lazy(()=>n)),T.extendComponent(e,t,o||(()=>{}),t,r)));exports.AnchorLink=We;exports.Button=K;exports.Checkbox=Et;exports.ColumnContext=Ie;exports.ComponentNodeContext=he;exports.ComponentPropertyContext=Oe;exports.Confirm=An;exports.ContainerContext=Ze;exports.ConversationContext=Fe;exports.DateFormats=ct;exports.Drawer=Qt;exports.DrawerAnimationType=Xe;exports.Dropdown=rn;exports.Empty=Ge;exports.Grid=ln;exports.Html=be;exports.Icon=Qe;exports.Input=dn;exports.ItemList=tt;exports.ItemTree=fn;exports.Lightbox=st;exports.Link=oe;exports.List=Je;exports.Modal=it;exports.NotFound=Yn;exports.Overlay=ve;exports.Paragraph=et;exports.Portal=A;exports.RouteLink=nt;exports.RoutingContext=Ae;exports.StyledText=le;exports.SymbolBadge=F;exports.TabStop=Gn;exports.Text=te;exports.TextLink=at;exports.Timestamp=Qn;exports.Tooltip=es;exports.TransitionComponent=ss;exports.Typography=O;exports.WidgetLink=lt;exports.WidgetOverlayOutlet=os;exports.borderTabStyle=D;exports.browser=ce;exports.buttonCss=Ye;exports.contentBox=Ce;exports.convertToStringAttributes=S;exports.createEmptyComponent=Lt;exports.createReactComponent=is;exports.defaultRenderInstructions=Ve;exports.embeddedLinkMapper=Ne;exports.filterCssProps=fe;exports.filterCssPropsStyle=Te;exports.genericHashLink=De;exports.genericHtml=qt;exports.headingElement=P;exports.imageLightboxRenderer=ze;exports.invertedHoverButton=Pt;exports.itemList=Yt;exports.linkTabStyle=qe;exports.list=Ue;exports.paddedBorderTabStyle=Kt;exports.processHtmlString=Be;exports.transitionComposer=G;exports.useAction=Mt;exports.useChildren=Ht;exports.useColumns=Nt;exports.useComponent=Tt;exports.useComponentDescriptor=Q;exports.useComponentNode=J;exports.useComponentPlatform=I;exports.useContainer=R;exports.useContext=Pe;exports.useConversation=Dt;exports.useDispatch=Bt;exports.useEventListener=H;exports.useEvents=Ke;exports.useIsMounted=N;exports.useIsTabbing=zt;exports.useKeyPress=Z;exports.useLayout=Vt;exports.usePrevious=me;exports.useProperties=Wt;exports.useRenderState=Zt;exports.useRouteData=It;exports.useRouter=pe;exports.useScroll=ge;exports.useSettings=At;exports.useToggle=xe;exports.useTransitionEnd=Ft;exports.useUniqueMenu=ee;exports.useWidgetEvent=Y;