@telia-ace/widget-components-widget-header-flamingo 1.1.139-rc.9 → 1.1.139
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +8 -8
- package/index.mjs +74 -74
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
13
|
*/const st=globalThis,Ae=i=>i,wt=st.trustedTypes,ke=wt?wt.createPolicy("lit-html",{createHTML:i=>i}):void 0,ri="$lit$",T=`lit$${Math.random().toFixed(9).slice(2)}$`,oi="?"+T,us=`<${oi}>`,j=document,rt=()=>j.createComment(""),ot=i=>i===null||typeof i!="object"&&typeof i!="function",ne=Array.isArray,hs=i=>ne(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Ft=`[
|
|
14
|
-
\f\r]`,
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Oe=/'/g,Te=/"/g,ai=/^(?:script|style|textarea|title)$/i,ds=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),m=ds(1),N=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),Pe=new WeakMap,R=j.createTreeWalker(j,129);function li(i,t){if(!ne(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return ke!==void 0?ke.createHTML(t):t}const fs=(i,t)=>{const e=i.length-1,s=[];let n,r=t===2?"<svg>":t===3?"<math>":"",o=
|
|
14
|
+
\f\r]`,et=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ce=/-->/g,Ee=/>/g,I=RegExp(`>|${Ft}(?:([^\\s"'>=/]+)(${Ft}*=${Ft}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Oe=/'/g,Te=/"/g,ai=/^(?:script|style|textarea|title)$/i,ds=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),m=ds(1),N=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),Pe=new WeakMap,R=j.createTreeWalker(j,129);function li(i,t){if(!ne(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return ke!==void 0?ke.createHTML(t):t}const fs=(i,t)=>{const e=i.length-1,s=[];let n,r=t===2?"<svg>":t===3?"<math>":"",o=et;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===et?u[1]==="!--"?o=Ce:u[1]!==void 0?o=Ee:u[2]!==void 0?(ai.test(u[2])&&(n=RegExp("</"+u[2],"g")),o=I):u[3]!==void 0&&(o=I):o===I?u[0]===">"?(o=n??et,h=-1):u[1]===void 0?h=-2:(h=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?I:u[3]==='"'?Te:Oe):o===Te||o===Oe?o=I:o===Ce||o===Ee?o=et:(o=I,n=void 0);const f=o===I&&i[a+1].startsWith("/>")?" ":"";r+=o===et?l+us:h>=0?(s.push(c),l.slice(0,h)+ri+l.slice(h)+T+f):l+T+(h===-2?a:f)}return[li(i,r+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};class at{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let r=0,o=0;const a=t.length-1,l=this.parts,[c,u]=fs(t,e);if(this.el=at.createElement(c,s),R.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=R.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(const h of n.getAttributeNames())if(h.endsWith(ri)){const d=u[o++],f=n.getAttribute(h).split(T),v=/([.?@])?(.*)/.exec(d);l.push({type:1,index:r,name:v[2],strings:f,ctor:v[1]==="."?gs:v[1]==="?"?vs:v[1]==="@"?$s:Pt}),n.removeAttribute(h)}else h.startsWith(T)&&(l.push({type:6,index:r}),n.removeAttribute(h));if(ai.test(n.tagName)){const h=n.textContent.split(T),d=h.length-1;if(d>0){n.textContent=wt?wt.emptyScript:"";for(let f=0;f<d;f++)n.append(h[f],rt()),R.nextNode(),l.push({type:2,index:++r});n.append(h[d],rt())}}}else if(n.nodeType===8)if(n.data===oi)l.push({type:2,index:r});else{let h=-1;for(;(h=n.data.indexOf(T,h+1))!==-1;)l.push({type:7,index:r}),h+=T.length-1}r++}}static createElement(t,e){const s=j.createElement("template");return s.innerHTML=t,s}}function K(i,t,e=i,s){var o,a;if(t===N)return t;let n=s!==void 0?(o=e._$Co)==null?void 0:o[s]:e._$Cl;const r=ot(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==r&&((a=n==null?void 0:n._$AO)==null||a.call(n,!1),r===void 0?n=void 0:(n=new r(i),n._$AT(i,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=n:e._$Cl=n),n!==void 0&&(t=K(i,n._$AS(i,t.values),n,s)),t}class ps{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,n=((t==null?void 0:t.creationScope)??j).importNode(e,!0);R.currentNode=n;let r=R.nextNode(),o=0,a=0,l=s[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new ut(r,r.nextSibling,this,t):l.type===1?c=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(c=new ms(r,this,t)),this._$AV.push(c),l=s[++a]}o!==(l==null?void 0:l.index)&&(r=R.nextNode(),o++)}return R.currentNode=j,n}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 ut{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,n){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cv=(n==null?void 0:n.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=K(this,t,e),ot(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==N&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):hs(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&&ot(this._$AH)?this._$AA.nextSibling.data=t:this.T(j.createTextNode(t)),this._$AH=t}$(t){var r;const{values:e,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=at.createElement(li(s.h,s.h[0]),this.options)),s);if(((r=this._$AH)==null?void 0:r._$AD)===n)this._$AH.p(e);else{const o=new ps(n,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=Pe.get(t.strings);return e===void 0&&Pe.set(t.strings,e=new at(t)),e}k(t){ne(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,n=0;for(const r of t)n===e.length?e.push(s=new ut(this.O(rt()),this.O(rt()),this,this.options)):s=e[n],s._$AI(r),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$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 n=Ae(t).nextSibling;Ae(t).remove(),t=n}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}let Pt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,n,r){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,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,n){const r=this.strings;let o=!1;if(r===void 0)t=K(this,t,e,0),o=!ot(t)||t!==this._$AH&&t!==N,o&&(this._$AH=t);else{const a=t;let l,c;for(t=r[0],l=0;l<r.length-1;l++)c=K(this,a[s+l],e,l),c===N&&(c=this._$AH[l]),o||(o=!ot(c)||c!==this._$AH[l]),c===p?t=p:t!==p&&(t+=(c??"")+r[l+1]),this._$AH[l]=c}o&&!n&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}};class gs extends Pt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}class vs extends Pt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}}class $s extends Pt{constructor(t,e,s,n,r){super(t,e,s,n,r),this.type=5}_$AI(t,e=this){if((t=K(this,t,e,0)??p)===N)return;const s=this._$AH,n=t===p&&s!==p||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==p&&(s===p||n);n&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class ms{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){K(this,t)}}const Ht=st.litHtmlPolyfillSupport;Ht==null||Ht(at,ut),(st.litHtmlVersions??(st.litHtmlVersions=[])).push("3.3.2");const ys=(i,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let n=s._$litPart$;if(n===void 0){const r=(e==null?void 0:e.renderBefore)??null;s._$litPart$=n=new ut(t.insertBefore(rt(),r),r,void 0,e??{})}return n._$AI(i),n};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
* @license
|
|
41
41
|
* Copyright 2020 Google LLC
|
|
42
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
|
-
*/const xt=()=>new ks;let ks=class{};const Dt=new WeakMap,St=oe(class extends hi{render(i){return p}update(i,[t]){var s;const e=t!==this.G;return e&&this.G!==void 0&&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.isConnected||(i=void 0),typeof this.G=="function"){const t=this.ht??globalThis;let e=Dt.get(t);e===void 0&&(e=new WeakMap,Dt.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=Dt.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 Gt=function(i,t){return Gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,s){e.__proto__=s}||function(e,s){for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])},Gt(i,t)};function
|
|
43
|
+
*/const xt=()=>new ks;let ks=class{};const Dt=new WeakMap,St=oe(class extends hi{render(i){return p}update(i,[t]){var s;const e=t!==this.G;return e&&this.G!==void 0&&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.isConnected||(i=void 0),typeof this.G=="function"){const t=this.ht??globalThis;let e=Dt.get(t);e===void 0&&(e=new WeakMap,Dt.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=Dt.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 Gt=function(i,t){return Gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,s){e.__proto__=s}||function(e,s){for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])},Gt(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");Gt(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function Cs(i,t,e,s){function n(r){return r instanceof e?r:new e(function(o){o(r)})}return new(e||(e=Promise))(function(r,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?r(u.value):n(u.value).then(a,l)}c((s=s.apply(i,t||[])).next())})}function di(i,t){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},s,n,r,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,n&&(r=c[0]&2?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++,n=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){e.label=c[1];break}if(c[0]===6&&e.label<r[1]){e.label=r[1],r=c;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(c);break}r[2]&&e.ops.pop(),e.trys.pop();continue}c=t.call(i,e)}catch(u){c=[6,u],n=0}finally{s=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function V(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 Yt(i,t){var e=typeof Symbol=="function"&&i[Symbol.iterator];if(!e)return i;var s=e.call(i),n,r=[],o;try{for(;(t===void 0||t-- >0)&&!(n=s.next()).done;)r.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(e=s.return)&&e.call(s)}finally{if(o)throw o.error}}return r}function Zt(i,t,e){if(e||arguments.length===2)for(var s=0,n=t.length,r;s<n;s++)(r||!(s in t))&&(r||(r=Array.prototype.slice.call(t,0,s)),r[s]=t[s]);return i.concat(r||Array.prototype.slice.call(t))}function G(i){return this instanceof G?(this.v=i,this):new G(i)}function Es(i,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=e.apply(i,t||[]),n,r=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),n[Symbol.asyncIterator]=function(){return this},n;function o(f){return function(v){return Promise.resolve(v).then(f,h)}}function a(f,v){s[f]&&(n[f]=function(g){return new Promise(function(gt,tt){r.push([f,g,gt,tt])>1||l(f,g)})},v&&(n[f]=v(n[f])))}function l(f,v){try{c(s[f](v))}catch(g){d(r[0][3],g)}}function c(f){f.value instanceof G?Promise.resolve(f.value.v).then(u,h):d(r[0][2],f)}function u(f){l("next",f)}function h(f){l("throw",f)}function d(f,v){f(v),r.shift(),r.length&&l(r[0][0],r[0][1])}}function Os(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 V=="function"?V(i):i[Symbol.iterator](),e={},s("next"),s("throw"),s("return"),e[Symbol.asyncIterator]=function(){return this},e);function s(r){e[r]=i[r]&&function(o){return new Promise(function(a,l){o=i[r](o),n(a,l,o.done,o.value)})}}function n(r,o,a,l){Promise.resolve(l).then(function(c){r({value:c,done:a})},o)}}function $(i){return typeof i=="function"}function fi(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 zt=fi(function(i){return function(e){i(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
44
44
|
`+e.map(function(s,n){return n+1+") "+s.toString()}).join(`
|
|
45
|
-
`):"",this.name="UnsubscriptionError",this.errors=e}});function Kt(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var It=(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,n,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=K(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){r=g instanceof zt?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=K(h),f=d.next();!f.done;f=d.next()){var v=f.value;try{Ie(v)}catch(g){r=r??[],g instanceof zt?r=Zt(Zt([],Yt(r)),Yt(g.errors)):r.push(g)}}}catch(g){s={error:g}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(s)throw s.error}}}if(r)throw new zt(r)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Ie(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)&&Kt(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&Kt(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=(function(){var t=new i;return t.closed=!0,t})(),i})(),pi=It.EMPTY;function gi(i){return i instanceof It||i&&"closed"in i&&$(i.remove)&&$(i.add)&&$(i.unsubscribe)}function Ie(i){$(i)?i():i.unsubscribe()}var Ts={Promise:void 0},Ps={setTimeout:function(i,t){for(var e=[],s=2;s<arguments.length;s++)e[s-2]=arguments[s];return setTimeout.apply(void 0,Zt([i,t],Yt(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function vi(i){Ps.setTimeout(function(){throw i})}function Le(){}function yt(i){i()}var ae=(function(i){X(t,i);function t(e){var s=i.call(this)||this;return s.isStopped=!1,e?(s.destination=e,gi(e)&&e.add(s)):s.destination=Rs,s}return t.create=function(e,s,n){return new Vt(e,s,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(It),Is=(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){vt(s)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(s){vt(s)}else vt(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){vt(e)}},i})(),Vt=(function(i){X(t,i);function t(e,s,n){var r=i.call(this)||this,o;return $(e)||!e?o={next:e??void 0,error:s??void 0,complete:n??void 0}:o=e,r.destination=new Is(o),r}return t})(ae);function vt(i){vi(i)}function Ls(i){throw i}var Rs={closed:!0,next:Le,error:Ls,complete:Le},le=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function $i(i){return i}function Us(i){return i.length===0?$i:i.length===1?i[0]:function(e){return i.reduce(function(s,n){return n(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 n=this,r=js(t)?t:new Vt(t,e,s);return yt(function(){var o=n,a=o.operator,l=o.source;r.add(a?a.call(r,l):l?n._subscribe(r):n._trySubscribe(r))}),r},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=Re(e),new e(function(n,r){var o=new Vt({next:function(a){try{t(a)}catch(l){r(l),o.unsubscribe()}},error:r,complete:n});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[le]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Us(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=Re(t),new t(function(s,n){var r;e.subscribe(function(o){return r=o},function(o){return n(o)},function(){return s(r)})})},i.create=function(t){return new i(t)},i})();function Re(i){var t;return(t=i??Ts.Promise)!==null&&t!==void 0?t:Promise}function Ms(i){return i&&$(i.next)&&$(i.error)&&$(i.complete)}function js(i){return i&&i instanceof ae||Ms(i)&&gi(i)}function Ns(i){return $(i==null?void 0:i.lift)}function Lt(i){return function(t){if(Ns(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 At(i,t,e,s,n){return new Fs(i,t,e,s,n)}var Fs=(function(i){X(t,i);function t(e,s,n,r,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=r?function(c){try{r(c)}catch(u){e.error(u)}finally{this.unsubscribe()}}:i.prototype._error,l._complete=n?function(){try{n()}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})(ae),Hs=fi(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ht=(function(i){X(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 Ue(this,this);return s.operator=e,s},t.prototype._throwIfClosed=function(){if(this.closed)throw new Hs},t.prototype.next=function(e){var s=this;yt(function(){var n,r;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var o=K(s.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(e)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var s=this;yt(function(){if(s._throwIfClosed(),!s.isStopped){s.hasError=s.isStopped=!0,s.thrownError=e;for(var n=s.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;yt(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,n=this,r=n.hasError,o=n.isStopped,a=n.observers;return r||o?pi:(this.currentObservers=null,a.push(e),new It(function(){s.currentObservers=null,Kt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var s=this,n=s.hasError,r=s.thrownError,o=s.isStopped;n?e.error(r):o&&e.complete()},t.prototype.asObservable=function(){var e=new _;return e.source=this,e},t.create=function(e,s){return new Ue(e,s)},t})(_),Ue=(function(i){X(t,i);function t(e,s){var n=i.call(this)||this;return n.destination=e,n.source=s,n}return t.prototype.next=function(e){var s,n;(n=(s=this.destination)===null||s===void 0?void 0:s.next)===null||n===void 0||n.call(s,e)},t.prototype.error=function(e){var s,n;(n=(s=this.destination)===null||s===void 0?void 0:s.error)===null||n===void 0||n.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,n;return(n=(s=this.source)===null||s===void 0?void 0:s.subscribe(e))!==null&&n!==void 0?n:pi},t})(ht),mi=(function(i){X(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,n=e.thrownError,r=e._value;if(s)throw n;return this._throwIfClosed(),r},t.prototype.next=function(e){i.prototype.next.call(this,this._value=e)},t})(ht),Bs=new _(function(i){return i.complete()});function Ds(i){return i&&$(i.schedule)}function yi(i){return i[i.length-1]}function zs(i){return Ds(yi(i))?i.pop():void 0}function Ws(i,t){return typeof yi(i)=="number"?i.pop():t}var bi=(function(i){return i&&typeof i.length=="number"&&typeof i!="function"});function wi(i){return $(i==null?void 0:i.then)}function _i(i){return $(i[le])}function xi(i){return Symbol.asyncIterator&&$(i==null?void 0:i[Symbol.asyncIterator])}function Si(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 qs(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ai=qs();function ki(i){return $(i==null?void 0:i[Ai])}function Ci(i){return Es(this,arguments,function(){var e,s,n,r;return di(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(),n=s.value,r=s.done,r?[4,q(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,q(n)];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 Ei(i){return $(i==null?void 0:i.getReader)}function Q(i){if(i instanceof _)return i;if(i!=null){if(_i(i))return Gs(i);if(bi(i))return Ys(i);if(wi(i))return Zs(i);if(xi(i))return Oi(i);if(ki(i))return Ks(i);if(Ei(i))return Vs(i)}throw Si(i)}function Gs(i){return new _(function(t){var e=i[le]();if($(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ys(i){return new _(function(t){for(var e=0;e<i.length&&!t.closed;e++)t.next(i[e]);t.complete()})}function Zs(i){return new _(function(t){i.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,vi)})}function Ks(i){return new _(function(t){var e,s;try{for(var n=K(i),r=n.next();!r.done;r=n.next()){var o=r.value;if(t.next(o),t.closed)return}}catch(a){e={error:a}}finally{try{r&&!r.done&&(s=n.return)&&s.call(n)}finally{if(e)throw e.error}}t.complete()})}function Oi(i){return new _(function(t){Xs(i,t).catch(function(e){return t.error(e)})})}function Vs(i){return Oi(Ci(i))}function Xs(i,t){var e,s,n,r;return Cs(this,void 0,void 0,function(){var o,a;return di(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),e=Os(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(),n={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),s&&!s.done&&(r=e.return)?[4,r.call(e)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function M(i,t,e,s,n){s===void 0&&(s=0),n===void 0&&(n=!1);var r=t.schedule(function(){e(),n?i.add(this.schedule(null,s)):this.unsubscribe()},s);if(i.add(r),!n)return r}function Ti(i,t){return t===void 0&&(t=0),Lt(function(e,s){e.subscribe(At(s,function(n){return M(s,i,function(){return s.next(n)},t)},function(){return M(s,i,function(){return s.complete()},t)},function(n){return M(s,i,function(){return s.error(n)},t)}))})}function Pi(i,t){return t===void 0&&(t=0),Lt(function(e,s){s.add(i.schedule(function(){return e.subscribe(s)},t))})}function Qs(i,t){return Q(i).pipe(Pi(t),Ti(t))}function Js(i,t){return Q(i).pipe(Pi(t),Ti(t))}function tn(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 en(i,t){return new _(function(e){var s;return M(e,t,function(){s=i[Ai](),M(e,t,function(){var n,r,o;try{n=s.next(),r=n.value,o=n.done}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),function(){return $(s==null?void 0:s.return)&&s.return()}})}function Ii(i,t){if(!i)throw new Error("Iterable cannot be null");return new _(function(e){M(e,t,function(){var s=i[Symbol.asyncIterator]();M(e,t,function(){s.next().then(function(n){n.done?e.complete():e.next(n.value)})},0,!0)})})}function sn(i,t){return Ii(Ci(i),t)}function nn(i,t){if(i!=null){if(_i(i))return Qs(i,t);if(bi(i))return tn(i,t);if(wi(i))return Js(i,t);if(xi(i))return Ii(i,t);if(ki(i))return en(i,t);if(Ei(i))return sn(i,t)}throw Si(i)}function rn(i,t){return t?nn(i,t):Q(i)}function on(i,t){return Lt(function(e,s){var n=0;e.subscribe(At(s,function(r){s.next(i.call(t,r,n++))}))})}function an(i,t,e,s,n,r,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 gt=!1;Q(e(g,u++)).subscribe(At(t,function(J){t.next(J)},function(){gt=!0},void 0,function(){if(gt)try{c--;for(var J=function(){var jt=l.shift();o||v(jt)};l.length&&c<s;)J();d()}catch(jt){t.error(jt)}}))};return i.subscribe(At(t,f,function(){h=!0,d()})),function(){}}function Li(i,t,e){return e===void 0&&(e=1/0),$(t)?Li(function(s,n){return on(function(r,o){return t(s,r,n,o)})(Q(i(s,n)))},e):(typeof t=="number"&&(e=t),Lt(function(s,n){return an(s,n,i,e)}))}function ln(i){return i===void 0&&(i=1/0),Li($i,i)}function cn(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];var e=zs(i),s=Ws(i,1/0),n=i;return n.length?n.length===1?Q(n[0]):ln(s)(rn(n,e)):Bs}var un=Object.defineProperty,hn=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&un(t,e,n),n};const ge=class ge extends A{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}};ge.styles=[H`
|
|
45
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function Kt(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var It=(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,n,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=V(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){r=g instanceof zt?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=V(h),f=d.next();!f.done;f=d.next()){var v=f.value;try{Ie(v)}catch(g){r=r??[],g instanceof zt?r=Zt(Zt([],Yt(r)),Yt(g.errors)):r.push(g)}}}catch(g){s={error:g}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(s)throw s.error}}}if(r)throw new zt(r)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Ie(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)&&Kt(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&Kt(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=(function(){var t=new i;return t.closed=!0,t})(),i})(),pi=It.EMPTY;function gi(i){return i instanceof It||i&&"closed"in i&&$(i.remove)&&$(i.add)&&$(i.unsubscribe)}function Ie(i){$(i)?i():i.unsubscribe()}var Ts={Promise:void 0},Ps={setTimeout:function(i,t){for(var e=[],s=2;s<arguments.length;s++)e[s-2]=arguments[s];return setTimeout.apply(void 0,Zt([i,t],Yt(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function vi(i){Ps.setTimeout(function(){throw i})}function Le(){}function yt(i){i()}var ae=(function(i){Q(t,i);function t(e){var s=i.call(this)||this;return s.isStopped=!1,e?(s.destination=e,gi(e)&&e.add(s)):s.destination=Rs,s}return t.create=function(e,s,n){return new Vt(e,s,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(It),Is=(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){vt(s)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(s){vt(s)}else vt(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){vt(e)}},i})(),Vt=(function(i){Q(t,i);function t(e,s,n){var r=i.call(this)||this,o;return $(e)||!e?o={next:e??void 0,error:s??void 0,complete:n??void 0}:o=e,r.destination=new Is(o),r}return t})(ae);function vt(i){vi(i)}function Ls(i){throw i}var Rs={closed:!0,next:Le,error:Ls,complete:Le},le=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function $i(i){return i}function Us(i){return i.length===0?$i:i.length===1?i[0]:function(e){return i.reduce(function(s,n){return n(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 n=this,r=js(t)?t:new Vt(t,e,s);return yt(function(){var o=n,a=o.operator,l=o.source;r.add(a?a.call(r,l):l?n._subscribe(r):n._trySubscribe(r))}),r},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=Re(e),new e(function(n,r){var o=new Vt({next:function(a){try{t(a)}catch(l){r(l),o.unsubscribe()}},error:r,complete:n});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[le]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Us(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=Re(t),new t(function(s,n){var r;e.subscribe(function(o){return r=o},function(o){return n(o)},function(){return s(r)})})},i.create=function(t){return new i(t)},i})();function Re(i){var t;return(t=i??Ts.Promise)!==null&&t!==void 0?t:Promise}function Ms(i){return i&&$(i.next)&&$(i.error)&&$(i.complete)}function js(i){return i&&i instanceof ae||Ms(i)&&gi(i)}function Ns(i){return $(i==null?void 0:i.lift)}function Lt(i){return function(t){if(Ns(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 At(i,t,e,s,n){return new Fs(i,t,e,s,n)}var Fs=(function(i){Q(t,i);function t(e,s,n,r,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=r?function(c){try{r(c)}catch(u){e.error(u)}finally{this.unsubscribe()}}:i.prototype._error,l._complete=n?function(){try{n()}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})(ae),Hs=fi(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ht=(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 Ue(this,this);return s.operator=e,s},t.prototype._throwIfClosed=function(){if(this.closed)throw new Hs},t.prototype.next=function(e){var s=this;yt(function(){var n,r;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var o=V(s.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(e)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var s=this;yt(function(){if(s._throwIfClosed(),!s.isStopped){s.hasError=s.isStopped=!0,s.thrownError=e;for(var n=s.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;yt(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,n=this,r=n.hasError,o=n.isStopped,a=n.observers;return r||o?pi:(this.currentObservers=null,a.push(e),new It(function(){s.currentObservers=null,Kt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var s=this,n=s.hasError,r=s.thrownError,o=s.isStopped;n?e.error(r):o&&e.complete()},t.prototype.asObservable=function(){var e=new _;return e.source=this,e},t.create=function(e,s){return new Ue(e,s)},t})(_),Ue=(function(i){Q(t,i);function t(e,s){var n=i.call(this)||this;return n.destination=e,n.source=s,n}return t.prototype.next=function(e){var s,n;(n=(s=this.destination)===null||s===void 0?void 0:s.next)===null||n===void 0||n.call(s,e)},t.prototype.error=function(e){var s,n;(n=(s=this.destination)===null||s===void 0?void 0:s.error)===null||n===void 0||n.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,n;return(n=(s=this.source)===null||s===void 0?void 0:s.subscribe(e))!==null&&n!==void 0?n:pi},t})(ht),mi=(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,n=e.thrownError,r=e._value;if(s)throw n;return this._throwIfClosed(),r},t.prototype.next=function(e){i.prototype.next.call(this,this._value=e)},t})(ht),Bs=new _(function(i){return i.complete()});function Ds(i){return i&&$(i.schedule)}function yi(i){return i[i.length-1]}function zs(i){return Ds(yi(i))?i.pop():void 0}function Ws(i,t){return typeof yi(i)=="number"?i.pop():t}var bi=(function(i){return i&&typeof i.length=="number"&&typeof i!="function"});function wi(i){return $(i==null?void 0:i.then)}function _i(i){return $(i[le])}function xi(i){return Symbol.asyncIterator&&$(i==null?void 0:i[Symbol.asyncIterator])}function Si(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 qs(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ai=qs();function ki(i){return $(i==null?void 0:i[Ai])}function Ci(i){return Es(this,arguments,function(){var e,s,n,r;return di(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,G(e.read())];case 3:return s=o.sent(),n=s.value,r=s.done,r?[4,G(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,G(n)];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 Ei(i){return $(i==null?void 0:i.getReader)}function J(i){if(i instanceof _)return i;if(i!=null){if(_i(i))return Gs(i);if(bi(i))return Ys(i);if(wi(i))return Zs(i);if(xi(i))return Oi(i);if(ki(i))return Ks(i);if(Ei(i))return Vs(i)}throw Si(i)}function Gs(i){return new _(function(t){var e=i[le]();if($(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ys(i){return new _(function(t){for(var e=0;e<i.length&&!t.closed;e++)t.next(i[e]);t.complete()})}function Zs(i){return new _(function(t){i.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,vi)})}function Ks(i){return new _(function(t){var e,s;try{for(var n=V(i),r=n.next();!r.done;r=n.next()){var o=r.value;if(t.next(o),t.closed)return}}catch(a){e={error:a}}finally{try{r&&!r.done&&(s=n.return)&&s.call(n)}finally{if(e)throw e.error}}t.complete()})}function Oi(i){return new _(function(t){Xs(i,t).catch(function(e){return t.error(e)})})}function Vs(i){return Oi(Ci(i))}function Xs(i,t){var e,s,n,r;return Cs(this,void 0,void 0,function(){var o,a;return di(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),e=Os(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(),n={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),s&&!s.done&&(r=e.return)?[4,r.call(e)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function M(i,t,e,s,n){s===void 0&&(s=0),n===void 0&&(n=!1);var r=t.schedule(function(){e(),n?i.add(this.schedule(null,s)):this.unsubscribe()},s);if(i.add(r),!n)return r}function Ti(i,t){return t===void 0&&(t=0),Lt(function(e,s){e.subscribe(At(s,function(n){return M(s,i,function(){return s.next(n)},t)},function(){return M(s,i,function(){return s.complete()},t)},function(n){return M(s,i,function(){return s.error(n)},t)}))})}function Pi(i,t){return t===void 0&&(t=0),Lt(function(e,s){s.add(i.schedule(function(){return e.subscribe(s)},t))})}function Qs(i,t){return J(i).pipe(Pi(t),Ti(t))}function Js(i,t){return J(i).pipe(Pi(t),Ti(t))}function tn(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 en(i,t){return new _(function(e){var s;return M(e,t,function(){s=i[Ai](),M(e,t,function(){var n,r,o;try{n=s.next(),r=n.value,o=n.done}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),function(){return $(s==null?void 0:s.return)&&s.return()}})}function Ii(i,t){if(!i)throw new Error("Iterable cannot be null");return new _(function(e){M(e,t,function(){var s=i[Symbol.asyncIterator]();M(e,t,function(){s.next().then(function(n){n.done?e.complete():e.next(n.value)})},0,!0)})})}function sn(i,t){return Ii(Ci(i),t)}function nn(i,t){if(i!=null){if(_i(i))return Qs(i,t);if(bi(i))return tn(i,t);if(wi(i))return Js(i,t);if(xi(i))return Ii(i,t);if(ki(i))return en(i,t);if(Ei(i))return sn(i,t)}throw Si(i)}function rn(i,t){return t?nn(i,t):J(i)}function on(i,t){return Lt(function(e,s){var n=0;e.subscribe(At(s,function(r){s.next(i.call(t,r,n++))}))})}function an(i,t,e,s,n,r,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 gt=!1;J(e(g,u++)).subscribe(At(t,function(tt){t.next(tt)},function(){gt=!0},void 0,function(){if(gt)try{c--;for(var tt=function(){var jt=l.shift();o||v(jt)};l.length&&c<s;)tt();d()}catch(jt){t.error(jt)}}))};return i.subscribe(At(t,f,function(){h=!0,d()})),function(){}}function Li(i,t,e){return e===void 0&&(e=1/0),$(t)?Li(function(s,n){return on(function(r,o){return t(s,r,n,o)})(J(i(s,n)))},e):(typeof t=="number"&&(e=t),Lt(function(s,n){return an(s,n,i,e)}))}function ln(i){return i===void 0&&(i=1/0),Li($i,i)}function cn(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];var e=zs(i),s=Ws(i,1/0),n=i;return n.length?n.length===1?J(n[0]):ln(s)(rn(n,e)):Bs}var un=Object.defineProperty,hn=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&un(t,e,n),n};const ge=class ge extends A{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}};ge.styles=[H`
|
|
46
46
|
:host {
|
|
47
47
|
position: fixed;
|
|
48
48
|
display: flex;
|
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
* @license
|
|
267
267
|
* Copyright 2021 Google LLC
|
|
268
268
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
269
|
-
*/function*xn(i,t){if(i!==void 0){let e=0;for(const s of i)yield t(s,e++)}}var ce=(i=>(i.Inline="inline",i.Trigger="trigger",i))(ce||{}),
|
|
269
|
+
*/function*xn(i,t){if(i!==void 0){let e=0;for(const s of i)yield t(s,e++)}}var ce=(i=>(i.Inline="inline",i.Trigger="trigger",i))(ce||{}),D=(i=>(i.NonAuthenticated="non-authenticated",i.Authenticating="authenticating",i.Authenticated="authenticated",i.ChatEnded="chat-ended",i))(D||{});/**
|
|
270
270
|
* @license
|
|
271
271
|
* Copyright 2021 Google LLC
|
|
272
272
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -457,12 +457,12 @@
|
|
|
457
457
|
:host {
|
|
458
458
|
display: block;
|
|
459
459
|
}
|
|
460
|
-
`];let V=ye;ue([w({attribute:!0})],V.prototype,"name");ue([S()],V.prototype,"widget");ue([S()],V.prototype,"status");customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",kt);customElements.get("ace-trigger")||customElements.define("ace-trigger",O);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Xt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",lt);customElements.get("ace-widget")||customElements.define("ace-widget",V);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,Rt,Ni=!1,Ct=!1,he=!1,b=!1,We=null,Qt=!1;const Ut=typeof window<"u"?window:{},k=Ut.document||{head:{}},Fi=Ut.HTMLElement||class{},y={$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)},Pn=(()=>{let i=!1;try{k.addEventListener("e",null,Object.defineProperty({},"passive",{get(){i=!0}}))}catch{}return i})(),In=i=>Promise.resolve(i),Ln=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),Hi=(i,t,e,s)=>{e&&e.map(([n,r,o])=>{const a=Un(i,n),l=Rn(t,o),c=Mn(n);y.ael(a,r,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>y.rel(a,r,l,c))})},Rn=(i,t)=>e=>{try{D.lazyLoad||i.$hostElement$[t](e)}catch(s){ft(s)}},Un=(i,t)=>t&4?k:t&8?Ut:t&16?k.body:i,Mn=i=>Pn?{passive:(i&1)!==0,capture:(i&2)!==0}:(i&2)!==0,qe="http://www.w3.org/1999/xlink",F=(i,t="")=>()=>{},Ge=new WeakMap,jn=(i,t,e)=>{let s=Tt.get(i);Ln&&e?(s=s||new CSSStyleSheet,s.replace(t)):s=t,Tt.set(i,s)},Nn=(i,t,e,s)=>{let n=Bi(t,e),r=Tt.get(n);if(i=i.nodeType===11?i:k,r)if(typeof r=="string"){i=i.head||i;let o=Ge.get(i),a;o||Ge.set(i,o=new Set),o.has(n)||(a=k.createElement("style"),a.innerHTML=r,i.insertBefore(a,i.querySelector("link")),o&&o.add(n))}else i.adoptedStyleSheets.includes(r)||(i.adoptedStyleSheets=[...i.adoptedStyleSheets,r]);return n},Fn=i=>{const t=i.$cmpMeta$,e=i.$hostElement$,s=t.$flags$,n=F("attachStyles",t.$tagName$),r=Nn(e.shadowRoot?e.shadowRoot:e.getRootNode(),t,i.$modeName$);s&10&&(e["s-sc"]=r,e.classList.add(r+"-h"),s&2&&e.classList.add(r+"-s")),n()},Bi=(i,t)=>"sc-"+(t&&i.$flags$&32?i.$tagName$+"-"+t:i.$tagName$),Hn=i=>pr.map(t=>t(i)).find(t=>!!t),Ye={},Bn="http://www.w3.org/2000/svg",Dn="http://www.w3.org/1999/xhtml",zn=i=>i!=null,de=i=>(i=typeof i,i==="object"||i==="function"),G=(i,t,...e)=>{let s=null,n=null,r=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"&&!de(s))&&(s=String(s)),o&&a?l[l.length-1].$text$+=s:l.push(o?Et(null,s):s),a=o)};if(c(e),t){t.key&&(n=t.key),t.name&&(r=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,qn);const u=Et(i,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=n,u.$name$=r,u},Et=(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},fe={},Wn=i=>i&&i.$tag$===fe,qn={forEach:(i,t)=>i.map(Ze).forEach(t),map:(i,t)=>i.map(Ze).map(t).map(Gn)},Ze=i=>({vattrs:i.$attrs$,vchildren:i.$children$,vkey:i.$key$,vname:i.$name$,vtag:i.$tag$,vtext:i.$text$}),Gn=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),G(i.vtag,e,...i.vchildren||[])}const t=Et(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,n,r)=>{if(e!==s){let o=Je(i,t),a=t.toLowerCase();if(t==="class"){const l=i.classList,c=Ve(e),u=Ve(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):Je(Ut,a)?t=a.slice(2):t=a[2]+t.slice(3),e&&y.rel(i,t,e,!1),s&&y.ael(i,t,s,!1);else{const l=de(s);if((o||l&&s!==null)&&!n)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(qe,t):i.removeAttribute(t)):(!o||r&4||n)&&!l&&(s=s===!0?"":s,c?i.setAttributeNS(qe,t,s):i.setAttribute(t,s))}}},Yn=/\s/,Ve=i=>i?i.split(Yn):[],Di=(i,t,e,s)=>{const n=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=i&&i.$attrs$||Ye,o=t.$attrs$||Ye;for(s in r)s in o||Ke(n,s,r[s],void 0,e,t.$flags$);for(s in o)Ke(n,s,r[s],o[s],e,t.$flags$)},Ot=(i,t,e,s)=>{let n=t.$children$[e],r=0,o,a,l;if(Ni||(he=!0,n.$tag$==="slot"&&(z&&s.classList.add(z+"-s"),n.$flags$|=n.$children$?2:1)),n.$text$!==null)o=n.$elm$=k.createTextNode(n.$text$);else if(n.$flags$&1)o=n.$elm$=k.createTextNode("");else{if(b||(b=n.$tag$==="svg"),o=n.$elm$=k.createElementNS(b?Bn:Dn,n.$flags$&2?"slot-fb":n.$tag$),b&&n.$tag$==="foreignObject"&&(b=!1),Di(null,n,b),zn(z)&&o["s-si"]!==z&&o.classList.add(o["s-si"]=z),n.$children$)for(r=0;r<n.$children$.length;++r)a=Ot(i,n,r,o),a&&o.appendChild(a);n.$tag$==="svg"?b=!1:o.tagName==="foreignObject"&&(b=!0)}return o["s-hn"]=Rt,n.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=ji,o["s-sn"]=n.$name$||"",l=i&&i.$children$&&i.$children$[e],l&&l.$tag$===n.$tag$&&i.$elm$&&ct(i.$elm$,!1)),o},ct=(i,t)=>{y.$flags$|=1;const e=i.childNodes;for(let s=e.length-1;s>=0;s--){const n=e[s];n["s-hn"]!==Rt&&n["s-ol"]&&(qi(n).insertBefore(n,pe(n)),n["s-ol"].remove(),n["s-ol"]=void 0,he=!0),t&&ct(n,t)}y.$flags$&=-2},zi=(i,t,e,s,n,r)=>{let o=i["s-cr"]&&i["s-cr"].parentNode||i,a;for(o.shadowRoot&&o.tagName===Rt&&(o=o.shadowRoot);n<=r;++n)s[n]&&(a=Ot(null,e,n,i),a&&(s[n].$elm$=a,o.insertBefore(a,pe(t))))},Wi=(i,t,e,s,n)=>{for(;t<=e;++t)(s=i[t])&&(n=s.$elm$,Zi(s),Ct=!0,n["s-ol"]?n["s-ol"].remove():ct(n,!0),n.remove())},Zn=(i,t,e,s)=>{let n=0,r=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(;n<=l&&r<=h;)if(c==null)c=t[++n];else if(u==null)u=t[--l];else if(d==null)d=s[++r];else if(f==null)f=s[--h];else if($t(c,d))W(c,d),c=t[++n],d=s[++r];else if($t(u,f))W(u,f),u=t[--l],f=s[--h];else if($t(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&ct(c.$elm$.parentNode,!1),W(c,f),i.insertBefore(c.$elm$,u.$elm$.nextSibling),c=t[++n],f=s[--h];else if($t(u,d))(c.$tag$==="slot"||f.$tag$==="slot")&&ct(u.$elm$.parentNode,!1),W(u,d),i.insertBefore(u.$elm$,c.$elm$),u=t[--l],d=s[++r];else{for(o=-1,a=n;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=Ot(t&&t[r],e,o,i):(W(g,d),t[o]=void 0,v=g.$elm$),d=s[++r]):(v=Ot(t&&t[r],e,r,i),d=s[++r]),v&&qi(c.$elm$).insertBefore(v,pe(c.$elm$))}n>l?zi(i,s[h+1]==null?null:s[h+1].$elm$,e,s,r,h):r>h&&Wi(t,n,l)},$t=(i,t)=>i.$tag$===t.$tag$?i.$tag$==="slot"?i.$name$===t.$name$:i.$key$===t.$key$:!1,pe=i=>i&&i["s-ol"]||i,qi=i=>(i["s-ol"]?i["s-ol"]:i).parentNode,W=(i,t)=>{const e=t.$elm$=i.$elm$,s=i.$children$,n=t.$children$,r=t.$tag$,o=t.$text$;let a;o===null?(b=r==="svg"?!0:r==="foreignObject"?!1:b,r==="slot"||Di(i,t,b),s!==null&&n!==null?Zn(e,s,t,n):n!==null?(i.$text$!==null&&(e.textContent=""),zi(e,null,t,n,0,n.length-1)):s!==null&&Wi(s,0,s.length-1),b&&r==="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,n,r,o,a;for(s=0,n=t.length;s<n;s++)if(e=t[s],e.nodeType===1){if(e["s-sr"]){for(o=e["s-sn"],e.hidden=!1,r=0;r<n;r++)if(a=t[r].nodeType,t[r]["s-hn"]!==e["s-hn"]||o!==""){if(a===1&&o===t[r].getAttribute("slot")){e.hidden=!0;break}}else if(a===1||a===3&&t[r].textContent.trim()!==""){e.hidden=!0;break}}Gi(e)}},x=[],Yi=i=>{let t,e,s,n,r,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,n=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"]&&(Xe(e,n)?(r=x.find(u=>u.$nodeToRelocate$===e),Ct=!0,e["s-sn"]=e["s-sn"]||n,r?r.$slotRefNode$=t:x.push({$slotRefNode$:t,$nodeToRelocate$:e}),e["s-sr"]&&x.map(u=>{Xe(u.$nodeToRelocate$,e["s-sn"])&&(r=x.find(h=>h.$nodeToRelocate$===e),r&&!u.$slotRefNode$&&(u.$slotRefNode$=r.$slotRefNode$))})):x.some(u=>u.$nodeToRelocate$===e)||x.push({$nodeToRelocate$:e}));t.nodeType===1&&Yi(t)}},Xe=(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)},Kn=(i,t)=>{const e=i.$hostElement$,s=i.$cmpMeta$,n=i.$vnode$||Et(null,null),r=Wn(t)?t:G(null,null,t);Rt=e.tagName,s.$attrsToReflect$&&(r.$attrs$=r.$attrs$||{},s.$attrsToReflect$.map(([o,a])=>r.$attrs$[a]=e[o])),r.$tag$=null,r.$flags$|=4,i.$vnode$=r,r.$elm$=n.$elm$=e.shadowRoot||e,z=e["s-sc"],ji=e["s-cr"],Ni=(s.$flags$&1)!==0,Ct=!1,W(n,r);{if(y.$flags$|=1,he){Yi(r.$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=k.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)}Ct&&Gi(r.$elm$),y.$flags$&=-2,x.length=0}},Vn=i=>i,Xn=(i,t,e)=>{const s=Vn(i);return{emit:n=>Qn(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:n})}},Qn=(i,t,e)=>{const s=y.ce(t,e);return i.dispatchEvent(s),s},Jn=(i,t)=>{},Ki=(i,t)=>(i.$flags$|=16,Jn(i,i.$ancestorComponent$),$r(()=>tr(i,t))),tr=(i,t)=>{const e=i.$hostElement$,s=F("scheduleUpdate",i.$cmpMeta$.$tagName$),n=e;let r;return t?r=Y(n,"componentWillLoad"):r=Y(n,"componentWillUpdate"),r=Qe(r,()=>Y(n,"componentWillRender")),s(),Qe(r,()=>er(i,n,t))},er=async(i,t,e)=>{const s=i.$hostElement$,n=F("update",i.$cmpMeta$.$tagName$);s["s-rc"],e&&Fn(i);const r=F("render",i.$cmpMeta$.$tagName$);ir(i,t,s),r(),n(),sr(i)},ir=(i,t,e)=>{try{We=t,t=t.render&&t.render(),i.$flags$&=-17,i.$flags$|=2,(D.hasRenderFn||D.reflect)&&(D.vdomRender||D.reflect)&&(D.hydrateServerSide||Kn(i,t))}catch(a){ft(a,i.$hostElement$)}return We=null,null},sr=i=>{const t=i.$cmpMeta$.$tagName$,e=i.$hostElement$,s=F("postUpdate",t),n=e;i.$ancestorComponent$,Y(n,"componentDidRender"),i.$flags$&64?(Y(n,"componentDidUpdate"),s()):(i.$flags$|=64,Y(n,"componentDidLoad"),s())},Y=(i,t,e)=>{if(i&&i[t])try{return i[t](e)}catch(s){ft(s)}},Qe=(i,t)=>i&&i.then?i.then(t):t(),nr=(i,t)=>i!=null&&!de(i)?t&4?i==="false"?!1:i===""||!!i:t&2?parseFloat(i):t&1?String(i):i:i,rr=(i,t)=>Mt(i).$instanceValues$.get(t),or=(i,t,e,s)=>{const n=Mt(i),r=i,o=n.$instanceValues$.get(t),a=n.$flags$,l=r;e=nr(e,s.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(e);if(e!==o&&!c){n.$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){ft(f,r)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(e,o,t)===!1)return;Ki(n,!1)}}}},ar=(i,t,e)=>{if(t.$members$){i.watchers&&(t.$watchers$=i.watchers);const s=Object.entries(t.$members$),n=i.prototype;s.map(([r,[o]])=>{(o&31||o&32)&&Object.defineProperty(n,r,{get(){return rr(this,r)},set(a){or(this,r,a,t)},configurable:!0,enumerable:!0})});{const r=new Map;n.attributeChangedCallback=function(o,a,l){y.jmp(()=>{const c=r.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(n.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 r.set(l,o),a[0]&512&&t.$attrsToReflect$.push([o,l]),l})}}return i},lr=async(i,t,e,s,n)=>{if((t.$flags$&32)===0&&(n=i.constructor,t.$flags$|=32,customElements.whenDefined(e.$tagName$).then(()=>t.$flags$|=128),n.style)){let o=n.style;typeof o!="string"&&(o=o[t.$modeName$=Hn(i)]);const a=Bi(e,t.$modeName$);if(!Tt.has(a)){const l=F("registerStyles",e.$tagName$);jn(a,o,!!(e.$flags$&1)),l()}}t.$ancestorComponent$,Ki(t,!0)},cr=i=>{},ur=i=>{if((y.$flags$&1)===0){const t=Mt(i),e=t.$cmpMeta$,s=F("connectedCallback",e.$tagName$);t.$flags$&1?(Hi(i,t,e.$listeners$),cr(t.$lazyInstance$)):(t.$flags$|=1,e.$flags$&12&&hr(i),e.$members$&&Object.entries(e.$members$).map(([n,[r]])=>{if(r&31&&i.hasOwnProperty(n)){const o=i[n];delete i[n],i[n]=o}}),lr(i,t,e)),s()}},hr=i=>{const t=i["s-cr"]=k.createComment("");t["s-cn"]=!0,i.insertBefore(t,i.firstChild)},dr=i=>{if((y.$flags$&1)===0){const t=Mt(i);t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0)}},Vi=(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,n=i.prototype.disconnectedCallback;return Object.assign(i.prototype,{__registerHost(){fr(this,e)},connectedCallback(){ur(this),s&&s.call(this)},disconnectedCallback(){dr(this),n&&n.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(e.$flags$&16)})}}),i.is=e.$tagName$,ar(i,e)},Xi=new WeakMap,Mt=i=>Xi.get(i),fr=(i,t)=>{const e={$flags$:0,$hostElement$:i,$cmpMeta$:t,$instanceValues$:new Map};return Hi(i,e,t.$listeners$),Xi.set(i,e)},Je=(i,t)=>t in i,ft=(i,t)=>(0,console.error)(i,t),Tt=new Map,pr=[],ti=[],Qi=[],gr=(i,t)=>e=>{i.push(e),Qt||(Qt=!0,t&&y.$flags$&4?vr(Jt):y.raf(Jt))},ei=i=>{for(let t=0;t<i.length;t++)try{i[t](performance.now())}catch(e){ft(e)}i.length=0},Jt=()=>{ei(ti),ei(Qi),(Qt=ti.length>0)&&y.raf(Jt)},vr=i=>In().then(i),$r=gr(Qi,!0),mr=(i={})=>{const{content:t="",title:e,attributes:s=[]}=i;let n="",r=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...s];return e&&(n=`<title>${e}</title>`),`<svg ${r.map(a=>`${a.name}="${a.value}"`).join(" ")}>${n}${t}</svg>`},yr=i=>i.replace(/<(\/?)svg([^>]*)>/g,"").trim();function br(i){return`${i.getFullYear()}.${i.getMonth()+1}`}class wr{constructor(t){this.voca_component=t,this.voca_added=br(new Date)}}const _r="telia-vst{display:none}",xr=Vi(class extends Fi{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=Xn(this,"vocaInternalUStats")}connectedCallback(){this.vocaInternalUStats.emit(new wr(this.dataTrackingId))}render(){return G(fe,null)}static get style(){return _r}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function Ji(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,xr);break}})}Ji();function te(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function Sr(){if(typeof te().vocadsIcons!==void 0)return te().vocadsIcons}function Ar(){return te().vocadsIconsRegistered}const kr=".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))}",Cr=Vi(class extends Fi{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(Ar()&&this.name){const i=Sr();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=mr({content:yr(i),attributes:t,title:this.allyTitle});return G(fe,{class:`telia-icon telia-icon--${this.size}`},G("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:e}),G("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return kr}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function Er(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,Cr);break;case"telia-vst":customElements.get(t)||Ji();break}})}Er();const Or=()=>"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>(+i^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+i/4).toString(16)),Tr=()=>typeof crypto.randomUUID=="function"?crypto.randomUUID():Or();class Pr{constructor(t,e,s,n,r,o,a=!0){this.label=t,this.icon=e,this.onClick=s,this.closeOnClick=n,this.key=r,this.update=new ht,this.id=Tr(),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 Ir{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 Pr(t.label,t.icon,t.onClick,t.closeOnClick,t.key,this,t.enabled);return this._options.push(e),this.handleUpdate(),e}removeOption(t){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=cn(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}}var Lr=Object.defineProperty,pt=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&Lr(t,e,n),n};const ii=Ui(A),be=class be extends ii{constructor(){super(...arguments),this.optionsIsVisible=!1,this.authState=et.NonAuthenticated,this.userName="",this.authUrl="",this.showAuthOptions=!1,this.shouldUseAuth=!1,this.options=new Ir(this),this.optionsRef=xt(),this.optionsTriggerRef=xt(),this.actions$=new ht,this.onClickOutside=t=>{!this.optionsTriggerRef.value||!this.optionsRef.value||t.composedPath().includes(this.optionsTriggerRef.value)||t.composedPath().includes(this.optionsRef.value)||(this.optionsIsVisible=!1)},this.onGlobalKeyDown=t=>{var e,s;if(t.key==="Escape"){if(this.optionsIsVisible&&this.optionsRef.value){this.optionsIsVisible=!1,(e=this.optionsTriggerRef.value)==null||e.focus();return}if((s=this.application.trigger)!=null&&s.active){this.onMinimizeClick();return}return}t.key==="Tab"&&this.optionsIsVisible&&this.optionsRef.value&&this.handleFocusTrap(t)}}addOption(t){return this.options.addOption(t)}removeOption(t){return this.options.removeOption(t)}onToggleOptionsMenuClick(){this.optionsIsVisible=!this.optionsIsVisible}onMinimizeClick(){this.application.trigger?this.application.trigger.toggleActive():(this.notify("widget-minimize",{widgetId:this.application.id}),this.application.storage.set("open",!1))}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e},"*")}onStartAuth(t){this.authUrl||t==null||t.preventDefault(),this.actions$.next({key:"start-auth"}),this.optionsIsVisible=!1}handleFocusTrap(t){var o,a;const e=(o=this.optionsRef.value)==null?void 0:o.querySelectorAll('button:not([disabled]), a[href], [tabindex]:not([tabindex="-1"])');if(!e||e.length===0)return;const s=e[0],n=e[e.length-1],r=(a=this.shadowRoot)==null?void 0:a.activeElement;t.shiftKey?r===s&&(t.preventDefault(),n.focus()):r===n&&(t.preventDefault(),s.focus())}renderAuthSection(t){return!this.showAuthOptions||!(this.shouldUseAuth&&this.authState!==et.ChatEnded)?p:m`<div class="options-menu__auth-container">
|
|
460
|
+
`];let X=ye;ue([w({attribute:!0})],X.prototype,"name");ue([S()],X.prototype,"widget");ue([S()],X.prototype,"status");customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",kt);customElements.get("ace-trigger")||customElements.define("ace-trigger",O);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Xt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",lt);customElements.get("ace-widget")||customElements.define("ace-widget",X);const z={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 W,ji,Rt,Ni=!1,Ct=!1,he=!1,b=!1,We=null,Qt=!1;const Ut=typeof window<"u"?window:{},k=Ut.document||{head:{}},Fi=Ut.HTMLElement||class{},y={$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)},Pn=(()=>{let i=!1;try{k.addEventListener("e",null,Object.defineProperty({},"passive",{get(){i=!0}}))}catch{}return i})(),In=i=>Promise.resolve(i),Ln=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),Hi=(i,t,e,s)=>{e&&e.map(([n,r,o])=>{const a=Un(i,n),l=Rn(t,o),c=Mn(n);y.ael(a,r,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>y.rel(a,r,l,c))})},Rn=(i,t)=>e=>{try{z.lazyLoad||i.$hostElement$[t](e)}catch(s){ft(s)}},Un=(i,t)=>t&4?k:t&8?Ut:t&16?k.body:i,Mn=i=>Pn?{passive:(i&1)!==0,capture:(i&2)!==0}:(i&2)!==0,qe="http://www.w3.org/1999/xlink",F=(i,t="")=>()=>{},Ge=new WeakMap,jn=(i,t,e)=>{let s=Tt.get(i);Ln&&e?(s=s||new CSSStyleSheet,s.replace(t)):s=t,Tt.set(i,s)},Nn=(i,t,e,s)=>{let n=Bi(t,e),r=Tt.get(n);if(i=i.nodeType===11?i:k,r)if(typeof r=="string"){i=i.head||i;let o=Ge.get(i),a;o||Ge.set(i,o=new Set),o.has(n)||(a=k.createElement("style"),a.innerHTML=r,i.insertBefore(a,i.querySelector("link")),o&&o.add(n))}else i.adoptedStyleSheets.includes(r)||(i.adoptedStyleSheets=[...i.adoptedStyleSheets,r]);return n},Fn=i=>{const t=i.$cmpMeta$,e=i.$hostElement$,s=t.$flags$,n=F("attachStyles",t.$tagName$),r=Nn(e.shadowRoot?e.shadowRoot:e.getRootNode(),t,i.$modeName$);s&10&&(e["s-sc"]=r,e.classList.add(r+"-h"),s&2&&e.classList.add(r+"-s")),n()},Bi=(i,t)=>"sc-"+(t&&i.$flags$&32?i.$tagName$+"-"+t:i.$tagName$),Hn=i=>pr.map(t=>t(i)).find(t=>!!t),Ye={},Bn="http://www.w3.org/2000/svg",Dn="http://www.w3.org/1999/xhtml",zn=i=>i!=null,de=i=>(i=typeof i,i==="object"||i==="function"),Y=(i,t,...e)=>{let s=null,n=null,r=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"&&!de(s))&&(s=String(s)),o&&a?l[l.length-1].$text$+=s:l.push(o?Et(null,s):s),a=o)};if(c(e),t){t.key&&(n=t.key),t.name&&(r=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,qn);const u=Et(i,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=n,u.$name$=r,u},Et=(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},fe={},Wn=i=>i&&i.$tag$===fe,qn={forEach:(i,t)=>i.map(Ze).forEach(t),map:(i,t)=>i.map(Ze).map(t).map(Gn)},Ze=i=>({vattrs:i.$attrs$,vchildren:i.$children$,vkey:i.$key$,vname:i.$name$,vtag:i.$tag$,vtext:i.$text$}),Gn=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),Y(i.vtag,e,...i.vchildren||[])}const t=Et(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,n,r)=>{if(e!==s){let o=Je(i,t),a=t.toLowerCase();if(t==="class"){const l=i.classList,c=Ve(e),u=Ve(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):Je(Ut,a)?t=a.slice(2):t=a[2]+t.slice(3),e&&y.rel(i,t,e,!1),s&&y.ael(i,t,s,!1);else{const l=de(s);if((o||l&&s!==null)&&!n)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(qe,t):i.removeAttribute(t)):(!o||r&4||n)&&!l&&(s=s===!0?"":s,c?i.setAttributeNS(qe,t,s):i.setAttribute(t,s))}}},Yn=/\s/,Ve=i=>i?i.split(Yn):[],Di=(i,t,e,s)=>{const n=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=i&&i.$attrs$||Ye,o=t.$attrs$||Ye;for(s in r)s in o||Ke(n,s,r[s],void 0,e,t.$flags$);for(s in o)Ke(n,s,r[s],o[s],e,t.$flags$)},Ot=(i,t,e,s)=>{let n=t.$children$[e],r=0,o,a,l;if(Ni||(he=!0,n.$tag$==="slot"&&(W&&s.classList.add(W+"-s"),n.$flags$|=n.$children$?2:1)),n.$text$!==null)o=n.$elm$=k.createTextNode(n.$text$);else if(n.$flags$&1)o=n.$elm$=k.createTextNode("");else{if(b||(b=n.$tag$==="svg"),o=n.$elm$=k.createElementNS(b?Bn:Dn,n.$flags$&2?"slot-fb":n.$tag$),b&&n.$tag$==="foreignObject"&&(b=!1),Di(null,n,b),zn(W)&&o["s-si"]!==W&&o.classList.add(o["s-si"]=W),n.$children$)for(r=0;r<n.$children$.length;++r)a=Ot(i,n,r,o),a&&o.appendChild(a);n.$tag$==="svg"?b=!1:o.tagName==="foreignObject"&&(b=!0)}return o["s-hn"]=Rt,n.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=ji,o["s-sn"]=n.$name$||"",l=i&&i.$children$&&i.$children$[e],l&&l.$tag$===n.$tag$&&i.$elm$&&ct(i.$elm$,!1)),o},ct=(i,t)=>{y.$flags$|=1;const e=i.childNodes;for(let s=e.length-1;s>=0;s--){const n=e[s];n["s-hn"]!==Rt&&n["s-ol"]&&(qi(n).insertBefore(n,pe(n)),n["s-ol"].remove(),n["s-ol"]=void 0,he=!0),t&&ct(n,t)}y.$flags$&=-2},zi=(i,t,e,s,n,r)=>{let o=i["s-cr"]&&i["s-cr"].parentNode||i,a;for(o.shadowRoot&&o.tagName===Rt&&(o=o.shadowRoot);n<=r;++n)s[n]&&(a=Ot(null,e,n,i),a&&(s[n].$elm$=a,o.insertBefore(a,pe(t))))},Wi=(i,t,e,s,n)=>{for(;t<=e;++t)(s=i[t])&&(n=s.$elm$,Zi(s),Ct=!0,n["s-ol"]?n["s-ol"].remove():ct(n,!0),n.remove())},Zn=(i,t,e,s)=>{let n=0,r=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(;n<=l&&r<=h;)if(c==null)c=t[++n];else if(u==null)u=t[--l];else if(d==null)d=s[++r];else if(f==null)f=s[--h];else if($t(c,d))q(c,d),c=t[++n],d=s[++r];else if($t(u,f))q(u,f),u=t[--l],f=s[--h];else if($t(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&ct(c.$elm$.parentNode,!1),q(c,f),i.insertBefore(c.$elm$,u.$elm$.nextSibling),c=t[++n],f=s[--h];else if($t(u,d))(c.$tag$==="slot"||f.$tag$==="slot")&&ct(u.$elm$.parentNode,!1),q(u,d),i.insertBefore(u.$elm$,c.$elm$),u=t[--l],d=s[++r];else{for(o=-1,a=n;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=Ot(t&&t[r],e,o,i):(q(g,d),t[o]=void 0,v=g.$elm$),d=s[++r]):(v=Ot(t&&t[r],e,r,i),d=s[++r]),v&&qi(c.$elm$).insertBefore(v,pe(c.$elm$))}n>l?zi(i,s[h+1]==null?null:s[h+1].$elm$,e,s,r,h):r>h&&Wi(t,n,l)},$t=(i,t)=>i.$tag$===t.$tag$?i.$tag$==="slot"?i.$name$===t.$name$:i.$key$===t.$key$:!1,pe=i=>i&&i["s-ol"]||i,qi=i=>(i["s-ol"]?i["s-ol"]:i).parentNode,q=(i,t)=>{const e=t.$elm$=i.$elm$,s=i.$children$,n=t.$children$,r=t.$tag$,o=t.$text$;let a;o===null?(b=r==="svg"?!0:r==="foreignObject"?!1:b,r==="slot"||Di(i,t,b),s!==null&&n!==null?Zn(e,s,t,n):n!==null?(i.$text$!==null&&(e.textContent=""),zi(e,null,t,n,0,n.length-1)):s!==null&&Wi(s,0,s.length-1),b&&r==="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,n,r,o,a;for(s=0,n=t.length;s<n;s++)if(e=t[s],e.nodeType===1){if(e["s-sr"]){for(o=e["s-sn"],e.hidden=!1,r=0;r<n;r++)if(a=t[r].nodeType,t[r]["s-hn"]!==e["s-hn"]||o!==""){if(a===1&&o===t[r].getAttribute("slot")){e.hidden=!0;break}}else if(a===1||a===3&&t[r].textContent.trim()!==""){e.hidden=!0;break}}Gi(e)}},x=[],Yi=i=>{let t,e,s,n,r,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,n=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"]&&(Xe(e,n)?(r=x.find(u=>u.$nodeToRelocate$===e),Ct=!0,e["s-sn"]=e["s-sn"]||n,r?r.$slotRefNode$=t:x.push({$slotRefNode$:t,$nodeToRelocate$:e}),e["s-sr"]&&x.map(u=>{Xe(u.$nodeToRelocate$,e["s-sn"])&&(r=x.find(h=>h.$nodeToRelocate$===e),r&&!u.$slotRefNode$&&(u.$slotRefNode$=r.$slotRefNode$))})):x.some(u=>u.$nodeToRelocate$===e)||x.push({$nodeToRelocate$:e}));t.nodeType===1&&Yi(t)}},Xe=(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)},Kn=(i,t)=>{const e=i.$hostElement$,s=i.$cmpMeta$,n=i.$vnode$||Et(null,null),r=Wn(t)?t:Y(null,null,t);Rt=e.tagName,s.$attrsToReflect$&&(r.$attrs$=r.$attrs$||{},s.$attrsToReflect$.map(([o,a])=>r.$attrs$[a]=e[o])),r.$tag$=null,r.$flags$|=4,i.$vnode$=r,r.$elm$=n.$elm$=e.shadowRoot||e,W=e["s-sc"],ji=e["s-cr"],Ni=(s.$flags$&1)!==0,Ct=!1,q(n,r);{if(y.$flags$|=1,he){Yi(r.$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=k.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)}Ct&&Gi(r.$elm$),y.$flags$&=-2,x.length=0}},Vn=i=>i,Xn=(i,t,e)=>{const s=Vn(i);return{emit:n=>Qn(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:n})}},Qn=(i,t,e)=>{const s=y.ce(t,e);return i.dispatchEvent(s),s},Jn=(i,t)=>{},Ki=(i,t)=>(i.$flags$|=16,Jn(i,i.$ancestorComponent$),$r(()=>tr(i,t))),tr=(i,t)=>{const e=i.$hostElement$,s=F("scheduleUpdate",i.$cmpMeta$.$tagName$),n=e;let r;return t?r=Z(n,"componentWillLoad"):r=Z(n,"componentWillUpdate"),r=Qe(r,()=>Z(n,"componentWillRender")),s(),Qe(r,()=>er(i,n,t))},er=async(i,t,e)=>{const s=i.$hostElement$,n=F("update",i.$cmpMeta$.$tagName$);s["s-rc"],e&&Fn(i);const r=F("render",i.$cmpMeta$.$tagName$);ir(i,t,s),r(),n(),sr(i)},ir=(i,t,e)=>{try{We=t,t=t.render&&t.render(),i.$flags$&=-17,i.$flags$|=2,(z.hasRenderFn||z.reflect)&&(z.vdomRender||z.reflect)&&(z.hydrateServerSide||Kn(i,t))}catch(a){ft(a,i.$hostElement$)}return We=null,null},sr=i=>{const t=i.$cmpMeta$.$tagName$,e=i.$hostElement$,s=F("postUpdate",t),n=e;i.$ancestorComponent$,Z(n,"componentDidRender"),i.$flags$&64?(Z(n,"componentDidUpdate"),s()):(i.$flags$|=64,Z(n,"componentDidLoad"),s())},Z=(i,t,e)=>{if(i&&i[t])try{return i[t](e)}catch(s){ft(s)}},Qe=(i,t)=>i&&i.then?i.then(t):t(),nr=(i,t)=>i!=null&&!de(i)?t&4?i==="false"?!1:i===""||!!i:t&2?parseFloat(i):t&1?String(i):i:i,rr=(i,t)=>Mt(i).$instanceValues$.get(t),or=(i,t,e,s)=>{const n=Mt(i),r=i,o=n.$instanceValues$.get(t),a=n.$flags$,l=r;e=nr(e,s.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(e);if(e!==o&&!c){n.$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){ft(f,r)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(e,o,t)===!1)return;Ki(n,!1)}}}},ar=(i,t,e)=>{if(t.$members$){i.watchers&&(t.$watchers$=i.watchers);const s=Object.entries(t.$members$),n=i.prototype;s.map(([r,[o]])=>{(o&31||o&32)&&Object.defineProperty(n,r,{get(){return rr(this,r)},set(a){or(this,r,a,t)},configurable:!0,enumerable:!0})});{const r=new Map;n.attributeChangedCallback=function(o,a,l){y.jmp(()=>{const c=r.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(n.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 r.set(l,o),a[0]&512&&t.$attrsToReflect$.push([o,l]),l})}}return i},lr=async(i,t,e,s,n)=>{if((t.$flags$&32)===0&&(n=i.constructor,t.$flags$|=32,customElements.whenDefined(e.$tagName$).then(()=>t.$flags$|=128),n.style)){let o=n.style;typeof o!="string"&&(o=o[t.$modeName$=Hn(i)]);const a=Bi(e,t.$modeName$);if(!Tt.has(a)){const l=F("registerStyles",e.$tagName$);jn(a,o,!!(e.$flags$&1)),l()}}t.$ancestorComponent$,Ki(t,!0)},cr=i=>{},ur=i=>{if((y.$flags$&1)===0){const t=Mt(i),e=t.$cmpMeta$,s=F("connectedCallback",e.$tagName$);t.$flags$&1?(Hi(i,t,e.$listeners$),cr(t.$lazyInstance$)):(t.$flags$|=1,e.$flags$&12&&hr(i),e.$members$&&Object.entries(e.$members$).map(([n,[r]])=>{if(r&31&&i.hasOwnProperty(n)){const o=i[n];delete i[n],i[n]=o}}),lr(i,t,e)),s()}},hr=i=>{const t=i["s-cr"]=k.createComment("");t["s-cn"]=!0,i.insertBefore(t,i.firstChild)},dr=i=>{if((y.$flags$&1)===0){const t=Mt(i);t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0)}},Vi=(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,n=i.prototype.disconnectedCallback;return Object.assign(i.prototype,{__registerHost(){fr(this,e)},connectedCallback(){ur(this),s&&s.call(this)},disconnectedCallback(){dr(this),n&&n.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(e.$flags$&16)})}}),i.is=e.$tagName$,ar(i,e)},Xi=new WeakMap,Mt=i=>Xi.get(i),fr=(i,t)=>{const e={$flags$:0,$hostElement$:i,$cmpMeta$:t,$instanceValues$:new Map};return Hi(i,e,t.$listeners$),Xi.set(i,e)},Je=(i,t)=>t in i,ft=(i,t)=>(0,console.error)(i,t),Tt=new Map,pr=[],ti=[],Qi=[],gr=(i,t)=>e=>{i.push(e),Qt||(Qt=!0,t&&y.$flags$&4?vr(Jt):y.raf(Jt))},ei=i=>{for(let t=0;t<i.length;t++)try{i[t](performance.now())}catch(e){ft(e)}i.length=0},Jt=()=>{ei(ti),ei(Qi),(Qt=ti.length>0)&&y.raf(Jt)},vr=i=>In().then(i),$r=gr(Qi,!0),mr=(i={})=>{const{content:t="",title:e,attributes:s=[]}=i;let n="",r=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...s];return e&&(n=`<title>${e}</title>`),`<svg ${r.map(a=>`${a.name}="${a.value}"`).join(" ")}>${n}${t}</svg>`},yr=i=>i.replace(/<(\/?)svg([^>]*)>/g,"").trim();function br(i){return`${i.getFullYear()}.${i.getMonth()+1}`}class wr{constructor(t){this.voca_component=t,this.voca_added=br(new Date)}}const _r="telia-vst{display:none}",xr=Vi(class extends Fi{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=Xn(this,"vocaInternalUStats")}connectedCallback(){this.vocaInternalUStats.emit(new wr(this.dataTrackingId))}render(){return Y(fe,null)}static get style(){return _r}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function Ji(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,xr);break}})}Ji();function te(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function Sr(){if(typeof te().vocadsIcons!==void 0)return te().vocadsIcons}function Ar(){return te().vocadsIconsRegistered}const kr=".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))}",Cr=Vi(class extends Fi{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(Ar()&&this.name){const i=Sr();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=mr({content:yr(i),attributes:t,title:this.allyTitle});return Y(fe,{class:`telia-icon telia-icon--${this.size}`},Y("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:e}),Y("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return kr}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function Er(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,Cr);break;case"telia-vst":customElements.get(t)||Ji();break}})}Er();const Or=()=>"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>(+i^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+i/4).toString(16)),Tr=()=>typeof crypto.randomUUID=="function"?crypto.randomUUID():Or();class Pr{constructor(t,e,s,n,r,o,a=!0){this.label=t,this.icon=e,this.onClick=s,this.closeOnClick=n,this.key=r,this.update=new ht,this.id=Tr(),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 Ir{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 Pr(t.label,t.icon,t.onClick,t.closeOnClick,t.key,this,t.enabled);return this._options.push(e),this.handleUpdate(),e}removeOption(t){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=cn(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}}var Lr=Object.defineProperty,pt=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&Lr(t,e,n),n};const ii=Ui(A),be=class be extends ii{constructor(){super(...arguments),this.optionsIsVisible=!1,this.authState=D.NonAuthenticated,this.userName="",this.authUrl="",this.showAuthOptions=!1,this.shouldUseAuth=!1,this.options=new Ir(this),this.optionsRef=xt(),this.optionsTriggerRef=xt(),this.actions$=new ht,this.onClickOutside=t=>{!this.optionsTriggerRef.value||!this.optionsRef.value||t.composedPath().includes(this.optionsTriggerRef.value)||t.composedPath().includes(this.optionsRef.value)||(this.optionsIsVisible=!1)},this.onGlobalKeyDown=t=>{var e,s;if(t.key==="Escape"){if(this.optionsIsVisible&&this.optionsRef.value){this.optionsIsVisible=!1,(e=this.optionsTriggerRef.value)==null||e.focus();return}if((s=this.application.trigger)!=null&&s.active){this.onMinimizeClick();return}return}t.key==="Tab"&&this.optionsIsVisible&&this.optionsRef.value&&this.handleFocusTrap(t)}}addOption(t){return this.options.addOption(t)}removeOption(t){return this.options.removeOption(t)}onToggleOptionsMenuClick(){this.optionsIsVisible=!this.optionsIsVisible}onMinimizeClick(){this.application.trigger?this.application.trigger.toggleActive():(this.notify("widget-minimize",{widgetId:this.application.id}),this.application.storage.set("open",!1))}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e},"*")}onStartAuth(t){this.authUrl||t==null||t.preventDefault(),this.actions$.next({key:"start-auth"}),this.optionsIsVisible=!1}handleFocusTrap(t){var o,a;const e=(o=this.optionsRef.value)==null?void 0:o.querySelectorAll('button:not([disabled]), a[href], [tabindex]:not([tabindex="-1"])');if(!e||e.length===0)return;const s=e[0],n=e[e.length-1],r=(a=this.shadowRoot)==null?void 0:a.activeElement;t.shiftKey?r===s&&(t.preventDefault(),n.focus()):r===n&&(t.preventDefault(),s.focus())}renderAuthSection(t){return!this.showAuthOptions||!(this.shouldUseAuth&&this.authState!==D.ChatEnded)?p:m`<div class="options-menu__auth-container">
|
|
461
461
|
<p class="options-menu__auth-helper-text" data-testid="auth-helper-text">
|
|
462
462
|
${t.getOrFallback("widget-header.authentication-text","AUTHENTICATED AS")}
|
|
463
463
|
</p>
|
|
464
464
|
${this.renderAuthStatus(t)}
|
|
465
|
-
</div>`}renderAuthStatus(t){return this.authState===
|
|
465
|
+
</div>`}renderAuthStatus(t){return this.authState===D.NonAuthenticated?m` <div class="options-menu__auth">
|
|
466
466
|
<p class="options-menu__auth-status" data-testid="auth-status">
|
|
467
467
|
${t.getOrFallback("widget-header.not-authenticated","Not authenticated")}
|
|
468
468
|
</p>
|
|
@@ -480,7 +480,7 @@
|
|
|
480
480
|
<p class="options-menu__auth-status" data-testid="auth-status">
|
|
481
481
|
${this.userName}
|
|
482
482
|
</p>
|
|
483
|
-
</div>`}setFocusToOptionsTitle(){var e;const t=(e=this.optionsRef.value)==null?void 0:e.querySelector("#options-menu-title");t&&setTimeout(()=>t.focus(),0)}connectedCallback(){super.connectedCallback(),this.application.storage.get("authenticated")&&(this.userName=this.application.storage.get("user-name")??"",this.authState=
|
|
483
|
+
</div>`}setFocusToOptionsTitle(){var e;const t=(e=this.optionsRef.value)==null?void 0:e.querySelector("#options-menu-title");t&&setTimeout(()=>t.focus(),0)}connectedCallback(){super.connectedCallback(),this.application.storage.get("authenticated")&&(this.userName=this.application.storage.get("user-name")??"",this.authState=D.Authenticated,this.showAuthOptions=!0),document.addEventListener("click",this.onClickOutside),window.addEventListener("keydown",this.onGlobalKeyDown)}updated(t){super.updated(t),this.optionsIsVisible&&this.optionsRef.value&&this.setFocusToOptionsTitle()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.onClickOutside),window.removeEventListener("keydown",this.onGlobalKeyDown)}shouldShowAuthSection(){var e,s,n,r,o;return((n=(s=(e=this.application.settings)==null?void 0:e.agentConfig)==null?void 0:s.virtual)==null?void 0:n.shouldUseBotAgent)??!1?this.authState===D.Authenticated:((o=(r=this.application.settings)==null?void 0:r.auth)==null?void 0:o.shouldUseAuth)??!1}render(){var o,a,l,c;const t=this.application.branding(),e=(o=t==null?void 0:t.graphics)==null?void 0:o.logotype,s=this.application.texts,n=s.get("widget-header.header","ACE Widget"),r=((c=(l=(a=this.application.settings)==null?void 0:a.agentConfig)==null?void 0:l.live)==null?void 0:c.isThirdPartyWidget)??!1;return this.shouldUseAuth=this.shouldShowAuthSection(),m` <div class="widget-header">
|
|
484
484
|
${e?m` <img
|
|
485
485
|
src=${e}
|
|
486
486
|
class="logotype"
|
package/index.mjs
CHANGED
|
@@ -288,7 +288,7 @@ B.elementStyles = [], B.shadowRootOptions = { mode: "open" }, B[it("elementPrope
|
|
|
288
288
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
289
289
|
*/
|
|
290
290
|
const st = globalThis, Ae = (i) => i, wt = st.trustedTypes, ke = wt ? wt.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, ri = "$lit$", T = `lit$${Math.random().toFixed(9).slice(2)}$`, oi = "?" + T, cs = `<${oi}>`, j = document, rt = () => j.createComment(""), ot = (i) => i === null || typeof i != "object" && typeof i != "function", ne = Array.isArray, us = (i) => ne(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Ft = `[
|
|
291
|
-
\f\r]`,
|
|
291
|
+
\f\r]`, et = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ce = /-->/g, Ee = />/g, I = RegExp(`>|${Ft}(?:([^\\s"'>=/]+)(${Ft}*=${Ft}*(?:[^
|
|
292
292
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), Oe = /'/g, Te = /"/g, ai = /^(?:script|style|textarea|title)$/i, hs = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), m = hs(1), N = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), Pe = /* @__PURE__ */ new WeakMap(), R = j.createTreeWalker(j, 129);
|
|
293
293
|
function li(i, t) {
|
|
294
294
|
if (!ne(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
@@ -296,13 +296,13 @@ function li(i, t) {
|
|
|
296
296
|
}
|
|
297
297
|
const ds = (i, t) => {
|
|
298
298
|
const e = i.length - 1, s = [];
|
|
299
|
-
let n, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o =
|
|
299
|
+
let n, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = et;
|
|
300
300
|
for (let a = 0; a < e; a++) {
|
|
301
301
|
const l = i[a];
|
|
302
302
|
let c, u, h = -1, d = 0;
|
|
303
|
-
for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); ) d = o.lastIndex, o ===
|
|
303
|
+
for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); ) d = o.lastIndex, o === et ? u[1] === "!--" ? o = Ce : u[1] !== void 0 ? o = Ee : u[2] !== void 0 ? (ai.test(u[2]) && (n = RegExp("</" + u[2], "g")), o = I) : u[3] !== void 0 && (o = I) : o === I ? u[0] === ">" ? (o = n ?? et, h = -1) : u[1] === void 0 ? h = -2 : (h = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? I : u[3] === '"' ? Te : Oe) : o === Te || o === Oe ? o = I : o === Ce || o === Ee ? o = et : (o = I, n = void 0);
|
|
304
304
|
const f = o === I && i[a + 1].startsWith("/>") ? " " : "";
|
|
305
|
-
r += o ===
|
|
305
|
+
r += o === et ? l + cs : h >= 0 ? (s.push(c), l.slice(0, h) + ri + l.slice(h) + T + f) : l + T + (h === -2 ? a : f);
|
|
306
306
|
}
|
|
307
307
|
return [li(i, r + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
308
308
|
};
|
|
@@ -343,12 +343,12 @@ class at {
|
|
|
343
343
|
return s.innerHTML = t, s;
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function K(i, t, e = i, s) {
|
|
347
347
|
var o, a;
|
|
348
348
|
if (t === N) return t;
|
|
349
349
|
let n = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
|
|
350
350
|
const r = ot(t) ? void 0 : t._$litDirective$;
|
|
351
|
-
return (n == null ? void 0 : n.constructor) !== r && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), r === void 0 ? n = void 0 : (n = new r(i), n._$AT(i, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = n : e._$Cl = n), n !== void 0 && (t =
|
|
351
|
+
return (n == null ? void 0 : n.constructor) !== r && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), r === void 0 ? n = void 0 : (n = new r(i), n._$AT(i, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = n : e._$Cl = n), n !== void 0 && (t = K(i, n._$AS(i, t.values), n, s)), t;
|
|
352
352
|
}
|
|
353
353
|
class fs {
|
|
354
354
|
constructor(t, e) {
|
|
@@ -398,7 +398,7 @@ class ut {
|
|
|
398
398
|
return this._$AB;
|
|
399
399
|
}
|
|
400
400
|
_$AI(t, e = this) {
|
|
401
|
-
t =
|
|
401
|
+
t = K(this, t, e), ot(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== N && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : us(t) ? this.k(t) : this._(t);
|
|
402
402
|
}
|
|
403
403
|
O(t) {
|
|
404
404
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -454,11 +454,11 @@ let Pt = class {
|
|
|
454
454
|
_$AI(t, e = this, s, n) {
|
|
455
455
|
const r = this.strings;
|
|
456
456
|
let o = !1;
|
|
457
|
-
if (r === void 0) t =
|
|
457
|
+
if (r === void 0) t = K(this, t, e, 0), o = !ot(t) || t !== this._$AH && t !== N, o && (this._$AH = t);
|
|
458
458
|
else {
|
|
459
459
|
const a = t;
|
|
460
460
|
let l, c;
|
|
461
|
-
for (t = r[0], l = 0; l < r.length - 1; l++) c =
|
|
461
|
+
for (t = r[0], l = 0; l < r.length - 1; l++) c = K(this, a[s + l], e, l), c === N && (c = this._$AH[l]), o || (o = !ot(c) || c !== this._$AH[l]), c === p ? t = p : t !== p && (t += (c ?? "") + r[l + 1]), this._$AH[l] = c;
|
|
462
462
|
}
|
|
463
463
|
o && !n && this.j(t);
|
|
464
464
|
}
|
|
@@ -487,7 +487,7 @@ class vs extends Pt {
|
|
|
487
487
|
super(t, e, s, n, r), this.type = 5;
|
|
488
488
|
}
|
|
489
489
|
_$AI(t, e = this) {
|
|
490
|
-
if ((t =
|
|
490
|
+
if ((t = K(this, t, e, 0) ?? p) === N) return;
|
|
491
491
|
const s = this._$AH, n = t === p && s !== p || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, r = t !== p && (s === p || n);
|
|
492
492
|
n && this.element.removeEventListener(this.name, this, s), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
493
493
|
}
|
|
@@ -504,7 +504,7 @@ class $s {
|
|
|
504
504
|
return this._$AM._$AU;
|
|
505
505
|
}
|
|
506
506
|
_$AI(t) {
|
|
507
|
-
|
|
507
|
+
K(this, t);
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
510
|
const Ht = st.litHtmlPolyfillSupport;
|
|
@@ -724,7 +724,7 @@ var Gt = function(i, t) {
|
|
|
724
724
|
for (var n in s) Object.prototype.hasOwnProperty.call(s, n) && (e[n] = s[n]);
|
|
725
725
|
}, Gt(i, t);
|
|
726
726
|
};
|
|
727
|
-
function
|
|
727
|
+
function Q(i, t) {
|
|
728
728
|
if (typeof t != "function" && t !== null)
|
|
729
729
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
730
730
|
Gt(i, t);
|
|
@@ -820,7 +820,7 @@ function di(i, t) {
|
|
|
820
820
|
return { value: c[0] ? c[1] : void 0, done: !0 };
|
|
821
821
|
}
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function V(i) {
|
|
824
824
|
var t = typeof Symbol == "function" && Symbol.iterator, e = t && i[t], s = 0;
|
|
825
825
|
if (e) return e.call(i);
|
|
826
826
|
if (i && typeof i.length == "number") return {
|
|
@@ -852,8 +852,8 @@ function Zt(i, t, e) {
|
|
|
852
852
|
(r || !(s in t)) && (r || (r = Array.prototype.slice.call(t, 0, s)), r[s] = t[s]);
|
|
853
853
|
return i.concat(r || Array.prototype.slice.call(t));
|
|
854
854
|
}
|
|
855
|
-
function
|
|
856
|
-
return this instanceof
|
|
855
|
+
function G(i) {
|
|
856
|
+
return this instanceof G ? (this.v = i, this) : new G(i);
|
|
857
857
|
}
|
|
858
858
|
function Cs(i, t, e) {
|
|
859
859
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
@@ -868,8 +868,8 @@ function Cs(i, t, e) {
|
|
|
868
868
|
}
|
|
869
869
|
function a(f, v) {
|
|
870
870
|
s[f] && (n[f] = function(g) {
|
|
871
|
-
return new Promise(function(gt,
|
|
872
|
-
r.push([f, g, gt,
|
|
871
|
+
return new Promise(function(gt, tt) {
|
|
872
|
+
r.push([f, g, gt, tt]) > 1 || l(f, g);
|
|
873
873
|
});
|
|
874
874
|
}, v && (n[f] = v(n[f])));
|
|
875
875
|
}
|
|
@@ -881,7 +881,7 @@ function Cs(i, t, e) {
|
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
883
|
function c(f) {
|
|
884
|
-
f.value instanceof
|
|
884
|
+
f.value instanceof G ? Promise.resolve(f.value.v).then(u, h) : d(r[0][2], f);
|
|
885
885
|
}
|
|
886
886
|
function u(f) {
|
|
887
887
|
l("next", f);
|
|
@@ -896,7 +896,7 @@ function Cs(i, t, e) {
|
|
|
896
896
|
function Es(i) {
|
|
897
897
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
898
898
|
var t = i[Symbol.asyncIterator], e;
|
|
899
|
-
return t ? t.call(i) : (i = typeof
|
|
899
|
+
return t ? t.call(i) : (i = typeof V == "function" ? V(i) : i[Symbol.iterator](), e = {}, s("next"), s("throw"), s("return"), e[Symbol.asyncIterator] = function() {
|
|
900
900
|
return this;
|
|
901
901
|
}, e);
|
|
902
902
|
function s(r) {
|
|
@@ -948,7 +948,7 @@ var It = (function() {
|
|
|
948
948
|
if (o)
|
|
949
949
|
if (this._parentage = null, Array.isArray(o))
|
|
950
950
|
try {
|
|
951
|
-
for (var a =
|
|
951
|
+
for (var a = V(o), l = a.next(); !l.done; l = a.next()) {
|
|
952
952
|
var c = l.value;
|
|
953
953
|
c.remove(this);
|
|
954
954
|
}
|
|
@@ -974,7 +974,7 @@ var It = (function() {
|
|
|
974
974
|
if (h) {
|
|
975
975
|
this._finalizers = null;
|
|
976
976
|
try {
|
|
977
|
-
for (var d =
|
|
977
|
+
for (var d = V(h), f = d.next(); !f.done; f = d.next()) {
|
|
978
978
|
var v = f.value;
|
|
979
979
|
try {
|
|
980
980
|
Ie(v);
|
|
@@ -1055,7 +1055,7 @@ function yt(i) {
|
|
|
1055
1055
|
i();
|
|
1056
1056
|
}
|
|
1057
1057
|
var ae = (function(i) {
|
|
1058
|
-
|
|
1058
|
+
Q(t, i);
|
|
1059
1059
|
function t(e) {
|
|
1060
1060
|
var s = i.call(this) || this;
|
|
1061
1061
|
return s.isStopped = !1, e ? (s.destination = e, gi(e) && e.add(s)) : s.destination = Ls, s;
|
|
@@ -1117,7 +1117,7 @@ var ae = (function(i) {
|
|
|
1117
1117
|
}
|
|
1118
1118
|
}, i;
|
|
1119
1119
|
})(), Vt = (function(i) {
|
|
1120
|
-
|
|
1120
|
+
Q(t, i);
|
|
1121
1121
|
function t(e, s, n) {
|
|
1122
1122
|
var r = i.call(this) || this, o;
|
|
1123
1123
|
return $(e) || !e ? o = {
|
|
@@ -1242,7 +1242,7 @@ function At(i, t, e, s, n) {
|
|
|
1242
1242
|
return new Ns(i, t, e, s, n);
|
|
1243
1243
|
}
|
|
1244
1244
|
var Ns = (function(i) {
|
|
1245
|
-
|
|
1245
|
+
Q(t, i);
|
|
1246
1246
|
function t(e, s, n, r, o, a) {
|
|
1247
1247
|
var l = i.call(this, e) || this;
|
|
1248
1248
|
return l.onFinalize = o, l.shouldUnsubscribe = a, l._next = s ? function(c) {
|
|
@@ -1281,7 +1281,7 @@ var Ns = (function(i) {
|
|
|
1281
1281
|
i(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1282
1282
|
};
|
|
1283
1283
|
}), ht = (function(i) {
|
|
1284
|
-
|
|
1284
|
+
Q(t, i);
|
|
1285
1285
|
function t() {
|
|
1286
1286
|
var e = i.call(this) || this;
|
|
1287
1287
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
|
@@ -1299,7 +1299,7 @@ var Ns = (function(i) {
|
|
|
1299
1299
|
if (s._throwIfClosed(), !s.isStopped) {
|
|
1300
1300
|
s.currentObservers || (s.currentObservers = Array.from(s.observers));
|
|
1301
1301
|
try {
|
|
1302
|
-
for (var o =
|
|
1302
|
+
for (var o = V(s.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
|
1303
1303
|
var l = a.value;
|
|
1304
1304
|
l.next(e);
|
|
1305
1305
|
}
|
|
@@ -1360,7 +1360,7 @@ var Ns = (function(i) {
|
|
|
1360
1360
|
return new Ue(e, s);
|
|
1361
1361
|
}, t;
|
|
1362
1362
|
})(_), Ue = (function(i) {
|
|
1363
|
-
|
|
1363
|
+
Q(t, i);
|
|
1364
1364
|
function t(e, s) {
|
|
1365
1365
|
var n = i.call(this) || this;
|
|
1366
1366
|
return n.destination = e, n.source = s, n;
|
|
@@ -1379,7 +1379,7 @@ var Ns = (function(i) {
|
|
|
1379
1379
|
return (n = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(e)) !== null && n !== void 0 ? n : pi;
|
|
1380
1380
|
}, t;
|
|
1381
1381
|
})(ht), mi = (function(i) {
|
|
1382
|
-
|
|
1382
|
+
Q(t, i);
|
|
1383
1383
|
function t(e) {
|
|
1384
1384
|
var s = i.call(this) || this;
|
|
1385
1385
|
return s._value = e, s;
|
|
@@ -1448,13 +1448,13 @@ function Ci(i) {
|
|
|
1448
1448
|
case 1:
|
|
1449
1449
|
o.trys.push([1, , 9, 10]), o.label = 2;
|
|
1450
1450
|
case 2:
|
|
1451
|
-
return [4,
|
|
1451
|
+
return [4, G(e.read())];
|
|
1452
1452
|
case 3:
|
|
1453
|
-
return s = o.sent(), n = s.value, r = s.done, r ? [4,
|
|
1453
|
+
return s = o.sent(), n = s.value, r = s.done, r ? [4, G(void 0)] : [3, 5];
|
|
1454
1454
|
case 4:
|
|
1455
1455
|
return [2, o.sent()];
|
|
1456
1456
|
case 5:
|
|
1457
|
-
return [4,
|
|
1457
|
+
return [4, G(n)];
|
|
1458
1458
|
case 6:
|
|
1459
1459
|
return [4, o.sent()];
|
|
1460
1460
|
case 7:
|
|
@@ -1472,7 +1472,7 @@ function Ci(i) {
|
|
|
1472
1472
|
function Ei(i) {
|
|
1473
1473
|
return $(i == null ? void 0 : i.getReader);
|
|
1474
1474
|
}
|
|
1475
|
-
function
|
|
1475
|
+
function J(i) {
|
|
1476
1476
|
if (i instanceof _)
|
|
1477
1477
|
return i;
|
|
1478
1478
|
if (i != null) {
|
|
@@ -1519,7 +1519,7 @@ function Zs(i) {
|
|
|
1519
1519
|
return new _(function(t) {
|
|
1520
1520
|
var e, s;
|
|
1521
1521
|
try {
|
|
1522
|
-
for (var n =
|
|
1522
|
+
for (var n = V(i), r = n.next(); !r.done; r = n.next()) {
|
|
1523
1523
|
var o = r.value;
|
|
1524
1524
|
if (t.next(o), t.closed)
|
|
1525
1525
|
return;
|
|
@@ -1617,10 +1617,10 @@ function Pi(i, t) {
|
|
|
1617
1617
|
});
|
|
1618
1618
|
}
|
|
1619
1619
|
function Xs(i, t) {
|
|
1620
|
-
return
|
|
1620
|
+
return J(i).pipe(Pi(t), Ti(t));
|
|
1621
1621
|
}
|
|
1622
1622
|
function Qs(i, t) {
|
|
1623
|
-
return
|
|
1623
|
+
return J(i).pipe(Pi(t), Ti(t));
|
|
1624
1624
|
}
|
|
1625
1625
|
function Js(i, t) {
|
|
1626
1626
|
return new _(function(e) {
|
|
@@ -1684,7 +1684,7 @@ function sn(i, t) {
|
|
|
1684
1684
|
throw Si(i);
|
|
1685
1685
|
}
|
|
1686
1686
|
function nn(i, t) {
|
|
1687
|
-
return t ? sn(i, t) :
|
|
1687
|
+
return t ? sn(i, t) : J(i);
|
|
1688
1688
|
}
|
|
1689
1689
|
function rn(i, t) {
|
|
1690
1690
|
return Lt(function(e, s) {
|
|
@@ -1702,19 +1702,19 @@ function on(i, t, e, s, n, r, o, a) {
|
|
|
1702
1702
|
}, v = function(g) {
|
|
1703
1703
|
c++;
|
|
1704
1704
|
var gt = !1;
|
|
1705
|
-
|
|
1706
|
-
t.next(
|
|
1705
|
+
J(e(g, u++)).subscribe(At(t, function(tt) {
|
|
1706
|
+
t.next(tt);
|
|
1707
1707
|
}, function() {
|
|
1708
1708
|
gt = !0;
|
|
1709
1709
|
}, void 0, function() {
|
|
1710
1710
|
if (gt)
|
|
1711
1711
|
try {
|
|
1712
1712
|
c--;
|
|
1713
|
-
for (var
|
|
1713
|
+
for (var tt = function() {
|
|
1714
1714
|
var jt = l.shift();
|
|
1715
1715
|
o || v(jt);
|
|
1716
1716
|
}; l.length && c < s; )
|
|
1717
|
-
|
|
1717
|
+
tt();
|
|
1718
1718
|
d();
|
|
1719
1719
|
} catch (jt) {
|
|
1720
1720
|
t.error(jt);
|
|
@@ -1730,7 +1730,7 @@ function Li(i, t, e) {
|
|
|
1730
1730
|
return e === void 0 && (e = 1 / 0), $(t) ? Li(function(s, n) {
|
|
1731
1731
|
return rn(function(r, o) {
|
|
1732
1732
|
return t(s, r, n, o);
|
|
1733
|
-
})(
|
|
1733
|
+
})(J(i(s, n)));
|
|
1734
1734
|
}, e) : (typeof t == "number" && (e = t), Lt(function(s, n) {
|
|
1735
1735
|
return on(s, n, i, e);
|
|
1736
1736
|
}));
|
|
@@ -1742,7 +1742,7 @@ function ln() {
|
|
|
1742
1742
|
for (var i = [], t = 0; t < arguments.length; t++)
|
|
1743
1743
|
i[t] = arguments[t];
|
|
1744
1744
|
var e = Ds(i), s = zs(i, 1 / 0), n = i;
|
|
1745
|
-
return n.length ? n.length === 1 ?
|
|
1745
|
+
return n.length ? n.length === 1 ? J(n[0]) : an(s)(nn(n, e)) : Hs;
|
|
1746
1746
|
}
|
|
1747
1747
|
var cn = Object.defineProperty, un = (i, t, e, s) => {
|
|
1748
1748
|
for (var n = void 0, r = i.length - 1, o; r >= 0; r--)
|
|
@@ -2423,7 +2423,7 @@ function* _n(i, t) {
|
|
|
2423
2423
|
for (const s of i) yield t(s, e++);
|
|
2424
2424
|
}
|
|
2425
2425
|
}
|
|
2426
|
-
var ce = /* @__PURE__ */ ((i) => (i.Inline = "inline", i.Trigger = "trigger", i))(ce || {}),
|
|
2426
|
+
var ce = /* @__PURE__ */ ((i) => (i.Inline = "inline", i.Trigger = "trigger", i))(ce || {}), D = /* @__PURE__ */ ((i) => (i.NonAuthenticated = "non-authenticated", i.Authenticating = "authenticating", i.Authenticated = "authenticated", i.ChatEnded = "chat-ended", i))(D || {});
|
|
2427
2427
|
/**
|
|
2428
2428
|
* @license
|
|
2429
2429
|
* Copyright 2021 Google LLC
|
|
@@ -2795,22 +2795,22 @@ ye.styles = [
|
|
|
2795
2795
|
}
|
|
2796
2796
|
`
|
|
2797
2797
|
];
|
|
2798
|
-
let
|
|
2798
|
+
let X = ye;
|
|
2799
2799
|
ue([
|
|
2800
2800
|
w({ attribute: !0 })
|
|
2801
|
-
],
|
|
2801
|
+
], X.prototype, "name");
|
|
2802
2802
|
ue([
|
|
2803
2803
|
S()
|
|
2804
|
-
],
|
|
2804
|
+
], X.prototype, "widget");
|
|
2805
2805
|
ue([
|
|
2806
2806
|
S()
|
|
2807
|
-
],
|
|
2807
|
+
], X.prototype, "status");
|
|
2808
2808
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", kt);
|
|
2809
2809
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", E);
|
|
2810
2810
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Xt);
|
|
2811
2811
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", lt);
|
|
2812
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
|
2813
|
-
const
|
|
2812
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", X);
|
|
2813
|
+
const z = {
|
|
2814
2814
|
allRenderFn: !1,
|
|
2815
2815
|
cmpDidLoad: !0,
|
|
2816
2816
|
cmpDidUnload: !1,
|
|
@@ -2894,7 +2894,7 @@ const D = {
|
|
|
2894
2894
|
transformTagName: !1,
|
|
2895
2895
|
attachStyles: !0
|
|
2896
2896
|
};
|
|
2897
|
-
let
|
|
2897
|
+
let W, ji, Rt, Ni = !1, Ct = !1, he = !1, b = !1, We = null, Qt = !1;
|
|
2898
2898
|
const Ut = typeof window < "u" ? window : {}, k = Ut.document || { head: {} }, Fi = Ut.HTMLElement || class {
|
|
2899
2899
|
}, y = {
|
|
2900
2900
|
$flags$: 0,
|
|
@@ -2928,7 +2928,7 @@ const Ut = typeof window < "u" ? window : {}, k = Ut.document || { head: {} }, F
|
|
|
2928
2928
|
});
|
|
2929
2929
|
}, Ln = (i, t) => (e) => {
|
|
2930
2930
|
try {
|
|
2931
|
-
|
|
2931
|
+
z.lazyLoad || i.$hostElement$[t](e);
|
|
2932
2932
|
} catch (s) {
|
|
2933
2933
|
ft(s);
|
|
2934
2934
|
}
|
|
@@ -2951,7 +2951,7 @@ const Ut = typeof window < "u" ? window : {}, k = Ut.document || { head: {} }, F
|
|
|
2951
2951
|
}, Nn = (i) => {
|
|
2952
2952
|
const t = i.$cmpMeta$, e = i.$hostElement$, s = t.$flags$, n = F("attachStyles", t.$tagName$), r = jn(e.shadowRoot ? e.shadowRoot : e.getRootNode(), t, i.$modeName$);
|
|
2953
2953
|
s & 10 && (e["s-sc"] = r, e.classList.add(r + "-h"), s & 2 && e.classList.add(r + "-s")), n();
|
|
2954
|
-
}, Bi = (i, t) => "sc-" + (t && i.$flags$ & 32 ? i.$tagName$ + "-" + t : i.$tagName$), Fn = (i) => fr.map((t) => t(i)).find((t) => !!t), Ye = {}, Hn = "http://www.w3.org/2000/svg", Bn = "http://www.w3.org/1999/xhtml", Dn = (i) => i != null, de = (i) => (i = typeof i, i === "object" || i === "function"),
|
|
2954
|
+
}, Bi = (i, t) => "sc-" + (t && i.$flags$ & 32 ? i.$tagName$ + "-" + t : i.$tagName$), Fn = (i) => fr.map((t) => t(i)).find((t) => !!t), Ye = {}, Hn = "http://www.w3.org/2000/svg", Bn = "http://www.w3.org/1999/xhtml", Dn = (i) => i != null, de = (i) => (i = typeof i, i === "object" || i === "function"), Y = (i, t, ...e) => {
|
|
2955
2955
|
let s = null, n = null, r = null, o = !1, a = !1, l = [];
|
|
2956
2956
|
const c = (h) => {
|
|
2957
2957
|
for (let d = 0; d < h.length; d++)
|
|
@@ -2990,7 +2990,7 @@ const Ut = typeof window < "u" ? window : {}, k = Ut.document || { head: {} }, F
|
|
|
2990
2990
|
}), qn = (i) => {
|
|
2991
2991
|
if (typeof i.vtag == "function") {
|
|
2992
2992
|
const e = Object.assign({}, i.vattrs);
|
|
2993
|
-
return i.vkey && (e.key = i.vkey), i.vname && (e.name = i.vname),
|
|
2993
|
+
return i.vkey && (e.key = i.vkey), i.vname && (e.name = i.vname), Y(i.vtag, e, ...i.vchildren || []);
|
|
2994
2994
|
}
|
|
2995
2995
|
const t = Et(i.vtag, i.vtext);
|
|
2996
2996
|
return t.$attrs$ = i.vattrs, t.$children$ = i.vchildren, t.$key$ = i.vkey, t.$name$ = i.vname, t;
|
|
@@ -3034,7 +3034,7 @@ const Ut = typeof window < "u" ? window : {}, k = Ut.document || { head: {} }, F
|
|
|
3034
3034
|
Ke(n, s, r[s], o[s], e, t.$flags$);
|
|
3035
3035
|
}, Ot = (i, t, e, s) => {
|
|
3036
3036
|
let n = t.$children$[e], r = 0, o, a, l;
|
|
3037
|
-
if (Ni || (he = !0, n.$tag$ === "slot" && (
|
|
3037
|
+
if (Ni || (he = !0, n.$tag$ === "slot" && (W && s.classList.add(W + "-s"), n.$flags$ |= n.$children$ ? (
|
|
3038
3038
|
// slot element has fallback content
|
|
3039
3039
|
2
|
|
3040
3040
|
) : (
|
|
@@ -3045,7 +3045,7 @@ const Ut = typeof window < "u" ? window : {}, k = Ut.document || { head: {} }, F
|
|
|
3045
3045
|
else if (n.$flags$ & 1)
|
|
3046
3046
|
o = n.$elm$ = k.createTextNode("");
|
|
3047
3047
|
else {
|
|
3048
|
-
if (b || (b = n.$tag$ === "svg"), o = n.$elm$ = k.createElementNS(b ? Hn : Bn, n.$flags$ & 2 ? "slot-fb" : n.$tag$), b && n.$tag$ === "foreignObject" && (b = !1), Di(null, n, b), Dn(
|
|
3048
|
+
if (b || (b = n.$tag$ === "svg"), o = n.$elm$ = k.createElementNS(b ? Hn : Bn, n.$flags$ & 2 ? "slot-fb" : n.$tag$), b && n.$tag$ === "foreignObject" && (b = !1), Di(null, n, b), Dn(W) && o["s-si"] !== W && o.classList.add(o["s-si"] = W), n.$children$)
|
|
3049
3049
|
for (r = 0; r < n.$children$.length; ++r)
|
|
3050
3050
|
a = Ot(i, n, r, o), a && o.appendChild(a);
|
|
3051
3051
|
n.$tag$ === "svg" ? b = !1 : o.tagName === "foreignObject" && (b = !0);
|
|
@@ -3078,23 +3078,23 @@ const Ut = typeof window < "u" ? window : {}, k = Ut.document || { head: {} }, F
|
|
|
3078
3078
|
else if (f == null)
|
|
3079
3079
|
f = s[--h];
|
|
3080
3080
|
else if ($t(c, d))
|
|
3081
|
-
|
|
3081
|
+
q(c, d), c = t[++n], d = s[++r];
|
|
3082
3082
|
else if ($t(u, f))
|
|
3083
|
-
|
|
3083
|
+
q(u, f), u = t[--l], f = s[--h];
|
|
3084
3084
|
else if ($t(c, f))
|
|
3085
|
-
(c.$tag$ === "slot" || f.$tag$ === "slot") && ct(c.$elm$.parentNode, !1),
|
|
3085
|
+
(c.$tag$ === "slot" || f.$tag$ === "slot") && ct(c.$elm$.parentNode, !1), q(c, f), i.insertBefore(c.$elm$, u.$elm$.nextSibling), c = t[++n], f = s[--h];
|
|
3086
3086
|
else if ($t(u, d))
|
|
3087
|
-
(c.$tag$ === "slot" || f.$tag$ === "slot") && ct(u.$elm$.parentNode, !1),
|
|
3087
|
+
(c.$tag$ === "slot" || f.$tag$ === "slot") && ct(u.$elm$.parentNode, !1), q(u, d), i.insertBefore(u.$elm$, c.$elm$), u = t[--l], d = s[++r];
|
|
3088
3088
|
else {
|
|
3089
3089
|
for (o = -1, a = n; a <= l; ++a)
|
|
3090
3090
|
if (t[a] && t[a].$key$ !== null && t[a].$key$ === d.$key$) {
|
|
3091
3091
|
o = a;
|
|
3092
3092
|
break;
|
|
3093
3093
|
}
|
|
3094
|
-
o >= 0 ? (g = t[o], g.$tag$ !== d.$tag$ ? v = Ot(t && t[r], e, o, i) : (
|
|
3094
|
+
o >= 0 ? (g = t[o], g.$tag$ !== d.$tag$ ? v = Ot(t && t[r], e, o, i) : (q(g, d), t[o] = void 0, v = g.$elm$), d = s[++r]) : (v = Ot(t && t[r], e, r, i), d = s[++r]), v && qi(c.$elm$).insertBefore(v, pe(c.$elm$));
|
|
3095
3095
|
}
|
|
3096
3096
|
n > l ? zi(i, s[h + 1] == null ? null : s[h + 1].$elm$, e, s, r, h) : r > h && Wi(t, n, l);
|
|
3097
|
-
}, $t = (i, t) => i.$tag$ === t.$tag$ ? i.$tag$ === "slot" ? i.$name$ === t.$name$ : i.$key$ === t.$key$ : !1, pe = (i) => i && i["s-ol"] || i, qi = (i) => (i["s-ol"] ? i["s-ol"] : i).parentNode,
|
|
3097
|
+
}, $t = (i, t) => i.$tag$ === t.$tag$ ? i.$tag$ === "slot" ? i.$name$ === t.$name$ : i.$key$ === t.$key$ : !1, pe = (i) => i && i["s-ol"] || i, qi = (i) => (i["s-ol"] ? i["s-ol"] : i).parentNode, q = (i, t) => {
|
|
3098
3098
|
const e = t.$elm$ = i.$elm$, s = i.$children$, n = t.$children$, r = t.$tag$, o = t.$text$;
|
|
3099
3099
|
let a;
|
|
3100
3100
|
o === null ? (b = r === "svg" ? !0 : r === "foreignObject" ? !1 : b, r === "slot" || Di(i, t, b), s !== null && n !== null ? Yn(e, s, t, n) : n !== null ? (i.$text$ !== null && (e.textContent = ""), zi(e, null, t, n, 0, n.length - 1)) : s !== null && Wi(s, 0, s.length - 1), b && r === "svg" && (b = !1)) : (a = e["s-cr"]) ? a.parentNode.textContent = o : i.$text$ !== o && (e.data = o);
|
|
@@ -3134,8 +3134,8 @@ const Ut = typeof window < "u" ? window : {}, k = Ut.document || { head: {} }, F
|
|
|
3134
3134
|
}, Xe = (i, t) => i.nodeType === 1 ? i.getAttribute("slot") === null && t === "" || i.getAttribute("slot") === t : i["s-sn"] === t ? !0 : t === "", Zi = (i) => {
|
|
3135
3135
|
i.$attrs$ && i.$attrs$.ref && i.$attrs$.ref(null), i.$children$ && i.$children$.map(Zi);
|
|
3136
3136
|
}, Zn = (i, t) => {
|
|
3137
|
-
const e = i.$hostElement$, s = i.$cmpMeta$, n = i.$vnode$ || Et(null, null), r = zn(t) ? t :
|
|
3138
|
-
Rt = e.tagName, s.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, s.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = e[o])), r.$tag$ = null, r.$flags$ |= 4, i.$vnode$ = r, r.$elm$ = n.$elm$ = e.shadowRoot || e,
|
|
3137
|
+
const e = i.$hostElement$, s = i.$cmpMeta$, n = i.$vnode$ || Et(null, null), r = zn(t) ? t : Y(null, null, t);
|
|
3138
|
+
Rt = e.tagName, s.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, s.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = e[o])), r.$tag$ = null, r.$flags$ |= 4, i.$vnode$ = r, r.$elm$ = n.$elm$ = e.shadowRoot || e, W = e["s-sc"], ji = e["s-cr"], Ni = (s.$flags$ & 1) !== 0, Ct = !1, q(n, r);
|
|
3139
3139
|
{
|
|
3140
3140
|
if (y.$flags$ |= 1, he) {
|
|
3141
3141
|
Yi(r.$elm$);
|
|
@@ -3172,7 +3172,7 @@ const Ut = typeof window < "u" ? window : {}, k = Ut.document || { head: {} }, F
|
|
|
3172
3172
|
}, Ki = (i, t) => (i.$flags$ |= 16, Qn(i, i.$ancestorComponent$), vr(() => Jn(i, t))), Jn = (i, t) => {
|
|
3173
3173
|
const e = i.$hostElement$, s = F("scheduleUpdate", i.$cmpMeta$.$tagName$), n = e;
|
|
3174
3174
|
let r;
|
|
3175
|
-
return t ? r =
|
|
3175
|
+
return t ? r = Z(n, "componentWillLoad") : r = Z(n, "componentWillUpdate"), r = Qe(r, () => Z(n, "componentWillRender")), s(), Qe(r, () => tr(i, n, t));
|
|
3176
3176
|
}, tr = async (i, t, e) => {
|
|
3177
3177
|
const s = i.$hostElement$, n = F("update", i.$cmpMeta$.$tagName$);
|
|
3178
3178
|
s["s-rc"], e && Nn(i);
|
|
@@ -3180,15 +3180,15 @@ const Ut = typeof window < "u" ? window : {}, k = Ut.document || { head: {} }, F
|
|
|
3180
3180
|
er(i, t, s), r(), n(), ir(i);
|
|
3181
3181
|
}, er = (i, t, e) => {
|
|
3182
3182
|
try {
|
|
3183
|
-
We = t, t = t.render && t.render(), i.$flags$ &= -17, i.$flags$ |= 2, (
|
|
3183
|
+
We = t, t = t.render && t.render(), i.$flags$ &= -17, i.$flags$ |= 2, (z.hasRenderFn || z.reflect) && (z.vdomRender || z.reflect) && (z.hydrateServerSide || Zn(i, t));
|
|
3184
3184
|
} catch (a) {
|
|
3185
3185
|
ft(a, i.$hostElement$);
|
|
3186
3186
|
}
|
|
3187
3187
|
return We = null, null;
|
|
3188
3188
|
}, ir = (i) => {
|
|
3189
3189
|
const t = i.$cmpMeta$.$tagName$, e = i.$hostElement$, s = F("postUpdate", t), n = e;
|
|
3190
|
-
i.$ancestorComponent$,
|
|
3191
|
-
},
|
|
3190
|
+
i.$ancestorComponent$, Z(n, "componentDidRender"), i.$flags$ & 64 ? (Z(n, "componentDidUpdate"), s()) : (i.$flags$ |= 64, Z(n, "componentDidLoad"), s());
|
|
3191
|
+
}, Z = (i, t, e) => {
|
|
3192
3192
|
if (i && i[t])
|
|
3193
3193
|
try {
|
|
3194
3194
|
return i[t](e);
|
|
@@ -3355,7 +3355,7 @@ const wr = "telia-vst{display:none}", _r = /* @__PURE__ */ Vi(class extends Fi {
|
|
|
3355
3355
|
this.vocaInternalUStats.emit(new br(this.dataTrackingId));
|
|
3356
3356
|
}
|
|
3357
3357
|
render() {
|
|
3358
|
-
return
|
|
3358
|
+
return Y(fe, null);
|
|
3359
3359
|
}
|
|
3360
3360
|
static get style() {
|
|
3361
3361
|
return wr;
|
|
@@ -3414,7 +3414,7 @@ const Ar = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
|
3414
3414
|
attributes: t,
|
|
3415
3415
|
title: this.allyTitle
|
|
3416
3416
|
});
|
|
3417
|
-
return
|
|
3417
|
+
return Y(fe, { class: `telia-icon telia-icon--${this.size}` }, Y("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: e }), Y("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
|
3418
3418
|
}
|
|
3419
3419
|
static get style() {
|
|
3420
3420
|
return Ar;
|
|
@@ -3510,7 +3510,7 @@ var Ir = Object.defineProperty, pt = (i, t, e, s) => {
|
|
|
3510
3510
|
};
|
|
3511
3511
|
const ii = Ui(A), be = class be extends ii {
|
|
3512
3512
|
constructor() {
|
|
3513
|
-
super(...arguments), this.optionsIsVisible = !1, this.authState =
|
|
3513
|
+
super(...arguments), this.optionsIsVisible = !1, this.authState = D.NonAuthenticated, this.userName = "", this.authUrl = "", this.showAuthOptions = !1, this.shouldUseAuth = !1, this.options = new Pr(this), this.optionsRef = xt(), this.optionsTriggerRef = xt(), this.actions$ = new ht(), this.onClickOutside = (t) => {
|
|
3514
3514
|
!this.optionsTriggerRef.value || !this.optionsRef.value || t.composedPath().includes(this.optionsTriggerRef.value) || t.composedPath().includes(this.optionsRef.value) || (this.optionsIsVisible = !1);
|
|
3515
3515
|
}, this.onGlobalKeyDown = (t) => {
|
|
3516
3516
|
var e, s;
|
|
@@ -3564,7 +3564,7 @@ const ii = Ui(A), be = class be extends ii {
|
|
|
3564
3564
|
t.shiftKey ? r === s && (t.preventDefault(), n.focus()) : r === n && (t.preventDefault(), s.focus());
|
|
3565
3565
|
}
|
|
3566
3566
|
renderAuthSection(t) {
|
|
3567
|
-
return !this.showAuthOptions || !(this.shouldUseAuth && this.authState !==
|
|
3567
|
+
return !this.showAuthOptions || !(this.shouldUseAuth && this.authState !== D.ChatEnded) ? p : m`<div class="options-menu__auth-container">
|
|
3568
3568
|
<p class="options-menu__auth-helper-text" data-testid="auth-helper-text">
|
|
3569
3569
|
${t.getOrFallback(
|
|
3570
3570
|
"widget-header.authentication-text",
|
|
@@ -3575,7 +3575,7 @@ const ii = Ui(A), be = class be extends ii {
|
|
|
3575
3575
|
</div>`;
|
|
3576
3576
|
}
|
|
3577
3577
|
renderAuthStatus(t) {
|
|
3578
|
-
return this.authState ===
|
|
3578
|
+
return this.authState === D.NonAuthenticated ? m` <div class="options-menu__auth">
|
|
3579
3579
|
<p class="options-menu__auth-status" data-testid="auth-status">
|
|
3580
3580
|
${t.getOrFallback(
|
|
3581
3581
|
"widget-header.not-authenticated",
|
|
@@ -3604,7 +3604,7 @@ const ii = Ui(A), be = class be extends ii {
|
|
|
3604
3604
|
t && setTimeout(() => t.focus(), 0);
|
|
3605
3605
|
}
|
|
3606
3606
|
connectedCallback() {
|
|
3607
|
-
super.connectedCallback(), this.application.storage.get("authenticated") && (this.userName = this.application.storage.get("user-name") ?? "", this.authState =
|
|
3607
|
+
super.connectedCallback(), this.application.storage.get("authenticated") && (this.userName = this.application.storage.get("user-name") ?? "", this.authState = D.Authenticated, this.showAuthOptions = !0), document.addEventListener("click", this.onClickOutside), window.addEventListener("keydown", this.onGlobalKeyDown);
|
|
3608
3608
|
}
|
|
3609
3609
|
updated(t) {
|
|
3610
3610
|
super.updated(t), this.optionsIsVisible && this.optionsRef.value && this.setFocusToOptionsTitle();
|
|
@@ -3614,7 +3614,7 @@ const ii = Ui(A), be = class be extends ii {
|
|
|
3614
3614
|
}
|
|
3615
3615
|
shouldShowAuthSection() {
|
|
3616
3616
|
var e, s, n, r, o;
|
|
3617
|
-
return ((n = (s = (e = this.application.settings) == null ? void 0 : e.agentConfig) == null ? void 0 : s.virtual) == null ? void 0 : n.shouldUseBotAgent) ?? !1 ?
|
|
3617
|
+
return ((n = (s = (e = this.application.settings) == null ? void 0 : e.agentConfig) == null ? void 0 : s.virtual) == null ? void 0 : n.shouldUseBotAgent) ?? !1 ? this.authState === D.Authenticated : ((o = (r = this.application.settings) == null ? void 0 : r.auth) == null ? void 0 : o.shouldUseAuth) ?? !1;
|
|
3618
3618
|
}
|
|
3619
3619
|
render() {
|
|
3620
3620
|
var o, a, l, c;
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-components-widget-header-flamingo",
|
|
3
|
-
"version": "1.1.139
|
|
3
|
+
"version": "1.1.139",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "^3.0.2",
|
|
6
|
-
"@telia-ace/widget-core-flamingo": "1.1.139
|
|
6
|
+
"@telia-ace/widget-core-flamingo": "1.1.139",
|
|
7
7
|
"@teliads/components": "^22.1.1",
|
|
8
8
|
"@teliads/icons": "^8.4.0",
|
|
9
9
|
"@lit-labs/motion": "^1.0.8",
|