@warp-ds/elements 2.2.0-next.6 → 2.2.0-next.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +633 -141
- package/dist/index.d.ts +2 -0
- package/dist/index.js +363 -129
- package/dist/index.js.map +4 -4
- package/dist/packages/alert/index.js.map +1 -1
- package/dist/packages/alert/react.js.map +1 -1
- package/dist/packages/attention/index.js.map +1 -1
- package/dist/packages/button/index.d.ts +1 -0
- package/dist/packages/button/index.js +214 -9
- package/dist/packages/button/index.js.map +4 -4
- package/dist/packages/button/react.js +213 -8
- package/dist/packages/button/react.js.map +4 -4
- package/dist/packages/datepicker/DatePicker.test.d.ts +1 -0
- package/dist/packages/datepicker/datepicker.d.ts +20 -2
- package/dist/packages/datepicker/datepicker.test.d.ts +2 -0
- package/dist/packages/datepicker/index.js +81 -78
- package/dist/packages/datepicker/index.js.map +3 -3
- package/dist/packages/datepicker/react.d.ts +2 -0
- package/dist/packages/datepicker/react.js +2805 -0
- package/dist/packages/datepicker/react.js.map +7 -0
- package/dist/packages/link/index.d.ts +39 -0
- package/dist/packages/link/index.js +2646 -0
- package/dist/packages/link/index.js.map +7 -0
- package/dist/packages/link/link.stories.d.ts +20 -0
- package/dist/packages/link/link.test.d.ts +1 -0
- package/dist/packages/link/react.d.ts +2 -0
- package/dist/packages/link/react.js +2666 -0
- package/dist/packages/link/react.js.map +7 -0
- package/dist/packages/link/styles.d.ts +1 -0
- package/dist/packages/steps/index.d.ts +43 -0
- package/dist/packages/steps/index.js +2465 -0
- package/dist/packages/steps/index.js.map +7 -0
- package/dist/packages/steps/locales/da/messages.d.mts +1 -0
- package/dist/packages/steps/locales/en/messages.d.mts +1 -0
- package/dist/packages/steps/locales/fi/messages.d.mts +1 -0
- package/dist/packages/steps/locales/nb/messages.d.mts +1 -0
- package/dist/packages/steps/locales/sv/messages.d.mts +1 -0
- package/dist/packages/steps/react.d.ts +3 -0
- package/dist/packages/steps/react.js +2485 -0
- package/dist/packages/steps/react.js.map +7 -0
- package/dist/packages/steps/steps.stories.d.ts +12 -0
- package/dist/packages/steps/styles.d.ts +1 -0
- package/dist/packages/switch/index.d.ts +20 -0
- package/dist/packages/switch/index.js +2455 -0
- package/dist/packages/switch/index.js.map +7 -0
- package/dist/packages/switch/react.d.ts +2 -0
- package/dist/packages/switch/react.js +2475 -0
- package/dist/packages/switch/react.js.map +7 -0
- package/dist/packages/switch/styles.d.ts +1 -0
- package/dist/packages/switch/switch.stories.d.ts +9 -0
- package/dist/packages/textfield/index.js +1 -1
- package/dist/packages/textfield/index.js.map +2 -2
- package/dist/packages/textfield/react.js +1 -1
- package/dist/packages/textfield/react.js.map +2 -2
- package/dist/packages/toast/index.js.map +1 -1
- package/dist/vscode.html-custom-data.json +77 -19
- package/dist/web-types.json +156 -41
- package/package.json +15 -13
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../node_modules/.pnpm/unraw@3.0.0/node_modules/unraw/dist/errors.js", "../node_modules/.pnpm/unraw@3.0.0/node_modules/unraw/dist/index.js", "../packages/affix/index.ts", "../node_modules/.pnpm/@chbphone55+classnames@2.0.0/node_modules/@chbphone55/classnames/dist/index.m.js", "../packages/styles.ts", "../packages/affix/styles.ts", "../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/elements/search-16.js", "../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/src/raw/search/locales/nb/messages.mjs", "../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/src/raw/search/locales/en/messages.mjs", "../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/src/raw/search/locales/fi/messages.mjs", "../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/src/raw/search/locales/da/messages.mjs", "../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/src/raw/search/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../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", "../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/elements/close-16.js", "../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/src/raw/close/locales/nb/messages.mjs", "../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/src/raw/close/locales/en/messages.mjs", "../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/src/raw/close/locales/fi/messages.mjs", "../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/src/raw/close/locales/da/messages.mjs", "../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/src/raw/close/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../packages/alert/index.ts", "../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/elements/info-16.js", "../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/src/raw/info/locales/nb/messages.mjs", "../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/src/raw/info/locales/en/messages.mjs", "../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/src/raw/info/locales/fi/messages.mjs", "../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/src/raw/info/locales/da/messages.mjs", "../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/src/raw/info/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../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/elements/warning-16.js", "../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/src/raw/warning/locales/nb/messages.mjs", "../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/src/raw/warning/locales/en/messages.mjs", "../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/src/raw/warning/locales/fi/messages.mjs", "../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/src/raw/warning/locales/da/messages.mjs", "../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/src/raw/warning/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../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/elements/error-16.js", "../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/src/raw/error/locales/nb/messages.mjs", "../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/src/raw/error/locales/en/messages.mjs", "../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/src/raw/error/locales/fi/messages.mjs", "../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/src/raw/error/locales/da/messages.mjs", "../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/src/raw/error/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../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/elements/success-16.js", "../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/src/raw/success/locales/nb/messages.mjs", "../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/src/raw/success/locales/en/messages.mjs", "../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/src/raw/success/locales/fi/messages.mjs", "../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/src/raw/success/locales/da/messages.mjs", "../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/src/raw/success/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../packages/alert/styles.ts", "../packages/attention/index.js", "../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs", "../node_modules/.pnpm/@floating-ui+core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.mjs", "../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs", "../node_modules/.pnpm/@floating-ui+dom@1.6.13/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs", "../node_modules/.pnpm/@warp-ds+core@1.1.8_@floating-ui+dom@1.6.13/node_modules/@warp-ds/core/dist/attention/utils/helpers.js", "../node_modules/.pnpm/@warp-ds+css@2.1.1_@warp-ds+uno@2.1.0_unocss@0.65.4_postcss@8.5.6_rollup@4.50.1_vite@5._1fc0117750dea6ab8add2b5596b15aea/node_modules/@warp-ds/css/component-classes/index.js", "../packages/i18n.ts", "../packages/utils/index.js", "../packages/attention/locales/da/messages.mjs", "../packages/attention/locales/en/messages.mjs", "../packages/attention/locales/fi/messages.mjs", "../packages/attention/locales/nb/messages.mjs", "../packages/attention/locales/sv/messages.mjs", "../packages/badge/index.ts", "../packages/badge/styles.ts", "../packages/box/index.ts", "../packages/box/styles.ts", "../packages/breadcrumbs/index.ts", "../node_modules/.pnpm/@warp-ds+core@1.1.8_@floating-ui+dom@1.6.13/node_modules/@warp-ds/core/dist/breadcrumbs/index.js", "../packages/breadcrumbs/locales/da/messages.mjs", "../packages/breadcrumbs/locales/en/messages.mjs", "../packages/breadcrumbs/locales/fi/messages.mjs", "../packages/breadcrumbs/locales/nb/messages.mjs", "../packages/breadcrumbs/locales/sv/messages.mjs", "../packages/breadcrumbs/styles.ts", "../packages/button/index.ts", "../node_modules/.pnpm/@open-wc+form-control@1.0.0/node_modules/@open-wc/form-control/src/FormControlMixin.ts", "../packages/button/locales/da/messages.mjs", "../packages/button/locales/en/messages.mjs", "../packages/button/locales/fi/messages.mjs", "../packages/button/locales/nb/messages.mjs", "../packages/button/locales/sv/messages.mjs", "../packages/button/styles.ts", "../packages/card/index.ts", "../packages/card/locales/da/messages.mjs", "../packages/card/locales/en/messages.mjs", "../packages/card/locales/fi/messages.mjs", "../packages/card/locales/nb/messages.mjs", "../packages/card/locales/sv/messages.mjs", "../packages/card/styles.ts", "../packages/dead-toggle/index.ts", "../packages/expandable/index.ts", "../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/elements/chevron-down-16.js", "../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/src/raw/chevron-down/locales/nb/messages.mjs", "../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/src/raw/chevron-down/locales/en/messages.mjs", "../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/src/raw/chevron-down/locales/fi/messages.mjs", "../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/src/raw/chevron-down/locales/da/messages.mjs", "../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/src/raw/chevron-down/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../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/elements/chevron-up-16.js", "../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/src/raw/chevron-up/locales/nb/messages.mjs", "../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/src/raw/chevron-up/locales/en/messages.mjs", "../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/src/raw/chevron-up/locales/fi/messages.mjs", "../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/src/raw/chevron-up/locales/da/messages.mjs", "../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/src/raw/chevron-up/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../packages/expandable/styles.ts", "../packages/modal/modal-footer.ts", "../packages/modal/util.ts", "../packages/modal/modal-header.ts", "../node_modules/.pnpm/@itsy+animate@0.0.9/node_modules/@itsy/animate/src/utility.js", "../node_modules/.pnpm/@itsy+animate@0.0.9/node_modules/@itsy/animate/src/reduce-motion.js", "../node_modules/.pnpm/@itsy+animate@0.0.9/node_modules/@itsy/animate/src/move.js", "../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/elements/arrow-left-16.js", "../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/src/raw/arrow-left/locales/nb/messages.mjs", "../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/src/raw/arrow-left/locales/en/messages.mjs", "../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/src/raw/arrow-left/locales/fi/messages.mjs", "../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/src/raw/arrow-left/locales/da/messages.mjs", "../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/src/raw/arrow-left/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../packages/modal/locales/da/messages.mjs", "../packages/modal/locales/en/messages.mjs", "../packages/modal/locales/fi/messages.mjs", "../packages/modal/locales/nb/messages.mjs", "../packages/modal/locales/sv/messages.mjs", "../packages/modal/modal-main.ts", "../node_modules/.pnpm/scroll-doctor@2.0.2/node_modules/scroll-doctor/dist/scroll-doctor.js", "../packages/pageindicator/index.ts", "../packages/pageindicator/style.ts", "../packages/pagination/index.ts", "../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/elements/chevron-double-left-16.js", "../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/src/raw/chevron-double-left/locales/nb/messages.mjs", "../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/src/raw/chevron-double-left/locales/en/messages.mjs", "../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/src/raw/chevron-double-left/locales/fi/messages.mjs", "../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/src/raw/chevron-double-left/locales/da/messages.mjs", "../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/src/raw/chevron-double-left/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../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/elements/chevron-left-16.js", "../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/src/raw/chevron-left/locales/nb/messages.mjs", "../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/src/raw/chevron-left/locales/en/messages.mjs", "../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/src/raw/chevron-left/locales/fi/messages.mjs", "../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/src/raw/chevron-left/locales/da/messages.mjs", "../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/src/raw/chevron-left/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../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/elements/chevron-right-16.js", "../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/src/raw/chevron-right/locales/nb/messages.mjs", "../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/src/raw/chevron-right/locales/en/messages.mjs", "../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/src/raw/chevron-right/locales/fi/messages.mjs", "../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/src/raw/chevron-right/locales/da/messages.mjs", "../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/src/raw/chevron-right/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../packages/pagination/locales/da/messages.mjs", "../packages/pagination/locales/en/messages.mjs", "../packages/pagination/locales/fi/messages.mjs", "../packages/pagination/locales/nb/messages.mjs", "../packages/pagination/locales/sv/messages.mjs", "../packages/pagination/styles.ts", "../packages/pill/index.ts", "../packages/pill/locales/da/messages.mjs", "../packages/pill/locales/en/messages.mjs", "../packages/pill/locales/fi/messages.mjs", "../packages/pill/locales/nb/messages.mjs", "../packages/pill/locales/sv/messages.mjs", "../packages/pill/styles.ts", "../packages/rip-and-tear-radio/radio.ts", "../packages/rip-and-tear-radio/form-associated-element.ts", "../packages/rip-and-tear-radio/base-element.ts", "../packages/rip-and-tear-radio/host.css", "../packages/rip-and-tear-radio/custom-error-validator.ts", "../packages/rip-and-tear-radio/invalid.ts", "../packages/rip-and-tear-radio/radio.css", "../packages/rip-and-tear-radio/radio-group.ts", "../node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/url-alphabet/index.js", "../node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/index.browser.js", "../packages/rip-and-tear-radio/math.ts", "../packages/rip-and-tear-radio/radio-group.css", "../packages/rip-and-tear-radio/required-validator.ts", "../packages/rip-and-tear-radio/slot.ts", "../packages/rip-and-tear-radio/index.ts", "../packages/rip-and-tear-checkbox/checkbox.ts", "../packages/rip-and-tear-radio/watch.ts", "../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/elements/check-16.js", "../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/src/raw/check/locales/nb/messages.mjs", "../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/src/raw/check/locales/en/messages.mjs", "../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/src/raw/check/locales/fi/messages.mjs", "../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/src/raw/check/locales/da/messages.mjs", "../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/src/raw/check/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../packages/rip-and-tear-checkbox/checkbox.css", "../packages/rip-and-tear-checkbox/index.ts", "../packages/select/index.ts", "../packages/select/locales/da/messages.mjs", "../packages/select/locales/en/messages.mjs", "../packages/select/locales/fi/messages.mjs", "../packages/select/locales/nb/messages.mjs", "../packages/select/locales/sv/messages.mjs", "../packages/select/styles.ts", "../packages/textfield/index.ts", "../packages/textfield/styles.ts", "../packages/utils/window-exists.js", "../packages/toast/api.js", "../packages/toast/toast-container.js", "../packages/toast/toast.js", "../node_modules/.pnpm/element-collapse@1.1.0/node_modules/element-collapse/index.js", "../packages/toast/locales/da/messages.mjs", "../packages/toast/locales/en/messages.mjs", "../packages/toast/locales/fi/messages.mjs", "../packages/toast/locales/nb/messages.mjs", "../packages/toast/locales/sv/messages.mjs", "../packages/utils/expand-transition.js", "../packages/utils/unstyled-heading.js"],
|
|
4
|
-
"sourcesContent": ["\"use strict\";\n// NOTE: don't construct errors here or they'll have the wrong stack trace.\n// NOTE: don't make custom error class; the JS engines use `SyntaxError`\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.errorMessages = exports.ErrorType = void 0;\n/**\n * Keys for possible error messages used by `unraw`.\n * Note: These do _not_ map to actual error object types. All errors thrown\n * are `SyntaxError`.\n */\n// Don't use const enum or JS users won't be able to access the enum values\nvar ErrorType;\n(function (ErrorType) {\n /**\n * Thrown when a badly formed Unicode escape sequence is found. Possible\n * reasons include the code being too short (`\"\\u25\"`) or having invalid\n * characters (`\"\\u2$A5\"`).\n */\n ErrorType[\"MalformedUnicode\"] = \"MALFORMED_UNICODE\";\n /**\n * Thrown when a badly formed hexadecimal escape sequence is found. Possible\n * reasons include the code being too short (`\"\\x2\"`) or having invalid\n * characters (`\"\\x2$\"`).\n */\n ErrorType[\"MalformedHexadecimal\"] = \"MALFORMED_HEXADECIMAL\";\n /**\n * Thrown when a Unicode code point escape sequence has too high of a code\n * point. The maximum code point allowed is `\\u{10FFFF}`, so `\\u{110000}` and\n * higher will throw this error.\n */\n ErrorType[\"CodePointLimit\"] = \"CODE_POINT_LIMIT\";\n /**\n * Thrown when an octal escape sequences is encountered and `allowOctals` is\n * `false`. For example, `unraw(\"\\234\", false)`.\n */\n ErrorType[\"OctalDeprecation\"] = \"OCTAL_DEPRECATION\";\n /**\n * Thrown only when a single backslash is found at the end of a string. For\n * example, `\"\\\\\"` or `\"test\\\\x24\\\\\"`.\n */\n ErrorType[\"EndOfString\"] = \"END_OF_STRING\";\n})(ErrorType = exports.ErrorType || (exports.ErrorType = {}));\n/** Map of error message names to the full text of the message. */\nexports.errorMessages = new Map([\n [ErrorType.MalformedUnicode, \"malformed Unicode character escape sequence\"],\n [\n ErrorType.MalformedHexadecimal,\n \"malformed hexadecimal character escape sequence\"\n ],\n [\n ErrorType.CodePointLimit,\n \"Unicode codepoint must not be greater than 0x10FFFF in escape sequence\"\n ],\n [\n ErrorType.OctalDeprecation,\n '\"0\"-prefixed octal literals and octal escape sequences are deprecated; ' +\n 'for octal literals use the \"0o\" prefix instead'\n ],\n [ErrorType.EndOfString, \"malformed escape sequence at end of string\"]\n]);\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.unraw = exports.errorMessages = exports.ErrorType = void 0;\nconst errors_1 = require(\"./errors\");\nObject.defineProperty(exports, \"ErrorType\", { enumerable: true, get: function () { return errors_1.ErrorType; } });\nObject.defineProperty(exports, \"errorMessages\", { enumerable: true, get: function () { return errors_1.errorMessages; } });\n/**\n * Parse a string as a base-16 number. This is more strict than `parseInt` as it\n * will not allow any other characters, including (for example) \"+\", \"-\", and\n * \".\".\n * @param hex A string containing a hexadecimal number.\n * @returns The parsed integer, or `NaN` if the string is not a valid hex\n * number.\n */\nfunction parseHexToInt(hex) {\n const isOnlyHexChars = !hex.match(/[^a-f0-9]/i);\n return isOnlyHexChars ? parseInt(hex, 16) : NaN;\n}\n/**\n * Check the validity and length of a hexadecimal code and optionally enforces\n * a specific number of hex digits.\n * @param hex The string to validate and parse.\n * @param errorName The name of the error message to throw a `SyntaxError` with\n * if `hex` is invalid. This is used to index `errorMessages`.\n * @param enforcedLength If provided, will throw an error if `hex` is not\n * exactly this many characters.\n * @returns The parsed hex number as a normal number.\n * @throws {SyntaxError} If the code is not valid.\n */\nfunction validateAndParseHex(hex, errorName, enforcedLength) {\n const parsedHex = parseHexToInt(hex);\n if (Number.isNaN(parsedHex) ||\n (enforcedLength !== undefined && enforcedLength !== hex.length)) {\n throw new SyntaxError(errors_1.errorMessages.get(errorName));\n }\n return parsedHex;\n}\n/**\n * Parse a two-digit hexadecimal character escape code.\n * @param code The two-digit hexadecimal number that represents the character to\n * output.\n * @returns The single character represented by the code.\n * @throws {SyntaxError} If the code is not valid hex or is not the right\n * length.\n */\nfunction parseHexadecimalCode(code) {\n const parsedCode = validateAndParseHex(code, errors_1.ErrorType.MalformedHexadecimal, 2);\n return String.fromCharCode(parsedCode);\n}\n/**\n * Parse a four-digit Unicode character escape code.\n * @param code The four-digit unicode number that represents the character to\n * output.\n * @param surrogateCode Optional four-digit unicode surrogate that represents\n * the other half of the character to output.\n * @returns The single character represented by the code.\n * @throws {SyntaxError} If the codes are not valid hex or are not the right\n * length.\n */\nfunction parseUnicodeCode(code, surrogateCode) {\n const parsedCode = validateAndParseHex(code, errors_1.ErrorType.MalformedUnicode, 4);\n if (surrogateCode !== undefined) {\n const parsedSurrogateCode = validateAndParseHex(surrogateCode, errors_1.ErrorType.MalformedUnicode, 4);\n return String.fromCharCode(parsedCode, parsedSurrogateCode);\n }\n return String.fromCharCode(parsedCode);\n}\n/**\n * Test if the text is surrounded by curly braces (`{}`).\n * @param text Text to check.\n * @returns `true` if the text is in the form `{*}`.\n */\nfunction isCurlyBraced(text) {\n return text.charAt(0) === \"{\" && text.charAt(text.length - 1) === \"}\";\n}\n/**\n * Parse a Unicode code point character escape code.\n * @param codePoint A unicode escape code point, including the surrounding curly\n * braces.\n * @returns The single character represented by the code.\n * @throws {SyntaxError} If the code is not valid hex or does not have the\n * surrounding curly braces.\n */\nfunction parseUnicodeCodePointCode(codePoint) {\n if (!isCurlyBraced(codePoint)) {\n throw new SyntaxError(errors_1.errorMessages.get(errors_1.ErrorType.MalformedUnicode));\n }\n const withoutBraces = codePoint.slice(1, -1);\n const parsedCode = validateAndParseHex(withoutBraces, errors_1.ErrorType.MalformedUnicode);\n try {\n return String.fromCodePoint(parsedCode);\n }\n catch (err) {\n throw err instanceof RangeError\n ? new SyntaxError(errors_1.errorMessages.get(errors_1.ErrorType.CodePointLimit))\n : err;\n }\n}\n// Have to give overload that takes boolean for when compiler doesn't know if\n// true or false\nfunction parseOctalCode(code, error = false) {\n if (error) {\n throw new SyntaxError(errors_1.errorMessages.get(errors_1.ErrorType.OctalDeprecation));\n }\n // The original regex only allows digits so we don't need to have a strict\n // octal parser like hexToInt. Length is not enforced for octals.\n const parsedCode = parseInt(code, 8);\n return String.fromCharCode(parsedCode);\n}\n/**\n * Map of unescaped letters to their corresponding special JS escape characters.\n * Intentionally does not include characters that map to themselves like \"\\'\".\n */\nconst singleCharacterEscapes = new Map([\n [\"b\", \"\\b\"],\n [\"f\", \"\\f\"],\n [\"n\", \"\\n\"],\n [\"r\", \"\\r\"],\n [\"t\", \"\\t\"],\n [\"v\", \"\\v\"],\n [\"0\", \"\\0\"]\n]);\n/**\n * Parse a single character escape sequence and return the matching character.\n * If none is matched, defaults to `code`.\n * @param code A single character code.\n */\nfunction parseSingleCharacterCode(code) {\n return singleCharacterEscapes.get(code) || code;\n}\n/**\n * Matches every escape sequence possible, including invalid ones.\n *\n * All capture groups (described below) are unique (only one will match), except\n * for 4, which can only potentially match if 3 does.\n *\n * **Capture Groups:**\n * 0. A single backslash\n * 1. Hexadecimal code\n * 2. Unicode code point code with surrounding curly braces\n * 3. Unicode escape code with surrogate\n * 4. Surrogate code\n * 5. Unicode escape code without surrogate\n * 6. Octal code _NOTE: includes \"0\"._\n * 7. A single character (will never be \\, x, u, or 0-3)\n */\nconst 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;\n/**\n * Replace raw escape character strings with their escape characters.\n * @param raw A string where escape characters are represented as raw string\n * values like `\\'` rather than `'`.\n * @param allowOctals If `true`, will process the now-deprecated octal escape\n * sequences (ie, `\\111`).\n * @returns The processed string, with escape characters replaced by their\n * respective actual Unicode characters.\n */\nfunction unraw(raw, allowOctals = false) {\n return raw.replace(escapeMatch, function (_, backslash, hex, codePoint, unicodeWithSurrogate, surrogate, unicode, octal, singleCharacter) {\n // Compare groups to undefined because empty strings mean different errors\n // Otherwise, `\\u` would fail the same as `\\` which is wrong.\n if (backslash !== undefined) {\n return \"\\\\\";\n }\n if (hex !== undefined) {\n return parseHexadecimalCode(hex);\n }\n if (codePoint !== undefined) {\n return parseUnicodeCodePointCode(codePoint);\n }\n if (unicodeWithSurrogate !== undefined) {\n return parseUnicodeCode(unicodeWithSurrogate, surrogate);\n }\n if (unicode !== undefined) {\n return parseUnicodeCode(unicode);\n }\n if (octal === \"0\") {\n return \"\\0\";\n }\n if (octal !== undefined) {\n return parseOctalCode(octal, !allowOctals);\n }\n if (singleCharacter !== undefined) {\n return parseSingleCharacterCode(singleCharacter);\n }\n throw new SyntaxError(errors_1.errorMessages.get(errors_1.ErrorType.EndOfString));\n });\n}\nexports.unraw = unraw;\nexports.default = unraw;\n", "// @warp-css;\n\nimport { html, LitElement } from 'lit';\n\nimport { classNames } from '@chbphone55/classnames';\nimport { property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\n\nimport { reset } from '../styles.js';\n\nimport { styles } from './styles.js';\nimport '@warp-ds/icons/elements/search-16';\nimport '@warp-ds/icons/elements/close-16';\n\nconst prefixSuffixWrapper =\n 'absolute top-0 bottom-0 flex justify-center items-center focusable rounded-4 focus:[--w-outline-offset:-2px] bg-transparent ';\n\nexport const ccSuffix = {\n wrapper: prefixSuffixWrapper + 'right-0',\n wrapperWithLabel: 'w-max pr-12',\n wrapperWithIcon: 'w-40',\n label: 'antialiased block relative cursor-default pb-0 font-bold text-xs s-text',\n};\n\nexport const ccPrefix = {\n wrapper: prefixSuffixWrapper + 'left-0',\n wrapperWithLabel: 'w-max pl-12',\n wrapperWithIcon: 'w-40',\n label: 'antialiased block relative cursor-default pb-0 font-bold text-xs s-text',\n};\n\n/**\n * This component is usually used in other components like form elements to show a prefix or suffix. See for example `w-textfield`.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-affix--docs)\n */\nclass WarpAffix extends LitElement {\n @property({ attribute: 'aria-label' }) ariaLabel: string;\n\n /**\n * Add this property to render a clickable Warp close icon.\n *\n * Set an `aria-label` that explains the action when using this.\n */\n @property({ type: Boolean }) clear = false;\n\n /**\n * Add this property to render a clickable Warp search icon.\n *\n * Set an `aria-label` that explains the action when using this.\n */\n @property({ type: Boolean }) search = false;\n\n @property() label: string;\n\n static styles = [reset, styles];\n\n /** @internal */\n get _classBase() {\n return this.slot === 'suffix' ? ccSuffix : ccPrefix;\n }\n\n /** @internal */\n get _classes() {\n return classNames([this._classBase.wrapper, this.label ? this._classBase.wrapperWithLabel : this._classBase.wrapperWithIcon]);\n }\n\n /** @internal */\n get _searchButton() {\n return html`\n <button aria-label=\"${ifDefined(this.ariaLabel)}\" class=\"${this._classes}\" type=\"submit\">\n <w-icon-search-16></w-icon-search-16>\n </button>\n `;\n }\n\n /** @internal */\n get _clearButton() {\n return html`\n <button aria-label=\"${ifDefined(this.ariaLabel)}\" class=\"${this._classes}\" type=\"reset\">\n <w-icon-close-16></w-icon-close-16>\n </button>\n `;\n }\n\n /** @internal */\n get _text() {\n return html`\n <div class=\"${this._classes}\">\n <span class=\"${this._classBase.label}\">${this.label}</span>\n </div>\n `;\n }\n\n /** @internal */\n get _markup() {\n if (this.label) {\n return this._text;\n } else if (this.search) {\n return this._searchButton;\n } else if (this.clear) {\n return this._clearButton;\n }\n return undefined;\n }\n\n render() {\n return html`${this._markup}`;\n }\n}\n\nif (!customElements.get('w-affix')) {\n customElements.define('w-affix', WarpAffix);\n}\n\nexport { WarpAffix };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-affix': WarpAffix;\n }\n}\n", "var r=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return t.reduce(function(t,n){return t.concat(\"string\"==typeof n?n:Array.isArray(n)?r.apply(void 0,n):\"object\"==typeof n&&n?Object.keys(n).map(function(r){return n[r]?r:\"\"}):\"\")},[]).join(\" \")};export{r as classNames};\n", "import { css } from 'lit';\n\nexport const reset = css`\n *,\n :before,\n :after {\n box-sizing: border-box;\n border-style: solid;\n border-width: 0;\n border-color: var(--w-s-color-border);\n }\n html {\n font-size: 62.5%;\n }\n body {\n background-color: var(--w-s-color-background);\n min-height: 100%;\n margin: 0;\n overflow-y: scroll;\n }\n body,\n :host {\n -webkit-text-size-adjust: 100%;\n tab-size: 4;\n -webkit-tap-highlight-color: transparent;\n font-family: var(--w-font-family);\n font-size: var(--w-font-size-m);\n line-height: var(--w-line-height-m);\n color: var(--w-s-color-text);\n }\n hr {\n color: inherit;\n border-top-width: 1px;\n height: 0;\n }\n abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-size: inherit;\n font-weight: 700;\n }\n a {\n cursor: pointer;\n color: var(--w-s-color-text-link);\n text-decoration: none;\n }\n a:hover,\n a:focus,\n a:active {\n text-decoration: underline;\n }\n a:focus-visible {\n outline: 2px solid var(--w-s-color-border-focus);\n outline-offset: 1px;\n }\n b,\n strong {\n font-weight: 700;\n }\n code,\n kbd,\n samp,\n pre {\n font-family:\n ui-monospace,\n SFMono-Regular,\n Menlo,\n Monaco,\n Consolas,\n Liberation Mono,\n Courier New,\n monospace;\n font-size: 1em;\n }\n sub,\n sup {\n vertical-align: baseline;\n font-size: 75%;\n line-height: 0;\n position: relative;\n }\n sub {\n bottom: -0.25em;\n }\n sup {\n top: -0.5em;\n }\n table {\n text-indent: 0;\n border-color: inherit;\n border-collapse: collapse;\n }\n button,\n input,\n optgroup,\n select,\n textarea {\n font-family: inherit;\n font-size: 100%;\n font-weight: inherit;\n line-height: inherit;\n color: inherit;\n margin: 0;\n padding: 0;\n }\n button,\n select {\n text-transform: none;\n }\n button,\n [type='button'],\n [type='reset'],\n [type='submit'] {\n -webkit-appearance: button;\n }\n :-moz-focusring {\n outline: auto;\n }\n :-moz-ui-invalid {\n box-shadow: none;\n }\n progress {\n vertical-align: baseline;\n }\n ::-webkit-inner-spin-button {\n height: auto;\n }\n ::-webkit-outer-spin-button {\n height: auto;\n }\n [type='search'] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n }\n ::-webkit-search-decoration {\n -webkit-appearance: none;\n }\n ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n }\n summary {\n display: list-item;\n }\n blockquote,\n dl,\n dd,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n hr,\n figure,\n p,\n pre {\n margin: 0;\n }\n fieldset {\n margin: 0;\n padding: 0;\n }\n legend {\n padding: 0;\n }\n ol,\n ul,\n menu {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n textarea {\n resize: vertical;\n }\n input::placeholder,\n textarea::placeholder {\n opacity: 1;\n color: var(--w-s-color-text-placeholder);\n }\n button,\n [role='button'] {\n cursor: pointer;\n }\n :disabled {\n cursor: default;\n }\n img,\n svg,\n video,\n canvas,\n audio,\n iframe,\n embed,\n object {\n vertical-align: middle;\n display: block;\n }\n img,\n video {\n max-width: 100%;\n height: auto;\n }\n h1 {\n font-size: var(--w-font-size-xxl);\n line-height: var(--w-line-height-xxl);\n }\n h2 {\n font-size: var(--w-font-size-xl);\n line-height: var(--w-line-height-xl);\n }\n h3 {\n font-size: var(--w-font-size-l);\n line-height: var(--w-line-height-l);\n }\n h4 {\n font-size: var(--w-font-size-m);\n line-height: var(--w-line-height-m);\n }\n h5 {\n font-size: var(--w-font-size-s);\n line-height: var(--w-line-height-s);\n }\n dt,\n dd {\n margin: 0 16px;\n }\n h1,\n h2,\n h3,\n h4,\n h5,\n ul,\n ol,\n dl,\n p,\n blockquote {\n margin: 0 0 8px;\n }\n [hidden] {\n display: none !important;\n }\n [tabindex='-1']:focus:not(:focus-visible) {\n outline: none;\n }\n legend {\n float: left;\n width: 100%;\n margin: 0;\n padding: 0;\n display: table;\n }\n legend + * {\n clear: both;\n }\n fieldset {\n border: 0;\n min-width: 0;\n margin: 0;\n padding: 0.01em 0 0;\n }\n body:not(:-moz-handler-blocked) fieldset {\n display: table-cell;\n }\n svg {\n pointer-events: none;\n }\n`;\nexport const components = css`*, :before, :after {\n --w-rotate: 0;\n --w-rotate-x: 0;\n --w-rotate-y: 0;\n --w-rotate-z: 0;\n --w-scale-x: 1;\n --w-scale-y: 1;\n --w-scale-z: 1;\n --w-skew-x: 0;\n --w-skew-y: 0;\n --w-translate-x: 0;\n --w-translate-y: 0;\n --w-translate-z: 0\n }\n\n .h4, .t4 {\n font-weight: 700;\n font-size: var(--w-font-size-m);\n line-height: var(--w-line-height-m)\n }\n\n .t3 {\n font-weight: 700;\n font-size: var(--w-font-size-l);\n line-height: var(--w-line-height-l)\n }\n\n @media (min-width: 480px) {\n .sm\\\\:h3 {\n font-weight: 700;\n font-size: var(--w-font-size-l);\n line-height: var(--w-line-height-l)\n }\n }\n\n .text-center {\n text-align: center\n }\n\n .before\\\\:text-center:before {\n text-align: center\n }\n\n .text-left {\n text-align: left\n }\n\n .text-right {\n text-align: right\n }\n\n .align-middle {\n vertical-align: middle\n }\n\n .animate-inprogress {\n 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;\n background-size: 30px 30px;\n animation: animate-inprogress 3s linear infinite\n }\n\n @keyframes animate-inprogress {\n 0% {\n background-position: 0 0\n }\n to {\n background-position: 60px 0\n }\n }\n\n .\\\\[--w-modal-max-height\\\\:80\\\\%\\\\] {\n --w-modal-max-height: 80%\n }\n\n .\\\\[--w-modal-width\\\\:640px\\\\] {\n --w-modal-width: 640px\n }\n\n .focus\\\\:\\\\[--w-outline-offset\\\\:-2px\\\\]:focus {\n --w-outline-offset: -2px\n }\n\n .backdrop-blur {\n -webkit-backdrop-filter: blur(4px);\n backdrop-filter: blur(4px)\n }\n\n .peer:checked ~ .peer-checked\\\\:before\\\\:bg-center:before {\n background-position: center\n }\n\n .hover\\\\:bg-clip-padding:hover {\n -webkit-background-clip: padding-box;\n background-clip: padding-box\n }\n\n .bg-transparent, .group\\\\/steph:first-child .group-first\\\\/steph\\\\:bg-transparent, .group\\\\/steph:last-child .group-last\\\\/steph\\\\:bg-transparent {\n background-color: transparent\n }\n\n .bg-\\\\[--w-black\\\\/25\\\\] {\n background-color: rgba(var(--w-rgb-black), .25)\n }\n\n .bg-\\\\[--w-black\\\\/70\\\\], .bg-\\\\[var\\\\(--w-black\\\\)\\\\/70\\\\] {\n background-color: rgba(var(--w-rgb-black), .7)\n }\n\n .bg-\\\\[--w-color-badge-info-background\\\\] {\n background-color: var(--w-color-badge-info-background)\n }\n\n .bg-\\\\[--w-color-badge-negative-background\\\\] {\n background-color: var(--w-color-badge-negative-background)\n }\n\n .bg-\\\\[--w-color-badge-neutral-background\\\\] {\n background-color: var(--w-color-badge-neutral-background)\n }\n\n .bg-\\\\[--w-color-badge-positive-background\\\\] {\n background-color: var(--w-color-badge-positive-background)\n }\n\n .bg-\\\\[--w-color-badge-sponsored-background\\\\] {\n background-color: var(--w-color-badge-sponsored-background)\n }\n\n .bg-\\\\[--w-color-badge-warning-background\\\\] {\n background-color: var(--w-color-badge-warning-background)\n }\n\n .bg-\\\\[--w-color-button-primary-background\\\\] {\n background-color: var(--w-color-button-primary-background)\n }\n\n .bg-\\\\[--w-color-buttongroup-utility-background-selected\\\\] {\n background-color: var(--w-color-buttongroup-utility-background-selected)\n }\n\n .bg-\\\\[--w-color-callout-background\\\\] {\n background-color: var(--w-color-callout-background)\n }\n\n .bg-\\\\[--w-color-pill-suggestion-background\\\\] {\n background-color: var(--w-color-pill-suggestion-background)\n }\n\n .bg-\\\\[--w-color-switch-track-background\\\\] {\n background-color: var(--w-color-switch-track-background)\n }\n\n .bg-\\\\[--w-s-color-surface-elevated-100\\\\] {\n background-color: var(--w-s-color-surface-elevated-100)\n }\n\n .bg-\\\\[--w-s-color-surface-elevated-300\\\\] {\n background-color: var(--w-s-color-surface-elevated-300)\n }\n\n .bg-\\\\[--w-s-icon-selected\\\\] {\n background-color: var(--w-s-icon-selected)\n }\n\n .group:hover .group-hover\\\\:bg-\\\\[--w-color-switch-track-background-hover\\\\] {\n background-color: var(--w-color-switch-track-background-hover)\n }\n\n .hover\\\\:bg-\\\\[--w-color-button-pill-background-hover\\\\]:hover {\n background-color: var(--w-color-button-pill-background-hover)\n }\n\n .hover\\\\:bg-\\\\[--w-color-button-primary-background-hover\\\\]:hover {\n background-color: var(--w-color-button-primary-background-hover)\n }\n\n .hover\\\\:bg-\\\\[--w-color-buttongroup-utility-background-hover\\\\]:hover {\n background-color: var(--w-color-buttongroup-utility-background-hover)\n }\n\n .hover\\\\:bg-\\\\[--w-color-pill-suggestion-background-hover\\\\]:hover {\n background-color: var(--w-color-pill-suggestion-background-hover)\n }\n\n .hover\\\\:bg-\\\\[--w-s-icon-subtle\\\\]:hover {\n background-color: var(--w-s-icon-subtle)\n }\n\n .hover\\\\:bg-\\\\[var\\\\(--w-black\\\\)\\\\/85\\\\]:hover {\n background-color: rgba(var(--w-rgb-black), .85)\n }\n\n .active\\\\:bg-\\\\[--w-color-button-pill-background-active\\\\]:active {\n background-color: var(--w-color-button-pill-background-active)\n }\n\n .active\\\\:bg-\\\\[--w-color-button-primary-background-active\\\\]:active {\n background-color: var(--w-color-button-primary-background-active)\n }\n\n .active\\\\:bg-\\\\[--w-color-buttongroup-utility-background-selected\\\\]:active {\n background-color: var(--w-color-buttongroup-utility-background-selected)\n }\n\n .active\\\\:bg-\\\\[--w-color-pill-suggestion-background-active\\\\]:active {\n background-color: var(--w-color-pill-suggestion-background-active)\n }\n\n .active\\\\:bg-\\\\[var\\\\(--w-black\\\\)\\\\]:active {\n background-color: var(--w-black)\n }\n\n .peer:checked ~ .peer-checked\\\\:before\\\\:bg-\\\\[url\\\\(var\\\\(--w-icon-toggle-checked\\\\)\\\\)\\\\]:before {\n background-image: var(--w-icon-toggle-checked)\n }\n\n .appearance-none {\n -moz-appearance: none;\n appearance: none;\n -webkit-appearance: none\n }\n\n .will-change-height {\n will-change: height\n }\n\n .border, .border-1 {\n border-width: 1px\n }\n\n .border-b {\n border-bottom-width: 1px\n }\n\n .before\\\\:border:before {\n border-width: 1px\n }\n\n .border-0 {\n border-width: 0\n }\n\n .border-2 {\n border-width: 2px\n }\n\n .border-b-0 {\n border-bottom-width: 0\n }\n\n .border-b-4 {\n border-bottom-width: 4px\n }\n\n .border-l-4 {\n border-left-width: 4px\n }\n\n .border-r-0, .group:not(:last-of-type) .group-not-last-of-type\\\\:border-r-0 {\n border-right-width: 0\n }\n\n .peer:checked ~ .peer-checked\\\\:before\\\\:border-\\\\[6\\\\]:before {\n border-width: .6rem\n }\n\n .border-transparent {\n border-color: transparent\n }\n\n .border-\\\\[--w-color-buttongroup-utility-border\\\\] {\n border-color: var(--w-color-buttongroup-utility-border)\n }\n\n .border-\\\\[--w-color-callout-border\\\\] {\n border-color: var(--w-color-callout-border)\n }\n\n .border-\\\\[--w-s-color-background-inverted\\\\] {\n border-color: var(--w-s-color-background-inverted)\n }\n\n .border-\\\\[--w-s-color-surface-elevated-300\\\\] {\n border-color: var(--w-s-color-surface-elevated-300)\n }\n\n .active\\\\:border-\\\\[--w-color-buttongroup-utility-border-selected\\\\]:active {\n border-color: var(--w-color-buttongroup-utility-border-selected)\n }\n\n .divide-x > * + * {\n --w-divide-x-reverse: 0;\n border-left-width: calc(1px * calc(1 - var(--w-divide-x-reverse)));\n border-right-width: calc(1px * var(--w-divide-x-reverse))\n }\n\n .divide-y > * + * {\n --w-divide-y-reverse: 0;\n border-top-width: calc(1px * calc(1 - var(--w-divide-y-reverse)));\n border-bottom-width: calc(1px * var(--w-divide-y-reverse))\n }\n\n .rounded-4 {\n border-radius: 4px\n }\n\n .rounded-8 {\n border-radius: 8px\n }\n\n .rounded-full {\n border-radius: 9999px\n }\n\n .before\\\\:rounded-2:before {\n border-radius: 2px\n }\n\n .before\\\\:rounded-full:before {\n border-radius: 9999px\n }\n\n .rounded-b-0 {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0\n }\n\n .rounded-bl-0 {\n border-bottom-left-radius: 0\n }\n\n .rounded-br-0 {\n border-bottom-right-radius: 0\n }\n\n .rounded-l-0 {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0\n }\n\n .rounded-l-full {\n border-top-left-radius: 9999px;\n border-bottom-left-radius: 9999px\n }\n\n .rounded-r-0 {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0\n }\n\n .rounded-r-full {\n border-top-right-radius: 9999px;\n border-bottom-right-radius: 9999px\n }\n\n .rounded-tl-0 {\n border-top-left-radius: 0\n }\n\n .rounded-tl-4 {\n border-top-left-radius: 4px\n }\n\n .rounded-tr-0 {\n border-top-right-radius: 0\n }\n\n .group:first-of-type .group-first-of-type\\\\:rounded-bl-8 {\n border-bottom-left-radius: 8px\n }\n\n .group:first-of-type .group-first-of-type\\\\:rounded-tl-8 {\n border-top-left-radius: 8px\n }\n\n .first\\\\:rounded-lb-4:first-child {\n border-bottom-left-radius: 4px\n }\n\n .first\\\\:rounded-lt-4:first-child {\n border-top-left-radius: 4px\n }\n\n .first\\\\:rounded-rt-4:first-child {\n border-top-right-radius: 4px\n }\n\n .group:last-of-type .group-last-of-type\\\\:rounded-br-8 {\n border-bottom-right-radius: 8px\n }\n\n .group:last-of-type .group-last-of-type\\\\:rounded-tr-8 {\n border-top-right-radius: 8px\n }\n\n .last\\\\:rounded-lb-4:last-child {\n border-bottom-left-radius: 4px\n }\n\n .last\\\\:rounded-rb-4:last-child {\n border-bottom-right-radius: 4px\n }\n\n .last\\\\:rounded-rt-4:last-child {\n border-top-right-radius: 4px\n }\n\n .caret-current {\n caret-color: currentColor\n }\n\n .opacity-25 {\n opacity: 25%\n }\n\n .block {\n display: block\n }\n\n .before\\\\:block:before {\n display: block\n }\n\n .inline-block {\n display: inline-block\n }\n\n .inline {\n display: inline\n }\n\n .flex, .open\\\\:flex[open] {\n display: flex\n }\n\n .inline-flex {\n display: inline-flex\n }\n\n .grid {\n display: grid\n }\n\n .inline-grid {\n display: inline-grid\n }\n\n .hidden, .group\\\\/stepv:last-child .group-last\\\\/stepv\\\\:hidden {\n display: none\n }\n\n .before\\\\:hidden:before {\n display: none\n }\n\n .hover\\\\:underline:hover {\n text-decoration-line: underline\n }\n\n .focus\\\\:underline:focus {\n text-decoration-line: underline\n }\n\n .focus-visible\\\\:underline:focus-visible {\n text-decoration-line: underline\n }\n\n .active\\\\:underline:active {\n text-decoration-line: underline\n }\n\n .hover\\\\:no-underline:hover {\n text-decoration: none\n }\n\n .focus\\\\:no-underline:focus {\n text-decoration: none\n }\n\n .active\\\\:no-underline:active {\n text-decoration: none\n }\n\n .flex-1 {\n flex: 1 1 0%\n }\n\n .shrink {\n flex-shrink: 1\n }\n\n .shrink-0 {\n flex-shrink: 0\n }\n\n .shrink-0\\\\! {\n flex-shrink: 0 !important\n }\n\n .grow, .grow-1 {\n flex-grow: 1\n }\n\n .basis-auto {\n flex-basis: auto\n }\n\n .flex-col {\n flex-direction: column\n }\n\n .focus-within\\\\:focusable:focus-within {\n outline: 2px solid var(--w-s-color-border-focus);\n outline-offset: var(--w-outline-offset, 1px)\n }\n\n .focusable:focus, .focusable:focus-visible {\n outline: 2px solid var(--w-s-color-border-focus);\n outline-offset: var(--w-outline-offset, 1px)\n }\n\n .focusable:not(:focus-visible) {\n outline: none\n }\n\n .peer:focus ~ .peer-focus\\\\:focusable, .peer:focus-visible ~ .peer-focus\\\\:focusable {\n outline: 2px solid var(--w-s-color-border-focus);\n outline-offset: var(--w-outline-offset, 1px)\n }\n\n .peer:not(:focus-visible) ~ .peer-focus\\\\:focusable {\n outline: none\n }\n\n .focusable-inset {\n --w-outline-offset: -3px\n }\n\n .gap-12 {\n gap: 1.2rem\n }\n\n .gap-8 {\n gap: .8rem\n }\n\n .gap-x-16 {\n column-gap: 1.6rem\n }\n\n .gap-y-16 {\n row-gap: 1.6rem\n }\n\n .row-span-2 {\n grid-row: span 2/span 2\n }\n\n .col-span-2 {\n grid-column: span 2/span 2\n }\n\n .col-span-3 {\n grid-column: span 3/span 3\n }\n\n .row-start-1 {\n grid-row-start: 1\n }\n\n .row-start-2 {\n grid-row-start: 2\n }\n\n .col-start-2 {\n grid-column-start: 2\n }\n\n .auto-rows-auto {\n grid-auto-rows: auto\n }\n\n .grid-flow-col {\n grid-auto-flow: column\n }\n\n .grid-rows-\\\\[20px_auto\\\\] {\n grid-template-rows:20px auto\n }\n\n .grid-rows-\\\\[auto_20px\\\\] {\n grid-template-rows:auto 20px\n }\n\n .grid-cols-\\\\[1fr_20px_1fr\\\\] {\n grid-template-columns:1fr 20px 1fr\n }\n\n .grid-cols-\\\\[1fr_20px\\\\] {\n grid-template-columns:1fr 20px\n }\n\n .grid-cols-\\\\[20px_1fr\\\\] {\n grid-template-columns:20px 1fr\n }\n\n .grid-cols-\\\\[auto_1fr_auto\\\\] {\n grid-template-columns:auto 1fr auto\n }\n\n .grid-cols-1 {\n grid-template-columns:repeat(1, minmax(0, 1fr))\n }\n\n .grid-cols-2 {\n grid-template-columns:repeat(2, minmax(0, 1fr))\n }\n\n .grid-cols-3 {\n grid-template-columns:repeat(3, minmax(0, 1fr))\n }\n\n .grid-cols-4 {\n grid-template-columns:repeat(4, minmax(0, 1fr))\n }\n\n .grid-cols-5 {\n grid-template-columns:repeat(5, minmax(0, 1fr))\n }\n\n .grid-cols-6 {\n grid-template-columns:repeat(6, minmax(0, 1fr))\n }\n\n .grid-cols-7 {\n grid-template-columns:repeat(7, minmax(0, 1fr))\n }\n\n .grid-cols-8 {\n grid-template-columns:repeat(8, minmax(0, 1fr))\n }\n\n .grid-cols-9 {\n grid-template-columns:repeat(9, minmax(0, 1fr))\n }\n\n .overflow-hidden {\n overflow: hidden\n }\n\n .overflow-x-hidden {\n overflow-x: hidden\n }\n\n .overflow-y-auto {\n overflow-y: auto\n }\n\n .list-none {\n list-style-type: none\n }\n\n .outline-\\\\[--w-s-color-border-negative\\\\]\\\\! {\n outline-color: var(--w-s-color-border-negative) !important\n }\n\n .outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px\n }\n\n .focus\\\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px\n }\n\n .items-start {\n align-items: flex-start\n }\n\n .items-end {\n align-items: flex-end\n }\n\n .items-center {\n align-items: center\n }\n\n .self-center {\n align-self: center\n }\n\n .inset-0 {\n top: 0rem;\n right: 0rem;\n bottom: 0rem;\n left: 0rem\n }\n\n .-bottom-0 {\n bottom: -0rem\n }\n\n .bottom-0 {\n bottom: 0rem\n }\n\n .bottom-10 {\n bottom: 1rem\n }\n\n .bottom-16 {\n bottom: 1.6rem\n }\n\n .left-0 {\n left: 0rem\n }\n\n .left-4 {\n left: .4rem\n }\n\n .right-0 {\n right: 0rem\n }\n\n .right-8 {\n right: .8rem\n }\n\n .top-\\\\[1\\\\.92rem\\\\] {\n top: 1.92rem\n }\n\n .top-0 {\n top: 0rem\n }\n\n .top-20 {\n top: 2rem\n }\n\n .top-4 {\n top: .4rem\n }\n\n .top-8 {\n top: .8rem\n }\n\n .before\\\\:bottom-0:before {\n bottom: 0rem\n }\n\n .before\\\\:left-0:before {\n left: 0rem\n }\n\n .before\\\\:right-0:before {\n right: 0rem\n }\n\n .before\\\\:top-2:before {\n top: .2rem\n }\n\n .-bottom-\\\\[8px\\\\] {\n bottom: -8px\n }\n\n .-left-\\\\[8px\\\\] {\n left: -8px\n }\n\n .-right-\\\\[8px\\\\] {\n right: -8px\n }\n\n .-top-\\\\[8px\\\\] {\n top: -8px\n }\n\n .top-\\\\[19px\\\\] {\n top: 19px\n }\n\n .top-\\\\[30\\\\%\\\\] {\n top: 30%\n }\n\n .justify-end {\n justify-content: flex-end\n }\n\n .justify-center {\n justify-content: center\n }\n\n .justify-between {\n justify-content: space-between\n }\n\n .justify-items-center {\n justify-items: center\n }\n\n .justify-self-start {\n justify-self: start\n }\n\n .justify-self-end {\n justify-self: end\n }\n\n .justify-self-center {\n justify-self: center\n }\n\n .absolute {\n position: absolute\n }\n\n .fixed {\n position: fixed\n }\n\n .relative {\n position: relative\n }\n\n .open\\\\:fixed[open] {\n position: fixed\n }\n\n .before\\\\:absolute:before {\n position: absolute\n }\n\n .z-10, .peer:checked ~ .peer-checked\\\\:z-10 {\n z-index: 10\n }\n\n .z-30 {\n z-index: 30\n }\n\n .z-50 {\n z-index: 50\n }\n\n .hover\\\\:z-30:hover {\n z-index: 30\n }\n\n .\\\\!s-bg-selected {\n background-color: var(--w-s-color-background-selected) !important\n }\n\n .s-bg {\n background-color: var(--w-s-color-background)\n }\n\n .s-bg-disabled {\n background-color: var(--w-s-color-background-disabled)\n }\n\n .s-bg-disabled-subtle {\n background-color: var(--w-s-color-background-disabled-subtle)\n }\n\n .s-bg-info-subtle {\n background-color: var(--w-s-color-background-info-subtle)\n }\n\n .s-bg-inverted {\n background-color: var(--w-s-color-background-inverted)\n }\n\n .s-bg-negative {\n background-color: var(--w-s-color-background-negative)\n }\n\n .s-bg-negative-subtle {\n background-color: var(--w-s-color-background-negative-subtle)\n }\n\n .s-bg-positive-subtle {\n background-color: var(--w-s-color-background-positive-subtle)\n }\n\n .s-bg-primary, .peer:checked ~ .peer-checked\\\\:s-bg-primary {\n background-color: var(--w-s-color-background-primary)\n }\n\n .s-bg-selected {\n background-color: var(--w-s-color-background-selected)\n }\n\n .s-bg-subtle {\n background-color: var(--w-s-color-background-subtle)\n }\n\n .s-bg-warning-subtle {\n background-color: var(--w-s-color-background-warning-subtle)\n }\n\n .peer:checked:hover ~ .peer-checked\\\\:peer-hover\\\\:before\\\\:s-bg-negative-hover:before {\n background-color: var(--w-s-color-background-negative-hover)\n }\n\n .peer:checked:hover ~ .peer-checked\\\\:peer-hover\\\\:before\\\\:s-bg-primary-hover:before {\n background-color: var(--w-s-color-background-primary-hover)\n }\n\n .peer:checked ~ .peer-checked\\\\:before\\\\:s-bg-disabled:before {\n background-color: var(--w-s-color-background-disabled)\n }\n\n .peer:checked ~ .peer-checked\\\\:before\\\\:s-bg-negative:before {\n background-color: var(--w-s-color-background-negative)\n }\n\n .peer:checked ~ .peer-checked\\\\:before\\\\:s-bg-primary:before {\n background-color: var(--w-s-color-background-primary)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\\\:before\\\\:s-bg-disabled:before {\n background-color: var(--w-s-color-background-disabled)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\\\:before\\\\:s-bg-negative:before {\n background-color: var(--w-s-color-background-negative)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\\\:before\\\\:s-bg-primary:before {\n background-color: var(--w-s-color-background-primary)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\\\:hover\\\\:before\\\\:s-bg-negative-hover:hover:before {\n background-color: var(--w-s-color-background-negative-hover)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\\\:hover\\\\:before\\\\:s-bg-primary-hover:hover:before {\n background-color: var(--w-s-color-background-primary-hover)\n }\n\n .\\\\!hover\\\\:s-bg-selected-hover:hover {\n background-color: var(--w-s-color-background-selected-hover) !important\n }\n\n .group:hover .group-hover\\\\:s-bg-primary-hover {\n background-color: var(--w-s-color-background-primary-hover)\n }\n\n .hover\\\\:before\\\\:s-bg-hover:hover:before {\n background-color: var(--w-s-color-background-hover)\n }\n\n .hover\\\\:before\\\\:s-bg-negative-subtle-hover:hover:before {\n background-color: var(--w-s-color-background-negative-subtle-hover)\n }\n\n .hover\\\\:s-bg-hover:hover {\n background-color: var(--w-s-color-background-hover)\n }\n\n .hover\\\\:s-bg-negative-hover:hover {\n background-color: var(--w-s-color-background-negative-hover)\n }\n\n .hover\\\\:s-bg-negative-subtle-hover:hover {\n background-color: var(--w-s-color-background-negative-subtle-hover)\n }\n\n .hover\\\\:s-bg-primary-hover:hover {\n background-color: var(--w-s-color-background-primary-hover)\n }\n\n .hover\\\\:s-bg-selected-hover:hover {\n background-color: var(--w-s-color-background-selected-hover)\n }\n\n .peer:hover:not(:checked) ~ .peer-hover\\\\:peer-not-checked\\\\:s-bg-hover {\n background-color: var(--w-s-color-background-hover)\n }\n\n .peer:hover ~ .peer-hover\\\\:before\\\\:s-bg-hover:before {\n background-color: var(--w-s-color-background-hover)\n }\n\n .peer:hover ~ .peer-hover\\\\:before\\\\:s-bg-negative-subtle:before {\n background-color: var(--w-s-color-background-negative-subtle)\n }\n\n .focus\\\\:s-bg-primary-hover:focus {\n background-color: var(--w-s-color-background-primary-hover)\n }\n\n .\\\\!active\\\\:s-bg-selected-active:active {\n background-color: var(--w-s-color-background-selected-active) !important\n }\n\n .active\\\\:s-bg-active:active {\n background-color: var(--w-s-color-background-active)\n }\n\n .active\\\\:s-bg-negative-active:active {\n background-color: var(--w-s-color-background-negative-active)\n }\n\n .active\\\\:s-bg-negative-subtle-active:active {\n background-color: var(--w-s-color-background-negative-subtle-active)\n }\n\n .active\\\\:s-bg-primary-active:active {\n background-color: var(--w-s-color-background-primary-active)\n }\n\n .active\\\\:s-bg-selected-active:active {\n background-color: var(--w-s-color-background-selected-active)\n }\n\n .before\\\\:s-bg-disabled-subtle:before {\n background-color: var(--w-s-color-background-disabled-subtle)\n }\n\n .before\\\\:s-bg:before {\n background-color: var(--w-s-color-background)\n }\n\n .s-text {\n color: var(--w-s-color-text)\n }\n\n .s-text-disabled {\n color: var(--w-s-color-text-disabled)\n }\n\n .s-text-inverted, .peer:checked ~ .peer-checked\\\\:s-text-inverted {\n color: var(--w-s-color-text-inverted)\n }\n\n .s-text-inverted-static {\n color: var(--w-s-color-text-inverted-static)\n }\n\n .s-text-link {\n color: var(--w-s-color-text-link)\n }\n\n .s-text-negative {\n color: var(--w-s-color-text-negative)\n }\n\n .s-text-subtle {\n color: var(--w-s-color-text-subtle)\n }\n\n .hover\\\\:s-text-link:hover {\n color: var(--w-s-color-text-link)\n }\n\n .active\\\\:s-text:active {\n color: var(--w-s-color-text)\n }\n\n .placeholder\\\\:s-text-placeholder::placeholder {\n color: var(--w-s-color-text-placeholder)\n }\n\n .s-icon {\n color: var(--w-s-color-icon)\n }\n\n .s-icon-info {\n color: var(--w-s-color-icon-info)\n }\n\n .s-icon-inverted {\n color: var(--w-s-color-icon-inverted)\n }\n\n .s-icon-negative {\n color: var(--w-s-color-icon-negative)\n }\n\n .s-icon-positive {\n color: var(--w-s-color-icon-positive)\n }\n\n .s-icon-warning {\n color: var(--w-s-color-icon-warning)\n }\n\n .hover\\\\:s-icon-hover:hover {\n color: var(--w-s-color-icon-hover)\n }\n\n .active\\\\:s-icon-active:active {\n color: var(--w-s-color-icon-active)\n }\n\n .before\\\\:s-icon-inverted:before {\n color: var(--w-s-color-icon-inverted)\n }\n\n .s-border {\n border-color: var(--w-s-color-border)\n }\n\n .s-border-disabled {\n border-color: var(--w-s-color-border-disabled)\n }\n\n .s-border-info-subtle {\n border-color: var(--w-s-color-border-info-subtle)\n }\n\n .s-border-l-info {\n border-left-color: var(--w-s-color-border-info)\n }\n\n .s-border-l-negative {\n border-left-color: var(--w-s-color-border-negative)\n }\n\n .s-border-l-positive {\n border-left-color: var(--w-s-color-border-positive)\n }\n\n .s-border-l-warning {\n border-left-color: var(--w-s-color-border-warning)\n }\n\n .s-border-negative {\n border-color: var(--w-s-color-border-negative)\n }\n\n .s-border-negative-subtle {\n border-color: var(--w-s-color-border-negative-subtle)\n }\n\n .s-border-positive-subtle {\n border-color: var(--w-s-color-border-positive-subtle)\n }\n\n .s-border-primary, .peer:checked ~ .peer-checked\\\\:s-border-primary {\n border-color: var(--w-s-color-border-primary)\n }\n\n .s-border-selected {\n border-color: var(--w-s-color-border-selected)\n }\n\n .s-border-warning-subtle {\n border-color: var(--w-s-color-border-warning-subtle)\n }\n\n .peer:checked:hover ~ .peer-checked\\\\:peer-hover\\\\:before\\\\:s-border-negative-hover:before {\n border-color: var(--w-s-color-border-negative-hover)\n }\n\n .peer:checked:hover ~ .peer-checked\\\\:peer-hover\\\\:before\\\\:s-border-primary-hover:before {\n border-color: var(--w-s-color-border-primary-hover)\n }\n\n .peer:checked:hover ~ .peer-checked\\\\:peer-hover\\\\:before\\\\:s-border-selected-hover:before {\n border-color: var(--w-s-color-border-selected-hover)\n }\n\n .peer:checked ~ .peer-checked\\\\:before\\\\:s-border-disabled:before {\n border-color: var(--w-s-color-border-disabled)\n }\n\n .peer:checked ~ .peer-checked\\\\:before\\\\:s-border-negative:before {\n border-color: var(--w-s-color-border-negative)\n }\n\n .peer:checked ~ .peer-checked\\\\:before\\\\:s-border-primary:before {\n border-color: var(--w-s-color-border-primary)\n }\n\n .peer:checked ~ .peer-checked\\\\:before\\\\:s-border-selected:before {\n border-color: var(--w-s-color-border-selected)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\\\:before\\\\:s-border-disabled:before {\n border-color: var(--w-s-color-border-disabled)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\\\:before\\\\:s-border-negative:before {\n border-color: var(--w-s-color-border-negative)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\\\:before\\\\:s-border-primary:before {\n border-color: var(--w-s-color-border-primary)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\\\:hover\\\\:before\\\\:s-border-negative-hover:hover:before {\n border-color: var(--w-s-color-border-negative-hover)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\\\:hover\\\\:before\\\\:s-border-primary-hover:hover:before {\n border-color: var(--w-s-color-border-primary-hover)\n }\n\n .group:hover .group-hover\\\\:s-border-selected-hover {\n border-color: var(--w-s-color-border-selected-hover)\n }\n\n .hover\\\\:before\\\\:s-border-negative-hover:hover:before {\n border-color: var(--w-s-color-border-negative-hover)\n }\n\n .hover\\\\:before\\\\:s-border-primary:hover:before {\n border-color: var(--w-s-color-border-primary)\n }\n\n .hover\\\\:s-border-disabled:hover {\n border-color: var(--w-s-color-border-disabled)\n }\n\n .hover\\\\:s-border-hover:hover {\n border-color: var(--w-s-color-border-hover)\n }\n\n .hover\\\\:s-border-negative-hover:hover {\n border-color: var(--w-s-color-border-negative-hover)\n }\n\n .hover\\\\:s-border-primary-hover:hover {\n border-color: var(--w-s-color-border-primary-hover)\n }\n\n .hover\\\\:s-border-primary:hover {\n border-color: var(--w-s-color-border-primary)\n }\n\n .hover\\\\:s-border-selected-hover:hover {\n border-color: var(--w-s-color-border-selected-hover)\n }\n\n .peer:hover ~ .peer-hover\\\\:before\\\\:s-border-negative-hover:before {\n border-color: var(--w-s-color-border-negative-hover)\n }\n\n .peer:hover ~ .peer-hover\\\\:before\\\\:s-border-primary:before {\n border-color: var(--w-s-color-border-primary)\n }\n\n .focus\\\\:s-border-primary-hover:focus {\n border-color: var(--w-s-color-border-primary-hover)\n }\n\n .active\\\\:s-border-active:active {\n border-color: var(--w-s-color-border-active)\n }\n\n .active\\\\:s-border-disabled:active {\n border-color: var(--w-s-color-border-disabled)\n }\n\n .active\\\\:s-border-primary-active:active {\n border-color: var(--w-s-color-border-primary-active)\n }\n\n .active\\\\:s-border-selected-active:active {\n border-color: var(--w-s-color-border-selected-active)\n }\n\n .active\\\\:s-border-selected:active {\n border-color: var(--w-s-color-border-selected)\n }\n\n .group:active .group-active\\\\:s-border-active {\n border-color: var(--w-s-color-border-active)\n }\n\n .group:active .group-active\\\\:s-border-selected-active {\n border-color: var(--w-s-color-border-selected-active)\n }\n\n .before\\\\:s-border-disabled:before {\n border-color: var(--w-s-color-border-disabled)\n }\n\n .before\\\\:s-border-negative:before {\n border-color: var(--w-s-color-border-negative)\n }\n\n .s-surface-sunken {\n background-color: var(--w-s-color-surface-sunken)\n }\n\n .s-surface-elevated-200 {\n background-color: var(--w-s-color-surface-elevated-200);\n box-shadow: var(--w-s-shadow-surface-elevated-200)\n }\n\n .hover\\\\:s-surface-elevated-200-hover:hover {\n background-color: var(--w-s-color-surface-elevated-200-hover);\n box-shadow: var(--w-s-shadow-surface-elevated-200-hover)\n }\n\n .active\\\\:s-surface-elevated-200-active:active {\n background-color: var(--w-s-color-surface-elevated-200-active);\n box-shadow: var(--w-s-shadow-surface-elevated-200-active)\n }\n\n .drop-shadow-m {\n filter: drop-shadow(rgba(64, 64, 64, .24) 0 3px 8px) drop-shadow(rgba(64, 64, 64, .16) 0 3px 6px)\n }\n\n .shadow-m {\n box-shadow: var(--w-shadow-m)\n }\n\n .shadow-s {\n box-shadow: var(--w-shadow-s)\n }\n\n .shadow-\\\\[--w-shadow-slider\\\\] {\n box-shadow: var(--w-shadow-slider)\n }\n\n .hover\\\\:shadow-\\\\[--w-shadow-slider-handle-hover\\\\]:hover {\n box-shadow: var(--w-shadow-slider-handle-hover)\n }\n\n .focus\\\\:shadow-\\\\[--w-shadow-slider-handle-hover\\\\]:focus {\n box-shadow: var(--w-shadow-slider-handle-hover)\n }\n\n .active\\\\:shadow-\\\\[--w-shadow-slider-handle-active\\\\]:active {\n box-shadow: var(--w-shadow-slider-handle-active)\n }\n\n .h-0 {\n height: 0rem\n }\n\n .h-16 {\n height: 1.6rem\n }\n\n .h-2 {\n height: .2rem\n }\n\n .h-20 {\n height: 2rem\n }\n\n .h-24 {\n height: 2.4rem\n }\n\n .h-4 {\n height: .4rem\n }\n\n .h-44 {\n height: 4.4rem\n }\n\n .h-6 {\n height: .6rem\n }\n\n .h-8 {\n height: .8rem\n }\n\n .h-full {\n height: 100%\n }\n\n .h-unset {\n height: unset\n }\n\n .max-h-unset {\n max-height: unset\n }\n\n .max-w-full {\n max-width: 100%\n }\n\n .max-w-max {\n max-width: max-content\n }\n\n .max-w-unset {\n max-width: unset\n }\n\n .min-h-32 {\n min-height: 3.2rem\n }\n\n .min-h-40 {\n min-height: 4rem\n }\n\n .min-w-16 {\n min-width: 1.6rem\n }\n\n .min-w-32 {\n min-width: 3.2rem\n }\n\n .w-16 {\n width: 1.6rem\n }\n\n .w-2 {\n width: .2rem\n }\n\n .w-20 {\n width: 2rem\n }\n\n .w-24 {\n width: 2.4rem\n }\n\n .w-32 {\n width: 3.2rem\n }\n\n .w-40 {\n width: 4rem\n }\n\n .w-44 {\n width: 4.4rem\n }\n\n .w-8 {\n width: .8rem\n }\n\n .w-full {\n width: 100%\n }\n\n .w-max {\n width: max-content\n }\n\n .w-unset {\n width: unset\n }\n\n .before\\\\:h-20:before {\n height: 2rem\n }\n\n .before\\\\:h-full:before {\n height: 100%\n }\n\n .before\\\\:w-20:before {\n width: 2rem\n }\n\n .before\\\\:w-32:before {\n width: 3.2rem\n }\n\n .h-\\\\[--w-modal-height\\\\] {\n height: var(--w-modal-height)\n }\n\n .h-\\\\[14px\\\\] {\n height: 14px\n }\n\n .h-\\\\[16px\\\\] {\n height: 16px\n }\n\n .max-h-\\\\[--w-modal-max-height\\\\] {\n max-height: var(--w-modal-max-height)\n }\n\n .min-h-\\\\[--w-modal-min-height\\\\] {\n min-height: var(--w-modal-min-height)\n }\n\n .min-h-\\\\[32px\\\\] {\n min-height: 32px\n }\n\n .min-h-\\\\[40px\\\\] {\n min-height: 40px\n }\n\n .min-h-\\\\[42\\\\] {\n min-height: 4.2rem\n }\n\n .min-h-\\\\[44px\\\\] {\n min-height: 44px\n }\n\n .min-w-\\\\[32px\\\\] {\n min-width: 32px\n }\n\n .min-w-\\\\[40px\\\\] {\n min-width: 40px\n }\n\n .min-w-\\\\[44px\\\\] {\n min-width: 44px\n }\n\n .w-\\\\[--w-modal-width\\\\] {\n width: var(--w-modal-width)\n }\n\n .w-\\\\[14px\\\\] {\n width: 14px\n }\n\n .w-\\\\[16px\\\\] {\n width: 16px\n }\n\n .space-x-8 > :not([hidden]) ~ :not([hidden]) {\n --w-space-x-reverse: 0;\n margin-left: calc(.8rem * calc(1 - var(--w-space-x-reverse)));\n margin-right: calc(.8rem * var(--w-space-x-reverse))\n }\n\n .space-y-16 > :not([hidden]) ~ :not([hidden]) {\n --w-space-y-reverse: 0;\n margin-top: calc(1.6rem * calc(1 - var(--w-space-y-reverse)));\n margin-bottom: calc(1.6rem * var(--w-space-y-reverse))\n }\n\n .m-0 {\n margin: 0rem\n }\n\n .m-auto {\n margin: auto\n }\n\n .-mx-16 {\n margin-left: -1.6rem;\n margin-right: -1.6rem\n }\n\n .mx-0 {\n margin-left: 0rem;\n margin-right: 0rem\n }\n\n .mx-8 {\n margin-left: .8rem;\n margin-right: .8rem\n }\n\n .mx-auto {\n margin-left: auto;\n margin-right: auto\n }\n\n .-mb-1 {\n margin-bottom: -.1rem\n }\n\n .-ml-8 {\n margin-left: -.8rem\n }\n\n .-mr-1 {\n margin-right: -.1rem\n }\n\n .-mr-8 {\n margin-right: -.8rem\n }\n\n .-mt-2 {\n margin-top: -.2rem\n }\n\n .-mt-4 {\n margin-top: -.4rem\n }\n\n .last-child\\\\:mb-0 > :last-child, .mb-0 {\n margin-bottom: 0rem\n }\n\n .mb-32 {\n margin-bottom: 3.2rem\n }\n\n .ml-8 {\n margin-left: .8rem\n }\n\n .ml-auto {\n margin-left: auto\n }\n\n .mr-8 {\n margin-right: .8rem\n }\n\n .mt-16 {\n margin-top: 1.6rem\n }\n\n .mt-4 {\n margin-top: .4rem\n }\n\n .group:not(:first-child) .group-not-first\\\\:-ml-2 {\n margin-left: -.2rem\n }\n\n .last\\\\:mb-0:last-child {\n margin-bottom: 0rem\n }\n\n .last\\\\:mr-0:last-child {\n margin-right: 0rem\n }\n\n .m-\\\\[8px\\\\] {\n margin: 8px\n }\n\n .p-0 {\n padding: 0rem\n }\n\n .p-16 {\n padding: 1.6rem\n }\n\n .p-4 {\n padding: .4rem\n }\n\n .p-8 {\n padding: .8rem\n }\n\n .px-0 {\n padding-left: 0rem;\n padding-right: 0rem\n }\n\n .px-1 {\n padding-left: .1rem;\n padding-right: .1rem\n }\n\n .px-12 {\n padding-left: 1.2rem;\n padding-right: 1.2rem\n }\n\n .px-14 {\n padding-left: 1.4rem;\n padding-right: 1.4rem\n }\n\n .px-16 {\n padding-left: 1.6rem;\n padding-right: 1.6rem\n }\n\n .px-8 {\n padding-left: .8rem;\n padding-right: .8rem\n }\n\n .py-0 {\n padding-top: 0rem;\n padding-bottom: 0rem\n }\n\n .py-1 {\n padding-top: .1rem;\n padding-bottom: .1rem\n }\n\n .py-10 {\n padding-top: 1rem;\n padding-bottom: 1rem\n }\n\n .py-12 {\n padding-top: 1.2rem;\n padding-bottom: 1.2rem\n }\n\n .py-2 {\n padding-top: .2rem;\n padding-bottom: .2rem\n }\n\n .py-4 {\n padding-top: .4rem;\n padding-bottom: .4rem\n }\n\n .py-6 {\n padding-top: .6rem;\n padding-bottom: .6rem\n }\n\n .py-8 {\n padding-top: .8rem;\n padding-bottom: .8rem\n }\n\n .pb-0 {\n padding-bottom: 0rem\n }\n\n .pb-32 {\n padding-bottom: 3.2rem\n }\n\n .pb-4 {\n padding-bottom: .4rem\n }\n\n .pb-8 {\n padding-bottom: .8rem\n }\n\n .pl-0 {\n padding-left: 0rem\n }\n\n .pl-1 {\n padding-left: .1rem\n }\n\n .pl-12 {\n padding-left: 1.2rem\n }\n\n .pl-28 {\n padding-left: 2.8rem\n }\n\n .pl-4 {\n padding-left: .4rem\n }\n\n .pl-8 {\n padding-left: .8rem\n }\n\n .pr-12 {\n padding-right: 1.2rem\n }\n\n .pr-14 {\n padding-right: 1.4rem\n }\n\n .pr-2 {\n padding-right: .2rem\n }\n\n .pr-32 {\n padding-right: 3.2rem\n }\n\n .pr-40 {\n padding-right: 4rem\n }\n\n .pt-0 {\n padding-top: 0rem\n }\n\n .pt-1 {\n padding-top: .1rem\n }\n\n .pt-16 {\n padding-top: 1.6rem\n }\n\n .pt-24 {\n padding-top: 2.4rem\n }\n\n .pt-8 {\n padding-top: .8rem\n }\n\n .group\\\\/step:last-child .group-last\\\\/step\\\\:last\\\\:pb-0:last-child {\n padding-bottom: 0rem\n }\n\n .last\\\\:pb-1:last-child {\n padding-bottom: .1rem\n }\n\n .last\\\\:pr-1:last-child {\n padding-right: .1rem\n }\n\n .p-\\\\[8px\\\\] {\n padding: 8px\n }\n\n .px-\\\\[15px\\\\] {\n padding-left: 15px;\n padding-right: 15px\n }\n\n .px-\\\\[8px\\\\] {\n padding-left: 8px;\n padding-right: 8px\n }\n\n .py-\\\\[11px\\\\] {\n padding-top: 11px;\n padding-bottom: 11px\n }\n\n .py-\\\\[5px\\\\] {\n padding-top: 5px;\n padding-bottom: 5px\n }\n\n .py-\\\\[7px\\\\] {\n padding-top: 7px;\n padding-bottom: 7px\n }\n\n .pl-\\\\[var\\\\(--w-prefix-width\\\\,_40px\\\\)\\\\] {\n padding-left: var(--w-prefix-width, 40px)\n }\n\n .invisible {\n visibility: hidden\n }\n\n .backface-hidden {\n backface-visibility: hidden\n }\n\n .break-words {\n overflow-wrap: break-word\n }\n\n .before\\\\:content-\\\\[\\\\\"\u00E2\u20AC\u201C\\\\\"\\\\]:before {\n content: \"\u00E2\u20AC\u201C\"\n }\n\n .before\\\\:content-\\\\[\\\\\"\\\\\"\\\\]:before {\n content: \"\"\n }\n\n .cursor-default {\n cursor: default\n }\n\n .cursor-pointer {\n cursor: pointer\n }\n\n .antialiased {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n font-smoothing: grayscale\n }\n\n .font-bold {\n font-weight: 700\n }\n\n .before\\\\:font-bold:before {\n font-weight: 700\n }\n\n .font-normal {\n font-weight: 400\n }\n\n .pointer-events-auto {\n pointer-events: auto\n }\n\n .pointer-events-none {\n pointer-events: none\n }\n\n .before\\\\:pointer-events-none:before {\n pointer-events: none\n }\n\n .pb-safe-\\\\[32\\\\] {\n padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px))\n }\n\n .sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0\n }\n\n .touch-pan-y {\n touch-action: pan-y\n }\n\n .select-none {\n -webkit-user-select: none;\n user-select: none\n }\n\n .translate-x-20 {\n --w-translate-x: 2rem;\n 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))\n }\n\n .translate-z-0 {\n --w-translate-z: 0rem;\n 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))\n }\n\n .-rotate-180, .part-\\\\[w-icon-chevron-down-16-part\\\\]\\\\:-rotate-180::part(w-icon-chevron-down-16-part) {\n --w-rotate-x: 0;\n --w-rotate-y: 0;\n --w-rotate-z: 0;\n --w-rotate: -180deg;\n 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))\n }\n\n .part-\\\\[w-icon-chevron-up-16-part\\\\]\\\\:rotate-180::part(w-icon-chevron-up-16-part), .rotate-180 {\n --w-rotate-x: 0;\n --w-rotate-y: 0;\n --w-rotate-z: 0;\n --w-rotate: 180deg;\n 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))\n }\n\n .rotate-90 {\n --w-rotate-x: 0;\n --w-rotate-y: 0;\n --w-rotate-z: 0;\n --w-rotate: 90deg;\n 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))\n }\n\n .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 {\n 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))\n }\n\n .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 {\n 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))\n }\n\n .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 {\n transition-property: transform;\n transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n transition-duration: .15s\n }\n\n .transition-300 {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n transition-duration: .3s\n }\n\n .transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n transition-duration: .15s\n }\n\n .transition-colors {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n transition-duration: .15s\n }\n\n .transition-shadow {\n transition-property: box-shadow;\n transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n transition-duration: .15s\n }\n\n .before\\\\:transition-all:before {\n transition-property: all;\n transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n transition-duration: .15s\n }\n\n .duration-300 {\n transition-duration: .3s\n }\n\n .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) {\n transition-timing-function: cubic-bezier(.4, 0, .2, 1)\n }\n\n .text-m {\n font-size: var(--w-font-size-m);\n line-height: var(--w-line-height-m)\n }\n\n .text-s {\n font-size: var(--w-font-size-s);\n line-height: var(--w-line-height-s)\n }\n\n .text-xs {\n font-size: var(--w-font-size-xs);\n line-height: var(--w-line-height-xs)\n }\n\n .leading-m {\n line-height: var(--w-line-height-m)\n }\n\n .before\\\\:leading-xs:before {\n line-height: var(--w-line-height-xs)\n }\n\n .leading-\\\\[24\\\\] {\n line-height: 2.4rem\n }\n\n @media (max-width: 479.9px) {\n .lt-sm\\\\:rounded-b-0 {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0\n }\n }\n @media (min-width: 480px) {\n .sm\\\\:border-b-0 {\n border-bottom-width: 0\n }\n\n .sm\\\\:rounded-8 {\n border-radius: 8px\n }\n\n .sm\\\\:rounded-b-8 {\n border-bottom-left-radius: 8px;\n border-bottom-right-radius: 8px\n }\n\n .sm\\\\:gap-16 {\n gap: 1.6rem\n }\n\n .sm\\\\:place-content-center {\n place-content: center\n }\n\n .sm\\\\:place-items-center {\n place-items: center\n }\n\n .sm\\\\:h-24 {\n height: 2.4rem\n }\n\n .sm\\\\:min-h-48 {\n min-height: 4.8rem\n }\n\n .sm\\\\:w-24 {\n width: 2.4rem\n }\n\n .sm\\\\:min-h-\\\\[32px\\\\] {\n min-height: 32px\n }\n\n .sm\\\\:min-h-\\\\[44px\\\\] {\n min-height: 44px\n }\n\n .sm\\\\:min-h-\\\\[45\\\\] {\n min-height: 4.5rem\n }\n\n .sm\\\\:min-w-\\\\[32px\\\\] {\n min-width: 32px\n }\n\n .sm\\\\:min-w-\\\\[44px\\\\] {\n min-width: 44px\n }\n\n .sm\\\\:mx-0 {\n margin-left: 0rem;\n margin-right: 0rem\n }\n\n .sm\\\\:mx-16 {\n margin-left: 1.6rem;\n margin-right: 1.6rem\n }\n\n .sm\\\\:-ml-12 {\n margin-left: -1.2rem\n }\n\n .sm\\\\:-mr-12 {\n margin-right: -1.2rem\n }\n\n .sm\\\\:-mt-8 {\n margin-top: -.8rem\n }\n\n .sm\\\\:px-32 {\n padding-left: 3.2rem;\n padding-right: 3.2rem\n }\n\n .sm\\\\:py-0 {\n padding-top: 0rem;\n padding-bottom: 0rem\n }\n\n .sm\\\\:pb-32 {\n padding-bottom: 3.2rem\n }\n\n .sm\\\\:pt-24 {\n padding-top: 2.4rem\n }\n\n .sm\\\\:pt-32 {\n padding-top: 3.2rem\n }\n }\n @media (min-width: 768px) {\n .md\\\\:block {\n display: block\n }\n\n .md\\\\:hidden {\n display: none\n }\n }\n `;\n", "import { css } from 'lit'; export const styles = css`*,: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}.focus\\\\:\\\\[--w-outline-offset\\\\:-2px\\\\]:focus{--w-outline-offset:-2px}.bg-transparent{background-color:#0000}.rounded-4{border-radius:4px}.block{display:block}.flex{display:flex}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.justify-center{justify-content:center}.absolute{position:absolute}.relative{position:relative}.static{position:static}.s-text{color:var(--w-s-color-text)}.w-40{width:4rem}.w-max{width:max-content}.pb-0{padding-bottom:0}.pl-12{padding-left:1.2rem}.pr-12{padding-right:1.2rem}.cursor-default{cursor:default}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:grayscale}.font-bold{font-weight:700}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}`;\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/search/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/search/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/search/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/search/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/search/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconSearch16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Magnifying glass`, id: 'icon.title.search', comment: 'Title for search icon' });\n \n return html`<svg xmlns=\"http://www.w3.org/2000/svg\"width=\"16\"height=\"16\"fill=\"none\"viewBox=\"0 0 16 16\" part=\"w-icon-search-16-part\">${unsafeStatic(`<title>${title}</title>`)}<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M8.905 12.102A6.042 6.042 0 1 0 4.18.981a6.042 6.042 0 0 0 4.726 11.121Zm1.909-1.289L15.5 15.5\"></path></svg>`; }\n}\nif (!customElements.get('w-icon-search-16')) {\n customElements.define('w-icon-search-16', IconSearch16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.search\\\":[\\\"Forst\u00F8rrelsesglass\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.search\\\":[\\\"Magnifying glass\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.search\\\":[\\\"Suurennuslasi\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.search\\\":[\\\"Forst\u00F8rrelsesglas\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.search\\\":[\\\"F\u00F6rstoringsglas\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "import { unraw } from 'unraw';\nimport { compileMessage } from '@lingui/message-utils/compileMessage';\n\nconst isString = (s) => typeof s === \"string\";\nconst isFunction = (f) => typeof f === \"function\";\n\nconst cache = /* @__PURE__ */ new Map();\nconst defaultLocale = \"en\";\nfunction normalizeLocales(locales) {\n const out = Array.isArray(locales) ? locales : [locales];\n return [...out, defaultLocale];\n}\nfunction date(locales, value, format) {\n const _locales = normalizeLocales(locales);\n if (!format) {\n format = \"default\";\n }\n let o;\n if (typeof format === \"string\") {\n o = {\n day: \"numeric\",\n month: \"short\",\n year: \"numeric\"\n };\n switch (format) {\n case \"full\":\n o.weekday = \"long\";\n case \"long\":\n o.month = \"long\";\n break;\n case \"short\":\n o.month = \"numeric\";\n break;\n }\n } else {\n o = format;\n }\n const formatter = getMemoized(\n () => cacheKey(\"date\", _locales, format),\n () => new Intl.DateTimeFormat(_locales, o)\n );\n return formatter.format(isString(value) ? new Date(value) : value);\n}\nfunction time(locales, value, format) {\n let o;\n if (!format) {\n format = \"default\";\n }\n if (typeof format === \"string\") {\n o = {\n second: \"numeric\",\n minute: \"numeric\",\n hour: \"numeric\"\n };\n switch (format) {\n case \"full\":\n case \"long\":\n o.timeZoneName = \"short\";\n break;\n case \"short\":\n delete o.second;\n }\n } else {\n o = format;\n }\n return date(locales, value, o);\n}\nfunction number(locales, value, format) {\n const _locales = normalizeLocales(locales);\n const formatter = getMemoized(\n () => cacheKey(\"number\", _locales, format),\n () => new Intl.NumberFormat(_locales, format)\n );\n return formatter.format(value);\n}\nfunction plural(locales, ordinal, value, { offset = 0, ...rules }) {\n const _locales = normalizeLocales(locales);\n const plurals = ordinal ? getMemoized(\n () => cacheKey(\"plural-ordinal\", _locales),\n () => new Intl.PluralRules(_locales, { type: \"ordinal\" })\n ) : getMemoized(\n () => cacheKey(\"plural-cardinal\", _locales),\n () => new Intl.PluralRules(_locales, { type: \"cardinal\" })\n );\n return rules[value] ?? rules[plurals.select(value - offset)] ?? rules.other;\n}\nfunction getMemoized(getKey, construct) {\n const key = getKey();\n let formatter = cache.get(key);\n if (!formatter) {\n formatter = construct();\n cache.set(key, formatter);\n }\n return formatter;\n}\nfunction cacheKey(type, locales, options) {\n const localeKey = locales.join(\"-\");\n return `${type}-${localeKey}-${JSON.stringify(options)}`;\n}\n\nconst formats = {\n __proto__: null,\n date: date,\n defaultLocale: defaultLocale,\n number: number,\n plural: plural,\n time: time\n};\n\nconst UNICODE_REGEX = /\\\\u[a-fA-F0-9]{4}|\\\\x[a-fA-F0-9]{2}/;\nconst OCTOTHORPE_PH = \"%__lingui_octothorpe__%\";\nconst getDefaultFormats = (locale, passedLocales, formats = {}) => {\n const locales = passedLocales || locale;\n const style = (format) => {\n if (typeof format === \"object\")\n return format;\n return formats[format];\n };\n const replaceOctothorpe = (value, message) => {\n const numberFormat = Object.keys(formats).length ? style(\"number\") : void 0;\n const valueStr = number(locales, value, numberFormat);\n return message.replace(new RegExp(OCTOTHORPE_PH, \"g\"), valueStr);\n };\n return {\n plural: (value, cases) => {\n const { offset = 0 } = cases;\n const message = plural(locales, false, value, cases);\n return replaceOctothorpe(value - offset, message);\n },\n selectordinal: (value, cases) => {\n const { offset = 0 } = cases;\n const message = plural(locales, true, value, cases);\n return replaceOctothorpe(value - offset, message);\n },\n select: selectFormatter,\n number: (value, format) => number(\n locales,\n value,\n style(format) || { style: format }\n ),\n date: (value, format) => date(locales, value, style(format) || format),\n time: (value, format) => time(locales, value, style(format) || format)\n };\n};\nconst selectFormatter = (value, rules) => rules[value] ?? rules.other;\nfunction interpolate(translation, locale, locales) {\n return (values = {}, formats) => {\n const formatters = getDefaultFormats(locale, locales, formats);\n const formatMessage = (tokens, replaceOctothorpe = false) => {\n if (!Array.isArray(tokens))\n return tokens;\n return tokens.reduce((message, token) => {\n if (token === \"#\" && replaceOctothorpe) {\n return message + OCTOTHORPE_PH;\n }\n if (isString(token)) {\n return message + token;\n }\n const [name, type, format] = token;\n let interpolatedFormat = {};\n if (type === \"plural\" || type === \"selectordinal\" || type === \"select\") {\n Object.entries(format).forEach(\n ([key, value2]) => {\n interpolatedFormat[key] = formatMessage(\n value2,\n type === \"plural\" || type === \"selectordinal\"\n );\n }\n );\n } else {\n interpolatedFormat = format;\n }\n let value;\n if (type) {\n const formatter = formatters[type];\n value = formatter(values[name], interpolatedFormat);\n } else {\n value = values[name];\n }\n if (value == null) {\n return message;\n }\n return message + value;\n }, \"\");\n };\n const result = formatMessage(translation);\n if (isString(result) && UNICODE_REGEX.test(result)) {\n return unraw(result);\n }\n if (isString(result))\n return result;\n return result ? String(result) : \"\";\n };\n}\n\nvar __defProp$1 = Object.defineProperty;\nvar __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __publicField$1 = (obj, key, value) => {\n __defNormalProp$1(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n return value;\n};\nclass EventEmitter {\n constructor() {\n __publicField$1(this, \"_events\", {});\n }\n on(event, listener) {\n var _a;\n (_a = this._events)[event] ?? (_a[event] = []);\n this._events[event].push(listener);\n return () => this.removeListener(event, listener);\n }\n removeListener(event, listener) {\n const maybeListeners = this._getListeners(event);\n if (!maybeListeners)\n return;\n const index = maybeListeners.indexOf(listener);\n if (~index)\n maybeListeners.splice(index, 1);\n }\n emit(event, ...args) {\n const maybeListeners = this._getListeners(event);\n if (!maybeListeners)\n return;\n maybeListeners.map((listener) => listener.apply(this, args));\n }\n _getListeners(event) {\n const maybeListeners = this._events[event];\n return Array.isArray(maybeListeners) ? maybeListeners : false;\n }\n}\n\nvar __defProp = Object.defineProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __publicField = (obj, key, value) => {\n __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n return value;\n};\nclass I18n extends EventEmitter {\n constructor(params) {\n super();\n __publicField(this, \"_locale\", \"\");\n __publicField(this, \"_locales\");\n __publicField(this, \"_localeData\", {});\n __publicField(this, \"_messages\", {});\n __publicField(this, \"_missing\");\n __publicField(this, \"_messageCompiler\");\n /**\n * Alias for {@see I18n._}\n */\n __publicField(this, \"t\", this._.bind(this));\n if (process.env.NODE_ENV !== \"production\") {\n this.setMessagesCompiler(compileMessage);\n }\n if (params.missing != null)\n this._missing = params.missing;\n if (params.messages != null)\n this.load(params.messages);\n if (params.localeData != null)\n this.loadLocaleData(params.localeData);\n if (typeof params.locale === \"string\" || params.locales) {\n this.activate(params.locale ?? defaultLocale, params.locales);\n }\n }\n get locale() {\n return this._locale;\n }\n get locales() {\n return this._locales;\n }\n get messages() {\n return this._messages[this._locale] ?? {};\n }\n /**\n * @deprecated this has no effect. Please remove this from the code. Deprecated in v4\n */\n get localeData() {\n return this._localeData[this._locale] ?? {};\n }\n _loadLocaleData(locale, localeData) {\n const maybeLocaleData = this._localeData[locale];\n if (!maybeLocaleData) {\n this._localeData[locale] = localeData;\n } else {\n Object.assign(maybeLocaleData, localeData);\n }\n }\n /**\n * Registers a `MessageCompiler` to enable the use of uncompiled catalogs at runtime.\n *\n * In production builds, the `MessageCompiler` is typically excluded to reduce bundle size.\n * By default, message catalogs should be precompiled during the build process. However,\n * if you need to compile catalogs at runtime, you can use this method to set a message compiler.\n *\n * Example usage:\n *\n * ```ts\n * import { compileMessage } from \"@lingui/message-utils/compileMessage\";\n *\n * i18n.setMessagesCompiler(compileMessage);\n * ```\n */\n setMessagesCompiler(compiler) {\n this._messageCompiler = compiler;\n return this;\n }\n /**\n * @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Deprecated in v4\n */\n loadLocaleData(localeOrAllData, localeData) {\n if (typeof localeOrAllData === \"string\") {\n this._loadLocaleData(localeOrAllData, localeData);\n } else {\n Object.keys(localeOrAllData).forEach(\n (locale) => this._loadLocaleData(locale, localeOrAllData[locale])\n );\n }\n this.emit(\"change\");\n }\n _load(locale, messages) {\n const maybeMessages = this._messages[locale];\n if (!maybeMessages) {\n this._messages[locale] = messages;\n } else {\n Object.assign(maybeMessages, messages);\n }\n }\n load(localeOrMessages, messages) {\n if (typeof localeOrMessages == \"string\" && typeof messages === \"object\") {\n this._load(localeOrMessages, messages);\n } else {\n Object.entries(localeOrMessages).forEach(\n ([locale, messages2]) => this._load(locale, messages2)\n );\n }\n this.emit(\"change\");\n }\n /**\n * @param options {@link LoadAndActivateOptions}\n */\n loadAndActivate({ locale, locales, messages }) {\n this._locale = locale;\n this._locales = locales || void 0;\n this._messages[this._locale] = messages;\n this.emit(\"change\");\n }\n activate(locale, locales) {\n if (process.env.NODE_ENV !== \"production\") {\n if (!this._messages[locale]) {\n console.warn(`Messages for locale \"${locale}\" not loaded.`);\n }\n }\n this._locale = locale;\n this._locales = locales;\n this.emit(\"change\");\n }\n _(id, values, options) {\n if (!this.locale) {\n throw new Error(\n \"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.\"\n );\n }\n let message = options?.message;\n if (!id) {\n id = \"\";\n }\n if (!isString(id)) {\n values = id.values || values;\n message = id.message;\n id = id.id;\n }\n const messageForId = this.messages[id];\n const messageMissing = messageForId === void 0;\n const missing = this._missing;\n if (missing && messageMissing) {\n return isFunction(missing) ? missing(this._locale, id) : missing;\n }\n if (messageMissing) {\n this.emit(\"missing\", { id, locale: this._locale });\n }\n let translation = messageForId || message || id;\n if (isString(translation)) {\n if (this._messageCompiler) {\n translation = this._messageCompiler(translation);\n } else {\n console.warn(`Uncompiled message detected! Message:\n\n> ${translation}\n\nThat means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.\nICU features such as interpolation and plurals will not work properly for that message. \n\nPlease compile your catalog first. \n`);\n }\n }\n if (isString(translation) && UNICODE_REGEX.test(translation))\n return JSON.parse(`\"${translation}\"`);\n if (isString(translation))\n return translation;\n return interpolate(\n translation,\n this._locale,\n this._locales\n )(values, options?.formats);\n }\n date(value, format) {\n return date(this._locales || this._locale, value, format);\n }\n number(value, format) {\n return number(this._locales || this._locale, value, format);\n }\n}\nfunction setupI18n(params = {}) {\n return new I18n(params);\n}\n\nconst i18n = setupI18n();\n\nexport { I18n, formats, i18n, setupI18n };\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/close/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/close/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/close/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/close/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/close/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconClose16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Cross`, id: 'icon.title.close', comment: 'Title for close icon' });\n \n return html`<svg xmlns=\"http://www.w3.org/2000/svg\"width=\"16\"height=\"16\"fill=\"none\"viewBox=\"0 0 16 16\" part=\"w-icon-close-16-part\">${unsafeStatic(`<title>${title}</title>`)}<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"m12.5 3.5-9 9m0-9 9 9\"></path></svg>`; }\n}\nif (!customElements.get('w-icon-close-16')) {\n customElements.define('w-icon-close-16', IconClose16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.close\\\":[\\\"Kryss\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.close\\\":[\\\"Cross\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.close\\\":[\\\"Rasti\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.close\\\":[\\\"Kryds\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.close\\\":[\\\"Kryss\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "// @warp-css;\n\nimport { css, html, LitElement } from 'lit';\n\nimport { classNames } from '@chbphone55/classnames';\nimport { property } from 'lit/decorators.js';\n\nimport '@warp-ds/icons/elements/info-16';\nimport '@warp-ds/icons/elements/warning-16';\nimport '@warp-ds/icons/elements/error-16';\nimport '@warp-ds/icons/elements/success-16';\nimport { reset } from '../styles.js';\n\nimport { styles } from './styles.js';\n\nconst ccAlert = {\n wrapper: 'flex p-16 border border-l-4 rounded-4 s-text',\n willChangeHeight: 'will-change-height',\n textWrapper: 'last-child:mb-0 text-s',\n title: 'text-s',\n icon: 'w-16 mr-8 min-w-16',\n negative: 's-border-negative-subtle s-border-l-negative s-bg-negative-subtle',\n negativeIcon: 's-icon-negative',\n positive: 's-border-positive-subtle s-border-l-positive s-bg-positive-subtle',\n positiveIcon: 's-icon-positive',\n warning: 's-border-warning-subtle s-border-l-warning s-bg-warning-subtle',\n warningIcon: 's-icon-warning',\n info: 's-border-info-subtle s-border-l-info s-bg-info-subtle',\n infoIcon: 's-icon-info',\n};\n\ntype AlertVariants = 'negative' | 'positive' | 'warning' | 'info';\n\nconst alertVariants = {\n negative: 'negative',\n positive: 'positive',\n warning: 'warning',\n info: 'info',\n};\n\n/**\n * Alert is an inline component used for displaying different types of messages.\n *\n * For accessibility reasons, alert should appear close to the element that triggered it.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/feedback-alert--docs)\n */\nclass WarpAlert extends LitElement {\n @property({ reflect: true })\n variant: AlertVariants = 'info';\n\n @property({ type: Boolean, reflect: true })\n show: boolean = true;\n\n @property({ reflect: true })\n role: string = 'alert';\n\n constructor() {\n super();\n this.show = false;\n this.role = 'alert';\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (!this.variant || !alertVariants[this.variant]) {\n throw new Error(`Invalid 'variant' attribute. Set its value to one of the following:\\nnegative, positive, warning, info.`);\n }\n }\n\n /** @internal */\n get _wrapperClasses() {\n return classNames([ccAlert.wrapper, ccAlert[this.variant]]);\n }\n\n /** @internal */\n get _iconClasses() {\n const activeIconClassNames = ccAlert[`${this.variant}Icon`];\n\n return classNames([ccAlert.icon, activeIconClassNames]);\n }\n\n // Slotted elements remain in lightDOM which allows for control of their style outside of shadowDOM.\n // ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,\n // so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.\n // https://stackoverflow.com/a/61631668\n static styles = [\n reset,\n styles,\n css`\n :host {\n display: block;\n }\n\n ::slotted(:first-child) {\n margin-top: 0px;\n }\n\n ::slotted(:last-child) {\n margin-bottom: 0px !important;\n }\n `,\n ];\n\n /** @internal */\n get _icon() {\n if (this.variant === alertVariants.info) {\n return html` <w-icon-info-16></w-icon-info-16>`;\n }\n if (this.variant === alertVariants.warning) {\n return html` <w-icon-warning-16></w-icon-warning-16>`;\n }\n if (this.variant === alertVariants.negative) {\n return html` <w-icon-error-16></w-icon-error-16>`;\n }\n if (this.variant === alertVariants.positive) {\n return html` <w-icon-success-16></w-icon-success-16>`;\n } else return '';\n }\n\n render() {\n return html`\n <w-expand-transition ?show=${this.show}>\n <div role=${this.role} class=${this._wrapperClasses}>\n <div class=${this._iconClasses}>${this._icon}</div>\n <div class=${ccAlert.textWrapper}>\n <slot></slot>\n </div>\n </div>\n </w-expand-transition>\n `;\n }\n}\n\nif (!customElements.get('w-alert')) {\n customElements.define('w-alert', WarpAlert);\n}\n\nexport { WarpAlert };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-alert': WarpAlert;\n }\n}\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/info/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/info/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/info/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/info/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/info/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconInfo16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Information circle`, id: 'icon.title.info', comment: 'Title for info icon' });\n \n 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>`; }\n}\nif (!customElements.get('w-icon-info-16')) {\n customElements.define('w-icon-info-16', IconInfo16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.info\\\":[\\\"Informasjonssirkel\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.info\\\":[\\\"Information circle\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.info\\\":[\\\"Ympyr\u00E4, jonka sis\u00E4ll\u00E4 on i-kirjain\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.info\\\":[\\\"Informationscirkel\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.info\\\":[\\\"Informationscirkel\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/warning/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/warning/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/warning/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/warning/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/warning/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconWarning16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Warning triangle with exclamation point`, id: 'icon.title.warning', comment: 'Title for warning icon' });\n \n return html`<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\">${unsafeStatic(`<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>`; }\n}\nif (!customElements.get('w-icon-warning-16')) {\n customElements.define('w-icon-warning-16', IconWarning16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.warning\\\":[\\\"Varseltrekant med utropstegn\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.warning\\\":[\\\"Warning triangle with exclamation point\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.warning\\\":[\\\"Varoituskolmio, jonka sis\u00E4ll\u00E4 on huutomerkki\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.warning\\\":[\\\"Advarselstrekant med et udr\u00E5bstegn\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.warning\\\":[\\\"Varningstriangel med utropstecken\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/error/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/error/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/error/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/error/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/error/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconError16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Octagon with exclamation point`, id: 'icon.title.error', comment: 'Title for error icon' });\n \n return html`<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\">${unsafeStatic(`<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>`; }\n}\nif (!customElements.get('w-icon-error-16')) {\n customElements.define('w-icon-error-16', IconError16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.error\\\":[\\\"\u00C5ttekant med utropstegn\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.error\\\":[\\\"Octagon with exclamation point\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.error\\\":[\\\"Kahdeksankulmio, jonka sis\u00E4ll\u00E4 on huutomerkki\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.error\\\":[\\\"Ottekant med et udr\u00E5bstegn\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.error\\\":[\\\"Oktagon med utropstecken\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/success/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/success/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/success/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/success/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/success/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconSuccess16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Circle with checkmark`, id: 'icon.title.success', comment: 'Title for success icon' });\n \n return html`<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\">${unsafeStatic(`<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>`; }\n}\nif (!customElements.get('w-icon-success-16')) {\n customElements.define('w-icon-success-16', IconSuccess16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.success\\\":[\\\"Sirkel med sjekkmerke\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.success\\\":[\\\"Circle with checkmark\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.success\\\":[\\\"Ympyr\u00E4, jonka sis\u00E4ll\u00E4 on valintamerkki\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.success\\\":[\\\"Cirkel med et flueben\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.success\\\":[\\\"Cirkel med bock\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "import { css } from 'lit'; export const styles = css`*,: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)}`;\n", "import { css, html, nothing } from 'lit';\n\nimport { classNames } from '@chbphone55/classnames';\nimport { i18n } from '@lingui/core';\nimport { opposites, directions, arrowDirectionClassname, useRecompute as recompute } from '@warp-ds/core/attention';\nimport { attention as ccAttention } from '@warp-ds/css/component-classes';\nimport WarpElement from '@warp-ds/elements-core';\nimport { ifDefined } from 'lit/directives/if-defined.js';\n\nimport { activateI18n } from '../i18n';\nimport { kebabCaseAttributes, generateRandomId } from '../utils/index.js';\n\nimport { messages as daMessages } from './locales/da/messages.mjs';\nimport { messages as enMessages } from './locales/en/messages.mjs';\nimport { messages as fiMessages } from './locales/fi/messages.mjs';\nimport { messages as nbMessages } from './locales/nb/messages.mjs';\nimport { messages as svMessages } from './locales/sv/messages.mjs';\n\nimport '@warp-ds/icons/elements/close-16';\n\nclass WarpAttention extends kebabCaseAttributes(WarpElement) {\n static properties = {\n // Whether Attention element should be visible.\n show: { type: Boolean, reflect: true },\n // Placement according to the target element\n // Arrow would be on the opposite side of this position\n placement: { type: String, reflect: true },\n // Whether Attention element is rendered as a tooltip\n tooltip: { type: Boolean, reflect: true },\n // Whether Attention element is rendered as an inline callout\n callout: { type: Boolean, reflect: true },\n // Whether Attention element is rendered as a popover\n popover: { type: Boolean, reflect: true },\n // Whether Attention element is rendered as a highlight\n highlight: { type: Boolean, reflect: true },\n // Render Attention element with a close button\n canClose: { type: Boolean, reflect: true },\n // Render Attention element without an arrow\n noArrow: { type: Boolean, reflect: true },\n // Distance from which to offset the attentionEl from the targetEl vertically\n distance: { type: Number, reflect: true },\n // Distance from which to offset the attentionEl along its targetEl horizontally\n skidding: { type: Number, reflect: true },\n // Whether Attention element should flip its placement in order to keep it in view\n flip: { type: Boolean, reflect: true },\n // Whether Attention element should ignore cross axis overflow when flip is enabled\n crossAxis: { type: Boolean, reflect: true },\n // Choose which preferred placements the Attention element should flip to\n fallbackPlacements: { type: Array, reflect: true },\n };\n\n static styles = [\n WarpElement.styles,\n css`\n #attention {\n position: absolute;\n z-index: 50;\n visibility: var(--attention-visibility);\n display: var(--attention-display);\n }\n\n :host([popover]:not(:popover-open):not(dialog[open])) {\n display: contents;\n }\n `,\n ];\n\n constructor() {\n super();\n activateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n this.handleDone = this.handleDone.bind(this);\n\n this.show = false;\n this.placement = 'bottom';\n this.tooltip = false;\n this.callout = false;\n this.popover = false;\n this.highlight = false;\n this.canClose = false;\n this.noArrow = false;\n this.distance = 8;\n this.skidding = 0;\n this.flip = false;\n this.crossAxis = false;\n this._initialPlacement = this.placement;\n this._actualDirection = this.placement;\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (this.placement && !Object.keys(opposites).includes(this.placement)) {\n throw new Error(`Invalid \"placement\" attribute. Set its value to one of the following:\\n${JSON.stringify(Object.keys(opposites))}`);\n }\n\n if (this.fallbackPlacements && !this.fallbackPlacements.every((fallbackPlacement) => directions.includes(fallbackPlacement))) {\n throw new Error(\n `Invalid \"fallbackPlacements\" attribute. Set its value to an array with one or more of the following:\\n${JSON.stringify(directions)}`,\n );\n }\n\n // Fix FOUC effect issues\n setTimeout(() => {\n this.requestUpdate();\n this.handleDone(); // Run handleDone initially, to compute correct arrow position etc. directly.\n }, 0);\n\n if (!this.callout) {\n window.addEventListener('click', this.handleDone);\n window.addEventListener('scroll', this.handleDone);\n window.addEventListener('resize', this.handleDone);\n window.addEventListener('touch', this.handleDone);\n }\n\n if (this.tooltip) {\n window.addEventListener('mouseover', this.handleDone);\n window.addEventListener('mouseout', this.handleDone);\n }\n }\n\n disconnectedCallback() {\n window.removeEventListener('click', this.handleDone);\n window.removeEventListener('scroll', this.handleDone);\n window.removeEventListener('resize', this.handleDone);\n window.removeEventListener('touch', this.handleDone);\n window.removeEventListener('mouseover', this.handleDone);\n window.removeEventListener('mouseout', this.handleDone);\n\n super.disconnectedCallback();\n }\n\n handleDone() {\n window.requestAnimationFrame(() => {\n if (this.show && this._targetEl && this._attentionEl) {\n recompute(this.attentionState).then((state) => {\n this._actualDirection = state?.actualDirection;\n });\n } else {\n this._actualDirection = this._initialPlacement;\n }\n });\n }\n\n /** @internal */\n get _actualDirection() {\n return this.placement;\n }\n\n /** @internal */\n set _actualDirection(v) {\n this.placement = v;\n }\n\n /** @internal */\n get _arrowEl() {\n return this.renderRoot.querySelector('#arrow');\n }\n\n /** @internal */\n get _arrowDirection() {\n return opposites[this._actualDirection];\n }\n\n /** @internal */\n get _arrowClasses() {\n return classNames([\n ccAttention.arrowBase,\n this._activeVariantClasses.arrow,\n ccAttention[`arrowDirection${arrowDirectionClassname(this._arrowDirection)}`],\n ]);\n }\n\n /** @internal */\n get _arrowHtml() {\n return this.noArrow ? '' : html`<div id=\"arrow\" class=\"${this._arrowClasses}\"></div>`;\n }\n\n /** @internal */\n get _activeVariantClasses() {\n const variantProps = {\n callout: this.callout,\n popover: this.popover,\n tooltip: this.tooltip,\n highlight: this.highlight,\n };\n\n const activeVariant = Object.keys(variantProps).find((b) => !!variantProps[b]) || '';\n\n return {\n wrapper: ccAttention[activeVariant],\n arrow: ccAttention[`arrow${activeVariant.charAt(0).toUpperCase() + activeVariant.slice(1)}`],\n };\n }\n\n /** @internal */\n get _attentionEl() {\n return this.renderRoot.querySelector('#attention');\n }\n\n /** @internal */\n get _targetEl() {\n const targetSlot = this.renderRoot?.querySelector(\"slot[name='target']\");\n return targetSlot ? targetSlot.assignedNodes()[0] : null;\n }\n\n /** @internal */\n get _messageEl() {\n const messageSlot = this.renderRoot.querySelector(\"slot[name='message']\");\n return messageSlot ? messageSlot.assignedNodes()[0] : null;\n }\n\n /** @internal */\n get _wrapperClasses() {\n return classNames([ccAttention.base, this._activeVariantClasses.wrapper]);\n }\n\n /** @internal */\n get _ariaClose() {\n return i18n._({\n id: 'attention.aria.close',\n message: 'Close',\n comment: 'Aria label for the close button in attention',\n });\n }\n\n /** @internal */\n get _closeBtnHtml() {\n return html`\n <button aria-label=\"${this._ariaClose}\" @click=\"${this.close}\" @keydown=${this.keypressed} class=\"${ccAttention.closeBtn}\">\n <w-icon-close-16></w-icon-close-16>\n </button>\n `;\n }\n\n updated() {\n if (!this.callout) {\n this._attentionEl.style.setProperty('--attention-visibility', this.show ? '' : 'hidden');\n }\n\n if (!this.tooltip) {\n this._attentionEl.style.setProperty('--attention-display', this.show ? 'flex' : 'none');\n }\n\n this.attentionState = {\n isShowing: this.show,\n isCallout: this.callout,\n actualDirection: this._actualDirection,\n directionName: this.placement,\n arrowEl: this._arrowEl,\n attentionEl: this._attentionEl,\n targetEl: this._targetEl,\n noArrow: this.noArrow,\n distance: this.distance,\n skidding: this.skidding,\n flip: this.flip,\n crossAxis: this.crossAxis,\n fallbackPlacements: this.fallbackPlacements,\n };\n\n // We need to recompute here as well if this._actualDirection gets updated immediately when this.show is true (in this.handleDone()).\n // Otherwise this._arrowDirection will get this._initialPlacement's value and will only be updated on next click/scroll/resize\n recompute(this.attentionState);\n }\n\n pointingAtDirection() {\n switch (opposites[this._actualDirection]) {\n case 'top-start':\n case 'top':\n case 'top-end':\n return i18n._({\n id: 'attention.aria.pointingUp',\n message: 'pointing up',\n comment: 'Default screenreader message for top direction in the attention component',\n });\n case 'right-start':\n case 'right':\n case 'right-end':\n return i18n._({\n id: 'attention.aria.pointingRight',\n message: 'pointing right',\n comment: 'Default screenreader message for right direction in the attention component',\n });\n case 'bottom-start':\n case 'bottom':\n case 'bottom-end':\n return i18n._({\n id: 'attention.aria.pointingDown',\n message: 'pointing down',\n comment: 'Default screenreader message for bottom direction in the attention component',\n });\n case 'left-start':\n case 'left':\n case 'left-end':\n return i18n._({\n id: 'attention.aria.pointingLeft',\n message: 'pointing left',\n comment: 'Default screenreader message for left direction in the attention component',\n });\n default:\n return '';\n }\n }\n\n activeAttentionType() {\n switch (true) {\n case this.tooltip:\n return i18n._({\n id: 'attention.aria.tooltip',\n message: 'tooltip',\n comment: 'Default screenreader message for tooltip in the attention component',\n });\n case this.callout:\n return i18n._({\n id: 'attention.aria.callout',\n message: 'callout speech bubble',\n comment: 'Default screenreader message for callout speech bubble in the attention component',\n });\n case this.popover:\n return i18n._({\n id: 'attention.aria.popover',\n message: 'popover speech bubble',\n comment: 'Default screenreader message for popover speech bubble in the attention component',\n });\n case this.highlight:\n return i18n._({\n id: 'attention.aria.highlight',\n message: 'highlighted speech bubble',\n comment: 'Default screenreader message for highlighted speech bubble in the attention component',\n });\n default:\n return '';\n }\n }\n\n defaultAriaLabel() {\n return `${this.activeAttentionType()} ${!this.noArrow ? this.pointingAtDirection() : ''}`;\n }\n setAriaLabels() {\n if (this._targetEl && !this._targetEl.getAttribute('aria-details')) {\n const attentionMessageId = this._messageEl.id || (this._messageEl.id = generateRandomId());\n this._targetEl.setAttribute('aria-details', attentionMessageId);\n }\n }\n\n firstUpdated() {\n this._initialPlacement = this.placement;\n this.setAriaLabels();\n\n // Attention of \"callout\" type should always be used inline\n if (this.callout) {\n this._attentionEl.style.position = 'relative';\n }\n }\n\n close() {\n const event = new CustomEvent('close', {\n bubbles: true,\n composed: true,\n });\n this.updateComplete.then(() => this.dispatchEvent(event));\n }\n\n keypressed(e) {\n if (!this.canClose) return;\n if (e.key === 'Escape') {\n e.preventDefault();\n this.close();\n }\n }\n\n render() {\n if (!this.callout && this._targetEl === undefined) return html``;\n return html`\n <div class=${ifDefined(this.className ? this.className : undefined)}>\n ${this.placement === 'right-start' ||\n this.placement === 'right' ||\n this.placement === 'right-end' ||\n this.placement === 'bottom-start' ||\n this.placement === 'bottom' ||\n this.placement === 'bottom-end' // Attention's and its arrow's visual position should be reflected in the DOM\n ? html`\n <slot name=\"target\"></slot>\n\n <div id=\"attention\" class=\"${this._wrapperClasses}\">\n <div role=\"${this.tooltip ? 'tooltip' : 'img'}\" aria-label=\"${this.defaultAriaLabel()}\">${this._arrowHtml}</div>\n <slot name=\"message\"></slot>\n ${this.canClose ? this._closeBtnHtml : nothing}\n </div>\n `\n : html`\n <div id=\"attention\" class=\"${this._wrapperClasses}\">\n <slot name=\"message\"></slot>\n <div role=\"${this.tooltip ? 'tooltip' : 'img'}\" aria-label=\"${this.defaultAriaLabel()}\">${this._arrowHtml}</div>\n ${this.canClose ? this._closeBtnHtml : nothing}\n </div>\n <slot name=\"target\"></slot>\n `}\n </div>\n `;\n }\n}\n\nif (!customElements.get('w-attention')) {\n customElements.define('w-attention', WarpAttention);\n}\n\nexport { WarpAttention };\n", "/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n x: v,\n y: v\n});\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nconst oppositeAlignmentMap = {\n start: 'end',\n end: 'start'\n};\nfunction clamp(start, value, end) {\n return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\nconst yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);\nfunction getSideAxis(placement) {\n return yAxisSides.has(getSide(placement)) ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const length = getAxisLength(alignmentAxis);\n let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);\n}\nconst lrPlacement = ['left', 'right'];\nconst rlPlacement = ['right', 'left'];\nconst tbPlacement = ['top', 'bottom'];\nconst btPlacement = ['bottom', 'top'];\nfunction getSideList(side, isStart, rtl) {\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rlPlacement : lrPlacement;\n return isStart ? lrPlacement : rlPlacement;\n case 'left':\n case 'right':\n return isStart ? tbPlacement : btPlacement;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\nfunction getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);\n}\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\nfunction getPaddingObject(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\nfunction rectToClientRect(rect) {\n const {\n x,\n y,\n width,\n height\n } = rect;\n return {\n width,\n height,\n top: y,\n left: x,\n right: x + width,\n bottom: y + height,\n x,\n y\n };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n", "import { getSideAxis, getAlignmentAxis, getAxisLength, getSide, getAlignment, evaluate, getPaddingObject, rectToClientRect, min, clamp, placements, getAlignmentSides, getOppositeAlignmentPlacement, getOppositePlacement, getExpandedPlacements, getOppositeAxisPlacements, sides, max, getOppositeAxis } from '@floating-ui/utils';\nexport { rectToClientRect } from '@floating-ui/utils';\n\nfunction computeCoordsFromPlacement(_ref, placement, rtl) {\n let {\n reference,\n floating\n } = _ref;\n const sideAxis = getSideAxis(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const alignLength = getAxisLength(alignmentAxis);\n const side = getSide(placement);\n const isVertical = sideAxis === 'y';\n const commonX = reference.x + reference.width / 2 - floating.width / 2;\n const commonY = reference.y + reference.height / 2 - floating.height / 2;\n const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;\n let coords;\n switch (side) {\n case 'top':\n coords = {\n x: commonX,\n y: reference.y - floating.height\n };\n break;\n case 'bottom':\n coords = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n case 'right':\n coords = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n case 'left':\n coords = {\n x: reference.x - floating.width,\n y: commonY\n };\n break;\n default:\n coords = {\n x: reference.x,\n y: reference.y\n };\n }\n switch (getAlignment(placement)) {\n case 'start':\n coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);\n break;\n case 'end':\n coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);\n break;\n }\n return coords;\n}\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n *\n * This export does not have any `platform` interface logic. You will need to\n * write one for the platform you are using Floating UI with.\n */\nconst computePosition = async (reference, floating, config) => {\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform\n } = config;\n const validMiddleware = middleware.filter(Boolean);\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));\n let rects = await platform.getElementRects({\n reference,\n floating,\n strategy\n });\n let {\n x,\n y\n } = computeCoordsFromPlacement(rects, placement, rtl);\n let statefulPlacement = placement;\n let middlewareData = {};\n let resetCount = 0;\n for (let i = 0; i < validMiddleware.length; i++) {\n const {\n name,\n fn\n } = validMiddleware[i];\n const {\n x: nextX,\n y: nextY,\n data,\n reset\n } = await fn({\n x,\n y,\n initialPlacement: placement,\n placement: statefulPlacement,\n strategy,\n middlewareData,\n rects,\n platform,\n elements: {\n reference,\n floating\n }\n });\n x = nextX != null ? nextX : x;\n y = nextY != null ? nextY : y;\n middlewareData = {\n ...middlewareData,\n [name]: {\n ...middlewareData[name],\n ...data\n }\n };\n if (reset && resetCount <= 50) {\n resetCount++;\n if (typeof reset === 'object') {\n if (reset.placement) {\n statefulPlacement = reset.placement;\n }\n if (reset.rects) {\n rects = reset.rects === true ? await platform.getElementRects({\n reference,\n floating,\n strategy\n }) : reset.rects;\n }\n ({\n x,\n y\n } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));\n }\n i = -1;\n }\n }\n return {\n x,\n y,\n placement: statefulPlacement,\n strategy,\n middlewareData\n };\n};\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nasync function detectOverflow(state, options) {\n var _await$platform$isEle;\n if (options === void 0) {\n options = {};\n }\n const {\n x,\n y,\n platform,\n rects,\n elements,\n strategy\n } = state;\n const {\n boundary = 'clippingAncestors',\n rootBoundary = 'viewport',\n elementContext = 'floating',\n altBoundary = false,\n padding = 0\n } = evaluate(options, state);\n const paddingObject = getPaddingObject(padding);\n const altContext = elementContext === 'floating' ? 'reference' : 'floating';\n const element = elements[altBoundary ? altContext : elementContext];\n const clippingClientRect = rectToClientRect(await platform.getClippingRect({\n element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),\n boundary,\n rootBoundary,\n strategy\n }));\n const rect = elementContext === 'floating' ? {\n x,\n y,\n width: rects.floating.width,\n height: rects.floating.height\n } : rects.reference;\n const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));\n const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {\n x: 1,\n y: 1\n } : {\n x: 1,\n y: 1\n };\n const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({\n elements,\n rect,\n offsetParent,\n strategy\n }) : rect);\n return {\n top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,\n bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,\n left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,\n right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x\n };\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = options => ({\n name: 'arrow',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n platform,\n elements,\n middlewareData\n } = state;\n // Since `element` is required, we don't Partial<> the type.\n const {\n element,\n padding = 0\n } = evaluate(options, state) || {};\n if (element == null) {\n return {};\n }\n const paddingObject = getPaddingObject(padding);\n const coords = {\n x,\n y\n };\n const axis = getAlignmentAxis(placement);\n const length = getAxisLength(axis);\n const arrowDimensions = await platform.getDimensions(element);\n const isYAxis = axis === 'y';\n const minProp = isYAxis ? 'top' : 'left';\n const maxProp = isYAxis ? 'bottom' : 'right';\n const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';\n const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];\n const startDiff = coords[axis] - rects.reference[axis];\n const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));\n let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;\n\n // DOM platform can return `window` as the `offsetParent`.\n if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {\n clientSize = elements.floating[clientProp] || rects.floating[length];\n }\n const centerToReference = endDiff / 2 - startDiff / 2;\n\n // If the padding is large enough that it causes the arrow to no longer be\n // centered, modify the padding so that it is centered.\n const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;\n const minPadding = min(paddingObject[minProp], largestPossiblePadding);\n const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);\n\n // Make sure the arrow doesn't overflow the floating element if the center\n // point is outside the floating element's bounds.\n const min$1 = minPadding;\n const max = clientSize - arrowDimensions[length] - maxPadding;\n const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;\n const offset = clamp(min$1, center, max);\n\n // If the reference is small enough that the arrow's padding causes it to\n // to point to nothing for an aligned placement, adjust the offset of the\n // floating element itself. To ensure `shift()` continues to take action,\n // a single reset is performed when this is true.\n const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;\n const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;\n return {\n [axis]: coords[axis] + alignmentOffset,\n data: {\n [axis]: offset,\n centerOffset: center - offset - alignmentOffset,\n ...(shouldAddOffset && {\n alignmentOffset\n })\n },\n reset: shouldAddOffset\n };\n }\n});\n\nfunction getPlacementList(alignment, autoAlignment, allowedPlacements) {\n const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);\n return allowedPlacementsSortedByAlignment.filter(placement => {\n if (alignment) {\n return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);\n }\n return true;\n });\n}\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'autoPlacement',\n options,\n async fn(state) {\n var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;\n const {\n rects,\n middlewareData,\n placement,\n platform,\n elements\n } = state;\n const {\n crossAxis = false,\n alignment,\n allowedPlacements = placements,\n autoAlignment = true,\n ...detectOverflowOptions\n } = evaluate(options, state);\n const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;\n const currentPlacement = placements$1[currentIndex];\n if (currentPlacement == null) {\n return {};\n }\n const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));\n\n // Make `computeCoords` start from the right place.\n if (placement !== currentPlacement) {\n return {\n reset: {\n placement: placements$1[0]\n }\n };\n }\n const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];\n const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {\n placement: currentPlacement,\n overflows: currentOverflows\n }];\n const nextPlacement = placements$1[currentIndex + 1];\n\n // There are more placements to check.\n if (nextPlacement) {\n return {\n data: {\n index: currentIndex + 1,\n overflows: allOverflows\n },\n reset: {\n placement: nextPlacement\n }\n };\n }\n const placementsSortedByMostSpace = allOverflows.map(d => {\n const alignment = getAlignment(d.placement);\n return [d.placement, alignment && crossAxis ?\n // Check along the mainAxis and main crossAxis side.\n d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :\n // Check only the mainAxis.\n d.overflows[0], d.overflows];\n }).sort((a, b) => a[1] - b[1]);\n const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,\n // Aligned placements should not check their opposite crossAxis\n // side.\n getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));\n const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];\n if (resetPlacement !== placement) {\n return {\n data: {\n index: currentIndex + 1,\n overflows: allOverflows\n },\n reset: {\n placement: resetPlacement\n }\n };\n }\n return {};\n }\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'flip',\n options,\n async fn(state) {\n var _middlewareData$arrow, _middlewareData$flip;\n const {\n placement,\n middlewareData,\n rects,\n initialPlacement,\n platform,\n elements\n } = state;\n const {\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = true,\n fallbackPlacements: specifiedFallbackPlacements,\n fallbackStrategy = 'bestFit',\n fallbackAxisSideDirection = 'none',\n flipAlignment = true,\n ...detectOverflowOptions\n } = evaluate(options, state);\n\n // If a reset by the arrow was caused due to an alignment offset being\n // added, we should skip any logic now since `flip()` has already done its\n // work.\n // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643\n if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n return {};\n }\n const side = getSide(placement);\n const initialSideAxis = getSideAxis(initialPlacement);\n const isBasePlacement = getSide(initialPlacement) === initialPlacement;\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));\n const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';\n if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {\n fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));\n }\n const placements = [initialPlacement, ...fallbackPlacements];\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const overflows = [];\n let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];\n if (checkMainAxis) {\n overflows.push(overflow[side]);\n }\n if (checkCrossAxis) {\n const sides = getAlignmentSides(placement, rects, rtl);\n overflows.push(overflow[sides[0]], overflow[sides[1]]);\n }\n overflowsData = [...overflowsData, {\n placement,\n overflows\n }];\n\n // One or more sides is overflowing.\n if (!overflows.every(side => side <= 0)) {\n var _middlewareData$flip2, _overflowsData$filter;\n const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;\n const nextPlacement = placements[nextIndex];\n if (nextPlacement) {\n const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;\n if (!ignoreCrossAxisOverflow ||\n // We leave the current main axis only if every placement on that axis\n // overflows the main axis.\n overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {\n // Try next placement and re-run the lifecycle.\n return {\n data: {\n index: nextIndex,\n overflows: overflowsData\n },\n reset: {\n placement: nextPlacement\n }\n };\n }\n }\n\n // First, find the candidates that fit on the mainAxis side of overflow,\n // then find the placement that fits the best on the main crossAxis side.\n let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;\n\n // Otherwise fallback.\n if (!resetPlacement) {\n switch (fallbackStrategy) {\n case 'bestFit':\n {\n var _overflowsData$filter2;\n const placement = (_overflowsData$filter2 = overflowsData.filter(d => {\n if (hasFallbackAxisSideDirection) {\n const currentSideAxis = getSideAxis(d.placement);\n return currentSideAxis === initialSideAxis ||\n // Create a bias to the `y` side axis due to horizontal\n // reading directions favoring greater width.\n currentSideAxis === 'y';\n }\n return true;\n }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];\n if (placement) {\n resetPlacement = placement;\n }\n break;\n }\n case 'initialPlacement':\n resetPlacement = initialPlacement;\n break;\n }\n }\n if (placement !== resetPlacement) {\n return {\n reset: {\n placement: resetPlacement\n }\n };\n }\n }\n return {};\n }\n };\n};\n\nfunction getSideOffsets(overflow, rect) {\n return {\n top: overflow.top - rect.height,\n right: overflow.right - rect.width,\n bottom: overflow.bottom - rect.height,\n left: overflow.left - rect.width\n };\n}\nfunction isAnySideFullyClipped(overflow) {\n return sides.some(side => overflow[side] >= 0);\n}\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'hide',\n options,\n async fn(state) {\n const {\n rects\n } = state;\n const {\n strategy = 'referenceHidden',\n ...detectOverflowOptions\n } = evaluate(options, state);\n switch (strategy) {\n case 'referenceHidden':\n {\n const overflow = await detectOverflow(state, {\n ...detectOverflowOptions,\n elementContext: 'reference'\n });\n const offsets = getSideOffsets(overflow, rects.reference);\n return {\n data: {\n referenceHiddenOffsets: offsets,\n referenceHidden: isAnySideFullyClipped(offsets)\n }\n };\n }\n case 'escaped':\n {\n const overflow = await detectOverflow(state, {\n ...detectOverflowOptions,\n altBoundary: true\n });\n const offsets = getSideOffsets(overflow, rects.floating);\n return {\n data: {\n escapedOffsets: offsets,\n escaped: isAnySideFullyClipped(offsets)\n }\n };\n }\n default:\n {\n return {};\n }\n }\n }\n };\n};\n\nfunction getBoundingRect(rects) {\n const minX = min(...rects.map(rect => rect.left));\n const minY = min(...rects.map(rect => rect.top));\n const maxX = max(...rects.map(rect => rect.right));\n const maxY = max(...rects.map(rect => rect.bottom));\n return {\n x: minX,\n y: minY,\n width: maxX - minX,\n height: maxY - minY\n };\n}\nfunction getRectsByLine(rects) {\n const sortedRects = rects.slice().sort((a, b) => a.y - b.y);\n const groups = [];\n let prevRect = null;\n for (let i = 0; i < sortedRects.length; i++) {\n const rect = sortedRects[i];\n if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {\n groups.push([rect]);\n } else {\n groups[groups.length - 1].push(rect);\n }\n prevRect = rect;\n }\n return groups.map(rect => rectToClientRect(getBoundingRect(rect)));\n}\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'inline',\n options,\n async fn(state) {\n const {\n placement,\n elements,\n rects,\n platform,\n strategy\n } = state;\n // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a\n // ClientRect's bounds, despite the event listener being triggered. A\n // padding of 2 seems to handle this issue.\n const {\n padding = 2,\n x,\n y\n } = evaluate(options, state);\n const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);\n const clientRects = getRectsByLine(nativeClientRects);\n const fallback = rectToClientRect(getBoundingRect(nativeClientRects));\n const paddingObject = getPaddingObject(padding);\n function getBoundingClientRect() {\n // There are two rects and they are disjoined.\n if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {\n // Find the first rect in which the point is fully inside.\n return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;\n }\n\n // There are 2 or more connected rects.\n if (clientRects.length >= 2) {\n if (getSideAxis(placement) === 'y') {\n const firstRect = clientRects[0];\n const lastRect = clientRects[clientRects.length - 1];\n const isTop = getSide(placement) === 'top';\n const top = firstRect.top;\n const bottom = lastRect.bottom;\n const left = isTop ? firstRect.left : lastRect.left;\n const right = isTop ? firstRect.right : lastRect.right;\n const width = right - left;\n const height = bottom - top;\n return {\n top,\n bottom,\n left,\n right,\n width,\n height,\n x: left,\n y: top\n };\n }\n const isLeftSide = getSide(placement) === 'left';\n const maxRight = max(...clientRects.map(rect => rect.right));\n const minLeft = min(...clientRects.map(rect => rect.left));\n const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);\n const top = measureRects[0].top;\n const bottom = measureRects[measureRects.length - 1].bottom;\n const left = minLeft;\n const right = maxRight;\n const width = right - left;\n const height = bottom - top;\n return {\n top,\n bottom,\n left,\n right,\n width,\n height,\n x: left,\n y: top\n };\n }\n return fallback;\n }\n const resetRects = await platform.getElementRects({\n reference: {\n getBoundingClientRect\n },\n floating: elements.floating,\n strategy\n });\n if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {\n return {\n reset: {\n rects: resetRects\n }\n };\n }\n return {};\n }\n };\n};\n\nconst originSides = /*#__PURE__*/new Set(['left', 'top']);\n\n// For type backwards-compatibility, the `OffsetOptions` type was also\n// Derivable.\n\nasync function convertValueToCoords(state, options) {\n const {\n placement,\n platform,\n elements\n } = state;\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n const side = getSide(placement);\n const alignment = getAlignment(placement);\n const isVertical = getSideAxis(placement) === 'y';\n const mainAxisMulti = originSides.has(side) ? -1 : 1;\n const crossAxisMulti = rtl && isVertical ? -1 : 1;\n const rawValue = evaluate(options, state);\n\n // eslint-disable-next-line prefer-const\n let {\n mainAxis,\n crossAxis,\n alignmentAxis\n } = typeof rawValue === 'number' ? {\n mainAxis: rawValue,\n crossAxis: 0,\n alignmentAxis: null\n } : {\n mainAxis: rawValue.mainAxis || 0,\n crossAxis: rawValue.crossAxis || 0,\n alignmentAxis: rawValue.alignmentAxis\n };\n if (alignment && typeof alignmentAxis === 'number') {\n crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;\n }\n return isVertical ? {\n x: crossAxis * crossAxisMulti,\n y: mainAxis * mainAxisMulti\n } : {\n x: mainAxis * mainAxisMulti,\n y: crossAxis * crossAxisMulti\n };\n}\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = function (options) {\n if (options === void 0) {\n options = 0;\n }\n return {\n name: 'offset',\n options,\n async fn(state) {\n var _middlewareData$offse, _middlewareData$arrow;\n const {\n x,\n y,\n placement,\n middlewareData\n } = state;\n const diffCoords = await convertValueToCoords(state, options);\n\n // If the placement is the same and the arrow caused an alignment offset\n // then we don't need to change the positioning coordinates.\n if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n return {};\n }\n return {\n x: x + diffCoords.x,\n y: y + diffCoords.y,\n data: {\n ...diffCoords,\n placement\n }\n };\n }\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'shift',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement\n } = state;\n const {\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = false,\n limiter = {\n fn: _ref => {\n let {\n x,\n y\n } = _ref;\n return {\n x,\n y\n };\n }\n },\n ...detectOverflowOptions\n } = evaluate(options, state);\n const coords = {\n x,\n y\n };\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const crossAxis = getSideAxis(getSide(placement));\n const mainAxis = getOppositeAxis(crossAxis);\n let mainAxisCoord = coords[mainAxis];\n let crossAxisCoord = coords[crossAxis];\n if (checkMainAxis) {\n const minSide = mainAxis === 'y' ? 'top' : 'left';\n const maxSide = mainAxis === 'y' ? 'bottom' : 'right';\n const min = mainAxisCoord + overflow[minSide];\n const max = mainAxisCoord - overflow[maxSide];\n mainAxisCoord = clamp(min, mainAxisCoord, max);\n }\n if (checkCrossAxis) {\n const minSide = crossAxis === 'y' ? 'top' : 'left';\n const maxSide = crossAxis === 'y' ? 'bottom' : 'right';\n const min = crossAxisCoord + overflow[minSide];\n const max = crossAxisCoord - overflow[maxSide];\n crossAxisCoord = clamp(min, crossAxisCoord, max);\n }\n const limitedCoords = limiter.fn({\n ...state,\n [mainAxis]: mainAxisCoord,\n [crossAxis]: crossAxisCoord\n });\n return {\n ...limitedCoords,\n data: {\n x: limitedCoords.x - x,\n y: limitedCoords.y - y,\n enabled: {\n [mainAxis]: checkMainAxis,\n [crossAxis]: checkCrossAxis\n }\n }\n };\n }\n };\n};\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n options,\n fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n middlewareData\n } = state;\n const {\n offset = 0,\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = true\n } = evaluate(options, state);\n const coords = {\n x,\n y\n };\n const crossAxis = getSideAxis(placement);\n const mainAxis = getOppositeAxis(crossAxis);\n let mainAxisCoord = coords[mainAxis];\n let crossAxisCoord = coords[crossAxis];\n const rawOffset = evaluate(offset, state);\n const computedOffset = typeof rawOffset === 'number' ? {\n mainAxis: rawOffset,\n crossAxis: 0\n } : {\n mainAxis: 0,\n crossAxis: 0,\n ...rawOffset\n };\n if (checkMainAxis) {\n const len = mainAxis === 'y' ? 'height' : 'width';\n const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;\n const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;\n if (mainAxisCoord < limitMin) {\n mainAxisCoord = limitMin;\n } else if (mainAxisCoord > limitMax) {\n mainAxisCoord = limitMax;\n }\n }\n if (checkCrossAxis) {\n var _middlewareData$offse, _middlewareData$offse2;\n const len = mainAxis === 'y' ? 'width' : 'height';\n const isOriginSide = originSides.has(getSide(placement));\n const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);\n const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);\n if (crossAxisCoord < limitMin) {\n crossAxisCoord = limitMin;\n } else if (crossAxisCoord > limitMax) {\n crossAxisCoord = limitMax;\n }\n }\n return {\n [mainAxis]: mainAxisCoord,\n [crossAxis]: crossAxisCoord\n };\n }\n };\n};\n\n/**\n * Provides data that allows you to change the size of the floating element \u2014\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'size',\n options,\n async fn(state) {\n var _state$middlewareData, _state$middlewareData2;\n const {\n placement,\n rects,\n platform,\n elements\n } = state;\n const {\n apply = () => {},\n ...detectOverflowOptions\n } = evaluate(options, state);\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const side = getSide(placement);\n const alignment = getAlignment(placement);\n const isYAxis = getSideAxis(placement) === 'y';\n const {\n width,\n height\n } = rects.floating;\n let heightSide;\n let widthSide;\n if (side === 'top' || side === 'bottom') {\n heightSide = side;\n widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';\n } else {\n widthSide = side;\n heightSide = alignment === 'end' ? 'top' : 'bottom';\n }\n const maximumClippingHeight = height - overflow.top - overflow.bottom;\n const maximumClippingWidth = width - overflow.left - overflow.right;\n const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);\n const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);\n const noShift = !state.middlewareData.shift;\n let availableHeight = overflowAvailableHeight;\n let availableWidth = overflowAvailableWidth;\n if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {\n availableWidth = maximumClippingWidth;\n }\n if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {\n availableHeight = maximumClippingHeight;\n }\n if (noShift && !alignment) {\n const xMin = max(overflow.left, 0);\n const xMax = max(overflow.right, 0);\n const yMin = max(overflow.top, 0);\n const yMax = max(overflow.bottom, 0);\n if (isYAxis) {\n availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));\n } else {\n availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));\n }\n }\n await apply({\n ...state,\n availableWidth,\n availableHeight\n });\n const nextDimensions = await platform.getDimensions(elements.floating);\n if (width !== nextDimensions.width || height !== nextDimensions.height) {\n return {\n reset: {\n rects: true\n }\n };\n }\n return {};\n }\n };\n};\n\nexport { arrow, autoPlacement, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, shift, size };\n", "function hasWindow() {\n return typeof window !== 'undefined';\n}\nfunction getNodeName(node) {\n if (isNode(node)) {\n return (node.nodeName || '').toLowerCase();\n }\n // Mocked nodes in testing environments may not be instances of Node. By\n // returning `#document` an infinite loop won't occur.\n // https://github.com/floating-ui/floating-ui/issues/2317\n return '#document';\n}\nfunction getWindow(node) {\n var _node$ownerDocument;\n return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n var _ref;\n return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n if (!hasWindow() || typeof ShadowRoot === 'undefined') {\n return false;\n }\n return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nconst invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);\n}\nconst tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);\nfunction isTableElement(element) {\n return tableElements.has(getNodeName(element));\n}\nconst topLayerSelectors = [':popover-open', ':modal'];\nfunction isTopLayer(element) {\n return topLayerSelectors.some(selector => {\n try {\n return element.matches(selector);\n } catch (_e) {\n return false;\n }\n });\n}\nconst transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];\nconst willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];\nconst containValues = ['paint', 'layout', 'strict', 'content'];\nfunction isContainingBlock(elementOrCss) {\n const webkit = isWebKit();\n const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n // https://drafts.csswg.org/css-transforms-2/#individual-transforms\n return transformProperties.some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || willChangeValues.some(value => (css.willChange || '').includes(value)) || containValues.some(value => (css.contain || '').includes(value));\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else if (isTopLayer(currentNode)) {\n return null;\n }\n currentNode = getParentNode(currentNode);\n }\n return null;\n}\nfunction isWebKit() {\n if (typeof CSS === 'undefined' || !CSS.supports) return false;\n return CSS.supports('-webkit-backdrop-filter', 'none');\n}\nconst lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);\nfunction isLastTraversableNode(node) {\n return lastTraversableNodeNames.has(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.scrollX,\n scrollTop: element.scrollY\n };\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n return node.ownerDocument ? node.ownerDocument.body : node.body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n var _node$ownerDocument2;\n if (list === void 0) {\n list = [];\n }\n if (traverseIframes === void 0) {\n traverseIframes = true;\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n const frameElement = getFrameElement(win);\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);\n }\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n}\nfunction getFrameElement(win) {\n return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getFrameElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isTopLayer, isWebKit };\n", "import { rectToClientRect, detectOverflow as detectOverflow$1, offset as offset$1, autoPlacement as autoPlacement$1, shift as shift$1, flip as flip$1, size as size$1, hide as hide$1, arrow as arrow$1, inline as inline$1, limitShift as limitShift$1, computePosition as computePosition$1 } from '@floating-ui/core';\nimport { round, createCoords, max, min, floor } from '@floating-ui/utils';\nimport { getComputedStyle, isHTMLElement, isElement, getWindow, isWebKit, getFrameElement, getNodeScroll, getDocumentElement, isTopLayer, getNodeName, isOverflowElement, getOverflowAncestors, getParentNode, isLastTraversableNode, isContainingBlock, isTableElement, getContainingBlock } from '@floating-ui/utils/dom';\nexport { getOverflowAncestors } from '@floating-ui/utils/dom';\n\nfunction getCssDimensions(element) {\n const css = getComputedStyle(element);\n // In testing environments, the `width` and `height` properties are empty\n // strings for SVG elements, returning NaN. Fallback to `0` in this case.\n let width = parseFloat(css.width) || 0;\n let height = parseFloat(css.height) || 0;\n const hasOffset = isHTMLElement(element);\n const offsetWidth = hasOffset ? element.offsetWidth : width;\n const offsetHeight = hasOffset ? element.offsetHeight : height;\n const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;\n if (shouldFallback) {\n width = offsetWidth;\n height = offsetHeight;\n }\n return {\n width,\n height,\n $: shouldFallback\n };\n}\n\nfunction unwrapElement(element) {\n return !isElement(element) ? element.contextElement : element;\n}\n\nfunction getScale(element) {\n const domElement = unwrapElement(element);\n if (!isHTMLElement(domElement)) {\n return createCoords(1);\n }\n const rect = domElement.getBoundingClientRect();\n const {\n width,\n height,\n $\n } = getCssDimensions(domElement);\n let x = ($ ? round(rect.width) : rect.width) / width;\n let y = ($ ? round(rect.height) : rect.height) / height;\n\n // 0, NaN, or Infinity should always fallback to 1.\n\n if (!x || !Number.isFinite(x)) {\n x = 1;\n }\n if (!y || !Number.isFinite(y)) {\n y = 1;\n }\n return {\n x,\n y\n };\n}\n\nconst noOffsets = /*#__PURE__*/createCoords(0);\nfunction getVisualOffsets(element) {\n const win = getWindow(element);\n if (!isWebKit() || !win.visualViewport) {\n return noOffsets;\n }\n return {\n x: win.visualViewport.offsetLeft,\n y: win.visualViewport.offsetTop\n };\n}\nfunction shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {\n return false;\n }\n return isFixed;\n}\n\nfunction getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n const clientRect = element.getBoundingClientRect();\n const domElement = unwrapElement(element);\n let scale = createCoords(1);\n if (includeScale) {\n if (offsetParent) {\n if (isElement(offsetParent)) {\n scale = getScale(offsetParent);\n }\n } else {\n scale = getScale(element);\n }\n }\n const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);\n let x = (clientRect.left + visualOffsets.x) / scale.x;\n let y = (clientRect.top + visualOffsets.y) / scale.y;\n let width = clientRect.width / scale.x;\n let height = clientRect.height / scale.y;\n if (domElement) {\n const win = getWindow(domElement);\n const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;\n let currentWin = win;\n let currentIFrame = getFrameElement(currentWin);\n while (currentIFrame && offsetParent && offsetWin !== currentWin) {\n const iframeScale = getScale(currentIFrame);\n const iframeRect = currentIFrame.getBoundingClientRect();\n const css = getComputedStyle(currentIFrame);\n const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;\n const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;\n x *= iframeScale.x;\n y *= iframeScale.y;\n width *= iframeScale.x;\n height *= iframeScale.y;\n x += left;\n y += top;\n currentWin = getWindow(currentIFrame);\n currentIFrame = getFrameElement(currentWin);\n }\n }\n return rectToClientRect({\n width,\n height,\n x,\n y\n });\n}\n\n// If <html> has a CSS width greater than the viewport, then this will be\n// incorrect for RTL.\nfunction getWindowScrollBarX(element, rect) {\n const leftScroll = getNodeScroll(element).scrollLeft;\n if (!rect) {\n return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;\n }\n return rect.left + leftScroll;\n}\n\nfunction getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {\n if (ignoreScrollbarX === void 0) {\n ignoreScrollbarX = false;\n }\n const htmlRect = documentElement.getBoundingClientRect();\n const x = htmlRect.left + scroll.scrollLeft - (ignoreScrollbarX ? 0 :\n // RTL <body> scrollbar.\n getWindowScrollBarX(documentElement, htmlRect));\n const y = htmlRect.top + scroll.scrollTop;\n return {\n x,\n y\n };\n}\n\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n let {\n elements,\n rect,\n offsetParent,\n strategy\n } = _ref;\n const isFixed = strategy === 'fixed';\n const documentElement = getDocumentElement(offsetParent);\n const topLayer = elements ? isTopLayer(elements.floating) : false;\n if (offsetParent === documentElement || topLayer && isFixed) {\n return rect;\n }\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n let scale = createCoords(1);\n const offsets = createCoords(0);\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isHTMLElement(offsetParent)) {\n const offsetRect = getBoundingClientRect(offsetParent);\n scale = getScale(offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n }\n }\n const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll, true) : createCoords(0);\n return {\n width: rect.width * scale.x,\n height: rect.height * scale.y,\n x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,\n y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y\n };\n}\n\nfunction getClientRects(element) {\n return Array.from(element.getClientRects());\n}\n\n// Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable.\nfunction getDocumentRect(element) {\n const html = getDocumentElement(element);\n const scroll = getNodeScroll(element);\n const body = element.ownerDocument.body;\n const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);\n const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);\n let x = -scroll.scrollLeft + getWindowScrollBarX(element);\n const y = -scroll.scrollTop;\n if (getComputedStyle(body).direction === 'rtl') {\n x += max(html.clientWidth, body.clientWidth) - width;\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\nfunction getViewportRect(element, strategy) {\n const win = getWindow(element);\n const html = getDocumentElement(element);\n const visualViewport = win.visualViewport;\n let width = html.clientWidth;\n let height = html.clientHeight;\n let x = 0;\n let y = 0;\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n const visualViewportBased = isWebKit();\n if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\n// Returns the inner client rect, subtracting scrollbars if present.\nfunction getInnerBoundingClientRect(element, strategy) {\n const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');\n const top = clientRect.top + element.clientTop;\n const left = clientRect.left + element.clientLeft;\n const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);\n const width = element.clientWidth * scale.x;\n const height = element.clientHeight * scale.y;\n const x = left * scale.x;\n const y = top * scale.y;\n return {\n width,\n height,\n x,\n y\n };\n}\nfunction getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {\n let rect;\n if (clippingAncestor === 'viewport') {\n rect = getViewportRect(element, strategy);\n } else if (clippingAncestor === 'document') {\n rect = getDocumentRect(getDocumentElement(element));\n } else if (isElement(clippingAncestor)) {\n rect = getInnerBoundingClientRect(clippingAncestor, strategy);\n } else {\n const visualOffsets = getVisualOffsets(element);\n rect = {\n x: clippingAncestor.x - visualOffsets.x,\n y: clippingAncestor.y - visualOffsets.y,\n width: clippingAncestor.width,\n height: clippingAncestor.height\n };\n }\n return rectToClientRect(rect);\n}\nfunction hasFixedPositionAncestor(element, stopNode) {\n const parentNode = getParentNode(element);\n if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {\n return false;\n }\n return getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);\n}\n\n// A \"clipping ancestor\" is an `overflow` element with the characteristic of\n// clipping (or hiding) child elements. This returns all clipping ancestors\n// of the given element up the tree.\nfunction getClippingElementAncestors(element, cache) {\n const cachedResult = cache.get(element);\n if (cachedResult) {\n return cachedResult;\n }\n let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');\n let currentContainingBlockComputedStyle = null;\n const elementIsFixed = getComputedStyle(element).position === 'fixed';\n let currentNode = elementIsFixed ? getParentNode(element) : element;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {\n const computedStyle = getComputedStyle(currentNode);\n const currentNodeIsContaining = isContainingBlock(currentNode);\n if (!currentNodeIsContaining && computedStyle.position === 'fixed') {\n currentContainingBlockComputedStyle = null;\n }\n const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);\n if (shouldDropCurrentNode) {\n // Drop non-containing blocks.\n result = result.filter(ancestor => ancestor !== currentNode);\n } else {\n // Record last containing block for next iteration.\n currentContainingBlockComputedStyle = computedStyle;\n }\n currentNode = getParentNode(currentNode);\n }\n cache.set(element, result);\n return result;\n}\n\n// Gets the maximum area that the element is visible in due to any number of\n// clipping ancestors.\nfunction getClippingRect(_ref) {\n let {\n element,\n boundary,\n rootBoundary,\n strategy\n } = _ref;\n const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);\n const clippingAncestors = [...elementClippingAncestors, rootBoundary];\n const firstClippingAncestor = clippingAncestors[0];\n const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {\n const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));\n return {\n width: clippingRect.right - clippingRect.left,\n height: clippingRect.bottom - clippingRect.top,\n x: clippingRect.left,\n y: clippingRect.top\n };\n}\n\nfunction getDimensions(element) {\n const {\n width,\n height\n } = getCssDimensions(element);\n return {\n width,\n height\n };\n}\n\nfunction getRectRelativeToOffsetParent(element, offsetParent, strategy) {\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n const documentElement = getDocumentElement(offsetParent);\n const isFixed = strategy === 'fixed';\n const rect = getBoundingClientRect(element, true, isFixed, offsetParent);\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n const offsets = createCoords(0);\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isOffsetParentAnElement) {\n const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n } else if (documentElement) {\n // If the <body> scrollbar appears on the left (e.g. RTL systems). Use\n // Firefox with layout.scrollbar.side = 3 in about:config to test this.\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);\n const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;\n const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;\n return {\n x,\n y,\n width: rect.width,\n height: rect.height\n };\n}\n\nfunction isStaticPositioned(element) {\n return getComputedStyle(element).position === 'static';\n}\n\nfunction getTrueOffsetParent(element, polyfill) {\n if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {\n return null;\n }\n if (polyfill) {\n return polyfill(element);\n }\n let rawOffsetParent = element.offsetParent;\n\n // Firefox returns the <html> element as the offsetParent if it's non-static,\n // while Chrome and Safari return the <body> element. The <body> element must\n // be used to perform the correct calculations even if the <html> element is\n // non-static.\n if (getDocumentElement(element) === rawOffsetParent) {\n rawOffsetParent = rawOffsetParent.ownerDocument.body;\n }\n return rawOffsetParent;\n}\n\n// Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\nfunction getOffsetParent(element, polyfill) {\n const win = getWindow(element);\n if (isTopLayer(element)) {\n return win;\n }\n if (!isHTMLElement(element)) {\n let svgOffsetParent = getParentNode(element);\n while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {\n if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {\n return svgOffsetParent;\n }\n svgOffsetParent = getParentNode(svgOffsetParent);\n }\n return win;\n }\n let offsetParent = getTrueOffsetParent(element, polyfill);\n while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {\n offsetParent = getTrueOffsetParent(offsetParent, polyfill);\n }\n if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {\n return win;\n }\n return offsetParent || getContainingBlock(element) || win;\n}\n\nconst getElementRects = async function (data) {\n const getOffsetParentFn = this.getOffsetParent || getOffsetParent;\n const getDimensionsFn = this.getDimensions;\n const floatingDimensions = await getDimensionsFn(data.floating);\n return {\n reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),\n floating: {\n x: 0,\n y: 0,\n width: floatingDimensions.width,\n height: floatingDimensions.height\n }\n };\n};\n\nfunction isRTL(element) {\n return getComputedStyle(element).direction === 'rtl';\n}\n\nconst platform = {\n convertOffsetParentRelativeRectToViewportRelativeRect,\n getDocumentElement,\n getClippingRect,\n getOffsetParent,\n getElementRects,\n getClientRects,\n getDimensions,\n getScale,\n isElement,\n isRTL\n};\n\nfunction rectsAreEqual(a, b) {\n return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;\n}\n\n// https://samthor.au/2021/observing-dom/\nfunction observeMove(element, onMove) {\n let io = null;\n let timeoutId;\n const root = getDocumentElement(element);\n function cleanup() {\n var _io;\n clearTimeout(timeoutId);\n (_io = io) == null || _io.disconnect();\n io = null;\n }\n function refresh(skip, threshold) {\n if (skip === void 0) {\n skip = false;\n }\n if (threshold === void 0) {\n threshold = 1;\n }\n cleanup();\n const elementRectForRootMargin = element.getBoundingClientRect();\n const {\n left,\n top,\n width,\n height\n } = elementRectForRootMargin;\n if (!skip) {\n onMove();\n }\n if (!width || !height) {\n return;\n }\n const insetTop = floor(top);\n const insetRight = floor(root.clientWidth - (left + width));\n const insetBottom = floor(root.clientHeight - (top + height));\n const insetLeft = floor(left);\n const rootMargin = -insetTop + \"px \" + -insetRight + \"px \" + -insetBottom + \"px \" + -insetLeft + \"px\";\n const options = {\n rootMargin,\n threshold: max(0, min(1, threshold)) || 1\n };\n let isFirstUpdate = true;\n function handleObserve(entries) {\n const ratio = entries[0].intersectionRatio;\n if (ratio !== threshold) {\n if (!isFirstUpdate) {\n return refresh();\n }\n if (!ratio) {\n // If the reference is clipped, the ratio is 0. Throttle the refresh\n // to prevent an infinite loop of updates.\n timeoutId = setTimeout(() => {\n refresh(false, 1e-7);\n }, 1000);\n } else {\n refresh(false, ratio);\n }\n }\n if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {\n // It's possible that even though the ratio is reported as 1, the\n // element is not actually fully within the IntersectionObserver's root\n // area anymore. This can happen under performance constraints. This may\n // be a bug in the browser's IntersectionObserver implementation. To\n // work around this, we compare the element's bounding rect now with\n // what it was at the time we created the IntersectionObserver. If they\n // are not equal then the element moved, so we refresh.\n refresh();\n }\n isFirstUpdate = false;\n }\n\n // Older browsers don't support a `document` as the root and will throw an\n // error.\n try {\n io = new IntersectionObserver(handleObserve, {\n ...options,\n // Handle <iframe>s\n root: root.ownerDocument\n });\n } catch (e) {\n io = new IntersectionObserver(handleObserve, options);\n }\n io.observe(element);\n }\n refresh(true);\n return cleanup;\n}\n\n/**\n * Automatically updates the position of the floating element when necessary.\n * Should only be called when the floating element is mounted on the DOM or\n * visible on the screen.\n * @returns cleanup function that should be invoked when the floating element is\n * removed from the DOM or hidden from the screen.\n * @see https://floating-ui.com/docs/autoUpdate\n */\nfunction autoUpdate(reference, floating, update, options) {\n if (options === void 0) {\n options = {};\n }\n const {\n ancestorScroll = true,\n ancestorResize = true,\n elementResize = typeof ResizeObserver === 'function',\n layoutShift = typeof IntersectionObserver === 'function',\n animationFrame = false\n } = options;\n const referenceEl = unwrapElement(reference);\n const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.addEventListener('scroll', update, {\n passive: true\n });\n ancestorResize && ancestor.addEventListener('resize', update);\n });\n const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;\n let reobserveFrame = -1;\n let resizeObserver = null;\n if (elementResize) {\n resizeObserver = new ResizeObserver(_ref => {\n let [firstEntry] = _ref;\n if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {\n // Prevent update loops when using the `size` middleware.\n // https://github.com/floating-ui/floating-ui/issues/1740\n resizeObserver.unobserve(floating);\n cancelAnimationFrame(reobserveFrame);\n reobserveFrame = requestAnimationFrame(() => {\n var _resizeObserver;\n (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);\n });\n }\n update();\n });\n if (referenceEl && !animationFrame) {\n resizeObserver.observe(referenceEl);\n }\n resizeObserver.observe(floating);\n }\n let frameId;\n let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;\n if (animationFrame) {\n frameLoop();\n }\n function frameLoop() {\n const nextRefRect = getBoundingClientRect(reference);\n if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {\n update();\n }\n prevRefRect = nextRefRect;\n frameId = requestAnimationFrame(frameLoop);\n }\n update();\n return () => {\n var _resizeObserver2;\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.removeEventListener('scroll', update);\n ancestorResize && ancestor.removeEventListener('resize', update);\n });\n cleanupIo == null || cleanupIo();\n (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();\n resizeObserver = null;\n if (animationFrame) {\n cancelAnimationFrame(frameId);\n }\n };\n}\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nconst detectOverflow = detectOverflow$1;\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = offset$1;\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = autoPlacement$1;\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = shift$1;\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = flip$1;\n\n/**\n * Provides data that allows you to change the size of the floating element \u2014\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = size$1;\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = hide$1;\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = arrow$1;\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = inline$1;\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = limitShift$1;\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n */\nconst computePosition = (reference, floating, options) => {\n // This caches the expensive `getClippingElementAncestors` function so that\n // multiple lifecycle resets re-use the same result. It only lives for a\n // single call. If other functions become expensive, we can add them as well.\n const cache = new Map();\n const mergedOptions = {\n platform,\n ...options\n };\n const platformWithCache = {\n ...mergedOptions.platform,\n _c: cache\n };\n return computePosition$1(reference, floating, {\n ...mergedOptions,\n platform: platformWithCache\n });\n};\n\nexport { arrow, autoPlacement, autoUpdate, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, platform, shift, size };\n", "import { computePosition, flip, offset, arrow, autoUpdate, hide, shift, size } from '@floating-ui/dom';\nconst TOP_START = 'top-start';\nconst TOP = 'top';\nconst TOP_END = 'top-end';\nconst RIGHT_START = 'right-start';\nconst RIGHT = 'right';\nconst RIGHT_END = 'right-end';\nconst BOTTOM_START = 'bottom-start';\nconst BOTTOM = 'bottom';\nconst BOTTOM_END = 'bottom-end';\nconst LEFT_START = 'left-start';\nconst LEFT = 'left';\nconst LEFT_END = 'left-end';\nexport const directions = [\n TOP_START,\n TOP,\n TOP_END,\n RIGHT_START,\n RIGHT,\n RIGHT_END,\n BOTTOM_START,\n BOTTOM,\n BOTTOM_END,\n LEFT_START,\n LEFT,\n LEFT_END,\n];\nexport const opposites = {\n [TOP_START]: BOTTOM_START,\n [TOP]: BOTTOM,\n [TOP_END]: BOTTOM_END,\n [BOTTOM_START]: TOP_START,\n [BOTTOM]: TOP,\n [BOTTOM_END]: TOP_END,\n [LEFT_START]: RIGHT_START,\n [LEFT]: RIGHT,\n [LEFT_END]: RIGHT_END,\n [RIGHT_START]: LEFT_START,\n [RIGHT]: LEFT,\n [RIGHT_END]: LEFT_END,\n};\nconst rotation = {\n [LEFT_START]: -45,\n [LEFT]: -45,\n [LEFT_END]: -45,\n [TOP_START]: 45,\n [TOP]: 45,\n [TOP_END]: 45,\n [RIGHT_START]: 135,\n [RIGHT]: 135,\n [RIGHT_END]: 135,\n [BOTTOM_START]: -135,\n [BOTTOM]: -135,\n [BOTTOM_END]: -135,\n};\nexport const arrowDirectionClassname = (dir) => {\n let direction;\n if (/-/.test(dir)) {\n direction = dir\n .split('-')\n .map((d) => d.charAt(0).toUpperCase() + d.slice(1))\n .join('');\n }\n else {\n direction = (dir.charAt(0).toUpperCase() + dir.slice(1));\n }\n return direction;\n};\nconst side = (dir) => dir.split('-')[0];\nconst staticSide = (dir) => opposites[side(dir)];\nconst arrowDirection = (dir) => opposites[dir];\nconst arrowRotation = (dir) => rotation[arrowDirection(dir)];\nconst applyArrowStyles = (arrowEl, arrowRotation, dir) => {\n Object.assign(arrowEl?.style, {\n borderTopLeftRadius: '4px',\n zIndex: 1,\n // border alignment is off by a fraction of a pixel, this fixes it\n [`margin${arrowDirectionClassname(staticSide(dir))}`]: '-0.5px',\n transform: `rotate(${arrowRotation}deg)`,\n });\n};\nconst ELEMENT_PADDING = 8;\nconst ARROW_OFFSET = 24;\nexport async function useRecompute(state) {\n if (!state?.isShowing)\n return; // we're not currently showing the element, no reason to recompute\n if (state?.waitForDOM) {\n await state?.waitForDOM(); // wait for DOM to settle before computing\n }\n if (!state?.targetEl || !state?.attentionEl)\n return;\n let targetEl = state?.targetEl;\n const attentionEl = state.attentionEl;\n computePosition(targetEl, attentionEl, {\n placement: state?.directionName ?? BOTTOM,\n middleware: [\n offset({ mainAxis: state?.distance ?? 8, crossAxis: state?.skidding ?? 0 }), // offers flexibility over how to place the attentionEl towards its targetEl both on the x and y axis (horizontally and vertically).\n state?.flip &&\n flip({\n // when flip is set to true it will move the attentionEl's placement to its opposite side or to the preferred placements if fallbackPlacements has a value\n crossAxis: state?.crossAxis, // checks overflow to trigger a flip. When disabled, it will ignore overflow\n fallbackPlacements: state?.fallbackPlacements,\n }),\n state?.flip && shift({ crossAxis: true }), // shifts the attentionEl to make sure that it stays in view\n !state?.noArrow && state?.arrowEl && arrow({ element: state?.arrowEl }),\n hide(), // will hide the attentionEl when it appears detached from the targetEl. Can be called multiple times in the middleware-array if you want to use several strategies. Default strategy is 'referenceHidden'.\n size({\n apply() {\n // Apply equal padding to the left and right sides of the attentionEl to prevent it from overflowing the viewport on smaller screens.\n Object.assign(attentionEl.style, {\n paddingRight: `${ELEMENT_PADDING}px`,\n paddingLeft: `${ELEMENT_PADDING}px`,\n });\n },\n }),\n ],\n }).then(({ x, y, middlewareData, placement }) => {\n state.actualDirection = placement;\n // We only want floating-ui to calculate the callout's arrow position and not the attention element's position, since the targetEl can be undefined if isCallout is true.\n // Therefore, we only add this style to the attentionEl when isCallout is false.\n if (!state?.isCallout) {\n Object.assign(attentionEl.style, {\n left: `${x}px`,\n top: `${y}px`,\n });\n }\n // Handle visibility based on hide middleware\n if (middlewareData?.hide && !state?.isCallout) {\n const { referenceHidden } = middlewareData.hide;\n Object.assign(attentionEl.style, {\n visibility: referenceHidden ? 'hidden' : '',\n });\n }\n // Arrow position adjustment\n if (middlewareData?.arrow && state?.arrowEl) {\n const arrowEl = state?.arrowEl;\n const { x: arrowX, y: arrowY } = middlewareData.arrow;\n const isRtl = window.getComputedStyle(attentionEl).direction === 'rtl'; // Checks RTL for proper arrow alignment\n const arrowPlacement = arrowDirection(placement).split('-')[1];\n let top = '', right = '', bottom = '', left = '';\n // Adjust based on 'start' or 'end' placements\n if (arrowPlacement === 'start') {\n const value = typeof arrowX === 'number' ? `calc(${ARROW_OFFSET}px - ${arrowEl.offsetWidth / 2}px)` : '';\n top = typeof arrowY === 'number' ? `calc(${ARROW_OFFSET}px - ${arrowEl.offsetWidth / 2}px)` : '';\n right = isRtl ? value : '';\n left = isRtl ? '' : value;\n }\n else if (arrowPlacement === 'end') {\n const value = typeof arrowX === 'number' ? `calc(${ARROW_OFFSET}px - ${arrowEl.offsetWidth / 2}px)` : '';\n right = isRtl ? '' : value;\n left = isRtl ? value : '';\n bottom = typeof arrowY === 'number' ? `calc(${ARROW_OFFSET}px - ${arrowEl.offsetWidth / 2}px)` : '';\n }\n else {\n // Default positioning with no 'start' or 'end'\n left = typeof arrowX === 'number' ? `${arrowX}px` : '';\n top = typeof arrowY === 'number' ? `${arrowY}px` : '';\n }\n // Apply the arrow styles\n Object.assign(arrowEl.style, {\n top,\n right,\n bottom,\n left,\n });\n // Apply arrow rotation styles\n applyArrowStyles(arrowEl, arrowRotation(placement), placement);\n }\n });\n return state;\n}\nexport const autoUpdatePosition = (state) => {\n // computePosition is only run once, so we need to wrap autoUpdate() around useRecompute() in order to recompute the attentionEl's position\n // autoUpdate adds event listeners that are triggered on resize and on scroll and will keep calling the useRecompute().\n // autoUpdate returns a cleanup() function that removes the event listeners.\n if (!state?.targetEl || !state?.attentionEl || state?.isCallout)\n return;\n return autoUpdate(state?.targetEl, state?.attentionEl, () => {\n useRecompute(state);\n });\n};\n", "export const pageIndicator = {\n wrapper: 'flex space-x-8 p-8',\n dot: 'h-8 w-8 rounded-full',\n inactive: 's-bg-disabled-subtle hover:bg-[--w-s-icon-subtle]',\n active: 'bg-[--w-s-icon-selected]',\n};\n\nexport const badge = {\n base: 'py-4 px-8 border-0 rounded-4 text-xs inline-flex',\n neutral: 'bg-[--w-color-badge-neutral-background] s-text',\n info: 'bg-[--w-color-badge-info-background] s-text',\n positive: 'bg-[--w-color-badge-positive-background] s-text',\n warning: 'bg-[--w-color-badge-warning-background] s-text',\n negative: 'bg-[--w-color-badge-negative-background] s-text',\n disabled: 's-bg-disabled s-text',\n price: 'bg-[--w-black/70] s-text-inverted-static',\n sponsored: 'bg-[--w-color-badge-sponsored-background] s-text',\n positionBase: 'absolute backdrop-blur',\n positionTL: 'rounded-tl-0 rounded-tr-0 rounded-bl-0 top-0 left-0',\n positionTR: 'rounded-tl-0 rounded-tr-0 rounded-br-0 top-0 right-0',\n positionBR: 'rounded-tr-0 rounded-br-0 rounded-bl-0 bottom-0 right-0',\n positionBL: 'rounded-tl-0 rounded-br-0 rounded-bl-0 bottom-0 left-0',\n};\n\nexport const slider = {\n wrapper: 'touch-pan-y relative w-full h-44 py-2',\n track: 'absolute s-bg-disabled-subtle h-4 top-20 rounded-4 w-full',\n trackDisabled: 'pointer-events-none',\n activeTrack: 'absolute h-6 top-[1.92rem] rounded-4',\n activeTrackEnabled: 's-bg-primary',\n activeTrackDisabled: 's-bg-disabled pointer-events-none',\n thumb: 'absolute transition-shadow w-24 h-24 bottom-10 rounded-4 outline-none',\n thumbEnabled:\n 'border-2 shadow-[--w-shadow-slider] cursor-pointer s-bg-primary s-border-primary hover:s-bg-primary-hover hover:s-border-primary-hover hover:shadow-[--w-shadow-slider-handle-hover] active:s-bg-primary-active active:s-border-primary-active active:shadow-[--w-shadow-slider-handle-active] focus:shadow-[--w-shadow-slider-handle-hover] focus:s-border-primary-hover focus:s-bg-primary-hover',\n thumbDisabled: 's-bg-disabled cursor-disabled pointer-events-none',\n};\n\nexport const box = {\n base: 'group block relative break-words last-child:mb-0 p-16 rounded-8', // Relative here enables w-clickable\n bleed: '-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8', // We target L and R to override the default rounded-8\n info: 's-bg-info-subtle',\n neutral: 's-surface-sunken',\n bordered: 'border-2 s-border s-bg',\n};\n\nexport const pill = {\n wrapper: 'flex items-center',\n button: 'inline-flex items-center focusable text-xs transition-all',\n suggestion:\n 'bg-[--w-color-pill-suggestion-background] hover:bg-[--w-color-pill-suggestion-background-hover] active:bg-[--w-color-pill-suggestion-background-active] s-text font-bold',\n filter: 's-bg-primary hover:s-bg-primary-hover active:s-bg-primary-active s-text-inverted',\n label: 'pl-12 py-8 rounded-l-full',\n labelWithoutClose: 'pr-12 rounded-r-full',\n labelWithClose: 'pr-2',\n close: 'pr-12 pl-4 py-8 rounded-r-full',\n a11y: 'sr-only',\n};\n\nexport const step = {\n base: 'group/step',\n vertical: 'group/stepv grid-rows-[20px_auto] grid grid-flow-col gap-x-16',\n horizontal: 'group/steph grid-rows-[auto_20px] grid-cols-[1fr_20px_1fr] flex-1 grid gap-y-16 items-center',\n\n alignLeft: 'grid-cols-[20px_1fr]',\n alignRight: 'grid-cols-[1fr_20px] text-right',\n\n dot: 'rounded-full border-2 h-20 w-20 transition-colors duration-300 s-icon-inverted',\n dotAlignRight: 'col-start-2',\n dotHorizontal: 'row-start-2 justify-self-end',\n dotActive: 's-border-primary s-bg-primary',\n dotIncomplete: 's-border s-bg',\n\n line: 'group-last/stepv:hidden transition-colors duration-300',\n lineVertical: 'w-2 h-full justify-self-center',\n lineAlignRight: 'col-start-2',\n lineHorizontal: 'h-2 w-full row-start-2',\n lineHorizontalAlignRight: 'group-last/steph:bg-transparent',\n lineHorizontalAlignLeft: 'group-first/steph:bg-transparent',\n\n lineIncomplete: 's-bg-disabled',\n lineComplete: 's-bg-primary',\n\n content: 'last:mb-0 group-last/step:last:pb-0',\n contentVertical: 'row-span-2 pb-32',\n contentHorizontal: 'col-span-3 px-16 row-start-1 text-center',\n};\n\nexport const steps = {\n wrapper: 'w-full',\n horizontal: 'flex',\n};\n\nexport const card = {\n base: 'cursor-pointer overflow-hidden relative transition-all',\n shadow: 'group rounded-8 s-surface-elevated-200 hover:s-surface-elevated-200-hover active:s-surface-elevated-200-active',\n selected: '!s-bg-selected !hover:s-bg-selected-hover !active:s-bg-selected-active',\n outline: 'absolute border-2 rounded-8 inset-0 transition-all',\n outlineUnselected: 'border-transparent group-active:s-border-active',\n outlineSelected: 's-border-selected group-hover:s-border-selected-hover group-active:s-border-selected-active',\n flat: 'border-2 rounded-4',\n flatUnselected: 's-bg hover:s-bg-hover active:s-bg-active s-border hover:s-border-hover active:s-border-active',\n flatSelected:\n 's-bg-selected hover:s-bg-selected-hover active:s-bg-selected-active s-border-selected hover:s-border-selected-hover active:s-border-selected-active',\n a11y: 'sr-only',\n};\n\nexport const switchToggle = {\n base: 'block relative h-24 w-44 cursor-pointer group focusable rounded-full',\n disabled: 'pointer-events-none',\n track: 'absolute top-0 left-0 h-full w-full rounded-full transition-colors',\n trackActive: 's-bg-primary group-hover:s-bg-primary-hover',\n trackInactive: 'bg-[--w-color-switch-track-background] group-hover:bg-[--w-color-switch-track-background-hover]',\n trackDisabled: 's-bg-disabled-subtle',\n handle: 'absolute transform-gpu h-16 w-16 top-4 left-4 rounded-full transition-transform',\n handleSelected: 'translate-x-20',\n handleNotDisabled: 's-bg shadow-s',\n handleDisabled: 's-bg-disabled',\n a11y: 'sr-only',\n};\n\nexport const toaster = {\n wrapper: 'fixed transform translate-z-0 bottom-16 left-0 right-0 mx-8 sm:mx-16 z-50 pointer-events-none',\n base: 'grid auto-rows-auto justify-items-center justify-center mx-auto pointer-events-none',\n content: 'w-full',\n};\n\nexport const toast = {\n wrapper: 'relative overflow-hidden w-full',\n base: 'flex group p-8 mt-16 rounded-8 border-2 pointer-events-auto transition-all',\n positive: 's-bg-positive-subtle s-border-positive-subtle s-text',\n warning: 's-bg-warning-subtle s-border-warning-subtle s-text',\n negative: 's-bg-negative-subtle s-border-negative-subtle s-text',\n iconBase: 'shrink-0 rounded-full w-[16px] h-[16px] m-[8px]',\n iconPositive: 's-icon-positive',\n iconWarning: 's-icon-warning',\n iconNegative: 's-icon-negative',\n iconLoading: 'animate-bounce',\n content: 'self-center mr-8 py-4 last-child:mb-0',\n close: 'bg-transparent ml-auto p-[8px] s-icon hover:s-icon-hover active:s-icon-active',\n};\n\nexport const tabs = {\n wrapper: 'inline-block border-b s-border mb-32',\n base: 'inline-grid relative -mb-1',\n selectionIndicator: 'absolute s-border-selected -bottom-0 border-b-4 transition-all',\n};\n\nexport const tab = {\n base: 'grid items-center font-bold gap-8 focusable antialias p-16 pb-8 border-b-4 bg-transparent border-transparent hover:s-text-link hover:s-border-primary',\n inactive: 's-text-subtle',\n active: 's-text-link s-border-selected',\n icon: 'mx-auto',\n content: 'flex items-center justify-center gap-8',\n contentUnderlined: 'content-underlined', // content-underlined is a no-op that prevents a quirk in how Vue handles class bindings\n};\n\n// Todo: Handle dynamic classnames\nexport const gridLayout = {\n cols1: 'grid-cols-1',\n cols2: 'grid-cols-2',\n cols3: 'grid-cols-3',\n cols4: 'grid-cols-4',\n cols5: 'grid-cols-5',\n cols6: 'grid-cols-6',\n cols7: 'grid-cols-7',\n cols8: 'grid-cols-8',\n cols9: 'grid-cols-9',\n};\n\nexport const buttonReset = 'focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block';\n\nexport const expandable = {\n wrapper: 'will-change-height s-text',\n box: 's-surface-sunken hover:s-bg-hover active:s-bg-active py-0 px-0 group block relative break-words last-child:mb-0 rounded-8',\n bleed: '-mx-16 rounded-l-0 rounded-r-0 sm:mx-0 sm:rounded-8',\n chevron: 'inline-block align-middle s-icon',\n chevronNonBox: 'ml-8',\n chevronTransform: 'transform transition-transform transform-gpu ease-in-out',\n chevronExpand: '-rotate-180',\n chevronCollapse: 'rotate-180',\n\n // These are web component specific classes, using the ::part-selector:\n elementsChevronDownTransform:\n 'part-[w-icon-chevron-down-16-part]:transform part-[w-icon-chevron-down-16-part]:transition-transform part-[w-icon-chevron-down-16-part]:transform-gpu part-[w-icon-chevron-down-16-part]:ease-in-out',\n elementsChevronUpTransform:\n 'part-[w-icon-chevron-up-16-part]:transform part-[w-icon-chevron-up-16-part]:transition-transform part-[w-icon-chevron-up-16-part]:transform-gpu part-[w-icon-chevron-up-16-part]:ease-in-out',\n elementsChevronExpand: 'part-[w-icon-chevron-down-16-part]:-rotate-180',\n elementsChevronCollapse: 'part-[w-icon-chevron-up-16-part]:rotate-180',\n\n expansion: 'overflow-hidden',\n expansionNotExpanded: 'h-0 invisible',\n button: 'focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 hover:underline focus-visible:underline',\n buttonBox: 'w-full text-left relative inline-flex items-center justify-between group relative break-words last-child:mb-0 p-16 rounded-8',\n contentWithTitle: 'pt-0',\n title: 'flex w-full justify-between items-center',\n titleType: 't4',\n};\n\nconst buttonDefaultStyling = 'font-bold focusable justify-center transition-colors ease-in-out';\n\nconst buttonColors = {\n primary:\n '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]',\n secondary: 's-text-link s-border s-bg hover:s-bg-hover hover:s-border-hover active:s-bg-active',\n utility: 's-text s-bg hover:s-bg-hover active:s-bg-active s-border hover:s-border-hover active:s-border-active',\n destructive: 's-bg-negative s-text-inverted hover:s-bg-negative-hover active:s-bg-negative-active',\n 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]',\n disabled: 's-text-inverted s-bg-disabled',\n quiet: 'bg-transparent s-text-link hover:s-bg-hover active:s-bg-active',\n utilityQuiet: 's-text bg-transparent hover:s-bg-hover active:s-bg-active',\n negativeQuiet: 'bg-transparent s-text-negative hover:s-bg-negative-subtle-hover active:s-bg-negative-subtle-active',\n loading: 's-text s-bg-subtle',\n link: 's-text-link',\n};\n\nconst buttonTypes = {\n primary: `border-0 rounded-8 ${buttonDefaultStyling}`,\n secondary: `border-2 rounded-8 ${buttonDefaultStyling}`,\n utility: `border rounded-4 ${buttonDefaultStyling}`,\n negative: `border-0 rounded-8 ${buttonDefaultStyling}`,\n pill: `p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${buttonDefaultStyling}`,\n link: `bg-transparent focusable ease-in-out inline active:underline hover:underline focus:underline ${buttonColors.link}`,\n};\n\nconst buttonSizes = {\n xsmall: 'py-6 px-16',\n small: 'py-8 px-16',\n medium: 'py-10 px-14',\n large: 'py-12 px-16',\n utility: 'py-[11px] px-[15px]',\n smallUtility: 'py-[7px] px-[15px]',\n pill: 'min-h-[44px] min-w-[44px]',\n pillSmall: 'min-h-32 min-w-32',\n link: 'p-0',\n};\n\nconst buttonTextSizes = {\n medium: 'text-m leading-[24]',\n xsmall: 'text-xs',\n};\n\nconst buttonVariants = {\n inProgress: `border-transparent animate-inprogress pointer-events-none ${buttonColors.loading}`, // .button--in-progress, a.button--in-progress:visited\n quiet: `border-0 rounded-8 ${buttonDefaultStyling}`,\n utilityQuiet: `border-0 rounded-4 ${buttonDefaultStyling}`,\n negativeQuiet: `border-0 rounded-8 ${buttonDefaultStyling}`,\n isDisabled: `font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${buttonColors.disabled}`, // .button:disabled, .button--is-disabled\n};\n\nexport const button = {\n // Buttontypes\n secondary: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonColors.secondary}`, // .button--secondary, .button--default, .button\n secondaryHref: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonColors.secondary}`,\n secondaryDisabled: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonVariants.isDisabled}`,\n secondarySmall: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonTypes.secondary} ${buttonColors.secondary}`,\n secondarySmallDisabled: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonTypes.secondary} ${buttonVariants.isDisabled}`,\n secondaryQuiet: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonColors.quiet}`,\n secondaryQuietDisabled: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`,\n secondarySmallQuiet: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonVariants.quiet} ${buttonColors.quiet}`,\n secondarySmallQuietDisabled: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`,\n secondaryLoading: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonVariants.inProgress}`,\n secondarySmallLoading: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonTypes.secondary} ${buttonVariants.inProgress}`,\n secondarySmallQuietLoading: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.inProgress}`,\n secondaryQuietLoading: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.inProgress}`,\n\n primary: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.primary} ${buttonColors.primary}`, // .button--primary, .button--cta\n primaryDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.isDisabled} ${buttonTypes.primary}`,\n primarySmall: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonTypes.primary} ${buttonColors.primary}`,\n primarySmallDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.isDisabled} ${buttonTypes.primary} `,\n primaryQuiet: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonColors.quiet}`,\n primaryQuietDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`,\n primarySmallQuiet: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.quiet} ${buttonColors.quiet}`,\n primarySmallQuietDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`,\n primaryLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.inProgress} ${buttonTypes.primary}`,\n primarySmallLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.inProgress} ${buttonTypes.primary}`,\n primarySmallQuietLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.inProgress} ${buttonTypes.primary}`,\n primaryQuietLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.inProgress}`,\n\n utility: `${buttonSizes.utility} ${buttonTextSizes.medium} ${buttonTypes.utility} ${buttonColors.utility}`, // .button--utility\n utilityDisabled: `${buttonSizes.utility} ${buttonTextSizes.medium} ${buttonTypes.utility} ${buttonVariants.isDisabled}`,\n utilityQuiet: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.utilityQuiet} ${buttonColors.utilityQuiet}`, // .button--utility-flat\n utilityQuietDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.utilityQuiet} ${buttonVariants.isDisabled}`,\n utilitySmall: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonTypes.utility} ${buttonColors.utility}`,\n utilitySmallDisabled: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonTypes.utility} ${buttonVariants.isDisabled}`,\n utilitySmallQuiet: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonVariants.utilityQuiet} ${buttonColors.utilityQuiet}`,\n utilitySmallQuietDisabled: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonVariants.utilityQuiet} ${buttonVariants.isDisabled}`,\n utilityLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.utility} ${buttonVariants.inProgress}`,\n utilitySmallLoading: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonTypes.utility} ${buttonVariants.inProgress}`,\n utilityQuietLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.inProgress} ${buttonVariants.utilityQuiet}`,\n utilitySmallQuietLoading: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonVariants.inProgress} ${buttonVariants.utilityQuiet}`,\n\n negative: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.negative} ${buttonColors.destructive}`, // .button--destructive\n negativeDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.negative} ${buttonVariants.isDisabled}`,\n negativeQuiet: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.negativeQuiet} ${buttonColors.negativeQuiet}`, // .button--destructive-flat\n negativeQuietDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.negativeQuiet}${buttonVariants.isDisabled}`,\n negativeSmall: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonTypes.negative} ${buttonColors.destructive}`,\n negativeSmallDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonTypes.negative} ${buttonVariants.isDisabled}`,\n negativeSmallQuiet: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.negativeQuiet} ${buttonColors.negativeQuiet}`,\n negativeSmallQuietDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.negativeQuiet} ${buttonVariants.isDisabled}`,\n negativeLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.negative} ${buttonVariants.inProgress}`,\n negativeSmallLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.inProgress} ${buttonTypes.negative}`,\n negativeQuietLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.negativeQuiet} ${buttonTypes.negative} ${buttonVariants.inProgress}`,\n negativeSmallQuietLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.negativeQuiet} ${buttonVariants.inProgress}`,\n\n pill: `${buttonSizes.pill} ${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonColors.pill}`, // .button--pill\n pillSmall: `${buttonSizes.pillSmall} ${buttonTextSizes.xsmall} ${buttonTypes.pill} ${buttonColors.pill}`,\n pillLoading: `${buttonSizes.pill} ${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonVariants.inProgress}`,\n pillSmallLoading: `${buttonSizes.pillSmall} ${buttonTextSizes.xsmall} ${buttonTypes.pill} ${buttonVariants.inProgress}`,\n\n link: `${buttonSizes.link} ${buttonTextSizes.medium} ${buttonTypes.link}`,\n linkSmall: `${buttonSizes.link} ${buttonTextSizes.xsmall} ${buttonTypes.link}`,\n linkAsButton: 'inline-block active:no-underline hover:no-underline focus:no-underline text-center',\n a11y: 'sr-only',\n fullWidth: 'w-full max-w-full',\n contentWidth: 'max-w-max',\n};\n\nexport const buttonGroup = {\n wrapper: 'inline-flex rounded-4 overflow-hidden',\n raised: 'shadow-s',\n vertical: 'flex-col',\n nonOutlinedVertical: 'divide-y',\n nonOutlinedHorizontal: 'divide-x',\n};\n\nexport const buttonGroupItem = {\n wrapper: 'relative s-text',\n outlined: 'border hover:z-30',\n outlinedVertical: '-mb-1 last:mb-0 first:rounded-lt-4 first:rounded-rt-4 last:rounded-lb-4 last:rounded-rb-4',\n outlinedHorizontal: '-mr-1 last:mr-0 first:rounded-lt-4 first:rounded-lb-4 last:rounded-rt-4 last:rounded-rb-4',\n outlinedVerticalResets: 'px-1 pt-1 last:pb-1 -mb-1 last:mb-0',\n outlinedHorizontalResets: 'py-1 pl-1 last:pr-1 -mr-1 last:mr-0',\n outlinedUnselected: 'border-[--w-color-buttongroup-utility-border] active:border-[--w-color-buttongroup-utility-border-selected]',\n outlinedSelected: 'active:border-[--w-color-buttongroup-utility-border-selected]',\n unselected:\n 's-bg hover:bg-[--w-color-buttongroup-utility-background-hover] active:s-text active:bg-[--w-color-buttongroup-utility-background-selected]',\n selected: 'z-30 bg-[--w-color-buttongroup-utility-background-selected]',\n};\n\nexport const modal = {\n backdrop:\n '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]',\n 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',\n content: 'block overflow-y-auto overflow-x-hidden last-child:mb-0 grow shrink px-16 sm:px-32 relative',\n footer: 'flex justify-end shrink-0 px-16 sm:px-32',\n transitionTitle: 'transition-all duration-300',\n transitionTitleCenter: 'justify-self-center self-center',\n transitionTitleColSpan: 'col-span-2',\n title:\n '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',\n titleText: 'mb-0 h4 sm:h3',\n titleButton: `${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonColors.pill} sm:min-h-[44px] sm:min-w-[44px] min-h-[32px] min-w-[32px]`,\n titleButtonLeft: '-ml-8 sm:-ml-12 justify-self-start',\n titleButtonRight: '-mr-8 sm:-mr-12 justify-self-end',\n titleButtonIcon: 'h-16 w-16 sm:h-24 sm:w-24',\n titleButtonIconRotated: 'transform rotate-90',\n};\n\nexport const modalElement = {\n // several items in here are 'resets' for the <dialog> element\n dialogEl:\n 'bg-transparent backface-hidden w-unset h-unset max-w-unset max-h-unset p-0 m-auto border-0 inset-0 open:flex open:fixed sm:place-content-center sm:place-items-center items-end [--w-modal-max-height:80%] [--w-modal-width:640px]',\n dialogInner:\n 'transition-all relative pb-safe-[32] sm:pb-32 shadow-m max-h-[--w-modal-max-height] min-h-[--w-modal-min-height] w-[--w-modal-width] h-[--w-modal-height] ease-in-out backface-hidden will-change-height rounded-8 sm:mx-16 s-bg flex flex-col overflow-hidden lt-sm:rounded-b-0',\n contentSlot: 'block overflow-y-auto overflow-x-hidden last-child:mb-0 grow shrink px-16 sm:px-32 relative',\n header: 'relative pb-8',\n headerTitleBar: 'pt-16 sm:pt-24 px-16 sm:px-32 grid gap-12 grid-cols-[auto_1fr_auto] items-start shrink-0!',\n headerButton:\n 'sm:min-h-[32px] sm:min-w-[32px] min-h-[40px] min-w-[40px] text-m leading-[24] p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding font-bold focusable transition-colors ease-in-out',\n headerButtonLeft:\n '-ml-8 s-icon bg-transparent hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]',\n headerCloseButton:\n '-mr-8 s-icon bg-transparent hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]',\n headerCloseButtonOnImage: `absolute right-8 top-8 z-10 s-color-inverted bg-[var(--w-black)/70] hover:bg-[var(--w-black)/85] active:bg-[var(--w-black)] s-text-inverted`,\n headerTitle: 'mb-0 t3 self-center',\n headerTitleWithBackButton: 'justify-self-center',\n headerTitleWithoutBackButton: 'col-span-2',\n headerTitleWithTopArea: 'pt-16 px-16 sm:px-32',\n footer: 'flex justify-end shrink-0 px-16 sm:px-32 pt-24',\n};\n\nexport const alert = {\n wrapper: 'flex p-16 border border-l-4 rounded-4 s-text',\n willChangeHeight: 'will-change-height',\n textWrapper: 'last-child:mb-0 text-s',\n title: 'text-s',\n icon: 'w-16 mr-8 min-w-16',\n negative: 's-border-negative-subtle s-border-l-negative s-bg-negative-subtle',\n negativeIcon: 's-icon-negative',\n positive: 's-border-positive-subtle s-border-l-positive s-bg-positive-subtle',\n positiveIcon: 's-icon-positive',\n warning: 's-border-warning-subtle s-border-l-warning s-bg-warning-subtle',\n warningIcon: 's-icon-warning',\n info: 's-border-info-subtle s-border-l-info s-bg-info-subtle',\n infoIcon: 's-icon-info',\n};\n\nexport const input = {\n // wrapper classes\n wrapper: 'relative',\n // input classes\n base: 'block text-m leading-m mb-0 px-8 py-12 rounded-4 w-full focusable focus:[--w-outline-offset:-2px] caret-current', // true\n default: 'border-1 s-text s-bg s-border hover:s-border-hover active:s-border-selected', // !isInvalid && !isDisabled && !isReadOnly\n disabled: 'border-1 s-text-disabled s-bg-disabled-subtle s-border-disabled pointer-events-none', // !isInvalid && isDisabled && !isReadOnly\n invalid: 'border-1 s-text-negative s-bg s-border-negative hover:s-border-negative-hover outline-[--w-s-color-border-negative]!', // isInvalid && !isDisabled && !isReadOnly\n readOnly: 'pl-0 bg-transparent pointer-events-none', // !isInvalid && !isDisabled && isReadOnly\n placeholder: 'placeholder:s-text-placeholder',\n suffix: 'pr-40',\n prefix: 'pl-[var(--w-prefix-width,_40px)]',\n // textarea classes\n textArea: 'min-h-[42] sm:min-h-[45]',\n};\n\nexport const select = {\n base: 'block text-m mb-0 py-12 pr-32 rounded-4 w-full focusable focus:[--w-outline-offset:-2px] appearance-none cursor-pointer caret-current',\n default: 's-text s-bg pl-8 border-1 s-border hover:s-border-hover active:s-border-active',\n disabled:\n 's-text-disabled s-bg-disabled-subtle pl-8 border-1 s-border-disabled hover:s-border-disabled active:s-border-disabled pointer-events-none',\n invalid:\n 's-text s-bg pl-8 border-1 s-border-negative hover:s-border-negative-hover active:s-border-active outline-[--w-s-color-border-negative]!',\n readOnly: 's-text bg-transparent pl-0 border-0 pointer-events-none before:hidden',\n wrapper: 'relative',\n selectWrapper: `relative before:block before:absolute before:right-0 before:bottom-0 before:w-32 before:h-full before:pointer-events-none `,\n chevron: 'block absolute top-[30%] right-0 bottom-0 w-32 h-full s-icon pointer-events-none cursor-pointer',\n chevronDisabled: 'opacity-25',\n};\n\nexport const label = {\n base: 'antialiased block relative text-s font-bold pb-4 cursor-pointer s-text',\n optional: 'pl-8 font-normal text-s s-text-subtle',\n};\n\nexport const helpText = {\n base: 'text-xs mt-4 block',\n color: 's-text-subtle',\n colorInvalid: 's-text-negative',\n};\n\nconst prefixSuffixWrapper =\n 'absolute top-0 bottom-0 flex justify-center items-center focusable rounded-4 focus:[--w-outline-offset:-2px] bg-transparent ';\n\nexport const suffix = {\n wrapper: prefixSuffixWrapper + 'right-0',\n wrapperWithLabel: 'w-max pr-12',\n wrapperWithIcon: 'w-40',\n label: 'antialiased block relative cursor-default pb-0 font-bold text-xs s-text',\n};\n\nexport const prefix = {\n wrapper: prefixSuffixWrapper + 'left-0',\n wrapperWithLabel: 'w-max pl-12',\n wrapperWithIcon: 'w-40',\n label: 'antialiased block relative cursor-default pb-0 font-bold text-xs s-text',\n};\n\nexport const breadcrumbs = {\n wrapper: 'flex space-x-8',\n text: 's-text',\n link: 's-text-link',\n separator: 'select-none s-icon',\n a11y: 'sr-only',\n};\n\nexport const toggle = {\n // wrapper classes\n field: 'relative text-m', // true\n wrapper: 'relative py-1', // true\n wrapperRadioButtons: 'inline-flex font-bold rounded-8 focus-within:focusable', // isRadioButton && !isEqualWidth\n wrapperRadioButtonsJustified: 'flex font-bold rounded-8 focus-within:focusable', // isRadioButton && isEqualWidth,\n\n // group classes\n radioButtonsGroup: 'group', // isRadioButton\n radioButtonsGroupJustified: 'grow-1 shrink-0 basis-auto', // isRadioButton && isEqualWidth\n\n // input classes\n input: 'peer',\n a11y: 'sr-only',\n\n // label classes\n label:\n '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', // !isRadioButton\n labelBefore: 'before:content-[\"\"] before:block', // !isRadioButton && !isIndeterminate\n checkbox:\n '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', // isCheckbox && !isIndeterminate && !isInvalid && !isDisabled\n checkboxInvalid:\n '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', // isCheckbox && !isIndeterminate && isInvalid && !isDisabled\n checkboxDisabled:\n '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', // isCheckbox && !isIndeterminate && !isInvalid && isDisabled\n indeterminate:\n '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', // isCheckbox && isIndeterminate && !isInvalid && !isDisabled\n indeterminateInvalid:\n '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', // isCheckbox && isIndeterminate && isInvalid && !isDisabled\n indeterminateDisabled:\n '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', // isCheckbox && isIndeterminate && !isInvalid && isDisabled\n radio:\n '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', // isRadio && !isDisabled && !isInvalid\n radioInvalid:\n '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', // isRadio && isInvalid && !isDisabled\n radioDisabled:\n 'before:s-bg-disabled-subtle before:s-border-disabled pointer-events-none before:rounded-full peer-checked:before:border-[6]', // isRadio && !isInvalid && isDisabled\n radioButtonsLabel:\n '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', // isRadioButtons\n radioButtonsRegular: 'text-s py-8 pl-12 pr-14', // isRadioButtons && !isSmall\n radioButtonsSmall: 'text-xs py-[5px] px-[8px]', // isRadioButtons && isSmall\n};\n\nexport const deadToggle = {\n wrapper: `${toggle.wrapper} h-20 w-20 pointer-events-none`,\n input: `${toggle.input} hidden`,\n inputVue: 'hidden',\n labelVue: '-mt-2',\n labelRadio: `${toggle.label} ${toggle.labelBefore} ${toggle.radio}`,\n labelCheckbox: `${toggle.label} ${toggle.labelBefore} ${toggle.checkbox}`,\n};\n\nexport const clickable = {\n toggle: 'absolute inset-0 h-full w-full appearance-none cursor-pointer focusable focusable-inset',\n label: 'antialiased block relative text-s font-bold s-text px-12 py-8 cursor-pointer focusable focusable-inset',\n buttonOrLink: 'bg-transparent focusable',\n buttonOrLinkStretch: 'inset-0 absolute',\n};\n\nexport const combobox = {\n wrapper: 'relative',\n base: 'absolute left-0 right-0 s-bg pb-4 rounded-8 overflow-hidden shadow-m',\n listbox: 'm-0 p-0 select-none list-none',\n option: 'block cursor-pointer p-8',\n optionUnselected: 'hover:s-bg-hover',\n optionSelected: 's-bg-selected hover:s-bg-selected-hover',\n textMatch: 'font-bold',\n a11y: 'sr-only',\n};\n\nexport const attention = {\n base: 'border-2 relative flex items-start',\n tooltip: 's-bg-inverted border-[--w-s-color-background-inverted] shadow-m s-text-inverted-static rounded-4 py-6 px-8',\n callout: 'bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8',\n 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',\n popover:\n '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',\n\n arrowBase: 'absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform',\n arrowDirectionLeftStart: '-left-[8px]',\n arrowDirectionLeft: '-left-[8px]',\n arrowDirectionLeftEnd: '-left-[8px]',\n arrowDirectionRightStart: '-right-[8px]',\n arrowDirectionRight: '-right-[8px]',\n arrowDirectionRightEnd: '-right-[8px]',\n arrowDirectionBottomStart: '-bottom-[8px]',\n arrowDirectionBottom: '-bottom-[8px]',\n arrowDirectionBottomEnd: '-bottom-[8px]',\n arrowDirectionTopStart: '-top-[8px]',\n arrowDirectionTop: '-top-[8px]',\n arrowDirectionTopEnd: '-top-[8px]',\n arrowTooltip: 's-bg-inverted border-[--w-s-color-background-inverted]',\n arrowCallout: 'bg-[--w-color-callout-background] border-[--w-color-callout-border]',\n arrowPopover: 'bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300]',\n arrowHighlight: 'bg-[--w-color-callout-background] border-[--w-color-callout-border]',\n\n content: 'last-child:mb-0',\n notCallout: 'absolute z-50',\n closeBtn: `${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonColors.pill} justify-self-end -mr-8 ml-8`,\n};\n\nexport const pagination = {\n link: 'hover:no-underline focus:no-underline focusable inline-flex justify-center items-center transition-colors ease-in-out min-h-[44px] min-w-[44px] p-4 rounded-full border-0 hover:bg-clip-padding',\n currentPage: 'block md:hidden p-8 font-bold',\n icon: 's-icon hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]',\n containerNav: 'flex items-center justify-center p-8',\n a11y: 'sr-only',\n pages: 'hidden md:block s-text-link',\n active: 's-bg-primary s-text-inverted',\n notActive: 'hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]',\n};\n\n// remove these in v3\nexport const backwardsCompatibleClasses = {\n removedActiveTrack: 'top-[19px]',\n};\n", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return supportedLocales.find((locale) => usedLocale === locale || usedLocale.toLowerCase().includes(locale)) || defaultLocale;\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g LANG environment variable to be set on the server.\n */\n const serverLocale = process.env.NMP_LANGUAGE || Intl.DateTimeFormat().resolvedOptions().locale;\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document.documentElement.lang;\n return getSupportedLocale(htmlLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages,\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages,\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "import { classMap } from 'lit/directives/class-map.js';\n\nconst camelCaseToKebabCase = (str) => str.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();\n\n// Source: https://medium.com/@dayton-bobbitt/generating-attributes-for-litelement-properties-f972ef658137\nexport function kebabCaseAttributes(constructor) {\n return class extends constructor {\n static createProperty(name, options) {\n let customOptions = options;\n\n // derive the attribute name if not already defined or disabled\n if (typeof options?.attribute === 'undefined' || options?.attribute === true) {\n customOptions = Object.assign({}, options, {\n attribute: camelCaseToKebabCase(name.toString()),\n });\n }\n\n super.createProperty(name, customOptions);\n }\n };\n}\n\nexport function classes(defn) {\n const classes = [];\n for (const [key, value] of Object.entries(defn)) {\n if (value) classes.push(key);\n }\n return classes.join(' ');\n}\n\nexport function fclasses(definition) {\n const defn = {};\n for (const [key, value] of Object.entries(definition)) {\n for (const className of key.split(' ')) {\n defn[className] = value;\n }\n }\n return classMap(defn);\n}\n\nexport function generateRandomId() {\n return `m${Math.random().toString(36).slice(2)}`;\n}\n", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"attention.aria.callout\\\":[\\\"En gr\u00F8n taleboble der introducerer noget nyt\\\"],\\\"attention.aria.close\\\":[\\\"Luk\\\"],\\\"attention.aria.highlight\\\":[\\\"En opm\u00E6rksomhedsskabende taleboble med vigtig information\\\"],\\\"attention.aria.pointingDown\\\":[\\\"peger nedad\\\"],\\\"attention.aria.pointingLeft\\\":[\\\"peger til venstre\\\"],\\\"attention.aria.pointingRight\\\":[\\\"peger til h\u00F8jre\\\"],\\\"attention.aria.pointingUp\\\":[\\\"peger opad\\\"],\\\"attention.aria.popover\\\":[\\\"En hvid taleboble med mere information\\\"],\\\"attention.aria.tooltip\\\":[\\\"En sort taleboble med flere oplysninger\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"attention.aria.callout\\\":[\\\"A green speech bubble introducing something new\\\"],\\\"attention.aria.close\\\":[\\\"Close\\\"],\\\"attention.aria.highlight\\\":[\\\"An attention speech bubble with important information\\\"],\\\"attention.aria.pointingDown\\\":[\\\"pointing down\\\"],\\\"attention.aria.pointingLeft\\\":[\\\"pointing left\\\"],\\\"attention.aria.pointingRight\\\":[\\\"pointing right\\\"],\\\"attention.aria.pointingUp\\\":[\\\"pointing up\\\"],\\\"attention.aria.popover\\\":[\\\"A white speech bubble providing additional information\\\"],\\\"attention.aria.tooltip\\\":[\\\"A black speech bubble providing complementary information\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"attention.aria.callout\\\":[\\\"Vihre\u00E4 puhekupla, joka esittelee jotain uutta\\\"],\\\"attention.aria.close\\\":[\\\"Sulje\\\"],\\\"attention.aria.highlight\\\":[\\\"Puhekupla, joka sis\u00E4lt\u00E4\u00E4 t\u00E4rke\u00E4\u00E4 tietoa\\\"],\\\"attention.aria.pointingDown\\\":[\\\"osoittaa alas\\\"],\\\"attention.aria.pointingLeft\\\":[\\\"osoittaa vasemmalle\\\"],\\\"attention.aria.pointingRight\\\":[\\\"osoittaa oikealle\\\"],\\\"attention.aria.pointingUp\\\":[\\\"osoittaa yl\u00F6s\\\"],\\\"attention.aria.popover\\\":[\\\"Valkoinen puhekupla, joka tarjoaa lis\u00E4tietoa\\\"],\\\"attention.aria.tooltip\\\":[\\\"Musta puhekupla, joka tarjoaa t\u00E4ydent\u00E4v\u00E4\u00E4 tietoa\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"attention.aria.callout\\\":[\\\"Gr\u00F8nn taleboble som introduserer noe nytt\\\"],\\\"attention.aria.close\\\":[\\\"Lukk\\\"],\\\"attention.aria.highlight\\\":[\\\"En uthevet taleboble med viktig informasjon\\\"],\\\"attention.aria.pointingDown\\\":[\\\"peker ned\\\"],\\\"attention.aria.pointingLeft\\\":[\\\"peker til venstre\\\"],\\\"attention.aria.pointingRight\\\":[\\\"peker til h\u00F8yre\\\"],\\\"attention.aria.pointingUp\\\":[\\\"peker opp\\\"],\\\"attention.aria.popover\\\":[\\\"En hvit taleboble som gir tilleggsinformasjon\\\"],\\\"attention.aria.tooltip\\\":[\\\"En svart taleboble som forklarer konteksten\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"attention.aria.callout\\\":[\\\"En gr\u00F6n pratbubbla som introducerar n\u00E5got nytt\\\"],\\\"attention.aria.close\\\":[\\\"St\u00E4ng\\\"],\\\"attention.aria.highlight\\\":[\\\"En pratbubbla med viktig information\\\"],\\\"attention.aria.pointingDown\\\":[\\\"pekar ned\\\"],\\\"attention.aria.pointingLeft\\\":[\\\"pekar v\u00E4nster\\\"],\\\"attention.aria.pointingRight\\\":[\\\"pekar h\u00F6ger\\\"],\\\"attention.aria.pointingUp\\\":[\\\"pekar upp\\\"],\\\"attention.aria.popover\\\":[\\\"En vit pratbubbla som ger ytterligare information\\\"],\\\"attention.aria.tooltip\\\":[\\\"En svart pratbubbla som ger kompletterande information\\\"]}\");", "// @warp-css;\nimport { html, LitElement } from 'lit';\n\nimport { classNames } from '@chbphone55/classnames';\nimport { property } from 'lit/decorators.js';\n\nimport { reset } from '../styles';\n\nimport { styles } from './styles';\n\n/**\n * `w-badge` is used for showing a small amount of non-interactive color-categorized metadata, like a status or count.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-badge--docs)\n */\nclass WarpBadge extends LitElement {\n @property({ type: String, reflect: true })\n variant: 'neutral' | 'info' | 'positive' | 'warning' | 'negative' | 'disabled' | 'price' | 'sponsored' = 'neutral';\n\n @property({ type: String, reflect: true })\n position: 'top-left' | 'top-right' | 'bottom-right' | 'bottom-left';\n\n static styles = [reset, styles];\n\n /** @internal */\n get _class() {\n return classNames([\n 'py-4 px-8 border-0 rounded-4 text-xs inline-flex',\n this.variant === 'neutral' && 'bg-[--w-color-badge-neutral-background] s-text',\n this.variant === 'info' && 'bg-[--w-color-badge-info-background] s-text',\n this.variant === 'positive' && 'bg-[--w-color-badge-positive-background] s-text',\n this.variant === 'warning' && 'bg-[--w-color-badge-warning-background] s-text',\n this.variant === 'negative' && 'bg-[--w-color-badge-negative-background] s-text',\n this.variant === 'disabled' && 's-bg-disabled s-text',\n this.variant === 'price' && 'bg-[--w-black/70] s-text-inverted-static',\n this.variant === 'sponsored' && 'bg-[--w-color-badge-sponsored-background] s-text',\n !!this.position && 'absolute backdrop-blur',\n this.position === 'top-left' && 'rounded-tl-0 rounded-tr-0 rounded-bl-0 top-0 left-0',\n this.position === 'top-right' && 'rounded-tl-0 rounded-tr-0 rounded-br-0 top-0 right-0',\n this.position === 'bottom-right' && 'rounded-tr-0 rounded-br-0 rounded-bl-0 bottom-0 right-0',\n this.position === 'bottom-left' && 'rounded-tl-0 rounded-br-0 rounded-bl-0 bottom-0 left-0',\n ]);\n }\n\n render() {\n return html`\n <div class=\"${this._class}\">\n <slot></slot>\n </div>\n `;\n }\n}\n\nif (!customElements.get('w-badge')) {\n customElements.define('w-badge', WarpBadge);\n}\n\nexport { WarpBadge };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-badge': WarpBadge;\n }\n}\n", "import { css } from 'lit'; export const styles = css`*,: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}.backdrop-blur{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.bg-\\\\[--w-black\\\\/70\\\\]{background-color:rgba(var(--w-rgb-black),.7)}.bg-\\\\[--w-color-badge-info-background\\\\]{background-color:var(--w-color-badge-info-background)}.bg-\\\\[--w-color-badge-negative-background\\\\]{background-color:var(--w-color-badge-negative-background)}.bg-\\\\[--w-color-badge-neutral-background\\\\]{background-color:var(--w-color-badge-neutral-background)}.bg-\\\\[--w-color-badge-positive-background\\\\]{background-color:var(--w-color-badge-positive-background)}.bg-\\\\[--w-color-badge-sponsored-background\\\\]{background-color:var(--w-color-badge-sponsored-background)}.bg-\\\\[--w-color-badge-warning-background\\\\]{background-color:var(--w-color-badge-warning-background)}.border-0{border-width:0}.rounded-4{border-radius:4px}.rounded-bl-0{border-bottom-left-radius:0}.rounded-br-0{border-bottom-right-radius:0}.rounded-tl-0{border-top-left-radius:0}.rounded-tr-0{border-top-right-radius:0}.inline-flex{display:inline-flex}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.absolute{position:absolute}.static{position:static}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-text{color:var(--w-s-color-text)}.s-text-inverted-static{color:var(--w-s-color-text-inverted-static)}.px-8{padding-left:.8rem;padding-right:.8rem}.py-4{padding-top:.4rem;padding-bottom:.4rem}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}`;\n", "// @warp-css;\nimport { html, LitElement, nothing } from 'lit';\n\nimport { classNames } from '@chbphone55/classnames';\nimport { property } from 'lit/decorators.js';\n\nimport { reset } from '../styles';\n\nimport { styles } from './styles';\n\n/**\n * Box is a layout component used for separating content areas on a page.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-box--docs)\n */\nclass WarpBox extends LitElement {\n @property({ type: Boolean, reflect: true })\n bleed: boolean;\n\n @property({ type: Boolean, reflect: true })\n bordered: boolean;\n\n @property({ type: Boolean, reflect: true })\n info: boolean;\n\n @property({ type: Boolean, reflect: true })\n neutral: boolean;\n\n @property({ type: String, reflect: true })\n role: string;\n\n // Slotted elements remain in lightDOM which allows for control of their style outside of shadowDOM.\n // ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,\n // so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.\n // https://stackoverflow.com/a/61631668\n static styles = [reset, styles];\n\n /** @internal */\n get _class() {\n return classNames([\n 'group block relative break-words last-child:mb-0 p-16 rounded-8',\n this.bleed && '-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8',\n this.info && 's-bg-info-subtle',\n this.neutral && 's-surface-sunken',\n this.bordered && 'border-2 s-border s-bg',\n ]);\n }\n\n /** @internal */\n get _optOutRoleWithDefault() {\n return this.role === '' ? nothing : this.role ?? 'region';\n }\n\n render() {\n return html`\n <div role=\"${this._optOutRoleWithDefault}\" class=\"${this._class}\">\n <slot></slot>\n </div>\n `;\n }\n}\n\nif (!customElements.get('w-box')) {\n customElements.define('w-box', WarpBox);\n}\n\nexport { WarpBox };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-box': WarpBox;\n }\n}\n", "import { css } from 'lit'; export const styles = css`*,: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}.border-2{border-width:2px}.rounded-8{border-radius:8px}.rounded-l-0{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-0{border-top-right-radius:0;border-bottom-right-radius:0}.block{display:block}.relative{position:relative}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-info-subtle{background-color:var(--w-s-color-background-info-subtle)}.s-border{border-color:var(--w-s-color-border)}.s-surface-sunken{background-color:var(--w-s-color-surface-sunken)}.-mx-16{margin-left:-1.6rem;margin-right:-1.6rem}.last-child\\\\:mb-0>:last-child{margin-bottom:0}.p-16{padding:1.6rem}.break-words{overflow-wrap:break-word}@media (min-width:480px){.sm\\\\:rounded-8{border-radius:8px}.sm\\\\:mx-0{margin-left:0;margin-right:0}}`;\n", "// @warp-css;\n\nimport { html, LitElement, TemplateResult } from 'lit';\n\nimport { i18n } from '@lingui/core';\nimport { interleave } from '@warp-ds/core/breadcrumbs';\nimport { property } from 'lit/decorators.js';\n\nimport { activateI18n } from '../i18n';\nimport { reset } from '../styles.js';\n\nimport { messages as daMessages } from './locales/da/messages.mjs';\nimport { messages as enMessages } from './locales/en/messages.mjs';\nimport { messages as fiMessages } from './locales/fi/messages.mjs';\nimport { messages as nbMessages } from './locales/nb/messages.mjs';\nimport { messages as svMessages } from './locales/sv/messages.mjs';\nimport { styles } from './styles.js';\n\nexport const ccBreadcrumbs = {\n wrapper: 'flex space-x-8',\n text: 's-text',\n link: 's-text-link',\n separator: 'select-none s-icon',\n a11y: 'sr-only',\n};\n\nconst separator = html`<span class=${ccBreadcrumbs.separator}>/</span>`;\n\n/**\n * Breadcrumbs show the navigation structure for the current location.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-breadcrumbs--docs)\n */\nclass WarpBreadcrumbs extends LitElement {\n @property({ attribute: 'aria-label', type: String })\n ariaLabel: string;\n\n static styles = [reset, styles];\n\n constructor() {\n super();\n activateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n this.ariaLabel = i18n._({\n id: 'breadcrumbs.ariaLabel',\n message: 'You are here',\n comment: 'Default screen reader message for the breadcrumb component',\n });\n }\n\n /** @internal */\n _children: Array<Element | TemplateResult>;\n\n connectedCallback() {\n super.connectedCallback();\n // Grab existing children at the point that the component is added to the page\n const flattenedChildren = Array.from(this.children)\n .flat(Infinity)\n .filter((child) => child);\n const styledChildren = flattenedChildren.map((child, index) => {\n if (typeof child === 'string') {\n const isLastEl = index === this.children.length - 1;\n return html`<span class=${ccBreadcrumbs.text} aria-current=${isLastEl ? 'page' : undefined}>${child}</span>`;\n }\n child.classList.add(child.tagName === 'A' ? ccBreadcrumbs.link : ccBreadcrumbs.text);\n return child;\n });\n\n // Interleave '/' separator with breadcrumbs\n this._children = interleave(styledChildren, separator);\n }\n\n render() {\n return html`\n <nav aria-labelledby=\"breadCrumbLabel\">\n <h2 id=\"breadCrumbLabel\" class=${ccBreadcrumbs.a11y}>${this.ariaLabel}</h2>\n <div class=${ccBreadcrumbs.wrapper}>${this._children}</div>\n </nav>\n `;\n }\n}\n\nif (!customElements.get('w-breadcrumbs')) {\n customElements.define('w-breadcrumbs', WarpBreadcrumbs);\n}\n\nexport { WarpBreadcrumbs };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-breadcrumbs': WarpBreadcrumbs;\n }\n}\n", "/**\n * Inject a separator between each item in a list\n * @param array List of items\n * @param separator Element to be interleaved between each item\n * @returns\n */\nexport function interleave(array, separator) {\n return array.flatMap((el) => [el, separator]).slice(0, -1);\n}\n", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"breadcrumbs.ariaLabel\\\":[\\\"Du er her\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"breadcrumbs.ariaLabel\\\":[\\\"You are here\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"breadcrumbs.ariaLabel\\\":[\\\"Olet t\u00E4ss\u00E4\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"breadcrumbs.ariaLabel\\\":[\\\"Her er du\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"breadcrumbs.ariaLabel\\\":[\\\"Du \u00E4r h\u00E4r\\\"]}\");", "import { css } from 'lit'; export const styles = css`*,: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}.flex{display:flex}.static{position:static}.s-text{color:var(--w-s-color-text)}.s-text-link{color:var(--w-s-color-text-link)}.s-icon{color:var(--w-s-color-icon)}.space-x-8>:not([hidden])~:not([hidden]){--w-space-x-reverse:0;margin-left:calc(.8rem*calc(1 - var(--w-space-x-reverse)));margin-right:calc(.8rem*var(--w-space-x-reverse))}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.select-none{-webkit-user-select:none;user-select:none}`;\n", "// @warp-css;\n\nimport { html, LitElement, PropertyValues } from 'lit';\n\nimport { classNames } from '@chbphone55/classnames';\nimport { i18n } from '@lingui/core';\nimport { FormControlMixin } from '@open-wc/form-control';\nimport WarpElement from '@warp-ds/elements-core';\nimport { property } from 'lit/decorators.js';\n\nimport { activateI18n } from '../i18n';\nimport { reset } from '../styles.js';\n\nimport { messages as daMessages } from './locales/da/messages.mjs';\nimport { messages as enMessages } from './locales/en/messages.mjs';\nimport { messages as fiMessages } from './locales/fi/messages.mjs';\nimport { messages as nbMessages } from './locales/nb/messages.mjs';\nimport { messages as svMessages } from './locales/sv/messages.mjs';\nimport { styles } from './styles.js';\n\ntype ButtonVariant = 'primary' | 'secondary' | 'negative' | 'utility' | 'pill' | 'link';\n\nconst variants = ['primary', 'secondary', 'negative', 'utility', 'pill', 'link'];\n\ntype ButtonType = 'button' | 'submit' | 'reset';\n\nconst buttonDefaultStyling = 'font-bold focusable justify-center transition-colors ease-in-out';\n\nconst buttonColors = {\n primary:\n '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]',\n secondary: 's-text-link s-border s-bg hover:s-bg-hover hover:s-border-hover active:s-bg-active',\n utility: 's-text s-bg hover:s-bg-hover active:s-bg-active s-border hover:s-border-hover active:s-border-active',\n destructive: 's-bg-negative s-text-inverted hover:s-bg-negative-hover active:s-bg-negative-active',\n 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]',\n disabled: 's-text-inverted s-bg-disabled',\n quiet: 'bg-transparent s-text-link hover:s-bg-hover active:s-bg-active',\n utilityQuiet: 's-text bg-transparent hover:s-bg-hover active:s-bg-active',\n negativeQuiet: 'bg-transparent s-text-negative hover:s-bg-negative-subtle-hover active:s-bg-negative-subtle-active',\n loading: 's-text s-bg-subtle',\n link: 's-text-link',\n};\n\nconst buttonTypes = {\n primary: `border-0 rounded-8 ${buttonDefaultStyling}`,\n secondary: `border-2 rounded-8 ${buttonDefaultStyling}`,\n utility: `border rounded-4 ${buttonDefaultStyling}`,\n negative: `border-0 rounded-8 ${buttonDefaultStyling}`,\n pill: `p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${buttonDefaultStyling}`,\n link: `bg-transparent focusable ease-in-out inline active:underline hover:underline focus:underline ${buttonColors.link}`,\n};\n\nconst buttonSizes = {\n xsmall: 'py-6 px-16',\n small: 'py-8 px-16',\n medium: 'py-10 px-14',\n large: 'py-12 px-16',\n utility: 'py-[11px] px-[15px]',\n smallUtility: 'py-[7px] px-[15px]',\n pill: 'min-h-[44px] min-w-[44px]',\n pillSmall: 'min-h-32 min-w-32',\n link: 'p-0',\n};\n\nconst buttonTextSizes = {\n medium: 'text-m leading-[24]',\n xsmall: 'text-xs',\n};\n\nconst buttonVariants = {\n inProgress: `border-transparent animate-inprogress pointer-events-none ${buttonColors.loading}`, // .button--in-progress, a.button--in-progress:visited\n quiet: `border-0 rounded-8 ${buttonDefaultStyling}`,\n utilityQuiet: `border-0 rounded-4 ${buttonDefaultStyling}`,\n negativeQuiet: `border-0 rounded-8 ${buttonDefaultStyling}`,\n isDisabled: `font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${buttonColors.disabled}`, // .button:disabled, .button--is-disabled\n};\n\nexport const ccButton = {\n // Buttontypes\n secondary: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonColors.secondary}`, // .button--secondary, .button--default, .button\n secondaryHref: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonColors.secondary}`,\n secondaryDisabled: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonVariants.isDisabled}`,\n secondarySmall: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonTypes.secondary} ${buttonColors.secondary}`,\n secondarySmallDisabled: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonTypes.secondary} ${buttonVariants.isDisabled}`,\n secondaryQuiet: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonColors.quiet}`,\n secondaryQuietDisabled: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`,\n secondarySmallQuiet: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonVariants.quiet} ${buttonColors.quiet}`,\n secondarySmallQuietDisabled: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`,\n secondaryLoading: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonVariants.inProgress}`,\n secondarySmallLoading: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonTypes.secondary} ${buttonVariants.inProgress}`,\n secondarySmallQuietLoading: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.inProgress}`,\n secondaryQuietLoading: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.inProgress}`,\n\n primary: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.primary} ${buttonColors.primary}`, // .button--primary, .button--cta\n primaryDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.isDisabled} ${buttonTypes.primary}`,\n primarySmall: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonTypes.primary} ${buttonColors.primary}`,\n primarySmallDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.isDisabled} ${buttonTypes.primary} `,\n primaryQuiet: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonColors.quiet}`,\n primaryQuietDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`,\n primarySmallQuiet: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.quiet} ${buttonColors.quiet}`,\n primarySmallQuietDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`,\n primaryLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.inProgress} ${buttonTypes.primary}`,\n primarySmallLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.inProgress} ${buttonTypes.primary}`,\n primarySmallQuietLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.inProgress} ${buttonTypes.primary}`,\n primaryQuietLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.inProgress}`,\n\n utility: `${buttonSizes.utility} ${buttonTextSizes.medium} ${buttonTypes.utility} ${buttonColors.utility}`, // .button--utility\n utilityDisabled: `${buttonSizes.utility} ${buttonTextSizes.medium} ${buttonTypes.utility} ${buttonVariants.isDisabled}`,\n utilityQuiet: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.utilityQuiet} ${buttonColors.utilityQuiet}`, // .button--utility-flat\n utilityQuietDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.utilityQuiet} ${buttonVariants.isDisabled}`,\n utilitySmall: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonTypes.utility} ${buttonColors.utility}`,\n utilitySmallDisabled: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonTypes.utility} ${buttonVariants.isDisabled}`,\n utilitySmallQuiet: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonVariants.utilityQuiet} ${buttonColors.utilityQuiet}`,\n utilitySmallQuietDisabled: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonVariants.utilityQuiet} ${buttonVariants.isDisabled}`,\n utilityLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.utility} ${buttonVariants.inProgress}`,\n utilitySmallLoading: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonTypes.utility} ${buttonVariants.inProgress}`,\n utilityQuietLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.inProgress} ${buttonVariants.utilityQuiet}`,\n utilitySmallQuietLoading: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonVariants.inProgress} ${buttonVariants.utilityQuiet}`,\n\n negative: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.negative} ${buttonColors.destructive}`, // .button--destructive\n negativeDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.negative} ${buttonVariants.isDisabled}`,\n negativeQuiet: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.negativeQuiet} ${buttonColors.negativeQuiet}`, // .button--destructive-flat\n negativeQuietDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.negativeQuiet}${buttonVariants.isDisabled}`,\n negativeSmall: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonTypes.negative} ${buttonColors.destructive}`,\n negativeSmallDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonTypes.negative} ${buttonVariants.isDisabled}`,\n negativeSmallQuiet: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.negativeQuiet} ${buttonColors.negativeQuiet}`,\n negativeSmallQuietDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.negativeQuiet} ${buttonVariants.isDisabled}`,\n negativeLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.negative} ${buttonVariants.inProgress}`,\n negativeSmallLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.inProgress} ${buttonTypes.negative}`,\n negativeQuietLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.negativeQuiet} ${buttonTypes.negative} ${buttonVariants.inProgress}`,\n negativeSmallQuietLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.negativeQuiet} ${buttonVariants.inProgress}`,\n\n pill: `${buttonSizes.pill} ${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonColors.pill}`, // .button--pill\n pillSmall: `${buttonSizes.pillSmall} ${buttonTextSizes.xsmall} ${buttonTypes.pill} ${buttonColors.pill}`,\n pillLoading: `${buttonSizes.pill} ${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonVariants.inProgress}`,\n pillSmallLoading: `${buttonSizes.pillSmall} ${buttonTextSizes.xsmall} ${buttonTypes.pill} ${buttonVariants.inProgress}`,\n\n link: `${buttonSizes.link} ${buttonTextSizes.medium} ${buttonTypes.link}`,\n linkSmall: `${buttonSizes.link} ${buttonTextSizes.xsmall} ${buttonTypes.link}`,\n linkAsButton: 'inline-block active:no-underline hover:no-underline focus:no-underline text-center',\n a11y: 'sr-only',\n fullWidth: 'w-full max-w-full',\n contentWidth: 'max-w-max',\n};\n\n/**\n * Buttons are used to perform actions, widh different visuals for different needs.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-button--docs)\n */\nclass WarpButton extends FormControlMixin(LitElement) {\n static shadowRootOptions = {\n ...WarpElement.shadowRootOptions,\n delegatesFocus: true,\n };\n\n @property({ reflect: true })\n type: ButtonType = 'button';\n\n @property({ type: Boolean, reflect: true })\n autofocus: boolean;\n\n @property({ reflect: true })\n variant: ButtonVariant;\n\n /**\n * @type {boolean}\n */\n @property({ type: Boolean, reflect: true })\n quiet: boolean;\n\n @property({ type: Boolean, reflect: true })\n small: boolean;\n\n @property({ type: Boolean, reflect: true })\n loading: boolean;\n\n @property({ reflect: true })\n href: string;\n\n @property({ reflect: true })\n target: string;\n\n @property({ reflect: true })\n rel: string;\n\n @property({ attribute: 'full-width', type: Boolean, reflect: true })\n fullWidth: boolean;\n\n @property({ attribute: 'button-class', reflect: true })\n buttonClass: string;\n\n @property({ reflect: true })\n name: string;\n\n @property({ reflect: true })\n value: string;\n\n /** @internal */\n ariaValueTextLoading: string;\n\n static styles = [reset, styles];\n\n updated(changedProperties: PropertyValues<this>) {\n if (changedProperties.has('value')) {\n this.setValue(this.value);\n }\n }\n\n constructor() {\n super();\n activateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n this.variant = 'secondary';\n this.ariaValueTextLoading = i18n._({\n id: 'button.aria.loading',\n message: 'Loading...',\n comment: 'Screen reader message for buttons that are loading',\n });\n }\n\n connectedCallback() {\n super.connectedCallback();\n\n if (!variants.includes(this.variant)) {\n throw new Error(`Invalid \"variant\" attribute. Set its value to one of the following:\\n${variants.join(', ')}.`);\n }\n }\n\n firstUpdated() {\n if (this.autofocus) {\n setTimeout(() => this.focus(), 0);\n }\n }\n\n /** @internal */\n get _primaryClasses() {\n return [\n !this.small && !this.quiet && !this.loading && ccButton.primary,\n this.small && !this.quiet && !this.loading && ccButton.primarySmall,\n this.small && this.quiet && !this.loading && ccButton.primarySmallQuiet,\n this.small && this.loading && (this.quiet ? ccButton.primarySmallQuietLoading : ccButton.primarySmallLoading),\n !this.small && this.quiet && !this.loading && ccButton.primaryQuiet,\n !this.small && this.loading && (this.quiet ? ccButton.primaryQuietLoading : ccButton.primaryLoading),\n ];\n }\n\n /** @internal */\n get _secondaryClasses() {\n return [\n !this.small && !this.quiet && !this.loading && ccButton.secondary,\n this.small && !this.quiet && !this.loading && ccButton.secondarySmall,\n this.small && this.loading && (this.quiet ? ccButton.secondarySmallQuietLoading : ccButton.secondarySmallLoading),\n this.small && this.quiet && !this.loading && ccButton.secondarySmallQuiet,\n !this.small && this.quiet && !this.loading && ccButton.secondaryQuiet,\n !this.small && this.loading && (this.quiet ? ccButton.secondaryQuietLoading : ccButton.secondaryLoading),\n ];\n }\n\n /** @internal */\n get _utilityClasses() {\n return [\n !this.small && !this.quiet && !this.loading && ccButton.utility,\n this.small && !this.quiet && !this.loading && ccButton.utilitySmall,\n this.small && this.quiet && !this.loading && ccButton.utilitySmallQuiet,\n this.small && this.loading && (this.quiet ? ccButton.utilitySmallQuietLoading : ccButton.utilitySmallLoading),\n !this.small && this.quiet && !this.loading && ccButton.utilityQuiet,\n !this.small && this.loading && (this.quiet ? ccButton.utilityQuietLoading : ccButton.utilityLoading),\n ];\n }\n\n /** @internal */\n get _negativeClasses() {\n return [\n !this.small && !this.quiet && !this.loading && ccButton.negative,\n this.small && !this.quiet && !this.loading && ccButton.negativeSmall,\n this.small && this.quiet && !this.loading && ccButton.negativeSmallQuiet,\n this.small && this.loading && (this.quiet ? ccButton.negativeSmallQuietLoading : ccButton.negativeSmallLoading),\n !this.small && this.quiet && !this.loading && ccButton.negativeQuiet,\n !this.small && this.loading && (this.quiet ? ccButton.negativeQuietLoading : ccButton.negativeLoading),\n ];\n }\n\n /** @internal */\n get _pillClasses() {\n return [\n !this.loading && (this.small ? ccButton.pillSmall : ccButton.pill),\n this.loading && (this.small ? ccButton.pillSmallLoading : ccButton.pillLoading),\n ];\n }\n\n /** @internal */\n get _linkClasses() {\n return [this.small ? ccButton.linkSmall : ccButton.link];\n }\n /** @internal */\n get _classes() {\n return classNames(this.buttonClass, [\n this.variant === 'primary' && this._primaryClasses,\n this.variant === 'secondary' && this._secondaryClasses,\n this.variant === 'utility' && this._utilityClasses,\n this.variant === 'negative' && this._negativeClasses,\n this.variant === 'pill' && this._pillClasses,\n this.variant === 'link' && this._linkClasses,\n this.href && ccButton.linkAsButton,\n this.fullWidth ? ccButton.fullWidth : ccButton.contentWidth,\n ]);\n }\n\n /** @internal */\n _handleButtonClick() {\n if (this.type === 'submit') this.internals.form.requestSubmit();\n else if (this.type === 'reset') this.internals.form.reset();\n }\n\n render() {\n return html` ${this.href\n ? html`<a\n href=${this.href}\n target=${this.target}\n rel=${this.target === '_blank' ? this.rel || 'noopener' : undefined}\n class=${this._classes}>\n <slot></slot>\n </a>`\n : html`<button type=${this.type || 'button'} class=${this._classes} @click=\"${this._handleButtonClick}\">\n <slot></slot>\n </button>`}\n ${this.loading\n ? html`<span class=\"sr-only\" role=\"progressbar\" aria-valuenow=\"{0}\" aria-valuetext=${this.ariaValueTextLoading}></span>`\n : null}`;\n }\n}\n\nif (!customElements.get('w-button')) {\n customElements.define('w-button', WarpButton);\n}\n\nexport { WarpButton };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-button': WarpButton;\n }\n}\n", "import { Constructor, CustomValidityState, FormControlInterface, FormValue, IControlHost, validationMessageCallback, Validator } from './types.js';\n\nexport function FormControlMixin<\n TBase extends Constructor<HTMLElement & IControlHost> & { observedAttributes?: string [] }\n>(SuperClass: TBase) {\n class FormControl extends SuperClass {\n /** Wires up control instances to be form associated */\n static get formAssociated(): boolean {\n return true;\n }\n\n /**\n * A list of Validator objects that will be evaluated when a control's form\n * value is modified or optionally when a given attribute changes.\n *\n * When a Validator's callback returns false, the entire form control will\n * be set to an invalid state.\n */\n declare static formControlValidators: Validator[];\n\n /**\n * If set to true the control described should be evaluated and validated\n * as part of a group. Like a radio, if any member of the group's validity\n * changes the the other members should update as well.\n */\n declare static formControlValidationGroup: boolean;\n\n private static get validators(): Validator[] {\n return this.formControlValidators || [];\n }\n\n /**\n * Allows the FormControl instance to respond to Validator attributes.\n * For instance, if a given Validator has a `required` attribute, that\n * validator will be evaluated whenever the host's required attribute\n * is updated.\n */\n static get observedAttributes(): string[] {\n const validatorAttributes = this.validators.map((validator) => validator.attribute).flat();\n\n const observedAttributes = super.observedAttributes || [];\n\n /** Make sure there are no duplicates inside the attributes list */\n const attributeSet = new Set([...observedAttributes, ...validatorAttributes]);\n return [...attributeSet] as string[];\n }\n\n /**\n * Return the validator associated with a given attribute. If no\n * Validator is associated with the attribute, it will return null.\n */\n static getValidator(attribute: string): Validator | null {\n return this.validators.find((validator) => validator.attribute === attribute) || null;\n }\n\n /**\n * Get all validators that are set to react to a given attribute\n * @param {string} attribute - The attribute that has changed\n * @returns {Validator[]}\n */\n static getValidators(attribute: string): Validator[] | null {\n return this.validators.filter(validator => {\n if (validator.attribute === attribute || validator.attribute?.includes(attribute)) {\n return true;\n }\n });\n }\n\n /** The ElementInternals instance for the control. */\n internals = this.attachInternals();\n\n /**\n * Keep track of if the control has focus\n * @private\n */\n #focused = false;\n\n /**\n * Exists to control when an error should be displayed\n * @private\n */\n #forceError = false;\n\n /**\n * Toggles to true whenever the element has been focused. This property\n * will reset whenever the control's formResetCallback is called.\n * @private\n */\n #touched = false;\n\n /** An internal abort controller for cancelling pending async validation */\n #abortController?: AbortController;\n #previousAbortController?: AbortController;\n\n /**\n * Used for tracking if a validation target has been set to manage focus\n * when the control's validity is reported\n */\n #awaitingValidationTarget = true;\n\n /** All of the controls within a root with a matching local name and form name */\n get #formValidationGroup(): NodeListOf<FormControl> {\n const rootNode = this.getRootNode() as HTMLElement;\n const selector = `${this.localName}[name=\"${this.getAttribute('name')}\"]`;\n return rootNode.querySelectorAll<FormControl>(selector);\n }\n\n /**\n * Acts as a cache for the current value so the value can be re-evaluated\n * whenever an attribute changes or on some other event.\n */\n #value: FormValue = '';\n\n /**\n * Set this[touched] and this[focused]\n * to true when the element is focused\n * @private\n */\n #onFocus = (): void => {\n this.#touched = true;\n this.#focused = true;\n this.#shouldShowError();\n };\n\n /**\n * Reset this[focused] on blur\n * @private\n */\n #onBlur = (): void => {\n this.#focused = false;\n\n this.#runValidators(this.shouldFormValueUpdate() ? this.#value : '');\n\n /**\n * Set forceError to ensure error messages persist until\n * the value is changed.\n */\n if (!this.validity.valid && this.#touched) {\n this.#forceError = true;\n }\n const showError = this.#shouldShowError();\n if (this.validationMessageCallback) {\n this.validationMessageCallback(showError ? this.internals.validationMessage : '');\n }\n };\n\n /**\n * For the show error state on invalid\n * @private\n */\n #onInvalid = (): void => {\n if (this.#awaitingValidationTarget && this.validationTarget) {\n this.internals.setValidity(\n this.validity,\n this.validationMessage,\n this.validationTarget\n );\n this.#awaitingValidationTarget = false;\n }\n this.#touched = true;\n this.#forceError = true;\n this.#shouldShowError();\n this?.validationMessageCallback?.(this.showError ? this.internals.validationMessage : '');\n };\n\n /** Return a reference to the control's form */\n get form(): HTMLFormElement {\n return this.internals.form;\n }\n\n /**\n * Will return true if it is recommended that the control shows an internal\n * error. If using this property, it is wise to listen for 'invalid' events\n * on the element host and call preventDefault on the event. Doing this will\n * prevent browsers from showing a validation popup.\n */\n get showError(): boolean {\n return this.#shouldShowError();\n }\n\n /**\n * Forward the internals checkValidity method\n * will return the valid state of the control.\n */\n checkValidity(): boolean {\n return this.internals.checkValidity();\n }\n\n /** The element's validity state */\n get validity(): ValidityState {\n return this.internals.validity;\n }\n\n /**\n * The validation message shown by a given Validator object. If the control\n * is in a valid state this should be falsy.\n */\n get validationMessage(): string {\n return this.internals.validationMessage;\n }\n\n /* eslint-disable @typescript-eslint/no-explicit-any */\n constructor(...args: any[]) {\n super(...args);\n this.addEventListener?.('focus', this.#onFocus);\n this.addEventListener?.('blur', this.#onBlur);\n this.addEventListener?.('invalid', this.#onInvalid);\n this.setValue(null);\n }\n\n attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\n super.attributeChangedCallback?.(name, oldValue, newValue);\n\n /**\n * Check to see if a Validator is associated with the changed attribute.\n * If one exists, call control's validate function which will perform\n * control validation.\n */\n const proto = this.constructor as typeof FormControl;\n const validators = proto.getValidators(name);\n\n if (validators?.length && this.validationTarget) {\n this.setValue(this.#value);\n }\n }\n\n /** PUBLIC LIFECYCLE METHODS */\n\n /**\n * Sets the control's form value if the call to `shouldFormValueUpdate`\n * returns `true`.\n * @param value {FormValue} - The value to pass to the form\n */\n setValue(value: FormValue): void {\n this.#forceError = false;\n this.validationMessageCallback?.('');\n this.#value = value;\n const valueShouldUpdate = this.shouldFormValueUpdate();\n const valueToUpdate = valueShouldUpdate ? value : null;\n this.internals.setFormValue(valueToUpdate as string);\n this.#runValidators(valueToUpdate);\n if (this.valueChangedCallback) {\n this.valueChangedCallback(valueToUpdate);\n }\n this.#shouldShowError();\n }\n\n /**\n * This method can be overridden to determine if the control's form value\n * should be set on a call to `setValue`. An example of when a user might want\n * to skip this step is when implementing checkbox-like behavior, first checking\n * to see if `this.checked` is set to a truthy value. By default this returns\n * `true`.\n */\n shouldFormValueUpdate(): boolean {\n return true;\n }\n\n /** Save a reference to the validation complete resolver */\n #validationCompleteResolver?: (value: void | PromiseLike<void>) => void;\n\n /** When true validation will be pending */\n #isValidationPending = false;\n\n #validationComplete = Promise.resolve();\n\n /** A promise that will resolve when all pending validations are complete */\n get validationComplete(): Promise<void> {\n return new Promise(resolve => resolve(this.#validationComplete));\n }\n\n /** DECLARED INSTANCE METHODS AND PROPERTIES*/\n\n /**\n * Resets a form control to its initial state\n */\n declare resetFormControl: () => void;\n\n /**\n * This method is used to override the controls' validity message\n * for a given Validator key. This has the highest level of priority when\n * setting a validationMessage, so use this method wisely.\n *\n * The returned value will be used as the validationMessage for the given key.\n * @param validationKey {string} - The key that has returned invalid\n */\n declare validityCallback: (validationKey: string) => string | void;\n\n /**\n * Called when the control's validationMessage should be changed\n * @param message { string } - The new validation message\n */\n declare validationMessageCallback: (message: string) => void;\n\n /**\n * A callback for when the controls' form value changes. The value\n * passed to this function should not be confused with the control's\n * value property, this is the value that will appear on the form.\n *\n * In cases where `checked` did not exist on the control's prototype\n * upon initialization, this value and the value property will be identical;\n * in cases where `checked` is present upon initialization, this will be\n * effectively `this.checked && this.value`.\n */\n declare valueChangedCallback: (value: FormValue) => void;\n\n /**\n * The element that will receive focus when the control's validity\n * state is reported either by a form submission or via API\n *\n * We use declare since this is optional and we don't particularly\n * care how the consuming component implements this (as a field, member\n * or getter/setter)\n */\n declare validationTarget: HTMLElement | null;\n\n /** PRIVATE LIFECYCLE METHODS */\n\n /**\n * Check to see if an error should be shown. This method will also\n * update the internals state object with the --show-error state\n * if necessary.\n * @private\n */\n #shouldShowError(): boolean {\n if (this.hasAttribute('disabled')) {\n return false;\n }\n\n const showError = this.#forceError || (this.#touched && !this.validity.valid && !this.#focused);\n\n /**\n * At the time of writing Firefox doesn't support states\n * TODO: Remove when check for states when fully support is in place\n */\n if (showError && this.internals.states) {\n this.internals.states.add('--show-error');\n } else if (this.internals.states) {\n this.internals.states.delete('--show-error');\n }\n\n return showError;\n }\n\n #runValidators(value: FormValue): void {\n const proto = this.constructor as typeof FormControl;\n const validity: CustomValidityState = {};\n const validators = proto.validators;\n const asyncValidators: Promise<boolean|void>[] = [];\n const hasAsyncValidators = validators.some((validator) => validator.isValid instanceof Promise)\n\n if (!this.#isValidationPending) {\n this.#validationComplete = new Promise(resolve => {\n this.#validationCompleteResolver = resolve\n });\n this.#isValidationPending = true;\n }\n\n /**\n * If an abort controller exists from a previous validation step\n * notify still-running async validators that we are requesting they\n * discontinue any work.\n */\n if (this.#abortController) {\n this.#abortController.abort();\n this.#previousAbortController = this.#abortController;\n }\n\n /**\n * Create a new abort controller and replace the instance reference\n * so we can clean it up for next time\n */\n const abortController = new AbortController();\n this.#abortController = abortController;\n let validationMessage: string | undefined = undefined;\n\n /** Track to see if any validity key has changed */\n let hasChange = false;\n\n if (!validators.length) {\n return;\n }\n\n validators.forEach(validator => {\n const key = validator.key || 'customError';\n const isValid = validator.isValid(this, value, abortController.signal);\n const isAsyncValidator = isValid instanceof Promise;\n\n if (isAsyncValidator) {\n asyncValidators.push(isValid);\n\n isValid.then(isValidatorValid => {\n if (isValidatorValid === undefined || isValidatorValid === null) {\n return;\n }\n /** Invert the validity state to correspond to the ValidityState API */\n validity[key] = !isValidatorValid;\n\n validationMessage = this.#getValidatorMessageForValue(validator, value);\n this.#setValidityWithOptionalTarget(validity, validationMessage);\n });\n } else {\n /** Invert the validity state to correspond to the ValidityState API */\n validity[key] = !isValid;\n\n if (this.validity[key] !== !isValid) {\n hasChange = true;\n }\n\n // only update the validationMessage for the first invalid scenario\n // so that earlier invalid validators dont get their messages overwritten by later ones\n // in the validators array\n if (!isValid && !validationMessage) {\n validationMessage = this.#getValidatorMessageForValue(validator, value);\n }\n }\n });\n\n /** Once all the async validators have settled, resolve validationComplete */\n Promise.allSettled(asyncValidators)\n .then(() => {\n /** Don't resolve validations if the signal is aborted */\n if (!abortController?.signal.aborted) {\n this.#isValidationPending = false;\n this.#validationCompleteResolver?.();\n }\n });\n\n /**\n * If async validators are present:\n * Only run updates when a sync validator has a change. This is to prevent\n * situations where running sync validators can override async validators\n * that are still in progress\n *\n * If async validators are not present, always update validity\n */\n if (hasChange || !hasAsyncValidators) {\n this.#setValidityWithOptionalTarget(validity, validationMessage);\n }\n }\n\n /**\n * If the validationTarget is not set, the user can decide how they would\n * prefer to handle focus when the field is validated.\n */\n #setValidityWithOptionalTarget(validity: Partial<ValidityState>, validationMessage: string|undefined): void {\n if (this.validationTarget) {\n this.internals.setValidity(validity, validationMessage, this.validationTarget);\n this.#awaitingValidationTarget = false;\n } else {\n this.internals.setValidity(validity, validationMessage);\n\n if (this.internals.validity.valid) {\n return;\n }\n\n /**\n * Sets mark the component as awaiting a validation target\n * if the element dispatches an invalid event, the #onInvalid listener\n * will check to see if the validation target has been set since this call\n * has run. This useful in cases like Lit's use of the query\n * decorator for setting the validationTarget or any scenario\n * where the validationTarget isn't available upon construction\n */\n this.#awaitingValidationTarget = true;\n }\n }\n\n /** Process the validator message attribute */\n #getValidatorMessageForValue(validator: Validator, value: FormValue): string {\n /** If the validity callback exists and returns, use that as the result */\n if (this.validityCallback) {\n const message = this.validityCallback(validator.key || 'customError');\n\n if (message) {\n return message;\n }\n }\n\n if (validator.message instanceof Function) {\n return (validator.message as validationMessageCallback)(this, value);\n } else {\n return validator.message as string;\n }\n }\n\n /** Reset control state when the form is reset */\n formResetCallback() {\n this.#touched = false;\n this.#forceError = false;\n this.#shouldShowError();\n this.resetFormControl?.();\n\n this.validationMessageCallback?.(\n this.#shouldShowError() ? this.validationMessage : ''\n );\n }\n }\n\n return FormControl as Constructor<FormControlInterface> & TBase;\n}\n", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"button.aria.loading\\\":[\\\"Indl\u00E6ser...\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"button.aria.loading\\\":[\\\"Loading...\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"button.aria.loading\\\":[\\\"Ladataan...\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"button.aria.loading\\\":[\\\"Laster...\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"button.aria.loading\\\":[\\\"Laddar ...\\\"]}\");", "import { css } from 'lit'; export const styles = css`*,: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}.text-center{text-align:center}.animate-inprogress{background-size:30px 30px;animation:3s linear infinite animate-inprogress;background-image:linear-gradient(135deg,#0000000d 25%,#0000 0 50%,#0000000d 0 75%,#0000 0,#0000)!important}@keyframes animate-inprogress{0%{background-position:0 0}to{background-position:60px 0}}.hover\\\\:bg-clip-padding:hover{-webkit-background-clip:padding-box;background-clip:padding-box}.bg-transparent{background-color:#0000}.bg-\\\\[--w-color-button-primary-background\\\\]{background-color:var(--w-color-button-primary-background)}.hover\\\\:bg-\\\\[--w-color-button-pill-background-hover\\\\]:hover{background-color:var(--w-color-button-pill-background-hover)}.hover\\\\:bg-\\\\[--w-color-button-primary-background-hover\\\\]:hover{background-color:var(--w-color-button-primary-background-hover)}.active\\\\:bg-\\\\[--w-color-button-pill-background-active\\\\]:active{background-color:var(--w-color-button-pill-background-active)}.active\\\\:bg-\\\\[--w-color-button-primary-background-active\\\\]:active{background-color:var(--w-color-button-primary-background-active)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-transparent{border-color:#0000}.rounded-4{border-radius:4px}.rounded-8{border-radius:8px}.rounded-full{border-radius:9999px}.inline-block{display:inline-block}.inline{display:inline}.inline-flex{display:inline-flex}.hover\\\\:underline:hover,.focus\\\\:underline:focus,.active\\\\:underline:active{text-decoration-line:underline}.hover\\\\:no-underline:hover,.focus\\\\:no-underline:focus,.active\\\\:no-underline:active{text-decoration:none}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.justify-center{justify-content:center}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-negative{background-color:var(--w-s-color-background-negative)}.s-bg-subtle{background-color:var(--w-s-color-background-subtle)}.hover\\\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.hover\\\\:s-bg-negative-hover:hover{background-color:var(--w-s-color-background-negative-hover)}.hover\\\\:s-bg-negative-subtle-hover:hover{background-color:var(--w-s-color-background-negative-subtle-hover)}.active\\\\:s-bg-active:active{background-color:var(--w-s-color-background-active)}.active\\\\:s-bg-negative-active:active{background-color:var(--w-s-color-background-negative-active)}.active\\\\:s-bg-negative-subtle-active:active{background-color:var(--w-s-color-background-negative-subtle-active)}.s-text{color:var(--w-s-color-text)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.s-text-link{color:var(--w-s-color-text-link)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-icon{color:var(--w-s-color-icon)}.hover\\\\:s-icon-hover:hover{color:var(--w-s-color-icon-hover)}.active\\\\:s-icon-active:active{color:var(--w-s-color-icon-active)}.s-border{border-color:var(--w-s-color-border)}.hover\\\\:s-border-hover:hover{border-color:var(--w-s-color-border-hover)}.active\\\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.max-w-full{max-width:100%}.max-w-max{max-width:max-content}.min-h-32{min-height:3.2rem}.min-w-32{min-width:3.2rem}.w-full{width:100%}.min-h-\\\\[44px\\\\]{min-height:44px}.min-w-\\\\[44px\\\\]{min-width:44px}.p-0{padding:0}.p-4{padding:.4rem}.px-14{padding-left:1.4rem;padding-right:1.4rem}.px-16{padding-left:1.6rem;padding-right:1.6rem}.py-10{padding-top:1rem;padding-bottom:1rem}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.py-6{padding-top:.6rem;padding-bottom:.6rem}.py-8{padding-top:.8rem;padding-bottom:.8rem}.px-\\\\[15px\\\\]{padding-left:15px;padding-right:15px}.py-\\\\[11px\\\\]{padding-top:11px;padding-bottom:11px}.py-\\\\[7px\\\\]{padding-top:7px;padding-bottom:7px}.cursor-default{cursor:default}.font-bold{font-weight:700}.pointer-events-none{pointer-events:none}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-\\\\[24\\\\]{line-height:2.4rem}`;\n", "// @warp-css;\n\nimport { html, css, LitElement } from 'lit';\n\nimport { classNames } from '@chbphone55/classnames';\nimport { i18n } from '@lingui/core';\nimport { property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\n\nimport { activateI18n } from '../i18n.js';\nimport { reset } from '../styles.js';\n\nimport { messages as daMessages } from './locales/da/messages.mjs';\nimport { messages as enMessages } from './locales/en/messages.mjs';\nimport { messages as fiMessages } from './locales/fi/messages.mjs';\nimport { messages as nbMessages } from './locales/nb/messages.mjs';\nimport { messages as svMessages } from './locales/sv/messages.mjs';\nimport { styles } from './styles.js';\n\nexport const ccCard = {\n base: 'cursor-pointer overflow-hidden relative transition-all',\n shadow: 'group rounded-8 s-surface-elevated-200 hover:s-surface-elevated-200-hover active:s-surface-elevated-200-active',\n selected: '!s-bg-selected !hover:s-bg-selected-hover !active:s-bg-selected-active',\n outline: 'absolute border-2 rounded-8 inset-0 transition-all',\n outlineUnselected: 'border-transparent group-active:s-border-active',\n outlineSelected: 's-border-selected group-hover:s-border-selected-hover group-active:s-border-selected-active',\n flat: 'border-2 rounded-4',\n flatUnselected: 's-bg hover:s-bg-hover active:s-bg-active s-border hover:s-border-hover active:s-border-active',\n flatSelected:\n 's-bg-selected hover:s-bg-selected-hover active:s-bg-selected-active s-border-selected hover:s-border-selected-hover active:s-border-selected-active',\n a11y: 'sr-only',\n};\n\nconst keys = {\n ENTER: 'Enter',\n SPACE: ' ',\n};\n\n/**\n * Card is a layout component used for separating content areas on a page.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-card--docs)\n */\nclass WarpCard extends LitElement {\n static styles = [\n reset,\n styles,\n css`\n a::after {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n }\n :host {\n display: block;\n }\n `,\n ];\n\n @property({ type: Boolean, reflect: true })\n selected: boolean = false;\n\n @property({ type: Boolean })\n flat: boolean = false;\n\n @property({ type: Boolean })\n clickable: boolean = false;\n\n /** @internal */\n buttonText: string;\n\n constructor() {\n super();\n activateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n this.buttonText = i18n._({\n id: 'card.button.text',\n message: 'Select',\n comment: 'Screenreader message to indicate that the card is clickable',\n });\n }\n\n /** @internal */\n get _containerClasses() {\n return classNames([\n ccCard.base,\n this.flat ? ccCard.flat : ccCard.shadow,\n this.selected && !this.flat && ccCard.selected,\n this.selected && this.flat ? ccCard.flatSelected : ccCard.flatUnselected,\n ]);\n }\n\n /** @internal */\n get _outlineClasses() {\n return classNames([ccCard.outline, this.selected ? ccCard.outlineSelected : ccCard.outlineUnselected]);\n }\n\n /** @internal */\n get _interactiveElement() {\n const renderButton = () =>\n html`<button class=\"${ccCard.a11y}\" aria-pressed=\"${this.selected}\" tabindex=\"-1\">${this.buttonText}</button>`;\n const renderSpan = () => html`<span role=\"checkbox\" aria-checked=\"true\" aria-disabled=\"true\"></span>`;\n\n return this.clickable ? renderButton() : this.selected ? renderSpan() : '';\n }\n\n keypressed(e: KeyboardEvent) {\n if (!this.clickable || e.altKey || e.ctrlKey) return;\n if (e.key === keys.ENTER || e.key === keys.SPACE) {\n e.preventDefault();\n this.click();\n }\n }\n\n render() {\n return html`\n <div tabindex=${ifDefined(this.clickable ? '0' : undefined)} class=\"${this._containerClasses}\" @keydown=${this.keypressed}>\n ${this._interactiveElement} ${this.flat ? '' : html`<div class=\"${this._outlineClasses}\"></div>`}\n <slot></slot>\n </div>\n `;\n }\n}\n\nif (!customElements.get('w-card')) {\n customElements.define('w-card', WarpCard);\n}\n\nexport { WarpCard };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-card': WarpCard;\n }\n}\n", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"card.button.text\\\":[\\\"V\u00E6lg\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"card.button.text\\\":[\\\"Select\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"card.button.text\\\":[\\\"Valitse\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"card.button.text\\\":[\\\"Velg\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"card.button.text\\\":[\\\"V\u00E4lj\\\"]}\");", "import { css } from 'lit'; export const styles = css`*,: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}.border-2{border-width:2px}.border-transparent{border-color:#0000}.rounded-4{border-radius:4px}.rounded-8{border-radius:8px}.block{display:block}.overflow-hidden{overflow:hidden}.outline{outline-style:solid}.inset-0{top:0;bottom:0;left:0;right:0}.absolute{position:absolute}.relative{position:relative}.static{position:static}.\\\\!s-bg-selected{background-color:var(--w-s-color-background-selected)!important}.s-bg{background-color:var(--w-s-color-background)}.s-bg-selected{background-color:var(--w-s-color-background-selected)}.\\\\!hover\\\\:s-bg-selected-hover:hover{background-color:var(--w-s-color-background-selected-hover)!important}.hover\\\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.hover\\\\:s-bg-selected-hover:hover{background-color:var(--w-s-color-background-selected-hover)}.\\\\!active\\\\:s-bg-selected-active:active{background-color:var(--w-s-color-background-selected-active)!important}.active\\\\:s-bg-active:active{background-color:var(--w-s-color-background-active)}.active\\\\:s-bg-selected-active:active{background-color:var(--w-s-color-background-selected-active)}.s-border{border-color:var(--w-s-color-border)}.s-border-selected{border-color:var(--w-s-color-border-selected)}.group:hover .group-hover\\\\:s-border-selected-hover{border-color:var(--w-s-color-border-selected-hover)}.hover\\\\:s-border-hover:hover{border-color:var(--w-s-color-border-hover)}.hover\\\\:s-border-selected-hover:hover{border-color:var(--w-s-color-border-selected-hover)}.active\\\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.active\\\\:s-border-selected-active:active{border-color:var(--w-s-color-border-selected-active)}.group:active .group-active\\\\:s-border-active{border-color:var(--w-s-color-border-active)}.group:active .group-active\\\\:s-border-selected-active{border-color:var(--w-s-color-border-selected-active)}.s-surface-elevated-200{background-color:var(--w-s-color-surface-elevated-200);box-shadow:var(--w-s-shadow-surface-elevated-200)}.hover\\\\:s-surface-elevated-200-hover:hover{background-color:var(--w-s-color-surface-elevated-200-hover);box-shadow:var(--w-s-shadow-surface-elevated-200-hover)}.active\\\\:s-surface-elevated-200-active:active{background-color:var(--w-s-color-surface-elevated-200-active);box-shadow:var(--w-s-shadow-surface-elevated-200-active)}.cursor-pointer{cursor:pointer}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}`;\n", "import { css, CSSResultGroup, html, LitElement } from 'lit';\n\nimport { property } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\n\nimport { reset } from '../styles';\n\n/**\n * Dead toggle can be used where the appearance of a checkbox or radio is needed - but for accessibility purposes an actual input element should not be present.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-dead-toggle--docs)\n */\nexport class WarpDeadToggle extends LitElement {\n @property({ type: String }) type: 'radio' | 'checkbox' = 'radio';\n @property({ type: Boolean, reflect: true }) checked: boolean = false;\n @property({ type: Boolean, reflect: true }) indeterminate: boolean = false;\n @property({ type: Boolean, reflect: true }) invalid: boolean = false;\n\n /** @internal */\n get indeterminateMarker() {\n return !this.checked && this.indeterminate ? '\u2013' : '';\n }\n\n render() {\n const classes = classMap({\n checkbox: this.type === 'checkbox',\n radio: this.type === 'radio',\n checked: this.checked,\n });\n return html` <div class=\"${classes}\">${this.indeterminateMarker}</div> `;\n }\n\n static styles?: CSSResultGroup | undefined = [\n reset,\n css`\n div {\n display: block;\n border-width: 1px;\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n cursor: pointer;\n appearance: none;\n user-select: none;\n flex-shrink: 0;\n height: 2rem;\n width: 2rem;\n background-color: var(--w-s-color-background);\n border-color: var(--w-s-color-border);\n color: var(--w-s-color-icon-inverted);\n font-weight: 700;\n text-align: center;\n line-height: var(--w-line-height-xs);\n font-size: var(--w-font-size-m);\n }\n :host([type='checkbox']) div {\n border-radius: 2px;\n }\n :host([type='checkbox'][checked]) div,\n :host([type='checkbox'][indeterminate]) div {\n background-color: var(--w-s-color-background-primary);\n border-color: var(--w-s-color-border-primary);\n }\n :host([type='checkbox'][checked]) div {\n background-image: var(--w-icon-toggle-checked);\n }\n :host([type='radio']) div {\n border-radius: 50%;\n }\n :host([type='radio'][checked]) div {\n border-color: var(--w-s-color-border-selected);\n border-width: 0.6rem;\n }\n :host([invalid]) div {\n border-color: var(--w-s-color-border-negative) !important;\n }\n :host([type='checkbox'][invalid][checked]) div,\n :host([type='checkbox'][invalid][indeterminate]) div {\n background-color: var(--w-s-color-background-negative);\n }\n `,\n ];\n}\n\nif (!customElements.get('w-dead-toggle')) {\n customElements.define('w-dead-toggle', WarpDeadToggle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-dead-toggle': WarpDeadToggle;\n }\n}\n", "// @warp-css;\n\nimport { css, html, LitElement, PropertyValues } from 'lit';\n\nimport { classNames } from '@chbphone55/classnames';\nimport { property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport '@warp-ds/icons/elements/chevron-down-16';\nimport '@warp-ds/icons/elements/chevron-up-16';\n\nimport { reset } from '../styles.js';\n\nimport { styles } from './styles.js';\n\nexport const ccBox = {\n base: 'group block relative break-words last-child:mb-0 p-16 rounded-8', // Relative here enables w-clickable\n bleed: '-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8', // We target L and R to override the default rounded-8\n info: 's-bg-info-subtle',\n neutral: 's-surface-sunken',\n bordered: 'border-2 s-border s-bg',\n};\n\nexport const ccExpandable = {\n wrapper: 'will-change-height s-text',\n box: 's-surface-sunken hover:s-bg-hover active:s-bg-active py-0 px-0 group block relative break-words last-child:mb-0 rounded-8',\n bleed: '-mx-16 rounded-l-0 rounded-r-0 sm:mx-0 sm:rounded-8',\n chevron: 'inline-block align-middle s-icon',\n chevronNonBox: 'ml-8',\n chevronTransform: 'transform transition-transform transform-gpu ease-in-out',\n chevronExpand: '-rotate-180',\n chevronCollapse: 'rotate-180',\n\n // These are web component specific classes, using the ::part-selector:\n elementsChevronDownTransform:\n 'part-[w-icon-chevron-down-16-part]:transform part-[w-icon-chevron-down-16-part]:transition-transform part-[w-icon-chevron-down-16-part]:transform-gpu part-[w-icon-chevron-down-16-part]:ease-in-out',\n elementsChevronUpTransform:\n 'part-[w-icon-chevron-up-16-part]:transform part-[w-icon-chevron-up-16-part]:transition-transform part-[w-icon-chevron-up-16-part]:transform-gpu part-[w-icon-chevron-up-16-part]:ease-in-out',\n elementsChevronExpand: 'part-[w-icon-chevron-down-16-part]:-rotate-180',\n elementsChevronCollapse: 'part-[w-icon-chevron-up-16-part]:rotate-180',\n\n expansion: 'overflow-hidden',\n expansionNotExpanded: 'h-0 invisible',\n button: 'focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 hover:underline focus-visible:underline',\n buttonBox: 'w-full text-left relative inline-flex items-center justify-between group relative break-words last-child:mb-0 p-16 rounded-8',\n contentWithTitle: 'pt-0',\n title: 'flex w-full justify-between items-center',\n titleType: 't4',\n};\n\n/**\n * Expandable is a layout component used for creating expandable content areas on a page.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-expandable--docs)\n *\n * @slot title - Alternative to the `title` attribute should you need to provide some additional markup.\n */\nclass WarpExpandable extends LitElement {\n @property({ type: Boolean, reflect: true })\n expanded: boolean = false;\n\n @property({ type: String })\n title: string;\n\n @property({ type: Boolean })\n box: boolean = false;\n\n @property({ type: Boolean })\n bleed: boolean = false;\n\n @property({ attribute: 'button-class', type: String })\n buttonClass: string;\n\n @property({ attribute: 'content-class', type: String })\n contentClass: string;\n\n @property({ attribute: 'no-chevron', type: Boolean })\n noChevron: boolean = false;\n\n @property({ type: Boolean })\n animated: boolean = false;\n\n @property({ attribute: 'heading-level', type: Number })\n headingLevel: number;\n\n @property({ type: Boolean, state: true })\n /** @internal */\n _hasTitle: boolean = true;\n\n @property({ type: Boolean, state: true })\n /** @internal */\n _showChevronUp: boolean = false;\n\n // Slotted elements remain in lightDOM which allows for control of their style outside of shadowDOM.\n // ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,\n // so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.\n // https://stackoverflow.com/a/61631668\n static styles = [\n reset,\n styles,\n css`\n :host {\n display: block;\n }\n ::slotted(:last-child) {\n margin-bottom: 0px !important;\n }\n `,\n ];\n\n updated(changedProperties: PropertyValues<this>) {\n // We need a slight delay for the animation since it has a transition-duration of 150ms:\n if (changedProperties.has('expanded')) {\n setTimeout(() => {\n this._showChevronUp = this.expanded;\n }, 200);\n }\n }\n\n firstUpdated() {\n const hasTitleProp = Boolean(this.title);\n const hasTitleSlot = (this.renderRoot.querySelector(\"slot[name='title']\") as HTMLSlotElement)?.assignedNodes().length > 0;\n\n this._hasTitle = hasTitleProp || hasTitleSlot;\n }\n\n get #wrapperClasses() {\n return classNames([ccExpandable.wrapper, this.box && ccExpandable.box, this.bleed && ccExpandable.bleed]);\n }\n\n get #buttonClasses() {\n return classNames(this.buttonClass, [ccExpandable.button, this.box && ccExpandable.buttonBox]);\n }\n\n get #chevronClasses() {\n return classNames([ccExpandable.chevron, !this.box && ccExpandable.chevronNonBox]);\n }\n\n get #chevronIcon() {\n const upClasses = classNames([\n ccExpandable.elementsChevronUpTransform,\n !this.expanded && this._showChevronUp && ccExpandable.elementsChevronCollapse,\n ]);\n const downClasses = classNames([\n ccExpandable.elementsChevronDownTransform,\n this.expanded && !this._showChevronUp && ccExpandable.elementsChevronExpand,\n ]);\n\n return this._showChevronUp\n ? html`<w-icon-chevron-up-16 class=\"${upClasses}\"></w-icon-chevron-up-16>`\n : html`<w-icon-chevron-down-16 class=\"${downClasses}\"></w-icon-chevron-down-16>`;\n }\n\n get #contentClasses() {\n return classNames(this.contentClass, [this.box && ccBox.base, this._hasTitle && this.box && ccExpandable.contentWithTitle]);\n }\n\n get #expansionClasses() {\n return classNames([ccExpandable.expansion, !this.expanded && ccExpandable.expansionNotExpanded]);\n }\n\n /** @internal */\n get _expandableSlot() {\n return html`<div class=\"${this.#contentClasses}\">\n <slot></slot>\n </div>`;\n }\n\n render() {\n return html` <div class=\"${this.#wrapperClasses}\">\n ${this._hasTitle\n ? html`<w-unstyled-heading level=${this.headingLevel}>\n <button\n type=\"button\"\n aria-expanded=\"${this.expanded}\"\n class=\"${this.#buttonClasses}\"\n @click=${() => (this.expanded = !this.expanded)}>\n <div class=\"${ccExpandable.title}\">\n ${this.title ? html`<span class=\"${ccExpandable.titleType}\">${this.title}</span>` : html`<slot name=\"title\"></slot>`}\n ${this.noChevron ? '' : html`<div class=\"${this.#chevronClasses}\">${this.#chevronIcon}</div>`}\n </div>\n </button>\n </w-unstyled-heading>`\n : ''}\n ${this.animated\n ? html`<w-expand-transition ?show=${this.expanded}> ${this._expandableSlot} </w-expand-transition>`\n : html`<div class=\"${this.#expansionClasses}\" aria-hidden=${ifDefined(!this.expanded ? true : undefined)}>\n ${this._expandableSlot}\n </div>`}\n </div>`;\n }\n}\n\nif (!customElements.get('w-expandable')) {\n customElements.define('w-expandable', WarpExpandable);\n}\n\nexport { WarpExpandable };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-expandable': WarpExpandable;\n }\n}\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/chevron-down/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/chevron-down/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/chevron-down/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/chevron-down/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/chevron-down/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconChevronDown16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Downward arrow`, id: 'icon.title.chevron-down', comment: 'Title for chevron-down icon' });\n \n return html`<svg xmlns=\"http://www.w3.org/2000/svg\"width=\"16\"height=\"16\"fill=\"none\"viewBox=\"0 0 16 16\" part=\"w-icon-chevron-down-16-part\">${unsafeStatic(`<title>${title}</title>`)}<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"m2.667 5.333 5.5 5.5 5.5-5.5\"></path></svg>`; }\n}\nif (!customElements.get('w-icon-chevron-down-16')) {\n customElements.define('w-icon-chevron-down-16', IconChevronDown16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-down\\\":[\\\"Nedoverpil\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-down\\\":[\\\"Downward arrow\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-down\\\":[\\\"Nuoli alasp\u00E4in\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-down\\\":[\\\"Pil nedad\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-down\\\":[\\\"Pil ned\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/chevron-up/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/chevron-up/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/chevron-up/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/chevron-up/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/chevron-up/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconChevronUp16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Upward arrow`, id: 'icon.title.chevron-up', comment: 'Title for chevron-up icon' });\n \n return html`<svg xmlns=\"http://www.w3.org/2000/svg\"width=\"16\"height=\"16\"fill=\"none\"viewBox=\"0 0 16 16\" part=\"w-icon-chevron-up-16-part\">${unsafeStatic(`<title>${title}</title>`)}<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M2.5 11 8 5.5l5.5 5.5\"></path></svg>`; }\n}\nif (!customElements.get('w-icon-chevron-up-16')) {\n customElements.define('w-icon-chevron-up-16', IconChevronUp16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-up\\\":[\\\"Oppoverpil\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-up\\\":[\\\"Upward arrow\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-up\\\":[\\\"Nuoli yl\u00F6sp\u00E4in\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-up\\\":[\\\"Pil opad\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-up\\\":[\\\"Pil upp\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "import { css } from 'lit'; export const styles = css`*,: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}.t4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-left{text-align:left}.align-middle{vertical-align:middle}.bg-transparent{background-color:#0000}.appearance-none{-webkit-appearance:none;appearance:none}.will-change-height{will-change:height}.border-0{border-width:0}.border-2{border-width:2px}.rounded-8{border-radius:8px}.rounded-l-0{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-0{border-top-right-radius:0;border-bottom-right-radius:0}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.hover\\\\:underline:hover{text-decoration-line:underline}.focus-visible\\\\:underline:focus-visible{text-decoration-line:underline}.overflow-hidden{overflow:hidden}.focus\\\\:outline-none:focus{outline-offset:2px;outline:2px solid #0000}.items-center{align-items:center}.justify-between{justify-content:space-between}.relative{position:relative}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-info-subtle{background-color:var(--w-s-color-background-info-subtle)}.hover\\\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.active\\\\:s-bg-active:active{background-color:var(--w-s-color-background-active)}.s-text{color:var(--w-s-color-text)}.s-icon{color:var(--w-s-color-icon)}.s-border{border-color:var(--w-s-color-border)}.s-surface-sunken{background-color:var(--w-s-color-surface-sunken)}.h-0{height:0}.w-full{width:100%}.m-0{margin:0}.-mx-16{margin-left:-1.6rem;margin-right:-1.6rem}.last-child\\\\:mb-0>:last-child{margin-bottom:0}.ml-8{margin-left:.8rem}.p-16{padding:1.6rem}.px-0{padding-left:0;padding-right:0}.py-0{padding-top:0;padding-bottom:0}.pt-0{padding-top:0}.invisible{visibility:hidden}.break-words{overflow-wrap:break-word}.cursor-pointer{cursor:pointer}.-rotate-180{--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-rotate:-180deg;transform:translateX(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))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.part-\\\\[w-icon-chevron-down-16-part\\\\]\\\\:-rotate-180::part(w-icon-chevron-down-16-part){--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-rotate:-180deg;transform:translateX(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))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.rotate-180{--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-rotate:180deg;transform:translateX(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))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.part-\\\\[w-icon-chevron-up-16-part\\\\]\\\\:rotate-180::part(w-icon-chevron-up-16-part){--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-rotate:180deg;transform:translateX(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))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transform{transform:translateX(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))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.part-\\\\[w-icon-chevron-down-16-part\\\\]\\\\:transform::part(w-icon-chevron-down-16-part){transform:translateX(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))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.part-\\\\[w-icon-chevron-up-16-part\\\\]\\\\:transform::part(w-icon-chevron-up-16-part){transform:translateX(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))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transform-gpu{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))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.part-\\\\[w-icon-chevron-down-16-part\\\\]\\\\:transform-gpu::part(w-icon-chevron-down-16-part){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))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.part-\\\\[w-icon-chevron-up-16-part\\\\]\\\\:transform-gpu::part(w-icon-chevron-up-16-part){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))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transition-transform{transition-property:transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.part-\\\\[w-icon-chevron-down-16-part\\\\]\\\\:transition-transform::part(w-icon-chevron-down-16-part){transition-property:transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.part-\\\\[w-icon-chevron-up-16-part\\\\]\\\\:transition-transform::part(w-icon-chevron-up-16-part){transition-property:transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.part-\\\\[w-icon-chevron-down-16-part\\\\]\\\\:ease-in-out::part(w-icon-chevron-down-16-part){transition-timing-function:cubic-bezier(.4,0,.2,1)}.part-\\\\[w-icon-chevron-up-16-part\\\\]\\\\:ease-in-out::part(w-icon-chevron-up-16-part){transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width:480px){.sm\\\\:rounded-8{border-radius:8px}.sm\\\\:mx-0{margin-left:0;margin-right:0}}`;\n", "import { html, css, LitElement } from 'lit';\n\nimport { reset } from '../styles.js';\n\nimport { CanCloseMixin, ProvidesCanCloseToSlotsMixin } from './util';\n\n/**\n * The footer section of a modal, typically where you place actions.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)\n */\nexport class ModalFooter extends CanCloseMixin(ProvidesCanCloseToSlotsMixin(LitElement)) {\n render() {\n return html`\n <div class=\"footer\">\n <slot @slotchange=\"${this.handleSlotChange}\"></slot>\n </div>\n `;\n }\n static styles = [\n reset,\n css`\n .footer {\n display: flex;\n flex-shrink: 0;\n justify-content: flex-end;\n padding-left: 1.6rem;\n padding-right: 1.6rem;\n padding-top: 2.4rem;\n }\n @media (min-width: 480px) {\n .footer {\n padding-left: 3.2rem;\n padding-right: 3.2rem;\n }\n }\n `,\n ];\n}\n\nif (!customElements.get('w-modal-footer')) {\n customElements.define('w-modal-footer', ModalFooter);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-modal-footer': ModalFooter;\n }\n}\n", "// eslint-disable-next-line\nexport declare type Constructor<T = Record<string, unknown>> = new (...args: any[]) => T;\n\nexport const CanCloseMixin: <TBase extends Constructor<HTMLElement>>(SuperClass: TBase) => Constructor<{ close: () => void }> & TBase = (\n superClass,\n) =>\n class extends superClass {\n patchClose = true;\n _close = null;\n close() {\n this._close();\n }\n };\n\nexport const ProvidesCanCloseToSlotsMixin: <TBase extends Constructor<HTMLElement>>(\n SuperClass: TBase,\n) => Constructor<{ handleSlotChange: (evt: Event) => void }> & TBase = (superClass) =>\n class extends superClass {\n // HACK: slot-props don't seem to exist and neither does the context pattern for this\n /** @param {Event} evt */\n handleSlotChange(evt) {\n const children = evt.target.assignedNodes({ flatten: true });\n for (const child of children.filter((e) => e.patchClose)) {\n // @ts-expect-error users have to implement the close method\n child._close = () => this.close();\n }\n }\n };\n", "import { css, html, LitElement, nothing, PropertyValues } from 'lit';\n\nimport { Move } from '@itsy/animate/move';\nimport { i18n } from '@lingui/core';\nimport { property, query, state } from 'lit/decorators.js';\nimport '@warp-ds/icons/elements/arrow-left-16';\nimport '@warp-ds/icons/elements/close-16';\n\nimport { activateI18n } from '../i18n';\nimport { reset } from '../styles';\n\nimport { messages as daMessages } from './locales/da/messages.mjs';\nimport { messages as enMessages } from './locales/en/messages.mjs';\nimport { messages as fiMessages } from './locales/fi/messages.mjs';\nimport { messages as nbMessages } from './locales/nb/messages.mjs';\nimport { messages as svMessages } from './locales/sv/messages.mjs';\nimport { CanCloseMixin } from './util.js';\n\n/**\n * The header section of a modal, typically where you place the title and a close button.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)\n *\n * @slot top - Customize the title bar, for example to have a header image that reaches the modal's edges. See the With Image story for an example.\n */\nexport class ModalHeader extends CanCloseMixin(LitElement) {\n @property({ type: String }) title: string;\n @property({ type: Boolean }) back: boolean;\n @property({ type: Boolean, attribute: 'no-close' }) noClose: boolean;\n /** @internal */\n @state() private _hasTopContent = false;\n\n @query('.title-el') titleEl: HTMLElement;\n\n constructor() {\n super();\n activateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n }\n render() {\n return html`\n <div class=\"header\">\n <slot name=\"top\" @slotchange=${this.handleTopSlotChange}></slot>\n <div class=\"${this._hasTopContent ? '' : 'header-title-bar'}\">\n ${this.backButton}\n <h1 class=\"title-el ${this.titleClasses}\">${this.title}</h1>\n ${this.closeButton}\n </div>\n </div>\n `;\n }\n\n async willUpdate(changedProperties: PropertyValues<this>) {\n if (changedProperties.has('back')) {\n const move = new Move(this.titleEl);\n move.when(async () => {\n await this.updateComplete;\n });\n }\n }\n get titleClasses() {\n return [\n 'header-title',\n this.back ? 'header-title-with-back-button' : 'header-title-without-back-button',\n this._hasTopContent ? 'header-title-with-top-area' : '',\n ].join(' ');\n }\n\n get backButton() {\n return this.back && !this._hasTopContent // Not showing back button when there is a top image\n ? html`<button\n type=\"button\"\n aria-label=\"${i18n._({\n id: 'modal.aria.back',\n message: 'Back',\n comment: 'Aria label for the back button in modal',\n })}\"\n class=\"header-button header-button-left\"\n @click=\"${this.emitBack}\">\n <w-icon-arrow-left-16></w-icon-arrow-left-16>\n </button>`\n : nothing;\n }\n get closeButton() {\n if (this.noClose) return nothing;\n return html`<button\n type=\"button\"\n aria-label=\"${i18n._({\n id: 'modal.aria.close',\n message: 'Close',\n comment: 'Aria label for the close button in modal',\n })}\"\n class=\"header-button ${this._hasTopContent ? 'header-close-button-on-image' : 'header-close-button'}\"\n @click=\"${this.close}\">\n <w-icon-close-16></w-icon-close-16>\n </button>`;\n }\n emitBack() {\n this.dispatchEvent(new CustomEvent('backClicked', { bubbles: true, composed: true }));\n }\n handleTopSlotChange(slotEvent) {\n const topContent = slotEvent.target.assignedElements({ flatten: true });\n this._hasTopContent = !!topContent.length;\n }\n static styles = [\n reset,\n css`\n .header {\n position: relative;\n padding-bottom: 0.8rem;\n }\n .header-title-bar {\n display: grid;\n flex-shrink: 0 !important;\n gap: 1.2rem;\n grid-template-columns: auto 1fr auto;\n align-items: flex-start;\n padding-left: 1.6rem;\n padding-right: 1.6rem;\n padding-top: 1.6rem;\n }\n .header-title {\n font-weight: 700;\n font-size: var(--w-font-size-l);\n line-height: var(--w-line-height-l);\n align-self: center;\n margin: 0;\n }\n .header-title-with-back-button {\n justify-self: center;\n }\n .header-title-without-back-button {\n grid-column: span 2 / span 2;\n }\n .header-title-with-top-area {\n padding-left: 1.6rem;\n padding-right: 1.6rem;\n padding-top: 1.6rem;\n }\n .header-button:hover {\n -webkit-background-clip: padding-box;\n background-clip: padding-box;\n }\n .header-button:focus,\n .header-button:focus-visible {\n outline: 2px solid var(--w-s-color-border-focus);\n outline-offset: var(--w-outline-offset, 1px);\n }\n .header-button:not(:focus-visible) {\n outline: none;\n }\n .header-button {\n border-width: 0;\n border-radius: 9999px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-height: 40px;\n min-width: 40px;\n padding: 0.4rem;\n font-weight: 700;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n font-size: var(--w-font-size-m);\n line-height: var(--w-line-height-m);\n line-height: 2.4rem;\n }\n .header-button-left {\n background-color: transparent;\n color: var(--w-s-color-icon);\n margin-left: -0.8rem;\n }\n .header-button-left:hover {\n background-color: var(--w-color-button-pill-background-hover);\n }\n .header-button-left:active {\n background-color: var(--w-color-button-pill-background-active);\n }\n .header-close-button {\n background-color: transparent;\n color: var(--w-s-color-icon);\n margin-right: -0.8rem;\n }\n .header-close-button:hover {\n background-color: var(--w-color-button-pill-background-hover);\n }\n .header-close-button:active {\n background-color: var(--w-color-button-pill-background-active);\n }\n .header-close-button-on-image {\n background-color: rgba(var(--w-rgb-black), 0.7);\n right: 0.8rem;\n top: 0.8rem;\n position: absolute;\n z-index: 10;\n color: var(--w-s-color-text-inverted);\n }\n .header-close-button-on-image:hover {\n background-color: rgba(var(--w-rgb-black), 0.85);\n }\n .header-close-button-on-image:active {\n background-color: var(--w-black);\n }\n @media (min-width: 480px) {\n .header-title-bar {\n padding-left: 3.2rem;\n padding-right: 3.2rem;\n padding-top: 2.4rem;\n }\n .header-title-with-top-area {\n padding-left: 3.2rem;\n padding-right: 3.2rem;\n }\n .header-button {\n min-height: 32px;\n min-width: 32px;\n }\n }\n `,\n ];\n}\n\nif (!customElements.get('w-modal-header')) {\n customElements.define('w-modal-header', ModalHeader);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-modal-header': ModalHeader;\n }\n}\n", "/** @typedef {import('./move.d.ts').Deltas} Deltas */\n\n/**\n * @param {DOMRect} first\n * @param {DOMRect} last\n * @returns {Deltas}\n */\nexport const computeDeltas = (first, last) => ({\n dx: first.left - last.left,\n dy: first.top - last.top,\n dw: first.width / last.width,\n dh: first.height / last.height,\n first,\n last,\n})\n\n/** @param {Deltas} deltas */\nexport const moveKeyframes = ({ dx, dy }) => ([\n { transform: `translate(${dx}px, ${dy}px)` },\n { transform: 'none' },\n])\n\n/** @type {KeyframeAnimationOptions} */\nexport const animationDefaults = { easing: 'ease', duration: 300 }\n", "export let reduceMotion = false\n\nconst windowExists = (typeof window !== 'undefined')\nif (windowExists) {\n const query = window.matchMedia('(prefers-reduced-motion: reduce)')\n const callback = ({ matches }) => reduceMotion = matches\n // older browsers don't support the new API, and the old API is deprecated\n if (query.addEventListener) query.addEventListener('change', callback)\n callback(query)\n}\n\n", "import { moveKeyframes, computeDeltas, animationDefaults } from './utility.js'\nimport { reduceMotion } from './reduce-motion.js'\n\nexport class Move {\n /** @type {DOMRect | {}} */\n first;\n /** @type {DOMRect | {}} */\n last;\n /** @type {HTMLElement} */\n el;\n\n constructor(el, { animation = {}, keyframes, respectReduceMotion = true } = {}) {\n this.el = el\n this.first = {}\n this.last = {}\n this.userAnimationOptions = animation\n this.keyframeGenerator = keyframes || moveKeyframes\n this.shouldReduceMotion = respectReduceMotion\n }\n\n async when(cb) {\n this.prep()\n const v = await cb()\n await this.play()\n return v\n }\n\n prep() {\n this.first = this.el.getBoundingClientRect()\n }\n\n async play() {\n this.last = this.el.getBoundingClientRect()\n if (!this.el.animate) return\n const animation = this.el.animate(this.keyframes, this.animationOptions)\n await animation.finished\n }\n\n get keyframes() {\n return this.keyframeGenerator(computeDeltas(this.first, this.last))\n }\n\n get defaults() {\n return animationDefaults\n }\n\n get mergedOptions() {\n return { ...this.defaults, ...this.userAnimationOptions }\n }\n\n get animationOptions() {\n if (!this.shouldReduceMotion) return this.mergedOptions\n if (!reduceMotion) return this.mergedOptions\n return { ...this.mergedOptions, duration: 0 }\n }\n}\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/arrow-left/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/arrow-left/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/arrow-left/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/arrow-left/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/arrow-left/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconArrowLeft16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Leftward-pointing arrow`, id: 'icon.title.arrow-left', comment: 'Title for table arrow left icon' });\n \n return html`<svg xmlns=\"http://www.w3.org/2000/svg\"width=\"16\"height=\"16\"fill=\"none\"viewBox=\"0 0 16 16\" part=\"w-icon-arrow-left-16-part\">${unsafeStatic(`<title>${title}</title>`)}<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\" d=\"M5.222 8h6.667\"></path><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M7.444 11.75 4.111 8l3.333-3.75\"></path></svg>`; }\n}\nif (!customElements.get('w-icon-arrow-left-16')) {\n customElements.define('w-icon-arrow-left-16', IconArrowLeft16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.arrow-left\\\":[\\\"Pil som peker mot venstre\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.arrow-left\\\":[\\\"Leftward-pointing arrow\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.arrow-left\\\":[\\\"Vasemmalle osoittava nuoli\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.arrow-left\\\":[\\\"Pil til venstre\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.arrow-left\\\":[\\\"Pil som pekar v\u00E4nster\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"modal.aria.back\\\":[\\\"Tilbage\\\"],\\\"modal.aria.close\\\":[\\\"Luk\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"modal.aria.back\\\":[\\\"Back\\\"],\\\"modal.aria.close\\\":[\\\"Close\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"modal.aria.back\\\":[\\\"Takaisin\\\"],\\\"modal.aria.close\\\":[\\\"Sulje\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"modal.aria.back\\\":[\\\"Tilbake\\\"],\\\"modal.aria.close\\\":[\\\"Lukk\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"modal.aria.back\\\":[\\\"Tillbaka\\\"],\\\"modal.aria.close\\\":[\\\"St\u00E4ng\\\"]}\");", "import { css, html, LitElement } from 'lit';\n\nimport { property, query } from 'lit/decorators.js';\nimport { setup as setupScrollLock, teardown as teardownScrollLock } from 'scroll-doctor';\n\nimport { reset } from '../styles.js';\n\nimport { ProvidesCanCloseToSlotsMixin } from './util.js';\n\n/**\n * Modals (or dialogs) display important information that users need to acknowledge.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)\n *\n * @slot header - Typically where you would use the `w-modal-header` component.\n * @slot content - The main content of the modal.\n * @slot footer - Typically where you would use the `w-modal-footer` component, for things like actions.\n */\nexport class ModalMain extends ProvidesCanCloseToSlotsMixin(LitElement) {\n @property({ type: Boolean }) show: boolean;\n @property({ type: String, attribute: 'content-id' }) contentId: string;\n @property({ type: Boolean, attribute: 'ignore-backdrop-clicks' }) ignoreBackdropClicks: boolean;\n\n @query('.dialog-el') dialogEl: HTMLDialogElement;\n @query('.dialog-inner-el') dialogInnerEl: HTMLElement;\n @query('.content-el') contentEl: HTMLElement;\n\n constructor() {\n super();\n this.interceptEscape = this.interceptEscape.bind(this);\n this.closeOnBackdropClick = this.closeOnBackdropClick.bind(this);\n this.eventPreventer = this.eventPreventer.bind(this);\n this.modifyBorderRadius = this.modifyBorderRadius.bind(this);\n }\n\n async open() {\n this.dialogEl.showModal();\n this.handleListeners();\n setupScrollLock(this.contentEl);\n await this.updateComplete;\n this.dispatchEvent(new CustomEvent('shown', { bubbles: true, composed: true }));\n }\n\n close() {\n this.handleListeners('removeEventListener');\n this.dialogEl.classList.add('close');\n this.dialogEl.addEventListener(\n 'animationend',\n async () => {\n this.dialogEl.classList.remove('close');\n this.dialogEl.close();\n teardownScrollLock();\n await this.updateComplete;\n this.dispatchEvent(new CustomEvent('hidden', { bubbles: true, composed: true }));\n },\n { once: true },\n );\n }\n\n render() {\n return html`\n <dialog class=\"dialog-el\">\n <div class=\"dialog-inner-el\">\n <slot name=\"header\" @slotchange=\"${this.handleSlotChange}\"></slot>\n <div class=\"content-el\" id=${this.contentId}>\n <slot name=\"content\" @slotchange=\"${this.handleSlotChange}\"></slot>\n </div>\n <slot name=\"footer\" @slotchange=\"${this.handleSlotChange}\"></slot>\n </div>\n </dialog>\n `;\n }\n\n updated(changedProperties: Map<string, unknown>) {\n if (changedProperties.has('show')) this[this.show ? 'open' : 'close']();\n }\n\n handleListeners(verb = 'addEventListener') {\n // HACK: escape normally fires 'cancel' but 'cancel' can only be intercepted once (browser bug/quirk)\n document[verb]('keydown', this.interceptEscape);\n // Using 'mousedown' instead of 'click' because mouse-up events on the backdrop also trigger 'click'\n if (!this.ignoreBackdropClicks) this.dialogEl[verb]('mousedown', this.closeOnBackdropClick);\n // HACK: 'close' fires once the dialog is closed, thus it's cannot animate\n this.dialogEl[verb]('close', this.eventPreventer);\n // HACK: this might not be needed since escape is intercepted, but better to be safe\n this.dialogEl[verb]('cancel', this.eventPreventer);\n\n this.dialogInnerEl[verb]('transitionend', this.modifyBorderRadius);\n }\n\n eventPreventer(evt: Event) {\n evt.preventDefault();\n }\n\n closeOnBackdropClick(evt: MouseEvent) {\n if (this.dialogEl === evt.target) this.close();\n }\n\n interceptEscape(evt: KeyboardEvent) {\n if (evt.key === 'Escape') {\n evt.preventDefault();\n this.close();\n }\n }\n\n modifyBorderRadius() {\n if (this.dialogInnerEl.scrollHeight * 1.02 > innerHeight) this.dialogInnerEl.style.borderRadius = '0px';\n else this.dialogInnerEl.style.borderRadius = null;\n }\n\n static styles = [\n reset,\n css`\n .dialog-el {\n --w-modal-translate-distance: 100%;\n --w-modal-max-height: 80%;\n --w-modal-width: 640px;\n background-color: transparent;\n border-width: 0;\n align-items: flex-end;\n inset: 0rem;\n height: unset;\n max-height: unset;\n max-width: unset;\n width: unset;\n margin: auto;\n padding: 0rem;\n backface-visibility: hidden;\n }\n .dialog-inner-el {\n will-change: height;\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n position: relative;\n background-color: var(--w-s-color-background);\n box-shadow: var(--w-shadow-m);\n height: var(--w-modal-height);\n max-height: var(--w-modal-max-height);\n min-height: var(--w-modal-min-height);\n width: var(--w-modal-width);\n backface-visibility: hidden;\n padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n }\n .content-el {\n display: block;\n flex-shrink: 1;\n flex-grow: 1;\n overflow-x: hidden;\n overflow-y: auto;\n position: relative;\n margin-bottom: 0rem;\n padding-left: 1.6rem;\n padding-right: 1.6rem;\n }\n @media (min-width: 480px) {\n .dialog-el {\n --w-modal-translate-distance: 50%;\n place-content: center;\n place-items: center;\n }\n .dialog-inner-el {\n margin-left: 1.6rem;\n margin-right: 1.6rem;\n padding-bottom: 3.2rem;\n }\n .content-el {\n padding-left: 3.2rem;\n padding-right: 3.2rem;\n }\n }\n @media (max-width: 479.9px) {\n .dialog-inner-el {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n .dialog-el[open] {\n animation: w-modal-in 0.3s ease-in-out forwards;\n display: flex;\n position: fixed;\n }\n .dialog-el.close {\n animation: w-modal-out 0.3s ease-in-out forwards;\n }\n .dialog-el[open]::backdrop {\n animation: backdrop-in 0.3s ease-in-out forwards;\n }\n .dialog-el.close::backdrop {\n animation: backdrop-out 0.3s ease-in-out forwards;\n }\n /* shouldn't need two (in/out) animations declared here, but reversing is being weird */\n @keyframes w-modal-in {\n from {\n transform: translateY(var(--w-modal-translate-distance));\n opacity: 0;\n }\n to {\n transform: translateY(0);\n opacity: 1;\n }\n }\n @keyframes w-modal-out {\n from {\n transform: translateY(0);\n opacity: 1;\n }\n to {\n transform: translateY(var(--w-modal-translate-distance));\n opacity: 0;\n }\n }\n @keyframes backdrop-in {\n from {\n background: transparent;\n }\n to {\n background: rgba(0, 0, 0, 0.25);\n }\n }\n @keyframes backdrop-out {\n from {\n background: rgba(0, 0, 0, 0.25);\n }\n to {\n background: transparent;\n }\n }\n `,\n ];\n}\n\nif (!customElements.get('w-modal')) {\n customElements.define('w-modal', ModalMain);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-modal': ModalMain;\n }\n}\n", "let n = [];\nconst c = { documentElement: {}, body: {} }, i = Object.freeze({\n // html\n documentElement: {\n \"scrollbar-gutter\": \"stable\"\n },\n body: {\n overflow: \"hidden\",\n position: \"relative\",\n height: \"100%\"\n }\n}), r = (t) => {\n t.touches.length > 1 || t.preventDefault?.();\n}, h = (t) => ([e, s]) => {\n c[t][e] = document[t].style[e], document[t].style[e] = s;\n}, a = () => Object.entries(i).forEach(([t, e]) => {\n Object.entries(e).forEach(h(t));\n}), d = (t) => ([e, s]) => {\n document[t].style[e] = c[t][e];\n}, f = () => Object.entries(c).forEach(([t, e]) => {\n Object.entries(e).forEach(d(t));\n}), m = (t) => t.scrollHeight - Math.abs(t.scrollTop) === t.clientHeight;\nfunction y(t) {\n let e = -1;\n const s = (o) => {\n if (o.targetTouches.length !== 1)\n return;\n const l = o.targetTouches[0].clientY - e;\n return t.scrollTop === 0 && l > 0 || m(t) && l < 0 ? r(o) : (o.stopPropagation(), !0);\n };\n t.ontouchstart = (o) => {\n o.targetTouches.length === 1 && (e = o.targetTouches[0].clientY);\n }, t.ontouchmove = s;\n}\nfunction p(t) {\n t.ontouchstart = null, t.ontouchmove = null;\n}\nconst u = (t) => () => document[t ? \"addEventListener\" : \"removeEventListener\"](\"touchmove\", r, { passive: !1 }), b = u(!0), g = u();\nfunction E(t) {\n if (!t)\n throw Error(\"Could not run setup, an element must be provided\");\n n.some((e) => e === t) || (n.length || (a(), b()), y(t), n.push(t));\n}\nfunction T() {\n n.forEach(p), g(), f(), n = [];\n}\nexport {\n f as resetStyles,\n a as setStyles,\n E as setup,\n i as styleTargets,\n T as teardown\n};\n", "import { html, LitElement, TemplateResult } from 'lit';\n\nimport { property } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { map } from 'lit/directives/map.js';\nimport { range } from 'lit/directives/range.js';\n\nimport { styles } from './style.js';\n\nexport class WarpPageIndicator extends LitElement {\n static styles = [styles];\n\n /** Currently selected page (1-based index) */\n @property({ type: Number, attribute: 'selected-page' })\n selectedPage = 1;\n\n /** Total number of pages */\n @property({ type: Number, attribute: 'page-count' })\n pageCount = 1;\n\n render(): TemplateResult {\n return html`\n <div class=\"w-pageindicator\">\n <div class=\"w-pageindicator--container\">\n ${map(range(this.pageCount), (i) => {\n const isSelected = i === this.selectedPage - 1;\n const classes = {\n 'w-pageindicator--dot': true,\n 'w-pageindicator--selecteddot': isSelected,\n };\n return html`<div class=\"${classMap(classes)}\"></div>`;\n })}\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-pageindicator': WarpPageIndicator;\n }\n}\n\nif (!customElements.get('w-pageindicator')) {\n customElements.define('w-pageindicator', WarpPageIndicator);\n}\n", "import { css } from 'lit';\n\nexport const styles = css`\n .w-pageindicator {\n display: grid;\n justify-content: center;\n height: max-content;\n pointer-events: none;\n }\n\n .w-pageindicator--container {\n display: grid;\n grid-auto-flow: column;\n gap: 8px;\n }\n\n .w-pageindicator--dot {\n background-color: var(--w-s-color-background-disabled);\n border-radius: 5px;\n width: 10px;\n height: 10px;\n }\n\n .w-pageindicator--selecteddot {\n background-color: var(--w-s-color-icon-selected);\n }\n`;\n", "// @warp-css;\nimport { html, LitElement, nothing } from 'lit';\n\nimport { i18n } from '@lingui/core';\nimport { property } from 'lit/decorators.js';\n\nimport '@warp-ds/icons/elements/chevron-double-left-16';\nimport '@warp-ds/icons/elements/chevron-left-16';\nimport '@warp-ds/icons/elements/chevron-right-16';\nimport { activateI18n } from '../i18n.js';\nimport { reset } from '../styles.js';\n\nimport { messages as daMessages } from './locales/da/messages.mjs';\nimport { messages as enMessages } from './locales/en/messages.mjs';\nimport { messages as fiMessages } from './locales/fi/messages.mjs';\nimport { messages as nbMessages } from './locales/nb/messages.mjs';\nimport { messages as svMessages } from './locales/sv/messages.mjs';\nimport { styles } from './styles';\n\nconst iconSuffix = i18n._({\n id: 'pagination.aria.icon-suffix',\n message: 'icon',\n comment: 'Suffix added at the end of icon titles when img semantics are lost on an html element',\n});\n\nconst baseItemStyles =\n 'hover:no-underline focus:no-underline focusable inline-flex justify-center items-center transition-colors ease-in-out min-h-[44px] min-w-[44px] p-4 rounded-full border-0 hover:bg-clip-padding';\n\n/**\n * Pagination allows users to navigate through multiple pages of content by providing navigation controls with page numbers and directional arrows.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-pagination--docs)\n *\n * @fires {CustomEvent} page-click - Triggered when a link button in the pagination is clicked. Contains the page number in `string` form.\n */\nclass WarpPagination extends LitElement {\n @property({ type: String, reflect: true, attribute: 'base-url' })\n baseUrl: string;\n\n @property({ type: Number, reflect: true })\n pages: number;\n\n @property({ type: Number, reflect: true, attribute: 'current-page' })\n currentPageNumber = 1;\n\n @property({ type: Number, reflect: true, attribute: 'visible-pages' })\n visiblePages = 7;\n\n static styles = [reset, styles];\n\n constructor() {\n super();\n activateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n }\n\n /** @internal */\n get shouldShowShowFirstPageButton() {\n return this.currentPageNumber - 2 > 0;\n }\n\n /** @internal */\n get shouldShowPreviousPageButton() {\n return this.currentPageNumber - 1 > 0;\n }\n\n /** @internal */\n get shouldShowNextPageButton() {\n return this.currentPageNumber < this.pages;\n }\n\n /** @internal */\n get currentPageIndex() {\n return this.currentPageNumber - 1;\n }\n\n /** @internal */\n get visiblePageNumbers() {\n if (this.pages <= this.visiblePages) {\n // Show all pages if total pages is less than or equal to visible pages\n return Array.from({ length: this.pages }, (_, i) => i + 1);\n }\n\n const half = Math.floor(this.visiblePages / 2);\n let start = Math.max(1, this.currentPageNumber - half);\n const end = Math.min(this.pages, start + this.visiblePages - 1);\n\n // Adjust start if we're near the end\n if (end - start + 1 < this.visiblePages) {\n start = Math.max(1, end - this.visiblePages + 1);\n }\n\n return Array.from({ length: end - start + 1 }, (_, i) => start + i);\n }\n\n #dispatchClickPage(e: PointerEvent) {\n const clickedPage = (e.target as Element).getAttribute('data-page-number');\n\n this.dispatchEvent(\n new CustomEvent('page-click', {\n detail: { clickedPage },\n bubbles: true,\n composed: true,\n }),\n );\n }\n\n render() {\n const visiblePages = this.visiblePageNumbers;\n\n return html`<nav class=\"flex items-center justify-center p-8\" @click=\"${this.#dispatchClickPage}\">\n <h1 class=\"sr-only\">\n ${i18n._({\n id: 'pagination.aria.pagination',\n message: 'Pages',\n comment: 'Default screenreader message for pagination container in the pagination component',\n })}\n </h1>\n <div class=\"md:block s-text-link\">\n ${this.shouldShowShowFirstPageButton\n ? html`<a\n data-page-number=\"1\"\n href=\"${this.baseUrl}1\"\n class=\"${baseItemStyles +\n ' s-icon hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]'}\">\n <span class=\"sr-only\"\n >${i18n._({\n id: 'pagination.aria.first-page',\n message: 'First page',\n comment: 'Default screenreader message for first page link in the pagination component',\n })},</span\n >\n <w-icon-chevron-double-left-16></w-icon-chevron-double-left-16>\n <span class=\"sr-only\">${iconSuffix}</span>\n </a>`\n : nothing}\n ${this.shouldShowPreviousPageButton\n ? html`<a\n data-page-number=\"${this.currentPageNumber - 1}\"\n href=\"${this.baseUrl}${this.currentPageNumber - 1}\"\n class=\"${baseItemStyles +\n ' s-icon hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]'}\">\n <span class=\"sr-only\"\n >${i18n._({\n id: 'pagination.aria.prev-page',\n message: 'Previous page',\n comment: 'Default screenreader message for previous page link in the pagination component',\n })},</span\n >\n <w-icon-chevron-left-16></w-icon-chevron-left-16>\n <span class=\"sr-only\">${iconSuffix}</span>\n </a>`\n : nothing}\n ${visiblePages.map((pageNumber) => {\n const isCurrentPage = pageNumber === this.currentPageNumber;\n const url = `${this.baseUrl}${pageNumber}`;\n\n let styles = baseItemStyles;\n\n if (isCurrentPage) {\n styles += ' s-bg-primary s-text-inverted';\n } else {\n styles += ' hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]';\n }\n\n const ariaLabel = i18n._({\n id: 'pagination.aria.page',\n message: 'Page {currentPage}',\n values: { currentPage: pageNumber },\n comment: 'Default screenreader message for page link in the pagination component',\n });\n\n return html`<a\n data-page-number=\"${pageNumber}\"\n aria-label=\"${ariaLabel}\"\n href=\"${url}\"\n class=\"${styles}\"\n aria-current=\"${isCurrentPage ? 'page' : ''}\"\n >${pageNumber}</a\n >`;\n })}\n ${this.shouldShowNextPageButton\n ? html`<a\n data-page-number=\"${this.currentPageNumber + 1}\"\n href=\"${this.baseUrl}${this.currentPageNumber + 1}\"\n class=\"${baseItemStyles +\n ' s-icon hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]'}\">\n <span class=\"sr-only\">\n ${i18n._({\n id: 'pagination.aria.next-page',\n message: 'Next page',\n comment: 'Default screenreader message for next page link in the pagination component',\n })},</span\n >\n <w-icon-chevron-right-16></w-icon-chevron-right-16>\n <span class=\"sr-only\">${iconSuffix}</span>\n </a>`\n : nothing}\n </div>\n </nav>`;\n }\n}\n\nif (!customElements.get('w-pagination')) {\n customElements.define('w-pagination', WarpPagination);\n}\n\nexport { WarpPagination };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-pagination': WarpPagination;\n }\n}\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/chevron-double-left/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/chevron-double-left/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/chevron-double-left/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/chevron-double-left/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/chevron-double-left/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconChevronDoubleLeft16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Double leftward arrow`, id: 'icon.title.chevron-double-left', comment: 'Title for chevron-double-left icon' });\n \n return html`<svg xmlns=\"http://www.w3.org/2000/svg\"width=\"16\"height=\"16\"fill=\"none\"viewBox=\"0 0 16 16\" part=\"w-icon-chevron-double-left-16-part\">${unsafeStatic(`<title>${title}</title>`)}<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M7 13 2 8l5-5m7 10L9 8l5-5\"></path></svg>`; }\n}\nif (!customElements.get('w-icon-chevron-double-left-16')) {\n customElements.define('w-icon-chevron-double-left-16', IconChevronDoubleLeft16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-double-left\\\":[\\\"Dobbel pil til venstre\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-double-left\\\":[\\\"Double leftward arrow\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-double-left\\\":[\\\"Kaksi nuolta vasemmalle\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-double-left\\\":[\\\"Dobbelt venstrepil\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-double-left\\\":[\\\"Dubbel v\u00E4nsterpil\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/chevron-left/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/chevron-left/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/chevron-left/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/chevron-left/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/chevron-left/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconChevronLeft16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Leftward arrow`, id: 'icon.title.chevron-left', comment: 'Title for chevron-left icon' });\n \n return html`<svg xmlns=\"http://www.w3.org/2000/svg\"width=\"16\"height=\"16\"fill=\"none\"viewBox=\"0 0 16 16\" part=\"w-icon-chevron-left-16-part\">${unsafeStatic(`<title>${title}</title>`)}<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M10.5 13.75 5 8.25l5.5-5.5\"></path></svg>`; }\n}\nif (!customElements.get('w-icon-chevron-left-16')) {\n customElements.define('w-icon-chevron-left-16', IconChevronLeft16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-left\\\":[\\\"Pil til venstre\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-left\\\":[\\\"Leftward arrow\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-left\\\":[\\\"Nuoli vasemmalle\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-left\\\":[\\\"Pil til venstre\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-left\\\":[\\\"Pil v\u00E4nster\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/chevron-right/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/chevron-right/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/chevron-right/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/chevron-right/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/chevron-right/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconChevronRight16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Rightward arrow`, id: 'icon.title.chevron-right', comment: 'Title for chevron-right icon' });\n \n return html`<svg xmlns=\"http://www.w3.org/2000/svg\"width=\"16\"height=\"16\"fill=\"none\"viewBox=\"0 0 16 16\" part=\"w-icon-chevron-right-16-part\">${unsafeStatic(`<title>${title}</title>`)}<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"m5.5 13.75 5.5-5.5-5.5-5.5\"></path></svg>`; }\n}\nif (!customElements.get('w-icon-chevron-right-16')) {\n customElements.define('w-icon-chevron-right-16', IconChevronRight16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-right\\\":[\\\"Pil til h\u00F8yre\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-right\\\":[\\\"Rightward arrow\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-right\\\":[\\\"Nuoli oikealle\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-right\\\":[\\\"Pil til h\u00F8jre\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-right\\\":[\\\"Pil h\u00F6ger\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"pagination.aria.first-page\\\":[\\\"F\u00F8rste side\\\"],\\\"pagination.aria.icon-suffix\\\":[\\\"ikon\\\"],\\\"pagination.aria.next-page\\\":[\\\"N\u00E6ste side\\\"],\\\"pagination.aria.page\\\":[\\\"Side \\\",[\\\"currentPage\\\"]],\\\"pagination.aria.pagination\\\":[\\\"Sider\\\"],\\\"pagination.aria.prev-page\\\":[\\\"Forrige side\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"pagination.aria.first-page\\\":[\\\"First page\\\"],\\\"pagination.aria.icon-suffix\\\":[\\\"icon\\\"],\\\"pagination.aria.next-page\\\":[\\\"Next page\\\"],\\\"pagination.aria.page\\\":[\\\"Page \\\",[\\\"currentPage\\\"]],\\\"pagination.aria.pagination\\\":[\\\"Pages\\\"],\\\"pagination.aria.prev-page\\\":[\\\"Previous page\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"pagination.aria.first-page\\\":[\\\"Ensimm\u00E4inen sivu\\\"],\\\"pagination.aria.icon-suffix\\\":[\\\"kuvake\\\"],\\\"pagination.aria.next-page\\\":[\\\"Seuraava sivu\\\"],\\\"pagination.aria.page\\\":[\\\"Sivu \\\",[\\\"currentPage\\\"]],\\\"pagination.aria.pagination\\\":[\\\"Sivut\\\"],\\\"pagination.aria.prev-page\\\":[\\\"Edellinen sivu\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"pagination.aria.first-page\\\":[\\\"F\u00F8rste side\\\"],\\\"pagination.aria.icon-suffix\\\":[\\\"ikon\\\"],\\\"pagination.aria.next-page\\\":[\\\"Neste side\\\"],\\\"pagination.aria.page\\\":[\\\"Side \\\",[\\\"currentPage\\\"]],\\\"pagination.aria.pagination\\\":[\\\"Sider\\\"],\\\"pagination.aria.prev-page\\\":[\\\"Forrige side\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"pagination.aria.first-page\\\":[\\\"F\u00F6rsta sidan\\\"],\\\"pagination.aria.icon-suffix\\\":[\\\"ikon\\\"],\\\"pagination.aria.next-page\\\":[\\\"N\u00E4sta sida\\\"],\\\"pagination.aria.page\\\":[\\\"Sida \\\",[\\\"currentPage\\\"]],\\\"pagination.aria.pagination\\\":[\\\"Sidor\\\"],\\\"pagination.aria.prev-page\\\":[\\\"F\u00F6reg\u00E5ende sida\\\"]}\");", "import { css } from 'lit'; export const styles = css`*,: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}.hover\\\\:bg-clip-padding:hover{-webkit-background-clip:padding-box;background-clip:padding-box}.hover\\\\:bg-\\\\[--w-color-button-pill-background-hover\\\\]:hover{background-color:var(--w-color-button-pill-background-hover)}.active\\\\:bg-\\\\[--w-color-button-pill-background-active\\\\]:active{background-color:var(--w-color-button-pill-background-active)}.border-0{border-width:0}.rounded-full{border-radius:9999px}.flex{display:flex}.inline-flex{display:inline-flex}.hover\\\\:no-underline:hover,.focus\\\\:no-underline:focus{text-decoration:none}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.justify-center{justify-content:center}.static{position:static}.s-bg-primary{background-color:var(--w-s-color-background-primary)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.s-text-link{color:var(--w-s-color-text-link)}.s-icon{color:var(--w-s-color-icon)}.min-h-\\\\[44px\\\\]{min-height:44px}.min-w-\\\\[44px\\\\]{min-width:44px}.p-4{padding:.4rem}.p-8{padding:.8rem}.visible{visibility:visible}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width:768px){.md\\\\:block{display:block}}`;\n", "// @warp-css;\n\nimport { html, LitElement } from 'lit';\nimport '@warp-ds/icons/elements/close-16';\n\nimport { classNames } from '@chbphone55/classnames';\nimport { i18n } from '@lingui/core';\nimport { property } from 'lit/decorators.js';\n\nimport { activateI18n } from '../i18n';\nimport { reset } from '../styles.js';\n\nimport { messages as daMessages } from './locales/da/messages.mjs';\nimport { messages as enMessages } from './locales/en/messages.mjs';\nimport { messages as fiMessages } from './locales/fi/messages.mjs';\nimport { messages as nbMessages } from './locales/nb/messages.mjs';\nimport { messages as svMessages } from './locales/sv/messages.mjs';\nimport { styles } from './styles.js';\n\nexport const pillStyles = {\n wrapper: 'flex items-center',\n button: 'inline-flex items-center focusable text-xs transition-all',\n suggestion:\n 'bg-[--w-color-pill-suggestion-background] hover:bg-[--w-color-pill-suggestion-background-hover] active:bg-[--w-color-pill-suggestion-background-active] s-text font-bold',\n filter: 's-bg-primary hover:s-bg-primary-hover active:s-bg-primary-active s-text-inverted',\n label: 'pl-12 py-8 rounded-l-full',\n labelWithoutClose: 'pr-12 rounded-r-full',\n labelWithClose: 'pr-2',\n close: 'pr-12 pl-4 py-8 rounded-r-full',\n closeIcon: 'h-16',\n a11y: 'sr-only',\n};\n\n/**\n * Pill is a type of button that is often used as a filter, but can also be used as a rounded button for overlays, etc.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-pill--docs)\n */\nclass WarpPill extends LitElement {\n @property({ attribute: 'can-close', type: Boolean }) canClose: boolean;\n @property({ attribute: 'suggestion', type: Boolean }) suggestion: boolean;\n /**\n * @deprecated Used \"open-arial-label\" instead.\n */\n @property({ attribute: 'open-sr-label', type: String }) openSrLabel: string;\n @property({ attribute: 'open-aria-label', type: String }) openAriaLabel: string;\n /**\n * @deprecated Used \"close-arial-label\" instead.\n */\n @property({ attribute: 'close-sr-label', type: String }) closeSrLabel: string;\n @property({ attribute: 'close-aria-label', type: String }) closeAriaLabel: string;\n\n /** @internal */\n openFilterSrText: string;\n /** @internal */\n removeFilterSrText: string;\n\n static styles = [reset, styles];\n\n constructor() {\n super();\n activateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n this.canClose = false;\n this.suggestion = false;\n\n this.openFilterSrText = i18n._({\n id: 'pill.aria.openFilter',\n message: 'Open filter',\n comment: 'Fallback screen reader message for open filter',\n });\n\n this.removeFilterSrText = i18n._({\n id: 'pill.aria.removeFilter',\n message: 'Remove filter {label}',\n comment: 'Fallback screen reader message for removal of the filter',\n });\n }\n\n /** @internal */\n get _labelClasses() {\n return classNames([\n pillStyles.button,\n pillStyles.label,\n this.suggestion ? pillStyles.suggestion : pillStyles.filter,\n this.canClose ? pillStyles.labelWithClose : pillStyles.labelWithoutClose,\n ]);\n }\n\n /** @internal */\n get _closeClasses() {\n return classNames([pillStyles.button, pillStyles.close, this.suggestion ? pillStyles.suggestion : pillStyles.filter]);\n }\n\n /** @internal */\n _onClick() {\n this.dispatchEvent(new CustomEvent('w-pill-click', { bubbles: true, composed: true }));\n }\n\n /** @internal */\n _onClose() {\n this.dispatchEvent(new CustomEvent('w-pill-close', { bubbles: true, composed: true }));\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (this.openSrLabel) {\n this.openAriaLabel = this.openSrLabel;\n }\n if (this.closeSrLabel) {\n this.closeAriaLabel = this.closeSrLabel;\n }\n }\n\n render() {\n return html`\n <div class=\"${pillStyles.wrapper}\">\n <button type=\"button\" class=\"${this._labelClasses}\" @click=\"${this._onClick}\">\n <span class=\"${pillStyles.a11y}\">${this.openAriaLabel ? this.openAriaLabel : this.openFilterSrText}</span>\n <slot></slot>\n </button>\n ${this.canClose\n ? html` <button type=\"button\" class=\"${this._closeClasses}\" @click=\"${this._onClose}\">\n <span class=\"${pillStyles.a11y}\">${this.closeAriaLabel ? this.closeAriaLabel : this.removeFilterSrText}</span>\n <w-icon-close-16 class=\"${pillStyles.closeIcon}\"></w-icon-close-16>\n </button>`\n : null}\n </div>\n `;\n }\n}\n\nif (!customElements.get('w-pill')) {\n customElements.define('w-pill', WarpPill);\n}\n\nexport { WarpPill };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-pill': WarpPill;\n }\n}\n", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"pill.aria.openFilter\\\":[\\\"\u00C5bn filter\\\"],\\\"pill.aria.removeFilter\\\":[\\\"Fjern filter \\\",[\\\"label\\\"]]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"pill.aria.openFilter\\\":[\\\"Open filter\\\"],\\\"pill.aria.removeFilter\\\":[\\\"Remove filter \\\",[\\\"label\\\"]]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"pill.aria.openFilter\\\":[\\\"Avaa suodatin\\\"],\\\"pill.aria.removeFilter\\\":[\\\"Tyhjenn\u00E4 suodatin \\\",[\\\"label\\\"]]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"pill.aria.openFilter\\\":[\\\"\u00C5pne filter\\\"],\\\"pill.aria.removeFilter\\\":[\\\"Fjern filter \\\",[\\\"label\\\"]]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"pill.aria.openFilter\\\":[\\\"\u00D6ppna filter\\\"],\\\"pill.aria.removeFilter\\\":[\\\"Ta bort filtret \\\",[\\\"label\\\"]]}\");", "import { css } from 'lit'; export const styles = css`*,: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}.bg-\\\\[--w-color-pill-suggestion-background\\\\]{background-color:var(--w-color-pill-suggestion-background)}.hover\\\\:bg-\\\\[--w-color-pill-suggestion-background-hover\\\\]:hover{background-color:var(--w-color-pill-suggestion-background-hover)}.active\\\\:bg-\\\\[--w-color-pill-suggestion-background-active\\\\]:active{background-color:var(--w-color-pill-suggestion-background-active)}.rounded-l-full{border-top-left-radius:9999px;border-bottom-left-radius:9999px}.rounded-r-full{border-top-right-radius:9999px;border-bottom-right-radius:9999px}.flex{display:flex}.inline-flex{display:inline-flex}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.static{position:static}.s-bg-primary{background-color:var(--w-s-color-background-primary)}.hover\\\\:s-bg-primary-hover:hover{background-color:var(--w-s-color-background-primary-hover)}.active\\\\:s-bg-primary-active:active{background-color:var(--w-s-color-background-primary-active)}.s-text{color:var(--w-s-color-text)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.h-16{height:1.6rem}.py-8{padding-top:.8rem;padding-bottom:.8rem}.pl-12{padding-left:1.2rem}.pl-4{padding-left:.4rem}.pr-12{padding-right:1.2rem}.pr-2{padding-right:.2rem}.font-bold{font-weight:700}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}`;\n", "import type { PropertyValues } from 'lit';\nimport { html } from 'lit';\n\nimport { property, state } from 'lit/decorators.js';\n\nimport { BaseFormAssociatedElement } from './form-associated-element';\n// eslint-disable-next-line\n// @ts-ignore\nimport styles from './radio.css?inline';\n\nexport class WRadio extends BaseFormAssociatedElement {\n static css = [styles];\n\n @state() checked = false;\n\n /** @internal Used by radio group to force disable radios while preserving their original disabled state. */\n @state() forceDisabled = false;\n\n /**\n * The string pointing to a form's id.\n */\n @property({ reflect: true }) form: string | null = null;\n\n /** The radio's value. When selected, the radio group will receive this value. */\n @property({ reflect: true }) value: string;\n\n /** The radio's value. When selected, the radio group will receive this value. */\n @property({ reflect: true }) appearance: 'default' | 'button' | 'clickable' = 'default';\n\n /**\n * The radio's size. When used inside a radio group, the size will be determined by the radio group's size so this\n * attribute can typically be omitted.\n */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Disables the radio. */\n @property({ type: Boolean }) disabled = false;\n\n constructor() {\n super();\n this.addEventListener('click', this.handleClick);\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.setInitialAttributes();\n }\n\n private setInitialAttributes() {\n this.setAttribute('role', 'radio');\n this.tabIndex = 0;\n this.setAttribute('aria-disabled', this.disabled || this.forceDisabled ? 'true' : 'false');\n }\n\n updated(changedProperties: PropertyValues<this>) {\n super.updated(changedProperties);\n\n if (changedProperties.has('checked')) {\n this.customStates.set('checked', this.checked);\n this.setAttribute('aria-checked', this.checked ? 'true' : 'false');\n // Only set tabIndex if not disabled\n if (!this.disabled && !this.forceDisabled) {\n this.tabIndex = this.checked ? 0 : -1;\n }\n }\n\n if (changedProperties.has('disabled') || changedProperties.has('forceDisabled')) {\n const effectivelyDisabled = this.disabled || this.forceDisabled;\n this.customStates.set('disabled', effectivelyDisabled);\n this.setAttribute('aria-disabled', effectivelyDisabled ? 'true' : 'false');\n\n // Set tabIndex based on disabled state\n if (effectivelyDisabled) {\n this.tabIndex = -1;\n } else {\n // Restore proper tabIndex - this will be managed by the radio group\n this.tabIndex = this.checked ? 0 : -1;\n }\n }\n }\n\n /**\n * @override\n */\n setValue(): void {\n // We override `setValue` because we don't want to set form values from here. We want to do that in \"RadioGroup\" itself.\n }\n\n // Update the handleClick method (around line 75)\n private handleClick = () => {\n if (!this.disabled && !this.forceDisabled) {\n this.checked = true;\n }\n };\n\n render() {\n return html`\n <span part=\"control\" class=\"control\"></span>\n <slot part=\"label\" class=\"label\"></slot>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-radio': WRadio;\n }\n}\n", "import { LitElement, isServer } from 'lit';\n\nimport { property } from 'lit/decorators.js';\n\nimport BaseElement from './base-element.js';\nimport { CustomErrorValidator } from './custom-error-validator.js';\nimport { WInvalidEvent } from './invalid';\n\nexport interface Validator<T extends BaseFormAssociatedElement = BaseFormAssociatedElement> {\n observedAttributes?: string[];\n checkValidity: (element: T) => {\n message: string;\n isValid: boolean;\n invalidKeys: Exclude<keyof ValidityState, 'valid'>[];\n };\n message?: string | ((element: T) => string);\n}\n\nexport interface BaseFormControl extends BaseElement {\n // Form attributes\n name: null | string;\n disabled?: boolean;\n defaultValue?: unknown;\n defaultChecked?: boolean;\n checked?: boolean;\n defaultSelected?: boolean;\n selected?: boolean;\n form?: string | null;\n\n value?: unknown;\n\n // Constraint validation attributes\n pattern?: string;\n min?: number | string | Date;\n max?: number | string | Date;\n step?: number | 'any';\n required?: boolean;\n minlength?: number;\n maxlength?: number;\n\n // Form validation properties\n readonly validity: ValidityState;\n readonly validationMessage: string;\n\n // Form validation methods\n checkValidity: () => boolean;\n getForm: () => HTMLFormElement | null;\n reportValidity: () => boolean;\n setCustomValidity: (message: string) => void;\n\n // Form properties\n hasInteracted: boolean;\n valueHasChanged?: boolean;\n\n /** Convenience API for `setCustomValidity()` */\n customError: null | string;\n}\n\n// setFormValue omitted so that we can use `setValue`\nexport class BaseFormAssociatedElement extends BaseElement implements Omit<ElementInternals, 'form' | 'setFormValue'>, BaseFormControl {\n static formAssociated = true;\n\n /**\n * Validators are static because they have `observedAttributes`, essentially attributes to \"watch\"\n * for changes. Whenever these attributes change, we want to be notified and update the validator.\n */\n static get validators(): Validator[] {\n return [CustomErrorValidator()];\n }\n\n // Append all Validator \"observedAttributes\" into the \"observedAttributes\" so they can run.\n static get observedAttributes() {\n const parentAttrs = new Set(super.observedAttributes || []);\n\n for (const validator of this.validators) {\n if (!validator.observedAttributes) {\n continue;\n }\n\n for (const attr of validator.observedAttributes) {\n parentAttrs.add(attr);\n }\n }\n\n return [...parentAttrs];\n }\n\n // Form attributes\n /** The name of the input, submitted as a name/value pair with form data. */\n @property({ reflect: true }) name: string | null = null;\n\n /** Disables the form control. */\n @property({ type: Boolean }) disabled = false;\n\n required: boolean = false;\n\n assumeInteractionOn: string[] = ['input'];\n\n // Additional\n input?: (HTMLElement & { value: unknown }) | HTMLInputElement | HTMLTextAreaElement;\n\n validators: Validator[] = [];\n\n // Should these be private?\n @property({ state: true, attribute: false }) valueHasChanged: boolean = false;\n @property({ state: true, attribute: false }) hasInteracted: boolean = false;\n\n // This works around a limitation in Safari. It is a hacky way for us to preserve custom errors generated by the user.\n @property({ attribute: 'custom-error', reflect: true }) customError: string | null = null;\n\n private emittedEvents: string[] = [];\n\n constructor() {\n super();\n\n if (!isServer) {\n this.addEventListener('invalid', this.emitInvalid);\n }\n }\n // this bullshit makes no sense but tsc is angry about it\n // this needs both 'private' and 'typeof' or it will be angry and we don't know why\n // eslint-disable-next-line\n // @ts-ignore\n private states: typeof CustomStateSet;\n\n connectedCallback() {\n super.connectedCallback();\n this.updateValidity();\n\n // Lazily evaluate after the constructor to allow people to override the `assumeInteractionOn`\n this.assumeInteractionOn.forEach((event) => {\n this.addEventListener(event, this.handleInteraction);\n });\n }\n\n firstUpdated(...args: Parameters<LitElement['firstUpdated']>) {\n super.firstUpdated(...args);\n this.updateValidity();\n }\n\n emitInvalid = (e: Event) => {\n if (e.target !== this) return;\n\n // An \"invalid\" event counts as interacted, this is usually triggered by a button \"submitting\"\n this.hasInteracted = true;\n this.dispatchEvent(new WInvalidEvent());\n };\n\n protected willUpdate(changedProperties: Parameters<LitElement['willUpdate']>[0]) {\n if (!isServer && changedProperties.has('customError')) {\n // We use null because it we really don't want it to show up in the attributes because `custom-error` does reflect\n if (!this.customError) {\n this.customError = null;\n }\n this.setCustomValidity(this.customError || '');\n }\n\n if (changedProperties.has('value') || changedProperties.has('disabled')) {\n // @ts-expect-error Some components will use an accessors, other use a property, so we don't want to limit them.\n const value = this.value as unknown;\n\n // Accounts for the snowflake case on `<wa-select>`\n if (Array.isArray(value)) {\n if (this.name) {\n const formData = new FormData();\n for (const val of value) {\n formData.append(this.name, val as string);\n }\n this.setValue(formData, formData);\n }\n } else {\n this.setValue(value as FormData | string | File | null, value as FormData | string | File | null);\n }\n }\n\n if (changedProperties.has('disabled')) {\n this.customStates.set('disabled', this.disabled);\n\n if (this.hasAttribute('disabled') || (!isServer && !this.matches(':disabled'))) {\n this.toggleAttribute('disabled', this.disabled);\n }\n }\n\n this.updateValidity();\n super.willUpdate(changedProperties);\n }\n\n private handleInteraction = (event: Event) => {\n const emittedEvents = this.emittedEvents;\n if (!emittedEvents.includes(event.type)) {\n emittedEvents.push(event.type);\n }\n\n // Mark it as user-interacted as soon as all associated events have been emitted\n if (emittedEvents.length === this.assumeInteractionOn?.length) {\n this.hasInteracted = true;\n }\n };\n\n get labels() {\n return this.internals.labels;\n }\n\n getForm() {\n return this.internals.form;\n }\n\n @property({ attribute: false, state: true, type: Object })\n get validity() {\n return this.internals.validity;\n }\n\n // Not sure if this supports `novalidate`. Will need to test.\n get willValidate() {\n return this.internals.willValidate;\n }\n\n get validationMessage() {\n return this.internals.validationMessage;\n }\n\n checkValidity() {\n this.updateValidity();\n return this.internals.checkValidity();\n }\n\n reportValidity() {\n this.updateValidity();\n // This seems reasonable. `reportValidity()` is kind of like \"we expect you to have interacted\"\n this.hasInteracted = true;\n return this.internals.reportValidity();\n }\n\n /**\n * Override this to change where constraint validation popups are anchored.\n */\n get validationTarget(): undefined | HTMLElement {\n return (this.input || undefined) as undefined | HTMLElement;\n }\n\n setValidity(...args: Parameters<typeof this.internals.setValidity>) {\n const flags = args[0];\n const message = args[1];\n let anchor = args[2];\n\n if (!anchor) {\n anchor = this.validationTarget;\n }\n\n this.internals.setValidity(flags, message, anchor || undefined);\n this.requestUpdate('validity');\n this.setCustomStates();\n }\n\n setCustomStates() {\n const required = Boolean(this.required);\n const isValid = this.internals.validity.valid;\n const hasInteracted = this.hasInteracted;\n\n this.customStates.set('required', required);\n this.customStates.set('optional', !required);\n this.customStates.set('invalid', !isValid);\n this.customStates.set('valid', isValid);\n this.customStates.set('user-invalid', !isValid && hasInteracted);\n this.customStates.set('user-valid', isValid && hasInteracted);\n }\n\n /**\n * Do not use this when creating a \"Validator\". This is intended for end users of components.\n * We track manually defined custom errors so we don't clear them on accident in our validators.\n *\n */\n setCustomValidity(message: string) {\n if (!message) {\n // We use null because it we really don't want it to show up in the attributes because `custom-error` does reflect\n this.customError = null;\n this.setValidity({});\n return;\n }\n\n this.customError = message;\n this.setValidity({ customError: true }, message, this.validationTarget);\n }\n\n formResetCallback() {\n this.resetValidity();\n this.hasInteracted = false;\n this.valueHasChanged = false;\n this.emittedEvents = [];\n this.updateValidity();\n }\n\n formDisabledCallback(isDisabled: boolean) {\n this.disabled = isDisabled;\n\n this.updateValidity();\n }\n\n /**\n * Called when the browser is trying to restore element\u2019s state to state in which case reason is \"restore\", or when\n * the browser is trying to fulfill autofill on behalf of user in which case reason is \"autocomplete\". In the case of\n * \"restore\", state is a string, File, or FormData object previously set as the second argument to setFormValue.\n */\n formStateRestoreCallback(state: string | File | FormData | null, reason: 'autocomplete' | 'restore') {\n // @ts-expect-error We purposely do not have a value property. It makes things hard to extend.\n this.value = state;\n\n if (reason === 'restore') {\n this.resetValidity();\n }\n\n this.updateValidity();\n }\n\n setValue(...args: Parameters<typeof this.internals.setFormValue>) {\n const [value, state] = args;\n\n this.internals.setFormValue(value, state);\n }\n\n get allValidators() {\n const staticValidators = (this.constructor as typeof BaseFormAssociatedElement).validators || [];\n\n const validators = this.validators || [];\n return [...staticValidators, ...validators];\n }\n\n /**\n * Reset validity is a way of removing manual custom errors and native validation.\n */\n resetValidity() {\n this.setCustomValidity('');\n this.setValidity({});\n }\n\n updateValidity() {\n if (\n this.disabled ||\n this.hasAttribute('disabled') ||\n !this.willValidate //\n ) {\n this.resetValidity();\n\n return;\n }\n\n const validators = this.allValidators;\n\n if (!validators?.length) {\n // If there's no validators, we do nothing. We also don't want to mess with custom errors, so we just stop here.\n return;\n }\n\n type ValidityKey = { -readonly [P in keyof ValidityState]: ValidityState[P] };\n\n const flags: Partial<ValidityKey> = {\n // Don't trust custom errors from the Browser. Safari breaks the spec.\n customError: Boolean(this.customError),\n };\n\n const formControl = this.validationTarget || this.input || undefined;\n\n let finalMessage = '';\n\n for (const validator of validators) {\n const { isValid, message, invalidKeys } = validator.checkValidity(this);\n\n if (isValid) {\n continue;\n }\n\n if (!finalMessage) {\n finalMessage = message;\n }\n\n if (invalidKeys?.length >= 0) {\n (invalidKeys as (keyof ValidityState)[]).forEach((str) => (flags[str] = true));\n }\n }\n\n // This is a workaround for preserving custom errors\n if (!finalMessage) {\n finalMessage = this.validationMessage;\n }\n\n this.setValidity(flags, finalMessage, formControl);\n }\n}\n", "// eslint-disable-next-line\n// @ts-nocheck\nimport type { CSSResult, CSSResultGroup } from 'lit';\nimport { LitElement, unsafeCSS } from 'lit';\n\nimport { property } from 'lit/decorators.js';\n\nimport hostStyles from './host.css?inline';\n\n// Augment Lit's module\ndeclare module 'lit' {\n interface PropertyDeclaration {\n /**\n * Specifies the property\u2019s default value\n */\n /* eslint-disable */\n default?: any;\n /* eslint-disable */\n initial?: any;\n }\n}\n\nexport default class BaseElement extends LitElement {\n /**\n * One or more CSS files to include in the component's shadow root. Host styles are automatically prepended. We use\n * this instead of Lit's styles property because we're importing CSS files as strings and need to convert them using\n * unsafeCSS.\n */\n static css?: CSSResultGroup | CSSResult | string | (CSSResult | string)[];\n\n /**\n * Override the default styles property to fetch and convert string CSS files. Components can override this behavior\n * by setting their own `static styles = []` property.\n */\n static get styles(): CSSResultGroup {\n const styles = Array.isArray(this.css) ? this.css : this.css ? [this.css] : [];\n return [hostStyles, ...styles].map((style) => (typeof style === 'string' ? unsafeCSS(style) : style));\n }\n\n #hasRecordedInitialProperties = false;\n initialReflectedProperties: Map<string, unknown> = new Map();\n internals: ElementInternals;\n\n // Make localization attributes reactive\n @property() dir: string;\n @property() lang: string;\n\n constructor() {\n super();\n\n try {\n this.internals = this.attachInternals();\n } catch {\n /* Need to tell people if they need a polyfill. */\n\n console.error('Element internals are not supported in your browser. Consider using a polyfill');\n }\n\n this.customStates.set('wa-defined', true);\n\n const Self = this.constructor as typeof BaseElement;\n for (const [property, spec] of Self.elementProperties) {\n if (spec.default === 'inherit' && spec.initial !== undefined && typeof property === 'string') {\n this.customStates.set(`initial-${property}-${spec.initial}`, true);\n }\n }\n }\n\n attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null) {\n if (!this.#hasRecordedInitialProperties) {\n (this.constructor as typeof BaseElement).elementProperties.forEach((obj, prop: keyof typeof this & string) => {\n\n if (obj.reflect && this[prop] != null) {\n this.initialReflectedProperties.set(prop, this[prop]);\n }\n });\n\n this.#hasRecordedInitialProperties = true;\n }\n\n super.attributeChangedCallback(name, oldValue, newValue);\n }\n\n protected willUpdate(changedProperties: Parameters<LitElement['willUpdate']>[0]): void {\n super.willUpdate(changedProperties);\n\n // Run the morph fixing *after* willUpdate.\n this.initialReflectedProperties.forEach((value, prop: string & keyof typeof this) => {\n // If a prop changes to `null`, we assume this happens via an attribute changing to `null`.\n\n if (changedProperties.has(prop) && this[prop] == null) {\n // Silly type gymnastics to appease the compiler.\n (this as Record<string, unknown>)[prop] = value;\n }\n });\n }\n\n /**\n * Methods for setting and checking custom states.\n */\n public customStates = {\n /** Adds or removes the specified custom state. */\n set: (customState: string, active: boolean) => {\n if (!this.internals?.states) return;\n if (active) {\n this.internals.states.add(customState);\n } else {\n this.internals.states.delete(customState);\n }\n },\n\n /** Determines whether or not the element currently has the specified state. */\n has: (customState: string) => {\n if (!this.internals?.states) return false;\n return this.internals.states.has(customState);\n },\n };\n\n /**\n * Given a native event, this function cancels it and dispatches it again from the host element using the desired\n * event options.\n */\n relayNativeEvent(event: Event, eventOptions?: EventInit) {\n event.stopImmediatePropagation();\n\n this.dispatchEvent(\n new (event.constructor as typeof Event)(event.type, {\n ...event,\n ...eventOptions,\n }),\n );\n }\n}\n", ":host {\n box-sizing: border-box !important;\n}\n\n:host *,\n:host *::before,\n:host *::after {\n box-sizing: inherit !important;\n}\n\n", "import type { Validator } from './form-associated-element';\n\n/**\n * This validator is for if you have an exact copy of your element in the shadow DOM. Rather than needing\n * custom translations and error messages, you can simply rely on the element \"formControl\" in your shadow dom.\n */\nexport const CustomErrorValidator = (): Validator => {\n return {\n observedAttributes: ['custom-error'],\n checkValidity(element) {\n const validity: ReturnType<Validator['checkValidity']> = {\n message: '',\n isValid: true,\n invalidKeys: [],\n };\n\n if (element.customError) {\n validity.message = element.customError;\n validity.isValid = false;\n validity.invalidKeys = ['customError'];\n }\n\n return validity;\n },\n };\n};\n", "export class WInvalidEvent extends Event {\n constructor() {\n super('w-invalid', { bubbles: true, cancelable: false, composed: true });\n }\n}\n\ndeclare global {\n interface GlobalEventHandlersEventMap {\n 'wa-invalid': WInvalidEvent;\n }\n}\n", ":host {\n color: var(--wa-form-control-value-color);\n display: inline-flex;\n flex-direction: row;\n align-items: top;\n font-family: inherit;\n font-weight: var(--wa-form-control-value-font-weight);\n line-height: var(--wa-form-control-value-line-height);\n cursor: pointer;\n user-select: none;\n -webkit-user-select: none;\n}\n\n:host(:focus) {\n outline: none;\n}\n\n[part~='label'] {\n display: inline;\n}\n\n[part~='hint'] {\n margin-block-start: 0.5em;\n}\n\n/* Default appearance */\n:host([appearance='default']) {\n .control {\n flex: 0 0 auto;\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--wa-form-control-toggle-size, 2rem);\n height: var(--wa-form-control-toggle-size, 2rem);\n border-color: var(--wa-form-control-border-color, gray);\n border-radius: 50%;\n border-style: var(--wa-form-control-border-style, solid);\n border-width: var(--wa-form-control-border-width, 1px);\n background-color: var(--wa-form-control-background-color, white);\n color: transparent;\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n\n margin-inline-end: 0.5em;\n }\n}\n\n:host([appearance='clickable']) .control {\n position: absolute;\n inset: 0;\n height: 100%;\n width: 100%;\n cursor: pointer;\n}\n\n/* Checked */\n:host(:state(checked)):not(:host([appearance='clickable'])) .control {\n /* color: var(--checked-icon-color, white); */\n border-color: var(--wa-form-control-activated-color, blue);\n background-color: var(--wa-form-control-background-color, white);\n border-width: 0.6rem;\n}\n\n/* Focus */\n:host(:focus-visible) .control {\n outline: 2px solid var(--w-s-color-border-focus);\n outline-offset: var(--w-outline-offset, 1px);\n}\n\n:host([appearance='clickable']:focus-visible) .control {\n outline-offset: -4px;\n border-radius: 8px;\n}\n\n/* Disabled */\n:host(:state(disabled)) {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Button appearance */\n:host([appearance='button']) {\n align-items: center;\n min-height: var(--wa-form-control-height);\n background-color: var(--wa-color-surface-default);\n border: var(--wa-form-control-border-width) var(--wa-form-control-border-style) var(--wa-form-control-border-color);\n border-radius: var(--wa-border-radius-m);\n padding: 0 var(--wa-form-control-padding-inline);\n transition:\n background-color var(--wa-transition-fast),\n border-color var(--wa-transition-fast);\n\n .control {\n display: none;\n }\n}\n\n/* Horizontal grouping - remove inner border radius */\n:host([appearance='button'][data-wa-radio-horizontal][data-wa-radio-inner]) {\n border-radius: 0;\n}\n\n:host([appearance='button'][data-wa-radio-horizontal][data-wa-radio-first]) {\n border-start-end-radius: 0;\n border-end-end-radius: 0;\n}\n\n:host([appearance='button'][data-wa-radio-horizontal][data-wa-radio-last]) {\n border-start-start-radius: 0;\n border-end-start-radius: 0;\n}\n\n/* Vertical grouping - remove inner border radius */\n:host([appearance='button'][data-wa-radio-vertical][data-wa-radio-inner]) {\n border-radius: 0;\n}\n\n:host([appearance='button'][data-wa-radio-vertical][data-wa-radio-first]) {\n border-end-start-radius: 0;\n border-end-end-radius: 0;\n}\n\n:host([appearance='button'][data-wa-radio-vertical][data-wa-radio-last]) {\n border-start-start-radius: 0;\n border-start-end-radius: 0;\n}\n\n@media (hover: hover) {\n :host([appearance='button']:hover:not(:state(disabled), :state(checked))) {\n background-color: color-mix(in srgb, var(--wa-color-surface-default) 95%, var(--wa-color-mix-hover));\n }\n}\n\n:host([appearance='button']:focus-visible) {\n outline: var(--wa-focus-ring);\n outline-offset: var(--wa-focus-ring-offset);\n}\n\n:host([appearance='button']:state(checked)) {\n border-color: var(--wa-form-control-activated-color);\n background-color: var(--wa-color-brand-fill-quiet);\n}\n\n:host([appearance='button']:state(checked):focus-visible) {\n outline: var(--wa-focus-ring-style) var(--wa-focus-ring-width) var(--wa-color-brand-border-loud);\n outline-offset: var(--wa-focus-ring-offset);\n}\n\n/* Remove inner borders and handle overlap */\n:host([appearance='button'][data-wa-radio-horizontal]:not([data-wa-radio-first])) {\n margin-inline-start: calc(-1 * var(--wa-form-control-border-width));\n}\n\n:host([appearance='button'][data-wa-radio-vertical]:not([data-wa-radio-first])) {\n margin-block-start: calc(-1 * var(--wa-form-control-border-width));\n}\n\n/* Ensure interactive states are visible above adjacent buttons */\n:host([appearance='button']:hover),\n:host([appearance='button']:state(checked)) {\n position: relative;\n z-index: 1;\n}\n\n:host([appearance='button']:focus-visible) {\n z-index: 2;\n}\n\n", "import type { PropertyValues } from 'lit';\nimport { html } from 'lit';\n\nimport { property, query, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\n\nimport { BaseFormAssociatedElement } from './form-associated-element';\nimport { uniqueId } from './math';\nimport './radio';\nimport type { WRadio } from './radio';\n// eslint-disable-next-line\n// @ts-ignore\nimport styles from './radio-group.css?inline';\nimport { RequiredValidator } from './required-validator';\nimport { HasSlotController } from './slot';\n\n/**\n * @slot label - Alternative to the `label` attribute should you need custom HTML.\n */\nexport class WRadioGroup extends BaseFormAssociatedElement {\n static css = [styles];\n\n static get validators() {\n const validators = [\n RequiredValidator({\n validationElement: Object.assign(document.createElement('input'), {\n required: true,\n type: 'radio',\n // we need an id that's guaranteed to be unique; users will never see this\n name: uniqueId('__w-radio'),\n }),\n }),\n ];\n return [...super.validators, ...validators];\n }\n\n private readonly hasSlotController = new HasSlotController(this, 'hint', 'label');\n\n @state() hasRadioButtons = false;\n\n @query('slot:not([name])') defaultSlot: HTMLSlotElement;\n\n /**\n * The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot\n * instead.\n */\n @property() label = '';\n\n /** The radio groups's hint. If you need to display HTML, use the `hint` slot instead. */\n @property({ attribute: 'hint' }) hint = '';\n\n /** The name of the radio group, submitted as a name/value pair with form data. */\n @property({ reflect: true }) name: string | null = null;\n\n /** Disables the radio group and all child radios. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** The orientation in which to show radio items. */\n @property({ reflect: true }) orientation: 'horizontal' | 'vertical' = 'vertical';\n\n private _value: string | null = null;\n\n get value() {\n if (this.valueHasChanged) {\n return this._value;\n }\n\n return this._value ?? this.defaultValue;\n }\n\n /** The current value of the radio group, submitted as a name/value pair with form data. */\n @state()\n set value(val: string | number | null) {\n if (typeof val === 'number') val = String(val);\n this.valueHasChanged = true;\n this._value = val;\n }\n\n /** The default value of the form control. Primarily used for resetting the form control. */\n @property({ attribute: 'value', reflect: true }) defaultValue: string | null = this.getAttribute('value') || null;\n\n /** The radio group's size. This size will be applied to all child radios and radio buttons, except when explicitly overridden. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Ensures a child radio is checked before allowing the containing form to submit. */\n @property({ type: Boolean, reflect: true }) required = false;\n\n /**\n * Used for SSR. if true, will show slotted label on initial render.\n */\n @property({ type: Boolean, attribute: 'with-label' }) withLabel = false;\n\n /**\n * Used for SSR. if true, will show slotted hint on initial render.\n */\n @property({ type: Boolean, attribute: 'with-hint' }) withHint = false;\n\n //\n // We need this because if we don't have it, FormValidation yells at us that it's \"not focusable\".\n // If we use `this.tabIndex = -1` we can't focus the radio inside.\n //\n static shadowRootOptions = { ...BaseFormAssociatedElement.shadowRootOptions, delegatesFocus: true };\n\n constructor() {\n super();\n this.addEventListener('keydown', this.handleKeyDown);\n this.addEventListener('click', this.handleRadioClick);\n }\n\n /**\n * We use the first available radio as the validationTarget similar to native HTML that shows the validation popup on\n * the first radio element.\n */\n get validationTarget() {\n const radio = this.querySelector<WRadio>(':is(w-radio):not([disabled])');\n if (!radio) return undefined;\n\n return radio;\n }\n\n updated(changedProperties: PropertyValues<this>) {\n if (changedProperties.has('disabled') || changedProperties.has('value')) {\n this.syncRadioElements();\n }\n }\n\n formResetCallback(...args: Parameters<BaseFormAssociatedElement['formResetCallback']>) {\n this.value = this.defaultValue;\n\n super.formResetCallback(...args);\n\n this.syncRadioElements();\n }\n\n private handleRadioClick = (e: Event) => {\n const clickedRadio = (e.target as HTMLElement).closest<WRadio>('w-radio');\n /* eslint-disable */\n if (!clickedRadio || clickedRadio.disabled || (clickedRadio as any).forceDisabled || this.disabled) {\n return;\n }\n\n const oldValue = this.value;\n this.value = clickedRadio.value;\n clickedRadio.checked = true;\n\n const radios = this.getAllRadios();\n for (const radio of radios) {\n if (clickedRadio === radio) {\n continue;\n }\n\n radio.checked = false;\n radio.setAttribute('tabindex', '-1');\n }\n\n if (this.value !== oldValue) {\n this.updateComplete.then(() => {\n this.dispatchEvent(new InputEvent('input', { bubbles: true, composed: true }));\n this.dispatchEvent(new Event('change', { bubbles: true, composed: true }));\n });\n }\n };\n\n private getAllRadios() {\n return [...this.querySelectorAll<WRadio>('w-radio')];\n }\n\n private handleLabelClick() {\n this.focus();\n }\n\n private async syncRadioElements() {\n const radios = this.getAllRadios();\n let hasRadioButtons = false;\n\n // Add data attributes to support styling\n radios.forEach((radio, index) => {\n if (radio.appearance === 'button') hasRadioButtons = true;\n radio.setAttribute('size', this.size);\n radio.toggleAttribute('data-w-radio-horizontal', this.orientation !== 'vertical');\n radio.toggleAttribute('data-w-radio-vertical', this.orientation === 'vertical');\n radio.toggleAttribute('data-w-radio-first', index === 0);\n radio.toggleAttribute('data-w-radio-inner', index !== 0 && index !== radios.length - 1);\n radio.toggleAttribute('data-w-radio-last', index === radios.length - 1);\n\n // Set forceDisabled state based on radio group's disabled state\n (radio as WRadio).forceDisabled = this.disabled;\n });\n\n // If at least one radio button exists, we assume it's a radio button group\n this.hasRadioButtons = hasRadioButtons;\n\n await Promise.all(\n radios.map(async (radio) => {\n await radio.updateComplete;\n\n if (!radio.disabled && radio.value === this.value) {\n radio.checked = true;\n } else {\n radio.checked = false;\n }\n }),\n );\n\n // Manage tabIndex based on disabled state and checked status\n if (this.disabled) {\n // If radio group is disabled, all radios should not be tabbable\n radios.forEach((radio) => {\n radio.tabIndex = -1;\n });\n } else {\n // Normal tabbing behavior\n const enabledRadios = radios.filter((radio) => !radio.disabled);\n const checkedRadio = enabledRadios.find((radio) => radio.checked);\n\n if (enabledRadios.length > 0) {\n if (checkedRadio) {\n // If there's a checked radio, it should be tabbable\n enabledRadios.forEach((radio) => {\n radio.tabIndex = radio.checked ? 0 : -1;\n });\n } else {\n // If no radio is checked, first enabled radio should be tabbable\n enabledRadios.forEach((radio, index) => {\n radio.tabIndex = index === 0 ? 0 : -1;\n });\n }\n }\n\n // Disabled radios should never be tabbable\n radios\n .filter((radio) => radio.disabled)\n .forEach((radio) => {\n radio.tabIndex = -1;\n });\n }\n }\n\n private handleKeyDown(event: KeyboardEvent) {\n if (!['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', ' '].includes(event.key) || this.disabled) {\n return;\n }\n\n const radios = this.getAllRadios().filter((radio) => !radio.disabled);\n\n if (radios.length <= 0) {\n return;\n }\n\n event.preventDefault();\n\n const oldValue = this.value;\n\n const checkedRadio = radios.find((radio) => radio.checked) ?? radios[0];\n const incr = event.key === ' ' ? 0 : ['ArrowUp', 'ArrowLeft'].includes(event.key) ? -1 : 1;\n let index = radios.indexOf(checkedRadio) + incr;\n\n if (!index) index = 0;\n\n if (index < 0) {\n index = radios.length - 1;\n }\n\n if (index > radios.length - 1) {\n index = 0;\n }\n\n const hasRadioButtons = radios.some((radio) => radio.tagName.toLowerCase() === 'w-radio-button');\n\n this.getAllRadios().forEach((radio) => {\n radio.checked = false;\n\n if (!hasRadioButtons) {\n radio.setAttribute('tabindex', '-1');\n }\n });\n\n this.value = radios[index].value;\n radios[index].checked = true;\n\n if (!hasRadioButtons) {\n radios[index].setAttribute('tabindex', '0');\n radios[index].focus();\n } else {\n radios[index].shadowRoot!.querySelector('button')!.focus();\n }\n\n if (this.value !== oldValue) {\n this.updateComplete.then(() => {\n this.dispatchEvent(new InputEvent('input', { bubbles: true, composed: true }));\n this.dispatchEvent(new Event('change', { bubbles: true, composed: true }));\n });\n }\n\n event.preventDefault();\n }\n\n /** Sets focus on the radio group. */\n public focus(options?: FocusOptions) {\n if (this.disabled) return;\n\n const radios = this.getAllRadios();\n const checked = radios.find((radio) => radio.checked);\n const firstEnabledRadio = radios.find((radio) => !radio.disabled);\n const radioToFocus = checked || firstEnabledRadio;\n\n // Call focus for the checked radio. If no radio is checked, focus the first one that isn't disabled.\n if (radioToFocus) {\n radioToFocus.focus(options);\n }\n }\n\n render() {\n const hasLabelSlot = this.hasUpdated ? this.hasSlotController.test('label') : this.withLabel;\n const hasHintSlot = this.hasUpdated ? this.hasSlotController.test('hint') : this.withHint;\n const hasLabel = this.label ? true : !!hasLabelSlot;\n const hasHint = this.hint ? true : !!hasHintSlot;\n\n return html`\n <fieldset\n part=\"form-control\"\n class=${classMap({\n 'form-control': true,\n 'form-control-radio-group': true,\n 'form-control-has-label': hasLabel,\n 'has-radio-buttons': this.hasRadioButtons,\n })}\n role=\"radiogroup\"\n aria-labelledby=\"label\"\n aria-describedby=\"hint\"\n aria-errormessage=\"error-message\"\n aria-orientation=${this.orientation}>\n <label\n part=\"form-control-label\"\n id=\"label\"\n class=\"label\"\n aria-hidden=${hasLabel ? 'false' : 'true'}\n @click=${this.handleLabelClick}>\n <slot name=\"label\">${this.label}</slot>\n </label>\n\n <slot part=\"form-control-input\" @slotchange=${this.syncRadioElements}></slot>\n\n <slot\n id=\"hint\"\n name=\"hint\"\n part=\"hint\"\n class=${classMap({\n 'has-slotted': hasHint,\n })}\n aria-hidden=${hasHint ? 'false' : 'true'}\n >${this.hint}</slot\n >\n </fieldset>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-radio-group': WRadioGroup;\n }\n}\n", "export const urlAlphabet =\n 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict'\n", "/* @ts-self-types=\"./index.d.ts\" */\nimport { urlAlphabet as scopedUrlAlphabet } from './url-alphabet/index.js'\nexport { urlAlphabet } from './url-alphabet/index.js'\nexport let random = bytes => crypto.getRandomValues(new Uint8Array(bytes))\nexport let customRandom = (alphabet, defaultSize, getRandom) => {\n let mask = (2 << Math.log2(alphabet.length - 1)) - 1\n let step = -~((1.6 * mask * defaultSize) / alphabet.length)\n return (size = defaultSize) => {\n let id = ''\n while (true) {\n let bytes = getRandom(step)\n let j = step | 0\n while (j--) {\n id += alphabet[bytes[j] & mask] || ''\n if (id.length >= size) return id\n }\n }\n }\n}\nexport let customAlphabet = (alphabet, size = 21) =>\n customRandom(alphabet, size | 0, random)\nexport let nanoid = (size = 21) => {\n let id = ''\n let bytes = crypto.getRandomValues(new Uint8Array((size |= 0)))\n while (size--) {\n id += scopedUrlAlphabet[bytes[size] & 63]\n }\n return id\n}\n", "import { nanoid } from 'nanoid';\n\nexport function uniqueId(prefix = '') {\n return `${prefix}${nanoid()}`;\n}\n", ":host {\n display: block;\n}\n\n.form-control {\n position: relative;\n border: none;\n padding: 0;\n margin: 0;\n}\n\n.label {\n font-size: var(--w-font-size-s);\n line-height: var(--w-line-height-s);\n font-weight: 700;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n font-smoothing: grayscale;\n cursor: pointer;\n padding-bottom: 0.4rem;\n color: var(--w-s-color-text);\n display: block;\n}\n\n.radio-group-required .label::after {\n content: var(--wa-form-control-required-content);\n margin-inline-start: var(--wa-form-control-required-content-offset);\n}\n\n.button-group {\n display: flex;\n}\n\n[part~='form-control-input'] {\n display: flex;\n flex-direction: column;\n flex-wrap: wrap;\n gap: 0.75em;\n}\n\n/* Horizontal */\n:host([orientation='horizontal']) [part~='form-control-input'] {\n flex-direction: row;\n gap: 1em;\n}\n\n/* Help text */\n[part~='hint'] {\n margin-block-start: 0.5em;\n}\n\n/* Radios have the \"button\" appearance */\n:host fieldset.has-radio-buttons {\n [part~='form-control-input'] {\n gap: 0;\n }\n}\n\n", "import type { Validator } from './form-associated-element';\n\nexport interface RequiredValidatorOptions {\n /** This is a cheap way for us to get translation strings for the user without having proper translations. */\n validationElement?: HTMLSelectElement | HTMLInputElement;\n\n /**\n * The property to check if its not null-ish. For most elements this will be \"value\".\n * For \"checkbox\" for example it will be \"checked\"\n */\n validationProperty?: string;\n}\n\nexport const RequiredValidator = (options: RequiredValidatorOptions = {}): Validator => {\n let { validationElement, validationProperty } = options;\n\n if (!validationElement) {\n validationElement = Object.assign(document.createElement('input'), { required: true });\n }\n\n if (!validationProperty) {\n validationProperty = 'value';\n }\n\n const obj: Validator = {\n observedAttributes: ['required'],\n message: validationElement.validationMessage, // @TODO: Add a translation.\n checkValidity(element) {\n const validity: ReturnType<Validator['checkValidity']> = {\n message: '',\n isValid: true,\n invalidKeys: [],\n };\n\n const isRequired = element.required ?? element.hasAttribute('required');\n\n // Always true if the element isn't required.\n if (!isRequired) {\n return validity;\n }\n\n const value = element[validationProperty as keyof typeof element];\n\n const isEmpty = !value;\n\n if (isEmpty) {\n validity.message = typeof obj.message === 'function' ? obj.message(element) : obj.message || '';\n validity.isValid = false;\n validity.invalidKeys.push('valueMissing');\n }\n\n return validity;\n },\n };\n\n return obj;\n};\n", "import type { ReactiveController, ReactiveControllerHost } from 'lit';\n\n/** A reactive controller that determines when slots exist. */\nexport class HasSlotController implements ReactiveController {\n host: ReactiveControllerHost & Element;\n slotNames: string[] = [];\n\n constructor(host: ReactiveControllerHost & Element, ...slotNames: string[]) {\n (this.host = host).addController(this);\n this.slotNames = slotNames;\n }\n\n private hasDefaultSlot() {\n return [...this.host.childNodes].some((node) => {\n if (node.nodeType === Node.TEXT_NODE && node.textContent!.trim() !== '') {\n return true;\n }\n\n if (node.nodeType === Node.ELEMENT_NODE) {\n const el = node as HTMLElement;\n const tagName = el.tagName.toLowerCase();\n\n // Ignore visually hidden elements since they aren't rendered\n if (tagName === 'w-visually-hidden') {\n return false;\n }\n\n // If it doesn't have a slot attribute, it's part of the default slot\n if (!el.hasAttribute('slot')) {\n return true;\n }\n }\n\n return false;\n });\n }\n\n private hasNamedSlot(name: string) {\n return this.host.querySelector(`:scope > [slot=\"${name}\"]`) !== null;\n }\n\n test(slotName: string) {\n return slotName === '[default]' ? this.hasDefaultSlot() : this.hasNamedSlot(slotName);\n }\n\n hostConnected() {\n this.host.shadowRoot!.addEventListener('slotchange', this.handleSlotChange);\n }\n\n hostDisconnected() {\n this.host.shadowRoot!.removeEventListener('slotchange', this.handleSlotChange);\n }\n\n private handleSlotChange = (event: Event) => {\n const slot = event.target as HTMLSlotElement;\n\n if ((this.slotNames.includes('[default]') && !slot.name) || (slot.name && this.slotNames.includes(slot.name))) {\n this.host.requestUpdate();\n }\n };\n}\n\n/**\n * Given a list of nodes, this function iterates over all of them and returns the concatenated\n * HTML as a string. This is useful for getting the HTML that corresponds to a slot\u2019s assigned nodes (since we can't use slot.innerHTML as an alternative).\n * @param nodes - The list of nodes to iterate over.\n * @param callback - A function that can be used to customize the HTML output for specific types of nodes. If the function returns undefined, the default HTML output will be used.\n */\nexport function getInnerHTML(nodes: Iterable<Node>, callback?: (node: Node) => string | undefined): string {\n let html = '';\n\n for (const node of nodes) {\n if (callback) {\n const customHTML = callback(node);\n\n if (customHTML !== undefined) {\n html += customHTML;\n continue;\n }\n }\n\n if (node.nodeType === Node.ELEMENT_NODE) {\n html += (node as HTMLElement).outerHTML;\n }\n\n if (node.nodeType === Node.TEXT_NODE) {\n html += node.textContent;\n }\n }\n\n return html;\n}\n", "import { WRadio } from './radio';\nimport { WRadioGroup } from './radio-group';\n\nif (!customElements.get('w-radio')) {\n customElements.define('w-radio', WRadio);\n customElements.define('w-radio-group', WRadioGroup);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-radio': WRadio;\n 'w-radio-group': WRadioGroup;\n }\n}\n", "import type { PropertyValues } from 'lit';\nimport { html } from 'lit';\n\nimport { property, query } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { live } from 'lit/directives/live.js';\n\nimport { BaseFormAssociatedElement } from '../rip-and-tear-radio/form-associated-element';\nimport { RequiredValidator } from '../rip-and-tear-radio/required-validator';\nimport { HasSlotController } from '../rip-and-tear-radio/slot';\nimport { watch } from '../rip-and-tear-radio/watch';\nimport '@warp-ds/icons/elements/check-16';\n\n// eslint-disable-next-line\n// @ts-ignore\nimport styles from './checkbox.css?inline';\n\nexport class WCheckbox extends BaseFormAssociatedElement {\n static css = [styles];\n\n static shadowRootOptions = { ...BaseFormAssociatedElement.shadowRootOptions, delegatesFocus: true };\n\n static get validators() {\n const validators = [\n RequiredValidator({\n validationProperty: 'checked',\n // Use a checkbox so we get \"free\" translation strings.\n validationElement: Object.assign(document.createElement('input'), {\n type: 'checkbox',\n required: true,\n }),\n }),\n ];\n return [...super.validators, ...validators];\n }\n\n private readonly hasSlotController = new HasSlotController(this, 'hint');\n\n @query('input[type=\"checkbox\"]') input: HTMLInputElement;\n\n @property() title = ''; // make reactive to pass through\n\n /** The name of the checkbox, submitted as a name/value pair with form data. */\n @property({ reflect: true }) name = '';\n\n private _value: string | null = this.getAttribute('value') ?? null;\n\n /** The value of the checkbox, submitted as a name/value pair with form data. */\n get value(): string | null {\n return this._value ?? 'on';\n }\n\n @property({ reflect: true })\n set value(val: string | null) {\n this._value = val;\n }\n\n /** The checkbox's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Disables the checkbox. */\n @property({ type: Boolean }) disabled = false;\n\n /**\n * Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a \"select\n * all/none\" behavior when associated checkboxes have a mix of checked and unchecked states.\n */\n @property({ type: Boolean, reflect: true }) indeterminate = false;\n\n /** Draws the checkbox in a checked state. */\n @property({ type: Boolean, attribute: false }) checked: boolean = this.hasAttribute('checked');\n\n /** The default value of the form control. Primarily used for resetting the form control. */\n @property({ type: Boolean, reflect: true, attribute: 'checked' }) defaultChecked: boolean = this.hasAttribute('checked');\n\n /**\n * By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\n * to place the form control outside of a form and associate it with the form that has this `id`. The form must be in\n * the same document or shadow root for this to work.\n */\n @property({ reflect: true }) form = null;\n\n /** Makes the checkbox a required field. */\n @property({ type: Boolean, reflect: true }) required = false;\n\n /** The checkbox's hint. If you need to display HTML, use the `hint` slot instead. */\n @property() hint = '';\n\n private handleClick() {\n this.hasInteracted = true;\n this.checked = !this.checked;\n this.indeterminate = false;\n this.updateComplete.then(() => {\n this.dispatchEvent(new Event('change', { bubbles: true, composed: true }));\n });\n }\n\n @watch('defaultChecked')\n handleDefaultCheckedChange() {\n if (!this.hasInteracted && this.checked !== this.defaultChecked) {\n this.checked = this.defaultChecked;\n this.handleValueOrCheckedChange();\n }\n }\n\n handleValueOrCheckedChange() {\n // These @watch() commands seem to override the base element checks for changes, so we need to setValue for the form and and updateValidity()\n this.setValue(this.checked ? this.value : null, this._value);\n this.updateValidity();\n }\n\n @watch(['checked', 'indeterminate'])\n handleStateChange() {\n if (this.hasUpdated) {\n this.input.checked = this.checked; // force a sync update\n this.input.indeterminate = this.indeterminate; // force a sync update\n }\n\n this.customStates.set('checked', this.checked);\n this.customStates.set('indeterminate', this.indeterminate);\n this.updateValidity();\n }\n\n @watch('disabled')\n handleDisabledChange() {\n this.customStates.set('disabled', this.disabled);\n }\n\n protected willUpdate(changedProperties: PropertyValues<this>): void {\n super.willUpdate(changedProperties);\n\n if (changedProperties.has('defaultChecked')) {\n if (!this.hasInteracted) {\n this.checked = this.defaultChecked;\n }\n }\n\n if (changedProperties.has('value') || changedProperties.has('checked')) {\n this.handleValueOrCheckedChange();\n }\n }\n\n formResetCallback() {\n // Evaluate checked before the super call because of our watcher on value.\n this.checked = this.defaultChecked;\n super.formResetCallback();\n this.handleValueOrCheckedChange();\n }\n\n /** Simulates a click on the checkbox. */\n click() {\n this.input.click();\n }\n\n /** Sets focus on the checkbox. */\n focus(options?: FocusOptions) {\n this.input.focus(options);\n }\n\n /** Removes focus from the checkbox. */\n blur() {\n this.input.blur();\n }\n\n render() {\n const hasHintSlot = this.hasSlotController.test('hint');\n const hasHint = this.hint ? true : !!hasHintSlot;\n const isIndeterminate = !this.checked && this.indeterminate;\n\n return html`\n <label part=\"base\">\n <span part=\"control\">\n <input\n class=\"input\"\n type=\"checkbox\"\n title=${this.title /* An empty title prevents browser validation tooltips from appearing on hover */}\n name=${this.name}\n value=${ifDefined(this._value)}\n .indeterminate=${live(this.indeterminate)}\n .checked=${live(this.checked)}\n .disabled=${this.disabled}\n .required=${this.required}\n aria-checked=${this.checked ? 'true' : 'false'}\n aria-describedby=\"hint\"\n @click=${this.handleClick} />\n ${isIndeterminate ? '\u2013' : ''}\n </span>\n\n <slot part=\"label\"></slot>\n </label>\n\n <slot id=\"hint\" part=\"hint\" name=\"hint\" aria-hidden=${hasHint ? 'false' : 'true'} class=\"${classMap({ 'has-slotted': hasHint })}\">\n ${this.hint}\n </slot>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-checkbox': WCheckbox;\n }\n}\n", "import type { LitElement } from 'lit';\n\ntype UpdateHandler = (prev?: unknown, next?: unknown) => void;\n\ntype NonUndefined<A> = A extends undefined ? never : A;\n\ntype UpdateHandlerFunctionKeys<T extends object> = {\n [K in keyof T]-?: NonUndefined<T[K]> extends UpdateHandler ? K : never;\n}[keyof T];\n\ninterface WatchOptions {\n /**\n * If true, will only start watching after the initial update/render\n */\n waitUntilFirstUpdate?: boolean;\n}\n\n/**\n * Runs when observed properties change, e.g. @property or @state, but before the component updates. To wait for an\n * update to complete after a change occurs, use `await this.updateComplete` in the handler. To start watching after the\n * initial update/render, use `{ waitUntilFirstUpdate: true }` or `this.hasUpdated` in the handler.\n *\n * Usage:\n *\n * @watch('propName')\n * handlePropChange(oldValue, newValue) {\n * ...\n * }\n */\nexport function watch(propertyName: string | string[], options?: WatchOptions) {\n const resolvedOptions: Required<WatchOptions> = {\n waitUntilFirstUpdate: false,\n ...options,\n };\n return <ElemClass extends LitElement>(proto: ElemClass, decoratedFnName: UpdateHandlerFunctionKeys<ElemClass>) => {\n // @ts-expect-error - update is a protected property\n const { update } = proto;\n const watchedProperties = Array.isArray(propertyName) ? propertyName : [propertyName];\n\n // @ts-expect-error - update is a protected property\n proto.update = function (this: ElemClass, changedProps: Map<keyof ElemClass, ElemClass[keyof ElemClass]>) {\n watchedProperties.forEach((property) => {\n const key = property as keyof ElemClass;\n if (changedProps.has(key)) {\n const oldValue = changedProps.get(key);\n const newValue = this[key];\n\n if (oldValue !== newValue) {\n if (!resolvedOptions.waitUntilFirstUpdate || this.hasUpdated) {\n (this[decoratedFnName] as unknown as UpdateHandler)(oldValue, newValue);\n }\n }\n }\n });\n\n update.call(this, changedProps);\n };\n };\n}\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/check/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/check/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/check/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/check/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/check/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconCheck16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Checkmark`, id: 'icon.title.check', comment: 'Title for check icon' });\n \n return html`<svg xmlns=\"http://www.w3.org/2000/svg\"width=\"16\"height=\"16\"fill=\"none\"viewBox=\"0 0 16 16\" part=\"w-icon-check-16-part\">${unsafeStatic(`<title>${title}</title>`)}<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M3.83 7.667 7.163 11l5.334-6\"></path></svg>`; }\n}\nif (!customElements.get('w-icon-check-16')) {\n customElements.define('w-icon-check-16', IconCheck16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.check\\\":[\\\"Sjekkmerke\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.check\\\":[\\\"Checkmark\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.check\\\":[\\\"Valintamerkki\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.check\\\":[\\\"Flueben\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.check\\\":[\\\"Bock\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", ":host {\n display: block;\n user-select: none;\n -webkit-user-select: none;\n}\n\n[part~='control'] {\n position: relative;\n width: 2rem;\n height: 2rem;\n border-color: var(--w-s-color-border);\n border-radius: 2px;\n border-style: solid;\n border-width: 1px;\n background-color: var(--w-s-color-background);\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n margin-right: 0.8rem;\n text-align: center;\n line-height: var(--w-line-height-xs);\n font-size: var(--w-font-size-m);\n}\n\n[part~='base'] {\n display: flex;\n align-items: center;\n position: relative;\n color: currentColor;\n vertical-align: middle;\n cursor: pointer;\n}\n\n[part~='label'] {\n display: block;\n font-size: var(--w-font-size-m);\n line-height: var(--w-line-height-m);\n user-select: none;\n cursor: pointer;\n padding: 0.2rem 0;\n}\n\nlabel:hover [part~='control']:not(:has(:checked, :indeterminate)) {\n background-color: var(--w-s-color-background-hover);\n border-color: var(--w-s-color-border-primary);\n}\n\nlabel:hover [part~='control']:has(:checked, :indeterminate) {\n border-color: var(--w-s-color-border-primary-hover);\n background-color: var(--w-s-color-background-primary-hover);\n}\n\n[part~='control']:has(:checked, :indeterminate) {\n color: var(--checked-icon-color, white);\n border-color: var(--w-s-color-border-primary);\n background-color: var(--w-s-color-background-primary);\n}\n\n[part~='control']:has(:indeterminate) {\n font-weight: 700;\n}\n\n[part~='control']:has(:invalid) {\n border-color: var(--w-s-color-border-negative);\n}\n\n[part~='control']:has(:invalid):hover {\n background-color: var(--w-s-color-background-negative-subtle-hover);\n}\n\n[part~='control']:has(:checked):has(:invalid) {\n background-color: var(--w-s-color-background-negative);\n}\n\n[part~='control']:has(:checked) {\n background-image: var(--w-icon-toggle-checked);\n background-position: center;\n}\n\n/* Focus */\n[part~='control']:has(> input:focus-visible:not(:disabled)) {\n outline: var(--wa-focus-ring);\n outline-offset: var(--wa-focus-ring-offset);\n}\n\n/* Disabled */\n:host [part~='base']:has(input:disabled) {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\ninput {\n position: absolute;\n padding: 0;\n margin: 0;\n height: 100%;\n width: 100%;\n opacity: 0;\n pointer-events: none;\n}\n\n[part~='icon'] {\n display: flex;\n\n input:not(:checked, :indeterminate) + & {\n visibility: hidden;\n }\n}\n\n:host([required]) [part~='label']::after {\n content: var(--wa-form-control-required-content);\n color: var(--wa-form-control-required-content-color);\n margin-inline-start: var(--wa-form-control-required-content-offset);\n}\n\n", "import { WCheckbox } from './checkbox';\n\nif (!customElements.get('w-checkbox')) {\n customElements.define('w-checkbox', WCheckbox);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-checkbox': WCheckbox;\n }\n}\n", "// @warp-css;\nimport { html, LitElement } from 'lit';\n\nimport { classNames } from '@chbphone55/classnames';\nimport { i18n } from '@lingui/core';\nimport { FormControlMixin } from '@open-wc/form-control';\nimport { property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js';\nimport { when } from 'lit/directives/when.js';\n\nimport { activateI18n } from '../i18n.js';\nimport { reset } from '../styles.js';\n\nimport { messages as daMessages } from './locales/da/messages.mjs';\nimport { messages as enMessages } from './locales/en/messages.mjs';\nimport { messages as fiMessages } from './locales/fi/messages.mjs';\nimport { messages as nbMessages } from './locales/nb/messages.mjs';\nimport { messages as svMessages } from './locales/sv/messages.mjs';\nimport { styles } from './styles.js';\n\nimport '@warp-ds/icons/elements/chevron-down-16';\n\nexport const ccSelect = {\n base: 'block text-m mb-0 py-12 pr-32 rounded-4 w-full focusable focus:[--w-outline-offset:-2px] appearance-none cursor-pointer caret-current',\n default: 's-text s-bg pl-8 border-1 s-border hover:s-border-hover active:s-border-active',\n disabled:\n 's-text-disabled s-bg-disabled-subtle pl-8 border-1 s-border-disabled hover:s-border-disabled active:s-border-disabled pointer-events-none',\n invalid:\n 's-text s-bg pl-8 border-1 s-border-negative hover:s-border-negative-hover active:s-border-active outline-[--w-s-color-border-negative]!',\n readOnly: 's-text bg-transparent pl-0 border-0 pointer-events-none before:hidden',\n wrapper: 'relative',\n selectWrapper: `relative before:block before:absolute before:right-0 before:bottom-0 before:w-32 before:h-full before:pointer-events-none `,\n chevron: 'block absolute top-[30%] right-0 bottom-0 w-32 h-full s-icon pointer-events-none cursor-pointer',\n chevronDisabled: 'opacity-25',\n};\n\nexport const ccLabel = {\n base: 'antialiased block relative text-s font-bold pb-4 cursor-pointer s-text',\n optional: 'pl-8 font-normal text-s s-text-subtle',\n};\n\nexport const ccHelpText = {\n base: 'text-xs mt-4 block',\n color: 's-text-subtle',\n colorInvalid: 's-text-negative',\n};\n\n/**\n * A dropdown component for selecting a single value.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-select--docs)\n */\nexport class WarpSelect extends FormControlMixin(LitElement) {\n /** Whether the element should receive focus on render */\n @property({ attribute: 'auto-focus', type: Boolean, reflect: true })\n autoFocus: boolean;\n\n /** Renders the field in an invalid state. Often paired with `hint` to provide feedback about the error */\n @property({ type: Boolean, reflect: true })\n invalid: boolean;\n\n /** Whether to always show a hint */\n @property({ type: Boolean, reflect: true })\n always: boolean;\n\n /** The content displayed as the help text */\n @property({ reflect: true })\n hint: string;\n\n /** The content to disply as the label */\n @property({ reflect: true })\n label: string;\n\n /** Whether to show optional text */\n @property({ type: Boolean, reflect: true })\n optional: boolean;\n\n /** Renders the field in a disabled state. */\n @property({ type: Boolean, reflect: true })\n disabled: boolean;\n\n /** Renders the field in a readonly state. */\n @property({ attribute: 'read-only', type: Boolean, reflect: true })\n readOnly: boolean;\n\n /** @internal */\n @property({ state: true })\n _options: string;\n\n @property({ reflect: true })\n name: string;\n\n @property({ reflect: true })\n value: string;\n\n static styles = [reset, styles];\n\n constructor() {\n super();\n activateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n this._options = this.innerHTML;\n }\n\n /** @internal */\n _setValue = (value: string) => {\n this.value = value;\n this.setValue(value);\n };\n\n firstUpdated() {\n // autofocus doesn't seem to behave properly in Safari and FireFox, therefore we set the focus here:\n if (this.autoFocus) this.shadowRoot.querySelector('select').focus();\n\n // Set initial value based on any slotted options that are selected\n Array.from(this.children).map((child: HTMLOptionElement) => {\n if (child.selected) {\n this._setValue(child.value);\n }\n });\n }\n\n handleKeyDown(event: KeyboardEvent) {\n if (this.readOnly && (event.key === ' ' || event.key === 'ArrowDown' || event.key === 'ArrowUp')) {\n event.preventDefault();\n }\n }\n\n get #classes() {\n return classNames([\n ccSelect.base,\n !this.invalid && !this.disabled && !this.readOnly && ccSelect.default,\n this.invalid && ccSelect.invalid,\n this.disabled && ccSelect.disabled,\n this.readOnly && ccSelect.readOnly,\n ]);\n }\n\n get #helpTextClasses() {\n return classNames([ccHelpText.base, this.invalid ? ccHelpText.colorInvalid : ccHelpText.color]);\n }\n\n get #chevronClasses() {\n return classNames([ccSelect.chevron, this.disabled && ccSelect.chevronDisabled]);\n }\n\n get #id() {\n return 'select_id';\n }\n\n get #helpId() {\n return this.hint ? `${this.#id}__hint` : undefined;\n }\n\n // // Fire a custom 'change' event, used when the dropdown changes state.\n onChange({ target }) {\n this._setValue(target.value);\n const event = new CustomEvent('change', { detail: target.value });\n this.dispatchEvent(event);\n }\n\n render() {\n return html`<div class=\"${ccSelect.wrapper}\">\n ${when(\n this.label,\n () =>\n html`<label class=\"${ccLabel.base}\" for=\"${this.#id}\">\n ${this.label}\n ${when(\n this.optional,\n () =>\n html`<span class=\"${ccLabel.optional}\"\n >${i18n._({\n id: 'select.label.optional',\n message: '(optional)',\n comment: 'Shown behind label when marked as optional',\n })}</span\n >`,\n )}</label\n >`,\n )}\n <div class=\"${ccSelect.selectWrapper}\">\n <select\n class=\"${this.#classes}\"\n id=\"${this.#id}\"\n ?disabled=${this.disabled}\n aria-describedby=\"${ifDefined(this.#helpId)}\"\n aria-invalid=\"${ifDefined(this.invalid)}\"\n aria-errormessage=\"${ifDefined(this.invalid && this.#helpId)}\"\n @keydown=${this.handleKeyDown}\n @change=${this.onChange}>\n ${unsafeHTML(this._options)}\n </select>\n <div class=\"${this.#chevronClasses}\">\n <w-icon-chevron-down-16></w-icon-chevron-down-16>\n </div>\n </div>\n ${when(this.always || this.invalid, () => html`<div id=\"${this.#helpId}\" class=\"${this.#helpTextClasses}\">${this.hint}</div>`)}\n </div>`;\n }\n}\n\nif (!customElements.get('w-select')) {\n customElements.define('w-select', WarpSelect);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-select': WarpSelect;\n }\n}\n", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"select.label.optional\\\":[\\\"(valgfrit)\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"select.label.optional\\\":[\\\"(optional)\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"select.label.optional\\\":[\\\"(vapaaehtoinen)\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"select.label.optional\\\":[\\\"(valgfritt)\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"select.label.optional\\\":[\\\"(valfritt)\\\"]}\");", "import { css } from 'lit'; export const styles = css`*,: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}.focus\\\\:\\\\[--w-outline-offset\\\\:-2px\\\\]:focus{--w-outline-offset:-2px}.bg-transparent{background-color:#0000}.appearance-none{-webkit-appearance:none;appearance:none}.border-0{border-width:0}.border-1{border-width:1px}.rounded-4{border-radius:4px}.caret-current{caret-color:currentColor}.opacity-25{opacity:.25}.block,.before\\\\:block:before{display:block}.before\\\\:hidden:before{display:none}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.outline-\\\\[--w-s-color-border-negative\\\\]\\\\!{outline-color:var(--w-s-color-border-negative)!important}.bottom-0{bottom:0}.right-0{right:0}.before\\\\:bottom-0:before{bottom:0}.before\\\\:right-0:before{right:0}.top-\\\\[30\\\\%\\\\]{top:30%}.absolute{position:absolute}.relative{position:relative}.static{position:static}.before\\\\:absolute:before{position:absolute}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled-subtle{background-color:var(--w-s-color-background-disabled-subtle)}.s-text{color:var(--w-s-color-text)}.s-text-disabled{color:var(--w-s-color-text-disabled)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-text-subtle{color:var(--w-s-color-text-subtle)}.s-icon{color:var(--w-s-color-icon)}.s-border{border-color:var(--w-s-color-border)}.s-border-disabled{border-color:var(--w-s-color-border-disabled)}.s-border-negative{border-color:var(--w-s-color-border-negative)}.hover\\\\:s-border-disabled:hover{border-color:var(--w-s-color-border-disabled)}.hover\\\\:s-border-hover:hover{border-color:var(--w-s-color-border-hover)}.hover\\\\:s-border-negative-hover:hover{border-color:var(--w-s-color-border-negative-hover)}.active\\\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.active\\\\:s-border-disabled:active{border-color:var(--w-s-color-border-disabled)}.h-full{height:100%}.w-32{width:3.2rem}.w-full{width:100%}.before\\\\:h-full:before{height:100%}.before\\\\:w-32:before{width:3.2rem}.mb-0{margin-bottom:0}.mt-4{margin-top:.4rem}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.pb-4{padding-bottom:.4rem}.pl-0{padding-left:0}.pl-8{padding-left:.8rem}.pr-32{padding-right:3.2rem}.cursor-pointer{cursor:pointer}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:grayscale}.font-bold{font-weight:700}.font-normal{font-weight:400}.pointer-events-none,.before\\\\:pointer-events-none:before{pointer-events:none}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}`;\n", "// @warp-css;\n\nimport { LitElement, html, PropertyValues } from 'lit';\n\nimport { classNames as classnames } from '@chbphone55/classnames';\nimport { FormControlMixin } from '@open-wc/form-control';\nimport WarpElement from '@warp-ds/elements-core';\nimport { property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\n\nimport { reset } from '../styles.js';\n\nimport { styles } from './styles.js';\n\nexport const ccinput = {\n // wrapper classes\n wrapper: 'relative',\n // input classes\n base: 'block text-m leading-m mb-0 px-8 py-12 rounded-4 w-full focusable focus:[--w-outline-offset:-2px] caret-current', // true\n default: 'border-1 s-text s-bg s-border hover:s-border-hover active:s-border-selected', // !isInvalid && !isDisabled && !isReadOnly\n disabled: 'border-1 s-text-disabled s-bg-disabled-subtle s-border-disabled pointer-events-none', // !isInvalid && isDisabled && !isReadOnly\n invalid: 'border-1 s-text-negative s-bg s-border-negative hover:s-border-negative-hover outline-[--w-s-color-border-negative]!', // isInvalid && !isDisabled && !isReadOnly\n readOnly: 'pl-0 bg-transparent pointer-events-none', // !isInvalid && !isDisabled && isReadOnly\n placeholder: 'placeholder:s-text-placeholder',\n suffix: 'pr-40',\n prefix: 'pl-[var(--w-prefix-width,_40px)]',\n // textarea classes\n textArea: 'min-h-[42] sm:min-h-[45]',\n};\n\nexport const ccLabel = {\n base: 'antialiased block relative text-s font-bold pb-4 cursor-pointer s-text',\n optional: 'pl-8 font-normal text-s s-text-subtle',\n};\n\nexport const ccHelpText = {\n base: 'text-xs mt-4 block',\n color: 's-text-subtle',\n colorInvalid: 's-text-negative',\n};\n\n/**\n * A single line text input element.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)\n */\nclass WarpTextField extends FormControlMixin(LitElement) {\n static shadowRootOptions = {\n ...WarpElement.shadowRootOptions,\n delegatesFocus: true,\n };\n\n @property({ type: Boolean, reflect: true })\n disabled: boolean;\n\n @property({ type: Boolean, reflect: true })\n invalid: boolean;\n\n @property({ type: String, reflect: true })\n id: string;\n\n @property({ type: String, reflect: true })\n label: string;\n\n @property({ type: String, reflect: true })\n helpText: string;\n\n @property({ type: String, reflect: true })\n size: string;\n\n @property({ type: Number, reflect: true })\n max: number;\n\n @property({ type: Number, reflect: true })\n min: number;\n\n @property({ type: Number, reflect: true, attribute: 'min-length' })\n minLength: number;\n\n @property({ type: Number, reflect: true, attribute: 'max-length' })\n maxLength: number;\n\n @property({ type: String, reflect: true })\n pattern: string;\n\n @property({ type: String, reflect: true })\n placeholder: string;\n\n @property({ type: Boolean, reflect: true, attribute: 'read-only' })\n readOnly: boolean;\n\n @property({ type: Boolean, reflect: true })\n required: boolean;\n\n @property({ type: String, reflect: true })\n type = 'text';\n\n @property({ type: String, reflect: true })\n value: string;\n\n @property({ type: String, reflect: true })\n name: string;\n\n /** @internal */\n @property({ type: Boolean })\n _hasPrefix = false;\n\n /** @internal */\n @property({ type: Boolean })\n _hasSuffix = false;\n\n updated(changedProperties: PropertyValues<this>) {\n if (changedProperties.has('value')) {\n this.setValue(this.value);\n }\n }\n\n // Note about styling slotted elements:\n // https://developer.mozilla.org/en-US/docs/Web/CSS/::slotted\n // https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM#styling_slotted_elements\n // Slotted elements remain in lightDOM which allows for control of their style outside of shadowDOM.\n // ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,\n // so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.\n // https://stackoverflow.com/a/61631668\n static styles = [reset, styles];\n\n /** @internal */\n get _inputstyles() {\n return classnames([\n ccinput.base,\n this._hasSuffix && ccinput.suffix,\n this._hasPrefix && ccinput.prefix,\n !this.invalid && !this.disabled && !this.readOnly && ccinput.default,\n this.invalid && !this.disabled && !this.readOnly && ccinput.invalid,\n !this.invalid && this.disabled && !this.readOnly && ccinput.disabled,\n !this.invalid && !this.disabled && this.readOnly && ccinput.readOnly,\n ]);\n }\n\n /** @internal */\n get _helptextstyles() {\n return classnames([ccHelpText.base, this.invalid ? ccHelpText.colorInvalid : ccHelpText.color]);\n }\n\n /** @internal */\n get _label() {\n if (this.label) {\n return html`<label for=\"${this._id}\" class=${ccLabel.base}>${this.label}</label>`;\n }\n return undefined;\n }\n\n /** @internal */\n get _helpId() {\n if (this.helpText) return `${this._id}__hint`;\n return undefined;\n }\n\n /** @internal */\n get _id() {\n return 'textfield';\n }\n\n /** @internal */\n get _error() {\n if (this.invalid && this._helpId) return this._helpId;\n return undefined;\n }\n\n handler(e: Event) {\n const { name, value } = e.currentTarget as HTMLInputElement;\n this.setValue(value);\n const event = new CustomEvent(e.type, {\n detail: {\n name,\n value,\n target: e.target,\n },\n });\n this.dispatchEvent(event);\n }\n\n prefixSlotChange() {\n const el: HTMLSlotElement = this.renderRoot.querySelector('slot[name=prefix]');\n const affixes = el.assignedElements();\n if (affixes.length) this._hasPrefix = true;\n }\n\n suffixSlotChange() {\n const el: HTMLSlotElement = this.renderRoot.querySelector('slot[name=suffix]');\n const affixes = el.assignedElements();\n if (affixes.length) this._hasSuffix = true;\n }\n\n render() {\n return html`\n ${this._label}\n <div class=\"${ccinput.wrapper}\">\n <slot @slotchange=\"${this.prefixSlotChange}\" name=\"prefix\"></slot>\n <input\n class=\"${this._inputstyles}\"\n type=\"${this.type}\"\n min=\"${ifDefined(this.min)}\"\n max=\"${ifDefined(this.max)}\"\n size=\"${ifDefined(this.size)}\"\n minlength=\"${ifDefined(this.minLength)}\"\n maxlength=\"${ifDefined(this.maxLength)}\"\n name=\"${ifDefined(this.name)}\"\n pattern=\"${ifDefined(this.pattern)}\"\n placeholder=\"${ifDefined(this.placeholder)}\"\n value=\"${ifDefined(this.value)}\"\n aria-describedby=\"${ifDefined(this._helpId)}\"\n aria-errormessage=\"${ifDefined(this._error)}\"\n aria-invalid=\"${ifDefined(this.invalid)}\"\n id=\"${this._id}\"\n ?disabled=\"${this.disabled}\"\n ?readonly=\"${this.readOnly}\"\n ?required=\"${this.required}\"\n @blur=\"${this.handler}\"\n @change=\"${this.handler}\"\n @focus=\"${this.handler}\" />\n <slot @slotchange=\"${this.suffixSlotChange}\" name=\"suffix\"></slot>\n </div>\n ${this.helpText && html`<div class=\"${this._helptextstyles}\" id=\"${this._helpId}\">${this.helpText}</div>`}\n `;\n }\n}\n\nif (!customElements.get('w-textfield')) {\n customElements.define('w-textfield', WarpTextField);\n}\n\nexport { WarpTextField };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-textfield': WarpTextField;\n }\n}\n", "import { css } from 'lit'; export const styles = css`*,: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}.focus\\\\:\\\\[--w-outline-offset\\\\:-2px\\\\]:focus{--w-outline-offset:-2px}.bg-transparent{background-color:#0000}.border-1{border-width:1px}.rounded-4{border-radius:4px}.caret-current{caret-color:currentColor}.block{display:block}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.outline-\\\\[--w-s-color-border-negative\\\\]\\\\!{outline-color:var(--w-s-color-border-negative)!important}.relative{position:relative}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled-subtle{background-color:var(--w-s-color-background-disabled-subtle)}.s-text{color:var(--w-s-color-text)}.s-text-disabled{color:var(--w-s-color-text-disabled)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-text-subtle{color:var(--w-s-color-text-subtle)}.placeholder\\\\:s-text-placeholder::placeholder{color:var(--w-s-color-text-placeholder)}.s-border{border-color:var(--w-s-color-border)}.s-border-disabled{border-color:var(--w-s-color-border-disabled)}.s-border-negative{border-color:var(--w-s-color-border-negative)}.hover\\\\:s-border-hover:hover{border-color:var(--w-s-color-border-hover)}.hover\\\\:s-border-negative-hover:hover{border-color:var(--w-s-color-border-negative-hover)}.active\\\\:s-border-selected:active{border-color:var(--w-s-color-border-selected)}.w-full{width:100%}.min-h-\\\\[42\\\\]{min-height:4.2rem}.mb-0{margin-bottom:0}.mt-4{margin-top:.4rem}.px-8{padding-left:.8rem;padding-right:.8rem}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.pb-4{padding-bottom:.4rem}.pl-0{padding-left:0}.pl-8{padding-left:.8rem}.pr-40{padding-right:4rem}.pl-\\\\[var\\\\(--w-prefix-width\\\\,_40px\\\\)\\\\]{padding-left:var(--w-prefix-width,40px)}.cursor-pointer{cursor:pointer}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:grayscale}.font-bold{font-weight:700}.font-normal{font-weight:400}.pointer-events-none{pointer-events:none}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-m{line-height:var(--w-line-height-m)}@media (min-width:480px){.sm\\\\:min-h-\\\\[45\\\\]{min-height:4.5rem}}`;\n", "export const windowExists = typeof window !== 'undefined';\n", "import { windowExists } from '../utils/window-exists';\n\n/**\n * Toast helper function options\n * @typedef {Object} ToastOptions\n * @property {(number|string)} [id] Custom identifier\n * @property {('success'|'error'|'warning')} [type] Type of toast\n * @property {String} [text] The toast message. Only needed when updating text on existing toast\n * @property {(number|string)} [duration] Duration of toast in milliseconds. Defaults to 5000. For accessibility reasons, toasts should never be interactive and therefore need to auto remove. If you must disable auto remove, set duration to Number.POSITIVE_INFINITY.\n * @property {Boolean} [canclose] Whether the toast can be dismissed. Defaults to false. WARNING! For accessibility reasons, toasts should not be interactive and canclose should always be false. If the toast absolutely must be dismissable, set this to true.\n */\n\n/**\n * Creates a new toast\n * @param {String} message Message\n * @param {ToastOptions?} options Toast options\n * @returns {ToastOptions} Toast details\n */\nexport function toast(message, options) {\n if (!windowExists) return;\n const toast = customElements.get('w-toast-container').init();\n\n const data = {\n id: Date.now().toString(36) + Math.random().toString(36).slice(2, 5),\n text: message,\n duration: 5000,\n type: 'success',\n ...options,\n };\n\n toast.set(data);\n return data;\n}\n\n/**\n * Remove an existing toast\n * @param {String|Number} id Toast identifier\n * @return {Promise<Boolean>} Resolves to true if deleted, false if not found\n */\nexport function removeToast(id) {\n if (!windowExists) return;\n const toast = customElements.get('w-toast-container').init();\n return toast.del(id);\n}\n\n/**\n * Update an existing toast\n * @param {String|Number} id Toast identifier\n * @param {ToastOptions?} options Toast options\n * @returns {WarpToastContainer} Toast details\n */\nexport function updateToast(id, options) {\n if (!windowExists) return;\n const toast = customElements.get('w-toast-container').init();\n toast.set({ ...toast.get(id), ...options });\n return toast.get(id);\n}\n", "import { css, html } from 'lit';\n\nimport { toaster as ccToastContainer } from '@warp-ds/css/component-classes';\nimport WarpElement from '@warp-ds/elements-core';\nimport { repeat } from 'lit/directives/repeat.js';\n\n/**\n * Toast helper function options\n * @typedef {Object} ToastOptions\n * @property {(number|string)} [id] Custom identifier\n * @property {('success'|'error'|'warning')} [type] Type of alert\n * @property {String} [text] The toast message. Only needed when updating text on existing toast\n * @property {(number|string)} [duration] Duration of toast in milliseconds. Defaults to 5000. For accessibility reasons, toasts should never be interactive and therefore need to auto remove. If you must disable auto remove, set duration to Number.POSITIVE_INFINITY.\n * @property {Boolean} [canClose] Whether the toast can be dismissed. Defaults to false. WARNING! For accessibility reasons, toasts should not be interactive and canclose should always be false. If the toast absolutely must be dismissble, set this to true.\n */\n\n/**\n * You should probably not include this component in HTML markup.\n *\n * As long as the element definition is imported in your application you can use the toast JS API to create toasts.\n *\n * ```js\n * import from '@warp-ds/elements/components/toast';\n * import { toast, removeToast, updateToast } from '@warp-ds/elements/toast';\n * ```\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-toast--docs)\n *\n * @internal\n */\nexport class WarpToastContainer extends WarpElement {\n static styles = [\n WarpElement.styles,\n css`\n :host {\n display: block;\n }\n `,\n ];\n\n static properties = {\n /** @internal */\n _toasts: { state: true },\n };\n\n constructor() {\n super();\n this._toasts = new Map();\n }\n\n connectedCallback() {\n super.connectedCallback();\n\n // regularly check if any toasts have expired\n this._interval = setInterval(() => {\n // sort toasts into keep and remove\n const keep = [];\n const remove = [];\n for (const toast of this._toasts) {\n if (Date.now() <= toast[1].duration) keep.push(toast);\n else remove.push(toast);\n }\n // collapse toasts that will be removed\n const collapseTasks = [];\n for (const [id] of remove) {\n const el = this.renderRoot.querySelector(`#${id}`);\n collapseTasks.push(el.collapse());\n }\n // once all toasts that should be removed have been collapsed, remove them from the map\n Promise.all(collapseTasks).then(() => {\n if (keep.length !== this._toasts.size) this._toasts = new Map(keep);\n });\n }, 500);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n if (this._interval) clearTimeout(this._interval);\n }\n\n static init() {\n let el = document.querySelector('w-toast-container');\n if (!el) {\n el = document.createElement('w-toast-container');\n document.body.appendChild(el);\n }\n return el;\n }\n\n /** @internal */\n get _toastsArray() {\n return Array.from(this._toasts).map(([, toast]) => toast);\n }\n\n /**\n *\n * @param {String|Number} id\n * @returns {ToastOptions}\n */\n get(id) {\n if (!id) {\n throw new Error('undefined \"id\" given when attempting to retrieve toast');\n }\n if (typeof id !== 'string' && !Number.isInteger(id)) throw new Error('\"id\" must be number or string when attempting to retrieve toast');\n return this._toasts.get(id);\n }\n\n /**\n *\n * @param {Object} toast\n * @returns {WarpToastContainer}\n */\n set(toast) {\n if (!toast.id) throw new Error('invalid or undefined \"id\" on toast object');\n const result = this._toasts.set(toast.id, {\n ...toast,\n duration: Date.now() + (toast.duration || 5000),\n });\n this._toasts = new Map(Array.from(this._toasts));\n return result;\n }\n\n /**\n *\n * @param {String|Number} id\n * @returns {ToastOptions | false}\n */\n async del(id) {\n if (!id) {\n throw new Error('undefined \"id\" given when attempting to retrieve toast');\n }\n if (typeof id !== 'string' && !Number.isInteger(id)) throw new Error('\"id\" must be number or string when attempting to retrieve toast');\n const el = this.renderRoot.querySelector(`#${id}`);\n if (!this._toasts.has(id)) return false;\n await el.collapse();\n const result = this._toasts.delete(id);\n this._toasts = new Map(Array.from(this._toasts));\n return result;\n }\n\n render() {\n return html`\n <aside class=\"${ccToastContainer.wrapper}\">\n <div class=\"${ccToastContainer.base}\" id=\"w-toast-container-list\">\n ${repeat(\n this._toastsArray,\n (toast) => toast.id,\n (toast) =>\n html` <w-toast\n class=\"${ccToastContainer.content}\"\n id=\"${toast.id}\"\n type=\"${toast.type}\"\n text=\"${toast.text}\"\n ?canclose=${toast.canclose}\n @close=${() => this.del(toast.id)}>\n </w-toast>`,\n )}\n </div>\n </aside>\n `;\n }\n}\n\nif (!customElements.get('w-toast-container')) {\n customElements.define('w-toast-container', WarpToastContainer);\n}\n", "import { css, html } from 'lit';\n\nimport { classNames } from '@chbphone55/classnames';\nimport { i18n } from '@lingui/core';\nimport { toast as ccToast } from '@warp-ds/css/component-classes';\nimport WarpElement from '@warp-ds/elements-core';\nimport { expand, collapse } from 'element-collapse';\nimport { when } from 'lit/directives/when.js';\nimport '@warp-ds/icons/elements/warning-16';\nimport '@warp-ds/icons/elements/error-16';\nimport '@warp-ds/icons/elements/success-16';\nimport '@warp-ds/icons/elements/close-16';\n\nimport { activateI18n } from '../i18n';\n\nimport { messages as daMessages } from './locales/da/messages.mjs';\nimport { messages as enMessages } from './locales/en/messages.mjs';\nimport { messages as fiMessages } from './locales/fi/messages.mjs';\nimport { messages as nbMessages } from './locales/nb/messages.mjs';\nimport { messages as svMessages } from './locales/sv/messages.mjs';\n\nconst toastType = {\n success: 'success',\n error: 'error',\n warning: 'warning',\n};\n\n/**\n * You should probably not include this component in HTML markup.\n *\n * As long as the element definition is imported in your application you can use the toast JS API to create toasts.\n *\n * ```js\n * import from '@warp-ds/elements/components/toast';\n * import { toast, removeToast, updateToast } from '@warp-ds/elements/toast';\n * ```\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-toast--docs)\n *\n * @internal\n */\nexport class WarpToast extends WarpElement {\n static styles = [\n WarpElement.styles,\n css`\n :host {\n display: block;\n }\n `,\n ];\n\n static properties = {\n id: { type: String, attribute: true, reflect: true },\n type: { type: String, attribute: true, reflect: true },\n text: { type: String, attribute: true, reflect: true },\n canclose: { type: Boolean, attribute: true, reflect: true },\n };\n\n constructor() {\n super();\n activateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n this.id = Date.now().toString(36) + Math.random().toString(36).slice(2, 5);\n this.type = 'success';\n this.text = '';\n this.canclose = false;\n }\n\n connectedCallback() {\n super.connectedCallback();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n }\n\n updated() {\n if (!this._expanded && this._wrapper) expand(this._wrapper, () => (this._expanded = true));\n }\n\n get #primaryClasses() {\n return classNames([\n ccToast.base,\n this.type === toastType.success && ccToast.positive,\n this.type === toastType.warning && ccToast.warning,\n this.type === toastType.error && ccToast.negative,\n ]);\n }\n\n get #iconClasses() {\n return classNames([\n ccToast.iconBase,\n this.type === toastType.success && ccToast.iconPositive,\n this.type === toastType.warning && ccToast.iconWarning,\n this.type === toastType.error && ccToast.iconNegative,\n ]);\n }\n\n /** @internal */\n get _wrapper() {\n return this.renderRoot?.querySelector(`section`) ?? null;\n }\n\n /** @internal */\n get _warning() {\n return this.type === toastType.warning;\n }\n\n /** @internal */\n get _error() {\n return this.type === toastType.error;\n }\n\n /** @internal */\n get _role() {\n return this._error || this._warning ? 'alert' : 'status';\n }\n\n /** @internal */\n get _typeLabel() {\n if (this._warning) {\n return i18n._({\n id: 'toast.aria.warning',\n message: 'Warning',\n comment: 'Default screenreader message for warning in toast component',\n });\n }\n if (this._error) {\n return i18n._({\n id: 'toast.aria.error',\n message: 'Error',\n comment: 'Default screenreader message for error in toast component',\n });\n } else {\n return i18n._({\n id: 'toast.aria.successful',\n message: 'Successful',\n comment: 'Default screenreader message for successful in toast component',\n });\n }\n }\n\n /** @internal */\n get _iconMarkup() {\n if (this._warning) return html`<w-icon-warning-16></w-icon-warning-16>`;\n if (this._error) return html`<w-icon-error-16></w-icon-error-16>`;\n else return html`<w-icon-success-16></w-icon-success-16>`;\n }\n\n async collapse() {\n return new Promise((resolve) => {\n if (this._expanded && this._wrapper) collapse(this._wrapper, resolve);\n else resolve();\n });\n }\n\n close() {\n const event = new CustomEvent('close', {\n detail: { id: this.id },\n bubbles: true,\n composed: true,\n });\n this.updateComplete.then(() => this.dispatchEvent(event));\n }\n\n render() {\n if (!this.text) return html``;\n return html` <section class=\"${ccToast.wrapper}\" aria-label=\"${this._typeLabel}\">\n <div class=\"${this.#primaryClasses}\">\n <div class=\"${this.#iconClasses}\">${this._iconMarkup}</div>\n <div role=\"${this._role}\" class=\"${ccToast.content}\">\n <p>${this.text}</p>\n </div>\n ${when(\n this.canclose === true,\n () => html`\n <button class=\"${ccToast.close}\" @click=\"${this.close}\">\n <w-icon-close-16></w-icon-close-16>\n </button>\n `,\n )}\n </div>\n </section>`;\n }\n}\n\nif (!customElements.get('w-toast')) {\n customElements.define('w-toast', WarpToast);\n}\n", "const windowExists = (typeof window !== 'undefined')\n\nlet prefersMotion = true\n\nif (windowExists) {\n const query = window.matchMedia('(prefers-reduced-motion: reduce)')\n const callback = ({ matches }) => prefersMotion = !matches\n // older browsers don't support the new API, and the old API is deprecated\n if (query.addEventListener) query.addEventListener('change', callback)\n callback(query)\n}\n\nconst removeTransition = el => {\n el.style.transition = null\n el.style.backfaceVisibility = null\n el.style.overflow = null\n}\n\nconst addTransition = (el) => {\n // we set timing to something insanely short\n // when reducing motion so the after-* hooks still fire\n const timing = prefersMotion ? 'var(--f-expansion-duration, 0.3s)' : '0.01s'\n el.style.transition = `height ${timing}`\n el.style.backfaceVisibility = 'hidden'\n el.style.overflow = 'hidden'\n}\n\nconst getAfterExpandCallback = (el, done) => () => {\n el.style.height = 'auto'\n el.style.overflow = null\n if (done) done()\n}\n\nconst getAfterCollapseCallback = (done) => () => {\n if (done) done()\n}\n\n/**\n * Transitions an element from 0 to a detected height\n * Will return a Promise when no 'done' callback is provided\n * @type {(el: HTMLElement, done?: function) => void | Promise<void>}\n */\nexport const expand = (el, done) => {\n const returnPromise = (() => {\n if (!done) return new Promise(r => { done = r })\n })()\n const afterExpandCallback = getAfterExpandCallback(el, done)\n removeTransition(el)\n el.style.height = 'auto'\n let dest = el.scrollHeight\n windowExists && requestAnimationFrame(() => {\n el.addEventListener('transitionend', afterExpandCallback, { once: true })\n el.style.height = '0px'\n el.style.transitionTimingFunction = 'ease-out'\n addTransition(el)\n requestAnimationFrame(() => el.style.height = dest + 'px')\n })\n if (returnPromise) return returnPromise\n}\n\n/**\n * Transitions an element from a detected height to 0\n * Will return a Promise when no 'done' callback is provided\n * @type {(el: HTMLElement, done?: function) => void | Promise<void>}\n */\nexport const collapse = (el, done) => {\n const returnPromise = (() => {\n if (!done) return new Promise(r => { done = r })\n })()\n const afterCollapseCallback = getAfterCollapseCallback(done)\n removeTransition(el)\n let original = el.scrollHeight\n windowExists && requestAnimationFrame(() => {\n el.addEventListener('transitionend', afterCollapseCallback, { once: true })\n el.style.height = original + 'px'\n el.style.transitionTimingFunction = 'ease-in'\n addTransition(el)\n requestAnimationFrame(() => el.style.height = '0px')\n })\n if (returnPromise) return returnPromise\n}\n", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"toast.aria.error\\\":[\\\"Fejl\\\"],\\\"toast.aria.successful\\\":[\\\"Fuldf\u00F8rt\\\"],\\\"toast.aria.warning\\\":[\\\"Advarsel\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"toast.aria.error\\\":[\\\"Error\\\"],\\\"toast.aria.successful\\\":[\\\"Successful\\\"],\\\"toast.aria.warning\\\":[\\\"Warning\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"toast.aria.error\\\":[\\\"Virhe\\\"],\\\"toast.aria.successful\\\":[\\\"Onnistui\\\"],\\\"toast.aria.warning\\\":[\\\"Varoitus\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"toast.aria.error\\\":[\\\"Feil\\\"],\\\"toast.aria.successful\\\":[\\\"Vellykket\\\"],\\\"toast.aria.warning\\\":[\\\"Advarsel\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"toast.aria.error\\\":[\\\"Fel\\\"],\\\"toast.aria.successful\\\":[\\\"Genomf\u00F6rt\\\"],\\\"toast.aria.warning\\\":[\\\"Varning\\\"]}\");", "import { css, html } from 'lit';\n\nimport WarpElement from '@warp-ds/elements-core';\nimport { collapse, expand } from 'element-collapse';\nimport { ifDefined } from 'lit/directives/if-defined.js';\n\nclass ExpandTransition extends WarpElement {\n static properties = {\n show: {\n type: Boolean,\n reflect: true,\n },\n _removeElement: { type: Boolean, state: true },\n };\n\n constructor() {\n super();\n\n this.show = false;\n this._mounted = false;\n this._removeElement = false;\n }\n\n willUpdate() {\n // Initialise state property with public property value\n if (!this._mounted) {\n this._removeElement = !this.show;\n }\n\n if (this.show && this._removeElement) {\n this._removeElement = false;\n }\n }\n\n updated() {\n if (!this._wrapper) return;\n\n if (!this._mounted) {\n this._mounted = true;\n return;\n }\n\n // If show is set to `true` by user, animate only after component is mount\n if (this.show) {\n expand(this._wrapper);\n }\n\n if (!this.show && !this._removeElement) {\n collapse(this._wrapper, () => (this._removeElement = true));\n }\n }\n\n get _wrapper() {\n return this ?? null;\n }\n\n static styles = [\n WarpElement.styles,\n css`\n :host {\n display: block;\n }\n `,\n ];\n\n render() {\n return html`<div aria-hidden=${ifDefined(!this.show ? 'true' : undefined)}>${this._removeElement ? html`` : html`<slot></slot>`}</div>`;\n }\n}\n\nif (!customElements.get('w-expand-transition')) {\n customElements.define('w-expand-transition', ExpandTransition);\n}\n\nexport { ExpandTransition };\n", "import { html } from 'lit';\n\nimport WarpElement from '@warp-ds/elements-core';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js';\n\nclass UnstyledHeading extends WarpElement {\n static properties = {\n level: { type: Number },\n };\n\n static styles = [WarpElement.styles];\n\n get _markup() {\n return `<h${this.level}\n style=\"margin: 0; font-weight: unset; font-size: unset; line-height: unset;\"\n >\n <slot></slot>\n </h${this.level}>\n`;\n }\n\n render() {\n return !this.level ? html`<slot></slot>` : unsafeHTML(this._markup);\n }\n}\n\nif (!customElements.get('w-unstyled-heading')) {\n customElements.define('w-unstyled-heading', UnstyledHeading);\n}\n\nexport { UnstyledHeading };\n"],
|
|
5
|
-
"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AAMC,GAAN,cAA8BC,EAAY,CAOxC,IAAI,SAAU,CACZ,MAAO,KAAK,KAAK,KAAK;AAAA;AAAA;AAAA;AAAA,OAInB,KAAK,KAAK;AAAA,CAEf,CAEA,QAAS,CACP,OAAQ,KAAK,MAA8BC,GAAW,KAAK,OAAO,EAA7CC,iBACvB,CACF,EAlBEC,EADIJ,GACG,aAAa,CAClB,MAAO,CAAE,KAAM,MAAO,CACxB,GAEAI,EALIJ,GAKG,SAAS,CAACC,GAAY,MAAM,GAgBhC,eAAe,IAAI,oBAAoB,GAC1C,eAAe,OAAO,qBAAsBD,EAAe",
|
|
6
|
-
"names": ["require_errors", "__commonJSMin", "exports", "ErrorType", "require_dist", "__commonJSMin", "exports", "errors_1", "parseHexToInt", "hex", "validateAndParseHex", "errorName", "enforcedLength", "parsedHex", "parseHexadecimalCode", "code", "parsedCode", "parseUnicodeCode", "surrogateCode", "parsedSurrogateCode", "isCurlyBraced", "text", "parseUnicodeCodePointCode", "codePoint", "withoutBraces", "err", "parseOctalCode", "error", "singleCharacterEscapes", "parseSingleCharacterCode", "escapeMatch", "unraw", "raw", "allowOctals", "_", "backslash", "unicodeWithSurrogate", "surrogate", "unicode", "octal", "singleCharacter", "html", "LitElement", "r", "n", "t", "property", "ifDefined", "css", "reset", "components", "css", "styles", "LitElement", "unsafeStatic", "html", "import_unraw", "isString", "s", "isFunction", "f", "cache", "defaultLocale", "normalizeLocales", "locales", "date", "value", "format", "_locales", "o", "getMemoized", "cacheKey", "time", "number", "plural", "ordinal", "offset", "rules", "_a", "_b", "plurals", "getKey", "construct", "key", "formatter", "type", "options", "localeKey", "UNICODE_REGEX", "OCTOTHORPE_PH", "getDefaultFormats", "locale", "passedLocales", "formats", "locales", "style", "format", "replaceOctothorpe", "value", "message", "numberFormat", "valueStr", "number", "cases", "offset", "plural", "selectFormatter", "date", "time", "rules", "_a", "interpolate", "translation", "values", "formatters", "formatMessage", "tokens", "token", "isString", "name", "type", "interpolatedFormat", "key", "value2", "formatter", "result", "__defProp$1", "__defNormalProp$1", "obj", "__publicField$1", "EventEmitter", "event", "listener", "maybeListeners", "index", "args", "__defProp", "__defNormalProp", "__publicField", "I18n", "params", "defaultLocale", "localeData", "maybeLocaleData", "compiler", "localeOrAllData", "messages", "maybeMessages", "localeOrMessages", "messages2", "id", "options", "messageForId", "messageMissing", "missing", "isFunction", "setupI18n", "i18n", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconSearch16", "LitElement", "title", "html", "unsafeStatic", "LitElement", "unsafeStatic", "html", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconClose16", "LitElement", "title", "html", "unsafeStatic", "prefixSuffixWrapper", "ccSuffix", "ccPrefix", "WarpAffix", "LitElement", "r", "html", "ifDefined", "reset", "styles", "__decorateClass", "property", "css", "html", "LitElement", "property", "LitElement", "unsafeStatic", "html", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconInfo16", "LitElement", "title", "html", "unsafeStatic", "LitElement", "unsafeStatic", "html", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconWarning16", "LitElement", "title", "html", "unsafeStatic", "LitElement", "unsafeStatic", "html", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconError16", "LitElement", "title", "html", "unsafeStatic", "LitElement", "unsafeStatic", "html", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconSuccess16", "LitElement", "title", "html", "unsafeStatic", "css", "styles", "ccAlert", "alertVariants", "WarpAlert", "LitElement", "r", "activeIconClassNames", "html", "reset", "styles", "css", "__decorateClass", "property", "css", "html", "nothing", "sides", "min", "max", "round", "createCoords", "v", "oppositeSideMap", "oppositeAlignmentMap", "clamp", "start", "value", "end", "max", "min", "evaluate", "param", "getSide", "placement", "getAlignment", "getOppositeAxis", "axis", "getAxisLength", "yAxisSides", "getSideAxis", "getAlignmentAxis", "getAlignmentSides", "rects", "rtl", "alignment", "alignmentAxis", "length", "mainAlignmentSide", "getOppositePlacement", "getExpandedPlacements", "oppositePlacement", "getOppositeAlignmentPlacement", "lrPlacement", "rlPlacement", "tbPlacement", "btPlacement", "getSideList", "side", "isStart", "getOppositeAxisPlacements", "flipAlignment", "direction", "list", "expandPaddingObject", "padding", "getPaddingObject", "rectToClientRect", "rect", "x", "y", "width", "height", "computeCoordsFromPlacement", "_ref", "placement", "rtl", "reference", "floating", "sideAxis", "getSideAxis", "alignmentAxis", "getAlignmentAxis", "alignLength", "getAxisLength", "side", "getSide", "isVertical", "commonX", "commonY", "commonAlign", "coords", "getAlignment", "computePosition", "config", "strategy", "middleware", "platform", "validMiddleware", "rects", "x", "y", "statefulPlacement", "middlewareData", "resetCount", "i", "name", "fn", "nextX", "nextY", "data", "reset", "detectOverflow", "state", "options", "_await$platform$isEle", "elements", "boundary", "rootBoundary", "elementContext", "altBoundary", "padding", "evaluate", "paddingObject", "getPaddingObject", "element", "clippingClientRect", "rectToClientRect", "rect", "offsetParent", "offsetScale", "elementClientRect", "arrow", "axis", "length", "arrowDimensions", "isYAxis", "minProp", "maxProp", "clientProp", "endDiff", "startDiff", "arrowOffsetParent", "clientSize", "centerToReference", "largestPossiblePadding", "minPadding", "min", "maxPadding", "min$1", "max", "center", "offset", "clamp", "shouldAddOffset", "alignmentOffset", "flip", "options", "state", "_middlewareData$arrow", "_middlewareData$flip", "placement", "middlewareData", "rects", "initialPlacement", "platform", "elements", "checkMainAxis", "checkCrossAxis", "specifiedFallbackPlacements", "fallbackStrategy", "fallbackAxisSideDirection", "flipAlignment", "detectOverflowOptions", "evaluate", "side", "getSide", "initialSideAxis", "getSideAxis", "isBasePlacement", "rtl", "fallbackPlacements", "getOppositePlacement", "getExpandedPlacements", "hasFallbackAxisSideDirection", "getOppositeAxisPlacements", "placements", "overflow", "detectOverflow", "overflows", "overflowsData", "sides", "getAlignmentSides", "_middlewareData$flip2", "_overflowsData$filter", "nextIndex", "nextPlacement", "d", "resetPlacement", "a", "b", "_overflowsData$filter2", "currentSideAxis", "acc", "getSideOffsets", "rect", "isAnySideFullyClipped", "hide", "strategy", "offsets", "originSides", "convertValueToCoords", "state", "options", "placement", "platform", "elements", "rtl", "side", "getSide", "alignment", "getAlignment", "isVertical", "getSideAxis", "mainAxisMulti", "crossAxisMulti", "rawValue", "evaluate", "mainAxis", "crossAxis", "alignmentAxis", "offset", "_middlewareData$offse", "_middlewareData$arrow", "x", "y", "middlewareData", "diffCoords", "shift", "checkMainAxis", "checkCrossAxis", "limiter", "_ref", "detectOverflowOptions", "coords", "overflow", "detectOverflow", "getOppositeAxis", "mainAxisCoord", "crossAxisCoord", "minSide", "maxSide", "min", "max", "clamp", "limitedCoords", "size", "options", "state", "_state$middlewareData", "_state$middlewareData2", "placement", "rects", "platform", "elements", "apply", "detectOverflowOptions", "evaluate", "overflow", "detectOverflow", "side", "getSide", "alignment", "getAlignment", "isYAxis", "getSideAxis", "width", "height", "heightSide", "widthSide", "maximumClippingHeight", "maximumClippingWidth", "overflowAvailableHeight", "min", "overflowAvailableWidth", "noShift", "availableHeight", "availableWidth", "xMin", "max", "xMax", "yMin", "yMax", "nextDimensions", "hasWindow", "getNodeName", "node", "isNode", "getWindow", "_node$ownerDocument", "getDocumentElement", "_ref", "value", "isElement", "isHTMLElement", "isShadowRoot", "invalidOverflowDisplayValues", "isOverflowElement", "element", "overflow", "overflowX", "overflowY", "display", "getComputedStyle", "tableElements", "isTableElement", "topLayerSelectors", "isTopLayer", "selector", "_e", "transformProperties", "willChangeValues", "containValues", "isContainingBlock", "elementOrCss", "webkit", "isWebKit", "css", "getContainingBlock", "currentNode", "getParentNode", "isLastTraversableNode", "lastTraversableNodeNames", "getNodeScroll", "result", "getNearestOverflowAncestor", "parentNode", "getOverflowAncestors", "list", "traverseIframes", "_node$ownerDocument2", "scrollableAncestor", "isBody", "win", "frameElement", "getFrameElement", "getCssDimensions", "element", "css", "getComputedStyle", "width", "height", "hasOffset", "isHTMLElement", "offsetWidth", "offsetHeight", "shouldFallback", "round", "unwrapElement", "isElement", "getScale", "domElement", "createCoords", "rect", "$", "x", "y", "noOffsets", "getVisualOffsets", "win", "getWindow", "isWebKit", "shouldAddVisualOffsets", "isFixed", "floatingOffsetParent", "getBoundingClientRect", "includeScale", "isFixedStrategy", "offsetParent", "clientRect", "scale", "visualOffsets", "offsetWin", "currentWin", "currentIFrame", "getFrameElement", "iframeScale", "iframeRect", "left", "top", "rectToClientRect", "getWindowScrollBarX", "leftScroll", "getNodeScroll", "getDocumentElement", "getHTMLOffset", "documentElement", "scroll", "ignoreScrollbarX", "htmlRect", "convertOffsetParentRelativeRectToViewportRelativeRect", "_ref", "elements", "strategy", "topLayer", "isTopLayer", "offsets", "isOffsetParentAnElement", "getNodeName", "isOverflowElement", "offsetRect", "htmlOffset", "getClientRects", "getDocumentRect", "html", "body", "max", "getViewportRect", "visualViewport", "visualViewportBased", "getInnerBoundingClientRect", "getClientRectFromClippingAncestor", "clippingAncestor", "hasFixedPositionAncestor", "stopNode", "parentNode", "getParentNode", "isLastTraversableNode", "getClippingElementAncestors", "cache", "cachedResult", "result", "getOverflowAncestors", "el", "currentContainingBlockComputedStyle", "elementIsFixed", "currentNode", "computedStyle", "currentNodeIsContaining", "isContainingBlock", "ancestor", "getClippingRect", "boundary", "rootBoundary", "clippingAncestors", "firstClippingAncestor", "clippingRect", "accRect", "min", "getDimensions", "getRectRelativeToOffsetParent", "isStaticPositioned", "getTrueOffsetParent", "polyfill", "rawOffsetParent", "getOffsetParent", "svgOffsetParent", "isTableElement", "getContainingBlock", "getElementRects", "data", "getOffsetParentFn", "getDimensionsFn", "floatingDimensions", "isRTL", "platform", "offset", "shift", "flip", "size", "hide", "arrow", "computePosition", "reference", "floating", "options", "cache", "mergedOptions", "platform", "platformWithCache", "TOP_START", "TOP", "TOP_END", "RIGHT_START", "RIGHT", "RIGHT_END", "BOTTOM_START", "BOTTOM", "BOTTOM_END", "LEFT_START", "LEFT", "LEFT_END", "directions", "opposites", "rotation", "arrowDirectionClassname", "dir", "direction", "d", "side", "staticSide", "arrowDirection", "arrowRotation", "applyArrowStyles", "arrowEl", "ELEMENT_PADDING", "ARROW_OFFSET", "useRecompute", "state", "_a", "_b", "_c", "targetEl", "attentionEl", "computePosition", "offset", "flip", "shift", "arrow", "hide", "size", "x", "y", "middlewareData", "placement", "referenceHidden", "arrowX", "arrowY", "isRtl", "arrowPlacement", "top", "right", "bottom", "left", "value", "toaster", "toast", "buttonDefaultStyling", "buttonColors", "buttonTypes", "buttonSizes", "buttonTextSizes", "buttonVariants", "button", "modal", "buttonTextSizes", "buttonTypes", "buttonColors", "prefixSuffixWrapper", "suffix", "prefix", "toggle", "deadToggle", "attention", "buttonTextSizes", "buttonTypes", "buttonColors", "WarpElement", "ifDefined", "supportedLocales", "defaultLocale", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "e", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "messages", "i18n", "classMap", "camelCaseToKebabCase", "str", "kebabCaseAttributes", "constructor", "name", "options", "customOptions", "generateRandomId", "messages", "messages", "messages", "messages", "messages", "WarpAttention", "kebabCaseAttributes", "WarpElement", "activateI18n", "messages", "opposites", "fallbackPlacement", "directions", "useRecompute", "state", "v", "r", "attention", "arrowDirectionClassname", "html", "variantProps", "activeVariant", "b", "_a", "targetSlot", "messageSlot", "i18n", "attentionMessageId", "generateRandomId", "event", "ifDefined", "nothing", "__publicField", "css", "html", "LitElement", "property", "css", "styles", "WarpBadge", "LitElement", "r", "html", "reset", "styles", "__decorateClass", "property", "html", "LitElement", "nothing", "property", "css", "styles", "WarpBox", "LitElement", "r", "_a", "nothing", "html", "reset", "styles", "__decorateClass", "property", "html", "LitElement", "interleave", "array", "separator", "el", "property", "messages", "messages", "messages", "messages", "messages", "css", "styles", "ccBreadcrumbs", "separator", "html", "WarpBreadcrumbs", "LitElement", "activateI18n", "messages", "i18n", "styledChildren", "child", "index", "isLastEl", "interleave", "reset", "styles", "__decorateClass", "property", "html", "LitElement", "FormControlMixin", "SuperClass", "FormControl", "args", "_FormControl_focused", "_FormControl_forceError", "_FormControl_touched", "_FormControl_abortController", "_FormControl_previousAbortController", "_FormControl_awaitingValidationTarget", "_FormControl_value", "_FormControl_onFocus", "__classPrivateFieldSet", "__classPrivateFieldGet", "_FormControl_instances", "_FormControl_shouldShowError", "_FormControl_onBlur", "_FormControl_runValidators", "showError", "_FormControl_onInvalid", "_a", "_FormControl_validationCompleteResolver", "_FormControl_isValidationPending", "_FormControl_validationComplete", "_b", "_c", "validatorAttributes", "validator", "observedAttributes", "attribute", "name", "oldValue", "newValue", "validators", "value", "valueToUpdate", "resolve", "rootNode", "selector", "proto", "validity", "asyncValidators", "hasAsyncValidators", "abortController", "validationMessage", "hasChange", "key", "isValid", "isValidatorValid", "_FormControl_getValidatorMessageForValue", "_FormControl_setValidityWithOptionalTarget", "message", "WarpElement", "property", "messages", "messages", "messages", "messages", "messages", "css", "styles", "variants", "buttonDefaultStyling", "buttonColors", "buttonTypes", "buttonSizes", "buttonTextSizes", "buttonVariants", "ccButton", "WarpButton", "FormControlMixin", "LitElement", "activateI18n", "messages", "i18n", "changedProperties", "r", "html", "WarpElement", "reset", "styles", "__decorateClass", "property", "html", "css", "LitElement", "property", "ifDefined", "messages", "messages", "messages", "messages", "messages", "css", "styles", "ccCard", "keys", "WarpCard", "LitElement", "activateI18n", "messages", "i18n", "r", "renderButton", "html", "renderSpan", "e", "ifDefined", "reset", "styles", "css", "__decorateClass", "property", "css", "html", "LitElement", "property", "classMap", "WarpDeadToggle", "LitElement", "classes", "classMap", "html", "reset", "css", "__decorateClass", "property", "css", "html", "LitElement", "property", "ifDefined", "LitElement", "unsafeStatic", "html", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconChevronDown16", "LitElement", "title", "html", "unsafeStatic", "LitElement", "unsafeStatic", "html", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconChevronUp16", "LitElement", "title", "html", "unsafeStatic", "css", "styles", "ccBox", "ccExpandable", "_WarpExpandable_instances", "wrapperClasses_get", "buttonClasses_get", "chevronClasses_get", "chevronIcon_get", "contentClasses_get", "expansionClasses_get", "WarpExpandable", "LitElement", "__privateAdd", "changedProperties", "_a", "hasTitleProp", "hasTitleSlot", "html", "__privateGet", "ifDefined", "r", "upClasses", "downClasses", "reset", "styles", "css", "__decorateClass", "property", "html", "css", "LitElement", "CanCloseMixin", "superClass", "ProvidesCanCloseToSlotsMixin", "evt", "children", "child", "e", "ModalFooter", "CanCloseMixin", "ProvidesCanCloseToSlotsMixin", "LitElement", "html", "reset", "css", "css", "html", "LitElement", "nothing", "computeDeltas", "first", "last", "moveKeyframes", "dx", "dy", "animationDefaults", "reduceMotion", "windowExists", "query", "callback", "matches", "Move", "el", "animation", "keyframes", "respectReduceMotion", "__publicField", "moveKeyframes", "cb", "v", "computeDeltas", "animationDefaults", "reduceMotion", "property", "query", "state", "LitElement", "unsafeStatic", "html", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconArrowLeft16", "LitElement", "title", "html", "unsafeStatic", "messages", "messages", "messages", "messages", "messages", "ModalHeader", "CanCloseMixin", "LitElement", "activateI18n", "messages", "html", "changedProperties", "Move", "i18n", "nothing", "slotEvent", "topContent", "reset", "css", "__decorateClass", "property", "state", "query", "css", "html", "LitElement", "property", "query", "n", "c", "i", "r", "_a", "h", "s", "a", "d", "f", "m", "y", "l", "p", "u", "b", "g", "E", "T", "ModalMain", "ProvidesCanCloseToSlotsMixin", "LitElement", "E", "T", "html", "changedProperties", "verb", "evt", "reset", "css", "__decorateClass", "property", "query", "html", "LitElement", "property", "classMap", "map", "range", "css", "styles", "WarpPageIndicator", "LitElement", "html", "map", "range", "i", "classes", "classMap", "styles", "__decorateClass", "property", "html", "LitElement", "nothing", "property", "LitElement", "unsafeStatic", "html", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconChevronDoubleLeft16", "LitElement", "title", "html", "unsafeStatic", "LitElement", "unsafeStatic", "html", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconChevronLeft16", "LitElement", "title", "html", "unsafeStatic", "LitElement", "unsafeStatic", "html", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconChevronRight16", "LitElement", "title", "html", "unsafeStatic", "messages", "messages", "messages", "messages", "messages", "css", "styles", "iconSuffix", "i18n", "baseItemStyles", "_WarpPagination_instances", "dispatchClickPage_fn", "WarpPagination", "LitElement", "__privateAdd", "activateI18n", "messages", "_", "i", "half", "start", "end", "visiblePages", "html", "__privateMethod", "nothing", "pageNumber", "isCurrentPage", "url", "styles", "ariaLabel", "e", "clickedPage", "reset", "__decorateClass", "property", "html", "LitElement", "property", "messages", "messages", "messages", "messages", "messages", "css", "styles", "pillStyles", "WarpPill", "LitElement", "activateI18n", "messages", "i18n", "r", "html", "reset", "styles", "__decorateClass", "property", "html", "property", "state", "isServer", "property", "LitElement", "unsafeCSS", "property", "host_default", "_hasRecordedInitialProperties", "BaseElement", "LitElement", "__privateAdd", "customState", "active", "_a", "e", "Self", "property", "spec", "styles", "host_default", "style", "unsafeCSS", "name", "oldValue", "newValue", "__privateGet", "obj", "prop", "__privateSet", "changedProperties", "value", "event", "eventOptions", "__decorateClass", "CustomErrorValidator", "element", "validity", "WInvalidEvent", "BaseFormAssociatedElement", "BaseElement", "e", "WInvalidEvent", "event", "_a", "emittedEvents", "isServer", "CustomErrorValidator", "parentAttrs", "validator", "attr", "args", "changedProperties", "value", "formData", "val", "flags", "message", "anchor", "required", "isValid", "hasInteracted", "isDisabled", "state", "reason", "staticValidators", "validators", "formControl", "finalMessage", "invalidKeys", "str", "__decorateClass", "property", "radio_default", "WRadio", "BaseFormAssociatedElement", "changedProperties", "effectivelyDisabled", "html", "radio_default", "__decorateClass", "state", "property", "html", "property", "query", "state", "classMap", "urlAlphabet", "nanoid", "size", "id", "bytes", "urlAlphabet", "uniqueId", "prefix", "nanoid", "radio_group_default", "RequiredValidator", "options", "validationElement", "validationProperty", "obj", "element", "_a", "validity", "HasSlotController", "host", "slotNames", "event", "slot", "node", "el", "name", "slotName", "WRadioGroup", "BaseFormAssociatedElement", "HasSlotController", "e", "clickedRadio", "oldValue", "radios", "radio", "validators", "RequiredValidator", "uniqueId", "_a", "val", "changedProperties", "args", "hasRadioButtons", "index", "enabledRadios", "checkedRadio", "event", "incr", "options", "checked", "firstEnabledRadio", "radioToFocus", "hasLabelSlot", "hasHintSlot", "hasLabel", "hasHint", "html", "classMap", "radio_group_default", "__decorateClass", "state", "query", "property", "WRadio", "WRadioGroup", "html", "property", "query", "classMap", "ifDefined", "live", "watch", "propertyName", "options", "resolvedOptions", "proto", "decoratedFnName", "update", "watchedProperties", "changedProps", "property", "key", "oldValue", "newValue", "LitElement", "unsafeStatic", "html", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconCheck16", "LitElement", "title", "html", "unsafeStatic", "checkbox_default", "_a", "WCheckbox", "BaseFormAssociatedElement", "HasSlotController", "validators", "RequiredValidator", "val", "changedProperties", "options", "hasHintSlot", "hasHint", "isIndeterminate", "html", "ifDefined", "live", "classMap", "checkbox_default", "__decorateClass", "query", "property", "watch", "WCheckbox", "html", "LitElement", "property", "ifDefined", "unsafeHTML", "when", "messages", "messages", "messages", "messages", "messages", "css", "styles", "ccSelect", "ccLabel", "ccHelpText", "_WarpSelect_instances", "classes_get", "helpTextClasses_get", "chevronClasses_get", "id_get", "helpId_get", "WarpSelect", "FormControlMixin", "LitElement", "__privateAdd", "value", "activateI18n", "messages", "child", "event", "target", "html", "when", "__privateGet", "i18n", "ifDefined", "unsafeHTML", "r", "reset", "styles", "__decorateClass", "property", "LitElement", "html", "WarpElement", "property", "ifDefined", "css", "styles", "ccinput", "ccLabel", "ccHelpText", "WarpTextField", "FormControlMixin", "LitElement", "changedProperties", "r", "html", "e", "name", "value", "event", "ifDefined", "WarpElement", "reset", "styles", "__decorateClass", "property", "windowExists", "toast", "message", "options", "windowExists", "data", "removeToast", "id", "updateToast", "css", "html", "WarpElement", "repeat", "WarpToastContainer", "WarpElement", "keep", "remove", "toast", "collapseTasks", "id", "el", "result", "html", "toaster", "repeat", "__publicField", "css", "css", "html", "WarpElement", "windowExists", "prefersMotion", "query", "callback", "matches", "removeTransition", "el", "addTransition", "timing", "getAfterExpandCallback", "done", "getAfterCollapseCallback", "expand", "returnPromise", "r", "afterExpandCallback", "dest", "collapse", "afterCollapseCallback", "original", "when", "messages", "messages", "messages", "messages", "messages", "toastType", "_WarpToast_instances", "primaryClasses_get", "iconClasses_get", "WarpToast", "WarpElement", "__privateAdd", "activateI18n", "messages", "expand", "_a", "_b", "i18n", "html", "resolve", "collapse", "event", "toast", "__privateGet", "when", "r", "__publicField", "css", "css", "html", "WarpElement", "ifDefined", "ExpandTransition", "WarpElement", "expand", "collapse", "html", "ifDefined", "__publicField", "css", "html", "WarpElement", "unsafeHTML", "UnstyledHeading", "WarpElement", "unsafeHTML", "html", "__publicField"]
|
|
3
|
+
"sources": ["../node_modules/.pnpm/unraw@3.0.0/node_modules/unraw/dist/errors.js", "../node_modules/.pnpm/unraw@3.0.0/node_modules/unraw/dist/index.js", "../packages/affix/index.ts", "../node_modules/.pnpm/@chbphone55+classnames@2.0.0/node_modules/@chbphone55/classnames/dist/index.m.js", "../packages/styles.ts", "../packages/affix/styles.ts", "../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/elements/search-16.js", "../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/src/raw/search/locales/nb/messages.mjs", "../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/src/raw/search/locales/en/messages.mjs", "../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/src/raw/search/locales/fi/messages.mjs", "../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/src/raw/search/locales/da/messages.mjs", "../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/src/raw/search/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../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", "../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/elements/close-16.js", "../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/src/raw/close/locales/nb/messages.mjs", "../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/src/raw/close/locales/en/messages.mjs", "../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/src/raw/close/locales/fi/messages.mjs", "../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/src/raw/close/locales/da/messages.mjs", "../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/src/raw/close/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../packages/alert/index.ts", "../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/elements/info-16.js", "../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/src/raw/info/locales/nb/messages.mjs", "../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/src/raw/info/locales/en/messages.mjs", "../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/src/raw/info/locales/fi/messages.mjs", "../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/src/raw/info/locales/da/messages.mjs", "../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/src/raw/info/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../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/elements/warning-16.js", "../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/src/raw/warning/locales/nb/messages.mjs", "../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/src/raw/warning/locales/en/messages.mjs", "../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/src/raw/warning/locales/fi/messages.mjs", "../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/src/raw/warning/locales/da/messages.mjs", "../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/src/raw/warning/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../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/elements/error-16.js", "../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/src/raw/error/locales/nb/messages.mjs", "../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/src/raw/error/locales/en/messages.mjs", "../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/src/raw/error/locales/fi/messages.mjs", "../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/src/raw/error/locales/da/messages.mjs", "../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/src/raw/error/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../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/elements/success-16.js", "../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/src/raw/success/locales/nb/messages.mjs", "../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/src/raw/success/locales/en/messages.mjs", "../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/src/raw/success/locales/fi/messages.mjs", "../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/src/raw/success/locales/da/messages.mjs", "../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/src/raw/success/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../packages/alert/styles.ts", "../packages/attention/index.js", "../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs", "../node_modules/.pnpm/@floating-ui+core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.mjs", "../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs", "../node_modules/.pnpm/@floating-ui+dom@1.6.13/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs", "../node_modules/.pnpm/@warp-ds+core@1.1.8_@floating-ui+dom@1.6.13/node_modules/@warp-ds/core/dist/attention/utils/helpers.js", "../node_modules/.pnpm/@warp-ds+css@2.1.1_@warp-ds+uno@2.1.0_unocss@0.65.4_postcss@8.5.6_rollup@4.50.1_vite@6._ea9b94ce579ca568de99dc2eee005564/node_modules/@warp-ds/css/component-classes/index.js", "../packages/i18n.ts", "../packages/utils/index.js", "../packages/attention/locales/da/messages.mjs", "../packages/attention/locales/en/messages.mjs", "../packages/attention/locales/fi/messages.mjs", "../packages/attention/locales/nb/messages.mjs", "../packages/attention/locales/sv/messages.mjs", "../packages/badge/index.ts", "../packages/badge/styles.ts", "../packages/box/index.ts", "../packages/box/styles.ts", "../packages/breadcrumbs/index.ts", "../node_modules/.pnpm/@warp-ds+core@1.1.8_@floating-ui+dom@1.6.13/node_modules/@warp-ds/core/dist/breadcrumbs/index.js", "../packages/breadcrumbs/locales/da/messages.mjs", "../packages/breadcrumbs/locales/en/messages.mjs", "../packages/breadcrumbs/locales/fi/messages.mjs", "../packages/breadcrumbs/locales/nb/messages.mjs", "../packages/breadcrumbs/locales/sv/messages.mjs", "../packages/breadcrumbs/styles.ts", "../packages/button/index.ts", "../node_modules/.pnpm/@open-wc+form-control@1.0.0/node_modules/@open-wc/form-control/src/FormControlMixin.ts", "../packages/link/index.ts", "../packages/link/styles.ts", "../packages/button/locales/da/messages.mjs", "../packages/button/locales/en/messages.mjs", "../packages/button/locales/fi/messages.mjs", "../packages/button/locales/nb/messages.mjs", "../packages/button/locales/sv/messages.mjs", "../packages/button/styles.ts", "../packages/card/index.ts", "../packages/card/locales/da/messages.mjs", "../packages/card/locales/en/messages.mjs", "../packages/card/locales/fi/messages.mjs", "../packages/card/locales/nb/messages.mjs", "../packages/card/locales/sv/messages.mjs", "../packages/card/styles.ts", "../packages/dead-toggle/index.ts", "../packages/expandable/index.ts", "../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/elements/chevron-down-16.js", "../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/src/raw/chevron-down/locales/nb/messages.mjs", "../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/src/raw/chevron-down/locales/en/messages.mjs", "../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/src/raw/chevron-down/locales/fi/messages.mjs", "../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/src/raw/chevron-down/locales/da/messages.mjs", "../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/src/raw/chevron-down/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../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/elements/chevron-up-16.js", "../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/src/raw/chevron-up/locales/nb/messages.mjs", "../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/src/raw/chevron-up/locales/en/messages.mjs", "../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/src/raw/chevron-up/locales/fi/messages.mjs", "../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/src/raw/chevron-up/locales/da/messages.mjs", "../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/src/raw/chevron-up/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../packages/expandable/styles.ts", "../packages/modal/modal-footer.ts", "../packages/modal/util.ts", "../packages/modal/modal-header.ts", "../node_modules/.pnpm/@itsy+animate@0.0.9/node_modules/@itsy/animate/src/utility.js", "../node_modules/.pnpm/@itsy+animate@0.0.9/node_modules/@itsy/animate/src/reduce-motion.js", "../node_modules/.pnpm/@itsy+animate@0.0.9/node_modules/@itsy/animate/src/move.js", "../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/elements/arrow-left-16.js", "../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/src/raw/arrow-left/locales/nb/messages.mjs", "../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/src/raw/arrow-left/locales/en/messages.mjs", "../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/src/raw/arrow-left/locales/fi/messages.mjs", "../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/src/raw/arrow-left/locales/da/messages.mjs", "../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/src/raw/arrow-left/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../packages/modal/locales/da/messages.mjs", "../packages/modal/locales/en/messages.mjs", "../packages/modal/locales/fi/messages.mjs", "../packages/modal/locales/nb/messages.mjs", "../packages/modal/locales/sv/messages.mjs", "../packages/modal/modal-main.ts", "../node_modules/.pnpm/scroll-doctor@2.0.2/node_modules/scroll-doctor/dist/scroll-doctor.js", "../packages/pageindicator/index.ts", "../packages/pageindicator/style.ts", "../packages/pagination/index.ts", "../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/elements/chevron-double-left-16.js", "../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/src/raw/chevron-double-left/locales/nb/messages.mjs", "../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/src/raw/chevron-double-left/locales/en/messages.mjs", "../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/src/raw/chevron-double-left/locales/fi/messages.mjs", "../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/src/raw/chevron-double-left/locales/da/messages.mjs", "../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/src/raw/chevron-double-left/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../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/elements/chevron-left-16.js", "../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/src/raw/chevron-left/locales/nb/messages.mjs", "../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/src/raw/chevron-left/locales/en/messages.mjs", "../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/src/raw/chevron-left/locales/fi/messages.mjs", "../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/src/raw/chevron-left/locales/da/messages.mjs", "../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/src/raw/chevron-left/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../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/elements/chevron-right-16.js", "../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/src/raw/chevron-right/locales/nb/messages.mjs", "../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/src/raw/chevron-right/locales/en/messages.mjs", "../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/src/raw/chevron-right/locales/fi/messages.mjs", "../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/src/raw/chevron-right/locales/da/messages.mjs", "../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/src/raw/chevron-right/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../packages/pagination/locales/da/messages.mjs", "../packages/pagination/locales/en/messages.mjs", "../packages/pagination/locales/fi/messages.mjs", "../packages/pagination/locales/nb/messages.mjs", "../packages/pagination/locales/sv/messages.mjs", "../packages/pagination/styles.ts", "../packages/pill/index.ts", "../packages/pill/locales/da/messages.mjs", "../packages/pill/locales/en/messages.mjs", "../packages/pill/locales/fi/messages.mjs", "../packages/pill/locales/nb/messages.mjs", "../packages/pill/locales/sv/messages.mjs", "../packages/pill/styles.ts", "../packages/rip-and-tear-radio/radio.ts", "../packages/rip-and-tear-radio/form-associated-element.ts", "../packages/rip-and-tear-radio/base-element.ts", "../packages/rip-and-tear-radio/host.css", "../packages/rip-and-tear-radio/custom-error-validator.ts", "../packages/rip-and-tear-radio/invalid.ts", "../packages/rip-and-tear-radio/radio.css", "../packages/rip-and-tear-radio/radio-group.ts", "../node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/url-alphabet/index.js", "../node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/index.browser.js", "../packages/rip-and-tear-radio/math.ts", "../packages/rip-and-tear-radio/radio-group.css", "../packages/rip-and-tear-radio/required-validator.ts", "../packages/rip-and-tear-radio/slot.ts", "../packages/rip-and-tear-radio/index.ts", "../packages/rip-and-tear-checkbox/checkbox.ts", "../packages/rip-and-tear-radio/watch.ts", "../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/elements/check-16.js", "../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/src/raw/check/locales/nb/messages.mjs", "../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/src/raw/check/locales/en/messages.mjs", "../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/src/raw/check/locales/fi/messages.mjs", "../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/src/raw/check/locales/da/messages.mjs", "../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/src/raw/check/locales/sv/messages.mjs", "../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/src/utils/i18n.ts", "../packages/rip-and-tear-checkbox/checkbox.css", "../packages/rip-and-tear-checkbox/index.ts", "../packages/select/index.ts", "../packages/select/locales/da/messages.mjs", "../packages/select/locales/en/messages.mjs", "../packages/select/locales/fi/messages.mjs", "../packages/select/locales/nb/messages.mjs", "../packages/select/locales/sv/messages.mjs", "../packages/select/styles.ts", "../packages/steps/index.ts", "../packages/steps/locales/da/messages.mjs", "../packages/steps/locales/en/messages.mjs", "../packages/steps/locales/fi/messages.mjs", "../packages/steps/locales/nb/messages.mjs", "../packages/steps/locales/sv/messages.mjs", "../packages/steps/styles.ts", "../packages/switch/index.ts", "../packages/switch/styles.ts", "../packages/textfield/index.ts", "../packages/textfield/styles.ts", "../packages/utils/window-exists.js", "../packages/toast/api.js", "../packages/toast/toast-container.js", "../packages/toast/toast.js", "../node_modules/.pnpm/element-collapse@1.1.0/node_modules/element-collapse/index.js", "../packages/toast/locales/da/messages.mjs", "../packages/toast/locales/en/messages.mjs", "../packages/toast/locales/fi/messages.mjs", "../packages/toast/locales/nb/messages.mjs", "../packages/toast/locales/sv/messages.mjs", "../packages/utils/expand-transition.js", "../packages/utils/unstyled-heading.js"],
|
|
4
|
+
"sourcesContent": ["\"use strict\";\n// NOTE: don't construct errors here or they'll have the wrong stack trace.\n// NOTE: don't make custom error class; the JS engines use `SyntaxError`\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.errorMessages = exports.ErrorType = void 0;\n/**\n * Keys for possible error messages used by `unraw`.\n * Note: These do _not_ map to actual error object types. All errors thrown\n * are `SyntaxError`.\n */\n// Don't use const enum or JS users won't be able to access the enum values\nvar ErrorType;\n(function (ErrorType) {\n /**\n * Thrown when a badly formed Unicode escape sequence is found. Possible\n * reasons include the code being too short (`\"\\u25\"`) or having invalid\n * characters (`\"\\u2$A5\"`).\n */\n ErrorType[\"MalformedUnicode\"] = \"MALFORMED_UNICODE\";\n /**\n * Thrown when a badly formed hexadecimal escape sequence is found. Possible\n * reasons include the code being too short (`\"\\x2\"`) or having invalid\n * characters (`\"\\x2$\"`).\n */\n ErrorType[\"MalformedHexadecimal\"] = \"MALFORMED_HEXADECIMAL\";\n /**\n * Thrown when a Unicode code point escape sequence has too high of a code\n * point. The maximum code point allowed is `\\u{10FFFF}`, so `\\u{110000}` and\n * higher will throw this error.\n */\n ErrorType[\"CodePointLimit\"] = \"CODE_POINT_LIMIT\";\n /**\n * Thrown when an octal escape sequences is encountered and `allowOctals` is\n * `false`. For example, `unraw(\"\\234\", false)`.\n */\n ErrorType[\"OctalDeprecation\"] = \"OCTAL_DEPRECATION\";\n /**\n * Thrown only when a single backslash is found at the end of a string. For\n * example, `\"\\\\\"` or `\"test\\\\x24\\\\\"`.\n */\n ErrorType[\"EndOfString\"] = \"END_OF_STRING\";\n})(ErrorType = exports.ErrorType || (exports.ErrorType = {}));\n/** Map of error message names to the full text of the message. */\nexports.errorMessages = new Map([\n [ErrorType.MalformedUnicode, \"malformed Unicode character escape sequence\"],\n [\n ErrorType.MalformedHexadecimal,\n \"malformed hexadecimal character escape sequence\"\n ],\n [\n ErrorType.CodePointLimit,\n \"Unicode codepoint must not be greater than 0x10FFFF in escape sequence\"\n ],\n [\n ErrorType.OctalDeprecation,\n '\"0\"-prefixed octal literals and octal escape sequences are deprecated; ' +\n 'for octal literals use the \"0o\" prefix instead'\n ],\n [ErrorType.EndOfString, \"malformed escape sequence at end of string\"]\n]);\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.unraw = exports.errorMessages = exports.ErrorType = void 0;\nconst errors_1 = require(\"./errors\");\nObject.defineProperty(exports, \"ErrorType\", { enumerable: true, get: function () { return errors_1.ErrorType; } });\nObject.defineProperty(exports, \"errorMessages\", { enumerable: true, get: function () { return errors_1.errorMessages; } });\n/**\n * Parse a string as a base-16 number. This is more strict than `parseInt` as it\n * will not allow any other characters, including (for example) \"+\", \"-\", and\n * \".\".\n * @param hex A string containing a hexadecimal number.\n * @returns The parsed integer, or `NaN` if the string is not a valid hex\n * number.\n */\nfunction parseHexToInt(hex) {\n const isOnlyHexChars = !hex.match(/[^a-f0-9]/i);\n return isOnlyHexChars ? parseInt(hex, 16) : NaN;\n}\n/**\n * Check the validity and length of a hexadecimal code and optionally enforces\n * a specific number of hex digits.\n * @param hex The string to validate and parse.\n * @param errorName The name of the error message to throw a `SyntaxError` with\n * if `hex` is invalid. This is used to index `errorMessages`.\n * @param enforcedLength If provided, will throw an error if `hex` is not\n * exactly this many characters.\n * @returns The parsed hex number as a normal number.\n * @throws {SyntaxError} If the code is not valid.\n */\nfunction validateAndParseHex(hex, errorName, enforcedLength) {\n const parsedHex = parseHexToInt(hex);\n if (Number.isNaN(parsedHex) ||\n (enforcedLength !== undefined && enforcedLength !== hex.length)) {\n throw new SyntaxError(errors_1.errorMessages.get(errorName));\n }\n return parsedHex;\n}\n/**\n * Parse a two-digit hexadecimal character escape code.\n * @param code The two-digit hexadecimal number that represents the character to\n * output.\n * @returns The single character represented by the code.\n * @throws {SyntaxError} If the code is not valid hex or is not the right\n * length.\n */\nfunction parseHexadecimalCode(code) {\n const parsedCode = validateAndParseHex(code, errors_1.ErrorType.MalformedHexadecimal, 2);\n return String.fromCharCode(parsedCode);\n}\n/**\n * Parse a four-digit Unicode character escape code.\n * @param code The four-digit unicode number that represents the character to\n * output.\n * @param surrogateCode Optional four-digit unicode surrogate that represents\n * the other half of the character to output.\n * @returns The single character represented by the code.\n * @throws {SyntaxError} If the codes are not valid hex or are not the right\n * length.\n */\nfunction parseUnicodeCode(code, surrogateCode) {\n const parsedCode = validateAndParseHex(code, errors_1.ErrorType.MalformedUnicode, 4);\n if (surrogateCode !== undefined) {\n const parsedSurrogateCode = validateAndParseHex(surrogateCode, errors_1.ErrorType.MalformedUnicode, 4);\n return String.fromCharCode(parsedCode, parsedSurrogateCode);\n }\n return String.fromCharCode(parsedCode);\n}\n/**\n * Test if the text is surrounded by curly braces (`{}`).\n * @param text Text to check.\n * @returns `true` if the text is in the form `{*}`.\n */\nfunction isCurlyBraced(text) {\n return text.charAt(0) === \"{\" && text.charAt(text.length - 1) === \"}\";\n}\n/**\n * Parse a Unicode code point character escape code.\n * @param codePoint A unicode escape code point, including the surrounding curly\n * braces.\n * @returns The single character represented by the code.\n * @throws {SyntaxError} If the code is not valid hex or does not have the\n * surrounding curly braces.\n */\nfunction parseUnicodeCodePointCode(codePoint) {\n if (!isCurlyBraced(codePoint)) {\n throw new SyntaxError(errors_1.errorMessages.get(errors_1.ErrorType.MalformedUnicode));\n }\n const withoutBraces = codePoint.slice(1, -1);\n const parsedCode = validateAndParseHex(withoutBraces, errors_1.ErrorType.MalformedUnicode);\n try {\n return String.fromCodePoint(parsedCode);\n }\n catch (err) {\n throw err instanceof RangeError\n ? new SyntaxError(errors_1.errorMessages.get(errors_1.ErrorType.CodePointLimit))\n : err;\n }\n}\n// Have to give overload that takes boolean for when compiler doesn't know if\n// true or false\nfunction parseOctalCode(code, error = false) {\n if (error) {\n throw new SyntaxError(errors_1.errorMessages.get(errors_1.ErrorType.OctalDeprecation));\n }\n // The original regex only allows digits so we don't need to have a strict\n // octal parser like hexToInt. Length is not enforced for octals.\n const parsedCode = parseInt(code, 8);\n return String.fromCharCode(parsedCode);\n}\n/**\n * Map of unescaped letters to their corresponding special JS escape characters.\n * Intentionally does not include characters that map to themselves like \"\\'\".\n */\nconst singleCharacterEscapes = new Map([\n [\"b\", \"\\b\"],\n [\"f\", \"\\f\"],\n [\"n\", \"\\n\"],\n [\"r\", \"\\r\"],\n [\"t\", \"\\t\"],\n [\"v\", \"\\v\"],\n [\"0\", \"\\0\"]\n]);\n/**\n * Parse a single character escape sequence and return the matching character.\n * If none is matched, defaults to `code`.\n * @param code A single character code.\n */\nfunction parseSingleCharacterCode(code) {\n return singleCharacterEscapes.get(code) || code;\n}\n/**\n * Matches every escape sequence possible, including invalid ones.\n *\n * All capture groups (described below) are unique (only one will match), except\n * for 4, which can only potentially match if 3 does.\n *\n * **Capture Groups:**\n * 0. A single backslash\n * 1. Hexadecimal code\n * 2. Unicode code point code with surrounding curly braces\n * 3. Unicode escape code with surrogate\n * 4. Surrogate code\n * 5. Unicode escape code without surrogate\n * 6. Octal code _NOTE: includes \"0\"._\n * 7. A single character (will never be \\, x, u, or 0-3)\n */\nconst 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;\n/**\n * Replace raw escape character strings with their escape characters.\n * @param raw A string where escape characters are represented as raw string\n * values like `\\'` rather than `'`.\n * @param allowOctals If `true`, will process the now-deprecated octal escape\n * sequences (ie, `\\111`).\n * @returns The processed string, with escape characters replaced by their\n * respective actual Unicode characters.\n */\nfunction unraw(raw, allowOctals = false) {\n return raw.replace(escapeMatch, function (_, backslash, hex, codePoint, unicodeWithSurrogate, surrogate, unicode, octal, singleCharacter) {\n // Compare groups to undefined because empty strings mean different errors\n // Otherwise, `\\u` would fail the same as `\\` which is wrong.\n if (backslash !== undefined) {\n return \"\\\\\";\n }\n if (hex !== undefined) {\n return parseHexadecimalCode(hex);\n }\n if (codePoint !== undefined) {\n return parseUnicodeCodePointCode(codePoint);\n }\n if (unicodeWithSurrogate !== undefined) {\n return parseUnicodeCode(unicodeWithSurrogate, surrogate);\n }\n if (unicode !== undefined) {\n return parseUnicodeCode(unicode);\n }\n if (octal === \"0\") {\n return \"\\0\";\n }\n if (octal !== undefined) {\n return parseOctalCode(octal, !allowOctals);\n }\n if (singleCharacter !== undefined) {\n return parseSingleCharacterCode(singleCharacter);\n }\n throw new SyntaxError(errors_1.errorMessages.get(errors_1.ErrorType.EndOfString));\n });\n}\nexports.unraw = unraw;\nexports.default = unraw;\n", "// @warp-css;\n\nimport { html, LitElement } from 'lit';\n\nimport { classNames } from '@chbphone55/classnames';\nimport { property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\n\nimport { reset } from '../styles.js';\n\nimport { styles } from './styles.js';\nimport '@warp-ds/icons/elements/search-16';\nimport '@warp-ds/icons/elements/close-16';\n\nconst prefixSuffixWrapper =\n 'absolute top-0 bottom-0 flex justify-center items-center focusable rounded-4 focus:[--w-outline-offset:-2px] bg-transparent ';\n\nexport const ccSuffix = {\n wrapper: prefixSuffixWrapper + 'right-0',\n wrapperWithLabel: 'w-max pr-12',\n wrapperWithIcon: 'w-40',\n label: 'antialiased block relative cursor-default pb-0 font-bold text-xs s-text',\n};\n\nexport const ccPrefix = {\n wrapper: prefixSuffixWrapper + 'left-0',\n wrapperWithLabel: 'w-max pl-12',\n wrapperWithIcon: 'w-40',\n label: 'antialiased block relative cursor-default pb-0 font-bold text-xs s-text',\n};\n\n/**\n * This component is usually used in other components like form elements to show a prefix or suffix. See for example `w-textfield`.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-affix--docs)\n */\nclass WarpAffix extends LitElement {\n @property({ attribute: 'aria-label' }) ariaLabel: string;\n\n /**\n * Add this property to render a clickable Warp close icon.\n *\n * Set an `aria-label` that explains the action when using this.\n */\n @property({ type: Boolean }) clear = false;\n\n /**\n * Add this property to render a clickable Warp search icon.\n *\n * Set an `aria-label` that explains the action when using this.\n */\n @property({ type: Boolean }) search = false;\n\n @property() label: string;\n\n static styles = [reset, styles];\n\n /** @internal */\n get _classBase() {\n return this.slot === 'suffix' ? ccSuffix : ccPrefix;\n }\n\n /** @internal */\n get _classes() {\n return classNames([this._classBase.wrapper, this.label ? this._classBase.wrapperWithLabel : this._classBase.wrapperWithIcon]);\n }\n\n /** @internal */\n get _searchButton() {\n return html`\n <button aria-label=\"${ifDefined(this.ariaLabel)}\" class=\"${this._classes}\" type=\"submit\">\n <w-icon-search-16></w-icon-search-16>\n </button>\n `;\n }\n\n /** @internal */\n get _clearButton() {\n return html`\n <button aria-label=\"${ifDefined(this.ariaLabel)}\" class=\"${this._classes}\" type=\"reset\">\n <w-icon-close-16></w-icon-close-16>\n </button>\n `;\n }\n\n /** @internal */\n get _text() {\n return html`\n <div class=\"${this._classes}\">\n <span class=\"${this._classBase.label}\">${this.label}</span>\n </div>\n `;\n }\n\n /** @internal */\n get _markup() {\n if (this.label) {\n return this._text;\n } else if (this.search) {\n return this._searchButton;\n } else if (this.clear) {\n return this._clearButton;\n }\n return undefined;\n }\n\n render() {\n return html`${this._markup}`;\n }\n}\n\nif (!customElements.get('w-affix')) {\n customElements.define('w-affix', WarpAffix);\n}\n\nexport { WarpAffix };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-affix': WarpAffix;\n }\n}\n", "var r=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return t.reduce(function(t,n){return t.concat(\"string\"==typeof n?n:Array.isArray(n)?r.apply(void 0,n):\"object\"==typeof n&&n?Object.keys(n).map(function(r){return n[r]?r:\"\"}):\"\")},[]).join(\" \")};export{r as classNames};\n", "import { css } from 'lit';\n\nexport const reset = css`\n *,\n :before,\n :after {\n box-sizing: border-box;\n border-style: solid;\n border-width: 0;\n border-color: var(--w-s-color-border);\n }\n html {\n font-size: 62.5%;\n }\n body {\n background-color: var(--w-s-color-background);\n min-height: 100%;\n margin: 0;\n overflow-y: scroll;\n }\n body,\n :host {\n -webkit-text-size-adjust: 100%;\n tab-size: 4;\n -webkit-tap-highlight-color: transparent;\n font-family: var(--w-font-family);\n font-size: var(--w-font-size-m);\n line-height: var(--w-line-height-m);\n color: var(--w-s-color-text);\n }\n hr {\n color: inherit;\n border-top-width: 1px;\n height: 0;\n }\n abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-size: inherit;\n font-weight: 700;\n }\n a {\n cursor: pointer;\n color: var(--w-s-color-text-link);\n text-decoration: none;\n }\n a:hover,\n a:focus,\n a:active {\n text-decoration: underline;\n }\n a:focus-visible {\n outline: 2px solid var(--w-s-color-border-focus);\n outline-offset: 1px;\n }\n b,\n strong {\n font-weight: 700;\n }\n code,\n kbd,\n samp,\n pre {\n font-family:\n ui-monospace,\n SFMono-Regular,\n Menlo,\n Monaco,\n Consolas,\n Liberation Mono,\n Courier New,\n monospace;\n font-size: 1em;\n }\n sub,\n sup {\n vertical-align: baseline;\n font-size: 75%;\n line-height: 0;\n position: relative;\n }\n sub {\n bottom: -0.25em;\n }\n sup {\n top: -0.5em;\n }\n table {\n text-indent: 0;\n border-color: inherit;\n border-collapse: collapse;\n }\n button,\n input,\n optgroup,\n select,\n textarea {\n font-family: inherit;\n font-size: 100%;\n font-weight: inherit;\n line-height: inherit;\n color: inherit;\n margin: 0;\n padding: 0;\n }\n button,\n select {\n text-transform: none;\n }\n button,\n [type='button'],\n [type='reset'],\n [type='submit'] {\n -webkit-appearance: button;\n }\n :-moz-focusring {\n outline: auto;\n }\n :-moz-ui-invalid {\n box-shadow: none;\n }\n progress {\n vertical-align: baseline;\n }\n ::-webkit-inner-spin-button {\n height: auto;\n }\n ::-webkit-outer-spin-button {\n height: auto;\n }\n [type='search'] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n }\n ::-webkit-search-decoration {\n -webkit-appearance: none;\n }\n ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n }\n summary {\n display: list-item;\n }\n blockquote,\n dl,\n dd,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n hr,\n figure,\n p,\n pre {\n margin: 0;\n }\n fieldset {\n margin: 0;\n padding: 0;\n }\n legend {\n padding: 0;\n }\n ol,\n ul,\n menu {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n textarea {\n resize: vertical;\n }\n input::placeholder,\n textarea::placeholder {\n opacity: 1;\n color: var(--w-s-color-text-placeholder);\n }\n button,\n [role='button'] {\n cursor: pointer;\n }\n :disabled {\n cursor: default;\n }\n img,\n svg,\n video,\n canvas,\n audio,\n iframe,\n embed,\n object {\n vertical-align: middle;\n display: block;\n }\n img,\n video {\n max-width: 100%;\n height: auto;\n }\n h1 {\n font-size: var(--w-font-size-xxl);\n line-height: var(--w-line-height-xxl);\n }\n h2 {\n font-size: var(--w-font-size-xl);\n line-height: var(--w-line-height-xl);\n }\n h3 {\n font-size: var(--w-font-size-l);\n line-height: var(--w-line-height-l);\n }\n h4 {\n font-size: var(--w-font-size-m);\n line-height: var(--w-line-height-m);\n }\n h5 {\n font-size: var(--w-font-size-s);\n line-height: var(--w-line-height-s);\n }\n dt,\n dd {\n margin: 0 16px;\n }\n h1,\n h2,\n h3,\n h4,\n h5,\n ul,\n ol,\n dl,\n p,\n blockquote {\n margin: 0 0 8px;\n }\n [hidden] {\n display: none !important;\n }\n [tabindex='-1']:focus:not(:focus-visible) {\n outline: none;\n }\n legend {\n float: left;\n width: 100%;\n margin: 0;\n padding: 0;\n display: table;\n }\n legend + * {\n clear: both;\n }\n fieldset {\n border: 0;\n min-width: 0;\n margin: 0;\n padding: 0.01em 0 0;\n }\n body:not(:-moz-handler-blocked) fieldset {\n display: table-cell;\n }\n svg {\n pointer-events: none;\n }\n`;\nexport const components = css`*, :before, :after {\n --w-rotate: 0;\n --w-rotate-x: 0;\n --w-rotate-y: 0;\n --w-rotate-z: 0;\n --w-scale-x: 1;\n --w-scale-y: 1;\n --w-scale-z: 1;\n --w-skew-x: 0;\n --w-skew-y: 0;\n --w-translate-x: 0;\n --w-translate-y: 0;\n --w-translate-z: 0\n }\n\n .h4, .t4 {\n font-weight: 700;\n font-size: var(--w-font-size-m);\n line-height: var(--w-line-height-m)\n }\n\n .t3 {\n font-weight: 700;\n font-size: var(--w-font-size-l);\n line-height: var(--w-line-height-l)\n }\n\n @media (min-width: 480px) {\n .sm\\\\:h3 {\n font-weight: 700;\n font-size: var(--w-font-size-l);\n line-height: var(--w-line-height-l)\n }\n }\n\n .text-center {\n text-align: center\n }\n\n .before\\\\:text-center:before {\n text-align: center\n }\n\n .text-left {\n text-align: left\n }\n\n .text-right {\n text-align: right\n }\n\n .align-middle {\n vertical-align: middle\n }\n\n .animate-inprogress {\n 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;\n background-size: 30px 30px;\n animation: animate-inprogress 3s linear infinite\n }\n\n @keyframes animate-inprogress {\n 0% {\n background-position: 0 0\n }\n to {\n background-position: 60px 0\n }\n }\n\n .\\\\[--w-modal-max-height\\\\:80\\\\%\\\\] {\n --w-modal-max-height: 80%\n }\n\n .\\\\[--w-modal-width\\\\:640px\\\\] {\n --w-modal-width: 640px\n }\n\n .focus\\\\:\\\\[--w-outline-offset\\\\:-2px\\\\]:focus {\n --w-outline-offset: -2px\n }\n\n .backdrop-blur {\n -webkit-backdrop-filter: blur(4px);\n backdrop-filter: blur(4px)\n }\n\n .peer:checked ~ .peer-checked\\\\:before\\\\:bg-center:before {\n background-position: center\n }\n\n .hover\\\\:bg-clip-padding:hover {\n -webkit-background-clip: padding-box;\n background-clip: padding-box\n }\n\n .bg-transparent, .group\\\\/steph:first-child .group-first\\\\/steph\\\\:bg-transparent, .group\\\\/steph:last-child .group-last\\\\/steph\\\\:bg-transparent {\n background-color: transparent\n }\n\n .bg-\\\\[--w-black\\\\/25\\\\] {\n background-color: rgba(var(--w-rgb-black), .25)\n }\n\n .bg-\\\\[--w-black\\\\/70\\\\], .bg-\\\\[var\\\\(--w-black\\\\)\\\\/70\\\\] {\n background-color: rgba(var(--w-rgb-black), .7)\n }\n\n .bg-\\\\[--w-color-badge-info-background\\\\] {\n background-color: var(--w-color-badge-info-background)\n }\n\n .bg-\\\\[--w-color-badge-negative-background\\\\] {\n background-color: var(--w-color-badge-negative-background)\n }\n\n .bg-\\\\[--w-color-badge-neutral-background\\\\] {\n background-color: var(--w-color-badge-neutral-background)\n }\n\n .bg-\\\\[--w-color-badge-positive-background\\\\] {\n background-color: var(--w-color-badge-positive-background)\n }\n\n .bg-\\\\[--w-color-badge-sponsored-background\\\\] {\n background-color: var(--w-color-badge-sponsored-background)\n }\n\n .bg-\\\\[--w-color-badge-warning-background\\\\] {\n background-color: var(--w-color-badge-warning-background)\n }\n\n .bg-\\\\[--w-color-button-primary-background\\\\] {\n background-color: var(--w-color-button-primary-background)\n }\n\n .bg-\\\\[--w-color-buttongroup-utility-background-selected\\\\] {\n background-color: var(--w-color-buttongroup-utility-background-selected)\n }\n\n .bg-\\\\[--w-color-callout-background\\\\] {\n background-color: var(--w-color-callout-background)\n }\n\n .bg-\\\\[--w-color-pill-suggestion-background\\\\] {\n background-color: var(--w-color-pill-suggestion-background)\n }\n\n .bg-\\\\[--w-color-switch-track-background\\\\] {\n background-color: var(--w-color-switch-track-background)\n }\n\n .bg-\\\\[--w-s-color-surface-elevated-100\\\\] {\n background-color: var(--w-s-color-surface-elevated-100)\n }\n\n .bg-\\\\[--w-s-color-surface-elevated-300\\\\] {\n background-color: var(--w-s-color-surface-elevated-300)\n }\n\n .bg-\\\\[--w-s-icon-selected\\\\] {\n background-color: var(--w-s-icon-selected)\n }\n\n .group:hover .group-hover\\\\:bg-\\\\[--w-color-switch-track-background-hover\\\\] {\n background-color: var(--w-color-switch-track-background-hover)\n }\n\n .hover\\\\:bg-\\\\[--w-color-button-pill-background-hover\\\\]:hover {\n background-color: var(--w-color-button-pill-background-hover)\n }\n\n .hover\\\\:bg-\\\\[--w-color-button-primary-background-hover\\\\]:hover {\n background-color: var(--w-color-button-primary-background-hover)\n }\n\n .hover\\\\:bg-\\\\[--w-color-buttongroup-utility-background-hover\\\\]:hover {\n background-color: var(--w-color-buttongroup-utility-background-hover)\n }\n\n .hover\\\\:bg-\\\\[--w-color-pill-suggestion-background-hover\\\\]:hover {\n background-color: var(--w-color-pill-suggestion-background-hover)\n }\n\n .hover\\\\:bg-\\\\[--w-s-icon-subtle\\\\]:hover {\n background-color: var(--w-s-icon-subtle)\n }\n\n .hover\\\\:bg-\\\\[var\\\\(--w-black\\\\)\\\\/85\\\\]:hover {\n background-color: rgba(var(--w-rgb-black), .85)\n }\n\n .active\\\\:bg-\\\\[--w-color-button-pill-background-active\\\\]:active {\n background-color: var(--w-color-button-pill-background-active)\n }\n\n .active\\\\:bg-\\\\[--w-color-button-primary-background-active\\\\]:active {\n background-color: var(--w-color-button-primary-background-active)\n }\n\n .active\\\\:bg-\\\\[--w-color-buttongroup-utility-background-selected\\\\]:active {\n background-color: var(--w-color-buttongroup-utility-background-selected)\n }\n\n .active\\\\:bg-\\\\[--w-color-pill-suggestion-background-active\\\\]:active {\n background-color: var(--w-color-pill-suggestion-background-active)\n }\n\n .active\\\\:bg-\\\\[var\\\\(--w-black\\\\)\\\\]:active {\n background-color: var(--w-black)\n }\n\n .peer:checked ~ .peer-checked\\\\:before\\\\:bg-\\\\[url\\\\(var\\\\(--w-icon-toggle-checked\\\\)\\\\)\\\\]:before {\n background-image: var(--w-icon-toggle-checked)\n }\n\n .appearance-none {\n -moz-appearance: none;\n appearance: none;\n -webkit-appearance: none\n }\n\n .will-change-height {\n will-change: height\n }\n\n .border, .border-1 {\n border-width: 1px\n }\n\n .border-b {\n border-bottom-width: 1px\n }\n\n .before\\\\:border:before {\n border-width: 1px\n }\n\n .border-0 {\n border-width: 0\n }\n\n .border-2 {\n border-width: 2px\n }\n\n .border-b-0 {\n border-bottom-width: 0\n }\n\n .border-b-4 {\n border-bottom-width: 4px\n }\n\n .border-l-4 {\n border-left-width: 4px\n }\n\n .border-r-0, .group:not(:last-of-type) .group-not-last-of-type\\\\:border-r-0 {\n border-right-width: 0\n }\n\n .peer:checked ~ .peer-checked\\\\:before\\\\:border-\\\\[6\\\\]:before {\n border-width: .6rem\n }\n\n .border-transparent {\n border-color: transparent\n }\n\n .border-\\\\[--w-color-buttongroup-utility-border\\\\] {\n border-color: var(--w-color-buttongroup-utility-border)\n }\n\n .border-\\\\[--w-color-callout-border\\\\] {\n border-color: var(--w-color-callout-border)\n }\n\n .border-\\\\[--w-s-color-background-inverted\\\\] {\n border-color: var(--w-s-color-background-inverted)\n }\n\n .border-\\\\[--w-s-color-surface-elevated-300\\\\] {\n border-color: var(--w-s-color-surface-elevated-300)\n }\n\n .active\\\\:border-\\\\[--w-color-buttongroup-utility-border-selected\\\\]:active {\n border-color: var(--w-color-buttongroup-utility-border-selected)\n }\n\n .divide-x > * + * {\n --w-divide-x-reverse: 0;\n border-left-width: calc(1px * calc(1 - var(--w-divide-x-reverse)));\n border-right-width: calc(1px * var(--w-divide-x-reverse))\n }\n\n .divide-y > * + * {\n --w-divide-y-reverse: 0;\n border-top-width: calc(1px * calc(1 - var(--w-divide-y-reverse)));\n border-bottom-width: calc(1px * var(--w-divide-y-reverse))\n }\n\n .rounded-4 {\n border-radius: 4px\n }\n\n .rounded-8 {\n border-radius: 8px\n }\n\n .rounded-full {\n border-radius: 9999px\n }\n\n .before\\\\:rounded-2:before {\n border-radius: 2px\n }\n\n .before\\\\:rounded-full:before {\n border-radius: 9999px\n }\n\n .rounded-b-0 {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0\n }\n\n .rounded-bl-0 {\n border-bottom-left-radius: 0\n }\n\n .rounded-br-0 {\n border-bottom-right-radius: 0\n }\n\n .rounded-l-0 {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0\n }\n\n .rounded-l-full {\n border-top-left-radius: 9999px;\n border-bottom-left-radius: 9999px\n }\n\n .rounded-r-0 {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0\n }\n\n .rounded-r-full {\n border-top-right-radius: 9999px;\n border-bottom-right-radius: 9999px\n }\n\n .rounded-tl-0 {\n border-top-left-radius: 0\n }\n\n .rounded-tl-4 {\n border-top-left-radius: 4px\n }\n\n .rounded-tr-0 {\n border-top-right-radius: 0\n }\n\n .group:first-of-type .group-first-of-type\\\\:rounded-bl-8 {\n border-bottom-left-radius: 8px\n }\n\n .group:first-of-type .group-first-of-type\\\\:rounded-tl-8 {\n border-top-left-radius: 8px\n }\n\n .first\\\\:rounded-lb-4:first-child {\n border-bottom-left-radius: 4px\n }\n\n .first\\\\:rounded-lt-4:first-child {\n border-top-left-radius: 4px\n }\n\n .first\\\\:rounded-rt-4:first-child {\n border-top-right-radius: 4px\n }\n\n .group:last-of-type .group-last-of-type\\\\:rounded-br-8 {\n border-bottom-right-radius: 8px\n }\n\n .group:last-of-type .group-last-of-type\\\\:rounded-tr-8 {\n border-top-right-radius: 8px\n }\n\n .last\\\\:rounded-lb-4:last-child {\n border-bottom-left-radius: 4px\n }\n\n .last\\\\:rounded-rb-4:last-child {\n border-bottom-right-radius: 4px\n }\n\n .last\\\\:rounded-rt-4:last-child {\n border-top-right-radius: 4px\n }\n\n .caret-current {\n caret-color: currentColor\n }\n\n .opacity-25 {\n opacity: 25%\n }\n\n .block {\n display: block\n }\n\n .before\\\\:block:before {\n display: block\n }\n\n .inline-block {\n display: inline-block\n }\n\n .inline {\n display: inline\n }\n\n .flex, .open\\\\:flex[open] {\n display: flex\n }\n\n .inline-flex {\n display: inline-flex\n }\n\n .grid {\n display: grid\n }\n\n .inline-grid {\n display: inline-grid\n }\n\n .hidden, .group\\\\/stepv:last-child .group-last\\\\/stepv\\\\:hidden {\n display: none\n }\n\n .before\\\\:hidden:before {\n display: none\n }\n\n .hover\\\\:underline:hover {\n text-decoration-line: underline\n }\n\n .focus\\\\:underline:focus {\n text-decoration-line: underline\n }\n\n .focus-visible\\\\:underline:focus-visible {\n text-decoration-line: underline\n }\n\n .active\\\\:underline:active {\n text-decoration-line: underline\n }\n\n .hover\\\\:no-underline:hover {\n text-decoration: none\n }\n\n .focus\\\\:no-underline:focus {\n text-decoration: none\n }\n\n .active\\\\:no-underline:active {\n text-decoration: none\n }\n\n .flex-1 {\n flex: 1 1 0%\n }\n\n .shrink {\n flex-shrink: 1\n }\n\n .shrink-0 {\n flex-shrink: 0\n }\n\n .shrink-0\\\\! {\n flex-shrink: 0 !important\n }\n\n .grow, .grow-1 {\n flex-grow: 1\n }\n\n .basis-auto {\n flex-basis: auto\n }\n\n .flex-col {\n flex-direction: column\n }\n\n .focus-within\\\\:focusable:focus-within {\n outline: 2px solid var(--w-s-color-border-focus);\n outline-offset: var(--w-outline-offset, 1px)\n }\n\n .focusable:focus, .focusable:focus-visible {\n outline: 2px solid var(--w-s-color-border-focus);\n outline-offset: var(--w-outline-offset, 1px)\n }\n\n .focusable:not(:focus-visible) {\n outline: none\n }\n\n .peer:focus ~ .peer-focus\\\\:focusable, .peer:focus-visible ~ .peer-focus\\\\:focusable {\n outline: 2px solid var(--w-s-color-border-focus);\n outline-offset: var(--w-outline-offset, 1px)\n }\n\n .peer:not(:focus-visible) ~ .peer-focus\\\\:focusable {\n outline: none\n }\n\n .focusable-inset {\n --w-outline-offset: -3px\n }\n\n .gap-12 {\n gap: 1.2rem\n }\n\n .gap-8 {\n gap: .8rem\n }\n\n .gap-x-16 {\n column-gap: 1.6rem\n }\n\n .gap-y-16 {\n row-gap: 1.6rem\n }\n\n .row-span-2 {\n grid-row: span 2/span 2\n }\n\n .col-span-2 {\n grid-column: span 2/span 2\n }\n\n .col-span-3 {\n grid-column: span 3/span 3\n }\n\n .row-start-1 {\n grid-row-start: 1\n }\n\n .row-start-2 {\n grid-row-start: 2\n }\n\n .col-start-2 {\n grid-column-start: 2\n }\n\n .auto-rows-auto {\n grid-auto-rows: auto\n }\n\n .grid-flow-col {\n grid-auto-flow: column\n }\n\n .grid-rows-\\\\[20px_auto\\\\] {\n grid-template-rows:20px auto\n }\n\n .grid-rows-\\\\[auto_20px\\\\] {\n grid-template-rows:auto 20px\n }\n\n .grid-cols-\\\\[1fr_20px_1fr\\\\] {\n grid-template-columns:1fr 20px 1fr\n }\n\n .grid-cols-\\\\[1fr_20px\\\\] {\n grid-template-columns:1fr 20px\n }\n\n .grid-cols-\\\\[20px_1fr\\\\] {\n grid-template-columns:20px 1fr\n }\n\n .grid-cols-\\\\[auto_1fr_auto\\\\] {\n grid-template-columns:auto 1fr auto\n }\n\n .grid-cols-1 {\n grid-template-columns:repeat(1, minmax(0, 1fr))\n }\n\n .grid-cols-2 {\n grid-template-columns:repeat(2, minmax(0, 1fr))\n }\n\n .grid-cols-3 {\n grid-template-columns:repeat(3, minmax(0, 1fr))\n }\n\n .grid-cols-4 {\n grid-template-columns:repeat(4, minmax(0, 1fr))\n }\n\n .grid-cols-5 {\n grid-template-columns:repeat(5, minmax(0, 1fr))\n }\n\n .grid-cols-6 {\n grid-template-columns:repeat(6, minmax(0, 1fr))\n }\n\n .grid-cols-7 {\n grid-template-columns:repeat(7, minmax(0, 1fr))\n }\n\n .grid-cols-8 {\n grid-template-columns:repeat(8, minmax(0, 1fr))\n }\n\n .grid-cols-9 {\n grid-template-columns:repeat(9, minmax(0, 1fr))\n }\n\n .overflow-hidden {\n overflow: hidden\n }\n\n .overflow-x-hidden {\n overflow-x: hidden\n }\n\n .overflow-y-auto {\n overflow-y: auto\n }\n\n .list-none {\n list-style-type: none\n }\n\n .outline-\\\\[--w-s-color-border-negative\\\\]\\\\! {\n outline-color: var(--w-s-color-border-negative) !important\n }\n\n .outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px\n }\n\n .focus\\\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px\n }\n\n .items-start {\n align-items: flex-start\n }\n\n .items-end {\n align-items: flex-end\n }\n\n .items-center {\n align-items: center\n }\n\n .self-center {\n align-self: center\n }\n\n .inset-0 {\n top: 0rem;\n right: 0rem;\n bottom: 0rem;\n left: 0rem\n }\n\n .-bottom-0 {\n bottom: -0rem\n }\n\n .bottom-0 {\n bottom: 0rem\n }\n\n .bottom-10 {\n bottom: 1rem\n }\n\n .bottom-16 {\n bottom: 1.6rem\n }\n\n .left-0 {\n left: 0rem\n }\n\n .left-4 {\n left: .4rem\n }\n\n .right-0 {\n right: 0rem\n }\n\n .right-8 {\n right: .8rem\n }\n\n .top-\\\\[1\\\\.92rem\\\\] {\n top: 1.92rem\n }\n\n .top-0 {\n top: 0rem\n }\n\n .top-20 {\n top: 2rem\n }\n\n .top-4 {\n top: .4rem\n }\n\n .top-8 {\n top: .8rem\n }\n\n .before\\\\:bottom-0:before {\n bottom: 0rem\n }\n\n .before\\\\:left-0:before {\n left: 0rem\n }\n\n .before\\\\:right-0:before {\n right: 0rem\n }\n\n .before\\\\:top-2:before {\n top: .2rem\n }\n\n .-bottom-\\\\[8px\\\\] {\n bottom: -8px\n }\n\n .-left-\\\\[8px\\\\] {\n left: -8px\n }\n\n .-right-\\\\[8px\\\\] {\n right: -8px\n }\n\n .-top-\\\\[8px\\\\] {\n top: -8px\n }\n\n .top-\\\\[19px\\\\] {\n top: 19px\n }\n\n .top-\\\\[30\\\\%\\\\] {\n top: 30%\n }\n\n .justify-end {\n justify-content: flex-end\n }\n\n .justify-center {\n justify-content: center\n }\n\n .justify-between {\n justify-content: space-between\n }\n\n .justify-items-center {\n justify-items: center\n }\n\n .justify-self-start {\n justify-self: start\n }\n\n .justify-self-end {\n justify-self: end\n }\n\n .justify-self-center {\n justify-self: center\n }\n\n .absolute {\n position: absolute\n }\n\n .fixed {\n position: fixed\n }\n\n .relative {\n position: relative\n }\n\n .open\\\\:fixed[open] {\n position: fixed\n }\n\n .before\\\\:absolute:before {\n position: absolute\n }\n\n .z-10, .peer:checked ~ .peer-checked\\\\:z-10 {\n z-index: 10\n }\n\n .z-30 {\n z-index: 30\n }\n\n .z-50 {\n z-index: 50\n }\n\n .hover\\\\:z-30:hover {\n z-index: 30\n }\n\n .\\\\!s-bg-selected {\n background-color: var(--w-s-color-background-selected) !important\n }\n\n .s-bg {\n background-color: var(--w-s-color-background)\n }\n\n .s-bg-disabled {\n background-color: var(--w-s-color-background-disabled)\n }\n\n .s-bg-disabled-subtle {\n background-color: var(--w-s-color-background-disabled-subtle)\n }\n\n .s-bg-info-subtle {\n background-color: var(--w-s-color-background-info-subtle)\n }\n\n .s-bg-inverted {\n background-color: var(--w-s-color-background-inverted)\n }\n\n .s-bg-negative {\n background-color: var(--w-s-color-background-negative)\n }\n\n .s-bg-negative-subtle {\n background-color: var(--w-s-color-background-negative-subtle)\n }\n\n .s-bg-positive-subtle {\n background-color: var(--w-s-color-background-positive-subtle)\n }\n\n .s-bg-primary, .peer:checked ~ .peer-checked\\\\:s-bg-primary {\n background-color: var(--w-s-color-background-primary)\n }\n\n .s-bg-selected {\n background-color: var(--w-s-color-background-selected)\n }\n\n .s-bg-subtle {\n background-color: var(--w-s-color-background-subtle)\n }\n\n .s-bg-warning-subtle {\n background-color: var(--w-s-color-background-warning-subtle)\n }\n\n .peer:checked:hover ~ .peer-checked\\\\:peer-hover\\\\:before\\\\:s-bg-negative-hover:before {\n background-color: var(--w-s-color-background-negative-hover)\n }\n\n .peer:checked:hover ~ .peer-checked\\\\:peer-hover\\\\:before\\\\:s-bg-primary-hover:before {\n background-color: var(--w-s-color-background-primary-hover)\n }\n\n .peer:checked ~ .peer-checked\\\\:before\\\\:s-bg-disabled:before {\n background-color: var(--w-s-color-background-disabled)\n }\n\n .peer:checked ~ .peer-checked\\\\:before\\\\:s-bg-negative:before {\n background-color: var(--w-s-color-background-negative)\n }\n\n .peer:checked ~ .peer-checked\\\\:before\\\\:s-bg-primary:before {\n background-color: var(--w-s-color-background-primary)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\\\:before\\\\:s-bg-disabled:before {\n background-color: var(--w-s-color-background-disabled)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\\\:before\\\\:s-bg-negative:before {\n background-color: var(--w-s-color-background-negative)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\\\:before\\\\:s-bg-primary:before {\n background-color: var(--w-s-color-background-primary)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\\\:hover\\\\:before\\\\:s-bg-negative-hover:hover:before {\n background-color: var(--w-s-color-background-negative-hover)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\\\:hover\\\\:before\\\\:s-bg-primary-hover:hover:before {\n background-color: var(--w-s-color-background-primary-hover)\n }\n\n .\\\\!hover\\\\:s-bg-selected-hover:hover {\n background-color: var(--w-s-color-background-selected-hover) !important\n }\n\n .group:hover .group-hover\\\\:s-bg-primary-hover {\n background-color: var(--w-s-color-background-primary-hover)\n }\n\n .hover\\\\:before\\\\:s-bg-hover:hover:before {\n background-color: var(--w-s-color-background-hover)\n }\n\n .hover\\\\:before\\\\:s-bg-negative-subtle-hover:hover:before {\n background-color: var(--w-s-color-background-negative-subtle-hover)\n }\n\n .hover\\\\:s-bg-hover:hover {\n background-color: var(--w-s-color-background-hover)\n }\n\n .hover\\\\:s-bg-negative-hover:hover {\n background-color: var(--w-s-color-background-negative-hover)\n }\n\n .hover\\\\:s-bg-negative-subtle-hover:hover {\n background-color: var(--w-s-color-background-negative-subtle-hover)\n }\n\n .hover\\\\:s-bg-primary-hover:hover {\n background-color: var(--w-s-color-background-primary-hover)\n }\n\n .hover\\\\:s-bg-selected-hover:hover {\n background-color: var(--w-s-color-background-selected-hover)\n }\n\n .peer:hover:not(:checked) ~ .peer-hover\\\\:peer-not-checked\\\\:s-bg-hover {\n background-color: var(--w-s-color-background-hover)\n }\n\n .peer:hover ~ .peer-hover\\\\:before\\\\:s-bg-hover:before {\n background-color: var(--w-s-color-background-hover)\n }\n\n .peer:hover ~ .peer-hover\\\\:before\\\\:s-bg-negative-subtle:before {\n background-color: var(--w-s-color-background-negative-subtle)\n }\n\n .focus\\\\:s-bg-primary-hover:focus {\n background-color: var(--w-s-color-background-primary-hover)\n }\n\n .\\\\!active\\\\:s-bg-selected-active:active {\n background-color: var(--w-s-color-background-selected-active) !important\n }\n\n .active\\\\:s-bg-active:active {\n background-color: var(--w-s-color-background-active)\n }\n\n .active\\\\:s-bg-negative-active:active {\n background-color: var(--w-s-color-background-negative-active)\n }\n\n .active\\\\:s-bg-negative-subtle-active:active {\n background-color: var(--w-s-color-background-negative-subtle-active)\n }\n\n .active\\\\:s-bg-primary-active:active {\n background-color: var(--w-s-color-background-primary-active)\n }\n\n .active\\\\:s-bg-selected-active:active {\n background-color: var(--w-s-color-background-selected-active)\n }\n\n .before\\\\:s-bg-disabled-subtle:before {\n background-color: var(--w-s-color-background-disabled-subtle)\n }\n\n .before\\\\:s-bg:before {\n background-color: var(--w-s-color-background)\n }\n\n .s-text {\n color: var(--w-s-color-text)\n }\n\n .s-text-disabled {\n color: var(--w-s-color-text-disabled)\n }\n\n .s-text-inverted, .peer:checked ~ .peer-checked\\\\:s-text-inverted {\n color: var(--w-s-color-text-inverted)\n }\n\n .s-text-inverted-static {\n color: var(--w-s-color-text-inverted-static)\n }\n\n .s-text-link {\n color: var(--w-s-color-text-link)\n }\n\n .s-text-negative {\n color: var(--w-s-color-text-negative)\n }\n\n .s-text-subtle {\n color: var(--w-s-color-text-subtle)\n }\n\n .hover\\\\:s-text-link:hover {\n color: var(--w-s-color-text-link)\n }\n\n .active\\\\:s-text:active {\n color: var(--w-s-color-text)\n }\n\n .placeholder\\\\:s-text-placeholder::placeholder {\n color: var(--w-s-color-text-placeholder)\n }\n\n .s-icon {\n color: var(--w-s-color-icon)\n }\n\n .s-icon-info {\n color: var(--w-s-color-icon-info)\n }\n\n .s-icon-inverted {\n color: var(--w-s-color-icon-inverted)\n }\n\n .s-icon-negative {\n color: var(--w-s-color-icon-negative)\n }\n\n .s-icon-positive {\n color: var(--w-s-color-icon-positive)\n }\n\n .s-icon-warning {\n color: var(--w-s-color-icon-warning)\n }\n\n .hover\\\\:s-icon-hover:hover {\n color: var(--w-s-color-icon-hover)\n }\n\n .active\\\\:s-icon-active:active {\n color: var(--w-s-color-icon-active)\n }\n\n .before\\\\:s-icon-inverted:before {\n color: var(--w-s-color-icon-inverted)\n }\n\n .s-border {\n border-color: var(--w-s-color-border)\n }\n\n .s-border-disabled {\n border-color: var(--w-s-color-border-disabled)\n }\n\n .s-border-info-subtle {\n border-color: var(--w-s-color-border-info-subtle)\n }\n\n .s-border-l-info {\n border-left-color: var(--w-s-color-border-info)\n }\n\n .s-border-l-negative {\n border-left-color: var(--w-s-color-border-negative)\n }\n\n .s-border-l-positive {\n border-left-color: var(--w-s-color-border-positive)\n }\n\n .s-border-l-warning {\n border-left-color: var(--w-s-color-border-warning)\n }\n\n .s-border-negative {\n border-color: var(--w-s-color-border-negative)\n }\n\n .s-border-negative-subtle {\n border-color: var(--w-s-color-border-negative-subtle)\n }\n\n .s-border-positive-subtle {\n border-color: var(--w-s-color-border-positive-subtle)\n }\n\n .s-border-primary, .peer:checked ~ .peer-checked\\\\:s-border-primary {\n border-color: var(--w-s-color-border-primary)\n }\n\n .s-border-selected {\n border-color: var(--w-s-color-border-selected)\n }\n\n .s-border-warning-subtle {\n border-color: var(--w-s-color-border-warning-subtle)\n }\n\n .peer:checked:hover ~ .peer-checked\\\\:peer-hover\\\\:before\\\\:s-border-negative-hover:before {\n border-color: var(--w-s-color-border-negative-hover)\n }\n\n .peer:checked:hover ~ .peer-checked\\\\:peer-hover\\\\:before\\\\:s-border-primary-hover:before {\n border-color: var(--w-s-color-border-primary-hover)\n }\n\n .peer:checked:hover ~ .peer-checked\\\\:peer-hover\\\\:before\\\\:s-border-selected-hover:before {\n border-color: var(--w-s-color-border-selected-hover)\n }\n\n .peer:checked ~ .peer-checked\\\\:before\\\\:s-border-disabled:before {\n border-color: var(--w-s-color-border-disabled)\n }\n\n .peer:checked ~ .peer-checked\\\\:before\\\\:s-border-negative:before {\n border-color: var(--w-s-color-border-negative)\n }\n\n .peer:checked ~ .peer-checked\\\\:before\\\\:s-border-primary:before {\n border-color: var(--w-s-color-border-primary)\n }\n\n .peer:checked ~ .peer-checked\\\\:before\\\\:s-border-selected:before {\n border-color: var(--w-s-color-border-selected)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\\\:before\\\\:s-border-disabled:before {\n border-color: var(--w-s-color-border-disabled)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\\\:before\\\\:s-border-negative:before {\n border-color: var(--w-s-color-border-negative)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\\\:before\\\\:s-border-primary:before {\n border-color: var(--w-s-color-border-primary)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\\\:hover\\\\:before\\\\:s-border-negative-hover:hover:before {\n border-color: var(--w-s-color-border-negative-hover)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\\\:hover\\\\:before\\\\:s-border-primary-hover:hover:before {\n border-color: var(--w-s-color-border-primary-hover)\n }\n\n .group:hover .group-hover\\\\:s-border-selected-hover {\n border-color: var(--w-s-color-border-selected-hover)\n }\n\n .hover\\\\:before\\\\:s-border-negative-hover:hover:before {\n border-color: var(--w-s-color-border-negative-hover)\n }\n\n .hover\\\\:before\\\\:s-border-primary:hover:before {\n border-color: var(--w-s-color-border-primary)\n }\n\n .hover\\\\:s-border-disabled:hover {\n border-color: var(--w-s-color-border-disabled)\n }\n\n .hover\\\\:s-border-hover:hover {\n border-color: var(--w-s-color-border-hover)\n }\n\n .hover\\\\:s-border-negative-hover:hover {\n border-color: var(--w-s-color-border-negative-hover)\n }\n\n .hover\\\\:s-border-primary-hover:hover {\n border-color: var(--w-s-color-border-primary-hover)\n }\n\n .hover\\\\:s-border-primary:hover {\n border-color: var(--w-s-color-border-primary)\n }\n\n .hover\\\\:s-border-selected-hover:hover {\n border-color: var(--w-s-color-border-selected-hover)\n }\n\n .peer:hover ~ .peer-hover\\\\:before\\\\:s-border-negative-hover:before {\n border-color: var(--w-s-color-border-negative-hover)\n }\n\n .peer:hover ~ .peer-hover\\\\:before\\\\:s-border-primary:before {\n border-color: var(--w-s-color-border-primary)\n }\n\n .focus\\\\:s-border-primary-hover:focus {\n border-color: var(--w-s-color-border-primary-hover)\n }\n\n .active\\\\:s-border-active:active {\n border-color: var(--w-s-color-border-active)\n }\n\n .active\\\\:s-border-disabled:active {\n border-color: var(--w-s-color-border-disabled)\n }\n\n .active\\\\:s-border-primary-active:active {\n border-color: var(--w-s-color-border-primary-active)\n }\n\n .active\\\\:s-border-selected-active:active {\n border-color: var(--w-s-color-border-selected-active)\n }\n\n .active\\\\:s-border-selected:active {\n border-color: var(--w-s-color-border-selected)\n }\n\n .group:active .group-active\\\\:s-border-active {\n border-color: var(--w-s-color-border-active)\n }\n\n .group:active .group-active\\\\:s-border-selected-active {\n border-color: var(--w-s-color-border-selected-active)\n }\n\n .before\\\\:s-border-disabled:before {\n border-color: var(--w-s-color-border-disabled)\n }\n\n .before\\\\:s-border-negative:before {\n border-color: var(--w-s-color-border-negative)\n }\n\n .s-surface-sunken {\n background-color: var(--w-s-color-surface-sunken)\n }\n\n .s-surface-elevated-200 {\n background-color: var(--w-s-color-surface-elevated-200);\n box-shadow: var(--w-s-shadow-surface-elevated-200)\n }\n\n .hover\\\\:s-surface-elevated-200-hover:hover {\n background-color: var(--w-s-color-surface-elevated-200-hover);\n box-shadow: var(--w-s-shadow-surface-elevated-200-hover)\n }\n\n .active\\\\:s-surface-elevated-200-active:active {\n background-color: var(--w-s-color-surface-elevated-200-active);\n box-shadow: var(--w-s-shadow-surface-elevated-200-active)\n }\n\n .drop-shadow-m {\n filter: drop-shadow(rgba(64, 64, 64, .24) 0 3px 8px) drop-shadow(rgba(64, 64, 64, .16) 0 3px 6px)\n }\n\n .shadow-m {\n box-shadow: var(--w-shadow-m)\n }\n\n .shadow-s {\n box-shadow: var(--w-shadow-s)\n }\n\n .shadow-\\\\[--w-shadow-slider\\\\] {\n box-shadow: var(--w-shadow-slider)\n }\n\n .hover\\\\:shadow-\\\\[--w-shadow-slider-handle-hover\\\\]:hover {\n box-shadow: var(--w-shadow-slider-handle-hover)\n }\n\n .focus\\\\:shadow-\\\\[--w-shadow-slider-handle-hover\\\\]:focus {\n box-shadow: var(--w-shadow-slider-handle-hover)\n }\n\n .active\\\\:shadow-\\\\[--w-shadow-slider-handle-active\\\\]:active {\n box-shadow: var(--w-shadow-slider-handle-active)\n }\n\n .h-0 {\n height: 0rem\n }\n\n .h-16 {\n height: 1.6rem\n }\n\n .h-2 {\n height: .2rem\n }\n\n .h-20 {\n height: 2rem\n }\n\n .h-24 {\n height: 2.4rem\n }\n\n .h-4 {\n height: .4rem\n }\n\n .h-44 {\n height: 4.4rem\n }\n\n .h-6 {\n height: .6rem\n }\n\n .h-8 {\n height: .8rem\n }\n\n .h-full {\n height: 100%\n }\n\n .h-unset {\n height: unset\n }\n\n .max-h-unset {\n max-height: unset\n }\n\n .max-w-full {\n max-width: 100%\n }\n\n .max-w-max {\n max-width: max-content\n }\n\n .max-w-unset {\n max-width: unset\n }\n\n .min-h-32 {\n min-height: 3.2rem\n }\n\n .min-h-40 {\n min-height: 4rem\n }\n\n .min-w-16 {\n min-width: 1.6rem\n }\n\n .min-w-32 {\n min-width: 3.2rem\n }\n\n .w-16 {\n width: 1.6rem\n }\n\n .w-2 {\n width: .2rem\n }\n\n .w-20 {\n width: 2rem\n }\n\n .w-24 {\n width: 2.4rem\n }\n\n .w-32 {\n width: 3.2rem\n }\n\n .w-40 {\n width: 4rem\n }\n\n .w-44 {\n width: 4.4rem\n }\n\n .w-8 {\n width: .8rem\n }\n\n .w-full {\n width: 100%\n }\n\n .w-max {\n width: max-content\n }\n\n .w-unset {\n width: unset\n }\n\n .before\\\\:h-20:before {\n height: 2rem\n }\n\n .before\\\\:h-full:before {\n height: 100%\n }\n\n .before\\\\:w-20:before {\n width: 2rem\n }\n\n .before\\\\:w-32:before {\n width: 3.2rem\n }\n\n .h-\\\\[--w-modal-height\\\\] {\n height: var(--w-modal-height)\n }\n\n .h-\\\\[14px\\\\] {\n height: 14px\n }\n\n .h-\\\\[16px\\\\] {\n height: 16px\n }\n\n .max-h-\\\\[--w-modal-max-height\\\\] {\n max-height: var(--w-modal-max-height)\n }\n\n .min-h-\\\\[--w-modal-min-height\\\\] {\n min-height: var(--w-modal-min-height)\n }\n\n .min-h-\\\\[32px\\\\] {\n min-height: 32px\n }\n\n .min-h-\\\\[40px\\\\] {\n min-height: 40px\n }\n\n .min-h-\\\\[42\\\\] {\n min-height: 4.2rem\n }\n\n .min-h-\\\\[44px\\\\] {\n min-height: 44px\n }\n\n .min-w-\\\\[32px\\\\] {\n min-width: 32px\n }\n\n .min-w-\\\\[40px\\\\] {\n min-width: 40px\n }\n\n .min-w-\\\\[44px\\\\] {\n min-width: 44px\n }\n\n .w-\\\\[--w-modal-width\\\\] {\n width: var(--w-modal-width)\n }\n\n .w-\\\\[14px\\\\] {\n width: 14px\n }\n\n .w-\\\\[16px\\\\] {\n width: 16px\n }\n\n .space-x-8 > :not([hidden]) ~ :not([hidden]) {\n --w-space-x-reverse: 0;\n margin-left: calc(.8rem * calc(1 - var(--w-space-x-reverse)));\n margin-right: calc(.8rem * var(--w-space-x-reverse))\n }\n\n .space-y-16 > :not([hidden]) ~ :not([hidden]) {\n --w-space-y-reverse: 0;\n margin-top: calc(1.6rem * calc(1 - var(--w-space-y-reverse)));\n margin-bottom: calc(1.6rem * var(--w-space-y-reverse))\n }\n\n .m-0 {\n margin: 0rem\n }\n\n .m-auto {\n margin: auto\n }\n\n .-mx-16 {\n margin-left: -1.6rem;\n margin-right: -1.6rem\n }\n\n .mx-0 {\n margin-left: 0rem;\n margin-right: 0rem\n }\n\n .mx-8 {\n margin-left: .8rem;\n margin-right: .8rem\n }\n\n .mx-auto {\n margin-left: auto;\n margin-right: auto\n }\n\n .-mb-1 {\n margin-bottom: -.1rem\n }\n\n .-ml-8 {\n margin-left: -.8rem\n }\n\n .-mr-1 {\n margin-right: -.1rem\n }\n\n .-mr-8 {\n margin-right: -.8rem\n }\n\n .-mt-2 {\n margin-top: -.2rem\n }\n\n .-mt-4 {\n margin-top: -.4rem\n }\n\n .last-child\\\\:mb-0 > :last-child, .mb-0 {\n margin-bottom: 0rem\n }\n\n .mb-32 {\n margin-bottom: 3.2rem\n }\n\n .ml-8 {\n margin-left: .8rem\n }\n\n .ml-auto {\n margin-left: auto\n }\n\n .mr-8 {\n margin-right: .8rem\n }\n\n .mt-16 {\n margin-top: 1.6rem\n }\n\n .mt-4 {\n margin-top: .4rem\n }\n\n .group:not(:first-child) .group-not-first\\\\:-ml-2 {\n margin-left: -.2rem\n }\n\n .last\\\\:mb-0:last-child {\n margin-bottom: 0rem\n }\n\n .last\\\\:mr-0:last-child {\n margin-right: 0rem\n }\n\n .m-\\\\[8px\\\\] {\n margin: 8px\n }\n\n .p-0 {\n padding: 0rem\n }\n\n .p-16 {\n padding: 1.6rem\n }\n\n .p-4 {\n padding: .4rem\n }\n\n .p-8 {\n padding: .8rem\n }\n\n .px-0 {\n padding-left: 0rem;\n padding-right: 0rem\n }\n\n .px-1 {\n padding-left: .1rem;\n padding-right: .1rem\n }\n\n .px-12 {\n padding-left: 1.2rem;\n padding-right: 1.2rem\n }\n\n .px-14 {\n padding-left: 1.4rem;\n padding-right: 1.4rem\n }\n\n .px-16 {\n padding-left: 1.6rem;\n padding-right: 1.6rem\n }\n\n .px-8 {\n padding-left: .8rem;\n padding-right: .8rem\n }\n\n .py-0 {\n padding-top: 0rem;\n padding-bottom: 0rem\n }\n\n .py-1 {\n padding-top: .1rem;\n padding-bottom: .1rem\n }\n\n .py-10 {\n padding-top: 1rem;\n padding-bottom: 1rem\n }\n\n .py-12 {\n padding-top: 1.2rem;\n padding-bottom: 1.2rem\n }\n\n .py-2 {\n padding-top: .2rem;\n padding-bottom: .2rem\n }\n\n .py-4 {\n padding-top: .4rem;\n padding-bottom: .4rem\n }\n\n .py-6 {\n padding-top: .6rem;\n padding-bottom: .6rem\n }\n\n .py-8 {\n padding-top: .8rem;\n padding-bottom: .8rem\n }\n\n .pb-0 {\n padding-bottom: 0rem\n }\n\n .pb-32 {\n padding-bottom: 3.2rem\n }\n\n .pb-4 {\n padding-bottom: .4rem\n }\n\n .pb-8 {\n padding-bottom: .8rem\n }\n\n .pl-0 {\n padding-left: 0rem\n }\n\n .pl-1 {\n padding-left: .1rem\n }\n\n .pl-12 {\n padding-left: 1.2rem\n }\n\n .pl-28 {\n padding-left: 2.8rem\n }\n\n .pl-4 {\n padding-left: .4rem\n }\n\n .pl-8 {\n padding-left: .8rem\n }\n\n .pr-12 {\n padding-right: 1.2rem\n }\n\n .pr-14 {\n padding-right: 1.4rem\n }\n\n .pr-2 {\n padding-right: .2rem\n }\n\n .pr-32 {\n padding-right: 3.2rem\n }\n\n .pr-40 {\n padding-right: 4rem\n }\n\n .pt-0 {\n padding-top: 0rem\n }\n\n .pt-1 {\n padding-top: .1rem\n }\n\n .pt-16 {\n padding-top: 1.6rem\n }\n\n .pt-24 {\n padding-top: 2.4rem\n }\n\n .pt-8 {\n padding-top: .8rem\n }\n\n .group\\\\/step:last-child .group-last\\\\/step\\\\:last\\\\:pb-0:last-child {\n padding-bottom: 0rem\n }\n\n .last\\\\:pb-1:last-child {\n padding-bottom: .1rem\n }\n\n .last\\\\:pr-1:last-child {\n padding-right: .1rem\n }\n\n .p-\\\\[8px\\\\] {\n padding: 8px\n }\n\n .px-\\\\[15px\\\\] {\n padding-left: 15px;\n padding-right: 15px\n }\n\n .px-\\\\[8px\\\\] {\n padding-left: 8px;\n padding-right: 8px\n }\n\n .py-\\\\[11px\\\\] {\n padding-top: 11px;\n padding-bottom: 11px\n }\n\n .py-\\\\[5px\\\\] {\n padding-top: 5px;\n padding-bottom: 5px\n }\n\n .py-\\\\[7px\\\\] {\n padding-top: 7px;\n padding-bottom: 7px\n }\n\n .pl-\\\\[var\\\\(--w-prefix-width\\\\,_40px\\\\)\\\\] {\n padding-left: var(--w-prefix-width, 40px)\n }\n\n .invisible {\n visibility: hidden\n }\n\n .backface-hidden {\n backface-visibility: hidden\n }\n\n .break-words {\n overflow-wrap: break-word\n }\n\n .before\\\\:content-\\\\[\\\\\"\u00E2\u20AC\u201C\\\\\"\\\\]:before {\n content: \"\u00E2\u20AC\u201C\"\n }\n\n .before\\\\:content-\\\\[\\\\\"\\\\\"\\\\]:before {\n content: \"\"\n }\n\n .cursor-default {\n cursor: default\n }\n\n .cursor-pointer {\n cursor: pointer\n }\n\n .antialiased {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n font-smoothing: grayscale\n }\n\n .font-bold {\n font-weight: 700\n }\n\n .before\\\\:font-bold:before {\n font-weight: 700\n }\n\n .font-normal {\n font-weight: 400\n }\n\n .pointer-events-auto {\n pointer-events: auto\n }\n\n .pointer-events-none {\n pointer-events: none\n }\n\n .before\\\\:pointer-events-none:before {\n pointer-events: none\n }\n\n .pb-safe-\\\\[32\\\\] {\n padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px))\n }\n\n .sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0\n }\n\n .touch-pan-y {\n touch-action: pan-y\n }\n\n .select-none {\n -webkit-user-select: none;\n user-select: none\n }\n\n .translate-x-20 {\n --w-translate-x: 2rem;\n 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))\n }\n\n .translate-z-0 {\n --w-translate-z: 0rem;\n 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))\n }\n\n .-rotate-180, .part-\\\\[w-icon-chevron-down-16-part\\\\]\\\\:-rotate-180::part(w-icon-chevron-down-16-part) {\n --w-rotate-x: 0;\n --w-rotate-y: 0;\n --w-rotate-z: 0;\n --w-rotate: -180deg;\n 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))\n }\n\n .part-\\\\[w-icon-chevron-up-16-part\\\\]\\\\:rotate-180::part(w-icon-chevron-up-16-part), .rotate-180 {\n --w-rotate-x: 0;\n --w-rotate-y: 0;\n --w-rotate-z: 0;\n --w-rotate: 180deg;\n 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))\n }\n\n .rotate-90 {\n --w-rotate-x: 0;\n --w-rotate-y: 0;\n --w-rotate-z: 0;\n --w-rotate: 90deg;\n 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))\n }\n\n .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 {\n 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))\n }\n\n .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 {\n 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))\n }\n\n .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 {\n transition-property: transform;\n transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n transition-duration: .15s\n }\n\n .transition-300 {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n transition-duration: .3s\n }\n\n .transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n transition-duration: .15s\n }\n\n .transition-colors {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n transition-duration: .15s\n }\n\n .transition-shadow {\n transition-property: box-shadow;\n transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n transition-duration: .15s\n }\n\n .before\\\\:transition-all:before {\n transition-property: all;\n transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n transition-duration: .15s\n }\n\n .duration-300 {\n transition-duration: .3s\n }\n\n .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) {\n transition-timing-function: cubic-bezier(.4, 0, .2, 1)\n }\n\n .text-m {\n font-size: var(--w-font-size-m);\n line-height: var(--w-line-height-m)\n }\n\n .text-s {\n font-size: var(--w-font-size-s);\n line-height: var(--w-line-height-s)\n }\n\n .text-xs {\n font-size: var(--w-font-size-xs);\n line-height: var(--w-line-height-xs)\n }\n\n .leading-m {\n line-height: var(--w-line-height-m)\n }\n\n .before\\\\:leading-xs:before {\n line-height: var(--w-line-height-xs)\n }\n\n .leading-\\\\[24\\\\] {\n line-height: 2.4rem\n }\n\n @media (max-width: 479.9px) {\n .lt-sm\\\\:rounded-b-0 {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0\n }\n }\n @media (min-width: 480px) {\n .sm\\\\:border-b-0 {\n border-bottom-width: 0\n }\n\n .sm\\\\:rounded-8 {\n border-radius: 8px\n }\n\n .sm\\\\:rounded-b-8 {\n border-bottom-left-radius: 8px;\n border-bottom-right-radius: 8px\n }\n\n .sm\\\\:gap-16 {\n gap: 1.6rem\n }\n\n .sm\\\\:place-content-center {\n place-content: center\n }\n\n .sm\\\\:place-items-center {\n place-items: center\n }\n\n .sm\\\\:h-24 {\n height: 2.4rem\n }\n\n .sm\\\\:min-h-48 {\n min-height: 4.8rem\n }\n\n .sm\\\\:w-24 {\n width: 2.4rem\n }\n\n .sm\\\\:min-h-\\\\[32px\\\\] {\n min-height: 32px\n }\n\n .sm\\\\:min-h-\\\\[44px\\\\] {\n min-height: 44px\n }\n\n .sm\\\\:min-h-\\\\[45\\\\] {\n min-height: 4.5rem\n }\n\n .sm\\\\:min-w-\\\\[32px\\\\] {\n min-width: 32px\n }\n\n .sm\\\\:min-w-\\\\[44px\\\\] {\n min-width: 44px\n }\n\n .sm\\\\:mx-0 {\n margin-left: 0rem;\n margin-right: 0rem\n }\n\n .sm\\\\:mx-16 {\n margin-left: 1.6rem;\n margin-right: 1.6rem\n }\n\n .sm\\\\:-ml-12 {\n margin-left: -1.2rem\n }\n\n .sm\\\\:-mr-12 {\n margin-right: -1.2rem\n }\n\n .sm\\\\:-mt-8 {\n margin-top: -.8rem\n }\n\n .sm\\\\:px-32 {\n padding-left: 3.2rem;\n padding-right: 3.2rem\n }\n\n .sm\\\\:py-0 {\n padding-top: 0rem;\n padding-bottom: 0rem\n }\n\n .sm\\\\:pb-32 {\n padding-bottom: 3.2rem\n }\n\n .sm\\\\:pt-24 {\n padding-top: 2.4rem\n }\n\n .sm\\\\:pt-32 {\n padding-top: 3.2rem\n }\n }\n @media (min-width: 768px) {\n .md\\\\:block {\n display: block\n }\n\n .md\\\\:hidden {\n display: none\n }\n }\n `;\n", "import { css } from 'lit'; export const styles = css`*,: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}.focus\\\\:\\\\[--w-outline-offset\\\\:-2px\\\\]:focus{--w-outline-offset:-2px}.bg-transparent{background-color:#0000}.rounded-4{border-radius:4px}.block{display:block}.flex{display:flex}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.justify-center{justify-content:center}.absolute{position:absolute}.relative{position:relative}.static{position:static}.s-text{color:var(--w-s-color-text)}.w-40{width:4rem}.w-max{width:max-content}.pb-0{padding-bottom:0}.pl-12{padding-left:1.2rem}.pr-12{padding-right:1.2rem}.cursor-default{cursor:default}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:grayscale}.font-bold{font-weight:700}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}`;\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/search/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/search/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/search/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/search/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/search/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconSearch16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Magnifying glass`, id: 'icon.title.search', comment: 'Title for search icon' });\n \n return html`<svg xmlns=\"http://www.w3.org/2000/svg\"width=\"16\"height=\"16\"fill=\"none\"viewBox=\"0 0 16 16\" part=\"w-icon-search-16-part\">${unsafeStatic(`<title>${title}</title>`)}<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M8.905 12.102A6.042 6.042 0 1 0 4.18.981a6.042 6.042 0 0 0 4.726 11.121Zm1.909-1.289L15.5 15.5\"></path></svg>`; }\n}\nif (!customElements.get('w-icon-search-16')) {\n customElements.define('w-icon-search-16', IconSearch16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.search\\\":[\\\"Forst\u00F8rrelsesglass\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.search\\\":[\\\"Magnifying glass\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.search\\\":[\\\"Suurennuslasi\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.search\\\":[\\\"Forst\u00F8rrelsesglas\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.search\\\":[\\\"F\u00F6rstoringsglas\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "import { unraw } from 'unraw';\nimport { compileMessage } from '@lingui/message-utils/compileMessage';\n\nconst isString = (s) => typeof s === \"string\";\nconst isFunction = (f) => typeof f === \"function\";\n\nconst cache = /* @__PURE__ */ new Map();\nconst defaultLocale = \"en\";\nfunction normalizeLocales(locales) {\n const out = Array.isArray(locales) ? locales : [locales];\n return [...out, defaultLocale];\n}\nfunction date(locales, value, format) {\n const _locales = normalizeLocales(locales);\n if (!format) {\n format = \"default\";\n }\n let o;\n if (typeof format === \"string\") {\n o = {\n day: \"numeric\",\n month: \"short\",\n year: \"numeric\"\n };\n switch (format) {\n case \"full\":\n o.weekday = \"long\";\n case \"long\":\n o.month = \"long\";\n break;\n case \"short\":\n o.month = \"numeric\";\n break;\n }\n } else {\n o = format;\n }\n const formatter = getMemoized(\n () => cacheKey(\"date\", _locales, format),\n () => new Intl.DateTimeFormat(_locales, o)\n );\n return formatter.format(isString(value) ? new Date(value) : value);\n}\nfunction time(locales, value, format) {\n let o;\n if (!format) {\n format = \"default\";\n }\n if (typeof format === \"string\") {\n o = {\n second: \"numeric\",\n minute: \"numeric\",\n hour: \"numeric\"\n };\n switch (format) {\n case \"full\":\n case \"long\":\n o.timeZoneName = \"short\";\n break;\n case \"short\":\n delete o.second;\n }\n } else {\n o = format;\n }\n return date(locales, value, o);\n}\nfunction number(locales, value, format) {\n const _locales = normalizeLocales(locales);\n const formatter = getMemoized(\n () => cacheKey(\"number\", _locales, format),\n () => new Intl.NumberFormat(_locales, format)\n );\n return formatter.format(value);\n}\nfunction plural(locales, ordinal, value, { offset = 0, ...rules }) {\n const _locales = normalizeLocales(locales);\n const plurals = ordinal ? getMemoized(\n () => cacheKey(\"plural-ordinal\", _locales),\n () => new Intl.PluralRules(_locales, { type: \"ordinal\" })\n ) : getMemoized(\n () => cacheKey(\"plural-cardinal\", _locales),\n () => new Intl.PluralRules(_locales, { type: \"cardinal\" })\n );\n return rules[value] ?? rules[plurals.select(value - offset)] ?? rules.other;\n}\nfunction getMemoized(getKey, construct) {\n const key = getKey();\n let formatter = cache.get(key);\n if (!formatter) {\n formatter = construct();\n cache.set(key, formatter);\n }\n return formatter;\n}\nfunction cacheKey(type, locales, options) {\n const localeKey = locales.join(\"-\");\n return `${type}-${localeKey}-${JSON.stringify(options)}`;\n}\n\nconst formats = {\n __proto__: null,\n date: date,\n defaultLocale: defaultLocale,\n number: number,\n plural: plural,\n time: time\n};\n\nconst UNICODE_REGEX = /\\\\u[a-fA-F0-9]{4}|\\\\x[a-fA-F0-9]{2}/;\nconst OCTOTHORPE_PH = \"%__lingui_octothorpe__%\";\nconst getDefaultFormats = (locale, passedLocales, formats = {}) => {\n const locales = passedLocales || locale;\n const style = (format) => {\n if (typeof format === \"object\")\n return format;\n return formats[format];\n };\n const replaceOctothorpe = (value, message) => {\n const numberFormat = Object.keys(formats).length ? style(\"number\") : void 0;\n const valueStr = number(locales, value, numberFormat);\n return message.replace(new RegExp(OCTOTHORPE_PH, \"g\"), valueStr);\n };\n return {\n plural: (value, cases) => {\n const { offset = 0 } = cases;\n const message = plural(locales, false, value, cases);\n return replaceOctothorpe(value - offset, message);\n },\n selectordinal: (value, cases) => {\n const { offset = 0 } = cases;\n const message = plural(locales, true, value, cases);\n return replaceOctothorpe(value - offset, message);\n },\n select: selectFormatter,\n number: (value, format) => number(\n locales,\n value,\n style(format) || { style: format }\n ),\n date: (value, format) => date(locales, value, style(format) || format),\n time: (value, format) => time(locales, value, style(format) || format)\n };\n};\nconst selectFormatter = (value, rules) => rules[value] ?? rules.other;\nfunction interpolate(translation, locale, locales) {\n return (values = {}, formats) => {\n const formatters = getDefaultFormats(locale, locales, formats);\n const formatMessage = (tokens, replaceOctothorpe = false) => {\n if (!Array.isArray(tokens))\n return tokens;\n return tokens.reduce((message, token) => {\n if (token === \"#\" && replaceOctothorpe) {\n return message + OCTOTHORPE_PH;\n }\n if (isString(token)) {\n return message + token;\n }\n const [name, type, format] = token;\n let interpolatedFormat = {};\n if (type === \"plural\" || type === \"selectordinal\" || type === \"select\") {\n Object.entries(format).forEach(\n ([key, value2]) => {\n interpolatedFormat[key] = formatMessage(\n value2,\n type === \"plural\" || type === \"selectordinal\"\n );\n }\n );\n } else {\n interpolatedFormat = format;\n }\n let value;\n if (type) {\n const formatter = formatters[type];\n value = formatter(values[name], interpolatedFormat);\n } else {\n value = values[name];\n }\n if (value == null) {\n return message;\n }\n return message + value;\n }, \"\");\n };\n const result = formatMessage(translation);\n if (isString(result) && UNICODE_REGEX.test(result)) {\n return unraw(result);\n }\n if (isString(result))\n return result;\n return result ? String(result) : \"\";\n };\n}\n\nvar __defProp$1 = Object.defineProperty;\nvar __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __publicField$1 = (obj, key, value) => {\n __defNormalProp$1(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n return value;\n};\nclass EventEmitter {\n constructor() {\n __publicField$1(this, \"_events\", {});\n }\n on(event, listener) {\n var _a;\n (_a = this._events)[event] ?? (_a[event] = []);\n this._events[event].push(listener);\n return () => this.removeListener(event, listener);\n }\n removeListener(event, listener) {\n const maybeListeners = this._getListeners(event);\n if (!maybeListeners)\n return;\n const index = maybeListeners.indexOf(listener);\n if (~index)\n maybeListeners.splice(index, 1);\n }\n emit(event, ...args) {\n const maybeListeners = this._getListeners(event);\n if (!maybeListeners)\n return;\n maybeListeners.map((listener) => listener.apply(this, args));\n }\n _getListeners(event) {\n const maybeListeners = this._events[event];\n return Array.isArray(maybeListeners) ? maybeListeners : false;\n }\n}\n\nvar __defProp = Object.defineProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __publicField = (obj, key, value) => {\n __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n return value;\n};\nclass I18n extends EventEmitter {\n constructor(params) {\n super();\n __publicField(this, \"_locale\", \"\");\n __publicField(this, \"_locales\");\n __publicField(this, \"_localeData\", {});\n __publicField(this, \"_messages\", {});\n __publicField(this, \"_missing\");\n __publicField(this, \"_messageCompiler\");\n /**\n * Alias for {@see I18n._}\n */\n __publicField(this, \"t\", this._.bind(this));\n if (process.env.NODE_ENV !== \"production\") {\n this.setMessagesCompiler(compileMessage);\n }\n if (params.missing != null)\n this._missing = params.missing;\n if (params.messages != null)\n this.load(params.messages);\n if (params.localeData != null)\n this.loadLocaleData(params.localeData);\n if (typeof params.locale === \"string\" || params.locales) {\n this.activate(params.locale ?? defaultLocale, params.locales);\n }\n }\n get locale() {\n return this._locale;\n }\n get locales() {\n return this._locales;\n }\n get messages() {\n return this._messages[this._locale] ?? {};\n }\n /**\n * @deprecated this has no effect. Please remove this from the code. Deprecated in v4\n */\n get localeData() {\n return this._localeData[this._locale] ?? {};\n }\n _loadLocaleData(locale, localeData) {\n const maybeLocaleData = this._localeData[locale];\n if (!maybeLocaleData) {\n this._localeData[locale] = localeData;\n } else {\n Object.assign(maybeLocaleData, localeData);\n }\n }\n /**\n * Registers a `MessageCompiler` to enable the use of uncompiled catalogs at runtime.\n *\n * In production builds, the `MessageCompiler` is typically excluded to reduce bundle size.\n * By default, message catalogs should be precompiled during the build process. However,\n * if you need to compile catalogs at runtime, you can use this method to set a message compiler.\n *\n * Example usage:\n *\n * ```ts\n * import { compileMessage } from \"@lingui/message-utils/compileMessage\";\n *\n * i18n.setMessagesCompiler(compileMessage);\n * ```\n */\n setMessagesCompiler(compiler) {\n this._messageCompiler = compiler;\n return this;\n }\n /**\n * @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Deprecated in v4\n */\n loadLocaleData(localeOrAllData, localeData) {\n if (typeof localeOrAllData === \"string\") {\n this._loadLocaleData(localeOrAllData, localeData);\n } else {\n Object.keys(localeOrAllData).forEach(\n (locale) => this._loadLocaleData(locale, localeOrAllData[locale])\n );\n }\n this.emit(\"change\");\n }\n _load(locale, messages) {\n const maybeMessages = this._messages[locale];\n if (!maybeMessages) {\n this._messages[locale] = messages;\n } else {\n Object.assign(maybeMessages, messages);\n }\n }\n load(localeOrMessages, messages) {\n if (typeof localeOrMessages == \"string\" && typeof messages === \"object\") {\n this._load(localeOrMessages, messages);\n } else {\n Object.entries(localeOrMessages).forEach(\n ([locale, messages2]) => this._load(locale, messages2)\n );\n }\n this.emit(\"change\");\n }\n /**\n * @param options {@link LoadAndActivateOptions}\n */\n loadAndActivate({ locale, locales, messages }) {\n this._locale = locale;\n this._locales = locales || void 0;\n this._messages[this._locale] = messages;\n this.emit(\"change\");\n }\n activate(locale, locales) {\n if (process.env.NODE_ENV !== \"production\") {\n if (!this._messages[locale]) {\n console.warn(`Messages for locale \"${locale}\" not loaded.`);\n }\n }\n this._locale = locale;\n this._locales = locales;\n this.emit(\"change\");\n }\n _(id, values, options) {\n if (!this.locale) {\n throw new Error(\n \"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.\"\n );\n }\n let message = options?.message;\n if (!id) {\n id = \"\";\n }\n if (!isString(id)) {\n values = id.values || values;\n message = id.message;\n id = id.id;\n }\n const messageForId = this.messages[id];\n const messageMissing = messageForId === void 0;\n const missing = this._missing;\n if (missing && messageMissing) {\n return isFunction(missing) ? missing(this._locale, id) : missing;\n }\n if (messageMissing) {\n this.emit(\"missing\", { id, locale: this._locale });\n }\n let translation = messageForId || message || id;\n if (isString(translation)) {\n if (this._messageCompiler) {\n translation = this._messageCompiler(translation);\n } else {\n console.warn(`Uncompiled message detected! Message:\n\n> ${translation}\n\nThat means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.\nICU features such as interpolation and plurals will not work properly for that message. \n\nPlease compile your catalog first. \n`);\n }\n }\n if (isString(translation) && UNICODE_REGEX.test(translation))\n return JSON.parse(`\"${translation}\"`);\n if (isString(translation))\n return translation;\n return interpolate(\n translation,\n this._locale,\n this._locales\n )(values, options?.formats);\n }\n date(value, format) {\n return date(this._locales || this._locale, value, format);\n }\n number(value, format) {\n return number(this._locales || this._locale, value, format);\n }\n}\nfunction setupI18n(params = {}) {\n return new I18n(params);\n}\n\nconst i18n = setupI18n();\n\nexport { I18n, formats, i18n, setupI18n };\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/close/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/close/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/close/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/close/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/close/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconClose16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Cross`, id: 'icon.title.close', comment: 'Title for close icon' });\n \n return html`<svg xmlns=\"http://www.w3.org/2000/svg\"width=\"16\"height=\"16\"fill=\"none\"viewBox=\"0 0 16 16\" part=\"w-icon-close-16-part\">${unsafeStatic(`<title>${title}</title>`)}<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"m12.5 3.5-9 9m0-9 9 9\"></path></svg>`; }\n}\nif (!customElements.get('w-icon-close-16')) {\n customElements.define('w-icon-close-16', IconClose16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.close\\\":[\\\"Kryss\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.close\\\":[\\\"Cross\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.close\\\":[\\\"Rasti\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.close\\\":[\\\"Kryds\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.close\\\":[\\\"Kryss\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "// @warp-css;\n\nimport { css, html, LitElement } from 'lit';\n\nimport { classNames } from '@chbphone55/classnames';\nimport { property } from 'lit/decorators.js';\n\nimport '@warp-ds/icons/elements/info-16';\nimport '@warp-ds/icons/elements/warning-16';\nimport '@warp-ds/icons/elements/error-16';\nimport '@warp-ds/icons/elements/success-16';\nimport { reset } from '../styles.js';\n\nimport { styles } from './styles.js';\n\nconst ccAlert = {\n wrapper: 'flex p-16 border border-l-4 rounded-4 s-text',\n willChangeHeight: 'will-change-height',\n textWrapper: 'last-child:mb-0 text-s',\n title: 'text-s',\n icon: 'w-16 mr-8 min-w-16',\n negative: 's-border-negative-subtle s-border-l-negative s-bg-negative-subtle',\n negativeIcon: 's-icon-negative',\n positive: 's-border-positive-subtle s-border-l-positive s-bg-positive-subtle',\n positiveIcon: 's-icon-positive',\n warning: 's-border-warning-subtle s-border-l-warning s-bg-warning-subtle',\n warningIcon: 's-icon-warning',\n info: 's-border-info-subtle s-border-l-info s-bg-info-subtle',\n infoIcon: 's-icon-info',\n};\n\ntype AlertVariants = 'negative' | 'positive' | 'warning' | 'info';\n\nconst alertVariants = {\n negative: 'negative',\n positive: 'positive',\n warning: 'warning',\n info: 'info',\n};\n\n/**\n * Alert is an inline component used for displaying different types of messages.\n *\n * For accessibility reasons, alert should appear close to the element that triggered it.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/feedback-alert--docs)\n */\nclass WarpAlert extends LitElement {\n @property({ reflect: true })\n variant: AlertVariants = 'info';\n\n @property({ type: Boolean, reflect: true })\n show: boolean = true;\n\n @property({ reflect: true })\n role: string = 'alert';\n\n constructor() {\n super();\n this.show = false;\n this.role = 'alert';\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (!this.variant || !alertVariants[this.variant]) {\n throw new Error(`Invalid 'variant' attribute. Set its value to one of the following:\\nnegative, positive, warning, info.`);\n }\n }\n\n /** @internal */\n get _wrapperClasses() {\n return classNames([ccAlert.wrapper, ccAlert[this.variant]]);\n }\n\n /** @internal */\n get _iconClasses() {\n const activeIconClassNames = ccAlert[`${this.variant}Icon`];\n\n return classNames([ccAlert.icon, activeIconClassNames]);\n }\n\n // Slotted elements remain in lightDOM which allows for control of their style outside of shadowDOM.\n // ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,\n // so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.\n // https://stackoverflow.com/a/61631668\n static styles = [\n reset,\n styles,\n css`\n :host {\n display: block;\n }\n\n ::slotted(:first-child) {\n margin-top: 0px;\n }\n\n ::slotted(:last-child) {\n margin-bottom: 0px !important;\n }\n `,\n ];\n\n /** @internal */\n get _icon() {\n if (this.variant === alertVariants.info) {\n return html` <w-icon-info-16></w-icon-info-16>`;\n }\n if (this.variant === alertVariants.warning) {\n return html` <w-icon-warning-16></w-icon-warning-16>`;\n }\n if (this.variant === alertVariants.negative) {\n return html` <w-icon-error-16></w-icon-error-16>`;\n }\n if (this.variant === alertVariants.positive) {\n return html` <w-icon-success-16></w-icon-success-16>`;\n } else return '';\n }\n\n render() {\n return html`\n <w-expand-transition ?show=${this.show}>\n <div role=${this.role} class=${this._wrapperClasses}>\n <div class=${this._iconClasses}>${this._icon}</div>\n <div class=${ccAlert.textWrapper}>\n <slot></slot>\n </div>\n </div>\n </w-expand-transition>\n `;\n }\n}\n\nif (!customElements.get('w-alert')) {\n customElements.define('w-alert', WarpAlert);\n}\n\nexport { WarpAlert };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-alert': WarpAlert;\n }\n}\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/info/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/info/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/info/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/info/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/info/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconInfo16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Information circle`, id: 'icon.title.info', comment: 'Title for info icon' });\n \n 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>`; }\n}\nif (!customElements.get('w-icon-info-16')) {\n customElements.define('w-icon-info-16', IconInfo16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.info\\\":[\\\"Informasjonssirkel\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.info\\\":[\\\"Information circle\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.info\\\":[\\\"Ympyr\u00E4, jonka sis\u00E4ll\u00E4 on i-kirjain\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.info\\\":[\\\"Informationscirkel\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.info\\\":[\\\"Informationscirkel\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/warning/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/warning/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/warning/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/warning/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/warning/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconWarning16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Warning triangle with exclamation point`, id: 'icon.title.warning', comment: 'Title for warning icon' });\n \n return html`<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\">${unsafeStatic(`<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>`; }\n}\nif (!customElements.get('w-icon-warning-16')) {\n customElements.define('w-icon-warning-16', IconWarning16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.warning\\\":[\\\"Varseltrekant med utropstegn\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.warning\\\":[\\\"Warning triangle with exclamation point\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.warning\\\":[\\\"Varoituskolmio, jonka sis\u00E4ll\u00E4 on huutomerkki\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.warning\\\":[\\\"Advarselstrekant med et udr\u00E5bstegn\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.warning\\\":[\\\"Varningstriangel med utropstecken\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/error/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/error/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/error/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/error/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/error/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconError16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Octagon with exclamation point`, id: 'icon.title.error', comment: 'Title for error icon' });\n \n return html`<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\">${unsafeStatic(`<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>`; }\n}\nif (!customElements.get('w-icon-error-16')) {\n customElements.define('w-icon-error-16', IconError16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.error\\\":[\\\"\u00C5ttekant med utropstegn\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.error\\\":[\\\"Octagon with exclamation point\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.error\\\":[\\\"Kahdeksankulmio, jonka sis\u00E4ll\u00E4 on huutomerkki\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.error\\\":[\\\"Ottekant med et udr\u00E5bstegn\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.error\\\":[\\\"Oktagon med utropstecken\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/success/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/success/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/success/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/success/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/success/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconSuccess16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Circle with checkmark`, id: 'icon.title.success', comment: 'Title for success icon' });\n \n return html`<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\">${unsafeStatic(`<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>`; }\n}\nif (!customElements.get('w-icon-success-16')) {\n customElements.define('w-icon-success-16', IconSuccess16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.success\\\":[\\\"Sirkel med sjekkmerke\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.success\\\":[\\\"Circle with checkmark\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.success\\\":[\\\"Ympyr\u00E4, jonka sis\u00E4ll\u00E4 on valintamerkki\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.success\\\":[\\\"Cirkel med et flueben\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.success\\\":[\\\"Cirkel med bock\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "import { css } from 'lit'; export const styles = css`*,: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)}`;", "import { css, html, nothing } from 'lit';\n\nimport { classNames } from '@chbphone55/classnames';\nimport { i18n } from '@lingui/core';\nimport { opposites, directions, arrowDirectionClassname, useRecompute as recompute } from '@warp-ds/core/attention';\nimport { attention as ccAttention } from '@warp-ds/css/component-classes';\nimport WarpElement from '@warp-ds/elements-core';\nimport { ifDefined } from 'lit/directives/if-defined.js';\n\nimport { activateI18n } from '../i18n';\nimport { kebabCaseAttributes, generateRandomId } from '../utils/index.js';\n\nimport { messages as daMessages } from './locales/da/messages.mjs';\nimport { messages as enMessages } from './locales/en/messages.mjs';\nimport { messages as fiMessages } from './locales/fi/messages.mjs';\nimport { messages as nbMessages } from './locales/nb/messages.mjs';\nimport { messages as svMessages } from './locales/sv/messages.mjs';\n\nimport '@warp-ds/icons/elements/close-16';\n\nclass WarpAttention extends kebabCaseAttributes(WarpElement) {\n static properties = {\n // Whether Attention element should be visible.\n show: { type: Boolean, reflect: true },\n // Placement according to the target element\n // Arrow would be on the opposite side of this position\n placement: { type: String, reflect: true },\n // Whether Attention element is rendered as a tooltip\n tooltip: { type: Boolean, reflect: true },\n // Whether Attention element is rendered as an inline callout\n callout: { type: Boolean, reflect: true },\n // Whether Attention element is rendered as a popover\n popover: { type: Boolean, reflect: true },\n // Whether Attention element is rendered as a highlight\n highlight: { type: Boolean, reflect: true },\n // Render Attention element with a close button\n canClose: { type: Boolean, reflect: true },\n // Render Attention element without an arrow\n noArrow: { type: Boolean, reflect: true },\n // Distance from which to offset the attentionEl from the targetEl vertically\n distance: { type: Number, reflect: true },\n // Distance from which to offset the attentionEl along its targetEl horizontally\n skidding: { type: Number, reflect: true },\n // Whether Attention element should flip its placement in order to keep it in view\n flip: { type: Boolean, reflect: true },\n // Whether Attention element should ignore cross axis overflow when flip is enabled\n crossAxis: { type: Boolean, reflect: true },\n // Choose which preferred placements the Attention element should flip to\n fallbackPlacements: { type: Array, reflect: true },\n };\n\n static styles = [\n WarpElement.styles,\n css`\n #attention {\n position: absolute;\n z-index: 50;\n visibility: var(--attention-visibility);\n display: var(--attention-display);\n }\n\n :host([popover]:not(:popover-open):not(dialog[open])) {\n display: contents;\n }\n `,\n ];\n\n constructor() {\n super();\n activateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n this.handleDone = this.handleDone.bind(this);\n\n this.show = false;\n this.placement = 'bottom';\n this.tooltip = false;\n this.callout = false;\n this.popover = false;\n this.highlight = false;\n this.canClose = false;\n this.noArrow = false;\n this.distance = 8;\n this.skidding = 0;\n this.flip = false;\n this.crossAxis = false;\n this._initialPlacement = this.placement;\n this._actualDirection = this.placement;\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (this.placement && !Object.keys(opposites).includes(this.placement)) {\n throw new Error(`Invalid \"placement\" attribute. Set its value to one of the following:\\n${JSON.stringify(Object.keys(opposites))}`);\n }\n\n if (this.fallbackPlacements && !this.fallbackPlacements.every((fallbackPlacement) => directions.includes(fallbackPlacement))) {\n throw new Error(\n `Invalid \"fallbackPlacements\" attribute. Set its value to an array with one or more of the following:\\n${JSON.stringify(directions)}`,\n );\n }\n\n // Fix FOUC effect issues\n setTimeout(() => {\n this.requestUpdate();\n this.handleDone(); // Run handleDone initially, to compute correct arrow position etc. directly.\n }, 0);\n\n if (!this.callout) {\n window.addEventListener('click', this.handleDone);\n window.addEventListener('scroll', this.handleDone);\n window.addEventListener('resize', this.handleDone);\n window.addEventListener('touch', this.handleDone);\n }\n\n if (this.tooltip) {\n window.addEventListener('mouseover', this.handleDone);\n window.addEventListener('mouseout', this.handleDone);\n }\n }\n\n disconnectedCallback() {\n window.removeEventListener('click', this.handleDone);\n window.removeEventListener('scroll', this.handleDone);\n window.removeEventListener('resize', this.handleDone);\n window.removeEventListener('touch', this.handleDone);\n window.removeEventListener('mouseover', this.handleDone);\n window.removeEventListener('mouseout', this.handleDone);\n\n super.disconnectedCallback();\n }\n\n handleDone() {\n window.requestAnimationFrame(() => {\n if (this.show && this._targetEl && this._attentionEl) {\n recompute(this.attentionState).then((state) => {\n this._actualDirection = state?.actualDirection;\n });\n } else {\n this._actualDirection = this._initialPlacement;\n }\n });\n }\n\n /** @internal */\n get _actualDirection() {\n return this.placement;\n }\n\n /** @internal */\n set _actualDirection(v) {\n this.placement = v;\n }\n\n /** @internal */\n get _arrowEl() {\n return this.renderRoot.querySelector('#arrow');\n }\n\n /** @internal */\n get _arrowDirection() {\n return opposites[this._actualDirection];\n }\n\n /** @internal */\n get _arrowClasses() {\n return classNames([\n ccAttention.arrowBase,\n this._activeVariantClasses.arrow,\n ccAttention[`arrowDirection${arrowDirectionClassname(this._arrowDirection)}`],\n ]);\n }\n\n /** @internal */\n get _arrowHtml() {\n return this.noArrow ? '' : html`<div id=\"arrow\" class=\"${this._arrowClasses}\"></div>`;\n }\n\n /** @internal */\n get _activeVariantClasses() {\n const variantProps = {\n callout: this.callout,\n popover: this.popover,\n tooltip: this.tooltip,\n highlight: this.highlight,\n };\n\n const activeVariant = Object.keys(variantProps).find((b) => !!variantProps[b]) || '';\n\n return {\n wrapper: ccAttention[activeVariant],\n arrow: ccAttention[`arrow${activeVariant.charAt(0).toUpperCase() + activeVariant.slice(1)}`],\n };\n }\n\n /** @internal */\n get _attentionEl() {\n return this.renderRoot.querySelector('#attention');\n }\n\n /** @internal */\n get _targetEl() {\n const targetSlot = this.renderRoot?.querySelector(\"slot[name='target']\");\n return targetSlot ? targetSlot.assignedNodes()[0] : null;\n }\n\n /** @internal */\n get _messageEl() {\n const messageSlot = this.renderRoot.querySelector(\"slot[name='message']\");\n return messageSlot ? messageSlot.assignedNodes()[0] : null;\n }\n\n /** @internal */\n get _wrapperClasses() {\n return classNames([ccAttention.base, this._activeVariantClasses.wrapper]);\n }\n\n /** @internal */\n get _ariaClose() {\n return i18n._({\n id: 'attention.aria.close',\n message: 'Close',\n comment: 'Aria label for the close button in attention',\n });\n }\n\n /** @internal */\n get _closeBtnHtml() {\n return html`\n <button aria-label=\"${this._ariaClose}\" @click=\"${this.close}\" @keydown=${this.keypressed} class=\"${ccAttention.closeBtn}\">\n <w-icon-close-16></w-icon-close-16>\n </button>\n `;\n }\n\n updated() {\n if (!this.callout) {\n this._attentionEl.style.setProperty('--attention-visibility', this.show ? '' : 'hidden');\n }\n\n if (!this.tooltip) {\n this._attentionEl.style.setProperty('--attention-display', this.show ? 'flex' : 'none');\n }\n\n this.attentionState = {\n isShowing: this.show,\n isCallout: this.callout,\n actualDirection: this._actualDirection,\n directionName: this.placement,\n arrowEl: this._arrowEl,\n attentionEl: this._attentionEl,\n targetEl: this._targetEl,\n noArrow: this.noArrow,\n distance: this.distance,\n skidding: this.skidding,\n flip: this.flip,\n crossAxis: this.crossAxis,\n fallbackPlacements: this.fallbackPlacements,\n };\n\n // We need to recompute here as well if this._actualDirection gets updated immediately when this.show is true (in this.handleDone()).\n // Otherwise this._arrowDirection will get this._initialPlacement's value and will only be updated on next click/scroll/resize\n recompute(this.attentionState);\n }\n\n pointingAtDirection() {\n switch (opposites[this._actualDirection]) {\n case 'top-start':\n case 'top':\n case 'top-end':\n return i18n._({\n id: 'attention.aria.pointingUp',\n message: 'pointing up',\n comment: 'Default screenreader message for top direction in the attention component',\n });\n case 'right-start':\n case 'right':\n case 'right-end':\n return i18n._({\n id: 'attention.aria.pointingRight',\n message: 'pointing right',\n comment: 'Default screenreader message for right direction in the attention component',\n });\n case 'bottom-start':\n case 'bottom':\n case 'bottom-end':\n return i18n._({\n id: 'attention.aria.pointingDown',\n message: 'pointing down',\n comment: 'Default screenreader message for bottom direction in the attention component',\n });\n case 'left-start':\n case 'left':\n case 'left-end':\n return i18n._({\n id: 'attention.aria.pointingLeft',\n message: 'pointing left',\n comment: 'Default screenreader message for left direction in the attention component',\n });\n default:\n return '';\n }\n }\n\n activeAttentionType() {\n switch (true) {\n case this.tooltip:\n return i18n._({\n id: 'attention.aria.tooltip',\n message: 'tooltip',\n comment: 'Default screenreader message for tooltip in the attention component',\n });\n case this.callout:\n return i18n._({\n id: 'attention.aria.callout',\n message: 'callout speech bubble',\n comment: 'Default screenreader message for callout speech bubble in the attention component',\n });\n case this.popover:\n return i18n._({\n id: 'attention.aria.popover',\n message: 'popover speech bubble',\n comment: 'Default screenreader message for popover speech bubble in the attention component',\n });\n case this.highlight:\n return i18n._({\n id: 'attention.aria.highlight',\n message: 'highlighted speech bubble',\n comment: 'Default screenreader message for highlighted speech bubble in the attention component',\n });\n default:\n return '';\n }\n }\n\n defaultAriaLabel() {\n return `${this.activeAttentionType()} ${!this.noArrow ? this.pointingAtDirection() : ''}`;\n }\n setAriaLabels() {\n if (this._targetEl && !this._targetEl.getAttribute('aria-details')) {\n const attentionMessageId = this._messageEl.id || (this._messageEl.id = generateRandomId());\n this._targetEl.setAttribute('aria-details', attentionMessageId);\n }\n }\n\n firstUpdated() {\n this._initialPlacement = this.placement;\n this.setAriaLabels();\n\n // Attention of \"callout\" type should always be used inline\n if (this.callout) {\n this._attentionEl.style.position = 'relative';\n }\n }\n\n close() {\n const event = new CustomEvent('close', {\n bubbles: true,\n composed: true,\n });\n this.updateComplete.then(() => this.dispatchEvent(event));\n }\n\n keypressed(e) {\n if (!this.canClose) return;\n if (e.key === 'Escape') {\n e.preventDefault();\n this.close();\n }\n }\n\n render() {\n if (!this.callout && this._targetEl === undefined) return html``;\n return html`\n <div class=${ifDefined(this.className ? this.className : undefined)}>\n ${this.placement === 'right-start' ||\n this.placement === 'right' ||\n this.placement === 'right-end' ||\n this.placement === 'bottom-start' ||\n this.placement === 'bottom' ||\n this.placement === 'bottom-end' // Attention's and its arrow's visual position should be reflected in the DOM\n ? html`\n <slot name=\"target\"></slot>\n\n <div id=\"attention\" class=\"${this._wrapperClasses}\">\n <div role=\"${this.tooltip ? 'tooltip' : 'img'}\" aria-label=\"${this.defaultAriaLabel()}\">${this._arrowHtml}</div>\n <slot name=\"message\"></slot>\n ${this.canClose ? this._closeBtnHtml : nothing}\n </div>\n `\n : html`\n <div id=\"attention\" class=\"${this._wrapperClasses}\">\n <slot name=\"message\"></slot>\n <div role=\"${this.tooltip ? 'tooltip' : 'img'}\" aria-label=\"${this.defaultAriaLabel()}\">${this._arrowHtml}</div>\n ${this.canClose ? this._closeBtnHtml : nothing}\n </div>\n <slot name=\"target\"></slot>\n `}\n </div>\n `;\n }\n}\n\nif (!customElements.get('w-attention')) {\n customElements.define('w-attention', WarpAttention);\n}\n\nexport { WarpAttention };\n", "/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n x: v,\n y: v\n});\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nconst oppositeAlignmentMap = {\n start: 'end',\n end: 'start'\n};\nfunction clamp(start, value, end) {\n return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\nconst yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);\nfunction getSideAxis(placement) {\n return yAxisSides.has(getSide(placement)) ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const length = getAxisLength(alignmentAxis);\n let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);\n}\nconst lrPlacement = ['left', 'right'];\nconst rlPlacement = ['right', 'left'];\nconst tbPlacement = ['top', 'bottom'];\nconst btPlacement = ['bottom', 'top'];\nfunction getSideList(side, isStart, rtl) {\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rlPlacement : lrPlacement;\n return isStart ? lrPlacement : rlPlacement;\n case 'left':\n case 'right':\n return isStart ? tbPlacement : btPlacement;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\nfunction getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);\n}\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\nfunction getPaddingObject(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\nfunction rectToClientRect(rect) {\n const {\n x,\n y,\n width,\n height\n } = rect;\n return {\n width,\n height,\n top: y,\n left: x,\n right: x + width,\n bottom: y + height,\n x,\n y\n };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n", "import { getSideAxis, getAlignmentAxis, getAxisLength, getSide, getAlignment, evaluate, getPaddingObject, rectToClientRect, min, clamp, placements, getAlignmentSides, getOppositeAlignmentPlacement, getOppositePlacement, getExpandedPlacements, getOppositeAxisPlacements, sides, max, getOppositeAxis } from '@floating-ui/utils';\nexport { rectToClientRect } from '@floating-ui/utils';\n\nfunction computeCoordsFromPlacement(_ref, placement, rtl) {\n let {\n reference,\n floating\n } = _ref;\n const sideAxis = getSideAxis(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const alignLength = getAxisLength(alignmentAxis);\n const side = getSide(placement);\n const isVertical = sideAxis === 'y';\n const commonX = reference.x + reference.width / 2 - floating.width / 2;\n const commonY = reference.y + reference.height / 2 - floating.height / 2;\n const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;\n let coords;\n switch (side) {\n case 'top':\n coords = {\n x: commonX,\n y: reference.y - floating.height\n };\n break;\n case 'bottom':\n coords = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n case 'right':\n coords = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n case 'left':\n coords = {\n x: reference.x - floating.width,\n y: commonY\n };\n break;\n default:\n coords = {\n x: reference.x,\n y: reference.y\n };\n }\n switch (getAlignment(placement)) {\n case 'start':\n coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);\n break;\n case 'end':\n coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);\n break;\n }\n return coords;\n}\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n *\n * This export does not have any `platform` interface logic. You will need to\n * write one for the platform you are using Floating UI with.\n */\nconst computePosition = async (reference, floating, config) => {\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform\n } = config;\n const validMiddleware = middleware.filter(Boolean);\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));\n let rects = await platform.getElementRects({\n reference,\n floating,\n strategy\n });\n let {\n x,\n y\n } = computeCoordsFromPlacement(rects, placement, rtl);\n let statefulPlacement = placement;\n let middlewareData = {};\n let resetCount = 0;\n for (let i = 0; i < validMiddleware.length; i++) {\n const {\n name,\n fn\n } = validMiddleware[i];\n const {\n x: nextX,\n y: nextY,\n data,\n reset\n } = await fn({\n x,\n y,\n initialPlacement: placement,\n placement: statefulPlacement,\n strategy,\n middlewareData,\n rects,\n platform,\n elements: {\n reference,\n floating\n }\n });\n x = nextX != null ? nextX : x;\n y = nextY != null ? nextY : y;\n middlewareData = {\n ...middlewareData,\n [name]: {\n ...middlewareData[name],\n ...data\n }\n };\n if (reset && resetCount <= 50) {\n resetCount++;\n if (typeof reset === 'object') {\n if (reset.placement) {\n statefulPlacement = reset.placement;\n }\n if (reset.rects) {\n rects = reset.rects === true ? await platform.getElementRects({\n reference,\n floating,\n strategy\n }) : reset.rects;\n }\n ({\n x,\n y\n } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));\n }\n i = -1;\n }\n }\n return {\n x,\n y,\n placement: statefulPlacement,\n strategy,\n middlewareData\n };\n};\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nasync function detectOverflow(state, options) {\n var _await$platform$isEle;\n if (options === void 0) {\n options = {};\n }\n const {\n x,\n y,\n platform,\n rects,\n elements,\n strategy\n } = state;\n const {\n boundary = 'clippingAncestors',\n rootBoundary = 'viewport',\n elementContext = 'floating',\n altBoundary = false,\n padding = 0\n } = evaluate(options, state);\n const paddingObject = getPaddingObject(padding);\n const altContext = elementContext === 'floating' ? 'reference' : 'floating';\n const element = elements[altBoundary ? altContext : elementContext];\n const clippingClientRect = rectToClientRect(await platform.getClippingRect({\n element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),\n boundary,\n rootBoundary,\n strategy\n }));\n const rect = elementContext === 'floating' ? {\n x,\n y,\n width: rects.floating.width,\n height: rects.floating.height\n } : rects.reference;\n const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));\n const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {\n x: 1,\n y: 1\n } : {\n x: 1,\n y: 1\n };\n const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({\n elements,\n rect,\n offsetParent,\n strategy\n }) : rect);\n return {\n top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,\n bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,\n left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,\n right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x\n };\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = options => ({\n name: 'arrow',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n platform,\n elements,\n middlewareData\n } = state;\n // Since `element` is required, we don't Partial<> the type.\n const {\n element,\n padding = 0\n } = evaluate(options, state) || {};\n if (element == null) {\n return {};\n }\n const paddingObject = getPaddingObject(padding);\n const coords = {\n x,\n y\n };\n const axis = getAlignmentAxis(placement);\n const length = getAxisLength(axis);\n const arrowDimensions = await platform.getDimensions(element);\n const isYAxis = axis === 'y';\n const minProp = isYAxis ? 'top' : 'left';\n const maxProp = isYAxis ? 'bottom' : 'right';\n const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';\n const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];\n const startDiff = coords[axis] - rects.reference[axis];\n const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));\n let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;\n\n // DOM platform can return `window` as the `offsetParent`.\n if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {\n clientSize = elements.floating[clientProp] || rects.floating[length];\n }\n const centerToReference = endDiff / 2 - startDiff / 2;\n\n // If the padding is large enough that it causes the arrow to no longer be\n // centered, modify the padding so that it is centered.\n const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;\n const minPadding = min(paddingObject[minProp], largestPossiblePadding);\n const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);\n\n // Make sure the arrow doesn't overflow the floating element if the center\n // point is outside the floating element's bounds.\n const min$1 = minPadding;\n const max = clientSize - arrowDimensions[length] - maxPadding;\n const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;\n const offset = clamp(min$1, center, max);\n\n // If the reference is small enough that the arrow's padding causes it to\n // to point to nothing for an aligned placement, adjust the offset of the\n // floating element itself. To ensure `shift()` continues to take action,\n // a single reset is performed when this is true.\n const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;\n const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;\n return {\n [axis]: coords[axis] + alignmentOffset,\n data: {\n [axis]: offset,\n centerOffset: center - offset - alignmentOffset,\n ...(shouldAddOffset && {\n alignmentOffset\n })\n },\n reset: shouldAddOffset\n };\n }\n});\n\nfunction getPlacementList(alignment, autoAlignment, allowedPlacements) {\n const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);\n return allowedPlacementsSortedByAlignment.filter(placement => {\n if (alignment) {\n return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);\n }\n return true;\n });\n}\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'autoPlacement',\n options,\n async fn(state) {\n var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;\n const {\n rects,\n middlewareData,\n placement,\n platform,\n elements\n } = state;\n const {\n crossAxis = false,\n alignment,\n allowedPlacements = placements,\n autoAlignment = true,\n ...detectOverflowOptions\n } = evaluate(options, state);\n const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;\n const currentPlacement = placements$1[currentIndex];\n if (currentPlacement == null) {\n return {};\n }\n const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));\n\n // Make `computeCoords` start from the right place.\n if (placement !== currentPlacement) {\n return {\n reset: {\n placement: placements$1[0]\n }\n };\n }\n const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];\n const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {\n placement: currentPlacement,\n overflows: currentOverflows\n }];\n const nextPlacement = placements$1[currentIndex + 1];\n\n // There are more placements to check.\n if (nextPlacement) {\n return {\n data: {\n index: currentIndex + 1,\n overflows: allOverflows\n },\n reset: {\n placement: nextPlacement\n }\n };\n }\n const placementsSortedByMostSpace = allOverflows.map(d => {\n const alignment = getAlignment(d.placement);\n return [d.placement, alignment && crossAxis ?\n // Check along the mainAxis and main crossAxis side.\n d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :\n // Check only the mainAxis.\n d.overflows[0], d.overflows];\n }).sort((a, b) => a[1] - b[1]);\n const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,\n // Aligned placements should not check their opposite crossAxis\n // side.\n getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));\n const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];\n if (resetPlacement !== placement) {\n return {\n data: {\n index: currentIndex + 1,\n overflows: allOverflows\n },\n reset: {\n placement: resetPlacement\n }\n };\n }\n return {};\n }\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'flip',\n options,\n async fn(state) {\n var _middlewareData$arrow, _middlewareData$flip;\n const {\n placement,\n middlewareData,\n rects,\n initialPlacement,\n platform,\n elements\n } = state;\n const {\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = true,\n fallbackPlacements: specifiedFallbackPlacements,\n fallbackStrategy = 'bestFit',\n fallbackAxisSideDirection = 'none',\n flipAlignment = true,\n ...detectOverflowOptions\n } = evaluate(options, state);\n\n // If a reset by the arrow was caused due to an alignment offset being\n // added, we should skip any logic now since `flip()` has already done its\n // work.\n // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643\n if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n return {};\n }\n const side = getSide(placement);\n const initialSideAxis = getSideAxis(initialPlacement);\n const isBasePlacement = getSide(initialPlacement) === initialPlacement;\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));\n const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';\n if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {\n fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));\n }\n const placements = [initialPlacement, ...fallbackPlacements];\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const overflows = [];\n let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];\n if (checkMainAxis) {\n overflows.push(overflow[side]);\n }\n if (checkCrossAxis) {\n const sides = getAlignmentSides(placement, rects, rtl);\n overflows.push(overflow[sides[0]], overflow[sides[1]]);\n }\n overflowsData = [...overflowsData, {\n placement,\n overflows\n }];\n\n // One or more sides is overflowing.\n if (!overflows.every(side => side <= 0)) {\n var _middlewareData$flip2, _overflowsData$filter;\n const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;\n const nextPlacement = placements[nextIndex];\n if (nextPlacement) {\n const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;\n if (!ignoreCrossAxisOverflow ||\n // We leave the current main axis only if every placement on that axis\n // overflows the main axis.\n overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {\n // Try next placement and re-run the lifecycle.\n return {\n data: {\n index: nextIndex,\n overflows: overflowsData\n },\n reset: {\n placement: nextPlacement\n }\n };\n }\n }\n\n // First, find the candidates that fit on the mainAxis side of overflow,\n // then find the placement that fits the best on the main crossAxis side.\n let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;\n\n // Otherwise fallback.\n if (!resetPlacement) {\n switch (fallbackStrategy) {\n case 'bestFit':\n {\n var _overflowsData$filter2;\n const placement = (_overflowsData$filter2 = overflowsData.filter(d => {\n if (hasFallbackAxisSideDirection) {\n const currentSideAxis = getSideAxis(d.placement);\n return currentSideAxis === initialSideAxis ||\n // Create a bias to the `y` side axis due to horizontal\n // reading directions favoring greater width.\n currentSideAxis === 'y';\n }\n return true;\n }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];\n if (placement) {\n resetPlacement = placement;\n }\n break;\n }\n case 'initialPlacement':\n resetPlacement = initialPlacement;\n break;\n }\n }\n if (placement !== resetPlacement) {\n return {\n reset: {\n placement: resetPlacement\n }\n };\n }\n }\n return {};\n }\n };\n};\n\nfunction getSideOffsets(overflow, rect) {\n return {\n top: overflow.top - rect.height,\n right: overflow.right - rect.width,\n bottom: overflow.bottom - rect.height,\n left: overflow.left - rect.width\n };\n}\nfunction isAnySideFullyClipped(overflow) {\n return sides.some(side => overflow[side] >= 0);\n}\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'hide',\n options,\n async fn(state) {\n const {\n rects\n } = state;\n const {\n strategy = 'referenceHidden',\n ...detectOverflowOptions\n } = evaluate(options, state);\n switch (strategy) {\n case 'referenceHidden':\n {\n const overflow = await detectOverflow(state, {\n ...detectOverflowOptions,\n elementContext: 'reference'\n });\n const offsets = getSideOffsets(overflow, rects.reference);\n return {\n data: {\n referenceHiddenOffsets: offsets,\n referenceHidden: isAnySideFullyClipped(offsets)\n }\n };\n }\n case 'escaped':\n {\n const overflow = await detectOverflow(state, {\n ...detectOverflowOptions,\n altBoundary: true\n });\n const offsets = getSideOffsets(overflow, rects.floating);\n return {\n data: {\n escapedOffsets: offsets,\n escaped: isAnySideFullyClipped(offsets)\n }\n };\n }\n default:\n {\n return {};\n }\n }\n }\n };\n};\n\nfunction getBoundingRect(rects) {\n const minX = min(...rects.map(rect => rect.left));\n const minY = min(...rects.map(rect => rect.top));\n const maxX = max(...rects.map(rect => rect.right));\n const maxY = max(...rects.map(rect => rect.bottom));\n return {\n x: minX,\n y: minY,\n width: maxX - minX,\n height: maxY - minY\n };\n}\nfunction getRectsByLine(rects) {\n const sortedRects = rects.slice().sort((a, b) => a.y - b.y);\n const groups = [];\n let prevRect = null;\n for (let i = 0; i < sortedRects.length; i++) {\n const rect = sortedRects[i];\n if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {\n groups.push([rect]);\n } else {\n groups[groups.length - 1].push(rect);\n }\n prevRect = rect;\n }\n return groups.map(rect => rectToClientRect(getBoundingRect(rect)));\n}\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'inline',\n options,\n async fn(state) {\n const {\n placement,\n elements,\n rects,\n platform,\n strategy\n } = state;\n // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a\n // ClientRect's bounds, despite the event listener being triggered. A\n // padding of 2 seems to handle this issue.\n const {\n padding = 2,\n x,\n y\n } = evaluate(options, state);\n const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);\n const clientRects = getRectsByLine(nativeClientRects);\n const fallback = rectToClientRect(getBoundingRect(nativeClientRects));\n const paddingObject = getPaddingObject(padding);\n function getBoundingClientRect() {\n // There are two rects and they are disjoined.\n if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {\n // Find the first rect in which the point is fully inside.\n return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;\n }\n\n // There are 2 or more connected rects.\n if (clientRects.length >= 2) {\n if (getSideAxis(placement) === 'y') {\n const firstRect = clientRects[0];\n const lastRect = clientRects[clientRects.length - 1];\n const isTop = getSide(placement) === 'top';\n const top = firstRect.top;\n const bottom = lastRect.bottom;\n const left = isTop ? firstRect.left : lastRect.left;\n const right = isTop ? firstRect.right : lastRect.right;\n const width = right - left;\n const height = bottom - top;\n return {\n top,\n bottom,\n left,\n right,\n width,\n height,\n x: left,\n y: top\n };\n }\n const isLeftSide = getSide(placement) === 'left';\n const maxRight = max(...clientRects.map(rect => rect.right));\n const minLeft = min(...clientRects.map(rect => rect.left));\n const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);\n const top = measureRects[0].top;\n const bottom = measureRects[measureRects.length - 1].bottom;\n const left = minLeft;\n const right = maxRight;\n const width = right - left;\n const height = bottom - top;\n return {\n top,\n bottom,\n left,\n right,\n width,\n height,\n x: left,\n y: top\n };\n }\n return fallback;\n }\n const resetRects = await platform.getElementRects({\n reference: {\n getBoundingClientRect\n },\n floating: elements.floating,\n strategy\n });\n if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {\n return {\n reset: {\n rects: resetRects\n }\n };\n }\n return {};\n }\n };\n};\n\nconst originSides = /*#__PURE__*/new Set(['left', 'top']);\n\n// For type backwards-compatibility, the `OffsetOptions` type was also\n// Derivable.\n\nasync function convertValueToCoords(state, options) {\n const {\n placement,\n platform,\n elements\n } = state;\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n const side = getSide(placement);\n const alignment = getAlignment(placement);\n const isVertical = getSideAxis(placement) === 'y';\n const mainAxisMulti = originSides.has(side) ? -1 : 1;\n const crossAxisMulti = rtl && isVertical ? -1 : 1;\n const rawValue = evaluate(options, state);\n\n // eslint-disable-next-line prefer-const\n let {\n mainAxis,\n crossAxis,\n alignmentAxis\n } = typeof rawValue === 'number' ? {\n mainAxis: rawValue,\n crossAxis: 0,\n alignmentAxis: null\n } : {\n mainAxis: rawValue.mainAxis || 0,\n crossAxis: rawValue.crossAxis || 0,\n alignmentAxis: rawValue.alignmentAxis\n };\n if (alignment && typeof alignmentAxis === 'number') {\n crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;\n }\n return isVertical ? {\n x: crossAxis * crossAxisMulti,\n y: mainAxis * mainAxisMulti\n } : {\n x: mainAxis * mainAxisMulti,\n y: crossAxis * crossAxisMulti\n };\n}\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = function (options) {\n if (options === void 0) {\n options = 0;\n }\n return {\n name: 'offset',\n options,\n async fn(state) {\n var _middlewareData$offse, _middlewareData$arrow;\n const {\n x,\n y,\n placement,\n middlewareData\n } = state;\n const diffCoords = await convertValueToCoords(state, options);\n\n // If the placement is the same and the arrow caused an alignment offset\n // then we don't need to change the positioning coordinates.\n if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n return {};\n }\n return {\n x: x + diffCoords.x,\n y: y + diffCoords.y,\n data: {\n ...diffCoords,\n placement\n }\n };\n }\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'shift',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement\n } = state;\n const {\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = false,\n limiter = {\n fn: _ref => {\n let {\n x,\n y\n } = _ref;\n return {\n x,\n y\n };\n }\n },\n ...detectOverflowOptions\n } = evaluate(options, state);\n const coords = {\n x,\n y\n };\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const crossAxis = getSideAxis(getSide(placement));\n const mainAxis = getOppositeAxis(crossAxis);\n let mainAxisCoord = coords[mainAxis];\n let crossAxisCoord = coords[crossAxis];\n if (checkMainAxis) {\n const minSide = mainAxis === 'y' ? 'top' : 'left';\n const maxSide = mainAxis === 'y' ? 'bottom' : 'right';\n const min = mainAxisCoord + overflow[minSide];\n const max = mainAxisCoord - overflow[maxSide];\n mainAxisCoord = clamp(min, mainAxisCoord, max);\n }\n if (checkCrossAxis) {\n const minSide = crossAxis === 'y' ? 'top' : 'left';\n const maxSide = crossAxis === 'y' ? 'bottom' : 'right';\n const min = crossAxisCoord + overflow[minSide];\n const max = crossAxisCoord - overflow[maxSide];\n crossAxisCoord = clamp(min, crossAxisCoord, max);\n }\n const limitedCoords = limiter.fn({\n ...state,\n [mainAxis]: mainAxisCoord,\n [crossAxis]: crossAxisCoord\n });\n return {\n ...limitedCoords,\n data: {\n x: limitedCoords.x - x,\n y: limitedCoords.y - y,\n enabled: {\n [mainAxis]: checkMainAxis,\n [crossAxis]: checkCrossAxis\n }\n }\n };\n }\n };\n};\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n options,\n fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n middlewareData\n } = state;\n const {\n offset = 0,\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = true\n } = evaluate(options, state);\n const coords = {\n x,\n y\n };\n const crossAxis = getSideAxis(placement);\n const mainAxis = getOppositeAxis(crossAxis);\n let mainAxisCoord = coords[mainAxis];\n let crossAxisCoord = coords[crossAxis];\n const rawOffset = evaluate(offset, state);\n const computedOffset = typeof rawOffset === 'number' ? {\n mainAxis: rawOffset,\n crossAxis: 0\n } : {\n mainAxis: 0,\n crossAxis: 0,\n ...rawOffset\n };\n if (checkMainAxis) {\n const len = mainAxis === 'y' ? 'height' : 'width';\n const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;\n const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;\n if (mainAxisCoord < limitMin) {\n mainAxisCoord = limitMin;\n } else if (mainAxisCoord > limitMax) {\n mainAxisCoord = limitMax;\n }\n }\n if (checkCrossAxis) {\n var _middlewareData$offse, _middlewareData$offse2;\n const len = mainAxis === 'y' ? 'width' : 'height';\n const isOriginSide = originSides.has(getSide(placement));\n const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);\n const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);\n if (crossAxisCoord < limitMin) {\n crossAxisCoord = limitMin;\n } else if (crossAxisCoord > limitMax) {\n crossAxisCoord = limitMax;\n }\n }\n return {\n [mainAxis]: mainAxisCoord,\n [crossAxis]: crossAxisCoord\n };\n }\n };\n};\n\n/**\n * Provides data that allows you to change the size of the floating element \u2014\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'size',\n options,\n async fn(state) {\n var _state$middlewareData, _state$middlewareData2;\n const {\n placement,\n rects,\n platform,\n elements\n } = state;\n const {\n apply = () => {},\n ...detectOverflowOptions\n } = evaluate(options, state);\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const side = getSide(placement);\n const alignment = getAlignment(placement);\n const isYAxis = getSideAxis(placement) === 'y';\n const {\n width,\n height\n } = rects.floating;\n let heightSide;\n let widthSide;\n if (side === 'top' || side === 'bottom') {\n heightSide = side;\n widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';\n } else {\n widthSide = side;\n heightSide = alignment === 'end' ? 'top' : 'bottom';\n }\n const maximumClippingHeight = height - overflow.top - overflow.bottom;\n const maximumClippingWidth = width - overflow.left - overflow.right;\n const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);\n const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);\n const noShift = !state.middlewareData.shift;\n let availableHeight = overflowAvailableHeight;\n let availableWidth = overflowAvailableWidth;\n if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {\n availableWidth = maximumClippingWidth;\n }\n if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {\n availableHeight = maximumClippingHeight;\n }\n if (noShift && !alignment) {\n const xMin = max(overflow.left, 0);\n const xMax = max(overflow.right, 0);\n const yMin = max(overflow.top, 0);\n const yMax = max(overflow.bottom, 0);\n if (isYAxis) {\n availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));\n } else {\n availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));\n }\n }\n await apply({\n ...state,\n availableWidth,\n availableHeight\n });\n const nextDimensions = await platform.getDimensions(elements.floating);\n if (width !== nextDimensions.width || height !== nextDimensions.height) {\n return {\n reset: {\n rects: true\n }\n };\n }\n return {};\n }\n };\n};\n\nexport { arrow, autoPlacement, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, shift, size };\n", "function hasWindow() {\n return typeof window !== 'undefined';\n}\nfunction getNodeName(node) {\n if (isNode(node)) {\n return (node.nodeName || '').toLowerCase();\n }\n // Mocked nodes in testing environments may not be instances of Node. By\n // returning `#document` an infinite loop won't occur.\n // https://github.com/floating-ui/floating-ui/issues/2317\n return '#document';\n}\nfunction getWindow(node) {\n var _node$ownerDocument;\n return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n var _ref;\n return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n if (!hasWindow() || typeof ShadowRoot === 'undefined') {\n return false;\n }\n return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nconst invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);\n}\nconst tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);\nfunction isTableElement(element) {\n return tableElements.has(getNodeName(element));\n}\nconst topLayerSelectors = [':popover-open', ':modal'];\nfunction isTopLayer(element) {\n return topLayerSelectors.some(selector => {\n try {\n return element.matches(selector);\n } catch (_e) {\n return false;\n }\n });\n}\nconst transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];\nconst willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];\nconst containValues = ['paint', 'layout', 'strict', 'content'];\nfunction isContainingBlock(elementOrCss) {\n const webkit = isWebKit();\n const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n // https://drafts.csswg.org/css-transforms-2/#individual-transforms\n return transformProperties.some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || willChangeValues.some(value => (css.willChange || '').includes(value)) || containValues.some(value => (css.contain || '').includes(value));\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else if (isTopLayer(currentNode)) {\n return null;\n }\n currentNode = getParentNode(currentNode);\n }\n return null;\n}\nfunction isWebKit() {\n if (typeof CSS === 'undefined' || !CSS.supports) return false;\n return CSS.supports('-webkit-backdrop-filter', 'none');\n}\nconst lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);\nfunction isLastTraversableNode(node) {\n return lastTraversableNodeNames.has(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.scrollX,\n scrollTop: element.scrollY\n };\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n return node.ownerDocument ? node.ownerDocument.body : node.body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n var _node$ownerDocument2;\n if (list === void 0) {\n list = [];\n }\n if (traverseIframes === void 0) {\n traverseIframes = true;\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n const frameElement = getFrameElement(win);\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);\n }\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n}\nfunction getFrameElement(win) {\n return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getFrameElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isTopLayer, isWebKit };\n", "import { rectToClientRect, detectOverflow as detectOverflow$1, offset as offset$1, autoPlacement as autoPlacement$1, shift as shift$1, flip as flip$1, size as size$1, hide as hide$1, arrow as arrow$1, inline as inline$1, limitShift as limitShift$1, computePosition as computePosition$1 } from '@floating-ui/core';\nimport { round, createCoords, max, min, floor } from '@floating-ui/utils';\nimport { getComputedStyle, isHTMLElement, isElement, getWindow, isWebKit, getFrameElement, getNodeScroll, getDocumentElement, isTopLayer, getNodeName, isOverflowElement, getOverflowAncestors, getParentNode, isLastTraversableNode, isContainingBlock, isTableElement, getContainingBlock } from '@floating-ui/utils/dom';\nexport { getOverflowAncestors } from '@floating-ui/utils/dom';\n\nfunction getCssDimensions(element) {\n const css = getComputedStyle(element);\n // In testing environments, the `width` and `height` properties are empty\n // strings for SVG elements, returning NaN. Fallback to `0` in this case.\n let width = parseFloat(css.width) || 0;\n let height = parseFloat(css.height) || 0;\n const hasOffset = isHTMLElement(element);\n const offsetWidth = hasOffset ? element.offsetWidth : width;\n const offsetHeight = hasOffset ? element.offsetHeight : height;\n const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;\n if (shouldFallback) {\n width = offsetWidth;\n height = offsetHeight;\n }\n return {\n width,\n height,\n $: shouldFallback\n };\n}\n\nfunction unwrapElement(element) {\n return !isElement(element) ? element.contextElement : element;\n}\n\nfunction getScale(element) {\n const domElement = unwrapElement(element);\n if (!isHTMLElement(domElement)) {\n return createCoords(1);\n }\n const rect = domElement.getBoundingClientRect();\n const {\n width,\n height,\n $\n } = getCssDimensions(domElement);\n let x = ($ ? round(rect.width) : rect.width) / width;\n let y = ($ ? round(rect.height) : rect.height) / height;\n\n // 0, NaN, or Infinity should always fallback to 1.\n\n if (!x || !Number.isFinite(x)) {\n x = 1;\n }\n if (!y || !Number.isFinite(y)) {\n y = 1;\n }\n return {\n x,\n y\n };\n}\n\nconst noOffsets = /*#__PURE__*/createCoords(0);\nfunction getVisualOffsets(element) {\n const win = getWindow(element);\n if (!isWebKit() || !win.visualViewport) {\n return noOffsets;\n }\n return {\n x: win.visualViewport.offsetLeft,\n y: win.visualViewport.offsetTop\n };\n}\nfunction shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {\n return false;\n }\n return isFixed;\n}\n\nfunction getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n const clientRect = element.getBoundingClientRect();\n const domElement = unwrapElement(element);\n let scale = createCoords(1);\n if (includeScale) {\n if (offsetParent) {\n if (isElement(offsetParent)) {\n scale = getScale(offsetParent);\n }\n } else {\n scale = getScale(element);\n }\n }\n const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);\n let x = (clientRect.left + visualOffsets.x) / scale.x;\n let y = (clientRect.top + visualOffsets.y) / scale.y;\n let width = clientRect.width / scale.x;\n let height = clientRect.height / scale.y;\n if (domElement) {\n const win = getWindow(domElement);\n const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;\n let currentWin = win;\n let currentIFrame = getFrameElement(currentWin);\n while (currentIFrame && offsetParent && offsetWin !== currentWin) {\n const iframeScale = getScale(currentIFrame);\n const iframeRect = currentIFrame.getBoundingClientRect();\n const css = getComputedStyle(currentIFrame);\n const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;\n const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;\n x *= iframeScale.x;\n y *= iframeScale.y;\n width *= iframeScale.x;\n height *= iframeScale.y;\n x += left;\n y += top;\n currentWin = getWindow(currentIFrame);\n currentIFrame = getFrameElement(currentWin);\n }\n }\n return rectToClientRect({\n width,\n height,\n x,\n y\n });\n}\n\n// If <html> has a CSS width greater than the viewport, then this will be\n// incorrect for RTL.\nfunction getWindowScrollBarX(element, rect) {\n const leftScroll = getNodeScroll(element).scrollLeft;\n if (!rect) {\n return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;\n }\n return rect.left + leftScroll;\n}\n\nfunction getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {\n if (ignoreScrollbarX === void 0) {\n ignoreScrollbarX = false;\n }\n const htmlRect = documentElement.getBoundingClientRect();\n const x = htmlRect.left + scroll.scrollLeft - (ignoreScrollbarX ? 0 :\n // RTL <body> scrollbar.\n getWindowScrollBarX(documentElement, htmlRect));\n const y = htmlRect.top + scroll.scrollTop;\n return {\n x,\n y\n };\n}\n\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n let {\n elements,\n rect,\n offsetParent,\n strategy\n } = _ref;\n const isFixed = strategy === 'fixed';\n const documentElement = getDocumentElement(offsetParent);\n const topLayer = elements ? isTopLayer(elements.floating) : false;\n if (offsetParent === documentElement || topLayer && isFixed) {\n return rect;\n }\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n let scale = createCoords(1);\n const offsets = createCoords(0);\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isHTMLElement(offsetParent)) {\n const offsetRect = getBoundingClientRect(offsetParent);\n scale = getScale(offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n }\n }\n const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll, true) : createCoords(0);\n return {\n width: rect.width * scale.x,\n height: rect.height * scale.y,\n x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,\n y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y\n };\n}\n\nfunction getClientRects(element) {\n return Array.from(element.getClientRects());\n}\n\n// Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable.\nfunction getDocumentRect(element) {\n const html = getDocumentElement(element);\n const scroll = getNodeScroll(element);\n const body = element.ownerDocument.body;\n const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);\n const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);\n let x = -scroll.scrollLeft + getWindowScrollBarX(element);\n const y = -scroll.scrollTop;\n if (getComputedStyle(body).direction === 'rtl') {\n x += max(html.clientWidth, body.clientWidth) - width;\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\nfunction getViewportRect(element, strategy) {\n const win = getWindow(element);\n const html = getDocumentElement(element);\n const visualViewport = win.visualViewport;\n let width = html.clientWidth;\n let height = html.clientHeight;\n let x = 0;\n let y = 0;\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n const visualViewportBased = isWebKit();\n if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\n// Returns the inner client rect, subtracting scrollbars if present.\nfunction getInnerBoundingClientRect(element, strategy) {\n const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');\n const top = clientRect.top + element.clientTop;\n const left = clientRect.left + element.clientLeft;\n const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);\n const width = element.clientWidth * scale.x;\n const height = element.clientHeight * scale.y;\n const x = left * scale.x;\n const y = top * scale.y;\n return {\n width,\n height,\n x,\n y\n };\n}\nfunction getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {\n let rect;\n if (clippingAncestor === 'viewport') {\n rect = getViewportRect(element, strategy);\n } else if (clippingAncestor === 'document') {\n rect = getDocumentRect(getDocumentElement(element));\n } else if (isElement(clippingAncestor)) {\n rect = getInnerBoundingClientRect(clippingAncestor, strategy);\n } else {\n const visualOffsets = getVisualOffsets(element);\n rect = {\n x: clippingAncestor.x - visualOffsets.x,\n y: clippingAncestor.y - visualOffsets.y,\n width: clippingAncestor.width,\n height: clippingAncestor.height\n };\n }\n return rectToClientRect(rect);\n}\nfunction hasFixedPositionAncestor(element, stopNode) {\n const parentNode = getParentNode(element);\n if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {\n return false;\n }\n return getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);\n}\n\n// A \"clipping ancestor\" is an `overflow` element with the characteristic of\n// clipping (or hiding) child elements. This returns all clipping ancestors\n// of the given element up the tree.\nfunction getClippingElementAncestors(element, cache) {\n const cachedResult = cache.get(element);\n if (cachedResult) {\n return cachedResult;\n }\n let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');\n let currentContainingBlockComputedStyle = null;\n const elementIsFixed = getComputedStyle(element).position === 'fixed';\n let currentNode = elementIsFixed ? getParentNode(element) : element;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {\n const computedStyle = getComputedStyle(currentNode);\n const currentNodeIsContaining = isContainingBlock(currentNode);\n if (!currentNodeIsContaining && computedStyle.position === 'fixed') {\n currentContainingBlockComputedStyle = null;\n }\n const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);\n if (shouldDropCurrentNode) {\n // Drop non-containing blocks.\n result = result.filter(ancestor => ancestor !== currentNode);\n } else {\n // Record last containing block for next iteration.\n currentContainingBlockComputedStyle = computedStyle;\n }\n currentNode = getParentNode(currentNode);\n }\n cache.set(element, result);\n return result;\n}\n\n// Gets the maximum area that the element is visible in due to any number of\n// clipping ancestors.\nfunction getClippingRect(_ref) {\n let {\n element,\n boundary,\n rootBoundary,\n strategy\n } = _ref;\n const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);\n const clippingAncestors = [...elementClippingAncestors, rootBoundary];\n const firstClippingAncestor = clippingAncestors[0];\n const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {\n const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));\n return {\n width: clippingRect.right - clippingRect.left,\n height: clippingRect.bottom - clippingRect.top,\n x: clippingRect.left,\n y: clippingRect.top\n };\n}\n\nfunction getDimensions(element) {\n const {\n width,\n height\n } = getCssDimensions(element);\n return {\n width,\n height\n };\n}\n\nfunction getRectRelativeToOffsetParent(element, offsetParent, strategy) {\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n const documentElement = getDocumentElement(offsetParent);\n const isFixed = strategy === 'fixed';\n const rect = getBoundingClientRect(element, true, isFixed, offsetParent);\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n const offsets = createCoords(0);\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isOffsetParentAnElement) {\n const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n } else if (documentElement) {\n // If the <body> scrollbar appears on the left (e.g. RTL systems). Use\n // Firefox with layout.scrollbar.side = 3 in about:config to test this.\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);\n const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;\n const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;\n return {\n x,\n y,\n width: rect.width,\n height: rect.height\n };\n}\n\nfunction isStaticPositioned(element) {\n return getComputedStyle(element).position === 'static';\n}\n\nfunction getTrueOffsetParent(element, polyfill) {\n if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {\n return null;\n }\n if (polyfill) {\n return polyfill(element);\n }\n let rawOffsetParent = element.offsetParent;\n\n // Firefox returns the <html> element as the offsetParent if it's non-static,\n // while Chrome and Safari return the <body> element. The <body> element must\n // be used to perform the correct calculations even if the <html> element is\n // non-static.\n if (getDocumentElement(element) === rawOffsetParent) {\n rawOffsetParent = rawOffsetParent.ownerDocument.body;\n }\n return rawOffsetParent;\n}\n\n// Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\nfunction getOffsetParent(element, polyfill) {\n const win = getWindow(element);\n if (isTopLayer(element)) {\n return win;\n }\n if (!isHTMLElement(element)) {\n let svgOffsetParent = getParentNode(element);\n while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {\n if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {\n return svgOffsetParent;\n }\n svgOffsetParent = getParentNode(svgOffsetParent);\n }\n return win;\n }\n let offsetParent = getTrueOffsetParent(element, polyfill);\n while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {\n offsetParent = getTrueOffsetParent(offsetParent, polyfill);\n }\n if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {\n return win;\n }\n return offsetParent || getContainingBlock(element) || win;\n}\n\nconst getElementRects = async function (data) {\n const getOffsetParentFn = this.getOffsetParent || getOffsetParent;\n const getDimensionsFn = this.getDimensions;\n const floatingDimensions = await getDimensionsFn(data.floating);\n return {\n reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),\n floating: {\n x: 0,\n y: 0,\n width: floatingDimensions.width,\n height: floatingDimensions.height\n }\n };\n};\n\nfunction isRTL(element) {\n return getComputedStyle(element).direction === 'rtl';\n}\n\nconst platform = {\n convertOffsetParentRelativeRectToViewportRelativeRect,\n getDocumentElement,\n getClippingRect,\n getOffsetParent,\n getElementRects,\n getClientRects,\n getDimensions,\n getScale,\n isElement,\n isRTL\n};\n\nfunction rectsAreEqual(a, b) {\n return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;\n}\n\n// https://samthor.au/2021/observing-dom/\nfunction observeMove(element, onMove) {\n let io = null;\n let timeoutId;\n const root = getDocumentElement(element);\n function cleanup() {\n var _io;\n clearTimeout(timeoutId);\n (_io = io) == null || _io.disconnect();\n io = null;\n }\n function refresh(skip, threshold) {\n if (skip === void 0) {\n skip = false;\n }\n if (threshold === void 0) {\n threshold = 1;\n }\n cleanup();\n const elementRectForRootMargin = element.getBoundingClientRect();\n const {\n left,\n top,\n width,\n height\n } = elementRectForRootMargin;\n if (!skip) {\n onMove();\n }\n if (!width || !height) {\n return;\n }\n const insetTop = floor(top);\n const insetRight = floor(root.clientWidth - (left + width));\n const insetBottom = floor(root.clientHeight - (top + height));\n const insetLeft = floor(left);\n const rootMargin = -insetTop + \"px \" + -insetRight + \"px \" + -insetBottom + \"px \" + -insetLeft + \"px\";\n const options = {\n rootMargin,\n threshold: max(0, min(1, threshold)) || 1\n };\n let isFirstUpdate = true;\n function handleObserve(entries) {\n const ratio = entries[0].intersectionRatio;\n if (ratio !== threshold) {\n if (!isFirstUpdate) {\n return refresh();\n }\n if (!ratio) {\n // If the reference is clipped, the ratio is 0. Throttle the refresh\n // to prevent an infinite loop of updates.\n timeoutId = setTimeout(() => {\n refresh(false, 1e-7);\n }, 1000);\n } else {\n refresh(false, ratio);\n }\n }\n if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {\n // It's possible that even though the ratio is reported as 1, the\n // element is not actually fully within the IntersectionObserver's root\n // area anymore. This can happen under performance constraints. This may\n // be a bug in the browser's IntersectionObserver implementation. To\n // work around this, we compare the element's bounding rect now with\n // what it was at the time we created the IntersectionObserver. If they\n // are not equal then the element moved, so we refresh.\n refresh();\n }\n isFirstUpdate = false;\n }\n\n // Older browsers don't support a `document` as the root and will throw an\n // error.\n try {\n io = new IntersectionObserver(handleObserve, {\n ...options,\n // Handle <iframe>s\n root: root.ownerDocument\n });\n } catch (e) {\n io = new IntersectionObserver(handleObserve, options);\n }\n io.observe(element);\n }\n refresh(true);\n return cleanup;\n}\n\n/**\n * Automatically updates the position of the floating element when necessary.\n * Should only be called when the floating element is mounted on the DOM or\n * visible on the screen.\n * @returns cleanup function that should be invoked when the floating element is\n * removed from the DOM or hidden from the screen.\n * @see https://floating-ui.com/docs/autoUpdate\n */\nfunction autoUpdate(reference, floating, update, options) {\n if (options === void 0) {\n options = {};\n }\n const {\n ancestorScroll = true,\n ancestorResize = true,\n elementResize = typeof ResizeObserver === 'function',\n layoutShift = typeof IntersectionObserver === 'function',\n animationFrame = false\n } = options;\n const referenceEl = unwrapElement(reference);\n const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.addEventListener('scroll', update, {\n passive: true\n });\n ancestorResize && ancestor.addEventListener('resize', update);\n });\n const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;\n let reobserveFrame = -1;\n let resizeObserver = null;\n if (elementResize) {\n resizeObserver = new ResizeObserver(_ref => {\n let [firstEntry] = _ref;\n if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {\n // Prevent update loops when using the `size` middleware.\n // https://github.com/floating-ui/floating-ui/issues/1740\n resizeObserver.unobserve(floating);\n cancelAnimationFrame(reobserveFrame);\n reobserveFrame = requestAnimationFrame(() => {\n var _resizeObserver;\n (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);\n });\n }\n update();\n });\n if (referenceEl && !animationFrame) {\n resizeObserver.observe(referenceEl);\n }\n resizeObserver.observe(floating);\n }\n let frameId;\n let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;\n if (animationFrame) {\n frameLoop();\n }\n function frameLoop() {\n const nextRefRect = getBoundingClientRect(reference);\n if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {\n update();\n }\n prevRefRect = nextRefRect;\n frameId = requestAnimationFrame(frameLoop);\n }\n update();\n return () => {\n var _resizeObserver2;\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.removeEventListener('scroll', update);\n ancestorResize && ancestor.removeEventListener('resize', update);\n });\n cleanupIo == null || cleanupIo();\n (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();\n resizeObserver = null;\n if (animationFrame) {\n cancelAnimationFrame(frameId);\n }\n };\n}\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nconst detectOverflow = detectOverflow$1;\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = offset$1;\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = autoPlacement$1;\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = shift$1;\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = flip$1;\n\n/**\n * Provides data that allows you to change the size of the floating element \u2014\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = size$1;\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = hide$1;\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = arrow$1;\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = inline$1;\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = limitShift$1;\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n */\nconst computePosition = (reference, floating, options) => {\n // This caches the expensive `getClippingElementAncestors` function so that\n // multiple lifecycle resets re-use the same result. It only lives for a\n // single call. If other functions become expensive, we can add them as well.\n const cache = new Map();\n const mergedOptions = {\n platform,\n ...options\n };\n const platformWithCache = {\n ...mergedOptions.platform,\n _c: cache\n };\n return computePosition$1(reference, floating, {\n ...mergedOptions,\n platform: platformWithCache\n });\n};\n\nexport { arrow, autoPlacement, autoUpdate, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, platform, shift, size };\n", "import { computePosition, flip, offset, arrow, autoUpdate, hide, shift, size } from '@floating-ui/dom';\nconst TOP_START = 'top-start';\nconst TOP = 'top';\nconst TOP_END = 'top-end';\nconst RIGHT_START = 'right-start';\nconst RIGHT = 'right';\nconst RIGHT_END = 'right-end';\nconst BOTTOM_START = 'bottom-start';\nconst BOTTOM = 'bottom';\nconst BOTTOM_END = 'bottom-end';\nconst LEFT_START = 'left-start';\nconst LEFT = 'left';\nconst LEFT_END = 'left-end';\nexport const directions = [\n TOP_START,\n TOP,\n TOP_END,\n RIGHT_START,\n RIGHT,\n RIGHT_END,\n BOTTOM_START,\n BOTTOM,\n BOTTOM_END,\n LEFT_START,\n LEFT,\n LEFT_END,\n];\nexport const opposites = {\n [TOP_START]: BOTTOM_START,\n [TOP]: BOTTOM,\n [TOP_END]: BOTTOM_END,\n [BOTTOM_START]: TOP_START,\n [BOTTOM]: TOP,\n [BOTTOM_END]: TOP_END,\n [LEFT_START]: RIGHT_START,\n [LEFT]: RIGHT,\n [LEFT_END]: RIGHT_END,\n [RIGHT_START]: LEFT_START,\n [RIGHT]: LEFT,\n [RIGHT_END]: LEFT_END,\n};\nconst rotation = {\n [LEFT_START]: -45,\n [LEFT]: -45,\n [LEFT_END]: -45,\n [TOP_START]: 45,\n [TOP]: 45,\n [TOP_END]: 45,\n [RIGHT_START]: 135,\n [RIGHT]: 135,\n [RIGHT_END]: 135,\n [BOTTOM_START]: -135,\n [BOTTOM]: -135,\n [BOTTOM_END]: -135,\n};\nexport const arrowDirectionClassname = (dir) => {\n let direction;\n if (/-/.test(dir)) {\n direction = dir\n .split('-')\n .map((d) => d.charAt(0).toUpperCase() + d.slice(1))\n .join('');\n }\n else {\n direction = (dir.charAt(0).toUpperCase() + dir.slice(1));\n }\n return direction;\n};\nconst side = (dir) => dir.split('-')[0];\nconst staticSide = (dir) => opposites[side(dir)];\nconst arrowDirection = (dir) => opposites[dir];\nconst arrowRotation = (dir) => rotation[arrowDirection(dir)];\nconst applyArrowStyles = (arrowEl, arrowRotation, dir) => {\n Object.assign(arrowEl?.style, {\n borderTopLeftRadius: '4px',\n zIndex: 1,\n // border alignment is off by a fraction of a pixel, this fixes it\n [`margin${arrowDirectionClassname(staticSide(dir))}`]: '-0.5px',\n transform: `rotate(${arrowRotation}deg)`,\n });\n};\nconst ELEMENT_PADDING = 8;\nconst ARROW_OFFSET = 24;\nexport async function useRecompute(state) {\n if (!state?.isShowing)\n return; // we're not currently showing the element, no reason to recompute\n if (state?.waitForDOM) {\n await state?.waitForDOM(); // wait for DOM to settle before computing\n }\n if (!state?.targetEl || !state?.attentionEl)\n return;\n let targetEl = state?.targetEl;\n const attentionEl = state.attentionEl;\n computePosition(targetEl, attentionEl, {\n placement: state?.directionName ?? BOTTOM,\n middleware: [\n offset({ mainAxis: state?.distance ?? 8, crossAxis: state?.skidding ?? 0 }), // offers flexibility over how to place the attentionEl towards its targetEl both on the x and y axis (horizontally and vertically).\n state?.flip &&\n flip({\n // when flip is set to true it will move the attentionEl's placement to its opposite side or to the preferred placements if fallbackPlacements has a value\n crossAxis: state?.crossAxis, // checks overflow to trigger a flip. When disabled, it will ignore overflow\n fallbackPlacements: state?.fallbackPlacements,\n }),\n state?.flip && shift({ crossAxis: true }), // shifts the attentionEl to make sure that it stays in view\n !state?.noArrow && state?.arrowEl && arrow({ element: state?.arrowEl }),\n hide(), // will hide the attentionEl when it appears detached from the targetEl. Can be called multiple times in the middleware-array if you want to use several strategies. Default strategy is 'referenceHidden'.\n size({\n apply() {\n // Apply equal padding to the left and right sides of the attentionEl to prevent it from overflowing the viewport on smaller screens.\n Object.assign(attentionEl.style, {\n paddingRight: `${ELEMENT_PADDING}px`,\n paddingLeft: `${ELEMENT_PADDING}px`,\n });\n },\n }),\n ],\n }).then(({ x, y, middlewareData, placement }) => {\n state.actualDirection = placement;\n // We only want floating-ui to calculate the callout's arrow position and not the attention element's position, since the targetEl can be undefined if isCallout is true.\n // Therefore, we only add this style to the attentionEl when isCallout is false.\n if (!state?.isCallout) {\n Object.assign(attentionEl.style, {\n left: `${x}px`,\n top: `${y}px`,\n });\n }\n // Handle visibility based on hide middleware\n if (middlewareData?.hide && !state?.isCallout) {\n const { referenceHidden } = middlewareData.hide;\n Object.assign(attentionEl.style, {\n visibility: referenceHidden ? 'hidden' : '',\n });\n }\n // Arrow position adjustment\n if (middlewareData?.arrow && state?.arrowEl) {\n const arrowEl = state?.arrowEl;\n const { x: arrowX, y: arrowY } = middlewareData.arrow;\n const isRtl = window.getComputedStyle(attentionEl).direction === 'rtl'; // Checks RTL for proper arrow alignment\n const arrowPlacement = arrowDirection(placement).split('-')[1];\n let top = '', right = '', bottom = '', left = '';\n // Adjust based on 'start' or 'end' placements\n if (arrowPlacement === 'start') {\n const value = typeof arrowX === 'number' ? `calc(${ARROW_OFFSET}px - ${arrowEl.offsetWidth / 2}px)` : '';\n top = typeof arrowY === 'number' ? `calc(${ARROW_OFFSET}px - ${arrowEl.offsetWidth / 2}px)` : '';\n right = isRtl ? value : '';\n left = isRtl ? '' : value;\n }\n else if (arrowPlacement === 'end') {\n const value = typeof arrowX === 'number' ? `calc(${ARROW_OFFSET}px - ${arrowEl.offsetWidth / 2}px)` : '';\n right = isRtl ? '' : value;\n left = isRtl ? value : '';\n bottom = typeof arrowY === 'number' ? `calc(${ARROW_OFFSET}px - ${arrowEl.offsetWidth / 2}px)` : '';\n }\n else {\n // Default positioning with no 'start' or 'end'\n left = typeof arrowX === 'number' ? `${arrowX}px` : '';\n top = typeof arrowY === 'number' ? `${arrowY}px` : '';\n }\n // Apply the arrow styles\n Object.assign(arrowEl.style, {\n top,\n right,\n bottom,\n left,\n });\n // Apply arrow rotation styles\n applyArrowStyles(arrowEl, arrowRotation(placement), placement);\n }\n });\n return state;\n}\nexport const autoUpdatePosition = (state) => {\n // computePosition is only run once, so we need to wrap autoUpdate() around useRecompute() in order to recompute the attentionEl's position\n // autoUpdate adds event listeners that are triggered on resize and on scroll and will keep calling the useRecompute().\n // autoUpdate returns a cleanup() function that removes the event listeners.\n if (!state?.targetEl || !state?.attentionEl || state?.isCallout)\n return;\n return autoUpdate(state?.targetEl, state?.attentionEl, () => {\n useRecompute(state);\n });\n};\n", "export const pageIndicator = {\n wrapper: 'flex space-x-8 p-8',\n dot: 'h-8 w-8 rounded-full',\n inactive: 's-bg-disabled-subtle hover:bg-[--w-s-icon-subtle]',\n active: 'bg-[--w-s-icon-selected]',\n};\n\nexport const badge = {\n base: 'py-4 px-8 border-0 rounded-4 text-xs inline-flex',\n neutral: 'bg-[--w-color-badge-neutral-background] s-text',\n info: 'bg-[--w-color-badge-info-background] s-text',\n positive: 'bg-[--w-color-badge-positive-background] s-text',\n warning: 'bg-[--w-color-badge-warning-background] s-text',\n negative: 'bg-[--w-color-badge-negative-background] s-text',\n disabled: 's-bg-disabled s-text',\n price: 'bg-[--w-black/70] s-text-inverted-static',\n sponsored: 'bg-[--w-color-badge-sponsored-background] s-text',\n positionBase: 'absolute backdrop-blur',\n positionTL: 'rounded-tl-0 rounded-tr-0 rounded-bl-0 top-0 left-0',\n positionTR: 'rounded-tl-0 rounded-tr-0 rounded-br-0 top-0 right-0',\n positionBR: 'rounded-tr-0 rounded-br-0 rounded-bl-0 bottom-0 right-0',\n positionBL: 'rounded-tl-0 rounded-br-0 rounded-bl-0 bottom-0 left-0',\n};\n\nexport const slider = {\n wrapper: 'touch-pan-y relative w-full h-44 py-2',\n track: 'absolute s-bg-disabled-subtle h-4 top-20 rounded-4 w-full',\n trackDisabled: 'pointer-events-none',\n activeTrack: 'absolute h-6 top-[1.92rem] rounded-4',\n activeTrackEnabled: 's-bg-primary',\n activeTrackDisabled: 's-bg-disabled pointer-events-none',\n thumb: 'absolute transition-shadow w-24 h-24 bottom-10 rounded-4 outline-none',\n thumbEnabled:\n 'border-2 shadow-[--w-shadow-slider] cursor-pointer s-bg-primary s-border-primary hover:s-bg-primary-hover hover:s-border-primary-hover hover:shadow-[--w-shadow-slider-handle-hover] active:s-bg-primary-active active:s-border-primary-active active:shadow-[--w-shadow-slider-handle-active] focus:shadow-[--w-shadow-slider-handle-hover] focus:s-border-primary-hover focus:s-bg-primary-hover',\n thumbDisabled: 's-bg-disabled cursor-disabled pointer-events-none',\n};\n\nexport const box = {\n base: 'group block relative break-words last-child:mb-0 p-16 rounded-8', // Relative here enables w-clickable\n bleed: '-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8', // We target L and R to override the default rounded-8\n info: 's-bg-info-subtle',\n neutral: 's-surface-sunken',\n bordered: 'border-2 s-border s-bg',\n};\n\nexport const pill = {\n wrapper: 'flex items-center',\n button: 'inline-flex items-center focusable text-xs transition-all',\n suggestion:\n 'bg-[--w-color-pill-suggestion-background] hover:bg-[--w-color-pill-suggestion-background-hover] active:bg-[--w-color-pill-suggestion-background-active] s-text font-bold',\n filter: 's-bg-primary hover:s-bg-primary-hover active:s-bg-primary-active s-text-inverted',\n label: 'pl-12 py-8 rounded-l-full',\n labelWithoutClose: 'pr-12 rounded-r-full',\n labelWithClose: 'pr-2',\n close: 'pr-12 pl-4 py-8 rounded-r-full',\n a11y: 'sr-only',\n};\n\nexport const step = {\n base: 'group/step',\n vertical: 'group/stepv grid-rows-[20px_auto] grid grid-flow-col gap-x-16',\n horizontal: 'group/steph grid-rows-[auto_20px] grid-cols-[1fr_20px_1fr] flex-1 grid gap-y-16 items-center',\n\n alignLeft: 'grid-cols-[20px_1fr]',\n alignRight: 'grid-cols-[1fr_20px] text-right',\n\n dot: 'rounded-full border-2 h-20 w-20 transition-colors duration-300 s-icon-inverted',\n dotAlignRight: 'col-start-2',\n dotHorizontal: 'row-start-2 justify-self-end',\n dotActive: 's-border-primary s-bg-primary',\n dotIncomplete: 's-border s-bg',\n\n line: 'group-last/stepv:hidden transition-colors duration-300',\n lineVertical: 'w-2 h-full justify-self-center',\n lineAlignRight: 'col-start-2',\n lineHorizontal: 'h-2 w-full row-start-2',\n lineHorizontalAlignRight: 'group-last/steph:bg-transparent',\n lineHorizontalAlignLeft: 'group-first/steph:bg-transparent',\n\n lineIncomplete: 's-bg-disabled',\n lineComplete: 's-bg-primary',\n\n content: 'last:mb-0 group-last/step:last:pb-0',\n contentVertical: 'row-span-2 pb-32',\n contentHorizontal: 'col-span-3 px-16 row-start-1 text-center',\n};\n\nexport const steps = {\n wrapper: 'w-full',\n horizontal: 'flex',\n};\n\nexport const card = {\n base: 'cursor-pointer overflow-hidden relative transition-all',\n shadow: 'group rounded-8 s-surface-elevated-200 hover:s-surface-elevated-200-hover active:s-surface-elevated-200-active',\n selected: '!s-bg-selected !hover:s-bg-selected-hover !active:s-bg-selected-active',\n outline: 'absolute border-2 rounded-8 inset-0 transition-all',\n outlineUnselected: 'border-transparent group-active:s-border-active',\n outlineSelected: 's-border-selected group-hover:s-border-selected-hover group-active:s-border-selected-active',\n flat: 'border-2 rounded-4',\n flatUnselected: 's-bg hover:s-bg-hover active:s-bg-active s-border hover:s-border-hover active:s-border-active',\n flatSelected:\n 's-bg-selected hover:s-bg-selected-hover active:s-bg-selected-active s-border-selected hover:s-border-selected-hover active:s-border-selected-active',\n a11y: 'sr-only',\n};\n\nexport const switchToggle = {\n base: 'block relative h-24 w-44 cursor-pointer group focusable rounded-full',\n disabled: 'pointer-events-none',\n track: 'absolute top-0 left-0 h-full w-full rounded-full transition-colors',\n trackActive: 's-bg-primary group-hover:s-bg-primary-hover',\n trackInactive: 'bg-[--w-color-switch-track-background] group-hover:bg-[--w-color-switch-track-background-hover]',\n trackDisabled: 's-bg-disabled-subtle',\n handle: 'absolute transform-gpu h-16 w-16 top-4 left-4 rounded-full transition-transform',\n handleSelected: 'translate-x-20',\n handleNotDisabled: 's-bg shadow-s',\n handleDisabled: 's-bg-disabled',\n a11y: 'sr-only',\n};\n\nexport const toaster = {\n wrapper: 'fixed transform translate-z-0 bottom-16 left-0 right-0 mx-8 sm:mx-16 z-50 pointer-events-none',\n base: 'grid auto-rows-auto justify-items-center justify-center mx-auto pointer-events-none',\n content: 'w-full',\n};\n\nexport const toast = {\n wrapper: 'relative overflow-hidden w-full',\n base: 'flex group p-8 mt-16 rounded-8 border-2 pointer-events-auto transition-all',\n positive: 's-bg-positive-subtle s-border-positive-subtle s-text',\n warning: 's-bg-warning-subtle s-border-warning-subtle s-text',\n negative: 's-bg-negative-subtle s-border-negative-subtle s-text',\n iconBase: 'shrink-0 rounded-full w-[16px] h-[16px] m-[8px]',\n iconPositive: 's-icon-positive',\n iconWarning: 's-icon-warning',\n iconNegative: 's-icon-negative',\n iconLoading: 'animate-bounce',\n content: 'self-center mr-8 py-4 last-child:mb-0',\n close: 'bg-transparent ml-auto p-[8px] s-icon hover:s-icon-hover active:s-icon-active',\n};\n\nexport const tabs = {\n wrapper: 'inline-block border-b s-border mb-32',\n base: 'inline-grid relative -mb-1',\n selectionIndicator: 'absolute s-border-selected -bottom-0 border-b-4 transition-all',\n};\n\nexport const tab = {\n base: 'grid items-center font-bold gap-8 focusable antialias p-16 pb-8 border-b-4 bg-transparent border-transparent hover:s-text-link hover:s-border-primary',\n inactive: 's-text-subtle',\n active: 's-text-link s-border-selected',\n icon: 'mx-auto',\n content: 'flex items-center justify-center gap-8',\n contentUnderlined: 'content-underlined', // content-underlined is a no-op that prevents a quirk in how Vue handles class bindings\n};\n\n// Todo: Handle dynamic classnames\nexport const gridLayout = {\n cols1: 'grid-cols-1',\n cols2: 'grid-cols-2',\n cols3: 'grid-cols-3',\n cols4: 'grid-cols-4',\n cols5: 'grid-cols-5',\n cols6: 'grid-cols-6',\n cols7: 'grid-cols-7',\n cols8: 'grid-cols-8',\n cols9: 'grid-cols-9',\n};\n\nexport const buttonReset = 'focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block';\n\nexport const expandable = {\n wrapper: 'will-change-height s-text',\n box: 's-surface-sunken hover:s-bg-hover active:s-bg-active py-0 px-0 group block relative break-words last-child:mb-0 rounded-8',\n bleed: '-mx-16 rounded-l-0 rounded-r-0 sm:mx-0 sm:rounded-8',\n chevron: 'inline-block align-middle s-icon',\n chevronNonBox: 'ml-8',\n chevronTransform: 'transform transition-transform transform-gpu ease-in-out',\n chevronExpand: '-rotate-180',\n chevronCollapse: 'rotate-180',\n\n // These are web component specific classes, using the ::part-selector:\n elementsChevronDownTransform:\n 'part-[w-icon-chevron-down-16-part]:transform part-[w-icon-chevron-down-16-part]:transition-transform part-[w-icon-chevron-down-16-part]:transform-gpu part-[w-icon-chevron-down-16-part]:ease-in-out',\n elementsChevronUpTransform:\n 'part-[w-icon-chevron-up-16-part]:transform part-[w-icon-chevron-up-16-part]:transition-transform part-[w-icon-chevron-up-16-part]:transform-gpu part-[w-icon-chevron-up-16-part]:ease-in-out',\n elementsChevronExpand: 'part-[w-icon-chevron-down-16-part]:-rotate-180',\n elementsChevronCollapse: 'part-[w-icon-chevron-up-16-part]:rotate-180',\n\n expansion: 'overflow-hidden',\n expansionNotExpanded: 'h-0 invisible',\n button: 'focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 hover:underline focus-visible:underline',\n buttonBox: 'w-full text-left relative inline-flex items-center justify-between group relative break-words last-child:mb-0 p-16 rounded-8',\n contentWithTitle: 'pt-0',\n title: 'flex w-full justify-between items-center',\n titleType: 't4',\n};\n\nconst buttonDefaultStyling = 'font-bold focusable justify-center transition-colors ease-in-out';\n\nconst buttonColors = {\n primary:\n '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]',\n secondary: 's-text-link s-border s-bg hover:s-bg-hover hover:s-border-hover active:s-bg-active',\n utility: 's-text s-bg hover:s-bg-hover active:s-bg-active s-border hover:s-border-hover active:s-border-active',\n destructive: 's-bg-negative s-text-inverted hover:s-bg-negative-hover active:s-bg-negative-active',\n 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]',\n disabled: 's-text-inverted s-bg-disabled',\n quiet: 'bg-transparent s-text-link hover:s-bg-hover active:s-bg-active',\n utilityQuiet: 's-text bg-transparent hover:s-bg-hover active:s-bg-active',\n negativeQuiet: 'bg-transparent s-text-negative hover:s-bg-negative-subtle-hover active:s-bg-negative-subtle-active',\n loading: 's-text s-bg-subtle',\n link: 's-text-link',\n};\n\nconst buttonTypes = {\n primary: `border-0 rounded-8 ${buttonDefaultStyling}`,\n secondary: `border-2 rounded-8 ${buttonDefaultStyling}`,\n utility: `border rounded-4 ${buttonDefaultStyling}`,\n negative: `border-0 rounded-8 ${buttonDefaultStyling}`,\n pill: `p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${buttonDefaultStyling}`,\n link: `bg-transparent focusable ease-in-out inline active:underline hover:underline focus:underline ${buttonColors.link}`,\n};\n\nconst buttonSizes = {\n xsmall: 'py-6 px-16',\n small: 'py-8 px-16',\n medium: 'py-10 px-14',\n large: 'py-12 px-16',\n utility: 'py-[11px] px-[15px]',\n smallUtility: 'py-[7px] px-[15px]',\n pill: 'min-h-[44px] min-w-[44px]',\n pillSmall: 'min-h-32 min-w-32',\n link: 'p-0',\n};\n\nconst buttonTextSizes = {\n medium: 'text-m leading-[24]',\n xsmall: 'text-xs',\n};\n\nconst buttonVariants = {\n inProgress: `border-transparent animate-inprogress pointer-events-none ${buttonColors.loading}`, // .button--in-progress, a.button--in-progress:visited\n quiet: `border-0 rounded-8 ${buttonDefaultStyling}`,\n utilityQuiet: `border-0 rounded-4 ${buttonDefaultStyling}`,\n negativeQuiet: `border-0 rounded-8 ${buttonDefaultStyling}`,\n isDisabled: `font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${buttonColors.disabled}`, // .button:disabled, .button--is-disabled\n};\n\nexport const button = {\n // Buttontypes\n secondary: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonColors.secondary}`, // .button--secondary, .button--default, .button\n secondaryHref: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonColors.secondary}`,\n secondaryDisabled: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonVariants.isDisabled}`,\n secondarySmall: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonTypes.secondary} ${buttonColors.secondary}`,\n secondarySmallDisabled: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonTypes.secondary} ${buttonVariants.isDisabled}`,\n secondaryQuiet: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonColors.quiet}`,\n secondaryQuietDisabled: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`,\n secondarySmallQuiet: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonVariants.quiet} ${buttonColors.quiet}`,\n secondarySmallQuietDisabled: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`,\n secondaryLoading: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonVariants.inProgress}`,\n secondarySmallLoading: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonTypes.secondary} ${buttonVariants.inProgress}`,\n secondarySmallQuietLoading: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.inProgress}`,\n secondaryQuietLoading: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.inProgress}`,\n\n primary: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.primary} ${buttonColors.primary}`, // .button--primary, .button--cta\n primaryDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.isDisabled} ${buttonTypes.primary}`,\n primarySmall: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonTypes.primary} ${buttonColors.primary}`,\n primarySmallDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.isDisabled} ${buttonTypes.primary} `,\n primaryQuiet: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonColors.quiet}`,\n primaryQuietDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`,\n primarySmallQuiet: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.quiet} ${buttonColors.quiet}`,\n primarySmallQuietDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`,\n primaryLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.inProgress} ${buttonTypes.primary}`,\n primarySmallLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.inProgress} ${buttonTypes.primary}`,\n primarySmallQuietLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.inProgress} ${buttonTypes.primary}`,\n primaryQuietLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.inProgress}`,\n\n utility: `${buttonSizes.utility} ${buttonTextSizes.medium} ${buttonTypes.utility} ${buttonColors.utility}`, // .button--utility\n utilityDisabled: `${buttonSizes.utility} ${buttonTextSizes.medium} ${buttonTypes.utility} ${buttonVariants.isDisabled}`,\n utilityQuiet: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.utilityQuiet} ${buttonColors.utilityQuiet}`, // .button--utility-flat\n utilityQuietDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.utilityQuiet} ${buttonVariants.isDisabled}`,\n utilitySmall: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonTypes.utility} ${buttonColors.utility}`,\n utilitySmallDisabled: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonTypes.utility} ${buttonVariants.isDisabled}`,\n utilitySmallQuiet: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonVariants.utilityQuiet} ${buttonColors.utilityQuiet}`,\n utilitySmallQuietDisabled: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonVariants.utilityQuiet} ${buttonVariants.isDisabled}`,\n utilityLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.utility} ${buttonVariants.inProgress}`,\n utilitySmallLoading: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonTypes.utility} ${buttonVariants.inProgress}`,\n utilityQuietLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.inProgress} ${buttonVariants.utilityQuiet}`,\n utilitySmallQuietLoading: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonVariants.inProgress} ${buttonVariants.utilityQuiet}`,\n\n negative: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.negative} ${buttonColors.destructive}`, // .button--destructive\n negativeDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.negative} ${buttonVariants.isDisabled}`,\n negativeQuiet: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.negativeQuiet} ${buttonColors.negativeQuiet}`, // .button--destructive-flat\n negativeQuietDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.negativeQuiet}${buttonVariants.isDisabled}`,\n negativeSmall: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonTypes.negative} ${buttonColors.destructive}`,\n negativeSmallDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonTypes.negative} ${buttonVariants.isDisabled}`,\n negativeSmallQuiet: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.negativeQuiet} ${buttonColors.negativeQuiet}`,\n negativeSmallQuietDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.negativeQuiet} ${buttonVariants.isDisabled}`,\n negativeLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.negative} ${buttonVariants.inProgress}`,\n negativeSmallLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.inProgress} ${buttonTypes.negative}`,\n negativeQuietLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.negativeQuiet} ${buttonTypes.negative} ${buttonVariants.inProgress}`,\n negativeSmallQuietLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.negativeQuiet} ${buttonVariants.inProgress}`,\n\n pill: `${buttonSizes.pill} ${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonColors.pill}`, // .button--pill\n pillSmall: `${buttonSizes.pillSmall} ${buttonTextSizes.xsmall} ${buttonTypes.pill} ${buttonColors.pill}`,\n pillLoading: `${buttonSizes.pill} ${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonVariants.inProgress}`,\n pillSmallLoading: `${buttonSizes.pillSmall} ${buttonTextSizes.xsmall} ${buttonTypes.pill} ${buttonVariants.inProgress}`,\n\n link: `${buttonSizes.link} ${buttonTextSizes.medium} ${buttonTypes.link}`,\n linkSmall: `${buttonSizes.link} ${buttonTextSizes.xsmall} ${buttonTypes.link}`,\n linkAsButton: 'inline-block active:no-underline hover:no-underline focus:no-underline text-center',\n a11y: 'sr-only',\n fullWidth: 'w-full max-w-full',\n contentWidth: 'max-w-max',\n};\n\nexport const buttonGroup = {\n wrapper: 'inline-flex rounded-4 overflow-hidden',\n raised: 'shadow-s',\n vertical: 'flex-col',\n nonOutlinedVertical: 'divide-y',\n nonOutlinedHorizontal: 'divide-x',\n};\n\nexport const buttonGroupItem = {\n wrapper: 'relative s-text',\n outlined: 'border hover:z-30',\n outlinedVertical: '-mb-1 last:mb-0 first:rounded-lt-4 first:rounded-rt-4 last:rounded-lb-4 last:rounded-rb-4',\n outlinedHorizontal: '-mr-1 last:mr-0 first:rounded-lt-4 first:rounded-lb-4 last:rounded-rt-4 last:rounded-rb-4',\n outlinedVerticalResets: 'px-1 pt-1 last:pb-1 -mb-1 last:mb-0',\n outlinedHorizontalResets: 'py-1 pl-1 last:pr-1 -mr-1 last:mr-0',\n outlinedUnselected: 'border-[--w-color-buttongroup-utility-border] active:border-[--w-color-buttongroup-utility-border-selected]',\n outlinedSelected: 'active:border-[--w-color-buttongroup-utility-border-selected]',\n unselected:\n 's-bg hover:bg-[--w-color-buttongroup-utility-background-hover] active:s-text active:bg-[--w-color-buttongroup-utility-background-selected]',\n selected: 'z-30 bg-[--w-color-buttongroup-utility-background-selected]',\n};\n\nexport const modal = {\n backdrop:\n '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]',\n 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',\n content: 'block overflow-y-auto overflow-x-hidden last-child:mb-0 grow shrink px-16 sm:px-32 relative',\n footer: 'flex justify-end shrink-0 px-16 sm:px-32',\n transitionTitle: 'transition-all duration-300',\n transitionTitleCenter: 'justify-self-center self-center',\n transitionTitleColSpan: 'col-span-2',\n title:\n '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',\n titleText: 'mb-0 h4 sm:h3',\n titleButton: `${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonColors.pill} sm:min-h-[44px] sm:min-w-[44px] min-h-[32px] min-w-[32px]`,\n titleButtonLeft: '-ml-8 sm:-ml-12 justify-self-start',\n titleButtonRight: '-mr-8 sm:-mr-12 justify-self-end',\n titleButtonIcon: 'h-16 w-16 sm:h-24 sm:w-24',\n titleButtonIconRotated: 'transform rotate-90',\n};\n\nexport const modalElement = {\n // several items in here are 'resets' for the <dialog> element\n dialogEl:\n 'bg-transparent backface-hidden w-unset h-unset max-w-unset max-h-unset p-0 m-auto border-0 inset-0 open:flex open:fixed sm:place-content-center sm:place-items-center items-end [--w-modal-max-height:80%] [--w-modal-width:640px]',\n dialogInner:\n 'transition-all relative pb-safe-[32] sm:pb-32 shadow-m max-h-[--w-modal-max-height] min-h-[--w-modal-min-height] w-[--w-modal-width] h-[--w-modal-height] ease-in-out backface-hidden will-change-height rounded-8 sm:mx-16 s-bg flex flex-col overflow-hidden lt-sm:rounded-b-0',\n contentSlot: 'block overflow-y-auto overflow-x-hidden last-child:mb-0 grow shrink px-16 sm:px-32 relative',\n header: 'relative pb-8',\n headerTitleBar: 'pt-16 sm:pt-24 px-16 sm:px-32 grid gap-12 grid-cols-[auto_1fr_auto] items-start shrink-0!',\n headerButton:\n 'sm:min-h-[32px] sm:min-w-[32px] min-h-[40px] min-w-[40px] text-m leading-[24] p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding font-bold focusable transition-colors ease-in-out',\n headerButtonLeft:\n '-ml-8 s-icon bg-transparent hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]',\n headerCloseButton:\n '-mr-8 s-icon bg-transparent hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]',\n headerCloseButtonOnImage: `absolute right-8 top-8 z-10 s-color-inverted bg-[var(--w-black)/70] hover:bg-[var(--w-black)/85] active:bg-[var(--w-black)] s-text-inverted`,\n headerTitle: 'mb-0 t3 self-center',\n headerTitleWithBackButton: 'justify-self-center',\n headerTitleWithoutBackButton: 'col-span-2',\n headerTitleWithTopArea: 'pt-16 px-16 sm:px-32',\n footer: 'flex justify-end shrink-0 px-16 sm:px-32 pt-24',\n};\n\nexport const alert = {\n wrapper: 'flex p-16 border border-l-4 rounded-4 s-text',\n willChangeHeight: 'will-change-height',\n textWrapper: 'last-child:mb-0 text-s',\n title: 'text-s',\n icon: 'w-16 mr-8 min-w-16',\n negative: 's-border-negative-subtle s-border-l-negative s-bg-negative-subtle',\n negativeIcon: 's-icon-negative',\n positive: 's-border-positive-subtle s-border-l-positive s-bg-positive-subtle',\n positiveIcon: 's-icon-positive',\n warning: 's-border-warning-subtle s-border-l-warning s-bg-warning-subtle',\n warningIcon: 's-icon-warning',\n info: 's-border-info-subtle s-border-l-info s-bg-info-subtle',\n infoIcon: 's-icon-info',\n};\n\nexport const input = {\n // wrapper classes\n wrapper: 'relative',\n // input classes\n base: 'block text-m leading-m mb-0 px-8 py-12 rounded-4 w-full focusable focus:[--w-outline-offset:-2px] caret-current', // true\n default: 'border-1 s-text s-bg s-border hover:s-border-hover active:s-border-selected', // !isInvalid && !isDisabled && !isReadOnly\n disabled: 'border-1 s-text-disabled s-bg-disabled-subtle s-border-disabled pointer-events-none', // !isInvalid && isDisabled && !isReadOnly\n invalid: 'border-1 s-text-negative s-bg s-border-negative hover:s-border-negative-hover outline-[--w-s-color-border-negative]!', // isInvalid && !isDisabled && !isReadOnly\n readOnly: 'pl-0 bg-transparent pointer-events-none', // !isInvalid && !isDisabled && isReadOnly\n placeholder: 'placeholder:s-text-placeholder',\n suffix: 'pr-40',\n prefix: 'pl-[var(--w-prefix-width,_40px)]',\n // textarea classes\n textArea: 'min-h-[42] sm:min-h-[45]',\n};\n\nexport const select = {\n base: 'block text-m mb-0 py-12 pr-32 rounded-4 w-full focusable focus:[--w-outline-offset:-2px] appearance-none cursor-pointer caret-current',\n default: 's-text s-bg pl-8 border-1 s-border hover:s-border-hover active:s-border-active',\n disabled:\n 's-text-disabled s-bg-disabled-subtle pl-8 border-1 s-border-disabled hover:s-border-disabled active:s-border-disabled pointer-events-none',\n invalid:\n 's-text s-bg pl-8 border-1 s-border-negative hover:s-border-negative-hover active:s-border-active outline-[--w-s-color-border-negative]!',\n readOnly: 's-text bg-transparent pl-0 border-0 pointer-events-none before:hidden',\n wrapper: 'relative',\n selectWrapper: `relative before:block before:absolute before:right-0 before:bottom-0 before:w-32 before:h-full before:pointer-events-none `,\n chevron: 'block absolute top-[30%] right-0 bottom-0 w-32 h-full s-icon pointer-events-none cursor-pointer',\n chevronDisabled: 'opacity-25',\n};\n\nexport const label = {\n base: 'antialiased block relative text-s font-bold pb-4 cursor-pointer s-text',\n optional: 'pl-8 font-normal text-s s-text-subtle',\n};\n\nexport const helpText = {\n base: 'text-xs mt-4 block',\n color: 's-text-subtle',\n colorInvalid: 's-text-negative',\n};\n\nconst prefixSuffixWrapper =\n 'absolute top-0 bottom-0 flex justify-center items-center focusable rounded-4 focus:[--w-outline-offset:-2px] bg-transparent ';\n\nexport const suffix = {\n wrapper: prefixSuffixWrapper + 'right-0',\n wrapperWithLabel: 'w-max pr-12',\n wrapperWithIcon: 'w-40',\n label: 'antialiased block relative cursor-default pb-0 font-bold text-xs s-text',\n};\n\nexport const prefix = {\n wrapper: prefixSuffixWrapper + 'left-0',\n wrapperWithLabel: 'w-max pl-12',\n wrapperWithIcon: 'w-40',\n label: 'antialiased block relative cursor-default pb-0 font-bold text-xs s-text',\n};\n\nexport const breadcrumbs = {\n wrapper: 'flex space-x-8',\n text: 's-text',\n link: 's-text-link',\n separator: 'select-none s-icon',\n a11y: 'sr-only',\n};\n\nexport const toggle = {\n // wrapper classes\n field: 'relative text-m', // true\n wrapper: 'relative py-1', // true\n wrapperRadioButtons: 'inline-flex font-bold rounded-8 focus-within:focusable', // isRadioButton && !isEqualWidth\n wrapperRadioButtonsJustified: 'flex font-bold rounded-8 focus-within:focusable', // isRadioButton && isEqualWidth,\n\n // group classes\n radioButtonsGroup: 'group', // isRadioButton\n radioButtonsGroupJustified: 'grow-1 shrink-0 basis-auto', // isRadioButton && isEqualWidth\n\n // input classes\n input: 'peer',\n a11y: 'sr-only',\n\n // label classes\n label:\n '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', // !isRadioButton\n labelBefore: 'before:content-[\"\"] before:block', // !isRadioButton && !isIndeterminate\n checkbox:\n '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', // isCheckbox && !isIndeterminate && !isInvalid && !isDisabled\n checkboxInvalid:\n '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', // isCheckbox && !isIndeterminate && isInvalid && !isDisabled\n checkboxDisabled:\n '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', // isCheckbox && !isIndeterminate && !isInvalid && isDisabled\n indeterminate:\n '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', // isCheckbox && isIndeterminate && !isInvalid && !isDisabled\n indeterminateInvalid:\n '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', // isCheckbox && isIndeterminate && isInvalid && !isDisabled\n indeterminateDisabled:\n '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', // isCheckbox && isIndeterminate && !isInvalid && isDisabled\n radio:\n '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', // isRadio && !isDisabled && !isInvalid\n radioInvalid:\n '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', // isRadio && isInvalid && !isDisabled\n radioDisabled:\n 'before:s-bg-disabled-subtle before:s-border-disabled pointer-events-none before:rounded-full peer-checked:before:border-[6]', // isRadio && !isInvalid && isDisabled\n radioButtonsLabel:\n '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', // isRadioButtons\n radioButtonsRegular: 'text-s py-8 pl-12 pr-14', // isRadioButtons && !isSmall\n radioButtonsSmall: 'text-xs py-[5px] px-[8px]', // isRadioButtons && isSmall\n};\n\nexport const deadToggle = {\n wrapper: `${toggle.wrapper} h-20 w-20 pointer-events-none`,\n input: `${toggle.input} hidden`,\n inputVue: 'hidden',\n labelVue: '-mt-2',\n labelRadio: `${toggle.label} ${toggle.labelBefore} ${toggle.radio}`,\n labelCheckbox: `${toggle.label} ${toggle.labelBefore} ${toggle.checkbox}`,\n};\n\nexport const clickable = {\n toggle: 'absolute inset-0 h-full w-full appearance-none cursor-pointer focusable focusable-inset',\n label: 'antialiased block relative text-s font-bold s-text px-12 py-8 cursor-pointer focusable focusable-inset',\n buttonOrLink: 'bg-transparent focusable',\n buttonOrLinkStretch: 'inset-0 absolute',\n};\n\nexport const combobox = {\n wrapper: 'relative',\n base: 'absolute left-0 right-0 s-bg pb-4 rounded-8 overflow-hidden shadow-m',\n listbox: 'm-0 p-0 select-none list-none',\n option: 'block cursor-pointer p-8',\n optionUnselected: 'hover:s-bg-hover',\n optionSelected: 's-bg-selected hover:s-bg-selected-hover',\n textMatch: 'font-bold',\n a11y: 'sr-only',\n};\n\nexport const attention = {\n base: 'border-2 relative flex items-start',\n tooltip: 's-bg-inverted border-[--w-s-color-background-inverted] shadow-m s-text-inverted-static rounded-4 py-6 px-8',\n callout: 'bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8',\n 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',\n popover:\n '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',\n\n arrowBase: 'absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform',\n arrowDirectionLeftStart: '-left-[8px]',\n arrowDirectionLeft: '-left-[8px]',\n arrowDirectionLeftEnd: '-left-[8px]',\n arrowDirectionRightStart: '-right-[8px]',\n arrowDirectionRight: '-right-[8px]',\n arrowDirectionRightEnd: '-right-[8px]',\n arrowDirectionBottomStart: '-bottom-[8px]',\n arrowDirectionBottom: '-bottom-[8px]',\n arrowDirectionBottomEnd: '-bottom-[8px]',\n arrowDirectionTopStart: '-top-[8px]',\n arrowDirectionTop: '-top-[8px]',\n arrowDirectionTopEnd: '-top-[8px]',\n arrowTooltip: 's-bg-inverted border-[--w-s-color-background-inverted]',\n arrowCallout: 'bg-[--w-color-callout-background] border-[--w-color-callout-border]',\n arrowPopover: 'bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300]',\n arrowHighlight: 'bg-[--w-color-callout-background] border-[--w-color-callout-border]',\n\n content: 'last-child:mb-0',\n notCallout: 'absolute z-50',\n closeBtn: `${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonColors.pill} justify-self-end -mr-8 ml-8`,\n};\n\nexport const pagination = {\n link: 'hover:no-underline focus:no-underline focusable inline-flex justify-center items-center transition-colors ease-in-out min-h-[44px] min-w-[44px] p-4 rounded-full border-0 hover:bg-clip-padding',\n currentPage: 'block md:hidden p-8 font-bold',\n icon: 's-icon hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]',\n containerNav: 'flex items-center justify-center p-8',\n a11y: 'sr-only',\n pages: 'hidden md:block s-text-link',\n active: 's-bg-primary s-text-inverted',\n notActive: 'hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]',\n};\n\n// remove these in v3\nexport const backwardsCompatibleClasses = {\n removedActiveTrack: 'top-[19px]',\n};\n", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return supportedLocales.find((locale) => usedLocale === locale || usedLocale.toLowerCase().includes(locale)) || defaultLocale;\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g LANG environment variable to be set on the server.\n */\n const serverLocale = process.env.NMP_LANGUAGE || Intl.DateTimeFormat().resolvedOptions().locale;\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document.documentElement.lang;\n return getSupportedLocale(htmlLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages,\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages,\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "import { classMap } from 'lit/directives/class-map.js';\n\nconst camelCaseToKebabCase = (str) => str.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();\n\n// Source: https://medium.com/@dayton-bobbitt/generating-attributes-for-litelement-properties-f972ef658137\nexport function kebabCaseAttributes(constructor) {\n return class extends constructor {\n static createProperty(name, options) {\n let customOptions = options;\n\n // derive the attribute name if not already defined or disabled\n if (typeof options?.attribute === 'undefined' || options?.attribute === true) {\n customOptions = Object.assign({}, options, {\n attribute: camelCaseToKebabCase(name.toString()),\n });\n }\n\n super.createProperty(name, customOptions);\n }\n };\n}\n\nexport function classes(defn) {\n const classes = [];\n for (const [key, value] of Object.entries(defn)) {\n if (value) classes.push(key);\n }\n return classes.join(' ');\n}\n\nexport function fclasses(definition) {\n const defn = {};\n for (const [key, value] of Object.entries(definition)) {\n for (const className of key.split(' ')) {\n defn[className] = value;\n }\n }\n return classMap(defn);\n}\n\nexport function generateRandomId() {\n return `m${Math.random().toString(36).slice(2)}`;\n}\n", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"attention.aria.callout\\\":[\\\"En gr\u00F8n taleboble der introducerer noget nyt\\\"],\\\"attention.aria.close\\\":[\\\"Luk\\\"],\\\"attention.aria.highlight\\\":[\\\"En opm\u00E6rksomhedsskabende taleboble med vigtig information\\\"],\\\"attention.aria.pointingDown\\\":[\\\"peger nedad\\\"],\\\"attention.aria.pointingLeft\\\":[\\\"peger til venstre\\\"],\\\"attention.aria.pointingRight\\\":[\\\"peger til h\u00F8jre\\\"],\\\"attention.aria.pointingUp\\\":[\\\"peger opad\\\"],\\\"attention.aria.popover\\\":[\\\"En hvid taleboble med mere information\\\"],\\\"attention.aria.tooltip\\\":[\\\"En sort taleboble med flere oplysninger\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"attention.aria.callout\\\":[\\\"A green speech bubble introducing something new\\\"],\\\"attention.aria.close\\\":[\\\"Close\\\"],\\\"attention.aria.highlight\\\":[\\\"An attention speech bubble with important information\\\"],\\\"attention.aria.pointingDown\\\":[\\\"pointing down\\\"],\\\"attention.aria.pointingLeft\\\":[\\\"pointing left\\\"],\\\"attention.aria.pointingRight\\\":[\\\"pointing right\\\"],\\\"attention.aria.pointingUp\\\":[\\\"pointing up\\\"],\\\"attention.aria.popover\\\":[\\\"A white speech bubble providing additional information\\\"],\\\"attention.aria.tooltip\\\":[\\\"A black speech bubble providing complementary information\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"attention.aria.callout\\\":[\\\"Vihre\u00E4 puhekupla, joka esittelee jotain uutta\\\"],\\\"attention.aria.close\\\":[\\\"Sulje\\\"],\\\"attention.aria.highlight\\\":[\\\"Puhekupla, joka sis\u00E4lt\u00E4\u00E4 t\u00E4rke\u00E4\u00E4 tietoa\\\"],\\\"attention.aria.pointingDown\\\":[\\\"osoittaa alas\\\"],\\\"attention.aria.pointingLeft\\\":[\\\"osoittaa vasemmalle\\\"],\\\"attention.aria.pointingRight\\\":[\\\"osoittaa oikealle\\\"],\\\"attention.aria.pointingUp\\\":[\\\"osoittaa yl\u00F6s\\\"],\\\"attention.aria.popover\\\":[\\\"Valkoinen puhekupla, joka tarjoaa lis\u00E4tietoa\\\"],\\\"attention.aria.tooltip\\\":[\\\"Musta puhekupla, joka tarjoaa t\u00E4ydent\u00E4v\u00E4\u00E4 tietoa\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"attention.aria.callout\\\":[\\\"Gr\u00F8nn taleboble som introduserer noe nytt\\\"],\\\"attention.aria.close\\\":[\\\"Lukk\\\"],\\\"attention.aria.highlight\\\":[\\\"En uthevet taleboble med viktig informasjon\\\"],\\\"attention.aria.pointingDown\\\":[\\\"peker ned\\\"],\\\"attention.aria.pointingLeft\\\":[\\\"peker til venstre\\\"],\\\"attention.aria.pointingRight\\\":[\\\"peker til h\u00F8yre\\\"],\\\"attention.aria.pointingUp\\\":[\\\"peker opp\\\"],\\\"attention.aria.popover\\\":[\\\"En hvit taleboble som gir tilleggsinformasjon\\\"],\\\"attention.aria.tooltip\\\":[\\\"En svart taleboble som forklarer konteksten\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"attention.aria.callout\\\":[\\\"En gr\u00F6n pratbubbla som introducerar n\u00E5got nytt\\\"],\\\"attention.aria.close\\\":[\\\"St\u00E4ng\\\"],\\\"attention.aria.highlight\\\":[\\\"En pratbubbla med viktig information\\\"],\\\"attention.aria.pointingDown\\\":[\\\"pekar ned\\\"],\\\"attention.aria.pointingLeft\\\":[\\\"pekar v\u00E4nster\\\"],\\\"attention.aria.pointingRight\\\":[\\\"pekar h\u00F6ger\\\"],\\\"attention.aria.pointingUp\\\":[\\\"pekar upp\\\"],\\\"attention.aria.popover\\\":[\\\"En vit pratbubbla som ger ytterligare information\\\"],\\\"attention.aria.tooltip\\\":[\\\"En svart pratbubbla som ger kompletterande information\\\"]}\");", "// @warp-css;\nimport { html, LitElement } from 'lit';\n\nimport { classNames } from '@chbphone55/classnames';\nimport { property } from 'lit/decorators.js';\n\nimport { reset } from '../styles';\n\nimport { styles } from './styles';\n\n/**\n * `w-badge` is used for showing a small amount of non-interactive color-categorized metadata, like a status or count.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-badge--docs)\n */\nclass WarpBadge extends LitElement {\n @property({ type: String, reflect: true })\n variant: 'neutral' | 'info' | 'positive' | 'warning' | 'negative' | 'disabled' | 'price' | 'sponsored' = 'neutral';\n\n @property({ type: String, reflect: true })\n position: 'top-left' | 'top-right' | 'bottom-right' | 'bottom-left';\n\n static styles = [reset, styles];\n\n /** @internal */\n get _class() {\n return classNames([\n 'py-4 px-8 border-0 rounded-4 text-xs inline-flex',\n this.variant === 'neutral' && 'bg-[--w-color-badge-neutral-background] s-text',\n this.variant === 'info' && 'bg-[--w-color-badge-info-background] s-text',\n this.variant === 'positive' && 'bg-[--w-color-badge-positive-background] s-text',\n this.variant === 'warning' && 'bg-[--w-color-badge-warning-background] s-text',\n this.variant === 'negative' && 'bg-[--w-color-badge-negative-background] s-text',\n this.variant === 'disabled' && 's-bg-disabled s-text',\n this.variant === 'price' && 'bg-[--w-black/70] s-text-inverted-static',\n this.variant === 'sponsored' && 'bg-[--w-color-badge-sponsored-background] s-text',\n !!this.position && 'absolute backdrop-blur',\n this.position === 'top-left' && 'rounded-tl-0 rounded-tr-0 rounded-bl-0 top-0 left-0',\n this.position === 'top-right' && 'rounded-tl-0 rounded-tr-0 rounded-br-0 top-0 right-0',\n this.position === 'bottom-right' && 'rounded-tr-0 rounded-br-0 rounded-bl-0 bottom-0 right-0',\n this.position === 'bottom-left' && 'rounded-tl-0 rounded-br-0 rounded-bl-0 bottom-0 left-0',\n ]);\n }\n\n render() {\n return html`\n <div class=\"${this._class}\">\n <slot></slot>\n </div>\n `;\n }\n}\n\nif (!customElements.get('w-badge')) {\n customElements.define('w-badge', WarpBadge);\n}\n\nexport { WarpBadge };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-badge': WarpBadge;\n }\n}\n", "import { css } from 'lit'; export const styles = css`*,: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}.backdrop-blur{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.bg-\\\\[--w-black\\\\/70\\\\]{background-color:rgba(var(--w-rgb-black),.7)}.bg-\\\\[--w-color-badge-info-background\\\\]{background-color:var(--w-color-badge-info-background)}.bg-\\\\[--w-color-badge-negative-background\\\\]{background-color:var(--w-color-badge-negative-background)}.bg-\\\\[--w-color-badge-neutral-background\\\\]{background-color:var(--w-color-badge-neutral-background)}.bg-\\\\[--w-color-badge-positive-background\\\\]{background-color:var(--w-color-badge-positive-background)}.bg-\\\\[--w-color-badge-sponsored-background\\\\]{background-color:var(--w-color-badge-sponsored-background)}.bg-\\\\[--w-color-badge-warning-background\\\\]{background-color:var(--w-color-badge-warning-background)}.border-0{border-width:0}.rounded-4{border-radius:4px}.rounded-bl-0{border-bottom-left-radius:0}.rounded-br-0{border-bottom-right-radius:0}.rounded-tl-0{border-top-left-radius:0}.rounded-tr-0{border-top-right-radius:0}.inline-flex{display:inline-flex}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.absolute{position:absolute}.static{position:static}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-text{color:var(--w-s-color-text)}.s-text-inverted-static{color:var(--w-s-color-text-inverted-static)}.px-8{padding-left:.8rem;padding-right:.8rem}.py-4{padding-top:.4rem;padding-bottom:.4rem}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}`;\n", "// @warp-css;\nimport { html, LitElement, nothing } from 'lit';\n\nimport { classNames } from '@chbphone55/classnames';\nimport { property } from 'lit/decorators.js';\n\nimport { reset } from '../styles';\n\nimport { styles } from './styles';\n\n/**\n * Box is a layout component used for separating content areas on a page.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-box--docs)\n */\nclass WarpBox extends LitElement {\n @property({ type: Boolean, reflect: true })\n bleed: boolean;\n\n @property({ type: Boolean, reflect: true })\n bordered: boolean;\n\n @property({ type: Boolean, reflect: true })\n info: boolean;\n\n @property({ type: Boolean, reflect: true })\n neutral: boolean;\n\n @property({ type: String, reflect: true })\n role: string;\n\n // Slotted elements remain in lightDOM which allows for control of their style outside of shadowDOM.\n // ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,\n // so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.\n // https://stackoverflow.com/a/61631668\n static styles = [reset, styles];\n\n /** @internal */\n get _class() {\n return classNames([\n 'group block relative break-words last-child:mb-0 p-16 rounded-8',\n this.bleed && '-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8',\n this.info && 's-bg-info-subtle',\n this.neutral && 's-surface-sunken',\n this.bordered && 'border-2 s-border s-bg',\n ]);\n }\n\n /** @internal */\n get _optOutRoleWithDefault() {\n return this.role === '' ? nothing : this.role ?? 'region';\n }\n\n render() {\n return html`\n <div role=\"${this._optOutRoleWithDefault}\" class=\"${this._class}\">\n <slot></slot>\n </div>\n `;\n }\n}\n\nif (!customElements.get('w-box')) {\n customElements.define('w-box', WarpBox);\n}\n\nexport { WarpBox };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-box': WarpBox;\n }\n}\n", "import { css } from 'lit'; export const styles = css`*,: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}.border-2{border-width:2px}.rounded-8{border-radius:8px}.rounded-l-0{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-0{border-top-right-radius:0;border-bottom-right-radius:0}.block{display:block}.relative{position:relative}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-info-subtle{background-color:var(--w-s-color-background-info-subtle)}.s-border{border-color:var(--w-s-color-border)}.s-surface-sunken{background-color:var(--w-s-color-surface-sunken)}.-mx-16{margin-left:-1.6rem;margin-right:-1.6rem}.last-child\\\\:mb-0>:last-child{margin-bottom:0}.p-16{padding:1.6rem}.break-words{overflow-wrap:break-word}@media (min-width:480px){.sm\\\\:rounded-8{border-radius:8px}.sm\\\\:mx-0{margin-left:0;margin-right:0}}`;\n", "// @warp-css;\n\nimport { html, LitElement, TemplateResult } from 'lit';\n\nimport { i18n } from '@lingui/core';\nimport { interleave } from '@warp-ds/core/breadcrumbs';\nimport { property } from 'lit/decorators.js';\n\nimport { activateI18n } from '../i18n';\nimport { reset } from '../styles.js';\n\nimport { messages as daMessages } from './locales/da/messages.mjs';\nimport { messages as enMessages } from './locales/en/messages.mjs';\nimport { messages as fiMessages } from './locales/fi/messages.mjs';\nimport { messages as nbMessages } from './locales/nb/messages.mjs';\nimport { messages as svMessages } from './locales/sv/messages.mjs';\nimport { styles } from './styles.js';\n\nexport const ccBreadcrumbs = {\n wrapper: 'flex space-x-8',\n text: 's-text',\n link: 's-text-link',\n separator: 'select-none s-icon',\n a11y: 'sr-only',\n};\n\nconst separator = html`<span class=${ccBreadcrumbs.separator}>/</span>`;\n\n/**\n * Breadcrumbs show the navigation structure for the current location.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-breadcrumbs--docs)\n */\nclass WarpBreadcrumbs extends LitElement {\n @property({ attribute: 'aria-label', type: String })\n ariaLabel: string;\n\n static styles = [reset, styles];\n\n constructor() {\n super();\n activateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n this.ariaLabel = i18n._({\n id: 'breadcrumbs.ariaLabel',\n message: 'You are here',\n comment: 'Default screen reader message for the breadcrumb component',\n });\n }\n\n /** @internal */\n _children: Array<Element | TemplateResult>;\n\n connectedCallback() {\n super.connectedCallback();\n // Grab existing children at the point that the component is added to the page\n const flattenedChildren = Array.from(this.children)\n .flat(Infinity)\n .filter((child) => child);\n const styledChildren = flattenedChildren.map((child, index) => {\n if (typeof child === 'string') {\n const isLastEl = index === this.children.length - 1;\n return html`<span class=${ccBreadcrumbs.text} aria-current=${isLastEl ? 'page' : undefined}>${child}</span>`;\n }\n child.classList.add(child.tagName === 'A' ? ccBreadcrumbs.link : ccBreadcrumbs.text);\n return child;\n });\n\n // Interleave '/' separator with breadcrumbs\n this._children = interleave(styledChildren, separator);\n }\n\n render() {\n return html`\n <nav aria-labelledby=\"breadCrumbLabel\">\n <h2 id=\"breadCrumbLabel\" class=${ccBreadcrumbs.a11y}>${this.ariaLabel}</h2>\n <div class=${ccBreadcrumbs.wrapper}>${this._children}</div>\n </nav>\n `;\n }\n}\n\nif (!customElements.get('w-breadcrumbs')) {\n customElements.define('w-breadcrumbs', WarpBreadcrumbs);\n}\n\nexport { WarpBreadcrumbs };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-breadcrumbs': WarpBreadcrumbs;\n }\n}\n", "/**\n * Inject a separator between each item in a list\n * @param array List of items\n * @param separator Element to be interleaved between each item\n * @returns\n */\nexport function interleave(array, separator) {\n return array.flatMap((el) => [el, separator]).slice(0, -1);\n}\n", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"breadcrumbs.ariaLabel\\\":[\\\"Du er her\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"breadcrumbs.ariaLabel\\\":[\\\"You are here\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"breadcrumbs.ariaLabel\\\":[\\\"Olet t\u00E4ss\u00E4\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"breadcrumbs.ariaLabel\\\":[\\\"Her er du\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"breadcrumbs.ariaLabel\\\":[\\\"Du \u00E4r h\u00E4r\\\"]}\");", "import { css } from 'lit'; export const styles = css`*,: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}.flex{display:flex}.static{position:static}.s-text{color:var(--w-s-color-text)}.s-text-link{color:var(--w-s-color-text-link)}.s-icon{color:var(--w-s-color-icon)}.space-x-8>:not([hidden])~:not([hidden]){--w-space-x-reverse:0;margin-left:calc(.8rem*calc(1 - var(--w-space-x-reverse)));margin-right:calc(.8rem*var(--w-space-x-reverse))}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.select-none{-webkit-user-select:none;user-select:none}`;\n", "// @warp-css;\n\nimport { html, LitElement, PropertyValues } from 'lit';\n\nimport { classNames } from '@chbphone55/classnames';\nimport { i18n } from '@lingui/core';\nimport { FormControlMixin } from '@open-wc/form-control';\nimport WarpElement from '@warp-ds/elements-core';\nimport { property } from 'lit/decorators.js';\n\nimport { activateI18n } from '../i18n';\nimport '../link';\nimport { reset } from '../styles.js';\n\nimport { messages as daMessages } from './locales/da/messages.mjs';\nimport { messages as enMessages } from './locales/en/messages.mjs';\nimport { messages as fiMessages } from './locales/fi/messages.mjs';\nimport { messages as nbMessages } from './locales/nb/messages.mjs';\nimport { messages as svMessages } from './locales/sv/messages.mjs';\nimport { styles } from './styles.js';\n\ntype ButtonVariant = 'primary' | 'secondary' | 'negative' | 'utility' | 'pill' | 'link';\n\nconst variants = ['primary', 'secondary', 'negative', 'utility', 'pill', 'link'];\n\ntype ButtonType = 'button' | 'submit' | 'reset';\n\nconst buttonDefaultStyling = 'font-bold focusable justify-center transition-colors ease-in-out';\n\nconst buttonColors = {\n primary:\n '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]',\n secondary: 's-text-link s-border s-bg hover:s-bg-hover hover:s-border-hover active:s-bg-active',\n utility: 's-text s-bg hover:s-bg-hover active:s-bg-active s-border hover:s-border-hover active:s-border-active',\n destructive: 's-bg-negative s-text-inverted hover:s-bg-negative-hover active:s-bg-negative-active',\n 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]',\n disabled: 's-text-inverted s-bg-disabled',\n quiet: 'bg-transparent s-text-link hover:s-bg-hover active:s-bg-active',\n utilityQuiet: 's-text bg-transparent hover:s-bg-hover active:s-bg-active',\n negativeQuiet: 'bg-transparent s-text-negative hover:s-bg-negative-subtle-hover active:s-bg-negative-subtle-active',\n loading: 's-text s-bg-subtle',\n link: 's-text-link',\n};\n\nconst buttonTypes = {\n primary: `border-0 rounded-8 ${buttonDefaultStyling}`,\n secondary: `border-2 rounded-8 ${buttonDefaultStyling}`,\n utility: `border rounded-4 ${buttonDefaultStyling}`,\n negative: `border-0 rounded-8 ${buttonDefaultStyling}`,\n pill: `p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${buttonDefaultStyling}`,\n link: `bg-transparent focusable ease-in-out inline active:underline hover:underline focus:underline ${buttonColors.link}`,\n};\n\nconst buttonSizes = {\n xsmall: 'py-6 px-16',\n small: 'py-8 px-16',\n medium: 'py-10 px-14',\n large: 'py-12 px-16',\n utility: 'py-[11px] px-[15px]',\n smallUtility: 'py-[7px] px-[15px]',\n pill: 'min-h-[44px] min-w-[44px]',\n pillSmall: 'min-h-32 min-w-32',\n link: 'p-0',\n};\n\nconst buttonTextSizes = {\n medium: 'text-m leading-[24]',\n xsmall: 'text-xs',\n};\n\nconst buttonVariants = {\n inProgress: `border-transparent animate-inprogress pointer-events-none ${buttonColors.loading}`, // .button--in-progress, a.button--in-progress:visited\n quiet: `border-0 rounded-8 ${buttonDefaultStyling}`,\n utilityQuiet: `border-0 rounded-4 ${buttonDefaultStyling}`,\n negativeQuiet: `border-0 rounded-8 ${buttonDefaultStyling}`,\n isDisabled: `font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${buttonColors.disabled}`, // .button:disabled, .button--is-disabled\n};\n\nexport const ccButton = {\n // Buttontypes\n secondary: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonColors.secondary}`, // .button--secondary, .button--default, .button\n secondaryHref: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonColors.secondary}`,\n secondaryDisabled: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonVariants.isDisabled}`,\n secondarySmall: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonTypes.secondary} ${buttonColors.secondary}`,\n secondarySmallDisabled: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonTypes.secondary} ${buttonVariants.isDisabled}`,\n secondaryQuiet: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonColors.quiet}`,\n secondaryQuietDisabled: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`,\n secondarySmallQuiet: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonVariants.quiet} ${buttonColors.quiet}`,\n secondarySmallQuietDisabled: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`,\n secondaryLoading: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonVariants.inProgress}`,\n secondarySmallLoading: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonTypes.secondary} ${buttonVariants.inProgress}`,\n secondarySmallQuietLoading: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.inProgress}`,\n secondaryQuietLoading: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.inProgress}`,\n\n primary: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.primary} ${buttonColors.primary}`, // .button--primary, .button--cta\n primaryDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.isDisabled} ${buttonTypes.primary}`,\n primarySmall: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonTypes.primary} ${buttonColors.primary}`,\n primarySmallDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.isDisabled} ${buttonTypes.primary} `,\n primaryQuiet: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonColors.quiet}`,\n primaryQuietDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`,\n primarySmallQuiet: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.quiet} ${buttonColors.quiet}`,\n primarySmallQuietDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`,\n primaryLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.inProgress} ${buttonTypes.primary}`,\n primarySmallLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.inProgress} ${buttonTypes.primary}`,\n primarySmallQuietLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.inProgress} ${buttonTypes.primary}`,\n primaryQuietLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.inProgress}`,\n\n utility: `${buttonSizes.utility} ${buttonTextSizes.medium} ${buttonTypes.utility} ${buttonColors.utility}`, // .button--utility\n utilityDisabled: `${buttonSizes.utility} ${buttonTextSizes.medium} ${buttonTypes.utility} ${buttonVariants.isDisabled}`,\n utilityQuiet: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.utilityQuiet} ${buttonColors.utilityQuiet}`, // .button--utility-flat\n utilityQuietDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.utilityQuiet} ${buttonVariants.isDisabled}`,\n utilitySmall: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonTypes.utility} ${buttonColors.utility}`,\n utilitySmallDisabled: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonTypes.utility} ${buttonVariants.isDisabled}`,\n utilitySmallQuiet: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonVariants.utilityQuiet} ${buttonColors.utilityQuiet}`,\n utilitySmallQuietDisabled: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonVariants.utilityQuiet} ${buttonVariants.isDisabled}`,\n utilityLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.utility} ${buttonVariants.inProgress}`,\n utilitySmallLoading: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonTypes.utility} ${buttonVariants.inProgress}`,\n utilityQuietLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.inProgress} ${buttonVariants.utilityQuiet}`,\n utilitySmallQuietLoading: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonVariants.inProgress} ${buttonVariants.utilityQuiet}`,\n\n negative: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.negative} ${buttonColors.destructive}`, // .button--destructive\n negativeDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.negative} ${buttonVariants.isDisabled}`,\n negativeQuiet: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.negativeQuiet} ${buttonColors.negativeQuiet}`, // .button--destructive-flat\n negativeQuietDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.negativeQuiet}${buttonVariants.isDisabled}`,\n negativeSmall: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonTypes.negative} ${buttonColors.destructive}`,\n negativeSmallDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonTypes.negative} ${buttonVariants.isDisabled}`,\n negativeSmallQuiet: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.negativeQuiet} ${buttonColors.negativeQuiet}`,\n negativeSmallQuietDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.negativeQuiet} ${buttonVariants.isDisabled}`,\n negativeLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.negative} ${buttonVariants.inProgress}`,\n negativeSmallLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.inProgress} ${buttonTypes.negative}`,\n negativeQuietLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.negativeQuiet} ${buttonTypes.negative} ${buttonVariants.inProgress}`,\n negativeSmallQuietLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.negativeQuiet} ${buttonVariants.inProgress}`,\n\n pill: `${buttonSizes.pill} ${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonColors.pill}`, // .button--pill\n pillSmall: `${buttonSizes.pillSmall} ${buttonTextSizes.xsmall} ${buttonTypes.pill} ${buttonColors.pill}`,\n pillLoading: `${buttonSizes.pill} ${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonVariants.inProgress}`,\n pillSmallLoading: `${buttonSizes.pillSmall} ${buttonTextSizes.xsmall} ${buttonTypes.pill} ${buttonVariants.inProgress}`,\n\n link: `${buttonSizes.link} ${buttonTextSizes.medium} ${buttonTypes.link}`,\n linkSmall: `${buttonSizes.link} ${buttonTextSizes.xsmall} ${buttonTypes.link}`,\n linkAsButton: 'inline-block active:no-underline hover:no-underline focus:no-underline text-center',\n a11y: 'sr-only',\n fullWidth: 'w-full max-w-full',\n contentWidth: 'max-w-max',\n};\n\n/**\n * Buttons are used to perform actions, widh different visuals for different needs.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-button--docs)\n */\nclass WarpButton extends FormControlMixin(LitElement) {\n static shadowRootOptions = {\n ...WarpElement.shadowRootOptions,\n delegatesFocus: true,\n };\n\n @property({ reflect: true })\n type: ButtonType = 'button';\n\n @property({ type: Boolean, reflect: true })\n autofocus: boolean;\n\n @property({ reflect: true })\n variant: ButtonVariant;\n\n /**\n * @type {boolean}\n */\n @property({ type: Boolean, reflect: true })\n quiet: boolean;\n\n @property({ type: Boolean, reflect: true })\n small: boolean;\n\n @property({ type: Boolean, reflect: true })\n loading: boolean;\n\n @property({ reflect: true })\n href: string;\n\n @property({ reflect: true })\n target: string;\n\n @property({ reflect: true })\n rel: string;\n\n @property({ attribute: 'full-width', type: Boolean, reflect: true })\n fullWidth: boolean;\n\n @property({ attribute: 'button-class', reflect: true })\n buttonClass: string;\n\n @property({ reflect: true })\n name: string;\n\n @property({ reflect: true })\n value: string;\n\n /** @internal */\n ariaValueTextLoading: string;\n\n static styles = [reset, styles];\n\n updated(changedProperties: PropertyValues<this>) {\n if (changedProperties.has('value')) {\n this.setValue(this.value);\n }\n }\n\n constructor() {\n super();\n activateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n this.variant = 'secondary';\n this.ariaValueTextLoading = i18n._({\n id: 'button.aria.loading',\n message: 'Loading...',\n comment: 'Screen reader message for buttons that are loading',\n });\n }\n\n connectedCallback() {\n super.connectedCallback();\n\n if (!variants.includes(this.variant)) {\n throw new Error(`Invalid \"variant\" attribute. Set its value to one of the following:\\n${variants.join(', ')}.`);\n }\n }\n\n firstUpdated() {\n if (this.autofocus) {\n setTimeout(() => this.focus(), 0);\n }\n }\n\n /** @internal */\n get _primaryClasses() {\n return [\n !this.small && !this.quiet && !this.loading && ccButton.primary,\n this.small && !this.quiet && !this.loading && ccButton.primarySmall,\n this.small && this.quiet && !this.loading && ccButton.primarySmallQuiet,\n this.small && this.loading && (this.quiet ? ccButton.primarySmallQuietLoading : ccButton.primarySmallLoading),\n !this.small && this.quiet && !this.loading && ccButton.primaryQuiet,\n !this.small && this.loading && (this.quiet ? ccButton.primaryQuietLoading : ccButton.primaryLoading),\n ];\n }\n\n /** @internal */\n get _secondaryClasses() {\n return [\n !this.small && !this.quiet && !this.loading && ccButton.secondary,\n this.small && !this.quiet && !this.loading && ccButton.secondarySmall,\n this.small && this.loading && (this.quiet ? ccButton.secondarySmallQuietLoading : ccButton.secondarySmallLoading),\n this.small && this.quiet && !this.loading && ccButton.secondarySmallQuiet,\n !this.small && this.quiet && !this.loading && ccButton.secondaryQuiet,\n !this.small && this.loading && (this.quiet ? ccButton.secondaryQuietLoading : ccButton.secondaryLoading),\n ];\n }\n\n /** @internal */\n get _utilityClasses() {\n return [\n !this.small && !this.quiet && !this.loading && ccButton.utility,\n this.small && !this.quiet && !this.loading && ccButton.utilitySmall,\n this.small && this.quiet && !this.loading && ccButton.utilitySmallQuiet,\n this.small && this.loading && (this.quiet ? ccButton.utilitySmallQuietLoading : ccButton.utilitySmallLoading),\n !this.small && this.quiet && !this.loading && ccButton.utilityQuiet,\n !this.small && this.loading && (this.quiet ? ccButton.utilityQuietLoading : ccButton.utilityLoading),\n ];\n }\n\n /** @internal */\n get _negativeClasses() {\n return [\n !this.small && !this.quiet && !this.loading && ccButton.negative,\n this.small && !this.quiet && !this.loading && ccButton.negativeSmall,\n this.small && this.quiet && !this.loading && ccButton.negativeSmallQuiet,\n this.small && this.loading && (this.quiet ? ccButton.negativeSmallQuietLoading : ccButton.negativeSmallLoading),\n !this.small && this.quiet && !this.loading && ccButton.negativeQuiet,\n !this.small && this.loading && (this.quiet ? ccButton.negativeQuietLoading : ccButton.negativeLoading),\n ];\n }\n\n /** @internal */\n get _pillClasses() {\n return [\n !this.loading && (this.small ? ccButton.pillSmall : ccButton.pill),\n this.loading && (this.small ? ccButton.pillSmallLoading : ccButton.pillLoading),\n ];\n }\n\n /** @internal */\n get _linkClasses() {\n return [this.small ? ccButton.linkSmall : ccButton.link];\n }\n /** @internal */\n get _classes() {\n return classNames(this.buttonClass, [\n this.variant === 'primary' && this._primaryClasses,\n this.variant === 'secondary' && this._secondaryClasses,\n this.variant === 'utility' && this._utilityClasses,\n this.variant === 'negative' && this._negativeClasses,\n this.variant === 'pill' && this._pillClasses,\n this.variant === 'link' && this._linkClasses,\n this.href && ccButton.linkAsButton,\n this.fullWidth ? ccButton.fullWidth : ccButton.contentWidth,\n ]);\n }\n\n /** @internal */\n _handleButtonClick() {\n if (this.type === 'submit') this.internals.form.requestSubmit();\n else if (this.type === 'reset') this.internals.form.reset();\n }\n\n render() {\n return html` ${this.href\n ? html`<w-link\n href=${this.href}\n target=${this.target}\n rel=${this.target === '_blank' ? this.rel || 'noopener' : undefined}\n class=${this._classes}>\n <slot></slot>\n </w-link>`\n : html`<button type=${this.type || 'button'} class=${this._classes} @click=\"${this._handleButtonClick}\">\n <slot></slot>\n </button>`}\n ${this.loading\n ? html`<span class=\"sr-only\" role=\"progressbar\" aria-valuenow=\"{0}\" aria-valuetext=${this.ariaValueTextLoading}></span>`\n : null}`;\n }\n}\n\nif (!customElements.get('w-button')) {\n customElements.define('w-button', WarpButton);\n}\n\nexport { WarpButton };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-button': WarpButton;\n }\n}\n", "import { Constructor, CustomValidityState, FormControlInterface, FormValue, IControlHost, validationMessageCallback, Validator } from './types.js';\n\nexport function FormControlMixin<\n TBase extends Constructor<HTMLElement & IControlHost> & { observedAttributes?: string [] }\n>(SuperClass: TBase) {\n class FormControl extends SuperClass {\n /** Wires up control instances to be form associated */\n static get formAssociated(): boolean {\n return true;\n }\n\n /**\n * A list of Validator objects that will be evaluated when a control's form\n * value is modified or optionally when a given attribute changes.\n *\n * When a Validator's callback returns false, the entire form control will\n * be set to an invalid state.\n */\n declare static formControlValidators: Validator[];\n\n /**\n * If set to true the control described should be evaluated and validated\n * as part of a group. Like a radio, if any member of the group's validity\n * changes the the other members should update as well.\n */\n declare static formControlValidationGroup: boolean;\n\n private static get validators(): Validator[] {\n return this.formControlValidators || [];\n }\n\n /**\n * Allows the FormControl instance to respond to Validator attributes.\n * For instance, if a given Validator has a `required` attribute, that\n * validator will be evaluated whenever the host's required attribute\n * is updated.\n */\n static get observedAttributes(): string[] {\n const validatorAttributes = this.validators.map((validator) => validator.attribute).flat();\n\n const observedAttributes = super.observedAttributes || [];\n\n /** Make sure there are no duplicates inside the attributes list */\n const attributeSet = new Set([...observedAttributes, ...validatorAttributes]);\n return [...attributeSet] as string[];\n }\n\n /**\n * Return the validator associated with a given attribute. If no\n * Validator is associated with the attribute, it will return null.\n */\n static getValidator(attribute: string): Validator | null {\n return this.validators.find((validator) => validator.attribute === attribute) || null;\n }\n\n /**\n * Get all validators that are set to react to a given attribute\n * @param {string} attribute - The attribute that has changed\n * @returns {Validator[]}\n */\n static getValidators(attribute: string): Validator[] | null {\n return this.validators.filter(validator => {\n if (validator.attribute === attribute || validator.attribute?.includes(attribute)) {\n return true;\n }\n });\n }\n\n /** The ElementInternals instance for the control. */\n internals = this.attachInternals();\n\n /**\n * Keep track of if the control has focus\n * @private\n */\n #focused = false;\n\n /**\n * Exists to control when an error should be displayed\n * @private\n */\n #forceError = false;\n\n /**\n * Toggles to true whenever the element has been focused. This property\n * will reset whenever the control's formResetCallback is called.\n * @private\n */\n #touched = false;\n\n /** An internal abort controller for cancelling pending async validation */\n #abortController?: AbortController;\n #previousAbortController?: AbortController;\n\n /**\n * Used for tracking if a validation target has been set to manage focus\n * when the control's validity is reported\n */\n #awaitingValidationTarget = true;\n\n /** All of the controls within a root with a matching local name and form name */\n get #formValidationGroup(): NodeListOf<FormControl> {\n const rootNode = this.getRootNode() as HTMLElement;\n const selector = `${this.localName}[name=\"${this.getAttribute('name')}\"]`;\n return rootNode.querySelectorAll<FormControl>(selector);\n }\n\n /**\n * Acts as a cache for the current value so the value can be re-evaluated\n * whenever an attribute changes or on some other event.\n */\n #value: FormValue = '';\n\n /**\n * Set this[touched] and this[focused]\n * to true when the element is focused\n * @private\n */\n #onFocus = (): void => {\n this.#touched = true;\n this.#focused = true;\n this.#shouldShowError();\n };\n\n /**\n * Reset this[focused] on blur\n * @private\n */\n #onBlur = (): void => {\n this.#focused = false;\n\n this.#runValidators(this.shouldFormValueUpdate() ? this.#value : '');\n\n /**\n * Set forceError to ensure error messages persist until\n * the value is changed.\n */\n if (!this.validity.valid && this.#touched) {\n this.#forceError = true;\n }\n const showError = this.#shouldShowError();\n if (this.validationMessageCallback) {\n this.validationMessageCallback(showError ? this.internals.validationMessage : '');\n }\n };\n\n /**\n * For the show error state on invalid\n * @private\n */\n #onInvalid = (): void => {\n if (this.#awaitingValidationTarget && this.validationTarget) {\n this.internals.setValidity(\n this.validity,\n this.validationMessage,\n this.validationTarget\n );\n this.#awaitingValidationTarget = false;\n }\n this.#touched = true;\n this.#forceError = true;\n this.#shouldShowError();\n this?.validationMessageCallback?.(this.showError ? this.internals.validationMessage : '');\n };\n\n /** Return a reference to the control's form */\n get form(): HTMLFormElement {\n return this.internals.form;\n }\n\n /**\n * Will return true if it is recommended that the control shows an internal\n * error. If using this property, it is wise to listen for 'invalid' events\n * on the element host and call preventDefault on the event. Doing this will\n * prevent browsers from showing a validation popup.\n */\n get showError(): boolean {\n return this.#shouldShowError();\n }\n\n /**\n * Forward the internals checkValidity method\n * will return the valid state of the control.\n */\n checkValidity(): boolean {\n return this.internals.checkValidity();\n }\n\n /** The element's validity state */\n get validity(): ValidityState {\n return this.internals.validity;\n }\n\n /**\n * The validation message shown by a given Validator object. If the control\n * is in a valid state this should be falsy.\n */\n get validationMessage(): string {\n return this.internals.validationMessage;\n }\n\n /* eslint-disable @typescript-eslint/no-explicit-any */\n constructor(...args: any[]) {\n super(...args);\n this.addEventListener?.('focus', this.#onFocus);\n this.addEventListener?.('blur', this.#onBlur);\n this.addEventListener?.('invalid', this.#onInvalid);\n this.setValue(null);\n }\n\n attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\n super.attributeChangedCallback?.(name, oldValue, newValue);\n\n /**\n * Check to see if a Validator is associated with the changed attribute.\n * If one exists, call control's validate function which will perform\n * control validation.\n */\n const proto = this.constructor as typeof FormControl;\n const validators = proto.getValidators(name);\n\n if (validators?.length && this.validationTarget) {\n this.setValue(this.#value);\n }\n }\n\n /** PUBLIC LIFECYCLE METHODS */\n\n /**\n * Sets the control's form value if the call to `shouldFormValueUpdate`\n * returns `true`.\n * @param value {FormValue} - The value to pass to the form\n */\n setValue(value: FormValue): void {\n this.#forceError = false;\n this.validationMessageCallback?.('');\n this.#value = value;\n const valueShouldUpdate = this.shouldFormValueUpdate();\n const valueToUpdate = valueShouldUpdate ? value : null;\n this.internals.setFormValue(valueToUpdate as string);\n this.#runValidators(valueToUpdate);\n if (this.valueChangedCallback) {\n this.valueChangedCallback(valueToUpdate);\n }\n this.#shouldShowError();\n }\n\n /**\n * This method can be overridden to determine if the control's form value\n * should be set on a call to `setValue`. An example of when a user might want\n * to skip this step is when implementing checkbox-like behavior, first checking\n * to see if `this.checked` is set to a truthy value. By default this returns\n * `true`.\n */\n shouldFormValueUpdate(): boolean {\n return true;\n }\n\n /** Save a reference to the validation complete resolver */\n #validationCompleteResolver?: (value: void | PromiseLike<void>) => void;\n\n /** When true validation will be pending */\n #isValidationPending = false;\n\n #validationComplete = Promise.resolve();\n\n /** A promise that will resolve when all pending validations are complete */\n get validationComplete(): Promise<void> {\n return new Promise(resolve => resolve(this.#validationComplete));\n }\n\n /** DECLARED INSTANCE METHODS AND PROPERTIES*/\n\n /**\n * Resets a form control to its initial state\n */\n declare resetFormControl: () => void;\n\n /**\n * This method is used to override the controls' validity message\n * for a given Validator key. This has the highest level of priority when\n * setting a validationMessage, so use this method wisely.\n *\n * The returned value will be used as the validationMessage for the given key.\n * @param validationKey {string} - The key that has returned invalid\n */\n declare validityCallback: (validationKey: string) => string | void;\n\n /**\n * Called when the control's validationMessage should be changed\n * @param message { string } - The new validation message\n */\n declare validationMessageCallback: (message: string) => void;\n\n /**\n * A callback for when the controls' form value changes. The value\n * passed to this function should not be confused with the control's\n * value property, this is the value that will appear on the form.\n *\n * In cases where `checked` did not exist on the control's prototype\n * upon initialization, this value and the value property will be identical;\n * in cases where `checked` is present upon initialization, this will be\n * effectively `this.checked && this.value`.\n */\n declare valueChangedCallback: (value: FormValue) => void;\n\n /**\n * The element that will receive focus when the control's validity\n * state is reported either by a form submission or via API\n *\n * We use declare since this is optional and we don't particularly\n * care how the consuming component implements this (as a field, member\n * or getter/setter)\n */\n declare validationTarget: HTMLElement | null;\n\n /** PRIVATE LIFECYCLE METHODS */\n\n /**\n * Check to see if an error should be shown. This method will also\n * update the internals state object with the --show-error state\n * if necessary.\n * @private\n */\n #shouldShowError(): boolean {\n if (this.hasAttribute('disabled')) {\n return false;\n }\n\n const showError = this.#forceError || (this.#touched && !this.validity.valid && !this.#focused);\n\n /**\n * At the time of writing Firefox doesn't support states\n * TODO: Remove when check for states when fully support is in place\n */\n if (showError && this.internals.states) {\n this.internals.states.add('--show-error');\n } else if (this.internals.states) {\n this.internals.states.delete('--show-error');\n }\n\n return showError;\n }\n\n #runValidators(value: FormValue): void {\n const proto = this.constructor as typeof FormControl;\n const validity: CustomValidityState = {};\n const validators = proto.validators;\n const asyncValidators: Promise<boolean|void>[] = [];\n const hasAsyncValidators = validators.some((validator) => validator.isValid instanceof Promise)\n\n if (!this.#isValidationPending) {\n this.#validationComplete = new Promise(resolve => {\n this.#validationCompleteResolver = resolve\n });\n this.#isValidationPending = true;\n }\n\n /**\n * If an abort controller exists from a previous validation step\n * notify still-running async validators that we are requesting they\n * discontinue any work.\n */\n if (this.#abortController) {\n this.#abortController.abort();\n this.#previousAbortController = this.#abortController;\n }\n\n /**\n * Create a new abort controller and replace the instance reference\n * so we can clean it up for next time\n */\n const abortController = new AbortController();\n this.#abortController = abortController;\n let validationMessage: string | undefined = undefined;\n\n /** Track to see if any validity key has changed */\n let hasChange = false;\n\n if (!validators.length) {\n return;\n }\n\n validators.forEach(validator => {\n const key = validator.key || 'customError';\n const isValid = validator.isValid(this, value, abortController.signal);\n const isAsyncValidator = isValid instanceof Promise;\n\n if (isAsyncValidator) {\n asyncValidators.push(isValid);\n\n isValid.then(isValidatorValid => {\n if (isValidatorValid === undefined || isValidatorValid === null) {\n return;\n }\n /** Invert the validity state to correspond to the ValidityState API */\n validity[key] = !isValidatorValid;\n\n validationMessage = this.#getValidatorMessageForValue(validator, value);\n this.#setValidityWithOptionalTarget(validity, validationMessage);\n });\n } else {\n /** Invert the validity state to correspond to the ValidityState API */\n validity[key] = !isValid;\n\n if (this.validity[key] !== !isValid) {\n hasChange = true;\n }\n\n // only update the validationMessage for the first invalid scenario\n // so that earlier invalid validators dont get their messages overwritten by later ones\n // in the validators array\n if (!isValid && !validationMessage) {\n validationMessage = this.#getValidatorMessageForValue(validator, value);\n }\n }\n });\n\n /** Once all the async validators have settled, resolve validationComplete */\n Promise.allSettled(asyncValidators)\n .then(() => {\n /** Don't resolve validations if the signal is aborted */\n if (!abortController?.signal.aborted) {\n this.#isValidationPending = false;\n this.#validationCompleteResolver?.();\n }\n });\n\n /**\n * If async validators are present:\n * Only run updates when a sync validator has a change. This is to prevent\n * situations where running sync validators can override async validators\n * that are still in progress\n *\n * If async validators are not present, always update validity\n */\n if (hasChange || !hasAsyncValidators) {\n this.#setValidityWithOptionalTarget(validity, validationMessage);\n }\n }\n\n /**\n * If the validationTarget is not set, the user can decide how they would\n * prefer to handle focus when the field is validated.\n */\n #setValidityWithOptionalTarget(validity: Partial<ValidityState>, validationMessage: string|undefined): void {\n if (this.validationTarget) {\n this.internals.setValidity(validity, validationMessage, this.validationTarget);\n this.#awaitingValidationTarget = false;\n } else {\n this.internals.setValidity(validity, validationMessage);\n\n if (this.internals.validity.valid) {\n return;\n }\n\n /**\n * Sets mark the component as awaiting a validation target\n * if the element dispatches an invalid event, the #onInvalid listener\n * will check to see if the validation target has been set since this call\n * has run. This useful in cases like Lit's use of the query\n * decorator for setting the validationTarget or any scenario\n * where the validationTarget isn't available upon construction\n */\n this.#awaitingValidationTarget = true;\n }\n }\n\n /** Process the validator message attribute */\n #getValidatorMessageForValue(validator: Validator, value: FormValue): string {\n /** If the validity callback exists and returns, use that as the result */\n if (this.validityCallback) {\n const message = this.validityCallback(validator.key || 'customError');\n\n if (message) {\n return message;\n }\n }\n\n if (validator.message instanceof Function) {\n return (validator.message as validationMessageCallback)(this, value);\n } else {\n return validator.message as string;\n }\n }\n\n /** Reset control state when the form is reset */\n formResetCallback() {\n this.#touched = false;\n this.#forceError = false;\n this.#shouldShowError();\n this.resetFormControl?.();\n\n this.validationMessageCallback?.(\n this.#shouldShowError() ? this.validationMessage : ''\n );\n }\n }\n\n return FormControl as Constructor<FormControlInterface> & TBase;\n}\n", "import { html, LitElement } from 'lit';\n\nimport { FormControlMixin } from '@open-wc/form-control';\nimport WarpElement from '@warp-ds/elements-core';\nimport { property } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\n\nimport { reset } from '../styles.js';\n\nimport { styles } from './styles.js';\n\ntype ButtonVariant = 'primary' | 'secondary' | 'negative' | 'negativeQuiet' | 'utility' | 'pill' | 'link' | 'quiet' | 'utilityQuiet';\n\nconst variants = ['primary', 'secondary', 'negative', 'negativeQuiet', 'utility', 'utilityQuiet', 'pill', 'link'];\n\n/**\n * Buttons are used to perform actions, with different visuals for different needs.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-link--docs)\n */\nclass WarpLink extends FormControlMixin(LitElement) {\n static shadowRootOptions = {\n ...WarpElement.shadowRootOptions,\n delegatesFocus: true,\n };\n\n @property({ type: Boolean, reflect: true })\n autofocus: boolean;\n\n @property({ reflect: true })\n variant: ButtonVariant;\n\n @property({ type: Boolean, reflect: true })\n quiet: boolean;\n\n @property({ type: Boolean, reflect: true })\n small: boolean;\n\n @property({ reflect: true })\n href: string;\n\n @property({ type: Boolean, reflect: true })\n disabled: boolean;\n\n @property({ reflect: true })\n target: string;\n\n @property({ reflect: true })\n rel: string;\n\n @property({ attribute: 'full-width', type: Boolean, reflect: true })\n fullWidth: boolean;\n\n @property({ attribute: 'button-class', reflect: true })\n buttonClass: string;\n\n @property({ reflect: true })\n name: string;\n\n classes: string;\n\n static styles = [reset, styles];\n\n constructor() {\n super();\n this.variant = 'secondary';\n }\n\n connectedCallback() {\n super.connectedCallback();\n\n if (!variants.includes(this.variant)) {\n throw new Error(`Invalid \"variant\" attribute. Set its value to one of the following:\\n${variants.join(', ')}.`);\n }\n }\n\n firstUpdated() {\n if (this.autofocus) {\n setTimeout(() => this.focus(), 0);\n }\n }\n\n render() {\n const classes = {\n 'w-button': this.variant !== 'link',\n 'w-button--primary': this.variant === 'primary',\n 'w-button--secondary': this.variant === 'secondary',\n 'w-button--negative': this.variant === 'negative',\n 'w-button--utility': this.variant === 'utility',\n 'w-button--quiet': this.variant === 'quiet',\n 'w-button--negative-quiet': this.variant === 'negativeQuiet',\n 'w-button--utility-quiet': this.variant === 'utilityQuiet',\n 'w-button--small': this.small,\n 'w-button--full-width': this.fullWidth,\n 'w-button--disabled': this.disabled,\n };\n return html`<a\n href=${this.href}\n target=${this.target}\n rel=${this.target === '_blank' ? this.rel || 'noopener' : undefined}\n class=${classMap(classes)}>\n <slot></slot>\n </a>`;\n }\n}\n\nif (!customElements.get('w-link')) {\n customElements.define('w-link', WarpLink);\n}\n\nexport { WarpLink };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-link': WarpLink;\n }\n}\n", "import { css } from 'lit';\n\nexport const styles = css`.w-button,\n.w-button--secondary {\n /* Local scoped variables, given the default button (the secondary variant) as a default */\n --_background: var(--background, var(--w-s-color-background));\n --_background-hover: var(--background-hover, var(--w-s-color-background-hover));\n --_background-active: var(--background-active, var(--w-s-color-background-active));\n --_text-color: var(--color, var(--w-s-color-text-link));\n --_border-width: var(--border-width, 2px);\n --_border: var(--border, var(--w-s-color-border));\n --_border-hover: var(--border-hover, var(--w-s-color-border-hover));\n --_border-active: var(--border-active, var(--w-s-color-border-active));\n --_border-radius: var(--border-radius, 8px);\n --_font-size: var(--font-size, var(--w-font-size-m));\n --_line-height: var(--line-height, var(--w-line-height-m));\n --_font-weight: var(--font-weight, bold);\n --_padding-x: var(--padding-x, 16px);\n --_padding-y: var(--padding-y, 13px);\n\n /* Base setup for all buttons */\n display: inline-flex;\n justify-content: center;\n align-items: center;\n text-align: center;\n cursor: pointer;\n transition:\n color 150ms cubic-bezier(0.4, 0, 0.2, 1),\n background-color 150ms cubic-bezier(0.4, 0, 0.2, 1),\n border-color 150ms cubic-bezier(0.4, 0, 0.2, 1),\n fill 150ms cubic-bezier(0.4, 0, 0.2, 1),\n stroke 150ms cubic-bezier(0.4, 0, 0.2, 1);\n\n /* Hook the local vars up to the button stuff */\n background-color: var(--_background);\n color: var(--_text-color);\n border: var(--_border-width) solid var(--_border);\n border-radius: var(--_border-radius);\n padding: calc(var(--_padding-y) - var(--_border-width)) calc(var(--_padding-x) - var(--_border-width));\n font-size: var(--_font-size);\n line-height: var(--_line-height);\n font-weight: var(--_font-weight);\n}\n\n .w-button:hover {\n background-color: var(--_background-hover);\n border-color: var(--_border-hover);\n }\n\n .w-button:active {\n background-color: var(--_background-active);\n border-color: var(--_border-active);\n }\n\n .w-button:focus-visible {\n outline: 2px solid var(--w-s-color-border-focus);\n outline-offset: var(--w-outline-offset, 1px);\n }\n\n /* Variants config */\n .w-button--primary {\n --background: var(--w-s-color-background-primary);\n --background-hover: var(--w-s-color-background-primary-hover);\n --background-active: var(--w-s-color-background-primary-active);\n --color: var(--w-s-color-text-inverted);\n --border-width: 0px;\n }\n .w-button--negative {\n --background: var(--w-s-color-background-negative);\n --background-hover: var(--w-s-color-background-negative-hover);\n --background-active: var(--w-s-color-background-negative-active);\n --color: var(--w-s-color-text-inverted);\n --border-width: 0px;\n }\n .w-button--negative-quiet {\n --background: transparent;\n --background-hover: var(--w-s-color-background-negative-subtle-hover);\n --background-active: var(--w-s-color-background-negative-subtle-active);\n --color: var(--w-s-color-text-negative);\n --border-width: 0px;\n }\n .w-button--utility {\n --background: var(--w-s-color-background);\n --background-hover: var(--w-s-color-background-hover);\n --background-active: var(--w-s-color-background-active);\n --color: var(--w-s-color-text);\n --border-radius: 4px;\n --border-width: 1px;\n }\n .w-button--utility-quiet {\n --background: transparent;\n --color: var(--w-s-color-text);\n --border-width: 0px;\n }\n .w-button--overlay {\n --background: var(--w-color-background);\n --background-hover: var(--w-color-background-hover);\n --background-active: var(--w-color-background-active);\n --color: var(--w-s-color-text);\n --border-radius: 9999px;\n --border-width: 0px;\n }\n .w-button--overlay-quiet {\n --background: transparent;\n --background-hover: var(--w-s-color-background-hover);\n --background-active: var(--w-s-color-background-active);\n --color: var(--w-s-color-text);\n --border-radius: 9999px;\n --border-width: 0px;\n }\n .w-button--overlay-inverted {\n --background: var(--w-s-color-background-inverted);\n --background-hover: var(--w-s-color-background-inverted-hover);\n --background-active: var(--w-s-color-background-inverted-active);\n --color: var(--w-s-color-text-inverted);\n --border-radius: 9999px;\n --border-width: 0px;\n }\n .w-button--overlay-inverted-quiet {\n --background: transparent;\n --background-hover: var(--w-s-color-background-inverted-hover);\n --background-active: var(--w-s-color-background-inverted-active);\n --color: var(--w-s-color-text-inverted);\n --border-radius: 9999px;\n --border-width: 0px;\n }\n\n .w-button--link {\n --background: none;\n --background-hover: none;\n --background-active: none;\n --border-width: 0;\n --font-weight: normal;\n display: inline;\n }\n\n /* States config, selects --loading as well since loading is always supposed to be disabled */\n .w-button:disabled,\n .w-button--disabled,\n .w-button--loading {\n --background: var(--w-s-color-background-disabled);\n --background-hover: var(--w-s-color-background-disabled);\n --background-active: var(--w-s-color-background-disabled);\n --color: var(--w-s-color-text-inverted);\n --border-width: 0px;\n pointer-events: none;\n }\n\n .w-button--link:hover {\n text-decoration: underline;\n }\n\n /* Sizes config */\n .w-button--small {\n --padding-x: 12px;\n --padding-y: 8px;\n --font-size: var(--w-font-size-xs);\n --line-height: var(--w-line-height-xs);\n }\n\n /* Width config */\n .w-button--full-width {\n width: 100%;\n max-width: 100%;\n }\n\n .w-button--has-icon-only {\n width: auto;\n max-width: none;\n --_padding-x: var(--_padding-y);\n aspect-ratio: 1 / 1;\n }\n\n a.w-button {\n text-decoration: none !important;\n }\n\n /* Copy of loading animation from warp */\n .w-button--loading {\n background-image: linear-gradient(\n 135deg,\n rgba(0, 0, 0, 0.05) 25%,\n transparent 25%,\n transparent 50%,\n rgba(0, 0, 0, 0.05) 50%,\n rgba(0, 0, 0, 0.05) 75%,\n transparent 75%,\n transparent\n );\n background-size: 30px 30px;\n animation: animate-inprogress 3s linear infinite;\n }\n\n @keyframes animate-inprogress {\n 0% {\n background-position: 0 0;\n }\n 100% {\n background-position: 60px 0;\n }\n }`;\n", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"button.aria.loading\\\":[\\\"Indl\u00E6ser...\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"button.aria.loading\\\":[\\\"Loading...\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"button.aria.loading\\\":[\\\"Ladataan...\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"button.aria.loading\\\":[\\\"Laster...\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"button.aria.loading\\\":[\\\"Laddar ...\\\"]}\");", "import { css } from 'lit'; export const styles = css`*,: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}.text-center{text-align:center}.animate-inprogress{background-size:30px 30px;animation:3s linear infinite animate-inprogress;background-image:linear-gradient(135deg,#0000000d 25%,#0000 0 50%,#0000000d 0 75%,#0000 0,#0000)!important}@keyframes animate-inprogress{0%{background-position:0 0}to{background-position:60px 0}}.hover\\\\:bg-clip-padding:hover{-webkit-background-clip:padding-box;background-clip:padding-box}.bg-transparent{background-color:#0000}.bg-\\\\[--w-color-button-primary-background\\\\]{background-color:var(--w-color-button-primary-background)}.hover\\\\:bg-\\\\[--w-color-button-pill-background-hover\\\\]:hover{background-color:var(--w-color-button-pill-background-hover)}.hover\\\\:bg-\\\\[--w-color-button-primary-background-hover\\\\]:hover{background-color:var(--w-color-button-primary-background-hover)}.active\\\\:bg-\\\\[--w-color-button-pill-background-active\\\\]:active{background-color:var(--w-color-button-pill-background-active)}.active\\\\:bg-\\\\[--w-color-button-primary-background-active\\\\]:active{background-color:var(--w-color-button-primary-background-active)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-transparent{border-color:#0000}.rounded-4{border-radius:4px}.rounded-8{border-radius:8px}.rounded-full{border-radius:9999px}.inline-block{display:inline-block}.inline{display:inline}.inline-flex{display:inline-flex}.hover\\\\:underline:hover,.focus\\\\:underline:focus,.active\\\\:underline:active{text-decoration-line:underline}.hover\\\\:no-underline:hover,.focus\\\\:no-underline:focus,.active\\\\:no-underline:active{text-decoration:none}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.justify-center{justify-content:center}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-negative{background-color:var(--w-s-color-background-negative)}.s-bg-subtle{background-color:var(--w-s-color-background-subtle)}.hover\\\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.hover\\\\:s-bg-negative-hover:hover{background-color:var(--w-s-color-background-negative-hover)}.hover\\\\:s-bg-negative-subtle-hover:hover{background-color:var(--w-s-color-background-negative-subtle-hover)}.active\\\\:s-bg-active:active{background-color:var(--w-s-color-background-active)}.active\\\\:s-bg-negative-active:active{background-color:var(--w-s-color-background-negative-active)}.active\\\\:s-bg-negative-subtle-active:active{background-color:var(--w-s-color-background-negative-subtle-active)}.s-text{color:var(--w-s-color-text)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.s-text-link{color:var(--w-s-color-text-link)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-icon{color:var(--w-s-color-icon)}.hover\\\\:s-icon-hover:hover{color:var(--w-s-color-icon-hover)}.active\\\\:s-icon-active:active{color:var(--w-s-color-icon-active)}.s-border{border-color:var(--w-s-color-border)}.hover\\\\:s-border-hover:hover{border-color:var(--w-s-color-border-hover)}.active\\\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.max-w-full{max-width:100%}.max-w-max{max-width:max-content}.min-h-32{min-height:3.2rem}.min-w-32{min-width:3.2rem}.w-full{width:100%}.min-h-\\\\[44px\\\\]{min-height:44px}.min-w-\\\\[44px\\\\]{min-width:44px}.p-0{padding:0}.p-4{padding:.4rem}.px-14{padding-left:1.4rem;padding-right:1.4rem}.px-16{padding-left:1.6rem;padding-right:1.6rem}.py-10{padding-top:1rem;padding-bottom:1rem}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.py-6{padding-top:.6rem;padding-bottom:.6rem}.py-8{padding-top:.8rem;padding-bottom:.8rem}.px-\\\\[15px\\\\]{padding-left:15px;padding-right:15px}.py-\\\\[11px\\\\]{padding-top:11px;padding-bottom:11px}.py-\\\\[7px\\\\]{padding-top:7px;padding-bottom:7px}.cursor-default{cursor:default}.font-bold{font-weight:700}.pointer-events-none{pointer-events:none}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-\\\\[24\\\\]{line-height:2.4rem}`;\n", "// @warp-css;\n\nimport { html, css, LitElement } from 'lit';\n\nimport { classNames } from '@chbphone55/classnames';\nimport { i18n } from '@lingui/core';\nimport { property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\n\nimport { activateI18n } from '../i18n.js';\nimport { reset } from '../styles.js';\n\nimport { messages as daMessages } from './locales/da/messages.mjs';\nimport { messages as enMessages } from './locales/en/messages.mjs';\nimport { messages as fiMessages } from './locales/fi/messages.mjs';\nimport { messages as nbMessages } from './locales/nb/messages.mjs';\nimport { messages as svMessages } from './locales/sv/messages.mjs';\nimport { styles } from './styles.js';\n\nexport const ccCard = {\n base: 'cursor-pointer overflow-hidden relative transition-all',\n shadow: 'group rounded-8 s-surface-elevated-200 hover:s-surface-elevated-200-hover active:s-surface-elevated-200-active',\n selected: '!s-bg-selected !hover:s-bg-selected-hover !active:s-bg-selected-active',\n outline: 'absolute border-2 rounded-8 inset-0 transition-all',\n outlineUnselected: 'border-transparent group-active:s-border-active',\n outlineSelected: 's-border-selected group-hover:s-border-selected-hover group-active:s-border-selected-active',\n flat: 'border-2 rounded-4',\n flatUnselected: 's-bg hover:s-bg-hover active:s-bg-active s-border hover:s-border-hover active:s-border-active',\n flatSelected:\n 's-bg-selected hover:s-bg-selected-hover active:s-bg-selected-active s-border-selected hover:s-border-selected-hover active:s-border-selected-active',\n a11y: 'sr-only',\n};\n\nconst keys = {\n ENTER: 'Enter',\n SPACE: ' ',\n};\n\n/**\n * Card is a layout component used for separating content areas on a page.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-card--docs)\n */\nclass WarpCard extends LitElement {\n static styles = [\n reset,\n styles,\n css`\n a::after {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n }\n :host {\n display: block;\n }\n `,\n ];\n\n @property({ type: Boolean, reflect: true })\n selected: boolean = false;\n\n @property({ type: Boolean })\n flat: boolean = false;\n\n @property({ type: Boolean })\n clickable: boolean = false;\n\n /** @internal */\n buttonText: string;\n\n constructor() {\n super();\n activateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n this.buttonText = i18n._({\n id: 'card.button.text',\n message: 'Select',\n comment: 'Screenreader message to indicate that the card is clickable',\n });\n }\n\n /** @internal */\n get _containerClasses() {\n return classNames([\n ccCard.base,\n this.flat ? ccCard.flat : ccCard.shadow,\n this.selected && !this.flat && ccCard.selected,\n this.selected && this.flat ? ccCard.flatSelected : ccCard.flatUnselected,\n ]);\n }\n\n /** @internal */\n get _outlineClasses() {\n return classNames([ccCard.outline, this.selected ? ccCard.outlineSelected : ccCard.outlineUnselected]);\n }\n\n /** @internal */\n get _interactiveElement() {\n const renderButton = () =>\n html`<button class=\"${ccCard.a11y}\" aria-pressed=\"${this.selected}\" tabindex=\"-1\">${this.buttonText}</button>`;\n const renderSpan = () => html`<span role=\"checkbox\" aria-checked=\"true\" aria-disabled=\"true\"></span>`;\n\n return this.clickable ? renderButton() : this.selected ? renderSpan() : '';\n }\n\n keypressed(e: KeyboardEvent) {\n if (!this.clickable || e.altKey || e.ctrlKey) return;\n if (e.key === keys.ENTER || e.key === keys.SPACE) {\n e.preventDefault();\n this.click();\n }\n }\n\n render() {\n return html`\n <div tabindex=${ifDefined(this.clickable ? '0' : undefined)} class=\"${this._containerClasses}\" @keydown=${this.keypressed}>\n ${this._interactiveElement} ${this.flat ? '' : html`<div class=\"${this._outlineClasses}\"></div>`}\n <slot></slot>\n </div>\n `;\n }\n}\n\nif (!customElements.get('w-card')) {\n customElements.define('w-card', WarpCard);\n}\n\nexport { WarpCard };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-card': WarpCard;\n }\n}\n", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"card.button.text\\\":[\\\"V\u00E6lg\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"card.button.text\\\":[\\\"Select\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"card.button.text\\\":[\\\"Valitse\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"card.button.text\\\":[\\\"Velg\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"card.button.text\\\":[\\\"V\u00E4lj\\\"]}\");", "import { css } from 'lit'; export const styles = css`*,: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}.border-2{border-width:2px}.border-transparent{border-color:#0000}.rounded-4{border-radius:4px}.rounded-8{border-radius:8px}.block{display:block}.overflow-hidden{overflow:hidden}.outline{outline-style:solid}.inset-0{top:0;bottom:0;left:0;right:0}.absolute{position:absolute}.relative{position:relative}.static{position:static}.\\\\!s-bg-selected{background-color:var(--w-s-color-background-selected)!important}.s-bg{background-color:var(--w-s-color-background)}.s-bg-selected{background-color:var(--w-s-color-background-selected)}.\\\\!hover\\\\:s-bg-selected-hover:hover{background-color:var(--w-s-color-background-selected-hover)!important}.hover\\\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.hover\\\\:s-bg-selected-hover:hover{background-color:var(--w-s-color-background-selected-hover)}.\\\\!active\\\\:s-bg-selected-active:active{background-color:var(--w-s-color-background-selected-active)!important}.active\\\\:s-bg-active:active{background-color:var(--w-s-color-background-active)}.active\\\\:s-bg-selected-active:active{background-color:var(--w-s-color-background-selected-active)}.s-border{border-color:var(--w-s-color-border)}.s-border-selected{border-color:var(--w-s-color-border-selected)}.group:hover .group-hover\\\\:s-border-selected-hover{border-color:var(--w-s-color-border-selected-hover)}.hover\\\\:s-border-hover:hover{border-color:var(--w-s-color-border-hover)}.hover\\\\:s-border-selected-hover:hover{border-color:var(--w-s-color-border-selected-hover)}.active\\\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.active\\\\:s-border-selected-active:active{border-color:var(--w-s-color-border-selected-active)}.group:active .group-active\\\\:s-border-active{border-color:var(--w-s-color-border-active)}.group:active .group-active\\\\:s-border-selected-active{border-color:var(--w-s-color-border-selected-active)}.s-surface-elevated-200{background-color:var(--w-s-color-surface-elevated-200);box-shadow:var(--w-s-shadow-surface-elevated-200)}.hover\\\\:s-surface-elevated-200-hover:hover{background-color:var(--w-s-color-surface-elevated-200-hover);box-shadow:var(--w-s-shadow-surface-elevated-200-hover)}.active\\\\:s-surface-elevated-200-active:active{background-color:var(--w-s-color-surface-elevated-200-active);box-shadow:var(--w-s-shadow-surface-elevated-200-active)}.cursor-pointer{cursor:pointer}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}`;\n", "import { css, CSSResultGroup, html, LitElement } from 'lit';\n\nimport { property } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\n\nimport { reset } from '../styles';\n\n/**\n * Dead toggle can be used where the appearance of a checkbox or radio is needed - but for accessibility purposes an actual input element should not be present.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-dead-toggle--docs)\n */\nexport class WarpDeadToggle extends LitElement {\n @property({ type: String }) type: 'radio' | 'checkbox' = 'radio';\n @property({ type: Boolean, reflect: true }) checked: boolean = false;\n @property({ type: Boolean, reflect: true }) indeterminate: boolean = false;\n @property({ type: Boolean, reflect: true }) invalid: boolean = false;\n\n /** @internal */\n get indeterminateMarker() {\n return !this.checked && this.indeterminate ? '\u2013' : '';\n }\n\n render() {\n const classes = classMap({\n checkbox: this.type === 'checkbox',\n radio: this.type === 'radio',\n checked: this.checked,\n });\n return html` <div class=\"${classes}\">${this.indeterminateMarker}</div> `;\n }\n\n static styles?: CSSResultGroup | undefined = [\n reset,\n css`\n div {\n display: block;\n border-width: 1px;\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n cursor: pointer;\n appearance: none;\n user-select: none;\n flex-shrink: 0;\n height: 2rem;\n width: 2rem;\n background-color: var(--w-s-color-background);\n border-color: var(--w-s-color-border);\n color: var(--w-s-color-icon-inverted);\n font-weight: 700;\n text-align: center;\n line-height: var(--w-line-height-xs);\n font-size: var(--w-font-size-m);\n }\n :host([type='checkbox']) div {\n border-radius: 2px;\n }\n :host([type='checkbox'][checked]) div,\n :host([type='checkbox'][indeterminate]) div {\n background-color: var(--w-s-color-background-primary);\n border-color: var(--w-s-color-border-primary);\n }\n :host([type='checkbox'][checked]) div {\n background-image: var(--w-icon-toggle-checked);\n }\n :host([type='radio']) div {\n border-radius: 50%;\n }\n :host([type='radio'][checked]) div {\n border-color: var(--w-s-color-border-selected);\n border-width: 0.6rem;\n }\n :host([invalid]) div {\n border-color: var(--w-s-color-border-negative) !important;\n }\n :host([type='checkbox'][invalid][checked]) div,\n :host([type='checkbox'][invalid][indeterminate]) div {\n background-color: var(--w-s-color-background-negative);\n }\n `,\n ];\n}\n\nif (!customElements.get('w-dead-toggle')) {\n customElements.define('w-dead-toggle', WarpDeadToggle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-dead-toggle': WarpDeadToggle;\n }\n}\n", "// @warp-css;\n\nimport { css, html, LitElement, PropertyValues } from 'lit';\n\nimport { classNames } from '@chbphone55/classnames';\nimport { property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport '@warp-ds/icons/elements/chevron-down-16';\nimport '@warp-ds/icons/elements/chevron-up-16';\n\nimport { reset } from '../styles.js';\n\nimport { styles } from './styles.js';\n\nexport const ccBox = {\n base: 'group block relative break-words last-child:mb-0 p-16 rounded-8', // Relative here enables w-clickable\n bleed: '-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8', // We target L and R to override the default rounded-8\n info: 's-bg-info-subtle',\n neutral: 's-surface-sunken',\n bordered: 'border-2 s-border s-bg',\n};\n\nexport const ccExpandable = {\n wrapper: 'will-change-height s-text',\n box: 's-surface-sunken hover:s-bg-hover active:s-bg-active py-0 px-0 group block relative break-words last-child:mb-0 rounded-8',\n bleed: '-mx-16 rounded-l-0 rounded-r-0 sm:mx-0 sm:rounded-8',\n chevron: 'inline-block align-middle s-icon',\n chevronNonBox: 'ml-8',\n chevronTransform: 'transform transition-transform transform-gpu ease-in-out',\n chevronExpand: '-rotate-180',\n chevronCollapse: 'rotate-180',\n\n // These are web component specific classes, using the ::part-selector:\n elementsChevronDownTransform:\n 'part-[w-icon-chevron-down-16-part]:transform part-[w-icon-chevron-down-16-part]:transition-transform part-[w-icon-chevron-down-16-part]:transform-gpu part-[w-icon-chevron-down-16-part]:ease-in-out',\n elementsChevronUpTransform:\n 'part-[w-icon-chevron-up-16-part]:transform part-[w-icon-chevron-up-16-part]:transition-transform part-[w-icon-chevron-up-16-part]:transform-gpu part-[w-icon-chevron-up-16-part]:ease-in-out',\n elementsChevronExpand: 'part-[w-icon-chevron-down-16-part]:-rotate-180',\n elementsChevronCollapse: 'part-[w-icon-chevron-up-16-part]:rotate-180',\n\n expansion: 'overflow-hidden',\n expansionNotExpanded: 'h-0 invisible',\n button: 'focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 hover:underline focus-visible:underline',\n buttonBox: 'w-full text-left relative inline-flex items-center justify-between group relative break-words last-child:mb-0 p-16 rounded-8',\n contentWithTitle: 'pt-0',\n title: 'flex w-full justify-between items-center',\n titleType: 't4',\n};\n\n/**\n * Expandable is a layout component used for creating expandable content areas on a page.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-expandable--docs)\n *\n * @slot title - Alternative to the `title` attribute should you need to provide some additional markup.\n */\nclass WarpExpandable extends LitElement {\n @property({ type: Boolean, reflect: true })\n expanded: boolean = false;\n\n @property({ type: String })\n title: string;\n\n @property({ type: Boolean })\n box: boolean = false;\n\n @property({ type: Boolean })\n bleed: boolean = false;\n\n @property({ attribute: 'button-class', type: String })\n buttonClass: string;\n\n @property({ attribute: 'content-class', type: String })\n contentClass: string;\n\n @property({ attribute: 'no-chevron', type: Boolean })\n noChevron: boolean = false;\n\n @property({ type: Boolean })\n animated: boolean = false;\n\n @property({ attribute: 'heading-level', type: Number })\n headingLevel: number;\n\n @property({ type: Boolean, state: true })\n /** @internal */\n _hasTitle: boolean = true;\n\n @property({ type: Boolean, state: true })\n /** @internal */\n _showChevronUp: boolean = false;\n\n // Slotted elements remain in lightDOM which allows for control of their style outside of shadowDOM.\n // ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,\n // so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.\n // https://stackoverflow.com/a/61631668\n static styles = [\n reset,\n styles,\n css`\n :host {\n display: block;\n }\n ::slotted(:last-child) {\n margin-bottom: 0px !important;\n }\n `,\n ];\n\n updated(changedProperties: PropertyValues<this>) {\n // We need a slight delay for the animation since it has a transition-duration of 150ms:\n if (changedProperties.has('expanded')) {\n setTimeout(() => {\n this._showChevronUp = this.expanded;\n }, 200);\n }\n }\n\n firstUpdated() {\n const hasTitleProp = Boolean(this.title);\n const hasTitleSlot = (this.renderRoot.querySelector(\"slot[name='title']\") as HTMLSlotElement)?.assignedNodes().length > 0;\n\n this._hasTitle = hasTitleProp || hasTitleSlot;\n }\n\n get #wrapperClasses() {\n return classNames([ccExpandable.wrapper, this.box && ccExpandable.box, this.bleed && ccExpandable.bleed]);\n }\n\n get #buttonClasses() {\n return classNames(this.buttonClass, [ccExpandable.button, this.box && ccExpandable.buttonBox]);\n }\n\n get #chevronClasses() {\n return classNames([ccExpandable.chevron, !this.box && ccExpandable.chevronNonBox]);\n }\n\n get #chevronIcon() {\n const upClasses = classNames([\n ccExpandable.elementsChevronUpTransform,\n !this.expanded && this._showChevronUp && ccExpandable.elementsChevronCollapse,\n ]);\n const downClasses = classNames([\n ccExpandable.elementsChevronDownTransform,\n this.expanded && !this._showChevronUp && ccExpandable.elementsChevronExpand,\n ]);\n\n return this._showChevronUp\n ? html`<w-icon-chevron-up-16 class=\"${upClasses}\"></w-icon-chevron-up-16>`\n : html`<w-icon-chevron-down-16 class=\"${downClasses}\"></w-icon-chevron-down-16>`;\n }\n\n get #contentClasses() {\n return classNames(this.contentClass, [this.box && ccBox.base, this._hasTitle && this.box && ccExpandable.contentWithTitle]);\n }\n\n get #expansionClasses() {\n return classNames([ccExpandable.expansion, !this.expanded && ccExpandable.expansionNotExpanded]);\n }\n\n /** @internal */\n get _expandableSlot() {\n return html`<div class=\"${this.#contentClasses}\">\n <slot></slot>\n </div>`;\n }\n\n render() {\n return html` <div class=\"${this.#wrapperClasses}\">\n ${this._hasTitle\n ? html`<w-unstyled-heading level=${this.headingLevel}>\n <button\n type=\"button\"\n aria-expanded=\"${this.expanded}\"\n class=\"${this.#buttonClasses}\"\n @click=${() => (this.expanded = !this.expanded)}>\n <div class=\"${ccExpandable.title}\">\n ${this.title ? html`<span class=\"${ccExpandable.titleType}\">${this.title}</span>` : html`<slot name=\"title\"></slot>`}\n ${this.noChevron ? '' : html`<div class=\"${this.#chevronClasses}\">${this.#chevronIcon}</div>`}\n </div>\n </button>\n </w-unstyled-heading>`\n : ''}\n ${this.animated\n ? html`<w-expand-transition ?show=${this.expanded}> ${this._expandableSlot} </w-expand-transition>`\n : html`<div class=\"${this.#expansionClasses}\" aria-hidden=${ifDefined(!this.expanded ? true : undefined)}>\n ${this._expandableSlot}\n </div>`}\n </div>`;\n }\n}\n\nif (!customElements.get('w-expandable')) {\n customElements.define('w-expandable', WarpExpandable);\n}\n\nexport { WarpExpandable };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-expandable': WarpExpandable;\n }\n}\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/chevron-down/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/chevron-down/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/chevron-down/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/chevron-down/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/chevron-down/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconChevronDown16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Downward arrow`, id: 'icon.title.chevron-down', comment: 'Title for chevron-down icon' });\n \n return html`<svg xmlns=\"http://www.w3.org/2000/svg\"width=\"16\"height=\"16\"fill=\"none\"viewBox=\"0 0 16 16\" part=\"w-icon-chevron-down-16-part\">${unsafeStatic(`<title>${title}</title>`)}<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"m2.667 5.333 5.5 5.5 5.5-5.5\"></path></svg>`; }\n}\nif (!customElements.get('w-icon-chevron-down-16')) {\n customElements.define('w-icon-chevron-down-16', IconChevronDown16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-down\\\":[\\\"Nedoverpil\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-down\\\":[\\\"Downward arrow\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-down\\\":[\\\"Nuoli alasp\u00E4in\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-down\\\":[\\\"Pil nedad\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-down\\\":[\\\"Pil ned\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/chevron-up/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/chevron-up/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/chevron-up/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/chevron-up/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/chevron-up/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconChevronUp16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Upward arrow`, id: 'icon.title.chevron-up', comment: 'Title for chevron-up icon' });\n \n return html`<svg xmlns=\"http://www.w3.org/2000/svg\"width=\"16\"height=\"16\"fill=\"none\"viewBox=\"0 0 16 16\" part=\"w-icon-chevron-up-16-part\">${unsafeStatic(`<title>${title}</title>`)}<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M2.5 11 8 5.5l5.5 5.5\"></path></svg>`; }\n}\nif (!customElements.get('w-icon-chevron-up-16')) {\n customElements.define('w-icon-chevron-up-16', IconChevronUp16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-up\\\":[\\\"Oppoverpil\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-up\\\":[\\\"Upward arrow\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-up\\\":[\\\"Nuoli yl\u00F6sp\u00E4in\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-up\\\":[\\\"Pil opad\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-up\\\":[\\\"Pil upp\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "import { css } from 'lit'; export const styles = css`*,: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}.t4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-left{text-align:left}.align-middle{vertical-align:middle}.bg-transparent{background-color:#0000}.appearance-none{-webkit-appearance:none;appearance:none}.will-change-height{will-change:height}.border-0{border-width:0}.border-2{border-width:2px}.rounded-8{border-radius:8px}.rounded-l-0{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-0{border-top-right-radius:0;border-bottom-right-radius:0}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.hover\\\\:underline:hover{text-decoration-line:underline}.focus-visible\\\\:underline:focus-visible{text-decoration-line:underline}.overflow-hidden{overflow:hidden}.focus\\\\:outline-none:focus{outline-offset:2px;outline:2px solid #0000}.items-center{align-items:center}.justify-between{justify-content:space-between}.relative{position:relative}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-info-subtle{background-color:var(--w-s-color-background-info-subtle)}.hover\\\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.active\\\\:s-bg-active:active{background-color:var(--w-s-color-background-active)}.s-text{color:var(--w-s-color-text)}.s-icon{color:var(--w-s-color-icon)}.s-border{border-color:var(--w-s-color-border)}.s-surface-sunken{background-color:var(--w-s-color-surface-sunken)}.h-0{height:0}.w-full{width:100%}.m-0{margin:0}.-mx-16{margin-left:-1.6rem;margin-right:-1.6rem}.last-child\\\\:mb-0>:last-child{margin-bottom:0}.ml-8{margin-left:.8rem}.p-16{padding:1.6rem}.px-0{padding-left:0;padding-right:0}.py-0{padding-top:0;padding-bottom:0}.pt-0{padding-top:0}.invisible{visibility:hidden}.break-words{overflow-wrap:break-word}.cursor-pointer{cursor:pointer}.-rotate-180{--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-rotate:-180deg;transform:translateX(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))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.part-\\\\[w-icon-chevron-down-16-part\\\\]\\\\:-rotate-180::part(w-icon-chevron-down-16-part){--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-rotate:-180deg;transform:translateX(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))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.rotate-180{--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-rotate:180deg;transform:translateX(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))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.part-\\\\[w-icon-chevron-up-16-part\\\\]\\\\:rotate-180::part(w-icon-chevron-up-16-part){--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-rotate:180deg;transform:translateX(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))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transform{transform:translateX(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))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.part-\\\\[w-icon-chevron-down-16-part\\\\]\\\\:transform::part(w-icon-chevron-down-16-part){transform:translateX(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))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.part-\\\\[w-icon-chevron-up-16-part\\\\]\\\\:transform::part(w-icon-chevron-up-16-part){transform:translateX(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))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transform-gpu{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))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.part-\\\\[w-icon-chevron-down-16-part\\\\]\\\\:transform-gpu::part(w-icon-chevron-down-16-part){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))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.part-\\\\[w-icon-chevron-up-16-part\\\\]\\\\:transform-gpu::part(w-icon-chevron-up-16-part){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))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transition-transform{transition-property:transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.part-\\\\[w-icon-chevron-down-16-part\\\\]\\\\:transition-transform::part(w-icon-chevron-down-16-part){transition-property:transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.part-\\\\[w-icon-chevron-up-16-part\\\\]\\\\:transition-transform::part(w-icon-chevron-up-16-part){transition-property:transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.part-\\\\[w-icon-chevron-down-16-part\\\\]\\\\:ease-in-out::part(w-icon-chevron-down-16-part){transition-timing-function:cubic-bezier(.4,0,.2,1)}.part-\\\\[w-icon-chevron-up-16-part\\\\]\\\\:ease-in-out::part(w-icon-chevron-up-16-part){transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width:480px){.sm\\\\:rounded-8{border-radius:8px}.sm\\\\:mx-0{margin-left:0;margin-right:0}}`;\n", "import { html, css, LitElement } from 'lit';\n\nimport { reset } from '../styles.js';\n\nimport { CanCloseMixin, ProvidesCanCloseToSlotsMixin } from './util';\n\n/**\n * The footer section of a modal, typically where you place actions.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)\n */\nexport class ModalFooter extends CanCloseMixin(ProvidesCanCloseToSlotsMixin(LitElement)) {\n render() {\n return html`\n <div class=\"footer\">\n <slot @slotchange=\"${this.handleSlotChange}\"></slot>\n </div>\n `;\n }\n static styles = [\n reset,\n css`\n .footer {\n display: flex;\n flex-shrink: 0;\n justify-content: flex-end;\n padding-left: 1.6rem;\n padding-right: 1.6rem;\n padding-top: 2.4rem;\n }\n @media (min-width: 480px) {\n .footer {\n padding-left: 3.2rem;\n padding-right: 3.2rem;\n }\n }\n `,\n ];\n}\n\nif (!customElements.get('w-modal-footer')) {\n customElements.define('w-modal-footer', ModalFooter);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-modal-footer': ModalFooter;\n }\n}\n", "// eslint-disable-next-line\nexport declare type Constructor<T = Record<string, unknown>> = new (...args: any[]) => T;\n\nexport const CanCloseMixin: <TBase extends Constructor<HTMLElement>>(SuperClass: TBase) => Constructor<{ close: () => void }> & TBase = (\n superClass,\n) =>\n class extends superClass {\n patchClose = true;\n _close = null;\n close() {\n this._close();\n }\n };\n\nexport const ProvidesCanCloseToSlotsMixin: <TBase extends Constructor<HTMLElement>>(\n SuperClass: TBase,\n) => Constructor<{ handleSlotChange: (evt: Event) => void }> & TBase = (superClass) =>\n class extends superClass {\n // HACK: slot-props don't seem to exist and neither does the context pattern for this\n /** @param {Event} evt */\n handleSlotChange(evt) {\n const children = evt.target.assignedNodes({ flatten: true });\n for (const child of children.filter((e) => e.patchClose)) {\n // @ts-expect-error users have to implement the close method\n child._close = () => this.close();\n }\n }\n };\n", "import { css, html, LitElement, nothing, PropertyValues } from 'lit';\n\nimport { Move } from '@itsy/animate/move';\nimport { i18n } from '@lingui/core';\nimport { property, query, state } from 'lit/decorators.js';\nimport '@warp-ds/icons/elements/arrow-left-16';\nimport '@warp-ds/icons/elements/close-16';\n\nimport { activateI18n } from '../i18n';\nimport { reset } from '../styles';\n\nimport { messages as daMessages } from './locales/da/messages.mjs';\nimport { messages as enMessages } from './locales/en/messages.mjs';\nimport { messages as fiMessages } from './locales/fi/messages.mjs';\nimport { messages as nbMessages } from './locales/nb/messages.mjs';\nimport { messages as svMessages } from './locales/sv/messages.mjs';\nimport { CanCloseMixin } from './util.js';\n\n/**\n * The header section of a modal, typically where you place the title and a close button.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)\n *\n * @slot top - Customize the title bar, for example to have a header image that reaches the modal's edges. See the With Image story for an example.\n */\nexport class ModalHeader extends CanCloseMixin(LitElement) {\n @property({ type: String }) title: string;\n @property({ type: Boolean }) back: boolean;\n @property({ type: Boolean, attribute: 'no-close' }) noClose: boolean;\n /** @internal */\n @state() private _hasTopContent = false;\n\n @query('.title-el') titleEl: HTMLElement;\n\n constructor() {\n super();\n activateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n }\n render() {\n return html`\n <div class=\"header\">\n <slot name=\"top\" @slotchange=${this.handleTopSlotChange}></slot>\n <div class=\"${this._hasTopContent ? '' : 'header-title-bar'}\">\n ${this.backButton}\n <h1 class=\"title-el ${this.titleClasses}\">${this.title}</h1>\n ${this.closeButton}\n </div>\n </div>\n `;\n }\n\n async willUpdate(changedProperties: PropertyValues<this>) {\n if (changedProperties.has('back')) {\n const move = new Move(this.titleEl);\n move.when(async () => {\n await this.updateComplete;\n });\n }\n }\n get titleClasses() {\n return [\n 'header-title',\n this.back ? 'header-title-with-back-button' : 'header-title-without-back-button',\n this._hasTopContent ? 'header-title-with-top-area' : '',\n ].join(' ');\n }\n\n get backButton() {\n return this.back && !this._hasTopContent // Not showing back button when there is a top image\n ? html`<button\n type=\"button\"\n aria-label=\"${i18n._({\n id: 'modal.aria.back',\n message: 'Back',\n comment: 'Aria label for the back button in modal',\n })}\"\n class=\"header-button header-button-left\"\n @click=\"${this.emitBack}\">\n <w-icon-arrow-left-16></w-icon-arrow-left-16>\n </button>`\n : nothing;\n }\n get closeButton() {\n if (this.noClose) return nothing;\n return html`<button\n type=\"button\"\n aria-label=\"${i18n._({\n id: 'modal.aria.close',\n message: 'Close',\n comment: 'Aria label for the close button in modal',\n })}\"\n class=\"header-button ${this._hasTopContent ? 'header-close-button-on-image' : 'header-close-button'}\"\n @click=\"${this.close}\">\n <w-icon-close-16></w-icon-close-16>\n </button>`;\n }\n emitBack() {\n this.dispatchEvent(new CustomEvent('backClicked', { bubbles: true, composed: true }));\n }\n handleTopSlotChange(slotEvent) {\n const topContent = slotEvent.target.assignedElements({ flatten: true });\n this._hasTopContent = !!topContent.length;\n }\n static styles = [\n reset,\n css`\n .header {\n position: relative;\n padding-bottom: 0.8rem;\n }\n .header-title-bar {\n display: grid;\n flex-shrink: 0 !important;\n gap: 1.2rem;\n grid-template-columns: auto 1fr auto;\n align-items: flex-start;\n padding-left: 1.6rem;\n padding-right: 1.6rem;\n padding-top: 1.6rem;\n }\n .header-title {\n font-weight: 700;\n font-size: var(--w-font-size-l);\n line-height: var(--w-line-height-l);\n align-self: center;\n margin: 0;\n }\n .header-title-with-back-button {\n justify-self: center;\n }\n .header-title-without-back-button {\n grid-column: span 2 / span 2;\n }\n .header-title-with-top-area {\n padding-left: 1.6rem;\n padding-right: 1.6rem;\n padding-top: 1.6rem;\n }\n .header-button:hover {\n -webkit-background-clip: padding-box;\n background-clip: padding-box;\n }\n .header-button:focus,\n .header-button:focus-visible {\n outline: 2px solid var(--w-s-color-border-focus);\n outline-offset: var(--w-outline-offset, 1px);\n }\n .header-button:not(:focus-visible) {\n outline: none;\n }\n .header-button {\n border-width: 0;\n border-radius: 9999px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-height: 40px;\n min-width: 40px;\n padding: 0.4rem;\n font-weight: 700;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n font-size: var(--w-font-size-m);\n line-height: var(--w-line-height-m);\n line-height: 2.4rem;\n }\n .header-button-left {\n background-color: transparent;\n color: var(--w-s-color-icon);\n margin-left: -0.8rem;\n }\n .header-button-left:hover {\n background-color: var(--w-color-button-pill-background-hover);\n }\n .header-button-left:active {\n background-color: var(--w-color-button-pill-background-active);\n }\n .header-close-button {\n background-color: transparent;\n color: var(--w-s-color-icon);\n margin-right: -0.8rem;\n }\n .header-close-button:hover {\n background-color: var(--w-color-button-pill-background-hover);\n }\n .header-close-button:active {\n background-color: var(--w-color-button-pill-background-active);\n }\n .header-close-button-on-image {\n background-color: rgba(var(--w-rgb-black), 0.7);\n right: 0.8rem;\n top: 0.8rem;\n position: absolute;\n z-index: 10;\n color: var(--w-s-color-text-inverted);\n }\n .header-close-button-on-image:hover {\n background-color: rgba(var(--w-rgb-black), 0.85);\n }\n .header-close-button-on-image:active {\n background-color: var(--w-black);\n }\n @media (min-width: 480px) {\n .header-title-bar {\n padding-left: 3.2rem;\n padding-right: 3.2rem;\n padding-top: 2.4rem;\n }\n .header-title-with-top-area {\n padding-left: 3.2rem;\n padding-right: 3.2rem;\n }\n .header-button {\n min-height: 32px;\n min-width: 32px;\n }\n }\n `,\n ];\n}\n\nif (!customElements.get('w-modal-header')) {\n customElements.define('w-modal-header', ModalHeader);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-modal-header': ModalHeader;\n }\n}\n", "/** @typedef {import('./move.d.ts').Deltas} Deltas */\n\n/**\n * @param {DOMRect} first\n * @param {DOMRect} last\n * @returns {Deltas}\n */\nexport const computeDeltas = (first, last) => ({\n dx: first.left - last.left,\n dy: first.top - last.top,\n dw: first.width / last.width,\n dh: first.height / last.height,\n first,\n last,\n})\n\n/** @param {Deltas} deltas */\nexport const moveKeyframes = ({ dx, dy }) => ([\n { transform: `translate(${dx}px, ${dy}px)` },\n { transform: 'none' },\n])\n\n/** @type {KeyframeAnimationOptions} */\nexport const animationDefaults = { easing: 'ease', duration: 300 }\n", "export let reduceMotion = false\n\nconst windowExists = (typeof window !== 'undefined')\nif (windowExists) {\n const query = window.matchMedia('(prefers-reduced-motion: reduce)')\n const callback = ({ matches }) => reduceMotion = matches\n // older browsers don't support the new API, and the old API is deprecated\n if (query.addEventListener) query.addEventListener('change', callback)\n callback(query)\n}\n\n", "import { moveKeyframes, computeDeltas, animationDefaults } from './utility.js'\nimport { reduceMotion } from './reduce-motion.js'\n\nexport class Move {\n /** @type {DOMRect | {}} */\n first;\n /** @type {DOMRect | {}} */\n last;\n /** @type {HTMLElement} */\n el;\n\n constructor(el, { animation = {}, keyframes, respectReduceMotion = true } = {}) {\n this.el = el\n this.first = {}\n this.last = {}\n this.userAnimationOptions = animation\n this.keyframeGenerator = keyframes || moveKeyframes\n this.shouldReduceMotion = respectReduceMotion\n }\n\n async when(cb) {\n this.prep()\n const v = await cb()\n await this.play()\n return v\n }\n\n prep() {\n this.first = this.el.getBoundingClientRect()\n }\n\n async play() {\n this.last = this.el.getBoundingClientRect()\n if (!this.el.animate) return\n const animation = this.el.animate(this.keyframes, this.animationOptions)\n await animation.finished\n }\n\n get keyframes() {\n return this.keyframeGenerator(computeDeltas(this.first, this.last))\n }\n\n get defaults() {\n return animationDefaults\n }\n\n get mergedOptions() {\n return { ...this.defaults, ...this.userAnimationOptions }\n }\n\n get animationOptions() {\n if (!this.shouldReduceMotion) return this.mergedOptions\n if (!reduceMotion) return this.mergedOptions\n return { ...this.mergedOptions, duration: 0 }\n }\n}\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/arrow-left/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/arrow-left/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/arrow-left/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/arrow-left/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/arrow-left/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconArrowLeft16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Leftward-pointing arrow`, id: 'icon.title.arrow-left', comment: 'Title for table arrow left icon' });\n \n return html`<svg xmlns=\"http://www.w3.org/2000/svg\"width=\"16\"height=\"16\"fill=\"none\"viewBox=\"0 0 16 16\" part=\"w-icon-arrow-left-16-part\">${unsafeStatic(`<title>${title}</title>`)}<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\" d=\"M5.222 8h6.667\"></path><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M7.444 11.75 4.111 8l3.333-3.75\"></path></svg>`; }\n}\nif (!customElements.get('w-icon-arrow-left-16')) {\n customElements.define('w-icon-arrow-left-16', IconArrowLeft16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.arrow-left\\\":[\\\"Pil som peker mot venstre\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.arrow-left\\\":[\\\"Leftward-pointing arrow\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.arrow-left\\\":[\\\"Vasemmalle osoittava nuoli\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.arrow-left\\\":[\\\"Pil til venstre\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.arrow-left\\\":[\\\"Pil som pekar v\u00E4nster\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"modal.aria.back\\\":[\\\"Tilbage\\\"],\\\"modal.aria.close\\\":[\\\"Luk\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"modal.aria.back\\\":[\\\"Back\\\"],\\\"modal.aria.close\\\":[\\\"Close\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"modal.aria.back\\\":[\\\"Takaisin\\\"],\\\"modal.aria.close\\\":[\\\"Sulje\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"modal.aria.back\\\":[\\\"Tilbake\\\"],\\\"modal.aria.close\\\":[\\\"Lukk\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"modal.aria.back\\\":[\\\"Tillbaka\\\"],\\\"modal.aria.close\\\":[\\\"St\u00E4ng\\\"]}\");", "import { css, html, LitElement } from 'lit';\n\nimport { property, query } from 'lit/decorators.js';\nimport { setup as setupScrollLock, teardown as teardownScrollLock } from 'scroll-doctor';\n\nimport { reset } from '../styles.js';\n\nimport { ProvidesCanCloseToSlotsMixin } from './util.js';\n\n/**\n * Modals (or dialogs) display important information that users need to acknowledge.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)\n *\n * @slot header - Typically where you would use the `w-modal-header` component.\n * @slot content - The main content of the modal.\n * @slot footer - Typically where you would use the `w-modal-footer` component, for things like actions.\n */\nexport class ModalMain extends ProvidesCanCloseToSlotsMixin(LitElement) {\n @property({ type: Boolean }) show: boolean;\n @property({ type: String, attribute: 'content-id' }) contentId: string;\n @property({ type: Boolean, attribute: 'ignore-backdrop-clicks' }) ignoreBackdropClicks: boolean;\n\n @query('.dialog-el') dialogEl: HTMLDialogElement;\n @query('.dialog-inner-el') dialogInnerEl: HTMLElement;\n @query('.content-el') contentEl: HTMLElement;\n\n constructor() {\n super();\n this.interceptEscape = this.interceptEscape.bind(this);\n this.closeOnBackdropClick = this.closeOnBackdropClick.bind(this);\n this.eventPreventer = this.eventPreventer.bind(this);\n this.modifyBorderRadius = this.modifyBorderRadius.bind(this);\n }\n\n async open() {\n this.dialogEl.showModal();\n this.handleListeners();\n setupScrollLock(this.contentEl);\n await this.updateComplete;\n this.dispatchEvent(new CustomEvent('shown', { bubbles: true, composed: true }));\n }\n\n close() {\n this.handleListeners('removeEventListener');\n this.dialogEl.classList.add('close');\n this.dialogEl.addEventListener(\n 'animationend',\n async () => {\n this.dialogEl.classList.remove('close');\n this.dialogEl.close();\n teardownScrollLock();\n await this.updateComplete;\n this.dispatchEvent(new CustomEvent('hidden', { bubbles: true, composed: true }));\n },\n { once: true },\n );\n }\n\n render() {\n return html`\n <dialog class=\"dialog-el\">\n <div class=\"dialog-inner-el\">\n <slot name=\"header\" @slotchange=\"${this.handleSlotChange}\"></slot>\n <div class=\"content-el\" id=${this.contentId}>\n <slot name=\"content\" @slotchange=\"${this.handleSlotChange}\"></slot>\n </div>\n <slot name=\"footer\" @slotchange=\"${this.handleSlotChange}\"></slot>\n </div>\n </dialog>\n `;\n }\n\n updated(changedProperties: Map<string, unknown>) {\n if (changedProperties.has('show')) this[this.show ? 'open' : 'close']();\n }\n\n handleListeners(verb = 'addEventListener') {\n // HACK: escape normally fires 'cancel' but 'cancel' can only be intercepted once (browser bug/quirk)\n document[verb]('keydown', this.interceptEscape);\n // Using 'mousedown' instead of 'click' because mouse-up events on the backdrop also trigger 'click'\n if (!this.ignoreBackdropClicks) this.dialogEl[verb]('mousedown', this.closeOnBackdropClick);\n // HACK: 'close' fires once the dialog is closed, thus it's cannot animate\n this.dialogEl[verb]('close', this.eventPreventer);\n // HACK: this might not be needed since escape is intercepted, but better to be safe\n this.dialogEl[verb]('cancel', this.eventPreventer);\n\n this.dialogInnerEl[verb]('transitionend', this.modifyBorderRadius);\n }\n\n eventPreventer(evt: Event) {\n evt.preventDefault();\n }\n\n closeOnBackdropClick(evt: MouseEvent) {\n if (this.dialogEl === evt.target) this.close();\n }\n\n interceptEscape(evt: KeyboardEvent) {\n if (evt.key === 'Escape') {\n evt.preventDefault();\n this.close();\n }\n }\n\n modifyBorderRadius() {\n if (this.dialogInnerEl.scrollHeight * 1.02 > innerHeight) this.dialogInnerEl.style.borderRadius = '0px';\n else this.dialogInnerEl.style.borderRadius = null;\n }\n\n static styles = [\n reset,\n css`\n .dialog-el {\n --w-modal-translate-distance: 100%;\n --w-modal-max-height: 80%;\n --w-modal-width: 640px;\n background-color: transparent;\n border-width: 0;\n align-items: flex-end;\n inset: 0rem;\n height: unset;\n max-height: unset;\n max-width: unset;\n width: unset;\n margin: auto;\n padding: 0rem;\n backface-visibility: hidden;\n }\n .dialog-inner-el {\n will-change: height;\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n position: relative;\n background-color: var(--w-s-color-background);\n box-shadow: var(--w-shadow-m);\n height: var(--w-modal-height);\n max-height: var(--w-modal-max-height);\n min-height: var(--w-modal-min-height);\n width: var(--w-modal-width);\n backface-visibility: hidden;\n padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n }\n .content-el {\n display: block;\n flex-shrink: 1;\n flex-grow: 1;\n overflow-x: hidden;\n overflow-y: auto;\n position: relative;\n margin-bottom: 0rem;\n padding-left: 1.6rem;\n padding-right: 1.6rem;\n }\n @media (min-width: 480px) {\n .dialog-el {\n --w-modal-translate-distance: 50%;\n place-content: center;\n place-items: center;\n }\n .dialog-inner-el {\n margin-left: 1.6rem;\n margin-right: 1.6rem;\n padding-bottom: 3.2rem;\n }\n .content-el {\n padding-left: 3.2rem;\n padding-right: 3.2rem;\n }\n }\n @media (max-width: 479.9px) {\n .dialog-inner-el {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n .dialog-el[open] {\n animation: w-modal-in 0.3s ease-in-out forwards;\n display: flex;\n position: fixed;\n }\n .dialog-el.close {\n animation: w-modal-out 0.3s ease-in-out forwards;\n }\n .dialog-el[open]::backdrop {\n animation: backdrop-in 0.3s ease-in-out forwards;\n }\n .dialog-el.close::backdrop {\n animation: backdrop-out 0.3s ease-in-out forwards;\n }\n /* shouldn't need two (in/out) animations declared here, but reversing is being weird */\n @keyframes w-modal-in {\n from {\n transform: translateY(var(--w-modal-translate-distance));\n opacity: 0;\n }\n to {\n transform: translateY(0);\n opacity: 1;\n }\n }\n @keyframes w-modal-out {\n from {\n transform: translateY(0);\n opacity: 1;\n }\n to {\n transform: translateY(var(--w-modal-translate-distance));\n opacity: 0;\n }\n }\n @keyframes backdrop-in {\n from {\n background: transparent;\n }\n to {\n background: rgba(0, 0, 0, 0.25);\n }\n }\n @keyframes backdrop-out {\n from {\n background: rgba(0, 0, 0, 0.25);\n }\n to {\n background: transparent;\n }\n }\n `,\n ];\n}\n\nif (!customElements.get('w-modal')) {\n customElements.define('w-modal', ModalMain);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-modal': ModalMain;\n }\n}\n", "let n = [];\nconst c = { documentElement: {}, body: {} }, i = Object.freeze({\n // html\n documentElement: {\n \"scrollbar-gutter\": \"stable\"\n },\n body: {\n overflow: \"hidden\",\n position: \"relative\",\n height: \"100%\"\n }\n}), r = (t) => {\n t.touches.length > 1 || t.preventDefault?.();\n}, h = (t) => ([e, s]) => {\n c[t][e] = document[t].style[e], document[t].style[e] = s;\n}, a = () => Object.entries(i).forEach(([t, e]) => {\n Object.entries(e).forEach(h(t));\n}), d = (t) => ([e, s]) => {\n document[t].style[e] = c[t][e];\n}, f = () => Object.entries(c).forEach(([t, e]) => {\n Object.entries(e).forEach(d(t));\n}), m = (t) => t.scrollHeight - Math.abs(t.scrollTop) === t.clientHeight;\nfunction y(t) {\n let e = -1;\n const s = (o) => {\n if (o.targetTouches.length !== 1)\n return;\n const l = o.targetTouches[0].clientY - e;\n return t.scrollTop === 0 && l > 0 || m(t) && l < 0 ? r(o) : (o.stopPropagation(), !0);\n };\n t.ontouchstart = (o) => {\n o.targetTouches.length === 1 && (e = o.targetTouches[0].clientY);\n }, t.ontouchmove = s;\n}\nfunction p(t) {\n t.ontouchstart = null, t.ontouchmove = null;\n}\nconst u = (t) => () => document[t ? \"addEventListener\" : \"removeEventListener\"](\"touchmove\", r, { passive: !1 }), b = u(!0), g = u();\nfunction E(t) {\n if (!t)\n throw Error(\"Could not run setup, an element must be provided\");\n n.some((e) => e === t) || (n.length || (a(), b()), y(t), n.push(t));\n}\nfunction T() {\n n.forEach(p), g(), f(), n = [];\n}\nexport {\n f as resetStyles,\n a as setStyles,\n E as setup,\n i as styleTargets,\n T as teardown\n};\n", "import { html, LitElement, TemplateResult } from 'lit';\n\nimport { property } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { map } from 'lit/directives/map.js';\nimport { range } from 'lit/directives/range.js';\n\nimport { styles } from './style.js';\n\nexport class WarpPageIndicator extends LitElement {\n static styles = [styles];\n\n /** Currently selected page (1-based index) */\n @property({ type: Number, attribute: 'selected-page' })\n selectedPage = 1;\n\n /** Total number of pages */\n @property({ type: Number, attribute: 'page-count' })\n pageCount = 1;\n\n render(): TemplateResult {\n return html`\n <div class=\"w-pageindicator\">\n <div class=\"w-pageindicator--container\">\n ${map(range(this.pageCount), (i) => {\n const isSelected = i === this.selectedPage - 1;\n const classes = {\n 'w-pageindicator--dot': true,\n 'w-pageindicator--selecteddot': isSelected,\n };\n return html`<div class=\"${classMap(classes)}\"></div>`;\n })}\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-pageindicator': WarpPageIndicator;\n }\n}\n\nif (!customElements.get('w-pageindicator')) {\n customElements.define('w-pageindicator', WarpPageIndicator);\n}\n", "import { css } from 'lit';\n\nexport const styles = css`\n .w-pageindicator {\n display: grid;\n justify-content: center;\n height: max-content;\n pointer-events: none;\n }\n\n .w-pageindicator--container {\n display: grid;\n grid-auto-flow: column;\n gap: 8px;\n }\n\n .w-pageindicator--dot {\n background-color: var(--w-s-color-background-disabled);\n border-radius: 5px;\n width: 10px;\n height: 10px;\n }\n\n .w-pageindicator--selecteddot {\n background-color: var(--w-s-color-icon-selected);\n }\n`;\n", "// @warp-css;\nimport { html, LitElement, nothing } from 'lit';\n\nimport { i18n } from '@lingui/core';\nimport { property } from 'lit/decorators.js';\n\nimport '@warp-ds/icons/elements/chevron-double-left-16';\nimport '@warp-ds/icons/elements/chevron-left-16';\nimport '@warp-ds/icons/elements/chevron-right-16';\nimport { activateI18n } from '../i18n.js';\nimport { reset } from '../styles.js';\n\nimport { messages as daMessages } from './locales/da/messages.mjs';\nimport { messages as enMessages } from './locales/en/messages.mjs';\nimport { messages as fiMessages } from './locales/fi/messages.mjs';\nimport { messages as nbMessages } from './locales/nb/messages.mjs';\nimport { messages as svMessages } from './locales/sv/messages.mjs';\nimport { styles } from './styles';\n\nconst iconSuffix = i18n._({\n id: 'pagination.aria.icon-suffix',\n message: 'icon',\n comment: 'Suffix added at the end of icon titles when img semantics are lost on an html element',\n});\n\nconst baseItemStyles =\n 'hover:no-underline focus:no-underline focusable inline-flex justify-center items-center transition-colors ease-in-out min-h-[44px] min-w-[44px] p-4 rounded-full border-0 hover:bg-clip-padding';\n\n/**\n * Pagination allows users to navigate through multiple pages of content by providing navigation controls with page numbers and directional arrows.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-pagination--docs)\n *\n * @fires {CustomEvent} page-click - Triggered when a link button in the pagination is clicked. Contains the page number in `string` form.\n */\nclass WarpPagination extends LitElement {\n @property({ type: String, reflect: true, attribute: 'base-url' })\n baseUrl: string;\n\n @property({ type: Number, reflect: true })\n pages: number;\n\n @property({ type: Number, reflect: true, attribute: 'current-page' })\n currentPageNumber = 1;\n\n @property({ type: Number, reflect: true, attribute: 'visible-pages' })\n visiblePages = 7;\n\n static styles = [reset, styles];\n\n constructor() {\n super();\n activateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n }\n\n /** @internal */\n get shouldShowShowFirstPageButton() {\n return this.currentPageNumber - 2 > 0;\n }\n\n /** @internal */\n get shouldShowPreviousPageButton() {\n return this.currentPageNumber - 1 > 0;\n }\n\n /** @internal */\n get shouldShowNextPageButton() {\n return this.currentPageNumber < this.pages;\n }\n\n /** @internal */\n get currentPageIndex() {\n return this.currentPageNumber - 1;\n }\n\n /** @internal */\n get visiblePageNumbers() {\n if (this.pages <= this.visiblePages) {\n // Show all pages if total pages is less than or equal to visible pages\n return Array.from({ length: this.pages }, (_, i) => i + 1);\n }\n\n const half = Math.floor(this.visiblePages / 2);\n let start = Math.max(1, this.currentPageNumber - half);\n const end = Math.min(this.pages, start + this.visiblePages - 1);\n\n // Adjust start if we're near the end\n if (end - start + 1 < this.visiblePages) {\n start = Math.max(1, end - this.visiblePages + 1);\n }\n\n return Array.from({ length: end - start + 1 }, (_, i) => start + i);\n }\n\n #dispatchClickPage(e: PointerEvent) {\n const clickedPage = (e.target as Element).getAttribute('data-page-number');\n\n this.dispatchEvent(\n new CustomEvent('page-click', {\n detail: { clickedPage },\n bubbles: true,\n composed: true,\n }),\n );\n }\n\n render() {\n const visiblePages = this.visiblePageNumbers;\n\n return html`<nav class=\"flex items-center justify-center p-8\" @click=\"${this.#dispatchClickPage}\">\n <h1 class=\"sr-only\">\n ${i18n._({\n id: 'pagination.aria.pagination',\n message: 'Pages',\n comment: 'Default screenreader message for pagination container in the pagination component',\n })}\n </h1>\n <div class=\"md:block s-text-link\">\n ${this.shouldShowShowFirstPageButton\n ? html`<a\n data-page-number=\"1\"\n href=\"${this.baseUrl}1\"\n class=\"${baseItemStyles +\n ' s-icon hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]'}\">\n <span class=\"sr-only\"\n >${i18n._({\n id: 'pagination.aria.first-page',\n message: 'First page',\n comment: 'Default screenreader message for first page link in the pagination component',\n })},</span\n >\n <w-icon-chevron-double-left-16></w-icon-chevron-double-left-16>\n <span class=\"sr-only\">${iconSuffix}</span>\n </a>`\n : nothing}\n ${this.shouldShowPreviousPageButton\n ? html`<a\n data-page-number=\"${this.currentPageNumber - 1}\"\n href=\"${this.baseUrl}${this.currentPageNumber - 1}\"\n class=\"${baseItemStyles +\n ' s-icon hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]'}\">\n <span class=\"sr-only\"\n >${i18n._({\n id: 'pagination.aria.prev-page',\n message: 'Previous page',\n comment: 'Default screenreader message for previous page link in the pagination component',\n })},</span\n >\n <w-icon-chevron-left-16></w-icon-chevron-left-16>\n <span class=\"sr-only\">${iconSuffix}</span>\n </a>`\n : nothing}\n ${visiblePages.map((pageNumber) => {\n const isCurrentPage = pageNumber === this.currentPageNumber;\n const url = `${this.baseUrl}${pageNumber}`;\n\n let styles = baseItemStyles;\n\n if (isCurrentPage) {\n styles += ' s-bg-primary s-text-inverted';\n } else {\n styles += ' hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]';\n }\n\n const ariaLabel = i18n._({\n id: 'pagination.aria.page',\n message: 'Page {currentPage}',\n values: { currentPage: pageNumber },\n comment: 'Default screenreader message for page link in the pagination component',\n });\n\n return html`<a\n data-page-number=\"${pageNumber}\"\n aria-label=\"${ariaLabel}\"\n href=\"${url}\"\n class=\"${styles}\"\n aria-current=\"${isCurrentPage ? 'page' : ''}\"\n >${pageNumber}</a\n >`;\n })}\n ${this.shouldShowNextPageButton\n ? html`<a\n data-page-number=\"${this.currentPageNumber + 1}\"\n href=\"${this.baseUrl}${this.currentPageNumber + 1}\"\n class=\"${baseItemStyles +\n ' s-icon hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]'}\">\n <span class=\"sr-only\">\n ${i18n._({\n id: 'pagination.aria.next-page',\n message: 'Next page',\n comment: 'Default screenreader message for next page link in the pagination component',\n })},</span\n >\n <w-icon-chevron-right-16></w-icon-chevron-right-16>\n <span class=\"sr-only\">${iconSuffix}</span>\n </a>`\n : nothing}\n </div>\n </nav>`;\n }\n}\n\nif (!customElements.get('w-pagination')) {\n customElements.define('w-pagination', WarpPagination);\n}\n\nexport { WarpPagination };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-pagination': WarpPagination;\n }\n}\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/chevron-double-left/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/chevron-double-left/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/chevron-double-left/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/chevron-double-left/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/chevron-double-left/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconChevronDoubleLeft16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Double leftward arrow`, id: 'icon.title.chevron-double-left', comment: 'Title for chevron-double-left icon' });\n \n return html`<svg xmlns=\"http://www.w3.org/2000/svg\"width=\"16\"height=\"16\"fill=\"none\"viewBox=\"0 0 16 16\" part=\"w-icon-chevron-double-left-16-part\">${unsafeStatic(`<title>${title}</title>`)}<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M7 13 2 8l5-5m7 10L9 8l5-5\"></path></svg>`; }\n}\nif (!customElements.get('w-icon-chevron-double-left-16')) {\n customElements.define('w-icon-chevron-double-left-16', IconChevronDoubleLeft16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-double-left\\\":[\\\"Dobbel pil til venstre\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-double-left\\\":[\\\"Double leftward arrow\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-double-left\\\":[\\\"Kaksi nuolta vasemmalle\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-double-left\\\":[\\\"Dobbelt venstrepil\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-double-left\\\":[\\\"Dubbel v\u00E4nsterpil\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/chevron-left/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/chevron-left/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/chevron-left/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/chevron-left/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/chevron-left/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconChevronLeft16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Leftward arrow`, id: 'icon.title.chevron-left', comment: 'Title for chevron-left icon' });\n \n return html`<svg xmlns=\"http://www.w3.org/2000/svg\"width=\"16\"height=\"16\"fill=\"none\"viewBox=\"0 0 16 16\" part=\"w-icon-chevron-left-16-part\">${unsafeStatic(`<title>${title}</title>`)}<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M10.5 13.75 5 8.25l5.5-5.5\"></path></svg>`; }\n}\nif (!customElements.get('w-icon-chevron-left-16')) {\n customElements.define('w-icon-chevron-left-16', IconChevronLeft16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-left\\\":[\\\"Pil til venstre\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-left\\\":[\\\"Leftward arrow\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-left\\\":[\\\"Nuoli vasemmalle\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-left\\\":[\\\"Pil til venstre\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-left\\\":[\\\"Pil v\u00E4nster\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/chevron-right/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/chevron-right/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/chevron-right/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/chevron-right/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/chevron-right/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconChevronRight16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Rightward arrow`, id: 'icon.title.chevron-right', comment: 'Title for chevron-right icon' });\n \n return html`<svg xmlns=\"http://www.w3.org/2000/svg\"width=\"16\"height=\"16\"fill=\"none\"viewBox=\"0 0 16 16\" part=\"w-icon-chevron-right-16-part\">${unsafeStatic(`<title>${title}</title>`)}<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"m5.5 13.75 5.5-5.5-5.5-5.5\"></path></svg>`; }\n}\nif (!customElements.get('w-icon-chevron-right-16')) {\n customElements.define('w-icon-chevron-right-16', IconChevronRight16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-right\\\":[\\\"Pil til h\u00F8yre\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-right\\\":[\\\"Rightward arrow\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-right\\\":[\\\"Nuoli oikealle\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-right\\\":[\\\"Pil til h\u00F8jre\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.chevron-right\\\":[\\\"Pil h\u00F6ger\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"pagination.aria.first-page\\\":[\\\"F\u00F8rste side\\\"],\\\"pagination.aria.icon-suffix\\\":[\\\"ikon\\\"],\\\"pagination.aria.next-page\\\":[\\\"N\u00E6ste side\\\"],\\\"pagination.aria.page\\\":[\\\"Side \\\",[\\\"currentPage\\\"]],\\\"pagination.aria.pagination\\\":[\\\"Sider\\\"],\\\"pagination.aria.prev-page\\\":[\\\"Forrige side\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"pagination.aria.first-page\\\":[\\\"First page\\\"],\\\"pagination.aria.icon-suffix\\\":[\\\"icon\\\"],\\\"pagination.aria.next-page\\\":[\\\"Next page\\\"],\\\"pagination.aria.page\\\":[\\\"Page \\\",[\\\"currentPage\\\"]],\\\"pagination.aria.pagination\\\":[\\\"Pages\\\"],\\\"pagination.aria.prev-page\\\":[\\\"Previous page\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"pagination.aria.first-page\\\":[\\\"Ensimm\u00E4inen sivu\\\"],\\\"pagination.aria.icon-suffix\\\":[\\\"kuvake\\\"],\\\"pagination.aria.next-page\\\":[\\\"Seuraava sivu\\\"],\\\"pagination.aria.page\\\":[\\\"Sivu \\\",[\\\"currentPage\\\"]],\\\"pagination.aria.pagination\\\":[\\\"Sivut\\\"],\\\"pagination.aria.prev-page\\\":[\\\"Edellinen sivu\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"pagination.aria.first-page\\\":[\\\"F\u00F8rste side\\\"],\\\"pagination.aria.icon-suffix\\\":[\\\"ikon\\\"],\\\"pagination.aria.next-page\\\":[\\\"Neste side\\\"],\\\"pagination.aria.page\\\":[\\\"Side \\\",[\\\"currentPage\\\"]],\\\"pagination.aria.pagination\\\":[\\\"Sider\\\"],\\\"pagination.aria.prev-page\\\":[\\\"Forrige side\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"pagination.aria.first-page\\\":[\\\"F\u00F6rsta sidan\\\"],\\\"pagination.aria.icon-suffix\\\":[\\\"ikon\\\"],\\\"pagination.aria.next-page\\\":[\\\"N\u00E4sta sida\\\"],\\\"pagination.aria.page\\\":[\\\"Sida \\\",[\\\"currentPage\\\"]],\\\"pagination.aria.pagination\\\":[\\\"Sidor\\\"],\\\"pagination.aria.prev-page\\\":[\\\"F\u00F6reg\u00E5ende sida\\\"]}\");", "import { css } from 'lit'; export const styles = css`*,: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}.hover\\\\:bg-clip-padding:hover{-webkit-background-clip:padding-box;background-clip:padding-box}.hover\\\\:bg-\\\\[--w-color-button-pill-background-hover\\\\]:hover{background-color:var(--w-color-button-pill-background-hover)}.active\\\\:bg-\\\\[--w-color-button-pill-background-active\\\\]:active{background-color:var(--w-color-button-pill-background-active)}.border-0{border-width:0}.rounded-full{border-radius:9999px}.flex{display:flex}.inline-flex{display:inline-flex}.hover\\\\:no-underline:hover,.focus\\\\:no-underline:focus{text-decoration:none}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.justify-center{justify-content:center}.static{position:static}.s-bg-primary{background-color:var(--w-s-color-background-primary)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.s-text-link{color:var(--w-s-color-text-link)}.s-icon{color:var(--w-s-color-icon)}.min-h-\\\\[44px\\\\]{min-height:44px}.min-w-\\\\[44px\\\\]{min-width:44px}.p-4{padding:.4rem}.p-8{padding:.8rem}.visible{visibility:visible}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width:768px){.md\\\\:block{display:block}}`;\n", "// @warp-css;\n\nimport { html, LitElement } from 'lit';\nimport '@warp-ds/icons/elements/close-16';\n\nimport { classNames } from '@chbphone55/classnames';\nimport { i18n } from '@lingui/core';\nimport { property } from 'lit/decorators.js';\n\nimport { activateI18n } from '../i18n';\nimport { reset } from '../styles.js';\n\nimport { messages as daMessages } from './locales/da/messages.mjs';\nimport { messages as enMessages } from './locales/en/messages.mjs';\nimport { messages as fiMessages } from './locales/fi/messages.mjs';\nimport { messages as nbMessages } from './locales/nb/messages.mjs';\nimport { messages as svMessages } from './locales/sv/messages.mjs';\nimport { styles } from './styles.js';\n\nexport const pillStyles = {\n wrapper: 'flex items-center',\n button: 'inline-flex items-center focusable text-xs transition-all',\n suggestion:\n 'bg-[--w-color-pill-suggestion-background] hover:bg-[--w-color-pill-suggestion-background-hover] active:bg-[--w-color-pill-suggestion-background-active] s-text font-bold',\n filter: 's-bg-primary hover:s-bg-primary-hover active:s-bg-primary-active s-text-inverted',\n label: 'pl-12 py-8 rounded-l-full',\n labelWithoutClose: 'pr-12 rounded-r-full',\n labelWithClose: 'pr-2',\n close: 'pr-12 pl-4 py-8 rounded-r-full',\n closeIcon: 'h-16',\n a11y: 'sr-only',\n};\n\n/**\n * Pill is a type of button that is often used as a filter, but can also be used as a rounded button for overlays, etc.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-pill--docs)\n */\nclass WarpPill extends LitElement {\n @property({ attribute: 'can-close', type: Boolean }) canClose: boolean;\n @property({ attribute: 'suggestion', type: Boolean }) suggestion: boolean;\n /**\n * @deprecated Used \"open-arial-label\" instead.\n */\n @property({ attribute: 'open-sr-label', type: String }) openSrLabel: string;\n @property({ attribute: 'open-aria-label', type: String }) openAriaLabel: string;\n /**\n * @deprecated Used \"close-arial-label\" instead.\n */\n @property({ attribute: 'close-sr-label', type: String }) closeSrLabel: string;\n @property({ attribute: 'close-aria-label', type: String }) closeAriaLabel: string;\n\n /** @internal */\n openFilterSrText: string;\n /** @internal */\n removeFilterSrText: string;\n\n static styles = [reset, styles];\n\n constructor() {\n super();\n activateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n this.canClose = false;\n this.suggestion = false;\n\n this.openFilterSrText = i18n._({\n id: 'pill.aria.openFilter',\n message: 'Open filter',\n comment: 'Fallback screen reader message for open filter',\n });\n\n this.removeFilterSrText = i18n._({\n id: 'pill.aria.removeFilter',\n message: 'Remove filter {label}',\n comment: 'Fallback screen reader message for removal of the filter',\n });\n }\n\n /** @internal */\n get _labelClasses() {\n return classNames([\n pillStyles.button,\n pillStyles.label,\n this.suggestion ? pillStyles.suggestion : pillStyles.filter,\n this.canClose ? pillStyles.labelWithClose : pillStyles.labelWithoutClose,\n ]);\n }\n\n /** @internal */\n get _closeClasses() {\n return classNames([pillStyles.button, pillStyles.close, this.suggestion ? pillStyles.suggestion : pillStyles.filter]);\n }\n\n /** @internal */\n _onClick() {\n this.dispatchEvent(new CustomEvent('w-pill-click', { bubbles: true, composed: true }));\n }\n\n /** @internal */\n _onClose() {\n this.dispatchEvent(new CustomEvent('w-pill-close', { bubbles: true, composed: true }));\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (this.openSrLabel) {\n this.openAriaLabel = this.openSrLabel;\n }\n if (this.closeSrLabel) {\n this.closeAriaLabel = this.closeSrLabel;\n }\n }\n\n render() {\n return html`\n <div class=\"${pillStyles.wrapper}\">\n <button type=\"button\" class=\"${this._labelClasses}\" @click=\"${this._onClick}\">\n <span class=\"${pillStyles.a11y}\">${this.openAriaLabel ? this.openAriaLabel : this.openFilterSrText}</span>\n <slot></slot>\n </button>\n ${this.canClose\n ? html` <button type=\"button\" class=\"${this._closeClasses}\" @click=\"${this._onClose}\">\n <span class=\"${pillStyles.a11y}\">${this.closeAriaLabel ? this.closeAriaLabel : this.removeFilterSrText}</span>\n <w-icon-close-16 class=\"${pillStyles.closeIcon}\"></w-icon-close-16>\n </button>`\n : null}\n </div>\n `;\n }\n}\n\nif (!customElements.get('w-pill')) {\n customElements.define('w-pill', WarpPill);\n}\n\nexport { WarpPill };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-pill': WarpPill;\n }\n}\n", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"pill.aria.openFilter\\\":[\\\"\u00C5bn filter\\\"],\\\"pill.aria.removeFilter\\\":[\\\"Fjern filter \\\",[\\\"label\\\"]]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"pill.aria.openFilter\\\":[\\\"Open filter\\\"],\\\"pill.aria.removeFilter\\\":[\\\"Remove filter \\\",[\\\"label\\\"]]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"pill.aria.openFilter\\\":[\\\"Avaa suodatin\\\"],\\\"pill.aria.removeFilter\\\":[\\\"Tyhjenn\u00E4 suodatin \\\",[\\\"label\\\"]]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"pill.aria.openFilter\\\":[\\\"\u00C5pne filter\\\"],\\\"pill.aria.removeFilter\\\":[\\\"Fjern filter \\\",[\\\"label\\\"]]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"pill.aria.openFilter\\\":[\\\"\u00D6ppna filter\\\"],\\\"pill.aria.removeFilter\\\":[\\\"Ta bort filtret \\\",[\\\"label\\\"]]}\");", "import { css } from 'lit'; export const styles = css`*,: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}.bg-\\\\[--w-color-pill-suggestion-background\\\\]{background-color:var(--w-color-pill-suggestion-background)}.hover\\\\:bg-\\\\[--w-color-pill-suggestion-background-hover\\\\]:hover{background-color:var(--w-color-pill-suggestion-background-hover)}.active\\\\:bg-\\\\[--w-color-pill-suggestion-background-active\\\\]:active{background-color:var(--w-color-pill-suggestion-background-active)}.rounded-l-full{border-top-left-radius:9999px;border-bottom-left-radius:9999px}.rounded-r-full{border-top-right-radius:9999px;border-bottom-right-radius:9999px}.flex{display:flex}.inline-flex{display:inline-flex}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.static{position:static}.s-bg-primary{background-color:var(--w-s-color-background-primary)}.hover\\\\:s-bg-primary-hover:hover{background-color:var(--w-s-color-background-primary-hover)}.active\\\\:s-bg-primary-active:active{background-color:var(--w-s-color-background-primary-active)}.s-text{color:var(--w-s-color-text)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.h-16{height:1.6rem}.py-8{padding-top:.8rem;padding-bottom:.8rem}.pl-12{padding-left:1.2rem}.pl-4{padding-left:.4rem}.pr-12{padding-right:1.2rem}.pr-2{padding-right:.2rem}.font-bold{font-weight:700}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}`;\n", "import type { PropertyValues } from 'lit';\nimport { html } from 'lit';\n\nimport { property, state } from 'lit/decorators.js';\n\nimport { BaseFormAssociatedElement } from './form-associated-element';\n// eslint-disable-next-line\n// @ts-ignore\nimport styles from './radio.css?inline';\n\nexport class WRadio extends BaseFormAssociatedElement {\n static css = [styles];\n\n @state() checked = false;\n\n /** @internal Used by radio group to force disable radios while preserving their original disabled state. */\n @state() forceDisabled = false;\n\n /**\n * The string pointing to a form's id.\n */\n @property({ reflect: true }) form: string | null = null;\n\n /** The radio's value. When selected, the radio group will receive this value. */\n @property({ reflect: true }) value: string;\n\n /** The radio's value. When selected, the radio group will receive this value. */\n @property({ reflect: true }) appearance: 'default' | 'button' | 'clickable' = 'default';\n\n /**\n * The radio's size. When used inside a radio group, the size will be determined by the radio group's size so this\n * attribute can typically be omitted.\n */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Disables the radio. */\n @property({ type: Boolean }) disabled = false;\n\n constructor() {\n super();\n this.addEventListener('click', this.handleClick);\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.setInitialAttributes();\n }\n\n private setInitialAttributes() {\n this.setAttribute('role', 'radio');\n this.tabIndex = 0;\n this.setAttribute('aria-disabled', this.disabled || this.forceDisabled ? 'true' : 'false');\n }\n\n updated(changedProperties: PropertyValues<this>) {\n super.updated(changedProperties);\n\n if (changedProperties.has('checked')) {\n this.customStates.set('checked', this.checked);\n this.setAttribute('aria-checked', this.checked ? 'true' : 'false');\n // Only set tabIndex if not disabled\n if (!this.disabled && !this.forceDisabled) {\n this.tabIndex = this.checked ? 0 : -1;\n }\n }\n\n if (changedProperties.has('disabled') || changedProperties.has('forceDisabled')) {\n const effectivelyDisabled = this.disabled || this.forceDisabled;\n this.customStates.set('disabled', effectivelyDisabled);\n this.setAttribute('aria-disabled', effectivelyDisabled ? 'true' : 'false');\n\n // Set tabIndex based on disabled state\n if (effectivelyDisabled) {\n this.tabIndex = -1;\n } else {\n // Restore proper tabIndex - this will be managed by the radio group\n this.tabIndex = this.checked ? 0 : -1;\n }\n }\n }\n\n /**\n * @override\n */\n setValue(): void {\n // We override `setValue` because we don't want to set form values from here. We want to do that in \"RadioGroup\" itself.\n }\n\n // Update the handleClick method (around line 75)\n private handleClick = () => {\n if (!this.disabled && !this.forceDisabled) {\n this.checked = true;\n }\n };\n\n render() {\n return html`\n <span part=\"control\" class=\"control\"></span>\n <slot part=\"label\" class=\"label\"></slot>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-radio': WRadio;\n }\n}\n", "import { LitElement, isServer } from 'lit';\n\nimport { property } from 'lit/decorators.js';\n\nimport BaseElement from './base-element.js';\nimport { CustomErrorValidator } from './custom-error-validator.js';\nimport { WInvalidEvent } from './invalid';\n\nexport interface Validator<T extends BaseFormAssociatedElement = BaseFormAssociatedElement> {\n observedAttributes?: string[];\n checkValidity: (element: T) => {\n message: string;\n isValid: boolean;\n invalidKeys: Exclude<keyof ValidityState, 'valid'>[];\n };\n message?: string | ((element: T) => string);\n}\n\nexport interface BaseFormControl extends BaseElement {\n // Form attributes\n name: null | string;\n disabled?: boolean;\n defaultValue?: unknown;\n defaultChecked?: boolean;\n checked?: boolean;\n defaultSelected?: boolean;\n selected?: boolean;\n form?: string | null;\n\n value?: unknown;\n\n // Constraint validation attributes\n pattern?: string;\n min?: number | string | Date;\n max?: number | string | Date;\n step?: number | 'any';\n required?: boolean;\n minlength?: number;\n maxlength?: number;\n\n // Form validation properties\n readonly validity: ValidityState;\n readonly validationMessage: string;\n\n // Form validation methods\n checkValidity: () => boolean;\n getForm: () => HTMLFormElement | null;\n reportValidity: () => boolean;\n setCustomValidity: (message: string) => void;\n\n // Form properties\n hasInteracted: boolean;\n valueHasChanged?: boolean;\n\n /** Convenience API for `setCustomValidity()` */\n customError: null | string;\n}\n\n// setFormValue omitted so that we can use `setValue`\nexport class BaseFormAssociatedElement extends BaseElement implements Omit<ElementInternals, 'form' | 'setFormValue'>, BaseFormControl {\n static formAssociated = true;\n\n /**\n * Validators are static because they have `observedAttributes`, essentially attributes to \"watch\"\n * for changes. Whenever these attributes change, we want to be notified and update the validator.\n */\n static get validators(): Validator[] {\n return [CustomErrorValidator()];\n }\n\n // Append all Validator \"observedAttributes\" into the \"observedAttributes\" so they can run.\n static get observedAttributes() {\n const parentAttrs = new Set(super.observedAttributes || []);\n\n for (const validator of this.validators) {\n if (!validator.observedAttributes) {\n continue;\n }\n\n for (const attr of validator.observedAttributes) {\n parentAttrs.add(attr);\n }\n }\n\n return [...parentAttrs];\n }\n\n // Form attributes\n /** The name of the input, submitted as a name/value pair with form data. */\n @property({ reflect: true }) name: string | null = null;\n\n /** Disables the form control. */\n @property({ type: Boolean }) disabled = false;\n\n required: boolean = false;\n\n assumeInteractionOn: string[] = ['input'];\n\n // Additional\n input?: (HTMLElement & { value: unknown }) | HTMLInputElement | HTMLTextAreaElement;\n\n validators: Validator[] = [];\n\n // Should these be private?\n @property({ state: true, attribute: false }) valueHasChanged: boolean = false;\n @property({ state: true, attribute: false }) hasInteracted: boolean = false;\n\n // This works around a limitation in Safari. It is a hacky way for us to preserve custom errors generated by the user.\n @property({ attribute: 'custom-error', reflect: true }) customError: string | null = null;\n\n private emittedEvents: string[] = [];\n\n constructor() {\n super();\n\n if (!isServer) {\n this.addEventListener('invalid', this.emitInvalid);\n }\n }\n // this bullshit makes no sense but tsc is angry about it\n // this needs both 'private' and 'typeof' or it will be angry and we don't know why\n // eslint-disable-next-line\n // @ts-ignore\n private states: typeof CustomStateSet;\n\n connectedCallback() {\n super.connectedCallback();\n this.updateValidity();\n\n // Lazily evaluate after the constructor to allow people to override the `assumeInteractionOn`\n this.assumeInteractionOn.forEach((event) => {\n this.addEventListener(event, this.handleInteraction);\n });\n }\n\n firstUpdated(...args: Parameters<LitElement['firstUpdated']>) {\n super.firstUpdated(...args);\n this.updateValidity();\n }\n\n emitInvalid = (e: Event) => {\n if (e.target !== this) return;\n\n // An \"invalid\" event counts as interacted, this is usually triggered by a button \"submitting\"\n this.hasInteracted = true;\n this.dispatchEvent(new WInvalidEvent());\n };\n\n protected willUpdate(changedProperties: Parameters<LitElement['willUpdate']>[0]) {\n if (!isServer && changedProperties.has('customError')) {\n // We use null because it we really don't want it to show up in the attributes because `custom-error` does reflect\n if (!this.customError) {\n this.customError = null;\n }\n this.setCustomValidity(this.customError || '');\n }\n\n if (changedProperties.has('value') || changedProperties.has('disabled')) {\n // @ts-expect-error Some components will use an accessors, other use a property, so we don't want to limit them.\n const value = this.value as unknown;\n\n // Accounts for the snowflake case on `<wa-select>`\n if (Array.isArray(value)) {\n if (this.name) {\n const formData = new FormData();\n for (const val of value) {\n formData.append(this.name, val as string);\n }\n this.setValue(formData, formData);\n }\n } else {\n this.setValue(value as FormData | string | File | null, value as FormData | string | File | null);\n }\n }\n\n if (changedProperties.has('disabled')) {\n this.customStates.set('disabled', this.disabled);\n\n if (this.hasAttribute('disabled') || (!isServer && !this.matches(':disabled'))) {\n this.toggleAttribute('disabled', this.disabled);\n }\n }\n\n this.updateValidity();\n super.willUpdate(changedProperties);\n }\n\n private handleInteraction = (event: Event) => {\n const emittedEvents = this.emittedEvents;\n if (!emittedEvents.includes(event.type)) {\n emittedEvents.push(event.type);\n }\n\n // Mark it as user-interacted as soon as all associated events have been emitted\n if (emittedEvents.length === this.assumeInteractionOn?.length) {\n this.hasInteracted = true;\n }\n };\n\n get labels() {\n return this.internals.labels;\n }\n\n getForm() {\n return this.internals.form;\n }\n\n @property({ attribute: false, state: true, type: Object })\n get validity() {\n return this.internals.validity;\n }\n\n // Not sure if this supports `novalidate`. Will need to test.\n get willValidate() {\n return this.internals.willValidate;\n }\n\n get validationMessage() {\n return this.internals.validationMessage;\n }\n\n checkValidity() {\n this.updateValidity();\n return this.internals.checkValidity();\n }\n\n reportValidity() {\n this.updateValidity();\n // This seems reasonable. `reportValidity()` is kind of like \"we expect you to have interacted\"\n this.hasInteracted = true;\n return this.internals.reportValidity();\n }\n\n /**\n * Override this to change where constraint validation popups are anchored.\n */\n get validationTarget(): undefined | HTMLElement {\n return (this.input || undefined) as undefined | HTMLElement;\n }\n\n setValidity(...args: Parameters<typeof this.internals.setValidity>) {\n const flags = args[0];\n const message = args[1];\n let anchor = args[2];\n\n if (!anchor) {\n anchor = this.validationTarget;\n }\n\n this.internals.setValidity(flags, message, anchor || undefined);\n this.requestUpdate('validity');\n this.setCustomStates();\n }\n\n setCustomStates() {\n const required = Boolean(this.required);\n const isValid = this.internals.validity.valid;\n const hasInteracted = this.hasInteracted;\n\n this.customStates.set('required', required);\n this.customStates.set('optional', !required);\n this.customStates.set('invalid', !isValid);\n this.customStates.set('valid', isValid);\n this.customStates.set('user-invalid', !isValid && hasInteracted);\n this.customStates.set('user-valid', isValid && hasInteracted);\n }\n\n /**\n * Do not use this when creating a \"Validator\". This is intended for end users of components.\n * We track manually defined custom errors so we don't clear them on accident in our validators.\n *\n */\n setCustomValidity(message: string) {\n if (!message) {\n // We use null because it we really don't want it to show up in the attributes because `custom-error` does reflect\n this.customError = null;\n this.setValidity({});\n return;\n }\n\n this.customError = message;\n this.setValidity({ customError: true }, message, this.validationTarget);\n }\n\n formResetCallback() {\n this.resetValidity();\n this.hasInteracted = false;\n this.valueHasChanged = false;\n this.emittedEvents = [];\n this.updateValidity();\n }\n\n formDisabledCallback(isDisabled: boolean) {\n this.disabled = isDisabled;\n\n this.updateValidity();\n }\n\n /**\n * Called when the browser is trying to restore element\u2019s state to state in which case reason is \"restore\", or when\n * the browser is trying to fulfill autofill on behalf of user in which case reason is \"autocomplete\". In the case of\n * \"restore\", state is a string, File, or FormData object previously set as the second argument to setFormValue.\n */\n formStateRestoreCallback(state: string | File | FormData | null, reason: 'autocomplete' | 'restore') {\n // @ts-expect-error We purposely do not have a value property. It makes things hard to extend.\n this.value = state;\n\n if (reason === 'restore') {\n this.resetValidity();\n }\n\n this.updateValidity();\n }\n\n setValue(...args: Parameters<typeof this.internals.setFormValue>) {\n const [value, state] = args;\n\n this.internals.setFormValue(value, state);\n }\n\n get allValidators() {\n const staticValidators = (this.constructor as typeof BaseFormAssociatedElement).validators || [];\n\n const validators = this.validators || [];\n return [...staticValidators, ...validators];\n }\n\n /**\n * Reset validity is a way of removing manual custom errors and native validation.\n */\n resetValidity() {\n this.setCustomValidity('');\n this.setValidity({});\n }\n\n updateValidity() {\n if (\n this.disabled ||\n this.hasAttribute('disabled') ||\n !this.willValidate //\n ) {\n this.resetValidity();\n\n return;\n }\n\n const validators = this.allValidators;\n\n if (!validators?.length) {\n // If there's no validators, we do nothing. We also don't want to mess with custom errors, so we just stop here.\n return;\n }\n\n type ValidityKey = { -readonly [P in keyof ValidityState]: ValidityState[P] };\n\n const flags: Partial<ValidityKey> = {\n // Don't trust custom errors from the Browser. Safari breaks the spec.\n customError: Boolean(this.customError),\n };\n\n const formControl = this.validationTarget || this.input || undefined;\n\n let finalMessage = '';\n\n for (const validator of validators) {\n const { isValid, message, invalidKeys } = validator.checkValidity(this);\n\n if (isValid) {\n continue;\n }\n\n if (!finalMessage) {\n finalMessage = message;\n }\n\n if (invalidKeys?.length >= 0) {\n (invalidKeys as (keyof ValidityState)[]).forEach((str) => (flags[str] = true));\n }\n }\n\n // This is a workaround for preserving custom errors\n if (!finalMessage) {\n finalMessage = this.validationMessage;\n }\n\n this.setValidity(flags, finalMessage, formControl);\n }\n}\n", "// eslint-disable-next-line\n// @ts-nocheck\nimport type { CSSResult, CSSResultGroup } from 'lit';\nimport { LitElement, unsafeCSS } from 'lit';\n\nimport { property } from 'lit/decorators.js';\n\nimport hostStyles from './host.css?inline';\n\n// Augment Lit's module\ndeclare module 'lit' {\n interface PropertyDeclaration {\n /**\n * Specifies the property\u2019s default value\n */\n /* eslint-disable */\n default?: any;\n /* eslint-disable */\n initial?: any;\n }\n}\n\nexport default class BaseElement extends LitElement {\n /**\n * One or more CSS files to include in the component's shadow root. Host styles are automatically prepended. We use\n * this instead of Lit's styles property because we're importing CSS files as strings and need to convert them using\n * unsafeCSS.\n */\n static css?: CSSResultGroup | CSSResult | string | (CSSResult | string)[];\n\n /**\n * Override the default styles property to fetch and convert string CSS files. Components can override this behavior\n * by setting their own `static styles = []` property.\n */\n static get styles(): CSSResultGroup {\n const styles = Array.isArray(this.css) ? this.css : this.css ? [this.css] : [];\n return [hostStyles, ...styles].map((style) => (typeof style === 'string' ? unsafeCSS(style) : style));\n }\n\n #hasRecordedInitialProperties = false;\n initialReflectedProperties: Map<string, unknown> = new Map();\n internals: ElementInternals;\n\n // Make localization attributes reactive\n @property() dir: string;\n @property() lang: string;\n\n constructor() {\n super();\n\n try {\n this.internals = this.attachInternals();\n } catch {\n /* Need to tell people if they need a polyfill. */\n\n console.error('Element internals are not supported in your browser. Consider using a polyfill');\n }\n\n this.customStates.set('wa-defined', true);\n\n const Self = this.constructor as typeof BaseElement;\n for (const [property, spec] of Self.elementProperties) {\n if (spec.default === 'inherit' && spec.initial !== undefined && typeof property === 'string') {\n this.customStates.set(`initial-${property}-${spec.initial}`, true);\n }\n }\n }\n\n attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null) {\n if (!this.#hasRecordedInitialProperties) {\n (this.constructor as typeof BaseElement).elementProperties.forEach((obj, prop: keyof typeof this & string) => {\n\n if (obj.reflect && this[prop] != null) {\n this.initialReflectedProperties.set(prop, this[prop]);\n }\n });\n\n this.#hasRecordedInitialProperties = true;\n }\n\n super.attributeChangedCallback(name, oldValue, newValue);\n }\n\n protected willUpdate(changedProperties: Parameters<LitElement['willUpdate']>[0]): void {\n super.willUpdate(changedProperties);\n\n // Run the morph fixing *after* willUpdate.\n this.initialReflectedProperties.forEach((value, prop: string & keyof typeof this) => {\n // If a prop changes to `null`, we assume this happens via an attribute changing to `null`.\n\n if (changedProperties.has(prop) && this[prop] == null) {\n // Silly type gymnastics to appease the compiler.\n (this as Record<string, unknown>)[prop] = value;\n }\n });\n }\n\n /**\n * Methods for setting and checking custom states.\n */\n public customStates = {\n /** Adds or removes the specified custom state. */\n set: (customState: string, active: boolean) => {\n if (!this.internals?.states) return;\n if (active) {\n this.internals.states.add(customState);\n } else {\n this.internals.states.delete(customState);\n }\n },\n\n /** Determines whether or not the element currently has the specified state. */\n has: (customState: string) => {\n if (!this.internals?.states) return false;\n return this.internals.states.has(customState);\n },\n };\n\n /**\n * Given a native event, this function cancels it and dispatches it again from the host element using the desired\n * event options.\n */\n relayNativeEvent(event: Event, eventOptions?: EventInit) {\n event.stopImmediatePropagation();\n\n this.dispatchEvent(\n new (event.constructor as typeof Event)(event.type, {\n ...event,\n ...eventOptions,\n }),\n );\n }\n}\n", ":host {\n box-sizing: border-box !important;\n}\n\n:host *,\n:host *::before,\n:host *::after {\n box-sizing: inherit !important;\n}\n\n", "import type { Validator } from './form-associated-element';\n\n/**\n * This validator is for if you have an exact copy of your element in the shadow DOM. Rather than needing\n * custom translations and error messages, you can simply rely on the element \"formControl\" in your shadow dom.\n */\nexport const CustomErrorValidator = (): Validator => {\n return {\n observedAttributes: ['custom-error'],\n checkValidity(element) {\n const validity: ReturnType<Validator['checkValidity']> = {\n message: '',\n isValid: true,\n invalidKeys: [],\n };\n\n if (element.customError) {\n validity.message = element.customError;\n validity.isValid = false;\n validity.invalidKeys = ['customError'];\n }\n\n return validity;\n },\n };\n};\n", "export class WInvalidEvent extends Event {\n constructor() {\n super('w-invalid', { bubbles: true, cancelable: false, composed: true });\n }\n}\n\ndeclare global {\n interface GlobalEventHandlersEventMap {\n 'wa-invalid': WInvalidEvent;\n }\n}\n", ":host {\n color: var(--wa-form-control-value-color);\n display: inline-flex;\n flex-direction: row;\n align-items: top;\n font-family: inherit;\n font-weight: var(--wa-form-control-value-font-weight);\n line-height: var(--wa-form-control-value-line-height);\n cursor: pointer;\n user-select: none;\n -webkit-user-select: none;\n}\n\n:host(:focus) {\n outline: none;\n}\n\n[part~='label'] {\n display: inline;\n}\n\n[part~='hint'] {\n margin-block-start: 0.5em;\n}\n\n/* Default appearance */\n:host([appearance='default']) {\n .control {\n flex: 0 0 auto;\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--wa-form-control-toggle-size, 2rem);\n height: var(--wa-form-control-toggle-size, 2rem);\n border-color: var(--wa-form-control-border-color, gray);\n border-radius: 50%;\n border-style: var(--wa-form-control-border-style, solid);\n border-width: var(--wa-form-control-border-width, 1px);\n background-color: var(--wa-form-control-background-color, white);\n color: transparent;\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n\n margin-inline-end: 0.5em;\n }\n}\n\n:host([appearance='clickable']) .control {\n position: absolute;\n inset: 0;\n height: 100%;\n width: 100%;\n cursor: pointer;\n}\n\n/* Checked */\n:host(:state(checked)):not(:host([appearance='clickable'])) .control {\n /* color: var(--checked-icon-color, white); */\n border-color: var(--wa-form-control-activated-color, blue);\n background-color: var(--wa-form-control-background-color, white);\n border-width: 0.6rem;\n}\n\n/* Focus */\n:host(:focus-visible) .control {\n outline: 2px solid var(--w-s-color-border-focus);\n outline-offset: var(--w-outline-offset, 1px);\n}\n\n:host([appearance='clickable']:focus-visible) .control {\n outline-offset: -4px;\n border-radius: 8px;\n}\n\n/* Disabled */\n:host(:state(disabled)) {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Button appearance */\n:host([appearance='button']) {\n align-items: center;\n min-height: var(--wa-form-control-height);\n background-color: var(--wa-color-surface-default);\n border: var(--wa-form-control-border-width) var(--wa-form-control-border-style) var(--wa-form-control-border-color);\n border-radius: var(--wa-border-radius-m);\n padding: 0 var(--wa-form-control-padding-inline);\n transition:\n background-color var(--wa-transition-fast),\n border-color var(--wa-transition-fast);\n\n .control {\n display: none;\n }\n}\n\n/* Horizontal grouping - remove inner border radius */\n:host([appearance='button'][data-wa-radio-horizontal][data-wa-radio-inner]) {\n border-radius: 0;\n}\n\n:host([appearance='button'][data-wa-radio-horizontal][data-wa-radio-first]) {\n border-start-end-radius: 0;\n border-end-end-radius: 0;\n}\n\n:host([appearance='button'][data-wa-radio-horizontal][data-wa-radio-last]) {\n border-start-start-radius: 0;\n border-end-start-radius: 0;\n}\n\n/* Vertical grouping - remove inner border radius */\n:host([appearance='button'][data-wa-radio-vertical][data-wa-radio-inner]) {\n border-radius: 0;\n}\n\n:host([appearance='button'][data-wa-radio-vertical][data-wa-radio-first]) {\n border-end-start-radius: 0;\n border-end-end-radius: 0;\n}\n\n:host([appearance='button'][data-wa-radio-vertical][data-wa-radio-last]) {\n border-start-start-radius: 0;\n border-start-end-radius: 0;\n}\n\n@media (hover: hover) {\n :host([appearance='button']:hover:not(:state(disabled), :state(checked))) {\n background-color: color-mix(in srgb, var(--wa-color-surface-default) 95%, var(--wa-color-mix-hover));\n }\n}\n\n:host([appearance='button']:focus-visible) {\n outline: var(--wa-focus-ring);\n outline-offset: var(--wa-focus-ring-offset);\n}\n\n:host([appearance='button']:state(checked)) {\n border-color: var(--wa-form-control-activated-color);\n background-color: var(--wa-color-brand-fill-quiet);\n}\n\n:host([appearance='button']:state(checked):focus-visible) {\n outline: var(--wa-focus-ring-style) var(--wa-focus-ring-width) var(--wa-color-brand-border-loud);\n outline-offset: var(--wa-focus-ring-offset);\n}\n\n/* Remove inner borders and handle overlap */\n:host([appearance='button'][data-wa-radio-horizontal]:not([data-wa-radio-first])) {\n margin-inline-start: calc(-1 * var(--wa-form-control-border-width));\n}\n\n:host([appearance='button'][data-wa-radio-vertical]:not([data-wa-radio-first])) {\n margin-block-start: calc(-1 * var(--wa-form-control-border-width));\n}\n\n/* Ensure interactive states are visible above adjacent buttons */\n:host([appearance='button']:hover),\n:host([appearance='button']:state(checked)) {\n position: relative;\n z-index: 1;\n}\n\n:host([appearance='button']:focus-visible) {\n z-index: 2;\n}\n\n", "import type { PropertyValues } from 'lit';\nimport { html } from 'lit';\n\nimport { property, query, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\n\nimport { BaseFormAssociatedElement } from './form-associated-element';\nimport { uniqueId } from './math';\nimport './radio';\nimport type { WRadio } from './radio';\n// eslint-disable-next-line\n// @ts-ignore\nimport styles from './radio-group.css?inline';\nimport { RequiredValidator } from './required-validator';\nimport { HasSlotController } from './slot';\n\n/**\n * @slot label - Alternative to the `label` attribute should you need custom HTML.\n */\nexport class WRadioGroup extends BaseFormAssociatedElement {\n static css = [styles];\n\n static get validators() {\n const validators = [\n RequiredValidator({\n validationElement: Object.assign(document.createElement('input'), {\n required: true,\n type: 'radio',\n // we need an id that's guaranteed to be unique; users will never see this\n name: uniqueId('__w-radio'),\n }),\n }),\n ];\n return [...super.validators, ...validators];\n }\n\n private readonly hasSlotController = new HasSlotController(this, 'hint', 'label');\n\n @state() hasRadioButtons = false;\n\n @query('slot:not([name])') defaultSlot: HTMLSlotElement;\n\n /**\n * The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot\n * instead.\n */\n @property() label = '';\n\n /** The radio groups's hint. If you need to display HTML, use the `hint` slot instead. */\n @property({ attribute: 'hint' }) hint = '';\n\n /** The name of the radio group, submitted as a name/value pair with form data. */\n @property({ reflect: true }) name: string | null = null;\n\n /** Disables the radio group and all child radios. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** The orientation in which to show radio items. */\n @property({ reflect: true }) orientation: 'horizontal' | 'vertical' = 'vertical';\n\n private _value: string | null = null;\n\n get value() {\n if (this.valueHasChanged) {\n return this._value;\n }\n\n return this._value ?? this.defaultValue;\n }\n\n /** The current value of the radio group, submitted as a name/value pair with form data. */\n @state()\n set value(val: string | number | null) {\n if (typeof val === 'number') val = String(val);\n this.valueHasChanged = true;\n this._value = val;\n }\n\n /** The default value of the form control. Primarily used for resetting the form control. */\n @property({ attribute: 'value', reflect: true }) defaultValue: string | null = this.getAttribute('value') || null;\n\n /** The radio group's size. This size will be applied to all child radios and radio buttons, except when explicitly overridden. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Ensures a child radio is checked before allowing the containing form to submit. */\n @property({ type: Boolean, reflect: true }) required = false;\n\n /**\n * Used for SSR. if true, will show slotted label on initial render.\n */\n @property({ type: Boolean, attribute: 'with-label' }) withLabel = false;\n\n /**\n * Used for SSR. if true, will show slotted hint on initial render.\n */\n @property({ type: Boolean, attribute: 'with-hint' }) withHint = false;\n\n //\n // We need this because if we don't have it, FormValidation yells at us that it's \"not focusable\".\n // If we use `this.tabIndex = -1` we can't focus the radio inside.\n //\n static shadowRootOptions = { ...BaseFormAssociatedElement.shadowRootOptions, delegatesFocus: true };\n\n constructor() {\n super();\n this.addEventListener('keydown', this.handleKeyDown);\n this.addEventListener('click', this.handleRadioClick);\n }\n\n /**\n * We use the first available radio as the validationTarget similar to native HTML that shows the validation popup on\n * the first radio element.\n */\n get validationTarget() {\n const radio = this.querySelector<WRadio>(':is(w-radio):not([disabled])');\n if (!radio) return undefined;\n\n return radio;\n }\n\n updated(changedProperties: PropertyValues<this>) {\n if (changedProperties.has('disabled') || changedProperties.has('value')) {\n this.syncRadioElements();\n }\n }\n\n formResetCallback(...args: Parameters<BaseFormAssociatedElement['formResetCallback']>) {\n this.value = this.defaultValue;\n\n super.formResetCallback(...args);\n\n this.syncRadioElements();\n }\n\n private handleRadioClick = (e: Event) => {\n const clickedRadio = (e.target as HTMLElement).closest<WRadio>('w-radio');\n /* eslint-disable */\n if (!clickedRadio || clickedRadio.disabled || (clickedRadio as any).forceDisabled || this.disabled) {\n return;\n }\n\n const oldValue = this.value;\n this.value = clickedRadio.value;\n clickedRadio.checked = true;\n\n const radios = this.getAllRadios();\n for (const radio of radios) {\n if (clickedRadio === radio) {\n continue;\n }\n\n radio.checked = false;\n radio.setAttribute('tabindex', '-1');\n }\n\n if (this.value !== oldValue) {\n this.updateComplete.then(() => {\n this.dispatchEvent(new InputEvent('input', { bubbles: true, composed: true }));\n this.dispatchEvent(new Event('change', { bubbles: true, composed: true }));\n });\n }\n };\n\n private getAllRadios() {\n return [...this.querySelectorAll<WRadio>('w-radio')];\n }\n\n private handleLabelClick() {\n this.focus();\n }\n\n private async syncRadioElements() {\n const radios = this.getAllRadios();\n let hasRadioButtons = false;\n\n // Add data attributes to support styling\n radios.forEach((radio, index) => {\n if (radio.appearance === 'button') hasRadioButtons = true;\n radio.setAttribute('size', this.size);\n radio.toggleAttribute('data-w-radio-horizontal', this.orientation !== 'vertical');\n radio.toggleAttribute('data-w-radio-vertical', this.orientation === 'vertical');\n radio.toggleAttribute('data-w-radio-first', index === 0);\n radio.toggleAttribute('data-w-radio-inner', index !== 0 && index !== radios.length - 1);\n radio.toggleAttribute('data-w-radio-last', index === radios.length - 1);\n\n // Set forceDisabled state based on radio group's disabled state\n (radio as WRadio).forceDisabled = this.disabled;\n });\n\n // If at least one radio button exists, we assume it's a radio button group\n this.hasRadioButtons = hasRadioButtons;\n\n await Promise.all(\n radios.map(async (radio) => {\n await radio.updateComplete;\n\n if (!radio.disabled && radio.value === this.value) {\n radio.checked = true;\n } else {\n radio.checked = false;\n }\n }),\n );\n\n // Manage tabIndex based on disabled state and checked status\n if (this.disabled) {\n // If radio group is disabled, all radios should not be tabbable\n radios.forEach((radio) => {\n radio.tabIndex = -1;\n });\n } else {\n // Normal tabbing behavior\n const enabledRadios = radios.filter((radio) => !radio.disabled);\n const checkedRadio = enabledRadios.find((radio) => radio.checked);\n\n if (enabledRadios.length > 0) {\n if (checkedRadio) {\n // If there's a checked radio, it should be tabbable\n enabledRadios.forEach((radio) => {\n radio.tabIndex = radio.checked ? 0 : -1;\n });\n } else {\n // If no radio is checked, first enabled radio should be tabbable\n enabledRadios.forEach((radio, index) => {\n radio.tabIndex = index === 0 ? 0 : -1;\n });\n }\n }\n\n // Disabled radios should never be tabbable\n radios\n .filter((radio) => radio.disabled)\n .forEach((radio) => {\n radio.tabIndex = -1;\n });\n }\n }\n\n private handleKeyDown(event: KeyboardEvent) {\n if (!['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', ' '].includes(event.key) || this.disabled) {\n return;\n }\n\n const radios = this.getAllRadios().filter((radio) => !radio.disabled);\n\n if (radios.length <= 0) {\n return;\n }\n\n event.preventDefault();\n\n const oldValue = this.value;\n\n const checkedRadio = radios.find((radio) => radio.checked) ?? radios[0];\n const incr = event.key === ' ' ? 0 : ['ArrowUp', 'ArrowLeft'].includes(event.key) ? -1 : 1;\n let index = radios.indexOf(checkedRadio) + incr;\n\n if (!index) index = 0;\n\n if (index < 0) {\n index = radios.length - 1;\n }\n\n if (index > radios.length - 1) {\n index = 0;\n }\n\n const hasRadioButtons = radios.some((radio) => radio.tagName.toLowerCase() === 'w-radio-button');\n\n this.getAllRadios().forEach((radio) => {\n radio.checked = false;\n\n if (!hasRadioButtons) {\n radio.setAttribute('tabindex', '-1');\n }\n });\n\n this.value = radios[index].value;\n radios[index].checked = true;\n\n if (!hasRadioButtons) {\n radios[index].setAttribute('tabindex', '0');\n radios[index].focus();\n } else {\n radios[index].shadowRoot!.querySelector('button')!.focus();\n }\n\n if (this.value !== oldValue) {\n this.updateComplete.then(() => {\n this.dispatchEvent(new InputEvent('input', { bubbles: true, composed: true }));\n this.dispatchEvent(new Event('change', { bubbles: true, composed: true }));\n });\n }\n\n event.preventDefault();\n }\n\n /** Sets focus on the radio group. */\n public focus(options?: FocusOptions) {\n if (this.disabled) return;\n\n const radios = this.getAllRadios();\n const checked = radios.find((radio) => radio.checked);\n const firstEnabledRadio = radios.find((radio) => !radio.disabled);\n const radioToFocus = checked || firstEnabledRadio;\n\n // Call focus for the checked radio. If no radio is checked, focus the first one that isn't disabled.\n if (radioToFocus) {\n radioToFocus.focus(options);\n }\n }\n\n render() {\n const hasLabelSlot = this.hasUpdated ? this.hasSlotController.test('label') : this.withLabel;\n const hasHintSlot = this.hasUpdated ? this.hasSlotController.test('hint') : this.withHint;\n const hasLabel = this.label ? true : !!hasLabelSlot;\n const hasHint = this.hint ? true : !!hasHintSlot;\n\n return html`\n <fieldset\n part=\"form-control\"\n class=${classMap({\n 'form-control': true,\n 'form-control-radio-group': true,\n 'form-control-has-label': hasLabel,\n 'has-radio-buttons': this.hasRadioButtons,\n })}\n role=\"radiogroup\"\n aria-labelledby=\"label\"\n aria-describedby=\"hint\"\n aria-errormessage=\"error-message\"\n aria-orientation=${this.orientation}>\n <label\n part=\"form-control-label\"\n id=\"label\"\n class=\"label\"\n aria-hidden=${hasLabel ? 'false' : 'true'}\n @click=${this.handleLabelClick}>\n <slot name=\"label\">${this.label}</slot>\n </label>\n\n <slot part=\"form-control-input\" @slotchange=${this.syncRadioElements}></slot>\n\n <slot\n id=\"hint\"\n name=\"hint\"\n part=\"hint\"\n class=${classMap({\n 'has-slotted': hasHint,\n })}\n aria-hidden=${hasHint ? 'false' : 'true'}\n >${this.hint}</slot\n >\n </fieldset>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-radio-group': WRadioGroup;\n }\n}\n", "export const urlAlphabet =\n 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict'\n", "/* @ts-self-types=\"./index.d.ts\" */\nimport { urlAlphabet as scopedUrlAlphabet } from './url-alphabet/index.js'\nexport { urlAlphabet } from './url-alphabet/index.js'\nexport let random = bytes => crypto.getRandomValues(new Uint8Array(bytes))\nexport let customRandom = (alphabet, defaultSize, getRandom) => {\n let mask = (2 << Math.log2(alphabet.length - 1)) - 1\n let step = -~((1.6 * mask * defaultSize) / alphabet.length)\n return (size = defaultSize) => {\n let id = ''\n while (true) {\n let bytes = getRandom(step)\n let j = step | 0\n while (j--) {\n id += alphabet[bytes[j] & mask] || ''\n if (id.length >= size) return id\n }\n }\n }\n}\nexport let customAlphabet = (alphabet, size = 21) =>\n customRandom(alphabet, size | 0, random)\nexport let nanoid = (size = 21) => {\n let id = ''\n let bytes = crypto.getRandomValues(new Uint8Array((size |= 0)))\n while (size--) {\n id += scopedUrlAlphabet[bytes[size] & 63]\n }\n return id\n}\n", "import { nanoid } from 'nanoid';\n\nexport function uniqueId(prefix = '') {\n return `${prefix}${nanoid()}`;\n}\n", ":host {\n display: block;\n}\n\n.form-control {\n position: relative;\n border: none;\n padding: 0;\n margin: 0;\n}\n\n.label {\n font-size: var(--w-font-size-s);\n line-height: var(--w-line-height-s);\n font-weight: 700;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n font-smoothing: grayscale;\n cursor: pointer;\n padding-bottom: 0.4rem;\n color: var(--w-s-color-text);\n display: block;\n}\n\n.radio-group-required .label::after {\n content: var(--wa-form-control-required-content);\n margin-inline-start: var(--wa-form-control-required-content-offset);\n}\n\n.button-group {\n display: flex;\n}\n\n[part~='form-control-input'] {\n display: flex;\n flex-direction: column;\n flex-wrap: wrap;\n gap: 0.75em;\n}\n\n/* Horizontal */\n:host([orientation='horizontal']) [part~='form-control-input'] {\n flex-direction: row;\n gap: 1em;\n}\n\n/* Help text */\n[part~='hint'] {\n margin-block-start: 0.5em;\n}\n\n/* Radios have the \"button\" appearance */\n:host fieldset.has-radio-buttons {\n [part~='form-control-input'] {\n gap: 0;\n }\n}\n\n", "import type { Validator } from './form-associated-element';\n\nexport interface RequiredValidatorOptions {\n /** This is a cheap way for us to get translation strings for the user without having proper translations. */\n validationElement?: HTMLSelectElement | HTMLInputElement;\n\n /**\n * The property to check if its not null-ish. For most elements this will be \"value\".\n * For \"checkbox\" for example it will be \"checked\"\n */\n validationProperty?: string;\n}\n\nexport const RequiredValidator = (options: RequiredValidatorOptions = {}): Validator => {\n let { validationElement, validationProperty } = options;\n\n if (!validationElement) {\n validationElement = Object.assign(document.createElement('input'), { required: true });\n }\n\n if (!validationProperty) {\n validationProperty = 'value';\n }\n\n const obj: Validator = {\n observedAttributes: ['required'],\n message: validationElement.validationMessage, // @TODO: Add a translation.\n checkValidity(element) {\n const validity: ReturnType<Validator['checkValidity']> = {\n message: '',\n isValid: true,\n invalidKeys: [],\n };\n\n const isRequired = element.required ?? element.hasAttribute('required');\n\n // Always true if the element isn't required.\n if (!isRequired) {\n return validity;\n }\n\n const value = element[validationProperty as keyof typeof element];\n\n const isEmpty = !value;\n\n if (isEmpty) {\n validity.message = typeof obj.message === 'function' ? obj.message(element) : obj.message || '';\n validity.isValid = false;\n validity.invalidKeys.push('valueMissing');\n }\n\n return validity;\n },\n };\n\n return obj;\n};\n", "import type { ReactiveController, ReactiveControllerHost } from 'lit';\n\n/** A reactive controller that determines when slots exist. */\nexport class HasSlotController implements ReactiveController {\n host: ReactiveControllerHost & Element;\n slotNames: string[] = [];\n\n constructor(host: ReactiveControllerHost & Element, ...slotNames: string[]) {\n (this.host = host).addController(this);\n this.slotNames = slotNames;\n }\n\n private hasDefaultSlot() {\n return [...this.host.childNodes].some((node) => {\n if (node.nodeType === Node.TEXT_NODE && node.textContent!.trim() !== '') {\n return true;\n }\n\n if (node.nodeType === Node.ELEMENT_NODE) {\n const el = node as HTMLElement;\n const tagName = el.tagName.toLowerCase();\n\n // Ignore visually hidden elements since they aren't rendered\n if (tagName === 'w-visually-hidden') {\n return false;\n }\n\n // If it doesn't have a slot attribute, it's part of the default slot\n if (!el.hasAttribute('slot')) {\n return true;\n }\n }\n\n return false;\n });\n }\n\n private hasNamedSlot(name: string) {\n return this.host.querySelector(`:scope > [slot=\"${name}\"]`) !== null;\n }\n\n test(slotName: string) {\n return slotName === '[default]' ? this.hasDefaultSlot() : this.hasNamedSlot(slotName);\n }\n\n hostConnected() {\n this.host.shadowRoot!.addEventListener('slotchange', this.handleSlotChange);\n }\n\n hostDisconnected() {\n this.host.shadowRoot!.removeEventListener('slotchange', this.handleSlotChange);\n }\n\n private handleSlotChange = (event: Event) => {\n const slot = event.target as HTMLSlotElement;\n\n if ((this.slotNames.includes('[default]') && !slot.name) || (slot.name && this.slotNames.includes(slot.name))) {\n this.host.requestUpdate();\n }\n };\n}\n\n/**\n * Given a list of nodes, this function iterates over all of them and returns the concatenated\n * HTML as a string. This is useful for getting the HTML that corresponds to a slot\u2019s assigned nodes (since we can't use slot.innerHTML as an alternative).\n * @param nodes - The list of nodes to iterate over.\n * @param callback - A function that can be used to customize the HTML output for specific types of nodes. If the function returns undefined, the default HTML output will be used.\n */\nexport function getInnerHTML(nodes: Iterable<Node>, callback?: (node: Node) => string | undefined): string {\n let html = '';\n\n for (const node of nodes) {\n if (callback) {\n const customHTML = callback(node);\n\n if (customHTML !== undefined) {\n html += customHTML;\n continue;\n }\n }\n\n if (node.nodeType === Node.ELEMENT_NODE) {\n html += (node as HTMLElement).outerHTML;\n }\n\n if (node.nodeType === Node.TEXT_NODE) {\n html += node.textContent;\n }\n }\n\n return html;\n}\n", "import { WRadio } from './radio';\nimport { WRadioGroup } from './radio-group';\n\nif (!customElements.get('w-radio')) {\n customElements.define('w-radio', WRadio);\n customElements.define('w-radio-group', WRadioGroup);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-radio': WRadio;\n 'w-radio-group': WRadioGroup;\n }\n}\n", "import type { PropertyValues } from 'lit';\nimport { html } from 'lit';\n\nimport { property, query } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { live } from 'lit/directives/live.js';\n\nimport { BaseFormAssociatedElement } from '../rip-and-tear-radio/form-associated-element';\nimport { RequiredValidator } from '../rip-and-tear-radio/required-validator';\nimport { HasSlotController } from '../rip-and-tear-radio/slot';\nimport { watch } from '../rip-and-tear-radio/watch';\nimport '@warp-ds/icons/elements/check-16';\n\n// eslint-disable-next-line\n// @ts-ignore\nimport styles from './checkbox.css?inline';\n\nexport class WCheckbox extends BaseFormAssociatedElement {\n static css = [styles];\n\n static shadowRootOptions = { ...BaseFormAssociatedElement.shadowRootOptions, delegatesFocus: true };\n\n static get validators() {\n const validators = [\n RequiredValidator({\n validationProperty: 'checked',\n // Use a checkbox so we get \"free\" translation strings.\n validationElement: Object.assign(document.createElement('input'), {\n type: 'checkbox',\n required: true,\n }),\n }),\n ];\n return [...super.validators, ...validators];\n }\n\n private readonly hasSlotController = new HasSlotController(this, 'hint');\n\n @query('input[type=\"checkbox\"]') input: HTMLInputElement;\n\n @property() title = ''; // make reactive to pass through\n\n /** The name of the checkbox, submitted as a name/value pair with form data. */\n @property({ reflect: true }) name = '';\n\n private _value: string | null = this.getAttribute('value') ?? null;\n\n /** The value of the checkbox, submitted as a name/value pair with form data. */\n get value(): string | null {\n return this._value ?? 'on';\n }\n\n @property({ reflect: true })\n set value(val: string | null) {\n this._value = val;\n }\n\n /** The checkbox's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Disables the checkbox. */\n @property({ type: Boolean }) disabled = false;\n\n /**\n * Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a \"select\n * all/none\" behavior when associated checkboxes have a mix of checked and unchecked states.\n */\n @property({ type: Boolean, reflect: true }) indeterminate = false;\n\n /** Draws the checkbox in a checked state. */\n @property({ type: Boolean, attribute: false }) checked: boolean = this.hasAttribute('checked');\n\n /** The default value of the form control. Primarily used for resetting the form control. */\n @property({ type: Boolean, reflect: true, attribute: 'checked' }) defaultChecked: boolean = this.hasAttribute('checked');\n\n /**\n * By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\n * to place the form control outside of a form and associate it with the form that has this `id`. The form must be in\n * the same document or shadow root for this to work.\n */\n @property({ reflect: true }) form = null;\n\n /** Makes the checkbox a required field. */\n @property({ type: Boolean, reflect: true }) required = false;\n\n /** The checkbox's hint. If you need to display HTML, use the `hint` slot instead. */\n @property() hint = '';\n\n private handleClick() {\n this.hasInteracted = true;\n this.checked = !this.checked;\n this.indeterminate = false;\n this.updateComplete.then(() => {\n this.dispatchEvent(new Event('change', { bubbles: true, composed: true }));\n });\n }\n\n @watch('defaultChecked')\n handleDefaultCheckedChange() {\n if (!this.hasInteracted && this.checked !== this.defaultChecked) {\n this.checked = this.defaultChecked;\n this.handleValueOrCheckedChange();\n }\n }\n\n handleValueOrCheckedChange() {\n // These @watch() commands seem to override the base element checks for changes, so we need to setValue for the form and and updateValidity()\n this.setValue(this.checked ? this.value : null, this._value);\n this.updateValidity();\n }\n\n @watch(['checked', 'indeterminate'])\n handleStateChange() {\n if (this.hasUpdated) {\n this.input.checked = this.checked; // force a sync update\n this.input.indeterminate = this.indeterminate; // force a sync update\n }\n\n this.customStates.set('checked', this.checked);\n this.customStates.set('indeterminate', this.indeterminate);\n this.updateValidity();\n }\n\n @watch('disabled')\n handleDisabledChange() {\n this.customStates.set('disabled', this.disabled);\n }\n\n protected willUpdate(changedProperties: PropertyValues<this>): void {\n super.willUpdate(changedProperties);\n\n if (changedProperties.has('defaultChecked')) {\n if (!this.hasInteracted) {\n this.checked = this.defaultChecked;\n }\n }\n\n if (changedProperties.has('value') || changedProperties.has('checked')) {\n this.handleValueOrCheckedChange();\n }\n }\n\n formResetCallback() {\n // Evaluate checked before the super call because of our watcher on value.\n this.checked = this.defaultChecked;\n super.formResetCallback();\n this.handleValueOrCheckedChange();\n }\n\n /** Simulates a click on the checkbox. */\n click() {\n this.input.click();\n }\n\n /** Sets focus on the checkbox. */\n focus(options?: FocusOptions) {\n this.input.focus(options);\n }\n\n /** Removes focus from the checkbox. */\n blur() {\n this.input.blur();\n }\n\n render() {\n const hasHintSlot = this.hasSlotController.test('hint');\n const hasHint = this.hint ? true : !!hasHintSlot;\n const isIndeterminate = !this.checked && this.indeterminate;\n\n return html`\n <label part=\"base\">\n <span part=\"control\">\n <input\n class=\"input\"\n type=\"checkbox\"\n title=${this.title /* An empty title prevents browser validation tooltips from appearing on hover */}\n name=${this.name}\n value=${ifDefined(this._value)}\n .indeterminate=${live(this.indeterminate)}\n .checked=${live(this.checked)}\n .disabled=${this.disabled}\n .required=${this.required}\n aria-checked=${this.checked ? 'true' : 'false'}\n aria-describedby=\"hint\"\n @click=${this.handleClick} />\n ${isIndeterminate ? '\u2013' : ''}\n </span>\n\n <slot part=\"label\"></slot>\n </label>\n\n <slot id=\"hint\" part=\"hint\" name=\"hint\" aria-hidden=${hasHint ? 'false' : 'true'} class=\"${classMap({ 'has-slotted': hasHint })}\">\n ${this.hint}\n </slot>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-checkbox': WCheckbox;\n }\n}\n", "import type { LitElement } from 'lit';\n\ntype UpdateHandler = (prev?: unknown, next?: unknown) => void;\n\ntype NonUndefined<A> = A extends undefined ? never : A;\n\ntype UpdateHandlerFunctionKeys<T extends object> = {\n [K in keyof T]-?: NonUndefined<T[K]> extends UpdateHandler ? K : never;\n}[keyof T];\n\ninterface WatchOptions {\n /**\n * If true, will only start watching after the initial update/render\n */\n waitUntilFirstUpdate?: boolean;\n}\n\n/**\n * Runs when observed properties change, e.g. @property or @state, but before the component updates. To wait for an\n * update to complete after a change occurs, use `await this.updateComplete` in the handler. To start watching after the\n * initial update/render, use `{ waitUntilFirstUpdate: true }` or `this.hasUpdated` in the handler.\n *\n * Usage:\n *\n * @watch('propName')\n * handlePropChange(oldValue, newValue) {\n * ...\n * }\n */\nexport function watch(propertyName: string | string[], options?: WatchOptions) {\n const resolvedOptions: Required<WatchOptions> = {\n waitUntilFirstUpdate: false,\n ...options,\n };\n return <ElemClass extends LitElement>(proto: ElemClass, decoratedFnName: UpdateHandlerFunctionKeys<ElemClass>) => {\n // @ts-expect-error - update is a protected property\n const { update } = proto;\n const watchedProperties = Array.isArray(propertyName) ? propertyName : [propertyName];\n\n // @ts-expect-error - update is a protected property\n proto.update = function (this: ElemClass, changedProps: Map<keyof ElemClass, ElemClass[keyof ElemClass]>) {\n watchedProperties.forEach((property) => {\n const key = property as keyof ElemClass;\n if (changedProps.has(key)) {\n const oldValue = changedProps.get(key);\n const newValue = this[key];\n\n if (oldValue !== newValue) {\n if (!resolvedOptions.waitUntilFirstUpdate || this.hasUpdated) {\n (this[decoratedFnName] as unknown as UpdateHandler)(oldValue, newValue);\n }\n }\n }\n });\n\n update.call(this, changedProps);\n };\n };\n}\n", "import { LitElement } from 'lit';\nimport { unsafeStatic, html } from \"lit/static-html.js\";\nimport { i18n } from '@lingui/core';\nimport { messages as nbMessages} from '../src/raw/check/locales/nb/messages.mjs';\nimport { messages as enMessages} from '../src/raw/check/locales/en/messages.mjs';\nimport { messages as fiMessages} from '../src/raw/check/locales/fi/messages.mjs';\nimport { messages as daMessages} from '../src/raw/check/locales/da/messages.mjs';\nimport { messages as svMessages} from '../src/raw/check/locales/sv/messages.mjs';\nimport { activateI18n } from '../src/utils/i18n';\nactivateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n\nexport class IconCheck16 extends LitElement {\n render() {\n const title = i18n.t({ message: `Checkmark`, id: 'icon.title.check', comment: 'Title for check icon' });\n \n return html`<svg xmlns=\"http://www.w3.org/2000/svg\"width=\"16\"height=\"16\"fill=\"none\"viewBox=\"0 0 16 16\" part=\"w-icon-check-16-part\">${unsafeStatic(`<title>${title}</title>`)}<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M3.83 7.667 7.163 11l5.334-6\"></path></svg>`; }\n}\nif (!customElements.get('w-icon-check-16')) {\n customElements.define('w-icon-check-16', IconCheck16);\n}", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.check\\\":[\\\"Sjekkmerke\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.check\\\":[\\\"Checkmark\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.check\\\":[\\\"Valintamerkki\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.check\\\":[\\\"Flueben\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"icon.title.check\\\":[\\\"Bock\\\"]}\");", "import { Messages, i18n } from '@lingui/core';\n\nexport const supportedLocales = ['en', 'nb', 'fi', 'da', 'sv'] as const;\ntype SupportedLocale = (typeof supportedLocales)[number];\n\nexport const defaultLocale = 'en';\n\nconst detectByBrand = () => {\n\tlet value;\n switch (process?.env?.NMP_BRAND) {\n\t\tcase 'FINN':\n\t\t\tvalue = 'nb';\n\t\t\tbreak;\n\t\tcase 'TORI':\n\t\t\tvalue = 'fi';\n\t\t\tbreak;\n\t\tcase 'BLOCKET':\n\t\t\tvalue = 'sv';\n\t\t\tbreak;\n\t\tcase 'DBA':\n\t\t\tvalue = 'da';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = 'en';\n\t}\n\treturn value;\n};\n\nconst detectByHost = () => {\n const hostname = document?.location?.hostname;\n if (hostname?.includes('finn')) {\n return 'nb';\n } else if (hostname.includes('tori')) {\n return 'fi';\n } else if (hostname.includes('blocket')) {\n return 'sv';\n } else if (hostname.includes('dba')) {\n return 'da';\n } else {\n return defaultLocale;\n }\n}\n\nexport const getSupportedLocale = (usedLocale: string) => {\n return (\n supportedLocales.find(\n (locale) =>\n usedLocale === locale || usedLocale.toLowerCase().includes(locale)\n ) || detectByHost()\n );\n};\n\nexport function detectLocale(): SupportedLocale {\n if (typeof window === 'undefined') {\n /**\n * Server locale detection. This requires e.g NMP_BRAND environment variable to be set on the server.\n */\n const serverLocale = detectByBrand();\n return getSupportedLocale(serverLocale);\n }\n\n try {\n /**\n * Client locale detection. Expects the lang attribute to be defined.\n */\n const htmlLocale = document?.documentElement?.lang;\n const hostLocale = detectByHost();\n \n if (!supportedLocales.includes(htmlLocale as SupportedLocale)) {\n console.warn('Unsupported locale set in html lang tag, falling back to detection by hostname');\n return getSupportedLocale(hostLocale);\n }\n return getSupportedLocale(htmlLocale ?? hostLocale);\n } catch (e) {\n console.warn('could not detect locale, falling back to source locale', e);\n return defaultLocale;\n }\n}\n\nexport const getMessages = (\n locale: SupportedLocale,\n enMsg: Messages,\n nbMsg: Messages,\n fiMsg: Messages,\n daMsg: Messages,\n svMsg: Messages\n) => {\n if (locale === 'nb') return nbMsg;\n if (locale === 'fi') return fiMsg;\n if (locale === 'da') return daMsg;\n if (locale === 'sv') return svMsg;\n // Default to English\n return enMsg;\n};\n\nexport const activateI18n = (\n enMessages: Messages,\n nbMessages: Messages,\n fiMessages: Messages,\n daMessages: Messages,\n svMessages: Messages\n) => {\n const locale = detectLocale();\n const messages = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);\n i18n.load(locale, messages);\n i18n.activate(locale);\n};\n", ":host {\n display: block;\n user-select: none;\n -webkit-user-select: none;\n}\n\n[part~='control'] {\n position: relative;\n width: 2rem;\n height: 2rem;\n border-color: var(--w-s-color-border);\n border-radius: 2px;\n border-style: solid;\n border-width: 1px;\n background-color: var(--w-s-color-background);\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n margin-right: 0.8rem;\n text-align: center;\n line-height: var(--w-line-height-xs);\n font-size: var(--w-font-size-m);\n}\n\n[part~='base'] {\n display: flex;\n align-items: center;\n position: relative;\n color: currentColor;\n vertical-align: middle;\n cursor: pointer;\n}\n\n[part~='label'] {\n display: block;\n font-size: var(--w-font-size-m);\n line-height: var(--w-line-height-m);\n user-select: none;\n cursor: pointer;\n padding: 0.2rem 0;\n}\n\nlabel:hover [part~='control']:not(:has(:checked, :indeterminate)) {\n background-color: var(--w-s-color-background-hover);\n border-color: var(--w-s-color-border-primary);\n}\n\nlabel:hover [part~='control']:has(:checked, :indeterminate) {\n border-color: var(--w-s-color-border-primary-hover);\n background-color: var(--w-s-color-background-primary-hover);\n}\n\n[part~='control']:has(:checked, :indeterminate) {\n color: var(--checked-icon-color, white);\n border-color: var(--w-s-color-border-primary);\n background-color: var(--w-s-color-background-primary);\n}\n\n[part~='control']:has(:indeterminate) {\n font-weight: 700;\n}\n\n[part~='control']:has(:invalid) {\n border-color: var(--w-s-color-border-negative);\n}\n\n[part~='control']:has(:invalid):hover {\n background-color: var(--w-s-color-background-negative-subtle-hover);\n}\n\n[part~='control']:has(:checked):has(:invalid) {\n background-color: var(--w-s-color-background-negative);\n}\n\n[part~='control']:has(:checked) {\n background-image: var(--w-icon-toggle-checked);\n background-position: center;\n}\n\n/* Focus */\n[part~='control']:has(> input:focus-visible:not(:disabled)) {\n outline: var(--wa-focus-ring);\n outline-offset: var(--wa-focus-ring-offset);\n}\n\n/* Disabled */\n:host [part~='base']:has(input:disabled) {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\ninput {\n position: absolute;\n padding: 0;\n margin: 0;\n height: 100%;\n width: 100%;\n opacity: 0;\n pointer-events: none;\n}\n\n[part~='icon'] {\n display: flex;\n\n input:not(:checked, :indeterminate) + & {\n visibility: hidden;\n }\n}\n\n:host([required]) [part~='label']::after {\n content: var(--wa-form-control-required-content);\n color: var(--wa-form-control-required-content-color);\n margin-inline-start: var(--wa-form-control-required-content-offset);\n}\n\n", "import { WCheckbox } from './checkbox';\n\nif (!customElements.get('w-checkbox')) {\n customElements.define('w-checkbox', WCheckbox);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-checkbox': WCheckbox;\n }\n}\n", "// @warp-css;\nimport { html, LitElement } from 'lit';\n\nimport { classNames } from '@chbphone55/classnames';\nimport { i18n } from '@lingui/core';\nimport { FormControlMixin } from '@open-wc/form-control';\nimport { property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js';\nimport { when } from 'lit/directives/when.js';\n\nimport { activateI18n } from '../i18n.js';\nimport { reset } from '../styles.js';\n\nimport { messages as daMessages } from './locales/da/messages.mjs';\nimport { messages as enMessages } from './locales/en/messages.mjs';\nimport { messages as fiMessages } from './locales/fi/messages.mjs';\nimport { messages as nbMessages } from './locales/nb/messages.mjs';\nimport { messages as svMessages } from './locales/sv/messages.mjs';\nimport { styles } from './styles.js';\n\nimport '@warp-ds/icons/elements/chevron-down-16';\n\nexport const ccSelect = {\n base: 'block text-m mb-0 py-12 pr-32 rounded-4 w-full focusable focus:[--w-outline-offset:-2px] appearance-none cursor-pointer caret-current',\n default: 's-text s-bg pl-8 border-1 s-border hover:s-border-hover active:s-border-active',\n disabled:\n 's-text-disabled s-bg-disabled-subtle pl-8 border-1 s-border-disabled hover:s-border-disabled active:s-border-disabled pointer-events-none',\n invalid:\n 's-text s-bg pl-8 border-1 s-border-negative hover:s-border-negative-hover active:s-border-active outline-[--w-s-color-border-negative]!',\n readOnly: 's-text bg-transparent pl-0 border-0 pointer-events-none before:hidden',\n wrapper: 'relative',\n selectWrapper: `relative before:block before:absolute before:right-0 before:bottom-0 before:w-32 before:h-full before:pointer-events-none `,\n chevron: 'block absolute top-[30%] right-0 bottom-0 w-32 h-full s-icon pointer-events-none cursor-pointer',\n chevronDisabled: 'opacity-25',\n};\n\nexport const ccLabel = {\n base: 'antialiased block relative text-s font-bold pb-4 cursor-pointer s-text',\n optional: 'pl-8 font-normal text-s s-text-subtle',\n};\n\nexport const ccHelpText = {\n base: 'text-xs mt-4 block',\n color: 's-text-subtle',\n colorInvalid: 's-text-negative',\n};\n\n/**\n * A dropdown component for selecting a single value.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-select--docs)\n */\nexport class WarpSelect extends FormControlMixin(LitElement) {\n /** Whether the element should receive focus on render */\n @property({ attribute: 'auto-focus', type: Boolean, reflect: true })\n autoFocus: boolean;\n\n /** Renders the field in an invalid state. Often paired with `hint` to provide feedback about the error */\n @property({ type: Boolean, reflect: true })\n invalid: boolean;\n\n /** Whether to always show a hint */\n @property({ type: Boolean, reflect: true })\n always: boolean;\n\n /** The content displayed as the help text */\n @property({ reflect: true })\n hint: string;\n\n /** The content to disply as the label */\n @property({ reflect: true })\n label: string;\n\n /** Whether to show optional text */\n @property({ type: Boolean, reflect: true })\n optional: boolean;\n\n /** Renders the field in a disabled state. */\n @property({ type: Boolean, reflect: true })\n disabled: boolean;\n\n /** Renders the field in a readonly state. */\n @property({ attribute: 'read-only', type: Boolean, reflect: true })\n readOnly: boolean;\n\n /** @internal */\n @property({ state: true })\n _options: string;\n\n @property({ reflect: true })\n name: string;\n\n @property({ reflect: true })\n value: string;\n\n static styles = [reset, styles];\n\n constructor() {\n super();\n activateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n this._options = this.innerHTML;\n }\n\n /** @internal */\n _setValue = (value: string) => {\n this.value = value;\n this.setValue(value);\n };\n\n firstUpdated() {\n // autofocus doesn't seem to behave properly in Safari and FireFox, therefore we set the focus here:\n if (this.autoFocus) this.shadowRoot.querySelector('select').focus();\n\n // Set initial value based on any slotted options that are selected\n Array.from(this.children).map((child: HTMLOptionElement) => {\n if (child.selected) {\n this._setValue(child.value);\n }\n });\n }\n\n handleKeyDown(event: KeyboardEvent) {\n if (this.readOnly && (event.key === ' ' || event.key === 'ArrowDown' || event.key === 'ArrowUp')) {\n event.preventDefault();\n }\n }\n\n get #classes() {\n return classNames([\n ccSelect.base,\n !this.invalid && !this.disabled && !this.readOnly && ccSelect.default,\n this.invalid && ccSelect.invalid,\n this.disabled && ccSelect.disabled,\n this.readOnly && ccSelect.readOnly,\n ]);\n }\n\n get #helpTextClasses() {\n return classNames([ccHelpText.base, this.invalid ? ccHelpText.colorInvalid : ccHelpText.color]);\n }\n\n get #chevronClasses() {\n return classNames([ccSelect.chevron, this.disabled && ccSelect.chevronDisabled]);\n }\n\n get #id() {\n return 'select_id';\n }\n\n get #helpId() {\n return this.hint ? `${this.#id}__hint` : undefined;\n }\n\n // // Fire a custom 'change' event, used when the dropdown changes state.\n onChange({ target }) {\n this._setValue(target.value);\n const event = new CustomEvent('change', { detail: target.value });\n this.dispatchEvent(event);\n }\n\n render() {\n return html`<div class=\"${ccSelect.wrapper}\">\n ${when(\n this.label,\n () =>\n html`<label class=\"${ccLabel.base}\" for=\"${this.#id}\">\n ${this.label}\n ${when(\n this.optional,\n () =>\n html`<span class=\"${ccLabel.optional}\"\n >${i18n._({\n id: 'select.label.optional',\n message: '(optional)',\n comment: 'Shown behind label when marked as optional',\n })}</span\n >`,\n )}</label\n >`,\n )}\n <div class=\"${ccSelect.selectWrapper}\">\n <select\n class=\"${this.#classes}\"\n id=\"${this.#id}\"\n ?disabled=${this.disabled}\n aria-describedby=\"${ifDefined(this.#helpId)}\"\n aria-invalid=\"${ifDefined(this.invalid)}\"\n aria-errormessage=\"${ifDefined(this.invalid && this.#helpId)}\"\n @keydown=${this.handleKeyDown}\n @change=${this.onChange}>\n ${unsafeHTML(this._options)}\n </select>\n <div class=\"${this.#chevronClasses}\">\n <w-icon-chevron-down-16></w-icon-chevron-down-16>\n </div>\n </div>\n ${when(this.always || this.invalid, () => html`<div id=\"${this.#helpId}\" class=\"${this.#helpTextClasses}\">${this.hint}</div>`)}\n </div>`;\n }\n}\n\nif (!customElements.get('w-select')) {\n customElements.define('w-select', WarpSelect);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-select': WarpSelect;\n }\n}\n", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"select.label.optional\\\":[\\\"(valgfrit)\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"select.label.optional\\\":[\\\"(optional)\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"select.label.optional\\\":[\\\"(vapaaehtoinen)\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"select.label.optional\\\":[\\\"(valgfritt)\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"select.label.optional\\\":[\\\"(valfritt)\\\"]}\");", "import { css } from 'lit'; export const styles = css`*,: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}.focus\\\\:\\\\[--w-outline-offset\\\\:-2px\\\\]:focus{--w-outline-offset:-2px}.bg-transparent{background-color:#0000}.appearance-none{-webkit-appearance:none;appearance:none}.border-0{border-width:0}.border-1{border-width:1px}.rounded-4{border-radius:4px}.caret-current{caret-color:currentColor}.opacity-25{opacity:.25}.block,.before\\\\:block:before{display:block}.before\\\\:hidden:before{display:none}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.outline-\\\\[--w-s-color-border-negative\\\\]\\\\!{outline-color:var(--w-s-color-border-negative)!important}.bottom-0{bottom:0}.right-0{right:0}.before\\\\:bottom-0:before{bottom:0}.before\\\\:right-0:before{right:0}.top-\\\\[30\\\\%\\\\]{top:30%}.absolute{position:absolute}.relative{position:relative}.static{position:static}.before\\\\:absolute:before{position:absolute}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled-subtle{background-color:var(--w-s-color-background-disabled-subtle)}.s-text{color:var(--w-s-color-text)}.s-text-disabled{color:var(--w-s-color-text-disabled)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-text-subtle{color:var(--w-s-color-text-subtle)}.s-icon{color:var(--w-s-color-icon)}.s-border{border-color:var(--w-s-color-border)}.s-border-disabled{border-color:var(--w-s-color-border-disabled)}.s-border-negative{border-color:var(--w-s-color-border-negative)}.hover\\\\:s-border-disabled:hover{border-color:var(--w-s-color-border-disabled)}.hover\\\\:s-border-hover:hover{border-color:var(--w-s-color-border-hover)}.hover\\\\:s-border-negative-hover:hover{border-color:var(--w-s-color-border-negative-hover)}.active\\\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.active\\\\:s-border-disabled:active{border-color:var(--w-s-color-border-disabled)}.h-full{height:100%}.w-32{width:3.2rem}.w-full{width:100%}.before\\\\:h-full:before{height:100%}.before\\\\:w-32:before{width:3.2rem}.mb-0{margin-bottom:0}.mt-4{margin-top:.4rem}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.pb-4{padding-bottom:.4rem}.pl-0{padding-left:0}.pl-8{padding-left:.8rem}.pr-32{padding-right:3.2rem}.cursor-pointer{cursor:pointer}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:grayscale}.font-bold{font-weight:700}.font-normal{font-weight:400}.pointer-events-none,.before\\\\:pointer-events-none:before{pointer-events:none}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}`;\n", "// @warp-css;\n\nimport { html, LitElement } from 'lit';\n\nimport { classNames } from '@chbphone55/classnames';\nimport { i18n } from '@lingui/core';\nimport { property, state } from 'lit/decorators.js';\n\nimport '@warp-ds/icons/elements/check-16';\n\nimport { activateI18n } from '../i18n';\nimport { reset } from '../styles.js';\n\nimport { messages as daMessages } from './locales/da/messages.mjs';\nimport { messages as enMessages } from './locales/en/messages.mjs';\nimport { messages as fiMessages } from './locales/fi/messages.mjs';\nimport { messages as nbMessages } from './locales/nb/messages.mjs';\nimport { messages as svMessages } from './locales/sv/messages.mjs';\nimport { styles } from './styles.js';\n\nconst ccSteps = {\n wrapper: 'w-full',\n horizontal: 'flex',\n};\n\nconst ccStep = {\n base: 'group/step',\n vertical: 'group/stepv grid-rows-[20px_auto] grid grid-flow-col gap-x-16',\n horizontal: 'group/steph grid-rows-[auto_20px] grid-cols-[1fr_20px_1fr] flex-1 grid gap-y-16 items-center',\n\n alignLeft: 'grid-cols-[20px_1fr]',\n alignRight: 'grid-cols-[1fr_20px] text-right',\n\n dot: 'rounded-full border-2 h-20 w-20 transition-colors duration-300 s-icon-inverted',\n dotAlignRight: 'col-start-2',\n dotHorizontal: 'row-start-2 justify-self-end',\n dotActive: 's-border-primary s-bg-primary',\n dotIncomplete: 's-border s-bg',\n\n line: 'transition-colors duration-300',\n lineVertical: 'w-2 h-full justify-self-center',\n lineAlignRight: 'col-start-2',\n lineHorizontal: 'h-2 w-full row-start-2',\n\n lineIncomplete: 's-bg-disabled',\n lineComplete: 's-bg-primary',\n\n content: 'last:mb-0',\n contentVertical: 'row-span-2 pb-32',\n contentHorizontal: 'col-span-3 px-16 row-start-1 text-center',\n};\n\n/**\n * Steps are used to show progress through a process or to guide users through a multi-step task.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/components-steps--docs)\n */\nclass WarpSteps extends LitElement {\n @property({ type: Boolean, reflect: true })\n horizontal = false;\n\n @property({ type: Boolean, reflect: true })\n right = false;\n\n static styles = [reset, styles];\n\n constructor() {\n super();\n activateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.updateStepsContext();\n }\n\n updated() {\n this.updateStepsContext();\n }\n\n updateStepsContext() {\n // Provide context to child step elements\n const steps = this.querySelectorAll('w-step');\n steps.forEach((step: WarpStep, index: number) => {\n step.setContext({\n horizontal: this.horizontal,\n right: this.right,\n isLast: index === steps.length - 1,\n isFirst: index === 0,\n });\n });\n }\n\n render() {\n const classes = classNames([ccSteps.wrapper, this.horizontal && ccSteps.horizontal]);\n\n return html`\n <ul class=${classes}>\n <slot></slot>\n </ul>\n `;\n }\n}\n\nconst availableAriaLabels = {\n completed: i18n._({\n id: 'steps.aria.completed',\n message: 'Step indicator completed circle',\n comment: 'Completed circle',\n }),\n active: i18n._({\n id: 'steps.aria.active',\n message: 'Step indicator active circle',\n comment: 'Active circle',\n }),\n default: i18n._({\n id: 'steps.aria.emptyCircle',\n message: 'Empty circle',\n comment: 'Empty circle',\n }),\n};\n\ninterface StepsContext {\n horizontal?: boolean;\n right?: boolean;\n isLast?: boolean;\n isFirst?: boolean;\n}\n\n/**\n * Individual step component that shows a single step in a process\n */\nclass WarpStep extends LitElement {\n @property({ type: Boolean, reflect: true })\n active = false;\n\n @property({ type: Boolean, reflect: true })\n completed = false;\n\n @state()\n private _context: StepsContext = { horizontal: false, right: false, isLast: false, isFirst: false };\n\n static styles = [reset, styles];\n\n constructor() {\n super();\n activateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n }\n\n setContext(context: StepsContext) {\n this._context = context;\n this.requestUpdate();\n }\n\n getAriaLabel() {\n if (this.completed) return availableAriaLabels.completed;\n if (this.active) return availableAriaLabels.active;\n return availableAriaLabels.default;\n }\n\n render() {\n const vertical = !this._context.horizontal;\n const left = !this._context.right;\n const isFirst = this._context.isFirst;\n const isLast = this._context.isLast;\n\n const stepClasses = classNames([\n ccStep.base,\n vertical ? ccStep.vertical : ccStep.horizontal,\n vertical ? (left ? ccStep.alignLeft : ccStep.alignRight) : '',\n ]);\n\n const lineHorizontalClasses = classNames([\n ccStep.line,\n ccStep.lineHorizontal,\n this.active || this.completed ? ccStep.lineComplete : ccStep.lineIncomplete,\n isFirst ? 'invisible' : '',\n ]);\n\n const dotClasses = classNames([\n ccStep.dot,\n vertical ? (!left ? ccStep.dotAlignRight : '') : ccStep.dotHorizontal,\n this.active || this.completed ? ccStep.dotActive : ccStep.dotIncomplete,\n ]);\n\n const lineClasses = classNames([\n ccStep.line,\n vertical ? ccStep.lineVertical : ccStep.lineHorizontal,\n vertical && !left ? ccStep.lineAlignRight : '',\n this.completed ? ccStep.lineComplete : ccStep.lineIncomplete,\n isLast ? 'invisible' : '',\n ]);\n\n const contentClasses = classNames([ccStep.content, vertical ? ccStep.contentVertical : ccStep.contentHorizontal, isLast ? 'pb-0' : '']);\n\n return html`\n <li class=${stepClasses}>\n ${!vertical ? html`<div class=${lineHorizontalClasses}></div>` : ''}\n <div class=${dotClasses} role=\"img\" aria-label=${this.getAriaLabel()} ${this.active ? 'aria-current=\"step\"' : ''}>\n ${this.completed ? html`<w-icon-check-16 data-testid=\"completed-icon\"></w-icon-check-16>` : ''}\n </div>\n <div class=${lineClasses}></div>\n <div class=${contentClasses}>\n <slot></slot>\n </div>\n </li>\n `;\n }\n}\n\nif (!customElements.get('w-steps')) {\n customElements.define('w-steps', WarpSteps);\n}\n\nif (!customElements.get('w-step')) {\n customElements.define('w-step', WarpStep);\n}\n\nexport { WarpSteps, WarpStep };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-steps': WarpSteps;\n 'w-step': WarpStep;\n }\n}\n", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"steps.aria.emptyCircle\\\":[\\\"Tom cirkel\\\"],\\\"steps.aria.active\\\":[\\\"Trinindikator aktiv cirkel\\\"],\\\"steps.aria.completed\\\":[\\\"Trinindikator fuldf\u00F8rt cirkel\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"steps.aria.emptyCircle\\\":[\\\"Empty circle\\\"],\\\"steps.aria.active\\\":[\\\"Step indicator active circle\\\"],\\\"steps.aria.completed\\\":[\\\"Step indicator completed circle\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"steps.aria.emptyCircle\\\":[\\\"Tyhj\u00E4 ympyr\u00E4\\\"],\\\"steps.aria.active\\\":[\\\"Vaiheilmaisin aktiivinen ympyr\u00E4\\\"],\\\"steps.aria.completed\\\":[\\\"Vaiheilmaisin valmis ympyr\u00E4\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"steps.aria.emptyCircle\\\":[\\\"Tom sirkel\\\"],\\\"steps.aria.active\\\":[\\\"Stegindikator aktiv sirkel\\\"],\\\"steps.aria.completed\\\":[\\\"Stegindikator hel sirkel\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"steps.aria.emptyCircle\\\":[\\\"Tom cirkel\\\"],\\\"steps.aria.active\\\":[\\\"Stegindikator aktiv cirkel\\\"],\\\"steps.aria.completed\\\":[\\\"Stegindikator full\u00E4ndad cirkel\\\"]}\");", "import { css } from 'lit'; export const styles = css`*,: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}.text-center{text-align:center}.text-right{text-align:right}.border-2{border-width:2px}.rounded-full{border-radius:9999px}.flex{display:flex}.grid{display:grid}.flex-1{flex:1}.gap-x-16{column-gap:1.6rem}.gap-y-16{row-gap:1.6rem}.row-span-2{grid-row:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.row-start-1{grid-row-start:1}.row-start-2{grid-row-start:2}.col-start-2{grid-column-start:2}.grid-flow-col{grid-auto-flow:column}.grid-rows-\\\\[20px_auto\\\\]{grid-template-rows:20px auto}.grid-rows-\\\\[auto_20px\\\\]{grid-template-rows:auto 20px}.grid-cols-\\\\[1fr_20px_1fr\\\\]{grid-template-columns:1fr 20px 1fr}.grid-cols-\\\\[1fr_20px\\\\]{grid-template-columns:1fr 20px}.grid-cols-\\\\[20px_1fr\\\\]{grid-template-columns:20px 1fr}.items-center{align-items:center}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-primary{background-color:var(--w-s-color-background-primary)}.s-icon-inverted{color:var(--w-s-color-icon-inverted)}.s-border{border-color:var(--w-s-color-border)}.s-border-primary{border-color:var(--w-s-color-border-primary)}.h-2{height:.2rem}.h-20{height:2rem}.h-full{height:100%}.w-2{width:.2rem}.w-20{width:2rem}.w-full{width:100%}.last\\\\:mb-0:last-child{margin-bottom:0}.px-16{padding-left:1.6rem;padding-right:1.6rem}.pb-0{padding-bottom:0}.pb-32{padding-bottom:3.2rem}.invisible{visibility:hidden}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}`;\n", "// @warp-css;\n\nimport { html, LitElement } from 'lit';\n\nimport { classNames } from '@chbphone55/classnames';\nimport { property } from 'lit/decorators.js';\n\nimport { reset } from '../styles';\n\nimport { styles } from './styles.js';\n\nconst ccSwitch = {\n base: 'block relative h-24 w-44 cursor-pointer group focusable rounded-full',\n disabled: 'pointer-events-none',\n track: 'absolute top-0 left-0 h-full w-full rounded-full transition-colors',\n trackActive: 's-bg-primary group-hover:s-bg-primary-hover',\n trackInactive: 'bg-[--w-color-switch-track-background] group-hover:bg-[--w-color-switch-track-background-hover]',\n trackDisabled: 's-bg-disabled-subtle',\n handle: 'absolute transform-gpu h-16 w-16 top-4 left-4 rounded-full transition-transform',\n handleSelected: 'translate-x-20',\n handleNotDisabled: 's-bg shadow-s',\n handleDisabled: 's-bg-disabled',\n a11y: 'sr-only',\n};\n\nexport class WarpSwitch extends LitElement {\n @property({ type: Boolean, reflect: true })\n value: boolean = false;\n\n @property({ type: Boolean, reflect: true })\n disabled: boolean = false;\n\n static styles = [reset, styles];\n\n /** @internal */\n get _baseClasses() {\n return classNames([ccSwitch.base, this.disabled && ccSwitch.disabled]);\n }\n\n /** @internal */\n get _trackClasses() {\n return classNames([\n ccSwitch.track,\n this.disabled && ccSwitch.trackDisabled,\n !this.disabled && (this.value ? ccSwitch.trackActive : ccSwitch.trackInactive),\n ]);\n }\n\n /** @internal */\n get _handleClasses() {\n return classNames([\n ccSwitch.handle,\n this.value && ccSwitch.handleSelected,\n this.disabled ? ccSwitch.handleDisabled : ccSwitch.handleNotDisabled,\n ]);\n }\n\n /** @internal */\n _handleClick() {\n if (!this.disabled) {\n this.value = !this.value;\n this.dispatchEvent(\n new CustomEvent('change', {\n detail: { value: this.value },\n bubbles: true,\n composed: true,\n }),\n );\n }\n }\n\n render() {\n return html`\n <div>\n <button\n type=\"button\"\n role=\"switch\"\n aria-checked=${this.value}\n class=${this._baseClasses}\n aria-disabled=${this.disabled}\n ?disabled=${this.disabled}\n @click=${this._handleClick}>\n <span data-testid=\"track\" class=${this._trackClasses}></span>\n <span data-testid=\"handle\" class=${this._handleClasses}></span>\n </button>\n </div>\n `;\n }\n}\n\nif (!customElements.get('w-switch')) {\n customElements.define('w-switch', WarpSwitch);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-switch': WarpSwitch;\n }\n}\n", "import { css } from 'lit'; export const styles = css`*,: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}.bg-\\\\[--w-color-switch-track-background\\\\]{background-color:var(--w-color-switch-track-background)}.group:hover .group-hover\\\\:bg-\\\\[--w-color-switch-track-background-hover\\\\]{background-color:var(--w-color-switch-track-background-hover)}.rounded-full{border-radius:9999px}.block{display:block}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.left-0{left:0}.left-4{left:.4rem}.top-0{top:0}.top-4{top:.4rem}.absolute{position:absolute}.relative{position:relative}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-disabled-subtle{background-color:var(--w-s-color-background-disabled-subtle)}.s-bg-primary{background-color:var(--w-s-color-background-primary)}.group:hover .group-hover\\\\:s-bg-primary-hover{background-color:var(--w-s-color-background-primary-hover)}.shadow-s{box-shadow:var(--w-shadow-s)}.h-16{height:1.6rem}.h-24{height:2.4rem}.h-full{height:100%}.w-16{width:1.6rem}.w-44{width:4.4rem}.w-full{width:100%}.cursor-pointer{cursor:pointer}.pointer-events-none{pointer-events:none}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.translate-x-20{--w-translate-x:2rem;transform:translateX(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))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transform-gpu{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))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-property:transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}`;\n", "// @warp-css;\n\nimport { LitElement, html, PropertyValues } from 'lit';\n\nimport { classNames as classnames } from '@chbphone55/classnames';\nimport { FormControlMixin } from '@open-wc/form-control';\nimport WarpElement from '@warp-ds/elements-core';\nimport { property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\n\nimport { reset } from '../styles.js';\n\nimport { styles } from './styles.js';\n\nexport const ccinput = {\n // wrapper classes\n wrapper: 'relative',\n // input classes\n base: 'block text-m leading-m mb-0 px-8 py-12 rounded-4 w-full focusable focus:[--w-outline-offset:-2px] caret-current', // true\n default: 'border-1 s-text s-bg s-border hover:s-border-hover active:s-border-selected', // !isInvalid && !isDisabled && !isReadOnly\n disabled: 'border-1 s-text-disabled s-bg-disabled-subtle s-border-disabled pointer-events-none', // !isInvalid && isDisabled && !isReadOnly\n invalid: 'border-1 s-text-negative s-bg s-border-negative hover:s-border-negative-hover outline-[--w-s-color-border-negative]!', // isInvalid && !isDisabled && !isReadOnly\n readOnly: 'pl-0 bg-transparent pointer-events-none', // !isInvalid && !isDisabled && isReadOnly\n placeholder: 'placeholder:s-text-placeholder',\n suffix: 'pr-40',\n prefix: 'pl-[var(--w-prefix-width,_40px)]',\n // textarea classes\n textArea: 'min-h-[42] sm:min-h-[45]',\n};\n\nexport const ccLabel = {\n base: 'antialiased block relative text-s font-bold pb-4 cursor-pointer s-text',\n optional: 'pl-8 font-normal text-s s-text-subtle',\n};\n\nexport const ccHelpText = {\n base: 'text-xs mt-4 block',\n color: 's-text-subtle',\n colorInvalid: 's-text-negative',\n};\n\n/**\n * A single line text input element.\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)\n */\nclass WarpTextField extends FormControlMixin(LitElement) {\n static shadowRootOptions = {\n ...WarpElement.shadowRootOptions,\n delegatesFocus: true,\n };\n\n @property({ type: Boolean, reflect: true })\n disabled: boolean;\n\n @property({ type: Boolean, reflect: true })\n invalid: boolean;\n\n @property({ type: String, reflect: true })\n id: string;\n\n @property({ type: String, reflect: true })\n label: string;\n\n @property({ type: String, reflect: true, attribute: 'help-text' })\n helpText: string;\n\n @property({ type: String, reflect: true })\n size: string;\n\n @property({ type: Number, reflect: true })\n max: number;\n\n @property({ type: Number, reflect: true })\n min: number;\n\n @property({ type: Number, reflect: true, attribute: 'min-length' })\n minLength: number;\n\n @property({ type: Number, reflect: true, attribute: 'max-length' })\n maxLength: number;\n\n @property({ type: String, reflect: true })\n pattern: string;\n\n @property({ type: String, reflect: true })\n placeholder: string;\n\n @property({ type: Boolean, reflect: true, attribute: 'read-only' })\n readOnly: boolean;\n\n @property({ type: Boolean, reflect: true })\n required: boolean;\n\n @property({ type: String, reflect: true })\n type = 'text';\n\n @property({ type: String, reflect: true })\n value: string;\n\n @property({ type: String, reflect: true })\n name: string;\n\n /** @internal */\n @property({ type: Boolean })\n _hasPrefix = false;\n\n /** @internal */\n @property({ type: Boolean })\n _hasSuffix = false;\n\n updated(changedProperties: PropertyValues<this>) {\n if (changedProperties.has('value')) {\n this.setValue(this.value);\n }\n }\n\n // Note about styling slotted elements:\n // https://developer.mozilla.org/en-US/docs/Web/CSS/::slotted\n // https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM#styling_slotted_elements\n // Slotted elements remain in lightDOM which allows for control of their style outside of shadowDOM.\n // ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,\n // so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.\n // https://stackoverflow.com/a/61631668\n static styles = [reset, styles];\n\n /** @internal */\n get _inputstyles() {\n return classnames([\n ccinput.base,\n this._hasSuffix && ccinput.suffix,\n this._hasPrefix && ccinput.prefix,\n !this.invalid && !this.disabled && !this.readOnly && ccinput.default,\n this.invalid && !this.disabled && !this.readOnly && ccinput.invalid,\n !this.invalid && this.disabled && !this.readOnly && ccinput.disabled,\n !this.invalid && !this.disabled && this.readOnly && ccinput.readOnly,\n ]);\n }\n\n /** @internal */\n get _helptextstyles() {\n return classnames([ccHelpText.base, this.invalid ? ccHelpText.colorInvalid : ccHelpText.color]);\n }\n\n /** @internal */\n get _label() {\n if (this.label) {\n return html`<label for=\"${this._id}\" class=${ccLabel.base}>${this.label}</label>`;\n }\n return undefined;\n }\n\n /** @internal */\n get _helpId() {\n if (this.helpText) return `${this._id}__hint`;\n return undefined;\n }\n\n /** @internal */\n get _id() {\n return 'textfield';\n }\n\n /** @internal */\n get _error() {\n if (this.invalid && this._helpId) return this._helpId;\n return undefined;\n }\n\n handler(e: Event) {\n const { name, value } = e.currentTarget as HTMLInputElement;\n this.setValue(value);\n const event = new CustomEvent(e.type, {\n detail: {\n name,\n value,\n target: e.target,\n },\n });\n this.dispatchEvent(event);\n }\n\n prefixSlotChange() {\n const el: HTMLSlotElement = this.renderRoot.querySelector('slot[name=prefix]');\n const affixes = el.assignedElements();\n if (affixes.length) this._hasPrefix = true;\n }\n\n suffixSlotChange() {\n const el: HTMLSlotElement = this.renderRoot.querySelector('slot[name=suffix]');\n const affixes = el.assignedElements();\n if (affixes.length) this._hasSuffix = true;\n }\n\n render() {\n return html`\n ${this._label}\n <div class=\"${ccinput.wrapper}\">\n <slot @slotchange=\"${this.prefixSlotChange}\" name=\"prefix\"></slot>\n <input\n class=\"${this._inputstyles}\"\n type=\"${this.type}\"\n min=\"${ifDefined(this.min)}\"\n max=\"${ifDefined(this.max)}\"\n size=\"${ifDefined(this.size)}\"\n minlength=\"${ifDefined(this.minLength)}\"\n maxlength=\"${ifDefined(this.maxLength)}\"\n name=\"${ifDefined(this.name)}\"\n pattern=\"${ifDefined(this.pattern)}\"\n placeholder=\"${ifDefined(this.placeholder)}\"\n value=\"${ifDefined(this.value)}\"\n aria-describedby=\"${ifDefined(this._helpId)}\"\n aria-errormessage=\"${ifDefined(this._error)}\"\n aria-invalid=\"${ifDefined(this.invalid)}\"\n id=\"${this._id}\"\n ?disabled=\"${this.disabled}\"\n ?readonly=\"${this.readOnly}\"\n ?required=\"${this.required}\"\n @blur=\"${this.handler}\"\n @change=\"${this.handler}\"\n @focus=\"${this.handler}\" />\n <slot @slotchange=\"${this.suffixSlotChange}\" name=\"suffix\"></slot>\n </div>\n ${this.helpText && html`<div class=\"${this._helptextstyles}\" id=\"${this._helpId}\">${this.helpText}</div>`}\n `;\n }\n}\n\nif (!customElements.get('w-textfield')) {\n customElements.define('w-textfield', WarpTextField);\n}\n\nexport { WarpTextField };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-textfield': WarpTextField;\n }\n}\n", "import { css } from 'lit'; export const styles = css`*,: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}.focus\\\\:\\\\[--w-outline-offset\\\\:-2px\\\\]:focus{--w-outline-offset:-2px}.bg-transparent{background-color:#0000}.border-1{border-width:1px}.rounded-4{border-radius:4px}.caret-current{caret-color:currentColor}.block{display:block}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.outline-\\\\[--w-s-color-border-negative\\\\]\\\\!{outline-color:var(--w-s-color-border-negative)!important}.relative{position:relative}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled-subtle{background-color:var(--w-s-color-background-disabled-subtle)}.s-text{color:var(--w-s-color-text)}.s-text-disabled{color:var(--w-s-color-text-disabled)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-text-subtle{color:var(--w-s-color-text-subtle)}.placeholder\\\\:s-text-placeholder::placeholder{color:var(--w-s-color-text-placeholder)}.s-border{border-color:var(--w-s-color-border)}.s-border-disabled{border-color:var(--w-s-color-border-disabled)}.s-border-negative{border-color:var(--w-s-color-border-negative)}.hover\\\\:s-border-hover:hover{border-color:var(--w-s-color-border-hover)}.hover\\\\:s-border-negative-hover:hover{border-color:var(--w-s-color-border-negative-hover)}.active\\\\:s-border-selected:active{border-color:var(--w-s-color-border-selected)}.w-full{width:100%}.min-h-\\\\[42\\\\]{min-height:4.2rem}.mb-0{margin-bottom:0}.mt-4{margin-top:.4rem}.px-8{padding-left:.8rem;padding-right:.8rem}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.pb-4{padding-bottom:.4rem}.pl-0{padding-left:0}.pl-8{padding-left:.8rem}.pr-40{padding-right:4rem}.pl-\\\\[var\\\\(--w-prefix-width\\\\,_40px\\\\)\\\\]{padding-left:var(--w-prefix-width,40px)}.cursor-pointer{cursor:pointer}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:grayscale}.font-bold{font-weight:700}.font-normal{font-weight:400}.pointer-events-none{pointer-events:none}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-m{line-height:var(--w-line-height-m)}@media (min-width:480px){.sm\\\\:min-h-\\\\[45\\\\]{min-height:4.5rem}}`;\n", "export const windowExists = typeof window !== 'undefined';\n", "import { windowExists } from '../utils/window-exists';\n\n/**\n * Toast helper function options\n * @typedef {Object} ToastOptions\n * @property {(number|string)} [id] Custom identifier\n * @property {('success'|'error'|'warning')} [type] Type of toast\n * @property {String} [text] The toast message. Only needed when updating text on existing toast\n * @property {(number|string)} [duration] Duration of toast in milliseconds. Defaults to 5000. For accessibility reasons, toasts should never be interactive and therefore need to auto remove. If you must disable auto remove, set duration to Number.POSITIVE_INFINITY.\n * @property {Boolean} [canclose] Whether the toast can be dismissed. Defaults to false. WARNING! For accessibility reasons, toasts should not be interactive and canclose should always be false. If the toast absolutely must be dismissable, set this to true.\n */\n\n/**\n * Creates a new toast\n * @param {String} message Message\n * @param {ToastOptions?} options Toast options\n * @returns {ToastOptions} Toast details\n */\nexport function toast(message, options) {\n if (!windowExists) return;\n const toast = customElements.get('w-toast-container').init();\n\n const data = {\n id: Date.now().toString(36) + Math.random().toString(36).slice(2, 5),\n text: message,\n duration: 5000,\n type: 'success',\n ...options,\n };\n\n toast.set(data);\n return data;\n}\n\n/**\n * Remove an existing toast\n * @param {String|Number} id Toast identifier\n * @return {Promise<Boolean>} Resolves to true if deleted, false if not found\n */\nexport function removeToast(id) {\n if (!windowExists) return;\n const toast = customElements.get('w-toast-container').init();\n return toast.del(id);\n}\n\n/**\n * Update an existing toast\n * @param {String|Number} id Toast identifier\n * @param {ToastOptions?} options Toast options\n * @returns {WarpToastContainer} Toast details\n */\nexport function updateToast(id, options) {\n if (!windowExists) return;\n const toast = customElements.get('w-toast-container').init();\n toast.set({ ...toast.get(id), ...options });\n return toast.get(id);\n}\n", "import { css, html } from 'lit';\n\nimport { toaster as ccToastContainer } from '@warp-ds/css/component-classes';\nimport WarpElement from '@warp-ds/elements-core';\nimport { repeat } from 'lit/directives/repeat.js';\n\n/**\n * Toast helper function options\n * @typedef {Object} ToastOptions\n * @property {(number|string)} [id] Custom identifier\n * @property {('success'|'error'|'warning')} [type] Type of alert\n * @property {String} [text] The toast message. Only needed when updating text on existing toast\n * @property {(number|string)} [duration] Duration of toast in milliseconds. Defaults to 5000. For accessibility reasons, toasts should never be interactive and therefore need to auto remove. If you must disable auto remove, set duration to Number.POSITIVE_INFINITY.\n * @property {Boolean} [canClose] Whether the toast can be dismissed. Defaults to false. WARNING! For accessibility reasons, toasts should not be interactive and canclose should always be false. If the toast absolutely must be dismissble, set this to true.\n */\n\n/**\n * You should probably not include this component in HTML markup.\n *\n * As long as the element definition is imported in your application you can use the toast JS API to create toasts.\n *\n * ```js\n * import from '@warp-ds/elements/components/toast';\n * import { toast, removeToast, updateToast } from '@warp-ds/elements/toast';\n * ```\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-toast--docs)\n *\n * @internal\n */\nexport class WarpToastContainer extends WarpElement {\n static styles = [\n WarpElement.styles,\n css`\n :host {\n display: block;\n }\n `,\n ];\n\n static properties = {\n /** @internal */\n _toasts: { state: true },\n };\n\n constructor() {\n super();\n this._toasts = new Map();\n }\n\n connectedCallback() {\n super.connectedCallback();\n\n // regularly check if any toasts have expired\n this._interval = setInterval(() => {\n // sort toasts into keep and remove\n const keep = [];\n const remove = [];\n for (const toast of this._toasts) {\n if (Date.now() <= toast[1].duration) keep.push(toast);\n else remove.push(toast);\n }\n // collapse toasts that will be removed\n const collapseTasks = [];\n for (const [id] of remove) {\n const el = this.renderRoot.querySelector(`#${id}`);\n collapseTasks.push(el.collapse());\n }\n // once all toasts that should be removed have been collapsed, remove them from the map\n Promise.all(collapseTasks).then(() => {\n if (keep.length !== this._toasts.size) this._toasts = new Map(keep);\n });\n }, 500);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n if (this._interval) clearTimeout(this._interval);\n }\n\n static init() {\n let el = document.querySelector('w-toast-container');\n if (!el) {\n el = document.createElement('w-toast-container');\n document.body.appendChild(el);\n }\n return el;\n }\n\n /** @internal */\n get _toastsArray() {\n return Array.from(this._toasts).map(([, toast]) => toast);\n }\n\n /**\n *\n * @param {String|Number} id\n * @returns {ToastOptions}\n */\n get(id) {\n if (!id) {\n throw new Error('undefined \"id\" given when attempting to retrieve toast');\n }\n if (typeof id !== 'string' && !Number.isInteger(id)) throw new Error('\"id\" must be number or string when attempting to retrieve toast');\n return this._toasts.get(id);\n }\n\n /**\n *\n * @param {Object} toast\n * @returns {WarpToastContainer}\n */\n set(toast) {\n if (!toast.id) throw new Error('invalid or undefined \"id\" on toast object');\n const result = this._toasts.set(toast.id, {\n ...toast,\n duration: Date.now() + (toast.duration || 5000),\n });\n this._toasts = new Map(Array.from(this._toasts));\n return result;\n }\n\n /**\n *\n * @param {String|Number} id\n * @returns {ToastOptions | false}\n */\n async del(id) {\n if (!id) {\n throw new Error('undefined \"id\" given when attempting to retrieve toast');\n }\n if (typeof id !== 'string' && !Number.isInteger(id)) throw new Error('\"id\" must be number or string when attempting to retrieve toast');\n const el = this.renderRoot.querySelector(`#${id}`);\n if (!this._toasts.has(id)) return false;\n await el.collapse();\n const result = this._toasts.delete(id);\n this._toasts = new Map(Array.from(this._toasts));\n return result;\n }\n\n render() {\n return html`\n <aside class=\"${ccToastContainer.wrapper}\">\n <div class=\"${ccToastContainer.base}\" id=\"w-toast-container-list\">\n ${repeat(\n this._toastsArray,\n (toast) => toast.id,\n (toast) =>\n html` <w-toast\n class=\"${ccToastContainer.content}\"\n id=\"${toast.id}\"\n type=\"${toast.type}\"\n text=\"${toast.text}\"\n ?canclose=${toast.canclose}\n @close=${() => this.del(toast.id)}>\n </w-toast>`,\n )}\n </div>\n </aside>\n `;\n }\n}\n\nif (!customElements.get('w-toast-container')) {\n customElements.define('w-toast-container', WarpToastContainer);\n}\n", "import { css, html } from 'lit';\n\nimport { classNames } from '@chbphone55/classnames';\nimport { i18n } from '@lingui/core';\nimport { toast as ccToast } from '@warp-ds/css/component-classes';\nimport WarpElement from '@warp-ds/elements-core';\nimport { expand, collapse } from 'element-collapse';\nimport { when } from 'lit/directives/when.js';\nimport '@warp-ds/icons/elements/warning-16';\nimport '@warp-ds/icons/elements/error-16';\nimport '@warp-ds/icons/elements/success-16';\nimport '@warp-ds/icons/elements/close-16';\n\nimport { activateI18n } from '../i18n';\n\nimport { messages as daMessages } from './locales/da/messages.mjs';\nimport { messages as enMessages } from './locales/en/messages.mjs';\nimport { messages as fiMessages } from './locales/fi/messages.mjs';\nimport { messages as nbMessages } from './locales/nb/messages.mjs';\nimport { messages as svMessages } from './locales/sv/messages.mjs';\n\nconst toastType = {\n success: 'success',\n error: 'error',\n warning: 'warning',\n};\n\n/**\n * You should probably not include this component in HTML markup.\n *\n * As long as the element definition is imported in your application you can use the toast JS API to create toasts.\n *\n * ```js\n * import from '@warp-ds/elements/components/toast';\n * import { toast, removeToast, updateToast } from '@warp-ds/elements/toast';\n * ```\n *\n * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-toast--docs)\n *\n * @internal\n */\nexport class WarpToast extends WarpElement {\n static styles = [\n WarpElement.styles,\n css`\n :host {\n display: block;\n }\n `,\n ];\n\n static properties = {\n id: { type: String, attribute: true, reflect: true },\n type: { type: String, attribute: true, reflect: true },\n text: { type: String, attribute: true, reflect: true },\n canclose: { type: Boolean, attribute: true, reflect: true },\n };\n\n constructor() {\n super();\n activateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);\n\n this.id = Date.now().toString(36) + Math.random().toString(36).slice(2, 5);\n this.type = 'success';\n this.text = '';\n this.canclose = false;\n }\n\n connectedCallback() {\n super.connectedCallback();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n }\n\n updated() {\n if (!this._expanded && this._wrapper) expand(this._wrapper, () => (this._expanded = true));\n }\n\n get #primaryClasses() {\n return classNames([\n ccToast.base,\n this.type === toastType.success && ccToast.positive,\n this.type === toastType.warning && ccToast.warning,\n this.type === toastType.error && ccToast.negative,\n ]);\n }\n\n get #iconClasses() {\n return classNames([\n ccToast.iconBase,\n this.type === toastType.success && ccToast.iconPositive,\n this.type === toastType.warning && ccToast.iconWarning,\n this.type === toastType.error && ccToast.iconNegative,\n ]);\n }\n\n /** @internal */\n get _wrapper() {\n return this.renderRoot?.querySelector(`section`) ?? null;\n }\n\n /** @internal */\n get _warning() {\n return this.type === toastType.warning;\n }\n\n /** @internal */\n get _error() {\n return this.type === toastType.error;\n }\n\n /** @internal */\n get _role() {\n return this._error || this._warning ? 'alert' : 'status';\n }\n\n /** @internal */\n get _typeLabel() {\n if (this._warning) {\n return i18n._({\n id: 'toast.aria.warning',\n message: 'Warning',\n comment: 'Default screenreader message for warning in toast component',\n });\n }\n if (this._error) {\n return i18n._({\n id: 'toast.aria.error',\n message: 'Error',\n comment: 'Default screenreader message for error in toast component',\n });\n } else {\n return i18n._({\n id: 'toast.aria.successful',\n message: 'Successful',\n comment: 'Default screenreader message for successful in toast component',\n });\n }\n }\n\n /** @internal */\n get _iconMarkup() {\n if (this._warning) return html`<w-icon-warning-16></w-icon-warning-16>`;\n if (this._error) return html`<w-icon-error-16></w-icon-error-16>`;\n else return html`<w-icon-success-16></w-icon-success-16>`;\n }\n\n async collapse() {\n return new Promise((resolve) => {\n if (this._expanded && this._wrapper) collapse(this._wrapper, resolve);\n else resolve();\n });\n }\n\n close() {\n const event = new CustomEvent('close', {\n detail: { id: this.id },\n bubbles: true,\n composed: true,\n });\n this.updateComplete.then(() => this.dispatchEvent(event));\n }\n\n render() {\n if (!this.text) return html``;\n return html` <section class=\"${ccToast.wrapper}\" aria-label=\"${this._typeLabel}\">\n <div class=\"${this.#primaryClasses}\">\n <div class=\"${this.#iconClasses}\">${this._iconMarkup}</div>\n <div role=\"${this._role}\" class=\"${ccToast.content}\">\n <p>${this.text}</p>\n </div>\n ${when(\n this.canclose === true,\n () => html`\n <button class=\"${ccToast.close}\" @click=\"${this.close}\">\n <w-icon-close-16></w-icon-close-16>\n </button>\n `,\n )}\n </div>\n </section>`;\n }\n}\n\nif (!customElements.get('w-toast')) {\n customElements.define('w-toast', WarpToast);\n}\n", "const windowExists = (typeof window !== 'undefined')\n\nlet prefersMotion = true\n\nif (windowExists) {\n const query = window.matchMedia('(prefers-reduced-motion: reduce)')\n const callback = ({ matches }) => prefersMotion = !matches\n // older browsers don't support the new API, and the old API is deprecated\n if (query.addEventListener) query.addEventListener('change', callback)\n callback(query)\n}\n\nconst removeTransition = el => {\n el.style.transition = null\n el.style.backfaceVisibility = null\n el.style.overflow = null\n}\n\nconst addTransition = (el) => {\n // we set timing to something insanely short\n // when reducing motion so the after-* hooks still fire\n const timing = prefersMotion ? 'var(--f-expansion-duration, 0.3s)' : '0.01s'\n el.style.transition = `height ${timing}`\n el.style.backfaceVisibility = 'hidden'\n el.style.overflow = 'hidden'\n}\n\nconst getAfterExpandCallback = (el, done) => () => {\n el.style.height = 'auto'\n el.style.overflow = null\n if (done) done()\n}\n\nconst getAfterCollapseCallback = (done) => () => {\n if (done) done()\n}\n\n/**\n * Transitions an element from 0 to a detected height\n * Will return a Promise when no 'done' callback is provided\n * @type {(el: HTMLElement, done?: function) => void | Promise<void>}\n */\nexport const expand = (el, done) => {\n const returnPromise = (() => {\n if (!done) return new Promise(r => { done = r })\n })()\n const afterExpandCallback = getAfterExpandCallback(el, done)\n removeTransition(el)\n el.style.height = 'auto'\n let dest = el.scrollHeight\n windowExists && requestAnimationFrame(() => {\n el.addEventListener('transitionend', afterExpandCallback, { once: true })\n el.style.height = '0px'\n el.style.transitionTimingFunction = 'ease-out'\n addTransition(el)\n requestAnimationFrame(() => el.style.height = dest + 'px')\n })\n if (returnPromise) return returnPromise\n}\n\n/**\n * Transitions an element from a detected height to 0\n * Will return a Promise when no 'done' callback is provided\n * @type {(el: HTMLElement, done?: function) => void | Promise<void>}\n */\nexport const collapse = (el, done) => {\n const returnPromise = (() => {\n if (!done) return new Promise(r => { done = r })\n })()\n const afterCollapseCallback = getAfterCollapseCallback(done)\n removeTransition(el)\n let original = el.scrollHeight\n windowExists && requestAnimationFrame(() => {\n el.addEventListener('transitionend', afterCollapseCallback, { once: true })\n el.style.height = original + 'px'\n el.style.transitionTimingFunction = 'ease-in'\n addTransition(el)\n requestAnimationFrame(() => el.style.height = '0px')\n })\n if (returnPromise) return returnPromise\n}\n", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"toast.aria.error\\\":[\\\"Fejl\\\"],\\\"toast.aria.successful\\\":[\\\"Fuldf\u00F8rt\\\"],\\\"toast.aria.warning\\\":[\\\"Advarsel\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"toast.aria.error\\\":[\\\"Error\\\"],\\\"toast.aria.successful\\\":[\\\"Successful\\\"],\\\"toast.aria.warning\\\":[\\\"Warning\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"toast.aria.error\\\":[\\\"Virhe\\\"],\\\"toast.aria.successful\\\":[\\\"Onnistui\\\"],\\\"toast.aria.warning\\\":[\\\"Varoitus\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"toast.aria.error\\\":[\\\"Feil\\\"],\\\"toast.aria.successful\\\":[\\\"Vellykket\\\"],\\\"toast.aria.warning\\\":[\\\"Advarsel\\\"]}\");", "/*eslint-disable*/export const messages=JSON.parse(\"{\\\"toast.aria.error\\\":[\\\"Fel\\\"],\\\"toast.aria.successful\\\":[\\\"Genomf\u00F6rt\\\"],\\\"toast.aria.warning\\\":[\\\"Varning\\\"]}\");", "import { css, html } from 'lit';\n\nimport WarpElement from '@warp-ds/elements-core';\nimport { collapse, expand } from 'element-collapse';\nimport { ifDefined } from 'lit/directives/if-defined.js';\n\nclass ExpandTransition extends WarpElement {\n static properties = {\n show: {\n type: Boolean,\n reflect: true,\n },\n _removeElement: { type: Boolean, state: true },\n };\n\n constructor() {\n super();\n\n this.show = false;\n this._mounted = false;\n this._removeElement = false;\n }\n\n willUpdate() {\n // Initialise state property with public property value\n if (!this._mounted) {\n this._removeElement = !this.show;\n }\n\n if (this.show && this._removeElement) {\n this._removeElement = false;\n }\n }\n\n updated() {\n if (!this._wrapper) return;\n\n if (!this._mounted) {\n this._mounted = true;\n return;\n }\n\n // If show is set to `true` by user, animate only after component is mount\n if (this.show) {\n expand(this._wrapper);\n }\n\n if (!this.show && !this._removeElement) {\n collapse(this._wrapper, () => (this._removeElement = true));\n }\n }\n\n get _wrapper() {\n return this ?? null;\n }\n\n static styles = [\n WarpElement.styles,\n css`\n :host {\n display: block;\n }\n `,\n ];\n\n render() {\n return html`<div aria-hidden=${ifDefined(!this.show ? 'true' : undefined)}>${this._removeElement ? html`` : html`<slot></slot>`}</div>`;\n }\n}\n\nif (!customElements.get('w-expand-transition')) {\n customElements.define('w-expand-transition', ExpandTransition);\n}\n\nexport { ExpandTransition };\n", "import { html } from 'lit';\n\nimport WarpElement from '@warp-ds/elements-core';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js';\n\nclass UnstyledHeading extends WarpElement {\n static properties = {\n level: { type: Number },\n };\n\n static styles = [WarpElement.styles];\n\n get _markup() {\n return `<h${this.level}\n style=\"margin: 0; font-weight: unset; font-size: unset; line-height: unset;\"\n >\n <slot></slot>\n </h${this.level}>\n`;\n }\n\n render() {\n return !this.level ? html`<slot></slot>` : unsafeHTML(this._markup);\n }\n}\n\nif (!customElements.get('w-unstyled-heading')) {\n customElements.define('w-unstyled-heading', UnstyledHeading);\n}\n\nexport { UnstyledHeading };\n"],
|
|
5
|
+
"mappings": "4qCAAA,IAAAA,GAAAC,GAAAC,IAAA,cAGA,OAAO,eAAeA,GAAS,aAAc,CAAE,MAAO,EAAK,CAAC,EAC5DA,GAAQ,cAAgBA,GAAQ,UAAY,OAO5C,IAAIC,IACH,SAAUA,EAAW,CAMlBA,EAAU,iBAAsB,oBAMhCA,EAAU,qBAA0B,wBAMpCA,EAAU,eAAoB,mBAK9BA,EAAU,iBAAsB,oBAKhCA,EAAU,YAAiB,eAC/B,GAAGA,GAAYD,GAAQ,YAAcA,GAAQ,UAAY,CAAC,EAAE,EAE5DA,GAAQ,cAAgB,IAAI,IAAI,CAC5B,CAACC,GAAU,iBAAkB,6CAA6C,EAC1E,CACIA,GAAU,qBACV,iDACJ,EACA,CACIA,GAAU,eACV,wEACJ,EACA,CACIA,GAAU,iBACV,uHAEJ,EACA,CAACA,GAAU,YAAa,4CAA4C,CACxE,CAAC,IC3DD,IAAAC,GAAAC,GAAAC,IAAA,cACA,OAAO,eAAeA,GAAS,aAAc,CAAE,MAAO,EAAK,CAAC,EAC5DA,GAAQ,MAAQA,GAAQ,cAAgBA,GAAQ,UAAY,OAC5D,IAAMC,GAAW,KACjB,OAAO,eAAeD,GAAS,YAAa,CAAE,WAAY,GAAM,IAAK,UAAY,CAAE,OAAOC,GAAS,SAAW,CAAE,CAAC,EACjH,OAAO,eAAeD,GAAS,gBAAiB,CAAE,WAAY,GAAM,IAAK,UAAY,CAAE,OAAOC,GAAS,aAAe,CAAE,CAAC,EASzH,SAASC,GAAcC,EAAK,CAExB,MADuB,CAACA,EAAI,MAAM,YAAY,EACtB,SAASA,EAAK,EAAE,EAAI,GAChD,CAYA,SAASC,GAAoBD,EAAKE,EAAWC,EAAgB,CACzD,IAAMC,EAAYL,GAAcC,CAAG,EACnC,GAAI,OAAO,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AACC,GAAY,MAAM,GAgBhC,eAAe,IAAI,oBAAoB,GAC1C,eAAe,OAAO,qBAAsBD,EAAe",
|
|
6
|
+
"names": ["require_errors", "__commonJSMin", "exports", "ErrorType", "require_dist", "__commonJSMin", "exports", "errors_1", "parseHexToInt", "hex", "validateAndParseHex", "errorName", "enforcedLength", "parsedHex", "parseHexadecimalCode", "code", "parsedCode", "parseUnicodeCode", "surrogateCode", "parsedSurrogateCode", "isCurlyBraced", "text", "parseUnicodeCodePointCode", "codePoint", "withoutBraces", "err", "parseOctalCode", "error", "singleCharacterEscapes", "parseSingleCharacterCode", "escapeMatch", "unraw", "raw", "allowOctals", "_", "backslash", "unicodeWithSurrogate", "surrogate", "unicode", "octal", "singleCharacter", "html", "LitElement", "r", "n", "t", "property", "ifDefined", "css", "reset", "components", "css", "styles", "LitElement", "unsafeStatic", "html", "import_unraw", "isString", "s", "isFunction", "f", "cache", "defaultLocale", "normalizeLocales", "locales", "date", "value", "format", "_locales", "o", "getMemoized", "cacheKey", "time", "number", "plural", "ordinal", "offset", "rules", "_a", "_b", "plurals", "getKey", "construct", "key", "formatter", "type", "options", "localeKey", "UNICODE_REGEX", "OCTOTHORPE_PH", "getDefaultFormats", "locale", "passedLocales", "formats", "locales", "style", "format", "replaceOctothorpe", "value", "message", "numberFormat", "valueStr", "number", "cases", "offset", "plural", "selectFormatter", "date", "time", "rules", "_a", "interpolate", "translation", "values", "formatters", "formatMessage", "tokens", "token", "isString", "name", "type", "interpolatedFormat", "key", "value2", "formatter", "result", "__defProp$1", "__defNormalProp$1", "obj", "__publicField$1", "EventEmitter", "event", "listener", "maybeListeners", "index", "args", "__defProp", "__defNormalProp", "__publicField", "I18n", "params", "defaultLocale", "localeData", "maybeLocaleData", "compiler", "localeOrAllData", "messages", "maybeMessages", "localeOrMessages", "messages2", "id", "options", "messageForId", "messageMissing", "missing", "isFunction", "setupI18n", "i18n", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconSearch16", "LitElement", "title", "html", "unsafeStatic", "LitElement", "unsafeStatic", "html", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconClose16", "LitElement", "title", "html", "unsafeStatic", "prefixSuffixWrapper", "ccSuffix", "ccPrefix", "WarpAffix", "LitElement", "r", "html", "ifDefined", "reset", "styles", "__decorateClass", "property", "css", "html", "LitElement", "property", "LitElement", "unsafeStatic", "html", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconInfo16", "LitElement", "title", "html", "unsafeStatic", "LitElement", "unsafeStatic", "html", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconWarning16", "LitElement", "title", "html", "unsafeStatic", "LitElement", "unsafeStatic", "html", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconError16", "LitElement", "title", "html", "unsafeStatic", "LitElement", "unsafeStatic", "html", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconSuccess16", "LitElement", "title", "html", "unsafeStatic", "css", "styles", "ccAlert", "alertVariants", "WarpAlert", "LitElement", "r", "activeIconClassNames", "html", "reset", "styles", "css", "__decorateClass", "property", "css", "html", "nothing", "sides", "min", "max", "round", "createCoords", "v", "oppositeSideMap", "oppositeAlignmentMap", "clamp", "start", "value", "end", "max", "min", "evaluate", "param", "getSide", "placement", "getAlignment", "getOppositeAxis", "axis", "getAxisLength", "yAxisSides", "getSideAxis", "getAlignmentAxis", "getAlignmentSides", "rects", "rtl", "alignment", "alignmentAxis", "length", "mainAlignmentSide", "getOppositePlacement", "getExpandedPlacements", "oppositePlacement", "getOppositeAlignmentPlacement", "lrPlacement", "rlPlacement", "tbPlacement", "btPlacement", "getSideList", "side", "isStart", "getOppositeAxisPlacements", "flipAlignment", "direction", "list", "expandPaddingObject", "padding", "getPaddingObject", "rectToClientRect", "rect", "x", "y", "width", "height", "computeCoordsFromPlacement", "_ref", "placement", "rtl", "reference", "floating", "sideAxis", "getSideAxis", "alignmentAxis", "getAlignmentAxis", "alignLength", "getAxisLength", "side", "getSide", "isVertical", "commonX", "commonY", "commonAlign", "coords", "getAlignment", "computePosition", "config", "strategy", "middleware", "platform", "validMiddleware", "rects", "x", "y", "statefulPlacement", "middlewareData", "resetCount", "i", "name", "fn", "nextX", "nextY", "data", "reset", "detectOverflow", "state", "options", "_await$platform$isEle", "elements", "boundary", "rootBoundary", "elementContext", "altBoundary", "padding", "evaluate", "paddingObject", "getPaddingObject", "element", "clippingClientRect", "rectToClientRect", "rect", "offsetParent", "offsetScale", "elementClientRect", "arrow", "axis", "length", "arrowDimensions", "isYAxis", "minProp", "maxProp", "clientProp", "endDiff", "startDiff", "arrowOffsetParent", "clientSize", "centerToReference", "largestPossiblePadding", "minPadding", "min", "maxPadding", "min$1", "max", "center", "offset", "clamp", "shouldAddOffset", "alignmentOffset", "flip", "options", "state", "_middlewareData$arrow", "_middlewareData$flip", "placement", "middlewareData", "rects", "initialPlacement", "platform", "elements", "checkMainAxis", "checkCrossAxis", "specifiedFallbackPlacements", "fallbackStrategy", "fallbackAxisSideDirection", "flipAlignment", "detectOverflowOptions", "evaluate", "side", "getSide", "initialSideAxis", "getSideAxis", "isBasePlacement", "rtl", "fallbackPlacements", "getOppositePlacement", "getExpandedPlacements", "hasFallbackAxisSideDirection", "getOppositeAxisPlacements", "placements", "overflow", "detectOverflow", "overflows", "overflowsData", "sides", "getAlignmentSides", "_middlewareData$flip2", "_overflowsData$filter", "nextIndex", "nextPlacement", "d", "resetPlacement", "a", "b", "_overflowsData$filter2", "currentSideAxis", "acc", "getSideOffsets", "rect", "isAnySideFullyClipped", "hide", "strategy", "offsets", "originSides", "convertValueToCoords", "state", "options", "placement", "platform", "elements", "rtl", "side", "getSide", "alignment", "getAlignment", "isVertical", "getSideAxis", "mainAxisMulti", "crossAxisMulti", "rawValue", "evaluate", "mainAxis", "crossAxis", "alignmentAxis", "offset", "_middlewareData$offse", "_middlewareData$arrow", "x", "y", "middlewareData", "diffCoords", "shift", "checkMainAxis", "checkCrossAxis", "limiter", "_ref", "detectOverflowOptions", "coords", "overflow", "detectOverflow", "getOppositeAxis", "mainAxisCoord", "crossAxisCoord", "minSide", "maxSide", "min", "max", "clamp", "limitedCoords", "size", "options", "state", "_state$middlewareData", "_state$middlewareData2", "placement", "rects", "platform", "elements", "apply", "detectOverflowOptions", "evaluate", "overflow", "detectOverflow", "side", "getSide", "alignment", "getAlignment", "isYAxis", "getSideAxis", "width", "height", "heightSide", "widthSide", "maximumClippingHeight", "maximumClippingWidth", "overflowAvailableHeight", "min", "overflowAvailableWidth", "noShift", "availableHeight", "availableWidth", "xMin", "max", "xMax", "yMin", "yMax", "nextDimensions", "hasWindow", "getNodeName", "node", "isNode", "getWindow", "_node$ownerDocument", "getDocumentElement", "_ref", "value", "isElement", "isHTMLElement", "isShadowRoot", "invalidOverflowDisplayValues", "isOverflowElement", "element", "overflow", "overflowX", "overflowY", "display", "getComputedStyle", "tableElements", "isTableElement", "topLayerSelectors", "isTopLayer", "selector", "_e", "transformProperties", "willChangeValues", "containValues", "isContainingBlock", "elementOrCss", "webkit", "isWebKit", "css", "getContainingBlock", "currentNode", "getParentNode", "isLastTraversableNode", "lastTraversableNodeNames", "getNodeScroll", "result", "getNearestOverflowAncestor", "parentNode", "getOverflowAncestors", "list", "traverseIframes", "_node$ownerDocument2", "scrollableAncestor", "isBody", "win", "frameElement", "getFrameElement", "getCssDimensions", "element", "css", "getComputedStyle", "width", "height", "hasOffset", "isHTMLElement", "offsetWidth", "offsetHeight", "shouldFallback", "round", "unwrapElement", "isElement", "getScale", "domElement", "createCoords", "rect", "$", "x", "y", "noOffsets", "getVisualOffsets", "win", "getWindow", "isWebKit", "shouldAddVisualOffsets", "isFixed", "floatingOffsetParent", "getBoundingClientRect", "includeScale", "isFixedStrategy", "offsetParent", "clientRect", "scale", "visualOffsets", "offsetWin", "currentWin", "currentIFrame", "getFrameElement", "iframeScale", "iframeRect", "left", "top", "rectToClientRect", "getWindowScrollBarX", "leftScroll", "getNodeScroll", "getDocumentElement", "getHTMLOffset", "documentElement", "scroll", "ignoreScrollbarX", "htmlRect", "convertOffsetParentRelativeRectToViewportRelativeRect", "_ref", "elements", "strategy", "topLayer", "isTopLayer", "offsets", "isOffsetParentAnElement", "getNodeName", "isOverflowElement", "offsetRect", "htmlOffset", "getClientRects", "getDocumentRect", "html", "body", "max", "getViewportRect", "visualViewport", "visualViewportBased", "getInnerBoundingClientRect", "getClientRectFromClippingAncestor", "clippingAncestor", "hasFixedPositionAncestor", "stopNode", "parentNode", "getParentNode", "isLastTraversableNode", "getClippingElementAncestors", "cache", "cachedResult", "result", "getOverflowAncestors", "el", "currentContainingBlockComputedStyle", "elementIsFixed", "currentNode", "computedStyle", "currentNodeIsContaining", "isContainingBlock", "ancestor", "getClippingRect", "boundary", "rootBoundary", "clippingAncestors", "firstClippingAncestor", "clippingRect", "accRect", "min", "getDimensions", "getRectRelativeToOffsetParent", "isStaticPositioned", "getTrueOffsetParent", "polyfill", "rawOffsetParent", "getOffsetParent", "svgOffsetParent", "isTableElement", "getContainingBlock", "getElementRects", "data", "getOffsetParentFn", "getDimensionsFn", "floatingDimensions", "isRTL", "platform", "offset", "shift", "flip", "size", "hide", "arrow", "computePosition", "reference", "floating", "options", "cache", "mergedOptions", "platform", "platformWithCache", "TOP_START", "TOP", "TOP_END", "RIGHT_START", "RIGHT", "RIGHT_END", "BOTTOM_START", "BOTTOM", "BOTTOM_END", "LEFT_START", "LEFT", "LEFT_END", "directions", "opposites", "rotation", "arrowDirectionClassname", "dir", "direction", "d", "side", "staticSide", "arrowDirection", "arrowRotation", "applyArrowStyles", "arrowEl", "ELEMENT_PADDING", "ARROW_OFFSET", "useRecompute", "state", "_a", "_b", "_c", "targetEl", "attentionEl", "computePosition", "offset", "flip", "shift", "arrow", "hide", "size", "x", "y", "middlewareData", "placement", "referenceHidden", "arrowX", "arrowY", "isRtl", "arrowPlacement", "top", "right", "bottom", "left", "value", "toaster", "toast", "buttonDefaultStyling", "buttonColors", "buttonTypes", "buttonSizes", "buttonTextSizes", "buttonVariants", "button", "modal", "buttonTextSizes", "buttonTypes", "buttonColors", "prefixSuffixWrapper", "suffix", "prefix", "toggle", "deadToggle", "attention", "buttonTextSizes", "buttonTypes", "buttonColors", "WarpElement", "ifDefined", "supportedLocales", "defaultLocale", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "e", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "messages", "i18n", "classMap", "camelCaseToKebabCase", "str", "kebabCaseAttributes", "constructor", "name", "options", "customOptions", "generateRandomId", "messages", "messages", "messages", "messages", "messages", "WarpAttention", "kebabCaseAttributes", "WarpElement", "activateI18n", "messages", "opposites", "fallbackPlacement", "directions", "useRecompute", "state", "v", "r", "attention", "arrowDirectionClassname", "html", "variantProps", "activeVariant", "b", "_a", "targetSlot", "messageSlot", "i18n", "attentionMessageId", "generateRandomId", "event", "ifDefined", "nothing", "__publicField", "css", "html", "LitElement", "property", "css", "styles", "WarpBadge", "LitElement", "r", "html", "reset", "styles", "__decorateClass", "property", "html", "LitElement", "nothing", "property", "css", "styles", "WarpBox", "LitElement", "r", "_a", "nothing", "html", "reset", "styles", "__decorateClass", "property", "html", "LitElement", "interleave", "array", "separator", "el", "property", "messages", "messages", "messages", "messages", "messages", "css", "styles", "ccBreadcrumbs", "separator", "html", "WarpBreadcrumbs", "LitElement", "activateI18n", "messages", "i18n", "styledChildren", "child", "index", "isLastEl", "interleave", "reset", "styles", "__decorateClass", "property", "html", "LitElement", "FormControlMixin", "SuperClass", "FormControl", "args", "_FormControl_focused", "_FormControl_forceError", "_FormControl_touched", "_FormControl_abortController", "_FormControl_previousAbortController", "_FormControl_awaitingValidationTarget", "_FormControl_value", "_FormControl_onFocus", "__classPrivateFieldSet", "__classPrivateFieldGet", "_FormControl_instances", "_FormControl_shouldShowError", "_FormControl_onBlur", "_FormControl_runValidators", "showError", "_FormControl_onInvalid", "_a", "_FormControl_validationCompleteResolver", "_FormControl_isValidationPending", "_FormControl_validationComplete", "_b", "_c", "validatorAttributes", "validator", "observedAttributes", "attribute", "name", "oldValue", "newValue", "validators", "value", "valueToUpdate", "resolve", "rootNode", "selector", "proto", "validity", "asyncValidators", "hasAsyncValidators", "abortController", "validationMessage", "hasChange", "key", "isValid", "isValidatorValid", "_FormControl_getValidatorMessageForValue", "_FormControl_setValidityWithOptionalTarget", "message", "WarpElement", "property", "html", "LitElement", "WarpElement", "property", "classMap", "css", "styles", "variants", "WarpLink", "FormControlMixin", "LitElement", "classes", "html", "classMap", "WarpElement", "reset", "styles", "__decorateClass", "property", "messages", "messages", "messages", "messages", "messages", "css", "styles", "variants", "buttonDefaultStyling", "buttonColors", "buttonTypes", "buttonSizes", "buttonTextSizes", "buttonVariants", "ccButton", "WarpButton", "FormControlMixin", "LitElement", "activateI18n", "messages", "i18n", "changedProperties", "r", "html", "WarpElement", "reset", "styles", "__decorateClass", "property", "html", "css", "LitElement", "property", "ifDefined", "messages", "messages", "messages", "messages", "messages", "css", "styles", "ccCard", "keys", "WarpCard", "LitElement", "activateI18n", "messages", "i18n", "r", "renderButton", "html", "renderSpan", "e", "ifDefined", "reset", "styles", "css", "__decorateClass", "property", "css", "html", "LitElement", "property", "classMap", "WarpDeadToggle", "LitElement", "classes", "classMap", "html", "reset", "css", "__decorateClass", "property", "css", "html", "LitElement", "property", "ifDefined", "LitElement", "unsafeStatic", "html", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconChevronDown16", "LitElement", "title", "html", "unsafeStatic", "LitElement", "unsafeStatic", "html", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconChevronUp16", "LitElement", "title", "html", "unsafeStatic", "css", "styles", "ccBox", "ccExpandable", "_WarpExpandable_instances", "wrapperClasses_get", "buttonClasses_get", "chevronClasses_get", "chevronIcon_get", "contentClasses_get", "expansionClasses_get", "WarpExpandable", "LitElement", "__privateAdd", "changedProperties", "_a", "hasTitleProp", "hasTitleSlot", "html", "__privateGet", "ifDefined", "r", "upClasses", "downClasses", "reset", "styles", "css", "__decorateClass", "property", "html", "css", "LitElement", "CanCloseMixin", "superClass", "ProvidesCanCloseToSlotsMixin", "evt", "children", "child", "e", "ModalFooter", "CanCloseMixin", "ProvidesCanCloseToSlotsMixin", "LitElement", "html", "reset", "css", "css", "html", "LitElement", "nothing", "computeDeltas", "first", "last", "moveKeyframes", "dx", "dy", "animationDefaults", "reduceMotion", "windowExists", "query", "callback", "matches", "Move", "el", "animation", "keyframes", "respectReduceMotion", "__publicField", "moveKeyframes", "cb", "v", "computeDeltas", "animationDefaults", "reduceMotion", "property", "query", "state", "LitElement", "unsafeStatic", "html", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconArrowLeft16", "LitElement", "title", "html", "unsafeStatic", "messages", "messages", "messages", "messages", "messages", "ModalHeader", "CanCloseMixin", "LitElement", "activateI18n", "messages", "html", "changedProperties", "Move", "i18n", "nothing", "slotEvent", "topContent", "reset", "css", "__decorateClass", "property", "state", "query", "css", "html", "LitElement", "property", "query", "n", "c", "i", "r", "_a", "h", "s", "a", "d", "f", "m", "y", "l", "p", "u", "b", "g", "E", "T", "ModalMain", "ProvidesCanCloseToSlotsMixin", "LitElement", "E", "T", "html", "changedProperties", "verb", "evt", "reset", "css", "__decorateClass", "property", "query", "html", "LitElement", "property", "classMap", "map", "range", "css", "styles", "WarpPageIndicator", "LitElement", "html", "map", "range", "i", "classes", "classMap", "styles", "__decorateClass", "property", "html", "LitElement", "nothing", "property", "LitElement", "unsafeStatic", "html", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconChevronDoubleLeft16", "LitElement", "title", "html", "unsafeStatic", "LitElement", "unsafeStatic", "html", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconChevronLeft16", "LitElement", "title", "html", "unsafeStatic", "LitElement", "unsafeStatic", "html", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconChevronRight16", "LitElement", "title", "html", "unsafeStatic", "messages", "messages", "messages", "messages", "messages", "css", "styles", "iconSuffix", "i18n", "baseItemStyles", "_WarpPagination_instances", "dispatchClickPage_fn", "WarpPagination", "LitElement", "__privateAdd", "activateI18n", "messages", "_", "i", "half", "start", "end", "visiblePages", "html", "__privateMethod", "nothing", "pageNumber", "isCurrentPage", "url", "styles", "ariaLabel", "e", "clickedPage", "reset", "__decorateClass", "property", "html", "LitElement", "property", "messages", "messages", "messages", "messages", "messages", "css", "styles", "pillStyles", "WarpPill", "LitElement", "activateI18n", "messages", "i18n", "r", "html", "reset", "styles", "__decorateClass", "property", "html", "property", "state", "isServer", "property", "LitElement", "unsafeCSS", "property", "host_default", "_hasRecordedInitialProperties", "BaseElement", "LitElement", "__privateAdd", "customState", "active", "_a", "e", "Self", "property", "spec", "styles", "host_default", "style", "unsafeCSS", "name", "oldValue", "newValue", "__privateGet", "obj", "prop", "__privateSet", "changedProperties", "value", "event", "eventOptions", "__decorateClass", "CustomErrorValidator", "element", "validity", "WInvalidEvent", "BaseFormAssociatedElement", "BaseElement", "e", "WInvalidEvent", "event", "_a", "emittedEvents", "isServer", "CustomErrorValidator", "parentAttrs", "validator", "attr", "args", "changedProperties", "value", "formData", "val", "flags", "message", "anchor", "required", "isValid", "hasInteracted", "isDisabled", "state", "reason", "staticValidators", "validators", "formControl", "finalMessage", "invalidKeys", "str", "__decorateClass", "property", "radio_default", "WRadio", "BaseFormAssociatedElement", "changedProperties", "effectivelyDisabled", "html", "radio_default", "__decorateClass", "state", "property", "html", "property", "query", "state", "classMap", "urlAlphabet", "nanoid", "size", "id", "bytes", "urlAlphabet", "uniqueId", "prefix", "nanoid", "radio_group_default", "RequiredValidator", "options", "validationElement", "validationProperty", "obj", "element", "_a", "validity", "HasSlotController", "host", "slotNames", "event", "slot", "node", "el", "name", "slotName", "WRadioGroup", "BaseFormAssociatedElement", "HasSlotController", "e", "clickedRadio", "oldValue", "radios", "radio", "validators", "RequiredValidator", "uniqueId", "_a", "val", "changedProperties", "args", "hasRadioButtons", "index", "enabledRadios", "checkedRadio", "event", "incr", "options", "checked", "firstEnabledRadio", "radioToFocus", "hasLabelSlot", "hasHintSlot", "hasLabel", "hasHint", "html", "classMap", "radio_group_default", "__decorateClass", "state", "query", "property", "WRadio", "WRadioGroup", "html", "property", "query", "classMap", "ifDefined", "live", "watch", "propertyName", "options", "resolvedOptions", "proto", "decoratedFnName", "update", "watchedProperties", "changedProps", "property", "key", "oldValue", "newValue", "LitElement", "unsafeStatic", "html", "messages", "supportedLocales", "defaultLocale", "detectByBrand", "_a", "value", "detectByHost", "hostname", "getSupportedLocale", "usedLocale", "locale", "detectLocale", "serverLocale", "htmlLocale", "hostLocale", "getMessages", "enMsg", "nbMsg", "fiMsg", "daMsg", "svMsg", "activateI18n", "enMessages", "nbMessages", "fiMessages", "daMessages", "svMessages", "i18n", "IconCheck16", "LitElement", "title", "html", "unsafeStatic", "checkbox_default", "_a", "WCheckbox", "BaseFormAssociatedElement", "HasSlotController", "validators", "RequiredValidator", "val", "changedProperties", "options", "hasHintSlot", "hasHint", "isIndeterminate", "html", "ifDefined", "live", "classMap", "checkbox_default", "__decorateClass", "query", "property", "watch", "WCheckbox", "html", "LitElement", "property", "ifDefined", "unsafeHTML", "when", "messages", "messages", "messages", "messages", "messages", "css", "styles", "ccSelect", "ccLabel", "ccHelpText", "_WarpSelect_instances", "classes_get", "helpTextClasses_get", "chevronClasses_get", "id_get", "helpId_get", "WarpSelect", "FormControlMixin", "LitElement", "__privateAdd", "value", "activateI18n", "messages", "child", "event", "target", "html", "when", "__privateGet", "i18n", "ifDefined", "unsafeHTML", "r", "reset", "styles", "__decorateClass", "property", "html", "LitElement", "property", "state", "messages", "messages", "messages", "messages", "messages", "css", "styles", "ccSteps", "ccStep", "WarpSteps", "LitElement", "activateI18n", "messages", "steps", "step", "index", "classes", "r", "html", "reset", "styles", "__decorateClass", "property", "availableAriaLabels", "i18n", "WarpStep", "context", "vertical", "left", "isFirst", "isLast", "stepClasses", "lineHorizontalClasses", "dotClasses", "lineClasses", "contentClasses", "state", "html", "LitElement", "property", "css", "styles", "ccSwitch", "WarpSwitch", "LitElement", "r", "html", "reset", "styles", "__decorateClass", "property", "LitElement", "html", "WarpElement", "property", "ifDefined", "css", "styles", "ccinput", "ccLabel", "ccHelpText", "WarpTextField", "FormControlMixin", "LitElement", "changedProperties", "r", "html", "e", "name", "value", "event", "ifDefined", "WarpElement", "reset", "styles", "__decorateClass", "property", "windowExists", "toast", "message", "options", "windowExists", "data", "removeToast", "id", "updateToast", "css", "html", "WarpElement", "repeat", "WarpToastContainer", "WarpElement", "keep", "remove", "toast", "collapseTasks", "id", "el", "result", "html", "toaster", "repeat", "__publicField", "css", "css", "html", "WarpElement", "windowExists", "prefersMotion", "query", "callback", "matches", "removeTransition", "el", "addTransition", "timing", "getAfterExpandCallback", "done", "getAfterCollapseCallback", "expand", "returnPromise", "r", "afterExpandCallback", "dest", "collapse", "afterCollapseCallback", "original", "when", "messages", "messages", "messages", "messages", "messages", "toastType", "_WarpToast_instances", "primaryClasses_get", "iconClasses_get", "WarpToast", "WarpElement", "__privateAdd", "activateI18n", "messages", "expand", "_a", "_b", "i18n", "html", "resolve", "collapse", "event", "toast", "__privateGet", "when", "r", "__publicField", "css", "css", "html", "WarpElement", "ifDefined", "ExpandTransition", "WarpElement", "expand", "collapse", "html", "ifDefined", "__publicField", "css", "html", "WarpElement", "unsafeHTML", "UnstyledHeading", "WarpElement", "unsafeHTML", "html", "__publicField"]
|
|
7
7
|
}
|