@pine-ds/core 4.1.0 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (481) hide show
  1. package/components/index.d.ts +8 -0
  2. package/components/index.js +1 -1
  3. package/components/mock-pds-modal.js +1 -1
  4. package/components/pds-button2.js +1 -1
  5. package/components/pds-checkbox2.js +1 -1
  6. package/components/pds-chip2.js +1 -1
  7. package/components/pds-combobox.js +1 -1
  8. package/components/pds-copytext.js +1 -1
  9. package/components/pds-drawer-content.d.ts +11 -0
  10. package/components/pds-drawer-content.js +1 -0
  11. package/components/pds-drawer-footer.d.ts +11 -0
  12. package/components/pds-drawer-footer.js +1 -0
  13. package/components/pds-drawer-header.d.ts +11 -0
  14. package/components/pds-drawer-header.js +1 -0
  15. package/components/pds-drawer.d.ts +11 -0
  16. package/components/pds-drawer.js +1 -0
  17. package/components/pds-dropdown-menu-item.js +1 -1
  18. package/components/pds-dropdown-menu-separator.js +1 -1
  19. package/components/pds-dropdown-menu.js +1 -1
  20. package/components/pds-filter.js +1 -1
  21. package/components/pds-filters.js +1 -1
  22. package/components/pds-icon2.js +1 -1
  23. package/components/pds-image.js +1 -1
  24. package/components/pds-input.js +1 -1
  25. package/components/pds-link2.js +1 -1
  26. package/components/pds-loader2.js +1 -1
  27. package/components/pds-modal-content.js +1 -1
  28. package/components/pds-modal-footer.js +1 -1
  29. package/components/pds-modal-header.js +1 -1
  30. package/components/pds-modal.js +1 -1
  31. package/components/pds-modal2.js +1 -0
  32. package/components/pds-multiselect.js +1 -1
  33. package/components/pds-popover.js +1 -1
  34. package/components/pds-progress.js +1 -1
  35. package/components/pds-property.js +1 -1
  36. package/components/pds-radio-group.js +1 -1
  37. package/components/pds-radio.js +1 -1
  38. package/components/pds-row.js +1 -1
  39. package/components/pds-select.js +1 -1
  40. package/components/pds-sortable-item.js +1 -1
  41. package/components/pds-sortable.js +2 -2
  42. package/components/pds-switch.js +1 -1
  43. package/components/pds-table-body.js +1 -1
  44. package/components/pds-table-cell2.js +1 -1
  45. package/components/pds-table-head-cell2.js +1 -1
  46. package/components/pds-table-head.js +1 -1
  47. package/components/pds-table-row.js +1 -1
  48. package/components/pds-tabpanel.js +1 -1
  49. package/components/pds-tabs.js +1 -1
  50. package/components/pds-text2.js +1 -1
  51. package/components/pds-textarea.js +1 -1
  52. package/components/pds-toast.js +1 -1
  53. package/components/pds-tooltip.js +1 -1
  54. package/components/truncation-tooltip.js +1 -1
  55. package/dist/cjs/{index-CuQil7H0.js → index-CaLa1zy9.js} +1 -1
  56. package/dist/cjs/{index-BMV0nzMk.js → index-DYvijwA6.js} +1 -1
  57. package/dist/cjs/index.cjs.js +20 -0
  58. package/dist/cjs/loader.cjs.js +2 -2
  59. package/dist/cjs/mock-pds-modal.cjs.entry.js +3 -3
  60. package/dist/cjs/pds-accordion.cjs.entry.js +2 -2
  61. package/dist/cjs/pds-alert.cjs.entry.js +1 -1
  62. package/dist/cjs/pds-avatar.cjs.entry.js +2 -2
  63. package/dist/cjs/pds-box.cjs.entry.js +2 -2
  64. package/dist/cjs/pds-button.cjs.entry.js +4 -4
  65. package/dist/cjs/pds-checkbox.cjs.entry.js +3 -3
  66. package/dist/cjs/pds-chip.cjs.entry.js +46 -12
  67. package/dist/cjs/pds-combobox.cjs.entry.js +3 -3
  68. package/dist/cjs/pds-container.cjs.entry.js +1 -1
  69. package/dist/cjs/pds-copytext.cjs.entry.js +8 -4
  70. package/dist/cjs/pds-divider.cjs.entry.js +1 -1
  71. package/dist/cjs/pds-drawer-content.cjs.entry.js +23 -0
  72. package/dist/cjs/pds-drawer-footer.cjs.entry.js +23 -0
  73. package/dist/cjs/pds-drawer-header.cjs.entry.js +23 -0
  74. package/dist/cjs/pds-drawer.cjs.entry.js +137 -0
  75. package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +2 -2
  76. package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +2 -2
  77. package/dist/cjs/pds-dropdown-menu.cjs.entry.js +2 -2
  78. package/dist/cjs/pds-filter.cjs.entry.js +3 -3
  79. package/dist/cjs/pds-filters.cjs.entry.js +2 -2
  80. package/dist/cjs/pds-icon.cjs.entry.js +2 -2
  81. package/dist/cjs/pds-image.cjs.entry.js +3 -3
  82. package/dist/cjs/pds-input.cjs.entry.js +5 -5
  83. package/dist/cjs/pds-link.cjs.entry.js +5 -5
  84. package/dist/cjs/pds-loader.cjs.entry.js +2 -2
  85. package/dist/cjs/pds-modal-content.cjs.entry.js +3 -3
  86. package/dist/cjs/pds-modal-footer.cjs.entry.js +2 -2
  87. package/dist/cjs/pds-modal-header.cjs.entry.js +2 -2
  88. package/dist/cjs/pds-modal.cjs.entry.js +173 -14
  89. package/dist/cjs/pds-multiselect.cjs.entry.js +6 -6
  90. package/dist/cjs/pds-popover.cjs.entry.js +2 -2
  91. package/dist/cjs/pds-progress.cjs.entry.js +4 -2
  92. package/dist/cjs/pds-property.cjs.entry.js +2 -2
  93. package/dist/cjs/pds-radio-group.cjs.entry.js +5 -5
  94. package/dist/cjs/pds-radio.cjs.entry.js +6 -6
  95. package/dist/cjs/pds-row.cjs.entry.js +2 -2
  96. package/dist/cjs/pds-select.cjs.entry.js +3 -3
  97. package/dist/cjs/pds-sortable-item.cjs.entry.js +3 -3
  98. package/dist/cjs/pds-sortable.cjs.entry.js +2 -2
  99. package/dist/cjs/pds-switch.cjs.entry.js +6 -6
  100. package/dist/cjs/pds-tab.cjs.entry.js +1 -1
  101. package/dist/cjs/pds-table-body.cjs.entry.js +2 -2
  102. package/dist/cjs/pds-table-cell.cjs.entry.js +4 -4
  103. package/dist/cjs/pds-table-head-cell.cjs.entry.js +4 -4
  104. package/dist/cjs/pds-table-head.cjs.entry.js +2 -2
  105. package/dist/cjs/pds-table-row.cjs.entry.js +2 -2
  106. package/dist/cjs/pds-table.cjs.entry.js +1 -1
  107. package/dist/cjs/pds-tabpanel.cjs.entry.js +2 -2
  108. package/dist/cjs/pds-tabs.cjs.entry.js +2 -2
  109. package/dist/cjs/pds-text.cjs.entry.js +7 -25
  110. package/dist/cjs/pds-textarea.cjs.entry.js +7 -7
  111. package/dist/cjs/pds-toast.cjs.entry.js +4 -4
  112. package/dist/cjs/pds-tooltip.cjs.entry.js +3 -3
  113. package/dist/cjs/pine-core.cjs.js +2 -2
  114. package/dist/cjs/{truncation-tooltip-CVzAha5B.js → truncation-tooltip-Bps7_rUy.js} +51 -1
  115. package/dist/cjs/{utils-7jx8T2mW.js → utils-KWALOgy9.js} +16 -2
  116. package/dist/collection/collection-manifest.json +4 -0
  117. package/dist/collection/components/pds-button/pds-button.css +1 -2
  118. package/dist/collection/components/pds-checkbox/pds-checkbox.css +6 -4
  119. package/dist/collection/components/pds-chip/pds-chip.css +60 -6
  120. package/dist/collection/components/pds-chip/pds-chip.js +82 -8
  121. package/dist/collection/components/pds-chip/pds-chip.tokens.css +16 -0
  122. package/dist/collection/components/pds-chip/stories/pds-chip.stories.js +39 -1
  123. package/dist/collection/components/pds-combobox/pds-combobox.css +1 -2
  124. package/dist/collection/components/pds-combobox/pds-combobox.js +1 -1
  125. package/dist/collection/components/pds-copytext/pds-copytext.js +5 -1
  126. package/dist/collection/components/pds-drawer/pds-drawer-content/pds-drawer-content.css +22 -0
  127. package/dist/collection/components/pds-drawer/pds-drawer-content/pds-drawer-content.js +29 -0
  128. package/dist/collection/components/pds-drawer/pds-drawer-footer/pds-drawer-footer.css +15 -0
  129. package/dist/collection/components/pds-drawer/pds-drawer-footer/pds-drawer-footer.js +23 -0
  130. package/dist/collection/components/pds-drawer/pds-drawer-header/pds-drawer-header.css +15 -0
  131. package/dist/collection/components/pds-drawer/pds-drawer-header/pds-drawer-header.js +23 -0
  132. package/dist/collection/components/pds-drawer/pds-drawer.css +36 -0
  133. package/dist/collection/components/pds-drawer/pds-drawer.js +362 -0
  134. package/dist/collection/components/pds-drawer/stories/pds-drawer.stories.js +72 -0
  135. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +1 -1
  136. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js +1 -1
  137. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +1 -1
  138. package/dist/collection/components/pds-filters/pds-filter/pds-filter.js +1 -1
  139. package/dist/collection/components/pds-filters/pds-filters.js +1 -1
  140. package/dist/collection/components/pds-image/pds-image.js +2 -2
  141. package/dist/collection/components/pds-input/pds-input.js +2 -2
  142. package/dist/collection/components/pds-link/pds-link.js +2 -2
  143. package/dist/collection/components/pds-loader/pds-loader.js +1 -1
  144. package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +2 -2
  145. package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js +1 -1
  146. package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js +1 -1
  147. package/dist/collection/components/pds-modal/pds-modal.css +4 -0
  148. package/dist/collection/components/pds-modal/pds-modal.js +209 -16
  149. package/dist/collection/components/pds-modal/stories/pds-modal.stories.js +14 -0
  150. package/dist/collection/components/pds-modal/test/mock-pds-modal.js +1 -1
  151. package/dist/collection/components/pds-multiselect/pds-multiselect.js +3 -3
  152. package/dist/collection/components/pds-popover/pds-popover.js +1 -1
  153. package/dist/collection/components/pds-progress/pds-progress.js +3 -1
  154. package/dist/collection/components/pds-property/pds-property.js +1 -1
  155. package/dist/collection/components/pds-radio/pds-radio.css +1 -2
  156. package/dist/collection/components/pds-radio/pds-radio.js +3 -3
  157. package/dist/collection/components/pds-radio-group/pds-radio-group.js +3 -3
  158. package/dist/collection/components/pds-row/pds-row.js +1 -1
  159. package/dist/collection/components/pds-select/pds-select.js +1 -1
  160. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -1
  161. package/dist/collection/components/pds-sortable/pds-sortable.js +1 -1
  162. package/dist/collection/components/pds-switch/pds-switch.css +1 -1
  163. package/dist/collection/components/pds-switch/pds-switch.js +3 -3
  164. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
  165. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +3 -3
  166. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +1 -1
  167. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +2 -2
  168. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +1 -1
  169. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +1 -1
  170. package/dist/collection/components/pds-tabs/pds-tabs.js +1 -1
  171. package/dist/collection/components/pds-text/pds-text.js +2 -2
  172. package/dist/collection/components/pds-textarea/pds-textarea.js +4 -4
  173. package/dist/collection/components/pds-toast/pds-toast.js +3 -3
  174. package/dist/collection/components/pds-tooltip/pds-tooltip.js +2 -2
  175. package/dist/collection/index.js +1 -0
  176. package/dist/collection/utils/test/reduced-motion.js +78 -0
  177. package/dist/collection/utils/truncation-tooltip.js +51 -1
  178. package/dist/collection/utils/utils.js +16 -2
  179. package/dist/docs.json +492 -15
  180. package/dist/esm/{index-Bu9gFIxM.js → index-BU1hN5Vy.js} +1 -1
  181. package/dist/esm/{index-CTLu1TM4.js → index-DcT8--Dn.js} +1 -1
  182. package/dist/esm/index.js +19 -0
  183. package/dist/esm/loader.js +3 -3
  184. package/dist/esm/mock-pds-modal.entry.js +3 -3
  185. package/dist/esm/pds-accordion.entry.js +2 -2
  186. package/dist/esm/pds-alert.entry.js +1 -1
  187. package/dist/esm/pds-avatar.entry.js +2 -2
  188. package/dist/esm/pds-box.entry.js +2 -2
  189. package/dist/esm/pds-button.entry.js +4 -4
  190. package/dist/esm/pds-checkbox.entry.js +3 -3
  191. package/dist/esm/pds-chip.entry.js +46 -12
  192. package/dist/esm/pds-combobox.entry.js +3 -3
  193. package/dist/esm/pds-container.entry.js +1 -1
  194. package/dist/esm/pds-copytext.entry.js +8 -4
  195. package/dist/esm/pds-divider.entry.js +1 -1
  196. package/dist/esm/pds-drawer-content.entry.js +21 -0
  197. package/dist/esm/pds-drawer-footer.entry.js +21 -0
  198. package/dist/esm/pds-drawer-header.entry.js +21 -0
  199. package/dist/esm/pds-drawer.entry.js +135 -0
  200. package/dist/esm/pds-dropdown-menu-item.entry.js +2 -2
  201. package/dist/esm/pds-dropdown-menu-separator.entry.js +2 -2
  202. package/dist/esm/pds-dropdown-menu.entry.js +2 -2
  203. package/dist/esm/pds-filter.entry.js +3 -3
  204. package/dist/esm/pds-filters.entry.js +2 -2
  205. package/dist/esm/pds-icon.entry.js +2 -2
  206. package/dist/esm/pds-image.entry.js +3 -3
  207. package/dist/esm/pds-input.entry.js +5 -5
  208. package/dist/esm/pds-link.entry.js +5 -5
  209. package/dist/esm/pds-loader.entry.js +2 -2
  210. package/dist/esm/pds-modal-content.entry.js +3 -3
  211. package/dist/esm/pds-modal-footer.entry.js +2 -2
  212. package/dist/esm/pds-modal-header.entry.js +2 -2
  213. package/dist/esm/pds-modal.entry.js +173 -14
  214. package/dist/esm/pds-multiselect.entry.js +6 -6
  215. package/dist/esm/pds-popover.entry.js +2 -2
  216. package/dist/esm/pds-progress.entry.js +4 -2
  217. package/dist/esm/pds-property.entry.js +2 -2
  218. package/dist/esm/pds-radio-group.entry.js +5 -5
  219. package/dist/esm/pds-radio.entry.js +6 -6
  220. package/dist/esm/pds-row.entry.js +2 -2
  221. package/dist/esm/pds-select.entry.js +3 -3
  222. package/dist/esm/pds-sortable-item.entry.js +3 -3
  223. package/dist/esm/pds-sortable.entry.js +2 -2
  224. package/dist/esm/pds-switch.entry.js +6 -6
  225. package/dist/esm/pds-tab.entry.js +1 -1
  226. package/dist/esm/pds-table-body.entry.js +2 -2
  227. package/dist/esm/pds-table-cell.entry.js +4 -4
  228. package/dist/esm/pds-table-head-cell.entry.js +4 -4
  229. package/dist/esm/pds-table-head.entry.js +2 -2
  230. package/dist/esm/pds-table-row.entry.js +2 -2
  231. package/dist/esm/pds-table.entry.js +1 -1
  232. package/dist/esm/pds-tabpanel.entry.js +2 -2
  233. package/dist/esm/pds-tabs.entry.js +2 -2
  234. package/dist/esm/pds-text.entry.js +5 -23
  235. package/dist/esm/pds-textarea.entry.js +7 -7
  236. package/dist/esm/pds-toast.entry.js +4 -4
  237. package/dist/esm/pds-tooltip.entry.js +3 -3
  238. package/dist/esm/pine-core.js +3 -3
  239. package/dist/esm/{truncation-tooltip-Blk4GigP.js → truncation-tooltip-CdtEBn_5.js} +51 -1
  240. package/dist/esm/{utils-tJa4KYNO.js → utils-u_0lxWnH.js} +16 -2
  241. package/dist/esm-es5/{index-CTLu1TM4.js → index-DcT8--Dn.js} +2 -2
  242. package/dist/esm-es5/index.js +1 -0
  243. package/dist/esm-es5/loader.js +1 -1
  244. package/dist/esm-es5/mock-pds-modal.entry.js +1 -1
  245. package/dist/esm-es5/pds-accordion.entry.js +1 -1
  246. package/dist/esm-es5/pds-alert.entry.js +1 -1
  247. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  248. package/dist/esm-es5/pds-box.entry.js +1 -1
  249. package/dist/esm-es5/pds-button.entry.js +1 -1
  250. package/dist/esm-es5/pds-checkbox.entry.js +1 -1
  251. package/dist/esm-es5/pds-chip.entry.js +1 -1
  252. package/dist/esm-es5/pds-combobox.entry.js +2 -2
  253. package/dist/esm-es5/pds-container.entry.js +1 -1
  254. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  255. package/dist/esm-es5/pds-divider.entry.js +1 -1
  256. package/dist/esm-es5/pds-drawer-content.entry.js +1 -0
  257. package/dist/esm-es5/pds-drawer-footer.entry.js +1 -0
  258. package/dist/esm-es5/pds-drawer-header.entry.js +1 -0
  259. package/dist/esm-es5/pds-drawer.entry.js +1 -0
  260. package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -1
  261. package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +1 -1
  262. package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -1
  263. package/dist/esm-es5/pds-filter.entry.js +1 -1
  264. package/dist/esm-es5/pds-filters.entry.js +1 -1
  265. package/dist/esm-es5/pds-icon.entry.js +1 -1
  266. package/dist/esm-es5/pds-image.entry.js +1 -1
  267. package/dist/esm-es5/pds-input.entry.js +1 -1
  268. package/dist/esm-es5/pds-link.entry.js +1 -1
  269. package/dist/esm-es5/pds-loader.entry.js +1 -1
  270. package/dist/esm-es5/pds-modal-content.entry.js +1 -1
  271. package/dist/esm-es5/pds-modal-footer.entry.js +1 -1
  272. package/dist/esm-es5/pds-modal-header.entry.js +1 -1
  273. package/dist/esm-es5/pds-modal.entry.js +1 -1
  274. package/dist/esm-es5/pds-multiselect.entry.js +1 -1
  275. package/dist/esm-es5/pds-popover.entry.js +1 -1
  276. package/dist/esm-es5/pds-progress.entry.js +1 -1
  277. package/dist/esm-es5/pds-property.entry.js +1 -1
  278. package/dist/esm-es5/pds-radio-group.entry.js +1 -1
  279. package/dist/esm-es5/pds-radio.entry.js +1 -1
  280. package/dist/esm-es5/pds-row.entry.js +1 -1
  281. package/dist/esm-es5/pds-select.entry.js +1 -1
  282. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  283. package/dist/esm-es5/pds-sortable.entry.js +2 -2
  284. package/dist/esm-es5/pds-switch.entry.js +1 -1
  285. package/dist/esm-es5/pds-tab.entry.js +1 -1
  286. package/dist/esm-es5/pds-table-body.entry.js +1 -1
  287. package/dist/esm-es5/pds-table-cell.entry.js +1 -1
  288. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
  289. package/dist/esm-es5/pds-table-head.entry.js +1 -1
  290. package/dist/esm-es5/pds-table-row.entry.js +1 -1
  291. package/dist/esm-es5/pds-table.entry.js +1 -1
  292. package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
  293. package/dist/esm-es5/pds-tabs.entry.js +1 -1
  294. package/dist/esm-es5/pds-text.entry.js +1 -1
  295. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  296. package/dist/esm-es5/pds-toast.entry.js +1 -1
  297. package/dist/esm-es5/pds-tooltip.entry.js +1 -1
  298. package/dist/esm-es5/pine-core.js +1 -1
  299. package/dist/esm-es5/truncation-tooltip-CdtEBn_5.js +1 -0
  300. package/dist/pine-core/index.esm.js +1 -0
  301. package/dist/pine-core/p-003df3b3.entry.js +1 -0
  302. package/dist/pine-core/{p-92ef1608.system.entry.js → p-02452806.system.entry.js} +1 -1
  303. package/dist/pine-core/{p-5d585aa8.entry.js → p-026ee6de.entry.js} +1 -1
  304. package/dist/pine-core/{p-463eb0e6.system.entry.js → p-03f3fc92.system.entry.js} +1 -1
  305. package/dist/pine-core/p-06375326.system.entry.js +1 -0
  306. package/dist/pine-core/p-08196d6c.entry.js +1 -0
  307. package/dist/pine-core/{p-bf3afa16.system.entry.js → p-089606b8.system.entry.js} +1 -1
  308. package/dist/pine-core/p-12941e0d.entry.js +1 -0
  309. package/dist/pine-core/{p-3b9e77b3.entry.js → p-13bb89ff.entry.js} +1 -1
  310. package/dist/pine-core/{p-1649dd61.system.entry.js → p-15a0fa0a.system.entry.js} +1 -1
  311. package/dist/pine-core/{p-3050c66f.entry.js → p-1abae35f.entry.js} +1 -1
  312. package/dist/pine-core/p-1df5e088.entry.js +1 -0
  313. package/dist/pine-core/{p-460aa66f.system.entry.js → p-20753e42.system.entry.js} +1 -1
  314. package/dist/pine-core/{p-12ec8186.system.entry.js → p-24214ab9.system.entry.js} +1 -1
  315. package/dist/pine-core/p-250011ba.entry.js +1 -0
  316. package/dist/pine-core/{p-9b68669f.entry.js → p-2b420257.entry.js} +1 -1
  317. package/dist/pine-core/{p-86bc2a0c.entry.js → p-2bb101c2.entry.js} +1 -1
  318. package/dist/pine-core/{p-6089d811.entry.js → p-2dbc90ba.entry.js} +1 -1
  319. package/dist/pine-core/{p-2fd71a0c.entry.js → p-317337e4.entry.js} +1 -1
  320. package/dist/pine-core/{p-a9e54964.entry.js → p-32fc82c2.entry.js} +1 -1
  321. package/dist/pine-core/{p-714bfdbd.entry.js → p-35edd8b0.entry.js} +1 -1
  322. package/dist/pine-core/p-375eb7f4.entry.js +1 -0
  323. package/dist/pine-core/{p-e1653d75.system.entry.js → p-3b555f06.system.entry.js} +1 -1
  324. package/dist/pine-core/p-3b796898.entry.js +1 -0
  325. package/dist/pine-core/{p-c0753d9f.entry.js → p-3c5489ce.entry.js} +1 -1
  326. package/dist/pine-core/{p-8702635d.system.entry.js → p-3e868906.system.entry.js} +1 -1
  327. package/dist/pine-core/{p-eb4058ed.system.entry.js → p-441682f4.system.entry.js} +1 -1
  328. package/dist/pine-core/{p-7b1e3e91.entry.js → p-44222439.entry.js} +1 -1
  329. package/dist/pine-core/p-45d55983.entry.js +1 -0
  330. package/dist/pine-core/{p-544ccf67.entry.js → p-464f23e6.entry.js} +1 -1
  331. package/dist/pine-core/{p-aecaff12.entry.js → p-49c6112a.entry.js} +1 -1
  332. package/dist/pine-core/p-4bd57896.system.entry.js +1 -0
  333. package/dist/pine-core/{p-b0531455.entry.js → p-4cbb691f.entry.js} +1 -1
  334. package/dist/pine-core/{p-46f0dda5.system.entry.js → p-4ebdb90b.system.entry.js} +1 -1
  335. package/dist/pine-core/{p-b109de2e.entry.js → p-4f5aacd9.entry.js} +1 -1
  336. package/dist/pine-core/{p-9187c26c.system.entry.js → p-55532d56.system.entry.js} +1 -1
  337. package/dist/pine-core/{p-f35596cd.entry.js → p-558ac401.entry.js} +1 -1
  338. package/dist/pine-core/{p-c09dab1a.system.entry.js → p-57784f2f.system.entry.js} +1 -1
  339. package/dist/pine-core/p-5a8345e2.entry.js +1 -0
  340. package/dist/pine-core/{p-4923a3fe.entry.js → p-5c5bd609.entry.js} +1 -1
  341. package/dist/pine-core/p-5d2f95bd.entry.js +1 -0
  342. package/dist/pine-core/p-5f3d0c86.system.entry.js +1 -0
  343. package/dist/pine-core/{p-a3c4c0ee.entry.js → p-5f5339ab.entry.js} +1 -1
  344. package/dist/pine-core/{p-bfa640f4.system.entry.js → p-67fc26e5.system.entry.js} +1 -1
  345. package/dist/pine-core/p-6a6a767b.system.entry.js +1 -0
  346. package/dist/pine-core/p-6b260a97.entry.js +1 -0
  347. package/dist/pine-core/{p-d804d37b.system.entry.js → p-6b3d8c2b.system.entry.js} +1 -1
  348. package/dist/pine-core/p-6dabeebc.system.entry.js +3 -0
  349. package/dist/pine-core/{p-d157a33a.entry.js → p-70891202.entry.js} +1 -1
  350. package/dist/pine-core/p-70fb83d4.entry.js +1 -0
  351. package/dist/pine-core/{p-7a1971ec.entry.js → p-73c3a73f.entry.js} +1 -1
  352. package/dist/pine-core/p-73fa955a.system.entry.js +1 -0
  353. package/dist/pine-core/p-755e0b3c.system.entry.js +1 -0
  354. package/dist/pine-core/p-77082557.system.entry.js +1 -0
  355. package/dist/pine-core/{p-65557500.entry.js → p-7e4729e0.entry.js} +1 -1
  356. package/dist/pine-core/p-8b051229.entry.js +1 -0
  357. package/dist/pine-core/{p-c713ffc6.system.entry.js → p-8d1e7b3c.system.entry.js} +1 -1
  358. package/dist/pine-core/{p-63f5f66f.system.entry.js → p-8d8a8550.system.entry.js} +1 -1
  359. package/dist/pine-core/{p-2d4b9253.entry.js → p-93486f2e.entry.js} +1 -1
  360. package/dist/pine-core/{p-b255d3b7.entry.js → p-93ae562d.entry.js} +1 -1
  361. package/dist/pine-core/{p-ce79321b.system.entry.js → p-93c52e2b.system.entry.js} +1 -1
  362. package/dist/pine-core/{p-08151143.system.entry.js → p-95b8bece.system.entry.js} +1 -1
  363. package/dist/pine-core/{p-af4a24d9.entry.js → p-95defb53.entry.js} +1 -1
  364. package/dist/pine-core/{p-92c79ed4.system.entry.js → p-99f300ef.system.entry.js} +1 -1
  365. package/dist/pine-core/p-9d77f2f8.system.entry.js +1 -0
  366. package/dist/pine-core/p-9d902000.system.entry.js +1 -0
  367. package/dist/pine-core/p-9ef355b7.entry.js +1 -0
  368. package/dist/pine-core/p-B2nn1gSd.js +1 -0
  369. package/dist/pine-core/{p-CRCxGYgw.system.js → p-B2qvvB3q.system.js} +1 -1
  370. package/dist/pine-core/p-BI7Ml0VF.system.js +1 -0
  371. package/dist/pine-core/p-CJ8t3EBJ.system.js +2 -0
  372. package/dist/pine-core/p-DcT8--Dn.js +2 -0
  373. package/dist/pine-core/p-G3CPPJEt.system.js +1 -0
  374. package/dist/pine-core/p-a009ab10.system.entry.js +1 -0
  375. package/dist/pine-core/p-a616385b.system.entry.js +1 -0
  376. package/dist/pine-core/{p-bba759f8.system.entry.js → p-a6a269da.system.entry.js} +1 -1
  377. package/dist/pine-core/p-a8cd2ab5.entry.js +1 -0
  378. package/dist/pine-core/p-a8f1a48d.entry.js +1 -0
  379. package/dist/pine-core/p-b0becff3.system.entry.js +1 -0
  380. package/dist/pine-core/p-b45b8f8b.system.entry.js +1 -0
  381. package/dist/pine-core/{p-e16dfb32.system.entry.js → p-b53d9620.system.entry.js} +1 -1
  382. package/dist/pine-core/p-b85bb61d.system.entry.js +1 -0
  383. package/dist/pine-core/{p-ae296598.entry.js → p-b8a5597d.entry.js} +1 -1
  384. package/dist/pine-core/p-b9a857fc.system.entry.js +1 -0
  385. package/dist/pine-core/p-bd9b2931.system.entry.js +1 -0
  386. package/dist/pine-core/p-bdded57a.system.entry.js +1 -0
  387. package/dist/pine-core/{p-4dad0878.entry.js → p-bf025e38.entry.js} +1 -1
  388. package/dist/pine-core/{p-0fcda1ec.entry.js → p-c08b1697.entry.js} +1 -1
  389. package/dist/pine-core/p-c1a65082.entry.js +1 -0
  390. package/dist/pine-core/p-c1d1befb.system.entry.js +1 -0
  391. package/dist/pine-core/{p-1e952dbb.entry.js → p-c5b6b545.entry.js} +2 -2
  392. package/dist/pine-core/{p-ce63f726.system.entry.js → p-c6426e16.system.entry.js} +1 -1
  393. package/dist/pine-core/{p-d54af26c.system.entry.js → p-cfcb89d1.system.entry.js} +1 -1
  394. package/dist/pine-core/{p-aa208514.entry.js → p-d33d65f6.entry.js} +1 -1
  395. package/dist/pine-core/p-d70aa0c7.system.entry.js +1 -0
  396. package/dist/pine-core/{p-902b3e8b.system.entry.js → p-d9c1ee36.system.entry.js} +1 -1
  397. package/dist/pine-core/{p-e450eb27.system.entry.js → p-df285ece.system.entry.js} +1 -1
  398. package/dist/pine-core/{p-04a30a2d.system.entry.js → p-e039ebb6.system.entry.js} +1 -1
  399. package/dist/pine-core/{p-4d6944aa.entry.js → p-e055c543.entry.js} +1 -1
  400. package/dist/pine-core/{p-2af19aa7.entry.js → p-e08e4ca7.entry.js} +1 -1
  401. package/dist/pine-core/p-ea986474.system.entry.js +1 -0
  402. package/dist/pine-core/{p-afd07d5b.entry.js → p-ec04d4c3.entry.js} +1 -1
  403. package/dist/pine-core/p-ee114aef.entry.js +1 -0
  404. package/dist/pine-core/{p-d415bb01.entry.js → p-ee997fbf.entry.js} +2 -2
  405. package/dist/pine-core/{p-8e6a8a8e.entry.js → p-f1365550.entry.js} +1 -1
  406. package/dist/pine-core/{p-fcf91f14.system.entry.js → p-f26dcbc2.system.entry.js} +1 -1
  407. package/dist/pine-core/{p-cf72e9b1.system.entry.js → p-f5cf98be.system.entry.js} +1 -1
  408. package/dist/pine-core/{p-b17fa86a.system.entry.js → p-f682f08a.system.entry.js} +1 -1
  409. package/dist/pine-core/p-f89197c9.entry.js +1 -0
  410. package/dist/pine-core/p-f9f7101e.entry.js +1 -0
  411. package/dist/pine-core/{p-226232a7.system.entry.js → p-fa2a786d.system.entry.js} +1 -1
  412. package/dist/pine-core/{p-7c18e9e8.system.entry.js → p-fa8d3155.system.entry.js} +2 -2
  413. package/dist/pine-core/p-fb774f89.system.entry.js +1 -0
  414. package/dist/pine-core/{p-ba8bd9dc.system.entry.js → p-fbb72e66.system.entry.js} +1 -1
  415. package/dist/pine-core/pine-core.css +1 -1
  416. package/dist/pine-core/pine-core.esm.js +1 -1
  417. package/dist/pine-core/pine-core.js +1 -1
  418. package/dist/types/components/pds-chip/pds-chip.d.ts +12 -0
  419. package/dist/types/components/pds-drawer/pds-drawer-content/pds-drawer-content.d.ts +11 -0
  420. package/dist/types/components/pds-drawer/pds-drawer-footer/pds-drawer-footer.d.ts +5 -0
  421. package/dist/types/components/pds-drawer/pds-drawer-header/pds-drawer-header.d.ts +5 -0
  422. package/dist/types/components/pds-drawer/pds-drawer.d.ts +78 -0
  423. package/dist/types/components/pds-modal/pds-modal.d.ts +47 -2
  424. package/dist/types/components/pds-table/pds-table-cell/pds-table-cell.d.ts +2 -1
  425. package/dist/types/components/pds-text/pds-text.d.ts +2 -1
  426. package/dist/types/components.d.ts +253 -11
  427. package/dist/types/index.d.ts +1 -0
  428. package/dist/types/utils/test/reduced-motion.d.ts +30 -0
  429. package/dist/types/utils/truncation-tooltip.d.ts +12 -0
  430. package/dist/types/utils/types.d.ts +2 -1
  431. package/dist/types/utils/utils.d.ts +16 -1
  432. package/dist/vscode.html-data.json +169 -6
  433. package/hydrate/index.js +623 -115
  434. package/hydrate/index.mjs +623 -115
  435. package/package.json +7 -3
  436. package/dist/esm-es5/truncation-tooltip-Blk4GigP.js +0 -1
  437. package/dist/pine-core/p-056667f0.entry.js +0 -1
  438. package/dist/pine-core/p-0d73d473.entry.js +0 -1
  439. package/dist/pine-core/p-0e89a189.entry.js +0 -1
  440. package/dist/pine-core/p-1ba361cb.entry.js +0 -1
  441. package/dist/pine-core/p-210f0994.system.entry.js +0 -1
  442. package/dist/pine-core/p-222ff58e.system.entry.js +0 -1
  443. package/dist/pine-core/p-228a9068.system.entry.js +0 -1
  444. package/dist/pine-core/p-2e214db6.entry.js +0 -1
  445. package/dist/pine-core/p-33de0eb7.system.entry.js +0 -1
  446. package/dist/pine-core/p-3aec9079.entry.js +0 -1
  447. package/dist/pine-core/p-3cdc1a5b.entry.js +0 -1
  448. package/dist/pine-core/p-4faff617.entry.js +0 -1
  449. package/dist/pine-core/p-50e0f726.system.entry.js +0 -1
  450. package/dist/pine-core/p-520f7a5b.entry.js +0 -1
  451. package/dist/pine-core/p-53999cd6.system.entry.js +0 -1
  452. package/dist/pine-core/p-5c239f0a.entry.js +0 -1
  453. package/dist/pine-core/p-611f68b7.system.entry.js +0 -1
  454. package/dist/pine-core/p-7691a875.system.entry.js +0 -3
  455. package/dist/pine-core/p-85434de8.system.entry.js +0 -1
  456. package/dist/pine-core/p-897fe88c.entry.js +0 -1
  457. package/dist/pine-core/p-9487ff20.system.entry.js +0 -1
  458. package/dist/pine-core/p-9507eb49.system.entry.js +0 -1
  459. package/dist/pine-core/p-97198cb6.system.entry.js +0 -1
  460. package/dist/pine-core/p-9a7294e7.system.entry.js +0 -1
  461. package/dist/pine-core/p-9fd1e8f4.system.entry.js +0 -1
  462. package/dist/pine-core/p-BNSGedhN.js +0 -1
  463. package/dist/pine-core/p-CTLu1TM4.js +0 -2
  464. package/dist/pine-core/p-DAIsVNlL.system.js +0 -2
  465. package/dist/pine-core/p-Dr-FzkdE.system.js +0 -1
  466. package/dist/pine-core/p-YWpyar7R.system.js +0 -1
  467. package/dist/pine-core/p-a53222f7.entry.js +0 -1
  468. package/dist/pine-core/p-a7eabc0c.system.entry.js +0 -1
  469. package/dist/pine-core/p-a8ab4d9b.entry.js +0 -1
  470. package/dist/pine-core/p-b52deffb.entry.js +0 -1
  471. package/dist/pine-core/p-b6c2090f.system.entry.js +0 -1
  472. package/dist/pine-core/p-d27ef352.system.entry.js +0 -1
  473. package/dist/pine-core/p-e11795db.system.entry.js +0 -1
  474. package/dist/pine-core/p-f09ce49e.entry.js +0 -1
  475. package/dist/pine-core/p-f3683be8.entry.js +0 -1
  476. /package/dist/esm-es5/{index-Bu9gFIxM.js → index-BU1hN5Vy.js} +0 -0
  477. /package/dist/esm-es5/{utils-tJa4KYNO.js → utils-u_0lxWnH.js} +0 -0
  478. /package/dist/pine-core/{p-Bu9gFIxM.js → p-BU1hN5Vy.js} +0 -0
  479. /package/dist/pine-core/{p-BG6uGRQj.system.js → p-D_I-k33A.system.js} +0 -0
  480. /package/dist/pine-core/{p-Bjc6fc_Y.system.js → p-ctdGub9B.system.js} +0 -0
  481. /package/dist/pine-core/{p-tJa4KYNO.js → p-u_0lxWnH.js} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pine-ds/core",
3
- "version": "4.1.0",
3
+ "version": "4.3.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Base components for Pine Design System",
@@ -51,6 +51,8 @@
51
51
  "loader/"
52
52
  ],
53
53
  "scripts": {
54
+ "api.check": "node scripts/prepare-api-types.mjs && api-extractor run --verbose",
55
+ "api.update": "node scripts/prepare-api-types.mjs && api-extractor run --local --verbose",
54
56
  "build": "npm run build.stencil",
55
57
  "build.all": "run-s build.stencil build.storybook",
56
58
  "build.stencil": "stencil build --docs && mkdir -p dist/scripts && cp scripts/vscode-settings-patcher.cjs dist/scripts/",
@@ -69,6 +71,7 @@
69
71
  "start.stencil": "stencil build --docs --dev --watch --serve --config=stencil.local.config.ts",
70
72
  "start.storybook": "storybook dev -p 6006",
71
73
  "test": "stencil test --spec --e2e --coverage",
74
+ "test.a11y": "node scripts/a11y.mjs",
72
75
  "test.watch": "stencil test --spec --e2e --watchAll --coverage"
73
76
  },
74
77
  "dependencies": {
@@ -86,21 +89,22 @@
86
89
  "@babel/preset-env": "^7.22.10",
87
90
  "@chromatic-com/storybook": "^4.1.3",
88
91
  "@mdx-js/rollup": "^3.1.1",
89
- "@pine-ds/doc-components": "^4.1.0",
92
+ "@pine-ds/doc-components": "^4.3.0",
90
93
  "@stencil-community/eslint-plugin": "^0.8.0",
91
94
  "@stencil/react-output-target": "^0.5.3",
92
95
  "@stencil/sass": "^3.2.0",
93
96
  "@storybook/addon-a11y": "^10.4.2",
94
97
  "@storybook/addon-docs": "^10.4.2",
95
98
  "@storybook/addon-links": "^10.4.2",
99
+ "@storybook/test-runner": "^0.24.5",
96
100
  "@storybook/web-components": "^10.4.2",
97
101
  "@storybook/web-components-vite": "^10.4.2",
98
102
  "@types/jest": "^29.5.14",
99
103
  "@types/sortablejs": "^1.15.1",
100
- "axe-core": "^4.10.2",
101
104
  "@typescript-eslint/eslint-plugin": "6.6.0",
102
105
  "@typescript-eslint/parser": "6.6.0",
103
106
  "@vitejs/plugin-react": "^5.1.1",
107
+ "axe-core": "^4.10.2",
104
108
  "babel-loader": "^8.2.5",
105
109
  "eslint": "^8.25.0",
106
110
  "eslint-config-prettier": "^8.5.0",
@@ -1 +0,0 @@
1
- import{__awaiter,__generator}from"tslib";import{c as computePosition,o as offset,f as flip,s as shift}from"./floating-ui.dom-DDtwbwIl.js";var TOOLTIP_CLASS="pds-truncation-tooltip";function injectStyles(){if(document.querySelector("[data-pds-truncation-tooltip]"))return;var n=document.createElement("style");n.setAttribute("data-pds-truncation-tooltip","");n.textContent="\n .".concat(TOOLTIP_CLASS," {\n position: fixed;\n z-index: var(--pine-z-index-nuclear, 9999);\n }\n .").concat(TOOLTIP_CLASS,"__content {\n background-color: var(--pine-color-primary, #1a1a2e);\n border-radius: calc(var(--pine-dimension-xs, 4px) * 1.25);\n box-shadow: var(--pine-box-shadow, 0 2px 8px rgba(0,0,0,0.15));\n color: var(--pine-color-text-primary, #fff);\n cursor: text;\n font-family: var(--pine-font-family-body, sans-serif);\n font-size: var(--pine-font-size-body-sm, 0.875rem);\n letter-spacing: var(--pine-letter-spacing, normal);\n line-height: var(--pine-line-height-body, 1.5);\n max-width: 320px;\n opacity: 0;\n padding: var(--pine-dimension-xs, 4px) calc(var(--pine-dimension-md, 12px) / 2);\n transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out;\n user-select: text;\n visibility: hidden;\n width: max-content;\n word-break: break-word;\n }\n .").concat(TOOLTIP_CLASS,"--visible .").concat(TOOLTIP_CLASS,"__content {\n opacity: 1;\n visibility: visible;\n }\n ");document.head.appendChild(n)}function isOverflowing(n){return n.scrollWidth>n.clientWidth}function setupTruncationTooltip(n){var e=n.hostEl,i=n.contentEl,t=n.getTooltipText,o=n.placement,r=o===void 0?"top":o;injectStyles();var a=null;var u=false;var s=false;var f=false;var c=null;var l=null;var p=null;if(typeof ResizeObserver!=="undefined"){l=new ResizeObserver((function(){if(p){clearTimeout(p)}p=setTimeout((function(){p=null;if(a&&a.isConnected&&!isOverflowing(i)){O()}}),100)}));l.observe(i)}function d(){if(a)return;var n=t();if(!n||n.trim()==="")return;a=document.createElement("div");a.className=TOOLTIP_CLASS;a.setAttribute("role","tooltip");a.setAttribute("aria-hidden","false");var e=document.createElement("div");e.className="".concat(TOOLTIP_CLASS,"__content");e.textContent=n.trim();a.appendChild(e);document.body.appendChild(a);a.addEventListener("mouseenter",h);a.addEventListener("mouseleave",y);v().then((function(){if(a){a.classList.add("".concat(TOOLTIP_CLASS,"--visible"))}}))}function v(){return __awaiter(this,void 0,void 0,(function(){var n,i,t,o,u,s,f,c,l;return __generator(this,(function(p){switch(p.label){case 0:if(!a)return[2];p.label=1;case 1:p.trys.push([1,3,,4]);return[4,computePosition(e,a,{placement:r,strategy:"fixed",middleware:[offset(4),flip(),shift({padding:5})]})];case 2:n=p.sent(),i=n.x,t=n.y;Object.assign(a.style,{left:"".concat(i,"px"),top:"".concat(t,"px")});return[3,4];case 3:o=p.sent();if(a){u=e.getBoundingClientRect();s=a.getBoundingClientRect();f=5;c=Math.max(f,Math.min(u.left,window.innerWidth-s.width-f));l=Math.max(f,u.top-s.height-8);a.style.left="".concat(c,"px");a.style.top="".concat(l,"px")}return[3,4];case 4:return[2]}}))}))}function m(){if(a){a.removeEventListener("mouseenter",h);a.removeEventListener("mouseleave",y);a.classList.remove("".concat(TOOLTIP_CLASS,"--visible"));if(a.parentNode&&a.isConnected){try{a.parentNode.removeChild(a)}catch(n){}}a=null}}function T(){if(c!==null){clearTimeout(c);c=null}}function x(){T();if(!isOverflowing(i))return;d()}function O(){if(u||s||f)return;m()}function _(){T();c=setTimeout((function(){c=null;O()}),100)}function b(){u=true;x()}function S(){u=false;_()}function h(){s=true;T()}function y(){s=false;_()}function w(){f=true;x()}function L(){f=false;_()}e.addEventListener("mouseenter",b);e.addEventListener("mouseleave",S);e.addEventListener("focusin",w);e.addEventListener("focusout",L);return function(){T();if(p){clearTimeout(p);p=null}if(l){l.disconnect()}e.removeEventListener("mouseenter",b);e.removeEventListener("mouseleave",S);e.removeEventListener("focusin",w);e.removeEventListener("focusout",L);m()}}export{setupTruncationTooltip as s};
@@ -1 +0,0 @@
1
- import{r as e,c as i,h as r,H as a,a as s}from"./p-CTLu1TM4.js";import{e as o,a as d,m as n}from"./p-BuRbS7Hp.js";import{b as l}from"./p-Bu9gFIxM.js";const t=class{constructor(r){e(this,r),this.pdsRadioChange=i(this,"pdsRadioChange"),this._type="radio",this._hasImage=!1,this.checked=!1,this.disabled=!1,this.hasBorder=!1,this.invalid=!1,this.required=!1,this.handleRadioChange=e=>{if(this.disabled)return;const i=e.target.checked;this.el.closest("pds-radio-group")||this.pdsRadioChange.emit(i)}}hasImageSlot(){return!!this.el.querySelector('[slot="image"]')}hasImage(){return this._hasImage}classNames(){const e=[];return this.invalid&&e.push("is-invalid"),this.disabled&&e.push("is-disabled"),this.hasBorder&&e.push("has-border"),this.hasImage()&&e.push("has-image"),e.join(" ")}componentWillLoad(){this._hasImage=this.hasImageSlot()}connectedCallback(){o(this.el,(()=>this._type))}componentDidRender(){const e=this.el.querySelector(".pds-radio__image-container:not([hidden])");Array.from(this.el.querySelectorAll(".pds-radio__image-container[hidden], .pds-radio__content-wrapper[hidden], label[hidden], .pds-radio__message[hidden]")).forEach((i=>{const r=i.querySelector('[slot="image"]');null!==r&&null!==e&&e.appendChild(r),i.remove()}))}render(){const e=()=>[r("label",{htmlFor:this.componentId,key:`${this.componentId}-label`},r("input",{key:"0c85ea35e55ccb8d0f8ce869f9c3fefe4a143ef7","aria-describedby":d(this.componentId,this.invalid,this.helperMessage,this.errorMessage),"aria-invalid":this.invalid?"true":void 0,type:"radio",id:this.componentId,name:this.name,value:this.value,checked:this.checked,required:this.required,disabled:this.disabled,onChange:this.handleRadioChange,class:this.hasImage()?"visually-hidden":""}),r("span",{key:"3337ad8a86dc975ab2b45e989ab6f2f4bd4af90d",class:this.hideLabel?"visually-hidden":""},this.label)),this.helperMessage&&r("div",{key:`${this.componentId}-helper`,class:"pds-radio__message",id:n(this.componentId,"helper")},this.helperMessage),this.errorMessage&&r("div",{key:`${this.componentId}-error`,class:"pds-radio__message pds-radio__message--error",id:n(this.componentId,"error"),"aria-live":"assertive"},r("pds-icon",{key:"c5a3a39cb6ac1afbe9998e77e98e7d46c85a3687",icon:l,size:"small"}),this.errorMessage)];return r(a,{key:"e19f3967280820155c8cd14bafc32959f6a78c99",class:this.classNames()},this.hasImage()&&r("div",{key:"e990c72656ba7687c43c12c774b547f469213d44",class:"pds-radio__image-container",part:"image-container"},r("slot",{key:"360e92eb7490bf79ac63ff0580dae76ab660d437",name:"image",onSlotchange:()=>this._hasImage=this.hasImageSlot()})),this.hasImage()?r("div",{class:"pds-radio__content-wrapper"},e()):e())}get el(){return s(this)}};t.style='.sc-pds-radio-h{display:inline-block}[aria-disabled=true].sc-pds-radio-h label.sc-pds-radio{color:var(--pine-color-text-label-disabled)}[aria-readonly=true].sc-pds-radio-h label.sc-pds-radio{color:var(--pine-color-text-label-readonly)}label.sc-pds-radio{color:var(--pine-color-text-label);font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing)}.sc-pds-radio-h{--sizing-check-size:6px;--sizing-input-size:var(--pine-dimension-sm);--sizing-margin-block-start:6px;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap;position:relative}.is-invalid.sc-pds-radio-h .pds-radio__message--error.sc-pds-radio{color:var(--pine-color-text-message-danger)}.has-border.sc-pds-radio-h{-ms-flex-align:start;align-items:flex-start;border:var(--pine-border);border-radius:var(--pine-dimension-125);-webkit-column-gap:var(--pine-dimension-xs);-moz-column-gap:var(--pine-dimension-xs);column-gap:var(--pine-dimension-xs);display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;padding:var(--pine-dimension-md)}@media (max-width: 767px){.has-border.sc-pds-radio-h{-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex:1 1 100%;flex:1 1 100%;max-width:100%;min-width:0}}.has-border.sc-pds-radio-h:hover{border:var(--pine-border-hover)}.has-border.sc-pds-radio-h:has(input:checked){-webkit-box-shadow:0 0 0 2px var(--pine-color-primary-hover);box-shadow:0 0 0 2px var(--pine-color-primary-hover)}.has-border.sc-pds-radio-h label.sc-pds-radio{color:var(--pine-color-text);font-weight:var(--pine-font-weight-semi-bold)}.has-border.sc-pds-radio-h label.sc-pds-radio::after{content:"";cursor:pointer;height:100%;left:0;position:absolute;top:0;width:100%;z-index:1}.has-border.sc-pds-radio-h:has(input:disabled){background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);cursor:not-allowed}.has-border.sc-pds-radio-h:has(input:disabled) label.sc-pds-radio{color:var(--pine-color-text-label-disabled);cursor:not-allowed}.has-border.sc-pds-radio-h:has(input:disabled) label.sc-pds-radio::after{cursor:not-allowed}.has-border.is-invalid.sc-pds-radio-h .pds-radio__message--error.sc-pds-radio{color:var(--pine-color-text-message-danger)}input.sc-pds-radio{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-border-radius-full);-ms-flex:none;flex:none;height:var(--sizing-input-size);margin:0;-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025);position:relative;width:var(--sizing-input-size)}input.visually-hidden.sc-pds-radio{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}input.sc-pds-radio:hover{background:var(--pine-color-background-container-hover);border:var(--pine-border-hover)}input.sc-pds-radio:checked{background:var(--pine-color-accent);border-color:var(--pine-color-accent)}input.sc-pds-radio:checked:hover{background:var(--pine-color-accent-hover);border-color:var(--pine-color-accent-hover)}input.sc-pds-radio:checked::after{background:var(--pine-color-white);border-radius:var(--pine-border-radius-full);content:"";display:block;height:var(--sizing-check-size);left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);width:var(--sizing-check-size)}input.sc-pds-radio:disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);cursor:not-allowed}input.sc-pds-radio:disabled:checked{background-color:var(--pine-color-accent-disabled);border-color:var(--pine-color-border-disabled)}input.sc-pds-radio:disabled:checked::after{border-color:var(--pine-color-border-disabled)}input.sc-pds-radio:focus-visible{outline:var(--pine-outline-focus)}label.sc-pds-radio{display:-ms-flexbox;display:flex;gap:var(--pine-dimension-xs)}label.sc-pds-radio:has(input:disabled){color:var(--pine-color-text-label-disabled);cursor:not-allowed}.sc-pds-radio-h:has(input:disabled) .pds-radio__message.sc-pds-radio{color:var(--pine-color-text-label-disabled)}.visually-hidden.sc-pds-radio{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pds-radio__message.sc-pds-radio{color:var(--pine-color-text-message);-ms-flex-preferred-size:100%;flex-basis:100%;font:var(--pine-typography-body);-webkit-margin-start:var(--pine-dimension-md);margin-inline-start:var(--pine-dimension-md);width:100%}.pds-radio__message--error.sc-pds-radio{display:-ms-flexbox;display:flex;gap:var(--pine-dimension-2xs)}.pds-radio__message--error.sc-pds-radio pds-icon.sc-pds-radio{-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025)}.has-image.sc-pds-radio-h{-ms-flex-align:center;align-items:center;border:var(--pine-border);border-radius:var(--pine-dimension-125);-webkit-column-gap:var(--pine-dimension-xs);-moz-column-gap:var(--pine-dimension-xs);column-gap:var(--pine-dimension-xs);display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:var(--pine-dimension-md)}@media (max-width: 767px){.has-image.sc-pds-radio-h{-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex:1 1 100%;flex:1 1 100%;max-width:100%;min-width:0}}.has-image.sc-pds-radio-h:hover{border:var(--pine-border-hover)}.has-image.sc-pds-radio-h:has(input:checked){-webkit-box-shadow:0 0 0 2px var(--pine-color-primary-hover);box-shadow:0 0 0 2px var(--pine-color-primary-hover)}.has-image.sc-pds-radio-h label.sc-pds-radio{color:var(--pine-color-text);display:-ms-flexbox;display:flex;font-weight:var(--pine-font-weight-semi-bold);gap:var(--pine-dimension-xs)}.has-image.sc-pds-radio-h label.sc-pds-radio::after{content:"";cursor:pointer;height:100%;left:0;position:absolute;top:0;width:100%;z-index:1}.has-image.sc-pds-radio-h .pds-radio__image-container.sc-pds-radio{-ms-flex-align:center;align-items:center;align-self:center;border:var(--pine-border);border-radius:var(--pine-border-radius-full);cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex:none;flex:none;grid-area:image;-ms-flex-pack:center;justify-content:center;overflow:hidden;position:relative;-webkit-transition:all var(--pine-motion-duration-base) ease;transition:all var(--pine-motion-duration-base) ease}.has-image.sc-pds-radio-h .pds-radio__image-container.sc-pds-radio:hover{border-color:var(--pine-color-border-hover)}.has-image.sc-pds-radio-h .pds-radio__image-container.sc-pds-radio .pds-radio__image.sc-pds-radio{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.has-image.sc-pds-radio-h .pds-radio__message.sc-pds-radio{grid-area:message;-webkit-margin-before:0;margin-block-start:0;-webkit-margin-start:0;margin-inline-start:0}.has-image.is-disabled.sc-pds-radio-h{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);cursor:not-allowed}.has-image.is-disabled.sc-pds-radio-h .pds-radio__image-container.sc-pds-radio{border-color:var(--pine-color-border-disabled);cursor:not-allowed;opacity:0.5}.has-image.is-disabled.sc-pds-radio-h .pds-radio__image-container.sc-pds-radio:hover{border-color:var(--pine-color-border-disabled)}.has-image.is-disabled.sc-pds-radio-h label.sc-pds-radio{color:var(--pine-color-text-label-disabled);cursor:not-allowed}.has-image.is-disabled.sc-pds-radio-h label.sc-pds-radio::after{cursor:not-allowed}.has-image.is-disabled.sc-pds-radio-h .pds-radio__message.sc-pds-radio{color:var(--pine-color-text-label-disabled)}.has-image.is-invalid.sc-pds-radio-h .pds-radio__message--error.sc-pds-radio{color:var(--pine-color-text-message-danger)}';export{t as pds_radio}
@@ -1 +0,0 @@
1
- import{r as i,c as e,h as o,H as n,a as r}from"./p-CTLu1TM4.js";import{d as p,r as s}from"./p-Bu9gFIxM.js";import{s as c}from"./p-BNSGedhN.js";import"./p-DDtwbwIl.js";const t=class{constructor(o){i(this,o),this.pdsTagCloseClick=e(this,"pdsTagCloseClick"),this.truncationCleanup=null,this.dot=!1,this.sentiment="neutral",this.variant="text",this.dismissLabel="Remove",this.handleCloseClick=()=>{this.pdsTagCloseClick.emit()}}componentDidRender(){this.maxWidth&&this.labelTextEl?this.labelTextEl!==this.tooltipBoundEl&&this.initTruncationTooltip():this.tooltipBoundEl&&this.destroyTruncationTooltip()}disconnectedCallback(){this.destroyTruncationTooltip()}initTruncationTooltip(){this.destroyTruncationTooltip(),this.labelTextEl&&(this.truncationCleanup=c({hostEl:this.el,contentEl:this.labelTextEl,getTooltipText:()=>this.el.textContent||""}),this.tooltipBoundEl=this.labelTextEl)}destroyTruncationTooltip(){this.truncationCleanup&&(this.truncationCleanup(),this.truncationCleanup=null),this.tooltipBoundEl=null}get effectiveSize(){var i;return null!==(i=this.size)&&void 0!==i?i:"md"}classNames(){const i=["pds-chip"],e=this.effectiveSize;e&&"md"!==e&&i.push("pds-chip--"+e);const o="brand"===this.sentiment?"text":this.variant;return o&&i.push("pds-chip--"+o),this.sentiment&&i.push("pds-chip--"+this.sentiment),i.join(" ")}get effectiveVariant(){return"brand"===this.sentiment?"text":this.variant}get iconSize(){switch(this.effectiveSize){case"sm":return"10px";case"lg":return"14px";default:return"12px"}}setChipContent(){const i="brand"!==this.sentiment&&this.dot,e=this.maxWidth?"0":void 0;return"dropdown"===this.effectiveVariant?o("button",{class:"pds-chip__button",type:"button",part:"button"},this.icon&&o("pds-icon",{icon:this.icon,size:this.iconSize,"aria-hidden":"true"}),i&&o("i",{class:"pds-chip__dot","aria-hidden":"true"}),o("span",{class:"pds-chip__label-text",ref:i=>this.labelTextEl=i},o("slot",null)),o("pds-icon",{icon:p,size:this.iconSize,"aria-hidden":"true"})):o("span",{class:"pds-chip__label"},this.icon&&o("pds-icon",{icon:this.icon,size:this.iconSize,"aria-hidden":"true"}),i&&o("i",{class:"pds-chip__dot","aria-hidden":"true"}),o("span",{class:"pds-chip__label-text",tabindex:e,ref:i=>this.labelTextEl=i},o("slot",null)))}get hostStyles(){return this.maxWidth?{"--pds-chip-max-width":this.maxWidth}:{}}renderCloseButton(){return o(this.removeUrl?"a":"button",Object.assign({},(()=>{if(this.removeUrl){const i={class:"pds-chip__close",href:this.removeUrl,"aria-label":this.dismissLabel};this.removeTarget&&(i.target=this.removeTarget),this.removeHttpMethod&&(i["data-method"]=this.removeHttpMethod,i["data-turbo-method"]=this.removeHttpMethod);const e=[];return"_blank"===this.removeTarget&&e.push("noopener","noreferrer"),this.removeHttpMethod&&"get"!==this.removeHttpMethod&&e.push("nofollow"),e.length>0&&(i.rel=e.join(" ")),i}return{class:"pds-chip__close",type:"button","aria-label":this.dismissLabel}})(),{onClick:this.handleCloseClick}),o("pds-icon",{icon:s,size:this.iconSize}))}render(){return o(n,{key:"fd689f64fe35685c7e8e0f5e73a01c8564ad3c66",class:this.classNames(),id:this.componentId,style:this.hostStyles},this.setChipContent(),"tag"===this.effectiveVariant&&this.renderCloseButton())}get el(){return r(this)}};t.style=":host{--pine-chip-color-accent:var(--pine-color-purple-100);--pine-chip-color-accent-hover:var(--pine-color-purple-300);--pine-chip-color-accent-dot:var(--pine-color-purple-600);--pine-chip-color-accent-text:var(--pine-color-purple-950);--pine-chip-color-danger:var(--pine-color-red-100);--pine-chip-color-danger-hover:var(--pine-color-red-300);--pine-chip-color-danger-dot:var(--pine-color-red-600);--pine-chip-color-danger-text:var(--pine-color-red-950);--pine-chip-color-info:var(--pine-color-blue-100);--pine-chip-color-info-hover:var(--pine-color-blue-300);--pine-chip-color-info-dot:var(--pine-color-blue-600);--pine-chip-color-info-text:var(--pine-color-blue-950);--pine-chip-color-neutral:var(--pine-color-grey-100);--pine-chip-color-neutral-hover:var(--pine-color-grey-300);--pine-chip-color-neutral-dot:var(--pine-color-grey-600);--pine-chip-color-neutral-text:var(--pine-color-grey-950);--pine-chip-color-success:var(--pine-color-green-100);--pine-chip-color-success-hover:var(--pine-color-green-300);--pine-chip-color-success-dot:var(--pine-color-green-600);--pine-chip-color-success-text:var(--pine-color-green-950);--pine-chip-color-warning:var(--pine-color-yellow-100);--pine-chip-color-warning-hover:var(--pine-color-yellow-300);--pine-chip-color-warning-dot:var(--pine-color-yellow-600);--pine-chip-color-warning-text:var(--pine-color-yellow-950)}:host-context([data-theme=dark]){--pine-chip-color-accent:var(--pine-color-purple-900);--pine-chip-color-accent-hover:var(--pine-color-purple-800);--pine-chip-color-accent-dot:var(--pine-color-purple-400);--pine-chip-color-accent-text:var(--pine-color-purple-100);--pine-chip-color-danger:var(--pine-color-red-900);--pine-chip-color-danger-hover:var(--pine-color-red-800);--pine-chip-color-danger-dot:var(--pine-color-red-400);--pine-chip-color-danger-text:var(--pine-color-red-100);--pine-chip-color-info:var(--pine-color-blue-900);--pine-chip-color-info-hover:var(--pine-color-blue-800);--pine-chip-color-info-dot:var(--pine-color-blue-400);--pine-chip-color-info-text:var(--pine-color-blue-100);--pine-chip-color-neutral:var(--pine-color-grey-800);--pine-chip-color-neutral-hover:var(--pine-color-grey-600);--pine-chip-color-neutral-dot:var(--pine-color-grey-300);--pine-chip-color-neutral-text:var(--pine-color-grey-100);--pine-chip-color-success:var(--pine-color-green-900);--pine-chip-color-success-hover:var(--pine-color-green-800);--pine-chip-color-success-dot:var(--pine-color-green-400);--pine-chip-color-success-text:var(--pine-color-green-100);--pine-chip-color-warning:var(--pine-color-yellow-900);--pine-chip-color-warning-hover:var(--pine-color-yellow-800);--pine-chip-color-warning-dot:var(--pine-color-yellow-400);--pine-chip-color-warning-text:var(--pine-color-yellow-100)}:host{--sizing-close:var(--pine-dimension-125);-ms-flex-align:center;align-items:center;border-radius:var(--pine-dimension-sm);display:-ms-inline-flexbox;display:inline-flex;padding-block:var(--pine-dimension-025);padding-inline:var(--pine-dimension-100)}:host(.pds-chip--accent){background:var(--pine-chip-color-accent);border:var(--pine-border-width) solid var(--pine-chip-color-accent-hover)}:host(.pds-chip--accent) .pds-chip__dot{background:var(--pine-chip-color-accent-dot)}:host(.pds-chip--accent) .pds-chip__label,:host(.pds-chip--accent) .pds-chip__button,:host(.pds-chip--accent) .pds-chip__close{color:var(--pine-chip-color-accent-text);font-weight:var(--pine-font-weight-medium)}:host(.pds-chip--accent) .pds-chip__close:hover{background:var(--pine-chip-color-accent-hover)}:host(.pds-chip--accent.pds-chip--dropdown:hover){background:var(--pine-chip-color-accent-hover)}:host(.pds-chip--danger){background:var(--pine-chip-color-danger);border:var(--pine-border-width) solid var(--pine-chip-color-danger-hover)}:host(.pds-chip--danger) .pds-chip__dot{background:var(--pine-chip-color-danger-dot)}:host(.pds-chip--danger) .pds-chip__label,:host(.pds-chip--danger) .pds-chip__button,:host(.pds-chip--danger) .pds-chip__close{color:var(--pine-chip-color-danger-text);font-weight:var(--pine-font-weight-medium)}:host(.pds-chip--danger) .pds-chip__close:hover{background:var(--pine-chip-color-danger-hover)}:host(.pds-chip--danger.pds-chip--dropdown:hover){background:var(--pine-chip-color-danger-hover)}:host(.pds-chip--info){background:var(--pine-chip-color-info);border:var(--pine-border-width) solid var(--pine-chip-color-info-hover)}:host(.pds-chip--info) .pds-chip__dot{background:var(--pine-chip-color-info-dot)}:host(.pds-chip--info) .pds-chip__label,:host(.pds-chip--info) .pds-chip__button,:host(.pds-chip--info) .pds-chip__close{color:var(--pine-chip-color-info-text);font-weight:var(--pine-font-weight-medium)}:host(.pds-chip--info) .pds-chip__close:hover{background:var(--pine-chip-color-info-hover)}:host(.pds-chip--info.pds-chip--dropdown:hover){background:var(--pine-chip-color-info-hover)}:host(.pds-chip--neutral){background:var(--pine-chip-color-neutral);border:var(--pine-border-width) solid var(--pine-chip-color-neutral-hover)}:host(.pds-chip--neutral) .pds-chip__dot{background:var(--pine-chip-color-neutral-dot)}:host(.pds-chip--neutral) .pds-chip__label,:host(.pds-chip--neutral) .pds-chip__button,:host(.pds-chip--neutral) .pds-chip__close{color:var(--pine-chip-color-neutral-text);font-weight:var(--pine-font-weight-medium)}:host(.pds-chip--neutral) .pds-chip__close:hover{background:var(--pine-chip-color-neutral-hover)}:host(.pds-chip--neutral.pds-chip--dropdown:hover){background:var(--pine-chip-color-neutral-hover)}:host(.pds-chip--success){background:var(--pine-chip-color-success);border:var(--pine-border-width) solid var(--pine-chip-color-success-hover)}:host(.pds-chip--success) .pds-chip__dot{background:var(--pine-chip-color-success-dot)}:host(.pds-chip--success) .pds-chip__label,:host(.pds-chip--success) .pds-chip__button,:host(.pds-chip--success) .pds-chip__close{color:var(--pine-chip-color-success-text);font-weight:var(--pine-font-weight-medium)}:host(.pds-chip--success) .pds-chip__close:hover{background:var(--pine-chip-color-success-hover)}:host(.pds-chip--success.pds-chip--dropdown:hover){background:var(--pine-chip-color-success-hover)}:host(.pds-chip--warning){background:var(--pine-chip-color-warning);border:var(--pine-border-width) solid var(--pine-chip-color-warning-hover)}:host(.pds-chip--warning) .pds-chip__dot{background:var(--pine-chip-color-warning-dot)}:host(.pds-chip--warning) .pds-chip__label,:host(.pds-chip--warning) .pds-chip__button,:host(.pds-chip--warning) .pds-chip__close{color:var(--pine-chip-color-warning-text);font-weight:var(--pine-font-weight-medium)}:host(.pds-chip--warning) .pds-chip__close:hover{background:var(--pine-chip-color-warning-hover)}:host(.pds-chip--warning.pds-chip--dropdown:hover){background:var(--pine-chip-color-warning-hover)}.pds-chip__dot{border:var(--pine-border-width) solid transparent;border-radius:var(--pine-border-radius-full);display:inline-block;-ms-flex-negative:0;flex-shrink:0;height:var(--pine-dimension-2xs);-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs);width:var(--pine-dimension-2xs)}.pds-chip__label{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.pds-chip__label pds-icon{-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs)}:host([max-width]){-webkit-box-sizing:border-box;box-sizing:border-box;max-width:var(--pds-chip-max-width);min-width:0}:host([max-width]) .pds-chip__label,:host([max-width]) .pds-chip__button{min-width:0}:host([max-width]) .pds-chip__label-text{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-chip__label,.pds-chip__button{font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing)}:host(.pds-chip--dropdown){padding:var(--pine-dimension-none)}.pds-chip__button{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:var(--pine-dimension-none);border-radius:var(--pine-dimension-sm);cursor:pointer;display:-ms-flexbox;display:flex;padding:var(--pine-dimension-025) var(--pine-dimension-100)}.pds-chip__button:focus-visible{outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-chip__button pds-icon:first-child{-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs)}.pds-chip__button pds-icon:last-child{-webkit-margin-end:calc(var(--pine-dimension-025) * -1);margin-inline-end:calc(var(--pine-dimension-025) * -1);-webkit-margin-start:var(--pine-dimension-2xs);margin-inline-start:var(--pine-dimension-2xs)}.pds-chip__close{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:var(--pine-border-radius-full);-webkit-box-sizing:border-box;box-sizing:border-box;height:var(--sizing-close);-webkit-margin-end:calc(var(--pine-dimension-xs) * -1);margin-inline-end:calc(var(--pine-dimension-xs) * -1);-webkit-margin-start:var(--pine-dimension-2xs);margin-inline-start:var(--pine-dimension-2xs);padding:var(--sizing-close);position:relative;width:var(--sizing-close)}.pds-chip__close pds-icon{left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.pds-chip__close:focus-visible{outline:var(--pine-outline-focus)}:host(.pds-chip--sm){--sizing-close:var(--pine-dimension-100);padding-block:var(--pine-dimension-025);padding-inline:var(--pine-dimension-100)}:host(.pds-chip--sm) .pds-chip__label,:host(.pds-chip--sm) .pds-chip__button{font:var(--pine-typography-body-sm-medium);letter-spacing:var(--pine-letter-spacing)}:host(.pds-chip--sm.pds-chip--dropdown){padding:var(--pine-dimension-none)}:host(.pds-chip--sm.pds-chip--dropdown) .pds-chip__button{padding:var(--pine-dimension-025) var(--pine-dimension-100)}:host(.pds-chip--sm.pds-chip--brand) .pds-chip__label{padding:var(--pine-dimension-025) var(--pine-dimension-100)}:host(.pds-chip--lg){padding-block:var(--pine-dimension-025);padding-inline:var(--pine-dimension-150)}:host(.pds-chip--lg) .pds-chip__label,:host(.pds-chip--lg) .pds-chip__button{font-family:var(--pine-font-family-heading);font-size:var(--pine-font-size-heading-6);font-weight:var(--pine-font-weight-medium);letter-spacing:var(--pine-letter-spacing-heading-6)}:host(.pds-chip--lg.pds-chip--dropdown){padding:var(--pine-dimension-none)}:host(.pds-chip--lg.pds-chip--dropdown) .pds-chip__button{padding:var(--pine-dimension-025) var(--pine-dimension-150)}:host(.pds-chip--brand){background:-webkit-gradient(linear, left top, right top, from(#FF3E14), to(#6B62F2));background:linear-gradient(90deg, #FF3E14 0%, #6B62F2 100%);border:0;padding:1px;position:relative}:host(.pds-chip--brand) .pds-chip__label{background:rgba(255, 255, 255, 0.9);border-radius:calc(var(--pine-dimension-sm) - 1px);color:var(--pine-color-grey-900);font-weight:var(--pine-font-weight-medium);padding:var(--pine-dimension-025) var(--pine-dimension-100);position:relative;z-index:var(--pine-z-index-raised)}:host(.pds-chip--brand) .pds-chip__label pds-icon{-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs)}:host(.pds-chip--brand) .pds-chip__button,:host(.pds-chip--brand) .pds-chip__close{color:var(--pine-color-grey-900);font-weight:var(--pine-font-weight-medium);position:relative;z-index:var(--pine-z-index-raised)}:host(.pds-chip--brand) .pds-chip__button pds-icon:first-child{-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs)}:host(.pds-chip--brand) .pds-chip__close:hover{background:rgba(255, 255, 255, 0.8)}";export{t as pds_chip}
@@ -1 +0,0 @@
1
- import{r,h as s,H as e}from"./p-CTLu1TM4.js";const i=class{constructor(s){r(this,s),this.animated=!1,this.percent=0,this.showPercent=!1}render(){return s(e,{key:"6cb8c8cacf41c0a51907a32cf92d15dea4b4493f",class:this.animated?{"is-animated":this.animated}:""},s("div",{key:"e5ad49e7b9328c2234350e3263595112b22b2ff7",class:"pds-progress"},s("label",{key:"30dab7a71ff8c4947e6d9d199c84a2295c7da7d6",class:"pds-progress__label",htmlFor:this.componentId},this.label),s("progress",{key:"74dec83ce7f68395cfe9c3adc4512e6ffe98a3b4",id:this.componentId,max:"100",style:this.fillColor?{"--color-progress-fill":this.fillColor}:{},value:this.percent})),this.showPercent&&s("div",{key:"b44b9c937bc8de75cdd1c90336419b65be4fb1c0",class:"pds-progress__percentage"},this.percent,"%"))}};i.style=":host{--color-progress-fill:var(--pine-color-primary);--sizing-progress-bar-width:100%;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:var(--sizing-progress-bar-width)}@-webkit-keyframes progressBar{0%{width:0}100%{width:var(--sizing-progress-bar-width)}}@keyframes progressBar{0%{width:0}100%{width:var(--sizing-progress-bar-width)}}.pds-progress{-ms-flex-align:center;align-items:center;background-color:var(--pine-color-background-muted);border-radius:var(--pine-dimension-2xs);display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:var(--pine-dimension-xs);position:relative;width:100%}:host(.is-animated) progress,:host(.is-animated) progress::-webkit-progress-bar{-webkit-animation:progressBar 3s ease;animation:progressBar 3s ease;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}progress,progress::-webkit-progress-bar{background-color:transparent;border:0;height:var(--pine-dimension-xs);width:100%}progress::-webkit-progress-value{background:var(--color-progress-fill, var(--pine-color-primary));border-radius:var(--pine-dimension-2xs)}progress::-moz-progress-bar{background:var(--color-progress-fill, var(--pine-color-primary));border-radius:var(--pine-dimension-2xs)}.pds-progress__label{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.pds-progress__percentage{font-weight:var(--pine-font-weight-medium);-webkit-margin-start:calc(var(--pine-dimension-md) / 2);margin-inline-start:calc(var(--pine-dimension-md) / 2)}";export{i as pds_progress}
@@ -1 +0,0 @@
1
- import{r as i,c as e,h as s,H as t,a as r}from"./p-CTLu1TM4.js";import{e as a,i as n,m as o,a as l}from"./p-BuRbS7Hp.js";import{b as c}from"./p-Bu9gFIxM.js";import{i as d}from"./p-C0M1gTKv.js";const p=class{constructor(s){i(this,s),this.pdsSwitchChange=e(this,"pdsSwitchChange"),this.inheritedAttributes={},this._type="checkbox",this.checked=!1,this.disabled=!1,this.invalid=!1,this.required=!1,this.onSwitchUpdate=i=>{this.disabled||(this.checked=i.target.checked,this.updateFormValue(),this.pdsSwitchChange.emit(i))},this.switchClassNames=()=>{let i="pds-switch";return!0===this.invalid&&(i+=" pds-switch--error"),void 0!==this.helperMessage&&(i+=" pds-switch--message"),i}}connectedCallback(){this.el.attachInternals&&!this.internals&&(this.internals=this.el.attachInternals()),a(this.el,(()=>this._type))}componentDidLoad(){this.updateFormValue()}checkedChanged(){this.updateFormValue()}updateFormValue(){n()||(this.internals&&this.internals.setFormValue&&this.internals.setFormValue(this.checked?this.value||"on":null),this.internals&&this.internals.setValidity&&this.internals.setValidity({}))}formStateRestoreCallback(i){if(i instanceof FormData){const e=this.value||"on";this.checked=i.get(this.name||this.componentId)===e}else"string"==typeof i&&(this.checked=i===(this.value||"on"))}componentWillLoad(){this.inheritedAttributes=Object.assign({},d(this.el))}render(){return s(t,{key:"3b15b1f098a56bed7f5ab95a549a0ca1cb3444b3",class:this.switchClassNames(),"aria-disabled":this.disabled?"true":null},s("label",{key:"f0a6a95ead6b8b11122c5153402fbe68e1382cb4",htmlFor:this.componentId},s("input",Object.assign({key:"7633dce93d0983f31492cca51f238d2e321d3316","aria-describedby":l(this.componentId,this.invalid,this.helperMessage,this.errorMessage),"aria-invalid":this.invalid?"true":void 0,checked:this.checked,class:"pds-switch__input",disabled:this.disabled,id:this.componentId,name:this.name?this.name:this.componentId,onChange:this.onSwitchUpdate,required:this.required,type:"checkbox",value:this.value},this.inheritedAttributes)),s("span",{key:"3b0b1a38d4a0cee505bd0f1c7383af259e2da2b0",class:this.hideLabel?"visually-hidden":""},this.label)),this.helperMessage&&s("div",{key:"e6770c0fed9f7a8a626e91cd8aa84b8623bd4b32",class:"pds-switch__message",id:o(this.componentId,"helper")},this.helperMessage),this.errorMessage&&s("div",{key:"88cb91dc6cf056b0af35a1821c839166217a9eb4",class:"pds-switch__message pds-switch__message--error",id:o(this.componentId,"error"),"aria-live":"assertive"},s("pds-icon",{key:"6faf4e7b7e13193c147769d9308fb4d23425aa9c",icon:c,size:"small"}),this.errorMessage))}static get formAssociated(){return!0}get el(){return r(this)}static get watchers(){return{checked:[{checkedChanged:0}]}}};p.style=':host{display:inline-block}:host([aria-disabled=true]) label{color:var(--pine-color-text-label-disabled)}:host([aria-readonly=true]) label{color:var(--pine-color-text-label-readonly)}label{color:var(--pine-color-text-label);font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing)}:host{--sizing-input-toggle-size:calc(var(--pine-dimension-250) - (var(--pine-dimension-025) * 2));--pine-dimension-025:2px;--spacing-message-inline:calc(var(--pine-dimension-450) + var(--pine-dimension-150));--number-transition-timing:0.15s ease-out;-ms-flex-align:start;align-items:flex-start;color:var(--pine-color-text);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-flow:row wrap;flex-flow:row wrap;position:relative}:host(.pds-switch--error){color:var(--pine-color-text-message-danger)}:host(.pds-switch--error) input,:host(.pds-switch--error) input:checked,:host(.pds-switch--error) input:hover:not(:disabled):not(:checked){background-color:var(--pine-color-danger)}:host(.pds-switch--error) input:focus-visible:not(:disabled):not(:checked){outline-color:var(--pine-color-focus-ring-danger)}:host(.pds-switch--error) label{color:var(--color-text-error)}input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--pine-color-neutral);border:0;border-radius:var(--pine-dimension-sm);cursor:pointer;display:inline-block;-ms-flex-negative:0;flex-shrink:0;height:var(--pine-dimension-250);margin:0;padding:0;position:relative;-webkit-transition:var(--number-transition-timing);transition:var(--number-transition-timing);-webkit-transition-property:background, border, color;transition-property:background, border, color;width:var(--pine-dimension-450)}input::after{background:var(--pine-color-secondary);border-radius:var(--pine-border-radius-full);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);content:"";display:block;height:var(--sizing-input-toggle-size);inset-block-start:50%;inset-inline-start:var(--pine-dimension-025);position:absolute;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:inset-inline-start var(--number-transition-timing);transition:inset-inline-start var(--number-transition-timing);width:var(--sizing-input-toggle-size)}label{display:-ms-flexbox;display:flex;gap:var(--pine-dimension-150)}.pds-switch--error label{color:inherit}.visually-hidden{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pds-switch__message{color:var(--pine-color-text-message);font:var(--pine-typography-body-sm-medium);-webkit-margin-before:var(--pine-dimension-xs);margin-block-start:var(--pine-dimension-xs);-webkit-margin-start:var(--spacing-message-inline);margin-inline-start:var(--spacing-message-inline);width:100%}.pds-switch__message+.pds-switch__message{-webkit-margin-before:var(--spacing-message-inline);margin-block-start:var(--spacing-message-inline)}.pds-switch__message--error{color:inherit;display:-ms-flexbox;display:flex;gap:var(--pine-dimension-2xs)}.pds-switch__message--error pds-icon{-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025)}input:disabled{background-color:var(--pine-color-neutral-disabled);cursor:not-allowed}input:disabled~label{cursor:initial}input:disabled:hover::after{background-color:var(--pine-color-secondary)}input:disabled .pds-switch__message{color:initial}input:hover:not(:disabled){background-color:var(--pine-color-neutral-hover)}input:focus-visible:not(:disabled){outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}input:checked::after{inset-inline-start:calc(100% - var(--sizing-input-toggle-size) - var(--pine-dimension-025))}input:checked:not(:disabled){background-color:currentColor;color:var(--pine-color-accent)}input:checked:not(:disabled):hover{border-color:currentColor;color:var(--pine-color-accent-hover)}';export{p as pds_switch}
@@ -1 +0,0 @@
1
- System.register(["./p-DAIsVNlL.system.js","./p-BbXp4qBM.system.js"],(function(t){"use strict";var e,o,n,s;return{setters:[function(t){e=t.r;o=t.h;n=t.a},function(t){s=t.u}],execute:function(){var r=function(){return"pds-modal-footer{display:block;width:100%}.pds-modal__footer{width:100%}"};var f=t("pds_modal_footer",function(){function t(t){e(this,t)}t.prototype.componentDidRender=function(){s(this.el.querySelector(".pds-modal__footer"),".pds-modal__footer")};t.prototype.render=function(){return o("footer",{key:"63bb557978ea69aa658026f7be24433b946b2ee6",class:"pds-modal__footer"},o("slot",{key:"158a929229b0efa8720f869756076203f297c744"}))};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());f.style=r()}}}));
@@ -1 +0,0 @@
1
- System.register(["./p-DAIsVNlL.system.js"],(function(t){"use strict";var i,n,e,r;return{setters:[function(t){i=t.r;n=t.h;e=t.H;r=t.a}],execute:function(){var s=false;var o=function(t){var i;var n=(i=document.head.querySelector("meta[data-pine-asset-path]"))===null||i===void 0?void 0:i.dataset.pineAssetPath;var e=window.__PINE_ASSET_PATH__;var r="https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/";var o=n||e||r;if(o.startsWith("https://cdn.jsdelivr.net/npm/")&&!s){s=true;console.warn("\n Fetching Pine assets from jsDelivr CDN.\n\n It's recommended that you bundle Pine Assets with your application and set the path accordingly.\n\nFor more information, read the documentation: \nhttps://pine-design-system.netlify.app/?path=/docs/resources-assets--docs\n ")}var a=t;if(t.startsWith("./")){a=t.substring(2)}if(!o.endsWith("/")){a="/"+a}return o+a};var a;var l=function(){if(typeof window==="undefined"){return new Map}else{if(!a){var t=window;t.PdsIcons=t.PdsIcons||{};a=t.PdsIcons.map=t.PdsIcons.map||new Map}return a}};var f=function(t,i){if(!t&&i&&!v(i)){t=i}if(m(t)){t=p(t)}if(!m(t)||t.trim()===""){return null}var n=t.replace(/[a-z]|-|\d/gi,"");if(n!=""){return null}return t};var u=function(t){var i=l().get(t);if(i){return i}return o("svg/".concat(t,".svg"))};var c=function(t){if(m(t)){t=t.trim();if(v(t)){return t}}return null};var h=function(t){var i=c(t.src);if(i){return i}i=f(t.name,t.icon);if(i){return u(i)}if(t.icon){i=c(t.icon);if(i){return i}}return null};var d=function(t){if(t){if(t.dir!==""){return t.dir.toLowerCase()==="rtl"}}return(document===null||document===void 0?void 0:document.dir.toLowerCase())==="rtl"};var v=function(t){return t.length>0&&/(\/|\.)/.test(t)};var m=function(t){return typeof t==="string"};var p=function(t){return t.toLowerCase()};var g=function(t,i){if(i===void 0){i=[]}var n={};i.forEach((function(i){if(t.hasAttribute(i)){var e=t.getAttribute(i);if(e!==null){n[i]=t.getAttribute(i)}t.removeAttribute(i)}}));return n};var w=function(t,i){var n=d(i);return n&&b.includes(t)};var b=["align-horizontal-bottom","align-horizontal-center","align-horizontal-top","align-left","align-right","align-vertical-left","align-vertical-right","arrow-corner","arrow-left","arrow-right","calendar-schedule","caret-left","caret-right","cart","cart-add","comment","comment-no","conversation","copy","copy-07","delete-key","delete-x","downsell","drawer-collapse","drawer-expand","duplicate","feedback","file-lock","file-search","form-field","form-filled","left-small","launch","list-bullet","list-numbers","margin-left","margin-right","move-left","move-right","newsletter-2","one-off-session","quote","redo","reset-password","right-small","send-message","share","super-admin","tablet-landscape","undo","user-star","user-star-filled","users","users-filled","users-tone"];var y=function(t){var i=document.createElement("div");i.innerHTML=t;for(var n=i.childNodes.length-1;n>=0;n--){if(i.childNodes[n].nodeName.toLowerCase()!=="svg"){i.removeChild(i.childNodes[n])}}var e=i.firstElementChild;if(e&&e.nodeName.toLowerCase()==="svg"){var r=e.getAttribute("class")||"";e.setAttribute("class",(r+" s-pds-icon").trim());if(x(e)){return i.innerHTML}}return""};var x=function(t){if(t.nodeType===1){if(t.nodeName.toLowerCase()==="script"){return false}for(var i=0;i<t.attributes.length;i++){var n=t.attributes[i].name;if(m(n)&&n.toLowerCase().indexOf("on")===0){return false}}for(var i=0;i<t.childNodes.length;i++){if(!x(t.childNodes[i])){return false}}}return true};var C=function(t){return t.startsWith("data:image/svg+xml")};var j=function(t){return t.indexOf(";utf8,")!==-1};var k=new Map;var I=new Map;var P;var O=function(t,i){if(i===void 0){i=false}var n=I.get(t);if(!n){if(typeof fetch!="undefined"&&typeof document!=="undefined"){if(C(t)&&j(t)){if(!P){P=new DOMParser}try{var e=P.parseFromString(t,"text/html");var r=e.querySelector("svg");if(r){k.set(t,r.outerHTML)}else{k.set(t,"")}}catch(i){k.set(t,"")}return Promise.resolve()}else{n=fetch(t).then((function(n){if(n.ok){return n.text().then((function(n){if(n&&i!==false){try{n=y(n)}catch(t){n=""}}k.set(t,n||"")}))}else{throw new Error("Failed to load SVG: ".concat(n.status," ").concat(n.statusText))}})).catch((function(i){console.warn("Failed to load SVG:",t,i);k.set(t,"")}));I.set(t,n)}}else{k.set(t,"");return Promise.resolve()}}return n};var D=function(){return":host{--dimension-icon-height:16px;--dimension-icon-width:16px;--color-icon-fill:currentColor;contain:strict;display:inline-block;fill:var(--color-icon-fill);-ms-flex-negative:0;flex-shrink:0;height:var(--dimension-icon-height);width:var(--dimension-icon-width)}:host .pdsicon{fill:var(--color-icon-fill)}.pds-icon-fill-none{fill:none}.icon-inner,.pds-icon,svg{display:block;height:100%;width:100%}:host(.flip-rtl):host-context([dir=rtl]) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.flip-rtl:dir(rtl)) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.flip-rtl:dir(ltr)) .icon-inner{-webkit-transform:scaleX(1);transform:scaleX(1)}"};var M=t("pds_icon",function(){function t(t){var n=this;i(this,t);this.didLoadIcon=false;this.iconName=null;this.inheritedAttributes={};this.isVisible=false;this.size="regular";this.hasAriaHidden=function(){var t=n.el;return t.hasAttribute("aria-hidden")&&t.getAttribute("aria-hidden")==="true"}}t.prototype.iconSize=function(){var t={small:"12px",regular:"16px",medium:"20px",large:"24px"};if(t[this.size]){return t[this.size]}else{return this.size}};t.prototype.componentDidLoad=function(){var t=this;this.setCSSVariables();if(!this.didLoadIcon){this.loadIcon()}setTimeout((function(){if(!t.svgContent&&!t.isVisible){t.isVisible=true;t.loadIcon()}}),100);setTimeout((function(){if(!t.svgContent&&!t.isVisible){t.isVisible=true;t.loadIcon()}}),500)};t.prototype.componentWillLoad=function(){this.inheritedAttributes=g(this.el,["aria-label"]);this.setCSSVariables();this.setupInitialAriaLabel()};t.prototype.setCSSVariables=function(){this.el.style.setProperty("--dimension-icon-height",this.iconSize());this.el.style.setProperty("--dimension-icon-width",this.iconSize());this.el.style.setProperty("--color-icon-fill",typeof this.color!=="undefined"?this.color:"currentColor")};t.prototype.connectedCallback=function(){var t=this;if(!this.isVisible&&!this.svgContent){this.waitUntilVisible(this.el,"50px",(function(){t.isVisible=true;t.loadIcon()}))}if(this.isElementInViewport(this.el)){this.isVisible=true;this.loadIcon()}};t.prototype.disconnectedCallback=function(){if(this.io){this.io.disconnect();this.io=undefined}};t.prototype.updateStyles=function(){this.setCSSVariables()};t.prototype.onIconPropertyChange=function(){this.loadIcon();this.setupInitialAriaLabel()};t.prototype.loadIcon=function(){var t=this;this.didLoadIcon=false;this.svgContent=undefined;if(this.isVisible){var i=h(this);if(i){if(k.has(i)){this.svgContent=k.get(i)}else{O(i).then((function(){setTimeout((function(){t.svgContent=k.get(i)}),0)})).catch((function(){t.svgContent=""}))}this.didLoadIcon=true}}this.iconName=f(this.name,this.icon)};t.prototype.render=function(){var t=this,i=t.ariaLabel,r=t.flipRtl,s=t.iconName,o=t.inheritedAttributes;var a=s?w(s,this.el)&&r!==false:false;var l=r||a;var f=o["aria-label"]||i;return n(e,Object.assign({key:"43aa73531314e6529a887468e69362430d006229","aria-label":f!==undefined&&!this.hasAriaHidden()?f:null,alt:"",role:"img",class:Object.assign(Object.assign({},S(this.color)),{"flip-rtl":l,"icon-rtl":l&&d(this.el)})},o),this.svgContent?n("div",{class:"icon-inner",innerHTML:this.svgContent}):n("div",{class:"icon-inner"}))};t.prototype.setupInitialAriaLabel=function(){if(!this.inheritedAttributes["aria-label"]){var t=f(this.name,this.icon);if(t){this.ariaLabel=t.replace(/\-/g," ")}}};t.prototype.waitUntilVisible=function(t,i,n){var e=this;if(typeof window!=="undefined"&&window.IntersectionObserver){var r=this.io=new window.IntersectionObserver((function(t){if(t[0].isIntersecting){r.disconnect();e.io=undefined;n()}}),{rootMargin:i});r.observe(t);setTimeout((function(){if(e.io&&!e.isVisible){if(e.isElementInViewport(t)){e.io.disconnect();e.io=undefined;n()}}}),1e3)}else{n()}};t.prototype.isElementInViewport=function(t){if(!t||!t.isConnected)return false;var i=t.getBoundingClientRect();var n=window.innerHeight||document.documentElement.clientHeight;var e=window.innerWidth||document.documentElement.clientWidth;return i.top>=0&&i.left>=0&&i.bottom<=n&&i.right<=e||i.top<n&&i.bottom>0&&i.left<e&&i.right>0};t.prototype.debugIconState=function(){var t;var i=h(this);var n=this.el.getBoundingClientRect();console.log("PdsIcon Debug State:",{name:this.name,src:this.src,icon:this.icon,iconName:this.iconName,url:i,isVisible:this.isVisible,didLoadIcon:this.didLoadIcon,hasSvgContent:!!this.svgContent,svgContentLength:((t=this.svgContent)===null||t===void 0?void 0:t.length)||0,isInCache:i?k.has(i):false,cachedContent:i?k.get(i):null,element:this.el,isConnected:this.el.isConnected,isInViewport:this.isElementInViewport(this.el),hasIntersectionObserver:!!this.io,boundingClientRect:n,windowDimensions:{width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}})};Object.defineProperty(t,"assetsDirs",{get:function(){return["svg"]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{size:[{updateStyles:0}],color:[{updateStyles:0}],name:[{onIconPropertyChange:0}],src:[{onIconPropertyChange:0}],icon:[{onIconPropertyChange:0}]}},enumerable:false,configurable:true});return t}());var S=function(t){var i;return t?(i={"pds-color":true},i["pds-color-".concat(t)]=true,i):null};M.style=D()}}}));
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,a){function o(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function n(t){try{s(a.next(t))}catch(t){r(t)}}function d(t){try{s(a["throw"](t))}catch(t){r(t)}}function s(t){t.done?i(t.value):o(t.value).then(n,d)}s((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},a,o,r,n=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return n.next=d(0),n["throw"]=d(1),n["return"]=d(2),typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function d(t){return function(e){return s([t,e])}}function s(d){if(a)throw new TypeError("Generator is already executing.");while(n&&(n=0,d[0]&&(i=0)),i)try{if(a=1,o&&(r=d[0]&2?o["return"]:d[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,d[1])).done)return r;if(o=0,r)d=[d[0]&2,r.value];switch(d[0]){case 0:case 1:r=d;break;case 4:i.label++;return{value:d[1],done:false};case 5:i.label++;o=d[1];d=[0];continue;case 7:d=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(d[0]===6||d[0]===2)){i=0;continue}if(d[0]===3&&(!r||d[1]>r[0]&&d[1]<r[3])){i.label=d[1];break}if(d[0]===6&&i.label<r[1]){i.label=r[1];r=d;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(d);break}if(r[2])i.ops.pop();i.trys.pop();continue}d=e.call(t,i)}catch(t){d=[6,t];o=0}finally{a=r=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:true}}};System.register(["./p-DAIsVNlL.system.js"],(function(t){"use strict";var e,i,a,o;return{setters:[function(t){e=t.r;i=t.c;a=t.h;o=t.a}],execute:function(){var r=function(){return".pds-modal__backdrop{-ms-flex-align:start;align-items:flex-start;background-color:rgba(0, 0, 0, 0.4);border:0;display:-ms-flexbox;display:flex;height:100%;inset:0;-ms-flex-pack:center;justify-content:center;margin:0;max-height:100%;max-width:100%;opacity:0;padding:0;position:fixed;-webkit-transition:opacity var(--pine-motion-duration-base) var(--pine-motion-easing-in), visibility var(--pine-motion-duration-base) var(--pine-motion-easing-in);transition:opacity var(--pine-motion-duration-base) var(--pine-motion-easing-in), visibility var(--pine-motion-duration-base) var(--pine-motion-easing-in);visibility:hidden;width:100%;z-index:var(--pine-z-index-modal)}@supports ((-webkit-backdrop-filter: blur(3px)) or (backdrop-filter: blur(3px))){.pds-modal__backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}}pds-modal .pds-modal__backdrop{z-index:var(--pine-z-index-priority)}.pds-modal__backdrop::-webkit-backdrop{background:transparent}.pds-modal__backdrop::-ms-backdrop{background:transparent}.pds-modal__backdrop::backdrop{background:transparent}.pds-modal__backdrop.open{opacity:1;-webkit-transition-timing-function:var(--pine-motion-easing-out);transition-timing-function:var(--pine-motion-easing-out);visibility:visible}.pds-modal{background:var(--pine-color-background-overlay);border-radius:var(--pine-dimension-sm);-webkit-box-shadow:var(--pine-box-shadow-400);box-shadow:var(--pine-box-shadow-400);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:var(--pine-dimension-md);max-height:none;width:100%}.pds-modal.pds-modal--scrollable{max-height:calc(100vh - (5vh + 96px))}@supports (height: 100dvh){.pds-modal.pds-modal--scrollable{max-height:calc(100dvh - (5dvh + 96px))}}@media (min-width: 992px){.pds-modal{-webkit-margin-before:6vh;margin-block-start:6vh}@supports (height: 100dvh){.pds-modal{-webkit-margin-before:6dvh;margin-block-start:6dvh}}}@media (min-width: 1200px){.pds-modal{-webkit-margin-before:8vh;margin-block-start:8vh}@supports (height: 100dvh){.pds-modal{-webkit-margin-before:8dvh;margin-block-start:8dvh}}}.pds-modal--sm{max-width:520px}.pds-modal--md{max-width:700px}.pds-modal--lg{max-width:900px}.pds-modal--fullscreen{border-radius:0;height:100%;margin:0;max-height:100vh;max-width:100%}@supports (height: 100dvh){.pds-modal--fullscreen{max-height:100dvh}}.pds-modal--fullscreen.pds-modal--scrollable{max-height:100vh}@supports (height: 100dvh){.pds-modal--fullscreen.pds-modal--scrollable{max-height:100dvh}}.pds-modal--fullscreen .pds-modal-content{-ms-flex:1;flex:1}.pds-modal--scrollable pds-modal-content{-webkit-border-after:1px solid transparent;border-block-end:1px solid transparent;-webkit-border-before:1px solid transparent;border-block-start:1px solid transparent;overflow-y:auto}.pds-modal:not(.pds-modal--scrollable) pds-modal-content{overflow-y:visible}"};var n=t("mock_pds_modal",function(){function t(t){e(this,t);this.pdsModalOpen=i(this,"pdsModalOpen");this.pdsModalClose=i(this,"pdsModalClose");this.pdsModalBackdropClick=i(this,"pdsModalBackdropClick");this.size="md";this.scrollable=true;this.backdropDismiss=true;this.open=false}t.prototype.showModal=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.open=true;this.pdsModalOpen.emit();return[2]}))}))};t.prototype.hideModal=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.open=false;this.pdsModalClose.emit();return[2]}))}))};t.prototype.handleBackdropClick=function(t){var e=this.el.querySelector(".pds-modal__backdrop");if(t.target===e&&this.backdropDismiss===true){this.pdsModalBackdropClick.emit();this.hideModal()}};t.prototype.handleKeyDown=function(t){if(t.key==="Escape"&&this.open===true){t.preventDefault();if(this.backdropDismiss===true){this.hideModal()}}};t.prototype.componentDidLoad=function(){};t.prototype.render=function(){var t;var e=(t={"pds-modal":true},t["pds-modal--".concat(this.size)]=true,t["pds-modal--scrollable"]=this.scrollable,t);var i={"pds-modal__backdrop":true,open:this.open};return a("div",{key:"cb0c1ce177b2c5bbc03c6310d1c61c2e56c87371",class:i},a("div",{key:"0f25e178dafa91d9c9721180c933faacb03b9360",class:e,role:"dialog","aria-modal":"true","aria-labelledby":this.componentId?"".concat(this.componentId,"-heading"):null,part:"modal"},a("div",{key:"849c0e574e020c828b3ef8a89e39ffdd6f8da68f",class:"pds-modal__header"},a("slot",{key:"0c8bcac99adafbbfe67641e3782722bbe1ac13be",name:"header"})),a("div",{key:"5da01ac584f1b6d1ec8b535f6be2ac9f06ac2218",class:"pds-modal-content"},a("slot",{key:"60ab585878ef793930fb18c363c284249123f423"})),a("div",{key:"ec6f26f3fa36175cf1a6acc34807c2528b8ed886",class:"pds-modal__footer"},a("slot",{key:"da9896baba61891eceb7805c6967741fa86906dc",name:"footer"}))))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());n.style=r()}}}));
@@ -1 +0,0 @@
1
- import{r as o,h as e,a as r}from"./p-CTLu1TM4.js";import{u as s}from"./p-RFpTWV6r.js";const t=class{constructor(e){o(this,e)}componentDidRender(){s(this.el.querySelector(".pds-modal__footer"),".pds-modal__footer")}render(){return e("footer",{key:"63bb557978ea69aa658026f7be24433b946b2ee6",class:"pds-modal__footer"},e("slot",{key:"158a929229b0efa8720f869756076203f297c744"}))}get el(){return r(this)}};t.style="pds-modal-footer{display:block;width:100%}.pds-modal__footer{width:100%}";export{t as pds_modal_footer}
@@ -1 +0,0 @@
1
- System.register(["./p-DAIsVNlL.system.js"],(function(r){"use strict";var e,s,i;return{setters:[function(r){e=r.r;s=r.h;i=r.H}],execute:function(){var a=function(){return":host{--color-progress-fill:var(--pine-color-primary);--sizing-progress-bar-width:100%;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:var(--sizing-progress-bar-width)}@-webkit-keyframes progressBar{0%{width:0}100%{width:var(--sizing-progress-bar-width)}}@keyframes progressBar{0%{width:0}100%{width:var(--sizing-progress-bar-width)}}.pds-progress{-ms-flex-align:center;align-items:center;background-color:var(--pine-color-background-muted);border-radius:var(--pine-dimension-2xs);display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:var(--pine-dimension-xs);position:relative;width:100%}:host(.is-animated) progress,:host(.is-animated) progress::-webkit-progress-bar{-webkit-animation:progressBar 3s ease;animation:progressBar 3s ease;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}progress,progress::-webkit-progress-bar{background-color:transparent;border:0;height:var(--pine-dimension-xs);width:100%}progress::-webkit-progress-value{background:var(--color-progress-fill, var(--pine-color-primary));border-radius:var(--pine-dimension-2xs)}progress::-moz-progress-bar{background:var(--color-progress-fill, var(--pine-color-primary));border-radius:var(--pine-dimension-2xs)}.pds-progress__label{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.pds-progress__percentage{font-weight:var(--pine-font-weight-medium);-webkit-margin-start:calc(var(--pine-dimension-md) / 2);margin-inline-start:calc(var(--pine-dimension-md) / 2)}"};var o=r("pds_progress",function(){function r(r){e(this,r);this.animated=false;this.percent=0;this.showPercent=false}r.prototype.render=function(){return s(i,{key:"6cb8c8cacf41c0a51907a32cf92d15dea4b4493f",class:this.animated?{"is-animated":this.animated}:""},s("div",{key:"e5ad49e7b9328c2234350e3263595112b22b2ff7",class:"pds-progress"},s("label",{key:"30dab7a71ff8c4947e6d9d199c84a2295c7da7d6",class:"pds-progress__label",htmlFor:this.componentId},this.label),s("progress",{key:"74dec83ce7f68395cfe9c3adc4512e6ffe98a3b4",id:this.componentId,max:"100",style:this.fillColor?{"--color-progress-fill":this.fillColor}:{},value:this.percent})),this.showPercent&&s("div",{key:"b44b9c937bc8de75cdd1c90336419b65be4fb1c0",class:"pds-progress__percentage"},this.percent,"%"))};return r}());o.style=a()}}}));
@@ -1 +0,0 @@
1
- import{r as t,h as i,H as e,a as n}from"./p-CTLu1TM4.js";let s,o=!1;const r=(t,i)=>(t||!i||c(i)||(t=i),d(t)&&(t=u(t)),d(t)&&""!==t.trim()?""!=t.replace(/[a-z]|-|\d/gi,"")?null:t:null),l=t=>d(t)&&(t=t.trim(),c(t))?t:null,a=t=>{let i=l(t.src);return i||(i=r(t.name,t.icon),i?(e=i,(()=>{if("undefined"==typeof window)return new Map;if(!s){const t=window;t.PdsIcons=t.PdsIcons||{},s=t.PdsIcons.map=t.PdsIcons.map||new Map}return s})().get(e)||(t=>{var i;const e=null===(i=document.head.querySelector("meta[data-pine-asset-path]"))||void 0===i?void 0:i.dataset.pineAssetPath,n=window.__PINE_ASSET_PATH__,s=e||n||"https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/";s.startsWith("https://cdn.jsdelivr.net/npm/")&&!o&&(o=!0,console.warn("\n Fetching Pine assets from jsDelivr CDN.\n\n It's recommended that you bundle Pine Assets with your application and set the path accordingly.\n\nFor more information, read the documentation: \nhttps://pine-design-system.netlify.app/?path=/docs/resources-assets--docs\n "));let r=t;return t.startsWith("./")&&(r=t.substring(2)),s.endsWith("/")||(r="/"+r),s+r})(`svg/${e}.svg`)):t.icon&&(i=l(t.icon),i)?i:null);var e},h=t=>t&&""!==t.dir?"rtl"===t.dir.toLowerCase():"rtl"===(null===document||void 0===document?void 0:document.dir.toLowerCase()),c=t=>t.length>0&&/(\/|\.)/.test(t),d=t=>"string"==typeof t,u=t=>t.toLowerCase(),f=["align-horizontal-bottom","align-horizontal-center","align-horizontal-top","align-left","align-right","align-vertical-left","align-vertical-right","arrow-corner","arrow-left","arrow-right","calendar-schedule","caret-left","caret-right","cart","cart-add","comment","comment-no","conversation","copy","copy-07","delete-key","delete-x","downsell","drawer-collapse","drawer-expand","duplicate","feedback","file-lock","file-search","form-field","form-filled","left-small","launch","list-bullet","list-numbers","margin-left","margin-right","move-left","move-right","newsletter-2","one-off-session","quote","redo","reset-password","right-small","send-message","share","super-admin","tablet-landscape","undo","user-star","user-star-filled","users","users-filled","users-tone"],m=t=>{if(1===t.nodeType){if("script"===t.nodeName.toLowerCase())return!1;for(let i=0;i<t.attributes.length;i++){const e=t.attributes[i].name;if(d(e)&&0===e.toLowerCase().indexOf("on"))return!1}for(let i=0;i<t.childNodes.length;i++)if(!m(t.childNodes[i]))return!1}return!0},p=new Map,g=new Map;let w;const v=class{constructor(i){t(this,i),this.didLoadIcon=!1,this.iconName=null,this.inheritedAttributes={},this.isVisible=!1,this.size="regular",this.hasAriaHidden=()=>{const{el:t}=this;return t.hasAttribute("aria-hidden")&&"true"===t.getAttribute("aria-hidden")}}iconSize(){const t={small:"12px",regular:"16px",medium:"20px",large:"24px"};return t[this.size]?t[this.size]:this.size}componentDidLoad(){this.setCSSVariables(),this.didLoadIcon||this.loadIcon(),setTimeout((()=>{this.svgContent||this.isVisible||(this.isVisible=!0,this.loadIcon())}),100),setTimeout((()=>{this.svgContent||this.isVisible||(this.isVisible=!0,this.loadIcon())}),500)}componentWillLoad(){this.inheritedAttributes=((t,i=[])=>{const e={};return i.forEach((i=>{t.hasAttribute(i)&&(null!==t.getAttribute(i)&&(e[i]=t.getAttribute(i)),t.removeAttribute(i))})),e})(this.el,["aria-label"]),this.setCSSVariables(),this.setupInitialAriaLabel()}setCSSVariables(){this.el.style.setProperty("--dimension-icon-height",this.iconSize()),this.el.style.setProperty("--dimension-icon-width",this.iconSize()),this.el.style.setProperty("--color-icon-fill",void 0!==this.color?this.color:"currentColor")}connectedCallback(){this.isVisible||this.svgContent||this.waitUntilVisible(this.el,"50px",(()=>{this.isVisible=!0,this.loadIcon()})),this.isElementInViewport(this.el)&&(this.isVisible=!0,this.loadIcon())}disconnectedCallback(){this.io&&(this.io.disconnect(),this.io=void 0)}updateStyles(){this.setCSSVariables()}onIconPropertyChange(){this.loadIcon(),this.setupInitialAriaLabel()}loadIcon(){if(this.didLoadIcon=!1,this.svgContent=void 0,this.isVisible){const t=a(this);t&&(p.has(t)?this.svgContent=p.get(t):((t,i=!1)=>{let e=g.get(t);if(!e){if("undefined"==typeof fetch||"undefined"==typeof document)return p.set(t,""),Promise.resolve();if((t=>t.startsWith("data:image/svg+xml"))(t)&&(t=>-1!==t.indexOf(";utf8,"))(t)){w||(w=new DOMParser);try{const i=w.parseFromString(t,"text/html").querySelector("svg");p.set(t,i?i.outerHTML:"")}catch(i){p.set(t,"")}return Promise.resolve()}e=fetch(t).then((e=>{if(e.ok)return e.text().then((e=>{if(e&&!1!==i)try{e=(t=>{const i=document.createElement("div");i.innerHTML=t;for(let t=i.childNodes.length-1;t>=0;t--)"svg"!==i.childNodes[t].nodeName.toLowerCase()&&i.removeChild(i.childNodes[t]);const e=i.firstElementChild;if(e&&"svg"===e.nodeName.toLowerCase()){const t=e.getAttribute("class")||"";if(e.setAttribute("class",(t+" s-pds-icon").trim()),m(e))return i.innerHTML}return""})(e)}catch(t){e=""}p.set(t,e||"")}));throw new Error(`Failed to load SVG: ${e.status} ${e.statusText}`)})).catch((i=>{console.warn("Failed to load SVG:",t,i),p.set(t,"")})),g.set(t,e)}return e})(t).then((()=>{setTimeout((()=>{this.svgContent=p.get(t)}),0)})).catch((()=>{this.svgContent=""})),this.didLoadIcon=!0)}this.iconName=r(this.name,this.icon)}render(){const{ariaLabel:t,flipRtl:n,iconName:s,inheritedAttributes:o}=this,r=!!s&&(t=>h(this.el)&&f.includes(t))(s)&&!1!==n,l=n||r,a=o["aria-label"]||t;return i(e,Object.assign({key:"43aa73531314e6529a887468e69362430d006229","aria-label":void 0===a||this.hasAriaHidden()?null:a,alt:"",role:"img",class:Object.assign(Object.assign({},b(this.color)),{"flip-rtl":l,"icon-rtl":l&&h(this.el)})},o),i("div",this.svgContent?{class:"icon-inner",innerHTML:this.svgContent}:{class:"icon-inner"}))}setupInitialAriaLabel(){if(!this.inheritedAttributes["aria-label"]){const t=r(this.name,this.icon);t&&(this.ariaLabel=t.replace(/\-/g," "))}}waitUntilVisible(t,i,e){if("undefined"!=typeof window&&window.IntersectionObserver){const n=this.io=new window.IntersectionObserver((t=>{t[0].isIntersecting&&(n.disconnect(),this.io=void 0,e())}),{rootMargin:i});n.observe(t),setTimeout((()=>{this.io&&!this.isVisible&&this.isElementInViewport(t)&&(this.io.disconnect(),this.io=void 0,e())}),1e3)}else e()}isElementInViewport(t){if(!t||!t.isConnected)return!1;const i=t.getBoundingClientRect(),e=window.innerHeight||document.documentElement.clientHeight,n=window.innerWidth||document.documentElement.clientWidth;return i.top>=0&&i.left>=0&&i.bottom<=e&&i.right<=n||i.top<e&&i.bottom>0&&i.left<n&&i.right>0}debugIconState(){var t;const i=a(this),e=this.el.getBoundingClientRect();console.log("PdsIcon Debug State:",{name:this.name,src:this.src,icon:this.icon,iconName:this.iconName,url:i,isVisible:this.isVisible,didLoadIcon:this.didLoadIcon,hasSvgContent:!!this.svgContent,svgContentLength:(null===(t=this.svgContent)||void 0===t?void 0:t.length)||0,isInCache:!!i&&p.has(i),cachedContent:i?p.get(i):null,element:this.el,isConnected:this.el.isConnected,isInViewport:this.isElementInViewport(this.el),hasIntersectionObserver:!!this.io,boundingClientRect:e,windowDimensions:{width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}})}static get assetsDirs(){return["svg"]}get el(){return n(this)}static get watchers(){return{size:[{updateStyles:0}],color:[{updateStyles:0}],name:[{onIconPropertyChange:0}],src:[{onIconPropertyChange:0}],icon:[{onIconPropertyChange:0}]}}},b=t=>t?{"pds-color":!0,[`pds-color-${t}`]:!0}:null;v.style=":host{--dimension-icon-height:16px;--dimension-icon-width:16px;--color-icon-fill:currentColor;contain:strict;display:inline-block;fill:var(--color-icon-fill);-ms-flex-negative:0;flex-shrink:0;height:var(--dimension-icon-height);width:var(--dimension-icon-width)}:host .pdsicon{fill:var(--color-icon-fill)}.pds-icon-fill-none{fill:none}.icon-inner,.pds-icon,svg{display:block;height:100%;width:100%}:host(.flip-rtl):host-context([dir=rtl]) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.flip-rtl:dir(rtl)) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.flip-rtl:dir(ltr)) .icon-inner{-webkit-transform:scaleX(1);transform:scaleX(1)}";export{v as pds_icon}
@@ -1 +0,0 @@
1
- import{r as e,h as s,H as r}from"./p-CTLu1TM4.js";const a=class{constructor(s){e(this,s),this.icon="star"}render(){return s(r,{key:"f6ebcf8eec4bbbfe3a8717cf8c5611684d5c8929",id:this.componentId},s("pds-box",{key:"0c4b9d0154b13da6aa3ee8b04482b5591bfee46f","align-items":"center",gap:"xs"},s("pds-icon",{key:"960c0fe6447622133f423b5547f13d7407258cbb",icon:this.icon,size:"var(--pine-dimension-sm)","aria-hidden":"true"}),s("slot",{key:"367e9265e49712d16576ba0461042e8aa2210e69"})))}};a.style=":host{color:var(--pine-color-text-message);font:var(--pine-typography-body-medium)}";export{a as pds_property}
@@ -1 +0,0 @@
1
- import{r,h as e,H as i}from"./p-CTLu1TM4.js";const o=class{constructor(e){r(this,e),this.disabled=!1}render(){return e(i,{key:"d0fbf00978860c7a449b5781db2f10dd7e99d1b1",id:this.componentId},e("hr",{key:"a566c55fc3f15c0dab81fc90f5cf35d77fc0e35c"}))}};o.style=":host hr{border:0;border-top:var(--pine-border-width-thin) solid var(--pine-color-border);height:0;margin-block:var(--pine-dimension-xs);margin-inline:calc(var(--pine-dimension-xs) * -1)}";export{o as pds_dropdown_menu_separator}
@@ -1 +0,0 @@
1
- System.register(["./p-DAIsVNlL.system.js","./p-BG6uGRQj.system.js","./p-CRCxGYgw.system.js","./p-BrLs99ML.system.js"],(function(e){"use strict";var t,i,n,s,r;return{setters:[function(e){t=e.r;i=e.h;n=e.a},function(e){s=e.s},function(e){r=e.s},null],execute:function(){var a=["2xl","xl","lg","md","sm","xs","2xs","h1","h2","h3","h4","h5","h6"];var o=function(){return":host{display:inline}:host([decoration=underline-dotted])>*{-webkit-text-decoration-color:var(--pine-color-text-tertiary);text-decoration-color:var(--pine-color-text-tertiary);-webkit-text-decoration-line:underline;text-decoration-line:underline;-webkit-text-decoration-style:dotted;text-decoration-style:dotted;text-decoration-thickness:12%;text-underline-offset:0.3rem;text-underline-position:under}:host([decoration=strikethrough])>*{text-decoration:line-through}h1{font:var(--pine-typography-heading-1);letter-spacing:var(--pine-letter-spacing-heading-1)}h2{font:var(--pine-typography-heading-2);letter-spacing:var(--pine-letter-spacing-heading-2)}h3{font:var(--pine-typography-heading-3);letter-spacing:var(--pine-letter-spacing-heading-3)}h4{font:var(--pine-typography-heading-4);letter-spacing:var(--pine-letter-spacing-heading-4)}h5{font:var(--pine-typography-heading-5);letter-spacing:var(--pine-letter-spacing-heading-5)}h6{font:var(--pine-typography-heading-6);letter-spacing:var(--pine-letter-spacing-heading-6)}code,em,p,pre,strong{font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing)}code,pre{font-family:monospace;letter-spacing:0;line-height:1}em{font-style:normal}strong{font-weight:bolder}:host([truncate]){display:block;min-width:0}:host([truncate])>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([italic])>*{font-style:italic}.pds-text{color:var(--color, var(--pine-color-text));margin:var(--pine-dimension-none)}.pds-text--size-2xl{font-size:var(--pine-font-size-body-2xl)}.pds-text--size-xl{font-size:var(--pine-font-size-body-xl)}.pds-text--size-lg{font-size:var(--pine-font-size-body-lg)}.pds-text--size-md{font-size:var(--pine-font-size-body-md)}.pds-text--size-sm{font-size:var(--pine-font-size-body-sm)}.pds-text--size-xs{font-size:var(--pine-font-size-body-xs)}.pds-text--size-2xs{font-size:var(--pine-font-size-body-2xs)}.pds-text--size-h1{font-size:var(--pine-font-size-heading-1)}.pds-text--size-h2{font-size:var(--pine-font-size-heading-2)}.pds-text--size-h3{font-size:var(--pine-font-size-heading-3)}.pds-text--size-h4{font-size:var(--pine-font-size-heading-4)}.pds-text--size-h5{font-size:var(--pine-font-size-heading-5)}.pds-text--size-h6{font-size:var(--pine-font-size-heading-6)}.pds-text--weight-extra-light{font-weight:var(--pine-font-weight-extra-light)}.pds-text--weight-light{font-weight:var(--pine-font-weight-light)}.pds-text--weight-regular{font-weight:var(--pine-font-weight-regular)}.pds-text--weight-medium{font-weight:var(--pine-font-weight-medium)}.pds-text--weight-semibold{font-weight:var(--pine-font-weight-semi-bold)}.pds-text--weight-bold{font-weight:var(--pine-font-weight-bold)}.pds-text--gutter-2xl{-webkit-margin-after:var(--pine-dimension-2xl);margin-block-end:var(--pine-dimension-2xl)}.pds-text--gutter-xl{-webkit-margin-after:var(--pine-dimension-xl);margin-block-end:var(--pine-dimension-xl)}.pds-text--gutter-lg{-webkit-margin-after:var(--pine-dimension-lg);margin-block-end:var(--pine-dimension-lg)}.pds-text--gutter-md{-webkit-margin-after:var(--pine-dimension-md);margin-block-end:var(--pine-dimension-md)}.pds-text--gutter-sm{-webkit-margin-after:var(--pine-dimension-sm);margin-block-end:var(--pine-dimension-sm)}.pds-text--gutter-xs{-webkit-margin-after:var(--pine-dimension-xs);margin-block-end:var(--pine-dimension-xs)}.pds-text--gutter-2xs{-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}.pds-text--align-start{text-align:start}.pds-text--align-center{text-align:center}.pds-text--align-end{text-align:end}.pds-text--align-justify{text-align:justify}"};var d=e("pds_text",function(){function e(e){t(this,e);this.truncationCleanup=null;this.tag="p"}e.prototype.handleTruncateChange=function(e){if(e){this.initTruncationTooltip()}else{this.destroyTruncationTooltip()}};e.prototype.validateSize=function(e){if(e===undefined||e===""){return}if(!a.includes(e)){var t=e.length>80?"".concat(e.slice(0,80),"…"):e;console.warn('pds-text: invalid size "'.concat(t,'". Valid values are: ').concat(a.join(", "),"."))}};e.prototype.componentWillLoad=function(){this.validateSize(this.size)};e.prototype.componentDidLoad=function(){if(this.truncate){this.initTruncationTooltip()}};e.prototype.disconnectedCallback=function(){this.destroyTruncationTooltip()};e.prototype.initTruncationTooltip=function(){var e=this;this.destroyTruncationTooltip();if(this.contentEl){this.truncationCleanup=r({hostEl:this.el,contentEl:this.contentEl,getTooltipText:function(){return e.el.textContent||""}})}};e.prototype.destroyTruncationTooltip=function(){if(this.truncationCleanup){this.truncationCleanup();this.truncationCleanup=null}};e.prototype.render=function(){var e=this;var t=this.tag;var n="\n pds-text\n ".concat(this.align!==undefined&&this.align.trim()!==""?"pds-text--align-".concat(this.align):"","\n ").concat(this.gutter!==undefined&&this.gutter.trim()!==""?"pds-text--gutter-".concat(this.gutter):"","\n ").concat(this.size!==undefined&&this.size.trim()!==""?"pds-text--size-".concat(this.size):"","\n ").concat(this.weight!==undefined&&this.weight.trim()!==""?"pds-text--weight-".concat(this.weight):"","\n ").concat(this.decoration!==undefined&&this.decoration.trim()!==""?"pds-text--decoration-".concat(this.decoration):"","\n ");return i(t,{key:"deef66327ac6089ba6b32d80d41c0be60b5ee768",ref:function(t){return e.contentEl=t},style:this.color&&s(this.color),class:n,part:"content",tabIndex:this.truncate?0:undefined},i("slot",{key:"b58f1d01a19f2da255abaed9c0e3e2d8fea30019"}))};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{truncate:[{handleTruncateChange:0}],size:[{validateSize:0}]}},enumerable:false,configurable:true});return e}());d.style=o()}}}));
@@ -1 +0,0 @@
1
- import{r as s,h as i,H as t}from"./p-CTLu1TM4.js";const e=class{constructor(i){s(this,i),this.alt="",this.loading="eager"}render(){return i(t,{key:"dbc144927d78e2eb380639eeb8b243133a4b5379",class:{"pds-image":!0},id:this.componentId},i("img",{key:"259c1cd7ffdf4e5dd7c0ef178d28f1f835b57642",alt:this.alt,height:this.height,loading:this.loading,sizes:this.sizes,src:this.src,srcset:this.srcset,width:this.width}))}};e.style=":host{--dimension-aspect-ratio:auto;display:inline-block}img{aspect-ratio:var(--dimension-aspect-ratio);display:block;height:auto;max-width:100%}";export{e as pds_image}
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,i,e,n){function o(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,a){function r(t){try{d(n.next(t))}catch(t){a(t)}}function s(t){try{d(n["throw"](t))}catch(t){a(t)}}function d(t){t.done?e(t.value):o(t.value).then(r,s)}d((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,r=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return r.next=s(0),r["throw"]=s(1),r["return"]=s(2),typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(t){return function(i){return d([t,i])}}function d(s){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,s[0]&&(e=0)),e)try{if(n=1,o&&(a=s[0]&2?o["return"]:s[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,s[1])).done)return a;if(o=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:e.label++;return{value:s[1],done:false};case 5:e.label++;o=s[1];s=[0];continue;case 7:s=e.ops.pop();e.trys.pop();continue;default:if(!(a=e.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){e.label=s[1];break}if(s[0]===6&&e.label<a[1]){e.label=a[1];a=s;break}if(a&&e.label<a[2]){e.label=a[2];e.ops.push(s);break}if(a[2])e.ops.pop();e.trys.pop();continue}s=i.call(t,e)}catch(t){s=[6,t];o=0}finally{n=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-DAIsVNlL.system.js","./p-BbXp4qBM.system.js"],(function(t){"use strict";var i,e,n,o,a;return{setters:[function(t){i=t.r;e=t.c;n=t.h;o=t.a},function(t){a=t.u}],execute:function(){var r=function(){return".pds-modal__backdrop{-ms-flex-align:start;align-items:flex-start;background-color:rgba(0, 0, 0, 0.4);border:0;display:-ms-flexbox;display:flex;height:100%;inset:0;-ms-flex-pack:center;justify-content:center;margin:0;max-height:100%;max-width:100%;opacity:0;padding:0;position:fixed;-webkit-transition:opacity var(--pine-motion-duration-base) var(--pine-motion-easing-in), visibility var(--pine-motion-duration-base) var(--pine-motion-easing-in);transition:opacity var(--pine-motion-duration-base) var(--pine-motion-easing-in), visibility var(--pine-motion-duration-base) var(--pine-motion-easing-in);visibility:hidden;width:100%;z-index:var(--pine-z-index-modal)}@supports ((-webkit-backdrop-filter: blur(3px)) or (backdrop-filter: blur(3px))){.pds-modal__backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}}pds-modal .pds-modal__backdrop{z-index:var(--pine-z-index-priority)}.pds-modal__backdrop::-webkit-backdrop{background:transparent}.pds-modal__backdrop::-ms-backdrop{background:transparent}.pds-modal__backdrop::backdrop{background:transparent}.pds-modal__backdrop.open{opacity:1;-webkit-transition-timing-function:var(--pine-motion-easing-out);transition-timing-function:var(--pine-motion-easing-out);visibility:visible}.pds-modal{background:var(--pine-color-background-overlay);border-radius:var(--pine-dimension-sm);-webkit-box-shadow:var(--pine-box-shadow-400);box-shadow:var(--pine-box-shadow-400);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:var(--pine-dimension-md);max-height:none;width:100%}.pds-modal.pds-modal--scrollable{max-height:calc(100vh - (5vh + 96px))}@supports (height: 100dvh){.pds-modal.pds-modal--scrollable{max-height:calc(100dvh - (5dvh + 96px))}}@media (min-width: 992px){.pds-modal{-webkit-margin-before:6vh;margin-block-start:6vh}@supports (height: 100dvh){.pds-modal{-webkit-margin-before:6dvh;margin-block-start:6dvh}}}@media (min-width: 1200px){.pds-modal{-webkit-margin-before:8vh;margin-block-start:8vh}@supports (height: 100dvh){.pds-modal{-webkit-margin-before:8dvh;margin-block-start:8dvh}}}.pds-modal--sm{max-width:520px}.pds-modal--md{max-width:700px}.pds-modal--lg{max-width:900px}.pds-modal--fullscreen{border-radius:0;height:100%;margin:0;max-height:100vh;max-width:100%}@supports (height: 100dvh){.pds-modal--fullscreen{max-height:100dvh}}.pds-modal--fullscreen.pds-modal--scrollable{max-height:100vh}@supports (height: 100dvh){.pds-modal--fullscreen.pds-modal--scrollable{max-height:100dvh}}.pds-modal--fullscreen .pds-modal-content{-ms-flex:1;flex:1}.pds-modal--scrollable pds-modal-content{-webkit-border-after:1px solid transparent;border-block-end:1px solid transparent;-webkit-border-before:1px solid transparent;border-block-start:1px solid transparent;overflow-y:auto}.pds-modal:not(.pds-modal--scrollable) pds-modal-content{overflow-y:visible}"};var s=t("pds_modal",function(){function t(t){var n=this;i(this,t);this.pdsModalOpen=e(this,"pdsModalOpen");this.pdsModalClose=e(this,"pdsModalClose");this.focusableElements=[];this.backdropDismiss=true;this.open=false;this.size="md";this.scrollable=true;this.disableTopLayer=false;this.focusableElementsArray=[];this.handleBackdropClick=function(t){if(!n.backdropDismiss||!n.open)return;if(t.target.classList.contains("pds-modal__backdrop")){t.stopPropagation();if(n.isInnermostModal()){n.hideModal()}}};this.handleKeyDown=function(t){if(!n.open)return;if(t.key==="Escape"){var i=document.activeElement;if(n.disableTopLayer&&i&&i!==document.body&&!n.el.contains(i)){return}t.preventDefault();if(n.backdropDismiss&&n.isInnermostModal()){n.hideModal()}return}if(t.key==="Tab"){if(n.disableTopLayer)return;if(n.focusableElements.length===0)return;var e=n.focusableElements[0];var o=n.focusableElements[n.focusableElements.length-1];var a=document.activeElement;var r=a===e||e.contains(a);var s=a===o||o.contains(a);if(t.shiftKey&&r){t.preventDefault();n.focusElement(o)}else if(!t.shiftKey&&s){t.preventDefault();n.focusElement(e)}}}}t.prototype.componentDidLoad=function(){this.modalRef=this.el.querySelector(".pds-modal__backdrop");document.addEventListener("keydown",this.handleKeyDown)};t.prototype.componentDidRender=function(){a(this.el.querySelector(".pds-modal"),"dialog.pds-modal__backdrop",".pds-modal")};t.prototype.disconnectedCallback=function(){document.removeEventListener("keydown",this.handleKeyDown)};t.prototype.handleOpenChange=function(t){if(t){this.showModal()}else{this.hideModal()}};t.prototype.updateFocusableElements=function(){if(!this.modalRef)return;var t=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"pds-button:not([disabled])","pds-link:not([disabled])","pds-input:not([disabled])","pds-checkbox:not([disabled])","pds-radio:not([disabled])","pds-switch:not([disabled])","pds-select:not([disabled])"].join(",");this.focusableElements=Array.from(this.modalRef.querySelectorAll(t));this.focusableElements=this.focusableElements.filter((function(t){var i=window.getComputedStyle(t);return i.display!=="none"&&i.visibility!=="hidden"}))};t.prototype.setInitialFocus=function(){if(this.focusableElements.length===0)return;var t=this.focusableElements[0];this.focusElement(t)};t.prototype.focusElement=function(t){if(!t)return;try{t.focus();setTimeout((function(){if(document.activeElement!==t){if(t.shadowRoot){var i=t.shadowRoot.querySelector("button, [tabindex], input, a[href]");if(i){i.focus()}}}}),0)}catch(t){console.error("Error focusing element:",t)}};t.prototype.showModal=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(i){if(this.modalRef){try{this.previousActiveElement=document.activeElement;if(this.disableTopLayer){this.modalRef.show()}else{this.modalRef.showModal()}this.open=true;setTimeout((function(){t.updateFocusableElements();t.setInitialFocus();t.pdsModalOpen.emit()}),100)}catch(t){console.error("Failed to show modal:",t)}}return[2]}))}))};t.prototype.hideModal=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.modalRef){try{this.modalRef.close();this.open=false;if(this.previousActiveElement&&typeof this.previousActiveElement.focus==="function"){this.previousActiveElement.focus()}this.pdsModalClose.emit()}catch(t){console.error("Failed to hide modal:",t)}}return[2]}))}))};t.prototype.getBackdropZIndex=function(t){var i=t.querySelector(".pds-modal__backdrop");return i?parseInt(getComputedStyle(i).zIndex,10):-1};t.prototype.isInnermostModal=function(){var t=this;var i=Array.from(document.querySelectorAll("pds-modal")).filter((function(t){return t.open}));if(i.length===0)return false;var e=this.el.querySelector(".pds-modal__backdrop");if(!e)return false;var n=i.map((function(i){return t.getBackdropZIndex(i)}));var o=Math.max.apply(Math,n);var a=this.getBackdropZIndex(this.el);return a===o};t.prototype.render=function(){var t;return n("dialog",{key:"65d204a57e193022eb475c113438a40fc77cf545",class:{"pds-modal__backdrop":true,open:this.open},"aria-modal":this.disableTopLayer?"false":"true","aria-labelledby":"".concat(this.componentId,"-heading"),onClick:this.handleBackdropClick},n("div",{key:"a9f07a30f8b4d13ef7ac33068756f0fb03173e27",class:(t={"pds-modal":true},t["pds-modal--".concat(this.size)]=true,t["pds-modal--scrollable"]=this.scrollable,t),part:"modal"},n("slot",{key:"8505057bef9b4ed60e51422b05fea08cefce4a4b"})))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{open:[{handleOpenChange:0}]}},enumerable:false,configurable:true});return t}());s.style=r()}}}));
@@ -1 +0,0 @@
1
- import{r as e,h as a,a as d}from"./p-CTLu1TM4.js";import{u as r}from"./p-RFpTWV6r.js";const s=class{constructor(a){e(this,a)}componentDidRender(){r(this.el.querySelector(".pds-modal__header"),".pds-modal__header")}render(){return a("header",{key:"ae4277052c04a1804e0e73f2873e636ea4cb890c",class:"pds-modal__header"},a("slot",{key:"5c4a7b463835de451c9c3f15e0ac669bf32aee23"}))}get el(){return d(this)}};s.style="pds-modal-header{display:block;width:100%}.pds-modal__header{width:100%}";export{s as pds_modal_header}
@@ -1 +0,0 @@
1
- System.register(["./p-DAIsVNlL.system.js"],(function(e){"use strict";var s,t,f;return{setters:[function(e){s=e.r;t=e.h;f=e.H}],execute:function(){var i=function(){return":host{display:block}.pds-filters{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--pine-dimension-100)}"};var n=e("pds_filters",function(){function e(e){s(this,e)}e.prototype.render=function(){return t(f,{key:"0f4dc3d5ecf71992a4c13f85fec62d4b60f3c6d1",id:this.componentId},t("div",{key:"ee3edc3d752c70d7888028b45dcb1c89f297803c",class:"pds-filters"},t("slot",{key:"de693eedf74a029a0a279855cd2602420891ef10"})))};return e}());n.style=i()}}}));
@@ -1,3 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,i,t,r){function o(e){return e instanceof t?e:new t((function(i){i(e)}))}return new(t||(t=Promise))((function(t,n){function a(e){try{l(r.next(e))}catch(e){n(e)}}function s(e){try{l(r["throw"](e))}catch(e){n(e)}}function l(e){e.done?t(e.value):o(e.value).then(a,s)}l((r=r.apply(e,i||[])).next())}))};var __generator=this&&this.__generator||function(e,i){var t={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,o,n,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(i){return l([e,i])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(t=0)),t)try{if(r=1,o&&(n=s[0]&2?o["return"]:s[0]?o["throw"]||((n=o["return"])&&n.call(o),0):o.next)&&!(n=n.call(o,s[1])).done)return n;if(o=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;o=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(n=t.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){t.label=s[1];break}if(s[0]===6&&t.label<n[1]){t.label=n[1];n=s;break}if(n&&t.label<n[2]){t.label=n[2];t.ops.push(s);break}if(n[2])t.ops.pop();t.trys.pop();continue}s=i.call(e,t)}catch(e){s=[6,e];o=0}finally{r=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,i,t){if(t||arguments.length===2)for(var r=0,o=i.length,n;r<o;r++){if(n||!(r in i)){if(!n)n=Array.prototype.slice.call(i,0,r);n[r]=i[r]}}return e.concat(n||Array.prototype.slice.call(i))};System.register(["./p-DAIsVNlL.system.js","./p-BxIzb-Wc.system.js","./p-BrLs99ML.system.js","./p-BG6uGRQj.system.js"],(function(e){"use strict";var i,t,r,o,n,a,s,l,c,d,u,p,f,h;return{setters:[function(e){i=e.r;t=e.c;r=e.h;o=e.H;n=e.a},function(e){a=e.i;s=e.m;l=e.a},function(e){c=e.c;d=e.a;u=e.o;p=e.f;f=e.s},function(e){h=e.d}],execute:function(){
2
- /*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */
3
- var b=Object.entries,v=Object.setPrototypeOf,m=Object.isFrozen,g=Object.getPrototypeOf,x=Object.getOwnPropertyDescriptor;var _=Object.freeze,y=Object.seal,w=Object.create;var k=typeof Reflect!=="undefined"&&Reflect,A=k.apply,T=k.construct;if(!_){_=function e(i){return i}}if(!y){y=function e(i){return i}}if(!A){A=function e(i,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),n=2;n<r;n++){o[n-2]=arguments[n]}return i.apply(t,o)}}if(!T){T=function e(i){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++){r[o-1]=arguments[o]}return new(i.bind.apply(i,__spreadArray([void 0],r,false)))}}var O=B(Array.prototype.forEach);var S=B(Array.prototype.lastIndexOf);var E=B(Array.prototype.pop);var z=B(Array.prototype.push);var j=B(Array.prototype.splice);var D=B(String.prototype.toLowerCase);var R=B(String.prototype.toString);var C=B(String.prototype.match);var I=B(String.prototype.replace);var L=B(String.prototype.indexOf);var P=B(String.prototype.trim);var N=B(Object.prototype.hasOwnProperty);var F=B(RegExp.prototype.test);var M=U(TypeError);function B(e){return function(i){if(i instanceof RegExp){i.lastIndex=0}for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++){r[o-1]=arguments[o]}return A(e,i,r)}}function U(e){return function(){for(var i=arguments.length,t=new Array(i),r=0;r<i;r++){t[r]=arguments[r]}return T(e,t)}}function G(e,i){var t=arguments.length>2&&arguments[2]!==undefined?arguments[2]:D;if(v){v(e,null)}var r=i.length;while(r--){var o=i[r];if(typeof o==="string"){var n=t(o);if(n!==o){if(!m(i)){i[r]=n}o=n}}e[o]=true}return e}function W(e){for(var i=0;i<e.length;i++){var t=N(e,i);if(!t){e[i]=null}}return e}function H(e){var i=w(null);for(var t=0,r=b(e);t<r.length;t++){var o=r[t],n=o[0],a=o[1];var s=N(e,n);if(s){if(Array.isArray(a)){i[n]=W(a)}else if(a&&typeof a==="object"&&a.constructor===Object){i[n]=H(a)}else{i[n]=a}}}return i}function q(e,i){while(e!==null){var t=x(e,i);if(t){if(t.get){return B(t.get)}if(typeof t.value==="function"){return B(t.value)}}e=g(e)}function r(){return null}return r}var $=_(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]);var X=_(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]);var K=_(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]);var Y=_(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]);var V=_(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]);var Z=_(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]);var J=_(["#text"]);var Q=_(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]);var ee=_(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]);var ie=_(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]);var te=_(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]);var re=y(/\{\{[\w\W]*|[\w\W]*\}\}/gm);var oe=y(/<%[\w\W]*|[\w\W]*%>/gm);var ne=y(/\$\{[\w\W]*/gm);var ae=y(/^data-[\-\w.\u00B7-\uFFFF]+$/);var se=y(/^aria-[\-\w]+$/);var le=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i);var ce=y(/^(?:\w+script|data):/i);var de=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g);var ue=y(/^html$/i);var pe=y(/^[a-z][.\w]*(-[.\w]+)+$/i);var fe=Object.freeze({__proto__:null,ARIA_ATTR:se,ATTR_WHITESPACE:de,CUSTOM_ELEMENT:pe,DATA_ATTR:ae,DOCTYPE_NAME:ue,ERB_EXPR:oe,IS_ALLOWED_URI:le,IS_SCRIPT_OR_DATA:ce,MUSTACHE_EXPR:re,TMPLIT_EXPR:ne});var he={element:1,text:3,progressingInstruction:7,comment:8,document:9};var be=function e(){return typeof window==="undefined"?null:window};var ve=function e(i,t){if(typeof i!=="object"||typeof i.createPolicy!=="function"){return null}var r=null;var o="data-tt-policy-suffix";if(t&&t.hasAttribute(o)){r=t.getAttribute(o)}var n="dompurify"+(r?"#"+r:"");try{return i.createPolicy(n,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){console.warn("TrustedTypes policy "+n+" could not be created.");return null}};var me=function e(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ge(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:be();var i=function(e){return ge(e)};i.version="3.3.3";i.removed=[];if(!e||!e.document||e.document.nodeType!==he.document||!e.Element){i.isSupported=false;return i}var t=e.document;var r=t;var o=r.currentScript;var n=e.DocumentFragment,a=e.HTMLTemplateElement,s=e.Node,l=e.Element,c=e.NodeFilter,d=e.NamedNodeMap,u=d===void 0?e.NamedNodeMap||e.MozNamedAttrMap:d,p=e.HTMLFormElement,f=e.DOMParser,h=e.trustedTypes;var v=l.prototype;var m=q(v,"cloneNode");var g=q(v,"remove");var x=q(v,"nextSibling");var y=q(v,"childNodes");var k=q(v,"parentNode");if(typeof a==="function"){var A=t.createElement("template");if(A.content&&A.content.ownerDocument){t=A.content.ownerDocument}}var T;var B="";var U=t.implementation,W=t.createNodeIterator,re=t.createDocumentFragment,oe=t.getElementsByTagName;var ne=r.importNode;var ae=me();i.isSupported=typeof b==="function"&&typeof k==="function"&&U&&U.createHTMLDocument!==undefined;var se=fe.MUSTACHE_EXPR,ce=fe.ERB_EXPR,de=fe.TMPLIT_EXPR,pe=fe.DATA_ATTR,xe=fe.ARIA_ATTR,_e=fe.IS_SCRIPT_OR_DATA,ye=fe.ATTR_WHITESPACE,we=fe.CUSTOM_ELEMENT;var ke=fe.IS_ALLOWED_URI;var Ae=null;var Te=G({},__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([],$,true),X,true),K,true),V,true),J,true));var Oe=null;var Se=G({},__spreadArray(__spreadArray(__spreadArray(__spreadArray([],Q,true),ee,true),ie,true),te,true));var Ee=Object.seal(w(null,{tagNameCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeNameCheck:{writable:true,configurable:false,enumerable:true,value:null},allowCustomizedBuiltInElements:{writable:true,configurable:false,enumerable:true,value:false}}));var ze=null;var je=null;var De=Object.seal(w(null,{tagCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeCheck:{writable:true,configurable:false,enumerable:true,value:null}}));var Re=true;var Ce=true;var Ie=false;var Le=true;var Pe=false;var Ne=true;var Fe=false;var Me=false;var Be=false;var Ue=false;var Ge=false;var We=false;var He=true;var qe=false;var $e="user-content-";var Xe=true;var Ke=false;var Ye={};var Ve=null;var Ze=G({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);var Je=null;var Qe=G({},["audio","video","img","source","image","track"]);var ei=null;var ii=G({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]);var ti="http://www.w3.org/1998/Math/MathML";var ri="http://www.w3.org/2000/svg";var oi="http://www.w3.org/1999/xhtml";var ni=oi;var ai=false;var si=null;var li=G({},[ti,ri,oi],R);var ci=G({},["mi","mo","mn","ms","mtext"]);var di=G({},["annotation-xml"]);var ui=G({},["title","style","font","a","script"]);var pi=null;var fi=["application/xhtml+xml","text/html"];var hi="text/html";var bi=null;var vi=null;var mi=t.createElement("form");var gi=function e(i){return i instanceof RegExp||i instanceof Function};var xi=function e(){var i=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(vi&&vi===i){return}if(!i||typeof i!=="object"){i={}}i=H(i);pi=fi.indexOf(i.PARSER_MEDIA_TYPE)===-1?hi:i.PARSER_MEDIA_TYPE;bi=pi==="application/xhtml+xml"?R:D;Ae=N(i,"ALLOWED_TAGS")?G({},i.ALLOWED_TAGS,bi):Te;Oe=N(i,"ALLOWED_ATTR")?G({},i.ALLOWED_ATTR,bi):Se;si=N(i,"ALLOWED_NAMESPACES")?G({},i.ALLOWED_NAMESPACES,R):li;ei=N(i,"ADD_URI_SAFE_ATTR")?G(H(ii),i.ADD_URI_SAFE_ATTR,bi):ii;Je=N(i,"ADD_DATA_URI_TAGS")?G(H(Qe),i.ADD_DATA_URI_TAGS,bi):Qe;Ve=N(i,"FORBID_CONTENTS")?G({},i.FORBID_CONTENTS,bi):Ze;ze=N(i,"FORBID_TAGS")?G({},i.FORBID_TAGS,bi):H({});je=N(i,"FORBID_ATTR")?G({},i.FORBID_ATTR,bi):H({});Ye=N(i,"USE_PROFILES")?i.USE_PROFILES:false;Re=i.ALLOW_ARIA_ATTR!==false;Ce=i.ALLOW_DATA_ATTR!==false;Ie=i.ALLOW_UNKNOWN_PROTOCOLS||false;Le=i.ALLOW_SELF_CLOSE_IN_ATTR!==false;Pe=i.SAFE_FOR_TEMPLATES||false;Ne=i.SAFE_FOR_XML!==false;Fe=i.WHOLE_DOCUMENT||false;Ue=i.RETURN_DOM||false;Ge=i.RETURN_DOM_FRAGMENT||false;We=i.RETURN_TRUSTED_TYPE||false;Be=i.FORCE_BODY||false;He=i.SANITIZE_DOM!==false;qe=i.SANITIZE_NAMED_PROPS||false;Xe=i.KEEP_CONTENT!==false;Ke=i.IN_PLACE||false;ke=i.ALLOWED_URI_REGEXP||le;ni=i.NAMESPACE||oi;ci=i.MATHML_TEXT_INTEGRATION_POINTS||ci;di=i.HTML_INTEGRATION_POINTS||di;Ee=i.CUSTOM_ELEMENT_HANDLING||{};if(i.CUSTOM_ELEMENT_HANDLING&&gi(i.CUSTOM_ELEMENT_HANDLING.tagNameCheck)){Ee.tagNameCheck=i.CUSTOM_ELEMENT_HANDLING.tagNameCheck}if(i.CUSTOM_ELEMENT_HANDLING&&gi(i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)){Ee.attributeNameCheck=i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck}if(i.CUSTOM_ELEMENT_HANDLING&&typeof i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==="boolean"){Ee.allowCustomizedBuiltInElements=i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements}if(Pe){Ce=false}if(Ge){Ue=true}if(Ye){Ae=G({},J);Oe=w(null);if(Ye.html===true){G(Ae,$);G(Oe,Q)}if(Ye.svg===true){G(Ae,X);G(Oe,ee);G(Oe,te)}if(Ye.svgFilters===true){G(Ae,K);G(Oe,ee);G(Oe,te)}if(Ye.mathMl===true){G(Ae,V);G(Oe,ie);G(Oe,te)}}if(!N(i,"ADD_TAGS")){De.tagCheck=null}if(!N(i,"ADD_ATTR")){De.attributeCheck=null}if(i.ADD_TAGS){if(typeof i.ADD_TAGS==="function"){De.tagCheck=i.ADD_TAGS}else{if(Ae===Te){Ae=H(Ae)}G(Ae,i.ADD_TAGS,bi)}}if(i.ADD_ATTR){if(typeof i.ADD_ATTR==="function"){De.attributeCheck=i.ADD_ATTR}else{if(Oe===Se){Oe=H(Oe)}G(Oe,i.ADD_ATTR,bi)}}if(i.ADD_URI_SAFE_ATTR){G(ei,i.ADD_URI_SAFE_ATTR,bi)}if(i.FORBID_CONTENTS){if(Ve===Ze){Ve=H(Ve)}G(Ve,i.FORBID_CONTENTS,bi)}if(i.ADD_FORBID_CONTENTS){if(Ve===Ze){Ve=H(Ve)}G(Ve,i.ADD_FORBID_CONTENTS,bi)}if(Xe){Ae["#text"]=true}if(Fe){G(Ae,["html","head","body"])}if(Ae.table){G(Ae,["tbody"]);delete ze.tbody}if(i.TRUSTED_TYPES_POLICY){if(typeof i.TRUSTED_TYPES_POLICY.createHTML!=="function"){throw M('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.')}if(typeof i.TRUSTED_TYPES_POLICY.createScriptURL!=="function"){throw M('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.')}T=i.TRUSTED_TYPES_POLICY;B=T.createHTML("")}else{if(T===undefined){T=ve(h,o)}if(T!==null&&typeof B==="string"){B=T.createHTML("")}}if(_){_(i)}vi=i};var _i=G({},__spreadArray(__spreadArray(__spreadArray([],X,true),K,true),Y,true));var yi=G({},__spreadArray(__spreadArray([],V,true),Z,true));var wi=function e(i){var t=k(i);if(!t||!t.tagName){t={namespaceURI:ni,tagName:"template"}}var r=D(i.tagName);var o=D(t.tagName);if(!si[i.namespaceURI]){return false}if(i.namespaceURI===ri){if(t.namespaceURI===oi){return r==="svg"}if(t.namespaceURI===ti){return r==="svg"&&(o==="annotation-xml"||ci[o])}return Boolean(_i[r])}if(i.namespaceURI===ti){if(t.namespaceURI===oi){return r==="math"}if(t.namespaceURI===ri){return r==="math"&&di[o]}return Boolean(yi[r])}if(i.namespaceURI===oi){if(t.namespaceURI===ri&&!di[o]){return false}if(t.namespaceURI===ti&&!ci[o]){return false}return!yi[r]&&(ui[r]||!_i[r])}if(pi==="application/xhtml+xml"&&si[i.namespaceURI]){return true}return false};var ki=function e(t){z(i.removed,{element:t});try{k(t).removeChild(t)}catch(e){g(t)}};var Ai=function e(t,r){try{z(i.removed,{attribute:r.getAttributeNode(t),from:r})}catch(e){z(i.removed,{attribute:null,from:r})}r.removeAttribute(t);if(t==="is"){if(Ue||Ge){try{ki(r)}catch(e){}}else{try{r.setAttribute(t,"")}catch(e){}}}};var Ti=function e(i){var r=null;var o=null;if(Be){i="<remove></remove>"+i}else{var n=C(i,/^[\r\n\t ]+/);o=n&&n[0]}if(pi==="application/xhtml+xml"&&ni===oi){i='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+i+"</body></html>"}var a=T?T.createHTML(i):i;if(ni===oi){try{r=(new f).parseFromString(a,pi)}catch(e){}}if(!r||!r.documentElement){r=U.createDocument(ni,"template",null);try{r.documentElement.innerHTML=ai?B:a}catch(e){}}var s=r.body||r.documentElement;if(i&&o){s.insertBefore(t.createTextNode(o),s.childNodes[0]||null)}if(ni===oi){return oe.call(r,Fe?"html":"body")[0]}return Fe?r.documentElement:s};var Oi=function e(i){return W.call(i.ownerDocument||i,i,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)};var Si=function e(i){return i instanceof p&&(typeof i.nodeName!=="string"||typeof i.textContent!=="string"||typeof i.removeChild!=="function"||!(i.attributes instanceof u)||typeof i.removeAttribute!=="function"||typeof i.setAttribute!=="function"||typeof i.namespaceURI!=="string"||typeof i.insertBefore!=="function"||typeof i.hasChildNodes!=="function")};var Ei=function e(i){return typeof s==="function"&&i instanceof s};function zi(e,t,r){O(e,(function(e){e.call(i,t,r,vi)}))}var ji=function e(t){var r=null;zi(ae.beforeSanitizeElements,t,null);if(Si(t)){ki(t);return true}var o=bi(t.nodeName);zi(ae.uponSanitizeElement,t,{tagName:o,allowedTags:Ae});if(Ne&&t.hasChildNodes()&&!Ei(t.firstElementChild)&&F(/<[/\w!]/g,t.innerHTML)&&F(/<[/\w!]/g,t.textContent)){ki(t);return true}if(t.nodeType===he.progressingInstruction){ki(t);return true}if(Ne&&t.nodeType===he.comment&&F(/<[/\w]/g,t.data)){ki(t);return true}if(!(De.tagCheck instanceof Function&&De.tagCheck(o))&&(!Ae[o]||ze[o])){if(!ze[o]&&Ri(o)){if(Ee.tagNameCheck instanceof RegExp&&F(Ee.tagNameCheck,o)){return false}if(Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(o)){return false}}if(Xe&&!Ve[o]){var n=k(t)||t.parentNode;var a=y(t)||t.childNodes;if(a&&n){var s=a.length;for(var c=s-1;c>=0;--c){var d=m(a[c],true);d.__removalCount=(t.__removalCount||0)+1;n.insertBefore(d,x(t))}}}ki(t);return true}if(t instanceof l&&!wi(t)){ki(t);return true}if((o==="noscript"||o==="noembed"||o==="noframes")&&F(/<\/no(script|embed|frames)/i,t.innerHTML)){ki(t);return true}if(Pe&&t.nodeType===he.text){r=t.textContent;O([se,ce,de],(function(e){r=I(r,e," ")}));if(t.textContent!==r){z(i.removed,{element:t.cloneNode()});t.textContent=r}}zi(ae.afterSanitizeElements,t,null);return false};var Di=function e(i,r,o){if(je[r]){return false}if(He&&(r==="id"||r==="name")&&(o in t||o in mi)){return false}if(Ce&&!je[r]&&F(pe,r));else if(Re&&F(xe,r));else if(De.attributeCheck instanceof Function&&De.attributeCheck(r,i));else if(!Oe[r]||je[r]){if(Ri(i)&&(Ee.tagNameCheck instanceof RegExp&&F(Ee.tagNameCheck,i)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(i))&&(Ee.attributeNameCheck instanceof RegExp&&F(Ee.attributeNameCheck,r)||Ee.attributeNameCheck instanceof Function&&Ee.attributeNameCheck(r,i))||r==="is"&&Ee.allowCustomizedBuiltInElements&&(Ee.tagNameCheck instanceof RegExp&&F(Ee.tagNameCheck,o)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(o)));else{return false}}else if(ei[r]);else if(F(ke,I(o,ye,"")));else if((r==="src"||r==="xlink:href"||r==="href")&&i!=="script"&&L(o,"data:")===0&&Je[i]);else if(Ie&&!F(_e,I(o,ye,"")));else if(o){return false}else;return true};var Ri=function e(i){return i!=="annotation-xml"&&C(i,we)};var Ci=function e(t){zi(ae.beforeSanitizeAttributes,t,null);var r=t.attributes;if(!r||Si(t)){return}var o={attrName:"",attrValue:"",keepAttr:true,allowedAttributes:Oe,forceKeepAttr:undefined};var n=r.length;var a=function(){var e=r[n];var a=e.name,s=e.namespaceURI,l=e.value;var c=bi(a);var d=l;var u=a==="value"?d:P(d);o.attrName=c;o.attrValue=u;o.keepAttr=true;o.forceKeepAttr=undefined;zi(ae.uponSanitizeAttribute,t,o);u=o.attrValue;if(qe&&(c==="id"||c==="name")){Ai(a,t);u=$e+u}if(Ne&&F(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){Ai(a,t);return"continue"}if(c==="attributename"&&C(u,"href")){Ai(a,t);return"continue"}if(o.forceKeepAttr){return"continue"}if(!o.keepAttr){Ai(a,t);return"continue"}if(!Le&&F(/\/>/i,u)){Ai(a,t);return"continue"}if(Pe){O([se,ce,de],(function(e){u=I(u,e," ")}))}var p=bi(t.nodeName);if(!Di(p,c,u)){Ai(a,t);return"continue"}if(T&&typeof h==="object"&&typeof h.getAttributeType==="function"){if(s);else{switch(h.getAttributeType(p,c)){case"TrustedHTML":{u=T.createHTML(u);break}case"TrustedScriptURL":{u=T.createScriptURL(u);break}}}}if(u!==d){try{if(s){t.setAttributeNS(s,a,u)}else{t.setAttribute(a,u)}if(Si(t)){ki(t)}else{E(i.removed)}}catch(e){Ai(a,t)}}};while(n--){a()}zi(ae.afterSanitizeAttributes,t,null)};var Ii=function e(i){var t=null;var r=Oi(i);zi(ae.beforeSanitizeShadowDOM,i,null);while(t=r.nextNode()){zi(ae.uponSanitizeShadowNode,t,null);ji(t);Ci(t);if(t.content instanceof n){e(t.content)}}zi(ae.afterSanitizeShadowDOM,i,null)};i.sanitize=function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var o=null;var a=null;var l=null;var c=null;ai=!e;if(ai){e="\x3c!--\x3e"}if(typeof e!=="string"&&!Ei(e)){if(typeof e.toString==="function"){e=e.toString();if(typeof e!=="string"){throw M("dirty is not a string, aborting")}}else{throw M("toString is not a function")}}if(!i.isSupported){return e}if(!Me){xi(t)}i.removed=[];if(typeof e==="string"){Ke=false}if(Ke){if(e.nodeName){var d=bi(e.nodeName);if(!Ae[d]||ze[d]){throw M("root node is forbidden and cannot be sanitized in-place")}}}else if(e instanceof s){o=Ti("\x3c!----\x3e");a=o.ownerDocument.importNode(e,true);if(a.nodeType===he.element&&a.nodeName==="BODY"){o=a}else if(a.nodeName==="HTML"){o=a}else{o.appendChild(a)}}else{if(!Ue&&!Pe&&!Fe&&e.indexOf("<")===-1){return T&&We?T.createHTML(e):e}o=Ti(e);if(!o){return Ue?null:We?B:""}}if(o&&Be){ki(o.firstChild)}var u=Oi(Ke?e:o);while(l=u.nextNode()){ji(l);Ci(l);if(l.content instanceof n){Ii(l.content)}}if(Ke){return e}if(Ue){if(Ge){c=re.call(o.ownerDocument);while(o.firstChild){c.appendChild(o.firstChild)}}else{c=o}if(Oe.shadowroot||Oe.shadowrootmode){c=ne.call(r,c,true)}return c}var p=Fe?o.outerHTML:o.innerHTML;if(Fe&&Ae["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&F(ue,o.ownerDocument.doctype.name)){p="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+p}if(Pe){O([se,ce,de],(function(e){p=I(p,e," ")}))}return T&&We?T.createHTML(p):p};i.setConfig=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};xi(e);Me=true};i.clearConfig=function(){vi=null;Me=false};i.isValidAttribute=function(e,i,t){if(!vi){xi({})}var r=bi(e);var o=bi(i);return Di(r,o,t)};i.addHook=function(e,i){if(typeof i!=="function"){return}z(ae[e],i)};i.removeHook=function(e,i){if(i!==undefined){var t=S(ae[e],i);return t===-1?undefined:j(ae[e],t,1)[0]}return E(ae[e])};i.removeHooks=function(e){ae[e]=[]};i.removeAllHooks=function(){ae=me()};return i}var xe=ge();var _e=function(){return':host{display:block}:host([aria-disabled=true]) .pds-combobox__input-icon{color:var(--pine-color-text-disabled);pointer-events:none}.pds-combobox{position:relative}.pds-combobox__label{color:var(--pine-color-text-label);display:block;font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}.pds-combobox__input-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;position:relative;width:100%}.pds-combobox__input{background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-125);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--pine-color-text-strong);-ms-flex:1;flex:1;font:var(--pine-typography-body-medium);padding:var(--pine-dimension-xs) var(--pine-dimension-450) var(--pine-dimension-xs) var(--pine-dimension-150);-webkit-transition:border-color var(--pine-motion-duration-base) ease;transition:border-color var(--pine-motion-duration-base) ease;width:100%}.pds-combobox__input:hover:not(:disabled){border-color:var(--pine-color-border-hover)}.pds-combobox__input:disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}.pds-combobox__input:disabled::-webkit-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::-moz-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled:-ms-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::-ms-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:focus-visible{border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-combobox__input::-webkit-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::-moz-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input:-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input.pds-combobox__input--invalid{background:var(--pine-color-red-050);border-color:var(--pine-color-border-danger)}:host-context([data-theme=dark]) .pds-combobox__input.pds-combobox__input--invalid{background:var(--pine-color-red-950)}.pds-combobox__input.pds-combobox__input--invalid:hover:not(:disabled){border-color:var(--pine-color-border-danger)}.pds-combobox__input.pds-combobox__input--invalid:focus-visible{outline-color:var(--pine-color-focus-ring-danger)}.pds-combobox__input-icon{color:var(--pine-color-text-secondary);inset-inline-end:var(--pine-dimension-150);pointer-events:none;position:absolute;z-index:calc(var(--pine-z-index-raised) - 1)}.pds-combobox__helper{color:var(--pine-color-text-message);font:var(--pine-typography-body-sm-medium);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-combobox__error{-ms-flex-align:start;align-items:flex-start;color:var(--pine-color-text-message-danger);display:-ms-flexbox;display:flex;font:var(--pine-typography-body-sm-medium);gap:var(--pine-dimension-2xs);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-combobox__error pds-icon{-ms-flex-negative:0;flex-shrink:0;-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025)}.pds-combobox__listbox{background:var(--pine-color-background-overlay);border:0;border-radius:var(--pine-dimension-125);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);list-style:none;margin:0;min-width:220px;overflow-y:auto;padding:var(--pine-dimension-xs);position:absolute;z-index:var(--pine-z-index-raised)}.pds-combobox__option{-ms-flex-align:center;align-items:center;background:transparent;border-radius:var(--pine-dimension-125);color:var(--pine-color-text-secondary);cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;padding:var(--pine-dimension-xs) var(--pine-dimension-sm);position:relative;-webkit-transition:background 0.15s;transition:background 0.15s}.pds-combobox__option[aria-selected=true]{background:var(--pine-color-background-muted)}.pds-combobox__option:focus-visible{outline:0}.pds-combobox__option.pds-combobox__option--layout .pds-combobox__option-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__option.pds-combobox__option--chip .pds-combobox__option-chip{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__option:last-child{-webkit-margin-after:0;margin-block-end:0}.pds-combobox__option--highlighted,.pds-combobox__option[selected],.pds-combobox__option--selected{background:var(--pine-color-background-muted)}.pds-combobox__option-check{color:currentColor;font-size:var(--pine-dimension-150);-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__group-label{color:var(--pine-color-text-tertiary);cursor:default;font:var(--pine-typography-heading-caption);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs);-webkit-margin-before:var(--pine-dimension-150);margin-block-start:var(--pine-dimension-150);padding:var(--pine-dimension-2xs) var(--pine-dimension-sm);text-transform:uppercase}.pds-combobox__group-label:first-child{-webkit-margin-before:0;margin-block-start:0}.pds-combobox__loading{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-150)}.pds-combobox__empty{color:var(--pine-color-text-tertiary);padding:var(--pine-dimension-150) var(--pine-dimension-sm);text-align:center}.pds-combobox__load-more{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-150)}.pds-combobox__button-trigger{-ms-flex-align:center;align-items:center;background:var(--color-background-default, var(--pine-color-secondary));border:var(--pine-border);border-radius:var(--pine-border-radius-full);color:var(--color-text-default, var(--pine-color-text-inverse-emphasis));cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;min-height:var(--pine-dimension-450);outline:none;padding:0 var(--pine-dimension-sm);-webkit-transition:border-color 0.15s, background 0.15s, -webkit-box-shadow 0.15s;transition:border-color 0.15s, background 0.15s, -webkit-box-shadow 0.15s;transition:border-color 0.15s, box-shadow 0.15s, background 0.15s;transition:border-color 0.15s, box-shadow 0.15s, background 0.15s, -webkit-box-shadow 0.15s;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.pds-combobox__button-trigger .pds-combobox__button-trigger-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}.pds-combobox__button-trigger .trigger-content{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__button-trigger:focus-visible{border-color:var(--color-border-focus, var(--pine-color-border));-webkit-box-shadow:0 0 0 2px var(--color-outline, var(--pine-color-focus-ring));box-shadow:0 0 0 2px var(--color-outline, var(--pine-color-focus-ring))}.pds-combobox__button-trigger:hover{background:var(--color-background-hover, var(--pine-color-secondary-hover));border-color:var(--color-border-hover, var(--pine-color-border-hover))}.pds-combobox__button-trigger[aria-disabled=true],.pds-combobox__button-trigger:disabled{background:var(--color-background-disabled, var(--pine-color-secondary-disabled));border-color:var(--color-border-disabled, var(--pine-color-border-disabled));color:var(--color-text-disabled, var(--pine-color-text-secondary-disabled));cursor:not-allowed;opacity:0.6}.pds-combobox__button-trigger-label{color:inherit;-ms-flex:1 1 auto;flex:1 1 auto;text-align:start}.pds-combobox__button-trigger--input-shape{border-radius:var(--pine-dimension-125);min-height:var(--pine-dimension-500)}.pds-combobox__button-trigger-chevron{color:currentColor;-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__button-trigger--primary{--color-background-default:var(--pine-color-primary);--color-background-hover:var(--pine-color-primary-hover);--color-background-disabled:var(--pine-color-primary-disabled);--color-border-default:var(--pine-color-primary);--color-border-hover:var(--pine-color-primary-hover);--color-border-disabled:var(--pine-color-primary-disabled);--color-border-focus:var(--pine-color-primary);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-primary-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--accent{--color-background-default:var(--pine-color-accent);--color-background-hover:var(--pine-color-accent-hover);--color-background-disabled:var(--pine-color-accent-disabled);--color-border-default:var(--pine-color-accent);--color-border-hover:var(--pine-color-accent-hover);--color-border-disabled:var(--pine-color-accent-disabled);--color-border-focus:var(--pine-color-accent);--color-text-default:var(--pine-color-white);--color-text-disabled:var(--pine-color-text-accent-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--secondary{--color-background-default:var(--pine-color-secondary);--color-background-hover:var(--pine-color-secondary-hover);--color-background-disabled:var(--pine-color-secondary-disabled);--color-border-default:var(--pine-color-border);--color-border-hover:var(--pine-color-border-hover);--color-border-disabled:var(--pine-color-border-disabled);--color-border-focus:var(--pine-color-border);--color-text-default:var(--pine-color-text-secondary);--color-text-disabled:var(--pine-color-text-secondary-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--destructive{--color-background-default:var(--pine-color-danger);--color-background-hover:var(--pine-color-danger-hover);--color-background-disabled:var(--pine-color-danger-disabled);--color-border-default:var(--pine-color-danger);--color-border-hover:var(--pine-color-danger-hover);--color-border-disabled:var(--pine-color-danger-disabled);--color-border-focus:var(--pine-color-danger);--color-text-default:var(--pine-color-white);--color-text-disabled:var(--pine-color-text-danger-disabled);--color-outline:var(--pine-color-focus-ring-danger)}.visually-hidden{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}[data-layout]{border-radius:var(--pine-dimension-125);padding-block:var(--pine-dimension-xs)}.pds-combobox__chip-trigger{-ms-flex-align:center;align-items:center;border-radius:var(--pine-dimension-sm);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;outline:none;padding-block:var(--pine-dimension-025);padding-inline:var(--pine-dimension-150);-webkit-transition:all 0.15s ease;transition:all 0.15s ease;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.pds-combobox__chip-trigger .pds-combobox__chip-trigger-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}.pds-combobox__chip-trigger .trigger-content{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__chip-trigger:focus-visible{outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-combobox__chip-trigger[aria-disabled=true]{cursor:not-allowed;opacity:0.6}.pds-combobox__chip-trigger-label{color:inherit;-ms-flex:1 1 auto;flex:1 1 auto;text-align:start}.pds-combobox__chip-trigger-chevron{color:currentColor;-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__chip-trigger-icon{-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs)}.pds-combobox__chip-trigger--neutral,.pds-combobox__chip-trigger--accent,.pds-combobox__chip-trigger--success,.pds-combobox__chip-trigger--warning,.pds-combobox__chip-trigger--danger,.pds-combobox__chip-trigger--info{background:var(--chip-bg);border:var(--pine-border-width) solid var(--chip-border);color:var(--chip-text)}.pds-combobox__chip-trigger--neutral:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--accent:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--success:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--warning:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--danger:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--info:hover:not([aria-disabled=true]){background:var(--chip-bg-hover)}.pds-combobox__chip-trigger--neutral:focus-visible,.pds-combobox__chip-trigger--accent:focus-visible,.pds-combobox__chip-trigger--success:focus-visible,.pds-combobox__chip-trigger--warning:focus-visible,.pds-combobox__chip-trigger--danger:focus-visible,.pds-combobox__chip-trigger--info:focus-visible{border-color:var(--chip-border)}.pds-combobox__chip-trigger--neutral{--chip-bg:var(--pine-chip-color-neutral);--chip-bg-hover:var(--pine-chip-color-neutral-hover);--chip-border:var(--pine-chip-color-neutral-hover);--chip-text:var(--pine-color-text-neutral)}.pds-combobox__chip-trigger--accent{--chip-bg:var(--pine-chip-color-accent);--chip-bg-hover:var(--pine-chip-color-accent-hover);--chip-border:var(--pine-chip-color-accent-hover);--chip-text:var(--pine-color-text-accent)}.pds-combobox__chip-trigger--success{--chip-bg:var(--pine-chip-color-success);--chip-bg-hover:var(--pine-chip-color-success-hover);--chip-border:var(--pine-chip-color-success-hover);--chip-text:var(--pine-color-text-success)}.pds-combobox__chip-trigger--warning{--chip-bg:var(--pine-chip-color-warning);--chip-bg-hover:var(--pine-chip-color-warning-hover);--chip-border:var(--pine-chip-color-warning-hover);--chip-text:var(--pine-color-text-warning)}.pds-combobox__chip-trigger--danger{--chip-bg:var(--pine-chip-color-danger);--chip-bg-hover:var(--pine-chip-color-danger-hover);--chip-border:var(--pine-chip-color-danger-hover);--chip-text:var(--pine-color-text-danger)}.pds-combobox__chip-trigger--info{--chip-bg:var(--pine-chip-color-info);--chip-bg-hover:var(--pine-chip-color-info-hover);--chip-border:var(--pine-chip-color-info-hover);--chip-text:var(--pine-color-text-info)}.pds-combobox__chip-trigger--brand{background:-webkit-gradient(linear, left top, right top, from(#FF3E14), to(#6B62F2));background:linear-gradient(90deg, #FF3E14 0%, #6B62F2 100%);border:0;color:var(--pine-color-text-neutral);padding:1px;position:relative}.pds-combobox__chip-trigger--brand .pds-combobox__chip-trigger-label{background:rgba(255, 255, 255, 0.9);border-radius:calc(var(--pine-dimension-sm) - 1px);color:var(--pine-color-text-neutral);font-weight:var(--pine-font-weight-medium);padding:var(--pine-dimension-025) var(--pine-dimension-150);position:relative;z-index:1}.pds-combobox__chip-trigger--brand .pds-combobox__chip-trigger-chevron{position:relative;z-index:1}.pds-combobox__chip-trigger--brand:hover:not([aria-disabled=true]) .pds-combobox__chip-trigger-label{background:rgba(255, 255, 255, 0.8)}.pds-combobox__chip-trigger--dropdown:not(.pds-combobox__chip-trigger--brand){padding:var(--pine-dimension-none)}.pds-combobox__chip-trigger--dropdown:not(.pds-combobox__chip-trigger--brand) .pds-combobox__chip-trigger-label{padding:var(--pine-dimension-025) var(--pine-dimension-150)}.pds-combobox__chip-trigger--large .pds-combobox__chip-trigger-label{font-family:var(--pine-font-family-heading);font-size:var(--pine-font-size-heading-6);font-weight:var(--pine-font-weight-medium);letter-spacing:var(--pine-letter-spacing-heading-6)}.pds-combobox__chip-trigger--dot .pds-combobox__chip-trigger-label::before{border:var(--pine-border-width) solid transparent;border-radius:var(--pine-border-radius-full);content:"";display:inline-block;height:var(--pine-dimension-2xs);-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs);width:var(--pine-dimension-2xs)}'};var ye=e("pds_combobox",function(){function e(e){var r=this;i(this,e);this.pdsComboboxChange=t(this,"pdsComboboxChange");this.pdsComboboxSearch=t(this,"pdsComboboxSearch");this.pdsComboboxLoadOptions=t(this,"pdsComboboxLoadOptions");this.customOptionLayouts=false;this.customTriggerContent=false;this.disabled=false;this.dropdownPlacement="bottom-start";this.dropdownWidth="236px";this.dropdownMount="host";this.hideLabel=false;this.mode="filter";this.trigger="input";this.triggerWidth="fit-content";this.triggerVariant="secondary";this.triggerShape="pill";this.chipSentiment="neutral";this.chipLarge=false;this.chipDot=false;this.value="";this.asyncMethod="GET";this.debounce=300;this.fetchTimeout=3e4;this.loading=false;this.displayText="";this.filteredItems=[];this.highlightedIndex=-1;this.isOpen=false;this.selectedOption=null;this.selectedOptionLayoutContent="";this.selectedOptionChipProps=null;this.internalOptions=[];this.currentPage=1;this.hasMore=false;this.optionEls=[];this.allItems=[];this.portalEl=null;this.bodyPortalAutoUpdateActive=false;this.isUpdatingFromSelection=false;this.expandFilterListWhileOpen=false;this.handleInput=function(e){var i=e.target;r.clearExpandFilterList();r.displayText=i.value;r.isOpen=true;r.filterOptions();r.pdsComboboxSearch.emit({query:r.displayText});if(r.asyncUrl){r.debouncedFetchAsyncOptions(r.displayText,1)}setTimeout((function(){return r.openDropdownPositioning()}),0)};this.handleInputClick=function(){if(!r.isOpen){r.isOpen=true;r.prepareExpandFilterListOnOpen();r.filterOptions();if(r.asyncUrl&&r.internalOptions.length===0){r.debouncedFetchAsyncOptions(r.displayText,1)}r.setInitialHighlightedIndex();setTimeout((function(){r.openDropdownPositioning();if(r.trigger==="input"&&r.expandFilterListWhileOpen&&r.inputEl){r.inputEl.select()}}),0)}};this.handleKeyDown=function(e){if(!r.isOpen&&(e.key==="ArrowDown"||e.key==="ArrowUp"||e.altKey&&e.key==="ArrowDown")){e.preventDefault();r.isOpen=true;r.prepareExpandFilterListOnOpen();r.filterOptions();r.setInitialHighlightedIndex();setTimeout((function(){r.openDropdownPositioning();if(r.trigger==="input"){r.focusFirstOption()}else{r.focusFirstOptionForArrowKeys()}}),0);return}if(!r.isOpen){return}var i=r.filteredItems.filter((function(e){return e.tagName==="OPTION"}));switch(e.key){case"ArrowDown":e.preventDefault();if(r.highlightedIndex<0&&i.length>0){r.highlightedIndex=0}else{r.highlightedIndex=Math.min(r.highlightedIndex+1,i.length-1)}r.updateOptionFocus();break;case"ArrowUp":e.preventDefault();if(r.highlightedIndex<0&&i.length>0){r.highlightedIndex=i.length-1}else{r.highlightedIndex=Math.max(r.highlightedIndex-1,0)}r.updateOptionFocus();break;case"Home":e.preventDefault();if(i.length>0){r.highlightedIndex=0;r.updateOptionFocus()}break;case"End":e.preventDefault();if(i.length>0){r.highlightedIndex=i.length-1;r.updateOptionFocus()}break;case"PageDown":e.preventDefault();if(i.length>0){var t=Math.min(r.highlightedIndex+10,i.length-1);r.highlightedIndex=t;r.updateOptionFocus()}break;case"PageUp":e.preventDefault();if(i.length>0){var o=Math.max(r.highlightedIndex-10,0);r.highlightedIndex=o;r.updateOptionFocus()}break;case"Enter":e.preventDefault();if(r.highlightedIndex>=0&&r.highlightedIndex<i.length){r.handleOptionClick(i[r.highlightedIndex]);r.restoreFocusToTrigger()}break;case" ":e.preventDefault();if(r.highlightedIndex>=0&&r.highlightedIndex<i.length){r.handleOptionClick(i[r.highlightedIndex]);r.restoreFocusToTrigger()}break;case"Escape":e.preventDefault();r.isOpen=false;r.highlightedIndex=-1;r.clearExpandFilterList();r.isArrowKeyNavigationMode=false;r.restoreFocusToTrigger();break;case"Tab":r.isOpen=false;r.highlightedIndex=-1;r.clearExpandFilterList();r.isArrowKeyNavigationMode=false;break}};this.isArrowKeyNavigationMode=false;this.onOptionClick=function(e){var i=Number(e.currentTarget.getAttribute("data-option-index"));var t=r.filteredItems.filter((function(e){return e.tagName==="OPTION"}));var o=t[i];r.handleOptionClick(o)};this.onOptionMouseEnter=function(e){var i=Number(e.currentTarget.getAttribute("data-option-index"));r.highlightedIndex=i};this.onOptionMouseDown=function(e){e.preventDefault()};this.onOptionKeyDown=function(e){r.handleKeyDown(e)};this.onButtonTriggerClick=function(){r.isOpen=!r.isOpen;if(r.isOpen){r.prepareExpandFilterListOnOpen();r.filterOptions();if(r.asyncUrl&&r.internalOptions.length===0){r.debouncedFetchAsyncOptions(r.displayText,1)}r.setInitialHighlightedIndex();r.isArrowKeyNavigationMode=true;setTimeout((function(){return r.openDropdownPositioning()}),0)}else{r.clearExpandFilterList();r.isArrowKeyNavigationMode=false}};this.onButtonTriggerKeyDown=function(e){if((e.key==="Enter"||e.key===" "||e.key==="ArrowDown"||e.key==="ArrowUp")&&!r.isOpen){e.preventDefault();e.stopPropagation();r.isOpen=true;r.prepareExpandFilterListOnOpen();r.filterOptions();r.setInitialHighlightedIndex();setTimeout((function(){r.openDropdownPositioning();r.focusFirstOptionForArrowKeys()}),0)}else if(e.key==="Escape"){e.preventDefault();if(r.isOpen){r.isOpen=false;r.highlightedIndex=-1;r.clearExpandFilterList();r.updateAriaActiveDescendant();r.restoreFocusToTrigger()}}else if(r.isOpen){r.handleKeyDown(e)}};this.onButtonTriggerKeyUp=function(e){if(e.key===" "){e.preventDefault();e.stopPropagation()}};this.onComboboxFocusOut=function(e){var i,t;var o=e.relatedTarget;var n=o&&(((i=r.listboxEl)===null||i===void 0?void 0:i.contains(o))||((t=r.portalEl)===null||t===void 0?void 0:t.contains(o)));var a=r.el.contains(o);if(!a&&!n){r.isOpen=false;r.highlightedIndex=-1;r.clearExpandFilterList();r.isArrowKeyNavigationMode=false;r.updateAriaActiveDescendant();if(r.selectedOption&&r.displayText!==r.getOptionLabel(r.selectedOption)){r.displayText=r.getOptionLabel(r.selectedOption)}}};this.handleScroll=function(e){if(!r.asyncUrl||!r.hasMore||r.loading)return;var i=e.target;var t=i.scrollHeight-i.scrollTop-i.clientHeight;if(t<50){r.pdsComboboxLoadOptions.emit({query:r.displayText,page:r.currentPage+1});r.debouncedFetchAsyncOptions(r.displayText,r.currentPage+1)}}}e.prototype.connectedCallback=function(){if(this.el.attachInternals&&!this.internals){this.internals=this.el.attachInternals()}};e.prototype.componentWillLoad=function(){this.originalSearchEmitter=this.pdsComboboxSearch;this.updateOptions()};e.prototype.componentDidLoad=function(){var e=this;var i,t,r;this.setupDebounce();if(!this.selectedOption&&this.value&&this.optionEls.length>0){var o=this.optionEls.find((function(i){return i.value===e.value}));if(o){this.setSelectedOption(o);this.displayText=this.getOptionLabel(o)}}this.updateFormValue((r=(t=(i=this.selectedOption)===null||i===void 0?void 0:i.value)!==null&&t!==void 0?t:this.value)!==null&&r!==void 0?r:"")};e.prototype.disconnectedCallback=function(){var e;if(this.deferredPortalTeardownId!==undefined){clearTimeout(this.deferredPortalTeardownId);this.deferredPortalTeardownId=undefined}(e=this.observer)===null||e===void 0?void 0:e.disconnect();this.clearAsyncFetchState();this.removeBodyPortal()};e.prototype.componentDidRender=function(){if(this.usesBodyPortal&&this.isOpen){this.syncBodyPortal()}};e.prototype.isOpenChanged=function(e){var i=this;if(e&&this.deferredPortalTeardownId!==undefined){clearTimeout(this.deferredPortalTeardownId);this.deferredPortalTeardownId=undefined}if(e&&this.usesBodyPortal){this.removeBodyPortal()}if(!e&&this.usesBodyPortal){if(this.deferredPortalTeardownId!==undefined){clearTimeout(this.deferredPortalTeardownId)}this.deferredPortalTeardownId=setTimeout((function(){i.deferredPortalTeardownId=undefined;if(!i.el.isConnected){return}if(!i.isOpen){i.removeBodyPortal()}}),0);return}if(!e){this.removeBodyPortal()}};Object.defineProperty(e.prototype,"usesBodyPortal",{get:function(){return this.dropdownMount==="body"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"listboxId",{get:function(){return"".concat(this.componentId,"-listbox")},enumerable:false,configurable:true});e.prototype.optionDomId=function(e){return"".concat(this.componentId,"-option-").concat(e)};e.prototype.setupDebounce=function(){var e=this,i=e.pdsComboboxSearch,t=e.debounce,r=e.originalSearchEmitter;this.pdsComboboxSearch=t===undefined?r!==null&&r!==void 0?r:i:h(i,t)};e.prototype.optionsChanged=function(){if(this.options){this.internalOptions=__spreadArray([],this.options,true);this.updateOptionsFromAsync()}};e.prototype.handleValueChange=function(){var e=this;this.filterOptions();this.updateFormValue(this.value);if(!this.isUpdatingFromSelection&&this.value&&this.optionEls.length>0){var i=this.selectedOption?this.selectedOption.value:null;if(this.value!==i){var t=this.optionEls.find((function(i){return i.value===e.value}));if(t){this.isUpdatingFromSelection=true;this.setSelectedOption(t);this.displayText=this.getOptionLabel(t);this.isUpdatingFromSelection=false}}}};e.prototype.handleSelectedOptionChange=function(){this.selectedOptionLayoutContent=this.selectedOption&&this.isOptionLayout(this.selectedOption)?this.getOptionLayoutContent(this.selectedOption):"";this.selectedOptionChipProps=this.selectedOption&&this.isOptionChip(this.selectedOption)?this.getOptionChipProps(this.selectedOption):null;if(this.selectedOption){this.displayText=this.getOptionLabel(this.selectedOption);this.value=this.selectedOption.value;this.updateFormValue(this.selectedOption.value)}else{this.displayText="";this.value="";this.updateFormValue("")}};e.prototype.updateFormValue=function(e){if(a())return;if(this.internals&&this.internals.setFormValue){this.internals.setFormValue(e)}};e.prototype.clearAsyncFetchState=function(){var e;if(this.fetchDebounceTimer!==undefined){window.clearTimeout(this.fetchDebounceTimer);this.fetchDebounceTimer=undefined}if(this.fetchTimeoutTimer!==undefined){window.clearTimeout(this.fetchTimeoutTimer);this.fetchTimeoutTimer=undefined}(e=this.abortController)===null||e===void 0?void 0:e.abort();this.abortController=undefined};e.prototype.debouncedFetchAsyncOptions=function(e,i){var t=this;if(i===void 0){i=1}var r;if(!this.asyncUrl)return;if(this.fetchDebounceTimer!==undefined){window.clearTimeout(this.fetchDebounceTimer)}var o=Math.max(0,(r=this.debounce)!==null&&r!==void 0?r:0);this.fetchDebounceTimer=window.setTimeout((function(){t.fetchDebounceTimer=undefined;t.fetchOptions(e,i)}),o)};e.prototype.fetchOptions=function(e){return __awaiter(this,arguments,void 0,(function(e,i){var t,r,o,n,a,s;var l=this;if(i===void 0){i=1}return __generator(this,(function(c){switch(c.label){case 0:if(!this.asyncUrl)return[2];(t=this.abortController)===null||t===void 0?void 0:t.abort();if(this.fetchTimeoutTimer!==undefined){window.clearTimeout(this.fetchTimeoutTimer);this.fetchTimeoutTimer=undefined}this.abortController=new AbortController;this.loading=true;this.fetchTimeoutTimer=window.setTimeout((function(){var e;(e=l.abortController)===null||e===void 0?void 0:e.abort();l.fetchTimeoutTimer=undefined}),this.fetchTimeout);c.label=1;case 1:c.trys.push([1,4,5,6]);r=void 0;try{r=new URL(this.asyncUrl,window.location.origin)}catch(e){throw new TypeError("Invalid asyncUrl: ".concat(this.asyncUrl))}if(this.asyncMethod==="GET"){r.searchParams.set("search",e);r.searchParams.set("page",String(i))}return[4,fetch(r.toString(),Object.assign({method:this.asyncMethod,signal:this.abortController.signal,headers:{"Content-Type":"application/json",Accept:"application/json"}},this.asyncMethod==="POST"&&{body:JSON.stringify({search:e,page:i})}))];case 2:o=c.sent();if(this.fetchTimeoutTimer!==undefined){window.clearTimeout(this.fetchTimeoutTimer);this.fetchTimeoutTimer=undefined}if(!o.ok)throw new Error("Failed to fetch options");return[4,o.json()];case 3:n=c.sent();a=n.results.map((function(e){if(l.formatResult){return l.formatResult(e)}if(typeof e==="object"&&e!==null){return Object.assign({id:e.id,text:e.text},e)}return{id:String(e),text:String(e)}}));if(i===1){this.internalOptions=a}else{this.internalOptions=__spreadArray(__spreadArray([],this.internalOptions,true),a,true)}this.hasMore=n.totalCount?this.internalOptions.length<n.totalCount:false;this.currentPage=i;this.updateOptionsFromAsync();return[3,6];case 4:s=c.sent();if(this.fetchTimeoutTimer!==undefined){window.clearTimeout(this.fetchTimeoutTimer);this.fetchTimeoutTimer=undefined}if(s.name!=="AbortError"){console.error("PdsCombobox: Failed to fetch options",s)}return[3,6];case 5:this.loading=false;return[7];case 6:return[2]}}))}))};e.prototype.updateOptionsFromAsync=function(){var e=this;if(!this.asyncUrl&&!this.options)return;this.optionEls=[];this.allItems=[];var i=this.options||this.internalOptions;i.forEach((function(i){var t=document.createElement("option");t.value=String(i.id);t.textContent=i.text;e.optionEls.push(t);e.allItems.push(t)}));if(this.value&&!this.selectedOption){var t=this.optionEls.find((function(i){return i.value===e.value}));if(t){this.setSelectedOption(t)}}this.filterOptions()};e.prototype.updateOptions=function(){var e=this;var i;if(this.asyncUrl||this.options){this.updateOptionsFromAsync();return}var t=(i=this.el.shadowRoot)===null||i===void 0?void 0:i.querySelector('slot[name="option"], slot:not([name])');if(t){var r=t.assignedElements({flatten:true});this.allItems=[];this.optionEls=[];r.forEach((function(i){if(i.tagName==="OPTION"){e.optionEls.push(i);e.allItems.push(i)}else if(i.tagName==="OPTGROUP"){var t=i;e.allItems.push(t);Array.from(t.children).forEach((function(i){if(i.tagName==="OPTION"){e.optionEls.push(i);e.allItems.push(i)}}))}else if(i.tagName==="PDS-TEXT"){e.allItems.push(i)}}));var o=null;if(this.value){o=this.optionEls.find((function(i){return i.value===e.value}))||null;if(o){this.displayText=this.getOptionLabel(o)}}if(!o&&this.trigger==="chip"&&this.optionEls.length>0){o=this.optionEls[0];this.value=o.value;this.displayText=this.getOptionLabel(o);console.warn("PDS Combobox: Chip triggers should always have a selected option. Automatically selected the first option.")}if(o&&o!==this.selectedOption){this.setSelectedOption(o)}else if(!this.selectedOption&&o){this.setSelectedOption(o)}this.filterOptions()}};e.prototype.getOptionLabel=function(e){return e.label||e.textContent||""};e.prototype.getOptionLayoutContent=function(e){return this.sanitizeHtml(e.innerHTML||"")};e.prototype.sanitizeHtml=function(e){var i={CUSTOM_ELEMENT_HANDLING:{tagNameCheck:function(e){return e.startsWith("pds-")||/^[a-z]+$/i.test(e)},attributeNameCheck:function(e){return/^[a-zA-Z][a-zA-Z0-9-]*$/.test(e)||e.startsWith("data-")||e.startsWith("aria-")},allowCustomizedBuiltInElements:false},ALLOW_DATA_ATTR:true,ALLOW_ARIA_ATTR:true,FORBID_TAGS:["script","iframe","object","embed","form","input","textarea","select","button","style"],FORBID_ATTR:["onerror","onload","onclick","onmouseover","onmouseout","onmousemove","onfocus","onblur","onchange","onsubmit","onkeydown","onkeyup","onkeypress","onmousedown","onmouseup","ondblclick","oncontextmenu","onscroll"],ALLOWED_URI_REGEXP:/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp|data):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i};return xe.sanitize(e,i)};e.prototype.isOptionLayout=function(e){return this.customOptionLayouts&&e.hasAttribute("data-layout")};e.prototype.isOptionChip=function(e){return e.hasAttribute("chip-sentiment")||e.hasAttribute("chip-large")||e.hasAttribute("chip-icon")||e.hasAttribute("chip-dot")};e.prototype.getOptionChipProps=function(e){return{sentiment:e.getAttribute("chip-sentiment")||"neutral",large:e.hasAttribute("chip-large"),icon:e.getAttribute("chip-icon")||undefined,dot:e.hasAttribute("chip-dot")}};e.prototype.isOptionSelected=function(e){return this.selectedOption===e};e.prototype.setSelectedOption=function(e){this.selectedOption=e;if(e&&this.isOptionChip(e)){this.selectedOptionChipProps=this.getOptionChipProps(e)}else{this.selectedOptionChipProps=null}};e.prototype.filterOptions=function(){var e=this;if(this.allItems.length===0&&this.optionEls.length>0){this.allItems=__spreadArray([],this.optionEls,true)}if(this.mode==="select-only"||this.expandFilterListWhileOpen){this.filteredItems=__spreadArray([],this.allItems,true)}else{var i=this.displayText.toLowerCase();var t=this.optionEls.filter((function(t){if(e.isOptionLayout(t)){var r=t.getAttribute("data-search-text")||t.textContent||"";return r.toLowerCase().includes(i)}return e.getOptionLabel(t).toLowerCase().includes(i)}));this.filteredItems=[];var r=null;this.allItems.forEach((function(i){if(i.tagName==="OPTGROUP"||i.tagName==="PDS-TEXT"){r=i}else if(i.tagName==="OPTION"&&t.includes(i)){var o=i;var n=o.parentElement;var a=null;if(n&&n.tagName==="OPTGROUP"){a=n}else if(r&&r.tagName==="PDS-TEXT"){a=r}if(a&&!e.filteredItems.includes(a)){e.filteredItems.push(a)}e.filteredItems.push(o)}}))}this.highlightedIndex=-1};e.prototype.clearExpandFilterList=function(){this.expandFilterListWhileOpen=false};e.prototype.prepareExpandFilterListOnOpen=function(){if(this.mode==="filter"&&this.selectedOption&&this.displayText===this.getOptionLabel(this.selectedOption)){this.expandFilterListWhileOpen=true}else{this.expandFilterListWhileOpen=false}};e.prototype.positionDropdown=function(){var e=this;if(!this.triggerEl||!this.listboxEl){return}var i=this.usesBodyPortal?"fixed":"absolute";var t=this.usesBodyPortal?"var(--pine-z-index-priority)":"var(--pine-z-index-raised)";this.listboxEl.style.width=this.dropdownWidth;if(this.maxHeight){this.listboxEl.style.maxHeight=this.maxHeight;this.listboxEl.style.overflowY="auto"}return c(this.triggerEl,this.listboxEl,{placement:this.dropdownPlacement,strategy:i,middleware:[u(12),p(),f({padding:5})]}).then((function(r){var o=r.x,n=r.y;if(!e.listboxEl){return}Object.assign(e.listboxEl.style,{left:"".concat(o,"px"),top:"".concat(n,"px"),position:i,zIndex:t})}))};e.prototype.openDropdownPositioning=function(){if(!this.triggerEl||!this.listboxEl){return}void this.positionDropdown()};e.prototype.startBodyPortalAutoUpdate=function(){var e=this;if(this.bodyPortalAutoUpdateActive||!this.triggerEl||!this.listboxEl){return}this.cleanupPositionAutoUpdate=d(this.triggerEl,this.listboxEl,(function(){void e.positionDropdown()}));this.bodyPortalAutoUpdateActive=true};e.prototype.stopBodyPortalAutoUpdate=function(){var e;(e=this.cleanupPositionAutoUpdate)===null||e===void 0?void 0:e.call(this);this.cleanupPositionAutoUpdate=undefined;this.bodyPortalAutoUpdateActive=false};e.prototype.getPortalMountRoot=function(){var e;return(e=this.findNearestDialogForPortal(this.el))!==null&&e!==void 0?e:document.body};e.prototype.findNearestDialogForPortal=function(e){var i=new Set;var t=e;while(t&&!i.has(t)){i.add(t);if(t.nodeType===Node.ELEMENT_NODE&&t.localName==="dialog"){return t}if(t.nodeType===Node.ELEMENT_NODE){var r=t.assignedSlot;if(r){t=r;continue}}var o=t.parentNode;if(o){t=o instanceof ShadowRoot?o.host:o;continue}break}var n=e.closest("pds-modal");if(n){var a=n.querySelector("dialog");if(a){return a}}return null};e.prototype.ensureBodyPortal=function(){if(this.portalEl!==null){var e=this.getPortalMountRoot();if(this.portalEl.parentElement!==e){e.appendChild(this.portalEl)}return this.portalEl}this.portalEl=document.createElement("div");this.portalEl.className="pds-combobox-dropdown-portal";this.getPortalMountRoot().appendChild(this.portalEl);return this.portalEl};e.prototype.syncBodyPortal=function(){if(!this.listboxEl){return}var e=this.ensureBodyPortal();for(var i=0,t=Array.from(e.children);i<t.length;i++){var r=t[i];if(r!==this.listboxEl){r.remove()}}if(this.listboxEl.parentElement!==e){e.appendChild(this.listboxEl);void this.positionDropdown();this.startBodyPortalAutoUpdate()}};e.prototype.removeBodyPortal=function(){var e;this.stopBodyPortalAutoUpdate();if((e=this.portalEl)===null||e===void 0?void 0:e.parentNode){this.portalEl.parentNode.removeChild(this.portalEl)}this.portalEl=null;if(this.listboxEl&&!this.listboxEl.isConnected){this.listboxEl=undefined}};e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){if(this.inputEl){this.inputEl.focus()}else{(e=this.triggerEl)===null||e===void 0?void 0:e.focus()}return[2]}))}))};e.prototype.setInitialHighlightedIndex=function(){var e=this;var i=this.filteredItems.filter((function(e){return e.tagName==="OPTION"}));if(i.length===0){this.highlightedIndex=-1;return}if(this.selectedOption){var t=i.findIndex((function(i){return i===e.selectedOption}));if(t>=0){this.highlightedIndex=t;return}}this.highlightedIndex=0};e.prototype.focusFirstOption=function(){if(this.isOpen){var e=this.filteredItems.filter((function(e){return e.tagName==="OPTION"}));if(e.length>0){this.setInitialHighlightedIndex();if(this.listboxEl){this.updateOptionFocus()}}}};e.prototype.focusFirstOptionForArrowKeys=function(){if(!this.isOpen){return}if(this.usesBodyPortal){this.isArrowKeyNavigationMode=true;this.focusFirstOption();return}this.isArrowKeyNavigationMode=true;var e=this.filteredItems.filter((function(e){return e.tagName==="OPTION"}));if(e.length>0){this.setInitialHighlightedIndex();if(this.listboxEl){var i=this.listboxEl.querySelectorAll('[role="option"]');var t=i[this.highlightedIndex];if(t){i.forEach((function(e){e.setAttribute("tabindex","-1")}));t.setAttribute("tabindex","0");t.focus();t.scrollIntoView({block:"nearest",behavior:"smooth"})}}this.updateAriaActiveDescendant()}};e.prototype.updateOptionFocus=function(){if(!this.listboxEl||this.highlightedIndex<0)return;var e=this.listboxEl.querySelectorAll('[role="option"]');var i=e[this.highlightedIndex];if(i){var t=Array.from(e).some((function(e){return e===document.activeElement}));var r=!this.usesBodyPortal&&(t||this.isArrowKeyNavigationMode);if(r){e.forEach((function(e){e.setAttribute("tabindex","-1")}));i.setAttribute("tabindex","0");i.focus()}i.scrollIntoView({block:"nearest",behavior:"smooth"})}this.updateAriaActiveDescendant()};e.prototype.updateAriaActiveDescendant=function(){if(this.triggerEl&&this.highlightedIndex>=0){this.triggerEl.setAttribute("aria-activedescendant",this.optionDomId(this.highlightedIndex))}else if(this.triggerEl){this.triggerEl.removeAttribute("aria-activedescendant")}};e.prototype.restoreFocusToTrigger=function(){var e=this;setTimeout((function(){if(e.inputEl){e.inputEl.focus()}else if(e.triggerEl){e.triggerEl.focus()}}),0)};e.prototype.getSelectedValue=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.selectedOption?this.selectedOption.value:null]}))}))};e.prototype.clear=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){e=this.value!==""||this.displayText!=="";this.displayText="";this.setSelectedOption(null);this.value="";this.filterOptions();this.updateFormValue("");if(e){this.pdsComboboxChange.emit({value:""})}return[2]}))}))};Object.defineProperty(e.prototype,"selectedLabel",{get:function(){return this.displayText||""},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"selectedLayoutContent",{get:function(){return this.selectedOptionLayoutContent},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"selectedHasLayout",{get:function(){return this.selectedOption?this.isOptionLayout(this.selectedOption):false},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"selectedChipSentiment",{get:function(){if(this.selectedOption&&this.isOptionChip(this.selectedOption)){var e=this.selectedOption.getAttribute("chip-sentiment");if(e)return e}if(this.selectedOption&&this.isOptionLayout(this.selectedOption)){var i=this.selectedOption.querySelector("pds-chip");var e=i===null||i===void 0?void 0:i.getAttribute("sentiment");if(e)return e}if(this.customTriggerContent){var t=this.el.querySelector('pds-chip[slot="trigger-content"]');if(t){var e=t.getAttribute("sentiment");if(e)return e}}return this.chipSentiment},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"selectedChipLarge",{get:function(){if(this.selectedOption&&this.isOptionChip(this.selectedOption)){if(this.selectedOption.hasAttribute("chip-large"))return true}if(this.selectedOption&&this.isOptionLayout(this.selectedOption)){var e=this.selectedOption.querySelector("pds-chip");if((e===null||e===void 0?void 0:e.getAttribute("size"))==="lg")return true}if(this.customTriggerContent){var i=this.el.querySelector('pds-chip[slot="trigger-content"]');if(i&&i.getAttribute("size")==="lg"){return true}}return this.chipLarge},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"selectedChipIcon",{get:function(){if(this.selectedOption&&this.isOptionChip(this.selectedOption)){var e=this.selectedOption.getAttribute("chip-icon");if(e)return e}if(this.selectedOption&&this.isOptionLayout(this.selectedOption)){var i=this.selectedOption.querySelector("pds-chip");var e=i===null||i===void 0?void 0:i.getAttribute("icon");if(e)return e}if(this.customTriggerContent){var t=this.el.querySelector('pds-chip[slot="trigger-content"]');if(t){var e=t.getAttribute("icon");if(e)return e}}return this.chipIcon},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"selectedChipDot",{get:function(){if(this.selectedOption&&this.isOptionChip(this.selectedOption)){if(this.selectedOption.hasAttribute("chip-dot"))return true}if(this.selectedOption&&this.isOptionLayout(this.selectedOption)){var e=this.selectedOption.querySelector("pds-chip");if(e===null||e===void 0?void 0:e.hasAttribute("dot"))return true}if(this.customTriggerContent){var i=this.el.querySelector('pds-chip[slot="trigger-content"]');if(i&&i.hasAttribute("dot")){return true}}return this.chipDot},enumerable:false,configurable:true});e.prototype.handleOptionClick=function(e){this.setSelectedOption(e);this.isOpen=false;this.clearExpandFilterList();this.pdsComboboxChange.emit({value:e.value})};e.prototype.renderDropdown=function(){var e=this;if(!this.isOpen){return null}var i=!this.usesBodyPortal&&!!this.el.querySelector('[slot="empty"]');var t=!this.usesBodyPortal&&!!this.el.querySelector('[slot="loading"]');var o=0;var n=this.filteredItems.filter((function(e){return e.tagName==="OPTION"}));return r("ul",{class:"pds-combobox__listbox",role:"listbox",id:this.listboxId,"aria-label":this.label||"Options","aria-multiselectable":"false",ref:function(i){return e.listboxEl=i},onScroll:this.handleScroll},this.loading&&r("li",{class:"pds-combobox__loading",role:"presentation"},t?r("slot",{name:"loading"}):r("pds-loader",{size:"small"})),!this.loading&&this.filteredItems.length===0&&r("li",{class:"pds-combobox__empty",role:"presentation"},i?r("slot",{name:"empty"}):r("span",null,"No options found")),this.filteredItems.map((function(i,t){if(i.tagName==="OPTGROUP"){var a=i;return r("li",{key:"optgroup-".concat(t),class:"pds-combobox__group-label",role:"presentation","aria-label":a.label},a.label)}else if(i.tagName==="PDS-TEXT"){var s=i;return r("li",{key:"pds-text-".concat(t),class:"pds-combobox__group-label",role:"presentation"},s.textContent)}else if(i.tagName==="OPTION"){var l=i;var c=e.isOptionSelected(l);var d=e.highlightedIndex===o;var u=e.isOptionLayout(l);var p=e.isOptionChip(l);var f=o++;return r("li",{key:l.value,id:e.optionDomId(f),role:"option","aria-selected":c?"true":"false","aria-setsize":n.length,"aria-posinset":f+1,"aria-label":u||p?l.getAttribute("aria-label")||e.getOptionLabel(l):undefined,tabindex:e.usesBodyPortal?"-1":d?"0":"-1",class:{"pds-combobox__option":true,"pds-combobox__option--highlighted":d,"pds-combobox__option--layout":u,"pds-combobox__option--chip":p},"data-option-index":f,onMouseDown:e.onOptionMouseDown,onClick:e.onOptionClick,onMouseEnter:e.onOptionMouseEnter,onKeyDown:e.onOptionKeyDown},u?r("pds-box",{class:"pds-combobox__option-layout-wrapper",innerHTML:e.getOptionLayoutContent(l)}):p?e.renderOptionChip(l):e.getOptionLabel(l),c&&r("pds-icon",{icon:"check",size:"regular",class:"pds-combobox__option-check"}))}return null})),this.hasMore&&!this.loading&&r("li",{class:"pds-combobox__load-more",role:"presentation"},r("pds-loader",{size:"small"})))};e.prototype.renderCaretIcon=function(){return r("pds-icon",{icon:"caret-down","aria-hidden":"true",class:"pds-combobox__button-trigger-chevron"})};e.prototype.renderLayoutContent=function(){return r("div",{class:"pds-combobox__button-trigger-layout-wrapper",innerHTML:this.selectedLayoutContent})};e.prototype.renderDefaultContent=function(){return r("span",{class:"pds-combobox__button-trigger-label"},this.selectedLabel||this.placeholder)};e.prototype.shouldShowLayoutContent=function(){return this.selectedHasLayout&&!!this.selectedLayoutContent};e.prototype.getChipTriggerClass=function(){var e=["pds-combobox__chip-trigger"];e.push("pds-combobox__chip-trigger--".concat(this.selectedChipSentiment));e.push("pds-combobox__chip-trigger--dropdown");if(this.selectedChipLarge){e.push("pds-combobox__chip-trigger--large")}if(this.selectedChipDot){e.push("pds-combobox__chip-trigger--dot")}return e.join(" ")};e.prototype.renderButtonTriggerContent=function(){if(this.customTriggerContent){if(this.shouldShowLayoutContent()){return[this.renderLayoutContent(),this.renderCaretIcon()]}return r("slot",{name:"trigger-content"})}if(this.shouldShowLayoutContent()){return[this.renderLayoutContent(),this.renderCaretIcon()]}return[this.renderDefaultContent(),this.renderCaretIcon()]};e.prototype.renderChipTriggerContent=function(){if(this.customTriggerContent){if(this.shouldShowLayoutContent()){return this.renderChipTriggerLayoutContent()}return r("slot",{name:"trigger-content"})}if(this.shouldShowLayoutContent()){return this.renderChipTriggerLayoutContent()}if(this.selectedOption&&this.selectedOptionChipProps){return this.renderSelectedOptionAsChip()}return[this.renderChipTriggerDefaultContent(),this.renderCaretIcon()]};e.prototype.renderSelectedOptionAsChip=function(){if(!this.selectedOption||!this.selectedOptionChipProps)return null;return r("pds-chip",{sentiment:this.selectedOptionChipProps.sentiment,variant:"dropdown",size:this.selectedOptionChipProps.large?"lg":undefined,icon:this.selectedOptionChipProps.icon,dot:this.selectedOptionChipProps.dot,class:"pds-combobox__chip-trigger-auto"},this.getOptionLabel(this.selectedOption))};e.prototype.renderChipTriggerLayoutContent=function(){return r("div",{class:"pds-combobox__chip-trigger-layout-wrapper",innerHTML:this.getModifiedLayoutContentForTrigger()})};e.prototype.getModifiedLayoutContentForTrigger=function(){var e=this.selectedLayoutContent;if(e.includes("<pds-chip")){var i=document.createElement("div");i.innerHTML=e;var t=i.querySelector("pds-chip");if(t){t.setAttribute("variant","dropdown");e=i.innerHTML}}return e};e.prototype.renderChipTriggerDefaultContent=function(){return r("span",{class:"pds-combobox__chip-trigger-label"},this.selectedChipIcon&&r("pds-icon",{icon:this.selectedChipIcon,class:"pds-combobox__chip-trigger-icon"}),this.selectedLabel||this.placeholder)};e.prototype.renderOptionChip=function(e){var i=this.getOptionChipProps(e);return r("pds-chip",{sentiment:i.sentiment,variant:"text",size:i.large?"lg":undefined,icon:i.icon,dot:i.dot,class:"pds-combobox__option-chip"},this.getOptionLabel(e))};e.prototype.isInvalid=function(){return Boolean(this.invalid)||Boolean(this.errorMessage)};e.prototype.renderMessages=function(){var e=Boolean(this.errorMessage);var i=Boolean(this.helperMessage)&&!e;return[i&&r("p",{class:"pds-combobox__helper",id:s(this.componentId,"helper")},this.helperMessage),e&&r("p",{class:"pds-combobox__error",id:s(this.componentId,"error"),"aria-live":"assertive"},r("pds-icon",{icon:"danger",size:"small","aria-hidden":"true"}),this.errorMessage)]};e.prototype.render=function(){var e=this;var i=["pds-combobox__button-trigger","pds-combobox__button-trigger--".concat(this.triggerVariant),this.triggerShape==="input"&&"pds-combobox__button-trigger--input-shape"].filter(Boolean).join(" ");return r(o,{key:"a39df3c86a29028344943bd3a2828d5e99106d77","aria-disabled":this.disabled?"true":null},r("div",{key:"32cdb8ce31f9d7c9eac8f995cd233fe6f4d9dfc3",class:"pds-combobox",tabIndex:-1,onFocusout:this.onComboboxFocusOut,part:"combobox"},this.label&&!this.hideLabel&&r("label",{key:"64ed7fe37082e2f895daae0090ae3dfac472e3c3",htmlFor:this.componentId,class:"pds-combobox__label"},this.label),this.trigger==="input"?r("div",{class:"pds-combobox__input-wrapper",style:{width:this.triggerWidth}},r("input",{ref:function(i){e.inputEl=i;e.triggerEl=i},class:{"pds-combobox__input":true,"pds-combobox__input--invalid":this.isInvalid()},type:"text",role:"combobox","aria-autocomplete":"list","aria-controls":this.listboxId,"aria-describedby":l(this.componentId,this.isInvalid(),this.helperMessage,this.errorMessage),"aria-invalid":this.isInvalid()?"true":undefined,"aria-activedescendant":this.isOpen&&this.highlightedIndex>=0?this.optionDomId(this.highlightedIndex):undefined,"aria-expanded":this.isOpen?"true":"false","aria-disabled":this.disabled?"true":"false","aria-label":this.hideLabel?this.label:undefined,id:this.componentId,value:this.displayText,placeholder:this.placeholder,disabled:this.disabled,onInput:this.handleInput,onClick:this.handleInputClick,onKeyDown:this.handleKeyDown,autocomplete:"off",part:"input"}),r("pds-icon",{icon:"enlarge","aria-hidden":"true",class:"pds-combobox__input-icon"})):this.trigger==="chip"?r("div",{class:this.getChipTriggerClass(),style:{width:this.triggerWidth},role:"combobox","aria-haspopup":"listbox","aria-controls":this.listboxId,"aria-describedby":l(this.componentId,this.isInvalid(),this.helperMessage,this.errorMessage),"aria-invalid":this.isInvalid()?"true":undefined,"aria-activedescendant":this.isOpen&&this.highlightedIndex>=0?this.optionDomId(this.highlightedIndex):undefined,"aria-expanded":this.isOpen?"true":"false","aria-disabled":this.disabled?"true":"false","aria-label":this.hideLabel?this.label:undefined,id:this.componentId,tabIndex:this.disabled?-1:0,onClick:this.onButtonTriggerClick,"data-layout":this.customTriggerContent,onKeyDown:this.onButtonTriggerKeyDown,onKeyUp:this.onButtonTriggerKeyUp,ref:function(i){return e.triggerEl=i},part:"chip-trigger"},this.renderChipTriggerContent()):r("div",{class:i,style:{width:this.triggerWidth},role:"combobox","aria-haspopup":"listbox","aria-controls":this.listboxId,"aria-describedby":l(this.componentId,this.isInvalid(),this.helperMessage,this.errorMessage),"aria-invalid":this.isInvalid()?"true":undefined,"aria-activedescendant":this.isOpen&&this.highlightedIndex>=0?this.optionDomId(this.highlightedIndex):undefined,"aria-expanded":this.isOpen?"true":"false","aria-disabled":this.disabled?"true":"false","aria-label":this.hideLabel?this.label:undefined,id:this.componentId,tabIndex:this.disabled?-1:0,onClick:this.onButtonTriggerClick,"data-layout":this.customTriggerContent,onKeyDown:this.onButtonTriggerKeyDown,onKeyUp:this.onButtonTriggerKeyUp,ref:function(i){return e.triggerEl=i},part:"button-trigger"},this.renderButtonTriggerContent()),this.renderMessages(),r("div",{key:"48041c41a39987f2f4093bd048d6c495ea69514b",style:{display:"none"}},r("slot",{key:"5f4d95fefbd3dbdb33ecb25af593c9429df0e10b",onSlotchange:function(){return e.updateOptions()}})),this.renderDropdown()))};Object.defineProperty(e,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{isOpen:[{isOpenChanged:0}],debounce:[{setupDebounce:0}],options:[{optionsChanged:0}],value:[{handleValueChange:0}],selectedOption:[{handleSelectedOptionChange:0}]}},enumerable:false,configurable:true});return e}());ye.style=_e()}}}));
@@ -1 +0,0 @@
1
- System.register(["./p-DAIsVNlL.system.js"],(function(t){"use strict";var i,s,e;return{setters:[function(t){i=t.r;s=t.h;e=t.H}],execute:function(){var n=function(){return":host{--dimension-aspect-ratio:auto;display:inline-block}img{aspect-ratio:var(--dimension-aspect-ratio);display:block;height:auto;max-width:100%}"};var a=t("pds_image",function(){function t(t){i(this,t);this.alt="";this.loading="eager"}t.prototype.render=function(){return s(e,{key:"dbc144927d78e2eb380639eeb8b243133a4b5379",class:{"pds-image":true},id:this.componentId},s("img",{key:"259c1cd7ffdf4e5dd7c0ef178d28f1f835b57642",alt:this.alt,height:this.height,loading:this.loading,sizes:this.sizes,src:this.src,srcset:this.srcset,width:this.width}))};return t}());a.style=n()}}}));
@@ -1 +0,0 @@
1
- import{r,h as o,H as e}from"./p-CTLu1TM4.js";const d=class{constructor(o){r(this,o)}render(){return o(e,{key:"bd4c84fdefd61afbd4138488b04419d62021c1ad",role:"rowgroup",part:"body"},o("slot",{key:"a16c0cfc807969c005b743293144e4f7470fe851"}))}};d.style=":host{border-color:inherit;display:table-row-group;vertical-align:middle}";export{d as pds_table_body}
@@ -1 +0,0 @@
1
- System.register(["./p-DAIsVNlL.system.js","./p-BbXp4qBM.system.js"],(function(e){"use strict";var t,a,s,n,i;return{setters:[function(e){t=e.r;a=e.h;s=e.H;n=e.a},function(e){i=e.u}],execute:function(){var l=function(){return":host{display:block}:host(.pds-tabpanel--stretch-active){-ms-flex:1 1 auto;flex:1 1 auto;min-block-size:0}:host(.pds-tabpanel--stretch-active) .pds-tabpanel.is-active{block-size:100%}.pds-tabpanel{display:none;margin-top:var(--tabs-dimension-panel-margin-top);padding:var(--tabs-dimension-panel-padding)}.pds-tabpanel:focus-visible{outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-tabpanel.is-active{display:block}"};var d=e("pds_tabpanel",function(){function e(e){t(this,e);this.selected=false;this.stretch=false}e.prototype.componentDidRender=function(){i(this.el.querySelector(".pds-tabpanel"),".pds-tabpanel")};e.prototype.render=function(){return a(s,{key:"be561d592a9c7d2458987bcc09fe5d8d253bd2ba",slot:"tabpanels",class:this.stretch&&this.selected?"pds-tabpanel--stretch-active":undefined},a("div",{key:"98cb5eda73378d95519de8ce24c60f9263e89add",role:"tabpanel",id:this.parentComponentId+"__"+this.name+"-panel",tabindex:"0","aria-labelledby":this.parentComponentId+"__"+this.name,class:this.selected?"pds-tabpanel is-active":"pds-tabpanel"},a("slot",{key:"27b707d8fae77685f0cea7b0dc8c8dbcdb808f65"})))};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());d.style=l()}}}));
@@ -1 +0,0 @@
1
- System.register(["./p-DAIsVNlL.system.js","./p-BbXp4qBM.system.js"],(function(e){"use strict";var t,a,n,s;return{setters:[function(e){t=e.r;a=e.h;n=e.a},function(e){s=e.u}],execute:function(){var r=function(){return"pds-modal-header{display:block;width:100%}.pds-modal__header{width:100%}"};var c=e("pds_modal_header",function(){function e(e){t(this,e)}e.prototype.componentDidRender=function(){s(this.el.querySelector(".pds-modal__header"),".pds-modal__header")};e.prototype.render=function(){return a("header",{key:"ae4277052c04a1804e0e73f2873e636ea4cb890c",class:"pds-modal__header"},a("slot",{key:"5c4a7b463835de451c9c3f15e0ac669bf32aee23"}))};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());c.style=r()}}}));