@telia-ace/widget-components-copyright-flamingo 1.0.44 → 1.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- import { p as y, P as m, h as w, i as _, n as x, t as p, E as f, m as P, x as z, s as M } from "./index-05c309ff.mjs";
1
+ import { p as y, P as w, h as P, i as _, n as x, t as p, E as f, m as z, x as M, s as L } from "./index-907d51a9.mjs";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
6
  */
7
- const L = (o) => (t) => typeof t == "function" ? ((c, e) => (customElements.define(c, e), e))(o, t) : ((c, e) => {
7
+ const V = (o) => (t) => typeof t == "function" ? ((c, e) => (customElements.define(c, e), e))(o, t) : ((c, e) => {
8
8
  const { kind: s, elements: i } = e;
9
9
  return { kind: s, elements: i, finisher(n) {
10
10
  customElements.define(c, n);
@@ -15,7 +15,7 @@ const L = (o) => (t) => typeof t == "function" ? ((c, e) => (customElements.defi
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
17
  */
18
- const V = ({ finisher: o, descriptor: t }) => (c, e) => {
18
+ const H = ({ finisher: o, descriptor: t }) => (c, e) => {
19
19
  var s;
20
20
  if (e === void 0) {
21
21
  const i = (s = c.originalKey) !== null && s !== void 0 ? s : c.key, n = t != null ? { kind: "method", placement: "prototype", key: i, descriptor: t(c.key) } : { ...c, key: i };
@@ -48,7 +48,7 @@ let g = class extends Event {
48
48
  * Copyright 2021 Google LLC
49
49
  * SPDX-License-Identifier: BSD-3-Clause
50
50
  */
51
- let H = class {
51
+ let k = class {
52
52
  constructor(t, c, e, s) {
53
53
  var i;
54
54
  if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (n, r) => {
@@ -75,7 +75,7 @@ let H = class {
75
75
  * Copyright 2021 Google LLC
76
76
  * SPDX-License-Identifier: BSD-3-Clause
77
77
  */
78
- class k {
78
+ class D {
79
79
  constructor(t) {
80
80
  this.subscriptions = /* @__PURE__ */ new Map(), this.updateObservers = () => {
81
81
  for (const [c, { disposer: e }] of this.subscriptions)
@@ -110,12 +110,12 @@ class k {
110
110
  * Copyright 2021 Google LLC
111
111
  * SPDX-License-Identifier: BSD-3-Clause
112
112
  */
113
- class D extends Event {
113
+ class E extends Event {
114
114
  constructor(t) {
115
115
  super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
116
116
  }
117
117
  }
118
- class d extends k {
118
+ class d extends D {
119
119
  constructor(t, c, e) {
120
120
  super(c.context !== void 0 ? c.initialValue : e), this.onContextRequest = (s) => {
121
121
  const i = s.composedPath()[0];
@@ -134,7 +134,7 @@ class d extends k {
134
134
  this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
135
135
  }
136
136
  hostConnected() {
137
- this.host.dispatchEvent(new D(this.context));
137
+ this.host.dispatchEvent(new E(this.context));
138
138
  }
139
139
  }
140
140
  /**
@@ -142,17 +142,17 @@ class d extends k {
142
142
  * Copyright 2022 Google LLC
143
143
  * SPDX-License-Identifier: BSD-3-Clause
144
144
  */
145
- function E({ context: o, subscribe: t }) {
146
- return V({ finisher: (c, e) => {
145
+ function O({ context: o, subscribe: t }) {
146
+ return H({ finisher: (c, e) => {
147
147
  c.addInitializer((s) => {
148
- new H(s, { context: o, callback: (i) => {
148
+ new k(s, { context: o, callback: (i) => {
149
149
  s[e] = i;
150
150
  }, subscribe: t });
151
151
  });
152
152
  } });
153
153
  }
154
- const O = "children", $ = "descriptor", R = "container", q = "context", j = "layout", F = "properties";
155
- class I {
154
+ const $ = "children", R = "descriptor", q = "container", j = "context", F = "layout", I = "properties";
155
+ class N {
156
156
  constructor(t) {
157
157
  (this.host = t).addController(this);
158
158
  }
@@ -171,44 +171,44 @@ class I {
171
171
  return;
172
172
  const e = await y.getInstance(
173
173
  this._container
174
- ), s = new m(e).withId(
174
+ ), s = new w(e).withId(
175
175
  this._descriptor.id
176
176
  );
177
177
  await e.actions(
178
178
  s,
179
- this._descriptor.type || w()
179
+ this._descriptor.type || P()
180
180
  ).dispatch(t, c);
181
181
  }
182
182
  }
183
- const N = (o) => {
183
+ const A = (o) => {
184
184
  const t = {};
185
185
  return Object.keys(o).forEach((c) => {
186
186
  c.indexOf("css-") > -1 && (t[c] = o[c]);
187
187
  }), t;
188
- }, A = (o, t) => {
189
- const c = N(t);
188
+ }, S = (o, t) => {
189
+ const c = A(t);
190
190
  Object.entries(c).forEach(([e, s]) => {
191
191
  o.style.setProperty(e.replace("css-", ""), s);
192
192
  });
193
193
  };
194
- var S = Object.defineProperty, W = Object.getOwnPropertyDescriptor, a = (o, t, c, e) => {
195
- for (var s = e > 1 ? void 0 : e ? W(t, c) : t, i = o.length - 1, n; i >= 0; i--)
194
+ var W = Object.defineProperty, B = Object.getOwnPropertyDescriptor, a = (o, t, c, e) => {
195
+ for (var s = e > 1 ? void 0 : e ? B(t, c) : t, i = o.length - 1, n; i >= 0; i--)
196
196
  (n = o[i]) && (s = (e ? n(t, c, s) : n(s)) || s);
197
- return e && s && S(t, c, s), s;
197
+ return e && s && W(t, c, s), s;
198
198
  };
199
- const B = (o) => {
199
+ const K = (o) => {
200
200
  class t extends o {
201
201
  constructor() {
202
202
  super(...arguments), this.entry = "", this._descriptorProvider = new d(
203
203
  this,
204
- $,
204
+ R,
205
205
  void 0
206
- ), this._childrenProvider = new d(this, O, []), this._propertiesProvider = new d(this, F, {}), this._contextProvider = new d(this, q, {}), this._layoutProvider = new d(this, j, {}), this.actions = new I(this), this.context = {}, this.layout = {}, this.properties = {};
206
+ ), this._childrenProvider = new d(this, $, []), this._propertiesProvider = new d(this, I, {}), this._contextProvider = new d(this, j, {}), this._layoutProvider = new d(this, F, {}), this.actions = new N(this), this.context = {}, this.layout = {}, this.properties = {};
207
207
  }
208
208
  connectedCallback() {
209
209
  super.connectedCallback(), this.container && (this.actions.setContainer(this.container), y.getInstance(this.container).then(
210
210
  async (e) => {
211
- var i;
211
+ var i, n;
212
212
  const s = e.nodes.get(this.entry);
213
213
  if (s) {
214
214
  this._propertyChangeListener = e.events.subscribe(
@@ -227,12 +227,15 @@ const B = (o) => {
227
227
  s.id === h.node.id && this._setLayout(h.node.attributes.layout);
228
228
  }
229
229
  );
230
- const n = "default";
231
- this._unmountNode = s.mount(this.container), this._setDescriptor(f(s, n)), this._setProperties(s.attributes.properties), this._setContext(s.attributes.context), this._setLayout(this.layout);
232
- const r = s.getChildren(n).map((l) => f(l));
233
- this._childrenProvider.setValue(r);
234
- const b = (await this.container.getAsync("componentResolver")).getComponent(
235
- ((i = this.descriptor) == null ? void 0 : i.type) || ""
230
+ const r = "default";
231
+ this._unmountNode = s.mount(this.container), this._setDescriptor(f(s, r)), this._setProperties(s.attributes.properties), this._setContext(s.attributes.context), this._setLayout(this.layout);
232
+ const v = s.getChildren(r).map((l) => f(l));
233
+ this._childrenProvider.setValue(v);
234
+ const m = await this.container.getAsync("componentResolver");
235
+ if (((i = this.descriptor) == null ? void 0 : i.type) === "area")
236
+ return;
237
+ const b = m.getComponent(
238
+ ((n = this.descriptor) == null ? void 0 : n.type) || ""
236
239
  );
237
240
  b.then && b.then((l) => {
238
241
  this.component = l.default;
@@ -245,10 +248,10 @@ const B = (o) => {
245
248
  super.disconnectedCallback(), this._propertyChangeListener && this._propertyChangeListener(), this._contextChangeListener && this._contextChangeListener(), this._layoutChangeListener && this._layoutChangeListener(), this._unmountNode && this._unmountNode();
246
249
  }
247
250
  updated() {
248
- this.container && this.actions.setContainer(this.container), P(this.context, this.renderRoot.host), this.renderRoot.host.style.setProperty(
251
+ this.container && this.actions.setContainer(this.container), z(this.context, this.renderRoot.host), this.renderRoot.host.style.setProperty(
249
252
  "--width",
250
253
  this.layout.size === "full" ? "var(--columns, 1)" : `min(${this.layout.size || "var(--columns)"}, var(--columns))`
251
- ), A(this.renderRoot.host, this.properties);
254
+ ), S(this.renderRoot.host, this.properties);
252
255
  }
253
256
  _setProperties(e) {
254
257
  this._propertiesProvider.setValue(e), this.properties = e;
@@ -279,7 +282,7 @@ const B = (o) => {
279
282
  }
280
283
  `
281
284
  ], a([
282
- E({ context: R }),
285
+ O({ context: q }),
283
286
  x({ attribute: !1 })
284
287
  ], t.prototype, "container", 2), a([
285
288
  x()
@@ -295,15 +298,15 @@ const B = (o) => {
295
298
  p()
296
299
  ], t.prototype, "properties", 2), t;
297
300
  };
298
- var K = Object.defineProperty, T = Object.getOwnPropertyDescriptor, U = (o, t, c, e) => {
299
- for (var s = e > 1 ? void 0 : e ? T(t, c) : t, i = o.length - 1, n; i >= 0; i--)
301
+ var T = Object.defineProperty, U = Object.getOwnPropertyDescriptor, G = (o, t, c, e) => {
302
+ for (var s = e > 1 ? void 0 : e ? U(t, c) : t, i = o.length - 1, n; i >= 0; i--)
300
303
  (n = o[i]) && (s = (e ? n(t, c, s) : n(s)) || s);
301
- return e && s && K(t, c, s), s;
304
+ return e && s && T(t, c, s), s;
302
305
  };
303
- const C = B(M);
306
+ const C = K(L);
304
307
  let u = class extends C {
305
308
  render() {
306
- return z` <div class="copyright">
309
+ return M` <div class="copyright">
307
310
  <a
308
311
  aria-label="Powered by Telia ACE"
309
312
  href="https://ace-showcase.com/marketplace/ace-knowledge/"
@@ -445,11 +448,11 @@ u.styles = [
445
448
  }
446
449
  `
447
450
  ];
448
- u = U([
449
- L("ace-copyright")
451
+ u = G([
452
+ V("ace-copyright")
450
453
  ], u);
451
- const X = u;
454
+ const Y = u;
452
455
  export {
453
456
  u as CopyrightComponent,
454
- X as default
457
+ Y as default
455
458
  };
@@ -1,12 +1,12 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-b92cb33c.js");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-a7cd3ca6.js");/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const f=i=>t=>typeof t=="function"?((c,e)=>(customElements.define(c,e),e))(i,t):((c,e)=>{const{kind:s,elements:o}=e;return{kind:s,elements:o,finisher(n){customElements.define(c,n)}}})(i,t);/**
5
+ */const y=i=>t=>typeof t=="function"?((c,e)=>(customElements.define(c,e),e))(i,t):((c,e)=>{const{kind:s,elements:o}=e;return{kind:s,elements:o,finisher(n){customElements.define(c,n)}}})(i,t);/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const y=({finisher:i,descriptor:t})=>(c,e)=>{var s;if(e===void 0){const o=(s=c.originalKey)!==null&&s!==void 0?s:c.key,n=t!=null?{kind:"method",placement:"prototype",key:o,descriptor:t(c.key)}:{...c,key:o};return i!=null&&(n.finisher=function(h){i(h,o)}),n}{const o=c.constructor;t!==void 0&&Object.defineProperty(c,e,t(e)),i==null||i(o,e)}};/**
9
+ */const C=({finisher:i,descriptor:t})=>(c,e)=>{var s;if(e===void 0){const o=(s=c.originalKey)!==null&&s!==void 0?s:c.key,n=t!=null?{kind:"method",placement:"prototype",key:o,descriptor:t(c.key)}:{...c,key:o};return i!=null&&(n.finisher=function(h){i(h,o)}),n}{const o=c.constructor;t!==void 0&&Object.defineProperty(c,e,t(e)),i==null||i(o,e)}};/**
10
10
  * @license
11
11
  * Copyright 2021 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
@@ -18,19 +18,19 @@
18
18
  * @license
19
19
  * Copyright 2021 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */let C=class{constructor(t,c,e,s){var o;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(n,h)=>{this.unsubscribe&&(this.unsubscribe!==h&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=n,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(n,h)),this.unsubscribe=h},this.host=t,c.context!==void 0){const n=c;this.context=n.context,this.callback=n.callback,this.subscribe=(o=n.subscribe)!==null&&o!==void 0&&o}else this.context=c,this.callback=e,this.subscribe=s!=null&&s;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new b(this.context,this.t,this.subscribe))}};/**
21
+ */let g=class{constructor(t,c,e,s){var o;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(n,h)=>{this.unsubscribe&&(this.unsubscribe!==h&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=n,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(n,h)),this.unsubscribe=h},this.host=t,c.context!==void 0){const n=c;this.context=n.context,this.callback=n.callback,this.subscribe=(o=n.subscribe)!==null&&o!==void 0&&o}else this.context=c,this.callback=e,this.subscribe=s!=null&&s;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new b(this.context,this.t,this.subscribe))}};/**
22
22
  * @license
23
23
  * Copyright 2021 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */class g{constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[c,{disposer:e}]of this.subscriptions)c(this.o,e)},t!==void 0&&(this.value=t)}get value(){return this.o}set value(t){this.setValue(t)}setValue(t,c=!1){const e=c||!Object.is(t,this.o);this.o=t,e&&this.updateObservers()}addCallback(t,c,e){if(!e)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:c});const{disposer:s}=this.subscriptions.get(t);t(this.value,s)}clearCallbacks(){this.subscriptions.clear()}}/**
25
+ */class _{constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[c,{disposer:e}]of this.subscriptions)c(this.o,e)},t!==void 0&&(this.value=t)}get value(){return this.o}set value(t){this.setValue(t)}setValue(t,c=!1){const e=c||!Object.is(t,this.o);this.o=t,e&&this.updateObservers()}addCallback(t,c,e){if(!e)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:c});const{disposer:s}=this.subscriptions.get(t);t(this.value,s)}clearCallbacks(){this.subscriptions.clear()}}/**
26
26
  * @license
27
27
  * Copyright 2021 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
29
- */class _ extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}}class d extends g{constructor(t,c,e){super(c.context!==void 0?c.initialValue:e),this.onContextRequest=s=>{const o=s.composedPath()[0];s.context===this.context&&o!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,o,s.subscribe))},this.onProviderRequest=s=>{const o=s.composedPath()[0];if(s.context!==this.context||o===this.host)return;const n=new Set;for(const[h,{consumerHost:u}]of this.subscriptions)n.has(h)||(n.add(h),u.dispatchEvent(new b(this.context,h,!0)));s.stopPropagation()},this.host=t,c.context!==void 0?this.context=c.context:this.context=c,this.attachListeners(),this.host.addController(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new _(this.context))}}/**
29
+ */class m extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}}class d extends _{constructor(t,c,e){super(c.context!==void 0?c.initialValue:e),this.onContextRequest=s=>{const o=s.composedPath()[0];s.context===this.context&&o!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,o,s.subscribe))},this.onProviderRequest=s=>{const o=s.composedPath()[0];if(s.context!==this.context||o===this.host)return;const n=new Set;for(const[h,{consumerHost:u}]of this.subscriptions)n.has(h)||(n.add(h),u.dispatchEvent(new b(this.context,h,!0)));s.stopPropagation()},this.host=t,c.context!==void 0?this.context=c.context:this.context=c,this.attachListeners(),this.host.addController(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new m(this.context))}}/**
30
30
  * @license
31
31
  * Copyright 2022 Google LLC
32
32
  * SPDX-License-Identifier: BSD-3-Clause
33
- */function m({context:i,subscribe:t}){return y({finisher:(c,e)=>{c.addInitializer(s=>{new C(s,{context:i,callback:o=>{s[e]=o},subscribe:t})})}})}const w="children",P="descriptor",z="container",M="context",L="layout",V="properties";class H{constructor(t){(this.host=t).addController(this)}hostConnected(){}hostDisconnected(){}setDescriptor(t){this._descriptor=t}setContainer(t){this._container=t}async dispatch(t,c){if(!this._container||!this._descriptor)return;const e=await r.pt.getInstance(this._container),s=new r.P(e).withId(this._descriptor.id);await e.actions(s,this._descriptor.type||r.ht()).dispatch(t,c)}}const k=i=>{const t={};return Object.keys(i).forEach(c=>{c.indexOf("css-")>-1&&(t[c]=i[c])}),t},D=(i,t)=>{const c=k(t);Object.entries(c).forEach(([e,s])=>{i.style.setProperty(e.replace("css-",""),s)})};var O=Object.defineProperty,E=Object.getOwnPropertyDescriptor,l=(i,t,c,e)=>{for(var s=e>1?void 0:e?E(t,c):t,o=i.length-1,n;o>=0;o--)(n=i[o])&&(s=(e?n(t,c,s):n(s))||s);return e&&s&&O(t,c,s),s};const q=i=>{class t extends i{constructor(){super(...arguments),this.entry="",this._descriptorProvider=new d(this,P,void 0),this._childrenProvider=new d(this,w,[]),this._propertiesProvider=new d(this,V,{}),this._contextProvider=new d(this,M,{}),this._layoutProvider=new d(this,L,{}),this.actions=new H(this),this.context={},this.layout={},this.properties={}}connectedCallback(){super.connectedCallback(),this.container&&(this.actions.setContainer(this.container),r.pt.getInstance(this.container).then(async e=>{var o;const s=e.nodes.get(this.entry);if(s){this._propertyChangeListener=e.events.subscribe("components:properties-changed",(p,a)=>{s.id===a.node.id&&this._setProperties(a.node.attributes.properties)}),this._contextChangeListener=e.events.subscribe("components:context-changed",(p,a)=>{s.id===a.node.id&&this._setContext(a.node.attributes.context)}),this._layoutChangeListener=e.events.subscribe("components:layout-changed",(p,a)=>{s.id===a.node.id&&this._setLayout(a.node.attributes.layout)});const n="default";this._unmountNode=s.mount(this.container),this._setDescriptor(r.Et(s,n)),this._setProperties(s.attributes.properties),this._setContext(s.attributes.context),this._setLayout(this.layout);const h=s.getChildren(n).map(p=>r.Et(p));this._childrenProvider.setValue(h);const v=(await this.container.getAsync("componentResolver")).getComponent(((o=this.descriptor)==null?void 0:o.type)||"");v.then&&v.then(p=>{this.component=p.default})}}))}disconnectedCallback(){super.disconnectedCallback(),this._propertyChangeListener&&this._propertyChangeListener(),this._contextChangeListener&&this._contextChangeListener(),this._layoutChangeListener&&this._layoutChangeListener(),this._unmountNode&&this._unmountNode()}updated(){this.container&&this.actions.setContainer(this.container),r.mapBranding(this.context,this.renderRoot.host),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`),D(this.renderRoot.host,this.properties)}_setProperties(e){this._propertiesProvider.setValue(e),this.properties=e}_setContext(e){this._contextProvider.setValue(e),this.context=e}_setLayout(e){this._layoutProvider.setValue(e),this.layout=e}_setDescriptor(e){this.descriptor=e,this._descriptorProvider.setValue(e),this.actions.setDescriptor(e)}}return t.styles=[i.styles??[],r.i`
33
+ */function w({context:i,subscribe:t}){return C({finisher:(c,e)=>{c.addInitializer(s=>{new g(s,{context:i,callback:o=>{s[e]=o},subscribe:t})})}})}const P="children",z="descriptor",M="container",L="context",V="layout",H="properties";class k{constructor(t){(this.host=t).addController(this)}hostConnected(){}hostDisconnected(){}setDescriptor(t){this._descriptor=t}setContainer(t){this._container=t}async dispatch(t,c){if(!this._container||!this._descriptor)return;const e=await r.pt.getInstance(this._container),s=new r.P(e).withId(this._descriptor.id);await e.actions(s,this._descriptor.type||r.ht()).dispatch(t,c)}}const D=i=>{const t={};return Object.keys(i).forEach(c=>{c.indexOf("css-")>-1&&(t[c]=i[c])}),t},O=(i,t)=>{const c=D(t);Object.entries(c).forEach(([e,s])=>{i.style.setProperty(e.replace("css-",""),s)})};var E=Object.defineProperty,q=Object.getOwnPropertyDescriptor,p=(i,t,c,e)=>{for(var s=e>1?void 0:e?q(t,c):t,o=i.length-1,n;o>=0;o--)(n=i[o])&&(s=(e?n(t,c,s):n(s))||s);return e&&s&&E(t,c,s),s};const R=i=>{class t extends i{constructor(){super(...arguments),this.entry="",this._descriptorProvider=new d(this,z,void 0),this._childrenProvider=new d(this,P,[]),this._propertiesProvider=new d(this,H,{}),this._contextProvider=new d(this,L,{}),this._layoutProvider=new d(this,V,{}),this.actions=new k(this),this.context={},this.layout={},this.properties={}}connectedCallback(){super.connectedCallback(),this.container&&(this.actions.setContainer(this.container),r.pt.getInstance(this.container).then(async e=>{var o,n;const s=e.nodes.get(this.entry);if(s){this._propertyChangeListener=e.events.subscribe("components:properties-changed",(l,a)=>{s.id===a.node.id&&this._setProperties(a.node.attributes.properties)}),this._contextChangeListener=e.events.subscribe("components:context-changed",(l,a)=>{s.id===a.node.id&&this._setContext(a.node.attributes.context)}),this._layoutChangeListener=e.events.subscribe("components:layout-changed",(l,a)=>{s.id===a.node.id&&this._setLayout(a.node.attributes.layout)});const h="default";this._unmountNode=s.mount(this.container),this._setDescriptor(r.Et(s,h)),this._setProperties(s.attributes.properties),this._setContext(s.attributes.context),this._setLayout(this.layout);const u=s.getChildren(h).map(l=>r.Et(l));this._childrenProvider.setValue(u);const f=await this.container.getAsync("componentResolver");if(((o=this.descriptor)==null?void 0:o.type)==="area")return;const v=f.getComponent(((n=this.descriptor)==null?void 0:n.type)||"");v.then&&v.then(l=>{this.component=l.default})}}))}disconnectedCallback(){super.disconnectedCallback(),this._propertyChangeListener&&this._propertyChangeListener(),this._contextChangeListener&&this._contextChangeListener(),this._layoutChangeListener&&this._layoutChangeListener(),this._unmountNode&&this._unmountNode()}updated(){this.container&&this.actions.setContainer(this.container),r.mapBranding(this.context,this.renderRoot.host),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`),O(this.renderRoot.host,this.properties)}_setProperties(e){this._propertiesProvider.setValue(e),this.properties=e}_setContext(e){this._contextProvider.setValue(e),this.context=e}_setLayout(e){this._layoutProvider.setValue(e),this.layout=e}_setDescriptor(e){this.descriptor=e,this._descriptorProvider.setValue(e),this.actions.setDescriptor(e)}}return t.styles=[i.styles??[],r.i`
34
34
  :host {
35
35
  font-family: var(--font-family);
36
36
  grid-column: span var(--width);
@@ -42,7 +42,7 @@
42
42
  * {
43
43
  box-sizing: border-box;
44
44
  }
45
- `],l([m({context:z}),r.n({attribute:!1})],t.prototype,"container",2),l([r.n()],t.prototype,"entry",2),l([r.t()],t.prototype,"descriptor",2),l([r.t()],t.prototype,"component",2),l([r.t()],t.prototype,"context",2),l([r.t()],t.prototype,"layout",2),l([r.t()],t.prototype,"properties",2),t};var R=Object.defineProperty,j=Object.getOwnPropertyDescriptor,F=(i,t,c,e)=>{for(var s=e>1?void 0:e?j(t,c):t,o=i.length-1,n;o>=0;o--)(n=i[o])&&(s=(e?n(t,c,s):n(s))||s);return e&&s&&R(t,c,s),s};const x=q(r.s);exports.CopyrightComponent=class extends x{render(){return r.x` <div class="copyright">
45
+ `],p([w({context:M}),r.n({attribute:!1})],t.prototype,"container",2),p([r.n()],t.prototype,"entry",2),p([r.t()],t.prototype,"descriptor",2),p([r.t()],t.prototype,"component",2),p([r.t()],t.prototype,"context",2),p([r.t()],t.prototype,"layout",2),p([r.t()],t.prototype,"properties",2),t};var j=Object.defineProperty,F=Object.getOwnPropertyDescriptor,$=(i,t,c,e)=>{for(var s=e>1?void 0:e?F(t,c):t,o=i.length-1,n;o>=0;o--)(n=i[o])&&(s=(e?n(t,c,s):n(s))||s);return e&&s&&j(t,c,s),s};const x=R(r.s);exports.CopyrightComponent=class extends x{render(){return r.x` <div class="copyright">
46
46
  <a
47
47
  aria-label="Powered by Telia ACE"
48
48
  href="https://ace-showcase.com/marketplace/ace-knowledge/"
@@ -177,4 +177,4 @@
177
177
  svg.compact {
178
178
  width: 130px;
179
179
  }
180
- `];exports.CopyrightComponent=F([f("ace-copyright")],exports.CopyrightComponent);const $=exports.CopyrightComponent;exports.default=$;
180
+ `];exports.CopyrightComponent=$([y("ace-copyright")],exports.CopyrightComponent);const S=exports.CopyrightComponent;exports.default=S;
@@ -2549,7 +2549,7 @@ const Qs = (i, t, e, s, n) => i.getAsync("componentResolver").then((r) => (r.reg
2549
2549
  }), t, n))), li = (i) => Qs(
2550
2550
  i,
2551
2551
  "copyright",
2552
- import("./copyright-e47f457c.mjs"),
2552
+ import("./copyright-86669aa2.mjs"),
2553
2553
  (t) => {
2554
2554
  }
2555
2555
  );
@@ -145,4 +145,4 @@ ${o.map(a=>`${a.name||"<no name>"} (${a.id})
145
145
  align-items: center;
146
146
  fill: var(--trigger-text-color, #fff);
147
147
  }
148
- `];J([ht({attribute:!1})],D.prototype,"symbol",2);J([ht({attribute:!1})],D.prototype,"container",2);J([lt()],D.prototype,"active",2);J([lt()],D.prototype,"loaded",2);J([lt()],D.prototype,"icon",2);const Zs=(i,t,e,s,n)=>i.getAsync("componentResolver").then(r=>(r.registerComponent(t,e),Es(i,t,s||(()=>{}),t,n))),Ks=i=>Zs(i,"copyright",Promise.resolve().then(()=>require("./copyright-341f14c8.js")),t=>{});exports.CopyrightComponent=Ks;exports.Et=As;exports.P=at;exports.ht=ot;exports.i=Ce;exports.mapBranding=Ne;exports.n=ht;exports.pt=_e;exports.s=L;exports.t=lt;exports.x=W;
148
+ `];J([ht({attribute:!1})],D.prototype,"symbol",2);J([ht({attribute:!1})],D.prototype,"container",2);J([lt()],D.prototype,"active",2);J([lt()],D.prototype,"loaded",2);J([lt()],D.prototype,"icon",2);const Zs=(i,t,e,s,n)=>i.getAsync("componentResolver").then(r=>(r.registerComponent(t,e),Es(i,t,s||(()=>{}),t,n))),Ks=i=>Zs(i,"copyright",Promise.resolve().then(()=>require("./copyright-f2168918.js")),t=>{});exports.CopyrightComponent=Ks;exports.Et=As;exports.P=at;exports.ht=ot;exports.i=Ce;exports.mapBranding=Ne;exports.n=ht;exports.pt=_e;exports.s=L;exports.t=lt;exports.x=W;
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index-b92cb33c.js");module.exports=e.CopyrightComponent;
1
+ "use strict";const e=require("./index-a7cd3ca6.js");module.exports=e.CopyrightComponent;
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { C as f } from "./index-05c309ff.mjs";
1
+ import { C as f } from "./index-907d51a9.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-components-copyright-flamingo",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
4
4
  "dependencies": {
5
- "@telia-ace/widget-runtime-flamingo": "^1.0.44",
5
+ "@telia-ace/widget-runtime-flamingo": "^1.0.46",
6
6
  "@webprovisions/platform": "^1.1.3",
7
7
  "lit": "^2.8.0"
8
8
  },