@telia-ace/widget-ui 1.3.0-rc.1 → 1.3.0-rc.10

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 +51 -51
  2. package/index.mjs +294 -295
  3. package/package.json +4 -4
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var yt=Object.defineProperty;var bt=(e,t,n)=>t in e?yt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var _=(e,t,n)=>(bt(e,typeof t!="symbol"?t+"":t,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("@emotion/react"),b=require("@telia-ace/widget-utilities"),s=require("react/jsx-runtime"),y=require("@emotion/styled"),i=require("react"),de=require("react-transition-group"),He=require("@webprovisions/platform"),T=require("@telia-ace/widget-core"),vt=require("react-dom"),Ee=require("htmr"),re=require("@telia-ace/widget-routing"),ie=require("react-router-dom"),wt=e=>e==="entering"||e==="entered",kt=e=>e==="exiting"||e==="exited",W={fade:{in:"opacity: 1;",out:"opacity: 0;"},"slide-left":{in:"transform: translateX(0);",out:"transform: translateX(-100%);"},"slide-right":{in:"transform: translateX(0);",out:"transform: translateX(100%);"},"slide-up":{in:"transform: translateY(0);",out:"transform: translateY(100%);"},"slide-down":{in:"transform: translateY(0);",out:"transform: translateY(-100%);"},scale:{in:"transform: scale(1);",out:"transform: scale(0);"}},jt=["slide-up","slide-down","slide-left","slide-right","scale"],G={compose:(e="exited",t)=>{const{enter:n,exit:o}=t,r=n.transitionKeys.split(" "),a=jt.indexOf(r[0])>-1?"transform":"opacity";if(wt(e))return r&&r.length>0?w.css`
1
+ "use strict";var yt=Object.defineProperty;var bt=(e,t,n)=>t in e?yt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var _=(e,t,n)=>(bt(e,typeof t!="symbol"?t+"":t,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("@emotion/react"),b=require("@telia-ace/widget-utilities"),s=require("react/jsx-runtime"),C=require("@emotion/styled"),i=require("react"),de=require("react-transition-group"),He=require("@webprovisions/platform"),T=require("@telia-ace/widget-core"),vt=require("react-dom"),Ee=require("htmr"),re=require("@telia-ace/widget-routing"),ie=require("react-router-dom"),wt=e=>e==="entering"||e==="entered",kt=e=>e==="exiting"||e==="exited",W={fade:{in:"opacity: 1;",out:"opacity: 0;"},"slide-left":{in:"transform: translateX(0);",out:"transform: translateX(-100%);"},"slide-right":{in:"transform: translateX(0);",out:"transform: translateX(100%);"},"slide-up":{in:"transform: translateY(0);",out:"transform: translateY(100%);"},"slide-down":{in:"transform: translateY(0);",out:"transform: translateY(-100%);"},scale:{in:"transform: scale(1);",out:"transform: scale(0);"}},jt=["slide-up","slide-down","slide-left","slide-right","scale"],G={compose:(e="exited",t)=>{const{enter:n,exit:o}=t,r=n.transitionKeys.split(" "),a=jt.indexOf(r[0])>-1?"transform":"opacity";if(wt(e))return r&&r.length>0?w.css`
2
2
  ${r&&r.length>0&&r.map(f=>W[f]?W[f].in:"")}
3
3
  transition: ${a} ${n.duration}ms ${n.easing};
4
4
  `:"";const c=r&&r.length>0&&w.css`
@@ -13,7 +13,7 @@
13
13
  ${c} {
14
14
  ${n}
15
15
  }
16
- `};function Be(e,t){return t?Ee(e,t):Ee(e)}const ze=e=>t=>s.jsx(st,{attrs:t,htmlBody:e}),Ve=(e,t)=>({transform:{a:Ne(e),img:ze(t)}}),We=e=>De(e,"a"),K=i.forwardRef(({className:e,children:t,...n},o)=>s.jsx(Rt,{type:"button",className:b.appendClassNames(e,"humany-button"),...S(n),ref:o,children:t})),Rt=y.button`
16
+ `};function Be(e,t){return t?Ee(e,t):Ee(e)}const ze=e=>t=>s.jsx(st,{attrs:t,htmlBody:e}),Ve=(e,t)=>({transform:{a:Ne(e),img:ze(t)}}),We=e=>De(e,"a"),K=i.forwardRef(({className:e,children:t,...n},o)=>s.jsx(Rt,{type:"button",className:b.appendClassNames(e,"humany-button"),...S(n),ref:o,children:t})),Rt=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
- `,Et=({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),...S(r)}),Ze=i.createContext(new He.Container),Ie=i.createContext(1),he=i.createContext({id:"",type:"",name:"",branch:""}),Oe=i.createContext({}),Ae=i.createContext(null),Fe=i.createContext(null),Q=()=>i.useContext(he),R=()=>i.useContext(Ze),Mt=(e,t)=>{const n=Q().id,o=R();return(r,a)=>{(t||o).getAsync("actionResolver").then(c=>{c.action(e||n,r,a)})}},J=e=>{const t=i.useContext(he),n=I(),[o,r]=i.useState();return i.useEffect(()=>{if((e||t.id)&&n){const a=n.nodes.get(e||t.id);r(a)}},[e,t.id,n]),o},N=()=>{const e=i.useRef(!1);return i.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e},I=e=>{const t=R(),[n,o]=i.useState(null),r=N();return i.useEffect(()=>{T.ComponentPlatform.getInstance(e||t).then(a=>{r.current&&o(a)})},[r]),n},Ht=()=>{const e=J(),t=I(),[n,o]=i.useState([]),r=N(),a=i.useCallback(c=>{if(t&&r.current&&c){const f=t.getBranch(c),l=c.getChildren(f).map(u=>T.asDescriptor(u));o(l)}},[r,t,o,e]);return i.useEffect(()=>{e&&a(e)},[e,t]),i.useEffect(()=>{if(t){const[c,f]=T.createEventSubscriber(t.events);return c("components:set-layout",(l,u)=>{(e===u.node.parent||u.node.parent===t.nodes.root)&&a(u.node.parent)}),c("components:node-appended",(l,u)=>{(e===u.node.parent||u.node.parent===t.nodes.root)&&a(u.node.parent)}),c("components:node-removed",(l,{parentNode:u})=>{(u===e||u===t.nodes.root)&&a(u)}),()=>{f()}}},[e,t,a]),n},Nt=()=>i.useContext(Ie),Tt=(e,t)=>{const n=Q(),o=R(),[r,a]=i.useState(void 0),c=N(),f=e||n.type||"";return i.useEffect(()=>{if(f){let l;return(t||o).getAsync("componentResolver").then(u=>{if(c.current){const d=u.getComponent(f);a(d)}l=u.registerResolver(f,d=>{c.current&&a(d)})}),()=>{l&&l()}}},[c,f,t,o]),r},Pe=e=>{const t=J(e),n=I(),[o,r]=i.useState({}),a=N();return i.useEffect(()=>{t&&a.current&&r(t.attributes.context)},[a,t]),i.useEffect(()=>{if(n){const c=n.events.subscribe("components:context-changed",(f,l)=>{t===l.node&&a.current&&r(l.node.attributes.context)});return()=>{c()}}},[a,n,t]),o},Dt=()=>i.useContext(Fe),Bt=()=>{const e=I(),t=Q(),[n,o]=i.useState([]),[r,a]=i.useState();return i.useEffect(()=>{if(e&&t){const c=new T.ComponentQuery(e).withId(t.id),f=e.actions(c,t.type||b.uuid());a(f),n!==null&&(n.forEach(l=>{f.dispatch(l.key,l.data).then(u=>l.resolve(u)).catch(u=>l.reject(u))}),o(null))}},[e,t.id]),(c,f)=>n!==null?new Promise((l,u)=>{n.push({key:c,data:f,resolve:l,reject:u})}):r.dispatch(c,f)},H=(e,t,n=window,o=()=>!0)=>{const r=i.useRef(()=>{});i.useEffect(()=>{r.current=t},[t]),i.useEffect(()=>{if(!(n&&o()))return;const c=f=>r.current(f);return n.addEventListener(e,c),()=>{n.removeEventListener(e,c)}},[e,n])},Ke=e=>{const t=R(),{events:n}=(e||t).get("$widget");return n},zt=()=>{const[e,t]=i.useState(!1);return i.useEffect(()=>{const n=()=>{t(!1)},o=r=>{r.keyCode===9&&t(!0)};return window.addEventListener("keydown",o),window.addEventListener("click",n),()=>{window.removeEventListener("keydown",o),window.removeEventListener("click",n)}},[]),e},Z=(e,t)=>{const[n,o]=i.useState(!1),r=i.useCallback(c=>{const{key:f}=c;f===e&&(o(!0),t&&t(c))},[o,t]),a=i.useCallback(({key:c})=>{c===e&&o(!1)},[o]);return H("keydown",r,window),H("keyup",a,window),n},Vt=e=>{const t=J(e),n=I(),[o,r]=i.useState({}),a=N();return i.useEffect(()=>{t&&a.current&&r(t.attributes.layout)},[t,a]),i.useEffect(()=>{if(n){const c=n.events.subscribe("components:layout-changed",(f,l)=>{t===l.node&&a.current&&r(l.node.attributes.layout)});return()=>{c()}}},[n,a,t]),o},me=e=>{const t=i.useRef();return i.useEffect(()=>{t.current=e}),t.current},Wt=()=>i.useContext(Oe),Zt=e=>{const[t,n]=i.useState(),o=R(),r=N();return i.useEffect(()=>{let a;const c=(e||o).get("$widget");if(!c)return;const{name:f,invoke:l}=c;return l("renderState").then(u=>{r.current&&n(u)}),(e||o).getAsync("actionResolver").then(u=>{a=u.subscribe(f,(d,h)=>{switch(h){case"close":case"open":r.current&&n(h==="open"?T.WidgetRenderState.open:T.WidgetRenderState.closed);break;case"hide":r.current&&n(T.WidgetRenderState.hidden)}})}),()=>{a&&a()}},[r]),t},pe=()=>i.useContext(Ae),It=e=>{const t=R(),n=pe(),[o,r]=i.useState({name:"",params:{}}),a=N();return i.useEffect(()=>{const c=(e||t).get("$widget");if(!c)return;const{events:f}=c;return f.subscribe("router:change",(u,{next:{routeData:d}})=>{if(a.current){const{name:h,params:m}=d;b.removeNullAndUndefinedValues(m),r({name:h,params:m})}})},[a,e,t]),i.useEffect(()=>{if(n&&n.history&&a.current){const c=n.getRouteData(),{name:f,params:l}=c;b.removeNullAndUndefinedValues(l),r({name:f,params:l})}},[n,a]),o},ge=e=>{const t=i.useRef(),n=i.useRef(0);let o;const r=i.useCallback(()=>{var u;(u=t.current)==null||u.classList.add("humany-scrolling"),clearTimeout(o),o=setTimeout(()=>{var d;(d=t.current)==null||d.classList.remove("humany-scrolling")},500)},[t]),a=i.useCallback(u=>{n.current=u.touches[0].clientY},[t]),c=u=>f(u)?u===t.current?u:null:u.parentElement?c(u.parentElement):null,f=u=>u.scrollWidth>u.clientWidth||u.scrollHeight>u.clientHeight,l=i.useCallback(u=>{if(!u.cancelable)return;const d=u.touches[0].clientY,h=c(u.target);if(!h)return;const m=h.scrollTop,p=n.current-d<0?"up":"down",C=m<=0&&p==="up",g=m>=h.scrollHeight-h.offsetHeight&&p==="down";(C||g)&&u.preventDefault(),n.current=d},[t,n]);return H("scroll",r,t.current,()=>t.current&&e),H("touchstart",a,t.current,()=>t.current&&e),H("touchmove",l,t.current,()=>t.current&&e),e?[Ot,t]:["",t]},Ot=`
29
+ `,Et=({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),...S(r)}),Ze=i.createContext(new He.Container),Ie=i.createContext(1),he=i.createContext({id:"",type:"",name:"",branch:""}),Oe=i.createContext({}),Ae=i.createContext(null),Fe=i.createContext(null),Q=()=>i.useContext(he),R=()=>i.useContext(Ze),Mt=(e,t)=>{const n=Q().id,o=R();return(r,a)=>{(t||o).getAsync("actionResolver").then(c=>{c.action(e||n,r,a)})}},J=e=>{const t=i.useContext(he),n=I(),[o,r]=i.useState();return i.useEffect(()=>{if((e||t.id)&&n){const a=n.nodes.get(e||t.id);r(a)}},[e,t.id,n]),o},N=()=>{const e=i.useRef(!1);return i.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e},I=e=>{const t=R(),[n,o]=i.useState(null),r=N();return i.useEffect(()=>{T.ComponentPlatform.getInstance(e||t).then(a=>{r.current&&o(a)})},[r]),n},Ht=()=>{const e=J(),t=I(),[n,o]=i.useState([]),r=N(),a=i.useCallback(c=>{if(t&&r.current&&c){const f=t.getBranch(c),l=c.getChildren(f).map(u=>T.asDescriptor(u));o(l)}},[r,t,o,e]);return i.useEffect(()=>{e&&a(e)},[e,t]),i.useEffect(()=>{if(t){const[c,f]=T.createEventSubscriber(t.events);return c("components:set-layout",(l,u)=>{(e===u.node.parent||u.node.parent===t.nodes.root)&&a(u.node.parent)}),c("components:node-appended",(l,u)=>{(e===u.node.parent||u.node.parent===t.nodes.root)&&a(u.node.parent)}),c("components:node-removed",(l,{parentNode:u})=>{(u===e||u===t.nodes.root)&&a(u)}),()=>{f()}}},[e,t,a]),n},Nt=()=>i.useContext(Ie),Tt=(e,t)=>{const n=Q(),o=R(),[r,a]=i.useState(void 0),c=N(),f=e||n.type||"";return i.useEffect(()=>{if(f){let l;return(t||o).getAsync("componentResolver").then(u=>{if(c.current){const d=u.getComponent(f);a(d)}l=u.registerResolver(f,d=>{c.current&&a(d)})}),()=>{l&&l()}}},[c,f,t,o]),r},Pe=e=>{const t=J(e),n=I(),[o,r]=i.useState({}),a=N();return i.useEffect(()=>{t&&a.current&&r(t.attributes.context)},[a,t]),i.useEffect(()=>{if(n){const c=n.events.subscribe("components:context-changed",(f,l)=>{t===l.node&&a.current&&r(l.node.attributes.context)});return()=>{c()}}},[a,n,t]),o},Dt=()=>i.useContext(Fe),Bt=()=>{const e=I(),t=Q(),[n,o]=i.useState([]),[r,a]=i.useState();return i.useEffect(()=>{if(e&&t){const c=new T.ComponentQuery(e).withId(t.id),f=e.actions(c,t.type||b.uuid());a(f),n!==null&&(n.forEach(l=>{f.dispatch(l.key,l.data).then(u=>l.resolve(u)).catch(u=>l.reject(u))}),o(null))}},[e,t.id]),(c,f)=>n!==null?new Promise((l,u)=>{n.push({key:c,data:f,resolve:l,reject:u})}):r.dispatch(c,f)},H=(e,t,n=window,o=()=>!0)=>{const r=i.useRef(()=>{});i.useEffect(()=>{r.current=t},[t]),i.useEffect(()=>{if(!(n&&o()))return;const c=f=>r.current(f);return n.addEventListener(e,c),()=>{n.removeEventListener(e,c)}},[e,n])},Ke=e=>{const t=R(),{events:n}=(e||t).get("$widget");return n},zt=()=>{const[e,t]=i.useState(!1);return i.useEffect(()=>{const n=()=>{t(!1)},o=r=>{r.keyCode===9&&t(!0)};return window.addEventListener("keydown",o),window.addEventListener("click",n),()=>{window.removeEventListener("keydown",o),window.removeEventListener("click",n)}},[]),e},Z=(e,t)=>{const[n,o]=i.useState(!1),r=i.useCallback(c=>{const{key:f}=c;f===e&&(o(!0),t&&t(c))},[o,t]),a=i.useCallback(({key:c})=>{c===e&&o(!1)},[o]);return H("keydown",r,window),H("keyup",a,window),n},Vt=e=>{const t=J(e),n=I(),[o,r]=i.useState({}),a=N();return i.useEffect(()=>{t&&a.current&&r(t.attributes.layout)},[t,a]),i.useEffect(()=>{if(n){const c=n.events.subscribe("components:layout-changed",(f,l)=>{t===l.node&&a.current&&r(l.node.attributes.layout)});return()=>{c()}}},[n,a,t]),o},me=e=>{const t=i.useRef();return i.useEffect(()=>{t.current=e}),t.current},Wt=()=>i.useContext(Oe),Zt=e=>{const[t,n]=i.useState(),o=R(),r=N();return i.useEffect(()=>{let a;const c=(e||o).get("$widget");if(!c)return;const{name:f,invoke:l}=c;return l("renderState").then(u=>{r.current&&n(u)}),(e||o).getAsync("actionResolver").then(u=>{a=u.subscribe(f,(d,h)=>{switch(h){case"close":case"open":r.current&&n(h==="open"?T.WidgetRenderState.open:T.WidgetRenderState.closed);break;case"hide":r.current&&n(T.WidgetRenderState.hidden)}})}),()=>{a&&a()}},[r]),t},pe=()=>i.useContext(Ae),It=e=>{const t=R(),n=pe(),[o,r]=i.useState({name:"",params:{}}),a=N();return i.useEffect(()=>{const c=(e||t).get("$widget");if(!c)return;const{events:f}=c;return f.subscribe("router:change",(u,{next:{routeData:d}})=>{if(a.current){const{name:h,params:m}=d;b.removeNullAndUndefinedValues(m),r({name:h,params:m})}})},[a,e,t]),i.useEffect(()=>{if(n&&n.history&&a.current){const c=n.getRouteData(),{name:f,params:l}=c;b.removeNullAndUndefinedValues(l),r({name:f,params:l})}},[n,a]),o},ge=e=>{const t=i.useRef(),n=i.useRef(0);let o;const r=i.useCallback(()=>{var u;(u=t.current)==null||u.classList.add("humany-scrolling"),clearTimeout(o),o=setTimeout(()=>{var d;(d=t.current)==null||d.classList.remove("humany-scrolling")},500)},[t]),a=i.useCallback(u=>{n.current=u.touches[0].clientY},[t]),c=u=>f(u)?u===t.current?u:null:u.parentElement?c(u.parentElement):null,f=u=>u.scrollWidth>u.clientWidth||u.scrollHeight>u.clientHeight,l=i.useCallback(u=>{if(!u.cancelable)return;const d=u.touches[0].clientY,h=c(u.target);if(!h)return;const m=h.scrollTop,p=n.current-d<0?"up":"down",x=m<=0&&p==="up",g=m>=h.scrollHeight-h.offsetHeight&&p==="down";(x||g)&&u.preventDefault(),n.current=d},[t,n]);return H("scroll",r,t.current,()=>t.current&&e),H("touchstart",a,t.current,()=>t.current&&e),H("touchmove",l,t.current,()=>t.current&&e),e?[Ot,t]:["",t]},Ot=`
30
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=R(),o=N();return i.useEffect(()=>{n.get("settings").then(r=>{o.current&&t(r)})},[o]),e},xe=(e=!1)=>{const[t,n]=i.useState(e),o=i.useCallback(r=>{n(typeof r=="boolean"?r:a=>!a)},[]);return[t,o]},Ft=e=>{const t=R(),n=I(),o=t.get("widgetDOMElement"),[r,a]=i.useState(null),[c,f]=i.useState(null),l=N();i.useEffect(()=>{if(n&&l.current){const d=n.nodes.all.find(m=>m.name==="root-area"),h=n.nodes.all.find(m=>m.type==="view");if(!(h!=null&&h.attributes.properties.animation)&&!(d!=null&&d.attributes.properties.animation))e();else{const m=(g="")=>o==null?void 0:o.querySelector(`[data-node-id="${g}"]`),p=m(h==null?void 0:h.id);p&&a(p);const C=m(d==null?void 0:d.id);C&&f(C)}}},[n,t,l]);const u=i.useCallback(d=>{l.current&&(d.target===r||d.target===c)&&e()},[e,l,r,c]);H("transitionend",u,r),H("transitionend",u,c)},Y=(e,t,n=[],o)=>{const r=Ke(o);return i.useEffect(()=>{if(r){const a=r.subscribe(e,t);return()=>{a()}}},[r].concat(n)),a=>r==null?void 0:r.dispatch(e,a)},ee=(e,t)=>{const n=Y("widget:menu-toggled",(o,r)=>{r!==e&&t()});return()=>n(e)},te=i.forwardRef(({className:e,children:t,...n},o)=>s.jsx("span",{ref:o,className:b.appendClassNames(e,"humany-text"),...S(n),children:t})),Ce=e=>w.css`
57
+ `,At=()=>{const[e,t]=i.useState(null),n=R(),o=N();return i.useEffect(()=>{n.get("settings").then(r=>{o.current&&t(r)})},[o]),e},xe=(e=!1)=>{const[t,n]=i.useState(e),o=i.useCallback(r=>{n(typeof r=="boolean"?r:a=>!a)},[]);return[t,o]},Ft=e=>{const t=R(),n=I(),o=t.get("widgetDOMElement"),[r,a]=i.useState(null),[c,f]=i.useState(null),l=N();i.useEffect(()=>{if(n&&l.current){const d=n.nodes.all.find(m=>m.name==="root-area"),h=n.nodes.all.find(m=>m.type==="view");if(!(h!=null&&h.attributes.properties.animation)&&!(d!=null&&d.attributes.properties.animation))e();else{const m=(g="")=>o==null?void 0:o.querySelector(`[data-node-id="${g}"]`),p=m(h==null?void 0:h.id);p&&a(p);const x=m(d==null?void 0:d.id);x&&f(x)}}},[n,t,l]);const u=i.useCallback(d=>{l.current&&(d.target===r||d.target===c)&&e()},[e,l,r,c]);H("transitionend",u,r),H("transitionend",u,c)},Y=(e,t,n=[],o)=>{const r=Ke(o);return i.useEffect(()=>{if(r){const a=r.subscribe(e,t);return()=>{a()}}},[r].concat(n)),a=>r==null?void 0:r.dispatch(e,a)},ee=(e,t)=>{const n=Y("widget:menu-toggled",(o,r)=>{r!==e&&t()});return()=>n(e)},te=i.forwardRef(({className:e,children:t,...n},o)=>s.jsx("span",{ref:o,className:b.appendClassNames(e,"humany-text"),...S(n),children:t})),Ce=e=>w.css`
58
58
  display: flex;
59
59
  justify-content: center;
60
60
  flex-direction: column;
@@ -116,7 +116,7 @@
116
116
  `,Kt=e=>{var t;return w.css`
117
117
  ${D(e)}
118
118
  outline-offset: ${(t=e.theme.sizes)==null?void 0:t.small};
119
- `},ye=y(K)`
119
+ `},ye=C(K)`
120
120
  position: absolute;
121
121
  top: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.normal}};
122
122
  right: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.normal}};
@@ -132,7 +132,7 @@
132
132
  height: 15px;
133
133
  box-sizing: content-box;
134
134
  }
135
- `,le=y(te)`
135
+ `,le=C(te)`
136
136
  font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
137
137
  font-weight: normal;
138
138
  line-height: 1.2em;
@@ -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)},F=({text:e="",backgroundSize:t="contain",size:n=12,symbol:o={content:"",type:""},elementStyle:r={},className:a,...c})=>{const{type:f,content:l}=o,u={"aria-label":e,role:"presentation"};switch(f){case"Uri":{const d={backgroundSize:t,backgroundImage:`url('${l}')`,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundAttachment:"center"};return s.jsx("i",{className:b.appendClassNames(a,"humany-icon","humany-custom-icon"),title:e,style:{...d,...r},...u,...c})}case"Svg":{const d={className:b.appendClassNames(a,"humany-icon"),width:`${n}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",...c,ref:null},h={minWidth:`${n}`};switch(l){case"search":return s.jsxs("svg",{viewBox:"0 0 32 30",...d,children:[s.jsx("circle",{cx:"14.8457",cy:"14.5175",r:"8.14359",transform:"rotate(45 14.8457 14.5175)"}),s.jsx("line",{x1:"21.1001",y1:"20.4865",x2:"26.5798",y2:"25.9661"})]});case"clear":return s.jsxs("svg",{viewBox:"0 0 27 27",...d,children:[s.jsx("circle",{cx:"13.4351",cy:"13.435",r:"9",transform:"rotate(45 13.4351 13.435)",stroke:"black"}),s.jsx("line",{x1:"16.6172",y1:"10.2531",x2:"10.2533",y2:"16.6171",stroke:"black"}),s.jsx("line",{x1:"16.6171",y1:"16.617",x2:"10.2532",y2:"10.2531",stroke:"black"})]});case"close":return s.jsxs("svg",{viewBox:"0 0 13 13",...d,children:[s.jsx("path",{d:"M12.3068 0.50647L1.27246 11.7273",stroke:"black"}),s.jsx("path",{d:"M12.2812 11.9473L1.24686 0.726451",stroke:"black"})]});case"caret-right":return s.jsxs("svg",{viewBox:"0 0 14 14",style:h,...d,children:[s.jsx("line",{x1:"4.13",y1:"1.05",x2:"10.13",y2:"7.05",stroke:"black"}),s.jsx("line",{x1:"10.13",y1:"6.95",x2:"4.13",y2:"12.95",stroke:"black"})]});case"caret-left":return s.jsxs("svg",{viewBox:"0 0 14 14",style:h,...d,children:[s.jsx("line",{x1:"10.13",y1:"12.95",x2:"4.13",y2:"6.95",stroke:"black"}),s.jsx("line",{x1:"4.13",y1:"7.05",x2:"10.13",y2:"1.05",stroke:"black"})]});case"caret-up":return s.jsxs(Ut,{viewBox:"0 0 14 14",style:h,...d,children:[s.jsx("line",{x1:"13.09",y1:"3.99",x2:"7.1",y2:"9.99",stroke:"black"}),s.jsx("line",{x1:"7.19",y1:"9.99",x2:"1.19",y2:"3.99",stroke:"black"})]});case"caret-down":return s.jsxs("svg",{viewBox:"0 0 14 14",style:h,...d,children:[s.jsx("line",{x1:"13.09",y1:"3.99",x2:"7.1",y2:"9.99",stroke:"black"}),s.jsx("line",{x1:"7.19",y1:"9.99",x2:"1.19",y2:"3.99",stroke:"black"})]});case"back":return s.jsxs("svg",{viewBox:"0 0 18 18",...d,children:[s.jsx("line",{y1:"-0.5",x2:"11.724",y2:"-0.5",transform:"matrix(-0.682355 -0.731021 0.682355 -0.731021 13 16.9999)",stroke:"white"}),s.jsx("line",{y1:"-0.5",x2:"11.724",y2:"-0.5",transform:"matrix(0.682355 -0.731021 0.682355 0.731021 5 9.5705)",stroke:"white"})]});case"alert":return s.jsxs("svg",{viewBox:"0 0 19 19",...d,children:[s.jsx("circle",{cx:"9.5",cy:"9.5",r:"9.5",fill:"#CA0813"}),s.jsx("path",{d:"M10.36 4.878V8.882C10.36 9.30667 10.339 9.72433 10.297 10.135C10.255 10.541 10.199 10.9727 10.129 11.43H8.96C8.89 10.9727 8.834 10.541 8.792 10.135C8.75 9.72433 8.729 9.30667 8.729 8.882V4.878H10.36ZM8.463 14.048C8.463 13.9033 8.48867 13.7657 8.54 13.635C8.596 13.5043 8.67067 13.3923 8.764 13.299C8.862 13.2057 8.97633 13.131 9.107 13.075C9.23767 13.019 9.37767 12.991 9.527 12.991C9.67167 12.991 9.80933 13.019 9.94 13.075C10.0707 13.131 10.1827 13.2057 10.276 13.299C10.3693 13.3923 10.444 13.5043 10.5 13.635C10.556 13.7657 10.584 13.9033 10.584 14.048C10.584 14.1973 10.556 14.3373 10.5 14.468C10.444 14.594 10.3693 14.7037 10.276 14.797C10.1827 14.8903 10.0707 14.9627 9.94 15.014C9.80933 15.07 9.67167 15.098 9.527 15.098C9.37767 15.098 9.23767 15.07 9.107 15.014C8.97633 14.9627 8.862 14.8903 8.764 14.797C8.67067 14.7037 8.596 14.594 8.54 14.468C8.48867 14.3373 8.463 14.1973 8.463 14.048Z",fill:"white"})]});case"send":return s.jsx("svg",{viewBox:"0 0 20 17",...d,children:s.jsx("path",{d:"M18.95 8.56428L0.949951 0.941406V7.02531L13.6351 8.47059L0.950001 9.92276L0.949951 15.9414L18.95 8.56428Z",fill:"#A6A6A6",stroke:"#A6A6A6",strokeWidth:"0.1"})});case"chat":return s.jsxs("svg",{viewBox:"-2 -3 40 40",...d,children:[s.jsx("path",{strokeWidth:"0",fillRule:"evenodd",clipRule:"evenodd",d:"M16.9799 34C21.2676 34 25.1841 32.4256 28.1725 29.8285L34.9534 32.1994C35.7991 32.4951 36.553 31.5778 36.0892 30.8173L32.2559 24.5317C33.3474 22.3103 33.9598 19.8153 33.9598 17.1786C33.9598 7.88838 26.3576 0.357178 16.9799 0.357178C7.60216 0.357178 0 7.88838 0 17.1786C0 26.4688 7.60216 34 16.9799 34ZM30.7031 24.565C31.9094 22.3701 32.5948 19.8536 32.5948 17.1786C32.5948 8.6352 25.6038 1.70942 16.9799 1.70942C8.35601 1.70942 1.36498 8.6352 1.36498 17.1786C1.36498 25.722 8.35601 32.6478 16.9799 32.6478C21.1946 32.6478 25.0193 30.9935 27.8285 28.3047L34.3975 30.5798L30.7031 24.565Z",fill:"currentColor"}),s.jsx("path",{strokeWidth:"0",d:"M12.9395 17.1786C12.9395 18.6079 11.7809 19.7665 10.3516 19.7665C8.92237 19.7665 7.76373 18.6079 7.76373 17.1786C7.76373 15.7493 8.92237 14.5907 10.3516 14.5907C11.7809 14.5907 12.9395 15.7493 12.9395 17.1786Z",fill:"currentColor"}),s.jsx("path",{strokeWidth:"0",d:"M19.4093 17.1786C19.4093 18.6079 18.2507 19.7665 16.8214 19.7665C15.3921 19.7665 14.2335 18.6079 14.2335 17.1786C14.2335 15.7493 15.3921 14.5907 16.8214 14.5907C18.2507 14.5907 19.4093 15.7493 19.4093 17.1786Z",fill:"currentColor"}),s.jsx("path",{strokeWidth:"0",d:"M25.8791 17.1786C25.8791 18.6079 24.7204 19.7665 23.2912 19.7665C21.8619 19.7665 20.7033 18.6079 20.7033 17.1786C20.7033 15.7493 21.8619 14.5907 23.2912 14.5907C24.7204 14.5907 25.8791 15.7493 25.8791 17.1786Z",fill:"currentColor"})]});case"chat-new":return s.jsxs("svg",{viewBox:"0 0 26 24",...d,children:[s.jsx("path",{d:"M22.1109 10.3813C22.3941 10.2876 22.6674 10.1722 22.9288 10.0371C23.1902 10.9797 23.33 11.9734 23.33 13C23.33 19.0751 18.4348 24 12.3962 24C9.6352 24 7.11325 22.9705 5.18893 21.2721L0.82251 22.8226C0.277922 23.0159 -0.207515 22.4161 0.0911259 21.9188L2.55952 17.8084C1.85665 16.3558 1.46233 14.7242 1.46233 13C1.46233 6.92487 6.35758 2 12.3962 2C13.4013 2 14.3747 2.13645 15.2992 2.39193C15.1628 2.65458 15.0464 2.92925 14.9519 3.21394C14.1358 2.99881 13.2793 2.88427 12.3962 2.88427C6.84301 2.88427 2.34128 7.41324 2.34128 13C2.34128 14.7493 2.78263 16.3949 3.5594 17.8302L1.18047 21.7634L5.41046 20.2757C7.21939 22.034 9.68221 23.1157 12.3962 23.1157C17.9493 23.1157 22.451 18.5868 22.451 13C22.451 12.0944 22.3328 11.2165 22.1109 10.3813Z",fill:"currentColor"}),s.jsx("path",{d:"M25.6633 4C25.6633 6.20914 23.8724 8 21.6633 8C19.4541 8 17.6633 6.20914 17.6633 4C17.6633 1.79086 19.4541 0 21.6633 0C23.8724 0 25.6633 1.79086 25.6633 4Z",fill:"currentColor"})]});case"agent":return s.jsxs("svg",{viewBox:"0 0 36 30",...d,children:[s.jsx("path",{d:"M0.900024 15.3887C0.900024 12.9034 2.91474 10.8887 5.40002 10.8887H6.28179V20.0995H5.40002C2.91474 20.0995 0.900024 18.0848 0.900024 15.5995V15.3887Z",stroke:"white"}),s.jsx("path",{d:"M34.65 15.5996C34.65 18.0849 32.6353 20.0996 30.15 20.0996L29.2683 20.0996L29.2683 10.8888L30.15 10.8888C32.6353 10.8888 34.65 12.9035 34.65 15.3888L34.65 15.5996Z",stroke:"white"}),s.jsx("path",{d:"M29.2565 20.5974C29.2565 26.341 22.8747 26.9792 19.6838 26.9792",stroke:"white"}),s.jsx("circle",{cx:"17.4074",cy:"26.9795",r:"2.05271",stroke:"white"}),s.jsx("path",{d:"M6.28467 12.9396C6.28467 11.195 6.28686 18.0452 6.28467 8.47234C6.28248 -1.10049 29.2591 -1.10047 29.259 8.47234C29.259 18.0452 29.2569 11.6631 29.259 12.9396",stroke:"white"})]});case"minimize":return s.jsx("svg",{viewBox:"0 -10 22 22",...d,children:s.jsx("path",{d:"M0 1H22",stroke:"white"})});case"sorting":return s.jsx("svg",{viewBox:"0 0 18 14",...d,children:s.jsx("path",{d:"M18 1H0M8 13H0M13 7H0"})});case"copy":return s.jsxs("svg",{viewBox:"0 0 19 17",...d,children:[s.jsx("rect",{x:"0.5",y:"0.5",width:"11.6667",height:"11.6014",rx:"1.5",fill:"white"}),s.jsx("rect",{x:"6.83301",y:"4.89868",width:"11.6667",height:"11.6014",rx:"1.5",fill:"white"})]});case"print":return s.jsxs("svg",{viewBox:"0 0 16 17",...d,children:[s.jsx("path",{d:"M4.31592 0.999999C4.31592 0.723857 4.53977 0.5 4.81592 0.5H11.1845C11.4606 0.5 11.6845 0.723858 11.6845 1V4.53323H4.31592V0.999999Z",fill:"white",stroke:"black"}),s.jsx("path",{d:"M0.5 4.84595C0.5 4.56981 0.723858 4.34595 1 4.34595H15C15.2761 4.34595 15.5 4.5698 15.5 4.84595V10.8399C15.5 11.116 15.2761 11.3399 15 11.3399H1C0.723858 11.3399 0.5 11.116 0.5 10.8399V4.84595Z",fill:"white",stroke:"black"}),s.jsx("path",{d:"M4.31592 10.0061C4.31592 9.72996 4.53978 9.5061 4.81592 9.5061H11.1845C11.4606 9.5061 11.6845 9.72996 11.6845 10.0061V16.0001C11.6845 16.2762 11.4606 16.5001 11.1845 16.5001H4.81592C4.53978 16.5001 4.31592 16.2762 4.31592 16.0001V10.0061Z",fill:"white",stroke:"black"}),s.jsx("line",{x1:"5.29004",y1:"10.8323",x2:"10.7101",y2:"10.8323",stroke:"black"}),s.jsx("line",{x1:"5.29004",y1:"12.5242",x2:"10.7101",y2:"12.5242",stroke:"black"}),s.jsx("line",{x1:"5.29004",y1:"14.2161",x2:"10.7101",y2:"14.2161",stroke:"black"})]});case"language":return s.jsx("svg",{viewBox:"0 0 19 19",...d,children:s.jsx("path",{d:"M9.5 18C14.1944 18 18 14.1944 18 9.5C18 4.80558 14.1944 1 9.5 1M9.5 18C4.80558 18 1 14.1944 1 9.5C1 4.80558 4.80558 1 9.5 1M9.5 18C11.823 18 13.7062 14.1944 13.7062 9.5C13.7062 4.80558 11.823 1 9.5 1M9.5 18C7.17699 18 5.29381 14.1944 5.29381 9.5C5.29381 4.80558 7.17699 1 9.5 1M1.44333 6.78351H17.4742M1.3088 11.7784H17.6912",stroke:"black"})});case"information":return s.jsxs("svg",{viewBox:"0 0 17 17",...d,children:[s.jsx("path",{d:"M9.72182 5.99993C10.0524 5.99993 10.3203 5.73198 10.3203 5.40145C10.3203 5.07092 10.0524 4.80297 9.72182 4.80297C9.39129 4.80297 9.12335 5.07092 9.12335 5.40145C9.12335 5.73198 9.39129 5.99993 9.72182 5.99993Z",fill:"black"}),s.jsx("path",{d:"M7.21887 6.67639C6.89117 6.71981 6.66072 7.02066 6.70414 7.34836C6.74756 7.67605 7.04841 7.9065 7.3761 7.86308L8.353 7.73364L7.17405 11.3945C7.11289 11.5844 7.15164 11.7825 7.26117 11.932C7.38068 12.1287 7.60875 12.2469 7.85155 12.2147L9.40669 12.0087C9.73436 11.9653 9.96479 11.6645 9.92137 11.3368C9.87795 11.0091 9.57713 10.7787 9.24947 10.8221L8.58762 10.9098L9.76774 7.24534C9.83038 7.05084 9.78821 6.84771 9.67254 6.69702C9.55085 6.50877 9.32791 6.39694 9.09093 6.42834L7.21887 6.67639Z",fill:"black"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 8.5C17 13.1944 13.1944 17 8.5 17C3.80558 17 0 13.1944 0 8.5C0 3.80558 3.80558 0 8.5 0C13.1944 0 17 3.80558 17 8.5ZM16 8.5C16 12.8454 12.8454 16 8.5 16C4.15461 16 1 12.8454 1 8.5C1 4.15461 4.15461 1 8.5 1C12.8454 1 16 4.15461 16 8.5Z",fill:"black"})]});case"options":return s.jsxs("svg",{viewBox:"0 0 16 2",...d,children:[s.jsx("circle",{cx:"15",cy:"1",r:"1",transform:"rotate(90 15 1)",fill:"black"}),s.jsx("circle",{cx:"1",cy:"1",r:"1",transform:"rotate(90 1 1)",fill:"black"}),s.jsx("circle",{cx:"8",cy:"1",r:"1",transform:"rotate(90 8 1)",fill:"black"})]});case"browse":return s.jsxs("svg",{viewBox:"0 0 24 24",...d,children:[s.jsx("circle",{cx:"12",cy:"12",r:"12",fill:"currentColor"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.16663 7.33334C6.16663 6.68901 6.68896 6.16667 7.33329 6.16667H10.25C10.8943 6.16667 11.4166 6.68901 11.4166 7.33334V10.25C11.4166 10.8943 10.8943 11.4167 10.25 11.4167H7.33329C6.68896 11.4167 6.16663 10.8943 6.16663 10.25V7.33334ZM7.33329 7.04167H10.25C10.411 7.04167 10.5416 7.17226 10.5416 7.33334V10.25C10.5416 10.4111 10.411 10.5417 10.25 10.5417H7.33329C7.17221 10.5417 7.04163 10.4111 7.04163 10.25V7.33334C7.04163 7.17226 7.17221 7.04167 7.33329 7.04167Z",fill:"white"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.16663 13.75C6.16663 13.1057 6.68896 12.5833 7.33329 12.5833H10.25C10.8943 12.5833 11.4166 13.1057 11.4166 13.75V16.6667C11.4166 17.311 10.8943 17.8333 10.25 17.8333H7.33329C6.68896 17.8333 6.16663 17.311 6.16663 16.6667V13.75ZM7.33329 13.4583H10.25C10.411 13.4583 10.5416 13.5889 10.5416 13.75V16.6667C10.5416 16.8278 10.411 16.9583 10.25 16.9583H7.33329C7.17221 16.9583 7.04163 16.8278 7.04163 16.6667V13.75C7.04163 13.5889 7.17221 13.4583 7.33329 13.4583Z",fill:"white"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.75 6.16667C13.1056 6.16667 12.5833 6.68901 12.5833 7.33334V10.25C12.5833 10.8943 13.1056 11.4167 13.75 11.4167H16.6666C17.311 11.4167 17.8333 10.8943 17.8333 10.25V7.33334C17.8333 6.68901 17.311 6.16667 16.6666 6.16667H13.75ZM16.6666 7.04167H13.75C13.5889 7.04167 13.4583 7.17226 13.4583 7.33334V10.25C13.4583 10.4111 13.5889 10.5417 13.75 10.5417H16.6666C16.8277 10.5417 16.9583 10.4111 16.9583 10.25V7.33334C16.9583 7.17226 16.8277 7.04167 16.6666 7.04167Z",fill:"white"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8333 15.2083C17.8333 16.6581 16.658 17.8333 15.2083 17.8333C13.7585 17.8333 12.5833 16.6581 12.5833 15.2083C12.5833 13.7586 13.7585 12.5833 15.2083 12.5833C16.658 12.5833 17.8333 13.7586 17.8333 15.2083ZM16.9583 15.2083C16.9583 16.1748 16.1748 16.9583 15.2083 16.9583C14.2418 16.9583 13.4583 16.1748 13.4583 15.2083C13.4583 14.2418 14.2418 13.4583 15.2083 13.4583C16.1748 13.4583 16.9583 14.2418 16.9583 15.2083Z",fill:"white"})]});case"video":return h.minWidth&&typeof h.minWidth=="number"&&(h.minWidth=`${h.minWidth}px`),s.jsxs("svg",{viewBox:"0 0 25 25",...d,style:h,children:[s.jsx("path",{d:"M16.8245 10.0758C18.7392 8.55799 21.3085 7.08973 21.7947 7.61552C22.5982 8.47863 22.5288 16.6929 21.7947 17.4766C21.3482 17.9627 18.7589 16.4945 16.8245 14.9866",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.61914 12.5385C2.61914 7.12973 4.41578 5.32715 9.80764 5.32715C15.1985 5.32715 16.9952 7.12973 16.9952 12.5385C16.9952 17.9462 15.1985 19.7497 9.80764 19.7497C4.41578 19.7497 2.61914 17.9462 2.61914 12.5385Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]});case"star-empty":return s.jsx("svg",{viewBox:"0 0 13 12",...d,children:s.jsx("path",{d:"M2 5.2767L5.11944 4.81796L6.70023 2L7.96487 4.81796L11 5.51699L8.75527 7.64684L9.18735 11L6.42623 9.40534L3.62295 10.7925L4.21311 7.64684L2 5.2767Z",stroke:"black"})});case"star-filled":return s.jsx("svg",{viewBox:"0 0 13 12",...d,children:s.jsx("path",{d:"M2 5.2767L5.11944 4.81796L6.70023 2L7.96487 4.81796L11 5.51699L8.75527 7.64684L9.18735 11L6.42623 9.40534L3.62295 10.7925L4.21311 7.64684L2 5.2767Z",fill:"black",stroke:"black"})});case"cog-wheel":return s.jsx("svg",{viewBox:"0 0 24 24",...d,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.273 2.68498V1C15.273 0.447715 14.8253 0 14.273 0H9.72754C9.17525 0 8.72754 0.447715 8.72754 1V2.6852C8.72754 3.20708 8.09656 3.46843 7.72754 3.09941L6.53588 1.90775C6.14536 1.51723 5.51219 1.51723 5.12167 1.90775L1.90755 5.12187C1.51702 5.5124 1.51702 6.14556 1.90755 6.53609L3.09865 7.72719C3.46767 8.09621 3.20632 8.72719 2.68444 8.72719H1C0.447715 8.72719 0 9.1749 0 9.72719V14.2726C0 14.8249 0.447715 15.2726 1 15.2726H2.68534C3.20722 15.2726 3.46857 15.9036 3.09955 16.2726L1.90793 17.4643C1.51741 17.8548 1.51741 18.488 1.90793 18.8785L5.12205 22.0926C5.51258 22.4831 6.14574 22.4831 6.53627 22.0926L7.72754 20.9013C8.09656 20.5323 8.72754 20.7937 8.72754 21.3155V23C8.72754 23.5523 9.17525 24 9.72754 24H14.273C14.8253 24 15.273 23.5523 15.273 23V21.3158C15.273 20.7939 15.904 20.5325 16.273 20.9015L17.4639 22.0924C17.8544 22.483 18.4876 22.483 18.8781 22.0924L22.0922 18.8783C22.4828 18.4878 22.4828 17.8546 22.0922 17.4641L20.9008 16.2726C20.5317 15.9036 20.7931 15.2726 21.315 15.2726H23C23.5523 15.2726 24 14.8249 24 14.2726V9.72719C24 9.1749 23.5523 8.72719 23 8.72719H21.3159C20.794 8.72719 20.5326 8.09621 20.9017 7.72719L22.0926 6.53625C22.4831 6.14572 22.4831 5.51256 22.0926 5.12203L18.8785 1.90791C18.488 1.51739 17.8548 1.51739 17.4643 1.90791L16.273 3.0992C15.904 3.46822 15.273 3.20686 15.273 2.68498ZM16.5792 4.20716C16.263 4.52345 15.7775 4.58532 15.3687 4.40375C15.2439 4.34832 15.1174 4.29587 14.9895 4.2465C14.5723 4.08555 14.273 3.69861 14.273 3.25149V2C14.273 1.44771 13.8253 1 13.273 1H10.7275C10.1753 1 9.72754 1.44772 9.72754 2V3.25116C9.72754 3.69832 9.42816 4.08528 9.01096 4.2462C8.88288 4.29561 8.75633 4.34809 8.6314 4.40357C8.22262 4.58511 7.73715 4.52323 7.42087 4.20695L6.53588 3.32196C6.14536 2.93144 5.51219 2.93144 5.12167 3.32196L3.32176 5.12187C2.93124 5.5124 2.93124 6.14556 3.32176 6.53609L4.20676 7.42109C4.52303 7.73736 4.58491 8.22283 4.40338 8.63161C4.34797 8.75638 4.29555 8.88276 4.2462 9.01067C4.08526 9.42784 3.69831 9.72719 3.25118 9.72719H2C1.44772 9.72719 1 10.1749 1 10.7272V13.2726C1 13.8249 1.44772 14.2726 2 14.2726H3.2511C3.69825 14.2726 4.0852 14.572 4.24614 14.9892C4.29556 15.1173 4.34807 15.2439 4.40357 15.3688C4.58513 15.7776 4.52327 16.2631 4.20698 16.5794L3.32215 17.4643C2.93162 17.8548 2.93162 18.488 3.32215 18.8785L5.12205 20.6784C5.51258 21.0689 6.14574 21.0689 6.53627 20.6784L7.42136 19.7933C7.73762 19.477 8.22305 19.4151 8.63183 19.5966C8.75662 19.6521 8.88302 19.7045 9.01096 19.7538C9.42816 19.9147 9.72754 20.3017 9.72754 20.7489V22C9.72754 22.5523 10.1753 23 10.7275 23H13.273C13.8253 23 14.273 22.5523 14.273 22V20.7485C14.273 20.3014 14.5723 19.9145 14.9895 19.7535C15.1173 19.7042 15.2436 19.6518 15.3682 19.5965C15.777 19.4149 16.2625 19.4768 16.5788 19.7931L17.4639 20.6782C17.8544 21.0687 18.4876 21.0687 18.8781 20.6782L20.678 18.8783C21.0685 18.4878 21.0685 17.8546 20.678 17.4641L19.7929 16.579C19.4766 16.2627 19.4147 15.7772 19.5963 15.3684C19.6517 15.2436 19.7042 15.1172 19.7535 14.9892C19.9145 14.572 20.3014 14.2726 20.7486 14.2726H22C22.5523 14.2726 23 13.8249 23 13.2726V10.7272C23 10.1749 22.5523 9.72719 22 9.72719H20.7485C20.3013 9.72719 19.9144 9.42784 19.7535 9.01067C19.7042 8.8829 19.6518 8.75665 19.5965 8.63201C19.415 8.22324 19.4768 7.7378 19.7931 7.42154L20.6784 6.53625C21.0689 6.14572 21.0689 5.51256 20.6784 5.12203L18.8785 3.32213C18.488 2.9316 17.8548 2.9316 17.4643 3.32213L16.5792 4.20716ZM16.5999 12.0001C16.5999 14.5406 14.5404 16.6001 11.9999 16.6001C9.45939 16.6001 7.3999 14.5406 7.3999 12.0001C7.3999 9.45958 9.45939 7.40009 11.9999 7.40009C14.5404 7.40009 16.5999 9.45958 16.5999 12.0001ZM17.5999 12.0001C17.5999 15.0929 15.0927 17.6001 11.9999 17.6001C8.90711 17.6001 6.3999 15.0929 6.3999 12.0001C6.3999 8.90729 8.90711 6.40009 11.9999 6.40009C15.0927 6.40009 17.5999 8.90729 17.5999 12.0001Z",fill:"black"})});case"zoom-in":return s.jsxs("svg",{viewBox:"0 0 24 24",...d,children:[s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.9774 20.8287L17.9149 16.7662C17.8437 16.6957 17.76 16.639 17.668 16.5992C20.7612 12.9331 20.415 7.48045 16.883 4.23507C13.3509 0.989694 7.88848 1.10517 4.49673 4.49691C1.10499 7.88866 0.98951 13.3511 4.23489 16.8831C7.48027 20.4152 12.9329 20.7614 16.599 17.6682C16.6388 17.7601 16.6955 17.8439 16.766 17.9151L20.8285 21.9776C21.1457 22.2948 21.6601 22.2948 21.9774 21.9776C22.2947 21.6603 22.2947 21.1459 21.9774 20.8287ZM10.8404 18.1531C6.80186 18.1531 3.52794 14.8792 3.52794 10.8406C3.52794 6.80204 6.80186 3.52813 10.8404 3.52813C14.879 3.52813 18.1529 6.80204 18.1529 10.8406C18.1483 14.8773 14.8771 18.1484 10.8404 18.1531Z",fill:"white"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8749 6.75003C11.2892 6.75003 11.6249 7.08581 11.6249 7.50003V14.25C11.6249 14.6642 11.2892 15 10.8749 15C10.4607 15 10.1249 14.6642 10.1249 14.25V7.50003C10.1249 7.08581 10.4607 6.75003 10.8749 6.75003Z",fill:"white"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.74994 10.875C6.74994 10.4608 7.08573 10.125 7.49994 10.125H14.2499C14.6642 10.125 14.9999 10.4608 14.9999 10.875C14.9999 11.2892 14.6642 11.625 14.2499 11.625H7.49994C7.08573 11.625 6.74994 11.2892 6.74994 10.875Z",fill:"white"})]});case"zoom-out":return s.jsxs("svg",{viewBox:"0 0 24 24",...d,children:[s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.1025 20.9536L18.04 16.8911C17.9688 16.8206 17.8851 16.764 17.7931 16.7241C20.8864 13.0581 20.5401 7.60539 17.0081 4.36001C13.476 1.11463 8.0136 1.23011 4.62185 4.62185C1.23011 8.0136 1.11463 13.476 4.36001 17.0081C7.60539 20.5401 13.0581 20.8864 16.7241 17.7931C16.764 17.8851 16.8206 17.9688 16.8911 18.04L20.9536 22.1025C21.2709 22.4198 21.7853 22.4198 22.1025 22.1025C22.4198 21.7853 22.4198 21.2709 22.1025 20.9536ZM10.9656 18.2781C6.92698 18.2781 3.65306 15.0041 3.65306 10.9656C3.65306 6.92698 6.92698 3.65306 10.9656 3.65306C15.0041 3.65306 18.2781 6.92698 18.2781 10.9656C18.2734 15.0022 15.0022 18.2734 10.9656 18.2781Z",fill:"white"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.87506 11C6.87506 10.5858 7.21085 10.25 7.62506 10.25H14.3751C14.7893 10.25 15.1251 10.5858 15.1251 11C15.1251 11.4142 14.7893 11.75 14.3751 11.75H7.62506C7.21085 11.75 6.87506 11.4142 6.87506 11Z",fill:"white"})]});case"download":return s.jsx("svg",{viewBox:"0 0 24 24",...d,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.5 11.1346V18.4038C22.498 20.1873 21.0527 21.6326 19.2692 21.6346H4.73077C2.94731 21.6326 1.50204 20.1873 1.5 18.4038V11.1346C1.5 10.6885 1.86162 10.3269 2.30769 10.3269C2.75377 10.3269 3.11538 10.6885 3.11538 11.1346V18.4038C3.1164 19.2956 3.83904 20.0182 4.73077 20.0192H19.2692C20.161 20.0182 20.8836 19.2956 20.8846 18.4038V11.1346C20.8846 10.6885 21.2462 10.3269 21.6923 10.3269C22.1384 10.3269 22.5 10.6885 22.5 11.1346ZM11.1434 16.2663C11.6167 16.7388 12.3832 16.7388 12.8565 16.2663L17.4172 11.7057C17.7326 11.3903 17.7326 10.8789 17.4172 10.5635C17.1018 10.2481 16.5904 10.2481 16.275 10.5635L12.8076 14.0308V3.05769C12.8076 2.61162 12.446 2.25 11.9999 2.25C11.5539 2.25 11.1923 2.61162 11.1923 3.05769V14.0308L7.72485 10.5636C7.40946 10.2482 6.89812 10.2482 6.58273 10.5636C6.26734 10.8789 6.26734 11.3903 6.58273 11.7057L11.1434 16.2663Z",fill:"white"})});case"lightbox-close":return s.jsx("svg",{viewBox:"0 0 24 24",...d,children:s.jsx("path",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",d:"M19.2621 18.1129C19.4674 18.3182 19.5475 18.6173 19.4724 18.8977C19.3973 19.178 19.1783 19.397 18.8979 19.4721C18.6176 19.5472 18.3184 19.4671 18.1132 19.2619L12.1877 13.3363L6.26214 19.2619C6.0569 19.4671 5.75776 19.5472 5.47741 19.4721C5.19705 19.397 4.97807 19.178 4.90294 18.8977C4.82782 18.6173 4.90798 18.3182 5.11321 18.1129L11.0388 12.1874L5.11321 6.26186C4.90798 6.05663 4.82782 5.75749 4.90294 5.47713C4.97807 5.19678 5.19705 4.97779 5.47741 4.90267C5.75776 4.82755 6.0569 4.9077 6.26214 5.11294L12.1877 11.0385L18.1132 5.11294C18.4305 4.79567 18.9449 4.79567 19.2621 5.11294C19.5794 5.4302 19.5794 5.9446 19.2621 6.26186L13.3366 12.1874L19.2621 18.1129Z",fill:"white"})});case"pagination-left":return s.jsx("svg",{viewBox:"0 0 24 24",...d,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.7935 18.7087C16.0092 18.9029 16.105 19.1974 16.0447 19.4813C15.9844 19.7652 15.7772 19.9954 15.5012 20.0852C15.2251 20.1749 14.9222 20.1105 14.7065 19.9164L6.58148 12.6039C6.41027 12.4498 6.3125 12.2303 6.3125 12C6.3125 11.7697 6.41027 11.5503 6.58148 11.3962L14.7065 4.08372C15.04 3.78354 15.5536 3.81054 15.8538 4.14402C16.154 4.4775 16.127 4.99119 15.7935 5.29136L8.33939 12L15.7935 18.7087Z",fill:"#222222"})});case"pagination-right":return s.jsx("svg",{viewBox:"0 0 24 24",...d,children:s.jsx("path",{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"})})}return null}case"FontAwesome":return s.jsx(Qe,{className:a,faIcon:l,title:e,...c});default:case"Text":return e?s.jsx("i",{className:b.appendClassNames(a,"humany-letter-symbol"),title:e,...u,...c,children:e.substring(0,2)}):null}},Ut=y.svg`
238
+ `},A=({elementId:e="humany-portal-elements",parent:t=document.body,children:n})=>{const[o]=i.useState(()=>{const r=document.getElementById(e)||document.createElement("div");return r.id=e,r});return i.useEffect(()=>(t.appendChild(o),()=>{o.childElementCount<=1&&o.remove()}),[o]),vt.createPortal(n,o)},F=({text:e="",backgroundSize:t="contain",size:n=12,symbol:o={content:"",type:""},elementStyle:r={},className:a,...c})=>{const{type:f,content:l}=o,u={"aria-label":e,role:"presentation"};switch(f){case"Uri":{const d={backgroundSize:t,backgroundImage:`url('${l}')`,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundAttachment:"center"};return s.jsx("i",{className:b.appendClassNames(a,"humany-icon","humany-custom-icon"),title:e,style:{...d,...r},...u,...c})}case"Svg":{const d={className:b.appendClassNames(a,"humany-icon"),width:`${n}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",...c,ref:null},h={minWidth:`${n}`};switch(l){case"search":return s.jsxs("svg",{viewBox:"0 0 32 30",...d,children:[s.jsx("circle",{cx:"14.8457",cy:"14.5175",r:"8.14359",transform:"rotate(45 14.8457 14.5175)"}),s.jsx("line",{x1:"21.1001",y1:"20.4865",x2:"26.5798",y2:"25.9661"})]});case"clear":return s.jsxs("svg",{viewBox:"0 0 27 27",...d,children:[s.jsx("circle",{cx:"13.4351",cy:"13.435",r:"9",transform:"rotate(45 13.4351 13.435)",stroke:"black"}),s.jsx("line",{x1:"16.6172",y1:"10.2531",x2:"10.2533",y2:"16.6171",stroke:"black"}),s.jsx("line",{x1:"16.6171",y1:"16.617",x2:"10.2532",y2:"10.2531",stroke:"black"})]});case"close":return s.jsxs("svg",{viewBox:"0 0 13 13",...d,children:[s.jsx("path",{d:"M12.3068 0.50647L1.27246 11.7273",stroke:"black"}),s.jsx("path",{d:"M12.2812 11.9473L1.24686 0.726451",stroke:"black"})]});case"caret-right":return s.jsxs("svg",{viewBox:"0 0 14 14",style:h,...d,children:[s.jsx("line",{x1:"4.13",y1:"1.05",x2:"10.13",y2:"7.05",stroke:"black"}),s.jsx("line",{x1:"10.13",y1:"6.95",x2:"4.13",y2:"12.95",stroke:"black"})]});case"caret-left":return s.jsxs("svg",{viewBox:"0 0 14 14",style:h,...d,children:[s.jsx("line",{x1:"10.13",y1:"12.95",x2:"4.13",y2:"6.95",stroke:"black"}),s.jsx("line",{x1:"4.13",y1:"7.05",x2:"10.13",y2:"1.05",stroke:"black"})]});case"caret-up":return s.jsxs(Ut,{viewBox:"0 0 14 14",style:h,...d,children:[s.jsx("line",{x1:"13.09",y1:"3.99",x2:"7.1",y2:"9.99",stroke:"black"}),s.jsx("line",{x1:"7.19",y1:"9.99",x2:"1.19",y2:"3.99",stroke:"black"})]});case"caret-down":return s.jsxs("svg",{viewBox:"0 0 14 14",style:h,...d,children:[s.jsx("line",{x1:"13.09",y1:"3.99",x2:"7.1",y2:"9.99",stroke:"black"}),s.jsx("line",{x1:"7.19",y1:"9.99",x2:"1.19",y2:"3.99",stroke:"black"})]});case"back":return s.jsxs("svg",{viewBox:"0 0 18 18",...d,children:[s.jsx("line",{y1:"-0.5",x2:"11.724",y2:"-0.5",transform:"matrix(-0.682355 -0.731021 0.682355 -0.731021 13 16.9999)",stroke:"white"}),s.jsx("line",{y1:"-0.5",x2:"11.724",y2:"-0.5",transform:"matrix(0.682355 -0.731021 0.682355 0.731021 5 9.5705)",stroke:"white"})]});case"alert":return s.jsxs("svg",{viewBox:"0 0 19 19",...d,children:[s.jsx("circle",{cx:"9.5",cy:"9.5",r:"9.5",fill:"#CA0813"}),s.jsx("path",{d:"M10.36 4.878V8.882C10.36 9.30667 10.339 9.72433 10.297 10.135C10.255 10.541 10.199 10.9727 10.129 11.43H8.96C8.89 10.9727 8.834 10.541 8.792 10.135C8.75 9.72433 8.729 9.30667 8.729 8.882V4.878H10.36ZM8.463 14.048C8.463 13.9033 8.48867 13.7657 8.54 13.635C8.596 13.5043 8.67067 13.3923 8.764 13.299C8.862 13.2057 8.97633 13.131 9.107 13.075C9.23767 13.019 9.37767 12.991 9.527 12.991C9.67167 12.991 9.80933 13.019 9.94 13.075C10.0707 13.131 10.1827 13.2057 10.276 13.299C10.3693 13.3923 10.444 13.5043 10.5 13.635C10.556 13.7657 10.584 13.9033 10.584 14.048C10.584 14.1973 10.556 14.3373 10.5 14.468C10.444 14.594 10.3693 14.7037 10.276 14.797C10.1827 14.8903 10.0707 14.9627 9.94 15.014C9.80933 15.07 9.67167 15.098 9.527 15.098C9.37767 15.098 9.23767 15.07 9.107 15.014C8.97633 14.9627 8.862 14.8903 8.764 14.797C8.67067 14.7037 8.596 14.594 8.54 14.468C8.48867 14.3373 8.463 14.1973 8.463 14.048Z",fill:"white"})]});case"send":return s.jsx("svg",{viewBox:"0 0 20 17",...d,children:s.jsx("path",{d:"M18.95 8.56428L0.949951 0.941406V7.02531L13.6351 8.47059L0.950001 9.92276L0.949951 15.9414L18.95 8.56428Z",fill:"#A6A6A6",stroke:"#A6A6A6",strokeWidth:"0.1"})});case"chat":return s.jsxs("svg",{viewBox:"-2 -3 40 40",...d,children:[s.jsx("path",{strokeWidth:"0",fillRule:"evenodd",clipRule:"evenodd",d:"M16.9799 34C21.2676 34 25.1841 32.4256 28.1725 29.8285L34.9534 32.1994C35.7991 32.4951 36.553 31.5778 36.0892 30.8173L32.2559 24.5317C33.3474 22.3103 33.9598 19.8153 33.9598 17.1786C33.9598 7.88838 26.3576 0.357178 16.9799 0.357178C7.60216 0.357178 0 7.88838 0 17.1786C0 26.4688 7.60216 34 16.9799 34ZM30.7031 24.565C31.9094 22.3701 32.5948 19.8536 32.5948 17.1786C32.5948 8.6352 25.6038 1.70942 16.9799 1.70942C8.35601 1.70942 1.36498 8.6352 1.36498 17.1786C1.36498 25.722 8.35601 32.6478 16.9799 32.6478C21.1946 32.6478 25.0193 30.9935 27.8285 28.3047L34.3975 30.5798L30.7031 24.565Z",fill:"currentColor"}),s.jsx("path",{strokeWidth:"0",d:"M12.9395 17.1786C12.9395 18.6079 11.7809 19.7665 10.3516 19.7665C8.92237 19.7665 7.76373 18.6079 7.76373 17.1786C7.76373 15.7493 8.92237 14.5907 10.3516 14.5907C11.7809 14.5907 12.9395 15.7493 12.9395 17.1786Z",fill:"currentColor"}),s.jsx("path",{strokeWidth:"0",d:"M19.4093 17.1786C19.4093 18.6079 18.2507 19.7665 16.8214 19.7665C15.3921 19.7665 14.2335 18.6079 14.2335 17.1786C14.2335 15.7493 15.3921 14.5907 16.8214 14.5907C18.2507 14.5907 19.4093 15.7493 19.4093 17.1786Z",fill:"currentColor"}),s.jsx("path",{strokeWidth:"0",d:"M25.8791 17.1786C25.8791 18.6079 24.7204 19.7665 23.2912 19.7665C21.8619 19.7665 20.7033 18.6079 20.7033 17.1786C20.7033 15.7493 21.8619 14.5907 23.2912 14.5907C24.7204 14.5907 25.8791 15.7493 25.8791 17.1786Z",fill:"currentColor"})]});case"chat-new":return s.jsxs("svg",{viewBox:"0 0 26 24",...d,children:[s.jsx("path",{d:"M22.1109 10.3813C22.3941 10.2876 22.6674 10.1722 22.9288 10.0371C23.1902 10.9797 23.33 11.9734 23.33 13C23.33 19.0751 18.4348 24 12.3962 24C9.6352 24 7.11325 22.9705 5.18893 21.2721L0.82251 22.8226C0.277922 23.0159 -0.207515 22.4161 0.0911259 21.9188L2.55952 17.8084C1.85665 16.3558 1.46233 14.7242 1.46233 13C1.46233 6.92487 6.35758 2 12.3962 2C13.4013 2 14.3747 2.13645 15.2992 2.39193C15.1628 2.65458 15.0464 2.92925 14.9519 3.21394C14.1358 2.99881 13.2793 2.88427 12.3962 2.88427C6.84301 2.88427 2.34128 7.41324 2.34128 13C2.34128 14.7493 2.78263 16.3949 3.5594 17.8302L1.18047 21.7634L5.41046 20.2757C7.21939 22.034 9.68221 23.1157 12.3962 23.1157C17.9493 23.1157 22.451 18.5868 22.451 13C22.451 12.0944 22.3328 11.2165 22.1109 10.3813Z",fill:"currentColor"}),s.jsx("path",{d:"M25.6633 4C25.6633 6.20914 23.8724 8 21.6633 8C19.4541 8 17.6633 6.20914 17.6633 4C17.6633 1.79086 19.4541 0 21.6633 0C23.8724 0 25.6633 1.79086 25.6633 4Z",fill:"currentColor"})]});case"agent":return s.jsxs("svg",{viewBox:"0 0 36 30",...d,children:[s.jsx("path",{d:"M0.900024 15.3887C0.900024 12.9034 2.91474 10.8887 5.40002 10.8887H6.28179V20.0995H5.40002C2.91474 20.0995 0.900024 18.0848 0.900024 15.5995V15.3887Z",stroke:"white"}),s.jsx("path",{d:"M34.65 15.5996C34.65 18.0849 32.6353 20.0996 30.15 20.0996L29.2683 20.0996L29.2683 10.8888L30.15 10.8888C32.6353 10.8888 34.65 12.9035 34.65 15.3888L34.65 15.5996Z",stroke:"white"}),s.jsx("path",{d:"M29.2565 20.5974C29.2565 26.341 22.8747 26.9792 19.6838 26.9792",stroke:"white"}),s.jsx("circle",{cx:"17.4074",cy:"26.9795",r:"2.05271",stroke:"white"}),s.jsx("path",{d:"M6.28467 12.9396C6.28467 11.195 6.28686 18.0452 6.28467 8.47234C6.28248 -1.10049 29.2591 -1.10047 29.259 8.47234C29.259 18.0452 29.2569 11.6631 29.259 12.9396",stroke:"white"})]});case"minimize":return s.jsx("svg",{viewBox:"0 -10 22 22",...d,children:s.jsx("path",{d:"M0 1H22",stroke:"white"})});case"sorting":return s.jsx("svg",{viewBox:"0 0 18 14",...d,children:s.jsx("path",{d:"M18 1H0M8 13H0M13 7H0"})});case"copy":return s.jsxs("svg",{viewBox:"0 0 19 17",...d,children:[s.jsx("rect",{x:"0.5",y:"0.5",width:"11.6667",height:"11.6014",rx:"1.5",fill:"white"}),s.jsx("rect",{x:"6.83301",y:"4.89868",width:"11.6667",height:"11.6014",rx:"1.5",fill:"white"})]});case"print":return s.jsxs("svg",{viewBox:"0 0 16 17",...d,children:[s.jsx("path",{d:"M4.31592 0.999999C4.31592 0.723857 4.53977 0.5 4.81592 0.5H11.1845C11.4606 0.5 11.6845 0.723858 11.6845 1V4.53323H4.31592V0.999999Z",fill:"white",stroke:"black"}),s.jsx("path",{d:"M0.5 4.84595C0.5 4.56981 0.723858 4.34595 1 4.34595H15C15.2761 4.34595 15.5 4.5698 15.5 4.84595V10.8399C15.5 11.116 15.2761 11.3399 15 11.3399H1C0.723858 11.3399 0.5 11.116 0.5 10.8399V4.84595Z",fill:"white",stroke:"black"}),s.jsx("path",{d:"M4.31592 10.0061C4.31592 9.72996 4.53978 9.5061 4.81592 9.5061H11.1845C11.4606 9.5061 11.6845 9.72996 11.6845 10.0061V16.0001C11.6845 16.2762 11.4606 16.5001 11.1845 16.5001H4.81592C4.53978 16.5001 4.31592 16.2762 4.31592 16.0001V10.0061Z",fill:"white",stroke:"black"}),s.jsx("line",{x1:"5.29004",y1:"10.8323",x2:"10.7101",y2:"10.8323",stroke:"black"}),s.jsx("line",{x1:"5.29004",y1:"12.5242",x2:"10.7101",y2:"12.5242",stroke:"black"}),s.jsx("line",{x1:"5.29004",y1:"14.2161",x2:"10.7101",y2:"14.2161",stroke:"black"})]});case"language":return s.jsx("svg",{viewBox:"0 0 19 19",...d,children:s.jsx("path",{d:"M9.5 18C14.1944 18 18 14.1944 18 9.5C18 4.80558 14.1944 1 9.5 1M9.5 18C4.80558 18 1 14.1944 1 9.5C1 4.80558 4.80558 1 9.5 1M9.5 18C11.823 18 13.7062 14.1944 13.7062 9.5C13.7062 4.80558 11.823 1 9.5 1M9.5 18C7.17699 18 5.29381 14.1944 5.29381 9.5C5.29381 4.80558 7.17699 1 9.5 1M1.44333 6.78351H17.4742M1.3088 11.7784H17.6912",stroke:"black"})});case"information":return s.jsxs("svg",{viewBox:"0 0 17 17",...d,children:[s.jsx("path",{d:"M9.72182 5.99993C10.0524 5.99993 10.3203 5.73198 10.3203 5.40145C10.3203 5.07092 10.0524 4.80297 9.72182 4.80297C9.39129 4.80297 9.12335 5.07092 9.12335 5.40145C9.12335 5.73198 9.39129 5.99993 9.72182 5.99993Z",fill:"black"}),s.jsx("path",{d:"M7.21887 6.67639C6.89117 6.71981 6.66072 7.02066 6.70414 7.34836C6.74756 7.67605 7.04841 7.9065 7.3761 7.86308L8.353 7.73364L7.17405 11.3945C7.11289 11.5844 7.15164 11.7825 7.26117 11.932C7.38068 12.1287 7.60875 12.2469 7.85155 12.2147L9.40669 12.0087C9.73436 11.9653 9.96479 11.6645 9.92137 11.3368C9.87795 11.0091 9.57713 10.7787 9.24947 10.8221L8.58762 10.9098L9.76774 7.24534C9.83038 7.05084 9.78821 6.84771 9.67254 6.69702C9.55085 6.50877 9.32791 6.39694 9.09093 6.42834L7.21887 6.67639Z",fill:"black"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 8.5C17 13.1944 13.1944 17 8.5 17C3.80558 17 0 13.1944 0 8.5C0 3.80558 3.80558 0 8.5 0C13.1944 0 17 3.80558 17 8.5ZM16 8.5C16 12.8454 12.8454 16 8.5 16C4.15461 16 1 12.8454 1 8.5C1 4.15461 4.15461 1 8.5 1C12.8454 1 16 4.15461 16 8.5Z",fill:"black"})]});case"options":return s.jsxs("svg",{viewBox:"0 0 16 2",...d,children:[s.jsx("circle",{cx:"15",cy:"1",r:"1",transform:"rotate(90 15 1)",fill:"black"}),s.jsx("circle",{cx:"1",cy:"1",r:"1",transform:"rotate(90 1 1)",fill:"black"}),s.jsx("circle",{cx:"8",cy:"1",r:"1",transform:"rotate(90 8 1)",fill:"black"})]});case"browse":return s.jsxs("svg",{viewBox:"0 0 24 24",...d,children:[s.jsx("circle",{cx:"12",cy:"12",r:"12",fill:"currentColor"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.16663 7.33334C6.16663 6.68901 6.68896 6.16667 7.33329 6.16667H10.25C10.8943 6.16667 11.4166 6.68901 11.4166 7.33334V10.25C11.4166 10.8943 10.8943 11.4167 10.25 11.4167H7.33329C6.68896 11.4167 6.16663 10.8943 6.16663 10.25V7.33334ZM7.33329 7.04167H10.25C10.411 7.04167 10.5416 7.17226 10.5416 7.33334V10.25C10.5416 10.4111 10.411 10.5417 10.25 10.5417H7.33329C7.17221 10.5417 7.04163 10.4111 7.04163 10.25V7.33334C7.04163 7.17226 7.17221 7.04167 7.33329 7.04167Z",fill:"white"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.16663 13.75C6.16663 13.1057 6.68896 12.5833 7.33329 12.5833H10.25C10.8943 12.5833 11.4166 13.1057 11.4166 13.75V16.6667C11.4166 17.311 10.8943 17.8333 10.25 17.8333H7.33329C6.68896 17.8333 6.16663 17.311 6.16663 16.6667V13.75ZM7.33329 13.4583H10.25C10.411 13.4583 10.5416 13.5889 10.5416 13.75V16.6667C10.5416 16.8278 10.411 16.9583 10.25 16.9583H7.33329C7.17221 16.9583 7.04163 16.8278 7.04163 16.6667V13.75C7.04163 13.5889 7.17221 13.4583 7.33329 13.4583Z",fill:"white"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.75 6.16667C13.1056 6.16667 12.5833 6.68901 12.5833 7.33334V10.25C12.5833 10.8943 13.1056 11.4167 13.75 11.4167H16.6666C17.311 11.4167 17.8333 10.8943 17.8333 10.25V7.33334C17.8333 6.68901 17.311 6.16667 16.6666 6.16667H13.75ZM16.6666 7.04167H13.75C13.5889 7.04167 13.4583 7.17226 13.4583 7.33334V10.25C13.4583 10.4111 13.5889 10.5417 13.75 10.5417H16.6666C16.8277 10.5417 16.9583 10.4111 16.9583 10.25V7.33334C16.9583 7.17226 16.8277 7.04167 16.6666 7.04167Z",fill:"white"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8333 15.2083C17.8333 16.6581 16.658 17.8333 15.2083 17.8333C13.7585 17.8333 12.5833 16.6581 12.5833 15.2083C12.5833 13.7586 13.7585 12.5833 15.2083 12.5833C16.658 12.5833 17.8333 13.7586 17.8333 15.2083ZM16.9583 15.2083C16.9583 16.1748 16.1748 16.9583 15.2083 16.9583C14.2418 16.9583 13.4583 16.1748 13.4583 15.2083C13.4583 14.2418 14.2418 13.4583 15.2083 13.4583C16.1748 13.4583 16.9583 14.2418 16.9583 15.2083Z",fill:"white"})]});case"video":return h.minWidth&&typeof h.minWidth=="number"&&(h.minWidth=`${h.minWidth}px`),s.jsxs("svg",{viewBox:"0 0 25 25",...d,style:h,children:[s.jsx("path",{d:"M16.8245 10.0758C18.7392 8.55799 21.3085 7.08973 21.7947 7.61552C22.5982 8.47863 22.5288 16.6929 21.7947 17.4766C21.3482 17.9627 18.7589 16.4945 16.8245 14.9866",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.61914 12.5385C2.61914 7.12973 4.41578 5.32715 9.80764 5.32715C15.1985 5.32715 16.9952 7.12973 16.9952 12.5385C16.9952 17.9462 15.1985 19.7497 9.80764 19.7497C4.41578 19.7497 2.61914 17.9462 2.61914 12.5385Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]});case"star-empty":return s.jsx("svg",{viewBox:"0 0 13 12",...d,children:s.jsx("path",{d:"M2 5.2767L5.11944 4.81796L6.70023 2L7.96487 4.81796L11 5.51699L8.75527 7.64684L9.18735 11L6.42623 9.40534L3.62295 10.7925L4.21311 7.64684L2 5.2767Z",stroke:"black"})});case"star-filled":return s.jsx("svg",{viewBox:"0 0 13 12",...d,children:s.jsx("path",{d:"M2 5.2767L5.11944 4.81796L6.70023 2L7.96487 4.81796L11 5.51699L8.75527 7.64684L9.18735 11L6.42623 9.40534L3.62295 10.7925L4.21311 7.64684L2 5.2767Z",fill:"black",stroke:"black"})});case"cog-wheel":return s.jsx("svg",{viewBox:"0 0 24 24",...d,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.273 2.68498V1C15.273 0.447715 14.8253 0 14.273 0H9.72754C9.17525 0 8.72754 0.447715 8.72754 1V2.6852C8.72754 3.20708 8.09656 3.46843 7.72754 3.09941L6.53588 1.90775C6.14536 1.51723 5.51219 1.51723 5.12167 1.90775L1.90755 5.12187C1.51702 5.5124 1.51702 6.14556 1.90755 6.53609L3.09865 7.72719C3.46767 8.09621 3.20632 8.72719 2.68444 8.72719H1C0.447715 8.72719 0 9.1749 0 9.72719V14.2726C0 14.8249 0.447715 15.2726 1 15.2726H2.68534C3.20722 15.2726 3.46857 15.9036 3.09955 16.2726L1.90793 17.4643C1.51741 17.8548 1.51741 18.488 1.90793 18.8785L5.12205 22.0926C5.51258 22.4831 6.14574 22.4831 6.53627 22.0926L7.72754 20.9013C8.09656 20.5323 8.72754 20.7937 8.72754 21.3155V23C8.72754 23.5523 9.17525 24 9.72754 24H14.273C14.8253 24 15.273 23.5523 15.273 23V21.3158C15.273 20.7939 15.904 20.5325 16.273 20.9015L17.4639 22.0924C17.8544 22.483 18.4876 22.483 18.8781 22.0924L22.0922 18.8783C22.4828 18.4878 22.4828 17.8546 22.0922 17.4641L20.9008 16.2726C20.5317 15.9036 20.7931 15.2726 21.315 15.2726H23C23.5523 15.2726 24 14.8249 24 14.2726V9.72719C24 9.1749 23.5523 8.72719 23 8.72719H21.3159C20.794 8.72719 20.5326 8.09621 20.9017 7.72719L22.0926 6.53625C22.4831 6.14572 22.4831 5.51256 22.0926 5.12203L18.8785 1.90791C18.488 1.51739 17.8548 1.51739 17.4643 1.90791L16.273 3.0992C15.904 3.46822 15.273 3.20686 15.273 2.68498ZM16.5792 4.20716C16.263 4.52345 15.7775 4.58532 15.3687 4.40375C15.2439 4.34832 15.1174 4.29587 14.9895 4.2465C14.5723 4.08555 14.273 3.69861 14.273 3.25149V2C14.273 1.44771 13.8253 1 13.273 1H10.7275C10.1753 1 9.72754 1.44772 9.72754 2V3.25116C9.72754 3.69832 9.42816 4.08528 9.01096 4.2462C8.88288 4.29561 8.75633 4.34809 8.6314 4.40357C8.22262 4.58511 7.73715 4.52323 7.42087 4.20695L6.53588 3.32196C6.14536 2.93144 5.51219 2.93144 5.12167 3.32196L3.32176 5.12187C2.93124 5.5124 2.93124 6.14556 3.32176 6.53609L4.20676 7.42109C4.52303 7.73736 4.58491 8.22283 4.40338 8.63161C4.34797 8.75638 4.29555 8.88276 4.2462 9.01067C4.08526 9.42784 3.69831 9.72719 3.25118 9.72719H2C1.44772 9.72719 1 10.1749 1 10.7272V13.2726C1 13.8249 1.44772 14.2726 2 14.2726H3.2511C3.69825 14.2726 4.0852 14.572 4.24614 14.9892C4.29556 15.1173 4.34807 15.2439 4.40357 15.3688C4.58513 15.7776 4.52327 16.2631 4.20698 16.5794L3.32215 17.4643C2.93162 17.8548 2.93162 18.488 3.32215 18.8785L5.12205 20.6784C5.51258 21.0689 6.14574 21.0689 6.53627 20.6784L7.42136 19.7933C7.73762 19.477 8.22305 19.4151 8.63183 19.5966C8.75662 19.6521 8.88302 19.7045 9.01096 19.7538C9.42816 19.9147 9.72754 20.3017 9.72754 20.7489V22C9.72754 22.5523 10.1753 23 10.7275 23H13.273C13.8253 23 14.273 22.5523 14.273 22V20.7485C14.273 20.3014 14.5723 19.9145 14.9895 19.7535C15.1173 19.7042 15.2436 19.6518 15.3682 19.5965C15.777 19.4149 16.2625 19.4768 16.5788 19.7931L17.4639 20.6782C17.8544 21.0687 18.4876 21.0687 18.8781 20.6782L20.678 18.8783C21.0685 18.4878 21.0685 17.8546 20.678 17.4641L19.7929 16.579C19.4766 16.2627 19.4147 15.7772 19.5963 15.3684C19.6517 15.2436 19.7042 15.1172 19.7535 14.9892C19.9145 14.572 20.3014 14.2726 20.7486 14.2726H22C22.5523 14.2726 23 13.8249 23 13.2726V10.7272C23 10.1749 22.5523 9.72719 22 9.72719H20.7485C20.3013 9.72719 19.9144 9.42784 19.7535 9.01067C19.7042 8.8829 19.6518 8.75665 19.5965 8.63201C19.415 8.22324 19.4768 7.7378 19.7931 7.42154L20.6784 6.53625C21.0689 6.14572 21.0689 5.51256 20.6784 5.12203L18.8785 3.32213C18.488 2.9316 17.8548 2.9316 17.4643 3.32213L16.5792 4.20716ZM16.5999 12.0001C16.5999 14.5406 14.5404 16.6001 11.9999 16.6001C9.45939 16.6001 7.3999 14.5406 7.3999 12.0001C7.3999 9.45958 9.45939 7.40009 11.9999 7.40009C14.5404 7.40009 16.5999 9.45958 16.5999 12.0001ZM17.5999 12.0001C17.5999 15.0929 15.0927 17.6001 11.9999 17.6001C8.90711 17.6001 6.3999 15.0929 6.3999 12.0001C6.3999 8.90729 8.90711 6.40009 11.9999 6.40009C15.0927 6.40009 17.5999 8.90729 17.5999 12.0001Z",fill:"black"})});case"zoom-in":return s.jsxs("svg",{viewBox:"0 0 24 24",...d,children:[s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.9774 20.8287L17.9149 16.7662C17.8437 16.6957 17.76 16.639 17.668 16.5992C20.7612 12.9331 20.415 7.48045 16.883 4.23507C13.3509 0.989694 7.88848 1.10517 4.49673 4.49691C1.10499 7.88866 0.98951 13.3511 4.23489 16.8831C7.48027 20.4152 12.9329 20.7614 16.599 17.6682C16.6388 17.7601 16.6955 17.8439 16.766 17.9151L20.8285 21.9776C21.1457 22.2948 21.6601 22.2948 21.9774 21.9776C22.2947 21.6603 22.2947 21.1459 21.9774 20.8287ZM10.8404 18.1531C6.80186 18.1531 3.52794 14.8792 3.52794 10.8406C3.52794 6.80204 6.80186 3.52813 10.8404 3.52813C14.879 3.52813 18.1529 6.80204 18.1529 10.8406C18.1483 14.8773 14.8771 18.1484 10.8404 18.1531Z",fill:"white"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8749 6.75003C11.2892 6.75003 11.6249 7.08581 11.6249 7.50003V14.25C11.6249 14.6642 11.2892 15 10.8749 15C10.4607 15 10.1249 14.6642 10.1249 14.25V7.50003C10.1249 7.08581 10.4607 6.75003 10.8749 6.75003Z",fill:"white"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.74994 10.875C6.74994 10.4608 7.08573 10.125 7.49994 10.125H14.2499C14.6642 10.125 14.9999 10.4608 14.9999 10.875C14.9999 11.2892 14.6642 11.625 14.2499 11.625H7.49994C7.08573 11.625 6.74994 11.2892 6.74994 10.875Z",fill:"white"})]});case"zoom-out":return s.jsxs("svg",{viewBox:"0 0 24 24",...d,children:[s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.1025 20.9536L18.04 16.8911C17.9688 16.8206 17.8851 16.764 17.7931 16.7241C20.8864 13.0581 20.5401 7.60539 17.0081 4.36001C13.476 1.11463 8.0136 1.23011 4.62185 4.62185C1.23011 8.0136 1.11463 13.476 4.36001 17.0081C7.60539 20.5401 13.0581 20.8864 16.7241 17.7931C16.764 17.8851 16.8206 17.9688 16.8911 18.04L20.9536 22.1025C21.2709 22.4198 21.7853 22.4198 22.1025 22.1025C22.4198 21.7853 22.4198 21.2709 22.1025 20.9536ZM10.9656 18.2781C6.92698 18.2781 3.65306 15.0041 3.65306 10.9656C3.65306 6.92698 6.92698 3.65306 10.9656 3.65306C15.0041 3.65306 18.2781 6.92698 18.2781 10.9656C18.2734 15.0022 15.0022 18.2734 10.9656 18.2781Z",fill:"white"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.87506 11C6.87506 10.5858 7.21085 10.25 7.62506 10.25H14.3751C14.7893 10.25 15.1251 10.5858 15.1251 11C15.1251 11.4142 14.7893 11.75 14.3751 11.75H7.62506C7.21085 11.75 6.87506 11.4142 6.87506 11Z",fill:"white"})]});case"download":return s.jsx("svg",{viewBox:"0 0 24 24",...d,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.5 11.1346V18.4038C22.498 20.1873 21.0527 21.6326 19.2692 21.6346H4.73077C2.94731 21.6326 1.50204 20.1873 1.5 18.4038V11.1346C1.5 10.6885 1.86162 10.3269 2.30769 10.3269C2.75377 10.3269 3.11538 10.6885 3.11538 11.1346V18.4038C3.1164 19.2956 3.83904 20.0182 4.73077 20.0192H19.2692C20.161 20.0182 20.8836 19.2956 20.8846 18.4038V11.1346C20.8846 10.6885 21.2462 10.3269 21.6923 10.3269C22.1384 10.3269 22.5 10.6885 22.5 11.1346ZM11.1434 16.2663C11.6167 16.7388 12.3832 16.7388 12.8565 16.2663L17.4172 11.7057C17.7326 11.3903 17.7326 10.8789 17.4172 10.5635C17.1018 10.2481 16.5904 10.2481 16.275 10.5635L12.8076 14.0308V3.05769C12.8076 2.61162 12.446 2.25 11.9999 2.25C11.5539 2.25 11.1923 2.61162 11.1923 3.05769V14.0308L7.72485 10.5636C7.40946 10.2482 6.89812 10.2482 6.58273 10.5636C6.26734 10.8789 6.26734 11.3903 6.58273 11.7057L11.1434 16.2663Z",fill:"white"})});case"lightbox-close":return s.jsx("svg",{viewBox:"0 0 24 24",...d,children:s.jsx("path",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",d:"M19.2621 18.1129C19.4674 18.3182 19.5475 18.6173 19.4724 18.8977C19.3973 19.178 19.1783 19.397 18.8979 19.4721C18.6176 19.5472 18.3184 19.4671 18.1132 19.2619L12.1877 13.3363L6.26214 19.2619C6.0569 19.4671 5.75776 19.5472 5.47741 19.4721C5.19705 19.397 4.97807 19.178 4.90294 18.8977C4.82782 18.6173 4.90798 18.3182 5.11321 18.1129L11.0388 12.1874L5.11321 6.26186C4.90798 6.05663 4.82782 5.75749 4.90294 5.47713C4.97807 5.19678 5.19705 4.97779 5.47741 4.90267C5.75776 4.82755 6.0569 4.9077 6.26214 5.11294L12.1877 11.0385L18.1132 5.11294C18.4305 4.79567 18.9449 4.79567 19.2621 5.11294C19.5794 5.4302 19.5794 5.9446 19.2621 6.26186L13.3366 12.1874L19.2621 18.1129Z",fill:"white"})});case"pagination-left":return s.jsx("svg",{viewBox:"0 0 24 24",...d,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.7935 18.7087C16.0092 18.9029 16.105 19.1974 16.0447 19.4813C15.9844 19.7652 15.7772 19.9954 15.5012 20.0852C15.2251 20.1749 14.9222 20.1105 14.7065 19.9164L6.58148 12.6039C6.41027 12.4498 6.3125 12.2303 6.3125 12C6.3125 11.7697 6.41027 11.5503 6.58148 11.3962L14.7065 4.08372C15.04 3.78354 15.5536 3.81054 15.8538 4.14402C16.154 4.4775 16.127 4.99119 15.7935 5.29136L8.33939 12L15.7935 18.7087Z",fill:"#222222"})});case"pagination-right":return s.jsx("svg",{viewBox:"0 0 24 24",...d,children:s.jsx("path",{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"})})}return null}case"FontAwesome":return s.jsx(Qe,{className:a,faIcon:l,title:e,...c});default:case"Text":return e?s.jsx("i",{className:b.appendClassNames(a,"humany-letter-symbol"),title:e,...u,...c,children:e.substring(0,2)}):null}},Ut=C.svg`
239
239
  transform: rotate(180deg);
240
- `,Xt={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",span:"span"},O=({variant:e,component:t,className:n,children:o})=>{const{typographyVariantMapping:r={}}=Pe(),a={...Xt,...r},c=t||a[e]||"span";return s.jsx(_t,{className:n,as:c,children:o})},_t=y.span``;var Xe=(e=>(e.SlideInLeft="slide-in-left",e.SlideInRight="slide-in-right",e.SlideInBottom="slide-in-bottom",e.SlideInTop="slide-in-top",e))(Xe||{});const Gt=300,Qt=({className:e,children:t,header:n,onToggle:o,trigger:r,fullScreen:a=!1,closeButtonAriaLabel:c,animation:f={type:"slide-in-bottom"}})=>{const{duration:l=Gt}=f,u=i.useRef(),d=i.useRef(),[h,m]=ge(!0),[p,C]=xe(),g=me(p),x=i.useRef(b.uuid());i.useEffect(()=>{o&&o(p)},[p]);const k=Z("Escape");i.useEffect(()=>{k&&C(!1)},[k]),H("click",L=>{const{target:B}=L;!d.current||!m.current||!B||d.current!==B&&m.current!==B&&!m.current.contains(B)&&!d.current.contains(B)&&C(!1)},window);const $=ee(x.current,()=>{C(!1)});Y("router:changed",()=>{C(!1)}),i.useEffect(()=>{p&&u.current?u.current.focus():!p&&d.current&&g&&d.current.focus()},[p,u.current,d.current]);const M=on[f.type];return s.jsxs(s.Fragment,{children:[s.jsx(de.CSSTransition,{in:p,className:"humany-drawer-transition",classNames:"humany-drawer-transition",unmountOnExit:!0,timeout:l,children:s.jsx(A,{children:s.jsxs(M,{duration:l,fullScreen:a,className:b.appendClassNames(e,"humany-drawer",`humany-drawer-${x.current}`),clientHeight:document.body.clientHeight,css:h,ref:m,children:[s.jsx(ye,{onClick:()=>C(!1),tabIndex:0,ref:u,"aria-label":c,children:s.jsx(F,{symbol:{type:"Svg",content:"close"}})}),!!n&&s.jsx(Jt,{variant:"h1",className:"humany-drawer-header",children:n}),t]})})}),i.cloneElement(r,{onClick:L=>{C(),$()},ref:d,"aria-label":r.props.title,"aria-expanded":p})]})},ne=y.div`
240
+ `,Xt={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",span:"span"},O=({variant:e,component:t,className:n,children:o})=>{const{typographyVariantMapping:r={}}=Pe(),a={...Xt,...r},c=t||a[e]||"span";return s.jsx(_t,{className:n,as:c,children:o})},_t=C.span``;var Xe=(e=>(e.SlideInLeft="slide-in-left",e.SlideInRight="slide-in-right",e.SlideInBottom="slide-in-bottom",e.SlideInTop="slide-in-top",e))(Xe||{});const Gt=300,Qt=({className:e,children:t,header:n,onToggle:o,trigger:r,fullScreen:a=!1,closeButtonAriaLabel:c,animation:f={type:"slide-in-bottom"}})=>{const{duration:l=Gt}=f,u=i.useRef(),d=i.useRef(),[h,m]=ge(!0),[p,x]=xe(),g=me(p),y=i.useRef(b.uuid());i.useEffect(()=>{o&&o(p)},[p]);const k=Z("Escape");i.useEffect(()=>{k&&x(!1)},[k]),H("click",L=>{const{target:B}=L;!d.current||!m.current||!B||d.current!==B&&m.current!==B&&!m.current.contains(B)&&!d.current.contains(B)&&x(!1)},window);const $=ee(y.current,()=>{x(!1)});Y("router:changed",()=>{x(!1)}),i.useEffect(()=>{p&&u.current?u.current.focus():!p&&d.current&&g&&d.current.focus()},[p,u.current,d.current]);const M=on[f.type];return s.jsxs(s.Fragment,{children:[s.jsx(de.CSSTransition,{in:p,className:"humany-drawer-transition",classNames:"humany-drawer-transition",unmountOnExit:!0,timeout:l,children:s.jsx(A,{children:s.jsxs(M,{duration:l,fullScreen:a,className:b.appendClassNames(e,"humany-drawer",`humany-drawer-${y.current}`),clientHeight:document.body.clientHeight,css:h,ref:m,children:[s.jsx(ye,{onClick:()=>x(!1),tabIndex:0,ref:u,"aria-label":c,children:s.jsx(F,{symbol:{type:"Svg",content:"close"}})}),!!n&&s.jsx(Jt,{variant:"h1",className:"humany-drawer-header",children:n}),t]})})}),i.cloneElement(r,{onClick:L=>{x(),$()},ref:d,"aria-label":r.props.title,"aria-expanded":p})]})},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=y(O)`
251
+ `,Jt=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=y(ne)`
267
+ `,en=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=y(ne)`
284
+ `,tn=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=y(ne)`
302
+ `,nn=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=y(ne)`
320
+ `,sn=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},_e=(e,t,n)=>{const[o,r]=i.useState(0),[a,c]=i.useState(0),f=i.useCallback((l,u)=>{if(l.preventDefault(),u){const d=u.getBoundingClientRect();r(Math.max(document.body.clientWidth-d.right,1)),c(d.bottom+window.scrollY)}},[o,a,r,c]);return i.useEffect(()=>{if(!n||!e)return;const l=n.getBoundingClientRect(),u={x:o,y:a};l.left<0&&(u.x=0),l.bottom>window.innerHeight&&(u.y=0),u.x!==o&&r(u.x),u.y!==a&&c(u.y)},[n,e,t]),[{x:o,y:a},f]},rn=i.forwardRef(({className:e="",children:t=null,trigger:n,closeButtonAriaLabel:o,...r},a)=>{const c=i.useRef(),f=i.useRef(),l=i.useRef();i.useImperativeHandle(a,()=>l.current,[l.current]);const u=i.useRef(b.uuid()),[d,h]=i.useState(!1),m=me(d),[{x:p,y:C},g]=_e(d,u.current,l.current),x=Z("Escape");i.useEffect(()=>{x&&h(!1)},[x]),i.useEffect(()=>{d&&c.current?c.current.focus():!d&&f.current&&m&&f.current.focus()},[d,c.current,f.current]),H("click",M=>{const{target:L}=M;!l.current||!L||l.current!==L&&!l.current.contains(L)&&h(!1)},window),Y("router:changed",()=>{h(!1)});const k=ee(u.current,()=>{h(!1)}),$=i.useCallback(M=>{M.stopPropagation(),g(M,f.current),h(!d),k()},[k,g,h]);return s.jsxs(s.Fragment,{children:[d&&s.jsx(A,{children:s.jsxs(an,{className:b.appendClassNames("humany-dropdown",`humany-dropdown-${u.current}`,e),...r,x:p,y:C,ref:l,children:[s.jsx(ye,{onClick:()=>h(!1),tabIndex:0,ref:c,"aria-label":o,children:s.jsx(F,{symbol:{type:"Svg",content:"close"}})}),t]})}),i.cloneElement(n,{onClick:$,ref:f,"aria-label":n.props.title,"aria-expanded":d})]})}),an=y.div`
339
+ `,on={["slide-in-bottom"]:en,["slide-in-right"]:tn,["slide-in-left"]:nn,["slide-in-top"]:sn},_e=(e,t,n)=>{const[o,r]=i.useState(0),[a,c]=i.useState(0),f=i.useCallback((l,u)=>{if(l.preventDefault(),u){const d=u.getBoundingClientRect();r(Math.max(document.body.clientWidth-d.right,1)),c(d.bottom+window.scrollY)}},[o,a,r,c]);return i.useEffect(()=>{if(!n||!e)return;const l=n.getBoundingClientRect(),u={x:o,y:a};l.left<0&&(u.x=0),l.bottom>window.innerHeight&&(u.y=0),u.x!==o&&r(u.x),u.y!==a&&c(u.y)},[n,e,t]),[{x:o,y:a},f]},rn=i.forwardRef(({className:e="",children:t=null,trigger:n,closeButtonAriaLabel:o,...r},a)=>{const c=i.useRef(),f=i.useRef(),l=i.useRef();i.useImperativeHandle(a,()=>l.current,[l.current]);const u=i.useRef(b.uuid()),[d,h]=i.useState(!1),m=me(d),[{x:p,y:x},g]=_e(d,u.current,l.current),y=Z("Escape");i.useEffect(()=>{y&&h(!1)},[y]),i.useEffect(()=>{d&&c.current?c.current.focus():!d&&f.current&&m&&f.current.focus()},[d,c.current,f.current]),H("click",M=>{const{target:L}=M;!l.current||!L||l.current!==L&&!l.current.contains(L)&&h(!1)},window),Y("router:changed",()=>{h(!1)});const k=ee(u.current,()=>{h(!1)}),$=i.useCallback(M=>{M.stopPropagation(),g(M,f.current),h(!d),k()},[k,g,h]);return s.jsxs(s.Fragment,{children:[d&&s.jsx(A,{children:s.jsxs(an,{className:b.appendClassNames("humany-dropdown",`humany-dropdown-${u.current}`,e),...r,x:p,y:x,ref:l,children:[s.jsx(ye,{onClick:()=>h(!1),tabIndex:0,ref:c,"aria-label":o,children:s.jsx(F,{symbol:{type:"Svg",content:"close"}})}),t]})}),i.cloneElement(n,{onClick:$,ref:f,"aria-label":n.props.title,"aria-expanded":d})]})}),an=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,26 +344,26 @@
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=y.div`
347
+ `,Ge=({...e})=>s.jsx(cn,{...e}),cn=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),...S(r),ref:a,children:e})),un=y.div`
349
+ `,ln=i.forwardRef(({children:e,columns:t,gap:n,className:o,...r},a)=>s.jsx(un,{className:b.appendClassNames(o,"humany-grid"),"data-columns":t,"data-gap":n,...fe(r),...S(r),ref:a,children:e})),un=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=R(),[c,f]=i.useState();return i.useEffect(()=>{const l=Ve(a,n),u={...l,...e,transform:{...l.transform,...e==null?void 0:e.transform}},d=Be(n,u);f(d)},[n,e]),s.jsx("div",{className:b.appendClassNames(t,"humany-html"),...S(o),ref:r,children:c})}),Qe=({faIcon:e,title:t,className:n="",role:o="presentation",...r})=>s.jsx("i",{className:b.appendClassNames(n,`fa fa-${e}`),title:t,role:o,...S(r)}),dn=i.forwardRef(({className:e="",autoFocus:t=!1,onFocusChange:n=()=>{},onEnter:o=()=>{},onEscape:r=()=>{},selectAllOnFocus:a,onChange:c=()=>{},disabled:f=!1,type:l,...u},d)=>{const[h,m]=i.useState(t),p=i.useRef();i.useImperativeHandle(d,()=>p.current),i.useEffect(()=>{var x;t&&((x=p==null?void 0:p.current)==null||x.focus())},[t,d,p]);const C=(x,k)=>{m(x),n&&n(x),a&&x&&k.target.select()},g={...S(u),disabled:f,autoFocus:t,type:l,onKeyDown:x=>{x.key==="Enter"&&h&&o(x),x.key==="Escape"&&h&&r(x)},onFocus:x=>C(!0,x),onBlur:x=>C(!1,x),onChange:x=>c(x.target.value||""),className:b.appendClassNames(e,"humany-input"),"data-type":l};return l!=="textarea"?s.jsx("input",{...g,ref:p}):s.jsx("textarea",{...g,ref:p})}),Je=i.forwardRef(({className:e,items:t,renderItem:n,renderLi:o=!1,...r},a)=>s.jsx("ul",{role:"none","aria-live":"polite",className:b.appendClassNames(e,"humany-list"),"data-item-count":t.length,...S(r),ref:a,children:t.map((c,f,l)=>o?s.jsx("li",{className:"humany-list-item",children:n(c,f,l)},c.id||f):n(c,f,l))})),et=i.forwardRef(({text:e,html:t,header:n,className:o,htmlParseInstruction:r,symbol:a,...c},f)=>s.jsxs("div",{className:b.appendClassNames(o,"humany-paragraph"),...S(c),ref:f,children:[n?s.jsxs(O,{variant:"h1",children:[a?s.jsx(F,{symbol:a}):null,n]}):null,t?s.jsx(be,{html:t,htmlParseInstruction:r}):null,e?s.jsx(te,{children:e}):null]})),tt=i.forwardRef(({header:e,customHeader:t,text:n,html:o,className:r,children:a,symbol:c,items:f,renderItem:l,renderLi:u,ulProps:d,...h},m)=>s.jsxs("div",{className:b.appendClassNames(r,"humany-item-list"),"data-item-count":f.length,...S(h),ref:m,children:[t||(e||n||o?s.jsx(et,{symbol:c,header:e,text:n,html:o}):null),f.length?s.jsx(Je,{items:f,renderItem:l,renderLi:u,...d}):null,a]})),fn=({className:e="",tree:t,renderItem:n,rootItem:o,renderUnselected:r=!0,renderEmpty:a=!0,ulProps:c,liProps:f})=>{const l=h=>!u(h),u=h=>!h||h.length<1?!0:!h.some(m=>!!m.selected),d=(h,m)=>s.jsx(tt,{className:b.appendClassNames(`humany-item-tree-level-${m}`),items:h,ulProps:c,renderItem:p=>{const{id:C,selected:g,items:x,matches:k}=p,$=g&&u(x);return!a&&!k?null:i.createElement("li",{...S(f),key:C,className:"humany-item-tree-item"},n&&n(p,m,$),x&&(r||$)&&d(x,m+1))}});return s.jsxs("div",{className:b.appendClassNames(e,"humany-item-tree"),children:[o&&o(!l(t||[])),t&&d(t,1)]})},nt=i.forwardRef(({className:e,onClick:t=()=>{},name:n="",to:o="",params:r={},children:a,...c},f)=>{const l=pe(),u=R();if(!l)return null;let d="";const h={onClick:t,className:b.appendClassNames(e,"humany-route-link"),to:d,innerRef:f,...c,ref:null};if(n){if(!(l.routes||[]).find(g=>g.name===n))return process.env.NODE_ENV!=="production"&&b.Logger.warn(`Unable to create route. No route named "${n}" exist.`),s.jsx(ie.Link,{...h,onClick:g=>{t(g),g.preventDefault(),process.env.NODE_ENV!=="production"&&b.Logger.warn(`Unable to navigate. No route named "${n}" exist.`)},children:a});const C=Object.keys(r).reduce((g,x)=>{const k=r[x];if(Array.isArray(k)){if(k.length===0)return g;g[x]=k.map($=>typeof $=="string"?encodeURIComponent($):$).join(",")}else g[x]=typeof k=="string"?encodeURIComponent(k):k;return g},{});try{d=l.generate(n,C||{})}catch{return s.jsx(ie.Link,{...h,ref:h.innerRef,children:a})}d&&l.settings.mode&&l.settings.mode===re.HistoryMode.browser&&d[0]!=="/"&&(d=`/${d}`)}else if(o&&l.history)d=l.history.createHref({hash:"",pathname:o,search:"",state:void 0});else return process.env.NODE_ENV!=="production"&&b.Logger.warn('Unable to generate path for route link. Either specify route name or use the "to" prop.'),null;if(l.settings&&l.settings.mode===re.HistoryMode.scopedHash){const m=u.get("$widget").name;d=re.getSpecificWidgetPath(d,m)}return h.as?s.jsx(hn,{...h,as:h.as,children:a}):s.jsx(ie.Link,{...h,to:d,children:a})}),hn=y.span``,oe=i.forwardRef(({className:e,disabled:t=!1,role:n="link",tabIndex:o=0,onClick:r=()=>{},onKeyDown:a=()=>{},title:c,as:f,href:l,children:u,target:d,routeName:h,params:m,...p},C)=>{const g={title:c,disabled:t,role:n,as:f,tabIndex:o,className:b.appendClassNames(e,"humany-link",[!!t,"humany-disabled"]),onClick:x=>{if(x.persist(),t){x.preventDefault();return}r(x)},onKeyDown:x=>{if(x.persist(),t){x.key!=="Tab"&&x.preventDefault();return}a(x)}};return h?s.jsx(mn,{name:h,params:m,...g,...S(p),ref:C,children:u}):s.jsx(pn,{href:l,target:d,...g,...S(p),ref:C,children:u})}),mn=y(nt)`
356
+ `,be=i.forwardRef(({htmlParseInstruction:e=null,className:t,html:n,...o},r)=>{const a=R(),[c,f]=i.useState();return i.useEffect(()=>{const l=Ve(a,n),u={...l,...e,transform:{...l.transform,...e==null?void 0:e.transform}},d=Be(n,u);f(d)},[n,e]),s.jsx("div",{className:b.appendClassNames(t,"humany-html"),...S(o),ref:r,children:c})}),Qe=({faIcon:e,title:t,className:n="",role:o="presentation",...r})=>s.jsx("i",{className:b.appendClassNames(n,`fa fa-${e}`),title:t,role:o,...S(r)}),dn=i.forwardRef(({className:e="",autoFocus:t=!1,onFocusChange:n=()=>{},onEnter:o=()=>{},onEscape:r=()=>{},selectAllOnFocus:a,onChange:c=()=>{},disabled:f=!1,type:l,...u},d)=>{const[h,m]=i.useState(t),p=i.useRef();i.useImperativeHandle(d,()=>p.current),i.useEffect(()=>{var y;t&&((y=p==null?void 0:p.current)==null||y.focus())},[t,d,p]);const x=(y,k)=>{m(y),n&&n(y),a&&y&&k.target.select()},g={...S(u),disabled:f,autoFocus:t,type:l,onKeyDown:y=>{y.key==="Enter"&&h&&o(y),y.key==="Escape"&&h&&r(y)},onFocus:y=>x(!0,y),onBlur:y=>x(!1,y),onChange:y=>c(y.target.value||""),className:b.appendClassNames(e,"humany-input"),"data-type":l};return l!=="textarea"?s.jsx("input",{...g,ref:p}):s.jsx("textarea",{...g,ref:p})}),Je=i.forwardRef(({className:e,items:t,renderItem:n,renderLi:o=!1,...r},a)=>s.jsx("ul",{role:"none",className:b.appendClassNames(e,"humany-list"),"data-item-count":t.length,...S(r),ref:a,children:t.map((c,f,l)=>o?s.jsx("li",{className:"humany-list-item",children:n(c,f,l)},c.id||f):n(c,f,l))})),et=i.forwardRef(({text:e,html:t,header:n,className:o,htmlParseInstruction:r,symbol:a,...c},f)=>s.jsxs("div",{className:b.appendClassNames(o,"humany-paragraph"),...S(c),ref:f,children:[n?s.jsxs(O,{variant:"h1",children:[a?s.jsx(F,{symbol:a}):null,n]}):null,t?s.jsx(be,{html:t,htmlParseInstruction:r}):null,e?s.jsx(te,{children:e}):null]})),tt=i.forwardRef(({header:e,customHeader:t,text:n,html:o,className:r,children:a,symbol:c,items:f,renderItem:l,renderLi:u,ulProps:d,...h},m)=>s.jsxs("div",{className:b.appendClassNames(r,"humany-item-list"),"data-item-count":f.length,...S(h),ref:m,children:[t||(e||n||o?s.jsx(et,{symbol:c,header:e,text:n,html:o}):null),f.length?s.jsx(Je,{items:f,renderItem:l,renderLi:u,...d}):null,a]})),fn=({className:e="",tree:t,renderItem:n,rootItem:o,renderUnselected:r=!0,renderEmpty:a=!0,ulProps:c,liProps:f})=>{const l=h=>!u(h),u=h=>!h||h.length<1?!0:!h.some(m=>!!m.selected),d=(h,m)=>s.jsx(tt,{className:b.appendClassNames(`humany-item-tree-level-${m}`),items:h,ulProps:c,renderItem:p=>{const{id:x,selected:g,items:y,matches:k}=p,$=g&&u(y);return!a&&!k?null:i.createElement("li",{...S(f),key:x,className:"humany-item-tree-item"},n&&n(p,m,$),y&&(r||$)&&d(y,m+1))}});return s.jsxs("div",{className:b.appendClassNames(e,"humany-item-tree"),children:[o&&o(!l(t||[])),t&&d(t,1)]})},nt=i.forwardRef(({className:e,onClick:t=()=>{},name:n="",to:o="",params:r={},children:a,...c},f)=>{const l=pe(),u=R();if(!l)return null;let d="";const h={onClick:t,className:b.appendClassNames(e,"humany-route-link"),to:d,innerRef:f,...c,ref:null};if(n){if(!(l.routes||[]).find(g=>g.name===n))return process.env.NODE_ENV!=="production"&&b.Logger.warn(`Unable to create route. No route named "${n}" exist.`),s.jsx(ie.Link,{...h,onClick:g=>{t(g),g.preventDefault(),process.env.NODE_ENV!=="production"&&b.Logger.warn(`Unable to navigate. No route named "${n}" exist.`)},children:a});const x=Object.keys(r).reduce((g,y)=>{const k=r[y];if(Array.isArray(k)){if(k.length===0)return g;g[y]=k.map($=>typeof $=="string"?encodeURIComponent($):$).join(",")}else g[y]=typeof k=="string"?encodeURIComponent(k):k;return g},{});try{d=l.generate(n,x||{})}catch{return s.jsx(ie.Link,{...h,ref:h.innerRef,children:a})}d&&l.settings.mode&&l.settings.mode===re.HistoryMode.browser&&d[0]!=="/"&&(d=`/${d}`)}else if(o&&l.history)d=l.history.createHref({hash:"",pathname:o,search:"",state:void 0});else return process.env.NODE_ENV!=="production"&&b.Logger.warn('Unable to generate path for route link. Either specify route name or use the "to" prop.'),null;if(l.settings&&l.settings.mode===re.HistoryMode.scopedHash){const m=u.get("$widget").name;d=re.getSpecificWidgetPath(d,m)}return h.as?s.jsx(hn,{...h,as:h.as,children:a}):s.jsx(ie.Link,{...h,to:d,children:a})}),hn=C.span``,oe=i.forwardRef(({className:e,disabled:t=!1,tabIndex:n=0,onClick:o=()=>{},onKeyDown:r=()=>{},title:a,as:c,href:f,children:l,target:u,routeName:d,params:h,...m},p)=>{const x={title:a,role:d==="index"?"button":void 0,"aria-expanded":d==="index"?"false":void 0,disabled:t,as:c,tabIndex:n,className:b.appendClassNames(e,"humany-link",[!!t,"humany-disabled"]),onClick:g=>{if(g.persist(),t){g.preventDefault();return}o(g)},onKeyDown:g=>{if(g.persist(),t){g.key!=="Tab"&&g.preventDefault();return}r(g)}};return m["data-client-name"]==="custom.link"&&(x.role="link"),d?s.jsx(mn,{name:d,params:h,...x,...S(m),ref:p,children:l}):s.jsx(pn,{href:f,target:u,...x,...S(m),ref:p,children:l})}),mn=C(nt)`
357
357
  ${e=>e.disabled?`
358
358
  pointer-events: none;
359
359
  opacity: .7;
360
360
  `:"cursor: pointer;"}
361
- `,pn=y.a`
361
+ `,pn=C.a`
362
362
  ${e=>e.disabled?`
363
363
  pointer-events: none;
364
364
  opacity: .7;
365
365
  `:"cursor: pointer;"}
366
- `,ve=({visible:e,duration:t=500,children:n,onClick:o=()=>{},...r})=>{const a=i.useRef(),c=i.useCallback(f=>{f.target===a.current&&o(f)},[o]);return s.jsx(de.CSSTransition,{in:e,className:"humany-overlay-transition",classNames:"humany-overlay-transition",unmountOnExit:!0,timeout:t,children:s.jsx(A,{children:s.jsx(gn,{className:"humany-overlay",duration:t,ref:a,onClick:c,...r,children:n})})})},gn=y.div`
366
+ `,ve=({visible:e,duration:t=500,children:n,onClick:o=()=>{},...r})=>{const a=i.useRef(),c=i.useCallback(f=>{f.target===a.current&&o(f)},[o]);return s.jsx(de.CSSTransition,{in:e,className:"humany-overlay-transition",classNames:"humany-overlay-transition",unmountOnExit:!0,timeout:t,children:s.jsx(A,{children:s.jsx(gn,{className:"humany-overlay",duration:t,ref:a,onClick:c,...r,children:n})})})},gn=C.div`
367
367
  background: rgba(0, 0, 0, 0.6);
368
368
  min-width: 100%;
369
369
  min-height: 100%;
@@ -410,7 +410,7 @@
410
410
  stroke-dasharray: 89, 200;
411
411
  stroke-dashoffset: -124px;
412
412
  }
413
- `,yn=y.svg`
413
+ `,yn=C.svg`
414
414
  animation: ${xn} 2s linear infinite;
415
415
  height: 100%;
416
416
  transform-origin: center center;
@@ -422,7 +422,7 @@
422
422
  right: 0;
423
423
  margin: auto;
424
424
  transition: 200ms ease-out opacity;
425
- `,bn=y.div`
425
+ `,bn=C.div`
426
426
  position: absolute;
427
427
  top: 0;
428
428
  bottom: 0;
@@ -440,7 +440,7 @@
440
440
  svg {
441
441
  opacity: ${e=>e["data-loading"]?"1":"0"};
442
442
  }
443
- `,vn=y.div`
443
+ `,vn=C.div`
444
444
  position: relative;
445
445
  margin: 0 auto;
446
446
  width: 100px;
@@ -449,18 +449,18 @@
449
449
  display: block;
450
450
  padding-top: 100%;
451
451
  }
452
- `,wn=y.circle`
452
+ `,wn=C.circle`
453
453
  stroke-dasharray: 1, 200;
454
454
  stroke-dashoffset: 0;
455
455
  animation: ${Cn} 1.5s ease-in-out infinite;
456
456
  stroke-linecap: round;
457
457
  stroke: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
458
458
  stroke-width: 2px;
459
- `,kn=({className:e,loading:t=!1})=>s.jsx(bn,{className:b.appendClassNames("humany-loader",e),"data-loading":t,children:s.jsx(vn,{className:"humany-spinner",children:s.jsx(yn,{viewBox:"25 25 50 50",children:s.jsx(wn,{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"2","stroke-miterlimit":"10"})})})}),jn=({zoomState:e,image:t,changeZoom:n,...o})=>{var C;const r=i.useRef(null),[a,c]=i.useState(!1),[f,l]=i.useState(!1),{width:u,height:d,...h}=o.style||{},m=i.useCallback(()=>{const g=r.current;if(g){const x=window.innerWidth/g.naturalWidth,k=window.innerHeight/g.naturalHeight,$=Math.min(x,k);return k>=1&&x>=1?1:$}return 1},[a,t.src]),p=i.useMemo(()=>{const g=r.current;if(g&&a){if(!f){l(!0);const x=m();n(x)}return g.naturalWidth>=g.naturalHeight?[`${e*g.naturalWidth}px`,"auto"]:["auto",`${e*g.naturalHeight}px`]}return null},[e,r,a,t.src]);return i.useEffect(()=>(c(!1),function(){l(!1)}),[t.src]),s.jsxs(s.Fragment,{children:[s.jsx($n,{loading:!a}),s.jsx(Ln,{onLoad:()=>{c(!0)},ref:r,imageSize:p,draggable:"false",...o,alt:((C=o.alt)==null?void 0:C.toString())||"",style:h,src:t.src,loaded:a}),s.jsx(Sn,{})]})},$n=y(kn)`
459
+ `,kn=({className:e,loading:t=!1})=>s.jsx(bn,{className:b.appendClassNames("humany-loader",e),"data-loading":t,children:s.jsx(vn,{className:"humany-spinner",children:s.jsx(yn,{viewBox:"25 25 50 50",children:s.jsx(wn,{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"2","stroke-miterlimit":"10"})})})}),jn=({zoomState:e,image:t,changeZoom:n,...o})=>{var x;const r=i.useRef(null),[a,c]=i.useState(!1),[f,l]=i.useState(!1),{width:u,height:d,...h}=o.style||{},m=i.useCallback(()=>{const g=r.current;if(g){const y=window.innerWidth/g.naturalWidth,k=window.innerHeight/g.naturalHeight,$=Math.min(y,k);return k>=1&&y>=1?1:$}return 1},[a,t.src]),p=i.useMemo(()=>{const g=r.current;if(g&&a){if(!f){l(!0);const y=m();n(y)}return g.naturalWidth>=g.naturalHeight?[`${e*g.naturalWidth}px`,"auto"]:["auto",`${e*g.naturalHeight}px`]}return null},[e,r,a,t.src]);return i.useEffect(()=>(c(!1),function(){l(!1)}),[t.src]),s.jsxs(s.Fragment,{children:[s.jsx($n,{loading:!a}),s.jsx(Ln,{onLoad:()=>{c(!0)},ref:r,imageSize:p,draggable:"false",...o,alt:((x=o.alt)==null?void 0:x.toString())||"",style:h,src:t.src,loaded:a}),s.jsx(Sn,{})]})},$n=C(kn)`
460
460
  svg circle {
461
461
  stroke: #ffffff;
462
462
  }
463
- `,Ln=y.img`
463
+ `,Ln=C.img`
464
464
  transform: none;
465
465
 
466
466
  ${e=>e.imageSize&&w.css`
@@ -471,28 +471,28 @@
471
471
  vertical-align: middle;
472
472
  position: relative;
473
473
  ${e=>!e.loaded&&"display:none;"}
474
- `,Sn=y.div`
474
+ `,Sn=C.div`
475
475
  height: 100%;
476
476
  display: inline-block;
477
477
  vertical-align: middle;
478
- `,Rn=()=>{const e=i.useRef(),[t,n]=i.useState(!0),o=i.useCallback(()=>(t||n(!0),e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{n(!1)},3e3),()=>{e.current&&clearTimeout(e.current)}),[t,e]);return[t,o]},st=({attrs:e,htmlBody:t})=>{var Se;const n=Z("Escape"),o=Z("ArrowLeft"),r=Z("ArrowRight"),[a,c]=i.useState(1),[f,l]=i.useState({top:0,left:0,x:0,y:0}),[u,d]=i.useState(!1),[h,m]=Rn(),[p,C]=i.useState(null),[g,x]=i.useState(null),k=i.useRef(null),$=i.useRef(null),M=i.useRef(null),L=i.useRef(null),B=i.useRef(null),[ut,dt]=i.useState(null);i.useEffect(()=>{n&&C(null)},[n]),i.useEffect(()=>{c(1)},[p]),i.useEffect(()=>{var z,X;if(p===null||$.current===null)return;const v=$.current.firstElementChild,j=(z=M.current)==null?void 0:z.querySelector(".nav-left"),E=(X=M.current)==null?void 0:X.querySelector(".nav-right");if(g==="Right")U&&E?E.focus():q&&j&&j.focus();else if(g==="Left")q&&j?j.focus():U&&E&&E.focus();else{if(!v)return;v.focus()}},[p,$,M,g]),i.useEffect(()=>{if(o){if(q)return $e()}else if(r&&U)return Le()},[o,r]),i.useEffect(()=>{var j,E;const v=((E=(j=B.current)==null?void 0:j.style)==null?void 0:E.float)||"";(v==="left"||v==="right")&&dt(v)},[]);const V=i.useMemo(()=>{const v=document.createElement("div");v.innerHTML=t||"";const j=v.getElementsByTagName("img");return Array.from(j).reduce((z,X)=>{const Re=X.getAttribute("src");if(Re){const Ct={src:Re};z.push(Ct)}return z},[])},[t]),ke=i.useCallback(()=>{const{src:v}=e;if(v){const j=V.findIndex((E,z)=>E.src===v);C(j)}},[V,e]),ft=i.useCallback(v=>{C(null)},[]),je=i.useCallback(v=>{c(v?a+a*.25:a-a*.25)},[c,a]),ht=i.useCallback(()=>{if(p!==null){const{src:v}=V[p];v&&window.open(v,"_self")}},[V,p]),mt=i.useCallback(v=>{const j=L.current;j&&(l({top:j.scrollTop,left:j.scrollLeft,x:v.clientX,y:v.clientY}),d(!0))},[L]),pt=i.useCallback(v=>{const j=L.current;if(j&&u){const E=v.clientX-f.x,z=v.clientY-f.y;j.scrollTop=f.top-z,j.scrollLeft=f.left-E}},[u,f]),gt=v=>{v.preventDefault(),d(!1)},xt=i.useMemo(()=>{if(L.current){const v=L.current.getElementsByTagName("img");if(v&&v.length){const j=v[0];return j.width>window.innerWidth||j.height>window.innerHeight}}return!1},[L,a]),$e=()=>{p!==null&&(x("Left"),C(p-1))},Le=()=>{p!==null&&(x("Right"),C(p+1))},q=p!==null&&p>0&&V.length>1,U=p!==null&&V.length-1>p;return s.jsxs(s.Fragment,{children:[s.jsx(ve,{visible:p!==null,onClick:ft,children:s.jsxs(zn,{onMouseDown:()=>m(),onMouseMove:()=>m(),onTouchStart:()=>m(),onKeyDown:()=>m(),children:[s.jsx(Vn,{show:h.toString(),children:s.jsx(Nn,{ref:$,buttons:[{id:"download",onClick:ht,icon:"download",ariaLabel:"Download image"},{id:"lightbox-close",onClick:()=>C(null),icon:"lightbox-close",ariaLabel:"Close"}]})}),s.jsx(Zn,{scrolling:u.toString(),isDraggable:xt.toString(),ref:L,onMouseMove:pt,onMouseDown:mt,onMouseUp:gt,children:p!==null&&s.jsx(jn,{changeZoom:v=>{c(v)},zoomState:a,...e,style:{...e.style||{},float:"none"},image:V[p]})}),s.jsx(Dn,{ref:M,show:h.toString(),buttons:[{id:"previous",onClick:$e,icon:"caret-left",circle:!0,show:q,className:"nav-left",ariaLabel:"Navigate to previous image"},{id:"next",onClick:Le,icon:"caret-right",circle:!0,show:U,className:"nav-right",ariaLabel:"Navigate to next image"}]}),s.jsxs(Wn,{show:h.toString(),children:[s.jsx(Tn,{buttons:[{id:"zoom-out",onClick:()=>je(!1),icon:"zoom-out",ariaLabel:"Zoom out"},{id:"zoom-in",onClick:()=>je(!0),icon:"zoom-in",ariaLabel:"Zoom in"}]}),s.jsxs(Bn,{variant:"span",children:[Math.trunc(a*100),"%"]})]})]})}),s.jsx(En,{ref:k,onClick:ke,onKeyDown:v=>{v.key==="Enter"&&(v.preventDefault(),ke())},alignment:ut,tabIndex:0,children:s.jsx(In,{...e,alt:((Se=e.alt)==null?void 0:Se.toString())||"",ref:B})})]})},we=i.forwardRef(({show:e="true",buttons:t,className:n},o)=>s.jsx(Mn,{ref:o,show:e,className:b.appendClassNames("humany-button-set",n),children:t.map(({id:r,circle:a=!1,show:c=!0,ariaLabel:f,onClick:l,icon:u,className:d},h)=>s.jsx(Hn,{circle:a.toString(),onClick:l,tabIndex:c?void 0:-1,show:c.toString(),icon:u,className:d,"aria-label":f,children:s.jsx(F,{size:24,symbol:{type:"Svg",content:u}})},r+h.toString()))})),ot=y.div`
478
+ `,Rn=()=>{const e=i.useRef(),[t,n]=i.useState(!0),o=i.useCallback(()=>(t||n(!0),e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{n(!1)},3e3),()=>{e.current&&clearTimeout(e.current)}),[t,e]);return[t,o]},st=({attrs:e,htmlBody:t})=>{var Se;const n=Z("Escape"),o=Z("ArrowLeft"),r=Z("ArrowRight"),[a,c]=i.useState(1),[f,l]=i.useState({top:0,left:0,x:0,y:0}),[u,d]=i.useState(!1),[h,m]=Rn(),[p,x]=i.useState(null),[g,y]=i.useState(null),k=i.useRef(null),$=i.useRef(null),M=i.useRef(null),L=i.useRef(null),B=i.useRef(null),[ut,dt]=i.useState(null);i.useEffect(()=>{n&&x(null)},[n]),i.useEffect(()=>{c(1)},[p]),i.useEffect(()=>{var z,X;if(p===null||$.current===null)return;const v=$.current.firstElementChild,j=(z=M.current)==null?void 0:z.querySelector(".nav-left"),E=(X=M.current)==null?void 0:X.querySelector(".nav-right");if(g==="Right")U&&E?E.focus():q&&j&&j.focus();else if(g==="Left")q&&j?j.focus():U&&E&&E.focus();else{if(!v)return;v.focus()}},[p,$,M,g]),i.useEffect(()=>{if(o){if(q)return $e()}else if(r&&U)return Le()},[o,r]),i.useEffect(()=>{var j,E;const v=((E=(j=B.current)==null?void 0:j.style)==null?void 0:E.float)||"";(v==="left"||v==="right")&&dt(v)},[]);const V=i.useMemo(()=>{const v=document.createElement("div");v.innerHTML=t||"";const j=v.getElementsByTagName("img");return Array.from(j).reduce((z,X)=>{const Re=X.getAttribute("src");if(Re){const Ct={src:Re};z.push(Ct)}return z},[])},[t]),ke=i.useCallback(()=>{const{src:v}=e;if(v){const j=V.findIndex((E,z)=>E.src===v);x(j)}},[V,e]),ft=i.useCallback(v=>{x(null)},[]),je=i.useCallback(v=>{c(v?a+a*.25:a-a*.25)},[c,a]),ht=i.useCallback(()=>{if(p!==null){const{src:v}=V[p];v&&window.open(v,"_self")}},[V,p]),mt=i.useCallback(v=>{const j=L.current;j&&(l({top:j.scrollTop,left:j.scrollLeft,x:v.clientX,y:v.clientY}),d(!0))},[L]),pt=i.useCallback(v=>{const j=L.current;if(j&&u){const E=v.clientX-f.x,z=v.clientY-f.y;j.scrollTop=f.top-z,j.scrollLeft=f.left-E}},[u,f]),gt=v=>{v.preventDefault(),d(!1)},xt=i.useMemo(()=>{if(L.current){const v=L.current.getElementsByTagName("img");if(v&&v.length){const j=v[0];return j.width>window.innerWidth||j.height>window.innerHeight}}return!1},[L,a]),$e=()=>{p!==null&&(y("Left"),x(p-1))},Le=()=>{p!==null&&(y("Right"),x(p+1))},q=p!==null&&p>0&&V.length>1,U=p!==null&&V.length-1>p;return s.jsxs(s.Fragment,{children:[s.jsx(ve,{visible:p!==null,onClick:ft,children:s.jsxs(zn,{onMouseDown:()=>m(),onMouseMove:()=>m(),onTouchStart:()=>m(),onKeyDown:()=>m(),children:[s.jsx(Vn,{show:h.toString(),children:s.jsx(Nn,{ref:$,buttons:[{id:"download",onClick:ht,icon:"download",ariaLabel:"Download image"},{id:"lightbox-close",onClick:()=>x(null),icon:"lightbox-close",ariaLabel:"Close"}]})}),s.jsx(Zn,{scrolling:u.toString(),isDraggable:xt.toString(),ref:L,onMouseMove:pt,onMouseDown:mt,onMouseUp:gt,children:p!==null&&s.jsx(jn,{changeZoom:v=>{c(v)},zoomState:a,...e,style:{...e.style||{},float:"none"},image:V[p]})}),s.jsx(Dn,{ref:M,show:h.toString(),buttons:[{id:"previous",onClick:$e,icon:"caret-left",circle:!0,show:q,className:"nav-left",ariaLabel:"Navigate to previous image"},{id:"next",onClick:Le,icon:"caret-right",circle:!0,show:U,className:"nav-right",ariaLabel:"Navigate to next image"}]}),s.jsxs(Wn,{show:h.toString(),children:[s.jsx(Tn,{buttons:[{id:"zoom-out",onClick:()=>je(!1),icon:"zoom-out",ariaLabel:"Zoom out"},{id:"zoom-in",onClick:()=>je(!0),icon:"zoom-in",ariaLabel:"Zoom in"}]}),s.jsxs(Bn,{variant:"span",children:[Math.trunc(a*100),"%"]})]})]})}),s.jsx(En,{ref:k,onClick:ke,onKeyDown:v=>{v.key==="Enter"&&(v.preventDefault(),ke())},alignment:ut,tabIndex:0,children:s.jsx(In,{...e,alt:((Se=e.alt)==null?void 0:Se.toString())||"",ref:B})})]})},we=i.forwardRef(({show:e="true",buttons:t,className:n},o)=>s.jsx(Mn,{ref:o,show:e,className:b.appendClassNames("humany-button-set",n),children:t.map(({id:r,circle:a=!1,show:c=!0,ariaLabel:f,onClick:l,icon:u,className:d},h)=>s.jsx(Hn,{circle:a.toString(),onClick:l,tabIndex:c?void 0:-1,show:c.toString(),icon:u,className:d,"aria-label":f,children:s.jsx(F,{size:24,symbol:{type:"Svg",content:u}})},r+h.toString()))})),ot=C.div`
479
479
  transition: opacity 0.3s ease 0s;
480
480
  z-index: 5;
481
481
  ${e=>e.show==="true"?"opacity: 1;":w.css`
482
482
  opacity: 0;
483
483
  pointer-events: none;
484
484
  `}
485
- `,En=y(oe)`
485
+ `,En=C(oe)`
486
486
  display: inline-block !important;
487
487
 
488
488
  ${e=>(e.alignment==="right"||e.alignment==="left")&&w.css`
489
489
  float: ${e.alignment};
490
490
  `}
491
- `,Mn=y(ot)`
491
+ `,Mn=C(ot)`
492
492
  position: fixed;
493
493
  display: flex;
494
494
  gap: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.normal}};
495
- `,ue="39px",Hn=y(K)`
495
+ `,ue="39px",Hn=C(K)`
496
496
  width: ${ue};
497
497
  height: ${ue};
498
498
  display: flex;
@@ -554,15 +554,15 @@
554
554
  opacity: 0;
555
555
  pointer-events: none;
556
556
  `}
557
- `,Nn=y(we)`
557
+ `,Nn=C(we)`
558
558
  top: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
559
559
  right: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
560
- `,Tn=y(we)`
560
+ `,Tn=C(we)`
561
561
  bottom: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
562
562
  width: 100%;
563
563
  align-items: center;
564
564
  justify-content: center;
565
- `,Dn=y(we)`
565
+ `,Dn=C(we)`
566
566
  display: block;
567
567
  button {
568
568
  position: fixed;
@@ -574,36 +574,36 @@
574
574
  right: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
575
575
  }
576
576
  }
577
- `,Bn=y(O)`
577
+ `,Bn=C(O)`
578
578
  position: fixed;
579
579
  bottom: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
580
580
  right: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
581
581
  color: #ffffff;
582
582
  font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.medium}};
583
583
  font-family: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.type}};
584
- `,rt=y(ot)`
584
+ `,rt=C(ot)`
585
585
  position: absolute;
586
586
  width: 100vw;
587
587
  height: 88px;
588
588
  left: 0px;
589
589
  z-index: 5;
590
- `,zn=y.div`
590
+ `,zn=C.div`
591
591
  width: 100%;
592
- `,Vn=y(rt)`
592
+ `,Vn=C(rt)`
593
593
  top: 0px;
594
594
  background-image: linear-gradient(
595
595
  to bottom,
596
596
  rgb(34, 34, 34, 0.8),
597
597
  rgba(34, 34, 34, 0)
598
598
  );
599
- `,Wn=y(rt)`
599
+ `,Wn=C(rt)`
600
600
  bottom: 0px;
601
601
  background-image: linear-gradient(
602
602
  to top,
603
603
  rgb(34, 34, 34, 0.8),
604
604
  rgba(34, 34, 34, 0)
605
605
  );
606
- `,Zn=y.div`
606
+ `,Zn=C.div`
607
607
  width: 100%;
608
608
  height: 100vh;
609
609
  overflow: auto;
@@ -612,9 +612,9 @@
612
612
  white-space: nowrap;
613
613
  justify-content: center;
614
614
  cursor: ${e=>e.isDraggable==="true"?e.scrolling==="true"?"grabbing":"grab":"auto"};
615
- `,In=y.img`
615
+ `,In=C.img`
616
616
  cursor: pointer;
617
- `,it=i.forwardRef(({className:e,children:t,trigger:n,onOverlayClick:o=()=>{},close:r=!1,...a},c)=>{const[f,l]=xe(),[u,d]=ge(!0),h=i.useRef(),m=i.useRef(b.uuid()),p=Z("Escape");i.useEffect(()=>{(p||r)&&l(!1)},[p,r]),i.useEffect(()=>{f&&h.current&&h.current.focus()},[f,h.current]),Y("router:changed",()=>{l(!1)});const C=i.useCallback(x=>{l(!1),o(x)},[o,l]);i.useImperativeHandle(c,()=>({close(){l(!1)}}));const g=i.useCallback(()=>ee(m.current,()=>{l(!1)}),[m.current]);return s.jsxs(s.Fragment,{children:[s.jsx(ve,{visible:f,onClick:C,children:s.jsxs(On,{className:b.appendClassNames(e,"humany-modal",`humany-modal-${m.current}`),css:u,tabIndex:-1,...a,ref:d,children:[s.jsx(ye,{onClick:()=>l(!1),tabIndex:0,ref:h,children:s.jsx(F,{symbol:{type:"Svg",content:"close"}})}),t]})}),i.cloneElement(n,{onClick:x=>{l(),g()}})]})}),On=y.div`
617
+ `,it=i.forwardRef(({className:e,children:t,trigger:n,onOverlayClick:o=()=>{},close:r=!1,...a},c)=>{const[f,l]=xe(),[u,d]=ge(!0),h=i.useRef(),m=i.useRef(b.uuid()),p=Z("Escape");i.useEffect(()=>{(p||r)&&l(!1)},[p,r]),i.useEffect(()=>{f&&h.current&&h.current.focus()},[f,h.current]),Y("router:changed",()=>{l(!1)});const x=i.useCallback(y=>{l(!1),o(y)},[o,l]);i.useImperativeHandle(c,()=>({close(){l(!1)}}));const g=i.useCallback(()=>ee(m.current,()=>{l(!1)}),[m.current]);return s.jsxs(s.Fragment,{children:[s.jsx(ve,{visible:f,onClick:x,children:s.jsxs(On,{className:b.appendClassNames(e,"humany-modal",`humany-modal-${m.current}`),css:u,tabIndex:-1,...a,ref:d,children:[s.jsx(ye,{onClick:()=>l(!1),tabIndex:0,ref:h,children:s.jsx(F,{symbol:{type:"Svg",content:"close"}})}),t]})}),i.cloneElement(n,{onClick:y=>{l(),g()}})]})}),On=C.div`
618
618
  font-family: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.type}};
619
619
  font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
620
620
  position: relative;
@@ -624,7 +624,7 @@
624
624
  ${e=>Ce(e)}
625
625
  ${e=>e.css&&e.css}
626
626
  outline: none;
627
- `,An=({className:e,trigger:t,header:n="",text:o="",onCancel:r=()=>{},onConfirm:a=()=>{},cancelLabel:c="",confirmLabel:f=""})=>{const l=i.useRef(),u=i.useCallback(()=>{var h;r(),(h=l==null?void 0:l.current)==null||h.close()},[r]),d=i.useCallback(()=>{var h;a(),(h=l==null?void 0:l.current)==null||h.close()},[a]);return s.jsxs(Fn,{className:e,trigger:t,ref:l,onOverlayClick:u,children:[n&&s.jsx(le,{children:n}),o&&s.jsx(le,{children:o}),f&&s.jsx(Pn,{onClick:d,children:f}),c&&s.jsx(Kn,{onClick:u,children:c})]})},Fn=y(it)`
627
+ `,An=({className:e,trigger:t,header:n="",text:o="",onCancel:r=()=>{},onConfirm:a=()=>{},cancelLabel:c="",confirmLabel:f=""})=>{const l=i.useRef(),u=i.useCallback(()=>{var h;r(),(h=l==null?void 0:l.current)==null||h.close()},[r]),d=i.useCallback(()=>{var h;a(),(h=l==null?void 0:l.current)==null||h.close()},[a]);return s.jsxs(Fn,{className:e,trigger:t,ref:l,onOverlayClick:u,children:[n&&s.jsx(le,{children:n}),o&&s.jsx(le,{children:o}),f&&s.jsx(Pn,{onClick:d,children:f}),c&&s.jsx(Kn,{onClick:u,children:c})]})},Fn=C(it)`
628
628
  display: block;
629
629
 
630
630
  span {
@@ -636,7 +636,7 @@
636
636
  margin: 0 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}};
637
637
  }
638
638
  }
639
- `,Pn=y(K)`
639
+ `,Pn=C(K)`
640
640
  display: inline-block;
641
641
  min-width: 50px;
642
642
  ${e=>{var t,n;return`padding: ${(t=e.theme.sizes)==null?void 0:t.small} ${(n=e.theme.sizes)==null?void 0:n.normal};`}}
@@ -654,7 +654,7 @@
654
654
  &:focus-visible {
655
655
  ${D}
656
656
  }
657
- `,Kn=y(K)`
657
+ `,Kn=C(K)`
658
658
  display: inline-block;
659
659
  min-width: 50px;
660
660
  ${e=>{var t,n;return`padding: ${(t=e.theme.sizes)==null?void 0:t.small} ${(n=e.theme.sizes)==null?void 0:n.normal};`}}
@@ -666,17 +666,17 @@
666
666
  &:focus-visible {
667
667
  ${D};
668
668
  }
669
- `,Yn=({header:e="",link:t="",suggestionHeader:n="",suggestion:o=""})=>s.jsxs(qn,{children:[s.jsx(Un,{children:s.jsx(O,{variant:"h2",children:"404"})}),s.jsxs(Xn,{children:[s.jsx(O,{variant:"h3",children:e}),s.jsx(at,{routeName:"index","aria-label":t,text:t})]}),s.jsxs(_n,{children:[s.jsx("span",{children:n}),s.jsx("ul",{children:s.jsx("li",{children:o})})]})]}),qn=y.div`
669
+ `,Yn=({header:e="",link:t="",suggestionHeader:n="",suggestion:o=""})=>s.jsxs(qn,{children:[s.jsx(Un,{children:s.jsx(O,{variant:"h2",children:"404"})}),s.jsxs(Xn,{children:[s.jsx(O,{variant:"h3",children:e}),s.jsx(at,{routeName:"index","aria-label":t,text:t})]}),s.jsxs(_n,{children:[s.jsx("span",{children:n}),s.jsx("ul",{children:s.jsx("li",{children:o})})]})]}),qn=C.div`
670
670
  display: flex;
671
671
  flex-wrap: wrap;
672
- `,Un=y.div`
672
+ `,Un=C.div`
673
673
  ${e=>P(e)("h2",w.css`
674
674
  padding: 0;
675
675
  margin: 0;
676
676
  color: gray;
677
677
  font-size: 7em;
678
678
  `)}
679
- `,Xn=y.div`
679
+ `,Xn=C.div`
680
680
  margin-left: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.medium}};
681
681
 
682
682
  ${e=>{var t;return P(e)("h3",w.css`
@@ -688,17 +688,17 @@
688
688
  color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.link}};
689
689
  font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.small}};
690
690
  }
691
- `,_n=y.div`
691
+ `,_n=C.div`
692
692
  margin-top: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.medium}};
693
693
  min-width: 100%;
694
694
 
695
695
  span {
696
696
  font-weight: bold;
697
697
  }
698
- `;class Gn extends i.Component{constructor(){super(...arguments);_(this,"node");_(this,"onFocusListener");_(this,"state",{boundFocus:!1})}componentWillMount(){const n=this.props.container.get("accessibilitySettings");n&&n.boundFocus&&this.setState({boundFocus:!0})}componentDidMount(){if(!this.state.boundFocus)return;const n=this.props.container.get("widgetDOMElement");this.node&&n&&(this.onFocusListener=this.node.addEventListener("focus",()=>{const o=n.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),a=[].filter.call(o,c=>typeof window>"u"?!0:!(window.getComputedStyle(c).display==="none"||c.offsetWidth<=0&&c.offsetHeight<=0))[0];a&&a.focus()}))}componentWillUnmount(){this.node&&this.node.removeEventListener("focus",this.onFocusListener)}render(){return this.state.boundFocus?s.jsx("div",{style:{opacity:0},tabIndex:0,ref:n=>{this.node=n}}):null}}const at=i.forwardRef(({className:e,description:t,text:n,children:o,...r},a)=>s.jsxs(oe,{className:b.appendClassNames(e,"humany-text-link"),...r,ref:a,children:[o,s.jsx(te,{children:n}),t?s.jsx(be,{html:t,className:"humany-description"}):null]}));var ct=(e=>(e.HH_MM="hh:mm",e.YYYY_MM_DD="yyyy-mm-dd",e.YYYY_MM_DD_HH_MM="yyyy-mm-dd hh:mm",e))(ct||{});const Qn=({className:e="",format:t="hh:mm",timestamp:n})=>s.jsx("span",{className:b.appendClassNames(e,"humany-timestamp"),children:Jn(n,t)}),Me=e=>`0${e}`.slice(-2);function Jn(e,t){const n=new Date(e),o=n.toTimeString().split(" ")[0].split(":"),r=o.length>1?`${o[0]}:${o[1]}`:o[0],a=n.getFullYear(),c=n.getMonth()+1,f=n.getDate(),l=`${a}-${Me(c)}-${Me(f)}`;return t==="yyyy-mm-dd"?l:t==="hh:mm"?r:`${l} ${r}`}const es=({className:e,children:t,content:n,sticky:o=!1,...r})=>{const[a,c]=i.useState(!1),f=i.useRef(b.uuid()),l=i.useRef(),[{x:u,y:d},h]=_e(a,f.current,l.current),m=C=>{const{target:g}=C;!l.current||!g||l.current!==g&&!l.current.contains(g)&&c(!1)};i.useEffect(()=>{if(o)return window.addEventListener("click",m),()=>{window.removeEventListener("click",m)}},[a,o]);const p=i.useCallback((C,g)=>{h(C,l.current),c(g)},[h,c]);return s.jsxs(ts,{ref:l,className:"humany-tooltip-trigger",onMouseEnter:o?void 0:C=>p(C,!0),onMouseLeave:o?void 0:C=>p(C,!1),onTouchEnd:o?C=>p(C,!a):void 0,onClick:o?C=>p(C,!a):void 0,children:[t,a&&s.jsx(A,{children:s.jsx(ns,{className:b.appendClassNames(e,"humany-tooltip-container"),x:u,y:d,...r,children:n})})]})},ts=y.div`
698
+ `;class Gn extends i.Component{constructor(){super(...arguments);_(this,"node");_(this,"onFocusListener");_(this,"state",{boundFocus:!1})}componentWillMount(){const n=this.props.container.get("accessibilitySettings");n&&n.boundFocus&&this.setState({boundFocus:!0})}componentDidMount(){if(!this.state.boundFocus)return;const n=this.props.container.get("widgetDOMElement");this.node&&n&&(this.onFocusListener=this.node.addEventListener("focus",()=>{const o=n.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),a=[].filter.call(o,c=>typeof window>"u"?!0:!(window.getComputedStyle(c).display==="none"||c.offsetWidth<=0&&c.offsetHeight<=0))[0];a&&a.focus()}))}componentWillUnmount(){this.node&&this.node.removeEventListener("focus",this.onFocusListener)}render(){return this.state.boundFocus?s.jsx("div",{style:{opacity:0},tabIndex:0,ref:n=>{this.node=n}}):null}}const at=i.forwardRef(({className:e,description:t,text:n,children:o,...r},a)=>s.jsxs(oe,{className:b.appendClassNames(e,"humany-text-link"),...r,ref:a,children:[o,s.jsx(te,{children:n}),t?s.jsx(be,{html:t,className:"humany-description"}):null]}));var ct=(e=>(e.HH_MM="hh:mm",e.YYYY_MM_DD="yyyy-mm-dd",e.YYYY_MM_DD_HH_MM="yyyy-mm-dd hh:mm",e))(ct||{});const Qn=({className:e="",format:t="hh:mm",timestamp:n})=>s.jsx("span",{className:b.appendClassNames(e,"humany-timestamp"),children:Jn(n,t)}),Me=e=>`0${e}`.slice(-2);function Jn(e,t){const n=new Date(e),o=n.toTimeString().split(" ")[0].split(":"),r=o.length>1?`${o[0]}:${o[1]}`:o[0],a=n.getFullYear(),c=n.getMonth()+1,f=n.getDate(),l=`${a}-${Me(c)}-${Me(f)}`;return t==="yyyy-mm-dd"?l:t==="hh:mm"?r:`${l} ${r}`}const es=({className:e,children:t,content:n,sticky:o=!1,...r})=>{const[a,c]=i.useState(!1),f=i.useRef(b.uuid()),l=i.useRef(),[{x:u,y:d},h]=_e(a,f.current,l.current),m=x=>{const{target:g}=x;!l.current||!g||l.current!==g&&!l.current.contains(g)&&c(!1)};i.useEffect(()=>{if(o)return window.addEventListener("click",m),()=>{window.removeEventListener("click",m)}},[a,o]);const p=i.useCallback((x,g)=>{h(x,l.current),c(g)},[h,c]);return s.jsxs(ts,{ref:l,className:"humany-tooltip-trigger",onMouseEnter:o?void 0:x=>p(x,!0),onMouseLeave:o?void 0:x=>p(x,!1),onTouchEnd:o?x=>p(x,!a):void 0,onClick:o?x=>p(x,!a):void 0,children:[t,a&&s.jsx(A,{children:s.jsx(ns,{className:b.appendClassNames(e,"humany-tooltip-container"),x:u,y:d,...r,children:n})})]})},ts=C.div`
699
699
  display: flex;
700
700
  align-items: center;
701
- `,ns=y.div`
701
+ `,ns=C.div`
702
702
  color: #ffffff;
703
703
  background: #161616;
704
704
  border-radius: ${e=>e.theme.borderRadius};
@@ -719,7 +719,7 @@
719
719
  }
720
720
 
721
721
  ${e=>{let t="";return e.y>0?t+=`top: calc(2px + ${e.y||"0"}px);`:t+="bottom: 2px;",e.x>0?t+=`right: calc(2px + ${e.x||"0"}px);`:t+="left: 2px;",t}};
722
- `,ss=e=>{const{in:t,mountOnEnter:n=!0,unmountOnExit:o=!0,timeout:r,children:a,transitions:c}=e,l=(()=>{var u,d;if(!(!c||c==="none")){if(typeof c=="string")return{enter:{transitionKeys:c,duration:r?typeof r=="number"?r:r.enter:200,easing:"ease-in"},exit:{transitionKeys:c,duration:r?typeof r=="number"?r:r.exit:200,easing:"ease-out"}};if(typeof c=="object"){const{enter:h,exit:m}=c;return{enter:{transitionKeys:(u=c.enter)==null?void 0:u.type,duration:r?typeof r=="number"?r:r.enter:200,easing:h.easing?h.easing:"ease-in"},exit:{transitionKeys:(d=c.enter)==null?void 0:d.type,duration:r?typeof r=="number"?r:r.enter:200,easing:m.easing?m.easing:"ease-out"}}}}})();return s.jsx(de.Transition,{timeout:{enter:l&&l.enter.duration||0,exit:l&&l.exit.duration||0},in:t,appear:!0,mountOnEnter:n,unmountOnExit:o,onEnter:u=>u.clientHeight,children:u=>a&&a(u,l&&G.compose(u,l))})},lt=i.forwardRef(({className:e,children:t,onClick:n=()=>{},widgetName:o,activationOptions:r,...a},c)=>{const f=R(),l=()=>{const{implementation:h}=f.get("$widget");return h.widgets.get(o)};i.useEffect(()=>{const h=l();return h==null||h.activate(r).then(()=>h.invoke("attach")),()=>{h==null||h.deactivate()}},[o]);const u=h=>{const m=l(),p=h.currentTarget;if(m){const C=()=>{m.invoke("renderState").then(g=>g===T.WidgetRenderState.open?m.invoke("close"):m.invoke("open")).then(()=>{m.events.subscribeOnce("widget:area-rendered",(g,x)=>{f.get("widgetDOMElement")&&m.events.dispatch("widget:modal-opened",{name:m.name,ref:p})})})};m.state===He.WidgetState.Deactivated?m.activate(r).then(()=>m.invoke("attach")).then(C):C()}},d=h=>{h.key==="Enter"&&(h.preventDefault(),u(h))};return s.jsx(oe,{className:b.appendClassNames(e,"humany-widget-link"),onKeyDown:d,onClick:h=>{n(h),u(h)},...a,ref:c,children:t})}),os=i.forwardRef(({portalId:e="humany-widget-overlay-portal",className:t,children:n},o)=>{const r=R(),a=i.useMemo(()=>{if(!r)return null;const c=r.get("widgetDOMElement");return!c||!c.childElementCount?null:c.children[0]},[r]);return a?s.jsx(A,{elementId:e,parent:a,children:s.jsx(rs,{className:b.appendClassNames("humany-widget-overlay-outlet",t),ref:o,children:n})}):null}),rs=y.div`
722
+ `,ss=e=>{const{in:t,mountOnEnter:n=!0,unmountOnExit:o=!0,timeout:r,children:a,transitions:c}=e,l=(()=>{var u,d;if(!(!c||c==="none")){if(typeof c=="string")return{enter:{transitionKeys:c,duration:r?typeof r=="number"?r:r.enter:200,easing:"ease-in"},exit:{transitionKeys:c,duration:r?typeof r=="number"?r:r.exit:200,easing:"ease-out"}};if(typeof c=="object"){const{enter:h,exit:m}=c;return{enter:{transitionKeys:(u=c.enter)==null?void 0:u.type,duration:r?typeof r=="number"?r:r.enter:200,easing:h.easing?h.easing:"ease-in"},exit:{transitionKeys:(d=c.enter)==null?void 0:d.type,duration:r?typeof r=="number"?r:r.enter:200,easing:m.easing?m.easing:"ease-out"}}}}})();return s.jsx(de.Transition,{timeout:{enter:l&&l.enter.duration||0,exit:l&&l.exit.duration||0},in:t,appear:!0,mountOnEnter:n,unmountOnExit:o,onEnter:u=>u.clientHeight,children:u=>a&&a(u,l&&G.compose(u,l))})},lt=i.forwardRef(({className:e,children:t,onClick:n=()=>{},widgetName:o,activationOptions:r,...a},c)=>{const f=R(),l=()=>{const{implementation:h}=f.get("$widget");return h.widgets.get(o)};i.useEffect(()=>{const h=l();return h==null||h.activate(r).then(()=>h.invoke("attach")),()=>{h==null||h.deactivate()}},[o]);const u=h=>{const m=l(),p=h.currentTarget;if(m){const x=()=>{m.invoke("renderState").then(g=>g===T.WidgetRenderState.open?m.invoke("close"):m.invoke("open")).then(()=>{m.events.subscribeOnce("widget:area-rendered",(g,y)=>{f.get("widgetDOMElement")&&m.events.dispatch("widget:modal-opened",{name:m.name,ref:p})})})};m.state===He.WidgetState.Deactivated?m.activate(r).then(()=>m.invoke("attach")).then(x):x()}},d=h=>{h.key==="Enter"&&(h.preventDefault(),u(h))};return s.jsx(oe,{className:b.appendClassNames(e,"humany-widget-link"),onKeyDown:d,onClick:h=>{n(h),u(h)},...a,ref:c,children:t})}),os=i.forwardRef(({portalId:e="humany-widget-overlay-portal",className:t,children:n},o)=>{const r=R(),a=i.useMemo(()=>{if(!r)return null;const c=r.get("widgetDOMElement");return!c||!c.childElementCount?null:c.children[0]},[r]);return a?s.jsx(A,{elementId:e,parent:a,children:s.jsx(rs,{className:b.appendClassNames("humany-widget-overlay-outlet",t),ref:o,children:n})}):null}),rs=C.div`
723
723
  background-color: #ffffff;
724
724
  position: absolute;
725
725
  top: 0;