@telia-ace/widget-components-area-flamingo 1.1.123-rc.42 → 1.1.123-rc.43

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.
@@ -286,7 +286,7 @@
286
286
  * @license
287
287
  * Copyright 2017 Google LLC
288
288
  * SPDX-License-Identifier: BSD-3-Clause
289
- */function _i({context:s}){return(t,e)=>{const i=new WeakMap;if(typeof e=="object")return{get(){return t.get.call(this)},set(r){return i.get(this).setValue(r),t.set.call(this,r)},init(r){return i.set(this,new ee(this,{context:s,initialValue:r})),r}};{t.constructor.addInitializer((n=>{i.set(n,new ee(n,{context:s}))}));const r=Object.getOwnPropertyDescriptor(t,e);let o;if(r===void 0){const n=new WeakMap;o={get(){return n.get(this)},set(a){i.get(this).setValue(a),n.set(this,a)},configurable:!0,enumerable:!0}}else{const n=r.set;o={...r,set(a){i.get(this).setValue(a),n==null||n.call(this,a)}}}return void Object.defineProperty(t,e,o)}}}var wi=Object.defineProperty,we=(s,t,e,i)=>{for(var r=void 0,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=n(t,e,r)||r);return r&&wi(t,e,r),r};const xi="application",kt=class kt extends m{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=be(),this.fullscreen=!1,this.isReady=new fe(!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&&ye(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([i,r])=>{e.style.setProperty(`--${i}`,r)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var i,r;const t=this.application.settings.components.conversation;return((r=(i=t==null?void 0:t.properties)==null?void 0:i.chat)==null?void 0:r.isThirdPartyWidget)?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===Ct.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"),C`<div class="widget-container" ${$e(this.wrapperRef)}>
289
+ */function _i({context:s}){return(t,e)=>{const i=new WeakMap;if(typeof e=="object")return{get(){return t.get.call(this)},set(r){return i.get(this).setValue(r),t.set.call(this,r)},init(r){return i.set(this,new ee(this,{context:s,initialValue:r})),r}};{t.constructor.addInitializer((n=>{i.set(n,new ee(n,{context:s}))}));const r=Object.getOwnPropertyDescriptor(t,e);let o;if(r===void 0){const n=new WeakMap;o={get(){return n.get(this)},set(a){i.get(this).setValue(a),n.set(this,a)},configurable:!0,enumerable:!0}}else{const n=r.set;o={...r,set(a){i.get(this).setValue(a),n==null||n.call(this,a)}}}return void Object.defineProperty(t,e,o)}}}var wi=Object.defineProperty,we=(s,t,e,i)=>{for(var r=void 0,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=n(t,e,r)||r);return r&&wi(t,e,r),r};const xi="application",kt=class kt extends m{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=be(),this.fullscreen=!1,this.isReady=new fe(!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&&ye(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([i,r])=>{e.style.setProperty(`--${i}`,r)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var e,i,r;return((r=(i=(e=this.application.settings)==null?void 0:e.agentConfig)==null?void 0:i.live)==null?void 0:r.isThirdPartyWidget)??!1?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===Ct.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"),C`<div class="widget-container" ${$e(this.wrapperRef)}>
290
290
  ${he(this.nodes,o=>o)}
291
291
  </div>`}};kt.styles=k`
292
292
  :host {
@@ -2025,9 +2025,8 @@ const xi = "application", Ot = class Ot extends m {
2025
2025
  this.applyBranding(), this.applyStyles();
2026
2026
  }
2027
2027
  render() {
2028
- var i, r;
2029
- const t = this.application.settings.components.conversation;
2030
- return ((r = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === At.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"), C`<div class="widget-container" ${$e(this.wrapperRef)}>
2028
+ var e, i, r;
2029
+ return ((r = (i = (e = this.application.settings) == null ? void 0 : e.agentConfig) == null ? void 0 : i.live) == null ? void 0 : r.isThirdPartyWidget) ?? !1 ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === At.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"), C`<div class="widget-container" ${$e(this.wrapperRef)}>
2031
2030
  ${he(this.nodes, (o) => o)}
2032
2031
  </div>`;
2033
2032
  }
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";const r=async e=>{e.registerComponent("area",Promise.resolve().then(()=>require("./area-DiHzBWFy.js")))};module.exports=r;
1
+ "use strict";const r=async e=>{e.registerComponent("area",Promise.resolve().then(()=>require("./area-NHtQ70qY.js")))};module.exports=r;
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  const o = async (e) => {
2
- e.registerComponent("area", import("./area-WHH6-WM3.mjs"));
2
+ e.registerComponent("area", import("./area-w530fuPt.mjs"));
3
3
  };
4
4
  export {
5
5
  o as default
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-components-area-flamingo",
3
- "version": "1.1.123-rc.42",
3
+ "version": "1.1.123-rc.43",
4
4
  "dependencies": {
5
- "@telia-ace/widget-core-flamingo": "1.1.123-rc.42",
5
+ "@telia-ace/widget-core-flamingo": "1.1.123-rc.43",
6
6
  "lit": "^3.0.2"
7
7
  },
8
8
  "main": "./index.js",