@rededor/cura 1.6.0-alpha.4 → 1.6.0

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 (232) hide show
  1. package/dist/cjs/cura-accordion_18.cjs.entry.js +49 -48
  2. package/dist/cjs/cura-accordion_18.cjs.entry.js.map +1 -1
  3. package/dist/cjs/cura-alert.cjs.entry.js +1 -1
  4. package/dist/cjs/cura-badge-counter.cjs.entry.js +1 -1
  5. package/dist/cjs/cura-badge-dot.cjs.entry.js +1 -1
  6. package/dist/cjs/cura-badge-pill.cjs.entry.js +1 -1
  7. package/dist/cjs/cura-button-outline.cjs.entry.js +1 -1
  8. package/dist/cjs/cura-button-select.cjs.entry.js +1 -1
  9. package/dist/cjs/cura-calendar.cjs.entry.js +1 -1
  10. package/dist/cjs/cura-card.cjs.entry.js +1 -1
  11. package/dist/cjs/cura-checkbox.cjs.entry.js +1 -1
  12. package/dist/cjs/cura-display.cjs.entry.js +2 -2
  13. package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js +1 -1
  14. package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js.map +1 -1
  15. package/dist/cjs/cura-icons-view.cjs.entry.js +1 -1
  16. package/dist/cjs/cura-input-date.cjs.entry.js +2 -2
  17. package/dist/cjs/cura-loader-bar.cjs.entry.js +2 -2
  18. package/dist/cjs/cura-modal.cjs.entry.js +1 -1
  19. package/dist/cjs/cura-progress-bar_2.cjs.entry.js +1 -1
  20. package/dist/cjs/cura-radio.cjs.entry.js +2 -2
  21. package/dist/cjs/cura-stepper.cjs.entry.js +1 -1
  22. package/dist/cjs/cura-switch.cjs.entry.js +2 -2
  23. package/dist/cjs/cura-toast.cjs.entry.js +1 -1
  24. package/dist/cjs/cura-tooltip.cjs.entry.js +1 -1
  25. package/dist/cjs/cura.cjs.js +2 -2
  26. package/dist/cjs/{index-12d54921.js → index-60783089.js} +2 -5
  27. package/dist/cjs/index-60783089.js.map +1 -0
  28. package/dist/cjs/loader.cjs.js +2 -2
  29. package/dist/collection/collection-manifest.json +4 -7
  30. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.js.map +1 -0
  31. package/dist/collection/components/{cura-dropdown-search-new → cura-dropdown-search}/cura-dropdown-search-category/cura-dropdown-search-category.stories.js +1 -1
  32. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.stories.js.map +1 -0
  33. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.js.map +1 -0
  34. package/dist/collection/components/{cura-dropdown-search-new → cura-dropdown-search}/cura-dropdown-search-not-found/cura-dropdown-search-not-found.stories.js +2 -2
  35. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.stories.js.map +1 -0
  36. package/dist/collection/components/{cura-dropdown-search-new/cura-dropdown-search-option-new/cura-dropdown-search-option-new.css → cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.css} +2 -0
  37. package/dist/collection/components/{cura-dropdown-search-new/cura-dropdown-search-option-new/cura-dropdown-search-option-new.js → cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js} +6 -6
  38. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js.map +1 -0
  39. package/dist/collection/components/{cura-dropdown-search-new/cura-dropdown-search-option-new/cura-dropdown-search-option-new.stories.js → cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.js} +5 -5
  40. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.js.map +1 -0
  41. package/dist/collection/components/{cura-dropdown-search-new/cura-dropdown-search-new.js → cura-dropdown-search/cura-dropdown-search.js} +11 -10
  42. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js.map +1 -0
  43. package/dist/collection/components/{cura-dropdown-search-new/cura-dropdown-search-new.stories.js → cura-dropdown-search/cura-dropdown-search.stories.js} +25 -25
  44. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.stories.js.map +1 -0
  45. package/dist/collection/components/forms/cura-input-date/cura-input-date.js +1 -1
  46. package/dist/collection/components/forms/cura-label/cura-label.css +1 -0
  47. package/dist/collection/components/forms/cura-label/cura-label.js +1 -1
  48. package/dist/collection/components/forms/cura-radio/cura-radio.js +1 -1
  49. package/dist/collection/components/forms/cura-select/cura-select.js +3 -3
  50. package/dist/collection/components/forms/cura-select-options/cura-select-option.js +1 -1
  51. package/dist/collection/components/forms/cura-switch/cura-switch.js +1 -1
  52. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +1 -1
  53. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +1 -1
  54. package/dist/collection/components/text/cura-display/cura-display.js +1 -1
  55. package/dist/collection/components/text/cura-heading/cura-heading.css +1 -0
  56. package/dist/collection/components/text/cura-heading/cura-heading.js +1 -1
  57. package/dist/collection/components/text/cura-paragraph/cura-paragraph.css +3 -0
  58. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +1 -1
  59. package/dist/components/cura-display.js +1 -1
  60. package/dist/components/cura-dropdown-search-category.js.map +1 -1
  61. package/dist/components/cura-dropdown-search-not-found.js.map +1 -1
  62. package/dist/components/cura-dropdown-search-option.js +40 -52
  63. package/dist/components/cura-dropdown-search-option.js.map +1 -1
  64. package/dist/components/cura-dropdown-search.js +283 -236
  65. package/dist/components/cura-dropdown-search.js.map +1 -1
  66. package/dist/components/cura-heading2.js +2 -2
  67. package/dist/components/cura-heading2.js.map +1 -1
  68. package/dist/components/cura-input-date.js +1 -1
  69. package/dist/components/cura-input-text2.js +38 -38
  70. package/dist/components/cura-input-text2.js.map +1 -1
  71. package/dist/components/cura-label2.js +2 -2
  72. package/dist/components/cura-label2.js.map +1 -1
  73. package/dist/components/cura-loader-bar2.js +1 -1
  74. package/dist/components/cura-loader-circle2.js +1 -1
  75. package/dist/components/cura-paragraph2.js +2 -2
  76. package/dist/components/cura-paragraph2.js.map +1 -1
  77. package/dist/components/cura-radio.js +1 -1
  78. package/dist/components/cura-select-option2.js +1 -1
  79. package/dist/components/cura-select2.js +3 -3
  80. package/dist/components/cura-switch.js +1 -1
  81. package/dist/components/index.js +0 -6
  82. package/dist/components/index.js.map +1 -1
  83. package/dist/cura/cura.esm.js +1 -1
  84. package/dist/cura/cura.esm.js.map +1 -1
  85. package/dist/cura/{p-5afb630e.entry.js → p-07817634.entry.js} +2 -2
  86. package/dist/cura/{p-24cd591e.entry.js → p-1016108a.entry.js} +2 -2
  87. package/dist/cura/{p-fc9584dd.entry.js → p-174d220e.entry.js} +2 -2
  88. package/dist/cura/{p-d227469a.entry.js → p-186392b7.entry.js} +2 -2
  89. package/dist/cura/{p-d25142cd.entry.js → p-197213c0.entry.js} +2 -2
  90. package/dist/cura/{p-bf69b32f.entry.js → p-25932952.entry.js} +2 -2
  91. package/dist/cura/{p-89671cd4.entry.js → p-3519d0ba.entry.js} +2 -2
  92. package/dist/cura/{p-02c2b948.entry.js → p-38777561.entry.js} +2 -2
  93. package/dist/cura/{p-6243742a.entry.js → p-3c305dbd.entry.js} +2 -2
  94. package/dist/cura/{p-f1098b41.entry.js → p-405a50de.entry.js} +2 -2
  95. package/dist/cura/{p-af3ac476.js → p-4ee8efca.js} +3 -3
  96. package/dist/cura/p-4ee8efca.js.map +1 -0
  97. package/dist/cura/{p-bfaf9964.entry.js → p-53d68d72.entry.js} +2 -2
  98. package/dist/cura/p-5b928e46.entry.js +2 -0
  99. package/dist/cura/p-5b928e46.entry.js.map +1 -0
  100. package/dist/cura/{p-506747fb.entry.js → p-62c1b0f4.entry.js} +2 -2
  101. package/dist/cura/{p-0a391c03.entry.js → p-6f7f157e.entry.js} +2 -2
  102. package/dist/cura/{p-635c0f4d.entry.js → p-777decf9.entry.js} +2 -2
  103. package/dist/cura/{p-8fb3bede.entry.js → p-a1782f0e.entry.js} +2 -2
  104. package/dist/cura/{p-d2da92d9.entry.js → p-ac0c90af.entry.js} +2 -2
  105. package/dist/cura/{p-86d317f3.entry.js → p-b254bbe4.entry.js} +2 -2
  106. package/dist/cura/p-b254bbe4.entry.js.map +1 -0
  107. package/dist/cura/{p-9214ee88.entry.js → p-d77df3f0.entry.js} +2 -2
  108. package/dist/cura/{p-18af52e4.entry.js → p-d7f46266.entry.js} +2 -2
  109. package/dist/cura/{p-02717e7d.entry.js → p-e1916252.entry.js} +2 -2
  110. package/dist/cura/{p-500f1256.entry.js → p-fc1fd622.entry.js} +2 -2
  111. package/dist/esm/cura-accordion_18.entry.js +48 -47
  112. package/dist/esm/cura-accordion_18.entry.js.map +1 -1
  113. package/dist/esm/cura-alert.entry.js +1 -1
  114. package/dist/esm/cura-badge-counter.entry.js +1 -1
  115. package/dist/esm/cura-badge-dot.entry.js +1 -1
  116. package/dist/esm/cura-badge-pill.entry.js +1 -1
  117. package/dist/esm/cura-button-outline.entry.js +1 -1
  118. package/dist/esm/cura-button-select.entry.js +1 -1
  119. package/dist/esm/cura-calendar.entry.js +1 -1
  120. package/dist/esm/cura-card.entry.js +1 -1
  121. package/dist/esm/cura-checkbox.entry.js +1 -1
  122. package/dist/esm/cura-display.entry.js +2 -2
  123. package/dist/esm/cura-dropdown-search-not-found.entry.js +1 -1
  124. package/dist/esm/cura-dropdown-search-not-found.entry.js.map +1 -1
  125. package/dist/esm/cura-icons-view.entry.js +1 -1
  126. package/dist/esm/cura-input-date.entry.js +2 -2
  127. package/dist/esm/cura-loader-bar.entry.js +2 -2
  128. package/dist/esm/cura-modal.entry.js +1 -1
  129. package/dist/esm/cura-progress-bar_2.entry.js +1 -1
  130. package/dist/esm/cura-radio.entry.js +2 -2
  131. package/dist/esm/cura-stepper.entry.js +1 -1
  132. package/dist/esm/cura-switch.entry.js +2 -2
  133. package/dist/esm/cura-toast.entry.js +1 -1
  134. package/dist/esm/cura-tooltip.entry.js +1 -1
  135. package/dist/esm/cura.js +3 -3
  136. package/dist/esm/{index-717b36df.js → index-21683715.js} +2 -5
  137. package/dist/esm/index-21683715.js.map +1 -0
  138. package/dist/esm/loader.js +3 -3
  139. package/dist/types/components/{cura-dropdown-search-new/cura-dropdown-search-option-new/cura-dropdown-search-option-new.d.ts → cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.d.ts} +1 -1
  140. package/dist/types/components/{cura-dropdown-search-new/cura-dropdown-search-option-new/cura-dropdown-search-option-new.stories.d.ts → cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.d.ts} +1 -1
  141. package/dist/types/components/{cura-dropdown-search-new/cura-dropdown-search-new.d.ts → cura-dropdown-search/cura-dropdown-search.d.ts} +1 -1
  142. package/dist/types/components.d.ts +12 -211
  143. package/package.json +2 -2
  144. package/dist/cjs/cura-dropdown-search-option-title.cjs.entry.js +0 -22
  145. package/dist/cjs/cura-dropdown-search-option-title.cjs.entry.js.map +0 -1
  146. package/dist/cjs/cura-dropdown-search-option.cjs.entry.js +0 -65
  147. package/dist/cjs/cura-dropdown-search-option.cjs.entry.js.map +0 -1
  148. package/dist/cjs/cura-dropdown-search.cjs.entry.js +0 -285
  149. package/dist/cjs/cura-dropdown-search.cjs.entry.js.map +0 -1
  150. package/dist/cjs/index-12d54921.js.map +0 -1
  151. package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-category/cura-dropdown-search-category.js.map +0 -1
  152. package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-category/cura-dropdown-search-category.stories.js.map +0 -1
  153. package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-new.js.map +0 -1
  154. package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-new.stories.js.map +0 -1
  155. package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-not-found/cura-dropdown-search-not-found.js.map +0 -1
  156. package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-not-found/cura-dropdown-search-not-found.stories.js.map +0 -1
  157. package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-option-new/cura-dropdown-search-option-new.js.map +0 -1
  158. package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-option-new/cura-dropdown-search-option-new.stories.js.map +0 -1
  159. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.css +0 -76
  160. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js +0 -164
  161. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js.map +0 -1
  162. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.js +0 -65
  163. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.js.map +0 -1
  164. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option-title/cura-dropdown-search-option-title.css +0 -10
  165. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option-title/cura-dropdown-search-option-title.js +0 -19
  166. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option-title/cura-dropdown-search-option-title.js.map +0 -1
  167. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.css +0 -158
  168. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js +0 -534
  169. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js.map +0 -1
  170. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.stories.js +0 -218
  171. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.stories.js.map +0 -1
  172. package/dist/components/cura-dropdown-search-new.d.ts +0 -11
  173. package/dist/components/cura-dropdown-search-new.js +0 -400
  174. package/dist/components/cura-dropdown-search-new.js.map +0 -1
  175. package/dist/components/cura-dropdown-search-option-new.d.ts +0 -11
  176. package/dist/components/cura-dropdown-search-option-new.js +0 -81
  177. package/dist/components/cura-dropdown-search-option-new.js.map +0 -1
  178. package/dist/components/cura-dropdown-search-option-title.d.ts +0 -11
  179. package/dist/components/cura-dropdown-search-option-title.js +0 -42
  180. package/dist/components/cura-dropdown-search-option-title.js.map +0 -1
  181. package/dist/cura/p-46994182.entry.js +0 -2
  182. package/dist/cura/p-46994182.entry.js.map +0 -1
  183. package/dist/cura/p-86d317f3.entry.js.map +0 -1
  184. package/dist/cura/p-af3ac476.js.map +0 -1
  185. package/dist/cura/p-b1d6ee8d.entry.js +0 -2
  186. package/dist/cura/p-b1d6ee8d.entry.js.map +0 -1
  187. package/dist/cura/p-b3582389.entry.js +0 -2
  188. package/dist/cura/p-b3582389.entry.js.map +0 -1
  189. package/dist/cura/p-ee7328a5.entry.js +0 -2
  190. package/dist/cura/p-ee7328a5.entry.js.map +0 -1
  191. package/dist/esm/cura-dropdown-search-option-title.entry.js +0 -18
  192. package/dist/esm/cura-dropdown-search-option-title.entry.js.map +0 -1
  193. package/dist/esm/cura-dropdown-search-option.entry.js +0 -61
  194. package/dist/esm/cura-dropdown-search-option.entry.js.map +0 -1
  195. package/dist/esm/cura-dropdown-search.entry.js +0 -281
  196. package/dist/esm/cura-dropdown-search.entry.js.map +0 -1
  197. package/dist/esm/index-717b36df.js.map +0 -1
  198. package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.d.ts +0 -31
  199. package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.d.ts +0 -55
  200. package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search-option-title/cura-dropdown-search-option-title.d.ts +0 -3
  201. package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search.d.ts +0 -142
  202. package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search.stories.d.ts +0 -157
  203. /package/dist/collection/components/{cura-dropdown-search-new → cura-dropdown-search}/cura-dropdown-search-category/cura-dropdown-search-category.css +0 -0
  204. /package/dist/collection/components/{cura-dropdown-search-new → cura-dropdown-search}/cura-dropdown-search-category/cura-dropdown-search-category.js +0 -0
  205. /package/dist/collection/components/{cura-dropdown-search-new → cura-dropdown-search}/cura-dropdown-search-not-found/cura-dropdown-search-not-found.css +0 -0
  206. /package/dist/collection/components/{cura-dropdown-search-new → cura-dropdown-search}/cura-dropdown-search-not-found/cura-dropdown-search-not-found.js +0 -0
  207. /package/dist/collection/components/{cura-dropdown-search-new/cura-dropdown-search-new.css → cura-dropdown-search/cura-dropdown-search.css} +0 -0
  208. /package/dist/cura/{p-5afb630e.entry.js.map → p-07817634.entry.js.map} +0 -0
  209. /package/dist/cura/{p-24cd591e.entry.js.map → p-1016108a.entry.js.map} +0 -0
  210. /package/dist/cura/{p-fc9584dd.entry.js.map → p-174d220e.entry.js.map} +0 -0
  211. /package/dist/cura/{p-d227469a.entry.js.map → p-186392b7.entry.js.map} +0 -0
  212. /package/dist/cura/{p-d25142cd.entry.js.map → p-197213c0.entry.js.map} +0 -0
  213. /package/dist/cura/{p-bf69b32f.entry.js.map → p-25932952.entry.js.map} +0 -0
  214. /package/dist/cura/{p-89671cd4.entry.js.map → p-3519d0ba.entry.js.map} +0 -0
  215. /package/dist/cura/{p-02c2b948.entry.js.map → p-38777561.entry.js.map} +0 -0
  216. /package/dist/cura/{p-6243742a.entry.js.map → p-3c305dbd.entry.js.map} +0 -0
  217. /package/dist/cura/{p-f1098b41.entry.js.map → p-405a50de.entry.js.map} +0 -0
  218. /package/dist/cura/{p-bfaf9964.entry.js.map → p-53d68d72.entry.js.map} +0 -0
  219. /package/dist/cura/{p-506747fb.entry.js.map → p-62c1b0f4.entry.js.map} +0 -0
  220. /package/dist/cura/{p-0a391c03.entry.js.map → p-6f7f157e.entry.js.map} +0 -0
  221. /package/dist/cura/{p-635c0f4d.entry.js.map → p-777decf9.entry.js.map} +0 -0
  222. /package/dist/cura/{p-8fb3bede.entry.js.map → p-a1782f0e.entry.js.map} +0 -0
  223. /package/dist/cura/{p-d2da92d9.entry.js.map → p-ac0c90af.entry.js.map} +0 -0
  224. /package/dist/cura/{p-9214ee88.entry.js.map → p-d77df3f0.entry.js.map} +0 -0
  225. /package/dist/cura/{p-18af52e4.entry.js.map → p-d7f46266.entry.js.map} +0 -0
  226. /package/dist/cura/{p-02717e7d.entry.js.map → p-e1916252.entry.js.map} +0 -0
  227. /package/dist/cura/{p-500f1256.entry.js.map → p-fc1fd622.entry.js.map} +0 -0
  228. /package/dist/types/components/{cura-dropdown-search-new → cura-dropdown-search}/cura-dropdown-search-category/cura-dropdown-search-category.d.ts +0 -0
  229. /package/dist/types/components/{cura-dropdown-search-new → cura-dropdown-search}/cura-dropdown-search-category/cura-dropdown-search-category.stories.d.ts +0 -0
  230. /package/dist/types/components/{cura-dropdown-search-new → cura-dropdown-search}/cura-dropdown-search-not-found/cura-dropdown-search-not-found.d.ts +0 -0
  231. /package/dist/types/components/{cura-dropdown-search-new → cura-dropdown-search}/cura-dropdown-search-not-found/cura-dropdown-search-not-found.stories.d.ts +0 -0
  232. /package/dist/types/components/{cura-dropdown-search-new/cura-dropdown-search-new.stories.d.ts → cura-dropdown-search/cura-dropdown-search.stories.d.ts} +0 -0
@@ -1,2 +1,2 @@
1
- import{r,c as e,h as a,H as s,g as t}from"./p-af3ac476.js";import{f as o}from"./p-f9b8f665.js";const i='@charset "UTF-8";:host{display:block;width:fit-content;box-sizing:border-box;}:host .container{display:flex;align-items:center;flex-direction:row-reverse;gap:var(--gap)}:host .position.container{flex-direction:row}:host .position .label-wrapper{justify-content:end}:host .position .message{text-align:right}:host .position .label{order:1}:host .info{display:flex;flex-direction:column}:host .label-wrapper{display:flex;justify-content:start;align-items:center;gap:5px}:host .control{width:fit-content;cursor:pointer;position:relative}:host .radio{margin:0;appearance:none;-webkit-appearance:none;-moz-appearance:none;border-radius:50%;border:2px solid var(--primary-base-neutral-medium);background:var(--neutral-purewhite);box-sizing:border-box;transition:border-color 0.3s;position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer;width:var(--size);height:var(--size);flex:0 0 var(--size)}:host .radio::after{content:"";background:var(--color-base-light);border-radius:50%;opacity:0;transition:opacity 0.3s;width:var(--size-after);height:var(--size-after)}:host .radio:focus{border-color:var(--info-base) !important}:host .success .radio{border-color:var(--success-base);background:var(--success-lighter)}:host .success .radio:hover{border-color:var(--success-base) !important}:host .success.checked .radio{border-color:var(--success-base)}:host .success.checked .radio::after{background:var(--success-base)}:host .success.checked .radio:hover{background:var(--success-lighter) !important;border-color:var(--success-base) !important}:host .success.checked .radio:hover::after{background:var(--success-base) !important}:host .error .radio{border-color:var(--error-base);background:var(--error-lighter)}:host .error .radio:hover{border-color:var(--error-base) !important}:host .error.checked .radio{border-color:var(--error-base)}:host .error.checked .radio::after{background:var(--error-base)}:host .error.checked .radio:hover{background:var(--error-lighter) !important;border-color:var(--error-base) !important}:host .error.checked .radio:hover::after{background:var(--error-base) !important}:host .checked .radio::after{opacity:1;background:var(--color-base)}:host .checked .radio{border-color:var(--color-dark)}:host .checked .radio:hover{border-color:var(--color-light) !important}:host .checked .radio:hover::after{background:var(--color-light)}:host .disabled .radio{background:var(--primary-base-neutral-white);border-color:var(--primary-darker-neutral-base);cursor:not-allowed}:host .disabled .radio::after{background:var(--neutral-lighter)}:host .disabled.checked .radio{border-color:var(--primary-base-neutral-base) !important;background:var(--primary-darker-neutral-white) !important}:host .disabled.checked .radio::after{background:var(--primary-base-neutral-base) !important}:host :not(.disabled):not(.checked) .radio:hover{border-color:var(--primary-base-neutral-dark)}';const c=i;const d=class{constructor(a){r(this,a);this.onchange=e(this,"onchange",7);if(a.$hostElement$["s-ei"]){this.internals=a.$hostElement$["s-ei"]}else{this.internals=a.$hostElement$.attachInternals();a.$hostElement$["s-ei"]=this.internals}this.sizes={large:{size:20},medium:{size:14},small:{size:10}};this.isDarkbackground=()=>this.background==="dark";this.handleClick=()=>{if(this.disabled)return;this.checked=!this.checked;this.internals.setFormValue(this.value);this.onchange.emit({value:this.value,checked:this.checked})};this.checked=false;this.status="default";this.disabled=false;this.required=false;this.label="";this.ontabindex=undefined;this.position="left";this.value="";this.name="";this.background="light";this.size="medium";this.color="accent";this.styles={}}sizeHandler(){this.styles=Object.assign(Object.assign({},this.styles),{"--size-after":`${this.sizes[this.size].size}px`,"--size":`${o[this.size].size}px`,"--gap":`${o[this.size].gap}px`})}setColors(){const r=[{name:"--info-base",background:"info-base"},{name:"--color-light",background:`${this.color}-light`},{name:"--color-base",background:`${this.color}-base`},{name:"--color-dark",background:`${this.color}-dark`},{name:"--neutral-purewhite",background:"neutral-purewhite"},{name:"--success-lighter",background:"success-lighter"},{name:"--success-base",background:"success-base"},{name:"--error-lighter",background:"error-lighter"},{name:"--error-base",background:"error-base"},{name:"--primary-base-neutral-medium",background:this.isDarkbackground()?"primary-base":"neutral-medium"},{name:"--primary-base-neutral-white",background:this.isDarkbackground()?"primary-base":"neutral-white"},{name:"--primary-darker-neutral-white",background:this.isDarkbackground()?"primary-darker":"neutral-white"},{name:"--primary-darker-neutral-base",background:this.isDarkbackground()?"primary-darker":"neutral-base"},{name:"--primary-base-neutral-base",background:this.isDarkbackground()?"primary-base":"neutral-base"},{name:"--primary-base-neutral-dark",background:this.isDarkbackground()?"primary-base":"neutral-dark"},{name:"--primary-base-neutral-medium",background:this.isDarkbackground()?"primary-base":"neutral-medium"},{name:"--success-base-dark",background:this.isDarkbackground()?"success-base":"success-dark"},{name:"--error-base-dark",background:this.isDarkbackground()?"error-base":"error-dark"}];r.forEach((r=>{this.styles[r.name]=window.CuraAPI.theme.colors.getColor(r.background)}));this.styles=Object.assign({},this.styles)}formAssociatedCallback(r){r.ariaLabel=this.label}formStateRestoreCallback(r){this.value=r.value;this.checked=r.checked;this.internals.setFormValue(this.value)}formResetCallback(){this.value="";this.checked=false;this.internals.setValidity({});this.internals.setFormValue(this.value)}formDisabledCallback(r){this.disabled=r}connectedCallback(){this.sizeHandler();this.setColors()}getClasses(){const r={};r["container"]=true;r["checked"]=this.checked;r["disabled"]=this.disabled;r["position"]=this.position==="right";r[this.status]=true;return r}assignColor(r){if(this.disabled)return this.isDarkbackground()?"primary-darker":"neutral-medium";const e={success:{label:this.isDarkbackground()?"success-lighter":"success-darker",message:this.isDarkbackground()?"success-base":"success-dark"},error:{label:this.isDarkbackground()?"error-lighter":"neutral-darker",message:this.isDarkbackground()?"error-base":"error-dark"},default:{label:this.isDarkbackground()?"neutral-white":"neutral-black",message:this.isDarkbackground()?"primary-lighter":"neutral-dark"}};return e[this.status][r]}render(){return a(s,{key:"fa38dc0c23638cc267d9d52c2796d6a079439484"},a("div",{key:"cbe3fe10a7bc3fe0bd7a6ef73fbbadfbc7334e2c",class:this.getClasses(),style:this.styles},a("div",{key:"0649b867ec06c0069c655cffbe109f8d258509c2",class:"info"},a("div",{key:"7f8bfc46f21677cf661418f7b9c380fadddf1860",class:"label-wrapper"},a("cura-label",{key:"a259c61bb7adc503dbeea4329c22aa37e9e8996a",class:"label",size:this.size==="large"?"medium":"xsmall",color:this.assignColor("label")},this.label),this.required&&a("cura-paragraph",{key:"0ffdc2c6f69f7ada640439a603c1b91125a3c332",lineHeight:"0%",marginBlock:"0",color:"error-base"},"* ")),a("cura-label",{key:"ae59fe9a1a05a9e69e257986f91f609bd03b66b9",color:this.assignColor("message"),size:"xsmall",class:"message"},a("slot",{key:"524b6e086ff9ea32d8db78a78e354992b0d844d8"}))),a("input",{key:"0d0b4e915da4691f319ae340d54032fdcce90405",type:"radio",class:`radio ${this.size.toLocaleLowerCase()}`,name:this.name,value:this.value,required:this.required,tabIndex:this.ontabindex,disabled:this.disabled,checked:this.checked,onClick:this.handleClick})))}static get formAssociated(){return true}get host(){return t(this)}static get watchers(){return{size:["sizeHandler"],color:["setColors"],background:["setColors","assignColor"]}}};d.style=c;export{d as cura_radio};
2
- //# sourceMappingURL=p-d227469a.entry.js.map
1
+ import{r,c as e,h as a,H as s,g as t}from"./p-4ee8efca.js";import{f as o}from"./p-f9b8f665.js";const i='@charset "UTF-8";:host{display:block;width:fit-content;box-sizing:border-box;}:host .container{display:flex;align-items:center;flex-direction:row-reverse;gap:var(--gap)}:host .position.container{flex-direction:row}:host .position .label-wrapper{justify-content:end}:host .position .message{text-align:right}:host .position .label{order:1}:host .info{display:flex;flex-direction:column}:host .label-wrapper{display:flex;justify-content:start;align-items:center;gap:5px}:host .control{width:fit-content;cursor:pointer;position:relative}:host .radio{margin:0;appearance:none;-webkit-appearance:none;-moz-appearance:none;border-radius:50%;border:2px solid var(--primary-base-neutral-medium);background:var(--neutral-purewhite);box-sizing:border-box;transition:border-color 0.3s;position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer;width:var(--size);height:var(--size);flex:0 0 var(--size)}:host .radio::after{content:"";background:var(--color-base-light);border-radius:50%;opacity:0;transition:opacity 0.3s;width:var(--size-after);height:var(--size-after)}:host .radio:focus{border-color:var(--info-base) !important}:host .success .radio{border-color:var(--success-base);background:var(--success-lighter)}:host .success .radio:hover{border-color:var(--success-base) !important}:host .success.checked .radio{border-color:var(--success-base)}:host .success.checked .radio::after{background:var(--success-base)}:host .success.checked .radio:hover{background:var(--success-lighter) !important;border-color:var(--success-base) !important}:host .success.checked .radio:hover::after{background:var(--success-base) !important}:host .error .radio{border-color:var(--error-base);background:var(--error-lighter)}:host .error .radio:hover{border-color:var(--error-base) !important}:host .error.checked .radio{border-color:var(--error-base)}:host .error.checked .radio::after{background:var(--error-base)}:host .error.checked .radio:hover{background:var(--error-lighter) !important;border-color:var(--error-base) !important}:host .error.checked .radio:hover::after{background:var(--error-base) !important}:host .checked .radio::after{opacity:1;background:var(--color-base)}:host .checked .radio{border-color:var(--color-dark)}:host .checked .radio:hover{border-color:var(--color-light) !important}:host .checked .radio:hover::after{background:var(--color-light)}:host .disabled .radio{background:var(--primary-base-neutral-white);border-color:var(--primary-darker-neutral-base);cursor:not-allowed}:host .disabled .radio::after{background:var(--neutral-lighter)}:host .disabled.checked .radio{border-color:var(--primary-base-neutral-base) !important;background:var(--primary-darker-neutral-white) !important}:host .disabled.checked .radio::after{background:var(--primary-base-neutral-base) !important}:host :not(.disabled):not(.checked) .radio:hover{border-color:var(--primary-base-neutral-dark)}';const c=i;const d=class{constructor(a){r(this,a);this.onchange=e(this,"onchange",7);if(a.$hostElement$["s-ei"]){this.internals=a.$hostElement$["s-ei"]}else{this.internals=a.$hostElement$.attachInternals();a.$hostElement$["s-ei"]=this.internals}this.sizes={large:{size:20},medium:{size:14},small:{size:10}};this.isDarkbackground=()=>this.background==="dark";this.handleClick=()=>{if(this.disabled)return;this.checked=!this.checked;this.internals.setFormValue(this.value);this.onchange.emit({value:this.value,checked:this.checked})};this.checked=false;this.status="default";this.disabled=false;this.required=false;this.label="";this.ontabindex=undefined;this.position="left";this.value="";this.name="";this.background="light";this.size="medium";this.color="accent";this.styles={}}sizeHandler(){this.styles=Object.assign(Object.assign({},this.styles),{"--size-after":`${this.sizes[this.size].size}px`,"--size":`${o[this.size].size}px`,"--gap":`${o[this.size].gap}px`})}setColors(){const r=[{name:"--info-base",background:"info-base"},{name:"--color-light",background:`${this.color}-light`},{name:"--color-base",background:`${this.color}-base`},{name:"--color-dark",background:`${this.color}-dark`},{name:"--neutral-purewhite",background:"neutral-purewhite"},{name:"--success-lighter",background:"success-lighter"},{name:"--success-base",background:"success-base"},{name:"--error-lighter",background:"error-lighter"},{name:"--error-base",background:"error-base"},{name:"--primary-base-neutral-medium",background:this.isDarkbackground()?"primary-base":"neutral-medium"},{name:"--primary-base-neutral-white",background:this.isDarkbackground()?"primary-base":"neutral-white"},{name:"--primary-darker-neutral-white",background:this.isDarkbackground()?"primary-darker":"neutral-white"},{name:"--primary-darker-neutral-base",background:this.isDarkbackground()?"primary-darker":"neutral-base"},{name:"--primary-base-neutral-base",background:this.isDarkbackground()?"primary-base":"neutral-base"},{name:"--primary-base-neutral-dark",background:this.isDarkbackground()?"primary-base":"neutral-dark"},{name:"--primary-base-neutral-medium",background:this.isDarkbackground()?"primary-base":"neutral-medium"},{name:"--success-base-dark",background:this.isDarkbackground()?"success-base":"success-dark"},{name:"--error-base-dark",background:this.isDarkbackground()?"error-base":"error-dark"}];r.forEach((r=>{this.styles[r.name]=window.CuraAPI.theme.colors.getColor(r.background)}));this.styles=Object.assign({},this.styles)}formAssociatedCallback(r){r.ariaLabel=this.label}formStateRestoreCallback(r){this.value=r.value;this.checked=r.checked;this.internals.setFormValue(this.value)}formResetCallback(){this.value="";this.checked=false;this.internals.setValidity({});this.internals.setFormValue(this.value)}formDisabledCallback(r){this.disabled=r}connectedCallback(){this.sizeHandler();this.setColors()}getClasses(){const r={};r["container"]=true;r["checked"]=this.checked;r["disabled"]=this.disabled;r["position"]=this.position==="right";r[this.status]=true;return r}assignColor(r){if(this.disabled)return this.isDarkbackground()?"primary-darker":"neutral-medium";const e={success:{label:this.isDarkbackground()?"success-lighter":"success-darker",message:this.isDarkbackground()?"success-base":"success-dark"},error:{label:this.isDarkbackground()?"error-lighter":"neutral-darker",message:this.isDarkbackground()?"error-base":"error-dark"},default:{label:this.isDarkbackground()?"neutral-white":"neutral-black",message:this.isDarkbackground()?"primary-lighter":"neutral-dark"}};return e[this.status][r]}render(){return a(s,{key:"0383d2901fc62d6a2a4731cb8ae942a6048a95d2"},a("div",{key:"20baf755c464c22d27245040d16aab088c3f5f6b",class:this.getClasses(),style:this.styles},a("div",{key:"187ac71dda217e0b9fbff9fafce7a48474285f06",class:"info"},a("div",{key:"65460b5be6a8f08c81109989cafc63eac165b170",class:"label-wrapper"},a("cura-label",{key:"83b9d50d07caba124bec86fd73581c7c59c6f8a6",class:"label",size:this.size==="large"?"medium":"xsmall",color:this.assignColor("label")},this.label),this.required&&a("cura-paragraph",{key:"c78a7020d7a3ddb8b28cd5e90c93bfb4b830fd95",lineHeight:"0%",marginBlock:"0",color:"error-base"},"* ")),a("cura-label",{key:"e1e12e9db63d9c7eeebb0705b7e8f0f4942fac94",color:this.assignColor("message"),size:"xsmall",class:"message"},a("slot",{key:"c5ac9ee96c4ec2bd1f38a0a305c1c33f892f8e4a"}))),a("input",{key:"dc29309c6b7423263905ab1ae459cecb0cae6969",type:"radio",class:`radio ${this.size.toLocaleLowerCase()}`,name:this.name,value:this.value,required:this.required,tabIndex:this.ontabindex,disabled:this.disabled,checked:this.checked,onClick:this.handleClick})))}static get formAssociated(){return true}get host(){return t(this)}static get watchers(){return{size:["sizeHandler"],color:["setColors"],background:["setColors","assignColor"]}}};d.style=c;export{d as cura_radio};
2
+ //# sourceMappingURL=p-186392b7.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,h as a,H as i}from"./p-af3ac476.js";const s=':host{width:fit-content;display:inline-block;height:calc(var(--cura-spacing-base) * 4px);position:relative}:host .container{display:flex;min-width:calc(var(--cura-spacing-base) * 4px);width:fit-content;height:calc(var(--cura-spacing-base) * 4px);justify-content:center;align-items:center;border-radius:calc(calc(var(--cura-spacing-base) * 4px) / 2);background:var(--background-color);box-sizing:border-box;padding:0 calc(var(--cura-spacing-base) * 1px);position:relative}:host .container.outline,:host .container.transparent{background:transparent !important}:host .container.outline::before{content:"";width:100%;height:100%;position:absolute;left:0px;top:0px;box-sizing:border-box;border:1px solid var(--background-color);border-radius:calc(calc(var(--cura-spacing-base) * 4px) / 2)}';const e=s;const r=class{constructor(a){t(this,a);this.theme=window.CuraAPI.theme;this.labelColor="primary-darker";this.bgColorName="primary-lighter";this.number=undefined;this.color="primary";this.disabled=false;this.type="solid";this.styles={}}handleColorChange(){this.setColors()}setColors(){const t=this.color.toLowerCase();if(this.type==="outline"||this.type==="transparent"){this.bgColorName=this.disabled?`neutral-medium`:`${t}-dark`;this.labelColor=this.bgColorName}else{this.bgColorName=t==="neutral"||this.disabled?`neutral-pale`:`${t}-lighter`;this.labelColor=this.disabled?"neutral-medium":`${t}-dark`}this.styles=Object.assign(Object.assign({},this.styles),{"--background-color":this.theme.colors.getColor(`${this.bgColorName}`)})}connectedCallback(){this.styles["--base-spacing"]=this.theme.spacing.getSpacing();this.setColors()}getClasses(){const t={container:true};t[this.type.toLowerCase()]=true;return t}render(){return a(i,{key:"8b67f2b913a10de53a519cdafcfbcb140b2adda5"},this.number&&this.number<=0?"":a("div",{class:this.getClasses(),style:this.styles},a("cura-label",{size:"xsmall","line-height":"none",color:this.labelColor},this.number>=100?"99+":this.number)))}static get watchers(){return{disabled:["handleColorChange"],color:["handleColorChange"],type:["handleColorChange"]}}};r.style=e;export{r as cura_badge_counter};
2
- //# sourceMappingURL=p-d25142cd.entry.js.map
1
+ import{r as t,h as a,H as i}from"./p-4ee8efca.js";const e=':host{width:fit-content;display:inline-block;height:calc(var(--cura-spacing-base) * 4px);position:relative}:host .container{display:flex;min-width:calc(var(--cura-spacing-base) * 4px);width:fit-content;height:calc(var(--cura-spacing-base) * 4px);justify-content:center;align-items:center;border-radius:calc(calc(var(--cura-spacing-base) * 4px) / 2);background:var(--background-color);box-sizing:border-box;padding:0 calc(var(--cura-spacing-base) * 1px);position:relative}:host .container.outline,:host .container.transparent{background:transparent !important}:host .container.outline::before{content:"";width:100%;height:100%;position:absolute;left:0px;top:0px;box-sizing:border-box;border:1px solid var(--background-color);border-radius:calc(calc(var(--cura-spacing-base) * 4px) / 2)}';const s=e;const r=class{constructor(a){t(this,a);this.theme=window.CuraAPI.theme;this.labelColor="primary-darker";this.bgColorName="primary-lighter";this.number=undefined;this.color="primary";this.disabled=false;this.type="solid";this.styles={}}handleColorChange(){this.setColors()}setColors(){const t=this.color.toLowerCase();if(this.type==="outline"||this.type==="transparent"){this.bgColorName=this.disabled?`neutral-medium`:`${t}-dark`;this.labelColor=this.bgColorName}else{this.bgColorName=t==="neutral"||this.disabled?`neutral-pale`:`${t}-lighter`;this.labelColor=this.disabled?"neutral-medium":`${t}-dark`}this.styles=Object.assign(Object.assign({},this.styles),{"--background-color":this.theme.colors.getColor(`${this.bgColorName}`)})}connectedCallback(){this.styles["--base-spacing"]=this.theme.spacing.getSpacing();this.setColors()}getClasses(){const t={container:true};t[this.type.toLowerCase()]=true;return t}render(){return a(i,{key:"8b67f2b913a10de53a519cdafcfbcb140b2adda5"},this.number&&this.number<=0?"":a("div",{class:this.getClasses(),style:this.styles},a("cura-label",{size:"xsmall","line-height":"none",color:this.labelColor},this.number>=100?"99+":this.number)))}static get watchers(){return{disabled:["handleColorChange"],color:["handleColorChange"],type:["handleColorChange"]}}};r.style=s;export{r as cura_badge_counter};
2
+ //# sourceMappingURL=p-197213c0.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,c as r,h as a,H as e,g as o}from"./p-af3ac476.js";const i=':host{position:absolute;z-index:99998;display:block;width:fit-content;height:fit-content;box-sizing:border-box}@media (max-width: 768px){:host{width:100%}}:host .container{display:flex;box-sizing:border-box;max-width:var(--max-width);height:auto;padding:calc(var(--cura-spacing-base) * 2px);border:1px solid var(--neutral-light);border-radius:calc(var(--cura-spacing-base) * 1px);background-color:var(--neutral-purewhite);box-shadow:0px 4px 8px 0px var(--neutral-black-shadow, rgba(38, 38, 38, 0.16))}@media (max-width: 768px){:host .container{max-width:90%;height:fit-content;padding:calc(var(--cura-spacing-base) * 4px) calc(var(--cura-spacing-base) * 4px) 0 calc(var(--cura-spacing-base) * 4px);margin:0 auto;border:2px solid;border-radius:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px) 0 0;border-color:var(--neutral-light) var(--neutral-light) transparent var(--neutral-light)}}:host .container::after{content:"";position:absolute;z-index:99999;width:calc(var(--cura-spacing-base) * 2.5px);height:calc(var(--cura-spacing-base) * 2.5px);border:1px solid;border-radius:2px;background-color:var(--neutral-purewhite);left:var(--arrow-left);top:var(--arrow-top);border-color:var(--arrow-border-color);transform:var(--arrow-translate) rotate(45deg)}@media (max-width: 768px){:host .container::after{display:none}}:host .container .content{flex:1 1 0;display:flex;flex-direction:column;gap:calc(var(--cura-spacing-base) * 1px)}@media (max-width: 768px){:host .container .content{padding-bottom:calc(var(--cura-spacing-base) * 4px);border-bottom:1px dashed var(--neutral-light)}}:host .container .close-icon{margin-left:calc(var(--cura-spacing-base) * 3px);cursor:pointer}:host .container .close-button{padding:calc(var(--cura-spacing-base) * 2px) 0}';const s=i;const n=768;const c=class{constructor(a){t(this,a);this.tooltipClosed=r(this,"tooltipClosed",7);this.styles={};this.handleClose=()=>{this.closeContainer()};this.elementId="";this.interactive=true;this.delay=250;this.maxWidth="280px";this.position="top";this.label=undefined;this.closeButton=false;this.isMobile=false}onWindowResize(){this.setPosition(this.targetElement)}onWindowScroll(){this.setPosition(this.targetElement)}connectedCallback(){this.setStyle()}render(){return a(e,{key:"8d60e1300b236087fdb740e018c1c0537cae8d14",role:"tooltip",id:this.elementId},a("div",{key:"1ee4abd823d291a62a0890f15e6dcf7de93d27ce",class:"container",style:this.styles},a("div",{key:"5b77522f5bfa31f0c57d1461c4fe74bb28056853",class:"content"},a("cura-heading",{key:"1829def9107ea1a6d4c26a7529f6342b9d1c3a4e",level:4,size:"xsmall",color:"neutral-black",weight:"bold","margin-block":"0"},this.label),a("cura-paragraph",{key:"d7ef9857d141ef5aea60b1d9d1d79f47ebe1f6f8",color:"neutral-dark","spot-color":"secondary-darker",size:"xsmall",marginBlock:"0",lineHeight:"133.33%"},a("slot",{key:"f2dc8c8e8142205d0553af200875131a0cc09111"}))),this.closeButton&&!this.isMobile&&a("cura-icon",{key:"e7666bb54a3366f8c2ab3b0429237f7b5307b36a",class:"close-icon",name:"close",size:16,color:"error-dark",onClick:this.handleClose}),this.isMobile&&a("cura-button-transparent",{key:"cc64d822bf10b1d7788fd2df85a6b97287b7f7ee",class:"close-button",size:"small",type:"button",color:"error","icon-name":"close","icon-position":"right",onClick:this.handleClose},"OK, entendi.")))}componentDidLoad(){var t,r,a,e,o;this.targetElement=document.querySelector(`[aria-labelledby="${this.elementId}"]`);if(!this.interactive){this.host.style.visibility="visible"}else{this.host.style.visibility="hidden";let i=null;let s=null;(t=this.targetElement)===null||t===void 0?void 0:t.addEventListener("mouseenter",(()=>{clearTimeout(s);i=setTimeout((()=>{this.host.style.visibility="visible"}),typeof this.delay==="number"&&this.delay>250?this.delay:250)}));(r=this.targetElement)===null||r===void 0?void 0:r.addEventListener("mouseleave",(()=>{clearTimeout(i);s=setTimeout((()=>{this.handleClose()}),typeof this.delay==="number"&&this.delay>250?this.delay:250)}));(a=this.host)===null||a===void 0?void 0:a.addEventListener("mouseenter",(()=>{if(window.getComputedStyle(this.host).visibility==="visible"){clearTimeout(s)}}));(e=this.host)===null||e===void 0?void 0:e.addEventListener("mouseleave",(()=>{clearTimeout(i);this.handleClose()}));(o=this.targetElement)===null||o===void 0?void 0:o.addEventListener("click",(()=>{if(window.getComputedStyle(this.host).visibility==="hidden"){i=setTimeout((()=>{this.host.style.visibility="visible"}),typeof this.delay==="number"&&this.delay>250?this.delay:250)}else{clearTimeout(i);this.handleClose()}}));document===null||document===void 0?void 0:document.addEventListener("click",(t=>{if(!this.targetElement.contains(t.target)&&!this.host.contains(t.target)){clearTimeout(i);this.handleClose()}}))}setTimeout((()=>{this.setPosition(this.targetElement)}),100)}setStyle(){this.styles=Object.assign(Object.assign({},this.styles),{"--max-width":this.maxWidth,"--base-spacing":window.CuraAPI.theme.spacing.getSpacing(),"--neutral-purewhite":window.CuraAPI.theme.colors.getColor(`neutral-purewhite`),"--neutral-light":window.CuraAPI.theme.colors.getColor(`neutral-light`),"--neutral-black-shadow":window.CuraAPI.theme.colors.getColor(`neutral-black`,.16)})}getClasses(){const[t,r]=this.position.split("-");const a={};a["container"]=true;if(t){a[t]=true}if(r){a[r]=true}return a}setPosition(t){const r=window.innerWidth;const a=window.innerHeight;const e=this.host.shadowRoot.querySelector(".container");this.isMobile=r<=n;this.host.style.position=this.isMobile?"fixed":"absolute";this.host.style.bottom=this.isMobile?"0":"unset";e.style.flexDirection=this.isMobile?"column":"row";if(this.isMobile){this.host.style.left="0";this.host.style.top="unset";return}const o={top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight};const i=this.host.getBoundingClientRect();const s=10;const c=10;const l=o.width*.5+18;const d=o.height*.5+18;const h=this.styles["--neutral-light"];let p=0;let b=0;const u=Object.keys(this.getClasses()).filter((t=>["top","left","bottom","right","start","end"].includes(t)));const f=({arrowTop:t="",arrowLeft:r="",translate:a="",borderColor:e=""})=>{if(r)this.host.style.setProperty("--arrow-left",r);if(t)this.host.style.setProperty("--arrow-top",t);if(a)this.host.style.setProperty("--arrow-translate",a);if(e)this.host.style.setProperty("--arrow-border-color",e)};if(u.includes("top")||u.includes("bottom")){f({arrowLeft:"50%",translate:"translateX(-50%)"});if(u.includes("top")){b=o.top-i.height-c;f({arrowTop:"calc(100% - 6px)",borderColor:`transparent ${h} ${h} transparent`});if(b<s){b=o.top+o.height+c;f({arrowTop:"-6px",borderColor:`${h} transparent transparent ${h}`})}}if(u.includes("bottom")){b=o.top+o.height+c;f({arrowTop:"-6px",borderColor:`${h} transparent transparent ${h}`});if(b+i.height>a-s){b=o.top-i.height-c;f({arrowTop:"calc(100% - 6px)",borderColor:`transparent ${h} ${h} transparent`})}}p=o.left+(o.width-i.width)/2;if(u.includes("start")){p=o.left-i.width+l;f({arrowLeft:"calc(100% - 18px)"});if(p<s){p=o.left+o.width-l;f({arrowLeft:"18px"})}}if(u.includes("end")){p=o.left+o.width-l;f({arrowLeft:"18px"});if(p+i.width>r-s){p=o.left-i.width+l;f({arrowLeft:"calc(100% - 18px)"})}}}if(u.includes("right")||u.includes("left")){f({arrowTop:"50%",translate:"translateY(-50%)"});if(u.includes("right")){p=o.left+o.width+c;f({arrowLeft:"-6px",borderColor:`transparent transparent ${h} ${h}`});if(p+i.width>r-s){p=o.left-i.width-c;f({arrowLeft:"calc(100% - 6px)",borderColor:`${h} ${h} transparent transparent`})}}if(u.includes("left")){p=o.left-i.width-c;f({arrowLeft:"calc(100% - 6px)",borderColor:`${h} ${h} transparent transparent`});if(p<s){p=o.left+o.width+c;f({arrowLeft:"-6px",borderColor:`transparent transparent ${h} ${h}`})}}b=o.top+(o.height-i.height)/2;if(u.includes("start")){b=o.top-i.height+d;f({arrowTop:"calc(100% - 18px)"});if(b<s){b=o.top+o.height-d;f({arrowTop:"18px"})}}if(u.includes("end")){b=o.top+o.height-d;f({arrowTop:"18px"});if(b+i.height>a-s){b=o.top-i.height+d;f({arrowTop:"calc(100% - 18px)"})}}}this.host.style.left=`${p}px`;this.host.style.top=`${b}px`}closeContainer(){this.host.style.visibility="hidden";this.tooltipClosed.emit()}get host(){return o(this)}};c.style=s;export{c as cura_tooltip};
2
- //# sourceMappingURL=p-bf69b32f.entry.js.map
1
+ import{r as t,c as r,h as a,H as e,g as o}from"./p-4ee8efca.js";const i=':host{position:absolute;z-index:99998;display:block;width:fit-content;height:fit-content;box-sizing:border-box}@media (max-width: 768px){:host{width:100%}}:host .container{display:flex;box-sizing:border-box;max-width:var(--max-width);height:auto;padding:calc(var(--cura-spacing-base) * 2px);border:1px solid var(--neutral-light);border-radius:calc(var(--cura-spacing-base) * 1px);background-color:var(--neutral-purewhite);box-shadow:0px 4px 8px 0px var(--neutral-black-shadow, rgba(38, 38, 38, 0.16))}@media (max-width: 768px){:host .container{max-width:90%;height:fit-content;padding:calc(var(--cura-spacing-base) * 4px) calc(var(--cura-spacing-base) * 4px) 0 calc(var(--cura-spacing-base) * 4px);margin:0 auto;border:2px solid;border-radius:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px) 0 0;border-color:var(--neutral-light) var(--neutral-light) transparent var(--neutral-light)}}:host .container::after{content:"";position:absolute;z-index:99999;width:calc(var(--cura-spacing-base) * 2.5px);height:calc(var(--cura-spacing-base) * 2.5px);border:1px solid;border-radius:2px;background-color:var(--neutral-purewhite);left:var(--arrow-left);top:var(--arrow-top);border-color:var(--arrow-border-color);transform:var(--arrow-translate) rotate(45deg)}@media (max-width: 768px){:host .container::after{display:none}}:host .container .content{flex:1 1 0;display:flex;flex-direction:column;gap:calc(var(--cura-spacing-base) * 1px)}@media (max-width: 768px){:host .container .content{padding-bottom:calc(var(--cura-spacing-base) * 4px);border-bottom:1px dashed var(--neutral-light)}}:host .container .close-icon{margin-left:calc(var(--cura-spacing-base) * 3px);cursor:pointer}:host .container .close-button{padding:calc(var(--cura-spacing-base) * 2px) 0}';const s=i;const n=768;const c=class{constructor(a){t(this,a);this.tooltipClosed=r(this,"tooltipClosed",7);this.styles={};this.handleClose=()=>{this.closeContainer()};this.elementId="";this.interactive=true;this.delay=250;this.maxWidth="280px";this.position="top";this.label=undefined;this.closeButton=false;this.isMobile=false}onWindowResize(){this.setPosition(this.targetElement)}onWindowScroll(){this.setPosition(this.targetElement)}connectedCallback(){this.setStyle()}render(){return a(e,{key:"8d60e1300b236087fdb740e018c1c0537cae8d14",role:"tooltip",id:this.elementId},a("div",{key:"1ee4abd823d291a62a0890f15e6dcf7de93d27ce",class:"container",style:this.styles},a("div",{key:"5b77522f5bfa31f0c57d1461c4fe74bb28056853",class:"content"},a("cura-heading",{key:"1829def9107ea1a6d4c26a7529f6342b9d1c3a4e",level:4,size:"xsmall",color:"neutral-black",weight:"bold","margin-block":"0"},this.label),a("cura-paragraph",{key:"d7ef9857d141ef5aea60b1d9d1d79f47ebe1f6f8",color:"neutral-dark","spot-color":"secondary-darker",size:"xsmall",marginBlock:"0",lineHeight:"133.33%"},a("slot",{key:"f2dc8c8e8142205d0553af200875131a0cc09111"}))),this.closeButton&&!this.isMobile&&a("cura-icon",{key:"e7666bb54a3366f8c2ab3b0429237f7b5307b36a",class:"close-icon",name:"close",size:16,color:"error-dark",onClick:this.handleClose}),this.isMobile&&a("cura-button-transparent",{key:"cc64d822bf10b1d7788fd2df85a6b97287b7f7ee",class:"close-button",size:"small",type:"button",color:"error","icon-name":"close","icon-position":"right",onClick:this.handleClose},"OK, entendi.")))}componentDidLoad(){var t,r,a,e,o;this.targetElement=document.querySelector(`[aria-labelledby="${this.elementId}"]`);if(!this.interactive){this.host.style.visibility="visible"}else{this.host.style.visibility="hidden";let i=null;let s=null;(t=this.targetElement)===null||t===void 0?void 0:t.addEventListener("mouseenter",(()=>{clearTimeout(s);i=setTimeout((()=>{this.host.style.visibility="visible"}),typeof this.delay==="number"&&this.delay>250?this.delay:250)}));(r=this.targetElement)===null||r===void 0?void 0:r.addEventListener("mouseleave",(()=>{clearTimeout(i);s=setTimeout((()=>{this.handleClose()}),typeof this.delay==="number"&&this.delay>250?this.delay:250)}));(a=this.host)===null||a===void 0?void 0:a.addEventListener("mouseenter",(()=>{if(window.getComputedStyle(this.host).visibility==="visible"){clearTimeout(s)}}));(e=this.host)===null||e===void 0?void 0:e.addEventListener("mouseleave",(()=>{clearTimeout(i);this.handleClose()}));(o=this.targetElement)===null||o===void 0?void 0:o.addEventListener("click",(()=>{if(window.getComputedStyle(this.host).visibility==="hidden"){i=setTimeout((()=>{this.host.style.visibility="visible"}),typeof this.delay==="number"&&this.delay>250?this.delay:250)}else{clearTimeout(i);this.handleClose()}}));document===null||document===void 0?void 0:document.addEventListener("click",(t=>{if(!this.targetElement.contains(t.target)&&!this.host.contains(t.target)){clearTimeout(i);this.handleClose()}}))}setTimeout((()=>{this.setPosition(this.targetElement)}),100)}setStyle(){this.styles=Object.assign(Object.assign({},this.styles),{"--max-width":this.maxWidth,"--base-spacing":window.CuraAPI.theme.spacing.getSpacing(),"--neutral-purewhite":window.CuraAPI.theme.colors.getColor(`neutral-purewhite`),"--neutral-light":window.CuraAPI.theme.colors.getColor(`neutral-light`),"--neutral-black-shadow":window.CuraAPI.theme.colors.getColor(`neutral-black`,.16)})}getClasses(){const[t,r]=this.position.split("-");const a={};a["container"]=true;if(t){a[t]=true}if(r){a[r]=true}return a}setPosition(t){const r=window.innerWidth;const a=window.innerHeight;const e=this.host.shadowRoot.querySelector(".container");this.isMobile=r<=n;this.host.style.position=this.isMobile?"fixed":"absolute";this.host.style.bottom=this.isMobile?"0":"unset";e.style.flexDirection=this.isMobile?"column":"row";if(this.isMobile){this.host.style.left="0";this.host.style.top="unset";return}const o={top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight};const i=this.host.getBoundingClientRect();const s=10;const c=10;const l=o.width*.5+18;const d=o.height*.5+18;const h=this.styles["--neutral-light"];let p=0;let b=0;const u=Object.keys(this.getClasses()).filter((t=>["top","left","bottom","right","start","end"].includes(t)));const f=({arrowTop:t="",arrowLeft:r="",translate:a="",borderColor:e=""})=>{if(r)this.host.style.setProperty("--arrow-left",r);if(t)this.host.style.setProperty("--arrow-top",t);if(a)this.host.style.setProperty("--arrow-translate",a);if(e)this.host.style.setProperty("--arrow-border-color",e)};if(u.includes("top")||u.includes("bottom")){f({arrowLeft:"50%",translate:"translateX(-50%)"});if(u.includes("top")){b=o.top-i.height-c;f({arrowTop:"calc(100% - 6px)",borderColor:`transparent ${h} ${h} transparent`});if(b<s){b=o.top+o.height+c;f({arrowTop:"-6px",borderColor:`${h} transparent transparent ${h}`})}}if(u.includes("bottom")){b=o.top+o.height+c;f({arrowTop:"-6px",borderColor:`${h} transparent transparent ${h}`});if(b+i.height>a-s){b=o.top-i.height-c;f({arrowTop:"calc(100% - 6px)",borderColor:`transparent ${h} ${h} transparent`})}}p=o.left+(o.width-i.width)/2;if(u.includes("start")){p=o.left-i.width+l;f({arrowLeft:"calc(100% - 18px)"});if(p<s){p=o.left+o.width-l;f({arrowLeft:"18px"})}}if(u.includes("end")){p=o.left+o.width-l;f({arrowLeft:"18px"});if(p+i.width>r-s){p=o.left-i.width+l;f({arrowLeft:"calc(100% - 18px)"})}}}if(u.includes("right")||u.includes("left")){f({arrowTop:"50%",translate:"translateY(-50%)"});if(u.includes("right")){p=o.left+o.width+c;f({arrowLeft:"-6px",borderColor:`transparent transparent ${h} ${h}`});if(p+i.width>r-s){p=o.left-i.width-c;f({arrowLeft:"calc(100% - 6px)",borderColor:`${h} ${h} transparent transparent`})}}if(u.includes("left")){p=o.left-i.width-c;f({arrowLeft:"calc(100% - 6px)",borderColor:`${h} ${h} transparent transparent`});if(p<s){p=o.left+o.width+c;f({arrowLeft:"-6px",borderColor:`transparent transparent ${h} ${h}`})}}b=o.top+(o.height-i.height)/2;if(u.includes("start")){b=o.top-i.height+d;f({arrowTop:"calc(100% - 18px)"});if(b<s){b=o.top+o.height-d;f({arrowTop:"18px"})}}if(u.includes("end")){b=o.top+o.height-d;f({arrowTop:"18px"});if(b+i.height>a-s){b=o.top-i.height+d;f({arrowTop:"calc(100% - 18px)"})}}}this.host.style.left=`${p}px`;this.host.style.top=`${b}px`}closeContainer(){this.host.style.visibility="hidden";this.tooltipClosed.emit()}get host(){return o(this)}};c.style=s;export{c as cura_tooltip};
2
+ //# sourceMappingURL=p-25932952.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as e,c as s,h as t,H as a,g as c}from"./p-af3ac476.js";const i=":host{display:block;box-sizing:border-box}:host .conteiner{display:flex;box-sizing:border-box;padding:calc(var(--cura-spacing-base) * 3px);gap:calc(var(--cura-spacing-base) * 3px);flex-shrink:0;border:1px solid var(--color-base);border-radius:4px;background-color:var(--color-lighter)}:host .conteiner.floating{box-shadow:0px 4px 8px 0px rgba(38, 38, 38, 0.16)}:host .content{flex:1;flex-direction:column;display:flex;gap:calc(var(--cura-spacing-base) * 1px)}:host .icon-right{cursor:pointer}";const r=i;const o=class{constructor(t){e(this,t);this.close=s(this,"close",7);this.handleClose=()=>{this.close.emit();this.host.remove()};this.type="info";this.floating=false;this.label=undefined;this.closeable=true;this.icon=undefined;this.styles={}}setColors(){const e=[{name:"--color-lighter",theme:`${this.type}-lighter`},{name:"--neutral-black",theme:"neutral-black"},{name:"--color-light",theme:`${this.type}-light`},{name:"--color-base",theme:`${this.type}-base`}];e.forEach((e=>{this.styles[e.name]=window.CuraAPI.theme.colors.getColor(e.theme)}));this.styles=Object.assign({},this.styles)}connectedCallback(){this.styles["--base-spacing"]=window.CuraAPI.theme.spacing.getSpacing();this.setColors()}getClasses(){const e={};e["conteiner"]=true;e["floating"]=this.floating;return e}getNameIcon(){const e={info:"infoCircle",success:"checkCircle",warning:"alertCircle",error:"alertTriangle"};return this.icon?this.icon:e[this.type]}render(){return t(a,{key:"a0b22404673b1568b9cb937150dda71ce4c99d50"},t("div",{key:"c30bf1b97d1e1ffaf334ef3bca6cdd1f081c679c",class:this.getClasses(),style:this.styles},t("cura-icon",{key:"1bd88c8a19e073d7b9d967d8df38bb74063cd110",name:this.getNameIcon(),class:"icon-left",size:16,color:`${this.type}-dark`}),t("div",{key:"0df09a27c27c7e1743f7cfb9e71c96b102ff4484",class:"content"},this.label?t("cura-heading",{class:"title",size:"xsmall",color:"neutral-black",weight:"bold","margin-block":"1px 0"},this.label):"",t("cura-paragraph",{key:"00a039ac0b80bac62eb261c5cf8401b605e867a4",class:"text",color:`${this.type}-darker`,size:"xsmall",marginBlock:"0",lineHeight:"133.33%"},t("slot",{key:"ba6989082e1f15337d5bb390b799b3dc3fda12eb"})),t("slot",{key:"def5ab8aeca163432a52c9eb810f69c95d012313",name:"actions"})),this.closeable?t("cura-icon",{name:"close",size:16,color:"error-dark",class:"icon-right",onClick:this.handleClose}):""))}get host(){return c(this)}static get watchers(){return{type:["setColors"]}}};o.style=r;export{o as cura_alert};
2
- //# sourceMappingURL=p-89671cd4.entry.js.map
1
+ import{r as e,c as s,h as t,H as c,g as a}from"./p-4ee8efca.js";const i=":host{display:block;box-sizing:border-box}:host .conteiner{display:flex;box-sizing:border-box;padding:calc(var(--cura-spacing-base) * 3px);gap:calc(var(--cura-spacing-base) * 3px);flex-shrink:0;border:1px solid var(--color-base);border-radius:4px;background-color:var(--color-lighter)}:host .conteiner.floating{box-shadow:0px 4px 8px 0px rgba(38, 38, 38, 0.16)}:host .content{flex:1;flex-direction:column;display:flex;gap:calc(var(--cura-spacing-base) * 1px)}:host .icon-right{cursor:pointer}";const r=i;const o=class{constructor(t){e(this,t);this.close=s(this,"close",7);this.handleClose=()=>{this.close.emit();this.host.remove()};this.type="info";this.floating=false;this.label=undefined;this.closeable=true;this.icon=undefined;this.styles={}}setColors(){const e=[{name:"--color-lighter",theme:`${this.type}-lighter`},{name:"--neutral-black",theme:"neutral-black"},{name:"--color-light",theme:`${this.type}-light`},{name:"--color-base",theme:`${this.type}-base`}];e.forEach((e=>{this.styles[e.name]=window.CuraAPI.theme.colors.getColor(e.theme)}));this.styles=Object.assign({},this.styles)}connectedCallback(){this.styles["--base-spacing"]=window.CuraAPI.theme.spacing.getSpacing();this.setColors()}getClasses(){const e={};e["conteiner"]=true;e["floating"]=this.floating;return e}getNameIcon(){const e={info:"infoCircle",success:"checkCircle",warning:"alertCircle",error:"alertTriangle"};return this.icon?this.icon:e[this.type]}render(){return t(c,{key:"a0b22404673b1568b9cb937150dda71ce4c99d50"},t("div",{key:"c30bf1b97d1e1ffaf334ef3bca6cdd1f081c679c",class:this.getClasses(),style:this.styles},t("cura-icon",{key:"1bd88c8a19e073d7b9d967d8df38bb74063cd110",name:this.getNameIcon(),class:"icon-left",size:16,color:`${this.type}-dark`}),t("div",{key:"0df09a27c27c7e1743f7cfb9e71c96b102ff4484",class:"content"},this.label?t("cura-heading",{class:"title",size:"xsmall",color:"neutral-black",weight:"bold","margin-block":"1px 0"},this.label):"",t("cura-paragraph",{key:"00a039ac0b80bac62eb261c5cf8401b605e867a4",class:"text",color:`${this.type}-darker`,size:"xsmall",marginBlock:"0",lineHeight:"133.33%"},t("slot",{key:"ba6989082e1f15337d5bb390b799b3dc3fda12eb"})),t("slot",{key:"def5ab8aeca163432a52c9eb810f69c95d012313",name:"actions"})),this.closeable?t("cura-icon",{name:"close",size:16,color:"error-dark",class:"icon-right",onClick:this.handleClose}):""))}get host(){return a(this)}static get watchers(){return{type:["setColors"]}}};o.style=r;export{o as cura_alert};
2
+ //# sourceMappingURL=p-3519d0ba.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,c as e,h as i,H as a,g as o}from"./p-af3ac476.js";const s=":host{display:block;box-sizing:border-box}:host .container{position:fixed;z-index:99999;display:flex;box-sizing:border-box;min-width:328px;height:fit-content;padding:16px;border:1px solid var(--color-base);border-radius:12px;background-color:var(--neutral-purewhite);overflow:hidden;box-shadow:0px 8px 16px 0px var(--neutral-black-shadow-4, rgba(38, 38, 38, 0.12))}:host .container.loader{padding:16px 16px 20px}:host .container.top{top:24px}:host .container.top.center{top:-100%;left:50%;transform:translateX(-50%);opacity:0;transition:opacity 0.5s ease-in-out, top 0.5s ease-in-out}:host .container.top.center.active{top:24px;opacity:1}:host .container.bottom{bottom:24px}:host .container.bottom.center{bottom:-100%;left:50%;transform:translateX(-50%);opacity:0;transition:opacity 0.5s ease-in-out, bottom 0.5s ease-in-out}:host .container.bottom.center.active{bottom:24px;opacity:1}:host .container.left{left:-100%;opacity:0;transition:opacity 0.5s ease-in-out, left 0.5s ease-in-out}@media (max-width: 768px){:host .container.left{right:unset;left:50%;transform:translateX(-50%)}}:host .container.left.active{left:24px;opacity:1}:host .container.right{right:-100%;opacity:0;transition:opacity 0.5s ease-in-out, right 0.5s ease-in-out}@media (max-width: 768px){:host .container.right{right:unset;left:50%;transform:translateX(-50%)}}:host .container.right.active{right:24px;opacity:1}:host .container .content{flex:1 1 0;display:flex;flex-direction:column;gap:4px}:host .container .default-icon{margin-right:12px}:host .container .close-icon{margin-left:12px;cursor:pointer}";const n=s;const r=class{constructor(i){t(this,i);this.toastClosed=e(this,"toastClosed",7);this.handleClose=()=>{this.closeContainer()};this.type="info";this.position="top-right";this.icon=undefined;this.label=undefined;this.closeButton=true;this.loader=true;this.autoCloseDelay=1e4;this.styles={};this.progress=0}async close(){this.closeContainer()}handleChangeType(){this.setStyle()}connectedCallback(){this.setStyle()}render(){return i(a,{key:"d5869739f883147328ee08bcf6564b6cc9097851"},i("div",{key:"367bdb7c433982902d018ec64e1372b85bbc52d2",class:this.getClasses(),style:this.styles},i("cura-icon",{key:"35dbde1e3dfbef3ec3faf3313aa607e2f74409be",class:"default-icon",name:this.getNameIcon(),size:16,color:`${this.type}-dark`}),i("div",{key:"ca266eb0c1816f92af3468be34068c29fc4fc61f",class:"content"},i("cura-heading",{key:"86d3dc19bd9c4fa2ed8ecd21754385fba7635212",level:4,size:"xsmall",color:`${this.type}-dark`,weight:"bold","margin-block":"0"},this.label),i("cura-paragraph",{key:"dae10d64662b2681fa00e64ede122f29de49d505",color:`${this.type}-darker`,size:"xsmall",marginBlock:"0",lineHeight:"133.33%"},i("slot",{key:"1b969326c2e051ea34d68ba5677b3d8e0159e723"})),i("slot",{key:"2028c0a32df403290b1efcd158410563eda34bbf",name:"actions"})),this.closeButton&&i("cura-icon",{key:"91afab9024300f807e1dae585cfa79543e65d579",class:"close-icon",name:"close",size:16,color:"error-dark",onClick:this.handleClose}),this.loader&&!!this.autoCloseDelay&&i("cura-loader-bar",{key:"89abd5c338f443d8946faaed961de31c8d1eac64",color:`${this.type}-base`,progress:this.progress})))}componentDidLoad(){this.openContainer();this.startAnimation()}setStyle(){this.styles=Object.assign(Object.assign({},this.styles),{"--neutral-purewhite":window.CuraAPI.theme.colors.getColor(`neutral-purewhite`),"--neutral-base":window.CuraAPI.theme.colors.getColor(`neutral-base`,.2),"--primary-base":window.CuraAPI.theme.colors.getColor(`primary-base`),"--color-base":window.CuraAPI.theme.colors.getColor(`${this.type}-base`)})}getClasses(){const[t,e]=this.position.split("-");const i={};i["container"]=true;i[t]=true;i[e]=true;if(this.loader){i["loader"]=true}return i}getNameIcon(){const t={info:"infoCircle",success:"checkCircle",warning:"alertCircle",error:"alertTriangle"};return this.icon?this.icon:t[this.type]}openContainer(){this.container=this.host.shadowRoot.querySelector(".container");this.container.classList.add("active")}closeContainer(){this.container.classList.remove("active");setTimeout((()=>{this.toastClosed.emit();this.host.remove()}),500)}startAnimation(){if(!!this.autoCloseDelay){if(this.loader){this.progress=0;let t=setInterval((()=>{if(this.progress>=100){clearInterval(t);this.closeContainer()}else{this.progress++}}),this.autoCloseDelay/100)}else{let t=setInterval((()=>{clearInterval(t);this.closeContainer()}),this.autoCloseDelay)}}}get host(){return o(this)}static get watchers(){return{type:["handleChangeType"],position:["handleChangeType"]}}};r.style=n;export{r as cura_toast};
2
- //# sourceMappingURL=p-02c2b948.entry.js.map
1
+ import{r as t,c as e,h as i,H as a,g as o}from"./p-4ee8efca.js";const s=":host{display:block;box-sizing:border-box}:host .container{position:fixed;z-index:99999;display:flex;box-sizing:border-box;min-width:328px;height:fit-content;padding:16px;border:1px solid var(--color-base);border-radius:12px;background-color:var(--neutral-purewhite);overflow:hidden;box-shadow:0px 8px 16px 0px var(--neutral-black-shadow-4, rgba(38, 38, 38, 0.12))}:host .container.loader{padding:16px 16px 20px}:host .container.top{top:24px}:host .container.top.center{top:-100%;left:50%;transform:translateX(-50%);opacity:0;transition:opacity 0.5s ease-in-out, top 0.5s ease-in-out}:host .container.top.center.active{top:24px;opacity:1}:host .container.bottom{bottom:24px}:host .container.bottom.center{bottom:-100%;left:50%;transform:translateX(-50%);opacity:0;transition:opacity 0.5s ease-in-out, bottom 0.5s ease-in-out}:host .container.bottom.center.active{bottom:24px;opacity:1}:host .container.left{left:-100%;opacity:0;transition:opacity 0.5s ease-in-out, left 0.5s ease-in-out}@media (max-width: 768px){:host .container.left{right:unset;left:50%;transform:translateX(-50%)}}:host .container.left.active{left:24px;opacity:1}:host .container.right{right:-100%;opacity:0;transition:opacity 0.5s ease-in-out, right 0.5s ease-in-out}@media (max-width: 768px){:host .container.right{right:unset;left:50%;transform:translateX(-50%)}}:host .container.right.active{right:24px;opacity:1}:host .container .content{flex:1 1 0;display:flex;flex-direction:column;gap:4px}:host .container .default-icon{margin-right:12px}:host .container .close-icon{margin-left:12px;cursor:pointer}";const n=s;const r=class{constructor(i){t(this,i);this.toastClosed=e(this,"toastClosed",7);this.handleClose=()=>{this.closeContainer()};this.type="info";this.position="top-right";this.icon=undefined;this.label=undefined;this.closeButton=true;this.loader=true;this.autoCloseDelay=1e4;this.styles={};this.progress=0}async close(){this.closeContainer()}handleChangeType(){this.setStyle()}connectedCallback(){this.setStyle()}render(){return i(a,{key:"d5869739f883147328ee08bcf6564b6cc9097851"},i("div",{key:"367bdb7c433982902d018ec64e1372b85bbc52d2",class:this.getClasses(),style:this.styles},i("cura-icon",{key:"35dbde1e3dfbef3ec3faf3313aa607e2f74409be",class:"default-icon",name:this.getNameIcon(),size:16,color:`${this.type}-dark`}),i("div",{key:"ca266eb0c1816f92af3468be34068c29fc4fc61f",class:"content"},i("cura-heading",{key:"86d3dc19bd9c4fa2ed8ecd21754385fba7635212",level:4,size:"xsmall",color:`${this.type}-dark`,weight:"bold","margin-block":"0"},this.label),i("cura-paragraph",{key:"dae10d64662b2681fa00e64ede122f29de49d505",color:`${this.type}-darker`,size:"xsmall",marginBlock:"0",lineHeight:"133.33%"},i("slot",{key:"1b969326c2e051ea34d68ba5677b3d8e0159e723"})),i("slot",{key:"2028c0a32df403290b1efcd158410563eda34bbf",name:"actions"})),this.closeButton&&i("cura-icon",{key:"91afab9024300f807e1dae585cfa79543e65d579",class:"close-icon",name:"close",size:16,color:"error-dark",onClick:this.handleClose}),this.loader&&!!this.autoCloseDelay&&i("cura-loader-bar",{key:"89abd5c338f443d8946faaed961de31c8d1eac64",color:`${this.type}-base`,progress:this.progress})))}componentDidLoad(){this.openContainer();this.startAnimation()}setStyle(){this.styles=Object.assign(Object.assign({},this.styles),{"--neutral-purewhite":window.CuraAPI.theme.colors.getColor(`neutral-purewhite`),"--neutral-base":window.CuraAPI.theme.colors.getColor(`neutral-base`,.2),"--primary-base":window.CuraAPI.theme.colors.getColor(`primary-base`),"--color-base":window.CuraAPI.theme.colors.getColor(`${this.type}-base`)})}getClasses(){const[t,e]=this.position.split("-");const i={};i["container"]=true;i[t]=true;i[e]=true;if(this.loader){i["loader"]=true}return i}getNameIcon(){const t={info:"infoCircle",success:"checkCircle",warning:"alertCircle",error:"alertTriangle"};return this.icon?this.icon:t[this.type]}openContainer(){this.container=this.host.shadowRoot.querySelector(".container");this.container.classList.add("active")}closeContainer(){this.container.classList.remove("active");setTimeout((()=>{this.toastClosed.emit();this.host.remove()}),500)}startAnimation(){if(!!this.autoCloseDelay){if(this.loader){this.progress=0;let t=setInterval((()=>{if(this.progress>=100){clearInterval(t);this.closeContainer()}else{this.progress++}}),this.autoCloseDelay/100)}else{let t=setInterval((()=>{clearInterval(t);this.closeContainer()}),this.autoCloseDelay)}}}get host(){return o(this)}static get watchers(){return{type:["handleChangeType"],position:["handleChangeType"]}}};r.style=n;export{r as cura_toast};
2
+ //# sourceMappingURL=p-38777561.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,h as e,H as s,g as r}from"./p-af3ac476.js";const i=":host{display:block;box-sizing:border-box;width:100%}cura-heading{--margin-block:0 !important}.container{display:flex}.compact{display:flex;padding:0px;justify-content:space-between;align-items:center}.compact .heading{text-align:right}.stepper-list{gap:4px;display:flex;flex-shrink:0;align-items:center;padding:0;flex:1;width:100%;justify-content:space-between}.step{display:flex;align-items:center;flex-direction:row;flex:1;gap:4px}.step .wrapper{flex:1;position:relative}.step .divider{background-color:var(--neutral-light);height:2px;flex:1;transition:all 1s}.step .animation{position:absolute;top:0;left:0;right:0;width:var(--progress-width)}.step .done{background-color:var(--success-light)}.step .stop{background-color:var(--error-light)}.step .active{background-color:var(--info-light)}.last{flex:0}";const o=i;const a=class{constructor(e){t(this,e);this.activeStepIndex=undefined;this.errorInCurrentStep=false;this.displayHeading=false;this.variant="default";this.steps=[];this.styles={};this.stepList=[]}connectedCallback(){this.initializeSteps();const{fonts:t,colors:e,spacing:s}=window.CuraAPI.theme;const r=t.getWeights();this.styles=this.generateStyles(e,t,s,r)}generateStyles(t,e,s,r){return{"--base-spacing":s.getSpacing(),"--neutral-purewhite":t.getColor("neutral-purewhite"),"--neutral-lighter":t.getColor("neutral-lighter"),"--neutral-base":t.getColor("neutral-base"),"--neutral-light":t.getColor("neutral-light"),"--success-light":t.getColor("success-light"),"--info-light":t.getColor("info-light"),"--error-light":t.getColor("error-light"),"--font-size":e.getSize(),"--font-color":e.getColor(),"--font-family":e.getFamily(),"--font-weight-regular":r.regular}}initializeSteps(){if(typeof this.steps==="string"){this.stepList=JSON.parse(this.steps||"[]")}else{this.stepList=this.steps}}getStepStatus(t){if(this.activeStepIndex===t&&this.errorInCurrentStep)return"stop";if(this.activeStepIndex===t&&this.stepList.length!==t)return"active";if(this.activeStepIndex>=t)return"done";return"default"}getProgressStyles(){const t={default:{progressColor:"var(--info-light)",activeStepTextColor:"info-darker",nextStepTextColor:"info-dark"},firstStep:{progressColor:"var(--info-light)",activeStepTextColor:"neutral-dark",nextStepTextColor:"neutral-medium"},completed:{progressColor:"var(--success-light)",activeStepTextColor:"success-darker",nextStepTextColor:"success-dark"},error:{progressColor:"var(--error-light)",activeStepTextColor:"error-darker",nextStepTextColor:"error-dark"}};if(this.errorInCurrentStep){return t.error}if(this.activeStepIndex===0){return t.firstStep}if(this.activeStepIndex===this.stepList.length){return t.completed}return t.default}renderCompactStepper(){var t;const s=this.activeStepIndex===0?this.stepList[this.activeStepIndex].title:this.stepList[this.activeStepIndex-1].title;const r=this.activeStepIndex===0?this.stepList[this.activeStepIndex+1].title:(t=this.stepList[this.activeStepIndex])===null||t===void 0?void 0:t.title;const i=this.activeStepIndex===this.stepList.length;const o=!(i||this.errorInCurrentStep);const{progressColor:a,activeStepTextColor:l,nextStepTextColor:n}=this.getProgressStyles();const c=this.activeStepIndex*100/this.stepList.length;return e("div",{class:"container compact",style:this.styles},e("cura-progress-bar",{progress:c,progressColor:a,active:this.activeStepIndex!==0},!o?e("cura-icon",{name:this.errorInCurrentStep?"alertCircle":"checkCircle",color:this.errorInCurrentStep?"error-dark":"success-dark",size:"16"}):e("cura-heading",{color:"neutral-dark",size:"xsmall"},this.activeStepIndex,"/",this.stepList.length)),this.displayHeading&&e("div",{class:"heading"},e("cura-heading",{size:"small",weight:"bold",color:l},s),!i&&e("cura-heading",{size:"xsmall",weight:"regular",color:n},"Próximo: ",r)))}renderStep(t,s){const r=this.getStepStatus(s+1);const i=s===this.stepList.length-1;const o=r!=="default"?"100%":"0";return e("div",{class:`step ${i?"last":""}`,key:t.title},e("cura-stepper-item",{heading:t.title,label:t.label,displayHeading:this.displayHeading,status:r}),s<this.stepList.length-1&&e("div",{class:"wrapper"},e("div",{class:"divider"}),e("div",{class:`divider ${r} animation`,style:{"--progress-width":o}})))}renderStepper(){return e("div",{class:"container",style:this.styles},e("div",{class:"stepper-list"},this.stepList.map(((t,e)=>this.renderStep(t,e)))))}render(){return e(s,{key:"55bff7769007721f0c0366d1a6a9b197bbaebfbd"},this.variant==="default"?this.renderStepper():this.renderCompactStepper())}get host(){return r(this)}};a.style=o;export{a as cura_stepper};
2
- //# sourceMappingURL=p-6243742a.entry.js.map
1
+ import{r as t,h as e,H as s,g as r}from"./p-4ee8efca.js";const i=":host{display:block;box-sizing:border-box;width:100%}cura-heading{--margin-block:0 !important}.container{display:flex}.compact{display:flex;padding:0px;justify-content:space-between;align-items:center}.compact .heading{text-align:right}.stepper-list{gap:4px;display:flex;flex-shrink:0;align-items:center;padding:0;flex:1;width:100%;justify-content:space-between}.step{display:flex;align-items:center;flex-direction:row;flex:1;gap:4px}.step .wrapper{flex:1;position:relative}.step .divider{background-color:var(--neutral-light);height:2px;flex:1;transition:all 1s}.step .animation{position:absolute;top:0;left:0;right:0;width:var(--progress-width)}.step .done{background-color:var(--success-light)}.step .stop{background-color:var(--error-light)}.step .active{background-color:var(--info-light)}.last{flex:0}";const o=i;const a=class{constructor(e){t(this,e);this.activeStepIndex=undefined;this.errorInCurrentStep=false;this.displayHeading=false;this.variant="default";this.steps=[];this.styles={};this.stepList=[]}connectedCallback(){this.initializeSteps();const{fonts:t,colors:e,spacing:s}=window.CuraAPI.theme;const r=t.getWeights();this.styles=this.generateStyles(e,t,s,r)}generateStyles(t,e,s,r){return{"--base-spacing":s.getSpacing(),"--neutral-purewhite":t.getColor("neutral-purewhite"),"--neutral-lighter":t.getColor("neutral-lighter"),"--neutral-base":t.getColor("neutral-base"),"--neutral-light":t.getColor("neutral-light"),"--success-light":t.getColor("success-light"),"--info-light":t.getColor("info-light"),"--error-light":t.getColor("error-light"),"--font-size":e.getSize(),"--font-color":e.getColor(),"--font-family":e.getFamily(),"--font-weight-regular":r.regular}}initializeSteps(){if(typeof this.steps==="string"){this.stepList=JSON.parse(this.steps||"[]")}else{this.stepList=this.steps}}getStepStatus(t){if(this.activeStepIndex===t&&this.errorInCurrentStep)return"stop";if(this.activeStepIndex===t&&this.stepList.length!==t)return"active";if(this.activeStepIndex>=t)return"done";return"default"}getProgressStyles(){const t={default:{progressColor:"var(--info-light)",activeStepTextColor:"info-darker",nextStepTextColor:"info-dark"},firstStep:{progressColor:"var(--info-light)",activeStepTextColor:"neutral-dark",nextStepTextColor:"neutral-medium"},completed:{progressColor:"var(--success-light)",activeStepTextColor:"success-darker",nextStepTextColor:"success-dark"},error:{progressColor:"var(--error-light)",activeStepTextColor:"error-darker",nextStepTextColor:"error-dark"}};if(this.errorInCurrentStep){return t.error}if(this.activeStepIndex===0){return t.firstStep}if(this.activeStepIndex===this.stepList.length){return t.completed}return t.default}renderCompactStepper(){var t;const s=this.activeStepIndex===0?this.stepList[this.activeStepIndex].title:this.stepList[this.activeStepIndex-1].title;const r=this.activeStepIndex===0?this.stepList[this.activeStepIndex+1].title:(t=this.stepList[this.activeStepIndex])===null||t===void 0?void 0:t.title;const i=this.activeStepIndex===this.stepList.length;const o=!(i||this.errorInCurrentStep);const{progressColor:a,activeStepTextColor:l,nextStepTextColor:n}=this.getProgressStyles();const c=this.activeStepIndex*100/this.stepList.length;return e("div",{class:"container compact",style:this.styles},e("cura-progress-bar",{progress:c,progressColor:a,active:this.activeStepIndex!==0},!o?e("cura-icon",{name:this.errorInCurrentStep?"alertCircle":"checkCircle",color:this.errorInCurrentStep?"error-dark":"success-dark",size:"16"}):e("cura-heading",{color:"neutral-dark",size:"xsmall"},this.activeStepIndex,"/",this.stepList.length)),this.displayHeading&&e("div",{class:"heading"},e("cura-heading",{size:"small",weight:"bold",color:l},s),!i&&e("cura-heading",{size:"xsmall",weight:"regular",color:n},"Próximo: ",r)))}renderStep(t,s){const r=this.getStepStatus(s+1);const i=s===this.stepList.length-1;const o=r!=="default"?"100%":"0";return e("div",{class:`step ${i?"last":""}`,key:t.title},e("cura-stepper-item",{heading:t.title,label:t.label,displayHeading:this.displayHeading,status:r}),s<this.stepList.length-1&&e("div",{class:"wrapper"},e("div",{class:"divider"}),e("div",{class:`divider ${r} animation`,style:{"--progress-width":o}})))}renderStepper(){return e("div",{class:"container",style:this.styles},e("div",{class:"stepper-list"},this.stepList.map(((t,e)=>this.renderStep(t,e)))))}render(){return e(s,{key:"55bff7769007721f0c0366d1a6a9b197bbaebfbd"},this.variant==="default"?this.renderStepper():this.renderCompactStepper())}get host(){return r(this)}};a.style=o;export{a as cura_stepper};
2
+ //# sourceMappingURL=p-3c305dbd.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as e,c as r,h as a,H as s,g as t}from"./p-af3ac476.js";import{f as c}from"./p-f9b8f665.js";const o='@charset "UTF-8";:host{display:block;width:fit-content;box-sizing:border-box}.container{display:flex;align-items:center;flex-direction:row-reverse;gap:var(--gap)}.position.container{flex-direction:row}.position .label-wrapper{justify-content:end}.position .message{text-align:right}.position .label{order:1}.info{display:flex;flex-direction:column}.label-wrapper{display:flex;justify-content:start;align-items:center;gap:5px}.control{width:fit-content;cursor:pointer;position:relative}.checkbox{appearance:none;border:2px solid var(--neutral-base-neutral-medium);border-radius:4px;background:var(--neutral-black-neutral-purewhite);flex:1 0;display:flex;align-items:center;justify-content:center;position:relative;cursor:pointer;box-sizing:border-box;width:var(--size);height:var(--size);flex:0 0 var(--size)}.icon{position:absolute;display:flex;opacity:0;transition:opacity 0.3s}.checkbox:focus{border-color:var(--info-base) !important}.disabled .checkbox{background:var(--neutral-black-neutral-white);border-color:var(--neutral-darker-neutral-base);cursor:not-allowed}.disabled .checkbox:hover{border-color:var(--neutral-darker-neutral-base) !important}.disabled.checked .checkbox,.disabled.indeterminate .checkbox{background:var(--neutral-black-neutral-white);border-color:var(--neutral-darker-neutral-base)}.disabled.checked .checkbox:hover,.disabled.indeterminate .checkbox:hover{border-color:var(--neutral-base-neutral-white);background:var(--primary-base-neutral-white)}.disabled .checkbox:focus{border-color:var(--neutral-darker-neutral-base) !important}.checked .checkbox{border-color:var(--color-dark);background:var(--color-base)}.checked .checkbox:hover{border-color:var(--color-base) !important;background:var(--color-light)}.indeterminate .checkbox{border-color:var(--color-base);background:var(--color-light)}.indeterminate .checkbox:hover{border-color:var(--color-dark) !important;background:var(--color-base)}.checked .icon,.indeterminate .icon{opacity:1}:not(.disabled):not(.checked):not(.indeterminate) .checkbox:hover{border-color:var(--neutral-purewhite-neutral-dark)}.success.dark .checkbox{background:var(--neutral-black)}.success .checkbox{border-color:var(--success-base);background:var(--success-lighter)}.success .checkbox:hover{border-color:var(--success-base) !important}.success.checked .checkbox{border-color:var(--success-dark-base);background:var(--success-base-lighter)}.success.checked .checkbox:hover{border-color:var(--success-dark-base)}.error.dark .checkbox{background:var(--neutral-black)}.error .checkbox{border-color:var(--error-base);background:var(--error-lighter)}.error .checkbox:hover{border-color:var(--error-base) !important}.error.checked .checkbox{border-color:var(--error-dark-base);background:var(--error-base-lighter)}.error.checked .checkbox:hover{border-color:var(--error-dark-base)}input{appearance:none;-webkit-appearance:none;-moz-appearance:none}';const i=o;const n=class{constructor(a){e(this,a);this.onchange=r(this,"onchange",7);if(a.$hostElement$["s-ei"]){this.internals=a.$hostElement$["s-ei"]}else{this.internals=a.$hostElement$.attachInternals();a.$hostElement$["s-ei"]=this.internals}this.isDarkBackground=()=>this.background==="dark";this.isDarkIconColor=()=>this.iconColor==="dark";this.handleClick=()=>{if(this.disabled)return;this.indeterminate=false;this.checked=!this.checked;this.internals.setFormValue(this.value);this.onchange.emit({value:this.value,checked:this.checked,indeterminate:this.indeterminate})};this.checked=false;this.indeterminate=false;this.status="default";this.disabled=false;this.required=false;this.label=undefined;this.ontabindex=0;this.position="left";this.value=undefined;this.name=undefined;this.size="medium";this.background="light";this.iconColor="dark";this.color="accent";this.styles={}}sizeHandler(){this.styles=Object.assign(Object.assign({},this.styles),{"--size":`${c[this.size].size}px`,"--gap":`${c[this.size].gap}px`})}setColors(){const e=[{name:"--color-base",background:`${this.color}-base`},{name:"--color-lighter",background:`${this.color}-lighter`},{name:"--color-light",background:`${this.color}-light`},{name:"--color-dark",background:`${this.color}-dark`},{name:"--info-base",background:"info-base"},{name:"--error-base",background:"error-base"},{name:"--success-lighter",background:"success-lighter"},{name:"--success-base",background:"success-base"},{name:"--success-dark",background:"success-dark"},{name:"--error-lighter",background:"error-lighter"},{name:"--neutral-black",background:"neutral-black"},{name:"--primary-base-neutral-white",background:this.isDarkBackground()?"primary-base":"neutral-white"},{name:"--neutral-base-neutral-medium",background:this.isDarkBackground()?"neutral-base":"neutral-medium"},{name:"--neutral-black-neutral-purewhite",background:this.isDarkBackground()?"neutral-black":"neutral-purewhite"},{name:"--neutral-black-neutral-white",background:this.isDarkBackground()?"neutral-black":"neutral-white"},{name:"--neutral-darker-neutral-base",background:this.isDarkBackground()?"neutral-darker":"neutral-base"},{name:"--neutral-base-neutral-base",background:this.isDarkBackground()?"primary-base":"neutral-base"},{name:"--neutral-purewhite-neutral-dark",background:this.isDarkBackground()?"neutral-purewhite":"neutral-dark"},{name:"--primary-base-neutral-medium",background:this.isDarkBackground()?"primary-base":"neutral-medium"},{name:"--success-base-lighter",background:this.isDarkBackground()?"success-base":"success-lighter"},{name:"--success-dark-base",background:this.isDarkBackground()?"success-dark":"success-base"},{name:"--error-base-lighter",background:this.isDarkBackground()?"error-base":"error-lighter"},{name:"--error-dark-base",background:this.isDarkBackground()?"error-dark":"error-base"}];e.forEach((e=>{this.styles[e.name]=window.CuraAPI.theme.colors.getColor(e.background)}));this.styles=Object.assign({},this.styles)}connectedCallback(){this.sizeHandler();this.setColors()}formAssociatedCallback(e){e.ariaLabel=this.label}formStateRestoreCallback(e){this.value=e.value;this.checked=e.checked;this.indeterminate=e.indeterminate;this.internals.setFormValue(this.value)}formResetCallback(){this.value="";this.checked=false;this.indeterminate=false;this.internals.setValidity({});this.internals.setFormValue(this.value)}formDisabledCallback(e){this.disabled=e}getClasses(){const e={};e["container"]=true;e["checked"]=this.checked;e["disabled"]=this.disabled;e[this.background]=true;e["indeterminate"]=this.indeterminate;e["position"]=this.position==="right";e[this.status]=true;return e}assignColor(e){if(this.disabled)return this.isDarkBackground()?"neutral-dark":"neutral-dark";const r={success:{icon:"success-dark",label:this.isDarkBackground()?"success-lighter":"success-darker",message:this.isDarkBackground()?"success-base":"success-dark"},error:{icon:"error-dark",label:this.isDarkBackground()?"error-lighter":"neutral-darker",message:this.isDarkBackground()?"error-base":"error-dark"},default:{icon:this.isDarkIconColor()?"neutral-black":"neutral-purewhite",label:this.isDarkBackground()?"neutral-white":"neutral-black",message:this.isDarkBackground()?"primary-lighter":"neutral-dark"}};return r[this.status][e]}getIcon(){const e=this.indeterminate?"minus":"check";const r=this.assignColor("icon");const s=this.size==="large"?20:"micro";return a("cura-icon",{class:"icon",name:e,size:s,color:r})}render(){return a(s,{key:"8c4fdab5276ff9eb200299a5584ac8e96ef11974"},a("div",{key:"3074370b481f50e7c3b8183e1aa643a37992f05b",class:this.getClasses(),style:this.styles,onClick:this.handleClick},a("div",{key:"adb656d2d5dc3212735c427e08c7d03d8c94f83e",class:"info"},a("div",{key:"55747701dd4ed57a6ed3132d996639219ba950e1",class:"label-wrapper"},a("cura-label",{key:"b5224ec0a274789c03f6b8e0a5c5ed7fda911c58",class:"label",weight:"bold",size:this.size==="large"?"medium":"xsmall",color:this.assignColor("label")},this.label),this.required&&a("cura-paragraph",{key:"188a2ed6c915cec53d495edd77ec2dd88fafe714",lineHeight:"0%",marginBlock:"0",color:"error-base"},"* ")),a("cura-label",{key:"6b63e628f4aeb066dc73feaca720edb12dc207f1",color:this.assignColor("message"),size:"xsmall",class:"message"},a("slot",{key:"880c28c63878169f84a14c96d12c925edc3611bb"}))),a("div",{key:"01dd5e638a5043c4349193c97dd7acfe57dc4498",class:"checkbox",tabIndex:this.ontabindex},a("input",{key:"5ff82da2b58e7bd88f2866a2677151fb49814b3c",type:"checkbox",name:this.name,value:this.value,disabled:this.disabled,required:this.required,checked:this.checked,indeterminate:this.indeterminate}),this.getIcon())))}static get formAssociated(){return true}get host(){return t(this)}static get watchers(){return{size:["sizeHandler"],color:["setColors"],background:["setColors","assignColor"],iconColor:["assignColor"]}}};n.style=i;export{n as cura_checkbox};
2
- //# sourceMappingURL=p-f1098b41.entry.js.map
1
+ import{r as e,c as r,h as a,H as s,g as t}from"./p-4ee8efca.js";import{f as c}from"./p-f9b8f665.js";const o='@charset "UTF-8";:host{display:block;width:fit-content;box-sizing:border-box}.container{display:flex;align-items:center;flex-direction:row-reverse;gap:var(--gap)}.position.container{flex-direction:row}.position .label-wrapper{justify-content:end}.position .message{text-align:right}.position .label{order:1}.info{display:flex;flex-direction:column}.label-wrapper{display:flex;justify-content:start;align-items:center;gap:5px}.control{width:fit-content;cursor:pointer;position:relative}.checkbox{appearance:none;border:2px solid var(--neutral-base-neutral-medium);border-radius:4px;background:var(--neutral-black-neutral-purewhite);flex:1 0;display:flex;align-items:center;justify-content:center;position:relative;cursor:pointer;box-sizing:border-box;width:var(--size);height:var(--size);flex:0 0 var(--size)}.icon{position:absolute;display:flex;opacity:0;transition:opacity 0.3s}.checkbox:focus{border-color:var(--info-base) !important}.disabled .checkbox{background:var(--neutral-black-neutral-white);border-color:var(--neutral-darker-neutral-base);cursor:not-allowed}.disabled .checkbox:hover{border-color:var(--neutral-darker-neutral-base) !important}.disabled.checked .checkbox,.disabled.indeterminate .checkbox{background:var(--neutral-black-neutral-white);border-color:var(--neutral-darker-neutral-base)}.disabled.checked .checkbox:hover,.disabled.indeterminate .checkbox:hover{border-color:var(--neutral-base-neutral-white);background:var(--primary-base-neutral-white)}.disabled .checkbox:focus{border-color:var(--neutral-darker-neutral-base) !important}.checked .checkbox{border-color:var(--color-dark);background:var(--color-base)}.checked .checkbox:hover{border-color:var(--color-base) !important;background:var(--color-light)}.indeterminate .checkbox{border-color:var(--color-base);background:var(--color-light)}.indeterminate .checkbox:hover{border-color:var(--color-dark) !important;background:var(--color-base)}.checked .icon,.indeterminate .icon{opacity:1}:not(.disabled):not(.checked):not(.indeterminate) .checkbox:hover{border-color:var(--neutral-purewhite-neutral-dark)}.success.dark .checkbox{background:var(--neutral-black)}.success .checkbox{border-color:var(--success-base);background:var(--success-lighter)}.success .checkbox:hover{border-color:var(--success-base) !important}.success.checked .checkbox{border-color:var(--success-dark-base);background:var(--success-base-lighter)}.success.checked .checkbox:hover{border-color:var(--success-dark-base)}.error.dark .checkbox{background:var(--neutral-black)}.error .checkbox{border-color:var(--error-base);background:var(--error-lighter)}.error .checkbox:hover{border-color:var(--error-base) !important}.error.checked .checkbox{border-color:var(--error-dark-base);background:var(--error-base-lighter)}.error.checked .checkbox:hover{border-color:var(--error-dark-base)}input{appearance:none;-webkit-appearance:none;-moz-appearance:none}';const i=o;const n=class{constructor(a){e(this,a);this.onchange=r(this,"onchange",7);if(a.$hostElement$["s-ei"]){this.internals=a.$hostElement$["s-ei"]}else{this.internals=a.$hostElement$.attachInternals();a.$hostElement$["s-ei"]=this.internals}this.isDarkBackground=()=>this.background==="dark";this.isDarkIconColor=()=>this.iconColor==="dark";this.handleClick=()=>{if(this.disabled)return;this.indeterminate=false;this.checked=!this.checked;this.internals.setFormValue(this.value);this.onchange.emit({value:this.value,checked:this.checked,indeterminate:this.indeterminate})};this.checked=false;this.indeterminate=false;this.status="default";this.disabled=false;this.required=false;this.label=undefined;this.ontabindex=0;this.position="left";this.value=undefined;this.name=undefined;this.size="medium";this.background="light";this.iconColor="dark";this.color="accent";this.styles={}}sizeHandler(){this.styles=Object.assign(Object.assign({},this.styles),{"--size":`${c[this.size].size}px`,"--gap":`${c[this.size].gap}px`})}setColors(){const e=[{name:"--color-base",background:`${this.color}-base`},{name:"--color-lighter",background:`${this.color}-lighter`},{name:"--color-light",background:`${this.color}-light`},{name:"--color-dark",background:`${this.color}-dark`},{name:"--info-base",background:"info-base"},{name:"--error-base",background:"error-base"},{name:"--success-lighter",background:"success-lighter"},{name:"--success-base",background:"success-base"},{name:"--success-dark",background:"success-dark"},{name:"--error-lighter",background:"error-lighter"},{name:"--neutral-black",background:"neutral-black"},{name:"--primary-base-neutral-white",background:this.isDarkBackground()?"primary-base":"neutral-white"},{name:"--neutral-base-neutral-medium",background:this.isDarkBackground()?"neutral-base":"neutral-medium"},{name:"--neutral-black-neutral-purewhite",background:this.isDarkBackground()?"neutral-black":"neutral-purewhite"},{name:"--neutral-black-neutral-white",background:this.isDarkBackground()?"neutral-black":"neutral-white"},{name:"--neutral-darker-neutral-base",background:this.isDarkBackground()?"neutral-darker":"neutral-base"},{name:"--neutral-base-neutral-base",background:this.isDarkBackground()?"primary-base":"neutral-base"},{name:"--neutral-purewhite-neutral-dark",background:this.isDarkBackground()?"neutral-purewhite":"neutral-dark"},{name:"--primary-base-neutral-medium",background:this.isDarkBackground()?"primary-base":"neutral-medium"},{name:"--success-base-lighter",background:this.isDarkBackground()?"success-base":"success-lighter"},{name:"--success-dark-base",background:this.isDarkBackground()?"success-dark":"success-base"},{name:"--error-base-lighter",background:this.isDarkBackground()?"error-base":"error-lighter"},{name:"--error-dark-base",background:this.isDarkBackground()?"error-dark":"error-base"}];e.forEach((e=>{this.styles[e.name]=window.CuraAPI.theme.colors.getColor(e.background)}));this.styles=Object.assign({},this.styles)}connectedCallback(){this.sizeHandler();this.setColors()}formAssociatedCallback(e){e.ariaLabel=this.label}formStateRestoreCallback(e){this.value=e.value;this.checked=e.checked;this.indeterminate=e.indeterminate;this.internals.setFormValue(this.value)}formResetCallback(){this.value="";this.checked=false;this.indeterminate=false;this.internals.setValidity({});this.internals.setFormValue(this.value)}formDisabledCallback(e){this.disabled=e}getClasses(){const e={};e["container"]=true;e["checked"]=this.checked;e["disabled"]=this.disabled;e[this.background]=true;e["indeterminate"]=this.indeterminate;e["position"]=this.position==="right";e[this.status]=true;return e}assignColor(e){if(this.disabled)return this.isDarkBackground()?"neutral-dark":"neutral-dark";const r={success:{icon:"success-dark",label:this.isDarkBackground()?"success-lighter":"success-darker",message:this.isDarkBackground()?"success-base":"success-dark"},error:{icon:"error-dark",label:this.isDarkBackground()?"error-lighter":"neutral-darker",message:this.isDarkBackground()?"error-base":"error-dark"},default:{icon:this.isDarkIconColor()?"neutral-black":"neutral-purewhite",label:this.isDarkBackground()?"neutral-white":"neutral-black",message:this.isDarkBackground()?"primary-lighter":"neutral-dark"}};return r[this.status][e]}getIcon(){const e=this.indeterminate?"minus":"check";const r=this.assignColor("icon");const s=this.size==="large"?20:"micro";return a("cura-icon",{class:"icon",name:e,size:s,color:r})}render(){return a(s,{key:"8c4fdab5276ff9eb200299a5584ac8e96ef11974"},a("div",{key:"3074370b481f50e7c3b8183e1aa643a37992f05b",class:this.getClasses(),style:this.styles,onClick:this.handleClick},a("div",{key:"adb656d2d5dc3212735c427e08c7d03d8c94f83e",class:"info"},a("div",{key:"55747701dd4ed57a6ed3132d996639219ba950e1",class:"label-wrapper"},a("cura-label",{key:"b5224ec0a274789c03f6b8e0a5c5ed7fda911c58",class:"label",weight:"bold",size:this.size==="large"?"medium":"xsmall",color:this.assignColor("label")},this.label),this.required&&a("cura-paragraph",{key:"188a2ed6c915cec53d495edd77ec2dd88fafe714",lineHeight:"0%",marginBlock:"0",color:"error-base"},"* ")),a("cura-label",{key:"6b63e628f4aeb066dc73feaca720edb12dc207f1",color:this.assignColor("message"),size:"xsmall",class:"message"},a("slot",{key:"880c28c63878169f84a14c96d12c925edc3611bb"}))),a("div",{key:"01dd5e638a5043c4349193c97dd7acfe57dc4498",class:"checkbox",tabIndex:this.ontabindex},a("input",{key:"5ff82da2b58e7bd88f2866a2677151fb49814b3c",type:"checkbox",name:this.name,value:this.value,disabled:this.disabled,required:this.required,checked:this.checked,indeterminate:this.indeterminate}),this.getIcon())))}static get formAssociated(){return true}get host(){return t(this)}static get watchers(){return{size:["sizeHandler"],color:["setColors"],background:["setColors","assignColor"],iconColor:["assignColor"]}}};n.style=i;export{n as cura_checkbox};
2
+ //# sourceMappingURL=p-405a50de.entry.js.map
@@ -1,3 +1,3 @@
1
- const e="cura";const t={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:true,cmpDidRender:true,cmpDidUnload:false,cmpDidUpdate:false,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:false,cmpWillUpdate:false,connectedCallback:true,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:true,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:false,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:true,hotModuleReplacement:false,hydrateClientSide:true,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:false,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:true,slot:true,slotChildNodesFix:false,slotRelocation:false,state:true,style:true,svg:true,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:false,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};var n=Object.defineProperty;var l=(e,t)=>{for(var l in t)n(e,l,{get:t[l],enumerable:true})};var r=new WeakMap;var s=e=>r.get(e);var i=(e,t)=>r.set(t.t=e,t);var o=(e,t)=>{const n={l:0,$hostElement$:e,i:t,o:new Map};{n.u=new Promise((e=>n.v=e))}{n.h=new Promise((e=>n.p=e));e["s-p"]=[];e["s-rc"]=[]}return r.set(e,n)};var a=(e,t)=>t in e;var f=(e,t)=>(0,console.error)(e,t);var c=new Map;var u=(e,t,n)=>{const l=e.m.replace(/-/g,"_");const r=e.$;if(!r){return void 0}const s=c.get(r);if(s){return s[l]}
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${r}.entry.js${""}`).then((e=>{{c.set(r,e)}return e[l]}),f)};var v=new Map;var d="r";var h="o";var p="s";var m="t";var $="s-id";var y="sty-id";var b="c-id";var w="{visibility:hidden}.hydrated{visibility:inherit}";var g="slot-fb{display:contents}slot-fb[hidden]{display:none}";var S="http://www.w3.org/1999/xlink";var k=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"];var C=typeof window!=="undefined"?window:{};var x=C.document||{head:{}};var j={l:0,S:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)};var O=t.shadowDom;var D=(()=>{let e=false;try{x.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=true}}))}catch(e){}return e})();var E=e=>Promise.resolve(e);var L=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var R=false;var T=[];var M=[];var A=(e,t)=>n=>{e.push(n);if(!R){R=true;if(t&&j.l&4){N(P)}else{j.raf(P)}}};var F=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){f(e)}}e.length=0};var P=()=>{F(T);{F(M);if(R=T.length>0){j.raf(P)}}};var N=e=>E().then(e);var U=A(M,true);var W={};var H="http://www.w3.org/2000/svg";var I="http://www.w3.org/1999/xhtml";var z=e=>e!=null;var B=e=>{e=typeof e;return e==="object"||e==="function"};function Q(e){var t,n,l;return(l=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?l:void 0}var q={};l(q,{err:()=>K,map:()=>V,ok:()=>G,unwrap:()=>X,unwrapErr:()=>_});var G=e=>({isOk:true,isErr:false,value:e});var K=e=>({isOk:false,isErr:true,value:e});function V(e,t){if(e.isOk){const n=t(e.value);if(n instanceof Promise){return n.then((e=>G(e)))}else{return G(n)}}if(e.isErr){const t=e.value;return K(t)}throw"should never get here"}var X=e=>{if(e.isOk){return e.value}else{throw e.value}};var _=e=>{if(e.isErr){return e.value}else{throw e.value}};var J=(e,t="")=>{{return()=>{}}};var Y=(e,t)=>{{return()=>{}}};var Z=(e,t,...n)=>{let l=null;let r=null;let s=false;let i=false;const o=[];const a=t=>{for(let n=0;n<t.length;n++){l=t[n];if(Array.isArray(l)){a(l)}else if(l!=null&&typeof l!=="boolean"){if(s=typeof e!=="function"&&!B(l)){l=String(l)}if(s&&i){o[o.length-1].k+=l}else{o.push(s?ee(null,l):l)}i=s}}};a(n);if(t){if(t.key){r=t.key}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}const f=ee(e,null);f.C=t;if(o.length>0){f.j=o}{f.O=r}return f};var ee=(e,t)=>{const n={l:0,D:e,k:t,L:null,j:null};{n.C=null}{n.O=null}return n};var te={};var ne=e=>e&&e.D===te;var le=(e,t,n,l)=>{const r=J("hydrateClient",t);const s=e.shadowRoot;const i=[];const o=[];const a=s?[]:null;const f=l.R=ee(t,null);if(!j.T){se(x.body,j.T=new Map)}e[$]=n;e.removeAttribute($);re(f,i,o,a,e,e,n);i.map((e=>{const n=e.M+"."+e.A;const l=j.T.get(n);const r=e.L;if(l&&O&&l["s-en"]===""){l.parentNode.insertBefore(r,l.nextSibling)}if(!s){r["s-hn"]=t;if(l){r["s-ol"]=l;r["s-ol"]["s-nr"]=r}}j.T.delete(n)}));if(s){a.map((e=>{if(e){s.appendChild(e)}}))}r()};var re=(e,t,n,l,r,s,i)=>{let o;let a;let f;let c;if(s.nodeType===1){o=s.getAttribute(b);if(o){a=o.split(".");if(a[0]===i||a[0]==="0"){f={l:0,M:a[0],A:a[1],F:a[2],P:a[3],D:s.tagName.toLowerCase(),L:s,C:null,j:null,O:null,N:null,k:null};t.push(f);s.removeAttribute(b);if(!e.j){e.j=[]}e.j[f.P]=f;e=f;if(l&&f.F==="0"){l[f.P]=f.L}}}if(s.shadowRoot){for(c=s.shadowRoot.childNodes.length-1;c>=0;c--){re(e,t,n,l,r,s.shadowRoot.childNodes[c],i)}}for(c=s.childNodes.length-1;c>=0;c--){re(e,t,n,l,r,s.childNodes[c],i)}}else if(s.nodeType===8){a=s.nodeValue.split(".");if(a[1]===i||a[1]==="0"){o=a[0];f={l:0,M:a[1],A:a[2],F:a[3],P:a[4],L:s,C:null,j:null,O:null,N:null,D:null,k:null};if(o===m){f.L=s.nextSibling;if(f.L&&f.L.nodeType===3){f.k=f.L.textContent;t.push(f);s.remove();if(!e.j){e.j=[]}e.j[f.P]=f;if(l&&f.F==="0"){l[f.P]=f.L}}}else if(f.M===i){if(o===p){f.D="slot";if(a[5]){s["s-sn"]=f.N=a[5]}else{s["s-sn"]=""}s["s-sr"]=true;if(l){f.L=x.createElement(f.D);if(f.N){f.L.setAttribute("name",f.N)}s.parentNode.insertBefore(f.L,s);s.remove();if(f.F==="0"){l[f.P]=f.L}}n.push(f);if(!e.j){e.j=[]}e.j[f.P]=f}else if(o===d){if(l){s.remove()}}}}}else if(e&&e.D==="style"){const t=ee(null,s.textContent);t.L=s;t.P="0";e.j=[t]}};var se=(e,t)=>{if(e.nodeType===1){let n=0;if(e.shadowRoot){for(;n<e.shadowRoot.childNodes.length;n++){se(e.shadowRoot.childNodes[n],t)}}for(n=0;n<e.childNodes.length;n++){se(e.childNodes[n],t)}}else if(e.nodeType===8){const n=e.nodeValue.split(".");if(n[0]===h){t.set(n[1]+"."+n[2],e);e.nodeValue="";e["s-en"]=n[3]}}};var ie=(e,t)=>{if(e!=null&&!B(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var oe=e=>s(e).$hostElement$;var ae=(e,t,n)=>{const l=oe(e);return{emit:e=>fe(l,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}};var fe=(e,t,n)=>{const l=j.ce(t,n);e.dispatchEvent(l);return l};var ce=new WeakMap;var ue=(e,t,n)=>{let l=v.get(e);if(L&&n){l=l||new CSSStyleSheet;if(typeof l==="string"){l=t}else{l.replaceSync(t)}}else{l=t}v.set(e,l)};var ve=(e,t,n)=>{var l;const r=he(t);const s=v.get(r);e=e.nodeType===11?e:x;if(s){if(typeof s==="string"){e=e.head||e;let n=ce.get(e);let i;if(!n){ce.set(e,n=new Set)}if(!n.has(r)){if(e.host&&(i=e.querySelector(`[${y}="${r}"]`))){i.innerHTML=s}else{i=x.createElement("style");i.innerHTML=s;const n=(l=j.U)!=null?l:Q(x);if(n!=null){i.setAttribute("nonce",n)}if(!(t.l&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(i,n)}else if("host"in e){e.prepend(i)}else{e.append(i)}}if(t.l&1&&e.nodeName!=="HEAD"){e.insertBefore(i,null)}}if(t.l&4){i.innerHTML+=g}if(n){n.add(r)}}}else if(!e.adoptedStyleSheets.includes(s)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]}}return r};var de=e=>{const t=e.i;const n=e.$hostElement$;const l=t.l;const r=J("attachStyles",t.m);const s=ve(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(l&10&&l&2){n["s-sc"]=s;n.classList.add(s+"-h")}r()};var he=(e,t)=>"sc-"+e.m;var pe=(e,t,n,l,r,s)=>{if(n!==l){let i=a(e,t);let o=t.toLowerCase();if(t==="class"){const t=e.classList;const r=$e(n);const s=$e(l);t.remove(...r.filter((e=>e&&!s.includes(e))));t.add(...s.filter((e=>e&&!r.includes(e))))}else if(t==="style"){{for(const t in n){if(!l||l[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in l){if(!n||l[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,l[t])}else{e.style[t]=l[t]}}}}else if(t==="key");else if(t==="ref"){if(l){l(e)}}else if(!i&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(a(C,o)){t=o.slice(2)}else{t=o[2]+t.slice(3)}if(n||l){const r=t.endsWith(ye);t=t.replace(be,"");if(n){j.rel(e,t,n,r)}if(l){j.ael(e,t,l,r)}}}else{const a=B(l);if((i||a&&l!==null)&&!r){try{if(!e.tagName.includes("-")){const r=l==null?"":l;if(t==="list"){i=false}else if(n==null||e[t]!=r){if(typeof e.__lookupSetter__(t)==="function"){e[t]=r}else{e.setAttribute(t,r)}}}else{e[t]=l}}catch(e){}}let f=false;{if(o!==(o=o.replace(/^xlink\:?/,""))){t=o;f=true}}if(l==null||l===false){if(l!==false||e.getAttribute(t)===""){if(f){e.removeAttributeNS(S,t)}else{e.removeAttribute(t)}}}else if((!i||s&4||r)&&!a){l=l===true?"":l;if(f){e.setAttributeNS(S,t,l)}else{e.setAttribute(t,l)}}}}};var me=/\s/;var $e=e=>!e?[]:e.split(me);var ye="Capture";var be=new RegExp(ye+"$");var we=(e,t,n)=>{const l=t.L.nodeType===11&&t.L.host?t.L.host:t.L;const r=e&&e.C||W;const s=t.C||W;{for(const e of ge(Object.keys(r))){if(!(e in s)){pe(l,e,r[e],void 0,n,t.l)}}}for(const e of ge(Object.keys(s))){pe(l,e,r[e],s[e],n,t.l)}};function ge(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var Se;var ke;var Ce=false;var xe=false;var je=(e,n,l,r)=>{const s=n.j[l];let i=0;let o;let a;if(s.k!==null){o=s.L=x.createTextNode(s.k)}else{if(!xe){xe=s.D==="svg"}o=s.L=x.createElementNS(xe?H:I,!Ce&&t.slotRelocation&&s.l&2?"slot-fb":s.D);if(xe&&s.D==="foreignObject"){xe=false}{we(null,s,xe)}const n=o.getRootNode();const l=!n.querySelector("body");if(!l&&t.scoped&&z(Se)&&o["s-si"]!==Se){o.classList.add(o["s-si"]=Se)}if(s.j){for(i=0;i<s.j.length;++i){a=je(e,s,i);if(a){o.appendChild(a)}}}{if(s.D==="svg"){xe=false}else if(o.tagName==="foreignObject"){xe=true}}}o["s-hn"]=ke;return o};var Oe=(e,t,n,l,r,s)=>{let i=e;let o;if(i.shadowRoot&&i.tagName===ke){i=i.shadowRoot}for(;r<=s;++r){if(l[r]){o=je(null,n,r);if(o){l[r].L=o;Me(i,o,t)}}}};var De=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.L;Te(t);if(e){e.remove()}}}};var Ee=(e,t,n,l,r=false)=>{let s=0;let i=0;let o=0;let a=0;let f=t.length-1;let c=t[0];let u=t[f];let v=l.length-1;let d=l[0];let h=l[v];let p;let m;while(s<=f&&i<=v){if(c==null){c=t[++s]}else if(u==null){u=t[--f]}else if(d==null){d=l[++i]}else if(h==null){h=l[--v]}else if(Le(c,d,r)){Re(c,d,r);c=t[++s];d=l[++i]}else if(Le(u,h,r)){Re(u,h,r);u=t[--f];h=l[--v]}else if(Le(c,h,r)){Re(c,h,r);Me(e,c.L,u.L.nextSibling);c=t[++s];h=l[--v]}else if(Le(u,d,r)){Re(u,d,r);Me(e,u.L,c.L);u=t[--f];d=l[++i]}else{o=-1;{for(a=s;a<=f;++a){if(t[a]&&t[a].O!==null&&t[a].O===d.O){o=a;break}}}if(o>=0){m=t[o];if(m.D!==d.D){p=je(t&&t[i],n,o)}else{Re(m,d,r);t[o]=void 0;p=m.L}d=l[++i]}else{p=je(t&&t[i],n,i);d=l[++i]}if(p){{Me(c.L.parentNode,p,c.L)}}}}if(s>f){Oe(e,l[v+1]==null?null:l[v+1].L,n,l,i,v)}else if(i>v){De(t,s,f)}};var Le=(e,t,n=false)=>{if(e.D===t.D){if(!n){return e.O===t.O}return true}return false};var Re=(e,n,l=false)=>{const r=n.L=e.L;const s=e.j;const i=n.j;const o=n.D;const a=n.k;if(a===null){{xe=o==="svg"?true:o==="foreignObject"?false:xe}{if(o==="slot"&&!Ce);else{we(e,n,xe)}}if(s!==null&&i!==null){Ee(r,s,n,i,l)}else if(i!==null){if(e.k!==null){r.textContent=""}Oe(r,null,n,i,0,i.length-1)}else if(!l&&t.updatable&&s!==null){De(s,0,s.length-1)}if(xe&&o==="svg"){xe=false}}else if(e.k!==a){r.data=a}};var Te=e=>{{e.C&&e.C.ref&&e.C.ref(null);e.j&&e.j.map(Te)}};var Me=(e,t,n)=>{const l=e==null?void 0:e.insertBefore(t,n);return l};var Ae=(e,t,n=false)=>{const l=e.$hostElement$;const r=e.i;const s=e.R||ee(null,null);const i=ne(t)?t:Z(null,null,t);ke=l.tagName;if(r.W){i.C=i.C||{};r.W.map((([e,t])=>i.C[t]=l[e]))}if(n&&i.C){for(const e of Object.keys(i.C)){if(l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){i.C[e]=l[e]}}}i.D=null;i.l|=4;e.R=i;i.L=s.L=l.shadowRoot||l;{Se=l["s-sc"]}Ce=(r.l&1)!==0;Re(s,i,n)};var Fe=(e,t)=>{if(t&&!e.H&&t["s-p"]){t["s-p"].push(new Promise((t=>e.H=t)))}};var Pe=(e,t)=>{{e.l|=16}if(e.l&4){e.l|=512;return}Fe(e,e.I);const n=()=>Ne(e,t);return U(n)};var Ne=(e,t)=>{const n=e.$hostElement$;const l=J("scheduleUpdate",e.i.m);const r=e.t;if(!r){throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let s;if(t){{e.l|=256;if(e.B){e.B.map((([e,t])=>Qe(r,e,t)));e.B=void 0}}{s=Qe(r,"componentWillLoad")}}l();return Ue(s,(()=>He(e,r,t)))};var Ue=(e,t)=>We(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var We=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var He=async(e,t,n)=>{var l;const r=e.$hostElement$;const s=J("update",e.i.m);const i=r["s-rc"];if(n){de(e)}const o=J("render",e.i.m);{Ie(e,t,r,n)}if(i){i.map((e=>e()));r["s-rc"]=void 0}o();s();{const t=(l=r["s-p"])!=null?l:[];const n=()=>ze(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.l|=4;t.length=0}}};var Ie=(e,t,n,l)=>{try{t=t.render();{e.l&=~16}{e.l|=2}{{{Ae(e,t,l)}}}}catch(t){f(t,e.$hostElement$)}return null};var ze=e=>{const t=e.i.m;const n=e.$hostElement$;const l=J("postUpdate",t);const r=e.t;const s=e.I;{Qe(r,"componentDidRender")}if(!(e.l&64)){e.l|=64;{qe(n)}{Qe(r,"componentDidLoad")}l();{e.p(n);if(!s){Be()}}}else{l()}{e.v(n)}{if(e.H){e.H();e.H=void 0}if(e.l&512){N((()=>Pe(e,false)))}e.l&=~(4|512)}};var Be=t=>{{qe(x.documentElement)}N((()=>fe(C,"appload",{detail:{namespace:e}})))};var Qe=(e,t,n)=>{if(e&&e[t]){try{return e[t](n)}catch(e){f(e)}}return void 0};var qe=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var Ge=(e,t)=>s(e).o.get(t);var Ke=(e,t,n,l)=>{const r=s(e);if(!r){throw new Error(`Couldn't find host element for "${l.m}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`)}const i=r.$hostElement$;const o=r.o.get(t);const a=r.l;const c=r.t;n=ie(n,l.q[t][0]);const u=Number.isNaN(o)&&Number.isNaN(n);const v=n!==o&&!u;if((!(a&8)||o===void 0)&&v){r.o.set(t,n);if(c){if(l.G&&a&128){const e=l.G[t];if(e){e.map((e=>{try{c[e](n,o,t)}catch(e){f(e,i)}}))}}if((a&(2|16))===2){Pe(r,false)}}}};var Ve=(e,t,n)=>{var l,r;const i=e.prototype;if(t.l&64&&n&1){k.forEach((e=>Object.defineProperty(i,e,{value(...t){const n=s(this);const l=n.t;if(!l){n.h.then((n=>{const l=n[e];typeof l==="function"&&l.call(n,...t)}))}else{const n=l[e];typeof n==="function"&&n.call(l,...t)}}})))}if(t.q||(t.G||e.watchers)){if(e.watchers&&!t.G){t.G=e.watchers}const o=Object.entries((l=t.q)!=null?l:{});o.map((([e,[l]])=>{if(l&31||n&2&&l&32){Object.defineProperty(i,e,{get(){return Ge(this,e)},set(n){Ke(this,e,n,t)},configurable:true,enumerable:true})}else if(n&1&&l&64){Object.defineProperty(i,e,{value(...t){var n;const l=s(this);return(n=l==null?void 0:l.u)==null?void 0:n.then((()=>{var n;return(n=l.t)==null?void 0:n[e](...t)}))}})}}));if(n&1){const n=new Map;i.attributeChangedCallback=function(e,l,r){j.jmp((()=>{var o;const a=n.get(e);if(this.hasOwnProperty(a)){r=this[a];delete this[a]}else if(i.hasOwnProperty(a)&&typeof this[a]==="number"&&this[a]==r){return}else if(a==null){const n=s(this);const i=n==null?void 0:n.l;if(i&&!(i&8)&&i&128&&r!==l){const s=n.t;const i=(o=t.G)==null?void 0:o[e];i==null?void 0:i.forEach((t=>{if(s[t]!=null){s[t].call(s,r,l,e)}}))}return}this[a]=r===null&&typeof this[a]==="boolean"?false:r}))};e.observedAttributes=Array.from(new Set([...Object.keys((r=t.G)!=null?r:{}),...o.filter((([e,t])=>t[0]&15)).map((([e,l])=>{var r;const s=l[1]||e;n.set(s,e);if(l[0]&512){(r=t.W)==null?void 0:r.push([e,s])}return s}))]))}}return e};var Xe=async(e,t,n,l)=>{let r;if((t.l&32)===0){t.l|=32;const l=n.$;if(l){const e=u(n);if(e&&"then"in e){const t=Y();r=await e;t()}else{r=e}if(!r){throw new Error(`Constructor for "${n.m}#${t.K}" was not found`)}if(!r.isProxied){{n.G=r.watchers}Ve(r,n,2);r.isProxied=true}const l=J("createInstance",n.m);{t.l|=8}try{new r(t)}catch(e){f(e)}{t.l&=~8}{t.l|=128}l();_e(t.t)}else{r=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.l|=128))}if(r&&r.style){let e;if(typeof r.style==="string"){e=r.style}const t=he(n);if(!v.has(t)){const l=J("registerStyles",n.m);ue(t,e,!!(n.l&1));l()}}}const s=t.I;const i=()=>Pe(t,true);if(s&&s["s-rc"]){s["s-rc"].push(i)}else{i()}};var _e=e=>{{Qe(e,"connectedCallback")}};var Je=e=>{if((j.l&1)===0){const t=s(e);const n=t.i;const l=J("connectedCallback",n.m);if(!(t.l&1)){t.l|=1;let l;{l=e.getAttribute($);if(l){if(n.l&1){const t=ve(e.shadowRoot,n);e.classList.remove(t+"-h",t+"-s")}le(e,n.m,l,t)}}{let n=e;while(n=n.parentNode||n.host){if(n.nodeType===1&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Fe(t,t.I=n);break}}}if(n.q){Object.entries(n.q).map((([t,[n]])=>{if(n&31&&e.hasOwnProperty(t)){const n=e[t];delete e[t];e[t]=n}}))}{Xe(e,t,n)}}else{tt(e,t,n.V);if(t==null?void 0:t.t){_e(t.t)}else if(t==null?void 0:t.h){t.h.then((()=>_e(t.t)))}}l()}};var Ye=e=>{{Qe(e,"disconnectedCallback")}};var Ze=async e=>{if((j.l&1)===0){const t=s(e);{if(t.X){t.X.map((e=>e()));t.X=void 0}}if(t==null?void 0:t.t){Ye(t.t)}else if(t==null?void 0:t.h){t.h.then((()=>Ye(t.t)))}}};var et=(e,t={})=>{var n;const l=J();const r=[];const i=t.exclude||[];const a=C.customElements;const f=x.head;const c=f.querySelector("meta[charset]");const u=x.createElement("style");const v=[];let d;let h=true;Object.assign(j,t);j.S=new URL(t.resourcesUrl||"./",x.baseURI).href;{j.l|=2}let p=false;e.map((e=>{e[1].map((t=>{var n;const l={l:t[0],m:t[1],q:t[2],V:t[3]};if(l.l&4){p=true}{l.q=t[2]}{l.V=t[3]}{l.W=[]}{l.G=(n=t[4])!=null?n:{}}const f=l.m;const c=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;o(e,l);if(l.l&1){{if(!e.shadowRoot){{e.attachShadow({mode:"open"})}}else{if(e.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${l.m}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}}connectedCallback(){const e=s(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;tt(this,e,l.V)}if(d){clearTimeout(d);d=null}if(h){v.push(this)}else{j.jmp((()=>Je(this)))}}disconnectedCallback(){j.jmp((()=>Ze(this)))}componentOnReady(){return s(this).h}};if(l.l&64){c.formAssociated=true}l.$=e[0];if(!i.includes(f)&&!a.get(f)){r.push(f);a.define(f,Ve(c,l,1))}}))}));if(r.length>0){if(p){u.textContent+=g}{u.textContent+=r.sort()+w}if(u.innerHTML.length){u.setAttribute("data-styles","");const e=(n=j.U)!=null?n:Q(x);if(e!=null){u.setAttribute("nonce",e)}f.insertBefore(u,c?c.nextSibling:f.firstChild)}}h=false;if(v.length){v.map((e=>e.connectedCallback()))}else{{j.jmp((()=>d=setTimeout(Be,30)))}}l()};var tt=(e,t,n,l)=>{if(n){n.map((([n,l,r])=>{const s=lt(e,n);const i=nt(t,r);const o=rt(n);j.ael(s,l,i,o);(t.X=t.X||[]).push((()=>j.rel(s,l,i,o)))}))}};var nt=(e,t)=>n=>{var l;try{{if(e.l&256){(l=e.t)==null?void 0:l[t](n)}else{(e.B=e.B||[]).push([t,n])}}}catch(e){f(e)}};var lt=(e,t)=>{if(t&8)return C;return e};var rt=e=>D?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;var st=e=>j.U=e;export{te as H,et as b,ae as c,oe as g,Z as h,E as p,i as r,st as s};
3
- //# sourceMappingURL=p-af3ac476.js.map
1
+ const e="cura";const t={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:true,cmpDidRender:false,cmpDidUnload:false,cmpDidUpdate:false,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:false,cmpWillUpdate:false,connectedCallback:true,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:true,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:false,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:true,hotModuleReplacement:false,hydrateClientSide:true,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:false,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:true,slot:true,slotChildNodesFix:false,slotRelocation:false,state:true,style:true,svg:true,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:false,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};var n=Object.defineProperty;var l=(e,t)=>{for(var l in t)n(e,l,{get:t[l],enumerable:true})};var r=new WeakMap;var s=e=>r.get(e);var i=(e,t)=>r.set(t.t=e,t);var o=(e,t)=>{const n={l:0,$hostElement$:e,i:t,o:new Map};{n.u=new Promise((e=>n.v=e))}{n.h=new Promise((e=>n.p=e));e["s-p"]=[];e["s-rc"]=[]}return r.set(e,n)};var a=(e,t)=>t in e;var f=(e,t)=>(0,console.error)(e,t);var c=new Map;var u=(e,t,n)=>{const l=e.m.replace(/-/g,"_");const r=e.$;if(!r){return void 0}const s=c.get(r);if(s){return s[l]}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${r}.entry.js${""}`).then((e=>{{c.set(r,e)}return e[l]}),f)};var v=new Map;var d="r";var h="o";var p="s";var m="t";var $="s-id";var y="sty-id";var b="c-id";var w="{visibility:hidden}.hydrated{visibility:inherit}";var g="slot-fb{display:contents}slot-fb[hidden]{display:none}";var S="http://www.w3.org/1999/xlink";var k=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"];var C=typeof window!=="undefined"?window:{};var x=C.document||{head:{}};var j={l:0,S:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)};var O=t.shadowDom;var D=(()=>{let e=false;try{x.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=true}}))}catch(e){}return e})();var E=e=>Promise.resolve(e);var L=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var T=false;var M=[];var R=[];var A=(e,t)=>n=>{e.push(n);if(!T){T=true;if(t&&j.l&4){N(P)}else{j.raf(P)}}};var F=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){f(e)}}e.length=0};var P=()=>{F(M);{F(R);if(T=M.length>0){j.raf(P)}}};var N=e=>E().then(e);var U=A(R,true);var W={};var H="http://www.w3.org/2000/svg";var I="http://www.w3.org/1999/xhtml";var z=e=>e!=null;var B=e=>{e=typeof e;return e==="object"||e==="function"};function Q(e){var t,n,l;return(l=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?l:void 0}var q={};l(q,{err:()=>K,map:()=>V,ok:()=>G,unwrap:()=>X,unwrapErr:()=>_});var G=e=>({isOk:true,isErr:false,value:e});var K=e=>({isOk:false,isErr:true,value:e});function V(e,t){if(e.isOk){const n=t(e.value);if(n instanceof Promise){return n.then((e=>G(e)))}else{return G(n)}}if(e.isErr){const t=e.value;return K(t)}throw"should never get here"}var X=e=>{if(e.isOk){return e.value}else{throw e.value}};var _=e=>{if(e.isErr){return e.value}else{throw e.value}};var J=(e,t="")=>{{return()=>{}}};var Y=(e,t)=>{{return()=>{}}};var Z=(e,t,...n)=>{let l=null;let r=null;let s=false;let i=false;const o=[];const a=t=>{for(let n=0;n<t.length;n++){l=t[n];if(Array.isArray(l)){a(l)}else if(l!=null&&typeof l!=="boolean"){if(s=typeof e!=="function"&&!B(l)){l=String(l)}if(s&&i){o[o.length-1].k+=l}else{o.push(s?ee(null,l):l)}i=s}}};a(n);if(t){if(t.key){r=t.key}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}const f=ee(e,null);f.C=t;if(o.length>0){f.j=o}{f.O=r}return f};var ee=(e,t)=>{const n={l:0,D:e,k:t,L:null,j:null};{n.C=null}{n.O=null}return n};var te={};var ne=e=>e&&e.D===te;var le=(e,t,n,l)=>{const r=J("hydrateClient",t);const s=e.shadowRoot;const i=[];const o=[];const a=s?[]:null;const f=l.T=ee(t,null);if(!j.M){se(x.body,j.M=new Map)}e[$]=n;e.removeAttribute($);re(f,i,o,a,e,e,n);i.map((e=>{const n=e.R+"."+e.A;const l=j.M.get(n);const r=e.L;if(l&&O&&l["s-en"]===""){l.parentNode.insertBefore(r,l.nextSibling)}if(!s){r["s-hn"]=t;if(l){r["s-ol"]=l;r["s-ol"]["s-nr"]=r}}j.M.delete(n)}));if(s){a.map((e=>{if(e){s.appendChild(e)}}))}r()};var re=(e,t,n,l,r,s,i)=>{let o;let a;let f;let c;if(s.nodeType===1){o=s.getAttribute(b);if(o){a=o.split(".");if(a[0]===i||a[0]==="0"){f={l:0,R:a[0],A:a[1],F:a[2],P:a[3],D:s.tagName.toLowerCase(),L:s,C:null,j:null,O:null,N:null,k:null};t.push(f);s.removeAttribute(b);if(!e.j){e.j=[]}e.j[f.P]=f;e=f;if(l&&f.F==="0"){l[f.P]=f.L}}}if(s.shadowRoot){for(c=s.shadowRoot.childNodes.length-1;c>=0;c--){re(e,t,n,l,r,s.shadowRoot.childNodes[c],i)}}for(c=s.childNodes.length-1;c>=0;c--){re(e,t,n,l,r,s.childNodes[c],i)}}else if(s.nodeType===8){a=s.nodeValue.split(".");if(a[1]===i||a[1]==="0"){o=a[0];f={l:0,R:a[1],A:a[2],F:a[3],P:a[4],L:s,C:null,j:null,O:null,N:null,D:null,k:null};if(o===m){f.L=s.nextSibling;if(f.L&&f.L.nodeType===3){f.k=f.L.textContent;t.push(f);s.remove();if(!e.j){e.j=[]}e.j[f.P]=f;if(l&&f.F==="0"){l[f.P]=f.L}}}else if(f.R===i){if(o===p){f.D="slot";if(a[5]){s["s-sn"]=f.N=a[5]}else{s["s-sn"]=""}s["s-sr"]=true;if(l){f.L=x.createElement(f.D);if(f.N){f.L.setAttribute("name",f.N)}s.parentNode.insertBefore(f.L,s);s.remove();if(f.F==="0"){l[f.P]=f.L}}n.push(f);if(!e.j){e.j=[]}e.j[f.P]=f}else if(o===d){if(l){s.remove()}}}}}else if(e&&e.D==="style"){const t=ee(null,s.textContent);t.L=s;t.P="0";e.j=[t]}};var se=(e,t)=>{if(e.nodeType===1){let n=0;if(e.shadowRoot){for(;n<e.shadowRoot.childNodes.length;n++){se(e.shadowRoot.childNodes[n],t)}}for(n=0;n<e.childNodes.length;n++){se(e.childNodes[n],t)}}else if(e.nodeType===8){const n=e.nodeValue.split(".");if(n[0]===h){t.set(n[1]+"."+n[2],e);e.nodeValue="";e["s-en"]=n[3]}}};var ie=(e,t)=>{if(e!=null&&!B(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var oe=e=>s(e).$hostElement$;var ae=(e,t,n)=>{const l=oe(e);return{emit:e=>fe(l,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}};var fe=(e,t,n)=>{const l=j.ce(t,n);e.dispatchEvent(l);return l};var ce=new WeakMap;var ue=(e,t,n)=>{let l=v.get(e);if(L&&n){l=l||new CSSStyleSheet;if(typeof l==="string"){l=t}else{l.replaceSync(t)}}else{l=t}v.set(e,l)};var ve=(e,t,n)=>{var l;const r=he(t);const s=v.get(r);e=e.nodeType===11?e:x;if(s){if(typeof s==="string"){e=e.head||e;let n=ce.get(e);let i;if(!n){ce.set(e,n=new Set)}if(!n.has(r)){if(e.host&&(i=e.querySelector(`[${y}="${r}"]`))){i.innerHTML=s}else{i=x.createElement("style");i.innerHTML=s;const n=(l=j.U)!=null?l:Q(x);if(n!=null){i.setAttribute("nonce",n)}if(!(t.l&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(i,n)}else if("host"in e){e.prepend(i)}else{e.append(i)}}if(t.l&1&&e.nodeName!=="HEAD"){e.insertBefore(i,null)}}if(t.l&4){i.innerHTML+=g}if(n){n.add(r)}}}else if(!e.adoptedStyleSheets.includes(s)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]}}return r};var de=e=>{const t=e.i;const n=e.$hostElement$;const l=t.l;const r=J("attachStyles",t.m);const s=ve(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(l&10&&l&2){n["s-sc"]=s;n.classList.add(s+"-h")}r()};var he=(e,t)=>"sc-"+e.m;var pe=(e,t,n,l,r,s)=>{if(n!==l){let i=a(e,t);let o=t.toLowerCase();if(t==="class"){const t=e.classList;const r=$e(n);const s=$e(l);t.remove(...r.filter((e=>e&&!s.includes(e))));t.add(...s.filter((e=>e&&!r.includes(e))))}else if(t==="style"){{for(const t in n){if(!l||l[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in l){if(!n||l[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,l[t])}else{e.style[t]=l[t]}}}}else if(t==="key");else if(t==="ref"){if(l){l(e)}}else if(!i&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(a(C,o)){t=o.slice(2)}else{t=o[2]+t.slice(3)}if(n||l){const r=t.endsWith(ye);t=t.replace(be,"");if(n){j.rel(e,t,n,r)}if(l){j.ael(e,t,l,r)}}}else{const a=B(l);if((i||a&&l!==null)&&!r){try{if(!e.tagName.includes("-")){const r=l==null?"":l;if(t==="list"){i=false}else if(n==null||e[t]!=r){if(typeof e.__lookupSetter__(t)==="function"){e[t]=r}else{e.setAttribute(t,r)}}}else{e[t]=l}}catch(e){}}let f=false;{if(o!==(o=o.replace(/^xlink\:?/,""))){t=o;f=true}}if(l==null||l===false){if(l!==false||e.getAttribute(t)===""){if(f){e.removeAttributeNS(S,t)}else{e.removeAttribute(t)}}}else if((!i||s&4||r)&&!a){l=l===true?"":l;if(f){e.setAttributeNS(S,t,l)}else{e.setAttribute(t,l)}}}}};var me=/\s/;var $e=e=>!e?[]:e.split(me);var ye="Capture";var be=new RegExp(ye+"$");var we=(e,t,n)=>{const l=t.L.nodeType===11&&t.L.host?t.L.host:t.L;const r=e&&e.C||W;const s=t.C||W;{for(const e of ge(Object.keys(r))){if(!(e in s)){pe(l,e,r[e],void 0,n,t.l)}}}for(const e of ge(Object.keys(s))){pe(l,e,r[e],s[e],n,t.l)}};function ge(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var Se;var ke;var Ce=false;var xe=false;var je=(e,n,l,r)=>{const s=n.j[l];let i=0;let o;let a;if(s.k!==null){o=s.L=x.createTextNode(s.k)}else{if(!xe){xe=s.D==="svg"}o=s.L=x.createElementNS(xe?H:I,!Ce&&t.slotRelocation&&s.l&2?"slot-fb":s.D);if(xe&&s.D==="foreignObject"){xe=false}{we(null,s,xe)}const n=o.getRootNode();const l=!n.querySelector("body");if(!l&&t.scoped&&z(Se)&&o["s-si"]!==Se){o.classList.add(o["s-si"]=Se)}if(s.j){for(i=0;i<s.j.length;++i){a=je(e,s,i);if(a){o.appendChild(a)}}}{if(s.D==="svg"){xe=false}else if(o.tagName==="foreignObject"){xe=true}}}o["s-hn"]=ke;return o};var Oe=(e,t,n,l,r,s)=>{let i=e;let o;if(i.shadowRoot&&i.tagName===ke){i=i.shadowRoot}for(;r<=s;++r){if(l[r]){o=je(null,n,r);if(o){l[r].L=o;Re(i,o,t)}}}};var De=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.L;Me(t);if(e){e.remove()}}}};var Ee=(e,t,n,l,r=false)=>{let s=0;let i=0;let o=0;let a=0;let f=t.length-1;let c=t[0];let u=t[f];let v=l.length-1;let d=l[0];let h=l[v];let p;let m;while(s<=f&&i<=v){if(c==null){c=t[++s]}else if(u==null){u=t[--f]}else if(d==null){d=l[++i]}else if(h==null){h=l[--v]}else if(Le(c,d,r)){Te(c,d,r);c=t[++s];d=l[++i]}else if(Le(u,h,r)){Te(u,h,r);u=t[--f];h=l[--v]}else if(Le(c,h,r)){Te(c,h,r);Re(e,c.L,u.L.nextSibling);c=t[++s];h=l[--v]}else if(Le(u,d,r)){Te(u,d,r);Re(e,u.L,c.L);u=t[--f];d=l[++i]}else{o=-1;{for(a=s;a<=f;++a){if(t[a]&&t[a].O!==null&&t[a].O===d.O){o=a;break}}}if(o>=0){m=t[o];if(m.D!==d.D){p=je(t&&t[i],n,o)}else{Te(m,d,r);t[o]=void 0;p=m.L}d=l[++i]}else{p=je(t&&t[i],n,i);d=l[++i]}if(p){{Re(c.L.parentNode,p,c.L)}}}}if(s>f){Oe(e,l[v+1]==null?null:l[v+1].L,n,l,i,v)}else if(i>v){De(t,s,f)}};var Le=(e,t,n=false)=>{if(e.D===t.D){if(!n){return e.O===t.O}return true}return false};var Te=(e,n,l=false)=>{const r=n.L=e.L;const s=e.j;const i=n.j;const o=n.D;const a=n.k;if(a===null){{xe=o==="svg"?true:o==="foreignObject"?false:xe}{if(o==="slot"&&!Ce);else{we(e,n,xe)}}if(s!==null&&i!==null){Ee(r,s,n,i,l)}else if(i!==null){if(e.k!==null){r.textContent=""}Oe(r,null,n,i,0,i.length-1)}else if(!l&&t.updatable&&s!==null){De(s,0,s.length-1)}if(xe&&o==="svg"){xe=false}}else if(e.k!==a){r.data=a}};var Me=e=>{{e.C&&e.C.ref&&e.C.ref(null);e.j&&e.j.map(Me)}};var Re=(e,t,n)=>{const l=e==null?void 0:e.insertBefore(t,n);return l};var Ae=(e,t,n=false)=>{const l=e.$hostElement$;const r=e.i;const s=e.T||ee(null,null);const i=ne(t)?t:Z(null,null,t);ke=l.tagName;if(r.W){i.C=i.C||{};r.W.map((([e,t])=>i.C[t]=l[e]))}if(n&&i.C){for(const e of Object.keys(i.C)){if(l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){i.C[e]=l[e]}}}i.D=null;i.l|=4;e.T=i;i.L=s.L=l.shadowRoot||l;{Se=l["s-sc"]}Ce=(r.l&1)!==0;Te(s,i,n)};var Fe=(e,t)=>{if(t&&!e.H&&t["s-p"]){t["s-p"].push(new Promise((t=>e.H=t)))}};var Pe=(e,t)=>{{e.l|=16}if(e.l&4){e.l|=512;return}Fe(e,e.I);const n=()=>Ne(e,t);return U(n)};var Ne=(e,t)=>{const n=e.$hostElement$;const l=J("scheduleUpdate",e.i.m);const r=e.t;if(!r){throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let s;if(t){{e.l|=256;if(e.B){e.B.map((([e,t])=>Qe(r,e,t)));e.B=void 0}}{s=Qe(r,"componentWillLoad")}}l();return Ue(s,(()=>He(e,r,t)))};var Ue=(e,t)=>We(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var We=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var He=async(e,t,n)=>{var l;const r=e.$hostElement$;const s=J("update",e.i.m);const i=r["s-rc"];if(n){de(e)}const o=J("render",e.i.m);{Ie(e,t,r,n)}if(i){i.map((e=>e()));r["s-rc"]=void 0}o();s();{const t=(l=r["s-p"])!=null?l:[];const n=()=>ze(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.l|=4;t.length=0}}};var Ie=(e,t,n,l)=>{try{t=t.render();{e.l&=~16}{e.l|=2}{{{Ae(e,t,l)}}}}catch(t){f(t,e.$hostElement$)}return null};var ze=e=>{const t=e.i.m;const n=e.$hostElement$;const l=J("postUpdate",t);const r=e.t;const s=e.I;if(!(e.l&64)){e.l|=64;{qe(n)}{Qe(r,"componentDidLoad")}l();{e.p(n);if(!s){Be()}}}else{l()}{e.v(n)}{if(e.H){e.H();e.H=void 0}if(e.l&512){N((()=>Pe(e,false)))}e.l&=~(4|512)}};var Be=t=>{{qe(x.documentElement)}N((()=>fe(C,"appload",{detail:{namespace:e}})))};var Qe=(e,t,n)=>{if(e&&e[t]){try{return e[t](n)}catch(e){f(e)}}return void 0};var qe=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var Ge=(e,t)=>s(e).o.get(t);var Ke=(e,t,n,l)=>{const r=s(e);if(!r){throw new Error(`Couldn't find host element for "${l.m}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`)}const i=r.$hostElement$;const o=r.o.get(t);const a=r.l;const c=r.t;n=ie(n,l.q[t][0]);const u=Number.isNaN(o)&&Number.isNaN(n);const v=n!==o&&!u;if((!(a&8)||o===void 0)&&v){r.o.set(t,n);if(c){if(l.G&&a&128){const e=l.G[t];if(e){e.map((e=>{try{c[e](n,o,t)}catch(e){f(e,i)}}))}}if((a&(2|16))===2){Pe(r,false)}}}};var Ve=(e,t,n)=>{var l,r;const i=e.prototype;if(t.l&64&&n&1){k.forEach((e=>Object.defineProperty(i,e,{value(...t){const n=s(this);const l=n.t;if(!l){n.h.then((n=>{const l=n[e];typeof l==="function"&&l.call(n,...t)}))}else{const n=l[e];typeof n==="function"&&n.call(l,...t)}}})))}if(t.q||(t.G||e.watchers)){if(e.watchers&&!t.G){t.G=e.watchers}const o=Object.entries((l=t.q)!=null?l:{});o.map((([e,[l]])=>{if(l&31||n&2&&l&32){Object.defineProperty(i,e,{get(){return Ge(this,e)},set(n){Ke(this,e,n,t)},configurable:true,enumerable:true})}else if(n&1&&l&64){Object.defineProperty(i,e,{value(...t){var n;const l=s(this);return(n=l==null?void 0:l.u)==null?void 0:n.then((()=>{var n;return(n=l.t)==null?void 0:n[e](...t)}))}})}}));if(n&1){const n=new Map;i.attributeChangedCallback=function(e,l,r){j.jmp((()=>{var o;const a=n.get(e);if(this.hasOwnProperty(a)){r=this[a];delete this[a]}else if(i.hasOwnProperty(a)&&typeof this[a]==="number"&&this[a]==r){return}else if(a==null){const n=s(this);const i=n==null?void 0:n.l;if(i&&!(i&8)&&i&128&&r!==l){const s=n.t;const i=(o=t.G)==null?void 0:o[e];i==null?void 0:i.forEach((t=>{if(s[t]!=null){s[t].call(s,r,l,e)}}))}return}this[a]=r===null&&typeof this[a]==="boolean"?false:r}))};e.observedAttributes=Array.from(new Set([...Object.keys((r=t.G)!=null?r:{}),...o.filter((([e,t])=>t[0]&15)).map((([e,l])=>{var r;const s=l[1]||e;n.set(s,e);if(l[0]&512){(r=t.W)==null?void 0:r.push([e,s])}return s}))]))}}return e};var Xe=async(e,t,n,l)=>{let r;if((t.l&32)===0){t.l|=32;const l=n.$;if(l){const e=u(n);if(e&&"then"in e){const t=Y();r=await e;t()}else{r=e}if(!r){throw new Error(`Constructor for "${n.m}#${t.K}" was not found`)}if(!r.isProxied){{n.G=r.watchers}Ve(r,n,2);r.isProxied=true}const l=J("createInstance",n.m);{t.l|=8}try{new r(t)}catch(e){f(e)}{t.l&=~8}{t.l|=128}l();_e(t.t)}else{r=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.l|=128))}if(r&&r.style){let e;if(typeof r.style==="string"){e=r.style}const t=he(n);if(!v.has(t)){const l=J("registerStyles",n.m);ue(t,e,!!(n.l&1));l()}}}const s=t.I;const i=()=>Pe(t,true);if(s&&s["s-rc"]){s["s-rc"].push(i)}else{i()}};var _e=e=>{{Qe(e,"connectedCallback")}};var Je=e=>{if((j.l&1)===0){const t=s(e);const n=t.i;const l=J("connectedCallback",n.m);if(!(t.l&1)){t.l|=1;let l;{l=e.getAttribute($);if(l){if(n.l&1){const t=ve(e.shadowRoot,n);e.classList.remove(t+"-h",t+"-s")}le(e,n.m,l,t)}}{let n=e;while(n=n.parentNode||n.host){if(n.nodeType===1&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Fe(t,t.I=n);break}}}if(n.q){Object.entries(n.q).map((([t,[n]])=>{if(n&31&&e.hasOwnProperty(t)){const n=e[t];delete e[t];e[t]=n}}))}{Xe(e,t,n)}}else{tt(e,t,n.V);if(t==null?void 0:t.t){_e(t.t)}else if(t==null?void 0:t.h){t.h.then((()=>_e(t.t)))}}l()}};var Ye=e=>{{Qe(e,"disconnectedCallback")}};var Ze=async e=>{if((j.l&1)===0){const t=s(e);{if(t.X){t.X.map((e=>e()));t.X=void 0}}if(t==null?void 0:t.t){Ye(t.t)}else if(t==null?void 0:t.h){t.h.then((()=>Ye(t.t)))}}};var et=(e,t={})=>{var n;const l=J();const r=[];const i=t.exclude||[];const a=C.customElements;const f=x.head;const c=f.querySelector("meta[charset]");const u=x.createElement("style");const v=[];let d;let h=true;Object.assign(j,t);j.S=new URL(t.resourcesUrl||"./",x.baseURI).href;{j.l|=2}let p=false;e.map((e=>{e[1].map((t=>{var n;const l={l:t[0],m:t[1],q:t[2],V:t[3]};if(l.l&4){p=true}{l.q=t[2]}{l.V=t[3]}{l.W=[]}{l.G=(n=t[4])!=null?n:{}}const f=l.m;const c=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;o(e,l);if(l.l&1){{if(!e.shadowRoot){{e.attachShadow({mode:"open"})}}else{if(e.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${l.m}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}}connectedCallback(){const e=s(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;tt(this,e,l.V)}if(d){clearTimeout(d);d=null}if(h){v.push(this)}else{j.jmp((()=>Je(this)))}}disconnectedCallback(){j.jmp((()=>Ze(this)))}componentOnReady(){return s(this).h}};if(l.l&64){c.formAssociated=true}l.$=e[0];if(!i.includes(f)&&!a.get(f)){r.push(f);a.define(f,Ve(c,l,1))}}))}));if(r.length>0){if(p){u.textContent+=g}{u.textContent+=r.sort()+w}if(u.innerHTML.length){u.setAttribute("data-styles","");const e=(n=j.U)!=null?n:Q(x);if(e!=null){u.setAttribute("nonce",e)}f.insertBefore(u,c?c.nextSibling:f.firstChild)}}h=false;if(v.length){v.map((e=>e.connectedCallback()))}else{{j.jmp((()=>d=setTimeout(Be,30)))}}l()};var tt=(e,t,n,l)=>{if(n){n.map((([n,l,r])=>{const s=lt(e,n);const i=nt(t,r);const o=rt(n);j.ael(s,l,i,o);(t.X=t.X||[]).push((()=>j.rel(s,l,i,o)))}))}};var nt=(e,t)=>n=>{var l;try{{if(e.l&256){(l=e.t)==null?void 0:l[t](n)}else{(e.B=e.B||[]).push([t,n])}}}catch(e){f(e)}};var lt=(e,t)=>{if(t&8)return C;return e};var rt=e=>D?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;var st=e=>j.U=e;export{te as H,et as b,ae as c,oe as g,Z as h,E as p,i as r,st as s};
3
+ //# sourceMappingURL=p-4ee8efca.js.map