@telia-ace/widget-core-flamingo 1.1.19-rc.0 → 1.1.19-rc.1

Sign up to get free protection for your applications and to get access to all the features.
package/index.js CHANGED
@@ -1,20 +1,20 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var ht=function(i,t){return ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])},ht(i,t)};function L(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ht(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ut(i){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&i[t],r=0;if(e)return e.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Y(i,t){var e=typeof Symbol=="function"&&i[Symbol.iterator];if(!e)return i;var r=e.call(i),n,s=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(o)throw o.error}}return s}function F(i,t,e){if(e||arguments.length===2)for(var r=0,n=t.length,s;r<n;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return i.concat(s||Array.prototype.slice.call(t))}function m(i){return typeof i=="function"}function Nt(i){var t=function(r){Error.call(r),r.stack=new Error().stack},e=i(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var it=Nt(function(i){return function(e){i(this),this.message=e?e.length+` errors occurred during unsubscription:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var ht=function(i,t){return ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])},ht(i,t)};function D(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ht(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ut(i){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&i[t],r=0;if(e)return e.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function F(i,t){var e=typeof Symbol=="function"&&i[Symbol.iterator];if(!e)return i;var r=e.call(i),n,s=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(o)throw o.error}}return s}function J(i,t,e){if(e||arguments.length===2)for(var r=0,n=t.length,s;r<n;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return i.concat(s||Array.prototype.slice.call(t))}function m(i){return typeof i=="function"}function Nt(i){var t=function(r){Error.call(r),r.stack=new Error().stack},e=i(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var it=Nt(function(i){return function(e){i(this),this.message=e?e.length+` errors occurred during unsubscription:
2
2
  `+e.map(function(r,n){return n+1+") "+r.toString()}).join(`
3
- `):"",this.name="UnsubscriptionError",this.errors=e}});function pt(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var X=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,r,n,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=ut(o),c=a.next();!c.done;c=a.next()){var h=c.value;h.remove(this)}}catch(v){t={error:v}}finally{try{c&&!c.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var d=this.initialTeardown;if(m(d))try{d()}catch(v){s=v instanceof it?v.errors:[v]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var f=ut(l),u=f.next();!u.done;u=f.next()){var g=u.value;try{wt(g)}catch(v){s=s??[],v instanceof it?s=F(F([],Y(s)),Y(v.errors)):s.push(v)}}}catch(v){r={error:v}}finally{try{u&&!u.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}}if(s)throw new it(s)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)wt(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&pt(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&pt(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),Lt=X.EMPTY;function Dt(i){return i instanceof X||i&&"closed"in i&&m(i.remove)&&m(i.add)&&m(i.unsubscribe)}function wt(i){m(i)?i():i.unsubscribe()}var Bt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},dt={setTimeout:function(i,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];var n=dt.delegate;return n!=null&&n.setTimeout?n.setTimeout.apply(n,F([i,t],Y(e))):setTimeout.apply(void 0,F([i,t],Y(e)))},clearTimeout:function(i){var t=dt.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(i)},delegate:void 0};function le(i){dt.setTimeout(function(){throw i})}function At(){}function V(i){i()}var zt=function(i){L(t,i);function t(e){var r=i.call(this)||this;return r.isStopped=!1,e?(r.destination=e,Dt(e)&&e.add(r)):r.destination=de,r}return t.create=function(e,r,n){return new ft(e,r,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(X),he=Function.prototype.bind;function nt(i,t){return he.call(i,t)}var ue=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(r){W(r)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(r){W(r)}else W(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){W(e)}},i}(),ft=function(i){L(t,i);function t(e,r,n){var s=i.call(this)||this,o;if(m(e)||!e)o={next:e??void 0,error:r??void 0,complete:n??void 0};else{var a;s&&Bt.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return s.unsubscribe()},o={next:e.next&&nt(e.next,a),error:e.error&&nt(e.error,a),complete:e.complete&&nt(e.complete,a)}):o=e}return s.destination=new ue(o),s}return t}(zt);function W(i){le(i)}function pe(i){throw i}var de={closed:!0,next:At,error:pe,complete:At},fe=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ge(i){return i}function ve(i){return i.length===0?ge:i.length===1?i[0]:function(e){return i.reduce(function(r,n){return n(r)},e)}}var St=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,r){var n=this,s=me(t)?t:new ft(t,e,r);return V(function(){var o=n,a=o.operator,c=o.source;s.add(a?a.call(s,c):c?n._subscribe(s):n._trySubscribe(s))}),s},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var r=this;return e=Et(e),new e(function(n,s){var o=new ft({next:function(a){try{t(a)}catch(c){s(c),o.unsubscribe()}},error:s,complete:n});r.subscribe(o)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[fe]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ve(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=Et(t),new t(function(r,n){var s;e.subscribe(function(o){return s=o},function(o){return n(o)},function(){return r(s)})})},i.create=function(t){return new i(t)},i}();function Et(i){var t;return(t=i??Bt.Promise)!==null&&t!==void 0?t:Promise}function ye(i){return i&&m(i.next)&&m(i.error)&&m(i.complete)}function me(i){return i&&i instanceof zt||ye(i)&&Dt(i)}var be=Nt(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Wt=function(i){L(t,i);function t(){var e=i.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var r=new Ct(this,this);return r.operator=e,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new be},t.prototype.next=function(e){var r=this;V(function(){var n,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var o=ut(r.currentObservers),a=o.next();!a.done;a=o.next()){var c=a.value;c.next(e)}}catch(h){n={error:h}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var r=this;V(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var n=r.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;V(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var r=e.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var r=this,n=this,s=n.hasError,o=n.isStopped,a=n.observers;return s||o?Lt:(this.currentObservers=null,a.push(e),new X(function(){r.currentObservers=null,pt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var r=this,n=r.hasError,s=r.thrownError,o=r.isStopped;n?e.error(s):o&&e.complete()},t.prototype.asObservable=function(){var e=new St;return e.source=this,e},t.create=function(e,r){return new Ct(e,r)},t}(St),Ct=function(i){L(t,i);function t(e,r){var n=i.call(this)||this;return n.destination=e,n.source=r,n}return t.prototype.next=function(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)},t.prototype.error=function(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)},t.prototype.complete=function(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)},t.prototype._subscribe=function(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:Lt},t}(Wt),_e=function(i){L(t,i);function t(e){var r=i.call(this)||this;return r._value=e,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var r=i.prototype._subscribe.call(this,e);return!r.closed&&e.next(this._value),r},t.prototype.getValue=function(){var e=this,r=e.hasError,n=e.thrownError,s=e._value;if(r)throw n;return this._throwIfClosed(),s},t.prototype.next=function(e){i.prototype.next.call(this,this._value=e)},t}(Wt),Gt=(i=>(i.Loading="loading",i.Ready="ready",i))(Gt||{});class gt{constructor(t,e){this.state=new _e("loading"),this.resolvers=new Map,this.name=t,this.environment=e,this.state.next("ready")}setState(t){this.state.next(t)}async register(t,e){this.resolvers.set(t,e)}async get(t){return this.resolvers.get(t)}}/**
3
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function pt(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var X=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,r,n,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=ut(o),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(v){t={error:v}}finally{try{c&&!c.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var d=this.initialTeardown;if(m(d))try{d()}catch(v){s=v instanceof it?v.errors:[v]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var f=ut(h),u=f.next();!u.done;u=f.next()){var g=u.value;try{wt(g)}catch(v){s=s??[],v instanceof it?s=J(J([],F(s)),F(v.errors)):s.push(v)}}}catch(v){r={error:v}}finally{try{u&&!u.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}}if(s)throw new it(s)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)wt(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&pt(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&pt(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),Lt=X.EMPTY;function Dt(i){return i instanceof X||i&&"closed"in i&&m(i.remove)&&m(i.add)&&m(i.unsubscribe)}function wt(i){m(i)?i():i.unsubscribe()}var Bt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},dt={setTimeout:function(i,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];var n=dt.delegate;return n!=null&&n.setTimeout?n.setTimeout.apply(n,J([i,t],F(e))):setTimeout.apply(void 0,J([i,t],F(e)))},clearTimeout:function(i){var t=dt.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(i)},delegate:void 0};function le(i){dt.setTimeout(function(){throw i})}function At(){}function q(i){i()}var zt=function(i){D(t,i);function t(e){var r=i.call(this)||this;return r.isStopped=!1,e?(r.destination=e,Dt(e)&&e.add(r)):r.destination=de,r}return t.create=function(e,r,n){return new ft(e,r,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(X),he=Function.prototype.bind;function nt(i,t){return he.call(i,t)}var ue=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(r){G(r)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(r){G(r)}else G(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){G(e)}},i}(),ft=function(i){D(t,i);function t(e,r,n){var s=i.call(this)||this,o;if(m(e)||!e)o={next:e??void 0,error:r??void 0,complete:n??void 0};else{var a;s&&Bt.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return s.unsubscribe()},o={next:e.next&&nt(e.next,a),error:e.error&&nt(e.error,a),complete:e.complete&&nt(e.complete,a)}):o=e}return s.destination=new ue(o),s}return t}(zt);function G(i){le(i)}function pe(i){throw i}var de={closed:!0,next:At,error:pe,complete:At},fe=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ge(i){return i}function ve(i){return i.length===0?ge:i.length===1?i[0]:function(e){return i.reduce(function(r,n){return n(r)},e)}}var St=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,r){var n=this,s=me(t)?t:new ft(t,e,r);return q(function(){var o=n,a=o.operator,c=o.source;s.add(a?a.call(s,c):c?n._subscribe(s):n._trySubscribe(s))}),s},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var r=this;return e=Et(e),new e(function(n,s){var o=new ft({next:function(a){try{t(a)}catch(c){s(c),o.unsubscribe()}},error:s,complete:n});r.subscribe(o)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[fe]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ve(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=Et(t),new t(function(r,n){var s;e.subscribe(function(o){return s=o},function(o){return n(o)},function(){return r(s)})})},i.create=function(t){return new i(t)},i}();function Et(i){var t;return(t=i??Bt.Promise)!==null&&t!==void 0?t:Promise}function ye(i){return i&&m(i.next)&&m(i.error)&&m(i.complete)}function me(i){return i&&i instanceof zt||ye(i)&&Dt(i)}var be=Nt(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Wt=function(i){D(t,i);function t(){var e=i.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var r=new Ct(this,this);return r.operator=e,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new be},t.prototype.next=function(e){var r=this;q(function(){var n,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var o=ut(r.currentObservers),a=o.next();!a.done;a=o.next()){var c=a.value;c.next(e)}}catch(l){n={error:l}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var r=this;q(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var n=r.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;q(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var r=e.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var r=this,n=this,s=n.hasError,o=n.isStopped,a=n.observers;return s||o?Lt:(this.currentObservers=null,a.push(e),new X(function(){r.currentObservers=null,pt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var r=this,n=r.hasError,s=r.thrownError,o=r.isStopped;n?e.error(s):o&&e.complete()},t.prototype.asObservable=function(){var e=new St;return e.source=this,e},t.create=function(e,r){return new Ct(e,r)},t}(St),Ct=function(i){D(t,i);function t(e,r){var n=i.call(this)||this;return n.destination=e,n.source=r,n}return t.prototype.next=function(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)},t.prototype.error=function(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)},t.prototype.complete=function(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)},t.prototype._subscribe=function(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:Lt},t}(Wt),_e=function(i){D(t,i);function t(e){var r=i.call(this)||this;return r._value=e,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var r=i.prototype._subscribe.call(this,e);return!r.closed&&e.next(this._value),r},t.prototype.getValue=function(){var e=this,r=e.hasError,n=e.thrownError,s=e._value;if(r)throw n;return this._throwIfClosed(),s},t.prototype.next=function(e){i.prototype.next.call(this,this._value=e)},t}(Wt),Gt=(i=>(i.Loading="loading",i.Ready="ready",i))(Gt||{});class gt{constructor(t,e){this.state=new _e("loading"),this.resolvers=new Map,this.name=t,this.environment=e,this.state.next("ready")}setState(t){this.state.next(t)}async register(t,e){this.resolvers.set(t,e)}async get(t){return this.resolvers.get(t)}}/**
4
4
  * @license
5
5
  * Copyright 2019 Google LLC
6
6
  * SPDX-License-Identifier: BSD-3-Clause
7
- */const q=globalThis,yt=q.ShadowRoot&&(q.ShadyCSS===void 0||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mt=Symbol(),xt=new WeakMap;let Vt=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==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(yt&&t===void 0){const r=e!==void 0&&e.length===1;r&&(t=xt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&xt.set(e,t))}return t}toString(){return this.cssText}};const $e=i=>new Vt(typeof i=="string"?i:i+"",void 0,mt),D=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((r,n,s)=>r+(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.")})(n)+i[s+1],i[0]);return new Vt(e,i,mt)},we=(i,t)=>{if(yt)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const r=document.createElement("style"),n=q.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=e.cssText,i.appendChild(r)}},Pt=yt?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return $e(e)})(i):i;/**
7
+ */const Y=globalThis,yt=Y.ShadowRoot&&(Y.ShadyCSS===void 0||Y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mt=Symbol(),xt=new WeakMap;let Vt=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==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(yt&&t===void 0){const r=e!==void 0&&e.length===1;r&&(t=xt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&xt.set(e,t))}return t}toString(){return this.cssText}};const $e=i=>new Vt(typeof i=="string"?i:i+"",void 0,mt),B=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((r,n,s)=>r+(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.")})(n)+i[s+1],i[0]);return new Vt(e,i,mt)},we=(i,t)=>{if(yt)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const r=document.createElement("style"),n=Y.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=e.cssText,i.appendChild(r)}},Pt=yt?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return $e(e)})(i):i;/**
8
8
  * @license
9
9
  * Copyright 2017 Google LLC
10
10
  * SPDX-License-Identifier: BSD-3-Clause
11
- */const{is:Ae,defineProperty:Se,getOwnPropertyDescriptor:Ee,getOwnPropertyNames:Ce,getOwnPropertySymbols:xe,getPrototypeOf:Pe}=Object,$=globalThis,Tt=$.trustedTypes,Te=Tt?Tt.emptyScript:"",st=$.reactiveElementPolyfillSupport,I=(i,t)=>i,J={toAttribute(i,t){switch(t){case Boolean:i=i?Te:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},bt=(i,t)=>!Ae(i,t),Ot={attribute:!0,type:String,converter:J,reflect:!1,hasChanged:bt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),$.litPropertyMetadata??($.litPropertyMetadata=new WeakMap);class T 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=Ot){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(t,r,e);n!==void 0&&Se(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){const{get:n,set:s}=Ee(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return n==null?void 0:n.call(this)},set(o){const a=n==null?void 0:n.call(this);s.call(this,o),this.requestUpdate(t,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ot}static _$Ei(){if(this.hasOwnProperty(I("elementProperties")))return;const t=Pe(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(I("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(I("properties"))){const e=this.properties,r=[...Ce(e),...xe(e)];for(const n of r)this.createProperty(n,e[n])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[r,n]of e)this.elementProperties.set(r,n)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const n=this._$Eu(e,r);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const n of r)e.unshift(Pt(n))}else t!==void 0&&e.push(Pt(t));return e}static _$Eu(t,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r: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 r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return we(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 r;return(r=e.hostConnected)==null?void 0:r.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e){var s;const r=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,r);if(n!==void 0&&r.reflect===!0){const o=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:J).toAttribute(e,r.type);this._$Em=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(t,e){var s;const r=this.constructor,n=r._$Eh.get(t);if(n!==void 0&&this._$Em!==n){const o=r.getPropertyOptions(n),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((s=o.converter)==null?void 0:s.fromAttribute)!==void 0?o.converter:J;this._$Em=n,this[n]=a.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,r,n=!1,s){if(t!==void 0){if(r??(r=this.constructor.getPropertyOptions(t)),!(r.hasChanged??bt)(n?s:this[t],e))return;this.C(t,e,r)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,r){this._$AL.has(t)||this._$AL.set(t,e),r.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 r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[s,o]of n)o.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.C(s,this[s],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(r=this._$ES)==null||r.forEach(n=>{var s;return(s=n.hostUpdate)==null?void 0:s.call(n)}),this.update(e)):this._$ET()}catch(n){throw t=!1,this._$ET(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)==null||e.forEach(r=>{var n;return(n=r.hostUpdated)==null?void 0:n.call(r)}),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){}}T.elementStyles=[],T.shadowRootOptions={mode:"open"},T[I("elementProperties")]=new Map,T[I("finalized")]=new Map,st==null||st({ReactiveElement:T}),($.reactiveElementVersions??($.reactiveElementVersions=[])).push("2.0.1");/**
11
+ */const{is:Ae,defineProperty:Se,getOwnPropertyDescriptor:Ee,getOwnPropertyNames:Ce,getOwnPropertySymbols:xe,getPrototypeOf:Pe}=Object,$=globalThis,Tt=$.trustedTypes,Te=Tt?Tt.emptyScript:"",st=$.reactiveElementPolyfillSupport,I=(i,t)=>i,K={toAttribute(i,t){switch(t){case Boolean:i=i?Te:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},bt=(i,t)=>!Ae(i,t),Ot={attribute:!0,type:String,converter:K,reflect:!1,hasChanged:bt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),$.litPropertyMetadata??($.litPropertyMetadata=new WeakMap);class T 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=Ot){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(t,r,e);n!==void 0&&Se(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){const{get:n,set:s}=Ee(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return n==null?void 0:n.call(this)},set(o){const a=n==null?void 0:n.call(this);s.call(this,o),this.requestUpdate(t,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ot}static _$Ei(){if(this.hasOwnProperty(I("elementProperties")))return;const t=Pe(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(I("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(I("properties"))){const e=this.properties,r=[...Ce(e),...xe(e)];for(const n of r)this.createProperty(n,e[n])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[r,n]of e)this.elementProperties.set(r,n)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const n=this._$Eu(e,r);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const n of r)e.unshift(Pt(n))}else t!==void 0&&e.push(Pt(t));return e}static _$Eu(t,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r: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 r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return we(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 r;return(r=e.hostConnected)==null?void 0:r.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e){var s;const r=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,r);if(n!==void 0&&r.reflect===!0){const o=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:K).toAttribute(e,r.type);this._$Em=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(t,e){var s;const r=this.constructor,n=r._$Eh.get(t);if(n!==void 0&&this._$Em!==n){const o=r.getPropertyOptions(n),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((s=o.converter)==null?void 0:s.fromAttribute)!==void 0?o.converter:K;this._$Em=n,this[n]=a.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,r,n=!1,s){if(t!==void 0){if(r??(r=this.constructor.getPropertyOptions(t)),!(r.hasChanged??bt)(n?s:this[t],e))return;this.C(t,e,r)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,r){this._$AL.has(t)||this._$AL.set(t,e),r.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 r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[s,o]of n)o.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.C(s,this[s],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(r=this._$ES)==null||r.forEach(n=>{var s;return(s=n.hostUpdate)==null?void 0:s.call(n)}),this.update(e)):this._$ET()}catch(n){throw t=!1,this._$ET(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)==null||e.forEach(r=>{var n;return(n=r.hostUpdated)==null?void 0:n.call(r)}),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){}}T.elementStyles=[],T.shadowRootOptions={mode:"open"},T[I("elementProperties")]=new Map,T[I("finalized")]=new Map,st==null||st({ReactiveElement:T}),($.reactiveElementVersions??($.reactiveElementVersions=[])).push("2.0.1");/**
12
12
  * @license
13
13
  * Copyright 2017 Google LLC
14
14
  * SPDX-License-Identifier: BSD-3-Clause
15
- */const M=globalThis,K=M.trustedTypes,Ut=K?K.createPolicy("lit-html",{createHTML:i=>i}):void 0,qt="$lit$",_=`lit$${(Math.random()+"").slice(9)}$`,Yt="?"+_,Oe=`<${Yt}>`,x=document,j=()=>x.createComment(""),H=i=>i===null||typeof i!="object"&&typeof i!="function",Ft=Array.isArray,Ue=i=>Ft(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",ot=`[
15
+ */const M=globalThis,Z=M.trustedTypes,Ut=Z?Z.createPolicy("lit-html",{createHTML:i=>i}):void 0,qt="$lit$",_=`lit$${(Math.random()+"").slice(9)}$`,Yt="?"+_,Oe=`<${Yt}>`,x=document,H=()=>x.createComment(""),N=i=>i===null||typeof i!="object"&&typeof i!="function",Ft=Array.isArray,Ue=i=>Ft(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",ot=`[
16
16
  \f\r]`,R=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Rt=/-->/g,It=/>/g,S=RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^
17
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Mt=/'/g,kt=/"/g,Jt=/^(?:script|style|textarea|title)$/i,Re=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),Z=Re(1),P=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),jt=new WeakMap,C=x.createTreeWalker(x,129);function Kt(i,t){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ut!==void 0?Ut.createHTML(t):t}const Ie=(i,t)=>{const e=i.length-1,r=[];let n,s=t===2?"<svg>":"",o=R;for(let a=0;a<e;a++){const c=i[a];let h,d,l=-1,f=0;for(;f<c.length&&(o.lastIndex=f,d=o.exec(c),d!==null);)f=o.lastIndex,o===R?d[1]==="!--"?o=Rt:d[1]!==void 0?o=It:d[2]!==void 0?(Jt.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=S):d[3]!==void 0&&(o=S):o===S?d[0]===">"?(o=n??R,l=-1):d[1]===void 0?l=-2:(l=o.lastIndex-d[2].length,h=d[1],o=d[3]===void 0?S:d[3]==='"'?kt:Mt):o===kt||o===Mt?o=S:o===Rt||o===It?o=R:(o=S,n=void 0);const u=o===S&&i[a+1].startsWith("/>")?" ":"";s+=o===R?c+Oe:l>=0?(r.push(h),c.slice(0,l)+qt+c.slice(l)+_+u):c+_+(l===-2?a:u)}return[Kt(i,s+(i[e]||"<?>")+(t===2?"</svg>":"")),r]};class N{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let s=0,o=0;const a=t.length-1,c=this.parts,[h,d]=Ie(t,e);if(this.el=N.createElement(h,r),C.currentNode=this.el.content,e===2){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(n=C.nextNode())!==null&&c.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(const l of n.getAttributeNames())if(l.endsWith(qt)){const f=d[o++],u=n.getAttribute(l).split(_),g=/([.?@])?(.*)/.exec(f);c.push({type:1,index:s,name:g[2],strings:u,ctor:g[1]==="."?ke:g[1]==="?"?je:g[1]==="@"?He:tt}),n.removeAttribute(l)}else l.startsWith(_)&&(c.push({type:6,index:s}),n.removeAttribute(l));if(Jt.test(n.tagName)){const l=n.textContent.split(_),f=l.length-1;if(f>0){n.textContent=K?K.emptyScript:"";for(let u=0;u<f;u++)n.append(l[u],j()),C.nextNode(),c.push({type:2,index:++s});n.append(l[f],j())}}}else if(n.nodeType===8)if(n.data===Yt)c.push({type:2,index:s});else{let l=-1;for(;(l=n.data.indexOf(_,l+1))!==-1;)c.push({type:7,index:s}),l+=_.length-1}s++}}static createElement(t,e){const r=x.createElement("template");return r.innerHTML=t,r}}function O(i,t,e=i,r){var o,a;if(t===P)return t;let n=r!==void 0?(o=e._$Co)==null?void 0:o[r]:e._$Cl;const s=H(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==s&&((a=n==null?void 0:n._$AO)==null||a.call(n,!1),s===void 0?n=void 0:(n=new s(i),n._$AT(i,e,r)),r!==void 0?(e._$Co??(e._$Co=[]))[r]=n:e._$Cl=n),n!==void 0&&(t=O(i,n._$AS(i,t.values),n,r)),t}class Me{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:r}=this._$AD,n=((t==null?void 0:t.creationScope)??x).importNode(e,!0);C.currentNode=n;let s=C.nextNode(),o=0,a=0,c=r[0];for(;c!==void 0;){if(o===c.index){let h;c.type===2?h=new B(s,s.nextSibling,this,t):c.type===1?h=new c.ctor(s,c.name,c.strings,this,t):c.type===6&&(h=new Ne(s,this,t)),this._$AV.push(h),c=r[++a]}o!==(c==null?void 0:c.index)&&(s=C.nextNode(),o++)}return C.currentNode=x,n}p(t){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class B{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,r,n){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=n,this._$Cv=(n==null?void 0:n.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=O(this,t,e),H(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==P&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Ue(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!==p&&H(this._$AH)?this._$AA.nextSibling.data=t:this.$(x.createTextNode(t)),this._$AH=t}g(t){var s;const{values:e,_$litType$:r}=t,n=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=N.createElement(Kt(r.h,r.h[0]),this.options)),r);if(((s=this._$AH)==null?void 0:s._$AD)===n)this._$AH.p(e);else{const o=new Me(n,this),a=o.u(this.options);o.p(e),this.$(a),this._$AH=o}}_$AC(t){let e=jt.get(t.strings);return e===void 0&&jt.set(t.strings,e=new N(t)),e}T(t){Ft(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,n=0;for(const s of t)n===e.length?e.push(r=new B(this.k(j()),this.k(j()),this,this.options)):r=e[n],r._$AI(s),n++;n<e.length&&(this._$AR(r&&r._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){const n=t.nextSibling;t.remove(),t=n}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class tt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,n,s){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=p}_$AI(t,e=this,r,n){const s=this.strings;let o=!1;if(s===void 0)t=O(this,t,e,0),o=!H(t)||t!==this._$AH&&t!==P,o&&(this._$AH=t);else{const a=t;let c,h;for(t=s[0],c=0;c<s.length-1;c++)h=O(this,a[r+c],e,c),h===P&&(h=this._$AH[c]),o||(o=!H(h)||h!==this._$AH[c]),h===p?t=p:t!==p&&(t+=(h??"")+s[c+1]),this._$AH[c]=h}o&&!n&&this.O(t)}O(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ke extends tt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===p?void 0:t}}class je extends tt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}}class He extends tt{constructor(t,e,r,n,s){super(t,e,r,n,s),this.type=5}_$AI(t,e=this){if((t=O(this,t,e,0)??p)===P)return;const r=this._$AH,n=t===p&&r!==p||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==p&&(r===p||n);n&&this.element.removeEventListener(this.name,this,r),s&&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 Ne{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){O(this,t)}}const at=M.litHtmlPolyfillSupport;at==null||at(N,B),(M.litHtmlVersions??(M.litHtmlVersions=[])).push("3.0.2");const Le=(i,t,e)=>{const r=(e==null?void 0:e.renderBefore)??t;let n=r._$litPart$;if(n===void 0){const s=(e==null?void 0:e.renderBefore)??null;r._$litPart$=n=new B(t.insertBefore(j(),s),s,void 0,e??{})}return n._$AI(i),n};/**
17
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Mt=/'/g,kt=/"/g,Jt=/^(?:script|style|textarea|title)$/i,Re=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),k=Re(1),P=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),jt=new WeakMap,C=x.createTreeWalker(x,129);function Kt(i,t){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ut!==void 0?Ut.createHTML(t):t}const Ie=(i,t)=>{const e=i.length-1,r=[];let n,s=t===2?"<svg>":"",o=R;for(let a=0;a<e;a++){const c=i[a];let l,d,h=-1,f=0;for(;f<c.length&&(o.lastIndex=f,d=o.exec(c),d!==null);)f=o.lastIndex,o===R?d[1]==="!--"?o=Rt:d[1]!==void 0?o=It:d[2]!==void 0?(Jt.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=S):d[3]!==void 0&&(o=S):o===S?d[0]===">"?(o=n??R,h=-1):d[1]===void 0?h=-2:(h=o.lastIndex-d[2].length,l=d[1],o=d[3]===void 0?S:d[3]==='"'?kt:Mt):o===kt||o===Mt?o=S:o===Rt||o===It?o=R:(o=S,n=void 0);const u=o===S&&i[a+1].startsWith("/>")?" ":"";s+=o===R?c+Oe:h>=0?(r.push(l),c.slice(0,h)+qt+c.slice(h)+_+u):c+_+(h===-2?a:u)}return[Kt(i,s+(i[e]||"<?>")+(t===2?"</svg>":"")),r]};class L{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let s=0,o=0;const a=t.length-1,c=this.parts,[l,d]=Ie(t,e);if(this.el=L.createElement(l,r),C.currentNode=this.el.content,e===2){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=C.nextNode())!==null&&c.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(const h of n.getAttributeNames())if(h.endsWith(qt)){const f=d[o++],u=n.getAttribute(h).split(_),g=/([.?@])?(.*)/.exec(f);c.push({type:1,index:s,name:g[2],strings:u,ctor:g[1]==="."?ke:g[1]==="?"?je:g[1]==="@"?He:tt}),n.removeAttribute(h)}else h.startsWith(_)&&(c.push({type:6,index:s}),n.removeAttribute(h));if(Jt.test(n.tagName)){const h=n.textContent.split(_),f=h.length-1;if(f>0){n.textContent=Z?Z.emptyScript:"";for(let u=0;u<f;u++)n.append(h[u],H()),C.nextNode(),c.push({type:2,index:++s});n.append(h[f],H())}}}else if(n.nodeType===8)if(n.data===Yt)c.push({type:2,index:s});else{let h=-1;for(;(h=n.data.indexOf(_,h+1))!==-1;)c.push({type:7,index:s}),h+=_.length-1}s++}}static createElement(t,e){const r=x.createElement("template");return r.innerHTML=t,r}}function O(i,t,e=i,r){var o,a;if(t===P)return t;let n=r!==void 0?(o=e._$Co)==null?void 0:o[r]:e._$Cl;const s=N(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==s&&((a=n==null?void 0:n._$AO)==null||a.call(n,!1),s===void 0?n=void 0:(n=new s(i),n._$AT(i,e,r)),r!==void 0?(e._$Co??(e._$Co=[]))[r]=n:e._$Cl=n),n!==void 0&&(t=O(i,n._$AS(i,t.values),n,r)),t}class Me{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:r}=this._$AD,n=((t==null?void 0:t.creationScope)??x).importNode(e,!0);C.currentNode=n;let s=C.nextNode(),o=0,a=0,c=r[0];for(;c!==void 0;){if(o===c.index){let l;c.type===2?l=new z(s,s.nextSibling,this,t):c.type===1?l=new c.ctor(s,c.name,c.strings,this,t):c.type===6&&(l=new Ne(s,this,t)),this._$AV.push(l),c=r[++a]}o!==(c==null?void 0:c.index)&&(s=C.nextNode(),o++)}return C.currentNode=x,n}p(t){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class z{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,r,n){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=n,this._$Cv=(n==null?void 0:n.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=O(this,t,e),N(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==P&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Ue(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!==p&&N(this._$AH)?this._$AA.nextSibling.data=t:this.$(x.createTextNode(t)),this._$AH=t}g(t){var s;const{values:e,_$litType$:r}=t,n=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=L.createElement(Kt(r.h,r.h[0]),this.options)),r);if(((s=this._$AH)==null?void 0:s._$AD)===n)this._$AH.p(e);else{const o=new Me(n,this),a=o.u(this.options);o.p(e),this.$(a),this._$AH=o}}_$AC(t){let e=jt.get(t.strings);return e===void 0&&jt.set(t.strings,e=new L(t)),e}T(t){Ft(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,n=0;for(const s of t)n===e.length?e.push(r=new z(this.k(H()),this.k(H()),this,this.options)):r=e[n],r._$AI(s),n++;n<e.length&&(this._$AR(r&&r._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){const n=t.nextSibling;t.remove(),t=n}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class tt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,n,s){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=p}_$AI(t,e=this,r,n){const s=this.strings;let o=!1;if(s===void 0)t=O(this,t,e,0),o=!N(t)||t!==this._$AH&&t!==P,o&&(this._$AH=t);else{const a=t;let c,l;for(t=s[0],c=0;c<s.length-1;c++)l=O(this,a[r+c],e,c),l===P&&(l=this._$AH[c]),o||(o=!N(l)||l!==this._$AH[c]),l===p?t=p:t!==p&&(t+=(l??"")+s[c+1]),this._$AH[c]=l}o&&!n&&this.O(t)}O(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ke extends tt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===p?void 0:t}}class je extends tt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}}class He extends tt{constructor(t,e,r,n,s){super(t,e,r,n,s),this.type=5}_$AI(t,e=this){if((t=O(this,t,e,0)??p)===P)return;const r=this._$AH,n=t===p&&r!==p||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==p&&(r===p||n);n&&this.element.removeEventListener(this.name,this,r),s&&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 Ne{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){O(this,t)}}const at=M.litHtmlPolyfillSupport;at==null||at(L,z),(M.litHtmlVersions??(M.litHtmlVersions=[])).push("3.0.2");const Le=(i,t,e)=>{const r=(e==null?void 0:e.renderBefore)??t;let n=r._$litPart$;if(n===void 0){const s=(e==null?void 0:e.renderBefore)??null;r._$litPart$=n=new z(t.insertBefore(H(),s),s,void 0,e??{})}return n._$AI(i),n};/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
@@ -22,11 +22,11 @@
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */const De={attribute:!0,type:String,converter:J,reflect:!1,hasChanged:bt},Be=(i=De,t,e)=>{const{kind:r,metadata:n}=e;let s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),s.set(e.name,i),r==="accessor"){const{name:o}=e;return{set(a){const c=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,c,i)},init(a){return a!==void 0&&this.C(o,void 0,i),a}}}if(r==="setter"){const{name:o}=e;return function(a){const c=this[o];t.call(this,a),this.requestUpdate(o,c,i)}}throw Error("Unsupported decorator location: "+r)};function y(i){return(t,e)=>typeof e=="object"?Be(i,t,e):((r,n,s)=>{const o=n.hasOwnProperty(s);return n.constructor.createProperty(s,o?{...r,wrapped:!0}:r),o?Object.getOwnPropertyDescriptor(n,s):void 0})(i,t,e)}/**
25
+ */const De={attribute:!0,type:String,converter:K,reflect:!1,hasChanged:bt},Be=(i=De,t,e)=>{const{kind:r,metadata:n}=e;let s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),s.set(e.name,i),r==="accessor"){const{name:o}=e;return{set(a){const c=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,c,i)},init(a){return a!==void 0&&this.C(o,void 0,i),a}}}if(r==="setter"){const{name:o}=e;return function(a){const c=this[o];t.call(this,a),this.requestUpdate(o,c,i)}}throw Error("Unsupported decorator location: "+r)};function y(i){return(t,e)=>typeof e=="object"?Be(i,t,e):((r,n,s)=>{const o=n.hasOwnProperty(s);return n.constructor.createProperty(s,o?{...r,wrapped:!0}:r),o?Object.getOwnPropertyDescriptor(n,s):void 0})(i,t,e)}/**
26
26
  * @license
27
27
  * Copyright 2017 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
29
- */function z(i){return y({...i,state:!0,attribute:!1})}/**
29
+ */function W(i){return y({...i,state:!0,attribute:!1})}/**
30
30
  * @license
31
31
  * Copyright 2017 Google LLC
32
32
  * SPDX-License-Identifier: BSD-3-Clause
@@ -34,11 +34,11 @@
34
34
  * @license
35
35
  * Copyright 2018 Google LLC
36
36
  * SPDX-License-Identifier: BSD-3-Clause
37
- */const ze=Qt(class extends Xt{constructor(i){var t;if(super(i),i.type!==Zt.ATTRIBUTE||i.name!=="class"||((t=i.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(i){return" "+Object.keys(i).filter(t=>i[t]).join(" ")+" "}update(i,[t]){var r,n;if(this.it===void 0){this.it=new Set,i.strings!==void 0&&(this.st=new Set(i.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(const s in t)t[s]&&!((r=this.st)!=null&&r.has(s))&&this.it.add(s);return this.render(t)}const e=i.element.classList;for(const s of this.it)s in t||(e.remove(s),this.it.delete(s));for(const s in t){const o=!!t[s];o===this.it.has(s)||(n=this.st)!=null&&n.has(s)||(o?(e.add(s),this.it.add(s)):(e.remove(s),this.it.delete(s)))}return P}}),G=(i,t,e)=>{i&&e.style.setProperty(t,i)},te=(i,t)=>{var e,r,n,s;G((e=i.colors)==null?void 0:e.primaryBackground,"--primary-background",t),G((r=i.colors)==null?void 0:r.textOnPrimaryBackground,"--text-on-primary-background",t),G((n=i.colors)==null?void 0:n.secondaryBackground,"--secondary-background",t),G((s=i.colors)==null?void 0:s.textOnSecondaryBackground,"--text-on-secondary-background",t)};var We=Object.defineProperty,Ge=Object.getOwnPropertyDescriptor,et=(i,t,e,r)=>{for(var n=r>1?void 0:r?Ge(t,e):t,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(t,e,n):o(n))||n);return r&&n&&We(t,e,n),n};class b extends w{constructor(){super(...arguments),this.active=!1,this.loaded=!1}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}_toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?this.application.appendToDOM():this.application.hide()}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&te(this.application.settings.branding,this)}async _renderSymbol(){var s;const t=(s=this.application)==null?void 0:s.triggerIcon;if(!t)return p;const e=async o=>await Promise.resolve().then(()=>require("./index-6dd00f59.js")).then(c=>c[o]),{type:r,content:n}=t;switch(r){case"Telia":{const o=await e(n);return o?Z`<telia-icon
37
+ */const ze=Qt(class extends Xt{constructor(i){var t;if(super(i),i.type!==Zt.ATTRIBUTE||i.name!=="class"||((t=i.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(i){return" "+Object.keys(i).filter(t=>i[t]).join(" ")+" "}update(i,[t]){var r,n;if(this.it===void 0){this.it=new Set,i.strings!==void 0&&(this.st=new Set(i.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(const s in t)t[s]&&!((r=this.st)!=null&&r.has(s))&&this.it.add(s);return this.render(t)}const e=i.element.classList;for(const s of this.it)s in t||(e.remove(s),this.it.delete(s));for(const s in t){const o=!!t[s];o===this.it.has(s)||(n=this.st)!=null&&n.has(s)||(o?(e.add(s),this.it.add(s)):(e.remove(s),this.it.delete(s)))}return P}}),V=(i,t,e)=>{i&&e.style.setProperty(t,i)},te=(i,t)=>{var e,r,n,s;V((e=i.colors)==null?void 0:e.primaryBackground,"--primary-background",t),V((r=i.colors)==null?void 0:r.textOnPrimaryBackground,"--text-on-primary-background",t),V((n=i.colors)==null?void 0:n.secondaryBackground,"--secondary-background",t),V((s=i.colors)==null?void 0:s.textOnSecondaryBackground,"--text-on-secondary-background",t)};var We=Object.defineProperty,Ge=Object.getOwnPropertyDescriptor,et=(i,t,e,r)=>{for(var n=r>1?void 0:r?Ge(t,e):t,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(t,e,n):o(n))||n);return r&&n&&We(t,e,n),n};class b extends w{constructor(){super(...arguments),this.active=!1,this.loaded=!1}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}_toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?this.application.appendToDOM():this.application.hide()}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&te(this.application.settings.branding,this)}async _renderSymbol(){var a,c;const t=(a=this.application)==null?void 0:a.branding(),e=t==null?void 0:t.graphics.trigger;if(e)return k` <img src=${e} class="trigger-icon" alt="" /> `;const r=(c=this.application)==null?void 0:c.triggerIcon;if(!r)return p;const n=async l=>await Promise.resolve().then(()=>require("./index-6dd00f59.js")).then(h=>h[l]),{type:s,content:o}=r;switch(s){case"Telia":{const l=await n(o);return l?k`<telia-icon
38
38
  class="trigger-icon"
39
- svg=${o.svg}
39
+ svg=${l.svg}
40
40
  size="lg"
41
- ></telia-icon>`:p}default:return p}}render(){return Z`<button
41
+ ></telia-icon>`:p}default:return p}}render(){return k`<button
42
42
  class=${ze({trigger:!0,active:this.active,rendered:this.loaded})}
43
43
  @click=${this._toggleActive}
44
44
  >
@@ -70,7 +70,7 @@
70
70
  />
71
71
  </svg>
72
72
  </span>
73
- </button>`}}b.styles=[D`
73
+ </button>`}}b.styles=[B`
74
74
  :host {
75
75
  --voca-rem-multiplier: 0.625;
76
76
  display: block;
@@ -138,7 +138,11 @@
138
138
  align-items: center;
139
139
  fill: var(--trigger-text-color, var(--text-on-primary-background));
140
140
  }
141
- `];et([y({attribute:!1})],b.prototype,"application",2);et([z()],b.prototype,"active",2);et([z()],b.prototype,"loaded",2);et([z()],b.prototype,"icon",2);var Ve=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,E=(i,t,e,r)=>{for(var n=r>1?void 0:r?qe(t,e):t,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(t,e,n):o(n))||n);return r&&n&&Ve(t,e,n),n};const ee=i=>{class t extends i{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(r){this.properties=r}writeLayout(r){this.layout=r}writeContext(r){this.context=r}addChild(r){r.parent=this,this.nodes.push(r)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`)}}return t.styles=[D`
141
+
142
+ img {
143
+ max-width: 100%;
144
+ }
145
+ `];et([y({attribute:!1})],b.prototype,"application",2);et([W()],b.prototype,"active",2);et([W()],b.prototype,"loaded",2);et([W()],b.prototype,"icon",2);var Ve=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,E=(i,t,e,r)=>{for(var n=r>1?void 0:r?qe(t,e):t,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(t,e,n):o(n))||n);return r&&n&&Ve(t,e,n),n};const ee=i=>{class t extends i{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(r){this.properties=r}writeLayout(r){this.layout=r}writeContext(r){this.context=r}addChild(r){r.parent=this,this.nodes.push(r)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`)}}return t.styles=[B`
142
146
  :host {
143
147
  font-family: var(--font-family);
144
148
  grid-column: span var(--width);
@@ -150,7 +154,7 @@
150
154
  * {
151
155
  box-sizing: border-box;
152
156
  }
153
- `],E([y()],t.prototype,"properties",2),E([y()],t.prototype,"context",2),E([y()],t.prototype,"layout",2),E([y()],t.prototype,"name",2),E([y()],t.prototype,"type",2),E([y({attribute:!1})],t.prototype,"application",2),E([y({attribute:!1})],t.prototype,"parent",2),t};class _t extends ee(w){render(){return Z`Non resolved component`}}_t.styles=[D`
157
+ `],E([y()],t.prototype,"properties",2),E([y()],t.prototype,"context",2),E([y()],t.prototype,"layout",2),E([y()],t.prototype,"name",2),E([y()],t.prototype,"type",2),E([y({attribute:!1})],t.prototype,"application",2),E([y({attribute:!1})],t.prototype,"parent",2),t};class _t extends ee(w){render(){return k`Non resolved component`}}_t.styles=[B`
154
158
  :host {
155
159
  display: block;
156
160
  }
@@ -162,7 +166,7 @@
162
166
  * @license
163
167
  * Copyright 2017 Google LLC
164
168
  * SPDX-License-Identifier: BSD-3-Clause
165
- */const k=(i,t)=>{var r;const e=i._$AN;if(e===void 0)return!1;for(const n of e)(r=n._$AO)==null||r.call(n,t,!1),k(n,t);return!0},Q=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},re=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),Ke(t)}};function Fe(i){this._$AN!==void 0?(Q(this),this._$AM=i,re(this)):this._$AM=i}function Je(i,t=!1,e=0){const r=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(r))for(let s=e;s<r.length;s++)k(r[s],!1),Q(r[s]);else r!=null&&(k(r,!1),Q(r));else k(this,i)}const Ke=i=>{i.type==Zt.CHILD&&(i._$AP??(i._$AP=Je),i._$AQ??(i._$AQ=Fe))};class Ze extends Xt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),re(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,n;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(n=this.disconnected)==null||n.call(this)),e&&(k(this,t),Q(this))}setValue(t){if(Ye(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}/**
169
+ */const j=(i,t)=>{var r;const e=i._$AN;if(e===void 0)return!1;for(const n of e)(r=n._$AO)==null||r.call(n,t,!1),j(n,t);return!0},Q=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},re=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),Ke(t)}};function Fe(i){this._$AN!==void 0?(Q(this),this._$AM=i,re(this)):this._$AM=i}function Je(i,t=!1,e=0){const r=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(r))for(let s=e;s<r.length;s++)j(r[s],!1),Q(r[s]);else r!=null&&(j(r,!1),Q(r));else j(this,i)}const Ke=i=>{i.type==Zt.CHILD&&(i._$AP??(i._$AP=Je),i._$AQ??(i._$AQ=Fe))};class Ze extends Xt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),re(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,n;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(n=this.disconnected)==null||n.call(this)),e&&(j(this,t),Q(this))}setValue(t){if(Ye(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}/**
166
170
  * @license
167
171
  * Copyright 2020 Google LLC
168
172
  * SPDX-License-Identifier: BSD-3-Clause
@@ -170,9 +174,9 @@
170
174
  * @license
171
175
  * Copyright 2021 Google LLC
172
176
  * SPDX-License-Identifier: BSD-3-Clause
173
- */function*er(i,t){if(i!==void 0){let e=0;for(const r of i)yield t(r,e++)}}var A=(i=>(i.Inline="inline",i.Trigger="trigger",i))(A||{}),rr=Object.defineProperty,ir=Object.getOwnPropertyDescriptor,nr=(i,t,e,r)=>{for(var n=r>1?void 0:r?ir(t,e):t,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(t,e,n):o(n))||n);return r&&n&&rr(t,e,n),n};class rt extends w{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=Qe()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(this.wrapperRef.value){const t=this.application.settings;t!=null&&t.branding&&te(t.branding,this.wrapperRef.value)}}firstUpdated(t){this.applyBranding()}render(){return this.application.renderStrategy===A.Trigger&&this.renderRoot.host.classList.add("floating"),Z`<div class="widget-container" ${tr(this.wrapperRef)}>
177
+ */function*er(i,t){if(i!==void 0){let e=0;for(const r of i)yield t(r,e++)}}var A=(i=>(i.Inline="inline",i.Trigger="trigger",i))(A||{}),rr=Object.defineProperty,ir=Object.getOwnPropertyDescriptor,nr=(i,t,e,r)=>{for(var n=r>1?void 0:r?ir(t,e):t,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(t,e,n):o(n))||n);return r&&n&&rr(t,e,n),n};class rt extends w{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=Qe()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(this.wrapperRef.value){const t=this.application.settings;t!=null&&t.branding&&te(t.branding,this.wrapperRef.value)}}firstUpdated(t){this.applyBranding()}render(){return this.application.renderStrategy===A.Trigger&&this.renderRoot.host.classList.add("floating"),k`<div class="widget-container" ${tr(this.wrapperRef)}>
174
178
  ${er(this.nodes,t=>t)}
175
- </div>`}}rt.styles=D`
179
+ </div>`}}rt.styles=B`
176
180
  :host {
177
181
  --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
178
182
  --spacing-xs: 0.2rem;
@@ -250,8 +254,8 @@
250
254
  opacity: 0;
251
255
  animation: slideDown 0.3s linear;
252
256
  }
253
- `;nr([y({attribute:!1})],rt.prototype,"application",2);class sr{constructor(){this.root=this.createRoot()}createComponentModel(t,e){this.root.application=e;const r=a=>{if(Array.isArray(a)){const[c,...h]=a;return{definitionId:c,overrides:h}}return{definitionId:a,overrides:[]}},n=(a,c,h,d)=>{h.forEach(l=>{const f=r(l),u=d[f.definitionId];if(!u){console.error(`No definition found for component type '${f.definitionId}'.`);return}const g=a.createNode(u.type,u.type);g&&(g.name=f.definitionId,g.application=e,u.properties&&g.writeProperties(u.properties),u.context&&g.writeContext(u.context),u.layout&&g.writeLayout(u.layout),c.addChild(g),u.children&&n(a,g,u.children,d))})},{entry:s,components:o}=t;return n(this,this.root,[s],o),this.root}createRoot(){return new rt}createNode(t,e){const r=this.resolveComponent(e);if(!r)return console.warn(`Unable to resolve component: ${e}`),new _t;const n=new r;return n.type=e,n.name=t,n}resolveComponent(t){return customElements.get(`ace-${t}`)}getRoot(){return this.root}}const ie=class{constructor(){this.components=new Map}getComponent(i){const t=this.components.get(i);return t||console.warn(`Unable to resolve component: ${i}. You most likely forgot to register the required plugin.`),t}registerComponent(i,t){this.components.set(i,t)}async loadComponents(){const i=[...this.components.entries()].map(([t,e])=>e.then(r=>{this.defineAsWebComponent(t,r.default)}));await Promise.all(i)}defineAsWebComponent(i,t){const e=ie.ResolveWebComponentName(i);customElements.get(e)||customElements.define(e,t)}};let ne=ie;ne.ResolveWebComponentName=i=>`ace-${i}`;class se{constructor(t,e,r,n){this.name=t,this.container=e,this.settings=r,this.options=n,this.platform=new sr,this.renderStrategy=A.Inline,this.autoActivate=!1,this.plugins=[],this.componentResolver=new ne,this.renderStrategy=this.options.renderStrategy||A.Inline,this.triggerIcon=this.options.triggerIcon,typeof n.autoActivate=="boolean"&&(this.autoActivate=n.autoActivate),this.container.register("$settings",r)}async activate(){if(await this.loadPlugins(),await this.componentResolver.loadComponents(),this.root=this.platform.createComponentModel(this.settings,this),this.container.setState(Gt.Ready),this.autoActivate){const t=this.render();t&&document.body.appendChild(t)}}async loadPlugins(){for await(const t of this.plugins)await t(this)}plugin(t){return this.plugins.push(t),this}appendToDOM(){this.root&&(this.root.classList.add("expanded"),this.root.classList.remove("hidden"),document.body.appendChild(this.root))}hide(){this.root&&(this.root.classList.add("hidden"),this.root.classList.remove("expanded"))}registerComponent(t,e){this.componentResolver.registerComponent(t,e)}resolveComponent(t){return this.componentResolver.getComponent(t)}render(){if(this.renderStrategy===A.Trigger){const t=new b;return t.application=this,t}return this.root}}const oe=class{static async getSite(i){const e=await(await fetch(i)).json();return e?{id:e.id,apps:e.widgets.map(r=>{let n=A.Inline;return r.renderStrategy==="Trigger"&&(n=A.Trigger),{id:r.id,widgetId:r.widgetId,renderStrategy:n,autoActivate:r.autoActivate,triggerIcon:{type:"Telia",content:r.triggerIcon}}})}:null}static async getWidget(i){const e=await(await fetch(`${oe.endpoint}/widget/${i}`)).json();return e?{name:e.name,config:JSON.parse(e.configuration)}:null}};let vt=oe;vt.endpoint="https://widgets.ace.teliacompany.net/api";class ae{constructor(){this.applications=[],this.container=new gt("environment",this),setTimeout(()=>{this.notifyWidgetsOfCreation()},1e3)}async bootstrap(){await this.activate()}async activate(){const t=this.applications.filter(e=>e.autoActivate);for await(const e of t)await e.activate()}notifyWidgetsOfCreation(){document.querySelectorAll("ace-widget").forEach(e=>{const r=this.applications.find(n=>n.name===e.name);r&&e.dispatchEvent(new CustomEvent("environment-created",{detail:{widget:r}}))})}registerApp(t,e,r){const n=new gt(t,this),s=new se(t,n,e,r);this.applications.push(s)}}class ce{constructor(t){this.configurations=[],typeof t=="string"?this.url=t:this.loadFromConfig(t)}async load(t){const e=await vt.getSite(t);if(!e){console.warn(`Unable to load site from the url provided: ${t}`);return}this.configurations=e.apps}loadFromConfig(t){this.configurations=t.apps.map(e=>({id:"",renderStrategy:e.renderStrategy,widgetId:e.widgetId,autoActivate:e.autoActivate,triggerIcon:{type:"Telia",content:e.triggerIcon||"question"}}))}async bootstrap(t){var e;this.url&&await this.load(this.url),this.environment=new ae,this.addGlobal(this.environment);for await(const r of this.configurations){const n=await vt.getWidget(r.widgetId);n&&((e=this.environment)==null||e.registerApp(n.name,n.config,{renderStrategy:r.renderStrategy,triggerIcon:r.triggerIcon,autoActivate:r.autoActivate}))}t(this.environment),await this.environment.bootstrap()}addGlobal(t){globalThis.widgets=t}}var or=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,$t=(i,t,e,r)=>{for(var n=r>1?void 0:r?ar(t,e):t,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(t,e,n):o(n))||n);return r&&n&&or(t,e,n),n};class U extends w{constructor(){super(),this.status="deactivated",this.addEventListener("environment-created",this.onEnvironmentCreated)}async connectedCallback(){super.connectedCallback(),await this.getGlobalEnvironment()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("environment-created",this.onEnvironmentCreated)}async onEnvironmentCreated(t){this.widget=t.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const t=globalThis.widgets;t&&(this.widget=t.applications.find(e=>e.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return p;if(this.widget.renderStrategy===A.Trigger){const t=new b;return t.application=this.widget,t}return this.widget.render()}}U.styles=[D`
257
+ `;nr([y({attribute:!1})],rt.prototype,"application",2);class sr{constructor(){this.root=this.createRoot()}createComponentModel(t,e){this.root.application=e;const r=a=>{if(Array.isArray(a)){const[c,...l]=a;return{definitionId:c,overrides:l}}return{definitionId:a,overrides:[]}},n=(a,c,l,d)=>{l.forEach(h=>{const f=r(h),u=d[f.definitionId];if(!u){console.error(`No definition found for component type '${f.definitionId}'.`);return}const g=a.createNode(u.type,u.type);g&&(g.name=f.definitionId,g.application=e,u.properties&&g.writeProperties(u.properties),u.context&&g.writeContext(u.context),u.layout&&g.writeLayout(u.layout),c.addChild(g),u.children&&n(a,g,u.children,d))})},{entry:s,components:o}=t;return n(this,this.root,[s],o),this.root}createRoot(){return new rt}createNode(t,e){const r=this.resolveComponent(e);if(!r)return console.warn(`Unable to resolve component: ${e}`),new _t;const n=new r;return n.type=e,n.name=t,n}resolveComponent(t){return customElements.get(`ace-${t}`)}getRoot(){return this.root}}const ie=class{constructor(){this.components=new Map}getComponent(i){const t=this.components.get(i);return t||console.warn(`Unable to resolve component: ${i}. You most likely forgot to register the required plugin.`),t}registerComponent(i,t){this.components.set(i,t)}async loadComponents(){const i=[...this.components.entries()].map(([t,e])=>e.then(r=>{this.defineAsWebComponent(t,r.default)}));await Promise.all(i)}defineAsWebComponent(i,t){const e=ie.ResolveWebComponentName(i);customElements.get(e)||customElements.define(e,t)}};let ne=ie;ne.ResolveWebComponentName=i=>`ace-${i}`;class se{constructor(t,e,r,n){this.name=t,this.container=e,this.settings=r,this.options=n,this.platform=new sr,this.renderStrategy=A.Inline,this.autoActivate=!1,this.plugins=[],this.componentResolver=new ne,this.renderStrategy=this.options.renderStrategy||A.Inline,this.triggerIcon=this.options.triggerIcon,typeof n.autoActivate=="boolean"&&(this.autoActivate=n.autoActivate),this.container.register("$settings",r)}async activate(){if(await this.loadPlugins(),await this.componentResolver.loadComponents(),this.root=this.platform.createComponentModel(this.settings,this),this.container.setState(Gt.Ready),this.autoActivate){const t=this.render();t&&document.body.appendChild(t)}}async loadPlugins(){for await(const t of this.plugins)await t(this)}branding(){return this.settings.branding||{}}plugin(t){return this.plugins.push(t),this}appendToDOM(){this.root&&(this.root.classList.add("expanded"),this.root.classList.remove("hidden"),document.body.appendChild(this.root))}hide(){this.root&&(this.root.classList.add("hidden"),this.root.classList.remove("expanded"))}registerComponent(t,e){this.componentResolver.registerComponent(t,e)}resolveComponent(t){return this.componentResolver.getComponent(t)}render(){if(this.renderStrategy===A.Trigger){const t=new b;return t.application=this,t}return this.root}}const oe=class{static async getSite(i){const e=await(await fetch(i)).json();return e?{id:e.id,apps:e.widgets.map(r=>{let n=A.Inline;return r.renderStrategy==="Trigger"&&(n=A.Trigger),{id:r.id,widgetId:r.widgetId,renderStrategy:n,autoActivate:r.autoActivate,triggerIcon:{type:"Telia",content:r.triggerIcon}}})}:null}static async getWidget(i){const e=await(await fetch(`${oe.endpoint}/widget/${i}`)).json();return e?{name:e.name,config:JSON.parse(e.configuration)}:null}};let vt=oe;vt.endpoint="https://widgets.ace.teliacompany.net/api";class ae{constructor(){this.applications=[],this.container=new gt("environment",this),setTimeout(()=>{this.notifyWidgetsOfCreation()},1e3)}async bootstrap(){await this.activate()}async activate(){const t=this.applications.filter(e=>e.autoActivate);for await(const e of t)await e.activate()}notifyWidgetsOfCreation(){document.querySelectorAll("ace-widget").forEach(e=>{const r=this.applications.find(n=>n.name===e.name);r&&e.dispatchEvent(new CustomEvent("environment-created",{detail:{widget:r}}))})}registerApp(t,e,r){const n=new gt(t,this),s=new se(t,n,e,r);this.applications.push(s)}}class ce{constructor(t){this.configurations=[],typeof t=="string"?this.url=t:this.loadFromConfig(t)}async load(t){const e=await vt.getSite(t);if(!e){console.warn(`Unable to load site from the url provided: ${t}`);return}this.configurations=e.apps}loadFromConfig(t){this.configurations=t.apps.map(e=>({id:"",renderStrategy:e.renderStrategy,widgetId:e.widgetId,autoActivate:e.autoActivate,triggerIcon:{type:"Telia",content:e.triggerIcon||"question"}}))}async bootstrap(t){var e;this.url&&await this.load(this.url),this.environment=new ae,this.addGlobal(this.environment);for await(const r of this.configurations){const n=await vt.getWidget(r.widgetId);n&&((e=this.environment)==null||e.registerApp(n.name,n.config,{renderStrategy:r.renderStrategy,triggerIcon:r.triggerIcon,autoActivate:r.autoActivate}))}t(this.environment),await this.environment.bootstrap()}addGlobal(t){globalThis.widgets=t}}var or=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,$t=(i,t,e,r)=>{for(var n=r>1?void 0:r?ar(t,e):t,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(t,e,n):o(n))||n);return r&&n&&or(t,e,n),n};class U extends w{constructor(){super(),this.status="deactivated",this.addEventListener("environment-created",this.onEnvironmentCreated)}async connectedCallback(){super.connectedCallback(),await this.getGlobalEnvironment()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("environment-created",this.onEnvironmentCreated)}async onEnvironmentCreated(t){this.widget=t.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const t=globalThis.widgets;t&&(this.widget=t.applications.find(e=>e.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return p;if(this.widget.renderStrategy===A.Trigger){const t=new b;return t.application=this.widget,t}return this.widget.render()}}U.styles=[B`
254
258
  :host {
255
259
  display: block;
256
260
  }
257
- `];$t([y({attribute:!0})],U.prototype,"name",2);$t([z()],U.prototype,"widget",2);$t([z()],U.prototype,"status",2);customElements.get("ace-trigger")||customElements.define("ace-trigger",b);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",_t);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",rt);customElements.get("ace-widget")||customElements.define("ace-widget",U);const cr=async(i,t)=>{await new ce(i).bootstrap(t)};exports.AceWidget=U;exports.Application=se;exports.Container=gt;exports.Environment=ae;exports.Site=ce;exports.Trigger=b;exports.WidgetComponent=ee;exports.bootstrap=cr;
261
+ `];$t([y({attribute:!0})],U.prototype,"name",2);$t([W()],U.prototype,"widget",2);$t([W()],U.prototype,"status",2);customElements.get("ace-trigger")||customElements.define("ace-trigger",b);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",_t);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",rt);customElements.get("ace-widget")||customElements.define("ace-widget",U);const cr=async(i,t)=>{await new ce(i).bootstrap(t)};exports.AceWidget=U;exports.Application=se;exports.Container=gt;exports.Environment=ae;exports.Site=ce;exports.Trigger=b;exports.WidgetComponent=ee;exports.bootstrap=cr;
package/index.mjs CHANGED
@@ -6,7 +6,7 @@ var ht = function(i, t) {
6
6
  Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
7
7
  }, ht(i, t);
8
8
  };
9
- function N(i, t) {
9
+ function L(i, t) {
10
10
  if (typeof t != "function" && t !== null)
11
11
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
12
12
  ht(i, t);
@@ -15,7 +15,7 @@ function N(i, t) {
15
15
  }
16
16
  i.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
17
17
  }
18
- function ut(i) {
18
+ function pt(i) {
19
19
  var t = typeof Symbol == "function" && Symbol.iterator, e = t && i[t], r = 0;
20
20
  if (e)
21
21
  return e.call(i);
@@ -27,7 +27,7 @@ function ut(i) {
27
27
  };
28
28
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
29
29
  }
30
- function q(i, t) {
30
+ function F(i, t) {
31
31
  var e = typeof Symbol == "function" && i[Symbol.iterator];
32
32
  if (!e)
33
33
  return i;
@@ -47,7 +47,7 @@ function q(i, t) {
47
47
  }
48
48
  return s;
49
49
  }
50
- function F(i, t, e) {
50
+ function J(i, t, e) {
51
51
  if (e || arguments.length === 2)
52
52
  for (var r = 0, n = t.length, s; r < n; r++)
53
53
  (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
@@ -71,7 +71,7 @@ var it = Nt(function(i) {
71
71
  `) : "", this.name = "UnsubscriptionError", this.errors = e;
72
72
  };
73
73
  });
74
- function pt(i, t) {
74
+ function ut(i, t) {
75
75
  if (i) {
76
76
  var e = i.indexOf(t);
77
77
  0 <= e && i.splice(e, 1);
@@ -89,9 +89,9 @@ var X = function() {
89
89
  if (o)
90
90
  if (this._parentage = null, Array.isArray(o))
91
91
  try {
92
- for (var a = ut(o), c = a.next(); !c.done; c = a.next()) {
93
- var h = c.value;
94
- h.remove(this);
92
+ for (var a = pt(o), c = a.next(); !c.done; c = a.next()) {
93
+ var l = c.value;
94
+ l.remove(this);
95
95
  }
96
96
  } catch (v) {
97
97
  t = { error: v };
@@ -112,23 +112,23 @@ var X = function() {
112
112
  } catch (v) {
113
113
  s = v instanceof it ? v.errors : [v];
114
114
  }
115
- var l = this._finalizers;
116
- if (l) {
115
+ var h = this._finalizers;
116
+ if (h) {
117
117
  this._finalizers = null;
118
118
  try {
119
- for (var f = ut(l), u = f.next(); !u.done; u = f.next()) {
120
- var g = u.value;
119
+ for (var f = pt(h), p = f.next(); !p.done; p = f.next()) {
120
+ var g = p.value;
121
121
  try {
122
122
  $t(g);
123
123
  } catch (v) {
124
- s = s ?? [], v instanceof it ? s = F(F([], q(s)), q(v.errors)) : s.push(v);
124
+ s = s ?? [], v instanceof it ? s = J(J([], F(s)), F(v.errors)) : s.push(v);
125
125
  }
126
126
  }
127
127
  } catch (v) {
128
128
  r = { error: v };
129
129
  } finally {
130
130
  try {
131
- u && !u.done && (n = f.return) && n.call(f);
131
+ p && !p.done && (n = f.return) && n.call(f);
132
132
  } finally {
133
133
  if (r)
134
134
  throw r.error;
@@ -159,10 +159,10 @@ var X = function() {
159
159
  this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
160
160
  }, i.prototype._removeParent = function(t) {
161
161
  var e = this._parentage;
162
- e === t ? this._parentage = null : Array.isArray(e) && pt(e, t);
162
+ e === t ? this._parentage = null : Array.isArray(e) && ut(e, t);
163
163
  }, i.prototype.remove = function(t) {
164
164
  var e = this._finalizers;
165
- e && pt(e, t), t instanceof i && t._removeParent(this);
165
+ e && ut(e, t), t instanceof i && t._removeParent(this);
166
166
  }, i.EMPTY = function() {
167
167
  var t = new i();
168
168
  return t.closed = !0, t;
@@ -185,7 +185,7 @@ var Bt = {
185
185
  for (var e = [], r = 2; r < arguments.length; r++)
186
186
  e[r - 2] = arguments[r];
187
187
  var n = dt.delegate;
188
- return n != null && n.setTimeout ? n.setTimeout.apply(n, F([i, t], q(e))) : setTimeout.apply(void 0, F([i, t], q(e)));
188
+ return n != null && n.setTimeout ? n.setTimeout.apply(n, J([i, t], F(e))) : setTimeout.apply(void 0, J([i, t], F(e)));
189
189
  },
190
190
  clearTimeout: function(i) {
191
191
  var t = dt.delegate;
@@ -200,11 +200,11 @@ function se(i) {
200
200
  }
201
201
  function wt() {
202
202
  }
203
- function V(i) {
203
+ function Y(i) {
204
204
  i();
205
205
  }
206
206
  var zt = function(i) {
207
- N(t, i);
207
+ L(t, i);
208
208
  function t(e) {
209
209
  var r = i.call(this) || this;
210
210
  return r.isStopped = !1, e ? (r.destination = e, Dt(e) && e.add(r)) : r.destination = le, r;
@@ -248,7 +248,7 @@ var ae = function() {
248
248
  try {
249
249
  e.next(t);
250
250
  } catch (r) {
251
- W(r);
251
+ G(r);
252
252
  }
253
253
  }, i.prototype.error = function(t) {
254
254
  var e = this.partialObserver;
@@ -256,21 +256,21 @@ var ae = function() {
256
256
  try {
257
257
  e.error(t);
258
258
  } catch (r) {
259
- W(r);
259
+ G(r);
260
260
  }
261
261
  else
262
- W(t);
262
+ G(t);
263
263
  }, i.prototype.complete = function() {
264
264
  var t = this.partialObserver;
265
265
  if (t.complete)
266
266
  try {
267
267
  t.complete();
268
268
  } catch (e) {
269
- W(e);
269
+ G(e);
270
270
  }
271
271
  }, i;
272
272
  }(), ft = function(i) {
273
- N(t, i);
273
+ L(t, i);
274
274
  function t(e, r, n) {
275
275
  var s = i.call(this) || this, o;
276
276
  if (m(e) || !e)
@@ -293,7 +293,7 @@ var ae = function() {
293
293
  }
294
294
  return t;
295
295
  }(zt);
296
- function W(i) {
296
+ function G(i) {
297
297
  se(i);
298
298
  }
299
299
  function ce(i) {
@@ -307,11 +307,11 @@ var le = {
307
307
  }, he = function() {
308
308
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
309
309
  }();
310
- function ue(i) {
310
+ function pe(i) {
311
311
  return i;
312
312
  }
313
- function pe(i) {
314
- return i.length === 0 ? ue : i.length === 1 ? i[0] : function(e) {
313
+ function ue(i) {
314
+ return i.length === 0 ? pe : i.length === 1 ? i[0] : function(e) {
315
315
  return i.reduce(function(r, n) {
316
316
  return n(r);
317
317
  }, e);
@@ -326,7 +326,7 @@ var At = function() {
326
326
  return e.source = this, e.operator = t, e;
327
327
  }, i.prototype.subscribe = function(t, e, r) {
328
328
  var n = this, s = fe(t) ? t : new ft(t, e, r);
329
- return V(function() {
329
+ return Y(function() {
330
330
  var o = n, a = o.operator, c = o.source;
331
331
  s.add(a ? a.call(s, c) : c ? n._subscribe(s) : n._trySubscribe(s));
332
332
  }), s;
@@ -360,7 +360,7 @@ var At = function() {
360
360
  }, i.prototype.pipe = function() {
361
361
  for (var t = [], e = 0; e < arguments.length; e++)
362
362
  t[e] = arguments[e];
363
- return pe(t)(this);
363
+ return ue(t)(this);
364
364
  }, i.prototype.toPromise = function(t) {
365
365
  var e = this;
366
366
  return t = St(t), new t(function(r, n) {
@@ -392,7 +392,7 @@ var ge = Nt(function(i) {
392
392
  i(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
393
393
  };
394
394
  }), Wt = function(i) {
395
- N(t, i);
395
+ L(t, i);
396
396
  function t() {
397
397
  var e = i.call(this) || this;
398
398
  return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
@@ -405,17 +405,17 @@ var ge = Nt(function(i) {
405
405
  throw new ge();
406
406
  }, t.prototype.next = function(e) {
407
407
  var r = this;
408
- V(function() {
408
+ Y(function() {
409
409
  var n, s;
410
410
  if (r._throwIfClosed(), !r.isStopped) {
411
411
  r.currentObservers || (r.currentObservers = Array.from(r.observers));
412
412
  try {
413
- for (var o = ut(r.currentObservers), a = o.next(); !a.done; a = o.next()) {
413
+ for (var o = pt(r.currentObservers), a = o.next(); !a.done; a = o.next()) {
414
414
  var c = a.value;
415
415
  c.next(e);
416
416
  }
417
- } catch (h) {
418
- n = { error: h };
417
+ } catch (l) {
418
+ n = { error: l };
419
419
  } finally {
420
420
  try {
421
421
  a && !a.done && (s = o.return) && s.call(o);
@@ -428,7 +428,7 @@ var ge = Nt(function(i) {
428
428
  });
429
429
  }, t.prototype.error = function(e) {
430
430
  var r = this;
431
- V(function() {
431
+ Y(function() {
432
432
  if (r._throwIfClosed(), !r.isStopped) {
433
433
  r.hasError = r.isStopped = !0, r.thrownError = e;
434
434
  for (var n = r.observers; n.length; )
@@ -437,7 +437,7 @@ var ge = Nt(function(i) {
437
437
  });
438
438
  }, t.prototype.complete = function() {
439
439
  var e = this;
440
- V(function() {
440
+ Y(function() {
441
441
  if (e._throwIfClosed(), !e.isStopped) {
442
442
  e.isStopped = !0;
443
443
  for (var r = e.observers; r.length; )
@@ -460,7 +460,7 @@ var ge = Nt(function(i) {
460
460
  }, t.prototype._innerSubscribe = function(e) {
461
461
  var r = this, n = this, s = n.hasError, o = n.isStopped, a = n.observers;
462
462
  return s || o ? Lt : (this.currentObservers = null, a.push(e), new X(function() {
463
- r.currentObservers = null, pt(a, e);
463
+ r.currentObservers = null, ut(a, e);
464
464
  }));
465
465
  }, t.prototype._checkFinalizedStatuses = function(e) {
466
466
  var r = this, n = r.hasError, s = r.thrownError, o = r.isStopped;
@@ -472,7 +472,7 @@ var ge = Nt(function(i) {
472
472
  return new Et(e, r);
473
473
  }, t;
474
474
  }(At), Et = function(i) {
475
- N(t, i);
475
+ L(t, i);
476
476
  function t(e, r) {
477
477
  var n = i.call(this) || this;
478
478
  return n.destination = e, n.source = r, n;
@@ -491,7 +491,7 @@ var ge = Nt(function(i) {
491
491
  return (n = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(e)) !== null && n !== void 0 ? n : Lt;
492
492
  }, t;
493
493
  }(Wt), ve = function(i) {
494
- N(t, i);
494
+ L(t, i);
495
495
  function t(e) {
496
496
  var r = i.call(this) || this;
497
497
  return r._value = e, r;
@@ -539,7 +539,7 @@ class Ct {
539
539
  * Copyright 2019 Google LLC
540
540
  * SPDX-License-Identifier: BSD-3-Clause
541
541
  */
542
- const Y = globalThis, vt = Y.ShadowRoot && (Y.ShadyCSS === void 0 || Y.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, yt = Symbol(), xt = /* @__PURE__ */ new WeakMap();
542
+ const q = globalThis, vt = q.ShadowRoot && (q.ShadyCSS === void 0 || q.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, yt = Symbol(), xt = /* @__PURE__ */ new WeakMap();
543
543
  let Vt = class {
544
544
  constructor(t, e, r) {
545
545
  if (this._$cssResult$ = !0, r !== yt)
@@ -559,7 +559,7 @@ let Vt = class {
559
559
  return this.cssText;
560
560
  }
561
561
  };
562
- const ye = (i) => new Vt(typeof i == "string" ? i : i + "", void 0, yt), L = (i, ...t) => {
562
+ const ye = (i) => new Vt(typeof i == "string" ? i : i + "", void 0, yt), D = (i, ...t) => {
563
563
  const e = i.length === 1 ? i[0] : t.reduce((r, n, s) => r + ((o) => {
564
564
  if (o._$cssResult$ === !0)
565
565
  return o.cssText;
@@ -573,7 +573,7 @@ const ye = (i) => new Vt(typeof i == "string" ? i : i + "", void 0, yt), L = (i,
573
573
  i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
574
574
  else
575
575
  for (const e of t) {
576
- const r = document.createElement("style"), n = Y.litNonce;
576
+ const r = document.createElement("style"), n = q.litNonce;
577
577
  n !== void 0 && r.setAttribute("nonce", n), r.textContent = e.cssText, i.appendChild(r);
578
578
  }
579
579
  }, Pt = vt ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
@@ -587,7 +587,7 @@ const ye = (i) => new Vt(typeof i == "string" ? i : i + "", void 0, yt), L = (i,
587
587
  * Copyright 2017 Google LLC
588
588
  * SPDX-License-Identifier: BSD-3-Clause
589
589
  */
590
- const { is: be, defineProperty: _e, getOwnPropertyDescriptor: $e, getOwnPropertyNames: we, getOwnPropertySymbols: Ae, getPrototypeOf: Se } = Object, _ = globalThis, Tt = _.trustedTypes, Ee = Tt ? Tt.emptyScript : "", st = _.reactiveElementPolyfillSupport, R = (i, t) => i, J = { toAttribute(i, t) {
590
+ const { is: be, defineProperty: _e, getOwnPropertyDescriptor: $e, getOwnPropertyNames: we, getOwnPropertySymbols: Ae, getPrototypeOf: Se } = Object, _ = globalThis, Tt = _.trustedTypes, Ee = Tt ? Tt.emptyScript : "", st = _.reactiveElementPolyfillSupport, R = (i, t) => i, K = { toAttribute(i, t) {
591
591
  switch (t) {
592
592
  case Boolean:
593
593
  i = i ? Ee : null;
@@ -615,7 +615,7 @@ const { is: be, defineProperty: _e, getOwnPropertyDescriptor: $e, getOwnProperty
615
615
  }
616
616
  }
617
617
  return e;
618
- } }, mt = (i, t) => !be(i, t), Ot = { attribute: !0, type: String, converter: J, reflect: !1, hasChanged: mt };
618
+ } }, mt = (i, t) => !be(i, t), Ot = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged: mt };
619
619
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _.litPropertyMetadata ?? (_.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
620
620
  class T extends HTMLElement {
621
621
  static addInitializer(t) {
@@ -736,7 +736,7 @@ class T extends HTMLElement {
736
736
  var s;
737
737
  const r = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, r);
738
738
  if (n !== void 0 && r.reflect === !0) {
739
- const o = (((s = r.converter) == null ? void 0 : s.toAttribute) !== void 0 ? r.converter : J).toAttribute(e, r.type);
739
+ const o = (((s = r.converter) == null ? void 0 : s.toAttribute) !== void 0 ? r.converter : K).toAttribute(e, r.type);
740
740
  this._$Em = t, o == null ? this.removeAttribute(n) : this.setAttribute(n, o), this._$Em = null;
741
741
  }
742
742
  }
@@ -744,7 +744,7 @@ class T extends HTMLElement {
744
744
  var s;
745
745
  const r = this.constructor, n = r._$Eh.get(t);
746
746
  if (n !== void 0 && this._$Em !== n) {
747
- const o = r.getPropertyOptions(n), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? o.converter : J;
747
+ const o = r.getPropertyOptions(n), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? o.converter : K;
748
748
  this._$Em = n, this[n] = a.fromAttribute(e, o.type), this._$Em = null;
749
749
  }
750
750
  }
@@ -834,9 +834,9 @@ T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[R("elementProper
834
834
  * Copyright 2017 Google LLC
835
835
  * SPDX-License-Identifier: BSD-3-Clause
836
836
  */
837
- const I = globalThis, K = I.trustedTypes, Ut = K ? K.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Yt = "$lit$", b = `lit$${(Math.random() + "").slice(9)}$`, qt = "?" + b, Ce = `<${qt}>`, x = document, k = () => x.createComment(""), j = (i) => i === null || typeof i != "object" && typeof i != "function", Ft = Array.isArray, xe = (i) => Ft(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", ot = `[
837
+ const I = globalThis, Z = I.trustedTypes, Ut = Z ? Z.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Yt = "$lit$", b = `lit$${(Math.random() + "").slice(9)}$`, qt = "?" + b, Ce = `<${qt}>`, x = document, j = () => x.createComment(""), H = (i) => i === null || typeof i != "object" && typeof i != "function", Ft = Array.isArray, xe = (i) => Ft(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", ot = `[
838
838
  \f\r]`, U = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Rt = /-->/g, It = />/g, S = RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^
839
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Mt = /'/g, kt = /"/g, Jt = /^(?:script|style|textarea|title)$/i, Pe = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), Z = Pe(1), P = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), jt = /* @__PURE__ */ new WeakMap(), C = x.createTreeWalker(x, 129);
839
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Mt = /'/g, kt = /"/g, Jt = /^(?:script|style|textarea|title)$/i, Pe = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), M = Pe(1), P = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), jt = /* @__PURE__ */ new WeakMap(), C = x.createTreeWalker(x, 129);
840
840
  function Kt(i, t) {
841
841
  if (!Array.isArray(i) || !i.hasOwnProperty("raw"))
842
842
  throw Error("invalid template strings array");
@@ -847,49 +847,49 @@ const Te = (i, t) => {
847
847
  let n, s = t === 2 ? "<svg>" : "", o = U;
848
848
  for (let a = 0; a < e; a++) {
849
849
  const c = i[a];
850
- let h, d, l = -1, f = 0;
850
+ let l, d, h = -1, f = 0;
851
851
  for (; f < c.length && (o.lastIndex = f, d = o.exec(c), d !== null); )
852
- f = o.lastIndex, o === U ? d[1] === "!--" ? o = Rt : d[1] !== void 0 ? o = It : d[2] !== void 0 ? (Jt.test(d[2]) && (n = RegExp("</" + d[2], "g")), o = S) : d[3] !== void 0 && (o = S) : o === S ? d[0] === ">" ? (o = n ?? U, l = -1) : d[1] === void 0 ? l = -2 : (l = o.lastIndex - d[2].length, h = d[1], o = d[3] === void 0 ? S : d[3] === '"' ? kt : Mt) : o === kt || o === Mt ? o = S : o === Rt || o === It ? o = U : (o = S, n = void 0);
853
- const u = o === S && i[a + 1].startsWith("/>") ? " " : "";
854
- s += o === U ? c + Ce : l >= 0 ? (r.push(h), c.slice(0, l) + Yt + c.slice(l) + b + u) : c + b + (l === -2 ? a : u);
852
+ f = o.lastIndex, o === U ? d[1] === "!--" ? o = Rt : d[1] !== void 0 ? o = It : d[2] !== void 0 ? (Jt.test(d[2]) && (n = RegExp("</" + d[2], "g")), o = S) : d[3] !== void 0 && (o = S) : o === S ? d[0] === ">" ? (o = n ?? U, h = -1) : d[1] === void 0 ? h = -2 : (h = o.lastIndex - d[2].length, l = d[1], o = d[3] === void 0 ? S : d[3] === '"' ? kt : Mt) : o === kt || o === Mt ? o = S : o === Rt || o === It ? o = U : (o = S, n = void 0);
853
+ const p = o === S && i[a + 1].startsWith("/>") ? " " : "";
854
+ s += o === U ? c + Ce : h >= 0 ? (r.push(l), c.slice(0, h) + Yt + c.slice(h) + b + p) : c + b + (h === -2 ? a : p);
855
855
  }
856
856
  return [Kt(i, s + (i[e] || "<?>") + (t === 2 ? "</svg>" : "")), r];
857
857
  };
858
- class H {
858
+ class N {
859
859
  constructor({ strings: t, _$litType$: e }, r) {
860
860
  let n;
861
861
  this.parts = [];
862
862
  let s = 0, o = 0;
863
- const a = t.length - 1, c = this.parts, [h, d] = Te(t, e);
864
- if (this.el = H.createElement(h, r), C.currentNode = this.el.content, e === 2) {
865
- const l = this.el.content.firstChild;
866
- l.replaceWith(...l.childNodes);
863
+ const a = t.length - 1, c = this.parts, [l, d] = Te(t, e);
864
+ if (this.el = N.createElement(l, r), C.currentNode = this.el.content, e === 2) {
865
+ const h = this.el.content.firstChild;
866
+ h.replaceWith(...h.childNodes);
867
867
  }
868
868
  for (; (n = C.nextNode()) !== null && c.length < a; ) {
869
869
  if (n.nodeType === 1) {
870
870
  if (n.hasAttributes())
871
- for (const l of n.getAttributeNames())
872
- if (l.endsWith(Yt)) {
873
- const f = d[o++], u = n.getAttribute(l).split(b), g = /([.?@])?(.*)/.exec(f);
874
- c.push({ type: 1, index: s, name: g[2], strings: u, ctor: g[1] === "." ? Ue : g[1] === "?" ? Re : g[1] === "@" ? Ie : tt }), n.removeAttribute(l);
871
+ for (const h of n.getAttributeNames())
872
+ if (h.endsWith(Yt)) {
873
+ const f = d[o++], p = n.getAttribute(h).split(b), g = /([.?@])?(.*)/.exec(f);
874
+ c.push({ type: 1, index: s, name: g[2], strings: p, ctor: g[1] === "." ? Ue : g[1] === "?" ? Re : g[1] === "@" ? Ie : tt }), n.removeAttribute(h);
875
875
  } else
876
- l.startsWith(b) && (c.push({ type: 6, index: s }), n.removeAttribute(l));
876
+ h.startsWith(b) && (c.push({ type: 6, index: s }), n.removeAttribute(h));
877
877
  if (Jt.test(n.tagName)) {
878
- const l = n.textContent.split(b), f = l.length - 1;
878
+ const h = n.textContent.split(b), f = h.length - 1;
879
879
  if (f > 0) {
880
- n.textContent = K ? K.emptyScript : "";
881
- for (let u = 0; u < f; u++)
882
- n.append(l[u], k()), C.nextNode(), c.push({ type: 2, index: ++s });
883
- n.append(l[f], k());
880
+ n.textContent = Z ? Z.emptyScript : "";
881
+ for (let p = 0; p < f; p++)
882
+ n.append(h[p], j()), C.nextNode(), c.push({ type: 2, index: ++s });
883
+ n.append(h[f], j());
884
884
  }
885
885
  }
886
886
  } else if (n.nodeType === 8)
887
887
  if (n.data === qt)
888
888
  c.push({ type: 2, index: s });
889
889
  else {
890
- let l = -1;
891
- for (; (l = n.data.indexOf(b, l + 1)) !== -1; )
892
- c.push({ type: 7, index: s }), l += b.length - 1;
890
+ let h = -1;
891
+ for (; (h = n.data.indexOf(b, h + 1)) !== -1; )
892
+ c.push({ type: 7, index: s }), h += b.length - 1;
893
893
  }
894
894
  s++;
895
895
  }
@@ -904,7 +904,7 @@ function O(i, t, e = i, r) {
904
904
  if (t === P)
905
905
  return t;
906
906
  let n = r !== void 0 ? (o = e._$Co) == null ? void 0 : o[r] : e._$Cl;
907
- const s = j(t) ? void 0 : t._$litDirective$;
907
+ const s = H(t) ? void 0 : t._$litDirective$;
908
908
  return (n == null ? void 0 : n.constructor) !== s && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), s === void 0 ? n = void 0 : (n = new s(i), n._$AT(i, e, r)), r !== void 0 ? (e._$Co ?? (e._$Co = []))[r] = n : e._$Cl = n), n !== void 0 && (t = O(i, n._$AS(i, t.values), n, r)), t;
909
909
  }
910
910
  class Oe {
@@ -923,8 +923,8 @@ class Oe {
923
923
  let s = C.nextNode(), o = 0, a = 0, c = r[0];
924
924
  for (; c !== void 0; ) {
925
925
  if (o === c.index) {
926
- let h;
927
- c.type === 2 ? h = new D(s, s.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(s, c.name, c.strings, this, t) : c.type === 6 && (h = new Me(s, this, t)), this._$AV.push(h), c = r[++a];
926
+ let l;
927
+ c.type === 2 ? l = new B(s, s.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(s, c.name, c.strings, this, t) : c.type === 6 && (l = new Me(s, this, t)), this._$AV.push(l), c = r[++a];
928
928
  }
929
929
  o !== (c == null ? void 0 : c.index) && (s = C.nextNode(), o++);
930
930
  }
@@ -936,13 +936,13 @@ class Oe {
936
936
  r !== void 0 && (r.strings !== void 0 ? (r._$AI(t, r, e), e += r.strings.length - 2) : r._$AI(t[e])), e++;
937
937
  }
938
938
  }
939
- class D {
939
+ class B {
940
940
  get _$AU() {
941
941
  var t;
942
942
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
943
943
  }
944
944
  constructor(t, e, r, n) {
945
- this.type = 2, this._$AH = p, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = r, this.options = n, this._$Cv = (n == null ? void 0 : n.isConnected) ?? !0;
945
+ this.type = 2, this._$AH = u, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = r, this.options = n, this._$Cv = (n == null ? void 0 : n.isConnected) ?? !0;
946
946
  }
947
947
  get parentNode() {
948
948
  let t = this._$AA.parentNode;
@@ -956,7 +956,7 @@ class D {
956
956
  return this._$AB;
957
957
  }
958
958
  _$AI(t, e = this) {
959
- t = O(this, t, e), j(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : xe(t) ? this.T(t) : this._(t);
959
+ t = O(this, t, e), H(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : xe(t) ? this.T(t) : this._(t);
960
960
  }
961
961
  k(t) {
962
962
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -965,11 +965,11 @@ class D {
965
965
  this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
966
966
  }
967
967
  _(t) {
968
- this._$AH !== p && j(this._$AH) ? this._$AA.nextSibling.data = t : this.$(x.createTextNode(t)), this._$AH = t;
968
+ this._$AH !== u && H(this._$AH) ? this._$AA.nextSibling.data = t : this.$(x.createTextNode(t)), this._$AH = t;
969
969
  }
970
970
  g(t) {
971
971
  var s;
972
- const { values: e, _$litType$: r } = t, n = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = H.createElement(Kt(r.h, r.h[0]), this.options)), r);
972
+ const { values: e, _$litType$: r } = t, n = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = N.createElement(Kt(r.h, r.h[0]), this.options)), r);
973
973
  if (((s = this._$AH) == null ? void 0 : s._$AD) === n)
974
974
  this._$AH.p(e);
975
975
  else {
@@ -979,14 +979,14 @@ class D {
979
979
  }
980
980
  _$AC(t) {
981
981
  let e = jt.get(t.strings);
982
- return e === void 0 && jt.set(t.strings, e = new H(t)), e;
982
+ return e === void 0 && jt.set(t.strings, e = new N(t)), e;
983
983
  }
984
984
  T(t) {
985
985
  Ft(this._$AH) || (this._$AH = [], this._$AR());
986
986
  const e = this._$AH;
987
987
  let r, n = 0;
988
988
  for (const s of t)
989
- n === e.length ? e.push(r = new D(this.k(k()), this.k(k()), this, this.options)) : r = e[n], r._$AI(s), n++;
989
+ n === e.length ? e.push(r = new B(this.k(j()), this.k(j()), this, this.options)) : r = e[n], r._$AI(s), n++;
990
990
  n < e.length && (this._$AR(r && r._$AB.nextSibling, n), e.length = n);
991
991
  }
992
992
  _$AR(t = this._$AA.nextSibling, e) {
@@ -1009,23 +1009,23 @@ class tt {
1009
1009
  return this._$AM._$AU;
1010
1010
  }
1011
1011
  constructor(t, e, r, n, s) {
1012
- this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM = n, this.options = s, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = p;
1012
+ this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name = e, this._$AM = n, this.options = s, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = u;
1013
1013
  }
1014
1014
  _$AI(t, e = this, r, n) {
1015
1015
  const s = this.strings;
1016
1016
  let o = !1;
1017
1017
  if (s === void 0)
1018
- t = O(this, t, e, 0), o = !j(t) || t !== this._$AH && t !== P, o && (this._$AH = t);
1018
+ t = O(this, t, e, 0), o = !H(t) || t !== this._$AH && t !== P, o && (this._$AH = t);
1019
1019
  else {
1020
1020
  const a = t;
1021
- let c, h;
1021
+ let c, l;
1022
1022
  for (t = s[0], c = 0; c < s.length - 1; c++)
1023
- h = O(this, a[r + c], e, c), h === P && (h = this._$AH[c]), o || (o = !j(h) || h !== this._$AH[c]), h === p ? t = p : t !== p && (t += (h ?? "") + s[c + 1]), this._$AH[c] = h;
1023
+ l = O(this, a[r + c], e, c), l === P && (l = this._$AH[c]), o || (o = !H(l) || l !== this._$AH[c]), l === u ? t = u : t !== u && (t += (l ?? "") + s[c + 1]), this._$AH[c] = l;
1024
1024
  }
1025
1025
  o && !n && this.O(t);
1026
1026
  }
1027
1027
  O(t) {
1028
- t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
1028
+ t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
1029
1029
  }
1030
1030
  }
1031
1031
  class Ue extends tt {
@@ -1033,7 +1033,7 @@ class Ue extends tt {
1033
1033
  super(...arguments), this.type = 3;
1034
1034
  }
1035
1035
  O(t) {
1036
- this.element[this.name] = t === p ? void 0 : t;
1036
+ this.element[this.name] = t === u ? void 0 : t;
1037
1037
  }
1038
1038
  }
1039
1039
  class Re extends tt {
@@ -1041,7 +1041,7 @@ class Re extends tt {
1041
1041
  super(...arguments), this.type = 4;
1042
1042
  }
1043
1043
  O(t) {
1044
- this.element.toggleAttribute(this.name, !!t && t !== p);
1044
+ this.element.toggleAttribute(this.name, !!t && t !== u);
1045
1045
  }
1046
1046
  }
1047
1047
  class Ie extends tt {
@@ -1049,9 +1049,9 @@ class Ie extends tt {
1049
1049
  super(t, e, r, n, s), this.type = 5;
1050
1050
  }
1051
1051
  _$AI(t, e = this) {
1052
- if ((t = O(this, t, e, 0) ?? p) === P)
1052
+ if ((t = O(this, t, e, 0) ?? u) === P)
1053
1053
  return;
1054
- const r = this._$AH, n = t === p && r !== p || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, s = t !== p && (r === p || n);
1054
+ const r = this._$AH, n = t === u && r !== u || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, s = t !== u && (r === u || n);
1055
1055
  n && this.element.removeEventListener(this.name, this, r), s && this.element.addEventListener(this.name, this, t), this._$AH = t;
1056
1056
  }
1057
1057
  handleEvent(t) {
@@ -1071,13 +1071,13 @@ class Me {
1071
1071
  }
1072
1072
  }
1073
1073
  const at = I.litHtmlPolyfillSupport;
1074
- at == null || at(H, D), (I.litHtmlVersions ?? (I.litHtmlVersions = [])).push("3.0.2");
1074
+ at == null || at(N, B), (I.litHtmlVersions ?? (I.litHtmlVersions = [])).push("3.0.2");
1075
1075
  const ke = (i, t, e) => {
1076
1076
  const r = (e == null ? void 0 : e.renderBefore) ?? t;
1077
1077
  let n = r._$litPart$;
1078
1078
  if (n === void 0) {
1079
1079
  const s = (e == null ? void 0 : e.renderBefore) ?? null;
1080
- r._$litPart$ = n = new D(t.insertBefore(k(), s), s, void 0, e ?? {});
1080
+ r._$litPart$ = n = new B(t.insertBefore(j(), s), s, void 0, e ?? {});
1081
1081
  }
1082
1082
  return n._$AI(i), n;
1083
1083
  };
@@ -1121,7 +1121,7 @@ ct == null || ct({ LitElement: $ });
1121
1121
  * Copyright 2017 Google LLC
1122
1122
  * SPDX-License-Identifier: BSD-3-Clause
1123
1123
  */
1124
- const je = { attribute: !0, type: String, converter: J, reflect: !1, hasChanged: mt }, He = (i = je, t, e) => {
1124
+ const je = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged: mt }, He = (i = je, t, e) => {
1125
1125
  const { kind: r, metadata: n } = e;
1126
1126
  let s = globalThis.litPropertyMetadata.get(n);
1127
1127
  if (s === void 0 && globalThis.litPropertyMetadata.set(n, s = /* @__PURE__ */ new Map()), s.set(e.name, i), r === "accessor") {
@@ -1153,7 +1153,7 @@ function y(i) {
1153
1153
  * Copyright 2017 Google LLC
1154
1154
  * SPDX-License-Identifier: BSD-3-Clause
1155
1155
  */
1156
- function B(i) {
1156
+ function z(i) {
1157
1157
  return y({ ...i, state: !0, attribute: !1 });
1158
1158
  }
1159
1159
  /**
@@ -1209,19 +1209,19 @@ const Ne = Qt(class extends Xt {
1209
1209
  }
1210
1210
  return P;
1211
1211
  }
1212
- }), G = (i, t, e) => {
1212
+ }), V = (i, t, e) => {
1213
1213
  i && e.style.setProperty(t, i);
1214
1214
  }, te = (i, t) => {
1215
1215
  var e, r, n, s;
1216
- G((e = i.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), G(
1216
+ V((e = i.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), V(
1217
1217
  (r = i.colors) == null ? void 0 : r.textOnPrimaryBackground,
1218
1218
  "--text-on-primary-background",
1219
1219
  t
1220
- ), G(
1220
+ ), V(
1221
1221
  (n = i.colors) == null ? void 0 : n.secondaryBackground,
1222
1222
  "--secondary-background",
1223
1223
  t
1224
- ), G(
1224
+ ), V(
1225
1225
  (s = i.colors) == null ? void 0 : s.textOnSecondaryBackground,
1226
1226
  "--text-on-secondary-background",
1227
1227
  t
@@ -1254,28 +1254,31 @@ class A extends $ {
1254
1254
  (t = this.application) != null && t.settings && te(this.application.settings.branding, this);
1255
1255
  }
1256
1256
  async _renderSymbol() {
1257
- var s;
1258
- const t = (s = this.application) == null ? void 0 : s.triggerIcon;
1259
- if (!t)
1260
- return p;
1261
- const e = async (o) => await import("./index-5087564d.mjs").then(
1262
- (c) => c[o]
1263
- ), { type: r, content: n } = t;
1264
- switch (r) {
1257
+ var a, c;
1258
+ const t = (a = this.application) == null ? void 0 : a.branding(), e = t == null ? void 0 : t.graphics.trigger;
1259
+ if (e)
1260
+ return M` <img src=${e} class="trigger-icon" alt="" /> `;
1261
+ const r = (c = this.application) == null ? void 0 : c.triggerIcon;
1262
+ if (!r)
1263
+ return u;
1264
+ const n = async (l) => await import("./index-5087564d.mjs").then(
1265
+ (h) => h[l]
1266
+ ), { type: s, content: o } = r;
1267
+ switch (s) {
1265
1268
  case "Telia": {
1266
- const o = await e(n);
1267
- return o ? Z`<telia-icon
1269
+ const l = await n(o);
1270
+ return l ? M`<telia-icon
1268
1271
  class="trigger-icon"
1269
- svg=${o.svg}
1272
+ svg=${l.svg}
1270
1273
  size="lg"
1271
- ></telia-icon>` : p;
1274
+ ></telia-icon>` : u;
1272
1275
  }
1273
1276
  default:
1274
- return p;
1277
+ return u;
1275
1278
  }
1276
1279
  }
1277
1280
  render() {
1278
- return Z`<button
1281
+ return M`<button
1279
1282
  class=${Ne({
1280
1283
  trigger: !0,
1281
1284
  active: this.active,
@@ -1315,7 +1318,7 @@ class A extends $ {
1315
1318
  }
1316
1319
  }
1317
1320
  A.styles = [
1318
- L`
1321
+ D`
1319
1322
  :host {
1320
1323
  --voca-rem-multiplier: 0.625;
1321
1324
  display: block;
@@ -1383,19 +1386,23 @@ A.styles = [
1383
1386
  align-items: center;
1384
1387
  fill: var(--trigger-text-color, var(--text-on-primary-background));
1385
1388
  }
1389
+
1390
+ img {
1391
+ max-width: 100%;
1392
+ }
1386
1393
  `
1387
1394
  ];
1388
1395
  et([
1389
1396
  y({ attribute: !1 })
1390
1397
  ], A.prototype, "application", 2);
1391
1398
  et([
1392
- B()
1399
+ z()
1393
1400
  ], A.prototype, "active", 2);
1394
1401
  et([
1395
- B()
1402
+ z()
1396
1403
  ], A.prototype, "loaded", 2);
1397
1404
  et([
1398
- B()
1405
+ z()
1399
1406
  ], A.prototype, "icon", 2);
1400
1407
  var Be = Object.defineProperty, ze = Object.getOwnPropertyDescriptor, E = (i, t, e, r) => {
1401
1408
  for (var n = r > 1 ? void 0 : r ? ze(t, e) : t, s = i.length - 1, o; s >= 0; s--)
@@ -1428,7 +1435,7 @@ const We = (i) => {
1428
1435
  }
1429
1436
  return t.styles = [
1430
1437
  // (superClass as unknown as typeof LitElement).styles ?? [],
1431
- L`
1438
+ D`
1432
1439
  :host {
1433
1440
  font-family: var(--font-family);
1434
1441
  grid-column: span var(--width);
@@ -1459,11 +1466,11 @@ const We = (i) => {
1459
1466
  };
1460
1467
  class bt extends We($) {
1461
1468
  render() {
1462
- return Z`Non resolved component`;
1469
+ return M`Non resolved component`;
1463
1470
  }
1464
1471
  }
1465
1472
  bt.styles = [
1466
- L`
1473
+ D`
1467
1474
  :host {
1468
1475
  display: block;
1469
1476
  }
@@ -1480,13 +1487,13 @@ const Ge = (i) => i.strings === void 0;
1480
1487
  * Copyright 2017 Google LLC
1481
1488
  * SPDX-License-Identifier: BSD-3-Clause
1482
1489
  */
1483
- const M = (i, t) => {
1490
+ const k = (i, t) => {
1484
1491
  var r;
1485
1492
  const e = i._$AN;
1486
1493
  if (e === void 0)
1487
1494
  return !1;
1488
1495
  for (const n of e)
1489
- (r = n._$AO) == null || r.call(n, t, !1), M(n, t);
1496
+ (r = n._$AO) == null || r.call(n, t, !1), k(n, t);
1490
1497
  return !0;
1491
1498
  }, Q = (i) => {
1492
1499
  let t, e;
@@ -1514,11 +1521,11 @@ function Ye(i, t = !1, e = 0) {
1514
1521
  if (t)
1515
1522
  if (Array.isArray(r))
1516
1523
  for (let s = e; s < r.length; s++)
1517
- M(r[s], !1), Q(r[s]);
1524
+ k(r[s], !1), Q(r[s]);
1518
1525
  else
1519
- r != null && (M(r, !1), Q(r));
1526
+ r != null && (k(r, !1), Q(r));
1520
1527
  else
1521
- M(this, i);
1528
+ k(this, i);
1522
1529
  }
1523
1530
  const qe = (i) => {
1524
1531
  i.type == Zt.CHILD && (i._$AP ?? (i._$AP = Ye), i._$AQ ?? (i._$AQ = Ve));
@@ -1532,7 +1539,7 @@ class Fe extends Xt {
1532
1539
  }
1533
1540
  _$AO(t, e = !0) {
1534
1541
  var r, n;
1535
- t !== this.isConnected && (this.isConnected = t, t ? (r = this.reconnected) == null || r.call(this) : (n = this.disconnected) == null || n.call(this)), e && (M(this, t), Q(this));
1542
+ t !== this.isConnected && (this.isConnected = t, t ? (r = this.reconnected) == null || r.call(this) : (n = this.disconnected) == null || n.call(this)), e && (k(this, t), Q(this));
1536
1543
  }
1537
1544
  setValue(t) {
1538
1545
  if (Ge(this._$Ct))
@@ -1557,12 +1564,12 @@ class Ke {
1557
1564
  }
1558
1565
  const lt = /* @__PURE__ */ new WeakMap(), Ze = Qt(class extends Fe {
1559
1566
  render(i) {
1560
- return p;
1567
+ return u;
1561
1568
  }
1562
1569
  update(i, [t]) {
1563
1570
  var r;
1564
1571
  const e = t !== this.G;
1565
- return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (r = i.options) == null ? void 0 : r.host, this.ot(this.lt = i.element)), p;
1572
+ return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (r = i.options) == null ? void 0 : r.host, this.ot(this.lt = i.element)), u;
1566
1573
  }
1567
1574
  ot(i) {
1568
1575
  if (typeof this.G == "function") {
@@ -1617,12 +1624,12 @@ class rt extends $ {
1617
1624
  this.applyBranding();
1618
1625
  }
1619
1626
  render() {
1620
- return this.application.renderStrategy === w.Trigger && this.renderRoot.host.classList.add("floating"), Z`<div class="widget-container" ${Ze(this.wrapperRef)}>
1627
+ return this.application.renderStrategy === w.Trigger && this.renderRoot.host.classList.add("floating"), M`<div class="widget-container" ${Ze(this.wrapperRef)}>
1621
1628
  ${Qe(this.nodes, (t) => t)}
1622
1629
  </div>`;
1623
1630
  }
1624
1631
  }
1625
- rt.styles = L`
1632
+ rt.styles = D`
1626
1633
  :host {
1627
1634
  --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
1628
1635
  --spacing-xs: 0.2rem;
@@ -1712,30 +1719,30 @@ class rr {
1712
1719
  this.root.application = e;
1713
1720
  const r = (a) => {
1714
1721
  if (Array.isArray(a)) {
1715
- const [c, ...h] = a;
1722
+ const [c, ...l] = a;
1716
1723
  return {
1717
1724
  definitionId: c,
1718
- overrides: h
1725
+ overrides: l
1719
1726
  };
1720
1727
  }
1721
1728
  return {
1722
1729
  definitionId: a,
1723
1730
  overrides: []
1724
1731
  };
1725
- }, n = (a, c, h, d) => {
1726
- h.forEach((l) => {
1727
- const f = r(l), u = d[f.definitionId];
1728
- if (!u) {
1732
+ }, n = (a, c, l, d) => {
1733
+ l.forEach((h) => {
1734
+ const f = r(h), p = d[f.definitionId];
1735
+ if (!p) {
1729
1736
  console.error(
1730
1737
  `No definition found for component type '${f.definitionId}'.`
1731
1738
  );
1732
1739
  return;
1733
1740
  }
1734
- const g = a.createNode(u.type, u.type);
1735
- g && (g.name = f.definitionId, g.application = e, u.properties && g.writeProperties(u.properties), u.context && g.writeContext(u.context), u.layout && g.writeLayout(u.layout), c.addChild(g), u.children && n(
1741
+ const g = a.createNode(p.type, p.type);
1742
+ g && (g.name = f.definitionId, g.application = e, p.properties && g.writeProperties(p.properties), p.context && g.writeContext(p.context), p.layout && g.writeLayout(p.layout), c.addChild(g), p.children && n(
1736
1743
  a,
1737
1744
  g,
1738
- u.children,
1745
+ p.children,
1739
1746
  d
1740
1747
  // views
1741
1748
  ));
@@ -1800,6 +1807,9 @@ class ir {
1800
1807
  for await (const t of this.plugins)
1801
1808
  await t(this);
1802
1809
  }
1810
+ branding() {
1811
+ return this.settings.branding || {};
1812
+ }
1803
1813
  plugin(t) {
1804
1814
  return this.plugins.push(t), this;
1805
1815
  }
@@ -1932,7 +1942,7 @@ var or = Object.defineProperty, ar = Object.getOwnPropertyDescriptor, _t = (i, t
1932
1942
  (o = i[s]) && (n = (r ? o(t, e, n) : o(n)) || n);
1933
1943
  return r && n && or(t, e, n), n;
1934
1944
  };
1935
- class z extends $ {
1945
+ class W extends $ {
1936
1946
  constructor() {
1937
1947
  super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
1938
1948
  }
@@ -1956,7 +1966,7 @@ class z extends $ {
1956
1966
  }
1957
1967
  render() {
1958
1968
  if (!this.widget || this.status !== "activated")
1959
- return p;
1969
+ return u;
1960
1970
  if (this.widget.renderStrategy === w.Trigger) {
1961
1971
  const t = new A();
1962
1972
  return t.application = this.widget, t;
@@ -1964,8 +1974,8 @@ class z extends $ {
1964
1974
  return this.widget.render();
1965
1975
  }
1966
1976
  }
1967
- z.styles = [
1968
- L`
1977
+ W.styles = [
1978
+ D`
1969
1979
  :host {
1970
1980
  display: block;
1971
1981
  }
@@ -1973,22 +1983,22 @@ z.styles = [
1973
1983
  ];
1974
1984
  _t([
1975
1985
  y({ attribute: !0 })
1976
- ], z.prototype, "name", 2);
1986
+ ], W.prototype, "name", 2);
1977
1987
  _t([
1978
- B()
1979
- ], z.prototype, "widget", 2);
1988
+ z()
1989
+ ], W.prototype, "widget", 2);
1980
1990
  _t([
1981
- B()
1982
- ], z.prototype, "status", 2);
1991
+ z()
1992
+ ], W.prototype, "status", 2);
1983
1993
  customElements.get("ace-trigger") || customElements.define("ace-trigger", A);
1984
1994
  customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", bt);
1985
1995
  customElements.get("ace-wrapper") || customElements.define("ace-wrapper", rt);
1986
- customElements.get("ace-widget") || customElements.define("ace-widget", z);
1996
+ customElements.get("ace-widget") || customElements.define("ace-widget", W);
1987
1997
  const hr = async (i, t) => {
1988
1998
  await new sr(i).bootstrap(t);
1989
1999
  };
1990
2000
  export {
1991
- z as AceWidget,
2001
+ W as AceWidget,
1992
2002
  ir as Application,
1993
2003
  Ct as Container,
1994
2004
  nr as Environment,
@@ -18,6 +18,7 @@ export declare class Application {
18
18
  constructor(name: string, container: Container, settings: WidgetConfig, options: ApplicationOptions);
19
19
  activate(): Promise<void>;
20
20
  private loadPlugins;
21
+ branding(): Record<string, any>;
21
22
  plugin(plugin: PluginType): this;
22
23
  appendToDOM(): void;
23
24
  hide(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-core-flamingo",
3
- "version": "1.1.19-rc.0",
3
+ "version": "1.1.19-rc.1",
4
4
  "dependencies": {
5
5
  "lit": "^3.0.2",
6
6
  "@teliads/icons": "^8.4.0",