@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,365 @@
1
+ 'use strict';
2
+
3
+ const directiveHelpers = require('./directive-helpers-b6926fa1.js');
4
+
5
+ // src/utilities/base-path.ts
6
+ var basePath = "";
7
+ function setBasePath(path) {
8
+ basePath = path;
9
+ }
10
+ function getBasePath(subpath = "") {
11
+ if (!basePath) {
12
+ const scripts = [...document.getElementsByTagName("script")];
13
+ const configScript = scripts.find((script) => script.hasAttribute("data-shoelace"));
14
+ if (configScript) {
15
+ setBasePath(configScript.getAttribute("data-shoelace"));
16
+ } else {
17
+ const fallbackScript = scripts.find((s) => {
18
+ return /shoelace(\.min)?\.js($|\?)/.test(s.src) || /shoelace-autoloader(\.min)?\.js($|\?)/.test(s.src);
19
+ });
20
+ let path = "";
21
+ if (fallbackScript) {
22
+ path = fallbackScript.getAttribute("src");
23
+ }
24
+ setBasePath(path.split("/").slice(0, -1).join("/"));
25
+ }
26
+ }
27
+ return basePath.replace(/\/$/, "") + (subpath ? `/${subpath.replace(/^\//, "")}` : ``);
28
+ }
29
+
30
+ // src/components/icon/library.default.ts
31
+ var library = {
32
+ name: "default",
33
+ resolver: (name) => getBasePath(`assets/icons/${name}.svg`)
34
+ };
35
+ var library_default_default = library;
36
+
37
+ // src/components/icon/library.system.ts
38
+ var icons = {
39
+ caret: `
40
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
41
+ <polyline points="6 9 12 15 18 9"></polyline>
42
+ </svg>
43
+ `,
44
+ check: `
45
+ <svg part="checked-icon" class="checkbox__icon" viewBox="0 0 16 16">
46
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
47
+ <g stroke="currentColor">
48
+ <g transform="translate(3.428571, 3.428571)">
49
+ <path d="M0,5.71428571 L3.42857143,9.14285714"></path>
50
+ <path d="M9.14285714,0 L3.42857143,9.14285714"></path>
51
+ </g>
52
+ </g>
53
+ </g>
54
+ </svg>
55
+ `,
56
+ "chevron-down": `
57
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16">
58
+ <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"/>
59
+ </svg>
60
+ `,
61
+ "chevron-left": `
62
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-left" viewBox="0 0 16 16">
63
+ <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"/>
64
+ </svg>
65
+ `,
66
+ "chevron-right": `
67
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
68
+ <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"/>
69
+ </svg>
70
+ `,
71
+ copy: `
72
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-copy" viewBox="0 0 16 16">
73
+ <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"/>
74
+ </svg>
75
+ `,
76
+ eye: `
77
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye" viewBox="0 0 16 16">
78
+ <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"/>
79
+ <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"/>
80
+ </svg>
81
+ `,
82
+ "eye-slash": `
83
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye-slash" viewBox="0 0 16 16">
84
+ <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"/>
85
+ <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"/>
86
+ <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"/>
87
+ </svg>
88
+ `,
89
+ eyedropper: `
90
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eyedropper" viewBox="0 0 16 16">
91
+ <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>
92
+ </svg>
93
+ `,
94
+ "grip-vertical": `
95
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-grip-vertical" viewBox="0 0 16 16">
96
+ <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>
97
+ </svg>
98
+ `,
99
+ indeterminate: `
100
+ <svg part="indeterminate-icon" class="checkbox__icon" viewBox="0 0 16 16">
101
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
102
+ <g stroke="currentColor" stroke-width="2">
103
+ <g transform="translate(2.285714, 6.857143)">
104
+ <path d="M10.2857143,1.14285714 L1.14285714,1.14285714"></path>
105
+ </g>
106
+ </g>
107
+ </g>
108
+ </svg>
109
+ `,
110
+ "person-fill": `
111
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-fill" viewBox="0 0 16 16">
112
+ <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"/>
113
+ </svg>
114
+ `,
115
+ "play-fill": `
116
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-play-fill" viewBox="0 0 16 16">
117
+ <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>
118
+ </svg>
119
+ `,
120
+ "pause-fill": `
121
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pause-fill" viewBox="0 0 16 16">
122
+ <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>
123
+ </svg>
124
+ `,
125
+ radio: `
126
+ <svg part="checked-icon" class="radio__icon" viewBox="0 0 16 16">
127
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
128
+ <g fill="currentColor">
129
+ <circle cx="8" cy="8" r="3.42857143"></circle>
130
+ </g>
131
+ </g>
132
+ </svg>
133
+ `,
134
+ "star-fill": `
135
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">
136
+ <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"/>
137
+ </svg>
138
+ `,
139
+ "x-lg": `
140
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16">
141
+ <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"/>
142
+ </svg>
143
+ `,
144
+ "x-circle-fill": `
145
+ <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">
146
+ <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>
147
+ </svg>
148
+ `
149
+ };
150
+ var systemLibrary = {
151
+ name: "system",
152
+ resolver: (name) => {
153
+ if (name in icons) {
154
+ return `data:image/svg+xml,${encodeURIComponent(icons[name])}`;
155
+ }
156
+ return "";
157
+ }
158
+ };
159
+ var library_system_default = systemLibrary;
160
+
161
+ // src/components/icon/library.ts
162
+ var registry = [library_default_default, library_system_default];
163
+ var watchedIcons = [];
164
+ function watchIcon(icon) {
165
+ watchedIcons.push(icon);
166
+ }
167
+ function unwatchIcon(icon) {
168
+ watchedIcons = watchedIcons.filter((el) => el !== icon);
169
+ }
170
+ function getIconLibrary(name) {
171
+ return registry.find((lib) => lib.name === name);
172
+ }
173
+ function registerIconLibrary(name, options) {
174
+ unregisterIconLibrary(name);
175
+ registry.push({
176
+ name,
177
+ resolver: options.resolver,
178
+ mutator: options.mutator,
179
+ spriteSheet: options.spriteSheet
180
+ });
181
+ watchedIcons.forEach((icon) => {
182
+ if (icon.library === name) {
183
+ icon.setIcon();
184
+ }
185
+ });
186
+ }
187
+ function unregisterIconLibrary(name) {
188
+ registry = registry.filter((lib) => lib.name !== name);
189
+ }
190
+
191
+ // src/components/icon/icon.styles.ts
192
+ var icon_styles_default = directiveHelpers.i`
193
+ :host {
194
+ display: inline-block;
195
+ width: 1em;
196
+ height: 1em;
197
+ box-sizing: content-box !important;
198
+ }
199
+
200
+ svg {
201
+ display: block;
202
+ height: 100%;
203
+ width: 100%;
204
+ }
205
+ `;
206
+
207
+ var CACHEABLE_ERROR = Symbol();
208
+ var RETRYABLE_ERROR = Symbol();
209
+ var parser;
210
+ var iconCache = /* @__PURE__ */ new Map();
211
+ var SlIcon = class extends directiveHelpers.ShoelaceElement {
212
+ constructor() {
213
+ super(...arguments);
214
+ this.initialRender = false;
215
+ this.svg = null;
216
+ this.label = "";
217
+ this.library = "default";
218
+ }
219
+ /** Given a URL, this function returns the resulting SVG element or an appropriate error symbol. */
220
+ async resolveIcon(url, library) {
221
+ var _a;
222
+ let fileData;
223
+ if (library == null ? void 0 : library.spriteSheet) {
224
+ this.svg = directiveHelpers.x`<svg part="svg">
225
+ <use part="use" href="${url}"></use>
226
+ </svg>`;
227
+ await this.updateComplete;
228
+ const svg = this.shadowRoot.querySelector("[part='svg']");
229
+ if (typeof library.mutator === "function") {
230
+ library.mutator(svg);
231
+ }
232
+ return this.svg;
233
+ }
234
+ try {
235
+ fileData = await fetch(url, { mode: "cors" });
236
+ if (!fileData.ok)
237
+ return fileData.status === 410 ? CACHEABLE_ERROR : RETRYABLE_ERROR;
238
+ } catch (e) {
239
+ return RETRYABLE_ERROR;
240
+ }
241
+ try {
242
+ const div = document.createElement("div");
243
+ div.innerHTML = await fileData.text();
244
+ const svg = div.firstElementChild;
245
+ if (((_a = svg == null ? void 0 : svg.tagName) == null ? void 0 : _a.toLowerCase()) !== "svg")
246
+ return CACHEABLE_ERROR;
247
+ if (!parser)
248
+ parser = new DOMParser();
249
+ const doc = parser.parseFromString(svg.outerHTML, "text/html");
250
+ const svgEl = doc.body.querySelector("svg");
251
+ if (!svgEl)
252
+ return CACHEABLE_ERROR;
253
+ svgEl.part.add("svg");
254
+ return document.adoptNode(svgEl);
255
+ } catch (e) {
256
+ return CACHEABLE_ERROR;
257
+ }
258
+ }
259
+ connectedCallback() {
260
+ super.connectedCallback();
261
+ watchIcon(this);
262
+ }
263
+ firstUpdated() {
264
+ this.initialRender = true;
265
+ this.setIcon();
266
+ }
267
+ disconnectedCallback() {
268
+ super.disconnectedCallback();
269
+ unwatchIcon(this);
270
+ }
271
+ getIconSource() {
272
+ const library = getIconLibrary(this.library);
273
+ if (this.name && library) {
274
+ return {
275
+ url: library.resolver(this.name),
276
+ fromLibrary: true
277
+ };
278
+ }
279
+ return {
280
+ url: this.src,
281
+ fromLibrary: false
282
+ };
283
+ }
284
+ handleLabelChange() {
285
+ const hasLabel = typeof this.label === "string" && this.label.length > 0;
286
+ if (hasLabel) {
287
+ this.setAttribute("role", "img");
288
+ this.setAttribute("aria-label", this.label);
289
+ this.removeAttribute("aria-hidden");
290
+ } else {
291
+ this.removeAttribute("role");
292
+ this.removeAttribute("aria-label");
293
+ this.setAttribute("aria-hidden", "true");
294
+ }
295
+ }
296
+ async setIcon() {
297
+ var _a;
298
+ const { url, fromLibrary } = this.getIconSource();
299
+ const library = fromLibrary ? getIconLibrary(this.library) : void 0;
300
+ if (!url) {
301
+ this.svg = null;
302
+ return;
303
+ }
304
+ let iconResolver = iconCache.get(url);
305
+ if (!iconResolver) {
306
+ iconResolver = this.resolveIcon(url, library);
307
+ iconCache.set(url, iconResolver);
308
+ }
309
+ if (!this.initialRender) {
310
+ return;
311
+ }
312
+ const svg = await iconResolver;
313
+ if (svg === RETRYABLE_ERROR) {
314
+ iconCache.delete(url);
315
+ }
316
+ if (url !== this.getIconSource().url) {
317
+ return;
318
+ }
319
+ if (directiveHelpers.e(svg)) {
320
+ this.svg = svg;
321
+ return;
322
+ }
323
+ switch (svg) {
324
+ case RETRYABLE_ERROR:
325
+ case CACHEABLE_ERROR:
326
+ this.svg = null;
327
+ this.emit("sl-error");
328
+ break;
329
+ default:
330
+ this.svg = svg.cloneNode(true);
331
+ (_a = library == null ? void 0 : library.mutator) == null ? void 0 : _a.call(library, this.svg);
332
+ this.emit("sl-load");
333
+ }
334
+ }
335
+ render() {
336
+ return this.svg;
337
+ }
338
+ };
339
+ SlIcon.styles = [directiveHelpers.component_styles_default, icon_styles_default];
340
+ directiveHelpers.__decorateClass([
341
+ directiveHelpers.r()
342
+ ], SlIcon.prototype, "svg", 2);
343
+ directiveHelpers.__decorateClass([
344
+ directiveHelpers.n({ reflect: true })
345
+ ], SlIcon.prototype, "name", 2);
346
+ directiveHelpers.__decorateClass([
347
+ directiveHelpers.n()
348
+ ], SlIcon.prototype, "src", 2);
349
+ directiveHelpers.__decorateClass([
350
+ directiveHelpers.n()
351
+ ], SlIcon.prototype, "label", 2);
352
+ directiveHelpers.__decorateClass([
353
+ directiveHelpers.n({ reflect: true })
354
+ ], SlIcon.prototype, "library", 2);
355
+ directiveHelpers.__decorateClass([
356
+ directiveHelpers.watch("label")
357
+ ], SlIcon.prototype, "handleLabelChange", 1);
358
+ directiveHelpers.__decorateClass([
359
+ directiveHelpers.watch(["name", "src", "library"])
360
+ ], SlIcon.prototype, "setIcon", 1);
361
+
362
+ exports.SlIcon = SlIcon;
363
+ exports.registerIconLibrary = registerIconLibrary;
364
+
365
+ //# sourceMappingURL=chunk.H33C3MRM-31110702.js.map
@@ -0,0 +1 @@
1
+ {"file":"chunk.H33C3MRM-31110702.js","mappings":";;;;AAAA;AACA,IAAI,QAAQ,GAAG,EAAE,CAAC;AAClB,SAAS,W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CAAC,MAAM,GAAG,CAACC,yCAAwB,EAAE,mBAAmB,CAAC,CAAC;AAChEC,gCAAe,CAAC;AAChB,EAAEC,kBAAK,EAAE;AACT,CAAC,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;AAC/BD,gCAAe,CAAC;AAChB,EAAEE,kBAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC7B,CAAC,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;AAChCF,gCAAe,CAAC;AAChB,EAAEE,kBAAQ,EAAE;AACZ,CAAC,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;AAC/BF,gCAAe,CAAC;AAChB,EAAEE,kBAAQ,EAAE;AACZ,CAAC,EAAE,MAAM,CAAC,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;AACjCF,gCAAe,CAAC;AAChB,EAAEE,kBAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC7B,CAAC,EAAE,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;AACnCF,gCAAe,CAAC;AAChB,EAAEG,sBAAK,CAAC,OAAO,CAAC;AAChB,CAAC,EAAE,MAAM,CAAC,SAAS,EAAE,mBAAmB,EAAE,CAAC,CAAC,CAAC;AAC7CH,gCAAe,CAAC;AAChB,EAAEG,sBAAK,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;AACnC,CAAC,EAAE,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC;;;;;","names":["css","ShoelaceElement","html","isTemplateResult","component_styles_default","__decorateClass","state","property","watch"],"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,238 @@
1
+ 'use strict';
2
+
3
+ const directiveHelpers = require('./directive-helpers-b6926fa1.js');
4
+
5
+ // src/utilities/animation-registry.ts
6
+ var defaultAnimationRegistry = /* @__PURE__ */ new Map();
7
+ var customAnimationRegistry = /* @__PURE__ */ new WeakMap();
8
+ function ensureAnimation(animation) {
9
+ return animation != null ? animation : { keyframes: [], options: { duration: 0 } };
10
+ }
11
+ function getLogicalAnimation(animation, dir) {
12
+ if (dir.toLowerCase() === "rtl") {
13
+ return {
14
+ keyframes: animation.rtlKeyframes || animation.keyframes,
15
+ options: animation.options
16
+ };
17
+ }
18
+ return animation;
19
+ }
20
+ function setDefaultAnimation(animationName, animation) {
21
+ defaultAnimationRegistry.set(animationName, ensureAnimation(animation));
22
+ }
23
+ function getAnimation(el, animationName, options) {
24
+ const customAnimation = customAnimationRegistry.get(el);
25
+ if (customAnimation == null ? void 0 : customAnimation[animationName]) {
26
+ return getLogicalAnimation(customAnimation[animationName], options.dir);
27
+ }
28
+ const defaultAnimation = defaultAnimationRegistry.get(animationName);
29
+ if (defaultAnimation) {
30
+ return getLogicalAnimation(defaultAnimation, options.dir);
31
+ }
32
+ return {
33
+ keyframes: [],
34
+ options: { duration: 0 }
35
+ };
36
+ }
37
+
38
+ // src/internal/event.ts
39
+ function waitForEvent(el, eventName) {
40
+ return new Promise((resolve) => {
41
+ function done(event) {
42
+ if (event.target === el) {
43
+ el.removeEventListener(eventName, done);
44
+ resolve();
45
+ }
46
+ }
47
+ el.addEventListener(eventName, done);
48
+ });
49
+ }
50
+
51
+ // src/internal/animate.ts
52
+ function animateTo(el, keyframes, options) {
53
+ return new Promise((resolve) => {
54
+ if ((options == null ? void 0 : options.duration) === Infinity) {
55
+ throw new Error("Promise-based animations must be finite.");
56
+ }
57
+ const animation = el.animate(keyframes, directiveHelpers.__spreadProps(directiveHelpers.__spreadValues({}, options), {
58
+ duration: prefersReducedMotion() ? 0 : options.duration
59
+ }));
60
+ animation.addEventListener("cancel", resolve, { once: true });
61
+ animation.addEventListener("finish", resolve, { once: true });
62
+ });
63
+ }
64
+ function prefersReducedMotion() {
65
+ const query = window.matchMedia("(prefers-reduced-motion: reduce)");
66
+ return query.matches;
67
+ }
68
+ function stopAnimations(el) {
69
+ return Promise.all(
70
+ el.getAnimations().map((animation) => {
71
+ return new Promise((resolve) => {
72
+ animation.cancel();
73
+ requestAnimationFrame(resolve);
74
+ });
75
+ })
76
+ );
77
+ }
78
+ function shimKeyframesHeightAuto(keyframes, calculatedHeight) {
79
+ return keyframes.map((keyframe) => directiveHelpers.__spreadProps(directiveHelpers.__spreadValues({}, keyframe), {
80
+ height: keyframe.height === "auto" ? `${calculatedHeight}px` : keyframe.height
81
+ }));
82
+ }
83
+
84
+ const connectedElements = new Set();
85
+ const documentElementObserver = new MutationObserver(update);
86
+ const translations = new Map();
87
+ let documentDirection = document.documentElement.dir || 'ltr';
88
+ let documentLanguage = document.documentElement.lang || navigator.language;
89
+ let fallback;
90
+ documentElementObserver.observe(document.documentElement, {
91
+ attributes: true,
92
+ attributeFilter: ['dir', 'lang']
93
+ });
94
+ function registerTranslation(...translation) {
95
+ translation.map(t => {
96
+ const code = t.$code.toLowerCase();
97
+ if (translations.has(code)) {
98
+ translations.set(code, Object.assign(Object.assign({}, translations.get(code)), t));
99
+ }
100
+ else {
101
+ translations.set(code, t);
102
+ }
103
+ if (!fallback) {
104
+ fallback = t;
105
+ }
106
+ });
107
+ update();
108
+ }
109
+ function update() {
110
+ documentDirection = document.documentElement.dir || 'ltr';
111
+ documentLanguage = document.documentElement.lang || navigator.language;
112
+ [...connectedElements.keys()].map((el) => {
113
+ if (typeof el.requestUpdate === 'function') {
114
+ el.requestUpdate();
115
+ }
116
+ });
117
+ }
118
+ class LocalizeController$1 {
119
+ constructor(host) {
120
+ this.host = host;
121
+ this.host.addController(this);
122
+ }
123
+ hostConnected() {
124
+ connectedElements.add(this.host);
125
+ }
126
+ hostDisconnected() {
127
+ connectedElements.delete(this.host);
128
+ }
129
+ dir() {
130
+ return `${this.host.dir || documentDirection}`.toLowerCase();
131
+ }
132
+ lang() {
133
+ return `${this.host.lang || documentLanguage}`.toLowerCase();
134
+ }
135
+ getTranslationData(lang) {
136
+ var _a, _b;
137
+ const locale = new Intl.Locale(lang.replace(/_/g, '-'));
138
+ const language = locale === null || locale === void 0 ? void 0 : locale.language.toLowerCase();
139
+ 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 : '';
140
+ const primary = translations.get(`${language}-${region}`);
141
+ const secondary = translations.get(language);
142
+ return { locale, language, region, primary, secondary };
143
+ }
144
+ exists(key, options) {
145
+ var _a;
146
+ const { primary, secondary } = this.getTranslationData((_a = options.lang) !== null && _a !== void 0 ? _a : this.lang());
147
+ options = Object.assign({ includeFallback: false }, options);
148
+ if ((primary && primary[key]) ||
149
+ (secondary && secondary[key]) ||
150
+ (options.includeFallback && fallback && fallback[key])) {
151
+ return true;
152
+ }
153
+ return false;
154
+ }
155
+ term(key, ...args) {
156
+ const { primary, secondary } = this.getTranslationData(this.lang());
157
+ let term;
158
+ if (primary && primary[key]) {
159
+ term = primary[key];
160
+ }
161
+ else if (secondary && secondary[key]) {
162
+ term = secondary[key];
163
+ }
164
+ else if (fallback && fallback[key]) {
165
+ term = fallback[key];
166
+ }
167
+ else {
168
+ console.error(`No translation found for: ${String(key)}`);
169
+ return String(key);
170
+ }
171
+ if (typeof term === 'function') {
172
+ return term(...args);
173
+ }
174
+ return term;
175
+ }
176
+ date(dateToFormat, options) {
177
+ dateToFormat = new Date(dateToFormat);
178
+ return new Intl.DateTimeFormat(this.lang(), options).format(dateToFormat);
179
+ }
180
+ number(numberToFormat, options) {
181
+ numberToFormat = Number(numberToFormat);
182
+ return isNaN(numberToFormat) ? '' : new Intl.NumberFormat(this.lang(), options).format(numberToFormat);
183
+ }
184
+ relativeTime(value, unit, options) {
185
+ return new Intl.RelativeTimeFormat(this.lang(), options).format(value, unit);
186
+ }
187
+ }
188
+
189
+ // src/translations/en.ts
190
+ var translation = {
191
+ $code: "en",
192
+ $name: "English",
193
+ $dir: "ltr",
194
+ carousel: "Carousel",
195
+ clearEntry: "Clear entry",
196
+ close: "Close",
197
+ copied: "Copied",
198
+ copy: "Copy",
199
+ currentValue: "Current value",
200
+ error: "Error",
201
+ goToSlide: (slide, count) => `Go to slide ${slide} of ${count}`,
202
+ hidePassword: "Hide password",
203
+ loading: "Loading",
204
+ nextSlide: "Next slide",
205
+ numOptionsSelected: (num) => {
206
+ if (num === 0)
207
+ return "No options selected";
208
+ if (num === 1)
209
+ return "1 option selected";
210
+ return `${num} options selected`;
211
+ },
212
+ previousSlide: "Previous slide",
213
+ progress: "Progress",
214
+ remove: "Remove",
215
+ resize: "Resize",
216
+ scrollToEnd: "Scroll to end",
217
+ scrollToStart: "Scroll to start",
218
+ selectAColorFromTheScreen: "Select a color from the screen",
219
+ showPassword: "Show password",
220
+ slideNum: (slide) => `Slide ${slide}`,
221
+ toggleColorFormat: "Toggle color format"
222
+ };
223
+ registerTranslation(translation);
224
+ var en_default = translation;
225
+
226
+ var LocalizeController = class extends LocalizeController$1 {
227
+ };
228
+ registerTranslation(en_default);
229
+
230
+ exports.LocalizeController = LocalizeController;
231
+ exports.animateTo = animateTo;
232
+ exports.getAnimation = getAnimation;
233
+ exports.setDefaultAnimation = setDefaultAnimation;
234
+ exports.shimKeyframesHeightAuto = shimKeyframesHeightAuto;
235
+ exports.stopAnimations = stopAnimations;
236
+ exports.waitForEvent = waitForEvent;
237
+
238
+ //# sourceMappingURL=chunk.WLV3FVBR-bfad29d7.js.map