@telia-ace/widget-ui 1.3.28-rc.1 → 1.3.28

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 +64 -64
  2. package/index.mjs +291 -272
  3. package/package.json +4 -4
package/index.js CHANGED
@@ -1,19 +1,19 @@
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 U=(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"),C=require("@emotion/styled"),i=require("react"),de=require("react-transition-group"),Ne=require("@webprovisions/platform"),D=require("@telia-ace/widget-core"),vt=require("react-dom"),Re=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",V={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`
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 U=(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"),C=require("@emotion/styled"),a=require("react"),de=require("react-transition-group"),Ne=require("@webprovisions/platform"),D=require("@telia-ace/widget-core"),vt=require("react-dom"),Re=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",V={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(" "),i=jt.indexOf(r[0])>-1?"transform":"opacity";if(wt(e))return r&&r.length>0?w.css`
2
2
  ${r&&r.length>0&&r.map(f=>V[f]?V[f].in:"")}
3
- transition: ${a} ${n.duration}ms ${n.easing};
3
+ transition: ${i} ${n.duration}ms ${n.easing};
4
4
  `:"";const l=r&&r.length>0&&w.css`
5
5
  ${r.map(f=>V[f]?V[f].out:"")}
6
6
  `;if(kt(e)){const f=o.transitionKeys.split(" ");return f&&f.length>0&&e==="exiting"?w.css`
7
7
  ${l};
8
8
  ${f.map(c=>V[c]?V[c].out:"")}
9
- transition: ${a} ${o.duration}ms ${o.easing};
10
- `:l}},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=>V[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:l,chrome:f,CSS:c}=window,u=!!e&&!!e.addons||!!t||navigator.userAgent.indexOf(" OPR/")>=0;if(u)return"opera";if(n)return"firefox";const d=(g=>g.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&&l)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)&&c)return"blink"},$t=["string","number"],R=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),He=e=>({children:t,...n})=>{const{implementation:o,name:r}=e.get("$widget"),{href:a=""}=n;if(St(a))return s.jsx(Ve,{smooth:!0,to:a,children:t});const l=o.bindings.map(u=>u.replace(/\./g,"\\.")).join("|"),c=new RegExp(`^((http[s]?:)?//)?(${l})/([^\\s]+)`).exec(a);if(c&&c.length>=4){const u=c[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`
9
+ transition: ${i} ${o.duration}ms ${o.easing};
10
+ `:l}},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=>V[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:i,StyleMedia:l,chrome:f,CSS:c}=window,u=!!e&&!!e.addons||!!t||navigator.userAgent.indexOf(" OPR/")>=0;if(u)return"opera";if(n)return"firefox";const d=(g=>g.toString()==="[object SafariRemoteNotification]")(!r||typeof r<"u"&&r.pushNotification);if(/constructor/i.test(o)||d)return"safari";const h=!!i;if(h)return"internet-explorer";if(!h&&l)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)&&c)return"blink"},$t=["string","number"],R=e=>Object.keys(e).reduce((t,n)=>{const o=typeof e[n]>"u"?"":e[n],r=typeof o;if($t.indexOf(r)>-1){const i=n.substring(0,5);i==="data-"||i==="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),He=e=>({children:t,...n})=>{const{implementation:o,name:r}=e.get("$widget"),{href:i=""}=n;if(St(i))return s.jsx(Ve,{smooth:!0,to:i,children:t});const l=o.bindings.map(u=>u.replace(/\./g,"\\.")).join("|"),c=new RegExp(`^((http[s]?:)?//)?(${l})/([^\\s]+)`).exec(i);if(c&&c.length>=4){const u=c[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
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:l,smooth:f,to:c,...u}=e;return t==="a"&&(u.href="javascript:;"),s.jsx(t,{...u,onClick:a,children:e.children})},F=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[c]=t.split(o);r=c}}const l=((f,c,u)=>u[f]?`${c}${u[f]}`:`${c}${f}`)(o,r,e.theme.typographyVariantMapping||{});return w.css`
12
+ `},De=(e,t)=>{let n="";const o=()=>{n=""},r=d=>{const h=document.getElementById(n);return h!==null?(d(h),o(),!0):!1},i=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:l,smooth:f,to:c,...u}=e;return t==="a"&&(u.href="javascript:;"),s.jsx(t,{...u,onClick:i,children:e.children})},F=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[c]=t.split(o);r=c}}const l=((f,c,u)=>u[f]?`${c}${u[f]}`:`${c}${f}`)(o,r,e.theme.typographyVariantMapping||{});return w.css`
13
13
  ${l} {
14
14
  ${n}
15
15
  }
16
- `};function Be(e,t){return t?Re(e,t):Re(e)}const ze=e=>t=>s.jsx(st,{attrs:t,htmlBody:e}),We=(e,t)=>({transform:{a:He(e),img:ze(t)}}),Ve=e=>De(e,"a"),K=i.forwardRef(({className:e,children:t,...n},o)=>s.jsx(Et,{type:"button",className:b.appendClassNames(e,"humany-button"),...R(n),ref:o,children:t})),Et=C.button`
16
+ `};function Et(e){if(typeof e!="string")throw new TypeError("Expected HTML string");const t=document.createElement("div");t.innerHTML=e.trim();const n=Array.from(t.childNodes).map(o=>{const r=o;if(!r.tagName||!r.attributes)return r;const i=document.createElement(r.tagName);return i.innerHTML=r.innerHTML,Array.from(r.attributes).forEach(l=>{i.setAttribute(l.localName.replace(/[^\w-]/g,""),l.value)}),i});return Array.from(n).map(o=>o.tagName?o.outerHTML:o.textContent).join("")}function Be(e,t){return t?Re(Et(e),t):Re(e)}const ze=e=>t=>s.jsx(st,{attrs:t,htmlBody:e}),We=(e,t)=>({transform:{a:He(e),img:ze(t)}}),Ve=e=>De(e,"a"),K=a.forwardRef(({className:e,children:t,...n},o)=>s.jsx(Rt,{type:"button",className:b.appendClassNames(e,"humany-button"),...R(n),ref:o,children:t})),Rt=C.button`
17
17
  -webkit-appearance: button;
18
18
  text-transform: none;
19
19
  overflow: visible;
@@ -26,7 +26,7 @@
26
26
  line-height: normal;
27
27
  margin: 0;
28
28
  padding: 0;
29
- `,Rt=({onChange:e=()=>{},onEnter:t=()=>{},className:n,autoComplete:o="",...r})=>s.jsx("input",{className:b.appendClassNames(n,"humany-checkbox"),onKeyDown:a=>{a.key==="Enter"&&t(a)},autoComplete:o,onChange:a=>e(a.target.value,a.currentTarget.checked),...R(r)}),Ie=i.createContext(new Ne.Container),Ze=i.createContext(1),he=i.createContext({id:"",type:"",name:"",branch:""}),Oe=i.createContext({}),Ae=i.createContext(null),Pe=i.createContext(null),Q=()=>i.useContext(he),M=()=>i.useContext(Ie),Mt=(e,t)=>{const n=Q().id,o=M();return(r,a)=>{(t||o).getAsync("actionResolver").then(l=>{l.action(e||n,r,a)})}},J=e=>{const t=i.useContext(he),n=Z(),[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},T=()=>{const e=i.useRef(!1);return i.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e},Z=e=>{const t=M(),[n,o]=i.useState(null),r=T();return i.useEffect(()=>{D.ComponentPlatform.getInstance(e||t).then(a=>{r.current&&o(a)})},[r]),n},Nt=()=>{const e=J(),t=Z(),[n,o]=i.useState([]),r=T(),a=i.useCallback(l=>{if(t&&r.current&&l){const f=t.getBranch(l),c=l.getChildren(f).map(u=>D.asDescriptor(u));o(c)}},[r,t,o,e]);return i.useEffect(()=>{e&&a(e)},[e,t]),i.useEffect(()=>{if(t){const[l,f]=D.createEventSubscriber(t.events);return l("components:set-layout",(c,u)=>{(e===u.node.parent||u.node.parent===t.nodes.root)&&a(u.node.parent)}),l("components:node-appended",(c,u)=>{(e===u.node.parent||u.node.parent===t.nodes.root)&&a(u.node.parent)}),l("components:node-removed",(c,{parentNode:u})=>{(u===e||u===t.nodes.root)&&a(u)}),()=>{f()}}},[e,t,a]),n},Ht=()=>i.useContext(Ze),Tt=(e,t)=>{const n=Q(),o=M(),[r,a]=i.useState(void 0),l=T(),f=e||n.type||"";return i.useEffect(()=>{if(f){let c;return(t||o).getAsync("componentResolver").then(u=>{if(l.current){const d=u.getComponent(f);a(d)}c=u.registerResolver(f,d=>{l.current&&a(d)})}),()=>{c&&c()}}},[l,f,t,o]),r},Fe=e=>{const t=J(e),n=Z(),[o,r]=i.useState({}),a=T();return i.useEffect(()=>{t&&a.current&&r(t.attributes.context)},[a,t]),i.useEffect(()=>{if(n){const l=n.events.subscribe("components:context-changed",(f,c)=>{t===c.node&&a.current&&r(c.node.attributes.context)});return()=>{l()}}},[a,n,t]),o},Dt=()=>i.useContext(Pe),Bt=()=>{const e=Z(),t=Q(),[n,o]=i.useState([]),[r,a]=i.useState();return i.useEffect(()=>{if(e&&t){const l=new D.ComponentQuery(e).withId(t.id),f=e.actions(l,t.type||b.uuid());a(f),n!==null&&(n.forEach(c=>{f.dispatch(c.key,c.data).then(u=>c.resolve(u)).catch(u=>c.reject(u))}),o(null))}},[e,t.id]),(l,f)=>n!==null?new Promise((c,u)=>{n.push({key:l,data:f,resolve:c,reject:u})}):r.dispatch(l,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 l=f=>r.current(f);return n.addEventListener(e,l),()=>{n.removeEventListener(e,l)}},[e,n])},Ke=e=>{const t=M(),{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},I=(e,t)=>{const[n,o]=i.useState(!1),r=i.useCallback(l=>{const{key:f}=l;f===e&&(o(!0),t&&t(l))},[o,t]),a=i.useCallback(({key:l})=>{l===e&&o(!1)},[o]);return H("keydown",r,window),H("keyup",a,window),n},Wt=e=>{const t=J(e),n=Z(),[o,r]=i.useState({}),a=T();return i.useEffect(()=>{t&&a.current&&r(t.attributes.layout)},[t,a]),i.useEffect(()=>{if(n){const l=n.events.subscribe("components:layout-changed",(f,c)=>{t===c.node&&a.current&&r(c.node.attributes.layout)});return()=>{l()}}},[n,a,t]),o},me=e=>{const t=i.useRef();return i.useEffect(()=>{t.current=e}),t.current},Vt=()=>i.useContext(Oe),It=e=>{const[t,n]=i.useState(),o=M(),r=T();return i.useEffect(()=>{let a;const l=(e||o).get("$widget");if(!l)return;const{name:f,invoke:c}=l;return c("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"?D.WidgetRenderState.open:D.WidgetRenderState.closed);break;case"hide":r.current&&n(D.WidgetRenderState.hidden)}})}),()=>{a&&a()}},[r]),t},pe=()=>i.useContext(Ae),Zt=e=>{const t=M(),n=pe(),[o,r]=i.useState({name:"",params:{}}),a=T();return i.useEffect(()=>{const l=(e||t).get("$widget");if(!l)return;const{events:f}=l;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 l=n.getRouteData(),{name:f,params:c}=l;b.removeNullAndUndefinedValues(c),r({name:f,params:c})}},[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]),l=u=>f(u)?u===t.current?u:null:u.parentElement?l(u.parentElement):null,f=u=>u.scrollWidth>u.clientWidth||u.scrollHeight>u.clientHeight,c=i.useCallback(u=>{if(!u.cancelable)return;const d=u.touches[0].clientY,h=l(u.target);if(!h)return;const m=h.scrollTop,g=n.current-d<0?"up":"down",p=m<=0&&g==="up",x=m>=h.scrollHeight-h.offsetHeight&&g==="down";(p||x)&&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",c,t.current,()=>t.current&&e),e?[Ot,t]:["",t]},Ot=`
29
+ `,Mt=({onChange:e=()=>{},onEnter:t=()=>{},className:n,autoComplete:o="",...r})=>s.jsx("input",{className:b.appendClassNames(n,"humany-checkbox"),onKeyDown:i=>{i.key==="Enter"&&t(i)},autoComplete:o,onChange:i=>e(i.target.value,i.currentTarget.checked),...R(r)}),Ie=a.createContext(new Ne.Container),Ze=a.createContext(1),he=a.createContext({id:"",type:"",name:"",branch:""}),Oe=a.createContext({}),Ae=a.createContext(null),Pe=a.createContext(null),Q=()=>a.useContext(he),M=()=>a.useContext(Ie),Nt=(e,t)=>{const n=Q().id,o=M();return(r,i)=>{(t||o).getAsync("actionResolver").then(l=>{l.action(e||n,r,i)})}},J=e=>{const t=a.useContext(he),n=Z(),[o,r]=a.useState();return a.useEffect(()=>{if((e||t.id)&&n){const i=n.nodes.get(e||t.id);r(i)}},[e,t.id,n]),o},T=()=>{const e=a.useRef(!1);return a.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e},Z=e=>{const t=M(),[n,o]=a.useState(null),r=T();return a.useEffect(()=>{D.ComponentPlatform.getInstance(e||t).then(i=>{r.current&&o(i)})},[r]),n},Ht=()=>{const e=J(),t=Z(),[n,o]=a.useState([]),r=T(),i=a.useCallback(l=>{if(t&&r.current&&l){const f=t.getBranch(l),c=l.getChildren(f).map(u=>D.asDescriptor(u));o(c)}},[r,t,o,e]);return a.useEffect(()=>{e&&i(e)},[e,t]),a.useEffect(()=>{if(t){const[l,f]=D.createEventSubscriber(t.events);return l("components:set-layout",(c,u)=>{(e===u.node.parent||u.node.parent===t.nodes.root)&&i(u.node.parent)}),l("components:node-appended",(c,u)=>{(e===u.node.parent||u.node.parent===t.nodes.root)&&i(u.node.parent)}),l("components:node-removed",(c,{parentNode:u})=>{(u===e||u===t.nodes.root)&&i(u)}),()=>{f()}}},[e,t,i]),n},Tt=()=>a.useContext(Ze),Dt=(e,t)=>{const n=Q(),o=M(),[r,i]=a.useState(void 0),l=T(),f=e||n.type||"";return a.useEffect(()=>{if(f){let c;return(t||o).getAsync("componentResolver").then(u=>{if(l.current){const d=u.getComponent(f);i(d)}c=u.registerResolver(f,d=>{l.current&&i(d)})}),()=>{c&&c()}}},[l,f,t,o]),r},Fe=e=>{const t=J(e),n=Z(),[o,r]=a.useState({}),i=T();return a.useEffect(()=>{t&&i.current&&r(t.attributes.context)},[i,t]),a.useEffect(()=>{if(n){const l=n.events.subscribe("components:context-changed",(f,c)=>{t===c.node&&i.current&&r(c.node.attributes.context)});return()=>{l()}}},[i,n,t]),o},Bt=()=>a.useContext(Pe),zt=()=>{const e=Z(),t=Q(),[n,o]=a.useState([]),[r,i]=a.useState();return a.useEffect(()=>{if(e&&t){const l=new D.ComponentQuery(e).withId(t.id),f=e.actions(l,t.type||b.uuid());i(f),n!==null&&(n.forEach(c=>{f.dispatch(c.key,c.data).then(u=>c.resolve(u)).catch(u=>c.reject(u))}),o(null))}},[e,t.id]),(l,f)=>n!==null?new Promise((c,u)=>{n.push({key:l,data:f,resolve:c,reject:u})}):r.dispatch(l,f)},H=(e,t,n=window,o=()=>!0)=>{const r=a.useRef(()=>{});a.useEffect(()=>{r.current=t},[t]),a.useEffect(()=>{if(!(n&&o()))return;const l=f=>r.current(f);return n.addEventListener(e,l),()=>{n.removeEventListener(e,l)}},[e,n])},Ke=e=>{const t=M(),{events:n}=(e||t).get("$widget");return n},Wt=()=>{const[e,t]=a.useState(!1);return a.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},I=(e,t)=>{const[n,o]=a.useState(!1),r=a.useCallback(l=>{const{key:f}=l;f===e&&(o(!0),t&&t(l))},[o,t]),i=a.useCallback(({key:l})=>{l===e&&o(!1)},[o]);return H("keydown",r,window),H("keyup",i,window),n},Vt=e=>{const t=J(e),n=Z(),[o,r]=a.useState({}),i=T();return a.useEffect(()=>{t&&i.current&&r(t.attributes.layout)},[t,i]),a.useEffect(()=>{if(n){const l=n.events.subscribe("components:layout-changed",(f,c)=>{t===c.node&&i.current&&r(c.node.attributes.layout)});return()=>{l()}}},[n,i,t]),o},me=e=>{const t=a.useRef();return a.useEffect(()=>{t.current=e}),t.current},It=()=>a.useContext(Oe),Zt=e=>{const[t,n]=a.useState(),o=M(),r=T();return a.useEffect(()=>{let i;const l=(e||o).get("$widget");if(!l)return;const{name:f,invoke:c}=l;return c("renderState").then(u=>{r.current&&n(u)}),(e||o).getAsync("actionResolver").then(u=>{i=u.subscribe(f,(d,h)=>{switch(h){case"close":case"open":r.current&&n(h==="open"?D.WidgetRenderState.open:D.WidgetRenderState.closed);break;case"hide":r.current&&n(D.WidgetRenderState.hidden)}})}),()=>{i&&i()}},[r]),t},pe=()=>a.useContext(Ae),Ot=e=>{const t=M(),n=pe(),[o,r]=a.useState({name:"",params:{}}),i=T();return a.useEffect(()=>{const l=(e||t).get("$widget");if(!l)return;const{events:f}=l;return f.subscribe("router:change",(u,{next:{routeData:d}})=>{if(i.current){const{name:h,params:m}=d;b.removeNullAndUndefinedValues(m),r({name:h,params:m})}})},[i,e,t]),a.useEffect(()=>{if(n&&n.history&&i.current){const l=n.getRouteData(),{name:f,params:c}=l;b.removeNullAndUndefinedValues(c),r({name:f,params:c})}},[n,i]),o},ge=e=>{const t=a.useRef(),n=a.useRef(0);let o;const r=a.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]),i=a.useCallback(u=>{n.current=u.touches[0].clientY},[t]),l=u=>f(u)?u===t.current?u:null:u.parentElement?l(u.parentElement):null,f=u=>u.scrollWidth>u.clientWidth||u.scrollHeight>u.clientHeight,c=a.useCallback(u=>{if(!u.cancelable)return;const d=u.touches[0].clientY,h=l(u.target);if(!h)return;const m=h.scrollTop,g=n.current-d<0?"up":"down",p=m<=0&&g==="up",x=m>=h.scrollHeight-h.offsetHeight&&g==="down";(p||x)&&u.preventDefault(),n.current=d},[t,n]);return H("scroll",r,t.current,()=>t.current&&e),H("touchstart",i,t.current,()=>t.current&&e),H("touchmove",c,t.current,()=>t.current&&e),e?[At,t]:["",t]},At=`
30
30
  overflow-y: ${ce()===ae.Chrome||ce()===ae.EdgeChromium?"overlay":"auto"};
31
31
  overflow-x: hidden;
32
32
  -ms-overflow-style: none; /* IE 10+ */
@@ -54,7 +54,7 @@
54
54
  background-color: #7F7F7F;
55
55
  }
56
56
  }
57
- `,At=()=>{const[e,t]=i.useState(null),n=M(),o=T();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]},Pt=e=>{const t=M(),n=Z(),o=t.get("widgetDOMElement"),[r,a]=i.useState(null),[l,f]=i.useState(null),c=T();i.useEffect(()=>{if(n&&c.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=(x="")=>o==null?void 0:o.querySelector(`[data-node-id="${x}"]`),g=m(h==null?void 0:h.id);g&&a(g);const p=m(d==null?void 0:d.id);p&&f(p)}}},[n,t,c]);const u=i.useCallback(d=>{c.current&&(d.target===r||d.target===l)&&e()},[e,c,r,l]);H("transitionend",u,r),H("transitionend",u,l)},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"),...R(n),children:t})),Ce=e=>w.css`
57
+ `,Pt=()=>{const[e,t]=a.useState(null),n=M(),o=T();return a.useEffect(()=>{n.get("settings").then(r=>{o.current&&t(r)})},[o]),e},xe=(e=!1)=>{const[t,n]=a.useState(e),o=a.useCallback(r=>{n(typeof r=="boolean"?r:i=>!i)},[]);return[t,o]},Ft=e=>{const t=M(),n=Z(),o=t.get("widgetDOMElement"),[r,i]=a.useState(null),[l,f]=a.useState(null),c=T();a.useEffect(()=>{if(n&&c.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=(x="")=>o==null?void 0:o.querySelector(`[data-node-id="${x}"]`),g=m(h==null?void 0:h.id);g&&i(g);const p=m(d==null?void 0:d.id);p&&f(p)}}},[n,t,c]);const u=a.useCallback(d=>{c.current&&(d.target===r||d.target===l)&&e()},[e,c,r,l]);H("transitionend",u,r),H("transitionend",u,l)},Y=(e,t,n=[],o)=>{const r=Ke(o);return a.useEffect(()=>{if(r){const i=r.subscribe(e,t);return()=>{i()}}},[r].concat(n)),i=>r==null?void 0:r.dispatch(e,i)},ee=(e,t)=>{const n=Y("widget:menu-toggled",(o,r)=>{r!==e&&t()});return()=>n(e)},te=a.forwardRef(({className:e,children:t,...n},o)=>s.jsx("span",{ref:o,className:b.appendClassNames(e,"humany-text"),...R(n),children:t})),Ce=e=>w.css`
58
58
  display: flex;
59
59
  justify-content: center;
60
60
  flex-direction: column;
@@ -72,7 +72,7 @@
72
72
  border-radius: ${e.theme.borderRadius};
73
73
  font-family: ${(n=e.theme.fonts)==null?void 0:n.type};
74
74
  font-size: ${(o=e.theme.fonts)==null?void 0:o.normal};
75
- `},Ft=e=>{var l;const{primaryColor:t,secondaryColor:n,active:o,theme:r,disabled:a}=e;return w.css`
75
+ `},Kt=e=>{var l;const{primaryColor:t,secondaryColor:n,active:o,theme:r,disabled:i}=e;return w.css`
76
76
  ${Ye(e)}
77
77
  border: 1px solid ${o?n:t};
78
78
  background-color: ${o?t:n};
@@ -89,7 +89,7 @@
89
89
  font-size: ${(l=r.fonts)==null?void 0:l.normal};
90
90
  }
91
91
 
92
- ${!a&&w.css`
92
+ ${!i&&w.css`
93
93
  &:hover {
94
94
  background-color: ${t};
95
95
  color: ${n};
@@ -113,7 +113,7 @@
113
113
  `},qe=e=>w.css`
114
114
  ${B(e)}
115
115
  text-decoration: underline;
116
- `,Kt=e=>{var t;return w.css`
116
+ `,Yt=e=>{var t;return w.css`
117
117
  ${B(e)}
118
118
  outline-offset: ${(t=e.theme.sizes)==null?void 0:t.small};
119
119
  `},ye=C(K)`
@@ -156,7 +156,7 @@
156
156
  > li:last-of-type {
157
157
  margin: 0;
158
158
  }
159
- `},Yt=e=>{var t,n,o,r;return w.css`
159
+ `},qt=e=>{var t,n,o,r;return w.css`
160
160
  > div {
161
161
  ${F(e)("> h1",w.css`
162
162
  margin: 0 0 ${(t=e.theme.sizes)==null?void 0:t.normal};
@@ -183,7 +183,7 @@
183
183
  text-align: center;
184
184
  }
185
185
  `)}
186
- `},qt=e=>{var t,n,o,r,a,l;return w.css`
186
+ `},Xt=e=>{var t,n,o,r,i,l;return w.css`
187
187
  font-size: ${(t=e.theme.fonts)==null?void 0:t.normal};
188
188
  font-weight: 300;
189
189
  line-height: 1.5em;
@@ -225,7 +225,7 @@
225
225
  }
226
226
 
227
227
  p:first-child {
228
- margin: 0 0 ${(a=e.theme.sizes)==null?void 0:a.normal};
228
+ margin: 0 0 ${(i=e.theme.sizes)==null?void 0:i.normal};
229
229
  }
230
230
 
231
231
  p:last-child {
@@ -235,9 +235,9 @@
235
235
  p:only-child {
236
236
  margin: 0;
237
237
  }
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)},P=({text:e="",backgroundSize:t="contain",size:n=12,symbol:o={content:"",type:""},elementStyle:r={},className:a,...l})=>{const{type:f,content:c}=o,u={"aria-label":e,role:"presentation"};switch(f){case"Uri":{const d={backgroundSize:t,backgroundImage:`url('${c}')`,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,...l})}case"Svg":{const d={className:b.appendClassNames(a,"humany-icon"),width:`${n}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,ref:null},h={minWidth:`${n}`};switch(c){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(Xt,{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:c,title:e,...l});default:case"Text":return e?s.jsx("i",{className:b.appendClassNames(a,"humany-letter-symbol"),title:e,...u,...l,children:e.substring(0,2)}):null}},Xt=C.svg`
238
+ `},A=({elementId:e="humany-portal-elements",parent:t=document.body,children:n})=>{const[o]=a.useState(()=>{const r=document.getElementById(e)||document.createElement("div");return r.id=e,r});return a.useEffect(()=>(t.appendChild(o),()=>{o.childElementCount<=1&&o.remove()}),[o]),vt.createPortal(n,o)},P=({text:e="",backgroundSize:t="contain",size:n=12,symbol:o={content:"",type:""},elementStyle:r={},className:i,...l})=>{const{type:f,content:c}=o,u={"aria-label":e,role:"presentation"};switch(f){case"Uri":{const d={backgroundSize:t,backgroundImage:`url('${c}')`,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundAttachment:"center"};return s.jsx("i",{className:b.appendClassNames(i,"humany-icon","humany-custom-icon"),title:e,style:{...d,...r},...u,...l})}case"Svg":{const d={className:b.appendClassNames(i,"humany-icon"),width:`${n}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,ref:null},h={minWidth:`${n}`};switch(c){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(_t,{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:i,faIcon:c,title:e,...l});default:case"Text":return e?s.jsx("i",{className:b.appendClassNames(i,"humany-letter-symbol"),title:e,...u,...l,children:e.substring(0,2)}):null}},_t=C.svg`
239
239
  transform: rotate(180deg);
240
- `,_t={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={}}=Fe(),a={..._t,...r},l=t||a[e]||"span";return s.jsx(Ut,{className:n,as:l,children:o})},Ut=C.span``;var _e=(e=>(e.SlideInLeft="slide-in-left",e.SlideInRight="slide-in-right",e.SlideInBottom="slide-in-bottom",e.SlideInTop="slide-in-top",e))(_e||{});const Gt=300,Qt=({className:e,children:t,header:n,onToggle:o,trigger:r,fullScreen:a=!1,closeButtonAriaLabel:l,animation:f={type:"slide-in-bottom"}})=>{const{duration:c=Gt}=f,u=i.useRef(),d=i.useRef(),[h,m]=ge(!0),[g,p]=xe(),x=me(g),y=i.useRef(b.uuid());i.useEffect(()=>{o&&o(g)},[g]);const k=I("Escape");i.useEffect(()=>{k&&p(!1)},[k]),H("click",j=>{const{target:S}=j;!d.current||!m.current||!S||d.current!==S&&m.current!==S&&!m.current.contains(S)&&!d.current.contains(S)&&p(!1)},window);const $=ee(y.current,()=>{p(!1)});Y("router:changed",()=>{p(!1)}),i.useEffect(()=>{g&&u.current?u.current.focus():!g&&d.current&&x&&d.current.focus()},[g,u.current,d.current]);const E=on[f.type];return s.jsxs(s.Fragment,{children:[s.jsx(de.CSSTransition,{in:g,className:"humany-drawer-transition",classNames:"humany-drawer-transition",unmountOnExit:!0,timeout:c,children:s.jsx(A,{children:s.jsxs(E,{duration:c,fullScreen:a,className:b.appendClassNames(e,"humany-drawer",`humany-drawer-${y.current}`),clientHeight:document.body.clientHeight,css:h,ref:m,children:[s.jsx(ye,{onClick:()=>p(!1),tabIndex:0,ref:u,"aria-label":l,children:s.jsx(P,{symbol:{type:"Svg",content:"close"}})}),!!n&&s.jsx(Jt,{variant:"h1",className:"humany-drawer-header",children:n}),t]})})}),i.cloneElement(r,{onClick:j=>{p(),$()},ref:d,"aria-label":r.props.title,"aria-expanded":g})]})},ne=C.div`
240
+ `,Ut={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={}}=Fe(),i={...Ut,...r},l=t||i[e]||"span";return s.jsx(Gt,{className:n,as:l,children:o})},Gt=C.span``;var _e=(e=>(e.SlideInLeft="slide-in-left",e.SlideInRight="slide-in-right",e.SlideInBottom="slide-in-bottom",e.SlideInTop="slide-in-top",e))(_e||{});const Qt=300,Jt=({className:e,children:t,header:n,onToggle:o,trigger:r,fullScreen:i=!1,closeButtonAriaLabel:l,animation:f={type:"slide-in-bottom"}})=>{const{duration:c=Qt}=f,u=a.useRef(),d=a.useRef(),[h,m]=ge(!0),[g,p]=xe(),x=me(g),y=a.useRef(b.uuid());a.useEffect(()=>{o&&o(g)},[g]);const k=I("Escape");a.useEffect(()=>{k&&p(!1)},[k]),H("click",j=>{const{target:S}=j;!d.current||!m.current||!S||d.current!==S&&m.current!==S&&!m.current.contains(S)&&!d.current.contains(S)&&p(!1)},window);const $=ee(y.current,()=>{p(!1)});Y("router:changed",()=>{p(!1)}),a.useEffect(()=>{g&&u.current?u.current.focus():!g&&d.current&&x&&d.current.focus()},[g,u.current,d.current]);const E=rn[f.type];return s.jsxs(s.Fragment,{children:[s.jsx(de.CSSTransition,{in:g,className:"humany-drawer-transition",classNames:"humany-drawer-transition",unmountOnExit:!0,timeout:c,children:s.jsx(A,{children:s.jsxs(E,{duration:c,fullScreen:i,className:b.appendClassNames(e,"humany-drawer",`humany-drawer-${y.current}`),clientHeight:document.body.clientHeight,css:h,ref:m,children:[s.jsx(ye,{onClick:()=>p(!1),tabIndex:0,ref:u,"aria-label":l,children:s.jsx(P,{symbol:{type:"Svg",content:"close"}})}),!!n&&s.jsx(en,{variant:"h1",className:"humany-drawer-header",children:n}),t]})})}),a.cloneElement(r,{onClick:j=>{p(),$()},ref:d,"aria-label":r.props.title,"aria-expanded":g})]})},ne=C.div`
241
241
  font-family: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.type}};
242
242
  font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
243
243
  position: fixed;
@@ -248,7 +248,7 @@
248
248
  box-shadow: ${e=>e.theme.boxShadow};
249
249
  background: #ffffff;
250
250
  ${e=>e.css&&e.css}
251
- `,Jt=C(O)`
251
+ `,en=C(O)`
252
252
  padding: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.normal}};
253
253
  margin: 0;
254
254
  text-align: center;
@@ -264,7 +264,7 @@
264
264
  line-height: 1.2em;
265
265
  `,se=e=>w.css`
266
266
  transition: ${e.duration}ms;
267
- `,en=C(ne)`
267
+ `,tn=C(ne)`
268
268
  max-height: 0;
269
269
  ${se}
270
270
 
@@ -281,7 +281,7 @@
281
281
  &.humany-drawer-transition-exit-done {
282
282
  max-height: 0;
283
283
  }
284
- `,tn=C(ne)`
284
+ `,nn=C(ne)`
285
285
  ${se}
286
286
  transform: translateX(100%);
287
287
  height: ${e=>e.fullScreen?"100%":"auto"};
@@ -299,7 +299,7 @@
299
299
  &.humany-drawer-transition-exit-done {
300
300
  transform: translateX(100%);
301
301
  }
302
- `,nn=C(ne)`
302
+ `,sn=C(ne)`
303
303
  ${se}
304
304
  transform: translateX(-100%);
305
305
  height: ${e=>e.fullScreen?"100%":"auto"};
@@ -317,7 +317,7 @@
317
317
  &.humany-drawer-transition-exit-done {
318
318
  transform: translateX(-100%);
319
319
  }
320
- `,sn=C(ne)`
320
+ `,on=C(ne)`
321
321
  ${se}
322
322
  bottom: unset;
323
323
  top: 0;
@@ -336,7 +336,7 @@
336
336
  &.humany-drawer-transition-exit-done {
337
337
  height: 0;
338
338
  }
339
- `,on={["slide-in-bottom"]:en,["slide-in-right"]:tn,["slide-in-left"]:nn,["slide-in-top"]:sn},Ue=(e,t,n)=>{const[o,r]=i.useState(0),[a,l]=i.useState(0),f=i.useCallback((c,u)=>{if(c.preventDefault(),u){const d=u.getBoundingClientRect();r(Math.max(document.body.clientWidth-d.right,1)),l(d.bottom+window.scrollY)}},[o,a,r,l]);return i.useEffect(()=>{if(!n||!e)return;const c=n.getBoundingClientRect(),u={x:o,y:a};c.left<0&&(u.x=0),c.bottom>window.innerHeight&&(u.y=0),u.x!==o&&r(u.x),u.y!==a&&l(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 l=i.useRef(),f=i.useRef(),c=i.useRef();i.useImperativeHandle(a,()=>c.current,[c.current]);const u=i.useRef(b.uuid()),[d,h]=i.useState(!1),m=me(d),[{x:g,y:p},x]=Ue(d,u.current,c.current),y=I("Escape");i.useEffect(()=>{y&&h(!1)},[y]),i.useEffect(()=>{d&&l.current?l.current.focus():!d&&f.current&&m&&f.current.focus()},[d,l.current,f.current]),H("click",E=>{const{target:j}=E;!c.current||!j||c.current!==j&&!c.current.contains(j)&&h(!1)},window),Y("router:changed",()=>{h(!1)});const k=ee(u.current,()=>{h(!1)}),$=i.useCallback(E=>{E.stopPropagation(),x(E,f.current),h(!d),k()},[k,x,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:g,y:p,ref:c,children:[s.jsx(ye,{onClick:()=>h(!1),tabIndex:0,ref:l,"aria-label":o,children:s.jsx(P,{symbol:{type:"Svg",content:"close"}})}),t]})}),i.cloneElement(n,{onClick:$,ref:f,"aria-label":n.props.title,"aria-expanded":d})]})}),an=C.div`
339
+ `,rn={["slide-in-bottom"]:tn,["slide-in-right"]:nn,["slide-in-left"]:sn,["slide-in-top"]:on},Ue=(e,t,n)=>{const[o,r]=a.useState(0),[i,l]=a.useState(0),f=a.useCallback((c,u)=>{if(c.preventDefault(),u){const d=u.getBoundingClientRect();r(Math.max(document.body.clientWidth-d.right,1)),l(d.bottom+window.scrollY)}},[o,i,r,l]);return a.useEffect(()=>{if(!n||!e)return;const c=n.getBoundingClientRect(),u={x:o,y:i};c.left<0&&(u.x=0),c.bottom>window.innerHeight&&(u.y=0),u.x!==o&&r(u.x),u.y!==i&&l(u.y)},[n,e,t]),[{x:o,y:i},f]},an=a.forwardRef(({className:e="",children:t=null,trigger:n,closeButtonAriaLabel:o,...r},i)=>{const l=a.useRef(),f=a.useRef(),c=a.useRef();a.useImperativeHandle(i,()=>c.current,[c.current]);const u=a.useRef(b.uuid()),[d,h]=a.useState(!1),m=me(d),[{x:g,y:p},x]=Ue(d,u.current,c.current),y=I("Escape");a.useEffect(()=>{y&&h(!1)},[y]),a.useEffect(()=>{d&&l.current?l.current.focus():!d&&f.current&&m&&f.current.focus()},[d,l.current,f.current]),H("click",E=>{const{target:j}=E;!c.current||!j||c.current!==j&&!c.current.contains(j)&&h(!1)},window),Y("router:changed",()=>{h(!1)});const k=ee(u.current,()=>{h(!1)}),$=a.useCallback(E=>{E.stopPropagation(),x(E,f.current),h(!d),k()},[k,x,h]);return s.jsxs(s.Fragment,{children:[d&&s.jsx(A,{children:s.jsxs(cn,{className:b.appendClassNames("humany-dropdown",`humany-dropdown-${u.current}`,e),...r,x:g,y:p,ref:c,children:[s.jsx(ye,{onClick:()=>h(!1),tabIndex:0,ref:l,"aria-label":o,children:s.jsx(P,{symbol:{type:"Svg",content:"close"}})}),t]})}),a.cloneElement(n,{onClick:$,ref:f,"aria-label":n.props.title,"aria-expanded":d})]})}),cn=C.div`
340
340
  ${Ce}
341
341
  padding: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.medium}};
342
342
  min-width: 150px;
@@ -344,16 +344,16 @@
344
344
  box-shadow: ${e=>e.theme.boxShadow};
345
345
 
346
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=C.div`
347
+ `,Ge=({...e})=>s.jsx(ln,{...e}),ln=C.div`
348
348
  display: none;
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),...R(r),ref:a,children:e})),un=C.div`
349
+ `,un=a.forwardRef(({children:e,columns:t,gap:n,className:o,...r},i)=>s.jsx(dn,{className:b.appendClassNames(o,"humany-grid"),"data-columns":t,"data-gap":n,...fe(r),...R(r),ref:i,children:e})),dn=C.div`
350
350
  display: grid;
351
351
  grid-template-columns: repeat(${e=>e["data-columns"]}, 1fr);
352
352
  grid-gap: ${e=>e["data-gap"]};
353
353
  justify-content: center;
354
354
  grid-auto-rows: max-content;
355
355
  ${Te}
356
- `,be=i.forwardRef(({htmlParseInstruction:e=null,className:t,html:n,...o},r)=>{const a=M(),[l,f]=i.useState();i.useEffect(()=>{const d=We(a,n),h={...d,...e,transform:{...d.transform,...e==null?void 0:e.transform}},m=Be(n,h);f(m)},[n,e]);const c=i.useRef(null),u=a.get("$widget");return i.useEffect(()=>{const d=c.current;if(!d||d.getAttribute("data-observed"))return;new MutationObserver(m=>{m.forEach(g=>{var k,$,E;let p=g.target;if(p.tagName==="DIV"&&p.matches("[data-notification]")&&p.getAttribute("data-expandable")){const j=p.firstChild;if(j&&j.nodeType===Node.TEXT_NODE){const S=document.createElement("p");S.appendChild(j),p.appendChild(S);return}else j&&j.nodeType===Node.ELEMENT_NODE&&(p=j)}else if(p.tagName!=="P"||!((k=p.closest("[data-notification]"))!=null&&k.getAttribute("data-expandable")))return;if(!(p!=null&&p.closest(".humany-notification-row")))return;const x=($=p.closest(".humany-notification-row"))==null?void 0:$.getAttribute("data-node-id"),y=(E=p.closest("[data-notification]"))==null?void 0:E.getAttribute("data-notification");p.scrollWidth>p.clientWidth?(u.container.expandableNotifications||(u.container.expandableNotifications=new Set),u.container.expandableNotifications.add(y),u.events.dispatch("notification:expandable",{expandable:!0,notificationRowId:x})):u.events.dispatch("notification:expandable",{expandable:!1,notificationRowId:x})})}).observe(d,{childList:!0,subtree:!0}),d.setAttribute("data-observed","true")},[l,u]),s.jsx("div",{className:b.appendClassNames(t,"humany-html"),...R(o),ref:c,children:l})}),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,...R(r)}),dn=i.forwardRef(({className:e="",autoFocus:t=!1,onFocusChange:n=()=>{},onEnter:o=()=>{},onEscape:r=()=>{},selectAllOnFocus:a,onChange:l=()=>{},disabled:f=!1,type:c,...u},d)=>{const[h,m]=i.useState(t),g=i.useRef();i.useImperativeHandle(d,()=>g.current),i.useEffect(()=>{var y;t&&((y=g==null?void 0:g.current)==null||y.focus())},[t,d,g]);const p=(y,k)=>{m(y),n&&n(y),a&&y&&k.target.select()},x={...R(u),disabled:f,autoFocus:t,type:c,onKeyDown:y=>{y.key==="Enter"&&h&&o(y),y.key==="Escape"&&h&&r(y)},onFocus:y=>p(!0,y),onBlur:y=>p(!1,y),onChange:y=>l(y.target.value||""),className:b.appendClassNames(e,"humany-input"),"data-type":c};return c!=="textarea"?s.jsx("input",{...x,ref:g}):s.jsx("textarea",{...x,ref:g})}),Je=i.forwardRef(({className:e,items:t,renderItem:n,renderLi:o=!1,...r},a)=>{const l=t.length===1&&t[0].expanded;return s.jsx("ul",{role:l?"none":void 0,className:b.appendClassNames(e,"humany-list"),"data-item-count":t.length,...R(r),ref:a,children:t.map((f,c,u)=>o?s.jsx("li",{className:"humany-list-item",children:n(f,c,u)},f.id||c):n(f,c,u))})}),et=i.forwardRef(({text:e,html:t,header:n,className:o,htmlParseInstruction:r,symbol:a,...l},f)=>{var u;const c=(u=window.humany)==null?void 0:u.deflectionHeaderTag;return s.jsxs("div",{className:b.appendClassNames(o,"humany-paragraph"),...R(l),ref:f,children:[n?s.jsxs(O,{variant:c&&c.match(/h1|h2|h3|h4|h5|h6/)?c:"h1",children:[a?s.jsx(P,{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:l,items:f,renderItem:c,renderLi:u,ulProps:d,...h},m)=>s.jsxs("div",{className:b.appendClassNames(r,"humany-item-list"),"data-item-count":f.length,...R(h),ref:m,children:[t||(e||n||o?s.jsx(et,{symbol:l,header:e,text:n,html:o}):null),f.length?s.jsx(Je,{items:f,renderItem:c,renderLi:u,...d}):null,a]})),fn=({className:e="",tree:t,renderItem:n,rootItem:o,renderUnselected:r=!0,renderEmpty:a=!0,ulProps:l,liProps:f})=>{const c=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:l,renderItem:g=>{const{id:p,selected:x,items:y,matches:k}=g,$=x&&u(y);return!a&&!k?null:i.createElement("li",{...R(f),key:p,className:"humany-item-tree-item"},n&&n(g,m,$),y&&(r||$)&&d(y,m+1))}});return s.jsxs("div",{className:b.appendClassNames(e,"humany-item-tree"),children:[o&&o(!c(t||[])),t&&d(t,1)]})},nt=i.forwardRef(({className:e,onClick:t=()=>{},name:n="",to:o="",params:r={},children:a,...l},f)=>{const c=pe(),u=M();if(!c)return null;let d="";const h={onClick:t,className:b.appendClassNames(e,"humany-route-link"),to:d,innerRef:f,...l,ref:null};if(n){if(!(c.routes||[]).find(x=>x.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:x=>{t(x),x.preventDefault(),process.env.NODE_ENV!=="production"&&b.Logger.warn(`Unable to navigate. No route named "${n}" exist.`)},children:a});const p=Object.keys(r).reduce((x,y)=>{const k=r[y];if(Array.isArray(k)){if(k.length===0)return x;x[y]=k.map($=>typeof $=="string"?encodeURIComponent($):$).join(",")}else x[y]=typeof k=="string"?encodeURIComponent(k):k;return x},{});try{d=c.generate(n,p||{})}catch{return s.jsx(ie.Link,{...h,ref:h.innerRef,children:a})}d&&c.settings.mode&&c.settings.mode===re.HistoryMode.browser&&d[0]!=="/"&&(d=`/${d}`)}else if(o&&c.history)d=c.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(c.settings&&c.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=C.span``,oe=i.forwardRef(({className:e,disabled:t=!1,tabIndex:n=0,onClick:o=()=>{},onKeyDown:r=()=>{},title:a,as:l,href:f,children:c,target:u,routeName:d,params:h,...m},g)=>{var E,j;const p={title:a,role:d==="index"||d==="contact-method"||t?"button":void 0,"aria-expanded":d==="index"?"false":void 0,disabled:t,as:l,tabIndex:n,className:b.appendClassNames(e,"humany-link",[!!t,"humany-disabled"]),onClick:S=>{if(S.persist(),t){S.preventDefault();return}o(S)},onKeyDown:S=>{if(S.persist(),t){S.key!=="Tab"&&S.preventDefault();return}r(S)}};m["data-client-name"]==="custom.link"&&(p.role="link");const y=M().get("$settings"),k=t&&((j=(E=y==null?void 0:y.data)==null?void 0:E.accessibility)==null?void 0:j.disableInactiveLink),$=m.description||"<p></p>";return k?s.jsxs(mn,{className:"disabled-link",children:[s.jsx("div",{className:"icon-placeholder"}),s.jsxs("div",{className:"humany-contact-link-rich-content",children:[s.jsx("span",{children:p.title}),s.jsx("div",{className:"inner-span",dangerouslySetInnerHTML:{__html:$}})]})]}):d?s.jsx(pn,{name:d,params:h,...p,...R(m),ref:g,children:c}):s.jsx(gn,{href:f,target:u,...p,...R(m),ref:g,children:c})}),mn=C.div`
356
+ `,be=a.forwardRef(({htmlParseInstruction:e=null,className:t,html:n,...o},r)=>{const i=M(),[l,f]=a.useState();a.useEffect(()=>{const d=We(i,n),h={...d,...e,transform:{...d.transform,...e==null?void 0:e.transform}},m=Be(n,h);f(m)},[n,e]);const c=a.useRef(null),u=i.get("$widget");return a.useEffect(()=>{const d=c.current;if(!d||d.getAttribute("data-observed"))return;new MutationObserver(m=>{m.forEach(g=>{var k,$,E;let p=g.target;if(p.tagName==="DIV"&&p.matches("[data-notification]")&&p.getAttribute("data-expandable")){const j=p.firstChild;if(j&&j.nodeType===Node.TEXT_NODE){const S=document.createElement("p");S.appendChild(j),p.appendChild(S);return}else j&&j.nodeType===Node.ELEMENT_NODE&&(p=j)}else if(p.tagName!=="P"||!((k=p.closest("[data-notification]"))!=null&&k.getAttribute("data-expandable")))return;if(!(p!=null&&p.closest(".humany-notification-row")))return;const x=($=p.closest(".humany-notification-row"))==null?void 0:$.getAttribute("data-node-id"),y=(E=p.closest("[data-notification]"))==null?void 0:E.getAttribute("data-notification");p.scrollWidth>p.clientWidth?(u.container.expandableNotifications||(u.container.expandableNotifications=new Set),u.container.expandableNotifications.add(y),u.events.dispatch("notification:expandable",{expandable:!0,notificationRowId:x})):u.events.dispatch("notification:expandable",{expandable:!1,notificationRowId:x})})}).observe(d,{childList:!0,subtree:!0}),d.setAttribute("data-observed","true")},[l,u]),s.jsx("div",{className:b.appendClassNames(t,"humany-html"),...R(o),ref:c,children:l})}),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,...R(r)}),fn=a.forwardRef(({className:e="",autoFocus:t=!1,onFocusChange:n=()=>{},onEnter:o=()=>{},onEscape:r=()=>{},selectAllOnFocus:i,onChange:l=()=>{},disabled:f=!1,type:c,...u},d)=>{const[h,m]=a.useState(t),g=a.useRef();a.useImperativeHandle(d,()=>g.current),a.useEffect(()=>{var y;t&&((y=g==null?void 0:g.current)==null||y.focus())},[t,d,g]);const p=(y,k)=>{m(y),n&&n(y),i&&y&&k.target.select()},x={...R(u),disabled:f,autoFocus:t,type:c,onKeyDown:y=>{y.key==="Enter"&&h&&o(y),y.key==="Escape"&&h&&r(y)},onFocus:y=>p(!0,y),onBlur:y=>p(!1,y),onChange:y=>l(y.target.value||""),className:b.appendClassNames(e,"humany-input"),"data-type":c};return c!=="textarea"?s.jsx("input",{...x,ref:g}):s.jsx("textarea",{...x,ref:g})}),Je=a.forwardRef(({className:e,items:t,renderItem:n,renderLi:o=!1,...r},i)=>{const l=t.length===1&&t[0].expanded;return s.jsx("ul",{role:l?"none":void 0,className:b.appendClassNames(e,"humany-list"),"data-item-count":t.length,...R(r),ref:i,children:t.map((f,c,u)=>o?s.jsx("li",{className:"humany-list-item",children:n(f,c,u)},f.id||c):n(f,c,u))})}),et=a.forwardRef(({text:e,html:t,header:n,className:o,htmlParseInstruction:r,symbol:i,...l},f)=>{var u;const c=(u=window.humany)==null?void 0:u.deflectionHeaderTag;return s.jsxs("div",{className:b.appendClassNames(o,"humany-paragraph"),...R(l),ref:f,children:[n?s.jsxs(O,{variant:c&&c.match(/h1|h2|h3|h4|h5|h6/)?c:"h1",children:[i?s.jsx(P,{symbol:i}):null,n]}):null,t?s.jsx(be,{html:t,htmlParseInstruction:r}):null,e?s.jsx(te,{children:e}):null]})}),tt=a.forwardRef(({header:e,customHeader:t,text:n,html:o,className:r,children:i,symbol:l,items:f,renderItem:c,renderLi:u,ulProps:d,...h},m)=>s.jsxs("div",{className:b.appendClassNames(r,"humany-item-list"),"data-item-count":f.length,...R(h),ref:m,children:[t||(e||n||o?s.jsx(et,{symbol:l,header:e,text:n,html:o}):null),f.length?s.jsx(Je,{items:f,renderItem:c,renderLi:u,...d}):null,i]})),hn=({className:e="",tree:t,renderItem:n,rootItem:o,renderUnselected:r=!0,renderEmpty:i=!0,ulProps:l,liProps:f})=>{const c=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:l,renderItem:g=>{const{id:p,selected:x,items:y,matches:k}=g,$=x&&u(y);return!i&&!k?null:a.createElement("li",{...R(f),key:p,className:"humany-item-tree-item"},n&&n(g,m,$),y&&(r||$)&&d(y,m+1))}});return s.jsxs("div",{className:b.appendClassNames(e,"humany-item-tree"),children:[o&&o(!c(t||[])),t&&d(t,1)]})},nt=a.forwardRef(({className:e,onClick:t=()=>{},name:n="",to:o="",params:r={},children:i,...l},f)=>{const c=pe(),u=M();if(!c)return null;let d="";const h={onClick:t,className:b.appendClassNames(e,"humany-route-link"),to:d,innerRef:f,...l,ref:null};if(n){if(!(c.routes||[]).find(x=>x.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:x=>{t(x),x.preventDefault(),process.env.NODE_ENV!=="production"&&b.Logger.warn(`Unable to navigate. No route named "${n}" exist.`)},children:i});const p=Object.keys(r).reduce((x,y)=>{const k=r[y];if(Array.isArray(k)){if(k.length===0)return x;x[y]=k.map($=>typeof $=="string"?encodeURIComponent($):$).join(",")}else x[y]=typeof k=="string"?encodeURIComponent(k):k;return x},{});try{d=c.generate(n,p||{})}catch{return s.jsx(ie.Link,{...h,ref:h.innerRef,children:i})}d&&c.settings.mode&&c.settings.mode===re.HistoryMode.browser&&d[0]!=="/"&&(d=`/${d}`)}else if(o&&c.history)d=c.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(c.settings&&c.settings.mode===re.HistoryMode.scopedHash){const m=u.get("$widget").name;d=re.getSpecificWidgetPath(d,m)}return h.as?s.jsx(mn,{...h,as:h.as,children:i}):s.jsx(ie.Link,{...h,to:d,children:i})}),mn=C.span``,oe=a.forwardRef(({className:e,disabled:t=!1,tabIndex:n=0,onClick:o=()=>{},onKeyDown:r=()=>{},title:i,as:l,href:f,children:c,target:u,routeName:d,params:h,...m},g)=>{var E,j;const p={title:i,role:d==="index"||d==="contact-method"||t?"button":void 0,"aria-expanded":d==="index"?"false":void 0,disabled:t,as:l,tabIndex:n,className:b.appendClassNames(e,"humany-link",[!!t,"humany-disabled"]),onClick:S=>{if(S.persist(),t){S.preventDefault();return}o(S)},onKeyDown:S=>{if(S.persist(),t){S.key!=="Tab"&&S.preventDefault();return}r(S)}};m["data-client-name"]==="custom.link"&&(p.role="link");const y=M().get("$settings"),k=t&&((j=(E=y==null?void 0:y.data)==null?void 0:E.accessibility)==null?void 0:j.disableInactiveLink),$=m.description||"<p></p>";return k?s.jsxs(pn,{className:"disabled-link",children:[s.jsx("div",{className:"icon-placeholder"}),s.jsxs("div",{className:"humany-contact-link-rich-content",children:[s.jsx("span",{children:p.title}),s.jsx("div",{className:"inner-span",dangerouslySetInnerHTML:{__html:$}})]})]}):d?s.jsx(gn,{name:d,params:h,...p,...R(m),ref:g,children:c}):s.jsx(xn,{href:f,target:u,...p,...R(m),ref:g,children:c})}),pn=C.div`
357
357
  display: flex;
358
358
  opacity: 0.7;
359
359
  .inner-span {
@@ -373,17 +373,17 @@
373
373
  vertical-align: bottom;
374
374
  color: #333333;
375
375
  }
376
- `,pn=C(nt)`
376
+ `,gn=C(nt)`
377
377
  ${e=>e.disabled?`
378
378
  pointer-events: none;
379
379
  opacity: .7;
380
380
  `:"cursor: pointer;"}
381
- `,gn=C.a`
381
+ `,xn=C.a`
382
382
  ${e=>e.disabled?`
383
383
  pointer-events: none;
384
384
  opacity: .7;
385
385
  `:"cursor: pointer;"}
386
- `,ve=({visible:e,duration:t=500,children:n,onClick:o=()=>{},...r})=>{const a=i.useRef(),l=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(xn,{className:"humany-overlay",duration:t,ref:a,onClick:l,...r,children:n})})})},xn=C.div`
386
+ `,ve=({visible:e,duration:t=500,children:n,onClick:o=()=>{},...r})=>{const i=a.useRef(),l=a.useCallback(f=>{f.target===i.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(Cn,{className:"humany-overlay",duration:t,ref:i,onClick:l,...r,children:n})})})},Cn=C.div`
387
387
  background: rgba(0, 0, 0, 0.6);
388
388
  min-width: 100%;
389
389
  min-height: 100%;
@@ -413,11 +413,11 @@
413
413
  &.humany-overlay-transition-exit-done {
414
414
  opacity: 0;
415
415
  }
416
- `,Cn=w.keyframes`
416
+ `,yn=w.keyframes`
417
417
  100% {
418
418
  transform: rotate(360deg);
419
419
  }
420
- `,yn=w.keyframes`
420
+ `,bn=w.keyframes`
421
421
  0% {
422
422
  stroke-dasharray: 1, 200;
423
423
  stroke-dashoffset: 0;
@@ -430,8 +430,8 @@
430
430
  stroke-dasharray: 89, 200;
431
431
  stroke-dashoffset: -124px;
432
432
  }
433
- `,bn=C.svg`
434
- animation: ${Cn} 2s linear infinite;
433
+ `,vn=C.svg`
434
+ animation: ${yn} 2s linear infinite;
435
435
  height: 100%;
436
436
  transform-origin: center center;
437
437
  width: 100%;
@@ -442,7 +442,7 @@
442
442
  right: 0;
443
443
  margin: auto;
444
444
  transition: 200ms ease-out opacity;
445
- `,vn=C.div`
445
+ `,wn=C.div`
446
446
  position: absolute;
447
447
  top: 0;
448
448
  bottom: 0;
@@ -460,7 +460,7 @@
460
460
  svg {
461
461
  opacity: ${e=>e["data-loading"]?"1":"0"};
462
462
  }
463
- `,wn=C.div`
463
+ `,kn=C.div`
464
464
  position: relative;
465
465
  margin: 0 auto;
466
466
  width: 100px;
@@ -469,18 +469,18 @@
469
469
  display: block;
470
470
  padding-top: 100%;
471
471
  }
472
- `,kn=C.circle`
472
+ `,jn=C.circle`
473
473
  stroke-dasharray: 1, 200;
474
474
  stroke-dashoffset: 0;
475
- animation: ${yn} 1.5s ease-in-out infinite;
475
+ animation: ${bn} 1.5s ease-in-out infinite;
476
476
  stroke-linecap: round;
477
477
  stroke: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
478
478
  stroke-width: 2px;
479
- `,jn=({className:e,loading:t=!1})=>s.jsx(vn,{className:b.appendClassNames("humany-loader",e),"data-loading":t,children:s.jsx(wn,{className:"humany-spinner",children:s.jsx(bn,{viewBox:"25 25 50 50",children:s.jsx(kn,{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"2","stroke-miterlimit":"10"})})})}),$n=({zoomState:e,image:t,changeZoom:n,...o})=>{var p;const r=i.useRef(null),[a,l]=i.useState(!1),[f,c]=i.useState(!1),{width:u,height:d,...h}=o.style||{},m=i.useCallback(()=>{const x=r.current;if(x){const y=window.innerWidth/x.naturalWidth,k=window.innerHeight/x.naturalHeight,$=Math.min(y,k);return k>=1&&y>=1?1:$}return 1},[a,t.src]),g=i.useMemo(()=>{const x=r.current;if(x&&a){if(!f){c(!0);const y=m();n(y)}return x.naturalWidth>=x.naturalHeight?[`${e*x.naturalWidth}px`,"auto"]:["auto",`${e*x.naturalHeight}px`]}return null},[e,r,a,t.src]);return i.useEffect(()=>(l(!1),function(){c(!1)}),[t.src]),s.jsxs(s.Fragment,{children:[s.jsx(Ln,{loading:!a}),s.jsx(Sn,{onLoad:()=>{l(!0)},ref:r,imageSize:g,draggable:"false",...o,alt:((p=o.alt)==null?void 0:p.toString())||"",style:h,src:t.src,loaded:a}),s.jsx(En,{})]})},Ln=C(jn)`
479
+ `,$n=({className:e,loading:t=!1})=>s.jsx(wn,{className:b.appendClassNames("humany-loader",e),"data-loading":t,children:s.jsx(kn,{className:"humany-spinner",children:s.jsx(vn,{viewBox:"25 25 50 50",children:s.jsx(jn,{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"2","stroke-miterlimit":"10"})})})}),Ln=({zoomState:e,image:t,changeZoom:n,...o})=>{var p;const r=a.useRef(null),[i,l]=a.useState(!1),[f,c]=a.useState(!1),{width:u,height:d,...h}=o.style||{},m=a.useCallback(()=>{const x=r.current;if(x){const y=window.innerWidth/x.naturalWidth,k=window.innerHeight/x.naturalHeight,$=Math.min(y,k);return k>=1&&y>=1?1:$}return 1},[i,t.src]),g=a.useMemo(()=>{const x=r.current;if(x&&i){if(!f){c(!0);const y=m();n(y)}return x.naturalWidth>=x.naturalHeight?[`${e*x.naturalWidth}px`,"auto"]:["auto",`${e*x.naturalHeight}px`]}return null},[e,r,i,t.src]);return a.useEffect(()=>(l(!1),function(){c(!1)}),[t.src]),s.jsxs(s.Fragment,{children:[s.jsx(Sn,{loading:!i}),s.jsx(En,{onLoad:()=>{l(!0)},ref:r,imageSize:g,draggable:"false",...o,alt:((p=o.alt)==null?void 0:p.toString())||"",style:h,src:t.src,loaded:i}),s.jsx(Rn,{})]})},Sn=C($n)`
480
480
  svg circle {
481
481
  stroke: #ffffff;
482
482
  }
483
- `,Sn=C.img`
483
+ `,En=C.img`
484
484
  transform: none;
485
485
 
486
486
  ${e=>e.imageSize&&w.css`
@@ -491,28 +491,28 @@
491
491
  vertical-align: middle;
492
492
  position: relative;
493
493
  ${e=>!e.loaded&&"display:none;"}
494
- `,En=C.div`
494
+ `,Rn=C.div`
495
495
  height: 100%;
496
496
  display: inline-block;
497
497
  vertical-align: middle;
498
- `,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=I("Escape"),o=I("ArrowLeft"),r=I("ArrowRight"),[a,l]=i.useState(1),[f,c]=i.useState({top:0,left:0,x:0,y:0}),[u,d]=i.useState(!1),[h,m]=Rn(),[g,p]=i.useState(null),[x,y]=i.useState(null),k=i.useRef(null),$=i.useRef(null),E=i.useRef(null),j=i.useRef(null),S=i.useRef(null),[ut,dt]=i.useState(null);i.useEffect(()=>{n&&p(null)},[n]),i.useEffect(()=>{l(1)},[g]),i.useEffect(()=>{var z,_;if(g===null||$.current===null)return;const v=$.current.firstElementChild,L=(z=E.current)==null?void 0:z.querySelector(".nav-left"),N=(_=E.current)==null?void 0:_.querySelector(".nav-right");if(x==="Right")X&&N?N.focus():q&&L&&L.focus();else if(x==="Left")q&&L?L.focus():X&&N&&N.focus();else{if(!v)return;v.focus()}},[g,$,E,x]),i.useEffect(()=>{if(o){if(q)return $e()}else if(r&&X)return Le()},[o,r]),i.useEffect(()=>{var L,N;const v=((N=(L=S.current)==null?void 0:L.style)==null?void 0:N.float)||"";(v==="left"||v==="right")&&dt(v)},[]);const W=i.useMemo(()=>{const v=document.createElement("div");v.innerHTML=t||"";const L=v.getElementsByTagName("img");return Array.from(L).reduce((z,_)=>{const Ee=_.getAttribute("src");if(Ee){const Ct={src:Ee};z.push(Ct)}return z},[])},[t]),ke=i.useCallback(()=>{const{src:v}=e;if(v){const L=W.findIndex((N,z)=>N.src===v);p(L)}},[W,e]),ft=i.useCallback(v=>{p(null)},[]),je=i.useCallback(v=>{l(v?a+a*.25:a-a*.25)},[l,a]),ht=i.useCallback(()=>{if(g!==null){const{src:v}=W[g];v&&window.open(v,"_self")}},[W,g]),mt=i.useCallback(v=>{const L=j.current;L&&(c({top:L.scrollTop,left:L.scrollLeft,x:v.clientX,y:v.clientY}),d(!0))},[j]),pt=i.useCallback(v=>{const L=j.current;if(L&&u){const N=v.clientX-f.x,z=v.clientY-f.y;L.scrollTop=f.top-z,L.scrollLeft=f.left-N}},[u,f]),gt=v=>{v.preventDefault(),d(!1)},xt=i.useMemo(()=>{if(j.current){const v=j.current.getElementsByTagName("img");if(v&&v.length){const L=v[0];return L.width>window.innerWidth||L.height>window.innerHeight}}return!1},[j,a]),$e=()=>{g!==null&&(y("Left"),p(g-1))},Le=()=>{g!==null&&(y("Right"),p(g+1))},q=g!==null&&g>0&&W.length>1,X=g!==null&&W.length-1>g;return s.jsxs(s.Fragment,{children:[s.jsx(ve,{visible:g!==null,onClick:ft,children:s.jsxs(Wn,{onMouseDown:()=>m(),onMouseMove:()=>m(),onTouchStart:()=>m(),onKeyDown:()=>m(),children:[s.jsx(Vn,{show:h.toString(),children:s.jsx(Tn,{ref:$,buttons:[{id:"download",onClick:ht,icon:"download",ariaLabel:"Download image"},{id:"lightbox-close",onClick:()=>p(null),icon:"lightbox-close",ariaLabel:"Close"}]})}),s.jsx(Zn,{scrolling:u.toString(),isDraggable:xt.toString(),ref:j,onMouseMove:pt,onMouseDown:mt,onMouseUp:gt,children:g!==null&&s.jsx($n,{changeZoom:v=>{l(v)},zoomState:a,...e,style:{...e.style||{},float:"none"},image:W[g]})}),s.jsx(Bn,{ref:E,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:X,className:"nav-right",ariaLabel:"Navigate to next image"}]}),s.jsxs(In,{show:h.toString(),children:[s.jsx(Dn,{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(zn,{variant:"span",children:[Math.trunc(a*100),"%"]})]})]})}),s.jsx(Mn,{ref:k,onClick:ke,onKeyDown:v=>{v.key==="Enter"&&(v.preventDefault(),ke())},alignment:ut,tabIndex:0,children:s.jsx(On,{...e,alt:((Se=e.alt)==null?void 0:Se.toString())||"",ref:S})})]})},we=i.forwardRef(({show:e="true",buttons:t,className:n},o)=>s.jsx(Nn,{ref:o,show:e,className:b.appendClassNames("humany-button-set",n),children:t.map(({id:r,circle:a=!1,show:l=!0,ariaLabel:f,onClick:c,icon:u,className:d},h)=>s.jsx(Hn,{circle:a.toString(),onClick:c,tabIndex:l?void 0:-1,show:l.toString(),icon:u,className:d,"aria-label":f,children:s.jsx(P,{size:24,symbol:{type:"Svg",content:u}})},r+h.toString()))})),ot=C.div`
498
+ `,Mn=()=>{const e=a.useRef(),[t,n]=a.useState(!0),o=a.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=I("Escape"),o=I("ArrowLeft"),r=I("ArrowRight"),[i,l]=a.useState(1),[f,c]=a.useState({top:0,left:0,x:0,y:0}),[u,d]=a.useState(!1),[h,m]=Mn(),[g,p]=a.useState(null),[x,y]=a.useState(null),k=a.useRef(null),$=a.useRef(null),E=a.useRef(null),j=a.useRef(null),S=a.useRef(null),[ut,dt]=a.useState(null);a.useEffect(()=>{n&&p(null)},[n]),a.useEffect(()=>{l(1)},[g]),a.useEffect(()=>{var z,_;if(g===null||$.current===null)return;const v=$.current.firstElementChild,L=(z=E.current)==null?void 0:z.querySelector(".nav-left"),N=(_=E.current)==null?void 0:_.querySelector(".nav-right");if(x==="Right")X&&N?N.focus():q&&L&&L.focus();else if(x==="Left")q&&L?L.focus():X&&N&&N.focus();else{if(!v)return;v.focus()}},[g,$,E,x]),a.useEffect(()=>{if(o){if(q)return $e()}else if(r&&X)return Le()},[o,r]),a.useEffect(()=>{var L,N;const v=((N=(L=S.current)==null?void 0:L.style)==null?void 0:N.float)||"";(v==="left"||v==="right")&&dt(v)},[]);const W=a.useMemo(()=>{const v=document.createElement("div");v.innerHTML=t||"";const L=v.getElementsByTagName("img");return Array.from(L).reduce((z,_)=>{const Ee=_.getAttribute("src");if(Ee){const Ct={src:Ee};z.push(Ct)}return z},[])},[t]),ke=a.useCallback(()=>{const{src:v}=e;if(v){const L=W.findIndex((N,z)=>N.src===v);p(L)}},[W,e]),ft=a.useCallback(v=>{p(null)},[]),je=a.useCallback(v=>{l(v?i+i*.25:i-i*.25)},[l,i]),ht=a.useCallback(()=>{if(g!==null){const{src:v}=W[g];v&&window.open(v,"_self")}},[W,g]),mt=a.useCallback(v=>{const L=j.current;L&&(c({top:L.scrollTop,left:L.scrollLeft,x:v.clientX,y:v.clientY}),d(!0))},[j]),pt=a.useCallback(v=>{const L=j.current;if(L&&u){const N=v.clientX-f.x,z=v.clientY-f.y;L.scrollTop=f.top-z,L.scrollLeft=f.left-N}},[u,f]),gt=v=>{v.preventDefault(),d(!1)},xt=a.useMemo(()=>{if(j.current){const v=j.current.getElementsByTagName("img");if(v&&v.length){const L=v[0];return L.width>window.innerWidth||L.height>window.innerHeight}}return!1},[j,i]),$e=()=>{g!==null&&(y("Left"),p(g-1))},Le=()=>{g!==null&&(y("Right"),p(g+1))},q=g!==null&&g>0&&W.length>1,X=g!==null&&W.length-1>g;return s.jsxs(s.Fragment,{children:[s.jsx(ve,{visible:g!==null,onClick:ft,children:s.jsxs(Vn,{onMouseDown:()=>m(),onMouseMove:()=>m(),onTouchStart:()=>m(),onKeyDown:()=>m(),children:[s.jsx(In,{show:h.toString(),children:s.jsx(Dn,{ref:$,buttons:[{id:"download",onClick:ht,icon:"download",ariaLabel:"Download image"},{id:"lightbox-close",onClick:()=>p(null),icon:"lightbox-close",ariaLabel:"Close"}]})}),s.jsx(On,{scrolling:u.toString(),isDraggable:xt.toString(),ref:j,onMouseMove:pt,onMouseDown:mt,onMouseUp:gt,children:g!==null&&s.jsx(Ln,{changeZoom:v=>{l(v)},zoomState:i,...e,style:{...e.style||{},float:"none"},image:W[g]})}),s.jsx(zn,{ref:E,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:X,className:"nav-right",ariaLabel:"Navigate to next image"}]}),s.jsxs(Zn,{show:h.toString(),children:[s.jsx(Bn,{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(Wn,{variant:"span",children:[Math.trunc(i*100),"%"]})]})]})}),s.jsx(Nn,{ref:k,onClick:ke,onKeyDown:v=>{v.key==="Enter"&&(v.preventDefault(),ke())},alignment:ut,tabIndex:0,children:s.jsx(An,{...e,alt:((Se=e.alt)==null?void 0:Se.toString())||"",ref:S})})]})},we=a.forwardRef(({show:e="true",buttons:t,className:n},o)=>s.jsx(Hn,{ref:o,show:e,className:b.appendClassNames("humany-button-set",n),children:t.map(({id:r,circle:i=!1,show:l=!0,ariaLabel:f,onClick:c,icon:u,className:d},h)=>s.jsx(Tn,{circle:i.toString(),onClick:c,tabIndex:l?void 0:-1,show:l.toString(),icon:u,className:d,"aria-label":f,children:s.jsx(P,{size:24,symbol:{type:"Svg",content:u}})},r+h.toString()))})),ot=C.div`
499
499
  transition: opacity 0.3s ease 0s;
500
500
  z-index: 5;
501
501
  ${e=>e.show==="true"?"opacity: 1;":w.css`
502
502
  opacity: 0;
503
503
  pointer-events: none;
504
504
  `}
505
- `,Mn=C(oe)`
505
+ `,Nn=C(oe)`
506
506
  display: inline-block !important;
507
507
 
508
508
  ${e=>(e.alignment==="right"||e.alignment==="left")&&w.css`
509
509
  float: ${e.alignment};
510
510
  `}
511
- `,Nn=C(ot)`
511
+ `,Hn=C(ot)`
512
512
  position: fixed;
513
513
  display: flex;
514
514
  gap: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.normal}};
515
- `,ue="39px",Hn=C(K)`
515
+ `,ue="39px",Tn=C(K)`
516
516
  width: ${ue};
517
517
  height: ${ue};
518
518
  display: flex;
@@ -574,15 +574,15 @@
574
574
  opacity: 0;
575
575
  pointer-events: none;
576
576
  `}
577
- `,Tn=C(we)`
577
+ `,Dn=C(we)`
578
578
  top: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
579
579
  right: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
580
- `,Dn=C(we)`
580
+ `,Bn=C(we)`
581
581
  bottom: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
582
582
  width: 100%;
583
583
  align-items: center;
584
584
  justify-content: center;
585
- `,Bn=C(we)`
585
+ `,zn=C(we)`
586
586
  display: block;
587
587
  button {
588
588
  position: fixed;
@@ -594,7 +594,7 @@
594
594
  right: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
595
595
  }
596
596
  }
597
- `,zn=C(O)`
597
+ `,Wn=C(O)`
598
598
  position: fixed;
599
599
  bottom: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
600
600
  right: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
@@ -607,23 +607,23 @@
607
607
  height: 88px;
608
608
  left: 0px;
609
609
  z-index: 5;
610
- `,Wn=C.div`
610
+ `,Vn=C.div`
611
611
  width: 100%;
612
- `,Vn=C(rt)`
612
+ `,In=C(rt)`
613
613
  top: 0px;
614
614
  background-image: linear-gradient(
615
615
  to bottom,
616
616
  rgb(34, 34, 34, 0.8),
617
617
  rgba(34, 34, 34, 0)
618
618
  );
619
- `,In=C(rt)`
619
+ `,Zn=C(rt)`
620
620
  bottom: 0px;
621
621
  background-image: linear-gradient(
622
622
  to top,
623
623
  rgb(34, 34, 34, 0.8),
624
624
  rgba(34, 34, 34, 0)
625
625
  );
626
- `,Zn=C.div`
626
+ `,On=C.div`
627
627
  width: 100%;
628
628
  height: 100vh;
629
629
  overflow: auto;
@@ -632,9 +632,9 @@
632
632
  white-space: nowrap;
633
633
  justify-content: center;
634
634
  cursor: ${e=>e.isDraggable==="true"?e.scrolling==="true"?"grabbing":"grab":"auto"};
635
- `,On=C.img`
635
+ `,An=C.img`
636
636
  cursor: pointer;
637
- `,it=i.forwardRef(({className:e,children:t,trigger:n,onOverlayClick:o=()=>{},close:r=!1,...a},l)=>{const[f,c]=xe(),[u,d]=ge(!0),h=i.useRef(),m=i.useRef(b.uuid()),g=I("Escape");i.useEffect(()=>{(g||r)&&c(!1)},[g,r]),i.useEffect(()=>{f&&h.current&&h.current.focus()},[f,h.current]),Y("router:changed",()=>{c(!1)});const p=i.useCallback(y=>{c(!1),o(y)},[o,c]);i.useImperativeHandle(l,()=>({close(){c(!1)}}));const x=i.useCallback(()=>ee(m.current,()=>{c(!1)}),[m.current]);return s.jsxs(s.Fragment,{children:[s.jsx(ve,{visible:f,onClick:p,children:s.jsxs(An,{className:b.appendClassNames(e,"humany-modal",`humany-modal-${m.current}`),css:u,tabIndex:-1,...a,ref:d,children:[s.jsx(ye,{onClick:()=>c(!1),tabIndex:0,ref:h,children:s.jsx(P,{symbol:{type:"Svg",content:"close"}})}),t]})}),i.cloneElement(n,{onClick:y=>{c(),x()}})]})}),An=C.div`
637
+ `,it=a.forwardRef(({className:e,children:t,trigger:n,onOverlayClick:o=()=>{},close:r=!1,...i},l)=>{const[f,c]=xe(),[u,d]=ge(!0),h=a.useRef(),m=a.useRef(b.uuid()),g=I("Escape");a.useEffect(()=>{(g||r)&&c(!1)},[g,r]),a.useEffect(()=>{f&&h.current&&h.current.focus()},[f,h.current]),Y("router:changed",()=>{c(!1)});const p=a.useCallback(y=>{c(!1),o(y)},[o,c]);a.useImperativeHandle(l,()=>({close(){c(!1)}}));const x=a.useCallback(()=>ee(m.current,()=>{c(!1)}),[m.current]);return s.jsxs(s.Fragment,{children:[s.jsx(ve,{visible:f,onClick:p,children:s.jsxs(Pn,{className:b.appendClassNames(e,"humany-modal",`humany-modal-${m.current}`),css:u,tabIndex:-1,...i,ref:d,children:[s.jsx(ye,{onClick:()=>c(!1),tabIndex:0,ref:h,children:s.jsx(P,{symbol:{type:"Svg",content:"close"}})}),t]})}),a.cloneElement(n,{onClick:y=>{c(),x()}})]})}),Pn=C.div`
638
638
  font-family: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.type}};
639
639
  font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
640
640
  position: relative;
@@ -644,7 +644,7 @@
644
644
  ${e=>Ce(e)}
645
645
  ${e=>e.css&&e.css}
646
646
  outline: none;
647
- `,Pn=({className:e,trigger:t,header:n="",text:o="",onCancel:r=()=>{},onConfirm:a=()=>{},cancelLabel:l="",confirmLabel:f=""})=>{const c=i.useRef(),u=i.useCallback(()=>{var h;r(),(h=c==null?void 0:c.current)==null||h.close()},[r]),d=i.useCallback(()=>{var h;a(),(h=c==null?void 0:c.current)==null||h.close()},[a]);return s.jsxs(Fn,{className:e,trigger:t,ref:c,onOverlayClick:u,children:[n&&s.jsx(le,{children:n}),o&&s.jsx(le,{children:o}),f&&s.jsx(Kn,{onClick:d,children:f}),l&&s.jsx(Yn,{onClick:u,children:l})]})},Fn=C(it)`
647
+ `,Fn=({className:e,trigger:t,header:n="",text:o="",onCancel:r=()=>{},onConfirm:i=()=>{},cancelLabel:l="",confirmLabel:f=""})=>{const c=a.useRef(),u=a.useCallback(()=>{var h;r(),(h=c==null?void 0:c.current)==null||h.close()},[r]),d=a.useCallback(()=>{var h;i(),(h=c==null?void 0:c.current)==null||h.close()},[i]);return s.jsxs(Kn,{className:e,trigger:t,ref:c,onOverlayClick:u,children:[n&&s.jsx(le,{children:n}),o&&s.jsx(le,{children:o}),f&&s.jsx(Yn,{onClick:d,children:f}),l&&s.jsx(qn,{onClick:u,children:l})]})},Kn=C(it)`
648
648
  display: block;
649
649
 
650
650
  span {
@@ -656,7 +656,7 @@
656
656
  margin: 0 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}};
657
657
  }
658
658
  }
659
- `,Kn=C(K)`
659
+ `,Yn=C(K)`
660
660
  display: inline-block;
661
661
  min-width: 50px;
662
662
  ${e=>{var t,n;return`padding: ${(t=e.theme.sizes)==null?void 0:t.small} ${(n=e.theme.sizes)==null?void 0:n.normal};`}}
@@ -674,7 +674,7 @@
674
674
  &:focus-visible {
675
675
  ${B}
676
676
  }
677
- `,Yn=C(K)`
677
+ `,qn=C(K)`
678
678
  display: inline-block;
679
679
  min-width: 50px;
680
680
  ${e=>{var t,n;return`padding: ${(t=e.theme.sizes)==null?void 0:t.small} ${(n=e.theme.sizes)==null?void 0:n.normal};`}}
@@ -686,17 +686,17 @@
686
686
  &:focus-visible {
687
687
  ${B};
688
688
  }
689
- `,qn=({header:e="",link:t="",suggestionHeader:n="",suggestion:o=""})=>s.jsxs(Xn,{children:[s.jsx(_n,{children:s.jsx(O,{variant:"h2",children:"404"})}),s.jsxs(Un,{children:[s.jsx(O,{variant:"h3",children:e}),s.jsx(at,{routeName:"index","aria-label":t,text:t})]}),s.jsxs(Gn,{children:[s.jsx("span",{children:n}),s.jsx("ul",{children:s.jsx("li",{children:o})})]})]}),Xn=C.div`
689
+ `,Xn=({header:e="",link:t="",suggestionHeader:n="",suggestion:o=""})=>s.jsxs(_n,{children:[s.jsx(Un,{children:s.jsx(O,{variant:"h2",children:"404"})}),s.jsxs(Gn,{children:[s.jsx(O,{variant:"h3",children:e}),s.jsx(at,{routeName:"index","aria-label":t,text:t})]}),s.jsxs(Qn,{children:[s.jsx("span",{children:n}),s.jsx("ul",{children:s.jsx("li",{children:o})})]})]}),_n=C.div`
690
690
  display: flex;
691
691
  flex-wrap: wrap;
692
- `,_n=C.div`
692
+ `,Un=C.div`
693
693
  ${e=>F(e)("h2",w.css`
694
694
  padding: 0;
695
695
  margin: 0;
696
696
  color: gray;
697
697
  font-size: 7em;
698
698
  `)}
699
- `,Un=C.div`
699
+ `,Gn=C.div`
700
700
  margin-left: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.medium}};
701
701
 
702
702
  ${e=>{var t;return F(e)("h3",w.css`
@@ -708,17 +708,17 @@
708
708
  color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.link}};
709
709
  font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.small}};
710
710
  }
711
- `,Gn=C.div`
711
+ `,Qn=C.div`
712
712
  margin-top: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.medium}};
713
713
  min-width: 100%;
714
714
 
715
715
  span {
716
716
  font-weight: bold;
717
717
  }
718
- `;class Qn extends i.Component{constructor(){super(...arguments);U(this,"node");U(this,"onFocusListener");U(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,l=>typeof window>"u"?!0:!(window.getComputedStyle(l).display==="none"||l.offsetWidth<=0&&l.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 Jn=({className:e="",format:t="hh:mm",timestamp:n})=>s.jsx("span",{className:b.appendClassNames(e,"humany-timestamp"),children:es(n,t)}),Me=e=>`0${e}`.slice(-2);function es(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(),l=n.getMonth()+1,f=n.getDate(),c=`${a}-${Me(l)}-${Me(f)}`;return t==="yyyy-mm-dd"?c:t==="hh:mm"?r:`${c} ${r}`}const ts=({className:e,children:t,content:n,sticky:o=!1,...r})=>{const[a,l]=i.useState(!1),f=i.useRef(b.uuid()),c=i.useRef(),[{x:u,y:d},h]=Ue(a,f.current,c.current),m=p=>{const{target:x}=p;!c.current||!x||c.current!==x&&!c.current.contains(x)&&l(!1)};i.useEffect(()=>{if(o)return window.addEventListener("click",m),()=>{window.removeEventListener("click",m)}},[a,o]);const g=i.useCallback((p,x)=>{h(p,c.current),l(x)},[h,l]);return s.jsxs(ns,{ref:c,className:"humany-tooltip-trigger",onMouseEnter:o?void 0:p=>g(p,!0),onMouseLeave:o?void 0:p=>g(p,!1),onTouchEnd:o?p=>g(p,!a):void 0,onClick:o?p=>g(p,!a):void 0,children:[t,a&&s.jsx(A,{children:s.jsx(ss,{className:b.appendClassNames(e,"humany-tooltip-container"),x:u,y:d,...r,children:n})})]})},ns=C.div`
718
+ `;class Jn extends a.Component{constructor(){super(...arguments);U(this,"node");U(this,"onFocusListener");U(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"])'),i=[].filter.call(o,l=>typeof window>"u"?!0:!(window.getComputedStyle(l).display==="none"||l.offsetWidth<=0&&l.offsetHeight<=0))[0];i&&i.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=a.forwardRef(({className:e,description:t,text:n,children:o,...r},i)=>s.jsxs(oe,{className:b.appendClassNames(e,"humany-text-link"),...r,ref:i,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 es=({className:e="",format:t="hh:mm",timestamp:n})=>s.jsx("span",{className:b.appendClassNames(e,"humany-timestamp"),children:ts(n,t)}),Me=e=>`0${e}`.slice(-2);function ts(e,t){const n=new Date(e),o=n.toTimeString().split(" ")[0].split(":"),r=o.length>1?`${o[0]}:${o[1]}`:o[0],i=n.getFullYear(),l=n.getMonth()+1,f=n.getDate(),c=`${i}-${Me(l)}-${Me(f)}`;return t==="yyyy-mm-dd"?c:t==="hh:mm"?r:`${c} ${r}`}const ns=({className:e,children:t,content:n,sticky:o=!1,...r})=>{const[i,l]=a.useState(!1),f=a.useRef(b.uuid()),c=a.useRef(),[{x:u,y:d},h]=Ue(i,f.current,c.current),m=p=>{const{target:x}=p;!c.current||!x||c.current!==x&&!c.current.contains(x)&&l(!1)};a.useEffect(()=>{if(o)return window.addEventListener("click",m),()=>{window.removeEventListener("click",m)}},[i,o]);const g=a.useCallback((p,x)=>{h(p,c.current),l(x)},[h,l]);return s.jsxs(ss,{ref:c,className:"humany-tooltip-trigger",onMouseEnter:o?void 0:p=>g(p,!0),onMouseLeave:o?void 0:p=>g(p,!1),onTouchEnd:o?p=>g(p,!i):void 0,onClick:o?p=>g(p,!i):void 0,children:[t,i&&s.jsx(A,{children:s.jsx(os,{className:b.appendClassNames(e,"humany-tooltip-container"),x:u,y:d,...r,children:n})})]})},ss=C.div`
719
719
  display: flex;
720
720
  align-items: center;
721
- `,ss=C.div`
721
+ `,os=C.div`
722
722
  color: #ffffff;
723
723
  background: #161616;
724
724
  border-radius: ${e=>e.theme.borderRadius};
@@ -739,7 +739,7 @@
739
739
  }
740
740
 
741
741
  ${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}};
742
- `,os=e=>{const{in:t,mountOnEnter:n=!0,unmountOnExit:o=!0,timeout:r,children:a,transitions:l}=e,c=(()=>{var u,d;if(!(!l||l==="none")){if(typeof l=="string")return{enter:{transitionKeys:l,duration:r?typeof r=="number"?r:r.enter:200,easing:"ease-in"},exit:{transitionKeys:l,duration:r?typeof r=="number"?r:r.exit:200,easing:"ease-out"}};if(typeof l=="object"){const{enter:h,exit:m}=l;return{enter:{transitionKeys:(u=l.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=l.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:c&&c.enter.duration||0,exit:c&&c.exit.duration||0},in:t,appear:!0,mountOnEnter:n,unmountOnExit:o,onEnter:u=>u.clientHeight,children:u=>a&&a(u,c&&G.compose(u,c))})},lt=i.forwardRef(({className:e,children:t,onClick:n=()=>{},widgetName:o,activationOptions:r,...a},l)=>{const f=M(),c=()=>{const{implementation:h}=f.get("$widget");return h.widgets.get(o)};i.useEffect(()=>{const h=c();return h==null||h.activate(r).then(()=>h.invoke("attach")),()=>{h==null||h.deactivate()}},[o]);const u=h=>{const m=c(),g=h.currentTarget;if(m){const p=()=>{m.invoke("renderState").then(x=>x===D.WidgetRenderState.open?m.invoke("close"):m.invoke("open")).then(()=>{m.events.subscribeOnce("widget:area-rendered",(x,y)=>{f.get("widgetDOMElement")&&m.events.dispatch("widget:modal-opened",{name:m.name,ref:g})})})};m.state===Ne.WidgetState.Deactivated?m.activate(r).then(()=>m.invoke("attach")).then(p):p()}},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:l,children:t})}),rs=i.forwardRef(({portalId:e="humany-widget-overlay-portal",className:t,children:n},o)=>{const r=M(),a=i.useMemo(()=>{if(!r)return null;const l=r.get("widgetDOMElement");return!l||!l.childElementCount?null:l.children[0]},[r]);return a?s.jsx(A,{elementId:e,parent:a,children:s.jsx(is,{className:b.appendClassNames("humany-widget-overlay-outlet",t),ref:o,children:n})}):null}),is=C.div`
742
+ `,rs=e=>{const{in:t,mountOnEnter:n=!0,unmountOnExit:o=!0,timeout:r,children:i,transitions:l}=e,c=(()=>{var u,d;if(!(!l||l==="none")){if(typeof l=="string")return{enter:{transitionKeys:l,duration:r?typeof r=="number"?r:r.enter:200,easing:"ease-in"},exit:{transitionKeys:l,duration:r?typeof r=="number"?r:r.exit:200,easing:"ease-out"}};if(typeof l=="object"){const{enter:h,exit:m}=l;return{enter:{transitionKeys:(u=l.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=l.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:c&&c.enter.duration||0,exit:c&&c.exit.duration||0},in:t,appear:!0,mountOnEnter:n,unmountOnExit:o,onEnter:u=>u.clientHeight,children:u=>i&&i(u,c&&G.compose(u,c))})},lt=a.forwardRef(({className:e,children:t,onClick:n=()=>{},widgetName:o,activationOptions:r,...i},l)=>{const f=M(),c=()=>{const{implementation:h}=f.get("$widget");return h.widgets.get(o)};a.useEffect(()=>{const h=c();return h==null||h.activate(r).then(()=>h.invoke("attach")),()=>{h==null||h.deactivate()}},[o]);const u=h=>{const m=c(),g=h.currentTarget;if(m){const p=()=>{m.invoke("renderState").then(x=>x===D.WidgetRenderState.open?m.invoke("close"):m.invoke("open")).then(()=>{m.events.subscribeOnce("widget:area-rendered",(x,y)=>{f.get("widgetDOMElement")&&m.events.dispatch("widget:modal-opened",{name:m.name,ref:g})})})};m.state===Ne.WidgetState.Deactivated?m.activate(r).then(()=>m.invoke("attach")).then(p):p()}},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)},...i,ref:l,children:t})}),is=a.forwardRef(({portalId:e="humany-widget-overlay-portal",className:t,children:n},o)=>{const r=M(),i=a.useMemo(()=>{if(!r)return null;const l=r.get("widgetDOMElement");return!l||!l.childElementCount?null:l.children[0]},[r]);return i?s.jsx(A,{elementId:e,parent:i,children:s.jsx(as,{className:b.appendClassNames("humany-widget-overlay-outlet",t),ref:o,children:n})}):null}),as=C.div`
743
743
  background-color: #ffffff;
744
744
  position: absolute;
745
745
  top: 0;
@@ -749,4 +749,4 @@
749
749
  z-index: 10;
750
750
  width: 100%;
751
751
  height: 100%;
752
- `,as=(e,t,n,o,r)=>e.getAsync("componentResolver").then(a=>(a.registerComponent(t,i.lazy(()=>n)),D.extendComponent(e,t,o||(()=>{}),t,r)));exports.AnchorLink=Ve;exports.Button=K;exports.Checkbox=Rt;exports.ColumnContext=Ze;exports.ComponentNodeContext=he;exports.ComponentPropertyContext=Oe;exports.Confirm=Pn;exports.ContainerContext=Ie;exports.ConversationContext=Pe;exports.DateFormats=ct;exports.Drawer=Qt;exports.DrawerAnimationType=_e;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=qn;exports.Overlay=ve;exports.Paragraph=et;exports.Portal=A;exports.RouteLink=nt;exports.RoutingContext=Ae;exports.StyledText=le;exports.SymbolBadge=P;exports.TabStop=Qn;exports.Text=te;exports.TextLink=at;exports.Timestamp=Jn;exports.Tooltip=ts;exports.TransitionComponent=os;exports.Typography=O;exports.WidgetLink=lt;exports.WidgetOverlayOutlet=rs;exports.borderTabStyle=B;exports.browser=ce;exports.buttonCss=Ye;exports.contentBox=Ce;exports.convertToStringAttributes=R;exports.createEmptyComponent=Lt;exports.createReactComponent=as;exports.defaultRenderInstructions=We;exports.embeddedLinkMapper=He;exports.filterCssProps=fe;exports.filterCssPropsStyle=Te;exports.genericHashLink=De;exports.genericHtml=qt;exports.headingElement=F;exports.imageLightboxRenderer=ze;exports.invertedHoverButton=Ft;exports.itemList=Yt;exports.linkTabStyle=qe;exports.list=Xe;exports.paddedBorderTabStyle=Kt;exports.processHtmlString=Be;exports.transitionComposer=G;exports.useAction=Mt;exports.useChildren=Nt;exports.useColumns=Ht;exports.useComponent=Tt;exports.useComponentDescriptor=Q;exports.useComponentNode=J;exports.useComponentPlatform=Z;exports.useContainer=M;exports.useContext=Fe;exports.useConversation=Dt;exports.useDispatch=Bt;exports.useEventListener=H;exports.useEvents=Ke;exports.useIsMounted=T;exports.useIsTabbing=zt;exports.useKeyPress=I;exports.useLayout=Wt;exports.usePrevious=me;exports.useProperties=Vt;exports.useRenderState=It;exports.useRouteData=Zt;exports.useRouter=pe;exports.useScroll=ge;exports.useSettings=At;exports.useToggle=xe;exports.useTransitionEnd=Pt;exports.useUniqueMenu=ee;exports.useWidgetEvent=Y;
752
+ `,cs=(e,t,n,o,r)=>e.getAsync("componentResolver").then(i=>(i.registerComponent(t,a.lazy(()=>n)),D.extendComponent(e,t,o||(()=>{}),t,r)));exports.AnchorLink=Ve;exports.Button=K;exports.Checkbox=Mt;exports.ColumnContext=Ze;exports.ComponentNodeContext=he;exports.ComponentPropertyContext=Oe;exports.Confirm=Fn;exports.ContainerContext=Ie;exports.ConversationContext=Pe;exports.DateFormats=ct;exports.Drawer=Jt;exports.DrawerAnimationType=_e;exports.Dropdown=an;exports.Empty=Ge;exports.Grid=un;exports.Html=be;exports.Icon=Qe;exports.Input=fn;exports.ItemList=tt;exports.ItemTree=hn;exports.Lightbox=st;exports.Link=oe;exports.List=Je;exports.Modal=it;exports.NotFound=Xn;exports.Overlay=ve;exports.Paragraph=et;exports.Portal=A;exports.RouteLink=nt;exports.RoutingContext=Ae;exports.StyledText=le;exports.SymbolBadge=P;exports.TabStop=Jn;exports.Text=te;exports.TextLink=at;exports.Timestamp=es;exports.Tooltip=ns;exports.TransitionComponent=rs;exports.Typography=O;exports.WidgetLink=lt;exports.WidgetOverlayOutlet=is;exports.borderTabStyle=B;exports.browser=ce;exports.buttonCss=Ye;exports.contentBox=Ce;exports.convertToStringAttributes=R;exports.createEmptyComponent=Lt;exports.createReactComponent=cs;exports.defaultRenderInstructions=We;exports.embeddedLinkMapper=He;exports.filterCssProps=fe;exports.filterCssPropsStyle=Te;exports.genericHashLink=De;exports.genericHtml=Xt;exports.headingElement=F;exports.imageLightboxRenderer=ze;exports.invertedHoverButton=Kt;exports.itemList=qt;exports.linkTabStyle=qe;exports.list=Xe;exports.paddedBorderTabStyle=Yt;exports.processHtmlString=Be;exports.transitionComposer=G;exports.useAction=Nt;exports.useChildren=Ht;exports.useColumns=Tt;exports.useComponent=Dt;exports.useComponentDescriptor=Q;exports.useComponentNode=J;exports.useComponentPlatform=Z;exports.useContainer=M;exports.useContext=Fe;exports.useConversation=Bt;exports.useDispatch=zt;exports.useEventListener=H;exports.useEvents=Ke;exports.useIsMounted=T;exports.useIsTabbing=Wt;exports.useKeyPress=I;exports.useLayout=Vt;exports.usePrevious=me;exports.useProperties=It;exports.useRenderState=Zt;exports.useRouteData=Ot;exports.useRouter=pe;exports.useScroll=ge;exports.useSettings=Pt;exports.useToggle=xe;exports.useTransitionEnd=Ft;exports.useUniqueMenu=ee;exports.useWidgetEvent=Y;