@supersoniks/concorde 1.1.40 → 1.1.41
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/README.md +0 -0
- package/cli.js +0 -0
- package/components.d.ts +0 -0
- package/components.js +0 -0
- package/concorde-core.bundle.js +28 -21
- package/concorde-core.es.js +849 -448
- package/core/components/functional/configuration/configuration.d.ts +0 -0
- package/core/components/functional/configuration/configuration.js +0 -0
- package/core/components/functional/date/date.d.ts +0 -0
- package/core/components/functional/date/date.js +0 -0
- package/core/components/functional/example/example.d.ts +0 -0
- package/core/components/functional/example/example.js +0 -0
- package/core/components/functional/fetch/fetch.d.ts +0 -0
- package/core/components/functional/fetch/fetch.js +0 -0
- package/core/components/functional/functional.d.ts +0 -0
- package/core/components/functional/functional.js +0 -0
- package/core/components/functional/if/if.d.ts +0 -0
- package/core/components/functional/if/if.js +0 -0
- package/core/components/functional/list/list.d.ts +0 -0
- package/core/components/functional/list/list.js +0 -0
- package/core/components/functional/queue/queue.d.ts +0 -0
- package/core/components/functional/queue/queue.js +0 -0
- package/core/components/functional/router/redirect.d.ts +0 -0
- package/core/components/functional/router/redirect.js +0 -0
- package/core/components/functional/router/router.d.ts +0 -0
- package/core/components/functional/router/router.js +0 -0
- package/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts +59 -0
- package/core/components/functional/sdui/SDUIDescriptorTransformer.js +219 -0
- package/core/components/functional/sdui/sdui.d.ts +77 -21
- package/core/components/functional/sdui/sdui.js +177 -78
- package/core/components/functional/sdui/types.d.ts +35 -0
- package/core/components/functional/sdui/types.js +1 -0
- package/core/components/functional/sonic-scope/sonic-scope.d.ts +0 -0
- package/core/components/functional/sonic-scope/sonic-scope.js +0 -0
- package/core/components/functional/states/states.d.ts +0 -0
- package/core/components/functional/states/states.js +0 -0
- package/core/components/functional/submit/submit.d.ts +0 -0
- package/core/components/functional/submit/submit.js +0 -0
- package/core/components/functional/subscriber/subscriber.d.ts +0 -0
- package/core/components/functional/subscriber/subscriber.js +0 -0
- package/core/components/ui/_css/scroll.d.ts +0 -0
- package/core/components/ui/_css/scroll.js +0 -0
- package/core/components/ui/_css/size.d.ts +0 -0
- package/core/components/ui/_css/size.js +0 -0
- package/core/components/ui/_css/type.d.ts +0 -0
- package/core/components/ui/_css/type.js +0 -0
- package/core/components/ui/alert/alert.d.ts +2 -2
- package/core/components/ui/alert/alert.js +12 -11
- package/core/components/ui/badge/badge.d.ts +0 -0
- package/core/components/ui/badge/badge.js +0 -0
- package/core/components/ui/button/button.d.ts +0 -0
- package/core/components/ui/button/button.js +0 -0
- package/core/components/ui/captcha/captcha.d.ts +0 -0
- package/core/components/ui/captcha/captcha.js +0 -0
- package/core/components/ui/card/card-footer.d.ts +0 -0
- package/core/components/ui/card/card-footer.js +0 -0
- package/core/components/ui/card/card-header-descripton.d.ts +0 -0
- package/core/components/ui/card/card-header-descripton.js +0 -0
- package/core/components/ui/card/card-header.d.ts +0 -0
- package/core/components/ui/card/card-header.js +0 -0
- package/core/components/ui/card/card-main.d.ts +0 -0
- package/core/components/ui/card/card-main.js +0 -0
- package/core/components/ui/card/card.d.ts +0 -0
- package/core/components/ui/card/card.js +0 -0
- package/core/components/ui/divider/divider.d.ts +0 -0
- package/core/components/ui/divider/divider.js +0 -0
- package/core/components/ui/form/checkbox/checkbox.d.ts +0 -0
- package/core/components/ui/form/checkbox/checkbox.js +2 -1
- package/core/components/ui/form/css/form-control.d.ts +0 -0
- package/core/components/ui/form/css/form-control.js +0 -0
- package/core/components/ui/form/fieldset/fieldset.d.ts +0 -0
- package/core/components/ui/form/fieldset/fieldset.js +0 -0
- package/core/components/ui/form/fieldset/legend-description.d.ts +0 -0
- package/core/components/ui/form/fieldset/legend-description.js +0 -0
- package/core/components/ui/form/fieldset/legend.d.ts +0 -0
- package/core/components/ui/form/fieldset/legend.js +0 -0
- package/core/components/ui/form/form-actions/form-actions.d.ts +0 -0
- package/core/components/ui/form/form-actions/form-actions.js +0 -0
- package/core/components/ui/form/form-layout/form-layout.d.ts +0 -0
- package/core/components/ui/form/form-layout/form-layout.js +0 -0
- package/core/components/ui/form/input/input.d.ts +4 -0
- package/core/components/ui/form/input/input.js +20 -3
- package/core/components/ui/form/input/password-helper.d.ts +19 -0
- package/core/components/ui/form/input/password-helper.js +96 -0
- package/core/components/ui/form/input/same-value-helper.d.ts +16 -0
- package/core/components/ui/form/input/same-value-helper.js +76 -0
- package/core/components/ui/form/radio/radio.d.ts +0 -0
- package/core/components/ui/form/radio/radio.js +0 -0
- package/core/components/ui/form/select/select.d.ts +0 -0
- package/core/components/ui/form/select/select.js +5 -1
- package/core/components/ui/form/textarea/textarea.d.ts +0 -0
- package/core/components/ui/form/textarea/textarea.js +5 -1
- package/core/components/ui/group/group.d.ts +0 -0
- package/core/components/ui/group/group.js +0 -0
- package/core/components/ui/icon/icon.d.ts +0 -0
- package/core/components/ui/icon/icon.js +0 -0
- package/core/components/ui/icon/icons.d.ts +0 -0
- package/core/components/ui/icon/icons.js +0 -0
- package/core/components/ui/icon/icons.json +0 -0
- package/core/components/ui/image/image.d.ts +0 -0
- package/core/components/ui/image/image.js +0 -0
- package/core/components/ui/link/link.d.ts +0 -0
- package/core/components/ui/link/link.js +0 -0
- package/core/components/ui/loader/loader.d.ts +0 -0
- package/core/components/ui/loader/loader.js +0 -0
- package/core/components/ui/loader/styles/fixed.d.ts +0 -0
- package/core/components/ui/loader/styles/fixed.js +0 -0
- package/core/components/ui/loader/styles/inline.d.ts +0 -0
- package/core/components/ui/loader/styles/inline.js +0 -0
- package/core/components/ui/menu/menu-item.d.ts +0 -0
- package/core/components/ui/menu/menu-item.js +0 -0
- package/core/components/ui/menu/menu.d.ts +0 -0
- package/core/components/ui/menu/menu.js +0 -0
- package/core/components/ui/modal/modal-actions.d.ts +0 -0
- package/core/components/ui/modal/modal-actions.js +0 -0
- package/core/components/ui/modal/modal-close.d.ts +0 -0
- package/core/components/ui/modal/modal-close.js +0 -0
- package/core/components/ui/modal/modal-content.d.ts +0 -0
- package/core/components/ui/modal/modal-content.js +0 -0
- package/core/components/ui/modal/modal-subtitle.d.ts +0 -0
- package/core/components/ui/modal/modal-subtitle.js +0 -0
- package/core/components/ui/modal/modal-title.d.ts +0 -0
- package/core/components/ui/modal/modal-title.js +0 -0
- package/core/components/ui/modal/modal.d.ts +0 -0
- package/core/components/ui/modal/modal.js +0 -0
- package/core/components/ui/pop/pop.d.ts +0 -0
- package/core/components/ui/pop/pop.js +0 -0
- package/core/components/ui/progress/progress.d.ts +0 -0
- package/core/components/ui/progress/progress.js +0 -0
- package/core/components/ui/table/table-caption.d.ts +0 -0
- package/core/components/ui/table/table-caption.js +0 -0
- package/core/components/ui/table/table-tbody.d.ts +0 -0
- package/core/components/ui/table/table-tbody.js +0 -0
- package/core/components/ui/table/table-td.d.ts +0 -0
- package/core/components/ui/table/table-td.js +0 -0
- package/core/components/ui/table/table-tfoot.d.ts +0 -0
- package/core/components/ui/table/table-tfoot.js +0 -0
- package/core/components/ui/table/table-th.d.ts +0 -0
- package/core/components/ui/table/table-th.js +0 -0
- package/core/components/ui/table/table-thead.d.ts +0 -0
- package/core/components/ui/table/table-thead.js +0 -0
- package/core/components/ui/table/table-tr.d.ts +0 -0
- package/core/components/ui/table/table-tr.js +0 -0
- package/core/components/ui/table/table.d.ts +0 -0
- package/core/components/ui/table/table.js +0 -0
- package/core/components/ui/tabs/tab.d.ts +0 -0
- package/core/components/ui/tabs/tab.js +0 -0
- package/core/components/ui/tabs/tabs.d.ts +0 -0
- package/core/components/ui/tabs/tabs.js +0 -0
- package/core/components/ui/taxonomy/taxonomy.d.ts +0 -0
- package/core/components/ui/taxonomy/taxonomy.js +0 -0
- package/core/components/ui/theme/css/tailwind.css +0 -0
- package/core/components/ui/theme/css/tailwind.d.ts +0 -0
- package/core/components/ui/theme/theme-collection/core-variables.d.ts +0 -0
- package/core/components/ui/theme/theme-collection/core-variables.js +0 -0
- package/core/components/ui/theme/theme-collection/dark.d.ts +0 -0
- package/core/components/ui/theme/theme-collection/dark.js +0 -0
- package/core/components/ui/theme/theme-collection/light.d.ts +0 -0
- package/core/components/ui/theme/theme-collection/light.js +0 -0
- package/core/components/ui/theme/theme.d.ts +0 -0
- package/core/components/ui/theme/theme.js +0 -0
- package/core/components/ui/toast/message-subscriber.d.ts +0 -0
- package/core/components/ui/toast/message-subscriber.js +0 -0
- package/core/components/ui/toast/toast-item.d.ts +0 -0
- package/core/components/ui/toast/toast-item.js +0 -0
- package/core/components/ui/toast/toast.d.ts +0 -0
- package/core/components/ui/toast/toast.js +0 -0
- package/core/components/ui/toast/types.d.ts +0 -0
- package/core/components/ui/toast/types.js +0 -0
- package/core/components/ui/tooltip/tooltip.d.ts +0 -0
- package/core/components/ui/tooltip/tooltip.js +0 -0
- package/core/components/ui/ui.d.ts +2 -0
- package/core/components/ui/ui.js +2 -0
- package/core/core.d.ts +0 -0
- package/core/core.js +0 -0
- package/core/mixins/Fetcher.d.ts +0 -0
- package/core/mixins/Fetcher.js +6 -2
- package/core/mixins/FormCheckable.d.ts +0 -0
- package/core/mixins/FormCheckable.js +0 -0
- package/core/mixins/FormElement.d.ts +0 -0
- package/core/mixins/FormElement.js +0 -0
- package/core/mixins/FormInput.d.ts +0 -0
- package/core/mixins/FormInput.js +0 -0
- package/core/mixins/Subscriber.d.ts +0 -0
- package/core/mixins/Subscriber.js +0 -0
- package/core/mixins/TemplatesContainer.d.ts +0 -0
- package/core/mixins/TemplatesContainer.js +0 -0
- package/core/mixins/mixins.d.ts +0 -0
- package/core/mixins/mixins.js +0 -0
- package/core/utils/Arrays.d.ts +0 -0
- package/core/utils/Arrays.js +0 -0
- package/core/utils/DataBindObserver.d.ts +0 -0
- package/core/utils/DataBindObserver.js +0 -0
- package/core/utils/Electron.d.ts +0 -0
- package/core/utils/Electron.js +0 -0
- package/core/utils/Format.d.ts +0 -0
- package/core/utils/Format.js +0 -0
- package/core/utils/HTML.d.ts +8 -0
- package/core/utils/HTML.js +41 -0
- package/core/utils/LocationHandler.d.ts +0 -0
- package/core/utils/LocationHandler.js +0 -0
- package/core/utils/Objects.d.ts +0 -0
- package/core/utils/Objects.js +0 -0
- package/core/utils/PublisherProxy.d.mts +0 -0
- package/core/utils/PublisherProxy.mjs +0 -0
- package/core/utils/api.d.ts +0 -0
- package/core/utils/api.js +0 -0
- package/mixins.d.ts +0 -0
- package/mixins.js +0 -0
- package/package.json +9 -1
- package/utils.d.ts +0 -0
- package/utils.js +0 -0
package/concorde-core.es.js
CHANGED
|
@@ -999,6 +999,28 @@ class HTML$1 {
|
|
|
999
999
|
}
|
|
1000
1000
|
return node.getAttribute(attributeName);
|
|
1001
1001
|
}
|
|
1002
|
+
static async loadJS(src) {
|
|
1003
|
+
const p2 = new Promise(async (resolve) => {
|
|
1004
|
+
let script = document.createElement("script");
|
|
1005
|
+
script.src = src;
|
|
1006
|
+
script.onload = () => resolve(true);
|
|
1007
|
+
script.onerror = () => resolve(true);
|
|
1008
|
+
document.head.appendChild(script);
|
|
1009
|
+
});
|
|
1010
|
+
return p2;
|
|
1011
|
+
}
|
|
1012
|
+
static async loadCSS(src) {
|
|
1013
|
+
const p2 = new Promise(async (resolve) => {
|
|
1014
|
+
var cssnode = document.createElement("link");
|
|
1015
|
+
cssnode.type = "text/css";
|
|
1016
|
+
cssnode.rel = "stylesheet";
|
|
1017
|
+
cssnode.href = src;
|
|
1018
|
+
cssnode.onload = () => resolve(true);
|
|
1019
|
+
cssnode.onerror = () => resolve(true);
|
|
1020
|
+
document.head.appendChild(cssnode);
|
|
1021
|
+
});
|
|
1022
|
+
return p2;
|
|
1023
|
+
}
|
|
1002
1024
|
}
|
|
1003
1025
|
class Objects$1 {
|
|
1004
1026
|
static shallowEqual(object1, object2) {
|
|
@@ -1360,15 +1382,15 @@ DataBindObserver$1.observe(document.documentElement);
|
|
|
1360
1382
|
let win$5 = window;
|
|
1361
1383
|
if (!win$5.SonicDataBindObserver)
|
|
1362
1384
|
win$5.SonicDataBindObserver = DataBindObserver$1;
|
|
1363
|
-
var __defProp$
|
|
1364
|
-
var __getOwnPropDesc$
|
|
1365
|
-
var __decorateClass$
|
|
1366
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
1385
|
+
var __defProp$15 = Object.defineProperty;
|
|
1386
|
+
var __getOwnPropDesc$15 = Object.getOwnPropertyDescriptor;
|
|
1387
|
+
var __decorateClass$15 = (decorators, target, key, kind) => {
|
|
1388
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$15(target, key) : target;
|
|
1367
1389
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
1368
1390
|
if (decorator = decorators[i2])
|
|
1369
1391
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1370
1392
|
if (kind && result)
|
|
1371
|
-
__defProp$
|
|
1393
|
+
__defProp$15(target, key, result);
|
|
1372
1394
|
return result;
|
|
1373
1395
|
};
|
|
1374
1396
|
let keepDebugOnMouseOut = false;
|
|
@@ -1624,28 +1646,28 @@ const Subscriber$1 = (superClass) => {
|
|
|
1624
1646
|
};
|
|
1625
1647
|
let SubscriberElement = _SubscriberElement;
|
|
1626
1648
|
SubscriberElement.instanceCounter = 0;
|
|
1627
|
-
__decorateClass$
|
|
1649
|
+
__decorateClass$15([
|
|
1628
1650
|
e$5({ type: Boolean })
|
|
1629
1651
|
], SubscriberElement.prototype, "displayContents", 2);
|
|
1630
|
-
__decorateClass$
|
|
1652
|
+
__decorateClass$15([
|
|
1631
1653
|
e$5({ type: Boolean })
|
|
1632
1654
|
], SubscriberElement.prototype, "noAutoFill", 2);
|
|
1633
|
-
__decorateClass$
|
|
1655
|
+
__decorateClass$15([
|
|
1634
1656
|
e$5({ type: Boolean })
|
|
1635
1657
|
], SubscriberElement.prototype, "forceAutoFill", 2);
|
|
1636
|
-
__decorateClass$
|
|
1658
|
+
__decorateClass$15([
|
|
1637
1659
|
e$5({ type: Object })
|
|
1638
1660
|
], SubscriberElement.prototype, "propertyMap", 2);
|
|
1639
|
-
__decorateClass$
|
|
1661
|
+
__decorateClass$15([
|
|
1640
1662
|
e$5({ type: String, attribute: "data-title" })
|
|
1641
1663
|
], SubscriberElement.prototype, "title", 2);
|
|
1642
|
-
__decorateClass$
|
|
1664
|
+
__decorateClass$15([
|
|
1643
1665
|
e$5({ reflect: true })
|
|
1644
1666
|
], SubscriberElement.prototype, "dataProvider", 2);
|
|
1645
|
-
__decorateClass$
|
|
1667
|
+
__decorateClass$15([
|
|
1646
1668
|
e$5()
|
|
1647
1669
|
], SubscriberElement.prototype, "bindPublisher", 2);
|
|
1648
|
-
__decorateClass$
|
|
1670
|
+
__decorateClass$15([
|
|
1649
1671
|
e$5()
|
|
1650
1672
|
], SubscriberElement.prototype, "props", 1);
|
|
1651
1673
|
return SubscriberElement;
|
|
@@ -1653,15 +1675,15 @@ const Subscriber$1 = (superClass) => {
|
|
|
1653
1675
|
let win$4 = window;
|
|
1654
1676
|
if (!win$4.SonicPublisherManager)
|
|
1655
1677
|
win$4.SonicPublisherManager = PublisherManager$1;
|
|
1656
|
-
var __defProp$
|
|
1657
|
-
var __getOwnPropDesc$
|
|
1658
|
-
var __decorateClass$
|
|
1659
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
1678
|
+
var __defProp$14 = Object.defineProperty;
|
|
1679
|
+
var __getOwnPropDesc$14 = Object.getOwnPropertyDescriptor;
|
|
1680
|
+
var __decorateClass$14 = (decorators, target, key, kind) => {
|
|
1681
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$14(target, key) : target;
|
|
1660
1682
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
1661
1683
|
if (decorator = decorators[i2])
|
|
1662
1684
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1663
1685
|
if (kind && result)
|
|
1664
|
-
__defProp$
|
|
1686
|
+
__defProp$14(target, key, result);
|
|
1665
1687
|
return result;
|
|
1666
1688
|
};
|
|
1667
1689
|
const TemplatesContainer$1 = (superClass) => {
|
|
@@ -1688,23 +1710,23 @@ const TemplatesContainer$1 = (superClass) => {
|
|
|
1688
1710
|
super.connectedCallback();
|
|
1689
1711
|
}
|
|
1690
1712
|
}
|
|
1691
|
-
__decorateClass$
|
|
1713
|
+
__decorateClass$14([
|
|
1692
1714
|
e$5({ type: Array })
|
|
1693
1715
|
], TemplatesContainerElement.prototype, "templates", 2);
|
|
1694
1716
|
return TemplatesContainerElement;
|
|
1695
1717
|
};
|
|
1696
|
-
var __defProp$
|
|
1697
|
-
var __getOwnPropDesc$
|
|
1698
|
-
var __decorateClass$
|
|
1699
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
1718
|
+
var __defProp$13 = Object.defineProperty;
|
|
1719
|
+
var __getOwnPropDesc$13 = Object.getOwnPropertyDescriptor;
|
|
1720
|
+
var __decorateClass$13 = (decorators, target, key, kind) => {
|
|
1721
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$13(target, key) : target;
|
|
1700
1722
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
1701
1723
|
if (decorator = decorators[i2])
|
|
1702
1724
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1703
1725
|
if (kind && result)
|
|
1704
|
-
__defProp$
|
|
1726
|
+
__defProp$13(target, key, result);
|
|
1705
1727
|
return result;
|
|
1706
1728
|
};
|
|
1707
|
-
const tagName$
|
|
1729
|
+
const tagName$_ = "sonic-date";
|
|
1708
1730
|
let SonicDate = class extends Subscriber$1(TemplatesContainer$1(s$2)) {
|
|
1709
1731
|
constructor() {
|
|
1710
1732
|
super(...arguments);
|
|
@@ -1829,77 +1851,77 @@ let SonicDate = class extends Subscriber$1(TemplatesContainer$1(s$2)) {
|
|
|
1829
1851
|
})}`;
|
|
1830
1852
|
}
|
|
1831
1853
|
};
|
|
1832
|
-
__decorateClass$
|
|
1854
|
+
__decorateClass$13([
|
|
1833
1855
|
e$5()
|
|
1834
1856
|
], SonicDate.prototype, "wording_billet_periode_validite", 1);
|
|
1835
|
-
__decorateClass$
|
|
1857
|
+
__decorateClass$13([
|
|
1836
1858
|
e$5({ type: Boolean })
|
|
1837
1859
|
], SonicDate.prototype, "designMode", 2);
|
|
1838
|
-
__decorateClass$
|
|
1860
|
+
__decorateClass$13([
|
|
1839
1861
|
e$5({ type: String })
|
|
1840
1862
|
], SonicDate.prototype, "time_zone", 2);
|
|
1841
|
-
__decorateClass$
|
|
1863
|
+
__decorateClass$13([
|
|
1842
1864
|
e$5({ type: Number })
|
|
1843
1865
|
], SonicDate.prototype, "date", 2);
|
|
1844
|
-
__decorateClass$
|
|
1866
|
+
__decorateClass$13([
|
|
1845
1867
|
e$5({ type: String })
|
|
1846
1868
|
], SonicDate.prototype, "date_string", 2);
|
|
1847
|
-
__decorateClass$
|
|
1869
|
+
__decorateClass$13([
|
|
1848
1870
|
e$5({ type: String })
|
|
1849
1871
|
], SonicDate.prototype, "start_date_string", 2);
|
|
1850
|
-
__decorateClass$
|
|
1872
|
+
__decorateClass$13([
|
|
1851
1873
|
e$5({ type: String })
|
|
1852
1874
|
], SonicDate.prototype, "end_date_string", 2);
|
|
1853
|
-
__decorateClass$
|
|
1875
|
+
__decorateClass$13([
|
|
1854
1876
|
e$5({ type: Number })
|
|
1855
1877
|
], SonicDate.prototype, "start_date", 2);
|
|
1856
|
-
__decorateClass$
|
|
1878
|
+
__decorateClass$13([
|
|
1857
1879
|
e$5({ type: Number })
|
|
1858
1880
|
], SonicDate.prototype, "end_date", 2);
|
|
1859
|
-
__decorateClass$
|
|
1881
|
+
__decorateClass$13([
|
|
1860
1882
|
e$5({ type: String })
|
|
1861
1883
|
], SonicDate.prototype, "era", 2);
|
|
1862
|
-
__decorateClass$
|
|
1884
|
+
__decorateClass$13([
|
|
1863
1885
|
e$5({ type: String })
|
|
1864
1886
|
], SonicDate.prototype, "year", 2);
|
|
1865
|
-
__decorateClass$
|
|
1887
|
+
__decorateClass$13([
|
|
1866
1888
|
e$5({ type: String })
|
|
1867
1889
|
], SonicDate.prototype, "month", 2);
|
|
1868
|
-
__decorateClass$
|
|
1890
|
+
__decorateClass$13([
|
|
1869
1891
|
e$5({ type: String })
|
|
1870
1892
|
], SonicDate.prototype, "day", 2);
|
|
1871
|
-
__decorateClass$
|
|
1893
|
+
__decorateClass$13([
|
|
1872
1894
|
e$5({ type: String })
|
|
1873
1895
|
], SonicDate.prototype, "weekday", 2);
|
|
1874
|
-
__decorateClass$
|
|
1896
|
+
__decorateClass$13([
|
|
1875
1897
|
e$5({ type: String })
|
|
1876
1898
|
], SonicDate.prototype, "hour", 2);
|
|
1877
|
-
__decorateClass$
|
|
1899
|
+
__decorateClass$13([
|
|
1878
1900
|
e$5({ type: String })
|
|
1879
1901
|
], SonicDate.prototype, "minute", 2);
|
|
1880
|
-
__decorateClass$
|
|
1902
|
+
__decorateClass$13([
|
|
1881
1903
|
e$5({ type: String })
|
|
1882
1904
|
], SonicDate.prototype, "language", 2);
|
|
1883
|
-
__decorateClass$
|
|
1905
|
+
__decorateClass$13([
|
|
1884
1906
|
e$5({ type: Boolean })
|
|
1885
1907
|
], SonicDate.prototype, "renderIf", 2);
|
|
1886
|
-
SonicDate = __decorateClass$
|
|
1887
|
-
n$3(tagName$
|
|
1908
|
+
SonicDate = __decorateClass$13([
|
|
1909
|
+
n$3(tagName$_)
|
|
1888
1910
|
], SonicDate);
|
|
1889
1911
|
const inline = r$5`:host([align=left]) .sonic-loader--inline{margin-left:0}:host([align=right]) .sonic-loader--inline{margin-left:auto;margin-right:0}.sonic-loader--inline{display:block;position:relative;width:80px;height:80px;margin:auto;z-index:20}.sonic-loader--inline div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:var(--sc-loader-bg);animation-timing-function:cubic-bezier(0,1,1,0)}.sonic-loader--inline div:nth-child(1){left:8px;animation:lds-ellipsis1 .6s infinite}.sonic-loader--inline div:nth-child(2){left:8px;animation:lds-ellipsis2 .6s infinite}.sonic-loader--inline div:nth-child(3){left:32px;animation:lds-ellipsis2 .6s infinite}.sonic-loader--inline div:nth-child(4){left:56px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0,0)}100%{transform:translate(24px,0)}}`;
|
|
1890
1912
|
const fixed = r$5`@keyframes sonic-loader--fixed{0%{transform:scale(0);opacity:0}5%{opacity:1}70%{opacity:90%}100%{transform:scale(1);opacity:0}}.sonic-loader--fixed{position:fixed;top:50%;left:50%;transform:transateY(-50%) translateX(-50%);z-index:999}.sonic-loader--fixed>div:nth-child(2){animation-delay:-.5s}.sonic-loader--fixed>div:nth-child(3){animation-delay:-.2s}.sonic-loader--fixed>div:nth-child(4){display:none!important}.sonic-loader--fixed>div{background-color:var(--sc-loader-bg);width:5rem;height:5rem;border-radius:100%;margin:2px;animation-fill-mode:both;position:absolute;top:0;opacity:0;margin:0;top:-2.5rem;left:-2.5rem;width:5rem;height:5rem;animation:sonic-loader--fixed 1s 0s linear infinite}`;
|
|
1891
|
-
var __defProp$
|
|
1892
|
-
var __getOwnPropDesc$
|
|
1893
|
-
var __decorateClass$
|
|
1894
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
1913
|
+
var __defProp$12 = Object.defineProperty;
|
|
1914
|
+
var __getOwnPropDesc$12 = Object.getOwnPropertyDescriptor;
|
|
1915
|
+
var __decorateClass$12 = (decorators, target, key, kind) => {
|
|
1916
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$12(target, key) : target;
|
|
1895
1917
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
1896
1918
|
if (decorator = decorators[i2])
|
|
1897
1919
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1898
1920
|
if (kind && result)
|
|
1899
|
-
__defProp$
|
|
1921
|
+
__defProp$12(target, key, result);
|
|
1900
1922
|
return result;
|
|
1901
1923
|
};
|
|
1902
|
-
const tagName$
|
|
1924
|
+
const tagName$Z = "sonic-loader";
|
|
1903
1925
|
let Loader = class extends s$2 {
|
|
1904
1926
|
constructor() {
|
|
1905
1927
|
super(...arguments);
|
|
@@ -1938,14 +1960,14 @@ Loader.styles = [
|
|
|
1938
1960
|
r$5`:host{--sc-loader-bg:var(--sc-primary, currentColor);pointer-events:none}.sonic-loader{opacity:0;animation:showLoader .5s .5s forwards}.sonic-loader--inline{animation-delay:0s}@keyframes showLoader{0%{opacity:0}100%{opacity:1}}`
|
|
1939
1961
|
];
|
|
1940
1962
|
Loader.callCounter = 0;
|
|
1941
|
-
__decorateClass$
|
|
1963
|
+
__decorateClass$12([
|
|
1942
1964
|
e$5({ type: String })
|
|
1943
1965
|
], Loader.prototype, "mode", 2);
|
|
1944
|
-
Loader = __decorateClass$
|
|
1945
|
-
n$3(tagName$
|
|
1966
|
+
Loader = __decorateClass$12([
|
|
1967
|
+
n$3(tagName$Z)
|
|
1946
1968
|
], Loader);
|
|
1947
1969
|
try {
|
|
1948
|
-
customElements.define(tagName$
|
|
1970
|
+
customElements.define(tagName$Z, Loader);
|
|
1949
1971
|
} catch (e2) {
|
|
1950
1972
|
}
|
|
1951
1973
|
/**
|
|
@@ -2487,18 +2509,18 @@ Icons.fontAwesomeNext = {
|
|
|
2487
2509
|
}
|
|
2488
2510
|
};
|
|
2489
2511
|
Icons.default = _Icons.fontAwesomeNext;
|
|
2490
|
-
var __defProp
|
|
2491
|
-
var __getOwnPropDesc
|
|
2492
|
-
var __decorateClass
|
|
2493
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc
|
|
2512
|
+
var __defProp$11 = Object.defineProperty;
|
|
2513
|
+
var __getOwnPropDesc$11 = Object.getOwnPropertyDescriptor;
|
|
2514
|
+
var __decorateClass$11 = (decorators, target, key, kind) => {
|
|
2515
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$11(target, key) : target;
|
|
2494
2516
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
2495
2517
|
if (decorator = decorators[i2])
|
|
2496
2518
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2497
2519
|
if (kind && result)
|
|
2498
|
-
__defProp
|
|
2520
|
+
__defProp$11(target, key, result);
|
|
2499
2521
|
return result;
|
|
2500
2522
|
};
|
|
2501
|
-
const tagName$
|
|
2523
|
+
const tagName$Y = "sonic-icon";
|
|
2502
2524
|
let Icon = class extends s$2 {
|
|
2503
2525
|
constructor() {
|
|
2504
2526
|
super(...arguments);
|
|
@@ -2544,20 +2566,20 @@ let Icon = class extends s$2 {
|
|
|
2544
2566
|
}
|
|
2545
2567
|
};
|
|
2546
2568
|
Icon.styles = r$5`:host{line-height:0;width:fit-content;height:fit-content;vertical-align:-.125em}svg{height:var(--sc-icon-size,1em);width:var(--sc-icon-size,1em)}svg:not([fill=none]){fill:currentColor}svg[fill=none]{stroke-width:2}:host([size="2xs"]) svg{--sc-icon-size:0.625em}:host([size=xs]) svg{--sc-icon-size:0.75em}:host([size=sm]) svg{--sc-icon-size:0.875em}:host([size=lg]) svg{--sc-icon-size:1.25em}:host([size=xl]) svg{--sc-icon-size:1.5em}:host([size="2xl"]) svg{--sc-icon-size:2em}:host([size="3xl"]) svg{--sc-icon-size:2.8em}`;
|
|
2547
|
-
__decorateClass
|
|
2569
|
+
__decorateClass$11([
|
|
2548
2570
|
e$5({ type: String })
|
|
2549
2571
|
], Icon.prototype, "name", 1);
|
|
2550
|
-
__decorateClass
|
|
2572
|
+
__decorateClass$11([
|
|
2551
2573
|
e$5({ type: String })
|
|
2552
2574
|
], Icon.prototype, "prefix", 1);
|
|
2553
|
-
__decorateClass
|
|
2575
|
+
__decorateClass$11([
|
|
2554
2576
|
e$5({ type: String })
|
|
2555
2577
|
], Icon.prototype, "library", 1);
|
|
2556
|
-
Icon = __decorateClass
|
|
2557
|
-
n$3(tagName$
|
|
2578
|
+
Icon = __decorateClass$11([
|
|
2579
|
+
n$3(tagName$Y)
|
|
2558
2580
|
], Icon);
|
|
2559
2581
|
try {
|
|
2560
|
-
customElements.define(tagName$
|
|
2582
|
+
customElements.define(tagName$Y, Icon);
|
|
2561
2583
|
} catch (e2) {
|
|
2562
2584
|
}
|
|
2563
2585
|
/**
|
|
@@ -2602,15 +2624,15 @@ const i = e$3(class extends i$3 {
|
|
|
2602
2624
|
}
|
|
2603
2625
|
});
|
|
2604
2626
|
const customScroll = r$5`.custom-scroll{overflow:auto!important}.custom-scroll::-webkit-scrollbar{width:.5rem;height:.5rem;border:solid .15rem transparent;border-radius:var(--sc-rounded);background:0 0}.custom-scroll::-webkit-scrollbar-thumb{box-shadow:inset 0 0 2rem 2rem var(--sc-scrollbar-bg);border-radius:var(--sc-rounded);border:solid .15rem transparent}`;
|
|
2605
|
-
var __defProp$
|
|
2606
|
-
var __getOwnPropDesc$
|
|
2607
|
-
var __decorateClass$
|
|
2608
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
2627
|
+
var __defProp$10 = Object.defineProperty;
|
|
2628
|
+
var __getOwnPropDesc$10 = Object.getOwnPropertyDescriptor;
|
|
2629
|
+
var __decorateClass$10 = (decorators, target, key, kind) => {
|
|
2630
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$10(target, key) : target;
|
|
2609
2631
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
2610
2632
|
if (decorator = decorators[i2])
|
|
2611
2633
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2612
2634
|
if (kind && result)
|
|
2613
|
-
__defProp$
|
|
2635
|
+
__defProp$10(target, key, result);
|
|
2614
2636
|
return result;
|
|
2615
2637
|
};
|
|
2616
2638
|
const icon$1 = {
|
|
@@ -2619,7 +2641,7 @@ const icon$1 = {
|
|
|
2619
2641
|
error: "warning-circled-outline",
|
|
2620
2642
|
info: "info-empty"
|
|
2621
2643
|
};
|
|
2622
|
-
const tagName$
|
|
2644
|
+
const tagName$X = "sonic-toast-item";
|
|
2623
2645
|
let SonicToastItem = class extends s$2 {
|
|
2624
2646
|
constructor() {
|
|
2625
2647
|
super(...arguments);
|
|
@@ -2671,48 +2693,48 @@ SonicToastItem.styles = [
|
|
|
2671
2693
|
customScroll,
|
|
2672
2694
|
r$5`*{box-sizing:border-box}:host{display:block;pointer-events:auto;position:relative;--sc-toast-status-color:transparent;--sc-toast-color:var(--sc-base-content);--sc-toast-bg:var(--sc-base);--sc-toast-rounded:var(--sc-rounded-md);--sc-toast-shadow:var(--sc-shadow-lg)}.fixed-area{position:fixed;bottom:1.25rem;right:1.25rem;z-index:999;display:flex;flex-direction:column-reverse}.sonic-toast{position:relative;pointer-events:auto;overflow:hidden;line-height:1.25;color:var(--sc-toast-color);box-shadow:var(--sc-toast-shadow);border-radius:var(--sc-toast-rounded);background:var(--sc-toast-bg)}.sonic-toast-content{padding:1em 2.5rem 1em 1em;display:flex;gap:.5rem;overflow:auto;position:relative}.sonic-toast-text{align-self:center;margin-top:auto;margin-bottom:auto;max-width:70ch;line-height:1.2}.sonic-toast-text a,::slotted(a:not(.btn)){color:inherit!important;text-decoration:underline!important;text-underline-offset:.15rem}.sonic-toast-text :is(p, ul, ol, hr, h1, h2, h3, h4, h5, h6),::slotted(:is(p,ul,ol,hr,h1,h2,h3,h4,h5,h6)){margin:0 0 .3em!important}.sonic-toast-text li,::slotted(li){margin-bottom:.15em!important}.sonic-toast-text>:is(p,ul,ol,hr,h1,h2,h3,h4,h5,h6):last-child,::slotted(:is(p,ul,ol,hr,h1,h2,h3,h4,h5,h6):last-child){margin-bottom:0!important}.sonic-toast-close{all:unset;position:absolute;z-index:4;pointer-events:initial;right:.5em;top:.5em;width:1.5rem;height:1.5rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;text-align:center;opacity:.5;background:rgba(0,0,0,0)}.sonic-toast-close:focus,.sonic-toast-close:hover{opacity:1;background:rgba(0,0,0,.075)}.sonic-toast-close svg{width:1rem;height:1rem;object-fit:contain;object-position:center center}.sonic-toast-title{font-weight:700;font-size:1.15rem;margin:.15em 0 .25em;line-height:1.2}.success{--sc-toast-status-color:var(--sc-success);--sc-toast-title-color:var(--sc-toast-status-color)}.error{--sc-toast-status-color:var(--sc-danger);--sc-toast-title-color:var(--sc-toast-status-color)}.warning{--sc-toast-status-color:var(--sc-warning);--sc-toast-title-color:var(--sc-toast-status-color)}.info{--sc-toast-status-color:var(--sc-info);--sc-toast-title-color:var(--sc-toast-status-color)}.error,.info,.success,.warning{border-top:3px solid var(--sc-toast-status-color,currentColor)}.sonic-toast:before{content:"";display:block;position:absolute;left:0;top:0;right:0;bottom:0;opacity:.05;pointer-events:none;transition:.2s;border-radius:var(--sc-toast-rounded);background-color:var(--sc-toast-status-color)}.sonic-toast:hover:before{opacity:.025}.error .sonic-toast-icon,.info .sonic-toast-icon,.success .sonic-toast-icon,.warning .sonic-toast-icon{color:var(--sc-toast-status-color,currentColor)}.sonic-toast-icon{position:sticky;top:0}.ghost{opacity:.85;pointer-events:none}`
|
|
2673
2695
|
];
|
|
2674
|
-
__decorateClass$
|
|
2696
|
+
__decorateClass$10([
|
|
2675
2697
|
e$5({ type: String })
|
|
2676
2698
|
], SonicToastItem.prototype, "title", 2);
|
|
2677
|
-
__decorateClass$
|
|
2699
|
+
__decorateClass$10([
|
|
2678
2700
|
e$5({ type: String })
|
|
2679
2701
|
], SonicToastItem.prototype, "id", 2);
|
|
2680
|
-
__decorateClass$
|
|
2702
|
+
__decorateClass$10([
|
|
2681
2703
|
e$5({ type: String })
|
|
2682
2704
|
], SonicToastItem.prototype, "text", 2);
|
|
2683
|
-
__decorateClass$
|
|
2705
|
+
__decorateClass$10([
|
|
2684
2706
|
e$5({ type: String })
|
|
2685
2707
|
], SonicToastItem.prototype, "status", 2);
|
|
2686
|
-
__decorateClass$
|
|
2708
|
+
__decorateClass$10([
|
|
2687
2709
|
e$5({ type: Boolean })
|
|
2688
2710
|
], SonicToastItem.prototype, "ghost", 2);
|
|
2689
|
-
__decorateClass$
|
|
2711
|
+
__decorateClass$10([
|
|
2690
2712
|
e$5({ type: Boolean })
|
|
2691
2713
|
], SonicToastItem.prototype, "preserve", 2);
|
|
2692
|
-
__decorateClass$
|
|
2714
|
+
__decorateClass$10([
|
|
2693
2715
|
e$5({ type: Boolean })
|
|
2694
2716
|
], SonicToastItem.prototype, "dismissForever", 2);
|
|
2695
|
-
__decorateClass$
|
|
2717
|
+
__decorateClass$10([
|
|
2696
2718
|
e$5({ type: String })
|
|
2697
2719
|
], SonicToastItem.prototype, "maxHeight", 2);
|
|
2698
|
-
__decorateClass$
|
|
2720
|
+
__decorateClass$10([
|
|
2699
2721
|
t$1()
|
|
2700
2722
|
], SonicToastItem.prototype, "visible", 2);
|
|
2701
|
-
SonicToastItem = __decorateClass$
|
|
2702
|
-
n$3(tagName$
|
|
2723
|
+
SonicToastItem = __decorateClass$10([
|
|
2724
|
+
n$3(tagName$X)
|
|
2703
2725
|
], SonicToastItem);
|
|
2704
|
-
var __defProp
|
|
2705
|
-
var __getOwnPropDesc
|
|
2706
|
-
var __decorateClass
|
|
2707
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc
|
|
2726
|
+
var __defProp$$ = Object.defineProperty;
|
|
2727
|
+
var __getOwnPropDesc$$ = Object.getOwnPropertyDescriptor;
|
|
2728
|
+
var __decorateClass$$ = (decorators, target, key, kind) => {
|
|
2729
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$$(target, key) : target;
|
|
2708
2730
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
2709
2731
|
if (decorator = decorators[i2])
|
|
2710
2732
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2711
2733
|
if (kind && result)
|
|
2712
|
-
__defProp
|
|
2734
|
+
__defProp$$(target, key, result);
|
|
2713
2735
|
return result;
|
|
2714
2736
|
};
|
|
2715
|
-
const tagName$
|
|
2737
|
+
const tagName$W = "sonic-toast";
|
|
2716
2738
|
let SonicToast$1 = class extends s$2 {
|
|
2717
2739
|
constructor() {
|
|
2718
2740
|
super(...arguments);
|
|
@@ -2808,11 +2830,11 @@ let SonicToast$1 = class extends s$2 {
|
|
|
2808
2830
|
this.toasts = this.toasts.filter((i2) => i2 != item);
|
|
2809
2831
|
}
|
|
2810
2832
|
};
|
|
2811
|
-
__decorateClass
|
|
2833
|
+
__decorateClass$$([
|
|
2812
2834
|
e$5({ type: Array })
|
|
2813
2835
|
], SonicToast$1.prototype, "toasts", 2);
|
|
2814
|
-
SonicToast$1 = __decorateClass
|
|
2815
|
-
n$3(tagName$
|
|
2836
|
+
SonicToast$1 = __decorateClass$$([
|
|
2837
|
+
n$3(tagName$W)
|
|
2816
2838
|
], SonicToast$1);
|
|
2817
2839
|
if (typeof window !== "undefined") {
|
|
2818
2840
|
let win2 = window;
|
|
@@ -2911,15 +2933,15 @@ let LocationHandler$1 = _LocationHandler;
|
|
|
2911
2933
|
LocationHandler$1.listeners = [];
|
|
2912
2934
|
LocationHandler$1.listening = false;
|
|
2913
2935
|
LocationHandler$1.prevURL = (_a = document.location) == null ? void 0 : _a.href.replace(document.location.origin, "");
|
|
2914
|
-
var __defProp$
|
|
2915
|
-
var __getOwnPropDesc$
|
|
2916
|
-
var __decorateClass$
|
|
2917
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
2936
|
+
var __defProp$_ = Object.defineProperty;
|
|
2937
|
+
var __getOwnPropDesc$_ = Object.getOwnPropertyDescriptor;
|
|
2938
|
+
var __decorateClass$_ = (decorators, target, key, kind) => {
|
|
2939
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$_(target, key) : target;
|
|
2918
2940
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
2919
2941
|
if (decorator = decorators[i2])
|
|
2920
2942
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2921
2943
|
if (kind && result)
|
|
2922
|
-
__defProp$
|
|
2944
|
+
__defProp$_(target, key, result);
|
|
2923
2945
|
return result;
|
|
2924
2946
|
};
|
|
2925
2947
|
const keyboardLoops = /* @__PURE__ */ new Map();
|
|
@@ -3100,41 +3122,41 @@ const Form$2 = (superClass) => {
|
|
|
3100
3122
|
}
|
|
3101
3123
|
}
|
|
3102
3124
|
}
|
|
3103
|
-
__decorateClass$
|
|
3125
|
+
__decorateClass$_([
|
|
3104
3126
|
e$5({ type: Boolean, reflect: true })
|
|
3105
3127
|
], FormElement2.prototype, "touched", 2);
|
|
3106
|
-
__decorateClass$
|
|
3128
|
+
__decorateClass$_([
|
|
3107
3129
|
e$5({ type: Boolean })
|
|
3108
3130
|
], FormElement2.prototype, "error", 2);
|
|
3109
|
-
__decorateClass$
|
|
3131
|
+
__decorateClass$_([
|
|
3110
3132
|
e$5({ type: Boolean })
|
|
3111
3133
|
], FormElement2.prototype, "autofocus", 2);
|
|
3112
|
-
__decorateClass$
|
|
3134
|
+
__decorateClass$_([
|
|
3113
3135
|
e$5({ type: Boolean })
|
|
3114
3136
|
], FormElement2.prototype, "required", 2);
|
|
3115
|
-
__decorateClass$
|
|
3137
|
+
__decorateClass$_([
|
|
3116
3138
|
e$5()
|
|
3117
3139
|
], FormElement2.prototype, "forceAutoFill", 2);
|
|
3118
|
-
__decorateClass$
|
|
3140
|
+
__decorateClass$_([
|
|
3119
3141
|
e$5({ type: Boolean })
|
|
3120
3142
|
], FormElement2.prototype, "disabled", 2);
|
|
3121
|
-
__decorateClass$
|
|
3143
|
+
__decorateClass$_([
|
|
3122
3144
|
e$5()
|
|
3123
3145
|
], FormElement2.prototype, "name", 1);
|
|
3124
|
-
__decorateClass$
|
|
3146
|
+
__decorateClass$_([
|
|
3125
3147
|
e$5()
|
|
3126
3148
|
], FormElement2.prototype, "value", 1);
|
|
3127
3149
|
return FormElement2;
|
|
3128
3150
|
};
|
|
3129
|
-
var __defProp$
|
|
3130
|
-
var __getOwnPropDesc$
|
|
3131
|
-
var __decorateClass$
|
|
3132
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3151
|
+
var __defProp$Z = Object.defineProperty;
|
|
3152
|
+
var __getOwnPropDesc$Z = Object.getOwnPropertyDescriptor;
|
|
3153
|
+
var __decorateClass$Z = (decorators, target, key, kind) => {
|
|
3154
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Z(target, key) : target;
|
|
3133
3155
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
3134
3156
|
if (decorator = decorators[i2])
|
|
3135
3157
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3136
3158
|
if (kind && result)
|
|
3137
|
-
__defProp$
|
|
3159
|
+
__defProp$Z(target, key, result);
|
|
3138
3160
|
return result;
|
|
3139
3161
|
};
|
|
3140
3162
|
const Form$1 = (superClass) => {
|
|
@@ -3228,36 +3250,36 @@ const Form$1 = (superClass) => {
|
|
|
3228
3250
|
}
|
|
3229
3251
|
}
|
|
3230
3252
|
}
|
|
3231
|
-
__decorateClass$
|
|
3253
|
+
__decorateClass$Z([
|
|
3232
3254
|
e$5()
|
|
3233
3255
|
], FormCheckable2.prototype, "value", 1);
|
|
3234
|
-
__decorateClass$
|
|
3256
|
+
__decorateClass$Z([
|
|
3235
3257
|
e$5()
|
|
3236
3258
|
], FormCheckable2.prototype, "forceAutoFill", 2);
|
|
3237
|
-
__decorateClass$
|
|
3259
|
+
__decorateClass$Z([
|
|
3238
3260
|
e$5({ type: Boolean })
|
|
3239
3261
|
], FormCheckable2.prototype, "unique", 2);
|
|
3240
|
-
__decorateClass$
|
|
3262
|
+
__decorateClass$Z([
|
|
3241
3263
|
e$5({ type: Boolean })
|
|
3242
3264
|
], FormCheckable2.prototype, "radio", 2);
|
|
3243
|
-
__decorateClass$
|
|
3265
|
+
__decorateClass$Z([
|
|
3244
3266
|
e$5()
|
|
3245
3267
|
], FormCheckable2.prototype, "checked", 1);
|
|
3246
3268
|
return FormCheckable2;
|
|
3247
3269
|
};
|
|
3248
3270
|
const fontSize = r$5`:host{--sc-fs:1rem;font-size:var(--sc-fs)}:host([size="2xs"]){--sc-fs:0.68rem}:host([size=xs]){--sc-fs:0.75rem}:host([size=sm]){--sc-fs:0.875rem}:host([size=lg]){--sc-fs:1.125rem}:host([size=xl]){--sc-fs:1.25rem}:host([size="2xl"]){--sc-fs:1.5rem}`;
|
|
3249
|
-
var __defProp$
|
|
3250
|
-
var __getOwnPropDesc$
|
|
3251
|
-
var __decorateClass$
|
|
3252
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3271
|
+
var __defProp$Y = Object.defineProperty;
|
|
3272
|
+
var __getOwnPropDesc$Y = Object.getOwnPropertyDescriptor;
|
|
3273
|
+
var __decorateClass$Y = (decorators, target, key, kind) => {
|
|
3274
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Y(target, key) : target;
|
|
3253
3275
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
3254
3276
|
if (decorator = decorators[i2])
|
|
3255
3277
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3256
3278
|
if (kind && result)
|
|
3257
|
-
__defProp$
|
|
3279
|
+
__defProp$Y(target, key, result);
|
|
3258
3280
|
return result;
|
|
3259
3281
|
};
|
|
3260
|
-
const tagName$
|
|
3282
|
+
const tagName$V = "sonic-button";
|
|
3261
3283
|
let Button = class extends Form$1(Form$2(Subscriber$1(s$2))) {
|
|
3262
3284
|
constructor() {
|
|
3263
3285
|
super(...arguments);
|
|
@@ -3349,74 +3371,74 @@ Button.styles = [
|
|
|
3349
3371
|
fontSize,
|
|
3350
3372
|
r$5`*{box-sizing:border-box}:host{--sc-btn-gap:0.35em;--sc-btn-py:0.25em;--sc-btn-px:1.1em;--sc-btn-fs:var(--sc-fs, 1rem);--sc-btn-fw:var(--sc-btn-font-weight);--sc-btn-ff:var(--sc-btn-font-family);--sc-btn-height:var(--sc-form-height);--sc-btn-color:var(--sc-base-content);--sc-btn-bg:var(--sc-base-100);--sc-btn-border-style:solid;--sc-btn-border-with:var(--sc-form-border-width);--sc-btn-border-color:transparent;--sc-btn-outline-bg-hover:var(--sc-base-100);--sc-btn-ghost-bg-hover:var(--sc-base-100);--sc-btn-active-color:var(--sc-base);--sc-btn-hover-filter:brightness(0.98);--sc-btn-active-filter:brightness(0.97);--sc-btn-active-bg:var(--sc-base-content);--sc-item-rounded-tr:var(--sc-btn-rounded);--sc-item-rounded-tl:var(--sc-btn-rounded);--sc-item-rounded-bl:var(--sc-btn-rounded);--sc-item-rounded-br:var(--sc-btn-rounded);display:inline-flex;vertical-align:middle;box-sizing:border-box}:host a{display:contents;color:unset}:host button{display:flex;flex:1;box-sizing:border-box;align-items:center;justify-content:center;font-family:var(--sc-btn-ff);font-weight:var(--sc-btn-fw);font-size:var(--sc-btn-fs);cursor:pointer;text-align:center;line-height:1.1;border-radius:var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl);background:var(--sc-btn-bg);color:var(--sc-btn-color);padding-top:var(--sc-btn-py);padding-bottom:var(--sc-btn-py);padding-left:var(--sc-btn-px);padding-right:var(--sc-btn-px);border:var(--sc-btn-border-with) var(--sc-btn-border-style) var(--sc-btn-border-color);min-height:var(--sc-btn-height)}:host button.has-prefix-or-suffix{gap:var(--sc-btn-gap)}:host button:focus,:host button:hover{filter:var(--sc-btn-hover-filter)}:host button:active{filter:var(--sc-btn-active-filter)}:host([type=default]) button{--sc-btn-color:var(--sc-base-content);--sc-btn-bg:var(--sc-base-100)}:host([type=primary]) button{--sc-btn-color:var(--sc-primary-content);--sc-btn-bg:var(--sc-primary)}:host([type=warning]) button{--sc-btn-color:var(--sc-warning-content);--sc-btn-bg:var(--sc-warning)}:host([type=danger]) button{--sc-btn-color:var(--sc-danger-content);--sc-btn-bg:var(--sc-danger)}:host([type=info]) button{--sc-btn-color:var(--sc-info-content);--sc-btn-bg:var(--sc-info)}:host([type=success]) button{--sc-btn-color:var(--sc-success-content);--sc-btn-bg:var(--sc-success)}:host([type=neutral]) button{--sc-btn-color:var(--sc-base);--sc-btn-bg:var(--sc-base-600)}:host([variant=unstyled]),:host([variant=unstyled]) button{all:unset;display:contents;transition:.1s;cursor:pointer;--sc-btn-height:auto;--sc-btn-width:auto}:host(:not([disabled])) button:focus{box-shadow:0 0 0 .18rem var(--sc-base-300);border-color:var(--sc-base-300)!important;outline:0}:host([variant=ghost][type]) button{color:var(--sc-btn-bg);background:0 0}:host([variant=ghost][type=default]) button{color:var(--sc-btn-color);background:0 0}:host([variant=ghost]) button:hover{background:var(--sc-btn-ghost-bg-hover);filter:none}:host([active][variant=ghost]) button{background:var(--sc-btn-ghost-bg-hover);filter:none}:host([active][variant=ghost]) button:hover{filter:var(--sc-btn-hover-filter)}:host([variant=outline][type]) button{border-color:var(--sc-btn-bg);color:var(--sc-btn-bg);background:0 0}:host([variant=outline][type=default]) button{border-color:var(--sc-base-400);color:var(--sc-base-500);background:0 0}:host([variant=outline]) button:hover{background:var(--sc-btn-outline-bg-hover)}:host([variant=link]:not([size])){vertical-align:baseline;margin-left:.25em;margin-right:.25em}:host([variant=link]:not([size])){font-size:inherit}:host([variant=link]) button{text-decoration:underline;padding:0;background:0 0;border:none;font-size:inherit;min-height:0;color:inherit}:host([variant=link][type]) button{color:var(--sc-btn-bg)}:host([variant=link][type=default]) button{color:inherit}:host([variant=link]) button:focus,:host([variant=link]) button:hover{text-decoration:none}:host([shape=circle]) button{border-radius:50%}:host([shape=circle]) button,:host([shape=square]) button{width:var(--sc-btn-height);height:var(--sc-btn-height);overflow:hidden;padding:0;align-items:center;justify-content:0;text-align:center!important}:host([shape=block]),:host([shape=block]) button{width:100%}:host([disabled]){opacity:.3;pointer-events:none;user-select:none}:host([active]:not([variant=ghost])) button{background:var(--sc-btn-active-bg);color:var(--sc-btn-active-color);border-color:var(--sc-btn-active-bg)}:host([textAlign=left]) button{text-align:left}:host([textAlign=right]) button{text-align:right}.main-slot{flex-grow:1;display:block}:host([minWidth]) .main-slot{flex-grow:0}slot[name=prefix],slot[name=suffix]{flex-shrink:0}::slotted(sonic-icon){min-width:1.28em;text-align:center}:host([icon]) ::slotted(sonic-icon){font-size:1.35em}sonic-tooltip{display:contents}:host(:not([active])) ::slotted([swap=on]){display:none}:host([active]) ::slotted([swap=off]){display:none}:host([loading]){pointer-events:none;position:relative}:host([loading]) slot{opacity:0!important;pointer-events:none}:host([loading]) .loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;line-height:0;height:var(--sc-btn-ff);width:var(--sc-btn-ff);animation:rotation 2s infinite linear}@keyframes rotation{from{transform-origin:50% 50%;transform:translate(-50%,-50%) rotate(0)}to{transform-origin:50% 50%;transform:translate(-50%,-50%) rotate(359deg)}}`
|
|
3351
3373
|
];
|
|
3352
|
-
__decorateClass$
|
|
3374
|
+
__decorateClass$Y([
|
|
3353
3375
|
e$5({ type: String, reflect: true })
|
|
3354
3376
|
], Button.prototype, "type", 2);
|
|
3355
|
-
__decorateClass$
|
|
3377
|
+
__decorateClass$Y([
|
|
3356
3378
|
e$5({ type: String, reflect: true })
|
|
3357
3379
|
], Button.prototype, "variant", 2);
|
|
3358
|
-
__decorateClass$
|
|
3380
|
+
__decorateClass$Y([
|
|
3359
3381
|
e$5({ type: String, reflect: true })
|
|
3360
3382
|
], Button.prototype, "size", 2);
|
|
3361
|
-
__decorateClass$
|
|
3383
|
+
__decorateClass$Y([
|
|
3362
3384
|
e$5({ type: String, reflect: true })
|
|
3363
3385
|
], Button.prototype, "shape", 2);
|
|
3364
|
-
__decorateClass$
|
|
3386
|
+
__decorateClass$Y([
|
|
3365
3387
|
e$5({ type: String })
|
|
3366
3388
|
], Button.prototype, "direction", 2);
|
|
3367
|
-
__decorateClass$
|
|
3389
|
+
__decorateClass$Y([
|
|
3368
3390
|
e$5({ type: String, reflect: true })
|
|
3369
3391
|
], Button.prototype, "alignItems", 2);
|
|
3370
|
-
__decorateClass$
|
|
3392
|
+
__decorateClass$Y([
|
|
3371
3393
|
e$5({ type: String })
|
|
3372
3394
|
], Button.prototype, "justify", 2);
|
|
3373
|
-
__decorateClass$
|
|
3395
|
+
__decorateClass$Y([
|
|
3374
3396
|
e$5({ type: String, reflect: true })
|
|
3375
3397
|
], Button.prototype, "align", 2);
|
|
3376
|
-
__decorateClass$
|
|
3398
|
+
__decorateClass$Y([
|
|
3377
3399
|
e$5({ type: String })
|
|
3378
3400
|
], Button.prototype, "minWidth", 2);
|
|
3379
|
-
__decorateClass$
|
|
3401
|
+
__decorateClass$Y([
|
|
3380
3402
|
e$5({ type: Boolean, reflect: true })
|
|
3381
3403
|
], Button.prototype, "icon", 2);
|
|
3382
|
-
__decorateClass$
|
|
3404
|
+
__decorateClass$Y([
|
|
3383
3405
|
e$5({ type: String })
|
|
3384
3406
|
], Button.prototype, "autoActive", 2);
|
|
3385
|
-
__decorateClass$
|
|
3407
|
+
__decorateClass$Y([
|
|
3386
3408
|
e$5({ type: Boolean, reflect: true })
|
|
3387
3409
|
], Button.prototype, "loading", 2);
|
|
3388
|
-
__decorateClass$
|
|
3410
|
+
__decorateClass$Y([
|
|
3389
3411
|
t$1()
|
|
3390
3412
|
], Button.prototype, "hasPrefix", 2);
|
|
3391
|
-
__decorateClass$
|
|
3413
|
+
__decorateClass$Y([
|
|
3392
3414
|
t$1()
|
|
3393
3415
|
], Button.prototype, "hasSuffix", 2);
|
|
3394
|
-
__decorateClass$
|
|
3416
|
+
__decorateClass$Y([
|
|
3395
3417
|
l$2({ flatten: true, slot: "prefix" })
|
|
3396
3418
|
], Button.prototype, "prefixes", 2);
|
|
3397
|
-
__decorateClass$
|
|
3419
|
+
__decorateClass$Y([
|
|
3398
3420
|
l$2({ flatten: true, slot: "suffix" })
|
|
3399
3421
|
], Button.prototype, "suffixes", 2);
|
|
3400
|
-
__decorateClass$
|
|
3422
|
+
__decorateClass$Y([
|
|
3401
3423
|
e$5({ type: String })
|
|
3402
3424
|
], Button.prototype, "target", 2);
|
|
3403
|
-
__decorateClass$
|
|
3425
|
+
__decorateClass$Y([
|
|
3404
3426
|
e$5({ type: String })
|
|
3405
3427
|
], Button.prototype, "href", 1);
|
|
3406
|
-
__decorateClass$
|
|
3428
|
+
__decorateClass$Y([
|
|
3407
3429
|
e$5({ type: String })
|
|
3408
3430
|
], Button.prototype, "goBack", 2);
|
|
3409
|
-
__decorateClass$
|
|
3431
|
+
__decorateClass$Y([
|
|
3410
3432
|
e$5({ type: Boolean })
|
|
3411
3433
|
], Button.prototype, "pushState", 2);
|
|
3412
|
-
__decorateClass$
|
|
3434
|
+
__decorateClass$Y([
|
|
3413
3435
|
e$5({ type: Boolean, reflect: true })
|
|
3414
3436
|
], Button.prototype, "active", 2);
|
|
3415
|
-
Button = __decorateClass$
|
|
3416
|
-
n$3(tagName$
|
|
3437
|
+
Button = __decorateClass$Y([
|
|
3438
|
+
n$3(tagName$V)
|
|
3417
3439
|
], Button);
|
|
3418
3440
|
try {
|
|
3419
|
-
customElements.define(tagName$
|
|
3441
|
+
customElements.define(tagName$V, Button);
|
|
3420
3442
|
} catch (e2) {
|
|
3421
3443
|
}
|
|
3422
3444
|
class Arrays$1 {
|
|
@@ -3559,15 +3581,15 @@ win$3["concorde-utils"] = {
|
|
|
3559
3581
|
PublisherManager,
|
|
3560
3582
|
api
|
|
3561
3583
|
};
|
|
3562
|
-
var __defProp$
|
|
3563
|
-
var __getOwnPropDesc$
|
|
3564
|
-
var __decorateClass$
|
|
3565
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3584
|
+
var __defProp$X = Object.defineProperty;
|
|
3585
|
+
var __getOwnPropDesc$X = Object.getOwnPropertyDescriptor;
|
|
3586
|
+
var __decorateClass$X = (decorators, target, key, kind) => {
|
|
3587
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$X(target, key) : target;
|
|
3566
3588
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
3567
3589
|
if (decorator = decorators[i2])
|
|
3568
3590
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3569
3591
|
if (kind && result)
|
|
3570
|
-
__defProp$
|
|
3592
|
+
__defProp$X(target, key, result);
|
|
3571
3593
|
return result;
|
|
3572
3594
|
};
|
|
3573
3595
|
const Fetcher$1 = (superClass) => {
|
|
@@ -3607,12 +3629,14 @@ const Fetcher$1 = (superClass) => {
|
|
|
3607
3629
|
Loader.show();
|
|
3608
3630
|
let headerData = PublisherManager.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();
|
|
3609
3631
|
data = await this.api.get(this.endPoint || this.dataProvider || "", headerData);
|
|
3610
|
-
if (!data
|
|
3632
|
+
if (!data) {
|
|
3611
3633
|
SonicToast$1.add({ text: "Network Error", status: "error" });
|
|
3612
3634
|
this.isLoading = false;
|
|
3613
3635
|
if (hasLoader)
|
|
3614
3636
|
Loader.hide();
|
|
3615
3637
|
return;
|
|
3638
|
+
} else if (data._sonic_http_response_ && !data._sonic_http_response_.ok && Object.keys(data).length === 1) {
|
|
3639
|
+
SonicToast$1.add({ text: "Network Error", status: "error" });
|
|
3616
3640
|
}
|
|
3617
3641
|
if (hasLoader)
|
|
3618
3642
|
Loader.hide();
|
|
@@ -3684,23 +3708,23 @@ const Fetcher$1 = (superClass) => {
|
|
|
3684
3708
|
}
|
|
3685
3709
|
}
|
|
3686
3710
|
}
|
|
3687
|
-
__decorateClass$
|
|
3711
|
+
__decorateClass$X([
|
|
3688
3712
|
e$5({ type: String })
|
|
3689
3713
|
], FetcherElement.prototype, "endPoint", 1);
|
|
3690
3714
|
return FetcherElement;
|
|
3691
3715
|
};
|
|
3692
|
-
var __defProp$
|
|
3693
|
-
var __getOwnPropDesc$
|
|
3694
|
-
var __decorateClass$
|
|
3695
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3716
|
+
var __defProp$W = Object.defineProperty;
|
|
3717
|
+
var __getOwnPropDesc$W = Object.getOwnPropertyDescriptor;
|
|
3718
|
+
var __decorateClass$W = (decorators, target, key, kind) => {
|
|
3719
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$W(target, key) : target;
|
|
3696
3720
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
3697
3721
|
if (decorator = decorators[i2])
|
|
3698
3722
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3699
3723
|
if (kind && result)
|
|
3700
|
-
__defProp$
|
|
3724
|
+
__defProp$W(target, key, result);
|
|
3701
3725
|
return result;
|
|
3702
3726
|
};
|
|
3703
|
-
const tagName$
|
|
3727
|
+
const tagName$U = "sonic-fetch";
|
|
3704
3728
|
let Fetch = class extends Fetcher$1(Subscriber$1(s$2)) {
|
|
3705
3729
|
render() {
|
|
3706
3730
|
return $$1`<slot></slot>`;
|
|
@@ -3709,25 +3733,25 @@ let Fetch = class extends Fetcher$1(Subscriber$1(s$2)) {
|
|
|
3709
3733
|
Fetch.styles = [
|
|
3710
3734
|
r$5`:host{display:contents}`
|
|
3711
3735
|
];
|
|
3712
|
-
Fetch = __decorateClass$
|
|
3713
|
-
n$3(tagName$
|
|
3736
|
+
Fetch = __decorateClass$W([
|
|
3737
|
+
n$3(tagName$U)
|
|
3714
3738
|
], Fetch);
|
|
3715
3739
|
try {
|
|
3716
|
-
customElements.define(tagName$
|
|
3740
|
+
customElements.define(tagName$U, Fetch);
|
|
3717
3741
|
} catch (e2) {
|
|
3718
3742
|
}
|
|
3719
|
-
var __defProp$
|
|
3720
|
-
var __getOwnPropDesc$
|
|
3721
|
-
var __decorateClass$
|
|
3722
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3743
|
+
var __defProp$V = Object.defineProperty;
|
|
3744
|
+
var __getOwnPropDesc$V = Object.getOwnPropertyDescriptor;
|
|
3745
|
+
var __decorateClass$V = (decorators, target, key, kind) => {
|
|
3746
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$V(target, key) : target;
|
|
3723
3747
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
3724
3748
|
if (decorator = decorators[i2])
|
|
3725
3749
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3726
3750
|
if (kind && result)
|
|
3727
|
-
__defProp$
|
|
3751
|
+
__defProp$V(target, key, result);
|
|
3728
3752
|
return result;
|
|
3729
3753
|
};
|
|
3730
|
-
const tagName$
|
|
3754
|
+
const tagName$T = "sonic-if";
|
|
3731
3755
|
let SonicIF = class extends s$2 {
|
|
3732
3756
|
constructor() {
|
|
3733
3757
|
super(...arguments);
|
|
@@ -3740,14 +3764,14 @@ let SonicIF = class extends s$2 {
|
|
|
3740
3764
|
}
|
|
3741
3765
|
};
|
|
3742
3766
|
SonicIF.styles = r$5`:host{display:contents}`;
|
|
3743
|
-
__decorateClass$
|
|
3767
|
+
__decorateClass$V([
|
|
3744
3768
|
e$5({ type: Boolean })
|
|
3745
3769
|
], SonicIF.prototype, "condition", 2);
|
|
3746
|
-
SonicIF = __decorateClass$
|
|
3747
|
-
n$3(tagName$
|
|
3770
|
+
SonicIF = __decorateClass$V([
|
|
3771
|
+
n$3(tagName$T)
|
|
3748
3772
|
], SonicIF);
|
|
3749
3773
|
try {
|
|
3750
|
-
customElements.define(tagName$
|
|
3774
|
+
customElements.define(tagName$T, SonicIF);
|
|
3751
3775
|
} catch (e2) {
|
|
3752
3776
|
}
|
|
3753
3777
|
/**
|
|
@@ -3764,18 +3788,18 @@ const o$1 = e$3(class extends i$3 {
|
|
|
3764
3788
|
return this.vt === r2 ? b$1 : (this.vt = r2, document.importNode(r2.content, true));
|
|
3765
3789
|
}
|
|
3766
3790
|
});
|
|
3767
|
-
var __defProp$
|
|
3768
|
-
var __getOwnPropDesc$
|
|
3769
|
-
var __decorateClass$
|
|
3770
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3791
|
+
var __defProp$U = Object.defineProperty;
|
|
3792
|
+
var __getOwnPropDesc$U = Object.getOwnPropertyDescriptor;
|
|
3793
|
+
var __decorateClass$U = (decorators, target, key, kind) => {
|
|
3794
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$U(target, key) : target;
|
|
3771
3795
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
3772
3796
|
if (decorator = decorators[i2])
|
|
3773
3797
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3774
3798
|
if (kind && result)
|
|
3775
|
-
__defProp$
|
|
3799
|
+
__defProp$U(target, key, result);
|
|
3776
3800
|
return result;
|
|
3777
3801
|
};
|
|
3778
|
-
const tagName$
|
|
3802
|
+
const tagName$S = "sonic-subscriber";
|
|
3779
3803
|
let SonicSubscriber = class extends Subscriber$1(s$2) {
|
|
3780
3804
|
constructor() {
|
|
3781
3805
|
super(...arguments);
|
|
@@ -3796,25 +3820,25 @@ let SonicSubscriber = class extends Subscriber$1(s$2) {
|
|
|
3796
3820
|
return $$1`<slot></slot>`;
|
|
3797
3821
|
}
|
|
3798
3822
|
};
|
|
3799
|
-
SonicSubscriber = __decorateClass$
|
|
3800
|
-
n$3(tagName$
|
|
3823
|
+
SonicSubscriber = __decorateClass$U([
|
|
3824
|
+
n$3(tagName$S)
|
|
3801
3825
|
], SonicSubscriber);
|
|
3802
3826
|
try {
|
|
3803
|
-
customElements.define(tagName$
|
|
3827
|
+
customElements.define(tagName$S, SonicSubscriber);
|
|
3804
3828
|
} catch (e2) {
|
|
3805
3829
|
}
|
|
3806
|
-
var __defProp$
|
|
3807
|
-
var __getOwnPropDesc$
|
|
3808
|
-
var __decorateClass$
|
|
3809
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3830
|
+
var __defProp$T = Object.defineProperty;
|
|
3831
|
+
var __getOwnPropDesc$T = Object.getOwnPropertyDescriptor;
|
|
3832
|
+
var __decorateClass$T = (decorators, target, key, kind) => {
|
|
3833
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$T(target, key) : target;
|
|
3810
3834
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
3811
3835
|
if (decorator = decorators[i2])
|
|
3812
3836
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3813
3837
|
if (kind && result)
|
|
3814
|
-
__defProp$
|
|
3838
|
+
__defProp$T(target, key, result);
|
|
3815
3839
|
return result;
|
|
3816
3840
|
};
|
|
3817
|
-
const tagName$
|
|
3841
|
+
const tagName$R = "sonic-list";
|
|
3818
3842
|
let List = class extends Fetcher$1(Subscriber$1(TemplatesContainer$1(s$2))) {
|
|
3819
3843
|
constructor() {
|
|
3820
3844
|
super(...arguments);
|
|
@@ -3892,34 +3916,34 @@ let List = class extends Fetcher$1(Subscriber$1(TemplatesContainer$1(s$2))) {
|
|
|
3892
3916
|
List.styles = [
|
|
3893
3917
|
r$5`.sonic-no-result-container{color:var(--sc-base-400);font-size:1.65rem}sonic-icon{margin-right:.25em}span{vertical-align:middle}`
|
|
3894
3918
|
];
|
|
3895
|
-
__decorateClass$
|
|
3919
|
+
__decorateClass$T([
|
|
3896
3920
|
e$5({ type: Object })
|
|
3897
3921
|
], List.prototype, "itemPropertyMap", 2);
|
|
3898
|
-
__decorateClass$
|
|
3922
|
+
__decorateClass$T([
|
|
3899
3923
|
e$5({ type: String })
|
|
3900
3924
|
], List.prototype, "templateKey", 2);
|
|
3901
|
-
__decorateClass$
|
|
3925
|
+
__decorateClass$T([
|
|
3902
3926
|
e$5({ type: String })
|
|
3903
3927
|
], List.prototype, "idKey", 2);
|
|
3904
|
-
List = __decorateClass$
|
|
3905
|
-
n$3(tagName$
|
|
3928
|
+
List = __decorateClass$T([
|
|
3929
|
+
n$3(tagName$R)
|
|
3906
3930
|
], List);
|
|
3907
3931
|
try {
|
|
3908
|
-
customElements.define(tagName$
|
|
3932
|
+
customElements.define(tagName$R, List);
|
|
3909
3933
|
} catch (e2) {
|
|
3910
3934
|
}
|
|
3911
|
-
var __defProp$
|
|
3912
|
-
var __getOwnPropDesc$
|
|
3913
|
-
var __decorateClass$
|
|
3914
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3935
|
+
var __defProp$S = Object.defineProperty;
|
|
3936
|
+
var __getOwnPropDesc$S = Object.getOwnPropertyDescriptor;
|
|
3937
|
+
var __decorateClass$S = (decorators, target, key, kind) => {
|
|
3938
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$S(target, key) : target;
|
|
3915
3939
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
3916
3940
|
if (decorator = decorators[i2])
|
|
3917
3941
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3918
3942
|
if (kind && result)
|
|
3919
|
-
__defProp$
|
|
3943
|
+
__defProp$S(target, key, result);
|
|
3920
3944
|
return result;
|
|
3921
3945
|
};
|
|
3922
|
-
const tagName$
|
|
3946
|
+
const tagName$Q = "sonic-queue";
|
|
3923
3947
|
let Queue = class extends Subscriber$1(s$2) {
|
|
3924
3948
|
constructor() {
|
|
3925
3949
|
super(...arguments);
|
|
@@ -4044,49 +4068,49 @@ let Queue = class extends Subscriber$1(s$2) {
|
|
|
4044
4068
|
}
|
|
4045
4069
|
};
|
|
4046
4070
|
Queue.instanceCounter = 0;
|
|
4047
|
-
__decorateClass$
|
|
4071
|
+
__decorateClass$S([
|
|
4048
4072
|
e$5({ type: Array })
|
|
4049
4073
|
], Queue.prototype, "templates", 2);
|
|
4050
|
-
__decorateClass$
|
|
4074
|
+
__decorateClass$S([
|
|
4051
4075
|
e$5({ type: Object })
|
|
4052
4076
|
], Queue.prototype, "itemPropertyMap", 2);
|
|
4053
|
-
__decorateClass$
|
|
4077
|
+
__decorateClass$S([
|
|
4054
4078
|
e$5()
|
|
4055
4079
|
], Queue.prototype, "targetRequestDuration", 2);
|
|
4056
|
-
__decorateClass$
|
|
4080
|
+
__decorateClass$S([
|
|
4057
4081
|
e$5()
|
|
4058
4082
|
], Queue.prototype, "limit", 2);
|
|
4059
|
-
__decorateClass$
|
|
4083
|
+
__decorateClass$S([
|
|
4060
4084
|
e$5()
|
|
4061
4085
|
], Queue.prototype, "offset", 2);
|
|
4062
|
-
__decorateClass$
|
|
4086
|
+
__decorateClass$S([
|
|
4063
4087
|
e$5()
|
|
4064
4088
|
], Queue.prototype, "filteredFields", 2);
|
|
4065
|
-
__decorateClass$
|
|
4089
|
+
__decorateClass$S([
|
|
4066
4090
|
e$5({ type: String })
|
|
4067
4091
|
], Queue.prototype, "dataProviderExpression", 2);
|
|
4068
|
-
__decorateClass$
|
|
4092
|
+
__decorateClass$S([
|
|
4069
4093
|
e$5({ type: String })
|
|
4070
4094
|
], Queue.prototype, "idKey", 2);
|
|
4071
|
-
Queue = __decorateClass$
|
|
4072
|
-
n$3(tagName$
|
|
4095
|
+
Queue = __decorateClass$S([
|
|
4096
|
+
n$3(tagName$Q)
|
|
4073
4097
|
], Queue);
|
|
4074
4098
|
try {
|
|
4075
|
-
customElements.define(tagName$
|
|
4099
|
+
customElements.define(tagName$Q, Queue);
|
|
4076
4100
|
} catch (e2) {
|
|
4077
4101
|
}
|
|
4078
|
-
var __defProp$
|
|
4079
|
-
var __getOwnPropDesc$
|
|
4080
|
-
var __decorateClass$
|
|
4081
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4102
|
+
var __defProp$R = Object.defineProperty;
|
|
4103
|
+
var __getOwnPropDesc$R = Object.getOwnPropertyDescriptor;
|
|
4104
|
+
var __decorateClass$R = (decorators, target, key, kind) => {
|
|
4105
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$R(target, key) : target;
|
|
4082
4106
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4083
4107
|
if (decorator = decorators[i2])
|
|
4084
4108
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4085
4109
|
if (kind && result)
|
|
4086
|
-
__defProp$
|
|
4110
|
+
__defProp$R(target, key, result);
|
|
4087
4111
|
return result;
|
|
4088
4112
|
};
|
|
4089
|
-
const tagName$
|
|
4113
|
+
const tagName$P = "sonic-submit";
|
|
4090
4114
|
let Submit = class extends Subscriber$1(s$2) {
|
|
4091
4115
|
constructor() {
|
|
4092
4116
|
super(...arguments);
|
|
@@ -4185,20 +4209,20 @@ let Submit = class extends Subscriber$1(s$2) {
|
|
|
4185
4209
|
}
|
|
4186
4210
|
};
|
|
4187
4211
|
Submit.styles = r$5`[data-disabled]{opacity:.3;pointer-events:none;user-select:none}`;
|
|
4188
|
-
__decorateClass$
|
|
4212
|
+
__decorateClass$R([
|
|
4189
4213
|
e$5({ type: String })
|
|
4190
4214
|
], Submit.prototype, "submitResultKey", 2);
|
|
4191
|
-
__decorateClass$
|
|
4215
|
+
__decorateClass$R([
|
|
4192
4216
|
e$5({ type: Boolean })
|
|
4193
4217
|
], Submit.prototype, "disabled", 2);
|
|
4194
|
-
__decorateClass$
|
|
4218
|
+
__decorateClass$R([
|
|
4195
4219
|
e$5({ type: String })
|
|
4196
4220
|
], Submit.prototype, "endPoint", 2);
|
|
4197
|
-
Submit = __decorateClass$
|
|
4198
|
-
n$3(tagName$
|
|
4221
|
+
Submit = __decorateClass$R([
|
|
4222
|
+
n$3(tagName$P)
|
|
4199
4223
|
], Submit);
|
|
4200
4224
|
try {
|
|
4201
|
-
customElements.define(tagName$
|
|
4225
|
+
customElements.define(tagName$P, Submit);
|
|
4202
4226
|
} catch (e2) {
|
|
4203
4227
|
}
|
|
4204
4228
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
@@ -4638,18 +4662,18 @@ var urlPattern = { exports: {} };
|
|
|
4638
4662
|
});
|
|
4639
4663
|
})(urlPattern, urlPattern.exports);
|
|
4640
4664
|
var UrlPattern = urlPattern.exports;
|
|
4641
|
-
var __defProp$
|
|
4642
|
-
var __getOwnPropDesc$
|
|
4643
|
-
var __decorateClass$
|
|
4644
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4665
|
+
var __defProp$Q = Object.defineProperty;
|
|
4666
|
+
var __getOwnPropDesc$Q = Object.getOwnPropertyDescriptor;
|
|
4667
|
+
var __decorateClass$Q = (decorators, target, key, kind) => {
|
|
4668
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Q(target, key) : target;
|
|
4645
4669
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4646
4670
|
if (decorator = decorators[i2])
|
|
4647
4671
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4648
4672
|
if (kind && result)
|
|
4649
|
-
__defProp$
|
|
4673
|
+
__defProp$Q(target, key, result);
|
|
4650
4674
|
return result;
|
|
4651
4675
|
};
|
|
4652
|
-
const tagName$
|
|
4676
|
+
const tagName$O = "sonic-router";
|
|
4653
4677
|
let SonicRouter = class extends Subscriber$1(TemplatesContainer$1(s$2)) {
|
|
4654
4678
|
constructor() {
|
|
4655
4679
|
super(...arguments);
|
|
@@ -4711,28 +4735,28 @@ let SonicRouter = class extends Subscriber$1(TemplatesContainer$1(s$2)) {
|
|
|
4711
4735
|
})}`;
|
|
4712
4736
|
}
|
|
4713
4737
|
};
|
|
4714
|
-
__decorateClass$
|
|
4738
|
+
__decorateClass$Q([
|
|
4715
4739
|
e$5()
|
|
4716
4740
|
], SonicRouter.prototype, "location", 1);
|
|
4717
|
-
SonicRouter = __decorateClass$
|
|
4718
|
-
n$3(tagName$
|
|
4741
|
+
SonicRouter = __decorateClass$Q([
|
|
4742
|
+
n$3(tagName$O)
|
|
4719
4743
|
], SonicRouter);
|
|
4720
4744
|
try {
|
|
4721
|
-
customElements.define(tagName$
|
|
4745
|
+
customElements.define(tagName$O, SonicRouter);
|
|
4722
4746
|
} catch (e2) {
|
|
4723
4747
|
}
|
|
4724
|
-
var __defProp$
|
|
4725
|
-
var __getOwnPropDesc$
|
|
4726
|
-
var __decorateClass$
|
|
4727
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4748
|
+
var __defProp$P = Object.defineProperty;
|
|
4749
|
+
var __getOwnPropDesc$P = Object.getOwnPropertyDescriptor;
|
|
4750
|
+
var __decorateClass$P = (decorators, target, key, kind) => {
|
|
4751
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$P(target, key) : target;
|
|
4728
4752
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4729
4753
|
if (decorator = decorators[i2])
|
|
4730
4754
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4731
4755
|
if (kind && result)
|
|
4732
|
-
__defProp$
|
|
4756
|
+
__defProp$P(target, key, result);
|
|
4733
4757
|
return result;
|
|
4734
4758
|
};
|
|
4735
|
-
const tagName$
|
|
4759
|
+
const tagName$N = "sonic-redirect";
|
|
4736
4760
|
let SonicRedirect = class extends Subscriber$1(s$2) {
|
|
4737
4761
|
constructor() {
|
|
4738
4762
|
super(...arguments);
|
|
@@ -4762,25 +4786,25 @@ let SonicRedirect = class extends Subscriber$1(s$2) {
|
|
|
4762
4786
|
}
|
|
4763
4787
|
}
|
|
4764
4788
|
};
|
|
4765
|
-
SonicRedirect = __decorateClass$
|
|
4766
|
-
n$3(tagName$
|
|
4789
|
+
SonicRedirect = __decorateClass$P([
|
|
4790
|
+
n$3(tagName$N)
|
|
4767
4791
|
], SonicRedirect);
|
|
4768
4792
|
try {
|
|
4769
|
-
customElements.define(tagName$
|
|
4793
|
+
customElements.define(tagName$N, SonicRedirect);
|
|
4770
4794
|
} catch (e2) {
|
|
4771
4795
|
}
|
|
4772
|
-
var __defProp$
|
|
4773
|
-
var __getOwnPropDesc$
|
|
4774
|
-
var __decorateClass$
|
|
4775
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4796
|
+
var __defProp$O = Object.defineProperty;
|
|
4797
|
+
var __getOwnPropDesc$O = Object.getOwnPropertyDescriptor;
|
|
4798
|
+
var __decorateClass$O = (decorators, target, key, kind) => {
|
|
4799
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$O(target, key) : target;
|
|
4776
4800
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4777
4801
|
if (decorator = decorators[i2])
|
|
4778
4802
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4779
4803
|
if (kind && result)
|
|
4780
|
-
__defProp$
|
|
4804
|
+
__defProp$O(target, key, result);
|
|
4781
4805
|
return result;
|
|
4782
4806
|
};
|
|
4783
|
-
const tagName$
|
|
4807
|
+
const tagName$M = "sonic-states";
|
|
4784
4808
|
let SonicStates = class extends Subscriber$1(TemplatesContainer$1(s$2)) {
|
|
4785
4809
|
constructor() {
|
|
4786
4810
|
super(...arguments);
|
|
@@ -4873,31 +4897,31 @@ let SonicStates = class extends Subscriber$1(TemplatesContainer$1(s$2)) {
|
|
|
4873
4897
|
})}`;
|
|
4874
4898
|
}
|
|
4875
4899
|
};
|
|
4876
|
-
__decorateClass$
|
|
4900
|
+
__decorateClass$O([
|
|
4877
4901
|
e$5()
|
|
4878
4902
|
], SonicStates.prototype, "state", 2);
|
|
4879
|
-
__decorateClass$
|
|
4903
|
+
__decorateClass$O([
|
|
4880
4904
|
e$5({ type: Boolean, reflect: true })
|
|
4881
4905
|
], SonicStates.prototype, "inverted", 2);
|
|
4882
|
-
SonicStates = __decorateClass$
|
|
4883
|
-
n$3(tagName$
|
|
4906
|
+
SonicStates = __decorateClass$O([
|
|
4907
|
+
n$3(tagName$M)
|
|
4884
4908
|
], SonicStates);
|
|
4885
4909
|
try {
|
|
4886
|
-
customElements.define(tagName$
|
|
4910
|
+
customElements.define(tagName$M, SonicStates);
|
|
4887
4911
|
} catch (e2) {
|
|
4888
4912
|
}
|
|
4889
|
-
var __defProp$
|
|
4890
|
-
var __getOwnPropDesc$
|
|
4891
|
-
var __decorateClass$
|
|
4892
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4913
|
+
var __defProp$N = Object.defineProperty;
|
|
4914
|
+
var __getOwnPropDesc$N = Object.getOwnPropertyDescriptor;
|
|
4915
|
+
var __decorateClass$N = (decorators, target, key, kind) => {
|
|
4916
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$N(target, key) : target;
|
|
4893
4917
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4894
4918
|
if (decorator = decorators[i2])
|
|
4895
4919
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4896
4920
|
if (kind && result)
|
|
4897
|
-
__defProp$
|
|
4921
|
+
__defProp$N(target, key, result);
|
|
4898
4922
|
return result;
|
|
4899
4923
|
};
|
|
4900
|
-
const tagName$
|
|
4924
|
+
const tagName$L = "sonic-scope";
|
|
4901
4925
|
let SonicScope = class extends s$2 {
|
|
4902
4926
|
createRenderRoot() {
|
|
4903
4927
|
return this;
|
|
@@ -4906,22 +4930,22 @@ let SonicScope = class extends s$2 {
|
|
|
4906
4930
|
return $$1`<slot></slot>`;
|
|
4907
4931
|
}
|
|
4908
4932
|
};
|
|
4909
|
-
SonicScope = __decorateClass$
|
|
4910
|
-
n$3(tagName$
|
|
4933
|
+
SonicScope = __decorateClass$N([
|
|
4934
|
+
n$3(tagName$L)
|
|
4911
4935
|
], SonicScope);
|
|
4912
|
-
var __defProp$
|
|
4913
|
-
var __getOwnPropDesc$
|
|
4914
|
-
var __decorateClass$
|
|
4915
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4936
|
+
var __defProp$M = Object.defineProperty;
|
|
4937
|
+
var __getOwnPropDesc$M = Object.getOwnPropertyDescriptor;
|
|
4938
|
+
var __decorateClass$M = (decorators, target, key, kind) => {
|
|
4939
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$M(target, key) : target;
|
|
4916
4940
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4917
4941
|
if (decorator = decorators[i2])
|
|
4918
4942
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4919
4943
|
if (kind && result)
|
|
4920
|
-
__defProp$
|
|
4944
|
+
__defProp$M(target, key, result);
|
|
4921
4945
|
return result;
|
|
4922
4946
|
};
|
|
4923
|
-
const tagName$
|
|
4924
|
-
let SonicComponent$
|
|
4947
|
+
const tagName$K = "sonic-example";
|
|
4948
|
+
let SonicComponent$2 = class extends Subscriber$1(s$2) {
|
|
4925
4949
|
constructor() {
|
|
4926
4950
|
super(...arguments);
|
|
4927
4951
|
this.text = "Example";
|
|
@@ -4930,21 +4954,21 @@ let SonicComponent$1 = class extends Subscriber$1(s$2) {
|
|
|
4930
4954
|
return $$1`${this.text}`;
|
|
4931
4955
|
}
|
|
4932
4956
|
};
|
|
4933
|
-
__decorateClass$
|
|
4957
|
+
__decorateClass$M([
|
|
4934
4958
|
e$5()
|
|
4935
|
-
], SonicComponent$
|
|
4936
|
-
SonicComponent$
|
|
4937
|
-
n$3(tagName$
|
|
4938
|
-
], SonicComponent$
|
|
4939
|
-
var __defProp$
|
|
4940
|
-
var __getOwnPropDesc$
|
|
4941
|
-
var __decorateClass$
|
|
4942
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4959
|
+
], SonicComponent$2.prototype, "text", 2);
|
|
4960
|
+
SonicComponent$2 = __decorateClass$M([
|
|
4961
|
+
n$3(tagName$K)
|
|
4962
|
+
], SonicComponent$2);
|
|
4963
|
+
var __defProp$L = Object.defineProperty;
|
|
4964
|
+
var __getOwnPropDesc$L = Object.getOwnPropertyDescriptor;
|
|
4965
|
+
var __decorateClass$L = (decorators, target, key, kind) => {
|
|
4966
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$L(target, key) : target;
|
|
4943
4967
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4944
4968
|
if (decorator = decorators[i2])
|
|
4945
4969
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4946
4970
|
if (kind && result)
|
|
4947
|
-
__defProp$
|
|
4971
|
+
__defProp$L(target, key, result);
|
|
4948
4972
|
return result;
|
|
4949
4973
|
};
|
|
4950
4974
|
const Form = (superClass) => {
|
|
@@ -4991,22 +5015,22 @@ const Form = (superClass) => {
|
|
|
4991
5015
|
this.requestUpdate();
|
|
4992
5016
|
}
|
|
4993
5017
|
}
|
|
4994
|
-
__decorateClass$
|
|
5018
|
+
__decorateClass$L([
|
|
4995
5019
|
e$5()
|
|
4996
5020
|
], FormInput2.prototype, "forceAutoFill", 2);
|
|
4997
|
-
__decorateClass$
|
|
5021
|
+
__decorateClass$L([
|
|
4998
5022
|
e$5({ type: String })
|
|
4999
5023
|
], FormInput2.prototype, "type", 1);
|
|
5000
|
-
__decorateClass$
|
|
5024
|
+
__decorateClass$L([
|
|
5001
5025
|
e$5()
|
|
5002
5026
|
], FormInput2.prototype, "description", 1);
|
|
5003
|
-
__decorateClass$
|
|
5027
|
+
__decorateClass$L([
|
|
5004
5028
|
e$5()
|
|
5005
5029
|
], FormInput2.prototype, "label", 1);
|
|
5006
|
-
__decorateClass$
|
|
5030
|
+
__decorateClass$L([
|
|
5007
5031
|
e$5({ type: Number })
|
|
5008
5032
|
], FormInput2.prototype, "tabindex", 2);
|
|
5009
|
-
__decorateClass$
|
|
5033
|
+
__decorateClass$L([
|
|
5010
5034
|
e$5({ type: String })
|
|
5011
5035
|
], FormInput2.prototype, "autocomplete", 2);
|
|
5012
5036
|
return FormInput2;
|
|
@@ -5027,91 +5051,286 @@ win$2["concorde-mixins"] = {
|
|
|
5027
5051
|
Subscriber,
|
|
5028
5052
|
TemplatesContainer
|
|
5029
5053
|
};
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5054
|
+
class SDUIDescriptorTransformer {
|
|
5055
|
+
constructor() {
|
|
5056
|
+
}
|
|
5057
|
+
async transform(sduiDescriptor, transformDescriptor) {
|
|
5058
|
+
this.sduiDescriptor = sduiDescriptor;
|
|
5059
|
+
if (this.sduiDescriptor.library) {
|
|
5060
|
+
for (let key in transformDescriptor.library) {
|
|
5061
|
+
this.sduiDescriptor.library[key] = transformDescriptor.library[key];
|
|
5062
|
+
}
|
|
5063
|
+
}
|
|
5064
|
+
for (let item of transformDescriptor.transforms) {
|
|
5065
|
+
this.transformAction(item);
|
|
5066
|
+
}
|
|
5067
|
+
}
|
|
5068
|
+
transformAction(transformAction) {
|
|
5069
|
+
let uis = this.getNodesMatchingPatterns(transformAction.patterns, this.sduiDescriptor);
|
|
5070
|
+
this[transformAction.action](transformAction, uis);
|
|
5071
|
+
}
|
|
5072
|
+
getNodesMatchingPatterns(patterns, node) {
|
|
5073
|
+
if (!patterns)
|
|
5074
|
+
return [];
|
|
5075
|
+
if (!node)
|
|
5076
|
+
return [];
|
|
5077
|
+
let nodes = node.nodes;
|
|
5078
|
+
if (!nodes)
|
|
5079
|
+
return [];
|
|
5080
|
+
let result = [];
|
|
5081
|
+
let index = 0;
|
|
5082
|
+
for (let pattern of patterns) {
|
|
5083
|
+
for (let child of nodes) {
|
|
5084
|
+
if (this.nodeMatchesPattern(pattern, child)) {
|
|
5085
|
+
result.push({ parent: node, child, index });
|
|
5086
|
+
}
|
|
5087
|
+
result = result.concat(this.getNodesMatchingPatterns([pattern], child));
|
|
5088
|
+
index++;
|
|
5089
|
+
}
|
|
5090
|
+
}
|
|
5091
|
+
return result;
|
|
5092
|
+
}
|
|
5093
|
+
stringMatchesExpression(stringToTest, regExpString) {
|
|
5094
|
+
return !regExpString || stringToTest && stringToTest.match(regExpString);
|
|
5095
|
+
}
|
|
5096
|
+
nodeMatchesPattern(pattern, node) {
|
|
5097
|
+
let patternDynamic = pattern;
|
|
5098
|
+
let nodeDynamic = node;
|
|
5099
|
+
let keys = ["libraryKey", "innerHTML", "prefix", "suffix", "markup"];
|
|
5100
|
+
for (let key of keys) {
|
|
5101
|
+
if (!this.stringMatchesExpression(nodeDynamic[key], patternDynamic[key])) {
|
|
5102
|
+
return false;
|
|
5103
|
+
}
|
|
5104
|
+
}
|
|
5105
|
+
let patternAttributes = pattern.attributes;
|
|
5106
|
+
let nodeAttributes = node.attributes;
|
|
5107
|
+
if (patternAttributes && !nodeAttributes)
|
|
5108
|
+
return false;
|
|
5109
|
+
if (patternAttributes) {
|
|
5110
|
+
for (let name in patternAttributes) {
|
|
5111
|
+
if (!this.stringMatchesExpression(nodeAttributes[name], patternAttributes[name])) {
|
|
5112
|
+
return false;
|
|
5113
|
+
}
|
|
5114
|
+
}
|
|
5115
|
+
}
|
|
5116
|
+
return true;
|
|
5117
|
+
}
|
|
5118
|
+
unWrap(transformAction, list) {
|
|
5119
|
+
var _a2, _b;
|
|
5120
|
+
for (let item of list) {
|
|
5121
|
+
(_a2 = item.parent.nodes) == null ? void 0 : _a2.splice(item.parent.nodes.indexOf(item.child), 1);
|
|
5122
|
+
if (item.child.nodes) {
|
|
5123
|
+
(_b = item.parent.nodes) == null ? void 0 : _b.splice(item.parent.nodes.indexOf(item.child), 0, ...item.child.nodes);
|
|
5124
|
+
}
|
|
5125
|
+
}
|
|
5126
|
+
}
|
|
5127
|
+
wrap(transformAction, list) {
|
|
5128
|
+
var _a2, _b, _c, _d, _e;
|
|
5129
|
+
let wrapper = __spreadValues({}, transformAction.ui);
|
|
5130
|
+
if (!wrapper.nodes)
|
|
5131
|
+
wrapper.nodes = [];
|
|
5132
|
+
let i2 = 0;
|
|
5133
|
+
for (let item of list) {
|
|
5134
|
+
(_a2 = wrapper.nodes) == null ? void 0 : _a2.push(item.child);
|
|
5135
|
+
if (i2 > 0) {
|
|
5136
|
+
(_b = item.parent.nodes) == null ? void 0 : _b.splice(item.parent.nodes.indexOf(item.child), 1);
|
|
5137
|
+
}
|
|
5138
|
+
i2++;
|
|
5139
|
+
}
|
|
5140
|
+
let idx = (_c = list[0].parent.nodes) == null ? void 0 : _c.indexOf(list[0].child);
|
|
5141
|
+
if (idx) {
|
|
5142
|
+
(_d = list[0].parent.nodes) == null ? void 0 : _d.splice(idx, 1);
|
|
5143
|
+
(_e = list[0].parent.nodes) == null ? void 0 : _e.splice(idx, 0, wrapper);
|
|
5144
|
+
}
|
|
5145
|
+
}
|
|
5146
|
+
move(transformAction, list) {
|
|
5147
|
+
var _a2, _b;
|
|
5148
|
+
for (let item of list) {
|
|
5149
|
+
(_a2 = item.parent.nodes) == null ? void 0 : _a2.splice(item.parent.nodes.indexOf(item.child), 1);
|
|
5150
|
+
let positionType = transformAction.after ? "after" : "before";
|
|
5151
|
+
let element = this.getNodesMatchingPatterns([transformAction[positionType]], this.sduiDescriptor)[0];
|
|
5152
|
+
if (element) {
|
|
5153
|
+
(_b = element.parent.nodes) == null ? void 0 : _b.splice(element.parent.nodes.indexOf(element.child) + (positionType == "after" ? 1 : 0), 0, item.child);
|
|
5154
|
+
}
|
|
5155
|
+
}
|
|
5156
|
+
}
|
|
5157
|
+
remap(transformAction, list) {
|
|
5158
|
+
var _a2, _b, _c;
|
|
5159
|
+
console.log(list);
|
|
5160
|
+
for (let item of list) {
|
|
5161
|
+
let newUI = __spreadValues({}, transformAction.ui);
|
|
5162
|
+
if (!newUI.attributes) {
|
|
5163
|
+
newUI.attributes = {};
|
|
5164
|
+
}
|
|
5165
|
+
let childAttributes = item.child.attributes;
|
|
5166
|
+
if (childAttributes) {
|
|
5167
|
+
for (let key in childAttributes) {
|
|
5168
|
+
if (!newUI.attributes.hasOwnProperty("key"))
|
|
5169
|
+
newUI.attributes[key] = childAttributes[key];
|
|
5170
|
+
}
|
|
5171
|
+
}
|
|
5172
|
+
let keys = ["libraryKey", "innerHTML", "prefix", "suffix", "markup"];
|
|
5173
|
+
let childDynamic = item.child;
|
|
5174
|
+
let newUIDynamic = newUI;
|
|
5175
|
+
for (let key of keys) {
|
|
5176
|
+
if (!newUI.hasOwnProperty(key) && childDynamic[key])
|
|
5177
|
+
newUIDynamic[key] = childDynamic[key];
|
|
5178
|
+
}
|
|
5179
|
+
if (!newUI.nodes) {
|
|
5180
|
+
newUI.nodes = [];
|
|
5181
|
+
}
|
|
5182
|
+
let childNodes = item.child.nodes;
|
|
5183
|
+
if (childNodes) {
|
|
5184
|
+
for (let node of childNodes) {
|
|
5185
|
+
newUI.nodes.push(node);
|
|
5186
|
+
}
|
|
5187
|
+
}
|
|
5188
|
+
let idx = ((_a2 = item.parent.nodes) == null ? void 0 : _a2.indexOf(item.child)) || -1;
|
|
5189
|
+
if (idx != -1) {
|
|
5190
|
+
(_b = item.parent.nodes) == null ? void 0 : _b.splice(idx, 1);
|
|
5191
|
+
(_c = item.parent.nodes) == null ? void 0 : _c.splice(idx, 0, newUI);
|
|
5192
|
+
}
|
|
5193
|
+
}
|
|
5194
|
+
}
|
|
5195
|
+
delete(transformAction, list) {
|
|
5196
|
+
var _a2;
|
|
5197
|
+
for (let item of list) {
|
|
5198
|
+
(_a2 = item.parent.nodes) == null ? void 0 : _a2.splice(item.parent.nodes.indexOf(item.child), 1);
|
|
5199
|
+
}
|
|
5200
|
+
}
|
|
5201
|
+
insert(transformAction, list) {
|
|
5202
|
+
var _a2;
|
|
5203
|
+
let positionType = transformAction.after ? "after" : transformAction.before ? "before" : "in";
|
|
5204
|
+
let node = this.getNodesMatchingPatterns([transformAction[positionType]], this.sduiDescriptor)[0];
|
|
5205
|
+
if (node) {
|
|
5206
|
+
if (positionType == "in") {
|
|
5207
|
+
if (!node.child.nodes)
|
|
5208
|
+
node.child.nodes = [];
|
|
5209
|
+
node.child.nodes.push(__spreadValues({}, transformAction.ui));
|
|
5210
|
+
} else {
|
|
5211
|
+
(_a2 = node.parent.nodes) == null ? void 0 : _a2.splice(node.parent.nodes.indexOf(node.child) + (positionType == "after" ? 1 : 0), 0, __spreadValues({}, transformAction.ui));
|
|
5212
|
+
}
|
|
5213
|
+
}
|
|
5214
|
+
}
|
|
5215
|
+
}
|
|
5216
|
+
var __defProp$K = Object.defineProperty;
|
|
5217
|
+
var __getOwnPropDesc$K = Object.getOwnPropertyDescriptor;
|
|
5218
|
+
var __decorateClass$K = (decorators, target, key, kind) => {
|
|
5219
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$K(target, key) : target;
|
|
5034
5220
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5035
5221
|
if (decorator = decorators[i2])
|
|
5036
5222
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5037
5223
|
if (kind && result)
|
|
5038
|
-
__defProp$
|
|
5224
|
+
__defProp$K(target, key, result);
|
|
5039
5225
|
return result;
|
|
5040
5226
|
};
|
|
5041
|
-
const tagName$
|
|
5042
|
-
let
|
|
5227
|
+
const tagName$J = "sonic-sdui";
|
|
5228
|
+
let SonicSDUI = class extends Fetcher(Subscriber(s$2)) {
|
|
5043
5229
|
connectedCallback() {
|
|
5044
5230
|
this.noShadowDom = "";
|
|
5231
|
+
this.displayContents = true;
|
|
5045
5232
|
this.isFetchEnabled = this.hasAttribute("fetch");
|
|
5046
5233
|
super.connectedCallback();
|
|
5047
5234
|
}
|
|
5048
5235
|
get props() {
|
|
5049
5236
|
return super.props;
|
|
5050
5237
|
}
|
|
5051
|
-
async loadJS(src) {
|
|
5052
|
-
const p2 = new Promise(async (resolve) => {
|
|
5053
|
-
let script = document.createElement("script");
|
|
5054
|
-
script.src = src;
|
|
5055
|
-
script.onload = () => resolve(true);
|
|
5056
|
-
script.onerror = () => resolve(true);
|
|
5057
|
-
document.head.appendChild(script);
|
|
5058
|
-
});
|
|
5059
|
-
return p2;
|
|
5060
|
-
}
|
|
5061
|
-
async loadCSS(src) {
|
|
5062
|
-
const p2 = new Promise(async (resolve) => {
|
|
5063
|
-
var cssnode = document.createElement("link");
|
|
5064
|
-
cssnode.type = "text/css";
|
|
5065
|
-
cssnode.rel = "stylesheet";
|
|
5066
|
-
cssnode.href = src;
|
|
5067
|
-
cssnode.onload = () => resolve(true);
|
|
5068
|
-
cssnode.onerror = () => resolve(true);
|
|
5069
|
-
document.head.appendChild(cssnode);
|
|
5070
|
-
});
|
|
5071
|
-
return p2;
|
|
5072
|
-
}
|
|
5073
5238
|
set props(value) {
|
|
5074
5239
|
super.props = value;
|
|
5075
5240
|
this.updateContents();
|
|
5076
5241
|
}
|
|
5077
5242
|
async updateContents() {
|
|
5243
|
+
this.removeChildren();
|
|
5244
|
+
if (!this.props)
|
|
5245
|
+
return;
|
|
5246
|
+
this.loadAssets();
|
|
5247
|
+
await this.transformSDUIDescriptor();
|
|
5248
|
+
this.parseRootNodes();
|
|
5249
|
+
}
|
|
5250
|
+
removeChildren() {
|
|
5078
5251
|
while ([...this.children].filter((elt) => elt.nodeName != "SLOT").length > 0) {
|
|
5079
5252
|
this.removeChild(this.children[0]);
|
|
5080
5253
|
}
|
|
5254
|
+
}
|
|
5255
|
+
loadAssets() {
|
|
5081
5256
|
if (!this.props)
|
|
5082
5257
|
return;
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
this.loadJS(src);
|
|
5087
|
-
}
|
|
5088
|
-
if (this.props.css) {
|
|
5089
|
-
for (const src of this.props.css)
|
|
5090
|
-
this.loadCSS(src);
|
|
5091
|
-
}
|
|
5092
|
-
} catch (e2) {
|
|
5258
|
+
if (this.props.js) {
|
|
5259
|
+
for (const src of this.props.js)
|
|
5260
|
+
HTML.loadJS(src);
|
|
5093
5261
|
}
|
|
5094
|
-
|
|
5095
|
-
|
|
5262
|
+
if (this.props.css) {
|
|
5263
|
+
for (const src of this.props.css)
|
|
5264
|
+
HTML.loadCSS(src);
|
|
5265
|
+
}
|
|
5266
|
+
}
|
|
5267
|
+
async transformSDUIDescriptor() {
|
|
5268
|
+
if (!this.hasAttribute("transformation"))
|
|
5269
|
+
return;
|
|
5270
|
+
let result = await fetch(this.getAttribute("transformation"));
|
|
5271
|
+
let json = await result.json();
|
|
5272
|
+
let transformer = new SDUIDescriptorTransformer();
|
|
5273
|
+
await transformer.transform(this.props, json);
|
|
5274
|
+
}
|
|
5275
|
+
parseRootNodes() {
|
|
5276
|
+
if (!this.props)
|
|
5096
5277
|
return;
|
|
5097
|
-
|
|
5098
|
-
|
|
5278
|
+
let nodes = this.props.nodes;
|
|
5279
|
+
if (!nodes)
|
|
5280
|
+
return;
|
|
5281
|
+
nodes.forEach((node) => this.appendChild(this.parseChild(node)));
|
|
5282
|
+
}
|
|
5283
|
+
parseChild(node) {
|
|
5284
|
+
let tagName2 = node.tagName || "div";
|
|
5285
|
+
let { element, contentElement } = this.handleLibrary(node, tagName2);
|
|
5286
|
+
this.handleAttributes(node, element);
|
|
5287
|
+
element = this.handleMarkup(node, element);
|
|
5288
|
+
if (!contentElement)
|
|
5289
|
+
contentElement = element;
|
|
5290
|
+
this.handleChildNodes(node, contentElement, element);
|
|
5291
|
+
this.handleInnerHTML(node, contentElement);
|
|
5292
|
+
if (node.prefix || node.suffix) {
|
|
5293
|
+
const container = this.handlePrefixSuffix(node, element);
|
|
5294
|
+
return container;
|
|
5099
5295
|
}
|
|
5296
|
+
return element;
|
|
5100
5297
|
}
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5298
|
+
handlePrefixSuffix(node, element) {
|
|
5299
|
+
const container = document.createElement("div");
|
|
5300
|
+
container.innerHTML = (node.prefix || "") + element.outerHTML + (node.suffix || "");
|
|
5301
|
+
container.style.display = "contents";
|
|
5302
|
+
return container;
|
|
5303
|
+
}
|
|
5304
|
+
handleChildNodes(node, contentElement, element) {
|
|
5305
|
+
if (node.nodes) {
|
|
5306
|
+
let children = node.nodes;
|
|
5307
|
+
for (let child of children) {
|
|
5308
|
+
let childElement = this.parseChild(child);
|
|
5309
|
+
let nodeToAppendOn = contentElement;
|
|
5310
|
+
if (child.parentElementSelector) {
|
|
5311
|
+
nodeToAppendOn = element.querySelector(child.parentElementSelector) || contentElement;
|
|
5312
|
+
}
|
|
5313
|
+
if (nodeToAppendOn.shadowRoot)
|
|
5314
|
+
nodeToAppendOn.shadowRoot.appendChild(childElement);
|
|
5315
|
+
else
|
|
5316
|
+
nodeToAppendOn.appendChild(childElement);
|
|
5317
|
+
}
|
|
5109
5318
|
}
|
|
5110
|
-
|
|
5111
|
-
|
|
5319
|
+
}
|
|
5320
|
+
handleLibrary(node, tagName2) {
|
|
5321
|
+
let element;
|
|
5322
|
+
let contentElement;
|
|
5323
|
+
if (node.libraryKey && this.props.library) {
|
|
5324
|
+
element = this.parseChild(this.props.library[node.libraryKey] || { tagName: "div" });
|
|
5325
|
+
let selector = (this.props.library[node.libraryKey] || {}).contentElementSelector;
|
|
5326
|
+
if (selector)
|
|
5327
|
+
contentElement = element.querySelector(selector);
|
|
5112
5328
|
} else
|
|
5113
|
-
element = document.createElement(
|
|
5114
|
-
|
|
5329
|
+
element = document.createElement(tagName2);
|
|
5330
|
+
return { element, contentElement };
|
|
5331
|
+
}
|
|
5332
|
+
handleAttributes(node, element) {
|
|
5333
|
+
let attributes = node.attributes;
|
|
5115
5334
|
for (let k2 in attributes) {
|
|
5116
5335
|
let attr = attributes[k2];
|
|
5117
5336
|
if (Objects.isObject(attr)) {
|
|
@@ -5119,52 +5338,55 @@ let SonicComponent = class extends Fetcher(Subscriber(s$2)) {
|
|
|
5119
5338
|
}
|
|
5120
5339
|
element.setAttribute(k2, attr);
|
|
5121
5340
|
}
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
if (element.shadowRoot)
|
|
5129
|
-
element.shadowRoot.appendChild(this.parseChild(child));
|
|
5130
|
-
else
|
|
5131
|
-
element.appendChild(this.parseChild(child));
|
|
5132
|
-
}
|
|
5133
|
-
}
|
|
5134
|
-
if (props.prefix || props.suffix) {
|
|
5135
|
-
const container = document.createElement("div");
|
|
5136
|
-
container.innerHTML = (props.prefix || "") + element.outerHTML + (props.suffix || "");
|
|
5137
|
-
container.style.display = "contents";
|
|
5138
|
-
return container;
|
|
5341
|
+
}
|
|
5342
|
+
handleMarkup(node, element) {
|
|
5343
|
+
if (node.markup) {
|
|
5344
|
+
element = document.createElement("div");
|
|
5345
|
+
element.style.display = "contents";
|
|
5346
|
+
element.innerHTML = node.markup;
|
|
5139
5347
|
}
|
|
5140
5348
|
return element;
|
|
5141
5349
|
}
|
|
5350
|
+
handleInnerHTML(node, contentElement) {
|
|
5351
|
+
var _a2;
|
|
5352
|
+
if (!node.innerHTML)
|
|
5353
|
+
return;
|
|
5354
|
+
if (node.innerHTML.indexOf("wording_") != -1) {
|
|
5355
|
+
let wordingProvider = this.getAncestorAttributeValue("wordingProvider");
|
|
5356
|
+
(_a2 = this.api) == null ? void 0 : _a2.post(wordingProvider, { labels: [node.innerHTML.substring(8)] }).then((value) => {
|
|
5357
|
+
if (contentElement)
|
|
5358
|
+
contentElement.innerHTML += value;
|
|
5359
|
+
});
|
|
5360
|
+
} else if (contentElement) {
|
|
5361
|
+
contentElement.innerHTML += node.innerHTML;
|
|
5362
|
+
}
|
|
5363
|
+
}
|
|
5142
5364
|
};
|
|
5143
|
-
__decorateClass$
|
|
5365
|
+
__decorateClass$K([
|
|
5144
5366
|
e$5()
|
|
5145
|
-
],
|
|
5146
|
-
|
|
5147
|
-
n$3(tagName$
|
|
5148
|
-
],
|
|
5367
|
+
], SonicSDUI.prototype, "props", 1);
|
|
5368
|
+
SonicSDUI = __decorateClass$K([
|
|
5369
|
+
n$3(tagName$J)
|
|
5370
|
+
], SonicSDUI);
|
|
5149
5371
|
const coreVariables = r$5`:host{--sc-font-family-base:"Inter var",-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--sc-font-weight-base:400;--sc-font-style-base:normal;--sc-headings-font-family:var(--sc-font-family-base);--sc-headings-font-style:var(--sc-font-style-base);--sc-headings-line-height:1.1;--sc-headings-font-weight:700;--sc-headings-text-transform:none;--sc-btn-font-weight:var(--sc-font-weight-base);--sc-btn-font-family:var(--sc-font-family-base);--sc-btn-font-style:var(--sc-font-style-base);--sc-rounded-sm:calc(var(--sc-rounded) * 0.5);--sc-rounded:0.375rem;--sc-rounded-md:calc(var(--sc-rounded) * 1.8);--sc-rounded-lg:calc(var(--sc-rounded) * 3.5);--sc-rounded-xl:calc(var(--sc-rounded) * 7);--sc-rounded-size-intensity:calc((1em - 1rem) * .4);--sc-btn-rounded-intensity:1.4;--sc-btn-font-weight:500;--sc-btn-rounded:calc((var(--sc-rounded) + var(--sc-rounded-size-intensity)) * var(--sc-btn-rounded-intensity) );--sc-placeholder-bg:rgba(17, 24, 39, 0.05);--sc-shadow-sm:0 1px 3px 0 rgb(0 0 0 / 0.1),0 1px 2px -1px rgb(0 0 0 / 0.1);--sc-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1),0 2px 4px -2px rgb(0 0 0 / 0.1);--sc-shadow-lg:0 10px 15px -3px rgb(0 0 0 / 0.1),0 4px 6px -4px rgb(0 0 0 / 0.1);--sc-shadow-xl:0 20px 25px -5px rgb(0 0 0 / 0.1),0 8px 10px -6px rgb(0 0 0 / 0.1);--sc-shadow-2xl:0 25px 50px -12px rgb(0 0 0 / 0.25);--sc-border-width:max(1px, 0.12rem);--sc-form-height:2.5em;--sc-form-border-width:var(--sc-border-width);--sc-input-bg:var(--sc-base-100);--sc-input-border-color:var(--sc-input-bg);--sc-input-rounded-intensity:1.4;--sc-input-rounded:calc((var(--sc-rounded) + var(--sc-rounded-size-intensity)) * var(--sc-input-rounded-intensity) );--sc-label-font-weight:500;--sc-contrast-content:#fff;--sc-contrast:#11151f;--sc-scrollbar-bg:var(--sc-base-400);--sc-body-bg:var(--sc-base)}`;
|
|
5150
5372
|
const light = r$5`:host{--sc-primary:var(--sc-base-800);--sc-info:#2563eb;--sc-danger:#f43f5e;--sc-warning:#f97316;--sc-success:#14b8a6;--sc-primary-content:var(--sc-base);--sc-info-content:var(--sc-base);--sc-danger-content:var(--sc-base);--sc-warning-content:var(--sc-base);--sc-success-content:var(--sc-base);--sc-base:#fff;--sc-base-50:#f8fafc;--sc-base-100:#f1f5f9;--sc-base-200:#e2e8f0;--sc-base-300:#cbd5e1;--sc-base-400:#94a3b8;--sc-base-500:#64748b;--sc-base-600:#475569;--sc-base-700:#334155;--sc-base-800:#1e293b;--sc-base-900:#0f172a;--sc-base-content:var(--sc-base-700);--sc-input-bg:var(--sc-base-100);--sc-input-color:var(--sc-base-content)}`;
|
|
5151
5373
|
const darkCss = r$5``;
|
|
5152
5374
|
const dark = r$5`:host([theme=dark]){${darkCss}}@media (prefers-color-scheme:dark){:host([theme=auto]){${darkCss}}}`;
|
|
5153
5375
|
var tailwindImport = r$5`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where([class~="lead"]):not(:where([class~="not-prose"] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~="not-prose"] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~="not-prose"] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(thead th strong):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(ol):not(:where([class~="not-prose"] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol[type="A"]):not(:where([class~="not-prose"] *)){list-style-type:upper-alpha}.prose :where(ol[type="a"]):not(:where([class~="not-prose"] *)){list-style-type:lower-alpha}.prose :where(ol[type="A" s]):not(:where([class~="not-prose"] *)){list-style-type:upper-alpha}.prose :where(ol[type="a" s]):not(:where([class~="not-prose"] *)){list-style-type:lower-alpha}.prose :where(ol[type="I"]):not(:where([class~="not-prose"] *)){list-style-type:upper-roman}.prose :where(ol[type="i"]):not(:where([class~="not-prose"] *)){list-style-type:lower-roman}.prose :where(ol[type="I" s]):not(:where([class~="not-prose"] *)){list-style-type:upper-roman}.prose :where(ol[type="i" s]):not(:where([class~="not-prose"] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~="not-prose"] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~="not-prose"] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol > li):not(:where([class~="not-prose"] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul > li):not(:where([class~="not-prose"] *))::marker{color:var(--tw-prose-bullets)}.prose :where(hr):not(:where([class~="not-prose"] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~="not-prose"] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"\\201c""\\201d""\\2018""\\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"] *)):after{content:close-quote}.prose :where(h1):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~="not-prose"] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~="not-prose"] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~="not-prose"] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~="not-prose"] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~="not-prose"] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure > *):not(:where([class~="not-prose"] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~="not-prose"] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose :where(code):not(:where([class~="not-prose"] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~="not-prose"] *)):before{content:"\`"}.prose :where(code):not(:where([class~="not-prose"] *)):after{content:"\`"}.prose :where(a code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(h1 code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(h2 code):not(:where([class~="not-prose"] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~="not-prose"] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(blockquote code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(thead th code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(pre):not(:where([class~="not-prose"] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~="not-prose"] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~="not-prose"] *)):before{content:none}.prose :where(pre code):not(:where([class~="not-prose"] *)):after{content:none}.prose :where(table):not(:where([class~="not-prose"] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~="not-prose"] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.prose :where(tbody tr):not(:where([class~="not-prose"] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~="not-prose"] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~="not-prose"] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~="not-prose"] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~="not-prose"] *)){vertical-align:top}.prose{--tw-prose-body: var(--sc-base-content);--tw-prose-headings: var(--sc-base-900);--tw-prose-lead: var(--sc-base-600);--tw-prose-links: var(--sc-base-900);--tw-prose-bold: var(--sc-base-900);--tw-prose-counters: var(--sc-base-500);--tw-prose-bullets: var(--sc-base-300);--tw-prose-hr: var(--sc-base-200);--tw-prose-quotes: var(--sc-base-900);--tw-prose-quote-borders: var(--sc-base-200);--tw-prose-captions: var(--sc-base-500);--tw-prose-code: var(--sc-base-900);--tw-prose-pre-code: var(--sc-base-200);--tw-prose-pre-bg: var(--sc-base-800);--tw-prose-th-borders: var(--sc-base-300);--tw-prose-td-borders: var(--sc-base-200);--tw-prose-invert-body: var(--sc-base-300);--tw-prose-invert-headings: var(--sc-base);--tw-prose-invert-lead: var(--sc-base-400);--tw-prose-invert-links: var(--sc-base);--tw-prose-invert-bold: var(--sc-base);--tw-prose-invert-counters: var(--sc-base-400);--tw-prose-invert-bullets: var(--sc-base-600);--tw-prose-invert-hr: var(--sc-base-700);--tw-prose-invert-quotes: var(--sc-base-100);--tw-prose-invert-quote-borders: var(--sc-base-700);--tw-prose-invert-captions: var(--sc-base-400);--tw-prose-invert-code: var(--sc-base);--tw-prose-invert-pre-code: var(--sc-base-300);--tw-prose-invert-pre-bg: var(--sc-base-900);--tw-prose-invert-th-borders: var(--sc-base-600);--tw-prose-invert-td-borders: var(--sc-base-700);font-size:1rem;line-height:1.75}.prose :where(p):not(:where([class~="not-prose"] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(video):not(:where([class~="not-prose"] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure):not(:where([class~="not-prose"] *)){margin-top:2em;margin-bottom:2em}.prose :where(li):not(:where([class~="not-prose"] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol > li):not(:where([class~="not-prose"] *)){padding-left:.375em}.prose :where(ul > li):not(:where([class~="not-prose"] *)){padding-left:.375em}.prose :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.prose :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.prose :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.prose :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~="not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(hr + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(h2 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(h3 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(h4 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.prose :where(tbody td,tfoot td):not(:where([class~="not-prose"] *)){padding:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.prose :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~="not-prose"] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~="lead"]):not(:where([class~="not-prose"] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~="not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.1111111em}.prose-sm :where(h1):not(:where([class~="not-prose"] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~="not-prose"] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~="not-prose"] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~="not-prose"] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~="not-prose"] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(video):not(:where([class~="not-prose"] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure):not(:where([class~="not-prose"] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure > *):not(:where([class~="not-prose"] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~="not-prose"] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(code):not(:where([class~="not-prose"] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~="not-prose"] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~="not-prose"] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~="not-prose"] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding:.6666667em 1em}.prose-sm :where(ol):not(:where([class~="not-prose"] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-left:1.5714286em}.prose-sm :where(ul):not(:where([class~="not-prose"] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-left:1.5714286em}.prose-sm :where(li):not(:where([class~="not-prose"] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol > li):not(:where([class~="not-prose"] *)){padding-left:.4285714em}.prose-sm :where(ul > li):not(:where([class~="not-prose"] *)){padding-left:.4285714em}.prose-sm :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.1428571em}.prose-sm :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.1428571em}.prose-sm :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~="not-prose"] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(hr):not(:where([class~="not-prose"] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(h2 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(h3 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(h4 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(table):not(:where([class~="not-prose"] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~="not-prose"] *)){padding-right:1em;padding-bottom:.6666667em;padding-left:1em}.prose-sm :where(thead th:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.prose-sm :where(thead th:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~="not-prose"] *)){padding:.6666667em 1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.prose-sm :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-base :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.prose-base :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.prose-base :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.prose-base :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.prose-base :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.prose-base :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-base :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-lg :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.8888889em;margin-bottom:.8888889em}.prose-lg :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.prose-lg :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.prose-lg :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.prose-lg :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.prose-lg :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-lg :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-xl :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.8em;margin-bottom:.8em}.prose-xl :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.2em}.prose-xl :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.2em}.prose-xl :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.2em}.prose-xl :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.2em}.prose-xl :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-xl :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-2xl :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.8333333em;margin-bottom:.8333333em}.prose-2xl :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.prose-2xl :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.prose-2xl :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.prose-2xl :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.prose-2xl :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-2xl :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-tight :where(p,ul,ol,pre):not(:where([class~="not-prose"] *)){line-height:1.25;margin:0 0 .5em}.prose-tight :where(li):not(:where([class~="not-prose"] *)){margin-bottom:.5em}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:-webkit-sticky;position:sticky}.top-0{top:0px}.left-0{left:0px}.right-1{right:.25rem}.bottom-1{bottom:.25rem}.bottom-4{bottom:1rem}.left-4{left:1rem}.right-4{right:1rem}.top-\\[-1px\\]{top:-1px}.right-5{right:1.25rem}.top-1\\/2{top:50%}.bottom-0{bottom:0px}.-right-1{right:-.25rem}.-bottom-1{bottom:-.25rem}.z-10{z-index:10}.z-20{z-index:20}.z-0{z-index:0}.col-span-full{grid-column:1 / -1}.col-span-3{grid-column:span 3 / span 3}.col-span-2{grid-column:span 2 / span 2}.mx-auto{margin-left:auto;margin-right:auto}.my-8{margin-top:2rem;margin-bottom:2rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-auto{margin-top:auto;margin-bottom:auto}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-\\[-3vw\\]{margin-left:-3vw;margin-right:-3vw}.my-4{margin-top:1rem;margin-bottom:1rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.mb-4{margin-bottom:1rem}.mt-5{margin-top:1.25rem}.mb-1{margin-bottom:.25rem}.mb-6{margin-bottom:1.5rem}.mr-4{margin-right:1rem}.mb-2{margin-bottom:.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.mb-5{margin-bottom:1.25rem}.mt-8{margin-top:2rem}.mr-3{margin-right:.75rem}.mt-\\[\\.15em\\]{margin-top:.15em}.mb-10{margin-bottom:2.5rem}.mb-7{margin-bottom:1.75rem}.mb-12{margin-bottom:3rem}.mb-3{margin-bottom:.75rem}.mt-2{margin-top:.5rem}.ml-\\[\\.10em\\]{margin-left:.1em}.ml-3{margin-left:.75rem}.mt-4{margin-top:1rem}.mt-1{margin-top:.25rem}.mr-2{margin-right:.5rem}.mt-3{margin-top:.75rem}.ml-auto{margin-left:auto}.mb-\\[2em\\]{margin-bottom:2em}.mr-1{margin-right:.25rem}.mb-20{margin-bottom:5rem}.ml-2{margin-left:.5rem}.mr-\\[\\.25em\\]{margin-right:.25em}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-12{height:3rem}.h-20{height:5rem}.h-2{height:.5rem}.h-5{height:1.25rem}.h-1\\/2{height:50%}.h-96{height:24rem}.max-h-\\[10rem\\]{max-height:10rem}.w-full{width:100%}.w-72{width:18rem}.w-12{width:3rem}.w-20{width:5rem}.w-2{width:.5rem}.w-5{width:1.25rem}.w-10\\/12{width:83.333333%}.w-24{width:6rem}.w-\\[1\\.2em\\]{width:1.2em}.min-w-full{min-width:100%}.min-w-max{min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.min-w-\\[11rem\\]{min-width:11rem}.min-w-\\[5rem\\]{min-width:5rem}.max-w-lg{max-width:32rem}.max-w-xs{max-width:20rem}.max-w-\\[80ch\\]{max-width:80ch}.max-w-\\[32rem\\]{max-width:32rem}.max-w-\\[20rem\\]{max-width:20rem}.max-w-none{max-width:none}.flex-shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\\/2{--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\\/2{--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.grid-cols-\\[minmax\\(0\\,1fr\\)\\,minmax\\(0\\,4fr\\)\\]{grid-template-columns:minmax(0,1fr) minmax(0,4fr)}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-\\[1fr\\,_2fr\\]{grid-template-columns:1fr 2fr}.grid-cols-\\[minmax\\(0\\,_3fr\\)_minmax\\(0\\,_2fr\\)\\]{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\\[minmax\\(6rem\\,_min\\(20\\%\\,_10rem\\)\\)\\,_1fr\\]{grid-template-columns:minmax(6rem,min(20%,10rem)) 1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-around{justify-content:space-around}.gap-5{gap:1.25rem}.gap-8{gap:2rem}.gap-3{gap:.75rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-10{gap:2.5rem}.gap-1{gap:.25rem}.gap-6{gap:1.5rem}.gap-\\[1\\.5em\\]{gap:1.5em}.gap-\\[\\.2rem_\\.7rem\\]{gap:.2rem .7rem}.gap-\\[\\.25em\\]{gap:.25em}.gap-x-10{-moz-column-gap:2.5rem;column-gap:2.5rem}.gap-x-\\[\\.75em\\]{-moz-column-gap:.75em;column-gap:.75em}.self-start{align-self:flex-start}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-lg{border-radius:var(--sc-rounded-lg)}.rounded-md{border-radius:var(--sc-rounded-md)}.rounded{border-radius:var(--sc-rounded)}.rounded-full{border-radius:9999px}.rounded-t-md{border-top-left-radius:var(--sc-rounded-md);border-top-right-radius:var(--sc-rounded-md)}.border{border-width:var(--sc-border-width)}.border-b-\\[1px\\]{border-bottom-width:1px}.border-solid{border-style:solid}.border-dotted{border-style:dotted}.border-success{border-color:var(--sc-success)}.border-t-neutral-200{border-top-color:var(--sc-base-200)}.border-b-neutral-100{border-bottom-color:var(--sc-base-100)}.border-b-neutral-300{border-bottom-color:var(--sc-base-300)}.bg-danger{background-color:var(--sc-danger)}.bg-neutral-0{background-color:var(--sc-base)}.bg-neutral-200{background-color:var(--sc-base-200)}.bg-contrast{background-color:var(--sc-contrast)}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-\\[rgba\\(0\\,0\\,10\\,\\.2\\)\\]{--tw-gradient-from: rgba(0,0,10,.2);--tw-gradient-to: rgb(0 0 10 / 0);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.object-contain{-o-object-fit:contain;object-fit:contain}.p-7{padding:1.75rem}.p-8{padding:2rem}.p-4{padding:1rem}.p-3{padding:.75rem}.p-5{padding:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-7{padding-top:1.75rem;padding-bottom:1.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-\\[3vw\\]{padding-left:3vw;padding-right:3vw}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.pt-20{padding-top:5rem}.pr-3{padding-right:.75rem}.pt-\\[\\.06em\\]{padding-top:.06em}.text-center{text-align:center}.font-headings{font-family:var(--sc-headings-font-family)}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-xs{font-size:.75rem;line-height:1rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.font-black{font-weight:900}.font-medium{font-weight:500}.font-extrabold{font-weight:800}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.leading-none{line-height:1}.leading-tight{line-height:1.25}.text-neutral-0{color:var(--sc-base)}.text-neutral-300{color:var(--sc-base-300)}.text-primary{color:var(--sc-primary)}.text-neutral-500{color:var(--sc-base-500)}.text-contrast-content{color:var(--sc-contrast-content)}.text-neutral-400{color:var(--sc-base-400)}.text-info{color:var(--sc-info)}.underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.no-underline{-webkit-text-decoration-line:none;text-decoration-line:none}.opacity-60{opacity:.6}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0_0_2rem_rgba\\(0\\,0\\,0\\,0\\.2\\)\\]{--tw-shadow: 0 0 2rem rgba(0,0,0,.2);--tw-shadow-colored: 0 0 2rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-danger{--tw-shadow-color: var(--sc-danger);--tw-shadow: var(--tw-shadow-colored)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.\\[display\\:none\\]{display:none}.hover\\:text-neutral-400:hover{color:var(--sc-base-400)}.group:hover .group-hover\\:underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.prose-img\\:rounded-lg :is(:where(img):not(:where([class~="not-prose"] *))){border-radius:var(--sc-rounded-lg)}@media (min-width: 640px){.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width: 768px){.md\\:block{display:block}.md\\:hidden{display:none}.md\\:grid-cols-\\[minmax\\(0\\,2fr\\)\\,minmax\\(0\\,5fr\\)\\]{grid-template-columns:minmax(0,2fr) minmax(0,5fr)}.md\\:py-4{padding-top:1rem;padding-bottom:1rem}.md\\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 1024px){.lg\\:prose-lg{font-size:1.125rem;line-height:1.7777778}.lg\\:prose-lg :where(p):not(:where([class~="not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em}.lg\\:prose-lg :where([class~="lead"]):not(:where([class~="not-prose"] *)){font-size:1.2222222em;line-height:1.4545455;margin-top:1.0909091em;margin-bottom:1.0909091em}.lg\\:prose-lg :where(blockquote):not(:where([class~="not-prose"] *)){margin-top:1.6666667em;margin-bottom:1.6666667em;padding-left:1em}.lg\\:prose-lg :where(h1):not(:where([class~="not-prose"] *)){font-size:2.6666667em;margin-top:0;margin-bottom:.8333333em;line-height:1}.lg\\:prose-lg :where(h2):not(:where([class~="not-prose"] *)){font-size:1.6666667em;margin-top:1.8666667em;margin-bottom:1.0666667em;line-height:1.3333333}.lg\\:prose-lg :where(h3):not(:where([class~="not-prose"] *)){font-size:1.3333333em;margin-top:1.6666667em;margin-bottom:.6666667em;line-height:1.5}.lg\\:prose-lg :where(h4):not(:where([class~="not-prose"] *)){margin-top:1.7777778em;margin-bottom:.4444444em;line-height:1.5555556}.lg\\:prose-lg :where(img):not(:where([class~="not-prose"] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.lg\\:prose-lg :where(video):not(:where([class~="not-prose"] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.lg\\:prose-lg :where(figure):not(:where([class~="not-prose"] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.lg\\:prose-lg :where(figure > *):not(:where([class~="not-prose"] *)){margin-top:0;margin-bottom:0}.lg\\:prose-lg :where(figcaption):not(:where([class~="not-prose"] *)){font-size:.8888889em;line-height:1.5;margin-top:1em}.lg\\:prose-lg :where(code):not(:where([class~="not-prose"] *)){font-size:.8888889em}.lg\\:prose-lg :where(h2 code):not(:where([class~="not-prose"] *)){font-size:.8666667em}.lg\\:prose-lg :where(h3 code):not(:where([class~="not-prose"] *)){font-size:.875em}.lg\\:prose-lg :where(pre):not(:where([class~="not-prose"] *)){font-size:.8888889em;line-height:1.75;margin-top:2em;margin-bottom:2em;border-radius:.375rem;padding:1em 1.5em}.lg\\:prose-lg :where(ol):not(:where([class~="not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.5555556em}.lg\\:prose-lg :where(ul):not(:where([class~="not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.5555556em}.lg\\:prose-lg :where(li):not(:where([class~="not-prose"] *)){margin-top:.6666667em;margin-bottom:.6666667em}.lg\\:prose-lg :where(ol > li):not(:where([class~="not-prose"] *)){padding-left:.4444444em}.lg\\:prose-lg :where(ul > li):not(:where([class~="not-prose"] *)){padding-left:.4444444em}.lg\\:prose-lg :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.8888889em;margin-bottom:.8888889em}.lg\\:prose-lg :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.lg\\:prose-lg :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.lg\\:prose-lg :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.lg\\:prose-lg :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.lg\\:prose-lg :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~="not-prose"] *)){margin-top:.8888889em;margin-bottom:.8888889em}.lg\\:prose-lg :where(hr):not(:where([class~="not-prose"] *)){margin-top:3.1111111em;margin-bottom:3.1111111em}.lg\\:prose-lg :where(hr + *):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(h2 + *):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(h3 + *):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(h4 + *):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(table):not(:where([class~="not-prose"] *)){font-size:.8888889em;line-height:1.5}.lg\\:prose-lg :where(thead th):not(:where([class~="not-prose"] *)){padding-right:.75em;padding-bottom:.75em;padding-left:.75em}.lg\\:prose-lg :where(thead th:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.lg\\:prose-lg :where(thead th:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.lg\\:prose-lg :where(tbody td,tfoot td):not(:where([class~="not-prose"] *)){padding:.75em}.lg\\:prose-lg :where(tbody td:first-child,tfoot td:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.lg\\:prose-lg :where(tbody td:last-child,tfoot td:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.lg\\:prose-lg :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.lg\\:block{display:block}.lg\\:flex{display:flex}.lg\\:hidden{display:none}.lg\\:w-1\\/2{width:50%}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\\:text-base{font-size:1rem;line-height:1.5rem}.lg\\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 1280px){.xl\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.xl\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.xl\\:text-lg{font-size:1.125rem;line-height:1.75rem}.xl\\:text-2xl{font-size:1.5rem;line-height:2rem}}
|
|
5154
5376
|
`;
|
|
5155
|
-
var __defProp$
|
|
5156
|
-
var __getOwnPropDesc$
|
|
5157
|
-
var __decorateClass$
|
|
5158
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5377
|
+
var __defProp$J = Object.defineProperty;
|
|
5378
|
+
var __getOwnPropDesc$J = Object.getOwnPropertyDescriptor;
|
|
5379
|
+
var __decorateClass$J = (decorators, target, key, kind) => {
|
|
5380
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$J(target, key) : target;
|
|
5159
5381
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5160
5382
|
if (decorator = decorators[i2])
|
|
5161
5383
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5162
5384
|
if (kind && result)
|
|
5163
|
-
__defProp$
|
|
5385
|
+
__defProp$J(target, key, result);
|
|
5164
5386
|
return result;
|
|
5165
5387
|
};
|
|
5166
5388
|
r$5`${o$9(tailwindImport)}`;
|
|
5167
|
-
const tagName$
|
|
5389
|
+
const tagName$I = "sonic-theme";
|
|
5168
5390
|
let Theme = class extends s$2 {
|
|
5169
5391
|
constructor() {
|
|
5170
5392
|
super(...arguments);
|
|
@@ -5249,36 +5471,36 @@ Theme.styles = [
|
|
|
5249
5471
|
coreVariables,
|
|
5250
5472
|
r$5`:host([background]){display:block!important;background:var(--sc-body-bg)!important;min-height:100vh}:host([contrastDarkMode]){transition:background-color 2.5s ease}:host([color]){color:var(--sc-base-content)}:host([font]){font-family:var(--sc-font-family-base);font-weight:var(--sc-font-weight-base);font-style:var(--sc-font-style-base)}`
|
|
5251
5473
|
];
|
|
5252
|
-
__decorateClass$
|
|
5474
|
+
__decorateClass$J([
|
|
5253
5475
|
e$5({ type: String, reflect: true })
|
|
5254
5476
|
], Theme.prototype, "theme", 2);
|
|
5255
|
-
__decorateClass$
|
|
5477
|
+
__decorateClass$J([
|
|
5256
5478
|
e$5({ type: Boolean, reflect: true })
|
|
5257
5479
|
], Theme.prototype, "background", 2);
|
|
5258
|
-
__decorateClass$
|
|
5480
|
+
__decorateClass$J([
|
|
5259
5481
|
e$5({ type: Boolean, reflect: true })
|
|
5260
5482
|
], Theme.prototype, "color", 2);
|
|
5261
|
-
__decorateClass$
|
|
5483
|
+
__decorateClass$J([
|
|
5262
5484
|
e$5({ type: Boolean, reflect: true })
|
|
5263
5485
|
], Theme.prototype, "font", 2);
|
|
5264
|
-
__decorateClass$
|
|
5486
|
+
__decorateClass$J([
|
|
5265
5487
|
e$5({ type: Boolean, reflect: true })
|
|
5266
5488
|
], Theme.prototype, "contrastDarkMode", 2);
|
|
5267
|
-
Theme = __decorateClass$
|
|
5268
|
-
n$3(tagName$
|
|
5489
|
+
Theme = __decorateClass$J([
|
|
5490
|
+
n$3(tagName$I)
|
|
5269
5491
|
], Theme);
|
|
5270
|
-
var __defProp$
|
|
5271
|
-
var __getOwnPropDesc$
|
|
5272
|
-
var __decorateClass$
|
|
5273
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5492
|
+
var __defProp$I = Object.defineProperty;
|
|
5493
|
+
var __getOwnPropDesc$I = Object.getOwnPropertyDescriptor;
|
|
5494
|
+
var __decorateClass$I = (decorators, target, key, kind) => {
|
|
5495
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$I(target, key) : target;
|
|
5274
5496
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5275
5497
|
if (decorator = decorators[i2])
|
|
5276
5498
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5277
5499
|
if (kind && result)
|
|
5278
|
-
__defProp$
|
|
5500
|
+
__defProp$I(target, key, result);
|
|
5279
5501
|
return result;
|
|
5280
5502
|
};
|
|
5281
|
-
const tagName$
|
|
5503
|
+
const tagName$H = "sonic-badge";
|
|
5282
5504
|
let Badge = class extends s$2 {
|
|
5283
5505
|
constructor() {
|
|
5284
5506
|
super(...arguments);
|
|
@@ -5292,20 +5514,20 @@ let Badge = class extends s$2 {
|
|
|
5292
5514
|
Badge.styles = [
|
|
5293
5515
|
r$5`:host{--sc-badge-gap:0.3em;--sc-badge-py:0.16em;--sc-badge-px:0.66em;--sc-badge-fs:1rem;--sc-badge-color:var(--sc-base-content, #1f2937);--sc-badge-bg:var(--sc-base-200, #e5e7eb);--sc-badge-border-with:var(--sc-form-border-width, 0.1rem);--sc-badge-border-color:transparent;--sc-badge-border:var(--sc-badge-border-with) solid var(--sc-badge-border-color);--sc-badge-rounded:calc(var(--sc-rounded) * 1000);--sc-badge-line-height:1.15;--sc-badge-fw:var(--sc-font-weight-base);display:inline-flex;align-items:center;box-sizing:border-box;line-height:var(--sc-badge-line-height);border-radius:var(--sc-badge-rounded);background:var(--sc-badge-bg);color:var(--sc-badge-color);font-family:var(--sc-badge-ff,var(--sc-font-family-base,inherit));font-weight:var(--sc-badge-fw);padding-top:var(--sc-badge-py);padding-bottom:var(--sc-badge-py);padding-left:var(--sc-badge-px);padding-right:var(--sc-badge-px);min-height:calc(var(--sc-badge-px) * 2);border:var(--sc-badge-border)}:host([type=primary]){--sc-badge-color:var(--sc-primary-content);--sc-badge-bg:var(--sc-primary)}:host([type=warning]){--sc-badge-color:var(--sc-warning-content);--sc-badge-bg:var(--sc-warning)}:host([type=danger]){--sc-badge-color:var(--sc-danger-content);--sc-badge-bg:var(--sc-danger)}:host([type=info]){--sc-badge-color:var(--sc-info-content);--sc-badge-bg:var(--sc-info)}:host([type=success]){--sc-badge-color:var(--sc-success-content);--sc-badge-bg:var(--sc-success)}:host([type=neutral]){--sc-badge-color:var(--sc-base);--sc-badge-bg:var(--sc-base-content)}:host{font-size:var(--sc-badge-fs);gap:var(--sc-badge-gap)}:host([size="2xs"]){--sc-badge-fs:0.58rem;--sc-badge-gap:0.3em}:host([size=xs]){--sc-badge-fs:0.68rem;--sc-badge-gap:0.35em}:host([size=sm]){--sc-badge-fs:0.85rem;--sc-badge-gap:0.35em}:host([size=lg]){--sc-badge-line-height:1.2;--sc-badge-fs:1.25rem;--sc-badge-gap:0.5em}:host([size=xl]){--sc-badge-line-height:1.2;--sc-badge-fs:1.5rem;--sc-badge-gap:0.5em}:host([variant=outline][type]){border-width:var(--sc-badge-border-with)!important;border-color:var(--sc-badge-bg);color:var(--sc-badge-bg);background:0 0}:host([variant=outline][type=default]){border-color:var(--sc-base-400);color:var(--sc-base-500);background:0 0}:host([variant=ghost][type]){color:var(--sc-badge-bg);background:0 0;padding:0}:host([variant=ghost][type=default]){color:var(--sc-badge-color);background:0 0}`
|
|
5294
5516
|
];
|
|
5295
|
-
__decorateClass$
|
|
5517
|
+
__decorateClass$I([
|
|
5296
5518
|
e$5({ type: String, reflect: true })
|
|
5297
5519
|
], Badge.prototype, "type", 2);
|
|
5298
|
-
__decorateClass$
|
|
5520
|
+
__decorateClass$I([
|
|
5299
5521
|
e$5({ type: String, reflect: true })
|
|
5300
5522
|
], Badge.prototype, "variant", 2);
|
|
5301
|
-
__decorateClass$
|
|
5523
|
+
__decorateClass$I([
|
|
5302
5524
|
e$5({ type: String, reflect: true })
|
|
5303
5525
|
], Badge.prototype, "size", 2);
|
|
5304
|
-
Badge = __decorateClass$
|
|
5305
|
-
n$3(tagName$
|
|
5526
|
+
Badge = __decorateClass$I([
|
|
5527
|
+
n$3(tagName$H)
|
|
5306
5528
|
], Badge);
|
|
5307
5529
|
try {
|
|
5308
|
-
customElements.define(tagName$
|
|
5530
|
+
customElements.define(tagName$H, Badge);
|
|
5309
5531
|
} catch (e2) {
|
|
5310
5532
|
}
|
|
5311
5533
|
class Electron {
|
|
@@ -5319,18 +5541,18 @@ class Electron {
|
|
|
5319
5541
|
}
|
|
5320
5542
|
}
|
|
5321
5543
|
}
|
|
5322
|
-
var __defProp$
|
|
5323
|
-
var __getOwnPropDesc$
|
|
5324
|
-
var __decorateClass$
|
|
5325
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5544
|
+
var __defProp$H = Object.defineProperty;
|
|
5545
|
+
var __getOwnPropDesc$H = Object.getOwnPropertyDescriptor;
|
|
5546
|
+
var __decorateClass$H = (decorators, target, key, kind) => {
|
|
5547
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$H(target, key) : target;
|
|
5326
5548
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5327
5549
|
if (decorator = decorators[i2])
|
|
5328
5550
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5329
5551
|
if (kind && result)
|
|
5330
|
-
__defProp$
|
|
5552
|
+
__defProp$H(target, key, result);
|
|
5331
5553
|
return result;
|
|
5332
5554
|
};
|
|
5333
|
-
const tagName$
|
|
5555
|
+
const tagName$G = "sonic-link";
|
|
5334
5556
|
let Link = class extends s$2 {
|
|
5335
5557
|
constructor() {
|
|
5336
5558
|
super(...arguments);
|
|
@@ -5379,37 +5601,37 @@ let Link = class extends s$2 {
|
|
|
5379
5601
|
Link.styles = [
|
|
5380
5602
|
r$5`a{color:inherit;text-decoration:none;display:contents}`
|
|
5381
5603
|
];
|
|
5382
|
-
__decorateClass$
|
|
5604
|
+
__decorateClass$H([
|
|
5383
5605
|
e$5({ type: String })
|
|
5384
5606
|
], Link.prototype, "href", 2);
|
|
5385
|
-
__decorateClass$
|
|
5607
|
+
__decorateClass$H([
|
|
5386
5608
|
e$5({ type: String })
|
|
5387
5609
|
], Link.prototype, "autoActive", 2);
|
|
5388
|
-
__decorateClass$
|
|
5610
|
+
__decorateClass$H([
|
|
5389
5611
|
e$5({ type: String })
|
|
5390
5612
|
], Link.prototype, "target", 1);
|
|
5391
|
-
__decorateClass$
|
|
5613
|
+
__decorateClass$H([
|
|
5392
5614
|
e$5({ type: Boolean })
|
|
5393
5615
|
], Link.prototype, "pushState", 2);
|
|
5394
|
-
Link = __decorateClass$
|
|
5395
|
-
n$3(tagName$
|
|
5616
|
+
Link = __decorateClass$H([
|
|
5617
|
+
n$3(tagName$G)
|
|
5396
5618
|
], Link);
|
|
5397
5619
|
try {
|
|
5398
|
-
customElements.define(tagName$
|
|
5620
|
+
customElements.define(tagName$G, Link);
|
|
5399
5621
|
} catch (e2) {
|
|
5400
5622
|
}
|
|
5401
|
-
var __defProp$
|
|
5402
|
-
var __getOwnPropDesc$
|
|
5403
|
-
var __decorateClass$
|
|
5404
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5623
|
+
var __defProp$G = Object.defineProperty;
|
|
5624
|
+
var __getOwnPropDesc$G = Object.getOwnPropertyDescriptor;
|
|
5625
|
+
var __decorateClass$G = (decorators, target, key, kind) => {
|
|
5626
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$G(target, key) : target;
|
|
5405
5627
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5406
5628
|
if (decorator = decorators[i2])
|
|
5407
5629
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5408
5630
|
if (kind && result)
|
|
5409
|
-
__defProp$
|
|
5631
|
+
__defProp$G(target, key, result);
|
|
5410
5632
|
return result;
|
|
5411
5633
|
};
|
|
5412
|
-
const tagName$
|
|
5634
|
+
const tagName$F = "sonic-progress";
|
|
5413
5635
|
let Progress = class extends s$2 {
|
|
5414
5636
|
constructor() {
|
|
5415
5637
|
super(...arguments);
|
|
@@ -5426,26 +5648,26 @@ Progress.styles = [
|
|
|
5426
5648
|
fontSize,
|
|
5427
5649
|
r$5`:host{--sc-progress-bg:var(--sc-input-bg, var(--sc-base-100, #f5f5f5));--sc-progress-color:var(--sc-base-content, #1f2937);--sc-progress-height:.6em;--sc-progress-fs:var(--sc-fs, 1rem);--sc-progress-fw:500;--sc-progress-rounded:var(--sc-rounded-lg);display:block;line-height:1.2;font-weight:var(--sc-progress-fw);font-size:var(--sc-progress-fs);color:var(--sc-progress-color)}progress{position:relative;width:100%;-webkit-appearance:none;appearance:none;overflow:hidden;border:none;height:var(--sc-progress-height);border-radius:var(--sc-progress-rounded);background-color:var(--sc-progress-bg);color:var(--sc-progress-color)}progress::-moz-progress-bar{background-color:var(--sc-progress-color);border-radius:var(--sc-progress-rounded)}progress:not([value])::-moz-progress-bar{background-color:var(--sc-progress-bg)}progress::-webkit-progress-bar{background-color:var(--sc-progress-bg)}progress::-webkit-progress-value{background-color:var(--sc-progress-color);border-radius:var(--sc-progress-rounded)}progress:indeterminate:after{background-color:var(--sc-progress-color);content:"";position:absolute;top:0;bottom:0;left:-40%;width:33.333333%;border-radius:var(--sc-progress-rounded);animation:progress-loading 3s infinite ease-in-out}@keyframes progress-loading{50%{left:107%}}:host([type=warning]){--sc-progress-color:var(--sc-warning)}:host([type=danger]){--sc-progress-color:var(--sc-danger)}:host([type=info]){--sc-progress-color:var(--sc-info)}:host([type=success]){--sc-progress-color:var(--sc-success)}:host([invert]){--sc-progress-bg:var(--sc-base-700)}:host([type=default][invert]){--sc-progress-color:var(--sc-base)}slot[name=remaining]{font-weight:var(--sc-font-weight-base);color:var(--sc-base-400);font-size:.85em;margin-top:.5em}.slot-container{display:flex;justify-content:space-between;gap:.5em;margin-top:.15em}`
|
|
5428
5650
|
];
|
|
5429
|
-
__decorateClass$
|
|
5651
|
+
__decorateClass$G([
|
|
5430
5652
|
e$5({ type: Number })
|
|
5431
5653
|
], Progress.prototype, "value", 2);
|
|
5432
|
-
__decorateClass$
|
|
5654
|
+
__decorateClass$G([
|
|
5433
5655
|
e$5({ type: Number })
|
|
5434
5656
|
], Progress.prototype, "max", 2);
|
|
5435
|
-
__decorateClass$
|
|
5657
|
+
__decorateClass$G([
|
|
5436
5658
|
e$5({ type: Boolean })
|
|
5437
5659
|
], Progress.prototype, "invert", 2);
|
|
5438
|
-
__decorateClass$
|
|
5660
|
+
__decorateClass$G([
|
|
5439
5661
|
e$5({ type: String, reflect: true })
|
|
5440
5662
|
], Progress.prototype, "type", 2);
|
|
5441
|
-
__decorateClass$
|
|
5663
|
+
__decorateClass$G([
|
|
5442
5664
|
e$5({ type: String, reflect: true })
|
|
5443
5665
|
], Progress.prototype, "size", 2);
|
|
5444
|
-
Progress = __decorateClass$
|
|
5445
|
-
n$3(tagName$
|
|
5666
|
+
Progress = __decorateClass$G([
|
|
5667
|
+
n$3(tagName$F)
|
|
5446
5668
|
], Progress);
|
|
5447
5669
|
try {
|
|
5448
|
-
customElements.define(tagName$
|
|
5670
|
+
customElements.define(tagName$F, Progress);
|
|
5449
5671
|
} catch (e2) {
|
|
5450
5672
|
}
|
|
5451
5673
|
const formControl = r$5`*{box-sizing:border-box}:host{--sc-input-height:var(--sc-form-height);--sc-input-border-width:var(--sc-form-border-width);--sc-input-color:var(--sc-base-content);--sc-item-rounded-tr:var(--sc-input-rounded);--sc-item-rounded-tl:var(--sc-input-rounded);--sc-item-rounded-bl:var(--sc-input-rounded);--sc-item-rounded-br:var(--sc-input-rounded);--sc-input-fs:var(--sc-fs, 1rem);--sc-input-ff:inherit;--sc-input-py:0.6em;--sc-input-px:1.15em;--sc-input-prefix-color:var(--sc-input-color);--sc-input-prefix-bg:var(--sc-input-bg);--sc-input-prefix-border-color:var(--sc-input-border-color);--sc-input-suffix-color:var(--sc-input-color);--sc-input-suffix-bg:var(--sc-input-bg);--sc-input-suffix-border-color:var(--sc-input-border-color);--sc-label-fs:var(--sc-fs, 1rem);--sc-label-fw:var(--sc-label-font-weight)}.form-element{display:block;flex-grow:1;width:100%;line-height:1.1;color:var(--sc-input-color);border-radius:var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl);font-family:var(--sc-input-ff);background-color:var(--sc-input-bg,var(--sc-base,#fff));border:var(--sc-input-border-width) solid var(--sc-input-border-color,var(--sc-base-300,#aaa));width:100%;font-size:var(--sc-input-fs);padding-top:var(--sc-input-py);padding-bottom:var(--sc-input-py);padding-left:var(--sc-input-px);padding-right:var(--sc-input-px);min-height:var(--sc-input-height)}label{font-size:var(--sc-label-fs);font-weight:var(--sc-label-fw);line-height:1.2}.form-control{display:flex;width:100%}:host(:not([inlineContent])) .has-prefix slot[name=prefix],:host(:not([inlineContent])) .has-suffix slot[name=suffix]{min-width:var(--sc-input-height);box-sizing:border-box;display:flex;align-items:center;justify-content:center;line-height:1.1;flex-shrink:0;padding-left:calc(-1 * var(--sc-input-px));padding-right:calc(-1 * var(--sc-input-px))}:host(:not([inlineContent])) slot[name=prefix]{border-radius:var(--sc-item-rounded-tl) 0 0 var(--sc-item-rounded-bl);background-color:var(--sc-input-prefix-bg);color:var(--sc-input-prefix-color);border:var(--sc-input-border-width) solid var(--sc-input-prefix-border-color);margin-right:calc(-1 * var(--sc-input-border-width))}:host(:not([inlineContent])) slot[name=suffix]{border-radius:0 var(--sc-item-rounded-tr) var(--sc-item-rounded-br) 0;background-color:var(--sc-input-suffix-bg);color:var(--sc-input-suffix-color);border:var(--sc-input-border-width) solid var(--sc-input-suffix-border-color);margin-left:calc(-1 * var(--sc-input-border-width))}:host(:not([inlineContent])) .has-prefix .form-element{border-top-left-radius:0;border-bottom-left-radius:0}:host(:not([inlineContent])) .has-suffix .form-element{border-top-right-radius:0;border-bottom-right-radius:0}:host([inlineContent]){--sc-input-py:0}:host([inlineContent]) .form-element{display:flex;flex-wrap:wrap;align-items:center;gap:.35em;min-height:var(--sc-form-height)}:host([disabled]) .form-element-container{cursor:not-allowed}:host([variant=ghost]) .form-element{--sc-input-bg:transparent}:host([disabled]) .form-element{pointer-events:none;background-color:var(--sc-base-100);border-color:transparent;color:var(--sc-base-400)}::placeholder{color:inherit;opacity:.45}:focus::placeholder{opacity:0}.form-element:focus,.form-element:focus-visible,:host(:not([disabled])) .form-element:hover{filter:brightness(.97);outline:0}.form-label{margin-bottom:.22em;display:block}.form-description{color:var(--sc-base-400);font-size:.85em;margin-top:.2em;display:block}.form-element .form-element,.form-element>slot{all:unset!important}.hidden{display:none}.contents{display:contents}:host([error]){--sc-input-border-color:var(--sc-danger)}:host input:visited{display:none}:host([touched][required]) :not(:focus):invalid{--sc-input-border-color:var(--sc-danger);--sc-input-color:var(--sc-danger)}:host([touched][required]) :not(:focus):invalid+.select-chevron{--sc-input-color:var(--sc-danger)}:host([touched][required]) :not([value=""]):not(:focus):valid{--sc-input-border-color:var(--sc-success);--sc-input-color:var(--sc-success)}:host([touched][required]) :not(:focus):valid+.select-chevron{--sc-input-color:var(--sc-success)}:host([type=color]) .form-element{padding:0;border:0;min-width:var(--sc-input-height)}input[type=color]::-webkit-color-swatch-wrapper{padding:0}input[type=color]::-webkit-color-swatch{border:none;border-radius:var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl)}:host([type=image]) .form-element{padding:0;border:none}input[type=reset],input[type=submit]{cursor:pointer}input[type=search]::-webkit-search-cancel-button{appearance:none;cursor:pointer;height:.65em;width:.65em;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE2LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgd2lkdGg9IjEyMy4wNXB4IiBoZWlnaHQ9IjEyMy4wNXB4IiB2aWV3Qm94PSIwIDAgMTIzLjA1IDEyMy4wNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTIzLjA1IDEyMy4wNTsiDQoJIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPHBhdGggZD0iTTEyMS4zMjUsMTAuOTI1bC04LjUtOC4zOTljLTIuMy0yLjMtNi4xLTIuMy04LjUsMGwtNDIuNCw0Mi4zOTlMMTguNzI2LDEuNzI2Yy0yLjMwMS0yLjMwMS02LjEwMS0yLjMwMS04LjUsMGwtOC41LDguNQ0KCQljLTIuMzAxLDIuMy0yLjMwMSw2LjEsMCw4LjVsNDMuMSw0My4xbC00Mi4zLDQyLjVjLTIuMywyLjMtMi4zLDYuMSwwLDguNWw4LjUsOC41YzIuMywyLjMsNi4xLDIuMyw4LjUsMGw0Mi4zOTktNDIuNGw0Mi40LDQyLjQNCgkJYzIuMywyLjMsNi4xLDIuMyw4LjUsMGw4LjUtOC41YzIuMy0yLjMsMi4zLTYuMSwwLTguNWwtNDIuNS00Mi40bDQyLjQtNDIuMzk5QzEyMy42MjUsMTcuMTI1LDEyMy42MjUsMTMuMzI1LDEyMS4zMjUsMTAuOTI1eiIvPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPC9zdmc+DQo=);background-size:contain;background-repeat:no-repeat}`;
|
|
@@ -5482,18 +5704,18 @@ const o = e$3(class extends i$3 {
|
|
|
5482
5704
|
return b$1;
|
|
5483
5705
|
}
|
|
5484
5706
|
});
|
|
5485
|
-
var __defProp$
|
|
5486
|
-
var __getOwnPropDesc$
|
|
5487
|
-
var __decorateClass$
|
|
5488
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5707
|
+
var __defProp$F = Object.defineProperty;
|
|
5708
|
+
var __getOwnPropDesc$F = Object.getOwnPropertyDescriptor;
|
|
5709
|
+
var __decorateClass$F = (decorators, target, key, kind) => {
|
|
5710
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$F(target, key) : target;
|
|
5489
5711
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5490
5712
|
if (decorator = decorators[i2])
|
|
5491
5713
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5492
5714
|
if (kind && result)
|
|
5493
|
-
__defProp$
|
|
5715
|
+
__defProp$F(target, key, result);
|
|
5494
5716
|
return result;
|
|
5495
5717
|
};
|
|
5496
|
-
const tagName$
|
|
5718
|
+
const tagName$E = "sonic-input";
|
|
5497
5719
|
let Input = class extends Form(Form$2(Subscriber$1(s$2))) {
|
|
5498
5720
|
constructor() {
|
|
5499
5721
|
super(...arguments);
|
|
@@ -5511,6 +5733,20 @@ let Input = class extends Form(Form$2(Subscriber$1(s$2))) {
|
|
|
5511
5733
|
this.hasSuffix = ((_c = this.slotSuffixNodes) == null ? void 0 : _c.length) ? true : false;
|
|
5512
5734
|
this.hasPrefix = ((_d = this.slotPrefixNodes) == null ? void 0 : _d.length) ? true : false;
|
|
5513
5735
|
}
|
|
5736
|
+
connectedCallback() {
|
|
5737
|
+
super.connectedCallback();
|
|
5738
|
+
if (this.hasAttribute("sameValueAs")) {
|
|
5739
|
+
this.sameValueAsName = this.getAttribute("sameValueAs");
|
|
5740
|
+
this.sameValueAsHandle = (v2) => this.pattern = v2;
|
|
5741
|
+
this.getFormPublisher()[this.sameValueAsName].onAssign(this.sameValueAsHandle);
|
|
5742
|
+
}
|
|
5743
|
+
}
|
|
5744
|
+
disconnectedCallback() {
|
|
5745
|
+
super.disconnectedCallback();
|
|
5746
|
+
if (this.hasAttribute("sameValueAs") && this.sameValueAsName) {
|
|
5747
|
+
this.getFormPublisher()[this.sameValueAsName].offAssign(this.sameValueAsHandle);
|
|
5748
|
+
}
|
|
5749
|
+
}
|
|
5514
5750
|
onSlotChange() {
|
|
5515
5751
|
this.requestUpdate();
|
|
5516
5752
|
}
|
|
@@ -5518,7 +5754,6 @@ let Input = class extends Form(Form$2(Subscriber$1(s$2))) {
|
|
|
5518
5754
|
var _a2;
|
|
5519
5755
|
if (!this.inlineContent)
|
|
5520
5756
|
return;
|
|
5521
|
-
console.log("oypouaze");
|
|
5522
5757
|
(_a2 = this.input) == null ? void 0 : _a2.focus();
|
|
5523
5758
|
}
|
|
5524
5759
|
render() {
|
|
@@ -5526,80 +5761,243 @@ let Input = class extends Form(Form$2(Subscriber$1(s$2))) {
|
|
|
5526
5761
|
"has-prefix": this.hasPrefix,
|
|
5527
5762
|
"has-suffix": this.hasSuffix
|
|
5528
5763
|
};
|
|
5529
|
-
|
|
5764
|
+
let labelStarSuffix = this.label && this.required && this.label.indexOf("*") == -1 ? " *" : "";
|
|
5765
|
+
return $$1`<label for="form-element" class="${this.hasLabel ? "form-label" : "hidden"}">${this.label ? o$2(this.label + labelStarSuffix) : ""}<slot name="label" @slotchange="${this.onSlotChange}"></slot></label><div @click="${this.inlineContentFocus}" class="form-control ${o(slotClasses)}"><div class="${this.inlineContent ? "form-element form-element-wrapper" : "contents"}"><slot name="prefix" @slotchange="${this.onSlotChange}"></slot><input id="form-element" part="input" class="form-element input" @input="${this.handleChange}" @blur="${this.handleBlur}" type="${this.type}" disabled="${l(this.disabled)}" ?readonly="${this.readonly}" ?autofocus="${this.autofocus}" list="${l(this.list)}" tabindex="${l(this.tabindex)}" pattern="${l(this.pattern)}" min="${l(this.min)}" max="${l(this.max)}" step="${l(this.step)}" src="${l(this.src)}" minlength="${l(this.minlength)}" maxlength="${l(this.maxlength)}" placeholder="${l(this.placeholder)}" required="${l(this.required)}" autocomplete="${l(this.autocomplete)}" .name="${this.name}" .value="${this.value}"><slot name="suffix" @slotchange="${this.onSlotChange}"></slot></div></div><slot name="description" class="${this.hasDescription ? "form-description" : "hidden"}">${this.description ? $$1`${o$2(this.description)}` : ""}</slot>`;
|
|
5530
5766
|
}
|
|
5531
5767
|
};
|
|
5532
5768
|
Input.styles = [fontSize, formControl];
|
|
5533
|
-
__decorateClass$
|
|
5769
|
+
__decorateClass$F([
|
|
5534
5770
|
e$5({ type: String, reflect: true })
|
|
5535
5771
|
], Input.prototype, "size", 2);
|
|
5536
|
-
__decorateClass$
|
|
5772
|
+
__decorateClass$F([
|
|
5537
5773
|
e$5({ type: String })
|
|
5538
5774
|
], Input.prototype, "list", 2);
|
|
5539
|
-
__decorateClass$
|
|
5775
|
+
__decorateClass$F([
|
|
5540
5776
|
e$5({ type: String })
|
|
5541
5777
|
], Input.prototype, "placeholder", 2);
|
|
5542
|
-
__decorateClass$
|
|
5778
|
+
__decorateClass$F([
|
|
5543
5779
|
e$5({ type: String })
|
|
5544
5780
|
], Input.prototype, "pattern", 2);
|
|
5545
|
-
__decorateClass$
|
|
5781
|
+
__decorateClass$F([
|
|
5546
5782
|
e$5({ type: String })
|
|
5547
5783
|
], Input.prototype, "min", 2);
|
|
5548
|
-
__decorateClass$
|
|
5784
|
+
__decorateClass$F([
|
|
5549
5785
|
e$5({ type: String })
|
|
5550
5786
|
], Input.prototype, "max", 2);
|
|
5551
|
-
__decorateClass$
|
|
5787
|
+
__decorateClass$F([
|
|
5552
5788
|
e$5({ type: Boolean })
|
|
5553
5789
|
], Input.prototype, "readonly", 2);
|
|
5554
|
-
__decorateClass$
|
|
5790
|
+
__decorateClass$F([
|
|
5555
5791
|
e$5({ type: Number })
|
|
5556
5792
|
], Input.prototype, "step", 2);
|
|
5557
|
-
__decorateClass$
|
|
5793
|
+
__decorateClass$F([
|
|
5558
5794
|
e$5({ type: Number })
|
|
5559
5795
|
], Input.prototype, "minlength", 2);
|
|
5560
|
-
__decorateClass$
|
|
5796
|
+
__decorateClass$F([
|
|
5561
5797
|
e$5({ type: Number })
|
|
5562
5798
|
], Input.prototype, "maxlength", 2);
|
|
5563
|
-
__decorateClass$
|
|
5799
|
+
__decorateClass$F([
|
|
5564
5800
|
e$5({ type: String })
|
|
5565
5801
|
], Input.prototype, "src", 2);
|
|
5566
|
-
__decorateClass$
|
|
5802
|
+
__decorateClass$F([
|
|
5567
5803
|
e$5({ type: Boolean, reflect: true })
|
|
5568
5804
|
], Input.prototype, "inlineContent", 2);
|
|
5569
|
-
__decorateClass$
|
|
5805
|
+
__decorateClass$F([
|
|
5570
5806
|
o$4({ slot: "label" })
|
|
5571
5807
|
], Input.prototype, "slotLabelNodes", 2);
|
|
5572
|
-
__decorateClass$
|
|
5808
|
+
__decorateClass$F([
|
|
5573
5809
|
o$4({ slot: "description" })
|
|
5574
5810
|
], Input.prototype, "slotDescriptionNodes", 2);
|
|
5575
|
-
__decorateClass$
|
|
5811
|
+
__decorateClass$F([
|
|
5576
5812
|
o$4({ slot: "suffix" })
|
|
5577
5813
|
], Input.prototype, "slotSuffixNodes", 2);
|
|
5578
|
-
__decorateClass$
|
|
5814
|
+
__decorateClass$F([
|
|
5579
5815
|
o$4({ slot: "prefix" })
|
|
5580
5816
|
], Input.prototype, "slotPrefixNodes", 2);
|
|
5581
|
-
__decorateClass$
|
|
5817
|
+
__decorateClass$F([
|
|
5582
5818
|
i$4("input")
|
|
5583
5819
|
], Input.prototype, "input", 2);
|
|
5584
|
-
__decorateClass$
|
|
5820
|
+
__decorateClass$F([
|
|
5585
5821
|
t$1()
|
|
5586
5822
|
], Input.prototype, "hasDescription", 2);
|
|
5587
|
-
__decorateClass$
|
|
5823
|
+
__decorateClass$F([
|
|
5588
5824
|
t$1()
|
|
5589
5825
|
], Input.prototype, "hasLabel", 2);
|
|
5590
|
-
__decorateClass$
|
|
5826
|
+
__decorateClass$F([
|
|
5591
5827
|
t$1()
|
|
5592
5828
|
], Input.prototype, "hasSuffix", 2);
|
|
5593
|
-
__decorateClass$
|
|
5829
|
+
__decorateClass$F([
|
|
5594
5830
|
t$1()
|
|
5595
5831
|
], Input.prototype, "hasPrefix", 2);
|
|
5596
|
-
Input = __decorateClass$
|
|
5597
|
-
n$3(tagName$
|
|
5832
|
+
Input = __decorateClass$F([
|
|
5833
|
+
n$3(tagName$E)
|
|
5598
5834
|
], Input);
|
|
5599
5835
|
try {
|
|
5600
|
-
customElements.define(tagName$
|
|
5836
|
+
customElements.define(tagName$E, Input);
|
|
5601
5837
|
} catch (e2) {
|
|
5602
5838
|
}
|
|
5839
|
+
var __defProp$E = Object.defineProperty;
|
|
5840
|
+
var __getOwnPropDesc$E = Object.getOwnPropertyDescriptor;
|
|
5841
|
+
var __decorateClass$E = (decorators, target, key, kind) => {
|
|
5842
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$E(target, key) : target;
|
|
5843
|
+
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5844
|
+
if (decorator = decorators[i2])
|
|
5845
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5846
|
+
if (kind && result)
|
|
5847
|
+
__defProp$E(target, key, result);
|
|
5848
|
+
return result;
|
|
5849
|
+
};
|
|
5850
|
+
const tagName$D = "sonic-password-helper";
|
|
5851
|
+
console.log("HEY");
|
|
5852
|
+
let SonicComponent$1 = class extends Subscriber(s$2) {
|
|
5853
|
+
constructor() {
|
|
5854
|
+
super(...arguments);
|
|
5855
|
+
this.minChars = 8;
|
|
5856
|
+
this.hasNoChar = true;
|
|
5857
|
+
this.hasEnoughChars = false;
|
|
5858
|
+
this.hasMinuscule = false;
|
|
5859
|
+
this.hasMajuscule = false;
|
|
5860
|
+
this.hasNumber = false;
|
|
5861
|
+
this.hasSpecialChar = false;
|
|
5862
|
+
}
|
|
5863
|
+
connectedCallback() {
|
|
5864
|
+
super.connectedCallback();
|
|
5865
|
+
if (this.name) {
|
|
5866
|
+
this.checkValue = (v2) => {
|
|
5867
|
+
if (v2) {
|
|
5868
|
+
this.hasNoChar = v2.length == 0;
|
|
5869
|
+
this.hasEnoughChars = v2.length > this.minChars;
|
|
5870
|
+
} else {
|
|
5871
|
+
this.hasNoChar = true;
|
|
5872
|
+
this.hasEnoughChars = false;
|
|
5873
|
+
}
|
|
5874
|
+
this.hasMinuscule = /[a-z]/.test(v2);
|
|
5875
|
+
this.hasMajuscule = /[A-Z]/.test(v2);
|
|
5876
|
+
this.hasNumber = /[0-9]/.test(v2);
|
|
5877
|
+
this.hasSpecialChar = /[!"#$%&'()*+,\-\.\/:;<=>?@[\]^_`{|}~]/.test(v2);
|
|
5878
|
+
};
|
|
5879
|
+
PublisherManager.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue);
|
|
5880
|
+
}
|
|
5881
|
+
}
|
|
5882
|
+
disconnectedCallback() {
|
|
5883
|
+
if (this.checkValue && this.name) {
|
|
5884
|
+
PublisherManager.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue);
|
|
5885
|
+
}
|
|
5886
|
+
}
|
|
5887
|
+
getIcon(test) {
|
|
5888
|
+
return test ? $$1`<sonic-icon library="heroicons" , name="face-smile"></sonic-icon>` : $$1`<sonic-icon library="heroicons" , name="x-circle"></sonic-icon>`;
|
|
5889
|
+
}
|
|
5890
|
+
render() {
|
|
5891
|
+
if (this.hasNoChar)
|
|
5892
|
+
return w$1;
|
|
5893
|
+
return $$1`
|
|
5894
|
+
<div>Le mot de passe doit contenir au moins :</div>
|
|
5895
|
+
<div>${this.getIcon(this.hasEnoughChars)} 8 caractères</div>
|
|
5896
|
+
<div>${this.getIcon(this.hasMinuscule)} 1 minuscule</div>
|
|
5897
|
+
<div>${this.getIcon(this.hasMajuscule)} 1 majuscule</div>
|
|
5898
|
+
<div>${this.getIcon(this.hasNumber)} 1 chiffre</div>
|
|
5899
|
+
<div>${this.getIcon(this.hasSpecialChar)} 1 caractère spécial parmi !"#$%&'()*+,-./:;<=>?@[]^_\`{|}~</div>
|
|
5900
|
+
`;
|
|
5901
|
+
}
|
|
5902
|
+
};
|
|
5903
|
+
__decorateClass$E([
|
|
5904
|
+
e$5()
|
|
5905
|
+
], SonicComponent$1.prototype, "name", 2);
|
|
5906
|
+
__decorateClass$E([
|
|
5907
|
+
e$5()
|
|
5908
|
+
], SonicComponent$1.prototype, "minChars", 2);
|
|
5909
|
+
__decorateClass$E([
|
|
5910
|
+
t$1()
|
|
5911
|
+
], SonicComponent$1.prototype, "hasNoChar", 2);
|
|
5912
|
+
__decorateClass$E([
|
|
5913
|
+
t$1()
|
|
5914
|
+
], SonicComponent$1.prototype, "hasEnoughChars", 2);
|
|
5915
|
+
__decorateClass$E([
|
|
5916
|
+
t$1()
|
|
5917
|
+
], SonicComponent$1.prototype, "hasMinuscule", 2);
|
|
5918
|
+
__decorateClass$E([
|
|
5919
|
+
t$1()
|
|
5920
|
+
], SonicComponent$1.prototype, "hasMajuscule", 2);
|
|
5921
|
+
__decorateClass$E([
|
|
5922
|
+
t$1()
|
|
5923
|
+
], SonicComponent$1.prototype, "hasNumber", 2);
|
|
5924
|
+
__decorateClass$E([
|
|
5925
|
+
t$1()
|
|
5926
|
+
], SonicComponent$1.prototype, "hasSpecialChar", 2);
|
|
5927
|
+
SonicComponent$1 = __decorateClass$E([
|
|
5928
|
+
n$3(tagName$D)
|
|
5929
|
+
], SonicComponent$1);
|
|
5930
|
+
var __defProp$D = Object.defineProperty;
|
|
5931
|
+
var __getOwnPropDesc$D = Object.getOwnPropertyDescriptor;
|
|
5932
|
+
var __decorateClass$D = (decorators, target, key, kind) => {
|
|
5933
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$D(target, key) : target;
|
|
5934
|
+
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5935
|
+
if (decorator = decorators[i2])
|
|
5936
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5937
|
+
if (kind && result)
|
|
5938
|
+
__defProp$D(target, key, result);
|
|
5939
|
+
return result;
|
|
5940
|
+
};
|
|
5941
|
+
const tagName$C = "sonic-same-value-helper";
|
|
5942
|
+
let SonicComponent = class extends Subscriber(s$2) {
|
|
5943
|
+
constructor() {
|
|
5944
|
+
super(...arguments);
|
|
5945
|
+
this.descriptionWhenEqual = "Correspondance : oui";
|
|
5946
|
+
this.descriptionWhenNotEqual = "Correspondance : non";
|
|
5947
|
+
this.areEqual = false;
|
|
5948
|
+
this.hasNoChar = true;
|
|
5949
|
+
}
|
|
5950
|
+
connectedCallback() {
|
|
5951
|
+
super.connectedCallback();
|
|
5952
|
+
let formDataProvider = PublisherManager.get(this.getAncestorAttributeValue("formDataProvider"));
|
|
5953
|
+
if (this.name && this.sameValueAs) {
|
|
5954
|
+
this.checkValue = (v2) => {
|
|
5955
|
+
if (v2)
|
|
5956
|
+
this.hasNoChar = v2.length == 0;
|
|
5957
|
+
else
|
|
5958
|
+
this.hasNoChar = true;
|
|
5959
|
+
if (this.name && this.sameValueAs) {
|
|
5960
|
+
this.areEqual = formDataProvider[this.name].get() == formDataProvider[this.sameValueAs].get();
|
|
5961
|
+
}
|
|
5962
|
+
};
|
|
5963
|
+
formDataProvider[this.name].onAssign(this.checkValue);
|
|
5964
|
+
formDataProvider[this.sameValueAs].onAssign(this.checkValue);
|
|
5965
|
+
}
|
|
5966
|
+
}
|
|
5967
|
+
disconnectedCallback() {
|
|
5968
|
+
if (this.checkValue && this.name && this.sameValueAs) {
|
|
5969
|
+
let formDataProvider = PublisherManager.get(this.getAncestorAttributeValue("formDataProvider"));
|
|
5970
|
+
formDataProvider[this.name].offAssign(this.checkValue);
|
|
5971
|
+
formDataProvider[this.sameValueAs].offAssign(this.checkValue);
|
|
5972
|
+
}
|
|
5973
|
+
}
|
|
5974
|
+
render() {
|
|
5975
|
+
if (this.hasNoChar)
|
|
5976
|
+
return w$1;
|
|
5977
|
+
return $$1`<span>${this.areEqual ? o$2(this.descriptionWhenEqual) : o$2(this.descriptionWhenNotEqual)}</span>`;
|
|
5978
|
+
}
|
|
5979
|
+
};
|
|
5980
|
+
__decorateClass$D([
|
|
5981
|
+
e$5()
|
|
5982
|
+
], SonicComponent.prototype, "name", 2);
|
|
5983
|
+
__decorateClass$D([
|
|
5984
|
+
e$5()
|
|
5985
|
+
], SonicComponent.prototype, "sameValueAs", 2);
|
|
5986
|
+
__decorateClass$D([
|
|
5987
|
+
e$5()
|
|
5988
|
+
], SonicComponent.prototype, "descriptionWhenEqual", 2);
|
|
5989
|
+
__decorateClass$D([
|
|
5990
|
+
e$5()
|
|
5991
|
+
], SonicComponent.prototype, "descriptionWhenNotEqual", 2);
|
|
5992
|
+
__decorateClass$D([
|
|
5993
|
+
t$1()
|
|
5994
|
+
], SonicComponent.prototype, "areEqual", 2);
|
|
5995
|
+
__decorateClass$D([
|
|
5996
|
+
t$1()
|
|
5997
|
+
], SonicComponent.prototype, "hasNoChar", 2);
|
|
5998
|
+
SonicComponent = __decorateClass$D([
|
|
5999
|
+
n$3(tagName$C)
|
|
6000
|
+
], SonicComponent);
|
|
5603
6001
|
var __defProp$C = Object.defineProperty;
|
|
5604
6002
|
var __getOwnPropDesc$C = Object.getOwnPropertyDescriptor;
|
|
5605
6003
|
var __decorateClass$C = (decorators, target, key, kind) => {
|
|
@@ -5628,7 +6026,8 @@ let Checkbox = class extends Form$1(Form(Form$2(Subscriber$1(s$2)))) {
|
|
|
5628
6026
|
super.connectedCallback();
|
|
5629
6027
|
}
|
|
5630
6028
|
render() {
|
|
5631
|
-
|
|
6029
|
+
let labelStarSuffix = this.label && this.required && this.label.indexOf("*") == -1 ? " *" : "";
|
|
6030
|
+
return $$1`<label class="checkbox-container ${this.disabled ? "disabled" : ""}"><span class="icon-container"><input type="${this.type}" @change="${this.handleChange}" @blur="${this.handleBlur}" ?required="${this.required}" .disabled="${l(this.disabled)}" .checked="${l(this.checked)}" .name="${this.name}" .value="${this.value}" ?autofocus="${this.autofocus}"><sonic-icon name="${this.iconName}" class="sc-input-icon"></sonic-icon></span><div class="checkbox-text">${this.label ? o$2(this.label + labelStarSuffix) : ""}<slot></slot><slot name="description" class="${this.hasDescription ? "description" : "hidden"}">${this.description ? $$1`${o$2(this.description)}` : ""}</slot></div></label>`;
|
|
5632
6031
|
}
|
|
5633
6032
|
};
|
|
5634
6033
|
Checkbox.styles = [
|
|
@@ -5794,7 +6193,8 @@ let Select = class extends Form$2(Subscriber$1(s$2)) {
|
|
|
5794
6193
|
"has-prefix": this.hasPrefix,
|
|
5795
6194
|
"has-suffix": this.hasSuffix
|
|
5796
6195
|
};
|
|
5797
|
-
|
|
6196
|
+
let labelStarSuffix = this.label && this.required && this.label.indexOf("*") == -1 ? " *" : "";
|
|
6197
|
+
return $$1`<label for="form-element" class="${this.hasLabel ? "form-label" : "hidden"}">${this.label ? o$2(this.label + labelStarSuffix) : ""}<slot name="label" @slotchange="${this.onSlotChange}"></slot></label><div class="form-control ${o(slotClasses)}"><slot name="prefix" @slotchange="${this.onSlotChange}"></slot><div class="form-select-wrapper"><select @change="${this.handleChange}" @blur="${this.handleBlur}" disabled="${l(this.disabled)}" ?required="${this.required}" ?multiple="${this.multiple}" size="${l(this.selectSize)}" ?autofocus="${this.autofocus}" .value="${this.value}" class="form-element">${c(this.options, (option) => option[this.valueKey], (option) => {
|
|
5798
6198
|
const isSelected = this.value == option[this.valueKey] ? "selected" : null;
|
|
5799
6199
|
return $$1`<option selected="${l(isSelected)}" value="${option[this.valueKey]}">${option[this.wordingKey]}</option>`;
|
|
5800
6200
|
})}<slot></slot></select><sonic-icon class="select-chevron" name="nav-arrow-down" size="${this.size}"></sonic-icon></div><slot name="suffix" @slotchange="${this.onSlotChange}"></slot></div><slot name="description" class="${this.hasDescription ? "form-description" : "hidden"}">${this.description ? $$1`${o$2(this.description)}` : ""}</slot>`;
|
|
@@ -5908,7 +6308,8 @@ let Textarea = class extends Form(Form$2(Subscriber$1(s$2))) {
|
|
|
5908
6308
|
textarea.reportValidity();
|
|
5909
6309
|
}
|
|
5910
6310
|
render() {
|
|
5911
|
-
|
|
6311
|
+
let labelStarSuffix = this.label && this.required && this.label.indexOf("*") == -1 ? " *" : "";
|
|
6312
|
+
return $$1`<label for="form-element" class="${this.hasLabel ? "form-label" : "hidden"}">${this.label ? o$2(this.label + labelStarSuffix) : ""}<slot name="label" @slotchange="${this.onSlotChange}"></slot></label><div class="form-control"><textarea @input="${this.handleChange}" @blur="${this.handleBlur}" disabled="${l(this.disabled)}" ?required="${this.required}" ?autofocus="${this.autofocus}" rows="${l(this.rows)}" cols="${l(this.cols)}" maxlength="${l(this.maxlength)}" minlength="${l(this.minlength)}" ?readonly="${this.readonly}" spellcheck="${l(this.spellcheck)}" autocomplete="${l(this.autocomplete)}" tabindex="${l(this.tabindex)}" wrap="${l(this.wrap)}" placeholder="${this.placeholder}" class="form-element textarea custom-scroll">
|
|
5912
6313
|
${this.value}</textarea></div><slot name="description" class="${this.hasDescription ? "form-description" : "hidden"}">${this.description ? $$1`${o$2(this.description)}` : ""}</slot>`;
|
|
5913
6314
|
}
|
|
5914
6315
|
};
|
|
@@ -6884,7 +7285,7 @@ let Alert = class extends s$2 {
|
|
|
6884
7285
|
};
|
|
6885
7286
|
Alert.styles = [
|
|
6886
7287
|
fontSize,
|
|
6887
|
-
r$5`:host{--sc-alert-color:inherit;--sc-alert-rounded:var(--sc-rounded);--sc-alert-fw:var(--sc-font-weight-base);--sc-alert-fst:var(--sc-font-style-base);--sc-alert-label-fw:bold;display:block;font-weight:var(--sc-alert-fw);font-style:var(--sc-alert-fst)}.alert{color:var(--sc-alert-color);position:relative;display:flex;gap:.4em;line-height:1.2;border-radius:var(--sc-alert-rounded)}
|
|
7288
|
+
r$5`:host{--sc-alert-color:inherit;--sc-alert-rounded:var(--sc-rounded);--sc-alert-fw:var(--sc-font-weight-base);--sc-alert-fst:var(--sc-font-style-base);--sc-alert-label-fw:bold;display:block;font-weight:var(--sc-alert-fw);font-style:var(--sc-alert-fst)}.alert{color:var(--sc-alert-color);position:relative;display:flex;gap:.4em;line-height:1.2;border-radius:var(--sc-alert-rounded)}.label{font-weight:var(--sc-alert-label-fw)}:host([status=warning]){--sc-alert-color:var(--sc-warning)}:host([status=error]){--sc-alert-color:var(--sc-danger)}:host([status=info]){--sc-alert-color:var(--sc-info)}:host([status=success]){--sc-alert-color:var(--sc-success)}:host([background]) .alert{background:var(--sc-base);padding:.8em 1.15em}:host([background]) .alert:before{background-color:currentColor;content:'';display:block;position:absolute;left:0;top:0;right:0;bottom:0;opacity:.08;border-radius:var(--sc-alert-rounded);pointer-events:none}:host([background])>div{z-index:2;position:relative}slot{display:block}:host([size=xs]) .alert{--sc-alert-rounded:var(--sc-rounded-sm)}:host([size=sm]) .alert{--sc-alert-rounded:var(--sc-rounded-sm)}`
|
|
6888
7289
|
];
|
|
6889
7290
|
__decorateClass$i([
|
|
6890
7291
|
e$5({ type: String })
|