@evoke-tech/stencil-ui-kit 0.1.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/README.md +142 -26
  2. package/dist/cjs/evoke-alert_20.cjs.entry.js +1047 -0
  3. package/dist/cjs/evoke-ui.cjs.js +2 -2
  4. package/dist/cjs/{index-B8xS0y1i.js → index-BpJ5gu8f.js} +146 -5
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/collection/collection-manifest.json +13 -1
  7. package/dist/collection/components/evoke-alert/evoke-alert.css +17 -6
  8. package/dist/collection/components/evoke-alert/evoke-alert.js +25 -1
  9. package/dist/collection/components/evoke-app-bar/evoke-app-bar.css +13 -0
  10. package/dist/collection/components/evoke-app-bar/evoke-app-bar.js +94 -0
  11. package/dist/collection/components/evoke-badge/evoke-badge.css +13 -0
  12. package/dist/collection/components/evoke-badge/evoke-badge.js +162 -0
  13. package/dist/collection/components/evoke-button/evoke-button.css +16 -2
  14. package/dist/collection/components/evoke-button/evoke-button.js +117 -5
  15. package/dist/collection/components/evoke-card/evoke-card.css +9 -1
  16. package/dist/collection/components/evoke-card/evoke-card.js +75 -1
  17. package/dist/collection/components/evoke-checkbox/evoke-checkbox.css +7 -1
  18. package/dist/collection/components/evoke-checkbox/evoke-checkbox.js +31 -2
  19. package/dist/collection/components/evoke-chip/evoke-chip.css +16 -0
  20. package/dist/collection/components/evoke-chip/evoke-chip.js +149 -0
  21. package/dist/collection/components/evoke-input/evoke-input.css +11 -3
  22. package/dist/collection/components/evoke-input/evoke-input.js +103 -13
  23. package/dist/collection/components/evoke-modal/evoke-modal.css +21 -5
  24. package/dist/collection/components/evoke-modal/evoke-modal.js +129 -4
  25. package/dist/collection/components/evoke-pagination/evoke-pagination.css +12 -0
  26. package/dist/collection/components/evoke-pagination/evoke-pagination.js +156 -0
  27. package/dist/collection/components/evoke-progress/evoke-progress.css +12 -0
  28. package/dist/collection/components/evoke-progress/evoke-progress.js +146 -0
  29. package/dist/collection/components/evoke-quantity-stepper/evoke-quantity-stepper.css +20 -0
  30. package/dist/collection/components/evoke-quantity-stepper/evoke-quantity-stepper.js +201 -0
  31. package/dist/collection/components/evoke-radio-group/evoke-radio-group.css +14 -1
  32. package/dist/collection/components/evoke-radio-group/evoke-radio-group.js +34 -8
  33. package/dist/collection/components/evoke-select/evoke-select.css +25 -4
  34. package/dist/collection/components/evoke-select/evoke-select.js +245 -15
  35. package/dist/collection/components/evoke-switch/evoke-switch.css +16 -0
  36. package/dist/collection/components/evoke-switch/evoke-switch.js +151 -0
  37. package/dist/collection/components/evoke-table/evoke-table.css +20 -0
  38. package/dist/collection/components/evoke-table/evoke-table.js +222 -0
  39. package/dist/collection/components/evoke-tabs/evoke-tabs.css +20 -0
  40. package/dist/collection/components/evoke-tabs/evoke-tabs.js +179 -0
  41. package/dist/collection/components/evoke-textarea/evoke-textarea.css +19 -0
  42. package/dist/collection/components/evoke-textarea/evoke-textarea.js +328 -0
  43. package/dist/collection/components/evoke-toast/evoke-toast.css +24 -0
  44. package/dist/collection/components/evoke-toast/evoke-toast.js +225 -0
  45. package/dist/collection/components/evoke-tooltip/evoke-tooltip.css +22 -0
  46. package/dist/collection/components/evoke-tooltip/evoke-tooltip.js +119 -0
  47. package/dist/collection/utils/icons.js +29 -0
  48. package/dist/components/evoke-alert.js +1 -1
  49. package/dist/components/evoke-app-bar.d.ts +11 -0
  50. package/dist/components/evoke-app-bar.js +1 -0
  51. package/dist/components/evoke-badge.d.ts +11 -0
  52. package/dist/components/evoke-badge.js +1 -0
  53. package/dist/components/evoke-button.js +1 -1
  54. package/dist/components/evoke-card.js +1 -1
  55. package/dist/components/evoke-checkbox.js +1 -1
  56. package/dist/components/evoke-chip.d.ts +11 -0
  57. package/dist/components/evoke-chip.js +1 -0
  58. package/dist/components/evoke-input.js +1 -1
  59. package/dist/components/evoke-modal.js +1 -1
  60. package/dist/components/evoke-pagination.d.ts +11 -0
  61. package/dist/components/evoke-pagination.js +1 -0
  62. package/dist/components/evoke-progress.d.ts +11 -0
  63. package/dist/components/evoke-progress.js +1 -0
  64. package/dist/components/evoke-quantity-stepper.d.ts +11 -0
  65. package/dist/components/evoke-quantity-stepper.js +1 -0
  66. package/dist/components/evoke-radio-group.js +1 -1
  67. package/dist/components/evoke-select.js +1 -1
  68. package/dist/components/evoke-switch.d.ts +11 -0
  69. package/dist/components/evoke-switch.js +1 -0
  70. package/dist/components/evoke-table.d.ts +11 -0
  71. package/dist/components/evoke-table.js +1 -0
  72. package/dist/components/evoke-tabs.d.ts +11 -0
  73. package/dist/components/evoke-tabs.js +1 -0
  74. package/dist/components/evoke-textarea.d.ts +11 -0
  75. package/dist/components/evoke-textarea.js +1 -0
  76. package/dist/components/evoke-toast.d.ts +11 -0
  77. package/dist/components/evoke-toast.js +1 -0
  78. package/dist/components/evoke-tooltip.d.ts +11 -0
  79. package/dist/components/evoke-tooltip.js +1 -0
  80. package/dist/components/icons.js +1 -0
  81. package/dist/esm/evoke-alert_20.entry.js +1026 -0
  82. package/dist/esm/evoke-ui.js +3 -3
  83. package/dist/esm/{index-BtM1wZ-I.js → index-C-5sEjU8.js} +146 -6
  84. package/dist/esm/loader.js +3 -3
  85. package/dist/evoke-ui/evoke-ui.css +1 -1
  86. package/dist/evoke-ui/evoke-ui.esm.js +1 -1
  87. package/dist/evoke-ui/p-0841be89.entry.js +1 -0
  88. package/dist/evoke-ui/p-C-5sEjU8.js +3 -0
  89. package/dist/themes/bootstrap.css +3 -0
  90. package/dist/themes/material.css +5 -2
  91. package/dist/themes/tailwind.css +3 -0
  92. package/dist/themes/tokens.css +4 -1
  93. package/dist/types/components/evoke-alert/evoke-alert.d.ts +2 -0
  94. package/dist/types/components/evoke-app-bar/evoke-app-bar.d.ts +14 -0
  95. package/dist/types/components/evoke-badge/evoke-badge.d.ts +17 -0
  96. package/dist/types/components/evoke-button/evoke-button.d.ts +12 -2
  97. package/dist/types/components/evoke-card/evoke-card.d.ts +9 -0
  98. package/dist/types/components/evoke-checkbox/evoke-checkbox.d.ts +5 -0
  99. package/dist/types/components/evoke-chip/evoke-chip.d.ts +14 -0
  100. package/dist/types/components/evoke-input/evoke-input.d.ts +9 -1
  101. package/dist/types/components/evoke-modal/evoke-modal.d.ts +19 -1
  102. package/dist/types/components/evoke-pagination/evoke-pagination.d.ts +15 -0
  103. package/dist/types/components/evoke-progress/evoke-progress.d.ts +13 -0
  104. package/dist/types/components/evoke-quantity-stepper/evoke-quantity-stepper.d.ts +18 -0
  105. package/dist/types/components/evoke-radio-group/evoke-radio-group.d.ts +4 -2
  106. package/dist/types/components/evoke-select/evoke-select.d.ts +31 -6
  107. package/dist/types/components/evoke-switch/evoke-switch.d.ts +15 -0
  108. package/dist/types/components/evoke-table/evoke-table.d.ts +29 -0
  109. package/dist/types/components/evoke-tabs/evoke-tabs.d.ts +21 -0
  110. package/dist/types/components/evoke-textarea/evoke-textarea.d.ts +28 -0
  111. package/dist/types/components/evoke-toast/evoke-toast.d.ts +24 -0
  112. package/dist/types/components/evoke-tooltip/evoke-tooltip.d.ts +17 -0
  113. package/dist/types/components.d.ts +1237 -18
  114. package/dist/types/utils/icons.d.ts +25 -0
  115. package/dist/vue/components.d.ts +22 -0
  116. package/dist/vue/components.js +220 -0
  117. package/dist/vue/index.d.ts +2 -0
  118. package/dist/vue/index.js +2 -0
  119. package/dist/vue/plugin.d.ts +3 -0
  120. package/dist/vue/plugin.js +7 -0
  121. package/package.json +30 -6
  122. package/dist/cjs/evoke-alert_6.cjs.entry.js +0 -172
  123. package/dist/cjs/evoke-card.cjs.entry.js +0 -20
  124. package/dist/cjs/evoke-modal.cjs.entry.js +0 -34
  125. package/dist/esm/evoke-alert_6.entry.js +0 -165
  126. package/dist/esm/evoke-card.entry.js +0 -18
  127. package/dist/esm/evoke-modal.entry.js +0 -32
  128. package/dist/evoke-ui/p-243075cd.entry.js +0 -1
  129. package/dist/evoke-ui/p-605d4757.entry.js +0 -1
  130. package/dist/evoke-ui/p-9a6eaeb6.entry.js +0 -1
  131. package/dist/evoke-ui/p-BtM1wZ-I.js +0 -3
@@ -1,5 +1,5 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-BtM1wZ-I.js';
2
- export { s as setNonce } from './index-BtM1wZ-I.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-C-5sEjU8.js';
2
+ export { s as setNonce } from './index-C-5sEjU8.js';
3
3
  import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
4
 
5
5
  /*
@@ -17,5 +17,5 @@ var patchBrowser = () => {
17
17
 
18
18
  patchBrowser().then(async (options) => {
19
19
  await globalScripts();
20
- return bootstrapLazy([["evoke-alert_6",[[260,"evoke-alert",{"type":[1],"dismissible":[4]}],[260,"evoke-button",{"variant":[1],"type":[1],"disabled":[4],"block":[516],"buttonClass":[1,"button-class"]}],[260,"evoke-checkbox",{"label":[1],"checked":[1540],"disabled":[4],"error":[1],"inputClass":[1,"input-class"]}],[0,"evoke-input",{"label":[1],"value":[1025],"type":[1],"placeholder":[1],"disabled":[4],"error":[1],"icon":[1],"inputClass":[1,"input-class"]}],[0,"evoke-radio-group",{"label":[1],"options":[1],"value":[1025],"name":[1],"disabled":[4],"inline":[4],"error":[1]}],[0,"evoke-select",{"label":[1],"options":[1],"value":[1025],"placeholder":[1],"disabled":[4],"error":[1],"selectClass":[1,"select-class"]}]]],["evoke-card",[[260,"evoke-card",{"heading":[1],"cardClass":[1,"card-class"]}]]],["evoke-modal",[[260,"evoke-modal",{"open":[1540],"heading":[1],"closeOnBackdrop":[4,"close-on-backdrop"],"modalClass":[1,"modal-class"]},[[8,"keydown","onKeydown"]]]]]], options);
20
+ return bootstrapLazy([["evoke-alert_20",[[260,"evoke-alert",{"type":[1],"appearance":[1],"dismissible":[4]}],[260,"evoke-app-bar",{"appearance":[1],"sticky":[516],"navLabel":[1,"nav-label"]}],[260,"evoke-badge",{"count":[2],"max":[2],"dot":[4],"showZero":[4,"show-zero"],"color":[1],"label":[1]}],[260,"evoke-button",{"variant":[1],"size":[1],"type":[1],"disabled":[4],"loading":[4],"icon":[1],"iconOnly":[516,"icon-only"],"accessibleLabel":[1,"accessible-label"],"block":[516],"buttonClass":[1,"button-class"]}],[260,"evoke-card",{"heading":[1],"appearance":[1],"clickable":[4],"cardClass":[1,"card-class"]}],[260,"evoke-checkbox",{"label":[1],"checked":[1540],"indeterminate":[1540],"disabled":[4],"error":[1],"inputClass":[1,"input-class"]}],[260,"evoke-chip",{"label":[1],"selected":[1540],"removable":[4],"disabled":[4]}],[0,"evoke-input",{"label":[1],"value":[1025],"type":[1],"name":[1],"placeholder":[1],"disabled":[4],"required":[4],"appearance":[1],"error":[1],"hint":[1],"icon":[1],"inputClass":[1,"input-class"]}],[260,"evoke-modal",{"open":[1540],"heading":[1],"position":[1],"size":[1],"closeOnBackdrop":[4,"close-on-backdrop"],"modalClass":[1,"modal-class"]},[[8,"keydown","onKeydown"]],{"open":[{"onOpenChange":0}]}],[0,"evoke-pagination",{"page":[1026],"total":[2],"appearance":[1],"disabled":[4]}],[0,"evoke-progress",{"type":[1],"value":[2],"indeterminate":[4],"label":[1],"size":[2]}],[0,"evoke-quantity-stepper",{"value":[1026],"min":[2],"max":[2],"appearance":[1],"disabled":[4],"label":[1]}],[0,"evoke-radio-group",{"label":[1],"options":[1],"value":[1025],"name":[1],"disabled":[4],"appearance":[1],"inline":[4],"error":[1]}],[0,"evoke-select",{"label":[1],"options":[1],"value":[1025],"placeholder":[1],"multiple":[4],"searchable":[4],"disabled":[4],"error":[1],"hint":[1],"selectClass":[1,"select-class"],"isOpen":[32],"query":[32],"activeIndex":[32]},[[4,"click","onDocClick"]]],[0,"evoke-switch",{"checked":[1540],"label":[1],"description":[1],"disabled":[4],"accessibleLabel":[1,"accessible-label"]}],[0,"evoke-table",{"columns":[1],"rows":[1],"striped":[4],"sortable":[4],"caption":[1],"emptyText":[1,"empty-text"],"sortKey":[32],"sortDir":[32]}],[260,"evoke-tabs",{"options":[1],"value":[1025],"appearance":[1],"label":[1]}],[0,"evoke-textarea",{"label":[1],"value":[1025],"name":[1],"placeholder":[1],"rows":[2],"autoGrow":[4,"auto-grow"],"maxLength":[2,"max-length"],"disabled":[4],"required":[4],"error":[1],"hint":[1],"textareaClass":[1,"textarea-class"]}],[260,"evoke-toast",{"open":[1540],"message":[1],"type":[1],"action":[1],"duration":[2],"position":[1]},null,{"open":[{"onOpen":0}]}],[260,"evoke-tooltip",{"text":[1],"placement":[1],"theme":[1],"visible":[32]}]]]], options);
21
21
  });
@@ -1,5 +1,5 @@
1
1
  const NAMESPACE = 'evoke-ui';
2
- const BUILD = /* evoke-ui */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, prop: true, propChangeCallback: false, shadowDom: false, slotRelocation: true, updatable: true};
2
+ const BUILD = /* evoke-ui */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, shadowDom: false, slotRelocation: true, state: true, updatable: true};
3
3
 
4
4
  /*
5
5
  Stencil Client Platform v4.45.2 | MIT Licensed | https://stenciljs.com
@@ -62,7 +62,7 @@ var registerInstance = (lazyInstance, hostRef) => {
62
62
  if (!hostRef) return;
63
63
  lazyInstance.__stencil__getHostRef = () => hostRef;
64
64
  hostRef.$lazyInstance$ = lazyInstance;
65
- if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.prop)) {
65
+ if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
66
66
  reWireGetterSetter(lazyInstance, hostRef);
67
67
  }
68
68
  };
@@ -134,6 +134,7 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
134
134
  var styles = /* @__PURE__ */ new Map();
135
135
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
136
136
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
137
+ var XLINK_NS = "http://www.w3.org/1999/xlink";
137
138
  var MAX_LAZY_LOAD_RETRIES = 3;
138
139
  var LAZY_LOAD_RETRY_INTERVAL_MS = 1e3;
139
140
  var win = typeof window !== "undefined" ? window : {};
@@ -562,6 +563,31 @@ var newVNode = (tag, text) => {
562
563
  var Host = {};
563
564
  var isHost = (node) => node && node.$tag$ === Host;
564
565
 
566
+ // src/runtime/normalize-watchers.ts
567
+ var normalizeWatchers = (raw) => {
568
+ if (!raw) return void 0;
569
+ const keys = Object.keys(raw);
570
+ if (keys.length === 0) return void 0;
571
+ let hasLegacy = false;
572
+ for (const propName of keys) {
573
+ if (hasLegacy) break;
574
+ for (const h2 of raw[propName]) {
575
+ if (typeof h2 === "string") {
576
+ hasLegacy = true;
577
+ break;
578
+ }
579
+ }
580
+ }
581
+ if (!hasLegacy) return raw;
582
+ const out = {};
583
+ for (const propName of keys) {
584
+ out[propName] = raw[propName].map(
585
+ (h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
586
+ );
587
+ }
588
+ return out;
589
+ };
590
+
565
591
  // src/runtime/parse-property-value.ts
566
592
  var parsePropertyValue = (propValue, propType, isFormAssociated) => {
567
593
  if (propValue != null && !isComplexType(propValue)) {
@@ -570,6 +596,9 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
570
596
  return propValue === "false" ? false : propValue === "" || !!propValue;
571
597
  }
572
598
  }
599
+ if (propType & 2 /* Number */) {
600
+ return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
601
+ }
573
602
  if (propType & 1 /* String */) {
574
603
  return String(propValue);
575
604
  }
@@ -616,7 +645,32 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
616
645
  classList.remove(...removedClasses);
617
646
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
618
647
  }
619
- } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
648
+ } else if (memberName === "style") {
649
+ {
650
+ for (const prop in oldValue) {
651
+ if (!newValue || newValue[prop] == null) {
652
+ if (prop.includes("-")) {
653
+ elm.style.removeProperty(prop);
654
+ } else {
655
+ elm.style[prop] = "";
656
+ }
657
+ }
658
+ }
659
+ }
660
+ for (const prop in newValue) {
661
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
662
+ if (prop.includes("-")) {
663
+ elm.style.setProperty(prop, newValue[prop]);
664
+ } else {
665
+ elm.style[prop] = newValue[prop];
666
+ }
667
+ }
668
+ }
669
+ } else if (memberName === "key") ; else if (memberName === "ref") {
670
+ if (newValue) {
671
+ queueRefAttachment(newValue, elm);
672
+ }
673
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
620
674
  if (memberName[2] === "-") {
621
675
  memberName = memberName.slice(3);
622
676
  } else if (isMemberInElement(win, ln)) {
@@ -685,15 +739,26 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
685
739
  } catch (e) {
686
740
  }
687
741
  }
742
+ let xlink = false;
743
+ {
744
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
745
+ memberName = ln;
746
+ xlink = true;
747
+ }
748
+ }
688
749
  if (newValue == null || newValue === false) {
689
750
  if (newValue !== false || elm.getAttribute(memberName) === "" || flags & 4 /* isHost */ && !isEnumeratedAttribute(memberName)) {
690
- {
751
+ if (xlink) {
752
+ elm.removeAttributeNS(XLINK_NS, memberName);
753
+ } else {
691
754
  elm.removeAttribute(memberName);
692
755
  }
693
756
  }
694
757
  } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
695
758
  newValue = newValue === true ? "" : newValue;
696
- {
759
+ if (xlink) {
760
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
761
+ } else {
697
762
  elm.setAttribute(memberName, newValue);
698
763
  }
699
764
  }
@@ -757,6 +822,8 @@ var useNativeShadowDom = false;
757
822
  var checkSlotFallbackVisibility = false;
758
823
  var checkSlotRelocate = false;
759
824
  var isSvgMode = false;
825
+ var refCallbacksToRemove = [];
826
+ var refCallbacksToAttach = [];
760
827
  var createElm = (oldParentVNode, newParentVNode, childIndex) => {
761
828
  var _a;
762
829
  const newVNode2 = newParentVNode.$children$[childIndex];
@@ -903,6 +970,7 @@ var removeVnodes = (vnodes, startIdx, endIdx) => {
903
970
  const vnode = vnodes[index];
904
971
  if (vnode) {
905
972
  const elm = vnode.$elm$;
973
+ nullifyVNodeRefs(vnode);
906
974
  if (elm) {
907
975
  {
908
976
  checkSlotFallbackVisibility = true;
@@ -1123,6 +1191,27 @@ var markSlotContentForRelocation = (elm) => {
1123
1191
  }
1124
1192
  }
1125
1193
  };
1194
+ var nullifyVNodeRefs = (vNode) => {
1195
+ {
1196
+ if (vNode.$attrs$ && vNode.$attrs$.ref) {
1197
+ refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
1198
+ }
1199
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1200
+ }
1201
+ };
1202
+ var queueRefAttachment = (refCallback, elm) => {
1203
+ {
1204
+ refCallbacksToAttach.push(() => refCallback(elm));
1205
+ }
1206
+ };
1207
+ var flushQueuedRefCallbacks = () => {
1208
+ {
1209
+ refCallbacksToRemove.forEach((cb) => cb());
1210
+ refCallbacksToRemove.length = 0;
1211
+ refCallbacksToAttach.forEach((cb) => cb());
1212
+ refCallbacksToAttach.length = 0;
1213
+ }
1214
+ };
1126
1215
  var insertBefore = (parent, newNode, reference, isInitialLoad) => {
1127
1216
  {
1128
1217
  if (typeof newNode["s-sn"] === "string") {
@@ -1266,6 +1355,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1266
1355
  }
1267
1356
  }
1268
1357
  contentRef = void 0;
1358
+ flushQueuedRefCallbacks();
1269
1359
  };
1270
1360
 
1271
1361
  // src/runtime/update-component.ts
@@ -1455,6 +1545,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1455
1545
  `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
1456
1546
  );
1457
1547
  }
1548
+ const elm = hostRef.$hostElement$ ;
1458
1549
  const oldVal = hostRef.$instanceValues$.get(propName);
1459
1550
  const flags = hostRef.$flags$;
1460
1551
  const instance = hostRef.$lazyInstance$ ;
@@ -1465,6 +1556,27 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1465
1556
  const didValueChange = newVal !== oldVal && !areBothNaN;
1466
1557
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1467
1558
  hostRef.$instanceValues$.set(propName, newVal);
1559
+ if (cmpMeta.$watchers$) {
1560
+ const watchMethods = cmpMeta.$watchers$[propName];
1561
+ if (watchMethods) {
1562
+ watchMethods.map((watcher) => {
1563
+ try {
1564
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
1565
+ if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
1566
+ if (!instance) {
1567
+ hostRef.$fetchedCbList$.push(() => {
1568
+ hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
1569
+ });
1570
+ } else {
1571
+ instance[watchMethodName](newVal, oldVal, propName);
1572
+ }
1573
+ }
1574
+ } catch (e) {
1575
+ consoleError(e, elm);
1576
+ }
1577
+ });
1578
+ }
1579
+ }
1468
1580
  if (flags & 2 /* hasRendered */) {
1469
1581
  if (instance.componentShouldUpdate) {
1470
1582
  const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
@@ -1498,6 +1610,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1498
1610
  var _a, _b;
1499
1611
  const prototype = Cstr.prototype;
1500
1612
  if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1613
+ {
1614
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
1615
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
1616
+ }
1617
+ if (Cstr.deserializers && !cmpMeta.$deserializers$) {
1618
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1619
+ }
1620
+ if (Cstr.serializers && !cmpMeta.$serializers$) {
1621
+ cmpMeta.$serializers$ = Cstr.serializers;
1622
+ }
1623
+ }
1501
1624
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1502
1625
  members.map(([memberName, [memberFlags]]) => {
1503
1626
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
@@ -1655,6 +1778,11 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1655
1778
  throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1656
1779
  }
1657
1780
  if (!Cstr.isProxied) {
1781
+ {
1782
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
1783
+ cmpMeta.$serializers$ = Cstr.serializers;
1784
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1785
+ }
1658
1786
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1659
1787
  Cstr.isProxied = true;
1660
1788
  }
@@ -1671,6 +1799,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1671
1799
  hostRef.$flags$ &= -9 /* isConstructingInstance */;
1672
1800
  replayPendingSetterValues(hostRef, cmpMeta);
1673
1801
  }
1802
+ {
1803
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1804
+ }
1674
1805
  endNewInstance();
1675
1806
  const needsDeferredCallback = cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
1676
1807
  if (!needsDeferredCallback) {
@@ -1831,6 +1962,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1831
1962
  let hasSlotRelocation = false;
1832
1963
  lazyBundles.map((lazyBundle) => {
1833
1964
  lazyBundle[1].map((compactMeta) => {
1965
+ var _a2, _b;
1834
1966
  const cmpMeta = {
1835
1967
  $flags$: compactMeta[0],
1836
1968
  $tagName$: compactMeta[1],
@@ -1849,6 +1981,11 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1849
1981
  {
1850
1982
  cmpMeta.$attrsToReflect$ = [];
1851
1983
  }
1984
+ {
1985
+ cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);
1986
+ cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};
1987
+ cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};
1988
+ }
1852
1989
  const tagName = transformTag(cmpMeta.$tagName$);
1853
1990
  const HostElement = class extends HTMLElement {
1854
1991
  ["s-p"];
@@ -1963,6 +2100,9 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1963
2100
  }
1964
2101
  };
1965
2102
  var getHostListenerTarget = (doc, elm, flags) => {
2103
+ if (flags & 4 /* TargetDocument */) {
2104
+ return doc;
2105
+ }
1966
2106
  if (flags & 8 /* TargetWindow */) {
1967
2107
  return win;
1968
2108
  }
@@ -1979,4 +2119,4 @@ function transformTag(tag) {
1979
2119
  return tag;
1980
2120
  }
1981
2121
 
1982
- export { bootstrapLazy as b, createEvent as c, h, promiseResolve as p, registerInstance as r, setNonce as s };
2122
+ export { bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
@@ -1,11 +1,11 @@
1
- import { b as bootstrapLazy } from './index-BtM1wZ-I.js';
2
- export { s as setNonce } from './index-BtM1wZ-I.js';
1
+ import { b as bootstrapLazy } from './index-C-5sEjU8.js';
2
+ export { s as setNonce } from './index-C-5sEjU8.js';
3
3
  import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["evoke-alert_6",[[260,"evoke-alert",{"type":[1],"dismissible":[4]}],[260,"evoke-button",{"variant":[1],"type":[1],"disabled":[4],"block":[516],"buttonClass":[1,"button-class"]}],[260,"evoke-checkbox",{"label":[1],"checked":[1540],"disabled":[4],"error":[1],"inputClass":[1,"input-class"]}],[0,"evoke-input",{"label":[1],"value":[1025],"type":[1],"placeholder":[1],"disabled":[4],"error":[1],"icon":[1],"inputClass":[1,"input-class"]}],[0,"evoke-radio-group",{"label":[1],"options":[1],"value":[1025],"name":[1],"disabled":[4],"inline":[4],"error":[1]}],[0,"evoke-select",{"label":[1],"options":[1],"value":[1025],"placeholder":[1],"disabled":[4],"error":[1],"selectClass":[1,"select-class"]}]]],["evoke-card",[[260,"evoke-card",{"heading":[1],"cardClass":[1,"card-class"]}]]],["evoke-modal",[[260,"evoke-modal",{"open":[1540],"heading":[1],"closeOnBackdrop":[4,"close-on-backdrop"],"modalClass":[1,"modal-class"]},[[8,"keydown","onKeydown"]]]]]], options);
8
+ return bootstrapLazy([["evoke-alert_20",[[260,"evoke-alert",{"type":[1],"appearance":[1],"dismissible":[4]}],[260,"evoke-app-bar",{"appearance":[1],"sticky":[516],"navLabel":[1,"nav-label"]}],[260,"evoke-badge",{"count":[2],"max":[2],"dot":[4],"showZero":[4,"show-zero"],"color":[1],"label":[1]}],[260,"evoke-button",{"variant":[1],"size":[1],"type":[1],"disabled":[4],"loading":[4],"icon":[1],"iconOnly":[516,"icon-only"],"accessibleLabel":[1,"accessible-label"],"block":[516],"buttonClass":[1,"button-class"]}],[260,"evoke-card",{"heading":[1],"appearance":[1],"clickable":[4],"cardClass":[1,"card-class"]}],[260,"evoke-checkbox",{"label":[1],"checked":[1540],"indeterminate":[1540],"disabled":[4],"error":[1],"inputClass":[1,"input-class"]}],[260,"evoke-chip",{"label":[1],"selected":[1540],"removable":[4],"disabled":[4]}],[0,"evoke-input",{"label":[1],"value":[1025],"type":[1],"name":[1],"placeholder":[1],"disabled":[4],"required":[4],"appearance":[1],"error":[1],"hint":[1],"icon":[1],"inputClass":[1,"input-class"]}],[260,"evoke-modal",{"open":[1540],"heading":[1],"position":[1],"size":[1],"closeOnBackdrop":[4,"close-on-backdrop"],"modalClass":[1,"modal-class"]},[[8,"keydown","onKeydown"]],{"open":[{"onOpenChange":0}]}],[0,"evoke-pagination",{"page":[1026],"total":[2],"appearance":[1],"disabled":[4]}],[0,"evoke-progress",{"type":[1],"value":[2],"indeterminate":[4],"label":[1],"size":[2]}],[0,"evoke-quantity-stepper",{"value":[1026],"min":[2],"max":[2],"appearance":[1],"disabled":[4],"label":[1]}],[0,"evoke-radio-group",{"label":[1],"options":[1],"value":[1025],"name":[1],"disabled":[4],"appearance":[1],"inline":[4],"error":[1]}],[0,"evoke-select",{"label":[1],"options":[1],"value":[1025],"placeholder":[1],"multiple":[4],"searchable":[4],"disabled":[4],"error":[1],"hint":[1],"selectClass":[1,"select-class"],"isOpen":[32],"query":[32],"activeIndex":[32]},[[4,"click","onDocClick"]]],[0,"evoke-switch",{"checked":[1540],"label":[1],"description":[1],"disabled":[4],"accessibleLabel":[1,"accessible-label"]}],[0,"evoke-table",{"columns":[1],"rows":[1],"striped":[4],"sortable":[4],"caption":[1],"emptyText":[1,"empty-text"],"sortKey":[32],"sortDir":[32]}],[260,"evoke-tabs",{"options":[1],"value":[1025],"appearance":[1],"label":[1]}],[0,"evoke-textarea",{"label":[1],"value":[1025],"name":[1],"placeholder":[1],"rows":[2],"autoGrow":[4,"auto-grow"],"maxLength":[2,"max-length"],"disabled":[4],"required":[4],"error":[1],"hint":[1],"textareaClass":[1,"textarea-class"]}],[260,"evoke-toast",{"open":[1540],"message":[1],"type":[1],"action":[1],"duration":[2],"position":[1]},null,{"open":[{"onOpen":0}]}],[260,"evoke-tooltip",{"text":[1],"placement":[1],"theme":[1],"visible":[32]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -1 +1 @@
1
- :root{--evoke-primary:#ff5316;--evoke-primary-contrast:#ffffff;--evoke-secondary:#0b1560;--evoke-secondary-contrast:#ffffff;--evoke-danger:#dc2626;--evoke-success:#16a34a;--evoke-warning:#d97706;--evoke-info:#0891b2;--evoke-surface:#ffffff;--evoke-text:#1a1a1a;--evoke-text-muted:#7a7a7a;--evoke-border:#dedede;--evoke-radius:8px;--evoke-radius-field:8px;--evoke-radius-button:9999px;--evoke-control-height:56px;--evoke-button-padding-x:36px;--evoke-font:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;--evoke-font-size:16px;--evoke-focus-ring:0 0 0 3px rgba(11, 21, 96, 0.15)}
1
+ :root{--evoke-primary:#ff5316;--evoke-primary-contrast:#ffffff;--evoke-secondary:#0b1560;--evoke-secondary-contrast:#ffffff;--evoke-danger:#dc2626;--evoke-success:#16a34a;--evoke-warning:#d97706;--evoke-info:#0891b2;--evoke-surface:#ffffff;--evoke-text:#1a1a1a;--evoke-text-muted:#6b6b6b;--evoke-border:#dedede;--evoke-radius:8px;--evoke-radius-field:8px;--evoke-radius-button:9999px;--evoke-control-height:56px;--evoke-button-padding-x:36px;--evoke-font:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;--evoke-font-size:16px;--evoke-focus-ring:0 0 0 3px rgba(11, 21, 96, 0.15);--evoke-surface-muted:#f5f5f5;--evoke-shadow:0 4px 12px rgba(0, 0, 0, 0.12);--evoke-primary-text:#cc3d0d}
@@ -1 +1 @@
1
- import{p as e,b as a}from"./p-BtM1wZ-I.js";export{s as setNonce}from"./p-BtM1wZ-I.js";import{g as o}from"./p-DQuL1Twl.js";(()=>{const a=import.meta.url,s={};return""!==a&&(s.resourcesUrl=new URL(".",a).href),e(s)})().then((async e=>(await o(),a([["p-243075cd",[[260,"evoke-alert",{type:[1],dismissible:[4]}],[260,"evoke-button",{variant:[1],type:[1],disabled:[4],block:[516],buttonClass:[1,"button-class"]}],[260,"evoke-checkbox",{label:[1],checked:[1540],disabled:[4],error:[1],inputClass:[1,"input-class"]}],[0,"evoke-input",{label:[1],value:[1025],type:[1],placeholder:[1],disabled:[4],error:[1],icon:[1],inputClass:[1,"input-class"]}],[0,"evoke-radio-group",{label:[1],options:[1],value:[1025],name:[1],disabled:[4],inline:[4],error:[1]}],[0,"evoke-select",{label:[1],options:[1],value:[1025],placeholder:[1],disabled:[4],error:[1],selectClass:[1,"select-class"]}]]],["p-9a6eaeb6",[[260,"evoke-card",{heading:[1],cardClass:[1,"card-class"]}]]],["p-605d4757",[[260,"evoke-modal",{open:[1540],heading:[1],closeOnBackdrop:[4,"close-on-backdrop"],modalClass:[1,"modal-class"]},[[8,"keydown","onKeydown"]]]]]],e))));
1
+ import{p as e,b as a}from"./p-C-5sEjU8.js";export{s as setNonce}from"./p-C-5sEjU8.js";import{g as l}from"./p-DQuL1Twl.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await l(),a([["p-0841be89",[[260,"evoke-alert",{type:[1],appearance:[1],dismissible:[4]}],[260,"evoke-app-bar",{appearance:[1],sticky:[516],navLabel:[1,"nav-label"]}],[260,"evoke-badge",{count:[2],max:[2],dot:[4],showZero:[4,"show-zero"],color:[1],label:[1]}],[260,"evoke-button",{variant:[1],size:[1],type:[1],disabled:[4],loading:[4],icon:[1],iconOnly:[516,"icon-only"],accessibleLabel:[1,"accessible-label"],block:[516],buttonClass:[1,"button-class"]}],[260,"evoke-card",{heading:[1],appearance:[1],clickable:[4],cardClass:[1,"card-class"]}],[260,"evoke-checkbox",{label:[1],checked:[1540],indeterminate:[1540],disabled:[4],error:[1],inputClass:[1,"input-class"]}],[260,"evoke-chip",{label:[1],selected:[1540],removable:[4],disabled:[4]}],[0,"evoke-input",{label:[1],value:[1025],type:[1],name:[1],placeholder:[1],disabled:[4],required:[4],appearance:[1],error:[1],hint:[1],icon:[1],inputClass:[1,"input-class"]}],[260,"evoke-modal",{open:[1540],heading:[1],position:[1],size:[1],closeOnBackdrop:[4,"close-on-backdrop"],modalClass:[1,"modal-class"]},[[8,"keydown","onKeydown"]],{open:[{onOpenChange:0}]}],[0,"evoke-pagination",{page:[1026],total:[2],appearance:[1],disabled:[4]}],[0,"evoke-progress",{type:[1],value:[2],indeterminate:[4],label:[1],size:[2]}],[0,"evoke-quantity-stepper",{value:[1026],min:[2],max:[2],appearance:[1],disabled:[4],label:[1]}],[0,"evoke-radio-group",{label:[1],options:[1],value:[1025],name:[1],disabled:[4],appearance:[1],inline:[4],error:[1]}],[0,"evoke-select",{label:[1],options:[1],value:[1025],placeholder:[1],multiple:[4],searchable:[4],disabled:[4],error:[1],hint:[1],selectClass:[1,"select-class"],isOpen:[32],query:[32],activeIndex:[32]},[[4,"click","onDocClick"]]],[0,"evoke-switch",{checked:[1540],label:[1],description:[1],disabled:[4],accessibleLabel:[1,"accessible-label"]}],[0,"evoke-table",{columns:[1],rows:[1],striped:[4],sortable:[4],caption:[1],emptyText:[1,"empty-text"],sortKey:[32],sortDir:[32]}],[260,"evoke-tabs",{options:[1],value:[1025],appearance:[1],label:[1]}],[0,"evoke-textarea",{label:[1],value:[1025],name:[1],placeholder:[1],rows:[2],autoGrow:[4,"auto-grow"],maxLength:[2,"max-length"],disabled:[4],required:[4],error:[1],hint:[1],textareaClass:[1,"textarea-class"]}],[260,"evoke-toast",{open:[1540],message:[1],type:[1],action:[1],duration:[2],position:[1]},null,{open:[{onOpen:0}]}],[260,"evoke-tooltip",{text:[1],placement:[1],theme:[1],visible:[32]}]]]],e))));
@@ -0,0 +1 @@
1
+ import{h as e,r as o,c as t,g as i}from"./p-C-5sEjU8.js";const a={mail:["M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z","m22 7-10 6L2 7"],lock:["M5 11h14a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2z","M7 11V7a5 5 0 0 1 10 0v4"],user:["M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2","M12 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8z"],search:["M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16z","m21 21-4.3-4.3"],plus:["M12 5v14","M5 12h14"],minus:["M5 12h14"],check:["M20 6 9 17l-5-5"],x:["M18 6 6 18","m6 6 12 12"],"chevron-down":["m6 9 6 6 6-6"],"chevron-up":["m18 15-6-6-6 6"],"chevron-left":["m15 18-6-6 6-6"],"chevron-right":["m9 18 6-6-6-6"],"arrow-right":["M5 12h14","m12 5 7 7-7 7"],"arrow-up":["M12 19V5","m5 12 7-7 7 7"],"arrow-down":["M12 5v14","m19 12-7 7-7-7"],sort:["m7 15 5 5 5-5","m7 9 5-5 5 5"],cart:["M9 21a1 1 0 1 0 0-2 1 1 0 0 0 0 2z","M20 21a1 1 0 1 0 0-2 1 1 0 0 0 0 2z","M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6"],info:["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z","M12 16v-4","M12 8h.01"],alert:["M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z","M12 9v4","M12 17h.01"]};function r(o,t="evoke-icon"){const i=o?a[o]:void 0;return i?e("svg",{class:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true",focusable:"false"},i.map((o=>e("path",{d:o})))):null}const s={info:"info",success:"check",warning:"alert",danger:"alert"},n=class{constructor(e){o(this,e),this.evokeDismiss=t(this,"evokeDismiss"),this.type="info",this.appearance="subtle",this.dismissible=!1}render(){return e("div",{key:"a1b27ec91bb55baeacdcf9547f5a6680faad87e6",class:`evoke-alert evoke-alert--${this.type} evoke-alert--${this.appearance}`,role:"danger"===this.type||"warning"===this.type?"alert":"status"},r(s[this.type],"evoke-alert__icon"),e("div",{key:"499700905c4cd7ca6de877185ed0b8a02d1d1ed9",class:"evoke-alert__content"},e("slot",{key:"122793b5693dc905c6bfbd680ae050a12be57400"})),this.dismissible&&e("button",{key:"a6bd557fdefc34efcf8b87552130b9a55425c381",type:"button",class:"evoke-alert__close","aria-label":"Dismiss",onClick:()=>this.evokeDismiss.emit()},r("x","evoke-icon")))}};n.style="evoke-alert{display:block}evoke-alert .evoke-alert{--_c:var(--evoke-info, #0891b2);display:flex;align-items:flex-start;gap:0.75rem;padding:0.75rem 1rem;border-radius:var(--evoke-radius, 8px);border:1px solid var(--_c);font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif)}evoke-alert .evoke-alert--info{--_c:var(--evoke-info, #0891b2)}evoke-alert .evoke-alert--success{--_c:var(--evoke-success, #16a34a)}evoke-alert .evoke-alert--warning{--_c:var(--evoke-warning, #d97706)}evoke-alert .evoke-alert--danger{--_c:var(--evoke-danger, #dc2626)}evoke-alert .evoke-alert--subtle{background:color-mix(in srgb, var(--_c) 12%, var(--evoke-surface, #ffffff));color:var(--evoke-text, #1a1a1a)}evoke-alert .evoke-alert--subtle .evoke-alert__icon{color:var(--_c)}evoke-alert .evoke-alert--solid{background:color-mix(in srgb, var(--_c) 78%, #000);border-color:color-mix(in srgb, var(--_c) 78%, #000);color:#fff}evoke-alert .evoke-alert__icon{flex:none;width:20px;height:20px;margin-top:2px}evoke-alert .evoke-alert__content{flex:1;min-width:0}evoke-alert .evoke-alert__close{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;background:none;border:0;border-radius:50%;color:inherit;cursor:pointer}evoke-alert .evoke-alert__close:hover{background:color-mix(in srgb, currentColor 14%, transparent)}evoke-alert .evoke-alert__close:active{background:color-mix(in srgb, currentColor 24%, transparent)}evoke-alert .evoke-alert__close:focus-visible{outline:none;box-shadow:0 0 0 3px color-mix(in srgb, currentColor 40%, transparent)}evoke-alert .evoke-alert__close .evoke-icon{width:16px;height:16px}";const v=class{constructor(e){o(this,e),this.appearance="light",this.sticky=!1,this.navLabel="Main"}render(){return e("header",{key:"11366baa08e286c8412eefbf82660f289fe42738",class:`evoke-appbar evoke-appbar--${this.appearance}`},e("div",{key:"4a44bb53fc220b2c880fbafa79aecb2d195b2b85",class:"evoke-appbar__logo"},e("slot",{key:"bb727e24bb1058f0a6b6b4ffbe78616f639b15bd",name:"logo"})),e("nav",{key:"6d2023a4dad87266641d3cb2747218926c1750c7",class:"evoke-appbar__nav","aria-label":this.navLabel},e("slot",{key:"ce4f50acddb09ebbc0c03538052cbd69e231fd2e",name:"nav"})),e("div",{key:"ff64630598e48bf5b0b6708799247e8bcf54b184",class:"evoke-appbar__actions"},e("slot",{key:"e782ff890c366a72fe65df8f0544ad09c0818cc6",name:"actions"})))}};v.style="evoke-app-bar{display:block}evoke-app-bar[sticky]{position:sticky;top:0;z-index:50}evoke-app-bar .evoke-appbar{--_fg:var(--evoke-text, #1a1a1a);box-sizing:border-box;display:flex;align-items:center;gap:24px;min-height:64px;padding:8px 24px;font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);background:var(--evoke-surface, #ffffff);color:var(--_fg);border-bottom:1px solid var(--evoke-border, #dedede)}evoke-app-bar .evoke-appbar--dark{--_fg:var(--evoke-secondary-contrast, #ffffff);background:var(--evoke-secondary, #0b1560);border-bottom-color:transparent}evoke-app-bar .evoke-appbar__logo{display:flex;align-items:center;gap:10px;font-weight:700;font-size:1.125rem;flex:none}evoke-app-bar .evoke-appbar__nav{display:flex;align-items:center;gap:4px;flex:1;min-width:0;overflow-x:auto}evoke-app-bar .evoke-appbar__actions{display:flex;align-items:center;gap:12px;flex:none;margin-left:auto}evoke-app-bar .evoke-appbar__nav a,evoke-app-bar .evoke-appbar__nav button{display:inline-flex;align-items:center;padding:8px 14px;font:inherit;color:inherit;text-decoration:none;background:none;border:0;border-radius:var(--evoke-radius-field, 8px);cursor:pointer;opacity:0.85;transition:background-color 0.15s, opacity 0.15s}evoke-app-bar .evoke-appbar__nav a:hover,evoke-app-bar .evoke-appbar__nav button:hover{opacity:1;background:color-mix(in srgb, currentColor 10%, transparent)}evoke-app-bar .evoke-appbar__nav a:active,evoke-app-bar .evoke-appbar__nav button:active{background:color-mix(in srgb, currentColor 18%, transparent)}evoke-app-bar .evoke-appbar__nav a[aria-current],evoke-app-bar .evoke-appbar__nav a.active{opacity:1;font-weight:600;box-shadow:inset 0 -2px 0 var(--evoke-primary, #ff5316);border-radius:0}evoke-app-bar .evoke-appbar__nav a:focus-visible,evoke-app-bar .evoke-appbar__nav button:focus-visible{outline:2px solid var(--evoke-primary, #ff5316);outline-offset:1px}";const d=class{constructor(e){o(this,e),this.count=0,this.max=99,this.dot=!1,this.showZero=!1,this.color="danger",this.label="",this.hasContent=!1}componentWillLoad(){this.hasContent=Array.from(this.el.childNodes).some((e=>{var o;return 1===e.nodeType||3===e.nodeType&&!!(null===(o=e.textContent)||void 0===o?void 0:o.trim())}))}render(){const o=this.count>this.max?`${this.max}+`:String(this.count),t=!this.dot&&(this.count>0||this.showZero),i=this.dot?e("span",{class:`evoke-badge evoke-badge--dot evoke-badge--${this.color}`,role:this.label?"status":void 0,"aria-label":this.label||void 0,"aria-hidden":this.label?void 0:"true"}):t?e("span",{class:`evoke-badge evoke-badge--count evoke-badge--${this.color}`},e("span",{"aria-hidden":this.label?"true":void 0},o),this.label&&e("span",{class:"evoke-badge__sr"},this.label)):null;return e("span",{key:"c49ac8a3361b9dcdfa3ebc3eacfca2079a3da60f",class:("evoke-badge-wrap "+(this.hasContent?"evoke-badge-wrap--anchored":"")).trim()},e("slot",{key:"b25c9150dcca4299ccae5735dcd0ea9a0c7e973a"}),i)}get el(){return i(this)}};d.style="evoke-badge{display:inline-block}evoke-badge .evoke-badge-wrap{position:relative;display:inline-flex;vertical-align:middle}evoke-badge .evoke-badge{--_bg:var(--evoke-danger, #dc2626);--_fg:#fff;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;background:var(--_bg);color:var(--_fg);font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);font-weight:600}evoke-badge .evoke-badge--primary{--_bg:color-mix(in srgb, var(--evoke-primary, #ff5316) 82%, #000)}evoke-badge .evoke-badge--secondary{--_bg:var(--evoke-secondary, #0b1560);--_fg:var(--evoke-secondary-contrast, #ffffff)}evoke-badge .evoke-badge--danger{--_bg:color-mix(in srgb, var(--evoke-danger, #dc2626) 85%, #000)}evoke-badge .evoke-badge--success{--_bg:color-mix(in srgb, var(--evoke-success, #16a34a) 78%, #000)}evoke-badge .evoke-badge--warning{--_bg:color-mix(in srgb, var(--evoke-warning, #d97706) 78%, #000)}evoke-badge .evoke-badge--info{--_bg:color-mix(in srgb, var(--evoke-info, #0891b2) 78%, #000)}evoke-badge .evoke-badge--count{min-width:20px;height:20px;padding:0 6px;border-radius:9999px;font-size:0.75rem;line-height:1}evoke-badge .evoke-badge--dot{width:10px;height:10px;border-radius:50%}evoke-badge .evoke-badge-wrap--anchored>.evoke-badge{position:absolute;top:0;right:0;transform:translate(35%, -35%);box-shadow:0 0 0 2px var(--evoke-surface, #ffffff)}evoke-badge .evoke-badge__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}";const l=class{constructor(e){o(this,e),this.variant="primary",this.size="md",this.type="button",this.disabled=!1,this.loading=!1,this.iconOnly=!1,this.block=!1,this.buttonClass=""}render(){return e("button",{key:"f7d86f18cbcfd1d23b82cf37072f5af93c8d7ef3",type:this.type,class:`evoke-btn evoke-btn--${this.variant} evoke-btn--${this.size} ${this.iconOnly?"evoke-btn--icon":""} ${this.loading?"evoke-btn--loading":""} ${this.buttonClass}`.replace(/\s+/g," ").trim(),disabled:this.disabled||this.loading,"aria-busy":this.loading?"true":void 0,"aria-label":this.accessibleLabel},this.loading?e("span",{class:"evoke-spinner","aria-hidden":"true"}):r(this.icon),e("slot",{key:"15d7302d67b7976d772e6b510e27b7e3f23c0634"}))}};l.style="evoke-button{display:inline-block}evoke-button .evoke-btn{box-sizing:border-box;font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);font-size:var(--evoke-font-size, 16px);line-height:1.5;cursor:pointer;height:var(--evoke-control-height, 56px);padding:0 var(--evoke-button-padding-x, 36px);display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;border:1px solid transparent;border-radius:var(--evoke-radius-button, 9999px);transition:filter 0.15s, background-color 0.15s, box-shadow 0.15s, transform 0.05s}evoke-button .evoke-btn--sm{height:calc(var(--evoke-control-height, 56px) * 0.75);padding:0 calc(var(--evoke-button-padding-x, 36px) * 0.6);font-size:0.875rem}evoke-button .evoke-btn--lg{height:calc(var(--evoke-control-height, 56px) * 1.15);padding:0 calc(var(--evoke-button-padding-x, 36px) * 1.2);font-size:1.125rem}evoke-button .evoke-btn--icon{padding:0;width:var(--evoke-control-height, 56px)}evoke-button .evoke-btn--icon.evoke-btn--sm{width:calc(var(--evoke-control-height, 56px) * 0.75)}evoke-button .evoke-btn--icon.evoke-btn--lg{width:calc(var(--evoke-control-height, 56px) * 1.15)}evoke-button .evoke-icon{width:1.1em;height:1.1em;flex:none}evoke-button .evoke-btn:hover:not(:disabled){filter:brightness(0.92)}evoke-button .evoke-btn:active:not(:disabled){filter:brightness(0.82);transform:translateY(1px)}evoke-button .evoke-btn:focus-visible{outline:none;box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15))}evoke-button .evoke-btn:disabled{opacity:0.5;cursor:not-allowed}evoke-button .evoke-btn--loading:disabled{cursor:progress;opacity:0.8}evoke-button .evoke-btn--primary{background:var(--evoke-primary, #ff5316);color:var(--evoke-primary-contrast, #ffffff)}evoke-button .evoke-btn--secondary{background:var(--evoke-secondary, #0b1560);color:var(--evoke-secondary-contrast, #ffffff)}evoke-button .evoke-btn--danger{background:var(--evoke-danger, #dc2626);color:#fff}evoke-button .evoke-btn--outline{background:transparent;color:var(--evoke-primary-text, #cc3d0d);border-color:var(--evoke-primary, #ff5316)}evoke-button .evoke-btn--ghost{background:transparent;color:var(--evoke-primary-text, #cc3d0d);border-color:transparent}evoke-button .evoke-btn--ghost:hover:not(:disabled){filter:none;background:color-mix(in srgb, var(--evoke-primary, #ff5316) 10%, transparent)}evoke-button .evoke-btn--ghost:active:not(:disabled){filter:none;background:color-mix(in srgb, var(--evoke-primary, #ff5316) 18%, transparent)}evoke-button .evoke-spinner{width:1em;height:1em;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:evoke-spin 0.7s linear infinite}@keyframes evoke-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){evoke-button .evoke-spinner{animation-duration:2s}}evoke-button[block]{display:block}evoke-button[block] .evoke-btn{width:100%}";const c=class{constructor(e){o(this,e),this.evokeClick=t(this,"evokeClick"),this.heading="",this.appearance="outlined",this.clickable=!1,this.cardClass="",this.activate=()=>{this.clickable&&this.evokeClick.emit()},this.onKeyDown=e=>{this.clickable&&e.target===e.currentTarget&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.activate()))}}render(){return e("div",{key:"770d8327a59c90f0dee5a2150de270e23024e7c2",class:`evoke-card evoke-card--${this.appearance} ${this.clickable?"evoke-card--clickable":""} ${this.cardClass}`.replace(/\s+/g," ").trim(),role:this.clickable?"button":void 0,tabindex:this.clickable?0:void 0,onClick:this.activate,onKeyDown:this.onKeyDown},e("div",{key:"16ffd16092680ff8c42e9a13e7e7313cc0c4f1d5",class:"evoke-card__media"},e("slot",{key:"92ba25d16ed81cad2dd4707cde97370b1e9efa33",name:"media"})),this.heading&&e("div",{key:"6fd2d9d1fe8afe8074fc38cc8247f007218a7450",class:"evoke-card__header"},this.heading),e("div",{key:"afa26c53bfed69d01b350760428456293ebeb7fd",class:"evoke-card__body"},e("slot",{key:"94e07c3b5f8170fae1667081cdcf39d5a869c249"})))}};c.style="evoke-card{display:block}evoke-card .evoke-card{background:var(--evoke-surface, #ffffff);color:var(--evoke-text, #1a1a1a);border:1px solid var(--evoke-border, #dedede);border-radius:var(--evoke-radius, 8px);font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);overflow:hidden;transition:box-shadow 0.15s, border-color 0.15s, transform 0.05s}evoke-card .evoke-card--elevated{border-color:transparent;box-shadow:var(--evoke-shadow, 0 4px 12px rgba(0, 0, 0, 0.12))}evoke-card .evoke-card__media img,evoke-card .evoke-card__media video{display:block;width:100%;height:auto}evoke-card .evoke-card__header{padding:0.75rem 1rem;font-weight:600;border-bottom:1px solid var(--evoke-border, #dedede)}evoke-card .evoke-card--elevated .evoke-card__header{border-bottom-color:transparent}evoke-card .evoke-card__body{padding:1rem}evoke-card .evoke-card--clickable{cursor:pointer}evoke-card .evoke-card--clickable:hover{border-color:var(--evoke-primary, #ff5316)}evoke-card .evoke-card--elevated.evoke-card--clickable:hover{border-color:transparent;box-shadow:0 8px 24px rgba(0, 0, 0, 0.18)}evoke-card .evoke-card--clickable:active{transform:translateY(1px)}evoke-card .evoke-card--clickable:focus-visible{outline:none;box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15));border-color:var(--evoke-secondary, #0b1560)}";const k=class{constructor(e){o(this,e),this.evokeChange=t(this,"evokeChange"),this.label="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error="",this.inputClass="",this.uid=Math.random().toString(36).slice(2,9)}componentDidRender(){this.inputEl&&(this.inputEl.indeterminate=this.indeterminate)}render(){const o=`evoke-check-${this.uid}-err`;return e("div",{key:"cc0882102020d6e748ee1c5bac124a3a2640862c",class:"evoke-check"},e("label",{key:"62390001ac96c2c0602541eafc37559ab95ae80a",class:"evoke-check__row "+(this.disabled?"evoke-check__row--disabled":"")},e("input",{key:"bf8732581d0c36d3ba89c4b3c67b08ebf1268699",type:"checkbox",class:`evoke-check__input ${this.error?"evoke-check__input--error":""} ${this.inputClass}`.trim(),checked:this.checked,disabled:this.disabled,"aria-checked":this.indeterminate?"mixed":void 0,"aria-invalid":this.error?"true":void 0,"aria-describedby":this.error?o:void 0,ref:e=>this.inputEl=e,onChange:e=>{this.indeterminate=!1,this.checked=e.target.checked,this.evokeChange.emit(this.checked)}}),e("span",{key:"6685db59dad6a3299179a04f67f25ca2d818c87a",class:"evoke-check__label"},this.label,e("slot",{key:"d2f72e8580dbfdabdd9e460642558a3b2199f098"}))),this.error&&e("span",{key:"2d63862c8cc3489b8e1217fab1aa20da0fb86449",id:o,class:"evoke-check__error",role:"alert"},this.error))}};k.style="evoke-checkbox{display:block}evoke-checkbox .evoke-check{display:flex;flex-direction:column;gap:0.25rem;font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);color:var(--evoke-text, #1a1a1a)}evoke-checkbox .evoke-check__row{display:inline-flex;align-items:center;gap:0.5rem;cursor:pointer;font-size:0.875rem}evoke-checkbox .evoke-check__row--disabled{opacity:0.6;cursor:not-allowed}evoke-checkbox .evoke-check__input{appearance:none;-webkit-appearance:none;margin:0;flex:none;width:16px;height:16px;border:2px solid var(--evoke-primary, #ff5316);border-radius:4px;background:var(--evoke-surface, #ffffff) center / 12px no-repeat;cursor:inherit;transition:background-color 0.15s, box-shadow 0.15s, filter 0.15s}evoke-checkbox .evoke-check__input:hover:not(:disabled){filter:brightness(0.92)}evoke-checkbox .evoke-check__input:active:not(:disabled){filter:brightness(0.8)}evoke-checkbox .evoke-check__input:checked{background-color:var(--evoke-primary, #ff5316);background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E\")}evoke-checkbox .evoke-check__input:indeterminate{background-color:var(--evoke-primary, #ff5316);background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E\")}evoke-checkbox .evoke-check__input:focus-visible{outline:none;box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15))}evoke-checkbox .evoke-check__input--error{border-color:var(--evoke-danger, #dc2626)}evoke-checkbox .evoke-check__error{color:var(--evoke-danger, #dc2626);font-size:0.875rem}";const h=class{constructor(e){o(this,e),this.evokeChange=t(this,"evokeChange"),this.evokeRemove=t(this,"evokeRemove"),this.label="",this.selected=!1,this.removable=!1,this.disabled=!1}render(){return this.removable?e("span",{class:("evoke-chip evoke-chip--removable "+(this.disabled?"evoke-chip--disabled":"")).trim()},e("span",{class:"evoke-chip__label"},this.label,e("slot",null)),e("button",{type:"button",class:"evoke-chip__remove","aria-label":`Remove ${this.label}`,disabled:this.disabled,onClick:()=>this.evokeRemove.emit()},r("x","evoke-icon"))):e("button",{type:"button",class:("evoke-chip evoke-chip--filter "+(this.selected?"evoke-chip--selected":"")).trim(),"aria-pressed":this.selected?"true":"false",disabled:this.disabled,onClick:()=>{this.selected=!this.selected,this.evokeChange.emit(this.selected)}},this.selected&&r("check","evoke-icon"),e("span",{class:"evoke-chip__label"},this.label,e("slot",null)))}};h.style="evoke-chip{display:inline-block}evoke-chip .evoke-chip{box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 14px;font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);font-size:0.875rem;color:var(--evoke-text, #1a1a1a);background:var(--evoke-surface, #ffffff);border:1px solid var(--evoke-border, #dedede);border-radius:9999px;transition:background-color 0.15s, border-color 0.15s, filter 0.15s}evoke-chip .evoke-chip .evoke-icon{width:14px;height:14px;flex:none}evoke-chip .evoke-chip--filter{cursor:pointer;font:inherit;font-size:0.875rem}evoke-chip .evoke-chip--filter:hover:not(:disabled):not(.evoke-chip--selected){background:var(--evoke-surface-muted, #f5f5f5);border-color:var(--evoke-text-muted, #6b6b6b)}evoke-chip .evoke-chip--filter:active:not(:disabled){filter:brightness(0.9)}evoke-chip .evoke-chip--filter:focus-visible{outline:none;box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15))}evoke-chip .evoke-chip--selected{background:color-mix(in srgb, var(--evoke-primary, #ff5316) 14%, var(--evoke-surface, #ffffff));border-color:var(--evoke-primary, #ff5316);color:var(--evoke-text, #1a1a1a)}evoke-chip .evoke-chip--selected .evoke-icon{color:var(--evoke-primary, #ff5316)}evoke-chip .evoke-chip--filter:disabled,evoke-chip .evoke-chip--disabled{opacity:0.5;cursor:not-allowed}evoke-chip .evoke-chip--removable{padding-right:4px;background:var(--evoke-surface-muted, #f5f5f5);border-color:transparent}evoke-chip .evoke-chip__remove{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;color:inherit;background:none;border:0;border-radius:50%;cursor:pointer}evoke-chip .evoke-chip__remove:hover:not(:disabled){background:color-mix(in srgb, var(--evoke-text, #1a1a1a) 14%, transparent)}evoke-chip .evoke-chip__remove:active:not(:disabled){background:color-mix(in srgb, var(--evoke-text, #1a1a1a) 24%, transparent)}evoke-chip .evoke-chip__remove:focus-visible{outline:none;box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15))}evoke-chip .evoke-chip__remove:disabled{cursor:not-allowed}";const b=class{constructor(e){o(this,e),this.evokeInput=t(this,"evokeInput"),this.evokeChange=t(this,"evokeChange"),this.label="",this.value="",this.type="text",this.name="",this.placeholder="",this.disabled=!1,this.required=!1,this.appearance="outlined",this.error="",this.hint="",this.inputClass="",this.inputId=`evoke-input-${Math.random().toString(36).slice(2,9)}`}render(){const o=!!this.icon,t=this.error||this.hint?`${this.inputId}-msg`:void 0;return e("div",{key:"1bcce1a42e241c614eb5aacac045bf81fdf42ebd",class:`evoke-field evoke-field--${this.appearance}`},this.label&&e("label",{key:"6b0dbee7d5fad3238b22996d62d2ef23310b400b",htmlFor:this.inputId,class:"evoke-field__label"},this.label,this.required&&e("span",{key:"8258e6cc4d310d4becd7c1f4c6c511afdfffe715","aria-hidden":"true"}," *")),e("div",{key:"b8b4ba4a562bdbc86be66bb413ae2ff0209e4592",class:"evoke-field__control"},r(this.icon,"evoke-field__icon"),e("input",{key:"059cf7679e73a950d8a891cc72432164e1ed81bd",id:this.inputId,class:`evoke-field__input ${o?"evoke-field__input--icon":""} ${this.error?"evoke-field__input--error":""} ${this.inputClass}`.replace(/\s+/g," ").trim(),type:this.type,name:this.name||void 0,value:this.value,placeholder:this.placeholder,disabled:this.disabled,required:this.required,"aria-invalid":this.error?"true":void 0,"aria-describedby":t,onInput:e=>{this.value=e.target.value,this.evokeInput.emit(this.value)},onChange:e=>this.evokeChange.emit(e.target.value)})),this.error?e("span",{id:t,class:"evoke-field__error",role:"alert"},this.error):this.hint&&e("span",{id:t,class:"evoke-field__hint"},this.hint))}};b.style="evoke-input{display:block}evoke-input .evoke-field{display:flex;flex-direction:column;gap:0.5rem;font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);font-size:var(--evoke-font-size, 16px);color:var(--evoke-text, #1a1a1a)}evoke-input .evoke-field__label{color:var(--evoke-text, #1a1a1a)}evoke-input .evoke-field__control{position:relative}evoke-input .evoke-field__icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--evoke-text-muted, #6b6b6b);pointer-events:none}evoke-input .evoke-field__input{box-sizing:border-box;width:100%;height:var(--evoke-control-height, 56px);padding:0 24px;border:1px solid var(--evoke-border, #dedede);border-radius:var(--evoke-radius-field, 8px);background:var(--evoke-surface, #ffffff);color:var(--evoke-text, #1a1a1a);font:inherit;transition:border-color 0.15s, box-shadow 0.15s, background-color 0.15s}evoke-input .evoke-field__input--icon{padding-left:44px}evoke-input .evoke-field__input::placeholder{color:var(--evoke-text-muted, #6b6b6b)}evoke-input .evoke-field__input:hover:not(:disabled):not(:focus){border-color:var(--evoke-text-muted, #6b6b6b)}evoke-input .evoke-field__input:focus{outline:none;border-color:var(--evoke-secondary, #0b1560);box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15))}evoke-input .evoke-field__input:disabled{opacity:0.6;cursor:not-allowed}evoke-input .evoke-field__input--error{border-color:var(--evoke-danger, #dc2626)}evoke-input .evoke-field--filled .evoke-field__input{background:var(--evoke-surface-muted, #f5f5f5);border-color:transparent;border-bottom:2px solid var(--evoke-border, #dedede);border-radius:var(--evoke-radius-field, 8px) var(--evoke-radius-field, 8px) 0 0}evoke-input .evoke-field--filled .evoke-field__input:hover:not(:disabled):not(:focus){border-bottom-color:var(--evoke-text-muted, #6b6b6b)}evoke-input .evoke-field--filled .evoke-field__input:focus{box-shadow:none;border-bottom-color:var(--evoke-secondary, #0b1560)}evoke-input .evoke-field--filled .evoke-field__input:focus-visible{box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15))}evoke-input .evoke-field--filled .evoke-field__input--error{border-bottom-color:var(--evoke-danger, #dc2626)}evoke-input .evoke-field__hint{color:var(--evoke-text-muted, #6b6b6b);font-size:0.875rem}evoke-input .evoke-field__error{color:var(--evoke-danger, #dc2626);font-size:0.875rem}";const p=class{constructor(e){o(this,e),this.evokeClose=t(this,"evokeClose"),this.open=!1,this.heading="",this.position="center",this.size="md",this.closeOnBackdrop=!0,this.modalClass="",this.previouslyFocused=null,this.previousOverflow="",this.pendingFocus=!1,this.locked=!1,this.uid=Math.random().toString(36).slice(2,9)}onOpenChange(e,o){e&&!o?this.onOpened():!e&&o&&this.onClosed()}componentDidLoad(){this.open&&this.onOpened()}disconnectedCallback(){this.locked&&this.unlockScroll()}componentDidRender(){var e;this.pendingFocus&&this.panel&&(this.pendingFocus=!1,(null!==(e=this.focusables()[0])&&void 0!==e?e:this.panel).focus())}onOpened(){this.previouslyFocused=document.activeElement,this.pendingFocus=!0,this.locked||(this.previousOverflow=document.body.style.overflow,document.body.style.overflow="hidden",this.locked=!0)}onClosed(){var e,o;this.unlockScroll(),null===(o=null===(e=this.previouslyFocused)||void 0===e?void 0:e.focus)||void 0===o||o.call(e),this.previouslyFocused=null}unlockScroll(){document.body.style.overflow=this.previousOverflow,this.locked=!1}focusables(){return this.panel?Array.from(this.panel.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter((e=>null!==e.offsetParent)):[]}close(){this.open=!1,this.evokeClose.emit()}onKeydown(e){if(!this.open)return;if("Escape"===e.key)return e.preventDefault(),this.close();if("Tab"!==e.key||!this.panel)return;const o=this.focusables();if(0===o.length)return e.preventDefault(),this.panel.focus();const t=o[0],i=o[o.length-1],a=document.activeElement;!e.shiftKey||a!==t&&a!==this.panel?e.shiftKey||a!==i||(e.preventDefault(),t.focus()):(e.preventDefault(),i.focus())}render(){if(!this.open)return null;const o=`evoke-modal-${this.uid}-title`;return e("div",{class:`evoke-modal__backdrop evoke-modal__backdrop--${this.position}`,onClick:()=>this.closeOnBackdrop&&this.close()},e("div",{class:`evoke-modal evoke-modal--${this.position} evoke-modal--${this.size} ${this.modalClass}`.replace(/\s+/g," ").trim(),role:"dialog","aria-modal":"true","aria-labelledby":this.heading?o:void 0,tabindex:-1,ref:e=>this.panel=e,onClick:e=>e.stopPropagation()},e("div",{class:"evoke-modal__header"},e("span",{id:o},this.heading),e("button",{type:"button",class:"evoke-modal__close","aria-label":"Close",onClick:()=>this.close()},r("x","evoke-icon"))),e("div",{class:"evoke-modal__body"},e("slot",null))))}get el(){return i(this)}static get watchers(){return{open:[{onOpenChange:0}]}}};p.style="evoke-modal .evoke-modal__backdrop{position:fixed;inset:0;background:rgba(0, 0, 0, 0.5);display:flex;align-items:center;justify-content:center;z-index:1000;animation:evoke-fade 0.15s ease-out}evoke-modal .evoke-modal__backdrop--right{justify-content:flex-end;align-items:stretch}evoke-modal .evoke-modal{box-sizing:border-box;background:var(--evoke-surface, #ffffff);color:var(--evoke-text, #1a1a1a);font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);display:flex;flex-direction:column;max-width:100vw;box-shadow:0 20px 40px rgba(0, 0, 0, 0.25)}evoke-modal .evoke-modal:focus{outline:none}evoke-modal .evoke-modal--center{border-radius:var(--evoke-radius, 8px);max-height:90vh;width:min(92vw, 480px);animation:evoke-pop 0.15s ease-out}evoke-modal .evoke-modal--center.evoke-modal--sm{width:min(92vw, 360px)}evoke-modal .evoke-modal--center.evoke-modal--lg{width:min(92vw, 720px)}evoke-modal .evoke-modal--right{height:100%;border-radius:0;width:min(100vw, 420px);animation:evoke-slide 0.2s ease-out}evoke-modal .evoke-modal--right.evoke-modal--sm{width:min(100vw, 320px)}evoke-modal .evoke-modal--right.evoke-modal--lg{width:min(100vw, 640px)}evoke-modal .evoke-modal__header{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:0.75rem 1rem;font-weight:600;border-bottom:1px solid var(--evoke-border, #dedede)}evoke-modal .evoke-modal__close{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background:none;border:0;border-radius:50%;color:inherit;cursor:pointer}evoke-modal .evoke-modal__close:hover{background:var(--evoke-surface-muted, #f5f5f5)}evoke-modal .evoke-modal__close:active{background:color-mix(in srgb, var(--evoke-text, #1a1a1a) 14%, transparent)}evoke-modal .evoke-modal__close:focus-visible{outline:none;box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15))}evoke-modal .evoke-modal__close .evoke-icon{width:18px;height:18px}evoke-modal .evoke-modal__body{padding:1rem;overflow:auto;flex:1}@keyframes evoke-fade{from{opacity:0}to{opacity:1}}@keyframes evoke-pop{from{opacity:0;transform:scale(0.96)}to{opacity:1;transform:none}}@keyframes evoke-slide{from{transform:translateX(100%)}to{transform:none}}@media (prefers-reduced-motion: reduce){evoke-modal .evoke-modal__backdrop,evoke-modal .evoke-modal{animation:none}}";const f=class{constructor(e){o(this,e),this.evokeChange=t(this,"evokeChange"),this.page=1,this.total=1,this.appearance="numbered",this.disabled=!1}go(e){const o=Math.min(Math.max(e,1),Math.max(this.total,1));this.disabled||o===this.page||(this.page=o,this.evokeChange.emit(o))}pages(){const e=this.total,o=this.page;if(e<=7)return Array.from({length:e},((e,o)=>o+1));const t=[1],i=Math.max(2,o-1),a=Math.min(e-1,o+1);i>2&&t.push("…");for(let e=i;e<=a;e++)t.push(e);return a<e-1&&t.push("…"),t.push(e),t}render(){const o=this.disabled||this.page>=this.total,t=e("button",{key:"702c8196b0bd4c6bfff38d355e85bda4c58ec52f",type:"button",class:"evoke-pager__btn evoke-pager__nav","aria-label":"Previous page",disabled:this.disabled||this.page<=1,onClick:()=>this.go(this.page-1)},r("chevron-left","evoke-icon"),"compact"===this.appearance&&e("span",{key:"64f68912c444b59a7a6c074e074f745585726e62"},"Prev")),i=e("button",{key:"5b7ff3fe00e16bd03e3244971bfb86c6891051c3",type:"button",class:"evoke-pager__btn evoke-pager__nav","aria-label":"Next page",disabled:o,onClick:()=>this.go(this.page+1)},"compact"===this.appearance&&e("span",{key:"83d15b9f16dac8d810cb50d7a2a5df1c01f720cb"},"Next"),r("chevron-right","evoke-icon"));return e("nav",{key:"5ebe89ac00b59391f425e518ae145b84742a5bb1",class:`evoke-pager evoke-pager--${this.appearance}`,"aria-label":"Pagination"},t,"compact"===this.appearance?e("span",{class:"evoke-pager__status","aria-live":"polite"},this.page," of ",this.total):this.pages().map((o=>"…"===o?e("span",{class:"evoke-pager__gap","aria-hidden":"true"},"…"):e("button",{type:"button",class:("evoke-pager__btn "+(o===this.page?"evoke-pager__btn--active":"")).trim(),"aria-label":`Page ${o}`,"aria-current":o===this.page?"page":void 0,disabled:this.disabled,onClick:()=>this.go(o)},o))),i)}};f.style="evoke-pagination{display:block}evoke-pagination .evoke-pager{display:flex;align-items:center;flex-wrap:wrap;gap:4px;font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);color:var(--evoke-text, #1a1a1a)}evoke-pagination .evoke-pager__btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:40px;height:40px;padding:0 12px;font:inherit;font-size:0.9375rem;color:var(--evoke-text, #1a1a1a);background:transparent;border:1px solid transparent;border-radius:var(--evoke-radius-field, 8px);cursor:pointer;transition:background-color 0.15s, filter 0.15s}evoke-pagination .evoke-pager__btn:hover:not(:disabled):not(.evoke-pager__btn--active){background:var(--evoke-surface-muted, #f5f5f5)}evoke-pagination .evoke-pager__btn:active:not(:disabled){filter:brightness(0.85)}evoke-pagination .evoke-pager__btn:focus-visible{outline:none;box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15))}evoke-pagination .evoke-pager__btn:disabled{opacity:0.45;cursor:not-allowed}evoke-pagination .evoke-pager__btn--active{background:var(--evoke-primary, #ff5316);color:var(--evoke-primary-contrast, #ffffff)}evoke-pagination .evoke-pager__nav .evoke-icon{width:18px;height:18px}evoke-pagination .evoke-pager--compact .evoke-pager__nav{border-color:var(--evoke-border, #dedede);padding:0 14px}evoke-pagination .evoke-pager__gap{min-width:24px;text-align:center;color:var(--evoke-text-muted, #6b6b6b)}evoke-pagination .evoke-pager__status{padding:0 16px;font-size:0.9375rem}";const u=2*Math.PI*18,_=class{constructor(e){o(this,e),this.type="linear",this.value=0,this.indeterminate=!1,this.label="Loading",this.size=40}render(){const o=Math.min(Math.max(Number(this.value)||0,0),100),t={role:"progressbar","aria-label":this.label,"aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":this.indeterminate?void 0:String(Math.round(o))};return"circular"===this.type?e("div",Object.assign({class:("evoke-progress evoke-progress--circular "+(this.indeterminate?"evoke-progress--indeterminate":"")).trim(),style:{width:`${this.size}px`,height:`${this.size}px`}},t),e("svg",{viewBox:"0 0 44 44","aria-hidden":"true",focusable:"false"},e("circle",{class:"evoke-progress__track",cx:"22",cy:"22",r:String(18),fill:"none","stroke-width":"4"}),e("circle",{class:"evoke-progress__ring",cx:"22",cy:"22",r:String(18),fill:"none","stroke-width":"4","stroke-linecap":"round","stroke-dasharray":this.indeterminate?`${.25*u} ${u}`:String(u),"stroke-dashoffset":this.indeterminate?void 0:String(u*(1-o/100))}))):e("div",Object.assign({class:("evoke-progress evoke-progress--linear "+(this.indeterminate?"evoke-progress--indeterminate":"")).trim()},t),e("div",{class:"evoke-progress__bar",style:this.indeterminate?void 0:{width:`${o}%`}}))}};_.style="evoke-progress{display:block}evoke-progress .evoke-progress--linear{position:relative;width:100%;height:8px;overflow:hidden;border-radius:9999px;background:var(--evoke-surface-muted, #f5f5f5);box-shadow:inset 0 0 0 1px var(--evoke-border, #dedede)}evoke-progress .evoke-progress__bar{height:100%;border-radius:inherit;background:var(--evoke-primary, #ff5316);transition:width 0.25s ease}evoke-progress .evoke-progress--linear.evoke-progress--indeterminate .evoke-progress__bar{position:absolute;width:40%;animation:evoke-bar 1.2s ease-in-out infinite}evoke-progress .evoke-progress--circular{display:inline-block}evoke-progress .evoke-progress--circular svg{display:block;width:100%;height:100%;transform:rotate(-90deg)}evoke-progress .evoke-progress__track{stroke:var(--evoke-border, #dedede)}evoke-progress .evoke-progress__ring{stroke:var(--evoke-primary, #ff5316);transition:stroke-dashoffset 0.25s ease}evoke-progress .evoke-progress--circular.evoke-progress--indeterminate svg{animation:evoke-spin 0.9s linear infinite}@keyframes evoke-bar{0%{left:-40%}100%{left:100%}}@keyframes evoke-spin{to{transform:rotate(270deg)}}@media (prefers-reduced-motion: reduce){evoke-progress .evoke-progress__bar,evoke-progress .evoke-progress--circular svg{animation-duration:3s !important;transition:none}}";const g=class{constructor(e){o(this,e),this.evokeChange=t(this,"evokeChange"),this.value=1,this.min=1,this.max=99,this.appearance="inline",this.disabled=!1,this.label="Quantity",this.onKeyDown=e=>{"ArrowUp"===e.key?(e.preventDefault(),this.set(this.value+1)):"ArrowDown"===e.key&&(e.preventDefault(),this.set(this.value-1))}}clamp(e){return Math.min(Math.max(Math.round(e),this.min),this.max)}set(e){const o=this.clamp(Number.isFinite(e)?e:this.value);this.inputEl&&(this.inputEl.value=String(o)),o!==this.value&&(this.value=o,this.evokeChange.emit(o))}render(){if("compact"===this.appearance){const o=Math.min(this.max,this.min+9),t=[];for(let e=this.min;e<=o;e++)t.push(e);return t.includes(this.value)||t.push(this.value),e("div",{class:"evoke-qty evoke-qty--compact"},e("select",{class:"evoke-qty__select","aria-label":this.label,disabled:this.disabled,onChange:e=>this.set(Number(e.target.value))},t.map((o=>e("option",{value:String(o),selected:o===this.value},"Qty: ",o)))),r("chevron-down","evoke-qty__chevron"))}return e("div",{class:"evoke-qty evoke-qty--inline",role:"group","aria-label":this.label},e("button",{type:"button",class:"evoke-qty__btn","aria-label":"Decrease quantity",disabled:this.disabled||this.value<=this.min,onClick:()=>this.set(this.value-1)},r("minus","evoke-icon")),e("input",{class:"evoke-qty__input",type:"text",inputmode:"numeric",pattern:"[0-9]*","aria-label":this.label,value:String(this.value),disabled:this.disabled,ref:e=>this.inputEl=e,onKeyDown:this.onKeyDown,onChange:e=>this.set(parseInt(e.target.value,10))}),e("button",{type:"button",class:"evoke-qty__btn","aria-label":"Increase quantity",disabled:this.disabled||this.value>=this.max,onClick:()=>this.set(this.value+1)},r("plus","evoke-icon")))}};function x(e){if(Array.isArray(e))return e;try{const o=JSON.parse(e);return Array.isArray(o)?o:[]}catch(e){return[]}}g.style="evoke-quantity-stepper{display:inline-block}evoke-quantity-stepper .evoke-qty{font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);color:var(--evoke-text, #1a1a1a)}evoke-quantity-stepper .evoke-qty--inline{display:inline-flex;align-items:center;height:calc(var(--evoke-control-height, 56px) * 0.75);border:1px solid var(--evoke-border, #dedede);border-radius:var(--evoke-radius-button, 9999px);background:var(--evoke-surface, #ffffff);overflow:hidden}evoke-quantity-stepper .evoke-qty--inline:focus-within{border-color:var(--evoke-secondary, #0b1560);box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15))}evoke-quantity-stepper .evoke-qty__btn{display:inline-flex;align-items:center;justify-content:center;width:calc(var(--evoke-control-height, 56px) * 0.75);height:100%;padding:0;color:var(--evoke-primary, #ff5316);background:transparent;border:0;cursor:pointer;transition:background-color 0.15s}evoke-quantity-stepper .evoke-qty__btn:hover:not(:disabled){background:color-mix(in srgb, var(--evoke-primary, #ff5316) 10%, transparent)}evoke-quantity-stepper .evoke-qty__btn:active:not(:disabled){background:color-mix(in srgb, var(--evoke-primary, #ff5316) 20%, transparent)}evoke-quantity-stepper .evoke-qty__btn:focus-visible{outline:2px solid var(--evoke-secondary, #0b1560);outline-offset:-3px}evoke-quantity-stepper .evoke-qty__btn:disabled{opacity:0.4;cursor:not-allowed}evoke-quantity-stepper .evoke-qty__btn .evoke-icon{width:16px;height:16px}evoke-quantity-stepper .evoke-qty__input{box-sizing:border-box;width:48px;height:100%;padding:0;text-align:center;font:inherit;color:var(--evoke-text, #1a1a1a);background:transparent;border:0}evoke-quantity-stepper .evoke-qty__input:focus{outline:none}evoke-quantity-stepper .evoke-qty__input:disabled{opacity:0.5}evoke-quantity-stepper .evoke-qty--compact{position:relative;display:inline-block}evoke-quantity-stepper .evoke-qty__select{box-sizing:border-box;height:calc(var(--evoke-control-height, 56px) * 0.75);padding:0 36px 0 16px;font:inherit;font-size:0.9375rem;color:var(--evoke-text, #1a1a1a);background:var(--evoke-surface, #ffffff);border:1px solid var(--evoke-border, #dedede);border-radius:var(--evoke-radius-field, 8px);appearance:none;-webkit-appearance:none;cursor:pointer}evoke-quantity-stepper .evoke-qty__select:hover:not(:disabled):not(:focus){border-color:var(--evoke-text-muted, #6b6b6b)}evoke-quantity-stepper .evoke-qty__select:focus{outline:none;border-color:var(--evoke-secondary, #0b1560);box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15))}evoke-quantity-stepper .evoke-qty__select:disabled{opacity:0.5;cursor:not-allowed}evoke-quantity-stepper .evoke-qty__chevron{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--evoke-text-muted, #6b6b6b);pointer-events:none}";const m=class{constructor(e){o(this,e),this.evokeChange=t(this,"evokeChange"),this.label="",this.options=[],this.value="",this.name="",this.disabled=!1,this.appearance="classic",this.inline=!1,this.error="",this.uid=Math.random().toString(36).slice(2,9)}render(){const o=this.name||`evoke-radio-${this.uid}`,t=`${o}-label`,i=`${o}-err`,a="segmented"===this.appearance;return e("div",{key:"ddf9183b0a6733b0daf79dcdb5f7dd5525d00a62",class:"evoke-radio",role:"radiogroup","aria-labelledby":this.label?t:void 0,"aria-describedby":this.error?i:void 0},this.label&&e("span",{key:"f80aacb295bedb5d68a51e1005de17d8d845736e",id:t,class:"evoke-radio__label"},this.label),e("div",{key:"44ee0b00ad1970f2b00dcb2789f1418f76833fcd",class:`evoke-radio__options ${this.inline&&!a?"evoke-radio__options--inline":""} ${a?"evoke-radio__options--segmented":""}`.replace(/\s+/g," ").trim()},x(this.options).map((t=>{const i=this.disabled||t.disabled,r=e("input",{type:"radio",class:`${a?"evoke-seg__input":"evoke-radio__input"} ${this.error?"evoke-radio__input--error":""}`.trim(),name:o,value:t.value,checked:t.value===this.value,disabled:i,onChange:()=>{this.value=t.value,this.evokeChange.emit(this.value)}});return a?e("label",{class:("evoke-seg "+(i?"evoke-seg--disabled":"")).trim()},r,e("span",{class:"evoke-seg__text"},t.label)):e("label",{class:("evoke-radio__row "+(i?"evoke-radio__row--disabled":"")).trim()},r,e("span",null,t.label))}))),this.error&&e("span",{key:"b6027efeea9334325c731eb73630c982c1a88ce2",id:i,class:"evoke-radio__error",role:"alert"},this.error))}};m.style="evoke-radio-group{display:block}evoke-radio-group .evoke-radio{display:flex;flex-direction:column;gap:0.5rem;font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);color:var(--evoke-text, #1a1a1a)}evoke-radio-group .evoke-radio__label{font-size:var(--evoke-font-size, 16px)}evoke-radio-group .evoke-radio__options{display:flex;flex-direction:column;gap:0.5rem}evoke-radio-group .evoke-radio__options--inline{flex-direction:row;flex-wrap:wrap;gap:1.25rem}evoke-radio-group .evoke-radio__row{display:inline-flex;align-items:center;gap:0.5rem;cursor:pointer;font-size:0.875rem}evoke-radio-group .evoke-radio__row--disabled{opacity:0.6;cursor:not-allowed}evoke-radio-group .evoke-radio__input{appearance:none;-webkit-appearance:none;margin:0;flex:none;width:16px;height:16px;border:2px solid var(--evoke-primary, #ff5316);border-radius:50%;background:var(--evoke-surface, #ffffff);cursor:inherit;transition:box-shadow 0.15s, filter 0.15s}evoke-radio-group .evoke-radio__input:hover:not(:disabled){filter:brightness(0.92)}evoke-radio-group .evoke-radio__input:checked{background:radial-gradient(circle, var(--evoke-primary, #ff5316) 0 40%, var(--evoke-surface, #ffffff) 45%)}evoke-radio-group .evoke-radio__input:focus-visible{outline:none;box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15))}evoke-radio-group .evoke-radio__input--error{border-color:var(--evoke-danger, #dc2626)}evoke-radio-group .evoke-radio__error{color:var(--evoke-danger, #dc2626);font-size:0.875rem}evoke-radio-group .evoke-radio__options--segmented{flex-direction:row;gap:0;align-self:flex-start;border:1px solid var(--evoke-primary, #ff5316);border-radius:var(--evoke-radius-field, 8px);overflow:hidden}evoke-radio-group .evoke-seg{position:relative;display:inline-flex;cursor:pointer}evoke-radio-group .evoke-seg+.evoke-seg{border-left:1px solid var(--evoke-primary, #ff5316)}evoke-radio-group .evoke-seg--disabled{opacity:0.5;cursor:not-allowed}evoke-radio-group .evoke-seg__input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}evoke-radio-group .evoke-seg__text{display:inline-flex;align-items:center;justify-content:center;min-height:calc(var(--evoke-control-height, 56px) * 0.75);padding:0 20px;font-size:0.875rem;background:var(--evoke-surface, #ffffff);color:var(--evoke-primary-text, #cc3d0d);transition:background-color 0.15s, filter 0.15s}evoke-radio-group .evoke-seg:hover .evoke-seg__input:not(:disabled):not(:checked)+.evoke-seg__text{background:color-mix(in srgb, var(--evoke-primary, #ff5316) 10%, var(--evoke-surface, #ffffff))}evoke-radio-group .evoke-seg__input:checked+.evoke-seg__text{background:var(--evoke-primary, #ff5316);color:var(--evoke-primary-contrast, #ffffff)}evoke-radio-group .evoke-seg__input:active:not(:disabled)+.evoke-seg__text{filter:brightness(0.85)}evoke-radio-group .evoke-seg__input:focus-visible+.evoke-seg__text{box-shadow:inset 0 0 0 3px var(--evoke-secondary, #0b1560)}evoke-radio-group .evoke-seg__input.evoke-radio__input--error+.evoke-seg__text{color:var(--evoke-danger, #dc2626)}";const y=class{constructor(e){o(this,e),this.evokeChange=t(this,"evokeChange"),this.label="",this.options=[],this.value="",this.placeholder="Select an option",this.multiple=!1,this.searchable=!1,this.disabled=!1,this.error="",this.hint="",this.selectClass="",this.isOpen=!1,this.query="",this.activeIndex=0,this.uid=Math.random().toString(36).slice(2,9),this.focusSearch=!1,this.onKeyDown=e=>{const o=this.filtered,t=e.target===this.triggerEl;switch(e.key){case"ArrowDown":case"ArrowUp":if(e.preventDefault(),!this.isOpen)return this.openPanel();this.activeIndex=Math.min(Math.max(this.activeIndex+("ArrowDown"===e.key?1:-1),0),Math.max(o.length-1,0));break;case"Home":case"End":this.isOpen&&!this.searchable&&(e.preventDefault(),this.activeIndex="Home"===e.key?0:Math.max(o.length-1,0));break;case"Enter":case" ":if(" "===e.key&&!t)return;if(e.preventDefault(),!this.isOpen)return this.openPanel();o[this.activeIndex]&&this.toggle(o[this.activeIndex]);break;case"Escape":this.isOpen&&(e.preventDefault(),this.closePanel());break;case"Tab":this.isOpen&&this.closePanel(!1)}}}get selected(){const e=this.value;if(Array.isArray(e))return e;if(!e)return[];if(this.multiple){if(e.trim().startsWith("["))try{const o=JSON.parse(e);if(Array.isArray(o))return o.map(String)}catch(e){}return e.split(",").map((e=>e.trim())).filter(Boolean)}return[e]}get filtered(){const e=this.query.trim().toLowerCase(),o=x(this.options);return e?o.filter((o=>o.label.toLowerCase().includes(e))):o}onDocClick(e){this.isOpen&&!this.el.contains(e.target)&&this.closePanel(!1)}componentDidRender(){var e;this.isOpen&&(this.focusSearch&&this.searchEl&&(this.focusSearch=!1,this.searchEl.focus()),null===(e=this.el.querySelector(".evoke-select__option--active"))||void 0===e||e.scrollIntoView({block:"nearest"}))}openPanel(){if(this.disabled)return;const e=this.filtered.findIndex((e=>this.selected.includes(e.value)));this.activeIndex=e>=0?e:0,this.isOpen=!0,this.focusSearch=this.searchable}closePanel(e=!0){var o;this.isOpen=!1,this.query="",e&&(null===(o=this.triggerEl)||void 0===o||o.focus())}commit(e){this.value=e,this.evokeChange.emit(e)}toggle(e){if(!e.disabled)if(this.multiple){const o=this.selected;this.commit(o.includes(e.value)?o.filter((o=>o!==e.value)):[...o,e.value])}else this.commit(e.value),this.closePanel()}removeChip(e){this.commit(this.selected.filter((o=>o!==e)))}renderNative(){var o;const t=`evoke-select-${this.uid}`,i=`${t}-msg`,a=null!==(o=this.selected[0])&&void 0!==o?o:"";return e("div",{class:"evoke-field__control"},e("select",{id:t,class:`evoke-field__input evoke-field__select ${""===a?"evoke-field__select--empty":""} ${this.error?"evoke-field__input--error":""} ${this.selectClass}`.replace(/\s+/g," ").trim(),disabled:this.disabled,"aria-invalid":this.error?"true":void 0,"aria-describedby":this.error||this.hint?i:void 0,onChange:e=>this.commit(e.target.value)},e("option",{value:"",disabled:!0,selected:""===a},this.placeholder),x(this.options).map((o=>e("option",{value:o.value,disabled:o.disabled,selected:o.value===a},o.label)))),r("chevron-down","evoke-field__chevron"))}renderCustom(){const o=`evoke-select-${this.uid}-label`,t=`evoke-select-${this.uid}-list`,i=`evoke-select-${this.uid}-msg`,a=x(this.options),s=this.selected,n=this.filtered,v=e=>{var o,t;return null!==(t=null===(o=a.find((o=>o.value===e)))||void 0===o?void 0:o.label)&&void 0!==t?t:e};return e("div",{class:"evoke-field__control",onKeyDown:this.onKeyDown},e("div",{class:`evoke-select__trigger evoke-field__input ${this.error?"evoke-field__input--error":""} ${this.disabled?"evoke-select__trigger--disabled":""}`.trim(),role:"combobox",tabindex:this.disabled?-1:0,"aria-haspopup":"listbox","aria-expanded":this.isOpen?"true":"false","aria-controls":t,"aria-labelledby":this.label?o:void 0,"aria-label":this.label?void 0:this.placeholder,"aria-disabled":this.disabled?"true":void 0,"aria-invalid":this.error?"true":void 0,"aria-describedby":this.error||this.hint?i:void 0,"aria-activedescendant":this.isOpen&&n[this.activeIndex]?`${t}-${this.activeIndex}`:void 0,ref:e=>this.triggerEl=e,onClick:()=>this.isOpen?this.closePanel():this.openPanel()},e("span",{class:"evoke-select__value"},0===s.length&&e("span",{class:"evoke-select__placeholder"},this.placeholder),this.multiple?s.map((o=>e("span",{class:"evoke-select__chip"},v(o),e("button",{type:"button",class:"evoke-select__chip-remove","aria-label":`Remove ${v(o)}`,disabled:this.disabled,onClick:e=>{e.stopPropagation(),this.removeChip(o)}},r("x","evoke-icon"))))):s.length>0&&e("span",null,v(s[0])))),r("chevron-down","evoke-field__chevron"),this.isOpen&&e("div",{class:"evoke-select__panel"},this.searchable&&e("input",{class:"evoke-select__search",type:"text",placeholder:"Search…","aria-label":"Search options","aria-controls":t,"aria-activedescendant":n[this.activeIndex]?`${t}-${this.activeIndex}`:void 0,value:this.query,ref:e=>this.searchEl=e,onInput:e=>{this.query=e.target.value,this.activeIndex=0}}),e("ul",{id:t,class:"evoke-select__list",role:"listbox","aria-multiselectable":this.multiple?"true":void 0,"aria-labelledby":this.label?o:void 0},n.map(((o,i)=>{const a=s.includes(o.value);return e("li",{id:`${t}-${i}`,role:"option","aria-selected":a?"true":"false","aria-disabled":o.disabled?"true":void 0,class:`evoke-select__option ${i===this.activeIndex?"evoke-select__option--active":""} ${a?"evoke-select__option--selected":""} ${o.disabled?"evoke-select__option--disabled":""}`.replace(/\s+/g," ").trim(),onMouseEnter:()=>this.activeIndex=i,onClick:()=>this.toggle(o)},e("span",null,o.label),a&&r("check","evoke-icon"))}))),0===n.length&&e("div",{class:"evoke-select__empty"},"No results")))}render(){const o=`evoke-select-${this.uid}-msg`,t=this.multiple||this.searchable;return e("div",{key:"2bb9566731e91295db3e98b8934acee7d53bc0c7",class:"evoke-field"},this.label&&e("label",{key:"2279b600e0770a516af752c309af43ba6fd28320",id:`evoke-select-${this.uid}-label`,htmlFor:t?void 0:`evoke-select-${this.uid}`,class:"evoke-field__label"},this.label),t?this.renderCustom():this.renderNative(),this.error?e("span",{id:o,class:"evoke-field__error",role:"alert"},this.error):this.hint&&e("span",{id:o,class:"evoke-field__hint"},this.hint))}get el(){return i(this)}};y.style="evoke-select{display:block}evoke-select .evoke-field{display:flex;flex-direction:column;gap:0.5rem;font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);font-size:var(--evoke-font-size, 16px);color:var(--evoke-text, #1a1a1a)}evoke-select .evoke-field__control{position:relative}evoke-select .evoke-field__input{box-sizing:border-box;width:100%;height:var(--evoke-control-height, 56px);padding:0 48px 0 24px;border:1px solid var(--evoke-border, #dedede);border-radius:var(--evoke-radius-field, 8px);background:var(--evoke-surface, #ffffff);color:var(--evoke-text, #1a1a1a);font:inherit;appearance:none;-webkit-appearance:none;cursor:pointer;transition:border-color 0.15s, box-shadow 0.15s}evoke-select .evoke-field__select--empty{color:var(--evoke-text-muted, #6b6b6b)}evoke-select .evoke-field__input:hover:not(:disabled):not(:focus){border-color:var(--evoke-text-muted, #6b6b6b)}evoke-select .evoke-field__input:focus,evoke-select .evoke-select__trigger:focus-visible{outline:none;border-color:var(--evoke-secondary, #0b1560);box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15))}evoke-select .evoke-field__input:disabled,evoke-select .evoke-select__trigger--disabled{opacity:0.6;cursor:not-allowed}evoke-select .evoke-field__input--error{border-color:var(--evoke-danger, #dc2626)}evoke-select .evoke-field__chevron{position:absolute;right:16px;top:calc(var(--evoke-control-height, 56px) / 2);transform:translateY(-50%);width:18px;height:18px;color:var(--evoke-text-muted, #6b6b6b);pointer-events:none}evoke-select .evoke-field__hint{color:var(--evoke-text-muted, #6b6b6b);font-size:0.875rem}evoke-select .evoke-field__error{color:var(--evoke-danger, #dc2626);font-size:0.875rem}evoke-select .evoke-select__trigger{display:flex;align-items:center;height:auto;min-height:var(--evoke-control-height, 56px);padding-top:6px;padding-bottom:6px}evoke-select .evoke-select__value{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}evoke-select .evoke-select__placeholder{color:var(--evoke-text-muted, #6b6b6b)}evoke-select .evoke-select__chip{display:inline-flex;align-items:center;gap:4px;padding:2px 4px 2px 10px;border-radius:9999px;font-size:0.875rem;background:color-mix(in srgb, var(--evoke-primary, #ff5316) 12%, var(--evoke-surface, #ffffff));color:var(--evoke-text, #1a1a1a)}evoke-select .evoke-select__chip-remove{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer}evoke-select .evoke-select__chip-remove:hover{background:color-mix(in srgb, var(--evoke-text, #1a1a1a) 12%, transparent)}evoke-select .evoke-select__chip-remove:focus-visible{outline:none;box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15))}evoke-select .evoke-select__chip-remove .evoke-icon{width:12px;height:12px}evoke-select .evoke-select__panel{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 4px);background:var(--evoke-surface, #ffffff);border:1px solid var(--evoke-border, #dedede);border-radius:var(--evoke-radius-field, 8px);box-shadow:var(--evoke-shadow, 0 4px 12px rgba(0, 0, 0, 0.12));max-height:280px;display:flex;flex-direction:column;overflow:hidden}evoke-select .evoke-select__search{box-sizing:border-box;margin:8px;padding:8px 12px;border:1px solid var(--evoke-border, #dedede);border-radius:var(--evoke-radius-field, 8px);font:inherit;color:var(--evoke-text, #1a1a1a);background:var(--evoke-surface, #ffffff)}evoke-select .evoke-select__search:focus{outline:none;border-color:var(--evoke-secondary, #0b1560);box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15))}evoke-select .evoke-select__list{list-style:none;margin:0;padding:4px;overflow:auto}evoke-select .evoke-select__option{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-radius:calc(var(--evoke-radius-field, 8px) - 2px);cursor:pointer}evoke-select .evoke-select__option--active{background:var(--evoke-surface-muted, #f5f5f5)}evoke-select .evoke-select__option--selected{color:var(--evoke-primary-text, #cc3d0d);font-weight:500}evoke-select .evoke-select__option--disabled{opacity:0.5;cursor:not-allowed}evoke-select .evoke-select__option .evoke-icon{width:16px;height:16px;flex:none}evoke-select .evoke-select__empty{padding:12px 16px;color:var(--evoke-text-muted, #6b6b6b)}";const w=class{constructor(e){o(this,e),this.evokeChange=t(this,"evokeChange"),this.checked=!1,this.label="",this.description="",this.disabled=!1,this.uid=Math.random().toString(36).slice(2,9)}render(){const o=`evoke-switch-${this.uid}-desc`;return e("label",{key:"8e3b9741c4e2f7ed93ce7f24893cc2db0d6acf9f",class:("evoke-switch "+(this.disabled?"evoke-switch--disabled":"")).trim()},e("input",{key:"b29122d5f8a0eb572f6f0384d537dc85543ccd66",type:"checkbox",role:"switch",class:"evoke-switch__input",checked:this.checked,disabled:this.disabled,"aria-checked":this.checked?"true":"false","aria-label":this.label?void 0:this.accessibleLabel,"aria-describedby":this.description?o:void 0,onChange:e=>{this.checked=e.target.checked,this.evokeChange.emit(this.checked)}}),e("span",{key:"fbecc8e67a062f7b14f9a035491f6d857ac09f71",class:"evoke-switch__track","aria-hidden":"true"},e("span",{key:"ac6a8575b42fcb8424fee235016e4159ddec4fa9",class:"evoke-switch__thumb"})),(this.label||this.description)&&e("span",{key:"46357674f960e74b0f203d7bb129f605e588bb2e",class:"evoke-switch__text"},this.label&&e("span",{key:"e4f4cee280c46587abe609d3946ed2a7a3b97d41",class:"evoke-switch__label"},this.label),this.description&&e("span",{key:"56cdbf07afaa3c64df0666ccc9d39a736188cd3d",id:o,class:"evoke-switch__desc"},this.description)))}};w.style="evoke-switch{display:inline-block}evoke-switch .evoke-switch{position:relative;display:inline-flex;align-items:flex-start;gap:0.75rem;cursor:pointer;font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);color:var(--evoke-text, #1a1a1a)}evoke-switch .evoke-switch--disabled{opacity:0.6;cursor:not-allowed}evoke-switch .evoke-switch__input{position:absolute;width:44px;height:24px;margin:0;opacity:0;cursor:inherit}evoke-switch .evoke-switch__track{position:relative;flex:none;width:44px;height:24px;border-radius:9999px;background:#767676;transition:background-color 0.15s, box-shadow 0.15s, filter 0.15s}evoke-switch .evoke-switch__thumb{position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0, 0, 0, 0.3);transition:transform 0.15s}evoke-switch .evoke-switch__input:checked+.evoke-switch__track{background:var(--evoke-primary, #ff5316)}evoke-switch .evoke-switch__input:checked+.evoke-switch__track .evoke-switch__thumb{transform:translateX(20px)}evoke-switch .evoke-switch:hover .evoke-switch__input:not(:disabled)+.evoke-switch__track{filter:brightness(0.92)}evoke-switch .evoke-switch__input:active:not(:disabled)+.evoke-switch__track .evoke-switch__thumb{width:24px}evoke-switch .evoke-switch__input:checked:active:not(:disabled)+.evoke-switch__track .evoke-switch__thumb{transform:translateX(16px)}evoke-switch .evoke-switch__input:focus-visible+.evoke-switch__track{box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15))}evoke-switch .evoke-switch__text{display:flex;flex-direction:column;gap:2px}evoke-switch .evoke-switch__label{font-size:var(--evoke-font-size, 16px);line-height:24px}evoke-switch .evoke-switch__desc{font-size:0.875rem;color:var(--evoke-text-muted, #6b6b6b)}@media (prefers-reduced-motion: reduce){evoke-switch .evoke-switch__thumb,evoke-switch .evoke-switch__track{transition:none}}";const $=class{constructor(e){o(this,e),this.evokeSort=t(this,"evokeSort"),this.columns=[],this.rows=[],this.striped=!1,this.sortable=!1,this.caption="",this.emptyText="No data",this.sortKey="",this.sortDir="asc"}parse(e){if(Array.isArray(e))return e;try{const o=JSON.parse(e);return Array.isArray(o)?o:[]}catch(e){return[]}}toggleSort(e){this.sortDir=this.sortKey===e&&"asc"===this.sortDir?"desc":"asc",this.sortKey=e,this.evokeSort.emit({key:e,direction:this.sortDir})}render(){const o=this.parse(this.columns),t=o.some((e=>e.sortable)),i=e=>this.sortable&&(!t||!!e.sortable);let a=[...this.parse(this.rows)];if(this.sortKey){const e=this.sortKey,o="asc"===this.sortDir?1:-1;a.sort(((t,i)=>{const a=t[e],r=i[e];return null==a?1:null==r?-1:("number"==typeof a&&"number"==typeof r?a-r:String(a).localeCompare(String(r),void 0,{numeric:!0}))*o}))}return e("div",{class:"evoke-table__wrap"},e("table",{class:("evoke-table "+(this.striped?"evoke-table--striped":"")).trim()},this.caption&&e("caption",{class:"evoke-table__caption"},this.caption),e("thead",null,e("tr",null,o.map((o=>{var t;const a=this.sortKey===o.key;return e("th",{scope:"col",class:`evoke-table__th evoke-table__cell--${null!==(t=o.align)&&void 0!==t?t:"left"}`,"aria-sort":i(o)?a?"asc"===this.sortDir?"ascending":"descending":"none":void 0},i(o)?e("button",{type:"button",class:"evoke-table__sort",onClick:()=>this.toggleSort(o.key)},o.label,r(a?"asc"===this.sortDir?"arrow-up":"arrow-down":"sort",("evoke-table__sort-icon "+(a?"evoke-table__sort-icon--active":"")).trim())):o.label)})))),e("tbody",null,0===a.length?e("tr",null,e("td",{class:"evoke-table__empty",colSpan:Math.max(o.length,1)},this.emptyText)):a.map((t=>e("tr",{class:"evoke-table__row"},o.map((o=>{var i;return e("td",{class:`evoke-table__td evoke-table__cell--${null!==(i=o.align)&&void 0!==i?i:"left"}`},null==t[o.key]?"":String(t[o.key]))}))))))))}};$.style="evoke-table{display:block}evoke-table .evoke-table__wrap{overflow-x:auto;border:1px solid var(--evoke-border, #dedede);border-radius:var(--evoke-radius, 8px)}evoke-table .evoke-table{width:100%;border-collapse:collapse;font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);font-size:0.9375rem;color:var(--evoke-text, #1a1a1a);background:var(--evoke-surface, #ffffff)}evoke-table .evoke-table__caption{padding:12px 16px;text-align:left;color:var(--evoke-text-muted, #6b6b6b)}evoke-table .evoke-table__th{padding:12px 16px;font-weight:600;background:var(--evoke-surface-muted, #f5f5f5);border-bottom:1px solid var(--evoke-border, #dedede);white-space:nowrap}evoke-table .evoke-table__td{padding:12px 16px;border-bottom:1px solid var(--evoke-border, #dedede)}evoke-table tbody tr:last-child .evoke-table__td{border-bottom:0}evoke-table .evoke-table__cell--left{text-align:left}evoke-table .evoke-table__cell--center{text-align:center}evoke-table .evoke-table__cell--right{text-align:right}evoke-table .evoke-table--striped .evoke-table__row:nth-child(even){background:var(--evoke-surface-muted, #f5f5f5)}evoke-table .evoke-table__row:hover{background:color-mix(in srgb, var(--evoke-primary, #ff5316) 6%, var(--evoke-surface, #ffffff))}evoke-table .evoke-table--striped .evoke-table__row:nth-child(even):hover{background:color-mix(in srgb, var(--evoke-primary, #ff5316) 8%, var(--evoke-surface-muted, #f5f5f5))}evoke-table .evoke-table__empty{padding:24px 16px;text-align:center;color:var(--evoke-text-muted, #6b6b6b)}evoke-table .evoke-table__sort{display:inline-flex;align-items:center;gap:6px;padding:2px 4px;margin:-2px -4px;font:inherit;font-weight:inherit;color:inherit;background:none;border:0;border-radius:4px;cursor:pointer}evoke-table .evoke-table__sort:hover{color:var(--evoke-primary-text, #cc3d0d)}evoke-table .evoke-table__sort:active{background:color-mix(in srgb, var(--evoke-text, #1a1a1a) 10%, transparent)}evoke-table .evoke-table__sort:focus-visible{outline:none;box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15))}evoke-table .evoke-table__sort-icon{width:14px;height:14px;color:var(--evoke-text-muted, #6b6b6b)}evoke-table .evoke-table__sort-icon--active{color:var(--evoke-primary, #ff5316)}";const M=class{constructor(e){o(this,e),this.evokeChange=t(this,"evokeChange"),this.options=[],this.value="",this.appearance="underline",this.label="",this.uid=Math.random().toString(36).slice(2,9),this.onKeyDown=e=>{if(!["ArrowRight","ArrowLeft","Home","End"].includes(e.key))return;const o=this.tabs,t=o.map(((e,o)=>e.disabled?-1:o)).filter((e=>e>=0));if(0===t.length)return;e.preventDefault();const i=o.findIndex((e=>e.value===this.activeValue)),a=t.indexOf(i);let r=t[0];"ArrowRight"===e.key?r=t[(a+1)%t.length]:"ArrowLeft"===e.key?r=t[(a-1+t.length)%t.length]:"End"===e.key&&(r=t[t.length-1]);const s=this.el.querySelectorAll('[role="tab"]')[r];null==s||s.focus(),this.select(o[r].value)}}get tabs(){return x(this.options)}get activeValue(){var e,o;const t=this.tabs;return t.some((e=>e.value===this.value&&!e.disabled))?this.value:null!==(o=null===(e=t.find((e=>!e.disabled)))||void 0===e?void 0:e.value)&&void 0!==o?o:""}select(e){e!==this.value&&(this.value=e,this.evokeChange.emit(e))}render(){const o=this.activeValue;return e("div",{key:"0eb147989be035ae85cc6778f7c5205ff450bbf0",class:`evoke-tabs evoke-tabs--${this.appearance}`},e("div",{key:"2bed606eed52a8186fc6fdca50c179555a57de8c",class:"evoke-tabs__list",role:"tablist","aria-label":this.label||void 0,onKeyDown:this.onKeyDown},this.tabs.map((t=>{const i=t.value===o;return e("button",{type:"button",role:"tab",id:`evoke-tab-${this.uid}-${t.value}`,class:("evoke-tabs__tab "+(i?"evoke-tabs__tab--active":"")).trim(),"aria-selected":i?"true":"false","aria-controls":`evoke-panel-${this.uid}`,tabindex:i?0:-1,disabled:t.disabled,onClick:()=>this.select(t.value)},t.label)}))),e("div",{key:"b80df36c152b9b189e359a1d59106eb9372d1d62",class:"evoke-tabs__panel",role:"tabpanel",id:`evoke-panel-${this.uid}`,"aria-labelledby":o?`evoke-tab-${this.uid}-${o}`:void 0,tabindex:0},e("slot",{key:"df28c424c9fd41a51f6068d04cf1f71605207d9d"})))}get el(){return i(this)}};M.style="evoke-tabs{display:block;min-width:0;max-width:100%}evoke-tabs .evoke-tabs{font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);color:var(--evoke-text, #1a1a1a)}evoke-tabs .evoke-tabs__list{display:flex;gap:4px;overflow-x:auto}evoke-tabs .evoke-tabs__tab{flex:none;font:inherit;font-size:1rem;padding:12px 20px;background:transparent;border:0;color:var(--evoke-text-muted, #6b6b6b);cursor:pointer;transition:color 0.15s, background-color 0.15s, filter 0.15s}evoke-tabs .evoke-tabs__tab:hover:not(:disabled):not(.evoke-tabs__tab--active){color:var(--evoke-text, #1a1a1a)}evoke-tabs .evoke-tabs__tab:disabled{opacity:0.5;cursor:not-allowed}evoke-tabs .evoke-tabs__tab:focus-visible{outline:none;box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15))}evoke-tabs .evoke-tabs--underline .evoke-tabs__list{border-bottom:1px solid var(--evoke-border, #dedede);gap:0}evoke-tabs .evoke-tabs--underline .evoke-tabs__tab{border-bottom:2px solid transparent;margin-bottom:-1px}evoke-tabs .evoke-tabs--underline .evoke-tabs__tab:hover:not(:disabled):not(.evoke-tabs__tab--active){border-bottom-color:var(--evoke-border, #dedede)}evoke-tabs .evoke-tabs--underline .evoke-tabs__tab--active{color:var(--evoke-primary-text, #cc3d0d);border-bottom-color:var(--evoke-primary, #ff5316);font-weight:500}evoke-tabs .evoke-tabs--underline .evoke-tabs__tab:active:not(:disabled){background:var(--evoke-surface-muted, #f5f5f5)}evoke-tabs .evoke-tabs--pill .evoke-tabs__tab{border-radius:var(--evoke-radius-button, 9999px);padding:8px 20px}evoke-tabs .evoke-tabs--pill .evoke-tabs__tab:hover:not(:disabled):not(.evoke-tabs__tab--active){background:var(--evoke-surface-muted, #f5f5f5)}evoke-tabs .evoke-tabs--pill .evoke-tabs__tab--active{background:var(--evoke-primary, #ff5316);color:var(--evoke-primary-contrast, #ffffff)}evoke-tabs .evoke-tabs--pill .evoke-tabs__tab:active:not(:disabled){filter:brightness(0.85)}evoke-tabs .evoke-tabs__panel{padding:16px 0}evoke-tabs .evoke-tabs__panel:focus-visible{outline:none;box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15));border-radius:var(--evoke-radius-field, 8px)}";const z=class{constructor(e){o(this,e),this.evokeInput=t(this,"evokeInput"),this.evokeChange=t(this,"evokeChange"),this.label="",this.value="",this.name="",this.placeholder="",this.rows=4,this.autoGrow=!1,this.disabled=!1,this.required=!1,this.error="",this.hint="",this.textareaClass="",this.uid=Math.random().toString(36).slice(2,9)}componentDidRender(){this.resize()}resize(){this.autoGrow&&this.el&&(this.el.style.height="auto",this.el.style.height=`${this.el.scrollHeight}px`)}render(){var o;const t=`evoke-textarea-${this.uid}`,i=`${t}-msg`,a=(null!==(o=this.value)&&void 0!==o?o:"").length,r="number"==typeof this.maxLength&&this.maxLength>0;return e("div",{key:"5d950d88f2b9e191fd4a29e4eada4c5e4d8c779d",class:"evoke-field"},this.label&&e("label",{key:"46fee07268bedd23742d8d91018dfd47c93bd58b",htmlFor:t,class:"evoke-field__label"},this.label,this.required&&e("span",{key:"45af0e76daa25a15e0583777f5217757074c8d78","aria-hidden":"true"}," *")),e("textarea",{key:"917c3b5749cd5b75133bb2b71a90e036b3f4eef9",id:t,class:`evoke-field__input evoke-field__textarea ${this.autoGrow?"evoke-field__textarea--auto":""} ${this.error?"evoke-field__input--error":""} ${this.textareaClass}`.replace(/\s+/g," ").trim(),name:this.name||void 0,rows:this.rows,maxLength:r?this.maxLength:void 0,placeholder:this.placeholder,disabled:this.disabled,required:this.required,value:this.value,"aria-invalid":this.error?"true":void 0,"aria-describedby":this.error||this.hint?i:void 0,ref:e=>this.el=e,onInput:e=>{this.value=e.target.value,this.resize(),this.evokeInput.emit(this.value)},onChange:e=>this.evokeChange.emit(e.target.value)}),e("div",{key:"95530cc625c4500a7042adda05c105f03054d4f9",class:"evoke-field__footer"},this.error?e("span",{id:i,class:"evoke-field__error",role:"alert"},this.error):e("span",{id:i,class:"evoke-field__hint"},this.hint),r&&e("span",{key:"3f3fb731453b76cd7d2b0fa2f6ce334ca0bfd554",class:("evoke-field__counter "+(a>=this.maxLength?"evoke-field__counter--full":"")).trim(),"aria-live":"polite"},a," / ",this.maxLength)))}};z.style="evoke-textarea{display:block}evoke-textarea .evoke-field{display:flex;flex-direction:column;gap:0.5rem;font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);font-size:var(--evoke-font-size, 16px);color:var(--evoke-text, #1a1a1a)}evoke-textarea .evoke-field__input{box-sizing:border-box;width:100%;padding:14px 24px;border:1px solid var(--evoke-border, #dedede);border-radius:var(--evoke-radius-field, 8px);background:var(--evoke-surface, #ffffff);color:var(--evoke-text, #1a1a1a);font:inherit;line-height:1.5;resize:vertical;transition:border-color 0.15s, box-shadow 0.15s}evoke-textarea .evoke-field__textarea--auto{resize:none;overflow:hidden}evoke-textarea .evoke-field__input::placeholder{color:var(--evoke-text-muted, #6b6b6b)}evoke-textarea .evoke-field__input:hover:not(:disabled):not(:focus){border-color:var(--evoke-text-muted, #6b6b6b)}evoke-textarea .evoke-field__input:focus{outline:none;border-color:var(--evoke-secondary, #0b1560);box-shadow:var(--evoke-focus-ring, 0 0 0 3px rgba(11, 21, 96, 0.15))}evoke-textarea .evoke-field__input:disabled{opacity:0.6;cursor:not-allowed}evoke-textarea .evoke-field__input--error{border-color:var(--evoke-danger, #dc2626)}evoke-textarea .evoke-field__footer{display:flex;justify-content:space-between;gap:1rem;font-size:0.875rem}evoke-textarea .evoke-field__footer:empty{display:none}evoke-textarea .evoke-field__hint{color:var(--evoke-text-muted, #6b6b6b)}evoke-textarea .evoke-field__error{color:var(--evoke-danger, #dc2626)}evoke-textarea .evoke-field__counter{margin-left:auto;color:var(--evoke-text-muted, #6b6b6b)}evoke-textarea .evoke-field__counter--full{color:var(--evoke-danger, #dc2626)}";const C={info:"info",success:"check",warning:"alert",danger:"alert"},S=class{constructor(e){o(this,e),this.evokeAction=t(this,"evokeAction"),this.evokeClose=t(this,"evokeClose"),this.open=!1,this.message="",this.type="info",this.action="",this.duration=4e3,this.position="bottom"}onOpen(e){this.clearTimer(),e&&this.startTimer()}componentDidLoad(){this.open&&this.startTimer()}disconnectedCallback(){this.clearTimer()}startTimer(){this.duration>0&&(this.timer=setTimeout((()=>this.close()),this.duration))}clearTimer(){this.timer&&clearTimeout(this.timer),this.timer=void 0}close(){this.clearTimer(),this.open=!1,this.evokeClose.emit()}render(){if(!this.open)return null;const o="danger"===this.type||"warning"===this.type;return e("div",{class:`evoke-toast evoke-toast--${this.position} evoke-toast--${this.type}`,role:o?"alert":"status","aria-live":o?"assertive":"polite",onMouseEnter:()=>this.clearTimer(),onMouseLeave:()=>this.open&&this.startTimer()},r(C[this.type],"evoke-toast__icon"),e("span",{class:"evoke-toast__message"},this.message,e("slot",null)),this.action&&e("button",{type:"button",class:"evoke-toast__action",onClick:()=>{this.evokeAction.emit(),this.close()}},this.action),e("button",{type:"button",class:"evoke-toast__close","aria-label":"Dismiss",onClick:()=>this.close()},r("x","evoke-icon")))}static get watchers(){return{open:[{onOpen:0}]}}};S.style="evoke-toast .evoke-toast{position:fixed;left:50%;z-index:1100;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:max-content;max-width:min(92vw, 480px);padding:12px 12px 12px 16px;border-radius:var(--evoke-radius, 8px);background:var(--evoke-text, #1a1a1a);color:var(--evoke-surface, #ffffff);font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);font-size:0.9375rem;box-shadow:var(--evoke-shadow, 0 4px 12px rgba(0, 0, 0, 0.12));transform:translateX(-50%);animation:evoke-toast-in 0.2s ease-out}evoke-toast .evoke-toast--bottom{bottom:24px}evoke-toast .evoke-toast--top{top:24px}evoke-toast .evoke-toast--success .evoke-toast__icon{color:#4ade80}evoke-toast .evoke-toast--danger .evoke-toast__icon{color:#f87171}evoke-toast .evoke-toast--warning .evoke-toast__icon{color:#fbbf24}evoke-toast .evoke-toast--info .evoke-toast__icon{color:#67e8f9}evoke-toast .evoke-toast__icon{flex:none;width:20px;height:20px}evoke-toast .evoke-toast__message{flex:1;min-width:0}evoke-toast .evoke-toast__action{flex:none;padding:6px 12px;font:inherit;font-weight:600;background:transparent;color:#ffb199;border:0;border-radius:var(--evoke-radius-field, 8px);cursor:pointer}evoke-toast .evoke-toast__action:hover{background:rgba(255, 255, 255, 0.12)}evoke-toast .evoke-toast__action:active{background:rgba(255, 255, 255, 0.2)}evoke-toast .evoke-toast__close{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;background:none;border:0;border-radius:50%;color:inherit;cursor:pointer}evoke-toast .evoke-toast__close:hover{background:rgba(255, 255, 255, 0.12)}evoke-toast .evoke-toast__action:focus-visible,evoke-toast .evoke-toast__close:focus-visible{outline:2px solid var(--evoke-surface, #ffffff);outline-offset:1px}evoke-toast .evoke-toast__close .evoke-icon{width:16px;height:16px}@keyframes evoke-toast-in{from{opacity:0;transform:translate(-50%, 8px)}to{opacity:1;transform:translate(-50%, 0)}}@media (prefers-reduced-motion: reduce){evoke-toast .evoke-toast{animation:none}}";const q=class{constructor(e){o(this,e),this.text="",this.placement="top",this.theme="dark",this.visible=!1,this.id=`evoke-tip-${Math.random().toString(36).slice(2,9)}`,this.show=()=>this.visible=!0,this.hide=()=>this.visible=!1}componentDidLoad(){this.link(),this.observer=new MutationObserver((()=>this.link())),this.observer.observe(this.el,{childList:!0,subtree:!0})}disconnectedCallback(){var e;null===(e=this.observer)||void 0===e||e.disconnect()}link(){this.el.querySelectorAll("button, a[href], input, select, textarea, [tabindex]").forEach((e=>{var o;if(e.closest(".evoke-tooltip__bubble"))return;const t=(null!==(o=e.getAttribute("aria-describedby"))&&void 0!==o?o:"").split(" ").filter(Boolean);t.includes(this.id)||e.setAttribute("aria-describedby",[...t,this.id].join(" "))}))}render(){return e("span",{key:"4fad6f7ab25d2d68bb6db42a02f16b36439ec504",class:"evoke-tooltip",onMouseEnter:this.show,onMouseLeave:this.hide,onFocusin:this.show,onFocusout:this.hide,onKeyDown:e=>"Escape"===e.key&&this.hide()},e("slot",{key:"b1169b0a9870c3420c581d095eb0c15073df55df"}),e("span",{key:"4ee1f48be749e54c93dc7fd555f8021079d68038",id:this.id,role:"tooltip",class:`evoke-tooltip__bubble evoke-tooltip__bubble--${this.placement} evoke-tooltip__bubble--${this.theme} ${this.visible?"evoke-tooltip__bubble--visible":""}`.trim()},this.text))}get el(){return i(this)}};q.style="evoke-tooltip{display:inline-block}evoke-tooltip .evoke-tooltip{position:relative;display:inline-flex}evoke-tooltip .evoke-tooltip__bubble{--_bg:var(--evoke-text, #1a1a1a);--_fg:var(--evoke-surface, #ffffff);position:absolute;z-index:30;box-sizing:border-box;width:max-content;max-width:240px;padding:6px 10px;border-radius:calc(var(--evoke-radius-field, 8px) - 2px);background:var(--_bg);color:var(--_fg);font-family:var(--evoke-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);font-size:0.875rem;line-height:1.4;pointer-events:none;opacity:0;visibility:hidden;transition:opacity 0.12s, visibility 0.12s}evoke-tooltip .evoke-tooltip__bubble--visible{opacity:1;visibility:visible}evoke-tooltip .evoke-tooltip__bubble--light{--_bg:var(--evoke-surface, #ffffff);--_fg:var(--evoke-text, #1a1a1a);border:1px solid var(--evoke-border, #dedede);box-shadow:var(--evoke-shadow, 0 4px 12px rgba(0, 0, 0, 0.12))}evoke-tooltip .evoke-tooltip__bubble--top{bottom:calc(100% + 8px);left:50%;transform:translateX(-50%)}evoke-tooltip .evoke-tooltip__bubble--bottom{top:calc(100% + 8px);left:50%;transform:translateX(-50%)}evoke-tooltip .evoke-tooltip__bubble--left{right:calc(100% + 8px);top:50%;transform:translateY(-50%)}evoke-tooltip .evoke-tooltip__bubble--right{left:calc(100% + 8px);top:50%;transform:translateY(-50%)}evoke-tooltip .evoke-tooltip__bubble--light::after{content:'';position:absolute;width:8px;height:8px;background:var(--_bg);border:1px solid var(--evoke-border, #dedede);transform:rotate(45deg)}evoke-tooltip .evoke-tooltip__bubble--light.evoke-tooltip__bubble--top::after{bottom:-5px;left:calc(50% - 4px);border-top:0;border-left:0}evoke-tooltip .evoke-tooltip__bubble--light.evoke-tooltip__bubble--bottom::after{top:-5px;left:calc(50% - 4px);border-bottom:0;border-right:0}evoke-tooltip .evoke-tooltip__bubble--light.evoke-tooltip__bubble--left::after{right:-5px;top:calc(50% - 4px);border-bottom:0;border-left:0}evoke-tooltip .evoke-tooltip__bubble--light.evoke-tooltip__bubble--right::after{left:-5px;top:calc(50% - 4px);border-top:0;border-right:0}@media (prefers-reduced-motion: reduce){evoke-tooltip .evoke-tooltip__bubble{transition:none}}";export{n as evoke_alert,v as evoke_app_bar,d as evoke_badge,l as evoke_button,c as evoke_card,k as evoke_checkbox,h as evoke_chip,b as evoke_input,p as evoke_modal,f as evoke_pagination,_ as evoke_progress,g as evoke_quantity_stepper,m as evoke_radio_group,y as evoke_select,w as evoke_switch,$ as evoke_table,M as evoke_tabs,z as evoke_textarea,S as evoke_toast,q as evoke_tooltip}