@telia-ace/widget-components-copyright-flamingo 1.1.82-rc.9 → 1.1.83

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.
@@ -785,7 +785,7 @@ T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[R("elementProper
785
785
  */
786
786
  const j = globalThis, G = j.trustedTypes, zt = G ? G.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, pe = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, ue = "?" + _, qe = `<${ue}>`, S = document, I = () => S.createComment(""), B = (s) => s === null || typeof s != "object" && typeof s != "function", At = Array.isArray, Ke = (s) => At(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", nt = `[
787
787
  \f\r]`, U = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Dt = /-->/g, Ft = />/g, A = RegExp(`>|${nt}(?:([^\\s"'>=/]+)(${nt}*=${nt}*(?:[^
788
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Yt = /'/g, Zt = /"/g, fe = /^(?:script|style|textarea|title)$/i, ge = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), x = ge(1), Ge = ge(2), P = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), Wt = /* @__PURE__ */ new WeakMap(), E = S.createTreeWalker(S, 129);
788
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Yt = /'/g, Zt = /"/g, fe = /^(?:script|style|textarea|title)$/i, ge = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), C = ge(1), Ge = ge(2), P = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), Wt = /* @__PURE__ */ new WeakMap(), E = S.createTreeWalker(S, 129);
789
789
  function ve(s, t) {
790
790
  if (!At(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
791
791
  return zt !== void 0 ? zt.createHTML(t) : t;
@@ -1134,7 +1134,7 @@ ai([
1134
1134
  * Copyright 2017 Google LLC
1135
1135
  * SPDX-License-Identifier: BSD-3-Clause
1136
1136
  */
1137
- const Ct = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, xt = (s) => (...t) => ({ _$litDirective$: s, values: t });
1137
+ const xt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Ct = (s) => (...t) => ({ _$litDirective$: s, values: t });
1138
1138
  let ye = class {
1139
1139
  constructor(t) {
1140
1140
  }
@@ -1192,7 +1192,7 @@ function li(s, t = !1, e = 0) {
1192
1192
  else N(this, s);
1193
1193
  }
1194
1194
  const di = (s) => {
1195
- s.type == Ct.CHILD && (s._$AP ?? (s._$AP = li), s._$AQ ?? (s._$AQ = hi));
1195
+ s.type == xt.CHILD && (s._$AP ?? (s._$AP = li), s._$AQ ?? (s._$AQ = hi));
1196
1196
  };
1197
1197
  class $e extends ye {
1198
1198
  constructor() {
@@ -1244,7 +1244,7 @@ const ct = /* @__PURE__ */ new Map(), Kt = /* @__PURE__ */ new WeakSet(), Gt = (
1244
1244
  } }, fi = { duration: 333, easing: "ease-in-out" }, gi = ["left", "top", "width", "height", "opacity", "color", "background"], Qt = /* @__PURE__ */ new WeakMap();
1245
1245
  class vi extends $e {
1246
1246
  constructor(t) {
1247
- if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === Ct.CHILD) throw Error("The `animate` directive must be used in attribute position.");
1247
+ if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === xt.CHILD) throw Error("The `animate` directive must be used in attribute position.");
1248
1248
  this.createFinished();
1249
1249
  }
1250
1250
  createFinished() {
@@ -1413,16 +1413,16 @@ class vi extends $e {
1413
1413
  this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
1414
1414
  }
1415
1415
  }
1416
- const mi = xt(vi), yi = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' };
1416
+ const mi = Ct(vi), yi = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' };
1417
1417
  /**
1418
1418
  * @license
1419
1419
  * Copyright 2018 Google LLC
1420
1420
  * SPDX-License-Identifier: BSD-3-Clause
1421
1421
  */
1422
- const te = xt(class extends ye {
1422
+ const te = Ct(class extends ye {
1423
1423
  constructor(s) {
1424
1424
  var t;
1425
- if (super(s), s.type !== Ct.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
1425
+ if (super(s), s.type !== xt.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
1426
1426
  }
1427
1427
  render(s) {
1428
1428
  return " " + Object.keys(s).filter((t) => s[t]).join(" ") + " ";
@@ -1484,7 +1484,7 @@ const te = xt(class extends ye {
1484
1484
  const we = () => new bi();
1485
1485
  class bi {
1486
1486
  }
1487
- const lt = /* @__PURE__ */ new WeakMap(), Ae = xt(class extends $e {
1487
+ const lt = /* @__PURE__ */ new WeakMap(), Ae = Ct(class extends $e {
1488
1488
  render(s) {
1489
1489
  return p;
1490
1490
  }
@@ -1559,7 +1559,7 @@ const Pt = class Pt extends m {
1559
1559
  var a, c, h;
1560
1560
  const t = (a = this.application) == null ? void 0 : a.branding(), e = (c = t == null ? void 0 : t.graphics) == null ? void 0 : c.trigger;
1561
1561
  if (e)
1562
- return x` <img src=${e} class="trigger-icon" alt="" /> `;
1562
+ return C` <img src=${e} class="trigger-icon" alt="" /> `;
1563
1563
  const i = (h = this.application) == null ? void 0 : h.triggerIcon;
1564
1564
  if (!i)
1565
1565
  return p;
@@ -1567,7 +1567,7 @@ const Pt = class Pt extends m {
1567
1567
  switch (n) {
1568
1568
  case "Telia": {
1569
1569
  const l = await r();
1570
- return l ? x`<telia-icon
1570
+ return l ? C`<telia-icon
1571
1571
  class="trigger-icon"
1572
1572
  svg=${l.svg}
1573
1573
  size="lg"
@@ -1585,14 +1585,14 @@ const Pt = class Pt extends m {
1585
1585
  }
1586
1586
  render() {
1587
1587
  var t, e, i, r;
1588
- return x`<div
1588
+ return C`<div
1589
1589
  class=${te({
1590
1590
  "trigger-container": !0,
1591
1591
  hidden: !this.triggerVisible
1592
1592
  })}
1593
1593
  ${Ae(this.containerRef)}
1594
1594
  >
1595
- ${!this.active && ((r = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && r.showButtonLabel) ? x`
1595
+ ${!this.active && ((r = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && r.showButtonLabel) ? C`
1596
1596
  <button
1597
1597
  label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
1598
1598
  class="trigger-label"
@@ -1797,12 +1797,12 @@ Y([
1797
1797
  Y([
1798
1798
  L()
1799
1799
  ], $.prototype, "icon");
1800
- var _i = Object.defineProperty, C = (s, t, e, i) => {
1800
+ var _i = Object.defineProperty, x = (s, t, e, i) => {
1801
1801
  for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
1802
1802
  (o = s[n]) && (r = o(t, e, r) || r);
1803
1803
  return r && _i(t, e, r), r;
1804
1804
  };
1805
- const Ce = (s) => {
1805
+ const xe = (s) => {
1806
1806
  const e = class e extends s {
1807
1807
  constructor() {
1808
1808
  super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
@@ -1843,24 +1843,24 @@ const Ce = (s) => {
1843
1843
  `
1844
1844
  ];
1845
1845
  let t = e;
1846
- return C([
1846
+ return x([
1847
1847
  g()
1848
- ], t.prototype, "properties"), C([
1848
+ ], t.prototype, "properties"), x([
1849
1849
  g()
1850
- ], t.prototype, "context"), C([
1850
+ ], t.prototype, "context"), x([
1851
1851
  g()
1852
- ], t.prototype, "layout"), C([
1852
+ ], t.prototype, "layout"), x([
1853
1853
  g()
1854
- ], t.prototype, "name"), C([
1854
+ ], t.prototype, "name"), x([
1855
1855
  g()
1856
- ], t.prototype, "type"), C([
1856
+ ], t.prototype, "type"), x([
1857
1857
  g({ attribute: !1 })
1858
- ], t.prototype, "application"), C([
1858
+ ], t.prototype, "application"), x([
1859
1859
  g({ attribute: !1 })
1860
1860
  ], t.prototype, "parent"), t;
1861
- }, kt = class kt extends Ce(m) {
1861
+ }, kt = class kt extends xe(m) {
1862
1862
  render() {
1863
- return x`Non resolved component`;
1863
+ return C`Non resolved component`;
1864
1864
  }
1865
1865
  };
1866
1866
  kt.styles = [
@@ -1903,7 +1903,7 @@ let Ai = class extends Event {
1903
1903
  * Copyright 2021 Google LLC
1904
1904
  * SPDX-License-Identifier: BSD-3-Clause
1905
1905
  */
1906
- class Ci {
1906
+ class xi {
1907
1907
  get value() {
1908
1908
  return this.o;
1909
1909
  }
@@ -1936,12 +1936,12 @@ class Ci {
1936
1936
  * Copyright 2021 Google LLC
1937
1937
  * SPDX-License-Identifier: BSD-3-Clause
1938
1938
  */
1939
- let xi = class extends Event {
1939
+ let Ci = class extends Event {
1940
1940
  constructor(t) {
1941
1941
  super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
1942
1942
  }
1943
1943
  };
1944
- class ee extends Ci {
1944
+ class ee extends xi {
1945
1945
  constructor(t, e, i) {
1946
1946
  var r, n;
1947
1947
  super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (o) => {
@@ -1959,7 +1959,7 @@ class ee extends Ci {
1959
1959
  this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
1960
1960
  }
1961
1961
  hostConnected() {
1962
- this.host.dispatchEvent(new xi(this.context));
1962
+ this.host.dispatchEvent(new Ci(this.context));
1963
1963
  }
1964
1964
  }
1965
1965
  /**
@@ -2004,14 +2004,14 @@ function Ei({ context: s }) {
2004
2004
  }
2005
2005
  };
2006
2006
  }
2007
- var Si = Object.defineProperty, xe = (s, t, e, i) => {
2007
+ var Si = Object.defineProperty, Ce = (s, t, e, i) => {
2008
2008
  for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
2009
2009
  (o = s[n]) && (r = o(t, e, r) || r);
2010
2010
  return r && Si(t, e, r), r;
2011
2011
  };
2012
2012
  const Pi = "application", Ot = class Ot extends m {
2013
2013
  constructor() {
2014
- super(...arguments), this.nodes = [], this.wrapperRef = we(), this.mobile = !1;
2014
+ super(...arguments), this.nodes = [], this.wrapperRef = we(), this.fullscreen = !1;
2015
2015
  }
2016
2016
  addChild(t) {
2017
2017
  t.parent = this, this.nodes.push(t);
@@ -2036,7 +2036,7 @@ const Pi = "application", Ot = class Ot extends m {
2036
2036
  render() {
2037
2037
  var i, r;
2038
2038
  const t = this.application.settings.components.conversation;
2039
- 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 === V.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.mobile && this.renderRoot.host.classList.add("mobile"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), x`<div class="widget-container" ${Ae(this.wrapperRef)}>
2039
+ 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 === V.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" ${Ae(this.wrapperRef)}>
2040
2040
  ${wi(this.nodes, (n) => n)}
2041
2041
  </div>`;
2042
2042
  }
@@ -2086,14 +2086,14 @@ Ot.styles = k`
2086
2086
  position: fixed;
2087
2087
  }
2088
2088
 
2089
- :host(.mobile.floating) {
2089
+ :host(.fullscreen.floating) {
2090
2090
  inset: 0 !important;
2091
2091
  height: 100% !important;
2092
2092
  width: auto !important;
2093
2093
  max-height: none !important;
2094
2094
  }
2095
2095
 
2096
- :host(.mobile.floating) .widget-container {
2096
+ :host(.fullscreen.floating) .widget-container {
2097
2097
  box-shadow: none !important;
2098
2098
  border-radius: 0 !important;
2099
2099
  }
@@ -2188,12 +2188,17 @@ Ot.styles = k`
2188
2188
  animation: slideDown 0.3s linear;
2189
2189
  pointer-events: none;
2190
2190
  }
2191
+
2192
+ :host(.hidden.embedded),
2193
+ :host(.expanded.embedded) {
2194
+ animation: none;
2195
+ }
2191
2196
  `;
2192
2197
  let z = Ot;
2193
- xe([
2198
+ Ce([
2194
2199
  g({ attribute: !0 })
2195
- ], z.prototype, "mobile");
2196
- xe([
2200
+ ], z.prototype, "fullscreen");
2201
+ Ce([
2197
2202
  g({ attribute: !1 }),
2198
2203
  Ei({ context: Pi })
2199
2204
  ], z.prototype, "application");
@@ -2313,10 +2318,10 @@ const Oi = Ge`
2313
2318
  <clipPath id="clip0_119_1665">
2314
2319
  <rect width="30.5068" height="32.0011" fill="white"/>
2315
2320
  </clipPath>
2316
- </defs>`, se = Ce(m), Mt = class Mt extends se {
2321
+ </defs>`, se = xe(m), Mt = class Mt extends se {
2317
2322
  render() {
2318
2323
  var e;
2319
- return (e = this.application.branding().other) != null && e.whiteLabel ? p : x` <div class="copyright">
2324
+ return (e = this.application.branding().other) != null && e.whiteLabel ? p : C` <div class="copyright">
2320
2325
  <a
2321
2326
  aria-label="Powered by Telia ACE"
2322
2327
  href="https://ace-showcase.com"
@@ -284,7 +284,7 @@
284
284
  * @license
285
285
  * Copyright 2017 Google LLC
286
286
  * SPDX-License-Identifier: BSD-3-Clause
287
- */function Ei({context:s}){return(t,e)=>{const i=new WeakMap;if(typeof e=="object")return e.addInitializer(function(){i.set(this,new ie(this,{context:s}))}),{get(){return t.get.call(this)},set(r){var n;return(n=i.get(this))==null||n.setValue(r),t.set.call(this,r)},init(r){var n;return(n=i.get(this))==null||n.setValue(r),r}};{t.constructor.addInitializer(o=>{i.set(o,new ie(o,{context:s}))});const r=Object.getOwnPropertyDescriptor(t,e);let n;if(r===void 0){const o=new WeakMap;n={get(){return o.get(this)},set(a){i.get(this).setValue(a),o.set(this,a)},configurable:!0,enumerable:!0}}else{const o=r.set;n={...r,set(a){i.get(this).setValue(a),o==null||o.call(this,a)}}}return void Object.defineProperty(t,e,n)}}}var Si=Object.defineProperty,xe=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&Si(t,e,r),r};const Pi="application",Tt=class Tt extends m{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=we(),this.mobile=!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&&_e(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===V.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.mobile&&this.renderRoot.host.classList.add("mobile"),window.self!==window.top&&this.renderRoot.host.classList.add("embedded"),x`<div class="widget-container" ${Ae(this.wrapperRef)}>
287
+ */function Ei({context:s}){return(t,e)=>{const i=new WeakMap;if(typeof e=="object")return e.addInitializer(function(){i.set(this,new ie(this,{context:s}))}),{get(){return t.get.call(this)},set(r){var n;return(n=i.get(this))==null||n.setValue(r),t.set.call(this,r)},init(r){var n;return(n=i.get(this))==null||n.setValue(r),r}};{t.constructor.addInitializer(o=>{i.set(o,new ie(o,{context:s}))});const r=Object.getOwnPropertyDescriptor(t,e);let n;if(r===void 0){const o=new WeakMap;n={get(){return o.get(this)},set(a){i.get(this).setValue(a),o.set(this,a)},configurable:!0,enumerable:!0}}else{const o=r.set;n={...r,set(a){i.get(this).setValue(a),o==null||o.call(this,a)}}}return void Object.defineProperty(t,e,n)}}}var Si=Object.defineProperty,xe=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&Si(t,e,r),r};const Pi="application",Tt=class Tt extends m{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=we(),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&&_e(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===V.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"),x`<div class="widget-container" ${Ae(this.wrapperRef)}>
288
288
  ${wi(this.nodes,n=>n)}
289
289
  </div>`}};Tt.styles=O`
290
290
  :host {
@@ -331,14 +331,14 @@
331
331
  position: fixed;
332
332
  }
333
333
 
334
- :host(.mobile.floating) {
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(.mobile.floating) .widget-container {
341
+ :host(.fullscreen.floating) .widget-container {
342
342
  box-shadow: none !important;
343
343
  border-radius: 0 !important;
344
344
  }
@@ -433,7 +433,12 @@
433
433
  animation: slideDown 0.3s linear;
434
434
  pointer-events: none;
435
435
  }
436
- `;let z=Tt;xe([g({attribute:!0})],z.prototype,"mobile");xe([g({attribute:!1}),Ei({context:Pi})],z.prototype,"application");const tt=class tt{constructor(t=tt.endpoint){this._endpoint=t}async getSite(t){const i=await(await fetch(t)).json();return i?{id:i.id,triggers:i.triggers||[],apps:(i.widgets||[]).map(r=>{let n=V.Trigger;r.renderStrategy.toLowerCase()==="inline"&&(n=V.Inline);const o=r.widgetId?r.widgetId:r.id,a=typeof r.autoActivate=="boolean"?r.autoActivate:!1,c=typeof r.anchor=="string"?r.anchor:"BottomRight",h=typeof r.triggerIcon=="string"?r.triggerIcon:"question";return{id:o,widgetId:o,renderStrategy:n,autoActivate:a,anchor:c,triggerIcon:{type:"Telia",content:h}}})}:null}async getWidget(t){const i=await(await fetch(`${this._endpoint}/widget/${t}`)).json();return i?{name:i.name,config:JSON.parse(i.configuration)}:null}};tt.endpoint="https://widgets.ace.teliacompany.net/api";let se=tt;var Oi=Object.defineProperty,St=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&Oi(t,e,r),r};const Mt=class Mt extends m{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===V.Trigger){const t=new $;return t.application=this.widget,t}return this.widget.render()}};Mt.styles=[O`
436
+
437
+ :host(.hidden.embedded),
438
+ :host(.expanded.embedded) {
439
+ animation: none;
440
+ }
441
+ `;let z=Tt;xe([g({attribute:!0})],z.prototype,"fullscreen");xe([g({attribute:!1}),Ei({context:Pi})],z.prototype,"application");const tt=class tt{constructor(t=tt.endpoint){this._endpoint=t}async getSite(t){const i=await(await fetch(t)).json();return i?{id:i.id,triggers:i.triggers||[],apps:(i.widgets||[]).map(r=>{let n=V.Trigger;r.renderStrategy.toLowerCase()==="inline"&&(n=V.Inline);const o=r.widgetId?r.widgetId:r.id,a=typeof r.autoActivate=="boolean"?r.autoActivate:!1,c=typeof r.anchor=="string"?r.anchor:"BottomRight",h=typeof r.triggerIcon=="string"?r.triggerIcon:"question";return{id:o,widgetId:o,renderStrategy:n,autoActivate:a,anchor:c,triggerIcon:{type:"Telia",content:h}}})}:null}async getWidget(t){const i=await(await fetch(`${this._endpoint}/widget/${t}`)).json();return i?{name:i.name,config:JSON.parse(i.configuration)}:null}};tt.endpoint="https://widgets.ace.teliacompany.net/api";let se=tt;var Oi=Object.defineProperty,St=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&Oi(t,e,r),r};const Mt=class Mt extends m{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===V.Trigger){const t=new $;return t.application=this.widget,t}return this.widget.render()}};Mt.styles=[O`
437
442
  :host {
438
443
  display: block;
439
444
  }
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";const o=async e=>{e.registerComponent("copyright",Promise.resolve().then(()=>require("./copyright-D_HOfnS-.js")))};module.exports=o;
1
+ "use strict";const o=async e=>{e.registerComponent("copyright",Promise.resolve().then(()=>require("./copyright-DGB-hQlb.js")))};module.exports=o;
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  const t = async (o) => {
2
- o.registerComponent("copyright", import("./copyright-C1UNVJzo.mjs"));
2
+ o.registerComponent("copyright", import("./copyright-CT76vuIZ.mjs"));
3
3
  };
4
4
  export {
5
5
  t as default
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-components-copyright-flamingo",
3
- "version": "1.1.82-rc.9",
3
+ "version": "1.1.83",
4
4
  "dependencies": {
5
5
  "lit": "^3.0.2",
6
- "@telia-ace/widget-core-flamingo": "1.1.82-rc.9"
6
+ "@telia-ace/widget-core-flamingo": "1.1.83"
7
7
  },
8
8
  "main": "./index.js",
9
9
  "module": "./index.mjs",