@telia-ace/widget-components-widget-header-flamingo 1.1.12 → 1.1.13
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.
- package/{index-d18b6f25.mjs → index-5087564d.mjs} +304 -305
- package/index-6dd00f59.js +1 -0
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/index.mjs +4 -2
- package/package.json +2 -4
- package/widget-header-c305df1b.mjs +1274 -0
- package/widget-header-component.d.ts +2 -3
- package/widget-header-e8e27694.js +288 -0
- package/widget-header.d.ts +3 -3
- package/ai-robot-0e89be0b.js +0 -1
- package/ai-robot-dbe1c82f.mjs +0 -4
- package/index-425a19a3.mjs +0 -2608
- package/index-6c3c27db.js +0 -144
- package/index-df07fc07.js +0 -1
- package/widget-header-17645d22.js +0 -74
- package/widget-header-f25f74cb.mjs +0 -341
package/index-6c3c27db.js
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
"use strict";const mt=(n,t,e,...s)=>{const i=`[${n.get("$environment").name||"webprovisions"}] ${e}`;switch(t){case"info":console.info(i,...s);break;case"warning":console.warn(i,...s);break;case"error":console.error(i,...s);break}},Ce=n=>{const t=n.container||n;return{info:(e,...s)=>mt(t,"info",e,...s),warn:(e,...s)=>mt(t,"warning",e,...s),error:(e,...s)=>mt(t,"error",e,...s)}};var F=(n=>(n.Implementation="implementation",n.Widget="widget",n))(F||{}),C=(n=>(n.Pre="pre",n.Post="post",n))(C||{});const ke=(n,t,e,s)=>{try{const i=new t(e,s);return{name:n,invoke:(r,o)=>{let a;return i[r]&&(a=i[r].call(i,o)),Promise.resolve(a)},getInstance:()=>i}}catch(i){if(i.message&&i.message.indexOf("is not a constructor")>=0)return{name:n,invoke:r=>{let o;return r==="initialize"&&(o=t(e,s)),Promise.resolve(o)},getInstance:()=>t};throw i}};function jt(n,t){return typeof n>"u"?t:n}let Oe=class{constructor(t={}){this.part=t}createCommand(t,e,s){let i;typeof e=="function"?i={scope:F.Widget,stage:C.Post,defaultArgs:void 0,handlerResolver:e}:i={scope:jt(e.scope,F.Widget),stage:jt(e.stage,C.Post),defaultArgs:e.defaultArgs,handlerResolver:s};let r=this.part;const o=t.split(".");return o.forEach((a,c)=>{c===o.length-1?r[a]||(r[a]=()=>i):r=this.part[a]=this.part[a]||{}}),this}get(){return this.part}};const ce=n=>{const t=new Oe({});return n(t),t.get()};ce(n=>{n.createCommand("types.register",{scope:F.Implementation,stage:C.Pre},t=>(e,s)=>{t.container.get("$types")[e]=s}).createCommand("type",{stage:C.Pre},t=>e=>{t.container.register("$type",e)}).createCommand("settings",{stage:C.Pre,defaultArgs:[null]},t=>e=>{t.events.dispatch("settings:change",e,{bubbles:!0}),t.container.register("$settings",e)}).createCommand("plugin",{stage:C.Pre},t=>(e,s,i)=>{const{container:r}=t;let o=null,a=e,c=s;typeof e=="string"&&(o=e,a=s,c=i);const l=h=>{const{transformPluginSettings:p}=t.container.get("$environmentOptions"),u=p?p(c||{},o,t.container,a):s;try{const d=ke(o,a,r,u);r.get("$plugins").push(d),h&&d.invoke("initialize",null)}catch(d){Ce(t).warn("Error when initializing plugin",d)}};t.container.get("$instance")?l(!0):t.events.subscribeOnce("widget:instance-created",()=>l(!1))}).createCommand("container.register",t=>(e,s)=>{t.container.register(e,s)}).createCommand("container.registerAsync",t=>(e,s)=>{t.container.registerAsync(e,s)}).createCommand("container.registerFactory",t=>(e,s)=>{t.container.registerFactory(e,s)}).createCommand("container.touch",t=>(e,s)=>{t.container.touch(e,s)}).createCommand("csp",{},t=>e=>{t.container.register("csp",e)})});const Se=ce(n=>{n.createCommand("ready",{scope:F.Implementation,stage:C.Pre},t=>e=>{const{container:s}=t,i=s.owner;s.get("bootstrapping").ready?e(i):i.events.subscribeOnce("bootstrap:ready",()=>{e(i)})})}),ft=new WeakMap;function R(){return n=>(ft.has(n)||ft.set(n,{}),ft.get(n))}const vt=(n,t,e,...s)=>{const i=`[${n.get("$environment").name||"webprovisions"}] ${e}`;switch(t){case"info":console.info(i,...s);break;case"warning":console.warn(i,...s);break;case"error":console.error(i,...s);break}},v=n=>{const t=n.container||n;return{info:(e,...s)=>vt(t,"info",e,...s),warn:(e,...s)=>vt(t,"warning",e,...s),error:(e,...s)=>vt(t,"error",e,...s)}},m=R(),Pt=(()=>{let n=0;return()=>++n})(),Ct=(n,t,e)=>{const s=m(n).touchQueue.get(t);s&&s.forEach(i=>{i(e,n)})};class Ne{constructor(t,e,s,i){this.key=t,this.factory=e,this.parent=s,this.container=i,this.id=Pt(),this.resolved=!1,this.constructed=!1,this.async=!0}resolve(){if(!this.constructed){const t=this.factory(this.parent,this.container);return this.constructed=!0,this.value=Promise.resolve(t).then(e=>(this.resolved=!0,Ct(this.container,this.key,e),e))}return this.value}}class Te{constructor(t,e,s,i){this.key=t,this.value=e,this.parent=s,this.container=i,this.id=Pt(),this.async=!1,this.resolved=!1,this.constructed=!0,this.resolve=()=>(this.resolved=!0,Ct(this.container,this.key,this.value),this.value)}}class Me{constructor(t,e,s,i){this.key=t,this.value=e,this.parent=s,this.container=i,this.id=Pt(),this.async=!1,this.resolved=!1,this.constructed=!1,this.resolve=()=>{this.resolved=!0,this.constructed=!0;const r=this.value(this.parent,this.container);return Ct(this.container,this.key,this.value),r}}}class kt{constructor(t,e,s){this.owner=t,this.name=e,this.parent=s,m(this).resolvers=new Map,m(this).touchQueue=new Map,m(this).children=[]}delete(t){const e=m(this).resolvers,s=Array.from(e.values()).find(i=>i.id===t);return s?(m(this).touchQueue.delete(s.key),Promise.resolve(e.delete(s.key))):this.parent?this.parent.delete(t):Promise.resolve(!1)}clear(){const t=m(this).resolvers,e=Array.from(t.values());return Promise.all(e.map(s=>{if(s.constructed)return Promise.resolve(s.resolve()).then(i=>{if(i!==null&&typeof i=="object"&&typeof i.dispose=="function")return i.dispose.call(i,this,s)})})).then(()=>{e.forEach(s=>this.delete(s.id)),m(this).children.forEach(s=>s.clear())})}detach(){if(this.parent){const t=m(this.parent).children,e=t.indexOf(this);e>-1&&(t.splice(e,1),delete this.parent)}}touch(t,e){const s=m(this).resolvers.get(t);if(s&&s.constructed)Promise.resolve(s.resolve()).then(i=>{e(i,this)});else{const i=m(this).touchQueue;let r=i.get(t);r||(r=[],i.set(t,r)),r.push(e)}return this.parent&&!s?this.parent.touch(t,e):Promise.resolve()}registerAsync(t,e){const s=m(this).resolvers.get(t);s&&!s.async&&process.env.NODE_ENV!=="production"&&v(this).warn(`Mismatching resolver type. You are registering an async resolver with a key ('${t}') previously used by a non-async resolver.`);const i=new Ne(t,e,s,this);return m(this).resolvers.set(t,i),i.id}registerFactory(t,e){const s=m(this).resolvers.get(t);s&&s.async&&process.env.NODE_ENV!=="production"&&v(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${t}') previously used by an async resolver.`);const i=new Me(t,e,s,this);return m(this).resolvers.set(t,i),i.id}register(t,e){const s=m(this).resolvers.get(t);s&&s.async&&process.env.NODE_ENV!=="production"&&v(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${t}') previously used by an async resolver.`);const i=new Te(t,e,s,this);return m(this).resolvers.set(t,i),i.id}get(t){const e=m(this).resolvers.get(t);if(e)return e.async&&process.env.NODE_ENV!=="production"&&v(this).warn(`You are retrieving an async value (with key '${t}') by the non-async function 'container.get(key)'. This will not be supported in future versions. Use 'container.getAsync(key) instead.'`),e.resolve();if(this.parent)return this.parent.get(t)}getAsync(t){const e=m(this).resolvers.get(t);if(e){if(!e.async)throw process.env.NODE_ENV!=="production"&&v(this).warn(`You are retrieving a non-async value (with key '${t}') by the async function 'container.getAsync(key)'.Use 'container.get(key) instead.'`),"Mismatching resolver type";return e.resolve()}return this.parent?this.parent.getAsync(t):Promise.resolve(void 0)}getMany(...t){const e={};return t.forEach(s=>e[s]=this.get(s)),e}getManyAsync(...t){const e={};return Promise.all(t.map(s=>this.getAsync(s).then(i=>e[s]=i))).then(()=>e)}createChild(t,e){const s=new kt(t,e,this);return m(this).children.push(s),s}}let zt=class{constructor(t,e,s=!1,i=!1){this.type=t,this.target=e,this.cancelable=!!s,this.bubbles=!!i,this.defaultPrevented=!1}preventDefault(){this.cancelable&&(this.defaultPrevented=!0)}};const b=R(),Dt=(n,t)=>[].concat(b(n).listenerLookup.get(t.toLowerCase())||[],b(n).listenerLookup.get("*")||[]),It=(n,t,e,s)=>{let i,r;return t instanceof zt?(i=t,r=t.type):(i=new zt(t,n.target,!!e.cancelable,!!e.bubbles),r=t),{event:i,type:r,async:s}};let Ue=class he{constructor(t,e){this.target=t,this.parent=e,b(this).listenerLookup=new Map,b(this).children=[]}clear(){b(this).listenerLookup.clear(),b(this).children.forEach(t=>t.clear())}detach(){if(this.parent){const t=b(this.parent).children,e=t.indexOf(this);e>-1&&t.splice(e,1)}}subscribe(t,e,s){const i=b(this).listenerLookup,r=t.toLowerCase();return i.has(r)||i.set(r,[]),i.get(r).push(e),()=>this.unsubscribe(t,e)}subscribeOnce(t,e){const s=this.subscribe(t,(i,r)=>(s(),e(i,r)))}unsubscribe(t,e){const s=b(this).listenerLookup.get(t.toLowerCase());if(s){const i=s.indexOf(e);i>-1&&s.splice(i,1)}}dispatchAsync(t,e,s={}){const{event:i,type:r}=It(this,t,s,!0),o=Dt(this,r);let a=0;const c=o.length;let l=Promise.resolve();for(a=0;a<c;a++)(h=>{l=l.then(p=>p?Promise.resolve(!0):Promise.resolve(h(i,e)).then(()=>i.defaultPrevented))})(o[a]);return l.then(h=>!h&&i.bubbles&&this.parent?this.parent.dispatchAsync(i,e):h)}dispatch(t,e,s={}){const{event:i,type:r}=It(this,t,s,!1),o=Dt(this,r);let a=0;const c=o.length;let l=!1;for(a=0;a<c;a++)if(o[a](i,e),i.defaultPrevented){l=!0;break}return!l&&i.bubbles&&this.parent&&(l=this.parent.dispatch(i,e)),l}createChild(t){const e=new he(t,this);return b(this).children.push(e),e}};const X=(n,t,e)=>{const s=n.get("$plugins").map(i=>{try{return i.invoke(t,e)}catch(r){v(n).error("An error occured when invoking a plugin.",i,r)}});return Promise.all(s)};let He=class{constructor(t){this.widget=t.get("$widget"),this.events=this.widget.events,this.container=this.widget.container,this.initialized=null,this.activated=null,this.initialize=this.initialize.bind(this),this.activate=this.activate.bind(this),this.deactivate=this.deactivate.bind(this),this.invoke=this.invoke.bind(this),this.createInstance()}createInstance(){if(!this.widget.container.get("$instance")){const t=this.widget.container.get("$types"),e=this.widget.container.get("$type");!e&&v(this).error("Unable to create widget. No type is specified.");const s=t[e];!s&&v(this).error(`Unable to create widget. Type '${e}' is not registered.`),this.widget.events.dispatch("widget:create-instance",{},{bubbles:!0});try{this.widget.container.register("$instance",new s(this.container))}catch(i){v(this).error("Unable to create widget type.",i)}this.widget.events.dispatch("widget:instance-created",{},{bubbles:!0})}}initialize(t){return this.initialized=this.initialized||(()=>{const e=this.container.get("$instance"),s=e.initialize||(()=>{});return this.initialized=Promise.resolve(s.call(e,t)).then(()=>X(this.container,"initialize",t)).then(()=>{})})()}activate(t){return(this.initialized||this.initialize()).then(()=>{this.activated=this.activated||(()=>X(this.container,"activate").then(()=>{const e=this.container.get("$instance");return this.activated=e.activate(t)}))()})}deactivate(){const t=this.container.get("$instance"),e=t.deactivate||(()=>{});return X(this.container,"deactivate").then(()=>Promise.resolve(e.call(t))).then(()=>{this.initialized=null,this.activated=null}).then(()=>{})}invoke(t,...e){return X(this.container,"invoke",{command:t,args:e}).then(()=>{const s=this.container.get("$instance");if(s[t])return s[t].apply(s,e);const i=s.invoke;if(i)return i.call(s,t,...e)})}};const U=(n,t)=>{if(!t)return!0;if(typeof t=="string"){const e=t.split(",");for(let s=0,i=e.length;s<i;s++){const r=e[s].trim();if(r===n||r==="*")return!0}}return t instanceof Array?t.indexOf(n)>-1:!1},Le=(n,t)=>{if(typeof t=="function")return t(n);const e=typeof t=="string"?ze(t):t;return!(!U(n.implementation.tenant||"",e.tenant||"")||!U(n.implementation.name,e.implementation||"")||!U(n.name,e.widget||"")||!U(n.container.get("$type"),e.type||""))},Re=(n,t)=>{if(typeof t=="function")return t(n);const e=typeof t=="string"?De(t):t;return!(!U(n.tenant||"",e.tenant||"")||!U(n.name,e.implementation||""))},le=n=>t=>Le(t,n),je=n=>t=>Re(t,n),A=n=>n instanceof Array&&n.length===1?n[0]:n,ze=n=>{const t={},e=n.split(":");return e.length===1?t.widget=A(e[0].split(",")):e.length===2?(t.implementation=A(e[0].split(",")),t.widget=A(e[1].split(","))):(t.tenant=A(e[0].split(",")),t.implementation=A(e[1].split(",")),t.widget=A(e[2].split(","))),t},De=n=>{const t={},e=n.split(":");return e.length===1?t.implementation=A(e[0].split(",")):(t.tenant=A(e[0].split(",")),t.implementation=A(e[1].split(","))),t},it=R(),Bt=(n,t,e)=>n.filter(s=>s.stage===t&&le(s.selector)(e));function Ie(n){const t=n.container.get("$environment");let e=it(t).configurationCache;e&&(e=e.filter(s=>s[0]!==n),it(t).configurationCache=e)}var nt=(n=>(n.Implementation="implementation",n.Widget="widget",n))(nt||{}),E=(n=>(n.Pre="pre",n.Post="post",n))(E||{});const pe=(n,t,e)=>(Object.keys(t).forEach(s=>{const i=t[s];if(typeof i=="function"){const r=i();typeof r.defaultArgs<"u"&&e(r,...r.defaultArgs),n[s]=(...o)=>{const a=Object.assign({},r,{handlerResolver:r.handlerResolver.bind({})});return e(a,...o),n}}else n[s]=pe({},i,e)}),n),Be=(n,t)=>{switch(t){case"implementation":return n.implementation;case"widget":return n}},Vt=(n,t,e,s)=>(s.forEach(i=>{pe(n,i,(r,...o)=>{const a={selector:t,stage:r.stage,handler:c=>{const l=Be(c,r.scope),h={container:l.container,events:l.events},p=r.handlerResolver,u=p(h);let d=it(e.environment).configurationCache;return d||(d=it(e.environment).configurationCache=[]),d.find(f=>f.indexOf(l)>-1&&f.indexOf(p)>-1)?Promise.resolve():(d.push([l,p]),Promise.resolve(u(...o)))}};e.instructions.push(a)})}),n);function Ve(n,t){function e(s){return Vt({},s,n,t)}return Vt(e,"*",n,t)}const We=(n,t,e,s)=>{try{const i=new t(e,s);return{name:n,invoke:(r,o)=>{let a;return i[r]&&(a=i[r].call(i,o)),Promise.resolve(a)},getInstance:()=>i}}catch(i){if(i.message&&i.message.indexOf("is not a constructor")>=0)return{name:n,invoke:r=>{let o;return r==="initialize"&&(o=t(e,s)),Promise.resolve(o)},getInstance:()=>t};throw i}};function Wt(n,t){return typeof n>"u"?t:n}let qe=class{constructor(t={}){this.part=t}createCommand(t,e,s){let i;typeof e=="function"?i={scope:nt.Widget,stage:E.Post,defaultArgs:void 0,handlerResolver:e}:i={scope:Wt(e.scope,nt.Widget),stage:Wt(e.stage,E.Post),defaultArgs:e.defaultArgs,handlerResolver:s};let r=this.part;const o=t.split(".");return o.forEach((a,c)=>{c===o.length-1?r[a]||(r[a]=()=>i):r=this.part[a]=this.part[a]||{}}),this}get(){return this.part}};const de=n=>{const t=new qe({});return n(t),t.get()},Fe=de(n=>{n.createCommand("types.register",{scope:nt.Implementation,stage:E.Pre},t=>(e,s)=>{t.container.get("$types")[e]=s}).createCommand("type",{stage:E.Pre},t=>e=>{t.container.register("$type",e)}).createCommand("settings",{stage:E.Pre,defaultArgs:[null]},t=>e=>{t.events.dispatch("settings:change",e,{bubbles:!0}),t.container.register("$settings",e)}).createCommand("plugin",{stage:E.Pre},t=>(e,s,i)=>{const{container:r}=t;let o=null,a=e,c=s;typeof e=="string"&&(o=e,a=s,c=i);const l=h=>{const{transformPluginSettings:p}=t.container.get("$environmentOptions"),u=p?p(c||{},o,t.container,a):s;try{const d=We(o,a,r,u);r.get("$plugins").push(d),h&&d.invoke("initialize",null)}catch(d){v(t).warn("Error when initializing plugin",d)}};t.container.get("$instance")?l(!0):t.events.subscribeOnce("widget:instance-created",()=>l(!1))}).createCommand("container.register",t=>(e,s)=>{t.container.register(e,s)}).createCommand("container.registerAsync",t=>(e,s)=>{t.container.registerAsync(e,s)}).createCommand("container.registerFactory",t=>(e,s)=>{t.container.registerFactory(e,s)}).createCommand("container.touch",t=>(e,s)=>{t.container.touch(e,s)}).createCommand("csp",{},t=>e=>{t.container.register("csp",e)})}),Ye=Fe;function Qe(n,t,e=[]){const s=[Ye].concat(e),i=Ve(t,s);n(i,t)}let Ze=class{constructor(){this.tasks=[],this.current=Promise.resolve(),this.next=this.next.bind(this)}add(t,e,s,i){this.tasks.push({task:t,resolve:e,reject:s,done:i}),this.next()}next(){this.current=this.current.then(()=>{const t=this.tasks.shift();if(t){const e=Promise.resolve(t.task());return Promise.resolve(e).then(this.next).then(()=>e.then(s=>{t.done(),t.resolve(s)})).catch(s=>(t.done(),t.reject(s),this.next()))}return Promise.resolve()})}};const tt=new WeakMap;function Je(n){return tt.has(n)||tt.set(n,new Ze),t=>new Promise((e,s)=>{const i=tt.get(n);i.add(t,e,s,()=>{i.tasks.length||tt.delete(n)})})}const qt=n=>typeof n<"u",D=(n,t)=>{n.events.dispatch("widget:state-change",{state:t},{bubbles:!0}),n.state=t,n.events.dispatch("widget:state-changed",{},{bubbles:!0})},$=R(),Ke=n=>{const{container:t,events:e}=n;t.get("$controller")||(t.register("$controller",new He(t)),e.dispatch("widget:controller-created",{},{bubbles:!0}))};class Ge{constructor(t,e,s){this.state="deactivated",this.name=t,this.implementation=e,this.container=e.container.createChild(this,t),this.events=e.events.createChild(this),$(this).subscriptions=[],s&&e.configure(i=>{const r=i(t);qt(s.type)&&r.type(s.type),qt(s.settings)&&r.settings(s.settings),s.plugins&&Object.keys(s.plugins).forEach(o=>{var a;const c=(a=s.plugins)==null?void 0:a[o];r.plugin(o,c)})}),this.load=this.load.bind(this),this.activate=this.activate.bind(this),this.invoke=this.invoke.bind(this),this.deactivate=this.deactivate.bind(this)}load(){return Je(this)(()=>{$(this).deactivatedPromise=null;const t=this.state==="deactivated";t&&(D(this,"activating"),this.container.register("$widget",this),this.container.register("$controller",null),this.container.register("$plugins",[]),this.container.register("$type",null),this.container.register("$instance",null)),D(this,"loading");const e=this.implementation.instructions,s=Bt(e,E.Pre,this);return Promise.all(s.map(i=>i.handler(this))).then(()=>{Ke(this);const i=Bt(e,E.Post,this);return Promise.all(i.map(r=>r.handler(this))).then(()=>{t&&this.container.get("$controller").initialize()})}).then(()=>(D(this,"activated"),this))})}activate(t){$(this).subscriptions.push(this.implementation.events.subscribe("implementation:configured",()=>{["activated","activating","loading"].indexOf(this.state)>-1&&this.load()}));const e=$(this).activatedPromise;return e?(process.env.NODE_ENV!=="production"&&v(this).warn(`Widget '${this.name}' has already been activated. The passed arguments for this activation will be discarded.`,t),e):$(this).activatedPromise=this.load().then(()=>this.container.get("$controller").activate(t))}invoke(t,...e){const s=$(this).activatedPromise,i=(r,...o)=>s.then(this.load).then(()=>this.container.get("$controller").invoke(r,...o));return s?i(t,...e):(process.env.NODE_ENV!=="production"&&v(this).warn("You are invoking a command on a deactivated widget. The invocation will be queued until the widget is activated.",this),new Promise(r=>{const o=this.events.subscribe("widget:state-changed",()=>{this.state==="activated"&&(o(),r(i(t,...e)))})}))}deactivate(){return $(this).deactivatedPromise||(this.state==="deactivated"?Promise.resolve():(D(this,"deactivating"),$(this).deactivatedPromise=this.container.get("$controller").deactivate().then(()=>($(this).activatedPromise=null,$(this).subscriptions.forEach(e=>e()),$(this).subscriptions=[],this.container.clear().then(()=>{this.events.clear(),Ie(this),D(this,"deactivated")})))))}}const Ft=R();class Xe{constructor(t,e,s=[]){this.instructions=[],this.widgets=new Map,this.name=t.name,this.tenant=t.tenant,this.environment=e,this.container=e.container.createChild(this,this.name),this.events=e.events.createChild(this),this.container.register("$types",{}),Ft(this).configurationApiExtensions=s}load(){const t=Array.from(this.widgets.values());return Promise.all(t.map(e=>e.load())).then(()=>t)}configure(t){return Qe(t,this,Ft(this).configurationApiExtensions),this.events.dispatch("implementation:configured",{implementation:this},{bubbles:!0}),this}createWidget(t,e){const s=new Ge(t,this,e);return this.widgets.set(s.name,s),s}}function ts(n,t,e){const s=new Xe(n,t,e);return n.widgets&&Object.keys(n.widgets).forEach(i=>{var r;const o=(r=n.widgets)==null?void 0:r[i];s.createWidget(i,o)}),s}let Yt=class ue{constructor(t,e){this.selectorFactory=e,typeof t=="function"?this.resolver=t:this.resolver=()=>t}append(t){const e=typeof t=="function"?t:()=>t;return new ue(()=>this.all().concat(e()),this.selectorFactory)}all(){return this.resolver().concat([])}query(t){return this.all().filter(this.selectorFactory(t))}find(t){const e=this.query(t);if(e.length)return e[0]}};const Ot="#____version____#",yt=R(),es=n=>n.tenant?`${n.name}:${n.tenant}`:n.name,ge=class{constructor(t,e=[],s={}){this.widgets=new Yt(()=>{let i=[];return this.implementations.all().forEach(r=>{i=i.concat(Array.from(r.widgets.values()))}),i},le),this.implementations=new Yt([],je),this.name=t,this.container=new kt(this,t),this.events=new Ue(this),this.container.register("$version",Ot),this.container.register("$environment",this),this.container.register("$environmentOptions",s),yt(this).configurationApiExtensions=e}createImplementation(t){const e=es(t);let s=this.implementations.find(e);if(s)return process.env.NODE_ENV!=="production"&&v(s).warn(`Implementation "${e}" already exist on current environment.`),s;const i=yt(this).configurationApiExtensions;return s=ts(t,this,i),this.implementations=this.implementations.append([s]),this.events.dispatch("implementation:created",{implementation:s}),s}patch(t={}){const{name:e,configurationApiExtensions:s}=t;typeof e<"u"&&e!==null&&(this.name=e),s&&s.forEach(i=>{yt(this).configurationApiExtensions.push(i)})}static create(t={}){return new ge(t.name||"",t.configurationApiExtensions,t.options)}};let me=ge;me.version=Ot;const at=(n,t,...e)=>typeof t=="string"?n(`[humany] ${t}`,...e):n(t,...e),B=class{constructor(){this.keys=[],this.log=(t,...e)=>this.lookup(t,()=>B.log(...e)),this.warn=(t,...e)=>this.lookup(t,()=>B.warn(...e)),this.error=(t,...e)=>this.lookup(t,()=>B.error(...e)),this.info=(t,...e)=>this.lookup(t,()=>B.info(...e))}lookup(t,e){this.keys.indexOf(t)===-1&&(this.keys.push(t),e())}};let J=B;J.log=(...n)=>at(console.log,...n);J.warn=(...n)=>at(console.warn,...n);J.error=(...n)=>at(console.error,...n);J.info=(...n)=>at(console.info,...n);const x=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);function ct(){return x()+x()+"-"+x()+"-"+x()+"-"+x()+"-"+x()+x()+x()}var ss=Object.defineProperty,is=Object.defineProperties,ns=Object.getOwnPropertyDescriptors,Qt=Object.getOwnPropertySymbols,rs=Object.prototype.hasOwnProperty,os=Object.prototype.propertyIsEnumerable,Zt=(n,t,e)=>t in n?ss(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,xt=(n,t)=>{for(var e in t||(t={}))rs.call(t,e)&&Zt(n,e,t[e]);if(Qt)for(var e of Qt(t))os.call(t,e)&&Zt(n,e,t[e]);return n},as=(n,t)=>is(n,ns(t));const cs=n=>{const t=[];return[(e,s)=>{t.push(n.subscribe(e,s))},()=>{t.forEach(e=>{e()})}]};let ht=class{constructor(t,e=[]){this.platform=t,this.rules=e}match(t){return this.rules.every(e=>!(e.id&&e.id!==t.id||e.type&&e.type!==t.type))}ofType(t){return this.rules.push({type:t}),this}withId(t){return this.rules.push({id:t}),this}select(){return new hs(this.platform,this)}},fe=class{constructor(t,e,s){this.platform=t,this.node=e,this.actions=new St(t,new ht(t).withId(e.id),s);const[i,r]=cs(this.platform.events);this.subscribe=i,this.unsubscribe=r}properties(t){return t&&this.node.touchProperties(e=>t(e)),this.node.attributes.properties}context(t){return t&&this.subscribe("components:context-changed",(e,{node:s})=>{s===this.node&&t(this.node.attributes.context)}),this.node.attributes.context}layout(t){return t&&this.subscribe("components:layout-changed",(e,{node:s})=>{s===this.node&&t(this.node.attributes.layout)}),this.node.attributes.layout}writeProperties(t,e){this.node.writeProperties(t,e)}writeContext(t,e){this.node.writeProperties(t,e)}writeLayout(t,e){this.node.writeLayout(t,e)}dispose(){this.unsubscribe(),this.actions.dispose()}};class hs{constructor(t,e,s=!0){this.platform=t,this.target=e,this.clearOnDispose=s,this.removes=[],this.actions=new St(this.platform,this.target)}writeProperties(t,e){this.removes.push(this.platform.write({options:e,attributes:{properties:t},target:this.target,removable:this.clearOnDispose}))}writeContext(t,e){this.removes.push(this.platform.write({options:e,attributes:{context:t},target:this.target,removable:this.clearOnDispose}))}writeLayout(t,e){this.removes.push(this.platform.write({options:e,attributes:{layout:t},target:this.target,removable:this.clearOnDispose}))}dispose(){this.removes.forEach(t=>{t()}),this.actions.dispose()}}const ls=(n,t,e)=>{const s=n.concat(),i=(r,o,a)=>{let c=!0;if(s.length){const l=s.shift(),h=(p,u)=>(c=!1,i(p,Object.assign({},o,u),a));return Promise.resolve(l(r,h,a)).then(p=>as(xt({},p),{cancelled:c}))}return Promise.resolve({data:r,cancelled:!1,options:o})};return i(t,{},e)};let St=class{constructor(t,e,s){this.platform=t,this.target=e,this.ns=s,this.subscriptions=[],this.create=this.create.bind(this)}create(t,e=()=>{}){const s={key:t,fn:e,target:this.target,ns:this.ns};this.platform.actionsState.handlers.push(s);const i=()=>{const r=this.platform.actionsState.handlers.indexOf(s);r>-1&&this.platform.actionsState.handlers.splice(r,1)};return this.subscriptions.push(i),i}dispatch(t,e){const s=this.platform.nodes.all.concat(this.platform.nodes.detached),i={},r=this.platform.actionsState.handlers.filter(o=>o.key===t&&(!o.ns||!this.ns||o.ns===this.ns));return Promise.all(r.map(o=>{const a=s.filter(l=>o.target.match(l)&&this.target.match(l)),c=this.platform.actionsState.watchers.filter(l=>l.key===t&&(!l.ns||!this.ns||l.ns===this.ns)&&a.some(h=>l.target.match(h))).map(l=>l.fn);return Promise.all(a.map(l=>{const h=new fe(this.platform,l,this.ns);return ls(c,e,h).then(p=>{const{data:u={},options:d,cancelled:f}=p;return Promise.resolve(f?{}:o.fn(u,d,h)).then(z=>{i[l.id]=z})})}))})).then(()=>i)}watch(t,e){let s=t,i=this.ns;const r=t.split(".");r.length>1&&(i=r[0],s=r.splice(1).join("."));const o={fn:e,target:this.target,key:s,ns:i};this.platform.actionsState.watchers.push(o);const a=()=>{const c=this.platform.actionsState.watchers.indexOf(o);c>-1&&this.platform.actionsState.watchers.splice(c,1)};return this.subscriptions.push(a),a}dispose(){this.subscriptions.forEach(t=>t())}};de(n=>{n.createCommand("components",t=>e=>{t.events.subscribeOnce("components:platform-created",(s,{platform:i})=>{e.handlers&&e.handlers.forEach(([r,o])=>{i.addComponentHandler(r,o)})})})});let Jt=class{constructor(t,e){this.events=t,this.tags=[],this.children={},this.changesets=[],this.mountCount=0,this.id=ct(),this.type=e,this.attributes={context:{},properties:{},layout:{},tags:[]},this.writeLayout({size:"full",indent:0})}mount(t,e){let s=t.get("mounted-nodes");return s||(s=new Map,t.register("mounted-nodes",s)),s.has(this)?(process.env.NODE_ENV!=="production"&&J.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(t,e="default"){if(t.parent){if(t.parent===this)return;t.parent.removeChild(t)}t.parent=this,this.children[e]||(this.children[e]=[]),this.children[e].push(t),this.events.dispatch("components:node-appended",{node:t})}prependChild(t,e="default"){if(t.parent){if(t.parent===this)return;t.parent.removeChild(t)}t.parent=this,this.children[e]||(this.children[e]=[]),this.children[e].unshift(t),this.events.dispatch("components:node-appended",{node:t})}touchProperties(t,e={},s){const i=[{properties:t},e];return this.changesets.push(i),this.events.dispatch("components:set-properties",{node:this}),()=>{if(s){const r=this.changesets.indexOf(i);r>-1&&(this.changesets.splice(r,1),this.events.dispatch("components:set-properties",{node:this}))}}}writeProperties(t,e={},s){const i=[{properties:t},e];return this.changesets.push(i),this.events.dispatch("components:set-properties",{node:this}),()=>{if(s){const r=this.changesets.indexOf(i);r>-1&&(this.changesets.splice(r,1),this.events.dispatch("components:set-properties",{node:this}))}}}writeLayout(t,e={},s){const i=[{layout:t},e];return this.changesets.push(i),this.events.dispatch("components:set-layout",{node:this}),()=>{if(!s)return;const r=this.changesets.indexOf(i);r>-1&&(this.changesets.splice(r,1),this.events.dispatch("components:set-layout",{node:this}))}}writeContext(t,e={},s){const i=[{context:t},e];return this.changesets.push(i),this.events.dispatch("components:set-context",{node:this}),()=>{if(!s)return;const r=this.changesets.indexOf(i);r>-1&&(this.changesets.splice(r,1),this.events.dispatch("components:set-context",{node:this}))}}getChildren(t="default"){const e=this.children[t]||[];return e.reduce((s,i,r)=>{const{order:o=r}=i.attributes.layout;return s[o]?s.splice(o,0,i):s[o]=i,s},Array(e.length))}remove(){this.parent&&this.parent.removeChild(this)}removeChild(t){Object.keys(this.children).forEach(e=>{const s=this.children[e],i=s.indexOf(t);i>-1&&(s.splice(i,1),this.events.dispatch("components:node-removed",{node:t,parentNode:this}))}),delete t.parent}};const ve=(n,t,e)=>{for(let s=0,i=n.length;s<i&&e(n[s])!==!0;s++){const r=t[n[s].id]||"default",o=n[s].getChildren(r);ve(o,t,e)}},Nt=(n,t,e)=>{if(e(n)!==!0){const s=t[n.id]||"default",i=n.children[s];ve(i,t,e)}},$t=(n,t)=>{const e=[];return Nt(n,t,s=>{e.push(s)}),e},ps=(n,t,e)=>{let s;return Nt(n,t,i=>{if(e(i))return s=i,!0}),s};class ds{constructor(t,e,s){this.root=t,this.switches=e,this.all=[],this.visible=[],this.detached=[],s.subscribe("components:node-appended",(i,r)=>{this.all.push(r.node),this.visible=$t(t,e)}),s.subscribe("components:node-removed",(i,r)=>{let o=this.all.indexOf(r.node);o>-1&&this.all.splice(o,1),o=this.visible.indexOf(r.node),o>-1&&this.visible.splice(o,1),this.visible=$t(t,e)}),s.subscribe("components:node-switched",(i,r)=>{this.visible=$t(t,e)})}query(t={}){const e=[];return Nt(this.root,this.switches,s=>{Object.keys(t).every(i=>t[i]===s[i])&&e.push(s)}),e}get(t){return ps(this.root,this.switches,e=>e.id===t)||this.detached.find(e=>e.id===t)}}class us{constructor(){this.handlers=new Map}add(t,e){this.handlers.set(t,e)}get(t){return this.handlers.get(t)}}const gs=n=>{let t=n,e=0;for(;t.parent;)e=e+1,t=t.parent;return e},ms=n=>n.map(([t,e])=>[gs(t),t,e]).sort(([t],[e])=>t-e).map(([,t,e])=>[t,e]),bt=n=>n instanceof Date?!1:n&&typeof n=="object"&&!Array.isArray(n),_=(n,...t)=>{if(!t.length)return n;const e=t.shift();if(bt(n)&&bt(e))for(const s in e)bt(e[s])?(n[s]||Object.assign(n,{[s]:{}}),_(n[s],e[s])):Object.assign(n,{[s]:e[s]});return _(n,...t)},fs=(n,t)=>!n||n==="all"?!0:n.some(e=>t.indexOf(e)>-1),vs=(n,t)=>{let e=[],s=[],i;const r=()=>{process.env.NODE_ENV!=="production"&&console.time("state-processor.flush");const a=new Map,c=ms(e.map((h,p)=>[h,s[p]])),l=(h,p)=>{var u;const d=a.get(h)||{},f=p.context&&!d.context,z=p.properties&&!d.properties,ut=p.layout&&!d.layout;a.set(h,{context:d.context||f,properties:d.properties||z,layout:d.layout||ut}),z&&(h.attributes.properties={}),ut&&(h.attributes.layout={}),f&&(h.attributes.context=_({},(u=h.parent)==null?void 0:u.attributes.context));const Ht=[],Lt=[],Rt=[];if(h.changesets.forEach(w=>{const[y,gt]=w;fs(gt.breakpoints,n.breakpoints)&&(z&&(typeof y.properties=="function"?Ht.push(y.properties):_(h.attributes.properties,y.properties)),ut&&(typeof y.layout=="function"?Lt.push(y.layout):_(h.attributes.layout,y.layout)),f&&(typeof y.context=="function"?Rt.push(y.context):_(h.attributes.context,y.context)))}),Ht.forEach(w=>{_(h.attributes.properties,w(h.attributes.properties))}),Lt.forEach(w=>{_(h.attributes.layout,w(h.attributes.layout))}),Rt.forEach(w=>{_(h.attributes.context,w(h.attributes.context))}),f||p.recursive){const w=n.getBranch(h),y=p.recursive?p:{context:!!f};h.getChildren(w).forEach(gt=>{l(gt,y)})}};process.env.NODE_ENV!=="production"&&console.timeEnd("state-processor.flush"),c.forEach(([h,p])=>{l(h,p)}),e=[],s=[],t(a)},o=()=>{clearTimeout(i),i=setTimeout(r,0)};return(a,c)=>{const l=e.indexOf(a);if(l>-1){const h=s[l];return c.context&&(h.context=!0),c.properties&&(h.properties=!0),c.layout&&(h.layout=!0),c.recursive&&(h.recursive=!0),o()}return e.push(a),s.push(c),o()}};class ye{constructor(t,e={}){this.providers=e,this.breakpoints=[],this.actionsState={handlers:[],watchers:[]},this.switches={},this.changesets=[],this.subscriptions=[],this.customComponentHandler=new us,this.events=t.events.createChild(this);const s=new Jt(this.events,"root");s.name=`root-${t.name}`,this.nodes=new ds(s,this.switches,this.events);const i=this.processNode=vs(this,r=>{const o=Array.from(r.keys());process.env.NODE_ENV!=="production"&&console.info(`STATE PROCESSOR: ${o.length} node(s) processed:
|
|
2
|
-
${o.map(a=>`${a.name||"<no name>"} (${a.id})
|
|
3
|
-
`)}`),o.forEach(a=>{const c=r.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(e).map(r=>e[r].load(this))),this.subscriptions.push(this.events.subscribe("components:node-appended",(r,o)=>{const{node:a}=o;this.changesets.forEach(c=>{const{changeset:l,target:h,removes:p}=c,[u,d]=l;h.match(o.node)&&(u.properties&&p.push(a.writeProperties(u.properties,d)),u.context&&p.push(a.writeContext(u.context,d)),u.layout&&p.push(a.writeLayout(u.layout,d)))})})),this.subscriptions.push(this.events.subscribe("components:node-appended",(r,o)=>{i(o.node,{properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:set-properties",(r,o)=>{i(o.node,{properties:!0})})),this.subscriptions.push(this.events.subscribe("components:set-context",(r,o)=>{i(o.node,{properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:set-indent",(r,o)=>{i(o.node,{layout:!0})})),this.subscriptions.push(this.events.subscribe("components:set-layout",(r,o)=>{i(o.node,{layout:!0})})),this.subscriptions.push(this.events.subscribe("components:node-switched",(r,{node:o,branch:a})=>{i(o,{layout:!0,recursive:!0,properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:node-removed",(r,{parentNode:o})=>{i(o,{properties:!0})})),this.events.parent&&this.events.parent.dispatch("components:platform-created",{platform:this})}static getInstance(t){return t.getAsync("components")}addBreakpoint(t){this.breakpoints.indexOf(t)===-1&&(this.breakpoints.push(t),this.processNode(this.nodes.root,{context:!0,properties:!0,layout:!0,recursive:!0}))}removeBreakpoint(t){const e=this.breakpoints.indexOf(t);e>-1&&(this.breakpoints.splice(e,1),this.processNode(this.nodes.root,{context:!0,properties:!0,layout:!0,recursive:!0}))}setSwitch(t,e){this.switches[t.id]=e,this.events.dispatch("components:node-switched",{node:t,branch:e})}getBranch(t){return this.switches[t.id]}createNode(t,e={}){const s=new Jt(this.events,t);return e.detached&&this.nodes.detached.push(s),s}components(){return new ht(this)}actions(t,e){return new St(this,t,e)}write(t){const{provider:e,target:s,attributes:i,options:r={},removable:o}=t,a=t.key||ct(),c={changeset:[i,r],target:s,removes:[]};if(e){const l=this.providers[e];l.write(a,s,i,r),c.removes.push(()=>{l.remove(a)})}return this.changesets.push(c),this.nodes.all.forEach(l=>{if(s.match(l)){let h=()=>{};i.properties&&(h=l.writeProperties(i.properties,r,o)),i.context&&(h=l.writeContext(i.context,r,o)),i.layout&&(h=l.writeContext(i.layout,r,o)),c.removes.push(h)}}),()=>{if(o){c.removes.forEach(h=>h());const l=this.changesets.indexOf(c);l>-1&&this.changesets.splice(l,1)}}}addComponentHandler(t,e){this.customComponentHandler.add(t,e)}getComponentHandler(t){return this.customComponentHandler.get(t)}dispose(){this.subscriptions.forEach(t=>t())}}const ys=(n,t)=>({id:n.id,type:n.type,name:n.name,branch:t||"default"}),$s=(n,t,e,s=ct(),i={})=>n.getAsync("components").then(r=>{let o;if(typeof t=="string"){const l=new ht(r);l.ofType(t),o=l}else o=t;const a={},c=l=>{const h=a[l.id];return h?Promise.resolve(h.controller):ye.getInstance(n).then(p=>new fe(p,l,s))};r.events.subscribe("components:node-enter",(l,{node:h})=>{o.match(h)&&c(h).then(p=>{Promise.resolve(e(p)).then(u=>{a[h.id]={dispose:u,controller:p}})})}),r.events.subscribe("components:node-exit",(l,{node:h})=>{const p=a[h.id];p&&(p.dispose&&p.dispose(),i.reuseController||(p.controller.dispose(),delete a[h.id]))})}),bs="#____version____#",$e=class extends me{constructor(t,e=[]){super(t,e,{transformPluginSettings:(s,i,r)=>{const o=r.get("$settings"),a=o.plugins&&i?o.plugins[i]||{}:{};return xt(xt({},a),s)}})}createImplementation(t){const e=super.createImplementation(t);return e.bindings=t.bindings,e}navigate(t,e,s){this.widgets.query(t).forEach(i=>i.invoke("navigate",{route:e,params:s}))}static create(t={}){const e=[Se].concat(t.configurationApiExtensions||[]);return new $e("humany",e)}static createFromGlobal(t,e={}){if(this.isRuntime(t))return t.patch(e),t;const s=[],i=t&&t._c;i&&i.forEach(o=>s.push(o));const r=this.create(e);return r.container.register("$runtimecfg",s),r}static isRuntime(t){return!!(t&&typeof t=="object"&&t.container&&typeof t.container.get=="function"&&t.container.get("$environment")===t&&t.container.owner===t)}};let ws=$e;ws.version=`${bs} (${Ot})`;/**
|
|
4
|
-
* @license
|
|
5
|
-
* Copyright 2019 Google LLC
|
|
6
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
7
|
-
*/const st=globalThis,Tt=st.ShadowRoot&&(st.ShadyCSS===void 0||st.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Mt=Symbol(),Kt=new WeakMap;let be=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==Mt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Tt&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=Kt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Kt.set(e,t))}return t}toString(){return this.cssText}};const _s=n=>new be(typeof n=="string"?n:n+"",void 0,Mt),we=(n,...t)=>{const e=n.length===1?n[0]:t.reduce((s,i,r)=>s+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+n[r+1],n[0]);return new be(e,n,Mt)},As=(n,t)=>{if(Tt)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=st.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,n.appendChild(s)}},Gt=Tt?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return _s(e)})(n):n;/**
|
|
8
|
-
* @license
|
|
9
|
-
* Copyright 2017 Google LLC
|
|
10
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
-
*/const{is:Es,defineProperty:xs,getOwnPropertyDescriptor:Ps,getOwnPropertyNames:Cs,getOwnPropertySymbols:ks,getPrototypeOf:Os}=Object,k=globalThis,Xt=k.trustedTypes,Ss=Xt?Xt.emptyScript:"",wt=k.reactiveElementPolyfillSupport,W=(n,t)=>n,rt={toAttribute(n,t){switch(t){case Boolean:n=n?Ss:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},Ut=(n,t)=>!Es(n,t),te={attribute:!0,type:String,converter:rt,reflect:!1,hasChanged:Ut};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),k.litPropertyMetadata??(k.litPropertyMetadata=new WeakMap);class M extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=te){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&xs(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:r}=Ps(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return i==null?void 0:i.call(this)},set(o){const a=i==null?void 0:i.call(this);r.call(this,o),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??te}static _$Ei(){if(this.hasOwnProperty(W("elementProperties")))return;const t=Os(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(W("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(W("properties"))){const e=this.properties,s=[...Cs(e),...ks(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(Gt(i))}else t!==void 0&&e.push(Gt(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$ES??(this._$ES=[])).push(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$ES)==null||e.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return As(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e){var r;const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const o=(((r=s.converter)==null?void 0:r.toAttribute)!==void 0?s.converter:rt).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){var r;const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const o=s.getPropertyOptions(i),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((r=o.converter)==null?void 0:r.fromAttribute)!==void 0?o.converter:rt;this._$Em=i,this[i]=a.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,s,i=!1,r){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??Ut)(i?r:this[t],e))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[r,o]of this._$Ep)this[r]=o;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[r,o]of i)o.wrapped!==!0||this._$AL.has(r)||this[r]===void 0||this.C(r,this[r],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$ES)==null||s.forEach(i=>{var r;return(r=i.hostUpdate)==null?void 0:r.call(i)}),this.update(e)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)==null||e.forEach(s=>{var i;return(i=s.hostUpdated)==null?void 0:i.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EO(e,this[e]))),this._$ET()}updated(t){}firstUpdated(t){}}M.elementStyles=[],M.shadowRootOptions={mode:"open"},M[W("elementProperties")]=new Map,M[W("finalized")]=new Map,wt==null||wt({ReactiveElement:M}),(k.reactiveElementVersions??(k.reactiveElementVersions=[])).push("2.0.1");/**
|
|
12
|
-
* @license
|
|
13
|
-
* Copyright 2017 Google LLC
|
|
14
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
15
|
-
*/const q=globalThis,ot=q.trustedTypes,ee=ot?ot.createPolicy("lit-html",{createHTML:n=>n}):void 0,_e="$lit$",P=`lit$${(Math.random()+"").slice(9)}$`,Ae="?"+P,Ns=`<${Ae}>`,N=document,Y=()=>N.createComment(""),Q=n=>n===null||typeof n!="object"&&typeof n!="function",Ee=Array.isArray,Ts=n=>Ee(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",_t=`[
|
|
16
|
-
\f\r]`,I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,se=/-->/g,ie=/>/g,O=RegExp(`>|${_t}(?:([^\\s"'>=/]+)(${_t}*=${_t}*(?:[^
|
|
17
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ne=/'/g,re=/"/g,xe=/^(?:script|style|textarea|title)$/i,Ms=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),V=Ms(1),T=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),oe=new WeakMap,S=N.createTreeWalker(N,129);function Pe(n,t){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return ee!==void 0?ee.createHTML(t):t}const Us=(n,t)=>{const e=n.length-1,s=[];let i,r=t===2?"<svg>":"",o=I;for(let a=0;a<e;a++){const c=n[a];let l,h,p=-1,u=0;for(;u<c.length&&(o.lastIndex=u,h=o.exec(c),h!==null);)u=o.lastIndex,o===I?h[1]==="!--"?o=se:h[1]!==void 0?o=ie:h[2]!==void 0?(xe.test(h[2])&&(i=RegExp("</"+h[2],"g")),o=O):h[3]!==void 0&&(o=O):o===O?h[0]===">"?(o=i??I,p=-1):h[1]===void 0?p=-2:(p=o.lastIndex-h[2].length,l=h[1],o=h[3]===void 0?O:h[3]==='"'?re:ne):o===re||o===ne?o=O:o===se||o===ie?o=I:(o=O,i=void 0);const d=o===O&&n[a+1].startsWith("/>")?" ":"";r+=o===I?c+Ns:p>=0?(s.push(l),c.slice(0,p)+_e+c.slice(p)+P+d):c+P+(p===-2?a:d)}return[Pe(n,r+(n[e]||"<?>")+(t===2?"</svg>":"")),s]};class Z{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let r=0,o=0;const a=t.length-1,c=this.parts,[l,h]=Us(t,e);if(this.el=Z.createElement(l,s),S.currentNode=this.el.content,e===2){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=S.nextNode())!==null&&c.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const p of i.getAttributeNames())if(p.endsWith(_e)){const u=h[o++],d=i.getAttribute(p).split(P),f=/([.?@])?(.*)/.exec(u);c.push({type:1,index:r,name:f[2],strings:d,ctor:f[1]==="."?Ls:f[1]==="?"?Rs:f[1]==="@"?js:lt}),i.removeAttribute(p)}else p.startsWith(P)&&(c.push({type:6,index:r}),i.removeAttribute(p));if(xe.test(i.tagName)){const p=i.textContent.split(P),u=p.length-1;if(u>0){i.textContent=ot?ot.emptyScript:"";for(let d=0;d<u;d++)i.append(p[d],Y()),S.nextNode(),c.push({type:2,index:++r});i.append(p[u],Y())}}}else if(i.nodeType===8)if(i.data===Ae)c.push({type:2,index:r});else{let p=-1;for(;(p=i.data.indexOf(P,p+1))!==-1;)c.push({type:7,index:r}),p+=P.length-1}r++}}static createElement(t,e){const s=N.createElement("template");return s.innerHTML=t,s}}function L(n,t,e=n,s){var o,a;if(t===T)return t;let i=s!==void 0?(o=e._$Co)==null?void 0:o[s]:e._$Cl;const r=Q(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==r&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),r===void 0?i=void 0:(i=new r(n),i._$AT(n,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=i:e._$Cl=i),i!==void 0&&(t=L(n,i._$AS(n,t.values),i,s)),t}class Hs{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=((t==null?void 0:t.creationScope)??N).importNode(e,!0);S.currentNode=i;let r=S.nextNode(),o=0,a=0,c=s[0];for(;c!==void 0;){if(o===c.index){let l;c.type===2?l=new K(r,r.nextSibling,this,t):c.type===1?l=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(l=new zs(r,this,t)),this._$AV.push(l),c=s[++a]}o!==(c==null?void 0:c.index)&&(r=S.nextNode(),o++)}return S.currentNode=N,i}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class K{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=g,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=L(this,t,e),Q(t)?t===g||t==null||t===""?(this._$AH!==g&&this._$AR(),this._$AH=g):t!==this._$AH&&t!==T&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Ts(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==g&&Q(this._$AH)?this._$AA.nextSibling.data=t:this.$(N.createTextNode(t)),this._$AH=t}g(t){var r;const{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Z.createElement(Pe(s.h,s.h[0]),this.options)),s);if(((r=this._$AH)==null?void 0:r._$AD)===i)this._$AH.p(e);else{const o=new Hs(i,this),a=o.u(this.options);o.p(e),this.$(a),this._$AH=o}}_$AC(t){let e=oe.get(t.strings);return e===void 0&&oe.set(t.strings,e=new Z(t)),e}T(t){Ee(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const r of t)i===e.length?e.push(s=new K(this.k(Y()),this.k(Y()),this,this.options)):s=e[i],s._$AI(r),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class lt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,r){this.type=1,this._$AH=g,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=g}_$AI(t,e=this,s,i){const r=this.strings;let o=!1;if(r===void 0)t=L(this,t,e,0),o=!Q(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else{const a=t;let c,l;for(t=r[0],c=0;c<r.length-1;c++)l=L(this,a[s+c],e,c),l===T&&(l=this._$AH[c]),o||(o=!Q(l)||l!==this._$AH[c]),l===g?t=g:t!==g&&(t+=(l??"")+r[c+1]),this._$AH[c]=l}o&&!i&&this.O(t)}O(t){t===g?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ls extends lt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===g?void 0:t}}class Rs extends lt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==g)}}class js extends lt{constructor(t,e,s,i,r){super(t,e,s,i,r),this.type=5}_$AI(t,e=this){if((t=L(this,t,e,0)??g)===T)return;const s=this._$AH,i=t===g&&s!==g||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==g&&(s===g||i);i&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class zs{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){L(this,t)}}const At=q.litHtmlPolyfillSupport;At==null||At(Z,K),(q.litHtmlVersions??(q.litHtmlVersions=[])).push("3.0.2");const Ds=(n,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let i=s._$litPart$;if(i===void 0){const r=(e==null?void 0:e.renderBefore)??null;s._$litPart$=i=new K(t.insertBefore(Y(),r),r,void 0,e??{})}return i._$AI(n),i};/**
|
|
18
|
-
* @license
|
|
19
|
-
* Copyright 2017 Google LLC
|
|
20
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/class H extends M{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ds(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return T}}var ae;H._$litElement$=!0,H.finalized=!0,(ae=globalThis.litElementHydrateSupport)==null||ae.call(globalThis,{LitElement:H});const Et=globalThis.litElementPolyfillSupport;Et==null||Et({LitElement:H});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.1");/**
|
|
22
|
-
* @license
|
|
23
|
-
* Copyright 2017 Google LLC
|
|
24
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/const Is={attribute:!0,type:String,converter:rt,reflect:!1,hasChanged:Ut},Bs=(n=Is,t,e)=>{const{kind:s,metadata:i}=e;let r=globalThis.litPropertyMetadata.get(i);if(r===void 0&&globalThis.litPropertyMetadata.set(i,r=new Map),r.set(e.name,n),s==="accessor"){const{name:o}=e;return{set(a){const c=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,c,n)},init(a){return a!==void 0&&this.C(o,void 0,n),a}}}if(s==="setter"){const{name:o}=e;return function(a){const c=this[o];t.call(this,a),this.requestUpdate(o,c,n)}}throw Error("Unsupported decorator location: "+s)};function pt(n){return(t,e)=>typeof e=="object"?Bs(n,t,e):((s,i,r)=>{const o=i.hasOwnProperty(r);return i.constructor.createProperty(r,o?{...s,wrapped:!0}:s),o?Object.getOwnPropertyDescriptor(i,r):void 0})(n,t,e)}/**
|
|
26
|
-
* @license
|
|
27
|
-
* Copyright 2017 Google LLC
|
|
28
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
-
*/function dt(n){return pt({...n,state:!0,attribute:!1})}/**
|
|
30
|
-
* @license
|
|
31
|
-
* Copyright 2017 Google LLC
|
|
32
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
33
|
-
*/const Vs={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ws=n=>(...t)=>({_$litDirective$:n,values:t});class qs{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
|
|
34
|
-
* @license
|
|
35
|
-
* Copyright 2018 Google LLC
|
|
36
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
-
*/const Fs=Ws(class extends qs{constructor(n){var t;if(super(n),n.type!==Vs.ATTRIBUTE||n.name!=="class"||((t=n.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(n){return" "+Object.keys(n).filter(t=>n[t]).join(" ")+" "}update(n,[t]){var s,i;if(this.it===void 0){this.it=new Set,n.strings!==void 0&&(this.st=new Set(n.strings.join(" ").split(/\s/).filter(r=>r!=="")));for(const r in t)t[r]&&!((s=this.st)!=null&&s.has(r))&&this.it.add(r);return this.render(t)}const e=n.element.classList;for(const r of this.it)r in t||(e.remove(r),this.it.delete(r));for(const r in t){const o=!!t[r];o===this.it.has(r)||(i=this.st)!=null&&i.has(r)||(o?(e.add(r),this.it.add(r)):(e.remove(r),this.it.delete(r)))}return T}}),et=(n,t,e)=>{n&&e.style.setProperty(t,n)},Ys=(n,t)=>{var e,s,i,r;et((e=n.colors)==null?void 0:e.primaryBackground,"--primary-background",t),et((s=n.colors)==null?void 0:s.textOnPrimaryBackground,"--text-on-primary-background",t),et((i=n.colors)==null?void 0:i.secondaryBackground,"--secondary-background",t),et((r=n.colors)==null?void 0:r.textOnSecondaryBackground,"--text-on-secondary-background",t)};var Qs=Object.defineProperty,Zs=Object.getOwnPropertyDescriptor,G=(n,t,e,s)=>{for(var i=s>1?void 0:s?Zs(t,e):t,r=n.length-1,o;r>=0;r--)(o=n[r])&&(i=(s?o(t,e,i):o(i))||i);return s&&i&&Qs(t,e,i),i};class j extends H{constructor(){super(...arguments),this.active=!1,this.loaded=!1}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(this.symbol),this.loaded=!0,this._applyBranding()}_toggleActive(){this.active=!this.active}_applyBranding(){var e;const t=((e=this.container)==null?void 0:e.get("$settings"))??{};t!=null&&t.branding&&Ys(t.branding,this)}async _renderSymbol(t){const e=async s=>await Promise.resolve().then(()=>require("./index-df07fc07.js")).then(r=>r[s]);if(t){const{type:s,content:i}=t;switch(s){case"Telia":{const r=await e(i);return r?V`<telia-icon
|
|
38
|
-
class="trigger-icon"
|
|
39
|
-
svg=${r.svg}
|
|
40
|
-
size="lg"
|
|
41
|
-
></telia-icon>`:g}case"FontAwesome":return V`<i class="trigger-fa-icon fa fa-${i}"></i>`;case"Uri":return V`<i
|
|
42
|
-
class="trigger-custom-icon"
|
|
43
|
-
style="background: url(${i}) no-repeat center center;background-size: contain;"
|
|
44
|
-
></i>`;default:return g}}}render(){return V`<button
|
|
45
|
-
class=${Fs({trigger:!0,active:this.active,rendered:this.loaded})}
|
|
46
|
-
@click=${this._toggleActive}
|
|
47
|
-
>
|
|
48
|
-
${this.icon}
|
|
49
|
-
<span class="trigger-close">
|
|
50
|
-
<svg
|
|
51
|
-
width="18"
|
|
52
|
-
height="9"
|
|
53
|
-
viewBox="0 0 18 9"
|
|
54
|
-
fill="none"
|
|
55
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
56
|
-
>
|
|
57
|
-
<path
|
|
58
|
-
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"
|
|
59
|
-
fill="white"
|
|
60
|
-
/>
|
|
61
|
-
</svg>
|
|
62
|
-
</span>
|
|
63
|
-
<span class="trigger-loader">
|
|
64
|
-
<svg viewBox="25 25 50 50">
|
|
65
|
-
<circle
|
|
66
|
-
cx="50"
|
|
67
|
-
cy="50"
|
|
68
|
-
r="20"
|
|
69
|
-
fill="none"
|
|
70
|
-
stroke="#000"
|
|
71
|
-
stroke-width="2"
|
|
72
|
-
stroke-miterlimit="10"
|
|
73
|
-
/>
|
|
74
|
-
</svg>
|
|
75
|
-
</span>
|
|
76
|
-
</button>`}}j.styles=[we`
|
|
77
|
-
:host {
|
|
78
|
-
--voca-rem-multiplier: 0.625;
|
|
79
|
-
display: block;
|
|
80
|
-
box-sizing: border-box;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.trigger {
|
|
84
|
-
position: fixed;
|
|
85
|
-
transform: scale(0);
|
|
86
|
-
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
|
87
|
-
bottom: 20px;
|
|
88
|
-
right: 20px;
|
|
89
|
-
z-index: 5;
|
|
90
|
-
display: flex;
|
|
91
|
-
align-items: center;
|
|
92
|
-
justify-content: center;
|
|
93
|
-
border: none;
|
|
94
|
-
line-height: 55px;
|
|
95
|
-
height: 55px;
|
|
96
|
-
width: 55px;
|
|
97
|
-
border-radius: 55px;
|
|
98
|
-
cursor: pointer;
|
|
99
|
-
background-color: var(--trigger-bg, var(--primary-background));
|
|
100
|
-
font-family: Lato;
|
|
101
|
-
text-decoration: none;
|
|
102
|
-
border: 3px dashed transparent;
|
|
103
|
-
box-sizing: border-box;
|
|
104
|
-
transition: transform 200ms ease-out;
|
|
105
|
-
}
|
|
106
|
-
.trigger:hover {
|
|
107
|
-
transform: scale(1.1) !important;
|
|
108
|
-
}
|
|
109
|
-
.trigger.rendered {
|
|
110
|
-
transform: scale(1);
|
|
111
|
-
}
|
|
112
|
-
.trigger.active .trigger-icon {
|
|
113
|
-
opacity: 0;
|
|
114
|
-
transform: rotate(-180deg) scale(0);
|
|
115
|
-
}
|
|
116
|
-
.trigger.active .trigger-close {
|
|
117
|
-
opacity: 1;
|
|
118
|
-
transform: rotate(0deg) scale(1);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.trigger-icon {
|
|
122
|
-
display: inline-block;
|
|
123
|
-
line-height: inherit;
|
|
124
|
-
text-align: center;
|
|
125
|
-
opacity: 1;
|
|
126
|
-
transform: rotate(0deg) scale(1);
|
|
127
|
-
transition: opacity 200ms ease-out, transform 200ms ease-out;
|
|
128
|
-
color: var(--trigger-text-color, var(--text-on-primary-background));
|
|
129
|
-
}
|
|
130
|
-
.trigger-close {
|
|
131
|
-
opacity: 0;
|
|
132
|
-
transition: transform 200ms ease-out;
|
|
133
|
-
transform: rotate(180deg) scale(0);
|
|
134
|
-
position: absolute;
|
|
135
|
-
top: 0;
|
|
136
|
-
bottom: 0;
|
|
137
|
-
left: 0;
|
|
138
|
-
right: 0;
|
|
139
|
-
display: flex;
|
|
140
|
-
justify-content: center;
|
|
141
|
-
align-items: center;
|
|
142
|
-
fill: var(--trigger-text-color, var(--text-on-primary-background));
|
|
143
|
-
}
|
|
144
|
-
`];G([pt({attribute:!1})],j.prototype,"symbol",2);G([pt({attribute:!1})],j.prototype,"container",2);G([dt()],j.prototype,"active",2);G([dt()],j.prototype,"loaded",2);G([dt()],j.prototype,"icon",2);const Js=(n,t,e,s,i)=>n.getAsync("componentResolver").then(r=>(r.registerComponent(t,e),$s(n,t,s||(()=>{}),t,i))),Ks=n=>Js(n,"widget-header",Promise.resolve().then(()=>require("./widget-header-17645d22.js")),t=>{});console.log("3");exports.Et=ys;exports.P=ht;exports.T=g;exports.WidgetHeaderComponent=Ks;exports.ht=ct;exports.i=we;exports.n=pt;exports.pt=ye;exports.r=dt;exports.s=H;exports.x=V;
|