@telia-ace/widget-side-menu 1.1.151-rc.2 → 1.1.151-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Ft=function(i,t){return Ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,s){e.__proto__=s}||function(e,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])},Ft(i,t)};function Q(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ft(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ts(i,t,e,s){function r(n){return n instanceof e?n:new e(function(o){o(n)})}return new(e||(e=Promise))(function(n,o){function a(u){try{c(s.next(u))}catch(h){o(h)}}function l(u){try{c(s.throw(u))}catch(h){o(h)}}function c(u){u.done?n(u.value):r(u.value).then(a,l)}c((s=s.apply(i,t||[])).next())})}function ri(i,t){var e={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},s,r,n,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return l([c,u])}}function l(c){if(s)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(e=0)),e;)try{if(s=1,r&&(n=c[0]&2?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[c[0]&2,n.value]),c[0]){case 0:case 1:n=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++,r=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(n=e.trys,!(n=n.length>0&&n[n.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!n||c[1]>n[0]&&c[1]<n[3])){e.label=c[1];break}if(c[0]===6&&e.label<n[1]){e.label=n[1],n=c;break}if(n&&e.label<n[2]){e.label=n[2],e.ops.push(c);break}n[2]&&e.ops.pop(),e.trys.pop();continue}c=t.call(i,e)}catch(u){c=[6,u],r=0}finally{s=n=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Y(i){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&i[t],s=0;if(e)return e.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qt(i,t){var e=typeof Symbol=="function"&&i[Symbol.iterator];if(!e)return i;var s=e.call(i),r,n=[],o;try{for(;(t===void 0||t-- >0)&&!(r=s.next()).done;)n.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(e=s.return)&&e.call(s)}finally{if(o)throw o.error}}return n}function Wt(i,t,e){if(e||arguments.length===2)for(var s=0,r=t.length,n;s<r;s++)(n||!(s in t))&&(n||(n=Array.prototype.slice.call(t,0,s)),n[s]=t[s]);return i.concat(n||Array.prototype.slice.call(t))}function q(i){return this instanceof q?(this.v=i,this):new q(i)}function es(i,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=e.apply(i,t||[]),r,n=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),r[Symbol.asyncIterator]=function(){return this},r;function o(f){return function(
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Ft=function(i,t){return Ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,s){e.__proto__=s}||function(e,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])},Ft(i,t)};function Q(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ft(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ts(i,t,e,s){function r(n){return n instanceof e?n:new e(function(o){o(n)})}return new(e||(e=Promise))(function(n,o){function a(u){try{c(s.next(u))}catch(h){o(h)}}function l(u){try{c(s.throw(u))}catch(h){o(h)}}function c(u){u.done?n(u.value):r(u.value).then(a,l)}c((s=s.apply(i,t||[])).next())})}function ri(i,t){var e={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},s,r,n,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return l([c,u])}}function l(c){if(s)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(e=0)),e;)try{if(s=1,r&&(n=c[0]&2?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[c[0]&2,n.value]),c[0]){case 0:case 1:n=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++,r=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(n=e.trys,!(n=n.length>0&&n[n.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!n||c[1]>n[0]&&c[1]<n[3])){e.label=c[1];break}if(c[0]===6&&e.label<n[1]){e.label=n[1],n=c;break}if(n&&e.label<n[2]){e.label=n[2],e.ops.push(c);break}n[2]&&e.ops.pop(),e.trys.pop();continue}c=t.call(i,e)}catch(u){c=[6,u],r=0}finally{s=n=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Y(i){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&i[t],s=0;if(e)return e.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qt(i,t){var e=typeof Symbol=="function"&&i[Symbol.iterator];if(!e)return i;var s=e.call(i),r,n=[],o;try{for(;(t===void 0||t-- >0)&&!(r=s.next()).done;)n.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(e=s.return)&&e.call(s)}finally{if(o)throw o.error}}return n}function Wt(i,t,e){if(e||arguments.length===2)for(var s=0,r=t.length,n;s<r;s++)(n||!(s in t))&&(n||(n=Array.prototype.slice.call(t,0,s)),n[s]=t[s]);return i.concat(n||Array.prototype.slice.call(t))}function q(i){return this instanceof q?(this.v=i,this):new q(i)}function es(i,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=e.apply(i,t||[]),r,n=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),r[Symbol.asyncIterator]=function(){return this},r;function o(f){return function(v){return Promise.resolve(v).then(f,h)}}function a(f,v){s[f]&&(r[f]=function(g){return new Promise(function(dt,V){n.push([f,g,dt,V])>1||l(f,g)})},v&&(r[f]=v(r[f])))}function l(f,v){try{c(s[f](v))}catch(g){d(n[0][3],g)}}function c(f){f.value instanceof q?Promise.resolve(f.value.v).then(u,h):d(n[0][2],f)}function u(f){l("next",f)}function h(f){l("throw",f)}function d(f,v){f(v),n.shift(),n.length&&l(n[0][0],n[0][1])}}function is(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=i[Symbol.asyncIterator],e;return t?t.call(i):(i=typeof Y=="function"?Y(i):i[Symbol.iterator](),e={},s("next"),s("throw"),s("return"),e[Symbol.asyncIterator]=function(){return this},e);function s(n){e[n]=i[n]&&function(o){return new Promise(function(a,l){o=i[n](o),r(a,l,o.done,o.value)})}}function r(n,o,a,l){Promise.resolve(l).then(function(c){n({value:c,done:a})},o)}}function $(i){return typeof i=="function"}function ni(i){var t=function(s){Error.call(s),s.stack=new Error().stack},e=i(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Ut=ni(function(i){return function(e){i(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
2
2
|
`+e.map(function(s,r){return r+1+") "+s.toString()}).join(`
|
|
3
|
-
`):"",this.name="UnsubscriptionError",this.errors=e}});function Gt(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var Et=(function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,s,r,n;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=Y(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var u=this.initialTeardown;if(v(u))try{u()}catch(g){n=g instanceof Ut?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=Y(h),f=d.next();!f.done;f=d.next()){var $=f.value;try{be($)}catch(g){n=n??[],g instanceof Ut?n=Wt(Wt([],qt(n)),qt(g.errors)):n.push(g)}}}catch(g){s={error:g}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(s)throw s.error}}}if(n)throw new Ut(n)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)be(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)&&Gt(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&Gt(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=(function(){var t=new i;return t.closed=!0,t})(),i})(),oi=Et.EMPTY;function ai(i){return i instanceof Et||i&&"closed"in i&&v(i.remove)&&v(i.add)&&v(i.unsubscribe)}function be(i){v(i)?i():i.unsubscribe()}var ss={Promise:void 0},rs={setTimeout:function(i,t){for(var e=[],s=2;s<arguments.length;s++)e[s-2]=arguments[s];return setTimeout.apply(void 0,Wt([i,t],qt(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function li(i){rs.setTimeout(function(){throw i})}function _e(){}function gt(i){i()}var Jt=(function(i){Q(t,i);function t(e){var s=i.call(this)||this;return s.isStopped=!1,e?(s.destination=e,ai(e)&&e.add(s)):s.destination=as,s}return t.create=function(e,s,r){return new Yt(e,s,r)},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})(Et),ns=(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(s){ft(s)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(s){ft(s)}else ft(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){ft(e)}},i})(),Yt=(function(i){Q(t,i);function t(e,s,r){var n=i.call(this)||this,o;return v(e)||!e?o={next:e??void 0,error:s??void 0,complete:r??void 0}:o=e,n.destination=new ns(o),n}return t})(Jt);function ft(i){li(i)}function os(i){throw i}var as={closed:!0,next:_e,error:os,complete:_e},Vt=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function ci(i){return i}function ls(i){return i.length===0?ci:i.length===1?i[0]:function(e){return i.reduce(function(s,r){return r(s)},e)}}var _=(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,s){var r=this,n=us(t)?t:new Yt(t,e,s);return gt(function(){var o=r,a=o.operator,l=o.source;n.add(a?a.call(n,l):l?r._subscribe(n):r._trySubscribe(n))}),n},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var s=this;return e=we(e),new e(function(r,n){var o=new Yt({next:function(a){try{t(a)}catch(l){n(l),o.unsubscribe()}},error:n,complete:r});s.subscribe(o)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[Vt]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ls(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=we(t),new t(function(s,r){var n;e.subscribe(function(o){return n=o},function(o){return r(o)},function(){return s(n)})})},i.create=function(t){return new i(t)},i})();function we(i){var t;return(t=i??ss.Promise)!==null&&t!==void 0?t:Promise}function cs(i){return i&&v(i.next)&&v(i.error)&&v(i.complete)}function us(i){return i&&i instanceof Jt||cs(i)&&ai(i)}function hs(i){return v(i==null?void 0:i.lift)}function Ct(i){return function(t){if(hs(t))return t.lift(function(e){try{return i(e,this)}catch(s){this.error(s)}});throw new TypeError("Unable to lift unknown Observable type")}}function vt(i,t,e,s,r){return new ds(i,t,e,s,r)}var ds=(function(i){Q(t,i);function t(e,s,r,n,o,a){var l=i.call(this,e)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=s?function(c){try{s(c)}catch(u){e.error(u)}}:i.prototype._next,l._error=n?function(c){try{n(c)}catch(u){e.error(u)}finally{this.unsubscribe()}}:i.prototype._error,l._complete=r?function(){try{r()}catch(c){e.error(c)}finally{this.unsubscribe()}}:i.prototype._complete,l}return t.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var s=this.closed;i.prototype.unsubscribe.call(this),!s&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},t})(Jt),fs=ni(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ot=(function(i){Q(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 s=new xe(this,this);return s.operator=e,s},t.prototype._throwIfClosed=function(){if(this.closed)throw new fs},t.prototype.next=function(e){var s=this;gt(function(){var r,n;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var o=Y(s.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(e)}}catch(c){r={error:c}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var s=this;gt(function(){if(s._throwIfClosed(),!s.isStopped){s.hasError=s.isStopped=!0,s.thrownError=e;for(var r=s.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;gt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var s=e.observers;s.length;)s.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 s=this,r=this,n=r.hasError,o=r.isStopped,a=r.observers;return n||o?oi:(this.currentObservers=null,a.push(e),new Et(function(){s.currentObservers=null,Gt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var s=this,r=s.hasError,n=s.thrownError,o=s.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new _;return e.source=this,e},t.create=function(e,s){return new xe(e,s)},t})(_),xe=(function(i){Q(t,i);function t(e,s){var r=i.call(this)||this;return r.destination=e,r.source=s,r}return t.prototype.next=function(e){var s,r;(r=(s=this.destination)===null||s===void 0?void 0:s.next)===null||r===void 0||r.call(s,e)},t.prototype.error=function(e){var s,r;(r=(s=this.destination)===null||s===void 0?void 0:s.error)===null||r===void 0||r.call(s,e)},t.prototype.complete=function(){var e,s;(s=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||s===void 0||s.call(e)},t.prototype._subscribe=function(e){var s,r;return(r=(s=this.source)===null||s===void 0?void 0:s.subscribe(e))!==null&&r!==void 0?r:oi},t})(Ot),ui=(function(i){Q(t,i);function t(e){var s=i.call(this)||this;return s._value=e,s}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var s=i.prototype._subscribe.call(this,e);return!s.closed&&e.next(this._value),s},t.prototype.getValue=function(){var e=this,s=e.hasError,r=e.thrownError,n=e._value;if(s)throw r;return this._throwIfClosed(),n},t.prototype.next=function(e){i.prototype.next.call(this,this._value=e)},t})(Ot),ps=new _(function(i){return i.complete()});function gs(i){return i&&v(i.schedule)}function hi(i){return i[i.length-1]}function $s(i){return gs(hi(i))?i.pop():void 0}function vs(i,t){return typeof hi(i)=="number"?i.pop():t}var di=(function(i){return i&&typeof i.length=="number"&&typeof i!="function"});function fi(i){return v(i==null?void 0:i.then)}function pi(i){return v(i[Vt])}function gi(i){return Symbol.asyncIterator&&v(i==null?void 0:i[Symbol.asyncIterator])}function $i(i){return new TypeError("You provided "+(i!==null&&typeof i=="object"?"an invalid object":"'"+i+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function ms(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var vi=ms();function mi(i){return v(i==null?void 0:i[vi])}function yi(i){return es(this,arguments,function(){var e,s,r,n;return ri(this,function(o){switch(o.label){case 0:e=i.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,q(e.read())];case 3:return s=o.sent(),r=s.value,n=s.done,n?[4,q(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,q(r)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function bi(i){return v(i==null?void 0:i.getReader)}function J(i){if(i instanceof _)return i;if(i!=null){if(pi(i))return ys(i);if(di(i))return bs(i);if(fi(i))return _s(i);if(gi(i))return _i(i);if(mi(i))return ws(i);if(bi(i))return xs(i)}throw $i(i)}function ys(i){return new _(function(t){var e=i[Vt]();if(v(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function bs(i){return new _(function(t){for(var e=0;e<i.length&&!t.closed;e++)t.next(i[e]);t.complete()})}function _s(i){return new _(function(t){i.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,li)})}function ws(i){return new _(function(t){var e,s;try{for(var r=Y(i),n=r.next();!n.done;n=r.next()){var o=n.value;if(t.next(o),t.closed)return}}catch(a){e={error:a}}finally{try{n&&!n.done&&(s=r.return)&&s.call(r)}finally{if(e)throw e.error}}t.complete()})}function _i(i){return new _(function(t){Ss(i,t).catch(function(e){return t.error(e)})})}function xs(i){return _i(yi(i))}function Ss(i,t){var e,s,r,n;return ts(this,void 0,void 0,function(){var o,a;return ri(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),e=is(i),l.label=1;case 1:return[4,e.next()];case 2:if(s=l.sent(),!!s.done)return[3,4];if(o=s.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),r={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),s&&!s.done&&(n=e.return)?[4,n.call(e)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(r)throw r.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function L(i,t,e,s,r){s===void 0&&(s=0),r===void 0&&(r=!1);var n=t.schedule(function(){e(),r?i.add(this.schedule(null,s)):this.unsubscribe()},s);if(i.add(n),!r)return n}function wi(i,t){return t===void 0&&(t=0),Ct(function(e,s){e.subscribe(vt(s,function(r){return L(s,i,function(){return s.next(r)},t)},function(){return L(s,i,function(){return s.complete()},t)},function(r){return L(s,i,function(){return s.error(r)},t)}))})}function xi(i,t){return t===void 0&&(t=0),Ct(function(e,s){s.add(i.schedule(function(){return e.subscribe(s)},t))})}function As(i,t){return J(i).pipe(xi(t),wi(t))}function ks(i,t){return J(i).pipe(xi(t),wi(t))}function Es(i,t){return new _(function(e){var s=0;return t.schedule(function(){s===i.length?e.complete():(e.next(i[s++]),e.closed||this.schedule())})})}function Cs(i,t){return new _(function(e){var s;return L(e,t,function(){s=i[vi](),L(e,t,function(){var r,n,o;try{r=s.next(),n=r.value,o=r.done}catch(a){e.error(a);return}o?e.complete():e.next(n)},0,!0)}),function(){return v(s==null?void 0:s.return)&&s.return()}})}function Si(i,t){if(!i)throw new Error("Iterable cannot be null");return new _(function(e){L(e,t,function(){var s=i[Symbol.asyncIterator]();L(e,t,function(){s.next().then(function(r){r.done?e.complete():e.next(r.value)})},0,!0)})})}function Os(i,t){return Si(yi(i),t)}function Ts(i,t){if(i!=null){if(pi(i))return As(i,t);if(di(i))return Es(i,t);if(fi(i))return ks(i,t);if(gi(i))return Si(i,t);if(mi(i))return Cs(i,t);if(bi(i))return Os(i,t)}throw $i(i)}function Ps(i,t){return t?Ts(i,t):J(i)}function Is(i,t){return Ct(function(e,s){var r=0;e.subscribe(vt(s,function(n){s.next(i.call(t,n,r++))}))})}function Ls(i,t,e,s,r,n,o,a){var l=[],c=0,u=0,h=!1,d=function(){h&&!l.length&&!c&&t.complete()},f=function(g){return c<s?$(g):l.push(g)},$=function(g){c++;var dt=!1;J(e(g,u++)).subscribe(vt(t,function(V){t.next(V)},function(){dt=!0},void 0,function(){if(dt)try{c--;for(var V=function(){var Rt=l.shift();o||$(Rt)};l.length&&c<s;)V();d()}catch(Rt){t.error(Rt)}}))};return i.subscribe(vt(t,f,function(){h=!0,d()})),function(){}}function Ai(i,t,e){return e===void 0&&(e=1/0),v(t)?Ai(function(s,r){return Is(function(n,o){return t(s,n,r,o)})(J(i(s,r)))},e):(typeof t=="number"&&(e=t),Ct(function(s,r){return Ls(s,r,i,e)}))}function Rs(i){return i===void 0&&(i=1/0),Ai(ci,i)}function Us(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];var e=$s(i),s=vs(i,1/0),r=i;return r.length?r.length===1?J(r[0]):Rs(s)(Ps(r,e)):ps}/**
|
|
3
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function Gt(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var Et=(function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,s,r,n;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=Y(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var u=this.initialTeardown;if($(u))try{u()}catch(g){n=g instanceof Ut?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=Y(h),f=d.next();!f.done;f=d.next()){var v=f.value;try{be(v)}catch(g){n=n??[],g instanceof Ut?n=Wt(Wt([],qt(n)),qt(g.errors)):n.push(g)}}}catch(g){s={error:g}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(s)throw s.error}}}if(n)throw new Ut(n)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)be(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)&&Gt(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&Gt(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=(function(){var t=new i;return t.closed=!0,t})(),i})(),oi=Et.EMPTY;function ai(i){return i instanceof Et||i&&"closed"in i&&$(i.remove)&&$(i.add)&&$(i.unsubscribe)}function be(i){$(i)?i():i.unsubscribe()}var ss={Promise:void 0},rs={setTimeout:function(i,t){for(var e=[],s=2;s<arguments.length;s++)e[s-2]=arguments[s];return setTimeout.apply(void 0,Wt([i,t],qt(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function li(i){rs.setTimeout(function(){throw i})}function _e(){}function gt(i){i()}var Jt=(function(i){Q(t,i);function t(e){var s=i.call(this)||this;return s.isStopped=!1,e?(s.destination=e,ai(e)&&e.add(s)):s.destination=as,s}return t.create=function(e,s,r){return new Yt(e,s,r)},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})(Et),ns=(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(s){ft(s)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(s){ft(s)}else ft(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){ft(e)}},i})(),Yt=(function(i){Q(t,i);function t(e,s,r){var n=i.call(this)||this,o;return $(e)||!e?o={next:e??void 0,error:s??void 0,complete:r??void 0}:o=e,n.destination=new ns(o),n}return t})(Jt);function ft(i){li(i)}function os(i){throw i}var as={closed:!0,next:_e,error:os,complete:_e},Vt=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function ci(i){return i}function ls(i){return i.length===0?ci:i.length===1?i[0]:function(e){return i.reduce(function(s,r){return r(s)},e)}}var _=(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,s){var r=this,n=us(t)?t:new Yt(t,e,s);return gt(function(){var o=r,a=o.operator,l=o.source;n.add(a?a.call(n,l):l?r._subscribe(n):r._trySubscribe(n))}),n},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var s=this;return e=xe(e),new e(function(r,n){var o=new Yt({next:function(a){try{t(a)}catch(l){n(l),o.unsubscribe()}},error:n,complete:r});s.subscribe(o)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[Vt]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ls(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=xe(t),new t(function(s,r){var n;e.subscribe(function(o){return n=o},function(o){return r(o)},function(){return s(n)})})},i.create=function(t){return new i(t)},i})();function xe(i){var t;return(t=i??ss.Promise)!==null&&t!==void 0?t:Promise}function cs(i){return i&&$(i.next)&&$(i.error)&&$(i.complete)}function us(i){return i&&i instanceof Jt||cs(i)&&ai(i)}function hs(i){return $(i==null?void 0:i.lift)}function Ct(i){return function(t){if(hs(t))return t.lift(function(e){try{return i(e,this)}catch(s){this.error(s)}});throw new TypeError("Unable to lift unknown Observable type")}}function $t(i,t,e,s,r){return new ds(i,t,e,s,r)}var ds=(function(i){Q(t,i);function t(e,s,r,n,o,a){var l=i.call(this,e)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=s?function(c){try{s(c)}catch(u){e.error(u)}}:i.prototype._next,l._error=n?function(c){try{n(c)}catch(u){e.error(u)}finally{this.unsubscribe()}}:i.prototype._error,l._complete=r?function(){try{r()}catch(c){e.error(c)}finally{this.unsubscribe()}}:i.prototype._complete,l}return t.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var s=this.closed;i.prototype.unsubscribe.call(this),!s&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},t})(Jt),fs=ni(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ot=(function(i){Q(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 s=new we(this,this);return s.operator=e,s},t.prototype._throwIfClosed=function(){if(this.closed)throw new fs},t.prototype.next=function(e){var s=this;gt(function(){var r,n;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var o=Y(s.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(e)}}catch(c){r={error:c}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var s=this;gt(function(){if(s._throwIfClosed(),!s.isStopped){s.hasError=s.isStopped=!0,s.thrownError=e;for(var r=s.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;gt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var s=e.observers;s.length;)s.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 s=this,r=this,n=r.hasError,o=r.isStopped,a=r.observers;return n||o?oi:(this.currentObservers=null,a.push(e),new Et(function(){s.currentObservers=null,Gt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var s=this,r=s.hasError,n=s.thrownError,o=s.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new _;return e.source=this,e},t.create=function(e,s){return new we(e,s)},t})(_),we=(function(i){Q(t,i);function t(e,s){var r=i.call(this)||this;return r.destination=e,r.source=s,r}return t.prototype.next=function(e){var s,r;(r=(s=this.destination)===null||s===void 0?void 0:s.next)===null||r===void 0||r.call(s,e)},t.prototype.error=function(e){var s,r;(r=(s=this.destination)===null||s===void 0?void 0:s.error)===null||r===void 0||r.call(s,e)},t.prototype.complete=function(){var e,s;(s=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||s===void 0||s.call(e)},t.prototype._subscribe=function(e){var s,r;return(r=(s=this.source)===null||s===void 0?void 0:s.subscribe(e))!==null&&r!==void 0?r:oi},t})(Ot),ui=(function(i){Q(t,i);function t(e){var s=i.call(this)||this;return s._value=e,s}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var s=i.prototype._subscribe.call(this,e);return!s.closed&&e.next(this._value),s},t.prototype.getValue=function(){var e=this,s=e.hasError,r=e.thrownError,n=e._value;if(s)throw r;return this._throwIfClosed(),n},t.prototype.next=function(e){i.prototype.next.call(this,this._value=e)},t})(Ot),ps=new _(function(i){return i.complete()});function gs(i){return i&&$(i.schedule)}function hi(i){return i[i.length-1]}function vs(i){return gs(hi(i))?i.pop():void 0}function $s(i,t){return typeof hi(i)=="number"?i.pop():t}var di=(function(i){return i&&typeof i.length=="number"&&typeof i!="function"});function fi(i){return $(i==null?void 0:i.then)}function pi(i){return $(i[Vt])}function gi(i){return Symbol.asyncIterator&&$(i==null?void 0:i[Symbol.asyncIterator])}function vi(i){return new TypeError("You provided "+(i!==null&&typeof i=="object"?"an invalid object":"'"+i+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function ms(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var $i=ms();function mi(i){return $(i==null?void 0:i[$i])}function yi(i){return es(this,arguments,function(){var e,s,r,n;return ri(this,function(o){switch(o.label){case 0:e=i.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,q(e.read())];case 3:return s=o.sent(),r=s.value,n=s.done,n?[4,q(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,q(r)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function bi(i){return $(i==null?void 0:i.getReader)}function J(i){if(i instanceof _)return i;if(i!=null){if(pi(i))return ys(i);if(di(i))return bs(i);if(fi(i))return _s(i);if(gi(i))return _i(i);if(mi(i))return xs(i);if(bi(i))return ws(i)}throw vi(i)}function ys(i){return new _(function(t){var e=i[Vt]();if($(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function bs(i){return new _(function(t){for(var e=0;e<i.length&&!t.closed;e++)t.next(i[e]);t.complete()})}function _s(i){return new _(function(t){i.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,li)})}function xs(i){return new _(function(t){var e,s;try{for(var r=Y(i),n=r.next();!n.done;n=r.next()){var o=n.value;if(t.next(o),t.closed)return}}catch(a){e={error:a}}finally{try{n&&!n.done&&(s=r.return)&&s.call(r)}finally{if(e)throw e.error}}t.complete()})}function _i(i){return new _(function(t){Ss(i,t).catch(function(e){return t.error(e)})})}function ws(i){return _i(yi(i))}function Ss(i,t){var e,s,r,n;return ts(this,void 0,void 0,function(){var o,a;return ri(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),e=is(i),l.label=1;case 1:return[4,e.next()];case 2:if(s=l.sent(),!!s.done)return[3,4];if(o=s.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),r={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),s&&!s.done&&(n=e.return)?[4,n.call(e)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(r)throw r.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function R(i,t,e,s,r){s===void 0&&(s=0),r===void 0&&(r=!1);var n=t.schedule(function(){e(),r?i.add(this.schedule(null,s)):this.unsubscribe()},s);if(i.add(n),!r)return n}function xi(i,t){return t===void 0&&(t=0),Ct(function(e,s){e.subscribe($t(s,function(r){return R(s,i,function(){return s.next(r)},t)},function(){return R(s,i,function(){return s.complete()},t)},function(r){return R(s,i,function(){return s.error(r)},t)}))})}function wi(i,t){return t===void 0&&(t=0),Ct(function(e,s){s.add(i.schedule(function(){return e.subscribe(s)},t))})}function As(i,t){return J(i).pipe(wi(t),xi(t))}function ks(i,t){return J(i).pipe(wi(t),xi(t))}function Es(i,t){return new _(function(e){var s=0;return t.schedule(function(){s===i.length?e.complete():(e.next(i[s++]),e.closed||this.schedule())})})}function Cs(i,t){return new _(function(e){var s;return R(e,t,function(){s=i[$i](),R(e,t,function(){var r,n,o;try{r=s.next(),n=r.value,o=r.done}catch(a){e.error(a);return}o?e.complete():e.next(n)},0,!0)}),function(){return $(s==null?void 0:s.return)&&s.return()}})}function Si(i,t){if(!i)throw new Error("Iterable cannot be null");return new _(function(e){R(e,t,function(){var s=i[Symbol.asyncIterator]();R(e,t,function(){s.next().then(function(r){r.done?e.complete():e.next(r.value)})},0,!0)})})}function Os(i,t){return Si(yi(i),t)}function Ts(i,t){if(i!=null){if(pi(i))return As(i,t);if(di(i))return Es(i,t);if(fi(i))return ks(i,t);if(gi(i))return Si(i,t);if(mi(i))return Cs(i,t);if(bi(i))return Os(i,t)}throw vi(i)}function Ps(i,t){return t?Ts(i,t):J(i)}function Is(i,t){return Ct(function(e,s){var r=0;e.subscribe($t(s,function(n){s.next(i.call(t,n,r++))}))})}function Ls(i,t,e,s,r,n,o,a){var l=[],c=0,u=0,h=!1,d=function(){h&&!l.length&&!c&&t.complete()},f=function(g){return c<s?v(g):l.push(g)},v=function(g){c++;var dt=!1;J(e(g,u++)).subscribe($t(t,function(V){t.next(V)},function(){dt=!0},void 0,function(){if(dt)try{c--;for(var V=function(){var Rt=l.shift();o||v(Rt)};l.length&&c<s;)V();d()}catch(Rt){t.error(Rt)}}))};return i.subscribe($t(t,f,function(){h=!0,d()})),function(){}}function Ai(i,t,e){return e===void 0&&(e=1/0),$(t)?Ai(function(s,r){return Is(function(n,o){return t(s,n,r,o)})(J(i(s,r)))},e):(typeof t=="number"&&(e=t),Ct(function(s,r){return Ls(s,r,i,e)}))}function Rs(i){return i===void 0&&(i=1/0),Ai(ci,i)}function Us(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];var e=vs(i),s=$s(i,1/0),r=i;return r.length?r.length===1?J(r[0]):Rs(s)(Ps(r,e)):ps}/**
|
|
4
4
|
* @license
|
|
5
5
|
* Copyright 2019 Google LLC
|
|
6
6
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7
|
-
*/const
|
|
7
|
+
*/const vt=globalThis,te=vt.ShadowRoot&&(vt.ShadyCSS===void 0||vt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ee=Symbol(),Se=new WeakMap;let ki=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==ee)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(te&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=Se.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Se.set(e,t))}return t}toString(){return this.cssText}};const Ms=i=>new ki(typeof i=="string"?i:i+"",void 0,ee),T=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((s,r,n)=>s+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+i[n+1],i[0]);return new ki(e,i,ee)},js=(i,t)=>{if(te)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),r=vt.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=e.cssText,i.appendChild(s)}},Ae=te?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return Ms(e)})(i):i;/**
|
|
8
8
|
* @license
|
|
9
9
|
* Copyright 2017 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
* @license
|
|
13
13
|
* Copyright 2017 Google LLC
|
|
14
14
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
15
|
-
*/const it=globalThis,Ce=i=>i,yt=it.trustedTypes,Oe=yt?yt.createPolicy("lit-html",{createHTML:i=>i}):void 0,Ei="$lit$",C=`lit$${Math.random().toFixed(9).slice(2)}$`,Ci="?"+C,Ws=`<${Ci}>`,
|
|
16
|
-
\f\r]`,tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Te=/-->/g,Pe=/>/g,
|
|
17
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ie=/'/g,Le=/"/g,Oi=/^(?:script|style|textarea|title)$/i,Ys=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),k=Ys(1),
|
|
15
|
+
*/const it=globalThis,Ce=i=>i,yt=it.trustedTypes,Oe=yt?yt.createPolicy("lit-html",{createHTML:i=>i}):void 0,Ei="$lit$",C=`lit$${Math.random().toFixed(9).slice(2)}$`,Ci="?"+C,Ws=`<${Ci}>`,M=document,rt=()=>M.createComment(""),nt=i=>i===null||typeof i!="object"&&typeof i!="function",se=Array.isArray,Gs=i=>se(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",jt=`[
|
|
16
|
+
\f\r]`,tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Te=/-->/g,Pe=/>/g,P=RegExp(`>|${jt}(?:([^\\s"'>=/]+)(${jt}*=${jt}*(?:[^
|
|
17
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ie=/'/g,Le=/"/g,Oi=/^(?:script|style|textarea|title)$/i,Ys=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),k=Ys(1),j=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),Re=new WeakMap,L=M.createTreeWalker(M,129);function Ti(i,t){if(!se(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Oe!==void 0?Oe.createHTML(t):t}const Zs=(i,t)=>{const e=i.length-1,s=[];let r,n=t===2?"<svg>":t===3?"<math>":"",o=tt;for(let a=0;a<e;a++){const l=i[a];let c,u,h=-1,d=0;for(;d<l.length&&(o.lastIndex=d,u=o.exec(l),u!==null);)d=o.lastIndex,o===tt?u[1]==="!--"?o=Te:u[1]!==void 0?o=Pe:u[2]!==void 0?(Oi.test(u[2])&&(r=RegExp("</"+u[2],"g")),o=P):u[3]!==void 0&&(o=P):o===P?u[0]===">"?(o=r??tt,h=-1):u[1]===void 0?h=-2:(h=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?P:u[3]==='"'?Le:Ie):o===Le||o===Ie?o=P:o===Te||o===Pe?o=tt:(o=P,r=void 0);const f=o===P&&i[a+1].startsWith("/>")?" ":"";n+=o===tt?l+Ws:h>=0?(s.push(c),l.slice(0,h)+Ei+l.slice(h)+C+f):l+C+(h===-2?a:f)}return[Ti(i,n+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};class ot{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let n=0,o=0;const a=t.length-1,l=this.parts,[c,u]=Zs(t,e);if(this.el=ot.createElement(c,s),L.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=L.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const h of r.getAttributeNames())if(h.endsWith(Ei)){const d=u[o++],f=r.getAttribute(h).split(C),v=/([.?@])?(.*)/.exec(d);l.push({type:1,index:n,name:v[2],strings:f,ctor:v[1]==="."?Xs:v[1]==="?"?Qs:v[1]==="@"?Js:Tt}),r.removeAttribute(h)}else h.startsWith(C)&&(l.push({type:6,index:n}),r.removeAttribute(h));if(Oi.test(r.tagName)){const h=r.textContent.split(C),d=h.length-1;if(d>0){r.textContent=yt?yt.emptyScript:"";for(let f=0;f<d;f++)r.append(h[f],rt()),L.nextNode(),l.push({type:2,index:++n});r.append(h[d],rt())}}}else if(r.nodeType===8)if(r.data===Ci)l.push({type:2,index:n});else{let h=-1;for(;(h=r.data.indexOf(C,h+1))!==-1;)l.push({type:7,index:n}),h+=C.length-1}n++}}static createElement(t,e){const s=M.createElement("template");return s.innerHTML=t,s}}function Z(i,t,e=i,s){var o,a;if(t===j)return t;let r=s!==void 0?(o=e._$Co)==null?void 0:o[s]:e._$Cl;const n=nt(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==n&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),n===void 0?r=void 0:(r=new n(i),r._$AT(i,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=r:e._$Cl=r),r!==void 0&&(t=Z(i,r._$AS(i,t.values),r,s)),t}class Ks{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,r=((t==null?void 0:t.creationScope)??M).importNode(e,!0);L.currentNode=r;let n=L.nextNode(),o=0,a=0,l=s[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new ct(n,n.nextSibling,this,t):l.type===1?c=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(c=new Vs(n,this,t)),this._$AV.push(c),l=s[++a]}o!==(l==null?void 0:l.index)&&(n=L.nextNode(),o++)}return L.currentNode=M,r}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class ct{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,r){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cv=(r==null?void 0:r.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=Z(this,t,e),nt(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==j&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Gs(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==p&&nt(this._$AH)?this._$AA.nextSibling.data=t:this.T(M.createTextNode(t)),this._$AH=t}$(t){var n;const{values:e,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=ot.createElement(Ti(s.h,s.h[0]),this.options)),s);if(((n=this._$AH)==null?void 0:n._$AD)===r)this._$AH.p(e);else{const o=new Ks(r,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=Re.get(t.strings);return e===void 0&&Re.set(t.strings,e=new ot(t)),e}k(t){se(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,r=0;for(const n of t)r===e.length?e.push(s=new ct(this.O(rt()),this.O(rt()),this,this.options)):s=e[r],s._$AI(n),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t!==this._$AB;){const r=Ce(t).nextSibling;Ce(t).remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}let Tt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,r,n){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=p}_$AI(t,e=this,s,r){const n=this.strings;let o=!1;if(n===void 0)t=Z(this,t,e,0),o=!nt(t)||t!==this._$AH&&t!==j,o&&(this._$AH=t);else{const a=t;let l,c;for(t=n[0],l=0;l<n.length-1;l++)c=Z(this,a[s+l],e,l),c===j&&(c=this._$AH[l]),o||(o=!nt(c)||c!==this._$AH[l]),c===p?t=p:t!==p&&(t+=(c??"")+n[l+1]),this._$AH[l]=c}o&&!r&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}};class Xs extends Tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}class Qs extends Tt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}}class Js extends Tt{constructor(t,e,s,r,n){super(t,e,s,r,n),this.type=5}_$AI(t,e=this){if((t=Z(this,t,e,0)??p)===j)return;const s=this._$AH,r=t===p&&s!==p||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==p&&(s===p||r);r&&this.element.removeEventListener(this.name,this,s),n&&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 Vs{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){Z(this,t)}}const Nt=it.litHtmlPolyfillSupport;Nt==null||Nt(ot,ct),(it.litHtmlVersions??(it.litHtmlVersions=[])).push("3.3.3");const tr=(i,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let r=s._$litPart$;if(r===void 0){const n=(e==null?void 0:e.renderBefore)??null;s._$litPart$=r=new ct(t.insertBefore(rt(),n),n,void 0,e??{})}return r._$AI(i),r};/**
|
|
18
18
|
* @license
|
|
19
19
|
* Copyright 2017 Google LLC
|
|
20
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/const
|
|
21
|
+
*/const U=globalThis;let w=class extends B{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=tr(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return j}};var si;w._$litElement$=!0,w.finalized=!0,(si=U.litElementHydrateSupport)==null||si.call(U,{LitElement:w});const Ht=U.litElementPolyfillSupport;Ht==null||Ht({LitElement:w});(U.litElementVersions??(U.litElementVersions=[])).push("4.2.2");/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
* @license
|
|
27
27
|
* Copyright 2017 Google LLC
|
|
28
28
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
-
*/function H(i){return y({...i,state:!0,attribute:!1})}var sr=Object.defineProperty,rr=(i,t,e,s)=>{for(var r=void 0,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=o(t,e,r)||r);return r&&sr(t,e,r),r};const pe=class pe extends
|
|
29
|
+
*/function H(i){return y({...i,state:!0,attribute:!1})}var sr=Object.defineProperty,rr=(i,t,e,s)=>{for(var r=void 0,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=o(t,e,r)||r);return r&&sr(t,e,r),r};const pe=class pe extends w{constructor(){super(...arguments),this.anchor="BottomRight"}appendChild(t){var e;return(e=this.shadowRoot)==null||e.appendChild(t),t}render(){return this.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right"),p}};pe.styles=[T`
|
|
30
30
|
:host {
|
|
31
31
|
position: fixed;
|
|
32
32
|
display: flex;
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
* @license
|
|
59
59
|
* Copyright 2018 Google LLC
|
|
60
60
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
|
-
*/const ze=ne(class extends Pi{constructor(i){var t;if(super(i),i.type!==re.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 s,r;if(this.st===void 0){this.st=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in t)t[n]&&!((s=this.nt)!=null&&s.has(n))&&this.st.add(n);return this.render(t)}const e=i.element.classList;for(const n of this.st)n in t||(e.remove(n),this.st.delete(n));for(const n in t){const o=!!t[n];o===this.st.has(n)||(r=this.nt)!=null&&r.has(n)||(o?(e.add(n),this.st.add(n)):(e.remove(n),this.st.delete(n)))}return
|
|
61
|
+
*/const ze=ne(class extends Pi{constructor(i){var t;if(super(i),i.type!==re.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 s,r;if(this.st===void 0){this.st=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in t)t[n]&&!((s=this.nt)!=null&&s.has(n))&&this.st.add(n);return this.render(t)}const e=i.element.classList;for(const n of this.st)n in t||(e.remove(n),this.st.delete(n));for(const n in t){const o=!!t[n];o===this.st.has(n)||(r=this.nt)!=null&&r.has(n)||(o?(e.add(n),this.st.add(n)):(e.remove(n),this.st.delete(n)))}return j}}),A=(i,t,e)=>{i&&e.style.setProperty(t,i)},Ui=(i,t)=>{var e,s,r,n,o,a,l,c,u;A((e=i.colors)==null?void 0:e.primaryBackground,"--primary-background",t),A((s=i.colors)==null?void 0:s.textOnPrimaryBackground,"--text-on-primary-background",t),A((r=i.colors)==null?void 0:r.secondaryBackground,"--secondary-background",t),A((n=i.colors)==null?void 0:n.textOnSecondaryBackground,"--text-on-secondary-background",t),A((o=i.colors)==null?void 0:o.interactiveDestructiveBackground,"--destructive-color",t),A((a=i.colors)==null?void 0:a.interactiveTextOnDestructiveBackground,"--text-on-destructive-color",t),A((l=i.colors)==null?void 0:l.interactivePrimaryBackground,"--interactive-primary-background",t),A((c=i.colors)==null?void 0:c.interactiveTextOnPrimaryBackground,"--interactive-text-on-primary-background",t),A((u=i.colors)==null?void 0:u.focusColor,"--focus-color",t)};/**
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2020 Google LLC
|
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
|
-
*/const
|
|
65
|
+
*/const xt=()=>new gr;let gr=class{};const zt=new WeakMap,oe=ne(class extends Li{render(i){return p}update(i,[t]){var s;const e=t!==this.G;return e&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=(s=i.options)==null?void 0:s.host,this.rt(this.ct=i.element)),p}rt(i){if(this.G!==void 0)if(this.isConnected||(i=void 0),typeof this.G=="function"){const t=this.ht??globalThis;let e=zt.get(t);e===void 0&&(e=new WeakMap,zt.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,i),i!==void 0&&this.G.call(this.ht,i)}else this.G.value=i}get lt(){var i,t;return typeof this.G=="function"?(i=zt.get(this.ht??globalThis))==null?void 0:i.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var vr=Object.defineProperty,ut=(i,t,e,s)=>{for(var r=void 0,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=o(t,e,r)||r);return r&&vr(t,e,r),r};const ge=class ge extends w{constructor(){super(...arguments),this.active=!1,this.triggerVisible=!0,this.loaded=!1,this.containerRef=xt(),this.widgetActive$=new ui(!1),this.componentIsDestroyed$=new Ot}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}disconnectedCallback(){super.disconnectedCallback(),this.componentIsDestroyed$.next(),this.componentIsDestroyed$.complete()}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.notify("widget-set-active",{widgetId:this.application.id,active:!0}),this.widgetActive$.next(!0),this.hideTrigger()):(this.application.hide(),this.notify("widget-set-active",{widgetId:this.application.id,active:!1}),this.widgetActive$.next(!1),this.showTrigger())}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e},"*")}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&Ui(this.application.settings.branding,this)}async _renderSymbol(){var a,l,c;const t=(a=this.application)==null?void 0:a.branding(),e=(l=t==null?void 0:t.graphics)==null?void 0:l.trigger;if(e)return k` <img src=${e} class="trigger-icon" alt="" /> `;const s=(c=this.application)==null?void 0:c.triggerIcon;if(!s)return p;const r=async u=>pr,{type:n,content:o}=s;switch(n){case"Telia":{const u=await r();return u?k`<telia-icon
|
|
66
66
|
class="trigger-icon"
|
|
67
67
|
svg=${u.svg}
|
|
68
68
|
size="lg"
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
</svg>
|
|
118
118
|
</span>
|
|
119
119
|
</button>
|
|
120
|
-
</div>`}};ge.styles=[
|
|
120
|
+
</div>`}};ge.styles=[T`
|
|
121
121
|
:host {
|
|
122
122
|
--voca-rem-multiplier: 0.625;
|
|
123
123
|
--trigger-label-bg: #f5e0ff;
|
|
@@ -251,9 +251,9 @@
|
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
.trigger-label:hover {
|
|
254
|
-
|
|
254
|
+
box-shadow: inset 0 0 0 2px currentColor;
|
|
255
255
|
}
|
|
256
|
-
`];let E=ge;ut([y({attribute:!1})],E.prototype,"application");ut([H()],E.prototype,"active");ut([H()],E.prototype,"triggerVisible");ut([H()],E.prototype,"loaded");ut([H()],E.prototype,"icon");var
|
|
256
|
+
`];let E=ge;ut([y({attribute:!1})],E.prototype,"application");ut([H()],E.prototype,"active");ut([H()],E.prototype,"triggerVisible");ut([H()],E.prototype,"loaded");ut([H()],E.prototype,"icon");var $r=Object.defineProperty,I=(i,t,e,s)=>{for(var r=void 0,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=o(t,e,r)||r);return r&&$r(t,e,r),r};const Mi=i=>{const e=class e 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))`),this.application.mountComponent(this)}};e.styles=[T`
|
|
257
257
|
:host {
|
|
258
258
|
font-family: var(--font-family);
|
|
259
259
|
grid-column: span var(--width);
|
|
@@ -265,11 +265,11 @@
|
|
|
265
265
|
* {
|
|
266
266
|
box-sizing: border-box;
|
|
267
267
|
}
|
|
268
|
-
`];let t=e;return
|
|
268
|
+
`];let t=e;return I([y()],t.prototype,"properties"),I([y()],t.prototype,"context"),I([y()],t.prototype,"layout"),I([y()],t.prototype,"name"),I([y()],t.prototype,"type"),I([y({attribute:!1})],t.prototype,"application"),I([y({attribute:!1})],t.prototype,"parent"),t},ve=class ve extends Mi(w){render(){return k`Non resolved component`}};ve.styles=[T`
|
|
269
269
|
:host {
|
|
270
270
|
display: block;
|
|
271
271
|
}
|
|
272
|
-
`];let Zt
|
|
272
|
+
`];let Zt=ve;/**
|
|
273
273
|
* @license
|
|
274
274
|
* Copyright 2021 Google LLC
|
|
275
275
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -293,9 +293,9 @@
|
|
|
293
293
|
* @license
|
|
294
294
|
* Copyright 2017 Google LLC
|
|
295
295
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
296
|
-
*/function
|
|
296
|
+
*/function xr({context:i}){return(t,e)=>{const s=new WeakMap;if(typeof e=="object")return{get(){return t.get.call(this)},set(r){return s.get(this).setValue(r),t.set.call(this,r)},init(r){return s.set(this,new Fe(this,{context:i,initialValue:r})),r}};{t.constructor.addInitializer((o=>{s.set(o,new Fe(o,{context:i}))}));const r=Object.getOwnPropertyDescriptor(t,e);let n;if(r===void 0){const o=new WeakMap;n={get(){return o.get(this)},set(a){s.get(this).setValue(a),o.set(this,a)},configurable:!0,enumerable:!0}}else{const o=r.set;n={...r,set(a){s.get(this).setValue(a),o==null||o.call(this,a)}}}return void Object.defineProperty(t,e,n)}}}var wr=Object.defineProperty,le=(i,t,e,s)=>{for(var r=void 0,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=o(t,e,r)||r);return r&&wr(t,e,r),r};const Sr="application",$e=class $e extends w{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=xt(),this.fullscreen=!1,this.maximized=!1,this.isReady=new ui(!1)}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&Ui(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([s,r])=>{e.style.setProperty(`--${s}`,r)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var e,s,r;return((r=(s=(e=this.application.settings)==null?void 0:e.agentConfig)==null?void 0:s.live)==null?void 0:r.isThirdPartyWidget)??!1?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===ae.Trigger&&(this.renderRoot.host.classList.add("floating"),this.application.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.application.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right")),this.application.fullscreen&&this.renderRoot.host.classList.add("fullscreen"),this.renderRoot.host.classList.toggle("maximized",this.maximized),window.self!==window.top&&this.renderRoot.host.classList.add("embedded"),k`<div class="widget-container" ${oe(this.wrapperRef)}>
|
|
297
297
|
${mr(this.nodes,n=>n)}
|
|
298
|
-
</div>`}}
|
|
298
|
+
</div>`}};$e.styles=T`
|
|
299
299
|
:host {
|
|
300
300
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
|
301
301
|
--spacing-xs: 0.2rem;
|
|
@@ -424,8 +424,14 @@
|
|
|
424
424
|
}
|
|
425
425
|
|
|
426
426
|
.widget-container {
|
|
427
|
+
--border-color-weak: color-mix(
|
|
428
|
+
in srgb,
|
|
429
|
+
var(--text-on-primary-background) 25%,
|
|
430
|
+
transparent
|
|
431
|
+
);
|
|
427
432
|
height: 100%;
|
|
428
433
|
background-color: var(--primary-background);
|
|
434
|
+
color: var(--text-on-primary-background);
|
|
429
435
|
padding: var(--spacing-sm);
|
|
430
436
|
border: var(--widget-border, none);
|
|
431
437
|
}
|
|
@@ -467,11 +473,44 @@
|
|
|
467
473
|
:host(.ace-expanded.embedded) {
|
|
468
474
|
animation: none;
|
|
469
475
|
}
|
|
470
|
-
`;let K
|
|
476
|
+
`;let K=$e;le([y({attribute:!0})],K.prototype,"fullscreen");le([y({type:Boolean})],K.prototype,"maximized");le([y({attribute:!1}),xr({context:Sr})],K.prototype,"application");var Ar=Object.defineProperty,ce=(i,t,e,s)=>{for(var r=void 0,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=o(t,e,r)||r);return r&&Ar(t,e,r),r};const me=class me 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===ae.Trigger){const t=new E;return t.application=this.widget,t}return this.widget.render()}};me.styles=[T`
|
|
471
477
|
:host {
|
|
472
478
|
display: block;
|
|
473
479
|
}
|
|
474
|
-
`];let X=me;ce([y({attribute:!0})],X.prototype,"name");ce([H()],X.prototype,"widget");ce([H()],X.prototype,"status");customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",bt);customElements.get("ace-trigger")||customElements.define("ace-trigger",E);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Zt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",K);customElements.get("ace-widget")||customElements.define("ace-widget",X);const kr=()=>"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>(+i^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+i/4).toString(16)),Er=()=>typeof crypto.randomUUID=="function"?crypto.randomUUID():kr();class Cr{constructor(t,e,s,r,n,o,a=!0){this.label=t,this.icon=e,this.onClick=s,this.closeOnClick=r,this.key=n,this.update=new Ot,this.id=Er(),this._controller=o,this.enabled=a}updateLabel(t){this.label=t,this.update.next()}updateIcon(t){this.icon=t,this.update.next()}remove(){this._controller.removeOption(this)}subscribe(){return this.update.asObservable()}}class Or{constructor(t){this._options=[],this._subscription=null,this._host=t,t.addController(this)}hostConnected(){}hostDisconnected(){this._subscription&&this._subscription.unsubscribe(),this._options=[]}addOption(t){const e=new Cr(t.label,t.icon,t.onClick,t.closeOnClick,t.key,this);return this._options.push(e),this.handleUpdate(),e}removeOption(t){this._options=this._options.filter(e=>e.id!==t.id)}handleUpdate(){this._subscription&&this._subscription.unsubscribe();const t=this._options.map(e=>e.subscribe());this._subscription=Us(t).subscribe(()=>{this._host.requestUpdate()})}set options(t){this._options=t,this._host.requestUpdate()}get options(){return this._options}hasOptions(){return this._options.length>0}}const D={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let z,ji,Pt,Ni=!1,xt=!1,ue=!1,b=!1,qe=null,Kt=!1;const It=typeof window<"u"?window:{},S=It.document||{head:{}},Hi=It.HTMLElement||class{},m={$flags$:0,$resourcesUrl$:"",jmp:i=>i(),raf:i=>requestAnimationFrame(i),ael:(i,t,e,s)=>i.addEventListener(t,e,s),rel:(i,t,e,s)=>i.removeEventListener(t,e,s),ce:(i,t)=>new CustomEvent(i,t)},Tr=(()=>{let i=!1;try{S.addEventListener("e",null,Object.defineProperty({},"passive",{get(){i=!0}}))}catch{}return i})(),Pr=i=>Promise.resolve(i),Ir=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),Bi=(i,t,e,s)=>{e&&e.map(([r,n,o])=>{const a=Rr(i,r),l=Lr(t,o),c=Ur(r);m.ael(a,n,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>m.rel(a,n,l,c))})},Lr=(i,t)=>e=>{try{D.lazyLoad||i.$hostElement$[t](e)}catch(s){ht(s)}},Rr=(i,t)=>t&4?S:t&8?It:t&16?S.body:i,Ur=i=>Tr?{passive:(i&1)!==0,capture:(i&2)!==0}:(i&2)!==0,We="http://www.w3.org/1999/xlink",j=(i,t="")=>()=>{},Ge=new WeakMap,Mr=(i,t,e)=>{let s=kt.get(i);Ir&&e?(s=s||new CSSStyleSheet,s.replace(t)):s=t,kt.set(i,s)},jr=(i,t,e,s)=>{let r=Di(t,e),n=kt.get(r);if(i=i.nodeType===11?i:S,n)if(typeof n=="string"){i=i.head||i;let o=Ge.get(i),a;o||Ge.set(i,o=new Set),o.has(r)||(a=S.createElement("style"),a.innerHTML=n,i.insertBefore(a,i.querySelector("link")),o&&o.add(r))}else i.adoptedStyleSheets.includes(n)||(i.adoptedStyleSheets=[...i.adoptedStyleSheets,n]);return r},Nr=i=>{const t=i.$cmpMeta$,e=i.$hostElement$,s=t.$flags$,r=j("attachStyles",t.$tagName$),n=jr(e.shadowRoot?e.shadowRoot:e.getRootNode(),t,i.$modeName$);s&10&&(e["s-sc"]=n,e.classList.add(n+"-h"),s&2&&e.classList.add(n+"-s")),r()},Di=(i,t)=>"sc-"+(t&&i.$flags$&32?i.$tagName$+"-"+t:i.$tagName$),Hr=i=>pn.map(t=>t(i)).find(t=>!!t),Ye={},Br="http://www.w3.org/2000/svg",Dr="http://www.w3.org/1999/xhtml",zr=i=>i!=null,he=i=>(i=typeof i,i==="object"||i==="function"),W=(i,t,...e)=>{let s=null,r=null,n=null,o=!1,a=!1,l=[];const c=h=>{for(let d=0;d<h.length;d++)s=h[d],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((o=typeof i!="function"&&!he(s))&&(s=String(s)),o&&a?l[l.length-1].$text$+=s:l.push(o?St(null,s):s),a=o)};if(c(e),t){t.key&&(r=t.key),t.name&&(n=t.name);{const h=t.className||t.class;h&&(t.class=typeof h!="object"?h:Object.keys(h).filter(d=>h[d]).join(" "))}}if(typeof i=="function")return i(t===null?{}:t,l,qr);const u=St(i,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=r,u.$name$=n,u},St=(i,t)=>{const e={$flags$:0,$tag$:i,$text$:t,$elm$:null,$children$:null};return e.$attrs$=null,e.$key$=null,e.$name$=null,e},de={},Fr=i=>i&&i.$tag$===de,qr={forEach:(i,t)=>i.map(Ze).forEach(t),map:(i,t)=>i.map(Ze).map(t).map(Wr)},Ze=i=>({vattrs:i.$attrs$,vchildren:i.$children$,vkey:i.$key$,vname:i.$name$,vtag:i.$tag$,vtext:i.$text$}),Wr=i=>{if(typeof i.vtag=="function"){const e=Object.assign({},i.vattrs);return i.vkey&&(e.key=i.vkey),i.vname&&(e.name=i.vname),W(i.vtag,e,...i.vchildren||[])}const t=St(i.vtag,i.vtext);return t.$attrs$=i.vattrs,t.$children$=i.vchildren,t.$key$=i.vkey,t.$name$=i.vname,t},Ke=(i,t,e,s,r,n)=>{if(e!==s){let o=Ve(i,t),a=t.toLowerCase();if(t==="class"){const l=i.classList,c=Xe(e),u=Xe(s);l.remove(...c.filter(h=>h&&!u.includes(h))),l.add(...u.filter(h=>h&&!c.includes(h)))}else if(t==="style"){for(const l in e)(!s||s[l]==null)&&(l.includes("-")?i.style.removeProperty(l):i.style[l]="");for(const l in s)(!e||s[l]!==e[l])&&(l.includes("-")?i.style.setProperty(l,s[l]):i.style[l]=s[l])}else if(t!=="key")if(t==="ref")s&&s(i);else if(!i.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):Ve(It,a)?t=a.slice(2):t=a[2]+t.slice(3),e&&m.rel(i,t,e,!1),s&&m.ael(i,t,s,!1);else{const l=he(s);if((o||l&&s!==null)&&!r)try{if(i.tagName.includes("-"))i[t]=s;else{let u=s??"";t==="list"?o=!1:(e==null||i[t]!=u)&&(i[t]=u)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),s==null||s===!1?(s!==!1||i.getAttribute(t)==="")&&(c?i.removeAttributeNS(We,t):i.removeAttribute(t)):(!o||n&4||r)&&!l&&(s=s===!0?"":s,c?i.setAttributeNS(We,t,s):i.setAttribute(t,s))}}},Gr=/\s/,Xe=i=>i?i.split(Gr):[],zi=(i,t,e,s)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,n=i&&i.$attrs$||Ye,o=t.$attrs$||Ye;for(s in n)s in o||Ke(r,s,n[s],void 0,e,t.$flags$);for(s in o)Ke(r,s,n[s],o[s],e,t.$flags$)},At=(i,t,e,s)=>{let r=t.$children$[e],n=0,o,a,l;if(Ni||(ue=!0,r.$tag$==="slot"&&(z&&s.classList.add(z+"-s"),r.$flags$|=r.$children$?2:1)),r.$text$!==null)o=r.$elm$=S.createTextNode(r.$text$);else if(r.$flags$&1)o=r.$elm$=S.createTextNode("");else{if(b||(b=r.$tag$==="svg"),o=r.$elm$=S.createElementNS(b?Br:Dr,r.$flags$&2?"slot-fb":r.$tag$),b&&r.$tag$==="foreignObject"&&(b=!1),zi(null,r,b),zr(z)&&o["s-si"]!==z&&o.classList.add(o["s-si"]=z),r.$children$)for(n=0;n<r.$children$.length;++n)a=At(i,r,n,o),a&&o.appendChild(a);r.$tag$==="svg"?b=!1:o.tagName==="foreignObject"&&(b=!0)}return o["s-hn"]=Pt,r.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=ji,o["s-sn"]=r.$name$||"",l=i&&i.$children$&&i.$children$[e],l&&l.$tag$===r.$tag$&&i.$elm$&&at(i.$elm$,!1)),o},at=(i,t)=>{m.$flags$|=1;const e=i.childNodes;for(let s=e.length-1;s>=0;s--){const r=e[s];r["s-hn"]!==Pt&&r["s-ol"]&&(Wi(r).insertBefore(r,fe(r)),r["s-ol"].remove(),r["s-ol"]=void 0,ue=!0),t&&at(r,t)}m.$flags$&=-2},Fi=(i,t,e,s,r,n)=>{let o=i["s-cr"]&&i["s-cr"].parentNode||i,a;for(o.shadowRoot&&o.tagName===Pt&&(o=o.shadowRoot);r<=n;++r)s[r]&&(a=At(null,e,r,i),a&&(s[r].$elm$=a,o.insertBefore(a,fe(t))))},qi=(i,t,e,s,r)=>{for(;t<=e;++t)(s=i[t])&&(r=s.$elm$,Zi(s),xt=!0,r["s-ol"]?r["s-ol"].remove():at(r,!0),r.remove())},Yr=(i,t,e,s)=>{let r=0,n=0,o=0,a=0,l=t.length-1,c=t[0],u=t[l],h=s.length-1,d=s[0],f=s[h],$,g;for(;r<=l&&n<=h;)if(c==null)c=t[++r];else if(u==null)u=t[--l];else if(d==null)d=s[++n];else if(f==null)f=s[--h];else if(pt(c,d))F(c,d),c=t[++r],d=s[++n];else if(pt(u,f))F(u,f),u=t[--l],f=s[--h];else if(pt(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&at(c.$elm$.parentNode,!1),F(c,f),i.insertBefore(c.$elm$,u.$elm$.nextSibling),c=t[++r],f=s[--h];else if(pt(u,d))(c.$tag$==="slot"||f.$tag$==="slot")&&at(u.$elm$.parentNode,!1),F(u,d),i.insertBefore(u.$elm$,c.$elm$),u=t[--l],d=s[++n];else{for(o=-1,a=r;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===d.$key$){o=a;break}o>=0?(g=t[o],g.$tag$!==d.$tag$?$=At(t&&t[n],e,o,i):(F(g,d),t[o]=void 0,$=g.$elm$),d=s[++n]):($=At(t&&t[n],e,n,i),d=s[++n]),$&&Wi(c.$elm$).insertBefore($,fe(c.$elm$))}r>l?Fi(i,s[h+1]==null?null:s[h+1].$elm$,e,s,n,h):n>h&&qi(t,r,l)},pt=(i,t)=>i.$tag$===t.$tag$?i.$tag$==="slot"?i.$name$===t.$name$:i.$key$===t.$key$:!1,fe=i=>i&&i["s-ol"]||i,Wi=i=>(i["s-ol"]?i["s-ol"]:i).parentNode,F=(i,t)=>{const e=t.$elm$=i.$elm$,s=i.$children$,r=t.$children$,n=t.$tag$,o=t.$text$;let a;o===null?(b=n==="svg"?!0:n==="foreignObject"?!1:b,n==="slot"||zi(i,t,b),s!==null&&r!==null?Yr(e,s,t,r):r!==null?(i.$text$!==null&&(e.textContent=""),Fi(e,null,t,r,0,r.length-1)):s!==null&&qi(s,0,s.length-1),b&&n==="svg"&&(b=!1)):(a=e["s-cr"])?a.parentNode.textContent=o:i.$text$!==o&&(e.data=o)},Gi=i=>{let t=i.childNodes,e,s,r,n,o,a;for(s=0,r=t.length;s<r;s++)if(e=t[s],e.nodeType===1){if(e["s-sr"]){for(o=e["s-sn"],e.hidden=!1,n=0;n<r;n++)if(a=t[n].nodeType,t[n]["s-hn"]!==e["s-hn"]||o!==""){if(a===1&&o===t[n].getAttribute("slot")){e.hidden=!0;break}}else if(a===1||a===3&&t[n].textContent.trim()!==""){e.hidden=!0;break}}Gi(e)}},w=[],Yi=i=>{let t,e,s,r,n,o,a=0,l=i.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(e=t["s-cr"])&&e.parentNode)for(s=e.parentNode.childNodes,r=t["s-sn"],o=s.length-1;o>=0;o--)e=s[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"]&&(Qe(e,r)?(n=w.find(u=>u.$nodeToRelocate$===e),xt=!0,e["s-sn"]=e["s-sn"]||r,n?n.$slotRefNode$=t:w.push({$slotRefNode$:t,$nodeToRelocate$:e}),e["s-sr"]&&w.map(u=>{Qe(u.$nodeToRelocate$,e["s-sn"])&&(n=w.find(h=>h.$nodeToRelocate$===e),n&&!u.$slotRefNode$&&(u.$slotRefNode$=n.$slotRefNode$))})):w.some(u=>u.$nodeToRelocate$===e)||w.push({$nodeToRelocate$:e}));t.nodeType===1&&Yi(t)}},Qe=(i,t)=>i.nodeType===1?i.getAttribute("slot")===null&&t===""||i.getAttribute("slot")===t:i["s-sn"]===t?!0:t==="",Zi=i=>{i.$attrs$&&i.$attrs$.ref&&i.$attrs$.ref(null),i.$children$&&i.$children$.map(Zi)},Zr=(i,t)=>{const e=i.$hostElement$,s=i.$cmpMeta$,r=i.$vnode$||St(null,null),n=Fr(t)?t:W(null,null,t);Pt=e.tagName,s.$attrsToReflect$&&(n.$attrs$=n.$attrs$||{},s.$attrsToReflect$.map(([o,a])=>n.$attrs$[a]=e[o])),n.$tag$=null,n.$flags$|=4,i.$vnode$=n,n.$elm$=r.$elm$=e.shadowRoot||e,z=e["s-sc"],ji=e["s-cr"],Ni=(s.$flags$&1)!==0,xt=!1,F(r,n);{if(m.$flags$|=1,ue){Yi(n.$elm$);let o,a,l,c,u,h,d=0;for(;d<w.length;d++)o=w[d],a=o.$nodeToRelocate$,a["s-ol"]||(l=S.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(d=0;d<w.length;d++)if(o=w[d],a=o.$nodeToRelocate$,o.$slotRefNode$){for(c=o.$slotRefNode$.parentNode,u=o.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(h=l["s-nr"],h&&h["s-sn"]===a["s-sn"]&&c===h.parentNode&&(h=h.nextSibling,!h||!h["s-nr"])){u=h;break}(!u&&c!==a.parentNode||a.nextSibling!==u)&&a!==u&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,u))}else a.nodeType===1&&(a.hidden=!0)}xt&&Gi(n.$elm$),m.$flags$&=-2,w.length=0}},Kr=i=>i,Xr=(i,t,e)=>{const s=Kr(i);return{emit:r=>Qr(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:r})}},Qr=(i,t,e)=>{const s=m.ce(t,e);return i.dispatchEvent(s),s},Jr=(i,t)=>{},Ki=(i,t)=>(i.$flags$|=16,Jr(i,i.$ancestorComponent$),vn(()=>Vr(i,t))),Vr=(i,t)=>{const e=i.$hostElement$,s=j("scheduleUpdate",i.$cmpMeta$.$tagName$),r=e;let n;return t?n=G(r,"componentWillLoad"):n=G(r,"componentWillUpdate"),n=Je(n,()=>G(r,"componentWillRender")),s(),Je(n,()=>tn(i,r,t))},tn=async(i,t,e)=>{const s=i.$hostElement$,r=j("update",i.$cmpMeta$.$tagName$);s["s-rc"],e&&Nr(i);const n=j("render",i.$cmpMeta$.$tagName$);en(i,t,s),n(),r(),sn(i)},en=(i,t,e)=>{try{qe=t,t=t.render&&t.render(),i.$flags$&=-17,i.$flags$|=2,(D.hasRenderFn||D.reflect)&&(D.vdomRender||D.reflect)&&(D.hydrateServerSide||Zr(i,t))}catch(a){ht(a,i.$hostElement$)}return qe=null,null},sn=i=>{const t=i.$cmpMeta$.$tagName$,e=i.$hostElement$,s=j("postUpdate",t),r=e;i.$ancestorComponent$,G(r,"componentDidRender"),i.$flags$&64?(G(r,"componentDidUpdate"),s()):(i.$flags$|=64,G(r,"componentDidLoad"),s())},G=(i,t,e)=>{if(i&&i[t])try{return i[t](e)}catch(s){ht(s)}},Je=(i,t)=>i&&i.then?i.then(t):t(),rn=(i,t)=>i!=null&&!he(i)?t&4?i==="false"?!1:i===""||!!i:t&2?parseFloat(i):t&1?String(i):i:i,nn=(i,t)=>Lt(i).$instanceValues$.get(t),on=(i,t,e,s)=>{const r=Lt(i),n=i,o=r.$instanceValues$.get(t),a=r.$flags$,l=n;e=rn(e,s.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(e);if(e!==o&&!c){r.$instanceValues$.set(t,e);{if(s.$watchers$&&a&128){const h=s.$watchers$[t];h&&h.map(d=>{try{l[d](e,o,t)}catch(f){ht(f,n)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(e,o,t)===!1)return;Ki(r,!1)}}}},an=(i,t,e)=>{if(t.$members$){i.watchers&&(t.$watchers$=i.watchers);const s=Object.entries(t.$members$),r=i.prototype;s.map(([n,[o]])=>{(o&31||o&32)&&Object.defineProperty(r,n,{get(){return nn(this,n)},set(a){on(this,n,a,t)},configurable:!0,enumerable:!0})});{const n=new Map;r.attributeChangedCallback=function(o,a,l){m.jmp(()=>{const c=n.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(r.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},i.observedAttributes=s.filter(([o,a])=>a[0]&15).map(([o,a])=>{const l=a[1]||o;return n.set(l,o),a[0]&512&&t.$attrsToReflect$.push([o,l]),l})}}return i},ln=async(i,t,e,s,r)=>{if((t.$flags$&32)===0&&(r=i.constructor,t.$flags$|=32,customElements.whenDefined(e.$tagName$).then(()=>t.$flags$|=128),r.style)){let o=r.style;typeof o!="string"&&(o=o[t.$modeName$=Hr(i)]);const a=Di(e,t.$modeName$);if(!kt.has(a)){const l=j("registerStyles",e.$tagName$);Mr(a,o,!!(e.$flags$&1)),l()}}t.$ancestorComponent$,Ki(t,!0)},cn=i=>{},un=i=>{if((m.$flags$&1)===0){const t=Lt(i),e=t.$cmpMeta$,s=j("connectedCallback",e.$tagName$);t.$flags$&1?(Bi(i,t,e.$listeners$),cn(t.$lazyInstance$)):(t.$flags$|=1,e.$flags$&12&&hn(i),e.$members$&&Object.entries(e.$members$).map(([r,[n]])=>{if(n&31&&i.hasOwnProperty(r)){const o=i[r];delete i[r],i[r]=o}}),ln(i,t,e)),s()}},hn=i=>{const t=i["s-cr"]=S.createComment("");t["s-cn"]=!0,i.insertBefore(t,i.firstChild)},dn=i=>{if((m.$flags$&1)===0){const t=Lt(i);t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0)}},Xi=(i,t)=>{const e={$flags$:t[0],$tagName$:t[1]};e.$members$=t[2],e.$listeners$=t[3],e.$watchers$=i.$watchers$,e.$attrsToReflect$=[];const s=i.prototype.connectedCallback,r=i.prototype.disconnectedCallback;return Object.assign(i.prototype,{__registerHost(){fn(this,e)},connectedCallback(){un(this),s&&s.call(this)},disconnectedCallback(){dn(this),r&&r.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(e.$flags$&16)})}}),i.is=e.$tagName$,an(i,e)},Qi=new WeakMap,Lt=i=>Qi.get(i),fn=(i,t)=>{const e={$flags$:0,$hostElement$:i,$cmpMeta$:t,$instanceValues$:new Map};return Bi(i,e,t.$listeners$),Qi.set(i,e)},Ve=(i,t)=>t in i,ht=(i,t)=>(0,console.error)(i,t),kt=new Map,pn=[],ti=[],Ji=[],gn=(i,t)=>e=>{i.push(e),Kt||(Kt=!0,t&&m.$flags$&4?$n(Xt):m.raf(Xt))},ei=i=>{for(let t=0;t<i.length;t++)try{i[t](performance.now())}catch(e){ht(e)}i.length=0},Xt=()=>{ei(ti),ei(Ji),(Kt=ti.length>0)&&m.raf(Xt)},$n=i=>Pr().then(i),vn=gn(Ji,!0),mn=(i={})=>{const{content:t="",title:e,attributes:s=[]}=i;let r="",n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...s];return e&&(r=`<title>${e}</title>`),`<svg ${n.map(a=>`${a.name}="${a.value}"`).join(" ")}>${r}${t}</svg>`},yn=i=>i.replace(/<(\/?)svg([^>]*)>/g,"").trim();function bn(i){return`${i.getFullYear()}.${i.getMonth()+1}`}class _n{constructor(t){this.voca_component=t,this.voca_added=bn(new Date)}}const wn="telia-vst{display:none}",xn=Xi(class extends Hi{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=Xr(this,"vocaInternalUStats")}connectedCallback(){this.vocaInternalUStats.emit(new _n(this.dataTrackingId))}render(){return W(de,null)}static get style(){return wn}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function Vi(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,xn);break}})}Vi();function Qt(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function Sn(){if(typeof Qt().vocadsIcons!==void 0)return Qt().vocadsIcons}function An(){return Qt().vocadsIconsRegistered}const kn=".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}",En=Xi(class extends Hi{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(An()&&this.name){const i=Sn();return i[this.name]?i[this.name].svg:""}return this.name&&console.warn(this.name,"Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"),""}render(){let i=this.getSvgString(),t=[{name:"viewBox",value:"0 0 64 64"}];this.allyTitle?t=[...t,{name:"role",value:"img"}]:t=[...t,{name:"aria-hidden",value:"true"}];const e=mn({content:yn(i),attributes:t,title:this.allyTitle});return W(de,{class:`telia-icon telia-icon--${this.size}`},W("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:e}),W("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return kn}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function Cn(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,En);break;case"telia-vst":customElements.get(t)||Vi();break}})}Cn();var On=Object.defineProperty,Tn=(i,t,e,s)=>{for(var r=void 0,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=o(t,e,r)||r);return r&&On(t,e,r),r};const ii=Mi(x),ye=class ye extends ii{constructor(){super(...arguments),this.optionsIsVisible=!1,this.options=new Or(this),this.optionsRef=wt(),this.optionsTriggerRef=wt(),this._onClickOutside=t=>{!this.optionsTriggerRef.value||!this.optionsRef.value||t.composedPath().includes(this.optionsTriggerRef.value)||t.composedPath().includes(this.optionsRef.value)||(this.optionsIsVisible=!1)}}addOption(t){return this.options.addOption(t)}removeOption(t){const e=this.options.removeOption(t);return this.requestUpdate(),e}_onToggleOptionsMenuClick(){this.optionsIsVisible=!this.optionsIsVisible}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._onClickOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onClickOutside)}render(){return this.options.options.length?k` <div class="side-menu">
|
|
480
|
+
`];let X=me;ce([y({attribute:!0})],X.prototype,"name");ce([H()],X.prototype,"widget");ce([H()],X.prototype,"status");customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",bt);customElements.get("ace-trigger")||customElements.define("ace-trigger",E);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Zt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",K);customElements.get("ace-widget")||customElements.define("ace-widget",X);T`
|
|
481
|
+
.action-button {
|
|
482
|
+
box-shadow: inset 0 0 0 1px currentColor;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.action-button:not(:disabled):hover {
|
|
486
|
+
box-shadow: inset 0 0 0 2px currentColor;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.action-button:not(:disabled):active {
|
|
490
|
+
box-shadow: inset 0 0 0 3px currentColor;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.action-button:focus-visible {
|
|
494
|
+
outline: 2px solid var(--focus-color);
|
|
495
|
+
outline-offset: 2px;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.action-button:disabled {
|
|
499
|
+
cursor: not-allowed;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
@media (forced-colors: active) {
|
|
503
|
+
.action-button {
|
|
504
|
+
outline: 1px solid ButtonText;
|
|
505
|
+
outline-offset: -1px;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.action-button:focus-visible {
|
|
509
|
+
outline: 2px solid Highlight;
|
|
510
|
+
outline-offset: 2px;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
`;const kr=()=>"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>(+i^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+i/4).toString(16)),Er=()=>typeof crypto.randomUUID=="function"?crypto.randomUUID():kr();class Cr{constructor(t,e,s,r,n,o,a=!0){this.label=t,this.icon=e,this.onClick=s,this.closeOnClick=r,this.key=n,this.update=new Ot,this.id=Er(),this._controller=o,this.enabled=a}updateLabel(t){this.label=t,this.update.next()}updateIcon(t){this.icon=t,this.update.next()}remove(){this._controller.removeOption(this)}subscribe(){return this.update.asObservable()}}class Or{constructor(t){this._options=[],this._subscription=null,this._host=t,t.addController(this)}hostConnected(){}hostDisconnected(){this._subscription&&this._subscription.unsubscribe(),this._options=[]}addOption(t){const e=new Cr(t.label,t.icon,t.onClick,t.closeOnClick,t.key,this);return this._options.push(e),this.handleUpdate(),e}removeOption(t){this._options=this._options.filter(e=>e.id!==t.id)}handleUpdate(){this._subscription&&this._subscription.unsubscribe();const t=this._options.map(e=>e.subscribe());this._subscription=Us(t).subscribe(()=>{this._host.requestUpdate()})}set options(t){this._options=t,this._host.requestUpdate()}get options(){return this._options}hasOptions(){return this._options.length>0}}const D={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let z,ji,Pt,Ni=!1,wt=!1,ue=!1,b=!1,qe=null,Kt=!1;const It=typeof window<"u"?window:{},S=It.document||{head:{}},Hi=It.HTMLElement||class{},m={$flags$:0,$resourcesUrl$:"",jmp:i=>i(),raf:i=>requestAnimationFrame(i),ael:(i,t,e,s)=>i.addEventListener(t,e,s),rel:(i,t,e,s)=>i.removeEventListener(t,e,s),ce:(i,t)=>new CustomEvent(i,t)},Tr=(()=>{let i=!1;try{S.addEventListener("e",null,Object.defineProperty({},"passive",{get(){i=!0}}))}catch{}return i})(),Pr=i=>Promise.resolve(i),Ir=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),Bi=(i,t,e,s)=>{e&&e.map(([r,n,o])=>{const a=Rr(i,r),l=Lr(t,o),c=Ur(r);m.ael(a,n,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>m.rel(a,n,l,c))})},Lr=(i,t)=>e=>{try{D.lazyLoad||i.$hostElement$[t](e)}catch(s){ht(s)}},Rr=(i,t)=>t&4?S:t&8?It:t&16?S.body:i,Ur=i=>Tr?{passive:(i&1)!==0,capture:(i&2)!==0}:(i&2)!==0,We="http://www.w3.org/1999/xlink",N=(i,t="")=>()=>{},Ge=new WeakMap,Mr=(i,t,e)=>{let s=kt.get(i);Ir&&e?(s=s||new CSSStyleSheet,s.replace(t)):s=t,kt.set(i,s)},jr=(i,t,e,s)=>{let r=Di(t,e),n=kt.get(r);if(i=i.nodeType===11?i:S,n)if(typeof n=="string"){i=i.head||i;let o=Ge.get(i),a;o||Ge.set(i,o=new Set),o.has(r)||(a=S.createElement("style"),a.innerHTML=n,i.insertBefore(a,i.querySelector("link")),o&&o.add(r))}else i.adoptedStyleSheets.includes(n)||(i.adoptedStyleSheets=[...i.adoptedStyleSheets,n]);return r},Nr=i=>{const t=i.$cmpMeta$,e=i.$hostElement$,s=t.$flags$,r=N("attachStyles",t.$tagName$),n=jr(e.shadowRoot?e.shadowRoot:e.getRootNode(),t,i.$modeName$);s&10&&(e["s-sc"]=n,e.classList.add(n+"-h"),s&2&&e.classList.add(n+"-s")),r()},Di=(i,t)=>"sc-"+(t&&i.$flags$&32?i.$tagName$+"-"+t:i.$tagName$),Hr=i=>pn.map(t=>t(i)).find(t=>!!t),Ye={},Br="http://www.w3.org/2000/svg",Dr="http://www.w3.org/1999/xhtml",zr=i=>i!=null,he=i=>(i=typeof i,i==="object"||i==="function"),W=(i,t,...e)=>{let s=null,r=null,n=null,o=!1,a=!1,l=[];const c=h=>{for(let d=0;d<h.length;d++)s=h[d],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((o=typeof i!="function"&&!he(s))&&(s=String(s)),o&&a?l[l.length-1].$text$+=s:l.push(o?St(null,s):s),a=o)};if(c(e),t){t.key&&(r=t.key),t.name&&(n=t.name);{const h=t.className||t.class;h&&(t.class=typeof h!="object"?h:Object.keys(h).filter(d=>h[d]).join(" "))}}if(typeof i=="function")return i(t===null?{}:t,l,qr);const u=St(i,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=r,u.$name$=n,u},St=(i,t)=>{const e={$flags$:0,$tag$:i,$text$:t,$elm$:null,$children$:null};return e.$attrs$=null,e.$key$=null,e.$name$=null,e},de={},Fr=i=>i&&i.$tag$===de,qr={forEach:(i,t)=>i.map(Ze).forEach(t),map:(i,t)=>i.map(Ze).map(t).map(Wr)},Ze=i=>({vattrs:i.$attrs$,vchildren:i.$children$,vkey:i.$key$,vname:i.$name$,vtag:i.$tag$,vtext:i.$text$}),Wr=i=>{if(typeof i.vtag=="function"){const e=Object.assign({},i.vattrs);return i.vkey&&(e.key=i.vkey),i.vname&&(e.name=i.vname),W(i.vtag,e,...i.vchildren||[])}const t=St(i.vtag,i.vtext);return t.$attrs$=i.vattrs,t.$children$=i.vchildren,t.$key$=i.vkey,t.$name$=i.vname,t},Ke=(i,t,e,s,r,n)=>{if(e!==s){let o=Ve(i,t),a=t.toLowerCase();if(t==="class"){const l=i.classList,c=Xe(e),u=Xe(s);l.remove(...c.filter(h=>h&&!u.includes(h))),l.add(...u.filter(h=>h&&!c.includes(h)))}else if(t==="style"){for(const l in e)(!s||s[l]==null)&&(l.includes("-")?i.style.removeProperty(l):i.style[l]="");for(const l in s)(!e||s[l]!==e[l])&&(l.includes("-")?i.style.setProperty(l,s[l]):i.style[l]=s[l])}else if(t!=="key")if(t==="ref")s&&s(i);else if(!i.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):Ve(It,a)?t=a.slice(2):t=a[2]+t.slice(3),e&&m.rel(i,t,e,!1),s&&m.ael(i,t,s,!1);else{const l=he(s);if((o||l&&s!==null)&&!r)try{if(i.tagName.includes("-"))i[t]=s;else{let u=s??"";t==="list"?o=!1:(e==null||i[t]!=u)&&(i[t]=u)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),s==null||s===!1?(s!==!1||i.getAttribute(t)==="")&&(c?i.removeAttributeNS(We,t):i.removeAttribute(t)):(!o||n&4||r)&&!l&&(s=s===!0?"":s,c?i.setAttributeNS(We,t,s):i.setAttribute(t,s))}}},Gr=/\s/,Xe=i=>i?i.split(Gr):[],zi=(i,t,e,s)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,n=i&&i.$attrs$||Ye,o=t.$attrs$||Ye;for(s in n)s in o||Ke(r,s,n[s],void 0,e,t.$flags$);for(s in o)Ke(r,s,n[s],o[s],e,t.$flags$)},At=(i,t,e,s)=>{let r=t.$children$[e],n=0,o,a,l;if(Ni||(ue=!0,r.$tag$==="slot"&&(z&&s.classList.add(z+"-s"),r.$flags$|=r.$children$?2:1)),r.$text$!==null)o=r.$elm$=S.createTextNode(r.$text$);else if(r.$flags$&1)o=r.$elm$=S.createTextNode("");else{if(b||(b=r.$tag$==="svg"),o=r.$elm$=S.createElementNS(b?Br:Dr,r.$flags$&2?"slot-fb":r.$tag$),b&&r.$tag$==="foreignObject"&&(b=!1),zi(null,r,b),zr(z)&&o["s-si"]!==z&&o.classList.add(o["s-si"]=z),r.$children$)for(n=0;n<r.$children$.length;++n)a=At(i,r,n,o),a&&o.appendChild(a);r.$tag$==="svg"?b=!1:o.tagName==="foreignObject"&&(b=!0)}return o["s-hn"]=Pt,r.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=ji,o["s-sn"]=r.$name$||"",l=i&&i.$children$&&i.$children$[e],l&&l.$tag$===r.$tag$&&i.$elm$&&at(i.$elm$,!1)),o},at=(i,t)=>{m.$flags$|=1;const e=i.childNodes;for(let s=e.length-1;s>=0;s--){const r=e[s];r["s-hn"]!==Pt&&r["s-ol"]&&(Wi(r).insertBefore(r,fe(r)),r["s-ol"].remove(),r["s-ol"]=void 0,ue=!0),t&&at(r,t)}m.$flags$&=-2},Fi=(i,t,e,s,r,n)=>{let o=i["s-cr"]&&i["s-cr"].parentNode||i,a;for(o.shadowRoot&&o.tagName===Pt&&(o=o.shadowRoot);r<=n;++r)s[r]&&(a=At(null,e,r,i),a&&(s[r].$elm$=a,o.insertBefore(a,fe(t))))},qi=(i,t,e,s,r)=>{for(;t<=e;++t)(s=i[t])&&(r=s.$elm$,Zi(s),wt=!0,r["s-ol"]?r["s-ol"].remove():at(r,!0),r.remove())},Yr=(i,t,e,s)=>{let r=0,n=0,o=0,a=0,l=t.length-1,c=t[0],u=t[l],h=s.length-1,d=s[0],f=s[h],v,g;for(;r<=l&&n<=h;)if(c==null)c=t[++r];else if(u==null)u=t[--l];else if(d==null)d=s[++n];else if(f==null)f=s[--h];else if(pt(c,d))F(c,d),c=t[++r],d=s[++n];else if(pt(u,f))F(u,f),u=t[--l],f=s[--h];else if(pt(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&at(c.$elm$.parentNode,!1),F(c,f),i.insertBefore(c.$elm$,u.$elm$.nextSibling),c=t[++r],f=s[--h];else if(pt(u,d))(c.$tag$==="slot"||f.$tag$==="slot")&&at(u.$elm$.parentNode,!1),F(u,d),i.insertBefore(u.$elm$,c.$elm$),u=t[--l],d=s[++n];else{for(o=-1,a=r;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===d.$key$){o=a;break}o>=0?(g=t[o],g.$tag$!==d.$tag$?v=At(t&&t[n],e,o,i):(F(g,d),t[o]=void 0,v=g.$elm$),d=s[++n]):(v=At(t&&t[n],e,n,i),d=s[++n]),v&&Wi(c.$elm$).insertBefore(v,fe(c.$elm$))}r>l?Fi(i,s[h+1]==null?null:s[h+1].$elm$,e,s,n,h):n>h&&qi(t,r,l)},pt=(i,t)=>i.$tag$===t.$tag$?i.$tag$==="slot"?i.$name$===t.$name$:i.$key$===t.$key$:!1,fe=i=>i&&i["s-ol"]||i,Wi=i=>(i["s-ol"]?i["s-ol"]:i).parentNode,F=(i,t)=>{const e=t.$elm$=i.$elm$,s=i.$children$,r=t.$children$,n=t.$tag$,o=t.$text$;let a;o===null?(b=n==="svg"?!0:n==="foreignObject"?!1:b,n==="slot"||zi(i,t,b),s!==null&&r!==null?Yr(e,s,t,r):r!==null?(i.$text$!==null&&(e.textContent=""),Fi(e,null,t,r,0,r.length-1)):s!==null&&qi(s,0,s.length-1),b&&n==="svg"&&(b=!1)):(a=e["s-cr"])?a.parentNode.textContent=o:i.$text$!==o&&(e.data=o)},Gi=i=>{let t=i.childNodes,e,s,r,n,o,a;for(s=0,r=t.length;s<r;s++)if(e=t[s],e.nodeType===1){if(e["s-sr"]){for(o=e["s-sn"],e.hidden=!1,n=0;n<r;n++)if(a=t[n].nodeType,t[n]["s-hn"]!==e["s-hn"]||o!==""){if(a===1&&o===t[n].getAttribute("slot")){e.hidden=!0;break}}else if(a===1||a===3&&t[n].textContent.trim()!==""){e.hidden=!0;break}}Gi(e)}},x=[],Yi=i=>{let t,e,s,r,n,o,a=0,l=i.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(e=t["s-cr"])&&e.parentNode)for(s=e.parentNode.childNodes,r=t["s-sn"],o=s.length-1;o>=0;o--)e=s[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"]&&(Qe(e,r)?(n=x.find(u=>u.$nodeToRelocate$===e),wt=!0,e["s-sn"]=e["s-sn"]||r,n?n.$slotRefNode$=t:x.push({$slotRefNode$:t,$nodeToRelocate$:e}),e["s-sr"]&&x.map(u=>{Qe(u.$nodeToRelocate$,e["s-sn"])&&(n=x.find(h=>h.$nodeToRelocate$===e),n&&!u.$slotRefNode$&&(u.$slotRefNode$=n.$slotRefNode$))})):x.some(u=>u.$nodeToRelocate$===e)||x.push({$nodeToRelocate$:e}));t.nodeType===1&&Yi(t)}},Qe=(i,t)=>i.nodeType===1?i.getAttribute("slot")===null&&t===""||i.getAttribute("slot")===t:i["s-sn"]===t?!0:t==="",Zi=i=>{i.$attrs$&&i.$attrs$.ref&&i.$attrs$.ref(null),i.$children$&&i.$children$.map(Zi)},Zr=(i,t)=>{const e=i.$hostElement$,s=i.$cmpMeta$,r=i.$vnode$||St(null,null),n=Fr(t)?t:W(null,null,t);Pt=e.tagName,s.$attrsToReflect$&&(n.$attrs$=n.$attrs$||{},s.$attrsToReflect$.map(([o,a])=>n.$attrs$[a]=e[o])),n.$tag$=null,n.$flags$|=4,i.$vnode$=n,n.$elm$=r.$elm$=e.shadowRoot||e,z=e["s-sc"],ji=e["s-cr"],Ni=(s.$flags$&1)!==0,wt=!1,F(r,n);{if(m.$flags$|=1,ue){Yi(n.$elm$);let o,a,l,c,u,h,d=0;for(;d<x.length;d++)o=x[d],a=o.$nodeToRelocate$,a["s-ol"]||(l=S.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(d=0;d<x.length;d++)if(o=x[d],a=o.$nodeToRelocate$,o.$slotRefNode$){for(c=o.$slotRefNode$.parentNode,u=o.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(h=l["s-nr"],h&&h["s-sn"]===a["s-sn"]&&c===h.parentNode&&(h=h.nextSibling,!h||!h["s-nr"])){u=h;break}(!u&&c!==a.parentNode||a.nextSibling!==u)&&a!==u&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,u))}else a.nodeType===1&&(a.hidden=!0)}wt&&Gi(n.$elm$),m.$flags$&=-2,x.length=0}},Kr=i=>i,Xr=(i,t,e)=>{const s=Kr(i);return{emit:r=>Qr(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:r})}},Qr=(i,t,e)=>{const s=m.ce(t,e);return i.dispatchEvent(s),s},Jr=(i,t)=>{},Ki=(i,t)=>(i.$flags$|=16,Jr(i,i.$ancestorComponent$),$n(()=>Vr(i,t))),Vr=(i,t)=>{const e=i.$hostElement$,s=N("scheduleUpdate",i.$cmpMeta$.$tagName$),r=e;let n;return t?n=G(r,"componentWillLoad"):n=G(r,"componentWillUpdate"),n=Je(n,()=>G(r,"componentWillRender")),s(),Je(n,()=>tn(i,r,t))},tn=async(i,t,e)=>{const s=i.$hostElement$,r=N("update",i.$cmpMeta$.$tagName$);s["s-rc"],e&&Nr(i);const n=N("render",i.$cmpMeta$.$tagName$);en(i,t,s),n(),r(),sn(i)},en=(i,t,e)=>{try{qe=t,t=t.render&&t.render(),i.$flags$&=-17,i.$flags$|=2,(D.hasRenderFn||D.reflect)&&(D.vdomRender||D.reflect)&&(D.hydrateServerSide||Zr(i,t))}catch(a){ht(a,i.$hostElement$)}return qe=null,null},sn=i=>{const t=i.$cmpMeta$.$tagName$,e=i.$hostElement$,s=N("postUpdate",t),r=e;i.$ancestorComponent$,G(r,"componentDidRender"),i.$flags$&64?(G(r,"componentDidUpdate"),s()):(i.$flags$|=64,G(r,"componentDidLoad"),s())},G=(i,t,e)=>{if(i&&i[t])try{return i[t](e)}catch(s){ht(s)}},Je=(i,t)=>i&&i.then?i.then(t):t(),rn=(i,t)=>i!=null&&!he(i)?t&4?i==="false"?!1:i===""||!!i:t&2?parseFloat(i):t&1?String(i):i:i,nn=(i,t)=>Lt(i).$instanceValues$.get(t),on=(i,t,e,s)=>{const r=Lt(i),n=i,o=r.$instanceValues$.get(t),a=r.$flags$,l=n;e=rn(e,s.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(e);if(e!==o&&!c){r.$instanceValues$.set(t,e);{if(s.$watchers$&&a&128){const h=s.$watchers$[t];h&&h.map(d=>{try{l[d](e,o,t)}catch(f){ht(f,n)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(e,o,t)===!1)return;Ki(r,!1)}}}},an=(i,t,e)=>{if(t.$members$){i.watchers&&(t.$watchers$=i.watchers);const s=Object.entries(t.$members$),r=i.prototype;s.map(([n,[o]])=>{(o&31||o&32)&&Object.defineProperty(r,n,{get(){return nn(this,n)},set(a){on(this,n,a,t)},configurable:!0,enumerable:!0})});{const n=new Map;r.attributeChangedCallback=function(o,a,l){m.jmp(()=>{const c=n.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(r.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},i.observedAttributes=s.filter(([o,a])=>a[0]&15).map(([o,a])=>{const l=a[1]||o;return n.set(l,o),a[0]&512&&t.$attrsToReflect$.push([o,l]),l})}}return i},ln=async(i,t,e,s,r)=>{if((t.$flags$&32)===0&&(r=i.constructor,t.$flags$|=32,customElements.whenDefined(e.$tagName$).then(()=>t.$flags$|=128),r.style)){let o=r.style;typeof o!="string"&&(o=o[t.$modeName$=Hr(i)]);const a=Di(e,t.$modeName$);if(!kt.has(a)){const l=N("registerStyles",e.$tagName$);Mr(a,o,!!(e.$flags$&1)),l()}}t.$ancestorComponent$,Ki(t,!0)},cn=i=>{},un=i=>{if((m.$flags$&1)===0){const t=Lt(i),e=t.$cmpMeta$,s=N("connectedCallback",e.$tagName$);t.$flags$&1?(Bi(i,t,e.$listeners$),cn(t.$lazyInstance$)):(t.$flags$|=1,e.$flags$&12&&hn(i),e.$members$&&Object.entries(e.$members$).map(([r,[n]])=>{if(n&31&&i.hasOwnProperty(r)){const o=i[r];delete i[r],i[r]=o}}),ln(i,t,e)),s()}},hn=i=>{const t=i["s-cr"]=S.createComment("");t["s-cn"]=!0,i.insertBefore(t,i.firstChild)},dn=i=>{if((m.$flags$&1)===0){const t=Lt(i);t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0)}},Xi=(i,t)=>{const e={$flags$:t[0],$tagName$:t[1]};e.$members$=t[2],e.$listeners$=t[3],e.$watchers$=i.$watchers$,e.$attrsToReflect$=[];const s=i.prototype.connectedCallback,r=i.prototype.disconnectedCallback;return Object.assign(i.prototype,{__registerHost(){fn(this,e)},connectedCallback(){un(this),s&&s.call(this)},disconnectedCallback(){dn(this),r&&r.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(e.$flags$&16)})}}),i.is=e.$tagName$,an(i,e)},Qi=new WeakMap,Lt=i=>Qi.get(i),fn=(i,t)=>{const e={$flags$:0,$hostElement$:i,$cmpMeta$:t,$instanceValues$:new Map};return Bi(i,e,t.$listeners$),Qi.set(i,e)},Ve=(i,t)=>t in i,ht=(i,t)=>(0,console.error)(i,t),kt=new Map,pn=[],ti=[],Ji=[],gn=(i,t)=>e=>{i.push(e),Kt||(Kt=!0,t&&m.$flags$&4?vn(Xt):m.raf(Xt))},ei=i=>{for(let t=0;t<i.length;t++)try{i[t](performance.now())}catch(e){ht(e)}i.length=0},Xt=()=>{ei(ti),ei(Ji),(Kt=ti.length>0)&&m.raf(Xt)},vn=i=>Pr().then(i),$n=gn(Ji,!0),mn=(i={})=>{const{content:t="",title:e,attributes:s=[]}=i;let r="",n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...s];return e&&(r=`<title>${e}</title>`),`<svg ${n.map(a=>`${a.name}="${a.value}"`).join(" ")}>${r}${t}</svg>`},yn=i=>i.replace(/<(\/?)svg([^>]*)>/g,"").trim();function bn(i){return`${i.getFullYear()}.${i.getMonth()+1}`}class _n{constructor(t){this.voca_component=t,this.voca_added=bn(new Date)}}const xn="telia-vst{display:none}",wn=Xi(class extends Hi{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=Xr(this,"vocaInternalUStats")}connectedCallback(){this.vocaInternalUStats.emit(new _n(this.dataTrackingId))}render(){return W(de,null)}static get style(){return xn}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function Vi(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,wn);break}})}Vi();function Qt(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function Sn(){if(typeof Qt().vocadsIcons!==void 0)return Qt().vocadsIcons}function An(){return Qt().vocadsIconsRegistered}const kn=".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}",En=Xi(class extends Hi{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(An()&&this.name){const i=Sn();return i[this.name]?i[this.name].svg:""}return this.name&&console.warn(this.name,"Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"),""}render(){let i=this.getSvgString(),t=[{name:"viewBox",value:"0 0 64 64"}];this.allyTitle?t=[...t,{name:"role",value:"img"}]:t=[...t,{name:"aria-hidden",value:"true"}];const e=mn({content:yn(i),attributes:t,title:this.allyTitle});return W(de,{class:`telia-icon telia-icon--${this.size}`},W("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:e}),W("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return kn}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function Cn(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,En);break;case"telia-vst":customElements.get(t)||Vi();break}})}Cn();var On=Object.defineProperty,Tn=(i,t,e,s)=>{for(var r=void 0,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=o(t,e,r)||r);return r&&On(t,e,r),r};const ii=Mi(w),ye=class ye extends ii{constructor(){super(...arguments),this.optionsIsVisible=!1,this.options=new Or(this),this.optionsRef=xt(),this.optionsTriggerRef=xt(),this._onClickOutside=t=>{!this.optionsTriggerRef.value||!this.optionsRef.value||t.composedPath().includes(this.optionsTriggerRef.value)||t.composedPath().includes(this.optionsRef.value)||(this.optionsIsVisible=!1)}}addOption(t){return this.options.addOption(t)}removeOption(t){const e=this.options.removeOption(t);return this.requestUpdate(),e}_onToggleOptionsMenuClick(){this.optionsIsVisible=!this.optionsIsVisible}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._onClickOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onClickOutside)}render(){return this.options.options.length?k` <div class="side-menu">
|
|
475
514
|
<div
|
|
476
515
|
class="options-menu"
|
|
477
516
|
${oe(this.optionsRef)}
|
|
@@ -490,7 +529,7 @@
|
|
|
490
529
|
></telia-icon>`:p}
|
|
491
530
|
</button>`)}
|
|
492
531
|
</div>
|
|
493
|
-
</div>`:p}};ye.styles=[ii.styles||[],
|
|
532
|
+
</div>`:p}};ye.styles=[ii.styles||[],T`
|
|
494
533
|
:host {
|
|
495
534
|
--header-text-color: var(--text-on-primary-background);
|
|
496
535
|
overflow: revert;
|