@telia-ace/alliance-ui 1.0.9 → 1.0.10-next.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @telia-ace/alliance-ui
2
2
 
3
+ ## 1.0.10-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 9f57f2f: Set `app` property to required in `<alliance-link>`.
8
+ - 9f57f2f: Use internal property `_href` in `<alliance-link>`.
9
+
10
+ ## 1.0.10-next.0
11
+
12
+ ### Patch Changes
13
+
14
+ - cd495d7: Add `<telia-counter-badge>` and `<telia-search-input>`.
15
+ - cd495d7: Add `<alliance-link>`.
16
+
3
17
  ## 1.0.9
4
18
 
5
19
  ### Patch Changes
@@ -0,0 +1,290 @@
1
+ import { e as s, a as y, s as f, x as g } from "./query-assigned-elements-024d0918.js";
2
+ var v = Object.defineProperty, m = (e, t, r) => t in e ? v(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, l = (e, t, r) => (m(e, typeof t != "symbol" ? t + "" : t, r), r);
3
+ function w(e) {
4
+ const t = Object.entries(e).reduce((r, i) => {
5
+ const [a, n] = i;
6
+ return typeof n > "u" || (typeof n == "object" && n !== null ? r[a] = JSON.stringify(n) : r[a] = n), r;
7
+ }, {});
8
+ return Object.keys(t).length ? `?${new URLSearchParams(t)}` : "";
9
+ }
10
+ function A(e) {
11
+ return e.replaceAll(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
12
+ }
13
+ function S(e = "", t = "", r = {}) {
14
+ const i = k().replace(location.origin, ""), a = w(r);
15
+ return e ? t ? `${i}/${e}/${t}${a}` : `${i}/${e}${a}` : `${i}${a}`;
16
+ }
17
+ function D(e, t) {
18
+ const r = A(e);
19
+ return new RegExp(`^${r.replaceAll("\\?", ".?").replaceAll("\\*", ".*")}`, "i").test(t);
20
+ }
21
+ function b() {
22
+ const { origin: e, pathname: t } = window.location;
23
+ if (D("https://alliance*.ace.teliacompany.net", e)) {
24
+ const [r] = t.split("/").filter((i) => !!i);
25
+ return globalThis.__ALLIANCE_RUNTIME_ROOT_URL = `${e}/${r}`;
26
+ }
27
+ return globalThis.__ALLIANCE_RUNTIME_ROOT_URL = e;
28
+ }
29
+ function k() {
30
+ return globalThis.__ALLIANCE_RUNTIME_ROOT_URL || b(), globalThis.__ALLIANCE_RUNTIME_ROOT_URL;
31
+ }
32
+ var d = /* @__PURE__ */ ((e) => (e[e.Done = 0] = "Done", e[e.NoWorkspaceName = 1] = "NoWorkspaceName", e[e.NoAppName = 2] = "NoAppName", e[e.AlreadyExists = 3] = "AlreadyExists", e[e.NoAppOrWorkspaceInCurrentDirectory = 4] = "NoAppOrWorkspaceInCurrentDirectory", e[e.UnrecognizedCommand = 5] = "UnrecognizedCommand", e[e.WorkspaceCreated = 6] = "WorkspaceCreated", e[e.AppCreated = 7] = "AppCreated", e[e.ServedStopped = 8] = "ServedStopped", e[e.WorkspaceNameInquiry = 9] = "WorkspaceNameInquiry", e[e.AppNameInquiry = 10] = "AppNameInquiry", e[e.ServerModeInquiry = 11] = "ServerModeInquiry", e[e.CreateWorkspaceDescription = 12] = "CreateWorkspaceDescription", e[e.CreateAppDescription = 13] = "CreateAppDescription", e[e.ServeDescription = 14] = "ServeDescription", e[e.BuildDescription = 15] = "BuildDescription", e[e.MissingTranslationKey = 16] = "MissingTranslationKey", e[e.OperationCancelled = 17] = "OperationCancelled", e[e.StopServerInstructions = 18] = "StopServerInstructions", e[e.TemplateLanguageInquiry = 19] = "TemplateLanguageInquiry", e[e.TemplateFrameworkInquiry = 20] = "TemplateFrameworkInquiry", e[e.DevServerPortDescription = 21] = "DevServerPortDescription", e[e.ApiGatewayPortDescription = 22] = "ApiGatewayPortDescription", e[e.ApiServerModeDescription = 23] = "ApiServerModeDescription", e[e.DevServerOpenDescription = 24] = "DevServerOpenDescription", e[e.BuildWatchDescription = 25] = "BuildWatchDescription", e[e.CouldNotStartGatewayInDocker = 26] = "CouldNotStartGatewayInDocker", e[e.PullingLatestImage = 27] = "PullingLatestImage", e[e.AppEntryBuildOptionDescription = 28] = "AppEntryBuildOptionDescription", e[e.ManifestEntryBuildOptionDescription = 29] = "ManifestEntryBuildOptionDescription", e[e.BuildModeOptionDescription = 30] = "BuildModeOptionDescription", e[e.FetchPackageVersionError = 31] = "FetchPackageVersionError", e[e.DockerNotStartedOrInstalled = 32] = "DockerNotStartedOrInstalled", e[e.EnableDevAuthentication = 33] = "EnableDevAuthentication", e[e.NoAppNameFound = 34] = "NoAppNameFound", e[e.AppConfigurationPath = 35] = "AppConfigurationPath", e[e.ServerGatewayMode = 36] = "ServerGatewayMode", e[e.ServerProxyMode = 37] = "ServerProxyMode", e[e.ServerMode = 38] = "ServerMode", e[e.DevLoginUrl = 39] = "DevLoginUrl", e))(d || {});
33
+ const C = {
34
+ [
35
+ 0
36
+ /* Done */
37
+ ]: "Done",
38
+ [
39
+ 1
40
+ /* NoWorkspaceName */
41
+ ]: "No workspace name provided!",
42
+ [
43
+ 2
44
+ /* NoAppName */
45
+ ]: "No app name provided!",
46
+ [
47
+ 3
48
+ /* AlreadyExists */
49
+ ]: "File or directory '{0}' already exists!",
50
+ [
51
+ 4
52
+ /* NoAppOrWorkspaceInCurrentDirectory */
53
+ ]: "Could not find any app entry file at '{0}' or any apps under the alliance.apps property in '{1}'!",
54
+ [
55
+ 5
56
+ /* UnrecognizedCommand */
57
+ ]: "Unrecognized command(s) {0}!",
58
+ [
59
+ 6
60
+ /* WorkspaceCreated */
61
+ ]: "Workspace was created at path '{0}'!",
62
+ [
63
+ 7
64
+ /* AppCreated */
65
+ ]: "App was created at path '{0}'!",
66
+ [
67
+ 8
68
+ /* ServedStopped */
69
+ ]: "Server stopped.",
70
+ [
71
+ 12
72
+ /* CreateWorkspaceDescription */
73
+ ]: "Creates an Alliance Workspace in the current directory.",
74
+ [
75
+ 13
76
+ /* CreateAppDescription */
77
+ ]: "Creates an Alliance Application in the current directory or Alliance Workspace.",
78
+ [
79
+ 14
80
+ /* ServeDescription */
81
+ ]: "Starts a Alliance development server using the current directory package.json.",
82
+ [
83
+ 15
84
+ /* BuildDescription */
85
+ ]: "Builds an Alliance Application using Vite.",
86
+ [
87
+ 9
88
+ /* WorkspaceNameInquiry */
89
+ ]: "Enter the name of your workspace",
90
+ [
91
+ 11
92
+ /* ServerModeInquiry */
93
+ ]: "Which server mode do you want to use?",
94
+ [
95
+ 10
96
+ /* AppNameInquiry */
97
+ ]: "Enter the name of your app",
98
+ [
99
+ 16
100
+ /* MissingTranslationKey */
101
+ ]: "No translation key provided!",
102
+ [
103
+ 17
104
+ /* OperationCancelled */
105
+ ]: "Operation cancelled.",
106
+ [
107
+ 18
108
+ /* StopServerInstructions */
109
+ ]: `Press CTRL + C to stop the server.
110
+ `,
111
+ [
112
+ 19
113
+ /* TemplateLanguageInquiry */
114
+ ]: "Select preferred language",
115
+ [
116
+ 20
117
+ /* TemplateFrameworkInquiry */
118
+ ]: "Select preferred framework template",
119
+ [
120
+ 21
121
+ /* DevServerPortDescription */
122
+ ]: "The port that the dev server should use.",
123
+ [
124
+ 22
125
+ /* ApiGatewayPortDescription */
126
+ ]: "The port that the api gateway should use.",
127
+ [
128
+ 23
129
+ /* ApiServerModeDescription */
130
+ ]: "Which components to start. [server|server-proxy|server-gateway].",
131
+ [
132
+ 24
133
+ /* DevServerOpenDescription */
134
+ ]: "Whether the dev server should automatically open in your browser or not.",
135
+ [
136
+ 25
137
+ /* BuildWatchDescription */
138
+ ]: "Whether the build should start watching and rebuild when files change or not.",
139
+ [
140
+ 26
141
+ /* CouldNotStartGatewayInDocker */
142
+ ]: "Could not start Docker container with Alliance gateway.",
143
+ [
144
+ 27
145
+ /* PullingLatestImage */
146
+ ]: "Pulling latest image...",
147
+ [
148
+ 28
149
+ /* AppEntryBuildOptionDescription */
150
+ ]: "The entry file for the app (./src/app).",
151
+ [
152
+ 29
153
+ /* ManifestEntryBuildOptionDescription */
154
+ ]: "The entry file for the app manifest (./src/manifest).",
155
+ [
156
+ 30
157
+ /* BuildModeOptionDescription */
158
+ ]: "Which mode to use when building the app. [production|development]",
159
+ [
160
+ 31
161
+ /* FetchPackageVersionError */
162
+ ]: "Failed to fetch package info from the NPM registry for package '${0}'!",
163
+ [
164
+ 32
165
+ /* DockerNotStartedOrInstalled */
166
+ ]: "Docker not started or not installed.",
167
+ [
168
+ 33
169
+ /* EnableDevAuthentication */
170
+ ]: "Whether user authentication should be enabled or not.",
171
+ [
172
+ 34
173
+ /* NoAppNameFound */
174
+ ]: "Could not find app name in manifest.",
175
+ [
176
+ 35
177
+ /* AppConfigurationPath */
178
+ ]: "The path to the app configuration file.",
179
+ [
180
+ 38
181
+ /* ServerMode */
182
+ ]: "Server",
183
+ [
184
+ 37
185
+ /* ServerProxyMode */
186
+ ]: "Server with proxy",
187
+ [
188
+ 36
189
+ /* ServerGatewayMode */
190
+ ]: "Server with gateway",
191
+ [
192
+ 39
193
+ /* DevLoginUrl */
194
+ ]: "Log in using http://localhost:{0}/-/dev/login"
195
+ }, h = class {
196
+ };
197
+ let u = h;
198
+ l(u, "getTranslations", () => C), l(u, "getTranslation", (e, ...t) => {
199
+ const r = h.getTranslations()[e];
200
+ if (!r)
201
+ throw new Error(`Could not find text with given key '${e}'.`);
202
+ return t.reduce(
203
+ (i, a, n) => i.toString().replace(`{${n}}`, a.toString()),
204
+ r
205
+ ).toString();
206
+ }), l(u, "get", (e = d.MissingTranslationKey, ...t) => h.getTranslation(e, ...t));
207
+ function N(e) {
208
+ return (t) => {
209
+ t.key === "Enter" && e(t);
210
+ };
211
+ }
212
+ var O = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, p = (e, t, r, i) => {
213
+ for (var a = i > 1 ? void 0 : i ? _(t, r) : t, n = e.length - 1, c; n >= 0; n--)
214
+ (c = e[n]) && (a = (i ? c(t, r, a) : c(a)) || a);
215
+ return i && a && O(t, r, a), a;
216
+ };
217
+ function T(e = "") {
218
+ return location.href.replace(location.origin, "").startsWith(e);
219
+ }
220
+ let o = class extends f {
221
+ constructor() {
222
+ super(...arguments), this.capability = "", this.app = "", this.args = {}, this.navigate = () => {
223
+ history.pushState(this.args, "", this._href), window.dispatchEvent(new Event("popstate"));
224
+ }, this.clickHandler = (e) => {
225
+ this.href || this.download || (e.preventDefault(), this.navigate());
226
+ }, this.updateActive = () => {
227
+ this.active = T(this._href);
228
+ }, this._href = "", this.active = !1, this.computeHref = () => {
229
+ if (this.href)
230
+ return this._href = this.href;
231
+ if (!this.app)
232
+ throw new Error("The app property is required when creating a capability link!");
233
+ this._href = S(this.app, this.capability, this.args), this.updateActive();
234
+ };
235
+ }
236
+ connectedCallback() {
237
+ super.connectedCallback(), window.addEventListener("popstate", this.updateActive), this.computeHref();
238
+ }
239
+ disconnectedCallback() {
240
+ window.removeEventListener("popstate", this.updateActive), super.disconnectedCallback();
241
+ }
242
+ attributeChangedCallback(e, t, r) {
243
+ super.attributeChangedCallback(e, t, r), setTimeout(() => this.computeHref());
244
+ }
245
+ render() {
246
+ return g`<a
247
+ part="anchor"
248
+ target=${this.target}
249
+ rel=${this.rel}
250
+ download=${this.download}
251
+ .href=${this._href}
252
+ ?active=${this.active}
253
+ @click=${this.clickHandler}
254
+ @keydown=${N(this.clickHandler)}
255
+ >
256
+ <slot></slot>
257
+ </a>`;
258
+ }
259
+ };
260
+ p([
261
+ s({ type: String, attribute: !0, reflect: !0 })
262
+ ], o.prototype, "capability", 2);
263
+ p([
264
+ s({ type: String, attribute: !0, reflect: !0 })
265
+ ], o.prototype, "app", 2);
266
+ p([
267
+ s({ type: Object, attribute: !0, reflect: !0 })
268
+ ], o.prototype, "args", 2);
269
+ p([
270
+ s({ type: String, attribute: !0, reflect: !0 })
271
+ ], o.prototype, "href", 2);
272
+ p([
273
+ s({ type: String })
274
+ ], o.prototype, "target", 2);
275
+ p([
276
+ s({ type: String, attribute: !0, reflect: !0 })
277
+ ], o.prototype, "rel", 2);
278
+ p([
279
+ s({ type: String, attribute: !0, reflect: !0 })
280
+ ], o.prototype, "download", 2);
281
+ p([
282
+ s({ type: String, attribute: !1, reflect: !1 })
283
+ ], o.prototype, "_href", 2);
284
+ p([
285
+ s({ type: Boolean, attribute: "active", reflect: !0 })
286
+ ], o.prototype, "active", 2);
287
+ o = p([
288
+ y("alliance-link")
289
+ ], o);
290
+ //# sourceMappingURL=alliance-link-2b1c9985.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alliance-link-2b1c9985.js","sources":["../../utilities/frontend/index.js","../src/components/alliance-link/alliance-link.ts"],"sourcesContent":["var f = Object.defineProperty;\nvar v = (e, r, t) => r in e ? f(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;\nvar u = (e, r, t) => (v(e, typeof r != \"symbol\" ? r + \"\" : r, t), t);\nfunction m(e) {\n const t = Object.entries(e).reduce((i, o) => {\n const [p, c] = o;\n return typeof c > \"u\" || (typeof c == \"object\" && c !== null ? i[p] = JSON.stringify(c) : i[p] = c), i;\n }, {});\n return Object.keys(t).length ? `?${new URLSearchParams(t)}` : \"\";\n}\nfunction s() {\n const e = a(), { href: r, search: t } = window.location;\n return r.replace(e, \"\").replace(t, \"\");\n}\nfunction A(e) {\n return e.replaceAll(/[-\\/\\\\^$*+?.()|[\\]{}]/g, \"\\\\$&\");\n}\nfunction E(e = \"\", r = \"\", t = {}) {\n const i = a().replace(location.origin, \"\"), o = m(t);\n return e ? r ? `${i}/${e}/${r}${o}` : `${i}/${e}${o}` : `${i}${o}`;\n}\nfunction I() {\n const e = s(), [r = \"\", t = \"\"] = e.split(\"/\").filter((i) => !!i);\n return {\n app: r,\n capability: t\n };\n}\nfunction D(e, r) {\n const t = A(e);\n return new RegExp(`^${t.replaceAll(\"\\\\?\", \".?\").replaceAll(\"\\\\*\", \".*\")}`, \"i\").test(r);\n}\nfunction S() {\n const { origin: e, pathname: r } = window.location;\n if (D(\"https://alliance*.ace.teliacompany.net\", e)) {\n const [t] = r.split(\"/\").filter((i) => !!i);\n return globalThis.__ALLIANCE_RUNTIME_ROOT_URL = `${e}/${t}`;\n }\n return globalThis.__ALLIANCE_RUNTIME_ROOT_URL = e;\n}\nfunction a() {\n return globalThis.__ALLIANCE_RUNTIME_ROOT_URL || S(), globalThis.__ALLIANCE_RUNTIME_ROOT_URL;\n}\nvar l = /* @__PURE__ */ ((e) => (e[e.Done = 0] = \"Done\", e[e.NoWorkspaceName = 1] = \"NoWorkspaceName\", e[e.NoAppName = 2] = \"NoAppName\", e[e.AlreadyExists = 3] = \"AlreadyExists\", e[e.NoAppOrWorkspaceInCurrentDirectory = 4] = \"NoAppOrWorkspaceInCurrentDirectory\", e[e.UnrecognizedCommand = 5] = \"UnrecognizedCommand\", e[e.WorkspaceCreated = 6] = \"WorkspaceCreated\", e[e.AppCreated = 7] = \"AppCreated\", e[e.ServedStopped = 8] = \"ServedStopped\", e[e.WorkspaceNameInquiry = 9] = \"WorkspaceNameInquiry\", e[e.AppNameInquiry = 10] = \"AppNameInquiry\", e[e.ServerModeInquiry = 11] = \"ServerModeInquiry\", e[e.CreateWorkspaceDescription = 12] = \"CreateWorkspaceDescription\", e[e.CreateAppDescription = 13] = \"CreateAppDescription\", e[e.ServeDescription = 14] = \"ServeDescription\", e[e.BuildDescription = 15] = \"BuildDescription\", e[e.MissingTranslationKey = 16] = \"MissingTranslationKey\", e[e.OperationCancelled = 17] = \"OperationCancelled\", e[e.StopServerInstructions = 18] = \"StopServerInstructions\", e[e.TemplateLanguageInquiry = 19] = \"TemplateLanguageInquiry\", e[e.TemplateFrameworkInquiry = 20] = \"TemplateFrameworkInquiry\", e[e.DevServerPortDescription = 21] = \"DevServerPortDescription\", e[e.ApiGatewayPortDescription = 22] = \"ApiGatewayPortDescription\", e[e.ApiServerModeDescription = 23] = \"ApiServerModeDescription\", e[e.DevServerOpenDescription = 24] = \"DevServerOpenDescription\", e[e.BuildWatchDescription = 25] = \"BuildWatchDescription\", e[e.CouldNotStartGatewayInDocker = 26] = \"CouldNotStartGatewayInDocker\", e[e.PullingLatestImage = 27] = \"PullingLatestImage\", e[e.AppEntryBuildOptionDescription = 28] = \"AppEntryBuildOptionDescription\", e[e.ManifestEntryBuildOptionDescription = 29] = \"ManifestEntryBuildOptionDescription\", e[e.BuildModeOptionDescription = 30] = \"BuildModeOptionDescription\", e[e.FetchPackageVersionError = 31] = \"FetchPackageVersionError\", e[e.DockerNotStartedOrInstalled = 32] = \"DockerNotStartedOrInstalled\", e[e.EnableDevAuthentication = 33] = \"EnableDevAuthentication\", e[e.NoAppNameFound = 34] = \"NoAppNameFound\", e[e.AppConfigurationPath = 35] = \"AppConfigurationPath\", e[e.ServerGatewayMode = 36] = \"ServerGatewayMode\", e[e.ServerProxyMode = 37] = \"ServerProxyMode\", e[e.ServerMode = 38] = \"ServerMode\", e[e.DevLoginUrl = 39] = \"DevLoginUrl\", e))(l || {});\nconst N = {\n [\n 0\n /* Done */\n ]: \"Done\",\n [\n 1\n /* NoWorkspaceName */\n ]: \"No workspace name provided!\",\n [\n 2\n /* NoAppName */\n ]: \"No app name provided!\",\n [\n 3\n /* AlreadyExists */\n ]: \"File or directory '{0}' already exists!\",\n [\n 4\n /* NoAppOrWorkspaceInCurrentDirectory */\n ]: \"Could not find any app entry file at '{0}' or any apps under the alliance.apps property in '{1}'!\",\n [\n 5\n /* UnrecognizedCommand */\n ]: \"Unrecognized command(s) {0}!\",\n [\n 6\n /* WorkspaceCreated */\n ]: \"Workspace was created at path '{0}'!\",\n [\n 7\n /* AppCreated */\n ]: \"App was created at path '{0}'!\",\n [\n 8\n /* ServedStopped */\n ]: \"Server stopped.\",\n [\n 12\n /* CreateWorkspaceDescription */\n ]: \"Creates an Alliance Workspace in the current directory.\",\n [\n 13\n /* CreateAppDescription */\n ]: \"Creates an Alliance Application in the current directory or Alliance Workspace.\",\n [\n 14\n /* ServeDescription */\n ]: \"Starts a Alliance development server using the current directory package.json.\",\n [\n 15\n /* BuildDescription */\n ]: \"Builds an Alliance Application using Vite.\",\n [\n 9\n /* WorkspaceNameInquiry */\n ]: \"Enter the name of your workspace\",\n [\n 11\n /* ServerModeInquiry */\n ]: \"Which server mode do you want to use?\",\n [\n 10\n /* AppNameInquiry */\n ]: \"Enter the name of your app\",\n [\n 16\n /* MissingTranslationKey */\n ]: \"No translation key provided!\",\n [\n 17\n /* OperationCancelled */\n ]: \"Operation cancelled.\",\n [\n 18\n /* StopServerInstructions */\n ]: `Press CTRL + C to stop the server.\n`,\n [\n 19\n /* TemplateLanguageInquiry */\n ]: \"Select preferred language\",\n [\n 20\n /* TemplateFrameworkInquiry */\n ]: \"Select preferred framework template\",\n [\n 21\n /* DevServerPortDescription */\n ]: \"The port that the dev server should use.\",\n [\n 22\n /* ApiGatewayPortDescription */\n ]: \"The port that the api gateway should use.\",\n [\n 23\n /* ApiServerModeDescription */\n ]: \"Which components to start. [server|server-proxy|server-gateway].\",\n [\n 24\n /* DevServerOpenDescription */\n ]: \"Whether the dev server should automatically open in your browser or not.\",\n [\n 25\n /* BuildWatchDescription */\n ]: \"Whether the build should start watching and rebuild when files change or not.\",\n [\n 26\n /* CouldNotStartGatewayInDocker */\n ]: \"Could not start Docker container with Alliance gateway.\",\n [\n 27\n /* PullingLatestImage */\n ]: \"Pulling latest image...\",\n [\n 28\n /* AppEntryBuildOptionDescription */\n ]: \"The entry file for the app (./src/app).\",\n [\n 29\n /* ManifestEntryBuildOptionDescription */\n ]: \"The entry file for the app manifest (./src/manifest).\",\n [\n 30\n /* BuildModeOptionDescription */\n ]: \"Which mode to use when building the app. [production|development]\",\n [\n 31\n /* FetchPackageVersionError */\n ]: \"Failed to fetch package info from the NPM registry for package '${0}'!\",\n [\n 32\n /* DockerNotStartedOrInstalled */\n ]: \"Docker not started or not installed.\",\n [\n 33\n /* EnableDevAuthentication */\n ]: \"Whether user authentication should be enabled or not.\",\n [\n 34\n /* NoAppNameFound */\n ]: \"Could not find app name in manifest.\",\n [\n 35\n /* AppConfigurationPath */\n ]: \"The path to the app configuration file.\",\n [\n 38\n /* ServerMode */\n ]: \"Server\",\n [\n 37\n /* ServerProxyMode */\n ]: \"Server with proxy\",\n [\n 36\n /* ServerGatewayMode */\n ]: \"Server with gateway\",\n [\n 39\n /* DevLoginUrl */\n ]: \"Log in using http://localhost:{0}/-/dev/login\"\n}, d = class {\n};\nlet n = d;\nu(n, \"getTranslations\", () => N), u(n, \"getTranslation\", (r, ...t) => {\n const o = d.getTranslations()[r];\n if (!o)\n throw new Error(`Could not find text with given key '${r}'.`);\n return t.reduce(\n (c, h, g) => c.toString().replace(`{${g}}`, h.toString()),\n o\n ).toString();\n}), u(n, \"get\", (r = l.MissingTranslationKey, ...t) => d.getTranslation(r, ...t));\nfunction O(e, r) {\n return k(Object.values(e), ({ name: t }) => ({\n label: t,\n value: t,\n selected: r === t\n }));\n}\nvar w = /* @__PURE__ */ ((e) => (e.Primary = \"primary\", e.Secondary = \"secondary\", e.Expressive = \"expressive\", e.Destructive = \"destructive\", e.Text = \"text\", e.PrimaryWhite = \"primary-white\", e.SecondaryWhite = \"secondary-white\", e.ExpressiveWhite = \"expressive-white\", e.TertiaryPurple = \"tertiary-purple\", e))(w || {});\nfunction W(e, r) {\n return Object.values(e).find((i) => i.name === r);\n}\nfunction k(e, r) {\n return e.reduce(\n (t, i) => (t.push({\n disabled: !1,\n selected: !1,\n ...r(i)\n }), t),\n [\n {\n label: \"Choose...\",\n value: \"\",\n disabled: !0,\n selected: !0\n }\n ]\n );\n}\nfunction L(e) {\n return (r) => {\n r.key === \"Enter\" && e(r);\n };\n}\nfunction P(e, r = \"all\") {\n const { email: t, displayName: i } = e, o = i && i !== \"unknown\", p = !!t;\n switch (r) {\n case \"all\": {\n if (o && p)\n return `${i} (${t})`;\n if (o)\n return i;\n if (p)\n return t;\n }\n case \"single\": {\n if (o)\n return i;\n if (p)\n return t;\n }\n }\n return \"<UNKNOWN USER>\";\n}\nfunction R(...e) {\n return e.filter((r) => !!r).join(\" \");\n}\nexport {\n n as Texts,\n l as TranslationsKey,\n w as VocaButtonVariant,\n R as classNames,\n E as createCapabilityPath,\n P as friendlyUserName,\n I as getCurrentLocationInfo,\n a as getRuntimeRootUrl,\n W as getVocaIcon,\n k as mapToVocaOptions,\n D as matchRegExpLike,\n L as onEnter,\n S as setRuntimeRootUrl,\n O as vocaIconsToOptions\n};\n//# sourceMappingURL=index.js.map\n","import {\n SerializeableObject,\n createCapabilityPath,\n onEnter,\n} from '@telia-ace/alliance-utilities/frontend';\nimport { LitElement, html } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n\nfunction isOnCurrentPath(path: string = '') {\n const cleanedPath = location.href.replace(location.origin, '');\n return cleanedPath.startsWith(path);\n}\n\n@customElement('alliance-link')\nexport class Link extends LitElement {\n @property({ type: String, attribute: true, reflect: true })\n capability: string = '';\n\n @property({ type: String, attribute: true, reflect: true })\n app: string = '';\n\n @property({ type: Object, attribute: true, reflect: true })\n args: SerializeableObject = {};\n\n /**\n * Link properties\n */\n @property({ type: String, attribute: true, reflect: true })\n href?: string;\n\n @property({ type: String })\n target?: string;\n\n @property({ type: String, attribute: true, reflect: true })\n rel?: string;\n\n @property({ type: String, attribute: true, reflect: true })\n download?: string;\n\n navigate = () => {\n history.pushState(this.args, '', this._href);\n window.dispatchEvent(new Event('popstate'));\n };\n\n clickHandler = (event: MouseEvent) => {\n if (this.href || this.download) {\n return;\n }\n\n event.preventDefault();\n\n this.navigate();\n };\n\n updateActive = () => {\n this.active = isOnCurrentPath(this._href);\n };\n\n connectedCallback() {\n super.connectedCallback();\n window.addEventListener('popstate', this.updateActive);\n this.computeHref();\n }\n\n disconnectedCallback() {\n window.removeEventListener('popstate', this.updateActive);\n super.disconnectedCallback();\n }\n\n attributeChangedCallback(_1: string, _2: string | null, _3: string | null) {\n super.attributeChangedCallback(_1, _2, _3);\n\n // FUTURE TODO: Try to figure out this timeout is needed\n // Update seems to happen too early if this is not timed\n setTimeout(() => this.computeHref());\n }\n\n /**\n * Internal properties\n */\n @property({ type: String, attribute: false, reflect: false })\n private _href: string = '';\n\n @property({ type: Boolean, attribute: 'active', reflect: true })\n private active: boolean = false;\n\n private computeHref = () => {\n if (this.href) {\n return (this._href = this.href);\n }\n\n if (!this.app) {\n throw new Error('The app property is required when creating a capability link!');\n }\n this._href = createCapabilityPath(this.app, this.capability, this.args);\n this.updateActive();\n };\n\n render() {\n return html`<a\n part=\"anchor\"\n target=${this.target}\n rel=${this.rel}\n download=${this.download}\n .href=${this._href}\n ?active=${this.active}\n @click=${this.clickHandler}\n @keydown=${onEnter(this.clickHandler)}\n >\n <slot></slot>\n </a>`;\n }\n}\n"],"names":["f","v","r","t","u","m","i","o","p","c","E","a","S","l","N","d","n","h","g","L","isOnCurrentPath","path","Link","LitElement","event","createCapabilityPath","_1","_2","_3","html","onEnter","__decorateClass","property","customElement"],"mappings":";AAAA,IAAIA,IAAI,OAAO,gBACXC,IAAI,CAAC,GAAGC,GAAGC,MAAMD,KAAK,IAAIF,EAAE,GAAGE,GAAG,EAAE,YAAY,IAAI,cAAc,IAAI,UAAU,IAAI,OAAOC,EAAC,CAAE,IAAI,EAAED,CAAC,IAAIC,GACzGC,IAAI,CAAC,GAAGF,GAAGC,OAAOF,EAAE,GAAG,OAAOC,KAAK,WAAWA,IAAI,KAAKA,GAAGC,CAAC,GAAGA;AAClE,SAASE,EAAE,GAAG;AACZ,QAAM,IAAI,OAAO,QAAQ,CAAC,EAAE,OAAO,CAACC,GAAGC,MAAM;AAC3C,UAAM,CAACC,GAAGC,CAAC,IAAIF;AACf,WAAO,OAAOE,IAAI,QAAQ,OAAOA,KAAK,YAAYA,MAAM,OAAOH,EAAEE,CAAC,IAAI,KAAK,UAAUC,CAAC,IAAIH,EAAEE,CAAC,IAAIC,IAAIH;AAAA,EACtG,GAAE,CAAE,CAAA;AACL,SAAO,OAAO,KAAK,CAAC,EAAE,SAAS,IAAI,IAAI,gBAAgB,CAAC,MAAM;AAChE;AAKA,SAAS,EAAE,GAAG;AACZ,SAAO,EAAE,WAAW,0BAA0B,MAAM;AACtD;AACA,SAASI,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EADNE,EAAc,eAAe;AAAA,GACjBX,CAAA;"}
@@ -4,7 +4,7 @@ import "./telia-button2-7783c019.js";
4
4
  import "./telia-heading2-38ae44ae.js";
5
5
  import "./telia-icon2-d0e7c715.js";
6
6
  import { l as g, c, b as y, s as v, a as w, d as e } from "./index-d925c796.js";
7
- import { c as k } from "./close-ac6e4f1c.js";
7
+ import { c as k } from "./close-7d423291.js";
8
8
  var x = Object.defineProperty, C = Object.getOwnPropertyDescriptor, r = (i, n, p, d) => {
9
9
  for (var a = d > 1 ? void 0 : d ? C(n, p) : n, h = i.length - 1, u; h >= 0; h--)
10
10
  (u = i[h]) && (a = (d ? u(n, p, a) : u(a)) || a);
@@ -1 +1 @@
1
- {"version":3,"file":"close-7d423291.js","sources":["../../../node_modules/.pnpm/@teliads+components@21.3.1/node_modules/@teliads/components/dist/components/close.js"],"sourcesContent":["const close = { \"name\": \"close\", \"svg\": \"<svg viewBox=\\\"0 0 64 64\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"currentColor\\\"><path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M51.365 48.3012C51.9123 48.8485 52.1261 49.6462 51.9258 50.3939C51.7254 51.1415 51.1415 51.7254 50.3939 51.9258C49.6462 52.1261 48.8485 51.9123 48.3012 51.365L32.4998 35.5636L16.6984 51.365C16.1511 51.9123 15.3534 52.1261 14.6058 51.9258C13.8581 51.7254 13.2742 51.1415 13.0739 50.3939C12.8735 49.6462 13.0873 48.8485 13.6346 48.3012L29.436 32.4998L13.6346 16.6984C13.0873 16.1511 12.8735 15.3534 13.0739 14.6058C13.2742 13.8581 13.8581 13.2742 14.6058 13.0739C15.3534 12.8735 16.1511 13.0873 16.6984 13.6346L32.4998 29.436L48.3012 13.6346C49.1473 12.7885 50.519 12.7885 51.365 13.6346C52.2111 14.4806 52.2111 15.8523 51.365 16.6984L35.5636 32.4998L51.365 48.3012Z\\\"/></svg>\" };\n\nexport { close as c };\n"],"names":["close"],"mappings":"AAAK,MAACA,IAAQ,EAAE,MAAQ,SAAS,KAAO,qyBAAgzB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"close-7d423291.js","sources":["../../../node_modules/.pnpm/@teliads+components@21.3.1/node_modules/@teliads/components/icons/main/assets/close.js"],"sourcesContent":["export default { \"name\": \"close\", \"svg\": \"<svg viewBox=\\\"0 0 64 64\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"currentColor\\\"><path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M51.365 48.3012C51.9123 48.8485 52.1261 49.6462 51.9258 50.3939C51.7254 51.1415 51.1415 51.7254 50.3939 51.9258C49.6462 52.1261 48.8485 51.9123 48.3012 51.365L32.4998 35.5636L16.6984 51.365C16.1511 51.9123 15.3534 52.1261 14.6058 51.9258C13.8581 51.7254 13.2742 51.1415 13.0739 50.3939C12.8735 49.6462 13.0873 48.8485 13.6346 48.3012L29.436 32.4998L13.6346 16.6984C13.0873 16.1511 12.8735 15.3534 13.0739 14.6058C13.2742 13.8581 13.8581 13.2742 14.6058 13.0739C15.3534 12.8735 16.1511 13.0873 16.6984 13.6346L32.4998 29.436L48.3012 13.6346C49.1473 12.7885 50.519 12.7885 51.365 13.6346C52.2111 14.4806 52.2111 15.8523 51.365 16.6984L35.5636 32.4998L51.365 48.3012Z\\\"/></svg>\" };\n"],"names":["close"],"mappings":"AAAA,MAAeA,IAAA,EAAE,MAAQ,SAAS,KAAO,qyBAAkzB;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"close-ac6e4f1c.js","sources":["../../../node_modules/.pnpm/@teliads+components@21.3.1/node_modules/@teliads/components/icons/main/assets/close.js"],"sourcesContent":["export default { \"name\": \"close\", \"svg\": \"<svg viewBox=\\\"0 0 64 64\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"currentColor\\\"><path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M51.365 48.3012C51.9123 48.8485 52.1261 49.6462 51.9258 50.3939C51.7254 51.1415 51.1415 51.7254 50.3939 51.9258C49.6462 52.1261 48.8485 51.9123 48.3012 51.365L32.4998 35.5636L16.6984 51.365C16.1511 51.9123 15.3534 52.1261 14.6058 51.9258C13.8581 51.7254 13.2742 51.1415 13.0739 50.3939C12.8735 49.6462 13.0873 48.8485 13.6346 48.3012L29.436 32.4998L13.6346 16.6984C13.0873 16.1511 12.8735 15.3534 13.0739 14.6058C13.2742 13.8581 13.8581 13.2742 14.6058 13.0739C15.3534 12.8735 16.1511 13.0873 16.6984 13.6346L32.4998 29.436L48.3012 13.6346C49.1473 12.7885 50.519 12.7885 51.365 13.6346C52.2111 14.4806 52.2111 15.8523 51.365 16.6984L35.5636 32.4998L51.365 48.3012Z\\\"/></svg>\" };\n"],"names":["close"],"mappings":"AAAA,MAAeA,IAAA,EAAE,MAAQ,SAAS,KAAO,qyBAAkzB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"close-ac6e4f1c.js","sources":["../../../node_modules/.pnpm/@teliads+components@21.3.1/node_modules/@teliads/components/dist/components/close.js"],"sourcesContent":["const close = { \"name\": \"close\", \"svg\": \"<svg viewBox=\\\"0 0 64 64\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"currentColor\\\"><path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M51.365 48.3012C51.9123 48.8485 52.1261 49.6462 51.9258 50.3939C51.7254 51.1415 51.1415 51.7254 50.3939 51.9258C49.6462 52.1261 48.8485 51.9123 48.3012 51.365L32.4998 35.5636L16.6984 51.365C16.1511 51.9123 15.3534 52.1261 14.6058 51.9258C13.8581 51.7254 13.2742 51.1415 13.0739 50.3939C12.8735 49.6462 13.0873 48.8485 13.6346 48.3012L29.436 32.4998L13.6346 16.6984C13.0873 16.1511 12.8735 15.3534 13.0739 14.6058C13.2742 13.8581 13.8581 13.2742 14.6058 13.0739C15.3534 12.8735 16.1511 13.0873 16.6984 13.6346L32.4998 29.436L48.3012 13.6346C49.1473 12.7885 50.519 12.7885 51.365 13.6346C52.2111 14.4806 52.2111 15.8523 51.365 16.6984L35.5636 32.4998L51.365 48.3012Z\\\"/></svg>\" };\n\nexport { close as c };\n"],"names":["close"],"mappings":"AAAK,MAACA,IAAQ,EAAE,MAAQ,SAAS,KAAO,qyBAAgzB;","x_google_ignoreList":[0]}
@@ -0,0 +1,169 @@
1
+ import { p as c, H as d, c as m, h as i } from "./index-eef143db.js";
2
+ import { u as s } from "./uniqueId-0daf01ec.js";
3
+ import { s as p } from "./stringCombiner-10b57054.js";
4
+ import { d as h } from "./telia-field-assistive-text2-173ba2fb.js";
5
+ import { d as v } from "./telia-field-error2-75dc8ceb.js";
6
+ import { d as g } from "./telia-field-valid2-0f6759ac.js";
7
+ import { d as f } from "./telia-icon2-d0e7c715.js";
8
+ import { d as _ } from "./telia-label2-f4c1eb47.js";
9
+ import { d as x } from "./telia-vst2-dfb33a56.js";
10
+ const b = {
11
+ text: "text",
12
+ number: "number",
13
+ email: "email",
14
+ tel: "tel",
15
+ search: "search",
16
+ password: "password"
17
+ }, E = '.telia-text-input{display:flex;flex-direction:column}.telia-text-input__input{border:calc(0.1rem * var(--voca-rem-multiplier)) solid rgba(0, 0, 0, 0.3);border-radius:calc(0.2rem * var(--voca-rem-multiplier));background-color:#ffffff;font-family:"TeliaSans", Helvetica, Arial, "Lucida Grande", sans-serif;font-weight:normal;font-size:calc(1.6rem * var(--voca-rem-multiplier));line-height:1.5;-webkit-appearance:none;appearance:none;box-sizing:border-box;color:rgba(0, 0, 0, 0.85);display:block;margin:0;padding:calc(1rem * var(--voca-rem-multiplier)) calc(1.2rem * var(--voca-rem-multiplier));width:100%;height:calc(4.6rem * var(--voca-rem-multiplier));margin:calc(0.4rem * var(--voca-rem-multiplier)) 0 0;order:2}.telia-text-input__input:required{box-shadow:none}.telia-text-input__input[type=search]{-webkit-appearance:textfield;outline-offset:calc(-0.2rem * var(--voca-rem-multiplier))}.telia-text-input__input[type=search]::-webkit-search-decoration{-webkit-appearance:none}.telia-text-input__input[type=number]~.telia-text-input__valid-icon-container,.telia-text-input__input[type=search]~.telia-text-input__valid-icon-container{margin:calc(-1 * (4.6rem * var(--voca-rem-multiplier))) calc(1.2rem * var(--voca-rem-multiplier)) 0 calc(100% - (3.2rem * var(--voca-rem-multiplier)));width:0}.telia-text-input__input:hover{border:calc(0.2rem * var(--voca-rem-multiplier)) solid #29003e;padding:calc(calc(1rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier))) calc(calc(1.2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)))}.telia-text-input__input:hover:focus{border:calc(0.1rem * var(--voca-rem-multiplier)) solid rgba(0, 0, 0, 0.3)}.telia-text-input__input:focus{outline:solid calc(0.3rem * var(--voca-rem-multiplier)) #0099ff;outline-offset:calc(0.2rem * var(--voca-rem-multiplier));padding:calc(1rem * var(--voca-rem-multiplier)) calc(1.2rem * var(--voca-rem-multiplier))}.telia-text-input__input:focus:hover{border:calc(0.1rem * var(--voca-rem-multiplier)) solid rgba(0, 0, 0, 0.3)}.telia-text-input__input:read-only{border:calc(0.1rem * var(--voca-rem-multiplier)) solid #c8c8cd;background-color:rgba(0, 0, 0, 0.05)}.telia-text-input__input:read-only:hover{border:calc(0.1rem * var(--voca-rem-multiplier)) solid #c8c8cd;padding:calc(1rem * var(--voca-rem-multiplier)) calc(1.2rem * var(--voca-rem-multiplier))}.telia-text-input__input:disabled{border:calc(0.1rem * var(--voca-rem-multiplier)) solid rgba(0, 0, 0, 0.15);background-color:rgba(0, 0, 0, 0.1);color:rgba(0, 0, 0, 0.4);cursor:not-allowed;-webkit-text-fill-color:#606064}.telia-text-input__input:disabled:hover{padding:calc(1rem * var(--voca-rem-multiplier)) calc(1.2rem * var(--voca-rem-multiplier))}.telia-text-input__input:disabled~telia-label .telia-label{color:rgba(0, 0, 0, 0.4);cursor:not-allowed}.telia-text-input__input:disabled~.telia-text-input__additional{color:rgba(0, 0, 0, 0.4)}.telia-text-input__input:invalid{box-shadow:none}.telia-text-input__input--icon-shown{padding:calc(1rem * var(--voca-rem-multiplier)) calc(4.5rem * var(--voca-rem-multiplier)) calc(1rem * var(--voca-rem-multiplier)) calc(1.2rem * var(--voca-rem-multiplier))}.telia-text-input__input--touched:invalid{border:calc(0.1rem * var(--voca-rem-multiplier)) solid #e4175c}.telia-text-input__input--touched:invalid:focus{border:calc(0.1rem * var(--voca-rem-multiplier)) solid rgba(0, 0, 0, 0.3)}.telia-text-input__input--touched:invalid:hover:not(:focus){border:calc(0.2rem * var(--voca-rem-multiplier)) solid #e4175c;padding:calc(calc(1rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier))) calc(calc(1.2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)))}.telia-text-input__valid-icon-container{align-items:center;display:flex;flex-direction:row;height:calc(4.6rem * var(--voca-rem-multiplier));justify-content:flex-end;margin:calc(calc(4.6rem * var(--voca-rem-multiplier)) * -1) calc(1.2rem * var(--voca-rem-multiplier)) 0 calc(100% - calc(1.2rem * var(--voca-rem-multiplier)));order:3}.telia-text-input__additional{order:4}.telia-text-input__error{margin:calc(0.4rem * var(--voca-rem-multiplier)) 0 0;order:5}', V = /* @__PURE__ */ c(class extends d {
18
+ constructor() {
19
+ super(), this.__registerHost(), this.valueChange = m(this, "valueChange", 7), this.type = b.text, this.value = "", this.additionalId = s("additional"), this.inputId = s("input"), this.errorId = s("error"), this.disabled = !1, this.readonly = !1, this.required = !1, this.showValidIcon = !1, this.dataTrackingId = "telia-text-input", this.touched = !1, this.dirty = !1, this.inputValue = "", this.errorMessageState = "", this.updateInputValue = () => {
20
+ this.inputValue = this.inputElement ? this.inputElement.value : this.value;
21
+ }, this.isValuePatternValid = () => this.pattern ? new RegExp("^(?:" + this.pattern + ")$").test(this.inputValue) : !0, this.isValueLessThanMinlength = () => this.inputValue.length > 0 && this.inputValue.length < this.minlength, this.isValueTypeInvalid = () => {
22
+ var t;
23
+ return (t = this.inputElement) === null || t === void 0 ? void 0 : t.validity.typeMismatch;
24
+ }, this.updateErrorMessage = (t) => {
25
+ var e;
26
+ (e = this.inputElement) === null || e === void 0 || e.setCustomValidity(t), this.errorMessageState = t;
27
+ }, this.isValueMissing = () => this.inputValue.length === 0, this.updateErrorState = () => {
28
+ var t, e;
29
+ const a = !!(!((t = this.errorMessageState) === null || t === void 0) && t.length), l = this.required, r = !!this.pattern, n = this.minlength, u = !!(!((e = this.errorMessage) === null || e === void 0) && e.length), o = !!this.emailErrorMessage && this.type === "email";
30
+ if (u) {
31
+ this.updateErrorMessage(this.errorMessage), this.touched = !0;
32
+ return;
33
+ }
34
+ if (r && !this.isValueMissing() && this.touched && this.patternErrorMessage && !this.isValuePatternValid() && this.updateErrorMessage(this.patternErrorMessage), n && this.touched && this.minlengthErrorMessage && this.isValueLessThanMinlength() && this.updateErrorMessage(this.minlengthErrorMessage), l && (o && this.isValueTypeInvalid() && this.touched && this.updateErrorMessage(this.emailErrorMessage), this.touched && this.requiredErrorMessage && this.isValueMissing() && this.updateErrorMessage(this.requiredErrorMessage)), a) {
35
+ if (r && !this.isValuePatternValid() || n && this.isValueLessThanMinlength() || l && this.isValueMissing() || o && this.isValueTypeInvalid())
36
+ return;
37
+ this.updateErrorMessage("");
38
+ }
39
+ };
40
+ }
41
+ /**
42
+ * Sets focus on input
43
+ */
44
+ async focusInput() {
45
+ this.inputElement.focus();
46
+ }
47
+ componentWillLoad() {
48
+ this.updateInputValue(), this.updateErrorState();
49
+ }
50
+ componentWillUpdate() {
51
+ this.updateErrorState();
52
+ }
53
+ componentDidRender() {
54
+ var t, e, a;
55
+ this.inputElement && (!((t = this.inputElement) === null || t === void 0) && t.setCustomValidity) && ((e = this.inputElement) === null || e === void 0 || e.setCustomValidity(this.errorMessageState)), this.htmlForm && ((a = this.inputElement) === null || a === void 0 || a.setAttribute("form", this.htmlForm));
56
+ }
57
+ /**
58
+ * Watch if value attributes changes after initial load.
59
+ * Needed for prefilling functionality to work with input validations.
60
+ * @param value value attribute
61
+ */
62
+ componentValueChanged(t) {
63
+ this.inputValue = t, this.updateErrorState();
64
+ }
65
+ /**
66
+ * This method is used to determine
67
+ * if a 'valid icon' can be shown to the user.
68
+ * Given the complexity of the validation logic
69
+ * in this component, using this method
70
+ * to determine 'validity' in a general sense
71
+ * should be carefully considered and tested.
72
+ */
73
+ isValid() {
74
+ return !this.errorMessage && !this.isValueMissing() && !this.isValueLessThanMinlength() && !this.isValueTypeInvalid() && this.isValuePatternValid();
75
+ }
76
+ render() {
77
+ const t = this.touched && !!this.errorMessageState.length, e = !!this.additional, a = p({
78
+ [this.additionalId]: e,
79
+ [this.errorId]: this.errorMessageState.length
80
+ }), l = this.showValidIcon && this.dirty && this.isValid();
81
+ return i("div", { class: "telia-text-input" }, i("input", { class: {
82
+ "telia-text-input__input": !0,
83
+ "telia-text-input__input--touched": this.touched,
84
+ "telia-text-input__input--icon-shown": l
85
+ }, placeholder: this.placeholder, type: this.type, id: this.inputId, "aria-describedby": a, minlength: this.minlength, maxlength: this.maxlength, disabled: this.disabled, readonly: this.readonly, value: this.value, name: this.name, onChange: (r) => {
86
+ this.valueChange.emit(r);
87
+ }, onInput: () => {
88
+ this.dirty = !0, this.updateInputValue(), this.updateErrorState();
89
+ }, inputmode: this.inputmode, list: this.list, autocomplete: this.autocomplete, required: this.required, onBlur: () => {
90
+ this.touched = !0, this.updateErrorState();
91
+ }, ref: (r) => this.inputElement = r, pattern: this.pattern, onInvalid: (r) => {
92
+ r.preventDefault(), this.touched = !0, this.updateErrorState();
93
+ }, form: this.htmlForm }), l && i("div", { class: "telia-text-input__valid-icon-container" }, i("telia-field-valid", { class: "telia-text-input__valid-icon" })), i("telia-label", { class: "telia-text-input__label", htmlFor: this.inputId }, this.required && i("span", { "aria-hidden": "true" }, "* "), this.label), e && i("telia-field-assistive-text", { class: "telia-text-input__additional", id: this.additionalId }, this.additional), t && i("telia-field-error", { id: this.errorId, class: "telia-text-input__error" }, this.errorMessageState), i("telia-vst", { dataTrackingId: this.dataTrackingId }));
94
+ }
95
+ static get watchers() {
96
+ return {
97
+ value: ["componentValueChanged"]
98
+ };
99
+ }
100
+ static get style() {
101
+ return E;
102
+ }
103
+ }, [0, "telia-text-input", {
104
+ dataTestid: [1, "data-testid"],
105
+ htmlForm: [1, "html-form"],
106
+ type: [1],
107
+ label: [1],
108
+ value: [1],
109
+ placeholder: [1],
110
+ name: [1],
111
+ additional: [1],
112
+ additionalId: [1, "additional-id"],
113
+ inputId: [1, "input-id"],
114
+ errorId: [1, "error-id"],
115
+ disabled: [4],
116
+ minlength: [2],
117
+ maxlength: [2],
118
+ readonly: [4],
119
+ inputmode: [1],
120
+ list: [1],
121
+ autocomplete: [1],
122
+ required: [4],
123
+ requiredErrorMessage: [1, "required-error-message"],
124
+ emailErrorMessage: [1, "email-error-message"],
125
+ minlengthErrorMessage: [1, "minlength-error-message"],
126
+ showValidIcon: [4, "show-valid-icon"],
127
+ pattern: [1],
128
+ patternErrorMessage: [1, "pattern-error-message"],
129
+ errorMessage: [1, "error-message"],
130
+ touched: [32],
131
+ dirty: [32],
132
+ inputValue: [32],
133
+ errorMessageState: [32],
134
+ focusInput: [64]
135
+ }]);
136
+ function M() {
137
+ if (typeof customElements > "u")
138
+ return;
139
+ ["telia-text-input", "telia-field-assistive-text", "telia-field-error", "telia-field-valid", "telia-icon", "telia-label", "telia-vst"].forEach((e) => {
140
+ switch (e) {
141
+ case "telia-text-input":
142
+ customElements.get(e) || customElements.define(e, V);
143
+ break;
144
+ case "telia-field-assistive-text":
145
+ customElements.get(e) || h();
146
+ break;
147
+ case "telia-field-error":
148
+ customElements.get(e) || v();
149
+ break;
150
+ case "telia-field-valid":
151
+ customElements.get(e) || g();
152
+ break;
153
+ case "telia-icon":
154
+ customElements.get(e) || f();
155
+ break;
156
+ case "telia-label":
157
+ customElements.get(e) || _();
158
+ break;
159
+ case "telia-vst":
160
+ customElements.get(e) || x();
161
+ break;
162
+ }
163
+ });
164
+ }
165
+ M();
166
+ export {
167
+ M as d
168
+ };
169
+ //# sourceMappingURL=telia-text-input2-db9121d9.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"telia-text-input2-db9121d9.js","sources":["../../../node_modules/.pnpm/@teliads+components@21.3.1/node_modules/@teliads/components/dist/components/telia-text-input2.js"],"sourcesContent":["import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';\nimport { u as uniqueId } from './uniqueId.js';\nimport { s as stringCombiner } from './stringCombiner.js';\nimport { d as defineCustomElement$6 } from './telia-field-assistive-text2.js';\nimport { d as defineCustomElement$5 } from './telia-field-error2.js';\nimport { d as defineCustomElement$4 } from './telia-field-valid2.js';\nimport { d as defineCustomElement$3 } from './telia-icon2.js';\nimport { d as defineCustomElement$2 } from './telia-label2.js';\nimport { d as defineCustomElement$1 } from './telia-vst2.js';\n\n// Create a const where all members have a readonly value\n// and literal type by using const assertion.\nconst TextFieldTypes = {\n text: 'text',\n number: 'number',\n email: 'email',\n tel: 'tel',\n search: 'search',\n password: 'password',\n};\n\nconst teliaTextInputCss = \".telia-text-input{display:flex;flex-direction:column}.telia-text-input__input{border:calc(0.1rem * var(--voca-rem-multiplier)) solid rgba(0, 0, 0, 0.3);border-radius:calc(0.2rem * var(--voca-rem-multiplier));background-color:#ffffff;font-family:\\\"TeliaSans\\\", Helvetica, Arial, \\\"Lucida Grande\\\", sans-serif;font-weight:normal;font-size:calc(1.6rem * var(--voca-rem-multiplier));line-height:1.5;-webkit-appearance:none;appearance:none;box-sizing:border-box;color:rgba(0, 0, 0, 0.85);display:block;margin:0;padding:calc(1rem * var(--voca-rem-multiplier)) calc(1.2rem * var(--voca-rem-multiplier));width:100%;height:calc(4.6rem * var(--voca-rem-multiplier));margin:calc(0.4rem * var(--voca-rem-multiplier)) 0 0;order:2}.telia-text-input__input:required{box-shadow:none}.telia-text-input__input[type=search]{-webkit-appearance:textfield;outline-offset:calc(-0.2rem * var(--voca-rem-multiplier))}.telia-text-input__input[type=search]::-webkit-search-decoration{-webkit-appearance:none}.telia-text-input__input[type=number]~.telia-text-input__valid-icon-container,.telia-text-input__input[type=search]~.telia-text-input__valid-icon-container{margin:calc(-1 * (4.6rem * var(--voca-rem-multiplier))) calc(1.2rem * var(--voca-rem-multiplier)) 0 calc(100% - (3.2rem * var(--voca-rem-multiplier)));width:0}.telia-text-input__input:hover{border:calc(0.2rem * var(--voca-rem-multiplier)) solid #29003e;padding:calc(calc(1rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier))) calc(calc(1.2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)))}.telia-text-input__input:hover:focus{border:calc(0.1rem * var(--voca-rem-multiplier)) solid rgba(0, 0, 0, 0.3)}.telia-text-input__input:focus{outline:solid calc(0.3rem * var(--voca-rem-multiplier)) #0099ff;outline-offset:calc(0.2rem * var(--voca-rem-multiplier));padding:calc(1rem * var(--voca-rem-multiplier)) calc(1.2rem * var(--voca-rem-multiplier))}.telia-text-input__input:focus:hover{border:calc(0.1rem * var(--voca-rem-multiplier)) solid rgba(0, 0, 0, 0.3)}.telia-text-input__input:read-only{border:calc(0.1rem * var(--voca-rem-multiplier)) solid #c8c8cd;background-color:rgba(0, 0, 0, 0.05)}.telia-text-input__input:read-only:hover{border:calc(0.1rem * var(--voca-rem-multiplier)) solid #c8c8cd;padding:calc(1rem * var(--voca-rem-multiplier)) calc(1.2rem * var(--voca-rem-multiplier))}.telia-text-input__input:disabled{border:calc(0.1rem * var(--voca-rem-multiplier)) solid rgba(0, 0, 0, 0.15);background-color:rgba(0, 0, 0, 0.1);color:rgba(0, 0, 0, 0.4);cursor:not-allowed;-webkit-text-fill-color:#606064}.telia-text-input__input:disabled:hover{padding:calc(1rem * var(--voca-rem-multiplier)) calc(1.2rem * var(--voca-rem-multiplier))}.telia-text-input__input:disabled~telia-label .telia-label{color:rgba(0, 0, 0, 0.4);cursor:not-allowed}.telia-text-input__input:disabled~.telia-text-input__additional{color:rgba(0, 0, 0, 0.4)}.telia-text-input__input:invalid{box-shadow:none}.telia-text-input__input--icon-shown{padding:calc(1rem * var(--voca-rem-multiplier)) calc(4.5rem * var(--voca-rem-multiplier)) calc(1rem * var(--voca-rem-multiplier)) calc(1.2rem * var(--voca-rem-multiplier))}.telia-text-input__input--touched:invalid{border:calc(0.1rem * var(--voca-rem-multiplier)) solid #e4175c}.telia-text-input__input--touched:invalid:focus{border:calc(0.1rem * var(--voca-rem-multiplier)) solid rgba(0, 0, 0, 0.3)}.telia-text-input__input--touched:invalid:hover:not(:focus){border:calc(0.2rem * var(--voca-rem-multiplier)) solid #e4175c;padding:calc(calc(1rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier))) calc(calc(1.2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)))}.telia-text-input__valid-icon-container{align-items:center;display:flex;flex-direction:row;height:calc(4.6rem * var(--voca-rem-multiplier));justify-content:flex-end;margin:calc(calc(4.6rem * var(--voca-rem-multiplier)) * -1) calc(1.2rem * var(--voca-rem-multiplier)) 0 calc(100% - calc(1.2rem * var(--voca-rem-multiplier)));order:3}.telia-text-input__additional{order:4}.telia-text-input__error{margin:calc(0.4rem * var(--voca-rem-multiplier)) 0 0;order:5}\";\n\nconst TeliaTextInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {\n constructor() {\n super();\n this.__registerHost();\n this.valueChange = createEvent(this, \"valueChange\", 7);\n /** Type of input as a string */\n this.type = TextFieldTypes.text;\n /** Value of input */\n this.value = '';\n /** Additional description id */\n this.additionalId = uniqueId('additional');\n /** Input element id */\n this.inputId = uniqueId('input');\n /** Error description id */\n this.errorId = uniqueId('error');\n /** Disabled state */\n this.disabled = false;\n /** Readonly state */\n this.readonly = false;\n /** Field needs to be filled, so it can be submitted */\n this.required = false;\n /** Show valid icon when value passes all validations. Use sparingly. */\n this.showValidIcon = false;\n /** Tracking id is used to identify and count Component usage */\n this.dataTrackingId = 'telia-text-input';\n /**\n * Input has been blurred at least once.\n */\n this.touched = false;\n /**\n * Input has received data at least once.\n */\n this.dirty = false;\n /**\n * Real time value of input\n */\n this.inputValue = '';\n /**\n * Error message\n */\n this.errorMessageState = '';\n this.updateInputValue = () => {\n // eslint-disable-next-line @stencil/strict-boolean-conditions\n this.inputValue = this.inputElement ? this.inputElement.value : this.value;\n };\n /**\n * Check if input value state is valid with given pattern. This is\n * imitating native input validation.\n */\n this.isValuePatternValid = () => {\n if (this.pattern) {\n const regexp = new RegExp('^(?:' + this.pattern + ')$');\n return regexp.test(this.inputValue);\n }\n return true;\n };\n this.isValueLessThanMinlength = () => {\n return (this.inputValue.length > 0 && this.inputValue.length < this.minlength);\n };\n /**\n * Check if validation failed due to type mismatch.\n * Type mismatch is set to true when email, url, ... field type built-in validation triggers\n */\n this.isValueTypeInvalid = () => {\n var _a;\n return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.validity.typeMismatch;\n };\n /**\n * Update error message and keep native input error message in sync.\n */\n this.updateErrorMessage = message => {\n var _a;\n (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.setCustomValidity(message);\n this.errorMessageState = message;\n };\n /**\n * Check if input value is empty, so required should be triggered.\n */\n this.isValueMissing = () => {\n return this.inputValue.length === 0;\n };\n this.updateErrorState = () => {\n var _a, _b;\n const errorMessageIsSet = !!((_a = this.errorMessageState) === null || _a === void 0 ? void 0 : _a.length);\n const requiredInUse = this.required;\n const patternInUse = !!this.pattern;\n const minlengthInUse = this.minlength;\n const generalErrorInUse = !!((_b = this.errorMessage) === null || _b === void 0 ? void 0 : _b.length);\n const emailErrorInUse = !!this.emailErrorMessage && this.type === 'email';\n if (generalErrorInUse) {\n this.updateErrorMessage(this.errorMessage);\n this.touched = true;\n // General error message overrides other errors, so exit here.\n return;\n }\n if (patternInUse && !this.isValueMissing()) {\n if (this.touched &&\n !!this.patternErrorMessage &&\n !this.isValuePatternValid()) {\n this.updateErrorMessage(this.patternErrorMessage);\n }\n }\n if (minlengthInUse) {\n if (this.touched &&\n !!this.minlengthErrorMessage &&\n this.isValueLessThanMinlength()) {\n this.updateErrorMessage(this.minlengthErrorMessage);\n }\n }\n if (requiredInUse) {\n /**\n * Follow HTML5 input ways of working,\n * email field is validated only if type is email and required is set to true\n */\n if (emailErrorInUse && this.isValueTypeInvalid() && this.touched) {\n this.updateErrorMessage(this.emailErrorMessage);\n }\n if (this.touched &&\n !!this.requiredErrorMessage &&\n this.isValueMissing()) {\n this.updateErrorMessage(this.requiredErrorMessage);\n }\n }\n // Clean error message if needed\n if (errorMessageIsSet) {\n if (patternInUse && !this.isValuePatternValid())\n return;\n if (minlengthInUse && this.isValueLessThanMinlength())\n return;\n if (requiredInUse && this.isValueMissing())\n return;\n if (emailErrorInUse && this.isValueTypeInvalid())\n return;\n this.updateErrorMessage('');\n }\n };\n }\n /**\n * Sets focus on input\n */\n async focusInput() {\n this.inputElement.focus();\n }\n componentWillLoad() {\n this.updateInputValue();\n this.updateErrorState();\n }\n componentWillUpdate() {\n this.updateErrorState();\n }\n componentDidRender() {\n // This check is for Stencil unit tests. Input element is mocked,\n // but setCustomValidity method is not. It is undefined.\n var _a, _b, _c;\n // eslint-disable-next-line @stencil/strict-boolean-conditions\n if (this.inputElement && ((_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.setCustomValidity)) {\n (_b = this.inputElement) === null || _b === void 0 ? void 0 : _b.setCustomValidity(this.errorMessageState);\n }\n if (this.htmlForm) {\n (_c = this.inputElement) === null || _c === void 0 ? void 0 : _c.setAttribute('form', this.htmlForm);\n }\n }\n /**\n * Watch if value attributes changes after initial load.\n * Needed for prefilling functionality to work with input validations.\n * @param value value attribute\n */\n componentValueChanged(value) {\n this.inputValue = value;\n this.updateErrorState();\n }\n /**\n * This method is used to determine\n * if a 'valid icon' can be shown to the user.\n * Given the complexity of the validation logic\n * in this component, using this method\n * to determine 'validity' in a general sense\n * should be carefully considered and tested.\n */\n isValid() {\n return (!this.errorMessage &&\n !this.isValueMissing() &&\n !this.isValueLessThanMinlength() &&\n !this.isValueTypeInvalid() &&\n this.isValuePatternValid());\n }\n render() {\n const showError = this.touched && !!this.errorMessageState.length;\n const showAdditional = !!this.additional;\n const describedBy = stringCombiner({\n [this.additionalId]: showAdditional,\n [this.errorId]: this.errorMessageState.length,\n });\n const showValidIcon = this.showValidIcon && this.dirty && this.isValid();\n return (h(\"div\", { class: \"telia-text-input\" }, h(\"input\", { class: {\n 'telia-text-input__input': true,\n 'telia-text-input__input--touched': this.touched,\n 'telia-text-input__input--icon-shown': showValidIcon,\n }, placeholder: this.placeholder, type: this.type, id: this.inputId, \"aria-describedby\": describedBy, minlength: this.minlength, maxlength: this.maxlength, disabled: this.disabled, readonly: this.readonly, value: this.value, name: this.name, onChange: event => {\n /** valueChange is deprecated, will be removed in the future releases. */\n this.valueChange.emit(event);\n }, onInput: () => {\n this.dirty = true;\n this.updateInputValue();\n this.updateErrorState();\n }, inputmode: this.inputmode, list: this.list, autocomplete: this.autocomplete, required: this.required, onBlur: () => {\n this.touched = true;\n this.updateErrorState();\n }, ref: ref => (this.inputElement = ref), pattern: this.pattern, onInvalid: event => {\n event.preventDefault();\n this.touched = true;\n this.updateErrorState();\n }, form: this.htmlForm }), showValidIcon && (h(\"div\", { class: \"telia-text-input__valid-icon-container\" }, h(\"telia-field-valid\", { class: \"telia-text-input__valid-icon\" }))), h(\"telia-label\", { class: \"telia-text-input__label\", htmlFor: this.inputId }, this.required && h(\"span\", { \"aria-hidden\": \"true\" }, '* '), this.label), showAdditional && (h(\"telia-field-assistive-text\", { class: \"telia-text-input__additional\", id: this.additionalId }, this.additional)), showError && (h(\"telia-field-error\", { id: this.errorId, class: \"telia-text-input__error\" }, this.errorMessageState)), h(\"telia-vst\", { dataTrackingId: this.dataTrackingId })));\n }\n static get watchers() { return {\n \"value\": [\"componentValueChanged\"]\n }; }\n static get style() { return teliaTextInputCss; }\n}, [0, \"telia-text-input\", {\n \"dataTestid\": [1, \"data-testid\"],\n \"htmlForm\": [1, \"html-form\"],\n \"type\": [1],\n \"label\": [1],\n \"value\": [1],\n \"placeholder\": [1],\n \"name\": [1],\n \"additional\": [1],\n \"additionalId\": [1, \"additional-id\"],\n \"inputId\": [1, \"input-id\"],\n \"errorId\": [1, \"error-id\"],\n \"disabled\": [4],\n \"minlength\": [2],\n \"maxlength\": [2],\n \"readonly\": [4],\n \"inputmode\": [1],\n \"list\": [1],\n \"autocomplete\": [1],\n \"required\": [4],\n \"requiredErrorMessage\": [1, \"required-error-message\"],\n \"emailErrorMessage\": [1, \"email-error-message\"],\n \"minlengthErrorMessage\": [1, \"minlength-error-message\"],\n \"showValidIcon\": [4, \"show-valid-icon\"],\n \"pattern\": [1],\n \"patternErrorMessage\": [1, \"pattern-error-message\"],\n \"errorMessage\": [1, \"error-message\"],\n \"touched\": [32],\n \"dirty\": [32],\n \"inputValue\": [32],\n \"errorMessageState\": [32],\n \"focusInput\": [64]\n }]);\nfunction defineCustomElement() {\n if (typeof customElements === \"undefined\") {\n return;\n }\n const components = [\"telia-text-input\", \"telia-field-assistive-text\", \"telia-field-error\", \"telia-field-valid\", \"telia-icon\", \"telia-label\", \"telia-vst\"];\n components.forEach(tagName => { switch (tagName) {\n case \"telia-text-input\":\n if (!customElements.get(tagName)) {\n customElements.define(tagName, TeliaTextInput);\n }\n break;\n case \"telia-field-assistive-text\":\n if (!customElements.get(tagName)) {\n defineCustomElement$6();\n }\n break;\n case \"telia-field-error\":\n if (!customElements.get(tagName)) {\n defineCustomElement$5();\n }\n break;\n case \"telia-field-valid\":\n if (!customElements.get(tagName)) {\n defineCustomElement$4();\n }\n break;\n case \"telia-icon\":\n if (!customElements.get(tagName)) {\n defineCustomElement$3();\n }\n break;\n case \"telia-label\":\n if (!customElements.get(tagName)) {\n defineCustomElement$2();\n }\n break;\n case \"telia-vst\":\n if (!customElements.get(tagName)) {\n defineCustomElement$1();\n }\n break;\n } });\n}\ndefineCustomElement();\n\nexport { TeliaTextInput as T, defineCustomElement as d };\n"],"names":["TextFieldTypes","teliaTextInputCss","TeliaTextInput","proxyCustomElement","HTMLElement","createEvent","uniqueId","_a","message","_b","errorMessageIsSet","requiredInUse","patternInUse","minlengthInUse","generalErrorInUse","emailErrorInUse","_c","value","showError","showAdditional","describedBy","stringCombiner","showValidIcon","h","event","ref","defineCustomElement","tagName","defineCustomElement$6","defineCustomElement$5","defineCustomElement$4","defineCustomElement$3","defineCustomElement$2","defineCustomElement$1"],"mappings":";;;;;;;;;AAYA,MAAMA,IAAiB;AAAA,EACrB,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,KAAK;AAAA,EACL,QAAQ;AAAA,EACR,UAAU;AACZ,GAEMC,IAAoB,0kIAEpBC,IAA+B,gBAAAC,EAAmB,cAAcC,EAAY;AAAA,EAChF,cAAc;AACZ,aACA,KAAK,eAAc,GACnB,KAAK,cAAcC,EAAY,MAAM,eAAe,CAAC,GAErD,KAAK,OAAOL,EAAe,MAE3B,KAAK,QAAQ,IAEb,KAAK,eAAeM,EAAS,YAAY,GAEzC,KAAK,UAAUA,EAAS,OAAO,GAE/B,KAAK,UAAUA,EAAS,OAAO,GAE/B,KAAK,WAAW,IAEhB,KAAK,WAAW,IAEhB,KAAK,WAAW,IAEhB,KAAK,gBAAgB,IAErB,KAAK,iBAAiB,oBAItB,KAAK,UAAU,IAIf,KAAK,QAAQ,IAIb,KAAK,aAAa,IAIlB,KAAK,oBAAoB,IACzB,KAAK,mBAAmB,MAAM;AAE5B,WAAK,aAAa,KAAK,eAAe,KAAK,aAAa,QAAQ,KAAK;AAAA,IAC3E,GAKI,KAAK,sBAAsB,MACrB,KAAK,UACQ,IAAI,OAAO,SAAS,KAAK,UAAU,IAAI,EACxC,KAAK,KAAK,UAAU,IAE7B,IAET,KAAK,2BAA2B,MACtB,KAAK,WAAW,SAAS,KAAK,KAAK,WAAW,SAAS,KAAK,WAMtE,KA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