@telia-ace/widget-components-copyright-flamingo 1.0.63 → 1.1.2

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/.eslintrc.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "extends": ["../../.eslintrc.json"],
3
+ "ignorePatterns": ["!**/*"],
4
+ "overrides": [
5
+ {
6
+ "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7
+ "rules": {}
8
+ },
9
+ {
10
+ "files": ["*.ts", "*.tsx"],
11
+ "rules": {}
12
+ },
13
+ {
14
+ "files": ["*.js", "*.jsx"],
15
+ "rules": {}
16
+ },
17
+ {
18
+ "files": ["*.json"],
19
+ "parser": "jsonc-eslint-parser",
20
+ "rules": {
21
+ "@nx/dependency-checks": [
22
+ "error",
23
+ {
24
+ "ignoredFiles": ["{projectRoot}/vite.config.{js,ts,mjs,mts}"]
25
+ }
26
+ ]
27
+ }
28
+ }
29
+ ]
30
+ }
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # widget-components-copyright-flamingo
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Building
6
+
7
+ Run `nx build widget-components-copyright-flamingo` to build the library.
8
+
9
+ ## Running unit tests
10
+
11
+ Run `nx test widget-components-copyright-flamingo` to execute the unit tests via [Jest](https://jestjs.io).
package/package.json CHANGED
@@ -1,16 +1,10 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-components-copyright-flamingo",
3
- "version": "1.0.63",
3
+ "version": "1.1.2",
4
4
  "dependencies": {
5
- "@telia-ace/widget-runtime-flamingo": "1.0.63",
5
+ "@telia-ace/widget-runtime-flamingo": "1.1.2",
6
6
  "@webprovisions/platform": "^1.1.3",
7
- "lit": "^2.8.0",
8
- "@telia-ace/widget-conversation-flamingo": "1.0.63",
9
- "@telia-ace/knowledge-widget-bot-provider-flamingo": "1.0.63",
10
- "@telia-ace/knowledge-data-client-flamingo": "1.0.63",
11
- "@telia-ace/widget-components-copyright-flamingo": "1.0.63",
12
- "@telia-ace/widget-components-list-flamingo": "1.0.63",
13
- "@telia-ace/widget-components-widget-header-flamingo": "1.0.63"
7
+ "lit": "^2.8.0"
14
8
  },
15
9
  "main": "./index.js",
16
10
  "module": "./index.mjs",
package/project.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "components-copyright",
3
+ "$schema": "../../node_modules/nx/schemas/project-schema.json",
4
+ "sourceRoot": "libs/components-copyright/src",
5
+ "projectType": "library",
6
+ "targets": {
7
+ "build": {
8
+ "executor": "@nx/vite:build",
9
+ "outputs": ["{options.outputPath}"],
10
+ "options": {
11
+ "outputPath": "dist/libs/components-copyright"
12
+ }
13
+ },
14
+ "publish": {
15
+ "executor": "nx:run-commands",
16
+ "options": {
17
+ "command": "npm publish",
18
+ "cwd": "dist/libs/components-copyright"
19
+ }
20
+ },
21
+ "prerelease": {
22
+ "executor": "nx:run-commands",
23
+ "options": {
24
+ "command": "npm publish --tag=rc",
25
+ "cwd": "dist/libs/components-copyright"
26
+ }
27
+ },
28
+ "test": {
29
+ "executor": "@nx/vite:test",
30
+ "outputs": ["{options.reportsDirectory}"],
31
+ "options": {
32
+ "passWithNoTests": true,
33
+ "reportsDirectory": "../../coverage/libs/components-copyright"
34
+ }
35
+ },
36
+ "lint": {
37
+ "executor": "@nx/eslint:lint",
38
+ "outputs": ["{options.outputFile}"],
39
+ "options": {
40
+ "lintFilePatterns": [
41
+ "libs/components-copyright/**/*.ts",
42
+ "libs/components-copyright/package.json"
43
+ ]
44
+ }
45
+ }
46
+ },
47
+ "tags": []
48
+ }
@@ -0,0 +1,15 @@
1
+ import { createWebComponent } from '@telia-ace/widget-runtime-flamingo';
2
+ import { Container } from '@webprovisions/platform';
3
+
4
+ export const CopyrightComponent = (container: Container) => {
5
+ return createWebComponent(
6
+ container,
7
+ 'copyright',
8
+ import('./copyright'),
9
+ (_component) => {
10
+ //
11
+ }
12
+ );
13
+ };
14
+
15
+ export default CopyrightComponent;
@@ -0,0 +1,164 @@
1
+ import { WidgetComponent } from '@telia-ace/widget-runtime-flamingo';
2
+ import { LitElement, css, html } from 'lit';
3
+ import { customElement } from 'lit/decorators.js';
4
+
5
+ const WidgetElement = WidgetComponent(LitElement);
6
+
7
+ @customElement('ace-copyright')
8
+ export class CopyrightComponent extends WidgetElement {
9
+ static override styles = [
10
+ WidgetElement.styles || [],
11
+ css`
12
+ .copyright {
13
+ padding: var(--spacing-md);
14
+ box-shadow: 1px 0px 10px rgba(0, 0, 0, 0.1);
15
+ z-index: 6;
16
+ background-color: transparent;
17
+ }
18
+
19
+ a {
20
+ display: flex;
21
+ justify-content: center;
22
+ align-items: center;
23
+ outline: none;
24
+ }
25
+
26
+ svg {
27
+ opacity: 0.8;
28
+ width: 145px;
29
+ }
30
+
31
+ svg.compact {
32
+ width: 130px;
33
+ }
34
+
35
+ path {
36
+ fill: white;
37
+ }
38
+ `,
39
+ ];
40
+
41
+ override render() {
42
+ /**
43
+ * class=${classMap({
44
+ compact: this.properties.mode === 'compact',
45
+ })}
46
+ */
47
+ return html` <div class="copyright">
48
+ <a
49
+ aria-label="Powered by Telia ACE"
50
+ href="https://ace-showcase.com/marketplace/ace-knowledge/"
51
+ target="_blank"
52
+ rel="noopener noreferrer"
53
+ >
54
+ <svg
55
+ version="1.1"
56
+ xmlns="http://www.w3.org/2000/svg"
57
+ xlink:href="http://www.w3.org/1999/xlink"
58
+ viewBox="0 0 1000 150"
59
+ class="compact"
60
+ >
61
+ <g>
62
+ <path
63
+ d="M107.5,47.9c5.3,0,9.3,1.4,12,4.1s4.1,6.5,4.1,11.4c0,4.9-1.4,8.7-4.1,11.5c-2.7,2.7-6.7,4.1-12,4h-16v21.5h-7V47.9H107.5z
64
+ M105.2,73.1c4,0,6.9-0.8,8.7-2.4c1.8-1.7,2.8-4.1,2.8-7.2c0-3.1-0.9-5.5-2.8-7.2c-1.8-1.6-4.7-2.5-8.7-2.5H91.5v19.3H105.2z"
65
+ />
66
+ <path
67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,1-5,1-8.3c0-3.1-0.3-5.9-0.9-8.4
97
+ c-0.6-2.5-1.6-4.6-3-6.3c-1.4-1.7-3.2-3.1-5.4-4c-2.2-0.9-4.9-1.4-8.2-1.4h-11.8v40.8H415.1z"
98
+ />
99
+ <path
100
+ d="M487.8,47.9c1.1,0,2.3,0,3.6,0c1.3,0,2.6,0.1,3.9,0.2c1.3,0.1,2.5,0.3,3.6,0.6c1.1,0.2,2,0.6,2.8,1.1
101
+ c1.7,1,3.2,2.5,4.4,4.3c1.2,1.8,1.8,4,1.8,6.7c0,2.8-0.7,5.2-2,7.2c-1.3,2-3.3,3.5-5.8,4.5v0.1c3.2,0.7,5.7,2.2,7.4,4.4
102
+ c1.7,2.3,2.6,5,2.6,8.2c0,1.9-0.3,3.8-1,5.6c-0.7,1.8-1.7,3.4-3.1,4.8c-1.3,1.4-3,2.5-5,3.4c-2,0.9-4.3,1.3-6.9,1.3h-25.4V47.9
103
+ H487.8z M489.7,70.5c4,0,6.8-0.7,8.6-2.1c1.7-1.4,2.6-3.5,2.6-6.3c0-1.9-0.3-3.3-0.9-4.4c-0.6-1.1-1.4-1.9-2.4-2.5
104
+ c-1-0.6-2.2-1-3.6-1.1c-1.3-0.2-2.8-0.3-4.3-0.3h-14v16.7H489.7z M493.2,94.6c3.1,0,5.5-0.8,7.2-2.5c1.7-1.7,2.6-4,2.6-6.9
105
+ c0-1.7-0.3-3.1-1-4.3c-0.6-1.1-1.5-2-2.5-2.7c-1.1-0.7-2.3-1.1-3.6-1.4c-1.4-0.3-2.8-0.4-4.3-0.4h-16v18.2H493.2z"
106
+ />
107
+ <path
108
+ d="M540.8,100.5h-7V79l-20.3-31h8.3l15.7,25l15.4-25h7.9l-20.1,31V100.5z"
109
+ />
110
+ </g>
111
+ <g class="telia">
112
+ <path
113
+ fill="#9924DF"
114
+ d="M597.5,59.6h-10.1c-2.6,0-5.1-4.5-5.1-5.9c0-2.4,3.8-4.8,7.4-4.8h30.1c1.9,0,2.9,0.9,2.9,2.6c0,4-2.6,8-5.1,8
115
+ h-9.8v33.2c0,4-2.6,8-5.2,8c-2.6,0-5.1-4.5-5.1-5.9V59.6z"
116
+ />
117
+ <path
118
+ fill="#9924DF"
119
+ d="M633.6,100.5c-2.6,0-5.1-4.5-5.1-5.9V53.8c0-2.4,3.8-4.8,7.4-4.8h24.2c1.8,0,2.7,0.9,2.7,2.6
120
+ c0,2.6-1.2,5.3-2.6,6.7c-0.8,0.7-1.5,1-2.3,1h-19.1v10.4h18c1.7,0,2.6,0.8,2.6,2.4c0,3.6-2.3,7.1-4.6,7.1h-16v11h22
121
+ c1.8,0,2.7,0.9,2.7,2.6c0,2.6-1.2,5.3-2.6,6.7c-0.8,0.7-1.5,1-2.3,1H633.6z"
122
+ />
123
+ <path
124
+ fill="#9924DF"
125
+ d="M675.6,100.5c-2.6,0-5.1-4.5-5.1-5.9V53.3c0-2.4,3.8-4.8,7.4-4.8c1.9,0,2.9,0.9,2.9,2.6v39h19.1
126
+ c1.8,0,2.7,0.9,2.7,2.6c0,2.6-1.2,5.3-2.6,6.7c-0.8,0.7-1.5,1-2.3,1H675.6z"
127
+ />
128
+ <path
129
+ fill="#9924DF"
130
+ d="M708.4,53.3c0-2.4,3.8-4.8,7.4-4.8c1.9,0,2.9,0.9,2.9,2.6v41.7c0,4-2.6,8-5.2,8c-2.6,0-5.1-4.5-5.1-5.9V53.3z"
131
+ />
132
+ <path
133
+ fill="#9924DF"
134
+ d="M756.9,90.2h-21l-2.2,6.3c-0.9,2.6-2.7,4.4-4.5,4.4c-2.6,0-5.1-4.5-5.1-5.9c0-0.3,0.1-0.7,0.3-1.3l15.1-40.9
135
+ c0.5-1.4,2.1-2.6,4.2-3.3c1-0.4,2-0.5,2.9-0.5h4.6c1.5,0,2.4,0.5,2.7,1.6l14.7,40.8c0.2,0.4,0.3,1,0.3,1.5c0,4-2.6,8-5.1,8
136
+ c-1.3,0-2.6-1-3.8-2.9c-0.5-0.7-0.9-1.5-1.1-2.1L756.9,90.2z M753.9,81.4l-7.4-21.3L739,81.4H753.9z"
137
+ />
138
+ <path
139
+ fill="#9924DF"
140
+ d="M820.5,90.2h-21l-2.2,6.3c-0.9,2.6-2.7,4.4-4.5,4.4c-2.6,0-5.1-4.5-5.1-5.9c0-0.3,0.1-0.7,0.3-1.3L803,52.8
141
+ c0.5-1.4,2.1-2.6,4.2-3.3c1-0.4,2-0.5,2.9-0.5h4.6c1.5,0,2.4,0.5,2.7,1.6l14.7,40.8c0.2,0.4,0.3,1,0.3,1.5c0,4-2.6,8-5.1,8
142
+ c-1.2,0-2.6-1-3.8-2.9c-0.5-0.7-0.9-1.5-1.1-2.1L820.5,90.2z M817.4,81.4l-7.4-21.3l-7.5,21.3H817.4z"
143
+ />
144
+ <path
145
+ fill="#9924DF"
146
+ d="M860.4,101.6c-9.6,0-17.8-5.4-22.1-13.4c-2.1-4-3.2-8.3-3.2-12.9c0-10.2,5.5-19.1,13.7-23.8
147
+ c4-2.4,8.5-3.5,13.1-3.5c5.1,0,9.7,1.3,13.8,3.8c0.7,0.4,1.1,1.2,1.1,2.2c0,3.6-2.4,7.4-4.6,7.4c-0.5,0-1.1-0.1-1.8-0.5
148
+ c-3-1.5-5.9-2.3-8.7-2.3c-6.2,0-11.3,3.2-13.8,8.1c-1.3,2.5-2,5.2-2,8.2c0,6.3,3,11.5,7.7,14.1c2.3,1.4,4.9,2.1,7.7,2.1
149
+ c3.2,0,6.4-0.7,9.6-2.1c1.7-0.7,3-1.1,4-1.1c1.8,0,2.6,0.9,2.6,2.6c0,2.6-1.2,5.3-2.9,6.8C871.4,99.7,865.6,101.6,860.4,101.6z"
150
+ />
151
+ <path
152
+ fill="#9924DF"
153
+ d="M889.3,100.5c-2.6,0-5.1-4.5-5.1-5.9V53.8c0-2.4,3.8-4.8,7.4-4.8h24.2c1.8,0,2.7,0.9,2.7,2.6
154
+ c0,2.6-1.2,5.3-2.6,6.7c-0.8,0.7-1.5,1-2.3,1h-19.1v10.4h18c1.7,0,2.6,0.8,2.6,2.4c0,3.6-2.3,7.1-4.6,7.1h-16v11h22
155
+ c1.8,0,2.7,0.9,2.7,2.6c0,2.6-1.2,5.3-2.6,6.7c-0.8,0.7-1.5,1-2.3,1H889.3z"
156
+ />
157
+ </g>
158
+ </svg>
159
+ </a>
160
+ </div>`;
161
+ }
162
+ }
163
+
164
+ export default CopyrightComponent;
@@ -1,2 +1,3 @@
1
1
  import CopyrightComponent from './copyright-component';
2
+
2
3
  export default CopyrightComponent;
package/tsconfig.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "module": "commonjs",
5
+ "forceConsistentCasingInFileNames": true,
6
+ "strict": true,
7
+ "noImplicitOverride": true,
8
+ "noPropertyAccessFromIndexSignature": false,
9
+ "noImplicitReturns": false,
10
+ "noFallthroughCasesInSwitch": true,
11
+ "types": ["vitest"]
12
+ },
13
+ "files": [],
14
+ "include": [],
15
+ "references": [
16
+ {
17
+ "path": "./tsconfig.lib.json"
18
+ },
19
+ {
20
+ "path": "./tsconfig.spec.json"
21
+ }
22
+ ]
23
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "../../dist/out-tsc",
5
+ "declaration": true,
6
+ "types": ["node", "vite/client"]
7
+ },
8
+ "include": ["src/**/*.ts"],
9
+ "exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
10
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "../../dist/out-tsc",
5
+ "types": ["vitest/globals", "vitest/importMeta", "vite/client", "node"]
6
+ },
7
+ "include": [
8
+ "vite.config.ts",
9
+ "src/**/*.test.ts",
10
+ "src/**/*.spec.ts",
11
+ "src/**/*.test.tsx",
12
+ "src/**/*.spec.tsx",
13
+ "src/**/*.test.js",
14
+ "src/**/*.spec.js",
15
+ "src/**/*.test.jsx",
16
+ "src/**/*.spec.jsx",
17
+ "src/**/*.d.ts"
18
+ ]
19
+ }
package/vite.config.ts ADDED
@@ -0,0 +1,57 @@
1
+ /// <reference types="vitest" />
2
+ import { defineConfig } from 'vite';
3
+
4
+ import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
5
+ import dts from 'vite-plugin-dts';
6
+ import * as path from 'path';
7
+ // import packageJson from './package.json';
8
+
9
+ export default defineConfig({
10
+ cacheDir:
11
+ '../../node_modules/.vite/@telia-ace/widget-components-copyright-flamingo',
12
+
13
+ plugins: [
14
+ dts({
15
+ entryRoot: 'src',
16
+ tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'),
17
+ skipDiagnostics: true,
18
+ }),
19
+
20
+ nxViteTsPaths(),
21
+ ],
22
+
23
+ // Uncomment this if you are using workers.
24
+ // worker: {
25
+ // plugins: [ nxViteTsPaths() ],
26
+ // },
27
+
28
+ // Configuration for building your library.
29
+ // See: https://vitejs.dev/guide/build.html#library-mode
30
+ build: {
31
+ lib: {
32
+ // Could also be a dictionary or array of multiple entry points.
33
+ entry: 'src/index.ts',
34
+ name: '@telia-ace/widget-components-copyright-flamingo',
35
+ fileName: 'index',
36
+ // Change this to the formats you want to support.
37
+ // Don't forget to update your package.json as well.
38
+ formats: ['es', 'cjs'],
39
+ },
40
+ rollupOptions: {
41
+ // External packages that should not be bundled into your library.
42
+ external: [
43
+ // ...Object.keys((packageJson as any).dependencies || {}),
44
+ // ...Object.keys((packageJson as any).peerDependencies || {}),
45
+ ],
46
+ },
47
+ },
48
+
49
+ test: {
50
+ globals: true,
51
+ cache: {
52
+ dir: '../../node_modules/.vitest',
53
+ },
54
+ environment: 'node',
55
+ include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
56
+ },
57
+ });
@@ -1,3 +0,0 @@
1
- import { Container } from '@webprovisions/platform';
2
- export declare const CopyrightComponent: (container: Container) => Promise<void>;
3
- export default CopyrightComponent;
@@ -1,180 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-a7cd3ca6.js");/**
2
- * @license
3
- * Copyright 2017 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
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
- * @license
7
- * Copyright 2017 Google LLC
8
- * SPDX-License-Identifier: BSD-3-Clause
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
- * @license
11
- * Copyright 2021 Google LLC
12
- * SPDX-License-Identifier: BSD-3-Clause
13
- */let b=class extends Event{constructor(t,c,e){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=c,this.subscribe=e!=null&&e}};/**
14
- * @license
15
- * Copyright 2021 Google LLC
16
- * SPDX-License-Identifier: BSD-3-Clause
17
- *//**
18
- * @license
19
- * Copyright 2021 Google LLC
20
- * SPDX-License-Identifier: BSD-3-Clause
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
- * @license
23
- * Copyright 2021 Google LLC
24
- * SPDX-License-Identifier: BSD-3-Clause
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
- * @license
27
- * Copyright 2021 Google LLC
28
- * SPDX-License-Identifier: BSD-3-Clause
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
- * @license
31
- * Copyright 2022 Google LLC
32
- * SPDX-License-Identifier: BSD-3-Clause
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
- :host {
35
- font-family: var(--font-family);
36
- grid-column: span var(--width);
37
- max-width: 100%;
38
- overflow: hidden;
39
- box-sizing: border-box;
40
- display: block;
41
- }
42
- * {
43
- box-sizing: border-box;
44
- }
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
- <a
47
- aria-label="Powered by Telia ACE"
48
- href="https://ace-showcase.com/marketplace/ace-knowledge/"
49
- target="_blank"
50
- rel="noopener noreferrer"
51
- >
52
- <svg
53
- version="1.1"
54
- xmlns="http://www.w3.org/2000/svg"
55
- xlink:href="http://www.w3.org/1999/xlink"
56
- viewBox="0 0 1000 150"
57
- class="compact"
58
- >
59
- <g>
60
- <path
61
- d="M107.5,47.9c5.3,0,9.3,1.4,12,4.1s4.1,6.5,4.1,11.4c0,4.9-1.4,8.7-4.1,11.5c-2.7,2.7-6.7,4.1-12,4h-16v21.5h-7V47.9H107.5z
62
- M105.2,73.1c4,0,6.9-0.8,8.7-2.4c1.8-1.7,2.8-4.1,2.8-7.2c0-3.1-0.9-5.5-2.8-7.2c-1.8-1.6-4.7-2.5-8.7-2.5H91.5v19.3H105.2z"
63
- />
64
- <path
65
- d="M130.8,63.9c1.1-3.3,2.6-6.2,4.7-8.8c2.1-2.5,4.7-4.6,7.9-6.1c3.1-1.5,6.8-2.3,11-2.3c4.2,0,7.8,0.8,11,2.3
66
- c3.1,1.5,5.8,3.6,7.9,6.1c2.1,2.6,3.7,5.5,4.7,8.8c1.1,3.3,1.6,6.8,1.6,10.3c0,3.6-0.5,7-1.6,10.3c-1.1,3.3-2.6,6.2-4.7,8.8
67
- c-2.1,2.6-4.7,4.6-7.9,6.1c-3.1,1.5-6.8,2.2-11,2.2c-4.2,0-7.8-0.7-11-2.2c-3.1-1.5-5.8-3.5-7.9-6.1c-2.1-2.5-3.7-5.5-4.7-8.8
68
- c-1.1-3.3-1.6-6.8-1.6-10.3C129.2,70.6,129.8,67.2,130.8,63.9z M137.2,82c0.7,2.6,1.8,4.9,3.2,7c1.5,2.1,3.4,3.7,5.7,5
69
- c2.3,1.3,5.1,1.9,8.2,1.9c3.2,0,5.9-0.6,8.2-1.9c2.3-1.2,4.2-2.9,5.7-5c1.5-2.1,2.5-4.4,3.2-7c0.7-2.6,1-5.2,1-7.8s-0.3-5.3-1-7.8
70
- c-0.7-2.6-1.8-4.9-3.2-7s-3.4-3.7-5.7-5c-2.3-1.3-5.1-1.9-8.2-1.9c-3.2,0-5.9,0.6-8.2,1.9c-2.3,1.3-4.2,2.9-5.7,5s-2.6,4.4-3.2,7
71
- c-0.7,2.6-1,5.2-1,7.8S136.6,79.5,137.2,82z"
72
- />
73
- <path
74
- d="M228.2,100.5l-12-44.1h-0.1L204,100.5h-7.3l-13.5-52.5h7.1l10.3,43.7h0.1l11.8-43.7h7.6l11.6,43.7h0.1l10.7-43.7h7
75
- l-14,52.5H228.2z"
76
- />
77
- <path
78
- d="M292.5,47.9v5.9h-29.3v16.7h27.3v5.9h-27.3v18.2h29.5v5.9h-36.5V47.9H292.5z"
79
- />
80
- <path
81
- d="M325.8,47.9c5,0,8.9,1.2,11.7,3.7c2.8,2.5,4.2,5.8,4.2,10.1c0,3.2-0.7,6-2.2,8.4c-1.4,2.4-3.8,4-7,4.9v0.1
82
- c1.5,0.3,2.8,0.8,3.7,1.5c1,0.7,1.7,1.5,2.3,2.5c0.6,1,1,2,1.3,3.2c0.3,1.2,0.5,2.4,0.6,3.7c0.1,1.3,0.2,2.6,0.2,3.9
83
- c0,1.3,0.2,2.6,0.4,3.9c0.2,1.3,0.5,2.5,0.8,3.6c0.4,1.2,0.9,2.2,1.7,3.1h-7.8c-0.5-0.5-0.8-1.3-1-2.2c-0.2-0.9-0.3-2-0.3-3.1
84
- c0-1.2-0.1-2.4-0.1-3.7c0-1.3-0.2-2.6-0.4-3.9c-0.2-1.3-0.4-2.5-0.7-3.6c-0.3-1.2-0.8-2.2-1.4-3c-0.6-0.9-1.5-1.5-2.5-2.1
85
- c-1-0.5-2.4-0.8-4.1-0.8h-17.1v22.4h-7V47.9H325.8z M327.3,71.8c1.5-0.2,2.8-0.7,3.9-1.4c1.1-0.7,2-1.7,2.6-2.9
86
- c0.7-1.2,1-2.8,1-4.7c0-2.6-0.7-4.8-2.2-6.5c-1.5-1.7-3.9-2.5-7.1-2.5h-17.4v18.3h14.6C324.3,72.2,325.8,72,327.3,71.8z"
87
- />
88
- <path
89
- d="M387.8,47.9v5.9h-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2.5c1.7-1.7,2.6-4,2.6-6.9
103
- c0-1.7-0.3-3.1-1-4.3c-0.6-1.1-1.5-2-2.5-2.7c-1.1-0.7-2.3-1.1-3.6-1.4c-1.4-0.3-2.8-0.4-4.3-0.4h-16v18.2H493.2z"
104
- />
105
- <path
106
- d="M540.8,100.5h-7V79l-20.3-31h8.3l15.7,25l15.4-25h7.9l-20.1,31V100.5z"
107
- />
108
- </g>
109
- <g>
110
- <path
111
- fill="#9924DF"
112
- d="M597.5,59.6h-10.1c-2.6,0-5.1-4.5-5.1-5.9c0-2.4,3.8-4.8,7.4-4.8h30.1c1.9,0,2.9,0.9,2.9,2.6c0,4-2.6,8-5.1,8
113
- h-9.8v33.2c0,4-2.6,8-5.2,8c-2.6,0-5.1-4.5-5.1-5.9V59.6z"
114
- />
115
- <path
116
- fill="#9924DF"
117
- d="M633.6,100.5c-2.6,0-5.1-4.5-5.1-5.9V53.8c0-2.4,3.8-4.8,7.4-4.8h24.2c1.8,0,2.7,0.9,2.7,2.6
118
- c0,2.6-1.2,5.3-2.6,6.7c-0.8,0.7-1.5,1-2.3,1h-19.1v10.4h18c1.7,0,2.6,0.8,2.6,2.4c0,3.6-2.3,7.1-4.6,7.1h-16v11h22
119
- c1.8,0,2.7,0.9,2.7,2.6c0,2.6-1.2,5.3-2.6,6.7c-0.8,0.7-1.5,1-2.3,1H633.6z"
120
- />
121
- <path
122
- fill="#9924DF"
123
- d="M675.6,100.5c-2.6,0-5.1-4.5-5.1-5.9V53.3c0-2.4,3.8-4.8,7.4-4.8c1.9,0,2.9,0.9,2.9,2.6v39h19.1
124
- c1.8,0,2.7,0.9,2.7,2.6c0,2.6-1.2,5.3-2.6,6.7c-0.8,0.7-1.5,1-2.3,1H675.6z"
125
- />
126
- <path
127
- fill="#9924DF"
128
- d="M708.4,53.3c0-2.4,3.8-4.8,7.4-4.8c1.9,0,2.9,0.9,2.9,2.6v41.7c0,4-2.6,8-5.2,8c-2.6,0-5.1-4.5-5.1-5.9V53.3z"
129
- />
130
- <path
131
- fill="#9924DF"
132
- d="M756.9,90.2h-21l-2.2,6.3c-0.9,2.6-2.7,4.4-4.5,4.4c-2.6,0-5.1-4.5-5.1-5.9c0-0.3,0.1-0.7,0.3-1.3l15.1-40.9
133
- c0.5-1.4,2.1-2.6,4.2-3.3c1-0.4,2-0.5,2.9-0.5h4.6c1.5,0,2.4,0.5,2.7,1.6l14.7,40.8c0.2,0.4,0.3,1,0.3,1.5c0,4-2.6,8-5.1,8
134
- c-1.3,0-2.6-1-3.8-2.9c-0.5-0.7-0.9-1.5-1.1-2.1L756.9,90.2z M753.9,81.4l-7.4-21.3L739,81.4H753.9z"
135
- />
136
- <path
137
- fill="#9924DF"
138
- d="M820.5,90.2h-21l-2.2,6.3c-0.9,2.6-2.7,4.4-4.5,4.4c-2.6,0-5.1-4.5-5.1-5.9c0-0.3,0.1-0.7,0.3-1.3L803,52.8
139
- c0.5-1.4,2.1-2.6,4.2-3.3c1-0.4,2-0.5,2.9-0.5h4.6c1.5,0,2.4,0.5,2.7,1.6l14.7,40.8c0.2,0.4,0.3,1,0.3,1.5c0,4-2.6,8-5.1,8
140
- c-1.2,0-2.6-1-3.8-2.9c-0.5-0.7-0.9-1.5-1.1-2.1L820.5,90.2z M817.4,81.4l-7.4-21.3l-7.5,21.3H817.4z"
141
- />
142
- <path
143
- fill="#9924DF"
144
- d="M860.4,101.6c-9.6,0-17.8-5.4-22.1-13.4c-2.1-4-3.2-8.3-3.2-12.9c0-10.2,5.5-19.1,13.7-23.8
145
- c4-2.4,8.5-3.5,13.1-3.5c5.1,0,9.7,1.3,13.8,3.8c0.7,0.4,1.1,1.2,1.1,2.2c0,3.6-2.4,7.4-4.6,7.4c-0.5,0-1.1-0.1-1.8-0.5
146
- c-3-1.5-5.9-2.3-8.7-2.3c-6.2,0-11.3,3.2-13.8,8.1c-1.3,2.5-2,5.2-2,8.2c0,6.3,3,11.5,7.7,14.1c2.3,1.4,4.9,2.1,7.7,2.1
147
- c3.2,0,6.4-0.7,9.6-2.1c1.7-0.7,3-1.1,4-1.1c1.8,0,2.6,0.9,2.6,2.6c0,2.6-1.2,5.3-2.9,6.8C871.4,99.7,865.6,101.6,860.4,101.6z"
148
- />
149
- <path
150
- fill="#9924DF"
151
- d="M889.3,100.5c-2.6,0-5.1-4.5-5.1-5.9V53.8c0-2.4,3.8-4.8,7.4-4.8h24.2c1.8,0,2.7,0.9,2.7,2.6
152
- c0,2.6-1.2,5.3-2.6,6.7c-0.8,0.7-1.5,1-2.3,1h-19.1v10.4h18c1.7,0,2.6,0.8,2.6,2.4c0,3.6-2.3,7.1-4.6,7.1h-16v11h22
153
- c1.8,0,2.7,0.9,2.7,2.6c0,2.6-1.2,5.3-2.6,6.7c-0.8,0.7-1.5,1-2.3,1H889.3z"
154
- />
155
- </g>
156
- </svg>
157
- </a>
158
- </div>`}};exports.CopyrightComponent.styles=[x.styles||[],r.i`
159
- .copyright {
160
- padding: var(--spacing-md);
161
- box-shadow: 1px 0px 10px rgba(0, 0, 0, 0.1);
162
- z-index: 6;
163
- background-color: #fff;
164
- }
165
-
166
- a {
167
- display: flex;
168
- justify-content: center;
169
- align-items: center;
170
- outline: none;
171
- }
172
-
173
- svg {
174
- width: 145px;
175
- }
176
-
177
- svg.compact {
178
- width: 130px;
179
- }
180
- `];exports.CopyrightComponent=$([y("ace-copyright")],exports.CopyrightComponent);const S=exports.CopyrightComponent;exports.default=S;