@supersoniks/concorde 3.1.16 → 3.1.17

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 (352) hide show
  1. package/build-infos.json +1 -1
  2. package/concorde-core.bundle.js +3692 -0
  3. package/concorde-core.es.js +11810 -0
  4. package/dist/concorde-core.bundle.js +3692 -0
  5. package/dist/concorde-core.es.js +11810 -0
  6. package/dist/css/docs.css +0 -0
  7. package/dist/fonts/ClashGrotesk-Bold.eot +0 -0
  8. package/dist/fonts/ClashGrotesk-Bold.ttf +0 -0
  9. package/dist/fonts/ClashGrotesk-Bold.woff +0 -0
  10. package/dist/fonts/ClashGrotesk-Bold.woff2 +0 -0
  11. package/dist/fonts/ClashGrotesk-Extralight.eot +0 -0
  12. package/dist/fonts/ClashGrotesk-Extralight.ttf +0 -0
  13. package/dist/fonts/ClashGrotesk-Extralight.woff +0 -0
  14. package/dist/fonts/ClashGrotesk-Extralight.woff2 +0 -0
  15. package/dist/fonts/ClashGrotesk-Light.eot +0 -0
  16. package/dist/fonts/ClashGrotesk-Light.ttf +0 -0
  17. package/dist/fonts/ClashGrotesk-Light.woff +0 -0
  18. package/dist/fonts/ClashGrotesk-Light.woff2 +0 -0
  19. package/dist/fonts/ClashGrotesk-Medium.eot +0 -0
  20. package/dist/fonts/ClashGrotesk-Medium.ttf +0 -0
  21. package/dist/fonts/ClashGrotesk-Medium.woff +0 -0
  22. package/dist/fonts/ClashGrotesk-Medium.woff2 +0 -0
  23. package/dist/fonts/ClashGrotesk-Regular.eot +0 -0
  24. package/dist/fonts/ClashGrotesk-Regular.ttf +0 -0
  25. package/dist/fonts/ClashGrotesk-Regular.woff +0 -0
  26. package/dist/fonts/ClashGrotesk-Regular.woff2 +0 -0
  27. package/dist/fonts/ClashGrotesk-Semibold.eot +0 -0
  28. package/dist/fonts/ClashGrotesk-Semibold.ttf +0 -0
  29. package/dist/fonts/ClashGrotesk-Semibold.woff +0 -0
  30. package/dist/fonts/ClashGrotesk-Semibold.woff2 +0 -0
  31. package/dist/fonts/ClashGrotesk-Variable.eot +0 -0
  32. package/dist/fonts/ClashGrotesk-Variable.ttf +0 -0
  33. package/dist/fonts/ClashGrotesk-Variable.woff +0 -0
  34. package/dist/fonts/ClashGrotesk-Variable.woff2 +0 -0
  35. package/dist/img/concorde-icon.svg +5 -0
  36. package/dist/img/concorde-logo.svg +1 -0
  37. package/dist/img/concorde.png +0 -0
  38. package/dist/img/concorde_def.png +0 -0
  39. package/dist/img/concorde_seuil.png.webp +0 -0
  40. package/dist/img/concorde_seuil_invert.png +0 -0
  41. package/dist/img/paul_metrand.jpg +0 -0
  42. package/dist/img/paul_metrand_xs.jpg +0 -0
  43. package/dist/svg/regular/plane.svg +1 -0
  44. package/dist/svg/solid/plane.svg +1 -0
  45. package/docs/assets/index--bDsd7qW.css +1 -0
  46. package/docs/assets/index-Ce3mr_lI.js +4040 -0
  47. package/docs/css/docs.css +0 -0
  48. package/docs/img/concorde-logo.svg +1 -0
  49. package/docs/img/concorde.png +0 -0
  50. package/docs/img/concorde_def.png +0 -0
  51. package/docs/index.html +132 -0
  52. package/docs/src/core/components/functional/date/date.md +290 -0
  53. package/docs/src/core/components/functional/fetch/fetch.md +117 -0
  54. package/docs/src/core/components/functional/if/if.md +16 -0
  55. package/docs/src/core/components/functional/list/list.md +194 -0
  56. package/docs/src/core/components/functional/mix/mix.md +41 -0
  57. package/docs/src/core/components/functional/queue/queue.md +87 -0
  58. package/docs/src/core/components/functional/router/router.md +112 -0
  59. package/docs/src/core/components/functional/sdui/default-library.json +108 -0
  60. package/docs/src/core/components/functional/sdui/example.json +99 -0
  61. package/docs/src/core/components/functional/sdui/sdui.md +356 -0
  62. package/docs/src/core/components/functional/states/states.md +87 -0
  63. package/docs/src/core/components/functional/submit/submit.md +48 -0
  64. package/docs/src/core/components/functional/subscriber/subscriber.md +91 -0
  65. package/docs/src/core/components/functional/value/value.md +35 -0
  66. package/docs/src/core/components/ui/alert/alert.md +121 -0
  67. package/docs/src/core/components/ui/badge/badge.md +102 -0
  68. package/docs/src/core/components/ui/button/button.md +184 -0
  69. package/docs/src/core/components/ui/captcha/captcha.md +12 -0
  70. package/docs/src/core/components/ui/card/card.md +96 -0
  71. package/docs/src/core/components/ui/divider/divider.md +35 -0
  72. package/docs/src/core/components/ui/form/checkbox/checkbox.md +96 -0
  73. package/docs/src/core/components/ui/form/fieldset/fieldset.md +129 -0
  74. package/docs/src/core/components/ui/form/form-actions/form-actions.md +77 -0
  75. package/docs/src/core/components/ui/form/form-layout/form-layout.md +43 -0
  76. package/docs/src/core/components/ui/form/input/input.md +168 -0
  77. package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +130 -0
  78. package/docs/src/core/components/ui/form/radio/radio.md +86 -0
  79. package/docs/src/core/components/ui/form/select/select.md +99 -0
  80. package/docs/src/core/components/ui/form/textarea/textarea.md +66 -0
  81. package/docs/src/core/components/ui/group/group.md +75 -0
  82. package/docs/src/core/components/ui/icon/icon.md +125 -0
  83. package/docs/src/core/components/ui/icon/icons.json +1 -0
  84. package/docs/src/core/components/ui/image/image.md +107 -0
  85. package/docs/src/core/components/ui/link/link.md +43 -0
  86. package/docs/src/core/components/ui/loader/loader.md +37 -0
  87. package/docs/src/core/components/ui/menu/menu.md +288 -0
  88. package/docs/src/core/components/ui/modal/modal.md +123 -0
  89. package/docs/src/core/components/ui/pop/pop.md +79 -0
  90. package/docs/src/core/components/ui/progress/progress.md +65 -0
  91. package/docs/src/core/components/ui/table/table.md +467 -0
  92. package/docs/src/core/components/ui/tooltip/tooltip.md +37 -0
  93. package/docs/src/docs/_core-concept/overview.md +57 -0
  94. package/docs/src/docs/_core-concept/subscriber.md +76 -0
  95. package/docs/src/docs/_getting-started/concorde-outside.md +141 -0
  96. package/docs/src/docs/_getting-started/create-a-component.md +137 -0
  97. package/docs/src/docs/_getting-started/pubsub.md +150 -0
  98. package/docs/src/docs/_getting-started/start.md +37 -0
  99. package/docs/src/docs/_getting-started/theming.md +91 -0
  100. package/docs/src/docs/search/docs-search.json +3737 -0
  101. package/docs/src/tag-list.json +1 -0
  102. package/docs/src/tsconfig.json +113 -0
  103. package/docs/svg/regular/plane.svg +1 -0
  104. package/docs/svg/solid/plane.svg +1 -0
  105. package/index.html +0 -0
  106. package/notes de migration.md +0 -0
  107. package/package.json +1 -1
  108. package/postcss.config.cjs +0 -0
  109. package/public/css/docs.css +0 -0
  110. package/public/fonts/ClashGrotesk-Bold.eot +0 -0
  111. package/public/fonts/ClashGrotesk-Bold.ttf +0 -0
  112. package/public/fonts/ClashGrotesk-Bold.woff +0 -0
  113. package/public/fonts/ClashGrotesk-Bold.woff2 +0 -0
  114. package/public/fonts/ClashGrotesk-Extralight.eot +0 -0
  115. package/public/fonts/ClashGrotesk-Extralight.ttf +0 -0
  116. package/public/fonts/ClashGrotesk-Extralight.woff +0 -0
  117. package/public/fonts/ClashGrotesk-Extralight.woff2 +0 -0
  118. package/public/fonts/ClashGrotesk-Light.eot +0 -0
  119. package/public/fonts/ClashGrotesk-Light.ttf +0 -0
  120. package/public/fonts/ClashGrotesk-Light.woff +0 -0
  121. package/public/fonts/ClashGrotesk-Light.woff2 +0 -0
  122. package/public/fonts/ClashGrotesk-Medium.eot +0 -0
  123. package/public/fonts/ClashGrotesk-Medium.ttf +0 -0
  124. package/public/fonts/ClashGrotesk-Medium.woff +0 -0
  125. package/public/fonts/ClashGrotesk-Medium.woff2 +0 -0
  126. package/public/fonts/ClashGrotesk-Regular.eot +0 -0
  127. package/public/fonts/ClashGrotesk-Regular.ttf +0 -0
  128. package/public/fonts/ClashGrotesk-Regular.woff +0 -0
  129. package/public/fonts/ClashGrotesk-Regular.woff2 +0 -0
  130. package/public/fonts/ClashGrotesk-Semibold.eot +0 -0
  131. package/public/fonts/ClashGrotesk-Semibold.ttf +0 -0
  132. package/public/fonts/ClashGrotesk-Semibold.woff +0 -0
  133. package/public/fonts/ClashGrotesk-Semibold.woff2 +0 -0
  134. package/public/fonts/ClashGrotesk-Variable.eot +0 -0
  135. package/public/fonts/ClashGrotesk-Variable.ttf +0 -0
  136. package/public/fonts/ClashGrotesk-Variable.woff +0 -0
  137. package/public/fonts/ClashGrotesk-Variable.woff2 +0 -0
  138. package/public/img/concorde-icon.svg +0 -0
  139. package/public/img/concorde-logo.svg +0 -0
  140. package/public/img/concorde.png +0 -0
  141. package/public/img/concorde_def.png +0 -0
  142. package/public/img/concorde_seuil.png.webp +0 -0
  143. package/public/img/concorde_seuil_invert.png +0 -0
  144. package/public/img/paul_metrand.jpg +0 -0
  145. package/public/img/paul_metrand_xs.jpg +0 -0
  146. package/public/svg/regular/plane.svg +0 -0
  147. package/public/svg/solid/plane.svg +0 -0
  148. package/scripts/create-search.js +0 -0
  149. package/scripts/post-build-docs.js +0 -0
  150. package/scripts/post-build.mjs +0 -0
  151. package/scripts/pre-build.mjs +0 -0
  152. package/src/components.ts +0 -0
  153. package/src/concorde-loaded.ts +0 -0
  154. package/src/core/_types/types.ts +0 -0
  155. package/src/core/components/functional/date/date.md +0 -0
  156. package/src/core/components/functional/date/date.ts +0 -0
  157. package/src/core/components/functional/example/example.ts +0 -0
  158. package/src/core/components/functional/fetch/fetch.md +0 -0
  159. package/src/core/components/functional/fetch/fetch.ts +0 -0
  160. package/src/core/components/functional/functional.ts +0 -0
  161. package/src/core/components/functional/if/if.md +0 -0
  162. package/src/core/components/functional/if/if.test.ts +0 -0
  163. package/src/core/components/functional/if/if.ts +0 -0
  164. package/src/core/components/functional/list/list.md +0 -0
  165. package/src/core/components/functional/list/list.ts +0 -0
  166. package/src/core/components/functional/mix/mix.md +0 -0
  167. package/src/core/components/functional/mix/mix.ts +0 -0
  168. package/src/core/components/functional/queue/queue.md +0 -0
  169. package/src/core/components/functional/queue/queue.ts +0 -0
  170. package/src/core/components/functional/router/redirect.ts +0 -0
  171. package/src/core/components/functional/router/router.md +0 -0
  172. package/src/core/components/functional/router/router.ts +0 -0
  173. package/src/core/components/functional/sdui/SDUIDescriptorTransformer.ts +0 -0
  174. package/src/core/components/functional/sdui/default-library.json +0 -0
  175. package/src/core/components/functional/sdui/example.json +0 -0
  176. package/src/core/components/functional/sdui/sdui-utils.ts +0 -0
  177. package/src/core/components/functional/sdui/sdui.md +0 -0
  178. package/src/core/components/functional/sdui/sdui.ts +0 -0
  179. package/src/core/components/functional/sdui/types.ts +0 -0
  180. package/src/core/components/functional/sonic-scope/sonic-scope.ts +0 -0
  181. package/src/core/components/functional/states/states.md +0 -0
  182. package/src/core/components/functional/states/states.ts +0 -0
  183. package/src/core/components/functional/submit/submit.md +0 -0
  184. package/src/core/components/functional/submit/submit.ts +0 -0
  185. package/src/core/components/functional/subscriber/subscriber.md +0 -0
  186. package/src/core/components/functional/subscriber/subscriber.ts +0 -0
  187. package/src/core/components/functional/value/value.md +0 -0
  188. package/src/core/components/functional/value/value.ts +0 -0
  189. package/src/core/components/ui/_css/scroll.ts +0 -0
  190. package/src/core/components/ui/_css/size.ts +0 -0
  191. package/src/core/components/ui/_css/type.ts +0 -0
  192. package/src/core/components/ui/alert/alert.md +0 -0
  193. package/src/core/components/ui/alert/alert.ts +0 -0
  194. package/src/core/components/ui/badge/badge.md +0 -0
  195. package/src/core/components/ui/badge/badge.ts +0 -0
  196. package/src/core/components/ui/button/button.md +0 -0
  197. package/src/core/components/ui/button/button.ts +0 -0
  198. package/src/core/components/ui/captcha/captcha.md +0 -0
  199. package/src/core/components/ui/captcha/captcha.ts +0 -0
  200. package/src/core/components/ui/card/card-footer.ts +0 -0
  201. package/src/core/components/ui/card/card-header-descripton.ts +0 -0
  202. package/src/core/components/ui/card/card-header.ts +0 -0
  203. package/src/core/components/ui/card/card-main.ts +0 -0
  204. package/src/core/components/ui/card/card.md +0 -0
  205. package/src/core/components/ui/card/card.ts +0 -0
  206. package/src/core/components/ui/divider/divider.md +0 -0
  207. package/src/core/components/ui/divider/divider.ts +0 -0
  208. package/src/core/components/ui/form/checkbox/checkbox.md +0 -0
  209. package/src/core/components/ui/form/checkbox/checkbox.ts +0 -0
  210. package/src/core/components/ui/form/css/form-control.ts +0 -0
  211. package/src/core/components/ui/form/fieldset/fieldset.md +0 -0
  212. package/src/core/components/ui/form/fieldset/fieldset.ts +0 -0
  213. package/src/core/components/ui/form/fieldset/legend-description.ts +0 -0
  214. package/src/core/components/ui/form/fieldset/legend.ts +0 -0
  215. package/src/core/components/ui/form/form-actions/form-actions.md +0 -0
  216. package/src/core/components/ui/form/form-actions/form-actions.ts +0 -0
  217. package/src/core/components/ui/form/form-layout/form-layout.md +0 -0
  218. package/src/core/components/ui/form/form-layout/form-layout.ts +0 -0
  219. package/src/core/components/ui/form/input/input.md +0 -0
  220. package/src/core/components/ui/form/input/input.ts +0 -0
  221. package/src/core/components/ui/form/input/password-helper.ts +0 -0
  222. package/src/core/components/ui/form/input/same-value-helper.ts +0 -0
  223. package/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +0 -0
  224. package/src/core/components/ui/form/input-autocomplete/input-autocomplete.ts +0 -0
  225. package/src/core/components/ui/form/radio/radio.md +0 -0
  226. package/src/core/components/ui/form/radio/radio.ts +0 -0
  227. package/src/core/components/ui/form/select/select.md +0 -0
  228. package/src/core/components/ui/form/select/select.ts +0 -0
  229. package/src/core/components/ui/form/textarea/textarea.md +0 -0
  230. package/src/core/components/ui/form/textarea/textarea.ts +0 -0
  231. package/src/core/components/ui/group/group.md +0 -0
  232. package/src/core/components/ui/group/group.ts +0 -0
  233. package/src/core/components/ui/icon/icon.md +0 -0
  234. package/src/core/components/ui/icon/icon.stories.ts +0 -0
  235. package/src/core/components/ui/icon/icon.ts +0 -0
  236. package/src/core/components/ui/icon/icons.json +0 -0
  237. package/src/core/components/ui/icon/icons.ts +0 -0
  238. package/src/core/components/ui/icon/svgs/cancel.svg +0 -0
  239. package/src/core/components/ui/icon/svgs/check-circled-outline.svg +0 -0
  240. package/src/core/components/ui/icon/svgs/check.svg +0 -0
  241. package/src/core/components/ui/icon/svgs/emoji-puzzled.svg +0 -0
  242. package/src/core/components/ui/icon/svgs/info-empty.svg +0 -0
  243. package/src/core/components/ui/icon/svgs/loader.svg +0 -0
  244. package/src/core/components/ui/icon/svgs/minus-small.svg +0 -0
  245. package/src/core/components/ui/icon/svgs/more-horiz.svg +0 -0
  246. package/src/core/components/ui/icon/svgs/more-vert.svg +0 -0
  247. package/src/core/components/ui/icon/svgs/nav-arrow-down.svg +0 -0
  248. package/src/core/components/ui/icon/svgs/warning-circled-outline.svg +0 -0
  249. package/src/core/components/ui/image/image.md +0 -0
  250. package/src/core/components/ui/image/image.ts +0 -0
  251. package/src/core/components/ui/link/link.md +0 -0
  252. package/src/core/components/ui/link/link.ts +0 -0
  253. package/src/core/components/ui/loader/loader.md +0 -0
  254. package/src/core/components/ui/loader/loader.stories.ts +0 -0
  255. package/src/core/components/ui/loader/loader.ts +0 -0
  256. package/src/core/components/ui/loader/styles/fixed.ts +0 -0
  257. package/src/core/components/ui/loader/styles/inline.ts +0 -0
  258. package/src/core/components/ui/menu/menu-item.ts +0 -0
  259. package/src/core/components/ui/menu/menu.md +0 -0
  260. package/src/core/components/ui/menu/menu.ts +0 -0
  261. package/src/core/components/ui/modal/modal-actions.ts +0 -0
  262. package/src/core/components/ui/modal/modal-close.ts +0 -0
  263. package/src/core/components/ui/modal/modal-content.ts +0 -0
  264. package/src/core/components/ui/modal/modal-subtitle.ts +0 -0
  265. package/src/core/components/ui/modal/modal-title.ts +0 -0
  266. package/src/core/components/ui/modal/modal.md +0 -0
  267. package/src/core/components/ui/modal/modal.stories.ts +0 -0
  268. package/src/core/components/ui/modal/modal.ts +0 -0
  269. package/src/core/components/ui/pop/pop.md +0 -0
  270. package/src/core/components/ui/pop/pop.ts +0 -0
  271. package/src/core/components/ui/progress/progress.md +0 -0
  272. package/src/core/components/ui/progress/progress.ts +0 -0
  273. package/src/core/components/ui/table/table-caption.ts +0 -0
  274. package/src/core/components/ui/table/table-tbody.ts +0 -0
  275. package/src/core/components/ui/table/table-td.ts +0 -0
  276. package/src/core/components/ui/table/table-tfoot.ts +0 -0
  277. package/src/core/components/ui/table/table-th.ts +0 -0
  278. package/src/core/components/ui/table/table-thead.ts +0 -0
  279. package/src/core/components/ui/table/table-tr.ts +0 -0
  280. package/src/core/components/ui/table/table.md +0 -0
  281. package/src/core/components/ui/table/table.ts +0 -0
  282. package/src/core/components/ui/theme/theme-collection/core-variables.ts +0 -0
  283. package/src/core/components/ui/theme/theme-collection/dark.ts +0 -0
  284. package/src/core/components/ui/theme/theme-collection/light.ts +0 -0
  285. package/src/core/components/ui/theme/theme.ts +0 -0
  286. package/src/core/components/ui/toast/message-subscriber.stories.ts +0 -0
  287. package/src/core/components/ui/toast/message-subscriber.ts +0 -0
  288. package/src/core/components/ui/toast/toast-item.ts +0 -0
  289. package/src/core/components/ui/toast/toast.ts +0 -0
  290. package/src/core/components/ui/toast/types.ts +0 -0
  291. package/src/core/components/ui/tooltip/tooltip.md +0 -0
  292. package/src/core/components/ui/tooltip/tooltip.ts +0 -0
  293. package/src/core/components/ui/ui.ts +0 -0
  294. package/src/core/core.ts +0 -0
  295. package/src/core/decorators/Subscriber.ts +0 -0
  296. package/src/core/directives/DataProvider.ts +0 -0
  297. package/src/core/directives/Wording.ts +0 -0
  298. package/src/core/mixins/Fetcher.ts +0 -0
  299. package/src/core/mixins/FormCheckable.ts +0 -0
  300. package/src/core/mixins/FormElement.ts +0 -0
  301. package/src/core/mixins/FormInput.ts +0 -0
  302. package/src/core/mixins/Subscriber.ts +0 -0
  303. package/src/core/mixins/TemplatesContainer.ts +0 -0
  304. package/src/core/mixins/mixins.ts +0 -0
  305. package/src/core/utils/Arrays.ts +0 -0
  306. package/src/core/utils/DataBindObserver.ts +0 -0
  307. package/src/core/utils/Electron.ts +0 -0
  308. package/src/core/utils/Format.ts +0 -0
  309. package/src/core/utils/HTML.ts +0 -0
  310. package/src/core/utils/LocationHandler.ts +0 -0
  311. package/src/core/utils/Objects.ts +0 -0
  312. package/src/core/utils/PublisherProxy.ts +0 -0
  313. package/src/core/utils/Utils.ts +0 -0
  314. package/src/core/utils/api.ts +0 -0
  315. package/src/core/utils/route.ts +0 -0
  316. package/src/core/utils/url-pattern.ts +0 -0
  317. package/src/decorators.ts +0 -0
  318. package/src/directives.ts +0 -0
  319. package/src/docs/_core-concept/overview.md +0 -0
  320. package/src/docs/_core-concept/subscriber.md +0 -0
  321. package/src/docs/_getting-started/concorde-outside.md +0 -0
  322. package/src/docs/_getting-started/create-a-component.md +0 -0
  323. package/src/docs/_getting-started/my-first-subscriber.md +0 -0
  324. package/src/docs/_getting-started/pubsub.md +0 -0
  325. package/src/docs/_getting-started/start.md +0 -0
  326. package/src/docs/_getting-started/theming.md +0 -0
  327. package/src/docs/code.ts +0 -0
  328. package/src/docs/docs.ts +0 -0
  329. package/src/docs/example/users.ts +0 -0
  330. package/src/docs/header/header.ts +0 -0
  331. package/src/docs/navigation/navigation.ts +0 -0
  332. package/src/docs/prism/index.ts +0 -0
  333. package/src/docs/prism/prism.css +0 -0
  334. package/src/docs/prism/prism.js +0 -0
  335. package/src/docs/search/docs-search.json +0 -0
  336. package/src/docs/search/markdown-renderer.ts +0 -0
  337. package/src/docs/search/page.ts +0 -0
  338. package/src/docs/search/search.ts +0 -0
  339. package/src/docs/tailwind/css/tailwind.css +0 -0
  340. package/src/docs/tailwind/css/tailwind.d.ts +0 -0
  341. package/src/docs/tailwind/index.ts +0 -0
  342. package/src/docs.ts +0 -0
  343. package/src/index.ts +0 -0
  344. package/src/mixins.ts +0 -0
  345. package/src/tag-list.json +0 -0
  346. package/src/test-utils/TestUtils.ts +0 -0
  347. package/src/tsconfig-model.json +0 -0
  348. package/src/tsconfig.json +0 -0
  349. package/src/utils.ts +0 -0
  350. package/tailwind.config.js +0 -0
  351. package/test-utils/TestUtils.ts +0 -0
  352. package/vite.config.mts +0 -0
@@ -0,0 +1,3692 @@
1
+ (function(Q){typeof define=="function"&&define.amd?define(Q):Q()})(function(){"use strict";var Mt,k,L,Er,t,G;let Q=class It{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,s)=>{const i=s.indexOf("=");return t[s.substring(0,i).trim()]=s.substring(i+1),t},{})}static everyAncestors(t,s){for(;t;){if(!s(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const s=t;if(s.nodeType===1){const i=window.getComputedStyle(s);if((i==null?void 0:i.overflowY)==="hidden"||(i==null?void 0:i.overflowX)==="hidden")return t}t=t.parentNode||t.host}return null}static getAncestorAttributeValue(t,s){if(!t)return null;for(;!("hasAttribute"in t&&t.hasAttribute(s))&&(t.parentNode||t.host);)t=t.parentNode||t.host;return"hasAttribute"in t?t.getAttribute(s):null}static getApiConfiguration(t){const s=It.getAncestorAttributeValue(t,"token"),i=It.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=It.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const l=It.getAncestorAttributeValue(t,"tokenProvider"),c=It.getAncestorAttributeValue(t,"eventsApiToken");s||(o=It.getAncestorAttributeValue(t,"userName"),n=It.getAncestorAttributeValue(t,"password"));const h=It.getAncestorAttributeValue(t,"credentials")||void 0,d=t.getAttribute("cache"),f=t.hasAttribute("blockUntilDone");return{serviceURL:e,token:s,userName:o,password:n,authToken:c,tokenProvider:l,addHTTPResponse:i,credentials:h,cache:d,blockUntilDone:f}}static getClosestElement(t,s){for(;!(t.nodeName&&t.nodeName.toLowerCase()===s)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return It.getClosestElement(t,"form")}static async loadJS(t){return new Promise(async i=>{const e=document.createElement("script");e.src=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async i=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}},os=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,s="",i="long"){s||(s=Q.getLanguage());const e=(h,d)=>[Math.floor(h/d),h%d];function o(h,d,f){return new Intl.NumberFormat(h,{style:"unit",unit:d,unitDisplay:f}).format}const[n,l]=e(t,60),c=[];return n&&c.push(o(s,"hour",i)(n)),l&&c.push(o(s,"minute",i)(l)),new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}};function Te(r){return typeof r=="object"&&r!=null}const Tr=async()=>new Promise(r=>{window.queueMicrotask(()=>r(null))});let Pe="sonic";typeof __SONIC_PREFIX__>"u"&&(Pe="sonic"+Math.floor(Math.random()*1e6));const Es=Pe=="sonic"?"publisher-proxies-data":Pe+"-publisher-proxies-data";let Ns=(Mt=class{constructor(t,s){for(this._proxies_=new Map,this._is_savable_=!1,this._invalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this._instanceCounter_=0,this._assignmentId_=0,this._value_=t,this.parent=s||null,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){var t;for(const s in this._proxies_.keys())s!="_parent_"&&((t=this._proxies_.get(s))==null||t.delete());this._invalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),Mt.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){if(this._mutationListeners_.forEach(s=>s()),this._is_savable_&&!N.changed){N.changed=!0,N.saveId++;const s=N.saveId;setTimeout(()=>N.getInstance().saveToLocalStorage(s),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){this._assignmentId_++;const s=this._assignmentId_;if(await Tr(),s!==this._assignmentId_)return;const i=this.get();this._assignListeners_.forEach(e=>e(i)),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,s){this._fillListeners_.forEach(i=>{i[t]!==s&&(i[t]=s)}),this._publishTemplateFilling_(t,s)}_publishTemplateFilling_(t,s){this._templateFillListeners_.forEach(i=>{const e=Object.getOwnPropertyDescriptor(i,t);e&&!e.set&&!e.writable||(i.propertyMap&&i.propertyMap[t]&&(t=i.propertyMap[t]),typeof i[t]<"u"&&i[t]!==s&&(i[t]=s))})}onAssign(t,s=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),s&&t(this.get())))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){typeof t=="function"&&this._invalidateListeners_.add(t)}offInvalidate(t){typeof t=="function"&&this._invalidateListeners_.delete(t)}invalidate(){this._publishInvalidation_()}onInternalMutation(t){typeof t=="function"&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){typeof t=="function"&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),typeof this._value_=="object")for(const s in this._value_){let i=s;const e=this._value_[s];t.propertyMap&&t.propertyMap[s]&&(i=t.propertyMap[s]),typeof t[s]<"u"&&t[s]!==e&&(t[i]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const s in this._value_){const i=this._value_[s];t[s]!==i&&(t[s]=i)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}async set(t,s=!1){var o;if(this._value_===t||this._value_&&t&&Object.prototype.hasOwnProperty.call(this._value_,"__value")&&Object.prototype.hasOwnProperty.call(t,"__value")&&this._value_.__value===t.__value)return!0;const i=this._value_;if(this._value_=Te(t)?t:{__value:t},this._cachedGet_=void 0,Object.prototype.hasOwnProperty.call(this._value_,"__value"))return await this._publishAssignement_(s),!0;for(const n in this._value_)this._value_[n]===void 0&&delete this._value_[n];if(this._proxies_.forEach((n,l)=>{this._value_[l]===void 0&&l!="_parent_"&&i[l]&&(this._value_[l]=null)}),await this._publishAssignement_(),Te(this._value_))for(const n in this._value_){const l=t[n],h=Te(l)?l:{__value:l};if(!this._proxies_.has(n)){this._publishDynamicFilling_(n,l);continue}await((o=this._proxies_.get(n))==null?void 0:o.set(h,!0)),this._publishDynamicFilling_(n,l)}return!0}get(){if(this._cachedGet_!==void 0)return this._cachedGet_;if(N.modifiedCollectore.length>0&&N.modifiedCollectore[0].add(this),Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=t??null}return this._cachedGet_=this._value_}get $tag(){return this._instanceCounter_||(Mt.instancesCounter++,this._instanceCounter_=Mt.instancesCounter),Mt.instances.set(this._instanceCounter_,this),"<"+Pe+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+Pe+"-publisher-proxy>"}},Mt.instances=new Map,Mt.instancesCounter=0,Mt),N=(k=class{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],k.instance!=null)throw"Singleton / use getInstance";k.instance=this,this.isLocalStrorageReady=this.cleanStorageData()}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let i=localStorage.getItem(Es),e=null;if(i&&(e=await this.decompress(i,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else i=await this.compress("{}","gzip"),localStorage.setItem(Es,i),this.localStorageData={};const o=new Date().getTime()-1e3*60*60*12;for(const n in this.localStorageData)this.localStorageData[n].lastModifiationMS<o&&delete this.localStorageData[n];t(!0)}catch{window.requestAnimationFrame(()=>{t(!1)}),console.log("no publisher cache in this browser")}})()})}static getInstance(t){if(t){const s=k.instances.get(t);return s||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new k)}return k.instance==null?new k:k.instance}static registerInstance(t,s){k.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),k.instances.set(t,s)}static get(t,s){return k.getInstance().get(t,s)}static collectModifiedPublisher(){k.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return k.modifiedCollectore.shift()}static delete(t){return t?k.getInstance().delete(t):!1}async setLocalData(t,s){var i;await this.isLocalStrorageReady,t.set(((i=this.localStorageData[s+"¤lang_"+Q.getLanguage()])==null?void 0:i.data)||t.get())}get(t,s){const i=(s==null?void 0:s.localStorageMode)==="enabled";if(!this.publishers.has(t)){const o={},n=new je(o);this.set(t,n)}const e=this.publishers.get(t);return i&&this.initialisedData.indexOf(t)===-1&&(e._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(e,t)),this.publishers.get(t)}set(t,s){this.publishers.set(t,s)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==k.saveId&&t%10!=0))try{if(!k.changed||k.saving)return;k.saving=!0,k.changed=!1;const s=Array.from(this.publishers.keys());let i=!1;for(const e of s){const o=this.publishers.get(e);if(!(o!=null&&o._is_savable_))continue;const n=o==null?void 0:o.get();n&&(this.localStorageData[e+"¤lang_"+Q.getLanguage()]={lastModifiationMS:new Date().getTime(),data:n},i=!0)}if(i){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(Es,e)}if(k.saving=!1,k.changed){k.saveId++;const e=k.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{k.saving=!1}}async compress(t,s){const i=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(s),n=o.writable.getWriter();n.write(i),n.close();const l=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(l);let h="";for(let d=0;d<c.length;d++)h+=String.fromCharCode(c[d]);return btoa(h)}async decompress(t,s){const i=atob(t),o=Uint8Array.from(i,d=>d.charCodeAt(0)).buffer,n=window,l=new n.DecompressionStream(s),c=l.writable.getWriter();c.write(o),c.close();const h=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(h)}},k.buildDate="Wed Aug 28 2024 09:22:20 GMT+0200 (Central European Summer Time)",k.changed=!1,k.saving=!1,k.saveId=0,k.instance=null,k.instances=new Map,k.modifiedCollectore=[],k);const Ts=window;Ts.SonicPublisherManager||(Ts.SonicPublisherManager=N),Ts.SonicPublisherManager.registerInstance(N.getInstance());const jr=new Set(["invalidate","onInvalidate","offInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_value_","_is_savable_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_"]);class je extends Ns{constructor(t,s=null){super(t,s);const i=new Proxy(this,{get:function(e,o){if(o==Symbol.toPrimitive)return()=>i.get();if(jr.has(o))return e[o];if(!e._proxies_.has(o)){const n=e._value_[o],l=new je(Te(n)?n:{__value:n},e);l._proxies_.set("_parent_",i),e._proxies_.set(o,l)}return e._proxies_.get(o)},set:function(e,o,n){var c;if(o=="_value_")return e._value_=n,!0;if(o=="_cachedGet_")return e._cachedGet_=n,!0;if(o=="_assignmentId_")return e._assignmentId_=n,!0;if(o=="_is_savable_")return e._is_savable_=n,!0;if(o=="_instanceCounter_")return e._instanceCounter_=n,!0;if(!e._proxies_.has(o)){const h=new je({},e);h._proxies_.set("_parent_",i),e._proxies_.set(o,h)}return e._value_[o]!==n&&(e._value_[o]=n,e._publishDynamicFilling_(o,n),(c=e._proxies_.get(o))==null||c.set(Te(n)?n:{__value:n})),!0},deleteProperty:function(e,o){var n;return e._publishDynamicFilling_(o,null),(n=e._proxies_.get(o))==null||n.set(null),delete e._value_[o]},has:function(e,o){return o in e._value_&&o!="_lockInternalMutationPublishing_"},defineProperty:function(e,o,n){return n&&"value"in n&&(e._value_[o]=n.value),!0},getOwnPropertyDescriptor:function(e,o){return{enumerable:!0,configurable:!0}},ownKeys:function(e){return e._value_.__value?Object.keys(e._value_.__value):Object.keys(e._value_)}});return i}toString(){return"hey"}valueOf(){return 2}getProperty(t,s){return t[s]}}class Mr extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){var t;this.publisherId=this.getAttribute("publisher")||"",this.publisher=Ns.instances.get(parseInt(this.publisherId)),(t=this.publisher)==null||t.onAssign(this.onAssign)}disconnectedCallback(){var t;(t=this.publisher)==null||t.offAssign(this.onAssign)}}try{customElements.define(Pe+"-publisher-proxy",Mr)}catch{}let ns=(L=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(L.observedElements.keys()).forEach(t=>L.unObserve(t)))}static observe(t){if(!t||!L.enabled||L.observedElements.has(t))return;const s=new MutationObserver(L.onMutation),i={};i.childList=!0,i.subtree=!0,i.attributes=!0,i.attributeFilter=["data-bind"],s.observe(t,i),t.querySelectorAll("[data-bind]").forEach(e=>L.addPublisherListeners(e)),L.observedElements.set(t,s)}static unObserve(t){if(!t)return;const s=this.observedElements.get(t);s&&(s.disconnect(),t.querySelectorAll("[data-bind]").forEach(i=>L.removePublisherListeners(i)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&L.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>L.addPublisherListeners(s)):t.childNodes.forEach(s=>L.onAdded(s))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&L.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>L.removePublisherListeners(s)):t.childNodes.forEach(s=>L.onRemoved(s))}static onMutation(t){for(const s of t)switch(s.type){case"attributes":L.addPublisherListeners(s.target);break;case"childList":s.addedNodes.forEach(i=>{L.onAdded(i)}),s.removedNodes.forEach(i=>{L.onRemoved(i)});break}}static removePublisherListeners(t){const s=L.publisherListeners.get(t);s&&(L.publisherListeners.delete(t),s.forEach(i=>{var e;(e=i.publisher)==null||e.offAssign(i.onAssign)}))}static getVariablesDescriptor(t){let s=t.match(/(\$(?:\w+\\?\.?)+)/g);return s?s=s.map(i=>i.replace("$","")):s=[t],s=s.filter(i=>i.length>0),{expression:t.replace("\\",""),variables:s.map(i=>i.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(s=>s.name.indexOf("::")==0).map(s=>({propertyToUpdate:s.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:L.getVariablesDescriptor(s.value)})):[]}static getSubPublisher(t,s){if(!s)return t;for(const i of s)if(i!="_self_"){if(!t)return null;t=t[i]}return t}static addPublisherListeners(t){L.removePublisherListeners(t);const s=Q.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!s)return;const i=N.getInstance().get(s),e=L.getDataBindItems(t),o=[];e.forEach(n=>{const l=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of l.variables){const d=h;let f=i;f=L.getSubPublisher(i,d);const m=t,v={publisher:f,onAssign:()=>{const b=l.variables.map(D=>{var p;return(p=L.getSubPublisher(i,D))==null?void 0:p.get()});let P=l.expression,S=!1;if(b.length==1&&l.variables[0].join(".")==P.substring(1)){let D=b[0];D===null&&(D=""),m[c]=D;return}for(let D=0;D<b.length;D++){let p=b[D];const u=l.variables[D];p===null&&(S=!0,p=void 0),P=P.replace("$"+u.join("."),p)}if(P.indexOf("|")!=-1){const D=P.indexOf("|");if(D==0)P=os.js(P.substring(1));else{const p=P.substring(0,D),u=P.substring(D+1),y=os[p];P=S?"":y?y(u):P}}else P=S?"":P;m[c]=P}};f==null||f.onAssign(v.onAssign),o.push(v)}}),L.publisherListeners.set(t,o)}},L.observedElements=new Map,L.enabled=!0,L.publisherListeners=new Map,L);ns.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=ns);let X=class ee{static shallowEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const l=t[n],c=s[n];if(i?l!==c:l!=c)return!1}return!0}static deepEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const l=t[n],c=s[n],h=ee.isObject(l)&&ee.isObject(c),d=i?l!==c:l!=c;if(h&&!ee.deepEqual(l,c)||!h&&d)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return ee.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,s,i=!1){for(const e of s){const o=t[e];if(o===void 0)return;i&&ee.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static getURLSearchArray(t,s=""){let i=[];for(let e in t){const o=t[e];s&&(e=s+"["+e+"]"),ee.isObject(o)?i=[...i,...this.getURLSearchArray(o,e)]:i.push(`${e}=${o}`)}return i}static getURLSearchString(t){return ee.getURLSearchArray(t,"").join("&")}};/**
2
+ * @license
3
+ * Copyright 2017 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */const _=r=>(t,s)=>{s!==void 0?s.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};/**
6
+ * @license
7
+ * Copyright 2019 Google LLC
8
+ * SPDX-License-Identifier: BSD-3-Clause
9
+ */const as=globalThis,js=as.ShadowRoot&&(as.ShadyCSS===void 0||as.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ms=Symbol(),Ci=new WeakMap;let Ai=class{constructor(t,s,i){if(this._$cssResult$=!0,i!==Ms)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=s}get styleSheet(){let t=this.o;const s=this.t;if(js&&t===void 0){const i=s!==void 0&&s.length===1;i&&(t=Ci.get(s)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Ci.set(s,t))}return t}toString(){return this.cssText}};const Ir=r=>new Ai(typeof r=="string"?r:r+"",void 0,Ms),$=(r,...t)=>{const s=r.length===1?r[0]:t.reduce((i,e,o)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+r[o+1],r[0]);return new Ai(s,r,Ms)},zr=(r,t)=>{if(js)r.adoptedStyleSheets=t.map(s=>s instanceof CSSStyleSheet?s:s.styleSheet);else for(const s of t){const i=document.createElement("style"),e=as.litNonce;e!==void 0&&i.setAttribute("nonce",e),i.textContent=s.cssText,r.appendChild(i)}},Si=js?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let s="";for(const i of t.cssRules)s+=i.cssText;return Ir(s)})(r):r;/**
10
+ * @license
11
+ * Copyright 2017 Google LLC
12
+ * SPDX-License-Identifier: BSD-3-Clause
13
+ */const{is:Fr,defineProperty:Rr,getOwnPropertyDescriptor:Ur,getOwnPropertyNames:Vr,getOwnPropertySymbols:Br,getPrototypeOf:Hr}=Object,Bt=globalThis,Oi=Bt.trustedTypes,qr=Oi?Oi.emptyScript:"",Is=Bt.reactiveElementPolyfillSupport,Me=(r,t)=>r,ls={toAttribute(r,t){switch(t){case Boolean:r=r?qr:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let s=r;switch(t){case Boolean:s=r!==null;break;case Number:s=r===null?null:Number(r);break;case Object:case Array:try{s=JSON.parse(r)}catch{s=null}}return s}},zs=(r,t)=>!Fr(r,t),Di={attribute:!0,type:String,converter:ls,reflect:!1,hasChanged:zs};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Bt.litPropertyMetadata??(Bt.litPropertyMetadata=new WeakMap);let $e=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=Di){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),e=this.getPropertyDescriptor(t,i,s);e!==void 0&&Rr(this.prototype,t,e)}}static getPropertyDescriptor(t,s,i){const{get:e,set:o}=Ur(this.prototype,t)??{get(){return this[s]},set(n){this[s]=n}};return{get(){return e==null?void 0:e.call(this)},set(n){const l=e==null?void 0:e.call(this);o.call(this,n),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Di}static _$Ei(){if(this.hasOwnProperty(Me("elementProperties")))return;const t=Hr(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Me("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Me("properties"))){const s=this.properties,i=[...Vr(s),...Br(s)];for(const e of i)this.createProperty(e,s[e])}const t=this[Symbol.metadata];if(t!==null){const s=litPropertyMetadata.get(t);if(s!==void 0)for(const[i,e]of s)this.elementProperties.set(i,e)}this._$Eh=new Map;for(const[s,i]of this.elementProperties){const e=this._$Eu(s,i);e!==void 0&&this._$Eh.set(e,s)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const s=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const e of i)s.unshift(Si(e))}else t!==void 0&&s.push(Si(t));return s}static _$Eu(t,s){const i=s.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(s=>this.enableUpdating=s),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(s=>s(this))}addController(t){var s;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)==null||s.call(t))}removeController(t){var s;(s=this._$EO)==null||s.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return zr(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(s=>{var i;return(i=s.hostConnected)==null?void 0:i.call(s)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(s=>{var i;return(i=s.hostDisconnected)==null?void 0:i.call(s)})}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$EC(t,s){var o;const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(e!==void 0&&i.reflect===!0){const n=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:ls).toAttribute(s,i.type);this._$Em=t,n==null?this.removeAttribute(e):this.setAttribute(e,n),this._$Em=null}}_$AK(t,s){var o;const i=this.constructor,e=i._$Eh.get(t);if(e!==void 0&&this._$Em!==e){const n=i.getPropertyOptions(e),l=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)==null?void 0:o.fromAttribute)!==void 0?n.converter:ls;this._$Em=e,this[e]=l.fromAttribute(s,n.type),this._$Em=null}}requestUpdate(t,s,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??zs)(this[t],s))return;this.P(t,s,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(s){Promise.reject(s)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[o,n]of e)n.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],n)}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),(i=this._$EO)==null||i.forEach(e=>{var o;return(o=e.hostUpdate)==null?void 0:o.call(e)}),this.update(s)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(s)}willUpdate(t){}_$AE(t){var s;(s=this._$EO)==null||s.forEach(i=>{var e;return(e=i.hostUpdated)==null?void 0:e.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(s=>this._$EC(s,this[s]))),this._$EU()}updated(t){}firstUpdated(t){}};$e.elementStyles=[],$e.shadowRootOptions={mode:"open"},$e[Me("elementProperties")]=new Map,$e[Me("finalized")]=new Map,Is==null||Is({ReactiveElement:$e}),(Bt.reactiveElementVersions??(Bt.reactiveElementVersions=[])).push("2.0.4");/**
14
+ * @license
15
+ * Copyright 2017 Google LLC
16
+ * SPDX-License-Identifier: BSD-3-Clause
17
+ */const Wr={attribute:!0,type:String,converter:ls,reflect:!1,hasChanged:zs},Kr=(r=Wr,t,s)=>{const{kind:i,metadata:e}=s;let o=globalThis.litPropertyMetadata.get(e);if(o===void 0&&globalThis.litPropertyMetadata.set(e,o=new Map),o.set(s.name,r),i==="accessor"){const{name:n}=s;return{set(l){const c=t.get.call(this);t.set.call(this,l),this.requestUpdate(n,c,r)},init(l){return l!==void 0&&this.P(n,void 0,r),l}}}if(i==="setter"){const{name:n}=s;return function(l){const c=this[n];t.call(this,l),this.requestUpdate(n,c,r)}}throw Error("Unsupported decorator location: "+i)};function a(r){return(t,s)=>typeof s=="object"?Kr(r,t,s):((i,e,o)=>{const n=e.hasOwnProperty(o);return e.constructor.createProperty(o,n?{...i,wrapped:!0}:i),n?Object.getOwnPropertyDescriptor(e,o):void 0})(r,t,s)}/**
18
+ * @license
19
+ * Copyright 2017 Google LLC
20
+ * SPDX-License-Identifier: BSD-3-Clause
21
+ */function j(r){return a({...r,state:!0,attribute:!1})}/**
22
+ * @license
23
+ * Copyright 2017 Google LLC
24
+ * SPDX-License-Identifier: BSD-3-Clause
25
+ */const cs=(r,t,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,s),s);/**
26
+ * @license
27
+ * Copyright 2017 Google LLC
28
+ * SPDX-License-Identifier: BSD-3-Clause
29
+ */function se(r,t){return(s,i,e)=>{const o=n=>{var l;return((l=n.renderRoot)==null?void 0:l.querySelector(r))??null};if(t){const{get:n,set:l}=typeof i=="object"?s:e??(()=>{const c=Symbol();return{get(){return this[c]},set(h){this[c]=h}}})();return cs(s,i,{get(){let c=n.call(this);return c===void 0&&(c=o(this),(c!==null||this.hasUpdated)&&l.call(this,c)),c}})}return cs(s,i,{get(){return o(this)}})}}/**
30
+ * @license
31
+ * Copyright 2021 Google LLC
32
+ * SPDX-License-Identifier: BSD-3-Clause
33
+ */function ie(r){return(t,s)=>{const{slot:i,selector:e}=r??{},o="slot"+(i?`[name=${i}]`:":not([name])");return cs(t,s,{get(){var c;const n=(c=this.renderRoot)==null?void 0:c.querySelector(o),l=(n==null?void 0:n.assignedElements(r))??[];return e===void 0?l:l.filter(h=>h.matches(e))}})}}/**
34
+ * @license
35
+ * Copyright 2017 Google LLC
36
+ * SPDX-License-Identifier: BSD-3-Clause
37
+ */function it(r){return(t,s)=>{const{slot:i}=r??{},e="slot"+(i?`[name=${i}]`:":not([name])");return cs(t,s,{get(){var n;const o=(n=this.renderRoot)==null?void 0:n.querySelector(e);return(o==null?void 0:o.assignedNodes(r))??[]}})}}/**
38
+ * @license
39
+ * Copyright 2017 Google LLC
40
+ * SPDX-License-Identifier: BSD-3-Clause
41
+ */const Ie=globalThis,hs=Ie.trustedTypes,ki=hs?hs.createPolicy("lit-html",{createHTML:r=>r}):void 0,Fs="$lit$",zt=`lit$${(Math.random()+"").slice(9)}$`,Rs="?"+zt,Zr=`<${Rs}>`,re=document,ze=()=>re.createComment(""),Fe=r=>r===null||typeof r!="object"&&typeof r!="function",Li=Array.isArray,Ei=r=>Li(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",Us=`[
42
+ \f\r]`,Re=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ni=/-->/g,Ti=/>/g,oe=RegExp(`>|${Us}(?:([^\\s"'>=/]+)(${Us}*=${Us}*(?:[^
43
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ji=/'/g,Mi=/"/g,Ii=/^(?:script|style|textarea|title)$/i,Yr=r=>(t,...s)=>({_$litType$:r,strings:t,values:s}),g=Yr(1),mt=Symbol.for("lit-noChange"),C=Symbol.for("lit-nothing"),zi=new WeakMap,ne=re.createTreeWalker(re,129);function Fi(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return ki!==void 0?ki.createHTML(t):t}const Ri=(r,t)=>{const s=r.length-1,i=[];let e,o=t===2?"<svg>":"",n=Re;for(let l=0;l<s;l++){const c=r[l];let h,d,f=-1,m=0;for(;m<c.length&&(n.lastIndex=m,d=n.exec(c),d!==null);)m=n.lastIndex,n===Re?d[1]==="!--"?n=Ni:d[1]!==void 0?n=Ti:d[2]!==void 0?(Ii.test(d[2])&&(e=RegExp("</"+d[2],"g")),n=oe):d[3]!==void 0&&(n=oe):n===oe?d[0]===">"?(n=e??Re,f=-1):d[1]===void 0?f=-2:(f=n.lastIndex-d[2].length,h=d[1],n=d[3]===void 0?oe:d[3]==='"'?Mi:ji):n===Mi||n===ji?n=oe:n===Ni||n===Ti?n=Re:(n=oe,e=void 0);const v=n===oe&&r[l+1].startsWith("/>")?" ":"";o+=n===Re?c+Zr:f>=0?(i.push(h),c.slice(0,f)+Fs+c.slice(f)+zt+v):c+zt+(f===-2?l:v)}return[Fi(r,o+(r[s]||"<?>")+(t===2?"</svg>":"")),i]};class Ue{constructor({strings:t,_$litType$:s},i){let e;this.parts=[];let o=0,n=0;const l=t.length-1,c=this.parts,[h,d]=Ri(t,s);if(this.el=Ue.createElement(h,i),ne.currentNode=this.el.content,s===2){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(e=ne.nextNode())!==null&&c.length<l;){if(e.nodeType===1){if(e.hasAttributes())for(const f of e.getAttributeNames())if(f.endsWith(Fs)){const m=d[n++],v=e.getAttribute(f).split(zt),b=/([.?@])?(.*)/.exec(m);c.push({type:1,index:o,name:b[2],strings:v,ctor:b[1]==="."?Vi:b[1]==="?"?Bi:b[1]==="@"?Hi:Ve}),e.removeAttribute(f)}else f.startsWith(zt)&&(c.push({type:6,index:o}),e.removeAttribute(f));if(Ii.test(e.tagName)){const f=e.textContent.split(zt),m=f.length-1;if(m>0){e.textContent=hs?hs.emptyScript:"";for(let v=0;v<m;v++)e.append(f[v],ze()),ne.nextNode(),c.push({type:2,index:++o});e.append(f[m],ze())}}}else if(e.nodeType===8)if(e.data===Rs)c.push({type:2,index:o});else{let f=-1;for(;(f=e.data.indexOf(zt,f+1))!==-1;)c.push({type:7,index:o}),f+=zt.length-1}o++}}static createElement(t,s){const i=re.createElement("template");return i.innerHTML=t,i}}function ae(r,t,s=r,i){var n,l;if(t===mt)return t;let e=i!==void 0?(n=s._$Co)==null?void 0:n[i]:s._$Cl;const o=Fe(t)?void 0:t._$litDirective$;return(e==null?void 0:e.constructor)!==o&&((l=e==null?void 0:e._$AO)==null||l.call(e,!1),o===void 0?e=void 0:(e=new o(r),e._$AT(r,s,i)),i!==void 0?(s._$Co??(s._$Co=[]))[i]=e:s._$Cl=e),e!==void 0&&(t=ae(r,e._$AS(r,t.values),e,i)),t}class Ui{constructor(t,s){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:s},parts:i}=this._$AD,e=((t==null?void 0:t.creationScope)??re).importNode(s,!0);ne.currentNode=e;let o=ne.nextNode(),n=0,l=0,c=i[0];for(;c!==void 0;){if(n===c.index){let h;c.type===2?h=new Ce(o,o.nextSibling,this,t):c.type===1?h=new c.ctor(o,c.name,c.strings,this,t):c.type===6&&(h=new qi(o,this,t)),this._$AV.push(h),c=i[++l]}n!==(c==null?void 0:c.index)&&(o=ne.nextNode(),n++)}return ne.currentNode=re,e}p(t){let s=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,s),s+=i.strings.length-2):i._$AI(t[s])),s++}}class Ce{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,s,i,e){this.type=2,this._$AH=C,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=i,this.options=e,this._$Cv=(e==null?void 0:e.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const s=this._$AM;return s!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=ae(this,t,s),Fe(t)?t===C||t==null||t===""?(this._$AH!==C&&this._$AR(),this._$AH=C):t!==this._$AH&&t!==mt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ei(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==C&&Fe(this._$AH)?this._$AA.nextSibling.data=t:this.T(re.createTextNode(t)),this._$AH=t}$(t){var o;const{values:s,_$litType$:i}=t,e=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Ue.createElement(Fi(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===e)this._$AH.p(s);else{const n=new Ui(e,this),l=n.u(this.options);n.p(s),this.T(l),this._$AH=n}}_$AC(t){let s=zi.get(t.strings);return s===void 0&&zi.set(t.strings,s=new Ue(t)),s}k(t){Li(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let i,e=0;for(const o of t)e===s.length?s.push(i=new Ce(this.S(ze()),this.S(ze()),this,this.options)):i=s[e],i._$AI(o),e++;e<s.length&&(this._$AR(i&&i._$AB.nextSibling,e),s.length=e)}_$AR(t=this._$AA.nextSibling,s){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,s);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var s;this._$AM===void 0&&(this._$Cv=t,(s=this._$AP)==null||s.call(this,t))}}class Ve{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,i,e,o){this.type=1,this._$AH=C,this._$AN=void 0,this.element=t,this.name=s,this._$AM=e,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=C}_$AI(t,s=this,i,e){const o=this.strings;let n=!1;if(o===void 0)t=ae(this,t,s,0),n=!Fe(t)||t!==this._$AH&&t!==mt,n&&(this._$AH=t);else{const l=t;let c,h;for(t=o[0],c=0;c<o.length-1;c++)h=ae(this,l[i+c],s,c),h===mt&&(h=this._$AH[c]),n||(n=!Fe(h)||h!==this._$AH[c]),h===C?t=C:t!==C&&(t+=(h??"")+o[c+1]),this._$AH[c]=h}n&&!e&&this.j(t)}j(t){t===C?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Vi extends Ve{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===C?void 0:t}}class Bi extends Ve{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==C)}}class Hi extends Ve{constructor(t,s,i,e,o){super(t,s,i,e,o),this.type=5}_$AI(t,s=this){if((t=ae(this,t,s,0)??C)===mt)return;const i=this._$AH,e=t===C&&i!==C||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==C&&(i===C||e);e&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var s;typeof this._$AH=="function"?this._$AH.call(((s=this.options)==null?void 0:s.host)??this.element,t):this._$AH.handleEvent(t)}}class qi{constructor(t,s,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ae(this,t)}}const Gr={P:Fs,A:zt,C:Rs,M:1,L:Ri,R:Ui,D:Ei,V:ae,I:Ce,H:Ve,N:Bi,U:Hi,B:Vi,F:qi},Vs=Ie.litHtmlPolyfillSupport;Vs==null||Vs(Ue,Ce),(Ie.litHtmlVersions??(Ie.litHtmlVersions=[])).push("3.1.2");const Qr=(r,t,s)=>{const i=(s==null?void 0:s.renderBefore)??t;let e=i._$litPart$;if(e===void 0){const o=(s==null?void 0:s.renderBefore)??null;i._$litPart$=e=new Ce(t.insertBefore(ze(),o),o,void 0,s??{})}return e._$AI(r),e};/**
44
+ * @license
45
+ * Copyright 2020 Google LLC
46
+ * SPDX-License-Identifier: BSD-3-Clause
47
+ */const{I:Jr}=Gr,Xr=r=>r.strings===void 0,Wi=()=>document.createComment(""),Be=(r,t,s)=>{var o;const i=r._$AA.parentNode,e=t===void 0?r._$AB:t._$AA;if(s===void 0){const n=i.insertBefore(Wi(),e),l=i.insertBefore(Wi(),e);s=new Jr(n,l,r,r.options)}else{const n=s._$AB.nextSibling,l=s._$AM,c=l!==r;if(c){let h;(o=s._$AQ)==null||o.call(s,r),s._$AM=r,s._$AP!==void 0&&(h=r._$AU)!==l._$AU&&s._$AP(h)}if(n!==e||c){let h=s._$AA;for(;h!==n;){const d=h.nextSibling;i.insertBefore(h,e),h=d}}}return s},le=(r,t,s=r)=>(r._$AI(t,s),r),to={},eo=(r,t=to)=>r._$AH=t,so=r=>r._$AH,Bs=r=>{var i;(i=r._$AP)==null||i.call(r,!1,!0);let t=r._$AA;const s=r._$AB.nextSibling;for(;t!==s;){const e=t.nextSibling;t.remove(),t=e}};/**
48
+ * @license
49
+ * Copyright 2017 Google LLC
50
+ * SPDX-License-Identifier: BSD-3-Clause
51
+ */const ce={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},he=r=>(...t)=>({_$litDirective$:r,values:t});let Ae=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,s,i){this._$Ct=t,this._$AM=s,this._$Ci=i}_$AS(t,s){return this.update(t,s)}update(t,s){return this.render(...s)}};/**
52
+ * @license
53
+ * Copyright 2017 Google LLC
54
+ * SPDX-License-Identifier: BSD-3-Clause
55
+ */const He=(r,t)=>{var i;const s=r._$AN;if(s===void 0)return!1;for(const e of s)(i=e._$AO)==null||i.call(e,t,!1),He(e,t);return!0},ds=r=>{let t,s;do{if((t=r._$AM)===void 0)break;s=t._$AN,s.delete(r),r=t}while((s==null?void 0:s.size)===0)},Ki=r=>{for(let t;t=r._$AM;r=t){let s=t._$AN;if(s===void 0)t._$AN=s=new Set;else if(s.has(r))break;s.add(r),oo(t)}};function io(r){this._$AN!==void 0?(ds(this),this._$AM=r,Ki(this)):this._$AM=r}function ro(r,t=!1,s=0){const i=this._$AH,e=this._$AN;if(e!==void 0&&e.size!==0)if(t)if(Array.isArray(i))for(let o=s;o<i.length;o++)He(i[o],!1),ds(i[o]);else i!=null&&(He(i,!1),ds(i));else He(this,r)}const oo=r=>{r.type==ce.CHILD&&(r._$AP??(r._$AP=ro),r._$AQ??(r._$AQ=io))};let Hs=class extends Ae{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,s,i){super._$AT(t,s,i),Ki(this),this.isConnected=t._$AU}_$AO(t,s=!0){var i,e;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(e=this.disconnected)==null||e.call(this)),s&&(He(this,t),ds(this))}setValue(t){if(Xr(this._$Ct))this._$Ct._$AI(t,this);else{const s=[...this._$Ct._$AH];s[this._$Ci]=t,this._$Ct._$AI(s,this,0)}}disconnected(){}reconnected(){}};/**
56
+ * @license
57
+ * Copyright 2017 Google LLC
58
+ * SPDX-License-Identifier: BSD-3-Clause
59
+ */let w=class extends $e{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var s;const t=super.createRenderRoot();return(s=this.renderOptions).renderBefore??(s.renderBefore=t.firstChild),t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Qr(s,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return mt}};w._$litElement$=!0,w.finalized=!0,(Er=globalThis.litElementHydrateSupport)==null||Er.call(globalThis,{LitElement:w});const qs=globalThis.litElementPolyfillSupport;qs==null||qs({LitElement:w}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.4");function ps(r){if(typeof r=="function"){const t=r;return N.collectModifiedPublisher(),t(),N.getModifiedPublishers()||new Set}if(typeof r=="string"){const t=r.split("."),s=t.shift()||"";let i=N.get(s);i=X.traverse(i,t);const e=new Set;return e.add(i),e}return new Set([r])}class no extends Hs{constructor(t){var s;super(t),this.observables=new Set,this.onAssign=i=>{this.setValue(i)},this.node=(s=t.options)==null?void 0:s.host}unsubscribe(){this.observables.forEach(t=>t.offAssign(this.onAssign))}render(t){return this.observable!==t&&(this.observable=t,this.isConnected&&this.subscribe(t)),mt}subscribe(t){this.unsubscribe(),typeof t=="function"?this.onAssign=()=>{this.setValue(t())}:this.onAssign=s=>{this.setValue(s)},this.observables=ps(t),this.observables.forEach(s=>{s.onAssign(this.onAssign)})}disconnected(){this.unsubscribe()}reconnected(){this.observable&&this.subscribe(this.observable)}}const Zi=he(no),ao=Zi,lo=Zi,co=r=>ps(r).values().next().value.get(),Yi=(r,t)=>{const s=ps(r).values().next().value;if(t!==void 0){const i=s.get();X.isEmpty(i)&&s.set(t)}return s},ho=Yi,Gi=Yi,po=(r,t)=>{ps(r).values().next().value.set(t)},z=class z{constructor(t){this.addHTTPResponse=!1,this.cache="default",this.isServiceSimulated=!1,this.blockUntilDone=!1,this.serviceURL=t.serviceURL,this.blockUntilDone=t.blockUntilDone||!1,this.serviceURL=="publisher://"&&(this.isServiceSimulated=!0),this.serviceURL||(this.serviceURL=document.location.origin),this.userName=t.userName,this.password=t.password,t.token&&(this.token=t.token),this.tokenProvider=t.tokenProvider,this.authToken=t.authToken,this.addHTTPResponse=t.addHTTPResponse||!1,this.credentials=t.credentials,this.cache=t.cache||"default"}set token(t){if(this._token=t,!t){z.tokens.delete(this.serviceURL);return}z.invalidTokens.includes(t)||z.tokens.set(this.serviceURL,t)}get token(){return z.invalidTokens.includes(this._token)?z.tokens.get(this.serviceURL):this._token}handleInvalidToken(t){t&&(z.invalidTokens.includes(t)||(z.invalidTokens.push(t),this.token=null))}async handleResult(t,s){var n;z.firstCallDoneFlags.set(this.serviceURL,"done"),this.lastResult=t;const i=(n=t.headers.get("content-type"))==null?void 0:n.toLowerCase(),e=t.status;let o={};if(!i||i.indexOf("text/")==0)o={text:await t.text()};else try{o=await t.json()}catch{o={}}return this.addHTTPResponse&&X.isObject(o)&&(o._sonic_http_response_=t),e===498&&!z.failledTokenUpdates.has(this.serviceURL)&&(this.handleInvalidToken(this.token),s.apiMethod==="get"?o=await this[s.apiMethod](s.path,s.additionalHeaders):o=await this[s.apiMethod](s.path,s.data,s.method,s.additionalHeaders)),o}async auth(){if(this.token)return;if(z.tokens.has(this.serviceURL)){this.token=z.tokens.get(this.serviceURL);return}if(!this.tokenProvider)return;let t={};this.userName&&this.password?t={Authorization:"Basic "+window.btoa(unescape(encodeURIComponent(this.userName+":"+this.password)))}:this.authToken&&(t={Authorization:"Bearer "+this.authToken});const s=new URL(this.serviceURL),i=s.protocol+"//"+s.host,e=await fetch(this.computeURL(this.tokenProvider,{serviceHost:i}),{headers:t,credentials:this.credentials});try{const o=await e.json();o.token?this.token=o.token:z.failledTokenUpdates.set(this.serviceURL,!0)}catch{z.failledTokenUpdates.set(this.serviceURL,!0)}}async localGet(t,s){var f;const i=N.get(t),e=new URLSearchParams(s.split("?")[1]||""),o=i.get();let n=[];Array.isArray(o)?n=o:n=[o];const l=[];let c=Number.POSITIVE_INFINITY,h=0,d=0;if(e.has("limit")&&(c=parseInt(e.get("limit")||"0"),d++),e.has("offset")&&(h=parseInt(e.get("offset")||"0"),d++),d>0&&(e.delete("limit"),e.delete("offset")),e.size===0)return n.slice(h,h+c);for(const[m,v]of e.entries()){const b=v.split(",").map(P=>P.trim());for(const P of b)for(const S of n)if(typeof S!="object")isNaN(+S)?S.toString().toLowerCase().includes(v.toLowerCase())&&l.push(S):S===v&&l.push(S);else{const D=S;if(!D[m])continue;isNaN(+D[m])?(f=D[m])!=null&&f.toString().toLowerCase().includes(P.toLowerCase())&&l.push(S):D[m]===P&&l.push(S)}}return l.slice(h,h+c)}firstCallDone(){return new Promise(t=>{if(!z.firstCallDoneFlags.has(this.serviceURL))z.firstCallDoneFlags.set(this.serviceURL,"loading"),t(!0);else{const s=()=>{[void 0,"loading"].includes(z.firstCallDoneFlags.get(this.serviceURL))?window.requestAnimationFrame(s):t(!0)};s()}})}async get(t,s){await this.firstCallDone(),this.blockUntilDone&&z.firstCallDoneFlags.set(this.serviceURL,"loading");const i=/dataProvider\((.*?)\)(.*?)$/;if(i.test(t)){const h=t.match(i);if(!h)throw new Error("dataProvider path is not valid");return await this.localGet(h[1],h[2])}const e={apiMethod:"get",path:t,additionalHeaders:s},o=await this.createHeaders(s),n=this.computeURL(t),l=JSON.stringify({url:n,headers:o});if(!z.loadingGetPromises.has(l)){const h=new Promise(async d=>{try{const f=await fetch(n,{headers:o,credentials:this.credentials,cache:this.cache}),m=await this.handleResult(f,e);d(m)}catch{d(null)}});z.loadingGetPromises.set(l,h)}const c=await z.loadingGetPromises.get(l);return z.loadingGetPromises.delete(l),c}async createHeaders(t){await this.auth();const s={};return this.token&&(s.Authorization="Bearer "+this.token),s["Accept-Language"]=Q.getLanguage(),t&&Object.assign(s,t),s}computeURL(t,s={}){let i="";t.startsWith("http")?i=t:i=this.serviceURL+"/"+t,i.startsWith("http")||(i=window.location.origin+i);const e=new URL(i);for(const o in s)e.searchParams.set(o,s[o]);return e.toString().replace(/([^(https?:)])\/{2,}/g,"$1/")}async send(t,s,i="POST",e){const o={apiMethod:"send",path:t,additionalHeaders:e,method:i,data:s},n=await this.createHeaders(e);n.Accept="application/json",n["Content-Type"]="application/json";const l=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:i,body:JSON.stringify(s)});return await this.handleResult(l,o)}async submitFormData(t,s,i="POST",e){const o={apiMethod:"submitFormData",path:t,additionalHeaders:e,method:i,data:s},n=await this.createHeaders(e);n.Accept="application/json";const l=new FormData,c=s;for(const d in c)l.set(d,c[d]);const h=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:i,body:l});return await this.handleResult(h,o)}async put(t,s,i){return this.send(t,s,"PUT",i)}async post(t,s,i){return this.send(t,s,"POST",i)}async patch(t,s,i){return this.send(t,s,"PATCH",i)}async delete(t,s,i){return this.send(t,s,"delete",i)}};z.loadingGetPromises=new Map,z.tokens=new Map,z.invalidTokens=[],z.failledTokenUpdates=new Map,z.firstCallDoneFlags=new Map;let Se=z;/**
60
+ * @license
61
+ * Copyright 2017 Google LLC
62
+ * SPDX-License-Identifier: BSD-3-Clause
63
+ */let Ws=class extends Ae{constructor(t){if(super(t),this.it=C,t.type!==ce.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===C||t==null)return this._t=void 0,this.it=t;if(t===mt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const s=[t];return s.raw=s,this._t={_$litType$:this.constructor.resultType,strings:s,values:[]}}};Ws.directiveName="unsafeHTML",Ws.resultType=1;const I=he(Ws),Ks=new Map,Qi=r=>{if(!r)return null;const t=Q.getApiConfiguration(r),s=Q.getAncestorAttributeValue(r,"wordingProvider"),i=Q.getAncestorAttributeValue(r,"wordingVersionProvider"),e={apiConfiguration:t,wordingProvider:s,wordingVersionProvider:i};let o=null;for(const[n,l]of Ks)if(X.deepEqual(n,e)){o=l;break}return o||(o={api:new Se(t),keysToTranslate:new Set,translatedKeys:new Set,wordingProvider:s,callIndex:0,wordingVersionProvider:i,apiCallKey:e},Ks.set(e,o)),o},Ji="",H=class H extends Hs{constructor(t){super(t),this.useUnsafeHTML=!1,this.onAssign=s=>{const i=this.useUnsafeHTML?I(s):s;this.setValue(i)},this.node=t.options.host}unsubscribe(){H.publisher["wording_"+this.key].offAssign(this.onAssign)}render(t,s=!1){return this.useUnsafeHTML=s,this.key!==t&&(this.key=t,this.isConnected&&this.subscribe(t)),mt}static async callApi(t,s,i=!0,e){if(await N.getInstance().isLocalStrorageReady,H.firstCall){H.firstCall=!1;const d=Object.keys(H.publisher.get());for(const f of d)H.publisher.get()[f]===Ji&&delete H.publisher[f]}if(t){const d=Q.getAncestorAttributeValue(t,"wordingVersionProvider");d&&Gi(d).onAssign(H.handleVersionProvider(t))}let o=H.publisher.get()["wording_"+s]!=null;const n=e||Qi(t);if(!n)return;if(o&&s!==""){n.translatedKeys.add(s);return}n.callIndex++;const l=n.callIndex,c=n.wordingProvider??"";if(!c&&i){window.setTimeout(async()=>{H.callApi(null,s,!1,n)},1e3);return}const h=n.api;window.queueMicrotask(async()=>{if(o=H.publisher["wording_"+s].get()!=null,!o&&s!==""&&(n.keysToTranslate.add(s),H.publisher["wording_"+s]=Ji),l!==n.callIndex)return;const d=Array.from(n.keysToTranslate);if(!d.length)return;const f=c.split("?"),m=f.shift(),v=(f.length>0?f.join("?")+"&":"")+"labels[]="+d.join("&labels[]="),b=m+"?"+v;n.translatedKeys=new Set([...n.translatedKeys,...n.keysToTranslate]),n.keysToTranslate.clear();const P=await h.get(b);for(const S in P)H.publisher["wording_"+S]=P[S]})}static handleVersionProvider(t){const s=Qi(t);if(!s)return;if(H.versionProviderHandlers.has(s))return H.versionProviderHandlers.get(s);const i=function(e){if(!s.wordingVersionProvider)return;const n=H.publisher.get().__wording_versions__??[];if(e==null)return;const l=n.find(c=>c.serviceURL===s.api.serviceURL)||{serviceURL:s.api.serviceURL,version:0};if(n.includes(l)||n.push(l),e!==l.version){l.version=e,H.publisher.set({__wording_versions__:n});for(const c of Ks.values())c.keysToTranslate=new Set(c.translatedKeys),c.keysToTranslate.size>0&&H.callApi(null,"",!1,c)}};return H.versionProviderHandlers.set(s,i),i}subscribe(t){this.unsubscribe(),H.publisher["wording_"+t].onAssign(this.onAssign),H.callApi(this.node,t)}disconnected(){this.unsubscribe()}reconnected(){this.key&&this.subscribe(this.key)}};H.publisher=N.get("sonic-wording",{localStorageMode:"enabled"}),H.firstCall=!0,H.versionProviderHandlers=new Map;let qe=H;var uo=Object.defineProperty,fo=Object.getOwnPropertyDescriptor,Ft=(r,t,s,i)=>{for(var e=i>1?void 0:i?fo(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&uo(t,s,e),e};let us=!1,Zs=new Set;const Y=(r,t)=>{var e;const s=(e=class extends r{constructor(...n){super(),this.collectDependenciesVersion=0,this.displayContents=!1,this.noAutoFill=!1,this.forceAutoFill=!1,this.renderOnPropsInternalChange=!1,this.noShadowDom=null,this.propertyMap=null,this.title="",this.dataProvider=null,this.bindPublisher=null,this._props=null,this.defferedDebug=null,this.debug=null,this.onAssign=l=>{this.props=l}}hasAncestorAttribute(n){return this.getAncestorAttributeValue(n)!=null}getAncestorAttributeValue(n){return Q.getAncestorAttributeValue(this,n)}get props(){return this._props!==null||!this.publisher?this._props:this.publisher.get()}set props(n){typeof n=="string"&&["{","["].includes(n.trim().charAt(0))&&(n=JSON.parse(n)),n!=this._props&&(this._props=n,this.publisher&&this.publisher.get()!=n&&this.publisher.set(n),this.requestUpdate())}updated(n){super.updated(n);const c=[...(this.shadowRoot||this).children].filter(d=>d.tagName!="STYLE"),h=this.displayContents?"contents":c.length==0?"none":null;h?this.style.display=h:this.style.removeProperty("display")}connectedCallback(){if(e.instanceCounter++,this.hasAttribute("lazyRendering")){const n={root:null,threshold:.9};let l=!0;const c=new IntersectionObserver(h=>{for(const d of h)if(l&&d.isIntersecting){this.addDebugger(),l=!1,this.initWording(),this.initPublisher(),c.disconnect();break}},n);c.observe(this)}else this.initWording(),this.initPublisher(),this.addDebugger();super.connectedCallback()}disconnectedCallback(){var n;this.removeDebugger(),super.disconnectedCallback(),this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate)),qe.publisher.stopTemplateFilling(this),this.onAssign&&((n=this.publisher)==null||n.offAssign(this.onAssign))}addDebugger(){var n;if(this.hasAttribute("debug")&&!this.defferedDebug){if(!this.debug){this.debug=document.createElement("div");const l=this.debug.style;l.position="fixed",l.top="0",l.right="0",l.margin="auto",l.borderRadius=".7rem",l.backgroundColor="#0f1729",l.color="#c5d4f9",l.padding="16px 16px",l.margin="16px 16px",l.boxShadow="0 10px 30px -18px rgba(0,0,0,.3)",l.overflowY="auto",l.zIndex="99999999",l.maxHeight="calc(100vh - 32px)",l.fontFamily="Consolas, monospace",l.maxWidth="min(50vw,25rem)",l.fontSize="12px",l.minWidth="300px",l.overflowWrap="break-word",l.resize="vertical"}this.addEventListener("click",l=>{l.ctrlKey&&(l.preventDefault(),us=!us)}),this.dataProvider&&(window[this.dataProvider]=this.publisher),this.addEventListener("mouseover",()=>{us||this.removeDebugger(),document.body.appendChild(this.debug),Zs.add(this.debug)}),this.addEventListener("mouseout",()=>{us||this.removeDebugger()}),(n=this.publisher)==null||n.onInternalMutation(()=>{var l;this.debug.innerHTML=`🤖 DataProvider : "<b style="font-weight:bold;color:#fff;">${this.dataProvider}</b>"<br>
64
+ <div style="font-size:10px;border-top:1px dashed;margin-top:5px;padding-left:23px;opacity:.6;padding-top:5px;">
65
+ Variable disponible dans la console<br>
66
+ ctrl + Clique : épingler / désépingler
67
+ </div>
68
+ <pre style="margin-top:10px;background:transparent;padding:0;font-size:inherit;color:inherit;">${JSON.stringify((l=this.publisher)==null?void 0:l.get(),null," ")}</pre>`})}}removeDebugger(){Zs.forEach(n=>{document.body.contains(n)&&document.body.removeChild(n)}),Zs=new Set}getApiConfiguration(){return Q.getApiConfiguration(this)}async initWording(){const n=Object.getOwnPropertyNames(this.constructor.prototype);for(const l of n)l.indexOf("wording_")==0&&qe.callApi(this,l.substring(8));qe.publisher.startTemplateFilling(this)}createRenderRoot(){if(this.noShadowDom===""||this.getAttribute("noShadowDom")==="")return this;const n=super.createRenderRoot();return ns.observe(n),n}initPublisher(){if(!document)return;this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate),this.onAssign&&this.publisher.offAssign(this.onAssign));const n=N.getInstance();this.dataProvider||(this.dataProvider=this.getAncestorAttributeValue("dataProvider"));let l=this.dataProvider;if(!l&&this._props&&(this.dataProvider=l="__subscriber__"+e.instanceCounter),l){this.bindPublisher&&n.set(l,this.bindPublisher());let c=n.get(l,{localStorageMode:this.getAttribute("localStorage")||"disabled"});if(this.dataProvider=l,this.hasAttribute("subDataProvider")){const h=this.getAttribute("subDataProvider");this.dataProvider=l+"/"+h,c=X.traverse(c,h.split(".")),n.set(this.dataProvider,c),this.publisher=c}this.publisher=c}this.publisher&&(this._props&&this.publisher.set(this._props),this.noAutoFill||this.publisher.startTemplateFilling(this),this.renderOnPropsInternalChange&&this.publisher.onInternalMutation(this.requestUpdate),this.publisher.onAssign(this.onAssign))}},e.instanceCounter=0,e);return Ft([a({type:Number})],s.prototype,"collectDependenciesVersion",2),Ft([a({type:Boolean})],s.prototype,"displayContents",2),Ft([a({type:Boolean})],s.prototype,"noAutoFill",2),Ft([a({type:Boolean})],s.prototype,"forceAutoFill",2),Ft([a({type:Object})],s.prototype,"propertyMap",2),Ft([a({type:String,attribute:"data-title"})],s.prototype,"title",2),Ft([a({reflect:!0})],s.prototype,"dataProvider",2),Ft([a()],s.prototype,"bindPublisher",2),Ft([a()],s.prototype,"props",1),s};var go=Object.defineProperty,mo=Object.getOwnPropertyDescriptor,bo=(r,t,s,i)=>{for(var e=i>1?void 0:i?mo(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&go(t,s,e),e};const We=r=>{class t extends r{constructor(){super(...arguments),this.templates=null,this.templateValueAttribute="data-value",this.templateList=[],this.templateParts={},this.templatePartsList=[]}connectedCallback(){const i=this.templates||[...this.querySelectorAll("template")];for(const e of i)e.hasAttribute(this.templateValueAttribute)&&(this.templateParts[e.getAttribute(this.templateValueAttribute)]=e,this.templatePartsList.push(e)),e.hasAttribute("skeleton")&&(this.templateParts.skeleton=e),e.hasAttribute("no-result")&&(this.templateParts["no-result"]=e),e.hasAttribute("no-item")&&(this.templateParts["no-item"]=e);this.templateList=i.filter(e=>!e.getAttribute("data-value")),this.templateList.length==0&&(this.templateList=i),super.connectedCallback()}}return bo([a({type:Array})],t.prototype,"templates",2),t};var vo=Object.defineProperty,yo=Object.getOwnPropertyDescriptor,K=(r,t,s,i)=>{for(var e=i>1?void 0:i?yo(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&vo(t,s,e),e};const wo="sonic-date";let q=class extends Y(We(w)){constructor(){super(...arguments),this.pageLanguage="fr",this.duAu=[],this._wording_billet_periode_validite="",this.designMode=null,this.time_zone=null,this.date=null,this.date_string=null,this.start_date_string=null,this.end_date_string=null,this.start_date=0,this.hide_hours=!1,this.end_date=0,this.era="",this.year="numeric",this.month="short",this.day="2-digit",this.weekday="short",this.hour="2-digit",this.hour12=!1,this.minute="2-digit",this.language="",this.renderIf=!0,this.now=!1,this.startDateObject=new Date,this.endDateObject=new Date}get wording_billet_periode_validite(){return this._wording_billet_periode_validite}set wording_billet_periode_validite(r){var t;r||(r="Du %s au %s"),this._wording_billet_periode_validite=r,this.duAu=(t=this.wording_billet_periode_validite)==null?void 0:t.split("%s").map(s=>s.trim()),this.duAu.pop(),this.requestUpdate()}connectedCallback(){this.hasAttribute("wording_billet_periode_validite")||(this.wording_billet_periode_validite="Du %s au %s"),this.pageLanguage=Q.getLanguage(),super.connectedCallback()}getDatesParts(r,t,s){const i=this.startDateObject;i.setTime(r*1e3);let e=[];if(t>0){const o=this.endDateObject;o.setTime(t*1e3);const n=i.toDateString()==o.toDateString();if((!n||this.hide_hours)&&(delete s.hour,delete s.minute),e=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatRangeToParts(i,o),!n){const c=e.find(h=>h.type=="literal"&&h.source=="shared"&&h.value.trim().length>0);c&&(c.value=" "+this.duAu[1]+" ",c.type="to"),this.designMode||e.unshift({type:"from",value:this.duAu[0]+" ",source:"shared"})}}else e=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatToParts(i);return this.designMode&&e.forEach(o=>o.value=o.value.replace(/,/g," ")),e[0].value=os.ucFirst(e[0].value),e.filter(o=>o.hidden!==!0)}dateStringToSeconds(r){return new Date(r).getTime()/1e3}render(){if(!this.renderIf||(this.date_string&&(this.date=this.dateStringToSeconds(this.date_string)),this.date&&(this.start_date=this.date),this.start_date_string&&(this.start_date=this.dateStringToSeconds(this.start_date_string)),this.end_date_string&&(this.end_date=this.dateStringToSeconds(this.end_date_string)),!this.start_date&&!this.now&&!this.end_date))return C;if(this.start_date||(this.start_date=Date.now()/1e3),this.end_date>0&&this.end_date<this.start_date){const s=this.start_date;this.start_date=this.end_date,this.end_date=s}const r={year:this.year,month:this.month,day:this.day,hour12:this.hour12};this.weekday!=="hidden"&&(r.weekday=this.weekday),this.hour!=="hidden"&&(r.hour=this.hour),this.minute!=="hidden"&&(r.minute=this.minute),this.era&&(r.era=this.era),this.time_zone&&(r.timeZone=this.time_zone);const t=this.getDatesParts(this.start_date,this.end_date,r);return I(`${t.map(s=>{const i=this.templateParts[s.type];if(i){const n=document.importNode(i.content,!0).children[0];return n.innerText.trim()==""&&(n.innerText=s.value),n.outerHTML}const e=document.createElement("span");return e.innerText=s.value,e.className=s.type,`<span class="${s.type}">${s.value}</span>`}).join("")}`)}};K([a()],q.prototype,"wording_billet_periode_validite",1),K([a({type:Boolean})],q.prototype,"designMode",2),K([a({type:String})],q.prototype,"time_zone",2),K([a({type:Number})],q.prototype,"date",2),K([a({type:String})],q.prototype,"date_string",2),K([a({type:String})],q.prototype,"start_date_string",2),K([a({type:String})],q.prototype,"end_date_string",2),K([a({type:Number})],q.prototype,"start_date",2),K([a({type:Boolean})],q.prototype,"hide_hours",2),K([a({type:Number})],q.prototype,"end_date",2),K([a({type:String})],q.prototype,"era",2),K([a({type:String})],q.prototype,"year",2),K([a({type:String})],q.prototype,"month",2),K([a({type:String})],q.prototype,"day",2),K([a({type:String})],q.prototype,"weekday",2),K([a({type:String})],q.prototype,"hour",2),K([a({type:Boolean})],q.prototype,"hour12",2),K([a({type:String})],q.prototype,"minute",2),K([a({type:String})],q.prototype,"language",2),K([a({type:Boolean})],q.prototype,"renderIf",2),K([a({type:Boolean})],q.prototype,"now",2),q=K([_(wo)],q);let rt=(G=class{static listen(){var s;if(!G.listening)return;const t=(s=document.location)==null?void 0:s.href.replace(document.location.origin,"");G.prevURL&&G.prevURL!=t&&(G.prevURL=t,G.listeners.forEach(i=>{i.location=t})),window.requestAnimationFrame(G.listen)}static offChange(t){const s=G.listeners.indexOf(t);s!=-1&&(G.listeners.splice(s,1),G.listeners.length==0&&(G.listening=!1))}static onChange(t){G.listening||(G.listening=!0,G.listen()),G.listeners.push(t),t.location=this.prevURL}static changeFromComponent(t){const s=t.goBack,i=document.referrer;if(s!=null){const h=document.location.origin,d=s||h,m=i.indexOf("http")==0?new URL(i).origin!=h:!1,v=i=="",b=history.length<3,P=v&&b,S=d!=document.location.href;if(m&&S||P){const p=history.state||{};p.concorde=p.concorde||{},p.concorde.hasDoneHistoryBack=!0,history.pushState(p,document.title),history.back(),document.location.replace(d)}else history.back();return}let e=t.getAttribute("to")||"";if(e||(e=t.href||""),!e)return;if(e.indexOf("#")==0){document.location.hash=e.substring(1);return}const o=new URL(e,document.location.href),n=o.pathname.split("/"),l=[];let c="";for(const h of n)h!=c&&l.push(h),c=h;e="/"+l.join("/")+o.search+(o.hash?+o.hash:""),t.hasAttribute("pushState")?history.pushState(null,"",e):t.hasAttribute("replaceState")?history.replaceState(null,"",e):document.location.href=e}static updateComponentActiveState(t){if(t.autoActive!="disabled"&&t.href&&t.href.indexOf("http")!=0){const s=new URL(t.href,document.location.href),i=new URL(t.location||"",document.location.origin);let e=!1;t.autoActive=="strict"?e=s.pathname==i.pathname&&s.hash==i.hash&&s.search==i.search:e=i.href.indexOf(s.href)==0,e?t.setAttribute("active","true"):t.removeAttribute("active")}}},G.listeners=[],G.listening=!1,G.prevURL=(t=document.location)==null?void 0:t.href.replace(document.location.origin,""),G);/**
69
+ * @license
70
+ * Copyright 2018 Google LLC
71
+ * SPDX-License-Identifier: BSD-3-Clause
72
+ */const Xi="important",_o=" !"+Xi,pt=he(class extends Ae{constructor(r){var t;if(super(r),r.type!==ce.ATTRIBUTE||r.name!=="style"||((t=r.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((t,s)=>{const i=r[s];return i==null?t:t+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(r,[t]){const{style:s}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const i of this.ft)t[i]==null&&(this.ft.delete(i),i.includes("-")?s.removeProperty(i):s[i]=null);for(const i in t){const e=t[i];if(e!=null){this.ft.add(i);const o=typeof e=="string"&&e.endsWith(_o);i.includes("-")||o?s.setProperty(i,o?e.slice(0,-11):e,o?Xi:""):s[i]=e}}return mt}});var xo=Object.defineProperty,Po=Object.getOwnPropertyDescriptor,At=(r,t,s,i)=>{for(var e=i>1?void 0:i?Po(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&xo(t,s,e),e};const fs=new Map,Oe=r=>{class t extends r{constructor(...i){super(),this.touched=!1,this.error=!1,this.autofocus=!1,this.required=!1,this.forceAutoFill=!1,this.disabled=null,this.formDataProvider="",this._name="",this._value="",this.onValueAssign=e=>{this.setValueFromPublisher(e)},this.onFormValueAssign=async e=>{this.setFormValueFromPublisher(e)},this.onFormDataInValidate=()=>{const e=this.getFormPublisher();e&&e.isFormValid.get()&&this.validateFormElement()}}get name(){return this._name}set name(i){this.hasAttribute("name")&&!this.forceAutoFill&&(i=this.getAttribute("name")),this._name=i,this.requestUpdate()}validateFormElement(){}updateDataValue(){const i=this.getAttribute("name");if(i){const e=this.getFormPublisher();e&&(e[i]=this.getValueForFormPublisher(),this.setFormValueFromPublisher(e[i].get()))}}getFormPublisher(){return this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?N.get(this.formDataProvider):null}getValueForFormPublisher(){return this.value}setValueFromPublisher(i){this.value=i}setFormValueFromPublisher(i){this.value=i}get value(){return this._value}set value(i){i==null&&(i=""),X.isObject(i)&&Object.prototype.hasOwnProperty.call(i,"__value")&&i._value==null&&(i=""),this._value!=i&&(this._value=i,this.updateDataValue(),this.requestUpdate())}initPublisher(){let i=this.getFormPublisher();const e=this.hasAncestorAttribute("initFromPublisher")&&this._name&&i[this._name].get()?i[this._name].get():this.getAttribute("value");this._name&&this.publisher&&this.publisher[this._name].offAssign(this.onValueAssign),this._name&&i&&i[this._name].offAssign(this.onFormValueAssign),super.initPublisher(),this.name||(this._name=this.getAttribute("name")),this.value||(this._value=this.getAttribute("value")),this.publisher&&this._name&&this.publisher[this._name].onAssign(this.onValueAssign),i=this.getFormPublisher(),this._name&&i&&(i[this._name].onAssign(this.onFormValueAssign),i.onInvalidate(this.onFormDataInValidate)),this.updateDataValue(),e&&(this.value=e)}handleBlur(){this.touched=!0}handleChange(i){this.value=i.target.value;const e=new Event("change");this.dispatchEvent(e)}addKeyboardNavigation(){const i=this.getAncestorAttributeValue("data-keyboard-nav");if(!i)return;const e=i.split(" "),o=e[0];if(!o)return;for(const l of e){fs.has(l)||fs.set(l,[]);const c=fs.get(l);(c==null?void 0:c.indexOf(this))==-1&&c.push(this)}const n=fs.get(o);this.addEventListener("keydown",l=>{var v;const c=l;if(!["ArrowDown","ArrowUp"].includes(c.key))return;const h="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",d=n==null?void 0:n.filter(b=>{var D;const P=(D=b.shadowRoot)==null?void 0:D.querySelector(h);if(!P)return!1;const S=window.getComputedStyle(P);return S.display!=="none"&&S.display!==""&&S.pointerEvents!="none"&&S.visibility!=="hidden"&&P.getBoundingClientRect().width>0});let f=null;if(c.key=="ArrowDown"&&d){const b=d.indexOf(this);b==d.length-1?f=d[0]:f=d[b+1]}else if(c.key=="ArrowUp"&&d){const b=d.indexOf(this);b==0?f=d[d.length-1]:f=d[b-1]}const m=(v=f==null?void 0:f.shadowRoot)==null?void 0:v.querySelector(h);m&&m.focus&&(m.focus(),l.preventDefault(),l.stopPropagation())})}focus(){var e;const i=(e=this.shadowRoot)==null?void 0:e.querySelector("[data-form-element]");i==null||i.focus()}connectedCallback(){this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"),this.value&&this.setAttribute("value",this.value),super.connectedCallback(),this.addKeyboardNavigation()}disconnectedCallback(){super.disconnectedCallback(),this._name&&this.publisher&&this.publisher[this._name].offAssign(this.onValueAssign);const i=this.getFormPublisher();this._name&&i&&(i[this._name].offAssign(this.onFormValueAssign),i.offInvalidate(this.onFormDataInValidate))}}return At([a({type:Boolean,reflect:!0})],t.prototype,"touched",2),At([a({type:Boolean})],t.prototype,"error",2),At([a({type:Boolean})],t.prototype,"autofocus",2),At([a({type:Boolean})],t.prototype,"required",2),At([a({type:Boolean})],t.prototype,"forceAutoFill",2),At([a({type:Boolean})],t.prototype,"disabled",2),At([a({type:String,attribute:"data-aria-label"})],t.prototype,"ariaLabel",2),At([a({type:String,attribute:"data-aria-labelledby"})],t.prototype,"ariaLabelledby",2),At([a()],t.prototype,"name",1),At([a()],t.prototype,"value",1),t};let $o=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(s=>{setTimeout(s,t)})}},Co=class xe{static areEqual(t,s){return t.length===s.length?t.every((i,e)=>i===s[e]):!1}static from2d(t){return{to1D:()=>{let s=[];return t.forEach(i=>s=s.concat(i)),this.from(s)}}}static from(t){return{get:()=>t||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:s=>{if(t.length<1)return!0;const i=(t[0]||{})[s];return t.every(e=>(e||{})[s]==i)}})})}),value:()=>({forKey:s=>xe.from(t.map(i=>i[s]))}),copy:()=>({fromKey:s=>({toKey:i=>{t.forEach(e=>{e[i]=Array.isArray(e[s])?[...e[s]]:typeof e[s]=="object"&&e[s]!=null?{...e[s]}:e[s]})}})})}),map:s=>xe.from(t.map(s)),filter:s=>xe.from(t.filter(s)),find:s=>t.find(s),some:s=>t.some(s),every:s=>t.every(s),group:()=>({byKey:s=>{const i=[],e=new Map;for(const o of t){const n=o[s];if(!e.has(n)){const l=i.length;e.set(n,l);const c={items:[]};c[s]=n,i.push(c)}i[e.get(n)].items.push(o)}return xe.from(i)}}),without:()=>({duplicates:()=>({forKey:s=>{const i=[...new Set(t.map(e=>e[s]))];return xe.from(i.map(e=>t.find(o=>o[s]==e)))}}),itemsIn:s=>({havingSameValue:()=>({forKey:i=>{const e=(o,n)=>l=>o[n]!=l[n];return xe.from(t.filter(o=>s.every(e(o,i))))}})})})}}};var Ao=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function So(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Ys={exports:{}};(function(r,t){var s=[].slice;(function(i,e){return t!==null?r.exports=e():i.UrlPattern=e()})(Ao,function(){var i,e,o,n,l,c,h,d,f,m,v,b,P,S,D;return f=function(p){return p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},h=function(p,u){var y,A,O;for(O=[],y=-1,A=p.length;++y<A;)O=O.concat(u(p[y]));return O},S=function(p,u){var y,A,O;for(O="",y=-1,A=p.length;++y<A;)O+=u(p[y]);return O},P=function(p){return new RegExp(p.toString()+"|").exec("").length-1},v=function(p,u){var y,A,O,E,V;for(E={},y=-1,O=p.length;++y<O;)A=p[y],V=u[y],V!=null&&(E[A]!=null?(Array.isArray(E[A])||(E[A]=[E[A]]),E[A].push(V)):E[A]=V);return E},i={},i.Result=function(p,u){this.value=p,this.rest=u},i.Tagged=function(p,u){this.tag=p,this.value=u},i.tag=function(p,u){return function(y){var A,O;if(A=u(y),A!=null)return O=new i.Tagged(p,A.value),new i.Result(O,A.rest)}},i.regex=function(p){return function(u){var y,A;if(y=p.exec(u),y!=null)return A=y[0],new i.Result(A,u.slice(A.length))}},i.sequence=function(){var p;return p=1<=arguments.length?s.call(arguments,0):[],function(u){var y,A,O,E,V,W;for(y=-1,A=p.length,W=[],E=u;++y<A;){if(O=p[y],V=O(E),V==null)return;W.push(V.value),E=V.rest}return new i.Result(W,E)}},i.pick=function(){var p,u;return p=arguments[0],u=2<=arguments.length?s.call(arguments,1):[],function(y){var A,O;if(O=i.sequence.apply(i,u)(y),O!=null)return A=O.value,O.value=A[p],O}},i.string=function(p){var u;return u=p.length,function(y){if(y.slice(0,u)===p)return new i.Result(p,y.slice(u))}},i.lazy=function(p){var u;return u=null,function(y){return u==null&&(u=p()),u(y)}},i.baseMany=function(p,u,y,A,O){var E,V,W,wt;for(W=O,wt=y?"":[];!(u!=null&&(E=u(W),E!=null)||(V=p(W),V==null));)y?wt+=V.value:wt.push(V.value),W=V.rest;if(!(A&&wt.length===0))return new i.Result(wt,W)},i.many1=function(p){return function(u){return i.baseMany(p,null,!1,!0,u)}},i.concatMany1Till=function(p,u){return function(y){return i.baseMany(p,u,!0,!0,y)}},i.firstChoice=function(){var p;return p=1<=arguments.length?s.call(arguments,0):[],function(u){var y,A,O,E;for(y=-1,A=p.length;++y<A;)if(O=p[y],E=O(u),E!=null)return E}},b=function(p){var u;return u={},u.wildcard=i.tag("wildcard",i.string(p.wildcardChar)),u.optional=i.tag("optional",i.pick(1,i.string(p.optionalSegmentStartChar),i.lazy(function(){return u.pattern}),i.string(p.optionalSegmentEndChar))),u.name=i.regex(new RegExp("^["+p.segmentNameCharset+"]+")),u.named=i.tag("named",i.pick(1,i.string(p.segmentNameStartChar),i.lazy(function(){return u.name}))),u.escapedChar=i.pick(1,i.string(p.escapeChar),i.regex(/^./)),u.static=i.tag("static",i.concatMany1Till(i.firstChoice(i.lazy(function(){return u.escapedChar}),i.regex(/^./)),i.firstChoice(i.string(p.segmentNameStartChar),i.string(p.optionalSegmentStartChar),i.string(p.optionalSegmentEndChar),u.wildcard))),u.token=i.lazy(function(){return i.firstChoice(u.wildcard,u.optional,u.named,u.static)}),u.pattern=i.many1(i.lazy(function(){return u.token})),u},d={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},c=function(p,u){if(Array.isArray(p))return S(p,function(y){return c(y,u)});switch(p.tag){case"wildcard":return"(.*?)";case"named":return"(["+u+"]+)";case"static":return f(p.value);case"optional":return"(?:"+c(p.value,u)+")?"}},l=function(p,u){return u==null&&(u=d.segmentValueCharset),"^"+c(p,u)+"$"},n=function(p){if(Array.isArray(p))return h(p,n);switch(p.tag){case"wildcard":return["_"];case"named":return[p.value];case"static":return[];case"optional":return n(p.value)}},m=function(p,u,y,A){var O,E,V,W;if(A==null&&(A=!1),W=p[u],W==null){if(A)throw new Error("no values provided for key `"+u+"`");return}if(O=y[u]||0,E=Array.isArray(W)?W.length-1:0,O>E){if(A)throw new Error("too few values provided for key `"+u+"`");return}return V=Array.isArray(W)?W[O]:W,A&&(y[u]=O+1),V},o=function(p,u,y){var A,O;if(Array.isArray(p)){for(A=-1,O=p.length;++A<O;)if(o(p[A],u,y))return!0;return!1}switch(p.tag){case"wildcard":return m(u,"_",y,!1)!=null;case"named":return m(u,p.value,y,!1)!=null;case"static":return!1;case"optional":return o(p.value,u,y)}},D=function(p,u,y){if(Array.isArray(p))return S(p,function(A){return D(A,u,y)});switch(p.tag){case"wildcard":return m(u,"_",y,!0);case"named":return m(u,p.value,y,!0);case"static":return p.value;case"optional":return o(p.value,u,y)?D(p.value,u,y):""}},e=function(p,u){var y,A,O,E,V;if(p instanceof e){this.isRegex=p.isRegex,this.regex=p.regex,this.ast=p.ast,this.names=p.names;return}if(this.isRegex=p instanceof RegExp,!(typeof p=="string"||this.isRegex))throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=p,u!=null){if(!Array.isArray(u))throw new Error("if first argument is a regex the second argument may be an array of group names but you provided something else");if(y=P(this.regex),u.length!==y)throw new Error("regex contains "+y+" groups but array of group names contains "+u.length);this.names=u}return}if(p==="")throw new Error("argument must not be the empty string");if(V=p.replace(/\s+/g,""),V!==p)throw new Error("argument must not contain whitespace");if(A={escapeChar:(u!=null?u.escapeChar:void 0)||d.escapeChar,segmentNameStartChar:(u!=null?u.segmentNameStartChar:void 0)||d.segmentNameStartChar,segmentNameCharset:(u!=null?u.segmentNameCharset:void 0)||d.segmentNameCharset,segmentValueCharset:(u!=null?u.segmentValueCharset:void 0)||d.segmentValueCharset,optionalSegmentStartChar:(u!=null?u.optionalSegmentStartChar:void 0)||d.optionalSegmentStartChar,optionalSegmentEndChar:(u!=null?u.optionalSegmentEndChar:void 0)||d.optionalSegmentEndChar,wildcardChar:(u!=null?u.wildcardChar:void 0)||d.wildcardChar},E=b(A),O=E.pattern(p),O==null)throw new Error("couldn't parse pattern");if(O.rest!=="")throw new Error("could only partially parse pattern");this.ast=O.value,this.regex=new RegExp(l(this.ast,A.segmentValueCharset)),this.names=n(this.ast)},e.prototype.match=function(p){var u,y;return y=this.regex.exec(p),y==null?null:(u=y.slice(1),this.names?v(this.names,u):u)},e.prototype.stringify=function(p){if(p==null&&(p={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(p!==Object(p))throw new Error("argument must be an object or undefined");return D(this.ast,p,{})},e.escapeForRegex=f,e.concatMap=h,e.stringConcatMap=S,e.regexGroupCount=P,e.keysAndValuesToObject=v,e.P=i,e.newParser=b,e.defaultOptions=d,e.astNodeToRegexString=l,e.astNodeToNames=n,e.getParam=m,e.astNodeContainsSegmentsForProvidedParams=o,e.stringify=D,e})})(Ys,Ys.exports);var Oo=Ys.exports;const de=So(Oo),Do=$o,ko=Co,Lo=ns,Eo=os,pe=Q,No=rt,Ke=X,To=je,tt=N,jo=Se,Mo=de;window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:Do,Arrays:ko,DataBindObserver:Lo,Format:Eo,HTML:pe,LocationHandler:No,Objects:Ke,PublisherProxy:To,PublisherManager:tt,api:jo,URLPattern:Mo};var Io=Object.defineProperty,zo=Object.getOwnPropertyDescriptor,De=(r,t,s,i)=>{for(var e=i>1?void 0:i?zo(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Io(t,s,e),e};const Gs=r=>{class t extends r{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this.unCheckOnDisconnect=!1,this._checked=null,this.updateAllChecked=()=>{const i=this.getAttribute("name"),e=this.getCheckAllPublisher(),o=this.getFormPublisher();if(e!=null&&e.hasCheckAll.get()&&!this.checksAll()&&e&&o&&i){if(o[this.name].get().length)(this.checked===null||e.checkMode.get()=="noneChecked"||e.checkMode.get()==null)&&(e.checkMode="someUnchecked");else{e.checkMode="noneChecked";return}const n=o[i].get(),l=e.values.get();if(l&&l.length){let c=l.length;for(const h of l)n.indexOf(h)==-1&&(c-=1);c==l.length&&(e.checkMode="allChecked"),c==0&&(e.checkMode="noneChecked")}l.indexOf(this.value)==-1&&(this.checked=null)}},this.onChecksAllRequest=i=>{this.removeAttribute("allChecked"),this.removeAttribute("indeterminate"),i=="allChecked"&&(this.checked=!0,this.setAttribute("allChecked","")),i=="noneChecked"&&(this.checked=null),i=="someUnchecked"&&(this.checksAll()&&(this.checked="indeterminate"),this.setAttribute("indeterminate",""))}}get value(){return this._value}set value(i){if(this.value==i||(this.hasAttribute("value")&&!this.forceAutoFill&&(i=this.getAttribute("value")),this._value==i)||i==null||(this._value=i,!this.value))return;const e=this.getFormPublisher();if(e&&this.name){let o=e[this.name].get();(this.radio||this.unique)&&(this.checked=o==i?!0:null),Array.isArray(o)||(o=[]),o.indexOf(i)!=-1&&(this.checked=!0)}this.checked==!0&&this.updateDataValue(),this.requestUpdate()}get checked(){return this._checked}set checked(i){if(this.setCheckedValue(i),this.checksAll()){const e=this.getCheckAllPublisher();if(e){if(this.checked===!0)e.checkMode="allChecked";else if(this.checked===null){e.checkMode="noneChecked";const o=this.getFormPublisher();o&&(o[this.name]=[])}}}this.requestUpdate()}validateFormElement(){var o;const i=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(!i||i.checkValidity())return;const e=this.getFormPublisher();if(e){const n=e[this.name].get();if((this.unique||this.radio)&&n!==null&&n.toString().length>0)return;e.isFormValid=!1,i.reportValidity()}}checksAll(){return this.hasAttribute("checksAll")}setCheckedValue(i){this._checked!=i&&(this._checked=i,this.updateDataValue(),this.requestUpdate(),setTimeout(()=>this.updateAllChecked(),1))}handleChange(){const i=this.checked===!0?this.radio?!0:null:!0;this.checked=i;const e=new Event("change");this.dispatchEvent(e)}getValueForFormPublisher(){const i=this.getFormPublisher();if(!i)return null;let e=i[this.name].get();if(this.radio)return this.checked===!0&&this.value!=null?this.value:e;if(this.unique)return this.checked===!0&&this.value!=null?this.value:null;Array.isArray(e)||(e=[]),e=e.slice(0);const o=e.indexOf(this.value);return this.checked===!0&&o===-1&&!this.checksAll()&&e.push(this.value),this.checked===null&&o!==-1&&e.splice(o,1),e}setFormValueFromPublisher(i){if(this.unique||this.radio){this.checked=this.value==i?!0:null;return}Array.isArray(i)||(i=[]),!this.checksAll()&&(this.checked=i.indexOf(this.value)!==-1?!0:null)}getCheckAllPublisher(){this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"));const i=this.formDataProvider,e=this.getAttribute("name");return!i||!e?null:tt.get(i+"/"+e+"/_available_values_")}disconnectedCallback(){super.disconnectedCallback();const i=this.getCheckAllPublisher();if(i&&(i.checkMode.offAssign(this.onChecksAllRequest),!this.checksAll())){const e=i.values.get().slice(0),o=e.indexOf(this.value);o!=-1&&(e.splice(o,1),i.values=e)}setTimeout(()=>this.updateAllChecked(),1)}connectedCallback(){super.connectedCallback();const i=this.getFormPublisher();if(i&&this.name){const o=i[this.name].get();o&&Array.isArray(o)&&o.indexOf(this.value)!==-1&&(this.checked=!0)}const e=this.getCheckAllPublisher();e&&(e.checkMode.onAssign(this.onChecksAllRequest),this.checksAll()&&(e.hasCheckAll=!0),e.values.get()||(e.values=[]),this.checksAll()||(e.values=[...e.values.get(),this.value])),this.hasAttribute("checked")&&(!this.publisher||this.publisher.get().checked!==!1)&&setTimeout(()=>this.checked=!0,1)}}return De([a()],t.prototype,"value",1),De([a()],t.prototype,"forceAutoFill",2),De([a({type:Boolean})],t.prototype,"unique",2),De([a({type:Boolean})],t.prototype,"radio",2),De([a({type:Boolean})],t.prototype,"unCheckOnDisconnect",2),De([a()],t.prototype,"checked",1),t};/**
73
+ * @license
74
+ * Copyright 2018 Google LLC
75
+ * SPDX-License-Identifier: BSD-3-Clause
76
+ */const x=r=>r??C,St=$`
77
+ /*SIZES*/
78
+ :host {
79
+ --sc-fs: 1rem;
80
+ --sc-lh: 1.15;
81
+ font-size: var(--sc-fs);
82
+ line-height: var(--sc-lh);
83
+ }
84
+
85
+ :host([size="2xs"]) {
86
+ --sc-fs: 0.625rem;
87
+ }
88
+ :host([size="xs"]) {
89
+ --sc-fs: 0.75rem;
90
+ }
91
+ :host([size="sm"]) {
92
+ --sc-fs: 0.875rem;
93
+ }
94
+ :host([size="md"]) {
95
+ --sc-fs: 1rem;
96
+ }
97
+ :host([size="lg"]) {
98
+ --sc-fs: 1.125rem;
99
+ }
100
+ :host([size="xl"]) {
101
+ --sc-fs: 1.25rem;
102
+ }
103
+ :host([size="2xl"]) {
104
+ --sc-fs: 1.5rem;
105
+ }
106
+ :host([size="inherit"]) {
107
+ --sc-fs: 1em;
108
+ }
109
+ `;var Fo=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,F=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ro(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Fo(t,s,e),e};const Uo="sonic-button";let M=class extends Gs(Oe(Y(w))){constructor(){super(...arguments),this.type="default",this.variant="default",this.shape="default",this.direction="row",this.alignItems="center",this.justify="center",this.minWidth="0",this.icon=!1,this.download=null,this.autoActive="partial",this.loading=!1,this.hasPrefix=!1,this.hasSuffix=!1,this._href="",this.goBack=null,this.pushState=!1,this.active=!1,this.autoRepeat=!1,this.pointerDownTime=0,this.lastRepeatTime=0,this.isRepeating=!1,this.handleRepeatend=()=>{window.removeEventListener("pointerup",this.handleRepeatend),window.removeEventListener("blur",this.handleRepeatend),this.autoRepeat&&(this.isRepeating=!1)},this.location=""}set href(r){this._href=r,this.href&&this.href.indexOf("http")!=0?rt.onChange(this):rt.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(r){r.preventDefault(),rt.changeFromComponent(this)}handleChange(r){if(!((r==null?void 0:r.type)=="click"&&this.autoRepeat)&&(super.handleChange(),(this.pushState||this.goBack!==null)&&(r==null||r.preventDefault(),r==null||r.stopPropagation(),rt.changeFromComponent(this)),this.hasAttribute("reset"))){const t=this.getAttribute("reset"),s=t?tt.get(t):this.getFormPublisher();s&&s.set({})}}handleRepeatStart(r){this.autoRepeat&&(this.handleChange(r),this.pointerDownTime=Date.now(),this.isRepeating=!0,this.repeat()),window.addEventListener("pointerup",this.handleRepeatend),window.addEventListener("blur",this.handleRepeatend)}repeat(){if(this.isRepeating){if(this.hasAttribute("disabled")){this.isRepeating=!1;return}window.requestAnimationFrame(this.repeat.bind(this)),!(Date.now()-this.pointerDownTime<500)&&(Date.now()-this.lastRepeatTime<100||(this.handleChange(),this.lastRepeatTime=Date.now()))}}connectedCallback(){super.connectedCallback()}setCheckedValue(r){if(this.name){if(r?this.setAttribute("active","true"):this.removeAttribute("active"),r==this._checked)return;super.setCheckedValue(r)}}disconnectedCallback(){rt.offChange(this),super.disconnectedCallback()}willUpdate(r){(r.has("href")||r.has("autoActive"))&&rt.updateComponentActiveState(this),r.has("location")&&rt.updateComponentActiveState(this)}render(){const r={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,align:this.align,minWidth:this.minWidth},t=g`
110
+ <button
111
+ part="button"
112
+ class=${this.hasPrefix||this.hasSuffix?"has-prefix-or-suffix":""}
113
+ style=${pt(r)}
114
+ aria-controls=${x(this.ariaControls)}
115
+ aria-expanded=${x(this.sonicAriaExpanded)}
116
+ aria-label=${x(this.ariaLabel)}
117
+ aria-labelledby=${x(this.ariaLabelledby)}
118
+ @click=${this.handleChange}
119
+ @pointerdown=${this.handleRepeatStart}
120
+ >
121
+ <slot @slotchange=${this.onSlotChange} part="prefix" name="prefix"></slot>
122
+ <slot part="main" class="main-slot"></slot>
123
+ <slot @slotchange=${this.onSlotChange} part="suffix" name="suffix"></slot>
124
+ ${this.loading==!0?g`<sonic-icon name="loader" class="loader"></sonic-icon>`:""}
125
+ </button>
126
+ `;return this.href?g`<a
127
+ href="${this.href}"
128
+ download=${x(this.download)}
129
+ target=${x(this.target)}
130
+ aria-label=${x(this.ariaLabel)}
131
+ aria-labelledby=${x(this.ariaLabelledby)}
132
+ @click=${this.pushState||this.goBack!==null?this.handleNavigation:null}
133
+ >${t}</a
134
+ >`:g`${t}`}onSlotChange(){var r,t;this.hasPrefix=!!((r=this.prefixes)!=null&&r.length),this.hasSuffix=!!((t=this.suffixes)!=null&&t.length)}};M.styles=[St,$`
135
+ * {
136
+ box-sizing: border-box;
137
+ }
138
+ :host {
139
+ --sc-btn-gap: 0.35em;
140
+ --sc-btn-py: 0.25em;
141
+ --sc-btn-px: 1.1em;
142
+ --sc-btn-fs: var(--sc-fs, 1rem);
143
+ --sc-btn-fw: var(--sc-btn-font-weight);
144
+ --sc-btn-ff: var(--sc-btn-font-family);
145
+ --sc-btn-fw: var(--sc-btn-font-weight);
146
+
147
+ --sc-btn-height: var(--sc-form-height);
148
+ --btn-color: var(--sc-btn-color, var(--sc-base-content));
149
+ --btn-bg: var(--sc-btn-bg, var(--sc-base-100));
150
+
151
+ --sc-btn-border-style: solid;
152
+ --sc-btn-border-width: var(--sc-form-border-width);
153
+ --sc-btn-border-color: transparent;
154
+
155
+ --btn-outline-bg-hover: var(--sc-btn-outline-bg-hover, var(--sc-base-100));
156
+ --sc-btn-ghost-bg-hover: var(--sc-base-100);
157
+
158
+ --sc-btn-active-color: var(--sc-base);
159
+ --sc-btn-hover-filter: brightness(0.98);
160
+ --sc-btn-active-filter: brightness(0.97);
161
+ --sc-btn-active-bg: var(--sc-base-content);
162
+
163
+ --sc-item-rounded-tr: var(--sc-btn-rounded);
164
+ --sc-item-rounded-tl: var(--sc-btn-rounded);
165
+ --sc-item-rounded-bl: var(--sc-btn-rounded);
166
+ --sc-item-rounded-br: var(--sc-btn-rounded);
167
+
168
+ display: inline-flex;
169
+ vertical-align: middle;
170
+ box-sizing: border-box;
171
+ -webkit-print-color-adjust: exact;
172
+ }
173
+
174
+ :host a {
175
+ display: contents;
176
+ color: unset;
177
+ }
178
+
179
+ :host button {
180
+ display: flex;
181
+ flex: 1;
182
+ box-sizing: border-box;
183
+ align-items: center;
184
+ justify-content: center;
185
+
186
+ font-family: var(--sc-btn-ff);
187
+ font-weight: var(--sc-btn-fw);
188
+ font-size: var(--sc-btn-fs);
189
+
190
+ cursor: pointer;
191
+ text-align: center;
192
+ line-height: 1.1;
193
+ border-radius: var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl);
194
+
195
+ background: var(--btn-bg);
196
+ color: var(--btn-color);
197
+
198
+ padding-top: var(--sc-btn-py);
199
+ padding-bottom: var(--sc-btn-py);
200
+ padding-left: var(--sc-btn-px);
201
+ padding-right: var(--sc-btn-px);
202
+
203
+ border: var(--sc-btn-border-width) var(--sc-btn-border-style) var(--sc-btn-border-color);
204
+ min-height: var(--sc-btn-height);
205
+ }
206
+
207
+ :host button.has-prefix-or-suffix {
208
+ gap: var(--sc-btn-gap);
209
+ }
210
+
211
+ :host button:focus,
212
+ :host button:hover {
213
+ filter: var(--sc-btn-hover-filter);
214
+ }
215
+
216
+ :host button:active {
217
+ filter: var(--sc-btn-active-filter);
218
+ }
219
+
220
+ /*TYPES*/
221
+ :host([type="default"]) button {
222
+ --btn-color: var(--sc-base-content);
223
+ --btn-bg: var(--sc-base-100);
224
+ }
225
+
226
+ :host([type="primary"]) button {
227
+ --btn-color: var(--sc-primary-content);
228
+ --btn-bg: var(--sc-primary);
229
+ }
230
+ :host([type="warning"]) button {
231
+ --btn-color: var(--sc-warning-content);
232
+ --btn-bg: var(--sc-warning);
233
+ }
234
+ :host([type="danger"]) button {
235
+ --btn-color: var(--sc-danger-content);
236
+ --btn-bg: var(--sc-danger);
237
+ }
238
+ :host([type="info"]) button {
239
+ --btn-color: var(--sc-info-content);
240
+ --btn-bg: var(--sc-info);
241
+ }
242
+ :host([type="success"]) button {
243
+ --btn-color: var(--sc-success-content);
244
+ --btn-bg: var(--sc-success);
245
+ }
246
+ :host([type="neutral"]) button {
247
+ --btn-color: var(--sc-base);
248
+ --btn-bg: var(--sc-base-600);
249
+ }
250
+ :host([type="custom"]) button {
251
+ --btn-color: var(--sc-btn-custom-color);
252
+ --btn-bg: var(--sc-btn-custom-bg);
253
+ }
254
+
255
+ /*UNSTYLED*/
256
+ :host([variant="unstyled"]) {
257
+ display: inline-block;
258
+ }
259
+
260
+ :host([variant="unstyled"]) button {
261
+ all: unset;
262
+ display: contents;
263
+ cursor: pointer;
264
+ --sc-btn-height: auto;
265
+ --sc-btn-width: auto;
266
+ }
267
+
268
+ /*GESTION DU FOCUS*/
269
+ :host(:not([disabled])) button:focus {
270
+ box-shadow: 0 0 0 0.18rem var(--sc-base-300);
271
+ border-color: var(--sc-base-300) !important;
272
+ outline: none;
273
+ }
274
+
275
+ /*GHOST*/
276
+ :host([variant="ghost"][type]) button {
277
+ color: var(--btn-bg);
278
+ background: transparent;
279
+ }
280
+
281
+ :host([variant="ghost"][type="default"]) button {
282
+ color: var(--btn-color);
283
+ background: transparent;
284
+ }
285
+
286
+ /*:host([variant="ghost"]) button:focus,*/
287
+ :host([variant="ghost"]) button:hover {
288
+ background: var(--sc-btn-ghost-bg-hover);
289
+ filter: none;
290
+ }
291
+
292
+ :host([active][variant="ghost"]) button {
293
+ background: var(--sc-btn-ghost-bg-hover);
294
+ filter: none;
295
+ }
296
+
297
+ :host([active][variant="ghost"]) button:hover {
298
+ filter: var(--sc-btn-hover-filter);
299
+ }
300
+
301
+ /*OUTLINE*/
302
+ :host([variant="outline"][type]) button {
303
+ border-color: var(--btn-bg);
304
+ color: var(--btn-bg);
305
+ background: transparent;
306
+ }
307
+
308
+ :host([variant="outline"][type="default"]) button {
309
+ border-color: var(--sc-base-content);
310
+ color: var(--sc-base-content);
311
+ background: transparent;
312
+ }
313
+
314
+ /*:host([variant="outline"]) button:focus,*/
315
+ :host([variant="outline"]) button:hover {
316
+ background: var(--btn-outline-bg-hover);
317
+ }
318
+
319
+ /*OUTLINE*/
320
+ :host([variant="link"]:not([size])) {
321
+ vertical-align: baseline;
322
+ margin-left: 0.25em;
323
+ margin-right: 0.25em;
324
+ }
325
+
326
+ :host([variant="link"]:not([size])) {
327
+ font-size: inherit;
328
+ }
329
+
330
+ :host([variant="link"]) button {
331
+ text-decoration: underline;
332
+ padding: 0;
333
+ background: none;
334
+ border: none;
335
+ font-size: inherit;
336
+ min-height: 0;
337
+ color: inherit;
338
+ }
339
+
340
+ :host([variant="link"][type]) button {
341
+ color: var(--btn-bg);
342
+ }
343
+ :host([variant="link"][type="default"]) button {
344
+ color: inherit;
345
+ }
346
+
347
+ :host([variant="link"]) button:focus,
348
+ :host([variant="link"]) button:hover {
349
+ text-decoration: none;
350
+ }
351
+
352
+ /* Alignement */
353
+ :host([align="left"]) button {
354
+ text-align: left !important;
355
+ }
356
+
357
+ :host([align="right"]) button {
358
+ text-align: right;
359
+ }
360
+
361
+ /*SHAPE*/
362
+ :host([shape="circle"]) button {
363
+ border-radius: 50%;
364
+ }
365
+ :host([shape="circle"]) .main-slot {
366
+ line-height: 1;
367
+ }
368
+
369
+ :host([shape="circle"]) button,
370
+ :host([shape="square"]) button {
371
+ width: var(--sc-btn-height);
372
+ height: var(--sc-btn-height);
373
+ /*overflow: hidden;*/ /* fix bug #42622 */
374
+ padding: 0;
375
+ align-items: center;
376
+ justify-content: 0;
377
+ text-align: center !important;
378
+ }
379
+
380
+ :host([shape="block"]),
381
+ :host([shape="block"]) button {
382
+ width: 100%;
383
+ }
384
+
385
+ :host([disabled]) {
386
+ opacity: 0.3;
387
+ pointer-events: none;
388
+ user-select: none;
389
+ }
390
+
391
+ /*ACTIVE*/
392
+
393
+ :host([active]:not([variant="ghost"]):not([variant="unstyled"])) button {
394
+ background: var(--sc-btn-active-bg);
395
+ color: var(--sc-btn-active-color);
396
+ border-color: var(--sc-btn-active-bg);
397
+ }
398
+
399
+ .main-slot {
400
+ flex-grow: 1;
401
+ display: block;
402
+ }
403
+
404
+ :host([minWidth]:not([shape="block"])) .main-slot {
405
+ flex-grow: 0;
406
+ }
407
+
408
+ slot[name="suffix"],
409
+ slot[name="prefix"] {
410
+ flex-shrink: 0;
411
+ }
412
+
413
+ /*ALIGNEMENT DES ICONES
414
+ permet de tous les avoir alignés dans un menu
415
+ */
416
+ ::slotted(sonic-icon) {
417
+ min-width: 1em;
418
+ text-align: center;
419
+ }
420
+
421
+ /*BOUTON Avec icone seulement*/
422
+ :host([icon]) ::slotted(:only-child),
423
+ :host([icon]) ::slotted(sonic-icon) {
424
+ font-size: 1.2em;
425
+ vertical-align: middle;
426
+ }
427
+
428
+ /*Tooltip ne joue pas sur le layout*/
429
+ sonic-tooltip {
430
+ display: contents;
431
+ }
432
+
433
+ /*OUTLINE*/
434
+ :host(:not([active])) ::slotted([swap="on"]) {
435
+ display: none !important;
436
+ }
437
+
438
+ :host([active]) ::slotted([swap="off"]) {
439
+ display: none !important;
440
+ }
441
+
442
+ /*Loading*/
443
+ :host([loading]) {
444
+ pointer-events: none;
445
+ position: relative;
446
+ }
447
+
448
+ :host([loading]) slot {
449
+ opacity: 0 !important;
450
+ pointer-events: none;
451
+ }
452
+ /*Loading*/
453
+ :host([loading]) .loader {
454
+ position: absolute;
455
+ top: 50%;
456
+ left: 50%;
457
+ transform: translate(-50%, -50%);
458
+ display: flex;
459
+ align-items: center;
460
+ justify-content: center;
461
+ line-height: 0;
462
+ height: var(--sc-btn-ff);
463
+ width: var(--sc-btn-ff);
464
+ animation: rotation 2s infinite linear;
465
+ }
466
+
467
+ @keyframes rotation {
468
+ from {
469
+ transform-origin: 50% 50%;
470
+ transform: translate(-50%, -50%) rotate(0deg);
471
+ }
472
+ to {
473
+ transform-origin: 50% 50%;
474
+ transform: translate(-50%, -50%) rotate(359deg);
475
+ }
476
+ }
477
+ `],F([a({type:String,reflect:!0})],M.prototype,"type",2),F([a({type:String,reflect:!0})],M.prototype,"variant",2),F([a({type:String,reflect:!0})],M.prototype,"size",2),F([a({type:String,reflect:!0})],M.prototype,"shape",2),F([a({type:String})],M.prototype,"direction",2),F([a({type:String,reflect:!0})],M.prototype,"alignItems",2),F([a({type:String})],M.prototype,"justify",2),F([a({type:String,reflect:!0})],M.prototype,"align",2),F([a({type:String})],M.prototype,"minWidth",2),F([a({type:Boolean,reflect:!0})],M.prototype,"icon",2),F([a({type:String})],M.prototype,"download",2),F([a({type:String})],M.prototype,"autoActive",2),F([a({type:Boolean,reflect:!0})],M.prototype,"loading",2),F([j()],M.prototype,"hasPrefix",2),F([j()],M.prototype,"hasSuffix",2),F([ie({flatten:!0,slot:"prefix"})],M.prototype,"prefixes",2),F([ie({flatten:!0,slot:"suffix"})],M.prototype,"suffixes",2),F([a({type:String})],M.prototype,"target",2),F([a({type:String})],M.prototype,"href",1),F([a({type:String})],M.prototype,"goBack",2),F([a({type:Boolean})],M.prototype,"pushState",2),F([a({type:Boolean,reflect:!0})],M.prototype,"active",2),F([a({type:Boolean,reflect:!0})],M.prototype,"autoRepeat",2),F([a({type:String,attribute:"data-aria-controls"})],M.prototype,"ariaControls",2),F([a({type:Boolean,attribute:"data-aria-expanded"})],M.prototype,"sonicAriaExpanded",2),F([j()],M.prototype,"location",2),M=F([_(Uo)],M);/**
478
+ * @license
479
+ * Copyright 2017 Google LLC
480
+ * SPDX-License-Identifier: BSD-3-Clause
481
+ */const tr=(r,t,s)=>{const i=new Map;for(let e=t;e<=s;e++)i.set(r[e],e);return i},gs=he(class extends Ae{constructor(r){if(super(r),r.type!==ce.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,t,s){let i;s===void 0?s=t:t!==void 0&&(i=t);const e=[],o=[];let n=0;for(const l of r)e[n]=i?i(l,n):n,o[n]=s(l,n),n++;return{values:o,keys:e}}render(r,t,s){return this.dt(r,t,s).values}update(r,[t,s,i]){const e=so(r),{values:o,keys:n}=this.dt(t,s,i);if(!Array.isArray(e))return this.ut=n,o;const l=this.ut??(this.ut=[]),c=[];let h,d,f=0,m=e.length-1,v=0,b=o.length-1;for(;f<=m&&v<=b;)if(e[f]===null)f++;else if(e[m]===null)m--;else if(l[f]===n[v])c[v]=le(e[f],o[v]),f++,v++;else if(l[m]===n[b])c[b]=le(e[m],o[b]),m--,b--;else if(l[f]===n[b])c[b]=le(e[f],o[b]),Be(r,c[b+1],e[f]),f++,b--;else if(l[m]===n[v])c[v]=le(e[m],o[v]),Be(r,e[f],e[m]),m--,v++;else if(h===void 0&&(h=tr(n,v,b),d=tr(l,f,m)),h.has(l[f]))if(h.has(l[m])){const P=d.get(n[v]),S=P!==void 0?e[P]:null;if(S===null){const D=Be(r,e[f]);le(D,o[v]),c[v]=D}else c[v]=le(S,o[v]),Be(r,e[f],S),e[P]=null;v++}else Bs(e[m]),m--;else Bs(e[f]),f++;for(;v<=b;){const P=Be(r,c[b+1]);le(P,o[v]),c[v++]=P}for(;f<=m;){const P=e[f++];P!==null&&Bs(P)}return this.ut=n,eo(r,c),mt}}),Vo=new WeakMap;let er=0;const Qs=new Map,sr=new WeakSet,ir=()=>new Promise(r=>requestAnimationFrame(r)),Bo=[{opacity:0}],Ho=[{opacity:0},{opacity:1}],rr=(r,t)=>{const s=r-t;return s===0?void 0:s},or=(r,t)=>{const s=r/t;return s===1?void 0:s},Js={left:(r,t)=>{const s=rr(r,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateX(${s}px)`}},top:(r,t)=>{const s=rr(r,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateY(${s}px)`}},width:(r,t)=>{let s;t===0&&(t=1,s={width:"1px"});const i=or(r,t);return{value:i,overrideFrom:s,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(r,t)=>{let s;t===0&&(t=1,s={height:"1px"});const i=or(r,t);return{value:i,overrideFrom:s,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},qo={duration:333,easing:"ease-in-out"},Wo=["left","top","width","height","opacity","color","background"],nr=new WeakMap;class Ko extends Hs{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===ce.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(s=>{this.l=s})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return C}getController(){return Vo.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[s]){var e;const i=this.u===void 0;return i&&(this.u=(e=t.options)==null?void 0:e.host,this.u.addController(this),this.u.updateComplete.then(o=>this.t=!0),this.element=t.element,nr.set(this.element,this)),this.optionsOrCallback=s,(i||typeof s!="function")&&this.p(s),this.render(s)}p(t){t=t??{};const s=this.getController();s!==void 0&&((t={...s.defaultOptions,...t}).keyframeOptions={...s.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=Wo),this.options=t}m(){const t={},s=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(e=>{const o=s[e]??(Js[e]?void 0:i[e]),n=Number(o);t[e]=isNaN(n)?o+"":n}),t}v(){let t,s=!0;return this.options.guard&&(t=this.options.guard(),s=((i,e)=>{if(Array.isArray(i)){if(Array.isArray(e)&&e.length===i.length&&i.every((o,n)=>o===e[n]))return!1}else if(e===i)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&s&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await ir;const s=this.O(),i=this.j(this.options.keyframeOptions,s),e=this.m();if(this.A!==void 0){const{from:o,to:n}=this.N(this.A,e,s);this.log("measured",[this.A,e,o,n]),t=this.calculateKeyframes(o,n)}else{const o=Qs.get(this.options.inId);if(o){Qs.delete(this.options.inId);const{from:n,to:l}=this.N(o,e,s);t=this.calculateKeyframes(n,l),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,er++,t.forEach(c=>c.zIndex=er)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,i)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,s;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(s=this.webAnimation)==null||s.cancel()}reconnected(){}async disconnected(){var s;if(!this.h||(this.options.id!==void 0&&Qs.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await ir(),(s=this.i)==null?void 0:s.isConnected){const i=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,i),this.options.stabilizeOut){const e=this.m();this.log("stabilizing out");const o=this.A.left-e.left,n=this.A.top-e.top;getComputedStyle(this.element).position!=="static"||o===0&&n===0||(this.element.style.position="relative"),o!==0&&(this.element.style.left=o+"px"),n!==0&&(this.element.style.top=n+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,s;(s=(t=this.options).onStart)==null||s.call(t,this)}didFinish(t){var s,i;t&&((i=(s=this.options).onComplete)==null||i.call(s,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let s=this.element.parentNode;s;s=s==null?void 0:s.parentNode){const i=nr.get(s);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=sr.has(this.u);return t||this.u.updateComplete.then(()=>{sr.add(this.u)}),t}j(t,s=this.O()){const i={...qo};return s.forEach(e=>Object.assign(i,e.options.keyframeOptions)),Object.assign(i,t),i}N(t,s,i){t={...t},s={...s};const e=i.map(l=>l.animatingProperties).filter(l=>l!==void 0);let o=1,n=1;return e.length>0&&(e.forEach(l=>{l.width&&(o/=l.width),l.height&&(n/=l.height)}),t.left!==void 0&&s.left!==void 0&&(t.left=o*t.left,s.left=o*s.left),t.top!==void 0&&s.top!==void 0&&(t.top=n*t.top,s.top=n*s.top)),{from:t,to:s}}calculateKeyframes(t,s,i=!1){const e={},o={};let n=!1;const l={};for(const c in s){const h=t[c],d=s[c];if(c in Js){const f=Js[c];if(h===void 0||d===void 0)continue;const m=f(h,d);m.transform!==void 0&&(l[c]=m.value,n=!0,e.transform=`${e.transform??""} ${m.transform}`,m.overrideFrom!==void 0&&Object.assign(e,m.overrideFrom))}else h!==d&&h!==void 0&&d!==void 0&&(n=!0,e[c]=h,o[c]=d)}return e.transformOrigin=o.transformOrigin=i?"center center":"top left",this.animatingProperties=l,n?[e,o]:void 0}async animate(t,s=this.options.keyframeOptions){this.start(),this.frames=t;let i=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,s]),i=!0,this.webAnimation=this.element.animate(t,s);const e=this.getController();e==null||e.add(this);try{await this.webAnimation.finished}catch{}e==null||e.remove(this)}return this.didFinish(i),i}isAnimating(){var t,s;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((s=this.webAnimation)==null?void 0:s.pending)}log(t,s){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,s)}}const ms=he(Ko),Zo={core:{cancel:`<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
482
+ <path d="M6.75827 17.2426L12.0009 12M17.2435 6.75736L12.0009 12M12.0009 12L6.75827 6.75736M12.0009 12L17.2435 17.2426" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
483
+ </svg>
484
+ `,"check-circled-outline":`<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
485
+ <path d="M7 12.5L10 15.5L17 8.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
486
+ <path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
487
+ </svg>
488
+ `,check:`<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
489
+ <path d="M5 13L9 17L19 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
490
+ </svg>
491
+ `,"emoji-puzzled":'<svg width="24px" height="24px" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" ><path d="M2 12c0 5.523 4.477 10 10 10s10-4.477 10-10S17.523 2 12 2" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M11.5 15.5s1.5-2 4.5-2 4.5 2 4.5 2M3 4c0-2.754 4-2.754 4 0 0 1.967-2 1.64-2 4M5 11.01l.01-.011" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17.5 9a.5.5 0 110-1 .5.5 0 010 1zM10.5 9a.5.5 0 110-1 .5.5 0 010 1z" fill="#000" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',"info-empty":`<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
492
+ <path d="M12 11.5V16.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
493
+ <path d="M12 7.51L12.01 7.49889" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
494
+ <path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
495
+ </svg>
496
+ `,loader:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-loader"><line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line></svg>',"minus-small":`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
497
+ <path stroke-linecap="round" stroke-linejoin="round" d="M18 12H6" />
498
+ </svg>
499
+ `,"more-horiz":`<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
500
+ <path d="M18 12.5C18.2761 12.5 18.5 12.2761 18.5 12C18.5 11.7239 18.2761 11.5 18 11.5C17.7239 11.5 17.5 11.7239 17.5 12C17.5 12.2761 17.7239 12.5 18 12.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
501
+ <path d="M12 12.5C12.2761 12.5 12.5 12.2761 12.5 12C12.5 11.7239 12.2761 11.5 12 11.5C11.7239 11.5 11.5 11.7239 11.5 12C11.5 12.2761 11.7239 12.5 12 12.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
502
+ <path d="M6 12.5C6.27614 12.5 6.5 12.2761 6.5 12C6.5 11.7239 6.27614 11.5 6 11.5C5.72386 11.5 5.5 11.7239 5.5 12C5.5 12.2761 5.72386 12.5 6 12.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
503
+ </svg>
504
+ `,"more-vert":`<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
505
+ <path d="M12 12.5C12.2761 12.5 12.5 12.2761 12.5 12C12.5 11.7239 12.2761 11.5 12 11.5C11.7239 11.5 11.5 11.7239 11.5 12C11.5 12.2761 11.7239 12.5 12 12.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
506
+ <path d="M12 18.5C12.2761 18.5 12.5 18.2761 12.5 18C12.5 17.7239 12.2761 17.5 12 17.5C11.7239 17.5 11.5 17.7239 11.5 18C11.5 18.2761 11.7239 18.5 12 18.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
507
+ <path d="M12 6.5C12.2761 6.5 12.5 6.27614 12.5 6C12.5 5.72386 12.2761 5.5 12 5.5C11.7239 5.5 11.5 5.72386 11.5 6C11.5 6.27614 11.7239 6.5 12 6.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
508
+ </svg>
509
+ `,"nav-arrow-down":`<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
510
+ <path d="M6 9L12 15L18 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
511
+ </svg>
512
+ `,"warning-circled-outline":`<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
513
+ <path d="M12 7L12 13" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
514
+ <path d="M12 17.01L12.01 16.9989" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
515
+ <path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
516
+ </svg>
517
+ `}},bs=new Map,vs={heroicons:{url:"https://cdn.jsdelivr.net/npm/heroicons@2.0.4/24/$prefix/$name.svg",defaultPrefix:"outline"},iconoir:{url:"https://cdnjs.cloudflare.com/ajax/libs/iconoir/5.1.4/icons/$name.svg"},feathers:{url:"https://cdn.jsdelivr.net/npm/feather-icons@4.29.0/dist/icons/$name.svg"},lucide:{url:"https://cdn.jsdelivr.net/npm/lucide-static@0.16.29/icons/$name.svg"},material:{url:"https://cdn.jsdelivr.net/npm/@material-icons/svg@1.0.5/svg/$name/$prefix.svg",defaultPrefix:"regular"},fontAwesome:{url:"https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.1/svgs/$prefix/$name.svg",defaultPrefix:"regular"},custom:{url:"",defaultPrefix:""}};let ar=!1;function Yo(){var r,t;ar||(ar=!0,vs.custom.url=((r=document.querySelector("[customIconLibraryPath]"))==null?void 0:r.getAttribute("customIconLibraryPath"))||"",vs.custom.defaultPrefix=((t=document.querySelector("[customIconDefaultPrefix]"))==null?void 0:t.getAttribute("customIconDefaultPrefix"))||"")}const lr=sessionStorage.getItem("sonicIconsCache"),Ht=lr?JSON.parse(lr):{icons:{},names:[]},Go=100,$i=class $i{};$i.default={get:async t=>{const s=t.library;if(!t.name)return"";const i=t.name,e=Zo;if(s=="custom"&&Yo(),s&&s in vs){const o=vs[s],n=t.prefix||o.defaultPrefix||"",l=e[s]||{};e[s]=l;const c=n+"-"+i;if(l[c])return I(l[c]);const h=(o.url||"").replace("$prefix",n).replace("$name",i);if(Ht.icons[h])return l[c]=Ht.icons[h],I(Ht.icons[h]);if(!bs.has(h)){const f=new Promise(async m=>{const v=await fetch(h);if(!v.ok){m(`<b title="Erreur ${v.status}">😶</b>`);return}try{const b=await v.text();m(b)}catch{m(null)}});bs.set(h,f)}const d=await bs.get(h);if(bs.delete(h),l[c]=d||"",Ht.icons[h]=d||"",Ht.names.length>Go){const f=Ht.names.shift();delete Ht.icons[f]}return sessionStorage.setItem("sonicIconsCache",JSON.stringify(Ht)),I(d)}return I(e.core[t.name]||"")}};let Xs=$i;var Qo=Object.defineProperty,Jo=Object.getOwnPropertyDescriptor,Ze=(r,t,s,i)=>{for(var e=i>1?void 0:i?Jo(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Qo(t,s,e),e};const Xo="sonic-icon";let ue=class extends w{constructor(){super(...arguments),this.iconText="",this.name="",this.prefix="",this.library=""}async updateIcon(){this.iconText=await Xs.default.get({name:this.name,prefix:this.prefix,library:this.library})}willUpdate(r){(r.has("name")||r.has("prefix")||r.has("library"))&&this.updateIcon(),super.willUpdate(r)}render(){return this.iconText?this.iconText:C}};ue.styles=$`
518
+ :host {
519
+ line-height: 0.1em;
520
+ width: fit-content;
521
+ height: fit-content;
522
+ vertical-align: -0.125em;
523
+ flex-shrink: 0;
524
+ }
525
+ svg {
526
+ height: var(--sc-icon-size, 1em);
527
+ width: 1.4em;
528
+ overflow: visible;
529
+ }
530
+
531
+ svg:not([fill="none"]) {
532
+ fill: currentColor;
533
+ }
534
+
535
+ svg[fill="none"] {
536
+ stroke-width: 2;
537
+ }
538
+
539
+ :host([size="2xs"]) svg {
540
+ --sc-icon-size: 0.625em;
541
+ }
542
+
543
+ :host([size="xs"]) svg {
544
+ --sc-icon-size: 0.75em;
545
+ }
546
+
547
+ :host([size="sm"]) svg {
548
+ --sc-icon-size: 0.875em;
549
+ }
550
+
551
+ :host([size="lg"]) svg {
552
+ --sc-icon-size: 1.25em;
553
+ }
554
+
555
+ :host([size="xl"]) svg {
556
+ --sc-icon-size: 1.5em;
557
+ }
558
+
559
+ :host([size="2xl"]) svg {
560
+ --sc-icon-size: 2em;
561
+ }
562
+
563
+ :host([size="3xl"]) svg {
564
+ --sc-icon-size: 2.8em;
565
+ }
566
+ `,Ze([j()],ue.prototype,"iconText",2),Ze([a({type:String})],ue.prototype,"name",2),Ze([a({type:String})],ue.prototype,"prefix",2),Ze([a({type:String})],ue.prototype,"library",2),ue=Ze([_(Xo)],ue);const Ye=$`
567
+ .custom-scroll {
568
+ overflow: auto !important;
569
+ overflow-y: overlay !important;
570
+ }
571
+
572
+ @media (hover: hover) {
573
+ .custom-scroll::-webkit-scrollbar {
574
+ width: 0.5rem;
575
+ height: 0.5rem;
576
+ border: solid 0.15rem transparent;
577
+ border-radius: var(--sc-rounded);
578
+ background: transparent;
579
+ }
580
+
581
+ .custom-scroll::-webkit-scrollbar-thumb {
582
+ box-shadow: inset 0 0 2rem 2rem
583
+ var(--sc-scrollbar-bg, var(--sc-base-400, #222));
584
+ border-radius: var(--sc-rounded);
585
+ border: solid 0.15rem transparent;
586
+ }
587
+ }
588
+ `;var tn=Object.defineProperty,en=Object.getOwnPropertyDescriptor,Ot=(r,t,s,i)=>{for(var e=i>1?void 0:i?en(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&tn(t,s,e),e};const sn={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"},rn="sonic-toast-item";let _t=class extends w{constructor(){super(...arguments),this.title="",this.id="",this.text="",this.status="",this.ghost=!1,this.preserve=!1,this.dismissForever=!1,this.maxHeight="10rem",this.visible=!0}render(){if(this.dismissForever){const r=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(r)[this.id])return C}return this.visible?g`<div
589
+ class="sonic-toast ${this.status} ${this.ghost?"ghost":""}"
590
+ >
591
+ <button
592
+ aria-label="Close"
593
+ class="sonic-toast-close"
594
+ @click=${()=>this.hide()}
595
+ >
596
+ <sonic-icon name="cancel" size="lg"></sonic-icon>
597
+ </button>
598
+ <div
599
+ class="sonic-toast-content custom-scroll"
600
+ style="max-height: ${this.maxHeight} ;"
601
+ >
602
+ ${this.status&&g`<sonic-icon
603
+ name=${sn[this.status]}
604
+ class="sonic-toast-icon"
605
+ size="2xl"
606
+ ></sonic-icon>`}
607
+
608
+ <div class="sonic-toast-text">
609
+ ${this.title?g`<div class="sonic-toast-title">${this.title}</div>`:""}
610
+ ${this.text?I(this.text):""}
611
+ <slot></slot>
612
+ </div>
613
+
614
+ ${this.preserve?"":this.autoHide()}
615
+ </div>
616
+ </div>`:C}hide(){if(pe.getClosestElement(this,"sonic-toast")||(this.visible=!1),this.dismissForever){const r=localStorage.getItem("sonic-toast-dismissed")||"{}",t=JSON.parse(r);t[this.id]=!0,localStorage.setItem("sonic-toast-dismissed",JSON.stringify(t))}this.dispatchEvent(new CustomEvent("hide",{bubbles:!0}))}show(){this.visible=!0}autoHide(){setTimeout(()=>{this.hide()},6e3)}};_t.styles=[Ye,$`
617
+ * {
618
+ box-sizing: border-box;
619
+ }
620
+ :host {
621
+ display: block;
622
+ pointer-events: auto;
623
+ position: relative;
624
+ --sc-toast-status-color: transparent;
625
+ --sc-toast-color: var(--sc-base-content);
626
+ --sc-toast-bg: var(--sc-base);
627
+ --sc-toast-rounded: var(--sc-rounded-md);
628
+ --sc-toast-shadow: var(--sc-shadow-lg);
629
+ }
630
+
631
+ .fixed-area {
632
+ position: fixed;
633
+ bottom: 1.25rem;
634
+ right: 1.25rem;
635
+ z-index: 10000;
636
+ display: flex;
637
+ flex-direction: column-reverse;
638
+ }
639
+
640
+ .sonic-toast {
641
+ position: relative;
642
+ pointer-events: auto;
643
+ overflow: hidden;
644
+ line-height: 1.25;
645
+ color: var(--sc-toast-color);
646
+ box-shadow: var(--sc-toast-shadow);
647
+ border-radius: var(--sc-toast-rounded);
648
+ background: var(--sc-toast-bg);
649
+ }
650
+
651
+ .sonic-toast-content {
652
+ padding: 1em 2.5rem 1em 1em;
653
+ display: flex;
654
+ gap: 0.5rem;
655
+ overflow: auto;
656
+ position: relative;
657
+ }
658
+
659
+ .sonic-toast-text {
660
+ align-self: center;
661
+ margin-top: auto;
662
+ margin-bottom: auto;
663
+ max-width: 70ch;
664
+ line-height: 1.2;
665
+ }
666
+
667
+ ::slotted(a:not(.btn)),
668
+ .sonic-toast-text a {
669
+ color: inherit !important;
670
+ text-decoration: underline !important;
671
+ text-underline-offset: 0.15rem;
672
+ }
673
+
674
+ ::slotted(:is(p, ul, ol, hr, h1, h2, h3, h4, h5, h6)),
675
+ .sonic-toast-text :is(p, ul, ol, hr, h1, h2, h3, h4, h5, h6) {
676
+ margin: 0 0 0.3em !important;
677
+ }
678
+
679
+ ::slotted(li),
680
+ .sonic-toast-text li {
681
+ margin-bottom: 0.15em !important;
682
+ }
683
+
684
+ ::slotted(:is(p, ul, ol, hr, h1, h2, h3, h4, h5, h6):last-child),
685
+ .sonic-toast-text
686
+ > :is(p, ul, ol, hr, h1, h2, h3, h4, h5, h6):last-child {
687
+ margin-bottom: 0 !important;
688
+ }
689
+
690
+ /*BUTTON CLOSE*/
691
+ .sonic-toast-close {
692
+ all: unset;
693
+ position: absolute;
694
+ z-index: 4;
695
+ pointer-events: initial;
696
+ right: 0.5em;
697
+ top: 0.5em;
698
+ width: 1.5rem;
699
+ height: 1.5rem;
700
+ cursor: pointer;
701
+ display: inline-flex;
702
+ align-items: center;
703
+ justify-content: center;
704
+ border-radius: 50%;
705
+ text-align: center;
706
+ opacity: 0.5;
707
+ background: rgba(0, 0, 0, 0);
708
+ }
709
+
710
+ .sonic-toast-close:focus,
711
+ .sonic-toast-close:hover {
712
+ opacity: 1;
713
+ background: rgba(0, 0, 0, 0.075);
714
+ }
715
+
716
+ .sonic-toast-close svg {
717
+ width: 1rem;
718
+ height: 1rem;
719
+ object-fit: contain;
720
+ object-position: center center;
721
+ }
722
+
723
+ /*Title*/
724
+ .sonic-toast-title {
725
+ font-weight: bold;
726
+ font-size: 1.15rem;
727
+ margin: 0.15em 0 0.25em;
728
+ line-height: 1.2;
729
+ }
730
+
731
+ /*STATUS*/
732
+ .success {
733
+ --sc-toast-status-color: var(--sc-success);
734
+ --sc-toast-title-color: var(--sc-toast-status-color);
735
+ }
736
+
737
+ .error {
738
+ --sc-toast-status-color: var(--sc-danger);
739
+ --sc-toast-title-color: var(--sc-toast-status-color);
740
+ }
741
+
742
+ .warning {
743
+ --sc-toast-status-color: var(--sc-warning);
744
+ --sc-toast-title-color: var(--sc-toast-status-color);
745
+ }
746
+
747
+ .info {
748
+ --sc-toast-status-color: var(--sc-info);
749
+ --sc-toast-title-color: var(--sc-toast-status-color);
750
+ }
751
+
752
+ .success,
753
+ .error,
754
+ .info,
755
+ .warning {
756
+ border-top: 3px solid var(--sc-toast-status-color, currentColor);
757
+ }
758
+
759
+ .sonic-toast:before {
760
+ content: "";
761
+ display: block;
762
+ position: absolute;
763
+ left: 0;
764
+ top: 0;
765
+ right: 0;
766
+ bottom: 0;
767
+ opacity: 0.05;
768
+ pointer-events: none;
769
+ transition: 0.2s;
770
+ border-radius: var(--sc-toast-rounded);
771
+ background-color: var(--sc-toast-status-color);
772
+ }
773
+
774
+ .sonic-toast:hover:before {
775
+ opacity: 0.025;
776
+ }
777
+
778
+ .info .sonic-toast-icon,
779
+ .error .sonic-toast-icon,
780
+ .success .sonic-toast-icon,
781
+ .warning .sonic-toast-icon {
782
+ color: var(--sc-toast-status-color, currentColor);
783
+ }
784
+
785
+ .sonic-toast-icon {
786
+ position: sticky;
787
+ top: 0;
788
+ }
789
+
790
+ .ghost {
791
+ opacity: 0.85;
792
+ pointer-events: none;
793
+ }
794
+ `],Ot([a({type:String})],_t.prototype,"title",2),Ot([a({type:String})],_t.prototype,"id",2),Ot([a({type:String})],_t.prototype,"text",2),Ot([a({type:String})],_t.prototype,"status",2),Ot([a({type:Boolean})],_t.prototype,"ghost",2),Ot([a({type:Boolean})],_t.prototype,"preserve",2),Ot([a({type:Boolean})],_t.prototype,"dismissForever",2),Ot([a({type:String})],_t.prototype,"maxHeight",2),Ot([j()],_t.prototype,"visible",2),_t=Ot([_(rn)],_t);const on=$`
795
+ :host {
796
+ /* polices*/
797
+ --sc-font-family-base: "Inter var", "Inter", -apple-system, system-ui,
798
+ BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
799
+ sans-serif;
800
+ --sc-font-weight-base: 400;
801
+ --sc-font-style-base: normal;
802
+
803
+ --sc-headings-font-family: var(--sc-font-family-base), sans-serif;
804
+ --sc-headings-font-style: var(--sc-font-style-base);
805
+ --sc-headings-line-height: 1.1;
806
+ --sc-headings-font-weight: 700;
807
+ --sc-headings-text-transform: none;
808
+
809
+ /* Button*/
810
+ --sc-btn-font-weight: var(--sc-font-weight-base);
811
+ --sc-btn-font-family: var(--sc-font-family-base);
812
+ --sc-btn-font-style: var(--sc-font-style-base);
813
+
814
+ /* ROUNDED*/
815
+ --sc-rounded-sm: calc(var(--sc-rounded) * 0.5);
816
+ --sc-rounded: 0.375rem;
817
+ --sc-rounded-md: calc(var(--sc-rounded) * 1.8);
818
+ --sc-rounded-lg: calc(var(--sc-rounded) * 3);
819
+ --sc-rounded-xl: calc(var(--sc-rounded) * 7);
820
+ --sc-rounded-size-intensity: calc((1em - 1rem) * 0.4);
821
+
822
+ /* 4 for rounded full*/
823
+ --sc-btn-rounded-intensity: 1.4;
824
+ --sc-btn-font-weight: 500;
825
+ --sc-btn-rounded: calc(
826
+ (var(--sc-rounded) + var(--sc-rounded-size-intensity)) *
827
+ var(--sc-btn-rounded-intensity)
828
+ );
829
+
830
+ /* Placeholder */
831
+ --sc-placeholder-bg: rgba(17, 24, 39, 0.05);
832
+
833
+ /* OMBRES */
834
+ --sc-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1),
835
+ 0 1px 2px -1px rgb(0 0 0 / 0.1);
836
+ --sc-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1),
837
+ 0 2px 4px -2px rgb(0 0 0 / 0.1);
838
+ --sc-shadow-lg: 0 10px 15px 0px rgb(0 0 0 / 0.1),
839
+ 0 4px 6px -4px rgb(0 0 0 / 0.1);
840
+ --sc-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
841
+ 0 8px 10px -6px rgb(0 0 0 / 0.1);
842
+ --sc-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
843
+
844
+ /* Forms */
845
+ --sc-border-width: max(1px, 0.12rem);
846
+ --sc-border-color: var(--sc-base-100);
847
+ --sc-form-height: 2.5em;
848
+ --sc-form-border-width: var(--sc-border-width);
849
+ --sc-input-bg: var(--sc-base-100);
850
+ --sc-input-border-color: var(--sc-input-bg);
851
+ --sc-input-rounded-intensity: 1.4;
852
+ --sc-input-rounded: calc(
853
+ (var(--sc-rounded) + var(--sc-rounded-size-intensity)) *
854
+ var(--sc-input-rounded-intensity)
855
+ );
856
+ --sc-label-font-weight: 500;
857
+
858
+ /* Contrast -- ex : Text on images */
859
+ --sc-contrast-content: #fff;
860
+ --sc-contrast: #000000;
861
+
862
+ /*Body*/
863
+ --sc-body-bg: var(--sc-base);
864
+ }
865
+ `,nn=$`
866
+ :host {
867
+ /*Boutons*/
868
+ --sc-primary: var(--sc-base-800);
869
+ --sc-info: #2563eb;
870
+ --sc-danger: #f43f5e;
871
+ --sc-warning: #f97316;
872
+ --sc-success: #14b8a6;
873
+
874
+ --sc-primary-content: var(--sc-base);
875
+ --sc-info-content: var(--sc-base);
876
+ --sc-danger-content: var(--sc-base);
877
+ --sc-warning-content: var(--sc-base);
878
+ --sc-success-content: var(--sc-base);
879
+
880
+ /*Bases*/
881
+ --sc-base: #fff;
882
+ --sc-base-50: #f8fafc;
883
+ --sc-base-100: #f1f5f9;
884
+ --sc-base-200: #e2e8f0;
885
+ --sc-base-300: #cbd5e1;
886
+ --sc-base-400: #94a3b8;
887
+ --sc-base-500: #64748b;
888
+ --sc-base-600: #475569;
889
+ --sc-base-700: #334155;
890
+ --sc-base-800: #1e293b;
891
+ --sc-base-900: #0f172a;
892
+ --sc-base-content: var(--sc-base-700);
893
+
894
+ /*formulaires*/
895
+ --sc-input-bg: var(--sc-base-100);
896
+ --sc-input-color: var(--sc-base-content);
897
+ }
898
+ `,cr=$`
899
+ --sc-primary: var(--sc-dark-primary, var(--sc-base-700));
900
+ --sc-info: var(--sc-dark-info, #3abff8);
901
+ --sc-danger: var(--sc-dark-danger, #f87272);
902
+ --sc-warning: var(--sc-dark-warning, #fbbd23);
903
+ --sc-success: var(--sc-dark-success, #36d399);
904
+
905
+ --sc-primary-content: var(--sc-dark-primary-content, #002b3d);
906
+ --sc-info-content: var(--sc-dark-info-content, #002b3d);
907
+ --sc-danger-content: var(--sc-dark-danger-content, #382800);
908
+ --sc-warning-content: var(--sc-dark-warning-content, #382800);
909
+ --sc-success-content: var(--sc-dark-success-content, #003320);
910
+
911
+ --sc-base: var(--sc-dark-base, #1d2634);
912
+ --sc-base-50: var(--sc-dark-base-50, #1f2937);
913
+ --sc-base-100: var(--sc-dark-base-100, #252c36);
914
+ --sc-base-200: var(--sc-dark-base-200, #2c3543);
915
+ --sc-base-300: var(--sc-dark-base-300, #38414e);
916
+ --sc-base-400: var(--sc-dark-base-400, #515964);
917
+ --sc-base-500: var(--sc-dark-base-500, #828891);
918
+ --sc-base-600: var(--sc-dark-base-600, #b4b8be);
919
+ --sc-base-700: var(--sc-dark-base-700, #cdd0d5);
920
+ --sc-base-800: var(--sc-dark-base-800, #d9dce0);
921
+ --sc-base-900: var(--sc-dark-base-900, #e5e7eb);
922
+ --sc-base-content: var(--sc-dark-base-content, #e5e7eb);
923
+ `,an=$`
924
+ :host([theme="dark"]) {
925
+ ${cr}
926
+ }
927
+
928
+ @media (prefers-color-scheme: dark) {
929
+ :host([theme="auto"]) {
930
+ ${cr}
931
+ }
932
+ }
933
+ `;var ln=Object.defineProperty,cn=Object.getOwnPropertyDescriptor,Ge=(r,t,s,i)=>{for(var e=i>1?void 0:i?cn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ln(t,s,e),e};const hn="sonic-theme";let bt=class extends w{constructor(){super(),this.theme="light",this.background=!1,this.color=!1,this.font=!1,bt.instance=this}static getPopContainer(){return bt.instance||document.body}connectedCallback(){super.connectedCallback(),window.addEventListener("message",r=>this.receiveMessage(r),!1),window.dispatchEvent(new CustomEvent("SonicThemeReady")),this.postCSSVars()}postCSSVars(){var e;const r=document.styleSheets,t=r.length,s=[];for(let o=0;o<t;o++){const n=r[o];n.href&&(n.href.includes("googleapis")||n.href.includes("typekit.net"))&&s.push(n.href)}const i={variables:this.getCssVariables(),fonts:s};(e=tt.get("sonic-theme"))==null||e.set(i),document.querySelectorAll("iframe").forEach(o=>{var n;return(n=o.contentWindow)==null?void 0:n.postMessage({type:"SonicTheme",...i},"*")})}receiveMessage(r){const t=r.data;!t.type||t.type!="GetSonicTheme"||this.postCSSVars()}getCssVariables(){const r=[],t=[...bt.styles.map(e=>e.styleSheet),...Array.from(document.styleSheets)];for(const e of t)try{if(!e)continue;const o=e.cssRules;for(const n of o){if(!("style"in n))continue;const l=n.style;for(const c of l)r.includes(c)||c.indexOf("--sc")!==0||r.push(c)}}catch{console.log("Erreur lors de la récupération des variables CSS")}const s=window.getComputedStyle(this),i={};return r.forEach(e=>i[e]=s.getPropertyValue(e)),i}render(){return g`<slot></slot>`}};bt.styles=[nn,an,on,$`
934
+ :host([color]) {
935
+ color: var(--sc-base-content);
936
+ }
937
+
938
+ :host([font]) {
939
+ font-family: var(--sc-font-family-base), sans-serif;
940
+ font-weight: var(--sc-font-weight-base);
941
+ font-style: var(--sc-font-style-base);
942
+ }
943
+ ::slotted(.sonic-pop-content) {
944
+ max-width: 80vw;
945
+ background-color: var(--sc-base);
946
+ position: fixed;
947
+ z-index: 99999;
948
+ display: block;
949
+ transform: translateY(1rem) scale(0.95);
950
+ pointer-events: none;
951
+ transition-duration: 0.15s;
952
+ transition-timing-function: ease;
953
+
954
+ transition-property: scale, opacity;
955
+ border-radius: min(calc(var(--sc-btn-rounded) * 2), 0.4em);
956
+ }
957
+
958
+ ::slotted(.sonic-pop-content).is-open:not(.is-empty) {
959
+ transform: translateY(0) scale(1);
960
+ opacity: 1;
961
+ pointer-events: auto;
962
+ transition-property: scale, opacity;
963
+ transition-timing-function: cubic-bezier(0.25, 0.25, 0.42, 1.225);
964
+ }
965
+ `],Ge([a({type:String,reflect:!0})],bt.prototype,"theme",2),Ge([a({type:Boolean,reflect:!0})],bt.prototype,"background",2),Ge([a({type:Boolean,reflect:!0})],bt.prototype,"color",2),Ge([a({type:Boolean,reflect:!0})],bt.prototype,"font",2),bt=Ge([_(hn)],bt);var dn=Object.defineProperty,pn=Object.getOwnPropertyDescriptor,hr=(r,t,s,i)=>{for(var e=i>1?void 0:i?pn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&dn(t,s,e),e};const un="sonic-toast";let T=class extends w{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const t=window.parent!=window;let s={pointerEvents:"none",gap:"1rem",display:"flex",margin:this.toasts.length?"1rem":"0"};return t||(s={...s,margin:"0",width:"calc(100% - 2.5rem)",position:"fixed",bottom:"1.25rem",right:"1.25rem",zIndex:"10000",maxWidth:"64ch",flexDirection:"column-reverse"}),T.handleExistingToastDelegation(),this.toasts?g`<div aria-live="polite" style=${pt(s)}>
966
+ ${gs(this.toasts,i=>i.id,i=>g`
967
+ <sonic-toast-item
968
+ maxHeight=${t?"none":"10rem"}
969
+ status=${x(i.status)}
970
+ title=${x(i.title)}
971
+ ?ghost=${i.ghost}
972
+ ?dismissForever=${i.dismissForever}
973
+ ?preserve=${i.preserve}
974
+ id=${x(i.id)}
975
+ @hide=${()=>this.removeItem(i)}
976
+ ${ms({keyframeOptions:{duration:250,easing:"cubic-bezier(0.250, 0.250, 0.420, 1.225)"},in:[{transform:"translateY(0) scale(1.25)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}],out:[{transform:"scale(.90) ",opacity:0,duration:3e3,easing:"ease-in-out"}],stabilizeOut:!0})}
977
+ >
978
+ <!-- Le texte est passé dans le slot et non pas en propriété pour contrer des problèmatiques de shadow-dom et d'appel exterieur (exemple: fancybox) -->
979
+ ${i.text?I(i.text):""}
980
+ </sonic-toast-item>
981
+ `)}
982
+ </div>`:C}static removeAll(){if(T.delegateToasts){T.handleExistingToastDelegation(),window.parent.postMessage({type:"removeAllToasts"},"*");return}const t=T.getInstance();t&&(t.toasts=t.toasts.filter(s=>s.ghost))}static getInstance(){return T.instance||(T.instance=document.createElement("sonic-toast"),bt.getPopContainer().prepend(T.instance)),T.instance}static add(t){if(T.delegateToasts){T.handleExistingToastDelegation(),window.parent.postMessage({type:"addToast",toast:t},"*");return}const s=T.getInstance(),i=t.id??new Date().valueOf(),o=new RegExp("</a>|</.*?button>|</.*?input>|</.*?textarea>|</.*?select>").test(t.text),n={id:i,text:t.text,title:t.title,status:t.status,preserve:o?!0:t.preserve,ghost:t.ghost,dismissForever:t.dismissForever};if(t.dismissForever&&t.id){const l=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(l)[t.id])return null}if(s!=null&&s.toasts.length){const l={...n};for(const c of s.toasts){const h={...c};if(l.id=h.id=0,X.shallowEqual(l,h))return null}}return s&&(s.toasts=[...s.toasts,n]),n}static handleExistingToastDelegation(){if(!this.delegateToasts)return;const t=T.getInstance();window.parent.postMessage({type:"addToasts",toasts:t.toasts},"*"),t.toasts=[]}static removeItem(t){if(T.delegateToasts){T.handleExistingToastDelegation(),window.parent.postMessage({type:"removeToast",toast:t},"*");return}const s=T.getInstance();s&&s.removeItem(t)}removeItem(t){t&&(this.toasts=this.toasts.filter(s=>(s={...s},delete s.id,!X.shallowEqual(s,t,!1))))}};T.delegateToasts=!1,hr([a({type:Array})],T.prototype,"toasts",2),T=hr([_(un)],T),typeof window<"u"&&(window.SonicToast=window.SonicToast||T);function fn(){var s;const r=i=>{i.data.type=="querySonicToastAvailability"&&i.source.postMessage({type:"sonicToastAvailable"},"*"),i.data.type=="sonicToastAvailable"&&(T.delegateToasts=!0,T.handleExistingToastDelegation()),i.data.type=="addToasts"&&(T.getInstance().toasts=[...T.getInstance().toasts,...i.data.toasts]),i.data.type=="removeAllToasts"&&T.removeAll(),i.data.type=="removeToast"&&T.removeItem(i.data.toast),i.data.type=="addToast"&&T.add(i.data.toast)},t=window.parent!=window;if(window.addEventListener("message",r,!1),t&&window.parent.postMessage({type:"querySonicToastAvailability"},"*"),!t)for(const i of document.querySelectorAll("iframe"))(s=i.contentWindow)==null||s.postMessage({type:"sonicToastAvailable"},"*")}fn();var gn=Object.defineProperty,mn=Object.getOwnPropertyDescriptor,Qe=(r,t,s,i)=>{for(var e=i>1?void 0:i?mn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&gn(t,s,e),e};const bn=new Set,vn=new Set,yn=r=>{for(const t of vn)t(r)},ti=(r,t)=>{class s extends r{constructor(...e){super(),this.api=null,this.key="",this.isFirstLoad=!0,this.isLoading=!1,this.iObserver=null,this.isFetchEnabled=!0,this.fetchedData=null,this._endPoint="",this.noErrorsRecordings=!1,this.requestId=0,this.refetchEveryMs=0,this.dataProvider=""}get props(){return super.props}set props(e){super.props=e}set endPoint(e){this._endPoint=e,this.isConnected&&this._fetchData()}get endPoint(){return this._endPoint}async _fetchData(){if(this.requestUpdate(),!this.isFetchEnabled||(this.api=new Se(this.getApiConfiguration()),!this.api)||(this.dispatchEvent(new CustomEvent("loading",{detail:this})),this.getAttribute("localStorage")==="enabled"&&await tt.getInstance().isLocalStrorageReady,!this.isConnected))return;const e=tt.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();this.isLoading=!0,X.isObject(this.props)&&Object.keys(this.props||{}).length>0&&this.isFirstLoad&&window.requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1});let o=await this.api.get(this.endPoint||this.dataProvider||"",e);if(this.fetchedData=o,this.api.lastResult&&!this.api.lastResult.ok&&(this.noErrorsRecordings||bn.add(this),yn(this.api.lastResult)),!!this.isConnected){if(o)o._sonic_http_response_&&!o._sonic_http_response_.ok&&Object.keys(o).length===1&&T.add({text:"Network Error",status:"error"});else{this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs));return}if(this.key){const n=o._sonic_http_response_,l=this.key.split(".");o=X.traverse(o,l,this.hasAttribute("preserveOtherKeys")),o&&X.isObject(o)&&n&&(o._sonic_http_response_=n)}this.props=o,this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs))}}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.publisher)==null||e.offInvalidate(this.onInvalidate),clearTimeout(this.refetchTimeOutId),this.isFirstLoad=!1}connectedCallback(){var e;this.lazyLoad=this.lazyLoad!==void 0?this.lazyLoad:this.hasAttribute("lazyload"),super.connectedCallback(),this.isFetchEnabled&&(this.key=this.key!=""?this.key:this.getAttribute("key"),this.props&&this.publisher.set(this.props),this.onInvalidate=()=>this._fetchData(),(e=this.publisher)==null||e.onInvalidate(this.onInvalidate),this.lazyLoad?this.handleLazyLoad():this._fetchData())}handleLazyLoad(){if(!this.lazyLoad)return;const e=this.getBoundingClientRect();if(e.x<window.innerWidth&&e.right>0&&e.y<window.innerHeight&&e.right>0){this._fetchData();return}const o=parseFloat(this.getAttribute("lazyBoundsRatio")||"1"),n={root:null,rootMargin:Math.max(window.innerWidth*o,window.innerHeight*o)+"px",threshold:.9};this.iObserver=new IntersectionObserver(h=>this.onIntersection(h),n);let c=[...(this.shadowRoot?this.shadowRoot:this).children].filter(h=>h.nodeName.toLowerCase()!="style")[0];if((c==null?void 0:c.nodeName.toLocaleLowerCase())=="slot"&&(c=[...c.children].filter(h=>h.nodeName.toLowerCase()!="style")[0]),!c||c.nodeName.toLocaleLowerCase()=="template"){c=document.createElement("span");const h=c.style;h.pointerEvents="none",this.lazyLoadSpan=c,this.appendChild(c)}c?this.iObserver.observe(c):this.isFirstLoad&&this._fetchData()}onIntersection(e){var o,n;for(const l of e)if(l.isIntersecting&&this.isFirstLoad){this._fetchData(),(o=this.lazyLoadSpan)==null||o.remove(),this.lazyLoadSpan=void 0,(n=this.iObserver)==null||n.disconnect();break}}}return Qe([a()],s.prototype,"noErrorsRecordings",2),Qe([a()],s.prototype,"props",1),Qe([a({type:String})],s.prototype,"endPoint",1),Qe([a()],s.prototype,"requestId",2),Qe([a({type:Number})],s.prototype,"refetchEveryMs",2),s};var wn=Object.defineProperty,_n=Object.getOwnPropertyDescriptor,fe=(r,t,s,i)=>{for(var e=i>1?void 0:i?_n(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&wn(t,s,e),e};const ys=r=>{class t extends r{constructor(...i){super(),this.forceAutoFill=!1,this._type="text",this.status="default"}validateFormElement(){var o;const i=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(!i||i.checkValidity())return;const e=this.getFormPublisher();e&&(e.isFormValid=!1),i.reportValidity()}set type(i){this.hasAttribute("type")&&!this.forceAutoFill&&(i=this.getAttribute("type")),this._type=i,this.requestUpdate()}get type(){return this._type}get description(){return this._description}set description(i){this.hasAttribute("description")&&!this.forceAutoFill&&(i=this.getAttribute("description")),this._description=i,this.requestUpdate()}get label(){return this._label}set label(i){this.hasAttribute("label")&&!this.forceAutoFill&&(i=this.getAttribute("label")),this._label=i,this.requestUpdate()}}return fe([a()],t.prototype,"forceAutoFill",2),fe([a({type:String})],t.prototype,"type",1),fe([a()],t.prototype,"description",1),fe([a()],t.prototype,"label",1),fe([a({type:String,reflect:!0})],t.prototype,"status",2),fe([a({type:Number})],t.prototype,"tabindex",2),fe([a({type:String})],t.prototype,"autocomplete",2),t},dr=ti,xn=Gs,pr=Oe,ur=ys,qt=Y,ei=We;window["concorde-mixins"]=window["concorde-mixins"]||{},window["concorde-mixins"]={Fetcher:dr,FormCheckable:xn,FormElement:pr,FormInput:ur,Subscriber:qt,TemplatesContainer:ei};/**
983
+ * @license
984
+ * Copyright 2020 Google LLC
985
+ * SPDX-License-Identifier: BSD-3-Clause
986
+ */const Dt=he(class extends Ae{constructor(r){if(super(r),r.type!==ce.CHILD)throw Error("templateContent can only be used in child bindings")}render(r){return this.vt===r?mt:(this.vt=r,document.importNode(r.content,!0))}});var Pn=Object.defineProperty,$n=Object.getOwnPropertyDescriptor,fr=(r,t,s,i)=>{for(var e=i>1?void 0:i?$n(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Pn(t,s,e),e};const Cn="sonic-fetch";let ws=class extends ti(Y(ei(w))){renderLoader(){if(!(this.isLoading&&this.loader!==void 0))return C;const r=this.loader===!0||this.loader===""?"fixed":this.loader;return g`<sonic-loader mode=${r}></sonic-loader>`}renderSkeleton(){const r=this.templateParts.skeleton;return this.isLoading&&r?Dt(r):C}render(){return g`
987
+ ${this.renderSkeleton()} ${this.renderLoader()}
988
+ ${this.isLoading?C:g`<slot></slot>`}
989
+ `}};ws.styles=[$`
990
+ :host {
991
+ display: contents;
992
+ }
993
+ `],fr([a()],ws.prototype,"loader",2),ws=fr([_(Cn)],ws);var An=Object.defineProperty,Sn=Object.getOwnPropertyDescriptor,gr=(r,t,s,i)=>{for(var e=i>1?void 0:i?Sn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&An(t,s,e),e};const On="sonic-if";let _s=class extends w{constructor(){super(...arguments),this.condition=!1}render(){return this.condition?g` <slot></slot> `:C}};_s.styles=$`
994
+ :host {
995
+ display: contents;
996
+ }
997
+ `,gr([a({type:Boolean})],_s.prototype,"condition",2),_s=gr([_(On)],_s);const Dn=$`
998
+ :host([align="left"]) .sonic-loader--inline {
999
+ margin-left: 0;
1000
+ }
1001
+
1002
+ :host([align="right"]) .sonic-loader--inline {
1003
+ margin-left: auto;
1004
+ margin-right: 0;
1005
+ }
1006
+ .sonic-loader--inline {
1007
+ display: block;
1008
+ position: relative;
1009
+ width: 80px;
1010
+ height: 24px;
1011
+ margin: auto;
1012
+ z-index: 20;
1013
+ }
1014
+ .sonic-loader--inline div {
1015
+ position: absolute;
1016
+ top: 5px;
1017
+ width: 13px;
1018
+ height: 13px;
1019
+ border-radius: 50%;
1020
+ background: var(--sc-loader-bg);
1021
+ animation-timing-function: cubic-bezier(0, 1, 1, 0);
1022
+ }
1023
+ .sonic-loader--inline div:nth-child(1) {
1024
+ left: 8px;
1025
+ animation: lds-ellipsis1 0.6s infinite;
1026
+ }
1027
+ .sonic-loader--inline div:nth-child(2) {
1028
+ left: 8px;
1029
+ animation: lds-ellipsis2 0.6s infinite;
1030
+ }
1031
+ .sonic-loader--inline div:nth-child(3) {
1032
+ left: 32px;
1033
+ animation: lds-ellipsis2 0.6s infinite;
1034
+ }
1035
+ .sonic-loader--inline div:nth-child(4) {
1036
+ left: 56px;
1037
+ animation: lds-ellipsis3 0.6s infinite;
1038
+ }
1039
+
1040
+ @keyframes lds-ellipsis1 {
1041
+ 0% {
1042
+ transform: scale(0);
1043
+ }
1044
+ 100% {
1045
+ transform: scale(1);
1046
+ }
1047
+ }
1048
+ @keyframes lds-ellipsis3 {
1049
+ 0% {
1050
+ transform: scale(1);
1051
+ }
1052
+ 100% {
1053
+ transform: scale(0);
1054
+ }
1055
+ }
1056
+ @keyframes lds-ellipsis2 {
1057
+ 0% {
1058
+ transform: translate(0, 0);
1059
+ }
1060
+ 100% {
1061
+ transform: translate(24px, 0);
1062
+ }
1063
+ }
1064
+ `,kn=$`
1065
+
1066
+ @keyframes sonic-loader--fixed {
1067
+ 0% {
1068
+ transform: scale(0);
1069
+ opacity: 0;
1070
+ }
1071
+ 5% {
1072
+ opacity: 1;
1073
+ }
1074
+ 70% {
1075
+ opacity:90%;
1076
+ }
1077
+ 100% {
1078
+ transform: scale(1);
1079
+ opacity: 0;
1080
+ }
1081
+ }
1082
+
1083
+ .sonic-loader--fixed {
1084
+ position: fixed;
1085
+ top:50%;
1086
+ left:50%;
1087
+ transform:transateY(-50%) translateX(-50%);
1088
+ z-index:999;
1089
+ }
1090
+
1091
+ .sonic-loader--fixed > div:nth-child(2) {
1092
+ animation-delay: -0.5s;
1093
+ }
1094
+ .sonic-loader--fixed > div:nth-child(3) {
1095
+ animation-delay: -0.2s;
1096
+ }
1097
+
1098
+ .sonic-loader--fixed > div:nth-child(4) {
1099
+ display:none !important;
1100
+ }
1101
+ .sonic-loader--fixed > div {
1102
+ background-color: var(--sc-loader-bg);
1103
+ width: 5rem;
1104
+ height: 5rem;
1105
+ border-radius: 100%;
1106
+ margin: 2px;
1107
+ animation-fill-mode: both;
1108
+ position: absolute;
1109
+ top: 0px;
1110
+ opacity: 0;
1111
+ margin: 0;
1112
+ top: -2.5rem;
1113
+ left: -2.5rem;
1114
+ width: 5rem;
1115
+ height: 5rem;
1116
+ animation: sonic-loader--fixed 1s 0s linear infinite;
1117
+ }
1118
+
1119
+ `;var Ln=Object.defineProperty,En=Object.getOwnPropertyDescriptor,si=(r,t,s,i)=>{for(var e=i>1?void 0:i?En(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ln(t,s,e),e};const Nn="sonic-loader";let ot=class extends w{constructor(){super(...arguments),this.mode="fixed",this.noDelay=!1}static show(r){ot.loader||(ot.loader=document.createElement("sonic-loader"));const t=ot.loader;r||(r={}),r.mode&&t.setAttribute("mode",r.mode),r.noDelay&&t.setAttribute("noDelay",""),r.container||(r.container=bt.getPopContainer(),r.mode="fixed"),r.container.appendChild(t),ot.callCounter++}static hide(){ot.callCounter--,!(ot.callCounter>0)&&ot.loader&&ot.loader.remove()}render(){return g`<div class="sonic-loader sonic-loader--${this.mode} ${this.noDelay?"sonic-loader--nodelay":""} ">
1120
+ <div></div>
1121
+ <div></div>
1122
+ <div></div>
1123
+ <div></div>
1124
+ </div>`}};ot.styles=[Dn,kn,$`
1125
+ :host {
1126
+ --sc-loader-bg: var(--sc-primary, currentColor);
1127
+ pointer-events: none;
1128
+ }
1129
+
1130
+ .sonic-loader {
1131
+ opacity: 0;
1132
+ animation: showLoader 0.5s 0.5s forwards;
1133
+ }
1134
+ .sonic-loader--inline,
1135
+ .sonic-loader--nodelay {
1136
+ animation-delay: 0s;
1137
+ }
1138
+
1139
+ @keyframes showLoader {
1140
+ 0% {
1141
+ opacity: 0;
1142
+ }
1143
+
1144
+ 100% {
1145
+ opacity: 1;
1146
+ }
1147
+ }
1148
+ `],ot.callCounter=0,si([a({type:String})],ot.prototype,"mode",2),si([a({type:Boolean})],ot.prototype,"noDelay",2),ot=si([_(Nn)],ot);var Tn=Object.defineProperty,jn=Object.getOwnPropertyDescriptor,Mn=(r,t,s,i)=>{for(var e=i>1?void 0:i?jn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Tn(t,s,e),e};const In="sonic-subscriber";let mr=class extends Y(w){constructor(){super(...arguments),this.noAutofill=!0}connectedCallback(){this.noShadowDom="",super.connectedCallback()}updated(r){super.updated(r),this.children.length==0?this.style.display="none":this.style.display="contents"}render(){return g`<slot></slot> `}};mr=Mn([_(In)],mr);var zn=Object.defineProperty,Fn=Object.getOwnPropertyDescriptor,ge=(r,t,s,i)=>{for(var e=i>1?void 0:i?Fn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&zn(t,s,e),e};const Rn="sonic-list";let Wt=class extends ti(Y(We(w))){constructor(){super(...arguments),this.templateKey="template",this.idKey="id",this.limit=Number.POSITIVE_INFINITY,this.offset=0}connectedCallback(){this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.isFetchEnabled=this.hasAttribute("fetch"),this.isFetchEnabled&&(this.isLoading=!0),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}renderLoader(){if(!(this.isLoading&&this.loader!==void 0)||this.templateParts.skeleton)return C;const t=this.loader===!0||this.loader===""?"fixed":this.loader;return g`<sonic-loader mode=${t}></sonic-loader>`}renderSkeleton(){const r=this.templateParts.skeleton;return this.isLoading&&r?Dt(r):C}renderLoadingState(){return g`${this.renderSkeleton()} ${this.renderLoader()}`}renderNoResultState(){return g` <div
1149
+ style="color: var(--sc-base-400);
1150
+ font-size: 1.5em;
1151
+ margin: 4rem 0;
1152
+ display: flex;
1153
+ gap: 0.5rem;"
1154
+ >
1155
+ <sonic-icon name="emoji-puzzled" size="lg"></sonic-icon
1156
+ ><span class="sonic-no-result-text"
1157
+ >${typeof this.props=="string"&&this.props==""?"Aucun résultat":this.props}</span
1158
+ >
1159
+ </div>`}formatProps(){let r=this.props;if(r==null)return null;const t=r._sonic_http_response_,s=this.hasAttribute("extractValues");return Array.isArray(r)||(s?r=Object.entries(r).map(([i,e])=>({key:i,value:e})):X.isObject(r)&&Object.keys(r).length>0&&(!t||t.ok)?r=[r]:r=[]),r=r.filter(i=>i!=null),t&&(r._sonic_http_response_=t),r}render(){if(this.isLoading&&!Array.isArray(this.props))return this.renderLoadingState();if(typeof this.props=="string")return this.renderNoResultState();if(!X.isObject(this.props))return g`<div></div>`;const i=this.formatProps();if(((i==null?void 0:i.length)||0)==0&&this.templateParts["no-item"])return Dt(this.templateParts["no-item"]);const e=this.templateList.length;let o=-1;const n=this.hasAttribute("extractValues"),l=this.templateParts.separator,c=(i==null?void 0:i.length)||0,h=i==null?void 0:i.slice(this.offset,this.offset+this.limit);return g`
1160
+ ${h==null?void 0:h.map((d,f)=>{if(d==null)return C;let m=null,v=f;if(typeof d=="object"&&!Array.isArray(d)){const D=d[this.templateKey];D&&typeof D=="string"&&(m=this.templateParts[D]),n&&(v=d==null?void 0:d.key)}if(v=="_sonic_http_response_"||typeof v!="string"&&typeof v!="number")return C;const b=f>=c-1,P=f%2,S=this.publisher[v];return S._key_=v+"",S._metadata_={...S._metadata_.get(),key:v,even:P==0,odd:P==1,onlyChild:c==1,firstChild:f==0,lastChild:b},o++,m&&(o=-1),d&&g`
1161
+ <sonic-subscriber
1162
+ ?debug=${this.defferedDebug===!0}
1163
+ .bindPublisher=${function(){return S}}
1164
+ .propertyMap?=${this.itemPropertyMap}
1165
+ dataProvider="${this.dataProvider}/list-item/${v}"
1166
+ >
1167
+ ${Dt(m||this.templateList[o%e])}
1168
+ </sonic-subscriber>
1169
+ ${l&&!b?Dt(l):C}
1170
+ `})}
1171
+ `}};ge([a({type:Object})],Wt.prototype,"itemPropertyMap",2),ge([a({type:String})],Wt.prototype,"templateKey",2),ge([a({type:String})],Wt.prototype,"idKey",2),ge([a()],Wt.prototype,"loader",2),ge([a()],Wt.prototype,"limit",2),ge([a()],Wt.prototype,"offset",2),Wt=ge([_(Rn)],Wt);/**
1172
+ * @license
1173
+ * Copyright 2021 Google LLC
1174
+ * SPDX-License-Identifier: BSD-3-Clause
1175
+ */function*Un(r,t){if(r!==void 0){let s=0;for(const i of r)yield t(i,s++)}}var Vn=Object.defineProperty,Bn=Object.getOwnPropertyDescriptor,ut=(r,t,s,i)=>{for(var e=i>1?void 0:i?Bn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Vn(t,s,e),e};const Hn="sonic-queue";let et=class extends Y(w){constructor(){super(...arguments),this.templates=null,this.lastRequestTime=0,this.key="",this.itemPropertyMap=null,this.cache="default",this.targetRequestDuration=500,this.limit=5,this.lazyBoundsRatio=1,this.offset=0,this.resultCount=0,this.noLazyload=!1,this.loader="inline",this.filteredFields="",this.instanceId=0,this.localStorage="disabled",this.filterPublisher=null,this.filterTimeoutMs=400,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.updateFilteredContent=()=>{var n;const t=this.dataProviderExpression.split("?");t.shift();const s=new URLSearchParams(t.join("?")),i=(n=this.filterPublisher)==null?void 0:n.get(),e=this.filteredFields.split(" ");for(const l in i){let c=i[l];Array.isArray(c)&&(c=c.filter(h=>h!==null)),!(this.filteredFields&&!e.includes(l)||c==null||c.toString()==="")&&s.set(l,i[l].toString())}const o=s.toString();if(!(o==this.searchHash&&!this.isFirstRequest)){this.searchHash=o;for(const l of this.listDataProviders)N.delete(l);this.listDataProviders=[],clearTimeout(this.filterTimeoutId),this.filterTimeoutId=setTimeout(async()=>{const l=this.resultCount;this.props=null,this.requestId++,this.resultCount=l,await N.getInstance().isLocalStrorageReady,window.requestAnimationFrame(()=>this.next())},this.isFirstRequest?0:this.filterTimeoutMs),this.isFirstRequest=!1}},this.dataProviderExpression="",this.idKey="id",this.listDataProviders=[],this.nextHadEvent=!1}disconnectedCallback(){var r;for(const t of this.listDataProviders)N.delete(t),this.listDataProviders=[];(r=this.filterPublisher)==null||r.offInternalMutation(this.updateFilteredContent),this.props=null,this.limit=5,this.offset=0,this.resultCount=0,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.nextHadEvent=!1,this.publisher.set({}),super.disconnectedCallback()}async connectedCallback(){this.instanceId=et.instanceCounter++,this.localStorage=this.getAttribute("localStorage")||this.localStorage,this.filterTimeoutMs=parseInt(this.getAttribute("filterTimeoutMs")||"400"),this.removeAttribute("localStorage"),this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.dataProvider||(this.dataProvider=this.dataProviderExpression||"sonic-queue-"+this.instanceId+"-"+Math.random().toString(36).substring(7)),this.dataProviderExpression||(this.dataProviderExpression=pe.getAncestorAttributeValue(this.parentElement,"dataProvider")||""),super.connectedCallback(),this.publisher.set({}),this.key=this.getAttribute("key"),await N.getInstance().isLocalStrorageReady,this.templates||(this.templates=Array.from(this.querySelectorAll("template"))),this.lastRequestTime=new Date().getTime(),this.configFilter()}configFilter(){var t;const r=this.getAncestorAttributeValue("dataFilterProvider");if(!r){this.next();return}this.filterPublisher=N.getInstance().get(r),(t=this.filterPublisher)==null||t.onInternalMutation(this.updateFilteredContent)}resetDuration(){this.lastRequestTime=new Date().getTime()}next(r){var f,m,v;let t=this.offset;const i=new Date().getTime()-this.lastRequestTime;if(!this.nextHadEvent&&r&&(this.publisher.resultCount=0,this.resultCount=0),this.nextHadEvent=!!r,r){if(this.publisher.lastFetchedData=r.detail.fetchedData,r.detail.requestId<this.requestId)return;if(this.resultCount+=((f=r.detail.props)==null?void 0:f.length)||0,!r.detail.isFirstLoad||!((m=r.detail.props)!=null&&m.length)||this.dataProviderExpression.indexOf("$offset")==-1){this.publisher.resultCount=this.resultCount;return}}if(Array.isArray(this.props)){const b=this.props,P=b[b.length-1];t=parseInt(P.offset.toString())+parseInt(P.limit.toString())}else{const b=[];b.resultCount=this.resultCount,b.lastFetchedData=(r==null?void 0:r.detail.fetchedData)||{},this.props=b}i>0&&r&&!this.localStorage&&(this.limit=Math.round(this.limit/i*this.targetRequestDuration)),this.limit<1&&(this.limit=1),this.limit>15&&(this.limit=15);let e=this.dataProviderExpression.replace("$offset",t+"").replace("$limit",this.limit+"");const o=e.split("?");let n=o.shift();const l=new URLSearchParams(o.join("?")),c=(v=this.filterPublisher)==null?void 0:v.get(),h=this.filteredFields.split(" ");for(const b in c)this.filteredFields&&h.includes(b)||c[b]==null||c[b]==""||l.set(b,c[b]);this.searchHash||(this.searchHash=l.toString()),n=n+"?"+l.toString(),e=e+"_item_from_queue_"+this.instanceId,this.listDataProviders.push(e);const d=[...this.props,{id:l.toString()+"/"+this.props.length,dataProvider:e,endPoint:n,offset:t,limit:this.limit}];d.resultCount=this.resultCount,d.lastFetchedData=(r==null?void 0:r.detail.fetchedData)||{},this.props=d,this.lastRequestTime=new Date().getTime()}render(){if(!Array.isArray(this.props))return C;let r=!this.noLazyload;return this.props.length==1&&(r=!1),g`
1176
+ ${Un(this.props,(t,s)=>{var e;const i=s==0?this.templates:(e=this.templates)==null?void 0:e.filter(o=>o.getAttribute("data-value")!="no-item");return g`
1177
+ <sonic-list
1178
+ fetch
1179
+ loader="${this.loader}"
1180
+ cache=${this.cache}
1181
+ displayContents
1182
+ lazyBoundsRatio=${this.lazyBoundsRatio}
1183
+ ?lazyload=${r}
1184
+ localStorage=${this.localStorage}
1185
+ requestId=${this.requestId}
1186
+ .itemPropertyMap=${this.itemPropertyMap}
1187
+ ?debug=${this.defferedDebug===!0}
1188
+ @load=${this.next}
1189
+ key=${this.key}
1190
+ @loading=${this.resetDuration}
1191
+ dataProvider="${t.dataProvider}"
1192
+ endPoint="${t.endPoint}"
1193
+ idKey=${this.idKey}
1194
+ .templates=${i}
1195
+ >
1196
+ </sonic-list>
1197
+ `})}
1198
+ `}};et.instanceCounter=0,ut([a({type:Array})],et.prototype,"templates",2),ut([a({type:Object})],et.prototype,"itemPropertyMap",2),ut([a()],et.prototype,"cache",2),ut([a()],et.prototype,"targetRequestDuration",2),ut([a()],et.prototype,"limit",2),ut([a()],et.prototype,"lazyBoundsRatio",2),ut([a()],et.prototype,"offset",2),ut([a()],et.prototype,"resultCount",2),ut([a({type:Boolean})],et.prototype,"noLazyload",2),ut([a({type:String})],et.prototype,"loader",2),ut([a()],et.prototype,"filteredFields",2),ut([a({type:String})],et.prototype,"dataProviderExpression",2),ut([a({type:String})],et.prototype,"idKey",2),et=ut([_(Hn)],et);var qn=Object.defineProperty,Wn=Object.getOwnPropertyDescriptor,ke=(r,t,s,i)=>{for(var e=i>1?void 0:i?Wn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&qn(t,s,e),e};const Kn="sonic-submit";let Kt=class extends Y(w){constructor(){super(...arguments),this.submitResultKey=null,this.disabled=!1,this.endPoint=null,this.name="",this.value="",this.api=null}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",()=>this.submit()),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",r=>{r.key==="Enter"&&this.submit()}),super.connectedCallback(),this.api=new Se(this.getApiConfiguration())}submitNativeForm(){const r=pe.getClosestForm(this);if(!r)return;const t=this.getAncestorAttributeValue("formDataProvider"),s=N.get(t).get();for(const e in s){if(e=="isFormValid")continue;let o=r.querySelector('input[name="'+e+'"], select[name="'+e+'"], textarea[name="'+e+'"]');o||(o=document.createElement("input"),o.type="hidden",o.name=e,r.appendChild(o));let n=s[e];Array.isArray(n)&&(n=n.join(",")),o.type==="checkbox"||o.type==="radio"?n&&(o.checked=!0):o.value=n}const i=document.createElement("input");i.name=this.name,i.style.display="none",i.value=this.value,i.type="submit",r.appendChild(i),i&&i.click()}async submit(){var v;const r=N.getInstance().get(this.getAncestorAttributeValue("formDataProvider"));if(r.isFormValid=!0,r.invalidate(),!r.isFormValid.get())return;if(this.disabled=!0,r.isFormValid,this.hasAttribute("native")){this.submitNativeForm();return}const s=((v=this.getAttribute("method"))==null?void 0:v.toLocaleLowerCase())||"post",i=this.hasAttribute("sendAsFormData"),e=r.get();delete e.isFormValid;const o=this.getAncestorAttributeValue("headersDataProvider"),n=o?N.getInstance().get(o):null;let l={};n&&(l=n.get());let c=null;const h=this.getAncestorAttributeValue("dataProvider"),d=this.endPoint||h;ot.show();const f=async()=>{var p,u,y,A,O,E,V,W;if(i)c=await((p=this.api)==null?void 0:p.submitFormData(d,e,s,l));else switch(s){case"put":c=await((u=this.api)==null?void 0:u.put(d,e,l));break;case"patch":c=await((y=this.api)==null?void 0:y.patch(d,e,l));break;case"delete":c=await((A=this.api)==null?void 0:A.delete(d,e,l));break;case"get":const wt=new URLSearchParams;if(e)for(const Nr in e)wt.append(Nr,e[Nr]);const gh="?"+wt.toString();c=await((O=this.api)==null?void 0:O.get(d+gh,l));break;default:c=await((E=this.api)==null?void 0:E.post(d,e,l));break}ot.hide(),c?c._sonic_http_response_&&!c._sonic_http_response_.ok&&Object.keys(c).length===1&&(c.messages=[{content:"Network Error",status:"error"}]):c={messages:[{content:"Network Error",status:"error"}]};const b=this.getAncestorAttributeValue("clearedDataOnSuccess");b&&b.split(" ").forEach(wt=>N.get(wt).set({}));const P=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",S=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";(W=(V=this.api)==null?void 0:V.lastResult)!=null&&W.ok&&e[P]&&e[S]&&this.saveCredentials(e[P],e[S]),this.submitResultKey&&(c=X.traverse(c,this.submitResultKey.split("."),!0));const D=this.getAncestorAttributeValue("submitResultDataProvider");D&&N.get(D).set(c),this.disabled=!1},m=n!=null&&n.needsCaptchaValidation.get()?n:r.needsCaptchaValidation.get()?r:null;if(m){m.captchaMethod=s,m.captchaAction=(h==null?void 0:h.split("?")[0])??this.getAncestorAttributeValue("formDataProvider")??"submit",m.captchaToken="request_token";const b=P=>{P&&P!="request_token"&&(f(),m.captchaToken.offAssign(b))};m.captchaToken.onAssign(b)}else f()}async saveCredentials(r,t){if("PasswordCredential"in window){const s=new window.PasswordCredential({id:r,password:t});await navigator.credentials.store(s)}}render(){return g`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};Kt.styles=$`
1199
+ [data-disabled] {
1200
+ opacity: 0.3;
1201
+ pointer-events: none;
1202
+ user-select: none;
1203
+ }
1204
+ `,ke([a({type:String})],Kt.prototype,"submitResultKey",2),ke([a({type:Boolean})],Kt.prototype,"disabled",2),ke([a({type:String})],Kt.prototype,"endPoint",2),ke([a()],Kt.prototype,"name",2),ke([a()],Kt.prototype,"value",2),Kt=ke([_(Kn)],Kt);var Zn=Object.defineProperty,Yn=Object.getOwnPropertyDescriptor,ii=(r,t,s,i)=>{for(var e=i>1?void 0:i?Yn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Zn(t,s,e),e};const Gn="sonic-router";let xs=class extends Y(We(w)){constructor(){super(...arguments),this.templateValueAttribute="data-route",this._location=document.location.href.replace(document.location.origin,"")}connectedCallback(){this.noShadowDom="",rt.onChange(this),super.connectedCallback()}disconnectedCallback(){rt.offChange(this),super.disconnectedCallback()}set location(r){this._location=r,this.requestUpdate()}get location(){return this._location}render(){const r=[];for(const t of this.templatePartsList){const s=t.getAttribute(this.templateValueAttribute)||"";if(new RegExp(s).test(this.location))r.push(t);else try{new de("(/)*"+s+"*").match(this.location)&&(t.setAttribute("mode","patternMatching"),r.push(t))}catch{this.location.indexOf(s.replace(document.location.origin,""))!=-1&&r.push(t)}}if(r.length==0){this.fallBackRoute&&this.isConnected&&(document.location.href=this.fallBackRoute);const t=this.templatePartsList.find(s=>s.hasAttribute("data-fallback"));t&&r.push(t)}return g`${gs(r,(t,s)=>s+new Date().getTime(),t=>{var s;if(t.title&&(document.title=t.title),t.hasAttribute("dataProviderExpression")){let i="";const e=t.getAttribute("dataProviderExpression")||"";if(t.getAttribute("mode")=="patternMatching"){const o=new de("(/)*"+(t.getAttribute(this.templateValueAttribute)||"")+"*");i=new de(e).stringify(o.match(this.location))}else{const o=new RegExp(t.getAttribute(this.templateValueAttribute)||""),n=(this.location+"").match(o);n&&(i=((s=n.shift())==null?void 0:s.replace(o,e))||"")}return g`<div
1205
+ style="display:contents"
1206
+ dataProvider="${i}"
1207
+ >
1208
+ ${Dt(t)}
1209
+ </div>`}return Dt(t)})}`}};ii([a({type:String})],xs.prototype,"fallBackRoute",2),ii([a()],xs.prototype,"location",1),xs=ii([_(Gn)],xs);var Qn=Object.defineProperty,Jn=Object.getOwnPropertyDescriptor,Xn=(r,t,s,i)=>{for(var e=i>1?void 0:i?Jn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Qn(t,s,e),e};const ta="sonic-redirect";let br=class extends Y(w){connectedCallback(){this.noShadowDom="",this.style.display="none",super.connectedCallback(),this.udpateCallBack=()=>this.update(),this.publisher&&this.publisher.onInternalMutation(this.udpateCallBack)}disconnectedCallback(){this.publisher&&this.publisher.offInternalMutation(this.udpateCallBack),super.disconnectedCallback()}update(){if(this.hasAttribute("onAdded")){rt.changeFromComponent(this);return}if(!this.props)return;const r=this.getAttribute("onData").split("."),t=X.traverse(this.props,r);t&&!(X.isObject(t)&&t)&&rt.changeFromComponent(this)}};br=Xn([_(ta)],br);var ea=Object.defineProperty,sa=Object.getOwnPropertyDescriptor,ri=(r,t,s,i)=>{for(var e=i>1?void 0:i?sa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ea(t,s,e),e};const ia="sonic-states";let Ps=class extends Y(We(w)){constructor(){super(...arguments),this.state="",this.inverted=!1,this.statePath="",this.onAssign=r=>{this.state=r,this.requestUpdate()}}connectedCallback(){if(this.noShadowDom="",super.connectedCallback(),this.hasAttribute("data-path")&&(this.statePath=this.getAttribute("data-path")),this.statePath){this.statePublisher=this.publisher;const r=this.statePath.split(".");for(const t of r)this.statePublisher=this.statePublisher[t];this.statePublisher.onAssign(this.onAssign)}}disconnectedCallback(){var r;this.statePath&&((r=this.statePublisher)==null||r.offAssign(this.onAssign)),super.disconnectedCallback()}render(){const r=[];let t=this.state;(!Array.isArray(t)&&X.isObject(t)||t===void 0)&&(t="");for(const s of this.templatePartsList){let i=s.getAttribute(this.templateValueAttribute),e=t;if(this.inverted&&(e=i,i=t),i==""&&(i=this.inverted?".*?":"^$"),new RegExp(i).test(e))r.push(s),s.removeAttribute("mode");else{const n=new de(i);n.names.length>0&&n.match(e)&&(s.setAttribute("mode","patternMatching"),r.push(s))}}return g`${gs(r,(s,i)=>i+new Date().getTime(),s=>{var i;if(s.title&&(document.title=s.title),s.hasAttribute("dataProviderExpression")){const e=s.getAttribute("dataProviderExpression");let o="",n=t,l=s.getAttribute(this.templateValueAttribute);if(this.inverted&&(n=l,l=t),l==""&&(l=this.inverted?"*":"^$"),s.getAttribute("mode")=="patternMatching"){const c=new de(l);o=new de(e).stringify(c.match(n))}else{const c=new RegExp(l),h=(n+"").match(c);h&&(o=(i=h.shift())==null?void 0:i.replace(c,e))}return g`<div
1210
+ style="display:contents"
1211
+ dataProvider="${o}"
1212
+ >
1213
+ ${Dt(s)}
1214
+ </div>`}return Dt(s)})}`}};ri([a()],Ps.prototype,"state",2),ri([a({type:Boolean,reflect:!0})],Ps.prototype,"inverted",2),Ps=ri([_(ia)],Ps);var ra=Object.defineProperty,oa=Object.getOwnPropertyDescriptor,na=(r,t,s,i)=>{for(var e=i>1?void 0:i?oa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ra(t,s,e),e};const aa="sonic-scope";let vr=class extends w{createRenderRoot(){return this}render(){return g`<slot></slot>`}};vr=na([_(aa)],vr);var la=Object.defineProperty,ca=Object.getOwnPropertyDescriptor,yr=(r,t,s,i)=>{for(var e=i>1?void 0:i?ca(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&la(t,s,e),e};const ha="sonic-example";let oi=class extends Y(w){constructor(){super(...arguments),this.text="Example"}render(){return g`<div>${this.text}</div>`}};yr([a()],oi.prototype,"text",2),oi=yr([_(ha)],oi);const da={checkbox:{tagName:"sonic-checkbox"},date:{tagName:"sonic-input",attributes:{type:"date"}},fieldset:{tagName:"sonic-fieldset",nodes:[{libraryKey:"formLayout"}],contentElementSelector:"sonic-form-layout"},managed_file:{tagName:"sonic-input",attributes:{variant:"ghost",type:"file"}},password:{tagName:"sonic-input",attributes:{type:"password"}},radio:{tagName:"sonic-radio"},select:{tagName:"sonic-select"},textarea:{tagName:"sonic-textarea"},textfield:{tagName:"sonic-input",attributes:{type:"text"}},hidden:{tagName:"sonic-input",attributes:{type:"hidden"}},button:{tagName:"sonic-button"},form:{tagName:"sonic-submit",attributes:{onEnterKey:!0}},submit:{tagName:"sonic-submit",attributes:{onClick:!0},contentElementSelector:"sonic-button",nodes:[{libraryKey:"button",attributes:{type:"success"},nodes:[{tagName:"sonic-icon",attributes:{name:"check",slot:"prefix"}}]}]},email:{tagName:"sonic-input",attributes:{type:"email"}},formItemContainer:{tagName:"div",attributes:{class:"form-item-container"}},formLayout:{tagName:"sonic-form-layout"},formActions:{tagName:"sonic-form-actions"},passwordHelper:{tagName:"sonic-password-helper"},sameValueHelper:{tagName:"sonic-same-value-helper"},divider:{tagName:"sonic-divider"}};class pa{async transform(t,s){if(this.sduiDescriptor=t,this.sduiDescriptor.library)for(const i in s.library)this.sduiDescriptor.library[i]=s.library[i];for(const i of s.transforms)this.transformAction(i)}transformAction(t){const s=this.getNodesMatchingPatterns(t.patterns,this.sduiDescriptor);this[t.action](t,s)}getNodesMatchingPatterns(t,s){if(!t)return[];if(!s)return[];const i=s.nodes;if(!i)return[];let e=[],o=0;for(const n of t)for(const l of i)this.nodeMatchesPattern(n,l)&&e.push({parent:s,child:l,index:o}),e=e.concat(this.getNodesMatchingPatterns([n],l)),o++;return e}stringMatchesExpression(t,s){return!s||t&&t.match(s)}nodeMatchesPattern(t,s){const i=t,e=s,o=["libraryKey","innerHTML","prefix","suffix","markup"];for(const c of o)if(!this.stringMatchesExpression(e[c],i[c]))return!1;const n=t.attributes,l=s.attributes;if(n&&!l)return!1;if(n){for(const c in n)if(!l||!this.stringMatchesExpression(l[c],n[c]))return!1}return!0}unwrap(t,s){var i,e;for(const o of s)(i=o.parent.nodes)==null||i.splice(o.parent.nodes.indexOf(o.child),1),o.child.nodes&&((e=o.parent.nodes)==null||e.splice(o.parent.nodes.indexOf(o.child),0,...o.child.nodes))}wrap(t,s){var n,l,c,h,d,f;const i={...t.ui};i.nodes||(i.nodes=[]);let e=0;for(const m of s)(n=i.nodes)==null||n.push(m.child),e>0&&((l=m.parent.nodes)==null||l.splice(m.parent.nodes.indexOf(m.child),1)),e++;const o=(h=(c=s[0])==null?void 0:c.parent.nodes)==null?void 0:h.indexOf(s[0].child);o&&((d=s[0].parent.nodes)==null||d.splice(o,1),(f=s[0].parent.nodes)==null||f.splice(o,0,i))}move(t,s){var i,e;for(const o of s){(i=o.parent.nodes)==null||i.splice(o.parent.nodes.indexOf(o.child),1);let n=[];t.after&&(n=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor)),t.before&&(n=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor));const l=n[0];l&&((e=l.parent.nodes)==null||e.splice(l.parent.nodes.indexOf(l.child)+(t.after?1:0),0,o.child))}}remap(t,s){var i,e,o;for(const n of s){const l={...t.ui};l.attributes||(l.attributes={});const c=n.child.attributes;if(c)for(const b in c)Object.prototype.hasOwnProperty.call(l.attributes,"key")||(l.attributes[b]=c[b]);const h=["libraryKey","innerHTML","prefix","suffix","markup"],d=n.child,f=l;for(const b of h)!Object.prototype.hasOwnProperty.call(l,b)&&d[b]&&(f[b]=d[b]);l.nodes||(l.nodes=[]);const m=n.child.nodes;if(m)for(const b of m)l.nodes.push(b);const v=((i=n.parent.nodes)==null?void 0:i.indexOf(n.child))||-1;v!=-1&&((e=n.parent.nodes)==null||e.splice(v,1),(o=n.parent.nodes)==null||o.splice(v,0,l))}}delete(t,s){var i;for(const e of s)(i=e.parent.nodes)==null||i.splice(e.parent.nodes.indexOf(e.child),1)}insert(t,s){var o;const i=t.after?"after":t.before?"before":"in";s=[],t.after?s=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor):t.before?s=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor):t.in&&(s=this.getNodesMatchingPatterns([t.in],this.sduiDescriptor));const e=s[0];e&&(i=="in"?(e.child.nodes||(e.child.nodes=[]),e.child.nodes.push({...t.ui})):(o=e.parent.nodes)==null||o.splice(e.parent.nodes.indexOf(e.child)+(i=="after"?1:0),0,{...t.ui}))}}var ua=Object.defineProperty,fa=Object.getOwnPropertyDescriptor,ni=(r,t,s,i)=>{for(var e=i>1?void 0:i?fa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ua(t,s,e),e};const ga="sonic-sdui";let $s=class extends dr(qt(w)){constructor(){super(...arguments),this.sduiDescriptor={}}connectedCallback(){this.noShadowDom="",this.displayContents=!0,this.isFetchEnabled=this.hasAttribute("fetch"),super.connectedCallback()}willUpdate(r){this.props==null&&(this.sduiDescriptor={});{const t=this.sduiKey?this.props[this.sduiKey]:this.props;if(this.sduiDescriptor==t)return;this.sduiDescriptor=t,this.updateContents()}super.willUpdate(r)}async updateContents(){if(!this.sduiDescriptor)return;const r={};Object.assign(r,da,this.sduiDescriptor.library),this.sduiDescriptor.library=r,this.loadAssets(),await this.loadLibrary(),await this.transformSDUIDescriptor(),this.parseRootNodes()}removeChildren(){for(;[...this.children].filter(r=>r.nodeName!="SLOT").length>0;)this.removeChild(this.children[0])}loadAssets(){if(this.sduiDescriptor){if(this.sduiDescriptor.js)for(const r of this.sduiDescriptor.js)pe.loadJS(r);if(this.sduiDescriptor.css)for(const r of this.sduiDescriptor.css)pe.loadCSS(r)}}async transformSDUIDescriptor(){if(!this.hasAttribute("transformation"))return;const t=await(await fetch(this.getAttribute("transformation"))).json();await new pa().transform(this.sduiDescriptor,t)}async loadLibrary(){if(!this.hasAttribute("library"))return;const t=await(await fetch(this.getAttribute("library"))).json();this.sduiDescriptor.library=t}parseRootNodes(){if(this.removeChildren(),!this.sduiDescriptor)return;let r=this.sduiDescriptor.nodes;r||(r=[]);const t={tagName:"sonic-toast-message-subscriber",attributes:{}};this.messagesKey&&(t.attributes={subDataProvider:this.messagesKey}),r.push(t),r.forEach(s=>this.appendChild(this.parseChild(s)))}parseChild(r){const t=r.tagName||"div";let{element:s,contentElement:i}=this.handleLibrary(r,t);return this.handleAttributes(r,s),s=this.handleMarkup(r,s),i||(i=s),this.handleChildNodes(r,i,s),this.handleInnerHTML(r,i),r.prefix||r.suffix?this.handlePrefixSuffix(r,s):s}handlePrefixSuffix(r,t){const s=document.createElement("div");return s.innerHTML=(r.prefix||"")+t.outerHTML+(r.suffix||""),s.style.display="contents",s}handleChildNodes(r,t,s){if(r.nodes){const i=r.nodes;for(const e of i){const o=this.parseChild(e);let n=t;e.parentElementSelector&&(n=s.querySelector(e.parentElementSelector)||t),n.shadowRoot?n.shadowRoot.appendChild(o):n.tagName.toLocaleLowerCase()=="template"?n.content.appendChild(o):n.appendChild(o)}}}handleLibrary(r,t){let s,i;if(r.libraryKey&&this.sduiDescriptor.library){s=this.parseChild(this.sduiDescriptor.library[r.libraryKey]||{tagName:"div"});const e=(this.sduiDescriptor.library[r.libraryKey]||{}).contentElementSelector;e&&(i=s.querySelector(e))}else s=document.createElement(t);return{element:s,contentElement:i}}handleAttributes(r,t){const s=r.attributes;for(const i in s){const e=s[i],o=Ke.isObject(e)?JSON.stringify(e):e;t.setAttribute(i,o)}}handleMarkup(r,t){return r.markup&&(t=document.createElement("div"),t.style.display="contents",t.innerHTML=r.markup),t}handleInnerHTML(r,t){var s;if(r.innerHTML)if(r.innerHTML.indexOf("wording_")!=-1){const i=this.getAncestorAttributeValue("wordingProvider");(s=this.api)==null||s.post(i,{labels:[r.innerHTML.substring(8)]}).then(e=>{t&&(t.innerHTML+=e)})}else t&&(t.innerHTML+=r.innerHTML)}};ni([a()],$s.prototype,"sduiKey",2),ni([a()],$s.prototype,"messagesKey",2),$s=ni([_(ga)],$s);var ma=Object.defineProperty,ba=Object.getOwnPropertyDescriptor,wr=(r,t,s,i)=>{for(var e=i>1?void 0:i?ba(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ma(t,s,e),e};let Cs=class extends qt(w){constructor(){super(...arguments),this._composition={},this.listeners=[]}get composition(){return this._composition}set composition(r){this._composition=r,this.updateComposition()}connectedCallback(){super.connectedCallback(),this.updateComposition()}disconnectedCallback(){this.removePublisherListeners(),super.disconnectedCallback()}updateComposition(){this.removePublisherListeners(),this.publisher&&(this.publisher.set({}),this.parseComposition(this.composition,this.publisher))}removePublisherListeners(){const r=this.listeners;this.listeners=[],r.forEach(t=>{this.publisher.offAssign(t.subscriber)})}parseComposition(r,t){if(r)for(const s in r){const i=r[s];if(typeof i=="string"){const e=i.split("."),o=e.shift();if(!o)continue;let n=tt.get(o);n=Ke.traverse(n,e);const l={publisher:n,subscriber:c=>{t[s]=c}};this.listeners.push(l),n.onAssign(l.subscriber),t._proxies_.set(s,n)}else{this.publisher[s]={};const e=new Ns({},t);t._proxies_.set(s,e);const o={publisher:e,subscriber:n=>{t[s]=n}};this.listeners.push(o),e.onAssign(o.subscriber),this.parseComposition(i,e)}}}render(){return g`<slot></slot>`}};Cs.styles=[$`
1215
+ :host {
1216
+ display: contents;
1217
+ }
1218
+ `],wr([a({type:Object})],Cs.prototype,"composition",1),Cs=wr([_("sonic-mix")],Cs);var va=Object.defineProperty,ya=Object.getOwnPropertyDescriptor,wa=(r,t,s,i)=>{for(var e=i>1?void 0:i?ya(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&va(t,s,e),e};const _a="sonic-value";let _r=class extends qt(w){connectedCallback(){this.setAttribute("subDataProvider",this.getAttribute("key")),super.connectedCallback()}render(){return typeof this.props=="object"||this.props===void 0?g`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`:g`${I(this.props.toString())}<slot name="prefix"></slot><slot></slot
1219
+ ><slot name="suffix"></slot>`}};_r=wa([_(_a)],_r);var xa=Object.defineProperty,Pa=Object.getOwnPropertyDescriptor,Je=(r,t,s,i)=>{for(var e=i>1?void 0:i?Pa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&xa(t,s,e),e};const $a="sonic-badge";let me=class extends w{constructor(){super(...arguments),this.type="default",this.variant="default",this.ellipsis=!1}render(){return g`
1220
+ <slot name="prefix"></slot>
1221
+ <slot></slot>
1222
+ <slot name="suffix"></slot>
1223
+ `}};me.styles=[St,$`
1224
+ :host {
1225
+ --sc-badge-gap: 0.3em;
1226
+ --sc-badge-py: 0.35em;
1227
+ --sc-badge-px: 0.67em;
1228
+ --sc-fs: 1rem;
1229
+
1230
+ --sc-badge-color: var(--sc-base-content, #1f2937);
1231
+ --sc-badge-bg: var(--sc-base-100, #e5e7eb);
1232
+
1233
+ /*--sc-badge-border-with: var(--sc-form-border-width, 0.1rem);*/
1234
+ --sc-badge-border-with: 1px;
1235
+ --sc-badge-border-color: transparent;
1236
+ --sc-badge-border: var(--sc-badge-border-with) solid var(--sc-badge-border-color);
1237
+
1238
+ --sc-badge-rounded: 0.85em;
1239
+ --sc-badge-fw: var(--sc-font-weight-base);
1240
+
1241
+ display: inline-flex;
1242
+ align-items: center;
1243
+ box-sizing: border-box;
1244
+ line-height: var(--sc-lh);
1245
+ border-radius: var(--sc-badge-rounded);
1246
+
1247
+ background: var(--sc-badge-bg);
1248
+ color: var(--sc-badge-color);
1249
+
1250
+ font-family: var(--sc-badge-ff, var(--sc-font-family-base, inherit));
1251
+ font-weight: var(--sc-badge-fw);
1252
+ line-height: 1;
1253
+
1254
+ padding-top: var(--sc-badge-py);
1255
+ padding-bottom: var(--sc-badge-py);
1256
+ padding-left: var(--sc-badge-px);
1257
+ padding-right: var(--sc-badge-px);
1258
+ min-height: calc(var(--sc-badge-px) * 2);
1259
+ border: var(--sc-badge-border);
1260
+ -webkit-print-color-adjust: exact;
1261
+ }
1262
+
1263
+ /*TYPES*/
1264
+ :host([type="primary"]) {
1265
+ --sc-badge-color: var(--sc-primary-content);
1266
+ --sc-badge-bg: var(--sc-primary);
1267
+ }
1268
+ :host([type="warning"]) {
1269
+ --sc-badge-color: var(--sc-warning-content);
1270
+ --sc-badge-bg: var(--sc-warning);
1271
+ }
1272
+ :host([type="danger"]) {
1273
+ --sc-badge-color: var(--sc-danger-content);
1274
+ --sc-badge-bg: var(--sc-danger);
1275
+ }
1276
+ :host([type="info"]) {
1277
+ --sc-badge-color: var(--sc-info-content);
1278
+ --sc-badge-bg: var(--sc-info);
1279
+ }
1280
+ :host([type="success"]) {
1281
+ --sc-badge-color: var(--sc-success-content);
1282
+ --sc-badge-bg: var(--sc-success);
1283
+ }
1284
+ :host([type="neutral"]) {
1285
+ --sc-badge-color: var(--sc-base);
1286
+ --sc-badge-bg: var(--sc-base-content);
1287
+ }
1288
+
1289
+ /*SIZE*/
1290
+ :host {
1291
+ font-size: var(--sc-fs);
1292
+ gap: var(--sc-badge-gap);
1293
+ }
1294
+
1295
+ :host([size="2xs"]) {
1296
+ --sc-badge-gap: 0.35em;
1297
+ }
1298
+ :host([size="xs"]) {
1299
+ --sc-badge-gap: 0.35em;
1300
+ }
1301
+
1302
+ :host([size="sm"]) {
1303
+ --sc-badge-gap: 0.35em;
1304
+ }
1305
+
1306
+ :host([size="lg"]) {
1307
+ --sc-lh: 1.2;
1308
+ --sc-badge-gap: 0.5em;
1309
+ }
1310
+
1311
+ :host([size="xl"]) {
1312
+ --sc-lh: 1.2;
1313
+ --sc-badge-gap: 0.5em;
1314
+ }
1315
+
1316
+ :host([contrast]) {
1317
+ --sc-badge-color: var(--sc-contrast-content);
1318
+ --sc-badge-bg: var(--sc-contrast);
1319
+ }
1320
+
1321
+ /*OUTLINE*/
1322
+ :host([variant="outline"][type]) {
1323
+ border-width: var(--sc-badge-border-with) !important;
1324
+ border-color: var(--sc-badge-bg);
1325
+ color: var(--sc-badge-bg);
1326
+ background: transparent;
1327
+ }
1328
+
1329
+ :host([variant="outline"][type="default"]) {
1330
+ border-color: var(--sc-base-400);
1331
+ color: var(--sc-base-500);
1332
+ background: transparent;
1333
+ }
1334
+
1335
+ /*GHOST*/
1336
+ :host([variant="ghost"][type]) {
1337
+ color: var(--sc-badge-bg);
1338
+ background: transparent;
1339
+ padding: 0;
1340
+ }
1341
+ @media (forced-colors: active) {
1342
+ :host([variant="ghost"][type]) {
1343
+ padding: var(--sc-badge-py) var(--sc-badge-px);
1344
+ }
1345
+ }
1346
+
1347
+ :host([variant="ghost"][type="default"]) {
1348
+ color: var(--sc-badge-color);
1349
+ background: transparent;
1350
+ }
1351
+
1352
+ :host([ellipsis]) {
1353
+ flex-wrap: nowrap;
1354
+ white-space: nowrap;
1355
+ max-width: 100%;
1356
+ }
1357
+ :host([ellipsis]) slot {
1358
+ overflow: hidden;
1359
+ display: block;
1360
+ text-overflow: ellipsis;
1361
+ white-space: nowrap;
1362
+ max-width: 100%;
1363
+ }
1364
+
1365
+ slot[name="suffix"],
1366
+ slot[name="prefix"] {
1367
+ flex-shrink: 0;
1368
+ }
1369
+ `],Je([a({type:String,reflect:!0})],me.prototype,"type",2),Je([a({type:String,reflect:!0})],me.prototype,"variant",2),Je([a({type:String,reflect:!0})],me.prototype,"size",2),Je([a({type:Boolean,reflect:!0})],me.prototype,"ellipsis",2),me=Je([_($a)],me);class Ca{static fixBlankLink(t){const i=typeof require>"u"||typeof process!="object"?null:require("electron");t.target=="_blank"&&t.addEventListener("click",()=>{i==null||i.shell.openExternal(t.href)})}}var Aa=Object.defineProperty,Sa=Object.getOwnPropertyDescriptor,Le=(r,t,s,i)=>{for(var e=i>1?void 0:i?Sa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Aa(t,s,e),e};const Oa="sonic-link";let Zt=class extends w{constructor(){super(...arguments),this.href="",this._location="",this.ariaLabel=null,this.autoActive="partial",this._target=null,this.pushState=null}get location(){return this._location}set location(r){this._location=r,rt.updateComponentActiveState(this)}connectedCallback(){this.href&&this.href.indexOf("http")!=0&&(rt.onChange(this),this.location=document.location.href.replace(document.location.origin,"")),this.addEventListener("keypress",r=>{var t,s;r.key==="Enter"&&((s=(t=this.shadowRoot)==null?void 0:t.querySelector("a"))==null||s.click())}),this.setFocusable(),super.connectedCallback()}setFocusable(){this.href?this.setAttribute("tabIndex","0"):this.removeAttribute("tabIndex")}disconnectedCallback(){rt.offChange(this),super.disconnectedCallback()}set target(r){this._target=r,Ca.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(r){r.preventDefault(),rt.changeFromComponent(this)}updated(r){r.has("href")&&this.setFocusable()}render(){return this.href?g`
1370
+ <a
1371
+ href="${this.href}"
1372
+ aria-label=${this.ariaLabel||C}
1373
+ target=${x(this.target)}
1374
+ @click=${this.pushState?this.handlePushState:null}
1375
+ >
1376
+ <slot></slot>
1377
+ </a>
1378
+ `:g`<slot></slot>`}};Zt.styles=[$`
1379
+ a {
1380
+ color: inherit;
1381
+ text-decoration: none;
1382
+ display: contents;
1383
+ }
1384
+ `],Le([a({type:String})],Zt.prototype,"href",2),Le([a({type:String,attribute:"data-aria-label"})],Zt.prototype,"ariaLabel",2),Le([a({type:String})],Zt.prototype,"autoActive",2),Le([a({type:String})],Zt.prototype,"target",1),Le([a({type:Boolean})],Zt.prototype,"pushState",2),Zt=Le([_(Oa)],Zt);var Da=Object.defineProperty,ka=Object.getOwnPropertyDescriptor,Ee=(r,t,s,i)=>{for(var e=i>1?void 0:i?ka(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Da(t,s,e),e};const La="sonic-progress";let Yt=class extends w{constructor(){super(...arguments),this.max=100,this.invert=!1,this.type="default"}render(){return g`
1385
+ <progress value=${x(this.value)} max=${this.max}></progress>
1386
+ <div class="slot-container">
1387
+ <slot></slot>
1388
+ <slot name="remaining"></slot>
1389
+ </div>
1390
+ `}};Yt.styles=[St,$`
1391
+ :host {
1392
+ --sc-progress-bg: var(--sc-input-bg, var(--sc-base-100, #f5f5f5));
1393
+ --sc-progress-color: var(--sc-base-content, #1f2937);
1394
+ --sc-progress-height: 0.6em;
1395
+ --sc-progress-fs: var(--sc-fs, 1rem);
1396
+ --sc-progress-fw: 500;
1397
+ --sc-progress-rounded: var(--sc-rounded-lg);
1398
+ display: block;
1399
+ line-height: 1.2;
1400
+ font-weight: var(--sc-progress-fw);
1401
+ font-size: var(--sc-progress-fs);
1402
+ }
1403
+
1404
+ progress {
1405
+ position: relative;
1406
+ width: 100%;
1407
+ -webkit-appearance: none;
1408
+ appearance: none;
1409
+ overflow: hidden;
1410
+ border: none;
1411
+ height: var(--sc-progress-height);
1412
+ border-radius: var(--sc-progress-rounded);
1413
+ background-color: var(--sc-progress-bg);
1414
+ color: var(--sc-progress-color);
1415
+ }
1416
+ progress::-moz-progress-bar {
1417
+ background-color: var(--sc-progress-color);
1418
+ border-radius: var(--sc-progress-rounded);
1419
+ }
1420
+
1421
+ progress:not([value])::-moz-progress-bar {
1422
+ background-color: var(--sc-progress-bg);
1423
+ }
1424
+
1425
+ progress::-webkit-progress-bar {
1426
+ background-color: var(--sc-progress-bg);
1427
+ }
1428
+ progress::-webkit-progress-value {
1429
+ background-color: var(--sc-progress-color);
1430
+ border-radius: var(--sc-progress-rounded);
1431
+ }
1432
+
1433
+ /* Indeterminate */
1434
+ progress:indeterminate:after {
1435
+ background-color: var(--sc-progress-color);
1436
+ content: "";
1437
+ position: absolute;
1438
+ top: 0;
1439
+ bottom: 0;
1440
+ left: -40%;
1441
+ width: 33.333333%;
1442
+ border-radius: var(--sc-progress-rounded);
1443
+ animation: progress-loading 3s infinite ease-in-out;
1444
+ }
1445
+
1446
+ @keyframes progress-loading {
1447
+ 50% {
1448
+ left: 107%;
1449
+ }
1450
+ }
1451
+
1452
+ /* COLOR TYPES */
1453
+ :host([type="warning"]) {
1454
+ --sc-progress-color: var(--sc-warning);
1455
+ }
1456
+ :host([type="danger"]) {
1457
+ --sc-progress-color: var(--sc-danger);
1458
+ }
1459
+ :host([type="info"]) {
1460
+ --sc-progress-color: var(--sc-info);
1461
+ }
1462
+ :host([type="success"]) {
1463
+ --sc-progress-color: var(--sc-success);
1464
+ }
1465
+
1466
+ :host([type="invert"]) {
1467
+ --sc-progress-bg: rgba(190, 190, 190, 0.125);
1468
+ --sc-progress-color: var(--sc-base);
1469
+ }
1470
+
1471
+ :host([invert]) {
1472
+ --sc-progress-bg: rgba(190, 190, 190, 0.125);
1473
+ }
1474
+
1475
+ :host([type="default"][invert]) {
1476
+ --sc-progress-color: var(--sc-base);
1477
+ }
1478
+
1479
+ slot[name="remaining"] {
1480
+ font-weight: var(--sc-font-weight-base);
1481
+ font-size: 0.85em;
1482
+ margin-top: 0.5em;
1483
+ }
1484
+ slot[name="remaining"]::slotted(*) {
1485
+ margin-left: auto;
1486
+ }
1487
+
1488
+ slot:not([name]) {
1489
+ color: var(--sc-progress-color);
1490
+ }
1491
+
1492
+ .slot-container {
1493
+ display: flex;
1494
+ justify-content: space-between;
1495
+ gap: 0.5em;
1496
+ margin-top: 0.15em;
1497
+ }
1498
+ `],Ee([a({type:Number})],Yt.prototype,"value",2),Ee([a({type:Number})],Yt.prototype,"max",2),Ee([a({type:Boolean})],Yt.prototype,"invert",2),Ee([a({type:String,reflect:!0})],Yt.prototype,"type",2),Ee([a({type:String,reflect:!0})],Yt.prototype,"size",2),Yt=Ee([_(La)],Yt);const Ea=$`
1499
+ .password-toggle {
1500
+ color: var(--sc-input-c);
1501
+ font-size: var(--sc-input-fs);
1502
+ cursor: pointer;
1503
+ margin-right: calc(-0.5 * var(--sc-input-px));
1504
+ }
1505
+
1506
+ :host([inlineContent]) .has-suffix .password-toggle {
1507
+ margin-right: 0;
1508
+ }
1509
+ `,As=$`
1510
+ :host {
1511
+ --sc-label-fs: var(--sc-fs, 1rem);
1512
+ --sc-label-fw: var(--sc-label-font-weight);
1513
+ }
1514
+ label {
1515
+ font-size: var(--sc-label-fs);
1516
+ font-weight: var(--sc-label-fw);
1517
+ line-height: 1.2;
1518
+ }
1519
+ .form-label {
1520
+ margin-bottom: 0.22em;
1521
+ display: block;
1522
+ }
1523
+ `,Ss=$`
1524
+ .form-description {
1525
+ color: var(--sc-base-400);
1526
+ font-size: 0.85em;
1527
+ margin-top: 0.2em;
1528
+ display: block;
1529
+ }
1530
+ `,ai=$`
1531
+ * {
1532
+ box-sizing: border-box;
1533
+ }
1534
+
1535
+ :host {
1536
+ --sc-input-height: var(--sc-form-height);
1537
+ --sc-input-c: var(--sc-input-color, var(--sc-base-content));
1538
+ --sc-input-b-width: var(--sc-form-border-width);
1539
+ --sc-input-b-color: var(--sc-input-border-color);
1540
+
1541
+ --sc-item-rounded-tr: var(--sc-input-rounded);
1542
+ --sc-item-rounded-tl: var(--sc-input-rounded);
1543
+ --sc-item-rounded-bl: var(--sc-input-rounded);
1544
+ --sc-item-rounded-br: var(--sc-input-rounded);
1545
+
1546
+ --sc-input-fs: var(--sc-fs, 1rem);
1547
+ --sc-input-ff: inherit;
1548
+ --sc-input-py: 0.55em;
1549
+ --sc-input-px: clamp(0.3em, 8%, 1.1em);
1550
+
1551
+ --sc-input-background: var(--sc-input-bg);
1552
+ --sc-input-addon-c: var(--sc-input-addon-color, var(--sc-base));
1553
+ --sc-input-addon-bg: var(--sc-input-c);
1554
+ }
1555
+
1556
+ .form-element {
1557
+ display: block;
1558
+ flex-grow: 1;
1559
+ width: 100%;
1560
+
1561
+ line-height: 1.1;
1562
+ color: var(--sc-input-c);
1563
+ border-radius: var(--sc-item-rounded-tl) var(--sc-item-rounded-tr)
1564
+ var(--sc-item-rounded-br) var(--sc-item-rounded-bl);
1565
+
1566
+ font-family: var(--sc-input-ff);
1567
+ background-color: var(--sc-input-background);
1568
+ border: var(--sc-input-b-width) solid
1569
+ var(--sc-input-b-color, var(--sc-base-300, #aaa));
1570
+ width: 100%;
1571
+ font-size: var(--sc-input-fs);
1572
+
1573
+ padding-top: var(--sc-input-py);
1574
+ padding-bottom: var(--sc-input-py);
1575
+ padding-left: var(--sc-input-px);
1576
+ padding-right: var(--sc-input-px);
1577
+
1578
+ transition: border-color 0.15s ease-in-out, color 0.15s ease-in-out,
1579
+ box-shadow 0.15s ease-in-out;
1580
+ min-height: var(--sc-input-height);
1581
+ }
1582
+
1583
+ .form-control {
1584
+ display: flex;
1585
+ width: 100%;
1586
+ }
1587
+
1588
+ /*Suffix*/
1589
+ :host(:not([inlineContent])) .has-suffix slot[name="suffix"],
1590
+ :host(:not([inlineContent])) .has-prefix slot[name="prefix"] {
1591
+ min-width: var(--sc-input-height);
1592
+ box-sizing: border-box;
1593
+ display: flex;
1594
+ align-items: center;
1595
+ justify-content: center;
1596
+ line-height: 1.1;
1597
+ flex-shrink: 0;
1598
+ border: var(--sc-input-b-width) solid transparent;
1599
+ padding-left: clamp(0.25em, 3%, calc(0.33 * var(--sc-input-px)));
1600
+ padding-right: clamp(0.25em, 3%, calc(0.33 * var(--sc-input-px)));
1601
+ }
1602
+
1603
+ :host(:not([inlineContent])) slot[name="prefix"] {
1604
+ border-radius: var(--sc-item-rounded-tl) 0 0 var(--sc-item-rounded-bl);
1605
+ background-color: var(--sc-input-addon-bg);
1606
+ color: var(--sc-input-addon-c);
1607
+ /*margin-right: calc(-1 * var(--sc-input-b-width));
1608
+ border: none;*/
1609
+ }
1610
+
1611
+ :host(:not([inlineContent])) slot[name="suffix"] {
1612
+ border-radius: 0 var(--sc-item-rounded-tr) var(--sc-item-rounded-br) 0;
1613
+ background-color: var(--sc-input-addon-bg);
1614
+ color: var(--sc-input-addon-c);
1615
+ /*margin-left: calc(-1 * var(--sc-input-b-width));
1616
+ border: none;*/
1617
+ }
1618
+
1619
+ :host(:not([inlineContent])[disabled]) .has-suffix slot[name="suffix"],
1620
+ :host(:not([inlineContent])[disabled]) .has-prefix slot[name="prefix"] {
1621
+ opacity: 0.43;
1622
+ }
1623
+
1624
+ :host(:not([inlineContent])) .has-prefix .form-element {
1625
+ border-top-left-radius: 0;
1626
+ border-bottom-left-radius: 0;
1627
+ }
1628
+
1629
+ :host(:not([inlineContent])) .has-suffix .form-element {
1630
+ border-top-right-radius: 0;
1631
+ border-bottom-right-radius: 0;
1632
+ }
1633
+
1634
+ slot[name="suffix"]::slotted(sonic-icon),
1635
+ slot[name="prefix"]::slotted(sonic-icon) {
1636
+ font-size: 1.2em;
1637
+ }
1638
+
1639
+ /*InlineCONTENT */
1640
+
1641
+ .form-element > slot,
1642
+ .form-element .form-element {
1643
+ all: unset;
1644
+ }
1645
+
1646
+ :host([inlineContent]) .form-element {
1647
+ display: flex;
1648
+ align-items: center;
1649
+ gap: 0.35em;
1650
+ min-height: var(--sc-form-height);
1651
+ }
1652
+
1653
+ :host([inlineContent]) .form-element .form-element {
1654
+ appearance: none;
1655
+ background: transparent;
1656
+ border: none;
1657
+ padding: 0;
1658
+ display: block;
1659
+ width: 50%;
1660
+ min-width: 0;
1661
+ flex: 1 1 auto;
1662
+ height: auto;
1663
+ min-height: auto;
1664
+ border-radius: 0;
1665
+ }
1666
+ :host([inlineContent]) slot[name="prefix"]::slotted(*),
1667
+ :host([inlineContent]) slot[name="suffix"]::slotted(*) {
1668
+ display: block;
1669
+ flex: 0 0 auto;
1670
+ max-width: 100%;
1671
+ max-width: 100%;
1672
+ white-space: nowrap;
1673
+ }
1674
+
1675
+ :host([inlineContent]) .has-suffix slot[name="suffix"] {
1676
+ margin-right: calc(-0.5 * var(--sc-input-px));
1677
+ }
1678
+ :host([inlineContent]) .has-prefix slot[name="prefix"] {
1679
+ margin-left: calc(-0.5 * var(--sc-input-px));
1680
+ }
1681
+
1682
+ :host([inlineContent]) slot[name="suffix"]::slotted(*) {
1683
+ margin-left: auto;
1684
+ }
1685
+
1686
+ :host([inlineContent]) .no-suffix slot[name="suffix"],
1687
+ :host([inlineContent]) .no-prefix slot[name="prefix"] {
1688
+ display: none;
1689
+ }
1690
+
1691
+ /* :host([inlineContent]) .input {
1692
+
1693
+ }*/
1694
+ /*Disabled */
1695
+ :host([disabled]) .form-control {
1696
+ cursor: not-allowed;
1697
+ }
1698
+
1699
+ :host([variant="ghost"]) .form-element {
1700
+ --sc-input-bg: transparent;
1701
+ }
1702
+
1703
+ /*Disbaled*/
1704
+ :host([disabled]) .form-element {
1705
+ pointer-events: none;
1706
+ opacity: 0.43;
1707
+ /* border-color: transparent;*/
1708
+ }
1709
+ :host([disabled]) .select-chevron {
1710
+ display: none;
1711
+ /* border-color: transparent;*/
1712
+ }
1713
+
1714
+ /*PLACEHOLDER*/
1715
+ ::placeholder {
1716
+ color: inherit;
1717
+ opacity: 0.45;
1718
+ }
1719
+
1720
+ :host([placehoderAsLabel]) ::placeholder {
1721
+ opacity: 1;
1722
+ }
1723
+
1724
+ :focus::placeholder {
1725
+ opacity: 0 !important;
1726
+ }
1727
+
1728
+ /*HOVER*/
1729
+ :host(:not([disabled])) .form-element:hover,
1730
+ .form-element:focus-visible,
1731
+ .form-element:focus {
1732
+ filter: brightness(0.97);
1733
+ outline: none;
1734
+ }
1735
+
1736
+ .form-label {
1737
+ margin-bottom: 0.22em;
1738
+ display: block;
1739
+ }
1740
+
1741
+ .form-description {
1742
+ color: var(--sc-base-400);
1743
+ font-size: 0.85em;
1744
+ margin-top: 0.2em;
1745
+ display: block;
1746
+ }
1747
+
1748
+ /*Utilitaires*/
1749
+ .hidden {
1750
+ display: none;
1751
+ }
1752
+ .contents {
1753
+ display: contents;
1754
+ }
1755
+
1756
+ /*ERROR*/
1757
+ :host([error]) {
1758
+ --sc-input-b-color: var(--sc-danger);
1759
+ }
1760
+
1761
+ :host input:visited {
1762
+ display: none;
1763
+ }
1764
+
1765
+ :host([touched][required]) :not(:focus):invalid {
1766
+ --sc-input-b-color: var(--sc-danger);
1767
+ --sc-input-c: var(--sc-danger);
1768
+ }
1769
+
1770
+ :host([touched][required]) :not(:focus):invalid + .select-chevron {
1771
+ --sc-input-c: var(--sc-danger);
1772
+ }
1773
+
1774
+ /*VALID*/
1775
+ :host([touched][required]) :not([value=""]):not(:focus):valid {
1776
+ --sc-input-b-color: var(--sc-success);
1777
+ --sc-input-c: var(--sc-success);
1778
+ }
1779
+
1780
+ :host([touched][required]) :not(:focus):valid + .select-chevron {
1781
+ --sc-input-c: var(--sc-success);
1782
+ }
1783
+
1784
+ /*Input COLOR*/
1785
+ :host([type="color"]) .form-element {
1786
+ padding: 0;
1787
+ border: 0;
1788
+ min-width: var(--sc-input-height);
1789
+ }
1790
+ input[type="color"]::-webkit-color-swatch-wrapper {
1791
+ padding: 0;
1792
+ }
1793
+ input[type="color"]::-webkit-color-swatch {
1794
+ border: none;
1795
+ border-radius: var(--sc-item-rounded-tl) var(--sc-item-rounded-tr)
1796
+ var(--sc-item-rounded-br) var(--sc-item-rounded-bl);
1797
+ }
1798
+
1799
+ /*Input Image*/
1800
+ :host([type="image"]) .form-element {
1801
+ padding: 0;
1802
+ border: none;
1803
+ }
1804
+
1805
+ /*Input reset & image*/
1806
+ input[type="reset"],
1807
+ input[type="submit"] {
1808
+ cursor: pointer;
1809
+ }
1810
+
1811
+ /*Input search*/
1812
+ :host([type="search"]) {
1813
+ appearance: none !important;
1814
+ }
1815
+
1816
+ input[type="search"]::-webkit-search-cancel-button {
1817
+ appearance: none;
1818
+ cursor: pointer;
1819
+ height: 0.65em;
1820
+ width: 0.65em;
1821
+ background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE2LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgd2lkdGg9IjEyMy4wNXB4IiBoZWlnaHQ9IjEyMy4wNXB4IiB2aWV3Qm94PSIwIDAgMTIzLjA1IDEyMy4wNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTIzLjA1IDEyMy4wNTsiDQoJIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPHBhdGggZD0iTTEyMS4zMjUsMTAuOTI1bC04LjUtOC4zOTljLTIuMy0yLjMtNi4xLTIuMy04LjUsMGwtNDIuNCw0Mi4zOTlMMTguNzI2LDEuNzI2Yy0yLjMwMS0yLjMwMS02LjEwMS0yLjMwMS04LjUsMGwtOC41LDguNQ0KCQljLTIuMzAxLDIuMy0yLjMwMSw2LjEsMCw4LjVsNDMuMSw0My4xbC00Mi4zLDQyLjVjLTIuMywyLjMtMi4zLDYuMSwwLDguNWw4LjUsOC41YzIuMywyLjMsNi4xLDIuMyw4LjUsMGw0Mi4zOTktNDIuNGw0Mi40LDQyLjQNCgkJYzIuMywyLjMsNi4xLDIuMyw4LjUsMGw4LjUtOC41YzIuMy0yLjMsMi4zLTYuMSwwLTguNWwtNDIuNS00Mi40bDQyLjQtNDIuMzk5QzEyMy42MjUsMTcuMTI1LDEyMy42MjUsMTMuMzI1LDEyMS4zMjUsMTAuOTI1eiIvPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPC9zdmc+DQo=);
1822
+ background-size: contain;
1823
+ background-repeat: no-repeat;
1824
+ }
1825
+
1826
+ /* Text align */
1827
+ :host([align="center"]) .form-element {
1828
+ text-align: center;
1829
+ }
1830
+ :host([align="left"]) .form-element {
1831
+ text-align: left;
1832
+ }
1833
+ :host([align="right"]) .form-element {
1834
+ text-align: right;
1835
+ }
1836
+
1837
+ /* No arrows ion input Number */
1838
+ :host([noAppearance]) input[type="number"]::-webkit-outer-spin-button,
1839
+ :host([noAppearance]) input[type="number"]::-webkit-inner-spin-button {
1840
+ -webkit-appearance: none;
1841
+ margin: 0;
1842
+ }
1843
+
1844
+ :host([noAppearance]) input[type="number"] {
1845
+ -moz-appearance: textfield !important;
1846
+ }
1847
+
1848
+ /*type color "default" | "success" | "error" | "warning" | "info" */
1849
+ :host([status="success"]) {
1850
+ --sc-input-b-color: var(--sc-success);
1851
+ --sc-input-c: var(--sc-success);
1852
+ --sc-input-addon-bg: var(--sc-success);
1853
+ --sc-input-addon-color: var(--sc-success-content);
1854
+ }
1855
+ :host([status="error"]) {
1856
+ --sc-input-b-color: var(--sc-danger);
1857
+ --sc-input-c: var(--sc-danger);
1858
+ --sc-input-addon-bg: var(--sc-danger);
1859
+ --sc-input-addon-color: var(--sc-danger-content);
1860
+ }
1861
+ :host([status="warning"]) {
1862
+ --sc-input-b-color: var(--sc-warning);
1863
+ --sc-input-c: var(--sc-warning);
1864
+ --sc-input-addon-bg: var(--sc-warning);
1865
+ --sc-input-addon-color: var(--sc-warning-content);
1866
+ }
1867
+ :host([status="info"]) {
1868
+ --sc-input-b-color: var(--sc-info);
1869
+ --sc-input-c: var(--sc-info);
1870
+ --sc-input-addon-bg: var(--sc-info);
1871
+ --sc-input-addon-color: var(--sc-info-content);
1872
+ }
1873
+ :host([status="primary"]) {
1874
+ --sc-input-b-color: var(--sc-primary);
1875
+ --sc-input-c: var(--sc-primary);
1876
+ --sc-input-addon-bg: var(--sc-primary);
1877
+ --sc-input-addon-color: var(--sc-primary-content);
1878
+ }
1879
+ `;/**
1880
+ * @license
1881
+ * Copyright 2018 Google LLC
1882
+ * SPDX-License-Identifier: BSD-3-Clause
1883
+ */const li=he(class extends Ae{constructor(r){var t;if(super(r),r.type!==ce.ATTRIBUTE||r.name!=="class"||((t=r.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){var i,e;if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in t)t[o]&&!((i=this.nt)!=null&&i.has(o))&&this.st.add(o);return this.render(t)}const s=r.element.classList;for(const o of this.st)o in t||(s.remove(o),this.st.delete(o));for(const o in t){const n=!!t[o];n===this.st.has(o)||(e=this.nt)!=null&&e.has(o)||(n?(s.add(o),this.st.add(o)):(s.remove(o),this.st.delete(o)))}return mt}});var Na=Object.defineProperty,Ta=Object.getOwnPropertyDescriptor,B=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ta(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Na(t,s,e),e};const ja="sonic-input";let R=class extends ys(Oe(Y(w))){constructor(){super(...arguments),this.readonly=!1,this.inlineContent=!1,this.disableInlineContentFocus=!1,this.showPasswordToggle=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1,this.isPassword=!1}connectedCallback(){if(super.connectedCallback(),this.hasSlotOrProps(),this.hasAttribute("sameValueAs")){this.sameValueAsName=this.getAttribute("sameValueAs"),this.sameValueAsHandle=t=>this.pattern=this.escapeRegExp(t);const r=this.getFormPublisher();if(!r)return;r[this.sameValueAsName].onAssign(this.sameValueAsHandle)}this.type=="password"&&(this.isPassword=!0,this.showPasswordToggle=!0,this.inlineContent=!0)}disconnectedCallback(){if(super.disconnectedCallback(),this.hasAttribute("sameValueAs")&&this.sameValueAsName){const r=this.getFormPublisher();if(!r)return;r[this.sameValueAsName].offAssign(this.sameValueAsHandle)}}escapeRegExp(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}setSelectionRange(r,t){this.input.setSelectionRange(r,t)}hasSlotOrProps(){var r,t,s,i;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length),this.hasSuffix=!!((s=this.slotSuffixNodes)!=null&&s.length),this.hasPrefix=!!((i=this.slotPrefixNodes)!=null&&i.length)}inlineContentFocus(){var r;!this.inlineContent||this.disableInlineContentFocus||(r=this.input)==null||r.focus()}handleChange(r){if(!this.hasAttribute("inputDelayMs")){super.handleChange(r);return}this.changeTimeoutId&&clearTimeout(this.changeTimeoutId),this.changeTimeoutId=setTimeout(()=>super.handleChange(r),parseInt(this.getAttribute("inputDelayMs")))}togglePasswordVisibility(){this.isPassword=!this.isPassword,this._type=this.isPassword?"password":"text"}render(){const r={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix,"no-suffix":!this.hasSuffix,"no-prefix":!this.hasPrefix};return g`
1884
+ <label for="${this.id||"form-element"}" class="${this.hasLabel?"form-label":"hidden"}"
1885
+ >${this.label?I(this.label):""}<slot
1886
+ name="label"
1887
+ @slotchange=${this.hasSlotOrProps}
1888
+ ></slot
1889
+ ></label>
1890
+
1891
+ <div @click=${this.inlineContentFocus} class="form-control ${li(r)}">
1892
+ <div part="content" class="${this.inlineContent?"form-element form-element-wrapper":"contents"}">
1893
+ <slot name="prefix" @slotchange=${this.hasSlotOrProps}></slot>
1894
+ <input
1895
+ data-form-element
1896
+ part="input"
1897
+ id=${x(this.id||"form-element")}
1898
+ part="input"
1899
+ class="form-element input"
1900
+ @input=${this.handleChange}
1901
+ @blur=${this.handleBlur}
1902
+ type=${this.type}
1903
+ disabled=${x(this.disabled)}
1904
+ ?readonly=${this.readonly}
1905
+ ?autofocus=${this.autofocus}
1906
+ list=${x(this.list)}
1907
+ tabindex=${x(this.tabindex)}
1908
+ pattern=${x(this.pattern)}
1909
+ min=${x(this.min)}
1910
+ max=${x(this.max)}
1911
+ step=${x(this.step)}
1912
+ src=${x(this.src)}
1913
+ minlength=${x(this.minlength)}
1914
+ maxlength=${x(this.maxlength)}
1915
+ placeholder=${x(this.placeholder)}
1916
+ required=${x(this.required)}
1917
+ autocomplete=${x(this.autocomplete)}
1918
+ aria-label=${x(this.ariaLabel)}
1919
+ aria-labelledby=${x(this.ariaLabelledby)}
1920
+ .name=${this.name}
1921
+ .value=${this.value}
1922
+ />
1923
+ ${this.showPasswordToggle?g`<sonic-button
1924
+ shape="circle"
1925
+ class="password-toggle"
1926
+ @click=${this.togglePasswordVisibility}
1927
+ aria-label="Toggle password visibility"
1928
+ variant="unstyled"
1929
+ >
1930
+ <sonic-icon
1931
+ library="heroicons"
1932
+ name=${this.isPassword?"eye":"eye-slash"}
1933
+ ></sonic-icon>
1934
+ </sonic-button>`:""}
1935
+ <slot name="suffix" @slotchange=${this.hasSlotOrProps}></slot>
1936
+ </div>
1937
+ </div>
1938
+
1939
+ <!-- le slot ne doit pas avoir d'espace-->
1940
+ <slot
1941
+ name="description"
1942
+ @slotchange=${this.hasSlotOrProps}
1943
+ class="${this.hasDescription?"form-description":"hidden"}"
1944
+ >${this.description?g`${I(this.description)}`:C}</slot>
1945
+ <slot name="list"></slot>
1946
+ </div>
1947
+ `}};R.styles=[St,ai,As,Ss,Ea,$`
1948
+ :host([type="hidden"]) {
1949
+ appearance: none !important;
1950
+ display: none !important;
1951
+ }
1952
+ :host > .form-control {
1953
+ position: relative;
1954
+ }
1955
+ `],B([a({type:String,reflect:!0})],R.prototype,"size",2),B([a({type:String})],R.prototype,"list",2),B([a({type:String})],R.prototype,"placeholder",2),B([a({type:String})],R.prototype,"pattern",2),B([a({type:String})],R.prototype,"min",2),B([a({type:String})],R.prototype,"max",2),B([a({type:Boolean})],R.prototype,"readonly",2),B([a({type:Number})],R.prototype,"step",2),B([a({type:Number})],R.prototype,"minlength",2),B([a({type:Number})],R.prototype,"maxlength",2),B([a({type:String})],R.prototype,"src",2),B([a({type:Boolean,reflect:!0})],R.prototype,"inlineContent",2),B([a({type:Boolean})],R.prototype,"disableInlineContentFocus",2),B([a({type:Boolean})],R.prototype,"showPasswordToggle",2),B([it({slot:"label",flatten:!0})],R.prototype,"slotLabelNodes",2),B([it({slot:"description",flatten:!0})],R.prototype,"slotDescriptionNodes",2),B([it({slot:"suffix",flatten:!0})],R.prototype,"slotSuffixNodes",2),B([it({slot:"prefix",flatten:!0})],R.prototype,"slotPrefixNodes",2),B([se("input")],R.prototype,"input",2),B([j()],R.prototype,"hasDescription",2),B([j()],R.prototype,"hasLabel",2),B([j()],R.prototype,"hasSuffix",2),B([j()],R.prototype,"hasPrefix",2),B([j()],R.prototype,"isPassword",2),R=B([_(ja)],R);var Ma=Object.defineProperty,Ia=Object.getOwnPropertyDescriptor,Gt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ia(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ma(t,s,e),e};const za="sonic-pop";let nt=class extends w{constructor(){super(...arguments),this.open=!1,this.noToggle=!1,this.inline=!1,this.shadow="lg",this.placement="bottom",this.positioningRuns=!1,this.lastContentX=0,this.lastContentY=0,this.resizeObserver=new ResizeObserver(()=>this.computePosition(this.placement)),this.ancestorsHavingZIndex=new Set}runPositioningLoop(){this.positioningRuns&&(this.positioningRuns=!0,this.computePosition(this.placement),window.requestAnimationFrame(()=>this.runPositioningLoop()))}toggle(r){if(this.open&&this.noToggle)return;const t=r;r.type=="keydown"&&(t.key!="ArrowDown"||this.open)||(this.open=!this.open,this.open?this.show():this.hide())}show(){this.setMaxZindex(),this.popContent.style.removeProperty("display"),this.open=!0,this.popContent.setAttribute("tabindex","0"),this.popBtn&&this.popContent&&!this.positioningRuns&&(this.positioningRuns=!0,this.lastContentX=0,this.lastContentY=0,this.runPositioningLoop()),this.dispatchEvent(new CustomEvent("show"))}hide(){this.resetZindexes(),this.open=!1,this.popContent.setAttribute("tabindex","-1"),this.positioningRuns=!1,this.dispatchEvent(new CustomEvent("hide"))}setMaxZindex(){Q.everyAncestors(this,r=>{const t=r;if(!t.className)return!0;if([...t.classList].includes("@container")){const s=t.style;s.zIndex="999999999";const i=getComputedStyle(t);return i.position!=="relative"&&i.position!=="absolute"&&(s.position="relative"),this.ancestorsHavingZIndex.add(r),!1}return!0})}resetZindexes(){this.ancestorsHavingZIndex.forEach(r=>{r.style.removeProperty("position"),r.style.removeProperty("z-index")}),this.ancestorsHavingZIndex.clear()}_handleClosePop(r){const t=r.composedPath(),s=t[0];nt.pops.forEach(i=>{const e=t.includes(i),o=t.includes(i.querySelector('[slot="content"]')),n=Q.getAncestorAttributeValue(s,"data-on-select")==="keep";r.type=="pointerdown"&&e||r.type=="click"&&(e&&n||!o)||i.hide()})}connectedCallback(){super.connectedCallback(),nt.pops.size==0&&(document.addEventListener("pointerdown",this._handleClosePop),document.addEventListener("click",this._handleClosePop)),nt.pops.add(this)}firstUpdated(r){super.firstUpdated(r),this.resizeObserver.observe(this.popContent)}disconnectedCallback(){this.popContent&&this.resizeObserver.unobserve(this.popContent),super.disconnectedCallback(),nt.pops.delete(this),nt.pops.size==0&&(document.removeEventListener("pointerdown",this._handleClosePop),document.removeEventListener("click",this._handleClosePop))}computePosition(r){var E,V,W,wt;const t=r.split(" "),s=t[0];let i=t[1],e=(E=this.popContent)==null?void 0:E.getBoundingClientRect();const o=5,n=this.getBoundingClientRect(),l=Q.getScrollableAncestor(this.popContent),c=l==null?void 0:l.getBoundingClientRect(),h=Math.max(0,(c==null?void 0:c.left)||0)+o,d=Math.max(0,(c==null?void 0:c.top)||0)+o,f=Math.min(window.innerWidth,(c==null?void 0:c.right)||window.innerWidth)-o,m=Math.min(window.innerHeight,(c==null?void 0:c.bottom)||window.innerHeight)-o,v=n.left,b=n.top;let P=v,S=b;const D=b-e.height,p=v-e.width,u=v+n.width,y=b+n.height,A=v+(n.width-e.width)*.5,O=b+(n.height-e.height)*.5;switch(s){case"bottom":S=y,i=="center"&&(P=A);break;case"top":S=D,i=="center"&&(P=A);break;case"left":P=p,i=="center"&&(S=O);break;case"right":P=u,i=="center"&&(S=O);break}this.lastContentX+=P-e.x,this.lastContentY+=S-e.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),e=(V=this.popContent)==null?void 0:V.getBoundingClientRect(),e.x<h&&s=="left"&&(P=u),e.y<d&&s=="top"&&(S=y),e.x+e.width>f&&s=="right"&&(P=p),e.y+e.height>m&&s=="bottom"&&(S=D),this.lastContentX+=P-e.x,this.lastContentY+=S-e.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),e=(W=this.popContent)==null?void 0:W.getBoundingClientRect(),e.x<h&&(this.lastContentX+=h-e.x),e.y<d&&(this.lastContentY+=d-e.y),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),e=(wt=this.popContent)==null?void 0:wt.getBoundingClientRect(),e.x+e.width>f&&(this.lastContentX+=f-(e.x+e.width)),e.y+e.height>m&&(this.lastContentY+=m-(e.y+e.height)),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`})}render(){return g`
1956
+ <slot
1957
+ @click=${this.toggle}
1958
+ @keydown=${this.toggle}
1959
+ class="contents"
1960
+ ></slot>
1961
+ <slot
1962
+ name="content"
1963
+ tabindex="-1"
1964
+ part="content"
1965
+ style="display: none;"
1966
+ class="
1967
+ ${this.open?"is-open":""}"
1968
+ ></slot>
1969
+ `}};nt.pops=new Set,nt.styles=[$`
1970
+ :host {
1971
+ display: inline-block;
1972
+ vertical-align: middle;
1973
+ }
1974
+
1975
+ slot[name="content"] {
1976
+ max-width: 80vw;
1977
+ background-color: var(--sc-base);
1978
+ position: fixed;
1979
+ z-index: 99999;
1980
+ display: block;
1981
+ transform: translateY(1rem) scale(0.95);
1982
+ opacity: 0;
1983
+ pointer-events: none;
1984
+ transition-duration: 0.15s;
1985
+ transition-timing-function: ease;
1986
+ transition-property: all;
1987
+ border-radius: min(calc(var(--sc-btn-rounded) * 2), 0.4em);
1988
+ }
1989
+
1990
+ slot[name="content"].is-open:not(.is-empty) {
1991
+ transform: translateY(0) scale(1);
1992
+ opacity: 1;
1993
+ pointer-events: auto;
1994
+ transition-property: scale, opacity;
1995
+ transition-timing-function: cubic-bezier(0.25, 0.25, 0.42, 1.225);
1996
+ }
1997
+
1998
+ /*OMBRE*/
1999
+ :host([shadow]) slot[name="content"],
2000
+ :host([shadow="md"]) slot[name="content"],
2001
+ :host([shadow="true"]) slot[name="content"] {
2002
+ box-shadow: var(--sc-shadow);
2003
+ }
2004
+
2005
+ :host([shadow="sm"]) slot[name="content"] {
2006
+ box-shadow: var(--sc-shadow-sm);
2007
+ }
2008
+
2009
+ :host([shadow="none"]) slot[name="content"] {
2010
+ box-shadow: none;
2011
+ }
2012
+
2013
+ :host([shadow="lg"]) slot[name="content"] {
2014
+ box-shadow: var(--sc-shadow-lg);
2015
+ }
2016
+
2017
+ :host([inline]) {
2018
+ vertical-align: baseline;
2019
+ }
2020
+ `],Gt([j()],nt.prototype,"open",2),Gt([se("slot:not([name=content])")],nt.prototype,"popBtn",2),Gt([se("slot[name=content]")],nt.prototype,"popContent",2),Gt([a({type:Boolean})],nt.prototype,"noToggle",2),Gt([a({type:Boolean,reflect:!0})],nt.prototype,"inline",2),Gt([a({type:String,reflect:!0})],nt.prototype,"shadow",2),Gt([a({type:String})],nt.prototype,"placement",2),nt=Gt([_(za)],nt);var Fa=Object.defineProperty,Ra=Object.getOwnPropertyDescriptor,Ua=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ra(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Fa(t,s,e),e};const Va="sonic-menu-item";let xr=class extends M{constructor(){super()}connectedCallback(){this.hasAttribute("variant")||(this.variant="ghost"),this.hasAttribute("type")||(this.type="default"),this.hasAttribute("shape")||(this.shape="block");const r=this.shape==="square"||this.shape==="circle";!this.hasAttribute("align")&&!r&&(this.align="left"),super.connectedCallback()}};xr=Ua([_(Va)],xr);class Pr{constructor(t,{target:s,config:i,callback:e,skipInitial:o}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,s!==null&&this.t.add(s??t),this.l=i,this.o=o??this.o,this.callback=e,window.ResizeObserver?(this.u=new ResizeObserver(n=>{this.handleChanges(n),this.h.requestUpdate()}),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(t){var s;this.value=(s=this.callback)==null?void 0:s.call(this,t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}}var Ba=Object.defineProperty,Ha=Object.getOwnPropertyDescriptor,ft=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ha(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ba(t,s,e),e};let at=class extends ei(ur(pr(qt(w)))){constructor(){super(...arguments),this.size="md",this.placeholder="",this.filteredFields="",this.readonly=null,this.dataProviderExpression="",this.minSearchLength=0,this.key="",this.searchParameter="",this.propertyName="",this.hasInputPrefix=!1,this._resizeController=new Pr(this,{}),this.isPopVisible=!1,this.searchDataProvider="",this.initSearchDataProvider="",this.queueDataProvider="",this.initQueueDataProvider="",this.lastValidSearch="",this.updateSearchParameter=r=>{var s;if(r==""){this.lastValidSearch="";return}this.queryQueueListItem(this.queueDataProvider,this.findSelection,this.setSearchFromSelection)===!1&&(this.lastValidSearch=r,(s=this.searchPublisher)==null||s.set(this.lastValidSearch))},this.updatePopContentVisibility=r=>{this.isPopVisible=((r==null?void 0:r.length)||0)>=this.minSearchLength},this.initSearchParameter=()=>{this.queryQueueListItem(this.initQueueDataProvider,this.findSelection,this.setSearchFromSelection)},this.selectListItem=r=>{var s;const t=this.propertyName==="_self"?r:r[this.propertyName||this.name];(s=this.formValuePublisher)==null||s.set(t)},this.findSearchedItem=r=>{var s;return(this.propertyName==="_self"?r:r[this.propertyName||this.searchParameter||this.name])==((s=this.searchPublisher)==null?void 0:s.get())},this.findSelection=r=>(this.propertyName==="_self"?r:r[this.propertyName||this.name])==this.value,this.setSearchFromSelection=r=>{var t;this.lastValidSearch=this.propertyName==="_self"?r:r[this.searchParameter||this.propertyName||this.name],(t=this.searchPublisher)==null||t.set(this.lastValidSearch)},this.updateActiveSelection=()=>{var r,t,s;this.queryQueueListItem(this.queueDataProvider,this.findSearchedItem,this.selectListItem),!this.select&&this.lastValidSearch&&this.lastValidSearch!=((r=this.searchPublisher)==null?void 0:r.get())&&((t=this.formValuePublisher)!=null&&t.get())&&((s=this.formValuePublisher)==null||s.set(""))}}hasSlotOrProps(){var r;this.hasInputPrefix=!!((r=this.slotInputPrefixNodes)!=null&&r.length)}connectedCallback(){var e,o,n,l;console.log(this.value,this.getAttribute("value")),super.connectedCallback(),console.log(this.value,this.getAttribute("value"));const r=this.searchParameter||this.name,t=this.getAncestorAttributeValue("formDataProvider"),s=t+"__"+this.name+"__autocomplete";this.initSearchDataProvider=`${s}_init_search__`,this.initQueueDataProvider=`${s}_init_queue__`,this.searchDataProvider=`${s}_search__`,this.queueDataProvider=`${s}_queue__`;const i=tt.get;this.searchPublisher=i(this.searchDataProvider)[r],this.formValuePublisher=i(t)[this.name],this.countPublisher=i(this.queueDataProvider).resultCount,this.initCountPublisher=i(this.initQueueDataProvider).resultCount,this.value&&(tt.get(this.initSearchDataProvider)[this.name]=this.value),(e=this.initCountPublisher)==null||e.onAssign(this.initSearchParameter),(o=this.formValuePublisher)==null||o.onAssign(this.updateSearchParameter),(n=this.countPublisher)==null||n.onAssign(this.updateActiveSelection),(l=this.searchPublisher)==null||l.onAssign(this.updatePopContentVisibility)}disconnectedCallback(){var t,s,i,e;super.disconnectedCallback(),(t=this.initCountPublisher)==null||t.offAssign(this.initSearchParameter),(s=this.formValuePublisher)==null||s.offAssign(this.updateSearchParameter),(i=this.countPublisher)==null||i.offAssign(this.updateActiveSelection);const r=tt.get;r(this.initSearchDataProvider).delete(),r(this.initQueueDataProvider).delete(),r(this.searchDataProvider).delete(),r(this.queueDataProvider).delete(),(e=this.searchPublisher)==null||e.offAssign(this.updatePopContentVisibility)}queryQueueListItem(r,t,s){const i=tt.get(r);let e;const o=i.get();if(Array.isArray(o)){for(const n of o){const l=tt.get(n.dataProvider).get();if(Array.isArray(l)&&(e=l.find(t),e))break}return e?(s(e),!0):!1}}setSelectionRange(r,t){var s;(s=this.querySelector("sonic-input"))==null||s.setSelectionRange(r,t)}handleHide(){var r,t,s;if(this.select){if(((r=this.searchPublisher)==null?void 0:r.get())==""){this.lastValidSearch="",(t=this.formValuePublisher)==null||t.set("");return}(s=this.searchPublisher)==null||s.set(this.lastValidSearch)}}render(){var r;return g`
2021
+ <sonic-pop noToggle style="display:block;" @hide=${this.handleHide}>
2022
+ <sonic-input
2023
+ dataProvider="${this.initSearchDataProvider+Math.random()}"
2024
+ formDataProvider="${this.searchDataProvider}"
2025
+ type="search"
2026
+ data-keyboard-nav="${this.getAttribute("data-keyboard-nav")||""}"
2027
+ label="${x(this.label)}"
2028
+ description="${x(this.description)}"
2029
+ name="${x(this.searchParameter||this.name)}"
2030
+ placeholder="${x(this.placeholder)}"
2031
+ ?readonly="${this.readonly}"
2032
+ autocomplete="${Math.random()}"
2033
+ clearable
2034
+ inlineContent
2035
+ size=${this.size}
2036
+ value="${x(((r=this.searchPublisher)==null?void 0:r.get())||this.value)}"
2037
+ >
2038
+ <slot
2039
+ name="prefix"
2040
+ slot="prefix"
2041
+ @slotchange=${this.hasSlotOrProps}
2042
+ ></slot>
2043
+
2044
+ ${this.select?g`
2045
+ <sonic-icon
2046
+ slot="suffix"
2047
+ class="select-chevron"
2048
+ name="nav-arrow-down"
2049
+ .size=${this.size}
2050
+ ></sonic-icon>
2051
+ `:C}
2052
+ </sonic-input>
2053
+ <sonic-menu
2054
+ slot="content"
2055
+ class="custom-scroll"
2056
+ style="${this.offsetWidth?`width: ${this.offsetWidth}px`:""}; display:${this.isPopVisible?"block":"none"};"
2057
+ >
2058
+ <sonic-queue
2059
+ dataProvider="${this.queueDataProvider}"
2060
+ filteredFields=${this.filteredFields}
2061
+ dataProviderExpression="${this.dataProviderExpression}"
2062
+ dataFilterProvider="${this.searchDataProvider}"
2063
+ key="${this.key}"
2064
+ .templates=${this.templateList.concat(this.templatePartsList)}
2065
+ displayContents
2066
+ >
2067
+ </sonic-queue>
2068
+ <sonic-queue
2069
+ noLazyload
2070
+ loader="no-loader"
2071
+ dataProvider="${this.initQueueDataProvider}"
2072
+ filteredFields=${this.filteredFields}
2073
+ dataProviderExpression="${this.dataProviderExpression}"
2074
+ dataFilterProvider="${this.initSearchDataProvider}"
2075
+ key="${this.key}"
2076
+ displayContents
2077
+ >
2078
+ </sonic-queue>
2079
+ </sonic-menu>
2080
+ </sonic-pop>
2081
+ `}};at.styles=[Ye,$`
2082
+ :host {
2083
+ display: block;
2084
+ }
2085
+
2086
+ sonic-menu {
2087
+ display: block;
2088
+ max-height: clamp(12rem, 20vh, 20rem);
2089
+ min-width: 14rem;
2090
+ width: 100%;
2091
+ }
2092
+ `],ft([a({type:String})],at.prototype,"size",2),ft([a({type:String})],at.prototype,"placeholder",2),ft([a()],at.prototype,"filteredFields",2),ft([a({type:Boolean})],at.prototype,"readonly",2),ft([a({type:String})],at.prototype,"dataProviderExpression",2),ft([a({type:Number})],at.prototype,"minSearchLength",2),ft([a({type:Boolean})],at.prototype,"select",2),ft([a({type:String})],at.prototype,"key",2),ft([a({type:String})],at.prototype,"searchParameter",2),ft([a({type:String})],at.prototype,"propertyName",2),ft([it({slot:"prefix",flatten:!0})],at.prototype,"slotInputPrefixNodes",2),ft([j()],at.prototype,"hasInputPrefix",2),ft([j()],at.prototype,"isPopVisible",2),at=ft([_("sonic-input-autocomplete")],at);var qa=Object.defineProperty,Wa=Object.getOwnPropertyDescriptor,ht=(r,t,s,i)=>{for(var e=i>1?void 0:i?Wa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&qa(t,s,e),e};const Ka="sonic-password-helper";let lt=class extends qt(w){constructor(){super(...arguments),this.minChars=8,this.hasNoChar=!0,this.hasEnoughChars=!1,this.hasMinuscule=!1,this.hasMajuscule=!1,this.hasNumber=!1,this.hasSpecialChar=!1,this.wording_password_helper_decription="Le mot de passe doit contenir au moins :",this.wording_password_helper_min_length="8 caractères",this.wording_password_helper_lower_case="1 minuscule",this.wording_password_helper_upper_case="1 majuscule",this.wording_password_helper_number="1 chiffre",this.wording_password_helper_special_char="1 caractère spécial"}connectedCallback(){super.connectedCallback(),this.name&&(this.checkValue=t=>{t?(this.hasNoChar=t.length==0,this.hasEnoughChars=t.length>this.minChars):(this.hasNoChar=!0,this.hasEnoughChars=!1),this.hasMinuscule=/[a-z]/.test(t),this.hasMajuscule=/[A-Z]/.test(t),this.hasNumber=/[0-9]/.test(t),this.hasSpecialChar=/[!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~]/.test(t)},tt.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&tt.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(t){return t?g`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:g`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?C:g`
2093
+ <div>${this.wording_password_helper_decription}</div>
2094
+ <div>${this.getIcon(this.hasEnoughChars)} ${this.wording_password_helper_min_length}</div>
2095
+ <div>${this.getIcon(this.hasMinuscule)} ${this.wording_password_helper_lower_case}</div>
2096
+ <div>${this.getIcon(this.hasMajuscule)} ${this.wording_password_helper_upper_case}</div>
2097
+ <div>${this.getIcon(this.hasNumber)} ${this.wording_password_helper_number}</div>
2098
+ <div>${this.getIcon(this.hasSpecialChar)} ${this.wording_password_helper_special_char}</div>
2099
+ `}};ht([a()],lt.prototype,"name",2),ht([a()],lt.prototype,"minChars",2),ht([j()],lt.prototype,"hasNoChar",2),ht([j()],lt.prototype,"hasEnoughChars",2),ht([j()],lt.prototype,"hasMinuscule",2),ht([j()],lt.prototype,"hasMajuscule",2),ht([j()],lt.prototype,"hasNumber",2),ht([j()],lt.prototype,"hasSpecialChar",2),ht([a()],lt.prototype,"wording_password_helper_decription",2),ht([a()],lt.prototype,"wording_password_helper_min_length",2),ht([a()],lt.prototype,"wording_password_helper_lower_case",2),ht([a()],lt.prototype,"wording_password_helper_upper_case",2),ht([a()],lt.prototype,"wording_password_helper_number",2),ht([a()],lt.prototype,"wording_password_helper_special_char",2),lt=ht([_(Ka)],lt);var Za=Object.defineProperty,Ya=Object.getOwnPropertyDescriptor,be=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ya(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Za(t,s,e),e};const Ga="sonic-same-value-helper";let Qt=class extends qt(w){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const r=tt.get(this.getAncestorAttributeValue("formDataProvider"));this.name&&this.sameValueAs&&(this.checkValue=t=>{t?this.hasNoChar=t.length==0:this.hasNoChar=!0,this.name&&this.sameValueAs&&(this.areEqual=r[this.name].get()==r[this.sameValueAs].get())},r[this.name].onAssign(this.checkValue),r[this.sameValueAs].onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const r=tt.get(this.getAncestorAttributeValue("formDataProvider"));r[this.name].offAssign(this.checkValue),r[this.sameValueAs].offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?C:g`
2100
+ <span> ${this.areEqual?I(this.descriptionWhenEqual):I(this.descriptionWhenNotEqual)} </span>
2101
+ `}};be([a()],Qt.prototype,"name",2),be([a()],Qt.prototype,"sameValueAs",2),be([a()],Qt.prototype,"descriptionWhenEqual",2),be([a()],Qt.prototype,"descriptionWhenNotEqual",2),be([j()],Qt.prototype,"areEqual",2),be([j()],Qt.prototype,"hasNoChar",2),Qt=be([_(Ga)],Qt);var Qa=Object.defineProperty,Ja=Object.getOwnPropertyDescriptor,Rt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ja(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Qa(t,s,e),e};const Xa="sonic-checkbox";let vt=class extends Gs(ys(Oe(Y(w)))){constructor(){super(...arguments),this.touched=!1,this.iconName="check",this.indeterminateIconName="minus-small",this.showAsIndeterminate=!1,this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){this.type="checkbox",this.hasSlotOrProps(),super.connectedCallback()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}render(){return g`
2102
+ <label class="checkbox-container ${this.disabled?"disabled":""}">
2103
+
2104
+ <span class="icon-container">
2105
+ <input
2106
+ type="${this.type}"
2107
+ @click=${this.handleChange}
2108
+ @blur=${this.handleBlur}
2109
+ ?required=${this.required}
2110
+ ?data-indeterminate=${this.showAsIndeterminate}
2111
+ .disabled=${x(this.disabled)}
2112
+ .checked=${x(this.checked)}
2113
+ .name=${this.name}
2114
+ .value=${this.value}
2115
+ ?autofocus=${this.autofocus}
2116
+ aria-label=${x(this.ariaLabel)}
2117
+ aria-labelledby=${x(this.ariaLabelledby)}
2118
+ />
2119
+ <sonic-icon name="${this.checked=="indeterminate"||this.showAsIndeterminate?this.indeterminateIconName:this.iconName}" class="sc-input-icon"></sonic-icon>
2120
+ </span>
2121
+
2122
+ <div class="checkbox-text ${!this.hasDescription&&!this.hasLabel?"hidden":"checkbox-text"}">
2123
+ ${this.label?I(this.label):""}
2124
+ <slot @slotchange=${this.hasSlotOrProps}></slot>
2125
+ <slot @slotchange=${this.hasSlotOrProps} name="description" class="${this.hasDescription?"description":"hidden"} ">${this.description?g`${I(this.description)}`:""}</slot>
2126
+ </div>
2127
+ </label>
2128
+ </label>
2129
+ `}};vt.styles=[St,$`
2130
+ :host {
2131
+ --sc-checkbox-border-width: var(--sc-form-border-width);
2132
+ --sc-checkbox-border-color: var(--sc-input-border-color);
2133
+ --sc-checkbox-bg: var(--sc-input-bg);
2134
+ --sc-checkbox-color: transparent;
2135
+ }
2136
+
2137
+ * {
2138
+ box-sizing: border-box;
2139
+ }
2140
+
2141
+ .checkbox-container {
2142
+ min-height: 1.4em;
2143
+ display: flex;
2144
+ gap: 0.5em;
2145
+ line-height: 1.2;
2146
+ align-items: flex-start;
2147
+ font-size: var(--sc-fs);
2148
+ }
2149
+
2150
+ .icon-container {
2151
+ position: relative;
2152
+ display: flex;
2153
+ flex-shrink: 0;
2154
+ }
2155
+
2156
+ input {
2157
+ box-sizing: border-box;
2158
+ appearance: none;
2159
+ flex-shrink: 0;
2160
+ height: calc(var(--sc-fs) * 1.25);
2161
+ width: calc(var(--sc-fs) * 1.25);
2162
+ display: block;
2163
+ cursor: pointer;
2164
+ border-radius: 0.25em;
2165
+ transition: 0.2s;
2166
+ outline: none;
2167
+ margin: 0;
2168
+ background-color: var(--sc-checkbox-bg);
2169
+ border: var(--sc-checkbox-border-width) solid
2170
+ var(--sc-checkbox-border-color);
2171
+ }
2172
+
2173
+ input:focus,
2174
+ :host(:not([disabled])) input:active {
2175
+ box-shadow: 0 0 0 2px var(--sc-primary);
2176
+ }
2177
+
2178
+ :host(:not([disabled])) label {
2179
+ cursor: pointer;
2180
+ }
2181
+
2182
+ sonic-icon {
2183
+ line-height: 0;
2184
+ position: absolute;
2185
+ top: 50%;
2186
+ left: 50%;
2187
+ transform: translateX(-50%) translateY(-50%) scale(0);
2188
+ transition: transform 0.2s ease-in-out;
2189
+ color: var(--sc-checkbox-color);
2190
+ }
2191
+
2192
+ /* .checkbox-text {
2193
+ align-self: center;
2194
+ } */
2195
+
2196
+ .description {
2197
+ color: var(--sc-base-400);
2198
+ font-size: 0.85em;
2199
+ margin-top: 0.2em;
2200
+ display: block;
2201
+ }
2202
+
2203
+ /*Active */
2204
+ input:checked,
2205
+ input[data-indeterminate],
2206
+ input[checked] {
2207
+ --sc-checkbox-border-color: var(--sc-primary);
2208
+ --sc-checkbox-bg: var(--sc-primary);
2209
+ }
2210
+ input:checked + sonic-icon,
2211
+ input[data-indeterminate] + sonic-icon,
2212
+ input[checked] + sonic-icon {
2213
+ --sc-checkbox-color: var(--sc-primary-content);
2214
+ transform: translateX(-50%) translateY(-50%) scale(1);
2215
+ }
2216
+ /*DISABLED */
2217
+ .disabled {
2218
+ cursor: not-allowed;
2219
+ }
2220
+ .disabled input {
2221
+ opacity: 0.4;
2222
+ }
2223
+
2224
+ .disabled .checkbox-text {
2225
+ opacity: 0.6;
2226
+ }
2227
+
2228
+ /*INPUT HOVER*/
2229
+ :host(:not([disabled])) label:hover input {
2230
+ filter: brightness(0.97);
2231
+ }
2232
+
2233
+ ::slotted(a) {
2234
+ color: inherit;
2235
+ text-decoration: underline !important;
2236
+ }
2237
+
2238
+ ::slotted(a:hover) {
2239
+ text-decoration: none !important;
2240
+ }
2241
+ /*Utils */
2242
+ .hidden {
2243
+ display: none;
2244
+ }
2245
+
2246
+ /*ERROR*/
2247
+ /*
2248
+ :host([touched]) .checkbox-container:has(input:not(:focus):invalid) {
2249
+ --sc-checkbox-border-color:var(--sc-danger);
2250
+ }
2251
+ :host([touched]) .checkbox-container:has(input:not(:focus):invalid) .checkbox-text{
2252
+ color:var(--sc-danger);
2253
+ }
2254
+ */
2255
+ `],Rt([a({type:Boolean,reflect:!0})],vt.prototype,"touched",2),Rt([a({type:String})],vt.prototype,"iconName",2),Rt([a({type:String})],vt.prototype,"indeterminateIconName",2),Rt([a({type:Boolean})],vt.prototype,"showAsIndeterminate",2),Rt([a({type:Boolean})],vt.prototype,"hasDescription",2),Rt([a({type:Boolean})],vt.prototype,"hasLabel",2),Rt([it({flatten:!0})],vt.prototype,"slotLabelNodes",2),Rt([it({slot:"description",flatten:!0})],vt.prototype,"slotDescriptionNodes",2),vt=Rt([_(Xa)],vt);var tl=Object.defineProperty,el=Object.getOwnPropertyDescriptor,sl=(r,t,s,i)=>{for(var e=i>1?void 0:i?el(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&tl(t,s,e),e};const il="sonic-radio";let ci=class extends vt{constructor(){super(),this.radio=!0}connectedCallback(){super.connectedCallback(),this.type="radio"}};ci.styles=[vt.styles,$`
2256
+ :host input {
2257
+ border-radius: 50%;
2258
+ }
2259
+ :host sonic-icon {
2260
+ border-radius: 50%;
2261
+ overflow: hidden;
2262
+ background-color: var(--sc-primary-content);
2263
+ line-height: 0;
2264
+ display: block;
2265
+ font-size: 1em;
2266
+ height: 0.6em;
2267
+ width: 0.6em;
2268
+ }
2269
+ `],ci=sl([_(il)],ci);var rl=Object.defineProperty,ol=Object.getOwnPropertyDescriptor,J=(r,t,s,i)=>{for(var e=i>1?void 0:i?ol(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&rl(t,s,e),e};const nl="sonic-select";let Z=class extends Oe(Y(w)){constructor(){super(...arguments),this.valueKey="value",this.wordingKey="wording",this.multiple=!1,this.status="default",this._options=[],this.hasDoneFirstUpdate=!1,this._value="",this.updateOptions=()=>{const r=this.querySelectorAll("option");r.length>0&&(this.options=Array.from(r).map(t=>({value:t.value,wording:t.text,selected:t.hasAttribute("selected")})))},this.forceAutoFill=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1}set options(r){this._options=r;for(const s of r)s.selected&&(this.value=s.value||"");!(this.value||this.getAttribute("value"))&&this._options.length>0&&(this.value=this._options[0][this.valueKey]),this.requestUpdate()}get options(){return this._options}firstUpdated(r){this.hasDoneFirstUpdate=!0,super.firstUpdated(r)}set value(r){r==null&&!this.hasDoneFirstUpdate||(r||(r=""),this._value!=r&&(this._value=r,this.updateFormPublisherValue(),this.requestUpdate()))}get value(){return this._value}updateFormPublisherValue(){const r=this.getFormPublisher();r&&(r[this.name]=this.value)}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps(),this.updateOptions()}get description(){return this._description}set description(r){this.hasAttribute("description")&&!this.forceAutoFill&&(r=this.getAttribute("description")),this._description=r,this.requestUpdate()}get label(){return this._label}set label(r){this.hasAttribute("label")&&!this.forceAutoFill&&(r=this.getAttribute("label")),this._label=r,this.requestUpdate()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t,s,i;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length),this.hasSuffix=!!((s=this.slotSuffixNodes)!=null&&s.length),this.hasPrefix=!!((i=this.slotPrefixNodes)!=null&&i.length)}validateFormElement(){var s;const r=(s=this.shadowRoot)==null?void 0:s.querySelector("select");if(!r||r.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),r.reportValidity()}render(){const r={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return g`
2270
+ <label
2271
+ for="form-element"
2272
+ class="${this.hasLabel?"form-label":"hidden"}"
2273
+ >${this.label?I(this.label):""}<slot
2274
+ name="label"
2275
+ @slotchange=${this.hasSlotOrProps}
2276
+ ></slot
2277
+ ></label>
2278
+
2279
+ <div class="form-control ${li(r)}">
2280
+ <slot name="prefix" @slotchange=${this.hasSlotOrProps}></slot>
2281
+ <div class="form-select-wrapper">
2282
+ <select
2283
+ data-form-element
2284
+ id="form-element"
2285
+ @change=${this.handleChange}
2286
+ @blur=${this.handleBlur}
2287
+ ?disabled=${this.disabled}
2288
+ ?required=${this.required}
2289
+ ?multiple=${this.multiple}
2290
+ size=${x(this.selectSize)}
2291
+ ?autofocus=${this.autofocus}
2292
+ .value="${this.value}"
2293
+ class="form-element"
2294
+ aria-label=${x(this.ariaLabel)}
2295
+ aria-labelledby=${x(this.ariaLabelledby)}
2296
+ >
2297
+ ${gs(this.options,t=>t[this.valueKey],t=>{const s=this.value==t[this.valueKey];return g`<option
2298
+ ?selected=${s}
2299
+ value="${t[this.valueKey]}"
2300
+ >
2301
+ ${t[this.wordingKey]}
2302
+ </option>`})}
2303
+ <slot></slot>
2304
+ </select>
2305
+ <sonic-icon
2306
+ class="select-chevron"
2307
+ name="nav-arrow-down"
2308
+ .size=${this.size}
2309
+ ></sonic-icon>
2310
+ </div>
2311
+ <slot name="suffix" @slotchange=${this.hasSlotOrProps}></slot>
2312
+ </div>
2313
+
2314
+ <slot
2315
+ name="description"
2316
+ @slotchange=${this.hasSlotOrProps}
2317
+ class="${this.hasDescription?"form-description":"hidden"}"
2318
+ >${this.description?g`${I(this.description)}`:""}</slot
2319
+ >
2320
+ `}};Z.styles=[St,ai,As,Ss,$`
2321
+ .form-element {
2322
+ appearance: none;
2323
+ }
2324
+
2325
+ :host([disabled]) sonic-icon {
2326
+ opacity: 0;
2327
+ }
2328
+
2329
+ @supports selector(:has(*)) {
2330
+ :host(:not([disabled])) .form-element:not(:has(option:only-child)) {
2331
+ padding-right: max(1.275em, calc(1.5 * var(--sc-input-px)));
2332
+ }
2333
+ }
2334
+ /*Firefox etc.*/
2335
+ @supports not selector(:has(*)) {
2336
+ :host(:not([disabled])) .form-element {
2337
+ padding-right: max(1.275em, calc(1.5 * var(--sc-input-px)));
2338
+ }
2339
+ }
2340
+
2341
+ .form-select-wrapper {
2342
+ position: relative;
2343
+ width: 100%;
2344
+ }
2345
+
2346
+ sonic-icon {
2347
+ position: absolute;
2348
+ right: calc(0.8 * var(--sc-input-px));
2349
+ top: 50%;
2350
+ pointer-events: none;
2351
+ transform: translateY(-50%);
2352
+ color: var(--sc-input-c);
2353
+ }
2354
+
2355
+ option {
2356
+ padding: 0.1rem var(--sc-input-px);
2357
+ color: var(--sc-base-content);
2358
+ background: var(--sc-base);
2359
+ }
2360
+
2361
+ select[multiple] option {
2362
+ background: transparent;
2363
+ padding: 0;
2364
+ }
2365
+ `],J([a({type:String})],Z.prototype,"valueKey",2),J([a({type:String})],Z.prototype,"wordingKey",2),J([a({type:Boolean})],Z.prototype,"multiple",2),J([a({type:String,reflect:!0})],Z.prototype,"size",2),J([a({type:Number})],Z.prototype,"selectSize",2),J([a({type:String,reflect:!0})],Z.prototype,"status",2),J([a({type:Array})],Z.prototype,"options",1),J([a({reflect:!0})],Z.prototype,"value",1),J([a({type:Boolean})],Z.prototype,"forceAutoFill",2),J([a()],Z.prototype,"description",1),J([a()],Z.prototype,"label",1),J([it({slot:"label",flatten:!0})],Z.prototype,"slotLabelNodes",2),J([it({slot:"description",flatten:!0})],Z.prototype,"slotDescriptionNodes",2),J([it({slot:"suffix",flatten:!0})],Z.prototype,"slotSuffixNodes",2),J([it({slot:"prefix",flatten:!0})],Z.prototype,"slotPrefixNodes",2),J([j()],Z.prototype,"hasDescription",2),J([j()],Z.prototype,"hasLabel",2),J([j()],Z.prototype,"hasSuffix",2),J([j()],Z.prototype,"hasPrefix",2),Z=J([_(nl)],Z);var al=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,gt=(r,t,s,i)=>{for(var e=i>1?void 0:i?ll(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&al(t,s,e),e};const cl="sonic-textarea";let ct=class extends ys(Oe(Y(w))){constructor(){super(...arguments),this.size="md",this.readonly=!1,this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}validateFormElement(){var s;const r=(s=this.shadowRoot)==null?void 0:s.querySelector("textarea");if(!r||r.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),r.reportValidity()}render(){const r={resize:this.resize};return g`
2366
+ <label
2367
+ for="${this.id||"form-element"}"
2368
+ class="${this.hasLabel?"form-label":"hidden"}"
2369
+ >${this.label?I(this.label):""}<slot
2370
+ name="label"
2371
+ @slotchange=${this.hasSlotOrProps}
2372
+ ></slot
2373
+ ></label>
2374
+
2375
+ <div class="form-control">
2376
+ <textarea
2377
+ data-form-element
2378
+ id="${this.id||"form-element"}"
2379
+ @input=${this.handleChange}
2380
+ @blur=${this.handleBlur}
2381
+ disabled=${x(this.disabled)}
2382
+ ?required=${this.required}
2383
+ ?autofocus=${this.autofocus}
2384
+ rows=${x(this.rows)}
2385
+ cols=${x(this.cols)}
2386
+ maxlength=${x(this.maxlength)}
2387
+ minlength=${x(this.minlength)}
2388
+ ?readonly=${this.readonly}
2389
+ spellcheck=${x(this.spellcheck)}
2390
+ autocomplete=${x(this.autocomplete)}
2391
+ tabindex=${x(this.tabindex)}
2392
+ wrap=${x(this.wrap)}
2393
+ placeholder="${this.placeholder}"
2394
+ class="form-element textarea custom-scroll"
2395
+ aria-label=${x(this.ariaLabel)}
2396
+ aria-labelledby=${x(this.ariaLabelledby)}
2397
+ style=${pt(r)}
2398
+ >
2399
+ ${this.value}</textarea
2400
+ >
2401
+ </div>
2402
+
2403
+ <slot
2404
+ name="description"
2405
+ @slotchange=${this.hasSlotOrProps}
2406
+ class="${this.hasDescription?"form-description":"hidden"}"
2407
+ >${this.description?g`${I(this.description)}`:""}</slot
2408
+ >
2409
+ `}};ct.styles=[St,ai,As,Ss,Ye,$`
2410
+ textarea {
2411
+ overflow-y: auto !important;
2412
+ font-size: inherit;
2413
+ }
2414
+ `],gt([a({type:String})],ct.prototype,"size",2),gt([a({type:Number})],ct.prototype,"rows",2),gt([a({type:Number})],ct.prototype,"cols",2),gt([a({type:Number})],ct.prototype,"maxlength",2),gt([a({type:Number})],ct.prototype,"minlength",2),gt([a({type:String})],ct.prototype,"wrap",2),gt([a({type:Boolean})],ct.prototype,"readonly",2),gt([a({type:String})],ct.prototype,"placeholder",2),gt([a({type:String})],ct.prototype,"resize",2),gt([it({slot:"label",flatten:!0})],ct.prototype,"slotLabelNodes",2),gt([it({slot:"description",flatten:!0})],ct.prototype,"slotDescriptionNodes",2),gt([j()],ct.prototype,"hasDescription",2),gt([j()],ct.prototype,"hasLabel",2),ct=gt([_(cl)],ct);var hl=Object.defineProperty,dl=Object.getOwnPropertyDescriptor,pl=(r,t,s,i)=>{for(var e=i>1?void 0:i?dl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&hl(t,s,e),e};let hi=class extends w{render(){return g`<slot></slot>`}};hi.styles=[$`
2415
+ :host {
2416
+ font-size: 1.15rem;
2417
+ line-height: 1.2;
2418
+ display: block;
2419
+ color: var(--sc-base-500);
2420
+ font-weight: var(--sc-font-weight-base);
2421
+ font-style: var(--sc-font-style-base);
2422
+ margin-top: 0.2em;
2423
+ }
2424
+ `],hi=pl([_("sonic-legend-description")],hi);var ul=Object.defineProperty,fl=Object.getOwnPropertyDescriptor,ve=(r,t,s,i)=>{for(var e=i>1?void 0:i?fl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ul(t,s,e),e};const gl="sonic-legend";let Ut=class extends w{constructor(){super(...arguments),this.forceAutoFill=!1}get description(){return this._description}set description(r){this.hasAttribute("description")&&!this.forceAutoFill&&(r=this.getAttribute("description")),this._description=r,this.requestUpdate()}get label(){return this._label}set label(r){this.hasAttribute("label")&&!this.forceAutoFill&&(r=this.getAttribute("label")),this._label=r,this.requestUpdate()}render(){return g`<legend part="legend">
2425
+ ${this.iconName?g`<div class="icon">
2426
+ <sonic-icon name=${this.iconName} prefix=${x(this.iconPrefix)} library=${x(this.iconLibrary)}></sonic-icon>
2427
+ </div>`:""}
2428
+
2429
+ <div class="legend-content">
2430
+ ${I(this.label?this.label:"")}
2431
+ ${this.description?g`<sonic-legend-description>${I(this.description)}</sonic-legend-description>`:""}
2432
+ <slot></slot>
2433
+ </div>
2434
+ <slot name="suffix"></slot>
2435
+ </legend>`}};Ut.styles=[$`
2436
+ :host {
2437
+ --sc-legend-font-size: 1.5rem;
2438
+ --sc-legend-font-weight: var(--sc-font-weight-base);
2439
+ --sc-legend-font-style: var(--sc-headings-font-style);
2440
+ --sc-legend-family: var(--sc-headings-font-family);
2441
+ --sc-legend-line-height: var(--sc-headings-line-height);
2442
+ --sc-legend-color: var(--sc-base-content);
2443
+ display: flex;
2444
+ width: 100%;
2445
+ }
2446
+
2447
+ legend {
2448
+ font-size: var(--sc-legend-font-size);
2449
+ font-weight: var(--sc-legend-font-weight);
2450
+ font-style: var(--sc-legend-font-style);
2451
+ font-family: var(--sc-legend-font-family);
2452
+ line-height: var(--sc-legend-line-height);
2453
+ color: var(--sc-legend-color);
2454
+ padding: 0;
2455
+ display: flex;
2456
+ width: 100%;
2457
+ align-items: flex-start;
2458
+ gap: 0.5em;
2459
+ }
2460
+
2461
+ slot[name="suffix"] {
2462
+ display: block;
2463
+ margin-left: auto;
2464
+ flex-shrink: 0;
2465
+ }
2466
+
2467
+ .legend-content {
2468
+ flex-grow: 1;
2469
+ }
2470
+ `],ve([a({type:Boolean})],Ut.prototype,"forceAutoFill",2),ve([a()],Ut.prototype,"description",1),ve([a()],Ut.prototype,"label",1),ve([a({type:String})],Ut.prototype,"iconName",2),ve([a({type:String})],Ut.prototype,"iconLibrary",2),ve([a({type:String})],Ut.prototype,"iconPrefix",2),Ut=ve([_(gl)],Ut);var ml=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,kt=(r,t,s,i)=>{for(var e=i>1?void 0:i?bl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ml(t,s,e),e};const vl="sonic-fieldset";let xt=class extends Y(w){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return g`<fieldset
2471
+ form="${x(this.form)}"
2472
+ ?disabled="${this.disabled}"
2473
+ >
2474
+ ${this.label?g` <sonic-legend
2475
+ label=${x(this.label)}
2476
+ description=${x(this.description)}
2477
+ iconName=${x(this.iconName)}
2478
+ iconPrefix=${x(this.iconPrefix)}
2479
+ iconLibrary=${x(this.iconLibrary)}
2480
+ ></sonic-legend>`:C}
2481
+ <slot></slot>
2482
+ </fieldset>`}};xt.styles=[$`
2483
+ :host {
2484
+ --sc-fieldset-mt: 0;
2485
+ --sc-fieldset-mb: 1rem;
2486
+ --sc-fieldset-border-color: var(--sc-border-color);
2487
+ --sc-fieldset-border-width: var(--sc-form-border-width);
2488
+ --sc-fieldset-px: 1.25rem;
2489
+ --sc-fieldset-py: 1.8rem;
2490
+
2491
+ margin-top: var(--sc-fieldset-mt);
2492
+ margin-bottom: var(--sc-fieldset-mb);
2493
+ display: block;
2494
+ border: var(--sc-fieldset-border-width) solid
2495
+ var(--sc-fieldset-border-color) !important;
2496
+ padding: var(--sc-fieldset-py) var(--sc-fieldset-px);
2497
+ border-radius: var(--sc-rounded-lg);
2498
+ }
2499
+
2500
+ fieldset {
2501
+ all: unset;
2502
+ display: contents;
2503
+ }
2504
+
2505
+ :host([variant="shadow"]),
2506
+ :host([variant="ghost"]) {
2507
+ --sc-fieldset-border-color: transparent;
2508
+ }
2509
+ :host([variant="shadow"]) {
2510
+ --sc-fieldset-border-color: transparent;
2511
+ box-shadow: var(--sc-shadow-lg);
2512
+ }
2513
+
2514
+ :host([tight]) {
2515
+ --sc-fieldset-px: 0;
2516
+ border-left: none !important;
2517
+ border-right: none !important;
2518
+ border-radius: 0;
2519
+ }
2520
+
2521
+ sonic-legend,
2522
+ ::slotted(sonic-legend) {
2523
+ margin-bottom: 1.5rem;
2524
+ display: block;
2525
+ }
2526
+
2527
+ sonic-legend:last-child,
2528
+ ::slotted(sonic-legend:last-child) {
2529
+ margin-bottom: 0;
2530
+ }
2531
+ `],kt([a({type:Boolean,reflect:!0})],xt.prototype,"disabled",2),kt([a({type:String})],xt.prototype,"form",2),kt([a({type:String})],xt.prototype,"label",2),kt([a({type:String})],xt.prototype,"description",2),kt([a({type:String})],xt.prototype,"iconName",2),kt([a({type:String})],xt.prototype,"iconLibrary",2),kt([a({type:String})],xt.prototype,"iconPrefix",2),kt([a({type:Boolean,reflect:!0})],xt.prototype,"tight",2),kt([a({type:String,reflect:!0})],xt.prototype,"variant",2),xt=kt([_(vl)],xt);var yl=Object.defineProperty,wl=Object.getOwnPropertyDescriptor,di=(r,t,s,i)=>{for(var e=i>1?void 0:i?wl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&yl(t,s,e),e};const _l="sonic-form-layout";let Xe=class extends Y(w){constructor(){super(...arguments),this._resizeController=new Pr(this,{}),this.oneFormElement=!1}onSlotChange(){let r=this.slottedElements;const t=["sonic-input","sonic-select","sonic-input-autocomplete",".form-item-container"];r=r.filter(s=>t.includes(s.nodeName.toLowerCase())),this.oneFormElement=r.length==1}render(){const r={"cq--md":this.offsetWidth>440,"one-form-element":this.oneFormElement};return g`<div class=${li(r)}>
2532
+ <slot @slotchange=${this.onSlotChange}></slot>
2533
+ </div>`}};Xe.styles=[$`
2534
+ :host {
2535
+ display: block;
2536
+ }
2537
+
2538
+ div {
2539
+ display: grid;
2540
+ grid-gap: 1.5rem;
2541
+ align-items: flex-start;
2542
+ }
2543
+
2544
+ .cq--md {
2545
+ grid-gap: 1.75rem;
2546
+ grid-template-columns: repeat(2, minmax(0, 1fr));
2547
+ }
2548
+ .one-form-element {
2549
+ grid-template-columns: 1fr;
2550
+ }
2551
+ /*::slotted(sonic-radio),
2552
+ ::slotted(sonic-checkbox),
2553
+ ::slotted(sonic-form-actions),
2554
+ ::slotted(sonic-divider),
2555
+ ::slotted(sonic-textarea) {
2556
+ grid-column: 1 / -1;
2557
+ }*/
2558
+ ::slotted(sonic-submit) {
2559
+ display: contents;
2560
+ }
2561
+ ::slotted(:not(sonic-input):not(sonic-select):not(sonic-input-autocomplete):not(.form-item-container)) {
2562
+ grid-column: 1 / -1;
2563
+ }
2564
+
2565
+ ::slotted(sonic-divider) {
2566
+ --sc-divider-my: 0;
2567
+ }
2568
+ `],di([ie({flatten:!0})],Xe.prototype,"slottedElements",2),di([a({type:Boolean})],Xe.prototype,"oneFormElement",2),Xe=di([_(_l)],Xe);var xl=Object.defineProperty,Pl=Object.getOwnPropertyDescriptor,pi=(r,t,s,i)=>{for(var e=i>1?void 0:i?Pl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&xl(t,s,e),e};const $l="sonic-form-actions";let ts=class extends w{constructor(){super(...arguments),this.direction="row",this.justify="flex-start"}render(){const r={flexDirection:this.direction,justifyContent:this.justify};return g`<slot style=${pt(r)}></slot>`}};ts.styles=[$`
2569
+ :host {
2570
+ display: block;
2571
+ }
2572
+ slot {
2573
+ display: flex;
2574
+ flex-wrap: wrap;
2575
+ gap: 0.3rem;
2576
+ }
2577
+ `],pi([a({type:String})],ts.prototype,"direction",2),pi([a({type:String})],ts.prototype,"justify",2),ts=pi([_($l)],ts);var Cl=Object.defineProperty,Al=Object.getOwnPropertyDescriptor,Jt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Al(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Cl(t,s,e),e};const Sl="sonic-group";let Lt=class extends w{constructor(){super(...arguments),this.alignItems="center",this.hasDescription=!1,this.hasLabel=!1}updated(){const r=this.querySelectorAll("sonic-input, sonic-button, sonic-select"),t=r.length;t>1&&r.forEach((s,i)=>{const e=s;i===0?(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0")):i===t-1?(e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0")):(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0"),e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0"))})}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}render(){const r={alignItems:this.alignItems};return g`<span class="${this.hasLabel?"form-label":"hidden"}"
2578
+ >${this.label?I(this.label):""}<slot name="label" @slotchange=${this.hasSlotOrProps}></slot
2579
+ ></span>
2580
+ <slot class="main-slot" style=${pt(r)}></slot>
2581
+ <slot name="description" @slotchange=${this.hasSlotOrProps} class="${this.hasDescription?"form-description":"hidden"}">
2582
+ ${this.description?g`${I(this.description)}`:""}
2583
+ </slot>`}};Lt.styles=[St,As,Ss,$`
2584
+ :host {
2585
+ display: inline-block;
2586
+ vertical-align: middle;
2587
+ }
2588
+
2589
+ .main-slot {
2590
+ width: 100%;
2591
+ display: flex;
2592
+ }
2593
+ .hidden {
2594
+ display: none;
2595
+ }
2596
+
2597
+ ::slotted(sonic-button),
2598
+ ::slotted(sonic-input),
2599
+ ::slotted(sonic-select) {
2600
+ flex-grow: 1;
2601
+ }
2602
+ `],Jt([a({type:String})],Lt.prototype,"alignItems",2),Jt([a({type:String})],Lt.prototype,"label",2),Jt([a({type:String})],Lt.prototype,"description",2),Jt([it({slot:"label",flatten:!0})],Lt.prototype,"slotLabelNodes",2),Jt([it({slot:"description",flatten:!0})],Lt.prototype,"slotDescriptionNodes",2),Jt([j()],Lt.prototype,"hasDescription",2),Jt([j()],Lt.prototype,"hasLabel",2),Lt=Jt([_(Sl)],Lt);var Ol=Object.defineProperty,Dl=Object.getOwnPropertyDescriptor,Et=(r,t,s,i)=>{for(var e=i>1?void 0:i?Dl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ol(t,s,e),e};const kl="sonic-image";let Pt=class extends w{constructor(){super(...arguments),this.rounded="none",this.src="",this.alt="",this.loading="lazy",this.ratio="auto",this.objectPosition="center center",this.imageRendering="auto",this.cover=!1}firstUpdated(r){var t;if(this.transition){const s=(t=this.shadowRoot)==null?void 0:t.querySelector("img");if(!s)return;s.onload=function(){s.classList.add("loaded")}}super.firstUpdated(r)}render(){const r={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return g`<div part="image">
2603
+ <picture part="picture"
2604
+ ><img part="img" src="${this.src}" loading="${this.loading}" alt="${this.alt}" style=${pt(r)}
2605
+ /></picture>
2606
+ </div>`}};Pt.styles=[$`
2607
+ :host {
2608
+ --sc-img-radius: 0;
2609
+ --sc-img-bg: var(--sc-placeholder-bg);
2610
+ border-radius: var(--sc-img-radius);
2611
+ display: block;
2612
+ width: 100%;
2613
+ background: var(--sc-img-bg);
2614
+ }
2615
+
2616
+ img {
2617
+ width: 100%;
2618
+ vertical-align: middle;
2619
+ object-fit: cover;
2620
+ }
2621
+
2622
+ img[src=""] {
2623
+ visibility: hidden;
2624
+ }
2625
+
2626
+ /*Rounded*/
2627
+ :host([rounded]) {
2628
+ --sc-img-radius: var(--sc-rounded);
2629
+ overflow: hidden;
2630
+ }
2631
+ :host([rounded="sm"]) {
2632
+ --sc-img-radius: var(--sc-rounded-sm);
2633
+ }
2634
+
2635
+ :host([rounded="md"]) {
2636
+ --sc-img-radius: var(--sc-rounded-md);
2637
+ }
2638
+
2639
+ :host([rounded="lg"]) {
2640
+ --sc-img-radius: var(--sc-rounded-lg);
2641
+ }
2642
+ :host([rounded="xl"]) {
2643
+ --sc-img-radius: var(--sc-rounded-xl);
2644
+ }
2645
+
2646
+ /*Cercle*/
2647
+ :host([rounded="full"]) {
2648
+ --sc-img-radius: 50% !important;
2649
+ }
2650
+ :host([rounded="none"]) {
2651
+ --sc-img-radius: 0 !important;
2652
+ }
2653
+
2654
+ :host([cover]),
2655
+ :host([cover]) > div,
2656
+ :host([cover]) img {
2657
+ position: absolute !important;
2658
+ left: 0 !important;
2659
+ top: 0 !important;
2660
+ right: 0 !important;
2661
+ bottom: 0 !important;
2662
+ height: 100% !important;
2663
+ width: 100% !important;
2664
+ }
2665
+
2666
+ :host([transition]) img {
2667
+ opacity: 0;
2668
+ transition: 0.25s;
2669
+ }
2670
+
2671
+ :host([transition="fade-scale-out"]) img {
2672
+ scale: 1.08;
2673
+ transition: opacity 0.3s linear, scale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
2674
+ }
2675
+ :host([transition]) img.loaded {
2676
+ opacity: 1;
2677
+ scale: 1;
2678
+ }
2679
+ `],Et([a({type:String})],Pt.prototype,"rounded",2),Et([a({type:String})],Pt.prototype,"src",2),Et([a({type:String})],Pt.prototype,"alt",2),Et([a({type:String})],Pt.prototype,"loading",2),Et([a({type:String,reflect:!0})],Pt.prototype,"transition",2),Et([a({type:String})],Pt.prototype,"ratio",2),Et([a({type:String})],Pt.prototype,"objectPosition",2),Et([a({type:String})],Pt.prototype,"imageRendering",2),Et([a({type:Boolean,reflect:!0})],Pt.prototype,"cover",2),Pt=Et([_(kl)],Pt);var Ll=Object.defineProperty,El=Object.getOwnPropertyDescriptor,yt=(r,t,s,i)=>{for(var e=i>1?void 0:i?El(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ll(t,s,e),e};const Nl="sonic-menu";let dt=class extends w{constructor(){super(...arguments),this.direction="column",this.gap="var(--sc-menu-gap)",this.align="left",this.shadow=null,this.moreShape="circle",this.scrollable=!1,this.observer=null,this.minWidth="0",this.hasMoreElements=!1,this.updateIsScollable=()=>{this.scrollable&&(this.initScrollable(),this.setScrollShadow(this,this.direction))}}checkIfMore(){var r;this.hasMoreElements=!!((r=this.moreElements)!=null&&r.length)}updated(r){const t=this.querySelector(".more-btn");this.size&&t&&t.setAttribute("size",this.size),this.querySelectorAll("sonic-divider").forEach(i=>{i.hasAttribute("size")||i.setAttribute("size","xs")}),super.updated(r)}mainSlotChange(){this.setChildrenSize(this.menuChildren),this.updateIsScollable()}connectedCallback(){this.observer=new ResizeObserver(this.updateIsScollable),this.observer.observe(this),super.connectedCallback()}disconnectedCallback(){var r;(r=this.observer)==null||r.disconnect(),super.disconnectedCallback()}initScrollable(){let r=!1,t,s;this.scrollable&&(this.addEventListener("mousedown",i=>{r=!0,this.classList.add("active"),t=i.pageX-this.offsetLeft,s=this.scrollLeft}),this.addEventListener("mouseleave",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mouseup",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mousemove",i=>{if(!r)return;i.preventDefault();const o=(i.pageX-this.offsetLeft-t)*1.5;this.scrollLeft=s-o,this.setScrollShadow(this,this.direction)}),this.addEventListener("scroll",i=>{i.preventDefault(),this.setScrollShadow(this,this.direction)}))}setScrollShadow(r,t){t=="row"?(r.scrollLeft>0?this.classList.add("shadow-left"):this.classList.remove("shadow-left"),r.scrollLeft<r.scrollWidth-r.offsetWidth?this.classList.add("shadow-right"):this.classList.remove("shadow-right")):t=="column"&&(r.scrollTop>0?this.classList.add("shadow-top"):this.classList.remove("shadow-top"),r.scrollTop<r.scrollHeight-(r.offsetHeight+1)?this.classList.add("shadow-bottom"):this.classList.remove("shadow-bottom"))}setChildrenSize(r){r.forEach(t=>{this.size&&t.setAttribute("size",this.size),this.align&&t.getAttribute("shape")!="square"&&t.getAttribute("shape")!="circle"&&t.setAttribute("align",this.align),this.direction=="row"&&t.getAttribute("shape")=="block"&&t.setAttribute("shape","default")})}render(){const r={minWidth:this.minWidth,flexDirection:this.direction,gap:this.gap},t=this.direction=="row",s={display:"block",alignSelf:t?"center":"flex-start",justifySelf:"center",flexDirection:this.direction},i={marginLeft:t?"":".55em"};return g`<menu
2680
+ part="menu"
2681
+ class="shadowable"
2682
+ style=${pt(r)}
2683
+ >
2684
+ <slot @slotchange=${this.mainSlotChange}></slot>
2685
+ <sonic-pop
2686
+ style=${pt(s)}
2687
+ class=${this.hasMoreElements?"":"hidden"}
2688
+ >
2689
+ <sonic-menu-item
2690
+ style=${pt(i)}
2691
+ class="more-btn"
2692
+ shape=${this.moreShape}
2693
+ align="center"
2694
+ >
2695
+ <sonic-icon
2696
+ size="xl"
2697
+ name=${t?"more-vert":"more-horiz"}
2698
+ ></sonic-icon>
2699
+ </sonic-menu-item>
2700
+ <slot name="more" @slotchange=${this.checkIfMore} slot="content"></slot>
2701
+ </sonic-pop>
2702
+ </menu>`}};dt.styles=[$`
2703
+ :host {
2704
+ display: block;
2705
+ --sc-menu-gap: 0.15rem;
2706
+ }
2707
+
2708
+ :host > menu {
2709
+ display: flex;
2710
+ border-radius: min(calc(var(--sc-btn-rounded) * 2), 0.4em);
2711
+ margin: 0;
2712
+ padding: 0.35em;
2713
+ }
2714
+
2715
+ .hidden {
2716
+ display: none !important;
2717
+ }
2718
+
2719
+ /*OMBRE*/
2720
+ :host([shadow]) .shadowable,
2721
+ :host([shadow="md"]) .shadowable,
2722
+ :host([shadow="true"]) .shadowable {
2723
+ box-shadow: var(--sc-shadow);
2724
+ }
2725
+
2726
+ :host([shadow="sm"]) .shadowable {
2727
+ box-shadow: var(--sc-shadow-sm);
2728
+ }
2729
+
2730
+ :host([shadow="lg"]) .shadowable {
2731
+ box-shadow: var(--sc-shadow-lg);
2732
+ }
2733
+
2734
+ :host([shadow="none"]) .shadowable {
2735
+ box-shadow: none;
2736
+ }
2737
+
2738
+ /* SCROLLABLE*/
2739
+ :host([scrollable]) {
2740
+ scrollbar-width: none;
2741
+ -ms-overflow-style: none;
2742
+ }
2743
+ :host([scrollable]) menu > * {
2744
+ scroll-snap-align: start;
2745
+ white-space: nowrap;
2746
+ }
2747
+ :host([scrollable][direction="row"]) {
2748
+ overflow-x: scroll;
2749
+ scroll-snap-type: x mandatory;
2750
+ }
2751
+ :host([scrollable][direction="column"]) {
2752
+ overflow-y: scroll;
2753
+ scroll-snap-type: y mandatory;
2754
+ }
2755
+ :host([scrollable])::-webkit-scrollbar {
2756
+ display: none !important;
2757
+ }
2758
+ :host([scrollable][direction="row"].shadow-right) {
2759
+ -webkit-mask-image: linear-gradient(
2760
+ to left,
2761
+ rgba(0, 0, 0, 0),
2762
+ rgba(0, 0, 0, 1) 10%
2763
+ );
2764
+ mask-image: linear-gradient(
2765
+ to left,
2766
+ rgba(0, 0, 0, 0),
2767
+ rgba(0, 0, 0, 1) 10%
2768
+ );
2769
+ }
2770
+ :host([scrollable][direction="row"].shadow-left) {
2771
+ -webkit-mask-image: linear-gradient(
2772
+ to right,
2773
+ rgba(0, 0, 0, 0),
2774
+ rgba(0, 0, 0, 1) 10%
2775
+ );
2776
+ mask-image: linear-gradient(
2777
+ to right,
2778
+ rgba(0, 0, 0, 0),
2779
+ rgba(0, 0, 0, 1) 10%
2780
+ );
2781
+ }
2782
+ :host([scrollable][direction="row"].shadow-left.shadow-right) {
2783
+ -webkit-mask-image: linear-gradient(
2784
+ to right,
2785
+ rgba(0, 0, 0, 0) 0%,
2786
+ rgba(0, 0, 0, 1) 10%,
2787
+ rgba(0, 0, 0, 1) 90%,
2788
+ rgba(0, 0, 0, 0) 100%
2789
+ );
2790
+ mask-image: linear-gradient(
2791
+ to right,
2792
+ rgba(0, 0, 0, 0) 0%,
2793
+ rgba(0, 0, 0, 1) 10%,
2794
+ rgba(0, 0, 0, 1) 90%,
2795
+ rgba(0, 0, 0, 0) 100%
2796
+ );
2797
+ }
2798
+ :host([scrollable][direction="column"].shadow-top) {
2799
+ -webkit-mask-image: linear-gradient(
2800
+ to bottom,
2801
+ rgba(0, 0, 0, 0),
2802
+ rgba(0, 0, 0, 1) 10%
2803
+ );
2804
+ mask-image: linear-gradient(
2805
+ to bottom,
2806
+ rgba(0, 0, 0, 0),
2807
+ rgba(0, 0, 0, 1) 10%
2808
+ );
2809
+ }
2810
+ :host([scrollable][direction="column"].shadow-bottom) {
2811
+ -webkit-mask-image: linear-gradient(
2812
+ to top,
2813
+ rgba(0, 0, 0, 0),
2814
+ rgba(0, 0, 0, 1) 10%
2815
+ );
2816
+ mask-image: linear-gradient(
2817
+ to top,
2818
+ rgba(0, 0, 0, 0),
2819
+ rgba(0, 0, 0, 1) 10%
2820
+ );
2821
+ }
2822
+ :host([scrollable][direction="column"].shadow-top.shadow-bottom) {
2823
+ -webkit-mask-image: linear-gradient(
2824
+ to top,
2825
+ rgba(0, 0, 0, 0) 0%,
2826
+ rgba(0, 0, 0, 1) 10%,
2827
+ rgba(0, 0, 0, 1) 90%,
2828
+ rgba(0, 0, 0, 0) 100%
2829
+ );
2830
+ mask-image: linear-gradient(
2831
+ to bottom,
2832
+ rgba(0, 0, 0, 0) 0%,
2833
+ rgba(0, 0, 0, 1) 10%,
2834
+ rgba(0, 0, 0, 1) 90%,
2835
+ rgba(0, 0, 0, 0) 100%
2836
+ );
2837
+ }
2838
+ `],yt([a({type:String,reflect:!0})],dt.prototype,"size",2),yt([a({type:String,reflect:!0})],dt.prototype,"direction",2),yt([a({type:String})],dt.prototype,"gap",2),yt([a({type:String,reflect:!0})],dt.prototype,"align",2),yt([a({type:String,reflect:!0})],dt.prototype,"shadow",2),yt([a({type:String})],dt.prototype,"moreShape",2),yt([a({type:Boolean})],dt.prototype,"scrollable",2),yt([a({type:String})],dt.prototype,"minWidth",2),yt([se("menu")],dt.prototype,"menu",2),yt([ie({selector:"sonic-menu-item"})],dt.prototype,"menuChildren",2),yt([ie({slot:"more",selector:"*"})],dt.prototype,"moreElements",2),yt([j()],dt.prototype,"hasMoreElements",2),dt=yt([_(Nl)],dt);var Tl=Object.defineProperty,jl=Object.getOwnPropertyDescriptor,$r=(r,t,s,i)=>{for(var e=i>1?void 0:i?jl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Tl(t,s,e),e};const Ml="sonic-modal-actions";let Os=class extends w{firstUpdated(r){var t;(t=this.buttons)==null||t.forEach(s=>{s.addEventListener("click",()=>{if(s.getAttribute("hideModal")!="false"){const i=pe.getClosestElement(this,"sonic-modal");i==null||i.hide()}})}),super.firstUpdated(r)}render(){return g`<slot></slot>`}};Os.styles=[$`
2839
+ :host {
2840
+ display: flex;
2841
+ gap: 0.5rem;
2842
+ margin-top: auto;
2843
+ padding-top: 1.5rem;
2844
+ }
2845
+ `],$r([ie({selector:"sonic-button"})],Os.prototype,"buttons",2),Os=$r([_(Ml)],Os);var Il=Object.defineProperty,zl=Object.getOwnPropertyDescriptor,Cr=(r,t,s,i)=>{for(var e=i>1?void 0:i?zl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Il(t,s,e),e};const Fl="sonic-modal-close";let Ds=class extends w{render(){return g`<sonic-button reset=${x(this.reset)} shape="circle" @click=${this.handleClick}
2846
+ ><sonic-icon name="cancel" size="lg"></sonic-icon
2847
+ ></sonic-button>`}handleClick(){Q.getClosestElement(this,"sonic-modal").hide()}};Ds.styles=[$`
2848
+ :host {
2849
+ position: sticky;
2850
+ display: block;
2851
+ align-self: flex-end;
2852
+ height: 0;
2853
+ top: 0.5rem;
2854
+ right: 0.5rem;
2855
+ transform: translate3d(calc(var(--sc-modal-px)), calc(-1 * var(--sc-modal-py)), 0);
2856
+ z-index: 20;
2857
+ }
2858
+ `],Cr([a()],Ds.prototype,"reset",2),Ds=Cr([_(Fl)],Ds);var Rl=Object.defineProperty,Ul=Object.getOwnPropertyDescriptor,Vl=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ul(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Rl(t,s,e),e};const Bl="sonic-modal-content";let ui=class extends w{render(){return g`<slot></slot>`}};ui.styles=[$`
2859
+ :host {
2860
+ display: block;
2861
+ width: 100%;
2862
+ }
2863
+ `],ui=Vl([_(Bl)],ui);var Hl=Object.defineProperty,ql=Object.getOwnPropertyDescriptor,Wl=(r,t,s,i)=>{for(var e=i>1?void 0:i?ql(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Hl(t,s,e),e};const Kl="sonic-modal-subtitle";let fi=class extends w{render(){return g`<slot></slot>`}};fi.styles=[$`
2864
+ :host {
2865
+ font-size: 1.1rem;
2866
+ display: block;
2867
+ line-height: 1.1rem;
2868
+ line-height: var(--sc-headings-line-height);
2869
+ font-family: var(--sc-headings-font-family);
2870
+ font-weight: var(--sc-headings-font-weight);
2871
+ }
2872
+ `],fi=Wl([_(Kl)],fi);var Zl=Object.defineProperty,Yl=Object.getOwnPropertyDescriptor,Gl=(r,t,s,i)=>{for(var e=i>1?void 0:i?Yl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Zl(t,s,e),e};const Ql="sonic-modal-title";let gi=class extends w{render(){return g`<slot></slot>`}};gi.styles=[$`
2873
+ :host {
2874
+ font-weight: bold;
2875
+ font-size: 1.5rem;
2876
+ display: block;
2877
+ line-height: var(--sc-headings-line-height);
2878
+ font-family: var(--sc-headings-font-family);
2879
+ }
2880
+ `],gi=Gl([_(Ql)],gi);var Jl=Object.defineProperty,Xl=Object.getOwnPropertyDescriptor,st=(r,t,s,i)=>{for(var e=i>1?void 0:i?Xl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Jl(t,s,e),e};const Ar="sonic-modal";let U=class extends Y(w){constructor(){super(...arguments),this.forceAction=!1,this.removeOnHide=!1,this.removeHashOnHide=!1,this.align="left",this.padding="var(--sc-modal-py) var(--sc-modal-px)",this.maxWidth="var(--sc-modal-max-w) ",this.maxHeight="var(--sc-modal-max-h) ",this.width="100%",this.height="auto",this.zIndex="var(--sc-modal-z-index)",this.fullScreen=!1,this.visible=!1}static create(r){const t=document.createElement(Ar);return t.options=r,r.removeHashOnHide===!0&&t.setAttribute("removeHashOnHide","true"),r.removeOnHide===!0&&t.setAttribute("removeOnHide","true"),r.maxWidth&&(t.maxWidth=r==null?void 0:r.maxWidth),r.width&&(t.width=r==null?void 0:r.width),r.maxHeight&&(t.maxHeight=r==null?void 0:r.maxHeight),r.height&&(t.height=r==null?void 0:r.height),r.forceAction&&(t.forceAction=!0),r.paddingX&&t.style.setProperty("--sc-modal-px",r==null?void 0:r.paddingX),r.paddingY&&t.style.setProperty("--sc-modal-py",r==null?void 0:r.paddingY),r.zIndex&&t.style.setProperty("--sc-modal-z-index",r==null?void 0:r.zIndex),bt.getPopContainer().appendChild(t),t.show(),t}connectedCallback(){U.modals.push(this),super.connectedCallback(),this.handleFullsceen()}disconnectedCallback(){U.modals.splice(U.modals.indexOf(this),1),super.disconnectedCallback()}updated(){const r=this;document.addEventListener("keydown",this.handleEscape),r.closeBtn.forEach(t=>{t.addEventListener("click",function(){r.hide()},{once:!0})})}willUpdate(r){r.has("fullScreen")&&this.handleFullsceen(),super.willUpdate(r)}render(){var s;if(this.visible==!1)return C;const r={padding:this.padding,maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,zIndex:this.zIndex,borderRadius:this.fullScreen?"0":"var(--sc-modal-rounded)"},t={maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,borderRadius:this.fullScreen?"0":"var(--sc-modal-rounded)"};return g`<div
2881
+ class="modal-wrapper"
2882
+ style=${pt(t)}
2883
+ ${ms({out:Bo})}
2884
+ tabindex="0"
2885
+ >
2886
+ <div
2887
+ part="modal"
2888
+ class="modal custom-scroll"
2889
+ style=${pt(r)}
2890
+ ${ms({keyframeOptions:{duration:400,easing:"cubic-bezier(0.250, 0.250, 0.420, 1.225)"},in:[{transform:"translateY(25%) scale(1)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}],out:[{transform:"translateY(20%) scale(1)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}]})}
2891
+ >
2892
+ <div class="modal-content">
2893
+ ${(s=this.options)!=null&&s.forceAction?C:g`<sonic-modal-close></sonic-modal-close>`}
2894
+ ${this.modalFragment("title")} ${this.modalFragment("subtitle")}
2895
+ ${this.modalFragment("content")} ${this.modalFragment("actions")}
2896
+
2897
+ <slot></slot>
2898
+ </div>
2899
+ </div>
2900
+ </div>
2901
+ <div
2902
+ class="overlay"
2903
+ @click="${this.forceAction?null:this.hide}"
2904
+ ${ms({keyframeOptions:{duration:500},in:Ho,out:[{opacity:0,pointerEvents:"none"}]})}
2905
+ ></div>`}modalFragment(r){var i;const t=(i=this.options)==null?void 0:i[r];if(!t)return C;let s;switch(t instanceof Object?s=t:s=I(t),r){case"title":return g`<sonic-modal-title>${s}</sonic-modal-title>`;case"subtitle":return g`<sonic-modal-subtitle>${s}</sonic-modal-subtitle>`;case"content":return g`<sonic-modal-content>${s}</sonic-modal-content>`;case"actions":return g`<sonic-modal-actions>${s}</sonic-modal-actions>`;default:return C}}show(){var r,t;this.visible=!0,(r=this.modalElement)==null||r.setAttribute("tabindex","0"),(t=this.modalElement)==null||t.focus(),this.dispatchEvent(new CustomEvent("show"))}hide(){var r;this.visible=!1,(r=this.modalElement)==null||r.setAttribute("tabindex","-1"),this.dispatchEvent(new CustomEvent("hide")),this.hasAttribute("resetDataProviderOnHide")&&tt.get(this.getAttribute("resetDataProviderOnHide")).set({}),this.removeOnHide&&this.remove(),setTimeout(()=>{this.dispatchEvent(new CustomEvent("hidden")),this.removeHashOnHide&&window.history.replaceState({},"",window.location.pathname)},480)}dispose(){this.hide(),this.remove()}static disposeAll(){U.modals.forEach(r=>{r.dispose()})}handleEscape(r){r.key==="Escape"&&U.modals.forEach(t=>{t.forceAction||t.hide()})}handleFullsceen(){this.fullScreen&&(this.width="100%",this.height="100%",this.maxWidth="none",this.maxHeight="none")}};U.styles=[Ye,$`
2906
+ :host {
2907
+ --sc-modal-py: 2.5rem;
2908
+ --sc-modal-px: 1.5rem;
2909
+ --sc-modal-max-w: min(100vw, 40rem);
2910
+ --sc-modal-max-h: 85vh;
2911
+ --sc-modal-rounded: var(--sc-rounded-lg);
2912
+ --sc-modal-z-index: 990;
2913
+ }
2914
+
2915
+ * {
2916
+ box-sizing: border-box;
2917
+ }
2918
+
2919
+ .modal-wrapper {
2920
+ position: fixed;
2921
+ bottom: 0;
2922
+ left: 0;
2923
+ width: 100%;
2924
+ z-index: calc(var(--sc-modal-z-index) + 1);
2925
+ align-items: center;
2926
+ justify-content: center;
2927
+ flex-direction: column;
2928
+ display: flex;
2929
+ pointer-events: none;
2930
+ }
2931
+
2932
+ .modal-content {
2933
+ display: flex;
2934
+ flex-direction: column;
2935
+ min-height: 10rem;
2936
+ line-height: 1.25;
2937
+ }
2938
+
2939
+ .modal {
2940
+ background: var(--sc-base);
2941
+ color: var(--sc-base-content);
2942
+ width: 100%;
2943
+ box-shadow: var(--sc-shadow-lg);
2944
+ border-radius: var(--sc-modal-rounded) var(--sc-modal-rounded) 0 0;
2945
+ pointer-events: auto;
2946
+ /*overflow: hidden;*/
2947
+ transform: translateZ(0);
2948
+ }
2949
+
2950
+ .overlay {
2951
+ background: var(--sc-modal-overlay-bg, var(--sc-base-200));
2952
+ left: 0;
2953
+ top: 0;
2954
+ right: 0;
2955
+ bottom: 0;
2956
+ z-index: var(--sc-modal-z-index);
2957
+ opacity: 0.8;
2958
+ position: fixed;
2959
+ }
2960
+
2961
+ ::slotted(sonic-modal-title),
2962
+ sonic-modal-title {
2963
+ margin-bottom: 1.25rem;
2964
+ }
2965
+ :host([align="left"]) ::slotted(sonic-modal-title),
2966
+ :host([align="left"]) sonic-modal-title {
2967
+ padding-right: 1em;
2968
+ }
2969
+
2970
+ ::slotted(sonic-modal-subtitle),
2971
+ sonic-modal-subtitle {
2972
+ margin-top: -0.9rem;
2973
+ margin-bottom: 1.25rem;
2974
+ }
2975
+
2976
+ @media (max-width: 767.5px) {
2977
+ .modal-wrapper,
2978
+ .modal {
2979
+ max-width: none !important;
2980
+ width: 100% !important;
2981
+ border-radius: var(--sc-modal-rounded) var(--sc-modal-rounded) 0 0 !important;
2982
+ }
2983
+ }
2984
+
2985
+ @media (min-width: 768px) {
2986
+ .modal-wrapper {
2987
+ top: 50%;
2988
+ left: 50%;
2989
+ bottom: auto;
2990
+ right: auto;
2991
+ transform: translateX(-50%) translateY(-50%);
2992
+ }
2993
+
2994
+ .modal {
2995
+ top: 50%;
2996
+ bottom: auto;
2997
+ right: auto;
2998
+ border-radius: var(--sc-modal-rounded);
2999
+ }
3000
+ }
3001
+
3002
+ :host([align="left"]) .modal-content {
3003
+ text-align: left;
3004
+ align-items: flex-start;
3005
+ }
3006
+
3007
+ :host([align="center"]) .modal-content {
3008
+ text-align: center;
3009
+ align-items: center;
3010
+ }
3011
+
3012
+ :host([align="right"]) .modal-content {
3013
+ text-align: right;
3014
+ align-items: flex-end;
3015
+ }
3016
+
3017
+ /* Border radius */
3018
+ :host([rounded="none"]) modal {
3019
+ --sc-img-radius: 0 !important;
3020
+ }
3021
+ `],U.modals=[],st([a({type:Boolean})],U.prototype,"forceAction",2),st([a({type:Boolean})],U.prototype,"removeOnHide",2),st([a({type:Boolean})],U.prototype,"removeHashOnHide",2),st([a({type:String,reflect:!0})],U.prototype,"align",2),st([a({type:String})],U.prototype,"padding",2),st([a({type:String})],U.prototype,"maxWidth",2),st([a({type:String})],U.prototype,"maxHeight",2),st([a({type:String})],U.prototype,"width",2),st([a({type:String})],U.prototype,"height",2),st([a({type:String})],U.prototype,"zIndex",2),st([a({type:Object})],U.prototype,"options",2),st([a({type:Boolean,reflect:!0})],U.prototype,"fullScreen",2),st([a({type:Boolean,reflect:!0})],U.prototype,"visible",2),st([se(".modal-wrapper")],U.prototype,"modalWrapper",2),st([se(".modal")],U.prototype,"modalElement",2),st([ie({selector:"sonic-modal-close"})],U.prototype,"closeBtn",2),U=st([_(Ar)],U),typeof window<"u"&&(window.SonicModal=U);var tc=Object.defineProperty,ec=Object.getOwnPropertyDescriptor,Nt=(r,t,s,i)=>{for(var e=i>1?void 0:i?ec(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&tc(t,s,e),e};const sc={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"},ic="sonic-alert";let $t=class extends w{constructor(){super(...arguments),this.label="",this.noIcon=!1,this.text="",this.id=new Date().getTime().toString(),this.dismissible=!1,this.background=!1,this.status="default",this.dismissForever=!1}render(){if(this.dismissForever){const r=localStorage.getItem("sonic-alert-dismissed")||"{}";if(JSON.parse(r)[this.id])return C}return g`<div part="alert" class="alert">
3022
+ <slot name="icon" class="${this.noIcon?"hidden":C}"
3023
+ >${this.noIcon?C:g`<div>${this.status&&g`<sonic-icon name=${sc[this.status]}></sonic-icon>`}</div>`}</slot
3024
+ >
3025
+ <div>
3026
+ ${this.label?g`<span class="label">${I(this.label)}</span>`:C}
3027
+ <div>${this.text}<slot></slot></div>
3028
+ </div>
3029
+ ${this.dismissible?g`<sonic-button @click=${this.close} class="close-btn" variant="unstyled" shape="circle">
3030
+ <sonic-icon name="cancel" size="lg"></sonic-icon>
3031
+ </sonic-button>`:C}
3032
+ </div>`}close(){if(this.remove(),this.dismissForever){const r=localStorage.getItem("sonic-alert-dismissed")||"{}",t=JSON.parse(r);t[this.id]=!0,localStorage.setItem("sonic-alert-dismissed",JSON.stringify(t))}}};$t.styles=[St,$`
3033
+ :host {
3034
+ --sc-alert-color: var(--sc-base-content);
3035
+ --sc-alert-rounded: var(--sc-rounded);
3036
+ --sc-alert-fw: var(--sc-font-weight-base);
3037
+ --sc-alert-fst: var(--sc-font-style-base);
3038
+ --sc-alert-label-fw: bold;
3039
+ display: block;
3040
+ font-weight: var(--sc-alert-fw);
3041
+ font-style: var(--sc-alert-fst);
3042
+ }
3043
+
3044
+ .alert {
3045
+ color: var(--sc-alert-color);
3046
+ position: relative;
3047
+ display: flex;
3048
+ gap: 0.4em;
3049
+ border-radius: var(--sc-alert-rounded);
3050
+ overflow: hidden;
3051
+ }
3052
+
3053
+ .label {
3054
+ font-weight: var(--sc-alert-label-fw);
3055
+ margin-bottom: 0.15em;
3056
+ display: block;
3057
+ }
3058
+
3059
+ :host([status="warning"]) {
3060
+ --sc-alert-color: var(--sc-warning);
3061
+ }
3062
+ :host([status="error"]) {
3063
+ --sc-alert-color: var(--sc-danger);
3064
+ }
3065
+ :host([status="info"]) {
3066
+ --sc-alert-color: var(--sc-info);
3067
+ }
3068
+ :host([status="success"]) {
3069
+ --sc-alert-color: var(--sc-success);
3070
+ }
3071
+
3072
+ /*background*/
3073
+ :host([dismissible]) .alert,
3074
+ :host([background]) .alert {
3075
+ background: var(--sc-base);
3076
+ padding: 0.8em 1.15em;
3077
+ }
3078
+ :host([dismissible]) .alert:before,
3079
+ :host([background]) .alert:before {
3080
+ background-color: currentColor;
3081
+ content: "";
3082
+ display: block;
3083
+ position: absolute;
3084
+ left: 0;
3085
+ top: 0;
3086
+ right: 0;
3087
+ bottom: 0;
3088
+ opacity: 0.08;
3089
+ border-radius: var(--sc-alert-rounded);
3090
+ pointer-events: none;
3091
+ }
3092
+ :host([dismissible]) > div,
3093
+ :host([background]) > div {
3094
+ z-index: 2;
3095
+ position: relative;
3096
+ }
3097
+
3098
+ slot {
3099
+ display: block;
3100
+ }
3101
+
3102
+ .hidden {
3103
+ display: none !important;
3104
+ }
3105
+
3106
+ /*Rounded*/
3107
+ :host([size="xs"]) .alert {
3108
+ --sc-alert-rounded: var(--sc-rounded-sm);
3109
+ }
3110
+ :host([size="sm"]) .alert {
3111
+ --sc-alert-rounded: var(--sc-rounded-sm);
3112
+ }
3113
+
3114
+ /*Dismissible*/
3115
+ :host([dismissible]) .alert {
3116
+ padding-right: 3rem;
3117
+ }
3118
+ :host([dismissible]) .close-btn {
3119
+ padding: 0.5em;
3120
+ position: absolute;
3121
+ top: 0.25rem;
3122
+ right: 0.25rem;
3123
+ }
3124
+ `],Nt([a({type:String})],$t.prototype,"label",2),Nt([a({type:Boolean,reflect:!0})],$t.prototype,"noIcon",2),Nt([a({type:String})],$t.prototype,"text",2),Nt([a({type:String})],$t.prototype,"id",2),Nt([a({type:String,reflect:!0})],$t.prototype,"size",2),Nt([a({type:Boolean,reflect:!0})],$t.prototype,"dismissible",2),Nt([a({type:Boolean,reflect:!0})],$t.prototype,"background",2),Nt([a({type:String,reflect:!0})],$t.prototype,"status",2),Nt([a({type:Boolean,reflect:!0})],$t.prototype,"dismissForever",2),$t=Nt([_(ic)],$t);var rc=Object.defineProperty,oc=Object.getOwnPropertyDescriptor,Sr=(r,t,s,i)=>{for(var e=i>1?void 0:i?oc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&rc(t,s,e),e};const nc="sonic-toast-message-subscriber";let mi=class extends Y(w){constructor(){super(...arguments),this._messages=[]}get messages(){return this._messages}set messages(r){this._messages=r,this.messages&&r.forEach(t=>{t.type=="public"&&T.add({text:t.content||"",status:t.status})})}render(){return C}};Sr([a({type:Array})],mi.prototype,"messages",1),mi=Sr([_(nc)],mi);var ac=Object.defineProperty,lc=Object.getOwnPropertyDescriptor,es=(r,t,s,i)=>{for(var e=i>1?void 0:i?lc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ac(t,s,e),e};const cc="sonic-tooltip";let ye=class extends w{constructor(){super(...arguments),this.label="",this.disabled=!1,this.focusable=!1}connectedCallback(){this.focusable&&this.setAttribute("tabindex","0"),super.connectedCallback()}render(){const r=this.disabled||this.label==""?"disabled":"";return g`<div
3125
+ data-tooltip-text="${this.label.trim().replace("&nbsp;"," ")}"
3126
+ class="tooltip ${r}"
3127
+ >
3128
+ <slot></slot>
3129
+ </div>`}};ye.styles=[$`
3130
+ :host {
3131
+ position: relative;
3132
+ display: inline-flex;
3133
+ align-items: center;
3134
+ text-align: center;
3135
+ --sc-tooltip-fw: var(--sc-font-weight-base);
3136
+ --sc-tooltip-position: calc(100% + 0.25rem);
3137
+ }
3138
+
3139
+ .tooltip:before {
3140
+ position: absolute;
3141
+ content: attr(data-tooltip-text);
3142
+ font-size: 0.85rem;
3143
+ display: block;
3144
+ opacity: 0;
3145
+ pointer-events: none;
3146
+ background: var(--sc-base-content, #111827);
3147
+ padding: 0.32rem 0.55rem;
3148
+ border-radius: var(--sc-rounded);
3149
+ color: var(--sc-base, #fff);
3150
+ z-index: 999;
3151
+ line-height: 1.1;
3152
+ width: max-content;
3153
+ max-width: 18rem;
3154
+ white-space: pre-line;
3155
+ font-weight: var(--sc-tooltip-fw);
3156
+ transition: 0.2s;
3157
+ scale: 0.9;
3158
+ will-change: opacity, transform;
3159
+ }
3160
+ :host(:focus-within) .tooltip:not(.disabled):before,
3161
+ .tooltip:not(.disabled):hover:before {
3162
+ opacity: 1;
3163
+ scale: 1;
3164
+ }
3165
+
3166
+ :host(:not([placement])) .tooltip:before,
3167
+ :host([placement="top"]) .tooltip:before {
3168
+ bottom: var(--sc-tooltip-position);
3169
+ left: 50%;
3170
+ transform: translateX(-50%);
3171
+ }
3172
+
3173
+ :host([placement="top-end"]) .tooltip:before {
3174
+ bottom: var(--sc-tooltip-position);
3175
+ right: 0;
3176
+ }
3177
+ :host([placement="top-start"]) .tooltip:before {
3178
+ bottom: var(--sc-tooltip-position);
3179
+ left: 0;
3180
+ }
3181
+
3182
+ :host([placement="bottom"]) .tooltip:before {
3183
+ top: var(--sc-tooltip-position);
3184
+ left: 50%;
3185
+ transform: translateX(-50%);
3186
+ }
3187
+
3188
+ :host([placement="bottom-start"]) .tooltip:before {
3189
+ top: var(--sc-tooltip-position);
3190
+ left: 0;
3191
+ }
3192
+ :host([placement="bottom-end"]) .tooltip:before {
3193
+ top: var(--sc-tooltip-position);
3194
+ right: 0;
3195
+ }
3196
+
3197
+ :host([placement="left"]) .tooltip:before {
3198
+ top: 50%;
3199
+ right: var(--sc-tooltip-position);
3200
+ transform: translateY(-50%);
3201
+ }
3202
+
3203
+ :host([placement="left-start"]) .tooltip:before {
3204
+ top: 0;
3205
+ right: var(--sc-tooltip-position);
3206
+ }
3207
+
3208
+ :host([placement="left-end"]) .tooltip:before {
3209
+ bottom: 0;
3210
+ right: var(--sc-tooltip-position);
3211
+ }
3212
+
3213
+ :host([placement="right"]) .tooltip:before {
3214
+ top: 50%;
3215
+ transform: translateY(-50%);
3216
+ left: var(--sc-tooltip-position);
3217
+ }
3218
+
3219
+ :host([placement="right-start"]) .tooltip:before {
3220
+ top: 0;
3221
+ left: var(--sc-tooltip-position);
3222
+ }
3223
+
3224
+ :host([placement="right-end"]) .tooltip:before {
3225
+ bottom: 0;
3226
+ left: var(--sc-tooltip-position);
3227
+ }
3228
+ `],es([a({type:String})],ye.prototype,"label",2),es([a({type:String,reflect:!0})],ye.prototype,"placement",2),es([a({type:Boolean})],ye.prototype,"disabled",2),es([a({type:Boolean})],ye.prototype,"focusable",2),ye=es([_(cc)],ye);var hc=Object.defineProperty,dc=Object.getOwnPropertyDescriptor,Tt=(r,t,s,i)=>{for(var e=i>1?void 0:i?dc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&hc(t,s,e),e};const pc="sonic-divider";let Ct=class extends w{constructor(){super(...arguments),this.label="",this.align="center",this.vertical=!1,this.noMargin=!1,this.dashed=!1,this.dotted=!1}firstUpdated(r){var t,s;super.firstUpdated(r),(this.label||(t=this.slotNodes)!=null&&t.length)&&((s=this.divider)==null||s.classList.add("has-text"))}render(){return g`<div part="divider">
3229
+ <span class="text">${I(this.label?this.label:"")}<slot></slot></span>
3230
+ </div>`}};Ct.styles=[$`
3231
+ :host {
3232
+ --sc-divider-my: 0.5rem;
3233
+ --sc-divider-mx: 0;
3234
+ --sc-divider-border-width: max(1px, var(--sc-border-width));
3235
+ --sc-divider-border-color: var(--sc-border-color);
3236
+ --sc-divider-border-style: solid;
3237
+ --sc-divider-color: currentColor;
3238
+ --sc-divider-ff: var(--sc-font-family-base);
3239
+ --sc-divider-fs: 1rem;
3240
+ --sc-divider-fw: var(--sc-font-weight-base);
3241
+ --sc-divider-fst: var(--sc-font-style-base);
3242
+
3243
+ margin: var(--sc-divider-my) var(--sc-divider-mx);
3244
+ font-size: var(--sc-divider-fs);
3245
+ font-style: var(--sc-divider-fst);
3246
+ font-family: var(--sc-divider-ff);
3247
+ font-weight: var(--sc-divider-fw);
3248
+ color: var(--sc-divider-color);
3249
+ display: block;
3250
+ }
3251
+
3252
+ /*SIZE*/
3253
+ :host([size="2xs"]) {
3254
+ --sc-divider-my: 0.35rem;
3255
+ --sc-divider-fs: 0.68rem;
3256
+ }
3257
+
3258
+ :host([size="xs"]) {
3259
+ --sc-divider-my: 0.5rem;
3260
+ --sc-divider-fs: 0.75rem;
3261
+ }
3262
+
3263
+ :host([size="sm"]) {
3264
+ --sc-divider-my: 0.75rem;
3265
+ --sc-divider-fs: 0.875rem;
3266
+ }
3267
+
3268
+ :host([size="md"]) {
3269
+ --sc-divider-my: 1.25rem;
3270
+ }
3271
+
3272
+ :host([size="lg"]) {
3273
+ --sc-divider-my: 1.85rem;
3274
+ }
3275
+
3276
+ :host([size="xl"]) {
3277
+ --sc-divider-my: 2.25rem;
3278
+ }
3279
+
3280
+ :host([size="2xl"]) {
3281
+ --sc-divider-my: 3.35rem;
3282
+ }
3283
+
3284
+ div {
3285
+ display: flex;
3286
+ align-items: center;
3287
+ width: 100%;
3288
+ }
3289
+
3290
+ div::before,
3291
+ div::after {
3292
+ content: "";
3293
+ flex-grow: 1;
3294
+ border-top: var(--sc-divider-border-width) var(--sc-divider-border-style) var(--sc-divider-border-color);
3295
+ width: 100%;
3296
+ opacity: var(--sc-divider-opacity, 1);
3297
+ }
3298
+
3299
+ /*ALIGNEMENT*/
3300
+ :host([align="left"]) div:before {
3301
+ display: none;
3302
+ }
3303
+
3304
+ :host([align="right"]) div:after {
3305
+ display: none;
3306
+ }
3307
+
3308
+ :host([vertical]) {
3309
+ margin: var(--sc-divider-mx) var(--sc-divider-my);
3310
+ }
3311
+
3312
+ :host([vertical]) div {
3313
+ flex-direction: column;
3314
+ height: 100%;
3315
+ min-height: var(--sc-form-height);
3316
+ }
3317
+
3318
+ :host([vertical]) .has-text {
3319
+ gap: 0.25rem;
3320
+ }
3321
+
3322
+ :host([vertical]) div::before,
3323
+ :host([vertical]) div::after {
3324
+ border-top: none;
3325
+ border-left: var(--sc-divider-border-width) var(--sc-divider-border-style) var(--sc-divider-border-color);
3326
+ width: auto;
3327
+ height: 100%;
3328
+ opacity: var(--sc-divider-opacity, 1);
3329
+ }
3330
+
3331
+ :host([noMargin]) {
3332
+ margin: 0;
3333
+ }
3334
+
3335
+ /*TEXT*/
3336
+ .text {
3337
+ flex-shrink: 0;
3338
+ line-height: 1.1;
3339
+ max-width: 80%;
3340
+ }
3341
+
3342
+ .no-text .text {
3343
+ display: none;
3344
+ }
3345
+
3346
+ .has-text {
3347
+ gap: 0.5rem;
3348
+ }
3349
+
3350
+ :host([dotted]) {
3351
+ --sc-divider-border-style: dotted;
3352
+ }
3353
+ :host([dashed]) {
3354
+ --sc-divider-border-style: dashed;
3355
+ }
3356
+ `],Tt([it({flatten:!0})],Ct.prototype,"slotNodes",2),Tt([se("div")],Ct.prototype,"divider",2),Tt([a({type:String})],Ct.prototype,"label",2),Tt([a({type:String,reflect:!0})],Ct.prototype,"size",2),Tt([a({type:String,reflect:!0})],Ct.prototype,"align",2),Tt([a({type:Boolean,reflect:!0})],Ct.prototype,"vertical",2),Tt([a({type:Boolean,reflect:!0})],Ct.prototype,"noMargin",2),Tt([a({type:Boolean,reflect:!0})],Ct.prototype,"dashed",2),Tt([a({type:Boolean,reflect:!0})],Ct.prototype,"dotted",2),Ct=Tt([_(pc)],Ct);var uc=Object.defineProperty,fc=Object.getOwnPropertyDescriptor,gc=(r,t,s,i)=>{for(var e=i>1?void 0:i?fc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&uc(t,s,e),e};const mc="sonic-card-header-description";let bi=class extends w{render(){return g`
3357
+ <div>
3358
+ <slot></slot>
3359
+ </div>
3360
+ `}};bi.styles=[$`
3361
+ div {
3362
+ margin-top: 0.1em;
3363
+ font-family: var(--sc-font-family-base);
3364
+ font-size: 0.7em;
3365
+ font-weight: var(--sc-font-style-base);
3366
+ }
3367
+ `],bi=gc([_(mc)],bi);var bc=Object.defineProperty,vc=Object.getOwnPropertyDescriptor,vi=(r,t,s,i)=>{for(var e=i>1?void 0:i?vc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&bc(t,s,e),e};const yc="sonic-card-header";let ss=class extends w{render(){return g`
3368
+ <div class="header">
3369
+ <div class="header-content">
3370
+ ${I(this.label)}
3371
+ ${this.description?g`<sonic-card-header-description>${I(this.description)}</sonic-card-header-description>`:""}
3372
+ <slot></slot>
3373
+ </div>
3374
+ <slot name="suffix"></slot>
3375
+ </div>
3376
+ `}};ss.styles=[$`
3377
+ :host {
3378
+ --sc-card-header-mb: 1.35rem;
3379
+ --sc-card-header-font-size: 1.875rem;
3380
+ --sc-card-header-font-weight: var(--sc-headings-font-weight);
3381
+ --sc-card-header-font-style: var(--sc-headings-font-style);
3382
+ --sc-card-header-family: var(--sc-headings-font-family);
3383
+ --sc-card-header-line-height: var(--sc-headings-line-height);
3384
+ }
3385
+ @media print {
3386
+ :host {
3387
+ --sc-card-header-font-size: 1.45rem;
3388
+ }
3389
+ }
3390
+ .header {
3391
+ display: flex;
3392
+ align-items: flex-start;
3393
+ gap: 0.5em 1em;
3394
+ margin-bottom: var(--sc-card-header-mb);
3395
+ line-height: var(--sc-card-header-line-height);
3396
+ font-family: var(--sc-card-header-font-family);
3397
+ font-size: var(--sc-card-header-font-size);
3398
+ font-style: var(--sc-card-header-font-style);
3399
+ font-weight: var(--sc-card-header-font-weight);
3400
+ }
3401
+
3402
+ .header-content {
3403
+ flex-grow: 1;
3404
+ }
3405
+
3406
+ slot[name="suffix"] {
3407
+ flex-shrink: 0;
3408
+ }
3409
+ `],vi([a()],ss.prototype,"label",2),vi([a()],ss.prototype,"description",2),ss=vi([_(yc)],ss);var wc=Object.defineProperty,_c=Object.getOwnPropertyDescriptor,xc=(r,t,s,i)=>{for(var e=i>1?void 0:i?_c(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&wc(t,s,e),e};const Pc="sonic-card-main";let Or=class extends w{render(){return g`
3410
+ <div>
3411
+ <slot></slot>
3412
+ </div>
3413
+ `}};Or=xc([_(Pc)],Or);var $c=Object.defineProperty,Cc=Object.getOwnPropertyDescriptor,Ac=(r,t,s,i)=>{for(var e=i>1?void 0:i?Cc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&$c(t,s,e),e};const Sc="sonic-card-footer";let Dr=class extends w{render(){return g` <slot></slot> `}};Dr=Ac([_(Sc)],Dr);var Oc=Object.defineProperty,Dc=Object.getOwnPropertyDescriptor,kr=(r,t,s,i)=>{for(var e=i>1?void 0:i?Dc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Oc(t,s,e),e};const kc="sonic-card";let ks=class extends w{constructor(){super(...arguments),this.type="default"}render(){return g`
3414
+ <div part="card" class="card">
3415
+ <slot></slot>
3416
+ </div>
3417
+ `}};ks.styles=[$`
3418
+ * {
3419
+ box-sizing: border-box;
3420
+ }
3421
+ :host {
3422
+ --sc-card-padding: 1.5rem;
3423
+ --sc-card-color: var(--sc-base-content);
3424
+ --sc-card-bg: var(--sc-base);
3425
+ --sc-card-rounded: var(--sc-rounded-lg);
3426
+ --sc-card-shadow: var(--sc-shadow-lg);
3427
+ -webkit-print-color-adjust: exact;
3428
+ }
3429
+
3430
+ @media print {
3431
+ .card {
3432
+ page-break-inside: avoid;
3433
+ break-inside: avoid;
3434
+ box-shadow: none !important;
3435
+ border: 1px solid var(--sc-base-200);
3436
+ }
3437
+ }
3438
+
3439
+ .card {
3440
+ padding: var(--sc-card-padding);
3441
+ background-color: var(--sc-card-bg);
3442
+ border-radius: var(--sc-card-rounded);
3443
+ box-shadow: var(--sc-card-shadow);
3444
+ color: var(--sc-card-color);
3445
+ }
3446
+
3447
+ /*TYPES*/
3448
+ :host([type="primary"]) {
3449
+ --sc-card-bg: var(--sc-primary);
3450
+ --sc-card-color: var(--sc-primary-content);
3451
+ --sc-border-color: var(--sc-primary-content);
3452
+ --sc-divider-opacity: 0.2;
3453
+ }
3454
+ :host([type="warning"]) {
3455
+ --sc-card-bg: var(--sc-warning);
3456
+ --sc-card-color: var(--sc-warning-content);
3457
+ --sc-border-color: var(--sc-primary-content);
3458
+ --sc-divider-opacity: 0.2;
3459
+ }
3460
+ :host([type="danger"]) {
3461
+ --sc-card-bg: var(--sc-danger);
3462
+ --sc-card-color: var(--sc-danger-content);
3463
+ --sc-border-color: var(--sc-primary-content);
3464
+ --sc-divider-opacity: 0.2;
3465
+ }
3466
+ :host([type="info"]) {
3467
+ --sc-card-bg: var(--sc-info);
3468
+ --sc-card-color: var(--sc-info-content);
3469
+ --sc-border-color: var(--sc-primary-content);
3470
+ --sc-divider-opacity: 0.2;
3471
+ }
3472
+ :host([type="success"]) {
3473
+ --sc-card-bg: var(--sc-success);
3474
+ --sc-card-color: var(--sc-success-content);
3475
+ --sc-border-color: var(--sc-primary-content);
3476
+ --sc-divider-opacity: 0.2;
3477
+ }
3478
+
3479
+ :host([type="light"]) {
3480
+ --sc-card-bg: var(--sc-base-100);
3481
+ --sc-card-color: var(--sc-base-content);
3482
+ }
3483
+
3484
+ :host([type="neutral"]) {
3485
+ --sc-card-bg: var(--sc-base-content);
3486
+ --sc-card-color: var(--sc-base);
3487
+ }
3488
+
3489
+ :host([type="invert"]) {
3490
+ --sc-card-color: var(--sc-base);
3491
+ --sc-card-bg: var(--sc-base-900);
3492
+ }
3493
+ `],kr([a({type:String,reflect:!0})],ks.prototype,"type",2),ks=kr([_(kc)],ks);const yi=$`
3494
+ :host {
3495
+ --sc-color: inherit;
3496
+ color: var(--sc-color);
3497
+ }
3498
+
3499
+ :host([type="primary"]) {
3500
+ --sc-color: var(--sc-primary);
3501
+ }
3502
+ :host([type="warning"]) {
3503
+ --sc-color: var(--sc-warning);
3504
+ }
3505
+ :host([type="danger"]) {
3506
+ --sc-color: var(--sc-danger);
3507
+ }
3508
+ :host([type="info"]) {
3509
+ --sc-color: var(--sc-info);
3510
+ }
3511
+ :host([type="success"]) {
3512
+ --sc-color: var(--sc-success);
3513
+ }
3514
+
3515
+ .inherit-color {
3516
+ color: var(--sc-color);
3517
+ }
3518
+ `;$`
3519
+ :host {
3520
+ --sc-color: inherit;
3521
+ --sc-bg: inherit;
3522
+ color: var(--sc-color);
3523
+ background: var(--sc-bg);
3524
+ }
3525
+
3526
+ :host([type="primary"]) {
3527
+ --sc-color: var(--sc-primary-content);
3528
+ --sc-bg: var(--sc-primary);
3529
+ }
3530
+ :host([type="warning"]) {
3531
+ --sc-color: var(--sc-warning-content);
3532
+ --sc-bg: var(--sc-warning);
3533
+ }
3534
+ :host([type="danger"]) {
3535
+ --sc-color: var(--sc-danger-content);
3536
+ --sc-bg: var(--sc-danger);
3537
+ }
3538
+ :host([type="info"]) {
3539
+ --sc-color: var(--sc-info-content);
3540
+ --sc-bg: var(--sc-info);
3541
+ }
3542
+ :host([type="success"]) {
3543
+ --sc-color: var(--sc-success-content);
3544
+ --sc-bg: var(--sc-success);
3545
+ }
3546
+
3547
+ .inherit-bg {
3548
+ color: inherit;
3549
+ }
3550
+ `;var Lc=Object.defineProperty,Ec=Object.getOwnPropertyDescriptor,is=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ec(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Lc(t,s,e),e};const Nc="sonic-tr";let we=class extends Y(w){constructor(){super(...arguments),this._metadata_={}}willUpdate(r){r.has("_metadata_")&&(this.even=!!this._metadata_.even,this.odd=!!this._metadata_.odd,this.last=!!this._metadata_.lastChild),super.willUpdate(r)}render(){return g`<slot></slot>`}};we.styles=[yi,$`
3551
+ :host {
3552
+ display: table-row;
3553
+ }
3554
+
3555
+ :host([odd]) {
3556
+ background: var(--sc-table-accent-bg) !important;
3557
+ }
3558
+ :host([even]) {
3559
+ background: var(--sc-table-bg) !important;
3560
+ }
3561
+
3562
+ :host([last]) {
3563
+ --sc-table-td-border-b: none;
3564
+ }
3565
+ :host(:hover) {
3566
+ background: var(--sc-table-hover-bg) !important;
3567
+ }
3568
+ `],is([a({type:Object})],we.prototype,"_metadata_",2),is([a({type:Boolean,reflect:!0})],we.prototype,"even",2),is([a({type:Boolean,reflect:!0})],we.prototype,"odd",2),is([a({type:Boolean,reflect:!0})],we.prototype,"last",2),we=is([_(Nc)],we);var Tc=Object.defineProperty,jc=Object.getOwnPropertyDescriptor,_e=(r,t,s,i)=>{for(var e=i>1?void 0:i?jc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Tc(t,s,e),e};const Mc="sonic-th";let Vt=class extends w{render(){const r={textAlign:this.align,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return g`<th part="th" style=${pt(r)} colspan=${x(this.colSpan)} rowspan=${x(this.rowSpan)}>
3569
+ <slot></slot>
3570
+ </th> `}};Vt.styles=[yi,$`
3571
+ :host {
3572
+ display: contents;
3573
+ background: var(--sc-table-bg);
3574
+ position: sticky;
3575
+ top: 0;
3576
+ z-index: 20;
3577
+ }
3578
+
3579
+ th {
3580
+ all: inherit;
3581
+ display: table-cell;
3582
+ border-bottom: calc(var(--sc-border-width) * 1.5) solid var(--sc-table-border-color);
3583
+ text-transform: var(--sc-table-th-tt);
3584
+ font-weight: var(--sc-table-th-fw);
3585
+ font-size: var(--sc-table-th-fs);
3586
+ padding: var(--sc-table-th-py) var(--sc-table-th-px);
3587
+ }
3588
+
3589
+ :host([noBorder]) th {
3590
+ border-bottom: none;
3591
+ }
3592
+ `],_e([a({type:Number})],Vt.prototype,"colSpan",2),_e([a({type:Number})],Vt.prototype,"rowSpan",2),_e([a({type:String})],Vt.prototype,"align",2),_e([a({type:String})],Vt.prototype,"minWidth",2),_e([a({type:String})],Vt.prototype,"maxWidth",2),_e([a({type:String})],Vt.prototype,"width",2),Vt=_e([_(Mc)],Vt);var Ic=Object.defineProperty,zc=Object.getOwnPropertyDescriptor,Xt=(r,t,s,i)=>{for(var e=i>1?void 0:i?zc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ic(t,s,e),e};const Fc="sonic-td";let jt=class extends w{render(){const r={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return g`<td part="td" style=${pt(r)} colspan=${x(this.colSpan)} rowspan=${x(this.rowSpan)}>
3593
+ <slot></slot>
3594
+ </td>`}};jt.styles=[yi,$`
3595
+ :host {
3596
+ display: contents;
3597
+ }
3598
+ td {
3599
+ all: inherit;
3600
+ display: table-cell;
3601
+ padding: var(--sc-table-td-py) var(--sc-table-td-px);
3602
+ border-top: var(--sc-table-td-border-t, none);
3603
+ border-bottom: var(--sc-table-td-border-b, none);
3604
+ border-right: var(--sc-table-td-border-r, none);
3605
+ border-left: var(--sc-table-td-border-l, none);
3606
+ }
3607
+ `],Xt([a({type:Number})],jt.prototype,"colSpan",2),Xt([a({type:Number})],jt.prototype,"rowSpan",2),Xt([a({type:String})],jt.prototype,"align",2),Xt([a({type:String})],jt.prototype,"vAlign",2),Xt([a({type:String})],jt.prototype,"minWidth",2),Xt([a({type:String})],jt.prototype,"maxWidth",2),Xt([a({type:String})],jt.prototype,"width",2),jt=Xt([_(Fc)],jt);var Rc=Object.defineProperty,Uc=Object.getOwnPropertyDescriptor,Vc=(r,t,s,i)=>{for(var e=i>1?void 0:i?Uc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Rc(t,s,e),e};const Bc="sonic-thead";let wi=class extends w{render(){return g`<slot></slot>`}};wi.styles=[$`
3608
+ :host {
3609
+ display: table-header-group;
3610
+ }
3611
+ `],wi=Vc([_(Bc)],wi);var Hc=Object.defineProperty,qc=Object.getOwnPropertyDescriptor,Wc=(r,t,s,i)=>{for(var e=i>1?void 0:i?qc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Hc(t,s,e),e};const Kc="sonic-tbody";let _i=class extends w{render(){return g`<tbody part="tbody">
3612
+ <slot></slot>
3613
+ </tbody>`}};_i.styles=[$`
3614
+ :host {
3615
+ display: table-row-group;
3616
+ }
3617
+
3618
+ ::slotted(sonic-tr:nth-child(odd)) {
3619
+ background: var(--sc-table-accent-bg);
3620
+ }
3621
+
3622
+ ::slotted(sonic-tr:hover) {
3623
+ background: var(--sc-table-hover-bg);
3624
+ }
3625
+
3626
+ ::slotted(sonic-tr:not(:last-child)) {
3627
+ border-bottom: var(--sc-form-border-width) solid var(--sc-base-200) !important;
3628
+ }
3629
+ `],_i=Wc([_(Kc)],_i);var Zc=Object.defineProperty,Yc=Object.getOwnPropertyDescriptor,Gc=(r,t,s,i)=>{for(var e=i>1?void 0:i?Yc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Zc(t,s,e),e};const Qc="sonic-tfoot";let xi=class extends w{render(){return g`<tfoot>
3630
+ <slot></slot>
3631
+ </tfoot>`}};xi.styles=[$`
3632
+ :host {
3633
+ display: contents;
3634
+ }
3635
+ `],xi=Gc([_(Qc)],xi);var Jc=Object.defineProperty,Xc=Object.getOwnPropertyDescriptor,th=(r,t,s,i)=>{for(var e=i>1?void 0:i?Xc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Jc(t,s,e),e};const eh="sonic-caption";let Pi=class extends w{render(){return g`<slot></slot>`}};Pi.styles=[$`
3636
+ :host {
3637
+ display: table-caption;
3638
+ font-size: 0.75rem;
3639
+ color: var(--sc-table-caption-color);
3640
+ padding: var(--sc-table-td-py) var(--sc-table-td-px) calc(2 * var(--sc-table-td-py));
3641
+ }
3642
+ `],Pi=th([_(eh)],Pi);var sh=Object.defineProperty,ih=Object.getOwnPropertyDescriptor,Ne=(r,t,s,i)=>{for(var e=i>1?void 0:i?ih(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&sh(t,s,e),e};const rh="sonic-table";let te=class extends w{render(){const r={maxHeight:this.maxHeight};return g`
3643
+ <div
3644
+ class="table-container ${this.noCustomScroll?"":"custom-scroll"}"
3645
+ style=${pt(r)}
3646
+ >
3647
+ <div class="table">
3648
+ <slot></slot>
3649
+ </div>
3650
+ </div>
3651
+ `}};te.styles=[Ye,St,$`
3652
+ :host {
3653
+ --sc-table-fw: var(--sc-font-weight-base);
3654
+ --sc-table-fst: var(--sc-font-style-base);
3655
+ --sc-table-fs: 1rem;
3656
+ --sc-table-border-color: var(--sc-border-color);
3657
+ --sc-table-caption-color: var(--sc-base-500);
3658
+ --sc-table-bg: var(--sc-base);
3659
+ --sc-table-accent-bg: var(--sc-base-50);
3660
+ --sc-table-hover-bg: var(--sc-base-100);
3661
+ --sc-table-th-fs: 0.85em;
3662
+ --sc-table-th-fw: bold;
3663
+ --sc-table-th-tt: uppercase;
3664
+ --sc-table-th-px: var(--sc-table-td-px);
3665
+ --sc-table-th-py: calc(1.8 * var(--sc-table-td-py));
3666
+ --sc-table-td-px: 0.5em;
3667
+ --sc-table-td-py: 0.5em;
3668
+ display: block;
3669
+ }
3670
+
3671
+ .table-container {
3672
+ overflow-x: auto;
3673
+ -webkit-overflow-scrolling: touch;
3674
+ }
3675
+
3676
+ :host([noCustomScroll]) .table-container {
3677
+ overflow: initial;
3678
+ }
3679
+
3680
+ .table {
3681
+ width: 100%;
3682
+ display: table;
3683
+ box-sizing: border-box;
3684
+ }
3685
+
3686
+ :host([bordered]) .table-container {
3687
+ border: var(--sc-border-width) solid var(--sc-table-border-color);
3688
+ border-radius: var(--sc-rounded);
3689
+ --sc-table-td-border-b: var(--sc-border-width) solid
3690
+ var(--sc-table-border-color);
3691
+ }
3692
+ `],Ne([a({type:String,reflect:!0})],te.prototype,"size",2),Ne([a({type:Boolean,reflect:!0})],te.prototype,"bordered",2),Ne([a({type:Boolean,reflect:!0})],te.prototype,"rounded",2),Ne([a({type:Boolean,reflect:!0})],te.prototype,"noCustomScroll",2),Ne([a({type:String})],te.prototype,"maxHeight",2),te=Ne([_(rh)],te);var oh=Object.defineProperty,nh=Object.getOwnPropertyDescriptor,Ls=(r,t,s,i)=>{for(var e=i>1?void 0:i?nh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&oh(t,s,e),e};const ah="sonic-captcha";let rs=class extends qt(w){constructor(){super(...arguments),this.key="",this.action=null,this.zIndex=9999,this.onCaptchaTokenChanged=r=>{r=="request_token"&&(this.formPublisher&&(this.formPublisher.captchaToken=""),this.requestToken())}}connectedCallback(){if(!document.getElementById("captcha-"+this.key)){const r=document.createElement("script");r.src="https://www.google.com/recaptcha/api.js?render="+this.key,r.id="captcha-"+this.key,document.head.appendChild(r)}if(super.connectedCallback(),this.formPublisher=tt.get(this.getAncestorAttributeValue("headersDataProvider")??this.getAncestorAttributeValue("formDataProvider")),!document.getElementById("concorde-recaptcha-css")){const r=document.createElement("style");r.innerHTML=".grecaptcha-badge {z-index: 9999;}",r.id="concorde-recaptcha-css",document.head.appendChild(r)}this.formPublisher&&!this.formPublisher.captchaToken.get()&&(this.formPublisher.needsCaptchaValidation=!0,this.formPublisher.captchaToken.onAssign(this.onCaptchaTokenChanged))}disconnectedCallback(){this.formPublisher&&(this.formPublisher.captchaToken.offAssign(this.onCaptchaTokenChanged),this.formPublisher.captchaToken=""),super.disconnectedCallback()}requestToken(){var s,i;if(!this.formPublisher)return;const r=(this.action??((s=this.formPublisher.captchaAction)==null?void 0:s.get())??"submit").replace(/[^\w_/]/g,"_"),t=(((i=this.formPublisher.captchaMethod)==null?void 0:i.get())??"POST").toUpperCase();delete this.formPublisher.captchaAction,delete this.formPublisher.captchaMethod,window.grecaptcha.ready(()=>{window.grecaptcha.execute(this.key,{action:t+"//"+r}).then(e=>{this.formPublisher&&(this.formPublisher.captchaToken=e)})})}render(){return g` <slot></slot> `}};Ls([a()],rs.prototype,"key",2),Ls([a()],rs.prototype,"action",2),Ls([a({type:Number})],rs.prototype,"zIndex",2),rs=Ls([_(ah)],rs),window.queueMicrotask=window.queueMicrotask||function(r){Promise.resolve().then(r).catch(t=>setTimeout(()=>{throw t}))};function lh(r){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(r)}function ch(r){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(r)}function Lr(r){if(r.__is__setSubscribable__)return;r.__is__setSubscribable__=!0,r.__onConnected__=lh,r.__onDisconnected__=ch;const t=r.connectedCallback;r.connectedCallback=function(){t.call(this),this.__connectedCallbackCalls__&&this.__connectedCallbackCalls__.forEach(i=>i(this))};const s=r.disconnectedCallback;r.disconnectedCallback=function(){s.call(this),this.__disconnectedCallbackCalls__&&this.__disconnectedCallbackCalls__.forEach(i=>i(this))}}function hh(r){const t=r.split(".");if(t.length==0)return function(){};const s=t.shift()||"";let i=N.get(s);return i=Ke.traverse(i,t),function(e,o){if(!e)return;let n;Lr(e),e.__onConnected__(l=>{n=c=>{l[o]=c},i.onAssign(n)}),e.__onDisconnected__(()=>{i.offAssign(n)})}}function dh(...r){const t=[],s=[];for(let i=0;i<r.length;i++){const o=r[i].split(".");if(o.length==0)continue;const n=o.shift()||"";let l=N.get(n);l=Ke.traverse(l,o);const c=new Set,h=d=>{t[i]=d,t.filter(f=>f!==null).length==r.length&&c.forEach(f=>f(...t))};s.push({publisher:l,onAssign:h,callbacks:c})}return function(i,e,o){Lr(i);let n;i.__onConnected__(l=>{for(const c of s)n=o.value.bind(l),c.callbacks.add(n),c.publisher.onAssign(c.onAssign)}),i.__onDisconnected__(()=>{for(const l of s)l.callbacks.delete(n),l.publisher.offAssign(l.onAssign)})}}window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:hh,onAssing:dh},window["concorde-directives-data-provider"]=window["concorde-directives-data-provider"]||{},window["concorde-directives-data-provider"]={dp:Gi,dataProvider:ho,sub:lo,subscribe:ao,get:co,set:po};const ph=T,uh=U;window["concorde-components"]=window["concorde-components"]||{},window["concorde-components"]={SonicToast:ph,SonicModal:uh};const fh=window;fh.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))});