@telia-ace/widget-types-grid 1.1.1-rc.0 → 1.1.1-rc.2

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.
@@ -0,0 +1,670 @@
1
+ "use strict";var Fn=Object.defineProperty;var qn=(t,e,n)=>e in t?Fn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var x=(t,e,n)=>(qn(t,typeof e!="symbol"?e+"":e,n),n);const d=require("react/jsx-runtime"),L=require("@emotion/react"),f=require("react"),b=require("@emotion/styled"),ut=require("react-transition-group"),Kn=require("react-dom"),et=require("react-router-dom"),Le=require("react-router"),tt=(t,e,n,...s)=>{const r=`[${t.get("$environment").name||"webprovisions"}] ${n}`;switch(e){case"info":console.info(r,...s);break;case"warning":console.warn(r,...s);break;case"error":console.error(r,...s);break}},Un=t=>{const e=t.container||t;return{info:(n,...s)=>tt(e,"info",n,...s),warn:(n,...s)=>tt(e,"warning",n,...s),error:(n,...s)=>tt(e,"error",n,...s)}};var be=(t=>(t.Implementation="implementation",t.Widget="widget",t))(be||{}),Q=(t=>(t.Pre="pre",t.Post="post",t))(Q||{});const Yn=(t,e,n,s)=>{try{const r=new e(n,s);return{name:t,invoke:(o,i)=>{let a;return r[o]&&(a=r[o].call(r,i)),Promise.resolve(a)},getInstance:()=>r}}catch(r){if(r.message&&r.message.indexOf("is not a constructor")>=0)return{name:t,invoke:o=>{let i;return o==="initialize"&&(i=e(n,s)),Promise.resolve(i)},getInstance:()=>e};throw r}};function It(t,e){return typeof t>"u"?e:t}class Xn{constructor(e={}){this.part=e}createCommand(e,n,s){let r;typeof n=="function"?r={scope:be.Widget,stage:Q.Post,defaultArgs:void 0,handlerResolver:n}:r={scope:It(n.scope,be.Widget),stage:It(n.stage,Q.Post),defaultArgs:n.defaultArgs,handlerResolver:s};let o=this.part;const i=e.split(".");return i.forEach((a,c)=>{c===i.length-1?o[a]||(o[a]=()=>r):o=this.part[a]=this.part[a]||{}}),this}get(){return this.part}}const Jt=t=>{const e=new Xn({});return t(e),e.get()};Jt(t=>{t.createCommand("types.register",{scope:be.Implementation,stage:Q.Pre},e=>(n,s)=>{e.container.get("$types")[n]=s}).createCommand("type",{stage:Q.Pre},e=>n=>{e.container.register("$type",n)}).createCommand("settings",{stage:Q.Pre,defaultArgs:[null]},e=>n=>{e.events.dispatch("settings:change",n,{bubbles:!0}),e.container.register("$settings",n)}).createCommand("plugin",{stage:Q.Pre},e=>(n,s,r)=>{const{container:o}=e;let i=null,a=n,c=s;typeof n=="string"&&(i=n,a=s,c=r);const u=l=>{const{transformPluginSettings:h}=e.container.get("$environmentOptions"),p=h?h(c||{},i,e.container,a):s;try{const m=Yn(i,a,o,p);o.get("$plugins").push(m),l&&m.invoke("initialize",null)}catch(m){Un(e).warn("Error when initializing plugin",m)}};e.container.get("$instance")?u(!0):e.events.subscribeOnce("widget:instance-created",()=>u(!1))}).createCommand("container.register",e=>(n,s)=>{e.container.register(n,s)}).createCommand("container.registerAsync",e=>(n,s)=>{e.container.registerAsync(n,s)}).createCommand("container.registerFactory",e=>(n,s)=>{e.container.registerFactory(n,s)}).createCommand("container.touch",e=>(n,s)=>{e.container.touch(n,s)}).createCommand("csp",{},e=>n=>{e.container.register("csp",n)})});function Jn(t){const e={};return[].filter.call(t.attributes,n=>/^data-/.test(n.name)).map(n=>n.name).forEach(n=>e[n.substr(5)]=t.getAttribute(n)),e}const Bt=(t,e,n)=>{const s=Jn(t);n({sourceDOMElement:t,eventType:e,data:s})};function zt(t,e,n){t.forEach(s=>{s.dataset.attached!=="true"&&(e==="load"?Bt(s,e,n):s.addEventListener(e,r=>{r.preventDefault(),Bt(s,e,n)}),s.dataset.monitored="true")})}function Gn(t,e,n){const s=t.container.get("bootstrapping.monitor");s&&s.events.subscribe("bootstrap:trigger-elements-updated",(o,i)=>{zt(i.triggerElements,e,n)});const r=t.container.get("triggerElements");r&&zt(r,e,n)}Jt(t=>{t.createCommand("ready",{scope:be.Implementation,stage:Q.Pre},e=>n=>{const{container:s}=e,r=s.owner;s.get("bootstrapping").ready?n(r):r.events.subscribeOnce("bootstrap:ready",()=>{n(r)})})});const nt=new WeakMap;function Qn(){return t=>(nt.has(t)||nt.set(t,{}),nt.get(t))}const st=(t,e,n,...s)=>{const r=`[${t.get("$environment").name||"webprovisions"}] ${n}`;switch(e){case"info":console.info(r,...s);break;case"warning":console.warn(r,...s);break;case"error":console.error(r,...s);break}},ce=t=>{const e=t.container||t;return{info:(n,...s)=>st(e,"info",n,...s),warn:(n,...s)=>st(e,"warning",n,...s),error:(n,...s)=>st(e,"error",n,...s)}},P=Qn(),bt=(()=>{let t=0;return()=>++t})(),xt=(t,e,n)=>{const s=P(t).touchQueue.get(e);s&&s.forEach(r=>{r(n,t)})};class es{constructor(e,n,s,r){this.key=e,this.factory=n,this.parent=s,this.container=r,this.id=bt(),this.resolved=!1,this.constructed=!1,this.async=!0}resolve(){if(!this.constructed){const e=this.factory(this.parent,this.container);return this.constructed=!0,this.value=Promise.resolve(e).then(n=>(this.resolved=!0,xt(this.container,this.key,n),n))}return this.value}}class ts{constructor(e,n,s,r){this.key=e,this.value=n,this.parent=s,this.container=r,this.id=bt(),this.async=!1,this.resolved=!1,this.constructed=!0,this.resolve=()=>(this.resolved=!0,xt(this.container,this.key,this.value),this.value)}}class ns{constructor(e,n,s,r){this.key=e,this.value=n,this.parent=s,this.container=r,this.id=bt(),this.async=!1,this.resolved=!1,this.constructed=!1,this.resolve=()=>{this.resolved=!0,this.constructed=!0;const o=this.value(this.parent,this.container);return xt(this.container,this.key,this.value),o}}}class wt{constructor(e,n,s){this.owner=e,this.name=n,this.parent=s,P(this).resolvers=new Map,P(this).touchQueue=new Map,P(this).children=[]}delete(e){const n=P(this).resolvers,s=Array.from(n.values()).find(r=>r.id===e);return s?(P(this).touchQueue.delete(s.key),Promise.resolve(n.delete(s.key))):this.parent?this.parent.delete(e):Promise.resolve(!1)}clear(){const e=P(this).resolvers,n=Array.from(e.values());return Promise.all(n.map(s=>{if(s.constructed)return Promise.resolve(s.resolve()).then(r=>{if(r!==null&&typeof r=="object"&&typeof r.dispose=="function")return r.dispose.call(r,this,s)})})).then(()=>{n.forEach(s=>this.delete(s.id)),P(this).children.forEach(s=>s.clear())})}detach(){if(this.parent){const e=P(this.parent).children,n=e.indexOf(this);n>-1&&(e.splice(n,1),delete this.parent)}}touch(e,n){const s=P(this).resolvers.get(e);if(s&&s.constructed)Promise.resolve(s.resolve()).then(r=>{n(r,this)});else{const r=P(this).touchQueue;let o=r.get(e);o||(o=[],r.set(e,o)),o.push(n)}return this.parent&&!s?this.parent.touch(e,n):Promise.resolve()}registerAsync(e,n){const s=P(this).resolvers.get(e);s&&!s.async&&process.env.NODE_ENV!=="production"&&ce(this).warn(`Mismatching resolver type. You are registering an async resolver with a key ('${e}') previously used by a non-async resolver.`);const r=new es(e,n,s,this);return P(this).resolvers.set(e,r),r.id}registerFactory(e,n){const s=P(this).resolvers.get(e);s&&s.async&&process.env.NODE_ENV!=="production"&&ce(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${e}') previously used by an async resolver.`);const r=new ns(e,n,s,this);return P(this).resolvers.set(e,r),r.id}register(e,n){const s=P(this).resolvers.get(e);s&&s.async&&process.env.NODE_ENV!=="production"&&ce(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${e}') previously used by an async resolver.`);const r=new ts(e,n,s,this);return P(this).resolvers.set(e,r),r.id}get(e){const n=P(this).resolvers.get(e);if(n)return n.async&&process.env.NODE_ENV!=="production"&&ce(this).warn(`You are retrieving an async value (with key '${e}') by the non-async function 'container.get(key)'. This will not be supported in future versions. Use 'container.getAsync(key) instead.'`),n.resolve();if(this.parent)return this.parent.get(e)}getAsync(e){const n=P(this).resolvers.get(e);if(n){if(!n.async)throw process.env.NODE_ENV!=="production"&&ce(this).warn(`You are retrieving a non-async value (with key '${e}') by the async function 'container.getAsync(key)'.Use 'container.get(key) instead.'`),"Mismatching resolver type";return n.resolve()}return this.parent?this.parent.getAsync(e):Promise.resolve(void 0)}getMany(...e){const n={};return e.forEach(s=>n[s]=this.get(s)),n}getManyAsync(...e){const n={};return Promise.all(e.map(s=>this.getAsync(s).then(r=>n[s]=r))).then(()=>n)}createChild(e,n){const s=new wt(e,n,this);return P(this).children.push(s),s}}var Ve=(t=>(t.Implementation="implementation",t.Widget="widget",t))(Ve||{}),se=(t=>(t.Pre="pre",t.Post="post",t))(se||{});const ss=(t,e,n,s)=>{try{const r=new e(n,s);return{name:t,invoke:(o,i)=>{let a;return r[o]&&(a=r[o].call(r,i)),Promise.resolve(a)},getInstance:()=>r}}catch(r){if(r.message&&r.message.indexOf("is not a constructor")>=0)return{name:t,invoke:o=>{let i;return o==="initialize"&&(i=e(n,s)),Promise.resolve(i)},getInstance:()=>e};throw r}};function Wt(t,e){return typeof t>"u"?e:t}class rs{constructor(e={}){this.part=e}createCommand(e,n,s){let r;typeof n=="function"?r={scope:Ve.Widget,stage:se.Post,defaultArgs:void 0,handlerResolver:n}:r={scope:Wt(n.scope,Ve.Widget),stage:Wt(n.stage,se.Post),defaultArgs:n.defaultArgs,handlerResolver:s};let o=this.part;const i=e.split(".");return i.forEach((a,c)=>{c===i.length-1?o[a]||(o[a]=()=>r):o=this.part[a]=this.part[a]||{}}),this}get(){return this.part}}const Be=t=>{const e=new rs({});return t(e),e.get()};Be(t=>{t.createCommand("types.register",{scope:Ve.Implementation,stage:se.Pre},e=>(n,s)=>{e.container.get("$types")[n]=s}).createCommand("type",{stage:se.Pre},e=>n=>{e.container.register("$type",n)}).createCommand("settings",{stage:se.Pre,defaultArgs:[null]},e=>n=>{e.events.dispatch("settings:change",n,{bubbles:!0}),e.container.register("$settings",n)}).createCommand("plugin",{stage:se.Pre},e=>(n,s,r)=>{const{container:o}=e;let i=null,a=n,c=s;typeof n=="string"&&(i=n,a=s,c=r);const u=l=>{const{transformPluginSettings:h}=e.container.get("$environmentOptions"),p=h?h(c||{},i,e.container,a):s;try{const m=ss(i,a,o,p);o.get("$plugins").push(m),l&&m.invoke("initialize",null)}catch(m){ce(e).warn("Error when initializing plugin",m)}};e.container.get("$instance")?u(!0):e.events.subscribeOnce("widget:instance-created",()=>u(!1))}).createCommand("container.register",e=>(n,s)=>{e.container.register(n,s)}).createCommand("container.registerAsync",e=>(n,s)=>{e.container.registerAsync(n,s)}).createCommand("container.registerFactory",e=>(n,s)=>{e.container.registerFactory(n,s)}).createCommand("container.touch",e=>(n,s)=>{e.container.touch(n,s)}).createCommand("csp",{},e=>n=>{e.container.register("csp",n)})});var Ct=(t=>(t.Activating="activating",t.Loading="loading",t.Activated="activated",t.Deactivating="deactivating",t.Deactivated="deactivated",t))(Ct||{});class os{constructor(e){this.container=e,this.widget=e.get("$widget"),this.settings=e.get("$settings"),this.events=this.widget.events,this.widget.events.subscribe("settings:change",(n,s)=>{this.settings=s})}}const Gt=t=>{const e=[];return[(s,r)=>{e.push(t.subscribe(s,r))},()=>{e.forEach(s=>{s()})}]};class ze{constructor(e,n=[]){this.platform=e,this.rules=n}match(e){return this.rules.every(n=>!(n.id&&n.id!==e.id||n.type&&n.type!==e.type))}ofType(e){return this.rules.push({type:e}),this}withId(e){return this.rules.push({id:e}),this}select(){return new is(this.platform,this)}}class Qt{constructor(e,n,s){x(this,"actions");x(this,"subscribe");x(this,"unsubscribe");this.platform=e,this.node=n,this.actions=new We(e,new ze(e).withId(n.id),s);const[r,o]=Gt(this.platform.events);this.subscribe=r,this.unsubscribe=o}properties(e){return e&&this.node.touchProperties(n=>e(n)),this.node.attributes.properties}context(e){return e&&this.subscribe("components:context-changed",(n,{node:s})=>{s===this.node&&e(this.node.attributes.context)}),this.node.attributes.context}layout(e){return e&&this.subscribe("components:layout-changed",(n,{node:s})=>{s===this.node&&e(this.node.attributes.layout)}),this.node.attributes.layout}writeProperties(e,n){this.node.writeProperties(e,n)}writeContext(e,n){this.node.writeProperties(e,n)}writeLayout(e,n){this.node.writeLayout(e,n)}dispose(){this.unsubscribe(),this.actions.dispose()}}class is{constructor(e,n,s=!0){x(this,"actions");x(this,"removes",[]);this.platform=e,this.target=n,this.clearOnDispose=s,this.actions=new We(this.platform,this.target)}writeProperties(e,n){this.removes.push(this.platform.write({options:n,attributes:{properties:e},target:this.target,removable:this.clearOnDispose}))}writeContext(e,n){this.removes.push(this.platform.write({options:n,attributes:{context:e},target:this.target,removable:this.clearOnDispose}))}writeLayout(e,n){this.removes.push(this.platform.write({options:n,attributes:{layout:e},target:this.target,removable:this.clearOnDispose}))}dispose(){this.removes.forEach(e=>{e()}),this.actions.dispose()}}const as=(t,e,n)=>{const s=t.concat(),r=(o,i,a)=>{let c=!0;if(s.length){const u=s.shift(),l=(h,p)=>(c=!1,r(h,Object.assign({},i,p),a));return Promise.resolve(u(o,l,a)).then(h=>({...h,cancelled:c}))}return Promise.resolve({data:o,cancelled:!1,options:i})};return r(e,{},n)};class We{constructor(e,n,s){x(this,"subscriptions",[]);this.platform=e,this.target=n,this.ns=s,this.create=this.create.bind(this)}create(e,n=()=>{}){const s={key:e,fn:n,target:this.target,ns:this.ns};this.platform.actionsState.handlers.push(s);const r=()=>{const o=this.platform.actionsState.handlers.indexOf(s);o>-1&&this.platform.actionsState.handlers.splice(o,1)};return this.subscriptions.push(r),r}dispatch(e,n){const s=this.platform.nodes.all.concat(this.platform.nodes.detached),r={},o=this.platform.actionsState.handlers.filter(i=>i.key===e&&(!i.ns||!this.ns||i.ns===this.ns));return Promise.all(o.map(i=>{const a=s.filter(u=>i.target.match(u)&&this.target.match(u)),c=this.platform.actionsState.watchers.filter(u=>u.key===e&&(!u.ns||!this.ns||u.ns===this.ns)&&a.some(l=>u.target.match(l))).map(u=>u.fn);return Promise.all(a.map(u=>{const l=new Qt(this.platform,u,this.ns);return as(c,n,l).then(h=>{const{data:p={},options:m,cancelled:v}=h;return Promise.resolve(v?{}:i.fn(p,m,l)).then(g=>{r[u.id]=g})})}))})).then(()=>r)}watch(e,n){let s=e,r=this.ns;const o=e.split(".");o.length>1&&(r=o[0],s=o.splice(1).join("."));const i={fn:n,target:this.target,key:s,ns:r};this.platform.actionsState.watchers.push(i);const a=()=>{const c=this.platform.actionsState.watchers.indexOf(i);c>-1&&this.platform.actionsState.watchers.splice(c,1)};return this.subscriptions.push(a),a}dispose(){this.subscriptions.forEach(e=>e())}}Be(t=>{t.createCommand("components",e=>n=>{e.events.subscribeOnce("components:platform-created",(s,{platform:r})=>{n.handlers&&n.handlers.forEach(([o,i])=>{r.addComponentHandler(o,i)})})})});function cs(t){const e=[];return t.forEach(n=>{e.indexOf(n)===-1&&e.push(n)}),e}function ht(t="",e=""){const n=t.split(" ").concat(e.split(" "));return cs(n).join(" ").trim()}function ls(t,e){if(t){if(typeof e=="string")return e;if(Array.isArray(e)){let n="";return e.forEach(s=>n=ht(n,s)),n}}}function A(...t){let e="";return t.length&&t.forEach(n=>{typeof n=="string"?e=ht(e,n):Array.isArray(n)?e=ht(e,ls(...n)):typeof n<"u"&&n!==null&&process.env.NODE_ENV!=="production"&&M.warn("appendClassNames: arguments either haveto be a string or [boolean, ...string[]]. Passed args:",...t)}),e}const Ae=(t,e,...n)=>typeof e=="string"?t(`[humany] ${e}`,...n):t(e,...n),le=class{constructor(){x(this,"keys",[]);x(this,"log",(e,...n)=>this.lookup(e,()=>le.log(...n)));x(this,"warn",(e,...n)=>this.lookup(e,()=>le.warn(...n)));x(this,"error",(e,...n)=>this.lookup(e,()=>le.error(...n)));x(this,"info",(e,...n)=>this.lookup(e,()=>le.info(...n)))}lookup(e,n){this.keys.indexOf(e)===-1&&(this.keys.push(e),n())}};let M=le;x(M,"log",(...e)=>Ae(console.log,...e)),x(M,"warn",(...e)=>Ae(console.warn,...e)),x(M,"error",(...e)=>Ae(console.error,...e)),x(M,"info",(...e)=>Ae(console.info,...e));const en=t=>{let e={},n,s;if(typeof t!="object"||t===null)return t;e=Array.isArray(t)?[]:{};for(s in t)n=t[s],e[s]=typeof n=="object"&&n!==null?en(n):n;return e};function Zt(t){let e=0;if(t.length===0)return e.toString();for(let n=0;n<t.length;n++){const s=t.charCodeAt(n);e=(e<<5)-e+s,e=e&e}return e.toString()}function us(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()}class hs{constructor(e,n){x(this,"tasks",[]);x(this,"current",Promise.resolve());this.lockWarningTime=e,this.lockErrorTime=n,this.next=this.next.bind(this)}add(e,n,s,r){this.tasks.push({task:e,resolve:n,reject:s,done:r}),this.next()}next(){this.current=this.current.then(()=>{const e=this.tasks.shift();if(e){let n;const s=setTimeout(()=>{process.env.NODE_ENV!=="production"&&M.warn(`A lock has exceeded ${this.lockWarningTime} ms. Waiting additional ${this.lockErrorTime} ms before rejecting the task.`,e),n=setTimeout(()=>{e.reject("lock timeout exceeded")},this.lockErrorTime)},this.lockWarningTime),r=Promise.resolve(e.task()).then(o=>(clearTimeout(s),clearTimeout(n),o));return Promise.resolve(r).then(this.next).then(()=>r.then(o=>{e.done(),e.resolve(o)})).catch(o=>(e.done(),e.reject(o),this.next()))}return Promise.resolve()})}}const Ne=new WeakMap;function ee(t,e=5e3,n=1e3){return Ne.has(t)||Ne.set(t,new hs(e,n)),s=>new Promise((r,o)=>{const i=Ne.get(t);i.add(s,r,o,()=>{i.tasks.length||Ne.delete(t)})})}const ds=(t,e)=>{const n=()=>e.querySelectorAll("[data-loading=true]").length>0,r=(()=>{let i=!1;return()=>{if(i)return;t.get("$widget").events.dispatch("widget:data-loaded",{element:e}),i=!0}})();if(!n())return r();new MutationObserver((i,a)=>{i.find(u=>u.type==="attributes"&&u.attributeName==="data-loading")&&!n()&&(a.disconnect(),r())}).observe(e,{attributes:!0,childList:!0,subtree:!0})},fs=(t,e)=>{t.get("$widget").container.getAsync("components").then(s=>{s.events.subscribeOnce("components:component-model-initialized",()=>{let r=s.nodes.visible.reduce((a,c)=>(!c.name||!c.type||c.type==="view"||c.type==="root"||c.attributes.layout.size==="none"||e.querySelector(`[data-name="${c.name}"]`)||a.push(c.name),a),[]),o=!1;new MutationObserver((a,c)=>{a.forEach(u=>{if(u.addedNodes){const l=Array.from(u.addedNodes).reduce((h,p)=>{const m=p.getAttribute&&p.getAttribute("data-name");return m&&r.indexOf(m)>-1&&h.push(m),h},[]);r=r.filter(h=>l.indexOf(h)===-1),!o&&r.length===0&&(o=!0,ds(t,e),c.disconnect())}})}).observe(e,{attributes:!1,characterData:!1,childList:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1})})})},te=(t={})=>(Object.keys(t).forEach(e=>{(t[e]===null||typeof t[e]>"u")&&delete t[e]}),t),J=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);function we(){return J()+J()+"-"+J()+"-"+J()+"-"+J()+"-"+J()+J()+J()}class dt{constructor(e,n){x(this,"id");x(this,"type");x(this,"name");x(this,"parent");x(this,"tags",[]);x(this,"children",{});x(this,"changesets",[]);x(this,"attributes");x(this,"mountCount",0);this.events=e,this.id=we(),this.type=n,this.attributes={context:{},properties:{},layout:{},tags:[]},this.writeLayout({size:"full",indent:0})}mount(e,n){let s=e.get("mounted-nodes");return s||(s=new Map,e.register("mounted-nodes",s)),s.has(this)?(process.env.NODE_ENV!=="production"&&M.error("Trying to mount an already mounted component node.",this),()=>{}):(this.events.dispatch("components:node-mounted",{node:this}),this.mountCount===0&&(this.mountCount=this.mountCount+1,this.events.dispatch("components:node-enter",{node:this})),()=>{s.delete(this),this.events.dispatch("components:node-unmounted",{node:this}),this.mountCount=this.mountCount-1,this.mountCount===0&&this.events.dispatch("components:node-exit",{node:this})})}appendChild(e,n="default"){if(e.parent){if(e.parent===this)return;e.parent.removeChild(e)}e.parent=this,this.children[n]||(this.children[n]=[]),this.children[n].push(e),this.events.dispatch("components:node-appended",{node:e})}prependChild(e,n="default"){if(e.parent){if(e.parent===this)return;e.parent.removeChild(e)}e.parent=this,this.children[n]||(this.children[n]=[]),this.children[n].unshift(e),this.events.dispatch("components:node-appended",{node:e})}touchProperties(e,n={},s){const o=[{properties:e},n];return this.changesets.push(o),this.events.dispatch("components:set-properties",{node:this}),()=>{if(s){const i=this.changesets.indexOf(o);i>-1&&(this.changesets.splice(i,1),this.events.dispatch("components:set-properties",{node:this}))}}}writeProperties(e,n={},s){const o=[{properties:e},n];return this.changesets.push(o),this.events.dispatch("components:set-properties",{node:this}),()=>{if(s){const i=this.changesets.indexOf(o);i>-1&&(this.changesets.splice(i,1),this.events.dispatch("components:set-properties",{node:this}))}}}writeLayout(e,n={},s){const o=[{layout:e},n];return this.changesets.push(o),this.events.dispatch("components:set-layout",{node:this}),()=>{if(!s)return;const i=this.changesets.indexOf(o);i>-1&&(this.changesets.splice(i,1),this.events.dispatch("components:set-layout",{node:this}))}}writeContext(e,n={},s){const o=[{context:e},n];return this.changesets.push(o),this.events.dispatch("components:set-context",{node:this}),()=>{if(!s)return;const i=this.changesets.indexOf(o);i>-1&&(this.changesets.splice(i,1),this.events.dispatch("components:set-context",{node:this}))}}getChildren(e="default"){const n=this.children[e]||[];return n.reduce((s,r,o)=>{const{order:i=o}=r.attributes.layout;return s[i]?s.splice(i,0,r):s[i]=r,s},Array(n.length))}remove(){this.parent&&this.parent.removeChild(this)}removeChild(e){Object.keys(this.children).forEach(n=>{const s=this.children[n],r=s.indexOf(e);r>-1&&(s.splice(r,1),this.events.dispatch("components:node-removed",{node:e,parentNode:this}))}),delete e.parent}}const tn=(t,e,n)=>{for(let s=0,r=t.length;s<r&&n(t[s])!==!0;s++){const o=e[t[s].id]||"default",i=t[s].getChildren(o);tn(i,e,n)}},Ze=(t,e,n)=>{if(n(t)!==!0){const s=e[t.id]||"default",r=t.children[s];tn(r,e,n)}},De=(t,e)=>{const n=[];return Ze(t,e,s=>{n.push(s)}),n},nn=(t,e,n)=>{let s;return Ze(t,e,r=>{if(n(r))return s=r,!0}),s};class ps{constructor(e,n,s){x(this,"all",[]);x(this,"visible",[]);x(this,"detached",[]);this.root=e,this.switches=n,s.subscribe("components:node-appended",(r,o)=>{this.all.push(o.node),this.visible=De(e,n)}),s.subscribe("components:node-removed",(r,o)=>{let i=this.all.indexOf(o.node);i>-1&&this.all.splice(i,1),i=this.visible.indexOf(o.node),i>-1&&this.visible.splice(i,1),this.visible=De(e,n)}),s.subscribe("components:node-switched",(r,o)=>{this.visible=De(e,n)})}query(e={}){const n=[];return Ze(this.root,this.switches,s=>{Object.keys(e).every(o=>e[o]===s[o])&&n.push(s)}),n}get(e){return nn(this.root,this.switches,n=>n.id===e)||this.detached.find(n=>n.id===e)}}class ms{constructor(){x(this,"handlers",new Map)}add(e,n){this.handlers.set(e,n)}get(e){return this.handlers.get(e)}}const gs=t=>{let e=t,n=0;for(;e.parent;)n=n+1,e=e.parent;return n},ys=t=>t.map(([n,s])=>[gs(n),n,s]).sort(([n],[s])=>n-s).map(([,n,s])=>[n,s]),rt=t=>t instanceof Date?!1:t&&typeof t=="object"&&!Array.isArray(t),K=(t,...e)=>{if(!e.length)return t;const n=e.shift();if(rt(t)&&rt(n))for(const s in n)rt(n[s])?(t[s]||Object.assign(t,{[s]:{}}),K(t[s],n[s])):Object.assign(t,{[s]:n[s]});return K(t,...e)},vs=(t,e)=>!t||t==="all"?!0:t.some(n=>e.indexOf(n)>-1),bs=(t,e)=>{let n=[],s=[],r;const o=()=>{process.env.NODE_ENV!=="production"&&console.time("state-processor.flush");const a=new Map,c=ys(n.map((l,h)=>[l,s[h]])),u=(l,h)=>{var j;const p=a.get(l)||{},m=h.context&&!p.context,v=h.properties&&!p.properties,g=h.layout&&!p.layout;a.set(l,{context:p.context||m,properties:p.properties||v,layout:p.layout||g}),v&&(l.attributes.properties={}),g&&(l.attributes.layout={}),m&&(l.attributes.context=K({},(j=l.parent)==null?void 0:j.attributes.context));const y=[],C=[],k=[];if(l.changesets.forEach(w=>{const[E,V]=w;vs(V.breakpoints,t.breakpoints)&&(v&&(typeof E.properties=="function"?y.push(E.properties):K(l.attributes.properties,E.properties)),g&&(typeof E.layout=="function"?C.push(E.layout):K(l.attributes.layout,E.layout)),m&&(typeof E.context=="function"?k.push(E.context):K(l.attributes.context,E.context)))}),y.forEach(w=>{K(l.attributes.properties,w(l.attributes.properties))}),C.forEach(w=>{K(l.attributes.layout,w(l.attributes.layout))}),k.forEach(w=>{K(l.attributes.context,w(l.attributes.context))}),m||h.recursive){const w=t.getBranch(l),E=h.recursive?h:{context:!!m};l.getChildren(w).forEach(V=>{u(V,E)})}};process.env.NODE_ENV!=="production"&&console.timeEnd("state-processor.flush"),c.forEach(([l,h])=>{u(l,h)}),n=[],s=[],e(a)},i=()=>{clearTimeout(r),r=setTimeout(o,0)};return(a,c)=>{const u=n.indexOf(a);if(u>-1){const l=s[u];return c.context&&(l.context=!0),c.properties&&(l.properties=!0),c.layout&&(l.layout=!0),c.recursive&&(l.recursive=!0),i()}return n.push(a),s.push(c),i()}};class kt{constructor(e,n={}){x(this,"events");x(this,"breakpoints",[]);x(this,"nodes");x(this,"actionsState",{handlers:[],watchers:[]});x(this,"switches",{});x(this,"changesets",[]);x(this,"subscriptions",[]);x(this,"processNode");x(this,"customComponentHandler",new ms);this.providers=n,this.events=e.events.createChild(this);const s=new dt(this.events,"root");s.name=`root-${e.name}`,this.nodes=new ps(s,this.switches,this.events);const r=this.processNode=bs(this,o=>{const i=Array.from(o.keys());process.env.NODE_ENV!=="production"&&console.info(`STATE PROCESSOR: ${i.length} node(s) processed:
2
+ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
3
+ `)}`),i.forEach(a=>{const c=o.get(a);a.parent&&a.parent.type==="root"&&this.events.dispatch("components:root-children-changed",{node:a}),c!=null&&c.context&&this.events.dispatch("components:context-changed",{node:a}),c!=null&&c.properties&&this.events.dispatch("components:properties-changed",{node:a}),c!=null&&c.layout&&this.events.dispatch("components:layout-changed",{node:a})}),this.events.dispatch("components:component-model-initialized",{},{bubbles:!0})});Promise.all(Object.keys(n).map(o=>n[o].load(this))),this.subscriptions.push(this.events.subscribe("components:node-appended",(o,i)=>{const{node:a}=i;this.changesets.forEach(c=>{const{changeset:u,target:l,removes:h}=c,[p,m]=u;l.match(i.node)&&(p.properties&&h.push(a.writeProperties(p.properties,m)),p.context&&h.push(a.writeContext(p.context,m)),p.layout&&h.push(a.writeLayout(p.layout,m)))})})),this.subscriptions.push(this.events.subscribe("components:node-appended",(o,i)=>{r(i.node,{properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:set-properties",(o,i)=>{r(i.node,{properties:!0})})),this.subscriptions.push(this.events.subscribe("components:set-context",(o,i)=>{r(i.node,{properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:set-indent",(o,i)=>{r(i.node,{layout:!0})})),this.subscriptions.push(this.events.subscribe("components:set-layout",(o,i)=>{r(i.node,{layout:!0})})),this.subscriptions.push(this.events.subscribe("components:node-switched",(o,{node:i,branch:a})=>{r(i,{layout:!0,recursive:!0,properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:node-removed",(o,{parentNode:i})=>{r(i,{properties:!0})})),this.events.parent&&this.events.parent.dispatch("components:platform-created",{platform:this})}static getInstance(e){return e.getAsync("components")}addBreakpoint(e){this.breakpoints.indexOf(e)===-1&&(this.breakpoints.push(e),this.processNode(this.nodes.root,{context:!0,properties:!0,layout:!0,recursive:!0}))}removeBreakpoint(e){const n=this.breakpoints.indexOf(e);n>-1&&(this.breakpoints.splice(n,1),this.processNode(this.nodes.root,{context:!0,properties:!0,layout:!0,recursive:!0}))}setSwitch(e,n){this.switches[e.id]=n,this.events.dispatch("components:node-switched",{node:e,branch:n})}getBranch(e){return this.switches[e.id]}createNode(e,n={}){const s=new dt(this.events,e);return n.detached&&this.nodes.detached.push(s),s}components(){return new ze(this)}actions(e,n){return new We(this,e,n)}write(e){const{provider:n,target:s,attributes:r,options:o={},removable:i}=e,a=e.key||we(),u={changeset:[r,o],target:s,removes:[]};if(n){const l=this.providers[n];l.write(a,s,r,o),u.removes.push(()=>{l.remove(a)})}return this.changesets.push(u),this.nodes.all.forEach(l=>{if(s.match(l)){let h=()=>{};r.properties&&(h=l.writeProperties(r.properties,o,i)),r.context&&(h=l.writeContext(r.context,o,i)),r.layout&&(h=l.writeContext(r.layout,o,i)),u.removes.push(h)}}),()=>{if(i){u.removes.forEach(h=>h());const l=this.changesets.indexOf(u);l>-1&&this.changesets.splice(l,1)}}}addComponentHandler(e,n){this.customComponentHandler.add(e,n)}getComponentHandler(e){return this.customComponentHandler.get(e)}dispose(){this.subscriptions.forEach(e=>e())}}const xs=t=>{if(Array.isArray(t)){const[e,...n]=t;return{definitionId:e,overrides:n}}return{definitionId:t,overrides:[]}},_e=(t,e,n,s,r,o)=>{n.forEach(i=>{const a=xs(i),c=s[a.definitionId];if(a.definitionId==="view"){const u=t.createNode("view");u.name="view",Object.keys(r).forEach(l=>{const h=r[l];_e(t,u,[h.entry],s,r,l)}),e.appendChild(u),a.overrides.forEach(l=>{l.properties&&u.writeProperties(l.properties,{breakpoints:l.breakpoints}),l.context&&u.writeContext(l.context,{breakpoints:l.breakpoints}),l.layout&&u.writeLayout(l.layout,{breakpoints:l.breakpoints})})}else if(t.getComponentHandler(c.type)){const u=t.getComponentHandler(c.type);u&&u(a,{platform:t,node:e,references:n,definitions:s,views:r,branch:o})}else{const u=s[a.definitionId];if(process.env.NODE_ENV!=="production"&&!u){M.error(`No definition found for component type '${a.definitionId}'.`);return}const l=t.createNode(u.type);l.name=a.definitionId,l.tags=u.tags||[],u.properties&&l.writeProperties(u.properties),u.context&&l.writeContext(u.context),u.layout&&l.writeLayout(u.layout),e.appendChild(l,o),a.overrides.forEach(h=>{const p={breakpoints:h.breakpoints};h.properties&&l.writeProperties(h.properties,p),h.context&&l.writeContext(h.context,p),h.layout&&l.writeLayout(h.layout,p)}),u.children&&_e(t,l,u.children,s,r)}})},sn=(t,e)=>{const{entry:n,components:s,breakpoints:r,views:o}=e,i=[];return Object.keys(r).forEach(a=>{const c=r[a],u=window.matchMedia(c);u.matches&&t.breakpoints.push(a);const l=h=>{h.matches?t.addBreakpoint(a):t.removeBreakpoint(a)};u.addListener(l),i.push(()=>u.removeListener(l))}),_e(t,t.nodes.root,[n],s,o),()=>i.forEach(a=>{a()})},ft=(t,e)=>({id:t.id,type:t.type,name:t.name,branch:e||"default"});var H=(t=>(t.open="open",t.closed="closed",t.hidden="hidden",t))(H||{});const ws=t=>t==="entering"||t==="entered",Cs=t=>t==="exiting"||t==="exited",ne={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);"}},ks=["slide-up","slide-down","slide-left","slide-right","scale"],pt={compose:(t="exited",e)=>{const{enter:n,exit:s}=e,r=n.transitionKeys.split(" "),o=ks.indexOf(r[0])>-1?"transform":"opacity";if(ws(t))return r&&r.length>0?L.css`
4
+ ${r&&r.length>0&&r.map(a=>ne[a]?ne[a].in:"")}
5
+ transition: ${o} ${n.duration}ms ${n.easing};
6
+ `:"";const i=r&&r.length>0&&L.css`
7
+ ${r.map(a=>ne[a]?ne[a].out:"")}
8
+ `;if(Cs(t)){const a=s.transitionKeys.split(" ");return a&&a.length>0&&t==="exiting"?L.css`
9
+ ${i};
10
+ ${a.map(c=>ne[c]?ne[c].out:"")}
11
+ transition: ${o} ${s.duration}ms ${s.easing};
12
+ `:i}},composeViewTransition:(t,e,n)=>{if(e==="slide")return pt.compose(t,{enter:{transitionKeys:n==="forth"?"slide-right":"slide-left",duration:500},exit:{transitionKeys:n==="forth"?"slide-left":"slide-right",duration:500}});if(e==="fade")return pt.compose(t,{enter:{transitionKeys:"fade",duration:500},exit:{transitionKeys:"fade",duration:500}})},get:t=>ne[t]};var mt=(t=>(t.Opera="opera",t.Chrome="chrome",t.Firefox="firefox",t.Safari="safari",t.Edge="edge",t.EdgeChromium="edge-chromium",t.Blink="blink",t.IE="internet-explorer",t))(mt||{});const Ft=()=>{const{opr:t,opera:e,InstallTrigger:n,HTMLElement:s,safari:r,documentMode:o,StyleMedia:i,chrome:a,CSS:c}=window,u=!!t&&!!t.addons||!!e||navigator.userAgent.indexOf(" OPR/")>=0;if(u)return"opera";if(n)return"firefox";const l=(m=>m.toString()==="[object SafariRemoteNotification]")(!r||typeof r<"u"&&r.pushNotification);if(/constructor/i.test(s)||l)return"safari";const h=!!o;if(h)return"internet-explorer";if(!h&&i)return"edge";const p=!!a&&(!!a.webstore||!!a.runtime);if(p)return"chrome";if(p&&navigator.userAgent.indexOf("Edg")!==-1)return"edge-chromium";if((p||u)&&c)return"blink"},Es=["string","number"],Z=t=>Object.keys(t).reduce((e,n)=>{const s=typeof t[n]>"u"?"":t[n],r=typeof s;if(Es.indexOf(r)>-1){const o=n.substring(0,5);o==="data-"||o==="aria-"?e[us(n)]=s.toString():n.substring(0,4)!=="css-"&&(e[n]=s.toString())}else e[n]=s;return e},{}),$s=t=>new RegExp("^#","i").test(t),Ss=t=>({children:e,...n})=>{const{implementation:s,name:r}=t.get("$widget"),{href:o=""}=n;if($s(o))return d.jsx(Ms,{smooth:!0,to:o,children:e});const i=s.bindings.map(u=>u.replace(/\./g,"\\.")).join("|"),c=new RegExp(`^((http[s]?:)?//)?(${i})/([^\\s]+)`).exec(o);if(c&&c.length>=4){const u=c[4];if(s.widgets.get(u)&&!u.startsWith("blob?")&&!u.startsWith(r))return d.jsx(Eo,{widgetName:u,children:e})}return d.jsx("a",{...n,children:e})},Et=t=>{const e={};return Object.keys(t).forEach(n=>{n.indexOf("css-")>-1&&(e[n]=t[n])}),e},rn=t=>{let e="";return Object.keys(Et(t)).forEach(n=>{n.indexOf("css-")>-1&&(e+=`${n.replace("css-","")}:${t[n]};`)}),L.css`
13
+ ${e}
14
+ `},js=(t,e)=>{let n="";const s=()=>{n=""},r=l=>{const h=document.getElementById(n);return h!==null?(l(h),s(),!0):!1},o=l=>(l.preventDefault(),s(),t.onClick&&t.onClick(l),typeof t.to=="string"&&(n=t.to.split("#").slice(1).join("#")),n!==""&&r(t.scroll||(h=>t.smooth?h.scrollIntoView({behavior:"smooth"}):h.scrollIntoView())),!1),{scroll:i,smooth:a,to:c,...u}=t;return e==="a"&&(u.href="javascript:;"),d.jsx(e,{...u,onClick:o,children:t.children})},on=t=>(e,n)=>{let s=e,r="";if(["h1","h2","h3","h4","h5","h6"].includes(e))s=e;else{const a=e.match(/h1|h2|h3|h4|h5|h6/);if(a!=null&&a[0]){s=a[0];const[c]=e.split(s);r=c}}const i=((a,c,u)=>u[a]?`${c}${u[a]}`:`${c}${a}`)(s,r,t.theme.typographyVariantMapping||{});return L.css`
15
+ ${i} {
16
+ ${n}
17
+ }
18
+ `};var Os=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function an(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function s(){if(this instanceof s){var r=[null];r.push.apply(r,arguments);var o=Function.bind.apply(e,r);return new o}return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(s){var r=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(n,s,r.get?r:{enumerable:!0,get:function(){return t[s]}})}),n}var cn={exports:{}};(function(t,e){(function(n,s){t.exports=s(f)})(Os,function(n){function s(h,p,m,v){return p===void 0&&(p={}),Object.keys(p).reduce(function(g,y){if(/^on.*/.test(y))return g;var C=y;/^(data|aria)-/.test(y)||m.filter(function(S){return S instanceof RegExp?S.test(y):S===y}).length===0&&(C=r(y));var k,j,w=v(h,C);if(w.name==="style")g[w.name]=(k=p.style,j={},k.split(";").filter(function(S){return S.trim()!==""}).forEach(function(S){var O,_=S.split(":");if(_.length>1){var D=function(B){return/^-ms-/.test(B)&&(B=B.substr(1)),B.startsWith("--")?B:r(B)}(_[0].trim()),I=(O=_.slice(1).join(":").trim(),/^\d+$/.test(O)?Number(O):O.replace(/'/g,'"'));j[D]=I}}),j);else{var E=p[y],V=E===""||String(E).toLowerCase()===C.toLowerCase();g[w.name]=w.isBoolean?V:E}return g},{})}function r(h){return h.replace(/(-|:)(.)/g,function(p,m,v){return v.toUpperCase()})}n=n&&n.hasOwnProperty("default")?n.default:n;var o=["table","tbody","thead","tfoot","tr"],i={for:"htmlFor",class:"className",allowfullscreen:["allowFullScreen","allowFullscreen"],autocomplete:"autoComplete",autofocus:["autoFocus"],contenteditable:"contentEditable",spellcheck:"spellCheck",srcdoc:"srcDoc",srcset:"srcSet",itemscope:"itemScope",itemprop:"itemProp",itemtype:"itemType"};function a(h,p){var m=i[p],v=document.createElement(h);if(m)return{name:Array.isArray(m)?m[0]:m,isBoolean:c(v,Array.isArray(m)?m[1]||p:m)};for(var g in v)if(g.toLowerCase()===p.toLowerCase())return{name:g,isBoolean:c(v,g)};return{name:p,isBoolean:c(v,p)}}function c(h,p){return h.setAttribute(p,""),h[p]===!0||u.indexOf(p)>-1}var u=["itemScope"];function l(h,p,m,v){v===void 0&&(v=null);var g=m[h],y=m._;return g?n.createElement(g,p,v):y?y(h,p,v):n.createElement(h,p,v)}return function(h,p){if(p===void 0&&(p={}),typeof h!="string")throw new TypeError("Expected HTML string");var m=document.createElement("div");m.innerHTML=h.trim();var v=Array.from(m.childNodes).map(function(g,y){return function C(k,j,w){var E=w.transform||{},V=w.preserveAttributes||[],S=w.dangerouslySetChildren||["style"],O=E._;if(k.nodeType===8)return null;if(k.nodeType===3){var _=k.textContent;return O?O(_):_}for(var D={},I=k.attributes,B=0;B<I.length;B++)D[I[B].name]=I[B].value;D.key=j.toString();var q=k.tagName.toLowerCase(),ge=s(q,D,V,a),$e=Array.from(k.childNodes).map(function(Y,ae){return o.indexOf(q)>-1&&Y.nodeType===3&&(Y.textContent=Y.textContent.trim(),Y.textContent==="")?null:C(Y,j+"."+ae,w)}).filter(Boolean);if(S.indexOf(q)>-1){var ie=k.innerHTML;return ie&&(q!=="style"&&q!=="script"&&(ie=ie.replace(/"/g,"&quot;")),ge.dangerouslySetInnerHTML={__html:ie.trim()}),l(q,ge,E)}var Se=$e.length===0?null:$e;return l(q,ge,E,Se)}(g,String(y),p)}).filter(Boolean);return v.length===1?v[0]:v}})})(cn);var Ls=cn.exports;const qt=$t(Ls);function As(t,e){return e?qt(t,e):qt(t)}const Ns=t=>e=>d.jsx(co,{attrs:e,htmlBody:t}),Rs=(t,e)=>({transform:{a:Ss(t),img:Ns(e)}}),Ms=t=>js(t,"a"),Fe=f.forwardRef(({className:t,children:e,...n},s)=>d.jsx(Ps,{type:"button",className:A(t,"humany-button"),...Z(n),ref:s,children:e})),Ps=b.button`
19
+ -webkit-appearance: button;
20
+ text-transform: none;
21
+ overflow: visible;
22
+ outline: none;
23
+ border: none;
24
+ background-color: transparent;
25
+ cursor: pointer;
26
+ font-family: inherit;
27
+ font-size: inherit;
28
+ line-height: normal;
29
+ margin: 0;
30
+ padding: 0;
31
+ `,ln=f.createContext(new wt),Ds=f.createContext(1),St=f.createContext({id:"",type:"",name:"",branch:""}),un=f.createContext({}),hn=f.createContext(null);f.createContext(null);const dn=()=>f.useContext(St),z=()=>f.useContext(ln),Ce=t=>{const e=f.useContext(St),n=me(),[s,r]=f.useState();return f.useEffect(()=>{if((t||e.id)&&n){const o=n.nodes.get(t||e.id);r(o)}},[t,e.id,n]),s},oe=()=>{const t=f.useRef(!1);return f.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),t},me=t=>{const e=z(),[n,s]=f.useState(null),r=oe();return f.useEffect(()=>{kt.getInstance(t||e).then(o=>{r.current&&s(o)})},[r]),n},Ts=()=>f.useContext(Ds),Vs=(t,e)=>{const n=dn(),s=z(),[r,o]=f.useState(void 0),i=oe(),a=t||n.type||"";return f.useEffect(()=>{if(a){let c;return(e||s).getAsync("componentResolver").then(u=>{if(i.current){const l=u.getComponent(a);o(l)}c=u.registerResolver(a,l=>{i.current&&o(l)})}),()=>{c&&c()}}},[i,a,e,s]),r},qe=t=>{const e=Ce(t),n=me(),[s,r]=f.useState({}),o=oe();return f.useEffect(()=>{e&&o.current&&r(e.attributes.context)},[o,e]),f.useEffect(()=>{if(n){const i=n.events.subscribe("components:context-changed",(a,c)=>{e===c.node&&o.current&&r(c.node.attributes.context)});return()=>{i()}}},[o,n,e]),s},ue=(t,e,n=window,s=()=>!0)=>{const r=f.useRef(()=>{});f.useEffect(()=>{r.current=e},[e]),f.useEffect(()=>{if(!(n&&s()))return;const i=a=>r.current(a);return n.addEventListener(t,i),()=>{n.removeEventListener(t,i)}},[t,n])},_s=t=>{const e=z(),{events:n}=(t||e).get("$widget");return n},ve=(t,e)=>{const[n,s]=f.useState(!1),r=f.useCallback(i=>{const{key:a}=i;a===t&&(s(!0),e&&e(i))},[s,e]),o=f.useCallback(({key:i})=>{i===t&&s(!1)},[s]);return ue("keydown",r,window),ue("keyup",o,window),n},Hs=t=>{const e=Ce(t),n=me(),[s,r]=f.useState({}),o=oe();return f.useEffect(()=>{e&&o.current&&r(e.attributes.layout)},[e,o]),f.useEffect(()=>{if(n){const i=n.events.subscribe("components:layout-changed",(a,c)=>{e===c.node&&o.current&&r(c.node.attributes.layout)});return()=>{i()}}},[n,o,e]),s},Is=t=>{const e=f.useRef();return f.useEffect(()=>{e.current=t}),e.current},fn=()=>f.useContext(un),jt=()=>f.useContext(hn),Bs=t=>{const e=z(),n=jt(),[s,r]=f.useState({name:"",params:{}}),o=oe();return f.useEffect(()=>{const i=(t||e).get("$widget");if(!i)return;const{events:a}=i;return a.subscribe("router:change",(u,{next:{routeData:l}})=>{if(o.current){const{name:h,params:p}=l;te(p),r({name:h,params:p})}})},[o,t,e]),f.useEffect(()=>{if(n&&n.history&&o.current){const i=n.getRouteData(),{name:a,params:c}=i;te(c),r({name:a,params:c})}},[n,o]),s},Ot=t=>{const e=f.useRef(),n=f.useRef(0);let s;const r=f.useCallback(()=>{var u;(u=e.current)==null||u.classList.add("humany-scrolling"),clearTimeout(s),s=setTimeout(()=>{var l;(l=e.current)==null||l.classList.remove("humany-scrolling")},500)},[e]),o=f.useCallback(u=>{n.current=u.touches[0].clientY},[e]),i=u=>a(u)?u===e.current?u:null:u.parentElement?i(u.parentElement):null,a=u=>u.scrollWidth>u.clientWidth||u.scrollHeight>u.clientHeight,c=f.useCallback(u=>{if(!u.cancelable)return;const l=u.touches[0].clientY,h=i(u.target);if(!h)return;const p=h.scrollTop,m=n.current-l<0?"up":"down",v=p<=0&&m==="up",g=p>=h.scrollHeight-h.offsetHeight&&m==="down";(v||g)&&u.preventDefault(),n.current=l},[e,n]);return ue("scroll",r,e.current,()=>e.current&&t),ue("touchstart",o,e.current,()=>e.current&&t),ue("touchmove",c,e.current,()=>e.current&&t),t?[zs,e]:["",e]},zs=`
32
+ overflow-y: ${Ft()===mt.Chrome||Ft()===mt.EdgeChromium?"overlay":"auto"};
33
+ overflow-x: hidden;
34
+ -ms-overflow-style: none; /* IE 10+ */
35
+ scrollbar-width: thin; /* Firefox */
36
+ scrollbar-color: transparent transparent; /* Firefox */
37
+
38
+ ::-webkit-scrollbar {
39
+ width: 3px !important;
40
+ background-color: transparent;
41
+ border-left: none;
42
+ }
43
+ ::-webkit-scrollbar-thumb {
44
+ background-color: transparent;
45
+ }
46
+ ::-webkit-scrollbar-track {
47
+ -webkit-box-shadow: none !important;
48
+ background-color: transparent;
49
+ }
50
+ &.humany-scrolling {
51
+ scrollbar-color: #7F7F7F transparent;
52
+ scrollbar-width: thin; /* Firefox */
53
+ -ms-overflow-style: none; /* IE 10+ */
54
+
55
+ ::-webkit-scrollbar-thumb {
56
+ background-color: #7F7F7F;
57
+ }
58
+ }
59
+ `,Ws=(t=!1)=>{const[e,n]=f.useState(t),s=f.useCallback(r=>{n(typeof r=="boolean"?r:o=>!o)},[]);return[e,s]},Lt=(t,e,n=[],s)=>{const r=_s(s);return f.useEffect(()=>{if(r){const o=r.subscribe(t,e);return()=>{o()}}},[r].concat(n)),o=>r==null?void 0:r.dispatch(t,o)},pn=(t,e)=>{const n=Lt("widget:menu-toggled",(s,r)=>{r!==t&&e()});return()=>n(t)},At=f.forwardRef(({className:t,children:e,...n},s)=>d.jsx("span",{ref:s,className:A(t,"humany-text"),...Z(n),children:e})),mn=t=>L.css`
60
+ display: flex;
61
+ justify-content: center;
62
+ flex-direction: column;
63
+ background: #ffffff;
64
+ border-radius: ${t.theme.borderRadius};
65
+ border: ${t.theme.border};
66
+ box-shadow: ${t.theme.boxShadow||"none"};
67
+ ${t["data-loading"]&&"min-height: 150px;"}
68
+ `,de=t=>{var e,n,s;return L.css`
69
+ outline: ${(e=t.theme.accessibility)==null?void 0:e.border};
70
+ color: ${(s=(n=t.theme.accessibility)==null?void 0:n.colors)==null?void 0:s.inactiveText};
71
+ border-color: transparent;
72
+ `},Zs=t=>{var e;return L.css`
73
+ ${de(t)}
74
+ outline-offset: ${(e=t.theme.sizes)==null?void 0:e.small};
75
+ `},gn=b(Fe)`
76
+ position: absolute;
77
+ top: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
78
+ right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
79
+ z-index: 1;
80
+
81
+ svg {
82
+ stroke: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
83
+ }
84
+
85
+ &:focus-visible {
86
+ ${de}
87
+ padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}};
88
+ height: 15px;
89
+ box-sizing: content-box;
90
+ }
91
+ `;b(At)`
92
+ font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
93
+ font-weight: normal;
94
+ line-height: 1.2em;
95
+ color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
96
+ `;const Nt=({elementId:t="humany-portal-elements",parent:e=document.body,children:n})=>{const[s]=f.useState(()=>{const r=document.getElementById(t)||document.createElement("div");return r.id=t,r});return f.useEffect(()=>(e.appendChild(s),()=>{s.childElementCount<=1&&s.remove()}),[s]),Kn.createPortal(n,s)},Ke=({text:t="",backgroundSize:e="contain",size:n=12,symbol:s={content:"",type:""},elementStyle:r={},className:o,...i})=>{const{type:a,content:c}=s,u={"aria-label":t,role:"presentation"};switch(a){case"Uri":{const l={backgroundSize:e,backgroundImage:`url('${c}')`,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundAttachment:"center"};return d.jsx("i",{className:A(o,"humany-icon","humany-custom-icon"),title:t,style:{...l,...r},...u,...i})}case"Svg":{const l={className:A(o,"humany-icon"),width:`${n}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,ref:null},h={minWidth:`${n}`};switch(c){case"search":return d.jsxs("svg",{viewBox:"0 0 32 30",...l,children:[d.jsx("circle",{cx:"14.8457",cy:"14.5175",r:"8.14359",transform:"rotate(45 14.8457 14.5175)"}),d.jsx("line",{x1:"21.1001",y1:"20.4865",x2:"26.5798",y2:"25.9661"})]});case"clear":return d.jsxs("svg",{viewBox:"0 0 27 27",...l,children:[d.jsx("circle",{cx:"13.4351",cy:"13.435",r:"9",transform:"rotate(45 13.4351 13.435)",stroke:"black"}),d.jsx("line",{x1:"16.6172",y1:"10.2531",x2:"10.2533",y2:"16.6171",stroke:"black"}),d.jsx("line",{x1:"16.6171",y1:"16.617",x2:"10.2532",y2:"10.2531",stroke:"black"})]});case"close":return d.jsxs("svg",{viewBox:"0 0 13 13",...l,children:[d.jsx("path",{d:"M12.3068 0.50647L1.27246 11.7273",stroke:"black"}),d.jsx("path",{d:"M12.2812 11.9473L1.24686 0.726451",stroke:"black"})]});case"caret-right":return d.jsxs("svg",{viewBox:"0 0 14 14",style:h,...l,children:[d.jsx("line",{x1:"4.13",y1:"1.05",x2:"10.13",y2:"7.05",stroke:"black"}),d.jsx("line",{x1:"10.13",y1:"6.95",x2:"4.13",y2:"12.95",stroke:"black"})]});case"caret-left":return d.jsxs("svg",{viewBox:"0 0 14 14",style:h,...l,children:[d.jsx("line",{x1:"10.13",y1:"12.95",x2:"4.13",y2:"6.95",stroke:"black"}),d.jsx("line",{x1:"4.13",y1:"7.05",x2:"10.13",y2:"1.05",stroke:"black"})]});case"caret-up":return d.jsxs(Fs,{viewBox:"0 0 14 14",style:h,...l,children:[d.jsx("line",{x1:"13.09",y1:"3.99",x2:"7.1",y2:"9.99",stroke:"black"}),d.jsx("line",{x1:"7.19",y1:"9.99",x2:"1.19",y2:"3.99",stroke:"black"})]});case"caret-down":return d.jsxs("svg",{viewBox:"0 0 14 14",style:h,...l,children:[d.jsx("line",{x1:"13.09",y1:"3.99",x2:"7.1",y2:"9.99",stroke:"black"}),d.jsx("line",{x1:"7.19",y1:"9.99",x2:"1.19",y2:"3.99",stroke:"black"})]});case"back":return d.jsxs("svg",{viewBox:"0 0 18 18",...l,children:[d.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"}),d.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 d.jsxs("svg",{viewBox:"0 0 19 19",...l,children:[d.jsx("circle",{cx:"9.5",cy:"9.5",r:"9.5",fill:"#CA0813"}),d.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 d.jsx("svg",{viewBox:"0 0 20 17",...l,children:d.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 d.jsxs("svg",{viewBox:"-2 -3 40 40",...l,children:[d.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"}),d.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"}),d.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"}),d.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 d.jsxs("svg",{viewBox:"0 0 26 24",...l,children:[d.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"}),d.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 d.jsxs("svg",{viewBox:"0 0 36 30",...l,children:[d.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"}),d.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"}),d.jsx("path",{d:"M29.2565 20.5974C29.2565 26.341 22.8747 26.9792 19.6838 26.9792",stroke:"white"}),d.jsx("circle",{cx:"17.4074",cy:"26.9795",r:"2.05271",stroke:"white"}),d.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 d.jsx("svg",{viewBox:"0 -10 22 22",...l,children:d.jsx("path",{d:"M0 1H22",stroke:"white"})});case"sorting":return d.jsx("svg",{viewBox:"0 0 18 14",...l,children:d.jsx("path",{d:"M18 1H0M8 13H0M13 7H0"})});case"copy":return d.jsxs("svg",{viewBox:"0 0 19 17",...l,children:[d.jsx("rect",{x:"0.5",y:"0.5",width:"11.6667",height:"11.6014",rx:"1.5",fill:"white"}),d.jsx("rect",{x:"6.83301",y:"4.89868",width:"11.6667",height:"11.6014",rx:"1.5",fill:"white"})]});case"print":return d.jsxs("svg",{viewBox:"0 0 16 17",...l,children:[d.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"}),d.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"}),d.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"}),d.jsx("line",{x1:"5.29004",y1:"10.8323",x2:"10.7101",y2:"10.8323",stroke:"black"}),d.jsx("line",{x1:"5.29004",y1:"12.5242",x2:"10.7101",y2:"12.5242",stroke:"black"}),d.jsx("line",{x1:"5.29004",y1:"14.2161",x2:"10.7101",y2:"14.2161",stroke:"black"})]});case"language":return d.jsx("svg",{viewBox:"0 0 19 19",...l,children:d.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 d.jsxs("svg",{viewBox:"0 0 17 17",...l,children:[d.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"}),d.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"}),d.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 d.jsxs("svg",{viewBox:"0 0 16 2",...l,children:[d.jsx("circle",{cx:"15",cy:"1",r:"1",transform:"rotate(90 15 1)",fill:"black"}),d.jsx("circle",{cx:"1",cy:"1",r:"1",transform:"rotate(90 1 1)",fill:"black"}),d.jsx("circle",{cx:"8",cy:"1",r:"1",transform:"rotate(90 8 1)",fill:"black"})]});case"browse":return d.jsxs("svg",{viewBox:"0 0 24 24",...l,children:[d.jsx("circle",{cx:"12",cy:"12",r:"12",fill:"currentColor"}),d.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"}),d.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"}),d.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"}),d.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`),d.jsxs("svg",{viewBox:"0 0 25 25",...l,style:h,children:[d.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"}),d.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 d.jsx("svg",{viewBox:"0 0 13 12",...l,children:d.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 d.jsx("svg",{viewBox:"0 0 13 12",...l,children:d.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 d.jsx("svg",{viewBox:"0 0 24 24",...l,children:d.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 d.jsxs("svg",{viewBox:"0 0 24 24",...l,children:[d.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"}),d.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"}),d.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 d.jsxs("svg",{viewBox:"0 0 24 24",...l,children:[d.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"}),d.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 d.jsx("svg",{viewBox:"0 0 24 24",...l,children:d.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 d.jsx("svg",{viewBox:"0 0 24 24",...l,children:d.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 d.jsx("svg",{viewBox:"0 0 24 24",...l,children:d.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 d.jsx("svg",{viewBox:"0 0 24 24",...l,children:d.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 d.jsx(Js,{className:o,faIcon:c,title:t,...i});default:case"Text":return t?d.jsx("i",{className:A(o,"humany-letter-symbol"),title:t,...u,...i,children:t.substring(0,2)}):null}},Fs=b.svg`
97
+ transform: rotate(180deg);
98
+ `,qs={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",span:"span"},Ue=({variant:t,component:e,className:n,children:s})=>{const{typographyVariantMapping:r={}}=qe(),o={...qs,...r},i=e||o[t]||"span";return d.jsx(Ks,{className:n,as:i,children:s})},Ks=b.span``,Ye=b.div`
99
+ font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
100
+ font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
101
+ position: fixed;
102
+ bottom: 0;
103
+ left: 0;
104
+ border: ${t=>t.theme.border};
105
+ width: 100%;
106
+ box-shadow: ${t=>t.theme.boxShadow};
107
+ background: #ffffff;
108
+ ${t=>t.css&&t.css}
109
+ `;b(Ue)`
110
+ padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
111
+ margin: 0;
112
+ text-align: center;
113
+ border-bottom: #eeeeee 1px solid;
114
+ background: #ffffff;
115
+ position: relative;
116
+ display: flex;
117
+ justify-content: center;
118
+ align-items: center;
119
+ font-weight: bold;
120
+ color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
121
+ font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
122
+ line-height: 1.2em;
123
+ `;const Xe=t=>L.css`
124
+ transition: ${t.duration}ms;
125
+ `;b(Ye)`
126
+ max-height: 0;
127
+ ${Xe}
128
+
129
+ &.humany-drawer-transition-enter {
130
+ max-height: 0;
131
+ }
132
+ &.humany-drawer-transition-enter-active,
133
+ &.humany-drawer-transition-enter-done,
134
+ &.humany-drawer-transition-exit {
135
+ max-height: ${t=>t.fullScreen?"100%":"400px"};
136
+ }
137
+
138
+ &.humany-drawer-transition-exit-active,
139
+ &.humany-drawer-transition-exit-done {
140
+ max-height: 0;
141
+ }
142
+ `;b(Ye)`
143
+ ${Xe}
144
+ transform: translateX(100%);
145
+ height: ${t=>t.fullScreen?"100%":"auto"};
146
+
147
+ &.humany-drawer-transition-enter {
148
+ transform: translateX(100%);
149
+ }
150
+ &.humany-drawer-transition-enter-active,
151
+ &.humany-drawer-transition-enter-done,
152
+ &.humany-drawer-transition-exit {
153
+ transform: translateX(0);
154
+ }
155
+
156
+ &.humany-drawer-transition-exit-active,
157
+ &.humany-drawer-transition-exit-done {
158
+ transform: translateX(100%);
159
+ }
160
+ `;b(Ye)`
161
+ ${Xe}
162
+ transform: translateX(-100%);
163
+ height: ${t=>t.fullScreen?"100%":"auto"};
164
+
165
+ &.humany-drawer-transition-enter {
166
+ transform: translateX(-100%);
167
+ }
168
+ &.humany-drawer-transition-enter-active,
169
+ &.humany-drawer-transition-enter-done,
170
+ &.humany-drawer-transition-exit {
171
+ transform: translateX(0);
172
+ }
173
+
174
+ &.humany-drawer-transition-exit-active,
175
+ &.humany-drawer-transition-exit-done {
176
+ transform: translateX(-100%);
177
+ }
178
+ `;b(Ye)`
179
+ ${Xe}
180
+ bottom: unset;
181
+ top: 0;
182
+ height: 0;
183
+
184
+ &.humany-drawer-transition-enter {
185
+ height: 0;
186
+ }
187
+ &.humany-drawer-transition-enter-active,
188
+ &.humany-drawer-transition-enter-done,
189
+ &.humany-drawer-transition-exit {
190
+ height: ${t=>t.clientHeight}px;
191
+ }
192
+
193
+ &.humany-drawer-transition-exit-active,
194
+ &.humany-drawer-transition-exit-done {
195
+ height: 0;
196
+ }
197
+ `;const Us=(t,e,n)=>{const[s,r]=f.useState(0),[o,i]=f.useState(0),a=f.useCallback((c,u)=>{if(c.preventDefault(),u){const l=u.getBoundingClientRect();r(Math.max(document.body.clientWidth-l.right,1)),i(l.bottom+window.scrollY)}},[s,o,r,i]);return f.useEffect(()=>{if(!n||!t)return;const c=n.getBoundingClientRect(),u={x:s,y:o};c.left<0&&(u.x=0),c.bottom>window.innerHeight&&(u.y=0),u.x!==s&&r(u.x),u.y!==o&&i(u.y)},[n,t,e]),[{x:s,y:o},a]};f.forwardRef(({className:t="",children:e=null,trigger:n,closeButtonAriaLabel:s,...r},o)=>{const i=f.useRef(),a=f.useRef(),c=f.useRef();f.useImperativeHandle(o,()=>c.current,[c.current]);const u=f.useRef(we()),[l,h]=f.useState(!1),p=Is(l),[{x:m,y:v},g]=Us(l,u.current,c.current),y=ve("Escape");f.useEffect(()=>{y&&h(!1)},[y]),f.useEffect(()=>{l&&i.current?i.current.focus():!l&&a.current&&p&&a.current.focus()},[l,i.current,a.current]),ue("click",j=>{const{target:w}=j;!c.current||!w||c.current!==w&&!c.current.contains(w)&&h(!1)},window),Lt("router:changed",()=>{h(!1)});const C=pn(u.current,()=>{h(!1)}),k=f.useCallback(j=>{j.stopPropagation(),g(j,a.current),h(!l),C()},[C,g,h]);return d.jsxs(d.Fragment,{children:[l&&d.jsx(Nt,{children:d.jsxs(Ys,{className:A("humany-dropdown",`humany-dropdown-${u.current}`,t),...r,x:m,y:v,ref:c,children:[d.jsx(gn,{onClick:()=>h(!1),tabIndex:0,ref:i,"aria-label":s,children:d.jsx(Ke,{symbol:{type:"Svg",content:"close"}})}),e]})}),f.cloneElement(n,{onClick:k,ref:a,"aria-label":n.props.title,"aria-expanded":l})]})});const Ys=b.div`
198
+ ${mn}
199
+ padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.medium}};
200
+ min-width: 150px;
201
+ position: absolute;
202
+ box-shadow: ${t=>t.theme.boxShadow};
203
+
204
+ ${t=>{var n,s,r;let e="";return t.y>0?e+=`top: calc(${((n=t.theme.sizes)==null?void 0:n.small)||"0px"} + ${t.y||"0"}px);`:e+=`bottom: ${((s=t.theme.sizes)==null?void 0:s.normal)||"0px"};`,t.x>0?e+=`right: ${t.x||"0"}px;`:e+=`left: ${((r=t.theme.sizes)==null?void 0:r.normal)||"0px"};`,e}};
205
+ `;b.div`
206
+ display: none;
207
+ `;const yn=f.forwardRef(({children:t,columns:e,gap:n,className:s,...r},o)=>d.jsx(Xs,{className:A(s,"humany-grid"),"data-columns":e,"data-gap":n,...Et(r),...Z(r),ref:o,children:t})),Xs=b.div`
208
+ display: grid;
209
+ grid-template-columns: repeat(${t=>t["data-columns"]}, 1fr);
210
+ grid-gap: ${t=>t["data-gap"]};
211
+ justify-content: center;
212
+ grid-auto-rows: max-content;
213
+ ${rn}
214
+ `,vn=f.forwardRef(({htmlParseInstruction:t=null,className:e,html:n,...s},r)=>{const o=z(),[i,a]=f.useState();return f.useEffect(()=>{const c=Rs(o,n),u={...c,...t,transform:{...c.transform,...t==null?void 0:t.transform}},l=As(n,u);a(l)},[n,t]),d.jsx("div",{className:A(e,"humany-html"),...Z(s),ref:r,children:i})}),Js=({faIcon:t,title:e,className:n="",role:s="presentation",...r})=>d.jsx("i",{className:A(n,`fa fa-${t}`),title:e,role:s,...Z(r)});f.forwardRef(({className:t="",autoFocus:e=!1,onFocusChange:n=()=>{},onEnter:s=()=>{},onEscape:r=()=>{},selectAllOnFocus:o,onChange:i=()=>{},disabled:a=!1,type:c,...u},l)=>{const[h,p]=f.useState(e),m=f.useRef();f.useImperativeHandle(l,()=>m.current),f.useEffect(()=>{var y;e&&((y=m==null?void 0:m.current)==null||y.focus())},[e,l,m]);const v=(y,C)=>{p(y),n&&n(y),o&&y&&C.target.select()},g={...Z(u),disabled:a,autoFocus:e,type:c,onKeyDown:y=>{y.key==="Enter"&&h&&s(y),y.key==="Escape"&&h&&r(y)},onFocus:y=>v(!0,y),onBlur:y=>v(!1,y),onChange:y=>i(y.target.value||""),className:A(t,"humany-input"),"data-type":c};return c!=="textarea"?d.jsx("input",{...g,ref:m}):d.jsx("textarea",{...g,ref:m})});const Gs=f.forwardRef(({className:t,items:e,renderItem:n,renderLi:s=!1,...r},o)=>d.jsx("ul",{className:A(t,"humany-list"),"data-item-count":e.length,...Z(r),ref:o,children:e.map((i,a,c)=>s?d.jsx("li",{className:"humany-list-item",children:n(i,a,c)},i.id||a):n(i,a,c))})),Qs=f.forwardRef(({text:t,html:e,header:n,className:s,htmlParseInstruction:r,symbol:o,...i},a)=>d.jsxs("div",{className:A(s,"humany-paragraph"),...Z(i),ref:a,children:[n?d.jsxs(Ue,{variant:"h1",children:[o?d.jsx(Ke,{symbol:o}):null,n]}):null,e?d.jsx(vn,{html:e,htmlParseInstruction:r}):null,t?d.jsx(At,{children:t}):null]}));f.forwardRef(({header:t,customHeader:e,text:n,html:s,className:r,children:o,symbol:i,items:a,renderItem:c,renderLi:u,ulProps:l,...h},p)=>d.jsxs("div",{className:A(r,"humany-item-list"),"data-item-count":a.length,...Z(h),ref:p,children:[e||(t||n||s?d.jsx(Qs,{symbol:i,header:t,text:n,html:s}):null),a.length?d.jsx(Gs,{items:a,renderItem:c,renderLi:u,...l}):null,o]}));var bn=function(){};process.env.NODE_ENV!=="production"&&(bn=function(t,e,n){var s=arguments.length;n=new Array(s>2?s-2:0);for(var r=2;r<s;r++)n[r-2]=arguments[r];if(e===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(e.length<10||/^[s\W]*$/.test(e))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+e);if(!t){var o=0,i="Warning: "+e.replace(/%s/g,function(){return n[o++]});typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}});var xn=bn;const er=$t(xn);var tr=xn,Kt=nr(tr);function nr(t){return t&&t.__esModule?t:{default:t}}var sr=function(){var e=null,n=function(c){return(0,Kt.default)(e==null,"A history supports only one prompt at a time"),e=c,function(){e===c&&(e=null)}},s=function(c,u,l,h){if(e!=null){var p=typeof e=="function"?e(c,u):e;typeof p=="string"?typeof l=="function"?l(p,h):((0,Kt.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),h(!0)):h(p!==!1)}else h(!0)},r=[],o=function(c){var u=!0,l=function(){u&&c.apply(void 0,arguments)};return r.push(l),function(){u=!1,r=r.filter(function(h){return h!==l})}},i=function(){for(var c=arguments.length,u=Array(c),l=0;l<c;l++)u[l]=arguments[l];r.forEach(function(h){return h.apply(void 0,u)})};return{setPrompt:n,confirmTransitionTo:s,appendListener:o,notifyListeners:i}},wn=sr;exports.getConfirmation_1=void 0;exports.getConfirmation_1=function(e,n){return n(window.confirm(e))};function Re(t){return t.charAt(0)==="/"}function ot(t,e){for(var n=e,s=n+1,r=t.length;s<r;n+=1,s+=1)t[n]=t[s];t.pop()}function Cn(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=t&&t.split("/")||[],s=e&&e.split("/")||[],r=t&&Re(t),o=e&&Re(e),i=r||o;if(t&&Re(t)?s=n:n.length&&(s.pop(),s=s.concat(n)),!s.length)return"/";var a=void 0;if(s.length){var c=s[s.length-1];a=c==="."||c===".."||c===""}else a=!1;for(var u=0,l=s.length;l>=0;l--){var h=s[l];h==="."?ot(s,l):h===".."?(ot(s,l),u++):u&&(ot(s,l),u--)}if(!i)for(;u--;u)s.unshift("..");i&&s[0]!==""&&(!s[0]||!Re(s[0]))&&s.unshift("");var p=s.join("/");return a&&p.substr(-1)!=="/"&&(p+="/"),p}const rr=Object.freeze(Object.defineProperty({__proto__:null,default:Cn},Symbol.toStringTag,{value:"Module"})),or=an(rr);var Ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function Te(t,e){if(t===e)return!0;if(t==null||e==null)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(c,u){return Te(c,e[u])});var n=typeof t>"u"?"undefined":Ut(t),s=typeof e>"u"?"undefined":Ut(e);if(n!==s)return!1;if(n==="object"){var r=t.valueOf(),o=e.valueOf();if(r!==t||o!==e)return Te(r,o);var i=Object.keys(t),a=Object.keys(e);return i.length!==a.length?!1:i.every(function(c){return Te(t[c],e[c])})}return!1}const ir=Object.freeze(Object.defineProperty({__proto__:null,default:Te},Symbol.toStringTag,{value:"Module"})),ar=an(ir);var U={};exports.createPath_1=void 0;exports.stripTrailingSlash_1=void 0;exports.stripLeadingSlash_1=void 0;exports.addLeadingSlash_1=void 0;U.__esModule=!0;exports.addLeadingSlash_1=U.addLeadingSlash=function(e){return e.charAt(0)==="/"?e:"/"+e};exports.stripLeadingSlash_1=U.stripLeadingSlash=function(e){return e.charAt(0)==="/"?e.substr(1):e};var cr=U.hasBasename=function(e,n){return new RegExp("^"+n+"(\\/|\\?|#|$)","i").test(e)};U.stripBasename=function(e,n){return cr(e,n)?e.substr(n.length):e};exports.stripTrailingSlash_1=U.stripTrailingSlash=function(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e};U.parsePath=function(e){var n=e||"/",s="",r="",o=n.indexOf("#");o!==-1&&(r=n.substr(o),n=n.substr(0,o));var i=n.indexOf("?");return i!==-1&&(s=n.substr(i),n=n.substr(0,i)),{pathname:n,search:s==="?"?"":s,hash:r==="#"?"":r}};exports.createPath_1=U.createPath=function(e){var n=e.pathname,s=e.search,r=e.hash,o=n||"/";return s&&s!=="?"&&(o+=s.charAt(0)==="?"?s:"?"+s),r&&r!=="#"&&(o+=r.charAt(0)==="#"?r:"#"+r),o};var fe;exports.locationsAreEqual_1=fe=void 0;var lr=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ur=or,hr=kn(ur),dr=ar,fr=kn(dr),pr=U;function kn(t){return t&&t.__esModule?t:{default:t}}fe=function(e,n,s,r){var o=void 0;typeof e=="string"?(o=(0,pr.parsePath)(e),o.state=n):(o=lr({},e),o.pathname===void 0&&(o.pathname=""),o.search?o.search.charAt(0)!=="?"&&(o.search="?"+o.search):o.search="",o.hash?o.hash.charAt(0)!=="#"&&(o.hash="#"+o.hash):o.hash="",n!==void 0&&o.state===void 0&&(o.state=n));try{o.pathname=decodeURI(o.pathname)}catch(i){throw i instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):i}return s&&(o.key=s),r?o.pathname?o.pathname.charAt(0)!=="/"&&(o.pathname=(0,hr.default)(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o};exports.locationsAreEqual_1=function(e,n){return e.pathname===n.pathname&&e.search===n.search&&e.hash===n.hash&&e.key===n.key&&(0,fr.default)(e.state,n.state)};const En="/",$n="./",mr=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g"),Sn=(t,e)=>{const n=[];let s=0,r=0,o="";const i=e&&e.delimiter||En,a=e&&e.delimiters||$n;let c=!1,u;for(;(u=mr.exec(t))!==null;){const l=u[0],h=u[1],p=u.index;if(o+=t.slice(r,p),r=p+l.length,h){o+=h[1],c=!0;continue}let m="";const v=t[r],g=u[2],y=u[3],C=u[4],k=u[5];if(!c&&o.length){const O=o.length-1;a.indexOf(o[O])>-1&&(m=o[O],o=o.slice(0,O))}o&&(n.push(o),o="",c=!1);const j=m!==""&&v!==void 0&&v!==m,w=k==="+"||k==="*",E=k==="?"||k==="*",V=m||i,S=y||C;n.push({delimiter:V,optional:E,repeat:w,partial:j,name:g||s++,prefix:m,pattern:S?vr(S):"[^"+ye(V)+"]+?"})}return(o||r<t.length)&&n.push(o+t.substr(r)),n},gr=(t,e)=>yr(Sn(t,e)),yr=t=>{const e=new Array(t.length);for(let n=0;n<t.length;n++)typeof t[n]=="object"&&(e[n]=new RegExp("^(?:"+t[n].pattern+")$"));return function(n,s){let r="";const o=s&&s.encode||encodeURIComponent;for(let i=0;i<t.length;i++){const a=t[i];if(typeof a=="string"){r+=a;continue}const c=n?n[a.name]:void 0;let u;if(Array.isArray(c)){if(!a.repeat)throw new TypeError('Expected "'+a.name+'" to not repeat, but got array');if(c.length===0){if(a.optional)continue;throw new TypeError('Expected "'+a.name+'" to not be empty')}for(let l=0;l<c.length;l++){if(u=o(c[l],a),!e[i].test(u))throw new TypeError('Expected all "'+a.name+'" to match "'+a.pattern+'"');r+=(l===0?a.prefix:a.delimiter)+u}continue}if(typeof c=="string"||typeof c=="number"||typeof c=="boolean"){if(u=o(String(c),a),!e[i].test(u))throw new TypeError('Expected "'+a.name+'" to match "'+a.pattern+'", but got "'+u+'"');r+=a.prefix+u;continue}if(a.optional){a.partial&&(r+=a.prefix);continue}throw new TypeError('Expected "'+a.name+'" to be '+(a.repeat?"an array":"a string"))}return r}},ye=t=>t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),vr=t=>t.replace(/([=!:$/()])/g,"\\$1"),jn=t=>t&&t.sensitive?"":"i",br=(t,e)=>{if(!e)return t;const n=t.source.match(/\((?!\?)/g);if(n)for(let s=0;s<n.length;s++)e.push({name:s,prefix:"",delimiter:"",optional:!1,repeat:!1,partial:!1,pattern:""});return t},xr=(t,e,n)=>{const s=[];for(let r=0;r<t.length;r++)s.push(xe(t[r],e,n).source);return new RegExp("(?:"+s.join("|")+")",jn(n))},wr=(t,e,n)=>Cr(Sn(t,n),e,n),Cr=(t,e,n)=>{n=n||{};const s=n.strict,r=n.end!==!1,o=ye(n.delimiter||En),i=n.delimiters||$n,a=[].concat(n.endsWith||[]).map(ye).concat("$").join("|");let c="",u=!1;for(let l=0;l<t.length;l++){const h=t[l];if(typeof h=="string")c+=ye(h),u=l===t.length-1&&i.indexOf(h[h.length-1])>-1;else{const p=ye(h.prefix),m=h.repeat?"(?:"+h.pattern+")(?:"+p+"(?:"+h.pattern+"))*":h.pattern;e&&e.push(h),h.optional?h.partial?c+=p+"("+m+")?":c+="(?:"+p+"("+m+"))?":c+=p+"("+m+")"}}return r?(s||(c+="(?:"+o+")?"),c+=a==="$"?"$":"(?="+a+")"):(s||(c+="(?:"+o+"(?="+a+"))?"),u||(c+="(?="+o+"|"+a+")")),new RegExp("^"+c,jn(n))},xe=(t,e,n)=>t instanceof RegExp?br(t,e||[]):Array.isArray(t)?xr(t,e,n):wr(t,e,n);var pe=(t=>(t.scopedHash="scopedHash",t.hash="hash",t.browser="browser",t.memory="memory",t))(pe||{}),On=(t=>(t.storage="storage",t.path="path",t.initialPath="initial",t))(On||{});const kr=(t,e)=>{const n=[],r=xe(e,n).exec(t);if(!r)return{};const[o,...i]=r;return n.reduce((c,u,l)=>(c[u.name]=i[l],c),{})},Er=t=>Object.keys(t).reduce((e,n)=>{const s=typeof t[n]=="string"?t[n].replace("&","%20"):t[n];let r=`${n}=${s}`;return e.length>1&&(r="&".concat(r)),e.concat(r)},"?"),$r=(t,e)=>{const n=e.find(s=>s.name===t);if(!n){process.env.NODE_ENV!=="production"&&M.warn(`Unable to find route with specified name: ${t}`);return}return n},Ln=t=>t.length?t.slice(1).split("&").map(e=>e.split("=")).reduce((e,n)=>{const[s,r]=n.map(encodeURI).map(decodeURIComponent);return{...e,[s]:decodeURIComponent(r).replace("%20","&")}},{}):{},Sr=(t,e)=>{const n=e.map(s=>An(t,s)).reduce((s,r)=>{if(r===null)return s;const o=r.split("?")[1];let i=0;if(o){const a=Ln(`?${o}`);i=Object.keys(a).length}return!s.path||s.count&&i<s.count?{count:i,path:r}:s},{count:void 0,path:void 0});return n?n.path:e[0]},An=(t,e)=>{const n=te(t);if(Array.isArray(e)){const c=Sr(n,e);if(!c)throw new Error("Unable to match path.");return c}const s=gr(e);let r=e;try{r=s(n)}catch{return null}const o=[];xe(e,o);const i=Object.keys(n).reduce((c,u)=>(o.find(h=>h.name===u)||c.push(u),c),[]),a={};return i.forEach(c=>a[c]=n[c]),Object.keys(a).forEach(c=>a[c]===null&&delete a[c]),Object.keys(a).length>0?`${r}${Er(a)}`:r},jr=(t,e)=>{let n=t;return n.indexOf("?")>-1&&(n=n.substring(0,n.indexOf("?"))),n.indexOf(";")>-1&&(n=n.substring(0,n.indexOf(";"))),n===""&&(n="/"),e.reduce((s,r)=>{if(Array.isArray(r.path))return r.path.reduce((u,l)=>xe(l,[]).exec(n||"")&&!u?n:u,void 0)&&!s?r:s;if(!r.path)return s;const o=[];return xe(r.path,o).exec(n||"")&&!s?r:s},void 0)},Or=t=>{let e=t.get("historyTransitionManager");return e||(e=wn(),t.parent&&t.parent.register("historyTransitionManager",e)),e},Lr=(t,e=null)=>t?fe(e?e(t):t):{pathname:"",search:"",hash:""},Nn=(t,e)=>{const n=`humany-${e}=([^&?]+)&?`,s=new RegExp(n,"i"),r=t.match(s);return r&&r[1]||"/"},Ar=(t,e)=>{if(te(t),te(e),Object.keys(t).length!==Object.keys(e).length)return!1;if(Object.keys(t).length===0&&Object.keys(e).length===0)return!0;let n=!0;return Object.keys(e).forEach(s=>{e[s]!==t[s]&&(n=!1)}),n},Nr=t=>{if(typeof t.mode=="string"){if(t.mode===pe.memory)return!0}else if(t.mode[1]){const[e,{sticky:n}]=t.mode;if(e===pe.memory)return typeof n>"u"?!0:n}return!1},Rr=t=>{const{views:e}=t.get("$settings"),n=Object.keys(e).reduce((s,r)=>typeof e[r].path>"u"?r:s,void 0);return n?{name:n,params:{}}:null},Mr=(t,e)=>{const n=o=>{function i(a,c){const u={};let l;for(;l=c.exec(a);)u[l[1]]=l[2];return u}return i(o,/([^#?&=]+)=([^&#]*)(?!.*?\#)/gi)||null},s=`humany-${e}`;return n(t)[s]},Pr=()=>{const t=window.location.href,e=t.indexOf("#");return e===-1?"":t.substring(e+1)},Dr=(t="")=>{const e=t.replace(";","?"),n=[{from:/\;+/gi,to:"&"},{from:/:+/gi,to:"="}];let s=e;return n.forEach(({to:r,from:o})=>{s=s.replace(o,r)}),s},Tr=(t,e=null)=>t?fe(e?e(t):t):{pathname:"",search:"",hash:""},Rn=t=>{const e=Pr(),n=Mr(e,t);return Tr(n,Dr)},Mn=t=>{const{name:e}=t.get("$widget");return!!Rn(e).pathname};Be(t=>{t.createCommand("routing",e=>n=>{const s={mode:n.mode};n.basePath&&(s.basePath=n.basePath),e.container.register("routingSettings",s)})});var N=(t=>(t.Cookie="cookie",t.Local="local",t.Session="session",t))(N||{}),ke=(t=>(t.Tenant="tenant",t.Implementation="implementation",t.Widget="widget",t))(ke||{}),T=(t=>(t.Necessary="necessary",t.Functional="functional",t.Analytical="analytical",t.Marketing="marketing",t))(T||{});const G=(t,e,n,s={})=>Yt(t,n).then(r=>(process.env.NODE_ENV!=="production"&&r&&M.warn(`createStorageWriter: Attempted to create storage writer using unallowed category.
215
+ Key: ${e}
216
+ Category: ${JSON.stringify(n)}
217
+ Options: ${JSON.stringify(s)}`),o=>(Pt(t),Yt(t,n).then(i=>{if(i){process.env.NODE_ENV!=="production"&&M.warn(`storageWriter: Attempted to write to storage using unallowed category.
218
+ Key: ${e}
219
+ Category: ${JSON.stringify(n)}
220
+ Value: ${JSON.stringify(o)}
221
+ Options: ${JSON.stringify(s)}`);return}const{scope:a=ke.Widget,medium:c=N.Session,duration:u}=s,l=_r();return l[a][e]=Mt(o,n,u),c===N.Cookie?zr(t,l):Zr(t,c,l)})))),F=(t,e,n=N.Session)=>(Pt(t),typeof e>"u"?(process.env.NODE_ENV!=="production"&&M.warn("readStorage: Undefined key passed when reading storage. ",e,n),Promise.resolve(void 0)):n===N.Cookie?Br(t).then(s=>Ie(s,e)):Wr(t,n).then(s=>Ie(s,e))),he=t=>!!Object.entries(t).filter(([e,n])=>typeof n<"u").length,it=t=>Object.entries(t).filter(([e,n])=>typeof n<"u").forEach(([e,{value:n}])=>{typeof n>"u"&&delete t[e]}),Pn=(t,e)=>{const n={tenant:{...t.tenant,...e.tenant},implementation:{...t.implementation,...e.implementation},widget:{...t.widget,...e.widget}};return it(n.tenant),it(n.implementation),it(n.widget),n},Vr=t=>Object.entries(t).reduce((n,s)=>{const[r,o]=s;return Object.entries(o).forEach(i=>{const[a,{expiration:c}]=i;c&&n.push(c)}),n},[]).slice().sort((n,s)=>new Date(s).valueOf()-new Date(n).valueOf()).shift()||Ge(),Je=t=>{const{name:e,implementation:{name:n,tenant:s}}=t.get("$widget");return[`humany_${s}`,`humany_${Zt(s+n)}`,`humany_${Zt(s+n+e)}`]},at=t=>{const e=new RegExp(`(?:^|;)\\s?${t}=(.*?)(?:;|$)`,"i"),n=document.cookie.match(e);return n&&n[1]&&JSON.parse(n[1])||void 0},ct=(t,e,n)=>{const s=`${t}=${JSON.stringify(e).trim()}`,r=`expires=${new Date(n).toUTCString()}`,o="path=/",i="SameSite=None;Secure";return document.cookie=`${s}; ${r}; ${o}; ${i}`},Rt=t=>{const[e,n,s]=Je(t),r=at(e)||{},o=at(n)||{},i=at(s)||{};return{tenant:r,implementation:o,widget:i}},Dn=(t,e)=>{const n=Rt(t),s=Pn(n,e),[r,o,i]=Je(t),{tenant:a,implementation:c,widget:u}=s,l=Vr(e),h=Ge({days:-1});ct(r,a,he(a)?l:h),ct(o,c,he(c)?l:h),ct(i,u,he(u)?l:h)},He=(t,e)=>{const[n,s,r]=Je(t),o=e.getItem(n)||"{}",i=e.getItem(s)||"{}",a=e.getItem(r)||"{}";return{tenant:JSON.parse(o),implementation:JSON.parse(i),widget:JSON.parse(a)}},gt=(t,e,n)=>{const s=He(t,e),r=Pn(s,n),[o,i,a]=Je(t),{tenant:c,implementation:u,widget:l}=r;he(c)?e.setItem(o,JSON.stringify(c)):e.removeItem(o),he(u)?e.setItem(i,JSON.stringify(u)):e.removeItem(i),he(l)?e.setItem(a,JSON.stringify(l)):e.removeItem(a)},_r=()=>({tenant:{},implementation:{},widget:{}}),Hr=t=>t?!!t&&new Date>new Date(t):!1,Ie=(t,e)=>{const n=t.widget[e]||t.implementation[e]||t.tenant[e];return n==null?void 0:n.value},Mt=(t,e,n)=>n?{value:t,category:e,expiration:typeof n=="object"?Ge(n):n}:{value:t,category:e},Tn=(t,e)=>{const n=en(t);return Object.entries(n).forEach(([s,r])=>{Object.entries(r).forEach(([o,i])=>{const{expiration:a,category:c}=i;(Hr(a)||Ir(e,c))&&(r[o]=Mt(void 0,c,a))})}),n},Yt=(t,e)=>F(t,"storagePolicy",N.Cookie).then((n=[T.Necessary])=>!!e&&n.indexOf(e)===-1),Ir=(t=[T.Necessary],e)=>!!e&&t.indexOf(e)===-1,Pt=t=>{const e=Rt(t),n=He(t,window.localStorage),s=He(t,sessionStorage),r=Ie(e,"storagePolicy"),[o,i,a]=[e,n,s].map(c=>Tn(c,r));Dn(t,o),gt(t,window.localStorage,i),gt(t,window.sessionStorage,a)},Ge=(t={days:30})=>{const{days:e=0,hours:n=0,minutes:s=0,seconds:r=0}=t,o=new Date;return o.setTime(o.getTime()+n*60*60*1e3),o.setTime(o.getTime()+e*24*60*60*1e3),o.setTime(o.getTime()+s*60*1e3),o.setTime(o.getTime()+r*1e3),o.toISOString()},Br=t=>ee(document)(()=>Rt(t)),zr=(t,e)=>ee(document)(()=>Dn(t,e)),Wr=(t,e)=>{const n=e===N.Local?window.localStorage:window.sessionStorage;return ee(n)(()=>He(t,n))},Zr=(t,e,n)=>{const s=e===N.Local?window.localStorage:window.sessionStorage;return ee(s)(()=>gt(t,s,n))};Be(t=>{t.createCommand("storage",e=>(n={})=>{const{consent:s}=n;if(typeof s<"u"){if(typeof s!="number"&&typeof s!="string"&&!Array.isArray(s)){process.env.NODE_ENV!=="production"&&M.warn(`storagePolicyConfigurationApi: passed consent is not valid. Consent either has to be a number, a string, an array of strings or an array of numbers.
222
+ Passed consent: ${JSON.stringify(s)}`);return}if(Array.isArray(s)&&!s.every(o=>typeof o=="number"||typeof o=="string")){process.env.NODE_ENV!=="production"&&M.warn(`storagePolicyConfigurationApi: passed consent is not valid. Consent either has to be a number, a string, an array of strings or an array of numbers.
223
+ Passed consent: ${JSON.stringify(s)}`);return}const r=[T.Necessary,T.Functional,T.Analytical,T.Marketing].filter((o,i,a)=>typeof s=="number"?s>i:typeof s=="string"?a.indexOf(s)+1>i:Array.isArray(s)?s.findIndex(c=>c===i+1||c===o)>-1:!0);return r.indexOf(T.Necessary)===-1&&(process.env.NODE_ENV!=="production"&&M.warn(`storagePolicyConfigurationApi: passed consent does not include category: '${T.Necessary}'. Consent has to atleast include the '${T.Necessary}' category.
224
+ Passed consent: ${JSON.stringify(s)}`),r.unshift(T.Necessary)),G(e.container,"storagePolicy",T.Necessary,{medium:N.Cookie,scope:ke.Tenant,duration:{days:365}}).then(o=>o(r)).then(()=>{Pt(e.container),e.events.dispatch("storage:policy-changed",r)})}})});const Fr=f.forwardRef(({className:t,onClick:e=()=>{},name:n="",to:s="",params:r={},children:o,...i},a)=>{const c=jt(),u=z();if(!c)return null;let l="";const h={onClick:e,className:A(t,"humany-route-link"),to:l,innerRef:a,...i,ref:null};if(n){if(!(c.routes||[]).find(g=>g.name===n))return process.env.NODE_ENV!=="production"&&M.warn(`Unable to create route. No route named "${n}" exist.`),d.jsx(et.Link,{...h,onClick:g=>{e(g),g.preventDefault(),process.env.NODE_ENV!=="production"&&M.warn(`Unable to navigate. No route named "${n}" exist.`)},children:o});const v=Object.keys(r).reduce((g,y)=>{const C=r[y];if(Array.isArray(C)){if(C.length===0)return g;g[y]=C.map(k=>typeof k=="string"?encodeURIComponent(k):k).join(",")}else g[y]=typeof C=="string"?encodeURIComponent(C):C;return g},{});try{l=c.generate(n,v||{})}catch{return d.jsx(et.Link,{...h,ref:h.innerRef,children:o})}l&&c.settings.mode&&c.settings.mode===pe.browser&&l[0]!=="/"&&(l=`/${l}`)}else if(s&&c.history)l=c.history.createHref({hash:"",pathname:s,search:"",state:void 0});else return process.env.NODE_ENV!=="production"&&M.warn('Unable to generate path for route link. Either specify route name or use the "to" prop.'),null;if(c.settings&&c.settings.mode===pe.scopedHash){const p=u.get("$widget").name;l=Nn(l,p)}return h.as?d.jsx(qr,{...h,as:h.as,children:o}):d.jsx(et.Link,{...h,to:l,children:o})}),qr=b.span``,Dt=f.forwardRef(({className:t,disabled:e=!1,role:n="link",tabIndex:s=0,onClick:r=()=>{},onKeyDown:o=()=>{},title:i,as:a,href:c,children:u,target:l,routeName:h,params:p,...m},v)=>{const g={title:i,disabled:e,role:n,as:a,tabIndex:s,className:A(t,"humany-link",[!!e,"humany-disabled"]),onClick:y=>{if(y.persist(),e){y.preventDefault();return}r(y)},onKeyDown:y=>{if(y.persist(),e){y.key!=="Tab"&&y.preventDefault();return}o(y)}};return h?d.jsx(Kr,{name:h,params:p,...g,...Z(m),ref:v,children:u}):d.jsx(Ur,{href:c,target:l,...g,...Z(m),ref:v,children:u})}),Kr=b(Fr)`
225
+ ${t=>t.disabled?`
226
+ pointer-events: none;
227
+ opacity: .7;
228
+ `:"cursor: pointer;"}
229
+ `,Ur=b.a`
230
+ ${t=>t.disabled?`
231
+ pointer-events: none;
232
+ opacity: .7;
233
+ `:"cursor: pointer;"}
234
+ `,Vn=({visible:t,duration:e=500,children:n,onClick:s=()=>{},...r})=>{const o=f.useRef(),i=f.useCallback(a=>{a.target===o.current&&s(a)},[s]);return d.jsx(ut.CSSTransition,{in:t,className:"humany-overlay-transition",classNames:"humany-overlay-transition",unmountOnExit:!0,timeout:e,children:d.jsx(Nt,{children:d.jsx(Yr,{className:"humany-overlay",duration:e,ref:o,onClick:i,...r,children:n})})})},Yr=b.div`
235
+ background: rgba(0, 0, 0, 0.6);
236
+ min-width: 100%;
237
+ min-height: 100%;
238
+ position: fixed;
239
+ top: 0;
240
+ bottom: 0;
241
+ right: 0;
242
+ left: 0;
243
+ display: flex;
244
+ justify-content: center;
245
+ align-items: center;
246
+ z-index: 7;
247
+
248
+ transition: ${t=>t.duration}ms;
249
+ opacity: 0;
250
+
251
+ &.humany-overlay-transition-enter {
252
+ opacity: 0.1;
253
+ }
254
+ &.humany-overlay-transition-enter-active,
255
+ &.humany-overlay-transition-enter-done,
256
+ &.humany-overlay-transition-exit {
257
+ opacity: 1;
258
+ }
259
+
260
+ &.humany-overlay-transition-exit-active,
261
+ &.humany-overlay-transition-exit-done {
262
+ opacity: 0;
263
+ }
264
+ `,Xr=L.keyframes`
265
+ 100% {
266
+ transform: rotate(360deg);
267
+ }
268
+ `,Jr=L.keyframes`
269
+ 0% {
270
+ stroke-dasharray: 1, 200;
271
+ stroke-dashoffset: 0;
272
+ }
273
+ 50% {
274
+ stroke-dasharray: 89, 200;
275
+ stroke-dashoffset: -35px;
276
+ }
277
+ 100% {
278
+ stroke-dasharray: 89, 200;
279
+ stroke-dashoffset: -124px;
280
+ }
281
+ `,Gr=b.svg`
282
+ animation: ${Xr} 2s linear infinite;
283
+ height: 100%;
284
+ transform-origin: center center;
285
+ width: 100%;
286
+ position: absolute;
287
+ top: 0;
288
+ bottom: 0;
289
+ left: 0;
290
+ right: 0;
291
+ margin: auto;
292
+ transition: 200ms ease-out opacity;
293
+ `,Qr=b.div`
294
+ position: absolute;
295
+ top: 0;
296
+ bottom: 0;
297
+ left: 0;
298
+ right: 0;
299
+ height: 100%;
300
+ width: 100%;
301
+ pointer-events: ${t=>t["data-loading"]?"all":"none"};
302
+ display: flex;
303
+ flex-direction: column;
304
+ justify-content: center;
305
+ transition: 200ms ease-out opacity;
306
+ box-sizing: border-box;
307
+ overflow: hidden;
308
+ svg {
309
+ opacity: ${t=>t["data-loading"]?"1":"0"};
310
+ }
311
+ `,eo=b.div`
312
+ position: relative;
313
+ margin: 0 auto;
314
+ width: 100px;
315
+ &:before {
316
+ content: '';
317
+ display: block;
318
+ padding-top: 100%;
319
+ }
320
+ `,to=b.circle`
321
+ stroke-dasharray: 1, 200;
322
+ stroke-dashoffset: 0;
323
+ animation: ${Jr} 1.5s ease-in-out infinite;
324
+ stroke-linecap: round;
325
+ stroke: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
326
+ stroke-width: 2px;
327
+ `,no=({className:t,loading:e=!1})=>d.jsx(Qr,{className:A("humany-loader",t),"data-loading":e,children:d.jsx(eo,{className:"humany-spinner",children:d.jsx(Gr,{viewBox:"25 25 50 50",children:d.jsx(to,{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"2","stroke-miterlimit":"10"})})})}),so=({zoomState:t,image:e,changeZoom:n,...s})=>{var v;const r=f.useRef(null),[o,i]=f.useState(!1),[a,c]=f.useState(!1),{width:u,height:l,...h}=s.style||{},p=f.useCallback(()=>{const g=r.current;if(g){const y=window.innerWidth/g.naturalWidth,C=window.innerHeight/g.naturalHeight,k=Math.min(y,C);return C>=1&&y>=1?1:k}return 1},[o,e.src]),m=f.useMemo(()=>{const g=r.current;if(g&&o){if(!a){c(!0);const y=p();n(y)}return g.naturalWidth>=g.naturalHeight?[`${t*g.naturalWidth}px`,"auto"]:["auto",`${t*g.naturalHeight}px`]}return null},[t,r,o,e.src]);return f.useEffect(()=>(i(!1),function(){c(!1)}),[e.src]),d.jsxs(d.Fragment,{children:[d.jsx(ro,{loading:!o}),d.jsx(oo,{onLoad:()=>{i(!0)},ref:r,imageSize:m,draggable:"false",...s,alt:((v=s.alt)==null?void 0:v.toString())||"",style:h,src:e.src,loaded:o}),d.jsx(io,{})]})},ro=b(no)`
328
+ svg circle {
329
+ stroke: #ffffff;
330
+ }
331
+ `,oo=b.img`
332
+ transform: none;
333
+
334
+ ${t=>t.imageSize&&L.css`
335
+ width: ${t.imageSize[0]};
336
+ height: ${t.imageSize[1]};
337
+ display: inline-block;
338
+ `}
339
+ vertical-align: middle;
340
+ position: relative;
341
+ ${t=>!t.loaded&&"display:none;"}
342
+ `,io=b.div`
343
+ height: 100%;
344
+ display: inline-block;
345
+ vertical-align: middle;
346
+ `,ao=()=>{const t=f.useRef(),[e,n]=f.useState(!0),s=f.useCallback(()=>(e||n(!0),t.current&&clearTimeout(t.current),t.current=setTimeout(()=>{n(!1)},3e3),()=>{t.current&&clearTimeout(t.current)}),[e,t]);return[e,s]},co=({attrs:t,htmlBody:e})=>{var _t;const n=ve("Escape"),s=ve("ArrowLeft"),r=ve("ArrowRight"),[o,i]=f.useState(1),[a,c]=f.useState({top:0,left:0,x:0,y:0}),[u,l]=f.useState(!1),[h,p]=ao(),[m,v]=f.useState(null),[g,y]=f.useState(null),C=f.useRef(null),k=f.useRef(null),j=f.useRef(null),w=f.useRef(null),E=f.useRef(null),[V,S]=f.useState(null);f.useEffect(()=>{n&&v(null)},[n]),f.useEffect(()=>{i(1)},[m]),f.useEffect(()=>{var X,Oe;if(m===null||k.current===null)return;const $=k.current.firstElementChild,R=(X=j.current)==null?void 0:X.querySelector(".nav-left"),W=(Oe=j.current)==null?void 0:Oe.querySelector(".nav-right");if(g==="Right")je&&W?W.focus():ae&&R&&R.focus();else if(g==="Left")ae&&R?R.focus():je&&W&&W.focus();else{if(!$)return;$.focus()}},[m,k,j,g]),f.useEffect(()=>{if(s){if(ae)return Se()}else if(r&&je)return Y()},[s,r]),f.useEffect(()=>{var R,W;const $=((W=(R=E.current)==null?void 0:R.style)==null?void 0:W.float)||"";($==="left"||$==="right")&&S($)},[]);const O=f.useMemo(()=>{const $=document.createElement("div");$.innerHTML=e||"";const R=$.getElementsByTagName("img");return Array.from(R).reduce((X,Oe)=>{const Ht=Oe.getAttribute("src");if(Ht){const Zn={src:Ht};X.push(Zn)}return X},[])},[e]),_=f.useCallback(()=>{const{src:$}=t;if($){const R=O.findIndex((W,X)=>W.src===$);v(R)}},[O,t]),D=f.useCallback($=>{v(null)},[]),I=f.useCallback($=>{i($?o+o*.25:o-o*.25)},[i,o]),B=f.useCallback(()=>{if(m!==null){const{src:$}=O[m];$&&window.open($,"_self")}},[O,m]),q=f.useCallback($=>{const R=w.current;R&&(c({top:R.scrollTop,left:R.scrollLeft,x:$.clientX,y:$.clientY}),l(!0))},[w]),ge=f.useCallback($=>{const R=w.current;if(R&&u){const W=$.clientX-a.x,X=$.clientY-a.y;R.scrollTop=a.top-X,R.scrollLeft=a.left-W}},[u,a]),$e=$=>{$.preventDefault(),l(!1)},ie=f.useMemo(()=>{if(w.current){const $=w.current.getElementsByTagName("img");if($&&$.length){const R=$[0];return R.width>window.innerWidth||R.height>window.innerHeight}}return!1},[w,o]),Se=()=>{m!==null&&(y("Left"),v(m-1))},Y=()=>{m!==null&&(y("Right"),v(m+1))},ae=m!==null&&m>0&&O.length>1,je=m!==null&&O.length-1>m;return d.jsxs(d.Fragment,{children:[d.jsx(Vn,{visible:m!==null,onClick:D,children:d.jsxs(yo,{onMouseDown:()=>p(),onMouseMove:()=>p(),onTouchStart:()=>p(),onKeyDown:()=>p(),children:[d.jsx(vo,{show:h.toString(),children:d.jsx(fo,{ref:k,buttons:[{id:"download",onClick:B,icon:"download",ariaLabel:"Download image"},{id:"lightbox-close",onClick:()=>v(null),icon:"lightbox-close",ariaLabel:"Close"}]})}),d.jsx(xo,{scrolling:u.toString(),isDraggable:ie.toString(),ref:w,onMouseMove:ge,onMouseDown:q,onMouseUp:$e,children:m!==null&&d.jsx(so,{changeZoom:$=>{i($)},zoomState:o,...t,style:{...t.style||{},float:"none"},image:O[m]})}),d.jsx(mo,{ref:j,show:h.toString(),buttons:[{id:"previous",onClick:Se,icon:"caret-left",circle:!0,show:ae,className:"nav-left",ariaLabel:"Navigate to previous image"},{id:"next",onClick:Y,icon:"caret-right",circle:!0,show:je,className:"nav-right",ariaLabel:"Navigate to next image"}]}),d.jsxs(bo,{show:h.toString(),children:[d.jsx(po,{buttons:[{id:"zoom-out",onClick:()=>I(!1),icon:"zoom-out",ariaLabel:"Zoom out"},{id:"zoom-in",onClick:()=>I(!0),icon:"zoom-in",ariaLabel:"Zoom in"}]}),d.jsxs(go,{variant:"span",children:[Math.trunc(o*100),"%"]})]})]})}),d.jsx(lo,{ref:C,onClick:_,onKeyDown:$=>{$.key==="Enter"&&($.preventDefault(),_())},alignment:V,tabIndex:0,children:d.jsx(wo,{...t,alt:((_t=t.alt)==null?void 0:_t.toString())||"",ref:E})})]})},Tt=f.forwardRef(({show:t="true",buttons:e,className:n},s)=>d.jsx(uo,{ref:s,show:t,className:A("humany-button-set",n),children:e.map(({id:r,circle:o=!1,show:i=!0,ariaLabel:a,onClick:c,icon:u,className:l},h)=>d.jsx(ho,{circle:o.toString(),onClick:c,tabIndex:i?void 0:-1,show:i.toString(),icon:u,className:l,"aria-label":a,children:d.jsx(Ke,{size:24,symbol:{type:"Svg",content:u}})},r+h.toString()))})),_n=b.div`
347
+ transition: opacity 0.3s ease 0s;
348
+ z-index: 5;
349
+ ${t=>t.show==="true"?"opacity: 1;":L.css`
350
+ opacity: 0;
351
+ pointer-events: none;
352
+ `}
353
+ `,lo=b(Dt)`
354
+ display: inline-block !important;
355
+
356
+ ${t=>(t.alignment==="right"||t.alignment==="left")&&L.css`
357
+ float: ${t.alignment};
358
+ `}
359
+ `,uo=b(_n)`
360
+ position: fixed;
361
+ display: flex;
362
+ gap: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
363
+ `,yt="39px",ho=b(Fe)`
364
+ width: ${yt};
365
+ height: ${yt};
366
+ display: flex;
367
+ justify-content: center;
368
+ align-items: center;
369
+
370
+ ${t=>t.icon==="caret-left"&&L.css`
371
+ svg {
372
+ position: relative;
373
+ left: -2px;
374
+ }
375
+ `}
376
+
377
+ ${t=>{var e;return t.circle==="true"?L.css`
378
+ background-color: #ffffff;
379
+ border-radius: 50%;
380
+
381
+ svg {
382
+ path,
383
+ line {
384
+ stroke: ${(e=t.theme.colors)==null?void 0:e.text};
385
+ }
386
+ }
387
+
388
+ &:focus-visible {
389
+ ${de(t)}
390
+ outline-color: #ffffff;
391
+ background-color: transparent;
392
+
393
+ svg {
394
+ path,
395
+ line {
396
+ stroke: #ffffff;
397
+ }
398
+ }
399
+ }
400
+ `:L.css`
401
+ svg {
402
+ path,
403
+ line {
404
+ stroke: #ffffff;
405
+ }
406
+ }
407
+ &:focus {
408
+ outline-color: #ffffff;
409
+ }
410
+ &:focus-visible {
411
+ ${de(t)}
412
+ }
413
+ `}}
414
+
415
+ ${t=>t.show==="true"?L.css`
416
+ opacity: 0.8;
417
+ transition: opacity 0.3s ease 0s;
418
+ &:hover {
419
+ opacity: 1;
420
+ }
421
+ `:L.css`
422
+ opacity: 0;
423
+ pointer-events: none;
424
+ `}
425
+ `,fo=b(Tt)`
426
+ top: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
427
+ right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
428
+ `,po=b(Tt)`
429
+ bottom: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
430
+ width: 100%;
431
+ align-items: center;
432
+ justify-content: center;
433
+ `,mo=b(Tt)`
434
+ display: block;
435
+ button {
436
+ position: fixed;
437
+ top: calc(50% - calc(${yt} / 2));
438
+ &:first-child {
439
+ left: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
440
+ }
441
+ &:last-child {
442
+ right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
443
+ }
444
+ }
445
+ `,go=b(Ue)`
446
+ position: fixed;
447
+ bottom: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
448
+ right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
449
+ color: #ffffff;
450
+ font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.medium}};
451
+ font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
452
+ `,Hn=b(_n)`
453
+ position: absolute;
454
+ width: 100vw;
455
+ height: 88px;
456
+ left: 0px;
457
+ z-index: 5;
458
+ `,yo=b.div`
459
+ width: 100%;
460
+ `,vo=b(Hn)`
461
+ top: 0px;
462
+ background-image: linear-gradient(
463
+ to bottom,
464
+ rgb(34, 34, 34, 0.8),
465
+ rgba(34, 34, 34, 0)
466
+ );
467
+ `,bo=b(Hn)`
468
+ bottom: 0px;
469
+ background-image: linear-gradient(
470
+ to top,
471
+ rgb(34, 34, 34, 0.8),
472
+ rgba(34, 34, 34, 0)
473
+ );
474
+ `,xo=b.div`
475
+ width: 100%;
476
+ height: 100vh;
477
+ overflow: auto;
478
+ text-align: center;
479
+ vertical-align: middle;
480
+ white-space: nowrap;
481
+ justify-content: center;
482
+ cursor: ${t=>t.isDraggable==="true"?t.scrolling==="true"?"grabbing":"grab":"auto"};
483
+ `,wo=b.img`
484
+ cursor: pointer;
485
+ `,Co=f.forwardRef(({className:t,children:e,trigger:n,onOverlayClick:s=()=>{},close:r=!1,...o},i)=>{const[a,c]=Ws(),[u,l]=Ot(!0),h=f.useRef(),p=f.useRef(we()),m=ve("Escape");f.useEffect(()=>{(m||r)&&c(!1)},[m,r]),f.useEffect(()=>{a&&h.current&&h.current.focus()},[a,h.current]),Lt("router:changed",()=>{c(!1)});const v=f.useCallback(y=>{c(!1),s(y)},[s,c]);f.useImperativeHandle(i,()=>({close(){c(!1)}}));const g=f.useCallback(()=>pn(p.current,()=>{c(!1)}),[p.current]);return d.jsxs(d.Fragment,{children:[d.jsx(Vn,{visible:a,onClick:v,children:d.jsxs(ko,{className:A(t,"humany-modal",`humany-modal-${p.current}`),css:u,tabIndex:-1,...o,ref:l,children:[d.jsx(gn,{onClick:()=>c(!1),tabIndex:0,ref:h,children:d.jsx(Ke,{symbol:{type:"Svg",content:"close"}})}),e]})}),f.cloneElement(n,{onClick:y=>{c(),g()}})]})}),ko=b.div`
486
+ font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
487
+ font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
488
+ position: relative;
489
+ max-width: 50%;
490
+ min-width: 200px;
491
+ padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.medium}};
492
+ ${t=>mn(t)}
493
+ ${t=>t.css&&t.css}
494
+ outline: none;
495
+ `;b(Co)`
496
+ display: block;
497
+
498
+ span {
499
+ display: block;
500
+ margin: 0 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
501
+
502
+ &:first-of-type:not(:only-of-type) {
503
+ font-weight: 700;
504
+ margin: 0 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}};
505
+ }
506
+ }
507
+ `;b(Fe)`
508
+ display: inline-block;
509
+ min-width: 50px;
510
+ ${t=>{var e,n;return`padding: ${(e=t.theme.sizes)==null?void 0:e.small} ${(n=t.theme.sizes)==null?void 0:n.normal};`}}
511
+ ${t=>t.theme.borderRadius&&`border-radius: ${t.theme.borderRadius};`}
512
+ color: #FFFFFF;
513
+ background-color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
514
+ border: 1px solid ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
515
+
516
+ margin: 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}} 0 0;
517
+
518
+ &:focus {
519
+ background-color: transparent;
520
+ }
521
+
522
+ &:focus-visible {
523
+ ${de}
524
+ }
525
+ `;b(Fe)`
526
+ display: inline-block;
527
+ min-width: 50px;
528
+ ${t=>{var e,n;return`padding: ${(e=t.theme.sizes)==null?void 0:e.small} ${(n=t.theme.sizes)==null?void 0:n.normal};`}}
529
+ ${t=>t.theme.borderRadius&&`border-radius: ${t.theme.borderRadius};`}
530
+ background-color: transparent;
531
+ color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
532
+ border: 1px solid ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
533
+
534
+ &:focus-visible {
535
+ ${de};
536
+ }
537
+ `;b.div`
538
+ display: flex;
539
+ flex-wrap: wrap;
540
+ `;b.div`
541
+ ${t=>on(t)("h2",L.css`
542
+ padding: 0;
543
+ margin: 0;
544
+ color: gray;
545
+ font-size: 7em;
546
+ `)}
547
+ `;b.div`
548
+ margin-left: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.medium}};
549
+
550
+ ${t=>{var e;return on(t)("h3",L.css`
551
+ text-transform: uppercase;
552
+ font-size: ${(e=t.theme.fonts)==null?void 0:e.normal};
553
+ `)}}
554
+
555
+ a {
556
+ color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.link}};
557
+ font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.small}};
558
+ }
559
+ `;b.div`
560
+ margin-top: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.medium}};
561
+ min-width: 100%;
562
+
563
+ span {
564
+ font-weight: bold;
565
+ }
566
+ `;f.forwardRef(({className:t,description:e,text:n,children:s,...r},o)=>d.jsxs(Dt,{className:A(t,"humany-text-link"),...r,ref:o,children:[s,d.jsx(At,{children:n}),e?d.jsx(vn,{html:e,className:"humany-description"}):null]}));b.div`
567
+ display: flex;
568
+ align-items: center;
569
+ `;b.div`
570
+ color: #ffffff;
571
+ background: #161616;
572
+ border-radius: ${t=>t.theme.borderRadius};
573
+ padding: calc(${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}} * 2);
574
+ font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
575
+ font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
576
+ position: absolute;
577
+ z-index: 10;
578
+
579
+ a {
580
+ color: ${t=>t.color?t.color:"inherit"};
581
+ text-decoration: none;
582
+ }
583
+
584
+ i,
585
+ svg {
586
+ margin-right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}};
587
+ }
588
+
589
+ ${t=>{let e="";return t.y>0?e+=`top: calc(2px + ${t.y||"0"}px);`:e+="bottom: 2px;",t.x>0?e+=`right: calc(2px + ${t.x||"0"}px);`:e+="left: 2px;",e}};
590
+ `;const Eo=f.forwardRef(({className:t,children:e,onClick:n=()=>{},widgetName:s,activationOptions:r,...o},i)=>{const a=z(),c=()=>{const{implementation:h}=a.get("$widget");return h.widgets.get(s)};f.useEffect(()=>{const h=c();return h==null||h.activate(r).then(()=>h.invoke("attach")),()=>{h==null||h.deactivate()}},[s]);const u=h=>{const p=c(),m=h.currentTarget;if(p){const v=()=>{p.invoke("renderState").then(g=>g===H.open?p.invoke("close"):p.invoke("open")).then(()=>{p.events.subscribeOnce("widget:area-rendered",(g,y)=>{a.get("widgetDOMElement")&&p.events.dispatch("widget:modal-opened",{name:p.name,ref:m})})})};p.state===Ct.Deactivated?p.activate(r).then(()=>p.invoke("attach")).then(v):v()}},l=h=>{h.key==="Enter"&&(h.preventDefault(),u(h))};return d.jsx(Dt,{className:A(t,"humany-widget-link"),onKeyDown:l,onClick:h=>{n(h),u(h)},...o,ref:i,children:e})});f.forwardRef(({portalId:t="humany-widget-overlay-portal",className:e,children:n},s)=>{const r=z(),o=f.useMemo(()=>{if(!r)return null;const i=r.get("widgetDOMElement");return!i||!i.childElementCount?null:i.children[0]},[r]);return o?d.jsx(Nt,{elementId:t,parent:o,children:d.jsx($o,{className:A("humany-widget-overlay-outlet",e),ref:s,children:n})}):null});const $o=b.div`
591
+ background-color: #ffffff;
592
+ position: absolute;
593
+ top: 0;
594
+ left: 0;
595
+ bottom: 0;
596
+ right: 0;
597
+ z-index: 10;
598
+ width: 100%;
599
+ height: 100%;
600
+ `;var vt=(t=>(t.back="back",t.forth="forth",t))(vt||{});const So=(t,e,n)=>typeof n[t]=="number"&&typeof n[e]=="number"&&n[t]>n[e]?"back":"forth",In=({views:t,location:e,render:n})=>d.jsx(Le.Switch,{location:e&&{...e,pathname:e.pathname.split("?")[0]},children:[...Object.keys(t).filter(s=>!!t[s].path),...Object.keys(t).filter(s=>!t[s].path)].map(s=>{const{path:r}=t[s];return r?Array.isArray(r)?r.map(o=>d.jsx(Le.Route,{exact:!0,path:o,render:()=>n(s)},s)):d.jsx(Le.Route,{exact:!0,path:r,render:()=>n(s)},s):d.jsx(Le.Route,{render:()=>n(s)},s)})}),jo=b.div`
601
+ position: relative;
602
+ width: 100%;
603
+ flex: 1;
604
+ `,Oo=b(yn)`
605
+ position: absolute;
606
+ left: 0;
607
+ right: 0;
608
+ ${t=>!!t.animationCss&&t.animationCss}
609
+ ${t=>!!t.scrollableCss&&t.scrollableCss}
610
+ `,Lo={index:1,search:2,browse:3,guide:4,contact:5,"contact-method":6,conversation:7},Ao=({className:t="",...e})=>{const[n,s]=f.useState("index"),[r,o]=f.useState(vt.forth),i=Bs(),a=jt(),c=fn(),u=qe(),l=z(),h=Ce(),{gap:p="0"}=u,{columns:m=1,animation:v="none",scrollable:g=!1,...y}=c,[C,k]=Ot(g);if(!h||!a)return null;const{location:j}=a;i.name!==n&&i.name!==""&&v&&(o(So(n,i.name,Lo)),s(i.name));const{views:w}=l.get("$settings");if(!Object.keys(w).length)return null;const E=(S,O,_)=>{const D=V(O,_),I=h.getChildren(S)[0];return d.jsx(Oo,{...e,...y,scrollableCss:C,ref:k,columns:m,gap:p,...D,className:A(t,"humany-view"),children:d.jsx(Qe,{id:I.id,branch:"default"})})},V=(S,O)=>{if(v==="slide"||v==="fade")return{animationCss:pt.composeViewTransition(S,v,O),"data-state":S}};return d.jsx(jo,{className:"humany-animated-view",children:d.jsx(ut.TransitionGroup,{component:null,childFactory:S=>f.cloneElement(S,{direction:r}),children:d.jsx(ut.Transition,{timeout:{enter:500,exit:500},onEnter:S=>S==null?void 0:S.clientHeight,unmountOnExit:!0,direction:vt.forth,children:(S,{direction:O})=>d.jsx(In,{views:w,location:j,render:_=>E(_,S,O)})},n)})})},No=b(yn)`
611
+ ${t=>!!t.scrollableCss&&t.scrollableCss}
612
+ `,Ro=({className:t="",...e})=>{const n=fn(),s=qe(),r=z(),o=Ce(),{views:i}=r.get("$settings"),{gap:a="0"}=s,{columns:c=1,animation:u="none",scrollable:l=!1,...h}=n,[p,m]=Ot(l);return o?d.jsx(No,{...e,...h,scrollableCss:p,ref:m,columns:c,gap:a,className:A(t,"humany-view"),children:d.jsx(In,{views:i,render:v=>{const g=o.getChildren(v)[0];return d.jsx(Qe,{id:g.id,node:g,branch:"default"})}})}):null},Ee=t=>{var e,n;return L.css`
613
+ outline: none;
614
+ box-sizing: border-box;
615
+ * {
616
+ box-sizing: border-box;
617
+ outline: none;
618
+ }
619
+
620
+ grid-column: ${t["data-indent"]?`${t["data-indent"]+1} / ${t["data-indent"]+(t["data-width"]||0)+1}`:`span ${t["data-width"]}`};
621
+
622
+ ${((e=t.theme.fonts)==null?void 0:e.type)&&`
623
+ font-family: ${t.theme.fonts.type};
624
+
625
+ input, textarea {
626
+ font-family: ${t.theme.fonts.type};
627
+ }
628
+ `}
629
+
630
+ ${((n=t.theme.fonts)==null?void 0:n.base)&&`
631
+ font-size: ${t.theme.fonts.base};
632
+ `}
633
+
634
+ &:focus-visible {
635
+ ${Zs(t)};
636
+ }
637
+ `},Mo=b(Ro)`
638
+ ${t=>Ee(t)}
639
+ `,Po=b(Ao)`
640
+ ${t=>Ee(t)}
641
+ `,Do=b.div`
642
+ text-align: center;
643
+ ${t=>{var e,n,s;return typeof((e=t.theme.colors)==null?void 0:e.warning)<"u"&&L.css`
644
+ color: ${(n=t.theme.colors)==null?void 0:n.warning};
645
+ border: 2px dashed ${(s=t.theme.colors)==null?void 0:s.warning};
646
+ `}}
647
+ ${t=>typeof t.theme.borderRadius<"u"&&`border-radius: ${t.theme.borderRadius};`}
648
+ ${t=>Ee(t)}
649
+ `,To=f.forwardRef(({className:t="",children:e,...n},s)=>{const r=Vs(),{name:o,type:i,id:a}=dn(),c=f.useMemo(()=>r?b(r)`
650
+ ${Ee}
651
+ ${rn}
652
+ `:null,[r]);return typeof r>"u"?null:r===null||c===null?process.env.NODE_ENV!=="production"?d.jsx(Do,{...n,title:`type: ${i}, definition-id: ${o}, instance-id: ${a}`,className:A(t,"humany-non-resolved-component"),children:d.jsx(Ue,{variant:"h5",children:"Non Resolved Component Type"})}):null:d.jsx(f.Suspense,{fallback:null,children:d.jsx(c,{ref:s,...n,className:A(t,"humany-component",`humany-component-${o}`),children:e})})}),Vo=t=>{const e=Ce(t),n=me(),[s,r]=f.useState({}),o=oe();return f.useEffect(()=>{e&&o.current&&r(e.attributes.properties)},[e,t,o]),f.useEffect(()=>{if(n){const i=n.events.subscribe("components:properties-changed",(a,c)=>{e===c.node&&o.current&&r(c.node.attributes.properties)});return()=>{i()}}},[n,o,t,e]),s},_o=(t,e)=>e?!0:typeof t=="string"?t==="full":t>0,Qe=f.forwardRef(({className:t="",id:e,branch:n,node:s,ariaLabel:r,tabIndex:o,context:i,...a},c)=>{const u=me(),l=z(),[h,p]=f.useState(),m=Ts(),v=qe(e),g=Vo(e),{size:y="none",indent:C=0}=Hs(e),k=_o(y,s);if(f.useEffect(()=>{if(u){if(e&&!s){const D=u.nodes.get(e);if(D&&(p(ft(D,n)),k)){const I=D.mount(l);return()=>{I()}}}else if(s){p(ft(s,n));const D=s.mount(l);return()=>{D()}}}},[u,e,s,k]),!h||!k)return null;const j={...v,...i||{}},{cardinal:w,fonts:E={},accessibility:V={},...S}=j,O={type:E.type,base:E.base||"16px",small:E.small||"0.8em",normal:E.normal||"1em",medium:E.medium||"1.2em",large:E.large||"1.6em",huge:E.huge||"2.5em"},_={...S,fonts:O,accessibility:{...V}};return typeof w=="number"&&(_.sizes={cardinal:w,small:`${w}px`,normal:`${w*3}px`,medium:`${w*5}px`,large:`${w*8}px`}),d.jsx(L.ThemeProvider,{theme:_,children:d.jsx(St.Provider,{value:h,children:d.jsx(un.Provider,{value:g,children:(()=>{const D={"data-width":y==="full"?m:Math.min(y,m),"data-indent":C,"data-name":h.name,"data-node-id":h.id,"data-component-type":h.type,"aria-label":r,tabIndex:o,id:h.id,role:g&&g.role,...a};switch(h.type){case"view":return typeof g.animation=="string"&&g.animation!=="none"?d.jsx(Po,{...D,className:t}):d.jsx(Mo,{...D,className:t});default:{const I=Et(g);return d.jsx(To,{ref:c,...D,...I,className:t})}}})()})})})}),Bn=({builder:t})=>{const e=z(),[n,s]=f.useState(null);return f.useEffect(()=>{e.getAsync("components").then(r=>t(r).then(o=>{s(o)}))},[]),f.useEffect(()=>()=>{n&&e.getAsync("components").then(r=>{r.nodes.detached=r.nodes.detached.filter(o=>o.id!==n.id)})},[n]),n?d.jsx(Qe,{id:n.id,node:n,branch:"default"}):null},Ho=Object.freeze(Object.defineProperty({__proto__:null,default:Bn},Symbol.toStringTag,{value:"Module"})),Io=f.lazy(()=>Promise.resolve().then(()=>Ho)),Bo=({showSearch:t=!1})=>{const e=L.useTheme(),n=z();return d.jsx(f.Suspense,{fallback:null,children:d.jsx(Io,{builder:s=>n.get("settings").then(r=>{var u;const{properties:o,context:i}=Object.keys(r.components).reduce((l,h)=>(r.components[h].type==="not-found"&&(l.properties=r.components[h].properties,l.context=r.components[h].context),l),{properties:{},context:{}});o.showSearch=t;const a=s.createNode("area",{detached:!0});if(a.name="not-found-area",a.writeLayout({size:"full"}),t){const l=Object.keys(r.components).reduce((p,m)=>r.components[m].type==="search"?r.components[m].properties:p,{}),h=s.createNode("search",{detached:!0});h.writeLayout({size:"full"}),h.writeProperties({"css-margin-bottom":((u=e==null?void 0:e.sizes)==null?void 0:u.normal)||"15px",...l}),a.appendChild(h)}const c=s.createNode("not-found",{detached:!0});return c.writeLayout({size:"full"}),c.writeProperties(o),c.writeContext(i),a.appendChild(c),a})})})},zo=t=>{if(t){const{type:e,content:n}=t;switch(e){case"FontAwesome":return`<i class="humany-icon fa fa-${n}"></i>`;case"Uri":return`<i class="humany-icon humany-custom-icon" style="background: url(${n}) no-repeat center center;background-size: contain;"></i>`;default:return""}}},Wo=t=>{const e=(r,o)=>{r&&(o?r.classList.add("humany-tabbing"):r.classList.remove("humany-tabbing"))},n=r=>{r.key==="Tab"?e(t,!0):r.key==="Enter"&&document.activeElement&&document.activeElement.classList.contains("humany-trigger")||e(t,!1)},s=r=>{document.activeElement&&document.activeElement.classList.contains("humany-trigger")&&document.activeElement.classList.contains("humany-tabbing")||e(t,!1)};return document.addEventListener("keydown",n),document.addEventListener("click",s),()=>{document.removeEventListener("keydown",n),document.removeEventListener("click",s)}};function Zo(t,e){const{symbol:n,widgetName:s,label:r="",ariaLabel:o="",tooltip:i=""}=e;t.classList.add("humany-trigger"),t.classList.add(`humany_${s}`),r.length&&t.classList.add("humany-has-text"),o.length&&!t.getAttribute("aria-label")&&t.setAttribute("aria-label",o),o.length&&!t.getAttribute("tabindex")&&t.setAttribute("tabindex","0"),i.length&&!t.getAttribute("title")&&t.setAttribute("title",i);const a=zo(n)||"";return t.innerHTML=`${a}
653
+ <span class="humany-close">
654
+ <svg width="18" height="9" viewBox="0 0 18 9" fill="none" xmlns="http://www.w3.org/2000/svg">
655
+ <path d="M9 9C8.81794 9.00045 8.63759 8.96634 8.46939 8.89965C8.3012 8.83295 8.14851 8.735 8.02015 8.61145L0.194523 1.12367C0.068294 0.99862 -0.00155266 0.831133 2.61958e-05 0.657285C0.00160506 0.483436 0.0744832 0.317136 0.202964 0.194202C0.331445 0.0712675 0.505249 0.00153576 0.686941 2.50649e-05C0.868634 -0.00148563 1.04368 0.0653456 1.17437 0.186125L9 7.6739L16.8256 0.186125C16.9563 0.0653456 17.1314 -0.00148563 17.3131 2.50649e-05C17.4948 0.00153576 17.6686 0.0712675 17.797 0.194202C17.9255 0.317136 17.9984 0.483436 18 0.657285C18.0016 0.831133 17.9317 0.99862 17.8055 1.12367L9.97985 8.61145C9.85149 8.735 9.6988 8.83295 9.53061 8.89965C9.36241 8.96634 9.18206 9.00045 9 9Z" fill="white"/>
656
+ </svg>
657
+ </span>
658
+ <span class="humany-loader">
659
+ <svg viewBox="25 25 50 50">
660
+ <circle
661
+ cx="50"
662
+ cy="50"
663
+ r="20"
664
+ fill="none"
665
+ stroke="#000"
666
+ stroke-width="2"
667
+ stroke-miterlimit="10" />
668
+ </svg>
669
+ </span>
670
+ ${r.length?`<span>${r}</span>`:""}`,setTimeout(()=>t&&t.classList.add("humany-rendered")),Wo(t)}function Fo(t,e){t instanceof HTMLElement?(e&&t.setAttribute("title",e),t.classList.remove("humany-active"),t.classList.remove("humany-loading")):t instanceof Array&&t.forEach(n=>{e&&n.setAttribute("title",e),n.classList.remove("humany-active"),n.classList.remove("humany-loading")})}function qo(t){t instanceof HTMLElement?(t.classList.remove("humany-active"),t.classList.add("humany-loading")):t instanceof Array&&t.forEach(e=>{e.classList.remove("humany-active"),e.classList.add("humany-loading")})}function zn(t,e){t instanceof HTMLElement?(e&&t.setAttribute("title",e),t.classList.add("humany-active"),t.classList.remove("humany-loading")):t instanceof Array&&t.forEach(n=>{e&&n.setAttribute("title",e),n.classList.add("humany-active"),n.classList.remove("humany-loading")})}var re=(t=>(t.Inline="inline",t.Link="link",t.Badge="badge",t.Unsupported="unsupported",t))(re||{});const Ko=(t,e)=>t&&e?"both":t?"widgetDOM":e?"triggerDOM":"none",Wn=t=>t?typeof t=="boolean"&&t?"link":typeof t=="object"&&!Array.isArray(t)?"badge":"unsupported":"inline",Uo=(t,e,n,s,r=!1)=>{var u,l;const o=Ko(e,n),i=Wn(s),a={widgetDOMElement:e?e.cloneNode(!0):void 0,triggerDOMElement:n?n.cloneNode(!0):void 0},c={triggerType:i,cachedOriginals:a,widgetDOMElement:document.createElement("div")};switch(o){case"both":{c.widgetDOMElement=e||document.createElement("div"),i!=="inline"&&(c.triggerDOMElement=n);break}case"widgetDOM":{if(c.widgetDOMElement=e||document.createElement("div"),i!=="inline"){const h=document.body.appendChild(document.createElement("a"));i==="link"&&(h.innerText=t),c.triggerDOMElement=h}break}case"triggerDOM":{const h=document.createElement("div");c.widgetDOMElement=h,i==="inline"?(h.id=(n==null?void 0:n.id)||"",r?(h.style.display="none",(u=n==null?void 0:n.parentNode)==null||u.appendChild(h),c.callback=()=>{var p;(p=n==null?void 0:n.parentNode)==null||p.replaceChild(h,n),h.style.display=(n==null?void 0:n.style.display)||"block"}):(l=n==null?void 0:n.parentNode)==null||l.replaceChild(h,n),c.cachedOriginals.widgetDOMElement=n,c.cachedOriginals.triggerDOMElement=void 0):(c.widgetDOMElement=document.body.appendChild(h),c.triggerDOMElement=n);break}case"none":{const h=document.body.appendChild(document.createElement("div"));if(c.widgetDOMElement=h,i!=="inline"){const p=document.body.appendChild(document.createElement("a"));i==="link"&&(p.innerText=t),c.triggerDOMElement=p}break}}return c},Yo="modals";class Xo{constructor(e,n){x(this,"container");x(this,"unsubscribe",[]);this.options=n,this.container=e.createChild(this),this.container.register("widgetDOMElement",this.options.widgetDOMElement),this.container.register("triggerDOMElement",this.options.triggerDOMElement);const s=this.container.get("$widget");this.options.widgetDOMElement.classList.add("humany-widget"),this.options.widgetDOMElement.classList.add(`humany_${s.name}`);const r=e.get("widgetDOMElements")||[];e.register("widgetDOMElements",[...r,this.options.widgetDOMElement])}render(){const{widgetDOMElement:e,triggerDOMElement:n}=this.options,s=this.container.get("$widget");return e.getAttribute("data-rendered")==="true"?Promise.resolve():(n&&this.options.triggerType===re.Badge&&qo(n),Promise.resolve().then(()=>require("./render-3ba35a1b.js")).then(r=>r.default(this.container,e)).then(()=>{if(e.setAttribute("data-rendered","true"),n&&this.options.triggerType===re.Badge){const o=this.options.triggerOptions.openTooltip;zn(n,o)}fs(this.container,e);const r=this.container.get("$environment").widgets.all();F(this.container,Yo,N.Session).then(o=>{o&&o.forEach(i=>{r.find(a=>a.name===i.name&&a.state==="activated")&&s.events.dispatch("widget:modal-opened",i)})})}))}renderBadge(e){const{triggerDOMElement:n}=this.options;if(!n)return;n.getAttribute("role")||n.setAttribute("role","button");const{name:s}=this.container.get("$widget"),{label:r,symbol:o,ariaLabel:i,closedTooltip:a,openTooltip:c}=e,u={closedTooltip:a,openTooltip:c};this.options.triggerOptions=u;const l=Zo(n,{label:r,symbol:o,ariaLabel:i,widgetName:s,tooltip:a});this.unsubscribe.push(l)}dispose(){return Promise.resolve().then(()=>require("./unmount-7ebc3b77.js")).then(e=>{var r,o,i,a;const{triggerDOMElement:n,widgetDOMElement:s}=this.options;e.default(s),this.options.cachedOriginals.widgetDOMElement&&s&&((r=s.parentNode)==null||r.replaceChild(this.options.cachedOriginals.widgetDOMElement,s)),this.options.cachedOriginals.triggerDOMElement&&n&&((o=n.parentNode)==null||o.replaceChild(this.options.cachedOriginals.triggerDOMElement,n)),this.unsubscribe.forEach(c=>{c()}),(i=s.parentNode)==null||i.removeChild(s),(a=n==null?void 0:n.parentNode)==null||a.removeChild(n)})}}const Me="changesets",Jo=t=>{const e={tags:t.tags};return t.context&&typeof t.context!="function"&&(e.context=t.context),t.properties&&typeof t.properties!="function"&&(e.properties=t.properties),t.layout&&typeof t.layout!="function"&&(e.layout=t.layout),e};class Vt{constructor(e,n){this.container=e,this.storageWriter=n}static create(e){return G(e,Me,T.Necessary,{medium:N.Local}).then(n=>new Vt(e,n))}write(e,n,s,r){return ee(this)(()=>F(this.container,Me,N.Local).then((o={})=>{const{keys:i=[],items:a={}}=o,c=i.indexOf(e);return c>-1&&i.splice(c,1),i.push(e),a[e]={options:r,attributes:Jo(s),rules:n.rules},this.storageWriter({keys:i,items:a})}))}remove(e){return ee(this)(()=>F(this.container,Me,N.Local).then((n={})=>{const{keys:s=[],items:r={}}=n,o=s.indexOf(e);if(o>-1)return s.splice(o,1),delete r[e],this.storageWriter(n)}))}load(e){return ee(this)(()=>F(this.container,Me,N.Local).then((n={})=>{const{keys:s=[],items:r={}}=n;s.forEach(o=>{const i=r[o];if(i){const{rules:a,attributes:c,options:u}=i;e.write({attributes:c,options:u,target:new ze(e,a)})}})}))}}const Go=t=>{const{container:e}=t;return Vt.create(e).then(n=>{const s=e.get("$settings"),r={localStorage:n},o=new kt(t,r),i=sn(o,s);return t.events.subscribe("widget:state-change",(a,c)=>{c.state===Ct.Deactivating&&i()}),o})},Qo=t=>Promise.resolve().then(()=>require("./index-d398cba1.js")).then(({RoutingService:e,HistoryMode:n})=>t.get("settings").then(s=>{const{routing:{initialPath:r="/",mode:o=n.scopedHash,basePath:i},views:a}=s;return new e(t,{initialPath:r,mode:o,routes:Object.keys(a).map(u=>({name:u,path:a[u].path})),basePath:i})})),ei=t=>Promise.resolve().then(()=>require("./index-086ba8b7.js")).then(({StorageProvider:e})=>new e),ti=t=>Promise.resolve().then(()=>require("./index-be9cee88.js")).then(({ActionResolver:e})=>new e(t)),ni=t=>Promise.resolve().then(()=>require("./index-be9cee88.js")).then(({ComponentResolver:e})=>new e(t)),si=t=>Promise.resolve().then(()=>require("./index-be9cee88.js")).then(({ComponentPlatform:e,createComponentModel:n})=>Go(t.get("$widget"))),lt="$settings",Pe="open",Xt="activeStickyWidget";class ri extends os{constructor(n){super(n);x(this,"outlets",new Map);x(this,"activated");x(this,"subs",[]);x(this,"handleBootstrapping",n=>{const s={triggerDOMElement:n.sourceDOMElement,withRenderState:"storage"};this.container.get("settings").then(r=>{const{activate:o}=r;(typeof o>"u"||o===null||o===!0)&&(this.activated=(this.activated||this.widget.activate()).then(()=>this.attach(s)))})});this.container.registerAsync("storage",()=>ei(this.container)),this.container.registerFactory("settings",()=>F(this.container,lt,N.Local).then((s={})=>({...this.container.get("$settings"),...s}))),Gn(this,"load",this.handleBootstrapping),this.container.registerAsync("componentResolver",()=>ni(this.container)),this.container.registerAsync("router",()=>Qo(this.container)),this.container.registerAsync("actionResolver",()=>ti(this.container)),this.container.register("matchMedia",window.matchMedia),this.container.registerAsync("components",()=>si(this.container))}initialize(){const n=this.container.getManyAsync("actionResolver","router","components"),s=this.container.get("csp");return s&&(window.webprovisionsEnvironmentVariables||(window.webprovisionsEnvironmentVariables={}),window.webprovisionsEnvironmentVariables.cspNonce=s.nonce),Promise.all([n,this.container.get("settings")]).then(([{actionResolver:r,router:o,components:i},a])=>{var l;r.subscribe(this.widget.name,(h,p,m)=>this.onAction(p,m));const c=h=>{i.nodes.query({type:"view"}).forEach(p=>{i.setSwitch(p,h)})},u=((l=o.getInitialRoute())==null?void 0:l.name)||"index";return c(u),this.events.subscribe("widget:data-loaded",(h,{element:p})=>{this.widget.container.get("seoConfiguration")&&this.events.dispatch("widget:preloaded-replaced",{element:p})}),this.events.subscribe("router:change",(h,{previous:p={routeData:{}},next:m={routeData:{}}})=>{const{routeData:v}=p,{routeData:g}=m,y=Object.keys(a.views).reduce((C,k)=>typeof a.views[k].path>"u"?k:C,"");!g.name&&y?c(y):c(g.name),te(v&&v.params),te(g&&g.params),this.container.getAsync("actionResolver").then(C=>{C.action(this.widget.name,"routeChange",{next:g,previous:v})})}),o.initialize()})}attach(n={}){return this.container.get("settings").then(({trigger:s})=>{var m,v;const{widgetDOMElement:r,key:o=we(),triggerDOMElement:i,withRenderState:a}=n,u=Wn(s)===re.Inline&&((i==null?void 0:i.childElementCount)||0)>0,l=Uo(this.widget.name,r,i,s,u);this.outlets.size<1&&!a&&this.setRenderState("unset");const h=()=>{const g=()=>y.querySelectorAll("[data-loading=true]").length===0,[y]=this.widget.container.get("widgetDOMElements"),C=(w,E)=>{g()&&(l.callback&&l.callback(),E.disconnect())},k={attributes:!0,subtree:!0,childList:!0};g()&&l.callback&&l.callback(),new MutationObserver(C).observe(y,k)};u&&this.widget.container.getAsync("dataClient").then(({events:g})=>{g.subscribe("data-client:fetched",(y,C)=>{C.unresolvedQueries===0&&h()})});const p=this.getOrCreateViewOutlet(o,l);if(this.outlets.set(o,p),this.widget.events.dispatch("widget:attached",{},{bubbles:!0}),l.triggerType===re.Badge&&s&&((m=l.triggerDOMElement)==null||m.setAttribute("aria-expanded","false"),p==null||p.renderBadge(s)),l.triggerType!==re.Inline&&((v=l.triggerDOMElement)==null||v.addEventListener("click",g=>{g.preventDefault(),this.container.get("settings").then(({trigger:y})=>{p.render().then(()=>this.renderState()).then(C=>y&&y.action&&y.action==="hide"?C===H.open?this.hide():this.open():C===H.open?this.close():this.open())})})),this.outlets.size>1)return this.renderState().then(g=>{this.triggerStateIfApplicable(g)});if(a)return a==="storage"?this.renderState().then(g=>{if(l.triggerType===re.Inline){this.triggerStateIfApplicable("open");return}this.triggerStateIfApplicable(g)}):this.triggerStateIfApplicable(a)})}detach(n){if(n){if(this.outlets.has(n)){const s=this.outlets.get(n);s==null||s.dispose(),this.outlets.delete(n);return}process.env.NODE_ENV!=="production"&&console.warn(`detach(): Could not find View Outlet with key ${n}`);return}this.outlets.forEach(s=>{s.dispose()}),this.outlets.clear()}triggerStateIfApplicable(n){return this.container.getAsync("router").then(s=>{switch(n){case"closed":this.close();break;case"open":this.open();break;case"hidden":this.hide(),s.start();break;default:return}})}getOrCreateViewOutlet(n,s){return this.outlets.has(n)?this.outlets.get(n):new Xo(this.container,s)}render(n={}){if(process.env.NODE_ENV!=="production"&&console.warn("widget.render() is deprecated. Use widget.attach() instead."),n.open){const s={...n,withRenderState:"open"};return this.attach(s)}return this.attach(n)}activate(n){n!=null&&n.override&&this.setSettings(()=>n.override),n!=null&&n.apiNotificationPriorityBy&&this.container.register("apiNotificationPriorityBy",n.apiNotificationPriorityBy)}setSettings(n){return Promise.all([this.container.get("settings"),G(this.container,lt,T.Necessary,{medium:N.Local})]).then(([s,r])=>Promise.resolve(n(s)).then(o=>r(o).then(()=>{const i={...s,...o};return this.widget.events.dispatch("widget:settings-updated",i),i})))}clearSettings(){return G(this.container,lt,T.Necessary,{medium:N.Local}).then(n=>n()).then(()=>this.container.get("settings")).then(n=>{this.widget.events.dispatch("widget:settings-updated",n)})}action({action:n,value:s}){return this.container.getAsync("actionResolver").then(r=>{r.action(this.widget.name,n,s)})}renderState(){if(Mn(this.container))return Promise.resolve(H.open);const n=()=>F(this.container,Pe,N.Session).then((r=H.closed)=>r),s=()=>F(this.container,Pe,N.Session).then((r=H.closed)=>r);return this.container.getAsync("router").then(r=>r.isSticky()?s().then(o=>o===H.open?o:n()):n())}hide(){return this.outlets.size<1?(process.env.NODE_ENV!=="production"&&console.warn("hide(): No-op as no view outlets are registered. Invoke the attach() command first."),Promise.resolve()):(this.outlets.forEach(n=>n.render()),this.action({action:"hide"}).then(()=>{this.setTriggerState(!1)}))}open(){return this.outlets.size<1?(process.env.NODE_ENV!=="production"&&console.warn("open(): No-op as no view outlets are registered. Invoke the attach() command first."),Promise.resolve()):(this.outlets.forEach(n=>n.render()),this.action({action:"open"}).then(()=>(this.widget.events.dispatch("tracking:widget-rendered",{}),this.onOpen())))}close(){return this.outlets.size<1?(process.env.NODE_ENV!=="production"&&console.warn("close(): No-op as no view outlets are registered. Invoke the attach() command first."),Promise.resolve()):this.action({action:"close"}).then(()=>this.onClose())}show(){return process.env.NODE_ENV!=="production"&&console.warn("show(): Command is deprecated and will be removed in the future. Use open() instead."),this.open()}onAction(n,s){switch(n){case"close":case"open":case"hide":const r=n==="open"?H.open:n==="close"?H.closed:H.hidden;return this.setRenderState(r).then(()=>{this.setTriggerState(r===H.open),r!==H.hidden?r===H.open?this.onOpen():this.onClose():this.outlets.forEach(o=>{var i;return(i=o.options.triggerDOMElement)==null?void 0:i.setAttribute("aria-expanded","false")})})}}setRenderState(n){const{invoke:s,events:r}=this.container.get("$widget");return Promise.all([G(this.container,Pe,T.Necessary,{medium:N.Session}),G(this.container,Pe,T.Necessary,{medium:N.Local,duration:{minutes:5}}),this.container.getAsync("router"),s("renderState")]).then(([o,i,a,c])=>{n==="unset"||!n?(i(),o()):(a.isSticky()&&i(n),o(n)),r.dispatch("widget:render-state-changed",{previous:c,next:n})})}onOpen(){return this.container.getAsync("router").then(n=>(this.outlets.forEach(s=>{var r;return(r=s.options.triggerDOMElement)==null?void 0:r.setAttribute("aria-expanded","true")}),n.start()))}onClose(){const n=this.container.getManyAsync("router","components");return(()=>this.container.get("settings").then(r=>{const{activate:o}=this.container.get("$settings");return r.activate!==o?this.setSettings(()=>Promise.resolve({activate:o})):Promise.resolve()}))().then(()=>n).then(({router:r,components:o})=>{const i=o.nodes.visible;return this.outlets.forEach(a=>{var c;return(c=a.options.triggerDOMElement)==null?void 0:c.setAttribute("aria-expanded","false")}),i.filter(a=>a.attributes.properties.animation&&a.attributes.properties.animation!=="none").length?new Promise(a=>{setTimeout(()=>{a(r)},200)}):Promise.resolve(r)}).then(r=>r.stop())}setTriggerState(n){this.outlets.forEach(s=>{const{options:{triggerDOMElement:r,triggerOptions:o}}=s,{openTooltip:i,closedTooltip:a}=o||{};r&&(n?zn(r,i):Fo(r,a))})}deactivate(){this.subs.forEach(s=>s());const n=[];return this.outlets.forEach(s=>n.push(s.dispose())),F(this.container,Xt,N.Local).then(s=>s===this.widget.name?G(this.container,Xt,T.Necessary,{medium:N.Local,scope:ke.Implementation}).then(r=>r()).then(()=>Promise.all(n)):Promise.all(n))}}exports.ActionsController=We;exports.Component=Qe;exports.ComponentNode=dt;exports.ComponentNodeController=Qt;exports.ComponentPlatform=kt;exports.ComponentQuery=ze;exports.ContainerContext=ln;exports.DetachedComponent=Bn;exports.HistoryMode=pe;exports.InitializationMode=On;exports.Logger=M;exports.NotFound=Bo;exports.RoutingContext=hn;exports.StorageCategory=T;exports.StorageMedium=N;exports.StorageScope=ke;exports.Widget=ri;exports.WidgetRenderState=H;exports._default=wn;exports.asDescriptor=ft;exports.compareParams=Ar;exports.createChildren=_e;exports.createComponentModel=sn;exports.createEventSubscriber=Gt;exports.createExpirationDate=Ge;exports.createLocation=Lr;exports.createParamsPath=An;exports.createStorageWriter=G;exports.createValue=Mt;exports.determineIfSticky=Nr;exports.findComponent=nn;exports.findRoute=$r;exports.findVisibleComponents=De;exports.getDefaultExportFromCjs=$t;exports.getNotFoundRoute=Rr;exports.getScopedHashDOMLocation=Rn;exports.getSpecificWidgetPath=Nn;exports.getTransitionManager=Or;exports.getValue=Ie;exports.lock=ee;exports.matchParams=kr;exports.matchRoute=jr;exports.onWidgetUrl=Mn;exports.processStore=Tn;exports.queryStringAsObject=Ln;exports.readStorage=F;exports.removeNullAndUndefinedValues=te;exports.resolvePathname=Cn;exports.styling=Ee;exports.traverseComponents=Ze;exports.useComponentPlatform=me;exports.useIsMounted=oe;exports.warning=er;