@telia-ace/widget-components-widget-header-flamingo 1.1.82-rc.9 → 1.1.82
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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-
|
|
1
|
+
"use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-BIVRFqo5.js")))};module.exports=r;
|
package/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-components-widget-header-flamingo",
|
|
3
|
-
"version": "1.1.82
|
|
3
|
+
"version": "1.1.82",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "^3.0.2",
|
|
6
|
-
"@telia-ace/widget-core-flamingo": "1.1.82
|
|
6
|
+
"@telia-ace/widget-core-flamingo": "1.1.82",
|
|
7
7
|
"@teliads/components": "^22.1.1",
|
|
8
8
|
"@teliads/icons": "^8.4.0",
|
|
9
9
|
"@lit-labs/motion": "^1.0.6",
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
* @license
|
|
285
285
|
* Copyright 2017 Google LLC
|
|
286
286
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
287
|
-
*/function Es({context:i}){return(t,e)=>{const n=new WeakMap;if(typeof e=="object")return e.addInitializer(function(){n.set(this,new De(this,{context:i}))}),{get(){return t.get.call(this)},set(s){var r;return(r=n.get(this))==null||r.setValue(s),t.set.call(this,s)},init(s){var r;return(r=n.get(this))==null||r.setValue(s),s}};{t.constructor.addInitializer(o=>{n.set(o,new De(o,{context:i}))});const s=Object.getOwnPropertyDescriptor(t,e);let r;if(s===void 0){const o=new WeakMap;r={get(){return o.get(this)},set(a){n.get(this).setValue(a),o.set(this,a)},configurable:!0,enumerable:!0}}else{const o=s.set;r={...s,set(a){n.get(this).setValue(a),o==null||o.call(this,a)}}}return void Object.defineProperty(t,e,r)}}}var Os=Object.defineProperty,Bi=(i,t,e,n)=>{for(var s=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(s=o(t,e,s)||s);return s&&Os(t,e,s),s};const Ts="application",ve=class ve extends S{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=_t(),this.
|
|
287
|
+
*/function Es({context:i}){return(t,e)=>{const n=new WeakMap;if(typeof e=="object")return e.addInitializer(function(){n.set(this,new De(this,{context:i}))}),{get(){return t.get.call(this)},set(s){var r;return(r=n.get(this))==null||r.setValue(s),t.set.call(this,s)},init(s){var r;return(r=n.get(this))==null||r.setValue(s),s}};{t.constructor.addInitializer(o=>{n.set(o,new De(o,{context:i}))});const s=Object.getOwnPropertyDescriptor(t,e);let r;if(s===void 0){const o=new WeakMap;r={get(){return o.get(this)},set(a){n.get(this).setValue(a),o.set(this,a)},configurable:!0,enumerable:!0}}else{const o=s.set;r={...s,set(a){n.get(this).setValue(a),o==null||o.call(this,a)}}}return void Object.defineProperty(t,e,r)}}}var Os=Object.defineProperty,Bi=(i,t,e,n)=>{for(var s=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(s=o(t,e,s)||s);return s&&Os(t,e,s),s};const Ts="application",ve=class ve extends S{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=_t(),this.fullscreen=!1}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&ji(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([n,s])=>{e.style.setProperty(`--${n}`,s)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var n,s;const t=this.application.settings.components.conversation;return((s=(n=t==null?void 0:t.properties)==null?void 0:n.chat)==null?void 0:s.isThirdPartyWidget)?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===st.Trigger&&(this.renderRoot.host.classList.add("floating"),this.application.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.application.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right")),this.application.fullscreen&&this.renderRoot.host.classList.add("fullscreen"),window.self!==window.top&&this.renderRoot.host.classList.add("embedded"),b`<div class="widget-container" ${wt(this.wrapperRef)}>
|
|
288
288
|
${Ss(this.nodes,r=>r)}
|
|
289
289
|
</div>`}};ve.styles=j`
|
|
290
290
|
:host {
|
|
@@ -331,14 +331,14 @@
|
|
|
331
331
|
position: fixed;
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
-
:host(.
|
|
334
|
+
:host(.fullscreen.floating) {
|
|
335
335
|
inset: 0 !important;
|
|
336
336
|
height: 100% !important;
|
|
337
337
|
width: auto !important;
|
|
338
338
|
max-height: none !important;
|
|
339
339
|
}
|
|
340
340
|
|
|
341
|
-
:host(.
|
|
341
|
+
:host(.fullscreen.floating) .widget-container {
|
|
342
342
|
box-shadow: none !important;
|
|
343
343
|
border-radius: 0 !important;
|
|
344
344
|
}
|
|
@@ -433,11 +433,16 @@
|
|
|
433
433
|
animation: slideDown 0.3s linear;
|
|
434
434
|
pointer-events: none;
|
|
435
435
|
}
|
|
436
|
-
|
|
436
|
+
|
|
437
|
+
:host(.hidden.embedded),
|
|
438
|
+
:host(.expanded.embedded) {
|
|
439
|
+
animation: none;
|
|
440
|
+
}
|
|
441
|
+
`;let rt=ve;Bi([_({attribute:!0})],rt.prototype,"fullscreen");Bi([_({attribute:!1}),Es({context:Ts})],rt.prototype,"application");const Ct=class Ct{constructor(t=Ct.endpoint){this._endpoint=t}async getSite(t){const n=await(await fetch(t)).json();return n?{id:n.id,triggers:n.triggers||[],apps:(n.widgets||[]).map(s=>{let r=st.Trigger;s.renderStrategy.toLowerCase()==="inline"&&(r=st.Inline);const o=s.widgetId?s.widgetId:s.id,a=typeof s.autoActivate=="boolean"?s.autoActivate:!1,l=typeof s.anchor=="string"?s.anchor:"BottomRight",c=typeof s.triggerIcon=="string"?s.triggerIcon:"question";return{id:o,widgetId:o,renderStrategy:r,autoActivate:a,anchor:l,triggerIcon:{type:"Telia",content:c}}})}:null}async getWidget(t){const n=await(await fetch(`${this._endpoint}/widget/${t}`)).json();return n?{name:n.name,config:JSON.parse(n.configuration)}:null}};Ct.endpoint="https://widgets.ace.teliacompany.net/api";let Fe=Ct;var Ps=Object.defineProperty,ce=(i,t,e,n)=>{for(var s=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(s=o(t,e,s)||s);return s&&Ps(t,e,s),s};const me=class me extends S{constructor(){super(),this.status="deactivated",this.addEventListener("environment-created",this.onEnvironmentCreated)}async connectedCallback(){super.connectedCallback(),await this.getGlobalEnvironment()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("environment-created",this.onEnvironmentCreated)}async onEnvironmentCreated(t){this.widget=t.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const t=globalThis.widgets;t&&(this.widget=t.applications.find(e=>e.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return p;if(this.widget.renderStrategy===st.Trigger){const t=new C;return t.application=this.widget,t}return this.widget.render()}};me.styles=[j`
|
|
437
442
|
:host {
|
|
438
443
|
display: block;
|
|
439
444
|
}
|
|
440
|
-
`];let G=me;ce([_({attribute:!0})],G.prototype,"name");ce([N()],G.prototype,"widget");ce([N()],G.prototype,"status");customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",yt);customElements.get("ace-trigger")||customElements.define("ace-trigger",C);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Qt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",rt);customElements.get("ace-widget")||customElements.define("ace-widget",G);const Is=()=>"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>(+i^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+i/4).toString(16)),Ls=()=>typeof crypto.randomUUID=="function"?crypto.randomUUID():Is();class Rs{constructor(t,e,n,s,r,o,a=!0){this.label=t,this.icon=e,this.onClick=n,this.closeOnClick=s,this.key=r,this.update=new Tt,this.id=Ls(),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 Us{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 Rs(t.label,t.icon,t.onClick,t.closeOnClick,t.key,this);return this._options.push(e),this.handleUpdate(),e}removeOption(t){this._options=this._options.filter(e=>e.id!==t.id)}handleUpdate(){this._subscription&&this._subscription.unsubscribe();const t=this._options.map(e=>e.subscribe());this._subscription=Bn(t).subscribe(()=>{this._host.requestUpdate()})}set options(t){this._options=t,this._host.requestUpdate()}get options(){return this._options}hasOptions(){return this._options.length>0}}const H={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,Hi,It,zi=!1,xt=!1,he=!1,y=!1,We=null,Jt=!1;const Lt=typeof window<"u"?window:{},A=Lt.document||{head:{}},Di=Lt.HTMLElement||class{},m={$flags$:0,$resourcesUrl$:"",jmp:i=>i(),raf:i=>requestAnimationFrame(i),ael:(i,t,e,n)=>i.addEventListener(t,e,n),rel:(i,t,e,n)=>i.removeEventListener(t,e,n),ce:(i,t)=>new CustomEvent(i,t)},Ms=(()=>{let i=!1;try{A.addEventListener("e",null,Object.defineProperty({},"passive",{get(){i=!0}}))}catch{}return i})(),js=i=>Promise.resolve(i),Ns=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),Fi=(i,t,e,n)=>{e&&e.map(([s,r,o])=>{const a=Hs(i,s),l=Bs(t,o),c=zs(s);m.ael(a,r,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>m.rel(a,r,l,c))})},Bs=(i,t)=>e=>{try{H.lazyLoad||i.$hostElement$[t](e)}catch(n){ht(n)}},Hs=(i,t)=>t&4?A:t&8?Lt:t&16?A.body:i,zs=i=>Ms?{passive:(i&1)!==0,capture:(i&2)!==0}:(i&2)!==0,Ye="http://www.w3.org/1999/xlink",M=(i,t="")=>()=>{},qe=new WeakMap,Ds=(i,t,e)=>{let n=kt.get(i);Ns&&e?(n=n||new CSSStyleSheet,n.replace(t)):n=t,kt.set(i,n)},Fs=(i,t,e,n)=>{let s=Wi(t,e),r=kt.get(s);if(i=i.nodeType===11?i:A,r)if(typeof r=="string"){i=i.head||i;let o=qe.get(i),a;o||qe.set(i,o=new Set),o.has(s)||(a=A.createElement("style"),a.innerHTML=r,i.insertBefore(a,i.querySelector("link")),o&&o.add(s))}else i.adoptedStyleSheets.includes(r)||(i.adoptedStyleSheets=[...i.adoptedStyleSheets,r]);return s},Ws=i=>{const t=i.$cmpMeta$,e=i.$hostElement$,n=t.$flags$,s=M("attachStyles",t.$tagName$),r=Fs(e.shadowRoot?e.shadowRoot:e.getRootNode(),t,i.$modeName$);n&10&&(e["s-sc"]=r,e.classList.add(r+"-h"),n&2&&e.classList.add(r+"-s")),s()},Wi=(i,t)=>"sc-"+(t&&i.$flags$&32?i.$tagName$+"-"+t:i.$tagName$),Ys=i=>yr.map(t=>t(i)).find(t=>!!t),Ze={},qs="http://www.w3.org/2000/svg",Zs="http://www.w3.org/1999/xhtml",Gs=i=>i!=null,ue=i=>(i=typeof i,i==="object"||i==="function"),W=(i,t,...e)=>{let n=null,s=null,r=null,o=!1,a=!1,l=[];const c=u=>{for(let d=0;d<u.length;d++)n=u[d],Array.isArray(n)?c(n):n!=null&&typeof n!="boolean"&&((o=typeof i!="function"&&!ue(n))&&(n=String(n)),o&&a?l[l.length-1].$text$+=n:l.push(o?St(null,n):n),a=o)};if(c(e),t){t.key&&(s=t.key),t.name&&(r=t.name);{const u=t.className||t.class;u&&(t.class=typeof u!="object"?u:Object.keys(u).filter(d=>u[d]).join(" "))}}if(typeof i=="function")return i(t===null?{}:t,l,Xs);const h=St(i,null);return h.$attrs$=t,l.length>0&&(h.$children$=l),h.$key$=s,h.$name$=r,h},St=(i,t)=>{const e={$flags$:0,$tag$:i,$text$:t,$elm$:null,$children$:null};return e.$attrs$=null,e.$key$=null,e.$name$=null,e},de={},Ks=i=>i&&i.$tag$===de,Xs={forEach:(i,t)=>i.map(Ge).forEach(t),map:(i,t)=>i.map(Ge).map(t).map(Qs)},Ge=i=>({vattrs:i.$attrs$,vchildren:i.$children$,vkey:i.$key$,vname:i.$name$,vtag:i.$tag$,vtext:i.$text$}),Qs=i=>{if(typeof i.vtag=="function"){const e=Object.assign({},i.vattrs);return i.vkey&&(e.key=i.vkey),i.vname&&(e.name=i.vname),W(i.vtag,e,...i.vchildren||[])}const t=St(i.vtag,i.vtext);return t.$attrs$=i.vattrs,t.$children$=i.vchildren,t.$key$=i.vkey,t.$name$=i.vname,t},Ke=(i,t,e,n,s,r)=>{if(e!==n){let o=Ve(i,t),a=t.toLowerCase();if(t==="class"){const l=i.classList,c=Xe(e),h=Xe(n);l.remove(...c.filter(u=>u&&!h.includes(u))),l.add(...h.filter(u=>u&&!c.includes(u)))}else if(t==="style"){for(const l in e)(!n||n[l]==null)&&(l.includes("-")?i.style.removeProperty(l):i.style[l]="");for(const l in n)(!e||n[l]!==e[l])&&(l.includes("-")?i.style.setProperty(l,n[l]):i.style[l]=n[l])}else if(t!=="key")if(t==="ref")n&&n(i);else if(!i.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):Ve(Lt,a)?t=a.slice(2):t=a[2]+t.slice(3),e&&m.rel(i,t,e,!1),n&&m.ael(i,t,n,!1);else{const l=ue(n);if((o||l&&n!==null)&&!s)try{if(i.tagName.includes("-"))i[t]=n;else{let h=n??"";t==="list"?o=!1:(e==null||i[t]!=h)&&(i[t]=h)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),n==null||n===!1?(n!==!1||i.getAttribute(t)==="")&&(c?i.removeAttributeNS(Ye,t):i.removeAttribute(t)):(!o||r&4||s)&&!l&&(n=n===!0?"":n,c?i.setAttributeNS(Ye,t,n):i.setAttribute(t,n))}}},Js=/\s/,Xe=i=>i?i.split(Js):[],Yi=(i,t,e,n)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=i&&i.$attrs$||Ze,o=t.$attrs$||Ze;for(n in r)n in o||Ke(s,n,r[n],void 0,e,t.$flags$);for(n in o)Ke(s,n,r[n],o[n],e,t.$flags$)},At=(i,t,e,n)=>{let s=t.$children$[e],r=0,o,a,l;if(zi||(he=!0,s.$tag$==="slot"&&(z&&n.classList.add(z+"-s"),s.$flags$|=s.$children$?2:1)),s.$text$!==null)o=s.$elm$=A.createTextNode(s.$text$);else if(s.$flags$&1)o=s.$elm$=A.createTextNode("");else{if(y||(y=s.$tag$==="svg"),o=s.$elm$=A.createElementNS(y?qs:Zs,s.$flags$&2?"slot-fb":s.$tag$),y&&s.$tag$==="foreignObject"&&(y=!1),Yi(null,s,y),Gs(z)&&o["s-si"]!==z&&o.classList.add(o["s-si"]=z),s.$children$)for(r=0;r<s.$children$.length;++r)a=At(i,s,r,o),a&&o.appendChild(a);s.$tag$==="svg"?y=!1:o.tagName==="foreignObject"&&(y=!0)}return o["s-hn"]=It,s.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=Hi,o["s-sn"]=s.$name$||"",l=i&&i.$children$&&i.$children$[e],l&&l.$tag$===s.$tag$&&i.$elm$&&ot(i.$elm$,!1)),o},ot=(i,t)=>{m.$flags$|=1;const e=i.childNodes;for(let n=e.length-1;n>=0;n--){const s=e[n];s["s-hn"]!==It&&s["s-ol"]&&(Gi(s).insertBefore(s,fe(s)),s["s-ol"].remove(),s["s-ol"]=void 0,he=!0),t&&ot(s,t)}m.$flags$&=-2},qi=(i,t,e,n,s,r)=>{let o=i["s-cr"]&&i["s-cr"].parentNode||i,a;for(o.shadowRoot&&o.tagName===It&&(o=o.shadowRoot);s<=r;++s)n[s]&&(a=At(null,e,s,i),a&&(n[s].$elm$=a,o.insertBefore(a,fe(t))))},Zi=(i,t,e,n,s)=>{for(;t<=e;++t)(n=i[t])&&(s=n.$elm$,Qi(n),xt=!0,s["s-ol"]?s["s-ol"].remove():ot(s,!0),s.remove())},Vs=(i,t,e,n)=>{let s=0,r=0,o=0,a=0,l=t.length-1,c=t[0],h=t[l],u=n.length-1,d=n[0],f=n[u],$,g;for(;s<=l&&r<=u;)if(c==null)c=t[++s];else if(h==null)h=t[--l];else if(d==null)d=n[++r];else if(f==null)f=n[--u];else if(ft(c,d))D(c,d),c=t[++s],d=n[++r];else if(ft(h,f))D(h,f),h=t[--l],f=n[--u];else if(ft(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&ot(c.$elm$.parentNode,!1),D(c,f),i.insertBefore(c.$elm$,h.$elm$.nextSibling),c=t[++s],f=n[--u];else if(ft(h,d))(c.$tag$==="slot"||f.$tag$==="slot")&&ot(h.$elm$.parentNode,!1),D(h,d),i.insertBefore(h.$elm$,c.$elm$),h=t[--l],d=n[++r];else{for(o=-1,a=s;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===d.$key$){o=a;break}o>=0?(g=t[o],g.$tag$!==d.$tag$?$=At(t&&t[r],e,o,i):(D(g,d),t[o]=void 0,$=g.$elm$),d=n[++r]):($=At(t&&t[r],e,r,i),d=n[++r]),$&&Gi(c.$elm$).insertBefore($,fe(c.$elm$))}s>l?qi(i,n[u+1]==null?null:n[u+1].$elm$,e,n,r,u):r>u&&Zi(t,s,l)},ft=(i,t)=>i.$tag$===t.$tag$?i.$tag$==="slot"?i.$name$===t.$name$:i.$key$===t.$key$:!1,fe=i=>i&&i["s-ol"]||i,Gi=i=>(i["s-ol"]?i["s-ol"]:i).parentNode,D=(i,t)=>{const e=t.$elm$=i.$elm$,n=i.$children$,s=t.$children$,r=t.$tag$,o=t.$text$;let a;o===null?(y=r==="svg"?!0:r==="foreignObject"?!1:y,r==="slot"||Yi(i,t,y),n!==null&&s!==null?Vs(e,n,t,s):s!==null?(i.$text$!==null&&(e.textContent=""),qi(e,null,t,s,0,s.length-1)):n!==null&&Zi(n,0,n.length-1),y&&r==="svg"&&(y=!1)):(a=e["s-cr"])?a.parentNode.textContent=o:i.$text$!==o&&(e.data=o)},Ki=i=>{let t=i.childNodes,e,n,s,r,o,a;for(n=0,s=t.length;n<s;n++)if(e=t[n],e.nodeType===1){if(e["s-sr"]){for(o=e["s-sn"],e.hidden=!1,r=0;r<s;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}}Ki(e)}},x=[],Xi=i=>{let t,e,n,s,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(n=e.parentNode.childNodes,s=t["s-sn"],o=n.length-1;o>=0;o--)e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"]&&(Qe(e,s)?(r=x.find(h=>h.$nodeToRelocate$===e),xt=!0,e["s-sn"]=e["s-sn"]||s,r?r.$slotRefNode$=t:x.push({$slotRefNode$:t,$nodeToRelocate$:e}),e["s-sr"]&&x.map(h=>{Qe(h.$nodeToRelocate$,e["s-sn"])&&(r=x.find(u=>u.$nodeToRelocate$===e),r&&!h.$slotRefNode$&&(h.$slotRefNode$=r.$slotRefNode$))})):x.some(h=>h.$nodeToRelocate$===e)||x.push({$nodeToRelocate$:e}));t.nodeType===1&&Xi(t)}},Qe=(i,t)=>i.nodeType===1?i.getAttribute("slot")===null&&t===""||i.getAttribute("slot")===t:i["s-sn"]===t?!0:t==="",Qi=i=>{i.$attrs$&&i.$attrs$.ref&&i.$attrs$.ref(null),i.$children$&&i.$children$.map(Qi)},tr=(i,t)=>{const e=i.$hostElement$,n=i.$cmpMeta$,s=i.$vnode$||St(null,null),r=Ks(t)?t:W(null,null,t);It=e.tagName,n.$attrsToReflect$&&(r.$attrs$=r.$attrs$||{},n.$attrsToReflect$.map(([o,a])=>r.$attrs$[a]=e[o])),r.$tag$=null,r.$flags$|=4,i.$vnode$=r,r.$elm$=s.$elm$=e.shadowRoot||e,z=e["s-sc"],Hi=e["s-cr"],zi=(n.$flags$&1)!==0,xt=!1,D(s,r);{if(m.$flags$|=1,he){Xi(r.$elm$);let o,a,l,c,h,u,d=0;for(;d<x.length;d++)o=x[d],a=o.$nodeToRelocate$,a["s-ol"]||(l=A.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,h=o.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(u=l["s-nr"],u&&u["s-sn"]===a["s-sn"]&&c===u.parentNode&&(u=u.nextSibling,!u||!u["s-nr"])){h=u;break}(!h&&c!==a.parentNode||a.nextSibling!==h)&&a!==h&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,h))}else a.nodeType===1&&(a.hidden=!0)}xt&&Ki(r.$elm$),m.$flags$&=-2,x.length=0}},er=i=>i,ir=(i,t,e)=>{const n=er(i);return{emit:s=>nr(n,t,{bubbles:!!(e&4),composed:!!(e&2),cancelable:!!(e&1),detail:s})}},nr=(i,t,e)=>{const n=m.ce(t,e);return i.dispatchEvent(n),n},sr=(i,t)=>{},Ji=(i,t)=>(i.$flags$|=16,sr(i,i.$ancestorComponent$),wr(()=>rr(i,t))),rr=(i,t)=>{const e=i.$hostElement$,n=M("scheduleUpdate",i.$cmpMeta$.$tagName$),s=e;let r;return t?r=Y(s,"componentWillLoad"):r=Y(s,"componentWillUpdate"),r=Je(r,()=>Y(s,"componentWillRender")),n(),Je(r,()=>or(i,s,t))},or=async(i,t,e)=>{const n=i.$hostElement$,s=M("update",i.$cmpMeta$.$tagName$);n["s-rc"],e&&Ws(i);const r=M("render",i.$cmpMeta$.$tagName$);ar(i,t,n),r(),s(),lr(i)},ar=(i,t,e)=>{try{We=t,t=t.render&&t.render(),i.$flags$&=-17,i.$flags$|=2,(H.hasRenderFn||H.reflect)&&(H.vdomRender||H.reflect)&&(H.hydrateServerSide||tr(i,t))}catch(a){ht(a,i.$hostElement$)}return We=null,null},lr=i=>{const t=i.$cmpMeta$.$tagName$,e=i.$hostElement$,n=M("postUpdate",t),s=e;i.$ancestorComponent$,Y(s,"componentDidRender"),i.$flags$&64?(Y(s,"componentDidUpdate"),n()):(i.$flags$|=64,Y(s,"componentDidLoad"),n())},Y=(i,t,e)=>{if(i&&i[t])try{return i[t](e)}catch(n){ht(n)}},Je=(i,t)=>i&&i.then?i.then(t):t(),cr=(i,t)=>i!=null&&!ue(i)?t&4?i==="false"?!1:i===""||!!i:t&2?parseFloat(i):t&1?String(i):i:i,hr=(i,t)=>Rt(i).$instanceValues$.get(t),ur=(i,t,e,n)=>{const s=Rt(i),r=i,o=s.$instanceValues$.get(t),a=s.$flags$,l=r;e=cr(e,n.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(e);if(e!==o&&!c){s.$instanceValues$.set(t,e);{if(n.$watchers$&&a&128){const u=n.$watchers$[t];u&&u.map(d=>{try{l[d](e,o,t)}catch(f){ht(f,r)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(e,o,t)===!1)return;Ji(s,!1)}}}},dr=(i,t,e)=>{if(t.$members$){i.watchers&&(t.$watchers$=i.watchers);const n=Object.entries(t.$members$),s=i.prototype;n.map(([r,[o]])=>{(o&31||o&32)&&Object.defineProperty(s,r,{get(){return hr(this,r)},set(a){ur(this,r,a,t)},configurable:!0,enumerable:!0})});{const r=new Map;s.attributeChangedCallback=function(o,a,l){m.jmp(()=>{const c=r.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(s.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},i.observedAttributes=n.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},fr=async(i,t,e,n,s)=>{if(!(t.$flags$&32)&&(s=i.constructor,t.$flags$|=32,customElements.whenDefined(e.$tagName$).then(()=>t.$flags$|=128),s.style)){let o=s.style;typeof o!="string"&&(o=o[t.$modeName$=Ys(i)]);const a=Wi(e,t.$modeName$);if(!kt.has(a)){const l=M("registerStyles",e.$tagName$);Ds(a,o,!!(e.$flags$&1)),l()}}t.$ancestorComponent$,Ji(t,!0)},pr=i=>{},gr=i=>{if(!(m.$flags$&1)){const t=Rt(i),e=t.$cmpMeta$,n=M("connectedCallback",e.$tagName$);t.$flags$&1?(Fi(i,t,e.$listeners$),pr(t.$lazyInstance$)):(t.$flags$|=1,e.$flags$&12&&$r(i),e.$members$&&Object.entries(e.$members$).map(([s,[r]])=>{if(r&31&&i.hasOwnProperty(s)){const o=i[s];delete i[s],i[s]=o}}),fr(i,t,e)),n()}},$r=i=>{const t=i["s-cr"]=A.createComment("");t["s-cn"]=!0,i.insertBefore(t,i.firstChild)},vr=i=>{if(!(m.$flags$&1)){const t=Rt(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 n=i.prototype.connectedCallback,s=i.prototype.disconnectedCallback;return Object.assign(i.prototype,{__registerHost(){mr(this,e)},connectedCallback(){gr(this),n&&n.call(this)},disconnectedCallback(){vr(this),s&&s.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(e.$flags$&16)})}}),i.is=e.$tagName$,dr(i,e)},tn=new WeakMap,Rt=i=>tn.get(i),mr=(i,t)=>{const e={$flags$:0,$hostElement$:i,$cmpMeta$:t,$instanceValues$:new Map};return Fi(i,e,t.$listeners$),tn.set(i,e)},Ve=(i,t)=>t in i,ht=(i,t)=>(0,console.error)(i,t),kt=new Map,yr=[],ti=[],en=[],br=(i,t)=>e=>{i.push(e),Jt||(Jt=!0,t&&m.$flags$&4?_r(Vt):m.raf(Vt))},ei=i=>{for(let t=0;t<i.length;t++)try{i[t](performance.now())}catch(e){ht(e)}i.length=0},Vt=()=>{ei(ti),ei(en),(Jt=ti.length>0)&&m.raf(Vt)},_r=i=>js().then(i),wr=br(en,!0),xr=(i={})=>{const{content:t="",title:e,attributes:n=[]}=i;let s="",r=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...n];return e&&(s=`<title>${e}</title>`),`<svg ${r.map(a=>`${a.name}="${a.value}"`).join(" ")}>${s}${t}</svg>`},Sr=i=>i.replace(/<(\/?)svg([^>]*)>/g,"").trim();function Ar(i){return`${i.getFullYear()}.${i.getMonth()+1}`}class kr{constructor(t){this.voca_component=t,this.voca_added=Ar(new Date)}}const Cr="telia-vst{display:none}",Er=Vi(class extends Di{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=ir(this,"vocaInternalUStats",7)}connectedCallback(){this.vocaInternalUStats.emit(new kr(this.dataTrackingId))}render(){return W(de,null)}static get style(){return Cr}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function nn(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,Er);break}})}nn();function te(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function Or(){if(typeof te().vocadsIcons!==void 0)return te().vocadsIcons}function Tr(){return te().vocadsIconsRegistered}const Pr=".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))}",Ir=Vi(class extends Di{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(Tr()&&this.name){const i=Or();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=xr({content:Sr(i),attributes:t,title:this.allyTitle});return W(de,{class:`telia-icon telia-icon--${this.size}`},W("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:e}),W("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return Pr}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function Lr(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,Ir);break;case"telia-vst":customElements.get(t)||nn();break}})}Lr();var Rr=Object.defineProperty,Ur=(i,t,e,n)=>{for(var s=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(s=o(t,e,s)||s);return s&&Rr(t,e,s),s};const ii=Ni(S),ye=class ye extends ii{constructor(){super(...arguments),this.optionsIsVisible=!1,this.options=new Us(this),this.optionsRef=_t(),this.optionsTriggerRef=_t(),this._onClickOutside=t=>{!this.optionsTriggerRef.value||!this.optionsRef.value||t.composedPath().includes(this.optionsTriggerRef.value)||t.composedPath().includes(this.optionsRef.value)||(this.optionsIsVisible=!1)}}addOption(t){return this.options.addOption(t)}removeOption(t){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})}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e},"*")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._onClickOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onClickOutside)}render(){var a,l,c;const t=this.application.branding(),e=(a=t==null?void 0:t.graphics)==null?void 0:a.logotype,n=this.application.texts,s=n.get("widget-header.header","ACE Widget"),r=this.application.settings.components.conversation,o=(c=(l=r==null?void 0:r.properties)==null?void 0:l.chat)==null?void 0:c.isThirdPartyWidget;return b` <div class="widget-header">
|
|
445
|
+
`];let G=me;ce([_({attribute:!0})],G.prototype,"name");ce([N()],G.prototype,"widget");ce([N()],G.prototype,"status");customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",yt);customElements.get("ace-trigger")||customElements.define("ace-trigger",C);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Qt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",rt);customElements.get("ace-widget")||customElements.define("ace-widget",G);const Is=()=>"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>(+i^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+i/4).toString(16)),Ls=()=>typeof crypto.randomUUID=="function"?crypto.randomUUID():Is();class Rs{constructor(t,e,n,s,r,o,a=!0){this.label=t,this.icon=e,this.onClick=n,this.closeOnClick=s,this.key=r,this.update=new Tt,this.id=Ls(),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 Us{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 Rs(t.label,t.icon,t.onClick,t.closeOnClick,t.key,this);return this._options.push(e),this.handleUpdate(),e}removeOption(t){this._options=this._options.filter(e=>e.id!==t.id)}handleUpdate(){this._subscription&&this._subscription.unsubscribe();const t=this._options.map(e=>e.subscribe());this._subscription=Bn(t).subscribe(()=>{this._host.requestUpdate()})}set options(t){this._options=t,this._host.requestUpdate()}get options(){return this._options}hasOptions(){return this._options.length>0}}const H={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,Hi,It,zi=!1,xt=!1,he=!1,y=!1,We=null,Jt=!1;const Lt=typeof window<"u"?window:{},A=Lt.document||{head:{}},Di=Lt.HTMLElement||class{},m={$flags$:0,$resourcesUrl$:"",jmp:i=>i(),raf:i=>requestAnimationFrame(i),ael:(i,t,e,n)=>i.addEventListener(t,e,n),rel:(i,t,e,n)=>i.removeEventListener(t,e,n),ce:(i,t)=>new CustomEvent(i,t)},Ms=(()=>{let i=!1;try{A.addEventListener("e",null,Object.defineProperty({},"passive",{get(){i=!0}}))}catch{}return i})(),js=i=>Promise.resolve(i),Ns=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),Fi=(i,t,e,n)=>{e&&e.map(([s,r,o])=>{const a=Hs(i,s),l=Bs(t,o),c=zs(s);m.ael(a,r,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>m.rel(a,r,l,c))})},Bs=(i,t)=>e=>{try{H.lazyLoad||i.$hostElement$[t](e)}catch(n){ht(n)}},Hs=(i,t)=>t&4?A:t&8?Lt:t&16?A.body:i,zs=i=>Ms?{passive:(i&1)!==0,capture:(i&2)!==0}:(i&2)!==0,Ye="http://www.w3.org/1999/xlink",M=(i,t="")=>()=>{},qe=new WeakMap,Ds=(i,t,e)=>{let n=kt.get(i);Ns&&e?(n=n||new CSSStyleSheet,n.replace(t)):n=t,kt.set(i,n)},Fs=(i,t,e,n)=>{let s=Wi(t,e),r=kt.get(s);if(i=i.nodeType===11?i:A,r)if(typeof r=="string"){i=i.head||i;let o=qe.get(i),a;o||qe.set(i,o=new Set),o.has(s)||(a=A.createElement("style"),a.innerHTML=r,i.insertBefore(a,i.querySelector("link")),o&&o.add(s))}else i.adoptedStyleSheets.includes(r)||(i.adoptedStyleSheets=[...i.adoptedStyleSheets,r]);return s},Ws=i=>{const t=i.$cmpMeta$,e=i.$hostElement$,n=t.$flags$,s=M("attachStyles",t.$tagName$),r=Fs(e.shadowRoot?e.shadowRoot:e.getRootNode(),t,i.$modeName$);n&10&&(e["s-sc"]=r,e.classList.add(r+"-h"),n&2&&e.classList.add(r+"-s")),s()},Wi=(i,t)=>"sc-"+(t&&i.$flags$&32?i.$tagName$+"-"+t:i.$tagName$),Ys=i=>yr.map(t=>t(i)).find(t=>!!t),Ze={},qs="http://www.w3.org/2000/svg",Zs="http://www.w3.org/1999/xhtml",Gs=i=>i!=null,ue=i=>(i=typeof i,i==="object"||i==="function"),W=(i,t,...e)=>{let n=null,s=null,r=null,o=!1,a=!1,l=[];const c=u=>{for(let d=0;d<u.length;d++)n=u[d],Array.isArray(n)?c(n):n!=null&&typeof n!="boolean"&&((o=typeof i!="function"&&!ue(n))&&(n=String(n)),o&&a?l[l.length-1].$text$+=n:l.push(o?St(null,n):n),a=o)};if(c(e),t){t.key&&(s=t.key),t.name&&(r=t.name);{const u=t.className||t.class;u&&(t.class=typeof u!="object"?u:Object.keys(u).filter(d=>u[d]).join(" "))}}if(typeof i=="function")return i(t===null?{}:t,l,Xs);const h=St(i,null);return h.$attrs$=t,l.length>0&&(h.$children$=l),h.$key$=s,h.$name$=r,h},St=(i,t)=>{const e={$flags$:0,$tag$:i,$text$:t,$elm$:null,$children$:null};return e.$attrs$=null,e.$key$=null,e.$name$=null,e},de={},Ks=i=>i&&i.$tag$===de,Xs={forEach:(i,t)=>i.map(Ge).forEach(t),map:(i,t)=>i.map(Ge).map(t).map(Qs)},Ge=i=>({vattrs:i.$attrs$,vchildren:i.$children$,vkey:i.$key$,vname:i.$name$,vtag:i.$tag$,vtext:i.$text$}),Qs=i=>{if(typeof i.vtag=="function"){const e=Object.assign({},i.vattrs);return i.vkey&&(e.key=i.vkey),i.vname&&(e.name=i.vname),W(i.vtag,e,...i.vchildren||[])}const t=St(i.vtag,i.vtext);return t.$attrs$=i.vattrs,t.$children$=i.vchildren,t.$key$=i.vkey,t.$name$=i.vname,t},Ke=(i,t,e,n,s,r)=>{if(e!==n){let o=Ve(i,t),a=t.toLowerCase();if(t==="class"){const l=i.classList,c=Xe(e),h=Xe(n);l.remove(...c.filter(u=>u&&!h.includes(u))),l.add(...h.filter(u=>u&&!c.includes(u)))}else if(t==="style"){for(const l in e)(!n||n[l]==null)&&(l.includes("-")?i.style.removeProperty(l):i.style[l]="");for(const l in n)(!e||n[l]!==e[l])&&(l.includes("-")?i.style.setProperty(l,n[l]):i.style[l]=n[l])}else if(t!=="key")if(t==="ref")n&&n(i);else if(!i.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):Ve(Lt,a)?t=a.slice(2):t=a[2]+t.slice(3),e&&m.rel(i,t,e,!1),n&&m.ael(i,t,n,!1);else{const l=ue(n);if((o||l&&n!==null)&&!s)try{if(i.tagName.includes("-"))i[t]=n;else{let h=n??"";t==="list"?o=!1:(e==null||i[t]!=h)&&(i[t]=h)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),n==null||n===!1?(n!==!1||i.getAttribute(t)==="")&&(c?i.removeAttributeNS(Ye,t):i.removeAttribute(t)):(!o||r&4||s)&&!l&&(n=n===!0?"":n,c?i.setAttributeNS(Ye,t,n):i.setAttribute(t,n))}}},Js=/\s/,Xe=i=>i?i.split(Js):[],Yi=(i,t,e,n)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=i&&i.$attrs$||Ze,o=t.$attrs$||Ze;for(n in r)n in o||Ke(s,n,r[n],void 0,e,t.$flags$);for(n in o)Ke(s,n,r[n],o[n],e,t.$flags$)},At=(i,t,e,n)=>{let s=t.$children$[e],r=0,o,a,l;if(zi||(he=!0,s.$tag$==="slot"&&(z&&n.classList.add(z+"-s"),s.$flags$|=s.$children$?2:1)),s.$text$!==null)o=s.$elm$=A.createTextNode(s.$text$);else if(s.$flags$&1)o=s.$elm$=A.createTextNode("");else{if(y||(y=s.$tag$==="svg"),o=s.$elm$=A.createElementNS(y?qs:Zs,s.$flags$&2?"slot-fb":s.$tag$),y&&s.$tag$==="foreignObject"&&(y=!1),Yi(null,s,y),Gs(z)&&o["s-si"]!==z&&o.classList.add(o["s-si"]=z),s.$children$)for(r=0;r<s.$children$.length;++r)a=At(i,s,r,o),a&&o.appendChild(a);s.$tag$==="svg"?y=!1:o.tagName==="foreignObject"&&(y=!0)}return o["s-hn"]=It,s.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=Hi,o["s-sn"]=s.$name$||"",l=i&&i.$children$&&i.$children$[e],l&&l.$tag$===s.$tag$&&i.$elm$&&ot(i.$elm$,!1)),o},ot=(i,t)=>{m.$flags$|=1;const e=i.childNodes;for(let n=e.length-1;n>=0;n--){const s=e[n];s["s-hn"]!==It&&s["s-ol"]&&(Gi(s).insertBefore(s,fe(s)),s["s-ol"].remove(),s["s-ol"]=void 0,he=!0),t&&ot(s,t)}m.$flags$&=-2},qi=(i,t,e,n,s,r)=>{let o=i["s-cr"]&&i["s-cr"].parentNode||i,a;for(o.shadowRoot&&o.tagName===It&&(o=o.shadowRoot);s<=r;++s)n[s]&&(a=At(null,e,s,i),a&&(n[s].$elm$=a,o.insertBefore(a,fe(t))))},Zi=(i,t,e,n,s)=>{for(;t<=e;++t)(n=i[t])&&(s=n.$elm$,Qi(n),xt=!0,s["s-ol"]?s["s-ol"].remove():ot(s,!0),s.remove())},Vs=(i,t,e,n)=>{let s=0,r=0,o=0,a=0,l=t.length-1,c=t[0],h=t[l],u=n.length-1,d=n[0],f=n[u],$,g;for(;s<=l&&r<=u;)if(c==null)c=t[++s];else if(h==null)h=t[--l];else if(d==null)d=n[++r];else if(f==null)f=n[--u];else if(ft(c,d))D(c,d),c=t[++s],d=n[++r];else if(ft(h,f))D(h,f),h=t[--l],f=n[--u];else if(ft(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&ot(c.$elm$.parentNode,!1),D(c,f),i.insertBefore(c.$elm$,h.$elm$.nextSibling),c=t[++s],f=n[--u];else if(ft(h,d))(c.$tag$==="slot"||f.$tag$==="slot")&&ot(h.$elm$.parentNode,!1),D(h,d),i.insertBefore(h.$elm$,c.$elm$),h=t[--l],d=n[++r];else{for(o=-1,a=s;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===d.$key$){o=a;break}o>=0?(g=t[o],g.$tag$!==d.$tag$?$=At(t&&t[r],e,o,i):(D(g,d),t[o]=void 0,$=g.$elm$),d=n[++r]):($=At(t&&t[r],e,r,i),d=n[++r]),$&&Gi(c.$elm$).insertBefore($,fe(c.$elm$))}s>l?qi(i,n[u+1]==null?null:n[u+1].$elm$,e,n,r,u):r>u&&Zi(t,s,l)},ft=(i,t)=>i.$tag$===t.$tag$?i.$tag$==="slot"?i.$name$===t.$name$:i.$key$===t.$key$:!1,fe=i=>i&&i["s-ol"]||i,Gi=i=>(i["s-ol"]?i["s-ol"]:i).parentNode,D=(i,t)=>{const e=t.$elm$=i.$elm$,n=i.$children$,s=t.$children$,r=t.$tag$,o=t.$text$;let a;o===null?(y=r==="svg"?!0:r==="foreignObject"?!1:y,r==="slot"||Yi(i,t,y),n!==null&&s!==null?Vs(e,n,t,s):s!==null?(i.$text$!==null&&(e.textContent=""),qi(e,null,t,s,0,s.length-1)):n!==null&&Zi(n,0,n.length-1),y&&r==="svg"&&(y=!1)):(a=e["s-cr"])?a.parentNode.textContent=o:i.$text$!==o&&(e.data=o)},Ki=i=>{let t=i.childNodes,e,n,s,r,o,a;for(n=0,s=t.length;n<s;n++)if(e=t[n],e.nodeType===1){if(e["s-sr"]){for(o=e["s-sn"],e.hidden=!1,r=0;r<s;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}}Ki(e)}},x=[],Xi=i=>{let t,e,n,s,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(n=e.parentNode.childNodes,s=t["s-sn"],o=n.length-1;o>=0;o--)e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"]&&(Qe(e,s)?(r=x.find(h=>h.$nodeToRelocate$===e),xt=!0,e["s-sn"]=e["s-sn"]||s,r?r.$slotRefNode$=t:x.push({$slotRefNode$:t,$nodeToRelocate$:e}),e["s-sr"]&&x.map(h=>{Qe(h.$nodeToRelocate$,e["s-sn"])&&(r=x.find(u=>u.$nodeToRelocate$===e),r&&!h.$slotRefNode$&&(h.$slotRefNode$=r.$slotRefNode$))})):x.some(h=>h.$nodeToRelocate$===e)||x.push({$nodeToRelocate$:e}));t.nodeType===1&&Xi(t)}},Qe=(i,t)=>i.nodeType===1?i.getAttribute("slot")===null&&t===""||i.getAttribute("slot")===t:i["s-sn"]===t?!0:t==="",Qi=i=>{i.$attrs$&&i.$attrs$.ref&&i.$attrs$.ref(null),i.$children$&&i.$children$.map(Qi)},tr=(i,t)=>{const e=i.$hostElement$,n=i.$cmpMeta$,s=i.$vnode$||St(null,null),r=Ks(t)?t:W(null,null,t);It=e.tagName,n.$attrsToReflect$&&(r.$attrs$=r.$attrs$||{},n.$attrsToReflect$.map(([o,a])=>r.$attrs$[a]=e[o])),r.$tag$=null,r.$flags$|=4,i.$vnode$=r,r.$elm$=s.$elm$=e.shadowRoot||e,z=e["s-sc"],Hi=e["s-cr"],zi=(n.$flags$&1)!==0,xt=!1,D(s,r);{if(m.$flags$|=1,he){Xi(r.$elm$);let o,a,l,c,h,u,d=0;for(;d<x.length;d++)o=x[d],a=o.$nodeToRelocate$,a["s-ol"]||(l=A.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,h=o.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(u=l["s-nr"],u&&u["s-sn"]===a["s-sn"]&&c===u.parentNode&&(u=u.nextSibling,!u||!u["s-nr"])){h=u;break}(!h&&c!==a.parentNode||a.nextSibling!==h)&&a!==h&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,h))}else a.nodeType===1&&(a.hidden=!0)}xt&&Ki(r.$elm$),m.$flags$&=-2,x.length=0}},er=i=>i,ir=(i,t,e)=>{const n=er(i);return{emit:s=>nr(n,t,{bubbles:!!(e&4),composed:!!(e&2),cancelable:!!(e&1),detail:s})}},nr=(i,t,e)=>{const n=m.ce(t,e);return i.dispatchEvent(n),n},sr=(i,t)=>{},Ji=(i,t)=>(i.$flags$|=16,sr(i,i.$ancestorComponent$),wr(()=>rr(i,t))),rr=(i,t)=>{const e=i.$hostElement$,n=M("scheduleUpdate",i.$cmpMeta$.$tagName$),s=e;let r;return t?r=Y(s,"componentWillLoad"):r=Y(s,"componentWillUpdate"),r=Je(r,()=>Y(s,"componentWillRender")),n(),Je(r,()=>or(i,s,t))},or=async(i,t,e)=>{const n=i.$hostElement$,s=M("update",i.$cmpMeta$.$tagName$);n["s-rc"],e&&Ws(i);const r=M("render",i.$cmpMeta$.$tagName$);ar(i,t,n),r(),s(),lr(i)},ar=(i,t,e)=>{try{We=t,t=t.render&&t.render(),i.$flags$&=-17,i.$flags$|=2,(H.hasRenderFn||H.reflect)&&(H.vdomRender||H.reflect)&&(H.hydrateServerSide||tr(i,t))}catch(a){ht(a,i.$hostElement$)}return We=null,null},lr=i=>{const t=i.$cmpMeta$.$tagName$,e=i.$hostElement$,n=M("postUpdate",t),s=e;i.$ancestorComponent$,Y(s,"componentDidRender"),i.$flags$&64?(Y(s,"componentDidUpdate"),n()):(i.$flags$|=64,Y(s,"componentDidLoad"),n())},Y=(i,t,e)=>{if(i&&i[t])try{return i[t](e)}catch(n){ht(n)}},Je=(i,t)=>i&&i.then?i.then(t):t(),cr=(i,t)=>i!=null&&!ue(i)?t&4?i==="false"?!1:i===""||!!i:t&2?parseFloat(i):t&1?String(i):i:i,hr=(i,t)=>Rt(i).$instanceValues$.get(t),ur=(i,t,e,n)=>{const s=Rt(i),r=i,o=s.$instanceValues$.get(t),a=s.$flags$,l=r;e=cr(e,n.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(e);if(e!==o&&!c){s.$instanceValues$.set(t,e);{if(n.$watchers$&&a&128){const u=n.$watchers$[t];u&&u.map(d=>{try{l[d](e,o,t)}catch(f){ht(f,r)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(e,o,t)===!1)return;Ji(s,!1)}}}},dr=(i,t,e)=>{if(t.$members$){i.watchers&&(t.$watchers$=i.watchers);const n=Object.entries(t.$members$),s=i.prototype;n.map(([r,[o]])=>{(o&31||o&32)&&Object.defineProperty(s,r,{get(){return hr(this,r)},set(a){ur(this,r,a,t)},configurable:!0,enumerable:!0})});{const r=new Map;s.attributeChangedCallback=function(o,a,l){m.jmp(()=>{const c=r.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(s.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},i.observedAttributes=n.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},fr=async(i,t,e,n,s)=>{if(!(t.$flags$&32)&&(s=i.constructor,t.$flags$|=32,customElements.whenDefined(e.$tagName$).then(()=>t.$flags$|=128),s.style)){let o=s.style;typeof o!="string"&&(o=o[t.$modeName$=Ys(i)]);const a=Wi(e,t.$modeName$);if(!kt.has(a)){const l=M("registerStyles",e.$tagName$);Ds(a,o,!!(e.$flags$&1)),l()}}t.$ancestorComponent$,Ji(t,!0)},pr=i=>{},gr=i=>{if(!(m.$flags$&1)){const t=Rt(i),e=t.$cmpMeta$,n=M("connectedCallback",e.$tagName$);t.$flags$&1?(Fi(i,t,e.$listeners$),pr(t.$lazyInstance$)):(t.$flags$|=1,e.$flags$&12&&$r(i),e.$members$&&Object.entries(e.$members$).map(([s,[r]])=>{if(r&31&&i.hasOwnProperty(s)){const o=i[s];delete i[s],i[s]=o}}),fr(i,t,e)),n()}},$r=i=>{const t=i["s-cr"]=A.createComment("");t["s-cn"]=!0,i.insertBefore(t,i.firstChild)},vr=i=>{if(!(m.$flags$&1)){const t=Rt(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 n=i.prototype.connectedCallback,s=i.prototype.disconnectedCallback;return Object.assign(i.prototype,{__registerHost(){mr(this,e)},connectedCallback(){gr(this),n&&n.call(this)},disconnectedCallback(){vr(this),s&&s.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(e.$flags$&16)})}}),i.is=e.$tagName$,dr(i,e)},tn=new WeakMap,Rt=i=>tn.get(i),mr=(i,t)=>{const e={$flags$:0,$hostElement$:i,$cmpMeta$:t,$instanceValues$:new Map};return Fi(i,e,t.$listeners$),tn.set(i,e)},Ve=(i,t)=>t in i,ht=(i,t)=>(0,console.error)(i,t),kt=new Map,yr=[],ti=[],en=[],br=(i,t)=>e=>{i.push(e),Jt||(Jt=!0,t&&m.$flags$&4?_r(Vt):m.raf(Vt))},ei=i=>{for(let t=0;t<i.length;t++)try{i[t](performance.now())}catch(e){ht(e)}i.length=0},Vt=()=>{ei(ti),ei(en),(Jt=ti.length>0)&&m.raf(Vt)},_r=i=>js().then(i),wr=br(en,!0),xr=(i={})=>{const{content:t="",title:e,attributes:n=[]}=i;let s="",r=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...n];return e&&(s=`<title>${e}</title>`),`<svg ${r.map(a=>`${a.name}="${a.value}"`).join(" ")}>${s}${t}</svg>`},Sr=i=>i.replace(/<(\/?)svg([^>]*)>/g,"").trim();function Ar(i){return`${i.getFullYear()}.${i.getMonth()+1}`}class kr{constructor(t){this.voca_component=t,this.voca_added=Ar(new Date)}}const Cr="telia-vst{display:none}",Er=Vi(class extends Di{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=ir(this,"vocaInternalUStats",7)}connectedCallback(){this.vocaInternalUStats.emit(new kr(this.dataTrackingId))}render(){return W(de,null)}static get style(){return Cr}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function nn(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,Er);break}})}nn();function te(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function Or(){if(typeof te().vocadsIcons!==void 0)return te().vocadsIcons}function Tr(){return te().vocadsIconsRegistered}const Pr=".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))}",Ir=Vi(class extends Di{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(Tr()&&this.name){const i=Or();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=xr({content:Sr(i),attributes:t,title:this.allyTitle});return W(de,{class:`telia-icon telia-icon--${this.size}`},W("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:e}),W("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return Pr}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function Lr(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,Ir);break;case"telia-vst":customElements.get(t)||nn();break}})}Lr();var Rr=Object.defineProperty,Ur=(i,t,e,n)=>{for(var s=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(s=o(t,e,s)||s);return s&&Rr(t,e,s),s};const ii=Ni(S),ye=class ye extends ii{constructor(){super(...arguments),this.optionsIsVisible=!1,this.options=new Us(this),this.optionsRef=_t(),this.optionsTriggerRef=_t(),this._onClickOutside=t=>{!this.optionsTriggerRef.value||!this.optionsRef.value||t.composedPath().includes(this.optionsTriggerRef.value)||t.composedPath().includes(this.optionsRef.value)||(this.optionsIsVisible=!1)}}addOption(t){return this.options.addOption(t)}removeOption(t){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},"*")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._onClickOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onClickOutside)}render(){var a,l,c;const t=this.application.branding(),e=(a=t==null?void 0:t.graphics)==null?void 0:a.logotype,n=this.application.texts,s=n.get("widget-header.header","ACE Widget"),r=this.application.settings.components.conversation,o=(c=(l=r==null?void 0:r.properties)==null?void 0:l.chat)==null?void 0:c.isThirdPartyWidget;return b` <div class="widget-header">
|
|
441
446
|
${e?b` <img
|
|
442
447
|
src=${e}
|
|
443
448
|
class="logotype"
|
|
@@ -2555,7 +2555,7 @@ var Os = Object.defineProperty, Bi = (i, t, e, n) => {
|
|
|
2555
2555
|
};
|
|
2556
2556
|
const Ts = "application", ve = class ve extends S {
|
|
2557
2557
|
constructor() {
|
|
2558
|
-
super(...arguments), this.nodes = [], this.wrapperRef = bt(), this.
|
|
2558
|
+
super(...arguments), this.nodes = [], this.wrapperRef = bt(), this.fullscreen = !1;
|
|
2559
2559
|
}
|
|
2560
2560
|
addChild(t) {
|
|
2561
2561
|
t.parent = this, this.nodes.push(t);
|
|
@@ -2580,7 +2580,7 @@ const Ts = "application", ve = class ve extends S {
|
|
|
2580
2580
|
render() {
|
|
2581
2581
|
var n, s;
|
|
2582
2582
|
const t = this.application.settings.components.conversation;
|
|
2583
|
-
return ((s = (n = t == null ? void 0 : t.properties) == null ? void 0 : n.chat) == null ? void 0 : s.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === st.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), this.application.
|
|
2583
|
+
return ((s = (n = t == null ? void 0 : t.properties) == null ? void 0 : n.chat) == null ? void 0 : s.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === st.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), this.application.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), b`<div class="widget-container" ${_t(this.wrapperRef)}>
|
|
2584
2584
|
${Ss(this.nodes, (r) => r)}
|
|
2585
2585
|
</div>`;
|
|
2586
2586
|
}
|
|
@@ -2630,14 +2630,14 @@ ve.styles = j`
|
|
|
2630
2630
|
position: fixed;
|
|
2631
2631
|
}
|
|
2632
2632
|
|
|
2633
|
-
:host(.
|
|
2633
|
+
:host(.fullscreen.floating) {
|
|
2634
2634
|
inset: 0 !important;
|
|
2635
2635
|
height: 100% !important;
|
|
2636
2636
|
width: auto !important;
|
|
2637
2637
|
max-height: none !important;
|
|
2638
2638
|
}
|
|
2639
2639
|
|
|
2640
|
-
:host(.
|
|
2640
|
+
:host(.fullscreen.floating) .widget-container {
|
|
2641
2641
|
box-shadow: none !important;
|
|
2642
2642
|
border-radius: 0 !important;
|
|
2643
2643
|
}
|
|
@@ -2732,11 +2732,16 @@ ve.styles = j`
|
|
|
2732
2732
|
animation: slideDown 0.3s linear;
|
|
2733
2733
|
pointer-events: none;
|
|
2734
2734
|
}
|
|
2735
|
+
|
|
2736
|
+
:host(.hidden.embedded),
|
|
2737
|
+
:host(.expanded.embedded) {
|
|
2738
|
+
animation: none;
|
|
2739
|
+
}
|
|
2735
2740
|
`;
|
|
2736
2741
|
let rt = ve;
|
|
2737
2742
|
Bi([
|
|
2738
2743
|
_({ attribute: !0 })
|
|
2739
|
-
], rt.prototype, "
|
|
2744
|
+
], rt.prototype, "fullscreen");
|
|
2740
2745
|
Bi([
|
|
2741
2746
|
_({ attribute: !1 }),
|
|
2742
2747
|
Es({ context: Ts })
|
|
@@ -3552,9 +3557,9 @@ const ii = Ni(S), ye = class ye extends ii {
|
|
|
3552
3557
|
this.optionsIsVisible = !this.optionsIsVisible;
|
|
3553
3558
|
}
|
|
3554
3559
|
_onMinimizeClick() {
|
|
3555
|
-
this.application.trigger ? this.application.trigger.toggleActive() : this.notify("widget-minimize", {
|
|
3560
|
+
this.application.trigger ? this.application.trigger.toggleActive() : (this.notify("widget-minimize", {
|
|
3556
3561
|
widgetId: this.application.id
|
|
3557
|
-
});
|
|
3562
|
+
}), this.application.storage.set("open", !1));
|
|
3558
3563
|
}
|
|
3559
3564
|
notify(t, e = {}) {
|
|
3560
3565
|
window != null && window.parent && window.parent.postMessage(
|