@loadsmart/miranda-wc 1.40.0 → 1.40.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{attention-b3ee5c68.js → attention-93db8c08.js} +2 -2
- package/dist/attention-93db8c08.js.map +1 -0
- package/dist/{bell-0f6c72f0.js → bell-faca6930.js} +2 -2
- package/dist/bell-faca6930.js.map +1 -0
- package/dist/{check-674b6707.js → check-29a89516.js} +2 -2
- package/dist/check-29a89516.js.map +1 -0
- package/dist/{close-f16fc605.js → close-1e60da91.js} +2 -2
- package/dist/close-1e60da91.js.map +1 -0
- package/dist/components/card/card-divider.d.ts +18 -0
- package/dist/components/card/card-divider.d.ts.map +1 -0
- package/dist/components/card/index.d.ts +1 -0
- package/dist/components/card/index.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox.styles.d.ts.map +1 -1
- package/dist/components/popover/popover.d.ts.map +1 -1
- package/dist/components/tabs/tab.styles.d.ts.map +1 -1
- package/dist/components/tag/tag.styles.d.ts.map +1 -1
- package/dist/{indeterminate-01eb1345.js → indeterminate-1199584a.js} +2 -2
- package/dist/indeterminate-1199584a.js.map +1 -0
- package/dist/index-fd721cae.js +2118 -0
- package/dist/index-fd721cae.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/{info-circle-a5ded8e8.js → info-circle-2ee53064.js} +2 -2
- package/dist/info-circle-2ee53064.js.map +1 -0
- package/dist/utils/events.d.ts.map +1 -1
- package/package.json +9 -7
- package/dist/attention-b3ee5c68.js.map +0 -1
- package/dist/bell-0f6c72f0.js.map +0 -1
- package/dist/check-674b6707.js.map +0 -1
- package/dist/close-f16fc605.js.map +0 -1
- package/dist/indeterminate-01eb1345.js.map +0 -1
- package/dist/index-5bda2324.js +0 -2111
- package/dist/index-5bda2324.js.map +0 -1
- package/dist/info-circle-a5ded8e8.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-5bda2324.js","sources":["../../../node_modules/tslib/tslib.es6.js","../../../node_modules/lit-html/lit-html.js","../../../node_modules/lit-html/static.js","../../../node_modules/@lit/reactive-element/css-tag.js","../../../node_modules/@lit/reactive-element/reactive-element.js","../../../node_modules/lit-element/lit-element.js","../../../node_modules/lit-html/directives/if-defined.js","../../../node_modules/lit-html/directive.js","../../../node_modules/lit-html/directives/class-map.js","../src/mixins/polymorphic-tag/polymorphic-tag.ts","../src/components/form-control/form-control.ts","../../miranda-tokens/dist/themes.js","../../miranda-tokens/dist/index.js","../src/utils/get-token.ts","../src/utils/get-color-token.ts","../../miranda-toolset/dist/to-array.js","../src/styles/margin.ts","../src/styles/padding.ts","../src/styles/transition.ts","../src/styles/typography.ts","../src/styles/disableable.ts","../src/styles/index.ts","../src/styles/activable.ts","../src/styles/focusable.ts","../src/styles/hoverable.ts","../src/components/button/base-button.styles.ts","../src/components/button/button.ts","../src/components/button/button.styles.ts","../src/components/banner/banner-action-primary.ts","../src/components/banner/banner-action-secondary.ts","../src/components/banner/banner-actions.ts","../src/components/banner/banner-actions.styles.ts","../src/components/banner/banner-description.ts","../src/components/banner/banner-description.styles.ts","../src/components/banner/banner-icon.ts","../src/components/banner/banner-title.ts","../src/components/banner/banner-title.styles.ts","../src/components/component/component.ts","../src/utils/events.ts","../../miranda-toolset/dist/index-2d298de0.js","../../miranda-toolset/dist/to-rem.js","../src/utils/to-rem.ts","../src/components/icon/available-icons.ts","../src/components/icon/icon.ts","../src/components/icon/icon.styles.ts","../src/components/close-button/close-button.ts","../src/components/close-button/close-button.styles.ts","../../../node_modules/lit-html/directives/style-map.js","../src/components/text/text.ts","../src/components/text/text.styles.ts","../src/components/banner/banner.ts","../src/components/banner/banner.styles.ts","../src/components/card/card.ts","../src/components/card/card.styles.ts","../src/components/card/card-body.ts","../src/components/card/card-subtitle.ts","../src/components/card/card-title.ts","../src/components/checkbox/checkbox.styles.ts","../src/components/checkbox/checkbox.ts","../src/components/checkbox/checkbox.constants.ts","../../../node_modules/@lit-labs/context/lib/context-request-event.js","../../../node_modules/@lit-labs/context/lib/controllers/context-consumer.js","../../../node_modules/@lit-labs/context/lib/value-notifier.js","../../../node_modules/@lit-labs/context/lib/controllers/context-provider.js","../src/utils/context-root.ts","../../../node_modules/@lit-labs/context/lib/context-root.js","../src/utils/wait-for-animations.ts","../src/components/dialog/dialog.context.ts","../src/components/dialog/dialog.ts","../src/components/dialog/dialog.styles.ts","../src/components/dialog/dialog.types.ts","../src/components/dialog/dialog-action-primary.ts","../src/components/dialog/dialog-action-secondary.ts","../src/components/dialog/dialog-action-tertiary.ts","../src/utils/get-spacing-value.ts","../src/components/layout/base-layout/base-layout.ts","../src/components/layout/base-layout/base-layout.styles.ts","../src/components/layout/group/group.constants.ts","../src/components/layout/group/group.ts","../src/components/layout/group/group.styles.ts","../src/components/dialog/dialog-actions.ts","../src/components/dialog/dialog-body.ts","../src/components/dialog/dialog-body.styles.ts","../src/components/dialog/dialog-close.ts","../src/components/dialog/dialog-footer.ts","../src/components/layout/layout.constants.ts","../src/components/layout/box/box.constants.ts","../src/components/layout/box/box.ts","../src/components/layout/box/box.styles.ts","../src/components/layout/stack/stack.constants.ts","../src/components/layout/stack/stack.ts","../src/components/layout/stack/stack.styles.ts","../src/components/layout/grid/grid.constants.ts","../src/components/layout/grid/grid.ts","../src/components/layout/grid/grid.styles.ts","../src/components/layout/sidebar/sidebar.constants.ts","../src/components/layout/sidebar/sidebar.styles.ts","../src/components/layout/sidebar/sidebar.ts","../src/components/layout/switcher/switcher.constants.ts","../src/components/layout/switcher/switcher.ts","../src/components/layout/switcher/switcher.styles.ts","../src/components/dialog/dialog-header.ts","../src/components/dialog/dialog-header.styles.ts","../src/components/divider/divider.ts","../src/components/divider/divider.styles.ts","../src/components/field/field.context.ts","../src/components/field/field-hint.ts","../src/components/field/field-hint.styles.ts","../src/components/field/field-label.ts","../src/components/field/field-label.styles.ts","../src/components/field/field.ts","../src/components/field/field.types.ts","../src/components/progress-bar/progress-bar.ts","../src/utils/clamp/clamp.ts","../src/components/progress-bar/progress-bar.styles.ts","../src/components/progress-bar-countdown/progress-bar-countdown.ts","../src/components/radio-group/radio-group.constants.ts","../src/components/radio-group/radio.ts","../src/components/radio-group/radio-button.styles.ts","../../miranda-toolset/dist/selection.js","../src/controllers/selection/selection.controller.ts","../src/components/radio-group/radio-group.ts","../src/components/radio-group/radio-group.styles.ts","../src/components/tabs/tabs.context.ts","../src/components/tabs/tabs.constants.ts","../src/components/tabs/tabs.ts","../src/components/tabs/tabs.styles.ts","../src/components/tabs/tab.ts","../src/components/tabs/tab.styles.ts","../src/components/tabs/tab-panel.ts","../src/components/tabs/tab-panel.styles.ts","../src/components/tag/tag.ts","../src/components/tag/tag.styles.ts","../src/styles/skeleton.ts","../src/components/text-field/text-field.ts","../src/components/text-field/text-field.styles.ts","../src/components/toggle-group/toggle-group.constants.ts","../src/components/toggle-group/toggle-group.ts","../src/components/toggle-group/toggle-group.styles.ts","../src/components/toggle-group/toggle.ts","../src/components/tooltip/tooltip.helpers.ts","../../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs","../src/components/toggle-group/toggle.styles.ts","../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs","../src/components/popover/popover.ts","../src/components/tooltip/tooltip.ts","../src/components/tooltip/tooltip.styles.ts","../src/components/popover/popover.styles.ts","../src/components/tooltip/tooltip.constants.ts"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport default {\r\n __extends,\r\n __assign,\r\n __rest,\r\n __decorate,\r\n __param,\r\n __metadata,\r\n __awaiter,\r\n __generator,\r\n __createBinding,\r\n __exportStar,\r\n __values,\r\n __read,\r\n __spread,\r\n __spreadArrays,\r\n __spreadArray,\r\n __await,\r\n __asyncGenerator,\r\n __asyncDelegator,\r\n __asyncValues,\r\n __makeTemplateObject,\r\n __importStar,\r\n __importDefault,\r\n __classPrivateFieldGet,\r\n __classPrivateFieldSet,\r\n __classPrivateFieldIn,\r\n};\r\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar t;const i=window,s=i.trustedTypes,e=s?s.createPolicy(\"lit-html\",{createHTML:t=>t}):void 0,o=\"$lit$\",n=`lit$${(Math.random()+\"\").slice(9)}$`,l=\"?\"+n,h=`<${l}>`,r=document,d=()=>r.createComment(\"\"),u=t=>null===t||\"object\"!=typeof t&&\"function\"!=typeof t,c=Array.isArray,v=t=>c(t)||\"function\"==typeof(null==t?void 0:t[Symbol.iterator]),a=\"[ \\t\\n\\f\\r]\",f=/<(?:(!--|\\/[^a-zA-Z])|(\\/?[a-zA-Z][^>\\s]*)|(\\/?$))/g,_=/-->/g,m=/>/g,p=RegExp(`>|${a}(?:([^\\\\s\"'>=/]+)(${a}*=${a}*(?:[^ \\t\\n\\f\\r\"'\\`<>=]|(\"|')|))|$)`,\"g\"),g=/'/g,$=/\"/g,y=/^(?:script|style|textarea|title)$/i,w=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=w(1),b=w(2),T=Symbol.for(\"lit-noChange\"),A=Symbol.for(\"lit-nothing\"),E=new WeakMap,C=r.createTreeWalker(r,129,null,!1),P=(t,i)=>{const s=t.length-1,l=[];let r,d=2===i?\"<svg>\":\"\",u=f;for(let i=0;i<s;i++){const s=t[i];let e,c,v=-1,a=0;for(;a<s.length&&(u.lastIndex=a,c=u.exec(s),null!==c);)a=u.lastIndex,u===f?\"!--\"===c[1]?u=_:void 0!==c[1]?u=m:void 0!==c[2]?(y.test(c[2])&&(r=RegExp(\"</\"+c[2],\"g\")),u=p):void 0!==c[3]&&(u=p):u===p?\">\"===c[0]?(u=null!=r?r:f,v=-1):void 0===c[1]?v=-2:(v=u.lastIndex-c[2].length,e=c[1],u=void 0===c[3]?p:'\"'===c[3]?$:g):u===$||u===g?u=p:u===_||u===m?u=f:(u=p,r=void 0);const w=u===p&&t[i+1].startsWith(\"/>\")?\" \":\"\";d+=u===f?s+h:v>=0?(l.push(e),s.slice(0,v)+o+s.slice(v)+n+w):s+n+(-2===v?(l.push(void 0),i):w)}const c=d+(t[s]||\"<?>\")+(2===i?\"</svg>\":\"\");if(!Array.isArray(t)||!t.hasOwnProperty(\"raw\"))throw Error(\"invalid template strings array\");return[void 0!==e?e.createHTML(c):c,l]};class V{constructor({strings:t,_$litType$:i},e){let h;this.parts=[];let r=0,u=0;const c=t.length-1,v=this.parts,[a,f]=P(t,i);if(this.el=V.createElement(a,e),C.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(h=C.nextNode())&&v.length<c;){if(1===h.nodeType){if(h.hasAttributes()){const t=[];for(const i of h.getAttributeNames())if(i.endsWith(o)||i.startsWith(n)){const s=f[u++];if(t.push(i),void 0!==s){const t=h.getAttribute(s.toLowerCase()+o).split(n),i=/([.?@])?(.*)/.exec(s);v.push({type:1,index:r,name:i[2],strings:t,ctor:\".\"===i[1]?k:\"?\"===i[1]?I:\"@\"===i[1]?L:R})}else v.push({type:6,index:r})}for(const i of t)h.removeAttribute(i)}if(y.test(h.tagName)){const t=h.textContent.split(n),i=t.length-1;if(i>0){h.textContent=s?s.emptyScript:\"\";for(let s=0;s<i;s++)h.append(t[s],d()),C.nextNode(),v.push({type:2,index:++r});h.append(t[i],d())}}}else if(8===h.nodeType)if(h.data===l)v.push({type:2,index:r});else{let t=-1;for(;-1!==(t=h.data.indexOf(n,t+1));)v.push({type:7,index:r}),t+=n.length-1}r++}}static createElement(t,i){const s=r.createElement(\"template\");return s.innerHTML=t,s}}function N(t,i,s=t,e){var o,n,l,h;if(i===T)return i;let r=void 0!==e?null===(o=s._$Co)||void 0===o?void 0:o[e]:s._$Cl;const d=u(i)?void 0:i._$litDirective$;return(null==r?void 0:r.constructor)!==d&&(null===(n=null==r?void 0:r._$AO)||void 0===n||n.call(r,!1),void 0===d?r=void 0:(r=new d(t),r._$AT(t,s,e)),void 0!==e?(null!==(l=(h=s)._$Co)&&void 0!==l?l:h._$Co=[])[e]=r:s._$Cl=r),void 0!==r&&(i=N(t,r._$AS(t,i.values),r,e)),i}class S{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:s},parts:e}=this._$AD,o=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:r).importNode(s,!0);C.currentNode=o;let n=C.nextNode(),l=0,h=0,d=e[0];for(;void 0!==d;){if(l===d.index){let i;2===d.type?i=new M(n,n.nextSibling,this,t):1===d.type?i=new d.ctor(n,d.name,d.strings,this,t):6===d.type&&(i=new z(n,this,t)),this._$AV.push(i),d=e[++h]}l!==(null==d?void 0:d.index)&&(n=C.nextNode(),l++)}return C.currentNode=r,o}v(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class M{constructor(t,i,s,e){var o;this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cp=null===(o=null==e?void 0:e.isConnected)||void 0===o||o}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=N(this,t,i),u(t)?t===A||null==t||\"\"===t?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):v(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==A&&u(this._$AH)?this._$AA.nextSibling.data=t:this.$(r.createTextNode(t)),this._$AH=t}g(t){var i;const{values:s,_$litType$:e}=t,o=\"number\"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=V.createElement(e.h,this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===o)this._$AH.v(s);else{const t=new S(o,this),i=t.u(this.options);t.v(s),this.$(i),this._$AH=t}}_$AC(t){let i=E.get(t.strings);return void 0===i&&E.set(t.strings,i=new V(t)),i}T(t){c(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const o of t)e===i.length?i.push(s=new M(this.k(d()),this.k(d()),this,this.options)):s=i[e],s._$AI(o),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class R{constructor(t,i,s,e,o){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=o,s.length>2||\"\"!==s[0]||\"\"!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=A}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(void 0===o)t=N(this,t,i,0),n=!u(t)||t!==this._$AH&&t!==T,n&&(this._$AH=t);else{const e=t;let l,h;for(t=o[0],l=0;l<o.length-1;l++)h=N(this,e[s+l],i,l),h===T&&(h=this._$AH[l]),n||(n=!u(h)||h!==this._$AH[l]),h===A?t=A:t!==A&&(t+=(null!=h?h:\"\")+o[l+1]),this._$AH[l]=h}n&&!e&&this.j(t)}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:\"\")}}class k extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}}const H=s?s.emptyScript:\"\";class I extends R{constructor(){super(...arguments),this.type=4}j(t){t&&t!==A?this.element.setAttribute(this.name,H):this.element.removeAttribute(this.name)}}class L extends R{constructor(t,i,s,e,o){super(t,i,s,e,o),this.type=5}_$AI(t,i=this){var s;if((t=null!==(s=N(this,t,i,0))&&void 0!==s?s:A)===T)return;const e=this._$AH,o=t===A&&e!==A||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,n=t!==A&&(e===A||o);o&&this.element.removeEventListener(this.name,this,e),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,s;\"function\"==typeof this._$AH?this._$AH.call(null!==(s=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t)}}class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){N(this,t)}}const Z={O:o,P:n,A:l,C:1,M:P,L:S,D:v,R:N,I:M,V:R,H:I,N:L,U:k,F:z},j=i.litHtmlPolyfillSupport;null==j||j(V,M),(null!==(t=i.litHtmlVersions)&&void 0!==t?t:i.litHtmlVersions=[]).push(\"2.7.4\");const B=(t,i,s)=>{var e,o;const n=null!==(e=null==s?void 0:s.renderBefore)&&void 0!==e?e:i;let l=n._$litPart$;if(void 0===l){const t=null!==(o=null==s?void 0:s.renderBefore)&&void 0!==o?o:null;n._$litPart$=l=new M(i.insertBefore(d(),t),t,void 0,null!=s?s:{})}return l._$AI(t),l};export{Z as _$LH,x as html,T as noChange,A as nothing,B as render,b as svg};\n//# sourceMappingURL=lit-html.js.map\n","import{html as t,svg as r}from\"./lit-html.js\";\n/**\n * @license\n * Copyright 2020 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const e=Symbol.for(\"\"),l=t=>{if((null==t?void 0:t.r)===e)return null==t?void 0:t._$litStatic$},o=t=>({_$litStatic$:t,r:e}),i=(t,...r)=>({_$litStatic$:r.reduce(((r,e,l)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\\n take care to ensure page security.`)})(e)+t[l+1]),t[0]),r:e}),s=new Map,a=t=>(r,...e)=>{const o=e.length;let i,a;const n=[],u=[];let c,$=0,f=!1;for(;$<o;){for(c=r[$];$<o&&void 0!==(a=e[$],i=l(a));)c+=i+r[++$],f=!0;$!==o&&u.push(a),n.push(c),$++}if($===o&&n.push(r[o]),f){const t=n.join(\"$$lit$$\");void 0===(r=s.get(t))&&(n.raw=n,s.set(t,r=n)),e=u}return t(r,...e)},n=a(t),u=a(r);export{n as html,i as literal,u as svg,o as unsafeStatic,a as withStatic};\n//# sourceMappingURL=static.js.map\n","/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=window,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&\"adoptedStyleSheets\"in Document.prototype&&\"replace\"in CSSStyleSheet.prototype,s=Symbol(),n=new WeakMap;class o{constructor(t,e,n){if(this._$cssResult$=!0,n!==s)throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=n.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&n.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new o(\"string\"==typeof t?t:t+\"\",void 0,s),i=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,s,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if(\"number\"==typeof t)return t;throw Error(\"Value passed to 'css' function must be a 'css' function result: \"+t+\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\")})(s)+t[n+1]),t[0]);return new o(n,t,s)},S=(s,n)=>{e?s.adoptedStyleSheets=n.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):n.forEach((e=>{const n=document.createElement(\"style\"),o=t.litNonce;void 0!==o&&n.setAttribute(\"nonce\",o),n.textContent=e.cssText,s.appendChild(n)}))},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e=\"\";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;export{o as CSSResult,S as adoptStyles,i as css,c as getCompatibleStyle,e as supportsAdoptingStyleSheets,r as unsafeCSS};\n//# sourceMappingURL=css-tag.js.map\n","import{getCompatibleStyle as t,adoptStyles as i}from\"./css-tag.js\";export{CSSResult,adoptStyles,css,getCompatibleStyle,supportsAdoptingStyleSheets,unsafeCSS}from\"./css-tag.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */var s;const e=window,r=e.trustedTypes,h=r?r.emptyScript:\"\",o=e.reactiveElementPolyfillSupport,n={toAttribute(t,i){switch(i){case Boolean:t=t?h:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let s=t;switch(i){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},a=(t,i)=>i!==t&&(i==i||t==t),l={attribute:!0,type:String,converter:n,reflect:!1,hasChanged:a},d=\"finalized\";class u extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var i;this.finalize(),(null!==(i=this.h)&&void 0!==i?i:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,s)=>{const e=this._$Ep(s,i);void 0!==e&&(this._$Ev.set(e,s),t.push(e))})),t}static createProperty(t,i=l){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const s=\"symbol\"==typeof t?Symbol():\"__\"+t,e=this.getPropertyDescriptor(t,s,i);void 0!==e&&Object.defineProperty(this.prototype,t,e)}}static getPropertyDescriptor(t,i,s){return{get(){return this[i]},set(e){const r=this[t];this[i]=e,this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||l}static finalize(){if(this.hasOwnProperty(d))return!1;this[d]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty(\"properties\")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of i)this.createProperty(s,t[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(i){const s=[];if(Array.isArray(i)){const e=new Set(i.flat(1/0).reverse());for(const i of e)s.unshift(t(i))}else void 0!==i&&s.push(t(i));return s}static _$Ep(t,i){const s=i.attribute;return!1===s?void 0:\"string\"==typeof s?s:\"string\"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,s;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(s=t.hostConnected)||void 0===s||s.call(t))}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const s=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return i(s,this.constructor.elementStyles),s}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,s){this._$AK(t,s)}_$EO(t,i,s=l){var e;const r=this.constructor._$Ep(t,s);if(void 0!==r&&!0===s.reflect){const h=(void 0!==(null===(e=s.converter)||void 0===e?void 0:e.toAttribute)?s.converter:n).toAttribute(i,s.type);this._$El=t,null==h?this.removeAttribute(r):this.setAttribute(r,h),this._$El=null}}_$AK(t,i){var s;const e=this.constructor,r=e._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=e.getPropertyOptions(r),h=\"function\"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(s=t.converter)||void 0===s?void 0:s.fromAttribute)?t.converter:n;this._$El=r,this[r]=h.fromAttribute(i,t.type),this._$El=null}}requestUpdate(t,i,s){let e=!0;void 0!==t&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||a)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===s.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,s))):e=!1),!this.isUpdatePending&&e&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const s=this._$AL;try{i=this.shouldUpdate(s),i?(this.willUpdate(s),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(s)):this._$Ek()}catch(t){throw i=!1,this._$Ek(),t}i&&this._$AE(s)}willUpdate(t){}_$AE(t){var i;null===(i=this._$ES)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$EO(i,this[i],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}u[d]=!0,u.elementProperties=new Map,u.elementStyles=[],u.shadowRootOptions={mode:\"open\"},null==o||o({ReactiveElement:u}),(null!==(s=e.reactiveElementVersions)&&void 0!==s?s:e.reactiveElementVersions=[]).push(\"1.6.2\");export{u as ReactiveElement,n as defaultConverter,a as notEqual};\n//# sourceMappingURL=reactive-element.js.map\n","import{ReactiveElement as t}from\"@lit/reactive-element\";export*from\"@lit/reactive-element\";import{render as e,noChange as i}from\"lit-html\";export*from\"lit-html\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */var l,o;const r=t;class s extends t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=e(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return i}}s.finalized=!0,s._$litElement$=!0,null===(l=globalThis.litElementHydrateSupport)||void 0===l||l.call(globalThis,{LitElement:s});const n=globalThis.litElementPolyfillSupport;null==n||n({LitElement:s});const h={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(null!==(o=globalThis.litElementVersions)&&void 0!==o?o:globalThis.litElementVersions=[]).push(\"3.3.2\");export{s as LitElement,r as UpdatingElement,h as _$LE};\n//# sourceMappingURL=lit-element.js.map\n","import{nothing as t}from\"../lit-html.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const l=l=>null!=l?l:t;export{l as ifDefined};\n//# sourceMappingURL=if-defined.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}export{i as Directive,t as PartType,e as directive};\n//# sourceMappingURL=directive.js.map\n","import{noChange as t}from\"../lit-html.js\";import{directive as i,Directive as s,PartType as r}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o=i(class extends s{constructor(t){var i;if(super(t),t.type!==r.ATTRIBUTE||\"class\"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error(\"`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.\")}render(t){return\" \"+Object.keys(t).filter((i=>t[i])).join(\" \")+\" \"}update(i,[s]){var r,o;if(void 0===this.it){this.it=new Set,void 0!==i.strings&&(this.nt=new Set(i.strings.join(\" \").split(/\\s/).filter((t=>\"\"!==t))));for(const t in s)s[t]&&!(null===(r=this.nt)||void 0===r?void 0:r.has(t))&&this.it.add(t);return this.render(s)}const e=i.element.classList;this.it.forEach((t=>{t in s||(e.remove(t),this.it.delete(t))}));for(const t in s){const i=!!s[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return t}});export{o as classMap};\n//# sourceMappingURL=class-map.js.map\n","import { literal, unsafeStatic } from 'lit/static-html.js';\nimport type { LitElement } from 'lit';\nimport type {\n\tConstructor,\n\tHTMLTag,\n\tPolymorphicTagInterface,\n} from './polymorphic-tag.types';\n\n/**\n * This mixin allows a component to render with different types of tags, based on the provided `allowedTags`.\n * Be aware that, this mixin does **NOT** change the type (TS-wise) of your component, so, for tags that have their specific\n * attributes (e.g., button, a), your component must accept and properly render those attributes.\n * This is just a convenience layer for rendering a dynamically provided tag.\n *\n * TL;DR; either limit the tags you will allow for component, or add the additional attributes to your component to\n * comply with the tags that will be supported.\n */\nexport const PolymorphicTagMixin = <T extends Constructor<LitElement>>(\n\tsuperClass: T,\n\tallowedTags: HTMLTag[] = ['article', 'div', 'span'],\n\tfallbackTag: HTMLTag = 'div',\n) => {\n\tclass PolymorphicTag extends superClass {\n\t\tstatic get properties() {\n\t\t\treturn {\n\t\t\t\tas: { type: String },\n\t\t\t};\n\t\t}\n\n\t\t/**\n\t\t * Which HTML tag should be used to render this element.\n\t\t */\n\t\tdeclare as: HTMLTag;\n\n\t\toverride connectedCallback() {\n\t\t\tsuper.connectedCallback();\n\n\t\t\tthis.as =\n\t\t\t\t(allowedTags.includes(this.as) ? this.as : fallbackTag) ?? 'div';\n\t\t}\n\n\t\tget tag() {\n\t\t\treturn literal`${unsafeStatic(this.as)}`;\n\t\t}\n\t}\n\n\treturn PolymorphicTag as Constructor<PolymorphicTagInterface> & T;\n};\n","import { LitElement } from 'lit';\nimport type { PropertyValues } from 'lit';\n\nexport class FormControl extends LitElement {\n\t#form?: HTMLFormElement | null;\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\tform: { type: String, reflect: true },\n\t\t};\n\t}\n\n\t/**\n\t * Form element to which this control is associated.\n\t * (applicable to `submit` and `reset` buttons)\n\t */\n\tdeclare form?: string;\n\n\tprotected override updated(changedProperties: PropertyValues<this>): void {\n\t\tsuper.updated(changedProperties);\n\n\t\tif (changedProperties.has('form') || this.#form == null) {\n\t\t\tthis.#updateAssignedForm();\n\t\t}\n\t}\n\n\tpublic getForm = () => {\n\t\treturn this.#form;\n\t};\n\n\t#updateAssignedForm = () => {\n\t\tif (this.hasAttribute('form')) {\n\t\t\tconst doc = this.getRootNode() as Document | ShadowRoot;\n\t\t\tconst formId = this.getAttribute('form')!;\n\n\t\t\tthis.#form = doc.getElementById(formId) as HTMLFormElement;\n\t\t} else {\n\t\t\t// Fall back to the closest containing form\n\t\t\tthis.#form = this.closest('form');\n\t\t}\n\t};\n}\n\nexport default FormControl;\n","\"use strict\";exports.LoadsmartTheme={\"brand-color-brand\":\"20, 214, 77\",\"brand-color-brand-accent-1\":\"0, 215, 215\",\"brand-color-brand-accent-2\":\"132, 241, 30\",\"border-radius-none\":\"0px\",\"border-radius-s\":\"4px\",\"border-radius-m\":\"8px\",\"border-radius-l\":\"16px\",\"border-radius-circle\":\"50%\",\"border-none\":0,\"border-thin\":\"1px\",\"border-medium\":\"2px\",\"border-thick\":\"4px\",\"color-background-primary\":\"252, 252, 255\",\"color-background-secondary\":\"248, 249, 251\",\"color-background-tertiary\":\"230, 237, 242\",\"color-background-highlight\":\"202, 219, 221\",\"color-background-inverted\":\"32, 41, 49\",\"color-background-secondary-inverted\":\"61, 74, 85\",\"color-border\":\"193, 206, 217\",\"color-divider\":\"230, 237, 242\",\"color-brand\":\"20, 214, 77\",\"color-brand-accent-1\":\"0, 215, 215\",\"color-brand-accent-2\":\"132, 241, 30\",\"color-primary-20\":\"202, 219, 221\",\"color-primary-60\":\"0, 84, 84\",\"color-primary-100\":\"0, 51, 51\",\"color-accent-20\":\"229, 245, 255\",\"color-accent-60\":\"0, 98, 159\",\"color-accent-100\":\"15, 66, 97\",\"color-neutral-0\":\"252, 252, 255\",\"color-neutral-10\":\"248, 249, 251\",\"color-neutral-20\":\"230, 237, 242\",\"color-neutral-40\":\"193, 206, 217\",\"color-neutral-60\":\"94, 118, 138\",\"color-neutral-80\":\"92, 106, 118\",\"color-neutral-90\":\"61, 74, 85\",\"color-neutral-100\":\"32, 41, 49\",\"color-success-20\":\"227, 247, 239\",\"color-success-60\":\"3, 124, 94\",\"color-success-100\":\"0, 94, 71\",\"color-danger-20\":\"255, 233, 230\",\"color-danger-60\":\"186, 27, 27\",\"color-danger-100\":\"104, 0, 3\",\"color-warning-20\":\"255, 243, 214\",\"color-warning-60\":\"248, 182, 14\",\"color-warning-100\":\"102, 63, 25\",\"color-text-primary\":\"32, 41, 49\",\"color-text-secondary\":\"61, 74, 85\",\"color-text-tertiary\":\"92, 106, 118\",\"color-text-placeholder\":\"94, 118, 138\",\"color-text-disabled\":\"193, 206, 217\",\"color-text-inverted\":\"252, 252, 255\",\"color-text-secondary-inverted\":\"193, 206, 217\",\"color-text-error\":\"186, 27, 27\",\"color-text-highlight\":\"0, 98, 159\",\"color-text-link\":\"0, 98, 159\",\"font-family-default\":\"'Manrope', sans-serif\",\"font-family-title\":\"'PlusJakartaSans', 'Manrope', sans-serif\",\"font-size-1\":\"0.625rem\",\"font-size-2\":\"0.75rem\",\"font-size-3\":\"0.875rem\",\"font-size-4\":\"1rem\",\"font-size-5\":\"1.25rem\",\"font-size-6\":\"1.625rem\",\"font-size-7\":\"2.375rem\",\"font-size-8\":\"3rem\",\"font-size-9\":\"3.625rem\",\"font-weight-regular\":500,\"font-weight-medium\":600,\"font-weight-bold\":700,\"line-height-1\":\"100%\",\"line-height-2\":\"125%\",\"line-height-3\":\"130%\",\"line-height-4\":\"140%\",\"line-height-5\":\"150%\",\"line-height-6\":\"180%\",\"global-height-small\":\"1.75rem\",\"global-height-default\":\"2.5rem\",\"global-height-large\":\"3rem\",\"opacity-0\":\"0%\",\"opacity-20\":\"20%\",\"opacity-40\":\"40%\",\"opacity-60\":\"60%\",\"opacity-100\":\"100%\",\"elevation-1\":\"0px 0px 2px rgba(94, 118, 138, 0.1), 0px 1px 6px 2px rgba(61, 74, 85, 0.15)\",\"elevation-2\":\"0px 1px 3px rgba(94, 118, 138, 0.2), 0px 4px 8px 3px rgba(61, 74, 85, 0.15)\",\"elevation-3\":\"0px 0px 4px rgba(94, 118, 138, 0.2), 0px 6px 12px 6px rgba(61, 74, 85, 0.15)\",\"elevation-4\":\"0px 5px 6px 4px rgba(94, 118, 138, 0.2), 0px 8px 10px rgba(61, 74, 85, 0.1)\",\"glow-primary\":\"0.0px 0.0px 4.0px 0px rgb(3, 124, 94, .5)\",\"glow-warning\":\"0.0px 0.0px 4.0px 0px rgba(255, 206, 79, 1.0)\",\"spacing-1\":\"4px\",\"spacing-2\":\"8px\",\"spacing-3\":\"12px\",\"spacing-4\":\"16px\",\"spacing-5\":\"20px\",\"spacing-6\":\"24px\",\"spacing-8\":\"32px\",\"spacing-10\":\"40px\",\"spacing-12\":\"48px\",\"spacing-14\":\"56px\",\"spacing-16\":\"64px\",\"spacing-20\":\"80px\",\"spacing-30\":\"120px\",\"spacing-0-5\":\"2px\",\"platform-font-default\":\"'Manrope', sans-serif\",\"platform-font-title\":\"'PlusJakartaSans', 'Manrope', sans-serif\"};\n","\"use strict\";var r=require(\"./themes.js\");function t(r,t){return r.filter((function(r){return r.startsWith(t)}))}function o(r,t){return r.filter((function(r){return!r.startsWith(t)}))}var e=o(o(Object.keys(r.LoadsmartTheme),\"brand-\"),\"platform-\"),n=t(e,\"color-background-\"),a=t(e,\"border-radius-\"),s=t(e,\"border-\"),c=t(e,\"color-\"),O=t(e,\"elevation-\"),i=t(e,\"font-family-\"),l=t(e,\"font-size-\"),T=t(e,\"font-weight-\"),p=t(e,\"global-\"),E=t(e,\"glow-\"),N=t(e,\"line-height-\"),u=t(e,\"opacity-\"),S=t(e,\"spacing-\"),_=function(r,t,o){if(o||2===arguments.length)for(var e,n=0,a=t.length;n<a;n++)!e&&n in t||(e||(e=Array.prototype.slice.call(t,0,n)),e[n]=t[n]);return r.concat(e||Array.prototype.slice.call(t))}([\"none\"],S,!0);function x(t){return r.LoadsmartTheme[t]}function f(r){var t=x(r);return null==t?t:\"--m-\".concat(r)}exports.BACKGROUND_COLOR_TOKENS=n,exports.BORDER_RADIUS_TOKENS=a,exports.BORDER_TOKENS=s,exports.BORDER_WIDTH_TOKENS=[\"border-none\",\"border-thin\",\"border-medium\",\"border-thick\"],exports.COLOR_TOKENS=c,exports.ELEVATION_TOKENS=O,exports.FONT_FAMILY_TOKENS=i,exports.FONT_SIZE_TOKENS=l,exports.FONT_WEIGHT_TOKENS=T,exports.GLOBAL_TOKENS=p,exports.GLOW_TOKENS=E,exports.LINE_HEIGHT_TOKENS=N,exports.OPACITY_TOKENS=u,exports.SPACING_TOKENS=S,exports.SPACING_TOKENS_WITH_NONE=_,exports.TOKENS=e,exports.getToken=x,exports.toCSSValue=function(r,t){var o=x(r);return null==o?\"\":r.startsWith(\"color-\")?\"rgba(var(\".concat(f(r),\", \").concat(o,\"), \").concat(null!=t?t:1,\")\"):\"var(\".concat(f(r),\", \").concat(o,\")\")},exports.toCSSVariable=f;\n","import { unsafeCSS } from 'lit';\nimport type { CSSResult } from 'lit';\n\nimport { toCSSValue } from '@loadsmart/miranda-tokens';\nimport type {\n\tBorderToken,\n\tElevationToken,\n\tFontFamilyToken,\n\tFontSizeToken,\n\tFontWeightToken,\n\tGlowToken,\n\tLineHeightToken,\n\tOpacityToken,\n\tSpacingToken,\n\tGlobalToken,\n} from '@loadsmart/miranda-tokens';\n\ntype NonColorToken =\n\t| BorderToken\n\t| ElevationToken\n\t| FontFamilyToken\n\t| FontSizeToken\n\t| FontWeightToken\n\t| GlowToken\n\t| LineHeightToken\n\t| OpacityToken\n\t| SpacingToken\n\t| GlobalToken;\n\n/**\n * Get token as lit's `CSSResult`\n * @param {NonColorToken} token - Miranda token\n * @returns {CSSResult}\n */\nfunction getToken(token: NonColorToken): CSSResult {\n\treturn unsafeCSS(toCSSValue(token));\n}\n\nexport default getToken;\n","import { unsafeCSS } from 'lit';\nimport type { CSSResult } from 'lit';\nimport { toCSSValue } from '@loadsmart/miranda-tokens';\nimport type { ColorToken } from '@loadsmart/miranda-tokens';\n\n/**\n * Get color token as lit's `CSSResult`\n * @param {ColorToken} token - Color token\n * @param {number} [alpha] - opacity\n * @returns {CSSResult}\n */\nfunction getColor(token: ColorToken, alpha = 1): CSSResult {\n\treturn unsafeCSS(toCSSValue(token, alpha));\n}\n\nexport default getColor;\n","\"use strict\";module.exports=function(r){return null==r?[]:Array.isArray(r)?r:[r]};\n","import { unsafeCSS } from 'lit';\nimport type { CSSResult } from 'lit';\n\nexport type MarginValue = string | number | CSSResult;\n\n/**\n * Apply right margin.\n * @param {MarginValue} margin\n */\nexport function mr(margin: MarginValue) {\n\treturn unsafeCSS(`\n\t\tmargin-inline-end: ${margin}\n\t`);\n}\n\n/**\n * Apply left margin.\n * @param {MarginValue} margin\n */\nexport function ml(margin: MarginValue) {\n\treturn unsafeCSS(`\n\t\tmargin-inline-start: ${margin}\n\t`);\n}\n\n/**\n * Apply right/left margins.\n * @param {MarginValue} margin\n */\nexport function mx(margin: MarginValue) {\n\treturn unsafeCSS(`\n\t\t${ml(margin)};\n\t\t${mr(margin)}\n\t`);\n}\n\n/**\n * Apply top margin.\n * @param {MarginValue} margin\n */\nexport function mt(margin: MarginValue) {\n\treturn unsafeCSS(`\n\t\tmargin-block-start: ${margin}\n\t`);\n}\n\n/**\n * Apply bottom margin.\n * @param {MarginValue} margin\n */\nexport function mb(margin: MarginValue) {\n\treturn unsafeCSS(`\n\t\tmargin-block-end: ${margin}\n\t`);\n}\n\n/**\n * Apply top/bottom margins.\n * @param {MarginValue} margin\n */\nexport function my(margin: MarginValue) {\n\treturn unsafeCSS(`\n\t\t${mt(margin)};\n\t\t${mb(margin)}\n\t`);\n}\n\n/**\n * Apply right/left/top/bottom margins.\n * @param {MarginValue} margin\n */\nfunction m(margin: MarginValue) {\n\treturn unsafeCSS(`\n\t\t${mx(margin)};\n\t\t${my(margin)}\n\t`);\n}\n\nexport default m;\n","import { unsafeCSS } from 'lit';\nimport type { CSSResult } from 'lit';\n\nexport type PaddingValue = string | number | CSSResult;\n\n/**\n * Apply right padding.\n * @param {string | number} padding\n */\nexport function pr(padding: PaddingValue) {\n\treturn unsafeCSS(`\n\t\tpadding-inline-start: ${padding}\n\t`);\n}\n\n/**\n * Apply left padding.\n * @param {string | number} padding\n */\nexport function pl(padding: PaddingValue) {\n\treturn unsafeCSS(`\n\t\tpadding-inline-end: ${padding}\n\t`);\n}\n\n/**\n * Apply right/left paddings.\n * @param {string | number} padding\n */\nexport function px(padding: PaddingValue) {\n\treturn unsafeCSS(`\n\t\t${pl(padding)};\n\t\t${pr(padding)}\n\t`);\n}\n\n/**\n * Apply top padding.\n * @param {string | number} padding\n */\nexport function pt(padding: PaddingValue) {\n\treturn unsafeCSS(`\n\t\tpadding-block-start: ${padding}\n\t`);\n}\n\n/**\n * Apply bottom padding.\n * @param {string | number} padding\n */\nexport function pb(padding: PaddingValue) {\n\treturn unsafeCSS(`\n\t\tpadding-block-end: ${padding}\n\t`);\n}\n\n/**\n * Apply top/bottom paddings.\n * @param {string | number} padding\n */\nexport function py(padding: PaddingValue) {\n\treturn unsafeCSS(`\n\t\t${pt(padding)};\n\t\t${pb(padding)}\n\t`);\n}\n\n/**\n * Apply right/left/top/bottom paddings.\n * @param {string | number} padding\n */\nfunction p(padding: PaddingValue) {\n\treturn unsafeCSS(`\n\t\t${px(padding)};\n\t\t${py(padding)}\n\t`);\n}\n\nexport default p;\n","import { unsafeCSS } from 'lit';\nimport type { CSSResult } from 'lit';\n\nimport toArray from '@loadsmart/miranda-toolset/dist/to-array';\n\nexport type TransitionConfig = {\n\tdelay?: string;\n\tduration?: string;\n\tproperty?: string;\n\t/**\n\t * Timing function:\n\t */\n\teasing?: string;\n};\n\n/** @type {TransitionConfig} */\nconst DEFAULT_TRANSITION_CONFIG: TransitionConfig = {\n\tproperty: 'all',\n\tdelay: '0s',\n\tduration: '0.35s',\n\teasing: 'ease-in-out',\n};\n\n/**\n * @param {TransitionConfig} config\n */\nfunction toTransition(config: TransitionConfig): CSSResult {\n\tconst safeConfig = { ...DEFAULT_TRANSITION_CONFIG, ...config };\n\n\t// property name | duration | easing function | delay\n\treturn unsafeCSS(\n\t\t`${safeConfig.property} ${safeConfig.duration} ${safeConfig.easing} ${safeConfig.delay}`,\n\t);\n}\n\n/**\n * Convert a transition config to its CSS equivalent.\n * @param {TransitionConfig | TransitionConfig[]} configs\n */\nfunction transition(configs: TransitionConfig | TransitionConfig[]): CSSResult {\n\tconst transitionStyle = toArray(configs)\n\t\t.map((config) => toTransition(config))\n\t\t.join(', ');\n\n\treturn unsafeCSS(`\n\t\ttransition: ${transitionStyle}\n\t`);\n}\n\nexport default transition;\n","import { unsafeCSS } from 'lit';\nimport type { CSSResult } from 'lit';\n\nimport token from '../utils/get-token';\n\nexport type TypographyVariant =\n\t| 'body-lg-bold'\n\t| 'body-lg'\n\t| 'body-md-bold-underline'\n\t| 'body-md-bold'\n\t| 'body-md-underline'\n\t| 'body-md'\n\t| 'body-sm-bold-underline'\n\t| 'body-sm-bold'\n\t| 'body-sm-underline'\n\t| 'body-sm'\n\t| 'button-lg'\n\t| 'button-md'\n\t| 'button-sm'\n\t| 'chips-md'\n\t| 'chips-sm'\n\t| 'heading-lg-bold'\n\t| 'heading-lg'\n\t| 'heading-md-bold'\n\t| 'heading-md'\n\t| 'heading-sm-bold'\n\t| 'heading-sm'\n\t| 'hero-lg-bold'\n\t| 'hero-lg'\n\t| 'hero-md-bold'\n\t| 'hero-md'\n\t| 'hero-sm-bold'\n\t| 'hero-sm'\n\t| 'number-md'\n\t| 'number-sm'\n\t| 'table-header-md'\n\t| 'table-header-sm';\n\n/**\n * Apply set of tokens for a given typography `variant`.\n * @param {TypographyVariant} [variant]\n * @returns {String}\n */\nfunction getVariant(variant?: TypographyVariant): string {\n\tswitch (variant) {\n\t\tcase 'hero-lg-bold':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-title')};\n\t\t\t\tline-height: ${token('line-height-6')};\n\t\t\t\tfont-size: ${token('font-size-9')};\n\t\t\t\tfont-weight: ${token('font-weight-bold')}\n\t\t\t`;\n\t\tcase 'hero-lg':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-title')};\n\t\t\t\tline-height: ${token('line-height-6')};\n\t\t\t\tfont-size: ${token('font-size-9')};\n\t\t\t\tfont-weight: ${token('font-weight-regular')}\n\t\t\t`;\n\t\tcase 'hero-md-bold':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-title')};\n\t\t\t\tline-height: ${token('line-height-6')};\n\t\t\t\tfont-size: ${token('font-size-8')};\n\t\t\t\tfont-weight: ${token('font-weight-bold')}\n\t\t\t`;\n\t\tcase 'hero-md':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-title')};\n\t\t\t\tline-height: ${token('line-height-6')};\n\t\t\t\tfont-size: ${token('font-size-8')};\n\t\t\t\tfont-weight: ${token('font-weight-regular')}\n\t\t\t`;\n\t\tcase 'hero-sm-bold':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-title')};\n\t\t\t\tline-height: ${token('line-height-6')};\n\t\t\t\tfont-size: ${token('font-size-7')};\n\t\t\t\tfont-weight: ${token('font-weight-bold')}\n\t\t\t`;\n\t\tcase 'hero-sm':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-title')};\n\t\t\t\tline-height: ${token('line-height-6')};\n\t\t\t\tfont-size: ${token('font-size-7')};\n\t\t\t\tfont-weight: ${token('font-weight-regular')}\n\t\t\t`;\n\n\t\tcase 'heading-lg-bold':\n\t\t\treturn `\n\t\t\t\t\tfont-family: ${token('font-family-title')};\n\t\t\t\t\tline-height: ${token('line-height-5')};\n\t\t\t\t\tfont-size: ${token('font-size-6')};\n\t\t\t\t\tfont-weight: ${token('font-weight-bold')}\n\t\t\t\t`;\n\t\tcase 'heading-lg':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-title')};\n\t\t\t\tline-height: ${token('line-height-5')};\n\t\t\t\tfont-size: ${token('font-size-6')};\n\t\t\t\tfont-weight: ${token('font-weight-regular')}\n\t\t\t`;\n\n\t\tcase 'heading-md-bold':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-title')};\n\t\t\t\tline-height: ${token('line-height-5')};\n\t\t\t\tfont-size: ${token('font-size-5')};\n\t\t\t\tfont-weight: ${token('font-weight-bold')}\n\t\t\t`;\n\n\t\tcase 'heading-md':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-title')};\n\t\t\t\tline-height: ${token('line-height-5')};\n\t\t\t\tfont-size: ${token('font-size-5')};\n\t\t\t\tfont-weight: ${token('font-weight-regular')}\n\t\t\t`;\n\n\t\tcase 'heading-sm-bold':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-title')};\n\t\t\t\tline-height: ${token('line-height-5')};\n\t\t\t\tfont-size: ${token('font-size-4')};\n\t\t\t\tfont-weight: ${token('font-weight-bold')}\n\t\t\t`;\n\n\t\tcase 'heading-sm':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-title')};\n\t\t\t\tline-height: ${token('line-height-5')};\n\t\t\t\tfont-size: ${token('font-size-4')};\n\t\t\t\tfont-weight: ${token('font-weight-regular')}\n\t\t\t`;\n\t\tcase 'body-lg-bold':\n\t\t\treturn `\n\t\t\t\t\tfont-family: ${token('font-family-default')};\n\t\t\t\t\tline-height: ${token('line-height-6')};\n\t\t\t\t\tfont-size: ${token('font-size-5')};\n\t\t\t\t\tfont-weight: ${token('font-weight-bold')}\n\t\t\t\t`;\n\n\t\tcase 'body-lg':\n\t\t\treturn `\n\t\t\t\t\tfont-family: ${token('font-family-default')};\n\t\t\t\t\tline-height: ${token('line-height-6')};\n\t\t\t\t\tfont-size: ${token('font-size-5')};\n\t\t\t\t\tfont-weight: ${token('font-weight-regular')}\n\t\t\t\t`;\n\n\t\tcase 'body-md':\n\t\tcase 'number-md':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-default')};\n\t\t\t\tline-height: ${token('line-height-5')};\n\t\t\t\tfont-size: ${token('font-size-3')};\n\t\t\t\tfont-weight: ${token('font-weight-regular')}\n\t\t\t`;\n\n\t\tcase 'body-md-underline':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-default')};\n\t\t\t\tline-height: ${token('line-height-5')};\n\t\t\t\tfont-size: ${token('font-size-3')};\n\t\t\t\tfont-weight: ${token('font-weight-regular')};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;\n\n\t\tcase 'body-md-bold':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-default')};\n\t\t\t\tline-height: ${token('line-height-5')};\n\t\t\t\tfont-size: ${token('font-size-3')};\n\t\t\t\tfont-weight: ${token('font-weight-bold')}\n\t\t\t`;\n\n\t\tcase 'body-md-bold-underline':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-default')};\n\t\t\t\tline-height: ${token('line-height-5')};\n\t\t\t\tfont-size: ${token('font-size-3')};\n\t\t\t\tfont-weight: ${token('font-weight-bold')};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;\n\n\t\tcase 'body-sm':\n\t\tcase 'number-sm':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-default')};\n\t\t\t\tline-height: ${token('line-height-4')};\n\t\t\t\tfont-size: ${token('font-size-2')};\n\t\t\t\tfont-weight: ${token('font-weight-regular')}\n\t\t\t`;\n\n\t\tcase 'body-sm-underline':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-default')};\n\t\t\t\tline-height: ${token('line-height-4')};\n\t\t\t\tfont-size: ${token('font-size-2')};\n\t\t\t\tfont-weight: ${token('font-weight-regular')};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;\n\n\t\tcase 'body-sm-bold':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-default')};\n\t\t\t\tline-height: ${token('line-height-4')};\n\t\t\t\tfont-size: ${token('font-size-2')};\n\t\t\t\tfont-weight: ${token('font-weight-bold')}\n\t\t\t`;\n\n\t\tcase 'body-sm-bold-underline':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-default')};\n\t\t\t\tline-height: ${token('line-height-4')};\n\t\t\t\tfont-size: ${token('font-size-2')};\n\t\t\t\tfont-weight: ${token('font-weight-bold')};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;\n\n\t\tcase 'button-lg':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-default')};\n\t\t\t\tline-height: ${token('line-height-1')};\n\t\t\t\tfont-size: ${token('font-size-4')};\n\t\t\t\tfont-weight: ${token('font-weight-bold')}\n\t\t\t`;\n\n\t\tcase 'button-md':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-default')};\n\t\t\t\tline-height: ${token('line-height-1')};\n\t\t\t\tfont-size: ${token('font-size-3')};\n\t\t\t\tfont-weight: ${token('font-weight-bold')}\n\t\t\t`;\n\n\t\tcase 'button-sm':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-default')};\n\t\t\t\tline-height: ${token('line-height-1')};\n\t\t\t\tfont-size: ${token('font-size-2')};\n\t\t\t\tfont-weight: ${token('font-weight-bold')}\n\t\t\t`;\n\n\t\tcase 'table-header-md':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-default')};\n\t\t\t\tline-height: ${token('line-height-1')};\n\t\t\t\tfont-size: ${token('font-size-3')};\n\t\t\t\tfont-weight: ${token('font-weight-medium')};\n\t\t\t\ttext-transform: uppercase\n\t\t\t`;\n\n\t\tcase 'table-header-sm':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-default')};\n\t\t\t\tline-height: ${token('line-height-1')};\n\t\t\t\tfont-size: ${token('font-size-2')};\n\t\t\t\tfont-weight: ${token('font-weight-medium')}\n\t\t\t`;\n\n\t\tcase 'chips-md':\n\t\t\treturn `\n\t\t\t\t\tfont-family: ${token('font-family-default')};\n\t\t\t\t\tline-height: ${token('line-height-1')};\n\t\t\t\t\tfont-size: ${token('font-size-2')};\n\t\t\t\t\tfont-weight: ${token('font-weight-bold')}\n\t\t\t\t`;\n\n\t\tcase 'chips-sm':\n\t\t\treturn `\n\t\t\t\tfont-family: ${token('font-family-default')};\n\t\t\t\tline-height: ${token('line-height-1')};\n\t\t\t\tfont-size: ${token('font-size-1')};\n\t\t\t\tfont-weight: ${token('font-weight-medium')};\n\t\t\t\ttext-transform: uppercase\n\t\t\t`;\n\n\t\tdefault:\n\t\t\treturn '';\n\t}\n}\n\n/**\n * Apply set of tokens for a given typography `variant`.\n * @param {TypographyVariant} [variant]\n * @returns {CSSResult}\n */\nfunction typography(variant?: TypographyVariant): CSSResult {\n\tconst defaultStyle = unsafeCSS(`\n\t\tfont-style: normal;\n\t\tfont-stretch: normal;\n\t\tletter-spacing: normal;\n\n\t\tfont-synthesis: none;\n\t\ttext-rendering: optimizeLegibility;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\t-webkit-text-size-adjust: 100%;\n\t`);\n\n\treturn unsafeCSS(`${defaultStyle}\\n${getVariant(variant)}`);\n}\n\nexport default typography;\n","import { unsafeCSS } from 'lit';\nimport type { CSSResult } from 'lit';\nimport toArray from '@loadsmart/miranda-toolset/dist/to-array';\n\n/**\n * Apply standard disabled style selector.\n * @param {string | string[]} selectors\n * @param {string} [subselector]\n */\nfunction disableable(\n\tselectors: string | string[],\n\tsubselector = '',\n): CSSResult {\n\treturn unsafeCSS(\n\t\ttoArray(selectors)\n\t\t\t.map((selector) =>\n\t\t\t\t[`${selector}.is-disabled`, `${selector}:disabled`]\n\t\t\t\t\t.map((rule) => [rule, subselector].join(' '))\n\t\t\t\t\t.join(', '),\n\t\t\t)\n\t\t\t.join(', '),\n\t);\n}\n\nexport default disableable;\n","import active from './activable';\nimport focus from './focusable';\nimport hover from './hoverable';\n\nexport { default as m, mr, ml, mx, mt, mb, my } from './margin';\nexport { default as p, pr, pl, px, pt, pb, py } from './padding';\nexport { default as transition } from './transition';\nexport { default as typography } from './typography';\n\nexport { default as disabled } from './disableable';\n\nexport const on = { active, focus, hover };\n","import { unsafeCSS } from 'lit';\nimport type { CSSResult } from 'lit';\nimport toArray from '@loadsmart/miranda-toolset/dist/to-array';\n\n/**\n * Apply standard active style selector.\n * @param {string | string[]} selectors\n */\nfunction activable(selectors: string | string[]): CSSResult {\n\treturn unsafeCSS(\n\t\ttoArray(selectors)\n\t\t\t.map((selector) => `${selector}:not(.is-disabled, :disabled):active`)\n\t\t\t.join(', '),\n\t);\n}\n\nexport default activable;\n","import { unsafeCSS } from 'lit';\nimport type { CSSResult } from 'lit';\nimport toArray from '@loadsmart/miranda-toolset/dist/to-array';\n\n/**\n * Apply standard focus style.\n * @param {string | string[]} selectors\n */\nfunction focusable(selectors: string | string[]): CSSResult {\n\treturn unsafeCSS(\n\t\ttoArray(selectors)\n\t\t\t.map(\n\t\t\t\t(selector) =>\n\t\t\t\t\t`${selector}:not(.is-disabled, :disabled):focus,\n\t\t\t\t\t${selector}:not(.is-disabled, :disabled):focus-visible,\n\t\t\t\t${selector}:not(.is-disabled, :disabled):focus-within,\n\t\t\t\t${selector}:not(.is-disabled, :disabled).is-focused`,\n\t\t\t)\n\t\t\t.join(', '),\n\t);\n}\n\nexport default focusable;\n","import { unsafeCSS } from 'lit';\nimport type { CSSResult } from 'lit';\nimport toArray from '@loadsmart/miranda-toolset/dist/to-array';\n\n/**\n * Apply standard hover style selector.\n * @param {string | string[]} selectors\n */\nfunction hoverable(selectors: string | string[]): CSSResult {\n\treturn unsafeCSS(\n\t\ttoArray(selectors)\n\t\t\t.map((selector) => `${selector}:not(.is-disabled, :disabled):hover`)\n\t\t\t.join(', '),\n\t);\n}\n\nexport default hoverable;\n","import { css } from 'lit';\n\nimport token from '../../utils/get-token';\nimport color from '../../utils/get-color-token';\nimport { disabled, m, on, p, transition, typography } from '../../styles';\n\nfunction styles() {\n\treturn css`\n\t\t:host {\n\t\t\t--m-button-background-color: transparent;\n\t\t\t--m-button-base-size: ${token('global-height-default')};\n\t\t\t--m-button-border-color: ${color('color-neutral-90')};\n\t\t\t--m-button-border-radius: ${token('border-radius-s')};\n\t\t\t--m-button-color: ${color('color-text-secondary')};\n\t\t\t--m-button-outline-color: ${color('color-primary-100')};\n\t\t\t--m-button-outline-offset: 2px;\n\t\t\t--m-button-padding-x: ${token('spacing-4')};\n\t\t\t--m-button-padding-y: ${token('spacing-3')};\n\t\t\t/**\n\t\t\t * Useful when overriding via host :slotted query.\n\t\t\t */\n\t\t\t--m-button-font-size: ${token('font-size-3')};\n\t\t}\n\n\t\t:host([size='small']) {\n\t\t\t--m-button-base-size: ${token('global-height-small')};\n\t\t}\n\n\t\t:host([size='large']) {\n\t\t\t--m-button-base-size: ${token('global-height-large')};\n\t\t}\n\n\t\t:host([variant|='icon']) {\n\t\t\t--m-button-border-radius: ${token('border-radius-circle')};\n\n\t\t\tmin-inline-size: var(--m-button-base-size);\n\t\t\tinline-size: var(--m-button-base-size);\n\t\t}\n\n\t\t:host {\n\t\t\tdisplay: inline-block;\n\t\t\tmin-block-size: var(--m-button-base-size);\n\t\t\tblock-size: var(--m-button-base-size);\n\t\t\tborder-radius: var(--m-button-border-radius);\n\t\t}\n\n\t\t.button {\n\t\t\t${transition([\n\t\t\t\t{ property: 'color' },\n\t\t\t\t{ property: 'background-color' },\n\t\t\t\t{ property: 'border-color' },\n\t\t\t])};\n\n\t\t\t${typography('button-md')};\n\t\t\tfont-size: var(--m-button-font-size);\n\n\t\t\tcursor: pointer;\n\t\t\tposition: relative;\n\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\toverflow: hidden;\n\n\t\t\tblock-size: 100%;\n\t\t\tinline-size: 100%;\n\t\t\tbox-sizing: border-box;\n\n\t\t\ttext-decoration: none;\n\n\t\t\tgap: ${token('spacing-1')};\n\n\t\t\tpadding-inline: var(--m-button-padding-x);\n\t\t\tpadding-block: var(--m-button-padding-y);\n\n\t\t\tbackground-color: var(--m-button-background-color);\n\t\t\tcolor: var(--m-button-color);\n\t\t\tborder: 1px solid var(--m-button-border-color);\n\n\t\t\tborder-radius: var(--m-button-border-radius);\n\t\t}\n\n\t\t${disabled('.button')} {\n\t\t\tcursor: default;\n\t\t}\n\n\t\t${disabled('.button', '*')} {\n\t\t\tpointer-events: none;\n\t\t}\n\n\t\t${on.focus('.button')} {\n\t\t\toutline: 1px solid var(--m-button-outline-color);\n\t\t\toutline-offset: var(--m-button-outline-offset);\n\t\t}\n\n\t\t${on.hover('.button')} {\n\t\t\t--m-button-background-color: ${color('color-background-inverted')};\n\t\t\t--m-button-border-color: ${color('color-background-inverted')};\n\t\t\t--m-button-color: ${color('color-text-inverted')};\n\t\t}\n\n\t\t::slotted(*) {\n\t\t\tdisplay: inline-flex;\n\t\t\talign-items: center;\n\n\t\t\t${p(0)};\n\t\t\t${m(0)};\n\t\t}\n\n\t\tslot[name='leading']::slotted(span),\n\t\tslot[name='trailing']::slotted(span) {\n\t\t\tjustify-content: center;\n\t\t}\n\t`;\n}\n\nexport default styles;\n","/* eslint-disable lit/binding-positions, lit/no-invalid-html */\nimport { html } from 'lit/static-html.js';\nimport { nothing } from 'lit';\nimport type { PropertyValues } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { classMap } from 'lit/directives/class-map.js';\n\nimport { PolymorphicTagMixin } from '../../mixins/polymorphic-tag';\nimport { FormControl } from '../form-control';\nimport styles from './button.styles';\n\nexport type ButtonVariant =\n\t| 'primary'\n\t| 'secondary'\n\t| 'tertiary'\n\t| 'warning'\n\t| 'danger'\n\t| 'icon'\n\t| 'icon-secondary';\n\nexport type ButtonSize = 'small' | 'default' | 'large';\n\nexport type ButtonType = 'button' | 'reset' | 'submit';\n\ntype ButtonTarget = '_blank' | '_parent' | '_self' | '_top';\n\nexport interface ButtonProps {\n\tdisabled?: boolean;\n\tform?: string;\n\tloading?: boolean;\n\tsize?: ButtonSize;\n\ttype: ButtonType;\n\tvariant: ButtonVariant;\n\thref?: string;\n\tdownload?: string;\n\ttabindex?: string;\n\ttarget?: ButtonTarget;\n}\n\nexport class Button extends PolymorphicTagMixin(\n\tFormControl,\n\t['button', 'a'],\n\t'button',\n) {\n\tstatic override styles = [styles()];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\t...FormControl.properties,\n\t\t\trole: { type: String, reflect: true },\n\t\t\tloading: { type: Boolean, reflect: true },\n\t\t\tdisabled: { type: Boolean, reflect: true },\n\t\t\tvariant: { type: String, reflect: true },\n\t\t\tsize: { type: String, reflect: true },\n\t\t\ttabindex: { type: String },\n\t\t\ttype: { type: String },\n\t\t\t// anchor attributes\n\t\t\thref: { type: String },\n\t\t\ttarget: { type: String },\n\t\t\tdownload: { type: String },\n\t\t};\n\t}\n\n\t/**\n\t * The button is waiting for some operation to be finished.\n\t */\n\tdeclare loading: ButtonProps['loading'];\n\n\t/**\n\t * Should the button be disabled.\n\t */\n\tdeclare disabled: ButtonProps['disabled'];\n\n\t/**\n\t * Button variant.\n\t */\n\tdeclare variant: ButtonProps['variant'];\n\n\t/**\n\t * Button size.\n\t */\n\tdeclare size: ButtonProps['size'];\n\n\t/**\n\t * Allow making HTML elements focusable, allow or prevent them from being sequentially\n\t * focusable (usually with the Tab key, hence the name) and determine their relative ordering\n\t * for sequential focus navigation\n\t */\n\tdeclare tabindex: ButtonProps['tabindex'];\n\n\t/**\n\t * Specifies the type of button.\n\t */\n\tdeclare type: ButtonProps['type'];\n\n\t/**\n\t * When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`.\n\t */\n\tdeclare href: ButtonProps['href'];\n\n\t/**\n\t * Tell the browser where to open the link. Only used when `href` is set.\n\t * */\n\tdeclare target: ButtonProps['target'];\n\n\t/**\n\t * Causes the browser to treat the linked URL as a download. Only used when `href` is set.\n\t */\n\tdeclare download: ButtonProps['download'];\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.as = 'button';\n\t\tthis.disabled = false;\n\t\tthis.loading = false;\n\t\tthis.size = 'default';\n\t\tthis.type = 'button';\n\t\tthis.variant = 'secondary';\n\n\t\tthis.target = '_self';\n\t}\n\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback();\n\n\t\tthis.setAttribute('role', 'button');\n\t\tthis.addEventListener('click', this.#handleClick);\n\t}\n\n\toverride disconnectedCallback(): void {\n\t\tsuper.disconnectedCallback();\n\n\t\tthis.removeEventListener('click', this.#handleClick);\n\t}\n\n\tprotected override update(changedProperties: PropertyValues<this>): void {\n\t\tsuper.update(changedProperties);\n\n\t\tif (changedProperties.has('href')) {\n\t\t\tthis.as = this.#isLink() ? 'a' : 'button';\n\t\t\tthis.role = this.#isLink() ? 'link' : 'button';\n\t\t}\n\t}\n\n\tprotected override updated(changedProperties: PropertyValues<this>): void {\n\t\tsuper.updated(changedProperties);\n\n\t\tif (changedProperties.has('disabled') || changedProperties.has('loading')) {\n\t\t\tthis.#setDisabled();\n\t\t}\n\t}\n\n\toverride render() {\n\t\tconst isLink = this.#isLink();\n\n\t\treturn html`\n\t\t\t<${this.tag}\n\t\t\t\tclass=${classMap({\n\t\t\t\t\tbutton: true,\n\n\t\t\t\t\t'-primary': this.variant === 'primary',\n\t\t\t\t\t'-secondary': this.variant === 'secondary',\n\t\t\t\t\t'-tertiary': this.variant === 'tertiary',\n\t\t\t\t\t'-warning': this.variant === 'warning',\n\t\t\t\t\t'-danger': this.variant === 'danger',\n\t\t\t\t\t'-icon': this.variant === 'icon',\n\t\t\t\t\t'-icon-secondary': this.variant === 'icon-secondary',\n\n\t\t\t\t\t'-small': this.size === 'small',\n\t\t\t\t\t'-default': this.size === 'default',\n\t\t\t\t\t'-large': this.size === 'large',\n\n\t\t\t\t\t'is-loading': Boolean(this.loading),\n\t\t\t\t\t'is-disabled': this.#isDisabled(),\n\t\t\t\t})}\n\t\t\t\ttype=${ifDefined(isLink ? undefined : this.type)}\n\t\t\t\t?disabled=\"${this.#isDisabled()}\"\n\t\t\t\taria-disabled=${this.disabled ? 'true' : 'false'}\n\t\t\t\trole=${ifDefined(isLink ? 'link' : 'button')}\n\t\t\t\ttabindex=${ifDefined(this.#getTabIndex())}\n\t\t\t\thref=${ifDefined(isLink ? this.href : undefined)}\n\t\t\t\ttarget=${ifDefined(isLink ? this.target : undefined)}\n\t\t\t\tdownload=${ifDefined(isLink ? this.download : undefined)}\n\t\t\t\trel=${ifDefined(isLink && this.target ? 'noreferrer noopener' : undefined)}\n\t\t\t>\n\t\t\t\t<!-- TODO: Replace this with the loading dots component as soon as it is ready. -->\n\t\t\t\t${\n\t\t\t\t\tthis.loading && !['icon', 'icon-secondary'].includes(this.variant)\n\t\t\t\t\t\t? html`<span class=\"loader\">●●●</span>`\n\t\t\t\t\t\t: nothing\n\t\t\t\t}\n\t\t\t\t<slot name=\"leading\"></slot>\n\t\t\t\t<slot></slot>\n\t\t\t\t<slot name=\"trailing\"></slot>\n\t\t\t</${this.tag}>\n\t\t`;\n\t}\n\n\toverride focus(options?: FocusOptions | undefined): void {\n\t\tthis.#element?.focus(options);\n\t}\n\n\tget #element(): HTMLElement | null {\n\t\treturn this.renderRoot?.querySelector('.button') ?? null;\n\t}\n\n\t#isDisabled = () => {\n\t\treturn Boolean(this.disabled) || Boolean(this.loading);\n\t};\n\n\t#setDisabled = () => {\n\t\tconst disabled = this.#isDisabled();\n\n\t\tthis.setAttribute('aria-disabled', String(disabled));\n\t};\n\n\t#getTabIndex = () => {\n\t\tif (this.#isLink()) {\n\t\t\tif (this.disabled) {\n\t\t\t\treturn '-1';\n\t\t\t}\n\n\t\t\tif (this.tabindex != null) {\n\t\t\t\treturn this.tabindex;\n\t\t\t}\n\n\t\t\treturn '0';\n\t\t}\n\n\t\treturn this.tabindex ?? undefined;\n\t};\n\n\t#handleClick = (event: MouseEvent) => {\n\t\tif (this.disabled || this.loading) {\n\t\t\tevent.preventDefault();\n\t\t\tevent.stopPropagation();\n\t\t\treturn;\n\t\t}\n\n\t\t/**\n\t\t * https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/submit\n\t\t */\n\t\tif (this.type === 'submit') {\n\t\t\tthis.getForm()?.requestSubmit();\n\t\t}\n\n\t\tif (this.type === 'reset') {\n\t\t\tthis.getForm()?.reset();\n\t\t}\n\t};\n\n\t#isLink() {\n\t\treturn Boolean(this.href);\n\t}\n}\n\nwindow.customElements.define('m-button', Button);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-button': Button;\n\t}\n}\n","import { css } from 'lit';\n\nimport token from '../../utils/get-token';\nimport color from '../../utils/get-color-token';\nimport { disabled, on, typography } from '../../styles';\nimport baseStyles from './base-button.styles';\n\nfunction styles() {\n\treturn [\n\t\tbaseStyles(),\n\t\tcss`\n\t\t\t.button.is-loading:not(.-icon, .-icon-secondary) *:not(.loader) {\n\t\t\t\tvisibility: hidden;\n\t\t\t}\n\n\t\t\t.button.-primary {\n\t\t\t\t--m-button-background-color: ${color('color-primary-60')};\n\t\t\t\t--m-button-border-color: ${color('color-primary-60')};\n\t\t\t\t--m-button-color: ${color('color-text-inverted')};\n\t\t\t}\n\n\t\t\t${disabled('.button.-primary')} {\n\t\t\t\t--m-button-background-color: ${color('color-primary-20')};\n\t\t\t\t--m-button-border-color: ${color('color-primary-20')};\n\t\t\t}\n\n\t\t\t${on.focus('.button.-primary')} {\n\t\t\t\t--m-button-border-color: ${color('color-primary-60')};\n\t\t\t\t--m-button-outline-color: ${color('color-primary-60')};\n\t\t\t}\n\n\t\t\t${on.hover('.button.-primary')},\n\t\t\t${on.active('.button.-primary')} {\n\t\t\t\t--m-button-background-color: ${color('color-primary-100')};\n\t\t\t\t--m-button-border-color: ${color('color-primary-100')};\n\t\t\t}\n\n\t\t\t.button.-primary.is-loading {\n\t\t\t\t--m-button-background-color: ${color('color-primary-60')};\n\t\t\t\t--m-button-border-color: ${color('color-primary-60')};\n\t\t\t\t--m-button-color: ${color('color-text-inverted')};\n\t\t\t}\n\n\t\t\t.button.-secondary {\n\t\t\t\t--m-button-background-color: transparent;\n\t\t\t\t--m-button-border-color: ${color('color-primary-100')};\n\t\t\t\t--m-button-color: ${color('color-primary-100')};\n\t\t\t}\n\n\t\t\t${disabled('.button.-secondary')} {\n\t\t\t\t--m-button-border-color: ${color('color-text-disabled')};\n\t\t\t\t--m-button-color: ${color('color-text-disabled')};\n\t\t\t}\n\n\t\t\t${on.focus('.button.-secondary')} {\n\t\t\t\t--m-button-border-color: ${color('color-primary-100')};\n\t\t\t\t--m-button-color: ${color('color-primary-100')};\n\n\t\t\t\t--m-button-outline-color: ${color('color-primary-60')};\n\t\t\t}\n\n\t\t\t${on.hover('.button.-secondary')},\n\t\t\t${on.active('.button.-secondary')} {\n\t\t\t\t--m-button-background-color: ${color('color-background-tertiary')};\n\t\t\t\t--m-button-border-color: ${color('color-primary-60')};\n\t\t\t\t--m-button-color: ${color('color-primary-60')};\n\t\t\t}\n\n\t\t\t.button.-secondary.is-loading {\n\t\t\t\t--m-button-background-color: transparent;\n\n\t\t\t\t--m-button-border-color: ${color('color-primary-100')};\n\t\t\t\t--m-button-color: ${color('color-primary-100')};\n\t\t\t}\n\n\t\t\t.button.-tertiary {\n\t\t\t\t--m-button-background-color: transparent;\n\t\t\t\t--m-button-border-color: transparent;\n\t\t\t\t--m-button-color: ${color('color-primary-100')};\n\t\t\t}\n\n\t\t\t${disabled('.button.-tertiary')} {\n\t\t\t\t--m-button-color: ${color('color-text-disabled')};\n\t\t\t}\n\n\t\t\t${on.focus('.button.-tertiary')} {\n\t\t\t\t--m-button-color: ${color('color-primary-100')};\n\t\t\t\t--m-button-outline-color: ${color('color-primary-60')};\n\t\t\t}\n\n\t\t\t${on.hover('.button.-tertiary')} {\n\t\t\t\t--m-button-background-color: ${color('color-background-tertiary')};\n\t\t\t\t--m-button-border-color: ${color('color-background-tertiary')};\n\t\t\t\t--m-button-color: ${color('color-primary-60')};\n\t\t\t}\n\n\t\t\t${on.active('.button.-tertiary')} {\n\t\t\t\t--m-button-background-color: ${color('color-neutral-20')};\n\t\t\t\t--m-button-border-color: ${color('color-neutral-20')};\n\t\t\t\t--m-button-color: ${color('color-primary-60')};\n\t\t\t}\n\n\t\t\t.button.-tertiary.is-loading {\n\t\t\t\t--m-button-background-color: transparent;\n\t\t\t\t--m-button-border-color: transparent;\n\t\t\t\t--m-button-color: ${color('color-primary-100')};\n\t\t\t}\n\n\t\t\t.button.-warning {\n\t\t\t\t--m-button-background-color: ${color('color-warning-60')};\n\t\t\t\t--m-button-border-color: ${color('color-warning-60')};\n\t\t\t\t--m-button-color: ${color('color-text-primary')};\n\t\t\t}\n\n\t\t\t${disabled('.button.-warning')} {\n\t\t\t\t--m-button-background-color: ${color('color-warning-20')};\n\t\t\t\t--m-button-border-color: ${color('color-warning-20')};\n\t\t\t\t--m-button-color: ${color('color-text-inverted')};\n\t\t\t}\n\n\t\t\t${on.focus('.button.-warning')} {\n\t\t\t\t--m-button-background-color: ${color('color-warning-60')};\n\t\t\t\t--m-button-outline-color: ${color('color-warning-60')};\n\t\t\t}\n\n\t\t\t${on.hover('.button.-warning')},\n\t\t\t${on.active('.button.-warning')} {\n\t\t\t\t--m-button-background-color: ${color('color-warning-100')};\n\t\t\t\t--m-button-border-color: ${color('color-warning-100')};\n\t\t\t\t--m-button-color: ${color('color-text-inverted')};\n\t\t\t}\n\n\t\t\t.button.-warning.is-loading {\n\t\t\t\t--m-button-background-color: ${color('color-warning-60')};\n\t\t\t\t--m-button-border-color: ${color('color-warning-60')};\n\t\t\t\t--m-button-color: ${color('color-text-primary')};\n\t\t\t}\n\n\t\t\t.button.-danger {\n\t\t\t\t--m-button-background-color: ${color('color-danger-60')};\n\t\t\t\t--m-button-border-color: ${color('color-danger-60')};\n\t\t\t\t--m-button-color: ${color('color-text-inverted')};\n\t\t\t}\n\n\t\t\t${disabled('.button.-danger')} {\n\t\t\t\t--m-button-background-color: ${color('color-danger-20')};\n\t\t\t\t--m-button-border-color: ${color('color-danger-20')};\n\t\t\t}\n\n\t\t\t${on.focus('.button.-danger')} {\n\t\t\t\t--m-button-background-color: ${color('color-danger-60')};\n\t\t\t\t--m-button-outline-color: ${color('color-danger-60')};\n\t\t\t}\n\n\t\t\t${on.hover('.button.-danger')},\n\t\t\t${on.active('.button.-danger')} {\n\t\t\t\t--m-button-background-color: ${color('color-danger-100')};\n\t\t\t\t--m-button-border-color: ${color('color-danger-100')};\n\t\t\t}\n\n\t\t\t.button.-danger.is-loading {\n\t\t\t\t--m-button-background-color: ${color('color-danger-60')};\n\t\t\t\t--m-button-border-color: ${color('color-danger-60')};\n\t\t\t\t--m-button-color: ${color('color-text-inverted')};\n\t\t\t}\n\n\t\t\t.button.-icon,\n\t\t\t.button.-icon-secondary {\n\t\t\t\t--m-button-color: ${color('color-neutral-90')};\n\t\t\t\t--m-button-padding-x: ${token('spacing-1')};\n\t\t\t\t--m-button-padding-y: ${token('spacing-1')};\n\t\t\t}\n\n\t\t\t.button.-icon {\n\t\t\t\t--m-button-background-color: ${color('color-background-tertiary')};\n\t\t\t\t--m-button-border-color: ${color('color-background-tertiary')};\n\t\t\t}\n\n\t\t\t.button.-icon-secondary {\n\t\t\t\t--m-button-background-color: transparent;\n\t\t\t\t--m-button-border-color: transparent;\n\t\t\t}\n\n\t\t\t.button.-icon slot[name='leading']::slotted(*),\n\t\t\t.button.-icon slot[name='trailing']::slotted(*),\n\t\t\t.button.-icon-secondary slot[name='leading']::slotted(*),\n\t\t\t.button.-icon-secondary slot[name='trailing']::slotted(*) {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\n\t\t\t${disabled(['.button.-icon', '.button.-icon-secondary'])} {\n\t\t\t\t--m-button-color: ${color('color-neutral-40')};\n\t\t\t}\n\n\t\t\t${disabled('.button.-icon')} {\n\t\t\t\t--m-button-background-color: ${color('color-neutral-20')};\n\t\t\t\t--m-button-border-color: ${color('color-neutral-20')};\n\t\t\t}\n\n\t\t\t${disabled('.button.-icon-secondary')} {\n\t\t\t\t--m-button-background-color: transparent;\n\t\t\t\t--m-button-border-color: transparent;\n\t\t\t}\n\n\t\t\t${on.focus(['.button.-icon', '.button.-icon-secondary'])} {\n\t\t\t\t--m-button-color: ${color('color-primary-60')};\n\t\t\t\t--m-button-outline-color: ${color('color-primary-60')};\n\t\t\t}\n\n\t\t\t${on.focus('.button.-icon')} {\n\t\t\t\t--m-button-background-color: ${color('color-neutral-20')};\n\t\t\t}\n\n\t\t\t${on.focus('.button.-icon-secondary')} {\n\t\t\t\t--m-button-background-color: transparent;\n\t\t\t}\n\n\t\t\t${on.hover(['.button.-icon', '.button.-icon-secondary'])},\n\t\t\t${on.active(['.button.-icon', '.button.-icon-secondary'])} {\n\t\t\t\t--m-button-color: ${color('color-primary-60')};\n\t\t\t}\n\n\t\t\t${on.hover('.button.-icon')},\n\t\t\t${on.active('.button.-icon')} {\n\t\t\t\t--m-button-background-color: ${color('color-background-highlight')};\n\t\t\t\t--m-button-border-color: ${color('color-background-highlight')};\n\t\t\t}\n\n\t\t\t${on.hover('.button.-icon-secondary')},\n\t\t\t${on.active('.button.-icon-secondary')} {\n\t\t\t\t--m-button-background-color: transparent;\n\t\t\t\t--m-button-border-color: transparent;\n\t\t\t}\n\n\t\t\t.button.-small {\n\t\t\t\t--m-button-padding-y: ${token('spacing-2')};\n\n\t\t\t\t${typography('button-sm')};\n\t\t\t}\n\n\t\t\t.button.-large {\n\t\t\t\t--m-button-padding-y: ${token('spacing-4')};\n\n\t\t\t\t${typography('button-lg')};\n\t\t\t}\n\n\t\t\t/* TODO: to be removed when the loading dots component is ready */\n\t\t\t.loader {\n\t\t\t\tposition: absolute;\n\t\t\t\tinset: 0;\n\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t`,\n\t];\n}\n\nexport default styles;\n","import { Button } from '../button';\n\nexport class BannerActionPrimary extends Button {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.size = 'small';\n\t}\n\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback();\n\n\t\t// This sets the slot to which the banner-action-primary should be assigned inside the banner-actions component.\n\t\tthis.setAttribute('slot', 'primary-action');\n\t}\n}\n\nwindow.customElements.define('m-banner-action-primary', BannerActionPrimary);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-banner-action-primary': BannerActionPrimary;\n\t}\n}\n","import { Button } from '../button';\n\nexport class BannerActionSecondary extends Button {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.variant = 'tertiary';\n\t\tthis.size = 'small';\n\t}\n\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback();\n\n\t\t// This sets the slot to which the banner-action-secondary should be assigned inside the banner-actions component.\n\t\tthis.setAttribute('slot', 'secondary-action');\n\t}\n}\n\nwindow.customElements.define(\n\t'm-banner-action-secondary',\n\tBannerActionSecondary,\n);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-banner-action-secondary': BannerActionSecondary;\n\t}\n}\n","import { html, LitElement } from 'lit';\n\nimport { styles } from './banner-actions.styles';\n\nexport class BannerActions extends LitElement {\n\tstatic override styles = [styles()];\n\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback();\n\n\t\t// This sets the slot to which the banner-actions should be assigned inside the banner component.\n\t\tthis.setAttribute('slot', 'actions');\n\t}\n\n\toverride render() {\n\t\treturn html`\n\t\t\t<slot name=\"secondary-action\"></slot>\n\t\t\t<slot name=\"primary-action\"></slot>\n\t\t`;\n\t}\n}\n\nwindow.customElements.define('m-banner-actions', BannerActions);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-banner-actions': BannerActions;\n\t}\n}\n","import { css } from 'lit';\n\nimport token from '../../utils/get-token';\n\nexport function styles() {\n\treturn css`\n\t\t:host {\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: flex-end;\n\t\t\tgap: ${token('spacing-2')};\n\t\t}\n\t`;\n}\n","import { html, LitElement } from 'lit';\n\nimport { styles } from './banner-description.styles';\n\nexport class BannerDescription extends LitElement {\n\tstatic override styles = [styles()];\n\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback();\n\n\t\t// This sets the slot to which the banner-description should be assigned inside the banner component.\n\t\tthis.setAttribute('slot', 'description');\n\t}\n\n\toverride render() {\n\t\treturn html`<slot></slot>`;\n\t}\n}\n\nwindow.customElements.define('m-banner-description', BannerDescription);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-banner-description': BannerDescription;\n\t}\n}\n","import { css } from 'lit';\n\nimport color from '../../utils/get-color-token';\nimport { typography } from '../../styles';\n\nexport function styles() {\n\treturn css`\n\t\t:host {\n\t\t\t${typography('body-md')};\n\t\t\tcolor: ${color('color-text-secondary')};\n\t\t}\n\t`;\n}\n","import { html, LitElement } from 'lit';\n\nexport class BannerIcon extends LitElement {\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback();\n\n\t\t// This sets the slot to which the banner-icon should be assigned inside the banner component.\n\t\tthis.setAttribute('slot', 'icon');\n\t}\n\n\toverride render() {\n\t\treturn html`<slot></slot>`;\n\t}\n}\n\nwindow.customElements.define('m-banner-icon', BannerIcon);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-banner-icon': BannerIcon;\n\t}\n}\n","import { html, LitElement } from 'lit';\n\nimport { styles } from './banner-title.styles';\n\nexport class BannerTitle extends LitElement {\n\tstatic override styles = [styles()];\n\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback();\n\n\t\t// This sets the slot to which the banner-title should be assigned inside the banner component.\n\t\tthis.setAttribute('slot', 'title');\n\t}\n\n\toverride render() {\n\t\treturn html`<slot></slot>`;\n\t}\n}\n\nwindow.customElements.define('m-banner-title', BannerTitle);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-banner-title': BannerTitle;\n\t}\n}\n","import { css } from 'lit';\n\nimport color from '../../utils/get-color-token';\nimport { typography } from '../../styles';\n\nexport function styles() {\n\treturn css`\n\t\t:host {\n\t\t\t${typography('body-md-bold')};\n\t\t\tcolor: ${color('color-text-secondary')};\n\t\t}\n\t`;\n}\n","import { LitElement } from 'lit';\n\nimport { redispatchEvent } from '../../utils/events';\n\nexport class Component extends LitElement {\n\tprotected emit = <T>(eventName: string, options?: CustomEventInit<T>) => {\n\t\tconst event = new CustomEvent<T>(eventName, {\n\t\t\tbubbles: true,\n\t\t\tcancelable: true,\n\t\t\tcomposed: true,\n\t\t\t...options,\n\t\t});\n\n\t\tthis.dispatchEvent(event);\n\t};\n\n\t/**\n\t * Re-dispatches an event.\n\t * This function is useful for forwarding non-composed events, such as `change`\n\t * events.\n\t *\n\t * @example\n\t * class MyInput extends LitElement {\n\t * render() {\n\t * return html`<input @change=${this.reemit}>`;\n\t * }\n\t *\n\t * }\n\t *\n\t * @param event The event to re-dispatch.\n\t */\n\tprotected reemit = (event: Event) => {\n\t\tredispatchEvent(this, event);\n\t};\n}\n","/* eslint-disable @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-assignment */\n/**\n * Re-dispatches an event from the provided element.\n *\n * This function is useful for forwarding non-composed events, such as `change`\n * events.\n *\n * @example\n * class MyInput extends LitElement {\n * render() {\n * return html`<input @change=${this.redispatchEvent}>`;\n * }\n *\n * protected redispatchEvent(event: Event) {\n * redispatchEvent(this, event);\n * }\n * }\n *\n * Source: https://github.com/material-components/material-web/blob/c633e85192b20d7ad0930f131957ecefbb8a2f96/controller/events.ts\n *\n * @param element The element to dispatch the event from.\n * @param event The event to re-dispatch.\n * @return Whether or not the event was dispatched (if cancelable).\n */\nexport function redispatchEvent(element: Element, event: Event) {\n\t/**\n\t * For composed events or bubbling events in SSR light DOM, stop their\n\t * propagation and dispatch the copy.\n\t */\n\tif (event.bubbles && (!element.shadowRoot || event.composed)) {\n\t\tevent.stopPropagation();\n\t}\n\n\tconst copy = Reflect.construct(event.constructor, [event.type, event]);\n\tconst dispatched = element.dispatchEvent(copy);\n\tif (!dispatched) {\n\t\tevent.preventDefault();\n\t}\n\n\treturn dispatched;\n}\n","\"use strict\";exports.BASE_PIXELS=16,exports.toRem=function(t,r=16){return parseInt(String(t),10)/r+\"rem\"};\n","\"use strict\";var e=require(\"./index-2d298de0.js\");module.exports=e.toRem;\n","import { unsafeCSS } from 'lit';\nimport type { CSSResult } from 'lit';\nimport rem from '@loadsmart/miranda-toolset/dist/to-rem';\n\n/**\n * Convert the provided value from px to rem as lit's `CSSResult`.\n *\n * @example\n * // Considering 1rem = 16px\n * toRem(10); // returns '0.625rem'\n * toRem('16px'); // returns '1rem'\n *\n * @param {number | string} value - value, in pixels, to convert.\n * @param {number} base - value, in pixels, to be considered for 1rem.\n * @returns {CSSResult}\n */\nfunction toRem(value: number | string, base?: number): CSSResult {\n\treturn unsafeCSS(rem(value, base));\n}\n\nexport default toRem;\n","export const icons = new Map([\n\t['alert-circle', () => import('./icons/attention')] as const,\n\t['attention', () => import('./icons/attention')] as const,\n\t['bell', () => import('./icons/bell')] as const,\n\t['check', () => import('./icons/check')] as const,\n\t['close', () => import('./icons/close')] as const,\n\t['indeterminate', () => import('./icons/indeterminate')] as const,\n\t['info-circle', () => import('./icons/info-circle')] as const,\n]);\n\nexport const AVAILABLE_ICONS = [...icons.keys()];\n\nexport type IconName = (typeof AVAILABLE_ICONS)[number];\n","import { nothing } from 'lit';\nimport { toCSSValue } from '@loadsmart/miranda-tokens';\n\nimport type { ColorToken } from '@loadsmart/miranda-tokens';\nimport type { PropertyValues, SVGTemplateResult } from 'lit';\n\nimport styles from './icon.styles';\nimport { Component } from '../component';\nimport { icons } from './available-icons';\nimport type { IconName } from './available-icons';\n\nexport interface IconProps {\n\tname: IconName;\n\tsize?: string;\n\tcolor?: ColorToken;\n}\n\n/**\n * This component is meant to be used only inside this repository.\n * The icon's `color` and `size` are intentionally not set by default so that they can be customized via:\n * - setting color and size CSS custom properties\n * - setting color and size attributes\n * Notice that setting color and size through their attributes will override any set CSS custom properties!\n */\nexport class Icon extends Component {\n\tstatic override styles = [styles()];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\tname: { type: String },\n\t\t\tsize: { type: String },\n\t\t\tcolor: { type: String },\n\t\t\tloading: { state: true },\n\t\t};\n\t}\n\n\t/**\n\t * Icon color.\n\t */\n\tdeclare color: ColorToken;\n\n\t/**\n\t * Icon to be rendered.\n\t */\n\tdeclare name: IconProps['name'];\n\n\t/**\n\t * Icon size.\n\t */\n\tdeclare size: IconProps['size'];\n\n\tprivate icon: SVGTemplateResult | null = null;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.icon = null;\n\t}\n\n\toverride connectedCallback() {\n\t\tsuper.connectedCallback();\n\n\t\tthis.#loadIcon();\n\t}\n\n\toverride update(changedProperties: PropertyValues<Icon>) {\n\t\tsuper.update(changedProperties);\n\n\t\tif (changedProperties.has('name')) {\n\t\t\tthis.#loadIcon();\n\t\t}\n\t}\n\n\toverride updated(changedProperties: PropertyValues<Icon>) {\n\t\tsuper.updated(changedProperties);\n\n\t\tif (changedProperties.has('size') && this.size != null) {\n\t\t\tthis.style.setProperty(\n\t\t\t\t'--m-icon-size',\n\t\t\t\t`${parseInt(String(this.size), 10) || 16}px`,\n\t\t\t);\n\t\t}\n\n\t\tif (changedProperties.has('color') && this.color != null) {\n\t\t\tthis.style.setProperty('--m-icon-color', toCSSValue(this.color));\n\t\t}\n\t}\n\n\toverride render() {\n\t\tif (this.name == null || !icons.has(this.name) || this.icon == null) {\n\t\t\treturn nothing;\n\t\t}\n\n\t\treturn this.icon;\n\t}\n\n\t#loadIcon = async () => {\n\t\tif (!icons.has(this.name)) {\n\t\t\tconsole.error(`The icon name \"${this.name}\" does not exist!`);\n\t\t}\n\n\t\ttry {\n\t\t\tthis.icon = null;\n\n\t\t\tconst { default: iconModule } = await icons.get(this.name)!();\n\n\t\t\tthis.icon = iconModule;\n\t\t} catch {\n\t\t\tconsole.error(`failed loading icon \"${this.name}\".`);\n\t\t} finally {\n\t\t\tthis.requestUpdate();\n\t\t}\n\t};\n}\n\nwindow.customElements.define('m-icon', Icon);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-icon': Icon;\n\t}\n}\n","import { css } from 'lit';\n\nimport color from '../../utils/get-color-token';\nimport { transition } from '../../styles';\n\nfunction styles() {\n\treturn [\n\t\tcss`\n\t\t\t:host {\n\t\t\t\t--m-icon-size: 16px;\n\t\t\t\t--m-icon-color: ${color('color-text-primary')};\n\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\n\t\t\t\tinline-size: var(--m-icon-size);\n\t\t\t\tblock-size: var(--m-icon-size);\n\t\t\t}\n\n\t\t\tsvg {\n\t\t\t\t${transition([{ property: 'color' }, { property: 'fill' }])};\n\n\t\t\t\tinline-size: var(--m-icon-size);\n\t\t\t\tblock-size: var(--m-icon-size);\n\n\t\t\t\tcolor: var(--m-icon-color);\n\t\t\t\tfill: var(--m-icon-color);\n\t\t\t}\n\t\t`,\n\t];\n}\n\nexport default styles;\n","import { html } from 'lit';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\n\nimport { Component } from '../component';\nimport { styles } from './close-button.styles';\n\nimport '../icon';\n\nexport type CloseButtonSize = 'small' | 'default' | 'large';\n\nexport interface CloseButtonProps {\n\tcontrols?: string;\n\tdisabled?: boolean;\n\tinverted?: boolean;\n\tlabel?: string;\n\tsize?: CloseButtonSize;\n}\n\nexport class CloseButton extends Component {\n\tstatic override styles = [styles()];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\tcontrols: { type: String },\n\t\t\tdisabled: { type: Boolean },\n\t\t\tinverted: { type: Boolean },\n\t\t\tlabel: { type: String },\n\t\t\tsize: { type: String },\n\t\t};\n\t}\n\n\t/**\n\t * Id of the element being controlled by the close button.\n\t */\n\tdeclare controls: CloseButtonProps['controls'];\n\n\t/**\n\t * Determine if the button will be disabled.\n\t */\n\tdeclare disabled: CloseButtonProps['disabled'];\n\n\t/**\n\t * Determine if the button will be displayed with inverted colors.\n\t */\n\tdeclare inverted: CloseButtonProps['inverted'];\n\n\t/**\n\t * Button label. Defaults to 'Close'.\n\t */\n\tdeclare label: CloseButtonProps['label'];\n\n\t/**\n\t * Text field size. Defaults to 'default'.\n\t */\n\tdeclare size: CloseButtonProps['size'];\n\n\tconstructor() {\n\t\tsuper();\n\t\tthis.disabled = false;\n\t\tthis.inverted = false;\n\t\tthis.label = 'Close';\n\t\tthis.size = 'default';\n\t}\n\n\toverride render() {\n\t\treturn html`\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\taria-controls=\"${ifDefined(this.controls)}\"\n\t\t\t\taria-label=\"${ifDefined(this.label)}\"\n\t\t\t\tclass=${classMap({\n\t\t\t\t\t'close-button': true,\n\n\t\t\t\t\t'-size-small': this.size === 'small',\n\t\t\t\t\t'-size-default': this.size === 'default',\n\t\t\t\t\t'-size-large': this.size === 'large',\n\t\t\t\t\t'-inverted': this.inverted ?? false,\n\t\t\t\t})}\n\t\t\t\t?disabled=\"${this.disabled}\"\n\t\t\t\t@click=${this.#handleClick}\n\t\t\t>\n\t\t\t\t<m-icon name=\"close\"></m-icon>\n\t\t\t</button>\n\t\t`;\n\t}\n\n\toverride focus(options?: FocusOptions | undefined): void {\n\t\tthis.#button?.focus(options);\n\t}\n\n\tget #button(): HTMLElement | null {\n\t\treturn this.renderRoot.querySelector('button') ?? null;\n\t}\n\n\t#handleClick = () => {\n\t\tthis.emit('m-close');\n\t};\n}\n\nwindow.customElements.define('m-close-button', CloseButton);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-close-button': CloseButton;\n\t}\n}\n","import { css } from 'lit';\n\nimport color from '../../utils/get-color-token';\nimport toRem from '../../utils/to-rem';\nimport { disabled, m, on, p, transition } from '../../styles';\n\nexport function styles() {\n\treturn css`\n\t\t:host {\n\t\t\t--m-close-button-color: ${color('color-text-primary')};\n\t\t\t--m-close-button-outline-color: ${color('color-primary-100')};\n\t\t\t--m-close-button-outline-offset: 2px;\n\t\t}\n\n\t\t.close-button {\n\t\t\t--button-color: transparent;\n\t\t\t--icon-color: var(--m-close-button-color);\n\n\t\t\twidth: var(--button-size);\n\t\t\theight: var(--button-size);\n\t\t\t${m(0)};\n\t\t\t${p(0)};\n\t\t\tbackground-color: var(--button-color);\n\t\t\tborder: none;\n\t\t\tborder-radius: 50%;\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\tcursor: pointer;\n\n\t\t\t${transition([{ property: 'background-color' }])};\n\t\t}\n\n\t\t.close-button.-size-small {\n\t\t\t--button-size: ${toRem('12px')};\n\t\t\t--icon-size: ${toRem('8px')};\n\t\t}\n\n\t\t.close-button.-size-default {\n\t\t\t--button-size: ${toRem('16px')};\n\t\t\t--icon-size: ${toRem('12px')};\n\t\t}\n\n\t\t.close-button.-size-large {\n\t\t\t--button-size: ${toRem('20px')};\n\t\t\t--icon-size: ${toRem('16px')};\n\t\t}\n\n\t\t.close-button.-inverted {\n\t\t\t--button-color: transparent;\n\t\t\t--icon-color: ${color('color-text-inverted')};\n\t\t}\n\n\t\tm-icon {\n\t\t\t--m-icon-size: var(--icon-size);\n\t\t\t--m-icon-color: var(--icon-color);\n\n\t\t\tdisplay: block;\n\t\t}\n\n\t\t${on.focus('.close-button')} {\n\t\t\toutline: 1px solid var(--m-close-button-outline-color);\n\t\t\toutline-offset: var(--m-close-button-outline-offset);\n\t\t}\n\n\t\t${on.hover('.close-button')} {\n\t\t\t--button-color: var(--m-close-button-color);\n\t\t\t--icon-color: ${color('color-text-inverted')};\n\t\t}\n\n\t\t${on.hover('.close-button.-inverted')} {\n\t\t\t--button-color: ${color('color-text-inverted')};\n\t\t\t--icon-color: var(--m-close-button-color);\n\t\t}\n\n\t\t${disabled('.close-button')} {\n\t\t\t--icon-color: ${color('color-text-disabled')};\n\t\t\tcursor: default;\n\t\t}\n\n\t\t${disabled('.close-button', '*')} {\n\t\t\tpointer-events: none;\n\t\t}\n\t`;\n}\n","import{noChange as t}from\"../lit-html.js\";import{directive as e,Directive as r,PartType as s}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const i=\"important\",n=\" !\"+i,o=e(class extends r{constructor(t){var e;if(super(t),t.type!==s.ATTRIBUTE||\"style\"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error(\"The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.\")}render(t){return Object.keys(t).reduce(((e,r)=>{const s=t[r];return null==s?e:e+`${r=r.includes(\"-\")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,\"-$&\").toLowerCase()}:${s};`}),\"\")}update(e,[r]){const{style:s}=e.element;if(void 0===this.ut){this.ut=new Set;for(const t in r)this.ut.add(t);return this.render(r)}this.ut.forEach((t=>{null==r[t]&&(this.ut.delete(t),t.includes(\"-\")?s.removeProperty(t):s[t]=\"\")}));for(const t in r){const e=r[t];if(null!=e){this.ut.add(t);const r=\"string\"==typeof e&&e.endsWith(n);t.includes(\"-\")||r?s.setProperty(t,r?e.slice(0,-11):e,r?i:\"\"):s[t]=e}}return t}});export{o as styleMap};\n//# sourceMappingURL=style-map.js.map\n","/* eslint-disable lit/binding-positions, lit/no-invalid-html */\nimport { html } from 'lit/static-html.js';\nimport { LitElement } from 'lit';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { styleMap } from 'lit/directives/style-map.js';\nimport { toCSSValue } from '@loadsmart/miranda-tokens';\nimport type { ColorToken } from '@loadsmart/miranda-tokens';\n\nimport { PolymorphicTagMixin } from '../../mixins/polymorphic-tag';\nimport type { TypographyVariant } from '../../styles/typography';\nimport type { HTMLTag } from '../../mixins/polymorphic-tag';\n\nimport styles from './text.styles';\n\nexport interface TextProps {\n\tas?: HTMLTag;\n\tcolor?: ColorToken;\n\tellipsized?: boolean;\n\tvariant?: TypographyVariant;\n}\n\nexport class Text extends PolymorphicTagMixin(\n\tLitElement,\n\t['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'span'],\n\t'span',\n) {\n\tstatic override styles = [styles()];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\tcolor: { type: String },\n\t\t\tellipsized: { type: Boolean, reflect: true },\n\t\t\tvariant: { type: String, reflect: true },\n\t\t};\n\t}\n\n\t/**\n\t * Text color.\n\t * @type {ColorToken}\n\t */\n\tdeclare color: ColorToken;\n\n\t/**\n\t * Option to enable text ellipsis.\n\t * @type {Boolean}\n\t */\n\tdeclare ellipsized: boolean;\n\n\t/**\n\t * Typography variant.\n\t * @type {TypographyVariant}\n\t */\n\tdeclare variant: TypographyVariant;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.as = 'span';\n\t\tthis.color = 'color-text-primary';\n\t\tthis.ellipsized = false;\n\t\tthis.variant = 'body-md';\n\t}\n\n\toverride render() {\n\t\treturn html`\n\t\t\t<${this.tag}\n\t\t\t\tclass=${classMap({\n\t\t\t\t\t'm-text': true,\n\t\t\t\t\t'-body-lg-bold': this.variant === 'body-lg-bold',\n\t\t\t\t\t'-body-lg': this.variant === 'body-lg',\n\t\t\t\t\t'-body-md-bold-underline': this.variant === 'body-md-bold-underline',\n\t\t\t\t\t'-body-md-bold': this.variant === 'body-md-bold',\n\t\t\t\t\t'-body-md-underline': this.variant === 'body-md-underline',\n\t\t\t\t\t'-body-md': this.variant === 'body-md',\n\t\t\t\t\t'-body-sm-bold-underline': this.variant === 'body-sm-bold-underline',\n\t\t\t\t\t'-body-sm-bold': this.variant === 'body-sm-bold',\n\t\t\t\t\t'-body-sm-underline': this.variant === 'body-sm-underline',\n\t\t\t\t\t'-body-sm': this.variant === 'body-sm',\n\t\t\t\t\t'-button-lg': this.variant === 'button-lg',\n\t\t\t\t\t'-button-md': this.variant === 'button-md',\n\t\t\t\t\t'-button-sm': this.variant === 'button-sm',\n\t\t\t\t\t'-chips-md': this.variant === 'chips-md',\n\t\t\t\t\t'-chips-sm': this.variant === 'chips-sm',\n\t\t\t\t\t'-heading-lg-bold': this.variant === 'heading-lg-bold',\n\t\t\t\t\t'-heading-lg': this.variant === 'heading-lg',\n\t\t\t\t\t'-heading-md-bold': this.variant === 'heading-md-bold',\n\t\t\t\t\t'-heading-md': this.variant === 'heading-md',\n\t\t\t\t\t'-heading-sm-bold': this.variant === 'heading-sm-bold',\n\t\t\t\t\t'-heading-sm': this.variant === 'heading-sm',\n\t\t\t\t\t'-hero-lg-bold': this.variant === 'hero-lg-bold',\n\t\t\t\t\t'-hero-lg': this.variant === 'hero-lg',\n\t\t\t\t\t'-hero-md-bold': this.variant === 'hero-md-bold',\n\t\t\t\t\t'-hero-md': this.variant === 'hero-md',\n\t\t\t\t\t'-hero-sm-bold': this.variant === 'hero-sm-bold',\n\t\t\t\t\t'-hero-sm': this.variant === 'hero-sm',\n\t\t\t\t\t'-number-md': this.variant === 'number-md',\n\t\t\t\t\t'-number-sm': this.variant === 'number-sm',\n\t\t\t\t\t'-table-header-md': this.variant === 'table-header-md',\n\t\t\t\t\t'-table-header-sm': this.variant === 'table-header-sm',\n\t\t\t\t\t'-ellipsized': Boolean(this.ellipsized),\n\t\t\t\t})}\n\t\t\t\tstyle=${styleMap({\n\t\t\t\t\t// FIXME: how to set the color without being vulnerable to unsafe CSS?\n\t\t\t\t\t'--m-text-color': toCSSValue(this.color),\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<slot></slot>\n\t\t\t</${this.tag}>\n\t\t`;\n\t}\n}\n\nwindow.customElements.define('m-text', Text);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-text': Text;\n\t}\n}\n","import { css } from 'lit';\n\nimport { transition, typography } from '../../styles';\nimport color from '../../utils/get-color-token';\n\nfunction styles() {\n\treturn css`\n\t\t:host {\n\t\t\t--m-text-color: ${color('color-text-primary')};\n\t\t\t--m-text-display: inline-block;\n\t\t\t--m-text-max-width: initial;\n\t\t\t--m-text-padding: 0;\n\t\t\t--m-text-margin: 0;\n\t\t}\n\n\t\t.m-text {\n\t\t\t${transition([{ property: 'color' }])};\n\n\t\t\t${typography()};\n\n\t\t\tcolor: var(--m-text-color);\n\t\t\tdisplay: var(--m-text-display);\n\t\t\tpadding: var(--m-text-padding);\n\t\t\tmargin: var(--m-text-margin);\n\t\t}\n\n\t\t.-body-lg-bold {\n\t\t\t${typography('body-lg-bold')};\n\t\t}\n\n\t\t.-body-lg {\n\t\t\t${typography('body-lg')};\n\t\t}\n\n\t\t.-body-md-bold-underline {\n\t\t\t${typography('body-md-bold-underline')};\n\t\t}\n\n\t\t.-body-md-bold {\n\t\t\t${typography('body-md-bold')};\n\t\t}\n\n\t\t.-body-md-underline {\n\t\t\t${typography('body-md-underline')};\n\t\t}\n\n\t\t.-body-md {\n\t\t\t${typography('body-md')};\n\t\t}\n\n\t\t.-body-sm-bold-underline {\n\t\t\t${typography('body-sm-bold-underline')};\n\t\t}\n\n\t\t.-body-sm-bold {\n\t\t\t${typography('body-sm-bold')};\n\t\t}\n\n\t\t.-body-sm-underline {\n\t\t\t${typography('body-sm-underline')};\n\t\t}\n\n\t\t.-body-sm {\n\t\t\t${typography('body-sm')};\n\t\t}\n\n\t\t.-button-lg {\n\t\t\t${typography('button-lg')};\n\t\t}\n\n\t\t.-button-md {\n\t\t\t${typography('button-md')};\n\t\t}\n\n\t\t.-button-sm {\n\t\t\t${typography('button-sm')};\n\t\t}\n\n\t\t.-chips-md {\n\t\t\t${typography('chips-md')};\n\t\t}\n\n\t\t.-chips-sm {\n\t\t\t${typography('chips-sm')};\n\t\t}\n\n\t\t.-heading-lg-bold {\n\t\t\t${typography('heading-lg-bold')};\n\t\t}\n\n\t\t.-heading-lg {\n\t\t\t${typography('heading-lg')};\n\t\t}\n\n\t\t.-heading-md-bold {\n\t\t\t${typography('heading-md-bold')};\n\t\t}\n\n\t\t.-heading-md {\n\t\t\t${typography('heading-md')};\n\t\t}\n\n\t\t.-heading-sm-bold {\n\t\t\t${typography('heading-sm-bold')};\n\t\t}\n\n\t\t.-heading-sm {\n\t\t\t${typography('heading-sm')};\n\t\t}\n\n\t\t.-hero-lg-bold {\n\t\t\t${typography('hero-lg-bold')};\n\t\t}\n\n\t\t.-hero-lg {\n\t\t\t${typography('hero-lg')};\n\t\t}\n\n\t\t.-hero-md-bold {\n\t\t\t${typography('hero-md-bold')};\n\t\t}\n\n\t\t.-hero-md {\n\t\t\t${typography('hero-md')};\n\t\t}\n\n\t\t.-hero-sm-bold {\n\t\t\t${typography('hero-sm-bold')};\n\t\t}\n\n\t\t.-hero-sm {\n\t\t\t${typography('hero-sm')};\n\t\t}\n\n\t\t.-number-md {\n\t\t\t${typography('number-md')};\n\t\t}\n\n\t\t.-number-sm {\n\t\t\t${typography('number-sm')};\n\t\t}\n\n\t\t.-table-header-md {\n\t\t\t${typography('table-header-md')};\n\t\t}\n\n\t\t.-table-header-sm {\n\t\t\t${typography('table-header-sm')};\n\t\t}\n\n\t\t.-ellipsized {\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\twhite-space: nowrap;\n\t\t\tmax-width: var(--m-text-max-width);\n\t\t}\n\t`;\n}\n\nexport default styles;\n","import { html, nothing } from 'lit';\nimport type { PropertyValues } from 'lit';\nimport { classMap } from 'lit/directives/class-map.js';\n\nimport type { ButtonVariant } from '../button';\nimport { Component } from '../component';\nimport type { IconName } from '../icon';\nimport type { BannerActionPrimary } from './banner-action-primary';\nimport { styles } from './banner.styles';\n\nimport '../button';\nimport '../close-button';\nimport '../text';\nimport '../icon';\n\nexport type BannerVariant = 'neutral' | 'warning' | 'danger' | 'success';\n\nfunction getIcon(variant?: BannerVariant): IconName {\n\tswitch (variant) {\n\t\tcase 'success': {\n\t\t\treturn 'check';\n\t\t}\n\t\tcase 'warning':\n\t\tcase 'danger': {\n\t\t\treturn 'attention';\n\t\t}\n\t\tcase 'neutral':\n\t\tdefault: {\n\t\t\treturn 'info-circle';\n\t\t}\n\t}\n}\n\nfunction getPrimaryActionVariant(variant?: BannerVariant): ButtonVariant {\n\tswitch (variant) {\n\t\tcase 'warning': {\n\t\t\treturn 'warning';\n\t\t}\n\t\tcase 'danger': {\n\t\t\treturn 'danger';\n\t\t}\n\t\tcase 'success':\n\t\tcase 'neutral':\n\t\tdefault: {\n\t\t\treturn 'primary';\n\t\t}\n\t}\n}\n\nexport interface BannerProps {\n\tvariant?: BannerVariant;\n\tdismissible?: boolean;\n\tdismissed?: boolean;\n}\n\nexport class Banner extends Component {\n\tstatic override styles = [styles()];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\tvariant: { type: String },\n\t\t\tdismissible: { type: Boolean },\n\t\t\tdismissed: { type: Boolean, reflect: true },\n\t\t};\n\t}\n\n\t/**\n\t * Determines the style. Defaults to 'neutral'.\n\t */\n\tdeclare variant: BannerProps['variant'];\n\n\t/**\n\t * Determine if the banner is dismissible. It will not be dismissible if\n\t * there's an action defined. Defaults to false.\n\t */\n\tdeclare dismissible: BannerProps['dismissible'];\n\n\t/**\n\t * Determine if the banner was dismissed or not.\n\t */\n\tdeclare dismissed: BannerProps['dismissed'];\n\n\t/**\n\t * Reference for the Primary Action\n\t */\n\t#primaryAction?: BannerActionPrimary | null;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.variant = 'neutral';\n\t\tthis.dismissible = false;\n\t\tthis.dismissed = false;\n\t}\n\n\tget primaryAction(): BannerActionPrimary | null {\n\t\tif (this.#primaryAction == null) {\n\t\t\tthis.#primaryAction = this.querySelector('m-banner-action-primary');\n\t\t}\n\n\t\treturn this.#primaryAction;\n\t}\n\n\toverride updated(changedProperties: PropertyValues) {\n\t\tsuper.updated(changedProperties);\n\n\t\t// Force the primary action to have a variant based on the banner's variant\n\t\tif (changedProperties.has('variant') && this.primaryAction != null) {\n\t\t\tthis.primaryAction.variant = getPrimaryActionVariant(this.variant);\n\t\t}\n\t}\n\n\toverride render() {\n\t\tif (this.dismissed) {\n\t\t\treturn nothing;\n\t\t}\n\n\t\tconst hasDescription = this.querySelector(`*[slot='description']`) != null;\n\t\tconst hasActions = this.querySelector(`*[slot='actions']`) != null;\n\n\t\tconst closeButton = html`\n\t\t\t<m-close-button\n\t\t\t\tid=\"close\"\n\t\t\t\tlabel=\"Dismiss\"\n\t\t\t\t@click=${this.#handleDismissClick}\n\t\t\t></m-close-button>\n\t\t`;\n\n\t\treturn html`\n\t\t\t<div\n\t\t\t\tclass=${classMap({\n\t\t\t\t\tbanner: true,\n\t\t\t\t\t'-success': this.variant === 'success',\n\t\t\t\t\t'-warning': this.variant === 'warning',\n\t\t\t\t\t'-danger': this.variant === 'danger',\n\t\t\t\t\t'-with-description': hasDescription,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<div class=\"wrapper\">\n\t\t\t\t\t<slot name=\"icon\">\n\t\t\t\t\t\t<m-icon name=\"${getIcon(this.variant)}\"></m-icon>\n\t\t\t\t\t</slot>\n\t\t\t\t\t<div class=\"content\">\n\t\t\t\t\t\t<slot name=\"title\"></slot>\n\t\t\t\t\t\t<slot name=\"description\"></slot>\n\t\t\t\t\t</div>\n\t\t\t\t\t${this.dismissible && !hasActions ? closeButton : nothing}\n\t\t\t\t</div>\n\t\t\t\t<slot name=\"actions\"></slot>\n\t\t\t</div>\n\t\t`;\n\t}\n\n\t#handleDismissClick = () => {\n\t\tthis.dismissed = true;\n\n\t\tthis.emit('m-dismiss', { composed: true });\n\t};\n}\n\nwindow.customElements.define('m-banner', Banner);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-banner': Banner;\n\t}\n}\n","import { css } from 'lit';\n\nimport token from '../../utils/get-token';\nimport color from '../../utils/get-color-token';\n\nexport function styles() {\n\treturn css`\n\t\t:host {\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t:host([dismissed]) {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t.banner {\n\t\t\tbackground-color: var(\n\t\t\t\t--m-banner-background-color,\n\t\t\t\t${color('color-background-secondary')}\n\t\t\t);\n\t\t\tborder: var(--m-banner-border, 1px solid ${color('color-border')});\n\t\t\tborder-radius: var(--m-banner-border-radius, ${token('border-radius-m')});\n\t\t\tpadding-inline: var(--m-banner-padding-x, ${token('spacing-6')});\n\t\t\tpadding-block: var(--m-banner-padding-y, ${token('spacing-4')});\n\t\t\tdisplay: flex;\n\t\t\tflex-wrap: wrap;\n\t\t\tjustify-content: flex-end;\n\t\t\tgap: ${token('spacing-6')};\n\t\t}\n\n\t\t.banner.-success {\n\t\t\t--m-banner-background-color: ${color('color-success-20')};\n\t\t\t--m-banner-border: 1px solid ${color('color-success-20')};\n\t\t\t--m-banner-icon-color: ${color('color-success-60')};\n\t\t}\n\n\t\t.banner.-warning {\n\t\t\t--m-banner-background-color: ${color('color-warning-20')};\n\t\t\t--m-banner-border: 1px solid ${color('color-warning-20')};\n\t\t\t--m-banner-icon-color: ${color('color-warning-100')};\n\t\t}\n\n\t\t.banner.-danger {\n\t\t\t--m-banner-background-color: ${color('color-danger-20')};\n\t\t\t--m-banner-border: 1px solid ${color('color-danger-20')};\n\t\t\t--m-banner-icon-color: ${color('color-danger-60')};\n\t\t}\n\n\t\t.banner.-with-description {\n\t\t\tflex-direction: column;\n\t\t}\n\n\t\t.wrapper {\n\t\t\tdisplay: flex;\n\t\t\tgap: ${token('spacing-6')};\n\t\t\talign-items: center;\n\t\t\tflex-grow: 1;\n\t\t}\n\n\t\tslot[name='icon'] > m-icon,\n\t\tslot[name='icon']::slotted(*) {\n\t\t\t--m-icon-color: var(--m-banner-icon-color, ${color('color-neutral-90')});\n\t\t\t--m-icon-size: var(--m-banner-icon-size, 24px);\n\n\t\t\tfill: var(--m-banner-icon-color, ${color('color-neutral-90')});\n\t\t\tblock-size: var(--m-banner-icon-size, 24px);\n\t\t\tinline-size: var(--m-banner-icon-size, 24px);\n\t\t}\n\n\t\t.content {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\tflex-grow: 1;\n\t\t\tgap: ${token('spacing-1')};\n\t\t}\n\t`;\n}\n","import { html, LitElement, nothing } from 'lit';\nimport { styleMap } from 'lit/directives/style-map.js';\n\nimport { toCSSValue } from '@loadsmart/miranda-tokens';\nimport type { ColorToken } from '@loadsmart/miranda-tokens';\n\nimport { cardStyles } from './card.styles';\n\nexport interface CardProps {\n\tflagged?: boolean;\n\t'flag-color'?: ColorToken;\n}\n\nconst defaultFlagColor: NonNullable<CardProps['flag-color']> =\n\t'color-background-inverted';\n\nexport class Card extends LitElement {\n\tstatic override styles = [cardStyles()];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\tflagged: { type: Boolean },\n\t\t\tflagColor: { type: String, attribute: 'flag-color' },\n\t\t};\n\t}\n\n\t/**\n\t * Should the card be flagged.\n\t */\n\tdeclare flagged: CardProps['flagged'];\n\n\t/**\n\t * Card flag color.\n\t */\n\tdeclare flagColor: NonNullable<CardProps['flag-color']>;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.flagged = false;\n\t\tthis.flagColor = defaultFlagColor;\n\t}\n\n\toverride render() {\n\t\treturn html`\n\t\t\t<div\n\t\t\t\tclass=\"m-card\"\n\t\t\t\tstyle=\"${styleMap({\n\t\t\t\t\t'--m-card-flag-color': toCSSValue(this.flagColor),\n\t\t\t\t})}\"\n\t\t\t>\n\t\t\t\t${this.flagged ? html`<span class=\"m-card-flag\"></span>` : nothing}\n\t\t\t\t<div class=\"m-card-content\">\n\t\t\t\t\t<slot name=\"title\"></slot>\n\t\t\t\t\t<slot name=\"subtitle\"></slot>\n\t\t\t\t\t<slot name=\"divider\"></slot>\n\t\t\t\t\t<slot name=\"body\"></slot>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t`;\n\t}\n}\n\nwindow.customElements.define('m-card', Card);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-card': Card;\n\t}\n}\n","import { css } from 'lit';\nimport token from '../../utils/get-token';\nimport color from '../../utils/get-color-token';\nimport { typography } from '../../styles';\n\nexport function cardStyles() {\n\treturn css`\n\t\t:host {\n\t\t\t--m-card-background-color: ${color('color-background-primary')};\n\t\t}\n\n\t\t.m-card {\n\t\t\tposition: relative;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: row;\n\n\t\t\tbackground-color: var(--m-card-background-color);\n\t\t\tborder-radius: ${token('border-radius-s')};\n\t\t\tborder: solid 1px ${color('color-divider')};\n\t\t}\n\n\t\t.m-card-flag {\n\t\t\tposition: absolute;\n\t\t\ttop: -1px;\n\t\t\tbottom: -1px;\n\t\t\tleft: -1px;\n\t\t\tdisplay: block;\n\n\t\t\tbox-sizing: border-box;\n\t\t\tborder: 1px solid var(--m-card-flag-color);\n\t\t\tbackground-color: var(--m-card-flag-color);\n\t\t\twidth: ${token('border-thick')};\n\t\t\tborder-top-left-radius: ${token('border-radius-s')};\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t\tborder-bottom-left-radius: ${token('border-radius-s')};\n\t\t}\n\n\t\t.m-card-content {\n\t\t\tdisplay: flex;\n\t\t\tflex: 1;\n\t\t\tflex-direction: column;\n\t\t}\n\n\t\t::slotted(m-divider) {\n\t\t\t--m-divider-margin-top: ${token('spacing-4')};\n\t\t}\n\t`;\n}\n\nexport function cardBodyStyles() {\n\treturn css`\n\t\t:host {\n\t\t\t--m-card-body-padding-x: ${token('spacing-4')};\n\t\t\t--m-card-body-padding-y: ${token('spacing-4')};\n\t\t}\n\n\t\t.m-card-body {\n\t\t\tpadding: var(--m-card-body-padding-y) var(--m-card-body-padding-x);\n\t\t}\n\t`;\n}\n\nexport function cardSubtitleStyles() {\n\treturn css`\n\t\t:host {\n\t\t\t--m-card-subtitle-margin-top: ${token('spacing-2')};\n\t\t\t--m-card-subtitle-padding-x: ${token('spacing-4')};\n\t\t\t--m-card-subtitle-padding-y: 0;\n\t\t}\n\n\t\t.m-card-subtitle {\n\t\t\t${typography('body-md')};\n\n\t\t\tmargin-block-start: var(--m-card-subtitle-margin-top);\n\t\t\tpadding: var(--m-card-subtitle-padding-y) var(--m-card-subtitle-padding-x);\n\n\t\t\tcolor: ${color('color-text-tertiary')};\n\t\t}\n\t`;\n}\n\nexport function cardTitleStyles() {\n\treturn css`\n\t\t:host {\n\t\t\t--m-card-title-padding-x: ${token('spacing-4')};\n\t\t\t--m-card-title-padding-top: ${token('spacing-4')};\n\t\t}\n\n\t\t.m-card-title {\n\t\t\tpadding: var(--m-card-title-padding-top) var(--m-card-title-padding-x) 0;\n\n\t\t\t${typography('heading-sm-bold')};\n\t\t\tcolor: ${color('color-text-primary')};\n\t\t}\n\n\t\tslot[name='leading']::slotted(*) {\n\t\t\tdisplay: inline-flex;\n\t\t\tflex-flow: row nowrap;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\tpointer-events: none;\n\t\t\tmargin-inline-end: ${token('spacing-1')};\n\t\t}\n\t`;\n}\n","import { html, LitElement } from 'lit';\n\nimport { cardBodyStyles } from './card.styles';\n\nexport class CardBody extends LitElement {\n\tstatic override styles = [cardBodyStyles()];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\tslot: { type: String },\n\t\t};\n\t}\n\n\tdeclare slot: string;\n\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback();\n\n\t\t// this sets the slot to which the card-body should be assigned inside the card component.\n\t\tthis.setAttribute('slot', 'body');\n\t}\n\n\toverride render() {\n\t\treturn html`\n\t\t\t<div class=\"m-card-body\">\n\t\t\t\t<slot></slot>\n\t\t\t</div>\n\t\t`;\n\t}\n}\n\nwindow.customElements.define('m-card-body', CardBody);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-card-body': CardBody;\n\t}\n}\n","import { html, LitElement } from 'lit';\n\nimport { cardSubtitleStyles } from './card.styles';\n\nexport class CardSubtitle extends LitElement {\n\tstatic override styles = [cardSubtitleStyles()];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\tslot: { type: String },\n\t\t};\n\t}\n\n\tdeclare slot: string;\n\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback();\n\n\t\t// this sets the slot to which the card-subtitle should be assigned inside the card component.\n\t\tthis.setAttribute('slot', 'subtitle');\n\t}\n\n\toverride render() {\n\t\treturn html`\n\t\t\t<div class=\"m-card-subtitle\">\n\t\t\t\t<slot></slot>\n\t\t\t</div>\n\t\t`;\n\t}\n}\n\nwindow.customElements.define('m-card-subtitle', CardSubtitle);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-card-subtitle': CardSubtitle;\n\t}\n}\n","import { html, LitElement } from 'lit';\n\nimport { cardTitleStyles } from './card.styles';\n\nexport class CardTitle extends LitElement {\n\tstatic override styles = [cardTitleStyles()];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\tslot: { type: String },\n\t\t};\n\t}\n\n\tdeclare slot: string;\n\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback();\n\n\t\t// this sets the slot to which the card-title should be assigned inside the card component.\n\t\tthis.setAttribute('slot', 'title');\n\t}\n\n\toverride render() {\n\t\treturn html`\n\t\t\t<div class=\"m-card-title\">\n\t\t\t\t<slot name=\"leading\"></slot>\n\t\t\t\t<slot></slot>\n\t\t\t</div>\n\t\t`;\n\t}\n}\n\nwindow.customElements.define('m-card-title', CardTitle);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-card-title': CardTitle;\n\t}\n}\n","import { css } from 'lit';\n\nimport color from '../../utils/get-color-token';\nimport getToken from '../../utils/get-token';\nimport { on, disabled, transition, typography } from '../../styles';\n\nconst baseTransitionConfig = {\n\tdelay: '0s',\n\tduration: '0.35s',\n\teasing: 'ease-in-out',\n};\n\nfunction styles() {\n\treturn css`\n\t\t${on.focus('.check-input-label')} {\n\t\t\tborder-radius: 2px;\n\t\t\toutline: 1px solid ${color('color-primary-60')};\n\t\t}\n\n\t\t.check-input-label {\n\t\t\t${typography('body-md')};\n\n\t\t\tgap: ${getToken('spacing-1')};\n\t\t\talign-items: center;\n\t\t\tdisplay: inline-flex;\n\t\t\tpadding: 4px 2px;\n\t\t\tposition: relative;\n\t\t}\n\n\t\t.check-input-label,\n\t\t.check-input {\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t.check-input {\n\t\t\t--checkbox-input-size: ${getToken('font-size-4')};\n\n\t\t\tcolor: ${color('color-text-tertiary')};\n\t\t\twidth: var(--checkbox-input-size);\n\t\t\theight: var(--checkbox-input-size);\n\t\t\tbackground: ${color('color-neutral-0')};\n\t\t\tappearance: none;\n\t\t\toutline: none;\n\t\t\tborder-style: solid;\n\t\t\tborder-radius: ${getToken('border-radius-s')};\n\t\t\tborder-color: ${color('color-border')};\n\t\t\tborder-width: ${getToken('border-thin')};\n\t\t\tmargin: 0;\n\t\t\t${transition([\n\t\t\t\t{\n\t\t\t\t\tproperty: 'border',\n\t\t\t\t\t...baseTransitionConfig,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tproperty: 'background',\n\t\t\t\t\t...baseTransitionConfig,\n\t\t\t\t},\n\t\t\t])};\n\t\t}\n\n\t\t.check-input:indeterminate,\n\t\t.check-input:checked {\n\t\t\tbackground: ${color('color-primary-60')};\n\t\t\tborder-color: ${color('color-primary-60')};\n\t\t}\n\n\t\t${disabled('.check-input')} {\n\t\t\tbackground: ${color('color-background-tertiary')};\n\t\t\tcursor: not-allowed;\n\t\t}\n\n\t\t${disabled('.check-input:indeterminate')},\n\t\t${disabled('.check-input:checked')} {\n\t\t\tbackground: ${color('color-neutral-40')};\n\t\t\tborder-color: ${color('color-neutral-40')};\n\t\t}\n\n\t\t${on.hover('.check-input:indeterminate')},\n\t\t${on.hover('.check-input:checked')} {\n\t\t\tbackground: ${color('color-primary-100')};\n\t\t\tborder-color: ${color('color-primary-100')};\n\t\t}\n\n\t\t${on.hover('.check-input')} {\n\t\t\tborder-color: ${color('color-primary-100')};\n\t\t}\n\n\t\t:host([disabled]) .check-input-label {\n\t\t\tcursor: not-allowed;\n\t\t\tcolor: ${color('color-text-disabled')};\n\t\t}\n\n\t\t.check-icon,\n\t\t.indeterminate-icon {\n\t\t\t--m-icon-size: 1em;\n\t\t\t--m-icon-color: ${color('color-neutral-0')};\n\n\t\t\tposition: absolute;\n\n\t\t\tpointer-events: none;\n\t\t\tborder-width: ${getToken('border-thin')};\n\t\t\tborder-style: solid;\n\t\t\tborder-color: transparent;\n\t\t\tborder-radius: ${getToken('border-radius-s')};\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t.check-input:checked:not(:indeterminate) ~ .check-icon,\n\t\t.check-input:indeterminate:not(:checked) ~ .indeterminate-icon {\n\t\t\tdisplay: inline-flex;\n\t\t}\n\t`;\n}\n\nexport default styles;\n","import { LitElement, html } from 'lit';\n\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport styles from './checkbox.styles';\nimport { CHANGE_EVENT } from './checkbox.constants';\n\nimport '../icon';\n\nexport type CheckboxChangeEventDetail = {\n\tchecked: boolean;\n\tindeterminate: boolean;\n};\n\nexport interface CheckboxProps {\n\tid?: string;\n\tname?: string;\n\tdisabled?: boolean;\n\tindeterminate?: boolean;\n\tchecked?: boolean;\n}\n\nexport class Checkbox extends LitElement {\n\tstatic override styles = [styles()];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\tname: { type: String, reflect: true },\n\t\t\tdisabled: { type: Boolean, reflect: true },\n\t\t\tchecked: { type: Boolean, reflect: true },\n\t\t\tindeterminate: { type: Boolean, reflect: true },\n\t\t};\n\t}\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.name = undefined;\n\t\tthis.disabled = false;\n\t\tthis.checked = false;\n\t\tthis.indeterminate = false;\n\t}\n\n\t/**\n\t * Id of the checkbox input.\n\t */\n\tdeclare id: string;\n\n\t/**\n\t * Name of the checkbox input.\n\t */\n\tdeclare name: CheckboxProps['name'];\n\n\t/**\n\t * Option to disable the checkbox.\n\t */\n\tdeclare disabled: boolean;\n\n\t/**\n\t * Option to disable the checkbox.\n\t */\n\tdeclare checked: boolean;\n\n\t/**\n\t * Option to set the checkbox as indeterminate.\n\t */\n\tdeclare indeterminate: boolean;\n\n\t/**\n\t * Input element within component.\n\t */\n\tprivate declare input: HTMLInputElement;\n\n\t/**\n\t * Label element within component.\n\t */\n\tprivate declare label: HTMLLabelElement;\n\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback();\n\n\t\tthis.setAttribute('role', 'checkbox');\n\t}\n\n\toverride disconnectedCallback(): void {\n\t\tsuper.connectedCallback();\n\t}\n\n\toverride firstUpdated(): void {\n\t\tthis.input = this.renderRoot.querySelector('input')!;\n\t\tthis.label = this.renderRoot.querySelector('label')!;\n\t}\n\n\toverride updated(): void {\n\t\tthis.#setAttributes();\n\t}\n\n\toverride render() {\n\t\treturn html`\n\t\t\t<label for=\"${ifDefined(this.id)}\" class=\"check-input-label\">\n\t\t\t\t<input\n\t\t\t\t\tid=\"${ifDefined(this.id)}\"\n\t\t\t\t\tname=\"${ifDefined(this.name)}\"\n\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\tclass=\"check-input\"\n\t\t\t\t\t?disabled=\"${this.disabled}\"\n\t\t\t\t\t?checked=\"${this.checked}\"\n\t\t\t\t\t@change=${this.#handleChange}\n\t\t\t\t/>\n\t\t\t\t<m-icon name=\"check\" class=\"check-icon\"></m-icon>\n\t\t\t\t<m-icon name=\"indeterminate\" class=\"indeterminate-icon\"></m-icon>\n\t\t\t\t<slot name=\"leading\"></slot>\n\t\t\t\t<slot></slot>\n\t\t\t</label>\n\t\t`;\n\t}\n\n\toverride focus(options?: FocusOptions | undefined): void {\n\t\tthis.input?.focus(options);\n\t}\n\n\t#setAttributes(): void {\n\t\tthis.setAttribute('aria-disabled', this.disabled.toString());\n\t\tthis.setAttribute(\n\t\t\t'aria-checked',\n\t\t\tthis.indeterminate ? 'mixed' : this.checked.toString(),\n\t\t);\n\n\t\tthis.input.indeterminate = this.indeterminate;\n\t}\n\n\t#handleChange = (event: Event) => {\n\t\tconst checkboxInput = event.target as HTMLInputElement;\n\t\tconst customEvent = new CustomEvent<CheckboxChangeEventDetail>(\n\t\t\tCHANGE_EVENT,\n\t\t\t{\n\t\t\t\tcancelable: false,\n\t\t\t\tcomposed: false,\n\t\t\t\tbubbles: true,\n\t\t\t\tdetail: {\n\t\t\t\t\tchecked: checkboxInput.checked,\n\t\t\t\t\tindeterminate: checkboxInput.indeterminate,\n\t\t\t\t},\n\t\t\t},\n\t\t);\n\n\t\tthis.dispatchEvent(customEvent);\n\n\t\tthis.checked = checkboxInput.checked;\n\t\tthis.indeterminate = checkboxInput.indeterminate;\n\t};\n}\n\nwindow.customElements.define('m-checkbox', Checkbox);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-checkbox': Checkbox;\n\t}\n}\n","const CHANGE_EVENT = 'm-change';\n\nexport { CHANGE_EVENT };\n","/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nclass s extends Event{constructor(s,t,e){super(\"context-request\",{bubbles:!0,composed:!0}),this.context=s,this.callback=t,this.subscribe=e}}export{s as ContextRequestEvent};\n//# sourceMappingURL=context-request-event.js.map\n","import{ContextRequestEvent as t}from\"../context-request-event.js\";\n/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */class s{constructor(t,s,i,h){var e;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(t,s)=>{this.unsubscribe&&(this.unsubscribe!==s&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=t,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(t,s)),this.unsubscribe=s},this.host=t,void 0!==s.context){const t=s;this.context=t.context,this.callback=t.callback,this.subscribe=null!==(e=t.subscribe)&&void 0!==e&&e}else this.context=s,this.callback=i,this.subscribe=null!=h&&h;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new t(this.context,this.t,this.subscribe))}}export{s as ContextConsumer};\n//# sourceMappingURL=context-consumer.js.map\n","/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nclass t{constructor(t){this.disposers=new Map,this.updateObservers=()=>{for(const[t,s]of this.disposers)t(this.o,s)},void 0!==t&&(this.value=t)}get value(){return this.o}set value(t){this.setValue(t)}setValue(t,s=!1){const i=s||!Object.is(t,this.o);this.o=t,i&&this.updateObservers()}addCallback(t,s){if(s){this.disposers.has(t)||this.disposers.set(t,(()=>{this.disposers.delete(t)}));const s=this.disposers.get(t);t(this.value,s)}else t(this.value)}clearCallbacks(){this.disposers.clear()}}export{t as ValueNotifier};\n//# sourceMappingURL=value-notifier.js.map\n","import{ValueNotifier as t}from\"../value-notifier.js\";\n/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */class s extends Event{constructor(t){super(\"context-provider\",{bubbles:!0,composed:!0}),this.context=t}}class e extends t{constructor(t,s,e){super(void 0!==s.context?s.initialValue:e),this.onContextRequest=t=>{t.context===this.context&&t.composedPath()[0]!==this.host&&(t.stopPropagation(),this.addCallback(t.callback,t.subscribe))},this.host=t,void 0!==s.context?this.context=s.context:this.context=s,this.attachListeners(),this.host.addController(this)}attachListeners(){this.host.addEventListener(\"context-request\",this.onContextRequest)}hostConnected(){this.host.dispatchEvent(new s(this.context))}}export{e as ContextProvider,s as ContextProviderEvent};\n//# sourceMappingURL=context-provider.js.map\n","import { ContextRoot } from '@lit-labs/context';\n\nlet isAttached = false;\n\n/**\n * This function cover the late upgrade for context providers.\n * Check https://github.com/lit/lit/tree/main/packages/labs/context#late-upgraded-context-providers\n * for more details.\n */\nexport function attachContextRoot() {\n\tif (isAttached) {\n\t\treturn;\n\t}\n\n\tconst root = new ContextRoot();\n\troot.attach(document.body);\n\n\tisAttached = true;\n}\n","import{ContextRequestEvent as e}from\"./context-request-event.js\";\n/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */class t{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{const s=this.pendingContextRequests.get(t.context);if(void 0===s)return;this.pendingContextRequests.delete(t.context);const{requests:o}=s;for(const{elementRef:s,callbackRef:n}of o){const o=s.deref(),c=n.deref();void 0===o||void 0===c||o.dispatchEvent(new e(t.context,c,!0))}},this.onContextRequest=e=>{if(!0!==e.subscribe)return;const t=e.composedPath()[0],s=e.callback;let o=this.pendingContextRequests.get(e.context);void 0===o&&this.pendingContextRequests.set(e.context,o={callbacks:new WeakMap,requests:[]});let n=o.callbacks.get(t);void 0===n&&o.callbacks.set(t,n=new WeakSet),n.has(s)||(n.add(s),o.requests.push({elementRef:new WeakRef(t),callbackRef:new WeakRef(s)}))}}attach(e){e.addEventListener(\"context-request\",this.onContextRequest),e.addEventListener(\"context-provider\",this.onContextProvider)}detach(e){e.removeEventListener(\"context-request\",this.onContextRequest),e.removeEventListener(\"context-provider\",this.onContextProvider)}}export{t as ContextRoot};\n//# sourceMappingURL=context-root.js.map\n","/**\n * Function that returns a `Promise` that will resolve when all the scheduled\n * animations for the provided target are either finished or canceled.\n *\n * Optionally, you can pass an option to include the animations for the elements\n * that are part of the subtree of the provided target.\n */\nexport async function waitForAnimations(\n\tanimatable: Animatable,\n\toptions?: GetAnimationsOptions,\n): Promise<void> {\n\tconst animations = animatable.getAnimations(options);\n\tconst promises = animations.map(({ finished }) => finished);\n\tawait Promise.allSettled(promises);\n}\n","import { createContext } from '@lit-labs/context';\n\nimport type { DialogVariant } from './dialog.types';\n\nexport type DialogContext = {\n\tvariant?: DialogVariant;\n};\n\nexport const dialogContext = createContext<DialogContext>(Symbol('dialog'));\n","import { ContextProvider } from '@lit-labs/context';\nimport { html } from 'lit';\nimport type { PropertyValues } from 'lit';\nimport { classMap } from 'lit/directives/class-map.js';\n\nimport { attachContextRoot } from '../../utils/context-root';\nimport { waitForAnimations } from '../../utils/wait-for-animations';\nimport { Component } from '../component';\nimport { dialogContext } from './dialog.context';\nimport { styles } from './dialog.styles';\nimport type { DialogProps } from './dialog.types';\n\nattachContextRoot();\n\nexport class Dialog extends Component {\n\tstatic override styles = [styles()];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\topen: { type: Boolean, reflect: true },\n\t\t\tsize: { type: String, reflect: true },\n\t\t\tvariant: { type: String, reflect: true },\n\t\t};\n\t}\n\n\t/**\n\t * Determine if the dialog is open or closed\n\t */\n\tdeclare open: Required<DialogProps['open']>;\n\n\t/**\n\t * Determines the size of the dialog\n\t */\n\tdeclare size: DialogProps['size'];\n\n\t/**\n\t * Determines the style of the dialog\n\t */\n\tdeclare variant: DialogProps['variant'];\n\n\t#contextProvider = new ContextProvider(this, dialogContext, {\n\t\tvariant: 'neutral',\n\t});\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.open = false;\n\t\tthis.size = 'small';\n\t\tthis.variant = 'neutral';\n\t}\n\n\toverride render() {\n\t\treturn html`\n\t\t\t<dialog\n\t\t\t\tclass=\"${classMap({\n\t\t\t\t\t'-size-small': this.size === 'small' || !this.size,\n\t\t\t\t\t'-size-medium': this.size === 'medium',\n\t\t\t\t\t'-size-large': this.size === 'large',\n\t\t\t\t\t'-size-extra-large': this.size === 'extra-large',\n\t\t\t\t})}\"\n\t\t\t\t@click=${this.#handleClick}\n\t\t\t\t@cancel=${this.#handleCancel}\n\t\t\t>\n\t\t\t\t<slot name=\"header\"></slot>\n\t\t\t\t<slot name=\"body\"></slot>\n\t\t\t\t<slot name=\"footer\"></slot>\n\t\t\t\t<slot name=\"actions\"></slot>\n\t\t\t</dialog>\n\t\t`;\n\t}\n\n\toverride updated(changedProperties: PropertyValues<this>) {\n\t\tsuper.updated(changedProperties);\n\n\t\tif (changedProperties.has('variant')) {\n\t\t\tthis.#contextProvider.setValue({\n\t\t\t\tvariant: this.variant ?? 'neutral',\n\t\t\t});\n\t\t}\n\n\t\tif (changedProperties.has('open')) {\n\t\t\tthis.#toggleVisibility(changedProperties.get('open'));\n\t\t}\n\t}\n\n\t/**\n\t * Make the dialog visible\n\t */\n\tshow(): void {\n\t\tthis.open = true;\n\t}\n\n\t/**\n\t * Hide the dialog\n\t */\n\thide(): void {\n\t\tthis.open = false;\n\t}\n\n\tget #dialog(): HTMLDialogElement | null {\n\t\treturn this.renderRoot?.querySelector('dialog');\n\t}\n\n\tasync #toggleVisibility(wasOpen?: boolean): Promise<void> {\n\t\tconst dialog = this.#dialog;\n\n\t\tif (dialog) {\n\t\t\tif (!wasOpen && this.open) {\n\t\t\t\tthis.style.display = 'block';\n\t\t\t\tthis.#emitLifecycleEvent('m-opening');\n\t\t\t\tdialog.showModal();\n\t\t\t\tawait waitForAnimations(dialog);\n\t\t\t\tthis.#emitLifecycleEvent('m-opened');\n\t\t\t} else if (wasOpen && !this.open) {\n\t\t\t\tthis.#emitLifecycleEvent('m-closing');\n\t\t\t\tdialog.classList.add('is-hiding');\n\t\t\t\tawait waitForAnimations(dialog);\n\t\t\t\tdialog.classList.remove('is-hiding');\n\t\t\t\tdialog.close();\n\t\t\t\tthis.#emitLifecycleEvent('m-closed');\n\t\t\t\tthis.style.display = 'none';\n\t\t\t} else if (wasOpen == null && !this.open) {\n\t\t\t\tthis.style.display = 'none';\n\t\t\t}\n\t\t}\n\t}\n\n\t#emitLifecycleEvent(type: string): void {\n\t\tthis.emit(type, {\n\t\t\tcancelable: false,\n\t\t\tbubbles: false,\n\t\t});\n\t}\n\n\t#emitCloseEvent(): void {\n\t\tif (this.open) {\n\t\t\tthis.emit('m-close');\n\t\t}\n\t}\n\n\t#handleClick(event: MouseEvent): void {\n\t\tconst isClickingOnTheDialog = event.target instanceof HTMLDialogElement;\n\t\tconst rect = this.#dialog?.getBoundingClientRect();\n\n\t\tif (isClickingOnTheDialog && rect) {\n\t\t\tconst isClickingOnTheBackdrop =\n\t\t\t\tevent.clientY < rect.top ||\n\t\t\t\tevent.clientY > rect.bottom ||\n\t\t\t\tevent.clientX < rect.left ||\n\t\t\t\tevent.clientX > rect.right;\n\n\t\t\tif (isClickingOnTheBackdrop) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tevent.stopPropagation();\n\t\t\t\tthis.#emitCloseEvent();\n\t\t\t}\n\t\t}\n\t}\n\n\t#handleCancel(event: Event): void {\n\t\tevent.preventDefault();\n\t\tthis.#emitCloseEvent();\n\t}\n}\n\nwindow.customElements.define('m-dialog', Dialog);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-dialog': Dialog;\n\t}\n}\n","import { css } from 'lit';\n\nimport { transition } from '../../styles';\nimport color from '../../utils/get-color-token';\nimport token from '../../utils/get-token';\nimport toRem from '../../utils/to-rem';\n\nexport function styles() {\n\treturn css`\n\t\t:host {\n\t\t\t--margin: ${token('spacing-6')};\n\t\t\t--padding: ${token('spacing-6')};\n\t\t\t--gap: ${token('spacing-6')};\n\t\t}\n\n\t\tslot::slotted(*) {\n\t\t\tpadding-inline: var(--padding);\n\t\t\tpadding-block: calc(var(--gap) / 2);\n\t\t}\n\n\t\tdialog {\n\t\t\tbox-sizing: border-box;\n\t\t\tpadding: calc(var(--padding) - (var(--gap) / 2)) 0;\n\t\t\tborder: none;\n\t\t\tborder-radius: ${token('border-radius-m')};\n\t\t\tbackground-color: white;\n\t\t\tbox-shadow: ${token('elevation-4')};\n\t\t\twidth: auto;\n\t\t\tmax-height: calc(100% - var(--margin));\n\n\t\t\t${transition([{ property: 'max-width' }])}\n\t\t}\n\n\t\tdialog[open] {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t}\n\n\t\tdialog.-size-small {\n\t\t\tmax-width: min(${toRem('400px')}, calc(100vw - var(--margin)));\n\t\t}\n\n\t\tdialog.-size-medium {\n\t\t\tmax-width: min(${toRem('600px')}, calc(100% - var(--margin)));\n\t\t}\n\n\t\tdialog.-size-large {\n\t\t\tmax-width: min(${toRem('800px')}, calc(100% - var(--margin)));\n\t\t}\n\n\t\tdialog.-size-extra-large {\n\t\t\tmax-width: min(${toRem('1000px')}, calc(100% - var(--margin)));\n\t\t}\n\n\t\tdialog::backdrop {\n\t\t\tbackground-color: ${color('color-background-secondary-inverted', 0.4)};\n\t\t}\n\n\t\t@media (prefers-reduced-motion: no-preference) {\n\t\t\tdialog[open] {\n\t\t\t\tanimation: show-dialog 0.25s ease forwards;\n\t\t\t}\n\n\t\t\tdialog.is-hiding {\n\t\t\t\tanimation: hide-dialog 0.25s ease forwards;\n\t\t\t}\n\n\t\t\tdialog[open]::backdrop {\n\t\t\t\tanimation: show-backdrop 0.25s ease forwards;\n\t\t\t}\n\n\t\t\tdialog.is-hiding::backdrop {\n\t\t\t\tanimation: hide-backdrop 0.25s ease forwards;\n\t\t\t}\n\t\t}\n\n\t\t@keyframes show-dialog {\n\t\t\tfrom {\n\t\t\t\topacity: 0;\n\t\t\t\ttransform: translateY(250px);\n\t\t\t}\n\t\t}\n\n\t\t@keyframes hide-dialog {\n\t\t\tto {\n\t\t\t\topacity: 0;\n\t\t\t\ttransform: scale(0.75);\n\t\t\t}\n\t\t}\n\n\t\t@keyframes show-backdrop {\n\t\t\tfrom {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t}\n\n\t\t@keyframes hide-backdrop {\n\t\t\tto {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t}\n\t`;\n}\n","export const DIALOG_SIZES = [\n\t'small',\n\t'medium',\n\t'large',\n\t'extra-large',\n] as const;\n\nexport type DialogSize = (typeof DIALOG_SIZES)[number];\n\nexport const DIALOG_VARIANTS = [\n\t'neutral',\n\t'success',\n\t'warning',\n\t'danger',\n] as const;\n\nexport type DialogVariant = (typeof DIALOG_VARIANTS)[number];\n\nexport interface DialogProps {\n\t/**\n\t * Determine if the dialog is open or closed\n\t */\n\topen?: boolean;\n\n\t/**\n\t * Determines the size of the dialog\n\t */\n\tsize?: DialogSize;\n\n\t/**\n\t * Determines the style of the dialog\n\t */\n\tvariant?: DialogVariant;\n}\n","import { ContextConsumer } from '@lit-labs/context';\nimport type { ContextCallback } from '@lit-labs/context';\n\nimport { Button } from '../button';\nimport { dialogContext } from './dialog.context';\nimport type { DialogContext } from './dialog.context';\n\nexport class DialogActionPrimary extends Button {\n\tprivate declare context;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.type = 'button';\n\t\tthis.variant = 'primary';\n\n\t\tthis.context = new ContextConsumer(\n\t\t\tthis,\n\t\t\tdialogContext,\n\t\t\tthis.#contextCallback,\n\t\t\ttrue,\n\t\t);\n\t}\n\n\t#contextCallback: ContextCallback<DialogContext> = (value) => {\n\t\tswitch (value.variant) {\n\t\t\tcase 'danger':\n\t\t\t\tthis.variant = 'danger';\n\t\t\t\tbreak;\n\t\t\tcase 'warning':\n\t\t\t\tthis.variant = 'warning';\n\t\t\t\tbreak;\n\t\t\tcase 'neutral':\n\t\t\tcase 'success':\n\t\t\tdefault:\n\t\t\t\tthis.variant = 'primary';\n\t\t}\n\t};\n}\n\nwindow.customElements.define('m-dialog-action-primary', DialogActionPrimary);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-dialog-action-primary': DialogActionPrimary;\n\t}\n}\n","import { Button } from '../button';\n\nexport class DialogActionSecondary extends Button {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.type = 'button';\n\t\tthis.variant = 'secondary';\n\t}\n}\n\nwindow.customElements.define(\n\t'm-dialog-action-secondary',\n\tDialogActionSecondary,\n);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-dialog-action-secondary': DialogActionSecondary;\n\t}\n}\n","import { Button } from '../button';\n\nexport class DialogActionTertiary extends Button {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.type = 'button';\n\t\tthis.variant = 'tertiary';\n\t}\n}\n\nwindow.customElements.define('m-dialog-action-tertiary', DialogActionTertiary);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-dialog-action-tertiary': DialogActionTertiary;\n\t}\n}\n","import { toCSSValue } from '@loadsmart/miranda-tokens';\nimport type {\n\tSpacingTokenWithNone,\n\tSpacingToken,\n} from '@loadsmart/miranda-tokens';\n\n/**\n * Get css value for spacing token validating 'none'.\n *\n * @param {SpacingTokenWithNone} [spacing] - Spacing token or 'none'\n * @param {SpacingToken} [defaultSpacing] - Default spacing token if the provided spacing is not valid\n * @returns {string}\n */\nfunction getSpacingValue(\n\tspacing: SpacingTokenWithNone | undefined,\n\tdefaultSpacing?: SpacingToken,\n): string {\n\tconst defaultValue = defaultSpacing ? toCSSValue(defaultSpacing) : '';\n\n\tif (!spacing) {\n\t\treturn defaultValue;\n\t}\n\n\treturn (spacing === 'none' ? '0' : toCSSValue(spacing)) ?? defaultValue;\n}\n\nexport default getSpacingValue;\n","import { LitElement, html } from 'lit';\nimport type { PropertyValues } from 'lit';\n\nimport type { SpacingTokenWithNone } from '@loadsmart/miranda-tokens';\n\nimport getSpacingValue from '../../../utils/get-spacing-value';\n\nimport type { BaseLayoutProps } from './base-layout.types';\n\nexport class BaseLayout extends LitElement {\n\tstatic override get properties() {\n\t\treturn {\n\t\t\tpadding: { type: String },\n\t\t\tpaddingX: { type: String, attribute: 'padding-x' },\n\t\t\tpaddingY: { type: String, attribute: 'padding-y' },\n\t\t\tpaddingT: { type: String, attribute: 'padding-t' },\n\t\t\tpaddingB: { type: String, attribute: 'padding-b' },\n\t\t\tpaddingL: { type: String, attribute: 'padding-l' },\n\t\t\tpaddingR: { type: String, attribute: 'padding-r' },\n\t\t};\n\t}\n\n\tdeclare padding: BaseLayoutProps['padding'];\n\n\tdeclare paddingX: BaseLayoutProps['paddingX'];\n\n\tdeclare paddingY: BaseLayoutProps['paddingY'];\n\n\tdeclare paddingT: BaseLayoutProps['paddingT'];\n\n\tdeclare paddingB: BaseLayoutProps['paddingB'];\n\n\tdeclare paddingL: BaseLayoutProps['paddingL'];\n\n\tdeclare paddingR: BaseLayoutProps['paddingR'];\n\n\t/* eslint-disable-next-line class-methods-use-this */\n\tgetCSSPropertiesPrefix(): string {\n\t\treturn 'layout';\n\t}\n\n\tprotected override update(\n\t\tchangedProperties: PropertyValues<BaseLayoutProps>,\n\t): void {\n\t\tsuper.update(changedProperties);\n\n\t\tconst cssPropertiesPrefix = this.getCSSPropertiesPrefix();\n\n\t\tif (changedProperties.has('padding')) {\n\t\t\tthis.style.setProperty(\n\t\t\t\t`--m-${cssPropertiesPrefix}-padding`,\n\t\t\t\tgetSpacingValue(this.padding),\n\t\t\t);\n\t\t}\n\t\tif (changedProperties.has('paddingX')) {\n\t\t\tthis.#setOrRemoveProperty(\n\t\t\t\t`--m-${cssPropertiesPrefix}-padding-x`,\n\t\t\t\tthis.paddingX,\n\t\t\t);\n\t\t}\n\t\tif (changedProperties.has('paddingY')) {\n\t\t\tthis.#setOrRemoveProperty(\n\t\t\t\t`--m-${cssPropertiesPrefix}-padding-y`,\n\t\t\t\tthis.paddingY,\n\t\t\t);\n\t\t}\n\t\tif (changedProperties.has('paddingT')) {\n\t\t\tthis.#setOrRemoveProperty(\n\t\t\t\t`--m-${cssPropertiesPrefix}-padding-t`,\n\t\t\t\tthis.paddingT,\n\t\t\t);\n\t\t}\n\t\tif (changedProperties.has('paddingB')) {\n\t\t\tthis.#setOrRemoveProperty(\n\t\t\t\t`--m-${cssPropertiesPrefix}-padding-b`,\n\t\t\t\tthis.paddingB,\n\t\t\t);\n\t\t}\n\t\tif (changedProperties.has('paddingL')) {\n\t\t\tthis.#setOrRemoveProperty(\n\t\t\t\t`--m-${cssPropertiesPrefix}-padding-l`,\n\t\t\t\tthis.paddingL,\n\t\t\t);\n\t\t}\n\t\tif (changedProperties.has('paddingR')) {\n\t\t\tthis.#setOrRemoveProperty(\n\t\t\t\t`--m-${cssPropertiesPrefix}-padding-r`,\n\t\t\t\tthis.paddingR,\n\t\t\t);\n\t\t}\n\t}\n\n\toverride render() {\n\t\treturn html`<slot></slot>`;\n\t}\n\n\t#setOrRemoveProperty = (\n\t\tcssVar: string,\n\t\tvalue: SpacingTokenWithNone | undefined,\n\t) => {\n\t\tif (value) {\n\t\t\tthis.style.setProperty(cssVar, getSpacingValue(value));\n\t\t} else {\n\t\t\tthis.style.removeProperty(cssVar);\n\t\t}\n\t};\n}\n","import { css, unsafeCSS } from 'lit';\n\nexport function getBaseLayoutStyles(cssPropertiesPrefix: string) {\n\treturn css`\n\t\t:host {\n\t\t\tpadding-block-start: var(\n\t\t\t\t--m-${unsafeCSS(cssPropertiesPrefix)}-padding-t,\n\t\t\t\tvar(\n\t\t\t\t\t--m-${unsafeCSS(cssPropertiesPrefix)}-padding-y,\n\t\t\t\t\tvar(--m-${unsafeCSS(cssPropertiesPrefix)}-padding, 0)\n\t\t\t\t)\n\t\t\t);\n\t\t\tpadding-block-end: var(\n\t\t\t\t--m-${unsafeCSS(cssPropertiesPrefix)}-padding-b,\n\t\t\t\tvar(\n\t\t\t\t\t--m-${unsafeCSS(cssPropertiesPrefix)}-padding-y,\n\t\t\t\t\tvar(--m-${unsafeCSS(cssPropertiesPrefix)}-padding, 0)\n\t\t\t\t)\n\t\t\t);\n\t\t\tpadding-inline-start: var(\n\t\t\t\t--m-${unsafeCSS(cssPropertiesPrefix)}-padding-l,\n\t\t\t\tvar(\n\t\t\t\t\t--m-${unsafeCSS(cssPropertiesPrefix)}-padding-x,\n\t\t\t\t\tvar(--m-${unsafeCSS(cssPropertiesPrefix)}-padding, 0)\n\t\t\t\t)\n\t\t\t);\n\t\t\tpadding-inline-end: var(\n\t\t\t\t--m-${unsafeCSS(cssPropertiesPrefix)}-padding-r,\n\t\t\t\tvar(\n\t\t\t\t\t--m-${unsafeCSS(cssPropertiesPrefix)}-padding-x,\n\t\t\t\t\tvar(--m-${unsafeCSS(cssPropertiesPrefix)}-padding, 0)\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t`;\n}\n","import type { SpacingToken } from '@loadsmart/miranda-tokens';\n\nimport type { GroupProps } from './group.types';\n\nexport const defaultGroupProps: Required<\n\tPick<GroupProps, 'align' | 'justify'>\n> & {\n\tgap: SpacingToken;\n} = {\n\tgap: 'spacing-4',\n\talign: 'stretch',\n\tjustify: 'flex-start',\n};\n","import { html } from 'lit';\nimport type { PropertyValues } from 'lit';\n\nimport getSpacingValue from '../../../utils/get-spacing-value';\n\nimport { BaseLayout, getBaseLayoutStyles } from '../base-layout';\n\nimport type { GroupProps } from './group.types';\nimport { defaultGroupProps } from './group.constants';\nimport { groupStyles } from './group.styles';\n\nexport class Group extends BaseLayout {\n\tprotected static CSSPropertiesPrefix = 'group';\n\n\tstatic override styles = [\n\t\tgetBaseLayoutStyles(Group.CSSPropertiesPrefix),\n\t\tgroupStyles(),\n\t];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\t...super.properties,\n\t\t\tgap: { type: String },\n\t\t\talign: { type: String },\n\t\t\tjustify: { type: String },\n\t\t};\n\t}\n\n\tdeclare gap: GroupProps['gap'];\n\n\tdeclare align: GroupProps['align'];\n\n\tdeclare justify: GroupProps['justify'];\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.gap = defaultGroupProps.gap;\n\t\tthis.align = defaultGroupProps.align;\n\t\tthis.justify = defaultGroupProps.justify;\n\t}\n\n\t/* eslint-disable-next-line class-methods-use-this */\n\toverride getCSSPropertiesPrefix(): string {\n\t\treturn Group.CSSPropertiesPrefix;\n\t}\n\n\tprotected override update(\n\t\tchangedProperties: PropertyValues<GroupProps>,\n\t): void {\n\t\tsuper.update(changedProperties);\n\n\t\tthis.style.setProperty(\n\t\t\t'--m-group-gap',\n\t\t\tgetSpacingValue(this.gap, defaultGroupProps.gap),\n\t\t);\n\t\tthis.style.setProperty(\n\t\t\t'--m-group-align',\n\t\t\tthis.align || defaultGroupProps.align,\n\t\t);\n\t\tthis.style.setProperty(\n\t\t\t'--m-group-justify',\n\t\t\tthis.justify || defaultGroupProps.justify,\n\t\t);\n\t}\n\n\toverride render() {\n\t\treturn html`<slot></slot>`;\n\t}\n}\n\nwindow.customElements.define('m-group', Group);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-group': Group;\n\t}\n}\n","import { css, unsafeCSS } from 'lit';\n\nimport token from '../../../utils/get-token';\n\nimport { defaultGroupProps } from './group.constants';\n\nexport function groupStyles() {\n\treturn css`\n\t\t:host {\n\t\t\t--m-group-gap: ${token(defaultGroupProps.gap)};\n\t\t\t--m-group-align: ${unsafeCSS(defaultGroupProps.align)};\n\t\t\t--m-group-justify: ${unsafeCSS(defaultGroupProps.justify)};\n\n\t\t\tdisplay: flex;\n\t\t\tflex-wrap: wrap;\n\t\t\tgap: var(--m-group-gap);\n\t\t\talign-items: var(--m-group-align);\n\t\t\tjustify-content: var(--m-group-justify);\n\t\t}\n\t`;\n}\n","import { Group } from '../layout/group';\n\nexport class DialogActions extends Group {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.align = 'center';\n\t\tthis.gap = 'spacing-3';\n\t\tthis.justify = 'flex-end';\n\t}\n\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback();\n\n\t\tthis.setAttribute('slot', 'actions');\n\t}\n}\n\nwindow.customElements.define('m-dialog-actions', DialogActions);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-dialog-actions': DialogActions;\n\t}\n}\n","import { html, LitElement } from 'lit';\n\nimport { styles } from './dialog-body.styles';\n\nexport class DialogBody extends LitElement {\n\tstatic override styles = [styles()];\n\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback();\n\n\t\tthis.setAttribute('slot', 'body');\n\t}\n\n\toverride render() {\n\t\treturn html`<slot></slot>`;\n\t}\n}\n\nwindow.customElements.define('m-dialog-body', DialogBody);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-dialog-body': DialogBody;\n\t}\n}\n","import { css } from 'lit';\n\nimport { typography } from '../../styles';\n\nexport function styles() {\n\treturn css`\n\t\t:host {\n\t\t\toverflow-y: auto;\n\t\t\toverscroll-behavior: contain;\n\n\t\t\t${typography('body-md')};\n\t\t}\n\t`;\n}\n","import { CloseButton } from '../close-button';\n\nexport class DialogClose extends CloseButton {\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.size = 'large';\n\t}\n\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback();\n\n\t\tthis.setAttribute('slot', 'close');\n\t}\n}\n\nwindow.customElements.define('m-dialog-close', DialogClose);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-dialog-close': DialogClose;\n\t}\n}\n","import { html, LitElement } from 'lit';\n\nexport class DialogFooter extends LitElement {\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback();\n\n\t\tthis.setAttribute('slot', 'footer');\n\t}\n\n\toverride render() {\n\t\treturn html`<slot></slot>`;\n\t}\n}\n\nwindow.customElements.define('m-dialog-footer', DialogFooter);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-dialog-footer': DialogFooter;\n\t}\n}\n","export const ALIGN_ITEMS_VALUES = [\n\t'center',\n\t'flex-start',\n\t'flex-end',\n\t'stretch',\n] as const;\n\nexport const JUSTIFY_CONTENT_VALUES = [\n\t'center',\n\t'flex-start',\n\t'flex-end',\n\t'space-between',\n\t'space-around',\n\t'space-evenly',\n] as const;\n","import type { SpacingToken } from '@loadsmart/miranda-tokens';\nimport type { BoxProps } from './box.types';\n\nexport const defaultBoxProps: Required<\n\tPick<\n\t\tBoxProps,\n\t\t'padding' | 'borderRadius' | 'borderWidth' | 'borderColor' | 'textAlign'\n\t>\n> & { padding: SpacingToken } = {\n\tpadding: 'spacing-4',\n\tborderRadius: 'border-radius-s',\n\tborderWidth: 'border-none',\n\tborderColor: 'color-background-highlight',\n\ttextAlign: 'left',\n};\n","import { html } from 'lit';\nimport type { PropertyValues } from 'lit';\n\nimport { toCSSValue } from '@loadsmart/miranda-tokens';\n\nimport { BaseLayout, getBaseLayoutStyles } from '../base-layout';\n\nimport type { BoxProps } from './box.types';\nimport { defaultBoxProps } from './box.constants';\nimport { boxStyles } from './box.styles';\n\nexport class Box extends BaseLayout {\n\tprotected static CSSPropertiesPrefix = 'box';\n\n\tstatic override styles = [\n\t\tgetBaseLayoutStyles(Box.CSSPropertiesPrefix),\n\t\tboxStyles(),\n\t];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\t...super.properties,\n\t\t\tbackgroundColor: { type: String, attribute: 'background-color' },\n\t\t\tborderRadius: { type: String, attribute: 'border-radius' },\n\t\t\tborderWidth: { type: String, attribute: 'border-width' },\n\t\t\tborderColor: { type: String, attribute: 'border-color' },\n\t\t\ttextAlign: { type: String, attribute: 'text-align' },\n\t\t};\n\t}\n\n\tdeclare backgroundColor: BoxProps['backgroundColor'];\n\n\tdeclare borderRadius: BoxProps['borderRadius'];\n\n\tdeclare borderWidth: BoxProps['borderWidth'];\n\n\tdeclare borderColor: BoxProps['borderColor'];\n\n\tdeclare textAlign: BoxProps['textAlign'];\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.padding = defaultBoxProps.padding;\n\t\tthis.borderRadius = defaultBoxProps.borderRadius;\n\t\tthis.borderWidth = defaultBoxProps.borderWidth;\n\t\tthis.borderColor = defaultBoxProps.borderColor;\n\t\tthis.textAlign = defaultBoxProps.textAlign;\n\t}\n\n\t/* eslint-disable-next-line class-methods-use-this */\n\toverride getCSSPropertiesPrefix(): string {\n\t\treturn Box.CSSPropertiesPrefix;\n\t}\n\n\tprotected override update(changedProperties: PropertyValues<BoxProps>): void {\n\t\tsuper.update(changedProperties);\n\n\t\tif (changedProperties.has('backgroundColor')) {\n\t\t\tthis.style.setProperty(\n\t\t\t\t'--m-box-background-color',\n\t\t\t\t(this.backgroundColor && toCSSValue(this.backgroundColor)) ??\n\t\t\t\t\t'transparent',\n\t\t\t);\n\t\t}\n\t\tif (changedProperties.has('borderRadius')) {\n\t\t\tthis.style.setProperty(\n\t\t\t\t'--m-box-border-radius',\n\t\t\t\t(this.borderRadius && toCSSValue(this.borderRadius)) ??\n\t\t\t\t\ttoCSSValue(defaultBoxProps.borderRadius),\n\t\t\t);\n\t\t}\n\t\tif (changedProperties.has('borderWidth')) {\n\t\t\tthis.style.setProperty(\n\t\t\t\t'--m-box-border-width',\n\t\t\t\t(this.borderWidth && toCSSValue(this.borderWidth)) ??\n\t\t\t\t\ttoCSSValue(defaultBoxProps.borderWidth),\n\t\t\t);\n\t\t}\n\t\tif (changedProperties.has('borderColor')) {\n\t\t\tthis.style.setProperty(\n\t\t\t\t'--m-box-border-color',\n\t\t\t\t(this.borderColor && toCSSValue(this.borderColor)) ??\n\t\t\t\t\ttoCSSValue(defaultBoxProps.borderColor),\n\t\t\t);\n\t\t}\n\t\tif (changedProperties.has('textAlign')) {\n\t\t\tthis.style.setProperty(\n\t\t\t\t'--m-box-text-align',\n\t\t\t\tthis.textAlign || defaultBoxProps.textAlign,\n\t\t\t);\n\t\t}\n\t}\n\n\toverride render() {\n\t\treturn html`<slot></slot>`;\n\t}\n}\n\nwindow.customElements.define('m-box', Box);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-box': Box;\n\t}\n}\n","import { css, unsafeCSS } from 'lit';\n\nimport token from '../../../utils/get-token';\nimport color from '../../../utils/get-color-token';\n\nimport { defaultBoxProps } from './box.constants';\n\nexport function boxStyles() {\n\treturn css`\n\t\t:host {\n\t\t\t--m-box-padding: ${token(defaultBoxProps.padding)};\n\t\t\t--m-box-background-color: transparent;\n\t\t\t--m-box-border-radius: ${token(defaultBoxProps.borderRadius)};\n\t\t\t--m-box-border-width: ${token(defaultBoxProps.borderWidth)};\n\t\t\t--m-box-border-color: ${color(defaultBoxProps.borderColor)};\n\t\t\t--m-box-text-align: ${unsafeCSS(defaultBoxProps.textAlign)};\n\n\t\t\tbox-sizing: border-box;\n\n\t\t\tbackground-color: var(--m-box-background-color);\n\t\t\tborder-radius: var(--m-box-border-radius);\n\t\t\tborder-style: solid;\n\t\t\tborder-width: var(--m-box-border-width);\n\t\t\tborder-color: var(--m-box-border-color);\n\t\t\ttext-align: var(--m-box-text-align);\n\t\t}\n\t`;\n}\n","import type { SpacingToken } from '@loadsmart/miranda-tokens';\nimport type { StackProps } from './stack.types';\n\nexport const defaultStackProps: Required<\n\tPick<StackProps, 'align' | 'justify'>\n> & {\n\tgap: SpacingToken;\n} = {\n\tgap: 'spacing-4',\n\talign: 'stretch',\n\tjustify: 'flex-start',\n};\n","import { html } from 'lit';\nimport type { PropertyValues } from 'lit';\n\nimport getSpacingValue from '../../../utils/get-spacing-value';\n\nimport { BaseLayout, getBaseLayoutStyles } from '../base-layout';\n\nimport type { StackProps } from './stack.types';\nimport { defaultStackProps } from './stack.constants';\nimport { stackStyles } from './stack.styles';\n\nexport class Stack extends BaseLayout {\n\tprotected static CSSPropertiesPrefix = 'stack';\n\n\tstatic override styles = [\n\t\tgetBaseLayoutStyles(Stack.CSSPropertiesPrefix),\n\t\tstackStyles(),\n\t];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\t...super.properties,\n\t\t\tgap: { type: String },\n\t\t\talign: { type: String },\n\t\t\tjustify: { type: String },\n\t\t};\n\t}\n\n\tdeclare gap: StackProps['gap'];\n\n\tdeclare align: StackProps['align'];\n\n\tdeclare justify: StackProps['justify'];\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.gap = defaultStackProps.gap;\n\t\tthis.align = defaultStackProps.align;\n\t\tthis.justify = defaultStackProps.justify;\n\t}\n\n\t/* eslint-disable-next-line class-methods-use-this */\n\toverride getCSSPropertiesPrefix(): string {\n\t\treturn Stack.CSSPropertiesPrefix;\n\t}\n\n\tprotected override update(\n\t\tchangedProperties: PropertyValues<StackProps>,\n\t): void {\n\t\tsuper.update(changedProperties);\n\n\t\tthis.style.setProperty(\n\t\t\t'--m-stack-gap',\n\t\t\tgetSpacingValue(this.gap, defaultStackProps.gap),\n\t\t);\n\t\tthis.style.setProperty(\n\t\t\t'--m-stack-align',\n\t\t\tthis.align || defaultStackProps.align,\n\t\t);\n\t\tthis.style.setProperty(\n\t\t\t'--m-stack-justify',\n\t\t\tthis.justify || defaultStackProps.justify,\n\t\t);\n\t}\n\n\toverride render() {\n\t\treturn html`<slot></slot>`;\n\t}\n}\n\nwindow.customElements.define('m-stack', Stack);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-stack': Stack;\n\t}\n}\n","import { css, unsafeCSS } from 'lit';\n\nimport token from '../../../utils/get-token';\n\nimport { defaultStackProps } from './stack.constants';\n\nexport function stackStyles() {\n\treturn css`\n\t\t:host {\n\t\t\t--m-stack-gap: ${token(defaultStackProps.gap)};\n\t\t\t--m-stack-align: ${unsafeCSS(defaultStackProps.align)};\n\t\t\t--m-stack-justify: ${unsafeCSS(defaultStackProps.justify)};\n\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\n\t\t\trow-gap: var(--m-stack-gap);\n\t\t\talign-items: var(--m-stack-align);\n\t\t\tjustify-content: var(--m-stack-justify);\n\t\t}\n\t`;\n}\n","import { getToken } from '@loadsmart/miranda-tokens';\nimport type { SpacingToken } from '@loadsmart/miranda-tokens';\n\nimport type { GridProps } from './grid.types';\n\nexport const defaultGridProps: Required<Pick<GridProps, 'minColumnWidth'>> & {\n\tgap: SpacingToken;\n} = {\n\tgap: 'spacing-4',\n\tminColumnWidth: getToken('spacing-30') as string,\n};\n","import { html } from 'lit';\nimport type { PropertyValues } from 'lit';\n\nimport getSpacingValue from '../../../utils/get-spacing-value';\n\nimport { BaseLayout, getBaseLayoutStyles } from '../base-layout';\n\nimport type { GridProps } from './grid.types';\nimport { defaultGridProps } from './grid.constants';\nimport { gridStyles } from './grid.styles';\n\nexport class Grid extends BaseLayout {\n\tprotected static CSSPropertiesPrefix = 'grid';\n\n\tstatic override styles = [\n\t\tgetBaseLayoutStyles(Grid.CSSPropertiesPrefix),\n\t\tgridStyles(),\n\t];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\t...super.properties,\n\t\t\tgap: { type: String },\n\t\t\trowGap: { type: String, attribute: 'row-gap' },\n\t\t\tcolumnGap: { type: String, attribute: 'column-gap' },\n\t\t\tminColumnWidth: { type: String, attribute: 'min-column-width' },\n\t\t};\n\t}\n\n\tdeclare gap: GridProps['gap'];\n\n\tdeclare rowGap: GridProps['rowGap'];\n\n\tdeclare columnGap: GridProps['columnGap'];\n\n\tdeclare minColumnWidth: GridProps['minColumnWidth'];\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.gap = defaultGridProps.gap;\n\t\tthis.minColumnWidth = defaultGridProps.minColumnWidth;\n\t}\n\n\t/* eslint-disable-next-line class-methods-use-this */\n\toverride getCSSPropertiesPrefix(): string {\n\t\treturn Grid.CSSPropertiesPrefix;\n\t}\n\n\tprotected override update(\n\t\tchangedProperties: PropertyValues<GridProps>,\n\t): void {\n\t\tsuper.update(changedProperties);\n\n\t\tif (changedProperties.has('gap')) {\n\t\t\tthis.style.setProperty(\n\t\t\t\t'--m-grid-gap',\n\t\t\t\tgetSpacingValue(this.gap, defaultGridProps.gap),\n\t\t\t);\n\t\t}\n\t\tif (changedProperties.has('rowGap')) {\n\t\t\tif (this.rowGap) {\n\t\t\t\tthis.style.setProperty(\n\t\t\t\t\t'--m-grid-row-gap',\n\t\t\t\t\tgetSpacingValue(this.rowGap),\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tthis.style.removeProperty('--m-grid-row-gap');\n\t\t\t}\n\t\t}\n\t\tif (changedProperties.has('columnGap')) {\n\t\t\tif (this.columnGap) {\n\t\t\t\tthis.style.setProperty(\n\t\t\t\t\t'--m-grid-column-gap',\n\t\t\t\t\tgetSpacingValue(this.columnGap),\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tthis.style.removeProperty('--m-grid-column-gap');\n\t\t\t}\n\t\t}\n\t\tif (changedProperties.has('minColumnWidth')) {\n\t\t\tthis.style.setProperty(\n\t\t\t\t'--m-grid-min-column-width',\n\t\t\t\tthis.minColumnWidth || defaultGridProps.minColumnWidth,\n\t\t\t);\n\t\t}\n\t}\n\n\toverride render() {\n\t\treturn html`<slot></slot>`;\n\t}\n}\n\nwindow.customElements.define('m-grid', Grid);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-grid': Grid;\n\t}\n}\n","import { css, unsafeCSS } from 'lit';\n\nimport token from '../../../utils/get-token';\n\nimport { defaultGridProps } from './grid.constants';\n\nexport function gridStyles() {\n\treturn css`\n\t\t:host {\n\t\t\t--m-grid-gap: ${token(defaultGridProps.gap)};\n\t\t\t--m-grid-min-column-width: ${unsafeCSS(defaultGridProps.minColumnWidth)};\n\n\t\t\tdisplay: grid;\n\n\t\t\trow-gap: var(--m-grid-row-gap, var(--m-grid-gap));\n\t\t\tcolumn-gap: var(--m-grid-column-gap, var(--m-grid-gap));\n\n\t\t\tgrid-template-columns: repeat(\n\t\t\t\tauto-fit,\n\t\t\t\tminmax(min(var(--m-grid-min-column-width), 100%), 1fr)\n\t\t\t);\n\t\t}\n\t`;\n}\n","import type { SpacingToken } from '@loadsmart/miranda-tokens';\nimport type { SidebarProps } from './sidebar.types';\n\nexport const defaultSidebarProps: Required<\n\tPick<SidebarProps, 'sideWidth' | 'minContentWidth' | 'reversed'>\n> & {\n\tgap: SpacingToken;\n} = {\n\tgap: 'spacing-4',\n\tsideWidth: 'auto',\n\tminContentWidth: '50%',\n\treversed: false,\n};\n","import { css, unsafeCSS } from 'lit';\n\nimport token from '../../../utils/get-token';\n\nimport { defaultSidebarProps } from './sidebar.constants';\n\nexport function getFlexDirectionValue(reversed?: boolean) {\n\treturn reversed ? 'row-reverse' : 'row';\n}\n\nexport function sidebarStyles() {\n\treturn css`\n\t\t:host {\n\t\t\t--m-sidebar-gap: ${token(defaultSidebarProps.gap)};\n\t\t\t--m-sidebar-flex-direction: ${unsafeCSS(\n\t\t\t\tgetFlexDirectionValue(defaultSidebarProps.reversed),\n\t\t\t)};\n\t\t\t--m-sidebar-side-width: ${unsafeCSS(defaultSidebarProps.sideWidth)};\n\t\t\t--m-sidebar-min-content-width: ${unsafeCSS(\n\t\t\t\tdefaultSidebarProps.minContentWidth,\n\t\t\t)};\n\n\t\t\tdisplay: flex;\n\t\t\tflex-wrap: wrap;\n\t\t\tflex-direction: var(--m-sidebar-flex-direction);\n\n\t\t\tgap: var(--m-sidebar-gap);\n\t\t}\n\n\t\tslot[name='sidebar']::slotted(*) {\n\t\t\tflex-basis: var(--m-sidebar-side-width);\n\t\t\tflex-grow: 1;\n\t\t}\n\n\t\tslot[name='content']::slotted(*) {\n\t\t\tflex-basis: 0;\n\t\t\tflex-grow: 999;\n\t\t\tmin-width: var(--m-sidebar-min-content-width);\n\t\t}\n\t`;\n}\n","import { html } from 'lit';\nimport type { PropertyValues } from 'lit';\n\nimport getSpacingValue from '../../../utils/get-spacing-value';\n\nimport { BaseLayout, getBaseLayoutStyles } from '../base-layout';\n\nimport type { SidebarProps } from './sidebar.types';\nimport { defaultSidebarProps } from './sidebar.constants';\nimport { sidebarStyles, getFlexDirectionValue } from './sidebar.styles';\n\nexport class Sidebar extends BaseLayout {\n\tprotected static CSSPropertiesPrefix = 'sidebar';\n\n\tstatic override styles = [\n\t\tgetBaseLayoutStyles(Sidebar.CSSPropertiesPrefix),\n\t\tsidebarStyles(),\n\t];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\t...super.properties,\n\t\t\tgap: { type: String },\n\t\t\tsideWidth: { type: String, attribute: 'side-width' },\n\t\t\tminContentWidth: { type: String, attribute: 'min-content-width' },\n\t\t\treversed: { type: Boolean },\n\t\t};\n\t}\n\n\tdeclare gap: SidebarProps['gap'];\n\n\tdeclare sideWidth: SidebarProps['sideWidth'];\n\n\tdeclare minContentWidth: SidebarProps['minContentWidth'];\n\n\tdeclare reversed: SidebarProps['reversed'];\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.gap = defaultSidebarProps.gap;\n\t\tthis.sideWidth = defaultSidebarProps.sideWidth;\n\t\tthis.minContentWidth = defaultSidebarProps.minContentWidth;\n\t\tthis.reversed = defaultSidebarProps.reversed;\n\t}\n\n\t/* eslint-disable-next-line class-methods-use-this */\n\toverride getCSSPropertiesPrefix(): string {\n\t\treturn Sidebar.CSSPropertiesPrefix;\n\t}\n\n\tprotected override update(\n\t\tchangedProperties: PropertyValues<SidebarProps>,\n\t): void {\n\t\tsuper.update(changedProperties);\n\n\t\tif (changedProperties.has('gap')) {\n\t\t\tthis.style.setProperty(\n\t\t\t\t'--m-sidebar-gap',\n\t\t\t\tgetSpacingValue(this.gap, defaultSidebarProps.gap),\n\t\t\t);\n\t\t}\n\t\tif (changedProperties.has('sideWidth')) {\n\t\t\tthis.style.setProperty(\n\t\t\t\t'--m-sidebar-side-width',\n\t\t\t\tthis.sideWidth || defaultSidebarProps.sideWidth,\n\t\t\t);\n\t\t}\n\t\tif (changedProperties.has('minContentWidth')) {\n\t\t\tthis.style.setProperty(\n\t\t\t\t'--m-sidebar-min-content-width',\n\t\t\t\tthis.minContentWidth || defaultSidebarProps.minContentWidth,\n\t\t\t);\n\t\t}\n\t\tif (changedProperties.has('reversed')) {\n\t\t\tthis.style.setProperty(\n\t\t\t\t'--m-sidebar-flex-direction',\n\t\t\t\tgetFlexDirectionValue(this.reversed),\n\t\t\t);\n\t\t}\n\t}\n\n\toverride render() {\n\t\treturn html`\n\t\t\t<slot name=\"sidebar\"></slot>\n\t\t\t<slot name=\"content\"></slot>\n\t\t`;\n\t}\n}\n\nwindow.customElements.define('m-sidebar', Sidebar);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-sidebar': Sidebar;\n\t}\n}\n","import type { SpacingToken } from '@loadsmart/miranda-tokens';\nimport type { SwitcherProps } from './switcher.types';\n\nexport const defaultSwitcherProps: Required<\n\tPick<SwitcherProps, 'threshold'>\n> & {\n\tgap: SpacingToken;\n} = {\n\tgap: 'spacing-4',\n\tthreshold: '10rem',\n};\n","import { html } from 'lit';\nimport type { PropertyValues } from 'lit';\n\nimport getSpacingValue from '../../../utils/get-spacing-value';\n\nimport { BaseLayout, getBaseLayoutStyles } from '../base-layout';\n\nimport type { SwitcherProps } from './switcher.types';\nimport { defaultSwitcherProps } from './switcher.constants';\nimport { switcherStyles } from './switcher.styles';\n\nexport class Switcher extends BaseLayout {\n\tprotected static CSSPropertiesPrefix = 'switcher';\n\n\tstatic override styles = [\n\t\tgetBaseLayoutStyles(Switcher.CSSPropertiesPrefix),\n\t\tswitcherStyles(),\n\t];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\t...super.properties,\n\t\t\tgap: { type: String },\n\t\t\trowGap: { type: String, attribute: 'row-gap' },\n\t\t\tcolumnGap: { type: String, attribute: 'column-gap' },\n\t\t\tthreshold: { type: String },\n\t\t\tlimit: { type: Number },\n\t\t};\n\t}\n\n\tdeclare gap: SwitcherProps['gap'];\n\n\tdeclare rowGap: SwitcherProps['rowGap'];\n\n\tdeclare columnGap: SwitcherProps['columnGap'];\n\n\tdeclare threshold: SwitcherProps['threshold'];\n\n\tdeclare limit: SwitcherProps['limit'];\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.gap = defaultSwitcherProps.gap;\n\t\tthis.threshold = defaultSwitcherProps.threshold;\n\t}\n\n\t/* eslint-disable-next-line class-methods-use-this */\n\toverride getCSSPropertiesPrefix(): string {\n\t\treturn Switcher.CSSPropertiesPrefix;\n\t}\n\n\tprotected override update(\n\t\tchangedProperties: PropertyValues<SwitcherProps>,\n\t): void {\n\t\tsuper.update(changedProperties);\n\n\t\tif (changedProperties.has('gap')) {\n\t\t\tthis.style.setProperty(\n\t\t\t\t'--m-switcher-gap',\n\t\t\t\tgetSpacingValue(this.gap, defaultSwitcherProps.gap),\n\t\t\t);\n\t\t}\n\t\tif (changedProperties.has('rowGap')) {\n\t\t\tif (this.rowGap) {\n\t\t\t\tthis.style.setProperty(\n\t\t\t\t\t'--m-switcher-row-gap',\n\t\t\t\t\tgetSpacingValue(this.rowGap),\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tthis.style.removeProperty('--m-switcher-row-gap');\n\t\t\t}\n\t\t}\n\t\tif (changedProperties.has('columnGap')) {\n\t\t\tif (this.columnGap) {\n\t\t\t\tthis.style.setProperty(\n\t\t\t\t\t'--m-switcher-column-gap',\n\t\t\t\t\tgetSpacingValue(this.columnGap),\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tthis.style.removeProperty('--m-switcher-column-gap');\n\t\t\t}\n\t\t}\n\t\tif (changedProperties.has('threshold')) {\n\t\t\tthis.style.setProperty(\n\t\t\t\t'--m-switcher-threshold',\n\t\t\t\tthis.threshold || defaultSwitcherProps.threshold,\n\t\t\t);\n\t\t}\n\t}\n\n\toverride render() {\n\t\tconst limitStyles = this.limit\n\t\t\t? html`\n\t\t\t\t\t<style>\n\t\t\t\t\t\t::slotted(*:nth-last-child(n + ${this.limit + 1})) {\n\t\t\t\t\t\t\tflex-basis: 100%;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t::slotted(*:nth-last-child(n + ${this.limit + 1}) ~ *) {\n\t\t\t\t\t\t\tflex-basis: 100%;\n\t\t\t\t\t\t}\n\t\t\t\t\t</style>\n\t\t\t `\n\t\t\t: '';\n\n\t\treturn html`\n\t\t\t${limitStyles}\n\t\t\t<slot></slot>\n\t\t`;\n\t}\n}\n\nwindow.customElements.define('m-switcher', Switcher);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-switcher': Switcher;\n\t}\n}\n","import { css, unsafeCSS } from 'lit';\n\nimport token from '../../../utils/get-token';\n\nimport { defaultSwitcherProps } from './switcher.constants';\n\nexport function switcherStyles() {\n\treturn css`\n\t\t:host {\n\t\t\t--m-switcher-gap: ${token(defaultSwitcherProps.gap)};\n\t\t\t--m-switcher-threshold: ${unsafeCSS(defaultSwitcherProps.threshold)};\n\n\t\t\tdisplay: flex;\n\t\t\tflex-wrap: wrap;\n\n\t\t\trow-gap: var(--m-switcher-row-gap, var(--m-switcher-gap));\n\t\t\tcolumn-gap: var(--m-switcher-column-gap, var(--m-switcher-gap));\n\t\t}\n\n\t\t::slotted(*) {\n\t\t\tflex-basis: calc((var(--m-switcher-threshold) - 100%) * 999);\n\t\t\tflex-grow: 1;\n\t\t}\n\t`;\n}\n","import { ContextConsumer } from '@lit-labs/context';\nimport { html, nothing } from 'lit';\n\nimport type { ColorToken } from '@loadsmart/miranda-tokens';\n\nimport { Component } from '../component';\nimport type { IconName } from '../icon';\nimport { styles } from './dialog-header.styles';\nimport { dialogContext } from './dialog.context';\n\nimport '../icon';\nimport '../layout';\n\nexport class DialogHeader extends Component {\n\tstatic override styles = [styles()];\n\n\t#context;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.#context = new ContextConsumer(this, dialogContext, undefined, true);\n\t}\n\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback();\n\n\t\tthis.setAttribute('slot', 'header');\n\t}\n\n\toverride render() {\n\t\treturn html`\n\t\t\t<m-group gap=\"spacing-6\" align=\"center\">\n\t\t\t\t<m-group gap=\"spacing-1\" align=\"center\" style=\"flex-grow: 1;\">\n\t\t\t\t\t${this.#icon}\n\t\t\t\t\t<h1><slot></slot></h1>\n\t\t\t\t</m-group>\n\t\t\t\t<slot name=\"close\"></slot>\n\t\t\t</m-group>\n\t\t`;\n\t}\n\n\tget #icon() {\n\t\tconst { value } = this.#context;\n\t\tlet name: IconName;\n\t\tlet color: ColorToken;\n\n\t\tswitch (value?.variant) {\n\t\t\tcase 'danger':\n\t\t\t\tname = 'attention';\n\t\t\t\tcolor = 'color-danger-60';\n\t\t\t\tbreak;\n\t\t\tcase 'warning':\n\t\t\t\tname = 'alert-circle';\n\t\t\t\tcolor = 'color-warning-60';\n\t\t\t\tbreak;\n\t\t\tcase 'success':\n\t\t\t\tname = 'check';\n\t\t\t\tcolor = 'color-success-60';\n\t\t\t\tbreak;\n\t\t\tcase 'neutral':\n\t\t\tdefault:\n\t\t\t\treturn nothing;\n\t\t}\n\n\t\treturn html`\n\t\t\t<m-icon name=${name} color=${color} size=\"24\" aria-hidden=\"true\"></m-icon>\n\t\t`;\n\t}\n}\n\nwindow.customElements.define('m-dialog-header', DialogHeader);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-dialog-header': DialogHeader;\n\t}\n}\n","import { css } from 'lit';\n\nimport { typography } from '../../styles';\n\nexport function styles() {\n\treturn css`\n\t\th1 {\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\n\t\t\t${typography('heading-md-bold')};\n\t\t}\n\t`;\n}\n","import { html, LitElement } from 'lit';\n\nimport styles from './divider.styles';\n\nexport class Divider extends LitElement {\n\tstatic override styles = [styles()];\n\n\toverride render() {\n\t\treturn html` <hr class=\"m-divider\" /> `;\n\t}\n}\n\nwindow.customElements.define('m-divider', Divider);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-divider': Divider;\n\t}\n}\n","import { css } from 'lit';\n\nimport color from '../../utils/get-color-token';\n\nfunction styles() {\n\treturn css`\n\t\t.m-divider {\n\t\t\tborder: 0;\n\t\t\tborder-block-end: solid 1px ${color('color-divider')};\n\t\t\tmargin-block-start: var(\n\t\t\t\t--m-divider-margin-top,\n\t\t\t\tvar(--m-divider-margin-y, 0)\n\t\t\t);\n\t\t\tmargin-block-end: var(\n\t\t\t\t--m-divider-margin-bottom,\n\t\t\t\tvar(--m-divider-margin-y, 0)\n\t\t\t);\n\t\t}\n\t`;\n}\n\nexport default styles;\n","import { createContext } from '@lit-labs/context';\n\nimport type { FieldSize, FieldStatus } from './field.types';\n\nexport interface FieldContext {\n\trequired?: boolean;\n\tstatus?: FieldStatus;\n\tsize?: FieldSize;\n}\n\nconst fieldContext = createContext<FieldContext>('field');\n\nexport default fieldContext;\n","import { classMap } from 'lit/directives/class-map.js';\nimport { ContextConsumer } from '@lit-labs/context';\nimport { html, nothing } from 'lit';\n\nimport fieldContext from './field.context';\n\nimport styles from './field-hint.styles';\nimport { Component } from '../component';\nimport type { FieldStatus } from './field.types';\n\nimport '../icon';\nimport '../layout/group';\n\nexport interface FieldHintProps extends HTMLElement {\n\tstatus?: FieldStatus;\n}\n\nexport class FieldHint extends Component {\n\tstatic override styles = [styles()];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\tstatus: { type: String },\n\t\t\tslot: { type: String },\n\t\t};\n\t}\n\n\t/**\n\t * Hint status type.\n\t */\n\tdeclare status: FieldHintProps['status'];\n\n\tdeclare slot: string;\n\n\tprivate field = new ContextConsumer(this, fieldContext, undefined, true);\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.slot = 'hint';\n\t}\n\n\toverride render() {\n\t\tconst commonClasses = {\n\t\t\t'-status-default': this.#getStatus() === 'default',\n\t\t\t'-status-danger': this.#getStatus() === 'danger',\n\t\t};\n\n\t\treturn html` <m-group\n\t\t\tgap=\"spacing-0-5\"\n\t\t\talign=\"center\"\n\t\t\tclass=${classMap(commonClasses)}\n\t\t>\n\t\t\t<slot name=\"leading\"\n\t\t\t\t>${this.#getStatus() === 'danger'\n\t\t\t\t\t? html`<m-icon\n\t\t\t\t\t\t\tname=\"attention\"\n\t\t\t\t\t\t\tsize=\"10\"\n\t\t\t\t\t\t\tcolor=\"color-danger-60\"\n\t\t\t\t\t ></m-icon>`\n\t\t\t\t\t: nothing}</slot\n\t\t\t>\n\t\t\t<span\n\t\t\t\tclass=${classMap({\n\t\t\t\t\thint: true,\n\t\t\t\t\t...commonClasses,\n\t\t\t\t})}\n\t\t\t\t><slot></slot>\n\t\t\t</span>\n\t\t</m-group>`;\n\t}\n\n\t#getStatus() {\n\t\treturn this.status || this.field.value?.status;\n\t}\n}\n\nwindow.customElements.define('m-field-hint', FieldHint);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-field-hint': FieldHint;\n\t}\n}\n","import { css } from 'lit';\n\nimport { typography, px } from '../../styles';\nimport color from '../../utils/get-color-token';\nimport token from '../../utils/get-token';\n\nfunction styles() {\n\treturn [\n\t\tcss`\n\t\t\t:host {\n\t\t\t\t--m-field-hint-color: ${color('color-text-tertiary')};\n\t\t\t}\n\n\t\t\tm-group {\n\t\t\t\t${px(token('spacing-2'))};\n\t\t\t}\n\n\t\t\t.-status-danger {\n\t\t\t\t--m-field-hint-color: ${color('color-danger-60')};\n\t\t\t}\n\n\t\t\t.hint {\n\t\t\t\t${typography('body-sm')};\n\t\t\t\tcolor: var(--m-field-hint-color);\n\t\t\t}\n\t\t`,\n\t];\n}\n\nexport default styles;\n","import { classMap } from 'lit/directives/class-map.js';\nimport { ContextConsumer } from '@lit-labs/context';\nimport { html, nothing } from 'lit';\n\nimport fieldContext from './field.context';\nimport styles from './field-label.styles';\nimport { Component } from '../component';\nimport type { FieldSize } from './field.types';\n\nexport interface FieldLabelProps extends HTMLElement {\n\tsize?: FieldSize;\n\trequired?: boolean;\n}\n\nexport class FieldLabel extends Component {\n\tstatic override styles = [styles()];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\trequired: { type: Boolean },\n\t\t\tsize: { type: String },\n\t\t\tslot: { type: String },\n\t\t};\n\t}\n\n\t/**\n\t * Is this field required.\n\t */\n\tdeclare required: FieldLabelProps['required'];\n\n\t/**\n\t * Field size.\n\t */\n\tdeclare size: FieldLabelProps['size'];\n\n\tdeclare slot: string;\n\n\tprivate field = new ContextConsumer(this, fieldContext, undefined, true);\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.slot = 'hint';\n\t}\n\n\toverride render() {\n\t\treturn html`<label\n\t\t\tclass=${classMap({\n\t\t\t\tlabel: true,\n\t\t\t\t'-size-default': this.#getSize() === 'default',\n\t\t\t\t'-size-small': this.#getSize() === 'small',\n\t\t\t})}\n\t\t\t><slot></slot>\n\t\t\t${this.#isRequired() ? html`<span class=\"required\">*</span>` : nothing}\n\t\t</label>`;\n\t}\n\n\t#getSize() {\n\t\treturn this.size || this.field.value?.size;\n\t}\n\n\t#isRequired() {\n\t\tif (this.required != null) {\n\t\t\treturn this.required;\n\t\t}\n\n\t\treturn Boolean(this.field.value?.required);\n\t}\n}\n\nwindow.customElements.define('m-field-label', FieldLabel);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-field-label': FieldLabel;\n\t}\n}\n","import { css } from 'lit';\n\nimport { typography, ml } from '../../styles';\nimport color from '../../utils/get-color-token';\nimport token from '../../utils/get-token';\n\nfunction styles() {\n\treturn [\n\t\tcss`\n\t\t\t:host {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: flex-start;\n\t\t\t\tgap: ${token('spacing-0-5')};\n\t\t\t}\n\n\t\t\t.label {\n\t\t\t\t${typography('body-md')};\n\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: flex-start;\n\n\t\t\t\tmargin: 0;\n\t\t\t\tpadding: 0;\n\n\t\t\t\tcolor: ${color('color-text-tertiary')};\n\t\t\t}\n\n\t\t\t.required {\n\t\t\t\t${typography('body-md')};\n\n\t\t\t\tcolor: ${color('color-text-error')};\n\n\t\t\t\tcontent: '*';\n\n\t\t\t\t${ml(token('spacing-1'))};\n\t\t\t}\n\n\t\t\t.label.-size-small,\n\t\t\t.label.-size-small .required {\n\t\t\t\t${typography('body-sm')};\n\t\t\t}\n\t\t`,\n\t];\n}\n\nexport default styles;\n","import { html } from 'lit';\nimport type { PropertyValues } from 'lit';\nimport { ContextProvider } from '@lit-labs/context';\n\nimport fieldContext from './field.context';\nimport { Component } from '../component';\nimport { attachContextRoot } from '../../utils/context-root';\nimport type { FieldStatus, FieldSize } from './field.types';\n\nimport type { StackProps } from '../layout/stack';\nimport '../layout/group';\nimport '../layout/stack';\nimport '../close-button';\n\nimport './field-hint';\nimport './field-label';\n\nexport interface FieldProps {\n\thint?: string;\n\tlabel?: string;\n\tsize?: FieldSize;\n\tstatus?: FieldStatus;\n\trequired?: boolean;\n\talign?: StackProps['align'];\n}\n\nattachContextRoot();\n\nexport class Field extends Component {\n\tstatic override get properties() {\n\t\treturn {\n\t\t\tlabel: { type: String },\n\t\t\thint: { type: String },\n\t\t\trequired: { type: Boolean },\n\t\t\tstatus: { type: String },\n\t\t\tsize: { type: String },\n\t\t\talign: { type: String },\n\t\t};\n\t}\n\n\t/**\n\t * Label that describes what this field is about.\n\t */\n\tdeclare label: FieldProps['label'];\n\n\t/**\n\t * Auxiliary message to help the user with the field purpose or its `status`.\n\t */\n\tdeclare hint: FieldProps['hint'];\n\n\t/**\n\t * Is this field required.\n\t */\n\tdeclare required: FieldProps['required'];\n\n\t/**\n\t * Field [validation] status.\n\t */\n\tdeclare status: FieldProps['status'];\n\n\t/**\n\t * Field size.\n\t */\n\tdeclare size: FieldProps['size'];\n\n\t/**\n\t * Value for the m-stack `align` attribute.\n\t */\n\tdeclare align: FieldProps['align'];\n\n\tprivate provider = new ContextProvider(this, fieldContext, {\n\t\trequired: false,\n\t\tsize: 'default',\n\t\tstatus: 'default',\n\t});\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.required = false;\n\t\tthis.status = 'default';\n\t\tthis.size = 'default';\n\t\tthis.align = 'stretch';\n\t}\n\n\toverride update(changedProperties: PropertyValues) {\n\t\tsuper.update(changedProperties);\n\n\t\tif (\n\t\t\tchangedProperties.has('required') ||\n\t\t\tchangedProperties.has('status') ||\n\t\t\tchangedProperties.has('size')\n\t\t) {\n\t\t\tthis.provider.setValue({\n\t\t\t\trequired: this.required,\n\t\t\t\tstatus: this.status,\n\t\t\t\tsize: this.size,\n\t\t\t});\n\t\t}\n\t}\n\n\toverride render() {\n\t\treturn html`<m-stack gap=\"spacing-1\" align=\"${this.align}\">\n\t\t\t${this.label\n\t\t\t\t? html`<m-field-label>${this.label}</m-field-label>`\n\t\t\t\t: html`<slot name=\"label\"></slot>`}\n\n\t\t\t<slot></slot>\n\n\t\t\t${this.hint\n\t\t\t\t? html`<m-field-hint>${this.hint}</m-field-hint>`\n\t\t\t\t: html`<slot name=\"hint\"></slot>`}\n\t\t</m-stack>`;\n\t}\n}\n\nwindow.customElements.define('m-field', Field);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-field': Field;\n\t}\n}\n","export const FIELD_STATUSES = ['default', 'danger'] as const;\n\nexport type FieldStatus = (typeof FIELD_STATUSES)[number];\nexport type FieldSize = 'small' | 'default';\n","import { html, LitElement } from 'lit';\nimport { styleMap } from 'lit/directives/style-map.js';\nimport { classMap } from 'lit/directives/class-map.js';\n\nimport clamp from '../../utils/clamp';\n\nimport styles from './progress-bar.styles';\n\nexport type ProgressBarVariant = 'default' | 'success' | 'warning' | 'danger';\n\nexport interface ProgressBarProps {\n\tvariant?: ProgressBarVariant;\n\tvalue: number;\n\t// FIXME: max is required, but it has a default value (https://loadsmart.atlassian.net/browse/MDS-327)\n\tmax: number;\n}\n\nconst DEFAULT_VARIANT = 'default';\nconst DEFAULT_MAX = 100;\nconst DEFAULT_MIN = 0;\nconst DEFAULT_VALUE = 0;\n\nexport class ProgressBar extends LitElement {\n\tstatic override styles = [styles()];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\tvariant: { type: String, reflect: true },\n\t\t\tvalue: { type: Number, reflect: true },\n\t\t\tmax: { type: Number, reflect: true },\n\t\t};\n\t}\n\n\t/**\n\t * ProgressBar variant.\n\t */\n\tdeclare variant: ProgressBarProps['variant'];\n\n\t/**\n\t * Specifies how much of the task that has been completed.\n\t */\n\tdeclare value: ProgressBarProps['value'];\n\n\t/**\n\t * Describes how much work the task indicated by the progress element requires.\n\t */\n\tdeclare max: ProgressBarProps['max'];\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.variant = DEFAULT_VARIANT;\n\t\tthis.value = DEFAULT_VALUE;\n\t\tthis.max = DEFAULT_MAX;\n\t}\n\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback();\n\n\t\tthis.setAttribute('role', 'progressbar');\n\t\tthis.setAttribute('aria-valuemin', '0');\n\t}\n\n\tprotected override updated(): void {\n\t\tthis.setAttribute('aria-valuenow', String(this.value));\n\t\tthis.setAttribute('aria-valuemax', String(this.max));\n\t}\n\n\tget #safeMaxValue() {\n\t\treturn this.max <= 0 ? DEFAULT_MAX : this.max;\n\t}\n\n\tget #safeValue() {\n\t\treturn clamp(this.value, DEFAULT_MIN, this.#safeMaxValue);\n\t}\n\n\tget percentage() {\n\t\treturn (this.#safeValue * 100) / this.#safeMaxValue;\n\t}\n\n\tprotected get currentVariant() {\n\t\treturn this.variant;\n\t}\n\n\toverride render() {\n\t\treturn html`\n\t\t\t<div class=\"bar\">\n\t\t\t\t<span\n\t\t\t\t\tclass=${classMap({\n\t\t\t\t\t\tprogress: true,\n\t\t\t\t\t\t'-default': this.currentVariant === 'default',\n\t\t\t\t\t\t'-success': this.currentVariant === 'success',\n\t\t\t\t\t\t'-warning': this.currentVariant === 'warning',\n\t\t\t\t\t\t'-danger': this.currentVariant === 'danger',\n\t\t\t\t\t})}\n\t\t\t\t\tstyle=${styleMap({\n\t\t\t\t\t\twidth: `${this.percentage}%`,\n\t\t\t\t\t})}\n\t\t\t\t></span>\n\t\t\t</div>\n\t\t`;\n\t}\n}\n\nwindow.customElements.define('m-progress-bar', ProgressBar);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-progress-bar': ProgressBar;\n\t}\n}\n","/**\n * Clamps number within the inclusive `min` and `upper` bounds.\n * @param {number} value - The number to clamp.\n * @param {number} lower - The lower bound.\n * @param {number} upper - The upper bound.\n * @returns {number}\n */\nfunction clamp(value: number, lower: number, upper: number): number {\n\treturn Math.min(Math.max(lower, value), upper);\n}\n\nexport default clamp;\n","import { css } from 'lit';\n\nimport { transition } from '../../styles';\n\nimport color from '../../utils/get-color-token';\nimport token from '../../utils/get-token';\nimport toRem from '../../utils/to-rem';\n\nfunction styles() {\n\treturn css`\n\t\t.bar {\n\t\t\tdisplay: flex;\n\t\t\tflex-grow: 0;\n\t\t\tflex-shrink: 1;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\n\t\t\tposition: relative;\n\t\t\toverflow: hidden;\n\n\t\t\twidth: 100%;\n\t\t\theight: ${toRem('8px')};\n\n\t\t\tborder-radius: ${token('border-radius-s')};\n\t\t\tbackground-color: ${color('color-background-tertiary')};\n\t\t}\n\n\t\t.progress {\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\n\t\t\t${transition([{ property: 'width' }, { property: 'background' }])};\n\n\t\t\theight: ${toRem('8px')};\n\n\t\t\tborder-radius: ${token('border-radius-s')};\n\n\t\t\tbackground: var(--m-progress-bar-progress-background);\n\t\t}\n\n\t\t.-default {\n\t\t\t--m-progress-bar-progress-background: linear-gradient(\n\t\t\t\t45deg,\n\t\t\t\t${color('color-brand-accent-1')} 22%,\n\t\t\t\t${color('color-brand-accent-2')} 88%\n\t\t\t);\n\t\t}\n\n\t\t.-success {\n\t\t\t--m-progress-bar-progress-background: ${color('color-success-60')};\n\t\t}\n\n\t\t.-warning {\n\t\t\t--m-progress-bar-progress-background: ${color('color-warning-60')};\n\t\t}\n\n\t\t.-danger {\n\t\t\t--m-progress-bar-progress-background: ${color('color-danger-60')};\n\t\t}\n\t`;\n}\n\nexport default styles;\n","import type { ProgressBarProps } from '../progress-bar';\nimport { ProgressBar } from '../progress-bar';\n\nexport type ProgressBarCountdownProps = Omit<ProgressBarProps, 'variant'>;\n\nexport class ProgressBarCountdown extends ProgressBar {\n\toverride get currentVariant() {\n\t\tif (this.percentage >= 66) return 'success';\n\t\tif (this.percentage >= 33) return 'warning';\n\t\treturn 'danger';\n\t}\n}\n\nwindow.customElements.define('m-progress-bar-countdown', ProgressBarCountdown);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-progress-bar-countdown': ProgressBarCountdown;\n\t}\n}\n","export const RADIO_EVENT = 'm-check';\n","import type { PropertyValues } from 'lit';\nimport { LitElement, html } from 'lit';\nimport { RADIO_EVENT } from './radio-group.constants';\nimport styles from './radio-button.styles';\n\nexport interface RadioProps {\n\t// FIXME: Is this really required? The tests were not using it an Typescript raised an error in the React Wrapper.\n\t// https://loadsmart.atlassian.net/browse/MDS-329\n\tvalue: string;\n\tdisabled?: boolean;\n\tchecked?: boolean;\n}\n\nexport class Radio extends LitElement {\n\tstatic override styles = [styles()];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\tvalue: { type: String },\n\t\t\tdisabled: { type: Boolean, reflect: true },\n\t\t\tchecked: { type: Boolean, reflect: true },\n\t\t};\n\t}\n\n\t/**\n\t * Value of the button, raised with the event.\n\t */\n\tdeclare value: string;\n\n\t/**\n\t * Should the button be disabled.\n\t */\n\tdeclare disabled: boolean;\n\n\t/**\n\t * The button initial state\n\t */\n\tdeclare checked: boolean;\n\n\tconstructor() {\n\t\tsuper();\n\t\tthis.disabled = false;\n\t\tthis.checked = false;\n\t}\n\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback();\n\t\tthis.setAttribute('role', 'radio');\n\t\tthis.addEventListener('click', this.#handleClick);\n\t}\n\n\tprotected override updated(changedProperties: PropertyValues<this>): void {\n\t\tsuper.updated(changedProperties);\n\n\t\tif (changedProperties.has('disabled')) {\n\t\t\tthis.#setDisabled();\n\t\t}\n\n\t\tif (changedProperties.has('checked')) {\n\t\t\tthis.#setChecked();\n\t\t}\n\t}\n\n\toverride render() {\n\t\treturn html`\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tclass=\"radio-button\"\n\t\t\t\trole=\"radio\"\n\t\t\t\t?disabled=${this.disabled}\n\t\t\t\taria-checked=${this.checked}\n\t\t\t>\n\t\t\t\t<span class=\"radio-input\"></span>\n\t\t\t\t<slot name=\"leading\"></slot>\n\t\t\t\t<slot></slot>\n\t\t\t</button>\n\t\t`;\n\t}\n\n\toverride focus(options?: FocusOptions | undefined): void {\n\t\tthis.#button?.focus(options);\n\t}\n\n\tget #button(): HTMLButtonElement | null {\n\t\treturn this.renderRoot?.querySelector('button') ?? null;\n\t}\n\n\t#handleClick = (event: MouseEvent) => {\n\t\tif (this.disabled) {\n\t\t\tevent.preventDefault();\n\t\t\tevent.stopPropagation();\n\t\t\treturn;\n\t\t}\n\n\t\tconst options = {\n\t\t\tdetail: { value: this.value, type: 'select' },\n\t\t\tbubbles: true,\n\t\t\tcomposed: false,\n\t\t};\n\n\t\tthis.dispatchEvent(new CustomEvent(RADIO_EVENT, options));\n\t};\n\n\t#setDisabled = () => {\n\t\tthis.setAttribute('aria-disabled', String(this.disabled));\n\t};\n\n\t#setChecked = () => {\n\t\tthis.setAttribute('aria-checked', String(this.checked));\n\t};\n}\n\nwindow.customElements.define('m-radio', Radio);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-radio': Radio;\n\t}\n}\n","import { css } from 'lit';\nimport getToken from '../../utils/get-token';\nimport color from '../../utils/get-color-token';\nimport { on, transition, typography, disabled } from '../../styles';\n\nfunction styles() {\n\treturn css`\n\t\t:host {\n\t\t\t--m-radio-border-color: ${color('color-border')};\n\t\t\t--m-radio-dot-check-color: ${color('color-primary-60')};\n\t\t\t--m-radio-size: 14px;\n\t\t\t--m-radio-background-color: white;\n\t\t\t--m-radio-border-width: ${getToken('border-thin')};\n\t\t\t--m-radio-label-color: ${color('color-text-tertiary')};\n\t\t\t--m-radio-outline-color: ${color('color-primary-60')};\n\t\t\t--m-radio-outline-offset: 2px;\n\t\t}\n\n\t\t.radio-button {\n\t\t\t${typography('body-md')};\n\t\t\tcolor: var(--m-radio-label-color);\n\n\t\t\tborder: none;\n\t\t\tbackground: none;\n\n\t\t\theight: ${getToken('global-height-small')};\n\t\t\tdisplay: inline-flex;\n\t\t\tgap: ${getToken('spacing-1')};\n\t\t\talign-items: center;\n\t\t\tborder-radius: ${getToken('border-radius-s')};\n\t\t\t${transition({ property: 'color' })};\n\t\t}\n\n\t\t${on.focus('.radio-button')} {\n\t\t\toutline: 1px solid var(--m-radio-outline-color);\n\t\t\toutline-offset: var(--m-radio-outline-offset);\n\t\t}\n\n\t\t.radio-button .radio-input {\n\t\t\twidth: var(--m-radio-size);\n\t\t\theight: var(--m-radio-size);\n\t\t\tbackground-color: var(--m-radio-background-color);\n\t\t\tborder-color: var(--m-radio-border-color);\n\t\t\tborder-width: var(--m-radio-border-width);\n\t\t\tborder-style: solid;\n\t\t\tborder-radius: 50%;\n\t\t\tposition: relative;\n\t\t\tdisplay: inline-flex;\n\n\t\t\t${transition({ property: 'border-color' })};\n\t\t}\n\n\t\t.radio-button .radio-input::before {\n\t\t\tcontent: '';\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder-radius: 50%;\n\t\t\ttransform: translate(-50%, -50%);\n\t\t\ttop: 50%;\n\t\t\tleft: 50%;\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t\t${transition([\n\t\t\t\t{ property: 'background-color' },\n\t\t\t\t{ property: 'height', duration: '120ms' },\n\t\t\t\t{ property: 'width', duration: '120ms' },\n\t\t\t])};\n\t\t}\n\n\t\t.radio-button[aria-checked='true'] .radio-input::before {\n\t\t\twidth: 10px;\n\t\t\theight: 10px;\n\t\t}\n\n\t\t${disabled('.radio-button')} {\n\t\t\tcursor: default;\n\t\t\t--m-radio-label-color: ${color('color-neutral-40')};\n\t\t\t--m-radio-background-color: ${color('color-background-tertiary')};\n\t\t}\n\n\t\t${disabled('.radio-button[aria-checked=\"true\"]', '.radio-input')} {\n\t\t\t--m-radio-border-color: ${color('color-border')};\n\t\t}\n\n\t\t${disabled('.radio-button', '.radio-input::before')} {\n\t\t\t--m-radio-dot-check-color: ${color('color-neutral-40')};\n\t\t}\n\n\t\t.radio-button .radio-input::before {\n\t\t\tbackground-color: var(--m-radio-dot-check-color);\n\t\t}\n\n\t\t.radio-button[aria-checked='true'] .radio-input {\n\t\t\t--m-radio-dot-check-color: ${color('color-primary-60')};\n\t\t\t--m-radio-border-color: ${color('color-primary-60')};\n\t\t}\n\n\t\t.radio-button .radio-input {\n\t\t\t--m-radio-border-color: ${color('color-border')};\n\t\t}\n\n\t\t${on.hover('.radio-button')} .radio-input {\n\t\t\t--m-radio-border-color: ${color('color-primary-100')};\n\t\t\t--m-radio-dot-check-color: ${color('color-primary-100')};\n\t\t}\n\n\t\t${on.hover('.radio-button')} {\n\t\t\t--m-radio-label-color: ${color('color-text-primary')};\n\t\t}\n\n\t\t${disabled('.radio-button', '*')} {\n\t\t\tpointer-event: none;\n\t\t}\n\t`;\n}\n\nexport default styles;\n","\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0});var e=require(\"./to-array.js\");const t=(t,n)=>{const r=e(t);if(0===r.length)return n;const s=new Set;return s.add(String(r.at(-1))),s},n=(t,n)=>{const r=e(t);if(0===r.length)return n;const s=new Set(n);for(const e of r)s.add(String(e));return s},r={type:\"single\",init:e=>t(e,new Set),select:t,unselect(t,n){const r=e(t);if(0===r.length||0===n.size)return n;const s=new Set(n);for(const e of r)s.delete(String(e));return s},toggle(t,n){const r=e(t);if(0===r.length)return n;const s=new Set;for(const e of r){const t=String(e);n.has(t)||(s.clear(),s.add(t))}return s},reset:e=>null==e?new Set:e,value(e){if(null==e||0===e.size)return null;const[t]=Array.from(e);return t}},s={type:\"single-strict\",init:e=>t(e,new Set),select:t,unselect(t,n){const r=e(t);if(0===r.length||0===n.size)return n;const s=new Set(n);for(let e=0;e<r.length&&n.size>1;e++)s.delete(String(r[e]));return s},toggle(t,n){const r=e(t);if(0===r.length)return n;const s=new Set(n);for(const e of r){const t=String(e);n.has(t)||(s.clear(),s.add(t))}return s},reset:e=>null==e?new Set:e,value(e){if(null==e||0===e.size)return null;const[t]=Array.from(e);return t}},l={type:\"multiple\",init:e=>n(e,new Set),select:n,unselect(t,n){const r=e(t);if(0===r.length||0===n.size)return n;const s=new Set(n);for(const e of r)s.delete(String(e));return s},toggle(t,n){const r=e(t);if(0===r.length)return n;const s=new Set(n);for(const e of r){const t=String(e);n.has(t)?s.delete(t):s.add(t)}return s},reset:e=>null==e?new Set:e,value:e=>null==e||0===e.size?null:Array.from(e)};exports.SELECTION_TYPES=[\"single\",\"single-strict\",\"multiple\"],exports.default=function(e){const{type:t=\"multiple\"}=e;return\"single\"===t?r:\"single-strict\"===t?s:l};\n","import type { ReactiveControllerHost, ReactiveController } from 'lit';\nimport createSelectionStrategy from '@loadsmart/miranda-toolset/dist/selection';\nimport type {\n\tAcceptedType,\n\tSelectionState,\n\tSelectionStrategy,\n\tSelectionType,\n} from '@loadsmart/miranda-toolset/dist/selection';\nimport toArray from '@loadsmart/miranda-toolset/dist/to-array';\n\ntype SelectionHost = ReactiveControllerHost &\n\tHTMLElement & { selection: SelectionState; type: SelectionType };\n\ntype SelectionEvent = {\n\ttype: 'select' | 'unselect' | 'toggle';\n\tvalue: AcceptedType | AcceptedType[];\n};\n\n/**\n * Manage selection through the SelectionStrategy.\n * `host` is expected to have a `selection` and a `type` (`SelectionType`) properties/state.\n */\nclass SelectionController implements ReactiveController {\n\tdisabled = false;\n\n\tevent = 'm-select';\n\n\thost: SelectionHost;\n\n\tstrategy: SelectionStrategy;\n\n\ttype: SelectionType;\n\n\t/**\n\t *\n\t * @param {SelectionHost} host\n\t * @param {SelectionType} type - Type of selection to be managed.\n\t * @param {string} event - Name of the event that should be listened to.\n\t */\n\tconstructor(host: SelectionHost, type: SelectionType, event: string) {\n\t\tthis.host = host;\n\t\tthis.type = type;\n\t\tthis.event = event;\n\n\t\tthis.strategy = createSelectionStrategy({ type });\n\n\t\tthis.host.addController(this);\n\t}\n\n\thostConnected() {\n\t\tthis.subscribe();\n\t}\n\n\thostDisconnected() {\n\t\tthis.unsubscribe();\n\t}\n\n\thostUpdate() {\n\t\t/**\n\t\t * [!] This flow covers the case where the `host` changes its selection strategy (`type`).\n\t\t * The `hostUpdate` lifecycle happens before the `host`'s `update` [Source](https://lit.dev/docs/composition/controllers/#lifecycle).\n\t\t */\n\t\tif (this.host.type != null && this.host.type !== this.type) {\n\t\t\tthis.unsubscribe();\n\t\t\tthis.host.removeController(this);\n\t\t}\n\t}\n\n\t/**\n\t * using arrow function so we keep the lexical context this is necessary\n\t * because the event itself will happen in the context of the host element.\n\t */\n\t#handleSelectionEvent = (e: Event) => {\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.type == null) {\n\t\t\tconsole.warn(\n\t\t\t\t'[SelectionController] Did you forget to set the selection type?',\n\t\t\t);\n\t\t\treturn;\n\t\t}\n\n\t\tconst {\n\t\t\tdetail: { type, value },\n\t\t} = e as CustomEvent<SelectionEvent>;\n\n\t\tswitch (type) {\n\t\t\tcase 'select':\n\t\t\t\tthis.select(toArray(value));\n\t\t\t\tbreak;\n\t\t\tcase 'unselect':\n\t\t\t\tthis.unselect(toArray(value));\n\t\t\t\tbreak;\n\t\t\tcase 'toggle':\n\t\t\t\tthis.toggle(toArray(value));\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t}\n\t};\n\n\t#publish() {\n\t\tconst options = {\n\t\t\tdetail: {\n\t\t\t\ttype: this.type,\n\t\t\t\tvalue: this.strategy.value(this.host.selection),\n\t\t\t},\n\t\t\tbubbles: true,\n\t\t\tcomposed: false,\n\t\t};\n\n\t\tthis.host.dispatchEvent(new CustomEvent('m-change', options));\n\t}\n\n\tinit = (values: AcceptedType[]) => {\n\t\tthis.host.selection = this.strategy.init(values);\n\t};\n\n\tselect = (values: AcceptedType[]) => {\n\t\tthis.host.selection = this.strategy.select(values, this.host.selection);\n\n\t\tthis.#publish();\n\t};\n\n\tunselect = (values: AcceptedType[]) => {\n\t\tthis.host.selection = this.strategy.unselect(values, this.host.selection);\n\n\t\tthis.#publish();\n\t};\n\n\ttoggle = (values: AcceptedType[]) => {\n\t\tthis.host.selection = this.strategy.toggle(values, this.host.selection);\n\n\t\tthis.#publish();\n\t};\n\n\tsubscribe = () => {\n\t\tthis.host.addEventListener(this.event, this.#handleSelectionEvent);\n\t};\n\n\tunsubscribe = () => {\n\t\tthis.host.removeEventListener(this.event, this.#handleSelectionEvent);\n\t};\n}\n\nexport default SelectionController;\n","import type { PropertyValues } from 'lit';\nimport { LitElement, html } from 'lit';\nimport toArray from '@loadsmart/miranda-toolset/dist/to-array';\nimport { classMap } from 'lit/directives/class-map.js';\nimport type {\n\tAcceptedType,\n\tSelectionState,\n\tSelectionType,\n} from '../../controllers/selection';\nimport SelectionController from '../../controllers/selection';\nimport { RADIO_EVENT } from './radio-group.constants';\nimport type { Radio } from './radio';\nimport styles from './radio-group.styles';\n\nexport type RadioGroupOrientation = 'vertical' | 'horizontal';\n\nexport type RadioGroupChangeEventDetail = {\n\ttype: SelectionType;\n\tvalue: SelectionState;\n};\nexport interface RadioGroupProps {\n\tvalue?: AcceptedType;\n\tdisabled?: boolean;\n\torientation?: RadioGroupOrientation;\n\t'm-change'?: (event: CustomEvent<RadioGroupChangeEventDetail>) => void;\n}\n\nexport class RadioGroup extends LitElement {\n\tstatic override styles = [styles()];\n\n\t#selectionController: SelectionController | null = null;\n\n\t#defaultSlot: HTMLSlotElement | null = null;\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\tvalue: { type: String, reflect: true },\n\t\t\tdisabled: { type: Boolean, reflect: true },\n\t\t\tselection: { state: true },\n\t\t\torientation: { type: String },\n\t\t};\n\t}\n\n\t/**\n\t * Value of the selected radio-button.\n\t */\n\tdeclare value: RadioGroupProps['value'];\n\n\t/**\n\t * Type of the selected radio-button.\n\t * It is necessary due to elegibility as a SelectionHost for the SelectionController\n\t */\n\tdeclare type: SelectionType;\n\n\t/**\n\t * Should the button be disabled.\n\t */\n\tdeclare disabled: boolean;\n\n\t/**\n\t * Inner toggle selection state.\n\t */\n\tdeclare selection: SelectionState;\n\n\t/**\n\t * Buttons display orientation (vertical or horizontal)\n\t */\n\tdeclare orientation: RadioGroupOrientation;\n\n\tconstructor() {\n\t\tsuper();\n\t\tthis.disabled = false;\n\t\tthis.selection = new Set();\n\t\tthis.value = '';\n\t\tthis.orientation = 'vertical';\n\t\tthis.type = 'single-strict';\n\t}\n\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback();\n\n\t\tthis.setAttribute('role', 'radio-group');\n\n\t\tthis.#selectionController = new SelectionController(\n\t\t\tthis,\n\t\t\tthis.type,\n\t\t\tRADIO_EVENT,\n\t\t);\n\t}\n\n\tprotected override update(changedProperties: PropertyValues<this>): void {\n\t\tsuper.update(changedProperties);\n\n\t\tif (changedProperties.has('value') && this.#selectionController) {\n\t\t\tthis.#selectionController.init(\n\t\t\t\ttoArray(this.value || this.#getDefaultChecked()),\n\t\t\t);\n\t\t}\n\n\t\tif (changedProperties.has('selection')) {\n\t\t\t[this.value] = this.selection;\n\t\t}\n\t}\n\n\tprotected override updated(changedProperties: PropertyValues<this>): void {\n\t\tsuper.updated(changedProperties);\n\n\t\tif (changedProperties.has('selection')) {\n\t\t\tthis.#getButtons().forEach((toggle) => {\n\t\t\t\tthis.#setButtonChecked(toggle);\n\t\t\t});\n\t\t}\n\n\t\tif (changedProperties.has('disabled')) {\n\t\t\tthis.#getButtons().forEach((toggle) => {\n\t\t\t\tthis.#setButtonDisabled(toggle);\n\t\t\t});\n\t\t}\n\t}\n\n\toverride render() {\n\t\treturn html`\n\t\t\t<div\n\t\t\t\tclass=${classMap({\n\t\t\t\t\t'radio-group': true,\n\n\t\t\t\t\t'-vertical': this.orientation === 'vertical',\n\t\t\t\t\t'-horizontal': this.orientation === 'horizontal',\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<slot></slot>\n\t\t\t</div>\n\t\t`;\n\t}\n\n\t#getDefaultChecked = (): string | undefined => {\n\t\t/**\n\t\t * If no radio component is marked as checked, set the first one as checked and return its value\n\t\t */\n\t\tconst buttons = this.#getButtons();\n\t\treturn buttons[0]?.value;\n\t};\n\n\t#getButtons = (): Radio[] => {\n\t\tthis.#defaultSlot ??=\n\t\t\tthis.shadowRoot && this.shadowRoot.querySelector('slot');\n\t\tconst items = this.#defaultSlot?.assignedElements({ flatten: true }) ?? [];\n\n\t\treturn [...items].filter(\n\t\t\t(item) => item.tagName.toLowerCase() === 'm-radio',\n\t\t) as Radio[];\n\t};\n\n\t#setButtonChecked = (button: Radio) => {\n\t\t// eslint-disable-next-line no-param-reassign\n\t\tbutton.checked = this.selection.has(button.value);\n\t};\n\n\t#setButtonDisabled = (button: Radio) => {\n\t\t// eslint-disable-next-line no-param-reassign\n\t\tbutton.disabled = this.disabled;\n\t};\n}\n\nwindow.customElements.define('m-radio-group', RadioGroup);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-radio-group': RadioGroup;\n\t}\n}\n","import { css } from 'lit';\nimport getToken from '../../utils/get-token';\n\nfunction styles() {\n\treturn css`\n\t\t.radio-group {\n\t\t\tdisplay: flex;\n\t\t\tgap: ${getToken('spacing-2')};\n\t\t}\n\t\t.radio-group.-vertical {\n\t\t\tflex-direction: column;\n\t\t}\n\t\t.radio-group.-horizontal {\n\t\t\tflex-direction: row;\n\t\t}\n\t`;\n}\n\nexport default styles;\n","import { createContext } from '@lit-labs/context';\n\nimport type { TabsContext } from './tabs.types';\n\nconst tabsContext = createContext<TabsContext>('tabs');\n\nexport default tabsContext;\n","export const TAB_SELECT_EVENT = 'm-select-tab';\n","import { html } from 'lit';\nimport type { PropertyValues } from 'lit';\nimport { ContextProvider } from '@lit-labs/context';\nimport toArray from '@loadsmart/miranda-toolset/dist/to-array';\n\nimport type {\n\tSelectionState,\n\tSelectionType,\n} from '../../controllers/selection';\nimport SelectionController from '../../controllers/selection';\n\nimport { Component } from '../component';\n\nimport tabsContext from './tabs.context';\nimport { TAB_SELECT_EVENT } from './tabs.constants';\nimport type { Tab } from './tab';\nimport styles from './tabs.styles';\nimport type { TabsProps } from './tabs.types';\n\nexport class Tabs extends Component {\n\tstatic override styles = [styles()];\n\n\t#selectionController: SelectionController | null = null;\n\n\t#defaultSlot: HTMLSlotElement | null = null;\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\tactiveTab: { type: String, attribute: 'active-tab', reflect: true },\n\t\t\tdisabled: { type: Boolean, reflect: true },\n\t\t\tlazy: { type: Boolean },\n\t\t\tselection: { state: true },\n\t\t\ttabContentDirection: { type: String, attribute: 'tab-content-direction' },\n\t\t};\n\t}\n\n\t/**\n\t * Controlled value of the selected tab.\n\t */\n\tdeclare activeTab: TabsProps['activeTab'];\n\n\t/**\n\t * Direction of the tabs content.\n\t */\n\tdeclare tabContentDirection: TabsProps['tabContentDirection'];\n\n\t/**\n\t * Should the tabs be disabled.\n\t */\n\tdeclare disabled: TabsProps['disabled'];\n\n\t/**\n\t * If set to true, the tab-panels content will only be rendered if the tab is selected.\n\t * Otherwise it's just hidden.\n\t */\n\tdeclare lazy: TabsProps['lazy'];\n\n\t/**\n\t * Type of selection to be managed.\n\t * It is necessary due to elegibility as a SelectionHost for the SelectionController.\n\t */\n\tdeclare type: SelectionType;\n\n\t/**\n\t * Inner tab selection state.\n\t */\n\tdeclare selection: SelectionState;\n\n\tprivate provider = new ContextProvider(this, tabsContext, {\n\t\ttabContentDirection: 'horizontal',\n\t\tdisabled: false,\n\t\tlazy: false,\n\t\tselection: new Set(''),\n\t});\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.activeTab = '';\n\t\tthis.tabContentDirection = 'horizontal';\n\t\tthis.disabled = false;\n\t\tthis.lazy = false;\n\t\tthis.type = 'single-strict';\n\t\tthis.selection = new Set();\n\t}\n\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback();\n\n\t\tthis.#selectionController = new SelectionController(\n\t\t\tthis,\n\t\t\tthis.type,\n\t\t\tTAB_SELECT_EVENT,\n\t\t);\n\n\t\tthis.addEventListener('m-change', this.#onSelectionChange);\n\t}\n\n\tprotected override update(changedProperties: PropertyValues<this>): void {\n\t\tsuper.update(changedProperties);\n\n\t\tif (changedProperties.has('activeTab') && this.#selectionController) {\n\t\t\tthis.#selectionController.init(\n\t\t\t\ttoArray(this.activeTab || this.#getDefaultSelected()),\n\t\t\t);\n\t\t}\n\n\t\tconst [selectedValue] = Array.from(this.selection);\n\t\tif (\n\t\t\tchangedProperties.has('selection') &&\n\t\t\t(!this.activeTab || selectedValue !== this.activeTab)\n\t\t) {\n\t\t\t// Here we are syncing the internal state with the reflected activeTab attribute\n\t\t\tthis.activeTab = selectedValue;\n\t\t}\n\n\t\tif (\n\t\t\tchangedProperties.has('tabContentDirection') ||\n\t\t\tchangedProperties.has('disabled') ||\n\t\t\tchangedProperties.has('lazy') ||\n\t\t\tchangedProperties.has('selection')\n\t\t) {\n\t\t\tthis.provider.setValue({\n\t\t\t\ttabContentDirection: this.tabContentDirection,\n\t\t\t\tdisabled: this.disabled,\n\t\t\t\tlazy: this.lazy,\n\t\t\t\tselection: this.selection,\n\t\t\t});\n\t\t}\n\t}\n\n\toverride render() {\n\t\treturn html`\n\t\t\t<div class=\"tablist\" role=\"tablist\"><slot name=\"tab\"></slot></div>\n\t\t\t<slot></slot>\n\t\t`;\n\t}\n\n\t#onSelectionChange: EventListener = (event) => {\n\t\tevent.stopPropagation();\n\n\t\tconst [selectedValue] = Array.from(this.selection);\n\t\tconst options = {\n\t\t\tdetail: { value: String(selectedValue) },\n\t\t};\n\n\t\tthis.emit('m-tab-change', options);\n\t};\n\n\t#getDefaultSelected = (): string | undefined => {\n\t\t/**\n\t\t * If no tab component is marked as selected, set the first one as selected and return its value\n\t\t */\n\t\tconst tabs = this.#getTabs();\n\n\t\treturn tabs[0]?.name;\n\t};\n\n\t#getTabs = (): Tab[] => {\n\t\tthis.#defaultSlot ??=\n\t\t\tthis.shadowRoot && this.shadowRoot.querySelector('slot');\n\t\tconst items = this.#defaultSlot?.assignedElements({ flatten: true }) ?? [];\n\n\t\treturn [...items].filter(\n\t\t\t(item) => item.tagName.toLowerCase() === 'm-tab',\n\t\t) as Tab[];\n\t};\n}\n\nwindow.customElements.define('m-tabs', Tabs);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-tabs': Tabs;\n\t}\n}\n","import { css } from 'lit';\nimport getToken from '../../utils/get-token';\nimport color from '../../utils/get-color-token';\n\nfunction styles() {\n\treturn css`\n\t\t:host {\n\t\t\t--m-tabs-border-width: ${getToken('border-thin')};\n\t\t\t--m-tabs-border-color: ${color('color-divider')};\n\t\t}\n\n\t\t.tablist {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: row;\n\t\t\tgap: 1px;\n\t\t\tborder-bottom-style: solid;\n\t\t\tborder-bottom-width: var(--m-tabs-border-width);\n\t\t\tborder-bottom-color: var(--m-tabs-border-color);\n\t\t}\n\t`;\n}\n\nexport default styles;\n","import { html } from 'lit';\nimport type { PropertyValues } from 'lit';\nimport { ContextConsumer } from '@lit-labs/context';\nimport { classMap } from 'lit/directives/class-map.js';\n\nimport { Component } from '../component';\n\nimport { TAB_SELECT_EVENT } from './tabs.constants';\nimport styles from './tab.styles';\nimport type { TabProps, TabsContext } from './tabs.types';\nimport tabsContext from './tabs.context';\n\nexport class Tab extends Component {\n\tstatic override styles = [styles()];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\tname: { type: String },\n\t\t\tdisabled: { type: Boolean, reflect: true },\n\t\t\tslot: { type: String, reflect: true },\n\t\t};\n\t}\n\n\tdeclare slot: string;\n\n\t/**\n\t * Name of the tab, raised with the event.\n\t */\n\tdeclare name: TabProps['name'];\n\n\t/**\n\t * Should the button be disabled.\n\t */\n\tdeclare disabled: TabProps['disabled'];\n\n\tprivate tabs = new ContextConsumer(this, tabsContext, undefined, true);\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.disabled = false;\n\t}\n\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback();\n\n\t\tthis.id = `${this.name}-tab`;\n\t\tthis.setAttribute('slot', 'tab');\n\t\tthis.setAttribute('role', 'tab');\n\t\tthis.setAttribute('aria-controls', `${this.name}-panel`);\n\t\tthis.setAttribute('aria-selected', 'false');\n\t\tthis.addEventListener('click', this.#handleClick);\n\t}\n\n\tprotected override updated(changedProperties: PropertyValues<this>): void {\n\t\tsuper.updated(changedProperties);\n\n\t\tif (this.#isSelected()) {\n\t\t\tthis.setAttribute('aria-selected', 'true');\n\t\t} else {\n\t\t\tthis.setAttribute('aria-selected', 'false');\n\t\t}\n\n\t\tif (changedProperties.has('name')) {\n\t\t\tthis.id = `${this.name}-tab`;\n\t\t\tthis.setAttribute('aria-controls', `${this.name}-panel`);\n\t\t}\n\n\t\tif (changedProperties.has('disabled')) {\n\t\t\tthis.setAttribute('aria-disabled', String(this.disabled));\n\t\t}\n\t}\n\n\toverride render() {\n\t\treturn html`\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tclass=${classMap({\n\t\t\t\t\ttab: true,\n\n\t\t\t\t\t'-vertical': this.#getContentDirection() === 'vertical',\n\t\t\t\t\t'-horizontal': this.#getContentDirection() === 'horizontal',\n\t\t\t\t})}\n\t\t\t\t?disabled=${this.#isDisabled()}\n\t\t\t\taria-selected=${this.#isSelected()}\n\t\t\t>\n\t\t\t\t<slot name=\"leading\"></slot>\n\t\t\t\t<slot></slot>\n\t\t\t</button>\n\t\t`;\n\t}\n\n\toverride focus(options?: FocusOptions | undefined): void {\n\t\tthis.#button?.focus(options);\n\t}\n\n\tget #button(): HTMLButtonElement | null {\n\t\treturn this.renderRoot?.querySelector('button') ?? null;\n\t}\n\n\t#handleClick = (event: MouseEvent) => {\n\t\tif (this.disabled) {\n\t\t\tevent.preventDefault();\n\t\t\tevent.stopPropagation();\n\t\t\treturn;\n\t\t}\n\n\t\tconst options = {\n\t\t\tdetail: { value: this.name, type: 'select' },\n\t\t\tbubbles: true,\n\t\t\tcomposed: false,\n\t\t};\n\n\t\tthis.emit(TAB_SELECT_EVENT, options);\n\t};\n\n\t#getContentDirection = (): TabsContext['tabContentDirection'] | undefined => {\n\t\treturn this.tabs.value?.tabContentDirection;\n\t};\n\n\t#isSelected = (): boolean => {\n\t\treturn Boolean(this.tabs.value?.selection.has(this.name));\n\t};\n\n\t#isDisabled = (): boolean => {\n\t\treturn this.disabled || Boolean(this.tabs.value?.disabled);\n\t};\n}\n\nwindow.customElements.define('m-tab', Tab);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-tab': Tab;\n\t}\n}\n","import { css } from 'lit';\nimport getToken from '../../utils/get-token';\nimport color from '../../utils/get-color-token';\nimport { on, transition, typography, disabled } from '../../styles';\n\nfunction styles() {\n\treturn css`\n\t\t:host {\n\t\t\t--m-tab-border-width: ${getToken('border-thin')};\n\t\t\t--m-tab-border-color: ${color('color-divider')};\n\t\t\t--m-tab-border-radius: ${getToken('border-radius-s')};\n\t\t\t--m-tab-background-color: none;\n\t\t\t--m-tab-label-color: ${color('color-text-tertiary')};\n\t\t\t--m-tab-leading-color: ${color('color-text-tertiary')};\n\n\t\t\t--m-tab-outline-color: ${color('color-primary-60')};\n\n\t\t\t--m-tab-padding-x: ${getToken('spacing-6')};\n\t\t\t--m-tab-height: ${getToken('spacing-12')};\n\t\t}\n\n\t\t.tab {\n\t\t\tcursor: pointer;\n\t\t\tposition: relative;\n\t\t\tpadding-bottom: 1px;\n\t\t\tbottom: -1px;\n\t\t\tdisplay: inline-flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\tgap: ${getToken('spacing-3')};\n\t\t\theight: var(--m-tab-height);\n\t\t\tpadding-inline: var(--m-tab-padding-x);\n\n\t\t\t${typography('body-md')};\n\t\t\tcolor: var(--m-tab-label-color);\n\n\t\t\tbackground-color: var(--m-tab-background-color);\n\t\t\tborder: none;\n\t\t\tborder-bottom-style: solid;\n\t\t\tborder-bottom-width: var(--m-tab-border-width);\n\t\t\tborder-bottom-color: var(--m-tab-border-color);\n\t\t\tborder-top-left-radius: var(--m-tab-border-radius);\n\t\t\tborder-top-right-radius: var(--m-tab-border-radius);\n\n\t\t\t@media (prefers-reduced-motion: no-preference) {\n\t\t\t\t${transition([\n\t\t\t\t\t{ property: 'background-color' },\n\t\t\t\t\t{ property: 'border-color' },\n\t\t\t\t\t{ property: 'color' },\n\t\t\t\t])};\n\t\t\t}\n\t\t}\n\t\t.tab.-vertical {\n\t\t\tflex-direction: column;\n\t\t\t--m-tab-height: ${getToken('spacing-20')};\n\t\t}\n\t\t.tab.-horizontal {\n\t\t\tflex-direction: row;\n\t\t}\n\n\t\tslot[name='leading']::slotted(*) {\n\t\t\tcolor: var(--m-tab-leading-color);\n\t\t}\n\n\t\t${on.hover('.tab')} {\n\t\t\t--m-tab-background-color: ${color('color-background-tertiary')};\n\t\t}\n\n\t\t${on.focus('.tab')} {\n\t\t\toutline: 1px solid var(--m-tab-outline-color);\n\t\t}\n\n\t\t.tab[aria-selected='true'] {\n\t\t\t--m-tab-border-width: ${getToken('border-medium')};\n\t\t\t--m-tab-border-color: ${color('color-primary-60')};\n\t\t\t--m-tab-label-color: ${color('color-text-secondary')};\n\t\t\t--m-tab-leading-color: ${color('color-primary-60')};\n\t\t\tpadding-bottom: 0;\n\t\t}\n\n\t\t${disabled('.tab')} {\n\t\t\tcursor: default;\n\t\t\t--m-tab-label-color: ${color('color-text-disabled')};\n\t\t\t--m-tab-leading-color: ${color('color-text-disabled')};\n\t\t\t--m-tab-border-color: ${color('color-divider')};\n\t\t}\n\n\t\t${disabled('.tab', '*')} {\n\t\t\tpointer-events: none;\n\t\t}\n\t`;\n}\n\nexport default styles;\n","import { html } from 'lit';\nimport type { PropertyValues } from 'lit';\nimport { ContextConsumer } from '@lit-labs/context';\n\nimport styles from './tab-panel.styles';\nimport type { TabPanelProps } from './tabs.types';\nimport tabsContext from './tabs.context';\nimport { Box } from '../layout';\n\nexport class TabPanel extends Box {\n\tstatic override styles = [...super.styles, styles()];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\t...super.properties,\n\t\t\tforTab: { type: String, attribute: 'for-tab' },\n\t\t\tlazy: { type: Boolean },\n\t\t};\n\t}\n\n\t/**\n\t * The name of the tab that controls this panel.\n\t */\n\tdeclare forTab: TabPanelProps['forTab'];\n\n\t/**\n\t * If set to true, the content will only be rendered if the tab is selected.\n\t * Otherwise it's just hidden.\n\t */\n\tdeclare lazy: TabPanelProps['lazy'];\n\n\tprivate tabs = new ContextConsumer(this, tabsContext, undefined, true);\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.lazy = false;\n\t\tthis.padding = 'none';\n\t\tthis.paddingY = 'spacing-8';\n\t}\n\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback();\n\n\t\tthis.id = `${this.forTab}-panel`;\n\t\tthis.setAttribute('role', 'tabpanel');\n\t\tthis.setAttribute('aria-labelledby', `${this.forTab}-tab`);\n\t}\n\n\tprotected override updated(changedProperties: PropertyValues<this>): void {\n\t\tsuper.updated(changedProperties);\n\n\t\tif (this.#isSelected()) {\n\t\t\tthis.style.setProperty('--m-tab-panel-display', 'block');\n\t\t\tthis.removeAttribute('aria-hidden');\n\t\t} else {\n\t\t\tthis.style.setProperty('--m-tab-panel-display', 'none');\n\t\t\tthis.setAttribute('aria-hidden', 'true');\n\t\t}\n\n\t\tif (changedProperties.has('forTab')) {\n\t\t\tthis.id = `${this.forTab}-panel`;\n\t\t\tthis.setAttribute('aria-labelledby', `${this.forTab}-tab`);\n\t\t}\n\t}\n\n\toverride render() {\n\t\tif (this.#isLazy() && !this.#isSelected()) {\n\t\t\treturn html``;\n\t\t}\n\t\treturn html`<slot></slot>`;\n\t}\n\n\t#isSelected = (): boolean => {\n\t\treturn Boolean(this.tabs.value?.selection.has(this.forTab));\n\t};\n\n\t#isLazy = (): boolean => {\n\t\treturn this.lazy || Boolean(this.tabs.value?.lazy);\n\t};\n}\n\nwindow.customElements.define('m-tab-panel', TabPanel);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-tab-panel': TabPanel;\n\t}\n}\n","import { css } from 'lit';\n\nfunction styles() {\n\treturn css`\n\t\t:host {\n\t\t\t--m-tab-panel-display: none;\n\n\t\t\tdisplay: var(--m-tab-panel-display);\n\t\t}\n\t`;\n}\n\nexport default styles;\n","import { html, LitElement } from 'lit';\nimport { classMap } from 'lit/directives/class-map.js';\nimport tagStyles from './tag.styles';\n\nexport type TagVariant = 'success' | 'neutral' | 'warning' | 'danger';\n\nexport type TagSize = 'small' | 'default' | 'large';\n\nexport interface TagProps {\n\tvariant?: TagVariant;\n\tsize?: TagSize;\n\tisSkeleton?: boolean;\n}\n\nexport class Tag extends LitElement {\n\tstatic override styles = [tagStyles()];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\tvariant: { type: String },\n\t\t\tsize: { type: String },\n\t\t\tisSkeleton: { type: Boolean, attribute: 'is-skeleton' },\n\t\t};\n\t}\n\n\t/**\n\t * Tag variant.\n\t */\n\tdeclare variant: TagVariant;\n\n\t/**\n\t * Tag size.\n\t */\n\tdeclare size: TagSize;\n\n\t/**\n\t * Tag skeleton loader.\n\t */\n\tdeclare isSkeleton: boolean;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.variant = 'neutral';\n\t\tthis.size = 'default';\n\t\tthis.isSkeleton = false;\n\t}\n\n\toverride render() {\n\t\treturn html`\n\t\t\t<span\n\t\t\t\tclass=${classMap({\n\t\t\t\t\ttag: true,\n\n\t\t\t\t\t'-success': this.variant === 'success',\n\t\t\t\t\t'-neutral': this.variant === 'neutral',\n\t\t\t\t\t'-warning': this.variant === 'warning',\n\t\t\t\t\t'-danger': this.variant === 'danger',\n\n\t\t\t\t\t'-is-skeleton': this.isSkeleton,\n\n\t\t\t\t\t'-size-small': this.size === 'small',\n\t\t\t\t\t'-size-default': this.size === 'default',\n\t\t\t\t\t'-size-large': this.size === 'large',\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t${this.isSkeleton ? html`` : html`<slot name=\"leading\"></slot>`}\n\t\t\t\t<slot></slot>\n\t\t\t</span>\n\t\t`;\n\t}\n}\n\nwindow.customElements.define('m-tag', Tag);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-tag': Tag;\n\t}\n}\n","import { css } from 'lit';\nimport color from '../../utils/get-color-token';\nimport token from '../../utils/get-token';\nimport { typography } from '../../styles';\nimport toRem from '../../utils/to-rem';\nimport skeletonStyles, { skeleton } from '../../styles/skeleton';\n\nfunction tagStyles() {\n\treturn [\n\t\tskeletonStyles(),\n\t\tcss`\n\t\t\t:host {\n\t\t\t\t--m-tag-skeleton-width: 100px;\n\t\t\t}\n\t\t\t.tag {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\twhite-space: nowrap;\n\t\t\t\toverflow: hidden;\n\t\t\t\ttext-overflow: ellipsis;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tmax-width: 200px;\n\t\t\t\tborder-radius: 100px;\n\t\t\t\tline-height: ${token('line-height-1')};\n\t\t\t\tcursor: default;\n\t\t\t}\n\n\t\t\t.tag slot[name='leading']::slotted(*) {\n\t\t\t\tmargin-inline-end: ${token('spacing-1')};\n\t\t\t\tvertical-align: middle;\n\t\t\t}\n\n\t\t\t.-size-small {\n\t\t\t\t${typography('chips-sm')};\n\t\t\t\tpadding: ${token('spacing-1')} ${token('spacing-2')};\n\t\t\t\tblock-size: ${toRem('18px')};\n\t\t\t}\n\t\t\t.-size-default {\n\t\t\t\t${typography('chips-md')};\n\t\t\t\tpadding: ${token('spacing-2')} ${token('spacing-3')};\n\t\t\t\tblock-size: ${token('global-height-small')};\n\t\t\t}\n\t\t\t.-size-large {\n\t\t\t\t${typography('button-lg')};\n\t\t\t\tpadding: ${token('spacing-3')} ${token('spacing-4')};\n\t\t\t\tblock-size: ${token('global-height-default')};\n\t\t\t}\n\n\t\t\t.-success {\n\t\t\t\tcolor: ${color('color-success-60')};\n\t\t\t\tbackground: ${color('color-success-20')};\n\t\t\t}\n\t\t\t.-neutral {\n\t\t\t\tcolor: ${color('color-text-tertiary')};\n\t\t\t\tbackground: ${color('color-background-tertiary')};\n\t\t\t}\n\t\t\t.-warning {\n\t\t\t\tcolor: ${color('color-warning-100')};\n\t\t\t\tbackground: ${color('color-warning-20')};\n\t\t\t}\n\t\t\t.-danger {\n\t\t\t\tcolor: ${color('color-danger-60')};\n\t\t\t\tbackground: ${color('color-danger-20')};\n\t\t\t}\n\n\t\t\t.-is-skeleton {\n\t\t\t\t${skeleton()};\n\t\t\t\twidth: var(--m-tag-skeleton-width);\n\t\t\t}\n\t\t`,\n\t];\n}\n\nexport default tagStyles;\n","import { css, unsafeCSS } from 'lit';\nimport color from '../utils/get-color-token';\n\nfunction skeletonStyles() {\n\treturn css`\n\t\t@keyframes skeleton-loading {\n\t\t\t0% {\n\t\t\t\tbackground-color: ${color('color-background-tertiary')};\n\t\t\t\topacity: 0.3;\n\t\t\t}\n\t\t\t50% {\n\t\t\t\tbackground-color: ${color('color-background-tertiary')};\n\t\t\t\topacity: 0.6;\n\t\t\t}\n\t\t\t100% {\n\t\t\t\tbackground-color: ${color('color-background-tertiary')};\n\t\t\t}\n\t\t}\n\t`;\n}\n\nexport function skeleton() {\n\treturn unsafeCSS(`animation: skeleton-loading 1s linear infinite alternate;`);\n}\n\nexport default skeletonStyles;\n","import { html, nothing } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { ContextConsumer } from '@lit-labs/context';\nimport { classMap } from 'lit/directives/class-map.js';\n\nimport { Component } from '../component';\nimport styles from './text-field.styles';\nimport fieldContext from '../field/field.context';\nimport '../layout/group';\nimport '../close-button';\n\nimport type { FieldStatus } from '../field';\nimport type { ChangeEventHandler } from '../../utils/types';\n\nexport type TextFieldSize = 'small' | 'default' | 'large';\n\nexport interface TextFieldProps {\n\tclearable?: boolean;\n\tdisabled?: boolean;\n\tmax?: string;\n\t'max-length'?: number;\n\tmin?: string;\n\t'min-length'?: number;\n\tpattern?: string;\n\tplaceholder?: string;\n\t'read-only'?: boolean;\n\tsize?: TextFieldSize;\n\tstatus?: FieldStatus;\n\tstep?: string;\n\ttype?: 'text' | 'password' | 'email' | 'number' | 'search' | 'tel' | 'url';\n\tvalue?: string;\n\t'm-clear'?: (event: CustomEvent) => void;\n\tchange?: ChangeEventHandler<HTMLInputElement>;\n\tinput?: (event: Event) => void;\n}\n\nexport class TextField extends Component {\n\tstatic override styles = [styles()];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\tclearable: { type: Boolean },\n\t\t\tdisabled: { type: Boolean, reflect: true },\n\t\t\tmax: { type: String },\n\t\t\tmaxLength: { type: Number, reflect: true, attribute: 'max-length' },\n\t\t\tmin: { type: String },\n\t\t\tminLength: { type: Number, reflect: true, attribute: 'min-length' },\n\t\t\tpattern: { type: String },\n\t\t\tplaceholder: { type: String },\n\t\t\treadOnly: { type: Boolean, reflect: true, attribute: 'read-only' },\n\t\t\tsize: { type: String },\n\t\t\tstatus: { type: String },\n\t\t\tstep: { type: String },\n\t\t\ttype: { type: String },\n\t\t\tvalue: { type: String },\n\t\t};\n\t}\n\n\t/**\n\t * Should the text field be clearable.\n\t */\n\tdeclare clearable: TextFieldProps['clearable'];\n\n\t/**\n\t * Should the text field be disabled.\n\t */\n\tdeclare disabled: TextFieldProps['disabled'];\n\n\t/**\n\t * Define the greatest value in the range of permitted values.\n\t *\n\t * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max\n\t */\n\tdeclare max: TextFieldProps['max'];\n\n\t/**\n\t * The maximum number of characters a user can enter into the text field. Set\n\t * to -1 for none.\n\t *\n\t * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength\n\t */\n\tdeclare maxLength: TextFieldProps['max-length'];\n\n\t/**\n\t * Define the most negative value in the range of permitted values.\n\t *\n\t * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min\n\t */\n\tdeclare min: TextFieldProps['min'];\n\n\t/**\n\t * The minimum number of characters a user can enter into the text field. Set\n\t * to -1 for none.\n\t *\n\t * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength\n\t */\n\tdeclare minLength: TextFieldProps['min-length'];\n\n\t/**\n\t * A regular expression that the text field's value must match to pass\n\t * constraint validation.\n\t *\n\t * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#pattern\n\t */\n\tdeclare pattern: TextFieldProps['pattern'];\n\n\t/**\n\t * Placeholder text for the input.\n\t */\n\tdeclare placeholder: TextFieldProps['placeholder'];\n\n\t/**\n\t * Indicate whether or not a user should be able to edit the text field's\n\t * value.\n\t *\n\t * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#readonly\n\t */\n\tdeclare readOnly: TextFieldProps['read-only'];\n\n\t/**\n\t * Return or set the element's step attribute, which works with min and max\n\t * to limit the increments at which a numeric or date-time value can be set.\n\t *\n\t * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step\n\t */\n\tdeclare step: TextFieldProps['step'];\n\n\t/**\n\t * Text field size.\n\t */\n\tdeclare size: TextFieldProps['size'];\n\n\t/**\n\t * Input type.\n\t */\n\tdeclare type: TextFieldProps['type'];\n\n\t/**\n\t * Text field value.\n\t */\n\tdeclare value?: TextFieldProps['value'];\n\n\t/**\n\t * Text field status type.\n\t */\n\tdeclare status: TextFieldProps['status'];\n\n\tprivate inputElement: HTMLInputElement | null = null;\n\n\t/**\n\t * If there's a m-field ancestor, we want to consume its context.\n\t */\n\tprivate field = new ContextConsumer(this, fieldContext, undefined, true);\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.clearable = false;\n\t\tthis.disabled = false;\n\t\tthis.placeholder = undefined;\n\t\tthis.size = 'default';\n\t\tthis.type = 'text';\n\t\tthis.value = undefined;\n\t\tthis.max = '';\n\t}\n\n\toverride connectedCallback() {\n\t\tsuper.connectedCallback();\n\n\t\tthis.setAttribute('role', 'textbox');\n\t}\n\n\toverride render() {\n\t\treturn html`\n\t\t\t<div\n\t\t\t\tclass=${classMap({\n\t\t\t\t\tcontainer: true,\n\n\t\t\t\t\t'-size-small': this.size === 'small',\n\t\t\t\t\t'-size-default': this.size === 'default',\n\t\t\t\t\t'-size-large': this.size === 'large',\n\n\t\t\t\t\t'is-disabled': Boolean(this.disabled),\n\n\t\t\t\t\t'-status-default': this.#getStatus() === 'default',\n\t\t\t\t\t'-status-danger': this.#getStatus() === 'danger',\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<slot name=\"leading\"></slot>\n\t\t\t\t<input\n\t\t\t\t\tid=\"${ifDefined(this.id)}\"\n\t\t\t\t\ttype=\"${ifDefined(this.type)}\"\n\t\t\t\t\tclass=\"text-field\"\n\t\t\t\t\taria-disabled=${this.disabled ? 'true' : 'false'}\n\t\t\t\t\t?disabled=\"${this.disabled}\"\n\t\t\t\t\t?readonly=${this.readOnly}\n\t\t\t\t\tmax=${(this.max || nothing) as unknown as number}\n\t\t\t\t\tmaxlength=${this.maxLength != null && this.maxLength > -1\n\t\t\t\t\t\t? this.maxLength\n\t\t\t\t\t\t: nothing}\n\t\t\t\t\tmin=${(this.min || nothing) as unknown as number}\n\t\t\t\t\tminlength=${this.minLength != null && this.minLength > -1\n\t\t\t\t\t\t? this.minLength\n\t\t\t\t\t\t: nothing}\n\t\t\t\t\tpattern=${ifDefined(this.pattern)}\n\t\t\t\t\tplaceholder=\"${ifDefined(this.placeholder)}\"\n\t\t\t\t\tstep=${(this.step || nothing) as unknown as number}\n\t\t\t\t\tvalue=\"${ifDefined(this.value)}\"\n\t\t\t\t\t@change=${this.reemit}\n\t\t\t\t\t@input=${this.#handleInput}\n\t\t\t\t/>\n\t\t\t\t${this.clearable\n\t\t\t\t\t? html`<m-close-button\n\t\t\t\t\t\t\tclass=${classMap({\n\t\t\t\t\t\t\t\tclear: true,\n\n\t\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t\t * we use this approach to avoid the layout shift\n\t\t\t\t\t\t\t\t * when showing/hiding the clear button as the users\n\t\t\t\t\t\t\t\t * changes the input value.\n\t\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\t'is-visible': this.#isClearVisible(),\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\tcontrols=\"${ifDefined(this.id)}\"\n\t\t\t\t\t\t\t@m-close=${this.#handleClear}\n\t\t\t\t\t\t\tlabel=\"Clear input\"\n\t\t\t\t\t ></m-close-button>`\n\t\t\t\t\t: nothing}\n\t\t\t\t<slot name=\"trailing\"></slot>\n\t\t\t</div>\n\t\t`;\n\t}\n\n\tget input(): HTMLInputElement | null {\n\t\tif (this.inputElement == null) {\n\t\t\tthis.inputElement = this.shadowRoot?.querySelector('input') ?? null;\n\t\t}\n\n\t\treturn this.inputElement;\n\t}\n\n\tclear() {\n\t\tthis.value = '';\n\n\t\tif (this.input) {\n\t\t\tthis.input.value = '';\n\t\t}\n\n\t\tthis.emit('m-clear');\n\n\t\tthis.focus();\n\t}\n\n\toverride focus() {\n\t\tthis.input?.focus();\n\t}\n\n\t#isClearVisible(): boolean {\n\t\tconst value = this.value || '';\n\n\t\treturn !this.disabled && value.length > 0;\n\t}\n\n\t#getStatus() {\n\t\treturn this.status || this.field.value?.status;\n\t}\n\n\t#handleInput = (event: Event) => {\n\t\tthis.value = (event.target as HTMLInputElement).value;\n\n\t\tthis.reemit(event);\n\t};\n\n\t#handleClear = (event: Event) => {\n\t\tevent.stopPropagation();\n\n\t\tthis.clear();\n\t};\n}\n\nwindow.customElements.define('m-text-field', TextField);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-text-field': TextField;\n\t}\n}\n","import { css } from 'lit';\n\nimport { disabled, transition, typography, on, px } from '../../styles';\nimport color from '../../utils/get-color-token';\nimport token from '../../utils/get-token';\n\nfunction styles() {\n\treturn css`\n\t\t:host {\n\t\t\t--m-text-field-background-color: transparent;\n\t\t\t--m-text-field-border-color: ${color('color-border')};\n\t\t\t--m-text-field-height: ${token('global-height-default')};\n\t\t\t--m-text-field-outline-color: ${color('color-primary-100')};\n\t\t\t--m-text-field-outline-offset: 2px;\n\t\t\t--m-text-field-padding-y: ${token('spacing-2')};\n\t\t\t--m-text-field-placeholder-color: ${color('color-text-placeholder')};\n\t\t\t--m-text-field-color: ${color('color-text-primary')};\n\t\t}\n\n\t\t.container {\n\t\t\t${typography('body-md')};\n\t\t\t${transition([\n\t\t\t\t{ property: 'background-color' },\n\t\t\t\t{ property: 'border-color' },\n\t\t\t])};\n\n\t\t\tdisplay: inline-flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: start;\n\t\t\tgap: ${token('spacing-2')};\n\n\t\t\tposition: relative;\n\t\t\tbox-sizing: border-box;\n\t\t\twidth: 100%;\n\t\t\tblock-size: var(--m-text-field-height);\n\n\t\t\t${px(token('spacing-2'))};\n\n\t\t\tbackground-color: var(--m-text-field-background-color);\n\t\t\tborder-radius: ${token('border-radius-s')};\n\t\t\tborder: 1px solid var(--m-text-field-border-color);\n\t\t}\n\n\t\t.container.-size-small {\n\t\t\t--m-text-field-height: ${token('global-height-small')};\n\t\t\t--m-text-field-padding-y: 0;\n\t\t}\n\n\t\t.container.-size-small,\n\t\t.container.-size-small .text-field {\n\t\t\t${typography('body-sm')};\n\t\t}\n\n\t\t.container.-size-large {\n\t\t\t--m-text-field-height: ${token('global-height-large')};\n\t\t\t--m-text-field-padding-y: ${token('spacing-3')};\n\t\t}\n\n\t\t.container.-status-danger {\n\t\t\t--m-text-field-border-color: ${color('color-danger-60')};\n\t\t}\n\n\t\t${disabled('.container')} {\n\t\t\t--m-text-field-background-color: ${color('color-background-tertiary')};\n\n\t\t\tcursor: default;\n\t\t}\n\n\t\t${disabled('.container', '*')} {\n\t\t\tpointer-events: none;\n\t\t}\n\n\t\tslot[name='leading']::slotted(*),\n\t\tslot[name='trailing']::slotted(*) {\n\t\t\tdisplay: inline-flex;\n\t\t\tflex: 0 0 auto;\n\t\t\talign-items: center;\n\t\t\tcursor: default;\n\t\t}\n\n\t\t${on.hover('.container')} {\n\t\t\t--m-text-field-border-color: ${color('color-primary-60')};\n\t\t}\n\n\t\t${on.focus('.container')} {\n\t\t\t--m-text-field-border-color: ${color('color-primary-60')};\n\n\t\t\toutline: 1px solid var(--m-text-field-outline-color);\n\t\t\toutline-offset: var(--m-text-field-outline-offset);\n\t\t}\n\n\t\t.text-field {\n\t\t\t${typography('body-md')};\n\n\t\t\tborder: none;\n\t\t\toutline: none;\n\t\t\tflex: 1;\n\t\t\tmin-width: 0;\n\n\t\t\t${px(0)};\n\t\t\tpadding-block: var(--m-text-field-padding-y);\n\n\t\t\tbackground-color: var(--m-text-field-background-color);\n\t\t\tcolor: var(--m-text-field-color);\n\t\t}\n\n\t\t.text-field::placeholder {\n\t\t\tcolor: var(--m-text-field-placeholder-color);\n\t\t}\n\n\t\t${on.active('.text-field')},\n\t\t${on.focus('.text-field')} {\n\t\t\t-webkit-appearance: none;\n\t\t\tbackground: none;\n\t\t\tborder: none;\n\t\t\toutline: none;\n\t\t}\n\n\t\t.clear {\n\t\t\tvisibility: hidden;\n\t\t}\n\n\t\t.clear.is-visible {\n\t\t\tvisibility: visible;\n\t\t}\n\t`;\n}\n\nexport default styles;\n","export const TOGGLE_EVENT = 'm-toggle';\n","import { LitElement, html } from 'lit';\nimport type { PropertyValues } from 'lit';\nimport { classMap } from 'lit/directives/class-map.js';\nimport toArray from '@loadsmart/miranda-toolset/dist/to-array';\n\nimport { TOGGLE_EVENT } from './toggle-group.constants';\nimport SelectionController from '../../controllers/selection';\nimport styles from './toggle-group.styles';\nimport type {\n\tAcceptedType,\n\tSelectionType,\n\tSelectionState,\n} from '../../controllers/selection';\nimport type { Toggle } from './toggle';\n\nimport '../layout/group';\n\nexport type ToggleSize = 'small' | 'default';\n\nexport type ToggleGroupChangeEventDetail = {\n\ttype: SelectionType;\n\tvalue: SelectionState;\n};\n\nexport interface ToggleGroupProps {\n\tdisabled?: boolean;\n\tshowCheck?: boolean;\n\tsize?: ToggleSize;\n\ttype?: SelectionType;\n\tvalue?: AcceptedType | AcceptedType[];\n\t'm-change'?: (event: CustomEvent<ToggleGroupChangeEventDetail>) => void;\n}\n\nexport class ToggleGroup extends LitElement {\n\tstatic override styles = [styles()];\n\n\t#selectionController: SelectionController | null = null;\n\n\t#defaultSlot: HTMLSlotElement | null = null;\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\tdisabled: { type: Boolean },\n\t\t\trole: { type: String, reflect: true },\n\t\t\tshowCheck: { type: Boolean, attribute: 'show-check' },\n\t\t\tsize: { type: String, reflect: true },\n\t\t\ttype: { type: String },\n\t\t\tvalue: {},\n\t\t\tselection: { state: true },\n\t\t};\n\t}\n\n\t/**\n\t * Should the toggle group be disabled.\n\t */\n\tdeclare disabled: boolean;\n\n\t/**\n\t * Aria role\n\t */\n\tdeclare role: 'group' | 'radiogroup';\n\n\t/**\n\t * Should show the check icon when selected.\n\t * The check icon is the default content for the `leading` slot.\n\t */\n\tdeclare showCheck: boolean;\n\n\t/**\n\t * Strategy for toggling.\n\t */\n\tdeclare type: SelectionType;\n\n\t/**\n\t * Toggle group value.\n\t */\n\tdeclare value?: AcceptedType | AcceptedType[];\n\n\t/**\n\t * Button size.\n\t */\n\tdeclare size: ToggleSize;\n\n\t/**\n\t * Inner toggle selection state.\n\t */\n\tdeclare selection: SelectionState;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.showCheck = false;\n\t\tthis.size = 'default';\n\t\tthis.type = 'single';\n\t\tthis.selection = new Set();\n\t}\n\n\tprotected override update(changedProperties: PropertyValues<this>): void {\n\t\tsuper.update(changedProperties);\n\n\t\t/**\n\t\t * [!] This flow covers a toggle group changing its selection `type` after being mounted\n\t\t * and having its selection controller initialized.\n\t\t */\n\t\tif (\n\t\t\t(changedProperties.get('type') != null && this.type != null) ||\n\t\t\tthis.#selectionController == null\n\t\t) {\n\t\t\tthis.#selectionController = new SelectionController(\n\t\t\t\tthis,\n\t\t\t\tthis.type,\n\t\t\t\tTOGGLE_EVENT,\n\t\t\t);\n\n\t\t\tthis.#selectionController.init(toArray(this.value));\n\n\t\t\t// eslint-disable-next-line lit/no-property-change-update -- FIXME\n\t\t\tthis.role = ['single', 'single-strict'].includes(this.type)\n\t\t\t\t? 'radiogroup'\n\t\t\t\t: 'group';\n\t\t}\n\n\t\tif (changedProperties.has('value')) {\n\t\t\tthis.#selectionController.init(toArray(this.value));\n\t\t}\n\t}\n\n\tprotected override updated(changedProperties: PropertyValues<this>): void {\n\t\tsuper.updated(changedProperties);\n\n\t\tif (changedProperties.has('selection')) {\n\t\t\tthis.#getToggles().forEach((toggle) => {\n\t\t\t\tthis.#setToggleChecked(toggle);\n\t\t\t});\n\t\t}\n\n\t\tif (changedProperties.has('disabled')) {\n\t\t\tthis.#getToggles().forEach((toggle) => {\n\t\t\t\tthis.#setToggleDisabled(toggle);\n\t\t\t});\n\t\t}\n\n\t\tif (changedProperties.has('role')) {\n\t\t\tthis.#getToggles().forEach((toggle) => {\n\t\t\t\tthis.#setToggleRole(toggle);\n\t\t\t});\n\t\t}\n\t}\n\n\toverride render() {\n\t\treturn html`\n\t\t\t<m-group\n\t\t\t\tclass=${classMap({\n\t\t\t\t\t'toggle-group': true,\n\t\t\t\t\t'-single': this.type === 'single',\n\t\t\t\t\t'-single-strict': this.type === 'single-strict',\n\t\t\t\t\t'-multiple': this.type === 'multiple',\n\n\t\t\t\t\t'-small': this.size === 'small',\n\n\t\t\t\t\t'-show-check': this.showCheck,\n\t\t\t\t})}\n\t\t\t\tgap=\"spacing-1\"\n\t\t\t>\n\t\t\t\t<slot></slot>\n\t\t\t</m-group>\n\t\t`;\n\t}\n\n\t#getToggles = (): Toggle[] => {\n\t\tthis.#defaultSlot ??=\n\t\t\tthis.shadowRoot && this.shadowRoot.querySelector('slot');\n\n\t\tconst items = this.#defaultSlot?.assignedElements({ flatten: true }) ?? [];\n\n\t\treturn [...items].filter(\n\t\t\t(item) => item.tagName.toLowerCase() === 'm-toggle',\n\t\t) as Toggle[];\n\t};\n\n\t#setToggleRole = (toggle: Toggle) => {\n\t\ttoggle.setAttribute(\n\t\t\t'role',\n\t\t\t['single', 'single-strict'].includes(this.type) ? 'radio' : 'checkbox',\n\t\t);\n\t};\n\n\t#setToggleChecked = (toggle: Toggle) => {\n\t\t// eslint-disable-next-line no-param-reassign\n\t\ttoggle.checked = this.selection.has(toggle.value);\n\t};\n\n\t#setToggleDisabled = (toggle: Toggle) => {\n\t\t// eslint-disable-next-line no-param-reassign\n\t\ttoggle.disabled = this.disabled;\n\t};\n}\n\nwindow.customElements.define('m-toggle-group', ToggleGroup);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-toggle-group': ToggleGroup;\n\t}\n}\n","import { css } from 'lit';\n\nimport color from '../../utils/get-color-token';\nimport token from '../../utils/get-token';\n\nfunction styles() {\n\treturn [\n\t\tcss`\n\t\t\t.toggle-group {\n\t\t\t\tinline-size: max-content;\n\n\t\t\t\tborder: 1px solid ${color('color-border')};\n\t\t\t\tpadding: ${token('spacing-1')};\n\n\t\t\t\tborder-radius: ${token('border-radius-s')};\n\t\t\t\tbox-sizing: border-box;\n\n\t\t\t\tblock-size: ${token('global-height-default')};\n\t\t\t}\n\n\t\t\t.toggle-group.-small {\n\t\t\t\tblock-size: ${token('global-height-small')};\n\t\t\t}\n\n\t\t\t.toggle-group.-small ::slotted(m-toggle) {\n\t\t\t\t--m-toggle-base-size: 18px;\n\t\t\t\t--m-toggle-font-size: ${token('font-size-2')};\n\t\t\t\t--m-toggle-icon-size: 10px;\n\t\t\t}\n\n\t\t\t.toggle-group.-show-check ::slotted(m-toggle[aria-checked='true']) {\n\t\t\t\t--m-toggle-icon-display: inline-flex;\n\t\t\t}\n\t\t`,\n\t];\n}\n\nexport default styles;\n","import { LitElement, html } from 'lit';\nimport type { PropertyValues } from 'lit';\nimport { classMap } from 'lit/directives/class-map.js';\n\nimport { TOGGLE_EVENT } from './toggle-group.constants';\nimport styles from './toggle.styles';\n\nimport '../icon';\n\nexport interface ToggleProps {\n\tchecked?: boolean;\n\tdisabled?: boolean;\n\tvalue: string;\n}\n\nexport class Toggle extends LitElement {\n\tstatic override styles = [styles()];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\tchecked: { type: Boolean },\n\t\t\tdisabled: { type: Boolean, reflect: true },\n\t\t\trole: { type: String, reflect: true },\n\t\t\tvalue: { type: String, reflect: true },\n\t\t};\n\t}\n\n\t/**\n\t * Should the button be disabled.\n\t * @type {Boolean}\n\t */\n\tdeclare disabled: boolean;\n\n\t/**\n\t * Aria role\n\t */\n\tdeclare role: 'group' | 'radiogroup';\n\n\t/**\n\t * Should the toggle be selected.\n\t */\n\tdeclare checked: boolean;\n\n\t/**\n\t * Value represented by this toggle.\n\t */\n\tdeclare value: string;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.disabled = false;\n\t\tthis.checked = false;\n\t}\n\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback();\n\n\t\tthis.addEventListener('click', this.#handleClick);\n\t}\n\n\toverride disconnectedCallback(): void {\n\t\tsuper.disconnectedCallback();\n\n\t\tthis.removeEventListener('click', this.#handleClick);\n\t}\n\n\tprotected override updated(changedProperties: PropertyValues<this>): void {\n\t\tsuper.updated(changedProperties);\n\n\t\tif (changedProperties.has('disabled')) {\n\t\t\tthis.#setDisabled();\n\t\t}\n\n\t\tif (changedProperties.has('checked')) {\n\t\t\tthis.#setChecked();\n\t\t}\n\t}\n\n\toverride render() {\n\t\treturn html`\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tclass=${classMap({\n\t\t\t\t\tbutton: true,\n\t\t\t\t\ttoggle: true,\n\t\t\t\t})}\n\t\t\t\trole=\"${this.role}\"\n\t\t\t\taria-checked=\"${this.checked}\"\n\t\t\t\t?disabled=\"${this.disabled}\"\n\t\t\t>\n\t\t\t\t<slot name=\"leading\" slot=\"leading\">\n\t\t\t\t\t<m-icon name=\"check\" class=\"check-icon\"></m-icon>\n\t\t\t\t</slot>\n\n\t\t\t\t<slot></slot>\n\t\t\t</button>\n\t\t`;\n\t}\n\n\toverride focus(options?: FocusOptions | undefined): void {\n\t\tthis.#button?.focus(options);\n\t}\n\n\tget #button(): HTMLButtonElement | null {\n\t\treturn this.renderRoot?.querySelector('button') ?? null;\n\t}\n\n\t#handleClick = () => {\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.checked = !this.checked;\n\n\t\tconst options = {\n\t\t\tdetail: { value: this.value, type: 'toggle' },\n\t\t\tbubbles: true,\n\t\t\tcomposed: false,\n\t\t};\n\n\t\tthis.dispatchEvent(new CustomEvent(TOGGLE_EVENT, options));\n\t};\n\n\t#setDisabled = () => {\n\t\tthis.setAttribute('aria-disabled', String(this.disabled));\n\t};\n\n\t#setChecked = () => {\n\t\tthis.setAttribute('aria-checked', String(this.checked));\n\t};\n}\n\nwindow.customElements.define('m-toggle', Toggle);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-toggle': Toggle;\n\t}\n}\n","function trim(value: string) {\n\treturn value.trim();\n}\n\nexport function convertTriggerFromAttribute(value?: string | null) {\n\tif (!value) {\n\t\treturn ['hover'];\n\t}\n\n\treturn String(value)\n\t\t.split(/[\\s,]+/)\n\t\t.map(trim)\n\t\t.filter(Boolean);\n}\n","function getAlignment(placement) {\n return placement.split('-')[1];\n}\n\nfunction getLengthFromAxis(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\n\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\n\nfunction getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].includes(getSide(placement)) ? 'x' : 'y';\n}\n\nfunction computeCoordsFromPlacement(_ref, placement, rtl) {\n let {\n reference,\n floating\n } = _ref;\n const commonX = reference.x + reference.width / 2 - floating.width / 2;\n const commonY = reference.y + reference.height / 2 - floating.height / 2;\n const mainAxis = getMainAxisFromPlacement(placement);\n const length = getLengthFromAxis(mainAxis);\n const commonAlign = reference[length] / 2 - floating[length] / 2;\n const side = getSide(placement);\n const isVertical = mainAxis === 'x';\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[mainAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);\n break;\n case 'end':\n coords[mainAxis] += 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 reference element when it is given a certain positioning strategy.\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 continue;\n }\n }\n return {\n x,\n y,\n placement: statefulPlacement,\n strategy,\n middlewareData\n };\n};\n\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\n\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\n\nfunction getSideObjectFromPadding(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\n\nfunction rectToClientRect(rect) {\n return {\n ...rect,\n top: rect.y,\n left: rect.x,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\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 = getSideObjectFromPadding(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 ...rects.floating,\n x,\n y\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 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\nconst min = Math.min;\nconst max = Math.max;\n\nfunction within(min$1, value, max$1) {\n return max(min$1, min(value, max$1));\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 } = 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 = getSideObjectFromPadding(padding);\n const coords = {\n x,\n y\n };\n const axis = getMainAxisFromPlacement(placement);\n const length = getLengthFromAxis(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 = within(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. This stops `shift()` from taking action, but can\n // be worked around by calling it again after the `arrow()` if desired.\n const shouldAddOffset = 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 ? min$1 - center : max - center : 0;\n return {\n [axis]: coords[axis] - alignmentOffset,\n data: {\n [axis]: offset,\n centerOffset: center - offset + alignmentOffset\n }\n };\n }\n});\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst allPlacements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-start\", side + \"-end\"), []);\n\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nfunction getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);\n}\n\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const mainAxis = getMainAxisFromPlacement(placement);\n const length = getLengthFromAxis(mainAxis);\n let mainAlignmentSide = mainAxis === '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 {\n main: mainAlignmentSide,\n cross: getOppositePlacement(mainAlignmentSide)\n };\n}\n\nconst oppositeAlignmentMap = {\n start: 'end',\n end: 'start'\n};\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);\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 = allPlacements,\n autoAlignment = true,\n ...detectOverflowOptions\n } = evaluate(options, state);\n const placements = alignment !== undefined || allowedPlacements === allPlacements ? 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[currentIndex];\n if (currentPlacement == null) {\n return {};\n }\n const {\n main,\n cross\n } = 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[0]\n }\n };\n }\n const currentOverflows = [overflow[getSide(currentPlacement)], overflow[main], overflow[cross]];\n const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {\n placement: currentPlacement,\n overflows: currentOverflows\n }];\n const nextPlacement = placements[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\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\n\nfunction getSideList(side, isStart, rtl) {\n const lr = ['left', 'right'];\n const rl = ['right', 'left'];\n const tb = ['top', 'bottom'];\n const bt = ['bottom', 'top'];\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rl : lr;\n return isStart ? lr : rl;\n case 'left':\n case 'right':\n return isStart ? tb : bt;\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}\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$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 const side = getSide(placement);\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 if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== 'none') {\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 {\n main,\n cross\n } = getAlignmentSides(placement, rects, rtl);\n overflows.push(overflow[main], overflow[cross]);\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 // 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 // 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$map$so;\n const placement = (_overflowsData$map$so = overflowsData.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$map$so[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 = getSideObjectFromPadding(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 (getMainAxisFromPlacement(placement) === 'x') {\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\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 = getMainAxisFromPlacement(placement) === 'x';\n const mainAxisMulti = ['left', 'top'].includes(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: 0,\n crossAxis: 0,\n alignmentAxis: null,\n ...rawValue\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 const {\n x,\n y\n } = state;\n const diffCoords = await convertValueToCoords(state, options);\n return {\n x: x + diffCoords.x,\n y: y + diffCoords.y,\n data: diffCoords\n };\n }\n };\n};\n\nfunction getCrossAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\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 mainAxis = getMainAxisFromPlacement(getSide(placement));\n const crossAxis = getCrossAxis(mainAxis);\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 = within(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 = within(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 }\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 mainAxis = getMainAxisFromPlacement(placement);\n const crossAxis = getCrossAxis(mainAxis);\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 = ['top', 'left'].includes(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 —\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 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 axis = getMainAxisFromPlacement(placement);\n const isXAxis = axis === 'x';\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 overflowAvailableHeight = height - overflow[heightSide];\n const overflowAvailableWidth = width - overflow[widthSide];\n const noShift = !state.middlewareData.shift;\n let availableHeight = overflowAvailableHeight;\n let availableWidth = overflowAvailableWidth;\n if (isXAxis) {\n const maximumClippingWidth = width - overflow.left - overflow.right;\n availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;\n } else {\n const maximumClippingHeight = height - overflow.top - overflow.bottom;\n availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : 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 (isXAxis) {\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, rectToClientRect, shift, size };\n","import { css } from 'lit';\n\nimport { disabled, on } from '../../styles';\nimport baseStyles from '../button/base-button.styles';\nimport color from '../../utils/get-color-token';\nimport token from '../../utils/get-token';\n\nfunction styles() {\n\treturn [\n\t\tbaseStyles(),\n\t\tcss`\n\t\t\t:host {\n\t\t\t\t/*\n\t\t\t\t * These custom properties are here because they are meant to be\n\t\t\t\t * overriden via toggle-group styles.\n\t\t\t\t */\n\t\t\t\t--m-toggle-base-size: 30px;\n\t\t\t\t--m-toggle-font-size: ${token('font-size-3')};\n\t\t\t\t--m-toggle-icon-size: 12px;\n\t\t\t\t--m-toggle-icon-display: none;\n\n\t\t\t\t--m-button-border-color: transparent;\n\t\t\t\t--m-button-color: ${color('color-primary-100')};\n\t\t\t\t--m-button-padding-x: ${token('spacing-2')};\n\t\t\t\t--m-button-padding-y: 0;\n\n\t\t\t\t--m-button-base-size: var(--m-toggle-base-size);\n\t\t\t\t--m-button-font-size: var(--m-toggle-font-size);\n\t\t\t}\n\n\t\t\t${disabled(['.toggle'])} {\n\t\t\t\t--m-button-color: ${color('color-text-disabled')};\n\t\t\t}\n\n\t\t\t[aria-checked='true'] {\n\t\t\t\t--m-button-background-color: ${color('color-primary-20')};\n\t\t\t}\n\n\t\t\t${on.hover('.toggle')} {\n\t\t\t\t--m-button-background-color: ${color('color-background-tertiary')};\n\t\t\t\t--m-button-border-color: ${color('color-background-tertiary')};\n\t\t\t\t--m-button-color: ${color('color-primary-100')};\n\t\t\t}\n\n\t\t\t.check-icon {\n\t\t\t\t--m-icon-size: var(--m-toggle-icon-size);\n\t\t\t\t--m-icon-color: var(--m-button-color);\n\n\t\t\t\tdisplay: var(--m-toggle-icon-display);\n\t\t\t}\n\t\t`,\n\t];\n}\n\nexport default styles;\n","import { rectToClientRect, computePosition as computePosition$1 } from '@floating-ui/core';\nexport { arrow, autoPlacement, detectOverflow, flip, hide, inline, limitShift, offset, shift, size } from '@floating-ui/core';\n\nfunction getWindow(node) {\n var _node$ownerDocument;\n return ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\n\nfunction getComputedStyle$1(element) {\n return getWindow(element).getComputedStyle(element);\n}\n\nfunction isNode(value) {\n return value instanceof getWindow(value).Node;\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}\n\nfunction isHTMLElement(value) {\n return value instanceof getWindow(value).HTMLElement;\n}\nfunction isElement(value) {\n return value instanceof getWindow(value).Element;\n}\nfunction isShadowRoot(node) {\n // Browsers without `ShadowRoot` support.\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n return node instanceof getWindow(node).ShadowRoot || node instanceof ShadowRoot;\n}\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle$1(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);\n}\nfunction isTableElement(element) {\n return ['table', 'td', 'th'].includes(getNodeName(element));\n}\nfunction isContainingBlock(element) {\n const safari = isSafari();\n const css = getComputedStyle$1(element);\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n return css.transform !== 'none' || css.perspective !== 'none' || !safari && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !safari && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));\n}\nfunction isSafari() {\n if (typeof CSS === 'undefined' || !CSS.supports) return false;\n return CSS.supports('-webkit-backdrop-filter', 'none');\n}\nfunction isLastTraversableNode(node) {\n return ['html', 'body', '#document'].includes(getNodeName(node));\n}\n\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createEmptyCoords = v => ({\n x: v,\n y: v\n});\n\nfunction getCssDimensions(element) {\n const css = getComputedStyle$1(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 createEmptyCoords(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__*/createEmptyCoords(0);\nfunction getVisualOffsets(element, isFixed, floatingOffsetParent) {\n var _win$visualViewport, _win$visualViewport2;\n if (isFixed === void 0) {\n isFixed = true;\n }\n if (!isSafari()) {\n return noOffsets;\n }\n const win = element ? getWindow(element) : window;\n if (!floatingOffsetParent || isFixed && floatingOffsetParent !== win) {\n return noOffsets;\n }\n return {\n x: ((_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) || 0,\n y: ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0\n };\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 = createEmptyCoords(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 = getVisualOffsets(domElement, isFixedStrategy, offsetParent);\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 currentIFrame = win.frameElement;\n while (currentIFrame && offsetParent && offsetWin !== win) {\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 currentIFrame = getWindow(currentIFrame).frameElement;\n }\n }\n return rectToClientRect({\n width,\n height,\n x,\n y\n });\n}\n\nfunction getDocumentElement(node) {\n return ((isNode(node) ? node.ownerDocument : node.document) || window.document).documentElement;\n}\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.pageXOffset,\n scrollTop: element.pageYOffset\n };\n}\n\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n let {\n rect,\n offsetParent,\n strategy\n } = _ref;\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n const documentElement = getDocumentElement(offsetParent);\n if (offsetParent === documentElement) {\n return rect;\n }\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n let scale = createEmptyCoords(1);\n const offsets = createEmptyCoords(0);\n if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {\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 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,\n y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y\n };\n}\n\nfunction getWindowScrollBarX(element) {\n // If <html> has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;\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$1(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 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}\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}\n\nfunction getOverflowAncestors(node, list) {\n var _node$ownerDocument;\n if (list === void 0) {\n list = [];\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);\n }\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));\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 = isSafari();\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) : createEmptyCoords(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 ...clippingAncestor,\n x: clippingAncestor.x - visualOffsets.x,\n y: clippingAncestor.y - visualOffsets.y\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$1(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).filter(el => isElement(el) && getNodeName(el) !== 'body');\n let currentContainingBlockComputedStyle = null;\n const elementIsFixed = getComputedStyle$1(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$1(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' ? 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 return getCssDimensions(element);\n}\n\nfunction getTrueOffsetParent(element, polyfill) {\n if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {\n return null;\n }\n if (polyfill) {\n return polyfill(element);\n }\n return element.offsetParent;\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else {\n currentNode = getParentNode(currentNode);\n }\n }\n return null;\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 window = getWindow(element);\n if (!isHTMLElement(element)) {\n return window;\n }\n let offsetParent = getTrueOffsetParent(element, polyfill);\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent, polyfill);\n }\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {\n return window;\n }\n return offsetParent || getContainingBlock(element) || window;\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 = createEmptyCoords(0);\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, true, isFixed, offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}\n\nconst platform = {\n getClippingRect,\n convertOffsetParentRelativeRectToViewportRelativeRect,\n isElement,\n getDimensions,\n getOffsetParent,\n getDocumentElement,\n getScale,\n async getElementRects(_ref) {\n let {\n reference,\n floating,\n strategy\n } = _ref;\n const getOffsetParentFn = this.getOffsetParent || getOffsetParent;\n const getDimensionsFn = this.getDimensions;\n return {\n reference: getRectRelativeToOffsetParent(reference, await getOffsetParentFn(floating), strategy),\n floating: {\n x: 0,\n y: 0,\n ...(await getDimensionsFn(floating))\n }\n };\n },\n getClientRects: element => Array.from(element.getClientRects()),\n isRTL: element => getComputedStyle$1(element).direction === 'rtl'\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 clearTimeout(timeoutId);\n io && 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 {\n left,\n top,\n width,\n height\n } = element.getBoundingClientRect();\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 let isFirstUpdate = true;\n io = new IntersectionObserver(entries => {\n const ratio = entries[0].intersectionRatio;\n if (ratio !== threshold) {\n if (!isFirstUpdate) {\n return refresh();\n }\n if (ratio === 0) {\n timeoutId = setTimeout(() => {\n refresh(false, 1e-7);\n }, 100);\n } else {\n refresh(false, ratio);\n }\n }\n isFirstUpdate = false;\n }, {\n rootMargin,\n threshold\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 = true,\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 resizeObserver = null;\n if (elementResize) {\n resizeObserver = new ResizeObserver(update);\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 && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {\n update();\n }\n prevRefRect = nextRefRect;\n frameId = requestAnimationFrame(frameLoop);\n }\n update();\n return () => {\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.removeEventListener('scroll', update);\n ancestorResize && ancestor.removeEventListener('resize', update);\n });\n cleanupIo && cleanupIo();\n resizeObserver && resizeObserver.disconnect();\n resizeObserver = null;\n if (animationFrame) {\n cancelAnimationFrame(frameId);\n }\n };\n}\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a reference element when it is given a certain CSS positioning\n * strategy.\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 { autoUpdate, computePosition, getOverflowAncestors, platform };\n","import { html } from 'lit';\nimport {\n\tarrow,\n\tautoUpdate,\n\tcomputePosition,\n\tflip,\n\toffset,\n\tshift,\n} from '@floating-ui/dom';\nimport type { MiddlewareData } from '@floating-ui/dom';\nimport type { PropertyValues } from 'lit';\nimport type {\n\tAlignedPlacement,\n\tPopoverPlacement,\n\tPopoverProps,\n\tSide,\n} from './popover.types';\nimport { Component } from '../component';\n\n// If you're flipping to all different placements this will be necessary.\nconst UNSET_SIDES: Record<Side, string> = {\n\ttop: '',\n\tbottom: '',\n\tleft: '',\n\tright: '',\n};\n\nexport const POPOVER_PLACEMENT_VALUES = [\n\t'top',\n\t'left',\n\t'right',\n\t'bottom',\n\t'top-start',\n\t'top-end',\n\t'bottom-start',\n\t'bottom-end',\n];\n\nexport abstract class Popover extends Component {\n\tstatic override get properties() {\n\t\treturn {\n\t\t\tposition: { type: String, reflect: true },\n\t\t\tplacement: { type: String },\n\t\t\topen: { type: Boolean, reflect: true },\n\t\t};\n\t}\n\n\t/**\n\t * Popover positioning strategy.\n\t */\n\tdeclare position: PopoverProps['position'];\n\n\t/**\n\t * Popover placement.\n\t */\n\tdeclare placement: PopoverProps['placement'];\n\n\t/**\n\t * Should popover's floating be open.\n\t */\n\tdeclare open: PopoverProps['open'];\n\n\t#updateCleanup?: () => void;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.position = 'fixed';\n\t\tthis.placement = 'top-end';\n\t\tthis.open = false;\n\t}\n\n\toverride disconnectedCallback(): void {\n\t\tsuper.disconnectedCallback();\n\n\t\tthis.#updateCleanup?.();\n\t}\n\n\tprotected override firstUpdated(): void {\n\t\tif (this.open) {\n\t\t\tthis.reposition('show');\n\t\t}\n\n\t\tthis.#updateCleanup = autoUpdate(this.reference!, this.floating!, () => {\n\t\t\tthis.reposition('auto');\n\t\t});\n\t}\n\n\toverride updated(changedProperties: PropertyValues<this>) {\n\t\tsuper.updated(changedProperties);\n\n\t\tif (\n\t\t\tthis.open &&\n\t\t\tchangedProperties.get('placement') != null &&\n\t\t\tthis.placement != null\n\t\t) {\n\t\t\tthis.reposition('placement');\n\t\t}\n\t}\n\n\tabstract getReferenceElement(): HTMLElement | null;\n\tabstract getFloatingElement(): HTMLElement | null;\n\tabstract getArrowElement(): HTMLElement | null;\n\n\t// eslint-disable-next-line class-methods-use-this\n\tgetFloatingOffset = () => {\n\t\treturn 20;\n\t};\n\n\tget reference() {\n\t\treturn this.getReferenceElement();\n\t}\n\n\tget floating() {\n\t\treturn this.getFloatingElement();\n\t}\n\n\tget arrow() {\n\t\treturn this.getArrowElement();\n\t}\n\n\tshow() {\n\t\tif (this.open) {\n\t\t\treturn;\n\t\t}\n\t\tthis.open = true;\n\t\tthis.reposition('show');\n\t}\n\n\thide() {\n\t\tif (!this.open) {\n\t\t\treturn;\n\t\t}\n\t\tthis.open = false;\n\t}\n\n\ttoggle() {\n\t\tif (this.open) {\n\t\t\tthis.hide();\n\t\t} else {\n\t\t\tthis.show();\n\t\t}\n\t}\n\n\t// eslint-disable-next-line class-methods-use-this\n\trenderArrow = () => {\n\t\treturn html`<span id=\"arrow\">\n\t\t\t<svg viewBox=\"0 0 20 10\">\n\t\t\t\t<polygon stroke-width=\"0\" points=\"0,10 20,10 10,0\" />\n\t\t\t</svg>\n\t\t</span>`;\n\t};\n\n\treposition = async (reason?: string) => {\n\t\tif (this.floating == null || this.reference == null) {\n\t\t\t// eslint-disable-next-line no-console\n\t\t\tconsole.warn(\n\t\t\t\t'[popover]',\n\t\t\t\t'both floating and reference elements should be available',\n\t\t\t\t{ reference: this.reference, floating: this.floating },\n\t\t\t);\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst { x, y, placement, middlewareData } = await computePosition(\n\t\t\tthis.reference,\n\t\t\tthis.floating,\n\t\t\t{\n\t\t\t\tstrategy: this.position ?? 'fixed',\n\t\t\t\tplacement: this.placement ?? 'bottom-start',\n\t\t\t\tmiddleware: [\n\t\t\t\t\t// for adding distance between the reference and floating element\n\t\t\t\t\toffset(this.getFloatingOffset()),\n\t\t\t\t\t// to prevent the floating element from overflowing on the main axis of its placement\n\t\t\t\t\tflip(),\n\t\t\t\t\t// preventing overflow while maintaining the desired placement as best as possible.\n\t\t\t\t\tshift(),\n\t\t\t\t\tthis.arrow ? arrow({ element: this.arrow, padding: 16 }) : undefined,\n\t\t\t\t],\n\t\t\t},\n\t\t);\n\n\t\tObject.assign(this.floating.style, {\n\t\t\ttop: `${y}px`,\n\t\t\tleft: `${x}px`,\n\t\t});\n\n\t\tif (this.arrow != null && middlewareData.arrow) {\n\t\t\tObject.assign(\n\t\t\t\tthis.arrow.style,\n\t\t\t\tthis.#getArrowPosition(\n\t\t\t\t\tplacement as PopoverPlacement,\n\t\t\t\t\tmiddlewareData.arrow,\n\t\t\t\t),\n\t\t\t);\n\t\t}\n\n\t\tthis.emit('m-popover-reposition', { detail: { reason } });\n\t};\n\n\t#getArrowPosition = (\n\t\tplacement: PopoverPlacement,\n\t\tcoords: MiddlewareData['arrow'],\n\t) => {\n\t\tif (\n\t\t\tthis.floating == null ||\n\t\t\tthis.reference == null ||\n\t\t\tthis.arrow == null ||\n\t\t\tcoords == null\n\t\t) {\n\t\t\treturn {};\n\t\t}\n\n\t\t/**\n\t\t * Implementation was based on https://codesandbox.io/s/determined-hill-7x5g57?file=/src/index.js:2268-2331.\n\t\t * This codesandbox is referenced in floating-ui docs: https://floating-ui.com/docs/arrow#visualization\n\t\t */\n\t\tconst [side, alignment] = placement.split('-');\n\n\t\tconst { x, y } = coords;\n\n\t\tconst mainSide = {\n\t\t\ttop: 'bottom',\n\t\t\tbottom: 'top',\n\t\t\tleft: 'right',\n\t\t\tright: 'left',\n\t\t}[side as Side];\n\n\t\tconst rotation = {\n\t\t\ttop: '180deg',\n\t\t\tbottom: '0deg',\n\t\t\tleft: '90deg',\n\t\t\tright: '-90deg',\n\t\t}[side];\n\n\t\tconst isAligned = alignment != null;\n\n\t\t// Reference is scaled? Use `.getBoundingClientRect()`\n\t\tconst isRefWider = this.reference.offsetWidth > this.floating.offsetWidth;\n\t\tconst isRefTaller =\n\t\t\tthis.reference.offsetHeight > this.floating.offsetHeight;\n\t\tconst isVerticalSide = ['top', 'bottom'].includes(side);\n\t\tconst useStaticPositioning =\n\t\t\tisAligned && (isVerticalSide ? isRefWider : isRefTaller);\n\n\t\tconst refBoundingClientRect = this.reference.getBoundingClientRect();\n\n\t\t/**\n\t\t * We need this because we do not render the arrow inside the floating element, as in the `floating-ui` docs example.\n\t\t * So our positioning is relative to the popover container, not the floating container.\n\t\t */\n\t\tconst sideIncrement: Record<string, number> = {\n\t\t\ttop: refBoundingClientRect.height,\n\t\t\tbottom: refBoundingClientRect.height,\n\t\t\tright: refBoundingClientRect.width,\n\t\t\tleft: refBoundingClientRect.width,\n\t\t};\n\n\t\tconst mainSidePosition = `calc(var(--m-popover-arrow-offset) + ${\n\t\t\tsideIncrement[mainSide]\n\t\t}px + ${this.getFloatingOffset()}px)`;\n\n\t\tlet arrowStyles = {\n\t\t\ttransform: `rotate(${rotation})`,\n\t\t\t...UNSET_SIDES,\n\t\t};\n\n\t\tif (useStaticPositioning) {\n\t\t\tconst crossSide = {\n\t\t\t\t'top-start': 'left',\n\t\t\t\t'top-end': 'right',\n\t\t\t\t'bottom-start': 'left',\n\t\t\t\t'bottom-end': 'right',\n\t\t\t}[placement as AlignedPlacement];\n\n\t\t\tarrowStyles = {\n\t\t\t\t...arrowStyles,\n\t\t\t\t[mainSide]: mainSidePosition,\n\t\t\t\t[crossSide]: '10px', // arbitrary value based on the Design Spec\n\t\t\t};\n\t\t} else {\n\t\t\tarrowStyles = {\n\t\t\t\t...arrowStyles,\n\t\t\t\tleft: x != null ? `${x}px` : '',\n\t\t\t\ttop: y != null ? `${y}px` : '',\n\t\t\t\t[mainSide]: mainSidePosition,\n\t\t\t};\n\t\t}\n\n\t\treturn arrowStyles;\n\t};\n}\n","import { html } from 'lit';\n\nimport { convertTriggerFromAttribute } from './tooltip.helpers';\nimport { Popover } from '../popover';\nimport styles from './tooltip.styles';\nimport type { PopoverProps, PopoverPlacement } from '../popover';\n\nexport type TooltipTrigger = 'hover' | 'focus' | 'click';\nexport type TooltipPlacement = PopoverPlacement;\n\nexport interface TooltipProps extends PopoverProps {\n\ttrigger: string;\n}\n\nexport class Tooltip extends Popover {\n\tstatic override styles = [styles()];\n\n\tstatic override get properties() {\n\t\treturn {\n\t\t\t...Popover.properties,\n\t\t\ttrigger: {\n\t\t\t\ttype: String,\n\t\t\t\tconverter: { fromAttribute: convertTriggerFromAttribute },\n\t\t\t},\n\t\t};\n\t}\n\n\t/**\n\t * Controls how the tooltip is activated. Possible options include `click`, `hover`, `focus`. Multiple\n\t * options can be passed by separating them with a comma, e.g., `'click,hover'`.\n\t * @type {string}\n\t */\n\tdeclare trigger: TooltipTrigger[];\n\n\t#hoverTimeout?: number;\n\n\t#focusTimeout?: number;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.position = 'fixed';\n\t\tthis.placement = 'top-start';\n\t\tthis.trigger = ['hover', 'focus'];\n\t}\n\n\toverride connectedCallback() {\n\t\tsuper.connectedCallback();\n\n\t\tthis.addEventListener('blur', this.#handleBlur, true);\n\t\tthis.addEventListener('click', this.#handleClick);\n\t\tthis.addEventListener('focus', this.#handleFocus, true);\n\t\tthis.addEventListener('keydown', this.#handleKeyDown);\n\t\tthis.addEventListener('mouseout', this.#handleMouseOut);\n\t\tthis.addEventListener('mouseover', this.#handleMouseOver);\n\t}\n\n\toverride disconnectedCallback() {\n\t\tsuper.disconnectedCallback();\n\n\t\tthis.removeEventListener('blur', this.#handleBlur, true);\n\t\tthis.removeEventListener('focus', this.#handleFocus, true);\n\t\tthis.removeEventListener('click', this.#handleClick);\n\t\tthis.removeEventListener('keydown', this.#handleKeyDown);\n\t\tthis.removeEventListener('mouseover', this.#handleMouseOver);\n\t\tthis.removeEventListener('mouseout', this.#handleMouseOut);\n\t}\n\n\toverride getReferenceElement(): HTMLElement | null {\n\t\tconst referenceSlot = this.shadowRoot!.querySelector(\n\t\t\t'slot[name=\"reference\"]',\n\t\t) as HTMLSlotElement;\n\n\t\tconst [reference] = referenceSlot.assignedElements({ flatten: true });\n\n\t\treturn reference as HTMLElement;\n\t}\n\n\toverride getFloatingElement(): HTMLElement | null {\n\t\tconst floatingSlot = this.shadowRoot!.querySelector(\n\t\t\t'slot[name=\"floating\"]',\n\t\t) as HTMLSlotElement;\n\n\t\tconst [floating] = floatingSlot.assignedElements({ flatten: true });\n\n\t\treturn floating as HTMLElement;\n\t}\n\n\toverride getArrowElement(): HTMLElement | null {\n\t\treturn this.shadowRoot!.querySelector('#arrow');\n\t}\n\n\toverride render() {\n\t\treturn html`\n\t\t\t${this.renderArrow()}\n\t\t\t<slot name=\"reference\" aria-describedby=\"floating\"></slot>\n\t\t\t<slot\n\t\t\t\tname=\"floating\"\n\t\t\t\tid=\"floating\"\n\t\t\t\trole=\"tooltip\"\n\t\t\t\taria-live=${this.open ? 'polite' : 'off'}\n\t\t\t></slot>\n\t\t`;\n\t}\n\n\t#handleFocus = () => {\n\t\tif (this.#hasTrigger('focus')) {\n\t\t\tclearTimeout(this.#focusTimeout);\n\n\t\t\tthis.#focusTimeout = window.setTimeout(() => this.show(), 450);\n\t\t}\n\t};\n\n\t#handleBlur = () => {\n\t\tif (this.#hasTrigger('focus')) {\n\t\t\tclearTimeout(this.#focusTimeout);\n\n\t\t\tthis.#focusTimeout = window.setTimeout(() => this.hide(), 450);\n\t\t}\n\t};\n\n\t#handleClick = () => {\n\t\tif (this.#hasTrigger('click')) {\n\t\t\tthis.toggle();\n\t\t}\n\t};\n\n\t#handleKeyDown = (event: KeyboardEvent) => {\n\t\tif (this.open && event.key === 'Escape') {\n\t\t\tevent.stopPropagation();\n\t\t\tthis.hide();\n\t\t}\n\t};\n\n\t#handleMouseOver = () => {\n\t\tif (this.#hasTrigger('hover')) {\n\t\t\tclearTimeout(this.#hoverTimeout);\n\n\t\t\tthis.#hoverTimeout = window.setTimeout(() => this.show(), 450);\n\t\t}\n\t};\n\n\t#handleMouseOut = () => {\n\t\tif (this.#hasTrigger('hover')) {\n\t\t\tclearTimeout(this.#hoverTimeout);\n\n\t\t\tthis.#hoverTimeout = window.setTimeout(() => this.hide(), 450);\n\t\t}\n\t};\n\n\t#hasTrigger = (triggerType: TooltipTrigger) => {\n\t\treturn this.trigger.includes(triggerType);\n\t};\n}\n\nwindow.customElements.define('m-tooltip', Tooltip);\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'm-tooltip': Tooltip;\n\t}\n}\n","import { css } from 'lit';\n\nimport { popoverStyles } from '../popover';\n\nfunction styles() {\n\treturn [\n\t\tpopoverStyles(),\n\t\tcss`\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t}\n\t\t`,\n\t];\n}\n\nexport default styles;\n","import { css } from 'lit';\n\nimport { transition, typography } from '../../styles';\nimport color from '../../utils/get-color-token';\nimport token from '../../utils/get-token';\n\nfunction styles() {\n\treturn [\n\t\tcss`\n\t\t\t:host {\n\t\t\t\t--m-popover-background-color: ${color(\n\t\t\t\t\t'color-background-secondary-inverted',\n\t\t\t\t)};\n\t\t\t\t--m-popover-border-radius: ${token('border-radius-m')};\n\t\t\t\t--m-popover-border-width: 0;\n\t\t\t\t--m-popover-border-style: none;\n\t\t\t\t--m-popover-border-color: transparent;\n\t\t\t\t--m-popover-color: ${color('color-text-inverted')};\n\t\t\t\t--m-popover-elevation: ${token('elevation-2')};\n\t\t\t\t--m-popover-width: max-content;\n\t\t\t\t--m-popover-z-index: 10;\n\t\t\t\t--m-popover-floating-spacing-x: ${token('spacing-4')};\n\t\t\t\t--m-popover-floating-spacing-y: ${token('spacing-2')};\n\n\t\t\t\t--m-popover-arrow-size: 20px;\n\t\t\t\t--m-popover-arrow-offset: calc(-1 * (var(--m-popover-arrow-size) / 2));\n\n\t\t\t\tposition: relative;\n\t\t\t}\n\n\t\t\tslot[name='reference']::slotted(*) {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n\n\t\t\tslot[name='floating']::slotted(*) {\n\t\t\t\t${transition([{ property: 'box-shadow' }])};\n\t\t\t\t${typography('body-md')};\n\n\t\t\t\tpadding-inline: var(--m-popover-floating-spacing-x);\n\t\t\t\tpadding-block: var(--m-popover-floating-spacing-y);\n\t\t\t\tmargin: 0;\n\n\t\t\t\tdisplay: none;\n\n\t\t\t\tmin-height: ${token('global-height-default')};\n\t\t\t\twidth: var(--m-popover-width);\n\t\t\t\tmin-width: 80px;\n\t\t\t\tmax-width: 80ch;\n\n\t\t\t\toverflow-x: hidden;\n\n\t\t\t\tborder-width: var(--m-popover-border-width);\n\t\t\t\tborder-style: var(--m-popover-border-style);\n\t\t\t\tborder-color: var(--m-popover-border-color);\n\t\t\t\tborder-radius: var(--m-popover-border-radius);\n\n\t\t\t\tbackground-color: var(--m-popover-background-color);\n\t\t\t\tcolor: var(--m-popover-color);\n\n\t\t\t\tbox-shadow: var(--m-popover-elevation);\n\t\t\t\tz-index: var(--m-popover-z-index);\n\t\t\t}\n\n\t\t\t:host([position='absolute']) slot[name='floating']::slotted(*) {\n\t\t\t\tposition: absolute;\n\t\t\t}\n\n\t\t\t:host([position='fixed']) slot[name='floating']::slotted(*) {\n\t\t\t\tposition: fixed;\n\t\t\t}\n\n\t\t\t:host([open]) slot[name='floating']::slotted(*),\n\t\t\t:host([open]) #arrow {\n\t\t\t\tdisplay: inline-block;\n\t\t\t}\n\n\t\t\t#arrow {\n\t\t\t\tdisplay: none;\n\t\t\t\tposition: absolute;\n\t\t\t\twidth: var(--m-popover-arrow-size);\n\t\t\t\theight: var(--m-popover-arrow-size);\n\t\t\t\tfill: var(--m-popover-background-color);\n\n\t\t\t\tz-index: calc(var(--m-popover-z-index) + 1);\n\t\t\t}\n\n\t\t\t#arrow > svg {\n\t\t\t\theight: calc(var(--m-popover-arrow-size) / 2);\n\t\t\t}\n\n\t\t\t.-absolute {\n\t\t\t\tposition: absolute;\n\t\t\t}\n\n\t\t\t.-fixed {\n\t\t\t\tposition: fixed;\n\t\t\t}\n\t\t`,\n\t];\n}\n\nexport default styles;\n","import { POPOVER_PLACEMENT_VALUES } from '../popover';\n\nexport const TOOLTIP_PLACEMENT_VALUES = POPOVER_PLACEMENT_VALUES;\n"],"names":["__classPrivateFieldGet","receiver","state","kind","f","TypeError","has","call","value","get","__classPrivateFieldSet","set","t","i","window","s","trustedTypes","e","createPolicy","createHTML","o","n","Math","random","slice","l","h","r","document","d","createComment","u","c","Array","isArray","a","_","m","p","RegExp","g","$","y","w","_$litType$","strings","values","x","b","T","Symbol","for","A","E","WeakMap","C","createTreeWalker","V","constructor","this","parts","length","v","lastIndex","exec","test","startsWith","push","hasOwnProperty","Error","P","el","createElement","currentNode","content","firstChild","remove","append","childNodes","nextNode","nodeType","hasAttributes","getAttributeNames","endsWith","getAttribute","toLowerCase","split","type","index","name","ctor","k","I","L","R","removeAttribute","tagName","textContent","emptyScript","data","indexOf","static","innerHTML","N","_$Co","_$Cl","_$litDirective$","_$AO","_$AT","_$AS","M","_$AH","_$AN","_$AA","_$AB","_$AM","options","_$Cp","isConnected","_$AU","parentNode","startNode","endNode","_$AI","_$AR","iterator","insertBefore","nextSibling","createTextNode","_$AC","_$AD","_$AV","creationScope","importNode","z","_$AP","setConnected","element","fill","String","j","setAttribute","super","arguments","H","capture","once","passive","removeEventListener","addEventListener","handleEvent","host","litHtmlPolyfillSupport","litHtmlVersions","_$litStatic$","reduce","Map","join","raw","ShadowRoot","ShadyCSS","nativeShadow","Document","prototype","CSSStyleSheet","o$5","_$cssResult$","cssText","styleSheet","replaceSync","toString","cssRules","reactiveElementPolyfillSupport","toAttribute","Boolean","Object","JSON","stringify","fromAttribute","Number","parse","attribute","converter","reflect","hasChanged","HTMLElement","_$Ei","isUpdatePending","hasUpdated","_$El","finalize","observedAttributes","elementProperties","forEach","_$Ep","_$Ev","noAccessor","getPropertyDescriptor","defineProperty","requestUpdate","configurable","enumerable","getPrototypeOf","properties","getOwnPropertyNames","getOwnPropertySymbols","createProperty","elementStyles","finalizeStyles","styles","Set","flat","reverse","unshift","_$E_","Promise","enableUpdating","_$AL","_$Eg","addController","_$ES","renderRoot","hostConnected","removeController","splice","createRenderRoot","shadowRoot","attachShadow","shadowRootOptions","adoptedStyleSheets","map","litNonce","appendChild","connectedCallback","disconnectedCallback","hostDisconnected","attributeChangedCallback","_$AK","_$EO","getPropertyOptions","_$EC","_$Ej","async","reject","scheduleUpdate","performUpdate","shouldUpdate","willUpdate","hostUpdate","update","_$Ek","_$AE","hostUpdated","firstUpdated","updated","updateComplete","getUpdateComplete","mode","ReactiveElement","reactiveElementVersions","renderOptions","_$Do","renderBefore","render","_$litPart$","finalized","_$litElement$","globalThis","litElementHydrateSupport","LitElement","litElementPolyfillSupport","litElementVersions","i$1","_$Ct","_$Ci","keys","filter","it","nt","add","classList","delete","PolymorphicTagMixin","superClass","allowedTags","fallbackTag","as","_a","includes","tag","literal","unsafeStatic","FormControl","_FormControl_form","getForm","_FormControl_updateAssignedForm","hasAttribute","doc","getRootNode","formId","getElementById","closest","form","changedProperties","require$$0","LoadsmartTheme","concat","getToken","token","unsafeCSS","toCSSValue","getColor","alpha","toArray","ml","margin","mx","mr","my","mt","mb","px","padding","pl","pr","py","pt","pb","DEFAULT_TRANSITION_CONFIG","property","delay","duration","easing","transition","configs","transitionStyle","config","safeConfig","toTransition","typography","variant","defaultStyle","getVariant","disableable","selectors","subselector","selector","rule","on","active","hover","css","color","disabled","focus","Button","role","loading","size","tabindex","href","target","download","_Button_isDisabled","_Button_setDisabled","_Button_getTabIndex","_Button_instances","_Button_isLink","undefined","_Button_handleClick","event","preventDefault","stopPropagation","requestSubmit","_b","reset","isLink","html","classMap","button","ifDefined","nothing","_Button_element_get","querySelector","baseStyles","customElements","define","BannerActionPrimary","BannerActionSecondary","BannerActions","BannerDescription","BannerIcon","BannerTitle","Component","emit","eventName","CustomEvent","bubbles","cancelable","composed","dispatchEvent","reemit","copy","Reflect","construct","dispatched","redispatchEvent","index2d298de0","parseInt","toRem","base","rem","icons","import","Icon","icon","_Icon_loadIcon","default","iconModule","style","setProperty","CloseButton","controls","inverted","label","_CloseButton_handleClick","_CloseButton_instances","_CloseButton_button_get","replace","ut","removeProperty","Text","ellipsized","styleMap","Banner","dismissible","dismissed","_Banner_primaryAction","_Banner_handleDismissClick","primaryAction","getPrimaryActionVariant","hasDescription","hasActions","closeButton","banner","getIcon","Card","flagged","flagColor","CardBody","slot","CardSubtitle","CardTitle","baseTransitionConfig","Checkbox","checked","indeterminate","_Checkbox_handleChange","checkboxInput","customEvent","detail","input","_Checkbox_instances","_Checkbox_setAttributes","id","Event","context","callback","subscribe","s$2","provided","unsubscribe","dispatchRequest","disposers","updateObservers","setValue","is","addCallback","clearCallbacks","clear","s$1","initialValue","onContextRequest","composedPath","attachListeners","isAttached","attachContextRoot","root","pendingContextRequests","onContextProvider","requests","elementRef","callbackRef","deref","callbacks","WeakSet","WeakRef","attach","detach","body","waitForAnimations","animatable","promises","getAnimations","finished","allSettled","dialogContext","Dialog","open","_Dialog_contextProvider","ContextProvider","_Dialog_instances","_Dialog_handleClick","_Dialog_handleCancel","_Dialog_toggleVisibility","show","hide","wasOpen","dialog","display","_Dialog_emitLifecycleEvent","showModal","close","_Dialog_emitCloseEvent","isClickingOnTheDialog","HTMLDialogElement","rect","_Dialog_dialog_get","getBoundingClientRect","clientY","top","bottom","clientX","left","right","DIALOG_SIZES","DIALOG_VARIANTS","DialogActionPrimary","_DialogActionPrimary_contextCallback","ContextConsumer","DialogActionSecondary","DialogActionTertiary","getSpacingValue","spacing","defaultSpacing","defaultValue","BaseLayout","_BaseLayout_setOrRemoveProperty","cssVar","paddingX","paddingY","paddingT","paddingB","paddingL","paddingR","getCSSPropertiesPrefix","cssPropertiesPrefix","getBaseLayoutStyles","defaultGroupProps","gap","align","justify","Group","CSSPropertiesPrefix","DialogActions","DialogBody","DialogClose","DialogFooter","ALIGN_ITEMS_VALUES","JUSTIFY_CONTENT_VALUES","defaultBoxProps","borderRadius","borderWidth","borderColor","textAlign","Box","backgroundColor","_c","_d","defaultStackProps","Stack","defaultGridProps","minColumnWidth","Grid","rowGap","columnGap","defaultSidebarProps","sideWidth","minContentWidth","reversed","getFlexDirectionValue","Sidebar","defaultSwitcherProps","threshold","Switcher","limit","limitStyles","DialogHeader","_DialogHeader_context","_DialogHeader_instances","_DialogHeader_icon_get","Divider","fieldContext","FieldHint","status","field","commonClasses","_FieldHint_instances","_FieldHint_getStatus","hint","FieldLabel","required","_FieldLabel_instances","_FieldLabel_getSize","_FieldLabel_isRequired","Field","provider","FIELD_STATUSES","ProgressBar","max","percentage","_ProgressBar_instances","_ProgressBar_safeValue_get","_ProgressBar_safeMaxValue_get","currentVariant","progress","width","lower","upper","min","ProgressBarCountdown","RADIO_EVENT","Radio","_Radio_handleClick","_Radio_setDisabled","_Radio_setChecked","_Radio_instances","_Radio_button_get","selection","at","init","select","unselect","toggle","from","SELECTION_TYPES","_default","SelectionController","_SelectionController_handleSelectionEvent","strategy","_SelectionController_instances","_SelectionController_publish","createSelectionStrategy","RadioGroup","orientation","_RadioGroup_selectionController","_RadioGroup_defaultSlot","_RadioGroup_getDefaultChecked","_RadioGroup_getButtons","assignedElements","flatten","item","_RadioGroup_setButtonChecked","_RadioGroup_setButtonDisabled","tabsContext","TAB_SELECT_EVENT","Tabs","activeTab","lazy","tabContentDirection","_Tabs_selectionController","_Tabs_defaultSlot","_Tabs_onSelectionChange","selectedValue","_Tabs_getDefaultSelected","_Tabs_getTabs","Tab","tabs","_Tab_handleClick","_Tab_getContentDirection","_Tab_isSelected","_Tab_isDisabled","tab","_Tab_instances","_Tab_button_get","TabPanel","forTab","_TabPanel_isSelected","_TabPanel_isLazy","Tag","isSkeleton","TextField","clearable","maxLength","minLength","pattern","placeholder","readOnly","step","inputElement","_TextField_handleInput","_TextField_handleClear","container","_TextField_instances","_TextField_getStatus","_TextField_isClearVisible","TOGGLE_EVENT","ToggleGroup","showCheck","_ToggleGroup_selectionController","_ToggleGroup_defaultSlot","_ToggleGroup_getToggles","_ToggleGroup_setToggleRole","_ToggleGroup_setToggleChecked","_ToggleGroup_setToggleDisabled","Toggle","_Toggle_handleClick","_Toggle_setDisabled","_Toggle_setChecked","_Toggle_instances","_Toggle_button_get","trim","convertTriggerFromAttribute","getAlignment","placement","getLengthFromAxis","axis","getSide","getMainAxisFromPlacement","computeCoordsFromPlacement","_ref","rtl","reference","floating","commonX","commonY","height","mainAxis","commonAlign","isVertical","coords","evaluate","param","getSideObjectFromPadding","expandPaddingObject","rectToClientRect","detectOverflow","_await$platform$isEle","platform","rects","elements","boundary","rootBoundary","elementContext","altBoundary","paddingObject","clippingClientRect","getClippingRect","isElement","contextElement","getDocumentElement","offsetParent","getOffsetParent","offsetScale","getScale","elementClientRect","convertOffsetParentRelativeRectToViewportRelativeRect","within","min$1","max$1","arrow","arrowDimensions","getDimensions","isYAxis","minProp","maxProp","clientProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","largestPossiblePadding","minPadding","maxPadding","center","offset","alignmentOffset","centerOffset","oppositeSideMap","getOppositePlacement","side","oppositeAlignmentMap","start","end","getOppositeAlignmentPlacement","alignment","flip","_middlewareData$flip","middlewareData","initialPlacement","checkMainAxis","crossAxis","checkCrossAxis","fallbackPlacements","specifiedFallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment","detectOverflowOptions","isBasePlacement","isRTL","oppositePlacement","getExpandedPlacements","direction","list","isStart","lr","rl","tb","bt","getSideList","getOppositeAxisPlacements","placements","overflow","overflows","overflowsData","main","cross","mainAlignmentSide","getAlignmentSides","every","_middlewareData$flip2","_overflowsData$filter","nextIndex","nextPlacement","resetPlacement","sort","_overflowsData$map$so","acc","diffCoords","mainAxisMulti","crossAxisMulti","rawValue","alignmentAxis","convertValueToCoords","getWindow","node","_node$ownerDocument","ownerDocument","defaultView","getComputedStyle$1","getComputedStyle","isNode","Node","getNodeName","nodeName","isHTMLElement","Element","isShadowRoot","isOverflowElement","overflowX","overflowY","isTableElement","isContainingBlock","safari","isSafari","transform","perspective","backdropFilter","some","willChange","contain","CSS","supports","isLastTraversableNode","round","floor","createEmptyCoords","getCssDimensions","parseFloat","hasOffset","offsetWidth","offsetHeight","shouldFallback","unwrapElement","domElement","isFinite","noOffsets","getVisualOffsets","isFixed","floatingOffsetParent","_win$visualViewport","_win$visualViewport2","win","visualViewport","offsetLeft","offsetTop","includeScale","isFixedStrategy","clientRect","scale","visualOffsets","offsetWin","currentIFrame","frameElement","iframeScale","iframeRect","clientLeft","paddingLeft","clientTop","paddingTop","documentElement","getNodeScroll","scrollLeft","scrollTop","pageXOffset","pageYOffset","getWindowScrollBarX","getParentNode","result","assignedSlot","getNearestOverflowAncestor","getOverflowAncestors","scrollableAncestor","isBody","getClientRectFromClippingAncestor","clippingAncestor","clientWidth","clientHeight","visualViewportBased","getViewportRect","scroll","scrollWidth","scrollHeight","getDocumentRect","getInnerBoundingClientRect","hasFixedPositionAncestor","stopNode","position","getTrueOffsetParent","polyfill","getContainingBlock","getRectRelativeToOffsetParent","isOffsetParentAnElement","offsets","offsetRect","clippingAncestors","cache","cachedResult","currentContainingBlockComputedStyle","elementIsFixed","computedStyle","currentNodeIsContaining","ancestor","getClippingElementAncestors","firstClippingAncestor","clippingRect","accRect","getOffsetParentFn","getDimensionsFn","getClientRects","autoUpdate","ancestorScroll","ancestorResize","elementResize","layoutShift","IntersectionObserver","animationFrame","referenceEl","ancestors","cleanupIo","onMove","timeoutId","io","cleanup","clearTimeout","disconnect","refresh","skip","insetTop","insetRight","insetBottom","insetLeft","isFirstUpdate","entries","ratio","intersectionRatio","setTimeout","rootMargin","observe","observeMove","frameId","resizeObserver","ResizeObserver","prevRefRect","frameLoop","nextRefRect","requestAnimationFrame","cancelAnimationFrame","computePosition","mergedOptions","platformWithCache","middleware","validMiddleware","getElementRects","statefulPlacement","resetCount","fn","nextX","nextY","computePosition$1","UNSET_SIDES","Popover","_Popover_updateCleanup","getFloatingOffset","renderArrow","reposition","reason","limiter","mainAxisCoord","crossAxisCoord","maxSide","limitedCoords","assign","_Popover_getArrowPosition","mainSide","rotation","isAligned","isRefWider","isRefTaller","isVerticalSide","useStaticPositioning","refBoundingClientRect","mainSidePosition","arrowStyles","crossSide","getReferenceElement","getFloatingElement","getArrowElement","Tooltip","trigger","_Tooltip_hoverTimeout","_Tooltip_focusTimeout","_Tooltip_handleFocus","_Tooltip_hasTrigger","_Tooltip_handleBlur","_Tooltip_handleClick","_Tooltip_handleKeyDown","key","_Tooltip_handleMouseOver","_Tooltip_handleMouseOut","triggerType","referenceSlot","floatingSlot","TOOLTIP_PLACEMENT_VALUES"],"mappings":"AAoRO,SAASA,EAAuBC,EAAUC,EAAOC,EAAMC,GAC1D,GAAa,MAATD,IAAiBC,EAAG,MAAM,IAAIC,UAAU,iDAC5C,GAAqB,mBAAVH,EAAuBD,IAAaC,IAAUE,GAAKF,EAAMI,IAAIL,GAAW,MAAM,IAAII,UAAU,4EACvG,MAAgB,MAATF,EAAeC,EAAa,MAATD,EAAeC,EAAEG,KAAKN,GAAYG,EAAIA,EAAEI,MAAQN,EAAMO,IAAIR,EACxF,CAEO,SAASS,EAAuBT,EAAUC,EAAOM,EAAOL,EAAMC,GACjE,GAAa,MAATD,EAAc,MAAM,IAAIE,UAAU,kCACtC,GAAa,MAATF,IAAiBC,EAAG,MAAM,IAAIC,UAAU,iDAC5C,GAAqB,mBAAVH,EAAuBD,IAAaC,IAAUE,GAAKF,EAAMI,IAAIL,GAAW,MAAM,IAAII,UAAU,2EACvG,MAAiB,MAATF,EAAeC,EAAEG,KAAKN,EAAUO,GAASJ,EAAIA,EAAEI,MAAQA,EAAQN,EAAMS,IAAIV,EAAUO,GAASA;;;;;GACxG,CC1RA,IAAII,EAAO,MAACC,EAAEC,OAAOC,EAAEF,EAAEG,aAAaC,EAAEF,EAAEA,EAAEG,aAAa,WAAW,CAACC,WAAWP,GAAGA,SAAI,EAAOQ,EAAE,QAAQC,EAAE,QAAQC,KAAKC,SAAS,IAAIC,MAAM,MAAMC,EAAE,IAAIJ,EAAEK,EAAE,IAAID,KAAKE,EAAEC,SAASC,EAAE,IAAIF,EAAEG,cAAc,IAAIC,EAAEnB,GAAG,OAAOA,GAAG,iBAAiBA,GAAG,mBAAmBA,EAAEoB,EAAEC,MAAMC,QAAyEC,EAAE,cAAc/B,EAAE,sDAAsDgC,EAAE,OAAOC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