@spw-ds/spw-stencil-library 1.3.3 → 1.3.5

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 (318) hide show
  1. package/dist/cjs/{index-DFv_X5OO.js → index-BDhk9IqL.js} +25 -2
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/spw-accordion_4.cjs.entry.js +1 -1
  4. package/dist/cjs/spw-breadcrumb-item.cjs.entry.js +1 -1
  5. package/dist/cjs/spw-breadcrumb.cjs.entry.js +1 -1
  6. package/dist/cjs/spw-button_2.cjs.entry.js +1 -1
  7. package/dist/cjs/spw-card-content.cjs.entry.js +2 -2
  8. package/dist/cjs/spw-card-excerpt.cjs.entry.js +2 -2
  9. package/dist/cjs/spw-card-image.cjs.entry.js +23 -5
  10. package/dist/cjs/spw-card-subtag-item.cjs.entry.js +2 -2
  11. package/dist/cjs/spw-card-subtags.cjs.entry.js +6 -3
  12. package/dist/cjs/spw-card-title.cjs.entry.js +2 -2
  13. package/dist/cjs/spw-card.cjs.entry.js +3 -3
  14. package/dist/cjs/spw-checkbox.cjs.entry.js +1 -1
  15. package/dist/cjs/spw-cookies.cjs.entry.js +1 -1
  16. package/dist/cjs/spw-custom-select.cjs.entry.js +23 -4
  17. package/dist/cjs/spw-date-picker.cjs.entry.js +1 -1
  18. package/dist/cjs/spw-dropdown-container.cjs.entry.js +1 -1
  19. package/dist/cjs/spw-dropdown-item.cjs.entry.js +1 -1
  20. package/dist/cjs/spw-dropdown.cjs.entry.js +1 -1
  21. package/dist/cjs/spw-field-label_6.cjs.entry.js +3 -3
  22. package/dist/cjs/spw-field-message.cjs.entry.js +1 -1
  23. package/dist/cjs/spw-file-upload.cjs.entry.js +35 -10
  24. package/dist/cjs/spw-footer-bottom.cjs.entry.js +1 -1
  25. package/dist/cjs/spw-footer-content-col.cjs.entry.js +1 -1
  26. package/dist/cjs/spw-footer-content.cjs.entry.js +1 -1
  27. package/dist/cjs/spw-footer-link.cjs.entry.js +1 -1
  28. package/dist/cjs/spw-footer.cjs.entry.js +1 -1
  29. package/dist/cjs/spw-grid-item.cjs.entry.js +1 -1
  30. package/dist/cjs/spw-grid.cjs.entry.js +1 -1
  31. package/dist/cjs/spw-header-lang-item.cjs.entry.js +1 -1
  32. package/dist/cjs/spw-header-lang.cjs.entry.js +1 -1
  33. package/dist/cjs/spw-header-navigation-dropdown.cjs.entry.js +1 -1
  34. package/dist/cjs/spw-header-navigation-item.cjs.entry.js +1 -1
  35. package/dist/cjs/spw-header-navigation.cjs.entry.js +1 -1
  36. package/dist/cjs/spw-header-persona-item.cjs.entry.js +1 -1
  37. package/dist/cjs/spw-header-persona.cjs.entry.js +1 -1
  38. package/dist/cjs/spw-header.cjs.entry.js +1 -1
  39. package/dist/cjs/spw-hero.cjs.entry.js +1 -1
  40. package/dist/cjs/spw-illustration.cjs.entry.js +1 -1
  41. package/dist/cjs/spw-list-description.cjs.entry.js +1 -1
  42. package/dist/cjs/spw-list-item.cjs.entry.js +1 -1
  43. package/dist/cjs/spw-list-title.cjs.entry.js +1 -1
  44. package/dist/cjs/spw-list.cjs.entry.js +1 -1
  45. package/dist/cjs/spw-message.cjs.entry.js +1 -1
  46. package/dist/cjs/spw-modal.cjs.entry.js +1 -1
  47. package/dist/cjs/spw-mosaic-item.cjs.entry.js +48 -7
  48. package/dist/cjs/spw-mosaic.cjs.entry.js +6 -3
  49. package/dist/cjs/spw-pagination.cjs.entry.js +1 -1
  50. package/dist/cjs/spw-radio.cjs.entry.js +1 -1
  51. package/dist/cjs/spw-search-field.cjs.entry.js +1 -1
  52. package/dist/cjs/spw-select.cjs.entry.js +17 -11
  53. package/dist/cjs/spw-sidebar-navigation-dropdown.cjs.entry.js +1 -1
  54. package/dist/cjs/spw-sidebar-navigation-item.cjs.entry.js +1 -1
  55. package/dist/cjs/spw-sidebar-navigation-separator.cjs.entry.js +1 -1
  56. package/dist/cjs/spw-sidebar.cjs.entry.js +1 -1
  57. package/dist/cjs/spw-skeleton.cjs.entry.js +1 -1
  58. package/dist/cjs/spw-slider-item.cjs.entry.js +1 -1
  59. package/dist/cjs/spw-slider.cjs.entry.js +1 -1
  60. package/dist/cjs/spw-socials.cjs.entry.js +1 -1
  61. package/dist/cjs/spw-stencil-library.cjs.js +3 -3
  62. package/dist/cjs/spw-table-body.cjs.entry.js +1 -1
  63. package/dist/cjs/spw-table-cell.cjs.entry.js +1 -1
  64. package/dist/cjs/spw-table-container.cjs.entry.js +1 -1
  65. package/dist/cjs/spw-table-footer.cjs.entry.js +1 -1
  66. package/dist/cjs/spw-table-head.cjs.entry.js +1 -1
  67. package/dist/cjs/spw-table-header.cjs.entry.js +1 -1
  68. package/dist/cjs/spw-table-row.cjs.entry.js +1 -1
  69. package/dist/cjs/spw-table-sidebar.cjs.entry.js +1 -1
  70. package/dist/cjs/spw-table.cjs.entry.js +1 -1
  71. package/dist/cjs/spw-tabs-content.cjs.entry.js +1 -1
  72. package/dist/cjs/spw-tabs-navigation-item.cjs.entry.js +1 -1
  73. package/dist/cjs/spw-tabs-navigation.cjs.entry.js +1 -1
  74. package/dist/cjs/spw-tabs.cjs.entry.js +1 -1
  75. package/dist/cjs/spw-tag.cjs.entry.js +1 -1
  76. package/dist/cjs/spw-text-field.cjs.entry.js +1 -1
  77. package/dist/cjs/spw-textarea.cjs.entry.js +1 -1
  78. package/dist/cjs/spw-tile-description.cjs.entry.js +1 -1
  79. package/dist/cjs/spw-tile-title.cjs.entry.js +1 -1
  80. package/dist/cjs/spw-tile.cjs.entry.js +2 -2
  81. package/dist/cjs/spw-toc-container.cjs.entry.js +1 -1
  82. package/dist/cjs/spw-toc-navigation.cjs.entry.js +1 -1
  83. package/dist/cjs/spw-toc.cjs.entry.js +1 -1
  84. package/dist/cjs/spw-tooltip.cjs.entry.js +1 -1
  85. package/dist/cjs/spw-topbar.cjs.entry.js +1 -1
  86. package/dist/cjs/spw-wizard-item.cjs.entry.js +1 -1
  87. package/dist/cjs/spw-wizard.cjs.entry.js +1 -1
  88. package/dist/collection/collection-manifest.json +1 -1
  89. package/dist/collection/components/spw-card/spw-card-content/spw-card-content.css +36 -2
  90. package/dist/collection/components/spw-card/spw-card-excerpt/spw-card-excerpt.css +3 -0
  91. package/dist/collection/components/spw-card/spw-card-image/spw-card-image.css +35 -14
  92. package/dist/collection/components/spw-card/spw-card-image/spw-card-image.js +79 -4
  93. package/dist/collection/components/spw-card/spw-card-subtag-item/spw-card-subtag-item.css +3 -0
  94. package/dist/collection/components/spw-card/spw-card-subtags/spw-card-subtags.css +3 -0
  95. package/dist/collection/components/spw-card/spw-card-subtags/spw-card-subtags.js +4 -1
  96. package/dist/collection/components/spw-card/spw-card-title/spw-card-title.css +10 -2
  97. package/dist/collection/components/spw-card/spw-card.js +4 -4
  98. package/dist/collection/components/spw-custom-select/spw-custom-select.js +61 -4
  99. package/dist/collection/components/spw-file-upload/spw-file-upload.js +55 -10
  100. package/dist/collection/components/spw-mosaic/spw-mosaic-item/spw-mosaic-item.js +111 -6
  101. package/dist/collection/components/spw-mosaic/spw-mosaic.js +9 -2
  102. package/dist/collection/components/spw-select/spw-select.js +55 -11
  103. package/dist/collection/components/spw-theme-provider/spw-theme-provider.js +2 -2
  104. package/dist/collection/components/spw-tile/spw-tile.css +17 -0
  105. package/dist/collection/stories/organisms/spw-card/spw-card.stories.js +22 -0
  106. package/dist/collection/stories/organisms/spw-grid/spw-grid.stories.js +14 -14
  107. package/dist/collection/stories/organisms/spw-mosaic/spw-mosaic.stories.js +131 -0
  108. package/dist/components/index.js +1 -1
  109. package/dist/components/spw-card-content.js +1 -1
  110. package/dist/components/spw-card-excerpt.js +1 -1
  111. package/dist/components/spw-card-image.js +1 -1
  112. package/dist/components/spw-card-subtag-item.js +1 -1
  113. package/dist/components/spw-card-subtags.js +1 -1
  114. package/dist/components/spw-card-title.js +1 -1
  115. package/dist/components/spw-card.js +1 -1
  116. package/dist/components/spw-custom-select.js +1 -1
  117. package/dist/components/spw-file-upload.js +1 -1
  118. package/dist/components/spw-mosaic-item.js +1 -1
  119. package/dist/components/spw-mosaic.js +4 -4
  120. package/dist/components/spw-select.js +1 -1
  121. package/dist/components/spw-theme-provider.js +1 -1
  122. package/dist/components/spw-tile.js +1 -1
  123. package/dist/components_json.d.ts +26 -0
  124. package/dist/components_json.json +391 -10
  125. package/dist/esm/{index-BhcwOlgO.js → index-zvPT2o70.js} +25 -2
  126. package/dist/esm/loader.js +3 -3
  127. package/dist/esm/spw-accordion_4.entry.js +1 -1
  128. package/dist/esm/spw-breadcrumb-item.entry.js +1 -1
  129. package/dist/esm/spw-breadcrumb.entry.js +1 -1
  130. package/dist/esm/spw-button_2.entry.js +1 -1
  131. package/dist/esm/spw-card-content.entry.js +2 -2
  132. package/dist/esm/spw-card-excerpt.entry.js +2 -2
  133. package/dist/esm/spw-card-image.entry.js +23 -5
  134. package/dist/esm/spw-card-subtag-item.entry.js +2 -2
  135. package/dist/esm/spw-card-subtags.entry.js +6 -3
  136. package/dist/esm/spw-card-title.entry.js +2 -2
  137. package/dist/esm/spw-card.entry.js +3 -3
  138. package/dist/esm/spw-checkbox.entry.js +1 -1
  139. package/dist/esm/spw-cookies.entry.js +1 -1
  140. package/dist/esm/spw-custom-select.entry.js +23 -4
  141. package/dist/esm/spw-date-picker.entry.js +1 -1
  142. package/dist/esm/spw-dropdown-container.entry.js +1 -1
  143. package/dist/esm/spw-dropdown-item.entry.js +1 -1
  144. package/dist/esm/spw-dropdown.entry.js +1 -1
  145. package/dist/esm/spw-field-label_6.entry.js +3 -3
  146. package/dist/esm/spw-field-message.entry.js +1 -1
  147. package/dist/esm/spw-file-upload.entry.js +35 -10
  148. package/dist/esm/spw-footer-bottom.entry.js +1 -1
  149. package/dist/esm/spw-footer-content-col.entry.js +1 -1
  150. package/dist/esm/spw-footer-content.entry.js +1 -1
  151. package/dist/esm/spw-footer-link.entry.js +1 -1
  152. package/dist/esm/spw-footer.entry.js +1 -1
  153. package/dist/esm/spw-grid-item.entry.js +1 -1
  154. package/dist/esm/spw-grid.entry.js +1 -1
  155. package/dist/esm/spw-header-lang-item.entry.js +1 -1
  156. package/dist/esm/spw-header-lang.entry.js +1 -1
  157. package/dist/esm/spw-header-navigation-dropdown.entry.js +1 -1
  158. package/dist/esm/spw-header-navigation-item.entry.js +1 -1
  159. package/dist/esm/spw-header-navigation.entry.js +1 -1
  160. package/dist/esm/spw-header-persona-item.entry.js +1 -1
  161. package/dist/esm/spw-header-persona.entry.js +1 -1
  162. package/dist/esm/spw-header.entry.js +1 -1
  163. package/dist/esm/spw-hero.entry.js +1 -1
  164. package/dist/esm/spw-illustration.entry.js +1 -1
  165. package/dist/esm/spw-list-description.entry.js +1 -1
  166. package/dist/esm/spw-list-item.entry.js +1 -1
  167. package/dist/esm/spw-list-title.entry.js +1 -1
  168. package/dist/esm/spw-list.entry.js +1 -1
  169. package/dist/esm/spw-message.entry.js +1 -1
  170. package/dist/esm/spw-modal.entry.js +1 -1
  171. package/dist/esm/spw-mosaic-item.entry.js +48 -7
  172. package/dist/esm/spw-mosaic.entry.js +6 -3
  173. package/dist/esm/spw-pagination.entry.js +1 -1
  174. package/dist/esm/spw-radio.entry.js +1 -1
  175. package/dist/esm/spw-search-field.entry.js +1 -1
  176. package/dist/esm/spw-select.entry.js +17 -11
  177. package/dist/esm/spw-sidebar-navigation-dropdown.entry.js +1 -1
  178. package/dist/esm/spw-sidebar-navigation-item.entry.js +1 -1
  179. package/dist/esm/spw-sidebar-navigation-separator.entry.js +1 -1
  180. package/dist/esm/spw-sidebar.entry.js +1 -1
  181. package/dist/esm/spw-skeleton.entry.js +1 -1
  182. package/dist/esm/spw-slider-item.entry.js +1 -1
  183. package/dist/esm/spw-slider.entry.js +1 -1
  184. package/dist/esm/spw-socials.entry.js +1 -1
  185. package/dist/esm/spw-stencil-library.js +4 -4
  186. package/dist/esm/spw-table-body.entry.js +1 -1
  187. package/dist/esm/spw-table-cell.entry.js +1 -1
  188. package/dist/esm/spw-table-container.entry.js +1 -1
  189. package/dist/esm/spw-table-footer.entry.js +1 -1
  190. package/dist/esm/spw-table-head.entry.js +1 -1
  191. package/dist/esm/spw-table-header.entry.js +1 -1
  192. package/dist/esm/spw-table-row.entry.js +1 -1
  193. package/dist/esm/spw-table-sidebar.entry.js +1 -1
  194. package/dist/esm/spw-table.entry.js +1 -1
  195. package/dist/esm/spw-tabs-content.entry.js +1 -1
  196. package/dist/esm/spw-tabs-navigation-item.entry.js +1 -1
  197. package/dist/esm/spw-tabs-navigation.entry.js +1 -1
  198. package/dist/esm/spw-tabs.entry.js +1 -1
  199. package/dist/esm/spw-tag.entry.js +1 -1
  200. package/dist/esm/spw-text-field.entry.js +1 -1
  201. package/dist/esm/spw-textarea.entry.js +1 -1
  202. package/dist/esm/spw-tile-description.entry.js +1 -1
  203. package/dist/esm/spw-tile-title.entry.js +1 -1
  204. package/dist/esm/spw-tile.entry.js +2 -2
  205. package/dist/esm/spw-toc-container.entry.js +1 -1
  206. package/dist/esm/spw-toc-navigation.entry.js +1 -1
  207. package/dist/esm/spw-toc.entry.js +1 -1
  208. package/dist/esm/spw-tooltip.entry.js +1 -1
  209. package/dist/esm/spw-topbar.entry.js +1 -1
  210. package/dist/esm/spw-wizard-item.entry.js +1 -1
  211. package/dist/esm/spw-wizard.entry.js +1 -1
  212. package/dist/spw-stencil-library/{p-7889e1ae.entry.js → p-00981af1.entry.js} +1 -1
  213. package/dist/spw-stencil-library/{p-3733b5aa.entry.js → p-02dd5517.entry.js} +1 -1
  214. package/dist/spw-stencil-library/{p-572fbe20.entry.js → p-078261da.entry.js} +1 -1
  215. package/dist/spw-stencil-library/{p-6ccec3e1.entry.js → p-0c886bce.entry.js} +1 -1
  216. package/dist/spw-stencil-library/{p-d8e93516.entry.js → p-0cdb1c7a.entry.js} +3 -3
  217. package/dist/spw-stencil-library/{p-335213ab.entry.js → p-0fa3c5a8.entry.js} +1 -1
  218. package/dist/spw-stencil-library/{p-ebeaaedd.entry.js → p-119dc76e.entry.js} +1 -1
  219. package/dist/spw-stencil-library/{p-e6150dda.entry.js → p-12268f18.entry.js} +1 -1
  220. package/dist/spw-stencil-library/{p-f9eaa983.entry.js → p-154dc79f.entry.js} +1 -1
  221. package/dist/spw-stencil-library/{p-de798509.entry.js → p-158d27f1.entry.js} +1 -1
  222. package/dist/spw-stencil-library/{p-363a2f26.entry.js → p-1b336fd5.entry.js} +1 -1
  223. package/dist/spw-stencil-library/{p-fdbda346.entry.js → p-202af17f.entry.js} +1 -1
  224. package/dist/spw-stencil-library/{p-48d208ee.entry.js → p-20c986a5.entry.js} +1 -1
  225. package/dist/spw-stencil-library/{p-efb0ac80.entry.js → p-210521e8.entry.js} +1 -1
  226. package/dist/spw-stencil-library/{p-76939fb5.entry.js → p-24a568d2.entry.js} +1 -1
  227. package/dist/spw-stencil-library/{p-4a2c3f75.entry.js → p-2a9226ea.entry.js} +1 -1
  228. package/dist/spw-stencil-library/{p-ee3be870.entry.js → p-2d1821a8.entry.js} +1 -1
  229. package/dist/spw-stencil-library/{p-c9b33019.entry.js → p-3026743f.entry.js} +1 -1
  230. package/dist/spw-stencil-library/{p-80eab1b0.entry.js → p-3438de68.entry.js} +1 -1
  231. package/dist/spw-stencil-library/{p-665fd904.entry.js → p-3ebc4d17.entry.js} +1 -1
  232. package/dist/spw-stencil-library/{p-545a148a.entry.js → p-3fd4179c.entry.js} +1 -1
  233. package/dist/spw-stencil-library/{p-14ae8c47.entry.js → p-413de383.entry.js} +1 -1
  234. package/dist/spw-stencil-library/{p-db33ceff.entry.js → p-421bb748.entry.js} +1 -1
  235. package/dist/spw-stencil-library/{p-78c4b828.entry.js → p-438607a5.entry.js} +1 -1
  236. package/dist/spw-stencil-library/{p-f0c7973a.entry.js → p-45896432.entry.js} +1 -1
  237. package/dist/spw-stencil-library/{p-d126356c.entry.js → p-4c785aa5.entry.js} +1 -1
  238. package/dist/spw-stencil-library/{p-601d8677.entry.js → p-5441ea4a.entry.js} +1 -1
  239. package/dist/spw-stencil-library/{p-b29a5f6d.entry.js → p-56888fba.entry.js} +1 -1
  240. package/dist/spw-stencil-library/{p-28914c6c.entry.js → p-57bfd284.entry.js} +1 -1
  241. package/dist/spw-stencil-library/{p-6c5fed80.entry.js → p-59c92982.entry.js} +1 -1
  242. package/dist/spw-stencil-library/{p-e77926c1.entry.js → p-5ac0db5e.entry.js} +1 -1
  243. package/dist/spw-stencil-library/{p-24b404bc.entry.js → p-5b96a70b.entry.js} +1 -1
  244. package/dist/spw-stencil-library/{p-82bdad54.entry.js → p-5df7fe5b.entry.js} +1 -1
  245. package/dist/spw-stencil-library/{p-e8294025.entry.js → p-5f07ebe3.entry.js} +1 -1
  246. package/dist/spw-stencil-library/{p-45bd7e3f.entry.js → p-66c3353a.entry.js} +1 -1
  247. package/dist/spw-stencil-library/{p-f22e24d7.entry.js → p-699d3025.entry.js} +1 -1
  248. package/dist/spw-stencil-library/{p-9e96cfab.entry.js → p-6af7ff85.entry.js} +1 -1
  249. package/dist/spw-stencil-library/{p-4bfb9fe7.entry.js → p-6cdfc785.entry.js} +1 -1
  250. package/dist/spw-stencil-library/{p-153a8379.entry.js → p-72381f94.entry.js} +1 -1
  251. package/dist/spw-stencil-library/{p-079623b3.entry.js → p-7345cc3e.entry.js} +1 -1
  252. package/dist/spw-stencil-library/{p-51dee6d1.entry.js → p-7376d212.entry.js} +1 -1
  253. package/dist/spw-stencil-library/{p-245ec14d.entry.js → p-75cea309.entry.js} +1 -1
  254. package/dist/spw-stencil-library/{p-b14ddb08.entry.js → p-781308b8.entry.js} +1 -1
  255. package/dist/spw-stencil-library/p-795fd046.entry.js +1 -0
  256. package/dist/spw-stencil-library/{p-63777231.entry.js → p-7bd99f06.entry.js} +1 -1
  257. package/dist/spw-stencil-library/{p-0f0e0865.entry.js → p-7ececad8.entry.js} +1 -1
  258. package/dist/spw-stencil-library/{p-af000e35.entry.js → p-7f6da999.entry.js} +1 -1
  259. package/dist/spw-stencil-library/{p-70424f67.entry.js → p-815e4725.entry.js} +1 -1
  260. package/dist/spw-stencil-library/p-82b998aa.entry.js +1 -0
  261. package/dist/spw-stencil-library/{p-ecbd9504.entry.js → p-83e39435.entry.js} +1 -1
  262. package/dist/spw-stencil-library/{p-0b1cd208.entry.js → p-8b968054.entry.js} +1 -1
  263. package/dist/spw-stencil-library/{p-09e6a285.entry.js → p-8ca86d23.entry.js} +1 -1
  264. package/dist/spw-stencil-library/{p-16005257.entry.js → p-91f5df27.entry.js} +1 -1
  265. package/dist/spw-stencil-library/{p-88fc6448.entry.js → p-9a7d7f9d.entry.js} +1 -1
  266. package/dist/spw-stencil-library/{p-907bb470.entry.js → p-a2cb284e.entry.js} +1 -1
  267. package/dist/spw-stencil-library/{p-3e8d5ced.entry.js → p-ab8108e4.entry.js} +1 -1
  268. package/dist/spw-stencil-library/{p-051d07e3.entry.js → p-abe1c922.entry.js} +1 -1
  269. package/dist/spw-stencil-library/{p-0208e5fc.entry.js → p-b2c69e43.entry.js} +1 -1
  270. package/dist/spw-stencil-library/{p-c2f883a7.entry.js → p-bbd5d426.entry.js} +1 -1
  271. package/dist/spw-stencil-library/{p-d4b91d0b.entry.js → p-c0e4684c.entry.js} +1 -1
  272. package/dist/spw-stencil-library/p-c2185607.entry.js +1 -0
  273. package/dist/spw-stencil-library/{p-c3f43f82.entry.js → p-c6ab3133.entry.js} +1 -1
  274. package/dist/spw-stencil-library/{p-ecbb2e9a.entry.js → p-c78fc24d.entry.js} +1 -1
  275. package/dist/spw-stencil-library/{p-40a288b5.entry.js → p-cd302edb.entry.js} +1 -1
  276. package/dist/spw-stencil-library/{p-7eeac846.entry.js → p-d3c32e7f.entry.js} +1 -1
  277. package/dist/spw-stencil-library/{p-abd0df84.entry.js → p-d56223ba.entry.js} +1 -1
  278. package/dist/spw-stencil-library/p-d96571dc.entry.js +1 -0
  279. package/dist/spw-stencil-library/{p-95ad5b00.entry.js → p-df14a8e2.entry.js} +1 -1
  280. package/dist/spw-stencil-library/{p-c833a6fb.entry.js → p-df65ed86.entry.js} +1 -1
  281. package/dist/spw-stencil-library/{p-e03d5d7c.entry.js → p-e1a7ae7c.entry.js} +1 -1
  282. package/dist/spw-stencil-library/{p-adb783f5.entry.js → p-eb3b408f.entry.js} +1 -1
  283. package/dist/spw-stencil-library/{p-db2f9ef2.entry.js → p-ebf9a498.entry.js} +1 -1
  284. package/dist/spw-stencil-library/{p-520fdc55.entry.js → p-ec2a7993.entry.js} +1 -1
  285. package/dist/spw-stencil-library/p-ec558a0d.entry.js +1 -0
  286. package/dist/spw-stencil-library/{p-6b8b8146.entry.js → p-ec74c5a2.entry.js} +1 -1
  287. package/dist/spw-stencil-library/{p-5b5e643f.entry.js → p-ecf92393.entry.js} +1 -1
  288. package/dist/spw-stencil-library/{p-c8870b5a.entry.js → p-ed458c7a.entry.js} +1 -1
  289. package/dist/spw-stencil-library/{p-e1f204c9.entry.js → p-ed55740f.entry.js} +1 -1
  290. package/dist/spw-stencil-library/{p-fc294645.entry.js → p-ed705534.entry.js} +1 -1
  291. package/dist/spw-stencil-library/{p-551ec5c3.entry.js → p-ef42809d.entry.js} +1 -1
  292. package/dist/spw-stencil-library/{p-06faf7dd.entry.js → p-f10354a7.entry.js} +1 -1
  293. package/dist/spw-stencil-library/{p-3e951a12.entry.js → p-f18a97f4.entry.js} +1 -1
  294. package/dist/spw-stencil-library/p-f2a11ced.entry.js +1 -0
  295. package/dist/spw-stencil-library/{p-2770164c.entry.js → p-fec510e9.entry.js} +1 -1
  296. package/dist/spw-stencil-library/{p-BhcwOlgO.js → p-zvPT2o70.js} +1 -1
  297. package/dist/spw-stencil-library/spw-stencil-library.esm.js +1 -1
  298. package/dist/stats.json +1347 -749
  299. package/dist/types/components/spw-card/spw-card-image/spw-card-image.d.ts +8 -1
  300. package/dist/types/components/spw-card/spw-card.d.ts +1 -1
  301. package/dist/types/components/spw-custom-select/spw-custom-select.d.ts +5 -0
  302. package/dist/types/components/spw-file-upload/spw-file-upload.d.ts +3 -1
  303. package/dist/types/components/spw-mosaic/spw-mosaic-item/spw-mosaic-item.d.ts +11 -0
  304. package/dist/types/components/spw-select/spw-select.d.ts +5 -1
  305. package/dist/types/components.d.ts +878 -177
  306. package/dist/types/stencil-public-runtime.d.ts +24 -1
  307. package/dist/types/stories/organisms/spw-card/spw-card.stories.d.ts +1 -0
  308. package/dist/types/stories/organisms/spw-mosaic/spw-mosaic.stories.d.ts +1 -0
  309. package/dist/types/themes/themes.d.ts +10 -10
  310. package/hydrate/index.js +196 -52
  311. package/hydrate/index.mjs +196 -52
  312. package/package.json +1 -1
  313. package/dist/spw-stencil-library/p-38bd2b93.entry.js +0 -1
  314. package/dist/spw-stencil-library/p-a5e811f0.entry.js +0 -1
  315. package/dist/spw-stencil-library/p-a92189cd.entry.js +0 -1
  316. package/dist/spw-stencil-library/p-aad1a377.entry.js +0 -1
  317. package/dist/spw-stencil-library/p-d7ed084c.entry.js +0 -1
  318. package/dist/spw-stencil-library/p-fb0c6681.entry.js +0 -1
@@ -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 s=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}render(){return o("div",{key:"2eecc5747c237f3fa69f9dc5c76f93312694ebcf",class:"spw-card-content"},this.tag&&o("span",{key:"db714664e984681d9b10613a3e2f7b3bb2c8341d",class:"spw-card-content__tag"},this.tag),this.date&&o("time",{key:"32c9d5eef37ab2cdfb2796c2427c006673ae793b","date-time":this.date,class:"spw-card-content__date"},i(this.date)),o("slot",{key:"d9a556a67b5966aaef300f866817d1f34177a772"}))}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:"Nunito Sans"}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;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%}.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(.--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;height:100%;padding-right:80px}: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{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)}.spw-card-content__date{margin-bottom:7px;font-size:15px;font-weight:300;color:var(--spw-color-themes-grey-grey-600)}.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)}'}},[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
+ 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:"2eecc5747c237f3fa69f9dc5c76f93312694ebcf",class:"spw-card-content"},this.tag&&o("span",{key:"db714664e984681d9b10613a3e2f7b3bb2c8341d",class:"spw-card-content__tag"},this.tag),this.date&&o("time",{key:"32c9d5eef37ab2cdfb2796c2427c006673ae793b","date-time":this.date,class:"spw-card-content__date"},i(this.date)),o("slot",{key:"d9a556a67b5966aaef300f866817d1f34177a772"}))}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:"Nunito Sans"}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;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;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)}'}},[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:"1c07254d2fe65659233829111c389d9d169db5f6"},i("div",{key:"1f47cd05a098fa762b037247d350e22bcb1f62e1",class:this.elementClass},i("slot",{key:"0cb6906f90963c364276123555d0cf628f874747"})))}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:"Nunito Sans"}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;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(.--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 p=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:"1c07254d2fe65659233829111c389d9d169db5f6"},i("div",{key:"1f47cd05a098fa762b037247d350e22bcb1f62e1",class:this.elementClass},i("slot",{key:"0cb6906f90963c364276123555d0cf628f874747"})))}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:"Nunito Sans"}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;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:var(--spw-color-themes-grey-grey-400)}: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"]}]),a=p,s=function(){"undefined"!=typeof customElements&&["spw-card-excerpt"].forEach((e=>{"spw-card-excerpt"===e&&(customElements.get(o(e))||customElements.define(o(e),p))}))};export{a 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 s}from"./p-Dzw3OiMu.js";const a=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}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 elementClass(){return{"spw-card-image":!0,"spw-card-image--ratio":!!this.ratio}}render(){return i("div",{key:"cb691336030eaee506f7f5461e4ad4227cf6ee20",class:this.elementClass,style:this.ratio?{"--spw-card-image-ratio":this.ratio}:{}},this.label&&i("span",{key:"237f198be8e6649b755069c9a7c028e24bc3d5dc",class:"spw-card-image__label"},this.label),i("slot",{key:"6e61440a051911ff77cd5101f3ddce679c390a50"}),i("div",{key:"6d3258be72cb36b06050b50b1e28f9e38f1dbfa7",class:"spw-card-image__icon"},i("spw-icon",{key:"3d595d489ce0d1e999bfa33f112da8c0197797b4",icon:"fa-plus"})))}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:"Nunito Sans"}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;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{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(.--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)}.spw-card-image--ratio ::slotted(img),.spw-card-image--ratio img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center}.spw-card-image__icon:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:var(--spw-ds-primary);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:cover;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:cover;object-position:center}:host(.--video){width:100%;height:100%;position:absolute;overflow:hidden;top:0;left:0}:host(.--video):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(.--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:cover;object-position:center}:host(.--video.--hovered):after{opacity:0.6}'}},[257,"spw-card-image",{label:[1],ratio:[1]}]),n=a,r=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),a);break;case"spw-icon":customElements.get(o(e))||s()}}))};export{n as SpwCardImage,r 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-Dzw3OiMu.js";const s=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}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),i("div",{key:"9eccd1cf76ae67c9d55fc09b06729199cef04d30",class:this.elementClass,style:e},this.label&&i("span",{key:"03a6afd8b38bc2a4069adc1be87eebc081ebc526",class:"spw-card-image__label"},this.label),i("slot",{key:"65cbfd02d2497cce0173fd38ebbb0da82b0a4df6"}),i("div",{key:"c96e34df588007c2ae4782118f4de76b4973e9d2",class:"spw-card-image__icon"},i("spw-icon",{key:"3b6c4a3f20e248c2f74f1549f4341bd99376f368",icon:"fa-plus"})))}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:"Nunito Sans"}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;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:cover;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:cover;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:cover;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:cover;object-position:center}:host(.--video.--hovered):after{opacity:0.2}'}},[257,"spw-card-image",{label:[1],ratio:[1],ratioMobile:[1,"ratio-mobile"],ratioTablet:[1,"ratio-tablet"],ratioDesktop:[1,"ratio-desktop"]}]),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 e,H as t,h as i,a as n,t as o}from"./index.js";const s=e(class extends t{constructor(e){super(),!1!==e&&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:"36ba7eba49c04f670603bb3daacef93e9b2d93ec"},i("span",{key:"eb4f408366fedf55a75cd46cea6f7ee43689fae6",class:this.elementClass,onClick:()=>this.handleClick()},i("slot",{key:"54f81a9c1e941414e46c274ee52c4c6e90b79975"})))}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:"Nunito Sans"}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;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(.--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((e=>{"spw-card-subtag-item"===e&&(customElements.get(o(e))||customElements.define(o(e),s))}))};export{a as SpwCardSubtagItem,r as defineCustomElement}
1
+ import{p as e,H as t,h as i,a as n,t as o}from"./index.js";const s=e(class extends t{constructor(e){super(),!1!==e&&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:"36ba7eba49c04f670603bb3daacef93e9b2d93ec"},i("span",{key:"eb4f408366fedf55a75cd46cea6f7ee43689fae6",class:this.elementClass,onClick:()=>this.handleClick()},i("slot",{key:"54f81a9c1e941414e46c274ee52c4c6e90b79975"})))}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:"Nunito Sans"}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;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((e=>{"spw-card-subtag-item"===e&&(customElements.get(o(e))||customElements.define(o(e),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)}))}))}get elementClass(){return{"spw-card-subtags":!0,["spw-card-subtags--"+this.variant]:!0}}render(){return s(i,{key:"f649df17747c0b15e378dc8ed9c8bffd387efc6c"},s("div",{key:"e7fb23264fd9dac808b653faeb293d8f27a56c2d",class:this.elementClass},s("slot",{key:"06c3b96dd8644e797381ffc39ab987080a46bc21"})))}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:"Nunito Sans"}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;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)}.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 i,a as s,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 i(s,{key:"f77ffa5b4f5fe8a47ede2bc8aad7774805e6b92b"},i("div",{key:"b2271dfdb69baf4902ac7725e7276bfa4c48341d",class:this.elementClass},i("slot",{key:"e372a3a027c94ec0e62cf59e144d9128ef1eedfb"})))}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:"Nunito Sans"}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;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 +1 @@
1
- import{p as e,H as t,h as o,a as i,t as n}from"./index.js";const s=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.borderColor=""}render(){return o(i,{key:"d9d66c8671a7d756e79b9a079b4586222cea117a",style:{"--spw-card-title-border-color":this.borderColor}},o("h3",{key:"70c8e8b768ed87e75eaf2217d68e2cbd51408429",class:"spw-card-title"},o("span",{key:"a3945892c82160dda444d395b1e7a05c71b2d0a7",class:"spw-card-title__text"},o("slot",{key:"cf108c616c3dcd817c6f8b72c5d01ff87a30f0f0"}))))}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:"Nunito Sans"}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;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)) .spw-card-title{color:var(--spw-ds-primary)}:host(.--video) .spw-card-title{color:white}: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((e=>{"spw-card-title"===e&&(customElements.get(n(e))||customElements.define(n(e),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:"d9d66c8671a7d756e79b9a079b4586222cea117a",style:{"--spw-card-title-border-color":this.borderColor}},i("h3",{key:"70c8e8b768ed87e75eaf2217d68e2cbd51408429",class:"spw-card-title"},i("span",{key:"a3945892c82160dda444d395b1e7a05c71b2d0a7",class:"spw-card-title__text"},i("slot",{key:"cf108c616c3dcd817c6f8b72c5d01ff87a30f0f0"}))))}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:"Nunito Sans"}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;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 +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},p={"aria-label":null==this?void 0:this.accAriaLabel,"aria-disabled":this.disabled?"true":null};return i(s,{key:"6f0453f5b68c3176fa647d9de45dab2c8d2be7d9",class:{"--is-full-height":this.fullHeight}},i("article",{key:"fb8205ab094afa114abbe2557bc8e9e710f57c67",class:this.elementClass},"event"===r&&i(d,Object.assign({key:"e6bd5924585802d0f819ba418df6cbee036343f6"},l,{class:"spw-card__dates"}),n&&i("div",{key:"fa5dda6da669c408e60a8604ed6cfa84b16cf6cf",class:"spw-card__date-item"},this.formatDate(n)),o&&i("div",{key:"901b9d0c0ca88b0d625d2c068da8fed27c904b0f",class:"spw-card__date-item"},this.formatDate(o))),i(d,Object.assign({key:"801115c5ab07fddcbd0a08d6ad240292ae8c085b"},l,p,{class:"spw-card__link"}),i("slot",{key:"edb7b8815ca7d7ccf775381c9de70258857df7c7"}))))}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:"Nunito Sans"}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;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}'}},[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 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},p={"aria-label":null==this?void 0:this.accAriaLabel,"aria-disabled":this.disabled?"true":null};return i(s,{key:"dd696a972dce8b2dd24bf4a32a91c48d647c8847",class:{"--is-full-height":this.fullHeight}},i("article",{key:"3bedcc715c5ce3999bdd683aec295cf4a5f78afd",class:this.elementClass},"event"===r&&i(d,Object.assign({key:"a562384022c312afe368de3b28d1746a3b0f5398"},l,{class:"spw-card__dates"}),n&&i("div",{key:"1f91f1d6a773c48ff00fb71b0867eafa7b25a53e",class:"spw-card__date-item"},this.formatDate(n)),o&&i("div",{key:"bdce357cf092475ee1792950a686d02601d634bf",class:"spw-card__date-item"},this.formatDate(o))),i(d,Object.assign({key:"8bae3ef221cf1edc713e89d23db08dda41bf22d8"},l,p,{class:"spw-card__link"}),i("slot",{key:"89d675393747eadf75c55396cba1513566c9eace"}))))}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:"Nunito Sans"}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;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}'}},[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 +1 @@
1
- import{p as e,H as s,c as t,h as i,t as o}from"./index.js";import{d as c}from"./p-CbTnWZks.js";import{d as n}from"./p-CIfmnXXp.js";import{d as r}from"./p-DikxciH1.js";import{d as a}from"./p-Dzw3OiMu.js";const l=e(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.valueChanged=t(this,"valueChanged",7),this.internals=this.attachInternals(),this.isOpen=!1,this.parsedOptions=[],this.focusedOptionIndex=null,this.searchText="",this.dropdownDirection="down",this.hasSelectedValue=!1,this.value=[],this.label="",this.placeholder="Sélectionnez une option",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.handleOtherSelectOpened=e=>{e.detail.instance!==this.host&&this.isOpen&&this.closeDropdown()},this.handleClickOutside=e=>{var s,t;if(this.isOpen){const i=e.composedPath()[0],o=this.host.contains(i),c=null===(s=this.host.shadowRoot)||void 0===s?void 0:s.querySelector(".spw-custom-select__search-input"),n=null==c?void 0:c.contains(i);if(!o&&!n){if(this.multiple){const e=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".spw-custom-select__options");if(e&&e.contains(i))return}this.closeDropdown()}}}}componentWillLoad(){if(this.multiple)if("string"==typeof this.value)try{this.internalValue=JSON.parse(this.value)}catch(e){this.internalValue=[]}else this.internalValue=Array.isArray(this.value)?this.value:[];else this.internalValue=this.value;this.items&&this.parseOptions(this.items),this.updateSelectedOption()}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()}formResetCallback(){this.resetSelect()}componentDidLoad(){document.addEventListener("click",this.handleClickOutside),document.addEventListener("spw-custom-select-opened",this.handleOtherSelectOpened),this.internals.setFormValue(this.getFormValue())}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),document.removeEventListener("spw-custom-select-opened",this.handleOtherSelectOpened)}parseOptions(e){try{this.parsedOptions=Array.isArray(e)?e.map((e=>({value:e.value,label:e.label,disabled:e.disabled||!1}))):"string"==typeof e?JSON.parse(e).map((e=>({value:e.value,label:e.label,disabled:e.disabled||!1}))):[],this.updateSelectedOption()}catch(e){this.parsedOptions=[]}}valueChangedHandler(e){this.internalValue=this.multiple?Array.isArray(e)?e:[e]:e,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((e=>this.parsedOptions.some((s=>s.value+""==e+"")))).sort(((e,s)=>this.parsedOptions.findIndex((s=>s.value+""==e+""))-this.parsedOptions.findIndex((e=>e.value+""==s+""))))):this.focusedOptionIndex=this.parsedOptions.findIndex((e=>e.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((e=>e+"")).join(","):null:this.internalValue?this.internalValue+"":null}toggleDropdown(e){if(!this.disabled){if(e){if(e.composedPath()[0].classList.contains("spw-custom-select__search-input"))return;e.stopPropagation()}this.determineDropdownDirection();const s=this.isOpen;this.isOpen=!this.isOpen,this.isOpen&&!s&&this.notifyOtherSelects(),this.isOpen||(this.focusedOptionIndex=null)}}notifyOtherSelects(){const e=new CustomEvent("spw-custom-select-opened",{detail:{instance:this.host},bubbles:!0,composed:!0});document.dispatchEvent(e)}determineDropdownDirection(){const e=this.selectContainer.getBoundingClientRect(),s=window.innerHeight;this.dropdownDirection=e.bottom+200>s&&e.top>200?"up":"down"}openDropdownWithKeyboard(){this.determineDropdownDirection(),this.isOpen=!0,this.focusedOptionIndex=0,this.notifyOtherSelects()}closeDropdown(){this.isOpen=!1,this.focusedOptionIndex=null,this.searchText=""}selectOption(e,s){s&&s.stopPropagation();const t=this.parsedOptions.find((s=>s.value+""==e+""));if(!(null==t?void 0:t.disabled)){if(this.multiple){const s=this.internalValue.findIndex((s=>s+""==e+""));this.internalValue=s>-1?[...this.internalValue.slice(0,s),...this.internalValue.slice(s+1)]:[...this.internalValue,e],this.internalValue=this.internalValue.sort(((e,s)=>this.parsedOptions.findIndex((s=>s.value+""==e+""))-this.parsedOptions.findIndex((e=>e.value+""==s+""))))}else this.internalValue=e,this.closeDropdown();this.value=this.internalValue,this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue),this.updateSelectedOption()}}handleOptionKeyDown(e,s){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.selectOption(s))}handleKeyDown(e){var s,t;if(!e.target.classList.contains("spw-custom-select__search-input"))switch(e.key){case" ":e.preventDefault(),this.isOpen||this.openDropdownWithKeyboard();break;case"ArrowDown":if(e.preventDefault(),this.isOpen){let e=null===this.focusedOptionIndex?0:(this.focusedOptionIndex+1)%this.parsedOptions.length;for(;(null===(s=this.parsedOptions[e])||void 0===s?void 0:s.disabled)&&e!==this.focusedOptionIndex;)e=(e+1)%this.parsedOptions.length;this.focusedOptionIndex=e}else this.openDropdownWithKeyboard();break;case"ArrowUp":if(e.preventDefault(),this.isOpen){let e=null===this.focusedOptionIndex?this.parsedOptions.length-1:(this.focusedOptionIndex-1+this.parsedOptions.length)%this.parsedOptions.length;for(;(null===(t=this.parsedOptions[e])||void 0===t?void 0:t.disabled)&&e!==this.focusedOptionIndex;)e=(e-1+this.parsedOptions.length)%this.parsedOptions.length;this.focusedOptionIndex=e}break;case"Enter":e.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(){return{"spw-custom-select":!0,["spw-custom-select--"+this.size]:!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}}normalizeString(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}getSelectedLabels(){if(this.multiple)return Array.isArray(this.internalValue)&&this.internalValue.length>0?this.internalValue.map((e=>{var s;return null===(s=this.parsedOptions.find((s=>s.value+""==e+"")))||void 0===s?void 0:s.label})).filter(Boolean).join(", "):null;{const e=this.parsedOptions.find((e=>e.value+""==this.internalValue+""));return e?e.label:null}}getFilteredOptions(){const e=this.normalizeString(this.searchText);return this.parsedOptions.filter((s=>this.normalizeString(s.label).includes(e)))}handleSearchInput(e){this.searchText=e.target.value,this.focusedOptionIndex=0,this.isOpen||(this.isOpen=!0,this.notifyOtherSelects())}isSearchVisible(){return!!this.isSearch&&(!this.hasSelectedValue&&!this.isOpen||!(!this.isSearch||!this.isOpen)||this.isOpen)}showPlaceholder(){return!this.isSearch&&!this.hasSelectedValue}render(){const e=this.getFilteredOptions(),s=this.showPlaceholder();return i("div",{key:"b14db7d2386d766368355779964b2aaf1d12883a",class:this.elementClass,ref:e=>this.host=e},this.label&&i("spw-field-label",{key:"23cc951518387d87fb2aac75fcb11d4e386c3a8a",label:this.label,name:this.name,required:this.required}),this.assistiveText&&i("spw-field-message",{key:"5e775c2e0d4f088aeac5936b60fae0d2a53984d5",class:"spw-custom-select__field-message",variant:"hint",showIcon:!1},this.assistiveText),i("div",{key:"09ee394fa2c01bc88fa1d425e21b5873615758b1",class:"spw-custom-select__wrapper"},i("div",{key:"bcfbcc4cbc27591eac8e865af022a60318d42094",class:"spw-custom-select__container",id:this.name,ref:e=>this.selectContainer=e,onClick:e=>this.toggleDropdown(e),onKeyDown:e=>this.handleKeyDown(e),tabindex:this.disabled?-1:0},i("div",{key:"a66d964cc6958f878054c80db72f5a8fec38cc53",class:"spw-custom-select__selected"},this.isSearchVisible()&&i("div",{key:"6c6db72cbd2bfba15d144be535449336196555be",class:"spw-custom-select__search"},i("input",{key:"369521168c90323039c48a41689bd9fb71147ea1",class:"spw-custom-select__search-input",placeholder:"Entrez votre recherche",onInput:e=>this.handleSearchInput(e),value:this.searchText})),s&&i("span",{key:"4840d3a851c1c3c2037f87ef2fd7f7d76d17345d"},this.placeholder),this.multiple&&this.internalValue.length>0&&i("div",{key:"83356082df969a094eeb6bd9688301585448b2d5",class:"spw-custom-select__selected-items"},this.internalValue.map((e=>{var s;return i("span",{class:"spw-custom-select__selected-item"},null===(s=this.parsedOptions.find((s=>s.value+""==e+"")))||void 0===s?void 0:s.label,i("spw-icon",{icon:"fa-times",class:"spw-custom-select__deselect-icon",onClick:s=>this.selectOption(e,s)}))}))),!this.multiple&&i("span",{key:"d3e7903216c507e2fc9fc94bec814a37576b4cc6"},this.getSelectedLabels()))),i("div",{key:"654ca8a8a8b8f57ea7bf9e0488cf1530a03dd646",class:"spw-custom-select__arrow"},i("spw-icon",{key:"c051c6bb9f71ef36e80edda3dd7c9aff4abb8831",icon:this.isOpen?"fa-chevron-up":"fa-chevron-down"})),this.isOpen&&i("div",{key:"ad29aae6e9a08f2e1f56bb570da6fa8cfd3c4ab7",class:"spw-custom-select__options spw-custom-select__options--"+this.dropdownDirection},!!e.length&&i("ul",{key:"33154a536873077036837e0807cc2cf178df3b3c"},e.map(((e,s)=>i("li",{class:{"spw-custom-select__option":!0,"spw-custom-select__option--selected":this.multiple?this.internalValue.some((s=>s+""==e.value+"")):e.value===this.internalValue,"spw-custom-select__option--focused":s===this.focusedOptionIndex,"spw-custom-select__option--disabled":e.disabled},onClick:()=>this.selectOption(e.value)},this.multiple&&i("spw-checkbox",{onKeyDown:s=>this.handleOptionKeyDown(s,e.value),class:"spw-custom-select__checkbox",checked:this.internalValue.some((s=>s+""==e.value+"")),disabled:e.disabled}),e.label)))),!e.length&&i("p",{key:"d715b43bee14b967de36fd7798540c82501ee9ff",class:"spw-custom-select__no-results"},"Pas de résultats pour cette recherche."))),this.renderErrorMessage(),this.renderHintMessage(),this.renderSuccessMessage(),this.renderWarningMessage())}static get formAssociated(){return!0}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:"Nunito Sans"}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;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;border-radius:4px 4px 0 0;border-bottom-color:transparent}.spw-custom-select__selected{flex:1;padding-right:30px;max-width:100%}.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__arrow{position:absolute;right:12px;top:10px;font-size:16px;color:var(--spw-color-themes-grey-grey-600);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}.spw-custom-select--has-value.spw-custom-select--is-opened .spw-custom-select__search{top:auto;top:100%;margin-top:-3px}.spw-custom-select__search-input{padding:0;height:38px;line-height:40px;border:none;margin:0;width:calc(100% - 30px);text-overflow:ellipsis}.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-right:1px solid var(--spw-color-themes-grey-grey-800);width:100%}.spw-custom-select__options{position:absolute;width:100%;background-color:#fff;border:1px solid var(--spw-color-themes-grey-grey-800);border-radius:0 0 4px 4px;max-height:200px;overflow-y:auto;z-index:12}.spw-custom-select__options--down{top:100%;transform:translateY(0)}.spw-custom-select__options--up{top:100%;transform:translateY(0)}.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options{margin-top:35px}.spw-custom-select__no-results{padding:12px;cursor:not-allowed;color:var(--spw-color-themes-grey-grey-600)}.spw-custom-select__option{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__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)}'}},[65,"spw-custom-select",{value:[1544],label:[1],placeholder:[1],disabled:[4],name:[1],required:[4],items:[1],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"],internalValue:[32],isOpen:[32],parsedOptions:[32],focusedOptionIndex:[32],searchText:[32],dropdownDirection:[32],hasSelectedValue:[32],resetSelect:[64]},void 0,{items:[{parseOptions:0}],value:[{valueChangedHandler:0}],internalValue:[{internalValueChanged:0}]}]),h=l,p=function(){"undefined"!=typeof customElements&&["spw-custom-select","spw-checkbox","spw-field-label","spw-field-message","spw-icon"].forEach((e=>{switch(e){case"spw-custom-select":customElements.get(o(e))||customElements.define(o(e),l);break;case"spw-checkbox":customElements.get(o(e))||c();break;case"spw-field-label":customElements.get(o(e))||n();break;case"spw-field-message":customElements.get(o(e))||r();break;case"spw-icon":customElements.get(o(e))||a()}}))};export{h as SpwCustomSelect,p as defineCustomElement}
1
+ import{p as e,H as s,c as t,h as i,t as o}from"./index.js";import{d as n}from"./p-CbTnWZks.js";import{d as c}from"./p-CIfmnXXp.js";import{d as r}from"./p-DikxciH1.js";import{d as a}from"./p-Dzw3OiMu.js";const l=e(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.valueChanged=t(this,"valueChanged",7),this.internals=this.attachInternals(),this.isOpen=!1,this.parsedOptions=[],this.focusedOptionIndex=null,this.searchText="",this.dropdownDirection="down",this.hasSelectedValue=!1,this.value=[],this.label="",this.placeholder="Sélectionnez une option",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.handleOtherSelectOpened=e=>{e.detail.instance!==this.host&&this.isOpen&&this.closeDropdown()},this.handleClickOutside=e=>{var s,t;if(this.isOpen){const i=e.composedPath()[0],o=this.host.contains(i),n=null===(s=this.host.shadowRoot)||void 0===s?void 0:s.querySelector(".spw-custom-select__search-input"),c=null==n?void 0:n.contains(i);if(!o&&!c){if(this.multiple){const e=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".spw-custom-select__options");if(e&&e.contains(i))return}this.closeDropdown()}}}}componentWillLoad(){if(this.multiple)if("string"==typeof this.value)try{this.internalValue=JSON.parse(this.value)}catch(e){this.internalValue=[]}else this.internalValue=Array.isArray(this.value)?this.value:[];else this.internalValue=this.value;this.items&&this.parseOptions(this.items),this.updateSelectedOption()}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(e){this.multiple?(this.internalValue=Array.isArray(e)?e:[e],this.value=this.internalValue):(this.internalValue=e,this.value=e),this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue),this.updateSelectedOption()}async getValue(){return this.internalValue}formResetCallback(){this.resetSelect()}componentDidLoad(){document.addEventListener("click",this.handleClickOutside),document.addEventListener("spw-custom-select-opened",this.handleOtherSelectOpened),this.internals.setFormValue(this.getFormValue())}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),document.removeEventListener("spw-custom-select-opened",this.handleOtherSelectOpened)}parseOptions(e){try{this.parsedOptions=Array.isArray(e)?e.map((e=>({value:e.value,label:e.label,disabled:e.disabled||!1}))):"string"==typeof e?JSON.parse(e).map((e=>({value:e.value,label:e.label,disabled:e.disabled||!1}))):[],this.updateSelectedOption()}catch(e){this.parsedOptions=[]}}valueChangedHandler(e){this.internalValue=this.multiple?Array.isArray(e)?e:[e]:e,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((e=>this.parsedOptions.some((s=>s.value+""==e+"")))).sort(((e,s)=>this.parsedOptions.findIndex((s=>s.value+""==e+""))-this.parsedOptions.findIndex((e=>e.value+""==s+""))))):this.focusedOptionIndex=this.parsedOptions.findIndex((e=>e.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((e=>e+"")).join(","):null:this.internalValue?this.internalValue+"":null}toggleDropdown(e){if(!this.disabled){if(e){if(e.composedPath()[0].classList.contains("spw-custom-select__search-input"))return;e.stopPropagation()}this.determineDropdownDirection();const s=this.isOpen;this.isOpen=!this.isOpen,this.isOpen&&!s&&this.notifyOtherSelects(),this.isOpen||(this.focusedOptionIndex=null)}}notifyOtherSelects(){const e=new CustomEvent("spw-custom-select-opened",{detail:{instance:this.host},bubbles:!0,composed:!0});document.dispatchEvent(e)}determineDropdownDirection(){const e=this.selectContainer.getBoundingClientRect(),s=window.innerHeight;this.dropdownDirection=e.bottom+200>s&&e.top>200?"up":"down"}openDropdownWithKeyboard(){this.determineDropdownDirection(),this.isOpen=!0,this.focusedOptionIndex=0,this.notifyOtherSelects()}closeDropdown(){this.isOpen=!1,this.focusedOptionIndex=null,this.searchText=""}selectOption(e,s){s&&s.stopPropagation();const t=this.parsedOptions.find((s=>s.value+""==e+""));if(!(null==t?void 0:t.disabled)){if(this.multiple){const s=this.internalValue.findIndex((s=>s+""==e+""));this.internalValue=s>-1?[...this.internalValue.slice(0,s),...this.internalValue.slice(s+1)]:[...this.internalValue,e],this.internalValue=this.internalValue.sort(((e,s)=>this.parsedOptions.findIndex((s=>s.value+""==e+""))-this.parsedOptions.findIndex((e=>e.value+""==s+""))))}else this.internalValue=e,this.closeDropdown();this.value=this.internalValue,this.internals.setFormValue(this.getFormValue()),this.valueChanged.emit(this.internalValue),this.updateSelectedOption()}}handleOptionKeyDown(e,s){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.selectOption(s))}handleKeyDown(e){var s,t;if(!e.target.classList.contains("spw-custom-select__search-input"))switch(e.key){case" ":e.preventDefault(),this.isOpen||this.openDropdownWithKeyboard();break;case"ArrowDown":if(e.preventDefault(),this.isOpen){let e=null===this.focusedOptionIndex?0:(this.focusedOptionIndex+1)%this.parsedOptions.length;for(;(null===(s=this.parsedOptions[e])||void 0===s?void 0:s.disabled)&&e!==this.focusedOptionIndex;)e=(e+1)%this.parsedOptions.length;this.focusedOptionIndex=e}else this.openDropdownWithKeyboard();break;case"ArrowUp":if(e.preventDefault(),this.isOpen){let e=null===this.focusedOptionIndex?this.parsedOptions.length-1:(this.focusedOptionIndex-1+this.parsedOptions.length)%this.parsedOptions.length;for(;(null===(t=this.parsedOptions[e])||void 0===t?void 0:t.disabled)&&e!==this.focusedOptionIndex;)e=(e-1+this.parsedOptions.length)%this.parsedOptions.length;this.focusedOptionIndex=e}break;case"Enter":e.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(){return{"spw-custom-select":!0,["spw-custom-select--"+this.size]:!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}}normalizeString(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}getSelectedLabels(){if(this.multiple)return Array.isArray(this.internalValue)&&this.internalValue.length>0?this.internalValue.map((e=>{var s;return null===(s=this.parsedOptions.find((s=>s.value+""==e+"")))||void 0===s?void 0:s.label})).filter(Boolean).join(", "):null;{const e=this.parsedOptions.find((e=>e.value+""==this.internalValue+""));return e?e.label:null}}getFilteredOptions(){const e=this.normalizeString(this.searchText);return this.parsedOptions.filter((s=>this.normalizeString(s.label).includes(e)))}handleSearchInput(e){this.searchText=e.target.value,this.focusedOptionIndex=0,this.isOpen||(this.isOpen=!0,this.notifyOtherSelects())}isSearchVisible(){return!!this.isSearch&&(!this.hasSelectedValue&&!this.isOpen||!(!this.isSearch||!this.isOpen)||this.isOpen)}showPlaceholder(){return!this.isSearch&&!this.hasSelectedValue}render(){const e=this.getFilteredOptions(),s=this.showPlaceholder();return i("div",{key:"5f7702579283fa011eba5c445de1fe29283a0239",class:this.elementClass,ref:e=>this.host=e},this.label&&i("spw-field-label",{key:"451743b7254038fe4257378ac4f7c2206a47c60d",label:this.label,name:this.name,required:this.required}),this.assistiveText&&i("spw-field-message",{key:"817a94b7d7d2a1abd93986f3e03d0f769a6567d0",class:"spw-custom-select__field-message",variant:"hint",showIcon:!1},this.assistiveText),i("div",{key:"cf9e2cd0bcaf1a5bd9143fdf54046a241bd1a527",class:"spw-custom-select__wrapper"},i("div",{key:"21a8fb2e0bb3dba93c582735db2072b150b157e4",class:"spw-custom-select__container",id:this.name,ref:e=>this.selectContainer=e,onClick:e=>this.toggleDropdown(e),onKeyDown:e=>this.handleKeyDown(e),tabindex:this.disabled?-1:0},i("div",{key:"7acaa25439202ea6f30dd3542a757005534b2804",class:"spw-custom-select__selected"},this.isSearchVisible()&&i("div",{key:"e97c879fa5c70402ba331785f73747262e8854e1",class:"spw-custom-select__search"},i("input",{key:"7047f755e5a4aaacf66a78ce80e1ad3520be1b85",class:"spw-custom-select__search-input",placeholder:"Entrez votre recherche",onInput:e=>this.handleSearchInput(e),value:this.searchText})),s&&i("span",{key:"772afa04f989241e8e96c0ed25d444b66f72b282"},this.placeholder),this.multiple&&this.internalValue.length>0&&i("div",{key:"5d101958ee7f28ba19938a9dfbd137067d0c5a45",class:"spw-custom-select__selected-items"},this.internalValue.map((e=>{var s;return i("span",{class:"spw-custom-select__selected-item"},null===(s=this.parsedOptions.find((s=>s.value+""==e+"")))||void 0===s?void 0:s.label,i("spw-icon",{icon:"fa-times",class:"spw-custom-select__deselect-icon",onClick:s=>this.selectOption(e,s)}))}))),!this.multiple&&i("span",{key:"d6e00ae63c72be4e2bd86c4a46f3966cb7681592"},this.getSelectedLabels()))),i("div",{key:"2dbf6b83c3c479e6251291ce13f77f43e1525841",class:"spw-custom-select__arrow"},i("spw-icon",{key:"42e9d62768469dd064ccfca75dcfb45b0e6caf7b",icon:this.isOpen?"fa-chevron-up":"fa-chevron-down"})),this.isOpen&&i("div",{key:"9b53310eda74ea2ee34888a64f43ca5cfb48bca1",class:"spw-custom-select__options spw-custom-select__options--"+this.dropdownDirection},!!e.length&&i("ul",{key:"f30eb6a1d7839f241b9905ee3591ab9eed32e7df"},e.map(((e,s)=>i("li",{class:{"spw-custom-select__option":!0,"spw-custom-select__option--selected":this.multiple?this.internalValue.some((s=>s+""==e.value+"")):e.value===this.internalValue,"spw-custom-select__option--focused":s===this.focusedOptionIndex,"spw-custom-select__option--disabled":e.disabled},onClick:()=>this.selectOption(e.value)},this.multiple&&i("spw-checkbox",{onKeyDown:s=>this.handleOptionKeyDown(s,e.value),class:"spw-custom-select__checkbox",checked:this.internalValue.some((s=>s+""==e.value+"")),disabled:e.disabled}),e.label)))),!e.length&&i("p",{key:"2b8efa73852cff382f97fa73e0f4bf0080b8dee9",class:"spw-custom-select__no-results"},"Pas de résultats pour cette recherche."))),this.renderErrorMessage(),this.renderHintMessage(),this.renderSuccessMessage(),this.renderWarningMessage())}static get formAssociated(){return!0}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:"Nunito Sans"}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;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;border-radius:4px 4px 0 0;border-bottom-color:transparent}.spw-custom-select__selected{flex:1;padding-right:30px;max-width:100%}.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__arrow{position:absolute;right:12px;top:10px;font-size:16px;color:var(--spw-color-themes-grey-grey-600);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}.spw-custom-select--has-value.spw-custom-select--is-opened .spw-custom-select__search{top:auto;top:100%;margin-top:-3px}.spw-custom-select__search-input{padding:0;height:38px;line-height:40px;border:none;margin:0;width:calc(100% - 30px);text-overflow:ellipsis}.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-right:1px solid var(--spw-color-themes-grey-grey-800);width:100%}.spw-custom-select__options{position:absolute;width:100%;background-color:#fff;border:1px solid var(--spw-color-themes-grey-grey-800);border-radius:0 0 4px 4px;max-height:200px;overflow-y:auto;z-index:12}.spw-custom-select__options--down{top:100%;transform:translateY(0)}.spw-custom-select__options--up{top:100%;transform:translateY(0)}.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options{margin-top:35px}.spw-custom-select__no-results{padding:12px;cursor:not-allowed;color:var(--spw-color-themes-grey-grey-600)}.spw-custom-select__option{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__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)}'}},[65,"spw-custom-select",{value:[1544],label:[1],placeholder:[1],disabled:[4],name:[1],required:[4],items:[1],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"],internalValue:[32],isOpen:[32],parsedOptions:[32],focusedOptionIndex:[32],searchText:[32],dropdownDirection:[32],hasSelectedValue:[32],resetSelect:[64],setValue:[64],getValue:[64]},void 0,{items:[{parseOptions:0}],value:[{valueChangedHandler:0}],internalValue:[{internalValueChanged:0}]}]),h=l,p=function(){"undefined"!=typeof customElements&&["spw-custom-select","spw-checkbox","spw-field-label","spw-field-message","spw-icon"].forEach((e=>{switch(e){case"spw-custom-select":customElements.get(o(e))||customElements.define(o(e),l);break;case"spw-checkbox":customElements.get(o(e))||n();break;case"spw-field-label":customElements.get(o(e))||c();break;case"spw-field-message":customElements.get(o(e))||r();break;case"spw-icon":customElements.get(o(e))||a()}}))};export{h as SpwCustomSelect,p as defineCustomElement}
@@ -1 +1 @@
1
- import{p as e,H as i,c as s,h as t,t as o}from"./index.js";import{a}from"./p-BBi01mKM.js";import{d as r}from"./p-CZVOV-PN.js";import{d as n}from"./p-Dzw3OiMu.js";import{d as l}from"./p-7EG4w8ub.js";const p=e(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.spwFileChange=s(this,"spwFileChange",7),this.internals=this.attachInternals(),this.disabled=!1,this.error=!1,this.enableDropZone=!1,this.multiple=!1,this.accept="",this.maxFileSize=100,this.maxFiles=1/0,this.selectedFiles=[],this.fileTypeErrors=[],this.fileLimitErrors=[],this.isDragging=!1,this.isMaxFilesReachedExact=!1}componentWillLoad(){this.internalValue=this.value,this.maxFileSize=1024*this.maxFileSize*1024}componentWillUpdate(){this.value!==this.internalValue&&(this.internalValue=this.value)}get isMaxFilesReached(){return this.selectedFiles.length>=this.maxFiles}handleFileChange(e){const i=e.target,s=i.files?Array.from(i.files):[];this.processFiles(s),i.value=""}processFiles(e){this.fileTypeErrors=[],this.fileLimitErrors=[],this.isMaxFilesReachedExact=!1,this.multiple||(this.selectedFiles=[],e=e.slice(0,1));const i=e.filter((e=>{const i=this.isFileAccepted(e),s=this.isFileSizeValid(e);return i||s?i?!!s||(this.fileTypeErrors.push(e.name+" n'a pas été pris en compte car il dépasse la taille maximale autorisée."),!1):(this.fileTypeErrors.push(e.name+" n'a pas été pris en compte car le format n'est pas autorisé."),!1):(this.fileTypeErrors.push(e.name+" n’a pas été pris en compte car le format n’est pas autorisé et la limite de poids est dépassée."),!1)}));if(this.selectedFiles.length+i.length>=this.maxFiles){const e=this.maxFiles-this.selectedFiles.length;this.selectedFiles.length+i.length===this.maxFiles?(this.isMaxFilesReachedExact=!0,this.fileLimitErrors.push("Vous avez atteint la limite autorisée de fichiers.")):(i.splice(e),this.fileLimitErrors.push(`Vous ne pouvez pas télécharger plus de ${this.maxFiles} ${this.maxFiles>1?"fichiers":"fichier"}.`))}this.selectedFiles=[...this.selectedFiles,...i],this.spwFileChange.emit({files:this.selectedFiles}),this.updateFormValue()}isFileAccepted(e){if(!this.accept)return!0;const i=this.accept.split(",").map((e=>e.trim()));return i.includes(e.type)||i.some((i=>e.name.endsWith(i)))}isFileSizeValid(e){return e.size<=this.maxFileSize}updateFormValue(){if(this.selectedFiles.length>0){const e=new FormData;this.selectedFiles.forEach(((i,s)=>{e.append(`${this.name}[${s}]`,i)})),this.internalValue=""+e,this.internals.setFormValue(e)}else this.internalValue="",this.internals.setFormValue(null)}async resetInput(){this.inputElement.value="",this.selectedFiles=[],this.fileLimitErrors=[],this.fileTypeErrors=[],this.updateFormValue()}formResetCallback(){this.resetInput()}handleDragOver(e){e.preventDefault(),this.disabled||!this.enableDropZone||this.isMaxFilesReached||(this.isDragging=!0)}handleDragLeave(){!this.disabled&&this.enableDropZone&&(this.isDragging=!1)}handleDrop(e){var i;if(e.preventDefault(),!this.disabled&&this.enableDropZone&&!this.isMaxFilesReached){this.isDragging=!1;const s=(null===(i=e.dataTransfer)||void 0===i?void 0:i.files)?Array.from(e.dataTransfer.files):[];this.processFiles(s)}}removeFile(e){this.selectedFiles=this.selectedFiles.filter(((i,s)=>s!==e)),this.fileLimitErrors=[],this.updateFormValue(),this.spwFileChange.emit({files:this.selectedFiles})}handleKeydown(e){" "!==e.key&&"Enter"!==e.key||this.isMaxFilesReached||(e.preventDefault(),!this.disabled&&this.inputElement.click())}get elementClass(){return{"spw-file-upload__wrapper":!0,"spw-file-upload__wrapper--disabled":this.disabled||this.isMaxFilesReached,"spw-file-upload__wrapper--error":this.error,"spw-file-upload--has-dropzone":this.enableDropZone,"spw-file-upload--is-dragging":this.isDragging}}get hintsMessages(){const e=this.accept?this.accept:"tous les formats",i=[];let s=`Taille maximale par fichier : ${this.maxFileSize/1048576} Mo`;return s+=this.multiple&&this.maxFiles!==1/0?` - ${this.maxFiles} ${this.maxFiles>1?"fichiers":"fichier"} maximum.`:".",i.push(s),i.push(`Formats autorisés : ${e}.`),i}render(){const e=this.multiple?"Choisir vos fichiers...":"Choisir votre fichier...",i=this.multiple?"Déposez vos fichiers ici":"Déposez votre fichier ici";return t("div",{key:"196c01c219629f7e3c0b916f3961ac26c4b6ff62",class:this.elementClass,onDragOver:this.handleDragOver.bind(this),onDragLeave:this.handleDragLeave.bind(this),onDrop:this.handleDrop.bind(this)},t("input",{key:"bef05fd986b41b0e113952726eec82aa09c18488",type:"file",ref:e=>this.inputElement=e,onChange:this.handleFileChange.bind(this),name:this.name,multiple:this.multiple,accept:this.accept,style:{display:"none"},disabled:this.isMaxFilesReached}),this.enableDropZone?t("div",{tabindex:this.disabled||this.isMaxFilesReached?-1:0,onKeyDown:this.handleKeydown.bind(this),onClick:()=>!this.disabled&&!this.isMaxFilesReached&&this.inputElement.click(),class:"spw-file-upload__dropzone"},i," ou ",t("span",{class:"spw-file-upload__dropzone-link"},"choisissez sur votre ordinateur...")):t("spw-button",{variant:"secondary",onClick:()=>!this.disabled&&!this.isMaxFilesReached&&this.inputElement.click(),disabled:this.disabled||this.isMaxFilesReached},e),t("div",{key:"f0247eae6e516ccf4e5d18e67274056427fe22b3",class:"spw-file-upload__hints"},this.hintsMessages.length>0&&t("ul",{key:"6616bb81473149b200e199f3db8a2e29b940dfec"},this.hintsMessages.map(((e,i)=>t("li",{key:i},e))))),t("div",{key:"1680d3f03ec73d312bf028069f44c7c8dd614bd3",class:"spw-file-upload__info"},this.selectedFiles.length>0?t("ul",{class:"spw-file-upload__info-list"},this.selectedFiles.map(((e,i)=>t("li",{key:i},t("span",{class:"spw-file-upload__info-list-name"},e.name),t("div",{class:"spw-file-upload__info-list-actions"},t("span",{class:"spw-file-upload__spacing"},a(e.size)),t("a",{class:"spw-file-upload__info-list-delete",href:"#",onClick:e=>{e.preventDefault(),this.removeFile(i)}},"Supprimer")))))):"",this.fileLimitErrors.length>0&&t("ul",{key:"07abd61c8d4fe0644b6ef4699828f718f3df74c7",class:"spw-file-upload__errors "+(this.isMaxFilesReachedExact?"spw-file-upload__errors--warning":"")},this.fileLimitErrors.map(((e,i)=>t("li",{key:i},t("spw-icon",{class:"spw-file-upload__spacing",icon:this.isMaxFilesReachedExact?"fa-circle-exclamation":"fa-warning"}),e)))),this.fileTypeErrors.length>0&&t("ul",{key:"63ad9f2f1894abe7e512d08bebc453001343200a",class:"spw-file-upload__errors"},this.fileTypeErrors.map(((e,i)=>t("li",{key:i},t("spw-icon",{class:"spw-file-upload__spacing",icon:"fa-warning"}),e))))))}static get formAssociated(){return!0}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:"Nunito Sans"}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;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-file-upload{display:block;position:relative}.spw-file-upload__spacing{margin-right:8px}.spw-file-upload__wrapper--error{border-color:#ff4d4d;background-color:#ffe6e6}.spw-file-upload__wrapper--dragging{background-color:#e0f7fa;border-color:#00acc1}.spw-file-upload spw-button{display:inline-block;margin-bottom:8px}.spw-file-upload__errors{font-size:14px;color:var(--spw-colors-dark-themes-red-red-500);font-weight:600}.spw-file-upload__errors li{margin-top:16px}.spw-file-upload__errors--warning{color:var(--spw-color-themes-grey-grey-800);font-weight:400}.spw-file-upload__hints{font-size:14px;color:var(--spw-color-themes-grey-grey-600);margin-top:16px}.spw-file-upload__dropzone{cursor:pointer;color:#555;background:var(--spw-colors-dark-themes-blue-grey-blue-grey-50);padding:20px;border-radius:8px;border:1px dashed #333;font-weight:bold;text-align:center}.spw-file-upload__dropzone:not(.spw-file-upload--disabled):hover{outline:4px solid var(--spw-color-themes-grey-grey-300)}.spw-file-upload__dropzone:not(.spw-file-upload__wrapper--disabled):focus-visible,.spw-file-upload__dropzone:not(.spw-file-upload__wrapper--disabled):active,.spw-file-upload__dropzone:not(.spw-file-upload__wrapper--disabled):focus-within{outline:2px solid var(--spw-ds-focus)}.spw-file-upload__dropzone-link{color:var(--spw-ds-primary);text-decoration:underline}.spw-file-upload__dropzone-link:hover{text-decoration:none}.spw-file-upload__wrapper--disabled .spw-file-upload__dropzone-link{color:inherit;text-decoration:none}.spw-file-upload__wrapper--disabled .spw-file-upload__dropzone{cursor:not-allowed;background:var(--spw-color-themes-grey-grey-100);color:var(--spw-color-themes-grey-grey-400);border-color:var(--spw-color-themes-grey-grey-300);outline:none !important}.spw-file-upload--is-dragging .spw-file-upload__dropzone{background:var(--spw-colors-dark-themes-blue-grey-blue-grey-200)}.spw-file-upload__info-list{margin-top:16px;border-top:1px solid #eee}.spw-file-upload__info-list li{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:center;padding:16px 8px;border-bottom:1px solid #eee;color:var(--spw-color-themes-grey-grey-900);font-size:14px}@media (min-width: 768px){.spw-file-upload__info-list li{flex-wrap:nowrap;gap:16px}}.spw-file-upload__info-list-actions{display:flex;gap:8px}@media (min-width: 768px){.spw-file-upload__info-list-actions{gap:16px}}.spw-file-upload__info-list-delete{color:inherit}.spw-file-upload__info-list-delete:hover{text-decoration:none}'}},[65,"spw-file-upload",{disabled:[4],error:[4],name:[1],value:[1],enableDropZone:[4,"enable-drop-zone"],multiple:[4],accept:[1],maxFileSize:[2,"max-file-size"],maxFiles:[2,"max-files"],internalValue:[32],selectedFiles:[32],fileTypeErrors:[32],fileLimitErrors:[32],isDragging:[32],isMaxFilesReachedExact:[32],resetInput:[64]}]),d=p,h=function(){"undefined"!=typeof customElements&&["spw-file-upload","spw-button","spw-icon","spw-loading"].forEach((e=>{switch(e){case"spw-file-upload":customElements.get(o(e))||customElements.define(o(e),p);break;case"spw-button":customElements.get(o(e))||r();break;case"spw-icon":customElements.get(o(e))||n();break;case"spw-loading":customElements.get(o(e))||l()}}))};export{d as SpwFileUpload,h as defineCustomElement}
1
+ import{p as e,H as i,c as s,h as t,t as o}from"./index.js";import{a}from"./p-BBi01mKM.js";import{d as r}from"./p-CZVOV-PN.js";import{d as n}from"./p-Dzw3OiMu.js";import{d as l}from"./p-7EG4w8ub.js";const p=e(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.spwFileChange=s(this,"spwFileChange",7),this.internals=this.attachInternals(),this.disabled=!1,this.error=!1,this.enableDropZone=!1,this.multiple=!1,this.accept="",this.refuse="",this.maxFileSize=100,this.maxFiles=1/0,this.selectedFiles=[],this.fileTypeErrors=[],this.fileLimitErrors=[],this.isDragging=!1,this.isMaxFilesReachedExact=!1}componentWillLoad(){this.internalValue=this.value,this.maxFileSize=1024*this.maxFileSize*1024,this.accept&&this.refuse&&console.warn('spw-file-upload: Vous ne pouvez pas utiliser "accept" et "refuse" en même temps. Seul "accept" sera pris en compte.')}componentWillUpdate(){this.value!==this.internalValue&&(this.internalValue=this.value)}get isMaxFilesReached(){return this.selectedFiles.length>=this.maxFiles}handleFileChange(e){const i=e.target,s=i.files?Array.from(i.files):[];this.processFiles(s),i.value=""}processFiles(e){this.fileTypeErrors=[],this.fileLimitErrors=[],this.isMaxFilesReachedExact=!1,this.multiple||(this.selectedFiles=[],e=e.slice(0,1));const i=e.filter((e=>{const i=this.isFileAccepted(e),s=this.isFileSizeValid(e);return i||s?i?!!s||(this.fileTypeErrors.push(e.name+" n'a pas été pris en compte car il dépasse la taille maximale autorisée."),!1):(this.fileTypeErrors.push(e.name+" n'a pas été pris en compte car le format n'est pas autorisé."),!1):(this.fileTypeErrors.push(e.name+" n’a pas été pris en compte car le format n’est pas autorisé et la limite de poids est dépassée."),!1)}));if(this.selectedFiles.length+i.length>=this.maxFiles){const e=this.maxFiles-this.selectedFiles.length;this.selectedFiles.length+i.length===this.maxFiles?(this.isMaxFilesReachedExact=!0,this.fileLimitErrors.push("Vous avez atteint la limite autorisée de fichiers.")):(i.splice(e),this.fileLimitErrors.push(`Vous ne pouvez pas télécharger plus de ${this.maxFiles} ${this.maxFiles>1?"fichiers":"fichier"}.`))}this.selectedFiles=[...this.selectedFiles,...i],this.spwFileChange.emit({files:this.selectedFiles}),this.updateFormValue()}isFileAccepted(e){if(this.accept&&this.refuse){const i=this.accept.split(",").map((e=>e.trim()));return i.includes(e.type)||i.some((i=>e.name.endsWith(i)))}if(this.accept){const i=this.accept.split(",").map((e=>e.trim()));return i.includes(e.type)||i.some((i=>e.name.endsWith(i)))}if(this.refuse){const i=this.refuse.split(",").map((e=>e.trim()));return!(i.includes(e.type)||i.some((i=>e.name.endsWith(i))))}return!0}isFileSizeValid(e){return e.size<=this.maxFileSize}updateFormValue(){if(this.selectedFiles.length>0){const e=new FormData;this.selectedFiles.forEach(((i,s)=>{e.append(`${this.name}[${s}]`,i)})),this.internalValue=""+e,this.internals.setFormValue(e)}else this.internalValue="",this.internals.setFormValue(null)}async resetInput(){this.inputElement.value="",this.selectedFiles=[],this.fileLimitErrors=[],this.fileTypeErrors=[],this.updateFormValue()}formResetCallback(){this.resetInput()}handleDragOver(e){e.preventDefault(),this.disabled||!this.enableDropZone||this.isMaxFilesReached||(this.isDragging=!0)}handleDragLeave(){!this.disabled&&this.enableDropZone&&(this.isDragging=!1)}handleDrop(e){var i;if(e.preventDefault(),!this.disabled&&this.enableDropZone&&!this.isMaxFilesReached){this.isDragging=!1;const s=(null===(i=e.dataTransfer)||void 0===i?void 0:i.files)?Array.from(e.dataTransfer.files):[];this.processFiles(s)}}removeFile(e){this.selectedFiles=this.selectedFiles.filter(((i,s)=>s!==e)),this.fileLimitErrors=[],this.updateFormValue(),this.spwFileChange.emit({files:this.selectedFiles})}handleKeydown(e){" "!==e.key&&"Enter"!==e.key||this.isMaxFilesReached||(e.preventDefault(),!this.disabled&&this.inputElement.click())}get elementClass(){return{"spw-file-upload__wrapper":!0,"spw-file-upload__wrapper--disabled":this.disabled||this.isMaxFilesReached,"spw-file-upload__wrapper--error":this.error,"spw-file-upload--has-dropzone":this.enableDropZone,"spw-file-upload--is-dragging":this.isDragging}}get hintsMessages(){const e=[];let i=`Taille maximale par fichier : ${this.maxFileSize/1048576} Mo`;return i+=this.multiple&&this.maxFiles!==1/0?` - ${this.maxFiles} ${this.maxFiles>1?"fichiers":"fichier"} maximum.`:".",e.push(i),e.push(this.accept&&this.refuse||this.accept?`Formats autorisés : ${this.accept}.`:this.refuse?`Formats refusés : ${this.refuse}.`:"Formats autorisés : tous les formats."),e}render(){const e=this.multiple?"Choisir vos fichiers...":"Choisir votre fichier...",i=this.multiple?"Déposez vos fichiers ici":"Déposez votre fichier ici";return t("div",{key:"501bc95288cc670462c4545d44db80758195ddda",class:this.elementClass,onDragOver:this.handleDragOver.bind(this),onDragLeave:this.handleDragLeave.bind(this),onDrop:this.handleDrop.bind(this)},t("input",{key:"6bf6586de3919a1f913ad7b371d83d322f6385a3",type:"file",ref:e=>this.inputElement=e,onChange:this.handleFileChange.bind(this),name:this.name,multiple:this.multiple,accept:this.accept,style:{display:"none"},disabled:this.isMaxFilesReached}),this.enableDropZone?t("div",{tabindex:this.disabled||this.isMaxFilesReached?-1:0,onKeyDown:this.handleKeydown.bind(this),onClick:()=>!this.disabled&&!this.isMaxFilesReached&&this.inputElement.click(),class:"spw-file-upload__dropzone"},i," ou ",t("span",{class:"spw-file-upload__dropzone-link"},"choisissez sur votre ordinateur...")):t("spw-button",{variant:"secondary",onClick:()=>!this.disabled&&!this.isMaxFilesReached&&this.inputElement.click(),disabled:this.disabled||this.isMaxFilesReached},e),t("div",{key:"082e5f3f10f27b6435dcf47b5688d03b42d034f5",class:"spw-file-upload__hints"},this.hintsMessages.length>0&&t("ul",{key:"62495fffa5ee797c7787535af7c349e18a3076b5"},this.hintsMessages.map(((e,i)=>t("li",{key:i},e))))),t("div",{key:"d21de5e0f796829746ae8d3dc981e3150219f72e",class:"spw-file-upload__info"},this.selectedFiles.length>0?t("ul",{class:"spw-file-upload__info-list"},this.selectedFiles.map(((e,i)=>t("li",{key:i},t("span",{class:"spw-file-upload__info-list-name"},e.name),t("div",{class:"spw-file-upload__info-list-actions"},t("span",{class:"spw-file-upload__spacing"},a(e.size)),t("a",{class:"spw-file-upload__info-list-delete",href:"#",onClick:e=>{e.preventDefault(),this.removeFile(i)}},"Supprimer")))))):"",this.fileLimitErrors.length>0&&t("ul",{key:"7b4415ba4316aec17e08d91a6057505877686c2e",class:"spw-file-upload__errors "+(this.isMaxFilesReachedExact?"spw-file-upload__errors--warning":"")},this.fileLimitErrors.map(((e,i)=>t("li",{key:i},t("spw-icon",{class:"spw-file-upload__spacing",icon:this.isMaxFilesReachedExact?"fa-circle-exclamation":"fa-warning"}),e)))),this.fileTypeErrors.length>0&&t("ul",{key:"0372034644a7a3158dc32933f8e431e487543d9a",class:"spw-file-upload__errors"},this.fileTypeErrors.map(((e,i)=>t("li",{key:i},t("spw-icon",{class:"spw-file-upload__spacing",icon:"fa-warning"}),e))))))}static get formAssociated(){return!0}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:"Nunito Sans"}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;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-file-upload{display:block;position:relative}.spw-file-upload__spacing{margin-right:8px}.spw-file-upload__wrapper--error{border-color:#ff4d4d;background-color:#ffe6e6}.spw-file-upload__wrapper--dragging{background-color:#e0f7fa;border-color:#00acc1}.spw-file-upload spw-button{display:inline-block;margin-bottom:8px}.spw-file-upload__errors{font-size:14px;color:var(--spw-colors-dark-themes-red-red-500);font-weight:600}.spw-file-upload__errors li{margin-top:16px}.spw-file-upload__errors--warning{color:var(--spw-color-themes-grey-grey-800);font-weight:400}.spw-file-upload__hints{font-size:14px;color:var(--spw-color-themes-grey-grey-600);margin-top:16px}.spw-file-upload__dropzone{cursor:pointer;color:#555;background:var(--spw-colors-dark-themes-blue-grey-blue-grey-50);padding:20px;border-radius:8px;border:1px dashed #333;font-weight:bold;text-align:center}.spw-file-upload__dropzone:not(.spw-file-upload--disabled):hover{outline:4px solid var(--spw-color-themes-grey-grey-300)}.spw-file-upload__dropzone:not(.spw-file-upload__wrapper--disabled):focus-visible,.spw-file-upload__dropzone:not(.spw-file-upload__wrapper--disabled):active,.spw-file-upload__dropzone:not(.spw-file-upload__wrapper--disabled):focus-within{outline:2px solid var(--spw-ds-focus)}.spw-file-upload__dropzone-link{color:var(--spw-ds-primary);text-decoration:underline}.spw-file-upload__dropzone-link:hover{text-decoration:none}.spw-file-upload__wrapper--disabled .spw-file-upload__dropzone-link{color:inherit;text-decoration:none}.spw-file-upload__wrapper--disabled .spw-file-upload__dropzone{cursor:not-allowed;background:var(--spw-color-themes-grey-grey-100);color:var(--spw-color-themes-grey-grey-400);border-color:var(--spw-color-themes-grey-grey-300);outline:none !important}.spw-file-upload--is-dragging .spw-file-upload__dropzone{background:var(--spw-colors-dark-themes-blue-grey-blue-grey-200)}.spw-file-upload__info-list{margin-top:16px;border-top:1px solid #eee}.spw-file-upload__info-list li{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:center;padding:16px 8px;border-bottom:1px solid #eee;color:var(--spw-color-themes-grey-grey-900);font-size:14px}@media (min-width: 768px){.spw-file-upload__info-list li{flex-wrap:nowrap;gap:16px}}.spw-file-upload__info-list-actions{display:flex;gap:8px}@media (min-width: 768px){.spw-file-upload__info-list-actions{gap:16px}}.spw-file-upload__info-list-delete{color:inherit}.spw-file-upload__info-list-delete:hover{text-decoration:none}'}},[65,"spw-file-upload",{disabled:[4],error:[4],name:[1],value:[1],enableDropZone:[4,"enable-drop-zone"],multiple:[4],accept:[1],refuse:[1],maxFileSize:[2,"max-file-size"],maxFiles:[2,"max-files"],internalValue:[32],selectedFiles:[32],fileTypeErrors:[32],fileLimitErrors:[32],isDragging:[32],isMaxFilesReachedExact:[32],resetInput:[64]}]),d=p,h=function(){"undefined"!=typeof customElements&&["spw-file-upload","spw-button","spw-icon","spw-loading"].forEach((e=>{switch(e){case"spw-file-upload":customElements.get(o(e))||customElements.define(o(e),p);break;case"spw-button":customElements.get(o(e))||r();break;case"spw-icon":customElements.get(o(e))||n();break;case"spw-loading":customElements.get(o(e))||l()}}))};export{d as SpwFileUpload,h as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as i,h as e,a as s,t as o}from"./index.js";const a=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}componentDidLoad(){this.el.closest("spw-mosaic").addEventListener("mosaicConfigurationChanged",this.handleConfigurationChange.bind(this))}disconnectedCallback(){this.el.closest("spw-mosaic").removeEventListener("mosaicConfigurationChanged",this.handleConfigurationChange.bind(this))}handleConfigurationChange(t){const{colsMobile:i,colsTablet:e,colsDesktop:s}=t.detail;this.el.style.setProperty("--spw-mosaic-item-width-mobile",`calc(100% / ${i})`),this.el.style.setProperty("--spw-mosaic-item-width-tablet",`calc(100% / ${e})`),this.el.style.setProperty("--spw-mosaic-item-width-desktop",`calc(100% / ${s})`)}render(){return e(s,{key:"9d7ac5809bee8a8ecf58bdee19a341eaffd217ef"},e("slot",{key:"9adf812c99dc0ffcd918327672027395fc3db797"}))}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:"Nunito Sans"}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;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{--spw-mosaic-item-width-mobile:100%;--spw-mosaic-item-width-tablet:100%;--spw-mosaic-item-width-desktop:100%;width:var(--spw-mosaic-item-width-mobile);padding:0 12px;margin-bottom:24px}@media (min-width: 768px){:host{width:var(--spw-mosaic-item-width-tablet)}}@media (min-width: 1024px){:host{width:var(--spw-mosaic-item-width-desktop)}}.spw-mobile-1{--spw-mosaic-item-width-mobile:calc(100% / 1)}.spw-tablet-1{--spw-mosaic-item-width-tablet:calc(100% / 1)}.spw-desktop-1{--spw-mosaic-item-width-desktop:calc(100% / 1)}.spw-mobile-2{--spw-mosaic-item-width-mobile:calc(100% / 2)}.spw-tablet-2{--spw-mosaic-item-width-tablet:calc(100% / 2)}.spw-desktop-2{--spw-mosaic-item-width-desktop:calc(100% / 2)}.spw-mobile-3{--spw-mosaic-item-width-mobile:calc(100% / 3)}.spw-tablet-3{--spw-mosaic-item-width-tablet:calc(100% / 3)}.spw-desktop-3{--spw-mosaic-item-width-desktop:calc(100% / 3)}.spw-mobile-4{--spw-mosaic-item-width-mobile:calc(100% / 4)}.spw-tablet-4{--spw-mosaic-item-width-tablet:calc(100% / 4)}.spw-desktop-4{--spw-mosaic-item-width-desktop:calc(100% / 4)}.spw-mobile-5{--spw-mosaic-item-width-mobile:calc(100% / 5)}.spw-tablet-5{--spw-mosaic-item-width-tablet:calc(100% / 5)}.spw-desktop-5{--spw-mosaic-item-width-desktop:calc(100% / 5)}.spw-mobile-6{--spw-mosaic-item-width-mobile:calc(100% / 6)}.spw-tablet-6{--spw-mosaic-item-width-tablet:calc(100% / 6)}.spw-desktop-6{--spw-mosaic-item-width-desktop:calc(100% / 6)}.spw-mobile-7{--spw-mosaic-item-width-mobile:calc(100% / 7)}.spw-tablet-7{--spw-mosaic-item-width-tablet:calc(100% / 7)}.spw-desktop-7{--spw-mosaic-item-width-desktop:calc(100% / 7)}.spw-mobile-8{--spw-mosaic-item-width-mobile:calc(100% / 8)}.spw-tablet-8{--spw-mosaic-item-width-tablet:calc(100% / 8)}.spw-desktop-8{--spw-mosaic-item-width-desktop:calc(100% / 8)}.spw-mobile-9{--spw-mosaic-item-width-mobile:calc(100% / 9)}.spw-tablet-9{--spw-mosaic-item-width-tablet:calc(100% / 9)}.spw-desktop-9{--spw-mosaic-item-width-desktop:calc(100% / 9)}.spw-mobile-10{--spw-mosaic-item-width-mobile:calc(100% / 10)}.spw-tablet-10{--spw-mosaic-item-width-tablet:calc(100% / 10)}.spw-desktop-10{--spw-mosaic-item-width-desktop:calc(100% / 10)}.spw-mobile-11{--spw-mosaic-item-width-mobile:calc(100% / 11)}.spw-tablet-11{--spw-mosaic-item-width-tablet:calc(100% / 11)}.spw-desktop-11{--spw-mosaic-item-width-desktop:calc(100% / 11)}.spw-mobile-12{--spw-mosaic-item-width-mobile:calc(100% / 12)}.spw-tablet-12{--spw-mosaic-item-width-tablet:calc(100% / 12)}.spw-desktop-12{--spw-mosaic-item-width-desktop:calc(100% / 12)}'}},[257,"spw-mosaic-item"]),m=a,p=function(){"undefined"!=typeof customElements&&["spw-mosaic-item"].forEach((t=>{"spw-mosaic-item"===t&&(customElements.get(o(t))||customElements.define(o(t),a))}))};export{m as SpwMosaicItem,p as defineCustomElement}
1
+ import{p as t,H as i,h as e,a as s,t as o}from"./index.js";const a=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.parentColsMobile=1,this.parentColsTablet=2,this.parentColsDesktop=3}componentDidLoad(){var t;null===(t=this.el.closest("spw-mosaic"))||void 0===t||t.addEventListener("mosaicConfigurationChanged",this.handleConfigurationChange.bind(this)),this.applyColSpans()}disconnectedCallback(){var t;null===(t=this.el.closest("spw-mosaic"))||void 0===t||t.removeEventListener("mosaicConfigurationChanged",this.handleConfigurationChange.bind(this))}colSpanChanged(){this.applyColSpans()}handleConfigurationChange(t){const{colsMobile:i,colsTablet:e,colsDesktop:s}=t.detail;this.parentColsMobile=i,this.parentColsTablet=e,this.parentColsDesktop=s,this.applyColSpans()}applyColSpans(){this.el.style.setProperty("--spw-mosaic-item-width-mobile",this.colSpanMobile?`calc(100% / ${this.parentColsMobile} * ${this.colSpanMobile})`:`calc(100% / ${this.parentColsMobile})`),this.el.style.setProperty("--spw-mosaic-item-width-tablet",this.colSpanTablet?`calc(100% / ${this.parentColsTablet} * ${this.colSpanTablet})`:`calc(100% / ${this.parentColsTablet})`),this.el.style.setProperty("--spw-mosaic-item-width-desktop",this.colSpanDesktop?`calc(100% / ${this.parentColsDesktop} * ${this.colSpanDesktop})`:`calc(100% / ${this.parentColsDesktop})`)}render(){return e(s,{key:"c63e3ce803e887c548341162f7a890bfd1a315c4"},e("slot",{key:"b57cee581ed137ca253db8790b40a8e2ba28a201"}))}get el(){return this}static get watchers(){return{colSpanMobile:[{colSpanChanged:0}],colSpanTablet:[{colSpanChanged:0}],colSpanDesktop:[{colSpanChanged: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:"Nunito Sans"}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;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{--spw-mosaic-item-width-mobile:100%;--spw-mosaic-item-width-tablet:100%;--spw-mosaic-item-width-desktop:100%;width:var(--spw-mosaic-item-width-mobile);padding:0 12px;margin-bottom:24px}@media (min-width: 768px){:host{width:var(--spw-mosaic-item-width-tablet)}}@media (min-width: 1024px){:host{width:var(--spw-mosaic-item-width-desktop)}}.spw-mobile-1{--spw-mosaic-item-width-mobile:calc(100% / 1)}.spw-tablet-1{--spw-mosaic-item-width-tablet:calc(100% / 1)}.spw-desktop-1{--spw-mosaic-item-width-desktop:calc(100% / 1)}.spw-mobile-2{--spw-mosaic-item-width-mobile:calc(100% / 2)}.spw-tablet-2{--spw-mosaic-item-width-tablet:calc(100% / 2)}.spw-desktop-2{--spw-mosaic-item-width-desktop:calc(100% / 2)}.spw-mobile-3{--spw-mosaic-item-width-mobile:calc(100% / 3)}.spw-tablet-3{--spw-mosaic-item-width-tablet:calc(100% / 3)}.spw-desktop-3{--spw-mosaic-item-width-desktop:calc(100% / 3)}.spw-mobile-4{--spw-mosaic-item-width-mobile:calc(100% / 4)}.spw-tablet-4{--spw-mosaic-item-width-tablet:calc(100% / 4)}.spw-desktop-4{--spw-mosaic-item-width-desktop:calc(100% / 4)}.spw-mobile-5{--spw-mosaic-item-width-mobile:calc(100% / 5)}.spw-tablet-5{--spw-mosaic-item-width-tablet:calc(100% / 5)}.spw-desktop-5{--spw-mosaic-item-width-desktop:calc(100% / 5)}.spw-mobile-6{--spw-mosaic-item-width-mobile:calc(100% / 6)}.spw-tablet-6{--spw-mosaic-item-width-tablet:calc(100% / 6)}.spw-desktop-6{--spw-mosaic-item-width-desktop:calc(100% / 6)}.spw-mobile-7{--spw-mosaic-item-width-mobile:calc(100% / 7)}.spw-tablet-7{--spw-mosaic-item-width-tablet:calc(100% / 7)}.spw-desktop-7{--spw-mosaic-item-width-desktop:calc(100% / 7)}.spw-mobile-8{--spw-mosaic-item-width-mobile:calc(100% / 8)}.spw-tablet-8{--spw-mosaic-item-width-tablet:calc(100% / 8)}.spw-desktop-8{--spw-mosaic-item-width-desktop:calc(100% / 8)}.spw-mobile-9{--spw-mosaic-item-width-mobile:calc(100% / 9)}.spw-tablet-9{--spw-mosaic-item-width-tablet:calc(100% / 9)}.spw-desktop-9{--spw-mosaic-item-width-desktop:calc(100% / 9)}.spw-mobile-10{--spw-mosaic-item-width-mobile:calc(100% / 10)}.spw-tablet-10{--spw-mosaic-item-width-tablet:calc(100% / 10)}.spw-desktop-10{--spw-mosaic-item-width-desktop:calc(100% / 10)}.spw-mobile-11{--spw-mosaic-item-width-mobile:calc(100% / 11)}.spw-tablet-11{--spw-mosaic-item-width-tablet:calc(100% / 11)}.spw-desktop-11{--spw-mosaic-item-width-desktop:calc(100% / 11)}.spw-mobile-12{--spw-mosaic-item-width-mobile:calc(100% / 12)}.spw-tablet-12{--spw-mosaic-item-width-tablet:calc(100% / 12)}.spw-desktop-12{--spw-mosaic-item-width-desktop:calc(100% / 12)}'}},[257,"spw-mosaic-item",{colSpanMobile:[2,"col-span-mobile"],colSpanTablet:[2,"col-span-tablet"],colSpanDesktop:[2,"col-span-desktop"]},void 0,{colSpanMobile:[{colSpanChanged:0}],colSpanTablet:[{colSpanChanged:0}],colSpanDesktop:[{colSpanChanged:0}]}]),p=a,c=function(){"undefined"!=typeof customElements&&["spw-mosaic-item"].forEach((t=>{"spw-mosaic-item"===t&&(customElements.get(o(t))||customElements.define(o(t),a))}))};export{p as SpwMosaicItem,c as defineCustomElement}
@@ -1,18 +1,18 @@
1
- import{p as t,H as i,h as n,a as s,t as o}from"./index.js";import{g as e}from"./p-B85MJLTf.js";var r,h={exports:{}},a={exports:{}},u={exports:{}},c=u.exports;function f(){return r||(r=1,function(t){!function(i,n){t.exports?t.exports=n():i.EvEmitter=n()}("undefined"!=typeof window?window:c,(function(){function t(){}var i=t.prototype;return i.on=function(t,i){if(t&&i){var n=this._events=this._events||{},s=n[t]=n[t]||[];return-1==s.indexOf(i)&&s.push(i),this}},i.once=function(t,i){if(t&&i){this.on(t,i);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[i]=!0,this}},i.off=function(t,i){var n=this._events&&this._events[t];if(n&&n.length){var s=n.indexOf(i);return-1!=s&&n.splice(s,1),this}},i.emitEvent=function(t,i){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),i=i||[];for(var s=this._onceEvents&&this._onceEvents[t],o=0;o<n.length;o++){var e=n[o];s&&s[e]&&(this.off(t,e),delete s[e]),e.apply(this,i)}return this}},i.allOff=function(){delete this._events,delete this._onceEvents},t}))}(u)),u.exports}var d,l={exports:{}};
1
+ import{p as t,H as i,h as n,a as s,t as o}from"./index.js";import{g as e}from"./p-B85MJLTf.js";var r,h={exports:{}},a={exports:{}},u={exports:{}},f=u.exports;function c(){return r||(r=1,function(t){!function(i,n){t.exports?t.exports=n():i.EvEmitter=n()}("undefined"!=typeof window?window:f,(function(){function t(){}var i=t.prototype;return i.on=function(t,i){if(t&&i){var n=this._events=this._events||{},s=n[t]=n[t]||[];return-1==s.indexOf(i)&&s.push(i),this}},i.once=function(t,i){if(t&&i){this.on(t,i);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[i]=!0,this}},i.off=function(t,i){var n=this._events&&this._events[t];if(n&&n.length){var s=n.indexOf(i);return-1!=s&&n.splice(s,1),this}},i.emitEvent=function(t,i){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),i=i||[];for(var s=this._onceEvents&&this._onceEvents[t],o=0;o<n.length;o++){var e=n[o];s&&s[e]&&(this.off(t,e),delete s[e]),e.apply(this,i)}return this}},i.allOff=function(){delete this._events,delete this._onceEvents},t}))}(u)),u.exports}var d,l={exports:{}};
2
2
  /*!
3
3
  * getSize v2.0.3
4
4
  * measure size of elements
5
5
  * MIT license
6
- */function p(){return d||(d=1,function(t){!function(i,n){t.exports?t.exports=n():i.getSize=n()}(window,(function(){function t(t){var i=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(i)&&i}var i=void 0===console?function(){}:function(t){console.error(t)},n=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],s=n.length;function o(t){var n=getComputedStyle(t);return n||i("Style returned "+n+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),n}var e,r=!1;return function i(h){if(function(){if(!r){r=!0;var n=document.createElement("div");n.style.width="200px",n.style.padding="1px 2px 3px 4px",n.style.borderStyle="solid",n.style.borderWidth="1px 2px 3px 4px",n.style.boxSizing="border-box";var s=document.body||document.documentElement;s.appendChild(n);var h=o(n);e=200==Math.round(t(h.width)),i.isBoxSizeOuter=e,s.removeChild(n)}}(),"string"==typeof h&&(h=document.querySelector(h)),h&&"object"==typeof h&&h.nodeType){var a=o(h);if("none"==a.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},i=0;i<s;i++)t[n[i]]=0;return t}();var u={};u.width=h.offsetWidth,u.height=h.offsetHeight;for(var c=u.isBorderBox="border-box"==a.boxSizing,f=0;f<s;f++){var d=n[f],l=parseFloat(a[d]);u[d]=isNaN(l)?0:l}var p=u.paddingLeft+u.paddingRight,m=u.paddingTop+u.paddingBottom,v=u.marginLeft+u.marginRight,g=u.marginTop+u.marginBottom,b=u.borderLeftWidth+u.borderRightWidth,y=u.borderTopWidth+u.borderBottomWidth,w=c&&e,x=t(a.width);!1!==x&&(u.width=x+(w?0:p+b));var z=t(a.height);return!1!==z&&(u.height=z+(w?0:m+y)),u.innerWidth=u.width-(p+b),u.innerHeight=u.height-(m+y),u.outerWidth=u.width+v,u.outerHeight=u.height+g,u}}}))}(l)),l.exports}var m,v,g={exports:{}},b={exports:{}};function y(){return m||(m=1,function(t){!function(i,n){t.exports?t.exports=n():i.matchesSelector=n()}(window,(function(){var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var i=["webkit","moz","ms","o"],n=0;n<4;n++){var s=i[n]+"MatchesSelector";if(t[s])return s}}();return function(i,n){return i[t](n)}}))}(b)),b.exports}function w(){return v||(v=1,function(t){!function(i,n){t.exports?t.exports=n(i,y()):i.fizzyUIUtils=n(i,i.matchesSelector)}(window,(function(t,i){var n={extend:function(t,i){for(var n in i)t[n]=i[n];return t},modulo:function(t,i){return(t%i+i)%i}},s=Array.prototype.slice;n.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?s.call(t):[t]},n.removeFrom=function(t,i){var n=t.indexOf(i);-1!=n&&t.splice(n,1)},n.getParent=function(t,n){for(;t.parentNode&&t!=document.body;)if(i(t=t.parentNode,n))return t},n.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},n.handleEvent=function(t){var i="on"+t.type;this[i]&&this[i](t)},n.filterFindElements=function(t,s){t=n.makeArray(t);var o=[];return t.forEach((function(t){if(t instanceof HTMLElement)if(s){i(t,s)&&o.push(t);for(var n=t.querySelectorAll(s),e=0;e<n.length;e++)o.push(n[e])}else o.push(t)})),o},n.debounceMethod=function(t,i,n){n=n||100;var s=t.prototype[i],o=i+"Timeout";t.prototype[i]=function(){clearTimeout(this[o]);var t=arguments,i=this;this[o]=setTimeout((function(){s.apply(i,t),delete i[o]}),n)}},n.docReady=function(t){var i=document.readyState;"complete"==i||"interactive"==i?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},n.toDashed=function(t){return t.replace(/(.)([A-Z])/g,(function(t,i,n){return i+"-"+n})).toLowerCase()};var o=t.console;return n.htmlInit=function(i,s){n.docReady((function(){var e=n.toDashed(s),r="data-"+e,h=document.querySelectorAll("["+r+"]"),a=document.querySelectorAll(".js-"+e),u=n.makeArray(h).concat(n.makeArray(a)),c=r+"-options",f=t.jQuery;u.forEach((function(t){var n,e=t.getAttribute(r)||t.getAttribute(c);try{n=e&&JSON.parse(e)}catch(i){return void(o&&o.error("Error parsing "+r+" on "+t.className+": "+i))}var h=new i(t,n);f&&f.data(t,s,h)}))}))},n}))}(g)),g.exports}var x,z,M,C={exports:{}};function k(){return x||(x=1,function(t){!function(i,n){t.exports?t.exports=n(f(),p()):(i.Outlayer={},i.Outlayer.Item=n(i.EvEmitter,i.getSize))}(window,(function(t,i){var n=document.documentElement.style,s="string"==typeof n.transition?"transition":"WebkitTransition",o="string"==typeof n.transform?"transform":"WebkitTransform",e={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],r={transform:o,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"};function h(t,i){t&&(this.element=t,this.layout=i,this.position={x:0,y:0},this._create())}var a=h.prototype=Object.create(t.prototype);a.constructor=h,a._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},a.handleEvent=function(t){var i="on"+t.type;this[i]&&this[i](t)},a.getSize=function(){this.size=i(this.element)},a.css=function(t){var i=this.element.style;for(var n in t)i[r[n]||n]=t[n]},a.getPosition=function(){var t=getComputedStyle(this.element),i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),s=t[i?"left":"right"],o=t[n?"top":"bottom"],e=parseFloat(s),r=parseFloat(o),h=this.layout.size;-1!=s.indexOf("%")&&(e=e/100*h.width),-1!=o.indexOf("%")&&(r=r/100*h.height),e=isNaN(e)?0:e,r=isNaN(r)?0:r,r-=n?h.paddingTop:h.paddingBottom,this.position.x=e-=i?h.paddingLeft:h.paddingRight,this.position.y=r},a.layoutPosition=function(){var t=this.layout.size,i={},n=this.layout._getOption("originLeft"),s=this.layout._getOption("originTop"),o=n?"right":"left";i[n?"left":"right"]=this.getXValue(this.position.x+t[n?"paddingLeft":"paddingRight"]),i[o]="";var e=s?"bottom":"top";i[s?"top":"bottom"]=this.getYValue(this.position.y+t[s?"paddingTop":"paddingBottom"]),i[e]="",this.css(i),this.emitEvent("layout",[this])},a.getXValue=function(t){var i=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!i?t/this.layout.size.width*100+"%":t+"px"},a.getYValue=function(t){var i=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&i?t/this.layout.size.height*100+"%":t+"px"},a._transitionTo=function(t,i){this.getPosition();var n=this.position.x,s=this.position.y,o=t==this.position.x&&i==this.position.y;if(this.setPosition(t,i),!o||this.isTransitioning){var e={};e.transform=this.getTranslate(t-n,i-s),this.transition({to:e,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},a.getTranslate=function(t,i){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(i=this.layout._getOption("originTop")?i:-i)+"px, 0)"},a.goTo=function(t,i){this.setPosition(t,i),this.layoutPosition()},a.moveTo=a._transitionTo,a.setPosition=function(t,i){this.position.x=parseFloat(t),this.position.y=parseFloat(i)},a._nonTransition=function(t){for(var i in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[i].call(this)},a.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var i=this._transn;for(var n in t.onTransitionEnd)i.onEnd[n]=t.onTransitionEnd[n];for(n in t.to)i.ingProperties[n]=!0,t.isCleaning&&(i.clean[n]=!0);t.from&&this.css(t.from),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var u="opacity,"+function(t){return t.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}))}(o);a.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;this.css({transitionProperty:u,transitionDuration:t="number"==typeof t?t+"ms":t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(e,this,!1)}},a.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},a.onotransitionend=function(t){this.ontransitionend(t)};var c={"-webkit-transform":"transform"};a.ontransitionend=function(t){if(t.target===this.element){var i=this._transn,n=c[t.propertyName]||t.propertyName;delete i.ingProperties[n],function(t){for(var i in t)return!1;return!0}(i.ingProperties)&&this.disableTransition(),n in i.clean&&(this.element.style[t.propertyName]="",delete i.clean[n]),n in i.onEnd&&(i.onEnd[n].call(this),delete i.onEnd[n]),this.emitEvent("transitionEnd",[this])}},a.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(e,this,!1),this.isTransitioning=!1},a._removeStyles=function(t){var i={};for(var n in t)i[n]="";this.css(i)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return a.removeTransitionStyles=function(){this.css(f)},a.stagger=function(t){this.staggerDelay=(t=isNaN(t)?0:t)+"ms"},a.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},a.remove=function(){s&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",(function(){this.removeElem()})),this.hide()):this.removeElem()},a.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,i={};i[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:i})},a.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},a.getHideRevealTransitionEndProperty=function(t){var i=this.layout.options[t];if(i.opacity)return"opacity";for(var n in i)return n},a.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,i={};i[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:i})},a.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},a.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},h}))}(C)),C.exports}
6
+ */function p(){return d||(d=1,function(t){!function(i,n){t.exports?t.exports=n():i.getSize=n()}(window,(function(){function t(t){var i=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(i)&&i}var i=void 0===console?function(){}:function(t){console.error(t)},n=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],s=n.length;function o(t){var n=getComputedStyle(t);return n||i("Style returned "+n+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),n}var e,r=!1;return function i(h){if(function(){if(!r){r=!0;var n=document.createElement("div");n.style.width="200px",n.style.padding="1px 2px 3px 4px",n.style.borderStyle="solid",n.style.borderWidth="1px 2px 3px 4px",n.style.boxSizing="border-box";var s=document.body||document.documentElement;s.appendChild(n);var h=o(n);e=200==Math.round(t(h.width)),i.isBoxSizeOuter=e,s.removeChild(n)}}(),"string"==typeof h&&(h=document.querySelector(h)),h&&"object"==typeof h&&h.nodeType){var a=o(h);if("none"==a.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},i=0;i<s;i++)t[n[i]]=0;return t}();var u={};u.width=h.offsetWidth,u.height=h.offsetHeight;for(var f=u.isBorderBox="border-box"==a.boxSizing,c=0;c<s;c++){var d=n[c],l=parseFloat(a[d]);u[d]=isNaN(l)?0:l}var p=u.paddingLeft+u.paddingRight,m=u.paddingTop+u.paddingBottom,v=u.marginLeft+u.marginRight,g=u.marginTop+u.marginBottom,b=u.borderLeftWidth+u.borderRightWidth,y=u.borderTopWidth+u.borderBottomWidth,w=f&&e,x=t(a.width);!1!==x&&(u.width=x+(w?0:p+b));var z=t(a.height);return!1!==z&&(u.height=z+(w?0:m+y)),u.innerWidth=u.width-(p+b),u.innerHeight=u.height-(m+y),u.outerWidth=u.width+v,u.outerHeight=u.height+g,u}}}))}(l)),l.exports}var m,v,g={exports:{}},b={exports:{}};function y(){return m||(m=1,function(t){!function(i,n){t.exports?t.exports=n():i.matchesSelector=n()}(window,(function(){var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var i=["webkit","moz","ms","o"],n=0;n<4;n++){var s=i[n]+"MatchesSelector";if(t[s])return s}}();return function(i,n){return i[t](n)}}))}(b)),b.exports}function w(){return v||(v=1,function(t){!function(i,n){t.exports?t.exports=n(i,y()):i.fizzyUIUtils=n(i,i.matchesSelector)}(window,(function(t,i){var n={extend:function(t,i){for(var n in i)t[n]=i[n];return t},modulo:function(t,i){return(t%i+i)%i}},s=Array.prototype.slice;n.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?s.call(t):[t]},n.removeFrom=function(t,i){var n=t.indexOf(i);-1!=n&&t.splice(n,1)},n.getParent=function(t,n){for(;t.parentNode&&t!=document.body;)if(i(t=t.parentNode,n))return t},n.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},n.handleEvent=function(t){var i="on"+t.type;this[i]&&this[i](t)},n.filterFindElements=function(t,s){t=n.makeArray(t);var o=[];return t.forEach((function(t){if(t instanceof HTMLElement)if(s){i(t,s)&&o.push(t);for(var n=t.querySelectorAll(s),e=0;e<n.length;e++)o.push(n[e])}else o.push(t)})),o},n.debounceMethod=function(t,i,n){n=n||100;var s=t.prototype[i],o=i+"Timeout";t.prototype[i]=function(){clearTimeout(this[o]);var t=arguments,i=this;this[o]=setTimeout((function(){s.apply(i,t),delete i[o]}),n)}},n.docReady=function(t){var i=document.readyState;"complete"==i||"interactive"==i?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},n.toDashed=function(t){return t.replace(/(.)([A-Z])/g,(function(t,i,n){return i+"-"+n})).toLowerCase()};var o=t.console;return n.htmlInit=function(i,s){n.docReady((function(){var e=n.toDashed(s),r="data-"+e,h=document.querySelectorAll("["+r+"]"),a=document.querySelectorAll(".js-"+e),u=n.makeArray(h).concat(n.makeArray(a)),f=r+"-options",c=t.jQuery;u.forEach((function(t){var n,e=t.getAttribute(r)||t.getAttribute(f);try{n=e&&JSON.parse(e)}catch(i){return void(o&&o.error("Error parsing "+r+" on "+t.className+": "+i))}var h=new i(t,n);c&&c.data(t,s,h)}))}))},n}))}(g)),g.exports}var x,z,M,k={exports:{}};function C(){return x||(x=1,function(t){!function(i,n){t.exports?t.exports=n(c(),p()):(i.Outlayer={},i.Outlayer.Item=n(i.EvEmitter,i.getSize))}(window,(function(t,i){var n=document.documentElement.style,s="string"==typeof n.transition?"transition":"WebkitTransition",o="string"==typeof n.transform?"transform":"WebkitTransform",e={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],r={transform:o,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"};function h(t,i){t&&(this.element=t,this.layout=i,this.position={x:0,y:0},this._create())}var a=h.prototype=Object.create(t.prototype);a.constructor=h,a._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},a.handleEvent=function(t){var i="on"+t.type;this[i]&&this[i](t)},a.getSize=function(){this.size=i(this.element)},a.css=function(t){var i=this.element.style;for(var n in t)i[r[n]||n]=t[n]},a.getPosition=function(){var t=getComputedStyle(this.element),i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),s=t[i?"left":"right"],o=t[n?"top":"bottom"],e=parseFloat(s),r=parseFloat(o),h=this.layout.size;-1!=s.indexOf("%")&&(e=e/100*h.width),-1!=o.indexOf("%")&&(r=r/100*h.height),e=isNaN(e)?0:e,r=isNaN(r)?0:r,r-=n?h.paddingTop:h.paddingBottom,this.position.x=e-=i?h.paddingLeft:h.paddingRight,this.position.y=r},a.layoutPosition=function(){var t=this.layout.size,i={},n=this.layout._getOption("originLeft"),s=this.layout._getOption("originTop"),o=n?"right":"left";i[n?"left":"right"]=this.getXValue(this.position.x+t[n?"paddingLeft":"paddingRight"]),i[o]="";var e=s?"bottom":"top";i[s?"top":"bottom"]=this.getYValue(this.position.y+t[s?"paddingTop":"paddingBottom"]),i[e]="",this.css(i),this.emitEvent("layout",[this])},a.getXValue=function(t){var i=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!i?t/this.layout.size.width*100+"%":t+"px"},a.getYValue=function(t){var i=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&i?t/this.layout.size.height*100+"%":t+"px"},a._transitionTo=function(t,i){this.getPosition();var n=this.position.x,s=this.position.y,o=t==this.position.x&&i==this.position.y;if(this.setPosition(t,i),!o||this.isTransitioning){var e={};e.transform=this.getTranslate(t-n,i-s),this.transition({to:e,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},a.getTranslate=function(t,i){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(i=this.layout._getOption("originTop")?i:-i)+"px, 0)"},a.goTo=function(t,i){this.setPosition(t,i),this.layoutPosition()},a.moveTo=a._transitionTo,a.setPosition=function(t,i){this.position.x=parseFloat(t),this.position.y=parseFloat(i)},a._nonTransition=function(t){for(var i in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[i].call(this)},a.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var i=this._transn;for(var n in t.onTransitionEnd)i.onEnd[n]=t.onTransitionEnd[n];for(n in t.to)i.ingProperties[n]=!0,t.isCleaning&&(i.clean[n]=!0);t.from&&this.css(t.from),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var u="opacity,"+function(t){return t.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}))}(o);a.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;this.css({transitionProperty:u,transitionDuration:t="number"==typeof t?t+"ms":t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(e,this,!1)}},a.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},a.onotransitionend=function(t){this.ontransitionend(t)};var f={"-webkit-transform":"transform"};a.ontransitionend=function(t){if(t.target===this.element){var i=this._transn,n=f[t.propertyName]||t.propertyName;delete i.ingProperties[n],function(t){for(var i in t)return!1;return!0}(i.ingProperties)&&this.disableTransition(),n in i.clean&&(this.element.style[t.propertyName]="",delete i.clean[n]),n in i.onEnd&&(i.onEnd[n].call(this),delete i.onEnd[n]),this.emitEvent("transitionEnd",[this])}},a.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(e,this,!1),this.isTransitioning=!1},a._removeStyles=function(t){var i={};for(var n in t)i[n]="";this.css(i)};var c={transitionProperty:"",transitionDuration:"",transitionDelay:""};return a.removeTransitionStyles=function(){this.css(c)},a.stagger=function(t){this.staggerDelay=(t=isNaN(t)?0:t)+"ms"},a.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},a.remove=function(){s&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",(function(){this.removeElem()})),this.hide()):this.removeElem()},a.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,i={};i[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:i})},a.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},a.getHideRevealTransitionEndProperty=function(t){var i=this.layout.options[t];if(i.opacity)return"opacity";for(var n in i)return n},a.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,i={};i[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:i})},a.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},a.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},h}))}(k)),k.exports}
7
7
  /*!
8
8
  * Outlayer v2.1.1
9
9
  * the brains and guts of a layout library
10
10
  * MIT license
11
- */function T(){return z||(z=1,function(t){!function(i,n){t.exports?t.exports=n(i,f(),p(),w(),k()):i.Outlayer=n(i,i.EvEmitter,i.getSize,i.fizzyUIUtils,i.Outlayer.Item)}(window,(function(t,i,n,s,o){var e=t.console,r=t.jQuery,h=function(){},a=0,u={};function c(t,i){var n=s.getQueryElement(t);if(n){this.element=n,r&&(this.$element=r(this.element)),this.options=s.extend({},this.constructor.defaults),this.option(i);var o=++a;this.element.outlayerGUID=o,u[o]=this,this._create(),this._getOption("initLayout")&&this.layout()}else e&&e.error("Bad element for "+this.constructor.namespace+": "+(n||t))}c.namespace="outlayer",c.Item=o,c.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=c.prototype;function d(t){function i(){t.apply(this,arguments)}return(i.prototype=Object.create(t.prototype)).constructor=i,i}s.extend(f,i.prototype),f.option=function(t){s.extend(this.options,t)},f._getOption=function(t){var i=this.constructor.compatOptions[t];return i&&void 0!==this.options[i]?this.options[i]:this.options[t]},c.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),s.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(t){for(var i=this._filterFindItemElements(t),n=this.constructor.Item,s=[],o=0;o<i.length;o++){var e=new n(i[o],this);s.push(e)}return s},f._filterFindItemElements=function(t){return s.filterFindElements(t,this.options.itemSelector)},f.getItemElements=function(){return this.items.map((function(t){return t.element}))},f.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant");this.layoutItems(this.items,void 0!==t?t:!this._isLayoutInited),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=n(this.element)},f._getMeasurement=function(t,i){var s,o=this.options[t];o?("string"==typeof o?s=this.element.querySelector(o):o instanceof HTMLElement&&(s=o),this[t]=s?n(s)[i]:o):this[t]=0},f.layoutItems=function(t,i){t=this._getItemsForLayout(t),this._layoutItems(t,i),this._postLayout()},f._getItemsForLayout=function(t){return t.filter((function(t){return!t.isIgnored}))},f._layoutItems=function(t,i){if(this._emitCompleteOnItems("layout",t),t&&t.length){var n=[];t.forEach((function(t){var s=this._getItemLayoutPosition(t);s.item=t,s.isInstant=i||t.isLayoutInstant,n.push(s)}),this),this._processLayoutQueue(n)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(t){this.updateStagger(),t.forEach((function(t,i){this._positionItem(t.item,t.x,t.y,t.isInstant,i)}),this)},f.updateStagger=function(){var t=this.options.stagger;if(null!=t)return this.stagger=function(t){if("number"==typeof t)return t;var i=t.match(/(^\d*\.?\d*)(\w*)/),n=i&&i[1],s=i&&i[2];return n.length?(n=parseFloat(n))*(l[s]||1):0}(t),this.stagger;this.stagger=0},f._positionItem=function(t,i,n,s,o){s?t.goTo(i,n):(t.stagger(o*this.stagger),t.moveTo(i,n))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){if(this._getOption("resizeContainer")){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},f._getContainerSize=h,f._setContainerMeasure=function(t,i){if(void 0!==t){var n=this.size;n.isBorderBox&&(t+=i?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),this.element.style[i?"width":"height"]=(t=Math.max(t,0))+"px"}},f._emitCompleteOnItems=function(t,i){var n=this;function s(){n.dispatchEvent(t+"Complete",null,[i])}var o=i.length;if(i&&o){var e=0;i.forEach((function(i){i.once(t,r)}))}else s();function r(){++e==o&&s()}},f.dispatchEvent=function(t,i,n){var s=i?[i].concat(n):n;if(this.emitEvent(t,s),r)if(this.$element=this.$element||r(this.element),i){var o=r.Event(i);o.type=t,this.$element.trigger(o,n)}else this.$element.trigger(t,n)},f.ignore=function(t){var i=this.getItem(t);i&&(i.isIgnored=!0)},f.unignore=function(t){var i=this.getItem(t);i&&delete i.isIgnored},f.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},f.unstamp=function(t){(t=this._find(t))&&t.forEach((function(t){s.removeFrom(this.stamps,t),this.unignore(t)}),this)},f._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),s.makeArray(t)},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),i=this.size;this._boundingRect={left:t.left+i.paddingLeft+i.borderLeftWidth,top:t.top+i.paddingTop+i.borderTopWidth,right:t.right-(i.paddingRight+i.borderRightWidth),bottom:t.bottom-(i.paddingBottom+i.borderBottomWidth)}},f._manageStamp=h,f._getElementOffset=function(t){var i=t.getBoundingClientRect(),s=this._boundingRect,o=n(t);return{left:i.left-s.left-o.marginLeft,top:i.top-s.top-o.marginTop,right:s.right-i.right-o.marginRight,bottom:s.bottom-i.bottom-o.marginBottom}},f.handleEvent=s.handleEvent,f.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},s.debounceMethod(c,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var t=n(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},f.addItems=function(t){var i=this._itemize(t);return i.length&&(this.items=this.items.concat(i)),i},f.appended=function(t){var i=this.addItems(t);i.length&&(this.layoutItems(i,!0),this.reveal(i))},f.prepended=function(t){var i=this._itemize(t);if(i.length){var n=this.items.slice(0);this.items=i.concat(n),this._resetLayout(),this._manageStamps(),this.layoutItems(i,!0),this.reveal(i),this.layoutItems(n)}},f.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var i=this.updateStagger();t.forEach((function(t,n){t.stagger(n*i),t.reveal()}))}},f.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var i=this.updateStagger();t.forEach((function(t,n){t.stagger(n*i),t.hide()}))}},f.revealItemElements=function(t){var i=this.getItems(t);this.reveal(i)},f.hideItemElements=function(t){var i=this.getItems(t);this.hide(i)},f.getItem=function(t){for(var i=0;i<this.items.length;i++){var n=this.items[i];if(n.element==t)return n}},f.getItems=function(t){t=s.makeArray(t);var i=[];return t.forEach((function(t){var n=this.getItem(t);n&&i.push(n)}),this),i},f.remove=function(t){var i=this.getItems(t);this._emitCompleteOnItems("remove",i),i&&i.length&&i.forEach((function(t){t.remove(),s.removeFrom(this.items,t)}),this)},f.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach((function(t){t.destroy()})),this.unbindResize(),delete u[this.element.outlayerGUID],delete this.element.outlayerGUID,r&&r.removeData(this.element,this.constructor.namespace)},c.data=function(t){var i=(t=s.getQueryElement(t))&&t.outlayerGUID;return i&&u[i]},c.create=function(t,i){var n=d(c);return n.defaults=s.extend({},c.defaults),s.extend(n.defaults,i),n.compatOptions=s.extend({},c.compatOptions),n.namespace=t,n.data=c.data,n.Item=d(o),s.htmlInit(n,t),r&&r.bridget&&r.bridget(t,n),n};var l={ms:1,s:1e3};return c.Item=o,c}))}(a)),a.exports}
11
+ */function T(){return z||(z=1,function(t){!function(i,n){t.exports?t.exports=n(i,c(),p(),w(),C()):i.Outlayer=n(i,i.EvEmitter,i.getSize,i.fizzyUIUtils,i.Outlayer.Item)}(window,(function(t,i,n,s,o){var e=t.console,r=t.jQuery,h=function(){},a=0,u={};function f(t,i){var n=s.getQueryElement(t);if(n){this.element=n,r&&(this.$element=r(this.element)),this.options=s.extend({},this.constructor.defaults),this.option(i);var o=++a;this.element.outlayerGUID=o,u[o]=this,this._create(),this._getOption("initLayout")&&this.layout()}else e&&e.error("Bad element for "+this.constructor.namespace+": "+(n||t))}f.namespace="outlayer",f.Item=o,f.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var c=f.prototype;function d(t){function i(){t.apply(this,arguments)}return(i.prototype=Object.create(t.prototype)).constructor=i,i}s.extend(c,i.prototype),c.option=function(t){s.extend(this.options,t)},c._getOption=function(t){var i=this.constructor.compatOptions[t];return i&&void 0!==this.options[i]?this.options[i]:this.options[t]},f.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},c._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),s.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},c.reloadItems=function(){this.items=this._itemize(this.element.children)},c._itemize=function(t){for(var i=this._filterFindItemElements(t),n=this.constructor.Item,s=[],o=0;o<i.length;o++){var e=new n(i[o],this);s.push(e)}return s},c._filterFindItemElements=function(t){return s.filterFindElements(t,this.options.itemSelector)},c.getItemElements=function(){return this.items.map((function(t){return t.element}))},c.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant");this.layoutItems(this.items,void 0!==t?t:!this._isLayoutInited),this._isLayoutInited=!0},c._init=c.layout,c._resetLayout=function(){this.getSize()},c.getSize=function(){this.size=n(this.element)},c._getMeasurement=function(t,i){var s,o=this.options[t];o?("string"==typeof o?s=this.element.querySelector(o):o instanceof HTMLElement&&(s=o),this[t]=s?n(s)[i]:o):this[t]=0},c.layoutItems=function(t,i){t=this._getItemsForLayout(t),this._layoutItems(t,i),this._postLayout()},c._getItemsForLayout=function(t){return t.filter((function(t){return!t.isIgnored}))},c._layoutItems=function(t,i){if(this._emitCompleteOnItems("layout",t),t&&t.length){var n=[];t.forEach((function(t){var s=this._getItemLayoutPosition(t);s.item=t,s.isInstant=i||t.isLayoutInstant,n.push(s)}),this),this._processLayoutQueue(n)}},c._getItemLayoutPosition=function(){return{x:0,y:0}},c._processLayoutQueue=function(t){this.updateStagger(),t.forEach((function(t,i){this._positionItem(t.item,t.x,t.y,t.isInstant,i)}),this)},c.updateStagger=function(){var t=this.options.stagger;if(null!=t)return this.stagger=function(t){if("number"==typeof t)return t;var i=t.match(/(^\d*\.?\d*)(\w*)/),n=i&&i[1],s=i&&i[2];return n.length?(n=parseFloat(n))*(l[s]||1):0}(t),this.stagger;this.stagger=0},c._positionItem=function(t,i,n,s,o){s?t.goTo(i,n):(t.stagger(o*this.stagger),t.moveTo(i,n))},c._postLayout=function(){this.resizeContainer()},c.resizeContainer=function(){if(this._getOption("resizeContainer")){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},c._getContainerSize=h,c._setContainerMeasure=function(t,i){if(void 0!==t){var n=this.size;n.isBorderBox&&(t+=i?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),this.element.style[i?"width":"height"]=(t=Math.max(t,0))+"px"}},c._emitCompleteOnItems=function(t,i){var n=this;function s(){n.dispatchEvent(t+"Complete",null,[i])}var o=i.length;if(i&&o){var e=0;i.forEach((function(i){i.once(t,r)}))}else s();function r(){++e==o&&s()}},c.dispatchEvent=function(t,i,n){var s=i?[i].concat(n):n;if(this.emitEvent(t,s),r)if(this.$element=this.$element||r(this.element),i){var o=r.Event(i);o.type=t,this.$element.trigger(o,n)}else this.$element.trigger(t,n)},c.ignore=function(t){var i=this.getItem(t);i&&(i.isIgnored=!0)},c.unignore=function(t){var i=this.getItem(t);i&&delete i.isIgnored},c.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},c.unstamp=function(t){(t=this._find(t))&&t.forEach((function(t){s.removeFrom(this.stamps,t),this.unignore(t)}),this)},c._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),s.makeArray(t)},c._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},c._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),i=this.size;this._boundingRect={left:t.left+i.paddingLeft+i.borderLeftWidth,top:t.top+i.paddingTop+i.borderTopWidth,right:t.right-(i.paddingRight+i.borderRightWidth),bottom:t.bottom-(i.paddingBottom+i.borderBottomWidth)}},c._manageStamp=h,c._getElementOffset=function(t){var i=t.getBoundingClientRect(),s=this._boundingRect,o=n(t);return{left:i.left-s.left-o.marginLeft,top:i.top-s.top-o.marginTop,right:s.right-i.right-o.marginRight,bottom:s.bottom-i.bottom-o.marginBottom}},c.handleEvent=s.handleEvent,c.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},c.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},c.onresize=function(){this.resize()},s.debounceMethod(f,"onresize",100),c.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},c.needsResizeLayout=function(){var t=n(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},c.addItems=function(t){var i=this._itemize(t);return i.length&&(this.items=this.items.concat(i)),i},c.appended=function(t){var i=this.addItems(t);i.length&&(this.layoutItems(i,!0),this.reveal(i))},c.prepended=function(t){var i=this._itemize(t);if(i.length){var n=this.items.slice(0);this.items=i.concat(n),this._resetLayout(),this._manageStamps(),this.layoutItems(i,!0),this.reveal(i),this.layoutItems(n)}},c.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var i=this.updateStagger();t.forEach((function(t,n){t.stagger(n*i),t.reveal()}))}},c.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var i=this.updateStagger();t.forEach((function(t,n){t.stagger(n*i),t.hide()}))}},c.revealItemElements=function(t){var i=this.getItems(t);this.reveal(i)},c.hideItemElements=function(t){var i=this.getItems(t);this.hide(i)},c.getItem=function(t){for(var i=0;i<this.items.length;i++){var n=this.items[i];if(n.element==t)return n}},c.getItems=function(t){t=s.makeArray(t);var i=[];return t.forEach((function(t){var n=this.getItem(t);n&&i.push(n)}),this),i},c.remove=function(t){var i=this.getItems(t);this._emitCompleteOnItems("remove",i),i&&i.length&&i.forEach((function(t){t.remove(),s.removeFrom(this.items,t)}),this)},c.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach((function(t){t.destroy()})),this.unbindResize(),delete u[this.element.outlayerGUID],delete this.element.outlayerGUID,r&&r.removeData(this.element,this.constructor.namespace)},f.data=function(t){var i=(t=s.getQueryElement(t))&&t.outlayerGUID;return i&&u[i]},f.create=function(t,i){var n=d(f);return n.defaults=s.extend({},f.defaults),s.extend(n.defaults,i),n.compatOptions=s.extend({},f.compatOptions),n.namespace=t,n.data=f.data,n.Item=d(o),s.htmlInit(n,t),r&&r.bridget&&r.bridget(t,n),n};var l={ms:1,s:1e3};return f.Item=o,f}))}(a)),a.exports}
12
12
  /*!
13
13
  * Masonry v4.2.2
14
14
  * Cascading grid layout library
15
15
  * https://masonry.desandro.com
16
16
  * MIT License
17
17
  * by David DeSandro
18
- */var L=(M||(M=1,function(t){!function(i,n){t.exports?t.exports=n(T(),p()):i.Masonry=n(i.Outlayer,i.getSize)}(window,(function(t,i){var n=t.create("masonry");n.compatOptions.fitWidth="isFitWidth";var s=n.prototype;return s._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},s.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],n=t&&t.element;this.columnWidth=n&&i(n).outerWidth||this.containerWidth}var s=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,e=o/s,r=s-o%s;e=Math[r&&r<1?"round":"floor"](e),this.cols=Math.max(e,1)},s.getContainerWidth=function(){var t=this._getOption("fitWidth"),n=i(t?this.element.parentNode:this.element);this.containerWidth=n&&n.innerWidth},s._getItemLayoutPosition=function(t){t.getSize();for(var i=t.size.outerWidth%this.columnWidth,n=Math[i&&i<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),s=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](n=Math.min(n,this.cols),t),o={x:this.columnWidth*s.col,y:s.y},e=s.y+t.size.outerHeight,r=n+s.col,h=s.col;h<r;h++)this.colYs[h]=e;return o},s._getTopColPosition=function(t){var i=this._getTopColGroup(t),n=Math.min.apply(Math,i);return{col:i.indexOf(n),y:n}},s._getTopColGroup=function(t){if(t<2)return this.colYs;for(var i=[],n=this.cols+1-t,s=0;s<n;s++)i[s]=this._getColGroupY(s,t);return i},s._getColGroupY=function(t,i){if(i<2)return this.colYs[t];var n=this.colYs.slice(t,t+i);return Math.max.apply(Math,n)},s._getHorizontalColPosition=function(t,i){var n=this.horizontalColIndex%this.cols;return n=t>1&&n+t>this.cols?0:n,this.horizontalColIndex=i.size.outerWidth&&i.size.outerHeight?n+t:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,t)}},s._manageStamp=function(t){var n=i(t),s=this._getElementOffset(t),o=this._getOption("originLeft")?s.left:s.right,e=o+n.outerWidth,r=Math.floor(o/this.columnWidth);r=Math.max(0,r);var h=Math.floor(e/this.columnWidth);h=Math.min(this.cols-1,h-=e%this.columnWidth?0:1);for(var a=(this._getOption("originTop")?s.top:s.bottom)+n.outerHeight,u=r;u<=h;u++)this.colYs[u]=Math.max(a,this.colYs[u])},s._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},s._getContainerFitWidth=function(){for(var t=0,i=this.cols;--i&&0===this.colYs[i];)t++;return(this.cols-t)*this.columnWidth-this.gutter},s.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},n}))}(h)),h.exports),D=e(L);const W=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.isMasonry=!1,this.colsMobile=1,this.colsTablet=2,this.colsDesktop=3,this.initialized=!1}itemsChanged(t,i){t!==i&&this.isMasonry&&this.refreshMasonryLayout()}isMasonryChanged(t){t?this.initializeMasonry():this.destroyMasonry()}async waitForImages(){const t=this.el.shadowRoot.querySelectorAll("img"),i=Array.from(t).map((t=>new Promise((i=>{t.complete?i():t.addEventListener("load",(()=>i()),{once:!0})}))));await Promise.all(i)}emitConfigurationChanged(){const t=new CustomEvent("mosaicConfigurationChanged",{detail:{colsMobile:this.colsMobile,colsTablet:this.colsTablet,colsDesktop:this.colsDesktop},bubbles:!0,composed:!0});this.el.dispatchEvent(t)}configurationChanged(){this.emitConfigurationChanged()}async refreshMasonryLayout(){this.isMasonry&&(await this.waitForImages(),this.initializeMasonry())}componentDidLoad(){this.isMasonry&&this.initializeMasonry(),this.observeSlotChanges(),this.emitConfigurationChanged()}componentDidUpdate(){this.isMasonry&&this.refreshMasonryLayout()}disconnectedCallback(){this.destroyMasonry(),this.observer&&this.observer.disconnect()}async initializeMasonry(){this.isMasonry&&requestAnimationFrame((()=>{const t=this.el.shadowRoot.querySelector("slot").assignedElements({flatten:!0});t.length>0&&(this.masonry=new D(this.el,{itemSelector:"spw-mosaic-item",columnWidth:"spw-mosaic-item",percentPosition:!0}),this.initialized=!0,t.forEach((t=>{t.querySelectorAll("img").forEach((t=>{t.complete||t.addEventListener("load",this.updateMasonryLayout.bind(this),{once:!0})}))})))}))}updateMasonryLayout(){this.masonry&&this.initialized&&this.isMasonry&&this.masonry.layout()}destroyMasonry(){this.masonry&&(this.masonry.destroy(),this.masonry=null,this.initialized=!1)}observeSlotChanges(){const t=this.el.shadowRoot.querySelector("slot");this.observer=new MutationObserver((t=>{for(const i of t)"childList"===i.type&&this.initialized&&this.isMasonry&&this.initializeMasonry()})),this.observer.observe(t,{childList:!0})}get elementClass(){return{"spw-mosaic--no-masonry":!this.isMasonry}}render(){return n(s,{key:"315dbce69f6894a93dfea27c215ed6d74c43beb2"},n("div",{key:"7383f3c38c7d90c3995c621824d28d5d8c46d37c",class:this.elementClass},n("slot",{key:"2120301d6e1b24331a49c265c08e0f8f0aefb34c"})))}get el(){return this}static get watchers(){return{items:[{itemsChanged:0}],isMasonry:[{isMasonryChanged:0}],colsMobile:[{configurationChanged:0}],colsTablet:[{configurationChanged:0}],colsDesktop:[{configurationChanged: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:"Nunito Sans"}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;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;margin:0 -12px}.spw-mosaic--no-masonry{display:flex;flex-wrap:wrap}'}},[257,"spw-mosaic",{items:[8],isMasonry:[4,"is-masonry"],colsMobile:[2,"cols-mobile"],colsTablet:[2,"cols-tablet"],colsDesktop:[2,"cols-desktop"],initialized:[32],waitForImages:[64],initializeMasonry:[64]},void 0,{items:[{itemsChanged:0}],isMasonry:[{isMasonryChanged:0}],colsMobile:[{configurationChanged:0}],colsTablet:[{configurationChanged:0}],colsDesktop:[{configurationChanged:0}]}]),S=W,E=function(){"undefined"!=typeof customElements&&["spw-mosaic"].forEach((t=>{"spw-mosaic"===t&&(customElements.get(o(t))||customElements.define(o(t),W))}))};export{S as SpwMosaic,E as defineCustomElement}
18
+ */var L=(M||(M=1,function(t){!function(i,n){t.exports?t.exports=n(T(),p()):i.Masonry=n(i.Outlayer,i.getSize)}(window,(function(t,i){var n=t.create("masonry");n.compatOptions.fitWidth="isFitWidth";var s=n.prototype;return s._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},s.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],n=t&&t.element;this.columnWidth=n&&i(n).outerWidth||this.containerWidth}var s=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,e=o/s,r=s-o%s;e=Math[r&&r<1?"round":"floor"](e),this.cols=Math.max(e,1)},s.getContainerWidth=function(){var t=this._getOption("fitWidth"),n=i(t?this.element.parentNode:this.element);this.containerWidth=n&&n.innerWidth},s._getItemLayoutPosition=function(t){t.getSize();for(var i=t.size.outerWidth%this.columnWidth,n=Math[i&&i<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),s=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](n=Math.min(n,this.cols),t),o={x:this.columnWidth*s.col,y:s.y},e=s.y+t.size.outerHeight,r=n+s.col,h=s.col;h<r;h++)this.colYs[h]=e;return o},s._getTopColPosition=function(t){var i=this._getTopColGroup(t),n=Math.min.apply(Math,i);return{col:i.indexOf(n),y:n}},s._getTopColGroup=function(t){if(t<2)return this.colYs;for(var i=[],n=this.cols+1-t,s=0;s<n;s++)i[s]=this._getColGroupY(s,t);return i},s._getColGroupY=function(t,i){if(i<2)return this.colYs[t];var n=this.colYs.slice(t,t+i);return Math.max.apply(Math,n)},s._getHorizontalColPosition=function(t,i){var n=this.horizontalColIndex%this.cols;return n=t>1&&n+t>this.cols?0:n,this.horizontalColIndex=i.size.outerWidth&&i.size.outerHeight?n+t:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,t)}},s._manageStamp=function(t){var n=i(t),s=this._getElementOffset(t),o=this._getOption("originLeft")?s.left:s.right,e=o+n.outerWidth,r=Math.floor(o/this.columnWidth);r=Math.max(0,r);var h=Math.floor(e/this.columnWidth);h=Math.min(this.cols-1,h-=e%this.columnWidth?0:1);for(var a=(this._getOption("originTop")?s.top:s.bottom)+n.outerHeight,u=r;u<=h;u++)this.colYs[u]=Math.max(a,this.colYs[u])},s._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},s._getContainerFitWidth=function(){for(var t=0,i=this.cols;--i&&0===this.colYs[i];)t++;return(this.cols-t)*this.columnWidth-this.gutter},s.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},n}))}(h)),h.exports),D=e(L);const W=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.isMasonry=!1,this.colsMobile=1,this.colsTablet=2,this.colsDesktop=3,this.initialized=!1}itemsChanged(t,i){t!==i&&this.isMasonry&&this.refreshMasonryLayout()}isMasonryChanged(t){t?this.initializeMasonry():this.destroyMasonry()}async waitForImages(){const t=this.el.shadowRoot.querySelectorAll("img"),i=Array.from(t).map((t=>new Promise((i=>{t.complete?i():t.addEventListener("load",(()=>i()),{once:!0})}))));await Promise.all(i)}emitConfigurationChanged(){const t=new CustomEvent("mosaicConfigurationChanged",{detail:{colsMobile:this.colsMobile,colsTablet:this.colsTablet,colsDesktop:this.colsDesktop},bubbles:!0,composed:!0});this.el.dispatchEvent(t)}configurationChanged(){this.emitConfigurationChanged()}async refreshMasonryLayout(){this.isMasonry&&(await this.waitForImages(),this.initializeMasonry())}componentDidLoad(){this.isMasonry&&this.initializeMasonry(),this.observeSlotChanges(),this.emitConfigurationChanged()}componentDidUpdate(){this.isMasonry&&this.refreshMasonryLayout()}disconnectedCallback(){this.destroyMasonry(),this.observer&&this.observer.disconnect()}async initializeMasonry(){this.isMasonry&&requestAnimationFrame((()=>{const t=this.el.shadowRoot.querySelector("slot").assignedElements({flatten:!0});if(t.length>0){const i=Array.from(t).find((t=>!t.hasAttribute("col-span-desktop")&&!t.hasAttribute("col-span-tablet")&&!t.hasAttribute("col-span-mobile")))||t[0];this.masonry=new D(this.el,{itemSelector:"spw-mosaic-item",columnWidth:i,percentPosition:!0,gutter:0}),this.initialized=!0,t.forEach((t=>{t.querySelectorAll("img").forEach((t=>{t.complete||t.addEventListener("load",this.updateMasonryLayout.bind(this),{once:!0})}))}))}}))}updateMasonryLayout(){this.masonry&&this.initialized&&this.isMasonry&&this.masonry.layout()}destroyMasonry(){this.masonry&&(this.masonry.destroy(),this.masonry=null,this.initialized=!1)}observeSlotChanges(){const t=this.el.shadowRoot.querySelector("slot");this.observer=new MutationObserver((t=>{for(const i of t)"childList"===i.type&&this.initialized&&this.isMasonry&&this.initializeMasonry()})),this.observer.observe(t,{childList:!0})}get elementClass(){return{"spw-mosaic--no-masonry":!this.isMasonry}}render(){return n(s,{key:"f61eb75efa6cc8fe663e50f45568c5cb7dd8f2f3"},n("div",{key:"1094aebb0e127ce6fa37c9884216cf0fa20ad781",class:this.elementClass},n("slot",{key:"0788e769762d7d137fe4df586b6add1da6e723f8"})))}get el(){return this}static get watchers(){return{items:[{itemsChanged:0}],isMasonry:[{isMasonryChanged:0}],colsMobile:[{configurationChanged:0}],colsTablet:[{configurationChanged:0}],colsDesktop:[{configurationChanged: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:"Nunito Sans"}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;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;margin:0 -12px}.spw-mosaic--no-masonry{display:flex;flex-wrap:wrap}'}},[257,"spw-mosaic",{items:[8],isMasonry:[4,"is-masonry"],colsMobile:[2,"cols-mobile"],colsTablet:[2,"cols-tablet"],colsDesktop:[2,"cols-desktop"],initialized:[32],waitForImages:[64],initializeMasonry:[64]},void 0,{items:[{itemsChanged:0}],isMasonry:[{isMasonryChanged:0}],colsMobile:[{configurationChanged:0}],colsTablet:[{configurationChanged:0}],colsDesktop:[{configurationChanged:0}]}]),S=W,E=function(){"undefined"!=typeof customElements&&["spw-mosaic"].forEach((t=>{"spw-mosaic"===t&&(customElements.get(o(t))||customElements.define(o(t),W))}))};export{S as SpwMosaic,E as defineCustomElement}