@jumpgroup/jump-design-system 0.3.58 → 0.3.63

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 (233) hide show
  1. package/dist/cjs/chunk.H33C3MRM-31110702.js +365 -0
  2. package/dist/cjs/chunk.H33C3MRM-31110702.js.map +1 -0
  3. package/dist/cjs/chunk.WLV3FVBR-bfad29d7.js +238 -0
  4. package/dist/cjs/chunk.WLV3FVBR-bfad29d7.js.map +1 -0
  5. package/dist/cjs/{class-map-b27ebf69.js → class-map-010ed95d.js} +3 -3
  6. package/dist/cjs/{class-map-b27ebf69.js.map → class-map-010ed95d.js.map} +1 -1
  7. package/dist/cjs/{chunk.H33C3MRM-2c09acb5.js → directive-helpers-b6926fa1.js} +2 -360
  8. package/dist/cjs/directive-helpers-b6926fa1.js.map +1 -0
  9. package/dist/cjs/if-defined-da1385f1.js +432 -0
  10. package/dist/cjs/if-defined-da1385f1.js.map +1 -0
  11. package/dist/cjs/{index-e91b2b41.js → index-864e40de.js} +5 -2
  12. package/dist/cjs/index-864e40de.js.map +1 -0
  13. package/dist/cjs/jump-accordion-group.cjs.entry.js +1 -1
  14. package/dist/cjs/jump-accordion.cjs.entry.js +32 -255
  15. package/dist/cjs/jump-accordion.cjs.entry.js.map +1 -1
  16. package/dist/cjs/jump-badge.cjs.entry.js +1 -1
  17. package/dist/cjs/jump-button_2.cjs.entry.js +3 -2
  18. package/dist/cjs/jump-button_2.cjs.entry.js.map +1 -1
  19. package/dist/cjs/jump-card-ecommerce-option.cjs.entry.js +1 -1
  20. package/dist/cjs/jump-card-ecommerce.cjs.entry.js +1 -1
  21. package/dist/cjs/jump-card.cjs.entry.js +1 -1
  22. package/dist/cjs/jump-design-system.cjs.js +2 -2
  23. package/dist/cjs/jump-filter-checkbox.cjs.entry.js +46 -470
  24. package/dist/cjs/jump-filter-checkbox.cjs.entry.js.map +1 -1
  25. package/dist/cjs/jump-filter-select.cjs.entry.js +4229 -0
  26. package/dist/cjs/jump-filter-select.cjs.entry.js.map +1 -0
  27. package/dist/cjs/jump-filter-switch.cjs.entry.js +440 -0
  28. package/dist/cjs/jump-filter-switch.cjs.entry.js.map +1 -0
  29. package/dist/cjs/jump-filter.cjs.entry.js +1 -1
  30. package/dist/cjs/jump-filtergroup.cjs.entry.js +4 -4
  31. package/dist/cjs/jump-navbar.cjs.entry.js +6 -6
  32. package/dist/cjs/jump-pagination-table.cjs.entry.js +4 -4
  33. package/dist/cjs/jump-pagination.cjs.entry.js +4 -4
  34. package/dist/cjs/jump-quantity.cjs.entry.js +10 -4
  35. package/dist/cjs/jump-quantity.cjs.entry.js.map +1 -1
  36. package/dist/cjs/jump-search-bar-dropdown-item.cjs.entry.js +2 -2
  37. package/dist/cjs/jump-search-bar-mobile.cjs.entry.js +5 -5
  38. package/dist/cjs/jump-search-bar.cjs.entry.js +1 -1
  39. package/dist/cjs/jump-tab-item.cjs.entry.js +3 -3
  40. package/dist/cjs/jump-tab-panel.cjs.entry.js +2 -2
  41. package/dist/cjs/jump-tab.cjs.entry.js +2 -2
  42. package/dist/cjs/live-a9a3fb36.js +14 -0
  43. package/dist/cjs/live-a9a3fb36.js.map +1 -0
  44. package/dist/cjs/loader.cjs.js +2 -2
  45. package/dist/collection/collection-manifest.json +2 -0
  46. package/dist/collection/components/jump-filter-checkbox/jump-filter-checkbox.stories.js +0 -5
  47. package/dist/collection/components/jump-filter-checkbox/jump-filter-checkbox.stories.js.map +1 -1
  48. package/dist/collection/components/jump-filter-select/jump-filter-select.css +578 -0
  49. package/dist/collection/components/jump-filter-select/jump-filter-select.js +373 -0
  50. package/dist/collection/components/jump-filter-select/jump-filter-select.js.map +1 -0
  51. package/dist/collection/components/jump-filter-select/jump-filter-select.stories.js +211 -0
  52. package/dist/collection/components/jump-filter-switch/jump-filter-switch.css +536 -0
  53. package/dist/collection/components/jump-filter-switch/jump-filter-switch.js +175 -0
  54. package/dist/collection/components/jump-filter-switch/jump-filter-switch.js.map +1 -0
  55. package/dist/collection/components/jump-filter-switch/jump-filter-switch.stories.js +68 -0
  56. package/dist/collection/components/jump-filter-switch/jump-filter-switch.stories.js.map +1 -0
  57. package/dist/collection/components/jump-filtergroup/jump-filtergroup.js +3 -3
  58. package/dist/collection/components/jump-navbar/jump-navbar.js +5 -5
  59. package/dist/collection/components/jump-pagination/jump-pagination.js +3 -3
  60. package/dist/collection/components/jump-pagination-table/jump-pagination-table.js +3 -3
  61. package/dist/collection/components/jump-quantity/jump-quantity.js +30 -3
  62. package/dist/collection/components/jump-quantity/jump-quantity.js.map +1 -1
  63. package/dist/collection/components/jump-search-bar-dropdown-item/jump-search-bar-dropdown-item.js +1 -1
  64. package/dist/collection/components/jump-search-bar-mobile/jump-search-bar-mobile.js +4 -4
  65. package/dist/collection/components/jump-tab/jump-tab.js +1 -1
  66. package/dist/collection/components/jump-tab-item/jump-tab-item.js +2 -2
  67. package/dist/collection/components/jump-tab-panel/jump-tab-panel.js +1 -1
  68. package/dist/components/chunk.H33C3MRM.js +3 -170
  69. package/dist/components/chunk.H33C3MRM.js.map +1 -1
  70. package/dist/components/chunk.WLV3FVBR.js +230 -0
  71. package/dist/components/chunk.WLV3FVBR.js.map +1 -0
  72. package/dist/components/class-map.js +1 -1
  73. package/dist/{esm/chunk.H33C3MRM-632f8755.js → components/directive-helpers.js} +2 -359
  74. package/dist/components/directive-helpers.js.map +1 -0
  75. package/dist/components/if-defined.js +426 -0
  76. package/dist/components/if-defined.js.map +1 -0
  77. package/dist/components/jump-accordion.js +3 -226
  78. package/dist/components/jump-accordion.js.map +1 -1
  79. package/dist/components/jump-filter-checkbox.js +8 -432
  80. package/dist/components/jump-filter-checkbox.js.map +1 -1
  81. package/dist/components/jump-filter-select.d.ts +11 -0
  82. package/dist/components/jump-filter-select.js +4257 -0
  83. package/dist/components/jump-filter-select.js.map +1 -0
  84. package/dist/components/jump-filter-switch.d.ts +11 -0
  85. package/dist/components/jump-filter-switch.js +460 -0
  86. package/dist/components/jump-filter-switch.js.map +1 -0
  87. package/dist/components/jump-filtergroup.js +3 -3
  88. package/dist/components/jump-icon2.js +1 -0
  89. package/dist/components/jump-icon2.js.map +1 -1
  90. package/dist/components/jump-navbar.js +5 -5
  91. package/dist/components/jump-pagination-table.js +3 -3
  92. package/dist/components/jump-pagination.js +3 -3
  93. package/dist/components/jump-quantity.js +10 -3
  94. package/dist/components/jump-quantity.js.map +1 -1
  95. package/dist/components/jump-search-bar-dropdown-item.js +1 -1
  96. package/dist/components/jump-search-bar-mobile.js +4 -4
  97. package/dist/components/jump-tab-item.js +2 -2
  98. package/dist/components/jump-tab-panel.js +1 -1
  99. package/dist/components/jump-tab.js +1 -1
  100. package/dist/components/live.js +12 -0
  101. package/dist/components/live.js.map +1 -0
  102. package/dist/esm/chunk.H33C3MRM-7dcbd943.js +362 -0
  103. package/dist/esm/chunk.H33C3MRM-7dcbd943.js.map +1 -0
  104. package/dist/esm/chunk.WLV3FVBR-ded9a646.js +230 -0
  105. package/dist/esm/chunk.WLV3FVBR-ded9a646.js.map +1 -0
  106. package/dist/esm/{class-map-3150cdfe.js → class-map-a2676e27.js} +2 -2
  107. package/dist/esm/{class-map-3150cdfe.js.map → class-map-a2676e27.js.map} +1 -1
  108. package/dist/esm/directive-helpers-d80c2187.js +172 -0
  109. package/dist/esm/directive-helpers-d80c2187.js.map +1 -0
  110. package/dist/esm/if-defined-85ab7b97.js +426 -0
  111. package/dist/esm/if-defined-85ab7b97.js.map +1 -0
  112. package/dist/esm/{index-9a1da0f0.js → index-7eb565cd.js} +5 -2
  113. package/dist/esm/index-7eb565cd.js.map +1 -0
  114. package/dist/esm/jump-accordion-group.entry.js +1 -1
  115. package/dist/esm/jump-accordion.entry.js +5 -228
  116. package/dist/esm/jump-accordion.entry.js.map +1 -1
  117. package/dist/esm/jump-badge.entry.js +1 -1
  118. package/dist/esm/jump-button_2.entry.js +3 -2
  119. package/dist/esm/jump-button_2.entry.js.map +1 -1
  120. package/dist/esm/jump-card-ecommerce-option.entry.js +1 -1
  121. package/dist/esm/jump-card-ecommerce.entry.js +1 -1
  122. package/dist/esm/jump-card.entry.js +1 -1
  123. package/dist/esm/jump-design-system.js +3 -3
  124. package/dist/esm/jump-filter-checkbox.entry.js +9 -433
  125. package/dist/esm/jump-filter-checkbox.entry.js.map +1 -1
  126. package/dist/esm/jump-filter-select.entry.js +4225 -0
  127. package/dist/esm/jump-filter-select.entry.js.map +1 -0
  128. package/dist/esm/jump-filter-switch.entry.js +436 -0
  129. package/dist/esm/jump-filter-switch.entry.js.map +1 -0
  130. package/dist/esm/jump-filter.entry.js +1 -1
  131. package/dist/esm/jump-filtergroup.entry.js +4 -4
  132. package/dist/esm/jump-navbar.entry.js +6 -6
  133. package/dist/esm/jump-pagination-table.entry.js +4 -4
  134. package/dist/esm/jump-pagination.entry.js +4 -4
  135. package/dist/esm/jump-quantity.entry.js +10 -4
  136. package/dist/esm/jump-quantity.entry.js.map +1 -1
  137. package/dist/esm/jump-search-bar-dropdown-item.entry.js +2 -2
  138. package/dist/esm/jump-search-bar-mobile.entry.js +5 -5
  139. package/dist/esm/jump-search-bar.entry.js +1 -1
  140. package/dist/esm/jump-tab-item.entry.js +3 -3
  141. package/dist/esm/jump-tab-panel.entry.js +2 -2
  142. package/dist/esm/jump-tab.entry.js +2 -2
  143. package/dist/esm/live-253d6806.js +12 -0
  144. package/dist/esm/live-253d6806.js.map +1 -0
  145. package/dist/esm/loader.js +3 -3
  146. package/dist/jump-design-system/jump-design-system.esm.js +1 -1
  147. package/dist/jump-design-system/jump-design-system.esm.js.map +1 -1
  148. package/dist/jump-design-system/p-0cbcc5b3.entry.js +2 -0
  149. package/dist/jump-design-system/p-1b31e36f.js +17 -0
  150. package/dist/jump-design-system/p-1b31e36f.js.map +1 -0
  151. package/dist/jump-design-system/{p-2e2bd8a9.entry.js → p-201c09dd.entry.js} +2 -2
  152. package/dist/jump-design-system/p-35633b03.entry.js +848 -0
  153. package/dist/jump-design-system/p-35633b03.entry.js.map +1 -0
  154. package/dist/jump-design-system/p-39b82674.entry.js +2 -0
  155. package/dist/jump-design-system/{p-feb825e0.entry.js → p-3b4127b0.entry.js} +2 -2
  156. package/dist/jump-design-system/{p-6b1ab8c3.entry.js → p-3e31b638.entry.js} +2 -2
  157. package/dist/jump-design-system/p-53bf2958.entry.js +213 -0
  158. package/dist/jump-design-system/p-53bf2958.entry.js.map +1 -0
  159. package/dist/jump-design-system/p-67339850.js +63 -0
  160. package/dist/jump-design-system/p-67339850.js.map +1 -0
  161. package/dist/jump-design-system/{p-f7c323d2.entry.js → p-7dd5052b.entry.js} +2 -2
  162. package/dist/jump-design-system/p-8d1d2af9.entry.js +117 -0
  163. package/dist/jump-design-system/p-8d1d2af9.entry.js.map +1 -0
  164. package/dist/jump-design-system/p-8e0419b1.entry.js +2 -0
  165. package/dist/jump-design-system/{p-6dc529fc.entry.js → p-90c51b48.entry.js} +2 -2
  166. package/dist/jump-design-system/p-926c7bf0.entry.js +2 -0
  167. package/dist/jump-design-system/p-94229ed5.js +7 -0
  168. package/dist/jump-design-system/p-94229ed5.js.map +1 -0
  169. package/dist/jump-design-system/{p-02e863db.entry.js → p-94790673.entry.js} +2 -2
  170. package/dist/jump-design-system/{p-466e0ade.entry.js → p-947d7f9a.entry.js} +2 -2
  171. package/dist/jump-design-system/p-95a1bbc5.js +51 -0
  172. package/dist/jump-design-system/p-95a1bbc5.js.map +1 -0
  173. package/dist/jump-design-system/p-98ef4924.entry.js +2 -0
  174. package/dist/jump-design-system/{p-3f6d50d5.entry.js.map → p-98ef4924.entry.js.map} +1 -1
  175. package/dist/jump-design-system/{p-198cfe62.js → p-9d21c18a.js} +2 -2
  176. package/dist/jump-design-system/p-a05d9480.entry.js +178 -0
  177. package/dist/jump-design-system/p-a05d9480.entry.js.map +1 -0
  178. package/dist/jump-design-system/{p-a9b78af2.entry.js → p-ad550de6.entry.js} +2 -2
  179. package/dist/jump-design-system/{p-1aa5fb8a.entry.js → p-d3b62e9b.entry.js} +2 -2
  180. package/dist/jump-design-system/{p-bdafe87d.entry.js → p-d8bfd21c.entry.js} +2 -2
  181. package/dist/jump-design-system/{p-a1c25113.entry.js → p-d94fabc1.entry.js} +2 -2
  182. package/dist/jump-design-system/p-e516e812.js +3 -0
  183. package/dist/jump-design-system/p-e516e812.js.map +1 -0
  184. package/dist/jump-design-system/p-f2d287d6.js +2 -0
  185. package/dist/jump-design-system/p-f2d287d6.js.map +1 -0
  186. package/dist/jump-design-system/p-fa0dcb05.entry.js +2 -0
  187. package/dist/jump-design-system/p-fa0dcb05.entry.js.map +1 -0
  188. package/dist/jump-design-system/{p-07633158.entry.js → p-ff8d70ab.entry.js} +2 -2
  189. package/dist/jump-design-system-elements.json +66 -0
  190. package/dist/types/components/jump-filter-checkbox/jump-filter-checkbox.stories.d.ts +0 -5
  191. package/dist/types/components/jump-filter-select/jump-filter-select.d.ts +76 -0
  192. package/dist/types/components/jump-filter-switch/jump-filter-switch.d.ts +35 -0
  193. package/dist/types/components/jump-filter-switch/jump-filter-switch.stories.d.ts +24 -0
  194. package/dist/types/components/jump-quantity/jump-quantity.d.ts +4 -0
  195. package/dist/types/components.d.ts +210 -0
  196. package/package.json +1 -1
  197. package/readme.md +1 -9
  198. package/dist/cjs/chunk.H33C3MRM-2c09acb5.js.map +0 -1
  199. package/dist/cjs/index-e91b2b41.js.map +0 -1
  200. package/dist/esm/chunk.H33C3MRM-632f8755.js.map +0 -1
  201. package/dist/esm/index-9a1da0f0.js.map +0 -1
  202. package/dist/jump-design-system/p-21aa0095.js +0 -3
  203. package/dist/jump-design-system/p-21aa0095.js.map +0 -1
  204. package/dist/jump-design-system/p-3f6d50d5.entry.js +0 -2
  205. package/dist/jump-design-system/p-506950ea.entry.js +0 -2
  206. package/dist/jump-design-system/p-506950ea.entry.js.map +0 -1
  207. package/dist/jump-design-system/p-6e7c80a3.entry.js +0 -244
  208. package/dist/jump-design-system/p-6e7c80a3.entry.js.map +0 -1
  209. package/dist/jump-design-system/p-842fff70.entry.js +0 -117
  210. package/dist/jump-design-system/p-842fff70.entry.js.map +0 -1
  211. package/dist/jump-design-system/p-8f581228.entry.js +0 -2
  212. package/dist/jump-design-system/p-a826c477.entry.js +0 -2
  213. package/dist/jump-design-system/p-b03c5b24.entry.js +0 -2
  214. package/dist/jump-design-system/p-c77d216c.entry.js +0 -2
  215. package/dist/jump-design-system/p-d33f4f1d.js +0 -66
  216. package/dist/jump-design-system/p-d33f4f1d.js.map +0 -1
  217. /package/dist/jump-design-system/{p-b03c5b24.entry.js.map → p-0cbcc5b3.entry.js.map} +0 -0
  218. /package/dist/jump-design-system/{p-2e2bd8a9.entry.js.map → p-201c09dd.entry.js.map} +0 -0
  219. /package/dist/jump-design-system/{p-8f581228.entry.js.map → p-39b82674.entry.js.map} +0 -0
  220. /package/dist/jump-design-system/{p-feb825e0.entry.js.map → p-3b4127b0.entry.js.map} +0 -0
  221. /package/dist/jump-design-system/{p-6b1ab8c3.entry.js.map → p-3e31b638.entry.js.map} +0 -0
  222. /package/dist/jump-design-system/{p-f7c323d2.entry.js.map → p-7dd5052b.entry.js.map} +0 -0
  223. /package/dist/jump-design-system/{p-c77d216c.entry.js.map → p-8e0419b1.entry.js.map} +0 -0
  224. /package/dist/jump-design-system/{p-6dc529fc.entry.js.map → p-90c51b48.entry.js.map} +0 -0
  225. /package/dist/jump-design-system/{p-a826c477.entry.js.map → p-926c7bf0.entry.js.map} +0 -0
  226. /package/dist/jump-design-system/{p-02e863db.entry.js.map → p-94790673.entry.js.map} +0 -0
  227. /package/dist/jump-design-system/{p-466e0ade.entry.js.map → p-947d7f9a.entry.js.map} +0 -0
  228. /package/dist/jump-design-system/{p-198cfe62.js.map → p-9d21c18a.js.map} +0 -0
  229. /package/dist/jump-design-system/{p-a9b78af2.entry.js.map → p-ad550de6.entry.js.map} +0 -0
  230. /package/dist/jump-design-system/{p-1aa5fb8a.entry.js.map → p-d3b62e9b.entry.js.map} +0 -0
  231. /package/dist/jump-design-system/{p-bdafe87d.entry.js.map → p-d8bfd21c.entry.js.map} +0 -0
  232. /package/dist/jump-design-system/{p-a1c25113.entry.js.map → p-d94fabc1.entry.js.map} +0 -0
  233. /package/dist/jump-design-system/{p-07633158.entry.js.map → p-ff8d70ab.entry.js.map} +0 -0
@@ -0,0 +1,362 @@
1
+ import { i, c as component_styles_default, _ as __decorateClass, w as watch, S as ShoelaceElement, x, e, r, n } from './directive-helpers-d80c2187.js';
2
+
3
+ // src/utilities/base-path.ts
4
+ var basePath = "";
5
+ function setBasePath(path) {
6
+ basePath = path;
7
+ }
8
+ function getBasePath(subpath = "") {
9
+ if (!basePath) {
10
+ const scripts = [...document.getElementsByTagName("script")];
11
+ const configScript = scripts.find((script) => script.hasAttribute("data-shoelace"));
12
+ if (configScript) {
13
+ setBasePath(configScript.getAttribute("data-shoelace"));
14
+ } else {
15
+ const fallbackScript = scripts.find((s) => {
16
+ return /shoelace(\.min)?\.js($|\?)/.test(s.src) || /shoelace-autoloader(\.min)?\.js($|\?)/.test(s.src);
17
+ });
18
+ let path = "";
19
+ if (fallbackScript) {
20
+ path = fallbackScript.getAttribute("src");
21
+ }
22
+ setBasePath(path.split("/").slice(0, -1).join("/"));
23
+ }
24
+ }
25
+ return basePath.replace(/\/$/, "") + (subpath ? `/${subpath.replace(/^\//, "")}` : ``);
26
+ }
27
+
28
+ // src/components/icon/library.default.ts
29
+ var library = {
30
+ name: "default",
31
+ resolver: (name) => getBasePath(`assets/icons/${name}.svg`)
32
+ };
33
+ var library_default_default = library;
34
+
35
+ // src/components/icon/library.system.ts
36
+ var icons = {
37
+ caret: `
38
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
39
+ <polyline points="6 9 12 15 18 9"></polyline>
40
+ </svg>
41
+ `,
42
+ check: `
43
+ <svg part="checked-icon" class="checkbox__icon" viewBox="0 0 16 16">
44
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
45
+ <g stroke="currentColor">
46
+ <g transform="translate(3.428571, 3.428571)">
47
+ <path d="M0,5.71428571 L3.42857143,9.14285714"></path>
48
+ <path d="M9.14285714,0 L3.42857143,9.14285714"></path>
49
+ </g>
50
+ </g>
51
+ </g>
52
+ </svg>
53
+ `,
54
+ "chevron-down": `
55
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16">
56
+ <path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>
57
+ </svg>
58
+ `,
59
+ "chevron-left": `
60
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-left" viewBox="0 0 16 16">
61
+ <path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/>
62
+ </svg>
63
+ `,
64
+ "chevron-right": `
65
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
66
+ <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/>
67
+ </svg>
68
+ `,
69
+ copy: `
70
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-copy" viewBox="0 0 16 16">
71
+ <path fill-rule="evenodd" d="M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V2Zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H6ZM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1H2Z"/>
72
+ </svg>
73
+ `,
74
+ eye: `
75
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye" viewBox="0 0 16 16">
76
+ <path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z"/>
77
+ <path d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z"/>
78
+ </svg>
79
+ `,
80
+ "eye-slash": `
81
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye-slash" viewBox="0 0 16 16">
82
+ <path d="M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z"/>
83
+ <path d="M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z"/>
84
+ <path d="M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884-12-12 .708-.708 12 12-.708.708z"/>
85
+ </svg>
86
+ `,
87
+ eyedropper: `
88
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eyedropper" viewBox="0 0 16 16">
89
+ <path d="M13.354.646a1.207 1.207 0 0 0-1.708 0L8.5 3.793l-.646-.647a.5.5 0 1 0-.708.708L8.293 5l-7.147 7.146A.5.5 0 0 0 1 12.5v1.793l-.854.853a.5.5 0 1 0 .708.707L1.707 15H3.5a.5.5 0 0 0 .354-.146L11 7.707l1.146 1.147a.5.5 0 0 0 .708-.708l-.647-.646 3.147-3.146a1.207 1.207 0 0 0 0-1.708l-2-2zM2 12.707l7-7L10.293 7l-7 7H2v-1.293z"></path>
90
+ </svg>
91
+ `,
92
+ "grip-vertical": `
93
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-grip-vertical" viewBox="0 0 16 16">
94
+ <path d="M7 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"></path>
95
+ </svg>
96
+ `,
97
+ indeterminate: `
98
+ <svg part="indeterminate-icon" class="checkbox__icon" viewBox="0 0 16 16">
99
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
100
+ <g stroke="currentColor" stroke-width="2">
101
+ <g transform="translate(2.285714, 6.857143)">
102
+ <path d="M10.2857143,1.14285714 L1.14285714,1.14285714"></path>
103
+ </g>
104
+ </g>
105
+ </g>
106
+ </svg>
107
+ `,
108
+ "person-fill": `
109
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-fill" viewBox="0 0 16 16">
110
+ <path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>
111
+ </svg>
112
+ `,
113
+ "play-fill": `
114
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-play-fill" viewBox="0 0 16 16">
115
+ <path d="m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z"></path>
116
+ </svg>
117
+ `,
118
+ "pause-fill": `
119
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pause-fill" viewBox="0 0 16 16">
120
+ <path d="M5.5 3.5A1.5 1.5 0 0 1 7 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5zm5 0A1.5 1.5 0 0 1 12 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5z"></path>
121
+ </svg>
122
+ `,
123
+ radio: `
124
+ <svg part="checked-icon" class="radio__icon" viewBox="0 0 16 16">
125
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
126
+ <g fill="currentColor">
127
+ <circle cx="8" cy="8" r="3.42857143"></circle>
128
+ </g>
129
+ </g>
130
+ </svg>
131
+ `,
132
+ "star-fill": `
133
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">
134
+ <path d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"/>
135
+ </svg>
136
+ `,
137
+ "x-lg": `
138
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16">
139
+ <path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"/>
140
+ </svg>
141
+ `,
142
+ "x-circle-fill": `
143
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-circle-fill" viewBox="0 0 16 16">
144
+ <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z"></path>
145
+ </svg>
146
+ `
147
+ };
148
+ var systemLibrary = {
149
+ name: "system",
150
+ resolver: (name) => {
151
+ if (name in icons) {
152
+ return `data:image/svg+xml,${encodeURIComponent(icons[name])}`;
153
+ }
154
+ return "";
155
+ }
156
+ };
157
+ var library_system_default = systemLibrary;
158
+
159
+ // src/components/icon/library.ts
160
+ var registry = [library_default_default, library_system_default];
161
+ var watchedIcons = [];
162
+ function watchIcon(icon) {
163
+ watchedIcons.push(icon);
164
+ }
165
+ function unwatchIcon(icon) {
166
+ watchedIcons = watchedIcons.filter((el) => el !== icon);
167
+ }
168
+ function getIconLibrary(name) {
169
+ return registry.find((lib) => lib.name === name);
170
+ }
171
+ function registerIconLibrary(name, options) {
172
+ unregisterIconLibrary(name);
173
+ registry.push({
174
+ name,
175
+ resolver: options.resolver,
176
+ mutator: options.mutator,
177
+ spriteSheet: options.spriteSheet
178
+ });
179
+ watchedIcons.forEach((icon) => {
180
+ if (icon.library === name) {
181
+ icon.setIcon();
182
+ }
183
+ });
184
+ }
185
+ function unregisterIconLibrary(name) {
186
+ registry = registry.filter((lib) => lib.name !== name);
187
+ }
188
+
189
+ // src/components/icon/icon.styles.ts
190
+ var icon_styles_default = i`
191
+ :host {
192
+ display: inline-block;
193
+ width: 1em;
194
+ height: 1em;
195
+ box-sizing: content-box !important;
196
+ }
197
+
198
+ svg {
199
+ display: block;
200
+ height: 100%;
201
+ width: 100%;
202
+ }
203
+ `;
204
+
205
+ var CACHEABLE_ERROR = Symbol();
206
+ var RETRYABLE_ERROR = Symbol();
207
+ var parser;
208
+ var iconCache = /* @__PURE__ */ new Map();
209
+ var SlIcon = class extends ShoelaceElement {
210
+ constructor() {
211
+ super(...arguments);
212
+ this.initialRender = false;
213
+ this.svg = null;
214
+ this.label = "";
215
+ this.library = "default";
216
+ }
217
+ /** Given a URL, this function returns the resulting SVG element or an appropriate error symbol. */
218
+ async resolveIcon(url, library) {
219
+ var _a;
220
+ let fileData;
221
+ if (library == null ? void 0 : library.spriteSheet) {
222
+ this.svg = x`<svg part="svg">
223
+ <use part="use" href="${url}"></use>
224
+ </svg>`;
225
+ await this.updateComplete;
226
+ const svg = this.shadowRoot.querySelector("[part='svg']");
227
+ if (typeof library.mutator === "function") {
228
+ library.mutator(svg);
229
+ }
230
+ return this.svg;
231
+ }
232
+ try {
233
+ fileData = await fetch(url, { mode: "cors" });
234
+ if (!fileData.ok)
235
+ return fileData.status === 410 ? CACHEABLE_ERROR : RETRYABLE_ERROR;
236
+ } catch (e) {
237
+ return RETRYABLE_ERROR;
238
+ }
239
+ try {
240
+ const div = document.createElement("div");
241
+ div.innerHTML = await fileData.text();
242
+ const svg = div.firstElementChild;
243
+ if (((_a = svg == null ? void 0 : svg.tagName) == null ? void 0 : _a.toLowerCase()) !== "svg")
244
+ return CACHEABLE_ERROR;
245
+ if (!parser)
246
+ parser = new DOMParser();
247
+ const doc = parser.parseFromString(svg.outerHTML, "text/html");
248
+ const svgEl = doc.body.querySelector("svg");
249
+ if (!svgEl)
250
+ return CACHEABLE_ERROR;
251
+ svgEl.part.add("svg");
252
+ return document.adoptNode(svgEl);
253
+ } catch (e) {
254
+ return CACHEABLE_ERROR;
255
+ }
256
+ }
257
+ connectedCallback() {
258
+ super.connectedCallback();
259
+ watchIcon(this);
260
+ }
261
+ firstUpdated() {
262
+ this.initialRender = true;
263
+ this.setIcon();
264
+ }
265
+ disconnectedCallback() {
266
+ super.disconnectedCallback();
267
+ unwatchIcon(this);
268
+ }
269
+ getIconSource() {
270
+ const library = getIconLibrary(this.library);
271
+ if (this.name && library) {
272
+ return {
273
+ url: library.resolver(this.name),
274
+ fromLibrary: true
275
+ };
276
+ }
277
+ return {
278
+ url: this.src,
279
+ fromLibrary: false
280
+ };
281
+ }
282
+ handleLabelChange() {
283
+ const hasLabel = typeof this.label === "string" && this.label.length > 0;
284
+ if (hasLabel) {
285
+ this.setAttribute("role", "img");
286
+ this.setAttribute("aria-label", this.label);
287
+ this.removeAttribute("aria-hidden");
288
+ } else {
289
+ this.removeAttribute("role");
290
+ this.removeAttribute("aria-label");
291
+ this.setAttribute("aria-hidden", "true");
292
+ }
293
+ }
294
+ async setIcon() {
295
+ var _a;
296
+ const { url, fromLibrary } = this.getIconSource();
297
+ const library = fromLibrary ? getIconLibrary(this.library) : void 0;
298
+ if (!url) {
299
+ this.svg = null;
300
+ return;
301
+ }
302
+ let iconResolver = iconCache.get(url);
303
+ if (!iconResolver) {
304
+ iconResolver = this.resolveIcon(url, library);
305
+ iconCache.set(url, iconResolver);
306
+ }
307
+ if (!this.initialRender) {
308
+ return;
309
+ }
310
+ const svg = await iconResolver;
311
+ if (svg === RETRYABLE_ERROR) {
312
+ iconCache.delete(url);
313
+ }
314
+ if (url !== this.getIconSource().url) {
315
+ return;
316
+ }
317
+ if (e(svg)) {
318
+ this.svg = svg;
319
+ return;
320
+ }
321
+ switch (svg) {
322
+ case RETRYABLE_ERROR:
323
+ case CACHEABLE_ERROR:
324
+ this.svg = null;
325
+ this.emit("sl-error");
326
+ break;
327
+ default:
328
+ this.svg = svg.cloneNode(true);
329
+ (_a = library == null ? void 0 : library.mutator) == null ? void 0 : _a.call(library, this.svg);
330
+ this.emit("sl-load");
331
+ }
332
+ }
333
+ render() {
334
+ return this.svg;
335
+ }
336
+ };
337
+ SlIcon.styles = [component_styles_default, icon_styles_default];
338
+ __decorateClass([
339
+ r()
340
+ ], SlIcon.prototype, "svg", 2);
341
+ __decorateClass([
342
+ n({ reflect: true })
343
+ ], SlIcon.prototype, "name", 2);
344
+ __decorateClass([
345
+ n()
346
+ ], SlIcon.prototype, "src", 2);
347
+ __decorateClass([
348
+ n()
349
+ ], SlIcon.prototype, "label", 2);
350
+ __decorateClass([
351
+ n({ reflect: true })
352
+ ], SlIcon.prototype, "library", 2);
353
+ __decorateClass([
354
+ watch("label")
355
+ ], SlIcon.prototype, "handleLabelChange", 1);
356
+ __decorateClass([
357
+ watch(["name", "src", "library"])
358
+ ], SlIcon.prototype, "setIcon", 1);
359
+
360
+ export { SlIcon as S, registerIconLibrary as r };
361
+
362
+ //# sourceMappingURL=chunk.H33C3MRM-7dcbd943.js.map
@@ -0,0 +1 @@
1
+ {"file":"chunk.H33C3MRM-7dcbd943.js","mappings":";;AAAA;AACA,IAAI,QAAQ,GAAG,EAAE,CAAC;AAClB,SAAS,WAAW,CAAC,IAAI,EAAE;AAC3B,EAAE,QAAQ,GAAG,IAAI,CAAC;AAClB,CAAC;AACD,SAAS,WAAW,CAAC,OAAO,GAAG,EAAE,EAAE;AACnC,EAAE,IAAI,CAAC,QAAQ,EAAE;AACjB,IAAI,MAAM,O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;AAC7D,CAAC,CAAC;AACF,IAAI,uBAAuB,GAAG,OAAO;;ACTrC;AACA,IAAI,KAAK,GAAG;AACZ,EAAE,KAAK,EAAE,CAAC;AACV;AACA;AACA;AACA,EAAE,CAAC;AACH,EAAE,KAAK,EAAE,CAAC;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,CAAC;AACH,EAAE,cAAc,EAAE,CAAC;AACnB;AACA;AACA;AACA,EAAE,CAAC;AACH,EAAE,cAAc,EAAE,CAAC;AACnB;AACA;AACA;AACA,EAAE,CAAC;AACH,EAAE,eAAe,EAAE,CAAC;AACpB;AACA;AACA;AACA,EAAE,CAAC;AACH,EAAE,IAAI,EAAE,CAAC;AACT;AACA;AACA;AACA,EAAE,CAAC;AACH,EAAE,GAAG,EAAE,CAAC;AACR;AACA;AACA;AACA;AACA,EAAE,CAAC;AACH,EAAE,WAAW,EAAE,CAAC;AAChB;AACA;AACA;AACA;AACA;AACA,EAAE,CAAC;AACH,EAAE,UAAU,EAAE,CAAC;AACf;AACA;AACA;AACA,EAAE,CAAC;AACH,EAAE,eAAe,EAAE,CAAC;AACpB;AACA;AACA;AACA,EAAE,CAAC;AACH,EAAE,aAAa,EAAE,CAAC;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,CAAC;AACH,EAAE,aAAa,EAAE,CAAC;AAClB;AACA;AACA;AACA,EAAE,CAAC;AACH,EAAE,WAAW,EAAE,CAAC;AAChB;AACA;AACA;AACA,EAAE,CAAC;AACH,EAAE,YAAY,EAAE,CAAC;AACjB;AACA;AACA;AACA,EAAE,CAAC;AACH,EAAE,KAAK,EAAE,CAAC;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,CAAC;AACH,EAAE,WAAW,EAAE,CAAC;AAChB;AACA;AACA;AACA,EAAE,CAAC;AACH,EAAE,MAAM,EAAE,CAAC;AACX;AACA;AACA;AACA,EAAE,CAAC;AACH,EAAE,eAAe,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Ae,CAAC;AAChB,EAAEC,CAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC7B,CAAC,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;AAChC,eAAe,CAAC;AAChB,EAAEA,CAAQ,EAAE;AACZ,CAAC,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;AAC/B,eAAe,CAAC;AAChB,EAAEA,CAAQ,EAAE;AACZ,CAAC,EAAE,MAAM,CAAC,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;AACjC,eAAe,CAAC;AAChB,EAAEA,CAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC7B,CAAC,EAAE,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;AACnC,eAAe,CAAC;AAChB,EAAE,KAAK,CAAC,OAAO,CAAC;AAChB,CAAC,EAAE,MAAM,CAAC,SAAS,EAAE,mBAAmB,EAAE,CAAC,CAAC,CAAC;AAC7C,eAAe,CAAC;AAChB,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;AACnC,CAAC,EAAE,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC;;;;","names":["css","html","isTemplateResult","state","property"],"sources":["node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3Y6SB6QS.js","node_modules/@shoelace-style/shoelace/dist/chunks/chunk.P7ZG6EMR.js","node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3TFKS637.js","node_modules/@shoelace-style/shoelace/dist/chunks/chunk.ZL53POKZ.js","node_modules/@shoelace-style/shoelace/dist/chunks/chunk.QLXRCYS4.js","node_modules/@shoelace-style/shoelace/dist/chunks/chunk.H33C3MRM.js"],"sourcesContent":["// src/utilities/base-path.ts\nvar basePath = \"\";\nfunction setBasePath(path) {\n basePath = path;\n}\nfunction getBasePath(subpath = \"\") {\n if (!basePath) {\n const scripts = [...document.getElementsByTagName(\"script\")];\n const configScript = scripts.find((script) => script.hasAttribute(\"data-shoelace\"));\n if (configScript) {\n setBasePath(configScript.getAttribute(\"data-shoelace\"));\n } else {\n const fallbackScript = scripts.find((s) => {\n return /shoelace(\\.min)?\\.js($|\\?)/.test(s.src) || /shoelace-autoloader(\\.min)?\\.js($|\\?)/.test(s.src);\n });\n let path = \"\";\n if (fallbackScript) {\n path = fallbackScript.getAttribute(\"src\");\n }\n setBasePath(path.split(\"/\").slice(0, -1).join(\"/\"));\n }\n }\n return basePath.replace(/\\/$/, \"\") + (subpath ? `/${subpath.replace(/^\\//, \"\")}` : ``);\n}\n\nexport {\n setBasePath,\n getBasePath\n};\n","import {\n getBasePath\n} from \"./chunk.3Y6SB6QS.js\";\n\n// src/components/icon/library.default.ts\nvar library = {\n name: \"default\",\n resolver: (name) => getBasePath(`assets/icons/${name}.svg`)\n};\nvar library_default_default = library;\n\nexport {\n library_default_default\n};\n","// src/components/icon/library.system.ts\nvar icons = {\n caret: `\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <polyline points=\"6 9 12 15 18 9\"></polyline>\n </svg>\n `,\n check: `\n <svg part=\"checked-icon\" class=\"checkbox__icon\" viewBox=\"0 0 16 16\">\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\">\n <g stroke=\"currentColor\">\n <g transform=\"translate(3.428571, 3.428571)\">\n <path d=\"M0,5.71428571 L3.42857143,9.14285714\"></path>\n <path d=\"M9.14285714,0 L3.42857143,9.14285714\"></path>\n </g>\n </g>\n </g>\n </svg>\n `,\n \"chevron-down\": `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-chevron-down\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" d=\"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z\"/>\n </svg>\n `,\n \"chevron-left\": `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-chevron-left\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" d=\"M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z\"/>\n </svg>\n `,\n \"chevron-right\": `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-chevron-right\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" d=\"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z\"/>\n </svg>\n `,\n copy: `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-copy\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" d=\"M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V2Zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H6ZM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1H2Z\"/>\n </svg>\n `,\n eye: `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-eye\" viewBox=\"0 0 16 16\">\n <path d=\"M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z\"/>\n <path d=\"M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z\"/>\n </svg>\n `,\n \"eye-slash\": `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-eye-slash\" viewBox=\"0 0 16 16\">\n <path d=\"M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z\"/>\n <path d=\"M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z\"/>\n <path d=\"M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884-12-12 .708-.708 12 12-.708.708z\"/>\n </svg>\n `,\n eyedropper: `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-eyedropper\" viewBox=\"0 0 16 16\">\n <path d=\"M13.354.646a1.207 1.207 0 0 0-1.708 0L8.5 3.793l-.646-.647a.5.5 0 1 0-.708.708L8.293 5l-7.147 7.146A.5.5 0 0 0 1 12.5v1.793l-.854.853a.5.5 0 1 0 .708.707L1.707 15H3.5a.5.5 0 0 0 .354-.146L11 7.707l1.146 1.147a.5.5 0 0 0 .708-.708l-.647-.646 3.147-3.146a1.207 1.207 0 0 0 0-1.708l-2-2zM2 12.707l7-7L10.293 7l-7 7H2v-1.293z\"></path>\n </svg>\n `,\n \"grip-vertical\": `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-grip-vertical\" viewBox=\"0 0 16 16\">\n <path d=\"M7 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z\"></path>\n </svg>\n `,\n indeterminate: `\n <svg part=\"indeterminate-icon\" class=\"checkbox__icon\" viewBox=\"0 0 16 16\">\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\">\n <g stroke=\"currentColor\" stroke-width=\"2\">\n <g transform=\"translate(2.285714, 6.857143)\">\n <path d=\"M10.2857143,1.14285714 L1.14285714,1.14285714\"></path>\n </g>\n </g>\n </g>\n </svg>\n `,\n \"person-fill\": `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-person-fill\" viewBox=\"0 0 16 16\">\n <path d=\"M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z\"/>\n </svg>\n `,\n \"play-fill\": `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-play-fill\" viewBox=\"0 0 16 16\">\n <path d=\"m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z\"></path>\n </svg>\n `,\n \"pause-fill\": `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-pause-fill\" viewBox=\"0 0 16 16\">\n <path d=\"M5.5 3.5A1.5 1.5 0 0 1 7 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5zm5 0A1.5 1.5 0 0 1 12 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5z\"></path>\n </svg>\n `,\n radio: `\n <svg part=\"checked-icon\" class=\"radio__icon\" viewBox=\"0 0 16 16\">\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g fill=\"currentColor\">\n <circle cx=\"8\" cy=\"8\" r=\"3.42857143\"></circle>\n </g>\n </g>\n </svg>\n `,\n \"star-fill\": `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-star-fill\" viewBox=\"0 0 16 16\">\n <path d=\"M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z\"/>\n </svg>\n `,\n \"x-lg\": `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-x-lg\" viewBox=\"0 0 16 16\">\n <path d=\"M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z\"/>\n </svg>\n `,\n \"x-circle-fill\": `\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-x-circle-fill\" viewBox=\"0 0 16 16\">\n <path d=\"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z\"></path>\n </svg>\n `\n};\nvar systemLibrary = {\n name: \"system\",\n resolver: (name) => {\n if (name in icons) {\n return `data:image/svg+xml,${encodeURIComponent(icons[name])}`;\n }\n return \"\";\n }\n};\nvar library_system_default = systemLibrary;\n\nexport {\n library_system_default\n};\n","import {\n library_default_default\n} from \"./chunk.P7ZG6EMR.js\";\nimport {\n library_system_default\n} from \"./chunk.3TFKS637.js\";\n\n// src/components/icon/library.ts\nvar registry = [library_default_default, library_system_default];\nvar watchedIcons = [];\nfunction watchIcon(icon) {\n watchedIcons.push(icon);\n}\nfunction unwatchIcon(icon) {\n watchedIcons = watchedIcons.filter((el) => el !== icon);\n}\nfunction getIconLibrary(name) {\n return registry.find((lib) => lib.name === name);\n}\nfunction registerIconLibrary(name, options) {\n unregisterIconLibrary(name);\n registry.push({\n name,\n resolver: options.resolver,\n mutator: options.mutator,\n spriteSheet: options.spriteSheet\n });\n watchedIcons.forEach((icon) => {\n if (icon.library === name) {\n icon.setIcon();\n }\n });\n}\nfunction unregisterIconLibrary(name) {\n registry = registry.filter((lib) => lib.name !== name);\n}\n\nexport {\n watchIcon,\n unwatchIcon,\n getIconLibrary,\n registerIconLibrary,\n unregisterIconLibrary\n};\n","// src/components/icon/icon.styles.ts\nimport { css } from \"lit\";\nvar icon_styles_default = css`\n :host {\n display: inline-block;\n width: 1em;\n height: 1em;\n box-sizing: content-box !important;\n }\n\n svg {\n display: block;\n height: 100%;\n width: 100%;\n }\n`;\n\nexport {\n icon_styles_default\n};\n","import {\n getIconLibrary,\n unwatchIcon,\n watchIcon\n} from \"./chunk.ZL53POKZ.js\";\nimport {\n icon_styles_default\n} from \"./chunk.QLXRCYS4.js\";\nimport {\n watch\n} from \"./chunk.2FB5TK5H.js\";\nimport {\n component_styles_default\n} from \"./chunk.TUVJKY7S.js\";\nimport {\n ShoelaceElement\n} from \"./chunk.SFSTXCXC.js\";\nimport {\n __decorateClass\n} from \"./chunk.IFDWM6P4.js\";\n\n// src/components/icon/icon.component.ts\nimport { html } from \"lit\";\nimport { isTemplateResult } from \"lit/directive-helpers.js\";\nimport { property, state } from \"lit/decorators.js\";\nvar CACHEABLE_ERROR = Symbol();\nvar RETRYABLE_ERROR = Symbol();\nvar parser;\nvar iconCache = /* @__PURE__ */ new Map();\nvar SlIcon = class extends ShoelaceElement {\n constructor() {\n super(...arguments);\n this.initialRender = false;\n this.svg = null;\n this.label = \"\";\n this.library = \"default\";\n }\n /** Given a URL, this function returns the resulting SVG element or an appropriate error symbol. */\n async resolveIcon(url, library) {\n var _a;\n let fileData;\n if (library == null ? void 0 : library.spriteSheet) {\n this.svg = html`<svg part=\"svg\">\n <use part=\"use\" href=\"${url}\"></use>\n </svg>`;\n await this.updateComplete;\n const svg = this.shadowRoot.querySelector(\"[part='svg']\");\n if (typeof library.mutator === \"function\") {\n library.mutator(svg);\n }\n return this.svg;\n }\n try {\n fileData = await fetch(url, { mode: \"cors\" });\n if (!fileData.ok)\n return fileData.status === 410 ? CACHEABLE_ERROR : RETRYABLE_ERROR;\n } catch (e) {\n return RETRYABLE_ERROR;\n }\n try {\n const div = document.createElement(\"div\");\n div.innerHTML = await fileData.text();\n const svg = div.firstElementChild;\n if (((_a = svg == null ? void 0 : svg.tagName) == null ? void 0 : _a.toLowerCase()) !== \"svg\")\n return CACHEABLE_ERROR;\n if (!parser)\n parser = new DOMParser();\n const doc = parser.parseFromString(svg.outerHTML, \"text/html\");\n const svgEl = doc.body.querySelector(\"svg\");\n if (!svgEl)\n return CACHEABLE_ERROR;\n svgEl.part.add(\"svg\");\n return document.adoptNode(svgEl);\n } catch (e) {\n return CACHEABLE_ERROR;\n }\n }\n connectedCallback() {\n super.connectedCallback();\n watchIcon(this);\n }\n firstUpdated() {\n this.initialRender = true;\n this.setIcon();\n }\n disconnectedCallback() {\n super.disconnectedCallback();\n unwatchIcon(this);\n }\n getIconSource() {\n const library = getIconLibrary(this.library);\n if (this.name && library) {\n return {\n url: library.resolver(this.name),\n fromLibrary: true\n };\n }\n return {\n url: this.src,\n fromLibrary: false\n };\n }\n handleLabelChange() {\n const hasLabel = typeof this.label === \"string\" && this.label.length > 0;\n if (hasLabel) {\n this.setAttribute(\"role\", \"img\");\n this.setAttribute(\"aria-label\", this.label);\n this.removeAttribute(\"aria-hidden\");\n } else {\n this.removeAttribute(\"role\");\n this.removeAttribute(\"aria-label\");\n this.setAttribute(\"aria-hidden\", \"true\");\n }\n }\n async setIcon() {\n var _a;\n const { url, fromLibrary } = this.getIconSource();\n const library = fromLibrary ? getIconLibrary(this.library) : void 0;\n if (!url) {\n this.svg = null;\n return;\n }\n let iconResolver = iconCache.get(url);\n if (!iconResolver) {\n iconResolver = this.resolveIcon(url, library);\n iconCache.set(url, iconResolver);\n }\n if (!this.initialRender) {\n return;\n }\n const svg = await iconResolver;\n if (svg === RETRYABLE_ERROR) {\n iconCache.delete(url);\n }\n if (url !== this.getIconSource().url) {\n return;\n }\n if (isTemplateResult(svg)) {\n this.svg = svg;\n return;\n }\n switch (svg) {\n case RETRYABLE_ERROR:\n case CACHEABLE_ERROR:\n this.svg = null;\n this.emit(\"sl-error\");\n break;\n default:\n this.svg = svg.cloneNode(true);\n (_a = library == null ? void 0 : library.mutator) == null ? void 0 : _a.call(library, this.svg);\n this.emit(\"sl-load\");\n }\n }\n render() {\n return this.svg;\n }\n};\nSlIcon.styles = [component_styles_default, icon_styles_default];\n__decorateClass([\n state()\n], SlIcon.prototype, \"svg\", 2);\n__decorateClass([\n property({ reflect: true })\n], SlIcon.prototype, \"name\", 2);\n__decorateClass([\n property()\n], SlIcon.prototype, \"src\", 2);\n__decorateClass([\n property()\n], SlIcon.prototype, \"label\", 2);\n__decorateClass([\n property({ reflect: true })\n], SlIcon.prototype, \"library\", 2);\n__decorateClass([\n watch(\"label\")\n], SlIcon.prototype, \"handleLabelChange\", 1);\n__decorateClass([\n watch([\"name\", \"src\", \"library\"])\n], SlIcon.prototype, \"setIcon\", 1);\n\nexport {\n SlIcon\n};\n"],"version":3}
@@ -0,0 +1,230 @@
1
+ import { a as __spreadProps, b as __spreadValues } from './directive-helpers-d80c2187.js';
2
+
3
+ // src/utilities/animation-registry.ts
4
+ var defaultAnimationRegistry = /* @__PURE__ */ new Map();
5
+ var customAnimationRegistry = /* @__PURE__ */ new WeakMap();
6
+ function ensureAnimation(animation) {
7
+ return animation != null ? animation : { keyframes: [], options: { duration: 0 } };
8
+ }
9
+ function getLogicalAnimation(animation, dir) {
10
+ if (dir.toLowerCase() === "rtl") {
11
+ return {
12
+ keyframes: animation.rtlKeyframes || animation.keyframes,
13
+ options: animation.options
14
+ };
15
+ }
16
+ return animation;
17
+ }
18
+ function setDefaultAnimation(animationName, animation) {
19
+ defaultAnimationRegistry.set(animationName, ensureAnimation(animation));
20
+ }
21
+ function getAnimation(el, animationName, options) {
22
+ const customAnimation = customAnimationRegistry.get(el);
23
+ if (customAnimation == null ? void 0 : customAnimation[animationName]) {
24
+ return getLogicalAnimation(customAnimation[animationName], options.dir);
25
+ }
26
+ const defaultAnimation = defaultAnimationRegistry.get(animationName);
27
+ if (defaultAnimation) {
28
+ return getLogicalAnimation(defaultAnimation, options.dir);
29
+ }
30
+ return {
31
+ keyframes: [],
32
+ options: { duration: 0 }
33
+ };
34
+ }
35
+
36
+ // src/internal/event.ts
37
+ function waitForEvent(el, eventName) {
38
+ return new Promise((resolve) => {
39
+ function done(event) {
40
+ if (event.target === el) {
41
+ el.removeEventListener(eventName, done);
42
+ resolve();
43
+ }
44
+ }
45
+ el.addEventListener(eventName, done);
46
+ });
47
+ }
48
+
49
+ // src/internal/animate.ts
50
+ function animateTo(el, keyframes, options) {
51
+ return new Promise((resolve) => {
52
+ if ((options == null ? void 0 : options.duration) === Infinity) {
53
+ throw new Error("Promise-based animations must be finite.");
54
+ }
55
+ const animation = el.animate(keyframes, __spreadProps(__spreadValues({}, options), {
56
+ duration: prefersReducedMotion() ? 0 : options.duration
57
+ }));
58
+ animation.addEventListener("cancel", resolve, { once: true });
59
+ animation.addEventListener("finish", resolve, { once: true });
60
+ });
61
+ }
62
+ function prefersReducedMotion() {
63
+ const query = window.matchMedia("(prefers-reduced-motion: reduce)");
64
+ return query.matches;
65
+ }
66
+ function stopAnimations(el) {
67
+ return Promise.all(
68
+ el.getAnimations().map((animation) => {
69
+ return new Promise((resolve) => {
70
+ animation.cancel();
71
+ requestAnimationFrame(resolve);
72
+ });
73
+ })
74
+ );
75
+ }
76
+ function shimKeyframesHeightAuto(keyframes, calculatedHeight) {
77
+ return keyframes.map((keyframe) => __spreadProps(__spreadValues({}, keyframe), {
78
+ height: keyframe.height === "auto" ? `${calculatedHeight}px` : keyframe.height
79
+ }));
80
+ }
81
+
82
+ const connectedElements = new Set();
83
+ const documentElementObserver = new MutationObserver(update);
84
+ const translations = new Map();
85
+ let documentDirection = document.documentElement.dir || 'ltr';
86
+ let documentLanguage = document.documentElement.lang || navigator.language;
87
+ let fallback;
88
+ documentElementObserver.observe(document.documentElement, {
89
+ attributes: true,
90
+ attributeFilter: ['dir', 'lang']
91
+ });
92
+ function registerTranslation(...translation) {
93
+ translation.map(t => {
94
+ const code = t.$code.toLowerCase();
95
+ if (translations.has(code)) {
96
+ translations.set(code, Object.assign(Object.assign({}, translations.get(code)), t));
97
+ }
98
+ else {
99
+ translations.set(code, t);
100
+ }
101
+ if (!fallback) {
102
+ fallback = t;
103
+ }
104
+ });
105
+ update();
106
+ }
107
+ function update() {
108
+ documentDirection = document.documentElement.dir || 'ltr';
109
+ documentLanguage = document.documentElement.lang || navigator.language;
110
+ [...connectedElements.keys()].map((el) => {
111
+ if (typeof el.requestUpdate === 'function') {
112
+ el.requestUpdate();
113
+ }
114
+ });
115
+ }
116
+ class LocalizeController$1 {
117
+ constructor(host) {
118
+ this.host = host;
119
+ this.host.addController(this);
120
+ }
121
+ hostConnected() {
122
+ connectedElements.add(this.host);
123
+ }
124
+ hostDisconnected() {
125
+ connectedElements.delete(this.host);
126
+ }
127
+ dir() {
128
+ return `${this.host.dir || documentDirection}`.toLowerCase();
129
+ }
130
+ lang() {
131
+ return `${this.host.lang || documentLanguage}`.toLowerCase();
132
+ }
133
+ getTranslationData(lang) {
134
+ var _a, _b;
135
+ const locale = new Intl.Locale(lang.replace(/_/g, '-'));
136
+ const language = locale === null || locale === void 0 ? void 0 : locale.language.toLowerCase();
137
+ const region = (_b = (_a = locale === null || locale === void 0 ? void 0 : locale.region) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== null && _b !== void 0 ? _b : '';
138
+ const primary = translations.get(`${language}-${region}`);
139
+ const secondary = translations.get(language);
140
+ return { locale, language, region, primary, secondary };
141
+ }
142
+ exists(key, options) {
143
+ var _a;
144
+ const { primary, secondary } = this.getTranslationData((_a = options.lang) !== null && _a !== void 0 ? _a : this.lang());
145
+ options = Object.assign({ includeFallback: false }, options);
146
+ if ((primary && primary[key]) ||
147
+ (secondary && secondary[key]) ||
148
+ (options.includeFallback && fallback && fallback[key])) {
149
+ return true;
150
+ }
151
+ return false;
152
+ }
153
+ term(key, ...args) {
154
+ const { primary, secondary } = this.getTranslationData(this.lang());
155
+ let term;
156
+ if (primary && primary[key]) {
157
+ term = primary[key];
158
+ }
159
+ else if (secondary && secondary[key]) {
160
+ term = secondary[key];
161
+ }
162
+ else if (fallback && fallback[key]) {
163
+ term = fallback[key];
164
+ }
165
+ else {
166
+ console.error(`No translation found for: ${String(key)}`);
167
+ return String(key);
168
+ }
169
+ if (typeof term === 'function') {
170
+ return term(...args);
171
+ }
172
+ return term;
173
+ }
174
+ date(dateToFormat, options) {
175
+ dateToFormat = new Date(dateToFormat);
176
+ return new Intl.DateTimeFormat(this.lang(), options).format(dateToFormat);
177
+ }
178
+ number(numberToFormat, options) {
179
+ numberToFormat = Number(numberToFormat);
180
+ return isNaN(numberToFormat) ? '' : new Intl.NumberFormat(this.lang(), options).format(numberToFormat);
181
+ }
182
+ relativeTime(value, unit, options) {
183
+ return new Intl.RelativeTimeFormat(this.lang(), options).format(value, unit);
184
+ }
185
+ }
186
+
187
+ // src/translations/en.ts
188
+ var translation = {
189
+ $code: "en",
190
+ $name: "English",
191
+ $dir: "ltr",
192
+ carousel: "Carousel",
193
+ clearEntry: "Clear entry",
194
+ close: "Close",
195
+ copied: "Copied",
196
+ copy: "Copy",
197
+ currentValue: "Current value",
198
+ error: "Error",
199
+ goToSlide: (slide, count) => `Go to slide ${slide} of ${count}`,
200
+ hidePassword: "Hide password",
201
+ loading: "Loading",
202
+ nextSlide: "Next slide",
203
+ numOptionsSelected: (num) => {
204
+ if (num === 0)
205
+ return "No options selected";
206
+ if (num === 1)
207
+ return "1 option selected";
208
+ return `${num} options selected`;
209
+ },
210
+ previousSlide: "Previous slide",
211
+ progress: "Progress",
212
+ remove: "Remove",
213
+ resize: "Resize",
214
+ scrollToEnd: "Scroll to end",
215
+ scrollToStart: "Scroll to start",
216
+ selectAColorFromTheScreen: "Select a color from the screen",
217
+ showPassword: "Show password",
218
+ slideNum: (slide) => `Slide ${slide}`,
219
+ toggleColorFormat: "Toggle color format"
220
+ };
221
+ registerTranslation(translation);
222
+ var en_default = translation;
223
+
224
+ var LocalizeController = class extends LocalizeController$1 {
225
+ };
226
+ registerTranslation(en_default);
227
+
228
+ export { LocalizeController as L, stopAnimations as a, animateTo as b, shimKeyframesHeightAuto as c, getAnimation as g, setDefaultAnimation as s, waitForEvent as w };
229
+
230
+ //# sourceMappingURL=chunk.WLV3FVBR-ded9a646.js.map