@spw-ds/spw-stencil-library 1.14.2 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (779) hide show
  1. package/dist/cem.json +732 -47
  2. package/dist/cjs/{index-DuCXzb-X.js → index-BSEZn_kI.js} +66 -2
  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-avatar.cjs.entry.js +2 -2
  6. package/dist/cjs/spw-block-content.cjs.entry.js +2 -2
  7. package/dist/cjs/spw-box.cjs.entry.js +6 -3
  8. package/dist/cjs/spw-breadcrumb-item.cjs.entry.js +14 -3
  9. package/dist/cjs/spw-breadcrumb.cjs.entry.js +4 -4
  10. package/dist/cjs/spw-button_2.cjs.entry.js +4 -4
  11. package/dist/cjs/spw-card-content.cjs.entry.js +3 -3
  12. package/dist/cjs/spw-card-excerpt.cjs.entry.js +3 -3
  13. package/dist/cjs/spw-card-image.cjs.entry.js +3 -3
  14. package/dist/cjs/spw-card-subtag-item.cjs.entry.js +3 -3
  15. package/dist/cjs/spw-card-subtags.cjs.entry.js +3 -3
  16. package/dist/cjs/spw-card-title.cjs.entry.js +3 -3
  17. package/dist/cjs/spw-card.cjs.entry.js +15 -5
  18. package/dist/cjs/spw-checkbox.cjs.entry.js +3 -3
  19. package/dist/cjs/spw-cookies.cjs.entry.js +2 -2
  20. package/dist/cjs/spw-custom-select.cjs.entry.js +14 -12
  21. package/dist/cjs/spw-date-picker.cjs.entry.js +5 -3
  22. package/dist/cjs/spw-drawer.cjs.entry.js +5 -5
  23. package/dist/cjs/spw-dropdown-container.cjs.entry.js +3 -3
  24. package/dist/cjs/spw-dropdown-item.cjs.entry.js +3 -3
  25. package/dist/cjs/spw-dropdown.cjs.entry.js +3 -3
  26. package/dist/cjs/spw-field-label_8.cjs.entry.js +35 -31
  27. package/dist/cjs/spw-file-upload.cjs.entry.js +4 -7
  28. package/dist/cjs/spw-footer-bottom.cjs.entry.js +3 -3
  29. package/dist/cjs/spw-footer-content-col.cjs.entry.js +3 -3
  30. package/dist/cjs/spw-footer-content.cjs.entry.js +3 -3
  31. package/dist/cjs/spw-footer-link.cjs.entry.js +3 -3
  32. package/dist/cjs/spw-footer.cjs.entry.js +3 -3
  33. package/dist/cjs/spw-grid-item.cjs.entry.js +4 -4
  34. package/dist/cjs/spw-grid.cjs.entry.js +4 -4
  35. package/dist/cjs/spw-header-lang.cjs.entry.js +3 -3
  36. package/dist/cjs/spw-header-navigation-dropdown.cjs.entry.js +3 -3
  37. package/dist/cjs/spw-header-navigation-item.cjs.entry.js +3 -3
  38. package/dist/cjs/spw-header-navigation.cjs.entry.js +20 -3
  39. package/dist/cjs/spw-header-persona-item.cjs.entry.js +3 -3
  40. package/dist/cjs/spw-header-persona.cjs.entry.js +3 -3
  41. package/dist/cjs/spw-header.cjs.entry.js +3 -3
  42. package/dist/cjs/spw-hero.cjs.entry.js +5 -5
  43. package/dist/cjs/spw-illustration.cjs.entry.js +2 -2
  44. package/dist/cjs/spw-input-slider.cjs.entry.js +9 -7
  45. package/dist/cjs/spw-lightbox-item.cjs.entry.js +3 -3
  46. package/dist/cjs/spw-lightbox.cjs.entry.js +4 -4
  47. package/dist/cjs/spw-list-description.cjs.entry.js +3 -3
  48. package/dist/cjs/spw-list-item.cjs.entry.js +3 -3
  49. package/dist/cjs/spw-list-title.cjs.entry.js +3 -3
  50. package/dist/cjs/spw-list.cjs.entry.js +3 -3
  51. package/dist/cjs/spw-message.cjs.entry.js +2 -2
  52. package/dist/cjs/spw-modal.cjs.entry.js +5 -5
  53. package/dist/cjs/spw-mosaic-item.cjs.entry.js +3 -3
  54. package/dist/cjs/spw-mosaic.cjs.entry.js +3 -3
  55. package/dist/cjs/spw-pagination.cjs.entry.js +8 -8
  56. package/dist/cjs/spw-radio.cjs.entry.js +11 -12
  57. package/dist/cjs/spw-scrolltop.cjs.entry.js +3 -3
  58. package/dist/cjs/spw-search-field.cjs.entry.js +2 -2
  59. package/dist/cjs/spw-select.cjs.entry.js +9 -7
  60. package/dist/cjs/spw-sidebar-navigation-dropdown.cjs.entry.js +3 -3
  61. package/dist/cjs/spw-sidebar-navigation-item.cjs.entry.js +5 -5
  62. package/dist/cjs/spw-sidebar-navigation-separator.cjs.entry.js +3 -3
  63. package/dist/cjs/spw-sidebar.cjs.entry.js +3 -3
  64. package/dist/cjs/spw-skeleton.cjs.entry.js +3 -3
  65. package/dist/cjs/spw-slider-item.cjs.entry.js +3 -3
  66. package/dist/cjs/spw-slider.cjs.entry.js +3 -3
  67. package/dist/cjs/spw-socials.cjs.entry.js +3 -3
  68. package/dist/cjs/spw-stencil-library.cjs.js +2 -2
  69. package/dist/cjs/spw-table-body.cjs.entry.js +3 -3
  70. package/dist/cjs/spw-table-cell.cjs.entry.js +3 -3
  71. package/dist/cjs/spw-table-container.cjs.entry.js +3 -3
  72. package/dist/cjs/spw-table-footer.cjs.entry.js +3 -3
  73. package/dist/cjs/spw-table-head.cjs.entry.js +3 -3
  74. package/dist/cjs/spw-table-header.cjs.entry.js +4 -4
  75. package/dist/cjs/spw-table-row.cjs.entry.js +3 -3
  76. package/dist/cjs/spw-table-sidebar.cjs.entry.js +3 -3
  77. package/dist/cjs/spw-table.cjs.entry.js +2 -2
  78. package/dist/cjs/spw-tabs-content.cjs.entry.js +2 -2
  79. package/dist/cjs/spw-tabs-navigation-item.cjs.entry.js +3 -3
  80. package/dist/cjs/spw-tabs-navigation.cjs.entry.js +3 -3
  81. package/dist/cjs/spw-tabs.cjs.entry.js +3 -3
  82. package/dist/cjs/spw-tag.cjs.entry.js +3 -3
  83. package/dist/cjs/spw-text-field.cjs.entry.js +9 -7
  84. package/dist/cjs/spw-textarea.cjs.entry.js +9 -10
  85. package/dist/cjs/spw-tile-description.cjs.entry.js +3 -3
  86. package/dist/cjs/spw-tile-title.cjs.entry.js +3 -3
  87. package/dist/cjs/spw-tile.cjs.entry.js +3 -3
  88. package/dist/cjs/spw-timeline-item.cjs.entry.js +4 -4
  89. package/dist/cjs/spw-timeline.cjs.entry.js +4 -4
  90. package/dist/cjs/spw-toast-controller.cjs.entry.js +2 -2
  91. package/dist/cjs/spw-toast.cjs.entry.js +2 -2
  92. package/dist/cjs/spw-toc-container.cjs.entry.js +80 -8
  93. package/dist/cjs/spw-toc-navigation.cjs.entry.js +30 -12
  94. package/dist/cjs/spw-toc.cjs.entry.js +3 -3
  95. package/dist/cjs/spw-topbar.cjs.entry.js +3 -3
  96. package/dist/cjs/spw-wizard-item.cjs.entry.js +3 -3
  97. package/dist/cjs/spw-wizard.cjs.entry.js +3 -3
  98. package/dist/collection/components/spw-accordion/spw-accordion-content/spw-accordion-content.css +4 -3
  99. package/dist/collection/components/spw-accordion/spw-accordion-item/spw-accordion-item.css +4 -3
  100. package/dist/collection/components/spw-accordion/spw-accordion-title/spw-accordion-title.css +4 -3
  101. package/dist/collection/components/spw-accordion/spw-accordion.css +4 -3
  102. package/dist/collection/components/spw-avatar/spw-avatar.css +4 -3
  103. package/dist/collection/components/spw-block-content/spw-block-content.css +4 -3
  104. package/dist/collection/components/spw-box/spw-box.css +17 -7
  105. package/dist/collection/components/spw-box/spw-box.js +24 -1
  106. package/dist/collection/components/spw-breadcrumb/spw-breadcrumb-item/spw-breadcrumb-item.css +12 -3
  107. package/dist/collection/components/spw-breadcrumb/spw-breadcrumb-item/spw-breadcrumb-item.js +15 -2
  108. package/dist/collection/components/spw-breadcrumb/spw-breadcrumb.css +22 -17
  109. package/dist/collection/components/spw-breadcrumb/spw-breadcrumb.js +2 -2
  110. package/dist/collection/components/spw-button/spw-button.css +4 -4
  111. package/dist/collection/components/spw-card/spw-card-content/spw-card-content.css +15 -5
  112. package/dist/collection/components/spw-card/spw-card-content/spw-card-content.js +1 -1
  113. package/dist/collection/components/spw-card/spw-card-excerpt/spw-card-excerpt.css +4 -3
  114. package/dist/collection/components/spw-card/spw-card-excerpt/spw-card-excerpt.js +1 -1
  115. package/dist/collection/components/spw-card/spw-card-image/spw-card-image.css +20 -9
  116. package/dist/collection/components/spw-card/spw-card-image/spw-card-image.js +1 -1
  117. package/dist/collection/components/spw-card/spw-card-subtag-item/spw-card-subtag-item.css +4 -3
  118. package/dist/collection/components/spw-card/spw-card-subtag-item/spw-card-subtag-item.js +1 -1
  119. package/dist/collection/components/spw-card/spw-card-subtags/spw-card-subtags.css +4 -3
  120. package/dist/collection/components/spw-card/spw-card-subtags/spw-card-subtags.js +1 -1
  121. package/dist/collection/components/spw-card/spw-card-title/spw-card-title.css +4 -3
  122. package/dist/collection/components/spw-card/spw-card-title/spw-card-title.js +1 -1
  123. package/dist/collection/components/spw-card/spw-card.css +50 -19
  124. package/dist/collection/components/spw-card/spw-card.js +73 -5
  125. package/dist/collection/components/spw-checkbox/spw-checkbox.css +4 -3
  126. package/dist/collection/components/spw-checkbox/spw-checkbox.js +1 -1
  127. package/dist/collection/components/spw-cookies/spw-cookies.css +4 -3
  128. package/dist/collection/components/spw-custom-select/spw-custom-select.css +4 -3
  129. package/dist/collection/components/spw-custom-select/spw-custom-select.js +70 -10
  130. package/dist/collection/components/spw-date-picker/spw-date-picker.css +4 -3
  131. package/dist/collection/components/spw-date-picker/spw-date-picker.js +61 -1
  132. package/dist/collection/components/spw-drawer/spw-drawer.css +4 -3
  133. package/dist/collection/components/spw-drawer/spw-drawer.js +3 -3
  134. package/dist/collection/components/spw-dropdown/spw-dropdown-container/spw-dropdown-container.css +4 -3
  135. package/dist/collection/components/spw-dropdown/spw-dropdown-container/spw-dropdown-container.js +1 -1
  136. package/dist/collection/components/spw-dropdown/spw-dropdown-item/spw-dropdown-item.css +4 -3
  137. package/dist/collection/components/spw-dropdown/spw-dropdown-item/spw-dropdown-item.js +1 -1
  138. package/dist/collection/components/spw-dropdown/spw-dropdown.css +4 -3
  139. package/dist/collection/components/spw-dropdown/spw-dropdown.js +1 -1
  140. package/dist/collection/components/spw-field-label/spw-field-label.css +4 -3
  141. package/dist/collection/components/spw-field-label/spw-field-label.js +1 -1
  142. package/dist/collection/components/spw-field-message/spw-field-message.css +38 -3
  143. package/dist/collection/components/spw-field-message/spw-field-message.js +79 -2
  144. package/dist/collection/components/spw-file-upload/spw-file-upload.css +4 -3
  145. package/dist/collection/components/spw-file-upload/spw-file-upload.js +2 -25
  146. package/dist/collection/components/spw-footer/spw-footer-bottom/spw-footer-bottom.css +4 -3
  147. package/dist/collection/components/spw-footer/spw-footer-bottom/spw-footer-bottom.js +1 -1
  148. package/dist/collection/components/spw-footer/spw-footer-content/spw-footer-content.css +4 -3
  149. package/dist/collection/components/spw-footer/spw-footer-content/spw-footer-content.js +1 -1
  150. package/dist/collection/components/spw-footer/spw-footer-content-col/spw-footer-content-col.css +4 -3
  151. package/dist/collection/components/spw-footer/spw-footer-content-col/spw-footer-content-col.js +1 -1
  152. package/dist/collection/components/spw-footer/spw-footer-link/spw-footer-link.css +4 -3
  153. package/dist/collection/components/spw-footer/spw-footer-link/spw-footer-link.js +1 -1
  154. package/dist/collection/components/spw-footer/spw-footer.css +4 -3
  155. package/dist/collection/components/spw-footer/spw-footer.js +1 -1
  156. package/dist/collection/components/spw-grid/spw-grid-item/spw-grid-item.css +4 -3
  157. package/dist/collection/components/spw-grid/spw-grid-item/spw-grid-item.js +2 -2
  158. package/dist/collection/components/spw-grid/spw-grid.css +4 -3
  159. package/dist/collection/components/spw-grid/spw-grid.js +2 -2
  160. package/dist/collection/components/spw-group/spw-group.css +4 -3
  161. package/dist/collection/components/spw-group/spw-group.js +67 -17
  162. package/dist/collection/components/spw-header/spw-header-lang/spw-header-lang.css +4 -3
  163. package/dist/collection/components/spw-header/spw-header-lang/spw-header-lang.js +1 -1
  164. package/dist/collection/components/spw-header/spw-header-navigation/spw-header-navigation.css +11 -7
  165. package/dist/collection/components/spw-header/spw-header-navigation/spw-header-navigation.js +189 -1
  166. package/dist/collection/components/spw-header/spw-header-navigation-dropdown/spw-header-navigation-dropdown.css +5 -4
  167. package/dist/collection/components/spw-header/spw-header-navigation-dropdown/spw-header-navigation-dropdown.js +1 -1
  168. package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.css +4 -3
  169. package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.js +1 -1
  170. package/dist/collection/components/spw-header/spw-header-persona/spw-header-persona.css +4 -3
  171. package/dist/collection/components/spw-header/spw-header-persona/spw-header-persona.js +1 -1
  172. package/dist/collection/components/spw-header/spw-header-persona-item/spw-header-persona-item.css +4 -3
  173. package/dist/collection/components/spw-header/spw-header-persona-item/spw-header-persona-item.js +1 -1
  174. package/dist/collection/components/spw-header/spw-header.css +12 -4
  175. package/dist/collection/components/spw-header/spw-header.js +1 -1
  176. package/dist/collection/components/spw-hero/spw-hero.css +4 -3
  177. package/dist/collection/components/spw-hero/spw-hero.js +3 -3
  178. package/dist/collection/components/spw-icon/spw-icon.css +4 -3
  179. package/dist/collection/components/spw-illustration/spw-illustration.css +4 -3
  180. package/dist/collection/components/spw-input-slider/spw-input-slider.css +4 -3
  181. package/dist/collection/components/spw-input-slider/spw-input-slider.js +65 -5
  182. package/dist/collection/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.css +4 -3
  183. package/dist/collection/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.js +1 -1
  184. package/dist/collection/components/spw-lightbox/spw-lightbox.css +4 -3
  185. package/dist/collection/components/spw-lightbox/spw-lightbox.js +2 -2
  186. package/dist/collection/components/spw-link/spw-link.css +10 -4
  187. package/dist/collection/components/spw-link/spw-link.js +1 -1
  188. package/dist/collection/components/spw-list/spw-list-description/spw-list-description.css +4 -3
  189. package/dist/collection/components/spw-list/spw-list-description/spw-list-description.js +1 -1
  190. package/dist/collection/components/spw-list/spw-list-item/spw-list-item.css +4 -3
  191. package/dist/collection/components/spw-list/spw-list-item/spw-list-item.js +1 -1
  192. package/dist/collection/components/spw-list/spw-list-title/spw-list-title.css +4 -3
  193. package/dist/collection/components/spw-list/spw-list-title/spw-list-title.js +1 -1
  194. package/dist/collection/components/spw-list/spw-list.css +4 -3
  195. package/dist/collection/components/spw-list/spw-list.js +1 -1
  196. package/dist/collection/components/spw-loading/spw-loading.css +4 -3
  197. package/dist/collection/components/spw-loading/spw-loading.js +1 -1
  198. package/dist/collection/components/spw-message/spw-message.css +4 -3
  199. package/dist/collection/components/spw-modal/spw-modal.css +4 -3
  200. package/dist/collection/components/spw-modal/spw-modal.js +3 -3
  201. package/dist/collection/components/spw-mosaic/spw-mosaic-item/spw-mosaic-item.css +4 -3
  202. package/dist/collection/components/spw-mosaic/spw-mosaic-item/spw-mosaic-item.js +1 -1
  203. package/dist/collection/components/spw-mosaic/spw-mosaic.css +4 -3
  204. package/dist/collection/components/spw-mosaic/spw-mosaic.js +1 -1
  205. package/dist/collection/components/spw-pagination/spw-pagination.css +4 -3
  206. package/dist/collection/components/spw-pagination/spw-pagination.js +6 -6
  207. package/dist/collection/components/spw-radio/spw-radio.css +4 -3
  208. package/dist/collection/components/spw-radio/spw-radio.js +9 -10
  209. package/dist/collection/components/spw-scrolltop/spw-scrolltop.css +4 -3
  210. package/dist/collection/components/spw-scrolltop/spw-scrolltop.js +1 -1
  211. package/dist/collection/components/spw-search-field/spw-search-field.css +4 -3
  212. package/dist/collection/components/spw-select/spw-select.css +4 -3
  213. package/dist/collection/components/spw-select/spw-select.js +65 -5
  214. package/dist/collection/components/spw-separator/spw-separator.css +4 -3
  215. package/dist/collection/components/spw-separator/spw-separator.js +1 -1
  216. package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-dropdown/spw-sidebar-navigation-dropdown.css +4 -3
  217. package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-dropdown/spw-sidebar-navigation-dropdown.js +1 -1
  218. package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-item/spw-sidebar-navigation-item.css +4 -3
  219. package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-item/spw-sidebar-navigation-item.js +3 -3
  220. package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-separator/spw-sidebar-navigation-separator.css +4 -3
  221. package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-separator/spw-sidebar-navigation-separator.js +1 -1
  222. package/dist/collection/components/spw-sidebar/spw-sidebar.css +4 -3
  223. package/dist/collection/components/spw-sidebar/spw-sidebar.js +1 -1
  224. package/dist/collection/components/spw-skeleton/spw-skeleton.css +4 -3
  225. package/dist/collection/components/spw-skeleton/spw-skeleton.js +1 -1
  226. package/dist/collection/components/spw-slider/spw-slider-item/spw-slider-item.css +4 -3
  227. package/dist/collection/components/spw-slider/spw-slider-item/spw-slider-item.js +1 -1
  228. package/dist/collection/components/spw-slider/spw-slider.css +4 -3
  229. package/dist/collection/components/spw-slider/spw-slider.js +1 -1
  230. package/dist/collection/components/spw-socials/spw-socials.css +4 -3
  231. package/dist/collection/components/spw-socials/spw-socials.js +1 -1
  232. package/dist/collection/components/spw-table/spw-table-body/spw-table-body.css +4 -3
  233. package/dist/collection/components/spw-table/spw-table-body/spw-table-body.js +1 -1
  234. package/dist/collection/components/spw-table/spw-table-cell/spw-table-cell.css +4 -3
  235. package/dist/collection/components/spw-table/spw-table-cell/spw-table-cell.js +1 -1
  236. package/dist/collection/components/spw-table/spw-table-container/spw-table-container.css +4 -3
  237. package/dist/collection/components/spw-table/spw-table-container/spw-table-container.js +1 -1
  238. package/dist/collection/components/spw-table/spw-table-footer/spw-table-footer.css +4 -3
  239. package/dist/collection/components/spw-table/spw-table-footer/spw-table-footer.js +1 -1
  240. package/dist/collection/components/spw-table/spw-table-head/spw-table-head.css +4 -3
  241. package/dist/collection/components/spw-table/spw-table-head/spw-table-head.js +1 -1
  242. package/dist/collection/components/spw-table/spw-table-header/spw-table-header.css +4 -3
  243. package/dist/collection/components/spw-table/spw-table-header/spw-table-header.js +2 -2
  244. package/dist/collection/components/spw-table/spw-table-row/spw-table-row.css +4 -3
  245. package/dist/collection/components/spw-table/spw-table-row/spw-table-row.js +1 -1
  246. package/dist/collection/components/spw-table/spw-table-sidebar/spw-table-sidebar.css +4 -3
  247. package/dist/collection/components/spw-table/spw-table-sidebar/spw-table-sidebar.js +1 -1
  248. package/dist/collection/components/spw-table/spw-table.css +4 -3
  249. package/dist/collection/components/spw-tabs/spw-tabs-content/spw-tabs-content.css +4 -3
  250. package/dist/collection/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.css +4 -3
  251. package/dist/collection/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.js +1 -1
  252. package/dist/collection/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.css +4 -3
  253. package/dist/collection/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.js +1 -1
  254. package/dist/collection/components/spw-tabs/spw-tabs.css +4 -3
  255. package/dist/collection/components/spw-tabs/spw-tabs.js +1 -1
  256. package/dist/collection/components/spw-tag/spw-tag.css +4 -3
  257. package/dist/collection/components/spw-tag/spw-tag.js +1 -1
  258. package/dist/collection/components/spw-text-field/spw-text-field.css +4 -3
  259. package/dist/collection/components/spw-text-field/spw-text-field.js +65 -5
  260. package/dist/collection/components/spw-textarea/spw-textarea.css +4 -8
  261. package/dist/collection/components/spw-textarea/spw-textarea.js +65 -28
  262. package/dist/collection/components/spw-theme-provider/spw-theme-provider.js +1 -1
  263. package/dist/collection/components/spw-tile/spw-tile-description/spw-tile-description.css +4 -3
  264. package/dist/collection/components/spw-tile/spw-tile-description/spw-tile-description.js +1 -1
  265. package/dist/collection/components/spw-tile/spw-tile-title/spw-tile-title.css +4 -3
  266. package/dist/collection/components/spw-tile/spw-tile-title/spw-tile-title.js +1 -1
  267. package/dist/collection/components/spw-tile/spw-tile.css +4 -3
  268. package/dist/collection/components/spw-tile/spw-tile.js +1 -1
  269. package/dist/collection/components/spw-timeline/spw-timeline-item/spw-timeline-item.css +4 -3
  270. package/dist/collection/components/spw-timeline/spw-timeline-item/spw-timeline-item.js +2 -2
  271. package/dist/collection/components/spw-timeline/spw-timeline.css +4 -3
  272. package/dist/collection/components/spw-timeline/spw-timeline.js +2 -2
  273. package/dist/collection/components/spw-toast/spw-toast-controller/spw-toast-controller.css +4 -3
  274. package/dist/collection/components/spw-toast/spw-toast.css +4 -3
  275. package/dist/collection/components/spw-toc/spw-toc-container/spw-toc-container.css +4 -3
  276. package/dist/collection/components/spw-toc/spw-toc-container/spw-toc-container.js +105 -6
  277. package/dist/collection/components/spw-toc/spw-toc-navigation/spw-toc-navigation.css +4 -3
  278. package/dist/collection/components/spw-toc/spw-toc-navigation/spw-toc-navigation.js +28 -10
  279. package/dist/collection/components/spw-toc/spw-toc.css +4 -3
  280. package/dist/collection/components/spw-toc/spw-toc.js +1 -1
  281. package/dist/collection/components/spw-tooltip/spw-tooltip.css +4 -3
  282. package/dist/collection/components/spw-tooltip/spw-tooltip.js +1 -1
  283. package/dist/collection/components/spw-topbar/spw-topbar.css +4 -3
  284. package/dist/collection/components/spw-topbar/spw-topbar.js +1 -1
  285. package/dist/collection/components/spw-wizard/spw-wizard-item/spw-wizard-item.css +4 -3
  286. package/dist/collection/components/spw-wizard/spw-wizard-item/spw-wizard-item.js +1 -1
  287. package/dist/collection/components/spw-wizard/spw-wizard.css +4 -3
  288. package/dist/collection/components/spw-wizard/spw-wizard.js +1 -1
  289. package/dist/collection/stories/components/spw-avatar/spw-avatar.stories.js +6 -0
  290. package/dist/collection/stories/components/spw-block-content/spw-block-content.stories.js +7 -0
  291. package/dist/collection/stories/components/spw-box/spw-box.stories.js +31 -2
  292. package/dist/collection/stories/components/spw-breadcrumb/spw-breadcrumb.stories.js +2 -0
  293. package/dist/collection/stories/components/spw-button/spw-button.stories.js +6 -0
  294. package/dist/collection/stories/components/spw-checkbox/spw-checkbox.stories.js +67 -5
  295. package/dist/collection/stories/components/spw-custom-select/spw-custom-select.stories.js +36 -0
  296. package/dist/collection/stories/components/spw-date-picker/spw-date-picker.stories.js +32 -0
  297. package/dist/collection/stories/components/spw-dropdown/spw-dropdown.stories.js +166 -0
  298. package/dist/collection/stories/components/spw-field-message/spw-field-message.stories.js +4 -0
  299. package/dist/collection/stories/components/spw-file-upload/spw-file-upload.stories.js +122 -0
  300. package/dist/collection/stories/components/spw-icon/spw-icon.stories.js +43 -0
  301. package/dist/collection/stories/components/spw-input-slider/spw-input-slider.stories.js +39 -0
  302. package/dist/collection/stories/components/spw-link/spw-link.stories.js +64 -0
  303. package/dist/collection/stories/components/spw-loading/spw-loading.stories.js +8 -0
  304. package/dist/collection/stories/components/spw-pagination/spw-pagination.stories.js +2 -0
  305. package/dist/collection/stories/components/spw-radio/spw-radio.stories.js +70 -0
  306. package/dist/collection/stories/components/spw-scrolltop/spw-scrolltop.stories.js +3 -0
  307. package/dist/collection/stories/components/spw-search-field/spw-search-field.stories.js +6 -0
  308. package/dist/collection/stories/components/spw-select/spw-select.stories.js +30 -0
  309. package/dist/collection/stories/components/spw-separator/spw-separator.stories.js +2 -0
  310. package/dist/collection/stories/components/spw-skeleton/spw-skeleton.stories.js +5 -0
  311. package/dist/collection/stories/components/spw-tag/spw-tag.stories.js +7 -0
  312. package/dist/collection/stories/components/spw-text-field/spw-text-field.stories.js +30 -0
  313. package/dist/collection/stories/components/spw-textarea/spw-textarea.stories.js +122 -0
  314. package/dist/collection/stories/components/spw-toast/spw-toast.stories.js +8 -0
  315. package/dist/collection/stories/components/spw-tooltip/spw-tooltip.stories.js +120 -0
  316. package/dist/collection/stories/organisms/spw-accordion/spw-accordion.stories.js +3 -0
  317. package/dist/collection/stories/organisms/spw-card/spw-card.stories.js +13 -2
  318. package/dist/collection/stories/organisms/spw-drawer/spw-drawer.stories.js +627 -0
  319. package/dist/collection/stories/organisms/spw-footer/spw-footer.stories.js +3 -0
  320. package/dist/collection/stories/organisms/spw-grid/spw-grid.stories.js +1 -0
  321. package/dist/collection/stories/organisms/spw-group/spw-group.stories.js +9 -5
  322. package/dist/collection/stories/organisms/spw-header/spw-header.stories.js +4 -3
  323. package/dist/collection/stories/organisms/spw-hero/spw-hero.stories.js +81 -3
  324. package/dist/collection/stories/organisms/spw-lightbox/spw-lightbox.stories.js +12 -0
  325. package/dist/collection/stories/organisms/spw-list/spw-list.stories.js +8 -0
  326. package/dist/collection/stories/organisms/spw-message/spw-message.stories.js +7 -2
  327. package/dist/collection/stories/organisms/spw-modal/spw-modal.stories.js +7 -0
  328. package/dist/collection/stories/organisms/spw-mosaic/spw-mosaic.stories.js +5 -0
  329. package/dist/collection/stories/organisms/spw-sidebar/spw-sidebar.stories.js +1 -0
  330. package/dist/collection/stories/organisms/spw-slider/spw-slider.stories.js +8 -0
  331. package/dist/collection/stories/organisms/spw-table/spw-table.stories.js +8 -0
  332. package/dist/collection/stories/organisms/spw-tabs/spw-tabs.stories.js +6 -3
  333. package/dist/collection/stories/organisms/spw-tile/spw-tile.stories.js +16 -2
  334. package/dist/collection/stories/organisms/spw-timeline/spw-timeline.stories.js +4 -0
  335. package/dist/collection/stories/organisms/spw-toc/spw-toc.stories.js +2 -0
  336. package/dist/collection/stories/organisms/spw-topbar/spw-topbar.stories.js +3 -2
  337. package/dist/collection/stories/organisms/spw-wizard/spw-wizard.stories.js +5 -0
  338. package/dist/components/index.js +1 -1
  339. package/dist/{spw-stencil-library/p-96308ec8.entry.js → components/p-2iE5Jfvp.js} +1 -1
  340. package/dist/components/{p-Zw0kVjLc.js → p-B3x0iMeq.js} +1 -1
  341. package/dist/components/p-BP0QYENJ.js +1 -0
  342. package/dist/components/p-BdLq2Z-z.js +1 -0
  343. package/dist/components/p-C3B7H2-k.js +1 -0
  344. package/dist/components/p-C5lqDBLM.js +1 -0
  345. package/dist/components/p-C9EdSa5U.js +1 -0
  346. package/dist/components/p-CQNvd2fn.js +1 -0
  347. package/dist/components/p-D3XYY2gS.js +1 -0
  348. package/dist/components/{p-BPhSJ6Z9.js → p-DDihlS_6.js} +1 -1
  349. package/dist/components/p-DIUtCQyY.js +1 -0
  350. package/dist/components/p-DPpA6jtb.js +1 -0
  351. package/dist/components/p-DlnEjqPF.js +1 -0
  352. package/dist/components/p-F4DuhyF5.js +1 -0
  353. package/dist/components/p-kkVxHcEB.js +1 -0
  354. package/dist/components/p-rbXNWvxL.js +1 -0
  355. package/dist/components/spw-accordion-content.js +1 -1
  356. package/dist/components/spw-accordion-item.js +1 -1
  357. package/dist/components/spw-accordion-title.js +1 -1
  358. package/dist/components/spw-accordion.js +1 -1
  359. package/dist/components/spw-avatar.js +1 -1
  360. package/dist/components/spw-block-content.js +1 -1
  361. package/dist/components/spw-box.js +1 -1
  362. package/dist/components/spw-breadcrumb-item.js +1 -1
  363. package/dist/components/spw-breadcrumb.js +1 -1
  364. package/dist/components/spw-button.js +1 -1
  365. package/dist/components/spw-card-content.js +1 -1
  366. package/dist/components/spw-card-excerpt.js +1 -1
  367. package/dist/components/spw-card-image.js +1 -1
  368. package/dist/components/spw-card-subtag-item.js +1 -1
  369. package/dist/components/spw-card-subtags.js +1 -1
  370. package/dist/components/spw-card-title.js +1 -1
  371. package/dist/components/spw-card.js +1 -1
  372. package/dist/components/spw-checkbox.js +1 -1
  373. package/dist/components/spw-cookies.js +1 -1
  374. package/dist/components/spw-custom-select.js +1 -1
  375. package/dist/components/spw-date-picker.js +1 -1
  376. package/dist/components/spw-drawer.js +1 -1
  377. package/dist/components/spw-dropdown-container.js +1 -1
  378. package/dist/components/spw-dropdown-item.js +1 -1
  379. package/dist/components/spw-dropdown.js +1 -1
  380. package/dist/components/spw-field-label.js +1 -1
  381. package/dist/components/spw-field-message.js +1 -1
  382. package/dist/components/spw-file-upload.js +1 -1
  383. package/dist/components/spw-footer-bottom.js +1 -1
  384. package/dist/components/spw-footer-content-col.js +1 -1
  385. package/dist/components/spw-footer-content.js +1 -1
  386. package/dist/components/spw-footer-link.js +1 -1
  387. package/dist/components/spw-footer.js +1 -1
  388. package/dist/components/spw-grid-item.js +1 -1
  389. package/dist/components/spw-grid.js +1 -1
  390. package/dist/components/spw-group.js +1 -1
  391. package/dist/components/spw-header-lang.js +1 -1
  392. package/dist/components/spw-header-navigation-dropdown.js +1 -1
  393. package/dist/components/spw-header-navigation-item.js +1 -1
  394. package/dist/components/spw-header-navigation.js +1 -1
  395. package/dist/components/spw-header-persona-item.js +1 -1
  396. package/dist/components/spw-header-persona.js +1 -1
  397. package/dist/components/spw-header.js +1 -1
  398. package/dist/components/spw-hero.js +1 -1
  399. package/dist/components/spw-icon.js +1 -1
  400. package/dist/components/spw-illustration.js +1 -1
  401. package/dist/components/spw-input-slider.js +1 -1
  402. package/dist/components/spw-lightbox-item.js +1 -1
  403. package/dist/components/spw-lightbox.js +1 -1
  404. package/dist/components/spw-link.js +1 -1
  405. package/dist/components/spw-list-description.js +1 -1
  406. package/dist/components/spw-list-item.js +1 -1
  407. package/dist/components/spw-list-title.js +1 -1
  408. package/dist/components/spw-list.js +1 -1
  409. package/dist/components/spw-loading.js +1 -1
  410. package/dist/components/spw-message.js +1 -1
  411. package/dist/components/spw-modal.js +1 -1
  412. package/dist/components/spw-mosaic-item.js +1 -1
  413. package/dist/components/spw-mosaic.js +1 -1
  414. package/dist/components/spw-pagination.js +1 -1
  415. package/dist/components/spw-radio.js +1 -1
  416. package/dist/components/spw-scrolltop.js +1 -1
  417. package/dist/components/spw-search-field.js +1 -1
  418. package/dist/components/spw-select.js +1 -1
  419. package/dist/components/spw-separator.js +1 -1
  420. package/dist/components/spw-sidebar-navigation-dropdown.js +1 -1
  421. package/dist/components/spw-sidebar-navigation-item.js +1 -1
  422. package/dist/components/spw-sidebar-navigation-separator.js +1 -1
  423. package/dist/components/spw-sidebar.js +1 -1
  424. package/dist/components/spw-skeleton.js +1 -1
  425. package/dist/components/spw-slider-item.js +1 -1
  426. package/dist/components/spw-slider.js +1 -1
  427. package/dist/components/spw-socials.js +1 -1
  428. package/dist/components/spw-table-body.js +1 -1
  429. package/dist/components/spw-table-cell.js +1 -1
  430. package/dist/components/spw-table-container.js +1 -1
  431. package/dist/components/spw-table-footer.js +1 -1
  432. package/dist/components/spw-table-head.js +1 -1
  433. package/dist/components/spw-table-header.js +1 -1
  434. package/dist/components/spw-table-row.js +1 -1
  435. package/dist/components/spw-table-sidebar.js +1 -1
  436. package/dist/components/spw-table.js +1 -1
  437. package/dist/components/spw-tabs-content.js +1 -1
  438. package/dist/components/spw-tabs-navigation-item.js +1 -1
  439. package/dist/components/spw-tabs-navigation.js +1 -1
  440. package/dist/components/spw-tabs.js +1 -1
  441. package/dist/components/spw-tag.js +1 -1
  442. package/dist/components/spw-text-field.js +1 -1
  443. package/dist/components/spw-textarea.js +1 -1
  444. package/dist/components/spw-theme-provider.js +1 -1
  445. package/dist/components/spw-tile-description.js +1 -1
  446. package/dist/components/spw-tile-title.js +1 -1
  447. package/dist/components/spw-tile.js +1 -1
  448. package/dist/components/spw-timeline-item.js +1 -1
  449. package/dist/components/spw-timeline.js +1 -1
  450. package/dist/components/spw-toast-controller.js +1 -1
  451. package/dist/components/spw-toast.js +1 -1
  452. package/dist/components/spw-toc-container.js +1 -1
  453. package/dist/components/spw-toc-navigation.js +1 -1
  454. package/dist/components/spw-toc.js +1 -1
  455. package/dist/components/spw-tooltip.js +1 -1
  456. package/dist/components/spw-topbar.js +1 -1
  457. package/dist/components/spw-wizard-item.js +1 -1
  458. package/dist/components/spw-wizard.js +1 -1
  459. package/dist/components_json.json +1158 -139
  460. package/dist/components_vscode.json +181 -19
  461. package/dist/esm/{index-Co4V4Zk-.js → index-C5N6FAxf.js} +66 -2
  462. package/dist/esm/loader.js +3 -3
  463. package/dist/esm/spw-accordion_4.entry.js +5 -5
  464. package/dist/esm/spw-avatar.entry.js +2 -2
  465. package/dist/esm/spw-block-content.entry.js +2 -2
  466. package/dist/esm/spw-box.entry.js +6 -3
  467. package/dist/esm/spw-breadcrumb-item.entry.js +14 -3
  468. package/dist/esm/spw-breadcrumb.entry.js +4 -4
  469. package/dist/esm/spw-button_2.entry.js +4 -4
  470. package/dist/esm/spw-card-content.entry.js +3 -3
  471. package/dist/esm/spw-card-excerpt.entry.js +3 -3
  472. package/dist/esm/spw-card-image.entry.js +3 -3
  473. package/dist/esm/spw-card-subtag-item.entry.js +3 -3
  474. package/dist/esm/spw-card-subtags.entry.js +3 -3
  475. package/dist/esm/spw-card-title.entry.js +3 -3
  476. package/dist/esm/spw-card.entry.js +15 -5
  477. package/dist/esm/spw-checkbox.entry.js +3 -3
  478. package/dist/esm/spw-cookies.entry.js +2 -2
  479. package/dist/esm/spw-custom-select.entry.js +14 -12
  480. package/dist/esm/spw-date-picker.entry.js +5 -3
  481. package/dist/esm/spw-drawer.entry.js +5 -5
  482. package/dist/esm/spw-dropdown-container.entry.js +3 -3
  483. package/dist/esm/spw-dropdown-item.entry.js +3 -3
  484. package/dist/esm/spw-dropdown.entry.js +3 -3
  485. package/dist/esm/spw-field-label_8.entry.js +35 -31
  486. package/dist/esm/spw-file-upload.entry.js +4 -7
  487. package/dist/esm/spw-footer-bottom.entry.js +3 -3
  488. package/dist/esm/spw-footer-content-col.entry.js +3 -3
  489. package/dist/esm/spw-footer-content.entry.js +3 -3
  490. package/dist/esm/spw-footer-link.entry.js +3 -3
  491. package/dist/esm/spw-footer.entry.js +3 -3
  492. package/dist/esm/spw-grid-item.entry.js +4 -4
  493. package/dist/esm/spw-grid.entry.js +4 -4
  494. package/dist/esm/spw-header-lang.entry.js +3 -3
  495. package/dist/esm/spw-header-navigation-dropdown.entry.js +3 -3
  496. package/dist/esm/spw-header-navigation-item.entry.js +3 -3
  497. package/dist/esm/spw-header-navigation.entry.js +20 -3
  498. package/dist/esm/spw-header-persona-item.entry.js +3 -3
  499. package/dist/esm/spw-header-persona.entry.js +3 -3
  500. package/dist/esm/spw-header.entry.js +3 -3
  501. package/dist/esm/spw-hero.entry.js +5 -5
  502. package/dist/esm/spw-illustration.entry.js +2 -2
  503. package/dist/esm/spw-input-slider.entry.js +9 -7
  504. package/dist/esm/spw-lightbox-item.entry.js +3 -3
  505. package/dist/esm/spw-lightbox.entry.js +4 -4
  506. package/dist/esm/spw-list-description.entry.js +3 -3
  507. package/dist/esm/spw-list-item.entry.js +3 -3
  508. package/dist/esm/spw-list-title.entry.js +3 -3
  509. package/dist/esm/spw-list.entry.js +3 -3
  510. package/dist/esm/spw-message.entry.js +2 -2
  511. package/dist/esm/spw-modal.entry.js +5 -5
  512. package/dist/esm/spw-mosaic-item.entry.js +3 -3
  513. package/dist/esm/spw-mosaic.entry.js +3 -3
  514. package/dist/esm/spw-pagination.entry.js +8 -8
  515. package/dist/esm/spw-radio.entry.js +11 -12
  516. package/dist/esm/spw-scrolltop.entry.js +3 -3
  517. package/dist/esm/spw-search-field.entry.js +2 -2
  518. package/dist/esm/spw-select.entry.js +9 -7
  519. package/dist/esm/spw-sidebar-navigation-dropdown.entry.js +3 -3
  520. package/dist/esm/spw-sidebar-navigation-item.entry.js +5 -5
  521. package/dist/esm/spw-sidebar-navigation-separator.entry.js +3 -3
  522. package/dist/esm/spw-sidebar.entry.js +3 -3
  523. package/dist/esm/spw-skeleton.entry.js +3 -3
  524. package/dist/esm/spw-slider-item.entry.js +3 -3
  525. package/dist/esm/spw-slider.entry.js +3 -3
  526. package/dist/esm/spw-socials.entry.js +3 -3
  527. package/dist/esm/spw-stencil-library.js +3 -3
  528. package/dist/esm/spw-table-body.entry.js +3 -3
  529. package/dist/esm/spw-table-cell.entry.js +3 -3
  530. package/dist/esm/spw-table-container.entry.js +3 -3
  531. package/dist/esm/spw-table-footer.entry.js +3 -3
  532. package/dist/esm/spw-table-head.entry.js +3 -3
  533. package/dist/esm/spw-table-header.entry.js +4 -4
  534. package/dist/esm/spw-table-row.entry.js +3 -3
  535. package/dist/esm/spw-table-sidebar.entry.js +3 -3
  536. package/dist/esm/spw-table.entry.js +2 -2
  537. package/dist/esm/spw-tabs-content.entry.js +2 -2
  538. package/dist/esm/spw-tabs-navigation-item.entry.js +3 -3
  539. package/dist/esm/spw-tabs-navigation.entry.js +3 -3
  540. package/dist/esm/spw-tabs.entry.js +3 -3
  541. package/dist/esm/spw-tag.entry.js +3 -3
  542. package/dist/esm/spw-text-field.entry.js +9 -7
  543. package/dist/esm/spw-textarea.entry.js +9 -10
  544. package/dist/esm/spw-tile-description.entry.js +3 -3
  545. package/dist/esm/spw-tile-title.entry.js +3 -3
  546. package/dist/esm/spw-tile.entry.js +3 -3
  547. package/dist/esm/spw-timeline-item.entry.js +4 -4
  548. package/dist/esm/spw-timeline.entry.js +4 -4
  549. package/dist/esm/spw-toast-controller.entry.js +2 -2
  550. package/dist/esm/spw-toast.entry.js +2 -2
  551. package/dist/esm/spw-toc-container.entry.js +80 -8
  552. package/dist/esm/spw-toc-navigation.entry.js +30 -12
  553. package/dist/esm/spw-toc.entry.js +3 -3
  554. package/dist/esm/spw-topbar.entry.js +3 -3
  555. package/dist/esm/spw-wizard-item.entry.js +3 -3
  556. package/dist/esm/spw-wizard.entry.js +3 -3
  557. package/dist/spw-stencil-library/p-00ff273e.entry.js +1 -0
  558. package/dist/spw-stencil-library/p-0373be2e.entry.js +1 -0
  559. package/dist/spw-stencil-library/p-05c01409.entry.js +1 -0
  560. package/dist/spw-stencil-library/p-07ebfa15.entry.js +1 -0
  561. package/dist/spw-stencil-library/p-09aa872b.entry.js +1 -0
  562. package/dist/spw-stencil-library/p-0b369fe0.entry.js +1 -0
  563. package/dist/spw-stencil-library/p-0bab1123.entry.js +1 -0
  564. package/dist/spw-stencil-library/p-188af666.entry.js +1 -0
  565. package/dist/spw-stencil-library/p-18c0f6b5.entry.js +1 -0
  566. package/dist/spw-stencil-library/p-1a0de816.entry.js +1 -0
  567. package/dist/spw-stencil-library/p-1d1b1ae3.entry.js +1 -0
  568. package/dist/spw-stencil-library/p-24ba55fd.entry.js +1 -0
  569. package/dist/spw-stencil-library/p-2579f0f9.entry.js +1 -0
  570. package/dist/spw-stencil-library/p-2597abf2.entry.js +1 -0
  571. package/dist/spw-stencil-library/{p-67e57e7b.entry.js → p-2807b7be.entry.js} +1 -1
  572. package/dist/spw-stencil-library/{p-3e0f3dd4.entry.js → p-294eb7ff.entry.js} +1 -1
  573. package/dist/spw-stencil-library/p-2a980bf0.entry.js +1 -0
  574. package/dist/spw-stencil-library/p-2baca3a5.entry.js +1 -0
  575. package/dist/spw-stencil-library/p-32c71e5b.entry.js +1 -0
  576. package/dist/spw-stencil-library/p-390b54b3.entry.js +1 -0
  577. package/dist/spw-stencil-library/p-3ad59624.entry.js +1 -0
  578. package/dist/spw-stencil-library/p-3c5e087d.entry.js +1 -0
  579. package/dist/spw-stencil-library/p-3d69bc6d.entry.js +1 -0
  580. package/dist/spw-stencil-library/p-3ec14e26.entry.js +1 -0
  581. package/dist/spw-stencil-library/{p-1a46f3ba.entry.js → p-41b54c1d.entry.js} +1 -1
  582. package/dist/spw-stencil-library/{p-25808824.entry.js → p-43a0782d.entry.js} +1 -1
  583. package/dist/spw-stencil-library/{p-36b59630.entry.js → p-43e3fe34.entry.js} +1 -1
  584. package/dist/spw-stencil-library/p-4d44ffe3.entry.js +1 -0
  585. package/dist/spw-stencil-library/p-4f9ee2af.entry.js +1 -0
  586. package/dist/spw-stencil-library/p-5a4a24e9.entry.js +1 -0
  587. package/dist/spw-stencil-library/p-5af9996f.entry.js +1 -0
  588. package/dist/spw-stencil-library/p-5e6a842f.entry.js +1 -0
  589. package/dist/spw-stencil-library/{p-0a121f56.entry.js → p-5f9e2ce5.entry.js} +1 -1
  590. package/dist/spw-stencil-library/p-60d1f1ab.entry.js +1 -0
  591. package/dist/spw-stencil-library/p-61a2830d.entry.js +1 -0
  592. package/dist/spw-stencil-library/{p-ea6a7692.entry.js → p-62000770.entry.js} +1 -1
  593. package/dist/spw-stencil-library/p-6763bad4.entry.js +1 -0
  594. package/dist/spw-stencil-library/p-68db1b65.entry.js +1 -0
  595. package/dist/spw-stencil-library/p-68e31c3d.entry.js +1 -0
  596. package/dist/spw-stencil-library/p-6c5e9eb1.entry.js +1 -0
  597. package/dist/spw-stencil-library/p-6cceddce.entry.js +1 -0
  598. package/dist/spw-stencil-library/p-6dbccd34.entry.js +1 -0
  599. package/dist/spw-stencil-library/p-70c8ae3f.entry.js +1 -0
  600. package/dist/spw-stencil-library/p-74b6e21f.entry.js +1 -0
  601. package/dist/spw-stencil-library/p-7bbfac6c.entry.js +1 -0
  602. package/dist/spw-stencil-library/p-7f28ab5f.entry.js +1 -0
  603. package/dist/spw-stencil-library/p-8212d5e4.entry.js +1 -0
  604. package/dist/spw-stencil-library/p-84856ff4.entry.js +1 -0
  605. package/dist/spw-stencil-library/{p-700554d4.entry.js → p-8926576b.entry.js} +1 -1
  606. package/dist/spw-stencil-library/{p-5f1e7343.entry.js → p-89aa9616.entry.js} +1 -1
  607. package/dist/spw-stencil-library/p-8aece962.entry.js +1 -0
  608. package/dist/spw-stencil-library/p-8eaf94c3.entry.js +1 -0
  609. package/dist/spw-stencil-library/p-903d2621.entry.js +1 -0
  610. package/dist/spw-stencil-library/p-909463ec.entry.js +1 -0
  611. package/dist/spw-stencil-library/{p-6bb83ef4.entry.js → p-90b598b7.entry.js} +1 -1
  612. package/dist/spw-stencil-library/p-937bcc42.entry.js +1 -0
  613. package/dist/spw-stencil-library/{p-Co4V4Zk-.js → p-C5N6FAxf.js} +2 -2
  614. package/dist/spw-stencil-library/p-a052c62f.entry.js +1 -0
  615. package/dist/spw-stencil-library/p-a13f1a19.entry.js +1 -0
  616. package/dist/spw-stencil-library/p-a37ed701.entry.js +1 -0
  617. package/dist/spw-stencil-library/{p-bfebf124.entry.js → p-a8bde8f1.entry.js} +1 -1
  618. package/dist/spw-stencil-library/p-ae7b5957.entry.js +1 -0
  619. package/dist/spw-stencil-library/p-b02b61ee.entry.js +1 -0
  620. package/dist/spw-stencil-library/p-b15fecbf.entry.js +1 -0
  621. package/dist/spw-stencil-library/p-b5aaaa2e.entry.js +1 -0
  622. package/dist/spw-stencil-library/p-b73ea513.entry.js +1 -0
  623. package/dist/spw-stencil-library/p-b80e1328.entry.js +1 -0
  624. package/dist/spw-stencil-library/p-b85cae0c.entry.js +1 -0
  625. package/dist/spw-stencil-library/p-b8987bdc.entry.js +1 -0
  626. package/dist/spw-stencil-library/p-ba50a10d.entry.js +1 -0
  627. package/dist/spw-stencil-library/{p-cc9371d1.entry.js → p-bd1ddbb0.entry.js} +1 -1
  628. package/dist/spw-stencil-library/{p-f073fe43.entry.js → p-bf7d4828.entry.js} +1 -1
  629. package/dist/spw-stencil-library/p-c2f82f35.entry.js +1 -0
  630. package/dist/spw-stencil-library/p-c66f0d01.entry.js +1 -0
  631. package/dist/spw-stencil-library/p-c713ef7e.entry.js +1 -0
  632. package/dist/spw-stencil-library/p-c9feda78.entry.js +1 -0
  633. package/dist/spw-stencil-library/p-cad173a3.entry.js +1 -0
  634. package/dist/spw-stencil-library/p-cc406002.entry.js +1 -0
  635. package/dist/spw-stencil-library/p-cea47613.entry.js +1 -0
  636. package/dist/spw-stencil-library/p-cec973c7.entry.js +1 -0
  637. package/dist/spw-stencil-library/p-d009ebf1.entry.js +1 -0
  638. package/dist/spw-stencil-library/p-d35fb0e2.entry.js +1 -0
  639. package/dist/spw-stencil-library/p-d87005a9.entry.js +1 -0
  640. package/dist/spw-stencil-library/p-da1efbb7.entry.js +1 -0
  641. package/dist/spw-stencil-library/{p-ff1a0317.entry.js → p-db477bbd.entry.js} +1 -1
  642. package/dist/spw-stencil-library/p-e3ada16c.entry.js +1 -0
  643. package/dist/spw-stencil-library/{p-8d4507ab.entry.js → p-ec4b0f0d.entry.js} +4 -4
  644. package/dist/spw-stencil-library/p-ed01e9a1.entry.js +1 -0
  645. package/dist/spw-stencil-library/p-ee61dc7a.entry.js +1 -0
  646. package/dist/spw-stencil-library/p-ee69cf36.entry.js +1 -0
  647. package/dist/spw-stencil-library/p-ef7977c0.entry.js +1 -0
  648. package/dist/spw-stencil-library/p-f240cb23.entry.js +1 -0
  649. package/dist/spw-stencil-library/p-f2ec0ac9.entry.js +1 -0
  650. package/dist/spw-stencil-library/p-f391852d.entry.js +1 -0
  651. package/dist/spw-stencil-library/spw-stencil-library.css +1 -1
  652. package/dist/spw-stencil-library/spw-stencil-library.esm.js +1 -1
  653. package/dist/stats.json +3245 -1380
  654. package/dist/types/components/spw-box/spw-box.d.ts +2 -0
  655. package/dist/types/components/spw-breadcrumb/spw-breadcrumb-item/spw-breadcrumb-item.d.ts +4 -0
  656. package/dist/types/components/spw-card/spw-card.d.ts +8 -2
  657. package/dist/types/components/spw-custom-select/spw-custom-select.d.ts +6 -0
  658. package/dist/types/components/spw-date-picker/spw-date-picker.d.ts +6 -0
  659. package/dist/types/components/spw-field-message/spw-field-message.d.ts +8 -0
  660. package/dist/types/components/spw-file-upload/spw-file-upload.d.ts +0 -2
  661. package/dist/types/components/spw-group/spw-group.d.ts +6 -1
  662. package/dist/types/components/spw-header/spw-header-navigation/spw-header-navigation.d.ts +19 -0
  663. package/dist/types/components/spw-input-slider/spw-input-slider.d.ts +6 -0
  664. package/dist/types/components/spw-select/spw-select.d.ts +6 -0
  665. package/dist/types/components/spw-text-field/spw-text-field.d.ts +6 -0
  666. package/dist/types/components/spw-textarea/spw-textarea.d.ts +6 -2
  667. package/dist/types/components/spw-toc/spw-toc-container/spw-toc-container.d.ts +9 -1
  668. package/dist/types/components/spw-toc/spw-toc-navigation/spw-toc-navigation.d.ts +2 -0
  669. package/dist/types/components.d.ts +384 -27
  670. package/dist/types/stories/components/spw-box/spw-box.stories.d.ts +1 -0
  671. package/dist/types/stories/components/spw-checkbox/spw-checkbox.stories.d.ts +4 -1
  672. package/dist/types/stories/components/spw-custom-select/spw-custom-select.stories.d.ts +2 -1
  673. package/dist/types/stories/components/spw-date-picker/spw-date-picker.stories.d.ts +2 -1
  674. package/dist/types/stories/components/spw-dropdown/spw-dropdown.stories.d.ts +7 -1
  675. package/dist/types/stories/components/spw-file-upload/spw-file-upload.stories.d.ts +7 -0
  676. package/dist/types/stories/components/spw-icon/spw-icon.stories.d.ts +4 -1
  677. package/dist/types/stories/components/spw-input-slider/spw-input-slider.stories.d.ts +2 -1
  678. package/dist/types/stories/components/spw-link/spw-link.stories.d.ts +4 -0
  679. package/dist/types/stories/components/spw-radio/spw-radio.stories.d.ts +4 -1
  680. package/dist/types/stories/components/spw-select/spw-select.stories.d.ts +2 -1
  681. package/dist/types/stories/components/spw-text-field/spw-text-field.stories.d.ts +2 -1
  682. package/dist/types/stories/components/spw-textarea/spw-textarea.stories.d.ts +8 -1
  683. package/dist/types/stories/components/spw-tooltip/spw-tooltip.stories.d.ts +8 -1
  684. package/dist/types/stories/organisms/spw-drawer/spw-drawer.stories.d.ts +19 -0
  685. package/dist/types/stories/organisms/spw-hero/spw-hero.stories.d.ts +2 -1
  686. package/hydrate/index.js +501 -295
  687. package/hydrate/index.mjs +501 -295
  688. package/package.json +1 -1
  689. package/dist/components/p-B-cQeHXM.js +0 -1
  690. package/dist/components/p-BIUq0sDZ.js +0 -1
  691. package/dist/components/p-BY3qZT4B.js +0 -1
  692. package/dist/components/p-C3Ll1ThQ.js +0 -1
  693. package/dist/components/p-CjvNWegY.js +0 -1
  694. package/dist/components/p-CkAL76gB.js +0 -1
  695. package/dist/components/p-CvLC1GlH.js +0 -1
  696. package/dist/components/p-D0DQUsj1.js +0 -1
  697. package/dist/components/p-D25JsirJ.js +0 -1
  698. package/dist/components/p-DRPRSyPM.js +0 -1
  699. package/dist/components/p-DYJNpZeH.js +0 -1
  700. package/dist/components/p-UzhhGIpr.js +0 -1
  701. package/dist/components/p-ZYgHSKrO.js +0 -1
  702. package/dist/components/p-eaT1pNxG.js +0 -1
  703. package/dist/spw-stencil-library/p-006adc88.entry.js +0 -1
  704. package/dist/spw-stencil-library/p-018f7e9a.entry.js +0 -1
  705. package/dist/spw-stencil-library/p-0485f533.entry.js +0 -1
  706. package/dist/spw-stencil-library/p-07fbb8f6.entry.js +0 -1
  707. package/dist/spw-stencil-library/p-091d4662.entry.js +0 -1
  708. package/dist/spw-stencil-library/p-106a3fcd.entry.js +0 -1
  709. package/dist/spw-stencil-library/p-159f99ab.entry.js +0 -1
  710. package/dist/spw-stencil-library/p-18e87463.entry.js +0 -1
  711. package/dist/spw-stencil-library/p-1d64b425.entry.js +0 -1
  712. package/dist/spw-stencil-library/p-1dd3086f.entry.js +0 -1
  713. package/dist/spw-stencil-library/p-25fe7de0.entry.js +0 -1
  714. package/dist/spw-stencil-library/p-27e23a3b.entry.js +0 -1
  715. package/dist/spw-stencil-library/p-2eeb292e.entry.js +0 -1
  716. package/dist/spw-stencil-library/p-3579a4e5.entry.js +0 -1
  717. package/dist/spw-stencil-library/p-38dbba65.entry.js +0 -1
  718. package/dist/spw-stencil-library/p-3d37c0d2.entry.js +0 -1
  719. package/dist/spw-stencil-library/p-3da16e01.entry.js +0 -1
  720. package/dist/spw-stencil-library/p-3db5d9dd.entry.js +0 -1
  721. package/dist/spw-stencil-library/p-3ed8aeca.entry.js +0 -1
  722. package/dist/spw-stencil-library/p-41c2c857.entry.js +0 -1
  723. package/dist/spw-stencil-library/p-486e0e66.entry.js +0 -1
  724. package/dist/spw-stencil-library/p-4a1c6a51.entry.js +0 -1
  725. package/dist/spw-stencil-library/p-4b986821.entry.js +0 -1
  726. package/dist/spw-stencil-library/p-4e6db3bf.entry.js +0 -1
  727. package/dist/spw-stencil-library/p-4f09896f.entry.js +0 -1
  728. package/dist/spw-stencil-library/p-50b391d6.entry.js +0 -1
  729. package/dist/spw-stencil-library/p-50bad396.entry.js +0 -1
  730. package/dist/spw-stencil-library/p-576df843.entry.js +0 -1
  731. package/dist/spw-stencil-library/p-5e6152f4.entry.js +0 -1
  732. package/dist/spw-stencil-library/p-609bd382.entry.js +0 -1
  733. package/dist/spw-stencil-library/p-60f1fb93.entry.js +0 -1
  734. package/dist/spw-stencil-library/p-634313d8.entry.js +0 -1
  735. package/dist/spw-stencil-library/p-7043e2f6.entry.js +0 -1
  736. package/dist/spw-stencil-library/p-70eab5b3.entry.js +0 -1
  737. package/dist/spw-stencil-library/p-718a1cfc.entry.js +0 -1
  738. package/dist/spw-stencil-library/p-72ccef29.entry.js +0 -1
  739. package/dist/spw-stencil-library/p-86c818dc.entry.js +0 -1
  740. package/dist/spw-stencil-library/p-89814941.entry.js +0 -1
  741. package/dist/spw-stencil-library/p-89c0b509.entry.js +0 -1
  742. package/dist/spw-stencil-library/p-8c3f163d.entry.js +0 -1
  743. package/dist/spw-stencil-library/p-8ece5de4.entry.js +0 -1
  744. package/dist/spw-stencil-library/p-96b19074.entry.js +0 -1
  745. package/dist/spw-stencil-library/p-97222848.entry.js +0 -1
  746. package/dist/spw-stencil-library/p-9aef4d39.entry.js +0 -1
  747. package/dist/spw-stencil-library/p-9ee4fd23.entry.js +0 -1
  748. package/dist/spw-stencil-library/p-9fa5fd1e.entry.js +0 -1
  749. package/dist/spw-stencil-library/p-a5b78ab2.entry.js +0 -1
  750. package/dist/spw-stencil-library/p-a8d07493.entry.js +0 -1
  751. package/dist/spw-stencil-library/p-adae2c8f.entry.js +0 -1
  752. package/dist/spw-stencil-library/p-aef1936f.entry.js +0 -1
  753. package/dist/spw-stencil-library/p-b0be475c.entry.js +0 -1
  754. package/dist/spw-stencil-library/p-b156247b.entry.js +0 -1
  755. package/dist/spw-stencil-library/p-b3c0af55.entry.js +0 -1
  756. package/dist/spw-stencil-library/p-b7f20973.entry.js +0 -1
  757. package/dist/spw-stencil-library/p-bd521e50.entry.js +0 -1
  758. package/dist/spw-stencil-library/p-be17a0cf.entry.js +0 -1
  759. package/dist/spw-stencil-library/p-c3b2299c.entry.js +0 -1
  760. package/dist/spw-stencil-library/p-c9c84bbe.entry.js +0 -1
  761. package/dist/spw-stencil-library/p-cea7d5ac.entry.js +0 -1
  762. package/dist/spw-stencil-library/p-d224d201.entry.js +0 -1
  763. package/dist/spw-stencil-library/p-db6b5462.entry.js +0 -1
  764. package/dist/spw-stencil-library/p-df1e5278.entry.js +0 -1
  765. package/dist/spw-stencil-library/p-e039894a.entry.js +0 -1
  766. package/dist/spw-stencil-library/p-e1410eb6.entry.js +0 -1
  767. package/dist/spw-stencil-library/p-e4deed26.entry.js +0 -1
  768. package/dist/spw-stencil-library/p-e5fb89f8.entry.js +0 -1
  769. package/dist/spw-stencil-library/p-e68ef751.entry.js +0 -1
  770. package/dist/spw-stencil-library/p-e814b60f.entry.js +0 -1
  771. package/dist/spw-stencil-library/p-ea07c235.entry.js +0 -1
  772. package/dist/spw-stencil-library/p-ea0c0609.entry.js +0 -1
  773. package/dist/spw-stencil-library/p-ee27a3b1.entry.js +0 -1
  774. package/dist/spw-stencil-library/p-efebcaa2.entry.js +0 -1
  775. package/dist/spw-stencil-library/p-f741b7f2.entry.js +0 -1
  776. package/dist/spw-stencil-library/p-f846ccbb.entry.js +0 -1
  777. package/dist/spw-stencil-library/p-fbc625af.entry.js +0 -1
  778. package/dist/spw-stencil-library/p-fc985ba3.entry.js +0 -1
  779. package/dist/spw-stencil-library/p-fd94894e.entry.js +0 -1
@@ -1 +1 @@
1
- import{p as e,H as t,h as i,a as s,t as a}from"./index.js";const r=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.maxItems=9999,this.variant="default",this.surface="light",this.fontSize="small"}componentDidLoad(){this.updateBreadcrumbVisibility()}componentDidUpdate(){this.updateBreadcrumbVisibility()}updateBreadcrumbVisibility(){const e=this.host.querySelectorAll("spw-breadcrumb-item"),t=e.length;if(e.forEach((e=>{e.classList.remove("hidden-item","collapsed-item")})),t>this.maxItems){const i=this.maxItems-1;e.forEach(((e,s)=>{s>=i&&s<t-1&&e.classList.add(s===t-2?"collapsed-item":"hidden-item")}))}}render(){return i(s,{key:"72cd3232357b54b5fa081df2c605ea039b791fd7"},i("nav",{key:"214606d2a4d13a2d629d9d88aa8a5182be5006c3","aria-label":this.accAriaLabel,class:{"spw-breadcrumb":!0,["spw-breadcrumb--surface-"+this.surface]:!0,["spw-breadcrumb--font-size-"+this.fontSize]:!0,["spw-breadcrumb--"+this.variant]:!0}},i("div",{key:"4ea1cedcd9fcd650e8198c1d613959bbee9f155e",role:"list",class:"spw-breadcrumb__list"},i("slot",{key:"8cc4da01764ace42c2de886f453e3c322c2f0483"}))))}get host(){return this}static get style(){return'html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main)}body{margin: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;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:-0.25em}sup{top:-0.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}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.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}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1232px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@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{display:block}.spw-breadcrumb{font-size:16px;max-width:100%;width:100%}.spw-breadcrumb--font-size-small{font-size:14px}.spw-breadcrumb__list{display:flex;list-style:none;padding:0;margin:0;width:100%;max-width:100%}@media (min-width: 1024px){.spw-breadcrumb--multiline .spw-breadcrumb__list{display:block}}@media (min-width: 1024px){.spw-breadcrumb--multiline ::slotted(spw-breadcrumb-item:last-child){display:block;margin-top:12px !important}}@media (min-width: 1024px){.spw-breadcrumb--multiline ::slotted(spw-breadcrumb-item:nth-last-child(2)):after{display:none !important}}::slotted(spw-breadcrumb-item){margin-right:10px !important;padding-left:24px !important;position:relative;display:none}::slotted(spw-breadcrumb-item):after{position:absolute;top:50%;transform:translateY(-50%);left:0;font-family:var(--spw-ds-font-icons-solid);font-weight:700;content:"\\f060";font-size:14px}@media (min-width: 1024px){::slotted(spw-breadcrumb-item):after{right:0;left:auto;transform:translateY(-50%);content:"\\f054";font-size:12px}}@media (min-width: 1024px){::slotted(spw-breadcrumb-item){display:inline-block;padding-left:0 !important;padding-right:16px !important}}::slotted(spw-breadcrumb-item:last-child){flex:1;overflow:hidden;display:none;margin-right:0 !important;-webkit-box-orient:vertical;text-overflow:ellipsis;-webkit-line-clamp:1;line-clamp:1;padding-right:0 !important}::slotted(spw-breadcrumb-item:last-child):after{display:none}@media (min-width: 1024px){::slotted(spw-breadcrumb-item:last-child){display:-webkit-box}}.spw-breadcrumb:not(.spw-breadcrumb--multiline):not(.spw-breadcrumb--one-line) ::slotted(spw-breadcrumb-item:nth-last-child(2)){display:-webkit-box !important}.spw-breadcrumb--one-line ::slotted(spw-breadcrumb-item){display:none}@media (min-width: 1024px){.spw-breadcrumb--one-line ::slotted(spw-breadcrumb-item){display:inline-block}}.spw-breadcrumb--one-line ::slotted(spw-breadcrumb-item:last-child){overflow:initial;display:-webkit-box !important}.spw-breadcrumb--one-line ::slotted(spw-breadcrumb-item:last-child):after{display:block}@media (min-width: 1024px){.spw-breadcrumb--one-line ::slotted(spw-breadcrumb-item:last-child):after{display:none}}@media (min-width: 1024px){.spw-breadcrumb--one-line ::slotted(spw-breadcrumb-item:last-child){display:inline-block}}.spw-breadcrumb--multiline ::slotted(spw-breadcrumb-item){display:none}@media (min-width: 1024px){.spw-breadcrumb--multiline ::slotted(spw-breadcrumb-item){display:inline-block}}.spw-breadcrumb--multiline ::slotted(spw-breadcrumb-item:nth-last-child(2)){overflow:initial;display:-webkit-box !important}.spw-breadcrumb--multiline ::slotted(spw-breadcrumb-item:nth-last-child(2)):after{display:block}@media (min-width: 1024px){.spw-breadcrumb--multiline ::slotted(spw-breadcrumb-item:nth-last-child(2)){display:inline-block !important}}::slotted(.hidden-item){display:none}::slotted(.collapsed-item){font-size:0;position:relative}::slotted(.collapsed-item):before{font-family:var(--spw-ds-font-icons-solid);font-weight:700;content:"\\f141";font-size:16px;color:var(--spw-color-themes-grey-grey-500)}.spw-breadcrumb--surface-light ::slotted(spw-breadcrumb-item):after{opacity:1;color:var(--spw-ds-primary)}@media (min-width: 1024px){.spw-breadcrumb--surface-light ::slotted(spw-breadcrumb-item):after{color:var(--spw-color-themes-grey-grey-600)}}.spw-breadcrumb--surface-dark{color:var(--spw-ds-white) !important}.spw-breadcrumb--surface-dark ::slotted(spw-breadcrumb-item):after{opacity:0.7;color:var(--spw-ds-white)}.spw-breadcrumb--surface-dark ::slotted(.collapsed-item):before{opacity:0.7;color:var(--spw-ds-white)}'}},[257,"spw-breadcrumb",{variant:[1],surface:[1],fontSize:[1,"font-size"],accAriaLabel:[1,"acc-aria-label"]}]),o=r,n=function(){"undefined"!=typeof customElements&&["spw-breadcrumb"].forEach((e=>{"spw-breadcrumb"===e&&(customElements.get(a(e))||customElements.define(a(e),r))}))};export{o as SpwBreadcrumb,n as defineCustomElement}
1
+ import{p as e,H as t,h as i,a as s,t as a}from"./index.js";const n=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.maxItems=5,this.variant="default",this.surface="light",this.fontSize="small"}componentDidLoad(){this.updateBreadcrumbVisibility()}componentDidUpdate(){this.updateBreadcrumbVisibility()}updateBreadcrumbVisibility(){const e=this.host.querySelectorAll("spw-breadcrumb-item"),t=e.length;if(e.forEach((e=>{e.classList.remove("hidden-item","collapsed-item")})),t>this.maxItems){const i=this.maxItems-1;e.forEach(((e,s)=>{s>=i&&s<t-1&&e.classList.add(s===t-2?"collapsed-item":"hidden-item")}))}}render(){return i(s,{key:"a596323b098cc1ced9679bfdc0e7bf6d1b099b91"},i("nav",{key:"2acde0b7352dae535e10dcb213a58f71babcef24","aria-label":this.accAriaLabel,class:{"spw-breadcrumb":!0,["spw-breadcrumb--surface-"+this.surface]:!0,["spw-breadcrumb--font-size-"+this.fontSize]:!0,["spw-breadcrumb--"+this.variant]:!0}},i("div",{key:"a20afd807b7bf47254bba0b1f016e3adf27a035c",role:"list",class:"spw-breadcrumb__list"},i("slot",{key:"ffe6bf868ce252fece46dbc0637e933994d01148"}))))}get host(){return this}static get style(){return'html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main);letter-spacing:-0.18px}body{margin: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;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:-0.25em}sup{top:-0.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}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.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}template{display:none}[hidden]{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{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:block}.spw-breadcrumb{font-size:16px;max-width:100%;width:100%}.spw-breadcrumb--font-size-small{font-size:14px}.spw-breadcrumb__list{display:flex;list-style:none;padding:0;margin:0;width:100%;max-width:100%}@media (min-width: 1024px){.spw-breadcrumb--multiline .spw-breadcrumb__list{display:block}}@media (min-width: 1024px){.spw-breadcrumb--multiline ::slotted(spw-breadcrumb-item:last-child){display:block;margin-top:12px !important}}@media (min-width: 1024px){.spw-breadcrumb--multiline ::slotted(spw-breadcrumb-item:nth-last-child(2)):after{display:none !important}}::slotted(spw-breadcrumb-item){margin-right:10px !important;padding-left:24px !important;position:relative;display:none;white-space:nowrap}::slotted(spw-breadcrumb-item):after{position:absolute;top:50%;transform:translateY(-50%);left:0;font-family:var(--spw-ds-font-icons-solid);font-weight:700;content:"\\f060";font-size:14px}@media (min-width: 1024px){::slotted(spw-breadcrumb-item):after{right:0;left:auto;transform:translateY(-50%);content:"\\f054";font-size:12px}}@media (min-width: 1024px){::slotted(spw-breadcrumb-item){display:inline-block;padding-left:0 !important;padding-right:16px !important}}::slotted(spw-breadcrumb-item:last-child){flex:1;overflow:hidden;display:none;margin-right:0 !important;-webkit-box-orient:vertical;text-overflow:ellipsis;-webkit-line-clamp:1;line-clamp:1;padding-right:0 !important}::slotted(spw-breadcrumb-item:last-child):after{display:none}@media (min-width: 1024px){::slotted(spw-breadcrumb-item:last-child){display:-webkit-box}}.spw-breadcrumb:not(.spw-breadcrumb--multiline):not(.spw-breadcrumb--one-line) ::slotted(spw-breadcrumb-item:nth-last-child(2)){display:-webkit-box !important}.spw-breadcrumb--one-line ::slotted(spw-breadcrumb-item){display:none}@media (min-width: 1024px){.spw-breadcrumb--one-line ::slotted(spw-breadcrumb-item){display:inline-block}}.spw-breadcrumb--one-line ::slotted(spw-breadcrumb-item:last-child){overflow:initial;display:-webkit-box !important}.spw-breadcrumb--one-line ::slotted(spw-breadcrumb-item:last-child):after{display:block}@media (min-width: 1024px){.spw-breadcrumb--one-line ::slotted(spw-breadcrumb-item:last-child):after{display:none}}@media (min-width: 1024px){.spw-breadcrumb--one-line ::slotted(spw-breadcrumb-item:last-child){display:inline-block}}.spw-breadcrumb--multiline ::slotted(spw-breadcrumb-item){display:none}@media (min-width: 1024px){.spw-breadcrumb--multiline ::slotted(spw-breadcrumb-item){display:inline-block}}.spw-breadcrumb--multiline ::slotted(spw-breadcrumb-item:nth-last-child(2)){overflow:initial;display:-webkit-box !important}.spw-breadcrumb--multiline ::slotted(spw-breadcrumb-item:nth-last-child(2)):after{display:block}@media (min-width: 1024px){.spw-breadcrumb--multiline ::slotted(spw-breadcrumb-item:nth-last-child(2)){display:inline-block !important}}::slotted(.hidden-item){display:none}::slotted(.collapsed-item){display:none}@media (min-width: 1024px){::slotted(.collapsed-item){display:inline-block;font-size:0;position:relative}}@media (min-width: 1024px){::slotted(.collapsed-item)::before{font-family:var(--spw-ds-font-icons-solid);font-weight:700;content:"\\f141";font-size:14px;color:var(--spw-color-themes-grey-grey-900)}}.spw-breadcrumb--surface-light ::slotted(spw-breadcrumb-item):after{opacity:1;color:var(--spw-color-themes-grey-grey-900)}.spw-breadcrumb--surface-dark{color:var(--spw-ds-white) !important}.spw-breadcrumb--surface-dark ::slotted(spw-breadcrumb-item):after{opacity:0.7;color:var(--spw-ds-white)}.spw-breadcrumb--surface-dark ::slotted(.collapsed-item):before{opacity:0.7;color:var(--spw-ds-white)}'}},[257,"spw-breadcrumb",{variant:[1],surface:[1],fontSize:[1,"font-size"],accAriaLabel:[1,"acc-aria-label"]}]),o=n,r=function(){"undefined"!=typeof customElements&&["spw-breadcrumb"].forEach((e=>{"spw-breadcrumb"===e&&(customElements.get(a(e))||customElements.define(a(e),n))}))};export{o as SpwBreadcrumb,r as defineCustomElement}
@@ -1 +1 @@
1
- import{S as o,d as s}from"./p-CjvNWegY.js";const p=o,r=s;export{p as SpwButton,r as defineCustomElement}
1
+ import{S as o,d as s}from"./p-DIUtCQyY.js";const t=o,p=s;export{t as SpwButton,p as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as e,h as o,t as n}from"./index.js";import{f as i}from"./p-BBi01mKM.js";const a=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}render(){return o("div",{key:"66ceb610e7cb0b66d4aa8287f75f698840a50819",class:"spw-card-content"},this.tag&&o("span",{key:"51e3aa55120ee1ae99fc37843a8cd1d118418b63",class:"spw-card-content__tag"},this.tag),this.date&&o("time",{key:"e507fba4526c323f520378e711da8418c3c4b929","date-time":this.date,class:"spw-card-content__date"},i(this.date)),o("slot",{key:"104ffaf30fd8c9a3b1d274141971a7c747894fad"}))}get el(){return this}static get style(){return'html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main)}body{margin: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;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:-0.25em}sup{top:-0.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}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.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}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1232px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@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(.--video){min-width:100%;width:100%;margin-top:auto}.spw-card-content{position:relative;display:flex;flex-direction:column;padding:12px 24px 24px 24px;z-index:5}:host(.--vertical) .spw-card-content{padding:24px}:host(.--vertical) .spw-card-content ::slotted(spw-card-subtags){margin-top:12px}:host(.--event) .spw-card-content{padding:24px}:host(.--event) .spw-card-content ::slotted(spw-card-subtags){margin-top:12px}:host(.--no-image.--event) .spw-card-content{padding-left:64px;padding-top:12px}:host(.--sidebar) .spw-card-content{padding:0}:host(.--people) .spw-card-content{padding:24px;flex-direction:row;gap:24px}:host(.--highlighted) .spw-card-content{position:absolute;width:100%;bottom:0;padding:24px;padding-top:64px;overflow:hidden;border-radius:0 0 5px 5px}:host(.--highlighted) .spw-card-content:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1;isolation:isolate;background:linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.58) 50%, rgba(0, 0, 0, 0.87) 100%)}@media (min-width: 1024px){:host(.--highlighted) .spw-card-content{padding:32px;padding-top:64px}}:host(.--vertical) .spw-card-content,:host(.--sidebar) .spw-card-content,:host(.--event) .spw-card-content{justify-content:center;height:100%}:host(.--video) .spw-card-content{justify-content:flex-end;padding-right:80px;border-radius:0 0 5px 5px;background:linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.58) 50%, rgba(0, 0, 0, 0.87) 100%)}:host(.--video) .spw-card-content:after{position:absolute;bottom:24px;right:24px;font-family:var(--spw-ds-font-icons-solid);font-weight:900;content:"\\f144";font-size:36px;color:white}.spw-card-content__tag{position:absolute;top:-25px;left:25px;padding:6px 10px;border-radius:4px 4px 0px 0px;background:var(--spw-ds-white);color:var(--spw-ds-primary);font-size:15px;font-weight:700}:host(.--no-image) .spw-card-content__tag,:host(.--event) .spw-card-content__tag,:host(.--video) .spw-card-content__tag,:host(.--vertical) .spw-card-content__tag{position:relative;top:0;left:0;padding:0;margin-bottom:8px}:host(.--video) .spw-card-content__tag,:host(.--highlighted) .spw-card-content__tag{width:auto;align-self:flex-start;display:inline-block;padding:8px 12px;border-radius:9999px;line-height:1;color:var(--spw-color-themes-grey-grey-900);box-shadow:var(--spw-effect-elevation-3);font-size:14px;background:var(--spw-ds-white)}:host(.--highlighted) .spw-card-content__tag{position:static;margin-bottom:12px}.spw-card-content__date{margin-bottom:7px;font-size:15px;font-weight:300;color:var(--spw-color-themes-grey-grey-600)}:host(.--highlighted) .spw-card-content__date{display:none}.spw-card-content ::slotted(spw-card){--spw-card-background:var(--spw-color-themes-grey-grey-50);--spw-card-box-shadow:none;--spw-card-border:1px solid var(--spw-color-themes-grey-grey-300)}:host(.--rounded-picture) .spw-card-content{padding:16px 0 0 0}:host(.--rounded-picture) .spw-card-content__tag{display:inline-block;width:fit-content;font-size:14px;margin-bottom:12px;position:static;top:auto;left:auto;border:1px solid var(--spw-color-themes-grey-grey-300);padding:4px 12px;border-radius:9999px}'}},[257,"spw-card-content",{tag:[1],date:[1],hasImage:[32]}]),s=a,r=function(){"undefined"!=typeof customElements&&["spw-card-content"].forEach((t=>{"spw-card-content"===t&&(customElements.get(n(t))||customElements.define(n(t),a))}))};export{s as SpwCardContent,r as defineCustomElement}
1
+ import{p as t,H as e,h as o,t as n}from"./index.js";import{f as i}from"./p-BBi01mKM.js";const s=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}render(){return o("div",{key:"2b3a9a4e065774bcd5252bedbbc59972a02a716d",class:"spw-card-content"},this.tag&&o("span",{key:"a60ef25fddee06ea80394b8c630450e924dd150d",class:"spw-card-content__tag"},this.tag),this.date&&o("time",{key:"fe63cd8631b889b23b703e5751d508acd5e10669","date-time":this.date,class:"spw-card-content__date"},i(this.date)),o("slot",{key:"ff65fca4b713ac34d8ed0dd4d7e2337b214a0124"}))}get el(){return this}static get style(){return'html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main);letter-spacing:-0.18px}body{margin: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;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:-0.25em}sup{top:-0.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}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.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}template{display:none}[hidden]{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{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host(.--video){min-width:100%;width:100%;margin-top:auto}.spw-card-content{position:relative;display:flex;flex-direction:column;padding:12px 24px 24px 24px;z-index:5}:host(.--vertical) .spw-card-content{padding:24px}:host(.--vertical) .spw-card-content ::slotted(spw-card-subtags){margin-top:12px}:host(.--event) .spw-card-content{padding:24px}:host(.--event) .spw-card-content ::slotted(spw-card-subtags){margin-top:12px}:host(.--no-image.--event) .spw-card-content{padding-left:104px}:host(.--no-image.--event) .spw-card-content:before{content:"";position:absolute;top:0;left:0;width:80px;height:100%;background:var(--spw-color-themes-grey-grey-300);border-radius:5px 0 0 5px}:host(.--sidebar) .spw-card-content{padding:0}:host(.--people) .spw-card-content{padding:24px;flex-direction:row;gap:24px}:host(.--highlighted) .spw-card-content{position:absolute;width:100%;bottom:0;padding:24px;padding-top:64px;overflow:hidden;border-radius:0 0 5px 5px}:host(.--highlighted) .spw-card-content:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1;isolation:isolate;background:linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.58) 50%, rgba(0, 0, 0, 0.87) 100%)}@media (min-width: 1024px){:host(.--highlighted) .spw-card-content{padding:32px;padding-top:64px}}:host(.--vertical) .spw-card-content,:host(.--sidebar) .spw-card-content,:host(.--event) .spw-card-content{justify-content:center;height:100%}:host(.--video) .spw-card-content{justify-content:flex-end;padding-right:80px;border-radius:0 0 5px 5px;background:linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.58) 50%, rgba(0, 0, 0, 0.87) 100%)}:host(.--video) .spw-card-content:after{position:absolute;bottom:24px;right:24px;font-family:var(--spw-ds-font-icons-solid);font-weight:900;content:"\\f144";font-size:36px;color:white}.spw-card-content__tag{position:absolute;top:-25px;left:25px;padding:6px 10px;border-radius:4px 4px 0px 0px;background:var(--spw-ds-white);color:var(--spw-ds-primary);font-size:15px;font-weight:700}:host(.--no-image) .spw-card-content__tag,:host(.--event) .spw-card-content__tag,:host(.--video) .spw-card-content__tag,:host(.--vertical) .spw-card-content__tag{position:relative;top:0;left:0;padding:0;margin-bottom:8px}:host(.--video) .spw-card-content__tag,:host(.--highlighted) .spw-card-content__tag{width:auto;align-self:flex-start;display:inline-block;padding:8px 12px;border-radius:9999px;line-height:1;color:var(--spw-color-themes-grey-grey-900);box-shadow:var(--spw-effect-elevation-3);font-size:14px;background:var(--spw-ds-white)}:host(.--highlighted) .spw-card-content__tag{position:static;margin-bottom:12px}.spw-card-content__date{margin-bottom:7px;font-size:15px;font-weight:300;color:var(--spw-color-themes-grey-grey-600)}:host(.--highlighted) .spw-card-content__date{display:none}.spw-card-content ::slotted(spw-card){--spw-card-background:var(--spw-color-themes-grey-grey-50);--spw-card-box-shadow:none;--spw-card-border:1px solid var(--spw-color-themes-grey-grey-300)}:host(.--rounded-picture) .spw-card-content{padding:16px 0 0 0}:host(.--rounded-picture) .spw-card-content__tag{display:inline-block;width:fit-content;font-size:14px;margin-bottom:12px;position:static;top:auto;left:auto;border:1px solid var(--spw-color-themes-grey-grey-300);padding:4px 12px;border-radius:9999px}'}},[257,"spw-card-content",{tag:[1],date:[1],hasImage:[32]}]),a=s,r=function(){"undefined"!=typeof customElements&&["spw-card-content"].forEach((t=>{"spw-card-content"===t&&(customElements.get(n(t))||customElements.define(n(t),s))}))};export{a as SpwCardContent,r as defineCustomElement}
@@ -1 +1 @@
1
- import{p as e,H as t,h as i,a as n,t as o}from"./index.js";const a=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.lineClamp=3}get elementClass(){const e="none"!==this.lineClamp;return{"spw-card-excerpt":!0,"spw-card-excerpt--has-clamp":e,["spw-card-excerpt--clamp-"+this.lineClamp]:e}}render(){return i(n,{key:"94f53e8e2d7a9c333ab2320ca3f37d13657fece3"},i("div",{key:"84c391bea45ccec30809e488c8ff12d2e921edbb",class:this.elementClass},i("slot",{key:"d9b85510693fe08e8b9951ab7395dca3ebfaa0d9"})))}static get style(){return'html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main)}body{margin: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;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:-0.25em}sup{top:-0.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}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.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}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1232px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@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(.--people){flex:1}:host(.--people) ::slotted(spw-link){--spw-link-color:#000;--spw-link-hover-color:#000;--spw-link-active-color:#000;--spw-link-font-weight:400}.spw-card-excerpt{color:var(--spw-color-themes-grey-grey-600);font-family:"Nunito Sans";font-size:16px;line-height:1.3;margin-top:12px}.spw-card-excerpt--has-clamp{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;text-overflow:ellipsis}:host(.--people) .spw-card-excerpt{margin-top:0;font-size:16px;color:var(--spw-color-themes-grey-grey-900)}:host(.--highlighted) .spw-card-excerpt{color:white}:host(.--sidebar) .spw-card-excerpt{margin-top:8px}.spw-card-excerpt--clamp-1{-webkit-line-clamp:1;line-clamp:1}.spw-card-excerpt--clamp-2{-webkit-line-clamp:2;line-clamp:2}.spw-card-excerpt--clamp-3{-webkit-line-clamp:3;line-clamp:3}.spw-card-excerpt--clamp-4{-webkit-line-clamp:4;line-clamp:4}.spw-card-excerpt--clamp-5{-webkit-line-clamp:5;line-clamp:5}.spw-card-excerpt--clamp-6{-webkit-line-clamp:6;line-clamp:6}.spw-card-excerpt--clamp-7{-webkit-line-clamp:7;line-clamp:7}.spw-card-excerpt--clamp-8{-webkit-line-clamp:8;line-clamp:8}.spw-card-excerpt--clamp-9{-webkit-line-clamp:9;line-clamp:9}.spw-card-excerpt--clamp-10{-webkit-line-clamp:10;line-clamp:10}'}},[257,"spw-card-excerpt",{lineClamp:[8,"line-clamp"]}]),p=a,s=function(){"undefined"!=typeof customElements&&["spw-card-excerpt"].forEach((e=>{"spw-card-excerpt"===e&&(customElements.get(o(e))||customElements.define(o(e),a))}))};export{p as SpwCardExcerpt,s as defineCustomElement}
1
+ import{p as e,H as t,h as i,a as n,t as o}from"./index.js";const a=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.lineClamp=3}get elementClass(){const e="none"!==this.lineClamp;return{"spw-card-excerpt":!0,"spw-card-excerpt--has-clamp":e,["spw-card-excerpt--clamp-"+this.lineClamp]:e}}render(){return i(n,{key:"382c610ee81d190b085f243921b0265cc43c27d3"},i("div",{key:"98e7cc2cc710a8ce0fd50d9b321a964a2ab2e07d",class:this.elementClass},i("slot",{key:"99a6fc954a3710997f688ff5518cee11318f4a24"})))}static get style(){return'html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main);letter-spacing:-0.18px}body{margin: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;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:-0.25em}sup{top:-0.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}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.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}template{display:none}[hidden]{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{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host(.--people){flex:1}:host(.--people) ::slotted(spw-link){--spw-link-color:#000;--spw-link-hover-color:#000;--spw-link-active-color:#000;--spw-link-font-weight:400}.spw-card-excerpt{color:var(--spw-color-themes-grey-grey-600);font-family:"Nunito Sans";font-size:16px;line-height:1.3;margin-top:12px}.spw-card-excerpt--has-clamp{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;text-overflow:ellipsis}:host(.--people) .spw-card-excerpt{margin-top:0;font-size:16px;color:var(--spw-color-themes-grey-grey-900)}:host(.--highlighted) .spw-card-excerpt{color:white}:host(.--sidebar) .spw-card-excerpt{margin-top:8px}.spw-card-excerpt--clamp-1{-webkit-line-clamp:1;line-clamp:1}.spw-card-excerpt--clamp-2{-webkit-line-clamp:2;line-clamp:2}.spw-card-excerpt--clamp-3{-webkit-line-clamp:3;line-clamp:3}.spw-card-excerpt--clamp-4{-webkit-line-clamp:4;line-clamp:4}.spw-card-excerpt--clamp-5{-webkit-line-clamp:5;line-clamp:5}.spw-card-excerpt--clamp-6{-webkit-line-clamp:6;line-clamp:6}.spw-card-excerpt--clamp-7{-webkit-line-clamp:7;line-clamp:7}.spw-card-excerpt--clamp-8{-webkit-line-clamp:8;line-clamp:8}.spw-card-excerpt--clamp-9{-webkit-line-clamp:9;line-clamp:9}.spw-card-excerpt--clamp-10{-webkit-line-clamp:10;line-clamp:10}'}},[257,"spw-card-excerpt",{lineClamp:[8,"line-clamp"]}]),p=a,s=function(){"undefined"!=typeof customElements&&["spw-card-excerpt"].forEach((e=>{"spw-card-excerpt"===e&&(customElements.get(o(e))||customElements.define(o(e),a))}))};export{p as SpwCardExcerpt,s as defineCustomElement}
@@ -1 +1 @@
1
- import{p as e,H as t,h as i,t as o}from"./index.js";import{d as a}from"./p-D25JsirJ.js";const s=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.hoverIcon="fa-plus"}componentDidLoad(){const e=this.el.closest("spw-card");e&&(e.addEventListener("mouseenter",(()=>this.onCardHover(!0))),e.addEventListener("mouseleave",(()=>this.onCardHover(!1))))}onCardHover(e){const t=this.el.shadowRoot.querySelector(".spw-card-image");t&&(e?t.classList.add("--is-hovered"):t.classList.remove("--is-hovered"))}get hasRatio(){return!!(this.ratio||this.ratioMobile||this.ratioTablet||this.ratioDesktop)}get elementClass(){return{"spw-card-image":!0,"spw-card-image--ratio":this.hasRatio}}render(){const e={};return this.ratio&&(e["--spw-card-image-ratio"]=this.ratio,e["--spw-card-image-ratio-mobile"]=this.ratio,e["--spw-card-image-ratio-tablet"]=this.ratio,e["--spw-card-image-ratio-desktop"]=this.ratio),this.ratioMobile&&(e["--spw-card-image-ratio-mobile"]=this.ratioMobile),this.ratioTablet&&(e["--spw-card-image-ratio-tablet"]=this.ratioTablet),this.ratioDesktop&&(e["--spw-card-image-ratio-desktop"]=this.ratioDesktop),this.imagePosition&&(e["--spw-card-image-object-position"]=this.imagePosition),this.imageFit&&(e["--spw-card-image-object-fit"]=this.imageFit),i("div",{key:"c9ffeacabaf599a9562559ccaa1a5c115e6f159e",class:this.elementClass,style:e},this.label&&i("span",{key:"a3d537c2db0473ba0627d4c2ff49ae23a5b5c610",class:"spw-card-image__label"},this.label),i("slot",{key:"795a34b5ac13c9193fb300296d305bff356d874a"}),i("div",{key:"bc1ac9a4db7a9c6126d8aaf087e21b9b561d2b1f",class:"spw-card-image__icon"},i("spw-icon",{key:"c65bc7dbb9f2b8dc6c13de087b173657566d3209",icon:this.hoverIcon})))}get el(){return this}static get style(){return'html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main)}body{margin: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;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:-0.25em}sup{top:-0.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}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.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}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1232px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@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(.--video):after,:host(.--highlighted):after{content:"";background:black;opacity:0.4;transition:all linear 0.2s;border-radius:5px;position:absolute;top:0;left:0;width:100%;height:100%}:host{width:100%;line-height:1;--spw-card-image-display:block}:host(.--people){width:112px;max-width:112px}.spw-card-image{position:relative;overflow:hidden;border-radius:5px 5px 0 0;display:var(--spw-card-image-display)}:host(.--vertical) .spw-card-image,:host(.--event) .spw-card-image{border-radius:5px 0 0 5px}:host(.--highlighted) .spw-card-image,:host(.--people) .spw-card-image{border-radius:5px}:host(.--video) .spw-card-image,:host(.--sidebar) .spw-card-image{border-radius:5px}.spw-card-image ::slotted(img),.spw-card-image img{width:100%;height:auto;transition:all 0.3s ease;transform-origin:center center}.spw-card-image--ratio{aspect-ratio:var(--spw-card-image-ratio-mobile, var(--spw-card-image-ratio))}@media (min-width: 768px){.spw-card-image--ratio{aspect-ratio:var(--spw-card-image-ratio-tablet, var(--spw-card-image-ratio))}}@media (min-width: 1024px){.spw-card-image--ratio{aspect-ratio:var(--spw-card-image-ratio-desktop, var(--spw-card-image-ratio))}}.spw-card-image--ratio ::slotted(img),.spw-card-image--ratio img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:var(--spw-card-image-object-fit, cover);object-position:var(--spw-card-image-object-position, center)}.spw-card-image__icon:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:black;opacity:0.4}.spw-card-image__icon{position:absolute;z-index:2;display:flex;visibility:hidden;width:100%;height:100%;font-size:30px;font-weight:300;opacity:0;top:0;left:0;color:white;justify-content:center;align-items:center;transition:all 0.3s ease}.spw-card-image__icon spw-icon{transform:scale(1.5);transition:all 0.3s ease}.spw-card-image__label{position:absolute;top:10px;right:10px;display:inline-flex;padding:8px 12px;align-items:center;border-radius:9999px;color:var(--spw-color-themes-grey-grey-900);box-shadow:var(--spw-effect-elevation-3);font-size:14px;background:var(--spw-ds-white);z-index:3;line-height:1}:host(.--hovered:not(.--video)) .spw-card-image .spw-card-image__icon,:host(.--hovered:not(.--video)) .spw-card-image.--is-hovered .spw-card-image__icon{visibility:visible;opacity:1}:host(.--hovered:not(.--video)) .spw-card-image .spw-card-image__icon spw-icon,:host(.--hovered:not(.--video)) .spw-card-image.--is-hovered .spw-card-image__icon spw-icon{transform:scale(1)}:host(.--hovered:not(.--video)) .spw-card-image ::slotted(img),:host(.--hovered:not(.--video)) .spw-card-image.--is-hovered ::slotted(img){transform:scale(1.1)}:host(.--vertical),:host(.--event){width:170px;min-width:170px;position:relative;overflow:hidden}:host(.--vertical) .spw-card-image,:host(.--event) .spw-card-image{height:100%}:host(.--vertical) .spw-card-image ::slotted(img),:host(.--event) .spw-card-image ::slotted(img){position:absolute;top:0;left:0;width:100%;height:100% !important;object-fit:var(--spw-card-image-object-fit, cover);object-position:var(--spw-card-image-object-position, center)}:host(.--sidebar){width:75px;min-width:75px;height:75px;min-height:75px;position:relative;overflow:hidden}:host(.--sidebar) .spw-card-image{height:100%}:host(.--sidebar) .spw-card-image ::slotted(img){position:absolute;top:0;left:0;width:100%;height:100% !important;object-fit:var(--spw-card-image-object-fit, cover);object-position:var(--spw-card-image-object-position, center)}:host(.--highlighted){position:relative}:host(.--highlighted):after{opacity:0}:host(.--video){width:100%;height:100%;position:absolute;overflow:hidden;top:0;left:0}:host(.--video):after{opacity:0}:host(.--video) .spw-card-image{height:100%}:host(.--video) .spw-card-image ::slotted(img){position:absolute;top:0;left:0;width:100%;height:100% !important;object-fit:var(--spw-card-image-object-fit, cover);object-position:var(--spw-card-image-object-position, center)}:host(.--video.--hovered):after{opacity:0.2}:host(.--rounded-picture){width:100%}:host(.--rounded-picture) .spw-card-image{border-radius:8px 8px 120px 8px;border:1px solid var(--spw-color-themes-grey-grey-300);overflow:hidden}:host(.--rounded-picture) .spw-card-image ::slotted(img),:host(.--rounded-picture) .spw-card-image img{width:100%;height:100% !important;object-fit:cover;object-position:center;display:block}'}},[257,"spw-card-image",{label:[1],ratio:[1],ratioMobile:[1,"ratio-mobile"],ratioTablet:[1,"ratio-tablet"],ratioDesktop:[1,"ratio-desktop"],imagePosition:[1,"image-position"],hoverIcon:[1,"hover-icon"],imageFit:[1,"image-fit"]}]),r=s,n=function(){"undefined"!=typeof customElements&&["spw-card-image","spw-icon"].forEach((e=>{switch(e){case"spw-card-image":customElements.get(o(e))||customElements.define(o(e),s);break;case"spw-icon":customElements.get(o(e))||a()}}))};export{r as SpwCardImage,n as defineCustomElement}
1
+ import{p as e,H as t,h as i,t as o}from"./index.js";import{d as a}from"./p-2iE5Jfvp.js";const s=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.hoverIcon="fa-plus"}componentDidLoad(){const e=this.el.closest("spw-card");e&&(e.addEventListener("mouseenter",(()=>this.onCardHover(!0))),e.addEventListener("mouseleave",(()=>this.onCardHover(!1))))}onCardHover(e){const t=this.el.shadowRoot.querySelector(".spw-card-image");t&&(e?t.classList.add("--is-hovered"):t.classList.remove("--is-hovered"))}get hasRatio(){return!!(this.ratio||this.ratioMobile||this.ratioTablet||this.ratioDesktop)}get elementClass(){return{"spw-card-image":!0,"spw-card-image--ratio":this.hasRatio}}render(){const e={};return this.ratio&&(e["--spw-card-image-ratio"]=this.ratio,e["--spw-card-image-ratio-mobile"]=this.ratio,e["--spw-card-image-ratio-tablet"]=this.ratio,e["--spw-card-image-ratio-desktop"]=this.ratio),this.ratioMobile&&(e["--spw-card-image-ratio-mobile"]=this.ratioMobile),this.ratioTablet&&(e["--spw-card-image-ratio-tablet"]=this.ratioTablet),this.ratioDesktop&&(e["--spw-card-image-ratio-desktop"]=this.ratioDesktop),this.imagePosition&&(e["--spw-card-image-object-position"]=this.imagePosition),this.imageFit&&(e["--spw-card-image-object-fit"]=this.imageFit),i("div",{key:"e4cfa022f3319a0afd6d47d088d1ca9bd0de906b",class:this.elementClass,style:e},this.label&&i("span",{key:"4022dba885fba56e9b590be013cd6420912ae918",class:"spw-card-image__label"},this.label),i("slot",{key:"cbf151ddf4db09a88aa2b177d09a87586b1b5f9f"}),i("div",{key:"81ab97574ec5a91605cebee5c6dc77df4e6c3cb2",class:"spw-card-image__icon"},i("spw-icon",{key:"c5e4be497be3fa106e4b6c079ebe2d36c536064e",icon:this.hoverIcon})))}get el(){return this}static get style(){return'html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main);letter-spacing:-0.18px}body{margin: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;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:-0.25em}sup{top:-0.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}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.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}template{display:none}[hidden]{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{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host(.--video):after,:host(.--highlighted):after{content:"";background:black;opacity:0.4;transition:all linear 0.2s;border-radius:5px;position:absolute;top:0;left:0;width:100%;height:100%}:host{width:100%;line-height:1;--spw-card-image-display:block}:host(.--people){width:112px;max-width:112px}.spw-card-image{position:relative;overflow:hidden;border-radius:5px 5px 0 0;display:var(--spw-card-image-display)}:host(.--vertical) .spw-card-image,:host(.--event) .spw-card-image{border-radius:5px 0 0 5px}:host(.--highlighted) .spw-card-image,:host(.--people) .spw-card-image{border-radius:5px}:host(.--video) .spw-card-image,:host(.--sidebar) .spw-card-image{border-radius:5px}.spw-card-image ::slotted(img),.spw-card-image img{width:100%;height:auto;transition:all 0.3s ease;transform-origin:center center}.spw-card-image--ratio{aspect-ratio:var(--spw-card-image-ratio-mobile, var(--spw-card-image-ratio))}@media (min-width: 768px){.spw-card-image--ratio{aspect-ratio:var(--spw-card-image-ratio-tablet, var(--spw-card-image-ratio))}}@media (min-width: 1024px){.spw-card-image--ratio{aspect-ratio:var(--spw-card-image-ratio-desktop, var(--spw-card-image-ratio))}}.spw-card-image--ratio ::slotted(img),.spw-card-image--ratio img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:var(--spw-card-image-object-fit, cover);object-position:var(--spw-card-image-object-position, center)}.spw-card-image__icon:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:black;opacity:0.4}.spw-card-image__icon{position:absolute;z-index:2;display:flex;visibility:hidden;width:100%;height:100%;font-size:30px;font-weight:300;opacity:0;top:0;left:0;color:white;justify-content:center;align-items:center;transition:all 0.3s ease}.spw-card-image__icon spw-icon{transform:scale(1.5);transition:all 0.3s ease}.spw-card-image__label{position:absolute;top:10px;right:10px;display:inline-flex;padding:8px 12px;align-items:center;border-radius:9999px;color:var(--spw-color-themes-grey-grey-900);box-shadow:var(--spw-effect-elevation-3);font-size:14px;background:var(--spw-ds-white);z-index:3;line-height:1}:host(.--hovered:not(.--video):not(.--event)) .spw-card-image .spw-card-image__icon,:host(.--hovered:not(.--video):not(.--event)) .spw-card-image.--is-hovered .spw-card-image__icon{visibility:visible;opacity:1}:host(.--hovered:not(.--video):not(.--event)) .spw-card-image .spw-card-image__icon spw-icon,:host(.--hovered:not(.--video):not(.--event)) .spw-card-image.--is-hovered .spw-card-image__icon spw-icon{transform:scale(1)}:host(.--hovered:not(.--video):not(.--event)) .spw-card-image ::slotted(img),:host(.--hovered:not(.--video):not(.--event)) .spw-card-image.--is-hovered ::slotted(img){transform:scale(1.1)}:host(.--vertical),:host(.--event){width:170px;min-width:170px;position:relative;overflow:hidden}:host(.--vertical) .spw-card-image,:host(.--event) .spw-card-image{height:100%}:host(.--vertical) .spw-card-image ::slotted(img),:host(.--event) .spw-card-image ::slotted(img){position:absolute;top:0;left:0;width:100%;height:100% !important;object-fit:var(--spw-card-image-object-fit, cover);object-position:var(--spw-card-image-object-position, center)}:host(.--vertical){width:170px;min-width:170px}:host(.--event){width:100px;min-width:100px}:host(.--sidebar){width:75px;min-width:75px;height:75px;min-height:75px;position:relative;overflow:hidden}:host(.--sidebar) .spw-card-image{height:100%}:host(.--sidebar) .spw-card-image ::slotted(img){position:absolute;top:0;left:0;width:100%;height:100% !important;object-fit:var(--spw-card-image-object-fit, cover);object-position:var(--spw-card-image-object-position, center)}:host(.--highlighted){position:relative}:host(.--highlighted):after{opacity:0}:host(.--video){width:100%;height:100%;position:absolute;overflow:hidden;top:0;left:0}:host(.--video):after{opacity:0}:host(.--video) .spw-card-image{height:100%}:host(.--video) .spw-card-image ::slotted(img){position:absolute;top:0;left:0;width:100%;height:100% !important;object-fit:var(--spw-card-image-object-fit, cover);object-position:var(--spw-card-image-object-position, center)}:host(.--video.--hovered):after{opacity:0.2}:host(.--rounded-picture){width:100%}:host(.--rounded-picture) .spw-card-image{border-radius:8px 8px 120px 8px;border:1px solid var(--spw-color-themes-grey-grey-300);overflow:hidden}:host(.--rounded-picture) .spw-card-image ::slotted(img),:host(.--rounded-picture) .spw-card-image img{width:100%;height:100% !important;object-fit:cover;object-position:center;display:block}'}},[257,"spw-card-image",{label:[1],ratio:[1],ratioMobile:[1,"ratio-mobile"],ratioTablet:[1,"ratio-tablet"],ratioDesktop:[1,"ratio-desktop"],imagePosition:[1,"image-position"],hoverIcon:[1,"hover-icon"],imageFit:[1,"image-fit"]}]),r=s,n=function(){"undefined"!=typeof customElements&&["spw-card-image","spw-icon"].forEach((e=>{switch(e){case"spw-card-image":customElements.get(o(e))||customElements.define(o(e),s);break;case"spw-icon":customElements.get(o(e))||a()}}))};export{r as SpwCardImage,n as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as e,h as i,a as n,t as o}from"./index.js";const s=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}handleClick(){this.link&&(window.location.href=this.link)}get elementClass(){return{"spw-card-subtag-item":!0,"spw-card-subtag-item--has-link":!!this.link}}render(){return i(n,{key:"b9cc69c396246f2312c714f9a92064051a2a7593"},i("span",{key:"18ceda99d47d27ff2a465fde67d426590445d3d8",class:this.elementClass,onClick:()=>this.handleClick()},i("slot",{key:"332ea40deefbe4b854c4dbeb07eabbf0c964d61b"})))}static get style(){return"html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main)}body{margin: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;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:-0.25em}sup{top:-0.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}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.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}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1232px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@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{display:inline}:host(.--link) .spw-card-subtag-item{font-size:15px;color:var(--spw-ds-primary);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(.--link.--highlighted) .spw-card-subtag-item{color:white}:host(.--tag) .spw-card-subtag-item{display:inline-block;padding:8px 12px;border-radius:9999px;background:var(--spw-color-themes-grey-grey-200);transition:all 0.2s linear;line-height:1;font-size:14px;color:var(--spw-color-themes-grey-grey-900)}:host(.--tag) .spw-card-subtag-item:hover{background:var(--spw-color-themes-grey-grey-300)}"}},[257,"spw-card-subtag-item",{link:[1]}]),a=s,r=function(){"undefined"!=typeof customElements&&["spw-card-subtag-item"].forEach((t=>{"spw-card-subtag-item"===t&&(customElements.get(o(t))||customElements.define(o(t),s))}))};export{a as SpwCardSubtagItem,r as defineCustomElement}
1
+ import{p as t,H as e,h as i,a as n,t as o}from"./index.js";const s=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}handleClick(){this.link&&(window.location.href=this.link)}get elementClass(){return{"spw-card-subtag-item":!0,"spw-card-subtag-item--has-link":!!this.link}}render(){return i(n,{key:"069a3dd57332cbc07497570790dc0c6b43cd3c55"},i("span",{key:"f888db1b02f2a29492c56995c293b2c811f66a51",class:this.elementClass,onClick:()=>this.handleClick()},i("slot",{key:"ecd74f3803b7f5ba4ea3b8678adce16f270bffa3"})))}static get style(){return"html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main);letter-spacing:-0.18px}body{margin: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;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:-0.25em}sup{top:-0.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}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.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}template{display:none}[hidden]{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{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:inline}:host(.--link) .spw-card-subtag-item{font-size:15px;color:var(--spw-ds-primary);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(.--link.--highlighted) .spw-card-subtag-item{color:white}:host(.--tag) .spw-card-subtag-item{display:inline-block;padding:8px 12px;border-radius:9999px;background:var(--spw-color-themes-grey-grey-200);transition:all 0.2s linear;line-height:1;font-size:14px;color:var(--spw-color-themes-grey-grey-900)}:host(.--tag) .spw-card-subtag-item:hover{background:var(--spw-color-themes-grey-grey-300)}"}},[257,"spw-card-subtag-item",{link:[1]}]),a=s,r=function(){"undefined"!=typeof customElements&&["spw-card-subtag-item"].forEach((t=>{"spw-card-subtag-item"===t&&(customElements.get(o(t))||customElements.define(o(t),s))}))};export{a as SpwCardSubtagItem,r as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as e,h as s,a as i,t as n}from"./index.js";const a=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.variant="link"}componentWillLoad(){this.applyVariantToChildren()}applyVariantToChildren(){requestAnimationFrame((()=>{const t="--"+this.variant;this.el.querySelectorAll("spw-card-subtag-item").forEach((e=>{e.classList.add(t),this.el.classList.contains("--highlighted")&&e.classList.add("--highlighted")}))}))}get elementClass(){return{"spw-card-subtags":!0,["spw-card-subtags--"+this.variant]:!0}}render(){return s(i,{key:"932526d39865c60a98dc2c5b3a725d08116a8435"},s("div",{key:"5127d371be9c14528be9afa1badbd1278b1ae40c",class:this.elementClass},s("slot",{key:"06cb3b41922d0f2a4bcc1dee186a01b515581144"})))}get el(){return this}static get style(){return'html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main)}body{margin: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;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:-0.25em}sup{top:-0.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}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.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}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1232px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@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{display:contents}.spw-card-subtags{margin-bottom:8px;color:var(--spw-ds-primary)}.--highlighted .spw-card-subtags{color:white}.spw-card-subtags spw-card-subtag-item:after,.spw-card-subtags .spw-card-subtag-item:after{content:",";margin-right:2px;display:inline}.spw-card-subtags spw-card-subtag-item:last-child:after,.spw-card-subtags .spw-card-subtag-item:last-child:after{display:none}.spw-card-subtags--tag spw-card-subtag-item:after,.spw-card-subtags--tag .spw-card-subtag-item:after{content:"";margin-right:4px}'}},[260,"spw-card-subtags",{variant:[1]}]),o=a,r=function(){"undefined"!=typeof customElements&&["spw-card-subtags"].forEach((t=>{"spw-card-subtags"===t&&(customElements.get(n(t))||customElements.define(n(t),a))}))};export{o as SpwCardSubtags,r as defineCustomElement}
1
+ import{p as t,H as e,h as s,a as i,t as n}from"./index.js";const a=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.variant="link"}componentWillLoad(){this.applyVariantToChildren()}applyVariantToChildren(){requestAnimationFrame((()=>{const t="--"+this.variant;this.el.querySelectorAll("spw-card-subtag-item").forEach((e=>{e.classList.add(t),this.el.classList.contains("--highlighted")&&e.classList.add("--highlighted")}))}))}get elementClass(){return{"spw-card-subtags":!0,["spw-card-subtags--"+this.variant]:!0}}render(){return s(i,{key:"dd1415e28ab658b479fe353b27b1b63394d06b34"},s("div",{key:"46cd99dde752fd3e206c449457e294201568a006",class:this.elementClass},s("slot",{key:"5fa75e7d8a990e434c4306ca88253b88ea237f84"})))}get el(){return this}static get style(){return'html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main);letter-spacing:-0.18px}body{margin: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;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:-0.25em}sup{top:-0.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}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.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}template{display:none}[hidden]{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{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:contents}.spw-card-subtags{margin-bottom:8px;color:var(--spw-ds-primary)}.--highlighted .spw-card-subtags{color:white}.spw-card-subtags spw-card-subtag-item:after,.spw-card-subtags .spw-card-subtag-item:after{content:",";margin-right:2px;display:inline}.spw-card-subtags spw-card-subtag-item:last-child:after,.spw-card-subtags .spw-card-subtag-item:last-child:after{display:none}.spw-card-subtags--tag spw-card-subtag-item:after,.spw-card-subtags--tag .spw-card-subtag-item:after{content:"";margin-right:4px}'}},[260,"spw-card-subtags",{variant:[1]}]),o=a,r=function(){"undefined"!=typeof customElements&&["spw-card-subtags"].forEach((t=>{"spw-card-subtags"===t&&(customElements.get(n(t))||customElements.define(n(t),a))}))};export{o as SpwCardSubtags,r as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as e,h as i,a as o,t as n}from"./index.js";const s=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.borderColor=""}render(){return i(o,{key:"334d6835dd28e414809f7de8b2f6ad82708d88e6",style:{"--spw-card-title-border-color":this.borderColor}},i("h3",{key:"ff00413ca35178fc4cbf60a605fe350e1239e7b7",class:"spw-card-title"},i("span",{key:"629c669018ecb697c63c9d938b46010c8706b6ba",class:"spw-card-title__text"},i("slot",{key:"dac76a2afd228e94dd389122d060304f165743ed"}))))}static get style(){return"html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main)}body{margin: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;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:-0.25em}sup{top:-0.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}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.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}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1232px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@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-card-title{line-height:1.3;font-weight:700;font-size:20px;transition:all 0.3s ease;color:var(--spw-color-themes-grey-grey-900)}:host(.--hovered:not(.--video):not(.--people):not(.--highlighted)) .spw-card-title{color:var(--spw-ds-primary)}:host(.--video) .spw-card-title,:host(.--highlighted) .spw-card-title{color:white}:host(.--highlighted) .spw-card-title{font-size:24px}@media (min-width: 768px){:host(.--highlighted) .spw-card-title{font-size:32px}}:host(.--sidebar) .spw-card-title{font-size:18px;line-height:1.2}:host(.--people) .spw-card-title{padding:0 24px;border-bottom:1px solid var(--spw-color-themes-grey-grey-300)}:host(.--people) .spw-card-title__text{display:inline-block;padding:18px 0;border-bottom:4px solid var(--spw-card-title-border-color, var(--spw-ds-primary))}"}},[257,"spw-card-title",{borderColor:[1,"border-color"]}]),r=s,a=function(){"undefined"!=typeof customElements&&["spw-card-title"].forEach((t=>{"spw-card-title"===t&&(customElements.get(n(t))||customElements.define(n(t),s))}))};export{r as SpwCardTitle,a as defineCustomElement}
1
+ import{p as t,H as e,h as i,a as o,t as n}from"./index.js";const s=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.borderColor=""}render(){return i(o,{key:"6bb60b7bfda451d86156271bfcac19d62867ed08",style:{"--spw-card-title-border-color":this.borderColor}},i("h3",{key:"9f1f616fef2f6a0b519bce3ad420795e8fa4b38f",class:"spw-card-title"},i("span",{key:"df69580022638f2c34a9cbeedbb626e7ecb9fa4f",class:"spw-card-title__text"},i("slot",{key:"57b0a399404c3d8866238bc3d87f17bc3a582522"}))))}static get style(){return"html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main);letter-spacing:-0.18px}body{margin: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;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:-0.25em}sup{top:-0.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}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.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}template{display:none}[hidden]{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{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-card-title{line-height:1.3;font-weight:700;font-size:20px;transition:all 0.3s ease;color:var(--spw-color-themes-grey-grey-900)}:host(.--hovered:not(.--video):not(.--people):not(.--highlighted)) .spw-card-title{color:var(--spw-ds-primary)}:host(.--video) .spw-card-title,:host(.--highlighted) .spw-card-title{color:white}:host(.--highlighted) .spw-card-title{font-size:24px}@media (min-width: 768px){:host(.--highlighted) .spw-card-title{font-size:32px}}:host(.--sidebar) .spw-card-title{font-size:18px;line-height:1.2}:host(.--people) .spw-card-title{padding:0 24px;border-bottom:1px solid var(--spw-color-themes-grey-grey-300)}:host(.--people) .spw-card-title__text{display:inline-block;padding:18px 0;border-bottom:4px solid var(--spw-card-title-border-color, var(--spw-ds-primary))}"}},[257,"spw-card-title",{borderColor:[1,"border-color"]}]),r=s,a=function(){"undefined"!=typeof customElements&&["spw-card-title"].forEach((t=>{"spw-card-title"===t&&(customElements.get(n(t))||customElements.define(n(t),s))}))};export{r as SpwCardTitle,a as defineCustomElement}
@@ -1 +1 @@
1
- import{p as e,H as t,h as i,a as s,t as a}from"./index.js";const n=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.hasImage=!1,this.childHoveredCount=0,this.variant="news",this.elementType="a",this.target="_self",this.fullHeight=!1,this.disabled=!1,this.onNestedCardEnter=()=>{this.childHoveredCount++,this.setImageHovered(!1)},this.onNestedCardLeave=()=>{this.childHoveredCount=Math.max(0,this.childHoveredCount-1),0===this.childHoveredCount&&this.isPointerInside(this.el)&&this.setImageHovered(!0)}}componentWillLoad(){this.checkForImage(),this.applyVariantToChildren(),this.attachNestedCardListeners()}slotChanged(){this.checkForImage(),this.applyVariantToChildren(),this.attachNestedCardListeners()}onMouseEnter(){0===this.childHoveredCount&&this.setImageHovered(!0)}onMouseLeave(){this.setImageHovered(!1)}attachNestedCardListeners(){requestAnimationFrame((()=>{this.el.querySelectorAll("spw-card").forEach((e=>{e.addEventListener("mouseenter",this.onNestedCardEnter.bind(this),!0),e.addEventListener("mouseleave",this.onNestedCardLeave.bind(this),!0)}))}))}isPointerInside(e){const t=e.getBoundingClientRect(),{left:i,top:s,right:a,bottom:n}=t,{clientX:o,clientY:r}=window;return o>=i&&o<=a&&r>=s&&r<=n}checkForImage(){requestAnimationFrame((()=>{const e=this.el.querySelector("spw-card-image"),t=this.el.querySelector("spw-card-content");this.hasImage=!!e,this.hasImage||null==t||t.classList.add("--no-image")}))}formatDate(e){if(!e)return[];const t=e.split("/");return t.flatMap(((e,s)=>s<t.length-1?[i("span",null,e),i("span",null,"/")]:[i("span",null,e)]))}applyVariantToChildren(){requestAnimationFrame((()=>{const e="--"+this.variant,t=this.el.querySelector("spw-card-content"),i=this.el.querySelector("spw-card-image"),s=this.el.querySelector("spw-card-title"),a=this.el.querySelector("spw-card-excerpt"),n=this.el.querySelector("spw-card-subtags");null==t||t.classList.add(e),null==i||i.classList.add(e),null==s||s.classList.add(e),null==a||a.classList.add(e),null==n||n.classList.add(e)}))}setImageHovered(e){const t=this.el.querySelector("spw-card-image"),i=this.el.querySelector("spw-card-title");t&&this.href&&t.classList.toggle("--hovered",e),i&&this.href&&i.classList.toggle("--hovered",e)}get elementClass(){return{"spw-card":!0,"spw-card--hoverable":!!this.href,"spw-card--no-image":!this.hasImage,["spw-card--"+this.variant]:!0}}render(){const{href:e,rel:t,target:a,dateStart:n,dateEnd:o,variant:r}=this,d=void 0===this.href?"div":"a",l="div"===d?{}:{href:e,rel:t,target:a},c={"aria-label":null==this?void 0:this.accAriaLabel,"aria-disabled":this.disabled?"true":null};return i(s,{key:"1ba4f06ba66af1625688a01d08c34fab95499577",class:{"--is-full-height":this.fullHeight}},i("article",{key:"135ae12d051e9ebc078029c99ac52ea49bf540db",class:this.elementClass},"event"===r&&i(d,Object.assign({key:"99c5e749128c5293c44ddeb4c85bf143dbe3c6b1"},l,{class:"spw-card__dates"}),n&&i("div",{key:"fcf0661e3aae2de10ad7b845da453553662b3154",class:"spw-card__date-item"},this.formatDate(n)),o&&i("div",{key:"11cc7956f31154ac081e6e819294fcfe6aafff5d",class:"spw-card__date-item"},this.formatDate(o))),i(d,Object.assign({key:"bc3380c036847c8ac197e731f05f0333a2734634"},l,c,{class:"spw-card__link"}),i("slot",{key:"c4c0f79011ee0ca8a893a080c177f17c51526768"}))))}get el(){return this}static get style(){return'@charset "UTF-8";html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main)}body{margin: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;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:-0.25em}sup{top:-0.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}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.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}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1232px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@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{display:block;position:relative;width:100%;--spw-card-background:var(--spw-ds-white);--spw-card-box-shadow:var(--spw-effect-elevation-6);--spw-card-border:none}:host[data-modal-trigger]{cursor:pointer}:host(.--is-full-height){height:100%}.spw-card{display:block;border-radius:5px;background:var(--spw-card-background);box-shadow:var(--spw-card-box-shadow);border:var(--spw-card-border);transition:all 0.3s ease-in-out}:host(.--is-full-height) .spw-card{height:100%}.spw-card--hoverable:hover{box-shadow:var(--spw-effect-elevation-4);transform:translateY(-5px)}.spw-card__dates{cursor:pointer;position:absolute;top:50%;left:0;transform:translate(-50%, -50%);flex-direction:column;line-height:1.1;width:80px;height:80px;text-align:center;color:white;display:inline-flex;align-items:center;justify-content:center;background:var(--spw-ds-primary);border-radius:50%;font-size:18px;text-decoration:none;z-index:2}.spw-card__date-item span:first-of-type{font-weight:bold}.spw-card__link{display:block;height:100%;width:100%;color:inherit;text-decoration:none}.spw-card--no-image .spw-card__link{padding-top:15px}.spw-card__link:focus-visible{outline:3px solid white;outline-offset:-1px;box-shadow:0 0 0 5px black;border-radius:5px}.spw-card--vertical .spw-card__link,.spw-card--video .spw-card__link{display:flex;min-height:240px}.spw-card--event .spw-card__link{display:flex}.spw-card--sidebar{box-shadow:none}.spw-card--sidebar:hover{box-shadow:none}.spw-card--sidebar .spw-card__link{display:flex;gap:16px}.spw-card--event{position:relative;width:calc(100% - 40px);left:40px}.spw-card--rounded-picture{box-shadow:none;background:transparent}.spw-card--rounded-picture:hover{box-shadow:none}.spw-card--rounded-picture .spw-card__link{display:flex;flex-direction:column}'}},[257,"spw-card",{variant:[1],elementType:[1,"element-type"],href:[1],target:[1],rel:[1],dateStart:[1,"date-start"],dateEnd:[1,"date-end"],fullHeight:[4,"full-height"],disabled:[4],accAriaLabel:[1,"acc-aria-label"],hasImage:[32]},[[0,"slotchange","slotChanged"],[1,"mouseenter","onMouseEnter"],[1,"mouseleave","onMouseLeave"]]]),o=n,r=function(){"undefined"!=typeof customElements&&["spw-card"].forEach((e=>{"spw-card"===e&&(customElements.get(a(e))||customElements.define(a(e),n))}))};export{o as SpwCard,r as defineCustomElement}
1
+ import{p as e,H as t,h as a,a as s,t as i}from"./index.js";const n=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.hasImage=!1,this.childHoveredCount=0,this.variant="news",this.elementType="a",this.target="_self",this.monthLabels=["jan","fév","mar","avr","mai","jun","jul","aoû","sep","oct","nov","déc"],this.fromLabel="du",this.toLabel="au",this.fullHeight=!1,this.disabled=!1,this.onNestedCardEnter=()=>{this.childHoveredCount++,this.setImageHovered(!1)},this.onNestedCardLeave=()=>{this.childHoveredCount=Math.max(0,this.childHoveredCount-1),0===this.childHoveredCount&&this.isPointerInside(this.el)&&this.setImageHovered(!0)}}componentWillLoad(){this.checkForImage(),this.applyVariantToChildren(),this.attachNestedCardListeners()}slotChanged(){this.checkForImage(),this.applyVariantToChildren(),this.attachNestedCardListeners()}onMouseEnter(){0===this.childHoveredCount&&this.setImageHovered(!0)}onMouseLeave(){this.setImageHovered(!1)}attachNestedCardListeners(){requestAnimationFrame((()=>{this.el.querySelectorAll("spw-card").forEach((e=>{e.addEventListener("mouseenter",this.onNestedCardEnter.bind(this),!0),e.addEventListener("mouseleave",this.onNestedCardLeave.bind(this),!0)}))}))}isPointerInside(e){const t=e.getBoundingClientRect(),{left:a,top:s,right:i,bottom:n}=t,{clientX:o,clientY:r}=window;return o>=a&&o<=i&&r>=s&&r<=n}checkForImage(){requestAnimationFrame((()=>{const e=this.el.querySelector("spw-card-image"),t=this.el.querySelector("spw-card-content");this.hasImage=!!e,this.hasImage||null==t||t.classList.add("--no-image")}))}formatDate(e){var t;if(!e)return[];const[s,i]=e.split("/"),n=null!==(t=this.monthLabels[parseInt(i,10)-1])&&void 0!==t?t:i;return[a("span",{class:"spw-card__date-day"},s),a("span",{class:"spw-card__date-month"},n)]}applyVariantToChildren(){requestAnimationFrame((()=>{const e="--"+this.variant,t=this.el.querySelector("spw-card-content"),a=this.el.querySelector("spw-card-image"),s=this.el.querySelector("spw-card-title"),i=this.el.querySelector("spw-card-excerpt"),n=this.el.querySelector("spw-card-subtags");null==t||t.classList.add(e),null==a||a.classList.add(e),null==s||s.classList.add(e),null==i||i.classList.add(e),null==n||n.classList.add(e)}))}setImageHovered(e){const t=this.el.querySelector("spw-card-image"),a=this.el.querySelector("spw-card-title");t&&this.href&&t.classList.toggle("--hovered",e),a&&this.href&&a.classList.toggle("--hovered",e)}get elementClass(){return{"spw-card":!0,"spw-card--hoverable":!!this.href,"spw-card--no-image":!this.hasImage,["spw-card--"+this.variant]:!0,"spw-card--has-2-dates":"event"===this.variant&&!(!this.dateStart||!this.dateEnd)}}render(){const{href:e,rel:t,target:i,dateStart:n,dateEnd:o,variant:r}=this,d=void 0===this.href?"div":"a",c="div"===d?{}:{href:e,rel:t,target:i},p={"aria-label":null==this?void 0:this.accAriaLabel,"aria-disabled":this.disabled?"true":null};return a(s,{key:"e0c3cdd9da2dbe327323418a2ce8886084b42d91",class:{"--is-full-height":this.fullHeight}},a("article",{key:"44b922611365e2ea2a026d064f933deb5365ead6",class:this.elementClass},"event"===r&&a(d,Object.assign({key:"721a1594f257a751ba5148395c72a4757b6e157b"},c,{class:{"spw-card__dates":!0,"spw-card__dates--range":!(!n||!o),"spw-card__dates--single":!(!n||o)}}),n&&a("div",{key:"6348b9aa873b4fb163a610ac9a5ebf834b4b337c",class:"spw-card__date-item"},a("div",{key:"b9622320dcffb6641510f46fe8065b4d8a19b482",class:"spw-card__date-content"},o&&a("span",{key:"ab97a4b2eb85776483fd13370c36d8d6e2037377",class:"spw-card__date-label"},this.fromLabel),this.formatDate(n))),o&&a("div",{key:"d5d886efce8f6b49a1fdf7b73d207e1e4fef10f9",class:"spw-card__date-item"},a("div",{key:"7b10129d916c49fb02abcfb2cc190f092c0dd4b7",class:"spw-card__date-content"},a("span",{key:"569a278970fa7a1cbe4fae4816e96b90ec51a54c",class:"spw-card__date-label"},this.toLabel),this.formatDate(o)))),a(d,Object.assign({key:"910a82e7567ba8c4cdbe76133a8664dade563ce4"},c,p,{class:"spw-card__link"}),a("slot",{key:"9065f8b373dfd6bbc69733a283509ccd0db3d8b9"}))))}get el(){return this}static get style(){return'@charset "UTF-8";html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main);letter-spacing:-0.18px}body{margin: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;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:-0.25em}sup{top:-0.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}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.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}template{display:none}[hidden]{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{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:block;position:relative;width:100%;--spw-card-background:var(--spw-ds-white);--spw-card-box-shadow:var(--spw-effect-elevation-6);--spw-card-border:none}:host[data-modal-trigger]{cursor:pointer}:host(.--is-full-height){height:100%}.spw-card{display:block;border-radius:5px;background:var(--spw-card-background);box-shadow:var(--spw-card-box-shadow);border:var(--spw-card-border);transition:all 0.3s ease-in-out}:host(.--is-full-height) .spw-card{height:100%}.spw-card--hoverable:hover{box-shadow:var(--spw-effect-elevation-4);transform:translateY(-5px)}.spw-card__dates{cursor:pointer;position:absolute;top:50%;left:25px;transform:translate(0, -50%);flex-direction:column;line-height:1.1;width:50px;text-align:center;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;z-index:6}.spw-card__dates--single{top:auto;transform:none;bottom:24px}.spw-card--no-image.spw-card--event .spw-card__dates{left:15px}.spw-card__date-item{text-align:center;margin:4px 0}.spw-card__date-label{display:block;font-size:12px;color:var(--spw-color-themes-grey-grey-600);margin-bottom:4px}.spw-card__date-day{font-size:18px;font-weight:bold;display:block;color:var(--spw-color-themes-grey-grey-900)}.spw-card__date-month{font-size:12px;display:block;color:var(--spw-color-themes-grey-grey-900)}.spw-card__date-content{padding:8px 12px;background:white;border-radius:6px}.spw-card__link{display:block;height:100%;width:100%;color:inherit;text-decoration:none}.spw-card--no-image .spw-card__link{padding-top:15px}.spw-card--no-image.spw-card--event .spw-card__link{padding-top:0}.spw-card__link:focus-visible{outline:3px solid white;outline-offset:-1px;box-shadow:0 0 0 5px black;border-radius:5px}.spw-card--vertical .spw-card__link,.spw-card--video .spw-card__link{display:flex;min-height:240px}.spw-card--has-2-dates .spw-card__link{min-height:180px}.spw-card--event{position:relative}.spw-card--event .spw-card__link{display:flex}.spw-card--sidebar{box-shadow:none}.spw-card--sidebar:hover{box-shadow:none}.spw-card--sidebar .spw-card__link{display:flex;gap:16px}.spw-card--rounded-picture{box-shadow:none;background:transparent}.spw-card--rounded-picture:hover{box-shadow:none}.spw-card--rounded-picture .spw-card__link{display:flex;flex-direction:column}'}},[257,"spw-card",{variant:[1],elementType:[1,"element-type"],href:[1],target:[1],rel:[1],dateStart:[1,"date-start"],dateEnd:[1,"date-end"],monthLabels:[16],fromLabel:[1,"from-label"],toLabel:[1,"to-label"],fullHeight:[4,"full-height"],disabled:[4],accAriaLabel:[1,"acc-aria-label"],hasImage:[32]},[[0,"slotchange","slotChanged"],[1,"mouseenter","onMouseEnter"],[1,"mouseleave","onMouseLeave"]]]),o=n,r=function(){"undefined"!=typeof customElements&&["spw-card"].forEach((e=>{"spw-card"===e&&(customElements.get(i(e))||customElements.define(i(e),n))}))};export{o as SpwCard,r as defineCustomElement}
@@ -1 +1 @@
1
- import{S as o,d as p}from"./p-eaT1pNxG.js";const s=o,a=p;export{s as SpwCheckbox,a as defineCustomElement}
1
+ import{S as o,d as r}from"./p-rbXNWvxL.js";const s=o,p=r;export{s as SpwCheckbox,p as defineCustomElement}
@@ -1 +1 @@
1
- import{p as e,H as t,h as o,t as s}from"./index.js";import{d as i}from"./p-CkAL76gB.js";import{d as n}from"./p-CvLC1GlH.js";import{d as c}from"./p-Zw0kVjLc.js";import{d as a}from"./p-ZYgHSKrO.js";import{d as r}from"./p-CjvNWegY.js";import{d as p}from"./p-eaT1pNxG.js";import{d as l}from"./p-D25JsirJ.js";import{d}from"./p-BY3qZT4B.js";const u=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.cookiesTitle="Nous utilisons des cookies",this.cookiesDescription="Ce site web utilise des cookies essentiels pour assurer son bon fonctionnement et des cookies de suivi pour comprendre comment vous interagissez avec lui. Ces derniers ne seront installés qu'après avoir obtenu votre consentement.",this.acceptAllButtonText="Accepter tous les cookies",this.acceptRequiredButtonText="Accepter uniquement les cookies fonctionnels",this.isVisible=!1,this.analyticsEnabled=!1}componentWillLoad(){this.initializeCookieSettings(),this.checkCookieSettings()}initializeCookieSettings(){null===localStorage.getItem("spw-cookie-settings__required")&&localStorage.setItem("spw-cookie-settings__required","false"),null===localStorage.getItem("spw-cookie-settings__analytics")&&localStorage.setItem("spw-cookie-settings__analytics","false"),null===localStorage.getItem("spw-cookie-settings__saved")&&localStorage.setItem("spw-cookie-settings__saved","false")}checkCookieSettings(){const e=this.getCookieSettings();e["spw-cookie-settings__saved"]||(this.isVisible=!0),this.analyticsEnabled=e["spw-cookie-settings__analytics"]}getCookieSettings(){return{"spw-cookie-settings__required":JSON.parse(localStorage.getItem("spw-cookie-settings__required")),"spw-cookie-settings__analytics":JSON.parse(localStorage.getItem("spw-cookie-settings__analytics")),"spw-cookie-settings__saved":JSON.parse(localStorage.getItem("spw-cookie-settings__saved"))}}setCookieSettings(e){Object.keys(e).forEach((t=>{localStorage.setItem(t,JSON.stringify(e[t]))}))}toggleAnalytics(){this.analyticsEnabled=!this.analyticsEnabled,this.setCookieSettings({"spw-cookie-settings__analytics":this.analyticsEnabled})}acceptAllCookies(){this.setCookieSettings({"spw-cookie-settings__required":!0,"spw-cookie-settings__analytics":!0,"spw-cookie-settings__saved":!0}),this.isVisible=!1}acceptRequiredCookies(){this.setCookieSettings({"spw-cookie-settings__required":!0,"spw-cookie-settings__analytics":!1,"spw-cookie-settings__saved":!0}),this.isVisible=!1}render(){return this.isVisible?o("div",{class:"spw-cookies"},o("div",{class:"spw-cookies__container"},o("div",{class:"spw-cookies__content"},o("h2",{class:"spw-cookies__title"},this.cookiesTitle),o("p",{class:"spw-cookies__text"},this.cookiesDescription),o("spw-accordion",null,o("spw-accordion-item",null,o("spw-accordion-title",{slot:"title"},"Paramétrer les cookies"),o("spw-accordion-content",{slot:"content"},o("div",{class:"spw-cookies__checkbox"},o("spw-checkbox",{checked:this.analyticsEnabled,onSpwChange:()=>this.toggleAnalytics()},o("span",{class:"spw-cookies__checkbox-text"},'Les cookies de statistiques proviennent de sociétés de externes ("cookies tiers") et sont utilisés pour collecter des informations sur les sites web visités par l\'utilisateur.'))))))),o("div",{class:"spw-cookies__buttons"},o("spw-button",{"is-full-width":"true",onClick:()=>this.acceptAllCookies()},this.acceptAllButtonText),o("spw-button",{"is-full-width":"true",variant:"secondary",onClick:()=>this.acceptRequiredCookies()},this.acceptRequiredButtonText)))):null}static get style(){return"html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main)}body{margin: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;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:-0.25em}sup{top:-0.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}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.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}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1232px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@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{display:block}.spw-cookies{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);display:flex;align-items:flex-end;justify-content:end;z-index:9999}.spw-cookies__container{background:white;border-radius:5px;box-shadow:0 2px 10px rgba(0, 0, 0, 0.1);max-width:400px;width:100%;margin:12px;line-height:1.5;max-height:calc(-24px + 100vh);overflow-y:auto}.spw-cookies__content,.spw-cookies__buttons{padding:16px}@media (min-width: 768px){.spw-cookies__content,.spw-cookies__buttons{padding:24px}}.spw-cookies__content{padding-bottom:0}.spw-cookies__buttons{position:sticky;z-index:10;bottom:0;background:#fff;display:flex;flex-direction:column;gap:12px;text-align:center}.spw-cookies__buttons spw-button{--spw-button-py-medium:var(--spw-button-py-large)}.spw-cookies__title{font-size:24px;line-height:1.2;color:var(--spw-colors-support-grey-grey-900);margin-bottom:8px}.spw-cookies__text{color:var(--spw-color-themes-grey-grey-600);margin-bottom:16px}.spw-cookies__checkbox{padding-top:4px}.spw-cookies__checkbox-text{color:var(--spw-color-themes-grey-grey-600)}"}},[1,"spw-cookies",{cookiesTitle:[1,"cookies-title"],cookiesDescription:[1,"cookies-description"],acceptAllButtonText:[1,"accept-all-button-text"],acceptRequiredButtonText:[1,"accept-required-button-text"],isVisible:[32],analyticsEnabled:[32]}]),m=u,w=function(){"undefined"!=typeof customElements&&["spw-cookies","spw-accordion","spw-accordion-content","spw-accordion-item","spw-accordion-title","spw-button","spw-checkbox","spw-icon","spw-loading"].forEach((e=>{switch(e){case"spw-cookies":customElements.get(s(e))||customElements.define(s(e),u);break;case"spw-accordion":customElements.get(s(e))||i();break;case"spw-accordion-content":customElements.get(s(e))||n();break;case"spw-accordion-item":customElements.get(s(e))||c();break;case"spw-accordion-title":customElements.get(s(e))||a();break;case"spw-button":customElements.get(s(e))||r();break;case"spw-checkbox":customElements.get(s(e))||p();break;case"spw-icon":customElements.get(s(e))||l();break;case"spw-loading":customElements.get(s(e))||d()}}))};export{m as SpwCookies,w as defineCustomElement}
1
+ import{p as e,H as t,h as o,t as s}from"./index.js";import{d as i}from"./p-C3B7H2-k.js";import{d as n}from"./p-BdLq2Z-z.js";import{d as c}from"./p-B3x0iMeq.js";import{d as a}from"./p-kkVxHcEB.js";import{d as r}from"./p-DIUtCQyY.js";import{d as p}from"./p-rbXNWvxL.js";import{d as l}from"./p-2iE5Jfvp.js";import{d}from"./p-C9EdSa5U.js";const u=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.cookiesTitle="Nous utilisons des cookies",this.cookiesDescription="Ce site web utilise des cookies essentiels pour assurer son bon fonctionnement et des cookies de suivi pour comprendre comment vous interagissez avec lui. Ces derniers ne seront installés qu'après avoir obtenu votre consentement.",this.acceptAllButtonText="Accepter tous les cookies",this.acceptRequiredButtonText="Accepter uniquement les cookies fonctionnels",this.isVisible=!1,this.analyticsEnabled=!1}componentWillLoad(){this.initializeCookieSettings(),this.checkCookieSettings()}initializeCookieSettings(){null===localStorage.getItem("spw-cookie-settings__required")&&localStorage.setItem("spw-cookie-settings__required","false"),null===localStorage.getItem("spw-cookie-settings__analytics")&&localStorage.setItem("spw-cookie-settings__analytics","false"),null===localStorage.getItem("spw-cookie-settings__saved")&&localStorage.setItem("spw-cookie-settings__saved","false")}checkCookieSettings(){const e=this.getCookieSettings();e["spw-cookie-settings__saved"]||(this.isVisible=!0),this.analyticsEnabled=e["spw-cookie-settings__analytics"]}getCookieSettings(){return{"spw-cookie-settings__required":JSON.parse(localStorage.getItem("spw-cookie-settings__required")),"spw-cookie-settings__analytics":JSON.parse(localStorage.getItem("spw-cookie-settings__analytics")),"spw-cookie-settings__saved":JSON.parse(localStorage.getItem("spw-cookie-settings__saved"))}}setCookieSettings(e){Object.keys(e).forEach((t=>{localStorage.setItem(t,JSON.stringify(e[t]))}))}toggleAnalytics(){this.analyticsEnabled=!this.analyticsEnabled,this.setCookieSettings({"spw-cookie-settings__analytics":this.analyticsEnabled})}acceptAllCookies(){this.setCookieSettings({"spw-cookie-settings__required":!0,"spw-cookie-settings__analytics":!0,"spw-cookie-settings__saved":!0}),this.isVisible=!1}acceptRequiredCookies(){this.setCookieSettings({"spw-cookie-settings__required":!0,"spw-cookie-settings__analytics":!1,"spw-cookie-settings__saved":!0}),this.isVisible=!1}render(){return this.isVisible?o("div",{class:"spw-cookies"},o("div",{class:"spw-cookies__container"},o("div",{class:"spw-cookies__content"},o("h2",{class:"spw-cookies__title"},this.cookiesTitle),o("p",{class:"spw-cookies__text"},this.cookiesDescription),o("spw-accordion",null,o("spw-accordion-item",null,o("spw-accordion-title",{slot:"title"},"Paramétrer les cookies"),o("spw-accordion-content",{slot:"content"},o("div",{class:"spw-cookies__checkbox"},o("spw-checkbox",{checked:this.analyticsEnabled,onSpwChange:()=>this.toggleAnalytics()},o("span",{class:"spw-cookies__checkbox-text"},'Les cookies de statistiques proviennent de sociétés de externes ("cookies tiers") et sont utilisés pour collecter des informations sur les sites web visités par l\'utilisateur.'))))))),o("div",{class:"spw-cookies__buttons"},o("spw-button",{"is-full-width":"true",onClick:()=>this.acceptAllCookies()},this.acceptAllButtonText),o("spw-button",{"is-full-width":"true",variant:"secondary",onClick:()=>this.acceptRequiredCookies()},this.acceptRequiredButtonText)))):null}static get style(){return"html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main);letter-spacing:-0.18px}body{margin: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;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:-0.25em}sup{top:-0.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}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.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}template{display:none}[hidden]{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{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:block}.spw-cookies{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);display:flex;align-items:flex-end;justify-content:end;z-index:9999}.spw-cookies__container{background:white;border-radius:5px;box-shadow:0 2px 10px rgba(0, 0, 0, 0.1);max-width:400px;width:100%;margin:12px;line-height:1.5;max-height:calc(-24px + 100vh);overflow-y:auto}.spw-cookies__content,.spw-cookies__buttons{padding:16px}@media (min-width: 768px){.spw-cookies__content,.spw-cookies__buttons{padding:24px}}.spw-cookies__content{padding-bottom:0}.spw-cookies__buttons{position:sticky;z-index:10;bottom:0;background:#fff;display:flex;flex-direction:column;gap:12px;text-align:center}.spw-cookies__buttons spw-button{--spw-button-py-medium:var(--spw-button-py-large)}.spw-cookies__title{font-size:24px;line-height:1.2;color:var(--spw-colors-support-grey-grey-900);margin-bottom:8px}.spw-cookies__text{color:var(--spw-color-themes-grey-grey-600);margin-bottom:16px}.spw-cookies__checkbox{padding-top:4px}.spw-cookies__checkbox-text{color:var(--spw-color-themes-grey-grey-600)}"}},[1,"spw-cookies",{cookiesTitle:[1,"cookies-title"],cookiesDescription:[1,"cookies-description"],acceptAllButtonText:[1,"accept-all-button-text"],acceptRequiredButtonText:[1,"accept-required-button-text"],isVisible:[32],analyticsEnabled:[32]}]),m=u,w=function(){"undefined"!=typeof customElements&&["spw-cookies","spw-accordion","spw-accordion-content","spw-accordion-item","spw-accordion-title","spw-button","spw-checkbox","spw-icon","spw-loading"].forEach((e=>{switch(e){case"spw-cookies":customElements.get(s(e))||customElements.define(s(e),u);break;case"spw-accordion":customElements.get(s(e))||i();break;case"spw-accordion-content":customElements.get(s(e))||n();break;case"spw-accordion-item":customElements.get(s(e))||c();break;case"spw-accordion-title":customElements.get(s(e))||a();break;case"spw-button":customElements.get(s(e))||r();break;case"spw-checkbox":customElements.get(s(e))||p();break;case"spw-icon":customElements.get(s(e))||l();break;case"spw-loading":customElements.get(s(e))||d()}}))};export{m as SpwCookies,w as defineCustomElement}
@@ -1 +1 @@
1
- import{p as s,H as t,c as e,h as i,t as o}from"./index.js";import{d as c}from"./p-eaT1pNxG.js";import{d as r}from"./p-DYJNpZeH.js";import{d as n}from"./p-UzhhGIpr.js";import{d as l}from"./p-D25JsirJ.js";import{d as a}from"./p-BPhSJ6Z9.js";const p=s(class extends t{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow(),this.valueChanged=e(this,"valueChanged",7),this.optionCreated=e(this,"optionCreated",7),this.optionRemoved=e(this,"optionRemoved",7),this.internals=this.attachInternals(),this.parentScrollContainer=null,this.isOpen=!1,this.parsedOptions=[],this.focusedOptionIndex=null,this.searchText="",this.hasSlottedFooter=!1,this.dropdownDirection="down",this.hasSelectedValue=!1,this.dropdownPosition={top:0,left:0,width:0},this.value=[],this.label="",this.placeholder="Sélectionnez une option",this.searchPlaceholder="Entrez votre recherche",this.noResultsText="Aucun résultat trouvé",this.required=!1,this.size="medium",this.multiple=!1,this.isSearch=!1,this.error="",this.hint="",this.success="",this.warning="",this.showErrorIcon=!0,this.showHintIcon=!0,this.showSuccessIcon=!0,this.showWarningIcon=!0,this.tooltipDirection="top",this.tooltipCursor="help",this.fixedDropdown=!1,this.isClear=!1,this.direction="auto",this.allowCreate=!1,this.handleOtherSelectOpened=s=>{s.detail.instance!==this.host&&this.isOpen&&this.closeDropdown()},this.handleClickOutside=s=>{var t,e;if(this.isOpen){const i=s.composedPath(),o=i[0],c=this.host.contains(o),r=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".spw-custom-select__search-input"),n=null==r?void 0:r.contains(o),l=this.hostElement.querySelector('[slot="footer"]'),a=!!l&&i.includes(l);if(!c&&!n&&!a){if(this.multiple){const s=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector(".spw-custom-select__options");if(s&&s.contains(o))return}this.closeDropdown()}}},this.updateDropdownPosition=()=>{if(!this.selectContainer)return;const s=this.selectContainer.getBoundingClientRect(),t=window.innerHeight;this.dropdownDirection="top"===this.direction?"up":"bottom"===this.direction?"down":s.bottom+200>t&&s.top>200?"up":"down",this.dropdownPosition={top:s.bottom,left:s.left,width:s.width}}}componentWillLoad(){if(this.multiple)if("string"==typeof this.value)try{this.internalValue=JSON.parse(this.value)}catch(s){this.internalValue=[]}else this.internalValue=Array.isArray(this.value)?this.value:[];else this.internalValue=this.value;this.defaultValue=this.internalValue,this.items&&this.parseOptions(this.items),this.updateSelectedOption()}async setFocus(){var s,t;const e=null===(s=this.host)||void 0===s?void 0:s.querySelector(".spw-custom-select__search-input");e?e.focus():null===(t=this.selectContainer)||void 0===t||t.focus()}async resetSelect(){this.multiple?(this.internalValue=[],this.value=[]):(this.internalValue="",this.value=""),this.searchText="",this.focusedOptionIndex=null,this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue),this.updateSelectedOption()}async setValue(s){this.multiple?(this.internalValue=Array.isArray(s)?s:[s],this.value=this.internalValue):(this.internalValue=s,this.value=s),this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue),this.updateSelectedOption()}async getValue(){return this.internalValue}formResetCallback(){this.setValue(this.defaultValue)}componentDidLoad(){this.internals.setFormValue(this.getFormValue());const s=this.hostElement.querySelector('[slot="footer"]');this.hasSlottedFooter=!!s}connectedCallback(){document.addEventListener("click",this.handleClickOutside,!0),document.addEventListener("spw-custom-select-opened",this.handleOtherSelectOpened),window.addEventListener("scroll",this.updateDropdownPosition,!0),window.addEventListener("resize",this.updateDropdownPosition)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside,!0),document.removeEventListener("spw-custom-select-opened",this.handleOtherSelectOpened),window.removeEventListener("scroll",this.updateDropdownPosition,!0),window.removeEventListener("resize",this.updateDropdownPosition),this.cleanupParentScrollListener(),this.isOpen=!1}findParentComponent(){if(!this.fixedDropdownParent)return null;let s=this.hostElement;for(;s;){if(s instanceof t&&s.tagName.toLowerCase()===this.fixedDropdownParent.toLowerCase())return s;if(s.parentElement)s=s.parentElement;else{const t=s.getRootNode();if(!(t instanceof ShadowRoot))break;s=t.host}}return null}findScrollContainerInShadowRoot(s){const t=s.shadowRoot;if(!t)return null;const e=t.querySelectorAll("*");let i=null,o=-1;for(const s of Array.from(e)){const e=s,c=window.getComputedStyle(e);if("auto"===c.overflow||"scroll"===c.overflow||"auto"===c.overflowY||"scroll"===c.overflowY){let c=0,r=s;for(;r&&r!==t;)c++,r=r.parentNode;c>o&&(o=c,i=e)}}return i}ensureParentScrollListener(){if(!this.fixedDropdownParent||!this.fixedDropdown)return;if(this.parentScrollContainer)return;const s=this.findParentComponent();s&&(this.parentScrollContainer=this.findScrollContainerInShadowRoot(s),this.parentScrollContainer&&this.parentScrollContainer.addEventListener("scroll",this.updateDropdownPosition))}cleanupParentScrollListener(){this.parentScrollContainer&&(this.parentScrollContainer.removeEventListener("scroll",this.updateDropdownPosition),this.parentScrollContainer=null)}parseOptions(s){try{this.parsedOptions=Array.isArray(s)?s.map((s=>({value:s.value,label:s.label,disabled:s.disabled||!1}))):[],this.updateSelectedOption()}catch(s){this.parsedOptions=[]}}valueChangedHandler(s){this.internalValue=this.multiple?Array.isArray(s)?s:[s]:s,this.updateSelectedOption(),this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue)}updateSelectedOption(){this.internals.setFormValue(this.getFormValue()),this.multiple||void 0===this.internalValue?this.multiple&&Array.isArray(this.internalValue)&&(this.internalValue=this.internalValue.filter((s=>this.parsedOptions.some((t=>t.value+""==s+"")))).sort(((s,t)=>this.parsedOptions.findIndex((t=>t.value+""==s+""))-this.parsedOptions.findIndex((s=>s.value+""==t+""))))):this.focusedOptionIndex=this.parsedOptions.findIndex((s=>s.value+""==this.internalValue+""))}internalValueChanged(){this.hasSelectedValue=Array.isArray(this.internalValue)?this.internalValue.length>0:!!this.internalValue}getFormValue(){return this.multiple?Array.isArray(this.internalValue)&&this.internalValue.length>0?this.internalValue.map((s=>s+"")).join(","):null:this.internalValue?this.internalValue+"":null}toggleDropdown(s){if(!this.disabled){if(s){if(s.composedPath()[0].classList.contains("spw-custom-select__search-input"))return;s.stopPropagation()}this.determineDropdownDirection();const t=this.isOpen;this.isOpen=!this.isOpen,this.isOpen&&!t&&(this.ensureParentScrollListener(),this.notifyOtherSelects()),this.isOpen||(this.focusedOptionIndex=null)}}notifyOtherSelects(){const s=new CustomEvent("spw-custom-select-opened",{detail:{instance:this.host},bubbles:!0,composed:!0});document.dispatchEvent(s)}determineDropdownDirection(){this.updateDropdownPosition()}openDropdownWithKeyboard(){this.determineDropdownDirection(),this.isOpen=!0,this.focusedOptionIndex=0,this.ensureParentScrollListener(),this.notifyOtherSelects()}closeDropdown(){this.isOpen=!1,this.focusedOptionIndex=null,this.searchText=""}addCreatedOption(s){const t=s.trim();if(!t)return;const e=t,i={label:t,value:e,created:!0};this.parsedOptions=[...this.parsedOptions,i],this.optionCreated.emit(i),this.selectOption(e),this.searchText=""}removeCreatedOption(s,t){if(t.stopPropagation(),this.multiple){const t=this.internalValue.findIndex((t=>t+""==s.value+""));t>-1&&(this.internalValue=[...this.internalValue.slice(0,t),...this.internalValue.slice(t+1)],this.value=this.internalValue,this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue))}else this.internalValue+""==s.value+""&&(this.internalValue="",this.value="",this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue));this.parsedOptions=this.parsedOptions.filter((t=>t.value+""!=s.value+"")),this.optionRemoved.emit(s)}handleClear(s){s.stopPropagation(),this.resetSelect()}selectOption(s,t){t&&t.stopPropagation();const e=this.parsedOptions.find((t=>t.value+""==s+""));if(!(null==e?void 0:e.disabled)){if(this.multiple){const t=this.internalValue.findIndex((t=>t+""==s+""));this.internalValue=t>-1?[...this.internalValue.slice(0,t),...this.internalValue.slice(t+1)]:[...this.internalValue,s],this.internalValue=this.internalValue.sort(((s,t)=>this.parsedOptions.findIndex((t=>t.value+""==s+""))-this.parsedOptions.findIndex((s=>s.value+""==t+""))))}else this.internalValue=s,this.closeDropdown();this.value=this.internalValue,this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue),this.updateSelectedOption()}}handleOptionKeyDown(s,t){"Enter"!==s.key&&" "!==s.key||(s.preventDefault(),this.selectOption(t))}handleKeyDown(s){var t,e;if(!s.target.classList.contains("spw-custom-select__search-input"))switch(s.key){case" ":s.preventDefault(),this.isOpen||this.openDropdownWithKeyboard();break;case"ArrowDown":if(s.preventDefault(),this.isOpen){let s=null===this.focusedOptionIndex?0:(this.focusedOptionIndex+1)%this.parsedOptions.length;for(;(null===(t=this.parsedOptions[s])||void 0===t?void 0:t.disabled)&&s!==this.focusedOptionIndex;)s=(s+1)%this.parsedOptions.length;this.focusedOptionIndex=s}else this.openDropdownWithKeyboard();break;case"ArrowUp":if(s.preventDefault(),this.isOpen){let s=null===this.focusedOptionIndex?this.parsedOptions.length-1:(this.focusedOptionIndex-1+this.parsedOptions.length)%this.parsedOptions.length;for(;(null===(e=this.parsedOptions[s])||void 0===e?void 0:e.disabled)&&s!==this.focusedOptionIndex;)s=(s-1+this.parsedOptions.length)%this.parsedOptions.length;this.focusedOptionIndex=s}break;case"Enter":s.preventDefault(),this.isOpen&&null!==this.focusedOptionIndex&&this.selectOption(this.parsedOptions[this.focusedOptionIndex].value);break;case"Escape":this.isOpen&&this.closeDropdown()}}renderErrorMessage(){if(this.error)return i("spw-field-message",{variant:"error",showIcon:this.showErrorIcon},this.error)}renderHintMessage(){if(this.hint)return i("spw-field-message",{variant:"hint",showIcon:this.showHintIcon},this.hint)}renderWarningMessage(){if(this.warning)return i("spw-field-message",{variant:"warning",showIcon:this.showWarningIcon},this.warning)}renderSuccessMessage(){if(this.success)return i("spw-field-message",{variant:"success",showIcon:this.showSuccessIcon},this.success)}get elementClass(){const s=this.showCreateButton();return{"spw-custom-select":!0,["spw-custom-select--"+this.size]:!0,["spw-custom-select--"+this.dropdownDirection]:!0,"spw-custom-select--is-error":!!this.error,"spw-custom-select--disabled":this.disabled,"spw-custom-select--is-opened":this.isOpen,"spw-custom-select--has-value":this.hasSelectedValue,"spw-custom-select--no-value":!this.hasSelectedValue,"spw-custom-select--is-searchable":this.isSearch,"spw-custom-select--not-searchable":!this.isSearch,"spw-custom-select--is-clear":this.isClear&&(this.hasSelectedValue||!!this.searchText),"spw-custom-select--show-create":s}}normalizeString(s){return s.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}getSelectedLabels(){if(this.multiple)return Array.isArray(this.internalValue)&&this.internalValue.length>0?this.internalValue.map((s=>{var t;return null===(t=this.parsedOptions.find((t=>t.value+""==s+"")))||void 0===t?void 0:t.label})).filter(Boolean).join(", "):null;{const s=this.parsedOptions.find((s=>s.value+""==this.internalValue+""));return s?s.label:null}}getFilteredOptions(){const s=this.normalizeString(this.searchText);return this.parsedOptions.filter((t=>this.normalizeString(t.label).includes(s)))}handleSearchInput(s){this.searchText=s.target.value,this.focusedOptionIndex=0,this.isOpen||(this.isOpen=!0,this.ensureParentScrollListener(),this.notifyOtherSelects())}isSearchVisible(){return!!this.isSearch&&(!this.hasSelectedValue&&!this.isOpen||!(!this.isSearch||!this.isOpen)||this.isOpen)}showPlaceholder(){return!this.isSearch&&!this.hasSelectedValue}showCreateButton(){if(!this.allowCreate||!this.isSearch||!this.searchText.trim())return!1;const s=this.normalizeString(this.searchText.trim());return!this.parsedOptions.some((t=>this.normalizeString(t.label)===s))}render(){const s=this.getFilteredOptions(),t=this.showPlaceholder(),e=this.showCreateButton();return i("div",{key:"889b30c9db5212a26bff8c0397367cbcbd4ecc22",class:this.elementClass,ref:s=>this.host=s},this.label&&i("spw-field-label",{key:"291861e63f7bf923b11e403e5687d263473c26e3",label:this.label,name:this.name,required:this.required,tooltipTitle:this.tooltipTitle,tooltipText:this.tooltipText,tooltipMaxWidth:this.tooltipMaxWidth,tooltipDirection:this.tooltipDirection,tooltipCursor:this.tooltipCursor}),this.assistiveText&&i("spw-field-message",{key:"74629ba1c29ed7cd0008dcf43da37148f60d9252",class:"spw-custom-select__field-message",variant:"hint",showIcon:!1},this.assistiveText),i("div",{key:"f55c1c7e9eb783270c44bc62ef3c377ff4ba7e07",class:"spw-custom-select__wrapper"},i("div",{key:"12a95215cb5e4a8fb2c80543ec6f74c99cc618af",class:"spw-custom-select__container",id:this.name,ref:s=>this.selectContainer=s,onClick:s=>this.toggleDropdown(s),onKeyDown:s=>this.handleKeyDown(s),tabindex:this.disabled?-1:0},i("div",{key:"89ce6a3800eba2154cba3006471d47c2b252f46a",class:"spw-custom-select__selected"},this.isSearchVisible()&&i("div",{key:"9b510469932bf3839c36af933893ab6bf73294cd",class:"spw-custom-select__search"},i("input",{key:"030fb1ebdeeb66a2d9f54066742b39aaffba0cca",class:"spw-custom-select__search-input",placeholder:this.searchPlaceholder,onInput:s=>this.handleSearchInput(s),value:this.searchText}),e&&this.isOpen&&this.hasSelectedValue&&i("button",{key:"b8ccca1e5d7e9a9f00b6c8acf7591397bf986493",class:"spw-custom-select__create-btn spw-custom-select__create-btn--big",type:"button",onMouseDown:s=>{s.preventDefault(),s.stopPropagation(),this.addCreatedOption(this.searchText)}},i("spw-icon",{key:"e673746e38ab65e1a5f087a3ac954b138310fff1",icon:"fa-plus"}))),t&&i("span",{key:"92e60a4c8c62dc1a3e83964d912e0719c0650844"},this.placeholder),this.multiple&&this.internalValue.length>0&&i("div",{key:"bbefa52f46c725c5d0980bcb62146ba57f0244ae",class:"spw-custom-select__selected-items"},this.internalValue.map((s=>{var t;return i("span",{class:"spw-custom-select__selected-item"},null===(t=this.parsedOptions.find((t=>t.value+""==s+"")))||void 0===t?void 0:t.label,i("spw-icon",{icon:"fa-times",class:"spw-custom-select__deselect-icon",onClick:t=>this.selectOption(s,t)}))}))),!this.multiple&&i("span",{key:"2ed86a218e588621de5b5c760591279e6c6b6548"},this.getSelectedLabels()))),i("div",{key:"b8867f08b591a97b13bf3d8dcc7dc7f338b958ee",class:"spw-custom-select__icons"},e&&!(this.isOpen&&this.hasSelectedValue)&&i("button",{key:"fb411d34c7cee66519409f67a4a3457ec1d8583e",class:"spw-custom-select__create-btn",type:"button",onMouseDown:s=>{s.preventDefault(),s.stopPropagation(),this.addCreatedOption(this.searchText)}},i("spw-icon",{key:"39089d0968d5a71ae971f14d38528aba9e56d6d9",icon:"fa-plus"})),this.isClear&&(this.hasSelectedValue||!!this.searchText)&&i("span",{key:"dfb1382a851ad2ffcce146ca851f19b20439e86d",class:"spw-custom-select__clear",onClick:s=>this.handleClear(s)},i("spw-icon",{key:"5fff7bfaa8ba404111953a88f2d1ac414cae974d",icon:"fa-xmark"})),i("div",{key:"feff32c6321d92ee3b1220402d7fe06840749a99",class:"spw-custom-select__arrow"},i("spw-icon",{key:"f645bc641b5fb9be5f891530b85fba06c40cd90b",icon:this.isOpen?"fa-chevron-up":"fa-chevron-down"}))),this.isOpen&&i("div",{key:"f14b016f2211a7361d5fa3d9601fa9aff340ec75",class:{"spw-custom-select__options":!0,["spw-custom-select__options--"+this.dropdownDirection]:!0,"spw-custom-select__options--fixed":this.fixedDropdown},style:this.fixedDropdown?{position:"fixed",top:this.dropdownPosition.top+"px",left:this.dropdownPosition.left+"px",width:this.dropdownPosition.width+"px"}:{}},i("div",{key:"2fc25d6abe2b4f38674a2a2d359a9f8eb648900e",class:"spw-custom-select__options-list"},!!s.length&&i("ul",{key:"a8de21701bcb5b435e55e809231a97dc9fe5c7b6"},s.map(((s,t)=>i("li",{class:{"spw-custom-select__option":!0,"spw-custom-select__option--selected":this.multiple?this.internalValue.some((t=>t+""==s.value+"")):s.value===this.internalValue,"spw-custom-select__option--focused":t===this.focusedOptionIndex,"spw-custom-select__option--disabled":s.disabled,"spw-custom-select__option--created":!!s.created},onClick:()=>this.selectOption(s.value)},this.multiple&&i("spw-checkbox",{onKeyDown:t=>this.handleOptionKeyDown(t,s.value),class:"spw-custom-select__checkbox",checked:this.internalValue.some((t=>t+""==s.value+"")),disabled:s.disabled}),s.label,s.created&&i("spw-icon",{class:"spw-custom-select__option-remove",icon:"fa-trash",onClick:t=>this.removeCreatedOption(s,t)}))))),!s.length&&i("p",{key:"7c6835989fb07aba19e5b1f723ab9a18f47aa258",class:"spw-custom-select__no-results"},this.noResultsText)),this.hasSlottedFooter&&i("div",{key:"4390581f828c6e39715a27306203d78664d165d3",class:"spw-custom-select__options-footer"},i("slot",{key:"64855f45ae683a31c02ef04cc9432eb031b83d37",name:"footer"})))),this.renderErrorMessage(),this.renderHintMessage(),this.renderSuccessMessage(),this.renderWarningMessage())}static get formAssociated(){return!0}get hostElement(){return this}static get watchers(){return{items:[{parseOptions:0}],value:[{valueChangedHandler:0}],internalValue:[{internalValueChanged:0}]}}static get style(){return"html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main)}body{margin: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;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:-0.25em}sup{top:-0.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}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.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}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1232px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@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{display:block}.spw-custom-select{position:relative}.spw-custom-select__field-message{margin-bottom:8px;margin-top:-4px}.spw-custom-select__checkbox{margin-right:8px}.spw-custom-select__container{display:flex;justify-content:space-between;align-items:center;width:100%;height:40px;padding:0 12px;line-height:40px;border-radius:4px;border:1px solid var(--spw-color-themes-grey-grey-800);background-color:#fff}.spw-custom-select__container:hover{outline:4px solid var(--spw-color-themes-grey-grey-300)}.spw-custom-select__container:focus-within,.spw-custom-select__container:focus-visible{outline:3px solid white;outline-offset:0;box-shadow:0 0 0 6px black}.spw-custom-select--disabled .spw-custom-select__container{border-color:var(--spw-color-themes-grey-grey-400);background:var(--spw-color-themes-grey-grey-100);color:var(--spw-color-themes-grey-grey-500);cursor:not-allowed}.spw-custom-select--disabled .spw-custom-select__container::placeholder{color:var(--spw-color-themes-grey-grey-500)}.spw-custom-select--disabled .spw-custom-select__container:hover,.spw-custom-select--disabled .spw-custom-select__container:focus,.spw-custom-select--disabled .spw-custom-select__container:focus-visible{outline:none}.spw-custom-select--is-error .spw-custom-select__container{border-color:var(--spw-colors-states-error-error-300)}.spw-custom-select--large .spw-custom-select__container{height:60px;padding:0 24px;line-height:60px}.spw-custom-select--is-opened .spw-custom-select__container{height:auto;line-height:1;min-height:40px}.spw-custom-select--is-opened.spw-custom-select--down .spw-custom-select__container{border-radius:4px 4px 0 0;border-bottom-color:transparent}.spw-custom-select--is-opened.spw-custom-select--up .spw-custom-select__container{border-radius:0 0 4px 4px;border-top-color:transparent}.spw-custom-select__selected{flex:1;padding-right:30px;max-width:100%;overflow:hidden;text-overflow:ellipsis}.spw-custom-select__selected span{white-space:nowrap}.spw-custom-select--is-clear .spw-custom-select__selected{padding-right:58px}.spw-custom-select__selected-item{display:inline-flex;align-items:center;gap:6px;color:var(--spw-color-themes-grey-grey-900);border:1px solid var(--spw-color-themes-grey-grey-900);background:var(--spw-color-themes-grey-grey-200);line-height:24px;height:24px;padding:0 8px;margin:4px 6px 2px 0;border-radius:999px;font-size:14px;user-select:none}.spw-custom-select__selected-items{flex:1;overflow:hidden;text-overflow:ellipsis;text-wrap:nowrap}.spw-custom-select--is-opened .spw-custom-select__selected-items{padding-top:3px;padding-bottom:4px;overflow:visible;text-overflow:initial;text-wrap:initial}.spw-custom-select__icons{display:flex;align-items:center;position:absolute;top:50%;right:12px;gap:8px;pointer-events:none;transform:translateY(-50%);z-index:12}.spw-custom-select--large .spw-custom-select__icons{right:24px}.spw-custom-select__clear{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;pointer-events:auto;cursor:pointer;padding:2px;font-size:16px;transition:all 0.2s ease-in}.spw-custom-select__clear:hover{color:var(--spw-ds-primary)}.spw-custom-select__arrow{font-size:16px;color:var(--spw-color-themes-grey-grey-900);pointer-events:none}.spw-custom-select__wrapper{position:relative}.spw-custom-select--is-opened .spw-custom-select__search{position:absolute;top:0;left:0;z-index:11;width:100%;margin-top:1px;display:flex;align-items:center}.spw-custom-select--has-value.spw-custom-select--is-opened .spw-custom-select__search{top:100%;margin-top:-3px;padding:4px;border:1px solid var(--spw-color-themes-grey-grey-800);background:white}.spw-custom-select--up.spw-custom-select--has-value.spw-custom-select--is-opened .spw-custom-select__search{top:-100%;margin-top:-7px}.spw-custom-select__search-input{padding:0;height:38px;line-height:40px;border:none;margin:0;width:calc(100% - 30px);background:transparent;text-overflow:ellipsis}.spw-custom-select--is-clear .spw-custom-select__search-input{width:calc(100% - 58px)}.spw-custom-select--show-create .spw-custom-select__search-input{width:calc(100% - 66px)}.spw-custom-select--is-clear.spw-custom-select--show-create .spw-custom-select__search-input{width:calc(100% - 94px)}.spw-custom-select__search-input:focus{outline:none}.spw-custom-select--is-opened .spw-custom-select__search-input{border-left:1px solid var(--spw-color-themes-grey-grey-800);padding:0 12px}.spw-custom-select--is-opened.spw-custom-select--has-value .spw-custom-select__search-input{border:1px solid var(--spw-color-themes-grey-grey-800);flex:1;width:auto;border-radius:3px}.spw-custom-select__create-btn{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;height:28px;padding:0;padding-top:2px;width:28px;line-height:28px;border:1px solid var(--spw-color-themes-grey-grey-800);border-radius:100px;background:#fff;cursor:pointer;color:var(--spw-color-themes-grey-grey-900);font-size:14px;pointer-events:auto;transition:background 0.15s ease, border-color 0.15s ease}.spw-custom-select__create-btn:hover{background:var(--spw-color-themes-grey-grey-200);border-color:var(--spw-color-themes-grey-grey-900)}.spw-custom-select__create-btn:focus-visible{outline:3px solid white;box-shadow:0 0 0 6px black}.spw-custom-select__create-btn--big{width:38px;height:38px;border-radius:4px;margin-left:4px;padding-top:0}.spw-custom-select__options{background-color:#fff;border:1px solid var(--spw-color-themes-grey-grey-800);border-radius:0 0 4px 4px;overflow:hidden;z-index:9999;box-shadow:0 4px 6px rgba(0, 0, 0, 0.1)}.spw-custom-select__options:not(.spw-custom-select__options--fixed){position:absolute;top:100%;left:0;width:100%;margin-top:-1px}.spw-custom-select__options--up:not(.spw-custom-select__options--fixed){top:0;transform:translateY(-100%);border-radius:4px 4px 0 0;margin-top:0}.spw-custom-select__options--fixed.spw-custom-select__options--down{transform:translateY(0)}.spw-custom-select__options--fixed.spw-custom-select__options--up{transform:translateY(-100%);border-radius:4px 4px 0 0;margin-top:-40px}.spw-custom-select--down.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options--fixed{margin-top:44px}.spw-custom-select--up.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options--fixed{margin-top:-86px}.spw-custom-select--down.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options:not(.spw-custom-select__options--fixed){margin-top:44px}.spw-custom-select--up.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options:not(.spw-custom-select__options--fixed){margin-top:-46px}.spw-custom-select__options-list{max-height:200px;overflow-y:auto}.spw-custom-select__options-list::-webkit-scrollbar{width:14px;height:14px}.spw-custom-select__options-list::-webkit-scrollbar-thumb{background:var(--spw-color-themes-grey-grey-400);border-radius:20px;border:4px solid var(--spw-ds-white)}.spw-custom-select__options-list::-webkit-scrollbar-track{background:var(--spw-ds-white)}.spw-custom-select__options-list{scrollbar-face-color:var(--spw-color-themes-grey-grey-400);scrollbar-track-color:var(--spw-ds-white)}.spw-custom-select__options-footer{border-top:1px solid var(--spw-color-themes-grey-grey-900);padding:8px;background-color:#fff}.spw-custom-select__no-results{padding:12px;cursor:not-allowed;color:var(--spw-color-themes-grey-grey-600)}.spw-custom-select__option{display:flex;align-items:center;border-bottom:1px solid var(--spw-color-themes-grey-grey-900);padding:12px;cursor:pointer}.spw-custom-select__option:hover{background-color:var(--spw-color-themes-grey-grey-200)}.spw-custom-select__option:last-child{border-bottom:none}.spw-custom-select__option--selected{font-weight:700}.spw-custom-select__option--disabled{opacity:0.5;cursor:not-allowed;pointer-events:none}.spw-custom-select__option--disabled:hover{background-color:transparent}.spw-custom-select__option--created{justify-content:space-between}.spw-custom-select__option-remove{padding-left:4px;margin-left:auto;flex-shrink:0;font-size:14px;color:var(--spw-color-themes-grey-grey-600);transition:color 0.15s ease}.spw-custom-select__option-remove:hover{color:var(--spw-color-themes-grey-grey-900)}.spw-custom-select__error{display:block;font-size:12px;color:var(--spw-color-themes-grey-grey-600);margin-top:8px}.spw-custom-select__option--focused{background-color:var(--spw-color-themes-grey-grey-300)}"}},[321,"spw-custom-select",{value:[1544],label:[1],placeholder:[1],searchPlaceholder:[1,"search-placeholder"],noResultsText:[1,"no-results-text"],disabled:[4],name:[1],required:[4],items:[16],size:[1],multiple:[4],isSearch:[4,"is-search"],assistiveText:[1,"assistive-text"],error:[1],hint:[1],success:[1],warning:[1],showErrorIcon:[4,"show-error-icon"],showHintIcon:[4,"show-hint-icon"],showSuccessIcon:[4,"show-success-icon"],showWarningIcon:[4,"show-warning-icon"],tooltipTitle:[1,"tooltip-title"],tooltipText:[1,"tooltip-text"],tooltipMaxWidth:[1,"tooltip-max-width"],tooltipDirection:[1,"tooltip-direction"],tooltipCursor:[1,"tooltip-cursor"],fixedDropdown:[4,"fixed-dropdown"],fixedDropdownParent:[1,"fixed-dropdown-parent"],isClear:[4,"is-clear"],direction:[1],allowCreate:[4,"allow-create"],internalValue:[32],isOpen:[32],parsedOptions:[32],focusedOptionIndex:[32],searchText:[32],hasSlottedFooter:[32],dropdownDirection:[32],hasSelectedValue:[32],dropdownPosition:[32],setFocus:[64],resetSelect:[64],setValue:[64],getValue:[64]},void 0,{items:[{parseOptions:0}],value:[{valueChangedHandler:0}],internalValue:[{internalValueChanged:0}]}]),h=p,d=function(){"undefined"!=typeof customElements&&["spw-custom-select","spw-checkbox","spw-field-label","spw-field-message","spw-icon","spw-tooltip"].forEach((s=>{switch(s){case"spw-custom-select":customElements.get(o(s))||customElements.define(o(s),p);break;case"spw-checkbox":customElements.get(o(s))||c();break;case"spw-field-label":customElements.get(o(s))||r();break;case"spw-field-message":customElements.get(o(s))||n();break;case"spw-icon":customElements.get(o(s))||l();break;case"spw-tooltip":customElements.get(o(s))||a()}}))};export{h as SpwCustomSelect,d as defineCustomElement}
1
+ import{p as s,H as e,c as t,h as i,t as o}from"./index.js";import{d as c}from"./p-rbXNWvxL.js";import{d as r}from"./p-DlnEjqPF.js";import{d as n}from"./p-C5lqDBLM.js";import{d as l}from"./p-2iE5Jfvp.js";import{d as a}from"./p-DPpA6jtb.js";import{d as p}from"./p-DDihlS_6.js";const h=s(class extends e{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow(),this.valueChanged=t(this,"valueChanged",7),this.optionCreated=t(this,"optionCreated",7),this.optionRemoved=t(this,"optionRemoved",7),this.internals=this.attachInternals(),this.parentScrollContainer=null,this.isOpen=!1,this.parsedOptions=[],this.focusedOptionIndex=null,this.searchText="",this.hasSlottedFooter=!1,this.dropdownDirection="down",this.hasSelectedValue=!1,this.dropdownPosition={top:0,left:0,width:0},this.value=[],this.label="",this.placeholder="Sélectionnez une option",this.searchPlaceholder="Entrez votre recherche",this.noResultsText="Aucun résultat trouvé",this.required=!1,this.size="medium",this.multiple=!1,this.isSearch=!1,this.error="",this.hint="",this.success="",this.warning="",this.showErrorIcon=!0,this.showHintIcon=!0,this.showSuccessIcon=!0,this.showWarningIcon=!0,this.isExpandable=!1,this.tooltipDirection="top",this.tooltipCursor="help",this.fixedDropdown=!1,this.isClear=!1,this.direction="auto",this.allowCreate=!1,this.handleOtherSelectOpened=s=>{s.detail.instance!==this.host&&this.isOpen&&this.closeDropdown()},this.handleClickOutside=s=>{var e,t;if(this.isOpen){const i=s.composedPath(),o=i[0],c=this.host.contains(o),r=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector(".spw-custom-select__search-input"),n=null==r?void 0:r.contains(o),l=this.hostElement.querySelector('[slot="footer"]'),a=!!l&&i.includes(l);if(!c&&!n&&!a){if(this.multiple){const s=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".spw-custom-select__options");if(s&&s.contains(o))return}this.closeDropdown()}}},this.updateDropdownPosition=()=>{if(!this.selectContainer)return;const s=this.selectContainer.getBoundingClientRect(),e=window.innerHeight;this.dropdownDirection="top"===this.direction?"up":"bottom"===this.direction?"down":s.bottom+200>e&&s.top>200?"up":"down",this.dropdownPosition={top:s.bottom,left:s.left,width:s.width}}}componentWillLoad(){if(this.multiple)if("string"==typeof this.value)try{this.internalValue=JSON.parse(this.value)}catch(s){this.internalValue=[]}else this.internalValue=Array.isArray(this.value)?this.value:[];else this.internalValue=this.value;this.defaultValue=this.internalValue,this.items&&this.parseOptions(this.items),this.updateSelectedOption()}async setFocus(){var s,e;const t=null===(s=this.host)||void 0===s?void 0:s.querySelector(".spw-custom-select__search-input");t?t.focus():null===(e=this.selectContainer)||void 0===e||e.focus()}async resetSelect(){this.multiple?(this.internalValue=[],this.value=[]):(this.internalValue="",this.value=""),this.searchText="",this.focusedOptionIndex=null,this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue),this.updateSelectedOption()}async setValue(s){this.multiple?(this.internalValue=Array.isArray(s)?s:[s],this.value=this.internalValue):(this.internalValue=s,this.value=s),this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue),this.updateSelectedOption()}async getValue(){return this.internalValue}formResetCallback(){this.setValue(this.defaultValue)}componentDidLoad(){this.internals.setFormValue(this.getFormValue());const s=this.hostElement.querySelector('[slot="footer"]');this.hasSlottedFooter=!!s}connectedCallback(){document.addEventListener("click",this.handleClickOutside,!0),document.addEventListener("spw-custom-select-opened",this.handleOtherSelectOpened),window.addEventListener("scroll",this.updateDropdownPosition,!0),window.addEventListener("resize",this.updateDropdownPosition)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside,!0),document.removeEventListener("spw-custom-select-opened",this.handleOtherSelectOpened),window.removeEventListener("scroll",this.updateDropdownPosition,!0),window.removeEventListener("resize",this.updateDropdownPosition),this.cleanupParentScrollListener(),this.isOpen=!1}findParentComponent(){if(!this.fixedDropdownParent)return null;let s=this.hostElement;for(;s;){if(s instanceof e&&s.tagName.toLowerCase()===this.fixedDropdownParent.toLowerCase())return s;if(s.parentElement)s=s.parentElement;else{const e=s.getRootNode();if(!(e instanceof ShadowRoot))break;s=e.host}}return null}findScrollContainerInShadowRoot(s){const e=s.shadowRoot;if(!e)return null;const t=e.querySelectorAll("*");let i=null,o=-1;for(const s of Array.from(t)){const t=s,c=window.getComputedStyle(t);if("auto"===c.overflow||"scroll"===c.overflow||"auto"===c.overflowY||"scroll"===c.overflowY){let c=0,r=s;for(;r&&r!==e;)c++,r=r.parentNode;c>o&&(o=c,i=t)}}return i}ensureParentScrollListener(){if(!this.fixedDropdownParent||!this.fixedDropdown)return;if(this.parentScrollContainer)return;const s=this.findParentComponent();s&&(this.parentScrollContainer=this.findScrollContainerInShadowRoot(s),this.parentScrollContainer&&this.parentScrollContainer.addEventListener("scroll",this.updateDropdownPosition))}cleanupParentScrollListener(){this.parentScrollContainer&&(this.parentScrollContainer.removeEventListener("scroll",this.updateDropdownPosition),this.parentScrollContainer=null)}parseOptions(s){try{this.parsedOptions=Array.isArray(s)?s.map((s=>({value:s.value,label:s.label,disabled:s.disabled||!1}))):[],this.updateSelectedOption()}catch(s){this.parsedOptions=[]}}valueChangedHandler(s){this.internalValue=this.multiple?Array.isArray(s)?s:[s]:s,this.updateSelectedOption(),this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue)}updateSelectedOption(){this.internals.setFormValue(this.getFormValue()),this.multiple||void 0===this.internalValue?this.multiple&&Array.isArray(this.internalValue)&&(this.internalValue=this.internalValue.filter((s=>this.parsedOptions.some((e=>e.value+""==s+"")))).sort(((s,e)=>this.parsedOptions.findIndex((e=>e.value+""==s+""))-this.parsedOptions.findIndex((s=>s.value+""==e+""))))):this.focusedOptionIndex=this.parsedOptions.findIndex((s=>s.value+""==this.internalValue+""))}internalValueChanged(){this.hasSelectedValue=Array.isArray(this.internalValue)?this.internalValue.length>0:!!this.internalValue}getFormValue(){return this.multiple?Array.isArray(this.internalValue)&&this.internalValue.length>0?this.internalValue.map((s=>s+"")).join(","):null:this.internalValue?this.internalValue+"":null}toggleDropdown(s){if(!this.disabled){if(s){if(s.composedPath()[0].classList.contains("spw-custom-select__search-input"))return;s.stopPropagation()}this.determineDropdownDirection();const e=this.isOpen;this.isOpen=!this.isOpen,this.isOpen&&!e&&(this.ensureParentScrollListener(),this.notifyOtherSelects()),this.isOpen||(this.focusedOptionIndex=null)}}notifyOtherSelects(){const s=new CustomEvent("spw-custom-select-opened",{detail:{instance:this.host},bubbles:!0,composed:!0});document.dispatchEvent(s)}determineDropdownDirection(){this.updateDropdownPosition()}openDropdownWithKeyboard(){this.determineDropdownDirection(),this.isOpen=!0,this.focusedOptionIndex=0,this.ensureParentScrollListener(),this.notifyOtherSelects()}closeDropdown(){this.isOpen=!1,this.focusedOptionIndex=null,this.searchText=""}addCreatedOption(s){const e=s.trim();if(!e)return;const t=e,i={label:e,value:t,created:!0};this.parsedOptions=[...this.parsedOptions,i],this.optionCreated.emit(i),this.selectOption(t),this.searchText=""}removeCreatedOption(s,e){if(e.stopPropagation(),this.multiple){const e=this.internalValue.findIndex((e=>e+""==s.value+""));e>-1&&(this.internalValue=[...this.internalValue.slice(0,e),...this.internalValue.slice(e+1)],this.value=this.internalValue,this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue))}else this.internalValue+""==s.value+""&&(this.internalValue="",this.value="",this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue));this.parsedOptions=this.parsedOptions.filter((e=>e.value+""!=s.value+"")),this.optionRemoved.emit(s)}handleClear(s){s.stopPropagation(),this.resetSelect()}selectOption(s,e){e&&e.stopPropagation();const t=this.parsedOptions.find((e=>e.value+""==s+""));if(!(null==t?void 0:t.disabled)){if(this.multiple){const e=this.internalValue.findIndex((e=>e+""==s+""));this.internalValue=e>-1?[...this.internalValue.slice(0,e),...this.internalValue.slice(e+1)]:[...this.internalValue,s],this.internalValue=this.internalValue.sort(((s,e)=>this.parsedOptions.findIndex((e=>e.value+""==s+""))-this.parsedOptions.findIndex((s=>s.value+""==e+""))))}else this.internalValue=s,this.closeDropdown();this.value=this.internalValue,this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue),this.updateSelectedOption()}}handleOptionKeyDown(s,e){"Enter"!==s.key&&" "!==s.key||(s.preventDefault(),this.selectOption(e))}handleKeyDown(s){var e,t;if(!s.target.classList.contains("spw-custom-select__search-input"))switch(s.key){case" ":s.preventDefault(),this.isOpen||this.openDropdownWithKeyboard();break;case"ArrowDown":if(s.preventDefault(),this.isOpen){let s=null===this.focusedOptionIndex?0:(this.focusedOptionIndex+1)%this.parsedOptions.length;for(;(null===(e=this.parsedOptions[s])||void 0===e?void 0:e.disabled)&&s!==this.focusedOptionIndex;)s=(s+1)%this.parsedOptions.length;this.focusedOptionIndex=s}else this.openDropdownWithKeyboard();break;case"ArrowUp":if(s.preventDefault(),this.isOpen){let s=null===this.focusedOptionIndex?this.parsedOptions.length-1:(this.focusedOptionIndex-1+this.parsedOptions.length)%this.parsedOptions.length;for(;(null===(t=this.parsedOptions[s])||void 0===t?void 0:t.disabled)&&s!==this.focusedOptionIndex;)s=(s-1+this.parsedOptions.length)%this.parsedOptions.length;this.focusedOptionIndex=s}break;case"Enter":s.preventDefault(),this.isOpen&&null!==this.focusedOptionIndex&&this.selectOption(this.parsedOptions[this.focusedOptionIndex].value);break;case"Escape":this.isOpen&&this.closeDropdown()}}renderErrorMessage(){if(this.error)return i("spw-field-message",{variant:"error",showIcon:this.showErrorIcon,isExpandable:this.isExpandable,expandLabel:this.expandLabel,collapseLabel:this.collapseLabel},this.error,i("slot",{name:"details",slot:"details"}))}renderHintMessage(){if(this.hint)return i("spw-field-message",{variant:"hint",showIcon:this.showHintIcon,isExpandable:this.isExpandable,expandLabel:this.expandLabel,collapseLabel:this.collapseLabel},this.hint,i("slot",{name:"details",slot:"details"}))}renderWarningMessage(){if(this.warning)return i("spw-field-message",{variant:"warning",showIcon:this.showWarningIcon,isExpandable:this.isExpandable,expandLabel:this.expandLabel,collapseLabel:this.collapseLabel},this.warning,i("slot",{name:"details",slot:"details"}))}renderSuccessMessage(){if(this.success)return i("spw-field-message",{variant:"success",showIcon:this.showSuccessIcon,isExpandable:this.isExpandable,expandLabel:this.expandLabel,collapseLabel:this.collapseLabel},this.success,i("slot",{name:"details",slot:"details"}))}get elementClass(){const s=this.showCreateButton();return{"spw-custom-select":!0,["spw-custom-select--"+this.size]:!0,["spw-custom-select--"+this.dropdownDirection]:!0,"spw-custom-select--is-error":!!this.error,"spw-custom-select--disabled":this.disabled,"spw-custom-select--is-opened":this.isOpen,"spw-custom-select--has-value":this.hasSelectedValue,"spw-custom-select--no-value":!this.hasSelectedValue,"spw-custom-select--is-searchable":this.isSearch,"spw-custom-select--not-searchable":!this.isSearch,"spw-custom-select--is-clear":this.isClear&&(this.hasSelectedValue||!!this.searchText),"spw-custom-select--show-create":s}}normalizeString(s){return s.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}getSelectedLabels(){if(this.multiple)return Array.isArray(this.internalValue)&&this.internalValue.length>0?this.internalValue.map((s=>{var e;return null===(e=this.parsedOptions.find((e=>e.value+""==s+"")))||void 0===e?void 0:e.label})).filter(Boolean).join(", "):null;{const s=this.parsedOptions.find((s=>s.value+""==this.internalValue+""));return s?s.label:null}}getFilteredOptions(){const s=this.normalizeString(this.searchText);return this.parsedOptions.filter((e=>this.normalizeString(e.label).includes(s)))}handleSearchInput(s){this.searchText=s.target.value,this.focusedOptionIndex=0,this.isOpen||(this.isOpen=!0,this.ensureParentScrollListener(),this.notifyOtherSelects())}isSearchVisible(){return!!this.isSearch&&(!this.hasSelectedValue&&!this.isOpen||!(!this.isSearch||!this.isOpen)||this.isOpen)}showPlaceholder(){return!this.isSearch&&!this.hasSelectedValue}showCreateButton(){if(!this.allowCreate||!this.isSearch||!this.searchText.trim())return!1;const s=this.normalizeString(this.searchText.trim());return!this.parsedOptions.some((e=>this.normalizeString(e.label)===s))}render(){const s=this.getFilteredOptions(),e=this.showPlaceholder(),t=this.showCreateButton();return i("div",{key:"075816be82b83e4ff87e3b8acb699331e1b93873",class:this.elementClass,ref:s=>this.host=s},this.label&&i("spw-field-label",{key:"9243de1d006313839fd75cdfd960135608e19802",label:this.label,name:this.name,required:this.required,tooltipTitle:this.tooltipTitle,tooltipText:this.tooltipText,tooltipMaxWidth:this.tooltipMaxWidth,tooltipDirection:this.tooltipDirection,tooltipCursor:this.tooltipCursor}),this.assistiveText&&i("spw-field-message",{key:"b9187b59eae8c1cb618ef72fbf2057a80890717d",class:"spw-custom-select__field-message",variant:"hint",showIcon:!1},this.assistiveText),i("div",{key:"eb3d52c7e08d22a6824b861a423e41473add308c",class:"spw-custom-select__wrapper"},i("div",{key:"3ea2df7f2171d795fc681e1e54f4a15abe5ce6a3",class:"spw-custom-select__container",id:this.name,ref:s=>this.selectContainer=s,onClick:s=>this.toggleDropdown(s),onKeyDown:s=>this.handleKeyDown(s),tabindex:this.disabled?-1:0},i("div",{key:"02a97e4e274bdfb8edc3018efc3f69277e16e6a2",class:"spw-custom-select__selected"},this.isSearchVisible()&&i("div",{key:"93275dd4f05996654df1a4cdce1aa0b0c35ede52",class:"spw-custom-select__search"},i("input",{key:"495ebc87298b60ce23adafa5970dd7068d1ba51a",class:"spw-custom-select__search-input",placeholder:this.searchPlaceholder,onInput:s=>this.handleSearchInput(s),value:this.searchText}),t&&this.isOpen&&this.hasSelectedValue&&i("button",{key:"19e031a37c9416f08dc8f86d82e5126b678e4915",class:"spw-custom-select__create-btn spw-custom-select__create-btn--big",type:"button",onMouseDown:s=>{s.preventDefault(),s.stopPropagation(),this.addCreatedOption(this.searchText)}},i("spw-icon",{key:"23bb75e44c6a1f74274c87be82ca5ef55ce1272c",icon:"fa-plus"}))),e&&i("span",{key:"a80921899ec9687857323eee0296ad44b6c775e0"},this.placeholder),this.multiple&&this.internalValue.length>0&&i("div",{key:"1bfa5decab9a3051d6c3641b0cc01e5d93c863a9",class:"spw-custom-select__selected-items"},this.internalValue.map((s=>{var e;return i("span",{class:"spw-custom-select__selected-item"},null===(e=this.parsedOptions.find((e=>e.value+""==s+"")))||void 0===e?void 0:e.label,i("spw-icon",{icon:"fa-times",class:"spw-custom-select__deselect-icon",onClick:e=>this.selectOption(s,e)}))}))),!this.multiple&&i("span",{key:"0a386c27e0eba81c3580d49618d61f218b27133a"},this.getSelectedLabels()))),i("div",{key:"deb6c2cd37ce5db9586c7f3d0b5a51f7871d1b15",class:"spw-custom-select__icons"},t&&!(this.isOpen&&this.hasSelectedValue)&&i("button",{key:"eb087835e04d9010419c7bade6655ebb54fdd166",class:"spw-custom-select__create-btn",type:"button",onMouseDown:s=>{s.preventDefault(),s.stopPropagation(),this.addCreatedOption(this.searchText)}},i("spw-icon",{key:"51245fd24e580561380ad325f7d712e5c2e4c6c5",icon:"fa-plus"})),this.isClear&&(this.hasSelectedValue||!!this.searchText)&&i("span",{key:"b3c328e3303be083386a573e2f0531bcf3b3fd8c",class:"spw-custom-select__clear",onClick:s=>this.handleClear(s)},i("spw-icon",{key:"901f42f0b454d290e3e5083de84f930493795dce",icon:"fa-xmark"})),i("div",{key:"ae1a3dc6f013d68f359a5030e2515e6e82130d92",class:"spw-custom-select__arrow"},i("spw-icon",{key:"cf6e35d678d4e89d5d4c41f3729a440e257d1bde",icon:this.isOpen?"fa-chevron-up":"fa-chevron-down"}))),this.isOpen&&i("div",{key:"2756a3d722f0ea5b999a982e2dca80bfb5a31f0f",class:{"spw-custom-select__options":!0,["spw-custom-select__options--"+this.dropdownDirection]:!0,"spw-custom-select__options--fixed":this.fixedDropdown},style:this.fixedDropdown?{position:"fixed",top:this.dropdownPosition.top+"px",left:this.dropdownPosition.left+"px",width:this.dropdownPosition.width+"px"}:{}},i("div",{key:"068f62410b9cd62d382e3158eec764a046b57a72",class:"spw-custom-select__options-list"},!!s.length&&i("ul",{key:"f6cf9b974716fa92042ab6b07c5e5d4337d8b1e1"},s.map(((s,e)=>i("li",{class:{"spw-custom-select__option":!0,"spw-custom-select__option--selected":this.multiple?this.internalValue.some((e=>e+""==s.value+"")):s.value===this.internalValue,"spw-custom-select__option--focused":e===this.focusedOptionIndex,"spw-custom-select__option--disabled":s.disabled,"spw-custom-select__option--created":!!s.created},onClick:()=>this.selectOption(s.value)},this.multiple&&i("spw-checkbox",{onKeyDown:e=>this.handleOptionKeyDown(e,s.value),class:"spw-custom-select__checkbox",checked:this.internalValue.some((e=>e+""==s.value+"")),disabled:s.disabled}),s.label,s.created&&i("spw-icon",{class:"spw-custom-select__option-remove",icon:"fa-trash",onClick:e=>this.removeCreatedOption(s,e)}))))),!s.length&&i("p",{key:"f20a6196114b89a9e69cdce4f50e7107078c5ee1",class:"spw-custom-select__no-results"},this.noResultsText)),this.hasSlottedFooter&&i("div",{key:"fd36a7e651b572c32aa0340d3edff0e1d5b0e31b",class:"spw-custom-select__options-footer"},i("slot",{key:"6601ff4fcfb2c51fa1b8fddcd9ff6f9f5fdcebec",name:"footer"})))),this.renderErrorMessage(),this.renderHintMessage(),this.renderSuccessMessage(),this.renderWarningMessage())}static get formAssociated(){return!0}get hostElement(){return this}static get watchers(){return{items:[{parseOptions:0}],value:[{valueChangedHandler:0}],internalValue:[{internalValueChanged:0}]}}static get style(){return"html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main);letter-spacing:-0.18px}body{margin: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;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:-0.25em}sup{top:-0.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}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.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}template{display:none}[hidden]{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{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 360px){.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: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:block}.spw-custom-select{position:relative}.spw-custom-select__field-message{margin-bottom:8px;margin-top:-4px}.spw-custom-select__checkbox{margin-right:8px}.spw-custom-select__container{display:flex;justify-content:space-between;align-items:center;width:100%;height:40px;padding:0 12px;line-height:40px;border-radius:4px;border:1px solid var(--spw-color-themes-grey-grey-800);background-color:#fff}.spw-custom-select__container:hover{outline:4px solid var(--spw-color-themes-grey-grey-300)}.spw-custom-select__container:focus-within,.spw-custom-select__container:focus-visible{outline:3px solid white;outline-offset:0;box-shadow:0 0 0 6px black}.spw-custom-select--disabled .spw-custom-select__container{border-color:var(--spw-color-themes-grey-grey-400);background:var(--spw-color-themes-grey-grey-100);color:var(--spw-color-themes-grey-grey-500);cursor:not-allowed}.spw-custom-select--disabled .spw-custom-select__container::placeholder{color:var(--spw-color-themes-grey-grey-500)}.spw-custom-select--disabled .spw-custom-select__container:hover,.spw-custom-select--disabled .spw-custom-select__container:focus,.spw-custom-select--disabled .spw-custom-select__container:focus-visible{outline:none}.spw-custom-select--is-error .spw-custom-select__container{border-color:var(--spw-colors-states-error-error-300)}.spw-custom-select--large .spw-custom-select__container{height:60px;padding:0 24px;line-height:60px}.spw-custom-select--is-opened .spw-custom-select__container{height:auto;line-height:1;min-height:40px}.spw-custom-select--is-opened.spw-custom-select--down .spw-custom-select__container{border-radius:4px 4px 0 0;border-bottom-color:transparent}.spw-custom-select--is-opened.spw-custom-select--up .spw-custom-select__container{border-radius:0 0 4px 4px;border-top-color:transparent}.spw-custom-select__selected{flex:1;padding-right:30px;max-width:100%;overflow:hidden;text-overflow:ellipsis}.spw-custom-select__selected span{white-space:nowrap}.spw-custom-select--is-clear .spw-custom-select__selected{padding-right:58px}.spw-custom-select__selected-item{display:inline-flex;align-items:center;gap:6px;color:var(--spw-color-themes-grey-grey-900);border:1px solid var(--spw-color-themes-grey-grey-900);background:var(--spw-color-themes-grey-grey-200);line-height:24px;height:24px;padding:0 8px;margin:4px 6px 2px 0;border-radius:999px;font-size:14px;user-select:none}.spw-custom-select__selected-items{flex:1;overflow:hidden;text-overflow:ellipsis;text-wrap:nowrap}.spw-custom-select--is-opened .spw-custom-select__selected-items{padding-top:3px;padding-bottom:4px;overflow:visible;text-overflow:initial;text-wrap:initial}.spw-custom-select__icons{display:flex;align-items:center;position:absolute;top:50%;right:12px;gap:8px;pointer-events:none;transform:translateY(-50%);z-index:12}.spw-custom-select--large .spw-custom-select__icons{right:24px}.spw-custom-select__clear{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;pointer-events:auto;cursor:pointer;padding:2px;font-size:16px;transition:all 0.2s ease-in}.spw-custom-select__clear:hover{color:var(--spw-ds-primary)}.spw-custom-select__arrow{font-size:16px;color:var(--spw-color-themes-grey-grey-900);pointer-events:none}.spw-custom-select__wrapper{position:relative}.spw-custom-select--is-opened .spw-custom-select__search{position:absolute;top:0;left:0;z-index:11;width:100%;margin-top:1px;display:flex;align-items:center}.spw-custom-select--has-value.spw-custom-select--is-opened .spw-custom-select__search{top:100%;margin-top:-3px;padding:4px;border:1px solid var(--spw-color-themes-grey-grey-800);background:white}.spw-custom-select--up.spw-custom-select--has-value.spw-custom-select--is-opened .spw-custom-select__search{top:-100%;margin-top:-7px}.spw-custom-select__search-input{padding:0;height:38px;line-height:40px;border:none;margin:0;width:calc(100% - 30px);background:transparent;text-overflow:ellipsis}.spw-custom-select--is-clear .spw-custom-select__search-input{width:calc(100% - 58px)}.spw-custom-select--show-create .spw-custom-select__search-input{width:calc(100% - 66px)}.spw-custom-select--is-clear.spw-custom-select--show-create .spw-custom-select__search-input{width:calc(100% - 94px)}.spw-custom-select__search-input:focus{outline:none}.spw-custom-select--is-opened .spw-custom-select__search-input{border-left:1px solid var(--spw-color-themes-grey-grey-800);padding:0 12px}.spw-custom-select--is-opened.spw-custom-select--has-value .spw-custom-select__search-input{border:1px solid var(--spw-color-themes-grey-grey-800);flex:1;width:auto;border-radius:3px}.spw-custom-select__create-btn{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;height:28px;padding:0;padding-top:2px;width:28px;line-height:28px;border:1px solid var(--spw-color-themes-grey-grey-800);border-radius:100px;background:#fff;cursor:pointer;color:var(--spw-color-themes-grey-grey-900);font-size:14px;pointer-events:auto;transition:background 0.15s ease, border-color 0.15s ease}.spw-custom-select__create-btn:hover{background:var(--spw-color-themes-grey-grey-200);border-color:var(--spw-color-themes-grey-grey-900)}.spw-custom-select__create-btn:focus-visible{outline:3px solid white;box-shadow:0 0 0 6px black}.spw-custom-select__create-btn--big{width:38px;height:38px;border-radius:4px;margin-left:4px;padding-top:0}.spw-custom-select__options{background-color:#fff;border:1px solid var(--spw-color-themes-grey-grey-800);border-radius:0 0 4px 4px;overflow:hidden;z-index:9999;box-shadow:0 4px 6px rgba(0, 0, 0, 0.1)}.spw-custom-select__options:not(.spw-custom-select__options--fixed){position:absolute;top:100%;left:0;width:100%;margin-top:-1px}.spw-custom-select__options--up:not(.spw-custom-select__options--fixed){top:0;transform:translateY(-100%);border-radius:4px 4px 0 0;margin-top:0}.spw-custom-select__options--fixed.spw-custom-select__options--down{transform:translateY(0)}.spw-custom-select__options--fixed.spw-custom-select__options--up{transform:translateY(-100%);border-radius:4px 4px 0 0;margin-top:-40px}.spw-custom-select--down.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options--fixed{margin-top:44px}.spw-custom-select--up.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options--fixed{margin-top:-86px}.spw-custom-select--down.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options:not(.spw-custom-select__options--fixed){margin-top:44px}.spw-custom-select--up.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options:not(.spw-custom-select__options--fixed){margin-top:-46px}.spw-custom-select__options-list{max-height:200px;overflow-y:auto}.spw-custom-select__options-list::-webkit-scrollbar{width:14px;height:14px}.spw-custom-select__options-list::-webkit-scrollbar-thumb{background:var(--spw-color-themes-grey-grey-400);border-radius:20px;border:4px solid var(--spw-ds-white)}.spw-custom-select__options-list::-webkit-scrollbar-track{background:var(--spw-ds-white)}.spw-custom-select__options-list{scrollbar-face-color:var(--spw-color-themes-grey-grey-400);scrollbar-track-color:var(--spw-ds-white)}.spw-custom-select__options-footer{border-top:1px solid var(--spw-color-themes-grey-grey-900);padding:8px;background-color:#fff}.spw-custom-select__no-results{padding:12px;cursor:not-allowed;color:var(--spw-color-themes-grey-grey-600)}.spw-custom-select__option{display:flex;align-items:center;border-bottom:1px solid var(--spw-color-themes-grey-grey-900);padding:12px;cursor:pointer}.spw-custom-select__option:hover{background-color:var(--spw-color-themes-grey-grey-200)}.spw-custom-select__option:last-child{border-bottom:none}.spw-custom-select__option--selected{font-weight:700}.spw-custom-select__option--disabled{opacity:0.5;cursor:not-allowed;pointer-events:none}.spw-custom-select__option--disabled:hover{background-color:transparent}.spw-custom-select__option--created{justify-content:space-between}.spw-custom-select__option-remove{padding-left:4px;margin-left:auto;flex-shrink:0;font-size:14px;color:var(--spw-color-themes-grey-grey-600);transition:color 0.15s ease}.spw-custom-select__option-remove:hover{color:var(--spw-color-themes-grey-grey-900)}.spw-custom-select__error{display:block;font-size:12px;color:var(--spw-color-themes-grey-grey-600);margin-top:8px}.spw-custom-select__option--focused{background-color:var(--spw-color-themes-grey-grey-300)}"}},[321,"spw-custom-select",{value:[1544],label:[1],placeholder:[1],searchPlaceholder:[1,"search-placeholder"],noResultsText:[1,"no-results-text"],disabled:[4],name:[1],required:[4],items:[16],size:[1],multiple:[4],isSearch:[4,"is-search"],assistiveText:[1,"assistive-text"],error:[1],hint:[1],success:[1],warning:[1],showErrorIcon:[4,"show-error-icon"],showHintIcon:[4,"show-hint-icon"],showSuccessIcon:[4,"show-success-icon"],showWarningIcon:[4,"show-warning-icon"],isExpandable:[4,"is-expandable"],expandLabel:[1,"expand-label"],collapseLabel:[1,"collapse-label"],tooltipTitle:[1,"tooltip-title"],tooltipText:[1,"tooltip-text"],tooltipMaxWidth:[1,"tooltip-max-width"],tooltipDirection:[1,"tooltip-direction"],tooltipCursor:[1,"tooltip-cursor"],fixedDropdown:[4,"fixed-dropdown"],fixedDropdownParent:[1,"fixed-dropdown-parent"],isClear:[4,"is-clear"],direction:[1],allowCreate:[4,"allow-create"],internalValue:[32],isOpen:[32],parsedOptions:[32],focusedOptionIndex:[32],searchText:[32],hasSlottedFooter:[32],dropdownDirection:[32],hasSelectedValue:[32],dropdownPosition:[32],setFocus:[64],resetSelect:[64],setValue:[64],getValue:[64]},void 0,{items:[{parseOptions:0}],value:[{valueChangedHandler:0}],internalValue:[{internalValueChanged:0}]}]),d=h,u=function(){"undefined"!=typeof customElements&&["spw-custom-select","spw-checkbox","spw-field-label","spw-field-message","spw-icon","spw-link","spw-tooltip"].forEach((s=>{switch(s){case"spw-custom-select":customElements.get(o(s))||customElements.define(o(s),h);break;case"spw-checkbox":customElements.get(o(s))||c();break;case"spw-field-label":customElements.get(o(s))||r();break;case"spw-field-message":customElements.get(o(s))||n();break;case"spw-icon":customElements.get(o(s))||l();break;case"spw-link":customElements.get(o(s))||a();break;case"spw-tooltip":customElements.get(o(s))||p()}}))};export{d as SpwCustomSelect,u as defineCustomElement}