@warp-ds/elements 2.2.0-next.3 → 2.2.0-next.5

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.
Files changed (177) hide show
  1. package/README.md +27 -17
  2. package/dist/.storybook/utilities.d.ts +28 -0
  3. package/dist/api.js +1 -49
  4. package/dist/api.js.map +2 -2
  5. package/dist/custom-elements.json +3298 -0
  6. package/dist/index.css +2 -0
  7. package/dist/index.css.map +7 -0
  8. package/dist/index.d.ts +4 -0
  9. package/dist/index.js +502 -7208
  10. package/dist/index.js.map +4 -4
  11. package/dist/packages/affix/affix.stories.d.ts +10 -0
  12. package/dist/packages/affix/affix.test.d.ts +1 -0
  13. package/dist/packages/affix/index.d.ts +52 -24
  14. package/dist/packages/affix/index.js +2448 -2240
  15. package/dist/packages/affix/index.js.map +4 -4
  16. package/dist/packages/affix/react.d.ts +2 -0
  17. package/dist/packages/affix/react.js +2482 -0
  18. package/dist/packages/affix/react.js.map +7 -0
  19. package/dist/packages/affix/styles.d.ts +1 -0
  20. package/dist/packages/alert/alert.stories.d.ts +15 -0
  21. package/dist/packages/alert/alert.test.d.ts +1 -0
  22. package/dist/packages/alert/index.d.ts +29 -18
  23. package/dist/packages/alert/index.js +2452 -2446
  24. package/dist/packages/alert/index.js.map +4 -4
  25. package/dist/packages/alert/react.d.ts +2 -0
  26. package/dist/packages/alert/react.js +2492 -0
  27. package/dist/packages/alert/react.js.map +7 -0
  28. package/dist/packages/alert/styles.d.ts +1 -0
  29. package/dist/packages/attention/attention.stories.d.ts +10 -0
  30. package/dist/packages/attention/index.d.ts +14 -1
  31. package/dist/packages/attention/index.js +17 -3979
  32. package/dist/packages/attention/index.js.map +4 -4
  33. package/dist/packages/badge/badge.stories.d.ts +17 -0
  34. package/dist/packages/badge/badge.test.d.ts +1 -0
  35. package/dist/packages/badge/index.d.ts +17 -12
  36. package/dist/packages/badge/index.js +2441 -300
  37. package/dist/packages/badge/index.js.map +4 -4
  38. package/dist/packages/badge/react.d.ts +2 -0
  39. package/dist/packages/badge/react.js +2465 -0
  40. package/dist/packages/badge/react.js.map +7 -0
  41. package/dist/packages/badge/styles.d.ts +1 -0
  42. package/dist/packages/box/box.stories.d.ts +14 -0
  43. package/dist/packages/box/box.test.d.ts +1 -0
  44. package/dist/packages/box/index.d.ts +21 -21
  45. package/dist/packages/box/index.js +2441 -304
  46. package/dist/packages/box/index.js.map +4 -4
  47. package/dist/packages/box/react.d.ts +2 -0
  48. package/dist/packages/box/react.js +2465 -0
  49. package/dist/packages/box/react.js.map +7 -0
  50. package/dist/packages/box/slot.test.d.ts +1 -0
  51. package/dist/packages/box/styles.d.ts +1 -0
  52. package/dist/packages/breadcrumbs/breadcrumbs.stories.d.ts +12 -0
  53. package/dist/packages/breadcrumbs/breadcrumbs.test.d.ts +1 -0
  54. package/dist/packages/breadcrumbs/index.d.ts +24 -16
  55. package/dist/packages/breadcrumbs/index.js +2402 -2051
  56. package/dist/packages/breadcrumbs/index.js.map +4 -4
  57. package/dist/packages/breadcrumbs/react.d.ts +2 -0
  58. package/dist/packages/breadcrumbs/react.js +2475 -0
  59. package/dist/packages/breadcrumbs/react.js.map +7 -0
  60. package/dist/packages/breadcrumbs/styles.d.ts +1 -0
  61. package/dist/packages/button/button.stories.d.ts +21 -0
  62. package/dist/packages/button/button.test.d.ts +1 -1
  63. package/dist/packages/button/index.d.ts +84 -9
  64. package/dist/packages/button/index.js +2407 -2426
  65. package/dist/packages/button/index.js.map +4 -4
  66. package/dist/packages/button/react.d.ts +2 -0
  67. package/dist/packages/button/react.js +2480 -0
  68. package/dist/packages/button/react.js.map +7 -0
  69. package/dist/packages/button/styles.d.ts +1 -0
  70. package/dist/packages/card/card.stories.d.ts +15 -0
  71. package/dist/packages/card/card.test.d.ts +1 -0
  72. package/dist/packages/card/index.d.ts +33 -17
  73. package/dist/packages/card/index.js +2403 -2067
  74. package/dist/packages/card/index.js.map +4 -4
  75. package/dist/packages/card/react.d.ts +2 -0
  76. package/dist/packages/card/react.js +2487 -0
  77. package/dist/packages/card/react.js.map +7 -0
  78. package/dist/packages/card/styles.d.ts +1 -0
  79. package/dist/packages/dead-toggle/dead-toggle.stories.d.ts +10 -0
  80. package/dist/packages/dead-toggle/dead-toggle.test.d.ts +1 -0
  81. package/dist/packages/dead-toggle/index.d.ts +21 -0
  82. package/dist/packages/dead-toggle/index.js +2487 -0
  83. package/dist/packages/dead-toggle/index.js.map +7 -0
  84. package/dist/packages/dead-toggle/react.d.ts +2 -0
  85. package/dist/packages/dead-toggle/react.js +2507 -0
  86. package/dist/packages/dead-toggle/react.js.map +7 -0
  87. package/dist/packages/expandable/expandable.stories.d.ts +19 -0
  88. package/dist/packages/expandable/expandable.test.d.ts +1 -0
  89. package/dist/packages/expandable/index.d.ts +55 -50
  90. package/dist/packages/expandable/index.js +2416 -2287
  91. package/dist/packages/expandable/index.js.map +4 -4
  92. package/dist/packages/expandable/react.d.ts +2 -0
  93. package/dist/packages/expandable/react.js +2495 -0
  94. package/dist/packages/expandable/react.js.map +7 -0
  95. package/dist/packages/expandable/styles.d.ts +1 -0
  96. package/dist/packages/modal/index.d.ts +5 -6
  97. package/dist/packages/modal/index.js +2620 -2497
  98. package/dist/packages/modal/index.js.map +4 -4
  99. package/dist/packages/modal/modal-footer.d.ts +17 -10
  100. package/dist/packages/modal/modal-header.d.ts +20 -13
  101. package/dist/packages/modal/modal-main.d.ts +19 -8
  102. package/dist/packages/modal/modal.stories.d.ts +19 -0
  103. package/dist/packages/modal/react.d.ts +4 -0
  104. package/dist/packages/modal/react.js +2754 -0
  105. package/dist/packages/modal/react.js.map +7 -0
  106. package/dist/packages/modal/util.d.ts +7 -17
  107. package/dist/packages/pagination/index.d.ts +34 -0
  108. package/dist/packages/pagination/index.js +2486 -0
  109. package/dist/packages/pagination/index.js.map +7 -0
  110. package/dist/packages/pagination/locales/da/messages.d.mts +1 -0
  111. package/dist/packages/pagination/locales/en/messages.d.mts +1 -0
  112. package/dist/packages/pagination/locales/fi/messages.d.mts +1 -0
  113. package/dist/packages/pagination/locales/nb/messages.d.mts +1 -0
  114. package/dist/packages/pagination/locales/sv/messages.d.mts +1 -0
  115. package/dist/packages/pagination/pagination.stories.d.ts +14 -0
  116. package/dist/packages/pagination/pagination.test.d.ts +1 -0
  117. package/dist/packages/pagination/react.d.ts +2 -0
  118. package/dist/packages/pagination/react.js +2506 -0
  119. package/dist/packages/pagination/react.js.map +7 -0
  120. package/dist/packages/pagination/styles.d.ts +1 -0
  121. package/dist/packages/pill/index.d.ts +44 -23
  122. package/dist/packages/pill/index.js +2408 -2175
  123. package/dist/packages/pill/index.js.map +4 -4
  124. package/dist/packages/pill/pill.stories.d.ts +12 -0
  125. package/dist/packages/pill/pill.test.d.ts +1 -0
  126. package/dist/packages/pill/styles.d.ts +1 -0
  127. package/dist/packages/rip-and-tear-checkbox/checkbox.d.ts +64 -0
  128. package/dist/packages/rip-and-tear-checkbox/index.css +2 -0
  129. package/dist/packages/rip-and-tear-checkbox/index.css.map +7 -0
  130. package/dist/packages/rip-and-tear-checkbox/index.d.ts +6 -0
  131. package/dist/packages/rip-and-tear-checkbox/index.js +36 -0
  132. package/dist/packages/rip-and-tear-checkbox/index.js.map +7 -0
  133. package/dist/packages/rip-and-tear-radio/base-element.d.ts +46 -0
  134. package/dist/packages/rip-and-tear-radio/custom-error-validator.d.ts +6 -0
  135. package/dist/packages/rip-and-tear-radio/form-associated-element.d.ts +103 -0
  136. package/dist/packages/rip-and-tear-radio/index.css +2 -0
  137. package/dist/packages/rip-and-tear-radio/index.css.map +7 -0
  138. package/dist/packages/rip-and-tear-radio/index.d.ts +8 -0
  139. package/dist/packages/rip-and-tear-radio/index.js +34 -0
  140. package/dist/packages/rip-and-tear-radio/index.js.map +7 -0
  141. package/dist/packages/rip-and-tear-radio/invalid.d.ts +8 -0
  142. package/dist/packages/rip-and-tear-radio/math.d.ts +1 -0
  143. package/dist/packages/rip-and-tear-radio/radio-group.d.ts +72 -0
  144. package/dist/packages/rip-and-tear-radio/radio.d.ts +38 -0
  145. package/dist/packages/rip-and-tear-radio/required-validator.d.ts +11 -0
  146. package/dist/packages/rip-and-tear-radio/slot.d.ts +20 -0
  147. package/dist/packages/rip-and-tear-radio/watch.d.ts +26 -0
  148. package/dist/packages/select/index.d.ts +59 -58
  149. package/dist/packages/select/index.js +2421 -2533
  150. package/dist/packages/select/index.js.map +4 -4
  151. package/dist/packages/select/react.d.ts +2 -0
  152. package/dist/packages/select/react.js +2494 -0
  153. package/dist/packages/select/react.js.map +7 -0
  154. package/dist/packages/select/select.stories.d.ts +10 -0
  155. package/dist/packages/select/select.test.d.ts +1 -0
  156. package/dist/packages/select/styles.d.ts +1 -0
  157. package/dist/packages/textfield/index.d.ts +72 -74
  158. package/dist/packages/textfield/index.js +2455 -698
  159. package/dist/packages/textfield/index.js.map +4 -4
  160. package/dist/packages/textfield/react.d.ts +2 -0
  161. package/dist/packages/textfield/react.js +2490 -0
  162. package/dist/packages/textfield/react.js.map +7 -0
  163. package/dist/packages/textfield/styles.d.ts +1 -0
  164. package/dist/packages/textfield/textfield.stories.d.ts +17 -0
  165. package/dist/packages/textfield/textfield.test.d.ts +1 -0
  166. package/dist/packages/toast/index.js +24 -2784
  167. package/dist/packages/toast/index.js.map +4 -4
  168. package/dist/packages/toast/toast-container.d.ts +16 -0
  169. package/dist/packages/toast/toast.d.ts +20 -0
  170. package/dist/packages/toast/toast.stories.d.ts +12 -0
  171. package/dist/packages/utils/index.d.ts +1 -1
  172. package/dist/packages/utils/unstyled-heading.d.ts +1 -1
  173. package/dist/setup-tests.d.ts +1 -0
  174. package/dist/vscode.css-custom-data.json +6 -0
  175. package/dist/vscode.html-custom-data.json +313 -0
  176. package/dist/web-types.json +707 -0
  177. package/package.json +61 -18
@@ -1,2466 +1,2472 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
9
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10
- var __spreadValues = (a, b) => {
11
- for (var prop in b || (b = {}))
12
- if (__hasOwnProp.call(b, prop))
13
- __defNormalProp(a, prop, b[prop]);
14
- if (__getOwnPropSymbols)
15
- for (var prop of __getOwnPropSymbols(b)) {
16
- if (__propIsEnum.call(b, prop))
17
- __defNormalProp(a, prop, b[prop]);
18
- }
19
- return a;
20
- };
21
- var __objRest = (source, exclude) => {
22
- var target = {};
23
- for (var prop in source)
24
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
25
- target[prop] = source[prop];
26
- if (source != null && __getOwnPropSymbols)
27
- for (var prop of __getOwnPropSymbols(source)) {
28
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
29
- target[prop] = source[prop];
30
- }
31
- return target;
32
- };
33
- var __commonJS = (cb, mod) => function __require() {
34
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
35
- };
36
- var __copyProps = (to, from, except, desc) => {
37
- if (from && typeof from === "object" || typeof from === "function") {
38
- for (let key of __getOwnPropNames(from))
39
- if (!__hasOwnProp.call(to, key) && key !== except)
40
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
41
- }
42
- return to;
43
- };
44
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
45
- // If the importer is in node compatibility mode or this is not an ESM
46
- // file that has been converted to a CommonJS file using a Babel-
47
- // compatible transform (i.e. "__esModule" has not been set), then set
48
- // "default" to the CommonJS "module.exports" for node compatibility.
49
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
50
- mod
51
- ));
52
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
53
-
54
- // node_modules/.pnpm/unraw@3.0.0/node_modules/unraw/dist/errors.js
55
- var require_errors = __commonJS({
56
- "node_modules/.pnpm/unraw@3.0.0/node_modules/unraw/dist/errors.js"(exports) {
57
- "use strict";
58
- Object.defineProperty(exports, "__esModule", { value: true });
59
- exports.errorMessages = exports.ErrorType = void 0;
60
- var ErrorType;
61
- (function(ErrorType2) {
62
- ErrorType2["MalformedUnicode"] = "MALFORMED_UNICODE";
63
- ErrorType2["MalformedHexadecimal"] = "MALFORMED_HEXADECIMAL";
64
- ErrorType2["CodePointLimit"] = "CODE_POINT_LIMIT";
65
- ErrorType2["OctalDeprecation"] = "OCTAL_DEPRECATION";
66
- ErrorType2["EndOfString"] = "END_OF_STRING";
67
- })(ErrorType = exports.ErrorType || (exports.ErrorType = {}));
68
- exports.errorMessages = /* @__PURE__ */ new Map([
69
- [ErrorType.MalformedUnicode, "malformed Unicode character escape sequence"],
70
- [
71
- ErrorType.MalformedHexadecimal,
72
- "malformed hexadecimal character escape sequence"
73
- ],
74
- [
75
- ErrorType.CodePointLimit,
76
- "Unicode codepoint must not be greater than 0x10FFFF in escape sequence"
77
- ],
78
- [
79
- ErrorType.OctalDeprecation,
80
- '"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'
81
- ],
82
- [ErrorType.EndOfString, "malformed escape sequence at end of string"]
83
- ]);
84
- }
85
- });
86
-
87
- // node_modules/.pnpm/unraw@3.0.0/node_modules/unraw/dist/index.js
88
- var require_dist = __commonJS({
89
- "node_modules/.pnpm/unraw@3.0.0/node_modules/unraw/dist/index.js"(exports) {
90
- "use strict";
91
- Object.defineProperty(exports, "__esModule", { value: true });
92
- exports.unraw = exports.errorMessages = exports.ErrorType = void 0;
93
- var errors_1 = require_errors();
94
- Object.defineProperty(exports, "ErrorType", { enumerable: true, get: function() {
95
- return errors_1.ErrorType;
96
- } });
97
- Object.defineProperty(exports, "errorMessages", { enumerable: true, get: function() {
98
- return errors_1.errorMessages;
99
- } });
100
- function parseHexToInt(hex) {
101
- const isOnlyHexChars = !hex.match(/[^a-f0-9]/i);
102
- return isOnlyHexChars ? parseInt(hex, 16) : NaN;
103
- }
104
- function validateAndParseHex(hex, errorName, enforcedLength) {
105
- const parsedHex = parseHexToInt(hex);
106
- if (Number.isNaN(parsedHex) || enforcedLength !== void 0 && enforcedLength !== hex.length) {
107
- throw new SyntaxError(errors_1.errorMessages.get(errorName));
108
- }
109
- return parsedHex;
110
- }
111
- function parseHexadecimalCode(code) {
112
- const parsedCode = validateAndParseHex(code, errors_1.ErrorType.MalformedHexadecimal, 2);
113
- return String.fromCharCode(parsedCode);
114
- }
115
- function parseUnicodeCode(code, surrogateCode) {
116
- const parsedCode = validateAndParseHex(code, errors_1.ErrorType.MalformedUnicode, 4);
117
- if (surrogateCode !== void 0) {
118
- const parsedSurrogateCode = validateAndParseHex(surrogateCode, errors_1.ErrorType.MalformedUnicode, 4);
119
- return String.fromCharCode(parsedCode, parsedSurrogateCode);
120
- }
121
- return String.fromCharCode(parsedCode);
122
- }
123
- function isCurlyBraced(text) {
124
- return text.charAt(0) === "{" && text.charAt(text.length - 1) === "}";
125
- }
126
- function parseUnicodeCodePointCode(codePoint) {
127
- if (!isCurlyBraced(codePoint)) {
128
- throw new SyntaxError(errors_1.errorMessages.get(errors_1.ErrorType.MalformedUnicode));
129
- }
130
- const withoutBraces = codePoint.slice(1, -1);
131
- const parsedCode = validateAndParseHex(withoutBraces, errors_1.ErrorType.MalformedUnicode);
132
- try {
133
- return String.fromCodePoint(parsedCode);
134
- } catch (err) {
135
- throw err instanceof RangeError ? new SyntaxError(errors_1.errorMessages.get(errors_1.ErrorType.CodePointLimit)) : err;
136
- }
137
- }
138
- function parseOctalCode(code, error = false) {
139
- if (error) {
140
- throw new SyntaxError(errors_1.errorMessages.get(errors_1.ErrorType.OctalDeprecation));
141
- }
142
- const parsedCode = parseInt(code, 8);
143
- return String.fromCharCode(parsedCode);
144
- }
145
- var singleCharacterEscapes = /* @__PURE__ */ new Map([
146
- ["b", "\b"],
147
- ["f", "\f"],
148
- ["n", "\n"],
149
- ["r", "\r"],
150
- ["t", " "],
151
- ["v", "\v"],
152
- ["0", "\0"]
153
- ]);
154
- function parseSingleCharacterCode(code) {
155
- return singleCharacterEscapes.get(code) || code;
156
- }
157
- var escapeMatch = /\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;
158
- function unraw2(raw, allowOctals = false) {
159
- return raw.replace(escapeMatch, function(_, backslash, hex, codePoint, unicodeWithSurrogate, surrogate, unicode, octal, singleCharacter) {
160
- if (backslash !== void 0) {
161
- return "\\";
162
- }
163
- if (hex !== void 0) {
164
- return parseHexadecimalCode(hex);
165
- }
166
- if (codePoint !== void 0) {
167
- return parseUnicodeCodePointCode(codePoint);
168
- }
169
- if (unicodeWithSurrogate !== void 0) {
170
- return parseUnicodeCode(unicodeWithSurrogate, surrogate);
171
- }
172
- if (unicode !== void 0) {
173
- return parseUnicodeCode(unicode);
174
- }
175
- if (octal === "0") {
176
- return "\0";
177
- }
178
- if (octal !== void 0) {
179
- return parseOctalCode(octal, !allowOctals);
180
- }
181
- if (singleCharacter !== void 0) {
182
- return parseSingleCharacterCode(singleCharacter);
183
- }
184
- throw new SyntaxError(errors_1.errorMessages.get(errors_1.ErrorType.EndOfString));
185
- });
186
- }
187
- exports.unraw = unraw2;
188
- exports.default = unraw2;
189
- }
190
- });
191
-
192
- // node_modules/.pnpm/moo@0.5.2/node_modules/moo/moo.js
193
- var require_moo = __commonJS({
194
- "node_modules/.pnpm/moo@0.5.2/node_modules/moo/moo.js"(exports, module) {
195
- (function(root, factory) {
196
- if (typeof define === "function" && define.amd) {
197
- define([], factory);
198
- } else if (typeof module === "object" && module.exports) {
199
- module.exports = factory();
200
- } else {
201
- root.moo = factory();
202
- }
203
- })(exports, function() {
204
- "use strict";
205
- var hasOwnProperty = Object.prototype.hasOwnProperty;
206
- var toString = Object.prototype.toString;
207
- var hasSticky = typeof new RegExp().sticky === "boolean";
208
- function isRegExp(o) {
209
- return o && toString.call(o) === "[object RegExp]";
210
- }
211
- function isObject(o) {
212
- return o && typeof o === "object" && !isRegExp(o) && !Array.isArray(o);
213
- }
214
- function reEscape(s) {
215
- return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
216
- }
217
- function reGroups(s) {
218
- var re = new RegExp("|" + s);
219
- return re.exec("").length - 1;
220
- }
221
- function reCapture(s) {
222
- return "(" + s + ")";
223
- }
224
- function reUnion(regexps) {
225
- if (!regexps.length) return "(?!)";
226
- var source = regexps.map(function(s) {
227
- return "(?:" + s + ")";
228
- }).join("|");
229
- return "(?:" + source + ")";
230
- }
231
- function regexpOrLiteral(obj) {
232
- if (typeof obj === "string") {
233
- return "(?:" + reEscape(obj) + ")";
234
- } else if (isRegExp(obj)) {
235
- if (obj.ignoreCase) throw new Error("RegExp /i flag not allowed");
236
- if (obj.global) throw new Error("RegExp /g flag is implied");
237
- if (obj.sticky) throw new Error("RegExp /y flag is implied");
238
- if (obj.multiline) throw new Error("RegExp /m flag is implied");
239
- return obj.source;
240
- } else {
241
- throw new Error("Not a pattern: " + obj);
242
- }
243
- }
244
- function pad(s, length) {
245
- if (s.length > length) {
246
- return s;
247
- }
248
- return Array(length - s.length + 1).join(" ") + s;
249
- }
250
- function lastNLines(string, numLines) {
251
- var position = string.length;
252
- var lineBreaks = 0;
253
- while (true) {
254
- var idx = string.lastIndexOf("\n", position - 1);
255
- if (idx === -1) {
256
- break;
257
- } else {
258
- lineBreaks++;
259
- }
260
- position = idx;
261
- if (lineBreaks === numLines) {
262
- break;
263
- }
264
- if (position === 0) {
265
- break;
266
- }
267
- }
268
- var startPosition = lineBreaks < numLines ? 0 : position + 1;
269
- return string.substring(startPosition).split("\n");
270
- }
271
- function objectToRules(object) {
272
- var keys = Object.getOwnPropertyNames(object);
273
- var result = [];
274
- for (var i = 0; i < keys.length; i++) {
275
- var key = keys[i];
276
- var thing = object[key];
277
- var rules = [].concat(thing);
278
- if (key === "include") {
279
- for (var j = 0; j < rules.length; j++) {
280
- result.push({ include: rules[j] });
281
- }
282
- continue;
283
- }
284
- var match = [];
285
- rules.forEach(function(rule) {
286
- if (isObject(rule)) {
287
- if (match.length) result.push(ruleOptions(key, match));
288
- result.push(ruleOptions(key, rule));
289
- match = [];
290
- } else {
291
- match.push(rule);
292
- }
293
- });
294
- if (match.length) result.push(ruleOptions(key, match));
295
- }
296
- return result;
297
- }
298
- function arrayToRules(array) {
299
- var result = [];
300
- for (var i = 0; i < array.length; i++) {
301
- var obj = array[i];
302
- if (obj.include) {
303
- var include = [].concat(obj.include);
304
- for (var j = 0; j < include.length; j++) {
305
- result.push({ include: include[j] });
306
- }
307
- continue;
308
- }
309
- if (!obj.type) {
310
- throw new Error("Rule has no type: " + JSON.stringify(obj));
311
- }
312
- result.push(ruleOptions(obj.type, obj));
313
- }
314
- return result;
315
- }
316
- function ruleOptions(type, obj) {
317
- if (!isObject(obj)) {
318
- obj = { match: obj };
319
- }
320
- if (obj.include) {
321
- throw new Error("Matching rules cannot also include states");
322
- }
323
- var options = {
324
- defaultType: type,
325
- lineBreaks: !!obj.error || !!obj.fallback,
326
- pop: false,
327
- next: null,
328
- push: null,
329
- error: false,
330
- fallback: false,
331
- value: null,
332
- type: null,
333
- shouldThrow: false
334
- };
335
- for (var key in obj) {
336
- if (hasOwnProperty.call(obj, key)) {
337
- options[key] = obj[key];
338
- }
339
- }
340
- if (typeof options.type === "string" && type !== options.type) {
341
- throw new Error("Type transform cannot be a string (type '" + options.type + "' for token '" + type + "')");
342
- }
343
- var match = options.match;
344
- options.match = Array.isArray(match) ? match : match ? [match] : [];
345
- options.match.sort(function(a, b) {
346
- return isRegExp(a) && isRegExp(b) ? 0 : isRegExp(b) ? -1 : isRegExp(a) ? 1 : b.length - a.length;
347
- });
348
- return options;
349
- }
350
- function toRules(spec) {
351
- return Array.isArray(spec) ? arrayToRules(spec) : objectToRules(spec);
352
- }
353
- var defaultErrorRule = ruleOptions("error", { lineBreaks: true, shouldThrow: true });
354
- function compileRules(rules, hasStates) {
355
- var errorRule = null;
356
- var fast = /* @__PURE__ */ Object.create(null);
357
- var fastAllowed = true;
358
- var unicodeFlag = null;
359
- var groups = [];
360
- var parts = [];
361
- for (var i = 0; i < rules.length; i++) {
362
- if (rules[i].fallback) {
363
- fastAllowed = false;
364
- }
365
- }
366
- for (var i = 0; i < rules.length; i++) {
367
- var options = rules[i];
368
- if (options.include) {
369
- throw new Error("Inheritance is not allowed in stateless lexers");
370
- }
371
- if (options.error || options.fallback) {
372
- if (errorRule) {
373
- if (!options.fallback === !errorRule.fallback) {
374
- throw new Error("Multiple " + (options.fallback ? "fallback" : "error") + " rules not allowed (for token '" + options.defaultType + "')");
375
- } else {
376
- throw new Error("fallback and error are mutually exclusive (for token '" + options.defaultType + "')");
377
- }
378
- }
379
- errorRule = options;
380
- }
381
- var match = options.match.slice();
382
- if (fastAllowed) {
383
- while (match.length && typeof match[0] === "string" && match[0].length === 1) {
384
- var word = match.shift();
385
- fast[word.charCodeAt(0)] = options;
386
- }
387
- }
388
- if (options.pop || options.push || options.next) {
389
- if (!hasStates) {
390
- throw new Error("State-switching options are not allowed in stateless lexers (for token '" + options.defaultType + "')");
391
- }
392
- if (options.fallback) {
393
- throw new Error("State-switching options are not allowed on fallback tokens (for token '" + options.defaultType + "')");
394
- }
395
- }
396
- if (match.length === 0) {
397
- continue;
398
- }
399
- fastAllowed = false;
400
- groups.push(options);
401
- for (var j = 0; j < match.length; j++) {
402
- var obj = match[j];
403
- if (!isRegExp(obj)) {
404
- continue;
405
- }
406
- if (unicodeFlag === null) {
407
- unicodeFlag = obj.unicode;
408
- } else if (unicodeFlag !== obj.unicode && options.fallback === false) {
409
- throw new Error("If one rule is /u then all must be");
410
- }
411
- }
412
- var pat = reUnion(match.map(regexpOrLiteral));
413
- var regexp = new RegExp(pat);
414
- if (regexp.test("")) {
415
- throw new Error("RegExp matches empty string: " + regexp);
416
- }
417
- var groupCount = reGroups(pat);
418
- if (groupCount > 0) {
419
- throw new Error("RegExp has capture groups: " + regexp + "\nUse (?: \u2026 ) instead");
420
- }
421
- if (!options.lineBreaks && regexp.test("\n")) {
422
- throw new Error("Rule should declare lineBreaks: " + regexp);
423
- }
424
- parts.push(reCapture(pat));
425
- }
426
- var fallbackRule = errorRule && errorRule.fallback;
427
- var flags = hasSticky && !fallbackRule ? "ym" : "gm";
428
- var suffix2 = hasSticky || fallbackRule ? "" : "|";
429
- if (unicodeFlag === true) flags += "u";
430
- var combined = new RegExp(reUnion(parts) + suffix2, flags);
431
- return { regexp: combined, groups, fast, error: errorRule || defaultErrorRule };
432
- }
433
- function compile(rules) {
434
- var result = compileRules(toRules(rules));
435
- return new Lexer({ start: result }, "start");
436
- }
437
- function checkStateGroup(g, name, map) {
438
- var state = g && (g.push || g.next);
439
- if (state && !map[state]) {
440
- throw new Error("Missing state '" + state + "' (in token '" + g.defaultType + "' of state '" + name + "')");
441
- }
442
- if (g && g.pop && +g.pop !== 1) {
443
- throw new Error("pop must be 1 (in token '" + g.defaultType + "' of state '" + name + "')");
444
- }
445
- }
446
- function compileStates(states, start) {
447
- var all = states.$all ? toRules(states.$all) : [];
448
- delete states.$all;
449
- var keys = Object.getOwnPropertyNames(states);
450
- if (!start) start = keys[0];
451
- var ruleMap = /* @__PURE__ */ Object.create(null);
452
- for (var i = 0; i < keys.length; i++) {
453
- var key = keys[i];
454
- ruleMap[key] = toRules(states[key]).concat(all);
455
- }
456
- for (var i = 0; i < keys.length; i++) {
457
- var key = keys[i];
458
- var rules = ruleMap[key];
459
- var included = /* @__PURE__ */ Object.create(null);
460
- for (var j = 0; j < rules.length; j++) {
461
- var rule = rules[j];
462
- if (!rule.include) continue;
463
- var splice = [j, 1];
464
- if (rule.include !== key && !included[rule.include]) {
465
- included[rule.include] = true;
466
- var newRules = ruleMap[rule.include];
467
- if (!newRules) {
468
- throw new Error("Cannot include nonexistent state '" + rule.include + "' (in state '" + key + "')");
469
- }
470
- for (var k = 0; k < newRules.length; k++) {
471
- var newRule = newRules[k];
472
- if (rules.indexOf(newRule) !== -1) continue;
473
- splice.push(newRule);
474
- }
475
- }
476
- rules.splice.apply(rules, splice);
477
- j--;
478
- }
479
- }
480
- var map = /* @__PURE__ */ Object.create(null);
481
- for (var i = 0; i < keys.length; i++) {
482
- var key = keys[i];
483
- map[key] = compileRules(ruleMap[key], true);
484
- }
485
- for (var i = 0; i < keys.length; i++) {
486
- var name = keys[i];
487
- var state = map[name];
488
- var groups = state.groups;
489
- for (var j = 0; j < groups.length; j++) {
490
- checkStateGroup(groups[j], name, map);
491
- }
492
- var fastKeys = Object.getOwnPropertyNames(state.fast);
493
- for (var j = 0; j < fastKeys.length; j++) {
494
- checkStateGroup(state.fast[fastKeys[j]], name, map);
495
- }
496
- }
497
- return new Lexer(map, start);
498
- }
499
- function keywordTransform(map) {
500
- var isMap = typeof Map !== "undefined";
501
- var reverseMap = isMap ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
502
- var types = Object.getOwnPropertyNames(map);
503
- for (var i = 0; i < types.length; i++) {
504
- var tokenType = types[i];
505
- var item = map[tokenType];
506
- var keywordList = Array.isArray(item) ? item : [item];
507
- keywordList.forEach(function(keyword) {
508
- if (typeof keyword !== "string") {
509
- throw new Error("keyword must be string (in keyword '" + tokenType + "')");
510
- }
511
- if (isMap) {
512
- reverseMap.set(keyword, tokenType);
513
- } else {
514
- reverseMap[keyword] = tokenType;
515
- }
516
- });
517
- }
518
- return function(k) {
519
- return isMap ? reverseMap.get(k) : reverseMap[k];
520
- };
521
- }
522
- var Lexer = function(states, state) {
523
- this.startState = state;
524
- this.states = states;
525
- this.buffer = "";
526
- this.stack = [];
527
- this.reset();
528
- };
529
- Lexer.prototype.reset = function(data, info) {
530
- this.buffer = data || "";
531
- this.index = 0;
532
- this.line = info ? info.line : 1;
533
- this.col = info ? info.col : 1;
534
- this.queuedToken = info ? info.queuedToken : null;
535
- this.queuedText = info ? info.queuedText : "";
536
- this.queuedThrow = info ? info.queuedThrow : null;
537
- this.setState(info ? info.state : this.startState);
538
- this.stack = info && info.stack ? info.stack.slice() : [];
539
- return this;
540
- };
541
- Lexer.prototype.save = function() {
542
- return {
543
- line: this.line,
544
- col: this.col,
545
- state: this.state,
546
- stack: this.stack.slice(),
547
- queuedToken: this.queuedToken,
548
- queuedText: this.queuedText,
549
- queuedThrow: this.queuedThrow
550
- };
551
- };
552
- Lexer.prototype.setState = function(state) {
553
- if (!state || this.state === state) return;
554
- this.state = state;
555
- var info = this.states[state];
556
- this.groups = info.groups;
557
- this.error = info.error;
558
- this.re = info.regexp;
559
- this.fast = info.fast;
560
- };
561
- Lexer.prototype.popState = function() {
562
- this.setState(this.stack.pop());
563
- };
564
- Lexer.prototype.pushState = function(state) {
565
- this.stack.push(this.state);
566
- this.setState(state);
567
- };
568
- var eat = hasSticky ? function(re, buffer) {
569
- return re.exec(buffer);
570
- } : function(re, buffer) {
571
- var match = re.exec(buffer);
572
- if (match[0].length === 0) {
573
- return null;
574
- }
575
- return match;
576
- };
577
- Lexer.prototype._getGroup = function(match) {
578
- var groupCount = this.groups.length;
579
- for (var i = 0; i < groupCount; i++) {
580
- if (match[i + 1] !== void 0) {
581
- return this.groups[i];
582
- }
583
- }
584
- throw new Error("Cannot find token type for matched text");
585
- };
586
- function tokenToString() {
587
- return this.value;
588
- }
589
- Lexer.prototype.next = function() {
590
- var index = this.index;
591
- if (this.queuedGroup) {
592
- var token = this._token(this.queuedGroup, this.queuedText, index);
593
- this.queuedGroup = null;
594
- this.queuedText = "";
595
- return token;
596
- }
597
- var buffer = this.buffer;
598
- if (index === buffer.length) {
599
- return;
600
- }
601
- var group = this.fast[buffer.charCodeAt(index)];
602
- if (group) {
603
- return this._token(group, buffer.charAt(index), index);
604
- }
605
- var re = this.re;
606
- re.lastIndex = index;
607
- var match = eat(re, buffer);
608
- var error = this.error;
609
- if (match == null) {
610
- return this._token(error, buffer.slice(index, buffer.length), index);
611
- }
612
- var group = this._getGroup(match);
613
- var text = match[0];
614
- if (error.fallback && match.index !== index) {
615
- this.queuedGroup = group;
616
- this.queuedText = text;
617
- return this._token(error, buffer.slice(index, match.index), index);
618
- }
619
- return this._token(group, text, index);
620
- };
621
- Lexer.prototype._token = function(group, text, offset) {
622
- var lineBreaks = 0;
623
- if (group.lineBreaks) {
624
- var matchNL = /\n/g;
625
- var nl = 1;
626
- if (text === "\n") {
627
- lineBreaks = 1;
628
- } else {
629
- while (matchNL.exec(text)) {
630
- lineBreaks++;
631
- nl = matchNL.lastIndex;
632
- }
633
- }
634
- }
635
- var token = {
636
- type: typeof group.type === "function" && group.type(text) || group.defaultType,
637
- value: typeof group.value === "function" ? group.value(text) : text,
638
- text,
639
- toString: tokenToString,
640
- offset,
641
- lineBreaks,
642
- line: this.line,
643
- col: this.col
644
- };
645
- var size = text.length;
646
- this.index += size;
647
- this.line += lineBreaks;
648
- if (lineBreaks !== 0) {
649
- this.col = size - nl + 1;
650
- } else {
651
- this.col += size;
652
- }
653
- if (group.shouldThrow) {
654
- var err = new Error(this.formatError(token, "invalid syntax"));
655
- throw err;
656
- }
657
- if (group.pop) this.popState();
658
- else if (group.push) this.pushState(group.push);
659
- else if (group.next) this.setState(group.next);
660
- return token;
661
- };
662
- if (typeof Symbol !== "undefined" && Symbol.iterator) {
663
- var LexerIterator = function(lexer) {
664
- this.lexer = lexer;
665
- };
666
- LexerIterator.prototype.next = function() {
667
- var token = this.lexer.next();
668
- return { value: token, done: !token };
669
- };
670
- LexerIterator.prototype[Symbol.iterator] = function() {
671
- return this;
672
- };
673
- Lexer.prototype[Symbol.iterator] = function() {
674
- return new LexerIterator(this);
675
- };
676
- }
677
- Lexer.prototype.formatError = function(token, message) {
678
- if (token == null) {
679
- var text = this.buffer.slice(this.index);
680
- var token = {
681
- text,
682
- offset: this.index,
683
- lineBreaks: text.indexOf("\n") === -1 ? 0 : 1,
684
- line: this.line,
685
- col: this.col
686
- };
687
- }
688
- var numLinesAround = 2;
689
- var firstDisplayedLine = Math.max(token.line - numLinesAround, 1);
690
- var lastDisplayedLine = token.line + numLinesAround;
691
- var lastLineDigits = String(lastDisplayedLine).length;
692
- var displayedLines = lastNLines(
693
- this.buffer,
694
- this.line - token.line + numLinesAround + 1
695
- ).slice(0, 5);
696
- var errorLines = [];
697
- errorLines.push(message + " at line " + token.line + " col " + token.col + ":");
698
- errorLines.push("");
699
- for (var i = 0; i < displayedLines.length; i++) {
700
- var line = displayedLines[i];
701
- var lineNo = firstDisplayedLine + i;
702
- errorLines.push(pad(String(lineNo), lastLineDigits) + " " + line);
703
- if (lineNo === token.line) {
704
- errorLines.push(pad("", lastLineDigits + token.col + 1) + "^");
705
- }
706
- }
707
- return errorLines.join("\n");
708
- };
709
- Lexer.prototype.clone = function() {
710
- return new Lexer(this.states, this.state);
711
- };
712
- Lexer.prototype.has = function(tokenType) {
713
- return true;
714
- };
715
- return {
716
- compile,
717
- states: compileStates,
718
- error: Object.freeze({ error: true }),
719
- fallback: Object.freeze({ fallback: true }),
720
- keywords: keywordTransform
721
- };
722
- });
723
- }
724
- });
725
-
726
- // node_modules/.pnpm/@messageformat+parser@5.1.1/node_modules/@messageformat/parser/lib/lexer.js
727
- var require_lexer = __commonJS({
728
- "node_modules/.pnpm/@messageformat+parser@5.1.1/node_modules/@messageformat/parser/lib/lexer.js"(exports) {
729
- "use strict";
730
- var __importDefault = exports && exports.__importDefault || function(mod) {
731
- return mod && mod.__esModule ? mod : { "default": mod };
732
- };
733
- Object.defineProperty(exports, "__esModule", { value: true });
734
- exports.lexer = exports.states = void 0;
735
- var moo_1 = __importDefault(require_moo());
736
- exports.states = {
737
- body: {
738
- doubleapos: { match: "''", value: () => "'" },
739
- quoted: {
740
- lineBreaks: true,
741
- match: /'[{}#](?:[^']|'')*'(?!')/u,
742
- value: (src) => src.slice(1, -1).replace(/''/g, "'")
743
- },
744
- argument: {
745
- lineBreaks: true,
746
- match: /\{\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,
747
- push: "arg",
748
- value: (src) => src.substring(1).trim()
749
- },
750
- octothorpe: "#",
751
- end: { match: "}", pop: 1 },
752
- content: { lineBreaks: true, match: /[^][^{}#']*/u }
753
- },
754
- arg: {
755
- select: {
756
- lineBreaks: true,
757
- match: /,\s*(?:plural|select|selectordinal)\s*,\s*/u,
758
- next: "select",
759
- value: (src) => src.split(",")[1].trim()
760
- },
761
- "func-args": {
762
- lineBreaks: true,
763
- match: /,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*,/u,
764
- next: "body",
765
- value: (src) => src.split(",")[1].trim()
766
- },
767
- "func-simple": {
768
- lineBreaks: true,
769
- match: /,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,
770
- value: (src) => src.substring(1).trim()
771
- },
772
- end: { match: "}", pop: 1 }
773
- },
774
- select: {
775
- offset: {
776
- lineBreaks: true,
777
- match: /\s*offset\s*:\s*\d+\s*/u,
778
- value: (src) => src.split(":")[1].trim()
779
- },
780
- case: {
781
- lineBreaks: true,
782
- match: /\s*(?:=\d+|[^\p{Pat_Syn}\p{Pat_WS}]+)\s*\{/u,
783
- push: "body",
784
- value: (src) => src.substring(0, src.indexOf("{")).trim()
785
- },
786
- end: { match: /\s*\}/u, pop: 1 }
787
- }
788
- };
789
- exports.lexer = moo_1.default.states(exports.states);
790
- }
791
- });
792
-
793
- // node_modules/.pnpm/@messageformat+parser@5.1.1/node_modules/@messageformat/parser/lib/parser.js
794
- var require_parser = __commonJS({
795
- "node_modules/.pnpm/@messageformat+parser@5.1.1/node_modules/@messageformat/parser/lib/parser.js"(exports) {
796
- "use strict";
797
- Object.defineProperty(exports, "__esModule", { value: true });
798
- exports.ParseError = void 0;
799
- exports.parse = parse2;
800
- var lexer_js_1 = require_lexer();
801
- var getContext = (lt) => ({
802
- offset: lt.offset,
803
- line: lt.line,
804
- col: lt.col,
805
- text: lt.text,
806
- lineBreaks: lt.lineBreaks
807
- });
808
- var isSelectType = (type) => type === "plural" || type === "select" || type === "selectordinal";
809
- function strictArgStyleParam(lt, param) {
810
- let value = "";
811
- let text = "";
812
- for (const p of param) {
813
- const pText = p.ctx.text;
814
- text += pText;
815
- switch (p.type) {
816
- case "content":
817
- value += p.value;
818
- break;
819
- case "argument":
820
- case "function":
821
- case "octothorpe":
822
- value += pText;
823
- break;
824
- default:
825
- throw new ParseError(lt, `Unsupported part in strict mode function arg style: ${pText}`);
826
- }
827
- }
828
- const c = {
829
- type: "content",
830
- value: value.trim(),
831
- ctx: Object.assign({}, param[0].ctx, { text })
832
- };
833
- return [c];
834
- }
835
- var strictArgTypes = [
836
- "number",
837
- "date",
838
- "time",
839
- "spellout",
840
- "ordinal",
841
- "duration"
842
- ];
843
- var defaultPluralKeys = ["zero", "one", "two", "few", "many", "other"];
844
- var ParseError = class extends Error {
845
- /** @internal */
846
- constructor(lt, msg) {
847
- super(lexer_js_1.lexer.formatError(lt, msg));
848
- }
849
- };
850
- exports.ParseError = ParseError;
851
- var Parser = class {
852
- constructor(src, opt) {
853
- var _a, _b, _c, _d;
854
- this.lexer = lexer_js_1.lexer.reset(src);
855
- this.cardinalKeys = (_a = opt === null || opt === void 0 ? void 0 : opt.cardinal) !== null && _a !== void 0 ? _a : defaultPluralKeys;
856
- this.ordinalKeys = (_b = opt === null || opt === void 0 ? void 0 : opt.ordinal) !== null && _b !== void 0 ? _b : defaultPluralKeys;
857
- this.strict = (_c = opt === null || opt === void 0 ? void 0 : opt.strict) !== null && _c !== void 0 ? _c : false;
858
- this.strictPluralKeys = (_d = opt === null || opt === void 0 ? void 0 : opt.strictPluralKeys) !== null && _d !== void 0 ? _d : true;
859
- }
860
- parse() {
861
- return this.parseBody(false, true);
862
- }
863
- checkSelectKey(lt, type, key) {
864
- if (key[0] === "=") {
865
- if (type === "select") {
866
- throw new ParseError(lt, `The case ${key} is not valid with select`);
867
- }
868
- } else if (type !== "select") {
869
- const keys = type === "plural" ? this.cardinalKeys : this.ordinalKeys;
870
- if (this.strictPluralKeys && keys.length > 0 && !keys.includes(key)) {
871
- const msg = `The ${type} case ${key} is not valid in this locale`;
872
- throw new ParseError(lt, msg);
873
- }
874
- }
875
- }
876
- parseSelect({ value: arg }, inPlural, ctx, type) {
877
- const sel = { type, arg, cases: [], ctx };
878
- if (type === "plural" || type === "selectordinal")
879
- inPlural = true;
880
- else if (this.strict)
881
- inPlural = false;
882
- for (const lt of this.lexer) {
883
- switch (lt.type) {
884
- case "offset":
885
- if (type === "select") {
886
- throw new ParseError(lt, "Unexpected plural offset for select");
887
- }
888
- if (sel.cases.length > 0) {
889
- throw new ParseError(lt, "Plural offset must be set before cases");
890
- }
891
- sel.pluralOffset = Number(lt.value);
892
- ctx.text += lt.text;
893
- ctx.lineBreaks += lt.lineBreaks;
894
- break;
895
- case "case": {
896
- this.checkSelectKey(lt, type, lt.value);
897
- sel.cases.push({
898
- key: lt.value,
899
- tokens: this.parseBody(inPlural),
900
- ctx: getContext(lt)
901
- });
902
- break;
903
- }
904
- case "end":
905
- return sel;
906
- default:
907
- throw new ParseError(lt, `Unexpected lexer token: ${lt.type}`);
908
- }
909
- }
910
- throw new ParseError(null, "Unexpected message end");
911
- }
912
- parseArgToken(lt, inPlural) {
913
- const ctx = getContext(lt);
914
- const argType = this.lexer.next();
915
- if (!argType)
916
- throw new ParseError(null, "Unexpected message end");
917
- ctx.text += argType.text;
918
- ctx.lineBreaks += argType.lineBreaks;
919
- if (this.strict && (argType.type === "func-simple" || argType.type === "func-args") && !strictArgTypes.includes(argType.value)) {
920
- const msg = `Invalid strict mode function arg type: ${argType.value}`;
921
- throw new ParseError(lt, msg);
922
- }
923
- switch (argType.type) {
924
- case "end":
925
- return { type: "argument", arg: lt.value, ctx };
926
- case "func-simple": {
927
- const end = this.lexer.next();
928
- if (!end)
929
- throw new ParseError(null, "Unexpected message end");
930
- if (end.type !== "end") {
931
- throw new ParseError(end, `Unexpected lexer token: ${end.type}`);
932
- }
933
- ctx.text += end.text;
934
- if (isSelectType(argType.value.toLowerCase())) {
935
- throw new ParseError(argType, `Invalid type identifier: ${argType.value}`);
936
- }
937
- return {
938
- type: "function",
939
- arg: lt.value,
940
- key: argType.value,
941
- ctx
942
- };
943
- }
944
- case "func-args": {
945
- if (isSelectType(argType.value.toLowerCase())) {
946
- const msg = `Invalid type identifier: ${argType.value}`;
947
- throw new ParseError(argType, msg);
948
- }
949
- let param = this.parseBody(this.strict ? false : inPlural);
950
- if (this.strict && param.length > 0) {
951
- param = strictArgStyleParam(lt, param);
952
- }
953
- return {
954
- type: "function",
955
- arg: lt.value,
956
- key: argType.value,
957
- param,
958
- ctx
959
- };
960
- }
961
- case "select":
962
- if (isSelectType(argType.value)) {
963
- return this.parseSelect(lt, inPlural, ctx, argType.value);
964
- } else {
965
- throw new ParseError(argType, `Unexpected select type ${argType.value}`);
966
- }
967
- default:
968
- throw new ParseError(argType, `Unexpected lexer token: ${argType.type}`);
969
- }
970
- }
971
- parseBody(inPlural, atRoot) {
972
- const tokens = [];
973
- let content = null;
974
- for (const lt of this.lexer) {
975
- if (lt.type === "argument") {
976
- if (content)
977
- content = null;
978
- tokens.push(this.parseArgToken(lt, inPlural));
979
- } else if (lt.type === "octothorpe" && inPlural) {
980
- if (content)
981
- content = null;
982
- tokens.push({ type: "octothorpe", ctx: getContext(lt) });
983
- } else if (lt.type === "end" && !atRoot) {
984
- return tokens;
985
- } else {
986
- let value = lt.value;
987
- if (!inPlural && lt.type === "quoted" && value[0] === "#") {
988
- if (value.includes("{")) {
989
- const errMsg = `Unsupported escape pattern: ${value}`;
990
- throw new ParseError(lt, errMsg);
991
- }
992
- value = lt.text;
993
- }
994
- if (content) {
995
- content.value += value;
996
- content.ctx.text += lt.text;
997
- content.ctx.lineBreaks += lt.lineBreaks;
998
- } else {
999
- content = { type: "content", value, ctx: getContext(lt) };
1000
- tokens.push(content);
1001
- }
1002
- }
1003
- }
1004
- if (atRoot)
1005
- return tokens;
1006
- throw new ParseError(null, "Unexpected message end");
1007
- }
1008
- };
1009
- function parse2(src, options = {}) {
1010
- const parser = new Parser(src, options);
1011
- return parser.parse();
1012
- }
1013
- }
1014
- });
1015
-
1016
- // packages/alert/index.js
1017
- import { css, html as html5 } from "lit";
1018
-
1019
- // node_modules/.pnpm/@chbphone55+classnames@2.0.0/node_modules/@chbphone55/classnames/dist/index.m.js
1020
- var r = function() {
1021
- for (var t = [], n = arguments.length; n--; ) t[n] = arguments[n];
1022
- return t.reduce(function(t2, n2) {
1023
- return t2.concat("string" == typeof n2 ? n2 : Array.isArray(n2) ? r.apply(void 0, n2) : "object" == typeof n2 && n2 ? Object.keys(n2).map(function(r2) {
1024
- return n2[r2] ? r2 : "";
1025
- }) : "");
1026
- }, []).join(" ");
1027
- };
1028
-
1029
- // node_modules/.pnpm/@warp-ds+css@2.1.1_@warp-ds+uno@2.1.0_unocss@0.62.0_postcss@8.5.1_rollup@4.32.1_vite@5._43dfacbc4a7d78ad84ef685a7085e344/node_modules/@warp-ds/css/component-classes/index.js
1030
- var buttonDefaultStyling = "font-bold focusable justify-center transition-colors ease-in-out";
1031
- var buttonColors = {
1032
- primary: "s-text-inverted bg-[--w-color-button-primary-background] hover:bg-[--w-color-button-primary-background-hover] active:bg-[--w-color-button-primary-background-active]",
1033
- secondary: "s-text-link s-border s-bg hover:s-bg-hover hover:s-border-hover active:s-bg-active",
1034
- utility: "s-text s-bg hover:s-bg-hover active:s-bg-active s-border hover:s-border-hover active:s-border-active",
1035
- destructive: "s-bg-negative s-text-inverted hover:s-bg-negative-hover active:s-bg-negative-active",
1036
- pill: "s-icon hover:s-icon-hover active:s-icon-active bg-transparent hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]",
1037
- disabled: "s-text-inverted s-bg-disabled",
1038
- quiet: "bg-transparent s-text-link hover:s-bg-hover active:s-bg-active",
1039
- utilityQuiet: "s-text bg-transparent hover:s-bg-hover active:s-bg-active",
1040
- negativeQuiet: "bg-transparent s-text-negative hover:s-bg-negative-subtle-hover active:s-bg-negative-subtle-active",
1041
- loading: "s-text s-bg-subtle",
1042
- link: "s-text-link"
1043
- };
1044
- var buttonTypes = {
1045
- primary: `border-0 rounded-8 ${buttonDefaultStyling}`,
1046
- secondary: `border-2 rounded-8 ${buttonDefaultStyling}`,
1047
- utility: `border rounded-4 ${buttonDefaultStyling}`,
1048
- negative: `border-0 rounded-8 ${buttonDefaultStyling}`,
1049
- pill: `p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${buttonDefaultStyling}`,
1050
- link: `bg-transparent focusable ease-in-out inline active:underline hover:underline focus:underline ${buttonColors.link}`
1051
- };
1052
- var buttonSizes = {
1053
- xsmall: "py-6 px-16",
1054
- small: "py-8 px-16",
1055
- medium: "py-10 px-14",
1056
- large: "py-12 px-16",
1057
- utility: "py-[11px] px-[15px]",
1058
- smallUtility: "py-[7px] px-[15px]",
1059
- pill: "min-h-[44px] min-w-[44px]",
1060
- pillSmall: "min-h-32 min-w-32",
1061
- link: "p-0"
1062
- };
1063
- var buttonTextSizes = {
1064
- medium: "text-m leading-[24]",
1065
- xsmall: "text-xs"
1066
- };
1067
- var buttonVariants = {
1068
- inProgress: `border-transparent animate-inprogress pointer-events-none ${buttonColors.loading}`,
1069
- // .button--in-progress, a.button--in-progress:visited
1070
- quiet: `border-0 rounded-8 ${buttonDefaultStyling}`,
1071
- utilityQuiet: `border-0 rounded-4 ${buttonDefaultStyling}`,
1072
- negativeQuiet: `border-0 rounded-8 ${buttonDefaultStyling}`,
1073
- isDisabled: `font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${buttonColors.disabled}`
1074
- // .button:disabled, .button--is-disabled
1075
- };
1076
- var button = {
1077
- // Buttontypes
1078
- secondary: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonColors.secondary}`,
1079
- // .button--secondary, .button--default, .button
1080
- secondaryHref: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonColors.secondary}`,
1081
- secondaryDisabled: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonVariants.isDisabled}`,
1082
- secondarySmall: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonTypes.secondary} ${buttonColors.secondary}`,
1083
- secondarySmallDisabled: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonTypes.secondary} ${buttonVariants.isDisabled}`,
1084
- secondaryQuiet: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonColors.quiet}`,
1085
- secondaryQuietDisabled: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`,
1086
- secondarySmallQuiet: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonVariants.quiet} ${buttonColors.quiet}`,
1087
- secondarySmallQuietDisabled: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`,
1088
- secondaryLoading: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonVariants.inProgress}`,
1089
- secondarySmallLoading: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonTypes.secondary} ${buttonVariants.inProgress}`,
1090
- secondarySmallQuietLoading: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.inProgress}`,
1091
- secondaryQuietLoading: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.inProgress}`,
1092
- primary: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.primary} ${buttonColors.primary}`,
1093
- // .button--primary, .button--cta
1094
- primaryDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.isDisabled} ${buttonTypes.primary}`,
1095
- primarySmall: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonTypes.primary} ${buttonColors.primary}`,
1096
- primarySmallDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.isDisabled} ${buttonTypes.primary} `,
1097
- primaryQuiet: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonColors.quiet}`,
1098
- primaryQuietDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`,
1099
- primarySmallQuiet: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.quiet} ${buttonColors.quiet}`,
1100
- primarySmallQuietDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`,
1101
- primaryLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.inProgress} ${buttonTypes.primary}`,
1102
- primarySmallLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.inProgress} ${buttonTypes.primary}`,
1103
- primarySmallQuietLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.inProgress} ${buttonTypes.primary}`,
1104
- primaryQuietLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.inProgress}`,
1105
- utility: `${buttonSizes.utility} ${buttonTextSizes.medium} ${buttonTypes.utility} ${buttonColors.utility}`,
1106
- // .button--utility
1107
- utilityDisabled: `${buttonSizes.utility} ${buttonTextSizes.medium} ${buttonTypes.utility} ${buttonVariants.isDisabled}`,
1108
- utilityQuiet: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.utilityQuiet} ${buttonColors.utilityQuiet}`,
1109
- // .button--utility-flat
1110
- utilityQuietDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.utilityQuiet} ${buttonVariants.isDisabled}`,
1111
- utilitySmall: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonTypes.utility} ${buttonColors.utility}`,
1112
- utilitySmallDisabled: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonTypes.utility} ${buttonVariants.isDisabled}`,
1113
- utilitySmallQuiet: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonVariants.utilityQuiet} ${buttonColors.utilityQuiet}`,
1114
- utilitySmallQuietDisabled: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonVariants.utilityQuiet} ${buttonVariants.isDisabled}`,
1115
- utilityLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.utility} ${buttonVariants.inProgress}`,
1116
- utilitySmallLoading: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonTypes.utility} ${buttonVariants.inProgress}`,
1117
- utilityQuietLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.inProgress} ${buttonVariants.utilityQuiet}`,
1118
- utilitySmallQuietLoading: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonVariants.inProgress} ${buttonVariants.utilityQuiet}`,
1119
- negative: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.negative} ${buttonColors.destructive}`,
1120
- // .button--destructive
1121
- negativeDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.negative} ${buttonVariants.isDisabled}`,
1122
- negativeQuiet: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.negativeQuiet} ${buttonColors.negativeQuiet}`,
1123
- // .button--destructive-flat
1124
- negativeQuietDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.negativeQuiet}${buttonVariants.isDisabled}`,
1125
- negativeSmall: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonTypes.negative} ${buttonColors.destructive}`,
1126
- negativeSmallDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonTypes.negative} ${buttonVariants.isDisabled}`,
1127
- negativeSmallQuiet: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.negativeQuiet} ${buttonColors.negativeQuiet}`,
1128
- negativeSmallQuietDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.negativeQuiet} ${buttonVariants.isDisabled}`,
1129
- negativeLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.negative} ${buttonVariants.inProgress}`,
1130
- negativeSmallLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.inProgress} ${buttonTypes.negative}`,
1131
- negativeQuietLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.negativeQuiet} ${buttonTypes.negative} ${buttonVariants.inProgress}`,
1132
- negativeSmallQuietLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.negativeQuiet} ${buttonVariants.inProgress}`,
1133
- pill: `${buttonSizes.pill} ${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonColors.pill}`,
1134
- // .button--pill
1135
- pillSmall: `${buttonSizes.pillSmall} ${buttonTextSizes.xsmall} ${buttonTypes.pill} ${buttonColors.pill}`,
1136
- pillLoading: `${buttonSizes.pill} ${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonVariants.inProgress}`,
1137
- pillSmallLoading: `${buttonSizes.pillSmall} ${buttonTextSizes.xsmall} ${buttonTypes.pill} ${buttonVariants.inProgress}`,
1138
- link: `${buttonSizes.link} ${buttonTextSizes.medium} ${buttonTypes.link}`,
1139
- linkSmall: `${buttonSizes.link} ${buttonTextSizes.xsmall} ${buttonTypes.link}`,
1140
- linkAsButton: "inline-block active:no-underline hover:no-underline focus:no-underline text-center",
1141
- a11y: "sr-only",
1142
- fullWidth: "w-full max-w-full",
1143
- contentWidth: "max-w-max"
1144
- };
1145
- var modal = {
1146
- backdrop: "fixed inset-0 flex sm:place-content-center sm:place-items-center items-end z-30 [--w-modal-max-height:80%] [--w-modal-width:640px] bg-[--w-black/25]",
1147
- base: "pb-safe-[32] shadow-m max-h-[--w-modal-max-height] min-h-[--w-modal-min-height] w-[--w-modal-width] h-[--w-modal-height] relative transition-300 ease-in-out backface-hidden will-change-height rounded-8 mx-0 sm:mx-16 bg-[--w-s-color-surface-elevated-100] flex flex-col overflow-hidden outline-none space-y-16 pt-8 sm:pt-32 sm:pb-32 rounded-b-0 sm:rounded-b-8",
1148
- content: "block overflow-y-auto overflow-x-hidden last-child:mb-0 grow shrink px-16 sm:px-32 relative",
1149
- footer: "flex justify-end shrink-0 px-16 sm:px-32",
1150
- transitionTitle: "transition-all duration-300",
1151
- transitionTitleCenter: "justify-self-center self-center",
1152
- transitionTitleColSpan: "col-span-2",
1153
- title: "py-8 sm:py-0 -mt-4 sm:-mt-8 min-h-40 sm:min-h-48 grid gap-8 sm:gap-16 grid-cols-[auto_1fr_auto] items-start px-16 sm:px-32 border-b sm:border-b-0 shrink-0",
1154
- titleText: "mb-0 h4 sm:h3",
1155
- titleButton: `${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonColors.pill} sm:min-h-[44px] sm:min-w-[44px] min-h-[32px] min-w-[32px]`,
1156
- titleButtonLeft: "-ml-8 sm:-ml-12 justify-self-start",
1157
- titleButtonRight: "-mr-8 sm:-mr-12 justify-self-end",
1158
- titleButtonIcon: "h-16 w-16 sm:h-24 sm:w-24",
1159
- titleButtonIconRotated: "transform rotate-90"
1160
- };
1161
- var alert = {
1162
- wrapper: "flex p-16 border border-l-4 rounded-4 s-text",
1163
- willChangeHeight: "will-change-height",
1164
- textWrapper: "last-child:mb-0 text-s",
1165
- title: "text-s",
1166
- icon: "w-16 mr-8 min-w-16",
1167
- negative: "s-border-negative-subtle s-border-l-negative s-bg-negative-subtle",
1168
- negativeIcon: "s-icon-negative",
1169
- positive: "s-border-positive-subtle s-border-l-positive s-bg-positive-subtle",
1170
- positiveIcon: "s-icon-positive",
1171
- warning: "s-border-warning-subtle s-border-l-warning s-bg-warning-subtle",
1172
- warningIcon: "s-icon-warning",
1173
- info: "s-border-info-subtle s-border-l-info s-bg-info-subtle",
1174
- infoIcon: "s-icon-info"
1175
- };
1176
- var prefixSuffixWrapper = "absolute top-0 bottom-0 flex justify-center items-center focusable rounded-4 focus:[--w-outline-offset:-2px] bg-transparent ";
1177
- var suffix = {
1178
- wrapper: prefixSuffixWrapper + "right-0",
1179
- wrapperWithLabel: "w-max pr-12",
1180
- wrapperWithIcon: "w-40",
1181
- label: "antialiased block relative cursor-default pb-0 font-bold text-xs s-text"
1182
- };
1183
- var prefix = {
1184
- wrapper: prefixSuffixWrapper + "left-0",
1185
- wrapperWithLabel: "w-max pl-12",
1186
- wrapperWithIcon: "w-40",
1187
- label: "antialiased block relative cursor-default pb-0 font-bold text-xs s-text"
1188
- };
1189
- var toggle = {
1190
- // wrapper classes
1191
- field: "relative text-m",
1192
- // true
1193
- wrapper: "relative py-1",
1194
- // true
1195
- wrapperRadioButtons: "inline-flex font-bold rounded-8 focus-within:focusable",
1196
- // isRadioButton && !isEqualWidth
1197
- wrapperRadioButtonsJustified: "flex font-bold rounded-8 focus-within:focusable",
1198
- // isRadioButton && isEqualWidth,
1199
- // group classes
1200
- radioButtonsGroup: "group",
1201
- // isRadioButton
1202
- radioButtonsGroupJustified: "grow-1 shrink-0 basis-auto",
1203
- // isRadioButton && isEqualWidth
1204
- // input classes
1205
- input: "peer",
1206
- a11y: "sr-only",
1207
- // label classes
1208
- label: "peer-focus:focusable cursor-pointer text-m s-text s-border py-2 pl-28 select-none relative block before:border before:absolute before:transition-all before:left-0 before:w-20 before:h-20 before:top-2",
1209
- // !isRadioButton
1210
- labelBefore: 'before:content-[""] before:block',
1211
- // !isRadioButton && !isIndeterminate
1212
- checkbox: "before:s-bg before:rounded-2 hover:before:s-border-primary hover:before:s-bg-hover peer-checked:before:bg-center peer-checked:before:bg-[url(var(--w-icon-toggle-checked))] peer-checked:before:s-border-primary peer-checked:before:s-bg-primary peer-checked:peer-hover:before:s-border-primary-hover peer-checked:peer-hover:before:s-bg-primary-hover",
1213
- // isCheckbox && !isIndeterminate && !isInvalid && !isDisabled
1214
- checkboxInvalid: "before:s-bg before:s-border-negative before:rounded-2 hover:before:s-bg-negative-subtle-hover hover:before:s-border-negative-hover peer-checked:before:bg-center peer-checked:before:bg-[url(var(--w-icon-toggle-checked))] peer-checked:before:s-bg-negative peer-checked:before:s-border-negative peer-checked:peer-hover:before:s-bg-negative-hover peer-checked:peer-hover:before:s-border-negative-hover",
1215
- // isCheckbox && !isIndeterminate && isInvalid && !isDisabled
1216
- checkboxDisabled: "before:s-bg-disabled-subtle before:s-border-disabled pointer-events-none before:rounded-2 peer-checked:before:bg-center peer-checked:before:bg-[url(var(--w-icon-toggle-checked))] peer-checked:before:s-border-disabled peer-checked:before:s-bg-disabled",
1217
- // isCheckbox && !isIndeterminate && !isInvalid && isDisabled
1218
- indeterminate: 'before:content-["\u2013"] before:rounded-2 before:leading-xs before:text-center before:font-bold before:s-icon-inverted peer-indeterminate:before:s-border-primary peer-indeterminate:before:s-bg-primary peer-indeterminate:hover:before:s-border-primary-hover peer-indeterminate:hover:before:s-bg-primary-hover',
1219
- // isCheckbox && isIndeterminate && !isInvalid && !isDisabled
1220
- indeterminateInvalid: 'before:content-["\u2013"] before:rounded-2 before:leading-xs before:text-center before:font-bold before:s-icon-inverted peer-indeterminate:before:s-border-negative peer-indeterminate:before:s-bg-negative peer-indeterminate:hover:before:s-border-negative-hover peer-indeterminate:hover:before:s-bg-negative-hover',
1221
- // isCheckbox && isIndeterminate && isInvalid && !isDisabled
1222
- indeterminateDisabled: 'before:content-["\u2013"] before:rounded-2 before:leading-xs before:text-center before:font-bold pointer-events-none before:s-icon-inverted peer-indeterminate:before:s-border-disabled peer-indeterminate:before:s-bg-disabled',
1223
- // isCheckbox && isIndeterminate && !isInvalid && isDisabled
1224
- radio: "before:s-bg before:rounded-full peer-checked:before:border-[6] peer-checked:before:s-border-selected peer-checked:peer-hover:before:s-border-selected-hover peer-hover:before:s-border-primary peer-hover:before:s-bg-hover",
1225
- // isRadio && !isDisabled && !isInvalid
1226
- radioInvalid: "before:s-bg before:s-border-negative before:rounded-full peer-checked:before:border-[6] peer-hover:before:s-bg-negative-subtle peer-hover:before:s-border-negative-hover peer-checked:before:s-border-negative peer-checked:peer-hover:before:s-border-negative-hover",
1227
- // isRadio && isInvalid && !isDisabled
1228
- radioDisabled: "before:s-bg-disabled-subtle before:s-border-disabled pointer-events-none before:rounded-full peer-checked:before:border-[6]",
1229
- // isRadio && !isInvalid && isDisabled
1230
- radioButtonsLabel: "peer-hover:peer-not-checked:s-bg-hover peer-checked:s-text-inverted peer-checked:s-bg-primary peer-checked:s-border-primary block relative font-bold cursor-pointer s-text-link text-center s-bg border-2 s-border group-first-of-type:rounded-tl-8 group-first-of-type:rounded-bl-8 group-last-of-type:rounded-tr-8 group-last-of-type:rounded-br-8 group-not-last-of-type:border-r-0 peer-checked:z-10 group-not-first:-ml-2",
1231
- // isRadioButtons
1232
- radioButtonsRegular: "text-s py-8 pl-12 pr-14",
1233
- // isRadioButtons && !isSmall
1234
- radioButtonsSmall: "text-xs py-[5px] px-[8px]"
1235
- // isRadioButtons && isSmall
1236
- };
1237
- var deadToggle = {
1238
- wrapper: `${toggle.wrapper} h-20 w-20 pointer-events-none`,
1239
- input: `${toggle.input} hidden`,
1240
- inputVue: "hidden",
1241
- labelVue: "-mt-2",
1242
- labelRadio: `${toggle.label} ${toggle.labelBefore} ${toggle.radio}`,
1243
- labelCheckbox: `${toggle.label} ${toggle.labelBefore} ${toggle.checkbox}`
1244
- };
1245
- var attention = {
1246
- base: "border-2 relative flex items-start",
1247
- tooltip: "s-bg-inverted border-[--w-s-color-background-inverted] shadow-m s-text-inverted-static rounded-4 py-6 px-8",
1248
- callout: "bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8",
1249
- highlight: "bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8 drop-shadow-m translate-z-0",
1250
- popover: "bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300] s-text rounded-8 p-16 drop-shadow-m translate-z-0",
1251
- arrowBase: "absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform",
1252
- arrowDirectionLeftStart: "-left-[8px]",
1253
- arrowDirectionLeft: "-left-[8px]",
1254
- arrowDirectionLeftEnd: "-left-[8px]",
1255
- arrowDirectionRightStart: "-right-[8px]",
1256
- arrowDirectionRight: "-right-[8px]",
1257
- arrowDirectionRightEnd: "-right-[8px]",
1258
- arrowDirectionBottomStart: "-bottom-[8px]",
1259
- arrowDirectionBottom: "-bottom-[8px]",
1260
- arrowDirectionBottomEnd: "-bottom-[8px]",
1261
- arrowDirectionTopStart: "-top-[8px]",
1262
- arrowDirectionTop: "-top-[8px]",
1263
- arrowDirectionTopEnd: "-top-[8px]",
1264
- arrowTooltip: "s-bg-inverted border-[--w-s-color-background-inverted]",
1265
- arrowCallout: "bg-[--w-color-callout-background] border-[--w-color-callout-border]",
1266
- arrowPopover: "bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300]",
1267
- arrowHighlight: "bg-[--w-color-callout-background] border-[--w-color-callout-border]",
1268
- content: "last-child:mb-0",
1269
- notCallout: "absolute z-50",
1270
- closeBtn: `${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonColors.pill} justify-self-end -mr-8 ml-8`
1271
- };
1272
-
1273
- // packages/alert/index.js
1274
- import WarpElement from "@warp-ds/elements-core";
1275
-
1276
- // node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-p_f73b1d3c5bd9121d6f30248535f1f172/node_modules/@warp-ds/icons/dist/elements/info-16.js
1277
- import { LitElement } from "lit";
1278
- import { unsafeStatic, html } from "lit/static-html.js";
1279
-
1280
- // node_modules/.pnpm/@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-plugin-macros@3.1.0_ty_33a2537ce57a59324989ce8020998d0e/node_modules/@lingui/core/dist/index.mjs
1281
- var import_unraw = __toESM(require_dist(), 1);
1282
-
1283
- // node_modules/.pnpm/@lingui+message-utils@5.2.0/node_modules/@lingui/message-utils/dist/compileMessage.mjs
1284
- var import_parser = __toESM(require_parser(), 1);
1285
- var DateFormatError = class extends Error {
1286
- /** @internal */
1287
- constructor(msg, token, type) {
1288
- super(msg);
1289
- this.token = token;
1290
- this.type = type || "error";
1291
- }
1292
- };
1293
- var alpha = (width) => width < 4 ? "short" : width === 4 ? "long" : "narrow";
1294
- var numeric = (width) => width % 2 === 0 ? "2-digit" : "numeric";
1295
- function yearOptions(token, onError) {
1296
- switch (token.char) {
1297
- case "y":
1298
- return { year: numeric(token.width) };
1299
- case "r":
1300
- return { calendar: "gregory", year: "numeric" };
1301
- case "u":
1302
- case "U":
1303
- case "Y":
1304
- default:
1305
- onError(`${token.desc} is not supported; falling back to year:numeric`, DateFormatError.WARNING);
1306
- return { year: "numeric" };
1307
- }
1308
- }
1309
- function monthStyle(token, onError) {
1310
- switch (token.width) {
1311
- case 1:
1312
- return "numeric";
1313
- case 2:
1314
- return "2-digit";
1315
- case 3:
1316
- return "short";
1317
- case 4:
1318
- return "long";
1319
- case 5:
1320
- return "narrow";
1321
- default:
1322
- onError(`${token.desc} is not supported with width ${token.width}`);
1323
- return void 0;
1324
- }
1325
- }
1326
- function dayStyle(token, onError) {
1327
- const { char, desc, width } = token;
1328
- if (char === "d") {
1329
- return numeric(width);
1330
- } else {
1331
- onError(`${desc} is not supported`);
1332
- return void 0;
1333
- }
1334
- }
1335
- function weekdayStyle(token, onError) {
1336
- const { char, desc, width } = token;
1337
- if ((char === "c" || char === "e") && width < 3) {
1338
- const msg = `Numeric value is not supported for ${desc}; falling back to weekday:short`;
1339
- onError(msg, DateFormatError.WARNING);
1340
- }
1341
- return alpha(width);
1342
- }
1343
- function hourOptions(token) {
1344
- const hour = numeric(token.width);
1345
- let hourCycle;
1346
- switch (token.char) {
1347
- case "h":
1348
- hourCycle = "h12";
1349
- break;
1350
- case "H":
1351
- hourCycle = "h23";
1352
- break;
1353
- case "k":
1354
- hourCycle = "h24";
1355
- break;
1356
- case "K":
1357
- hourCycle = "h11";
1358
- break;
1359
- }
1360
- return hourCycle ? { hour, hourCycle } : { hour };
1361
- }
1362
- function timeZoneNameStyle(token, onError) {
1363
- const { char, desc, width } = token;
1364
- switch (char) {
1365
- case "v":
1366
- case "z":
1367
- return width === 4 ? "long" : "short";
1368
- case "V":
1369
- if (width === 4)
1370
- return "long";
1371
- onError(`${desc} is not supported with width ${width}`);
1372
- return void 0;
1373
- case "X":
1374
- onError(`${desc} is not supported`);
1375
- return void 0;
1376
- }
1377
- return "short";
1378
- }
1379
- function compileOptions(token, onError) {
1380
- switch (token.field) {
1381
- case "era":
1382
- return { era: alpha(token.width) };
1383
- case "year":
1384
- return yearOptions(token, onError);
1385
- case "month":
1386
- return { month: monthStyle(token, onError) };
1387
- case "day":
1388
- return { day: dayStyle(token, onError) };
1389
- case "weekday":
1390
- return { weekday: weekdayStyle(token, onError) };
1391
- case "period":
1392
- return void 0;
1393
- case "hour":
1394
- return hourOptions(token);
1395
- case "min":
1396
- return { minute: numeric(token.width) };
1397
- case "sec":
1398
- return { second: numeric(token.width) };
1399
- case "tz":
1400
- return { timeZoneName: timeZoneNameStyle(token, onError) };
1401
- case "quarter":
1402
- case "week":
1403
- case "sec-frac":
1404
- case "ms":
1405
- onError(`${token.desc} is not supported`);
1406
- }
1407
- return void 0;
1408
- }
1409
- function getDateFormatOptions(tokens, timeZone, onError = (error) => {
1410
- throw error;
1411
- }) {
1412
- const options = {
1413
- timeZone
1414
- };
1415
- const fields2 = [];
1416
- for (const token of tokens) {
1417
- const { error, field, str } = token;
1418
- if (error) {
1419
- const dte = new DateFormatError(error.message, token);
1420
- dte.stack = error.stack;
1421
- onError(dte);
1422
- }
1423
- if (str) {
1424
- const msg = `Ignoring string part: ${str}`;
1425
- onError(new DateFormatError(msg, token, DateFormatError.WARNING));
1426
- }
1427
- if (field) {
1428
- if (fields2.indexOf(field) === -1)
1429
- fields2.push(field);
1430
- else
1431
- onError(new DateFormatError(`Duplicate ${field} token`, token));
1432
- }
1433
- const opt = compileOptions(token, (msg, isWarning) => onError(new DateFormatError(msg, token, isWarning)));
1434
- if (opt)
1435
- Object.assign(options, opt);
1436
- }
1437
- return options;
1438
- }
1439
- var fields = {
1440
- G: { field: "era", desc: "Era" },
1441
- y: { field: "year", desc: "Year" },
1442
- Y: { field: "year", desc: 'Year of "Week of Year"' },
1443
- u: { field: "year", desc: "Extended year" },
1444
- U: { field: "year", desc: "Cyclic year name" },
1445
- r: { field: "year", desc: "Related Gregorian year" },
1446
- Q: { field: "quarter", desc: "Quarter" },
1447
- q: { field: "quarter", desc: "Stand-alone quarter" },
1448
- M: { field: "month", desc: "Month in year" },
1449
- L: { field: "month", desc: "Stand-alone month in year" },
1450
- w: { field: "week", desc: "Week of year" },
1451
- W: { field: "week", desc: "Week of month" },
1452
- d: { field: "day", desc: "Day in month" },
1453
- D: { field: "day", desc: "Day of year" },
1454
- F: { field: "day", desc: "Day of week in month" },
1455
- g: { field: "day", desc: "Modified julian day" },
1456
- E: { field: "weekday", desc: "Day of week" },
1457
- e: { field: "weekday", desc: "Local day of week" },
1458
- c: { field: "weekday", desc: "Stand-alone local day of week" },
1459
- a: { field: "period", desc: "AM/PM marker" },
1460
- b: { field: "period", desc: "AM/PM/noon/midnight marker" },
1461
- B: { field: "period", desc: "Flexible day period" },
1462
- h: { field: "hour", desc: "Hour in AM/PM (1~12)" },
1463
- H: { field: "hour", desc: "Hour in day (0~23)" },
1464
- k: { field: "hour", desc: "Hour in day (1~24)" },
1465
- K: { field: "hour", desc: "Hour in AM/PM (0~11)" },
1466
- j: { field: "hour", desc: "Hour in preferred cycle" },
1467
- J: { field: "hour", desc: "Hour in preferred cycle without marker" },
1468
- C: { field: "hour", desc: "Hour in preferred cycle with flexible marker" },
1469
- m: { field: "min", desc: "Minute in hour" },
1470
- s: { field: "sec", desc: "Second in minute" },
1471
- S: { field: "sec-frac", desc: "Fractional second" },
1472
- A: { field: "ms", desc: "Milliseconds in day" },
1473
- z: { field: "tz", desc: "Time Zone: specific non-location" },
1474
- Z: { field: "tz", desc: "Time Zone" },
1475
- O: { field: "tz", desc: "Time Zone: localized" },
1476
- v: { field: "tz", desc: "Time Zone: generic non-location" },
1477
- V: { field: "tz", desc: "Time Zone: ID" },
1478
- X: { field: "tz", desc: "Time Zone: ISO8601 with Z" },
1479
- x: { field: "tz", desc: "Time Zone: ISO8601" }
1480
- };
1481
- var isLetter = (char) => char >= "A" && char <= "Z" || char >= "a" && char <= "z";
1482
- function readFieldToken(src, pos) {
1483
- const char = src[pos];
1484
- let width = 1;
1485
- while (src[++pos] === char)
1486
- ++width;
1487
- const field = fields[char];
1488
- if (!field) {
1489
- const msg = `The letter ${char} is not a valid field identifier`;
1490
- return { char, error: new Error(msg), width };
1491
- }
1492
- return { char, field: field.field, desc: field.desc, width };
1493
- }
1494
- function readQuotedToken(src, pos) {
1495
- let str = src[++pos];
1496
- let width = 2;
1497
- if (str === "'")
1498
- return { char: "'", str, width };
1499
- while (true) {
1500
- const next = src[++pos];
1501
- ++width;
1502
- if (next === void 0) {
1503
- const msg = `Unterminated quoted literal in pattern: ${str || src}`;
1504
- return { char: "'", error: new Error(msg), str, width };
1505
- } else if (next === "'") {
1506
- if (src[++pos] !== "'")
1507
- return { char: "'", str, width };
1508
- else
1509
- ++width;
1510
- }
1511
- str += next;
1512
- }
1513
- }
1514
- function readToken(src, pos) {
1515
- const char = src[pos];
1516
- if (!char)
1517
- return null;
1518
- if (isLetter(char))
1519
- return readFieldToken(src, pos);
1520
- if (char === "'")
1521
- return readQuotedToken(src, pos);
1522
- let str = char;
1523
- let width = 1;
1524
- while (true) {
1525
- const next = src[++pos];
1526
- if (!next || isLetter(next) || next === "'")
1527
- return { char, str, width };
1528
- str += next;
1529
- width += 1;
1530
- }
1531
- }
1532
- function parseDateTokens(src) {
1533
- const tokens = [];
1534
- let pos = 0;
1535
- while (true) {
1536
- const token = readToken(src, pos);
1537
- if (!token)
1538
- return tokens;
1539
- tokens.push(token);
1540
- pos += token.width;
1541
- }
1542
- }
1543
- function processTokens(tokens, mapText) {
1544
- if (!tokens.filter((token) => token.type !== "content").length) {
1545
- return tokens.map((token) => mapText(token.value));
1546
- }
1547
- return tokens.map((token) => {
1548
- var _a;
1549
- if (token.type === "content") {
1550
- return mapText(token.value);
1551
- } else if (token.type === "octothorpe") {
1552
- return "#";
1553
- } else if (token.type === "argument") {
1554
- return [token.arg];
1555
- } else if (token.type === "function") {
1556
- const _param = (_a = token == null ? void 0 : token.param) == null ? void 0 : _a[0];
1557
- if (token.key === "date" && _param) {
1558
- const opts = compileDateExpression(_param.value.trim(), (e) => {
1559
- throw new Error(`Unable to compile date expression: ${e.message}`);
1560
- });
1561
- return [token.arg, token.key, opts];
1562
- }
1563
- if (_param) {
1564
- return [token.arg, token.key, _param.value.trim()];
1565
- } else {
1566
- return [token.arg, token.key];
1567
- }
1568
- }
1569
- const offset = token.pluralOffset;
1570
- const formatProps = {};
1571
- token.cases.forEach(({ key, tokens: tokens2 }) => {
1572
- const prop = key[0] === "=" ? key.slice(1) : key;
1573
- formatProps[prop] = processTokens(tokens2, mapText);
1574
- });
1575
- return [
1576
- token.arg,
1577
- token.type,
1578
- __spreadValues({
1579
- offset
1580
- }, formatProps)
1581
- ];
1582
- });
1583
- }
1584
- function compileDateExpression(format, onError) {
1585
- if (/^::/.test(format)) {
1586
- const tokens = parseDateTokens(format.substring(2));
1587
- return getDateFormatOptions(tokens, void 0, onError);
1588
- }
1589
- return format;
1590
- }
1591
- function compileMessage(message, mapText = (v) => v) {
1592
- try {
1593
- return processTokens((0, import_parser.parse)(message), mapText);
1594
- } catch (e) {
1595
- console.error(`${e.message}
1596
-
1597
- Message: ${message}`);
1598
- return [message];
1599
- }
1600
- }
1601
-
1602
- // node_modules/.pnpm/@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-plugin-macros@3.1.0_ty_33a2537ce57a59324989ce8020998d0e/node_modules/@lingui/core/dist/index.mjs
1603
- var isString = (s) => typeof s === "string";
1604
- var isFunction = (f) => typeof f === "function";
1605
- var cache = /* @__PURE__ */ new Map();
1606
- var defaultLocale = "en";
1607
- function normalizeLocales(locales) {
1608
- const out = Array.isArray(locales) ? locales : [locales];
1609
- return [...out, defaultLocale];
1610
- }
1611
- function date(locales, value, format) {
1612
- const _locales = normalizeLocales(locales);
1613
- if (!format) {
1614
- format = "default";
1615
- }
1616
- let o;
1617
- if (typeof format === "string") {
1618
- o = {
1619
- day: "numeric",
1620
- month: "short",
1621
- year: "numeric"
1622
- };
1623
- switch (format) {
1624
- case "full":
1625
- o.weekday = "long";
1626
- case "long":
1627
- o.month = "long";
1628
- break;
1629
- case "short":
1630
- o.month = "numeric";
1631
- break;
1632
- }
1633
- } else {
1634
- o = format;
1635
- }
1636
- const formatter = getMemoized(
1637
- () => cacheKey("date", _locales, format),
1638
- () => new Intl.DateTimeFormat(_locales, o)
1639
- );
1640
- return formatter.format(isString(value) ? new Date(value) : value);
1641
- }
1642
- function time(locales, value, format) {
1643
- let o;
1644
- if (!format) {
1645
- format = "default";
1646
- }
1647
- if (typeof format === "string") {
1648
- o = {
1649
- second: "numeric",
1650
- minute: "numeric",
1651
- hour: "numeric"
1652
- };
1653
- switch (format) {
1654
- case "full":
1655
- case "long":
1656
- o.timeZoneName = "short";
1657
- break;
1658
- case "short":
1659
- delete o.second;
1660
- }
1661
- } else {
1662
- o = format;
1663
- }
1664
- return date(locales, value, o);
1665
- }
1666
- function number(locales, value, format) {
1667
- const _locales = normalizeLocales(locales);
1668
- const formatter = getMemoized(
1669
- () => cacheKey("number", _locales, format),
1670
- () => new Intl.NumberFormat(_locales, format)
1671
- );
1672
- return formatter.format(value);
1673
- }
1674
- function plural(locales, ordinal, value, _a) {
1675
- var _b = _a, { offset = 0 } = _b, rules = __objRest(_b, ["offset"]);
1676
- var _a2, _b2;
1677
- const _locales = normalizeLocales(locales);
1678
- const plurals = ordinal ? getMemoized(
1679
- () => cacheKey("plural-ordinal", _locales),
1680
- () => new Intl.PluralRules(_locales, { type: "ordinal" })
1681
- ) : getMemoized(
1682
- () => cacheKey("plural-cardinal", _locales),
1683
- () => new Intl.PluralRules(_locales, { type: "cardinal" })
1684
- );
1685
- return (_b2 = (_a2 = rules[value]) != null ? _a2 : rules[plurals.select(value - offset)]) != null ? _b2 : rules.other;
1686
- }
1687
- function getMemoized(getKey, construct) {
1688
- const key = getKey();
1689
- let formatter = cache.get(key);
1690
- if (!formatter) {
1691
- formatter = construct();
1692
- cache.set(key, formatter);
1693
- }
1694
- return formatter;
1695
- }
1696
- function cacheKey(type, locales, options) {
1697
- const localeKey = locales.join("-");
1698
- return `${type}-${localeKey}-${JSON.stringify(options)}`;
1699
- }
1700
- var UNICODE_REGEX = /\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/;
1701
- var OCTOTHORPE_PH = "%__lingui_octothorpe__%";
1702
- var getDefaultFormats = (locale, passedLocales, formats = {}) => {
1703
- const locales = passedLocales || locale;
1704
- const style = (format) => {
1705
- if (typeof format === "object")
1706
- return format;
1707
- return formats[format];
1708
- };
1709
- const replaceOctothorpe = (value, message) => {
1710
- const numberFormat = Object.keys(formats).length ? style("number") : void 0;
1711
- const valueStr = number(locales, value, numberFormat);
1712
- return message.replace(new RegExp(OCTOTHORPE_PH, "g"), valueStr);
1713
- };
1714
- return {
1715
- plural: (value, cases) => {
1716
- const { offset = 0 } = cases;
1717
- const message = plural(locales, false, value, cases);
1718
- return replaceOctothorpe(value - offset, message);
1719
- },
1720
- selectordinal: (value, cases) => {
1721
- const { offset = 0 } = cases;
1722
- const message = plural(locales, true, value, cases);
1723
- return replaceOctothorpe(value - offset, message);
1724
- },
1725
- select: selectFormatter,
1726
- number: (value, format) => number(
1727
- locales,
1728
- value,
1729
- style(format) || { style: format }
1730
- ),
1731
- date: (value, format) => date(locales, value, style(format) || format),
1732
- time: (value, format) => time(locales, value, style(format) || format)
1733
- };
1734
- };
1735
- var selectFormatter = (value, rules) => {
1736
- var _a;
1737
- return (_a = rules[value]) != null ? _a : rules.other;
1738
- };
1739
- function interpolate(translation, locale, locales) {
1740
- return (values = {}, formats) => {
1741
- const formatters = getDefaultFormats(locale, locales, formats);
1742
- const formatMessage = (tokens, replaceOctothorpe = false) => {
1743
- if (!Array.isArray(tokens))
1744
- return tokens;
1745
- return tokens.reduce((message, token) => {
1746
- if (token === "#" && replaceOctothorpe) {
1747
- return message + OCTOTHORPE_PH;
1748
- }
1749
- if (isString(token)) {
1750
- return message + token;
1751
- }
1752
- const [name, type, format] = token;
1753
- let interpolatedFormat = {};
1754
- if (type === "plural" || type === "selectordinal" || type === "select") {
1755
- Object.entries(format).forEach(
1756
- ([key, value2]) => {
1757
- interpolatedFormat[key] = formatMessage(
1758
- value2,
1759
- type === "plural" || type === "selectordinal"
1760
- );
1761
- }
1762
- );
1763
- } else {
1764
- interpolatedFormat = format;
1765
- }
1766
- let value;
1767
- if (type) {
1768
- const formatter = formatters[type];
1769
- value = formatter(values[name], interpolatedFormat);
1770
- } else {
1771
- value = values[name];
1772
- }
1773
- if (value == null) {
1774
- return message;
1
+ var we=Object.create;var I=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var xe=Object.getOwnPropertyNames;var ke=Object.getPrototypeOf,ye=Object.prototype.hasOwnProperty;var X=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var _e=(r,e,o,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of xe(e))!ye.call(r,a)&&a!==o&&I(r,a,{get:()=>e[a],enumerable:!(t=U(e,a))||t.enumerable});return r};var ze=(r,e,o)=>(o=r!=null?we(ke(r)):{},_e(e||!r||!r.__esModule?I(o,"default",{value:r,enumerable:!0}):o,r));var E=(r,e,o,t)=>{for(var a=t>1?void 0:t?U(e,o):e,n=r.length-1,i;n>=0;n--)(i=r[n])&&(a=(t?i(e,o,a):i(a))||a);return t&&a&&I(e,o,a),a};var Z=X(m=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});m.errorMessages=m.ErrorType=void 0;var w;(function(r){r.MalformedUnicode="MALFORMED_UNICODE",r.MalformedHexadecimal="MALFORMED_HEXADECIMAL",r.CodePointLimit="CODE_POINT_LIMIT",r.OctalDeprecation="OCTAL_DEPRECATION",r.EndOfString="END_OF_STRING"})(w=m.ErrorType||(m.ErrorType={}));m.errorMessages=new Map([[w.MalformedUnicode,"malformed Unicode character escape sequence"],[w.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[w.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[w.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[w.EndOfString,"malformed escape sequence at end of string"]])});var K=X(u=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0});u.unraw=u.errorMessages=u.ErrorType=void 0;var d=Z();Object.defineProperty(u,"ErrorType",{enumerable:!0,get:function(){return d.ErrorType}});Object.defineProperty(u,"errorMessages",{enumerable:!0,get:function(){return d.errorMessages}});function Ee(r){return!r.match(/[^a-f0-9]/i)?parseInt(r,16):NaN}function L(r,e,o){let t=Ee(r);if(Number.isNaN(t)||o!==void 0&&o!==r.length)throw new SyntaxError(d.errorMessages.get(e));return t}function Ce(r){let e=L(r,d.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}function V(r,e){let o=L(r,d.ErrorType.MalformedUnicode,4);if(e!==void 0){let t=L(e,d.ErrorType.MalformedUnicode,4);return String.fromCharCode(o,t)}return String.fromCharCode(o)}function Le(r){return r.charAt(0)==="{"&&r.charAt(r.length-1)==="}"}function Oe(r){if(!Le(r))throw new SyntaxError(d.errorMessages.get(d.ErrorType.MalformedUnicode));let e=r.slice(1,-1),o=L(e,d.ErrorType.MalformedUnicode);try{return String.fromCodePoint(o)}catch(t){throw t instanceof RangeError?new SyntaxError(d.errorMessages.get(d.ErrorType.CodePointLimit)):t}}function Me(r,e=!1){if(e)throw new SyntaxError(d.errorMessages.get(d.ErrorType.OctalDeprecation));let o=parseInt(r,8);return String.fromCharCode(o)}var Ne=new Map([["b","\b"],["f","\f"],["n",`
2
+ `],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function Se(r){return Ne.get(r)||r}var Ie=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function q(r,e=!1){return r.replace(Ie,function(o,t,a,n,i,s,l,b,g){if(t!==void 0)return"\\";if(a!==void 0)return Ce(a);if(n!==void 0)return Oe(n);if(i!==void 0)return V(i,s);if(l!==void 0)return V(l);if(b==="0")return"\0";if(b!==void 0)return Me(b,!e);if(g!==void 0)return Se(g);throw new SyntaxError(d.errorMessages.get(d.ErrorType.EndOfString))})}u.unraw=q;u.default=q});import{css as Hr,html as x,LitElement as Rr}from"lit";var C=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return r.reduce(function(o,t){return o.concat(typeof t=="string"?t:Array.isArray(t)?C.apply(void 0,t):typeof t=="object"&&t?Object.keys(t).map(function(a){return t[a]?a:""}):"")},[]).join(" ")};import{property as J}from"lit/decorators.js";import{LitElement as Re}from"lit";import{unsafeStatic as Ue,html as Xe}from"lit/static-html.js";var W=ze(K(),1);var p=r=>typeof r=="string",je=r=>typeof r=="function",G=new Map,ee="en";function B(r){return[...Array.isArray(r)?r:[r],ee]}function Y(r,e,o){let t=B(r);o||(o="default");let a;if(typeof o=="string")switch(a={day:"numeric",month:"short",year:"numeric"},o){case"full":a.weekday="long";case"long":a.month="long";break;case"short":a.month="numeric";break}else a=o;return O(()=>M("date",t,o),()=>new Intl.DateTimeFormat(t,a)).format(p(e)?new Date(e):e)}function Te(r,e,o){let t;if(o||(o="default"),typeof o=="string")switch(t={second:"numeric",minute:"numeric",hour:"numeric"},o){case"full":case"long":t.timeZoneName="short";break;case"short":delete t.second}else t=o;return Y(r,e,t)}function j(r,e,o){let t=B(r);return O(()=>M("number",t,o),()=>new Intl.NumberFormat(t,o)).format(e)}function Q(r,e,o,{offset:t=0,...a}){var s,l;let n=B(r),i=e?O(()=>M("plural-ordinal",n),()=>new Intl.PluralRules(n,{type:"ordinal"})):O(()=>M("plural-cardinal",n),()=>new Intl.PluralRules(n,{type:"cardinal"}));return(l=(s=a[o])!=null?s:a[i.select(o-t)])!=null?l:a.other}function O(r,e){let o=r(),t=G.get(o);return t||(t=e(),G.set(o,t)),t}function M(r,e,o){let t=e.join("-");return`${r}-${t}-${JSON.stringify(o)}`}var re=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,oe="%__lingui_octothorpe__%",De=(r,e,o={})=>{let t=e||r,a=i=>typeof i=="object"?i:o[i],n=(i,s)=>{let l=Object.keys(o).length?a("number"):void 0,b=j(t,i,l);return s.replace(new RegExp(oe,"g"),b)};return{plural:(i,s)=>{let{offset:l=0}=s,b=Q(t,!1,i,s);return n(i-l,b)},selectordinal:(i,s)=>{let{offset:l=0}=s,b=Q(t,!0,i,s);return n(i-l,b)},select:Be,number:(i,s)=>j(t,i,a(s)||{style:s}),date:(i,s)=>Y(t,i,a(s)||s),time:(i,s)=>Te(t,i,a(s)||s)}},Be=(r,e)=>{var o;return(o=e[r])!=null?o:e.other};function Ye(r,e,o){return(t={},a)=>{let n=De(e,o,a),i=(l,b=!1)=>Array.isArray(l)?l.reduce((g,_)=>{if(_==="#"&&b)return g+oe;if(p(_))return g+_;let[H,v,R]=_,N={};v==="plural"||v==="selectordinal"||v==="select"?Object.entries(R).forEach(([S,fe])=>{N[S]=i(fe,v==="plural"||v==="selectordinal")}):N=R;let z;if(v){let S=n[v];z=S(t[H],N)}else z=t[H];return z==null?g:g+z},""):l,s=i(r);return p(s)&&re.test(s)?(0,W.unraw)(s):p(s)?s:s?String(s):""}}var Ae=Object.defineProperty,Pe=(r,e,o)=>e in r?Ae(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o,$e=(r,e,o)=>(Pe(r,typeof e!="symbol"?e+"":e,o),o),T=class{constructor(){$e(this,"_events",{})}on(e,o){var a;var t;return(a=(t=this._events)[e])!=null||(t[e]=[]),this._events[e].push(o),()=>this.removeListener(e,o)}removeListener(e,o){let t=this._getListeners(e);if(!t)return;let a=t.indexOf(o);~a&&t.splice(a,1)}emit(e,...o){let t=this._getListeners(e);t&&t.map(a=>a.apply(this,o))}_getListeners(e){let o=this._events[e];return Array.isArray(o)?o:!1}},Fe=Object.defineProperty,Je=(r,e,o)=>e in r?Fe(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o,h=(r,e,o)=>(Je(r,typeof e!="symbol"?e+"":e,o),o),D=class extends T{constructor(e){var o;super(),h(this,"_locale",""),h(this,"_locales"),h(this,"_localeData",{}),h(this,"_messages",{}),h(this,"_missing"),h(this,"_messageCompiler"),h(this,"t",this._.bind(this)),e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(typeof e.locale=="string"||e.locales)&&this.activate((o=e.locale)!=null?o:ee,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,o){let t=this._localeData[e];t?Object.assign(t,o):this._localeData[e]=o}setMessagesCompiler(e){return this._messageCompiler=e,this}loadLocaleData(e,o){typeof e=="string"?this._loadLocaleData(e,o):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,o){let t=this._messages[e];t?Object.assign(t,o):this._messages[e]=o}load(e,o){typeof e=="string"&&typeof o=="object"?this._load(e,o):Object.entries(e).forEach(([t,a])=>this._load(t,a)),this.emit("change")}loadAndActivate({locale:e,locales:o,messages:t}){this._locale=e,this._locales=o||void 0,this._messages[this._locale]=t,this.emit("change")}activate(e,o){this._locale=e,this._locales=o,this.emit("change")}_(e,o,t){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let a=t==null?void 0:t.message;e||(e=""),p(e)||(o=e.values||o,a=e.message,e=e.id);let n=this.messages[e],i=n===void 0,s=this._missing;if(s&&i)return je(s)?s(this._locale,e):s;i&&this.emit("missing",{id:e,locale:this._locale});let l=n||a||e;return p(l)&&(this._messageCompiler?l=this._messageCompiler(l):console.warn(`Uncompiled message detected! Message:
3
+
4
+ > ${l}
5
+
6
+ That means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.
7
+ ICU features such as interpolation and plurals will not work properly for that message.
8
+
9
+ Please compile your catalog first.
10
+ `)),p(l)&&re.test(l)?JSON.parse(`"${l}"`):p(l)?l:Ye(l,this._locale,this._locales)(o,t==null?void 0:t.formats)}date(e,o){return Y(this._locales||this._locale,e,o)}number(e,o){return j(this._locales||this._locale,e,o)}};function He(r={}){return new D(r)}var c=He();var Ze=JSON.parse('{"icon.title.info":["Informasjonssirkel"]}'),Ve=JSON.parse('{"icon.title.info":["Information circle"]}'),qe=JSON.parse('{"icon.title.info":["Ympyr\xE4, jonka sis\xE4ll\xE4 on i-kirjain"]}'),Ke=JSON.parse('{"icon.title.info":["Informationscirkel"]}'),Ge=JSON.parse('{"icon.title.info":["Informationscirkel"]}'),te=["en","nb","fi","da","sv"],ae="en",Qe=()=>{var r;let e;switch((r=process==null?void 0:process.env)==null?void 0:r.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},ne=()=>{var r;let e=(r=document==null?void 0:document.location)==null?void 0:r.hostname;return e!=null&&e.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":ae},A=r=>te.find(e=>r===e||r.toLowerCase().includes(e))||ne();function We(){var r;if(typeof window=="undefined"){let e=Qe();return A(e)}try{let e=(r=document==null?void 0:document.documentElement)==null?void 0:r.lang,o=ne();return te.includes(e)?A(e!=null?e:o):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),A(o))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),ae}}var er=(r,e,o,t,a,n)=>r==="nb"?o:r==="fi"?t:r==="da"?a:r==="sv"?n:e,rr=(r,e,o,t,a)=>{let n=We(),i=er(n,r,e,o,t,a);c.load(n,i),c.activate(n)};rr(Ve,Ze,qe,Ke,Ge);var or=class extends Re{render(){let r=c.t({message:"Information circle",id:"icon.title.info",comment:"Title for info icon"});return Xe`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-info-16-part">${Ue(`<title>${r}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" d="M8 6.5v5"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8 4v.5"></path><path stroke="currentColor" stroke-miterlimit="10" d="M8 .5a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15Z"></path></svg>`}};customElements.get("w-icon-info-16")||customElements.define("w-icon-info-16",or);import{LitElement as tr}from"lit";import{unsafeStatic as ar,html as nr}from"lit/static-html.js";var ir=JSON.parse('{"icon.title.warning":["Varseltrekant med utropstegn"]}'),sr=JSON.parse('{"icon.title.warning":["Warning triangle with exclamation point"]}'),lr=JSON.parse('{"icon.title.warning":["Varoituskolmio, jonka sis\xE4ll\xE4 on huutomerkki"]}'),cr=JSON.parse('{"icon.title.warning":["Advarselstrekant med et udr\xE5bstegn"]}'),dr=JSON.parse('{"icon.title.warning":["Varningstriangel med utropstecken"]}'),ie=["en","nb","fi","da","sv"],se="en",br=()=>{var r;let e;switch((r=process==null?void 0:process.env)==null?void 0:r.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},le=()=>{var r;let e=(r=document==null?void 0:document.location)==null?void 0:r.hostname;return e!=null&&e.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":se},P=r=>ie.find(e=>r===e||r.toLowerCase().includes(e))||le();function ur(){var r;if(typeof window=="undefined"){let e=br();return P(e)}try{let e=(r=document==null?void 0:document.documentElement)==null?void 0:r.lang,o=le();return ie.includes(e)?P(e!=null?e:o):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),P(o))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),se}}var pr=(r,e,o,t,a,n)=>r==="nb"?o:r==="fi"?t:r==="da"?a:r==="sv"?n:e,gr=(r,e,o,t,a)=>{let n=ur(),i=pr(n,r,e,o,t,a);c.load(n,i),c.activate(n)};gr(sr,ir,lr,cr,dr);var vr=class extends tr{render(){let r=c.t({message:"Warning triangle with exclamation point",id:"icon.title.warning",comment:"Title for warning icon"});return nr`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-warning-16-part">${ar(`<title>${r}</title>`)}<path stroke="currentColor" d="m.712 14.07 6.25-12.994a1 1 0 0 1 1.792-.022l6.635 12.995a1 1 0 0 1-.89 1.455H1.613a1 1 0 0 1-.902-1.434Z"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8 6v4.992M8 13v.333"></path></svg>`}};customElements.get("w-icon-warning-16")||customElements.define("w-icon-warning-16",vr);import{LitElement as mr}from"lit";import{unsafeStatic as hr,html as fr}from"lit/static-html.js";var wr=JSON.parse('{"icon.title.error":["\xC5ttekant med utropstegn"]}'),xr=JSON.parse('{"icon.title.error":["Octagon with exclamation point"]}'),kr=JSON.parse('{"icon.title.error":["Kahdeksankulmio, jonka sis\xE4ll\xE4 on huutomerkki"]}'),yr=JSON.parse('{"icon.title.error":["Ottekant med et udr\xE5bstegn"]}'),_r=JSON.parse('{"icon.title.error":["Oktagon med utropstecken"]}'),ce=["en","nb","fi","da","sv"],de="en",zr=()=>{var r;let e;switch((r=process==null?void 0:process.env)==null?void 0:r.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},be=()=>{var r;let e=(r=document==null?void 0:document.location)==null?void 0:r.hostname;return e!=null&&e.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":de},$=r=>ce.find(e=>r===e||r.toLowerCase().includes(e))||be();function Er(){var r;if(typeof window=="undefined"){let e=zr();return $(e)}try{let e=(r=document==null?void 0:document.documentElement)==null?void 0:r.lang,o=be();return ce.includes(e)?$(e!=null?e:o):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),$(o))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),de}}var Cr=(r,e,o,t,a,n)=>r==="nb"?o:r==="fi"?t:r==="da"?a:r==="sv"?n:e,Lr=(r,e,o,t,a)=>{let n=Er(),i=Cr(n,r,e,o,t,a);c.load(n,i),c.activate(n)};Lr(xr,wr,kr,yr,_r);var Or=class extends mr{render(){let r=c.t({message:"Octagon with exclamation point",id:"icon.title.error",comment:"Title for error icon"});return fr`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-error-16-part">${hr(`<title>${r}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M.5 11.107 4.748 15.5h6.503l4.248-4.393V4.893L11.252.5H4.748L.5 4.893z"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8 11.398a.25.25 0 1 1 0-.5m0 .5a.25.25 0 1 0 0-.5"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M8 8.5V3"></path></svg>`}};customElements.get("w-icon-error-16")||customElements.define("w-icon-error-16",Or);import{LitElement as Mr}from"lit";import{unsafeStatic as Nr,html as Sr}from"lit/static-html.js";var Ir=JSON.parse('{"icon.title.success":["Sirkel med sjekkmerke"]}'),jr=JSON.parse('{"icon.title.success":["Circle with checkmark"]}'),Tr=JSON.parse('{"icon.title.success":["Ympyr\xE4, jonka sis\xE4ll\xE4 on valintamerkki"]}'),Dr=JSON.parse('{"icon.title.success":["Cirkel med et flueben"]}'),Br=JSON.parse('{"icon.title.success":["Cirkel med bock"]}'),ue=["en","nb","fi","da","sv"],pe="en",Yr=()=>{var r;let e;switch((r=process==null?void 0:process.env)==null?void 0:r.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},ge=()=>{var r;let e=(r=document==null?void 0:document.location)==null?void 0:r.hostname;return e!=null&&e.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":pe},F=r=>ue.find(e=>r===e||r.toLowerCase().includes(e))||ge();function Ar(){var r;if(typeof window=="undefined"){let e=Yr();return F(e)}try{let e=(r=document==null?void 0:document.documentElement)==null?void 0:r.lang,o=ge();return ue.includes(e)?F(e!=null?e:o):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),F(o))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),pe}}var Pr=(r,e,o,t,a,n)=>r==="nb"?o:r==="fi"?t:r==="da"?a:r==="sv"?n:e,$r=(r,e,o,t,a)=>{let n=Ar(),i=Pr(n,r,e,o,t,a);c.load(n,i),c.activate(n)};$r(jr,Ir,Tr,Dr,Br);var Fr=class extends Mr{render(){let r=c.t({message:"Circle with checkmark",id:"icon.title.success",comment:"Title for success icon"});return Sr`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-success-16-part">${Nr(`<title>${r}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m4 8.815 1.633 2.318a.7.7 0 0 0 1.138.034l5.228-6.615"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M.5 7.999a7.5 7.5 0 1 0 15 0 7.5 7.5 0 0 0-15 0"></path></svg>`}};customElements.get("w-icon-success-16")||customElements.define("w-icon-success-16",Fr);import{css as ve}from"lit";var me=ve`
11
+ *,
12
+ :before,
13
+ :after {
14
+ box-sizing: border-box;
15
+ border-style: solid;
16
+ border-width: 0;
17
+ border-color: var(--w-s-color-border);
18
+ }
19
+ html {
20
+ font-size: 62.5%;
21
+ }
22
+ body {
23
+ background-color: var(--w-s-color-background);
24
+ min-height: 100%;
25
+ margin: 0;
26
+ overflow-y: scroll;
27
+ }
28
+ body,
29
+ :host {
30
+ -webkit-text-size-adjust: 100%;
31
+ tab-size: 4;
32
+ -webkit-tap-highlight-color: transparent;
33
+ font-family: var(--w-font-family);
34
+ font-size: var(--w-font-size-m);
35
+ line-height: var(--w-line-height-m);
36
+ color: var(--w-s-color-text);
37
+ }
38
+ hr {
39
+ color: inherit;
40
+ border-top-width: 1px;
41
+ height: 0;
42
+ }
43
+ abbr:where([title]) {
44
+ -webkit-text-decoration: underline dotted;
45
+ text-decoration: underline dotted;
46
+ }
47
+ h1,
48
+ h2,
49
+ h3,
50
+ h4,
51
+ h5,
52
+ h6 {
53
+ font-size: inherit;
54
+ font-weight: 700;
55
+ }
56
+ a {
57
+ cursor: pointer;
58
+ color: var(--w-s-color-text-link);
59
+ text-decoration: none;
60
+ }
61
+ a:hover,
62
+ a:focus,
63
+ a:active {
64
+ text-decoration: underline;
65
+ }
66
+ a:focus-visible {
67
+ outline: 2px solid var(--w-s-color-border-focus);
68
+ outline-offset: 1px;
69
+ }
70
+ b,
71
+ strong {
72
+ font-weight: 700;
73
+ }
74
+ code,
75
+ kbd,
76
+ samp,
77
+ pre {
78
+ font-family:
79
+ ui-monospace,
80
+ SFMono-Regular,
81
+ Menlo,
82
+ Monaco,
83
+ Consolas,
84
+ Liberation Mono,
85
+ Courier New,
86
+ monospace;
87
+ font-size: 1em;
88
+ }
89
+ sub,
90
+ sup {
91
+ vertical-align: baseline;
92
+ font-size: 75%;
93
+ line-height: 0;
94
+ position: relative;
95
+ }
96
+ sub {
97
+ bottom: -0.25em;
98
+ }
99
+ sup {
100
+ top: -0.5em;
101
+ }
102
+ table {
103
+ text-indent: 0;
104
+ border-color: inherit;
105
+ border-collapse: collapse;
106
+ }
107
+ button,
108
+ input,
109
+ optgroup,
110
+ select,
111
+ textarea {
112
+ font-family: inherit;
113
+ font-size: 100%;
114
+ font-weight: inherit;
115
+ line-height: inherit;
116
+ color: inherit;
117
+ margin: 0;
118
+ padding: 0;
119
+ }
120
+ button,
121
+ select {
122
+ text-transform: none;
123
+ }
124
+ button,
125
+ [type='button'],
126
+ [type='reset'],
127
+ [type='submit'] {
128
+ -webkit-appearance: button;
129
+ }
130
+ :-moz-focusring {
131
+ outline: auto;
132
+ }
133
+ :-moz-ui-invalid {
134
+ box-shadow: none;
135
+ }
136
+ progress {
137
+ vertical-align: baseline;
138
+ }
139
+ ::-webkit-inner-spin-button {
140
+ height: auto;
141
+ }
142
+ ::-webkit-outer-spin-button {
143
+ height: auto;
144
+ }
145
+ [type='search'] {
146
+ -webkit-appearance: textfield;
147
+ outline-offset: -2px;
148
+ }
149
+ ::-webkit-search-decoration {
150
+ -webkit-appearance: none;
151
+ }
152
+ ::-webkit-file-upload-button {
153
+ -webkit-appearance: button;
154
+ font: inherit;
155
+ }
156
+ summary {
157
+ display: list-item;
158
+ }
159
+ blockquote,
160
+ dl,
161
+ dd,
162
+ h1,
163
+ h2,
164
+ h3,
165
+ h4,
166
+ h5,
167
+ h6,
168
+ hr,
169
+ figure,
170
+ p,
171
+ pre {
172
+ margin: 0;
173
+ }
174
+ fieldset {
175
+ margin: 0;
176
+ padding: 0;
177
+ }
178
+ legend {
179
+ padding: 0;
180
+ }
181
+ ol,
182
+ ul,
183
+ menu {
184
+ margin: 0;
185
+ padding: 0;
186
+ list-style: none;
187
+ }
188
+ textarea {
189
+ resize: vertical;
190
+ }
191
+ input::placeholder,
192
+ textarea::placeholder {
193
+ opacity: 1;
194
+ color: var(--w-s-color-text-placeholder);
195
+ }
196
+ button,
197
+ [role='button'] {
198
+ cursor: pointer;
199
+ }
200
+ :disabled {
201
+ cursor: default;
202
+ }
203
+ img,
204
+ svg,
205
+ video,
206
+ canvas,
207
+ audio,
208
+ iframe,
209
+ embed,
210
+ object {
211
+ vertical-align: middle;
212
+ display: block;
213
+ }
214
+ img,
215
+ video {
216
+ max-width: 100%;
217
+ height: auto;
218
+ }
219
+ h1 {
220
+ font-size: var(--w-font-size-xxl);
221
+ line-height: var(--w-line-height-xxl);
222
+ }
223
+ h2 {
224
+ font-size: var(--w-font-size-xl);
225
+ line-height: var(--w-line-height-xl);
226
+ }
227
+ h3 {
228
+ font-size: var(--w-font-size-l);
229
+ line-height: var(--w-line-height-l);
230
+ }
231
+ h4 {
232
+ font-size: var(--w-font-size-m);
233
+ line-height: var(--w-line-height-m);
234
+ }
235
+ h5 {
236
+ font-size: var(--w-font-size-s);
237
+ line-height: var(--w-line-height-s);
238
+ }
239
+ dt,
240
+ dd {
241
+ margin: 0 16px;
242
+ }
243
+ h1,
244
+ h2,
245
+ h3,
246
+ h4,
247
+ h5,
248
+ ul,
249
+ ol,
250
+ dl,
251
+ p,
252
+ blockquote {
253
+ margin: 0 0 8px;
254
+ }
255
+ [hidden] {
256
+ display: none !important;
257
+ }
258
+ [tabindex='-1']:focus:not(:focus-visible) {
259
+ outline: none;
260
+ }
261
+ legend {
262
+ float: left;
263
+ width: 100%;
264
+ margin: 0;
265
+ padding: 0;
266
+ display: table;
267
+ }
268
+ legend + * {
269
+ clear: both;
270
+ }
271
+ fieldset {
272
+ border: 0;
273
+ min-width: 0;
274
+ margin: 0;
275
+ padding: 0.01em 0 0;
276
+ }
277
+ body:not(:-moz-handler-blocked) fieldset {
278
+ display: table-cell;
279
+ }
280
+ svg {
281
+ pointer-events: none;
282
+ }
283
+ `,yo=ve`*, :before, :after {
284
+ --w-rotate: 0;
285
+ --w-rotate-x: 0;
286
+ --w-rotate-y: 0;
287
+ --w-rotate-z: 0;
288
+ --w-scale-x: 1;
289
+ --w-scale-y: 1;
290
+ --w-scale-z: 1;
291
+ --w-skew-x: 0;
292
+ --w-skew-y: 0;
293
+ --w-translate-x: 0;
294
+ --w-translate-y: 0;
295
+ --w-translate-z: 0
1775
296
  }
1776
- return message + value;
1777
- }, "");
1778
- };
1779
- const result = formatMessage(translation);
1780
- if (isString(result) && UNICODE_REGEX.test(result)) {
1781
- return (0, import_unraw.unraw)(result);
1782
- }
1783
- if (isString(result))
1784
- return result;
1785
- return result ? String(result) : "";
1786
- };
1787
- }
1788
- var __defProp$1 = Object.defineProperty;
1789
- var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1790
- var __publicField$1 = (obj, key, value) => {
1791
- __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
1792
- return value;
1793
- };
1794
- var EventEmitter = class {
1795
- constructor() {
1796
- __publicField$1(this, "_events", {});
1797
- }
1798
- on(event, listener) {
1799
- var _a2;
1800
- var _a;
1801
- (_a2 = (_a = this._events)[event]) != null ? _a2 : _a[event] = [];
1802
- this._events[event].push(listener);
1803
- return () => this.removeListener(event, listener);
1804
- }
1805
- removeListener(event, listener) {
1806
- const maybeListeners = this._getListeners(event);
1807
- if (!maybeListeners)
1808
- return;
1809
- const index = maybeListeners.indexOf(listener);
1810
- if (~index)
1811
- maybeListeners.splice(index, 1);
1812
- }
1813
- emit(event, ...args) {
1814
- const maybeListeners = this._getListeners(event);
1815
- if (!maybeListeners)
1816
- return;
1817
- maybeListeners.map((listener) => listener.apply(this, args));
1818
- }
1819
- _getListeners(event) {
1820
- const maybeListeners = this._events[event];
1821
- return Array.isArray(maybeListeners) ? maybeListeners : false;
1822
- }
1823
- };
1824
- var __defProp2 = Object.defineProperty;
1825
- var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1826
- var __publicField2 = (obj, key, value) => {
1827
- __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
1828
- return value;
1829
- };
1830
- var I18n = class extends EventEmitter {
1831
- constructor(params) {
1832
- var _a;
1833
- super();
1834
- __publicField2(this, "_locale", "");
1835
- __publicField2(this, "_locales");
1836
- __publicField2(this, "_localeData", {});
1837
- __publicField2(this, "_messages", {});
1838
- __publicField2(this, "_missing");
1839
- __publicField2(this, "_messageCompiler");
1840
- __publicField2(this, "t", this._.bind(this));
1841
- if (true) {
1842
- this.setMessagesCompiler(compileMessage);
1843
- }
1844
- if (params.missing != null)
1845
- this._missing = params.missing;
1846
- if (params.messages != null)
1847
- this.load(params.messages);
1848
- if (params.localeData != null)
1849
- this.loadLocaleData(params.localeData);
1850
- if (typeof params.locale === "string" || params.locales) {
1851
- this.activate((_a = params.locale) != null ? _a : defaultLocale, params.locales);
1852
- }
1853
- }
1854
- get locale() {
1855
- return this._locale;
1856
- }
1857
- get locales() {
1858
- return this._locales;
1859
- }
1860
- get messages() {
1861
- var _a;
1862
- return (_a = this._messages[this._locale]) != null ? _a : {};
1863
- }
1864
- /**
1865
- * @deprecated this has no effect. Please remove this from the code. Deprecated in v4
1866
- */
1867
- get localeData() {
1868
- var _a;
1869
- return (_a = this._localeData[this._locale]) != null ? _a : {};
1870
- }
1871
- _loadLocaleData(locale, localeData) {
1872
- const maybeLocaleData = this._localeData[locale];
1873
- if (!maybeLocaleData) {
1874
- this._localeData[locale] = localeData;
1875
- } else {
1876
- Object.assign(maybeLocaleData, localeData);
1877
- }
1878
- }
1879
- /**
1880
- * Registers a `MessageCompiler` to enable the use of uncompiled catalogs at runtime.
1881
- *
1882
- * In production builds, the `MessageCompiler` is typically excluded to reduce bundle size.
1883
- * By default, message catalogs should be precompiled during the build process. However,
1884
- * if you need to compile catalogs at runtime, you can use this method to set a message compiler.
1885
- *
1886
- * Example usage:
1887
- *
1888
- * ```ts
1889
- * import { compileMessage } from "@lingui/message-utils/compileMessage";
1890
- *
1891
- * i18n.setMessagesCompiler(compileMessage);
1892
- * ```
1893
- */
1894
- setMessagesCompiler(compiler) {
1895
- this._messageCompiler = compiler;
1896
- return this;
1897
- }
1898
- /**
1899
- * @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Deprecated in v4
1900
- */
1901
- loadLocaleData(localeOrAllData, localeData) {
1902
- if (typeof localeOrAllData === "string") {
1903
- this._loadLocaleData(localeOrAllData, localeData);
1904
- } else {
1905
- Object.keys(localeOrAllData).forEach(
1906
- (locale) => this._loadLocaleData(locale, localeOrAllData[locale])
1907
- );
1908
- }
1909
- this.emit("change");
1910
- }
1911
- _load(locale, messages9) {
1912
- const maybeMessages = this._messages[locale];
1913
- if (!maybeMessages) {
1914
- this._messages[locale] = messages9;
1915
- } else {
1916
- Object.assign(maybeMessages, messages9);
1917
- }
1918
- }
1919
- load(localeOrMessages, messages9) {
1920
- if (typeof localeOrMessages == "string" && typeof messages9 === "object") {
1921
- this._load(localeOrMessages, messages9);
1922
- } else {
1923
- Object.entries(localeOrMessages).forEach(
1924
- ([locale, messages25]) => this._load(locale, messages25)
1925
- );
1926
- }
1927
- this.emit("change");
1928
- }
1929
- /**
1930
- * @param options {@link LoadAndActivateOptions}
1931
- */
1932
- loadAndActivate({ locale, locales, messages: messages9 }) {
1933
- this._locale = locale;
1934
- this._locales = locales || void 0;
1935
- this._messages[this._locale] = messages9;
1936
- this.emit("change");
1937
- }
1938
- activate(locale, locales) {
1939
- if (true) {
1940
- if (!this._messages[locale]) {
1941
- console.warn(`Messages for locale "${locale}" not loaded.`);
1942
- }
1943
- }
1944
- this._locale = locale;
1945
- this._locales = locales;
1946
- this.emit("change");
1947
- }
1948
- _(id, values, options) {
1949
- if (!this.locale) {
1950
- throw new Error(
1951
- "Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic."
1952
- );
1953
- }
1954
- let message = options == null ? void 0 : options.message;
1955
- if (!id) {
1956
- id = "";
1957
- }
1958
- if (!isString(id)) {
1959
- values = id.values || values;
1960
- message = id.message;
1961
- id = id.id;
1962
- }
1963
- const messageForId = this.messages[id];
1964
- const messageMissing = messageForId === void 0;
1965
- const missing = this._missing;
1966
- if (missing && messageMissing) {
1967
- return isFunction(missing) ? missing(this._locale, id) : missing;
1968
- }
1969
- if (messageMissing) {
1970
- this.emit("missing", { id, locale: this._locale });
1971
- }
1972
- let translation = messageForId || message || id;
1973
- if (isString(translation)) {
1974
- if (this._messageCompiler) {
1975
- translation = this._messageCompiler(translation);
1976
- } else {
1977
- console.warn(`Uncompiled message detected! Message:
1978
-
1979
- > ${translation}
1980
297
 
1981
- That means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.
1982
- ICU features such as interpolation and plurals will not work properly for that message.
298
+ .h4, .t4 {
299
+ font-weight: 700;
300
+ font-size: var(--w-font-size-m);
301
+ line-height: var(--w-line-height-m)
302
+ }
303
+
304
+ .t3 {
305
+ font-weight: 700;
306
+ font-size: var(--w-font-size-l);
307
+ line-height: var(--w-line-height-l)
308
+ }
309
+
310
+ @media (min-width: 480px) {
311
+ .sm\\:h3 {
312
+ font-weight: 700;
313
+ font-size: var(--w-font-size-l);
314
+ line-height: var(--w-line-height-l)
315
+ }
316
+ }
317
+
318
+ .text-center {
319
+ text-align: center
320
+ }
321
+
322
+ .before\\:text-center:before {
323
+ text-align: center
324
+ }
325
+
326
+ .text-left {
327
+ text-align: left
328
+ }
329
+
330
+ .text-right {
331
+ text-align: right
332
+ }
333
+
334
+ .align-middle {
335
+ vertical-align: middle
336
+ }
337
+
338
+ .animate-inprogress {
339
+ background-image: linear-gradient(135deg, rgba(0, 0, 0, .05) 25%, transparent 0, transparent 50%, rgba(0, 0, 0, .05) 0, rgba(0, 0, 0, .05) 75%, transparent 0, transparent) !important;
340
+ background-size: 30px 30px;
341
+ animation: animate-inprogress 3s linear infinite
342
+ }
343
+
344
+ @keyframes animate-inprogress {
345
+ 0% {
346
+ background-position: 0 0
347
+ }
348
+ to {
349
+ background-position: 60px 0
350
+ }
351
+ }
352
+
353
+ .\\[--w-modal-max-height\\:80\\%\\] {
354
+ --w-modal-max-height: 80%
355
+ }
356
+
357
+ .\\[--w-modal-width\\:640px\\] {
358
+ --w-modal-width: 640px
359
+ }
360
+
361
+ .focus\\:\\[--w-outline-offset\\:-2px\\]:focus {
362
+ --w-outline-offset: -2px
363
+ }
364
+
365
+ .backdrop-blur {
366
+ -webkit-backdrop-filter: blur(4px);
367
+ backdrop-filter: blur(4px)
368
+ }
369
+
370
+ .peer:checked ~ .peer-checked\\:before\\:bg-center:before {
371
+ background-position: center
372
+ }
373
+
374
+ .hover\\:bg-clip-padding:hover {
375
+ -webkit-background-clip: padding-box;
376
+ background-clip: padding-box
377
+ }
378
+
379
+ .bg-transparent, .group\\/steph:first-child .group-first\\/steph\\:bg-transparent, .group\\/steph:last-child .group-last\\/steph\\:bg-transparent {
380
+ background-color: transparent
381
+ }
382
+
383
+ .bg-\\[--w-black\\/25\\] {
384
+ background-color: rgba(var(--w-rgb-black), .25)
385
+ }
386
+
387
+ .bg-\\[--w-black\\/70\\], .bg-\\[var\\(--w-black\\)\\/70\\] {
388
+ background-color: rgba(var(--w-rgb-black), .7)
389
+ }
390
+
391
+ .bg-\\[--w-color-badge-info-background\\] {
392
+ background-color: var(--w-color-badge-info-background)
393
+ }
394
+
395
+ .bg-\\[--w-color-badge-negative-background\\] {
396
+ background-color: var(--w-color-badge-negative-background)
397
+ }
398
+
399
+ .bg-\\[--w-color-badge-neutral-background\\] {
400
+ background-color: var(--w-color-badge-neutral-background)
401
+ }
402
+
403
+ .bg-\\[--w-color-badge-positive-background\\] {
404
+ background-color: var(--w-color-badge-positive-background)
405
+ }
406
+
407
+ .bg-\\[--w-color-badge-sponsored-background\\] {
408
+ background-color: var(--w-color-badge-sponsored-background)
409
+ }
410
+
411
+ .bg-\\[--w-color-badge-warning-background\\] {
412
+ background-color: var(--w-color-badge-warning-background)
413
+ }
414
+
415
+ .bg-\\[--w-color-button-primary-background\\] {
416
+ background-color: var(--w-color-button-primary-background)
417
+ }
418
+
419
+ .bg-\\[--w-color-buttongroup-utility-background-selected\\] {
420
+ background-color: var(--w-color-buttongroup-utility-background-selected)
421
+ }
422
+
423
+ .bg-\\[--w-color-callout-background\\] {
424
+ background-color: var(--w-color-callout-background)
425
+ }
426
+
427
+ .bg-\\[--w-color-pill-suggestion-background\\] {
428
+ background-color: var(--w-color-pill-suggestion-background)
429
+ }
430
+
431
+ .bg-\\[--w-color-switch-track-background\\] {
432
+ background-color: var(--w-color-switch-track-background)
433
+ }
434
+
435
+ .bg-\\[--w-s-color-surface-elevated-100\\] {
436
+ background-color: var(--w-s-color-surface-elevated-100)
437
+ }
438
+
439
+ .bg-\\[--w-s-color-surface-elevated-300\\] {
440
+ background-color: var(--w-s-color-surface-elevated-300)
441
+ }
442
+
443
+ .bg-\\[--w-s-icon-selected\\] {
444
+ background-color: var(--w-s-icon-selected)
445
+ }
446
+
447
+ .group:hover .group-hover\\:bg-\\[--w-color-switch-track-background-hover\\] {
448
+ background-color: var(--w-color-switch-track-background-hover)
449
+ }
450
+
451
+ .hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover {
452
+ background-color: var(--w-color-button-pill-background-hover)
453
+ }
454
+
455
+ .hover\\:bg-\\[--w-color-button-primary-background-hover\\]:hover {
456
+ background-color: var(--w-color-button-primary-background-hover)
457
+ }
458
+
459
+ .hover\\:bg-\\[--w-color-buttongroup-utility-background-hover\\]:hover {
460
+ background-color: var(--w-color-buttongroup-utility-background-hover)
461
+ }
462
+
463
+ .hover\\:bg-\\[--w-color-pill-suggestion-background-hover\\]:hover {
464
+ background-color: var(--w-color-pill-suggestion-background-hover)
465
+ }
466
+
467
+ .hover\\:bg-\\[--w-s-icon-subtle\\]:hover {
468
+ background-color: var(--w-s-icon-subtle)
469
+ }
470
+
471
+ .hover\\:bg-\\[var\\(--w-black\\)\\/85\\]:hover {
472
+ background-color: rgba(var(--w-rgb-black), .85)
473
+ }
474
+
475
+ .active\\:bg-\\[--w-color-button-pill-background-active\\]:active {
476
+ background-color: var(--w-color-button-pill-background-active)
477
+ }
478
+
479
+ .active\\:bg-\\[--w-color-button-primary-background-active\\]:active {
480
+ background-color: var(--w-color-button-primary-background-active)
481
+ }
482
+
483
+ .active\\:bg-\\[--w-color-buttongroup-utility-background-selected\\]:active {
484
+ background-color: var(--w-color-buttongroup-utility-background-selected)
485
+ }
486
+
487
+ .active\\:bg-\\[--w-color-pill-suggestion-background-active\\]:active {
488
+ background-color: var(--w-color-pill-suggestion-background-active)
489
+ }
490
+
491
+ .active\\:bg-\\[var\\(--w-black\\)\\]:active {
492
+ background-color: var(--w-black)
493
+ }
494
+
495
+ .peer:checked ~ .peer-checked\\:before\\:bg-\\[url\\(var\\(--w-icon-toggle-checked\\)\\)\\]:before {
496
+ background-image: var(--w-icon-toggle-checked)
497
+ }
498
+
499
+ .appearance-none {
500
+ -moz-appearance: none;
501
+ appearance: none;
502
+ -webkit-appearance: none
503
+ }
504
+
505
+ .will-change-height {
506
+ will-change: height
507
+ }
508
+
509
+ .border, .border-1 {
510
+ border-width: 1px
511
+ }
512
+
513
+ .border-b {
514
+ border-bottom-width: 1px
515
+ }
516
+
517
+ .before\\:border:before {
518
+ border-width: 1px
519
+ }
520
+
521
+ .border-0 {
522
+ border-width: 0
523
+ }
524
+
525
+ .border-2 {
526
+ border-width: 2px
527
+ }
528
+
529
+ .border-b-0 {
530
+ border-bottom-width: 0
531
+ }
532
+
533
+ .border-b-4 {
534
+ border-bottom-width: 4px
535
+ }
536
+
537
+ .border-l-4 {
538
+ border-left-width: 4px
539
+ }
540
+
541
+ .border-r-0, .group:not(:last-of-type) .group-not-last-of-type\\:border-r-0 {
542
+ border-right-width: 0
543
+ }
544
+
545
+ .peer:checked ~ .peer-checked\\:before\\:border-\\[6\\]:before {
546
+ border-width: .6rem
547
+ }
548
+
549
+ .border-transparent {
550
+ border-color: transparent
551
+ }
552
+
553
+ .border-\\[--w-color-buttongroup-utility-border\\] {
554
+ border-color: var(--w-color-buttongroup-utility-border)
555
+ }
556
+
557
+ .border-\\[--w-color-callout-border\\] {
558
+ border-color: var(--w-color-callout-border)
559
+ }
560
+
561
+ .border-\\[--w-s-color-background-inverted\\] {
562
+ border-color: var(--w-s-color-background-inverted)
563
+ }
564
+
565
+ .border-\\[--w-s-color-surface-elevated-300\\] {
566
+ border-color: var(--w-s-color-surface-elevated-300)
567
+ }
568
+
569
+ .active\\:border-\\[--w-color-buttongroup-utility-border-selected\\]:active {
570
+ border-color: var(--w-color-buttongroup-utility-border-selected)
571
+ }
572
+
573
+ .divide-x > * + * {
574
+ --w-divide-x-reverse: 0;
575
+ border-left-width: calc(1px * calc(1 - var(--w-divide-x-reverse)));
576
+ border-right-width: calc(1px * var(--w-divide-x-reverse))
577
+ }
578
+
579
+ .divide-y > * + * {
580
+ --w-divide-y-reverse: 0;
581
+ border-top-width: calc(1px * calc(1 - var(--w-divide-y-reverse)));
582
+ border-bottom-width: calc(1px * var(--w-divide-y-reverse))
583
+ }
584
+
585
+ .rounded-4 {
586
+ border-radius: 4px
587
+ }
588
+
589
+ .rounded-8 {
590
+ border-radius: 8px
591
+ }
592
+
593
+ .rounded-full {
594
+ border-radius: 9999px
595
+ }
596
+
597
+ .before\\:rounded-2:before {
598
+ border-radius: 2px
599
+ }
600
+
601
+ .before\\:rounded-full:before {
602
+ border-radius: 9999px
603
+ }
604
+
605
+ .rounded-b-0 {
606
+ border-bottom-left-radius: 0;
607
+ border-bottom-right-radius: 0
608
+ }
609
+
610
+ .rounded-bl-0 {
611
+ border-bottom-left-radius: 0
612
+ }
613
+
614
+ .rounded-br-0 {
615
+ border-bottom-right-radius: 0
616
+ }
617
+
618
+ .rounded-l-0 {
619
+ border-top-left-radius: 0;
620
+ border-bottom-left-radius: 0
621
+ }
622
+
623
+ .rounded-l-full {
624
+ border-top-left-radius: 9999px;
625
+ border-bottom-left-radius: 9999px
626
+ }
627
+
628
+ .rounded-r-0 {
629
+ border-top-right-radius: 0;
630
+ border-bottom-right-radius: 0
631
+ }
632
+
633
+ .rounded-r-full {
634
+ border-top-right-radius: 9999px;
635
+ border-bottom-right-radius: 9999px
636
+ }
637
+
638
+ .rounded-tl-0 {
639
+ border-top-left-radius: 0
640
+ }
641
+
642
+ .rounded-tl-4 {
643
+ border-top-left-radius: 4px
644
+ }
645
+
646
+ .rounded-tr-0 {
647
+ border-top-right-radius: 0
648
+ }
649
+
650
+ .group:first-of-type .group-first-of-type\\:rounded-bl-8 {
651
+ border-bottom-left-radius: 8px
652
+ }
653
+
654
+ .group:first-of-type .group-first-of-type\\:rounded-tl-8 {
655
+ border-top-left-radius: 8px
656
+ }
657
+
658
+ .first\\:rounded-lb-4:first-child {
659
+ border-bottom-left-radius: 4px
660
+ }
661
+
662
+ .first\\:rounded-lt-4:first-child {
663
+ border-top-left-radius: 4px
664
+ }
665
+
666
+ .first\\:rounded-rt-4:first-child {
667
+ border-top-right-radius: 4px
668
+ }
669
+
670
+ .group:last-of-type .group-last-of-type\\:rounded-br-8 {
671
+ border-bottom-right-radius: 8px
672
+ }
673
+
674
+ .group:last-of-type .group-last-of-type\\:rounded-tr-8 {
675
+ border-top-right-radius: 8px
676
+ }
677
+
678
+ .last\\:rounded-lb-4:last-child {
679
+ border-bottom-left-radius: 4px
680
+ }
681
+
682
+ .last\\:rounded-rb-4:last-child {
683
+ border-bottom-right-radius: 4px
684
+ }
685
+
686
+ .last\\:rounded-rt-4:last-child {
687
+ border-top-right-radius: 4px
688
+ }
689
+
690
+ .caret-current {
691
+ caret-color: currentColor
692
+ }
693
+
694
+ .opacity-25 {
695
+ opacity: 25%
696
+ }
697
+
698
+ .block {
699
+ display: block
700
+ }
701
+
702
+ .before\\:block:before {
703
+ display: block
704
+ }
705
+
706
+ .inline-block {
707
+ display: inline-block
708
+ }
709
+
710
+ .inline {
711
+ display: inline
712
+ }
713
+
714
+ .flex, .open\\:flex[open] {
715
+ display: flex
716
+ }
717
+
718
+ .inline-flex {
719
+ display: inline-flex
720
+ }
721
+
722
+ .grid {
723
+ display: grid
724
+ }
725
+
726
+ .inline-grid {
727
+ display: inline-grid
728
+ }
729
+
730
+ .hidden, .group\\/stepv:last-child .group-last\\/stepv\\:hidden {
731
+ display: none
732
+ }
733
+
734
+ .before\\:hidden:before {
735
+ display: none
736
+ }
737
+
738
+ .hover\\:underline:hover {
739
+ text-decoration-line: underline
740
+ }
741
+
742
+ .focus\\:underline:focus {
743
+ text-decoration-line: underline
744
+ }
745
+
746
+ .focus-visible\\:underline:focus-visible {
747
+ text-decoration-line: underline
748
+ }
749
+
750
+ .active\\:underline:active {
751
+ text-decoration-line: underline
752
+ }
753
+
754
+ .hover\\:no-underline:hover {
755
+ text-decoration: none
756
+ }
757
+
758
+ .focus\\:no-underline:focus {
759
+ text-decoration: none
760
+ }
761
+
762
+ .active\\:no-underline:active {
763
+ text-decoration: none
764
+ }
765
+
766
+ .flex-1 {
767
+ flex: 1 1 0%
768
+ }
769
+
770
+ .shrink {
771
+ flex-shrink: 1
772
+ }
773
+
774
+ .shrink-0 {
775
+ flex-shrink: 0
776
+ }
777
+
778
+ .shrink-0\\! {
779
+ flex-shrink: 0 !important
780
+ }
781
+
782
+ .grow, .grow-1 {
783
+ flex-grow: 1
784
+ }
785
+
786
+ .basis-auto {
787
+ flex-basis: auto
788
+ }
789
+
790
+ .flex-col {
791
+ flex-direction: column
792
+ }
793
+
794
+ .focus-within\\:focusable:focus-within {
795
+ outline: 2px solid var(--w-s-color-border-focus);
796
+ outline-offset: var(--w-outline-offset, 1px)
797
+ }
798
+
799
+ .focusable:focus, .focusable:focus-visible {
800
+ outline: 2px solid var(--w-s-color-border-focus);
801
+ outline-offset: var(--w-outline-offset, 1px)
802
+ }
803
+
804
+ .focusable:not(:focus-visible) {
805
+ outline: none
806
+ }
807
+
808
+ .peer:focus ~ .peer-focus\\:focusable, .peer:focus-visible ~ .peer-focus\\:focusable {
809
+ outline: 2px solid var(--w-s-color-border-focus);
810
+ outline-offset: var(--w-outline-offset, 1px)
811
+ }
812
+
813
+ .peer:not(:focus-visible) ~ .peer-focus\\:focusable {
814
+ outline: none
815
+ }
816
+
817
+ .focusable-inset {
818
+ --w-outline-offset: -3px
819
+ }
820
+
821
+ .gap-12 {
822
+ gap: 1.2rem
823
+ }
824
+
825
+ .gap-8 {
826
+ gap: .8rem
827
+ }
828
+
829
+ .gap-x-16 {
830
+ column-gap: 1.6rem
831
+ }
832
+
833
+ .gap-y-16 {
834
+ row-gap: 1.6rem
835
+ }
836
+
837
+ .row-span-2 {
838
+ grid-row: span 2/span 2
839
+ }
840
+
841
+ .col-span-2 {
842
+ grid-column: span 2/span 2
843
+ }
844
+
845
+ .col-span-3 {
846
+ grid-column: span 3/span 3
847
+ }
848
+
849
+ .row-start-1 {
850
+ grid-row-start: 1
851
+ }
852
+
853
+ .row-start-2 {
854
+ grid-row-start: 2
855
+ }
856
+
857
+ .col-start-2 {
858
+ grid-column-start: 2
859
+ }
860
+
861
+ .auto-rows-auto {
862
+ grid-auto-rows: auto
863
+ }
864
+
865
+ .grid-flow-col {
866
+ grid-auto-flow: column
867
+ }
868
+
869
+ .grid-rows-\\[20px_auto\\] {
870
+ grid-template-rows:20px auto
871
+ }
872
+
873
+ .grid-rows-\\[auto_20px\\] {
874
+ grid-template-rows:auto 20px
875
+ }
876
+
877
+ .grid-cols-\\[1fr_20px_1fr\\] {
878
+ grid-template-columns:1fr 20px 1fr
879
+ }
880
+
881
+ .grid-cols-\\[1fr_20px\\] {
882
+ grid-template-columns:1fr 20px
883
+ }
884
+
885
+ .grid-cols-\\[20px_1fr\\] {
886
+ grid-template-columns:20px 1fr
887
+ }
888
+
889
+ .grid-cols-\\[auto_1fr_auto\\] {
890
+ grid-template-columns:auto 1fr auto
891
+ }
892
+
893
+ .grid-cols-1 {
894
+ grid-template-columns:repeat(1, minmax(0, 1fr))
895
+ }
896
+
897
+ .grid-cols-2 {
898
+ grid-template-columns:repeat(2, minmax(0, 1fr))
899
+ }
900
+
901
+ .grid-cols-3 {
902
+ grid-template-columns:repeat(3, minmax(0, 1fr))
903
+ }
904
+
905
+ .grid-cols-4 {
906
+ grid-template-columns:repeat(4, minmax(0, 1fr))
907
+ }
908
+
909
+ .grid-cols-5 {
910
+ grid-template-columns:repeat(5, minmax(0, 1fr))
911
+ }
912
+
913
+ .grid-cols-6 {
914
+ grid-template-columns:repeat(6, minmax(0, 1fr))
915
+ }
916
+
917
+ .grid-cols-7 {
918
+ grid-template-columns:repeat(7, minmax(0, 1fr))
919
+ }
920
+
921
+ .grid-cols-8 {
922
+ grid-template-columns:repeat(8, minmax(0, 1fr))
923
+ }
924
+
925
+ .grid-cols-9 {
926
+ grid-template-columns:repeat(9, minmax(0, 1fr))
927
+ }
928
+
929
+ .overflow-hidden {
930
+ overflow: hidden
931
+ }
932
+
933
+ .overflow-x-hidden {
934
+ overflow-x: hidden
935
+ }
936
+
937
+ .overflow-y-auto {
938
+ overflow-y: auto
939
+ }
940
+
941
+ .list-none {
942
+ list-style-type: none
943
+ }
944
+
945
+ .outline-\\[--w-s-color-border-negative\\]\\! {
946
+ outline-color: var(--w-s-color-border-negative) !important
947
+ }
948
+
949
+ .outline-none {
950
+ outline: 2px solid transparent;
951
+ outline-offset: 2px
952
+ }
953
+
954
+ .focus\\:outline-none:focus {
955
+ outline: 2px solid transparent;
956
+ outline-offset: 2px
957
+ }
958
+
959
+ .items-start {
960
+ align-items: flex-start
961
+ }
962
+
963
+ .items-end {
964
+ align-items: flex-end
965
+ }
966
+
967
+ .items-center {
968
+ align-items: center
969
+ }
970
+
971
+ .self-center {
972
+ align-self: center
973
+ }
974
+
975
+ .inset-0 {
976
+ top: 0rem;
977
+ right: 0rem;
978
+ bottom: 0rem;
979
+ left: 0rem
980
+ }
981
+
982
+ .-bottom-0 {
983
+ bottom: -0rem
984
+ }
985
+
986
+ .bottom-0 {
987
+ bottom: 0rem
988
+ }
989
+
990
+ .bottom-10 {
991
+ bottom: 1rem
992
+ }
993
+
994
+ .bottom-16 {
995
+ bottom: 1.6rem
996
+ }
997
+
998
+ .left-0 {
999
+ left: 0rem
1000
+ }
1001
+
1002
+ .left-4 {
1003
+ left: .4rem
1004
+ }
1005
+
1006
+ .right-0 {
1007
+ right: 0rem
1008
+ }
1009
+
1010
+ .right-8 {
1011
+ right: .8rem
1012
+ }
1013
+
1014
+ .top-\\[1\\.92rem\\] {
1015
+ top: 1.92rem
1016
+ }
1017
+
1018
+ .top-0 {
1019
+ top: 0rem
1020
+ }
1021
+
1022
+ .top-20 {
1023
+ top: 2rem
1024
+ }
1025
+
1026
+ .top-4 {
1027
+ top: .4rem
1028
+ }
1029
+
1030
+ .top-8 {
1031
+ top: .8rem
1032
+ }
1033
+
1034
+ .before\\:bottom-0:before {
1035
+ bottom: 0rem
1036
+ }
1037
+
1038
+ .before\\:left-0:before {
1039
+ left: 0rem
1040
+ }
1041
+
1042
+ .before\\:right-0:before {
1043
+ right: 0rem
1044
+ }
1045
+
1046
+ .before\\:top-2:before {
1047
+ top: .2rem
1048
+ }
1049
+
1050
+ .-bottom-\\[8px\\] {
1051
+ bottom: -8px
1052
+ }
1053
+
1054
+ .-left-\\[8px\\] {
1055
+ left: -8px
1056
+ }
1057
+
1058
+ .-right-\\[8px\\] {
1059
+ right: -8px
1060
+ }
1061
+
1062
+ .-top-\\[8px\\] {
1063
+ top: -8px
1064
+ }
1065
+
1066
+ .top-\\[19px\\] {
1067
+ top: 19px
1068
+ }
1069
+
1070
+ .top-\\[30\\%\\] {
1071
+ top: 30%
1072
+ }
1073
+
1074
+ .justify-end {
1075
+ justify-content: flex-end
1076
+ }
1077
+
1078
+ .justify-center {
1079
+ justify-content: center
1080
+ }
1081
+
1082
+ .justify-between {
1083
+ justify-content: space-between
1084
+ }
1085
+
1086
+ .justify-items-center {
1087
+ justify-items: center
1088
+ }
1089
+
1090
+ .justify-self-start {
1091
+ justify-self: start
1092
+ }
1093
+
1094
+ .justify-self-end {
1095
+ justify-self: end
1096
+ }
1097
+
1098
+ .justify-self-center {
1099
+ justify-self: center
1100
+ }
1101
+
1102
+ .absolute {
1103
+ position: absolute
1104
+ }
1105
+
1106
+ .fixed {
1107
+ position: fixed
1108
+ }
1109
+
1110
+ .relative {
1111
+ position: relative
1112
+ }
1113
+
1114
+ .open\\:fixed[open] {
1115
+ position: fixed
1116
+ }
1117
+
1118
+ .before\\:absolute:before {
1119
+ position: absolute
1120
+ }
1121
+
1122
+ .z-10, .peer:checked ~ .peer-checked\\:z-10 {
1123
+ z-index: 10
1124
+ }
1125
+
1126
+ .z-30 {
1127
+ z-index: 30
1128
+ }
1129
+
1130
+ .z-50 {
1131
+ z-index: 50
1132
+ }
1133
+
1134
+ .hover\\:z-30:hover {
1135
+ z-index: 30
1136
+ }
1137
+
1138
+ .\\!s-bg-selected {
1139
+ background-color: var(--w-s-color-background-selected) !important
1140
+ }
1141
+
1142
+ .s-bg {
1143
+ background-color: var(--w-s-color-background)
1144
+ }
1145
+
1146
+ .s-bg-disabled {
1147
+ background-color: var(--w-s-color-background-disabled)
1148
+ }
1149
+
1150
+ .s-bg-disabled-subtle {
1151
+ background-color: var(--w-s-color-background-disabled-subtle)
1152
+ }
1153
+
1154
+ .s-bg-info-subtle {
1155
+ background-color: var(--w-s-color-background-info-subtle)
1156
+ }
1157
+
1158
+ .s-bg-inverted {
1159
+ background-color: var(--w-s-color-background-inverted)
1160
+ }
1161
+
1162
+ .s-bg-negative {
1163
+ background-color: var(--w-s-color-background-negative)
1164
+ }
1165
+
1166
+ .s-bg-negative-subtle {
1167
+ background-color: var(--w-s-color-background-negative-subtle)
1168
+ }
1169
+
1170
+ .s-bg-positive-subtle {
1171
+ background-color: var(--w-s-color-background-positive-subtle)
1172
+ }
1173
+
1174
+ .s-bg-primary, .peer:checked ~ .peer-checked\\:s-bg-primary {
1175
+ background-color: var(--w-s-color-background-primary)
1176
+ }
1177
+
1178
+ .s-bg-selected {
1179
+ background-color: var(--w-s-color-background-selected)
1180
+ }
1181
+
1182
+ .s-bg-subtle {
1183
+ background-color: var(--w-s-color-background-subtle)
1184
+ }
1185
+
1186
+ .s-bg-warning-subtle {
1187
+ background-color: var(--w-s-color-background-warning-subtle)
1188
+ }
1189
+
1190
+ .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-bg-negative-hover:before {
1191
+ background-color: var(--w-s-color-background-negative-hover)
1192
+ }
1193
+
1194
+ .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-bg-primary-hover:before {
1195
+ background-color: var(--w-s-color-background-primary-hover)
1196
+ }
1197
+
1198
+ .peer:checked ~ .peer-checked\\:before\\:s-bg-disabled:before {
1199
+ background-color: var(--w-s-color-background-disabled)
1200
+ }
1201
+
1202
+ .peer:checked ~ .peer-checked\\:before\\:s-bg-negative:before {
1203
+ background-color: var(--w-s-color-background-negative)
1204
+ }
1205
+
1206
+ .peer:checked ~ .peer-checked\\:before\\:s-bg-primary:before {
1207
+ background-color: var(--w-s-color-background-primary)
1208
+ }
1209
+
1210
+ .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-bg-disabled:before {
1211
+ background-color: var(--w-s-color-background-disabled)
1212
+ }
1213
+
1214
+ .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-bg-negative:before {
1215
+ background-color: var(--w-s-color-background-negative)
1216
+ }
1217
+
1218
+ .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-bg-primary:before {
1219
+ background-color: var(--w-s-color-background-primary)
1220
+ }
1221
+
1222
+ .peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-bg-negative-hover:hover:before {
1223
+ background-color: var(--w-s-color-background-negative-hover)
1224
+ }
1225
+
1226
+ .peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-bg-primary-hover:hover:before {
1227
+ background-color: var(--w-s-color-background-primary-hover)
1228
+ }
1229
+
1230
+ .\\!hover\\:s-bg-selected-hover:hover {
1231
+ background-color: var(--w-s-color-background-selected-hover) !important
1232
+ }
1233
+
1234
+ .group:hover .group-hover\\:s-bg-primary-hover {
1235
+ background-color: var(--w-s-color-background-primary-hover)
1236
+ }
1237
+
1238
+ .hover\\:before\\:s-bg-hover:hover:before {
1239
+ background-color: var(--w-s-color-background-hover)
1240
+ }
1241
+
1242
+ .hover\\:before\\:s-bg-negative-subtle-hover:hover:before {
1243
+ background-color: var(--w-s-color-background-negative-subtle-hover)
1244
+ }
1245
+
1246
+ .hover\\:s-bg-hover:hover {
1247
+ background-color: var(--w-s-color-background-hover)
1248
+ }
1249
+
1250
+ .hover\\:s-bg-negative-hover:hover {
1251
+ background-color: var(--w-s-color-background-negative-hover)
1252
+ }
1253
+
1254
+ .hover\\:s-bg-negative-subtle-hover:hover {
1255
+ background-color: var(--w-s-color-background-negative-subtle-hover)
1256
+ }
1257
+
1258
+ .hover\\:s-bg-primary-hover:hover {
1259
+ background-color: var(--w-s-color-background-primary-hover)
1260
+ }
1261
+
1262
+ .hover\\:s-bg-selected-hover:hover {
1263
+ background-color: var(--w-s-color-background-selected-hover)
1264
+ }
1265
+
1266
+ .peer:hover:not(:checked) ~ .peer-hover\\:peer-not-checked\\:s-bg-hover {
1267
+ background-color: var(--w-s-color-background-hover)
1268
+ }
1269
+
1270
+ .peer:hover ~ .peer-hover\\:before\\:s-bg-hover:before {
1271
+ background-color: var(--w-s-color-background-hover)
1272
+ }
1273
+
1274
+ .peer:hover ~ .peer-hover\\:before\\:s-bg-negative-subtle:before {
1275
+ background-color: var(--w-s-color-background-negative-subtle)
1276
+ }
1277
+
1278
+ .focus\\:s-bg-primary-hover:focus {
1279
+ background-color: var(--w-s-color-background-primary-hover)
1280
+ }
1281
+
1282
+ .\\!active\\:s-bg-selected-active:active {
1283
+ background-color: var(--w-s-color-background-selected-active) !important
1284
+ }
1285
+
1286
+ .active\\:s-bg-active:active {
1287
+ background-color: var(--w-s-color-background-active)
1288
+ }
1289
+
1290
+ .active\\:s-bg-negative-active:active {
1291
+ background-color: var(--w-s-color-background-negative-active)
1292
+ }
1293
+
1294
+ .active\\:s-bg-negative-subtle-active:active {
1295
+ background-color: var(--w-s-color-background-negative-subtle-active)
1296
+ }
1297
+
1298
+ .active\\:s-bg-primary-active:active {
1299
+ background-color: var(--w-s-color-background-primary-active)
1300
+ }
1301
+
1302
+ .active\\:s-bg-selected-active:active {
1303
+ background-color: var(--w-s-color-background-selected-active)
1304
+ }
1305
+
1306
+ .before\\:s-bg-disabled-subtle:before {
1307
+ background-color: var(--w-s-color-background-disabled-subtle)
1308
+ }
1309
+
1310
+ .before\\:s-bg:before {
1311
+ background-color: var(--w-s-color-background)
1312
+ }
1313
+
1314
+ .s-text {
1315
+ color: var(--w-s-color-text)
1316
+ }
1317
+
1318
+ .s-text-disabled {
1319
+ color: var(--w-s-color-text-disabled)
1320
+ }
1321
+
1322
+ .s-text-inverted, .peer:checked ~ .peer-checked\\:s-text-inverted {
1323
+ color: var(--w-s-color-text-inverted)
1324
+ }
1325
+
1326
+ .s-text-inverted-static {
1327
+ color: var(--w-s-color-text-inverted-static)
1328
+ }
1329
+
1330
+ .s-text-link {
1331
+ color: var(--w-s-color-text-link)
1332
+ }
1333
+
1334
+ .s-text-negative {
1335
+ color: var(--w-s-color-text-negative)
1336
+ }
1337
+
1338
+ .s-text-subtle {
1339
+ color: var(--w-s-color-text-subtle)
1340
+ }
1341
+
1342
+ .hover\\:s-text-link:hover {
1343
+ color: var(--w-s-color-text-link)
1344
+ }
1345
+
1346
+ .active\\:s-text:active {
1347
+ color: var(--w-s-color-text)
1348
+ }
1349
+
1350
+ .placeholder\\:s-text-placeholder::placeholder {
1351
+ color: var(--w-s-color-text-placeholder)
1352
+ }
1353
+
1354
+ .s-icon {
1355
+ color: var(--w-s-color-icon)
1356
+ }
1357
+
1358
+ .s-icon-info {
1359
+ color: var(--w-s-color-icon-info)
1360
+ }
1361
+
1362
+ .s-icon-inverted {
1363
+ color: var(--w-s-color-icon-inverted)
1364
+ }
1365
+
1366
+ .s-icon-negative {
1367
+ color: var(--w-s-color-icon-negative)
1368
+ }
1369
+
1370
+ .s-icon-positive {
1371
+ color: var(--w-s-color-icon-positive)
1372
+ }
1373
+
1374
+ .s-icon-warning {
1375
+ color: var(--w-s-color-icon-warning)
1376
+ }
1377
+
1378
+ .hover\\:s-icon-hover:hover {
1379
+ color: var(--w-s-color-icon-hover)
1380
+ }
1381
+
1382
+ .active\\:s-icon-active:active {
1383
+ color: var(--w-s-color-icon-active)
1384
+ }
1385
+
1386
+ .before\\:s-icon-inverted:before {
1387
+ color: var(--w-s-color-icon-inverted)
1388
+ }
1389
+
1390
+ .s-border {
1391
+ border-color: var(--w-s-color-border)
1392
+ }
1393
+
1394
+ .s-border-disabled {
1395
+ border-color: var(--w-s-color-border-disabled)
1396
+ }
1397
+
1398
+ .s-border-info-subtle {
1399
+ border-color: var(--w-s-color-border-info-subtle)
1400
+ }
1401
+
1402
+ .s-border-l-info {
1403
+ border-left-color: var(--w-s-color-border-info)
1404
+ }
1405
+
1406
+ .s-border-l-negative {
1407
+ border-left-color: var(--w-s-color-border-negative)
1408
+ }
1409
+
1410
+ .s-border-l-positive {
1411
+ border-left-color: var(--w-s-color-border-positive)
1412
+ }
1413
+
1414
+ .s-border-l-warning {
1415
+ border-left-color: var(--w-s-color-border-warning)
1416
+ }
1417
+
1418
+ .s-border-negative {
1419
+ border-color: var(--w-s-color-border-negative)
1420
+ }
1421
+
1422
+ .s-border-negative-subtle {
1423
+ border-color: var(--w-s-color-border-negative-subtle)
1424
+ }
1425
+
1426
+ .s-border-positive-subtle {
1427
+ border-color: var(--w-s-color-border-positive-subtle)
1428
+ }
1429
+
1430
+ .s-border-primary, .peer:checked ~ .peer-checked\\:s-border-primary {
1431
+ border-color: var(--w-s-color-border-primary)
1432
+ }
1433
+
1434
+ .s-border-selected {
1435
+ border-color: var(--w-s-color-border-selected)
1436
+ }
1437
+
1438
+ .s-border-warning-subtle {
1439
+ border-color: var(--w-s-color-border-warning-subtle)
1440
+ }
1441
+
1442
+ .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-border-negative-hover:before {
1443
+ border-color: var(--w-s-color-border-negative-hover)
1444
+ }
1445
+
1446
+ .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-border-primary-hover:before {
1447
+ border-color: var(--w-s-color-border-primary-hover)
1448
+ }
1449
+
1450
+ .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-border-selected-hover:before {
1451
+ border-color: var(--w-s-color-border-selected-hover)
1452
+ }
1453
+
1454
+ .peer:checked ~ .peer-checked\\:before\\:s-border-disabled:before {
1455
+ border-color: var(--w-s-color-border-disabled)
1456
+ }
1457
+
1458
+ .peer:checked ~ .peer-checked\\:before\\:s-border-negative:before {
1459
+ border-color: var(--w-s-color-border-negative)
1460
+ }
1461
+
1462
+ .peer:checked ~ .peer-checked\\:before\\:s-border-primary:before {
1463
+ border-color: var(--w-s-color-border-primary)
1464
+ }
1465
+
1466
+ .peer:checked ~ .peer-checked\\:before\\:s-border-selected:before {
1467
+ border-color: var(--w-s-color-border-selected)
1468
+ }
1469
+
1470
+ .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-border-disabled:before {
1471
+ border-color: var(--w-s-color-border-disabled)
1472
+ }
1473
+
1474
+ .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-border-negative:before {
1475
+ border-color: var(--w-s-color-border-negative)
1476
+ }
1477
+
1478
+ .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-border-primary:before {
1479
+ border-color: var(--w-s-color-border-primary)
1480
+ }
1481
+
1482
+ .peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-border-negative-hover:hover:before {
1483
+ border-color: var(--w-s-color-border-negative-hover)
1484
+ }
1485
+
1486
+ .peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-border-primary-hover:hover:before {
1487
+ border-color: var(--w-s-color-border-primary-hover)
1488
+ }
1489
+
1490
+ .group:hover .group-hover\\:s-border-selected-hover {
1491
+ border-color: var(--w-s-color-border-selected-hover)
1492
+ }
1493
+
1494
+ .hover\\:before\\:s-border-negative-hover:hover:before {
1495
+ border-color: var(--w-s-color-border-negative-hover)
1496
+ }
1497
+
1498
+ .hover\\:before\\:s-border-primary:hover:before {
1499
+ border-color: var(--w-s-color-border-primary)
1500
+ }
1501
+
1502
+ .hover\\:s-border-disabled:hover {
1503
+ border-color: var(--w-s-color-border-disabled)
1504
+ }
1505
+
1506
+ .hover\\:s-border-hover:hover {
1507
+ border-color: var(--w-s-color-border-hover)
1508
+ }
1509
+
1510
+ .hover\\:s-border-negative-hover:hover {
1511
+ border-color: var(--w-s-color-border-negative-hover)
1512
+ }
1513
+
1514
+ .hover\\:s-border-primary-hover:hover {
1515
+ border-color: var(--w-s-color-border-primary-hover)
1516
+ }
1517
+
1518
+ .hover\\:s-border-primary:hover {
1519
+ border-color: var(--w-s-color-border-primary)
1520
+ }
1521
+
1522
+ .hover\\:s-border-selected-hover:hover {
1523
+ border-color: var(--w-s-color-border-selected-hover)
1524
+ }
1525
+
1526
+ .peer:hover ~ .peer-hover\\:before\\:s-border-negative-hover:before {
1527
+ border-color: var(--w-s-color-border-negative-hover)
1528
+ }
1529
+
1530
+ .peer:hover ~ .peer-hover\\:before\\:s-border-primary:before {
1531
+ border-color: var(--w-s-color-border-primary)
1532
+ }
1533
+
1534
+ .focus\\:s-border-primary-hover:focus {
1535
+ border-color: var(--w-s-color-border-primary-hover)
1536
+ }
1537
+
1538
+ .active\\:s-border-active:active {
1539
+ border-color: var(--w-s-color-border-active)
1540
+ }
1541
+
1542
+ .active\\:s-border-disabled:active {
1543
+ border-color: var(--w-s-color-border-disabled)
1544
+ }
1545
+
1546
+ .active\\:s-border-primary-active:active {
1547
+ border-color: var(--w-s-color-border-primary-active)
1548
+ }
1549
+
1550
+ .active\\:s-border-selected-active:active {
1551
+ border-color: var(--w-s-color-border-selected-active)
1552
+ }
1553
+
1554
+ .active\\:s-border-selected:active {
1555
+ border-color: var(--w-s-color-border-selected)
1556
+ }
1557
+
1558
+ .group:active .group-active\\:s-border-active {
1559
+ border-color: var(--w-s-color-border-active)
1560
+ }
1561
+
1562
+ .group:active .group-active\\:s-border-selected-active {
1563
+ border-color: var(--w-s-color-border-selected-active)
1564
+ }
1565
+
1566
+ .before\\:s-border-disabled:before {
1567
+ border-color: var(--w-s-color-border-disabled)
1568
+ }
1569
+
1570
+ .before\\:s-border-negative:before {
1571
+ border-color: var(--w-s-color-border-negative)
1572
+ }
1573
+
1574
+ .s-surface-sunken {
1575
+ background-color: var(--w-s-color-surface-sunken)
1576
+ }
1577
+
1578
+ .s-surface-elevated-200 {
1579
+ background-color: var(--w-s-color-surface-elevated-200);
1580
+ box-shadow: var(--w-s-shadow-surface-elevated-200)
1581
+ }
1582
+
1583
+ .hover\\:s-surface-elevated-200-hover:hover {
1584
+ background-color: var(--w-s-color-surface-elevated-200-hover);
1585
+ box-shadow: var(--w-s-shadow-surface-elevated-200-hover)
1586
+ }
1587
+
1588
+ .active\\:s-surface-elevated-200-active:active {
1589
+ background-color: var(--w-s-color-surface-elevated-200-active);
1590
+ box-shadow: var(--w-s-shadow-surface-elevated-200-active)
1591
+ }
1592
+
1593
+ .drop-shadow-m {
1594
+ filter: drop-shadow(rgba(64, 64, 64, .24) 0 3px 8px) drop-shadow(rgba(64, 64, 64, .16) 0 3px 6px)
1595
+ }
1596
+
1597
+ .shadow-m {
1598
+ box-shadow: var(--w-shadow-m)
1599
+ }
1600
+
1601
+ .shadow-s {
1602
+ box-shadow: var(--w-shadow-s)
1603
+ }
1604
+
1605
+ .shadow-\\[--w-shadow-slider\\] {
1606
+ box-shadow: var(--w-shadow-slider)
1607
+ }
1608
+
1609
+ .hover\\:shadow-\\[--w-shadow-slider-handle-hover\\]:hover {
1610
+ box-shadow: var(--w-shadow-slider-handle-hover)
1611
+ }
1612
+
1613
+ .focus\\:shadow-\\[--w-shadow-slider-handle-hover\\]:focus {
1614
+ box-shadow: var(--w-shadow-slider-handle-hover)
1615
+ }
1616
+
1617
+ .active\\:shadow-\\[--w-shadow-slider-handle-active\\]:active {
1618
+ box-shadow: var(--w-shadow-slider-handle-active)
1619
+ }
1620
+
1621
+ .h-0 {
1622
+ height: 0rem
1623
+ }
1624
+
1625
+ .h-16 {
1626
+ height: 1.6rem
1627
+ }
1628
+
1629
+ .h-2 {
1630
+ height: .2rem
1631
+ }
1632
+
1633
+ .h-20 {
1634
+ height: 2rem
1635
+ }
1636
+
1637
+ .h-24 {
1638
+ height: 2.4rem
1639
+ }
1640
+
1641
+ .h-4 {
1642
+ height: .4rem
1643
+ }
1644
+
1645
+ .h-44 {
1646
+ height: 4.4rem
1647
+ }
1648
+
1649
+ .h-6 {
1650
+ height: .6rem
1651
+ }
1652
+
1653
+ .h-8 {
1654
+ height: .8rem
1655
+ }
1656
+
1657
+ .h-full {
1658
+ height: 100%
1659
+ }
1660
+
1661
+ .h-unset {
1662
+ height: unset
1663
+ }
1664
+
1665
+ .max-h-unset {
1666
+ max-height: unset
1667
+ }
1668
+
1669
+ .max-w-full {
1670
+ max-width: 100%
1671
+ }
1672
+
1673
+ .max-w-max {
1674
+ max-width: max-content
1675
+ }
1676
+
1677
+ .max-w-unset {
1678
+ max-width: unset
1679
+ }
1680
+
1681
+ .min-h-32 {
1682
+ min-height: 3.2rem
1683
+ }
1684
+
1685
+ .min-h-40 {
1686
+ min-height: 4rem
1687
+ }
1688
+
1689
+ .min-w-16 {
1690
+ min-width: 1.6rem
1691
+ }
1692
+
1693
+ .min-w-32 {
1694
+ min-width: 3.2rem
1695
+ }
1696
+
1697
+ .w-16 {
1698
+ width: 1.6rem
1699
+ }
1700
+
1701
+ .w-2 {
1702
+ width: .2rem
1703
+ }
1704
+
1705
+ .w-20 {
1706
+ width: 2rem
1707
+ }
1708
+
1709
+ .w-24 {
1710
+ width: 2.4rem
1711
+ }
1712
+
1713
+ .w-32 {
1714
+ width: 3.2rem
1715
+ }
1716
+
1717
+ .w-40 {
1718
+ width: 4rem
1719
+ }
1720
+
1721
+ .w-44 {
1722
+ width: 4.4rem
1723
+ }
1724
+
1725
+ .w-8 {
1726
+ width: .8rem
1727
+ }
1728
+
1729
+ .w-full {
1730
+ width: 100%
1731
+ }
1732
+
1733
+ .w-max {
1734
+ width: max-content
1735
+ }
1736
+
1737
+ .w-unset {
1738
+ width: unset
1739
+ }
1740
+
1741
+ .before\\:h-20:before {
1742
+ height: 2rem
1743
+ }
1744
+
1745
+ .before\\:h-full:before {
1746
+ height: 100%
1747
+ }
1748
+
1749
+ .before\\:w-20:before {
1750
+ width: 2rem
1751
+ }
1752
+
1753
+ .before\\:w-32:before {
1754
+ width: 3.2rem
1755
+ }
1756
+
1757
+ .h-\\[--w-modal-height\\] {
1758
+ height: var(--w-modal-height)
1759
+ }
1760
+
1761
+ .h-\\[14px\\] {
1762
+ height: 14px
1763
+ }
1764
+
1765
+ .h-\\[16px\\] {
1766
+ height: 16px
1767
+ }
1768
+
1769
+ .max-h-\\[--w-modal-max-height\\] {
1770
+ max-height: var(--w-modal-max-height)
1771
+ }
1772
+
1773
+ .min-h-\\[--w-modal-min-height\\] {
1774
+ min-height: var(--w-modal-min-height)
1775
+ }
1776
+
1777
+ .min-h-\\[32px\\] {
1778
+ min-height: 32px
1779
+ }
1780
+
1781
+ .min-h-\\[40px\\] {
1782
+ min-height: 40px
1783
+ }
1784
+
1785
+ .min-h-\\[42\\] {
1786
+ min-height: 4.2rem
1787
+ }
1788
+
1789
+ .min-h-\\[44px\\] {
1790
+ min-height: 44px
1791
+ }
1792
+
1793
+ .min-w-\\[32px\\] {
1794
+ min-width: 32px
1795
+ }
1796
+
1797
+ .min-w-\\[40px\\] {
1798
+ min-width: 40px
1799
+ }
1800
+
1801
+ .min-w-\\[44px\\] {
1802
+ min-width: 44px
1803
+ }
1804
+
1805
+ .w-\\[--w-modal-width\\] {
1806
+ width: var(--w-modal-width)
1807
+ }
1808
+
1809
+ .w-\\[14px\\] {
1810
+ width: 14px
1811
+ }
1812
+
1813
+ .w-\\[16px\\] {
1814
+ width: 16px
1815
+ }
1816
+
1817
+ .space-x-8 > :not([hidden]) ~ :not([hidden]) {
1818
+ --w-space-x-reverse: 0;
1819
+ margin-left: calc(.8rem * calc(1 - var(--w-space-x-reverse)));
1820
+ margin-right: calc(.8rem * var(--w-space-x-reverse))
1821
+ }
1822
+
1823
+ .space-y-16 > :not([hidden]) ~ :not([hidden]) {
1824
+ --w-space-y-reverse: 0;
1825
+ margin-top: calc(1.6rem * calc(1 - var(--w-space-y-reverse)));
1826
+ margin-bottom: calc(1.6rem * var(--w-space-y-reverse))
1827
+ }
1828
+
1829
+ .m-0 {
1830
+ margin: 0rem
1831
+ }
1832
+
1833
+ .m-auto {
1834
+ margin: auto
1835
+ }
1836
+
1837
+ .-mx-16 {
1838
+ margin-left: -1.6rem;
1839
+ margin-right: -1.6rem
1840
+ }
1841
+
1842
+ .mx-0 {
1843
+ margin-left: 0rem;
1844
+ margin-right: 0rem
1845
+ }
1846
+
1847
+ .mx-8 {
1848
+ margin-left: .8rem;
1849
+ margin-right: .8rem
1850
+ }
1851
+
1852
+ .mx-auto {
1853
+ margin-left: auto;
1854
+ margin-right: auto
1855
+ }
1856
+
1857
+ .-mb-1 {
1858
+ margin-bottom: -.1rem
1859
+ }
1860
+
1861
+ .-ml-8 {
1862
+ margin-left: -.8rem
1863
+ }
1864
+
1865
+ .-mr-1 {
1866
+ margin-right: -.1rem
1867
+ }
1868
+
1869
+ .-mr-8 {
1870
+ margin-right: -.8rem
1871
+ }
1872
+
1873
+ .-mt-2 {
1874
+ margin-top: -.2rem
1875
+ }
1876
+
1877
+ .-mt-4 {
1878
+ margin-top: -.4rem
1879
+ }
1880
+
1881
+ .last-child\\:mb-0 > :last-child, .mb-0 {
1882
+ margin-bottom: 0rem
1883
+ }
1884
+
1885
+ .mb-32 {
1886
+ margin-bottom: 3.2rem
1887
+ }
1983
1888
 
1984
- Please compile your catalog first.
1985
- `);
1986
- }
1987
- }
1988
- if (isString(translation) && UNICODE_REGEX.test(translation))
1989
- return JSON.parse(`"${translation}"`);
1990
- if (isString(translation))
1991
- return translation;
1992
- return interpolate(
1993
- translation,
1994
- this._locale,
1995
- this._locales
1996
- )(values, options == null ? void 0 : options.formats);
1997
- }
1998
- date(value, format) {
1999
- return date(this._locales || this._locale, value, format);
2000
- }
2001
- number(value, format) {
2002
- return number(this._locales || this._locale, value, format);
2003
- }
2004
- };
2005
- function setupI18n(params = {}) {
2006
- return new I18n(params);
2007
- }
2008
- var i18n = setupI18n();
2009
-
2010
- // node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-p_f73b1d3c5bd9121d6f30248535f1f172/node_modules/@warp-ds/icons/dist/elements/info-16.js
2011
- var messages = JSON.parse('{"icon.title.info":["Informasjonssirkel"]}');
2012
- var messages2 = JSON.parse('{"icon.title.info":["Information circle"]}');
2013
- var messages3 = JSON.parse('{"icon.title.info":["Ympyr\xE4, jonka sis\xE4ll\xE4 on i-kirjain"]}');
2014
- var messages4 = JSON.parse('{"icon.title.info":["Informationscirkel"]}');
2015
- var messages5 = JSON.parse('{"icon.title.info":["Informationscirkel"]}');
2016
- var supportedLocales = ["en", "nb", "fi", "da", "sv"];
2017
- var defaultLocale2 = "en";
2018
- var detectByBrand = () => {
2019
- var _a;
2020
- let value;
2021
- switch ((_a = process == null ? void 0 : process.env) == null ? void 0 : _a.NMP_BRAND) {
2022
- case "FINN":
2023
- value = "nb";
2024
- break;
2025
- case "TORI":
2026
- value = "fi";
2027
- break;
2028
- case "BLOCKET":
2029
- value = "sv";
2030
- break;
2031
- case "DBA":
2032
- value = "da";
2033
- break;
2034
- default:
2035
- value = "en";
2036
- }
2037
- return value;
2038
- };
2039
- var detectByHost = () => {
2040
- var _a;
2041
- const hostname = (_a = document == null ? void 0 : document.location) == null ? void 0 : _a.hostname;
2042
- if (hostname == null ? void 0 : hostname.includes("finn")) {
2043
- return "nb";
2044
- } else if (hostname.includes("tori")) {
2045
- return "fi";
2046
- } else if (hostname.includes("blocket")) {
2047
- return "sv";
2048
- } else if (hostname.includes("dba")) {
2049
- return "da";
2050
- } else {
2051
- return defaultLocale2;
2052
- }
2053
- };
2054
- var getSupportedLocale = (usedLocale) => {
2055
- return supportedLocales.find(
2056
- (locale) => usedLocale === locale || usedLocale.toLowerCase().includes(locale)
2057
- ) || detectByHost();
2058
- };
2059
- function detectLocale() {
2060
- var _a;
2061
- if (typeof window === "undefined") {
2062
- const serverLocale = detectByBrand();
2063
- return getSupportedLocale(serverLocale);
2064
- }
2065
- try {
2066
- const htmlLocale = (_a = document == null ? void 0 : document.documentElement) == null ? void 0 : _a.lang;
2067
- const hostLocale = detectByHost();
2068
- if (!supportedLocales.includes(htmlLocale)) {
2069
- console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname");
2070
- return getSupportedLocale(hostLocale);
2071
- }
2072
- return getSupportedLocale(htmlLocale != null ? htmlLocale : hostLocale);
2073
- } catch (e) {
2074
- console.warn("could not detect locale, falling back to source locale", e);
2075
- return defaultLocale2;
2076
- }
2077
- }
2078
- var getMessages = (locale, enMsg, nbMsg, fiMsg, daMsg, svMsg) => {
2079
- if (locale === "nb") return nbMsg;
2080
- if (locale === "fi") return fiMsg;
2081
- if (locale === "da") return daMsg;
2082
- if (locale === "sv") return svMsg;
2083
- return enMsg;
2084
- };
2085
- var activateI18n = (enMessages, nbMessages, fiMessages, daMessages, svMessages) => {
2086
- const locale = detectLocale();
2087
- const messages62 = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);
2088
- i18n.load(locale, messages62);
2089
- i18n.activate(locale);
2090
- };
2091
- activateI18n(messages2, messages, messages3, messages4, messages5);
2092
- var IconInfo16 = class extends LitElement {
2093
- render() {
2094
- const title = i18n.t({ message: `Information circle`, id: "icon.title.info", comment: "Title for info icon" });
2095
- return html`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-info-16-part">${unsafeStatic(`<title>${title}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" d="M8 6.5v5"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8 4v.5"></path><path stroke="currentColor" stroke-miterlimit="10" d="M8 .5a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15Z"></path></svg>`;
2096
- }
2097
- };
2098
- if (!customElements.get("w-icon-info-16")) {
2099
- customElements.define("w-icon-info-16", IconInfo16);
2100
- }
2101
-
2102
- // node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-p_f73b1d3c5bd9121d6f30248535f1f172/node_modules/@warp-ds/icons/dist/elements/warning-16.js
2103
- import { LitElement as LitElement2 } from "lit";
2104
- import { unsafeStatic as unsafeStatic2, html as html2 } from "lit/static-html.js";
2105
- var messages6 = JSON.parse('{"icon.title.warning":["Varseltrekant med utropstegn"]}');
2106
- var messages22 = JSON.parse('{"icon.title.warning":["Warning triangle with exclamation point"]}');
2107
- var messages32 = JSON.parse('{"icon.title.warning":["Varoituskolmio, jonka sis\xE4ll\xE4 on huutomerkki"]}');
2108
- var messages42 = JSON.parse('{"icon.title.warning":["Advarselstrekant med et udr\xE5bstegn"]}');
2109
- var messages52 = JSON.parse('{"icon.title.warning":["Varningstriangel med utropstecken"]}');
2110
- var supportedLocales2 = ["en", "nb", "fi", "da", "sv"];
2111
- var defaultLocale3 = "en";
2112
- var detectByBrand2 = () => {
2113
- var _a;
2114
- let value;
2115
- switch ((_a = process == null ? void 0 : process.env) == null ? void 0 : _a.NMP_BRAND) {
2116
- case "FINN":
2117
- value = "nb";
2118
- break;
2119
- case "TORI":
2120
- value = "fi";
2121
- break;
2122
- case "BLOCKET":
2123
- value = "sv";
2124
- break;
2125
- case "DBA":
2126
- value = "da";
2127
- break;
2128
- default:
2129
- value = "en";
2130
- }
2131
- return value;
2132
- };
2133
- var detectByHost2 = () => {
2134
- var _a;
2135
- const hostname = (_a = document == null ? void 0 : document.location) == null ? void 0 : _a.hostname;
2136
- if (hostname == null ? void 0 : hostname.includes("finn")) {
2137
- return "nb";
2138
- } else if (hostname.includes("tori")) {
2139
- return "fi";
2140
- } else if (hostname.includes("blocket")) {
2141
- return "sv";
2142
- } else if (hostname.includes("dba")) {
2143
- return "da";
2144
- } else {
2145
- return defaultLocale3;
2146
- }
2147
- };
2148
- var getSupportedLocale2 = (usedLocale) => {
2149
- return supportedLocales2.find(
2150
- (locale) => usedLocale === locale || usedLocale.toLowerCase().includes(locale)
2151
- ) || detectByHost2();
2152
- };
2153
- function detectLocale2() {
2154
- var _a;
2155
- if (typeof window === "undefined") {
2156
- const serverLocale = detectByBrand2();
2157
- return getSupportedLocale2(serverLocale);
2158
- }
2159
- try {
2160
- const htmlLocale = (_a = document == null ? void 0 : document.documentElement) == null ? void 0 : _a.lang;
2161
- const hostLocale = detectByHost2();
2162
- if (!supportedLocales2.includes(htmlLocale)) {
2163
- console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname");
2164
- return getSupportedLocale2(hostLocale);
2165
- }
2166
- return getSupportedLocale2(htmlLocale != null ? htmlLocale : hostLocale);
2167
- } catch (e) {
2168
- console.warn("could not detect locale, falling back to source locale", e);
2169
- return defaultLocale3;
2170
- }
2171
- }
2172
- var getMessages2 = (locale, enMsg, nbMsg, fiMsg, daMsg, svMsg) => {
2173
- if (locale === "nb") return nbMsg;
2174
- if (locale === "fi") return fiMsg;
2175
- if (locale === "da") return daMsg;
2176
- if (locale === "sv") return svMsg;
2177
- return enMsg;
2178
- };
2179
- var activateI18n2 = (enMessages, nbMessages, fiMessages, daMessages, svMessages) => {
2180
- const locale = detectLocale2();
2181
- const messages62 = getMessages2(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);
2182
- i18n.load(locale, messages62);
2183
- i18n.activate(locale);
2184
- };
2185
- activateI18n2(messages22, messages6, messages32, messages42, messages52);
2186
- var IconWarning16 = class extends LitElement2 {
2187
- render() {
2188
- const title = i18n.t({ message: `Warning triangle with exclamation point`, id: "icon.title.warning", comment: "Title for warning icon" });
2189
- return html2`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-warning-16-part">${unsafeStatic2(`<title>${title}</title>`)}<path stroke="currentColor" d="m.712 14.07 6.25-12.994a1 1 0 0 1 1.792-.022l6.635 12.995a1 1 0 0 1-.89 1.455H1.613a1 1 0 0 1-.902-1.434Z"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8 6v4.992M8 13v.333"></path></svg>`;
2190
- }
2191
- };
2192
- if (!customElements.get("w-icon-warning-16")) {
2193
- customElements.define("w-icon-warning-16", IconWarning16);
2194
- }
2195
-
2196
- // node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-p_f73b1d3c5bd9121d6f30248535f1f172/node_modules/@warp-ds/icons/dist/elements/error-16.js
2197
- import { LitElement as LitElement3 } from "lit";
2198
- import { unsafeStatic as unsafeStatic3, html as html3 } from "lit/static-html.js";
2199
- var messages7 = JSON.parse('{"icon.title.error":["\xC5ttekant med utropstegn"]}');
2200
- var messages23 = JSON.parse('{"icon.title.error":["Octagon with exclamation point"]}');
2201
- var messages33 = JSON.parse('{"icon.title.error":["Kahdeksankulmio, jonka sis\xE4ll\xE4 on huutomerkki"]}');
2202
- var messages43 = JSON.parse('{"icon.title.error":["Ottekant med et udr\xE5bstegn"]}');
2203
- var messages53 = JSON.parse('{"icon.title.error":["Oktagon med utropstecken"]}');
2204
- var supportedLocales3 = ["en", "nb", "fi", "da", "sv"];
2205
- var defaultLocale4 = "en";
2206
- var detectByBrand3 = () => {
2207
- var _a;
2208
- let value;
2209
- switch ((_a = process == null ? void 0 : process.env) == null ? void 0 : _a.NMP_BRAND) {
2210
- case "FINN":
2211
- value = "nb";
2212
- break;
2213
- case "TORI":
2214
- value = "fi";
2215
- break;
2216
- case "BLOCKET":
2217
- value = "sv";
2218
- break;
2219
- case "DBA":
2220
- value = "da";
2221
- break;
2222
- default:
2223
- value = "en";
2224
- }
2225
- return value;
2226
- };
2227
- var detectByHost3 = () => {
2228
- var _a;
2229
- const hostname = (_a = document == null ? void 0 : document.location) == null ? void 0 : _a.hostname;
2230
- if (hostname == null ? void 0 : hostname.includes("finn")) {
2231
- return "nb";
2232
- } else if (hostname.includes("tori")) {
2233
- return "fi";
2234
- } else if (hostname.includes("blocket")) {
2235
- return "sv";
2236
- } else if (hostname.includes("dba")) {
2237
- return "da";
2238
- } else {
2239
- return defaultLocale4;
2240
- }
2241
- };
2242
- var getSupportedLocale3 = (usedLocale) => {
2243
- return supportedLocales3.find(
2244
- (locale) => usedLocale === locale || usedLocale.toLowerCase().includes(locale)
2245
- ) || detectByHost3();
2246
- };
2247
- function detectLocale3() {
2248
- var _a;
2249
- if (typeof window === "undefined") {
2250
- const serverLocale = detectByBrand3();
2251
- return getSupportedLocale3(serverLocale);
2252
- }
2253
- try {
2254
- const htmlLocale = (_a = document == null ? void 0 : document.documentElement) == null ? void 0 : _a.lang;
2255
- const hostLocale = detectByHost3();
2256
- if (!supportedLocales3.includes(htmlLocale)) {
2257
- console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname");
2258
- return getSupportedLocale3(hostLocale);
2259
- }
2260
- return getSupportedLocale3(htmlLocale != null ? htmlLocale : hostLocale);
2261
- } catch (e) {
2262
- console.warn("could not detect locale, falling back to source locale", e);
2263
- return defaultLocale4;
2264
- }
2265
- }
2266
- var getMessages3 = (locale, enMsg, nbMsg, fiMsg, daMsg, svMsg) => {
2267
- if (locale === "nb") return nbMsg;
2268
- if (locale === "fi") return fiMsg;
2269
- if (locale === "da") return daMsg;
2270
- if (locale === "sv") return svMsg;
2271
- return enMsg;
2272
- };
2273
- var activateI18n3 = (enMessages, nbMessages, fiMessages, daMessages, svMessages) => {
2274
- const locale = detectLocale3();
2275
- const messages62 = getMessages3(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);
2276
- i18n.load(locale, messages62);
2277
- i18n.activate(locale);
2278
- };
2279
- activateI18n3(messages23, messages7, messages33, messages43, messages53);
2280
- var IconError16 = class extends LitElement3 {
2281
- render() {
2282
- const title = i18n.t({ message: `Octagon with exclamation point`, id: "icon.title.error", comment: "Title for error icon" });
2283
- return html3`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-error-16-part">${unsafeStatic3(`<title>${title}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M.5 11.107 4.748 15.5h6.503l4.248-4.393V4.893L11.252.5H4.748L.5 4.893z"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8 11.398a.25.25 0 1 1 0-.5m0 .5a.25.25 0 1 0 0-.5"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M8 8.5V3"></path></svg>`;
2284
- }
2285
- };
2286
- if (!customElements.get("w-icon-error-16")) {
2287
- customElements.define("w-icon-error-16", IconError16);
2288
- }
2289
-
2290
- // node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-p_f73b1d3c5bd9121d6f30248535f1f172/node_modules/@warp-ds/icons/dist/elements/success-16.js
2291
- import { LitElement as LitElement4 } from "lit";
2292
- import { unsafeStatic as unsafeStatic4, html as html4 } from "lit/static-html.js";
2293
- var messages8 = JSON.parse('{"icon.title.success":["Sirkel med sjekkmerke"]}');
2294
- var messages24 = JSON.parse('{"icon.title.success":["Circle with checkmark"]}');
2295
- var messages34 = JSON.parse('{"icon.title.success":["Ympyr\xE4, jonka sis\xE4ll\xE4 on valintamerkki"]}');
2296
- var messages44 = JSON.parse('{"icon.title.success":["Cirkel med et flueben"]}');
2297
- var messages54 = JSON.parse('{"icon.title.success":["Cirkel med bock"]}');
2298
- var supportedLocales4 = ["en", "nb", "fi", "da", "sv"];
2299
- var defaultLocale5 = "en";
2300
- var detectByBrand4 = () => {
2301
- var _a;
2302
- let value;
2303
- switch ((_a = process == null ? void 0 : process.env) == null ? void 0 : _a.NMP_BRAND) {
2304
- case "FINN":
2305
- value = "nb";
2306
- break;
2307
- case "TORI":
2308
- value = "fi";
2309
- break;
2310
- case "BLOCKET":
2311
- value = "sv";
2312
- break;
2313
- case "DBA":
2314
- value = "da";
2315
- break;
2316
- default:
2317
- value = "en";
2318
- }
2319
- return value;
2320
- };
2321
- var detectByHost4 = () => {
2322
- var _a;
2323
- const hostname = (_a = document == null ? void 0 : document.location) == null ? void 0 : _a.hostname;
2324
- if (hostname == null ? void 0 : hostname.includes("finn")) {
2325
- return "nb";
2326
- } else if (hostname.includes("tori")) {
2327
- return "fi";
2328
- } else if (hostname.includes("blocket")) {
2329
- return "sv";
2330
- } else if (hostname.includes("dba")) {
2331
- return "da";
2332
- } else {
2333
- return defaultLocale5;
2334
- }
2335
- };
2336
- var getSupportedLocale4 = (usedLocale) => {
2337
- return supportedLocales4.find(
2338
- (locale) => usedLocale === locale || usedLocale.toLowerCase().includes(locale)
2339
- ) || detectByHost4();
2340
- };
2341
- function detectLocale4() {
2342
- var _a;
2343
- if (typeof window === "undefined") {
2344
- const serverLocale = detectByBrand4();
2345
- return getSupportedLocale4(serverLocale);
2346
- }
2347
- try {
2348
- const htmlLocale = (_a = document == null ? void 0 : document.documentElement) == null ? void 0 : _a.lang;
2349
- const hostLocale = detectByHost4();
2350
- if (!supportedLocales4.includes(htmlLocale)) {
2351
- console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname");
2352
- return getSupportedLocale4(hostLocale);
2353
- }
2354
- return getSupportedLocale4(htmlLocale != null ? htmlLocale : hostLocale);
2355
- } catch (e) {
2356
- console.warn("could not detect locale, falling back to source locale", e);
2357
- return defaultLocale5;
2358
- }
2359
- }
2360
- var getMessages4 = (locale, enMsg, nbMsg, fiMsg, daMsg, svMsg) => {
2361
- if (locale === "nb") return nbMsg;
2362
- if (locale === "fi") return fiMsg;
2363
- if (locale === "da") return daMsg;
2364
- if (locale === "sv") return svMsg;
2365
- return enMsg;
2366
- };
2367
- var activateI18n4 = (enMessages, nbMessages, fiMessages, daMessages, svMessages) => {
2368
- const locale = detectLocale4();
2369
- const messages62 = getMessages4(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);
2370
- i18n.load(locale, messages62);
2371
- i18n.activate(locale);
2372
- };
2373
- activateI18n4(messages24, messages8, messages34, messages44, messages54);
2374
- var IconSuccess16 = class extends LitElement4 {
2375
- render() {
2376
- const title = i18n.t({ message: `Circle with checkmark`, id: "icon.title.success", comment: "Title for success icon" });
2377
- return html4`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-success-16-part">${unsafeStatic4(`<title>${title}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m4 8.815 1.633 2.318a.7.7 0 0 0 1.138.034l5.228-6.615"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M.5 7.999a7.5 7.5 0 1 0 15 0 7.5 7.5 0 0 0-15 0"></path></svg>`;
2378
- }
2379
- };
2380
- if (!customElements.get("w-icon-success-16")) {
2381
- customElements.define("w-icon-success-16", IconSuccess16);
2382
- }
2383
-
2384
- // packages/alert/index.js
2385
- var variants = {
2386
- negative: "negative",
2387
- positive: "positive",
2388
- warning: "warning",
2389
- info: "info"
2390
- };
2391
- var WarpAlert = class extends WarpElement {
2392
- constructor() {
2393
- super();
2394
- this.show = false;
2395
- this.role = "alert";
2396
- }
2397
- connectedCallback() {
2398
- super.connectedCallback();
2399
- if (!this.variant || !variants[this.variant]) {
2400
- throw new Error('Invalid "variant" attribute. Set its value to one of the following:\nnegative, positive, warning, info.');
2401
- }
2402
- }
2403
- get _wrapperClasses() {
2404
- return r([alert.wrapper, alert[this.variant]]);
2405
- }
2406
- get _iconClasses() {
2407
- const activeIconClassNames = alert[`${this.variant}Icon`];
2408
- return r([alert.icon, activeIconClassNames]);
2409
- }
2410
- get _icon() {
2411
- if (this.variant === variants.info) {
2412
- return html5`<w-icon-info-16></w-icon-info-16>`;
2413
- }
2414
- if (this.variant === variants.warning) {
2415
- return html5`<w-icon-warning-16></w-icon-warning-16>`;
2416
- }
2417
- if (this.variant === variants.negative) {
2418
- return html5`<w-icon-error-16></w-icon-error-16>`;
2419
- }
2420
- if (this.variant === variants.positive) {
2421
- return html5`<w-icon-success-16></w-icon-success-16>`;
2422
- } else return "";
2423
- }
2424
- render() {
2425
- return html5`
1889
+ .ml-8 {
1890
+ margin-left: .8rem
1891
+ }
1892
+
1893
+ .ml-auto {
1894
+ margin-left: auto
1895
+ }
1896
+
1897
+ .mr-8 {
1898
+ margin-right: .8rem
1899
+ }
1900
+
1901
+ .mt-16 {
1902
+ margin-top: 1.6rem
1903
+ }
1904
+
1905
+ .mt-4 {
1906
+ margin-top: .4rem
1907
+ }
1908
+
1909
+ .group:not(:first-child) .group-not-first\\:-ml-2 {
1910
+ margin-left: -.2rem
1911
+ }
1912
+
1913
+ .last\\:mb-0:last-child {
1914
+ margin-bottom: 0rem
1915
+ }
1916
+
1917
+ .last\\:mr-0:last-child {
1918
+ margin-right: 0rem
1919
+ }
1920
+
1921
+ .m-\\[8px\\] {
1922
+ margin: 8px
1923
+ }
1924
+
1925
+ .p-0 {
1926
+ padding: 0rem
1927
+ }
1928
+
1929
+ .p-16 {
1930
+ padding: 1.6rem
1931
+ }
1932
+
1933
+ .p-4 {
1934
+ padding: .4rem
1935
+ }
1936
+
1937
+ .p-8 {
1938
+ padding: .8rem
1939
+ }
1940
+
1941
+ .px-0 {
1942
+ padding-left: 0rem;
1943
+ padding-right: 0rem
1944
+ }
1945
+
1946
+ .px-1 {
1947
+ padding-left: .1rem;
1948
+ padding-right: .1rem
1949
+ }
1950
+
1951
+ .px-12 {
1952
+ padding-left: 1.2rem;
1953
+ padding-right: 1.2rem
1954
+ }
1955
+
1956
+ .px-14 {
1957
+ padding-left: 1.4rem;
1958
+ padding-right: 1.4rem
1959
+ }
1960
+
1961
+ .px-16 {
1962
+ padding-left: 1.6rem;
1963
+ padding-right: 1.6rem
1964
+ }
1965
+
1966
+ .px-8 {
1967
+ padding-left: .8rem;
1968
+ padding-right: .8rem
1969
+ }
1970
+
1971
+ .py-0 {
1972
+ padding-top: 0rem;
1973
+ padding-bottom: 0rem
1974
+ }
1975
+
1976
+ .py-1 {
1977
+ padding-top: .1rem;
1978
+ padding-bottom: .1rem
1979
+ }
1980
+
1981
+ .py-10 {
1982
+ padding-top: 1rem;
1983
+ padding-bottom: 1rem
1984
+ }
1985
+
1986
+ .py-12 {
1987
+ padding-top: 1.2rem;
1988
+ padding-bottom: 1.2rem
1989
+ }
1990
+
1991
+ .py-2 {
1992
+ padding-top: .2rem;
1993
+ padding-bottom: .2rem
1994
+ }
1995
+
1996
+ .py-4 {
1997
+ padding-top: .4rem;
1998
+ padding-bottom: .4rem
1999
+ }
2000
+
2001
+ .py-6 {
2002
+ padding-top: .6rem;
2003
+ padding-bottom: .6rem
2004
+ }
2005
+
2006
+ .py-8 {
2007
+ padding-top: .8rem;
2008
+ padding-bottom: .8rem
2009
+ }
2010
+
2011
+ .pb-0 {
2012
+ padding-bottom: 0rem
2013
+ }
2014
+
2015
+ .pb-32 {
2016
+ padding-bottom: 3.2rem
2017
+ }
2018
+
2019
+ .pb-4 {
2020
+ padding-bottom: .4rem
2021
+ }
2022
+
2023
+ .pb-8 {
2024
+ padding-bottom: .8rem
2025
+ }
2026
+
2027
+ .pl-0 {
2028
+ padding-left: 0rem
2029
+ }
2030
+
2031
+ .pl-1 {
2032
+ padding-left: .1rem
2033
+ }
2034
+
2035
+ .pl-12 {
2036
+ padding-left: 1.2rem
2037
+ }
2038
+
2039
+ .pl-28 {
2040
+ padding-left: 2.8rem
2041
+ }
2042
+
2043
+ .pl-4 {
2044
+ padding-left: .4rem
2045
+ }
2046
+
2047
+ .pl-8 {
2048
+ padding-left: .8rem
2049
+ }
2050
+
2051
+ .pr-12 {
2052
+ padding-right: 1.2rem
2053
+ }
2054
+
2055
+ .pr-14 {
2056
+ padding-right: 1.4rem
2057
+ }
2058
+
2059
+ .pr-2 {
2060
+ padding-right: .2rem
2061
+ }
2062
+
2063
+ .pr-32 {
2064
+ padding-right: 3.2rem
2065
+ }
2066
+
2067
+ .pr-40 {
2068
+ padding-right: 4rem
2069
+ }
2070
+
2071
+ .pt-0 {
2072
+ padding-top: 0rem
2073
+ }
2074
+
2075
+ .pt-1 {
2076
+ padding-top: .1rem
2077
+ }
2078
+
2079
+ .pt-16 {
2080
+ padding-top: 1.6rem
2081
+ }
2082
+
2083
+ .pt-24 {
2084
+ padding-top: 2.4rem
2085
+ }
2086
+
2087
+ .pt-8 {
2088
+ padding-top: .8rem
2089
+ }
2090
+
2091
+ .group\\/step:last-child .group-last\\/step\\:last\\:pb-0:last-child {
2092
+ padding-bottom: 0rem
2093
+ }
2094
+
2095
+ .last\\:pb-1:last-child {
2096
+ padding-bottom: .1rem
2097
+ }
2098
+
2099
+ .last\\:pr-1:last-child {
2100
+ padding-right: .1rem
2101
+ }
2102
+
2103
+ .p-\\[8px\\] {
2104
+ padding: 8px
2105
+ }
2106
+
2107
+ .px-\\[15px\\] {
2108
+ padding-left: 15px;
2109
+ padding-right: 15px
2110
+ }
2111
+
2112
+ .px-\\[8px\\] {
2113
+ padding-left: 8px;
2114
+ padding-right: 8px
2115
+ }
2116
+
2117
+ .py-\\[11px\\] {
2118
+ padding-top: 11px;
2119
+ padding-bottom: 11px
2120
+ }
2121
+
2122
+ .py-\\[5px\\] {
2123
+ padding-top: 5px;
2124
+ padding-bottom: 5px
2125
+ }
2126
+
2127
+ .py-\\[7px\\] {
2128
+ padding-top: 7px;
2129
+ padding-bottom: 7px
2130
+ }
2131
+
2132
+ .pl-\\[var\\(--w-prefix-width\\,_40px\\)\\] {
2133
+ padding-left: var(--w-prefix-width, 40px)
2134
+ }
2135
+
2136
+ .invisible {
2137
+ visibility: hidden
2138
+ }
2139
+
2140
+ .backface-hidden {
2141
+ backface-visibility: hidden
2142
+ }
2143
+
2144
+ .break-words {
2145
+ overflow-wrap: break-word
2146
+ }
2147
+
2148
+ .before\\:content-\\[\\"–\\"\\]:before {
2149
+ content: "–"
2150
+ }
2151
+
2152
+ .before\\:content-\\[\\"\\"\\]:before {
2153
+ content: ""
2154
+ }
2155
+
2156
+ .cursor-default {
2157
+ cursor: default
2158
+ }
2159
+
2160
+ .cursor-pointer {
2161
+ cursor: pointer
2162
+ }
2163
+
2164
+ .antialiased {
2165
+ -webkit-font-smoothing: antialiased;
2166
+ -moz-osx-font-smoothing: grayscale;
2167
+ font-smoothing: grayscale
2168
+ }
2169
+
2170
+ .font-bold {
2171
+ font-weight: 700
2172
+ }
2173
+
2174
+ .before\\:font-bold:before {
2175
+ font-weight: 700
2176
+ }
2177
+
2178
+ .font-normal {
2179
+ font-weight: 400
2180
+ }
2181
+
2182
+ .pointer-events-auto {
2183
+ pointer-events: auto
2184
+ }
2185
+
2186
+ .pointer-events-none {
2187
+ pointer-events: none
2188
+ }
2189
+
2190
+ .before\\:pointer-events-none:before {
2191
+ pointer-events: none
2192
+ }
2193
+
2194
+ .pb-safe-\\[32\\] {
2195
+ padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px))
2196
+ }
2197
+
2198
+ .sr-only {
2199
+ position: absolute;
2200
+ width: 1px;
2201
+ height: 1px;
2202
+ padding: 0;
2203
+ margin: -1px;
2204
+ overflow: hidden;
2205
+ clip: rect(0, 0, 0, 0);
2206
+ white-space: nowrap;
2207
+ border-width: 0
2208
+ }
2209
+
2210
+ .touch-pan-y {
2211
+ touch-action: pan-y
2212
+ }
2213
+
2214
+ .select-none {
2215
+ -webkit-user-select: none;
2216
+ user-select: none
2217
+ }
2218
+
2219
+ .translate-x-20 {
2220
+ --w-translate-x: 2rem;
2221
+ transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2222
+ }
2223
+
2224
+ .translate-z-0 {
2225
+ --w-translate-z: 0rem;
2226
+ transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2227
+ }
2228
+
2229
+ .-rotate-180, .part-\\[w-icon-chevron-down-16-part\\]\\:-rotate-180::part(w-icon-chevron-down-16-part) {
2230
+ --w-rotate-x: 0;
2231
+ --w-rotate-y: 0;
2232
+ --w-rotate-z: 0;
2233
+ --w-rotate: -180deg;
2234
+ transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2235
+ }
2236
+
2237
+ .part-\\[w-icon-chevron-up-16-part\\]\\:rotate-180::part(w-icon-chevron-up-16-part), .rotate-180 {
2238
+ --w-rotate-x: 0;
2239
+ --w-rotate-y: 0;
2240
+ --w-rotate-z: 0;
2241
+ --w-rotate: 180deg;
2242
+ transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2243
+ }
2244
+
2245
+ .rotate-90 {
2246
+ --w-rotate-x: 0;
2247
+ --w-rotate-y: 0;
2248
+ --w-rotate-z: 0;
2249
+ --w-rotate: 90deg;
2250
+ transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2251
+ }
2252
+
2253
+ .part-\\[w-icon-chevron-down-16-part\\]\\:transform::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:transform::part(w-icon-chevron-up-16-part), .transform {
2254
+ transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2255
+ }
2256
+
2257
+ .part-\\[w-icon-chevron-down-16-part\\]\\:transform-gpu::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:transform-gpu::part(w-icon-chevron-up-16-part), .transform-gpu {
2258
+ transform: translate3d(var(--w-translate-x), var(--w-translate-y), var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2259
+ }
2260
+
2261
+ .part-\\[w-icon-chevron-down-16-part\\]\\:transition-transform::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:transition-transform::part(w-icon-chevron-up-16-part), .transition-transform {
2262
+ transition-property: transform;
2263
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
2264
+ transition-duration: .15s
2265
+ }
2266
+
2267
+ .transition-300 {
2268
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
2269
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
2270
+ transition-duration: .3s
2271
+ }
2272
+
2273
+ .transition-all {
2274
+ transition-property: all;
2275
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
2276
+ transition-duration: .15s
2277
+ }
2278
+
2279
+ .transition-colors {
2280
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
2281
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
2282
+ transition-duration: .15s
2283
+ }
2284
+
2285
+ .transition-shadow {
2286
+ transition-property: box-shadow;
2287
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
2288
+ transition-duration: .15s
2289
+ }
2290
+
2291
+ .before\\:transition-all:before {
2292
+ transition-property: all;
2293
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
2294
+ transition-duration: .15s
2295
+ }
2296
+
2297
+ .duration-300 {
2298
+ transition-duration: .3s
2299
+ }
2300
+
2301
+ .ease-in-out, .part-\\[w-icon-chevron-down-16-part\\]\\:ease-in-out::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:ease-in-out::part(w-icon-chevron-up-16-part) {
2302
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1)
2303
+ }
2304
+
2305
+ .text-m {
2306
+ font-size: var(--w-font-size-m);
2307
+ line-height: var(--w-line-height-m)
2308
+ }
2309
+
2310
+ .text-s {
2311
+ font-size: var(--w-font-size-s);
2312
+ line-height: var(--w-line-height-s)
2313
+ }
2314
+
2315
+ .text-xs {
2316
+ font-size: var(--w-font-size-xs);
2317
+ line-height: var(--w-line-height-xs)
2318
+ }
2319
+
2320
+ .leading-m {
2321
+ line-height: var(--w-line-height-m)
2322
+ }
2323
+
2324
+ .before\\:leading-xs:before {
2325
+ line-height: var(--w-line-height-xs)
2326
+ }
2327
+
2328
+ .leading-\\[24\\] {
2329
+ line-height: 2.4rem
2330
+ }
2331
+
2332
+ @media (max-width: 479.9px) {
2333
+ .lt-sm\\:rounded-b-0 {
2334
+ border-bottom-left-radius: 0;
2335
+ border-bottom-right-radius: 0
2336
+ }
2337
+ }
2338
+ @media (min-width: 480px) {
2339
+ .sm\\:border-b-0 {
2340
+ border-bottom-width: 0
2341
+ }
2342
+
2343
+ .sm\\:rounded-8 {
2344
+ border-radius: 8px
2345
+ }
2346
+
2347
+ .sm\\:rounded-b-8 {
2348
+ border-bottom-left-radius: 8px;
2349
+ border-bottom-right-radius: 8px
2350
+ }
2351
+
2352
+ .sm\\:gap-16 {
2353
+ gap: 1.6rem
2354
+ }
2355
+
2356
+ .sm\\:place-content-center {
2357
+ place-content: center
2358
+ }
2359
+
2360
+ .sm\\:place-items-center {
2361
+ place-items: center
2362
+ }
2363
+
2364
+ .sm\\:h-24 {
2365
+ height: 2.4rem
2366
+ }
2367
+
2368
+ .sm\\:min-h-48 {
2369
+ min-height: 4.8rem
2370
+ }
2371
+
2372
+ .sm\\:w-24 {
2373
+ width: 2.4rem
2374
+ }
2375
+
2376
+ .sm\\:min-h-\\[32px\\] {
2377
+ min-height: 32px
2378
+ }
2379
+
2380
+ .sm\\:min-h-\\[44px\\] {
2381
+ min-height: 44px
2382
+ }
2383
+
2384
+ .sm\\:min-h-\\[45\\] {
2385
+ min-height: 4.5rem
2386
+ }
2387
+
2388
+ .sm\\:min-w-\\[32px\\] {
2389
+ min-width: 32px
2390
+ }
2391
+
2392
+ .sm\\:min-w-\\[44px\\] {
2393
+ min-width: 44px
2394
+ }
2395
+
2396
+ .sm\\:mx-0 {
2397
+ margin-left: 0rem;
2398
+ margin-right: 0rem
2399
+ }
2400
+
2401
+ .sm\\:mx-16 {
2402
+ margin-left: 1.6rem;
2403
+ margin-right: 1.6rem
2404
+ }
2405
+
2406
+ .sm\\:-ml-12 {
2407
+ margin-left: -1.2rem
2408
+ }
2409
+
2410
+ .sm\\:-mr-12 {
2411
+ margin-right: -1.2rem
2412
+ }
2413
+
2414
+ .sm\\:-mt-8 {
2415
+ margin-top: -.8rem
2416
+ }
2417
+
2418
+ .sm\\:px-32 {
2419
+ padding-left: 3.2rem;
2420
+ padding-right: 3.2rem
2421
+ }
2422
+
2423
+ .sm\\:py-0 {
2424
+ padding-top: 0rem;
2425
+ padding-bottom: 0rem
2426
+ }
2427
+
2428
+ .sm\\:pb-32 {
2429
+ padding-bottom: 3.2rem
2430
+ }
2431
+
2432
+ .sm\\:pt-24 {
2433
+ padding-top: 2.4rem
2434
+ }
2435
+
2436
+ .sm\\:pt-32 {
2437
+ padding-top: 3.2rem
2438
+ }
2439
+ }
2440
+ @media (min-width: 768px) {
2441
+ .md\\:block {
2442
+ display: block
2443
+ }
2444
+
2445
+ .md\\:hidden {
2446
+ display: none
2447
+ }
2448
+ }
2449
+ `;import{css as Jr}from"lit";var he=Jr`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.will-change-height{will-change:height}.border{border-width:1px}.border-l-4{border-left-width:4px}.rounded-4{border-radius:4px}.block{display:block}.flex{display:flex}.static{position:static}.s-bg-info-subtle{background-color:var(--w-s-color-background-info-subtle)}.s-bg-negative-subtle{background-color:var(--w-s-color-background-negative-subtle)}.s-bg-positive-subtle{background-color:var(--w-s-color-background-positive-subtle)}.s-bg-warning-subtle{background-color:var(--w-s-color-background-warning-subtle)}.s-text{color:var(--w-s-color-text)}.s-icon-info{color:var(--w-s-color-icon-info)}.s-icon-negative{color:var(--w-s-color-icon-negative)}.s-icon-positive{color:var(--w-s-color-icon-positive)}.s-icon-warning{color:var(--w-s-color-icon-warning)}.s-border-info-subtle{border-color:var(--w-s-color-border-info-subtle)}.s-border-l-info{border-left-color:var(--w-s-color-border-info)}.s-border-l-negative{border-left-color:var(--w-s-color-border-negative)}.s-border-l-positive{border-left-color:var(--w-s-color-border-positive)}.s-border-l-warning{border-left-color:var(--w-s-color-border-warning)}.s-border-negative-subtle{border-color:var(--w-s-color-border-negative-subtle)}.s-border-positive-subtle{border-color:var(--w-s-color-border-positive-subtle)}.s-border-warning-subtle{border-color:var(--w-s-color-border-warning-subtle)}.min-w-16{min-width:1.6rem}.w-16{width:1.6rem}.last-child\\:mb-0>:last-child{margin-bottom:0}.mr-8{margin-right:.8rem}.p-16{padding:1.6rem}.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}`;var k={wrapper:"flex p-16 border border-l-4 rounded-4 s-text",willChangeHeight:"will-change-height",textWrapper:"last-child:mb-0 text-s",title:"text-s",icon:"w-16 mr-8 min-w-16",negative:"s-border-negative-subtle s-border-l-negative s-bg-negative-subtle",negativeIcon:"s-icon-negative",positive:"s-border-positive-subtle s-border-l-positive s-bg-positive-subtle",positiveIcon:"s-icon-positive",warning:"s-border-warning-subtle s-border-l-warning s-bg-warning-subtle",warningIcon:"s-icon-warning",info:"s-border-info-subtle s-border-l-info s-bg-info-subtle",infoIcon:"s-icon-info"},y={negative:"negative",positive:"positive",warning:"warning",info:"info"},f=class extends Rr{constructor(){super();this.variant="info";this.show=!0;this.role="alert";this.show=!1,this.role="alert"}connectedCallback(){if(super.connectedCallback(),!this.variant||!y[this.variant])throw new Error(`Invalid 'variant' attribute. Set its value to one of the following:
2450
+ negative, positive, warning, info.`)}get _wrapperClasses(){return C([k.wrapper,k[this.variant]])}get _iconClasses(){let o=k[`${this.variant}Icon`];return C([k.icon,o])}get _icon(){return this.variant===y.info?x` <w-icon-info-16></w-icon-info-16>`:this.variant===y.warning?x` <w-icon-warning-16></w-icon-warning-16>`:this.variant===y.negative?x` <w-icon-error-16></w-icon-error-16>`:this.variant===y.positive?x` <w-icon-success-16></w-icon-success-16>`:""}render(){return x`
2426
2451
  <w-expand-transition ?show=${this.show}>
2427
2452
  <div role=${this.role} class=${this._wrapperClasses}>
2428
2453
  <div class=${this._iconClasses}>${this._icon}</div>
2429
- <div class=${alert.textWrapper}>
2454
+ <div class=${k.textWrapper}>
2430
2455
  <slot></slot>
2431
2456
  </div>
2432
2457
  </div>
2433
2458
  </w-expand-transition>
2434
- `;
2435
- }
2436
- };
2437
- __publicField(WarpAlert, "properties", {
2438
- variant: { type: String, reflect: true },
2439
- show: { type: Boolean, reflect: true },
2440
- role: { type: String, reflect: true }
2441
- });
2442
- // Slotted elements remain in lightDOM which allows for control of their style outside of shadowDOM.
2443
- // ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,
2444
- // so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
2445
- // https://stackoverflow.com/a/61631668
2446
- __publicField(WarpAlert, "styles", [
2447
- WarpElement.styles,
2448
- css`
2459
+ `}};f.styles=[me,he,Hr`
2449
2460
  :host {
2450
2461
  display: block;
2451
2462
  }
2463
+
2452
2464
  ::slotted(:first-child) {
2453
2465
  margin-top: 0px;
2454
2466
  }
2467
+
2455
2468
  ::slotted(:last-child) {
2456
2469
  margin-bottom: 0px !important;
2457
2470
  }
2458
- `
2459
- ]);
2460
- if (!customElements.get("w-alert")) {
2461
- customElements.define("w-alert", WarpAlert);
2462
- }
2463
- export {
2464
- WarpAlert
2465
- };
2471
+ `],E([J({reflect:!0})],f.prototype,"variant",2),E([J({type:Boolean,reflect:!0})],f.prototype,"show",2),E([J({reflect:!0})],f.prototype,"role",2);customElements.get("w-alert")||customElements.define("w-alert",f);export{f as WarpAlert};
2466
2472
  //# sourceMappingURL=index.js.map