@spw-ds/spw-stencil-library 1.2.0 → 1.2.2

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 (734) hide show
  1. package/dist/cjs/{index-DPoQq9TD.js → index-iVhYitTd.js} +5 -2
  2. package/dist/cjs/index-iVhYitTd.js.map +1 -0
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/spw-accordion_4.cjs.entry.js +5 -5
  5. package/dist/cjs/spw-breadcrumb-item.cjs.entry.js +2 -2
  6. package/dist/cjs/spw-breadcrumb.cjs.entry.js +2 -2
  7. package/dist/cjs/spw-button_2.cjs.entry.js +3 -3
  8. package/dist/cjs/spw-card-content.cjs.entry.js +3 -3
  9. package/dist/cjs/spw-card-content.cjs.entry.js.map +1 -1
  10. package/dist/cjs/spw-card-content.entry.cjs.js.map +1 -1
  11. package/dist/cjs/spw-card-excerpt.cjs.entry.js +3 -3
  12. package/dist/cjs/spw-card-excerpt.cjs.entry.js.map +1 -1
  13. package/dist/cjs/spw-card-excerpt.entry.cjs.js.map +1 -1
  14. package/dist/cjs/spw-card-image.cjs.entry.js +3 -3
  15. package/dist/cjs/spw-card-image.cjs.entry.js.map +1 -1
  16. package/dist/cjs/spw-card-image.entry.cjs.js.map +1 -1
  17. package/dist/cjs/spw-card-subtag-item.cjs.entry.js +2 -2
  18. package/dist/cjs/spw-card-subtags.cjs.entry.js +2 -2
  19. package/dist/cjs/spw-card-title.cjs.entry.js +5 -3
  20. package/dist/cjs/spw-card-title.cjs.entry.js.map +1 -1
  21. package/dist/cjs/spw-card-title.entry.cjs.js.map +1 -1
  22. package/dist/cjs/spw-card.cjs.entry.js +3 -3
  23. package/dist/cjs/spw-card.cjs.entry.js.map +1 -1
  24. package/dist/cjs/spw-card.entry.cjs.js.map +1 -1
  25. package/dist/cjs/spw-checkbox.cjs.entry.js +6 -3
  26. package/dist/cjs/spw-checkbox.cjs.entry.js.map +1 -1
  27. package/dist/cjs/spw-checkbox.entry.cjs.js.map +1 -1
  28. package/dist/cjs/spw-cookies.cjs.entry.js +1 -1
  29. package/dist/cjs/spw-custom-select.cjs.entry.js +23 -12
  30. package/dist/cjs/spw-custom-select.cjs.entry.js.map +1 -1
  31. package/dist/cjs/spw-custom-select.entry.cjs.js.map +1 -1
  32. package/dist/cjs/spw-date-picker.cjs.entry.js +2 -2
  33. package/dist/cjs/spw-dropdown.cjs.entry.js +2 -2
  34. package/dist/cjs/spw-field-label.spw-group.spw-icon.spw-link.spw-separator.spw-theme-provider.entry.cjs.js.map +1 -1
  35. package/dist/cjs/spw-field-label_6.cjs.entry.js +8 -8
  36. package/dist/cjs/spw-field-label_6.cjs.entry.js.map +1 -1
  37. package/dist/cjs/spw-field-message.cjs.entry.js +2 -2
  38. package/dist/cjs/spw-file-upload.cjs.entry.js +3 -3
  39. package/dist/cjs/spw-footer-bottom.cjs.entry.js +2 -2
  40. package/dist/cjs/spw-footer-content-col.cjs.entry.js +2 -2
  41. package/dist/cjs/spw-footer-content.cjs.entry.js +2 -2
  42. package/dist/cjs/spw-footer-link.cjs.entry.js +2 -2
  43. package/dist/cjs/spw-footer.cjs.entry.js +2 -2
  44. package/dist/cjs/spw-header-lang-item.cjs.entry.js +2 -2
  45. package/dist/cjs/spw-header-lang.cjs.entry.js +2 -2
  46. package/dist/cjs/spw-header-navigation-dropdown.cjs.entry.js +2 -2
  47. package/dist/cjs/spw-header-navigation-item.cjs.entry.js +2 -2
  48. package/dist/cjs/spw-header-navigation.cjs.entry.js +2 -2
  49. package/dist/cjs/spw-header-persona-item.cjs.entry.js +2 -2
  50. package/dist/cjs/spw-header-persona.cjs.entry.js +2 -2
  51. package/dist/cjs/spw-header.cjs.entry.js +2 -2
  52. package/dist/cjs/spw-hero.cjs.entry.js +6 -3
  53. package/dist/cjs/spw-hero.cjs.entry.js.map +1 -1
  54. package/dist/cjs/spw-hero.entry.cjs.js.map +1 -1
  55. package/dist/cjs/spw-illustration.cjs.entry.js +2389 -0
  56. package/dist/cjs/spw-illustration.cjs.entry.js.map +1 -0
  57. package/dist/cjs/spw-illustration.entry.cjs.js.map +1 -0
  58. package/dist/cjs/spw-iodda.cjs.entry.js +2 -2
  59. package/dist/cjs/spw-list-description.cjs.entry.js +2 -2
  60. package/dist/cjs/spw-list-item.cjs.entry.js +2 -2
  61. package/dist/cjs/spw-list-title.cjs.entry.js +2 -2
  62. package/dist/cjs/spw-list.cjs.entry.js +2 -2
  63. package/dist/cjs/spw-message.cjs.entry.js +1 -1
  64. package/dist/cjs/spw-modal.cjs.entry.js +12 -10
  65. package/dist/cjs/spw-modal.cjs.entry.js.map +1 -1
  66. package/dist/cjs/spw-modal.entry.cjs.js.map +1 -1
  67. package/dist/cjs/spw-mosaic-item.cjs.entry.js +2 -2
  68. package/dist/cjs/spw-mosaic.cjs.entry.js +2 -2
  69. package/dist/cjs/spw-pagination.cjs.entry.js +7 -7
  70. package/dist/cjs/spw-radio.cjs.entry.js +2 -2
  71. package/dist/cjs/spw-search-field.cjs.entry.js +3 -3
  72. package/dist/cjs/spw-select.cjs.entry.js +37 -3
  73. package/dist/cjs/spw-select.cjs.entry.js.map +1 -1
  74. package/dist/cjs/spw-select.entry.cjs.js.map +1 -1
  75. package/dist/cjs/spw-sidebar-navigation-dropdown.cjs.entry.js +2 -2
  76. package/dist/cjs/spw-sidebar-navigation-item.cjs.entry.js +4 -4
  77. package/dist/cjs/spw-sidebar-navigation-separator.cjs.entry.js +2 -2
  78. package/dist/cjs/spw-sidebar.cjs.entry.js +2 -2
  79. package/dist/cjs/spw-skeleton.cjs.entry.js +2 -2
  80. package/dist/cjs/spw-socials.cjs.entry.js +2 -2
  81. package/dist/cjs/spw-stencil-library.cjs.js +2 -2
  82. package/dist/cjs/spw-table-body.cjs.entry.js +2 -2
  83. package/dist/cjs/spw-table-cell.cjs.entry.js +3 -3
  84. package/dist/cjs/spw-table-cell.cjs.entry.js.map +1 -1
  85. package/dist/cjs/spw-table-cell.entry.cjs.js.map +1 -1
  86. package/dist/cjs/spw-table-footer.cjs.entry.js +2 -2
  87. package/dist/cjs/spw-table-head.cjs.entry.js +2 -2
  88. package/dist/cjs/spw-table-header.cjs.entry.js +9 -5
  89. package/dist/cjs/spw-table-header.cjs.entry.js.map +1 -1
  90. package/dist/cjs/spw-table-header.entry.cjs.js.map +1 -1
  91. package/dist/cjs/spw-table-row.cjs.entry.js +11 -3
  92. package/dist/cjs/spw-table-row.cjs.entry.js.map +1 -1
  93. package/dist/cjs/spw-table-row.entry.cjs.js.map +1 -1
  94. package/dist/cjs/spw-table.cjs.entry.js +23 -10
  95. package/dist/cjs/spw-table.cjs.entry.js.map +1 -1
  96. package/dist/cjs/spw-table.entry.cjs.js.map +1 -1
  97. package/dist/cjs/spw-tabs-content.cjs.entry.js +1 -1
  98. package/dist/cjs/spw-tabs-navigation-item.cjs.entry.js +6 -3
  99. package/dist/cjs/spw-tabs-navigation-item.cjs.entry.js.map +1 -1
  100. package/dist/cjs/spw-tabs-navigation-item.entry.cjs.js.map +1 -1
  101. package/dist/cjs/spw-tabs-navigation.cjs.entry.js +85 -3
  102. package/dist/cjs/spw-tabs-navigation.cjs.entry.js.map +1 -1
  103. package/dist/cjs/spw-tabs-navigation.entry.cjs.js.map +1 -1
  104. package/dist/cjs/spw-tabs.cjs.entry.js +70 -13
  105. package/dist/cjs/spw-tabs.cjs.entry.js.map +1 -1
  106. package/dist/cjs/spw-tabs.entry.cjs.js.map +1 -1
  107. package/dist/cjs/spw-tag.cjs.entry.js +2 -2
  108. package/dist/cjs/spw-text-field.cjs.entry.js +2 -2
  109. package/dist/cjs/spw-textarea.cjs.entry.js +2 -2
  110. package/dist/cjs/spw-tile-description.cjs.entry.js +2 -2
  111. package/dist/cjs/spw-tile-title.cjs.entry.js +2 -2
  112. package/dist/cjs/spw-tile.cjs.entry.js +2 -2
  113. package/dist/cjs/spw-tooltip.cjs.entry.js +3 -3
  114. package/dist/cjs/spw-tooltip.cjs.entry.js.map +1 -1
  115. package/dist/cjs/spw-tooltip.entry.cjs.js.map +1 -1
  116. package/dist/cjs/spw-topbar.cjs.entry.js +2 -2
  117. package/dist/cjs/utils-CKYAw_Le.js.map +1 -1
  118. package/dist/collection/collection-manifest.json +2 -1
  119. package/dist/collection/components/spw-accordion/spw-accordion-content/spw-accordion-content.js +1 -1
  120. package/dist/collection/components/spw-accordion/spw-accordion-item/spw-accordion-item.js +1 -1
  121. package/dist/collection/components/spw-accordion/spw-accordion-title/spw-accordion-title.js +1 -1
  122. package/dist/collection/components/spw-accordion/spw-accordion.js +1 -1
  123. package/dist/collection/components/spw-breadcrumb/spw-breadcrumb-item/spw-breadcrumb-item.js +1 -1
  124. package/dist/collection/components/spw-breadcrumb/spw-breadcrumb.js +1 -1
  125. package/dist/collection/components/spw-button/spw-button.js +1 -1
  126. package/dist/collection/components/spw-card/spw-card-content/spw-card-content.css +1 -1
  127. package/dist/collection/components/spw-card/spw-card-content/spw-card-content.js +1 -1
  128. package/dist/collection/components/spw-card/spw-card-excerpt/spw-card-excerpt.css +1 -1
  129. package/dist/collection/components/spw-card/spw-card-excerpt/spw-card-excerpt.js +2 -2
  130. package/dist/collection/components/spw-card/spw-card-excerpt/spw-card-excerpt.js.map +1 -1
  131. package/dist/collection/components/spw-card/spw-card-image/spw-card-image.css +1 -1
  132. package/dist/collection/components/spw-card/spw-card-image/spw-card-image.js +1 -1
  133. package/dist/collection/components/spw-card/spw-card-subtag-item/spw-card-subtag-item.js +1 -1
  134. package/dist/collection/components/spw-card/spw-card-subtags/spw-card-subtags.js +1 -1
  135. package/dist/collection/components/spw-card/spw-card-title/spw-card-title.css +1 -1
  136. package/dist/collection/components/spw-card/spw-card-title/spw-card-title.js +30 -2
  137. package/dist/collection/components/spw-card/spw-card-title/spw-card-title.js.map +1 -1
  138. package/dist/collection/components/spw-card/spw-card.css +1 -1
  139. package/dist/collection/components/spw-card/spw-card.js +3 -3
  140. package/dist/collection/components/spw-card/spw-card.js.map +1 -1
  141. package/dist/collection/components/spw-checkbox/spw-checkbox.css +1 -1
  142. package/dist/collection/components/spw-checkbox/spw-checkbox.js +24 -1
  143. package/dist/collection/components/spw-checkbox/spw-checkbox.js.map +1 -1
  144. package/dist/collection/components/spw-custom-select/spw-custom-select.js +27 -16
  145. package/dist/collection/components/spw-custom-select/spw-custom-select.js.map +1 -1
  146. package/dist/collection/components/spw-date-picker/spw-date-picker.js +1 -1
  147. package/dist/collection/components/spw-dropdown/spw-dropdown.js +1 -1
  148. package/dist/collection/components/spw-field-label/spw-field-label.js +1 -1
  149. package/dist/collection/components/spw-field-message/spw-field-message.js +1 -1
  150. package/dist/collection/components/spw-file-upload/spw-file-upload.js +2 -2
  151. package/dist/collection/components/spw-footer/spw-footer-bottom/spw-footer-bottom.js +1 -1
  152. package/dist/collection/components/spw-footer/spw-footer-content/spw-footer-content.js +1 -1
  153. package/dist/collection/components/spw-footer/spw-footer-content-col/spw-footer-content-col.js +1 -1
  154. package/dist/collection/components/spw-footer/spw-footer-link/spw-footer-link.js +1 -1
  155. package/dist/collection/components/spw-footer/spw-footer.js +1 -1
  156. package/dist/collection/components/spw-group/spw-group.js +1 -1
  157. package/dist/collection/components/spw-header/spw-header-lang/spw-header-lang.js +1 -1
  158. package/dist/collection/components/spw-header/spw-header-lang-item/spw-header-lang-item.js +1 -1
  159. package/dist/collection/components/spw-header/spw-header-navigation/spw-header-navigation.js +1 -1
  160. package/dist/collection/components/spw-header/spw-header-navigation-dropdown/spw-header-navigation-dropdown.js +1 -1
  161. package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.js +1 -1
  162. package/dist/collection/components/spw-header/spw-header-persona/spw-header-persona.js +1 -1
  163. package/dist/collection/components/spw-header/spw-header-persona-item/spw-header-persona-item.js +1 -1
  164. package/dist/collection/components/spw-header/spw-header.js +1 -1
  165. package/dist/collection/components/spw-hero/spw-hero.css +1 -1
  166. package/dist/collection/components/spw-hero/spw-hero.js +24 -1
  167. package/dist/collection/components/spw-hero/spw-hero.js.map +1 -1
  168. package/dist/collection/components/spw-icon/spw-icon.js +1 -1
  169. package/dist/collection/components/spw-illustration/spw-illustration.css +2 -0
  170. package/dist/collection/components/spw-illustration/spw-illustration.js +2479 -0
  171. package/dist/collection/components/spw-illustration/spw-illustration.js.map +1 -0
  172. package/dist/collection/components/spw-iodda/spw-iodda.js +1 -1
  173. package/dist/collection/components/spw-link/spw-link.css +1 -1
  174. package/dist/collection/components/spw-link/spw-link.js +1 -1
  175. package/dist/collection/components/spw-list/spw-list-description/spw-list-description.js +1 -1
  176. package/dist/collection/components/spw-list/spw-list-item/spw-list-item.js +1 -1
  177. package/dist/collection/components/spw-list/spw-list-title/spw-list-title.js +1 -1
  178. package/dist/collection/components/spw-list/spw-list.js +1 -1
  179. package/dist/collection/components/spw-loading/spw-loading.js +1 -1
  180. package/dist/collection/components/spw-modal/spw-modal.js +11 -9
  181. package/dist/collection/components/spw-modal/spw-modal.js.map +1 -1
  182. package/dist/collection/components/spw-mosaic/spw-mosaic-item/spw-mosaic-item.js +1 -1
  183. package/dist/collection/components/spw-mosaic/spw-mosaic.js +1 -1
  184. package/dist/collection/components/spw-pagination/spw-pagination.js +6 -6
  185. package/dist/collection/components/spw-radio/spw-radio.js +1 -1
  186. package/dist/collection/components/spw-search-field/spw-search-field.js +2 -2
  187. package/dist/collection/components/spw-select/spw-select.js +100 -2
  188. package/dist/collection/components/spw-select/spw-select.js.map +1 -1
  189. package/dist/collection/components/spw-separator/spw-separator.js +1 -1
  190. package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-dropdown/spw-sidebar-navigation-dropdown.js +1 -1
  191. package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-item/spw-sidebar-navigation-item.js +3 -3
  192. package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-separator/spw-sidebar-navigation-separator.js +1 -1
  193. package/dist/collection/components/spw-sidebar/spw-sidebar.js +1 -1
  194. package/dist/collection/components/spw-skeleton/spw-skeleton.js +1 -1
  195. package/dist/collection/components/spw-socials/spw-socials.js +1 -1
  196. package/dist/collection/components/spw-table/spw-table-body/spw-table-body.js +1 -1
  197. package/dist/collection/components/spw-table/spw-table-cell/spw-table-cell.css +1 -1
  198. package/dist/collection/components/spw-table/spw-table-cell/spw-table-cell.js +1 -1
  199. package/dist/collection/components/spw-table/spw-table-footer/spw-table-footer.js +1 -1
  200. package/dist/collection/components/spw-table/spw-table-head/spw-table-head.js +1 -1
  201. package/dist/collection/components/spw-table/spw-table-header/spw-table-header.css +1 -1
  202. package/dist/collection/components/spw-table/spw-table-header/spw-table-header.js +7 -3
  203. package/dist/collection/components/spw-table/spw-table-header/spw-table-header.js.map +1 -1
  204. package/dist/collection/components/spw-table/spw-table-row/spw-table-row.css +1 -1
  205. package/dist/collection/components/spw-table/spw-table-row/spw-table-row.js +35 -1
  206. package/dist/collection/components/spw-table/spw-table-row/spw-table-row.js.map +1 -1
  207. package/dist/collection/components/spw-table/spw-table.js +22 -9
  208. package/dist/collection/components/spw-table/spw-table.js.map +1 -1
  209. package/dist/collection/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.css +1 -1
  210. package/dist/collection/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.js +100 -1
  211. package/dist/collection/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.js.map +1 -1
  212. package/dist/collection/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.css +1 -1
  213. package/dist/collection/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.js +43 -2
  214. package/dist/collection/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.js.map +1 -1
  215. package/dist/collection/components/spw-tabs/spw-tabs.js +129 -12
  216. package/dist/collection/components/spw-tabs/spw-tabs.js.map +1 -1
  217. package/dist/collection/components/spw-tag/spw-tag.js +1 -1
  218. package/dist/collection/components/spw-text-field/spw-text-field.js +1 -1
  219. package/dist/collection/components/spw-textarea/spw-textarea.js +1 -1
  220. package/dist/collection/components/spw-theme-provider/spw-theme-provider.js +1 -1
  221. package/dist/collection/components/spw-tile/spw-tile-description/spw-tile-description.js +1 -1
  222. package/dist/collection/components/spw-tile/spw-tile-title/spw-tile-title.js +1 -1
  223. package/dist/collection/components/spw-tile/spw-tile.js +1 -1
  224. package/dist/collection/components/spw-tooltip/spw-tooltip.css +1 -1
  225. package/dist/collection/components/spw-tooltip/spw-tooltip.js +1 -1
  226. package/dist/collection/components/spw-topbar/spw-topbar.js +1 -1
  227. package/dist/collection/stories/components/spw-checkbox/spw-checkbox.stories.js +32 -7
  228. package/dist/collection/stories/components/spw-checkbox/spw-checkbox.stories.js.map +1 -1
  229. package/dist/collection/stories/components/spw-custom-select/spw-custom-select.stories.js +108 -0
  230. package/dist/collection/stories/components/spw-custom-select/spw-custom-select.stories.js.map +1 -0
  231. package/dist/collection/stories/components/spw-date-picker/spw-date-picker.stories.js +6 -4
  232. package/dist/collection/stories/components/spw-date-picker/spw-date-picker.stories.js.map +1 -1
  233. package/dist/collection/stories/components/spw-dropdown/spw-dropdown.stories.js +2 -1
  234. package/dist/collection/stories/components/spw-dropdown/spw-dropdown.stories.js.map +1 -1
  235. package/dist/collection/stories/components/spw-file-upload/spw-file-upload.stories.js +6 -7
  236. package/dist/collection/stories/components/spw-file-upload/spw-file-upload.stories.js.map +1 -1
  237. package/dist/collection/stories/components/spw-icon/spw-icon.stories.js +1 -0
  238. package/dist/collection/stories/components/spw-icon/spw-icon.stories.js.map +1 -1
  239. package/dist/collection/stories/components/spw-radio/spw-radio.stories.js +6 -7
  240. package/dist/collection/stories/components/spw-radio/spw-radio.stories.js.map +1 -1
  241. package/dist/collection/stories/components/spw-select/spw-select.stories.js +6 -7
  242. package/dist/collection/stories/components/spw-select/spw-select.stories.js.map +1 -1
  243. package/dist/collection/stories/components/spw-text-field/spw-text-field.stories.js +6 -6
  244. package/dist/collection/stories/components/spw-text-field/spw-text-field.stories.js.map +1 -1
  245. package/dist/collection/stories/organisms/spw-card/spw-card.stories.js +99 -4
  246. package/dist/collection/stories/organisms/spw-card/spw-card.stories.js.map +1 -1
  247. package/dist/collection/stories/organisms/spw-footer/spw-footer.stories.js +4 -2
  248. package/dist/collection/stories/organisms/spw-footer/spw-footer.stories.js.map +1 -1
  249. package/dist/collection/stories/organisms/spw-header/spw-header.stories.js +2 -1
  250. package/dist/collection/stories/organisms/spw-header/spw-header.stories.js.map +1 -1
  251. package/dist/collection/stories/organisms/spw-hero/spw-hero.stories.js +24 -4
  252. package/dist/collection/stories/organisms/spw-hero/spw-hero.stories.js.map +1 -1
  253. package/dist/collection/stories/organisms/spw-list/spw-list.stories.js +2 -1
  254. package/dist/collection/stories/organisms/spw-list/spw-list.stories.js.map +1 -1
  255. package/dist/collection/stories/organisms/spw-modal/spw-modal.stories.js +1 -1
  256. package/dist/collection/stories/organisms/spw-modal/spw-modal.stories.js.map +1 -1
  257. package/dist/collection/stories/organisms/spw-mosaic/spw-mosaic.stories.js +8 -4
  258. package/dist/collection/stories/organisms/spw-mosaic/spw-mosaic.stories.js.map +1 -1
  259. package/dist/collection/stories/organisms/spw-sidebar/spw-sidebar.stories.js +2 -1
  260. package/dist/collection/stories/organisms/spw-sidebar/spw-sidebar.stories.js.map +1 -1
  261. package/dist/collection/stories/organisms/spw-table/spw-table.stories.js +98 -5
  262. package/dist/collection/stories/organisms/spw-table/spw-table.stories.js.map +1 -1
  263. package/dist/collection/stories/organisms/spw-tabs/spw-tabs.stories.js +6 -3
  264. package/dist/collection/stories/organisms/spw-tabs/spw-tabs.stories.js.map +1 -1
  265. package/dist/collection/stories/organisms/spw-tile/spw-tile.stories.js +6 -3
  266. package/dist/collection/stories/organisms/spw-tile/spw-tile.stories.js.map +1 -1
  267. package/dist/collection/stories/organisms/spw-topbar/spw-topbar.stories.js +2 -1
  268. package/dist/collection/stories/organisms/spw-topbar/spw-topbar.stories.js.map +1 -1
  269. package/dist/collection/utils/utils.js +12 -1
  270. package/dist/collection/utils/utils.js.map +1 -1
  271. package/dist/components/index.js +3 -0
  272. package/dist/components/index.js.map +1 -1
  273. package/dist/components/{p-DibGOHbd.js → p-5qcE_Ljw.js} +6 -6
  274. package/dist/components/{p-DibGOHbd.js.map → p-5qcE_Ljw.js.map} +1 -1
  275. package/dist/components/{p-_VSq6JhE.js → p-8jCY8rtJ.js} +3 -3
  276. package/dist/components/{p-_VSq6JhE.js.map → p-8jCY8rtJ.js.map} +1 -1
  277. package/dist/components/{p-wxevhJKV.js → p-BF73GiQU.js} +4 -4
  278. package/dist/components/{p-wxevhJKV.js.map → p-BF73GiQU.js.map} +1 -1
  279. package/dist/components/{p-CxSDNrYu.js → p-BQKQ0k0G.js} +3 -3
  280. package/dist/components/{p-CxSDNrYu.js.map → p-BQKQ0k0G.js.map} +1 -1
  281. package/dist/components/{p-DMD2z45s.js → p-BbuJ0hsQ.js} +4 -4
  282. package/dist/components/{p-DMD2z45s.js.map → p-BbuJ0hsQ.js.map} +1 -1
  283. package/dist/components/{p-CF4CA9QM.js → p-BowHA3gk.js} +3 -3
  284. package/dist/components/{p-CF4CA9QM.js.map → p-BowHA3gk.js.map} +1 -1
  285. package/dist/components/p-BsulPKjc.js +81 -0
  286. package/dist/components/p-BsulPKjc.js.map +1 -0
  287. package/dist/components/{p-BPTPujMC.js → p-BvWTgY8c.js} +5 -5
  288. package/dist/components/{p-BPTPujMC.js.map → p-BvWTgY8c.js.map} +1 -1
  289. package/dist/components/{p-BrCiFcDB.js → p-CMFyBNvH.js} +12 -12
  290. package/dist/components/{p-BrCiFcDB.js.map → p-CMFyBNvH.js.map} +1 -1
  291. package/dist/components/{p-DDvpvxxV.js → p-C_iAJUsF.js} +3 -3
  292. package/dist/components/{p-DDvpvxxV.js.map → p-C_iAJUsF.js.map} +1 -1
  293. package/dist/components/p-Cf-dIWNi.js +129 -0
  294. package/dist/components/p-Cf-dIWNi.js.map +1 -0
  295. package/dist/components/{p-DqtSG4Dc.js → p-DPUqdUk8.js} +4 -4
  296. package/dist/components/p-DPUqdUk8.js.map +1 -0
  297. package/dist/components/{p-B1_XG4Wf.js → p-JncqUnd1.js} +3 -3
  298. package/dist/components/{p-B1_XG4Wf.js.map → p-JncqUnd1.js.map} +1 -1
  299. package/dist/components/{p-BrOEFNbv.js → p-_q4w18VU.js} +3 -3
  300. package/dist/components/{p-BrOEFNbv.js.map → p-_q4w18VU.js.map} +1 -1
  301. package/dist/components/{p-Ch60bguo.js → p-z27d6ASx.js} +3 -3
  302. package/dist/components/{p-Ch60bguo.js.map → p-z27d6ASx.js.map} +1 -1
  303. package/dist/components/p-zpG0udTn.js.map +1 -1
  304. package/dist/components/spw-accordion-content.js +1 -1
  305. package/dist/components/spw-accordion-item.js +1 -1
  306. package/dist/components/spw-accordion-title.js +1 -1
  307. package/dist/components/spw-accordion.js +1 -1
  308. package/dist/components/spw-breadcrumb-item.js +3 -3
  309. package/dist/components/spw-breadcrumb.js +1 -1
  310. package/dist/components/spw-button.js +1 -1
  311. package/dist/components/spw-card-content.js +2 -2
  312. package/dist/components/spw-card-content.js.map +1 -1
  313. package/dist/components/spw-card-excerpt.js +3 -3
  314. package/dist/components/spw-card-excerpt.js.map +1 -1
  315. package/dist/components/spw-card-image.js +3 -3
  316. package/dist/components/spw-card-image.js.map +1 -1
  317. package/dist/components/spw-card-subtag-item.js +1 -1
  318. package/dist/components/spw-card-subtags.js +1 -1
  319. package/dist/components/spw-card-title.js +8 -4
  320. package/dist/components/spw-card-title.js.map +1 -1
  321. package/dist/components/spw-card.js +2 -2
  322. package/dist/components/spw-card.js.map +1 -1
  323. package/dist/components/spw-checkbox.js +1 -1
  324. package/dist/components/spw-cookies.js +8 -8
  325. package/dist/components/spw-custom-select.js +28 -17
  326. package/dist/components/spw-custom-select.js.map +1 -1
  327. package/dist/components/spw-date-picker.js +4 -4
  328. package/dist/components/spw-dropdown.js +1 -1
  329. package/dist/components/spw-field-label.js +1 -1
  330. package/dist/components/spw-field-message.js +1 -1
  331. package/dist/components/spw-file-upload.js +5 -5
  332. package/dist/components/spw-footer-bottom.js +1 -1
  333. package/dist/components/spw-footer-content-col.js +1 -1
  334. package/dist/components/spw-footer-content.js +1 -1
  335. package/dist/components/spw-footer-link.js +1 -1
  336. package/dist/components/spw-footer.js +1 -1
  337. package/dist/components/spw-group.js +2 -2
  338. package/dist/components/spw-header-lang-item.js +1 -1
  339. package/dist/components/spw-header-lang.js +4 -4
  340. package/dist/components/spw-header-navigation-dropdown.js +1 -1
  341. package/dist/components/spw-header-navigation-item.js +2 -2
  342. package/dist/components/spw-header-navigation.js +2 -2
  343. package/dist/components/spw-header-persona-item.js +1 -1
  344. package/dist/components/spw-header-persona.js +2 -2
  345. package/dist/components/spw-header.js +4 -4
  346. package/dist/components/spw-hero.js +6 -2
  347. package/dist/components/spw-hero.js.map +1 -1
  348. package/dist/components/spw-icon.js +1 -1
  349. package/dist/components/spw-illustration.d.ts +11 -0
  350. package/dist/components/spw-illustration.js +2410 -0
  351. package/dist/components/spw-illustration.js.map +1 -0
  352. package/dist/components/spw-iodda.js +7 -7
  353. package/dist/components/spw-link.js +1 -1
  354. package/dist/components/spw-list-description.js +1 -1
  355. package/dist/components/spw-list-item.js +2 -2
  356. package/dist/components/spw-list-title.js +2 -2
  357. package/dist/components/spw-list.js +1 -1
  358. package/dist/components/spw-loading.js +1 -1
  359. package/dist/components/spw-message.js +2 -2
  360. package/dist/components/spw-modal.js +12 -10
  361. package/dist/components/spw-modal.js.map +1 -1
  362. package/dist/components/spw-mosaic-item.js +1 -1
  363. package/dist/components/spw-mosaic.js +1 -1
  364. package/dist/components/spw-pagination.js +1 -1
  365. package/dist/components/spw-radio.js +1 -1
  366. package/dist/components/spw-search-field.js +6 -6
  367. package/dist/components/spw-select.js +44 -5
  368. package/dist/components/spw-select.js.map +1 -1
  369. package/dist/components/spw-separator.js +1 -1
  370. package/dist/components/spw-sidebar-navigation-dropdown.js +1 -1
  371. package/dist/components/spw-sidebar-navigation-item.js +5 -5
  372. package/dist/components/spw-sidebar-navigation-separator.js +2 -2
  373. package/dist/components/spw-sidebar.js +2 -2
  374. package/dist/components/spw-skeleton.js +1 -1
  375. package/dist/components/spw-socials.js +1 -1
  376. package/dist/components/spw-table-body.js +1 -1
  377. package/dist/components/spw-table-cell.js +2 -2
  378. package/dist/components/spw-table-cell.js.map +1 -1
  379. package/dist/components/spw-table-footer.js +1 -1
  380. package/dist/components/spw-table-head.js +1 -1
  381. package/dist/components/spw-table-header.js +10 -6
  382. package/dist/components/spw-table-header.js.map +1 -1
  383. package/dist/components/spw-table-row.js +13 -3
  384. package/dist/components/spw-table-row.js.map +1 -1
  385. package/dist/components/spw-table.js +22 -9
  386. package/dist/components/spw-table.js.map +1 -1
  387. package/dist/components/spw-tabs-navigation-item.js +21 -4
  388. package/dist/components/spw-tabs-navigation-item.js.map +1 -1
  389. package/dist/components/spw-tabs-navigation.js +95 -4
  390. package/dist/components/spw-tabs-navigation.js.map +1 -1
  391. package/dist/components/spw-tabs.js +75 -14
  392. package/dist/components/spw-tabs.js.map +1 -1
  393. package/dist/components/spw-tag.js +2 -2
  394. package/dist/components/spw-text-field.js +1 -1
  395. package/dist/components/spw-textarea.js +4 -4
  396. package/dist/components/spw-theme-provider.js +1 -1
  397. package/dist/components/spw-tile-description.js +1 -1
  398. package/dist/components/spw-tile-title.js +1 -1
  399. package/dist/components/spw-tile.js +2 -2
  400. package/dist/components/spw-tooltip.js +1 -1
  401. package/dist/components/spw-topbar.js +1 -1
  402. package/dist/components_json.json +538 -38
  403. package/dist/esm/{index-BaAUTDWF.js → index-BYM_CUUH.js} +5 -2
  404. package/dist/esm/index-BYM_CUUH.js.map +1 -0
  405. package/dist/esm/loader.js +3 -3
  406. package/dist/esm/spw-accordion_4.entry.js +5 -5
  407. package/dist/esm/spw-breadcrumb-item.entry.js +2 -2
  408. package/dist/esm/spw-breadcrumb.entry.js +2 -2
  409. package/dist/esm/spw-button_2.entry.js +3 -3
  410. package/dist/esm/spw-card-content.entry.js +3 -3
  411. package/dist/esm/spw-card-content.entry.js.map +1 -1
  412. package/dist/esm/spw-card-excerpt.entry.js +3 -3
  413. package/dist/esm/spw-card-excerpt.entry.js.map +1 -1
  414. package/dist/esm/spw-card-image.entry.js +3 -3
  415. package/dist/esm/spw-card-image.entry.js.map +1 -1
  416. package/dist/esm/spw-card-subtag-item.entry.js +2 -2
  417. package/dist/esm/spw-card-subtags.entry.js +2 -2
  418. package/dist/esm/spw-card-title.entry.js +5 -3
  419. package/dist/esm/spw-card-title.entry.js.map +1 -1
  420. package/dist/esm/spw-card.entry.js +3 -3
  421. package/dist/esm/spw-card.entry.js.map +1 -1
  422. package/dist/esm/spw-checkbox.entry.js +6 -3
  423. package/dist/esm/spw-checkbox.entry.js.map +1 -1
  424. package/dist/esm/spw-cookies.entry.js +1 -1
  425. package/dist/esm/spw-custom-select.entry.js +23 -12
  426. package/dist/esm/spw-custom-select.entry.js.map +1 -1
  427. package/dist/esm/spw-date-picker.entry.js +2 -2
  428. package/dist/esm/spw-dropdown.entry.js +2 -2
  429. package/dist/esm/spw-field-label.spw-group.spw-icon.spw-link.spw-separator.spw-theme-provider.entry.js.map +1 -1
  430. package/dist/esm/spw-field-label_6.entry.js +8 -8
  431. package/dist/esm/spw-field-label_6.entry.js.map +1 -1
  432. package/dist/esm/spw-field-message.entry.js +2 -2
  433. package/dist/esm/spw-file-upload.entry.js +3 -3
  434. package/dist/esm/spw-footer-bottom.entry.js +2 -2
  435. package/dist/esm/spw-footer-content-col.entry.js +2 -2
  436. package/dist/esm/spw-footer-content.entry.js +2 -2
  437. package/dist/esm/spw-footer-link.entry.js +2 -2
  438. package/dist/esm/spw-footer.entry.js +2 -2
  439. package/dist/esm/spw-header-lang-item.entry.js +2 -2
  440. package/dist/esm/spw-header-lang.entry.js +2 -2
  441. package/dist/esm/spw-header-navigation-dropdown.entry.js +2 -2
  442. package/dist/esm/spw-header-navigation-item.entry.js +2 -2
  443. package/dist/esm/spw-header-navigation.entry.js +2 -2
  444. package/dist/esm/spw-header-persona-item.entry.js +2 -2
  445. package/dist/esm/spw-header-persona.entry.js +2 -2
  446. package/dist/esm/spw-header.entry.js +2 -2
  447. package/dist/esm/spw-hero.entry.js +6 -3
  448. package/dist/esm/spw-hero.entry.js.map +1 -1
  449. package/dist/esm/spw-illustration.entry.js +2387 -0
  450. package/dist/esm/spw-illustration.entry.js.map +1 -0
  451. package/dist/esm/spw-iodda.entry.js +2 -2
  452. package/dist/esm/spw-list-description.entry.js +2 -2
  453. package/dist/esm/spw-list-item.entry.js +2 -2
  454. package/dist/esm/spw-list-title.entry.js +2 -2
  455. package/dist/esm/spw-list.entry.js +2 -2
  456. package/dist/esm/spw-message.entry.js +1 -1
  457. package/dist/esm/spw-modal.entry.js +12 -10
  458. package/dist/esm/spw-modal.entry.js.map +1 -1
  459. package/dist/esm/spw-mosaic-item.entry.js +2 -2
  460. package/dist/esm/spw-mosaic.entry.js +2 -2
  461. package/dist/esm/spw-pagination.entry.js +7 -7
  462. package/dist/esm/spw-radio.entry.js +2 -2
  463. package/dist/esm/spw-search-field.entry.js +3 -3
  464. package/dist/esm/spw-select.entry.js +37 -3
  465. package/dist/esm/spw-select.entry.js.map +1 -1
  466. package/dist/esm/spw-sidebar-navigation-dropdown.entry.js +2 -2
  467. package/dist/esm/spw-sidebar-navigation-item.entry.js +4 -4
  468. package/dist/esm/spw-sidebar-navigation-separator.entry.js +2 -2
  469. package/dist/esm/spw-sidebar.entry.js +2 -2
  470. package/dist/esm/spw-skeleton.entry.js +2 -2
  471. package/dist/esm/spw-socials.entry.js +2 -2
  472. package/dist/esm/spw-stencil-library.js +3 -3
  473. package/dist/esm/spw-table-body.entry.js +2 -2
  474. package/dist/esm/spw-table-cell.entry.js +3 -3
  475. package/dist/esm/spw-table-cell.entry.js.map +1 -1
  476. package/dist/esm/spw-table-footer.entry.js +2 -2
  477. package/dist/esm/spw-table-head.entry.js +2 -2
  478. package/dist/esm/spw-table-header.entry.js +9 -5
  479. package/dist/esm/spw-table-header.entry.js.map +1 -1
  480. package/dist/esm/spw-table-row.entry.js +11 -3
  481. package/dist/esm/spw-table-row.entry.js.map +1 -1
  482. package/dist/esm/spw-table.entry.js +23 -10
  483. package/dist/esm/spw-table.entry.js.map +1 -1
  484. package/dist/esm/spw-tabs-content.entry.js +1 -1
  485. package/dist/esm/spw-tabs-navigation-item.entry.js +6 -3
  486. package/dist/esm/spw-tabs-navigation-item.entry.js.map +1 -1
  487. package/dist/esm/spw-tabs-navigation.entry.js +85 -3
  488. package/dist/esm/spw-tabs-navigation.entry.js.map +1 -1
  489. package/dist/esm/spw-tabs.entry.js +70 -13
  490. package/dist/esm/spw-tabs.entry.js.map +1 -1
  491. package/dist/esm/spw-tag.entry.js +2 -2
  492. package/dist/esm/spw-text-field.entry.js +2 -2
  493. package/dist/esm/spw-textarea.entry.js +2 -2
  494. package/dist/esm/spw-tile-description.entry.js +2 -2
  495. package/dist/esm/spw-tile-title.entry.js +2 -2
  496. package/dist/esm/spw-tile.entry.js +2 -2
  497. package/dist/esm/spw-tooltip.entry.js +3 -3
  498. package/dist/esm/spw-tooltip.entry.js.map +1 -1
  499. package/dist/esm/spw-topbar.entry.js +2 -2
  500. package/dist/esm/utils-zpG0udTn.js.map +1 -1
  501. package/dist/spw-stencil-library/{p-e95b2caa.entry.js → p-03f1a257.entry.js} +2 -2
  502. package/dist/spw-stencil-library/{p-b6908714.entry.js → p-07cadb86.entry.js} +2 -2
  503. package/dist/spw-stencil-library/{p-0f3f20f5.entry.js → p-08d78730.entry.js} +2 -2
  504. package/dist/spw-stencil-library/{p-ea24705d.entry.js → p-0e310e7a.entry.js} +2 -2
  505. package/dist/spw-stencil-library/{p-1d53f317.entry.js → p-10269c11.entry.js} +2 -2
  506. package/dist/spw-stencil-library/p-10269c11.entry.js.map +1 -0
  507. package/dist/spw-stencil-library/{p-4e96a7f8.entry.js → p-158e7952.entry.js} +2 -2
  508. package/dist/spw-stencil-library/{p-102ff932.entry.js → p-1e07197c.entry.js} +2 -2
  509. package/dist/spw-stencil-library/{p-3625250b.entry.js → p-1e725439.entry.js} +2 -2
  510. package/dist/spw-stencil-library/{p-b00ef206.entry.js → p-228a413d.entry.js} +2 -2
  511. package/dist/spw-stencil-library/{p-45abc261.entry.js → p-274ce2d2.entry.js} +2 -2
  512. package/dist/spw-stencil-library/{p-9cdaf77f.entry.js → p-2c8e65e5.entry.js} +2 -2
  513. package/dist/spw-stencil-library/{p-809f6063.entry.js → p-2dff657f.entry.js} +2 -2
  514. package/dist/spw-stencil-library/{p-ad03e5fa.entry.js → p-2e9756c4.entry.js} +2 -2
  515. package/dist/spw-stencil-library/{p-8ea75393.entry.js → p-3240c1a4.entry.js} +2 -2
  516. package/dist/spw-stencil-library/{p-49221194.entry.js → p-328fb48c.entry.js} +4 -4
  517. package/dist/spw-stencil-library/p-34dc26ba.entry.js +2 -0
  518. package/dist/spw-stencil-library/p-34dc26ba.entry.js.map +1 -0
  519. package/dist/spw-stencil-library/p-35ef6489.entry.js +2 -0
  520. package/dist/spw-stencil-library/p-35ef6489.entry.js.map +1 -0
  521. package/dist/spw-stencil-library/p-3ab472db.entry.js +2 -0
  522. package/dist/spw-stencil-library/p-3ab472db.entry.js.map +1 -0
  523. package/dist/spw-stencil-library/{p-b7608972.entry.js → p-3cfcf070.entry.js} +2 -2
  524. package/dist/spw-stencil-library/{p-7a9c8362.entry.js → p-44124a37.entry.js} +2 -2
  525. package/dist/spw-stencil-library/{p-c93bb0fb.entry.js → p-4526bef6.entry.js} +2 -2
  526. package/dist/spw-stencil-library/{p-f8b02eb3.entry.js → p-49be45a2.entry.js} +2 -2
  527. package/dist/spw-stencil-library/{p-f384262d.entry.js → p-4e7df891.entry.js} +2 -2
  528. package/dist/spw-stencil-library/p-4fa98537.entry.js +2 -0
  529. package/dist/spw-stencil-library/p-4fa98537.entry.js.map +1 -0
  530. package/dist/spw-stencil-library/{p-0b4a2f05.entry.js → p-52c51ac5.entry.js} +2 -2
  531. package/dist/spw-stencil-library/{p-98255d7f.entry.js → p-5426464a.entry.js} +2 -2
  532. package/dist/spw-stencil-library/{p-7c7f8eae.entry.js → p-573393ab.entry.js} +2 -2
  533. package/dist/spw-stencil-library/{p-3a446e55.entry.js → p-57851ceb.entry.js} +2 -2
  534. package/dist/spw-stencil-library/p-57d83f8b.entry.js +2 -0
  535. package/dist/spw-stencil-library/p-57d83f8b.entry.js.map +1 -0
  536. package/dist/spw-stencil-library/{p-eb6ad6f0.entry.js → p-5cb1344b.entry.js} +2 -2
  537. package/dist/spw-stencil-library/p-5cb1344b.entry.js.map +1 -0
  538. package/dist/spw-stencil-library/{p-add90792.entry.js → p-68f9c5bf.entry.js} +2 -2
  539. package/dist/spw-stencil-library/{p-3ca241ed.entry.js → p-6b291009.entry.js} +2 -2
  540. package/dist/spw-stencil-library/{p-8312033a.entry.js → p-6d08bcc3.entry.js} +2 -2
  541. package/dist/spw-stencil-library/p-6ee69164.entry.js +2 -0
  542. package/dist/spw-stencil-library/p-6ee69164.entry.js.map +1 -0
  543. package/dist/spw-stencil-library/p-73db3953.entry.js +2 -0
  544. package/dist/spw-stencil-library/p-73db3953.entry.js.map +1 -0
  545. package/dist/spw-stencil-library/{p-ce16fd94.entry.js → p-74d118ec.entry.js} +2 -2
  546. package/dist/spw-stencil-library/p-74d118ec.entry.js.map +1 -0
  547. package/dist/spw-stencil-library/{p-ae95b303.entry.js → p-75159246.entry.js} +2 -2
  548. package/dist/spw-stencil-library/{p-8b951993.entry.js → p-7e30e4c2.entry.js} +2 -2
  549. package/dist/spw-stencil-library/p-7e30e4c2.entry.js.map +1 -0
  550. package/dist/spw-stencil-library/{p-8ae132ed.entry.js → p-8d94697c.entry.js} +2 -2
  551. package/dist/spw-stencil-library/{p-7f39476b.entry.js → p-93a5f755.entry.js} +2 -2
  552. package/dist/spw-stencil-library/p-96fac544.entry.js +2 -0
  553. package/dist/spw-stencil-library/p-96fac544.entry.js.map +1 -0
  554. package/dist/spw-stencil-library/{p-325309ec.entry.js → p-98ee79d6.entry.js} +2 -2
  555. package/dist/spw-stencil-library/{p-16f48e73.entry.js → p-991d5382.entry.js} +2 -2
  556. package/dist/spw-stencil-library/{p-BaAUTDWF.js → p-BYM_CUUH.js} +2 -2
  557. package/dist/spw-stencil-library/p-BYM_CUUH.js.map +1 -0
  558. package/dist/spw-stencil-library/{p-30005a16.entry.js → p-a093ab2f.entry.js} +2 -2
  559. package/dist/spw-stencil-library/{p-938971bc.entry.js → p-a27ed650.entry.js} +2 -2
  560. package/dist/spw-stencil-library/p-a27ed650.entry.js.map +1 -0
  561. package/dist/spw-stencil-library/{p-08ead4ae.entry.js → p-a2b3dd47.entry.js} +2 -2
  562. package/dist/spw-stencil-library/{p-7d9b220f.entry.js → p-aa364a44.entry.js} +2 -2
  563. package/dist/spw-stencil-library/p-aa364a44.entry.js.map +1 -0
  564. package/dist/spw-stencil-library/p-aaffdc4f.entry.js +2 -0
  565. package/dist/spw-stencil-library/p-aaffdc4f.entry.js.map +1 -0
  566. package/dist/spw-stencil-library/{p-27d3d92a.entry.js → p-ad5f01e4.entry.js} +2 -2
  567. package/dist/spw-stencil-library/{p-5752fdef.entry.js → p-ae905af5.entry.js} +2 -2
  568. package/dist/spw-stencil-library/p-af49292e.entry.js +2 -0
  569. package/dist/spw-stencil-library/p-af49292e.entry.js.map +1 -0
  570. package/dist/spw-stencil-library/{p-8b7f940d.entry.js → p-b0ca9615.entry.js} +2 -2
  571. package/dist/spw-stencil-library/{p-4122bb55.entry.js → p-b0dc1073.entry.js} +2 -2
  572. package/dist/spw-stencil-library/{p-c08f14f9.entry.js → p-b45534d4.entry.js} +2 -2
  573. package/dist/spw-stencil-library/{p-44a61c9f.entry.js → p-b64a003c.entry.js} +2 -2
  574. package/dist/spw-stencil-library/{p-f7d5eb27.entry.js → p-b726755c.entry.js} +2 -2
  575. package/dist/spw-stencil-library/{p-621edd61.entry.js → p-be3b1d65.entry.js} +2 -2
  576. package/dist/spw-stencil-library/{p-3cdcc221.entry.js → p-bf14b880.entry.js} +2 -2
  577. package/dist/spw-stencil-library/p-bf43d61c.entry.js +2 -0
  578. package/dist/spw-stencil-library/p-bf43d61c.entry.js.map +1 -0
  579. package/dist/spw-stencil-library/{p-328bfb78.entry.js → p-c1a30fb7.entry.js} +2 -2
  580. package/dist/spw-stencil-library/p-c1a30fb7.entry.js.map +1 -0
  581. package/dist/spw-stencil-library/{p-a09a320d.entry.js → p-c7fecad8.entry.js} +2 -2
  582. package/dist/spw-stencil-library/{p-96f2ab55.entry.js → p-c838e17b.entry.js} +2 -2
  583. package/dist/spw-stencil-library/{p-754d81d9.entry.js → p-ca672774.entry.js} +2 -2
  584. package/dist/spw-stencil-library/{p-cc2fc4d1.entry.js → p-cf508941.entry.js} +2 -2
  585. package/dist/spw-stencil-library/{p-dfade2bb.entry.js → p-cff5a7e4.entry.js} +2 -2
  586. package/dist/spw-stencil-library/p-d3d4755a.entry.js +2 -0
  587. package/dist/spw-stencil-library/p-d3d4755a.entry.js.map +1 -0
  588. package/dist/spw-stencil-library/{p-49e6a16e.entry.js → p-d8078491.entry.js} +2 -2
  589. package/dist/spw-stencil-library/p-e1a459eb.entry.js +2 -0
  590. package/dist/spw-stencil-library/p-e1a459eb.entry.js.map +1 -0
  591. package/dist/spw-stencil-library/{p-a992edea.entry.js → p-e1c4d94e.entry.js} +2 -2
  592. package/dist/spw-stencil-library/{p-d4922788.entry.js → p-e5c9fb8e.entry.js} +2 -2
  593. package/dist/spw-stencil-library/{p-4081582a.entry.js → p-f1d04cc1.entry.js} +2 -2
  594. package/dist/spw-stencil-library/{p-aa7566e0.entry.js → p-f2008faa.entry.js} +2 -2
  595. package/dist/spw-stencil-library/p-zpG0udTn.js.map +1 -1
  596. package/dist/spw-stencil-library/spw-card-content.entry.esm.js.map +1 -1
  597. package/dist/spw-stencil-library/spw-card-excerpt.entry.esm.js.map +1 -1
  598. package/dist/spw-stencil-library/spw-card-image.entry.esm.js.map +1 -1
  599. package/dist/spw-stencil-library/spw-card-title.entry.esm.js.map +1 -1
  600. package/dist/spw-stencil-library/spw-card.entry.esm.js.map +1 -1
  601. package/dist/spw-stencil-library/spw-checkbox.entry.esm.js.map +1 -1
  602. package/dist/spw-stencil-library/spw-custom-select.entry.esm.js.map +1 -1
  603. package/dist/spw-stencil-library/spw-field-label.spw-group.spw-icon.spw-link.spw-separator.spw-theme-provider.entry.esm.js.map +1 -1
  604. package/dist/spw-stencil-library/spw-hero.entry.esm.js.map +1 -1
  605. package/dist/spw-stencil-library/spw-illustration.entry.esm.js.map +1 -0
  606. package/dist/spw-stencil-library/spw-modal.entry.esm.js.map +1 -1
  607. package/dist/spw-stencil-library/spw-select.entry.esm.js.map +1 -1
  608. package/dist/spw-stencil-library/spw-stencil-library.css +5 -1
  609. package/dist/spw-stencil-library/spw-stencil-library.esm.js +1 -1
  610. package/dist/spw-stencil-library/spw-table-cell.entry.esm.js.map +1 -1
  611. package/dist/spw-stencil-library/spw-table-header.entry.esm.js.map +1 -1
  612. package/dist/spw-stencil-library/spw-table-row.entry.esm.js.map +1 -1
  613. package/dist/spw-stencil-library/spw-table.entry.esm.js.map +1 -1
  614. package/dist/spw-stencil-library/spw-tabs-navigation-item.entry.esm.js.map +1 -1
  615. package/dist/spw-stencil-library/spw-tabs-navigation.entry.esm.js.map +1 -1
  616. package/dist/spw-stencil-library/spw-tabs.entry.esm.js.map +1 -1
  617. package/dist/spw-stencil-library/spw-tooltip.entry.esm.js.map +1 -1
  618. package/dist/stats.json +2177 -1174
  619. package/dist/types/components/spw-card/spw-card-title/spw-card-title.d.ts +2 -0
  620. package/dist/types/components/spw-card/spw-card.d.ts +1 -1
  621. package/dist/types/components/spw-checkbox/spw-checkbox.d.ts +2 -0
  622. package/dist/types/components/spw-custom-select/spw-custom-select.d.ts +3 -3
  623. package/dist/types/components/spw-hero/spw-hero.d.ts +2 -0
  624. package/dist/types/components/spw-illustration/spw-illustration.d.ts +32 -0
  625. package/dist/types/components/spw-select/spw-select.d.ts +12 -0
  626. package/dist/types/components/spw-table/spw-table-row/spw-table-row.d.ts +3 -0
  627. package/dist/types/components/spw-table/spw-table.d.ts +1 -0
  628. package/dist/types/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.d.ts +17 -0
  629. package/dist/types/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.d.ts +4 -0
  630. package/dist/types/components/spw-tabs/spw-tabs.d.ts +11 -1
  631. package/dist/types/components.d.ts +170 -14
  632. package/dist/types/stories/components/spw-checkbox/spw-checkbox.stories.d.ts +1 -0
  633. package/dist/types/stories/components/spw-custom-select/spw-custom-select.stories.d.ts +9 -0
  634. package/dist/types/stories/organisms/spw-card/spw-card.stories.d.ts +2 -0
  635. package/dist/types/stories/organisms/spw-hero/spw-hero.stories.d.ts +2 -0
  636. package/hydrate/index.js +2781 -145
  637. package/hydrate/index.mjs +2781 -145
  638. package/package.json +1 -1
  639. package/dist/cjs/index-DPoQq9TD.js.map +0 -1
  640. package/dist/components/p-COf5LpGH.js +0 -125
  641. package/dist/components/p-COf5LpGH.js.map +0 -1
  642. package/dist/components/p-Clhpt_u-.js +0 -81
  643. package/dist/components/p-Clhpt_u-.js.map +0 -1
  644. package/dist/components/p-DqtSG4Dc.js.map +0 -1
  645. package/dist/components_vscode.json +0 -2628
  646. package/dist/esm/index-BaAUTDWF.js.map +0 -1
  647. package/dist/spw-stencil-library/_commonjsHelpers-CvGrISen.js.map +0 -1
  648. package/dist/spw-stencil-library/app-globals-DQuL1Twl.js.map +0 -1
  649. package/dist/spw-stencil-library/index-CHjlxlqM.js.map +0 -1
  650. package/dist/spw-stencil-library/p-1d53f317.entry.js.map +0 -1
  651. package/dist/spw-stencil-library/p-1dde0477.entry.js +0 -2
  652. package/dist/spw-stencil-library/p-1dde0477.entry.js.map +0 -1
  653. package/dist/spw-stencil-library/p-275708d3.entry.js +0 -2
  654. package/dist/spw-stencil-library/p-275708d3.entry.js.map +0 -1
  655. package/dist/spw-stencil-library/p-328bfb78.entry.js.map +0 -1
  656. package/dist/spw-stencil-library/p-3ffc32e2.entry.js +0 -2
  657. package/dist/spw-stencil-library/p-3ffc32e2.entry.js.map +0 -1
  658. package/dist/spw-stencil-library/p-4917458b.entry.js +0 -2
  659. package/dist/spw-stencil-library/p-4917458b.entry.js.map +0 -1
  660. package/dist/spw-stencil-library/p-49d9a720.entry.js +0 -2
  661. package/dist/spw-stencil-library/p-49d9a720.entry.js.map +0 -1
  662. package/dist/spw-stencil-library/p-4ae6cb6c.entry.js +0 -2
  663. package/dist/spw-stencil-library/p-4ae6cb6c.entry.js.map +0 -1
  664. package/dist/spw-stencil-library/p-7d9b220f.entry.js.map +0 -1
  665. package/dist/spw-stencil-library/p-84132f3d.entry.js +0 -2
  666. package/dist/spw-stencil-library/p-84132f3d.entry.js.map +0 -1
  667. package/dist/spw-stencil-library/p-86c265a0.entry.js +0 -2
  668. package/dist/spw-stencil-library/p-86c265a0.entry.js.map +0 -1
  669. package/dist/spw-stencil-library/p-8b951993.entry.js.map +0 -1
  670. package/dist/spw-stencil-library/p-938971bc.entry.js.map +0 -1
  671. package/dist/spw-stencil-library/p-BaAUTDWF.js.map +0 -1
  672. package/dist/spw-stencil-library/p-b24afc65.entry.js +0 -2
  673. package/dist/spw-stencil-library/p-b24afc65.entry.js.map +0 -1
  674. package/dist/spw-stencil-library/p-ce16fd94.entry.js.map +0 -1
  675. package/dist/spw-stencil-library/p-cf09d649.entry.js +0 -2
  676. package/dist/spw-stencil-library/p-cf09d649.entry.js.map +0 -1
  677. package/dist/spw-stencil-library/p-eb6ad6f0.entry.js.map +0 -1
  678. package/dist/spw-stencil-library/p-f7dd32a4.entry.js +0 -2
  679. package/dist/spw-stencil-library/p-f7dd32a4.entry.js.map +0 -1
  680. package/dist/spw-stencil-library/p-fa895f36.entry.js +0 -2
  681. package/dist/spw-stencil-library/p-fa895f36.entry.js.map +0 -1
  682. package/dist/spw-stencil-library/utils-BXStmMnc.js.map +0 -1
  683. /package/dist/spw-stencil-library/{p-e95b2caa.entry.js.map → p-03f1a257.entry.js.map} +0 -0
  684. /package/dist/spw-stencil-library/{p-b6908714.entry.js.map → p-07cadb86.entry.js.map} +0 -0
  685. /package/dist/spw-stencil-library/{p-0f3f20f5.entry.js.map → p-08d78730.entry.js.map} +0 -0
  686. /package/dist/spw-stencil-library/{p-ea24705d.entry.js.map → p-0e310e7a.entry.js.map} +0 -0
  687. /package/dist/spw-stencil-library/{p-4e96a7f8.entry.js.map → p-158e7952.entry.js.map} +0 -0
  688. /package/dist/spw-stencil-library/{p-102ff932.entry.js.map → p-1e07197c.entry.js.map} +0 -0
  689. /package/dist/spw-stencil-library/{p-3625250b.entry.js.map → p-1e725439.entry.js.map} +0 -0
  690. /package/dist/spw-stencil-library/{p-b00ef206.entry.js.map → p-228a413d.entry.js.map} +0 -0
  691. /package/dist/spw-stencil-library/{p-45abc261.entry.js.map → p-274ce2d2.entry.js.map} +0 -0
  692. /package/dist/spw-stencil-library/{p-9cdaf77f.entry.js.map → p-2c8e65e5.entry.js.map} +0 -0
  693. /package/dist/spw-stencil-library/{p-809f6063.entry.js.map → p-2dff657f.entry.js.map} +0 -0
  694. /package/dist/spw-stencil-library/{p-ad03e5fa.entry.js.map → p-2e9756c4.entry.js.map} +0 -0
  695. /package/dist/spw-stencil-library/{p-8ea75393.entry.js.map → p-3240c1a4.entry.js.map} +0 -0
  696. /package/dist/spw-stencil-library/{p-49221194.entry.js.map → p-328fb48c.entry.js.map} +0 -0
  697. /package/dist/spw-stencil-library/{p-b7608972.entry.js.map → p-3cfcf070.entry.js.map} +0 -0
  698. /package/dist/spw-stencil-library/{p-7a9c8362.entry.js.map → p-44124a37.entry.js.map} +0 -0
  699. /package/dist/spw-stencil-library/{p-c93bb0fb.entry.js.map → p-4526bef6.entry.js.map} +0 -0
  700. /package/dist/spw-stencil-library/{p-f8b02eb3.entry.js.map → p-49be45a2.entry.js.map} +0 -0
  701. /package/dist/spw-stencil-library/{p-f384262d.entry.js.map → p-4e7df891.entry.js.map} +0 -0
  702. /package/dist/spw-stencil-library/{p-0b4a2f05.entry.js.map → p-52c51ac5.entry.js.map} +0 -0
  703. /package/dist/spw-stencil-library/{p-98255d7f.entry.js.map → p-5426464a.entry.js.map} +0 -0
  704. /package/dist/spw-stencil-library/{p-7c7f8eae.entry.js.map → p-573393ab.entry.js.map} +0 -0
  705. /package/dist/spw-stencil-library/{p-3a446e55.entry.js.map → p-57851ceb.entry.js.map} +0 -0
  706. /package/dist/spw-stencil-library/{p-add90792.entry.js.map → p-68f9c5bf.entry.js.map} +0 -0
  707. /package/dist/spw-stencil-library/{p-3ca241ed.entry.js.map → p-6b291009.entry.js.map} +0 -0
  708. /package/dist/spw-stencil-library/{p-8312033a.entry.js.map → p-6d08bcc3.entry.js.map} +0 -0
  709. /package/dist/spw-stencil-library/{p-ae95b303.entry.js.map → p-75159246.entry.js.map} +0 -0
  710. /package/dist/spw-stencil-library/{p-8ae132ed.entry.js.map → p-8d94697c.entry.js.map} +0 -0
  711. /package/dist/spw-stencil-library/{p-7f39476b.entry.js.map → p-93a5f755.entry.js.map} +0 -0
  712. /package/dist/spw-stencil-library/{p-325309ec.entry.js.map → p-98ee79d6.entry.js.map} +0 -0
  713. /package/dist/spw-stencil-library/{p-16f48e73.entry.js.map → p-991d5382.entry.js.map} +0 -0
  714. /package/dist/spw-stencil-library/{p-30005a16.entry.js.map → p-a093ab2f.entry.js.map} +0 -0
  715. /package/dist/spw-stencil-library/{p-08ead4ae.entry.js.map → p-a2b3dd47.entry.js.map} +0 -0
  716. /package/dist/spw-stencil-library/{p-27d3d92a.entry.js.map → p-ad5f01e4.entry.js.map} +0 -0
  717. /package/dist/spw-stencil-library/{p-5752fdef.entry.js.map → p-ae905af5.entry.js.map} +0 -0
  718. /package/dist/spw-stencil-library/{p-8b7f940d.entry.js.map → p-b0ca9615.entry.js.map} +0 -0
  719. /package/dist/spw-stencil-library/{p-4122bb55.entry.js.map → p-b0dc1073.entry.js.map} +0 -0
  720. /package/dist/spw-stencil-library/{p-c08f14f9.entry.js.map → p-b45534d4.entry.js.map} +0 -0
  721. /package/dist/spw-stencil-library/{p-44a61c9f.entry.js.map → p-b64a003c.entry.js.map} +0 -0
  722. /package/dist/spw-stencil-library/{p-f7d5eb27.entry.js.map → p-b726755c.entry.js.map} +0 -0
  723. /package/dist/spw-stencil-library/{p-621edd61.entry.js.map → p-be3b1d65.entry.js.map} +0 -0
  724. /package/dist/spw-stencil-library/{p-3cdcc221.entry.js.map → p-bf14b880.entry.js.map} +0 -0
  725. /package/dist/spw-stencil-library/{p-a09a320d.entry.js.map → p-c7fecad8.entry.js.map} +0 -0
  726. /package/dist/spw-stencil-library/{p-96f2ab55.entry.js.map → p-c838e17b.entry.js.map} +0 -0
  727. /package/dist/spw-stencil-library/{p-754d81d9.entry.js.map → p-ca672774.entry.js.map} +0 -0
  728. /package/dist/spw-stencil-library/{p-cc2fc4d1.entry.js.map → p-cf508941.entry.js.map} +0 -0
  729. /package/dist/spw-stencil-library/{p-dfade2bb.entry.js.map → p-cff5a7e4.entry.js.map} +0 -0
  730. /package/dist/spw-stencil-library/{p-49e6a16e.entry.js.map → p-d8078491.entry.js.map} +0 -0
  731. /package/dist/spw-stencil-library/{p-a992edea.entry.js.map → p-e1c4d94e.entry.js.map} +0 -0
  732. /package/dist/spw-stencil-library/{p-d4922788.entry.js.map → p-e5c9fb8e.entry.js.map} +0 -0
  733. /package/dist/spw-stencil-library/{p-4081582a.entry.js.map → p-f1d04cc1.entry.js.map} +0 -0
  734. /package/dist/spw-stencil-library/{p-aa7566e0.entry.js.map → p-f2008faa.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"utils-zpG0udTn.js","sources":["src/utils/utils.ts"],"sourcesContent":["export function format(first: string, middle: string, last: string): string {\n return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');\n}\n\nexport function toKebabCase(str: string) {\n return str.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();\n}\n\nexport function formatDate(date: string): string {\n const parts = date.split('-');\n return `${parts[2]}.${parts[1]}.${parts[0]}`;\n}\n\nexport function stripHtmlContent(content: string): string {\n const div = document.createElement('div');\n div.innerHTML = content;\n return div.textContent || div.innerText || '';\n}\n\ninterface ComponentProp {\n name: string;\n type: string;\n docs: string;\n default: string;\n}\n\ninterface ComponentEvent {\n event: string;\n docs: string;\n detail: string;\n}\n\ninterface ComponentMethod {\n name: string;\n signature: string;\n docs: string;\n returns: {\n type: string;\n docs: string;\n };\n parameters: Array<{\n name: string;\n type: string;\n docs: string;\n }>;\n}\n\ninterface ComponentInfo {\n name: string;\n props: ComponentProp[];\n events: ComponentEvent[];\n methods: ComponentMethod[];\n}\n\nconst description = (prop: ComponentProp | ComponentEvent | ComponentMethod) => (prop.docs || '').trim();\n\nconst isText = (prop: ComponentProp) => prop.type === 'string';\nconst isBoolean = (prop: ComponentProp) => prop.type === 'boolean';\nconst isEnum = (prop: ComponentProp) => prop.type.includes('|');\nconst isNumber = (prop: ComponentProp) => prop.type === 'number';\n\nconst enumOptions = (prop: ComponentProp) =>\n prop.type\n .split('|')\n .map(t => t.trim())\n .map(t => (t === '\"\"' ? 'default' : t))\n .map(t => t.replace(/^\"(.*)\"$/, '$1'));\n\nconst generateProp = (prop: ComponentProp) => {\n if (isText(prop)) {\n return {\n [prop.name]: {\n control: 'text',\n description: description(prop),\n defaultValue: prop.default,\n table: {\n category: 'properties',\n defaultValue: { summary: prop.default },\n type: { summary: 'string' },\n },\n },\n };\n }\n\n if (isBoolean(prop)) {\n return {\n [prop.name]: {\n control: 'boolean',\n description: description(prop),\n defaultValue: prop.default,\n table: {\n category: 'properties',\n defaultValue: { summary: prop.default },\n type: { summary: 'boolean' },\n },\n },\n };\n }\n\n if (isNumber(prop)) {\n return {\n [prop.name]: {\n control: 'number',\n description: description(prop),\n defaultValue: prop.default,\n table: {\n category: 'properties',\n defaultValue: { summary: prop.default },\n type: { summary: 'number' },\n },\n },\n };\n }\n\n if (isEnum(prop)) {\n return {\n [prop.name]: {\n control: 'select',\n defaultValue: prop.default,\n options: enumOptions(prop),\n description: description(prop),\n table: {\n category: 'properties',\n defaultValue: { summary: prop.default },\n type: { summary: 'enum' },\n },\n },\n };\n }\n\n return {};\n};\n\nconst generateProps = (props: ComponentProp[]) => {\n let args = {};\n props.forEach(prop => (args = { ...args, ...generateProp(prop) }));\n return args;\n};\n\nconst generateEvent = (event: ComponentEvent) => {\n function capitalizeFirstLetter(string: string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n }\n\n return {\n [`on${capitalizeFirstLetter(event.event)}`]: {\n action: event.event,\n description: description(event),\n table: {\n defaultValue: { summary: event.event },\n category: 'events',\n type: { summary: event.detail },\n },\n },\n };\n};\n\nconst generateEvents = (events: ComponentEvent[]) => {\n let args = {};\n events.forEach(event => (args = { ...args, ...generateEvent(event) }));\n return args;\n};\n\nconst generateMethod = (method: ComponentMethod) => {\n return {\n [method.name]: {\n action: method.name,\n description: description(method),\n table: {\n category: 'methods',\n type: { summary: method.signature },\n defaultValue: { summary: method.returns.type },\n },\n },\n };\n};\n\nconst generateMethods = (methods: ComponentMethod[]) => {\n let args = {};\n methods.forEach(method => (args = { ...args, ...generateMethod(method) }));\n return args;\n};\n\nconst extractComponentInfoByTag = (componentsData: any, tag: string): ComponentInfo | null => {\n const component = componentsData.components.find(c => c.tag === tag);\n\n if (!component) {\n console.error(`Component with tag ${tag} not found`);\n return null;\n }\n\n const { props, events, methods } = component;\n\n const propInfo = props.map(prop => ({\n name: prop.name,\n type: prop.type,\n docs: prop.docs,\n default: prop.default || '',\n }));\n\n const eventInfo = events.map(event => ({\n event: event.event,\n docs: event.docs,\n detail: event.detail,\n }));\n\n const methodInfo = methods.map(method => ({\n name: method.name,\n signature: method.signature,\n docs: method.docs,\n returns: method.returns,\n parameters: method.parameters,\n }));\n\n return {\n name: tag,\n props: propInfo,\n events: eventInfo,\n methods: methodInfo,\n };\n};\n\nconst generateHTMLTable = (componentInfo: ComponentInfo): string => {\n if (!componentInfo) {\n return `<p>Component not found</p>`;\n }\n\n const { props, events, methods } = componentInfo;\n\n const propsRows = props\n .map(\n prop => `\n <tr>\n <td>${prop.name}</td>\n <td>${prop.type}</td>\n <td>${prop.docs}</td>\n <td>${prop.default}</td>\n </tr>\n `,\n )\n .join('');\n\n const eventsRows = events\n .map(\n event => `\n <tr>\n <td>${event.event}</td>\n <td>${event.detail}</td>\n <td>${event.docs}</td>\n </tr>\n `,\n )\n .join('');\n\n const methodsRows = methods\n .map(\n method => `\n <tr>\n <td>${method.name}</td>\n <td>${method.signature}</td>\n <td>${method.returns.type}</td>\n <td>${method.docs}</td>\n </tr>\n `,\n )\n .join('');\n\n return `\n <h3>Propriétés</h3>\n <table class=\"w-full\">\n <thead>\n <tr>\n <th>Propriété</th>\n <th>Type</th>\n <th>Description</th>\n <th>Valeur par défaut</th>\n </tr>\n </thead>\n <tbody>\n ${propsRows}\n </tbody>\n </table>\n <h3>Événements</h3>\n <table class=\"w-full\">\n <thead>\n <tr>\n <th>Événement</th>\n <th>Détail</th>\n <th>Description</th>\n </tr>\n </thead>\n <tbody>\n ${eventsRows}\n </tbody>\n </table>\n <h3>Méthodes</h3>\n <table class=\"w-full\">\n <thead>\n <tr>\n <th>Méthode</th>\n <th>Signature</th>\n <th>Retour</th>\n <th>Description</th>\n </tr>\n </thead>\n <tbody>\n ${methodsRows}\n </tbody>\n </table>\n `;\n};\n\nexport const generateComponentTable = (componentsData: any, tag: string): string => {\n const componentInfo = extractComponentInfoByTag(componentsData, tag);\n return generateHTMLTable(componentInfo);\n};\n\nexport const withComponentControls = (\n componentsData: any,\n { tag, customTokens = [] }: { tag: string; customTokens?: { name: string; description: string; defaultValue: string }[] },\n): any => {\n const component = componentsData.components.find(c => c.tag === tag);\n const props = component?.props || [];\n const events = component?.events || [];\n const methods = component?.methods || [];\n\n const tokenControls = customTokens.reduce((acc, token) => {\n acc[token.name] = {\n control: true,\n description: token.description,\n table: {\n category: 'Tokens',\n type: { summary: 'CSS Variable' },\n defaultValue: { summary: token.defaultValue },\n },\n };\n return acc;\n }, {});\n\n return {\n ...generateProps(props as ComponentProp[]),\n ...generateEvents(events as ComponentEvent[]),\n ...generateMethods(methods as ComponentMethod[]),\n ...tokenControls,\n };\n};\n\nexport function extractArgTypes(componentsData: any, subComponentTags: string[]) {\n return subComponentTags.reduce((acc, tag) => {\n const subComponentArgTypes = withComponentControls(componentsData, { tag });\n return { ...acc, ...subComponentArgTypes };\n }, {});\n}\n\nexport function formatFileSize(sizeInBytes) {\n const sizeInMB = sizeInBytes / (1024 * 1024);\n let formattedSize = sizeInMB.toFixed(2).replace('.', ',');\n\n if (sizeInMB > 0 && sizeInMB < 0.01) {\n formattedSize = '0,01';\n } else if (sizeInMB === 0) {\n formattedSize = '0,00';\n }\n\n return `${formattedSize} Mo`;\n}\n\nexport function hasSlotContent(el: HTMLElement): boolean {\n const slot = el.querySelector('slot');\n return slot && slot.assignedNodes().length > 0;\n}\n"],"names":[],"mappings":"AAQM,SAAU,UAAU,CAAC,IAAY,EAAA;IACrC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC;AAC7B,IAAA,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE;AAC9C;AAuVM,SAAU,cAAc,CAAC,WAAW,EAAA;IACxC,MAAM,QAAQ,GAAG,WAAW,IAAI,IAAI,GAAG,IAAI,CAAC;AAC5C,IAAA,IAAI,aAAa,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC;IAEzD,IAAI,QAAQ,GAAG,CAAC,IAAI,QAAQ,GAAG,IAAI,EAAE;QACnC,aAAa,GAAG,MAAM;;AACjB,SAAA,IAAI,QAAQ,KAAK,CAAC,EAAE;QACzB,aAAa,GAAG,MAAM;;IAGxB,OAAO,CAAA,EAAG,aAAa,CAAA,GAAA,CAAK;AAC9B;;;;"}
1
+ {"version":3,"file":"utils-zpG0udTn.js","sources":["src/utils/utils.ts"],"sourcesContent":["export function format(first: string, middle: string, last: string): string {\n return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');\n}\n\nexport function toKebabCase(str: string) {\n return str.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();\n}\n\nexport function formatDate(date: string): string {\n const parts = date.split('-');\n return `${parts[2]}.${parts[1]}.${parts[0]}`;\n}\n\nexport function stripHtmlContent(content: string): string {\n const div = document.createElement('div');\n div.innerHTML = content;\n return div.textContent || div.innerText || '';\n}\n\ninterface ComponentProp {\n name: string;\n type: string;\n docs: string;\n default: string;\n}\n\ninterface ComponentEvent {\n event: string;\n docs: string;\n detail: string;\n}\n\ninterface ComponentMethod {\n name: string;\n signature: string;\n docs: string;\n returns: {\n type: string;\n docs: string;\n };\n parameters: Array<{\n name: string;\n type: string;\n docs: string;\n }>;\n}\n\ninterface ComponentInfo {\n name: string;\n props: ComponentProp[];\n events: ComponentEvent[];\n methods: ComponentMethod[];\n}\n\nconst description = (prop: ComponentProp | ComponentEvent | ComponentMethod) => (prop.docs || '').trim();\n\nconst isText = (prop: ComponentProp) => prop.type === 'string';\nconst isBoolean = (prop: ComponentProp) => prop.type === 'boolean';\nconst isEnum = (prop: ComponentProp) => prop.type.includes('|');\nconst isNumber = (prop: ComponentProp) => prop.type === 'number';\n\nconst enumOptions = (prop: ComponentProp) =>\n prop.type\n .split('|')\n .map(t => t.trim())\n .map(t => (t === '\"\"' ? 'default' : t))\n .map(t => t.replace(/^\"(.*)\"$/, '$1'));\n\nconst generateProp = (prop: ComponentProp) => {\n if (isText(prop)) {\n return {\n [prop.name]: {\n control: 'text',\n description: description(prop),\n defaultValue: prop.default,\n table: {\n category: 'properties',\n defaultValue: { summary: prop.default },\n type: { summary: 'string' },\n },\n },\n };\n }\n\n if (isBoolean(prop)) {\n return {\n [prop.name]: {\n control: 'boolean',\n description: description(prop),\n defaultValue: prop.default,\n table: {\n category: 'properties',\n defaultValue: { summary: prop.default },\n type: { summary: 'boolean' },\n },\n },\n };\n }\n\n if (isNumber(prop)) {\n return {\n [prop.name]: {\n control: 'number',\n description: description(prop),\n defaultValue: prop.default,\n table: {\n category: 'properties',\n defaultValue: { summary: prop.default },\n type: { summary: 'number' },\n },\n },\n };\n }\n\n if (isEnum(prop)) {\n return {\n [prop.name]: {\n control: 'select',\n defaultValue: prop.default,\n options: enumOptions(prop),\n description: description(prop),\n table: {\n category: 'properties',\n defaultValue: { summary: prop.default },\n type: { summary: 'enum' },\n },\n },\n };\n }\n\n return {};\n};\n\nconst generateProps = (props: ComponentProp[]) => {\n let args = {};\n props.forEach(prop => (args = { ...args, ...generateProp(prop) }));\n return args;\n};\n\nconst generateEvent = (event: ComponentEvent) => {\n function capitalizeFirstLetter(string: string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n }\n\n return {\n [`on${capitalizeFirstLetter(event.event)}`]: {\n action: event.event,\n description: description(event),\n table: {\n defaultValue: { summary: event.event },\n category: 'events',\n type: { summary: event.detail },\n },\n },\n };\n};\n\nconst generateEvents = (events: ComponentEvent[]) => {\n let args = {};\n events.forEach(event => (args = { ...args, ...generateEvent(event) }));\n return args;\n};\n\nconst generateMethod = (method: ComponentMethod) => {\n return {\n [method.name]: {\n action: method.name,\n description: description(method),\n table: {\n category: 'methods',\n type: { summary: method.signature },\n defaultValue: { summary: method.returns.type },\n },\n },\n };\n};\n\nconst generateMethods = (methods: ComponentMethod[]) => {\n let args = {};\n methods.forEach(method => (args = { ...args, ...generateMethod(method) }));\n return args;\n};\n\nconst extractComponentInfoByTag = (componentsData: any, tag: string): ComponentInfo | null => {\n const component = componentsData.components.find(c => c.tag === tag);\n\n if (!component) {\n console.error(`Component with tag ${tag} not found`);\n return null;\n }\n\n const { props, events, methods } = component;\n\n const propInfo = props.map(prop => ({\n name: prop.name,\n type: prop.type,\n docs: prop.docs,\n default: prop.default || '',\n }));\n\n const eventInfo = events.map(event => ({\n event: event.event,\n docs: event.docs,\n detail: event.detail,\n }));\n\n const methodInfo = methods.map(method => ({\n name: method.name,\n signature: method.signature,\n docs: method.docs,\n returns: method.returns,\n parameters: method.parameters,\n }));\n\n return {\n name: tag,\n props: propInfo,\n events: eventInfo,\n methods: methodInfo,\n };\n};\n\nconst generateHTMLTable = (componentInfo: ComponentInfo): string => {\n if (!componentInfo) {\n return `<p>Component not found</p>`;\n }\n\n const { props, events, methods } = componentInfo;\n\n const propsRows = props\n .map(\n prop => `\n <tr>\n <td>${prop.name}</td>\n <td>${prop.type}</td>\n <td>${prop.docs}</td>\n <td>${prop.default}</td>\n </tr>\n `,\n )\n .join('');\n\n const eventsRows = events\n .map(\n event => `\n <tr>\n <td>${event.event}</td>\n <td>${event.detail}</td>\n <td>${event.docs}</td>\n </tr>\n `,\n )\n .join('');\n\n const methodsRows = methods\n .map(\n method => `\n <tr>\n <td>${method.name}</td>\n <td>${method.signature}</td>\n <td>${method.returns.type}</td>\n <td>${method.docs}</td>\n </tr>\n `,\n )\n .join('');\n\n return `\n <h3>Propriétés</h3>\n <table class=\"w-full\">\n <thead>\n <tr>\n <th>Propriété</th>\n <th>Type</th>\n <th>Description</th>\n <th>Valeur par défaut</th>\n </tr>\n </thead>\n <tbody>\n ${propsRows}\n </tbody>\n </table>\n <h3>Événements</h3>\n <table class=\"w-full\">\n <thead>\n <tr>\n <th>Événement</th>\n <th>Détail</th>\n <th>Description</th>\n </tr>\n </thead>\n <tbody>\n ${eventsRows}\n </tbody>\n </table>\n <h3>Méthodes</h3>\n <table class=\"w-full\">\n <thead>\n <tr>\n <th>Méthode</th>\n <th>Signature</th>\n <th>Retour</th>\n <th>Description</th>\n </tr>\n </thead>\n <tbody>\n ${methodsRows}\n </tbody>\n </table>\n `;\n};\n\nexport const generateComponentTable = (componentsData: any, tag: string): string => {\n const componentInfo = extractComponentInfoByTag(componentsData, tag);\n return generateHTMLTable(componentInfo);\n};\n\nexport const withComponentControls = (\n componentsData: any,\n { tag, customTokens = [] }: { tag: string; customTokens?: { name: string; description: string; defaultValue: string }[] },\n): any => {\n const component = componentsData.components.find(c => c.tag === tag);\n const props = component?.props || [];\n const events = component?.events || [];\n const methods = component?.methods || [];\n\n const tokenControls = customTokens.reduce((acc, token) => {\n acc[token.name] = {\n control: true,\n description: token.description,\n table: {\n category: 'Tokens',\n type: { summary: 'CSS Variable' },\n defaultValue: { summary: token.defaultValue },\n },\n };\n return acc;\n }, {});\n\n // ✅ Séparation claire des catégories\n const propControls = generateProps(props as ComponentProp[]);\n const eventControls = generateEvents(events as ComponentEvent[]);\n const methodControls = generateMethods(methods as ComponentMethod[]);\n\n // ✅ Regroupement complet pour Storybook\n const allControls = {\n ...propControls,\n ...eventControls,\n ...methodControls,\n ...tokenControls,\n };\n\n // ✅ Indique explicitement quelles sont les props réelles du composant\n Object.defineProperty(allControls, '__realProps', {\n value: Object.keys(propControls).concat(Object.keys(tokenControls)),\n enumerable: false, // ne pollue pas la vue Storybook\n });\n\n return allControls;\n};\n\nexport function extractArgTypes(componentsData: any, subComponentTags: string[]) {\n return subComponentTags.reduce((acc, tag) => {\n const subComponentArgTypes = withComponentControls(componentsData, { tag });\n return { ...acc, ...subComponentArgTypes };\n }, {});\n}\n\nexport function formatFileSize(sizeInBytes) {\n const sizeInMB = sizeInBytes / (1024 * 1024);\n let formattedSize = sizeInMB.toFixed(2).replace('.', ',');\n\n if (sizeInMB > 0 && sizeInMB < 0.01) {\n formattedSize = '0,01';\n } else if (sizeInMB === 0) {\n formattedSize = '0,00';\n }\n\n return `${formattedSize} Mo`;\n}\n\nexport function hasSlotContent(el: HTMLElement): boolean {\n const slot = el.querySelector('slot');\n return slot && slot.assignedNodes().length > 0;\n}\n"],"names":[],"mappings":"AAQM,SAAU,UAAU,CAAC,IAAY,EAAA;IACrC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC;AAC7B,IAAA,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE;AAC9C;AAqWM,SAAU,cAAc,CAAC,WAAW,EAAA;IACxC,MAAM,QAAQ,GAAG,WAAW,IAAI,IAAI,GAAG,IAAI,CAAC;AAC5C,IAAA,IAAI,aAAa,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC;IAEzD,IAAI,QAAQ,GAAG,CAAC,IAAI,QAAQ,GAAG,IAAI,EAAE;QACnC,aAAa,GAAG,MAAM;;AACjB,SAAA,IAAI,QAAQ,KAAK,CAAC,EAAE;QACzB,aAAa,GAAG,MAAM;;IAGxB,OAAO,CAAA,EAAG,aAAa,CAAA,GAAA,CAAK;AAC9B;;;;"}
@@ -1,2 +1,2 @@
1
- import{r as e,c as i,h as s,g as t}from"./p-BaAUTDWF.js";import{a as o}from"./p-zpG0udTn.js";const a="/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;display:block;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-file-upload{display:block;position:relative}.spw-file-upload__wrapper--error{background-color:#ffe6e6;border-color:#ff4d4d}.spw-file-upload__wrapper--dragging{background-color:#e0f7fa;border-color:#00acc1}.spw-file-upload spw-button{display:inline-block;margin-bottom:8px}.spw-file-upload__errors{color:var(--spw-colors-dark-themes-red-red-500);font-size:14px;font-weight:600}.spw-file-upload__errors li{margin-top:16px}.spw-file-upload__errors--warning{color:var(--spw-color-themes-grey-grey-800);font-weight:400}.spw-file-upload__hints{color:var(--spw-color-themes-grey-grey-600);font-size:14px;margin-top:16px}.spw-file-upload__dropzone{background:var(--spw-colors-dark-themes-blue-grey-blue-grey-50);border:1px dashed #333;border-radius:8px;color:#555;cursor:pointer;font-weight:700;padding:20px;text-align:center}.spw-file-upload__dropzone:not(.spw-file-upload--disabled):hover{outline:4px solid var(--spw-color-themes-grey-grey-300)}.spw-file-upload__dropzone:not(.spw-file-upload__wrapper--disabled):active,.spw-file-upload__dropzone:not(.spw-file-upload__wrapper--disabled):focus-visible,.spw-file-upload__dropzone:not(.spw-file-upload__wrapper--disabled):focus-within{outline:2px solid var(--spw-ds-focus)}.spw-file-upload__dropzone-link{color:var(--spw-ds-primary);text-decoration:underline}.spw-file-upload__dropzone-link:hover{text-decoration:none}.spw-file-upload__wrapper--disabled .spw-file-upload__dropzone-link{color:inherit;text-decoration:none}.spw-file-upload__wrapper--disabled .spw-file-upload__dropzone{background:var(--spw-color-themes-grey-grey-100);border-color:var(--spw-color-themes-grey-grey-300);color:var(--spw-color-themes-grey-grey-400);cursor:not-allowed;outline:none!important}.spw-file-upload--is-dragging .spw-file-upload__dropzone{background:var(--spw-colors-dark-themes-blue-grey-blue-grey-200)}.spw-file-upload__info-list{border-top:1px solid #eee;margin-top:16px}.spw-file-upload__info-list li{align-items:center;border-bottom:1px solid #eee;color:var(--spw-color-themes-grey-grey-900);display:flex;flex-wrap:wrap;font-size:14px;gap:8px;justify-content:space-between;padding:16px 8px}@media (min-width:768px){.spw-file-upload__info-list li{flex-wrap:nowrap;gap:16px}}.spw-file-upload__info-list-actions{display:flex;gap:8px}@media (min-width:768px){.spw-file-upload__info-list-actions{gap:16px}}.spw-file-upload__info-list-delete{color:inherit}.spw-file-upload__info-list-delete:hover{text-decoration:none}.spw-tw-mr-2{margin-right:.5rem}";const r=class{constructor(s){e(this,s);this.spwFileChange=i(this,"spwFileChange");if(s.$hostElement$["s-ei"]){this.internals=s.$hostElement$["s-ei"]}else{this.internals=s.$hostElement$.attachInternals();s.$hostElement$["s-ei"]=this.internals}this.disabled=false;this.error=false;this.enableDropZone=false;this.multiple=false;this.accept="";this.maxFileSize=100;this.maxFiles=Infinity;this.selectedFiles=[];this.fileTypeErrors=[];this.fileLimitErrors=[];this.isDragging=false;this.isMaxFilesReachedExact=false}componentWillLoad(){this.internalValue=this.value;this.maxFileSize=this.maxFileSize*1024*1024}componentWillUpdate(){if(this.value!==this.internalValue){this.internalValue=this.value}}get isMaxFilesReached(){return this.selectedFiles.length>=this.maxFiles}handleFileChange(e){const i=e.target;const s=i.files?Array.from(i.files):[];this.processFiles(s)}processFiles(e){this.fileTypeErrors=[];this.fileLimitErrors=[];this.isMaxFilesReachedExact=false;if(!this.multiple){this.selectedFiles=[];e=e.slice(0,1)}const i=e.filter((e=>{const i=this.isFileAccepted(e);const s=this.isFileSizeValid(e);if(!i&&!s){this.fileTypeErrors.push(`${e.name} n’a pas été pris en compte car le format n’est pas autorisé et la limite de poids est dépassée.`);return false}else if(!i){this.fileTypeErrors.push(`${e.name} n'a pas été pris en compte car le format n'est pas autorisé.`);return false}else if(!s){this.fileTypeErrors.push(`${e.name} n'a pas été pris en compte car il dépasse la taille maximale autorisée.`);return false}return true}));if(this.selectedFiles.length+i.length>=this.maxFiles){const e=this.maxFiles-this.selectedFiles.length;if(this.selectedFiles.length+i.length===this.maxFiles){this.isMaxFilesReachedExact=true;this.fileLimitErrors.push("Vous avez atteint la limite autorisée de fichiers.")}else{i.splice(e);const s=this.maxFiles>1?"fichiers":"fichier";this.fileLimitErrors.push(`Vous ne pouvez pas télécharger plus de ${this.maxFiles} ${s}.`)}}this.selectedFiles=[...this.selectedFiles,...i];this.spwFileChange.emit({files:this.selectedFiles});this.updateFormValue()}isFileAccepted(e){if(!this.accept)return true;const i=this.accept.split(",").map((e=>e.trim()));return i.includes(e.type)||i.some((i=>e.name.endsWith(i)))}isFileSizeValid(e){return e.size<=this.maxFileSize}updateFormValue(){if(this.selectedFiles.length>0){const e=new FormData;this.selectedFiles.forEach(((i,s)=>{e.append(`${this.name}[${s}]`,i)}));this.internalValue=e.toString();this.internals.setFormValue(e)}else{this.internalValue="";this.internals.setFormValue(null)}}async resetInput(){this.inputElement.value="";this.selectedFiles=[];this.fileLimitErrors=[];this.fileTypeErrors=[];this.updateFormValue()}formResetCallback(){this.resetInput()}handleDragOver(e){e.preventDefault();if(!this.disabled&&this.enableDropZone&&!this.isMaxFilesReached){this.isDragging=true}}handleDragLeave(){if(!this.disabled&&this.enableDropZone){this.isDragging=false}}handleDrop(e){var i;e.preventDefault();if(!this.disabled&&this.enableDropZone&&!this.isMaxFilesReached){this.isDragging=false;const s=((i=e.dataTransfer)===null||i===void 0?void 0:i.files)?Array.from(e.dataTransfer.files):[];this.processFiles(s)}}removeFile(e){this.selectedFiles=this.selectedFiles.filter(((i,s)=>s!==e));this.fileLimitErrors=[];this.updateFormValue()}handleKeydown(e){if((e.key===" "||e.key==="Enter")&&!this.isMaxFilesReached){e.preventDefault();!this.disabled&&this.inputElement.click()}}get elementClass(){return{"spw-file-upload__wrapper":true,"spw-file-upload__wrapper--disabled":this.disabled||this.isMaxFilesReached,"spw-file-upload__wrapper--error":this.error,"spw-file-upload--has-dropzone":this.enableDropZone,"spw-file-upload--is-dragging":this.isDragging}}get hintsMessages(){const e=this.maxFileSize/(1024*1024);const i=this.accept?this.accept:"tous les formats";const s=[];let t=`Taille maximale par fichier : ${e} Mo`;if(this.multiple&&this.maxFiles!==Infinity){const e=this.maxFiles>1?"fichiers":"fichier";t+=` - ${this.maxFiles} ${e} maximum.`}else{t+="."}s.push(t);s.push(`Formats autorisés : ${i}.`);return s}render(){const e=this.multiple?"Choisir vos fichiers...":"Choisir votre fichier...";const i=this.multiple?"Déposez vos fichiers ici":"Déposez votre fichier ici";return s("div",{key:"468bd76f73503c449deeba53922d88b225b41b22",class:this.elementClass,onDragOver:this.handleDragOver.bind(this),onDragLeave:this.handleDragLeave.bind(this),onDrop:this.handleDrop.bind(this)},s("input",{key:"0de78e1a6b7d4f68433fcd6a8bae829a4fad6344",type:"file",ref:e=>this.inputElement=e,onChange:this.handleFileChange.bind(this),name:this.name,multiple:this.multiple,accept:this.accept,style:{display:"none"},disabled:this.isMaxFilesReached}),this.enableDropZone?s("div",{tabindex:this.disabled||this.isMaxFilesReached?-1:0,onKeyDown:this.handleKeydown.bind(this),onClick:()=>!this.disabled&&!this.isMaxFilesReached&&this.inputElement.click(),class:"spw-file-upload__dropzone"},i," ou ",s("span",{class:"spw-file-upload__dropzone-link"},"choisissez sur votre ordinateur...")):s("spw-button",{variant:"secondary",onClick:()=>!this.disabled&&!this.isMaxFilesReached&&this.inputElement.click(),disabled:this.disabled||this.isMaxFilesReached},e),s("div",{key:"42f7cfd7d251e365f3289e67867128920d6496f6",class:"spw-file-upload__hints"},this.hintsMessages.length>0&&s("ul",{key:"0845b71f91aae08a5e3613cf08f802bb3d149be2"},this.hintsMessages.map(((e,i)=>s("li",{key:i},e))))),s("div",{key:"12237899a95dfaeacf47751ae6dfedd04c4a026d",class:"spw-file-upload__info"},this.selectedFiles.length>0?s("ul",{class:"spw-file-upload__info-list"},this.selectedFiles.map(((e,i)=>s("li",{key:i},s("span",{class:"spw-file-upload__info-list-name"},e.name),s("div",{class:"spw-file-upload__info-list-actions"},s("span",{class:"spw-tw-mr-2"},o(e.size)),s("a",{class:"spw-file-upload__info-list-delete",href:"#",onClick:e=>{e.preventDefault();this.removeFile(i)}},"Supprimer")))))):"",this.fileLimitErrors.length>0&&s("ul",{key:"f7a3d2b70b157a09cafd164745d7fad0ec21d694",class:`spw-file-upload__errors ${this.isMaxFilesReachedExact?"spw-file-upload__errors--warning":""}`},this.fileLimitErrors.map(((e,i)=>s("li",{key:i},s("spw-icon",{class:"spw-tw-mr-2",icon:this.isMaxFilesReachedExact?"fa-circle-exclamation":"fa-warning"}),e)))),this.fileTypeErrors.length>0&&s("ul",{key:"ead563cc726b5d25e0b5822f98a595200488e8fe",class:"spw-file-upload__errors"},this.fileTypeErrors.map(((e,i)=>s("li",{key:i},s("spw-icon",{class:"spw-tw-mr-2",icon:"fa-warning"}),e))))))}static get formAssociated(){return true}get el(){return t(this)}};r.style=a;export{r as spw_file_upload};
2
- //# sourceMappingURL=p-e95b2caa.entry.js.map
1
+ import{r as e,c as i,h as s,g as t}from"./p-BYM_CUUH.js";import{a as o}from"./p-zpG0udTn.js";const a="/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;display:block;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-file-upload{display:block;position:relative}.spw-file-upload__wrapper--error{background-color:#ffe6e6;border-color:#ff4d4d}.spw-file-upload__wrapper--dragging{background-color:#e0f7fa;border-color:#00acc1}.spw-file-upload spw-button{display:inline-block;margin-bottom:8px}.spw-file-upload__errors{color:var(--spw-colors-dark-themes-red-red-500);font-size:14px;font-weight:600}.spw-file-upload__errors li{margin-top:16px}.spw-file-upload__errors--warning{color:var(--spw-color-themes-grey-grey-800);font-weight:400}.spw-file-upload__hints{color:var(--spw-color-themes-grey-grey-600);font-size:14px;margin-top:16px}.spw-file-upload__dropzone{background:var(--spw-colors-dark-themes-blue-grey-blue-grey-50);border:1px dashed #333;border-radius:8px;color:#555;cursor:pointer;font-weight:700;padding:20px;text-align:center}.spw-file-upload__dropzone:not(.spw-file-upload--disabled):hover{outline:4px solid var(--spw-color-themes-grey-grey-300)}.spw-file-upload__dropzone:not(.spw-file-upload__wrapper--disabled):active,.spw-file-upload__dropzone:not(.spw-file-upload__wrapper--disabled):focus-visible,.spw-file-upload__dropzone:not(.spw-file-upload__wrapper--disabled):focus-within{outline:2px solid var(--spw-ds-focus)}.spw-file-upload__dropzone-link{color:var(--spw-ds-primary);text-decoration:underline}.spw-file-upload__dropzone-link:hover{text-decoration:none}.spw-file-upload__wrapper--disabled .spw-file-upload__dropzone-link{color:inherit;text-decoration:none}.spw-file-upload__wrapper--disabled .spw-file-upload__dropzone{background:var(--spw-color-themes-grey-grey-100);border-color:var(--spw-color-themes-grey-grey-300);color:var(--spw-color-themes-grey-grey-400);cursor:not-allowed;outline:none!important}.spw-file-upload--is-dragging .spw-file-upload__dropzone{background:var(--spw-colors-dark-themes-blue-grey-blue-grey-200)}.spw-file-upload__info-list{border-top:1px solid #eee;margin-top:16px}.spw-file-upload__info-list li{align-items:center;border-bottom:1px solid #eee;color:var(--spw-color-themes-grey-grey-900);display:flex;flex-wrap:wrap;font-size:14px;gap:8px;justify-content:space-between;padding:16px 8px}@media (min-width:768px){.spw-file-upload__info-list li{flex-wrap:nowrap;gap:16px}}.spw-file-upload__info-list-actions{display:flex;gap:8px}@media (min-width:768px){.spw-file-upload__info-list-actions{gap:16px}}.spw-file-upload__info-list-delete{color:inherit}.spw-file-upload__info-list-delete:hover{text-decoration:none}.spw-tw-mr-2{margin-right:.5rem}";const r=class{constructor(s){e(this,s);this.spwFileChange=i(this,"spwFileChange");if(s.$hostElement$["s-ei"]){this.internals=s.$hostElement$["s-ei"]}else{this.internals=s.$hostElement$.attachInternals();s.$hostElement$["s-ei"]=this.internals}this.disabled=false;this.error=false;this.enableDropZone=false;this.multiple=false;this.accept="";this.maxFileSize=100;this.maxFiles=Infinity;this.selectedFiles=[];this.fileTypeErrors=[];this.fileLimitErrors=[];this.isDragging=false;this.isMaxFilesReachedExact=false}componentWillLoad(){this.internalValue=this.value;this.maxFileSize=this.maxFileSize*1024*1024}componentWillUpdate(){if(this.value!==this.internalValue){this.internalValue=this.value}}get isMaxFilesReached(){return this.selectedFiles.length>=this.maxFiles}handleFileChange(e){const i=e.target;const s=i.files?Array.from(i.files):[];this.processFiles(s)}processFiles(e){this.fileTypeErrors=[];this.fileLimitErrors=[];this.isMaxFilesReachedExact=false;if(!this.multiple){this.selectedFiles=[];e=e.slice(0,1)}const i=e.filter((e=>{const i=this.isFileAccepted(e);const s=this.isFileSizeValid(e);if(!i&&!s){this.fileTypeErrors.push(`${e.name} n’a pas été pris en compte car le format n’est pas autorisé et la limite de poids est dépassée.`);return false}else if(!i){this.fileTypeErrors.push(`${e.name} n'a pas été pris en compte car le format n'est pas autorisé.`);return false}else if(!s){this.fileTypeErrors.push(`${e.name} n'a pas été pris en compte car il dépasse la taille maximale autorisée.`);return false}return true}));if(this.selectedFiles.length+i.length>=this.maxFiles){const e=this.maxFiles-this.selectedFiles.length;if(this.selectedFiles.length+i.length===this.maxFiles){this.isMaxFilesReachedExact=true;this.fileLimitErrors.push("Vous avez atteint la limite autorisée de fichiers.")}else{i.splice(e);const s=this.maxFiles>1?"fichiers":"fichier";this.fileLimitErrors.push(`Vous ne pouvez pas télécharger plus de ${this.maxFiles} ${s}.`)}}this.selectedFiles=[...this.selectedFiles,...i];this.spwFileChange.emit({files:this.selectedFiles});this.updateFormValue()}isFileAccepted(e){if(!this.accept)return true;const i=this.accept.split(",").map((e=>e.trim()));return i.includes(e.type)||i.some((i=>e.name.endsWith(i)))}isFileSizeValid(e){return e.size<=this.maxFileSize}updateFormValue(){if(this.selectedFiles.length>0){const e=new FormData;this.selectedFiles.forEach(((i,s)=>{e.append(`${this.name}[${s}]`,i)}));this.internalValue=e.toString();this.internals.setFormValue(e)}else{this.internalValue="";this.internals.setFormValue(null)}}async resetInput(){this.inputElement.value="";this.selectedFiles=[];this.fileLimitErrors=[];this.fileTypeErrors=[];this.updateFormValue()}formResetCallback(){this.resetInput()}handleDragOver(e){e.preventDefault();if(!this.disabled&&this.enableDropZone&&!this.isMaxFilesReached){this.isDragging=true}}handleDragLeave(){if(!this.disabled&&this.enableDropZone){this.isDragging=false}}handleDrop(e){var i;e.preventDefault();if(!this.disabled&&this.enableDropZone&&!this.isMaxFilesReached){this.isDragging=false;const s=((i=e.dataTransfer)===null||i===void 0?void 0:i.files)?Array.from(e.dataTransfer.files):[];this.processFiles(s)}}removeFile(e){this.selectedFiles=this.selectedFiles.filter(((i,s)=>s!==e));this.fileLimitErrors=[];this.updateFormValue()}handleKeydown(e){if((e.key===" "||e.key==="Enter")&&!this.isMaxFilesReached){e.preventDefault();!this.disabled&&this.inputElement.click()}}get elementClass(){return{"spw-file-upload__wrapper":true,"spw-file-upload__wrapper--disabled":this.disabled||this.isMaxFilesReached,"spw-file-upload__wrapper--error":this.error,"spw-file-upload--has-dropzone":this.enableDropZone,"spw-file-upload--is-dragging":this.isDragging}}get hintsMessages(){const e=this.maxFileSize/(1024*1024);const i=this.accept?this.accept:"tous les formats";const s=[];let t=`Taille maximale par fichier : ${e} Mo`;if(this.multiple&&this.maxFiles!==Infinity){const e=this.maxFiles>1?"fichiers":"fichier";t+=` - ${this.maxFiles} ${e} maximum.`}else{t+="."}s.push(t);s.push(`Formats autorisés : ${i}.`);return s}render(){const e=this.multiple?"Choisir vos fichiers...":"Choisir votre fichier...";const i=this.multiple?"Déposez vos fichiers ici":"Déposez votre fichier ici";return s("div",{key:"905a44e832e6ccd19b72f2185cddf32499e35e31",class:this.elementClass,onDragOver:this.handleDragOver.bind(this),onDragLeave:this.handleDragLeave.bind(this),onDrop:this.handleDrop.bind(this)},s("input",{key:"ab7e977d7aa91483669b00a405436c47994984f1",type:"file",ref:e=>this.inputElement=e,onChange:this.handleFileChange.bind(this),name:this.name,multiple:this.multiple,accept:this.accept,style:{display:"none"},disabled:this.isMaxFilesReached}),this.enableDropZone?s("div",{tabindex:this.disabled||this.isMaxFilesReached?-1:0,onKeyDown:this.handleKeydown.bind(this),onClick:()=>!this.disabled&&!this.isMaxFilesReached&&this.inputElement.click(),class:"spw-file-upload__dropzone"},i," ou ",s("span",{class:"spw-file-upload__dropzone-link"},"choisissez sur votre ordinateur...")):s("spw-button",{variant:"secondary",onClick:()=>!this.disabled&&!this.isMaxFilesReached&&this.inputElement.click(),disabled:this.disabled||this.isMaxFilesReached},e),s("div",{key:"d0771d550e3686310adeae371503cb9970130e4f",class:"spw-file-upload__hints"},this.hintsMessages.length>0&&s("ul",{key:"09f6a60bddfa09069f7181d0222fc925d72a11ea"},this.hintsMessages.map(((e,i)=>s("li",{key:i},e))))),s("div",{key:"e8ba3c083e0b132ea17bfdd8c54be97a828eb452",class:"spw-file-upload__info"},this.selectedFiles.length>0?s("ul",{class:"spw-file-upload__info-list"},this.selectedFiles.map(((e,i)=>s("li",{key:i},s("span",{class:"spw-file-upload__info-list-name"},e.name),s("div",{class:"spw-file-upload__info-list-actions"},s("span",{class:"spw-tw-mr-2"},o(e.size)),s("a",{class:"spw-file-upload__info-list-delete",href:"#",onClick:e=>{e.preventDefault();this.removeFile(i)}},"Supprimer")))))):"",this.fileLimitErrors.length>0&&s("ul",{key:"ac0e10ceafaf74b7a12045cc01c228c80acf6a91",class:`spw-file-upload__errors ${this.isMaxFilesReachedExact?"spw-file-upload__errors--warning":""}`},this.fileLimitErrors.map(((e,i)=>s("li",{key:i},s("spw-icon",{class:"spw-tw-mr-2",icon:this.isMaxFilesReachedExact?"fa-circle-exclamation":"fa-warning"}),e)))),this.fileTypeErrors.length>0&&s("ul",{key:"57cb8990cdb8212a7066869cd0a0671bdd7d3b42",class:"spw-file-upload__errors"},this.fileTypeErrors.map(((e,i)=>s("li",{key:i},s("spw-icon",{class:"spw-tw-mr-2",icon:"fa-warning"}),e))))))}static get formAssociated(){return true}get el(){return t(this)}};r.style=a;export{r as spw_file_upload};
2
+ //# sourceMappingURL=p-03f1a257.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as i,h as e,g as t}from"./p-BaAUTDWF.js";const o='/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;display:block;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-sidebar-navigation-item{align-items:start;color:inherit;color:var(--spw-colors-support-grey-grey-900);cursor:pointer;display:flex;font-size:16px;margin:8px 0;padding-right:16px;position:relative;text-decoration:none;transition:all .2s ease;width:var(--spw-ds-bo-sidebar-expanded-width)}.spw-sidebar-navigation-dropdown .spw-sidebar-navigation-item{border-radius:4px;margin:0;width:auto}.spw-sidebar-navigation-item:hover{color:var(--spw-colors-support-grey-grey-900)}.spw-sidebar-navigation-item--active .spw-sidebar-navigation-item__icon,.spw-sidebar-navigation-item--active:hover .spw-sidebar-navigation-item__icon{color:var(--spw-ds-primary)}.spw-sidebar-navigation-item--disabled{cursor:not-allowed;opacity:.3}spw-sidebar-navigation-dropdown .spw-sidebar-navigation-item{padding-right:0}.spw-sidebar-navigation-item spw-tooltip{line-height:1}.spw-sidebar-navigation-item__bubble{background-color:var(--spw-ds-primary);border:3px solid #fff;color:#fff;font-size:10px;height:20px;left:32px;line-height:1;position:absolute;top:0;width:20px;z-index:12}.spw-sidebar-navigation-item__bubble,.spw-sidebar-navigation-item__icon{align-items:center;border-radius:50%;display:inline-flex;justify-content:center}.spw-sidebar-navigation-item__icon{font-size:18px;font-weight:600;min-width:var(--spw-ds-bo-sidebar-width);padding:12px 0;position:relative;width:var(--spw-ds-bo-sidebar-width)}.--expanded .spw-sidebar-navigation-item__icon{position:static}.spw-sidebar-navigation-item__icon:before{border-radius:50%;content:"";height:0;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);transition:all .2s ease;width:0}.spw-sidebar-navigation-item:not(.spw-sidebar-navigation-item--disabled):hover .spw-sidebar-navigation-item__icon:before{background-color:var(--spw-colors-support-grey-grey-200);height:40px;width:40px}.--expanded .spw-sidebar-navigation-item:not(.spw-sidebar-navigation-item--disabled):hover .spw-sidebar-navigation-item__icon:before{height:100%;width:calc(100% - 16px)}.spw-sidebar-navigation-item--dropdown-opened .spw-sidebar-navigation-item__icon:before,.spw-sidebar-navigation-item--dropdown-opened:hover .spw-sidebar-navigation-item__icon:before{background-color:var(--spw-colors-support-grey-grey-100)!important;height:0;width:0}.--expanded .spw-sidebar-navigation-item--dropdown-opened .spw-sidebar-navigation-item__icon:before,.--expanded .spw-sidebar-navigation-item--dropdown-opened:hover .spw-sidebar-navigation-item__icon:before{height:100%;width:calc(100% - 16px)}.--expanded .spw-sidebar-navigation-item__icon:before{border-radius:4px;transition:background-color .2s ease}.spw-sidebar-navigation-item__icon spw-icon{position:relative;z-index:2}.spw-sidebar-navigation-item__content{flex:1;max-width:calc(var(--spw-ds-bo-sidebar-expanded-width) - var(--spw-ds-bo-sidebar-width) - 12px);padding:12px 0;z-index:2}.spw-sidebar-navigation-dropdown .spw-sidebar-navigation-item__content{max-width:100%;padding:8px}.spw-sidebar-navigation-item__content-label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.--expanded .spw-sidebar-navigation-item__content-label{overflow:visible;text-overflow:none;white-space:normal}.spw-sidebar-navigation-dropdown .spw-sidebar-navigation-item__content-label{font-size:14px}.spw-sidebar-navigation-item__dropdown-toggle{align-items:center;border-radius:50%;cursor:pointer;display:inline-flex;height:24px;justify-content:center;position:absolute;right:16px;top:10px;transition:background-color .2s ease;width:24px;z-index:10}.spw-sidebar-navigation-dropdown .spw-sidebar-navigation-item__dropdown-toggle{right:8px;top:5px}.spw-sidebar-navigation-item__dropdown-toggle:hover{background-color:var(--spw-colors-support-grey-grey-300)}.spw-sidebar-navigation-dropdown .spw-sidebar-navigation-item__dropdown-toggle:hover{background-color:var(--spw-colors-support-grey-grey-400)}.spw-sidebar-navigation-item__dropdown-toggle spw-icon{color:var(--spw-colors-support-grey-grey-900);font-size:14px;position:relative;transition:transform .2s ease}.spw-sidebar-navigation-item__dropdown-toggle--open spw-icon{transform:rotate(180deg)}.--collapsed .spw-sidebar-navigation-item spw-sidebar-navigation-dropdown{display:none}.spw-sidebar-navigation-item--dropdown-opened>.spw-sidebar-navigation-item__content>.spw-sidebar-navigation-item__content-label{font-weight:700}.spw-sidebar-navigation-item--has-dropdown>.spw-sidebar-navigation-item__content>.spw-sidebar-navigation-item__content-label{padding-right:32px}.spw-sidebar-navigation-item .spw-sidebar-navigation-item--dropdown-opened>.spw-sidebar-navigation-item__content{background:#fff;border-radius:4px}.spw-sidebar-navigation-dropdown .spw-sidebar-navigation-item:hover{background-color:var(--spw-colors-support-grey-grey-300)}';const n=class{constructor(e){i(this,e);this.active=false;this.disabled=false;this.iconVariant="fa-regular";this.hasDropdown=false;this.dropdownOpen=false;this.navExpanded=false;this.checkNavExpanded=()=>{this.navExpanded=document.body.classList.contains("spw-sidebar-expanded")};this.handleDropdownToggle=i=>{var e,t;i.preventDefault();i.stopPropagation();if(this.disabled)return;const o=this.el.querySelector("spw-sidebar-navigation-dropdown");if(o){o.open=!o.open;if(o.open){(e=o.setAttribute)===null||e===void 0?void 0:e.call(o,"open","")}else{(t=o.removeAttribute)===null||t===void 0?void 0:t.call(o,"open")}this.dropdownOpen=o.open}}}componentDidLoad(){this.checkForDropdown();this.setupMutationObserver();this.checkNavExpanded();this.setupBodyClassObserver()}componentDidUpdate(){this.checkForDropdown()}disconnectedCallback(){if(this.mutationObserver){this.mutationObserver.disconnect()}if(this.bodyClassObserver){this.bodyClassObserver.disconnect()}}setupMutationObserver(){this.mutationObserver=new MutationObserver((()=>{this.checkForDropdown()}));this.mutationObserver.observe(this.el,{childList:true,subtree:true,attributes:true,attributeFilter:["open"]})}checkForDropdown(){var i;const e=this.el.querySelector("spw-sidebar-navigation-dropdown");this.hasDropdown=e!==null;if(e){this.dropdownOpen=!!e.open||((i=e.hasAttribute)===null||i===void 0?void 0:i.call(e,"open"))}else{this.dropdownOpen=false}}setupBodyClassObserver(){this.bodyClassObserver=new MutationObserver((()=>{this.checkNavExpanded()}));this.bodyClassObserver.observe(document.body,{attributes:true,attributeFilter:["class"]})}get classes(){return{"spw-sidebar-navigation-item":true,"spw-sidebar-navigation-item--active":this.active,"spw-sidebar-navigation-item--disabled":this.disabled,"spw-sidebar-navigation-item--has-dropdown":this.hasDropdown,"spw-sidebar-navigation-item--dropdown-opened":this.dropdownOpen}}render(){const i=this.href&&!this.disabled?"a":"div";const t=e("spw-icon",{key:"dabfdd32727f276bdddab2cdde42f4568ec92e06",variant:this.iconVariant,icon:this.icon});const o=e("div",{key:"969810425a905e1aec78a1d5d1f66b50b0102201",class:"spw-sidebar-navigation-item__icon"},this.bubble&&e("span",{key:"96865d1a920cd4f3246f2be6b3e65c896e942fbd",class:"spw-sidebar-navigation-item__bubble"},this.bubble),t);const n=this.tooltipTitle?e("spw-tooltip",{cursor:this.disabled?"disabled":"pointer","tooltip-title":this.tooltipTitle,direction:"right",visible:!this.navExpanded},o):o;const a={"spw-sidebar-navigation-item__dropdown-toggle":true,"spw-sidebar-navigation-item__dropdown-toggle--open":this.dropdownOpen};return e(i,{key:"6c120ab2da26bf9b82b32af748ad714684ee3c10",class:this.classes,href:this.href,"aria-disabled":this.disabled?"true":undefined,tabIndex:this.disabled?-1:0},this.icon&&n,e("div",{key:"743aa1a6b947057a4284f58435340c9fff6e64cc",class:"spw-sidebar-navigation-item__content"},e("div",{key:"fe53ef13f071f002c9201d72a42f9c3905db9b41",class:"spw-sidebar-navigation-item__content-label"},e("slot",{key:"dbd51ed71b275a620185115627391cb7809e26c8"})),this.hasDropdown&&e("div",{key:"09962e31d19b0d7712632bffabcfc6995f13f29b",class:a,onClick:this.handleDropdownToggle,tabIndex:this.disabled?-1:0},e("spw-icon",{key:"4260ee8ed22a8cdefe3869a72cb166196e9237af",icon:"fa-chevron-down"})),e("slot",{key:"ba880e8caeb677658f3ff5b958a0ba3e58f667b4",name:"dropdown"})))}get el(){return t(this)}};n.style=o;export{n as spw_sidebar_navigation_item};
2
- //# sourceMappingURL=p-b6908714.entry.js.map
1
+ import{r as i,h as e,g as t}from"./p-BYM_CUUH.js";const o='/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;display:block;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-sidebar-navigation-item{align-items:start;color:inherit;color:var(--spw-colors-support-grey-grey-900);cursor:pointer;display:flex;font-size:16px;margin:8px 0;padding-right:16px;position:relative;text-decoration:none;transition:all .2s ease;width:var(--spw-ds-bo-sidebar-expanded-width)}.spw-sidebar-navigation-dropdown .spw-sidebar-navigation-item{border-radius:4px;margin:0;width:auto}.spw-sidebar-navigation-item:hover{color:var(--spw-colors-support-grey-grey-900)}.spw-sidebar-navigation-item--active .spw-sidebar-navigation-item__icon,.spw-sidebar-navigation-item--active:hover .spw-sidebar-navigation-item__icon{color:var(--spw-ds-primary)}.spw-sidebar-navigation-item--disabled{cursor:not-allowed;opacity:.3}spw-sidebar-navigation-dropdown .spw-sidebar-navigation-item{padding-right:0}.spw-sidebar-navigation-item spw-tooltip{line-height:1}.spw-sidebar-navigation-item__bubble{background-color:var(--spw-ds-primary);border:3px solid #fff;color:#fff;font-size:10px;height:20px;left:32px;line-height:1;position:absolute;top:0;width:20px;z-index:12}.spw-sidebar-navigation-item__bubble,.spw-sidebar-navigation-item__icon{align-items:center;border-radius:50%;display:inline-flex;justify-content:center}.spw-sidebar-navigation-item__icon{font-size:18px;font-weight:600;min-width:var(--spw-ds-bo-sidebar-width);padding:12px 0;position:relative;width:var(--spw-ds-bo-sidebar-width)}.--expanded .spw-sidebar-navigation-item__icon{position:static}.spw-sidebar-navigation-item__icon:before{border-radius:50%;content:"";height:0;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);transition:all .2s ease;width:0}.spw-sidebar-navigation-item:not(.spw-sidebar-navigation-item--disabled):hover .spw-sidebar-navigation-item__icon:before{background-color:var(--spw-colors-support-grey-grey-200);height:40px;width:40px}.--expanded .spw-sidebar-navigation-item:not(.spw-sidebar-navigation-item--disabled):hover .spw-sidebar-navigation-item__icon:before{height:100%;width:calc(100% - 16px)}.spw-sidebar-navigation-item--dropdown-opened .spw-sidebar-navigation-item__icon:before,.spw-sidebar-navigation-item--dropdown-opened:hover .spw-sidebar-navigation-item__icon:before{background-color:var(--spw-colors-support-grey-grey-100)!important;height:0;width:0}.--expanded .spw-sidebar-navigation-item--dropdown-opened .spw-sidebar-navigation-item__icon:before,.--expanded .spw-sidebar-navigation-item--dropdown-opened:hover .spw-sidebar-navigation-item__icon:before{height:100%;width:calc(100% - 16px)}.--expanded .spw-sidebar-navigation-item__icon:before{border-radius:4px;transition:background-color .2s ease}.spw-sidebar-navigation-item__icon spw-icon{position:relative;z-index:2}.spw-sidebar-navigation-item__content{flex:1;max-width:calc(var(--spw-ds-bo-sidebar-expanded-width) - var(--spw-ds-bo-sidebar-width) - 12px);padding:12px 0;z-index:2}.spw-sidebar-navigation-dropdown .spw-sidebar-navigation-item__content{max-width:100%;padding:8px}.spw-sidebar-navigation-item__content-label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.--expanded .spw-sidebar-navigation-item__content-label{overflow:visible;text-overflow:none;white-space:normal}.spw-sidebar-navigation-dropdown .spw-sidebar-navigation-item__content-label{font-size:14px}.spw-sidebar-navigation-item__dropdown-toggle{align-items:center;border-radius:50%;cursor:pointer;display:inline-flex;height:24px;justify-content:center;position:absolute;right:16px;top:10px;transition:background-color .2s ease;width:24px;z-index:10}.spw-sidebar-navigation-dropdown .spw-sidebar-navigation-item__dropdown-toggle{right:8px;top:5px}.spw-sidebar-navigation-item__dropdown-toggle:hover{background-color:var(--spw-colors-support-grey-grey-300)}.spw-sidebar-navigation-dropdown .spw-sidebar-navigation-item__dropdown-toggle:hover{background-color:var(--spw-colors-support-grey-grey-400)}.spw-sidebar-navigation-item__dropdown-toggle spw-icon{color:var(--spw-colors-support-grey-grey-900);font-size:14px;position:relative;transition:transform .2s ease}.spw-sidebar-navigation-item__dropdown-toggle--open spw-icon{transform:rotate(180deg)}.--collapsed .spw-sidebar-navigation-item spw-sidebar-navigation-dropdown{display:none}.spw-sidebar-navigation-item--dropdown-opened>.spw-sidebar-navigation-item__content>.spw-sidebar-navigation-item__content-label{font-weight:700}.spw-sidebar-navigation-item--has-dropdown>.spw-sidebar-navigation-item__content>.spw-sidebar-navigation-item__content-label{padding-right:32px}.spw-sidebar-navigation-item .spw-sidebar-navigation-item--dropdown-opened>.spw-sidebar-navigation-item__content{background:#fff;border-radius:4px}.spw-sidebar-navigation-dropdown .spw-sidebar-navigation-item:hover{background-color:var(--spw-colors-support-grey-grey-300)}';const n=class{constructor(e){i(this,e);this.active=false;this.disabled=false;this.iconVariant="fa-regular";this.hasDropdown=false;this.dropdownOpen=false;this.navExpanded=false;this.checkNavExpanded=()=>{this.navExpanded=document.body.classList.contains("spw-sidebar-expanded")};this.handleDropdownToggle=i=>{var e,t;i.preventDefault();i.stopPropagation();if(this.disabled)return;const o=this.el.querySelector("spw-sidebar-navigation-dropdown");if(o){o.open=!o.open;if(o.open){(e=o.setAttribute)===null||e===void 0?void 0:e.call(o,"open","")}else{(t=o.removeAttribute)===null||t===void 0?void 0:t.call(o,"open")}this.dropdownOpen=o.open}}}componentDidLoad(){this.checkForDropdown();this.setupMutationObserver();this.checkNavExpanded();this.setupBodyClassObserver()}componentDidUpdate(){this.checkForDropdown()}disconnectedCallback(){if(this.mutationObserver){this.mutationObserver.disconnect()}if(this.bodyClassObserver){this.bodyClassObserver.disconnect()}}setupMutationObserver(){this.mutationObserver=new MutationObserver((()=>{this.checkForDropdown()}));this.mutationObserver.observe(this.el,{childList:true,subtree:true,attributes:true,attributeFilter:["open"]})}checkForDropdown(){var i;const e=this.el.querySelector("spw-sidebar-navigation-dropdown");this.hasDropdown=e!==null;if(e){this.dropdownOpen=!!e.open||((i=e.hasAttribute)===null||i===void 0?void 0:i.call(e,"open"))}else{this.dropdownOpen=false}}setupBodyClassObserver(){this.bodyClassObserver=new MutationObserver((()=>{this.checkNavExpanded()}));this.bodyClassObserver.observe(document.body,{attributes:true,attributeFilter:["class"]})}get classes(){return{"spw-sidebar-navigation-item":true,"spw-sidebar-navigation-item--active":this.active,"spw-sidebar-navigation-item--disabled":this.disabled,"spw-sidebar-navigation-item--has-dropdown":this.hasDropdown,"spw-sidebar-navigation-item--dropdown-opened":this.dropdownOpen}}render(){const i=this.href&&!this.disabled?"a":"div";const t=e("spw-icon",{key:"8371a1fe7024feb9c68534858fc8768a7e1cf95e",variant:this.iconVariant,icon:this.icon});const o=e("div",{key:"e9e34febe064a3facaa09fd23d330ac417d04c04",class:"spw-sidebar-navigation-item__icon"},this.bubble&&e("span",{key:"31ae7f9415ebe94381b9df72b00897064ad2f88e",class:"spw-sidebar-navigation-item__bubble"},this.bubble),t);const n=this.tooltipTitle?e("spw-tooltip",{cursor:this.disabled?"disabled":"pointer","tooltip-title":this.tooltipTitle,direction:"right",visible:!this.navExpanded},o):o;const a={"spw-sidebar-navigation-item__dropdown-toggle":true,"spw-sidebar-navigation-item__dropdown-toggle--open":this.dropdownOpen};return e(i,{key:"a7ffd31c241efc7524e4ac47af8e1e5d54d9dc35",class:this.classes,href:this.href,"aria-disabled":this.disabled?"true":undefined,tabIndex:this.disabled?-1:0},this.icon&&n,e("div",{key:"6c01087c628490b790543c4eea02259d748083c9",class:"spw-sidebar-navigation-item__content"},e("div",{key:"fdab7760fe3995a44a1eb90296328b468a567ea3",class:"spw-sidebar-navigation-item__content-label"},e("slot",{key:"18fcbae9c031f6976438141e5aec16ed0e61aa92"})),this.hasDropdown&&e("div",{key:"a26d8b8cb3620f5eddb87503e2031d614a125504",class:a,onClick:this.handleDropdownToggle,tabIndex:this.disabled?-1:0},e("spw-icon",{key:"45589b6bd31dcd3b0f9307ea88fb6a7cb7fc68c1",icon:"fa-chevron-down"})),e("slot",{key:"d0738e4c9fc413811cb882fb0c472e4fa3ae652f",name:"dropdown"})))}get el(){return t(this)}};n.style=o;export{n as spw_sidebar_navigation_item};
2
+ //# sourceMappingURL=p-07cadb86.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as e,h as t,H as i}from"./p-BaAUTDWF.js";const n="/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;display:inline;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host(.--link) .spw-card-subtag-item{color:var(--spw-ds-primary);font-size:15px;font-weight:700}:host(.--link) .spw-card-subtag-item--has-link{text-decoration:underline}:host(.--link) .spw-card-subtag-item--has-link:hover{text-decoration:none}:host(.--tag) .spw-card-subtag-item{background:var(--spw-color-themes-grey-grey-200);border-radius:9999px;color:var(--spw-color-themes-grey-grey-900);display:inline-block;font-size:14px;line-height:1;padding:8px 12px;transition:all .2s linear}:host(.--tag) .spw-card-subtag-item:hover{background:var(--spw-color-themes-grey-grey-300)}";const o=class{constructor(t){e(this,t)}handleClick(){if(this.link){window.location.href=this.link}}get elementClass(){return{"spw-card-subtag-item":true,"spw-card-subtag-item--has-link":!!this.link}}render(){return t(i,{key:"7e30b9bb90784e374b1d3bc84fb1202e631ef7e4"},t("span",{key:"7f1c1abc556bc4dbe1a3bdec8b1fda7a3758a062",class:this.elementClass,onClick:()=>this.handleClick()},t("slot",{key:"103791510b6af6bce06a5679e0ef4739489287f6"})))}};o.style=n;export{o as spw_card_subtag_item};
2
- //# sourceMappingURL=p-0f3f20f5.entry.js.map
1
+ import{r as e,h as t,H as i}from"./p-BYM_CUUH.js";const n="/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;display:inline;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host(.--link) .spw-card-subtag-item{color:var(--spw-ds-primary);font-size:15px;font-weight:700}:host(.--link) .spw-card-subtag-item--has-link{text-decoration:underline}:host(.--link) .spw-card-subtag-item--has-link:hover{text-decoration:none}:host(.--tag) .spw-card-subtag-item{background:var(--spw-color-themes-grey-grey-200);border-radius:9999px;color:var(--spw-color-themes-grey-grey-900);display:inline-block;font-size:14px;line-height:1;padding:8px 12px;transition:all .2s linear}:host(.--tag) .spw-card-subtag-item:hover{background:var(--spw-color-themes-grey-grey-300)}";const o=class{constructor(t){e(this,t)}handleClick(){if(this.link){window.location.href=this.link}}get elementClass(){return{"spw-card-subtag-item":true,"spw-card-subtag-item--has-link":!!this.link}}render(){return t(i,{key:"b9f9a9f02a6ef1ccf5d0c5a993b0e3b278978298"},t("span",{key:"c8e53bd3d9a2c60d7eb2a05fea866d991898b068",class:this.elementClass,onClick:()=>this.handleClick()},t("slot",{key:"d2bb1ddcc64d71736687bde8c0844cd2bc84773e"})))}};o.style=n;export{o as spw_card_subtag_item};
2
+ //# sourceMappingURL=p-08d78730.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,c as o,h as e,g as r,H as s}from"./p-BaAUTDWF.js";const n="/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;--spw-button-font-size-small:14px;--spw-button-font-size-medium:16px;--spw-button-font-size-large:18px;--spw-button-px-small:16px;--spw-button-px-medium:20px;--spw-button-px-large:24px;--spw-button-py-small:8px;--spw-button-py-medium:12px;--spw-button-py-large:16px;box-sizing:border-box;display:inline-block;font-size:100%;line-height:1.3;vertical-align:top}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host([is-full-width]){display:block;width:100%}.spw-button{border:2px solid transparent;border-radius:9999px;cursor:pointer;display:block;font-weight:700;letter-spacing:.18px;line-height:1;outline:3px solid transparent;overflow:hidden;transition:all .1s ease-in;width:100%}.spw-button--fullwidth{width:100%!important}.spw-button--fullwidth-mobile{width:100%}@media (min-width:768px){.spw-button--fullwidth-mobile{width:auto}}.spw-button--is-icon-only{padding-left:0!important;padding-right:0!important}.spw-button:focus-visible{box-shadow:0 0 0 5px #000;outline:3px solid #fff;outline-offset:-1px}.spw-button spw-loading{left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:1}.spw-button--loading{pointer-events:none;position:relative}.spw-button--loading spw-loading{opacity:1}.spw-button__inner,.spw-button__inner-text{align-items:center;display:flex;justify-content:center;position:relative;z-index:2}.spw-button--loading .spw-button__inner-text{opacity:0}.spw-button:is(a){text-decoration:none}.spw-button--primary{background:var(--spw-ds-primary);color:var(--spw-ds-white)}.spw-button--primary:not([disabled]):hover{background:var(--spw-ds-variant)}.spw-button--primary:not([disabled]):active{background:var(--spw-ds-active)}.spw-button--primary spw-loading{--spw-loading-border-color:hsla(0,0%,100%,.3);--spw-loading-spinner-color:#fff}.spw-button--secondary{background:var(--spw-color-themes-grey-grey-200);color:var(--spw-color-themes-grey-grey-900)}.spw-button--secondary:not([disabled]):hover{background:var(--spw-color-themes-grey-grey-300)}.spw-button--secondary:not([disabled]):active{background:var(--spw-color-themes-grey-grey-400)}.spw-button--secondary spw-loading{--spw-loading-border-color:rgba(0,0,0,.1);--spw-loading-spinner-color:var(--spw-ds-primary)}.spw-button--tertiary{background:none;border-radius:4px;color:var(--spw-ds-primary);transition:none}.spw-button--tertiary:not([disabled]):active,.spw-button--tertiary:not([disabled]):hover{text-decoration:underline}.spw-button--tertiary:not([disabled]):active{color:var(--spw-ds-active)}.spw-button--tertiary spw-loading{--spw-loading-border-color:rgba(0,0,0,.1);--spw-loading-spinner-color:var(--spw-ds-primary)}.spw-button--primary[disabled],.spw-button--secondary[disabled]{background:var(--spw-color-themes-grey-grey-100)}.spw-button--tertiary[disabled]{background:none}.spw-button--primary[disabled],.spw-button--secondary[disabled],.spw-button--tertiary[disabled]{border-color:none;color:var(--spw-color-themes-grey-grey-400);cursor:not-allowed}.spw-button--surface-dark{box-shadow:var(--spw-effect-elevation-8)}.spw-button--surface-dark:not([disabled]):active{box-shadow:var(--spw-effect-elevation-active-0),var(--spw-effect-elevation-active-1),var(--spw-effect-elevation-active-2)}.spw-button--surface-dark[disabled]{box-shadow:none}.spw-button--surface-dark.spw-button--primary{background:var(--spw-ds-white);border-color:var(--spw-ds-white);color:var(--spw-colors-support-grey-grey-900)}.spw-button--surface-dark.spw-button--primary:not([disabled]):hover{background:transparent;border-color:var(--spw-ds-white);color:var(--spw-ds-white)}.spw-button--surface-dark.spw-button--primary:not([disabled]):active{background:transparent;border-color:var(--spw-colors-support-grey-grey-500);color:var(--spw-colors-support-grey-grey-500)}.spw-button--surface-dark.spw-button--primary[disabled]{background:var(--spw-colors-support-grey-grey-700);border-color:var(--spw-colors-support-grey-grey-700);color:var(--spw-colors-support-grey-grey-800)}.spw-button--surface-dark.spw-button--primary spw-loading{--spw-loading-border-color:var(--spw-colors-support-grey-grey-300);--spw-loading-spinner-color:var(--spw-ds-primary)}.spw-button--surface-dark.spw-button--secondary{background:transparent;border-color:var(--spw-ds-white);color:var(--spw-ds-white)}.spw-button--surface-dark.spw-button--secondary:not([disabled]):hover{background:var(--spw-ds-white);border-color:var(--spw-ds-white);color:var(--spw-colors-support-grey-grey-900)}.spw-button--surface-dark.spw-button--secondary:not([disabled]):active{background:var(--spw-colors-support-grey-grey-400);border-color:var(--spw-colors-support-grey-grey-400);color:var(--spw-colors-support-grey-grey-900)}.spw-button--surface-dark.spw-button--secondary[disabled]{background:var(--spw-colors-support-grey-grey-700);border-color:var(--spw-colors-support-grey-grey-700);color:var(--spw-colors-support-grey-grey-800)}.spw-button--surface-dark.spw-button--secondary spw-loading{--spw-loading-border-color:hsla(0,0%,100%,.2);--spw-loading-spinner-color:#fff}.spw-button--surface-dark.spw-button--tertiary{box-shadow:none;color:var(--spw-ds-white)}.spw-button--surface-dark.spw-button--tertiary:not([disabled]):active,.spw-button--surface-dark.spw-button--tertiary:not([disabled]):hover{box-shadow:none}.spw-button--surface-dark.spw-button--tertiary:not([disabled]):active{color:var(--spw-ds-primary)}.spw-button--surface-dark.spw-button--tertiary[disabled]{color:var(--spw-colors-support-grey-grey-700)}.spw-button--surface-dark.spw-button--tertiary spw-loading{--spw-loading-border-color:hsla(0,0%,100%,.2);--spw-loading-spinner-color:#fff}.spw-button--surface-primary,.spw-button--surface-primary:not([disabled]):active,.spw-button--surface-primary[disabled]{box-shadow:none}.spw-button--surface-primary.spw-button--primary{background:var(--spw-ds-white);border-color:var(--spw-ds-white);color:var(--spw-colors-support-grey-grey-900)}.spw-button--surface-primary.spw-button--primary:not([disabled]):hover{background:transparent;border-color:var(--spw-ds-white);color:var(--spw-ds-white)}.spw-button--surface-primary.spw-button--primary:not([disabled]):active{background:transparent;border-color:#fff;color:#fff;opacity:.9}.spw-button--surface-primary.spw-button--primary[disabled]{background:#fff;border-color:#fff;color:var(--spw-colors-support-grey-grey-600);opacity:.5}.spw-button--surface-primary.spw-button--primary spw-loading{--spw-loading-border-color:var(--spw-colors-support-grey-grey-300);--spw-loading-spinner-color:var(--spw-ds-primary)}.spw-button--surface-primary.spw-button--secondary{background:transparent;border-color:var(--spw-ds-white);color:var(--spw-ds-white)}.spw-button--surface-primary.spw-button--secondary:not([disabled]):hover{background:var(--spw-ds-white);border-color:var(--spw-ds-white);color:var(--spw-colors-support-grey-grey-900)}.spw-button--surface-primary.spw-button--secondary:not([disabled]):active{background:#fff;border-color:#fff;color:var(--spw-colors-support-grey-grey-900);opacity:.9}.spw-button--surface-primary.spw-button--secondary[disabled]{background:#fff;border-color:#fff;color:var(--spw-colors-support-grey-grey-600);opacity:.5}.spw-button--surface-primary.spw-button--secondary spw-loading{--spw-loading-border-color:hsla(0,0%,100%,.2);--spw-loading-spinner-color:#fff}.spw-button--surface-primary.spw-button--tertiary{box-shadow:none;color:var(--spw-ds-white)}.spw-button--surface-primary.spw-button--tertiary:not([disabled]):active,.spw-button--surface-primary.spw-button--tertiary:not([disabled]):hover{box-shadow:none}.spw-button--surface-primary.spw-button--tertiary:not([disabled]):active{color:#fff;opacity:.9}.spw-button--surface-primary.spw-button--tertiary[disabled]{color:#fff;opacity:.5}.spw-button--surface-primary.spw-button--tertiary spw-loading{--spw-loading-border-color:hsla(0,0%,100%,.2);--spw-loading-spinner-color:#fff}.spw-button--surface-light.spw-button--primary[disabled]{background:var(--spw-colors-support-grey-grey-500);color:var(--spw-colors-support-grey-grey-600)}.spw-button--surface-light.spw-button--secondary{background:var(--spw-ds-white);color:var(--spw-colors-support-grey-grey-900)}.spw-button--surface-light.spw-button--secondary:not([disabled]):hover{background:var(--spw-colors-support-grey-grey-300)}.spw-button--surface-light.spw-button--secondary:not([disabled]):active{background:var(--spw-colors-support-grey-grey-500)}.spw-button--surface-light.spw-button--secondary[disabled]{background:var(--spw-colors-support-grey-grey-500);color:var(--spw-colors-support-grey-grey-600)}.spw-button--surface-light.spw-button--tertiary{color:var(--spw-colors-support-grey-grey-900)}.spw-button--surface-light.spw-button--tertiary:not([disabled]):active{color:var(--spw-ds-primary)}.spw-button--surface-light.spw-button--tertiary[disabled]{color:var(--spw-colors-support-grey-grey-600)}.spw-button--large{font-size:var(--spw-button-font-size-large);padding:var(--spw-button-py-large) var(--spw-button-px-large)}.spw-button--large .spw-button__inner-text{gap:12px}.spw-button--large.spw-button--is-icon-only{width:54px}.spw-button--medium{font-size:var(--spw-button-font-size-medium);padding:var(--spw-button-py-medium) var(--spw-button-px-medium)}.spw-button--medium .spw-button__inner-text{gap:8px}.spw-button--medium.spw-button--is-icon-only{width:45px}.spw-button--small{font-size:var(--spw-button-font-size-small);padding:var(--spw-button-py-small) var(--spw-button-px-small)}.spw-button--small .spw-button__inner-text{gap:6px}.spw-button--small.spw-button--is-icon-only{width:35px}.spw-button--large.spw-button--tertiary,.spw-button--medium.spw-button--tertiary,.spw-button--small.spw-button--tertiary{padding:4px}.spw-tw-mr-2{margin-right:.5rem}.spw-tw-relative{position:relative}.spw-tw-flex{display:flex}.spw-tw-w-full{width:100%}.spw-tw-items-center{align-items:center}.spw-tw-justify-between{justify-content:space-between}.spw-tw-gap-x-2{column-gap:.5rem}.spw-tw-gap-y-2{row-gap:.5rem}.spw-tw-space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}";const a=class{constructor(e){t(this,e);this.spwFocus=o(this,"spwFocus");this.spwBlur=o(this,"spwBlur");this.spwNavigate=o(this,"spwNavigate");this.target="_self";this.name="";this.value="";this.type="button";this.variant="primary";this.surface="default";this.disabled=false;this.size="medium";this.isIconOnly=false;this.isFullWidth=false;this.isFullWidthMobile=true;this.isLoading=false;this.onFocus=()=>{this.spwFocus.emit()};this.onBlur=()=>{this.spwBlur.emit()};this.onClick=t=>{if(this.disabled||this.isLoading){t.preventDefault();return}if(this.type==="reset"){t.preventDefault();this.resetFormInputs();return}if(this.type==="submit"&&!this.disabled){const o=this.el.closest("form");if(o){t.preventDefault();o.requestSubmit();return}}if(this.href!==undefined){this.spwNavigate.emit(t)}}}resetFormInputs(){const t=this.el.closest("form");if(!t)return;const o=t.querySelectorAll("spw-input");o.forEach((t=>{const o=t.shadowRoot.querySelector("input");if(o){o.value=""}}))}get elementClass(){return{"spw-button":true,[`spw-button--${this.variant}`]:true,[`spw-button--surface-${this.surface}`]:true,[`spw-button--${this.size}`]:true,[`spw-button--is-icon-only`]:this.isIconOnly,[`spw-button--fullwidth`]:this.isFullWidth,[`spw-button--fullwidth-mobile`]:this.isFullWidthMobile,[`spw-button--loading`]:this.isLoading}}render(){const{type:t,download:o,href:r,rel:s,target:n,name:a,value:i}=this;const p=this.href===undefined?"button":"a";const d=p==="button"?{type:t,name:a,value:i}:{download:o,href:r,rel:s,target:n};const l=this.icon&&!this.iconPosition?"right":this.iconPosition;const w=`spw-icon--${l}`;const b=this.icon?e("spw-icon",{class:w,icon:this.icon}):null;const u=this.disabled;const c={"aria-label":this===null||this===void 0?void 0:this.accAriaLabel,"aria-disabled":u?"true":null};return e(p,Object.assign({key:"cba8fa4cf8582a8da491f6a0644af9cf875354b6"},d,{class:this.elementClass,disabled:u,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick},c),e("div",{key:"4b888f2de16270d4579d19cdcfe706fee4d02210",class:"spw-button__inner"},e("div",{key:"e817c201a16f40d58b32bb37cb2357b5ad8861f0",class:"spw-button__inner-text"},l==="left"&&b,!this.isIconOnly&&e("slot",{key:"1a718325da6dac35625b066ac28245709643aeae"}),l==="right"&&b)),e("spw-loading",{key:"78f434b7c901cb88e9f753ea9080b3ead3a91e36",text:""}))}get el(){return r(this)}};a.style=n;const i="/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;--spw-loading-border-color:var(--spw-color-themes-grey-grey-200);--spw-loading-spinner-color:var(--spw-ds-primary);box-sizing:border-box;display:block;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-loading{display:flex}.spw-loading__spinner{animation:loading 1s linear infinite;border:4px solid var(--spw-loading-border-color);border-radius:50%;border-top-color:var(--spw-loading-spinner-color);height:20px;width:20px}@keyframes loading{to{transform:rotate(1turn)}}.spw-loading__text{color:var(--spw-color-themes-grey-grey-800);margin-left:8px}.spw-tw-mr-2{margin-right:.5rem}.spw-tw-relative{position:relative}.spw-tw-flex{display:flex}.spw-tw-w-full{width:100%}.spw-tw-items-center{align-items:center}.spw-tw-justify-between{justify-content:space-between}.spw-tw-gap-x-2{column-gap:.5rem}.spw-tw-gap-y-2{row-gap:.5rem}.spw-tw-space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.spw-tw-mb-10{margin-bottom:2.5rem}.spw-tw-mb-6{margin-bottom:1.5rem}.spw-tw-ml-2{margin-left:.5rem}.spw-tw-mr-4{margin-right:1rem}.spw-tw-mt-12{margin-top:3rem}.-spw-tw-mt-1{margin-top:-.25rem}.spw-tw-mb-2{margin-bottom:.5rem}";const p=class{constructor(o){t(this,o);this.text="Chargement..."}render(){return e(s,{key:"dafea988d8ec43b7c3f05f4d46ab730f95f1cd59"},e("div",{key:"92c6637e10a329ee44d9e87d35ac991e34157d9f",class:"spw-loading"},e("div",{key:"8174d8022a21e800f7f1dee888ae760efc7569a1",class:"spw-loading__spinner"}),this.text&&e("p",{key:"a6a8ad7aa5e927c5ef1fd3ec53246e9273e9d2ff",class:"spw-loading__text"},this.text)))}};p.style=i;export{a as spw_button,p as spw_loading};
2
- //# sourceMappingURL=p-ea24705d.entry.js.map
1
+ import{r as t,c as o,h as r,g as e,H as s}from"./p-BYM_CUUH.js";const n="/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;--spw-button-font-size-small:14px;--spw-button-font-size-medium:16px;--spw-button-font-size-large:18px;--spw-button-px-small:16px;--spw-button-px-medium:20px;--spw-button-px-large:24px;--spw-button-py-small:8px;--spw-button-py-medium:12px;--spw-button-py-large:16px;box-sizing:border-box;display:inline-block;font-size:100%;line-height:1.3;vertical-align:top}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host([is-full-width]){display:block;width:100%}.spw-button{border:2px solid transparent;border-radius:9999px;cursor:pointer;display:block;font-weight:700;letter-spacing:.18px;line-height:1;outline:3px solid transparent;overflow:hidden;transition:all .1s ease-in;width:100%}.spw-button--fullwidth{width:100%!important}.spw-button--fullwidth-mobile{width:100%}@media (min-width:768px){.spw-button--fullwidth-mobile{width:auto}}.spw-button--is-icon-only{padding-left:0!important;padding-right:0!important}.spw-button:focus-visible{box-shadow:0 0 0 5px #000;outline:3px solid #fff;outline-offset:-1px}.spw-button spw-loading{left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:1}.spw-button--loading{pointer-events:none;position:relative}.spw-button--loading spw-loading{opacity:1}.spw-button__inner,.spw-button__inner-text{align-items:center;display:flex;justify-content:center;position:relative;z-index:2}.spw-button--loading .spw-button__inner-text{opacity:0}.spw-button:is(a){text-decoration:none}.spw-button--primary{background:var(--spw-ds-primary);color:var(--spw-ds-white)}.spw-button--primary:not([disabled]):hover{background:var(--spw-ds-variant)}.spw-button--primary:not([disabled]):active{background:var(--spw-ds-active)}.spw-button--primary spw-loading{--spw-loading-border-color:hsla(0,0%,100%,.3);--spw-loading-spinner-color:#fff}.spw-button--secondary{background:var(--spw-color-themes-grey-grey-200);color:var(--spw-color-themes-grey-grey-900)}.spw-button--secondary:not([disabled]):hover{background:var(--spw-color-themes-grey-grey-300)}.spw-button--secondary:not([disabled]):active{background:var(--spw-color-themes-grey-grey-400)}.spw-button--secondary spw-loading{--spw-loading-border-color:rgba(0,0,0,.1);--spw-loading-spinner-color:var(--spw-ds-primary)}.spw-button--tertiary{background:none;border-radius:4px;color:var(--spw-ds-primary);transition:none}.spw-button--tertiary:not([disabled]):active,.spw-button--tertiary:not([disabled]):hover{text-decoration:underline}.spw-button--tertiary:not([disabled]):active{color:var(--spw-ds-active)}.spw-button--tertiary spw-loading{--spw-loading-border-color:rgba(0,0,0,.1);--spw-loading-spinner-color:var(--spw-ds-primary)}.spw-button--primary[disabled],.spw-button--secondary[disabled]{background:var(--spw-color-themes-grey-grey-100)}.spw-button--tertiary[disabled]{background:none}.spw-button--primary[disabled],.spw-button--secondary[disabled],.spw-button--tertiary[disabled]{border-color:none;color:var(--spw-color-themes-grey-grey-400);cursor:not-allowed}.spw-button--surface-dark{box-shadow:var(--spw-effect-elevation-8)}.spw-button--surface-dark:not([disabled]):active{box-shadow:var(--spw-effect-elevation-active-0),var(--spw-effect-elevation-active-1),var(--spw-effect-elevation-active-2)}.spw-button--surface-dark[disabled]{box-shadow:none}.spw-button--surface-dark.spw-button--primary{background:var(--spw-ds-white);border-color:var(--spw-ds-white);color:var(--spw-colors-support-grey-grey-900)}.spw-button--surface-dark.spw-button--primary:not([disabled]):hover{background:transparent;border-color:var(--spw-ds-white);color:var(--spw-ds-white)}.spw-button--surface-dark.spw-button--primary:not([disabled]):active{background:transparent;border-color:var(--spw-colors-support-grey-grey-500);color:var(--spw-colors-support-grey-grey-500)}.spw-button--surface-dark.spw-button--primary[disabled]{background:var(--spw-colors-support-grey-grey-700);border-color:var(--spw-colors-support-grey-grey-700);color:var(--spw-colors-support-grey-grey-800)}.spw-button--surface-dark.spw-button--primary spw-loading{--spw-loading-border-color:var(--spw-colors-support-grey-grey-300);--spw-loading-spinner-color:var(--spw-ds-primary)}.spw-button--surface-dark.spw-button--secondary{background:transparent;border-color:var(--spw-ds-white);color:var(--spw-ds-white)}.spw-button--surface-dark.spw-button--secondary:not([disabled]):hover{background:var(--spw-ds-white);border-color:var(--spw-ds-white);color:var(--spw-colors-support-grey-grey-900)}.spw-button--surface-dark.spw-button--secondary:not([disabled]):active{background:var(--spw-colors-support-grey-grey-400);border-color:var(--spw-colors-support-grey-grey-400);color:var(--spw-colors-support-grey-grey-900)}.spw-button--surface-dark.spw-button--secondary[disabled]{background:var(--spw-colors-support-grey-grey-700);border-color:var(--spw-colors-support-grey-grey-700);color:var(--spw-colors-support-grey-grey-800)}.spw-button--surface-dark.spw-button--secondary spw-loading{--spw-loading-border-color:hsla(0,0%,100%,.2);--spw-loading-spinner-color:#fff}.spw-button--surface-dark.spw-button--tertiary{box-shadow:none;color:var(--spw-ds-white)}.spw-button--surface-dark.spw-button--tertiary:not([disabled]):active,.spw-button--surface-dark.spw-button--tertiary:not([disabled]):hover{box-shadow:none}.spw-button--surface-dark.spw-button--tertiary:not([disabled]):active{color:var(--spw-ds-primary)}.spw-button--surface-dark.spw-button--tertiary[disabled]{color:var(--spw-colors-support-grey-grey-700)}.spw-button--surface-dark.spw-button--tertiary spw-loading{--spw-loading-border-color:hsla(0,0%,100%,.2);--spw-loading-spinner-color:#fff}.spw-button--surface-primary,.spw-button--surface-primary:not([disabled]):active,.spw-button--surface-primary[disabled]{box-shadow:none}.spw-button--surface-primary.spw-button--primary{background:var(--spw-ds-white);border-color:var(--spw-ds-white);color:var(--spw-colors-support-grey-grey-900)}.spw-button--surface-primary.spw-button--primary:not([disabled]):hover{background:transparent;border-color:var(--spw-ds-white);color:var(--spw-ds-white)}.spw-button--surface-primary.spw-button--primary:not([disabled]):active{background:transparent;border-color:#fff;color:#fff;opacity:.9}.spw-button--surface-primary.spw-button--primary[disabled]{background:#fff;border-color:#fff;color:var(--spw-colors-support-grey-grey-600);opacity:.5}.spw-button--surface-primary.spw-button--primary spw-loading{--spw-loading-border-color:var(--spw-colors-support-grey-grey-300);--spw-loading-spinner-color:var(--spw-ds-primary)}.spw-button--surface-primary.spw-button--secondary{background:transparent;border-color:var(--spw-ds-white);color:var(--spw-ds-white)}.spw-button--surface-primary.spw-button--secondary:not([disabled]):hover{background:var(--spw-ds-white);border-color:var(--spw-ds-white);color:var(--spw-colors-support-grey-grey-900)}.spw-button--surface-primary.spw-button--secondary:not([disabled]):active{background:#fff;border-color:#fff;color:var(--spw-colors-support-grey-grey-900);opacity:.9}.spw-button--surface-primary.spw-button--secondary[disabled]{background:#fff;border-color:#fff;color:var(--spw-colors-support-grey-grey-600);opacity:.5}.spw-button--surface-primary.spw-button--secondary spw-loading{--spw-loading-border-color:hsla(0,0%,100%,.2);--spw-loading-spinner-color:#fff}.spw-button--surface-primary.spw-button--tertiary{box-shadow:none;color:var(--spw-ds-white)}.spw-button--surface-primary.spw-button--tertiary:not([disabled]):active,.spw-button--surface-primary.spw-button--tertiary:not([disabled]):hover{box-shadow:none}.spw-button--surface-primary.spw-button--tertiary:not([disabled]):active{color:#fff;opacity:.9}.spw-button--surface-primary.spw-button--tertiary[disabled]{color:#fff;opacity:.5}.spw-button--surface-primary.spw-button--tertiary spw-loading{--spw-loading-border-color:hsla(0,0%,100%,.2);--spw-loading-spinner-color:#fff}.spw-button--surface-light.spw-button--primary[disabled]{background:var(--spw-colors-support-grey-grey-500);color:var(--spw-colors-support-grey-grey-600)}.spw-button--surface-light.spw-button--secondary{background:var(--spw-ds-white);color:var(--spw-colors-support-grey-grey-900)}.spw-button--surface-light.spw-button--secondary:not([disabled]):hover{background:var(--spw-colors-support-grey-grey-300)}.spw-button--surface-light.spw-button--secondary:not([disabled]):active{background:var(--spw-colors-support-grey-grey-500)}.spw-button--surface-light.spw-button--secondary[disabled]{background:var(--spw-colors-support-grey-grey-500);color:var(--spw-colors-support-grey-grey-600)}.spw-button--surface-light.spw-button--tertiary{color:var(--spw-colors-support-grey-grey-900)}.spw-button--surface-light.spw-button--tertiary:not([disabled]):active{color:var(--spw-ds-primary)}.spw-button--surface-light.spw-button--tertiary[disabled]{color:var(--spw-colors-support-grey-grey-600)}.spw-button--large{font-size:var(--spw-button-font-size-large);padding:var(--spw-button-py-large) var(--spw-button-px-large)}.spw-button--large .spw-button__inner-text{gap:12px}.spw-button--large.spw-button--is-icon-only{width:54px}.spw-button--medium{font-size:var(--spw-button-font-size-medium);padding:var(--spw-button-py-medium) var(--spw-button-px-medium)}.spw-button--medium .spw-button__inner-text{gap:8px}.spw-button--medium.spw-button--is-icon-only{width:45px}.spw-button--small{font-size:var(--spw-button-font-size-small);padding:var(--spw-button-py-small) var(--spw-button-px-small)}.spw-button--small .spw-button__inner-text{gap:6px}.spw-button--small.spw-button--is-icon-only{width:35px}.spw-button--large.spw-button--tertiary,.spw-button--medium.spw-button--tertiary,.spw-button--small.spw-button--tertiary{padding:4px}.spw-tw-mr-2{margin-right:.5rem}.spw-tw-relative{position:relative}.spw-tw-flex{display:flex}.spw-tw-w-full{width:100%}.spw-tw-items-center{align-items:center}.spw-tw-justify-between{justify-content:space-between}.spw-tw-gap-x-2{column-gap:.5rem}.spw-tw-gap-y-2{row-gap:.5rem}.spw-tw-space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}";const a=class{constructor(r){t(this,r);this.spwFocus=o(this,"spwFocus");this.spwBlur=o(this,"spwBlur");this.spwNavigate=o(this,"spwNavigate");this.target="_self";this.name="";this.value="";this.type="button";this.variant="primary";this.surface="default";this.disabled=false;this.size="medium";this.isIconOnly=false;this.isFullWidth=false;this.isFullWidthMobile=true;this.isLoading=false;this.onFocus=()=>{this.spwFocus.emit()};this.onBlur=()=>{this.spwBlur.emit()};this.onClick=t=>{if(this.disabled||this.isLoading){t.preventDefault();return}if(this.type==="reset"){t.preventDefault();this.resetFormInputs();return}if(this.type==="submit"&&!this.disabled){const o=this.el.closest("form");if(o){t.preventDefault();o.requestSubmit();return}}if(this.href!==undefined){this.spwNavigate.emit(t)}}}resetFormInputs(){const t=this.el.closest("form");if(!t)return;const o=t.querySelectorAll("spw-input");o.forEach((t=>{const o=t.shadowRoot.querySelector("input");if(o){o.value=""}}))}get elementClass(){return{"spw-button":true,[`spw-button--${this.variant}`]:true,[`spw-button--surface-${this.surface}`]:true,[`spw-button--${this.size}`]:true,[`spw-button--is-icon-only`]:this.isIconOnly,[`spw-button--fullwidth`]:this.isFullWidth,[`spw-button--fullwidth-mobile`]:this.isFullWidthMobile,[`spw-button--loading`]:this.isLoading}}render(){const{type:t,download:o,href:e,rel:s,target:n,name:a,value:i}=this;const p=this.href===undefined?"button":"a";const d=p==="button"?{type:t,name:a,value:i}:{download:o,href:e,rel:s,target:n};const l=this.icon&&!this.iconPosition?"right":this.iconPosition;const w=`spw-icon--${l}`;const c=this.icon?r("spw-icon",{class:w,icon:this.icon}):null;const b=this.disabled;const u={"aria-label":this===null||this===void 0?void 0:this.accAriaLabel,"aria-disabled":b?"true":null};return r(p,Object.assign({key:"e9eef72fb99c615172917acc24f70ebd45952829"},d,{class:this.elementClass,disabled:b,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick},u),r("div",{key:"6a855c4097ae1aa79900f755448c03990f21a5cd",class:"spw-button__inner"},r("div",{key:"df7af3c99186aa808a65526d4c205a29d36ed285",class:"spw-button__inner-text"},l==="left"&&c,!this.isIconOnly&&r("slot",{key:"9909ce45a0e6e832fc98f5ea96da6c6c0a934399"}),l==="right"&&c)),r("spw-loading",{key:"5433366a7c599fcedd58cc6361bcb058c407689c",text:""}))}get el(){return e(this)}};a.style=n;const i="/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;--spw-loading-border-color:var(--spw-color-themes-grey-grey-200);--spw-loading-spinner-color:var(--spw-ds-primary);box-sizing:border-box;display:block;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-loading{display:flex}.spw-loading__spinner{animation:loading 1s linear infinite;border:4px solid var(--spw-loading-border-color);border-radius:50%;border-top-color:var(--spw-loading-spinner-color);height:20px;width:20px}@keyframes loading{to{transform:rotate(1turn)}}.spw-loading__text{color:var(--spw-color-themes-grey-grey-800);margin-left:8px}.spw-tw-mr-2{margin-right:.5rem}.spw-tw-relative{position:relative}.spw-tw-flex{display:flex}.spw-tw-w-full{width:100%}.spw-tw-items-center{align-items:center}.spw-tw-justify-between{justify-content:space-between}.spw-tw-gap-x-2{column-gap:.5rem}.spw-tw-gap-y-2{row-gap:.5rem}.spw-tw-space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.spw-tw-mb-10{margin-bottom:2.5rem}.spw-tw-mb-6{margin-bottom:1.5rem}.spw-tw-ml-2{margin-left:.5rem}.spw-tw-mr-4{margin-right:1rem}.spw-tw-mt-12{margin-top:3rem}.-spw-tw-mt-1{margin-top:-.25rem}.spw-tw-mb-2{margin-bottom:.5rem}";const p=class{constructor(o){t(this,o);this.text="Chargement..."}render(){return r(s,{key:"7ccaf1c8799a8ddb470bc05a7357353137061015"},r("div",{key:"064bf9f2eb7ce1777a0f719bfab72fb219a4e8d9",class:"spw-loading"},r("div",{key:"6378290c41a5d8b1f03fee3ea2a773f9ebd768fd",class:"spw-loading__spinner"}),this.text&&r("p",{key:"8e829cb820269c9cc51f632b43469d73c4196bda",class:"spw-loading__text"},this.text)))}};p.style=i;export{a as spw_button,p as spw_loading};
2
+ //# sourceMappingURL=p-0e310e7a.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,c as e,h as o,H as i,g as n}from"./p-BaAUTDWF.js";function s(t,e,o,i=20,n=0){const a=[];if(n>=i){return a}const d=t=>{const a=t.assignedNodes().filter((t=>t.nodeType===1));if(a.length>0){const t=a[0].parentElement;return s(t,e,o,i,n+1)}return[]};const r=Array.from(t.children||[]);for(const t of r){if(e(t)){continue}if(o(t)){a.push(t)}if(t.shadowRoot!=null){a.push(...s(t.shadowRoot,e,o,i,n+1))}else if(t.tagName==="SLOT"){a.push(...d(t))}else{a.push(...s(t,e,o,i,n+1))}}return a}function a(t){return t.hasAttribute("hidden")||t.hasAttribute("aria-hidden")&&t.getAttribute("aria-hidden")!=="false"||t.style.display===`none`||t.style.opacity===`0`||t.style.visibility===`hidden`||t.style.visibility===`collapse`}function d(t){return t.hasAttribute("disabled")||t.hasAttribute("aria-disabled")&&t.getAttribute("aria-disabled")!=="false"}function r(t){if(t.getAttribute("tabindex")==="-1"||a(t)||d(t)){return false}return t.hasAttribute("tabindex")||(t instanceof HTMLAnchorElement||t instanceof HTMLAreaElement)&&t.hasAttribute("href")||t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement||t instanceof HTMLIFrameElement}function c(t,e,o){const i=t.animate(e,Object.assign(Object.assign({},o),{fill:"both"}));i.addEventListener("finish",(()=>{i.commitStyles();i.cancel()}));return i}const l={easing:"cubic-bezier(0.390, 0.575, 0.565, 1.000)"};const p={fadeIn:[Object.assign(Object.assign({offset:0},l),{opacity:0}),Object.assign(Object.assign({offset:1},l),{opacity:1})],fadeOut:[Object.assign(Object.assign({offset:0},l),{opacity:1}),Object.assign(Object.assign({offset:1},l),{opacity:0})]};const f="/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;display:contents;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-modal{align-items:center;display:none;height:100%;justify-content:center;left:0;overflow-y:auto;position:fixed;top:0;width:100%;z-index:1060}.spw-modal--opened{display:flex}.spw-modal__overlay{background:#000;height:100%;left:0;opacity:.7;position:absolute;top:0;width:100%;z-index:0}.spw-modal__content-container{align-items:stretch;background-color:#fff;border-radius:var(--spw-spacings-border-radius-lg);box-shadow:var(--spw-effect-elevation-6);box-sizing:border-box;display:flex;justify-content:center;overflow:hidden;position:absolute;width:90%}.spw-modal__content-container--small{max-width:480px}.spw-modal__content-container--medium{max-width:600px}.spw-modal__content-container--large{max-width:768px}.spw-modal__content-container--fluid{max-width:100%}.spw-modal__content{border:1px solid var(--spw-color-themes-grey-grey-300);display:flex;flex-direction:column;max-height:90vh;overflow-y:auto;width:100%}.spw-modal--sticky-buttons .spw-modal__content{overflow-y:visible}.spw-modal__icon-container{align-items:center;align-self:stretch;background-color:#fff;display:flex;justify-content:center;width:32px}.spw-modal__header{align-items:center;border-radius:1px 1px 0 0;box-sizing:border-box;color:var(--spw-colors-support-grey-grey-900);display:flex;justify-content:space-between;margin-bottom:12px;margin-top:6px;padding:24px 24px 0}.spw-modal__caption{word-wrap:break-word;overflow:hidden;white-space:pre-wrap}.spw-modal__header h2{color:var(--spw-colors-support-grey-grey-900);font-size:18px;margin:0}.spw-modal__header button{background:none;border:none;cursor:pointer;font-size:1.5em;padding:0}.spw-modal__close-button{cursor:pointer;font-size:21px;position:absolute;right:12px;top:12px}.spw-modal__close-button:hover{opacity:.7}.spw-modal__body{box-sizing:border-box;color:var(--spw-colors-support-grey-grey-700);flex:1;font-size:16px;margin-bottom:12px;padding:0 24px}.spw-modal--sticky-buttons .spw-modal__body{overflow-y:auto}.spw-modal__buttons ::slotted([slot=buttons]){padding:12px 24px 24px}.spw-modal__footer--buttons-present ::slotted(*){display:flex;gap:12px;justify-content:flex-end;padding:8px 24px 24px}.spw-modal__content-container--small .spw-modal__footer--buttons-present ::slotted(*){flex-direction:column;gap:8px}.spw-modal__content-container--medium .spw-modal__footer--buttons-present ::slotted(*){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.spw-modal__border{align-items:center;display:flex;flex-grow:1;font-size:1.5em;justify-content:center;width:100%}";const m=class{constructor(o){t(this,o);this.spwModalOpen=e(this,"spwModalOpen");this.spwModalClose=e(this,"spwModalClose");this.opened=false;this.showModal=this.opened||false;this.caption="Titre de la modal";this.closeOnOverlayClick=true;this.stickyButtons=false;this.size="small";this.alertIcon="";this.slotButtonsPresent=false;this.showCloseButton=true;this.focusableElements=[];this.handleClick=t=>{const e=t.target.closest("[data-modal-trigger]");if(e){const t=e.getAttribute("data-modal-trigger");if(t===this.hostElement.id){this.opened=true}}};this.handleClose=t=>{const e=t.target.closest("[data-modal-close]");if(e){const t=e.getAttribute("data-modal-close");if(t===this.hostElement.id){this.opened=false}}};this.handleTopFocus=()=>{this.attemptFocus(this.getLastFocusableElement())};this.handleBottomFocus=()=>{this.attemptFocus(this.getFirstFocusableElement())};this.handleKeypress=t=>{if(this.showModal&&t.key==="Escape"){this.doBeforeClose("ESCAPE_KEY")}}}async closeModal(){this.doBeforeClose("PROGRAMMATIC")}async openModal(){this.opened=true}componentDidLoad(){this.focusableElements=s(this.hostElement.shadowRoot,(t=>a(t)||t.matches("[data-focus-trap-edge]")),r);document.addEventListener("click",this.handleClick);document.addEventListener("click",this.handleClose);document.addEventListener("keydown",this.handleKeypress)}disconnectedCallback(){document.removeEventListener("click",this.handleClick);document.removeEventListener("click",this.handleClose);document.removeEventListener("keydown",this.handleKeypress)}getFirstFocusableElement(){return this.focusableElements[0]}getLastFocusableElement(){return this.focusableElements[this.focusableElements.length-1]}attemptFocus(t){if(t==null){setTimeout((()=>{this.closeButton.focus()}));return}setTimeout((()=>{t.focus()}),0)}open(){this.showModal=true;try{const t=c(this.modalContainer,p.fadeIn,{duration:200});t.addEventListener("finish",(()=>{setTimeout((()=>{var t,e;(t=this.getLastFocusableElement())===null||t===void 0?void 0:t.focus();(e=this.getLastFocusableElement())===null||e===void 0?void 0:e.blur()}),0);this.spwModalOpen.emit()}))}catch(t){this.spwModalOpen.emit()}}close(){try{const t=c(this.modalContainer,p.fadeOut,{duration:200});t.addEventListener("finish",(()=>{this.showModal=false;this.spwModalClose.emit()}))}catch(t){this.showModal=false;this.spwModalClose.emit()}}doBeforeClose(t){const e=[];e.push(t);const o=e.some((t=>t.defaultPrevented));if(!o){this.opened=false}}openedChanged(t){t===true?this.open():this.close()}handleOverlayClick(){if(this.closeOnOverlayClick){this.doBeforeClose("BACKDROP")}}get elementClass(){return{"spw-modal":true,"spw-modal--opened":this.showModal,"spw-modal--sticky-buttons":this.stickyButtons}}render(){return o(i,{key:"e7aa4b92f0553b8ec8cf5739e6f3a88c8c9e9362"},o("div",{key:"732932f05f09d1d6368c7cf8c76d0d1cfa5f58d1",ref:t=>this.modalContainer=t,class:this.elementClass},o("div",{key:"ea426266f02a3579cfca5ebe8ec93dc490918de1",class:"spw-modal__overlay",onClick:()=>this.handleOverlayClick()}),o("div",{key:"42669843354d7e1b6a5d834c413d31bfd73f0709","data-focus-trap-edge":true,onFocus:this.handleTopFocus,tabindex:"0"}),o("div",{key:"c922f2f70443aa1f09dd1a60fd92fc4f6416fc04",class:`spw-modal__content-container spw-modal__content-container--${this.size}`,role:"dialog","aria-modal":"true","aria-label":this.caption},o("div",{key:"5d864bdc5921b9d9988144907a2955040285d8ca",class:"spw-modal__content"},o("div",{key:"e19de05508a77e25cb8a6e909eb8175303728d58",class:"spw-modal__header"},o("h2",{key:"b0d704cd27fe9e37440277c161e2f684dbc8141b",class:"spw-modal__caption"},this.caption),this.showCloseButton&&o("spw-icon",{key:"faddb3d23759e88242f2f4e4cd621790c4a87774",class:"spw-modal__close-button",ref:t=>this.closeButton=t,icon:"fa-xmark",onClick:()=>this.doBeforeClose("CLOSE_BUTTON")})),o("div",{key:"e1b4c7f3dcdd762be5ad3277692b41b267d8eae0",class:"spw-modal__body"},o("slot",{key:"a7b36ec6180fe2fa06e087d4a87b16ba64ff2358",name:"content"})),o("div",{key:"5f23c91f1e3aa024f0d0aa7535a523f688489a4b",class:"spw-modal__buttons"},o("slot",{key:"64ec09bca6ee569425d502838f244b16482cd1f7",name:"buttons"})))),o("div",{key:"bddd086e4c65abee18d97e04f70232445c2b1815","data-focus-trap-edge":true,onFocus:this.handleBottomFocus,tabindex:"0"})))}get hostElement(){return n(this)}static get watchers(){return{opened:["openedChanged"]}}};m.style=f;export{m as spw_modal};
2
- //# sourceMappingURL=p-1d53f317.entry.js.map
1
+ import{r as t,c as e,h as o,H as i,g as n}from"./p-BYM_CUUH.js";function s(t,e,o,i=20,n=0){const a=[];if(n>=i){return a}const d=t=>{const a=t.assignedNodes().filter((t=>t.nodeType===1));if(a.length>0){const t=a[0].parentElement;return s(t,e,o,i,n+1)}return[]};const r=Array.from(t.children||[]);for(const t of r){if(e(t)){continue}if(o(t)){a.push(t)}if(t.shadowRoot!=null){a.push(...s(t.shadowRoot,e,o,i,n+1))}else if(t.tagName==="SLOT"){a.push(...d(t))}else{a.push(...s(t,e,o,i,n+1))}}return a}function a(t){return t.hasAttribute("hidden")||t.hasAttribute("aria-hidden")&&t.getAttribute("aria-hidden")!=="false"||t.style.display===`none`||t.style.opacity===`0`||t.style.visibility===`hidden`||t.style.visibility===`collapse`}function d(t){return t.hasAttribute("disabled")||t.hasAttribute("aria-disabled")&&t.getAttribute("aria-disabled")!=="false"}function r(t){if(t.getAttribute("tabindex")==="-1"||a(t)||d(t)){return false}return t.hasAttribute("tabindex")||(t instanceof HTMLAnchorElement||t instanceof HTMLAreaElement)&&t.hasAttribute("href")||t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement||t instanceof HTMLIFrameElement}function l(t,e,o){const i=t.animate(e,Object.assign(Object.assign({},o),{fill:"both"}));i.addEventListener("finish",(()=>{i.commitStyles();i.cancel()}));return i}const c={easing:"cubic-bezier(0.390, 0.575, 0.565, 1.000)"};const p={fadeIn:[Object.assign(Object.assign({offset:0},c),{opacity:0}),Object.assign(Object.assign({offset:1},c),{opacity:1})],fadeOut:[Object.assign(Object.assign({offset:0},c),{opacity:1}),Object.assign(Object.assign({offset:1},c),{opacity:0})]};const f="/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;display:contents;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-modal{align-items:center;display:none;height:100%;justify-content:center;left:0;overflow-y:auto;position:fixed;top:0;width:100%;z-index:1060}.spw-modal--opened{display:flex}.spw-modal__overlay{background:#000;height:100%;left:0;opacity:.7;position:absolute;top:0;width:100%;z-index:0}.spw-modal__content-container{align-items:stretch;background-color:#fff;border-radius:var(--spw-spacings-border-radius-lg);box-shadow:var(--spw-effect-elevation-6);box-sizing:border-box;display:flex;justify-content:center;overflow:hidden;position:absolute;width:90%}.spw-modal__content-container--small{max-width:480px}.spw-modal__content-container--medium{max-width:600px}.spw-modal__content-container--large{max-width:768px}.spw-modal__content-container--fluid{max-width:100%}.spw-modal__content{border:1px solid var(--spw-color-themes-grey-grey-300);display:flex;flex-direction:column;max-height:90vh;overflow-y:auto;width:100%}.spw-modal--sticky-buttons .spw-modal__content{overflow-y:visible}.spw-modal__icon-container{align-items:center;align-self:stretch;background-color:#fff;display:flex;justify-content:center;width:32px}.spw-modal__header{align-items:center;border-radius:1px 1px 0 0;box-sizing:border-box;color:var(--spw-colors-support-grey-grey-900);display:flex;justify-content:space-between;margin-bottom:12px;margin-top:6px;padding:24px 24px 0}.spw-modal__caption{word-wrap:break-word;overflow:hidden;white-space:pre-wrap}.spw-modal__header h2{color:var(--spw-colors-support-grey-grey-900);font-size:18px;margin:0}.spw-modal__header button{background:none;border:none;cursor:pointer;font-size:1.5em;padding:0}.spw-modal__close-button{cursor:pointer;font-size:21px;position:absolute;right:12px;top:12px}.spw-modal__close-button:hover{opacity:.7}.spw-modal__body{box-sizing:border-box;color:var(--spw-colors-support-grey-grey-700);flex:1;font-size:16px;margin-bottom:12px;padding:0 24px}.spw-modal--sticky-buttons .spw-modal__body{overflow-y:auto}.spw-modal__buttons ::slotted([slot=buttons]){padding:12px 24px 24px}.spw-modal__footer--buttons-present ::slotted(*){display:flex;gap:12px;justify-content:flex-end;padding:8px 24px 24px}.spw-modal__content-container--small .spw-modal__footer--buttons-present ::slotted(*){flex-direction:column;gap:8px}.spw-modal__content-container--medium .spw-modal__footer--buttons-present ::slotted(*){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.spw-modal__border{align-items:center;display:flex;flex-grow:1;font-size:1.5em;justify-content:center;width:100%}";const h=class{constructor(o){t(this,o);this.spwModalOpen=e(this,"spwModalOpen");this.spwModalClose=e(this,"spwModalClose");this.opened=false;this.showModal=this.opened||false;this.caption="Titre de la modal";this.closeOnOverlayClick=true;this.stickyButtons=false;this.size="small";this.alertIcon="";this.slotButtonsPresent=false;this.showCloseButton=true;this.focusableElements=[];this.handleClick=t=>{const e=t.composedPath();const o=e.find((t=>{var e;return t instanceof HTMLElement&&((e=t.hasAttribute)===null||e===void 0?void 0:e.call(t,"data-modal-trigger"))}));if(o){const t=o.getAttribute("data-modal-trigger");if(t===this.hostElement.id){this.opened=true}}};this.handleClose=t=>{const e=t.composedPath();const o=e.find((t=>{var e;return t instanceof HTMLElement&&((e=t.hasAttribute)===null||e===void 0?void 0:e.call(t,"data-modal-close"))}));if(o){const t=o.getAttribute("data-modal-close");if(t===this.hostElement.id){this.opened=false}}};this.handleTopFocus=()=>{this.attemptFocus(this.getLastFocusableElement())};this.handleBottomFocus=()=>{this.attemptFocus(this.getFirstFocusableElement())};this.handleKeypress=t=>{if(this.showModal&&t.key==="Escape"){this.doBeforeClose("ESCAPE_KEY")}}}async closeModal(){this.doBeforeClose("PROGRAMMATIC")}async openModal(){this.opened=true}componentDidLoad(){this.focusableElements=s(this.hostElement.shadowRoot,(t=>a(t)||t.matches("[data-focus-trap-edge]")),r);window.addEventListener("click",this.handleClick,{capture:true});window.addEventListener("click",this.handleClose,{capture:true});window.addEventListener("keydown",this.handleKeypress)}disconnectedCallback(){window.removeEventListener("click",this.handleClick);window.removeEventListener("click",this.handleClose);window.removeEventListener("keydown",this.handleKeypress)}getFirstFocusableElement(){return this.focusableElements[0]}getLastFocusableElement(){return this.focusableElements[this.focusableElements.length-1]}attemptFocus(t){if(t==null){setTimeout((()=>{this.closeButton.focus()}));return}setTimeout((()=>{t.focus()}),0)}open(){this.showModal=true;try{const t=l(this.modalContainer,p.fadeIn,{duration:200});t.addEventListener("finish",(()=>{setTimeout((()=>{var t,e;(t=this.getLastFocusableElement())===null||t===void 0?void 0:t.focus();(e=this.getLastFocusableElement())===null||e===void 0?void 0:e.blur()}),0);this.spwModalOpen.emit()}))}catch(t){this.spwModalOpen.emit()}}close(){try{const t=l(this.modalContainer,p.fadeOut,{duration:200});t.addEventListener("finish",(()=>{this.showModal=false;this.spwModalClose.emit()}))}catch(t){this.showModal=false;this.spwModalClose.emit()}}doBeforeClose(t){const e=[];e.push(t);const o=e.some((t=>t.defaultPrevented));if(!o){this.opened=false}}openedChanged(t){t===true?this.open():this.close()}handleOverlayClick(){if(this.closeOnOverlayClick){this.doBeforeClose("BACKDROP")}}get elementClass(){return{"spw-modal":true,"spw-modal--opened":this.showModal,"spw-modal--sticky-buttons":this.stickyButtons}}render(){return o(i,{key:"ef3f979574368eb716f783a10b0df51de505844d"},o("div",{key:"d3de3986ed767588fbbc33771f5a2ec96950c814",ref:t=>this.modalContainer=t,class:this.elementClass},o("div",{key:"e838b0d47874973d88bd325cadafcbccecd62e71",class:"spw-modal__overlay",onClick:()=>this.handleOverlayClick()}),o("div",{key:"959a56f373b62d3905ca072f842270d50f7974e9","data-focus-trap-edge":true,onFocus:this.handleTopFocus,tabindex:"0"}),o("div",{key:"5a4e4d7e92007969e2bdfbccb8a30901448edaa4",class:`spw-modal__content-container spw-modal__content-container--${this.size}`,role:"dialog","aria-modal":"true","aria-label":this.caption},o("div",{key:"ff3c6bd78a3aa647a5fc10b007219bfa0a406fbc",class:"spw-modal__content"},o("div",{key:"78448d8952820d8d1b32c8633642daca6e6eaa61",class:"spw-modal__header"},o("h2",{key:"64cd4b7a37899ff59b94cdfaeb24841c185ff68d",class:"spw-modal__caption"},this.caption),this.showCloseButton&&o("spw-icon",{key:"6ccf7739a69cc24dd7d05ee73851bdc9391e63d0",class:"spw-modal__close-button",ref:t=>this.closeButton=t,icon:"fa-xmark",onClick:()=>this.doBeforeClose("CLOSE_BUTTON")})),o("div",{key:"588bb35bb2dc1cdff8d85911851fa3acbd2e36c4",class:"spw-modal__body"},o("slot",{key:"b9e689f2f08aa6456eaeb4481ac09bf7841ded24",name:"content"})),o("div",{key:"7d66d94b7de6b109d9897d44329c897822f70179",class:"spw-modal__buttons"},o("slot",{key:"052f64558204a71b45cf367026c5213939645ba4",name:"buttons"})))),o("div",{key:"65632a2bcb8d66ab99f45a20e159caaf44a3cec7","data-focus-trap-edge":true,onFocus:this.handleBottomFocus,tabindex:"0"})))}get hostElement(){return n(this)}static get watchers(){return{opened:["openedChanged"]}}};h.style=f;export{h as spw_modal};
2
+ //# sourceMappingURL=p-10269c11.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["queryShadowRoot","root","skipNode","isMatch","maxDepth","depth","matches","traverseSlot","$slot","assignedNodes","filter","node","nodeType","length","$slotParent","parentElement","children","Array","from","$child","push","shadowRoot","tagName","isHidden","$elem","hasAttribute","getAttribute","style","display","opacity","visibility","isDisabled","isFocusable","HTMLAnchorElement","HTMLAreaElement","HTMLButtonElement","HTMLInputElement","HTMLTextAreaElement","HTMLSelectElement","HTMLIFrameElement","animationTo","element","keyframes","options","animated","animate","Object","assign","fill","addEventListener","commitStyles","cancel","keyframeDefaults","easing","KEYFRAMES","fadeIn","offset","fadeOut","spwModalCss","SpwModal","constructor","hostRef","this","opened","showModal","caption","closeOnOverlayClick","stickyButtons","size","alertIcon","slotButtonsPresent","showCloseButton","focusableElements","handleClick","event","path","composedPath","trigger","find","el","_a","HTMLElement","call","modalId","hostElement","id","handleClose","handleTopFocus","attemptFocus","getLastFocusableElement","handleBottomFocus","getFirstFocusableElement","handleKeypress","key","doBeforeClose","closeModal","openModal","componentDidLoad","window","capture","disconnectedCallback","removeEventListener","setTimeout","closeButton","focus","open","anim","modalContainer","duration","_b","blur","spwModalOpen","emit","err","close","spwModalClose","triggers","prevented","some","defaultPrevented","openedChanged","newValue","handleOverlayClick","elementClass","render","h","Host","ref","class","onClick","onFocus","tabindex","role","icon","name"],"sources":["src/utils/focus-trap.ts","src/utils/animation.ts","src/components/spw-modal/spw-modal.scss?tag=spw-modal&encapsulation=shadow","src/components/spw-modal/spw-modal.tsx"],"sourcesContent":["/**\n * Copy/pasted from https://github.com/andreasbm/focus-trap\n */\n\n/**\n * Traverses the slots of the open shadowroots and returns all children matching the query.\n * We need to traverse each child-depth one at a time because if an element should be skipped\n * (for example because it is hidden) we need to skip all of it's children. If we use querySelectorAll(\"*\")\n * the information of whether the children is within a hidden parent is lost.\n * @param {ShadowRoot | HTMLElement} root\n * @param skipNode\n * @param isMatch\n * @param {number} maxDepth\n * @param {number} depth\n * @returns {HTMLElement[]}\n */\nexport function queryShadowRoot(\n root: ShadowRoot | HTMLElement,\n skipNode: ($elem: HTMLElement) => boolean,\n isMatch: ($elem: HTMLElement) => boolean,\n maxDepth: number = 20,\n depth: number = 0,\n): HTMLElement[] {\n const matches: HTMLElement[] = [];\n\n // If the depth is above the max depth, abort the searching here.\n if (depth >= maxDepth) {\n return matches;\n }\n\n // Traverses a slot element\n const traverseSlot = ($slot: HTMLSlotElement) => {\n // Only check nodes that are of the type Node.ELEMENT_NODE\n // Read more here https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType\n const assignedNodes = $slot.assignedNodes().filter(node => node.nodeType === 1);\n if (assignedNodes.length > 0) {\n const $slotParent = assignedNodes[0].parentElement!;\n return queryShadowRoot($slotParent, skipNode, isMatch, maxDepth, depth + 1);\n }\n\n return [];\n };\n\n // Go through each child and continue the traversing if necessary\n // Even though the typing says that children can't be undefined, Edge 15 sometimes gives an undefined value.\n // Therefore we fallback to an empty array if it is undefined.\n const children = Array.from(root.children || []) as HTMLElement[];\n for (const $child of children) {\n // Check if the element and its descendants should be skipped\n if (skipNode($child)) {\n // console.log('-- SKIP', $child);\n continue;\n }\n\n // console.log('$child', $child);\n\n // If the element matches we always add it\n if (isMatch($child)) {\n matches.push($child);\n }\n\n if ($child.shadowRoot != null) {\n // If the element has a shadow root we need to traverse it\n matches.push(...queryShadowRoot($child.shadowRoot, skipNode, isMatch, maxDepth, depth + 1));\n } else if ($child.tagName === 'SLOT') {\n // If the child is a slot we need to traverse each assigned node\n matches.push(...traverseSlot($child as HTMLSlotElement));\n } else {\n // Traverse the children of the element\n matches.push(...queryShadowRoot($child, skipNode, isMatch, maxDepth, depth + 1));\n }\n }\n\n return matches;\n}\n\n/**\n * Returns whether the element is hidden.\n * @param $elem\n */\nexport function isHidden($elem: HTMLElement): boolean {\n return (\n $elem.hasAttribute('hidden') ||\n ($elem.hasAttribute('aria-hidden') && $elem.getAttribute('aria-hidden') !== 'false') ||\n // A quick and dirty way to check whether the element is hidden.\n // For a more fine-grained check we could use \"window.getComputedStyle\" but we don't because of bad performance.\n // If the element has visibility set to \"hidden\" or \"collapse\", display set to \"none\" or opacity set to \"0\" through CSS\n // we won't be able to catch it here. We accept it due to the huge performance benefits.\n $elem.style.display === `none` ||\n $elem.style.opacity === `0` ||\n $elem.style.visibility === `hidden` ||\n $elem.style.visibility === `collapse`\n );\n\n // If offsetParent is null we can assume that the element is hidden\n // https://stackoverflow.com/questions/306305/what-would-make-offsetparent-null\n // || $elem.offsetParent == null;\n}\n\n/**\n * Returns whether the element is disabled.\n * @param $elem\n */\nexport function isDisabled($elem: HTMLElement): boolean {\n return $elem.hasAttribute('disabled') || ($elem.hasAttribute('aria-disabled') && $elem.getAttribute('aria-disabled') !== 'false');\n}\n\n/**\n * Determines whether an element is focusable.\n * Read more here: https://stackoverflow.com/questions/1599660/which-html-elements-can-receive-focus/1600194#1600194\n * Or here: https://stackoverflow.com/questions/18261595/how-to-check-if-a-dom-element-is-focusable\n * @param $elem\n */\nexport function isFocusable($elem: HTMLElement): boolean {\n // Discard elements that are removed from the tab order.\n if ($elem.getAttribute('tabindex') === '-1' || isHidden($elem) || isDisabled($elem)) {\n return false;\n }\n\n return (\n // At this point we know that the element can have focus (eg. won't be -1) if the tabindex attribute exists\n $elem.hasAttribute('tabindex') ||\n // Anchor tags or area tags with a href set\n (($elem instanceof HTMLAnchorElement || $elem instanceof HTMLAreaElement) && $elem.hasAttribute('href')) ||\n // Form elements which are not disabled\n $elem instanceof HTMLButtonElement ||\n $elem instanceof HTMLInputElement ||\n $elem instanceof HTMLTextAreaElement ||\n $elem instanceof HTMLSelectElement ||\n // IFrames\n $elem instanceof HTMLIFrameElement\n );\n}\n","export function animationTo(element: HTMLElement, keyframes: Keyframe | Keyframe[], options?: KeyframeAnimationOptions) {\n const animated = element.animate(keyframes, { ...options, fill: 'both' });\n animated.addEventListener('finish', () => {\n // @ts-ignore\n animated.commitStyles();\n animated.cancel();\n });\n\n return animated;\n}\n\nconst keyframeDefaults = {\n easing: 'cubic-bezier(0.390, 0.575, 0.565, 1.000)',\n};\n\nexport const KEYFRAMES = {\n fadeIn: [\n {\n offset: 0,\n ...keyframeDefaults,\n opacity: 0,\n },\n {\n offset: 1,\n ...keyframeDefaults,\n opacity: 1,\n },\n ],\n fadeOut: [\n {\n offset: 0,\n ...keyframeDefaults,\n opacity: 1,\n },\n {\n offset: 1,\n ...keyframeDefaults,\n opacity: 0,\n },\n ],\n};\n",":host {\n display: contents;\n}\n\n.spw-modal {\n display: none;\n justify-content: center;\n align-items: center;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 1060;\n overflow-y: auto;\n\n &--opened {\n display: flex;\n }\n}\n\n.spw-modal__overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: black;\n opacity: 0.7;\n z-index: 0;\n}\n\n.spw-modal__content-container {\n position: absolute;\n display: flex;\n justify-content: center;\n width: 90%;\n background-color: #fff;\n box-shadow: var(--spw-effect-elevation-6);\n overflow: hidden;\n box-sizing: border-box;\n align-items: stretch;\n border-radius: var(--spw-spacings-border-radius-lg);\n\n &--small {\n max-width: 480px;\n }\n\n &--medium {\n max-width: 600px;\n }\n\n &--large {\n max-width: 768px;\n }\n\n &--fluid {\n max-width: 100%;\n }\n}\n\n.spw-modal__content {\n display: flex;\n flex-direction: column;\n border: 1px solid var(--spw-color-themes-grey-grey-300);\n width: 100%;\n max-height: 90vh;\n overflow-y: auto;\n\n .spw-modal--sticky-buttons & {\n overflow-y: visible;\n }\n}\n\n.spw-modal__icon-container {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n background-color: #fff;\n align-self: stretch;\n}\n\n.spw-modal__header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 24px;\n padding-bottom: 0;\n margin-top: 6px;\n margin-bottom: 12px;\n box-sizing: border-box;\n border-radius: 1px 1px 0px 0px;\n color: var(--spw-colors-support-grey-grey-900);\n}\n\n.spw-modal__caption {\n overflow: hidden;\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n\n.spw-modal__header h2 {\n margin: 0;\n font-size: 18px;\n color: var(--spw-colors-support-grey-grey-900);\n}\n\n.spw-modal__header button {\n background: none;\n border: none;\n font-size: 1.5em;\n padding: 0;\n cursor: pointer;\n}\n\n.spw-modal__close-button {\n position: absolute;\n top: 12px;\n right: 12px;\n cursor: pointer;\n font-size: 21px;\n &:hover {\n opacity: 0.7;\n }\n}\n\n.spw-modal__body {\n padding: 0 24px;\n margin-bottom: 12px;\n box-sizing: border-box;\n flex: 1;\n font-size: 16px;\n color: var(--spw-colors-support-grey-grey-700);\n\n .spw-modal--sticky-buttons & {\n overflow-y: auto;\n }\n}\n\n.spw-modal__buttons {\n ::slotted([slot='buttons']) {\n padding: 24px;\n padding-top: 12px;\n }\n}\n\n.spw-modal__footer--buttons-present ::slotted(*) {\n display: flex;\n justify-content: flex-end;\n gap: 12px;\n padding: 24px;\n padding-top: 8px;\n\n .spw-modal__content-container--small & {\n flex-direction: column;\n gap: 8px;\n }\n\n .spw-modal__content-container--medium & {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n}\n\n.spw-modal__border {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n font-size: 1.5em;\n flex-grow: 1;\n}\n","import { Component, Prop, Element, State, Event, Host, EventEmitter, h, Watch, Method } from '@stencil/core';\nimport { queryShadowRoot, isHidden, isFocusable } from '@utils/focus-trap';\nimport { animationTo, KEYFRAMES } from '@utils/animation';\n\ntype CloseEventTrigger = 'CLOSE_BUTTON' | 'ESCAPE_KEY' | 'BACKDROP' | 'PROGRAMMATIC';\n\nexport interface BeforeCloseEventDetail {\n trigger: CloseEventTrigger;\n}\n\n@Component({\n tag: 'spw-modal',\n styleUrl: 'spw-modal.scss',\n shadow: true,\n})\nexport class SpwModal {\n /** Indique si la modal est ouverte ou fermée, mutable et reflétée dans le DOM */\n @Prop({ reflect: true, mutable: true }) opened?: boolean = false;\n\n @State() showModal: boolean = this.opened || false;\n\n /** Titre de la modal */\n @Prop() caption: string = 'Titre de la modal';\n /** Indique si la fermeture de la modal est possible en cliquant sur l'overlay */\n @Prop() closeOnOverlayClick: boolean = true;\n /** Rend les boutons en bas de la modal \"collants\" (toujours visibles) si vrai */\n @Prop() stickyButtons: boolean = false;\n /** Événement déclenché lors de l'ouverture de la modal */\n @Event() spwModalOpen: EventEmitter;\n /** Événement déclenché lors de la fermeture de la modal */\n @Event() spwModalClose: EventEmitter;\n /** Définit la taille de la modal : 'small', 'medium', 'large' ou 'fluid' */\n @Prop() size: 'small' | 'medium' | 'large' | 'fluid' = 'small';\n /** Icône d'alerte à afficher dans la modal */\n @Prop() alertIcon: string = '';\n\n @Element() hostElement: HTMLSpwModalElement;\n\n @State() slotButtonsPresent: boolean = false;\n\n /** Indique si le bouton de fermeture est visible */\n @Prop() showCloseButton: boolean = true;\n\n private modalContainer: HTMLElement;\n private focusableElements: HTMLElement[] = [];\n private closeButton: HTMLSpwIconElement;\n\n /**\n * Méthode publique pour fermer la modal programmatiquement\n * @returns Promise qui se résout quand la modal est fermée\n */\n @Method()\n async closeModal(): Promise<void> {\n this.doBeforeClose('PROGRAMMATIC');\n }\n\n /**\n * Méthode publique pour ouvrir la modal programmatiquement\n * @returns Promise qui se résout quand la modal est ouverte\n */\n @Method()\n async openModal(): Promise<void> {\n this.opened = true;\n }\n\n componentDidLoad() {\n this.focusableElements = queryShadowRoot(this.hostElement.shadowRoot, el => isHidden(el) || el.matches('[data-focus-trap-edge]'), isFocusable);\n window.addEventListener('click', this.handleClick, { capture: true });\n window.addEventListener('click', this.handleClose, { capture: true });\n window.addEventListener('keydown', this.handleKeypress);\n }\n\n disconnectedCallback() {\n window.removeEventListener('click', this.handleClick);\n window.removeEventListener('click', this.handleClose);\n window.removeEventListener('keydown', this.handleKeypress);\n }\n\n private handleClick = (event: MouseEvent) => {\n const path = event.composedPath() as HTMLElement[];\n const trigger = path.find(el => el instanceof HTMLElement && el.hasAttribute?.('data-modal-trigger')) as HTMLElement | undefined;\n\n if (trigger) {\n const modalId = trigger.getAttribute('data-modal-trigger');\n if (modalId === this.hostElement.id) {\n this.opened = true;\n }\n }\n };\n\n private handleClose = (event: MouseEvent) => {\n const path = event.composedPath() as HTMLElement[];\n const trigger = path.find(el => el instanceof HTMLElement && el.hasAttribute?.('data-modal-close')) as HTMLElement | undefined;\n\n if (trigger) {\n const modalId = trigger.getAttribute('data-modal-close');\n if (modalId === this.hostElement.id) {\n this.opened = false;\n }\n }\n };\n\n private getFirstFocusableElement(): HTMLElement | null {\n return this.focusableElements[0];\n }\n\n private getLastFocusableElement(): HTMLElement | null {\n return this.focusableElements[this.focusableElements.length - 1];\n }\n\n private handleTopFocus = () => {\n this.attemptFocus(this.getLastFocusableElement());\n };\n\n private handleBottomFocus = () => {\n this.attemptFocus(this.getFirstFocusableElement());\n };\n\n private attemptFocus(element: HTMLElement | null) {\n if (element == null) {\n setTimeout(() => {\n this.closeButton.focus();\n });\n return;\n }\n\n setTimeout(() => {\n element.focus();\n }, 0);\n }\n\n private open() {\n this.showModal = true;\n try {\n const anim = animationTo(this.modalContainer, KEYFRAMES.fadeIn, {\n duration: 200,\n });\n anim.addEventListener('finish', () => {\n setTimeout(() => {\n this.getLastFocusableElement()?.focus();\n this.getLastFocusableElement()?.blur();\n }, 0);\n\n this.spwModalOpen.emit();\n });\n } catch (err) {\n this.spwModalOpen.emit();\n }\n }\n\n private close() {\n try {\n const anim = animationTo(this.modalContainer, KEYFRAMES.fadeOut, {\n duration: 200,\n });\n anim.addEventListener('finish', () => {\n this.showModal = false;\n this.spwModalClose.emit();\n });\n } catch (err) {\n this.showModal = false;\n this.spwModalClose.emit();\n }\n }\n\n private handleKeypress = (event: KeyboardEvent) => {\n if (this.showModal && event.key === 'Escape') {\n this.doBeforeClose('ESCAPE_KEY');\n }\n };\n\n private doBeforeClose(trigger: CloseEventTrigger) {\n const triggers = [];\n triggers.push(trigger);\n const prevented = triggers.some(event => event.defaultPrevented);\n if (!prevented) {\n this.opened = false;\n }\n }\n\n @Watch('opened')\n openedChanged(newValue: boolean) {\n newValue === true ? this.open() : this.close();\n }\n\n private handleOverlayClick() {\n if (this.closeOnOverlayClick) {\n this.doBeforeClose('BACKDROP');\n }\n }\n\n private get elementClass(): { [className: string]: boolean } {\n return {\n 'spw-modal': true,\n 'spw-modal--opened': this.showModal,\n 'spw-modal--sticky-buttons': this.stickyButtons,\n };\n }\n\n render() {\n return (\n <Host>\n <div ref={el => (this.modalContainer = el)} class={this.elementClass}>\n <div class=\"spw-modal__overlay\" onClick={() => this.handleOverlayClick()}></div>\n <div data-focus-trap-edge onFocus={this.handleTopFocus} tabindex=\"0\"></div>\n <div class={`spw-modal__content-container spw-modal__content-container--${this.size}`} role=\"dialog\" aria-modal=\"true\" aria-label={this.caption}>\n <div class=\"spw-modal__content\">\n <div class=\"spw-modal__header\">\n <h2 class=\"spw-modal__caption\">{this.caption}</h2>\n {this.showCloseButton && (\n <spw-icon class=\"spw-modal__close-button\" ref={el => (this.closeButton = el)} icon=\"fa-xmark\" onClick={() => this.doBeforeClose('CLOSE_BUTTON')}></spw-icon>\n )}\n </div>\n <div class=\"spw-modal__body\">\n <slot name=\"content\" />\n </div>\n <div class=\"spw-modal__buttons\">\n <slot name=\"buttons\"></slot>\n </div>\n </div>\n </div>\n <div data-focus-trap-edge onFocus={this.handleBottomFocus} tabindex=\"0\"></div>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"gEAgBgB,SAAAA,EACdC,EACAC,EACAC,EACAC,EAAmB,GACnBC,EAAgB,GAEhB,MAAMC,EAAyB,GAG/B,GAAID,GAASD,EAAU,CACrB,OAAOE,C,CAIT,MAAMC,EAAgBC,IAGpB,MAAMC,EAAgBD,EAAMC,gBAAgBC,QAAOC,GAAQA,EAAKC,WAAa,IAC7E,GAAIH,EAAcI,OAAS,EAAG,CAC5B,MAAMC,EAAcL,EAAc,GAAGM,cACrC,OAAOf,EAAgBc,EAAaZ,EAAUC,EAASC,EAAUC,EAAQ,E,CAG3E,MAAO,EAAE,EAMX,MAAMW,EAAWC,MAAMC,KAAKjB,EAAKe,UAAY,IAC7C,IAAK,MAAMG,KAAUH,EAAU,CAE7B,GAAId,EAASiB,GAAS,CAEpB,Q,CAMF,GAAIhB,EAAQgB,GAAS,CACnBb,EAAQc,KAAKD,E,CAGf,GAAIA,EAAOE,YAAc,KAAM,CAE7Bf,EAAQc,QAAQpB,EAAgBmB,EAAOE,WAAYnB,EAAUC,EAASC,EAAUC,EAAQ,G,MACnF,GAAIc,EAAOG,UAAY,OAAQ,CAEpChB,EAAQc,QAAQb,EAAaY,G,KACxB,CAELb,EAAQc,QAAQpB,EAAgBmB,EAAQjB,EAAUC,EAASC,EAAUC,EAAQ,G,EAIjF,OAAOC,CACT,CAMM,SAAUiB,EAASC,GACvB,OACEA,EAAMC,aAAa,WAClBD,EAAMC,aAAa,gBAAkBD,EAAME,aAAa,iBAAmB,SAK5EF,EAAMG,MAAMC,UAAY,QACxBJ,EAAMG,MAAME,UAAY,KACxBL,EAAMG,MAAMG,aAAe,UAC3BN,EAAMG,MAAMG,aAAe,UAM/B,CAMM,SAAUC,EAAWP,GACzB,OAAOA,EAAMC,aAAa,aAAgBD,EAAMC,aAAa,kBAAoBD,EAAME,aAAa,mBAAqB,OAC3H,CAQM,SAAUM,EAAYR,GAE1B,GAAIA,EAAME,aAAa,cAAgB,MAAQH,EAASC,IAAUO,EAAWP,GAAQ,CACnF,OAAO,K,CAGT,OAEEA,EAAMC,aAAa,cAEjBD,aAAiBS,mBAAqBT,aAAiBU,kBAAoBV,EAAMC,aAAa,SAEhGD,aAAiBW,mBACjBX,aAAiBY,kBACjBZ,aAAiBa,qBACjBb,aAAiBc,mBAEjBd,aAAiBe,iBAErB,C,SCpIgBC,EAAYC,EAAsBC,EAAkCC,GAClF,MAAMC,EAAWH,EAAQI,QAAQH,EAAgBI,OAAAC,OAAAD,OAAAC,OAAA,GAAAJ,GAAS,CAAAK,KAAM,UAChEJ,EAASK,iBAAiB,UAAU,KAElCL,EAASM,eACTN,EAASO,QAAQ,IAGnB,OAAOP,CACT,CAEA,MAAMQ,EAAmB,CACvBC,OAAQ,4CAGH,MAAMC,EAAY,CACvBC,OAAQ,CAEJT,OAAAC,OAAAD,OAAAC,OAAA,CAAAS,OAAQ,GACLJ,GACH,CAAAvB,QAAS,IAGTiB,OAAAC,OAAAD,OAAAC,OAAA,CAAAS,OAAQ,GACLJ,GACH,CAAAvB,QAAS,KAGb4B,QAAS,CAELX,OAAAC,OAAAD,OAAAC,OAAA,CAAAS,OAAQ,GACLJ,GACH,CAAAvB,QAAS,IAGTiB,OAAAC,OAAAD,OAAAC,OAAA,CAAAS,OAAQ,GACLJ,GACH,CAAAvB,QAAS,MCrCf,MAAM6B,EAAc,giK,MCePC,EAAQ,MALrB,WAAAC,CAAAC,G,8FAO0CC,KAAMC,OAAa,MAElDD,KAAAE,UAAqBF,KAAKC,QAAU,MAGrCD,KAAOG,QAAW,oBAElBH,KAAmBI,oBAAY,KAE/BJ,KAAaK,cAAY,MAMzBL,KAAIM,KAA2C,QAE/CN,KAASO,UAAW,GAInBP,KAAkBQ,mBAAY,MAG/BR,KAAeS,gBAAY,KAG3BT,KAAiBU,kBAAkB,GAkCnCV,KAAAW,YAAeC,IACrB,MAAMC,EAAOD,EAAME,eACnB,MAAMC,EAAUF,EAAKG,MAAKC,IAAM,IAAAC,EAAA,OAAAD,aAAcE,eAAeD,EAAAD,EAAGtD,gBAAY,MAAAuD,SAAA,SAAAA,EAAAE,KAAAH,EAAG,sBAAqB,IAEpG,GAAIF,EAAS,CACX,MAAMM,EAAUN,EAAQnD,aAAa,sBACrC,GAAIyD,IAAYrB,KAAKsB,YAAYC,GAAI,CACnCvB,KAAKC,OAAS,I,IAKZD,KAAAwB,YAAeZ,IACrB,MAAMC,EAAOD,EAAME,eACnB,MAAMC,EAAUF,EAAKG,MAAKC,IAAM,IAAAC,EAAA,OAAAD,aAAcE,eAAeD,EAAAD,EAAGtD,gBAAY,MAAAuD,SAAA,SAAAA,EAAAE,KAAAH,EAAG,oBAAmB,IAElG,GAAIF,EAAS,CACX,MAAMM,EAAUN,EAAQnD,aAAa,oBACrC,GAAIyD,IAAYrB,KAAKsB,YAAYC,GAAI,CACnCvB,KAAKC,OAAS,K,IAaZD,KAAcyB,eAAG,KACvBzB,KAAK0B,aAAa1B,KAAK2B,0BAA0B,EAG3C3B,KAAiB4B,kBAAG,KAC1B5B,KAAK0B,aAAa1B,KAAK6B,2BAA2B,EAkD5C7B,KAAA8B,eAAkBlB,IACxB,GAAIZ,KAAKE,WAAaU,EAAMmB,MAAQ,SAAU,CAC5C/B,KAAKgC,cAAc,a,EA2DxB,CA9KC,gBAAMC,GACJjC,KAAKgC,cAAc,e,CAQrB,eAAME,GACJlC,KAAKC,OAAS,I,CAGhB,gBAAAkC,GACEnC,KAAKU,kBAAoBxE,EAAgB8D,KAAKsB,YAAY/D,YAAY0D,GAAMxD,EAASwD,IAAOA,EAAGzE,QAAQ,2BAA2B0B,GAClIkE,OAAOjD,iBAAiB,QAASa,KAAKW,YAAa,CAAE0B,QAAS,OAC9DD,OAAOjD,iBAAiB,QAASa,KAAKwB,YAAa,CAAEa,QAAS,OAC9DD,OAAOjD,iBAAiB,UAAWa,KAAK8B,e,CAG1C,oBAAAQ,GACEF,OAAOG,oBAAoB,QAASvC,KAAKW,aACzCyB,OAAOG,oBAAoB,QAASvC,KAAKwB,aACzCY,OAAOG,oBAAoB,UAAWvC,KAAK8B,e,CA2BrC,wBAAAD,GACN,OAAO7B,KAAKU,kBAAkB,E,CAGxB,uBAAAiB,GACN,OAAO3B,KAAKU,kBAAkBV,KAAKU,kBAAkB3D,OAAS,E,CAWxD,YAAA2E,CAAa/C,GACnB,GAAIA,GAAW,KAAM,CACnB6D,YAAW,KACTxC,KAAKyC,YAAYC,OAAO,IAE1B,M,CAGFF,YAAW,KACT7D,EAAQ+D,OAAO,GACd,E,CAGG,IAAAC,GACN3C,KAAKE,UAAY,KACjB,IACE,MAAM0C,EAAOlE,EAAYsB,KAAK6C,eAAgBrD,EAAUC,OAAQ,CAC9DqD,SAAU,MAEZF,EAAKzD,iBAAiB,UAAU,KAC9BqD,YAAW,K,SACTtB,EAAAlB,KAAK2B,6BAA2B,MAAAT,SAAA,SAAAA,EAAAwB,SAChCK,EAAA/C,KAAK2B,6BAA2B,MAAAoB,SAAA,SAAAA,EAAAC,MAAM,GACrC,GAEHhD,KAAKiD,aAAaC,MAAM,G,CAE1B,MAAOC,GACPnD,KAAKiD,aAAaC,M,EAId,KAAAE,GACN,IACE,MAAMR,EAAOlE,EAAYsB,KAAK6C,eAAgBrD,EAAUG,QAAS,CAC/DmD,SAAU,MAEZF,EAAKzD,iBAAiB,UAAU,KAC9Ba,KAAKE,UAAY,MACjBF,KAAKqD,cAAcH,MAAM,G,CAE3B,MAAOC,GACPnD,KAAKE,UAAY,MACjBF,KAAKqD,cAAcH,M,EAUf,aAAAlB,CAAcjB,GACpB,MAAMuC,EAAW,GACjBA,EAAShG,KAAKyD,GACd,MAAMwC,EAAYD,EAASE,MAAK5C,GAASA,EAAM6C,mBAC/C,IAAKF,EAAW,CACdvD,KAAKC,OAAS,K,EAKlB,aAAAyD,CAAcC,GACZA,IAAa,KAAO3D,KAAK2C,OAAS3C,KAAKoD,O,CAGjC,kBAAAQ,GACN,GAAI5D,KAAKI,oBAAqB,CAC5BJ,KAAKgC,cAAc,W,EAIvB,gBAAY6B,GACV,MAAO,CACL,YAAa,KACb,oBAAqB7D,KAAKE,UAC1B,4BAA6BF,KAAKK,c,CAItC,MAAAyD,GACE,OACEC,EAACC,EAAI,CAAAjC,IAAA,4CACHgC,EAAA,OAAAhC,IAAA,2CAAKkC,IAAKhD,GAAOjB,KAAK6C,eAAiB5B,EAAKiD,MAAOlE,KAAK6D,cACtDE,EAAA,OAAAhC,IAAA,2CAAKmC,MAAM,qBAAqBC,QAAS,IAAMnE,KAAK4D,uBACpDG,EAA0B,OAAAhC,IAAA,uEAAAqC,QAASpE,KAAKyB,eAAgB4C,SAAS,MACjEN,EAAA,OAAAhC,IAAA,2CAAKmC,MAAO,8DAA8DlE,KAAKM,OAAQgE,KAAK,SAAoB,oBAAmB,aAAAtE,KAAKG,SACtI4D,EAAK,OAAAhC,IAAA,2CAAAmC,MAAM,sBACTH,EAAK,OAAAhC,IAAA,2CAAAmC,MAAM,qBACTH,EAAA,MAAAhC,IAAA,2CAAImC,MAAM,sBAAsBlE,KAAKG,SACpCH,KAAKS,iBACJsD,EAAU,YAAAhC,IAAA,2CAAAmC,MAAM,0BAA0BD,IAAKhD,GAAOjB,KAAKyC,YAAcxB,EAAKsD,KAAK,WAAWJ,QAAS,IAAMnE,KAAKgC,cAAc,mBAGpI+B,EAAK,OAAAhC,IAAA,2CAAAmC,MAAM,mBACTH,EAAA,QAAAhC,IAAA,2CAAMyC,KAAK,aAEbT,EAAK,OAAAhC,IAAA,2CAAAmC,MAAM,sBACTH,EAAA,QAAAhC,IAAA,2CAAMyC,KAAK,eAIjBT,EAAA,OAAAhC,IAAA,uEAA0BqC,QAASpE,KAAK4B,kBAAmByC,SAAS,O","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as t,h as e,H as o}from"./p-BaAUTDWF.js";const n='/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;display:block;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-footer-content-col__title{font-size:18px;font-weight:700;margin-bottom:16px}.spw-footer-content-col__contact{margin-bottom:16px;transition:all .2s linear}.spw-footer-content-col__contact:hover{opacity:.7}::slotted(spw-footer-link){font-weight:500;margin-bottom:8px;padding-left:16px;position:relative}::slotted(spw-footer-link):after{background:var(--spw-ds-primary);border-radius:50%;content:"";height:6px;left:0;position:absolute;top:6px;width:6px}::slotted(spw-footer-link:last-child){margin-bottom:0}';const i=class{constructor(e){t(this,e)}render(){return e(o,{key:"0eb014de686d9a8d7b3e5a793030295898a43c72"},this.colTitle&&e("h2",{key:"e4b515cfe5e7bba8653b4514304341f5d4ce7beb",class:"spw-footer-content-col__title"},this.colTitle),e("slot",{key:"f0d53b33f68741c985fd9816f11ebfd7d06b602c"}))}};i.style=n;export{i as spw_footer_content_col};
2
- //# sourceMappingURL=p-4e96a7f8.entry.js.map
1
+ import{r as t,h as e,H as o}from"./p-BYM_CUUH.js";const n='/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;display:block;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-footer-content-col__title{font-size:18px;font-weight:700;margin-bottom:16px}.spw-footer-content-col__contact{margin-bottom:16px;transition:all .2s linear}.spw-footer-content-col__contact:hover{opacity:.7}::slotted(spw-footer-link){font-weight:500;margin-bottom:8px;padding-left:16px;position:relative}::slotted(spw-footer-link):after{background:var(--spw-ds-primary);border-radius:50%;content:"";height:6px;left:0;position:absolute;top:6px;width:6px}::slotted(spw-footer-link:last-child){margin-bottom:0}';const i=class{constructor(e){t(this,e)}render(){return e(o,{key:"0a7fd786a2689e60c46d4cd4cdd8f08e28af9c8f"},this.colTitle&&e("h2",{key:"5c7d033288a92250d731542b8f47a566a2a9152c",class:"spw-footer-content-col__title"},this.colTitle),e("slot",{key:"8bcab751f5a7110f24deefc508d7ac145c2f9af3"}))}};i.style=n;export{i as spw_footer_content_col};
2
+ //# sourceMappingURL=p-158e7952.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as e,h as t,H as i}from"./p-BaAUTDWF.js";const o="/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;display:block;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-header-persona-item{position:relative;transition:background .3s}@media (min-width:1024px){.spw-header-persona-item:hover{background:var(--spw-color-themes-grey-grey-200)}}.spw-header-persona-item ::slotted(a){color:var(--spw-colors-support-grey-grey-900);display:block;margin-top:6px;padding:4px 0}@media (min-width:1024px){.spw-header-persona-item ::slotted(a){display:block;padding:12px 24px;text-decoration:none!important;text-transform:none}}.spw-header-persona-item--active{display:none;font-weight:700}@media (min-width:1024px){.spw-header-persona-item--active{display:block}}@media (max-width:1023px){.spw-header-persona-item--active ::slotted(a){color:var(--spw-ds-primary)!important;text-decoration:none!important}}";const n=class{constructor(t){e(this,t);this.active=false}render(){return t(i,{key:"5f64516b9f2854062ae85b3de924d9d4d1eb1496"},t("div",{key:"f5ccd3cf6f2e65258e1d240f01d5c5e231927ad7",class:{"spw-header-persona-item":true,"spw-header-persona-item--active":this.active}},t("slot",{key:"e9536e3b8a1f8b11384fcae468f3be215fbb1190"})))}};n.style=o;export{n as spw_header_persona_item};
2
- //# sourceMappingURL=p-102ff932.entry.js.map
1
+ import{r as e,h as t,H as i}from"./p-BYM_CUUH.js";const o="/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;display:block;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-header-persona-item{position:relative;transition:background .3s}@media (min-width:1024px){.spw-header-persona-item:hover{background:var(--spw-color-themes-grey-grey-200)}}.spw-header-persona-item ::slotted(a){color:var(--spw-colors-support-grey-grey-900);display:block;margin-top:6px;padding:4px 0}@media (min-width:1024px){.spw-header-persona-item ::slotted(a){display:block;padding:12px 24px;text-decoration:none!important;text-transform:none}}.spw-header-persona-item--active{display:none;font-weight:700}@media (min-width:1024px){.spw-header-persona-item--active{display:block}}@media (max-width:1023px){.spw-header-persona-item--active ::slotted(a){color:var(--spw-ds-primary)!important;text-decoration:none!important}}";const n=class{constructor(t){e(this,t);this.active=false}render(){return t(i,{key:"4af79568d2ed18da30d22e86b380ed2b62eaa5e3"},t("div",{key:"0e3c53d3ef62578d75ff42cd07fc054ed02b2123",class:{"spw-header-persona-item":true,"spw-header-persona-item--active":this.active}},t("slot",{key:"01e047a269c69b9597d76c40b74b7cdb82c3eb69"})))}};n.style=o;export{n as spw_header_persona_item};
2
+ //# sourceMappingURL=p-1e07197c.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,h as e,H as i,g as n,c as o}from"./p-BaAUTDWF.js";const s="/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;display:block;font-size:100%;line-height:1.3;position:relative}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}";const a=class{constructor(e){t(this,e)}render(){return e(i,{key:"1ef883ec46d5900e52826d4863afda99e80c68e9"},e("div",{key:"baec73af31494e3ec63d344148c58133e29777f3",class:"spw-accordion"},e("slot",{key:"242ef6fe1603ca9904a040d741c362fc6bba8601"})))}};a.style=s;const r="/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-accordion-content{color:var(--spw-color-themes-grey-grey-800);font-weight:400;line-height:1.5;overflow:hidden;transition:all .25s ease-in}:host(.--collapsed) .spw-accordion-content{max-height:0!important}.spw-accordion-content--is-opened{max-height:100%!important}.spw-accordion-content__inner{margin-bottom:var(--spw-spacings-spacing-lg);padding:0 var(--spw-spacings-spacing-lg)}";const d=class{constructor(e){t(this,e);this.isOpened=false}componentDidLoad(){this.assignItemId();this.updateHeight();window.addEventListener("resize",this.handleResize.bind(this));this.contentElement.addEventListener("transitionend",this.handleTransitionEnd.bind(this))}disconnectedCallback(){window.removeEventListener("resize",this.handleResize.bind(this));this.contentElement.removeEventListener("transitionend",this.handleTransitionEnd.bind(this))}assignItemId(){const t=this.el.closest("spw-accordion-item");if(t){const e=t.getAttribute("data-accordion-id");if(e){this.el.setAttribute("data-accordion-id",e)}}}handleAccordionToggle(t){const e=this.el.getAttribute("data-accordion-id");if(t.detail.id===e){this.isOpened=t.detail.isOpen;this.updateHeight()}}handleResize(){this.updateHeight();setTimeout((()=>{this.updateHeight()}),300)}handleTransitionEnd(t){if(t.propertyName==="max-height"){if(this.isOpened){this.contentElement.classList.add("spw-accordion-content--is-opened")}else{this.contentElement.classList.remove("spw-accordion-content--is-opened")}}}updateHeight(){requestAnimationFrame((()=>{const t=this.contentElement;if(this.isOpened){const e=t.scrollHeight;t.style.maxHeight=`${e}px`}else{t.style.maxHeight="0px"}}))}render(){return e("div",{key:"f8f76591fc8045f35393ad0f3149105010af26ed",class:"spw-accordion-content",ref:t=>this.contentElement=t,"data-accordion-id":this.el.getAttribute("data-accordion-id")},e("div",{key:"b04d6bc87f3990182f4f6b5b0b10f7a01660724f",class:"spw-accordion-content__inner"},e("slot",{key:"fc51919bab2efa6e1b950b92f84458c86f3488c7",onSlotchange:()=>this.updateHeight()})))}get el(){return n(this)}};d.style=r;const c="/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;display:block;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-accordion-item{position:relative}.spw-accordion-item__content{border-bottom:1px solid var(--spw-color-themes-grey-grey-300);position:relative}.spw-accordion-item__trigger{background:#fff;display:block;position:sticky;text-decoration:none;top:0;z-index:10}@media (min-width:768px){.spw-accordion-item__trigger{position:relative}}.spw-accordion-item__trigger:focus-visible{box-shadow:0 0 0 2px #000;outline:2px solid #fff;outline-offset:-3px}";const p=class{constructor(e){t(this,e);this.accordionToggle=o(this,"accordionToggle");this.isOpen=false;this.isMobile=window.innerWidth<768;this.defaultOpen=false}componentWillLoad(){this.isOpen=this.defaultOpen;this.assignItemId();this.setupResizeListener();this.toggleClasses()}componentDidLoad(){if(this.isOpen){const t=this.el.getAttribute("data-accordion-id");this.accordionToggle.emit({isOpen:this.isOpen,id:t});this.updateFocusableElements()}}disconnectedCallback(){this.teardownResizeListener()}defaultOpenChanged(t){this.isOpen=t;this.toggleClasses();this.updateFocusableElements()}assignItemId(){const t=Array.from(this.el.parentNode.children).indexOf(this.el);this.el.setAttribute("data-accordion-id",`accordion-item-${t}`)}toggleContent(){this.isOpen=!this.isOpen;const t=this.el.getAttribute("data-accordion-id");this.accordionToggle.emit({isOpen:this.isOpen,id:t});this.updateFocusableElements();if(!this.isOpen){this.scrollToElement()}this.toggleClasses()}toggleClasses(){const t=this.el.querySelector("spw-accordion-content");const e=this.el.querySelector("spw-accordion-title");if(t){t.classList.toggle("--collapsed",!this.isOpen)}if(e){e.classList.toggle("--collapsed",!this.isOpen)}}handleClick(t){t.preventDefault();this.toggleContent()}scrollToElement(){const t=this.el.shadowRoot.querySelector(".spw-accordion-item__content");if(t&&this.isMobile){t.scrollIntoView({behavior:"smooth",block:"start"})}}updateFocusableElements(){const t=this.el.shadowRoot.querySelector('slot[name="content"]');if(!t){return}const e=t.assignedElements({flatten:true});e.forEach((t=>{const e=t.querySelectorAll("*");e.forEach((t=>{if(this.isOpen){const e=t.getAttribute("data-tabindex-original");if(e!==null){t.setAttribute("tabindex",e);t.removeAttribute("data-tabindex-original")}else{t.removeAttribute("tabindex")}}else{if(!t.hasAttribute("data-tabindex-original")){const e=t.getAttribute("tabindex");if(e!==null){t.setAttribute("data-tabindex-original",e)}else{t.setAttribute("data-tabindex-original","")}}t.setAttribute("tabindex","-1")}}))}))}setupResizeListener(){this.resizeListener=()=>{this.isMobile=window.innerWidth<768};window.addEventListener("resize",this.resizeListener)}teardownResizeListener(){if(this.resizeListener){window.removeEventListener("resize",this.resizeListener)}}get elementClass(){return{"spw-accordion-item":true,"spw-accordion-item--collapsed":!this.isOpen}}get elementChildClass(){return{"spw-accordion-item__trigger":true}}render(){return e(i,{key:"af6e1e952bdd85b92582701bfce055bf3a98daf3",class:this.elementClass},e("div",{key:"a33a3b84d3f9e50d0cf1ecebd894b67bff2c0153",class:"spw-accordion-item__content"},e("a",{key:"4d04b8d3e6d9245e78aa8831a18e391e142821cd",href:"#",class:this.elementChildClass,onClick:t=>this.handleClick(t)},e("slot",{key:"e0ffaddb5db07b075f35ff8cddea420809fc4fc5",name:"title"})),e("slot",{key:"1f2d49ec989efff671bbfe7abe1d56349c9ed3dc",name:"content"})))}get el(){return n(this)}static get watchers(){return{defaultOpen:["defaultOpenChanged"]}}};p.style=c;const l="/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;display:block;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-accordion-title{color:var(--spw-color-themes-grey-grey-900);font-weight:700;padding:var(--spw-spacings-spacing-lg);transition:all .3s}.spw-accordion-title:hover{color:var(--spw-ds-primary)}:host(.--collapsed) .spw-accordion-title:hover{background:var(--spw-color-themes-grey-grey-100)}:host-context(.spw-accordion-item:hover)>.spw-accordion-title{color:var(--spw-ds-primary)}.spw-accordion-title__content{padding-right:var(--spw-spacings-spacing-3-xl);position:relative}.spw-accordion-title__content h2,.spw-accordion-title__content h3,.spw-accordion-title__content h4,.spw-accordion-title__content h5,.spw-accordion-title__content h6{font-size:16px}.spw-accordion-title__trigger{position:absolute;right:0;top:50%;transform:translateY(-50%) rotate(180deg);transition:all .3s}:host(.--collapsed) .spw-accordion-title__trigger{transform:translateY(-50%) rotate(0deg)}.spw-tw-mr-3{margin-right:.75rem}.spw-tw-flex{display:flex}";const b=class{constructor(e){t(this,e);this.tag="h3"}render(){const t=this.tag;const n=this.icon?e("spw-icon",{icon:this.icon}):null;return e(i,{key:"f0891468444ba1c8f9ee09a4d2513a5d0653aa7e"},e("div",{key:"36a0ebf0448a092f5b6ad5ad89f9ed557a7d24c9",class:"spw-accordion-title"},e("div",{key:"8956d395ccc6afc39a0a7e5833e9d2567b482414",class:"spw-accordion-title__content"},e(t,{key:"fc7b7701040208a041d252dbe10185c6835b4360",class:"spw-tw-flex"},n&&e("div",{key:"d609dee213c488348b8fc8559631ab691575a6bc",class:"spw-tw-mr-3"},n),e("div",{key:"30fb49013c2298e3948f32a75972a1531f5faa11"},e("slot",{key:"015109222b29238f54a70417f0b053286a2f5b0a"}))),e("span",{key:"06b41243e8552d8b8c54cbae8264d2b682ca23c1",class:"spw-accordion-title__trigger"},e("spw-icon",{key:"40c0cc747f68fe3b42a04d03dfcdca3747b3fb7d",icon:"fa-chevron-down"})))))}};b.style=l;export{a as spw_accordion,d as spw_accordion_content,p as spw_accordion_item,b as spw_accordion_title};
2
- //# sourceMappingURL=p-3625250b.entry.js.map
1
+ import{r as t,h as e,H as i,g as n,c as o}from"./p-BYM_CUUH.js";const s="/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;display:block;font-size:100%;line-height:1.3;position:relative}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}";const a=class{constructor(e){t(this,e)}render(){return e(i,{key:"580fb50f869e7eb3e2c0a53f41ad515d94cbe009"},e("div",{key:"841e8c248402008a91263ba8e11d09505ca1b71b",class:"spw-accordion"},e("slot",{key:"cbe8f77a5f9b644b7fcea364f2e1f71d0fb09108"})))}};a.style=s;const r="/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-accordion-content{color:var(--spw-color-themes-grey-grey-800);font-weight:400;line-height:1.5;overflow:hidden;transition:all .25s ease-in}:host(.--collapsed) .spw-accordion-content{max-height:0!important}.spw-accordion-content--is-opened{max-height:100%!important}.spw-accordion-content__inner{margin-bottom:var(--spw-spacings-spacing-lg);padding:0 var(--spw-spacings-spacing-lg)}";const d=class{constructor(e){t(this,e);this.isOpened=false}componentDidLoad(){this.assignItemId();this.updateHeight();window.addEventListener("resize",this.handleResize.bind(this));this.contentElement.addEventListener("transitionend",this.handleTransitionEnd.bind(this))}disconnectedCallback(){window.removeEventListener("resize",this.handleResize.bind(this));this.contentElement.removeEventListener("transitionend",this.handleTransitionEnd.bind(this))}assignItemId(){const t=this.el.closest("spw-accordion-item");if(t){const e=t.getAttribute("data-accordion-id");if(e){this.el.setAttribute("data-accordion-id",e)}}}handleAccordionToggle(t){const e=this.el.getAttribute("data-accordion-id");if(t.detail.id===e){this.isOpened=t.detail.isOpen;this.updateHeight()}}handleResize(){this.updateHeight();setTimeout((()=>{this.updateHeight()}),300)}handleTransitionEnd(t){if(t.propertyName==="max-height"){if(this.isOpened){this.contentElement.classList.add("spw-accordion-content--is-opened")}else{this.contentElement.classList.remove("spw-accordion-content--is-opened")}}}updateHeight(){requestAnimationFrame((()=>{const t=this.contentElement;if(this.isOpened){const e=t.scrollHeight;t.style.maxHeight=`${e}px`}else{t.style.maxHeight="0px"}}))}render(){return e("div",{key:"47bc447a3bc5cd22e31a103e9223d68bb3299747",class:"spw-accordion-content",ref:t=>this.contentElement=t,"data-accordion-id":this.el.getAttribute("data-accordion-id")},e("div",{key:"850eef496b26067e7924d08d2b910d1b104b2d89",class:"spw-accordion-content__inner"},e("slot",{key:"12d15fce0069bc11dcb8d16df2c3bda4870137d3",onSlotchange:()=>this.updateHeight()})))}get el(){return n(this)}};d.style=r;const c="/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;display:block;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-accordion-item{position:relative}.spw-accordion-item__content{border-bottom:1px solid var(--spw-color-themes-grey-grey-300);position:relative}.spw-accordion-item__trigger{background:#fff;display:block;position:sticky;text-decoration:none;top:0;z-index:10}@media (min-width:768px){.spw-accordion-item__trigger{position:relative}}.spw-accordion-item__trigger:focus-visible{box-shadow:0 0 0 2px #000;outline:2px solid #fff;outline-offset:-3px}";const p=class{constructor(e){t(this,e);this.accordionToggle=o(this,"accordionToggle");this.isOpen=false;this.isMobile=window.innerWidth<768;this.defaultOpen=false}componentWillLoad(){this.isOpen=this.defaultOpen;this.assignItemId();this.setupResizeListener();this.toggleClasses()}componentDidLoad(){if(this.isOpen){const t=this.el.getAttribute("data-accordion-id");this.accordionToggle.emit({isOpen:this.isOpen,id:t});this.updateFocusableElements()}}disconnectedCallback(){this.teardownResizeListener()}defaultOpenChanged(t){this.isOpen=t;this.toggleClasses();this.updateFocusableElements()}assignItemId(){const t=Array.from(this.el.parentNode.children).indexOf(this.el);this.el.setAttribute("data-accordion-id",`accordion-item-${t}`)}toggleContent(){this.isOpen=!this.isOpen;const t=this.el.getAttribute("data-accordion-id");this.accordionToggle.emit({isOpen:this.isOpen,id:t});this.updateFocusableElements();if(!this.isOpen){this.scrollToElement()}this.toggleClasses()}toggleClasses(){const t=this.el.querySelector("spw-accordion-content");const e=this.el.querySelector("spw-accordion-title");if(t){t.classList.toggle("--collapsed",!this.isOpen)}if(e){e.classList.toggle("--collapsed",!this.isOpen)}}handleClick(t){t.preventDefault();this.toggleContent()}scrollToElement(){const t=this.el.shadowRoot.querySelector(".spw-accordion-item__content");if(t&&this.isMobile){t.scrollIntoView({behavior:"smooth",block:"start"})}}updateFocusableElements(){const t=this.el.shadowRoot.querySelector('slot[name="content"]');if(!t){return}const e=t.assignedElements({flatten:true});e.forEach((t=>{const e=t.querySelectorAll("*");e.forEach((t=>{if(this.isOpen){const e=t.getAttribute("data-tabindex-original");if(e!==null){t.setAttribute("tabindex",e);t.removeAttribute("data-tabindex-original")}else{t.removeAttribute("tabindex")}}else{if(!t.hasAttribute("data-tabindex-original")){const e=t.getAttribute("tabindex");if(e!==null){t.setAttribute("data-tabindex-original",e)}else{t.setAttribute("data-tabindex-original","")}}t.setAttribute("tabindex","-1")}}))}))}setupResizeListener(){this.resizeListener=()=>{this.isMobile=window.innerWidth<768};window.addEventListener("resize",this.resizeListener)}teardownResizeListener(){if(this.resizeListener){window.removeEventListener("resize",this.resizeListener)}}get elementClass(){return{"spw-accordion-item":true,"spw-accordion-item--collapsed":!this.isOpen}}get elementChildClass(){return{"spw-accordion-item__trigger":true}}render(){return e(i,{key:"db85e50c8268f27e6c2c1bd5fb9f14ade4a5918b",class:this.elementClass},e("div",{key:"85dae7aa652686ec4e74863ea78e6a82ac0d6bc7",class:"spw-accordion-item__content"},e("a",{key:"a40ecf4340f2a6380301e786d82402af1b9ca5e2",href:"#",class:this.elementChildClass,onClick:t=>this.handleClick(t)},e("slot",{key:"aa68afc78b54f5478506449f9b914fc0429819a1",name:"title"})),e("slot",{key:"d6f6682794d136ef114bd3ff286ba01237865422",name:"content"})))}get el(){return n(this)}static get watchers(){return{defaultOpen:["defaultOpenChanged"]}}};p.style=c;const l="/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;display:block;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-accordion-title{color:var(--spw-color-themes-grey-grey-900);font-weight:700;padding:var(--spw-spacings-spacing-lg);transition:all .3s}.spw-accordion-title:hover{color:var(--spw-ds-primary)}:host(.--collapsed) .spw-accordion-title:hover{background:var(--spw-color-themes-grey-grey-100)}:host-context(.spw-accordion-item:hover)>.spw-accordion-title{color:var(--spw-ds-primary)}.spw-accordion-title__content{padding-right:var(--spw-spacings-spacing-3-xl);position:relative}.spw-accordion-title__content h2,.spw-accordion-title__content h3,.spw-accordion-title__content h4,.spw-accordion-title__content h5,.spw-accordion-title__content h6{font-size:16px}.spw-accordion-title__trigger{position:absolute;right:0;top:50%;transform:translateY(-50%) rotate(180deg);transition:all .3s}:host(.--collapsed) .spw-accordion-title__trigger{transform:translateY(-50%) rotate(0deg)}.spw-tw-mr-3{margin-right:.75rem}.spw-tw-flex{display:flex}";const b=class{constructor(e){t(this,e);this.tag="h3"}render(){const t=this.tag;const n=this.icon?e("spw-icon",{icon:this.icon}):null;return e(i,{key:"c48130c949e4772c6b6e163b8f84b595fa7b4c51"},e("div",{key:"9ff66e56f51b8642019ba46c4b11193fb821bb44",class:"spw-accordion-title"},e("div",{key:"0bb09fdd533c01e98f4f6645338327674e41f2e9",class:"spw-accordion-title__content"},e(t,{key:"3b399be71a64a1a765b0b63e254bf1526ce35534",class:"spw-tw-flex"},n&&e("div",{key:"343ecc64661eb5d85ba408d6556a6c4e407c10d9",class:"spw-tw-mr-3"},n),e("div",{key:"13531d24356419e72af41be702865551c9794518"},e("slot",{key:"b04e6bf552232e0cccffb7ae81bbcb7f689a3f45"}))),e("span",{key:"80bc63470ca5793d423df78c313fa70330f8c302",class:"spw-accordion-title__trigger"},e("spw-icon",{key:"85b2440cdff81b927edfe25a4e3bf71e99e3c236",icon:"fa-chevron-down"})))))}};b.style=l;export{a as spw_accordion,d as spw_accordion_content,p as spw_accordion_item,b as spw_accordion_title};
2
+ //# sourceMappingURL=p-1e725439.entry.js.map