@rededor/cura 1.1.0 → 1.2.0-alpha.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 (238) hide show
  1. package/dist/assets/assets/cura-assets.zip +0 -0
  2. package/dist/cjs/app-globals-4d07f363.js.map +1 -1
  3. package/dist/cjs/cura-accordion_12.cjs.entry.js +21 -15
  4. package/dist/cjs/cura-accordion_12.cjs.entry.js.map +1 -1
  5. package/dist/cjs/cura-alert.cjs.entry.js +2 -2
  6. package/dist/cjs/cura-avatar.cjs.entry.js +2 -2
  7. package/dist/cjs/cura-badge-distance.cjs.entry.js +1 -1
  8. package/dist/cjs/cura-badge-number.cjs.entry.js +29 -0
  9. package/dist/cjs/cura-badge-number.cjs.entry.js.map +1 -0
  10. package/dist/cjs/cura-button-outline.cjs.entry.js +2 -2
  11. package/dist/cjs/cura-button-select.cjs.entry.js +69 -58
  12. package/dist/cjs/cura-button-select.cjs.entry.js.map +1 -1
  13. package/dist/cjs/cura-button-transparent.cjs.entry.js +2 -2
  14. package/dist/cjs/cura-calendar.cjs.entry.js +120 -234
  15. package/dist/cjs/cura-calendar.cjs.entry.js.map +1 -1
  16. package/dist/cjs/cura-card.cjs.entry.js +2 -2
  17. package/dist/cjs/cura-checkbox.cjs.entry.js +2 -2
  18. package/dist/cjs/cura-display.cjs.entry.js +2 -2
  19. package/dist/cjs/cura-dropdown-search-option-title.cjs.entry.js +2 -2
  20. package/dist/cjs/cura-dropdown-search-option.cjs.entry.js +3 -3
  21. package/dist/cjs/cura-dropdown-search.cjs.entry.js +30 -4
  22. package/dist/cjs/cura-dropdown-search.cjs.entry.js.map +1 -1
  23. package/dist/cjs/cura-icons-view.cjs.entry.js +4 -4
  24. package/dist/cjs/cura-input-date.cjs.entry.js +188 -0
  25. package/dist/cjs/cura-input-date.cjs.entry.js.map +1 -0
  26. package/dist/cjs/cura-loader-bar.cjs.entry.js +2 -2
  27. package/dist/cjs/cura-radio.cjs.entry.js +2 -2
  28. package/dist/cjs/cura-switch.cjs.entry.js +2 -2
  29. package/dist/cjs/cura-toast.cjs.entry.js +2 -2
  30. package/dist/cjs/cura.cjs.js +2 -2
  31. package/dist/cjs/index-6dc29195.js +126 -0
  32. package/dist/cjs/index-6dc29195.js.map +1 -0
  33. package/dist/cjs/{index-98e7ba54.js → index-e6d728ec.js} +70 -3
  34. package/dist/{esm/index-1ad98520.js.map → cjs/index-e6d728ec.js.map} +1 -1
  35. package/dist/cjs/loader.cjs.js +2 -2
  36. package/dist/collection/collection-manifest.json +2 -0
  37. package/dist/collection/components/badges/cura-badge-number/cura-badge-number.css +30 -0
  38. package/dist/collection/components/badges/cura-badge-number/cura-badge-number.js +66 -0
  39. package/dist/collection/components/badges/cura-badge-number/cura-badge-number.js.map +1 -0
  40. package/dist/collection/components/badges/cura-badge-number/cura-badge-number.stories.js +56 -0
  41. package/dist/collection/components/badges/cura-badge-number/cura-badge-number.stories.js.map +1 -0
  42. package/dist/collection/components/buttons/cura-button/cura-button.js +1 -1
  43. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +1 -1
  44. package/dist/collection/components/buttons/cura-button-select/cura-button-select.css +49 -21
  45. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js +110 -113
  46. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js.map +1 -1
  47. package/dist/collection/components/buttons/cura-button-select/cura-button-select.stories.js +133 -0
  48. package/dist/collection/components/buttons/cura-button-select/cura-button-select.stories.js.map +1 -0
  49. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +1 -1
  50. package/dist/collection/components/cura-alert/cura-alert.js +1 -1
  51. package/dist/collection/components/cura-avatar/cura-avatar.js +1 -1
  52. package/dist/collection/components/cura-calendar/cura-calendar.css +2 -0
  53. package/dist/collection/components/cura-calendar/cura-calendar.js +79 -47
  54. package/dist/collection/components/cura-calendar/cura-calendar.js.map +1 -1
  55. package/dist/collection/components/cura-card/cura-card.js +1 -1
  56. package/dist/collection/components/cura-icon/cura-icon.js +1 -1
  57. package/dist/collection/components/cura-icons-view/cura-icons-view.js +3 -3
  58. package/dist/collection/components/cura-page-template/cura-page-template.js +1 -1
  59. package/dist/collection/components/cura-toast/cura-toast.js +1 -1
  60. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +1 -1
  61. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js +2 -2
  62. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option-title/cura-dropdown-search-option-title.js +1 -1
  63. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.css +1 -1
  64. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js +28 -2
  65. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js.map +1 -1
  66. package/dist/collection/components/forms/cura-input-date/cura-input-date.css +79 -0
  67. package/dist/collection/components/forms/cura-input-date/cura-input-date.js +424 -0
  68. package/dist/collection/components/forms/cura-input-date/cura-input-date.js.map +1 -0
  69. package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js +138 -0
  70. package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js.map +1 -0
  71. package/dist/collection/components/forms/cura-input-text/cura-input-text.css +5 -2
  72. package/dist/collection/components/forms/cura-input-text/cura-input-text.js +41 -2
  73. package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +1 -1
  74. package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js +73 -21
  75. package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js.map +1 -1
  76. package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js +3 -0
  77. package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js.map +1 -1
  78. package/dist/collection/components/forms/cura-label/cura-label.js +1 -1
  79. package/dist/collection/components/forms/cura-radio/cura-radio.js +1 -1
  80. package/dist/collection/components/forms/cura-select/cura-select.css +5 -2
  81. package/dist/collection/components/forms/cura-select/cura-select.js +3 -3
  82. package/dist/collection/components/forms/cura-select-options/cura-select-option.js +1 -1
  83. package/dist/collection/components/forms/cura-switch/cura-switch.js +1 -1
  84. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +1 -1
  85. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +1 -1
  86. package/dist/collection/components/text/cura-display/cura-display.js +1 -1
  87. package/dist/collection/components/text/cura-heading/cura-heading.js +1 -1
  88. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +1 -1
  89. package/dist/components/cura-alert.js +1 -1
  90. package/dist/components/cura-avatar.js +1 -1
  91. package/dist/components/cura-badge-number.d.ts +11 -0
  92. package/dist/components/cura-badge-number.js +8 -0
  93. package/dist/components/cura-badge-number.js.map +1 -0
  94. package/dist/components/cura-badge-number2.js +49 -0
  95. package/dist/components/cura-badge-number2.js.map +1 -0
  96. package/dist/components/cura-button-outline.js +1 -1
  97. package/dist/components/cura-button-select.js +81 -65
  98. package/dist/components/cura-button-select.js.map +1 -1
  99. package/dist/components/cura-button-transparent2.js +1 -1
  100. package/dist/components/cura-button.js +1 -1
  101. package/dist/components/cura-calendar.js +1 -4073
  102. package/dist/components/cura-calendar.js.map +1 -1
  103. package/dist/components/cura-calendar2.js +4082 -0
  104. package/dist/components/cura-calendar2.js.map +1 -0
  105. package/dist/components/cura-card.js +1 -1
  106. package/dist/components/cura-checkbox.js +1 -1
  107. package/dist/components/cura-display.js +1 -1
  108. package/dist/components/cura-dropdown-search-option-title.js +1 -1
  109. package/dist/components/cura-dropdown-search-option.js +2 -2
  110. package/dist/components/cura-dropdown-search.js +29 -3
  111. package/dist/components/cura-dropdown-search.js.map +1 -1
  112. package/dist/components/cura-heading2.js +1 -1
  113. package/dist/components/cura-icon2.js +1 -1
  114. package/dist/components/cura-icons-view.js +3 -3
  115. package/dist/components/cura-input-date.d.ts +11 -0
  116. package/dist/components/cura-input-date.js +270 -0
  117. package/dist/components/cura-input-date.js.map +1 -0
  118. package/dist/components/cura-input-text2.js +10 -2
  119. package/dist/components/cura-input-text2.js.map +1 -1
  120. package/dist/components/cura-label2.js +1 -1
  121. package/dist/components/cura-loader-bar2.js +1 -1
  122. package/dist/components/cura-loader-circle2.js +1 -1
  123. package/dist/components/cura-page-template.js +1 -1
  124. package/dist/components/cura-paragraph2.js +1 -1
  125. package/dist/components/cura-radio.js +1 -1
  126. package/dist/components/cura-select-option2.js +1 -1
  127. package/dist/components/cura-select2.js +4 -4
  128. package/dist/components/cura-select2.js.map +1 -1
  129. package/dist/components/cura-switch.js +1 -1
  130. package/dist/components/cura-toast.js +1 -1
  131. package/dist/components/index.js +4 -0
  132. package/dist/components/index.js.map +1 -1
  133. package/dist/cura/cura.esm.js +1 -1
  134. package/dist/cura/cura.esm.js.map +1 -1
  135. package/dist/cura/p-0b7a7306.js.map +1 -1
  136. package/dist/cura/{p-0d435e42.entry.js → p-116a1cd6.entry.js} +2 -2
  137. package/dist/cura/p-272c784a.js +2 -0
  138. package/dist/cura/p-272c784a.js.map +1 -0
  139. package/dist/cura/{p-4c7a2419.entry.js → p-2d267d23.entry.js} +2 -2
  140. package/dist/cura/{p-9b658260.entry.js → p-33772510.entry.js} +2 -2
  141. package/dist/cura/{p-afd2c148.entry.js → p-41c3d47d.entry.js} +2 -2
  142. package/dist/cura/{p-fbf20e5a.entry.js → p-44e3325a.entry.js} +2 -2
  143. package/dist/cura/p-4e14c01c.entry.js +2 -0
  144. package/dist/cura/p-563ba0cd.entry.js +2 -0
  145. package/dist/cura/p-563ba0cd.entry.js.map +1 -0
  146. package/dist/cura/{p-57b8b468.entry.js → p-8f3db0fe.entry.js} +2 -2
  147. package/dist/cura/{p-a00d2c68.entry.js → p-907b3d12.entry.js} +2 -2
  148. package/dist/cura/p-a2ae6bd2.entry.js +2 -0
  149. package/dist/cura/p-a2ae6bd2.entry.js.map +1 -0
  150. package/dist/cura/{p-6682619b.entry.js → p-b2d5db22.entry.js} +2 -2
  151. package/dist/cura/p-b43b69f3.entry.js +2 -0
  152. package/dist/cura/p-b43b69f3.entry.js.map +1 -0
  153. package/dist/cura/{p-5ac9d510.entry.js → p-be10b681.entry.js} +2 -2
  154. package/dist/cura/p-be10b681.entry.js.map +1 -0
  155. package/dist/cura/{p-a5cf0fd6.entry.js → p-c6508bd7.entry.js} +2 -2
  156. package/dist/cura/{p-2203e829.entry.js → p-dcd2e5bb.entry.js} +2 -2
  157. package/dist/cura/{p-84d8c67d.entry.js → p-e5023e34.entry.js} +2 -2
  158. package/dist/cura/p-e8bc6381.entry.js +2 -0
  159. package/dist/cura/p-e8bc6381.entry.js.map +1 -0
  160. package/dist/cura/p-ed97cf3c.entry.js +2 -0
  161. package/dist/cura/p-ed97cf3c.entry.js.map +1 -0
  162. package/dist/cura/{p-ad8a7e0f.entry.js → p-fcbf4311.entry.js} +2 -2
  163. package/dist/cura/{p-66c5cf5f.entry.js → p-fd083399.entry.js} +2 -2
  164. package/dist/cura/p-fd5ed6b0.js +3 -0
  165. package/dist/cura/p-fd5ed6b0.js.map +1 -0
  166. package/dist/cura/{p-f9433d24.entry.js → p-fdce91a7.entry.js} +2 -2
  167. package/dist/esm/app-globals-6ca7103d.js.map +1 -1
  168. package/dist/esm/cura-accordion_12.entry.js +21 -15
  169. package/dist/esm/cura-accordion_12.entry.js.map +1 -1
  170. package/dist/esm/cura-alert.entry.js +2 -2
  171. package/dist/esm/cura-avatar.entry.js +2 -2
  172. package/dist/esm/cura-badge-distance.entry.js +1 -1
  173. package/dist/esm/cura-badge-number.entry.js +25 -0
  174. package/dist/esm/cura-badge-number.entry.js.map +1 -0
  175. package/dist/esm/cura-button-outline.entry.js +2 -2
  176. package/dist/esm/cura-button-select.entry.js +69 -58
  177. package/dist/esm/cura-button-select.entry.js.map +1 -1
  178. package/dist/esm/cura-button-transparent.entry.js +2 -2
  179. package/dist/esm/cura-calendar.entry.js +51 -165
  180. package/dist/esm/cura-calendar.entry.js.map +1 -1
  181. package/dist/esm/cura-card.entry.js +2 -2
  182. package/dist/esm/cura-checkbox.entry.js +2 -2
  183. package/dist/esm/cura-display.entry.js +2 -2
  184. package/dist/esm/cura-dropdown-search-option-title.entry.js +2 -2
  185. package/dist/esm/cura-dropdown-search-option.entry.js +3 -3
  186. package/dist/esm/cura-dropdown-search.entry.js +30 -4
  187. package/dist/esm/cura-dropdown-search.entry.js.map +1 -1
  188. package/dist/esm/cura-icons-view.entry.js +4 -4
  189. package/dist/esm/cura-input-date.entry.js +184 -0
  190. package/dist/esm/cura-input-date.entry.js.map +1 -0
  191. package/dist/esm/cura-loader-bar.entry.js +2 -2
  192. package/dist/esm/cura-radio.entry.js +2 -2
  193. package/dist/esm/cura-switch.entry.js +2 -2
  194. package/dist/esm/cura-toast.entry.js +2 -2
  195. package/dist/esm/cura.js +3 -3
  196. package/dist/esm/{index-1ad98520.js → index-747aad85.js} +70 -3
  197. package/dist/esm/index-747aad85.js.map +1 -0
  198. package/dist/esm/index-fbee309a.js +120 -0
  199. package/dist/esm/index-fbee309a.js.map +1 -0
  200. package/dist/esm/loader.js +3 -3
  201. package/dist/types/components/badges/cura-badge-number/cura-badge-number.d.ts +8 -0
  202. package/dist/types/components/badges/cura-badge-number/cura-badge-number.stories.d.ts +39 -0
  203. package/dist/types/components/buttons/cura-button-select/cura-button-select.d.ts +12 -34
  204. package/dist/types/components/buttons/cura-button-select/cura-button-select.stories.d.ts +105 -0
  205. package/dist/types/components/cura-calendar/cura-calendar.d.ts +50 -42
  206. package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search.d.ts +2 -0
  207. package/dist/types/components/forms/cura-input-date/cura-input-date.d.ts +92 -0
  208. package/dist/types/components/forms/cura-input-date/cura-input-date.stories.d.ts +125 -0
  209. package/dist/types/components/forms/cura-input-text/cura-input-text.d.ts +6 -0
  210. package/dist/types/components/forms/cura-input-text/cura-input-text.stories.d.ts +15 -0
  211. package/dist/types/components.d.ts +158 -48
  212. package/package.json +2 -2
  213. package/dist/cjs/index-98e7ba54.js.map +0 -1
  214. package/dist/cura/p-312791fb.js +0 -3
  215. package/dist/cura/p-312791fb.js.map +0 -1
  216. package/dist/cura/p-42dfa3a7.entry.js +0 -2
  217. package/dist/cura/p-42dfa3a7.entry.js.map +0 -1
  218. package/dist/cura/p-5ac9d510.entry.js.map +0 -1
  219. package/dist/cura/p-a9cda3b1.entry.js +0 -2
  220. package/dist/cura/p-a9cda3b1.entry.js.map +0 -1
  221. package/dist/cura/p-df5c3a86.entry.js +0 -2
  222. package/dist/cura/p-df5c3a86.entry.js.map +0 -1
  223. package/dist/cura/p-dfc65f66.entry.js +0 -2
  224. /package/dist/cura/{p-0d435e42.entry.js.map → p-116a1cd6.entry.js.map} +0 -0
  225. /package/dist/cura/{p-4c7a2419.entry.js.map → p-2d267d23.entry.js.map} +0 -0
  226. /package/dist/cura/{p-9b658260.entry.js.map → p-33772510.entry.js.map} +0 -0
  227. /package/dist/cura/{p-afd2c148.entry.js.map → p-41c3d47d.entry.js.map} +0 -0
  228. /package/dist/cura/{p-fbf20e5a.entry.js.map → p-44e3325a.entry.js.map} +0 -0
  229. /package/dist/cura/{p-dfc65f66.entry.js.map → p-4e14c01c.entry.js.map} +0 -0
  230. /package/dist/cura/{p-57b8b468.entry.js.map → p-8f3db0fe.entry.js.map} +0 -0
  231. /package/dist/cura/{p-a00d2c68.entry.js.map → p-907b3d12.entry.js.map} +0 -0
  232. /package/dist/cura/{p-6682619b.entry.js.map → p-b2d5db22.entry.js.map} +0 -0
  233. /package/dist/cura/{p-a5cf0fd6.entry.js.map → p-c6508bd7.entry.js.map} +0 -0
  234. /package/dist/cura/{p-2203e829.entry.js.map → p-dcd2e5bb.entry.js.map} +0 -0
  235. /package/dist/cura/{p-84d8c67d.entry.js.map → p-e5023e34.entry.js.map} +0 -0
  236. /package/dist/cura/{p-ad8a7e0f.entry.js.map → p-fcbf4311.entry.js.map} +0 -0
  237. /package/dist/cura/{p-66c5cf5f.entry.js.map → p-fd083399.entry.js.map} +0 -0
  238. /package/dist/cura/{p-f9433d24.entry.js.map → p-fdce91a7.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","async","options","globalScripts","bootstrapLazy","type","size","disabled","isLoading","iconName","iconset","iconPosition","iconOnly","target","color","background","fontColor","textAlign","justify","styles","hovered","label","iconSize","openIcon","closeIcon","iconColor","iconActiveColor","colorMode","opened","activeColor","behavior","contentwidth","mode","status","inputMode","name","placeholder","value","helperText","required","maskPreset","maskRegex","maskAdvanced","maxlength","readOnly","clearIcon","hideErrorIcon","isHovered","isFocused","searchBehavior","isOpen","activeIndex","textInput","selected","active","level","weight","spotColor","marginBlock","lineHeight","period","width","dateFormat","locale","disable","enable","defaultDate","limitRange","disablePassDates","disableFutureDates","collapsed","floating","embedded","currentDate","selectedDates","rangeStart","defaultDates","selectMonth","selectYear","dropdownMaxHeight","overlayVisible","isDropdownOpen","isMobile","inputTextRef","isOnBlurInput","hoveredIndex","position","icon","closeButton","loader","autoCloseDelay","progress","closeable","checked","indeterminate","ontabindex","fontcolor","distance","displayDistance","selectable","backgroundColor","borderColor","borderRadius","border","imageSrc","imageSrcDefault","hasPadding","hasShadow"],"sources":["../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.22.0 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, doc, H, promiseResolve } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? Array.from(doc.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"0HAOA,IAAIA,EAAe,KAUjB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAC3E,GAAIF,IAAe,GAAI,CACrBE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IACjD,CACE,OAAOC,EAAeJ,EAAK,EClB7BH,IAAeQ,MAAKC,MAAOC,UACnBC,IACN,OAAOC,EAAc,kCAA8B,CAAAC,KAAS,MAAAC,KAAA,MAAAC,SAAA,MAAAC,UAAA,mBAAAC,SAAA,kBAAAC,QAAA,MAAAC,aAAA,sBAAAC,SAAA,kBAAAd,KAAA,MAAAe,OAAA,MAAAC,MAAA,IAAAC,WAAA,MAAAC,UAAA,mBAAAC,UAAA,mBAAAC,QAAA,MAAAC,OAAA,KAAAC,QAAA,YAAAL,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KAAA,MAAAS,WAAA,IAAAD,MAAA,IAAAK,OAAA,YAAAb,KAAA,gBAAAQ,MAAA,cAAAC,WAAA,mDAAAT,KAAA,IAAA8F,gBAAA,yBAAAC,YAAA,qBAAAC,aAAA,sBAAAC,OAAA,MAAAlG,KAAA,MAAAmG,SAAA,mBAAAC,gBAAA,0BAAAlC,SAAA,MAAApD,OAAA,YAAAb,KAAA,mDAAAoG,WAAA,qBAAAC,UAAA,oBAAAtG,KAAA,OAAAsB,UAAA,oBAAA7B,KAAA,OAAAe,OAAA,MAAAM,OAAA,2CAAAoC,MAAA,MAAAjD,KAAA,MAAAmD,UAAA,iBAAA3C,MAAA,IAAA4C,YAAA,qBAAAC,WAAA,oBAAAxC,OAAA,YAAAL,MAAA,sBAAA2C,UAAA,+DAAA3C,MAAA,IAAA6E,SAAA,IAAAxE,OAAA,YAAAL,MAAA,sBAAA6E,SAAA,qEAAAtF,KAAA,MAAAC,KAAA,MAAAC,SAAA,MAAAC,UAAA,mBAAAC,SAAA,kBAAAC,QAAA,MAAAC,aAAA,sBAAAC,SAAA,kBAAAd,KAAA,MAAAe,OAAA,MAAAC,MAAA,MAAAE,UAAA,mBAAAC,UAAA,mBAAAC,QAAA,MAAAE,QAAA,KAAAD,OAAA,YAAAH,UAAA,mBAAAF,MAAA,wBAAAZ,EAAA","ignoreList":[]}
1
+ {"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","async","options","globalScripts","bootstrapLazy","type","size","disabled","isLoading","iconName","iconset","iconPosition","iconOnly","target","color","background","fontColor","textAlign","justify","styles","hovered","label","iconSize","openIcon","closeIcon","iconColor","iconActiveColor","colorMode","opened","activeColor","behavior","contentwidth","mode","status","inputMode","name","placeholder","value","helperText","required","maskPreset","enableSelectionMode","maskRegex","maskAdvanced","maxlength","readOnly","clearIcon","hideErrorIcon","autocomplete","isHovered","isFocused","searchBehavior","isOpen","activeIndex","textInput","selected","active","level","weight","spotColor","marginBlock","lineHeight","enableRangeDates","disableFutureDates","disablePassDates","isCalendarVisible","dates","dropdownMaxHeight","overlayVisible","isDropdownOpen","isMobile","inputTextRef","isOnBlurInput","hoveredIndex","position","icon","closeButton","loader","autoCloseDelay","progress","floating","closeable","counter","checked","indeterminate","ontabindex","distance","displayDistance","selectable","backgroundColor","borderColor","borderRadius","border","imageSrc","imageSrcDefault","hasPadding","hasShadow","period","width","dateFormat","locale","disable","enable","defaultDate","customDates","limitRange","collapsed","embedded","currentDate","selectedDates","rangeStart","defaultDates","selectMonth","selectYear","number"],"sources":["../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.22.0 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, doc, H, promiseResolve } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? Array.from(doc.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"0HAOA,IAAIA,EAAe,KAUjB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAC3E,GAAIF,IAAe,GAAI,CACrBE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IACjD,CACE,OAAOC,EAAeJ,EAAK,EClB7BH,IAAeQ,MAAKC,MAAOC,UACnBC,IACN,OAAOC,EAAc,kCAA8B,CAAAC,KAAS,MAAAC,KAAA,MAAAC,SAAA,MAAAC,UAAA,mBAAAC,SAAA,kBAAAC,QAAA,MAAAC,aAAA,sBAAAC,SAAA,kBAAAd,KAAA,MAAAe,OAAA,MAAAC,MAAA,IAAAC,WAAA,MAAAC,UAAA,mBAAAC,UAAA,mBAAAC,QAAA,MAAAC,OAAA,KAAAC,QAAA,YAAAL,WAAA,cAAAD,MAAA,0CAAAO,MAAA,MAAAC,SAAA,kBAAAC,SAAA,kBAAAC,UAAA,mBAAAC,UAAA,mBAAAC,gBAAA,0BAAAC,UAAA,iBAAAC,OAAA,OAAAT,OAAA,4BAAAL,MAAA,MAAAe,YAAA,qBAAAF,UAAA,mBAAAL,SAAA,kBAAAC,SAAA,kBAAAC,UAAA,mBAAAC,UAAA,mBAAAC,gBAAA,0BAAAI,SAAA,MAAAX,OAAA,YAAAL,MAAA,sBAAAe,YAAA,iDAAAE,aAAA,+BAAAC,KAAA,OAAAC,OAAA,OAAA3B,KAAA,OAAAD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UAAA,iBAAA7C,MAAA,IAAA8C,YAAA,qBAAAC,WAAA,oBAAA1C,OAAA,YAAAL,MAAA,sBAAA6C,UAAA,6DAAAsC,OAAA,MAAAC,MAAA,MAAAlE,KAAA,MAAAmE,WAAA,qBAAAC,OAAA,MAAA/F,KAAA,MAAAgG,QAAA,KAAAC,OAAA,KAAAC,YAAA,KAAAC,YAAA,KAAAC,WAAA,oBAAAzC,iBAAA,4BAAAD,mBAAA,8BAAA2C,UAAA,OAAA1B,SAAA,OAAA2B,SAAA,OAAAC,YAAA,KAAAC,cAAA,KAAAC,WAAA,KAAAC,aAAA,KAAAC,YAAA,KAAAC,WAAA,KAAA9F,OAAA,YAAAqF,YAAA,sEAAAU,OAAA,MAAApG,MAAA,+CAAAA,MAAA,IAAAiE,SAAA,IAAA5D,OAAA,YAAAL,MAAA,sBAAAiE,SAAA,qEAAA1E,KAAA,MAAAC,KAAA,MAAAC,SAAA,MAAAC,UAAA,mBAAAC,SAAA,kBAAAC,QAAA,MAAAC,aAAA,sBAAAC,SAAA,kBAAAd,KAAA,MAAAe,OAAA,MAAAC,MAAA,MAAAE,UAAA,mBAAAC,UAAA,mBAAAC,QAAA,MAAAE,QAAA,KAAAD,OAAA,YAAAH,UAAA,mBAAAF,MAAA,wBAAAZ,EAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["ThemeDefault","color","primary","secondary","accent","spacing","base","font","size","body","heading","display","weights","thin","light","regular","medium","bold","black","ThemeMaternity","Object","assign","ThemeOncology","aux","ThemeLegacyDefault","ThemePresets","default","maternidade","oncologia","legacyDefault","Static","success","info","error","warning","neutral","breakpoints","xsmall","min","max","small","large","xlarge","CuraThemeColorsModule","constructor","this","NeutralDepthAlias","purewhite","white","pale","lighter","dark","darker","ColorDepthAlias","getColor","colorWithDepth","opacity","depth","splitColorDepth","staticColor","getStatic","getDynamic","colorObj","alias","_a","_b","_c","themeVar","getComputedStyle","document","documentElement","getPropertyValue","toLowerCase","split","CuraThemeSpacingModule","curaSpacing","getSpacing","CuraThemeFontsModule","getSize","getFamily","type","curaFontFamilyCSSVar","getWeights","keys","forEach","key","CuraThemeBreakpointsModule","get","position","breakpoint","CuraThemeModule","prefix","colors","fonts","setCssVar","prop","path","varName","groupPath","rootElement","style","setProperty","a","b","isObject","val","Array","isArray","mergeObject","from","to","entries","e","buildCssVars","obj","window","load","theme","preset","setCustom","customTheme","customTag","name","console","log","fromPreset","newTheme","JSON","parse","stringify","definitions","CuraAPI","config","localAssetsPath","themeModule","themeTag","customThemeDefinitions","CuraInit","api","dispatchEvent","CustomEvent","detail","onReady","globalScripts","appGlobalScript"],"sources":["src/api/theme-presets/theme-default.ts","src/api/theme-presets/theme-maternity.ts","src/api/theme-presets/theme-oncology.ts","src/api/theme-presets/theme-legacy-default.ts","src/api/theme-presets/theme-presets.ts","src/api/theme-presets/static.ts","src/api/modules/cura-theme-colors-module.ts","src/api/modules/cura-theme-spacing-module.ts","src/api/modules/cura-theme-fonts-module.ts","src/api/modules/cura-theme-breakpoints-module.ts","src/api/modules/cura-theme-module.ts","src/api/cura-api.ts","src/rededor-cura-start.ts","@stencil/core/internal/app-globals"],"sourcesContent":["/**\n * Cura Default Theme\n */\nexport const ThemeDefault = {\n /* Colors */\n color: {\n primary: {\n '100': '113,197,232',\n '300': '68,142,205',\n '500': '0,61,165',\n '700': '0,48,117',\n '900': '0,40,85'\n },\n secondary: {\n '100': '245,236,227',\n '300': '221,192,162',\n '500': '204,160,116',\n '700': '136,107,77',\n '900': '41,32,23'\n },\n accent: {\n '100': '255,194,123',\n '300': '255,168,74',\n '500': '255,130,0',\n '700': '215,114,10',\n '900': '155,90,26'\n }\n },\n /* Spacing */\n spacing: {\n base: 4,\n },\n /* Fonts */\n font: {\n size: '14px',\n color: '#4A4A4A',\n body: \"'Gotham', Arial, Helvetica, sans-serif\",\n heading: \"'Gotham', Arial, Helvetica, sans-serif\",\n display: \"'Gotham', Arial, Helvetica, sans-serif\",\n weights: {\n thin: 100,\n light: 300,\n regular: 400,\n medium: 500,\n bold: 700,\n black: 900\n },\n }\n};\n","/**\n * Maternity Theme\n */\nimport { ThemeDefault } from \"./theme-default\";\n\nexport const ThemeMaternity = {\n /* Get default theme */\n ...ThemeDefault,\n\n /* Custom */\n /* Colors */\n color: {\n primary: {\n '100': '248,227,226',\n '300': '255,179,171',\n '500': '218,113,111',\n '700': '145,75,74',\n '900': '73,38,37'\n },\n secondary: {\n '100': '253,251,249',\n '300': '247,244,238',\n '500': '245,236,227',\n '700': '204,197,189',\n '900': '163,157,151'\n },\n accent: {\n '100': '236,239,249',\n '300': '133,153,203',\n '500': '11,20,151',\n '700': '7,13,101',\n '900': '4,7,50'\n }\n },\n font: {\n size: '14px',\n color: '#4A4A4A',\n body: \"'Gotham', Arial, Helvetica, sans-serif\",\n heading: \"'Gotham', Arial, Helvetica, sans-serif\",\n display: \"'Gotham', Arial, Helvetica, sans-serif\",\n weights: {\n thin: 100,\n light: 300,\n regular: 400,\n medium: 500,\n bold: 700,\n black: 900\n },\n }\n};\n","/**\n * Oncology Theme\n */\nimport { ThemeDefault } from \"./theme-default\";\n\nexport const ThemeOncology = {\n /* Get default theme */\n ...ThemeDefault,\n\n /* Custom */\n /* Colors */\n color: {\n primary: {\n '100': '170,190,225',\n '300': '85,126,196',\n '500': '0,61,166',\n '700': '0,41,111',\n '900': '0,12,33'\n },\n secondary: {\n '100': '205,215,227',\n '300': '155,175,199',\n '500': '104,134,171',\n '700': '54,95,143',\n '900': '4,54,115',\n },\n accent: {\n '100': '153,207,255',\n '300': '71,169,255',\n '500': '0,131,245',\n '700': '0,109,204',\n '900': '0,88,164',\n },\n aux: {\n '100': '218,242,239',\n '300': '132,212,202',\n '500': '71,191,176',\n '700': '33,100,92',\n '900': '14,38,35',\n },\n },\n font: {\n size: '14px',\n color: '#4A4A4A',\n body: \"'Hanken Grotesk', Arial, Helvetica, sans-serif\",\n heading: \"'Hanken Grotesk', Arial, Helvetica, sans-serif\",\n display: \"'Hanken Grotesk', Arial, Helvetica, sans-serif\",\n weights: {\n thin: 100,\n light: 300,\n regular: 400,\n medium: 500,\n bold: 700,\n black: 900\n },\n }\n};\n","/**\n * Legacy Default Theme\n */\nimport { ThemeDefault } from \"./theme-default\";\n\nexport const ThemeLegacyDefault = {\n /* Get default theme */\n ...ThemeDefault,\n\n /* Custom */\n /* Colors */\n color: {\n primary: {\n '100': '204,217,231',\n '300': '85,128,174',\n '500': '0,65,134',\n '700': '0,43,89',\n '900': '0,13,27'\n },\n secondary: {\n '100': '238,232,206',\n '300': '198,180,92',\n '500': '170,142,11',\n '700': '113,95,7',\n '900': '34,28,2'\n },\n accent: {\n '100': '249,232,213',\n '300': '228,160,79',\n '500': '223,141,44',\n '700': '149,94,29',\n '900': '45,28,9'\n }\n },\n /* Fonts */\n font: {\n size: '14px',\n color: '#4A4A4A',\n body: \"'Roboto', Arial, Helvetica, sans-serif\",\n heading: \"'Roboto', Arial, Helvetica, sans-serif\",\n display: \"'Roboto', Arial, Helvetica, sans-serif\",\n weights: {\n thin: 100,\n light: 300,\n regular: 400,\n medium: 500,\n bold: 700,\n black: 900\n },\n }\n};\n","import { ThemeDefault } from './theme-default';\nimport { ThemeMaternity } from './theme-maternity';\nimport { ThemeOncology } from './theme-oncology';\nimport { ThemeLegacyDefault } from './theme-legacy-default';\n\nexport const ThemePresets = {\n 'default': ThemeDefault,\n 'maternidade': ThemeMaternity,\n 'oncologia': ThemeOncology,\n 'legacyDefault': ThemeLegacyDefault\n};\n","/**\n * Static\n */\nexport const Static = {\n /* Colors */\n color: {\n success: {\n '100': '223,246,233',\n '300': '148,225,181',\n '500': '95,210,144',\n '700': '49,115,77',\n '900': '19,42,29',\n },\n info: {\n '100': '207,226,255',\n '300': '149,191,255',\n '500': '110,168,255',\n '700': '66,100,153',\n '900': '37,56,85',\n },\n error: {\n '100': '251,221,221',\n '300': '242,143,143',\n '500': '235,87,87',\n '700': '157,58,58',\n '900': '47,17,17',\n },\n warning: {\n '100': '252,250,196',\n '300': '248,244,137',\n '500': '245,239,78',\n '700': '108,106,32',\n '900': '49,48,16',\n },\n neutral: {\n '0': '255,255,255',\n '100': '246,246,246',\n '200': '233,233,233',\n '300': '226,226,226',\n '400': '212,212,212',\n '500': '183,183,183',\n '600': '146,146,146',\n '700': '110,110,110',\n '800': '74,74,74',\n '900': '38,38,38',\n },\n },\n breakpoints: {\n xsmall: {\n min: 0,\n max: 480\n },\n small: {\n min: 481,\n max: 768\n },\n medium: {\n min: 769,\n max: 992\n },\n large: {\n min: 993,\n max: 1920\n },\n xlarge: {\n min: 1921,\n max: 4096\n }\n }\n};\n","import { Static } from \"../theme-presets/static\";\n\nexport default class CuraThemeColorsModule {\n\n NeutralDepthAlias = {\n 'purewhite': '0',\n 'white': '100',\n 'pale': '200',\n 'lighter': '300',\n 'light': '400',\n 'base': '500',\n 'medium': '600',\n 'dark': '700',\n 'darker': '800',\n 'black': '900',\n };\n\n ColorDepthAlias = {\n 'lighter': '100',\n 'light': '300',\n 'base': '500',\n 'dark': '700',\n 'darker': '900'\n }\n\n constructor() {}\n\n /**\n * Get theme color.\n * @param colorWithDepth string Ex.: primary-light\n * @returns RGBA value.\n */\n getColor(colorWithDepth: string = \"primary-base\", opacity = 1): string {\n const { color, depth } = this.splitColorDepth(colorWithDepth);\n const staticColor = this.getStatic(color, depth, opacity);\n if (staticColor) return staticColor;\n return this.getDynamic(color, depth, opacity);\n }\n\n /**\n * Internal: Look for static color by name and depth.\n * @param color Color name.\n * @param depth Depth number or alias.\n * @returns RGBA value.\n */\n getStatic(color: string, depth: string, opacity = 1) {\n const colorObj = Static.color[color];\n if (!colorObj) return null;\n const alias = color === 'neutral' ? this.NeutralDepthAlias[depth] : this.ColorDepthAlias[depth];\n return Static.color[color]?.[alias]\n ? `rgba(${Static.color[color]?.[alias]}, ${opacity})`\n : `rgba(${Static.color[color]?.[depth]}, ${opacity})`;\n }\n\n /**\n * Internal: Look for theme dynamic colors.\n * @param color Color name.\n * @param depth Color depth.\n * @returns RGBA value.\n */\n getDynamic(color: string, depth: string, opacity: number) {\n const themeVar = this.ColorDepthAlias[depth]\n ? `--cura-color-${color}-${this.ColorDepthAlias[depth]}`\n : `--cura-color-${color}-${depth}`;\n return getComputedStyle(document.documentElement).getPropertyValue(themeVar)\n ? `rgba(var(${themeVar}), ${opacity})`\n : `rgba(var(--cura-color-primary-500), ${opacity})`;\n }\n\n /**\n * Internal: Split color strings\n * @param colorWithDepth Color string [color]-[depth]. Ex.: primary-dark.\n * @returns Object { color: string, depth: string }.\n */\n private splitColorDepth(colorWithDepth: string): { color: string, depth: string } {\n const [ color, depth ] = colorWithDepth.toLowerCase().split(/-(.*)/);\n return { color: color ?? \"primary\", depth: depth ?? \"base\" };\n }\n\n}\n","export default class CuraThemeSpacingModule {\n\n private curaSpacing = '--cura-spacing-base';\n\n constructor() {}\n\n /** Returns the base spacing var defined in the theme */\n getSpacing(): string {\n if (getComputedStyle(document.body).getPropertyValue(this.curaSpacing)) {\n return `var(${this.curaSpacing})`;\n }\n return '4';\n }\n}\n","import { ThemeDefault } from \"../theme-presets/theme-default\";\n\nexport default class CuraThemeFontsModule {\n\n constructor() {}\n\n /**\n * Get the CSS variable related to the font family defined by the theme.\n * @param type 'body' | 'heading' | 'display'\n * @returns Related css variable as a string.\n */\n getFamily(type: string = \"body\"): string {\n const curaFontFamilyCSSVar = `--cura-font-${type.toLowerCase()}`;\n return getComputedStyle(document.body).getPropertyValue(curaFontFamilyCSSVar)\n ? `var(${curaFontFamilyCSSVar})`\n : 'var(--cura-font-body)';\n }\n\n /**\n * Get the CSS variables related to font weights defined by the theme.\n * @returns Object with CSS vars weights definitions for thin, light, regular, medium, bold and black fonts.\n */\n getWeights(): any {\n const weights = {};\n Object.keys(ThemeDefault.font.weights).forEach((key) => weights[key] = `var(--cura-font-weights-${key})`);\n return weights;\n }\n\n /**\n * Get the CSS variable related to the font size base defined by the theme.\n * @returns Related CSS variable as a string.\n */\n getSize = () => `var(--cura-font-size)`;\n\n /**\n * Get CSS variable related to the font color defined by the theme.\n * @returns Related CSS variable as a string.\n */\n getColor = () => `var(--cura-font-color)`;\n\n}\n","import { Static } from '../theme-presets/static';\n\nexport default class CuraThemeBreakpointsModule {\n\n constructor() {}\n\n /** Returns the base spacing var defined in the theme */\n get(size: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' = null, position: 'min' | 'max' = null): any {\n if (size) {\n const breakpoint = position ? Static.breakpoints[size][position] : Static.breakpoints[size];\n if (breakpoint || breakpoint === 0) return breakpoint;\n }\n return Static.breakpoints;\n }\n}\n","import { ThemePresets } from \"../theme-presets/theme-presets\";\nimport { CuraCustomTheme } from \"../cura-api.type\";\nimport CuraThemeColorsModule from \"./cura-theme-colors-module\";\nimport CuraThemeSpacingModule from \"./cura-theme-spacing-module\";\nimport CuraThemeFontsModule from \"./cura-theme-fonts-module\";\nimport CuraThemeBreakpointsModule from \"./cura-theme-breakpoints-module\";\n\nexport default class CuraThemeModule {\n\n rootElement: HTMLElement;\n prefix = '--cura';\n colors = new CuraThemeColorsModule();\n spacing = new CuraThemeSpacingModule();\n fonts = new CuraThemeFontsModule();\n breakpoints = new CuraThemeBreakpointsModule();\n\n constructor() {\n this.rootElement = window.document.documentElement;\n }\n\n /**\n * Load a theme.\n * @param theme Theme tag.\n */\n load(theme = 'default') {\n const preset = ThemePresets[theme] ? ThemePresets[theme] : ThemePresets.default;\n this.buildCssVars(this.prefix, preset);\n }\n\n /**\n * Define a custom theme\n * @param customTheme Custom theme object definition\n */\n setCustom(customTheme: CuraCustomTheme) {\n const customTag = customTheme.name;\n if (customTag in ThemePresets) {\n console.log('Error building custom theme. Theme %s already exists. Loading default theme.', customTag);\n this.load('default');\n } else {\n const preset = customTheme.fromPreset && customTheme.fromPreset in ThemePresets\n ? ThemePresets[customTheme.fromPreset]\n : ThemePresets.default;\n const newTheme = {...JSON.parse(JSON.stringify(preset))};\n this.mergeObject(customTheme.definitions, newTheme);\n ThemePresets[customTag] = newTheme;\n this.load(customTag);\n }\n }\n\n /* Private */\n\n /** Set css var based on object structure */\n setCssVar = (prop, path) => {\n const varName = this.groupPath(path, prop[0]);\n this.rootElement.style.setProperty(varName, prop[1]);\n }\n\n groupPath = (a, b) => `${a}-${b}`;\n\n isObject = (val) => {\n return val && typeof val === 'object' && !Array.isArray(val);\n }\n\n /** Deep merge objects */\n mergeObject = (from, to) => {\n const entries = Object.entries(from);\n for (let e of entries) {\n if (this.isObject(e[1])) {\n this.mergeObject(e[1], to[e[0]]);\n } else {\n to[e[0]] = e[1];\n }\n }\n }\n\n /** Set css vars from preset object */\n buildCssVars = (path, obj) => {\n const entries = Object.entries(obj);\n for (let e of entries) {\n if (this.isObject(e[1])) {\n this.buildCssVars(this.groupPath(path, e[0]), e[1]);\n } else {\n this.setCssVar(e, path);\n }\n }\n }\n}\n","import { CuraConfig, APIThemeFunctions, CuraCustomTheme } from './cura-api.type';\nimport CuraThemeModule from './modules/cura-theme-module';\n\nexport default class CuraAPI {\n\n theme: APIThemeFunctions;\n localAssetsPath: string;\n\n constructor (config?: CuraConfig) {\n this.localAssetsPath = config && config.localAssetsPath ? config.localAssetsPath : `/assets`;\n const themeModule = new CuraThemeModule();\n this.theme = {\n load: function(themeTag: string) { themeModule.load(themeTag); },\n setCustom: function(customThemeDefinitions: CuraCustomTheme) { themeModule.setCustom(customThemeDefinitions); },\n colors: {\n getColor: function(colorWithDepth?: string, opacity?: number) { return themeModule.colors.getColor(colorWithDepth, opacity) },\n },\n fonts: {\n getFamily: function(type?: string) { return themeModule.fonts.getFamily(type) },\n getWeights: function() { return themeModule.fonts.getWeights() },\n getSize: function() { return themeModule.fonts.getSize() },\n getColor: function() { return themeModule.fonts.getColor() }\n },\n spacing: {\n getSpacing: function() { return themeModule.spacing.getSpacing(); },\n },\n breakpoints: {\n get: function(size?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge', position?: 'min' | 'max') { return themeModule.breakpoints.get(size, position); }\n }\n };\n if (config && config.customTheme) {\n this.theme.setCustom(config.customTheme);\n } else {\n const theme = config && config.theme ? config.theme : 'default';\n this.theme.load(theme);\n }\n }\n\n}\n","import CuraAPI from './api/cura-api';\nimport { CuraConfig } from './api/cura-api.type';\n// import { setAssetPath } from '@stencil/core';\n\n// setAssetPath(import.meta.url);\ndeclare global {\n interface Window {\n CuraAPI?: CuraAPI,\n CuraInit?: CuraConfig\n }\n}\n\nexport default function() {\n const config = window.CuraInit;\n window.CuraAPI = config ? new CuraAPI(config) : new CuraAPI();\n const api = window.CuraAPI;\n window.dispatchEvent(new CustomEvent(\"CuraAPIReady\", { detail: {api} }));\n if (config && typeof config.onReady === 'function') config.onReady(api);\n}\n","import appGlobalScript from '/Users/fellipesoares/Code/cura/packages/component-lib/src/rededor-cura-start.ts';\nexport const globalScripts = appGlobalScript;\n"],"mappings":"AAGO,MAAMA,EAAe,CAE1BC,MAAO,CACLC,QAAS,CACP,IAAO,cACP,IAAO,aACP,IAAO,WACP,IAAO,WACP,IAAO,WAETC,UAAW,CACT,IAAO,cACP,IAAO,cACP,IAAO,cACP,IAAO,aACP,IAAO,YAETC,OAAQ,CACN,IAAO,cACP,IAAO,aACP,IAAO,YACP,IAAO,aACP,IAAO,cAIXC,QAAS,CACPC,KAAM,GAGRC,KAAM,CACJC,KAAM,OACNP,MAAO,UACPQ,KAAM,yCACNC,QAAS,yCACTC,QAAS,yCACTC,QAAS,CACPC,KAAM,IACNC,MAAO,IACPC,QAAS,IACTC,OAAQ,IACRC,KAAM,IACNC,MAAO,OCxCN,MAAMC,EAAcC,OAAAC,OAAAD,OAAAC,OAAA,GAEtBrB,GAAY,CAIfC,MAAO,CACLC,QAAS,CACP,IAAO,cACP,IAAO,cACP,IAAO,cACP,IAAO,YACP,IAAO,YAETC,UAAW,CACT,IAAO,cACP,IAAO,cACP,IAAO,cACP,IAAO,cACP,IAAO,eAETC,OAAQ,CACN,IAAO,cACP,IAAO,cACP,IAAO,YACP,IAAO,WACP,IAAO,WAGXG,KAAM,CACJC,KAAM,OACNP,MAAO,UACPQ,KA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AU,IAG5J,GAAI4C,GAAUA,EAAOZ,YAAa,CAChC3E,KAAKwE,MAAME,UAAUa,EAAOZ,Y,KACvB,CACL,MAAMH,EAAQe,GAAUA,EAAOf,MAAQe,EAAOf,MAAQ,UACtDxE,KAAKwE,MAAMD,KAAKC,E,gBCrBpB,MAAMe,EAASjB,OAAOsB,SACtBtB,OAAOgB,QAAUC,EAAS,IAAID,EAAQC,GAAU,IAAID,EACpD,MAAMO,EAAMvB,OAAOgB,QACnBhB,OAAOwB,cAAc,IAAIC,YAAY,eAAgB,CAAEC,OAAQ,CAACH,UAChE,GAAIN,UAAiBA,EAAOU,UAAY,WAAYV,EAAOU,QAAQJ,EACrE,CCjBY,MAACK,EAAgBC,S","ignoreList":[]}
1
+ {"version":3,"names":["ThemeDefault","color","primary","secondary","accent","spacing","base","font","size","body","heading","display","weights","thin","light","regular","medium","bold","black","ThemeMaternity","Object","assign","ThemeOncology","aux","ThemeLegacyDefault","ThemePresets","default","maternidade","oncologia","legacyDefault","Static","success","info","error","warning","neutral","breakpoints","xsmall","min","max","small","large","xlarge","CuraThemeColorsModule","constructor","this","NeutralDepthAlias","purewhite","white","pale","lighter","dark","darker","ColorDepthAlias","getColor","colorWithDepth","opacity","depth","splitColorDepth","staticColor","getStatic","getDynamic","colorObj","alias","_a","_b","_c","themeVar","getComputedStyle","document","documentElement","getPropertyValue","toLowerCase","split","CuraThemeSpacingModule","curaSpacing","getSpacing","CuraThemeFontsModule","getSize","getFamily","type","curaFontFamilyCSSVar","getWeights","keys","forEach","key","CuraThemeBreakpointsModule","get","position","breakpoint","CuraThemeModule","prefix","colors","fonts","setCssVar","prop","path","varName","groupPath","rootElement","style","setProperty","a","b","isObject","val","Array","isArray","mergeObject","from","to","entries","e","buildCssVars","obj","window","load","theme","preset","setCustom","customTheme","customTag","name","console","log","fromPreset","newTheme","JSON","parse","stringify","definitions","CuraAPI","config","localAssetsPath","themeModule","themeTag","customThemeDefinitions","CuraInit","api","dispatchEvent","CustomEvent","detail","onReady","globalScripts","appGlobalScript"],"sources":["src/api/theme-presets/theme-default.ts","src/api/theme-presets/theme-maternity.ts","src/api/theme-presets/theme-oncology.ts","src/api/theme-presets/theme-legacy-default.ts","src/api/theme-presets/theme-presets.ts","src/api/theme-presets/static.ts","src/api/modules/cura-theme-colors-module.ts","src/api/modules/cura-theme-spacing-module.ts","src/api/modules/cura-theme-fonts-module.ts","src/api/modules/cura-theme-breakpoints-module.ts","src/api/modules/cura-theme-module.ts","src/api/cura-api.ts","src/rededor-cura-start.ts","@stencil/core/internal/app-globals"],"sourcesContent":["/**\n * Cura Default Theme\n */\nexport const ThemeDefault = {\n /* Colors */\n color: {\n primary: {\n '100': '113,197,232',\n '300': '68,142,205',\n '500': '0,61,165',\n '700': '0,48,117',\n '900': '0,40,85'\n },\n secondary: {\n '100': '245,236,227',\n '300': '221,192,162',\n '500': '204,160,116',\n '700': '136,107,77',\n '900': '41,32,23'\n },\n accent: {\n '100': '255,194,123',\n '300': '255,168,74',\n '500': '255,130,0',\n '700': '215,114,10',\n '900': '155,90,26'\n }\n },\n /* Spacing */\n spacing: {\n base: 4,\n },\n /* Fonts */\n font: {\n size: '14px',\n color: '#4A4A4A',\n body: \"'Gotham', Arial, Helvetica, sans-serif\",\n heading: \"'Gotham', Arial, Helvetica, sans-serif\",\n display: \"'Gotham', Arial, Helvetica, sans-serif\",\n weights: {\n thin: 100,\n light: 300,\n regular: 400,\n medium: 500,\n bold: 700,\n black: 900\n },\n }\n};\n","/**\n * Maternity Theme\n */\nimport { ThemeDefault } from \"./theme-default\";\n\nexport const ThemeMaternity = {\n /* Get default theme */\n ...ThemeDefault,\n\n /* Custom */\n /* Colors */\n color: {\n primary: {\n '100': '248,227,226',\n '300': '255,179,171',\n '500': '218,113,111',\n '700': '145,75,74',\n '900': '73,38,37'\n },\n secondary: {\n '100': '253,251,249',\n '300': '247,244,238',\n '500': '245,236,227',\n '700': '204,197,189',\n '900': '163,157,151'\n },\n accent: {\n '100': '236,239,249',\n '300': '133,153,203',\n '500': '11,20,151',\n '700': '7,13,101',\n '900': '4,7,50'\n }\n },\n font: {\n size: '14px',\n color: '#4A4A4A',\n body: \"'Gotham', Arial, Helvetica, sans-serif\",\n heading: \"'Gotham', Arial, Helvetica, sans-serif\",\n display: \"'Gotham', Arial, Helvetica, sans-serif\",\n weights: {\n thin: 100,\n light: 300,\n regular: 400,\n medium: 500,\n bold: 700,\n black: 900\n },\n }\n};\n","/**\n * Oncology Theme\n */\nimport { ThemeDefault } from \"./theme-default\";\n\nexport const ThemeOncology = {\n /* Get default theme */\n ...ThemeDefault,\n\n /* Custom */\n /* Colors */\n color: {\n primary: {\n '100': '170,190,225',\n '300': '85,126,196',\n '500': '0,61,166',\n '700': '0,41,111',\n '900': '0,12,33'\n },\n secondary: {\n '100': '205,215,227',\n '300': '155,175,199',\n '500': '104,134,171',\n '700': '54,95,143',\n '900': '4,54,115',\n },\n accent: {\n '100': '153,207,255',\n '300': '71,169,255',\n '500': '0,131,245',\n '700': '0,109,204',\n '900': '0,88,164',\n },\n aux: {\n '100': '218,242,239',\n '300': '132,212,202',\n '500': '71,191,176',\n '700': '33,100,92',\n '900': '14,38,35',\n },\n },\n font: {\n size: '14px',\n color: '#4A4A4A',\n body: \"'Hanken Grotesk', Arial, Helvetica, sans-serif\",\n heading: \"'Hanken Grotesk', Arial, Helvetica, sans-serif\",\n display: \"'Hanken Grotesk', Arial, Helvetica, sans-serif\",\n weights: {\n thin: 100,\n light: 300,\n regular: 400,\n medium: 500,\n bold: 700,\n black: 900\n },\n }\n};\n","/**\n * Legacy Default Theme\n */\nimport { ThemeDefault } from \"./theme-default\";\n\nexport const ThemeLegacyDefault = {\n /* Get default theme */\n ...ThemeDefault,\n\n /* Custom */\n /* Colors */\n color: {\n primary: {\n '100': '204,217,231',\n '300': '85,128,174',\n '500': '0,65,134',\n '700': '0,43,89',\n '900': '0,13,27'\n },\n secondary: {\n '100': '238,232,206',\n '300': '198,180,92',\n '500': '170,142,11',\n '700': '113,95,7',\n '900': '34,28,2'\n },\n accent: {\n '100': '249,232,213',\n '300': '228,160,79',\n '500': '223,141,44',\n '700': '149,94,29',\n '900': '45,28,9'\n }\n },\n /* Fonts */\n font: {\n size: '14px',\n color: '#4A4A4A',\n body: \"'Roboto', Arial, Helvetica, sans-serif\",\n heading: \"'Roboto', Arial, Helvetica, sans-serif\",\n display: \"'Roboto', Arial, Helvetica, sans-serif\",\n weights: {\n thin: 100,\n light: 300,\n regular: 400,\n medium: 500,\n bold: 700,\n black: 900\n },\n }\n};\n","import { ThemeDefault } from './theme-default';\nimport { ThemeMaternity } from './theme-maternity';\nimport { ThemeOncology } from './theme-oncology';\nimport { ThemeLegacyDefault } from './theme-legacy-default';\n\nexport const ThemePresets = {\n 'default': ThemeDefault,\n 'maternidade': ThemeMaternity,\n 'oncologia': ThemeOncology,\n 'legacyDefault': ThemeLegacyDefault\n};\n","/**\n * Static\n */\nexport const Static = {\n /* Colors */\n color: {\n success: {\n '100': '223,246,233',\n '300': '148,225,181',\n '500': '95,210,144',\n '700': '49,115,77',\n '900': '19,42,29',\n },\n info: {\n '100': '207,226,255',\n '300': '149,191,255',\n '500': '110,168,255',\n '700': '66,100,153',\n '900': '37,56,85',\n },\n error: {\n '100': '251,221,221',\n '300': '242,143,143',\n '500': '235,87,87',\n '700': '157,58,58',\n '900': '47,17,17',\n },\n warning: {\n '100': '252,250,196',\n '300': '248,244,137',\n '500': '245,239,78',\n '700': '108,106,32',\n '900': '49,48,16',\n },\n neutral: {\n '0': '255,255,255',\n '100': '246,246,246',\n '200': '233,233,233',\n '300': '226,226,226',\n '400': '212,212,212',\n '500': '183,183,183',\n '600': '146,146,146',\n '700': '110,110,110',\n '800': '74,74,74',\n '900': '38,38,38',\n },\n },\n breakpoints: {\n xsmall: {\n min: 0,\n max: 480\n },\n small: {\n min: 481,\n max: 768\n },\n medium: {\n min: 769,\n max: 992\n },\n large: {\n min: 993,\n max: 1920\n },\n xlarge: {\n min: 1921,\n max: 4096\n }\n }\n};\n","import { Static } from \"../theme-presets/static\";\n\nexport default class CuraThemeColorsModule {\n\n NeutralDepthAlias = {\n 'purewhite': '0',\n 'white': '100',\n 'pale': '200',\n 'lighter': '300',\n 'light': '400',\n 'base': '500',\n 'medium': '600',\n 'dark': '700',\n 'darker': '800',\n 'black': '900',\n };\n\n ColorDepthAlias = {\n 'lighter': '100',\n 'light': '300',\n 'base': '500',\n 'dark': '700',\n 'darker': '900'\n }\n\n constructor() {}\n\n /**\n * Get theme color.\n * @param colorWithDepth string Ex.: primary-light\n * @returns RGBA value.\n */\n getColor(colorWithDepth: string = \"primary-base\", opacity = 1): string {\n const { color, depth } = this.splitColorDepth(colorWithDepth);\n const staticColor = this.getStatic(color, depth, opacity);\n if (staticColor) return staticColor;\n return this.getDynamic(color, depth, opacity);\n }\n\n /**\n * Internal: Look for static color by name and depth.\n * @param color Color name.\n * @param depth Depth number or alias.\n * @returns RGBA value.\n */\n getStatic(color: string, depth: string, opacity = 1) {\n const colorObj = Static.color[color];\n if (!colorObj) return null;\n const alias = color === 'neutral' ? this.NeutralDepthAlias[depth] : this.ColorDepthAlias[depth];\n return Static.color[color]?.[alias]\n ? `rgba(${Static.color[color]?.[alias]}, ${opacity})`\n : `rgba(${Static.color[color]?.[depth]}, ${opacity})`;\n }\n\n /**\n * Internal: Look for theme dynamic colors.\n * @param color Color name.\n * @param depth Color depth.\n * @returns RGBA value.\n */\n getDynamic(color: string, depth: string, opacity: number) {\n const themeVar = this.ColorDepthAlias[depth]\n ? `--cura-color-${color}-${this.ColorDepthAlias[depth]}`\n : `--cura-color-${color}-${depth}`;\n return getComputedStyle(document.documentElement).getPropertyValue(themeVar)\n ? `rgba(var(${themeVar}), ${opacity})`\n : `rgba(var(--cura-color-primary-500), ${opacity})`;\n }\n\n /**\n * Internal: Split color strings\n * @param colorWithDepth Color string [color]-[depth]. Ex.: primary-dark.\n * @returns Object { color: string, depth: string }.\n */\n private splitColorDepth(colorWithDepth: string): { color: string, depth: string } {\n const [ color, depth ] = colorWithDepth.toLowerCase().split(/-(.*)/);\n return { color: color ?? \"primary\", depth: depth ?? \"base\" };\n }\n\n}\n","export default class CuraThemeSpacingModule {\n\n private curaSpacing = '--cura-spacing-base';\n\n constructor() {}\n\n /** Returns the base spacing var defined in the theme */\n getSpacing(): string {\n if (getComputedStyle(document.body).getPropertyValue(this.curaSpacing)) {\n return `var(${this.curaSpacing})`;\n }\n return '4';\n }\n}\n","import { ThemeDefault } from \"../theme-presets/theme-default\";\n\nexport default class CuraThemeFontsModule {\n\n constructor() {}\n\n /**\n * Get the CSS variable related to the font family defined by the theme.\n * @param type 'body' | 'heading' | 'display'\n * @returns Related css variable as a string.\n */\n getFamily(type: string = \"body\"): string {\n const curaFontFamilyCSSVar = `--cura-font-${type.toLowerCase()}`;\n return getComputedStyle(document.body).getPropertyValue(curaFontFamilyCSSVar)\n ? `var(${curaFontFamilyCSSVar})`\n : 'var(--cura-font-body)';\n }\n\n /**\n * Get the CSS variables related to font weights defined by the theme.\n * @returns Object with CSS vars weights definitions for thin, light, regular, medium, bold and black fonts.\n */\n getWeights(): any {\n const weights = {};\n Object.keys(ThemeDefault.font.weights).forEach((key) => weights[key] = `var(--cura-font-weights-${key})`);\n return weights;\n }\n\n /**\n * Get the CSS variable related to the font size base defined by the theme.\n * @returns Related CSS variable as a string.\n */\n getSize = () => `var(--cura-font-size)`;\n\n /**\n * Get CSS variable related to the font color defined by the theme.\n * @returns Related CSS variable as a string.\n */\n getColor = () => `var(--cura-font-color)`;\n\n}\n","import { Static } from '../theme-presets/static';\n\nexport default class CuraThemeBreakpointsModule {\n\n constructor() {}\n\n /** Returns the base spacing var defined in the theme */\n get(size: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' = null, position: 'min' | 'max' = null): any {\n if (size) {\n const breakpoint = position ? Static.breakpoints[size][position] : Static.breakpoints[size];\n if (breakpoint || breakpoint === 0) return breakpoint;\n }\n return Static.breakpoints;\n }\n}\n","import { ThemePresets } from \"../theme-presets/theme-presets\";\nimport { CuraCustomTheme } from \"../cura-api.type\";\nimport CuraThemeColorsModule from \"./cura-theme-colors-module\";\nimport CuraThemeSpacingModule from \"./cura-theme-spacing-module\";\nimport CuraThemeFontsModule from \"./cura-theme-fonts-module\";\nimport CuraThemeBreakpointsModule from \"./cura-theme-breakpoints-module\";\n\nexport default class CuraThemeModule {\n\n rootElement: HTMLElement;\n prefix = '--cura';\n colors = new CuraThemeColorsModule();\n spacing = new CuraThemeSpacingModule();\n fonts = new CuraThemeFontsModule();\n breakpoints = new CuraThemeBreakpointsModule();\n\n constructor() {\n this.rootElement = window.document.documentElement;\n }\n\n /**\n * Load a theme.\n * @param theme Theme tag.\n */\n load(theme = 'default') {\n const preset = ThemePresets[theme] ? ThemePresets[theme] : ThemePresets.default;\n this.buildCssVars(this.prefix, preset);\n }\n\n /**\n * Define a custom theme\n * @param customTheme Custom theme object definition\n */\n setCustom(customTheme: CuraCustomTheme) {\n const customTag = customTheme.name;\n if (customTag in ThemePresets) {\n console.log('Error building custom theme. Theme %s already exists. Loading default theme.', customTag);\n this.load('default');\n } else {\n const preset = customTheme.fromPreset && customTheme.fromPreset in ThemePresets\n ? ThemePresets[customTheme.fromPreset]\n : ThemePresets.default;\n const newTheme = {...JSON.parse(JSON.stringify(preset))};\n this.mergeObject(customTheme.definitions, newTheme);\n ThemePresets[customTag] = newTheme;\n this.load(customTag);\n }\n }\n\n /* Private */\n\n /** Set css var based on object structure */\n setCssVar = (prop, path) => {\n const varName = this.groupPath(path, prop[0]);\n this.rootElement.style.setProperty(varName, prop[1]);\n }\n\n groupPath = (a, b) => `${a}-${b}`;\n\n isObject = (val) => {\n return val && typeof val === 'object' && !Array.isArray(val);\n }\n\n /** Deep merge objects */\n mergeObject = (from, to) => {\n const entries = Object.entries(from);\n for (let e of entries) {\n if (this.isObject(e[1])) {\n this.mergeObject(e[1], to[e[0]]);\n } else {\n to[e[0]] = e[1];\n }\n }\n }\n\n /** Set css vars from preset object */\n buildCssVars = (path, obj) => {\n const entries = Object.entries(obj);\n for (let e of entries) {\n if (this.isObject(e[1])) {\n this.buildCssVars(this.groupPath(path, e[0]), e[1]);\n } else {\n this.setCssVar(e, path);\n }\n }\n }\n}\n","import { CuraConfig, APIThemeFunctions, CuraCustomTheme } from './cura-api.type';\nimport CuraThemeModule from './modules/cura-theme-module';\n\nexport default class CuraAPI {\n\n theme: APIThemeFunctions;\n localAssetsPath: string;\n\n constructor (config?: CuraConfig) {\n this.localAssetsPath = config && config.localAssetsPath ? config.localAssetsPath : `/assets`;\n const themeModule = new CuraThemeModule();\n this.theme = {\n load: function(themeTag: string) { themeModule.load(themeTag); },\n setCustom: function(customThemeDefinitions: CuraCustomTheme) { themeModule.setCustom(customThemeDefinitions); },\n colors: {\n getColor: function(colorWithDepth?: string, opacity?: number) { return themeModule.colors.getColor(colorWithDepth, opacity) },\n },\n fonts: {\n getFamily: function(type?: string) { return themeModule.fonts.getFamily(type) },\n getWeights: function() { return themeModule.fonts.getWeights() },\n getSize: function() { return themeModule.fonts.getSize() },\n getColor: function() { return themeModule.fonts.getColor() }\n },\n spacing: {\n getSpacing: function() { return themeModule.spacing.getSpacing(); },\n },\n breakpoints: {\n get: function(size?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge', position?: 'min' | 'max') { return themeModule.breakpoints.get(size, position); }\n }\n };\n if (config && config.customTheme) {\n this.theme.setCustom(config.customTheme);\n } else {\n const theme = config && config.theme ? config.theme : 'default';\n this.theme.load(theme);\n }\n }\n\n}\n","import CuraAPI from './api/cura-api';\nimport { CuraConfig } from './api/cura-api.type';\n// import { setAssetPath } from '@stencil/core';\n\n// setAssetPath(import.meta.url);\ndeclare global {\n interface Window {\n CuraAPI?: CuraAPI,\n CuraInit?: CuraConfig\n }\n}\n\nexport default function() {\n const config = window.CuraInit;\n window.CuraAPI = config ? new CuraAPI(config) : new CuraAPI();\n const api = window.CuraAPI;\n window.dispatchEvent(new CustomEvent(\"CuraAPIReady\", { detail: {api} }));\n if (config && typeof config.onReady === 'function') config.onReady(api);\n}\n","import appGlobalScript from '/Volumes/projects/cura/packages/component-lib/src/rededor-cura-start.ts';\nexport const globalScripts = appGlobalScript;\n"],"mappings":"AAGO,MAAMA,EAAe,CAE1BC,MAAO,CACLC,QAAS,CACP,IAAO,cACP,IAAO,aACP,IAAO,WACP,IAAO,WACP,IAAO,WAETC,UAAW,CACT,IAAO,cACP,IAAO,cACP,IAAO,cACP,IAAO,aACP,IAAO,YAETC,OAAQ,CACN,IAAO,cACP,IAAO,aACP,IAAO,YACP,IAAO,aACP,IAAO,cAIXC,QAAS,CACPC,KAAM,GAGRC,KAAM,CACJC,KAAM,OACNP,MAAO,UACPQ,KAAM,yCACNC,QAAS,yCACTC,QAAS,yCACTC,QAAS,CACPC,KAAM,IACNC,MAAO,IACPC,QAAS,IACTC,OAAQ,IACRC,KAAM,IACNC,MAAO,OCxCN,MAAMC,EAAcC,OAAAC,OAAAD,OAAAC,OAAA,GAEtBrB,GAAY,CAIfC,MAAO,CACLC,QAAS,CACP,IAAO,cACP,IAAO,cACP,IAAO,cACP,IAAO,YACP,IAAO,YAETC,UAAW,CACT,IAAO,cACP,IAAO,cACP,IAAO,cACP,IAAO,cACP,IAAO,eAETC,OAAQ,CACN,IAAO,cACP,IAAO,cACP,IAAO,YACP,IAAO,WACP,IAAO,WAGXG,KAAM,CACJC,KAAM,OACNP,MAAO,UACPQ,KAAM,yCACNC,QAAS,yCACTC,QAAS,yCACTC,QAAS,CACPC,KAAM,IACNC,MAAO,IACPC,QAAS,IACTC,OAAQ,IACRC,KAAM,IACNC,MAAO,QCzCN,MAAMI,EAAaF,OAAAC,OAAAD,OAAAC,OAAA,GAErBrB,GAAY,CAIfC,MAAO,CACLC,QAAS,CACP,IAAO,cACP,IAAO,aACP,IAAO,WACP,IAAO,WACP,IAAO,WAETC,UAAW,CACT,IAAO,cACP,IAAO,cACP,IAAO,cACP,IAAO,YACP,IAAO,YAETC,OAAQ,CACN,IAAO,cACP,IAAO,aACP,IAAO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N,UAAiBA,EAAOU,UAAY,WAAYV,EAAOU,QAAQJ,EACrE,CCjBY,MAACK,EAAgBC,S","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as t,h as e,H as r,g as s}from"./p-312791fb.js";const i={80:{border:2.5},40:{border:2.25},32:{border:2},24:{border:1.75}};const o=":host{display:inline-flex}:host .conteiner{display:flex;box-sizing:border-box;justify-content:center;align-items:center;width:var(--size);height:var(--size);border:var(--border) solid var(--border-color);border-radius:var(--border-radius);background:var(--background-color);overflow:hidden}:host .conteiner.floating{box-shadow:0px 4px 8px 0px rgba(38, 38, 38, 0.16)}:host .conteiner img{outline:none;object-fit:contain;width:100%;height:100%}";const a=o;const n=class{constructor(e){t(this,e);this.size="80";this.backgroundColor="neutral-purewhite";this.borderColor=undefined;this.borderRadius="50%";this.border=false;this.type="default";this.imageSrc=undefined;this.imageSrcDefault=undefined;this.floating=undefined;this.styles={}}sizeHandler(t){const e=i[t];this.styles["--border"]=this.border&&`${e.border}px`;this.styles["--size"]=`${this.size}px`}getClasses(){const t={};t["conteiner"]=true;t["floating"]=this.floating;return t}connectedCallback(){this.assetsPath=window.CuraAPI.localAssetsPath;this.sizeHandler(this.size)}hostCSSProperties(){return{"--background-color":window.CuraAPI.theme.colors.getColor(this.backgroundColor),"--border-color":window.CuraAPI.theme.colors.getColor(this.borderColor),"--border-radius":`${this.borderRadius}`}}onSrcError(){this.imageSrc=this.imageSrcDefault||`${this.assetsPath}/images/avatar/patient-default.svg`}render(){return e(r,{key:"fc8fbe9cdcab86398c83a55d006badb870ee959a",style:this.hostCSSProperties(),role:"img"},e("div",{key:"6a107805cd770b98e74f7b0475c9896f59e51832",class:this.getClasses(),style:this.styles},e("img",{key:"4bd7991bd32b0aa6f87d0725303960b0b4c3b0b9",src:this.imageSrc||this.imageSrcDefault||`${this.assetsPath}/images/avatar/patient-default.svg`,onError:()=>this.onSrcError()})))}get host(){return s(this)}static get watchers(){return{size:["sizeHandler"]}}};n.style=a;export{n as cura_avatar};
2
- //# sourceMappingURL=p-0d435e42.entry.js.map
1
+ import{r as t,h as e,H as r,g as s}from"./p-fd5ed6b0.js";const i={80:{border:2.5},40:{border:2.25},32:{border:2},24:{border:1.75}};const o=":host{display:inline-flex}:host .conteiner{display:flex;box-sizing:border-box;justify-content:center;align-items:center;width:var(--size);height:var(--size);border:var(--border) solid var(--border-color);border-radius:var(--border-radius);background:var(--background-color);overflow:hidden}:host .conteiner.floating{box-shadow:0px 4px 8px 0px rgba(38, 38, 38, 0.16)}:host .conteiner img{outline:none;object-fit:contain;width:100%;height:100%}";const n=o;const a=class{constructor(e){t(this,e);this.size="80";this.backgroundColor="neutral-purewhite";this.borderColor=undefined;this.borderRadius="50%";this.border=false;this.type="default";this.imageSrc=undefined;this.imageSrcDefault=undefined;this.floating=undefined;this.styles={}}sizeHandler(t){const e=i[t];this.styles["--border"]=this.border&&`${e.border}px`;this.styles["--size"]=`${this.size}px`}getClasses(){const t={};t["conteiner"]=true;t["floating"]=this.floating;return t}connectedCallback(){this.assetsPath=window.CuraAPI.localAssetsPath;this.sizeHandler(this.size)}hostCSSProperties(){return{"--background-color":window.CuraAPI.theme.colors.getColor(this.backgroundColor),"--border-color":window.CuraAPI.theme.colors.getColor(this.borderColor),"--border-radius":`${this.borderRadius}`}}onSrcError(){this.imageSrc=this.imageSrcDefault||`${this.assetsPath}/images/avatar/patient-default.svg`}render(){return e(r,{key:"2760534555a0483e7e30c5f3009ec0cf68d0973b",style:this.hostCSSProperties(),role:"img"},e("div",{key:"3daf6dd066983dc63525c38b7da498147c0bf387",class:this.getClasses(),style:this.styles},e("img",{key:"a5f4de7983722fc3f750404fa985c312590b5e98",src:this.imageSrc||this.imageSrcDefault||`${this.assetsPath}/images/avatar/patient-default.svg`,onError:()=>this.onSrcError()})))}get host(){return s(this)}static get watchers(){return{size:["sizeHandler"]}}};a.style=n;export{a as cura_avatar};
2
+ //# sourceMappingURL=p-116a1cd6.entry.js.map
@@ -0,0 +1,2 @@
1
+ function e(t){"@babel/helpers - typeof";return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){if(t.length<e){throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}}function n(n){t(1,arguments);var r=Object.prototype.toString.call(n);if(n instanceof Date||e(n)==="object"&&r==="[object Date]"){return new Date(n.getTime())}else if(typeof n==="number"||r==="[object Number]"){return new Date(n)}else{if((typeof n==="string"||r==="[object String]")&&typeof console!=="undefined"){console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments");console.warn((new Error).stack)}return new Date(NaN)}}function r(e,r){t(2,arguments);var o=n(e);var s=n(r);return o.getTime()>s.getTime()}function o(e,r){t(2,arguments);var o=n(e);var s=n(r);return o.getTime()<s.getTime()}export{e as _,r as a,o as i,t as r,n as t};
2
+ //# sourceMappingURL=p-272c784a.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_typeof","o","Symbol","iterator","constructor","prototype","requiredArgs","required","args","length","TypeError","toDate","argument","arguments","argStr","Object","toString","call","Date","getTime","console","warn","Error","stack","NaN","isAfter","dirtyDate","dirtyDateToCompare","date","dateToCompare","isBefore"],"sources":["../../node_modules/@babel/runtime/helpers/esm/typeof.js","../../node_modules/date-fns/esm/_lib/requiredArgs/index.js","../../node_modules/date-fns/esm/toDate/index.js","../../node_modules/date-fns/esm/isAfter/index.js","../../node_modules/date-fns/esm/isBefore/index.js"],"sourcesContent":["function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}\nexport { _typeof as default };","export default function requiredArgs(required, args) {\n if (args.length < required) {\n throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');\n }\n}","import _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n *\n * @param {Date|Number} argument - the value to convert\n * @returns {Date} the parsed date in the local time zone\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\nexport default function toDate(argument) {\n requiredArgs(1, arguments);\n var argStr = Object.prototype.toString.call(argument);\n\n // Clone the date\n if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {\n // Prevent the date to lose the milliseconds when passed to new Date() in IE10\n return new Date(argument.getTime());\n } else if (typeof argument === 'number' || argStr === '[object Number]') {\n return new Date(argument);\n } else {\n if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {\n // eslint-disable-next-line no-console\n console.warn(\"Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments\");\n // eslint-disable-next-line no-console\n console.warn(new Error().stack);\n }\n return new Date(NaN);\n }\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isAfter\n * @category Common Helpers\n * @summary Is the first date after the second one?\n *\n * @description\n * Is the first date after the second one?\n *\n * @param {Date|Number} date - the date that should be after the other one to return true\n * @param {Date|Number} dateToCompare - the date to compare with\n * @returns {Boolean} the first date is after the second date\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Is 10 July 1989 after 11 February 1987?\n * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> true\n */\nexport default function isAfter(dirtyDate, dirtyDateToCompare) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var dateToCompare = toDate(dirtyDateToCompare);\n return date.getTime() > dateToCompare.getTime();\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isBefore\n * @category Common Helpers\n * @summary Is the first date before the second one?\n *\n * @description\n * Is the first date before the second one?\n *\n * @param {Date|Number} date - the date that should be before the other one to return true\n * @param {Date|Number} dateToCompare - the date to compare with\n * @returns {Boolean} the first date is before the second date\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Is 10 July 1989 before 11 February 1987?\n * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> false\n */\nexport default function isBefore(dirtyDate, dirtyDateToCompare) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var dateToCompare = toDate(dirtyDateToCompare);\n return date.getTime() < dateToCompare.getTime();\n}"],"mappings":"AAAA,SAASA,EAAQC,GACf,0BAEA,OAAOD,EAAU,mBAAqBE,QAAU,iBAAmBA,OAAOC,SAAW,SAAUF,GAC7F,cAAcA,CAClB,EAAM,SAAUA,GACZ,OAAOA,GAAK,mBAAqBC,QAAUD,EAAEG,cAAgBF,QAAUD,IAAMC,OAAOG,UAAY,gBAAkBJ,CACtH,EAAKD,EAAQC,EACb,CCRe,SAASK,EAAaC,EAAUC,GAC7C,GAAIA,EAAKC,OAASF,EAAU,CAC1B,MAAM,IAAIG,UAAUH,EAAW,aAAeA,EAAW,EAAI,IAAM,IAAM,uBAAyBC,EAAKC,OAAS,WACpH,CACA,CC4Be,SAASE,EAAOC,GAC7BN,EAAa,EAAGO,WAChB,IAAIC,EAASC,OAAOV,UAAUW,SAASC,KAAKL,GAG5C,GAAIA,aAAoBM,MAAQlB,EAAQY,KAAc,UAAYE,IAAW,gBAAiB,CAE5F,OAAO,IAAII,KAAKN,EAASO,UAC7B,MAAS,UAAWP,IAAa,UAAYE,IAAW,kBAAmB,CACvE,OAAO,IAAII,KAAKN,EACpB,KAAS,CACL,WAAYA,IAAa,UAAYE,IAAW,2BAA6BM,UAAY,YAAa,CAEpGA,QAAQC,KAAK,sNAEbD,QAAQC,MAAK,IAAIC,OAAQC,MAC/B,CACI,OAAO,IAAIL,KAAKM,IACpB,CACA,CC/Be,SAASC,EAAQC,EAAWC,GACzCrB,EAAa,EAAGO,WAChB,IAAIe,EAAOjB,EAAOe,GAClB,IAAIG,EAAgBlB,EAAOgB,GAC3B,OAAOC,EAAKT,UAAYU,EAAcV,SACxC,CCLe,SAASW,EAASJ,EAAWC,GAC1CrB,EAAa,EAAGO,WAChB,IAAIe,EAAOjB,EAAOe,GAClB,IAAIG,EAAgBlB,EAAOgB,GAC3B,OAAOC,EAAKT,UAAYU,EAAcV,SACxC,Q","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as e,c as t,h as s,H as i,g as r}from"./p-312791fb.js";const c=":host{display:block;box-sizing:border-box}:host .conteiner{display:flex;box-sizing:border-box;padding:12px;gap:12px;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 .icon-left{margin-right:5px}:host .icon-right{margin-left:auto;cursor:pointer}:host .text{margin-top:3px}:host .actions{margin-top:5px}";const o=c;const a=class{constructor(s){e(this,s);this.close=t(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.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 s(i,{key:"b7b63129f2d0c1d2f8b451a7f795befc9e085238"},s("div",{key:"b8450a11d65f0bbb3c9f688fccbb38efc7bf223c",class:this.getClasses(),style:this.styles},s("cura-icon",{key:"9a5dc4295f7c40362a86f77fe805127590812f15",name:this.getNameIcon(),class:"icon-left",size:16,color:`${this.type}-dark`}),s("div",{key:"6bbe4799d3f73df0cda2e94da2d71cdc1bfc855a",class:"content"},s("cura-label",{key:"8b761ec2804bb5633893af8ed91f5de268bbf029",class:"title",size:"small",color:"neutral-darker",weight:"bold"},this.label),s("cura-paragraph",{key:"4e7e7726758c26f1f397e8efc84d5eba1c88b428",class:"text",color:`${this.type}-darker`,size:"xsmall",marginBlock:"0",lineHeight:"133.33%"},s("slot",{key:"f589c6fb9016b43b3557492a3ef1b4ede4a807a6"})),s("div",{key:"b212e9255855b96d5c069dd7544675386f00b372",class:"actions"},s("slot",{key:"174dfcc7dfc4ff3e29185843e010dddae75463f5",name:"actions"}))),this.closeable?s("cura-icon",{name:"close",size:16,color:"error-dark",class:"icon-right",onClick:this.handleClose}):""))}get host(){return r(this)}static get watchers(){return{type:["setColors"]}}};a.style=o;export{a as cura_alert};
2
- //# sourceMappingURL=p-4c7a2419.entry.js.map
1
+ import{r as e,c as t,h as s,H as a,g as i}from"./p-fd5ed6b0.js";const r=":host{display:block;box-sizing:border-box}:host .conteiner{display:flex;box-sizing:border-box;padding:12px;gap:12px;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 .icon-left{margin-right:5px}:host .icon-right{margin-left:auto;cursor:pointer}:host .text{margin-top:3px}:host .actions{margin-top:5px}";const o=r;const c=class{constructor(s){e(this,s);this.close=t(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.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 s(a,{key:"c5398d59da323dee68eed1cb7c27841df0e12d14"},s("div",{key:"d9bb0ab7a2106e710a113513e6eeb1297b9bd205",class:this.getClasses(),style:this.styles},s("cura-icon",{key:"54665c81a59cbca3686abc6f5e388da32e2211ed",name:this.getNameIcon(),class:"icon-left",size:16,color:`${this.type}-dark`}),s("div",{key:"466f9f4aed5096658de1e19521cefe2915b095af",class:"content"},s("cura-label",{key:"6b3d9cd0352b5d5254305baa5a71a1b1782f637f",class:"title",size:"small",color:"neutral-darker",weight:"bold"},this.label),s("cura-paragraph",{key:"5dbad5e65d88b59a81b7df97154071a607d73900",class:"text",color:`${this.type}-darker`,size:"xsmall",marginBlock:"0",lineHeight:"133.33%"},s("slot",{key:"cb75d38c35d34a7bee4e187c640a1269bad192b0"})),s("div",{key:"a6930bb463601a2ba429b23fad61847e8dee01f3",class:"actions"},s("slot",{key:"7f4fc8b08a870f578d0b241df00650ebf3db83e0",name:"actions"}))),this.closeable?s("cura-icon",{name:"close",size:16,color:"error-dark",class:"icon-right",onClick:this.handleClose}):""))}get host(){return i(this)}static get watchers(){return{type:["setColors"]}}};c.style=o;export{c as cura_alert};
2
+ //# sourceMappingURL=p-2d267d23.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,h as i,H as o}from"./p-312791fb.js";import{l as s}from"./p-efcb32eb.js";const n=':host{--border-radius:4px;display:inline-block;vertical-align:middle;position:relative}:host button,:host a{outline:none;box-shadow:none;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none !important;font-size:var(--font-size);cursor:pointer;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear;border-radius:var(--border-radius);position:relative;background-color:transparent;border:none}:host button:focus,:host a:focus{outline:2px solid #6EA8FF}:host button.large,:host a.large{padding:calc(var(--base-spacing) * 3px) calc(var(--base-spacing) * 4px);min-height:calc(var(--base-spacing) * 11px)}:host button.medium,:host a.medium{padding:calc(var(--base-spacing) * 3px);min-height:calc(var(--base-spacing) * 10px)}:host button.small,:host a.small{padding:calc(var(--base-spacing) * 2px);min-height:calc(var(--base-spacing) * 8px)}:host button .button-container,:host a .button-container{display:flex;align-items:center;opacity:1;transition:opacity 0.2s linear;position:relative}:host button.icon-right .button-container,:host a.icon-right .button-container{flex-direction:row-reverse}:host button.justify .button-container,:host a.justify .button-container{width:100%}:host button cura-label,:host a cura-label{flex:1;text-align:var(--text-align, "left")}:host button.icon-left cura-icon,:host a.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 3px)}:host button.icon-right cura-icon,:host a.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 3px)}:host button.medium.icon-left cura-icon,:host button.small.icon-left cura-icon,:host a.medium.icon-left cura-icon,:host a.small.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 2px)}:host button.medium.icon-right cura-icon,:host button.small.icon-right cura-icon,:host a.medium.icon-right cura-icon,:host a.small.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 2px)}:host button.disabled,:host a.disabled{cursor:not-allowed}:host button.icon-only,:host a.icon-only{padding:calc(var(--base-spacing) * 3px) calc(var(--base-spacing) * 3px)}:host button.icon-only cura-label,:host a.icon-only cura-label{display:none}:host button.icon-only cura-icon,:host a.icon-only cura-icon{margin-left:0 !important;margin-right:0 !important}:host button.icon-only.medium,:host a.icon-only.medium{padding:calc(var(--base-spacing) * 3px)}:host button.icon-only.small,:host a.icon-only.small{padding:calc(var(--base-spacing) * 2px)}:host button cura-loader-circle,:host a cura-loader-circle{position:absolute;display:none}:host button.isLoading,:host a.isLoading{cursor:wait}:host button.isLoading .button-container,:host a.isLoading .button-container{opacity:0}:host button.isLoading cura-loader-circle,:host a.isLoading cura-loader-circle{display:block}';const a=n;const e=class{constructor(i){t(this,i);if(i.$hostElement$["s-ei"]){this.internals=i.$hostElement$["s-ei"]}else{this.internals=i.$hostElement$.attachInternals();i.$hostElement$["s-ei"]=this.internals}this.type="button";this.size="large";this.disabled=false;this.isLoading=false;this.iconName=undefined;this.iconset="default";this.iconPosition="left";this.iconOnly=false;this.href=undefined;this.target="_self";this.color="primary";this.fontColor="dark";this.textAlign="left";this.justify=false;this.hovered=false;this.styles={}}connectedCallback(){this.weights=window.CuraAPI.theme.fonts.getWeights();this.styles["--base-spacing"]=window.CuraAPI.theme.spacing.getSpacing();this.styles["--neutral-white"]=window.CuraAPI.theme.colors.getColor(`neutral-white`);this.styles["--neutral-base"]=window.CuraAPI.theme.colors.getColor(`neutral-base`);this.styles["--neutral-dark"]=window.CuraAPI.theme.colors.getColor(`neutral-dark`);this.styles["--font-size"]=window.CuraAPI.theme.fonts.getSize();this.styles["--font-family"]=window.CuraAPI.theme.fonts.getFamily();this.styles["--font-weight-medium"]=this.weights.medium;this.styles["--text-align"]=this.textAlign}getClasses(){const t={};t[`${this.size.toLowerCase()}`]=true;t[`icon-${this.iconPosition.toLowerCase()}`]=true;t[`icon-only`]=this.iconOnly;t["disabled"]=this.disabled;t["isLoading"]=this.isLoading;t["justify"]=this.justify;return t}getIcon(){if(!this.iconName)return null;const t=this.size==="large"?20:16;return i("cura-icon",{name:this.iconName,iconset:this.iconset,size:t,color:this.getSymbolColor()})}handleMouseEnter(){if(this.disabled)return;this.hovered=true}handleMouseLeave(){this.hovered=false}getSymbolColor(){if(this.disabled)return"neutral-dark";if(this.hovered&&!this.isLoading)return this.fontColor==="light"?`${this.color}-light`:`${this.color}-darker`;return this.fontColor==="light"?"neutral-white":`${this.color}-dark`}handleClick(t){if(this.disabled||this.isLoading){t.preventDefault();return}if(!this.href){if(this.type==="submit"&&this.internals.form)this.internals.form.submit();if(this.type==="reset"&&this.internals.form)this.internals.form.reset()}}render(){const t=this.getSymbolColor();const n=s[this.size]||s["default"];return i(o,{key:"a149c7f0dd3a413c563f891c9298d66cde905f5e"},this.href?i("a",{href:this.disabled?"":this.href,target:this.target,class:this.getClasses(),style:this.styles,onClick:t=>this.handleClick(t),onMouseEnter:()=>this.handleMouseEnter(),onMouseLeave:()=>this.handleMouseLeave()},i("span",{class:"button-container"},this.getIcon(),i("cura-label",{size:n,lineHeight:"105%",color:t},i("slot",null))),i("cura-loader-circle",{size:this.size,color:t})):i("button",{class:this.getClasses(),style:this.styles,disabled:this.disabled||null,onClick:t=>this.handleClick(t),onMouseEnter:()=>this.handleMouseEnter(),onMouseLeave:()=>this.handleMouseLeave(),type:this.type},i("span",{class:"button-container"},this.getIcon(),i("cura-label",{size:n,lineHeight:"105%",color:t},i("slot",null))),i("cura-loader-circle",{size:this.size,color:t})))}static get formAssociated(){return true}static get watchers(){return{fontColor:["getSymbolColor"],color:["getSymbolColor"]}}};e.style=a;export{e as cura_button_transparent};
2
- //# sourceMappingURL=p-9b658260.entry.js.map
1
+ import{r as t,h as i,H as o}from"./p-fd5ed6b0.js";import{l as s}from"./p-efcb32eb.js";const a=':host{--border-radius:4px;display:inline-block;vertical-align:middle;position:relative}:host button,:host a{outline:none;box-shadow:none;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none !important;font-size:var(--font-size);cursor:pointer;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear;border-radius:var(--border-radius);position:relative;background-color:transparent;border:none}:host button:focus,:host a:focus{outline:2px solid #6EA8FF}:host button.large,:host a.large{padding:calc(var(--base-spacing) * 3px) calc(var(--base-spacing) * 4px);min-height:calc(var(--base-spacing) * 11px)}:host button.medium,:host a.medium{padding:calc(var(--base-spacing) * 3px);min-height:calc(var(--base-spacing) * 10px)}:host button.small,:host a.small{padding:calc(var(--base-spacing) * 2px);min-height:calc(var(--base-spacing) * 8px)}:host button .button-container,:host a .button-container{display:flex;align-items:center;opacity:1;transition:opacity 0.2s linear;position:relative}:host button.icon-right .button-container,:host a.icon-right .button-container{flex-direction:row-reverse}:host button.justify .button-container,:host a.justify .button-container{width:100%}:host button cura-label,:host a cura-label{flex:1;text-align:var(--text-align, "left")}:host button.icon-left cura-icon,:host a.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 3px)}:host button.icon-right cura-icon,:host a.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 3px)}:host button.medium.icon-left cura-icon,:host button.small.icon-left cura-icon,:host a.medium.icon-left cura-icon,:host a.small.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 2px)}:host button.medium.icon-right cura-icon,:host button.small.icon-right cura-icon,:host a.medium.icon-right cura-icon,:host a.small.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 2px)}:host button.disabled,:host a.disabled{cursor:not-allowed}:host button.icon-only,:host a.icon-only{padding:calc(var(--base-spacing) * 3px) calc(var(--base-spacing) * 3px)}:host button.icon-only cura-label,:host a.icon-only cura-label{display:none}:host button.icon-only cura-icon,:host a.icon-only cura-icon{margin-left:0 !important;margin-right:0 !important}:host button.icon-only.medium,:host a.icon-only.medium{padding:calc(var(--base-spacing) * 3px)}:host button.icon-only.small,:host a.icon-only.small{padding:calc(var(--base-spacing) * 2px)}:host button cura-loader-circle,:host a cura-loader-circle{position:absolute;display:none}:host button.isLoading,:host a.isLoading{cursor:wait}:host button.isLoading .button-container,:host a.isLoading .button-container{opacity:0}:host button.isLoading cura-loader-circle,:host a.isLoading cura-loader-circle{display:block}';const n=a;const e=class{constructor(i){t(this,i);if(i.$hostElement$["s-ei"]){this.internals=i.$hostElement$["s-ei"]}else{this.internals=i.$hostElement$.attachInternals();i.$hostElement$["s-ei"]=this.internals}this.type="button";this.size="large";this.disabled=false;this.isLoading=false;this.iconName=undefined;this.iconset="default";this.iconPosition="left";this.iconOnly=false;this.href=undefined;this.target="_self";this.color="primary";this.fontColor="dark";this.textAlign="left";this.justify=false;this.hovered=false;this.styles={}}connectedCallback(){this.weights=window.CuraAPI.theme.fonts.getWeights();this.styles["--base-spacing"]=window.CuraAPI.theme.spacing.getSpacing();this.styles["--neutral-white"]=window.CuraAPI.theme.colors.getColor(`neutral-white`);this.styles["--neutral-base"]=window.CuraAPI.theme.colors.getColor(`neutral-base`);this.styles["--neutral-dark"]=window.CuraAPI.theme.colors.getColor(`neutral-dark`);this.styles["--font-size"]=window.CuraAPI.theme.fonts.getSize();this.styles["--font-family"]=window.CuraAPI.theme.fonts.getFamily();this.styles["--font-weight-medium"]=this.weights.medium;this.styles["--text-align"]=this.textAlign}getClasses(){const t={};t[`${this.size.toLowerCase()}`]=true;t[`icon-${this.iconPosition.toLowerCase()}`]=true;t[`icon-only`]=this.iconOnly;t["disabled"]=this.disabled;t["isLoading"]=this.isLoading;t["justify"]=this.justify;return t}getIcon(){if(!this.iconName)return null;const t=this.size==="large"?20:16;return i("cura-icon",{name:this.iconName,iconset:this.iconset,size:t,color:this.getSymbolColor()})}handleMouseEnter(){if(this.disabled)return;this.hovered=true}handleMouseLeave(){this.hovered=false}getSymbolColor(){if(this.disabled)return"neutral-dark";if(this.hovered&&!this.isLoading)return this.fontColor==="light"?`${this.color}-light`:`${this.color}-darker`;return this.fontColor==="light"?"neutral-white":`${this.color}-dark`}handleClick(t){if(this.disabled||this.isLoading){t.preventDefault();return}if(!this.href){if(this.type==="submit"&&this.internals.form)this.internals.form.submit();if(this.type==="reset"&&this.internals.form)this.internals.form.reset()}}render(){const t=this.getSymbolColor();const a=s[this.size]||s["default"];return i(o,{key:"d7bfd59d8a84d299a3d59dfd2d7b48ca6a9f56ee"},this.href?i("a",{href:this.disabled?"":this.href,target:this.target,class:this.getClasses(),style:this.styles,onClick:t=>this.handleClick(t),onMouseEnter:()=>this.handleMouseEnter(),onMouseLeave:()=>this.handleMouseLeave()},i("span",{class:"button-container"},this.getIcon(),i("cura-label",{size:a,lineHeight:"105%",color:t},i("slot",null))),i("cura-loader-circle",{size:this.size,color:t})):i("button",{class:this.getClasses(),style:this.styles,disabled:this.disabled||null,onClick:t=>this.handleClick(t),onMouseEnter:()=>this.handleMouseEnter(),onMouseLeave:()=>this.handleMouseLeave(),type:this.type},i("span",{class:"button-container"},this.getIcon(),i("cura-label",{size:a,lineHeight:"105%",color:t},i("slot",null))),i("cura-loader-circle",{size:this.size,color:t})))}static get formAssociated(){return true}static get watchers(){return{fontColor:["getSymbolColor"],color:["getSymbolColor"]}}};e.style=n;export{e as cura_button_transparent};
2
+ //# sourceMappingURL=p-33772510.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,h as o,H as i}from"./p-312791fb.js";import{l as s}from"./p-efcb32eb.js";const a=':host{--border-radius:4px;display:inline-block;vertical-align:middle;position:relative}:host button,:host a{outline:none;box-shadow:none;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none !important;font-size:var(--font-size);cursor:pointer;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear;border-radius:var(--border-radius);position:relative;background-color:transparent;box-sizing:border-box;border:none}:host button:focus,:host a:focus{outline:2px solid #6EA8FF}:host button::before,:host a::before{content:"";width:100%;height:100%;position:absolute;left:0px;top:0px;box-sizing:border-box;border:2px solid var(--color-dark-neutral-purewhite);border-radius:var(--border-radius)}:host button:not(.disabled):not(.isLoading):hover,:host a:not(.disabled):not(.isLoading):hover{background-color:var(--color-lighter-color-darker)}:host button:not(.disabled):not(.inverted):not(.isLoading):active,:host a:not(.disabled):not(.inverted):not(.isLoading):active{background-color:var(--color-light-color-darker)}:host button.large,:host a.large{padding:calc(var(--base-spacing) * 3px) calc(var(--base-spacing) * 4px);min-height:calc(var(--base-spacing) * 11px)}:host button.medium,:host a.medium{padding:calc(var(--base-spacing) * 3px);min-height:calc(var(--base-spacing) * 10px)}:host button.small,:host a.small{padding:calc(var(--base-spacing) * 2px);min-height:calc(var(--base-spacing) * 8px)}:host button .button-container,:host a .button-container{display:flex;align-items:center;opacity:1;transition:opacity 0.2s linear;position:relative}:host button.icon-right .button-container,:host a.icon-right .button-container{flex-direction:row-reverse}:host button.justify .button-container,:host a.justify .button-container{width:100%}:host button cura-label,:host a cura-label{flex:1;text-align:var(--text-align, "left")}:host button.icon-left cura-icon,:host a.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 3px)}:host button.icon-right cura-icon,:host a.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 3px)}:host button.medium.icon-left cura-icon,:host button.small.icon-left cura-icon,:host a.medium.icon-left cura-icon,:host a.small.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 2px)}:host button.medium.icon-right cura-icon,:host button.small.icon-right cura-icon,:host a.medium.icon-right cura-icon,:host a.small.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 2px)}:host button.disabled,:host a.disabled{cursor:not-allowed}:host button.disabled::before,:host a.disabled::before{border-color:var(--neutral-dark)}:host button.icon-only,:host a.icon-only{padding:calc(var(--base-spacing) * 3px) calc(var(--base-spacing) * 3px)}:host button.icon-only cura-label,:host a.icon-only cura-label{display:none}:host button.icon-only cura-icon,:host a.icon-only cura-icon{margin-left:0 !important;margin-right:0 !important}:host button.icon-only.medium,:host a.icon-only.medium{padding:calc(var(--base-spacing) * 3px)}:host button.icon-only.small,:host a.icon-only.small{padding:calc(var(--base-spacing) * 2px)}:host button cura-loader-circle,:host a cura-loader-circle{position:absolute;display:none}:host button.isLoading,:host a.isLoading{cursor:wait}:host button.isLoading .button-container,:host a.isLoading .button-container{opacity:0}:host button.isLoading cura-loader-circle,:host a.isLoading cura-loader-circle{display:block}';const n=a;const e=class{constructor(o){t(this,o);if(o.$hostElement$["s-ei"]){this.internals=o.$hostElement$["s-ei"]}else{this.internals=o.$hostElement$.attachInternals();o.$hostElement$["s-ei"]=this.internals}this.type="button";this.size="large";this.disabled=false;this.isLoading=false;this.iconName=undefined;this.iconset="default";this.iconPosition="left";this.iconOnly=false;this.href=undefined;this.target="_self";this.color="primary";this.background="light";this.fontColor="dark";this.textAlign="left";this.justify=false;this.styles={};this.hovered=false}connectedCallback(){this.weights=window.CuraAPI.theme.fonts.getWeights();this.styles["--base-spacing"]=window.CuraAPI.theme.spacing.getSpacing();this.styles["--neutral-white"]=window.CuraAPI.theme.colors.getColor(`neutral-white`);this.styles["--neutral-base"]=window.CuraAPI.theme.colors.getColor(`neutral-base`);this.styles["--neutral-dark"]=window.CuraAPI.theme.colors.getColor(`neutral-dark`);this.styles["--font-size"]=window.CuraAPI.theme.fonts.getSize();this.styles["--font-family"]=window.CuraAPI.theme.fonts.getFamily();this.styles["--font-weight-medium"]=this.weights.medium;this.styles["--text-align"]=this.textAlign;this.setColors()}getClasses(){var t;const o={};o[`${(t=this.size)===null||t===void 0?void 0:t.toLowerCase()}`]=true;o[`icon-${this.iconPosition.toLowerCase()}`]=true;o[`icon-only`]=this.iconOnly;o["disabled"]=this.disabled;o["isLoading"]=this.isLoading;o["justify"]=this.justify;return o}setColors(){const t=[{name:"--color-dark-neutral-purewhite",thema:`${this.background==="light"?`${this.color}-dark`:"neutral-purewhite"}`},{name:"--color-lighter-color-darker",thema:`${this.background==="light"?`${this.color}-lighter`:`${this.color}-darker`}`},{name:"--color-light-color-darker",thema:`${this.background==="light"?`${this.color}-light`:`${this.color}-lighter`}`},{name:"--neutral-dark",thema:"neutral-dark"}];t.forEach((t=>this.styles[t.name]=window.CuraAPI.theme.colors.getColor(t.thema)));this.styles=Object.assign({},this.styles)}getIcon(){if(!this.iconName)return"";const t=this.size==="large"?20:16;return o("cura-icon",{name:this.iconName,iconset:this.iconset,size:t,color:this.getSymbolColor()})}handleMouseEnter(){if(this.disabled)return;this.hovered=true}handleMouseLeave(){this.hovered=false}getSymbolColor(){if(this.disabled)return"neutral-dark";return this.fontColor==="light"?"neutral-purewhite":`${this.color}-darker`}handleClick(t){if(this.disabled||this.isLoading){t.preventDefault();return}if(!this.href){if(this.type==="submit"&&this.internals.form)this.internals.form.submit();if(this.type==="reset"&&this.internals.form)this.internals.form.reset()}}render(){const t=this.getSymbolColor();const a=s[this.size]||s["default"];return o(i,{key:"69e82dd1a26ea932f27f11ad5da295810ed3db1e"},this.href?o("a",{href:this.disabled?"":this.href,target:this.target,class:this.getClasses(),style:this.styles,onClick:t=>this.handleClick(t),onMouseEnter:()=>this.handleMouseEnter(),onMouseLeave:()=>this.handleMouseLeave()},o("span",{class:"button-container"},this.getIcon(),o("cura-label",{size:a,lineHeight:"105%",color:t},o("slot",null))),o("cura-loader-circle",{size:this.size,color:t})):o("button",{class:this.getClasses(),style:this.styles,disabled:this.disabled||null,onClick:t=>this.handleClick(t),onMouseEnter:()=>this.handleMouseEnter(),onMouseLeave:()=>this.handleMouseLeave(),type:this.type},o("span",{class:"button-container"},this.getIcon(),o("cura-label",{size:a,lineHeight:"105%",color:t},o("slot",null))),o("cura-loader-circle",{size:this.size,color:t})))}static get formAssociated(){return true}static get watchers(){return{background:["setColors"],color:["setColors","getSymbolColor"],fontColor:["getSymbolColor"]}}};e.style=n;export{e as cura_button_outline};
2
- //# sourceMappingURL=p-afd2c148.entry.js.map
1
+ import{r as t,h as o,H as i}from"./p-fd5ed6b0.js";import{l as s}from"./p-efcb32eb.js";const a=':host{--border-radius:4px;display:inline-block;vertical-align:middle;position:relative}:host button,:host a{outline:none;box-shadow:none;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none !important;font-size:var(--font-size);cursor:pointer;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear;border-radius:var(--border-radius);position:relative;background-color:transparent;box-sizing:border-box;border:none}:host button:focus,:host a:focus{outline:2px solid #6EA8FF}:host button::before,:host a::before{content:"";width:100%;height:100%;position:absolute;left:0px;top:0px;box-sizing:border-box;border:2px solid var(--color-dark-neutral-purewhite);border-radius:var(--border-radius)}:host button:not(.disabled):not(.isLoading):hover,:host a:not(.disabled):not(.isLoading):hover{background-color:var(--color-lighter-color-darker)}:host button:not(.disabled):not(.inverted):not(.isLoading):active,:host a:not(.disabled):not(.inverted):not(.isLoading):active{background-color:var(--color-light-color-darker)}:host button.large,:host a.large{padding:calc(var(--base-spacing) * 3px) calc(var(--base-spacing) * 4px);min-height:calc(var(--base-spacing) * 11px)}:host button.medium,:host a.medium{padding:calc(var(--base-spacing) * 3px);min-height:calc(var(--base-spacing) * 10px)}:host button.small,:host a.small{padding:calc(var(--base-spacing) * 2px);min-height:calc(var(--base-spacing) * 8px)}:host button .button-container,:host a .button-container{display:flex;align-items:center;opacity:1;transition:opacity 0.2s linear;position:relative}:host button.icon-right .button-container,:host a.icon-right .button-container{flex-direction:row-reverse}:host button.justify .button-container,:host a.justify .button-container{width:100%}:host button cura-label,:host a cura-label{flex:1;text-align:var(--text-align, "left")}:host button.icon-left cura-icon,:host a.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 3px)}:host button.icon-right cura-icon,:host a.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 3px)}:host button.medium.icon-left cura-icon,:host button.small.icon-left cura-icon,:host a.medium.icon-left cura-icon,:host a.small.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 2px)}:host button.medium.icon-right cura-icon,:host button.small.icon-right cura-icon,:host a.medium.icon-right cura-icon,:host a.small.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 2px)}:host button.disabled,:host a.disabled{cursor:not-allowed}:host button.disabled::before,:host a.disabled::before{border-color:var(--neutral-dark)}:host button.icon-only,:host a.icon-only{padding:calc(var(--base-spacing) * 3px) calc(var(--base-spacing) * 3px)}:host button.icon-only cura-label,:host a.icon-only cura-label{display:none}:host button.icon-only cura-icon,:host a.icon-only cura-icon{margin-left:0 !important;margin-right:0 !important}:host button.icon-only.medium,:host a.icon-only.medium{padding:calc(var(--base-spacing) * 3px)}:host button.icon-only.small,:host a.icon-only.small{padding:calc(var(--base-spacing) * 2px)}:host button cura-loader-circle,:host a cura-loader-circle{position:absolute;display:none}:host button.isLoading,:host a.isLoading{cursor:wait}:host button.isLoading .button-container,:host a.isLoading .button-container{opacity:0}:host button.isLoading cura-loader-circle,:host a.isLoading cura-loader-circle{display:block}';const n=a;const e=class{constructor(o){t(this,o);if(o.$hostElement$["s-ei"]){this.internals=o.$hostElement$["s-ei"]}else{this.internals=o.$hostElement$.attachInternals();o.$hostElement$["s-ei"]=this.internals}this.type="button";this.size="large";this.disabled=false;this.isLoading=false;this.iconName=undefined;this.iconset="default";this.iconPosition="left";this.iconOnly=false;this.href=undefined;this.target="_self";this.color="primary";this.background="light";this.fontColor="dark";this.textAlign="left";this.justify=false;this.styles={};this.hovered=false}connectedCallback(){this.weights=window.CuraAPI.theme.fonts.getWeights();this.styles["--base-spacing"]=window.CuraAPI.theme.spacing.getSpacing();this.styles["--neutral-white"]=window.CuraAPI.theme.colors.getColor(`neutral-white`);this.styles["--neutral-base"]=window.CuraAPI.theme.colors.getColor(`neutral-base`);this.styles["--neutral-dark"]=window.CuraAPI.theme.colors.getColor(`neutral-dark`);this.styles["--font-size"]=window.CuraAPI.theme.fonts.getSize();this.styles["--font-family"]=window.CuraAPI.theme.fonts.getFamily();this.styles["--font-weight-medium"]=this.weights.medium;this.styles["--text-align"]=this.textAlign;this.setColors()}getClasses(){var t;const o={};o[`${(t=this.size)===null||t===void 0?void 0:t.toLowerCase()}`]=true;o[`icon-${this.iconPosition.toLowerCase()}`]=true;o[`icon-only`]=this.iconOnly;o["disabled"]=this.disabled;o["isLoading"]=this.isLoading;o["justify"]=this.justify;return o}setColors(){const t=[{name:"--color-dark-neutral-purewhite",thema:`${this.background==="light"?`${this.color}-dark`:"neutral-purewhite"}`},{name:"--color-lighter-color-darker",thema:`${this.background==="light"?`${this.color}-lighter`:`${this.color}-darker`}`},{name:"--color-light-color-darker",thema:`${this.background==="light"?`${this.color}-light`:`${this.color}-lighter`}`},{name:"--neutral-dark",thema:"neutral-dark"}];t.forEach((t=>this.styles[t.name]=window.CuraAPI.theme.colors.getColor(t.thema)));this.styles=Object.assign({},this.styles)}getIcon(){if(!this.iconName)return"";const t=this.size==="large"?20:16;return o("cura-icon",{name:this.iconName,iconset:this.iconset,size:t,color:this.getSymbolColor()})}handleMouseEnter(){if(this.disabled)return;this.hovered=true}handleMouseLeave(){this.hovered=false}getSymbolColor(){if(this.disabled)return"neutral-dark";return this.fontColor==="light"?"neutral-purewhite":`${this.color}-darker`}handleClick(t){if(this.disabled||this.isLoading){t.preventDefault();return}if(!this.href){if(this.type==="submit"&&this.internals.form)this.internals.form.submit();if(this.type==="reset"&&this.internals.form)this.internals.form.reset()}}render(){const t=this.getSymbolColor();const a=s[this.size]||s["default"];return o(i,{key:"3ce0297b4cfd44f8baffbcd78de14a02d15ba307"},this.href?o("a",{href:this.disabled?"":this.href,target:this.target,class:this.getClasses(),style:this.styles,onClick:t=>this.handleClick(t),onMouseEnter:()=>this.handleMouseEnter(),onMouseLeave:()=>this.handleMouseLeave()},o("span",{class:"button-container"},this.getIcon(),o("cura-label",{size:a,lineHeight:"105%",color:t},o("slot",null))),o("cura-loader-circle",{size:this.size,color:t})):o("button",{class:this.getClasses(),style:this.styles,disabled:this.disabled||null,onClick:t=>this.handleClick(t),onMouseEnter:()=>this.handleMouseEnter(),onMouseLeave:()=>this.handleMouseLeave(),type:this.type},o("span",{class:"button-container"},this.getIcon(),o("cura-label",{size:a,lineHeight:"105%",color:t},o("slot",null))),o("cura-loader-circle",{size:this.size,color:t})))}static get formAssociated(){return true}static get watchers(){return{background:["setColors"],color:["setColors","getSymbolColor"],fontColor:["getSymbolColor"]}}};e.style=n;export{e as cura_button_outline};
2
+ //# sourceMappingURL=p-41c3d47d.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-312791fb.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:"d24019856ac701df4acbe1f7e104df67eae93945"},a("div",{key:"413093861acf19223c65aae30bd5cd62053eec43",class:this.getClasses(),style:this.styles,onClick:this.handleClick},a("div",{key:"5ba8881480f1ef8692cde13258246175ac52f3c8",class:"info"},a("div",{key:"e3473b617a9261dfacea2c2b8bd826b87a739c6b",class:"label-wrapper"},a("cura-label",{key:"2a4b7c973795a23b123c250259d95df63796f53c",class:"label",weight:"bold",size:this.size==="large"?"medium":"xsmall",color:this.assignColor("label")},this.label),this.required&&a("cura-paragraph",{key:"093a39a051be67644f6206095686cda606a3c9f5",lineHeight:"0%",marginBlock:"0",color:"error-base"},"* ")),a("cura-label",{key:"8fe9215b5a56a1cf7f10871e721c1b04cd88d37f",color:this.assignColor("message"),size:"xsmall",class:"message"},a("slot",{key:"5633213ce05d2f554a2acc9804d5306436eaac45"}))),a("div",{key:"5ff152af172d4a8cb0e83e2e50ec8fa6449ef9e4",class:"checkbox",tabIndex:this.ontabindex},a("input",{key:"f62a404773c19fedfd236aa82ecd8582fdfd4c36",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-fbf20e5a.entry.js.map
1
+ import{r as e,c as r,h as a,H as s,g as t}from"./p-fd5ed6b0.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:"a346ec6f3d5a982471ac922982af7f9dbee14865"},a("div",{key:"5786471ce3a9c1e116411f14b22d8bc5d7d39dce",class:this.getClasses(),style:this.styles,onClick:this.handleClick},a("div",{key:"18d6646e969d7f78acba9deab9eb644de2df7011",class:"info"},a("div",{key:"fa29dbdfcd215a83aff824cb5d23d15b8f93313f",class:"label-wrapper"},a("cura-label",{key:"db7c96cc88553166b78e70f0c773fde12d54fc40",class:"label",weight:"bold",size:this.size==="large"?"medium":"xsmall",color:this.assignColor("label")},this.label),this.required&&a("cura-paragraph",{key:"408383422b9cdf45fe7cbfb51f7ea06ae3d1a260",lineHeight:"0%",marginBlock:"0",color:"error-base"},"* ")),a("cura-label",{key:"4af49958c61ddc4e79b719ff03179e6003eee93c",color:this.assignColor("message"),size:"xsmall",class:"message"},a("slot",{key:"649bbc456157e103eb55c199857158d37c8b7b16"}))),a("div",{key:"b0abfc17ee08f13ad82e4c22ea8f90d980893274",class:"checkbox",tabIndex:this.ontabindex},a("input",{key:"fba5fbe2853e340cc30ffe8d663f62b874cd1877",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-44e3325a.entry.js.map
@@ -0,0 +1,2 @@
1
+ import{r as e,h as o,H as a}from"./p-fd5ed6b0.js";const r=":host{display:block;box-sizing:border-box;width:100%}cura-label{padding:12px 0px;border-bottom:1px solid var(--neutral-light)}";const t=r;const d=class{constructor(o){e(this,o)}render(){return o(a,{key:"5a6afd8afb971845aeef19cd4ea6fe7586a1fb4e",slot:"dropdown-search-option"},o("cura-label",{key:"00f5bc78178b6b549eaee21f28dcdb28b539099b",color:"neutral-dark",size:"xsmall",lineHeight:"16px",marginBlock:"0"},o("slot",{key:"0d858d26544542c8c05686a879a44366318e86ce"})))}};d.style=t;export{d as cura_dropdown_search_option_title};
2
+ //# sourceMappingURL=p-4e14c01c.entry.js.map
@@ -0,0 +1,2 @@
1
+ import{r as t,c as e,h as n,H as r}from"./p-fd5ed6b0.js";import{r as a,t as i,_ as o,i as s,a as u}from"./p-272c784a.js";function d(t){if(t===null||t===true||t===false){return NaN}var e=Number(t);if(isNaN(e)){return e}return e<0?Math.ceil(e):Math.floor(e)}function c(t,e){a(2,arguments);var n=i(t);var r=d(e);if(isNaN(r)){return new Date(NaN)}if(!r){return n}n.setDate(n.getDate()+r);return n}function l(t,e){a(2,arguments);var n=i(t);var r=d(e);if(isNaN(r)){return new Date(NaN)}if(!r){return n}var o=n.getDate();var s=new Date(n.getTime());s.setMonth(n.getMonth()+r+1,0);var u=s.getDate();if(o>=u){return s}else{n.setFullYear(s.getFullYear(),s.getMonth(),o);return n}}function h(t,e){a(2,arguments);var n=i(t).getTime();var r=d(e);return new Date(n+r)}var v={};function f(){return v}function m(t,e){var n,r,o,s,u,c,l,h;a(1,arguments);var v=f();var m=d((n=(r=(o=(s=e===null||e===void 0?void 0:e.weekStartsOn)!==null&&s!==void 0?s:e===null||e===void 0?void 0:(u=e.locale)===null||u===void 0?void 0:(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&o!==void 0?o:v.weekStartsOn)!==null&&r!==void 0?r:(l=v.locale)===null||l===void 0?void 0:(h=l.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&n!==void 0?n:0);if(!(m>=0&&m<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}var w=i(t);var g=w.getDay();var b=(g<m?7:0)+g-m;w.setDate(w.getDate()-b);w.setHours(0,0,0,0);return w}function w(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));e.setUTCFullYear(t.getFullYear());return t.getTime()-e.getTime()}function g(t){a(1,arguments);var e=i(t);e.setHours(0,0,0,0);return e}function b(t,e){a(2,arguments);var n=d(e);var r=n*7;return c(t,r)}var p=6e4;var y=36e5;function x(t,e){a(2,arguments);var n=g(t);var r=g(e);return n.getTime()===r.getTime()}function M(t){a(1,arguments);return t instanceof Date||o(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function D(t){a(1,arguments);if(!M(t)&&typeof t!=="number"){return false}var e=i(t);return!isNaN(Number(e))}function k(t){a(1,arguments);var e=i(t);var n=e.getMonth();e.setFullYear(e.getFullYear(),n+1,0);e.setHours(23,59,59,999);return e}function P(t,e){var n;a(1,arguments);var r=t||{};var o=i(r.start);var s=i(r.end);var u=s.getTime();if(!(o.getTime()<=u)){throw new RangeError("Invalid interval")}var d=[];var c=o;c.setHours(0,0,0,0);var l=Number((n=e===null||e===void 0?void 0:e.step)!==null&&n!==void 0?n:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");while(c.getTime()<=u){d.push(i(c));c.setDate(c.getDate()+l);c.setHours(0,0,0,0)}return d}function W(t){a(1,arguments);var e=t||{};var n=i(e.start);var r=i(e.end);var o=r.getTime();var s=[];if(!(n.getTime()<=o)){throw new RangeError("Invalid interval")}var u=n;u.setHours(0,0,0,0);u.setDate(1);while(u.getTime()<=o){s.push(i(u));u.setMonth(u.getMonth()+1)}return s}function N(t){a(1,arguments);var e=i(t);e.setDate(1);e.setHours(0,0,0,0);return e}function S(t){a(1,arguments);var e=i(t);var n=new Date(0);n.setFullYear(e.getFullYear(),0,1);n.setHours(0,0,0,0);return n}function E(t,e){var n,r,o,s,u,c,l,h;a(1,arguments);var v=f();var m=d((n=(r=(o=(s=e===null||e===void 0?void 0:e.weekStartsOn)!==null&&s!==void 0?s:e===null||e===void 0?void 0:(u=e.locale)===null||u===void 0?void 0:(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&o!==void 0?o:v.weekStartsOn)!==null&&r!==void 0?r:(l=v.locale)===null||l===void 0?void 0:(h=l.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&n!==void 0?n:0);if(!(m>=0&&m<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}var w=i(t);var g=w.getDay();var b=(g<m?-7:0)+6-(g-m);w.setDate(w.getDate()+b);w.setHours(23,59,59,999);return w}function j(t,e){a(2,arguments);var n=d(e);return h(t,-n)}var z=864e5;function q(t){a(1,arguments);var e=i(t);var n=e.getTime();e.setUTCMonth(0,1);e.setUTCHours(0,0,0,0);var r=e.getTime();var o=n-r;return Math.floor(o/z)+1}function C(t){a(1,arguments);var e=1;var n=i(t);var r=n.getUTCDay();var o=(r<e?7:0)+r-e;n.setUTCDate(n.getUTCDate()-o);n.setUTCHours(0,0,0,0);return n}function Y(t){a(1,arguments);var e=i(t);var n=e.getUTCFullYear();var r=new Date(0);r.setUTCFullYear(n+1,0,4);r.setUTCHours(0,0,0,0);var o=C(r);var s=new Date(0);s.setUTCFullYear(n,0,4);s.setUTCHours(0,0,0,0);var u=C(s);if(e.getTime()>=o.getTime()){return n+1}else if(e.getTime()>=u.getTime()){return n}else{return n-1}}function T(t){a(1,arguments);var e=Y(t);var n=new Date(0);n.setUTCFullYear(e,0,4);n.setUTCHours(0,0,0,0);var r=C(n);return r}var X=6048e5;function O(t){a(1,arguments);var e=i(t);var n=C(e).getTime()-T(e).getTime();return Math.round(n/X)+1}function R(t,e){var n,r,o,s,u,c,l,h;a(1,arguments);var v=f();var m=d((n=(r=(o=(s=e===null||e===void 0?void 0:e.weekStartsOn)!==null&&s!==void 0?s:e===null||e===void 0?void 0:(u=e.locale)===null||u===void 0?void 0:(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&o!==void 0?o:v.weekStartsOn)!==null&&r!==void 0?r:(l=v.locale)===null||l===void 0?void 0:(h=l.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&n!==void 0?n:0);if(!(m>=0&&m<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}var w=i(t);var g=w.getUTCDay();var b=(g<m?7:0)+g-m;w.setUTCDate(w.getUTCDate()-b);w.setUTCHours(0,0,0,0);return w}function L(t,e){var n,r,o,s,u,c,l,h;a(1,arguments);var v=i(t);var m=v.getUTCFullYear();var w=f();var g=d((n=(r=(o=(s=e===null||e===void 0?void 0:e.firstWeekContainsDate)!==null&&s!==void 0?s:e===null||e===void 0?void 0:(u=e.locale)===null||u===void 0?void 0:(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&o!==void 0?o:w.firstWeekContainsDate)!==null&&r!==void 0?r:(l=w.locale)===null||l===void 0?void 0:(h=l.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(g>=1&&g<=7)){throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}var b=new Date(0);b.setUTCFullYear(m+1,0,g);b.setUTCHours(0,0,0,0);var p=R(b,e);var y=new Date(0);y.setUTCFullYear(m,0,g);y.setUTCHours(0,0,0,0);var x=R(y,e);if(v.getTime()>=p.getTime()){return m+1}else if(v.getTime()>=x.getTime()){return m}else{return m-1}}function B(t,e){var n,r,i,o,s,u,c,l;a(1,arguments);var h=f();var v=d((n=(r=(i=(o=e===null||e===void 0?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e===null||e===void 0?void 0:(s=e.locale)===null||s===void 0?void 0:(u=s.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&i!==void 0?i:h.firstWeekContainsDate)!==null&&r!==void 0?r:(c=h.locale)===null||c===void 0?void 0:(l=c.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&n!==void 0?n:1);var m=L(t,e);var w=new Date(0);w.setUTCFullYear(m,0,v);w.setUTCHours(0,0,0,0);var g=R(w,e);return g}var Q=6048e5;function A(t,e){a(1,arguments);var n=i(t);var r=R(n,e).getTime()-B(n,e).getTime();return Math.round(r/Q)+1}function G(t,e){var n=t<0?"-":"";var r=Math.abs(t).toString();while(r.length<e){r="0"+r}return n+r}var I={y:function t(e,n){var r=e.getUTCFullYear();var a=r>0?r:1-r;return G(n==="yy"?a%100:a,n.length)},M:function t(e,n){var r=e.getUTCMonth();return n==="M"?String(r+1):G(r+1,2)},d:function t(e,n){return G(e.getUTCDate(),n.length)},a:function t(e,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function t(e,n){return G(e.getUTCHours()%12||12,n.length)},H:function t(e,n){return G(e.getUTCHours(),n.length)},m:function t(e,n){return G(e.getUTCMinutes(),n.length)},s:function t(e,n){return G(e.getUTCSeconds(),n.length)},S:function t(e,n){var r=n.length;var a=e.getUTCMilliseconds();var i=Math.floor(a*Math.pow(10,r-3));return G(i,n.length)}};const H=I;var F={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};var $={G:function t(e,n,r){var a=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function t(e,n,r){if(n==="yo"){var a=e.getUTCFullYear();var i=a>0?a:1-a;return r.ordinalNumber(i,{unit:"year"})}return H.y(e,n)},Y:function t(e,n,r,a){var i=L(e,a);var o=i>0?i:1-i;if(n==="YY"){var s=o%100;return G(s,2)}if(n==="Yo"){return r.ordinalNumber(o,{unit:"year"})}return G(o,n.length)},R:function t(e,n){var r=Y(e);return G(r,n.length)},u:function t(e,n){var r=e.getUTCFullYear();return G(r,n.length)},Q:function t(e,n,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(a);case"QQ":return G(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function t(e,n,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(a);case"qq":return G(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function t(e,n,r){var a=e.getUTCMonth();switch(n){case"M":case"MM":return H.M(e,n);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function t(e,n,r){var a=e.getUTCMonth();switch(n){case"L":return String(a+1);case"LL":return G(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function t(e,n,r,a){var i=A(e,a);if(n==="wo"){return r.ordinalNumber(i,{unit:"week"})}return G(i,n.length)},I:function t(e,n,r){var a=O(e);if(n==="Io"){return r.ordinalNumber(a,{unit:"week"})}return G(a,n.length)},d:function t(e,n,r){if(n==="do"){return r.ordinalNumber(e.getUTCDate(),{unit:"date"})}return H.d(e,n)},D:function t(e,n,r){var a=q(e);if(n==="Do"){return r.ordinalNumber(a,{unit:"dayOfYear"})}return G(a,n.length)},E:function t(e,n,r){var a=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function t(e,n,r,a){var i=e.getUTCDay();var o=(i-a.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return G(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function t(e,n,r,a){var i=e.getUTCDay();var o=(i-a.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return G(o,n.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function t(e,n,r){var a=e.getUTCDay();var i=a===0?7:a;switch(n){case"i":return String(i);case"ii":return G(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function t(e,n,r){var a=e.getUTCHours();var i=a/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function t(e,n,r){var a=e.getUTCHours();var i;if(a===12){i=F.noon}else if(a===0){i=F.midnight}else{i=a/12>=1?"pm":"am"}switch(n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function t(e,n,r){var a=e.getUTCHours();var i;if(a>=17){i=F.evening}else if(a>=12){i=F.afternoon}else if(a>=4){i=F.morning}else{i=F.night}switch(n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function t(e,n,r){if(n==="ho"){var a=e.getUTCHours()%12;if(a===0)a=12;return r.ordinalNumber(a,{unit:"hour"})}return H.h(e,n)},H:function t(e,n,r){if(n==="Ho"){return r.ordinalNumber(e.getUTCHours(),{unit:"hour"})}return H.H(e,n)},K:function t(e,n,r){var a=e.getUTCHours()%12;if(n==="Ko"){return r.ordinalNumber(a,{unit:"hour"})}return G(a,n.length)},k:function t(e,n,r){var a=e.getUTCHours();if(a===0)a=24;if(n==="ko"){return r.ordinalNumber(a,{unit:"hour"})}return G(a,n.length)},m:function t(e,n,r){if(n==="mo"){return r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"})}return H.m(e,n)},s:function t(e,n,r){if(n==="so"){return r.ordinalNumber(e.getUTCSeconds(),{unit:"second"})}return H.s(e,n)},S:function t(e,n){return H.S(e,n)},X:function t(e,n,r,a){var i=a._originalDate||e;var o=i.getTimezoneOffset();if(o===0){return"Z"}switch(n){case"X":return U(o);case"XXXX":case"XX":return V(o);case"XXXXX":case"XXX":default:return V(o,":")}},x:function t(e,n,r,a){var i=a._originalDate||e;var o=i.getTimezoneOffset();switch(n){case"x":return U(o);case"xxxx":case"xx":return V(o);case"xxxxx":case"xxx":default:return V(o,":")}},O:function t(e,n,r,a){var i=a._originalDate||e;var o=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+J(o,":");case"OOOO":default:return"GMT"+V(o,":")}},z:function t(e,n,r,a){var i=a._originalDate||e;var o=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+J(o,":");case"zzzz":default:return"GMT"+V(o,":")}},t:function t(e,n,r,a){var i=a._originalDate||e;var o=Math.floor(i.getTime()/1e3);return G(o,n.length)},T:function t(e,n,r,a){var i=a._originalDate||e;var o=i.getTime();return G(o,n.length)}};function J(t,e){var n=t>0?"-":"+";var r=Math.abs(t);var a=Math.floor(r/60);var i=r%60;if(i===0){return n+String(a)}var o=e||"";return n+String(a)+o+G(i,2)}function U(t,e){if(t%60===0){var n=t>0?"-":"+";return n+G(Math.abs(t)/60,2)}return V(t,e)}function V(t,e){var n=e||"";var r=t>0?"-":"+";var a=Math.abs(t);var i=G(Math.floor(a/60),2);var o=G(a%60,2);return r+i+n+o}const Z=$;var K=function t(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}};var _=function t(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}};var tt=function t(e,n){var r=e.match(/(P+)(p+)?/)||[];var a=r[1];var i=r[2];if(!i){return K(e,n)}var o;switch(a){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",K(a,n)).replace("{{time}}",_(i,n))};var et={p:_,P:tt};const nt=et;var rt=["D","DD"];var at=["YY","YYYY"];function it(t){return rt.indexOf(t)!==-1}function ot(t){return at.indexOf(t)!==-1}function st(t,e,n){if(t==="YYYY"){throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}else if(t==="YY"){throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}else if(t==="D"){throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}else if(t==="DD"){throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}}var ut={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};var dt=function t(e,n,r){var a;var i=ut[e];if(typeof i==="string"){a=i}else if(n===1){a=i.one}else{a=i.other.replace("{{count}}",n.toString())}if(r!==null&&r!==void 0&&r.addSuffix){if(r.comparison&&r.comparison>0){return"in "+a}else{return a+" ago"}}return a};const ct=dt;function lt(t){return function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var n=e.width?String(e.width):t.defaultWidth;var r=t.formats[n]||t.formats[t.defaultWidth];return r}}var ht={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"};var vt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"};var ft={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var mt={date:lt({formats:ht,defaultWidth:"full"}),time:lt({formats:vt,defaultWidth:"full"}),dateTime:lt({formats:ft,defaultWidth:"full"})};const wt=mt;var gt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};var bt=function t(e,n,r,a){return gt[e]};const pt=bt;function yt(t){return function(e,n){var r=n!==null&&n!==void 0&&n.context?String(n.context):"standalone";var a;if(r==="formatting"&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth;var o=n!==null&&n!==void 0&&n.width?String(n.width):i;a=t.formattingValues[o]||t.formattingValues[i]}else{var s=t.defaultWidth;var u=n!==null&&n!==void 0&&n.width?String(n.width):t.defaultWidth;a=t.values[u]||t.values[s]}var d=t.argumentCallback?t.argumentCallback(e):e;return a[d]}}var xt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]};var Mt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]};var Dt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]};var kt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]};var Pt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}};var Wt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};var Nt=function t(e,n){var r=Number(e);var a=r%100;if(a>20||a<10){switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}}return r+"th"};var St={ordinalNumber:Nt,era:yt({values:xt,defaultWidth:"wide"}),quarter:yt({values:Mt,defaultWidth:"wide",argumentCallback:function t(e){return e-1}}),month:yt({values:Dt,defaultWidth:"wide"}),day:yt({values:kt,defaultWidth:"wide"}),dayPeriod:yt({values:Pt,defaultWidth:"wide",formattingValues:Wt,defaultFormattingWidth:"wide"})};const Et=St;function jt(t){return function(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=n.width;var a=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth];var i=e.match(a);if(!i){return null}var o=i[0];var s=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth];var u=Array.isArray(s)?qt(s,(function(t){return t.test(o)})):zt(s,(function(t){return t.test(o)}));var d;d=t.valueCallback?t.valueCallback(u):u;d=n.valueCallback?n.valueCallback(d):d;var c=e.slice(o.length);return{value:d,rest:c}}}function zt(t,e){for(var n in t){if(t.hasOwnProperty(n)&&e(t[n])){return n}}return undefined}function qt(t,e){for(var n=0;n<t.length;n++){if(e(t[n])){return n}}return undefined}function Ct(t){return function(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=e.match(t.matchPattern);if(!r)return null;var a=r[0];var i=e.match(t.parsePattern);if(!i)return null;var o=t.valueCallback?t.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;var s=e.slice(a.length);return{value:o,rest:s}}}var Yt=/^(\d+)(th|st|nd|rd)?/i;var Tt=/\d+/i;var Xt={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i};var Ot={any:[/^b/i,/^(a|c)/i]};var Rt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i};var Lt={any:[/1/i,/2/i,/3/i,/4/i]};var Bt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i};var Qt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]};var At={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i};var Gt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]};var It={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i};var Ht={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}};var Ft={ordinalNumber:Ct({matchPattern:Yt,parsePattern:Tt,valueCallback:function t(e){return parseInt(e,10)}}),era:jt({matchPatterns:Xt,defaultMatchWidth:"wide",parsePatterns:Ot,defaultParseWidth:"any"}),quarter:jt({matchPatterns:Rt,defaultMatchWidth:"wide",parsePatterns:Lt,defaultParseWidth:"any",valueCallback:function t(e){return e+1}}),month:jt({matchPatterns:Bt,defaultMatchWidth:"wide",parsePatterns:Qt,defaultParseWidth:"any"}),day:jt({matchPatterns:At,defaultMatchWidth:"wide",parsePatterns:Gt,defaultParseWidth:"any"}),dayPeriod:jt({matchPatterns:It,defaultMatchWidth:"any",parsePatterns:Ht,defaultParseWidth:"any"})};const $t=Ft;var Jt={code:"en-US",formatDistance:ct,formatLong:wt,formatRelative:pt,localize:Et,match:$t,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ut=Jt;var Vt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;var Zt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;var Kt=/^'([^]*?)'?$/;var _t=/''/g;var te=/[a-zA-Z]/;function ee(t,e,n){var r,o,s,u,c,l,h,v,m,g,b,p,y,x,M,k,P,W;a(2,arguments);var N=String(e);var S=f();var E=(r=(o=n===null||n===void 0?void 0:n.locale)!==null&&o!==void 0?o:S.locale)!==null&&r!==void 0?r:Ut;var z=d((s=(u=(c=(l=n===null||n===void 0?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n===null||n===void 0?void 0:(h=n.locale)===null||h===void 0?void 0:(v=h.options)===null||v===void 0?void 0:v.firstWeekContainsDate)!==null&&c!==void 0?c:S.firstWeekContainsDate)!==null&&u!==void 0?u:(m=S.locale)===null||m===void 0?void 0:(g=m.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(z>=1&&z<=7)){throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}var q=d((b=(p=(y=(x=n===null||n===void 0?void 0:n.weekStartsOn)!==null&&x!==void 0?x:n===null||n===void 0?void 0:(M=n.locale)===null||M===void 0?void 0:(k=M.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&y!==void 0?y:S.weekStartsOn)!==null&&p!==void 0?p:(P=S.locale)===null||P===void 0?void 0:(W=P.options)===null||W===void 0?void 0:W.weekStartsOn)!==null&&b!==void 0?b:0);if(!(q>=0&&q<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}if(!E.localize){throw new RangeError("locale must contain localize property")}if(!E.formatLong){throw new RangeError("locale must contain formatLong property")}var C=i(t);if(!D(C)){throw new RangeError("Invalid time value")}var Y=w(C);var T=j(C,Y);var X={firstWeekContainsDate:z,weekStartsOn:q,locale:E,_originalDate:C};var O=N.match(Zt).map((function(t){var e=t[0];if(e==="p"||e==="P"){var n=nt[e];return n(t,E.formatLong)}return t})).join("").match(Vt).map((function(r){if(r==="''"){return"'"}var a=r[0];if(a==="'"){return ne(r)}var i=Z[a];if(i){if(!(n!==null&&n!==void 0&&n.useAdditionalWeekYearTokens)&&ot(r)){st(r,e,String(t))}if(!(n!==null&&n!==void 0&&n.useAdditionalDayOfYearTokens)&&it(r)){st(r,e,String(t))}return i(T,r,E.localize,X)}if(a.match(te)){throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`")}return r})).join("");return O}function ne(t){var e=t.match(Kt);if(!e){return t}return e[1].replace(_t,"'")}function re(t){a(1,arguments);var e=i(t);var n=e.getDay();return n}function ae(t){a(1,arguments);var e=i(t);var n=e.getMonth();return n}function ie(t){a(1,arguments);return i(t).getFullYear()}function oe(t){a(1,arguments);return x(t,Date.now())}function se(t,e){a(2,arguments);var n=d(e);return c(t,-n)}function ue(t,e){var n;a(1,arguments);var r=d((n=e===null||e===void 0?void 0:e.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0){throw new RangeError("additionalDigits must be 0, 1 or 2")}if(!(typeof t==="string"||Object.prototype.toString.call(t)==="[object String]")){return new Date(NaN)}var i=ve(t);var o;if(i.date){var s=fe(i.date,r);o=me(s.restDateString,s.year)}if(!o||isNaN(o.getTime())){return new Date(NaN)}var u=o.getTime();var c=0;var l;if(i.time){c=ge(i.time);if(isNaN(c)){return new Date(NaN)}}if(i.timezone){l=pe(i.timezone);if(isNaN(l)){return new Date(NaN)}}else{var h=new Date(u+c);var v=new Date(0);v.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate());v.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds());return v}return new Date(u+c+l)}var de={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/};var ce=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/;var le=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/;var he=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ve(t){var e={};var n=t.split(de.dateTimeDelimiter);var r;if(n.length>2){return e}if(/:/.test(n[0])){r=n[0]}else{e.date=n[0];r=n[1];if(de.timeZoneDelimiter.test(e.date)){e.date=t.split(de.timeZoneDelimiter)[0];r=t.substr(e.date.length,t.length)}}if(r){var a=de.timezone.exec(r);if(a){e.time=r.replace(a[1],"");e.timezone=a[1]}else{e.time=r}}return e}function fe(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)");var r=t.match(n);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null;var i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:t.slice((r[1]||r[2]).length)}}function me(t,e){if(e===null)return new Date(NaN);var n=t.match(ce);if(!n)return new Date(NaN);var r=!!n[4];var a=we(n[1]);var i=we(n[2])-1;var o=we(n[3]);var s=we(n[4]);var u=we(n[5])-1;if(r){if(!Pe(e,s,u)){return new Date(NaN)}return ye(e,s,u)}else{var d=new Date(0);if(!De(e,i,o)||!ke(e,a)){return new Date(NaN)}d.setUTCFullYear(e,i,Math.max(a,o));return d}}function we(t){return t?parseInt(t):1}function ge(t){var e=t.match(le);if(!e)return NaN;var n=be(e[1]);var r=be(e[2]);var a=be(e[3]);if(!We(n,r,a)){return NaN}return n*y+r*p+a*1e3}function be(t){return t&&parseFloat(t.replace(",","."))||0}function pe(t){if(t==="Z")return 0;var e=t.match(he);if(!e)return 0;var n=e[1]==="+"?-1:1;var r=parseInt(e[2]);var a=e[3]&&parseInt(e[3])||0;if(!Ne(r,a)){return NaN}return n*(r*y+a*p)}function ye(t,e,n){var r=new Date(0);r.setUTCFullYear(t,0,4);var a=r.getUTCDay()||7;var i=(e-1)*7+n+1-a;r.setUTCDate(r.getUTCDate()+i);return r}var xe=[31,null,31,30,31,30,31,31,30,31,30,31];function Me(t){return t%400===0||t%4===0&&t%100!==0}function De(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(xe[e]||(Me(t)?29:28))}function ke(t,e){return e>=1&&e<=(Me(t)?366:365)}function Pe(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function We(t,e,n){if(t===24){return e===0&&n===0}return n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function Ne(t,e){return e>=0&&e<=59}function Se(t,e){a(2,arguments);var n=d(e);return l(t,-n)}function Ee(t,e){a(2,arguments);var n=d(e);return b(t,-n)}var je={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"};var ze={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"};var qe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var Ce={date:lt({formats:je,defaultWidth:"full"}),time:lt({formats:ze,defaultWidth:"full"}),dateTime:lt({formats:qe,defaultWidth:"full"})};const Ye=Ce;var Te={code:"en-AU",formatDistance:ct,formatLong:Ye,formatRelative:pt,localize:Et,match:$t,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Xe=Te;var Oe={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}};var Re=function t(e,n,r){var a;var i=Oe[e];if(typeof i==="string"){a=i}else if(n===1){a=i.one}else{a=i.other.replace("{{count}}",String(n))}if(r!==null&&r!==void 0&&r.addSuffix){if(r.comparison&&r.comparison>0){return"em "+a}else{return"há "+a}}return a};const Le=Re;var Be={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"};var Qe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"};var Ae={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var Ge={date:lt({formats:Be,defaultWidth:"full"}),time:lt({formats:Qe,defaultWidth:"full"}),dateTime:lt({formats:Ae,defaultWidth:"full"})};const Ie=Ge;var He={lastWeek:function t(e){var n=e.getUTCDay();var r=n===0||n===6?"último":"última";return"'"+r+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"};var Fe=function t(e,n,r,a){var i=He[e];if(typeof i==="function"){return i(n)}return i};const $e=Fe;var Je={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]};var Ue={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]};var Ve={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]};var Ze={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]};var Ke={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}};var _e={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}};var tn=function t(e,n){var r=Number(e);if((n===null||n===void 0?void 0:n.unit)==="week"){return r+"ª"}return r+"º"};var en={ordinalNumber:tn,era:yt({values:Je,defaultWidth:"wide"}),quarter:yt({values:Ue,defaultWidth:"wide",argumentCallback:function t(e){return e-1}}),month:yt({values:Ve,defaultWidth:"wide"}),day:yt({values:Ze,defaultWidth:"wide"}),dayPeriod:yt({values:Ke,defaultWidth:"wide",formattingValues:_e,defaultFormattingWidth:"wide"})};const nn=en;var rn=/^(\d+)[ºªo]?/i;var an=/\d+/i;var on={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i};var sn={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]};var un={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i};var dn={any:[/1/i,/2/i,/3/i,/4/i]};var cn={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i};var ln={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]};var hn={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i};var vn={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]};var fn={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i};var mn={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}};var wn={ordinalNumber:Ct({matchPattern:rn,parsePattern:an,valueCallback:function t(e){return parseInt(e,10)}}),era:jt({matchPatterns:on,defaultMatchWidth:"wide",parsePatterns:sn,defaultParseWidth:"any"}),quarter:jt({matchPatterns:un,defaultMatchWidth:"wide",parsePatterns:dn,defaultParseWidth:"any",valueCallback:function t(e){return e+1}}),month:jt({matchPatterns:cn,defaultMatchWidth:"wide",parsePatterns:ln,defaultParseWidth:"any"}),day:jt({matchPatterns:hn,defaultMatchWidth:"wide",parsePatterns:vn,defaultParseWidth:"any"}),dayPeriod:jt({matchPatterns:fn,defaultMatchWidth:"any",parsePatterns:mn,defaultParseWidth:"any"})};const gn=wn;var bn={code:"pt-BR",formatDistance:Le,formatLong:Ie,formatRelative:$e,localize:nn,match:gn,options:{weekStartsOn:0,firstWeekContainsDate:1}};const pn=bn;const yn=':host{display:block;width:var(--width);max-width:400px;margin:0 auto}:host .calendar{display:flex;flex-direction:column;gap:5px;width:var(--width);min-width:268px;border-radius:4px;overflow:hidden;background:#fff;font-family:var(--font-family)}:host .calendar.embedded{border:2px solid var(--neutral-light);padding:0px 12px 12px 12px}:host .calendar.floating{box-shadow:0 4px 8px var(--neutral-light)}:host .header{position:relative;padding:12px 0}:host .header::after{content:"";position:absolute;bottom:0;left:2px;right:2px;border-bottom:2px dotted var(--neutral-light)}:host .month-year{display:flex;padding:12px 8px;justify-content:space-between;align-self:stretch}:host .month-year.dropdown{padding:0%}:host .select{display:flex;padding:7px 10px 0px;justify-content:center;align-items:center;gap:6px;flex:1 0 0}:host .drop-month{display:flex;max-width:118px;padding:0px;align-items:flex-start;gap:0px;flex:1 0 0}:host .drop-year{display:flex;min-width:80px;max-width:85px;padding:0px;align-items:flex-start;gap:0px;flex:1 0 0}:host .days-of-week{display:flex;height:30px;padding:4px;justify-content:center;align-items:center;gap:4px;flex-shrink:0}:host .day{flex:1;text-align:center}:host .dates{display:flex;flex-wrap:wrap;align-items:center;align-self:stretch;gap:0}:host .icon{cursor:pointer;position:relative;overflow:hidden;border-radius:50%}:host .icon.dropdown{margin-top:10px}:host .icon::before{content:"";position:absolute;border-radius:50%;top:50%;left:50%;width:20px;height:20px;background:var(--accent-base);transform:translate(-50%, -50%) scale(0);transition:transform 0.2s ease}:host .icon:active::before{transform:translate(-50%, -50%) scale(1)}:host .icon:active{transform:scale(1)}:host .collapsed-container{text-align:center;position:relative;display:flex;align-items:center;justify-content:center;padding-top:10px}:host .collapsed-container::before{content:"";position:absolute;bottom:0;top:0;left:2px;right:2px;border-top:2px dotted var(--neutral-light)}:host .date{display:flex;justify-content:center;align-items:center;height:auto;width:14.2857142857%;aspect-ratio:1;font-size:14px;cursor:pointer;position:relative;box-sizing:border-box;text-align:center;flex-shrink:0}:host .date.today{border:2px solid var(--primary-darker);border-radius:50%;color:var(--primary-darker)}:host .date.selected,:host .date.default-dates{color:var(--neutral-black) !important;background:var(--accent-base);border-radius:50%;border:none}:host .date.invalid{color:var(--neutral-dark) !important;cursor:not-allowed}:host .date.invalid:hover{background:none;box-shadow:none}:host .date.valid{color:var(--primary-darker);font-weight:var(--font-weight-bold)}:host .date.range.start{border-radius:50% 0 0 50%;color:var(--primary-darker) !important;background:var(--accent-base)}:host .date.range.interval{border-radius:0;background-color:var(--accent-light);color:var(--neutral-black)}:host .date.range.interval.today{border:none}:host .date.range.end{border-radius:0 50% 50% 0;color:var(--primary-darker) !important;background:var(--accent-base)}:host .date:hover{background:var(--accent-light);border-radius:50%;color:var(--neutral-black)}:host select,:host input{width:60px;font-size:16px;box-shadow:0 2px 2px var(--neutral-black);padding:5px;border-radius:4px;border:1px solid #ccc;background:#f7f7f7}.teste{width:100%}';const xn=yn;const Mn=class{constructor(n){t(this,n);this.onchangeday=e(this,"onchangeday",7);this.theme=window.CuraAPI.theme;this.weights=this.theme.fonts.getWeights();this.optionsLocale={"pt-BR":pn,"en-US":Xe};this.period=null;this.width="268px";this.mode="single";this.dateFormat="yyyy-MM-dd";this.locale="pt-BR";this.type="dropdown";this.disable=[];this.enable=[];this.defaultDate=[];this.customDates=[];this.limitRange=null;this.disablePassDates=undefined;this.disableFutureDates=undefined;this.collapsed=null;this.floating=undefined;this.embedded=undefined;this.currentDate=new Date;this.selectedDates=[];this.rangeStart=null;this.defaultDates=[];this.selectMonth="";this.selectYear="";this.styles={}}connectedCallback(){this.setFontProperties();const t=[{name:"--accent-base",theme:"accent-base"},{name:"--accent-light",theme:"accent-light"},{name:"--neutral-black",theme:"neutral-black"},{name:"--primary-darker",theme:"primary-darker"},{name:"--neutral-dark",theme:"neutral-dark"},{name:"--neutral-light",theme:"neutral-light"}];t.forEach((t=>this.styles=Object.assign(Object.assign({},this.styles),{[t.name]:this.theme.colors.getColor(t.theme)})))}setFontProperties(){this.styles["--font-family"]=window.CuraAPI.theme.fonts.getFamily();this.styles["--font-size"]=window.CuraAPI.theme.fonts.getSize();this.styles["--font-color"]=window.CuraAPI.theme.fonts.getColor();this.styles["--font-weight-medium"]=this.weights.medium;this.styles["--font-weight-bold"]=this.weights.bold;this.styles["--font-weight-regular"]=this.weights.regular}initializeDefaultDates(){this.defaultDates=this.expandDateRanges(this.defaultDate)}determineLocale(){return this.optionsLocale[this.locale]||this.locale}isDateInValidPeriod(t){if(this.period===null){return true}return this.period.includes(ee(t,this.dateFormat))}isDateSelected(t){return this.isDateInList(this.selectedDates,t)}isDateInDefaultSelection(t){return this.isDateInList(this.defaultDates,t)}isDateInDisabledPeriod(t){const e=new Date;e.setHours(0,0,0,0);if(this.disablePassDates)return s(t,e);if(this.disableFutureDates)return u(t,e);if(this.disable===null)return false;return this.isDateInList(this.expandDateRanges(this.disable),t)}isDateInEnabledPeriod(t){if(this.enable===null||[])return true;return this.isDateInList(this.expandDateRanges(this.enable),t)}isDateInList(t,e){return t.some((t=>x(t,e)))}removeDateFromSelection(t,e){return t.filter((t=>!x(t,e)))}updateCurrentMonth(t){let e=new Date(this.currentDate);if(t==="prev")e=Se(this.currentDate,1);if(t==="next")e=l(this.currentDate,1);this.currentDate=e}onMonthDropdownChange(t){const{months:e}=this.fetchMonthNames();const n=t.detail;this.selectMonth=n;this.currentDate=new Date(ie(this.currentDate),e.indexOf(n),1)}onYearDropdownChange(t){const e=t.detail;this.selectYear=e;this.currentDate=new Date(e,ae(this.currentDate),1)}expandDateRanges(t){return t.flatMap((t=>{if(typeof t==="string")return D(ue(t))?[ue(t)]:[];const e=ue(t.from);const n=ue(t.to);if(D(e)&&D(n)&&e<=n)return P({start:e,end:n});return[]}))}selectSingleDate(t){this.defaultDates=[];this.selectedDates=[t]}selectMultiplesDate(t){if(!this.isDateSelected(t)||!this.isDateInDefaultSelection(t))return this.selectedDates=[...this.selectedDates,t];this.selectedDates=this.removeDateFromSelection(this.selectedDates,t);this.defaultDates=this.removeDateFromSelection(this.defaultDates,t)}selectDateRange(t){this.defaultDates=[];const e=s(this.rangeStart,t)?this.rangeStart:t;const n=u(this.rangeStart,t)?this.rangeStart:t;const r=P({start:e,end:n});if(!this.rangeStart||this.selectedDates.length===2){this.rangeStart=t;this.selectedDates=[t];return}if(this.limitRange===null||r.length<=this.limitRange){this.selectedDates=r;this.rangeStart=null}}onDateClick(t){if(!this.isDateInValidPeriod(t)||this.isDateInDisabledPeriod(t)||!this.isDateInEnabledPeriod(t))return;const e={single:this.selectSingleDate.bind(this),multiple:this.selectMultiplesDate.bind(this),range:this.selectDateRange.bind(this)};e[this.mode](t);this.onchangeday.emit({days:[...this.defaultDates,...this.selectedDates].filter((t=>this.isDateInValidPeriod(t)))})}fetchWeekDays(){const t=m(new Date(2021,0,3),{locale:this.determineLocale()});const e=E(new Date(2021,0,3),{locale:this.determineLocale()});return P({start:t,end:e}).map((t=>ee(t,"EEEEEE",{locale:this.determineLocale()})))}showNotColapsedCalendar(){if(this.collapsed){this.fetchDaysOfWeek()}else this.fetchDaysOfMonth();this.collapsed=false}showColapsedCalendar(){this.collapsed=true;return this.fetchDaysOfWeek()}fetchDaysOfWeek(){const t=7;const e=m(this.currentDate);const n=E(this.currentDate);const r=P({start:e,end:n});return r.slice(0,t)}updateCurrentWeek(t){let e=new Date(this.currentDate);if(t==="prev")e=Ee(this.currentDate,1);if(t==="next")e=b(this.currentDate,1);this.currentDate=e}fetchDaysOfMonth(){const t=6;const e=42;const n=N(this.currentDate);const r=k(this.currentDate);const a=P({start:n,end:r});const i=N(l(n,-1));const o=k(i);const s=P({start:se(o,re(n)),end:o});const u=N(l(r,1));const d=k(u);const h=t-re(r);const v=P({start:u,end:c(d,h)});const f=[...s.slice(-re(n)),...a,...v];return f.slice(0,e)}fetchMonthNames(){const t=ie(this.currentDate);const e=this.determineLocale();const n=W({start:S(new Date(t,0,1)),end:new Date(t,11,31)}).map((t=>ee(t,"MMMM",{locale:e})));const r=t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase();return{months:n.map(r)}}fetchYearList(){const t=ie(new Date);return Array.from({length:100},((e,n)=>t-n))}determinePrevButtonColor(){const t=s(new Date(ie(this.currentDate),ae(this.currentDate)-1,1),N(new Date));return t&&"primary-base"}getDateStatus(t){const[e,n]=[this.selectedDates[0],this.selectedDates[this.selectedDates.length-1]];const[r,a]=[this.defaultDates[0],this.defaultDates[this.defaultDates.length-1]];const i=this.selectedDates.length>1;const o=this.defaultDates.length>1;const s=this.isDateSelected(t)&&x(t,e);const u=this.isDateInDefaultSelection(t)&&x(t,r);const d=this.isDateSelected(t)&&x(t,n);const c=this.isDateInDefaultSelection(t)&&x(t,a);const l=s||u;const h=d||c;const v=this.expandDateRanges([{from:e===null||e===void 0?void 0:e.toISOString(),to:n===null||n===void 0?void 0:n.toISOString()}]);const f=this.expandDateRanges([{from:r===null||r===void 0?void 0:r.toISOString(),to:a===null||a===void 0?void 0:a.toISOString()}]);const m=i&&this.isDateInList(v,t);const w=o&&this.isDateInList(f,t);const g=this.isDateInValidPeriod(t);const b=!g||this.isDateInDisabledPeriod(t)||!this.isDateInEnabledPeriod(t);const p=this.isDateSelected(t);const y=this.mode==="range"&&(i||o);const M=this.mode!=="range"&&this.isDateInDefaultSelection(t);const D=(m||w)&&!l&&!h;return{isStart:l,isEnd:h,isValid:g,isInvalid:b,isSelected:p,isRange:y,isDefault:M,isInterval:D}}getClasses(t){const e={date:true};if(t===null)return e;const n=this.getDateStatus(t);e["today"]=oe(t);e["valid"]=n.isValid;e["invalid"]=n.isInvalid;e["selected"]=n.isSelected;e["range"]=n.isRange;e["default-dates"]=n.isDefault;e["start"]=n.isStart;e["interval"]=n.isInterval;e["end"]=n.isEnd;return e}getHostCSSProperties(){return{"--width":this.width}}watchDefaultDatesArray(){this.selectedDates=this.customDates}render(){const{months:t}=this.fetchMonthNames();return n(r,{key:"3c3a06e4eee0a100a0a9e1eab8d42d839a1cb945",style:this.getHostCSSProperties()},n("div",{key:"b82154d8bb381b3452c90e26e2cbae69db670add",class:`calendar ${this.floating?"floating":""} ${this.embedded?"embedded":""}`,style:this.styles},n("header",{key:"0c9a5ce68444d2ae931aff60efeb20c52172b2cf",class:"header"},n("div",{key:"68e6c5e716ea1919f423950a22341721d0094d8c",class:`month-year ${this.type==="dropdown"&&"dropdown"}`},n("cura-icon",{key:"54f6799b4d54bed92a671dc75045c52076d3adab",class:`icon ${this.type==="dropdown"&&"dropdown"}`,name:"left",color:this.determinePrevButtonColor(),onClick:!this.collapsed?()=>this.updateCurrentMonth("prev"):()=>this.updateCurrentWeek("prev")}),this.type==="dropdown"?n("div",{class:"select"},n("cura-select",{size:"small",class:"drop-month",mode:"transparent",value:t[ae(this.currentDate)],onSelected:t=>this.onMonthDropdownChange(t)},t.map(((t,e)=>n("cura-select-option",{size:"xsmall",key:e,value:t},t)))),n("cura-select",{size:"small",class:"drop-year",mode:"transparent",value:ie(this.currentDate).toString(),onSelected:t=>this.onYearDropdownChange(t)},this.fetchYearList().map(((t,e)=>n("cura-select-option",{key:e,value:t.toString()},t.toString()))))):n("cura-label",{color:"neutral-black",size:"large"},t[ae(this.currentDate)].slice(0,3),", ",ie(this.currentDate)),n("cura-icon",{key:"66f0f20be96bc0517fb88c284435eda3f85e5227",class:`icon ${this.type==="dropdown"&&"dropdown"}`,name:"right",color:"primary-base",onClick:!this.collapsed?()=>this.updateCurrentMonth("next"):()=>this.updateCurrentWeek("next")}))),n("span",{key:"5df4ad92b85833a2284830cd69418e9c740fd0f6",class:"days-of-week"},this.fetchWeekDays().map(((t,e)=>n("cura-label",{class:"day",size:"xsmall",color:"neutral-black",weight:"bold",key:e},t==="sab"?"SÁB":t.toLocaleUpperCase())))),n("div",{key:"c94c9a2eae554149126f729953245b27a6f82a86",class:"dates"},!this.collapsed?this.fetchDaysOfMonth().map(((t,e)=>n("div",{key:e,class:this.getClasses(t),onClick:()=>this.onDateClick(t)},t?ee(t,"d"):""))):this.fetchDaysOfWeek().map(((t,e)=>n("div",{key:e,class:this.getClasses(t),onClick:()=>this.onDateClick(t)},t?ee(t,"d"):"")))),this.collapsed!==null?this.collapsed?n("div",{class:"collapsed-container"},n("cura-button-transparent",{onClick:()=>this.showNotColapsedCalendar(),size:"small",color:"primary",fontColor:"dark",iconName:"plusCircle"},"Veja mais datas")):n("div",{class:"collapsed-container"},n("cura-button-transparent",{onClick:()=>this.showColapsedCalendar(),size:"small",color:"primary",fontColor:"dark",iconName:"minusCircle"},"Veja menos datas")):null))}static get watchers(){return{customDates:["watchDefaultDatesArray"]}}};Mn.style=xn;export{Mn as cura_calendar};
2
+ //# sourceMappingURL=p-563ba0cd.entry.js.map