@pine-ds/core 4.9.0 → 4.10.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 (400) hide show
  1. package/components/mock-pds-modal.js +1 -1
  2. package/components/pds-checkbox2.js +1 -1
  3. package/components/pds-chip2.js +1 -1
  4. package/components/pds-combobox.js +2 -2
  5. package/components/pds-datepicker.js +1 -1
  6. package/components/pds-dropdown-menu.js +1 -1
  7. package/components/pds-icon2.js +1 -1
  8. package/components/pds-link2.js +1 -1
  9. package/components/pds-modal2.js +1 -1
  10. package/components/pds-multiselect.js +1 -1
  11. package/components/pds-radio-group.js +1 -1
  12. package/components/pds-text2.js +1 -1
  13. package/components/pds-tooltip.js +1 -1
  14. package/components/portal-target.js +1 -0
  15. package/components/tabbable.js +1 -1
  16. package/components/truncation-tooltip.js +1 -1
  17. package/dist/cjs/{index-Do70atou.js → index-BDnbr0DK.js} +1 -1
  18. package/dist/cjs/{index-BsWY_xEJ.js → index-D9iJuJCP.js} +12 -0
  19. package/dist/cjs/loader.cjs.js +2 -2
  20. package/dist/cjs/mock-pds-modal.cjs.entry.js +2 -2
  21. package/dist/cjs/pds-accordion.cjs.entry.js +2 -2
  22. package/dist/cjs/pds-alert.cjs.entry.js +1 -1
  23. package/dist/cjs/pds-avatar.cjs.entry.js +2 -2
  24. package/dist/cjs/pds-box.cjs.entry.js +1 -1
  25. package/dist/cjs/pds-button.cjs.entry.js +2 -2
  26. package/dist/cjs/pds-checkbox.cjs.entry.js +3 -3
  27. package/dist/cjs/pds-chip.cjs.entry.js +9 -9
  28. package/dist/cjs/pds-combobox.cjs.entry.js +102 -16
  29. package/dist/cjs/pds-container.cjs.entry.js +1 -1
  30. package/dist/cjs/pds-copytext.cjs.entry.js +4 -3
  31. package/dist/cjs/pds-datepicker.cjs.entry.js +4 -41
  32. package/dist/cjs/pds-divider.cjs.entry.js +1 -1
  33. package/dist/cjs/pds-drawer-content.cjs.entry.js +1 -1
  34. package/dist/cjs/pds-drawer-footer.cjs.entry.js +1 -1
  35. package/dist/cjs/pds-drawer-header.cjs.entry.js +1 -1
  36. package/dist/cjs/pds-drawer.cjs.entry.js +1 -1
  37. package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +1 -1
  38. package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +1 -1
  39. package/dist/cjs/pds-dropdown-menu.cjs.entry.js +59 -47
  40. package/dist/cjs/pds-filter.cjs.entry.js +2 -2
  41. package/dist/cjs/pds-filters.cjs.entry.js +1 -1
  42. package/dist/cjs/pds-icon.cjs.entry.js +54 -21
  43. package/dist/cjs/pds-image.cjs.entry.js +1 -1
  44. package/dist/cjs/pds-input.cjs.entry.js +2 -2
  45. package/dist/cjs/pds-link.cjs.entry.js +3 -3
  46. package/dist/cjs/pds-loader.cjs.entry.js +1 -1
  47. package/dist/cjs/pds-modal-content.cjs.entry.js +1 -1
  48. package/dist/cjs/pds-modal-footer.cjs.entry.js +1 -1
  49. package/dist/cjs/pds-modal-header.cjs.entry.js +1 -1
  50. package/dist/cjs/pds-modal.cjs.entry.js +3 -3
  51. package/dist/cjs/pds-multiselect.cjs.entry.js +11 -5
  52. package/dist/cjs/pds-popover.cjs.entry.js +2 -2
  53. package/dist/cjs/pds-progress.cjs.entry.js +1 -1
  54. package/dist/cjs/pds-property.cjs.entry.js +1 -1
  55. package/dist/cjs/pds-radio-group.cjs.entry.js +66 -5
  56. package/dist/cjs/pds-radio.cjs.entry.js +2 -2
  57. package/dist/cjs/pds-row.cjs.entry.js +1 -1
  58. package/dist/cjs/pds-select.cjs.entry.js +2 -2
  59. package/dist/cjs/pds-sortable-item.cjs.entry.js +2 -2
  60. package/dist/cjs/pds-sortable.cjs.entry.js +1 -1
  61. package/dist/cjs/pds-switch.cjs.entry.js +2 -2
  62. package/dist/cjs/pds-tab.cjs.entry.js +1 -1
  63. package/dist/cjs/pds-table-body.cjs.entry.js +1 -1
  64. package/dist/cjs/pds-table-cell.cjs.entry.js +3 -2
  65. package/dist/cjs/pds-table-head-cell.cjs.entry.js +2 -2
  66. package/dist/cjs/pds-table-head.cjs.entry.js +1 -1
  67. package/dist/cjs/pds-table-row.cjs.entry.js +1 -1
  68. package/dist/cjs/pds-table.cjs.entry.js +1 -1
  69. package/dist/cjs/pds-tabpanel.cjs.entry.js +1 -1
  70. package/dist/cjs/pds-tabs.cjs.entry.js +1 -1
  71. package/dist/cjs/pds-text.cjs.entry.js +29 -3
  72. package/dist/cjs/pds-textarea.cjs.entry.js +2 -2
  73. package/dist/cjs/pds-toast.cjs.entry.js +1 -1
  74. package/dist/cjs/pds-tooltip.cjs.entry.js +16 -5
  75. package/dist/cjs/pine-core.cjs.js +2 -2
  76. package/dist/cjs/portal-target-e8WQ6dLx.js +70 -0
  77. package/dist/cjs/{tabbable-CddSt_Hi.js → tabbable-BrrrGvdG.js} +2 -1
  78. package/dist/cjs/{truncation-tooltip-O5nQmXPw.js → truncation-tooltip-Bikp7n9I.js} +43 -3
  79. package/dist/collection/components/pds-checkbox/pds-checkbox.css +20 -14
  80. package/dist/collection/components/pds-chip/pds-chip.js +5 -6
  81. package/dist/collection/components/pds-combobox/grouped-options-panel.js +39 -1
  82. package/dist/collection/components/pds-combobox/pds-combobox.css +37 -1
  83. package/dist/collection/components/pds-combobox/pds-combobox.js +62 -14
  84. package/dist/collection/components/pds-combobox/stories/pds-combobox.stories.js +48 -0
  85. package/dist/collection/components/pds-datepicker/calendar-portal.js +1 -38
  86. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +64 -46
  87. package/dist/collection/components/pds-link/pds-link.css +1 -1
  88. package/dist/collection/components/pds-link/stories/pds-link.stories.js +48 -0
  89. package/dist/collection/components/pds-modal/pds-modal.css +1 -1
  90. package/dist/collection/components/pds-multiselect/pds-multiselect.js +9 -3
  91. package/dist/collection/components/pds-radio-group/pds-radio-group.js +65 -4
  92. package/dist/collection/components/pds-text/pds-text.js +28 -3
  93. package/dist/collection/components/pds-text/stories/pds-text.stories.js +16 -0
  94. package/dist/collection/components/pds-tooltip/pds-tooltip.css +11 -0
  95. package/dist/collection/components/pds-tooltip/pds-tooltip.js +14 -3
  96. package/dist/collection/components/pds-tooltip/stories/pds-tooltip.stories.js +30 -0
  97. package/dist/collection/utils/portal-target.js +64 -0
  98. package/dist/collection/utils/tabbable.js +2 -1
  99. package/dist/collection/utils/truncation-tooltip.js +42 -3
  100. package/dist/docs.json +9 -3
  101. package/dist/esm/{index-BFSwd-GQ.js → index-4_RRPJTO.js} +12 -1
  102. package/dist/esm/{index-m3pqpeWg.js → index-DvN3tyZp.js} +1 -1
  103. package/dist/esm/loader.js +3 -3
  104. package/dist/esm/mock-pds-modal.entry.js +2 -2
  105. package/dist/esm/pds-accordion.entry.js +2 -2
  106. package/dist/esm/pds-alert.entry.js +1 -1
  107. package/dist/esm/pds-avatar.entry.js +2 -2
  108. package/dist/esm/pds-box.entry.js +1 -1
  109. package/dist/esm/pds-button.entry.js +2 -2
  110. package/dist/esm/pds-checkbox.entry.js +3 -3
  111. package/dist/esm/pds-chip.entry.js +8 -8
  112. package/dist/esm/pds-combobox.entry.js +102 -16
  113. package/dist/esm/pds-container.entry.js +1 -1
  114. package/dist/esm/pds-copytext.entry.js +4 -3
  115. package/dist/esm/pds-datepicker.entry.js +3 -40
  116. package/dist/esm/pds-divider.entry.js +1 -1
  117. package/dist/esm/pds-drawer-content.entry.js +1 -1
  118. package/dist/esm/pds-drawer-footer.entry.js +1 -1
  119. package/dist/esm/pds-drawer-header.entry.js +1 -1
  120. package/dist/esm/pds-drawer.entry.js +1 -1
  121. package/dist/esm/pds-dropdown-menu-item.entry.js +1 -1
  122. package/dist/esm/pds-dropdown-menu-separator.entry.js +1 -1
  123. package/dist/esm/pds-dropdown-menu.entry.js +59 -47
  124. package/dist/esm/pds-filter.entry.js +2 -2
  125. package/dist/esm/pds-filters.entry.js +1 -1
  126. package/dist/esm/pds-icon.entry.js +54 -21
  127. package/dist/esm/pds-image.entry.js +1 -1
  128. package/dist/esm/pds-input.entry.js +2 -2
  129. package/dist/esm/pds-link.entry.js +3 -3
  130. package/dist/esm/pds-loader.entry.js +1 -1
  131. package/dist/esm/pds-modal-content.entry.js +1 -1
  132. package/dist/esm/pds-modal-footer.entry.js +1 -1
  133. package/dist/esm/pds-modal-header.entry.js +1 -1
  134. package/dist/esm/pds-modal.entry.js +3 -3
  135. package/dist/esm/pds-multiselect.entry.js +11 -5
  136. package/dist/esm/pds-popover.entry.js +2 -2
  137. package/dist/esm/pds-progress.entry.js +1 -1
  138. package/dist/esm/pds-property.entry.js +1 -1
  139. package/dist/esm/pds-radio-group.entry.js +66 -5
  140. package/dist/esm/pds-radio.entry.js +2 -2
  141. package/dist/esm/pds-row.entry.js +1 -1
  142. package/dist/esm/pds-select.entry.js +2 -2
  143. package/dist/esm/pds-sortable-item.entry.js +2 -2
  144. package/dist/esm/pds-sortable.entry.js +1 -1
  145. package/dist/esm/pds-switch.entry.js +2 -2
  146. package/dist/esm/pds-tab.entry.js +1 -1
  147. package/dist/esm/pds-table-body.entry.js +1 -1
  148. package/dist/esm/pds-table-cell.entry.js +3 -2
  149. package/dist/esm/pds-table-head-cell.entry.js +2 -2
  150. package/dist/esm/pds-table-head.entry.js +1 -1
  151. package/dist/esm/pds-table-row.entry.js +1 -1
  152. package/dist/esm/pds-table.entry.js +1 -1
  153. package/dist/esm/pds-tabpanel.entry.js +1 -1
  154. package/dist/esm/pds-tabs.entry.js +1 -1
  155. package/dist/esm/pds-text.entry.js +29 -3
  156. package/dist/esm/pds-textarea.entry.js +2 -2
  157. package/dist/esm/pds-toast.entry.js +1 -1
  158. package/dist/esm/pds-tooltip.entry.js +16 -5
  159. package/dist/esm/pine-core.js +3 -3
  160. package/dist/esm/portal-target-CKRzRKdO.js +66 -0
  161. package/dist/esm/{tabbable-DCKBKRUy.js → tabbable-C6ZWpp3v.js} +2 -1
  162. package/dist/esm/{truncation-tooltip-D_gvhB9r.js → truncation-tooltip-DBcPipr9.js} +43 -4
  163. package/dist/esm-es5/{index-BFSwd-GQ.js → index-4_RRPJTO.js} +1 -1
  164. package/dist/esm-es5/loader.js +1 -1
  165. package/dist/esm-es5/mock-pds-modal.entry.js +1 -1
  166. package/dist/esm-es5/pds-accordion.entry.js +1 -1
  167. package/dist/esm-es5/pds-alert.entry.js +1 -1
  168. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  169. package/dist/esm-es5/pds-box.entry.js +1 -1
  170. package/dist/esm-es5/pds-button.entry.js +1 -1
  171. package/dist/esm-es5/pds-checkbox.entry.js +1 -1
  172. package/dist/esm-es5/pds-chip.entry.js +1 -1
  173. package/dist/esm-es5/pds-combobox.entry.js +2 -2
  174. package/dist/esm-es5/pds-container.entry.js +1 -1
  175. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  176. package/dist/esm-es5/pds-datepicker.entry.js +1 -1
  177. package/dist/esm-es5/pds-divider.entry.js +1 -1
  178. package/dist/esm-es5/pds-drawer-content.entry.js +1 -1
  179. package/dist/esm-es5/pds-drawer-footer.entry.js +1 -1
  180. package/dist/esm-es5/pds-drawer-header.entry.js +1 -1
  181. package/dist/esm-es5/pds-drawer.entry.js +1 -1
  182. package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -1
  183. package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +1 -1
  184. package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -1
  185. package/dist/esm-es5/pds-filter.entry.js +1 -1
  186. package/dist/esm-es5/pds-filters.entry.js +1 -1
  187. package/dist/esm-es5/pds-icon.entry.js +1 -1
  188. package/dist/esm-es5/pds-image.entry.js +1 -1
  189. package/dist/esm-es5/pds-input.entry.js +1 -1
  190. package/dist/esm-es5/pds-link.entry.js +1 -1
  191. package/dist/esm-es5/pds-loader.entry.js +1 -1
  192. package/dist/esm-es5/pds-modal-content.entry.js +1 -1
  193. package/dist/esm-es5/pds-modal-footer.entry.js +1 -1
  194. package/dist/esm-es5/pds-modal-header.entry.js +1 -1
  195. package/dist/esm-es5/pds-modal.entry.js +1 -1
  196. package/dist/esm-es5/pds-multiselect.entry.js +1 -1
  197. package/dist/esm-es5/pds-popover.entry.js +1 -1
  198. package/dist/esm-es5/pds-progress.entry.js +1 -1
  199. package/dist/esm-es5/pds-property.entry.js +1 -1
  200. package/dist/esm-es5/pds-radio-group.entry.js +1 -1
  201. package/dist/esm-es5/pds-radio.entry.js +1 -1
  202. package/dist/esm-es5/pds-row.entry.js +1 -1
  203. package/dist/esm-es5/pds-select.entry.js +1 -1
  204. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  205. package/dist/esm-es5/pds-sortable.entry.js +1 -1
  206. package/dist/esm-es5/pds-switch.entry.js +1 -1
  207. package/dist/esm-es5/pds-tab.entry.js +1 -1
  208. package/dist/esm-es5/pds-table-body.entry.js +1 -1
  209. package/dist/esm-es5/pds-table-cell.entry.js +1 -1
  210. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
  211. package/dist/esm-es5/pds-table-head.entry.js +1 -1
  212. package/dist/esm-es5/pds-table-row.entry.js +1 -1
  213. package/dist/esm-es5/pds-table.entry.js +1 -1
  214. package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
  215. package/dist/esm-es5/pds-tabs.entry.js +1 -1
  216. package/dist/esm-es5/pds-text.entry.js +1 -1
  217. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  218. package/dist/esm-es5/pds-toast.entry.js +1 -1
  219. package/dist/esm-es5/pds-tooltip.entry.js +1 -1
  220. package/dist/esm-es5/pine-core.js +1 -1
  221. package/dist/esm-es5/portal-target-CKRzRKdO.js +1 -0
  222. package/dist/esm-es5/tabbable-C6ZWpp3v.js +1 -0
  223. package/dist/esm-es5/truncation-tooltip-DBcPipr9.js +1 -0
  224. package/dist/pine-core/{p-7a19477e.system.entry.js → p-01f1cdaf.system.entry.js} +1 -1
  225. package/dist/pine-core/{p-ee449a4b.entry.js → p-07323107.entry.js} +1 -1
  226. package/dist/pine-core/{p-14d872d3.entry.js → p-08b8e941.entry.js} +1 -1
  227. package/dist/pine-core/p-0b7b3fc2.system.entry.js +3 -0
  228. package/dist/pine-core/p-0d5f0ab5.system.entry.js +1 -0
  229. package/dist/pine-core/p-124a0a24.entry.js +1 -0
  230. package/dist/pine-core/p-128c04e7.entry.js +1 -0
  231. package/dist/pine-core/{p-3cc19ea8.system.entry.js → p-1415c988.system.entry.js} +1 -1
  232. package/dist/pine-core/{p-de176bd9.entry.js → p-143b33a6.entry.js} +1 -1
  233. package/dist/pine-core/{p-e9a53a88.system.entry.js → p-14dedf01.system.entry.js} +1 -1
  234. package/dist/pine-core/{p-60d27247.system.entry.js → p-19cf1d91.system.entry.js} +1 -1
  235. package/dist/pine-core/{p-bcf57566.entry.js → p-1ca8d183.entry.js} +1 -1
  236. package/dist/pine-core/{p-11e7d660.entry.js → p-1e3ef425.entry.js} +1 -1
  237. package/dist/pine-core/{p-98cc327b.entry.js → p-1f62bb71.entry.js} +2 -2
  238. package/dist/pine-core/{p-6f34ad9c.entry.js → p-2a18852f.entry.js} +1 -1
  239. package/dist/pine-core/{p-3ce7e72e.system.entry.js → p-2b9622c1.system.entry.js} +1 -1
  240. package/dist/pine-core/{p-9fbcba0d.entry.js → p-2dd30d12.entry.js} +1 -1
  241. package/dist/pine-core/{p-8b97dd57.system.entry.js → p-3306dc5a.system.entry.js} +1 -1
  242. package/dist/pine-core/{p-ce554098.entry.js → p-3610cb3b.entry.js} +1 -1
  243. package/dist/pine-core/{p-079c39d1.entry.js → p-39276663.entry.js} +1 -1
  244. package/dist/pine-core/{p-89fefe36.entry.js → p-39e57657.entry.js} +1 -1
  245. package/dist/pine-core/p-3a1dc752.system.entry.js +1 -0
  246. package/dist/pine-core/{p-ef4d8fea.entry.js → p-3c229091.entry.js} +1 -1
  247. package/dist/pine-core/{p-d8bedb58.system.entry.js → p-3f8bd3fb.system.entry.js} +1 -1
  248. package/dist/pine-core/{p-6845867f.system.entry.js → p-42d43c3f.system.entry.js} +1 -1
  249. package/dist/pine-core/{p-4ee44585.system.entry.js → p-42f70f93.system.entry.js} +1 -1
  250. package/dist/pine-core/{p-0bd61097.system.entry.js → p-4a90b9c8.system.entry.js} +1 -1
  251. package/dist/pine-core/{p-64283f7b.entry.js → p-4cfe922b.entry.js} +1 -1
  252. package/dist/pine-core/p-4d47023c.system.entry.js +1 -0
  253. package/dist/pine-core/{p-b037dcbd.system.entry.js → p-4d98bc0c.system.entry.js} +1 -1
  254. package/dist/pine-core/{p-3556f6ad.entry.js → p-50ddadbf.entry.js} +1 -1
  255. package/dist/pine-core/{p-1e5648bf.system.entry.js → p-548bce53.system.entry.js} +1 -1
  256. package/dist/pine-core/{p-92a8cf7d.entry.js → p-590df41a.entry.js} +1 -1
  257. package/dist/pine-core/{p-f549f2bc.entry.js → p-5946203c.entry.js} +1 -1
  258. package/dist/pine-core/{p-d7db749a.system.entry.js → p-5f181694.system.entry.js} +1 -1
  259. package/dist/pine-core/{p-9713d6a5.system.entry.js → p-60a30975.system.entry.js} +1 -1
  260. package/dist/pine-core/{p-d94ebe84.entry.js → p-61cfdbb2.entry.js} +1 -1
  261. package/dist/pine-core/p-62aa6a78.system.entry.js +1 -0
  262. package/dist/pine-core/p-639acef8.system.entry.js +1 -0
  263. package/dist/pine-core/{p-cb560aab.system.entry.js → p-63f85859.system.entry.js} +1 -1
  264. package/dist/pine-core/{p-001d4b86.entry.js → p-64bcb378.entry.js} +1 -1
  265. package/dist/pine-core/{p-bdde1e53.entry.js → p-67999353.entry.js} +1 -1
  266. package/dist/pine-core/{p-be3b4f12.system.entry.js → p-67f795d5.system.entry.js} +1 -1
  267. package/dist/pine-core/{p-6b6ae1be.entry.js → p-6a1aa8d3.entry.js} +1 -1
  268. package/dist/pine-core/p-6f4ab1ea.system.entry.js +1 -0
  269. package/dist/pine-core/{p-110b4051.system.entry.js → p-724baba3.system.entry.js} +1 -1
  270. package/dist/pine-core/p-72659a0e.system.entry.js +1 -0
  271. package/dist/pine-core/p-7a51f15e.entry.js +1 -0
  272. package/dist/pine-core/p-7b978fff.system.entry.js +1 -0
  273. package/dist/pine-core/p-8436cbfb.entry.js +1 -0
  274. package/dist/pine-core/{p-ced6a814.system.entry.js → p-849ec281.system.entry.js} +1 -1
  275. package/dist/pine-core/p-87a32ded.system.entry.js +1 -0
  276. package/dist/pine-core/{p-f09f27ab.system.entry.js → p-89d38a82.system.entry.js} +1 -1
  277. package/dist/pine-core/{p-6602b4d0.entry.js → p-8ade17ce.entry.js} +1 -1
  278. package/dist/pine-core/{p-ebf0c51b.system.entry.js → p-8afd5f5b.system.entry.js} +1 -1
  279. package/dist/pine-core/{p-9fe4a64a.entry.js → p-8e7f75e6.entry.js} +1 -1
  280. package/dist/pine-core/{p-b9d71b76.entry.js → p-8fb520df.entry.js} +1 -1
  281. package/dist/pine-core/{p-3b5b8f73.entry.js → p-92115e88.entry.js} +1 -1
  282. package/dist/pine-core/{p-239774c9.entry.js → p-947582e1.entry.js} +1 -1
  283. package/dist/pine-core/{p-98843402.system.entry.js → p-94c9b7d1.system.entry.js} +1 -1
  284. package/dist/pine-core/p-97356d4b.entry.js +1 -0
  285. package/dist/pine-core/p-973c3ac0.entry.js +1 -0
  286. package/dist/pine-core/p-97653e60.entry.js +1 -0
  287. package/dist/pine-core/{p-7073146f.entry.js → p-97b73359.entry.js} +1 -1
  288. package/dist/pine-core/{p-bfdfbe9f.entry.js → p-99530cb5.entry.js} +1 -1
  289. package/dist/pine-core/{p-50af67ea.system.entry.js → p-9b32727a.system.entry.js} +1 -1
  290. package/dist/pine-core/{p-CjRCtzPD.system.js → p-BK1sLRfg.system.js} +1 -1
  291. package/dist/pine-core/p-BZVUD2on.js +1 -0
  292. package/dist/pine-core/p-C6ZWpp3v.js +1 -0
  293. package/dist/pine-core/p-CKRzRKdO.js +1 -0
  294. package/dist/pine-core/p-Dj-z_ugg.system.js +1 -0
  295. package/dist/pine-core/{p-BplEmwUQ.js → p-M31tvpDN.js} +2 -2
  296. package/dist/pine-core/p-XK45dzWR.system.js +1 -0
  297. package/dist/pine-core/{p-d9243653.system.entry.js → p-a09c9c5e.system.entry.js} +1 -1
  298. package/dist/pine-core/{p-55fce29e.entry.js → p-a4ce12ef.entry.js} +1 -1
  299. package/dist/pine-core/{p-dea2a254.entry.js → p-a594c41f.entry.js} +1 -1
  300. package/dist/pine-core/{p-2d5b1deb.entry.js → p-a9d96e22.entry.js} +1 -1
  301. package/dist/pine-core/{p-e1fdd53a.system.entry.js → p-ad5208a4.system.entry.js} +1 -1
  302. package/dist/pine-core/p-afc2f165.entry.js +1 -0
  303. package/dist/pine-core/{p-25bf2f26.system.entry.js → p-bcc378ba.system.entry.js} +2 -2
  304. package/dist/pine-core/{p-3f62581a.system.entry.js → p-bd7dc317.system.entry.js} +1 -1
  305. package/dist/pine-core/p-bfa34194.entry.js +1 -0
  306. package/dist/pine-core/{p-5c46553f.system.entry.js → p-c2afe4f3.system.entry.js} +1 -1
  307. package/dist/pine-core/{p-17fc76e7.system.entry.js → p-c5e1eb3c.system.entry.js} +1 -1
  308. package/dist/pine-core/p-c6a9e62c.system.entry.js +1 -0
  309. package/dist/pine-core/{p-7a14473e.entry.js → p-c7a53c4f.entry.js} +1 -1
  310. package/dist/pine-core/{p-5967d9fa.system.entry.js → p-c8a0b562.system.entry.js} +1 -1
  311. package/dist/pine-core/{p-735b3631.entry.js → p-c9ae7964.entry.js} +1 -1
  312. package/dist/pine-core/{p-b243767b.system.entry.js → p-cb9baf78.system.entry.js} +1 -1
  313. package/dist/pine-core/{p-6d64e6c7.entry.js → p-ce9fa14b.entry.js} +1 -1
  314. package/dist/pine-core/{p-68fdfb8f.system.entry.js → p-d018dc60.system.entry.js} +1 -1
  315. package/dist/pine-core/p-d47b2a6a.system.entry.js +1 -0
  316. package/dist/pine-core/{p-0790dd0d.system.entry.js → p-d48fe5a0.system.entry.js} +1 -1
  317. package/dist/pine-core/{p-414faecf.entry.js → p-d6f338e0.entry.js} +1 -1
  318. package/dist/pine-core/{p-b7cbd913.system.entry.js → p-d920d759.system.entry.js} +1 -1
  319. package/dist/pine-core/{p-87642228.entry.js → p-d9719e37.entry.js} +1 -1
  320. package/dist/pine-core/p-da8b864a.entry.js +2 -0
  321. package/dist/pine-core/{p-f2c487e6.entry.js → p-db7fb5a3.entry.js} +1 -1
  322. package/dist/pine-core/p-dd7ded84.entry.js +1 -0
  323. package/dist/pine-core/p-de455073.system.entry.js +1 -0
  324. package/dist/pine-core/{p-a7d25143.entry.js → p-e1d1b5d8.entry.js} +1 -1
  325. package/dist/pine-core/p-e3de6a1d.entry.js +1 -0
  326. package/dist/pine-core/{p-2c0047cd.entry.js → p-e7002cee.entry.js} +1 -1
  327. package/dist/pine-core/{p-5133e8be.system.entry.js → p-e82f758f.system.entry.js} +1 -1
  328. package/dist/pine-core/p-e84fa9ed.entry.js +1 -0
  329. package/dist/pine-core/{p-9dbc017f.system.entry.js → p-eb4f0daa.system.entry.js} +1 -1
  330. package/dist/pine-core/p-eb56af4a.system.entry.js +1 -0
  331. package/dist/pine-core/p-eeYeEogd.system.js +1 -0
  332. package/dist/pine-core/{p-b33ad96e.system.entry.js → p-eecd9ad8.system.entry.js} +1 -1
  333. package/dist/pine-core/{p-06279b93.system.entry.js → p-ef0eba9b.system.entry.js} +1 -1
  334. package/dist/pine-core/{p-0c60f577.system.entry.js → p-ef3a855f.system.entry.js} +1 -1
  335. package/dist/pine-core/{p-6dad76cb.system.entry.js → p-f11cce27.system.entry.js} +1 -1
  336. package/dist/pine-core/p-f354dbac.entry.js +1 -0
  337. package/dist/pine-core/{p-bda7e3be.entry.js → p-f6f4fd42.entry.js} +1 -1
  338. package/dist/pine-core/{p-7fcf3d37.entry.js → p-f71d71ca.entry.js} +1 -1
  339. package/dist/pine-core/p-f834cb07.system.entry.js +1 -0
  340. package/dist/pine-core/p-f9063262.system.entry.js +1 -0
  341. package/dist/pine-core/p-f99bd77f.entry.js +1 -0
  342. package/dist/pine-core/p-wB2y8gR7.system.js +1 -0
  343. package/dist/pine-core/pine-core.esm.js +1 -1
  344. package/dist/pine-core/pine-core.js +1 -1
  345. package/dist/types/components/pds-combobox/combobox-interface.d.ts +26 -0
  346. package/dist/types/components/pds-combobox/grouped-options-panel.d.ts +17 -0
  347. package/dist/types/components/pds-combobox/pds-combobox.d.ts +12 -2
  348. package/dist/types/components/pds-datepicker/calendar-portal.d.ts +0 -7
  349. package/dist/types/components/pds-dropdown-menu/pds-dropdown-menu.d.ts +4 -0
  350. package/dist/types/components/pds-radio-group/pds-radio-group.d.ts +8 -0
  351. package/dist/types/components/pds-text/pds-text.d.ts +4 -0
  352. package/dist/types/components/pds-tooltip/pds-tooltip.d.ts +1 -0
  353. package/dist/types/components.d.ts +2 -2
  354. package/dist/types/utils/portal-target.d.ts +17 -0
  355. package/dist/types/utils/truncation-tooltip.d.ts +5 -2
  356. package/dist/vscode.html-data.json +3 -3
  357. package/hydrate/index.js +422 -146
  358. package/hydrate/index.mjs +422 -146
  359. package/package.json +2 -2
  360. package/dist/esm-es5/tabbable-DCKBKRUy.js +0 -1
  361. package/dist/esm-es5/truncation-tooltip-D_gvhB9r.js +0 -1
  362. package/dist/pine-core/p-07b4524e.entry.js +0 -1
  363. package/dist/pine-core/p-08bbd3e6.system.entry.js +0 -1
  364. package/dist/pine-core/p-22ae92f7.system.entry.js +0 -1
  365. package/dist/pine-core/p-272b24ad.system.entry.js +0 -1
  366. package/dist/pine-core/p-38b87aa2.system.entry.js +0 -1
  367. package/dist/pine-core/p-3afb1208.entry.js +0 -1
  368. package/dist/pine-core/p-463a29fa.entry.js +0 -1
  369. package/dist/pine-core/p-568a9a79.system.entry.js +0 -1
  370. package/dist/pine-core/p-5ce5836e.system.entry.js +0 -1
  371. package/dist/pine-core/p-5f3242c8.system.entry.js +0 -1
  372. package/dist/pine-core/p-60e3b1af.entry.js +0 -1
  373. package/dist/pine-core/p-7d3a20ba.entry.js +0 -1
  374. package/dist/pine-core/p-9201b497.system.entry.js +0 -1
  375. package/dist/pine-core/p-94597b73.entry.js +0 -1
  376. package/dist/pine-core/p-97be00f4.system.entry.js +0 -1
  377. package/dist/pine-core/p-9a8971e2.system.entry.js +0 -1
  378. package/dist/pine-core/p-9a8d2985.system.entry.js +0 -3
  379. package/dist/pine-core/p-CirzxZ33.js +0 -1
  380. package/dist/pine-core/p-D52aRqFx.system.js +0 -1
  381. package/dist/pine-core/p-DCKBKRUy.js +0 -1
  382. package/dist/pine-core/p-DXO1yd32.system.js +0 -1
  383. package/dist/pine-core/p-a2078add.entry.js +0 -1
  384. package/dist/pine-core/p-a48b025a.system.entry.js +0 -1
  385. package/dist/pine-core/p-ad3b1ec3.entry.js +0 -1
  386. package/dist/pine-core/p-b017eb99.system.entry.js +0 -1
  387. package/dist/pine-core/p-b6edfdfe.entry.js +0 -2
  388. package/dist/pine-core/p-c02a32ec.entry.js +0 -1
  389. package/dist/pine-core/p-c1da80e5.entry.js +0 -1
  390. package/dist/pine-core/p-c233866c.system.entry.js +0 -1
  391. package/dist/pine-core/p-d7930540.entry.js +0 -1
  392. package/dist/pine-core/p-dfadfcd1.entry.js +0 -1
  393. package/dist/pine-core/p-e70cb112.system.entry.js +0 -1
  394. package/dist/pine-core/p-eb93cc6e.entry.js +0 -1
  395. package/dist/pine-core/p-ebf74c43.system.entry.js +0 -1
  396. package/dist/pine-core/p-fc743f6e.entry.js +0 -1
  397. package/dist/pine-core/p-wXfuz0Bd.system.js +0 -1
  398. /package/dist/esm-es5/{index-m3pqpeWg.js → index-DvN3tyZp.js} +0 -0
  399. /package/dist/pine-core/{p-m3pqpeWg.js → p-DvN3tyZp.js} +0 -0
  400. /package/dist/pine-core/{p-DaCT2ssj.system.js → p-vFsJv75D.system.js} +0 -0
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,r,i,n){function t(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,o){function s(e){try{a(n.next(e))}catch(e){o(e)}}function d(e){try{a(n["throw"](e))}catch(e){o(e)}}function a(e){e.done?i(e.value):t(e.value).then(s,d)}a((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,t,o,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=d(0),s["throw"]=d(1),s["return"]=d(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function d(e){return function(r){return a([e,r])}}function a(d){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,d[0]&&(i=0)),i)try{if(n=1,t&&(o=d[0]&2?t["return"]:d[0]?t["throw"]||((o=t["return"])&&o.call(t),0):t.next)&&!(o=o.call(t,d[1])).done)return o;if(t=0,o)d=[d[0]&2,o.value];switch(d[0]){case 0:case 1:o=d;break;case 4:i.label++;return{value:d[1],done:false};case 5:i.label++;t=d[1];d=[0];continue;case 7:d=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){i=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){i.label=d[1];break}if(d[0]===6&&i.label<o[1]){i.label=o[1];o=d;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(d);break}if(o[2])i.ops.pop();i.trys.pop();continue}d=r.call(e,i)}catch(e){d=[6,e];t=0}finally{n=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:true}}};System.register(["./p-CjRCtzPD.system.js","./p-BxIzb-Wc.system.js","./p-CNXspDYs.system.js","./p-Dx8tEj0U.system.js","./p-DaCT2ssj.system.js","./p-BZ1l3LGl.system.js"],(function(e){"use strict";var r,i,n,t,o,s,d,a,p,l,u,c,h;return{setters:[function(e){r=e.r;i=e.c;n=e.h;t=e.H;o=e.a},function(e){s=e.i;d=e.a;a=e.m},function(e){p=e.i},function(e){l=e.c;u=e.d;c=e.f},function(e){h=e.b},null],execute:function(){var b=function(){return":host{--pine-input-color-background-danger:var(--pine-color-red-050)}"};var f=function(){return":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)}"};var v=function(){return":host{--pds-input-background:var(--pine-color-background-container);--pds-input-border-color:var(--pine-color-border);--pds-input-border-color-hover:var(--pine-color-border-hover);--pds-input-border-color-disabled:var(--pine-color-border-disabled);--pds-input-border-radius:var(--pine-dimension-125);--pds-input-border-width:var(--pine-border-width-thin);--pds-input-padding-x:var(--pine-dimension-150);--pds-input-padding-y:calc(var(--pine-dimension-xs) - var(--pine-border-width));--pds-input-font:var(--pine-typography-body);--pds-input-text-color:var(--pine-color-text-strong);--pds-input-placeholder-color:var(--pine-color-text-placeholder);--pds-input-icon-color:var(--pine-color-text-secondary);--pds-input-disabled-background:var(--pine-color-background-container-disabled);--pds-input-disabled-text-color:var(--pine-color-text-disabled);--pds-input-error-color:var(--pine-color-text-message-danger);--pds-input-error-background:var(--pine-input-color-background-danger);--pds-input-error-border:var(--pine-color-border-danger);--pds-input-error-border-hover:var(--pine-color-border-danger-hover);--pds-input-addon-background:var(--pine-color-background-subtle);--pds-input-addon-color:var(--pine-color-text-secondary);--pds-input-field-min-height:var(--pine-dimension-450);--box-shadow-focus:0 0 0 1px var(--pine-color-background-container), 0 0 0 3px var(--pine-color-focus-ring);--box-shadow-focus-error:0 0 0 1px var(--pine-color-background-container), 0 0 0 3px var(--pine-color-focus-ring-danger);display:inline}:host pds-select::part(select){background-color:var(--pds-input-error-background);border-color:var(--pds-input-error-border)}:host::part(prefix),:host::part(suffix){-ms-flex-align:center;align-items:center;color:var(--pine-color-text-label-readonly);display:-ms-flexbox;display:flex;height:100%;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);white-space:nowrap;z-index:calc(var(--pine-z-index-raised) - 1)}:host::part(prefix){border-end-start-radius:var(--pds-input-border-radius);-webkit-border-end:var(--pine-border-width-none);border-inline-end:var(--pine-border-width-none);border-start-start-radius:var(--pds-input-border-radius);inset-inline-start:var(--pds-input-padding-x)}:host::part(suffix){border-end-end-radius:var(--pds-input-border-radius);-webkit-border-start:var(--pine-border-width-none);border-inline-start:var(--pine-border-width-none);border-start-end-radius:var(--pds-input-border-radius);inset-inline-end:var(--pds-input-padding-x)}:host::part(prepend),:host::part(append){-ms-flex-align:center;align-items:center;background-color:var(--pds-input-addon-background);border:var(--pds-input-border-width) solid var(--pds-input-border-color);color:var(--pds-input-addon-color);display:-ms-flexbox;display:flex;overflow:visible}:host::part(prepend){border-end-start-radius:var(--pds-input-border-radius);-webkit-border-end:var(--pine-border-width-none);border-inline-end:var(--pine-border-width-none);border-start-start-radius:var(--pds-input-border-radius)}:host::part(append){border-end-end-radius:var(--pds-input-border-radius);-webkit-border-start:var(--pine-border-width-none);border-inline-start:var(--pine-border-width-none);border-start-end-radius:var(--pds-input-border-radius)}:host([has-prepend]) ::slotted(pds-button[slot=prepend]){--pds-button-background:var(--pds-input-addon-background);--pds-button-border:var(--pine-border-width-none);--pds-button-border-radius:var(--pine-dimension-none);--pds-button-border-radius-end-end:var(--pine-dimension-none);--pds-button-border-radius-start-end:var(--pine-dimension-none);--pds-button-border-radius-start-start:var(--pds-input-border-radius);--pds-button-border-radius-end-start:var(--pds-input-border-radius);--pds-button-min-height:calc(var(--pine-dimension-450) - calc(2 * var(--pine-border-width)));--pds-button-box-shadow-focus:0 0 0 3px var(--pine-color-focus-ring);--pds-button-outline-focus:none}:host([has-append]) ::slotted(pds-button[slot=append]){--pds-button-background:var(--pds-input-addon-background);--pds-button-border:var(--pine-border-width-none);--pds-button-border-radius:var(--pine-dimension-none);--pds-button-border-radius-end-start:var(--pine-dimension-none);--pds-button-border-radius-start-start:var(--pine-dimension-none);--pds-button-border-radius-start-end:var(--pds-input-border-radius);--pds-button-border-radius-end-end:var(--pds-input-border-radius);--pds-button-min-height:calc(var(--pine-dimension-450) - calc(2 * var(--pine-border-width)));--pds-button-box-shadow-focus:0 0 0 3px var(--pine-color-focus-ring);--pds-button-outline-focus:none}:host([has-prepend]) ::slotted(pds-select[slot=prepend]){--pds-select-background:var(--pds-input-addon-background);--pds-select-border:var(--pine-border-width-none);--pds-select-border-radius-end-end:var(--pine-dimension-none);--pds-select-border-radius-end-start:var(--pds-input-border-radius);--pds-select-border-radius-start-end:var(--pine-dimension-none);--pds-select-border-radius-start-start:var(--pds-input-border-radius);--pds-select-min-height:calc(var(--pine-dimension-450) - calc(2 * var(--pine-border-width)))}:host([has-append]) ::slotted(pds-select[slot=append]){--pds-select-background:var(--pds-input-addon-background);--pds-select-border:var(--pine-border-width-none);--pds-select-border-radius-end-end:var(--pds-input-border-radius);--pds-select-border-radius-end-start:var(--pine-dimension-none);--pds-select-border-radius-start-end:var(--pds-input-border-radius);--pds-select-border-radius-start-start:var(--pine-dimension-none);--pds-select-min-height:calc(var(--pine-dimension-450) - calc(2 * var(--pine-border-width)))}:host([aria-readonly=true]) input{background-color:var(--pine-color-background-container-disabled);color:var(--pine-color-text-readonly)}:host([aria-disabled=true])::part(prepend),:host([aria-disabled=true])::part(append){background-color:var(--pds-input-disabled-background);border:var(--pds-input-border-width) solid var(--pds-input-border-color-disabled)}:host([full-width=true]){width:100%}:host([invalid=true])::part(prepend),:host([invalid=true])::part(append){background-color:var(--pds-input-error-background);border:var(--pds-input-border-width) solid var(--pds-input-error-border)}:host([highlight]:not([disabled]):not([aria-disabled=true]):not([invalid]):not([aria-readonly=true])){--pds-input-background:var(--pine-color-accent-disabled);--pds-input-border-color:var(--pine-color-accent);--pds-input-border-color-hover:var(--pine-color-accent-hover);--pds-input-text-color:var(--pine-color-text-accent)}:host([highlight]:not([disabled]):not([aria-disabled=true]):not([invalid]):not([aria-readonly=true]))::part(prefix),:host([highlight]:not([disabled]):not([aria-disabled=true]):not([invalid]):not([aria-readonly=true]))::part(suffix){color:var(--pine-color-text-accent)}:host([highlight]:not([disabled]):not([aria-disabled=true]):not([invalid]):not([aria-readonly=true])) .pds-input__field:focus-visible{outline-color:var(--pine-color-focus-ring)}.pds-input{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.pds-input__label-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}.pds-input__label{color:var(--pine-color-text-strong);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}.pds-input__label-wrapper .pds-input__label{-webkit-margin-after:0;margin-block-end:0}.pds-input__action{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;gap:var(--pine-dimension-xs);-webkit-margin-start:var(--pine-dimension-xs);margin-inline-start:var(--pine-dimension-xs)}.pds-input__field-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;position:relative;width:100%}.pds-input__field-wrapper.has-prefix .pds-input__field{-webkit-padding-start:calc(2 * var(--pds-input-padding-x) + var(--prefix-width, 1em));padding-inline-start:calc(2 * var(--pds-input-padding-x) + var(--prefix-width, 1em))}.pds-input__field-wrapper.has-suffix .pds-input__field{-webkit-padding-end:calc(2 * var(--pds-input-padding-x) + var(--suffix-width, 1em));padding-inline-end:calc(2 * var(--pds-input-padding-x) + var(--suffix-width, 1em))}.pds-input__field-wrapper.has-prepend .pds-input__field{border-end-start-radius:var(--pine-dimension-none);border-start-start-radius:var(--pine-dimension-none)}.pds-input__field-wrapper.has-append .pds-input__field{border-end-end-radius:var(--pine-dimension-none);border-start-end-radius:var(--pine-dimension-none)}.pds-input__field{background:var(--pds-input-background);border:var(--pds-input-border-width) solid var(--pds-input-border-color);border-radius:var(--pds-input-border-radius);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--pds-input-text-color);-ms-flex:1;flex:1;font:var(--pds-input-font);letter-spacing:var(--pine-letter-spacing);min-height:var(--pds-input-field-min-height);min-width:var(--pine-dimension-none);padding:var(--pds-input-padding-y) var(--pds-input-padding-x);-webkit-transition:border-color var(--pine-motion-duration-base) ease;transition:border-color var(--pine-motion-duration-base) ease;width:100%}.pds-input__field:hover:not(:disabled){border-color:var(--pds-input-border-color-hover)}.pds-input__field:disabled{background:var(--pds-input-disabled-background);border-color:var(--pine-color-border-disabled);color:var(--pds-input-disabled-text-color);cursor:not-allowed}.pds-input__field:disabled::-webkit-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-input__field:disabled::-moz-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-input__field:disabled:-ms-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-input__field:disabled::-ms-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-input__field:disabled::placeholder{color:var(--pine-color-text-placeholder-disabled)}.has-error .pds-input__field:hover:not(:disabled){border-color:var(--pds-input-error-border-hover)}:host-context([data-theme=dark]) .has-error .pds-input__field:hover:not(:disabled){border-color:var(--pine-color-red-950)}.pds-input__field:focus-visible:not(.has-error){border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width);position:relative;z-index:1}:host([has-prepend]) .pds-input__field:focus-visible:not(.has-error),:host([has-append]) .pds-input__field:focus-visible:not(.has-error),:host([has-prefix]) .pds-input__field:focus-visible:not(.has-error),:host([has-suffix]) .pds-input__field:focus-visible:not(.has-error){outline-offset:var(--pine-dimension-none)}.pds-input__field::-webkit-input-placeholder{color:var(--pds-input-placeholder-color)}.pds-input__field::-moz-placeholder{color:var(--pds-input-placeholder-color)}.pds-input__field:-ms-input-placeholder{color:var(--pds-input-placeholder-color)}.pds-input__field::-ms-input-placeholder{color:var(--pds-input-placeholder-color)}.pds-input__field::placeholder{color:var(--pds-input-placeholder-color)}.pds-input__field:-moz-placeholder-shown{text-overflow:ellipsis}.pds-input__field:-ms-input-placeholder{text-overflow:ellipsis}.pds-input__field:placeholder-shown{text-overflow:ellipsis}.has-error .pds-input__field{background-color:var(--pds-input-error-background);border-color:var(--pds-input-error-border)}:host-context([data-theme=dark]) .has-error .pds-input__field{background-color:var(--pine-color-red-950)}.has-error .pds-input__field:focus-visible{outline-color:var(--pine-color-focus-ring-danger);position:relative;z-index:1}.pds-input__error-message,.pds-input__helper-message{color:var(--pine-color-text-message);font:var(--pine-typography-body-sm-medium);-webkit-margin-after:var(--pine-dimension-none);margin-block-end:var(--pine-dimension-none);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-input__error-message{color:var(--pds-input-error-color);display:-ms-flexbox;display:flex;gap:var(--pine-dimension-2xs)}.pds-input__error-message pds-icon{-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025)}.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-input__field::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;background-color:var(--pds-input-placeholder-color);cursor:pointer;height:var(--pine-dimension-sm);-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.646 3.646a.5.5 0 0 1 .708 0L8 7.293l3.646-3.647a.5.5 0 0 1 .708.708L8.707 8l3.647 3.646a.5.5 0 0 1-.708.708L8 8.707l-3.646 3.647a.5.5 0 0 1-.708-.708L7.293 8 3.646 4.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.646 3.646a.5.5 0 0 1 .708 0L8 7.293l3.646-3.647a.5.5 0 0 1 .708.708L8.707 8l3.647 3.646a.5.5 0 0 1-.708.708L8 8.707l-3.646 3.647a.5.5 0 0 1-.708-.708L7.293 8 3.646 4.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E\");-webkit-mask-size:contain;mask-size:contain;width:var(--pine-dimension-sm)}"};var g=e("pds_input",function(){function e(e){var n=this;r(this,e);this.pdsBlur=i(this,"pdsBlur");this.pdsChange=i(this,"pdsChange");this.pdsFocus=i(this,"pdsFocus");this.pdsInput=i(this,"pdsInput");this.pdsKeyDown=i(this,"pdsKeyDown");this.inheritedAttributes={};this.isComposing=false;this.hasLoaded=false;this.hasPrefix=false;this.hasSuffix=false;this.hasPrepend=false;this.hasAppend=false;this.hasAction=false;this.type="text";this.value="";this.hasFocus=false;this.onInputEvent=function(e){var r=e.target;if(r){n.value=r.value||""}n.emitInputChange(e)};this.onChangeEvent=function(e){n.emitValueChange(e)};this.onBlurEvent=function(e){n.hasFocus=false;if(n.focusedValue!==n.value){n.emitValueChange(e)}n.pdsBlur.emit(e)};this.onFocusEvent=function(e){n.hasFocus=true;n.focusedValue=n.value;n.pdsFocus.emit(e)};this.onCompositionStart=function(){n.isComposing=true};this.onCompositionEnd=function(){n.isComposing=false};this.onKeyDownEvent=function(e){n.pdsKeyDown.emit(e)}}e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.nativeInput){this.nativeInput.focus()}return[2]}))}))};e.prototype.observeAddonResize=function(){var e=this;var r;if(typeof ResizeObserver==="undefined")return;(r=this.resizeObserver)===null||r===void 0?void 0:r.disconnect();this.resizeObserver=new ResizeObserver((function(){e.updateAddonWidths()}));if(this.prefixEl){this.resizeObserver.observe(this.prefixEl)}if(this.suffixEl){this.resizeObserver.observe(this.suffixEl)}};e.prototype.updateAddonWidths=function(){var e=this;requestAnimationFrame((function(){if(e.prefixEl){var r=e.prefixEl.offsetWidth;e.el.style.setProperty("--prefix-width","".concat(r,"px"))}if(e.suffixEl){var i=e.suffixEl.offsetWidth;e.el.style.setProperty("--suffix-width","".concat(i,"px"))}}))};e.prototype.renderPrefix=function(){var e=this;var r=this.el.querySelector('[slot="prefix"]')!==null;if(r){return n("div",{class:"pds-input__prefix",part:"prefix",ref:function(r){return e.prefixEl=r}},n("slot",{name:"prefix",onSlotchange:function(){return e.updateAddonWidths()}}))}return null};e.prototype.renderSuffix=function(){var e=this;var r=this.el.querySelector('[slot="suffix"]')!==null;if(r){return n("div",{class:"pds-input__suffix",part:"suffix",ref:function(r){return e.suffixEl=r}},n("slot",{name:"suffix",onSlotchange:function(){return e.updateAddonWidths()}}))}return null};e.prototype.renderPrepend=function(){var e=this.el.querySelector('[slot="prepend"]')!==null;if(e){return n("div",{class:"pds-input__prepend",part:"prepend"},n("slot",{name:"prepend"}))}return null};e.prototype.renderAppend=function(){var e=this.el.querySelector('[slot="append"]')!==null;if(e){return n("div",{class:"pds-input__append",part:"append"},n("slot",{name:"append"}))}return null};e.prototype.renderAction=function(){var e=this.el.querySelector('[slot="action"]')!==null;if(e){return n("div",{class:"pds-input__action",part:"action"},n("slot",{name:"action"}))}return null};e.prototype.componentWillLoad=function(){this.inheritedAttributes=Object.assign({},p(this.el));this.hasPrefix=this.el.querySelector('[slot="prefix"]')!==null;this.hasSuffix=this.el.querySelector('[slot="suffix"]')!==null;this.hasPrepend=this.el.querySelector('[slot="prepend"]')!==null;this.hasAppend=this.el.querySelector('[slot="append"]')!==null;this.hasAction=this.el.querySelector('[slot="action"]')!==null;this.originalPdsInput=this.pdsInput};e.prototype.connectedCallback=function(){if(this.el.attachInternals&&!this.internals){this.internals=this.el.attachInternals()}if(this.hasLoaded&&!this.resizeObserver){this.updateAddonWidths();this.observeAddonResize()}};e.prototype.disconnectedCallback=function(){var e;l(this.pdsInput);(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect();this.resizeObserver=undefined};e.prototype.componentDidLoad=function(){this.hasLoaded=true;this.debounceChanged();this.updateAddonWidths();this.observeAddonResize();this.updateFormValue()};e.prototype.debounceChanged=function(){var e=this,r=e.pdsInput,i=e.debounce,n=e.originalPdsInput;this.pdsInput=i===undefined?n!==null&&n!==void 0?n:r:u(r,i);c(r)};e.prototype.valueChanged=function(){var e=this.nativeInput;var r=this.getValue();if(e&&e.value!==r&&!this.isComposing){e.value=r}this.updateFormValue()};e.prototype.getValue=function(){return typeof this.value==="number"?this.value.toString():(this.value||"").toString()};e.prototype.emitValueChange=function(e){var r=this.value;var i=r==null?r:r.toString();this.focusedValue=i;this.pdsChange.emit({value:i,event:e})};e.prototype.emitInputChange=function(e){var r=this.value;var i=r==null?r:r.toString();this.pdsInput.emit({value:i,event:e})};e.prototype.updateFormValue=function(){if(s())return;if(this.internals&&this.internals.setFormValue){var e=this.getValue();this.internals.setFormValue(e||null);if(this.nativeInput&&this.internals&&this.internals.setValidity){this.internals.setValidity(this.nativeInput.validity,this.nativeInput.validationMessage,this.nativeInput)}}};e.prototype.formResetCallback=function(){this.value="";this.updateFormValue()};e.prototype.formDisabledCallback=function(e){this.disabled=e};e.prototype.formStateRestoreCallback=function(e){if(typeof e==="string"){this.value=e}else if(e instanceof FormData&&this.name){var r=e.get(this.name);if(typeof r==="string"){this.value=r}}};e.prototype.render=function(){var e=this;var r=this,i=r.componentId,o=r.disabled,s=r.errorMessage,p=r.helperMessage,l=r.invalid,u=l===void 0?false:l,c=r.label;var b=this.getValue();var f={"pds-input__field-wrapper":true,"has-focus":this.hasFocus,"has-error":u||!!s,"is-disabled":o,"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix,"has-prepend":this.hasPrepend,"has-append":this.hasAppend};return n(t,{key:"1706e29a68d25a8bb83c36d6bddace04a448f6f5","aria-disabled":this.disabled?"true":null,"aria-readonly":this.readonly?"true":null,"has-prefix":this.hasPrefix?"true":null,"has-suffix":this.hasSuffix?"true":null,"has-prepend":this.hasPrepend?"true":null,"has-append":this.hasAppend?"true":null,"has-action":this.hasAction&&!this.hideLabel?"true":null,"full-width":this.fullWidth?"true":null},n("div",{key:"1488b6ea995c4ffc4068757f566494c0ac073950",class:"pds-input"},c&&n("div",{key:"e2fe4e461e626648ec51882e92e02fea179e3e13",class:{"pds-input__label-wrapper":true,"visually-hidden":this.hideLabel}},n("label",{key:"c926a6fbb3130afdc6c86d509b92fb6650391c4b",htmlFor:i,class:"pds-input__label"},n("span",{key:"dbbaf9d0db49f949f69f1faf848e7c6193e32793"},c,this.required&&n("span",{key:"42e6325a0f5ee276ed92cf2eb71942c268c3d1aa",class:"pds-input__required-indicator"}," *"))),!this.hideLabel&&this.renderAction()),n("div",{key:"4715743733f2d7d3e4edf9ac4ab6d69ffde04d00",class:f},this.renderPrepend(),this.renderPrefix(),n("input",Object.assign({key:"438ac0fc6d497a8227c83e628d29d4633ffc208a",ref:function(r){return e.nativeInput=r},class:"pds-input__field","aria-describedby":d(i,u,p,s),"aria-invalid":u?"true":undefined,autocomplete:this.autocomplete,disabled:o,id:i,max:this.max,maxlength:this.maxlength,min:this.min,minlength:this.minlength,name:this.name,pattern:this.pattern,placeholder:this.placeholder,readOnly:this.readonly,required:this.required,step:this.step,type:this.type,value:b,onInput:this.onInputEvent,onChange:this.onChangeEvent,onBlur:this.onBlurEvent,onFocus:this.onFocusEvent,onKeyDown:this.onKeyDownEvent,onCompositionstart:this.onCompositionStart,onCompositionend:this.onCompositionEnd},this.inheritedAttributes)),this.renderSuffix(),this.renderAppend()),p&&n("p",{key:"43b5c3a332072f19a38be316565602932c61504d",class:"pds-input__helper-message",id:a(i,"helper")},p),s&&n("p",{key:"54fd4fc2dcbc645377edbe4d04cfd82c7d1591e8",class:"pds-input__error-message",id:a(i,"error")},n("pds-icon",{key:"2bd509a575ec5c7a548955dd7f706d7c1d42557e","aria-hidden":"true",icon:h,size:"small"}),s)))};Object.defineProperty(e,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{debounce:[{debounceChanged:0}],value:[{valueChanged:0}]}},enumerable:false,configurable:true});return e}());g.style=b()+(f()+v())}}}));
1
+ var __awaiter=this&&this.__awaiter||function(e,r,i,n){function t(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,o){function s(e){try{a(n.next(e))}catch(e){o(e)}}function d(e){try{a(n["throw"](e))}catch(e){o(e)}}function a(e){e.done?i(e.value):t(e.value).then(s,d)}a((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,t,o,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=d(0),s["throw"]=d(1),s["return"]=d(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function d(e){return function(r){return a([e,r])}}function a(d){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,d[0]&&(i=0)),i)try{if(n=1,t&&(o=d[0]&2?t["return"]:d[0]?t["throw"]||((o=t["return"])&&o.call(t),0):t.next)&&!(o=o.call(t,d[1])).done)return o;if(t=0,o)d=[d[0]&2,o.value];switch(d[0]){case 0:case 1:o=d;break;case 4:i.label++;return{value:d[1],done:false};case 5:i.label++;t=d[1];d=[0];continue;case 7:d=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){i=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){i.label=d[1];break}if(d[0]===6&&i.label<o[1]){i.label=o[1];o=d;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(d);break}if(o[2])i.ops.pop();i.trys.pop();continue}d=r.call(e,i)}catch(e){d=[6,e];t=0}finally{n=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:true}}};System.register(["./p-BK1sLRfg.system.js","./p-BxIzb-Wc.system.js","./p-CNXspDYs.system.js","./p-Dx8tEj0U.system.js","./p-vFsJv75D.system.js","./p-BZ1l3LGl.system.js"],(function(e){"use strict";var r,i,n,t,o,s,d,a,p,l,u,c,h;return{setters:[function(e){r=e.r;i=e.c;n=e.h;t=e.H;o=e.a},function(e){s=e.i;d=e.a;a=e.m},function(e){p=e.i},function(e){l=e.c;u=e.d;c=e.f},function(e){h=e.b},null],execute:function(){var b=function(){return":host{--pine-input-color-background-danger:var(--pine-color-red-050)}"};var f=function(){return":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)}"};var v=function(){return":host{--pds-input-background:var(--pine-color-background-container);--pds-input-border-color:var(--pine-color-border);--pds-input-border-color-hover:var(--pine-color-border-hover);--pds-input-border-color-disabled:var(--pine-color-border-disabled);--pds-input-border-radius:var(--pine-dimension-125);--pds-input-border-width:var(--pine-border-width-thin);--pds-input-padding-x:var(--pine-dimension-150);--pds-input-padding-y:calc(var(--pine-dimension-xs) - var(--pine-border-width));--pds-input-font:var(--pine-typography-body);--pds-input-text-color:var(--pine-color-text-strong);--pds-input-placeholder-color:var(--pine-color-text-placeholder);--pds-input-icon-color:var(--pine-color-text-secondary);--pds-input-disabled-background:var(--pine-color-background-container-disabled);--pds-input-disabled-text-color:var(--pine-color-text-disabled);--pds-input-error-color:var(--pine-color-text-message-danger);--pds-input-error-background:var(--pine-input-color-background-danger);--pds-input-error-border:var(--pine-color-border-danger);--pds-input-error-border-hover:var(--pine-color-border-danger-hover);--pds-input-addon-background:var(--pine-color-background-subtle);--pds-input-addon-color:var(--pine-color-text-secondary);--pds-input-field-min-height:var(--pine-dimension-450);--box-shadow-focus:0 0 0 1px var(--pine-color-background-container), 0 0 0 3px var(--pine-color-focus-ring);--box-shadow-focus-error:0 0 0 1px var(--pine-color-background-container), 0 0 0 3px var(--pine-color-focus-ring-danger);display:inline}:host pds-select::part(select){background-color:var(--pds-input-error-background);border-color:var(--pds-input-error-border)}:host::part(prefix),:host::part(suffix){-ms-flex-align:center;align-items:center;color:var(--pine-color-text-label-readonly);display:-ms-flexbox;display:flex;height:100%;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);white-space:nowrap;z-index:calc(var(--pine-z-index-raised) - 1)}:host::part(prefix){border-end-start-radius:var(--pds-input-border-radius);-webkit-border-end:var(--pine-border-width-none);border-inline-end:var(--pine-border-width-none);border-start-start-radius:var(--pds-input-border-radius);inset-inline-start:var(--pds-input-padding-x)}:host::part(suffix){border-end-end-radius:var(--pds-input-border-radius);-webkit-border-start:var(--pine-border-width-none);border-inline-start:var(--pine-border-width-none);border-start-end-radius:var(--pds-input-border-radius);inset-inline-end:var(--pds-input-padding-x)}:host::part(prepend),:host::part(append){-ms-flex-align:center;align-items:center;background-color:var(--pds-input-addon-background);border:var(--pds-input-border-width) solid var(--pds-input-border-color);color:var(--pds-input-addon-color);display:-ms-flexbox;display:flex;overflow:visible}:host::part(prepend){border-end-start-radius:var(--pds-input-border-radius);-webkit-border-end:var(--pine-border-width-none);border-inline-end:var(--pine-border-width-none);border-start-start-radius:var(--pds-input-border-radius)}:host::part(append){border-end-end-radius:var(--pds-input-border-radius);-webkit-border-start:var(--pine-border-width-none);border-inline-start:var(--pine-border-width-none);border-start-end-radius:var(--pds-input-border-radius)}:host([has-prepend]) ::slotted(pds-button[slot=prepend]){--pds-button-background:var(--pds-input-addon-background);--pds-button-border:var(--pine-border-width-none);--pds-button-border-radius:var(--pine-dimension-none);--pds-button-border-radius-end-end:var(--pine-dimension-none);--pds-button-border-radius-start-end:var(--pine-dimension-none);--pds-button-border-radius-start-start:var(--pds-input-border-radius);--pds-button-border-radius-end-start:var(--pds-input-border-radius);--pds-button-min-height:calc(var(--pine-dimension-450) - calc(2 * var(--pine-border-width)));--pds-button-box-shadow-focus:0 0 0 3px var(--pine-color-focus-ring);--pds-button-outline-focus:none}:host([has-append]) ::slotted(pds-button[slot=append]){--pds-button-background:var(--pds-input-addon-background);--pds-button-border:var(--pine-border-width-none);--pds-button-border-radius:var(--pine-dimension-none);--pds-button-border-radius-end-start:var(--pine-dimension-none);--pds-button-border-radius-start-start:var(--pine-dimension-none);--pds-button-border-radius-start-end:var(--pds-input-border-radius);--pds-button-border-radius-end-end:var(--pds-input-border-radius);--pds-button-min-height:calc(var(--pine-dimension-450) - calc(2 * var(--pine-border-width)));--pds-button-box-shadow-focus:0 0 0 3px var(--pine-color-focus-ring);--pds-button-outline-focus:none}:host([has-prepend]) ::slotted(pds-select[slot=prepend]){--pds-select-background:var(--pds-input-addon-background);--pds-select-border:var(--pine-border-width-none);--pds-select-border-radius-end-end:var(--pine-dimension-none);--pds-select-border-radius-end-start:var(--pds-input-border-radius);--pds-select-border-radius-start-end:var(--pine-dimension-none);--pds-select-border-radius-start-start:var(--pds-input-border-radius);--pds-select-min-height:calc(var(--pine-dimension-450) - calc(2 * var(--pine-border-width)))}:host([has-append]) ::slotted(pds-select[slot=append]){--pds-select-background:var(--pds-input-addon-background);--pds-select-border:var(--pine-border-width-none);--pds-select-border-radius-end-end:var(--pds-input-border-radius);--pds-select-border-radius-end-start:var(--pine-dimension-none);--pds-select-border-radius-start-end:var(--pds-input-border-radius);--pds-select-border-radius-start-start:var(--pine-dimension-none);--pds-select-min-height:calc(var(--pine-dimension-450) - calc(2 * var(--pine-border-width)))}:host([aria-readonly=true]) input{background-color:var(--pine-color-background-container-disabled);color:var(--pine-color-text-readonly)}:host([aria-disabled=true])::part(prepend),:host([aria-disabled=true])::part(append){background-color:var(--pds-input-disabled-background);border:var(--pds-input-border-width) solid var(--pds-input-border-color-disabled)}:host([full-width=true]){width:100%}:host([invalid=true])::part(prepend),:host([invalid=true])::part(append){background-color:var(--pds-input-error-background);border:var(--pds-input-border-width) solid var(--pds-input-error-border)}:host([highlight]:not([disabled]):not([aria-disabled=true]):not([invalid]):not([aria-readonly=true])){--pds-input-background:var(--pine-color-accent-disabled);--pds-input-border-color:var(--pine-color-accent);--pds-input-border-color-hover:var(--pine-color-accent-hover);--pds-input-text-color:var(--pine-color-text-accent)}:host([highlight]:not([disabled]):not([aria-disabled=true]):not([invalid]):not([aria-readonly=true]))::part(prefix),:host([highlight]:not([disabled]):not([aria-disabled=true]):not([invalid]):not([aria-readonly=true]))::part(suffix){color:var(--pine-color-text-accent)}:host([highlight]:not([disabled]):not([aria-disabled=true]):not([invalid]):not([aria-readonly=true])) .pds-input__field:focus-visible{outline-color:var(--pine-color-focus-ring)}.pds-input{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.pds-input__label-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}.pds-input__label{color:var(--pine-color-text-strong);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}.pds-input__label-wrapper .pds-input__label{-webkit-margin-after:0;margin-block-end:0}.pds-input__action{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;gap:var(--pine-dimension-xs);-webkit-margin-start:var(--pine-dimension-xs);margin-inline-start:var(--pine-dimension-xs)}.pds-input__field-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;position:relative;width:100%}.pds-input__field-wrapper.has-prefix .pds-input__field{-webkit-padding-start:calc(2 * var(--pds-input-padding-x) + var(--prefix-width, 1em));padding-inline-start:calc(2 * var(--pds-input-padding-x) + var(--prefix-width, 1em))}.pds-input__field-wrapper.has-suffix .pds-input__field{-webkit-padding-end:calc(2 * var(--pds-input-padding-x) + var(--suffix-width, 1em));padding-inline-end:calc(2 * var(--pds-input-padding-x) + var(--suffix-width, 1em))}.pds-input__field-wrapper.has-prepend .pds-input__field{border-end-start-radius:var(--pine-dimension-none);border-start-start-radius:var(--pine-dimension-none)}.pds-input__field-wrapper.has-append .pds-input__field{border-end-end-radius:var(--pine-dimension-none);border-start-end-radius:var(--pine-dimension-none)}.pds-input__field{background:var(--pds-input-background);border:var(--pds-input-border-width) solid var(--pds-input-border-color);border-radius:var(--pds-input-border-radius);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--pds-input-text-color);-ms-flex:1;flex:1;font:var(--pds-input-font);letter-spacing:var(--pine-letter-spacing);min-height:var(--pds-input-field-min-height);min-width:var(--pine-dimension-none);padding:var(--pds-input-padding-y) var(--pds-input-padding-x);-webkit-transition:border-color var(--pine-motion-duration-base) ease;transition:border-color var(--pine-motion-duration-base) ease;width:100%}.pds-input__field:hover:not(:disabled){border-color:var(--pds-input-border-color-hover)}.pds-input__field:disabled{background:var(--pds-input-disabled-background);border-color:var(--pine-color-border-disabled);color:var(--pds-input-disabled-text-color);cursor:not-allowed}.pds-input__field:disabled::-webkit-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-input__field:disabled::-moz-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-input__field:disabled:-ms-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-input__field:disabled::-ms-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-input__field:disabled::placeholder{color:var(--pine-color-text-placeholder-disabled)}.has-error .pds-input__field:hover:not(:disabled){border-color:var(--pds-input-error-border-hover)}:host-context([data-theme=dark]) .has-error .pds-input__field:hover:not(:disabled){border-color:var(--pine-color-red-950)}.pds-input__field:focus-visible:not(.has-error){border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width);position:relative;z-index:1}:host([has-prepend]) .pds-input__field:focus-visible:not(.has-error),:host([has-append]) .pds-input__field:focus-visible:not(.has-error),:host([has-prefix]) .pds-input__field:focus-visible:not(.has-error),:host([has-suffix]) .pds-input__field:focus-visible:not(.has-error){outline-offset:var(--pine-dimension-none)}.pds-input__field::-webkit-input-placeholder{color:var(--pds-input-placeholder-color)}.pds-input__field::-moz-placeholder{color:var(--pds-input-placeholder-color)}.pds-input__field:-ms-input-placeholder{color:var(--pds-input-placeholder-color)}.pds-input__field::-ms-input-placeholder{color:var(--pds-input-placeholder-color)}.pds-input__field::placeholder{color:var(--pds-input-placeholder-color)}.pds-input__field:-moz-placeholder-shown{text-overflow:ellipsis}.pds-input__field:-ms-input-placeholder{text-overflow:ellipsis}.pds-input__field:placeholder-shown{text-overflow:ellipsis}.has-error .pds-input__field{background-color:var(--pds-input-error-background);border-color:var(--pds-input-error-border)}:host-context([data-theme=dark]) .has-error .pds-input__field{background-color:var(--pine-color-red-950)}.has-error .pds-input__field:focus-visible{outline-color:var(--pine-color-focus-ring-danger);position:relative;z-index:1}.pds-input__error-message,.pds-input__helper-message{color:var(--pine-color-text-message);font:var(--pine-typography-body-sm-medium);-webkit-margin-after:var(--pine-dimension-none);margin-block-end:var(--pine-dimension-none);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-input__error-message{color:var(--pds-input-error-color);display:-ms-flexbox;display:flex;gap:var(--pine-dimension-2xs)}.pds-input__error-message pds-icon{-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025)}.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-input__field::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;background-color:var(--pds-input-placeholder-color);cursor:pointer;height:var(--pine-dimension-sm);-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.646 3.646a.5.5 0 0 1 .708 0L8 7.293l3.646-3.647a.5.5 0 0 1 .708.708L8.707 8l3.647 3.646a.5.5 0 0 1-.708.708L8 8.707l-3.646 3.647a.5.5 0 0 1-.708-.708L7.293 8 3.646 4.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.646 3.646a.5.5 0 0 1 .708 0L8 7.293l3.646-3.647a.5.5 0 0 1 .708.708L8.707 8l3.647 3.646a.5.5 0 0 1-.708.708L8 8.707l-3.646 3.647a.5.5 0 0 1-.708-.708L7.293 8 3.646 4.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E\");-webkit-mask-size:contain;mask-size:contain;width:var(--pine-dimension-sm)}"};var g=e("pds_input",function(){function e(e){var n=this;r(this,e);this.pdsBlur=i(this,"pdsBlur");this.pdsChange=i(this,"pdsChange");this.pdsFocus=i(this,"pdsFocus");this.pdsInput=i(this,"pdsInput");this.pdsKeyDown=i(this,"pdsKeyDown");this.inheritedAttributes={};this.isComposing=false;this.hasLoaded=false;this.hasPrefix=false;this.hasSuffix=false;this.hasPrepend=false;this.hasAppend=false;this.hasAction=false;this.type="text";this.value="";this.hasFocus=false;this.onInputEvent=function(e){var r=e.target;if(r){n.value=r.value||""}n.emitInputChange(e)};this.onChangeEvent=function(e){n.emitValueChange(e)};this.onBlurEvent=function(e){n.hasFocus=false;if(n.focusedValue!==n.value){n.emitValueChange(e)}n.pdsBlur.emit(e)};this.onFocusEvent=function(e){n.hasFocus=true;n.focusedValue=n.value;n.pdsFocus.emit(e)};this.onCompositionStart=function(){n.isComposing=true};this.onCompositionEnd=function(){n.isComposing=false};this.onKeyDownEvent=function(e){n.pdsKeyDown.emit(e)}}e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.nativeInput){this.nativeInput.focus()}return[2]}))}))};e.prototype.observeAddonResize=function(){var e=this;var r;if(typeof ResizeObserver==="undefined")return;(r=this.resizeObserver)===null||r===void 0?void 0:r.disconnect();this.resizeObserver=new ResizeObserver((function(){e.updateAddonWidths()}));if(this.prefixEl){this.resizeObserver.observe(this.prefixEl)}if(this.suffixEl){this.resizeObserver.observe(this.suffixEl)}};e.prototype.updateAddonWidths=function(){var e=this;requestAnimationFrame((function(){if(e.prefixEl){var r=e.prefixEl.offsetWidth;e.el.style.setProperty("--prefix-width","".concat(r,"px"))}if(e.suffixEl){var i=e.suffixEl.offsetWidth;e.el.style.setProperty("--suffix-width","".concat(i,"px"))}}))};e.prototype.renderPrefix=function(){var e=this;var r=this.el.querySelector('[slot="prefix"]')!==null;if(r){return n("div",{class:"pds-input__prefix",part:"prefix",ref:function(r){return e.prefixEl=r}},n("slot",{name:"prefix",onSlotchange:function(){return e.updateAddonWidths()}}))}return null};e.prototype.renderSuffix=function(){var e=this;var r=this.el.querySelector('[slot="suffix"]')!==null;if(r){return n("div",{class:"pds-input__suffix",part:"suffix",ref:function(r){return e.suffixEl=r}},n("slot",{name:"suffix",onSlotchange:function(){return e.updateAddonWidths()}}))}return null};e.prototype.renderPrepend=function(){var e=this.el.querySelector('[slot="prepend"]')!==null;if(e){return n("div",{class:"pds-input__prepend",part:"prepend"},n("slot",{name:"prepend"}))}return null};e.prototype.renderAppend=function(){var e=this.el.querySelector('[slot="append"]')!==null;if(e){return n("div",{class:"pds-input__append",part:"append"},n("slot",{name:"append"}))}return null};e.prototype.renderAction=function(){var e=this.el.querySelector('[slot="action"]')!==null;if(e){return n("div",{class:"pds-input__action",part:"action"},n("slot",{name:"action"}))}return null};e.prototype.componentWillLoad=function(){this.inheritedAttributes=Object.assign({},p(this.el));this.hasPrefix=this.el.querySelector('[slot="prefix"]')!==null;this.hasSuffix=this.el.querySelector('[slot="suffix"]')!==null;this.hasPrepend=this.el.querySelector('[slot="prepend"]')!==null;this.hasAppend=this.el.querySelector('[slot="append"]')!==null;this.hasAction=this.el.querySelector('[slot="action"]')!==null;this.originalPdsInput=this.pdsInput};e.prototype.connectedCallback=function(){if(this.el.attachInternals&&!this.internals){this.internals=this.el.attachInternals()}if(this.hasLoaded&&!this.resizeObserver){this.updateAddonWidths();this.observeAddonResize()}};e.prototype.disconnectedCallback=function(){var e;l(this.pdsInput);(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect();this.resizeObserver=undefined};e.prototype.componentDidLoad=function(){this.hasLoaded=true;this.debounceChanged();this.updateAddonWidths();this.observeAddonResize();this.updateFormValue()};e.prototype.debounceChanged=function(){var e=this,r=e.pdsInput,i=e.debounce,n=e.originalPdsInput;this.pdsInput=i===undefined?n!==null&&n!==void 0?n:r:u(r,i);c(r)};e.prototype.valueChanged=function(){var e=this.nativeInput;var r=this.getValue();if(e&&e.value!==r&&!this.isComposing){e.value=r}this.updateFormValue()};e.prototype.getValue=function(){return typeof this.value==="number"?this.value.toString():(this.value||"").toString()};e.prototype.emitValueChange=function(e){var r=this.value;var i=r==null?r:r.toString();this.focusedValue=i;this.pdsChange.emit({value:i,event:e})};e.prototype.emitInputChange=function(e){var r=this.value;var i=r==null?r:r.toString();this.pdsInput.emit({value:i,event:e})};e.prototype.updateFormValue=function(){if(s())return;if(this.internals&&this.internals.setFormValue){var e=this.getValue();this.internals.setFormValue(e||null);if(this.nativeInput&&this.internals&&this.internals.setValidity){this.internals.setValidity(this.nativeInput.validity,this.nativeInput.validationMessage,this.nativeInput)}}};e.prototype.formResetCallback=function(){this.value="";this.updateFormValue()};e.prototype.formDisabledCallback=function(e){this.disabled=e};e.prototype.formStateRestoreCallback=function(e){if(typeof e==="string"){this.value=e}else if(e instanceof FormData&&this.name){var r=e.get(this.name);if(typeof r==="string"){this.value=r}}};e.prototype.render=function(){var e=this;var r=this,i=r.componentId,o=r.disabled,s=r.errorMessage,p=r.helperMessage,l=r.invalid,u=l===void 0?false:l,c=r.label;var b=this.getValue();var f={"pds-input__field-wrapper":true,"has-focus":this.hasFocus,"has-error":u||!!s,"is-disabled":o,"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix,"has-prepend":this.hasPrepend,"has-append":this.hasAppend};return n(t,{key:"1706e29a68d25a8bb83c36d6bddace04a448f6f5","aria-disabled":this.disabled?"true":null,"aria-readonly":this.readonly?"true":null,"has-prefix":this.hasPrefix?"true":null,"has-suffix":this.hasSuffix?"true":null,"has-prepend":this.hasPrepend?"true":null,"has-append":this.hasAppend?"true":null,"has-action":this.hasAction&&!this.hideLabel?"true":null,"full-width":this.fullWidth?"true":null},n("div",{key:"1488b6ea995c4ffc4068757f566494c0ac073950",class:"pds-input"},c&&n("div",{key:"e2fe4e461e626648ec51882e92e02fea179e3e13",class:{"pds-input__label-wrapper":true,"visually-hidden":this.hideLabel}},n("label",{key:"c926a6fbb3130afdc6c86d509b92fb6650391c4b",htmlFor:i,class:"pds-input__label"},n("span",{key:"dbbaf9d0db49f949f69f1faf848e7c6193e32793"},c,this.required&&n("span",{key:"42e6325a0f5ee276ed92cf2eb71942c268c3d1aa",class:"pds-input__required-indicator"}," *"))),!this.hideLabel&&this.renderAction()),n("div",{key:"4715743733f2d7d3e4edf9ac4ab6d69ffde04d00",class:f},this.renderPrepend(),this.renderPrefix(),n("input",Object.assign({key:"438ac0fc6d497a8227c83e628d29d4633ffc208a",ref:function(r){return e.nativeInput=r},class:"pds-input__field","aria-describedby":d(i,u,p,s),"aria-invalid":u?"true":undefined,autocomplete:this.autocomplete,disabled:o,id:i,max:this.max,maxlength:this.maxlength,min:this.min,minlength:this.minlength,name:this.name,pattern:this.pattern,placeholder:this.placeholder,readOnly:this.readonly,required:this.required,step:this.step,type:this.type,value:b,onInput:this.onInputEvent,onChange:this.onChangeEvent,onBlur:this.onBlurEvent,onFocus:this.onFocusEvent,onKeyDown:this.onKeyDownEvent,onCompositionstart:this.onCompositionStart,onCompositionend:this.onCompositionEnd},this.inheritedAttributes)),this.renderSuffix(),this.renderAppend()),p&&n("p",{key:"43b5c3a332072f19a38be316565602932c61504d",class:"pds-input__helper-message",id:a(i,"helper")},p),s&&n("p",{key:"54fd4fc2dcbc645377edbe4d04cfd82c7d1591e8",class:"pds-input__error-message",id:a(i,"error")},n("pds-icon",{key:"2bd509a575ec5c7a548955dd7f706d7c1d42557e","aria-hidden":"true",icon:h,size:"small"}),s)))};Object.defineProperty(e,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{debounce:[{debounceChanged:0}],value:[{valueChanged:0}]}},enumerable:false,configurable:true});return e}());g.style=b()+(f()+v())}}}));
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(e,i,t,r){function n(e){return e instanceof t?e:new t((function(i){i(e)}))}return new(t||(t=Promise))((function(t,a){function s(e){try{d(r.next(e))}catch(e){a(e)}}function o(e){try{d(r["throw"](e))}catch(e){a(e)}}function d(e){e.done?t(e.value):n(e.value).then(s,o)}d((r=r.apply(e,i||[])).next())}))};var __generator=this&&this.__generator||function(e,i){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,n,a,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=o(0),s["throw"]=o(1),s["return"]=o(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(i){return d([e,i])}}function d(o){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(t=0)),t)try{if(r=1,n&&(a=o[0]&2?n["return"]:o[0]?n["throw"]||((a=n["return"])&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;if(n=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:t.label++;return{value:o[1],done:false};case 5:t.label++;n=o[1];o=[0];continue;case 7:o=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){t.label=o[1];break}if(o[0]===6&&t.label<a[1]){t.label=a[1];a=o;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(o);break}if(a[2])t.ops.pop();t.trys.pop();continue}o=i.call(e,t)}catch(e){o=[6,e];n=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,i,t){if(t||arguments.length===2)for(var r=0,n=i.length,a;r<n;r++){if(a||!(r in i)){if(!a)a=Array.prototype.slice.call(i,0,r);a[r]=i[r]}}return e.concat(a||Array.prototype.slice.call(i))};System.register(["./p-BK1sLRfg.system.js","./p-BNTlHhoO.system.js","./p-vFsJv75D.system.js","./p-BxIzb-Wc.system.js","./p-BZsj6eAn.system.js","./p-BSRFZB4I.system.js","./p-wB2y8gR7.system.js","./p-BZ1l3LGl.system.js"],(function(e){"use strict";var i,t,r,n,a,s,o,d,l,u,c,p,h,v,f,b,m,_,g,k,y,w,x;return{setters:[function(e){i=e.r;t=e.c;r=e.h;n=e.H;a=e.a},function(e){s=e.a;o=e.c;d=e.o;l=e.f;u=e.b;c=e.s;p=e.h},function(e){h=e.i;v=e.j;f=e.k;b=e.m;m=e.r;_=e.n},function(e){g=e.i},function(e){k=e.r;y=e.f},function(e){w=e.a},function(e){x=e.f},null],execute:function(){var D=/^(\d{4})-(\d{2})-(\d{2})$/;function M(e){var i=D.exec((e!==null&&e!==void 0?e:"").trim());if(!i)return null;var t=i.map(Number),r=t[1],n=t[2],a=t[3];var s=new Date(Date.UTC(r,n-1,a));return s.getUTCFullYear()===r&&s.getUTCMonth()===n-1&&s.getUTCDate()===a?s:null}function j(e){return e.toISOString().slice(0,10)}function C(){var e=new Date;return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()))}function A(e,i){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()+i))}function S(e,i){var t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+i,1));var r=O(t.getUTCFullYear(),t.getUTCMonth());return new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),Math.min(e.getUTCDate(),r)))}function O(e,i){return new Date(Date.UTC(e,i+1,0)).getUTCDate()}function H(e,i){return!!e&&!!i&&e.getTime()===i.getTime()}function Y(e,i,t){if(i&&e<i)return i;if(t&&e>t)return t;return e}function z(e,i,t){return!!i&&e<i||!!t&&e>t}function P(e,i){return(e.getUTCDay()-i+7)%7}function T(e,i,t){var r=new Date(Date.UTC(e,i,1));var n=Array(P(r,t)).fill(null);for(var a=1;a<=O(e,i);a++){n.push(new Date(Date.UTC(e,i,a)))}while(n.length%7!==0)n.push(null);var s=[];for(var o=0;o<n.length;o+=7)s.push(n.slice(o,o+7));return s}function N(e){var i,t,r;var n=Intl.Locale;if(!n)return 0;try{var a=new n(e);var s=(t=(i=a.getWeekInfo)===null||i===void 0?void 0:i.call(a).firstDay)!==null&&t!==void 0?t:(r=a.weekInfo)===null||r===void 0?void 0:r.firstDay;return typeof s==="number"?s%7:0}catch(e){return 0}}function U(e,i){var t=L(e,{weekday:"short"});var r=L(e,{weekday:"long"});var n=Array.from({length:7},(function(e,t){return new Date(Date.UTC(2023,0,1+(i+t)%7))}));var a=n.map((function(e){return t.format(e).replace(/\.$/,"")}));var s=a.every((function(e){return/^[A-Za-z\u00C0-\u024F]+$/.test(e)}));var o=a.map((function(e){return e.slice(0,2)}));var d=s&&new Set(o.map((function(e){return e.toLowerCase()}))).size===7;return n.map((function(e,i){return{short:d?o[i]:t.format(e),long:r.format(e)}}))}function I(e){var i;try{return(i=Intl.DateTimeFormat.supportedLocalesOf(e)[0])!==null&&i!==void 0?i:"en-US"}catch(e){return"en-US"}}function L(e,i){return new Intl.DateTimeFormat(e,Object.assign(Object.assign({},i),{timeZone:"UTC",calendar:"gregory"}))}function E(e,i,t){return L(i,t).format(e)}var B=function(){function e(i){this.datepicker=i;this.copiedProperties=[];this.host=document.createElement("div");this.host.className=e.className;this.host.pdsDatepicker=i;this.host.style.display="contents";this.root=this.host.attachShadow({mode:"open"})}e.prototype.mount=function(e,i){if(!this.host.isConnected){x(this.datepicker).appendChild(this.host);this.copyContext(i)}else if(i!==this.locale){this.copyContext(i)}if(e.parentNode!==this.root)this.root.appendChild(e)};e.prototype.remove=function(){this.host.remove()};e.prototype.contains=function(e){return!!e&&(e===this.host||this.root.contains(e))};e.prototype.copyContext=function(e){var i=this;var t,r;this.locale=e;var n=this.datepicker.shadowRoot;if(n){if((t=n.adoptedStyleSheets)===null||t===void 0?void 0:t.length){this.root.adoptedStyleSheets=n.adoptedStyleSheets}else if(!this.root.querySelector("style")){n.querySelectorAll("style").forEach((function(e){return i.root.appendChild(e.cloneNode(true))}))}}var a=getComputedStyle(this.datepicker);this.host.dir=a.direction||"ltr";this.host.lang=e;this.copyCustomProperties(a);var s=(r=w("[data-theme]",this.datepicker)||null)===null||r===void 0?void 0:r.getAttribute("data-theme");if(s){this.host.setAttribute("data-theme",s)}else{this.host.removeAttribute("data-theme")}};e.prototype.copyCustomProperties=function(e){for(var i=0,t=this.copiedProperties;i<t.length;i++){var r=t[i];this.host.style.removeProperty(r)}this.copiedProperties=[];var n=this.host.parentElement;var a=n?getComputedStyle(n):null;for(var s=0;s<e.length;s++){var r=e[s];if(!r.startsWith("--"))continue;var o=e.getPropertyValue(r);if(a&&o===a.getPropertyValue(r))continue;this.host.style.setProperty(r,o.trim());this.copiedProperties.push(r)}};return e}();B.className="pds-datepicker-calendar-portal";var F={today:"Today",yesterday:"Yesterday","last-7-days":"Last 7 days","last-30-days":"Last 30 days","last-90-days":"Last 90 days","this-month":"This month","last-month":"Last month","this-quarter":"This quarter","last-quarter":"Last quarter","this-year":"This year","last-year":"Last year","year-to-date":"Year to date","last-12-months":"Last 12 months"};var q=function(e,i,t){return new Date(Date.UTC(e,i,t))};function R(e,i){var t=i.getUTCFullYear();var r=i.getUTCMonth();var n=r-r%3;switch(e){case"today":return[i,i];case"yesterday":return[A(i,-1),A(i,-1)];case"last-7-days":return[A(i,-6),i];case"last-30-days":return[A(i,-29),i];case"last-90-days":return[A(i,-89),i];case"this-month":return[q(t,r,1),q(t,r+1,0)];case"last-month":return[q(t,r-1,1),q(t,r,0)];case"this-quarter":return[q(t,n,1),q(t,n+3,0)];case"last-quarter":return[q(t,n-3,1),q(t,n,0)];case"this-year":return[q(t,0,1),q(t,11,31)];case"last-year":return[q(t-1,0,1),q(t-1,11,31)];case"year-to-date":return[q(t,0,1),i];case"last-12-months":return[S(i,-12),i];default:return null}}function Z(e,i){var t=typeof e==="string"?e.split(",").map((function(e){return e.trim()})).filter(Boolean).map((function(e){return{key:e}})):Array.isArray(e)?e:[];var r=[];for(var n=0,a=t;n<a.length;n++){var s=a[n];if(!s||typeof s.key!=="string")continue;var o=typeof s.start==="string"?M(s.start):null;var d=typeof s.end==="string"?M(s.end):null;var l=o&&d&&o<=d?[o,d]:R(s.key,i);var u=typeof s.label==="string"?s.label:F[s.key];if(l&&u)r.push({key:s.key,label:u,start:l[0],end:l[1]})}return r}function $(e,i,t){if(!i||!t)return undefined;return e.find((function(e){return e.start.getTime()===i.getTime()&&e.end.getTime()===t.getTime()}))}function K(e,i,t){return!z(e.start,i,t)&&!z(e.end,i,t)}var X=/^(\d{4}-\d{2}-\d{2})(?:[T ](\d{2}):(\d{2}))?$/;function G(e){var i=X.exec((e!==null&&e!==void 0?e:"").trim());if(!i)return null;var t=M(i[1]);if(!t)return null;if(i[2]===undefined)return{date:t,time:null};var r=Number(i[2]);var n=Number(i[3]);return r<24&&n<60?{date:t,time:"".concat(i[2],":").concat(i[3])}:null}var W="YYYY-MM-DD";var J=/\[([^\]]*)\]|YYYY|MMMM|MMM|MM|M|DD|D|HH|H|hh|h|mm|A|a/g;var Q=/HH|H|hh|h/;var V=/hh|h/;var ee=/A|a/;var ie=function(e){return e.replace(/\[[^\]]*\]/g,"")};function te(e,i,t){if(t===void 0){t=false}var r=(e===null||e===void 0?void 0:e.trim())||W;var n=ie(r);if(V.test(n)&&!ee.test(n))return"".concat(r," A");if(!i||Q.test(n))return r;return"".concat(r," ").concat(t?"h:mm A":"HH:mm")}var re=function(e,i){if(i===void 0){i=2}return String(e).padStart(i,"0")};var ne=new Map;function ae(e){var i=ne.get(e);if(!i){var t=function(i){var t=new Intl.DateTimeFormat(e,{month:i,timeZone:"UTC",calendar:"gregory"});return Array.from({length:12},(function(e,i){return t.format(new Date(Date.UTC(2023,i,1)))}))};var r=ge(e);i={months:t("long"),shortMonths:t("short"),am:r.am,pm:r.pm};ne.set(e,i)}return i}function se(e,i,t){if(t===void 0){t="en-US"}var r;var n=ae(t);var a=me((r=e.time)!==null&&r!==void 0?r:"00:00"),s=a[0],o=a[1];var d=s%12||12;var l=e.date.getUTCMonth();var u=s<12?n.am:n.pm;var c={YYYY:re(e.date.getUTCFullYear(),4),MMMM:n.months[l],MMM:n.shortMonths[l],MM:re(l+1),M:String(l+1),DD:re(e.date.getUTCDate()),D:String(e.date.getUTCDate()),HH:re(s),H:String(s),hh:re(d),h:String(d),mm:re(o),A:u,a:u.toLowerCase()};return i.replace(J,(function(e,i){return i!==null&&i!==void 0?i:c[e]}))}var oe=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")};var de=function(e){return oe(e).replace(/\s+/g,"\\s*")};var le=function(e){return"(".concat(e.map(oe).join("|"),")")};function ue(e,i,t){if(t===void 0){t="en-US"}var r,n,a,s,o,d,l,u,c,p;var h=ae(t);var v=ae("en-US");var f=[h.am,h.pm,v.am,v.pm];var b={YYYY:"(\\d{4})",MMMM:le(__spreadArray(__spreadArray([],h.months,true),v.months,true)),MMM:le(__spreadArray(__spreadArray([],h.shortMonths,true),v.shortMonths,true)),MM:"(\\d{1,2})",M:"(\\d{1,2})",DD:"(\\d{1,2})",D:"(\\d{1,2})",HH:"(\\d{1,2})",H:"(\\d{1,2})",hh:"(\\d{1,2})",h:"(\\d{1,2})",mm:"(\\d{2})",A:le(f),a:le(f)};var m=[];var _=function(){m.length=0;var e="";var t=0;i.replace(J,(function(r,n,a){e+=de(i.slice(t,a));if(n!==undefined){e+=de(n)}else{e+=b[r];m.push(r)}t=a+r.length;return r}));return new RegExp("^\\s*".concat(e).concat(de(i.slice(t)),"\\s*$"),"i")};var g=_().exec(e!==null&&e!==void 0?e:"");if(!g){b.mm="(\\d{1,2})";g=_().exec(e!==null&&e!==void 0?e:"")}if(!g)return null;var k=g;var y={};m.forEach((function(e,i){return y[e]=k[i+1]}));var w=function(e,i){if(e===undefined)return undefined;var t=i?[h.months,v.months]:[h.shortMonths,v.shortMonths];for(var r=0,n=t;r<n.length;r++){var a=n[r];var s=a.findIndex((function(i){return i.toLowerCase()===e.toLowerCase()}));if(s>=0)return s+1}return undefined};var x=Number(y.YYYY);var D=(n=(r=w(y.MMMM,true))!==null&&r!==void 0?r:w(y.MMM,false))!==null&&n!==void 0?n:Number((a=y.MM)!==null&&a!==void 0?a:y.M);var j=Number((s=y.DD)!==null&&s!==void 0?s:y.D);if(!y.YYYY||!D||!j)return null;var C=M("".concat(re(x,4),"-").concat(re(D),"-").concat(re(j)));if(!C)return null;var A=(l=(d=(o=y.HH)!==null&&o!==void 0?o:y.H)!==null&&d!==void 0?d:y.hh)!==null&&l!==void 0?l:y.h;if(A===undefined)return{date:C,time:null};var S=Number(A);var O=Number((u=y.mm)!==null&&u!==void 0?u:0);var H=(p=(c=y.A)!==null&&c!==void 0?c:y.a)===null||p===void 0?void 0:p.toLowerCase();if(y.hh!==undefined||y.h!==undefined){if(S<1||S>12)return null;var Y=H===h.pm.toLowerCase()||H===v.pm.toLowerCase();S=S%12+(Y?12:0)}return S<24&&O<60?{date:C,time:_e(S,O)}:null}function ce(e,i,t){if(i===void 0){i=W}if(t===void 0){t="en-US"}var r;return(r=ue(e,i,t))!==null&&r!==void 0?r:G(e)}function pe(e,i,t){if(i===void 0){i=W}if(t===void 0){t="en-US"}var r=(e!==null&&e!==void 0?e:"").trim();var n=new RegExp("".concat(oe(be),"|\\s+(?:–|—|-|to)\\s+").concat(i.includes("/")?"":"|\\s*/\\s*"),"gi");var a;while((a=n.exec(r))!==null){var s=ce(r.slice(0,a.index),i,t);var o=ce(r.slice(a.index+a[0].length),i,t);if(s&&o)return he(s,o)<=0?[s,o]:null}return null}function he(e,i){var t,r;var n=e.date.getTime()-i.date.getTime();if(n!==0)return n;return((t=e.time)!==null&&t!==void 0?t:"00:00").localeCompare((r=i.time)!==null&&r!==void 0?r:"00:00")}function ve(e){return e.time?"".concat(j(e.date),"T").concat(e.time):j(e.date)}function fe(e,i,t){if(t===void 0){t="en-US"}return se(e,i!==null&&i!==void 0?i:te(W,!!e.time),t)}var be=" – ";function me(e){var i=e.split(":").map(Number),t=i[0],r=i[1];return[t||0,r||0]}function _e(e,i){return"".concat(String(e).padStart(2,"0"),":").concat(String(i).padStart(2,"0"))}function ge(e){var i,t;var r=new Intl.DateTimeFormat(e,{hour:"numeric",timeZone:"UTC"});var n=!!r.resolvedOptions().hour12;var a=function(e){var i;return(i=r.formatToParts(new Date(Date.UTC(2023,0,1,e))).find((function(e){return e.type==="dayPeriod"})))===null||i===void 0?void 0:i.value};return{hour12:n,am:(i=a(1))!==null&&i!==void 0?i:"AM",pm:(t=a(13))!==null&&t!==void 0?t:"PM"}}var ke=function(){return':host{--pds-datepicker-day-size:var(--pine-dimension-500);--pds-datepicker-presets-width:200px;display:inline-block}:host([full-width]){display:block}pds-input{display:block}:host(.pds-datepicker--time) pds-input{min-width:220px}:host(.pds-datepicker--range) pds-input{min-width:260px}:host(.pds-datepicker--range.pds-datepicker--time) pds-input{min-width:min(380px, 100%)}.pds-datepicker__trigger,.pds-datepicker__clear{-ms-flex-align:center;align-items:center;background:transparent;border:0;border-radius:var(--pine-border-radius-sm);color:var(--pine-color-text-secondary);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-2xs)}.pds-datepicker__trigger:hover:not(:disabled),.pds-datepicker__clear:hover:not(:disabled){background:var(--pine-color-background-muted);color:var(--pine-color-text-strong)}.pds-datepicker__trigger:focus-visible,.pds-datepicker__clear:focus-visible{outline:var(--pine-outline-focus)}.pds-datepicker__trigger:disabled,.pds-datepicker__clear:disabled{color:var(--pine-color-text-disabled);cursor:not-allowed}.pds-datepicker__clear{-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs)}.pds-datepicker__nav{-ms-flex-align:center;align-items:center;background:var(--pine-color-secondary);border:var(--pine-border);border-radius:var(--pine-border-radius-full);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--pine-color-text-secondary);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;height:var(--pine-dimension-400);-ms-flex-pack:center;justify-content:center;padding:0;width:var(--pine-dimension-400)}.pds-datepicker__nav:hover:not(:disabled){background:var(--pine-color-secondary-hover);border-color:var(--pine-color-border-hover)}.pds-datepicker__nav:focus-visible{outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-datepicker__nav:disabled{border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-secondary-disabled);cursor:not-allowed}.pds-datepicker__nav:dir(rtl) pds-icon{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.pds-datepicker__dialog:focus{outline:none}.pds-datepicker__dialog{background:var(--pine-color-background-overlay);border-radius:var(--pine-dimension-150);-webkit-box-shadow:var(--pine-box-shadow-200);box-shadow:var(--pine-box-shadow-200);-webkit-box-sizing:border-box;box-sizing:border-box;left:0;max-height:calc(100vh - var(--pine-dimension-sm));max-height:calc(100dvh - var(--pine-dimension-sm));max-width:calc(100vw - var(--pine-dimension-sm));overflow:auto;-ms-scroll-chaining:none;overscroll-behavior:contain;padding:var(--pine-dimension-sm);pointer-events:auto;position:fixed;top:0;visibility:hidden;z-index:var(--pine-z-index-priority)}:host-context([data-theme=dark]) .pds-datepicker__dialog{border:var(--pine-border)}.pds-datepicker__header{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-webkit-margin-after:var(--pine-dimension-sm);margin-block-end:var(--pine-dimension-sm)}.pds-datepicker__nav-spacer{-ms-flex:none;flex:none;width:var(--pine-dimension-400)}.pds-datepicker__heading{color:var(--pine-color-text);font:var(--pine-typography-heading-5);font-weight:var(--pine-font-weight-semi-bold)}.pds-datepicker__grid{border-collapse:collapse;border-spacing:0}.pds-datepicker__weekday{color:var(--pine-color-text-muted);font:var(--pine-typography-body-sm);height:var(--pds-datepicker-day-size);padding:0;text-align:center;width:var(--pds-datepicker-day-size)}.pds-datepicker__day{border-radius:var(--pine-border-radius-full);color:var(--pine-color-text-secondary);cursor:pointer;font:var(--pine-typography-body);height:var(--pds-datepicker-day-size);padding:0;position:relative;text-align:center;-webkit-transition:background var(--pine-motion-duration-fast) var(--pine-motion-easing-in);transition:background var(--pine-motion-duration-fast) var(--pine-motion-easing-in);width:var(--pds-datepicker-day-size)}.pds-datepicker__day:hover{background:var(--pine-color-background-muted)}.pds-datepicker__day:focus-visible{outline:var(--pine-outline-focus);outline-offset:calc(var(--pine-border-width-thick) * -1)}.pds-datepicker__day--empty{cursor:default;pointer-events:none}.pds-datepicker__day--today::after{background:var(--pine-color-primary);border-radius:var(--pine-border-radius-full);content:"";height:var(--pine-dimension-050);inset-block-end:var(--pine-dimension-050);inset-inline-start:50%;position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:var(--pine-dimension-050)}.pds-datepicker__day--selected,.pds-datepicker__day--selected:hover{background:var(--pine-color-primary);color:var(--pine-color-text-primary)}.pds-datepicker__day--selected:focus-visible{outline-offset:var(--pine-border-width)}.pds-datepicker__day--range-start{border-end-end-radius:0;border-start-end-radius:0}.pds-datepicker__day--range-end{border-end-start-radius:0;border-start-start-radius:0}.pds-datepicker__day--range-start.pds-datepicker__day--row-end{border-end-end-radius:var(--pine-border-radius-full);border-start-end-radius:var(--pine-border-radius-full)}.pds-datepicker__day--range-end.pds-datepicker__day--row-start{border-end-start-radius:var(--pine-border-radius-full);border-start-start-radius:var(--pine-border-radius-full)}.pds-datepicker__day--selected.pds-datepicker__day--today::after{background:var(--pine-color-text-primary)}.pds-datepicker__day--in-range{border-radius:0}.pds-datepicker__day--in-range,.pds-datepicker__day--in-range:hover{background:var(--pine-color-background-muted);color:var(--pine-color-text-secondary)}.pds-datepicker__day--row-start{border-end-start-radius:var(--pine-border-radius-full);border-start-start-radius:var(--pine-border-radius-full)}.pds-datepicker__day--row-end{border-end-end-radius:var(--pine-border-radius-full);border-start-end-radius:var(--pine-border-radius-full)}.pds-datepicker__day--disabled,.pds-datepicker__day--disabled:hover{background:transparent;color:var(--pine-color-text-disabled);cursor:not-allowed;text-decoration:line-through}.pds-datepicker__day--in-range:hover{background:var(--pine-color-background-inset)}.pds-datepicker__dialog--range{display:-ms-flexbox;display:flex;padding:0}.pds-datepicker__panel{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-width:0}.pds-datepicker__dialog--range .pds-datepicker__panel{padding:var(--pine-dimension-sm)}.pds-datepicker__months{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--pine-dimension-lg)}.pds-datepicker__presets-column{-webkit-border-end:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);border-inline-end:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);-ms-flex:none;flex:none;position:relative;width:var(--pds-datepicker-presets-width)}.pds-datepicker__presets{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--pine-dimension-2xs);inset:0;list-style:none;margin:0;overflow-y:auto;padding:var(--pine-dimension-150);position:absolute}.pds-datepicker__preset{-ms-flex-align:center;align-items:center;background:transparent;border:0;border-radius:var(--pine-border-radius-md);color:var(--pine-color-text-secondary);cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body);gap:var(--pine-dimension-xs);-ms-flex-pack:justify;justify-content:space-between;padding:var(--pine-dimension-xs) var(--pine-dimension-sm);text-align:start;-webkit-transition:background var(--pine-motion-duration-fast) var(--pine-motion-easing-in);transition:background var(--pine-motion-duration-fast) var(--pine-motion-easing-in);width:100%}.pds-datepicker__preset:hover:not(:disabled){background:var(--pine-color-background-muted)}.pds-datepicker__preset:focus-visible{outline:var(--pine-outline-focus)}.pds-datepicker__preset:disabled{color:var(--pine-color-text-disabled);cursor:not-allowed}.pds-datepicker__preset--selected{background:var(--pine-color-background-muted);color:var(--pine-color-text-active)}.pds-datepicker__footer{-ms-flex-align:center;align-items:center;background:var(--pine-color-background-overlay);-webkit-border-before:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);border-block-start:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--pine-dimension-xs);inset-block-end:calc(var(--pine-dimension-sm) * -1);-ms-flex-pack:end;justify-content:flex-end;margin-block:var(--pine-dimension-sm) calc(var(--pine-dimension-sm) * -1);padding-block:var(--pine-dimension-sm);position:-webkit-sticky;position:sticky}.pds-datepicker__selection{color:var(--pine-color-text-muted);font:var(--pine-typography-body-sm-medium);-webkit-margin-end:auto;margin-inline-end:auto}.pds-datepicker__dropdowns{display:-ms-flexbox;display:flex;gap:var(--pine-dimension-2xs)}.pds-datepicker__select-wrap{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;position:relative}.pds-datepicker__heading-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:var(--pine-border-radius-md);color:var(--pine-color-text);cursor:pointer;field-sizing:content;font:var(--pine-typography-heading-5);font-weight:var(--pine-font-weight-semi-bold);padding-block:var(--pine-dimension-2xs);padding-inline:var(--pine-dimension-xs) calc(var(--pine-dimension-xs) + var(--pine-dimension-sm))}.pds-datepicker__heading-select:hover{background:var(--pine-color-background-muted)}.pds-datepicker__heading-select:focus-visible{outline:var(--pine-outline-focus)}.pds-datepicker__select-caret{color:var(--pine-color-text-secondary);inset-inline-end:var(--pine-dimension-xs);pointer-events:none;position:absolute}.pds-datepicker__time{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;gap:var(--pine-dimension-xs);-ms-flex-pack:justify;justify-content:space-between;-webkit-margin-before:var(--pine-dimension-sm);margin-block-start:var(--pine-dimension-sm);padding-inline:var(--pine-dimension-xs)}.pds-datepicker__time-label{color:var(--pine-color-text-label);font:var(--pine-typography-body-medium)}.pds-datepicker__time-field{-ms-flex-align:center;align-items:center;background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-border-radius-md);display:-ms-inline-flexbox;display:inline-flex;min-height:var(--pine-dimension-400);padding-inline:var(--pine-dimension-2xs)}.pds-datepicker__time-field:hover{border-color:var(--pine-color-border-hover)}.pds-datepicker__time-field:focus-within{outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-datepicker__time-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:var(--pine-border-radius-sm);color:var(--pine-color-text-strong);cursor:pointer;font:var(--pine-typography-body);font-variant-numeric:tabular-nums;padding:var(--pine-dimension-2xs);text-align:center}.pds-datepicker__time-select:focus-visible{background:var(--pine-color-background-muted);outline:none}.pds-datepicker__time-select--period{-webkit-margin-start:var(--pine-dimension-2xs);margin-inline-start:var(--pine-dimension-2xs)}.pds-datepicker__time-separator{color:var(--pine-color-text-secondary)}:host-context([data-theme=dark]) select{color-scheme:dark}.pds-datepicker__action{background:var(--pine-color-secondary);border:var(--pine-border);border-radius:var(--pine-border-radius-full);color:var(--pine-color-text-secondary);cursor:pointer;font:var(--pine-typography-body-medium);padding:calc(var(--pine-dimension-xs) - var(--pine-border-width)) var(--pine-dimension-sm)}.pds-datepicker__action:hover:not(:disabled){background:var(--pine-color-secondary-hover);border-color:var(--pine-color-border-hover)}.pds-datepicker__action:focus-visible{outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-datepicker__action:disabled{background:var(--pine-color-secondary-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-secondary-disabled);cursor:not-allowed}.pds-datepicker__action--primary{background:var(--pine-color-primary);border-color:var(--pine-color-primary);color:var(--pine-color-text-primary)}.pds-datepicker__action--primary:hover:not(:disabled){background:var(--pine-color-primary-hover);border-color:var(--pine-color-primary-hover)}.pds-datepicker__action--primary:disabled{background:var(--pine-color-primary-disabled);border-color:var(--pine-color-primary-disabled);color:var(--pine-color-text-primary-disabled)}@media (max-width: 600px){.pds-datepicker__dialog--range{-ms-flex-direction:column;flex-direction:column}.pds-datepicker__presets-column{-webkit-border-after:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);border-block-end:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);-webkit-border-end:0;border-inline-end:0;width:auto}.pds-datepicker__presets{-ms-flex-direction:row;flex-direction:row;overflow-x:auto;position:static}.pds-datepicker__preset{white-space:nowrap}.pds-datepicker__selection{-ms-flex-preferred-size:100%;flex-basis:100%}}.pds-datepicker__trigger,.pds-datepicker__clear,.pds-datepicker__nav,.pds-datepicker__weekday,.pds-datepicker__day,.pds-datepicker__preset,.pds-datepicker__action{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media (forced-colors: active){.pds-datepicker__day--selected,.pds-datepicker__day--selected:hover{background:Highlight;color:HighlightText;forced-color-adjust:none}.pds-datepicker__day--in-range,.pds-datepicker__day--in-range:hover{border-block:var(--pine-border-width-thin) solid Highlight}.pds-datepicker__day--today::after{background:CanvasText;forced-color-adjust:none}.pds-datepicker__day--selected.pds-datepicker__day--today::after{background:HighlightText}.pds-datepicker__day--disabled{color:GrayText}}.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}'};var ye={weekday:"long",year:"numeric",month:"long",day:"numeric"};var we="00:00";var xe="23:59";var De=0;var Me=640;var je=480;var Ce=8;var Ae=100;function Se(){var e=function(e){e.stopPropagation();e.preventDefault()};document.addEventListener("click",e,{capture:true,once:true});window.setTimeout((function(){return document.removeEventListener("click",e,{capture:true})}),500)}var Oe=function(e){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1))};var He=function(e,i){var t,r;return(r=(t=e.formatToParts(i).find((function(e){return e.type==="day"})))===null||t===void 0?void 0:t.value)!==null&&r!==void 0?r:e.format(i)};var Ye=e("pds_datepicker",function(){function e(e){var r=this;i(this,e);this.pdsDatepickerChange=t(this,"pdsDatepickerChange");this.pdsBlur=t(this,"pdsBlur");this.pdsFocus=t(this,"pdsFocus");this.focusActiveDay=false;this.fallbackId="pds-datepicker-".concat(++De);this.skipForwardedClick=false;this.presetByArrow=false;this.valueAtOpen="";this.committing=false;this.hasFocus=false;this.applyLabel="Apply";this.autoApply=false;this.cancelLabel="Cancel";this.clearable=false;this.clearLabel="Clear";this.customRangeLabel="Custom range";this.endTimeLabel="End time";this.format="YYYY-MM-DD";this.hourLabel="Hour";this.invalidDateMessage="Enter a date in the format shown.";this.maxDateMessage="Choose {date} or earlier.";this.minDateMessage="Choose {date} or later.";this.minuteIncrement=1;this.minuteLabel="Minute";this.monthLabel="Month";this.nextMonthLabel="Next month";this.periodLabel="AM or PM";this.placement="bottom-start";this.presetsLabel="Presets";this.previousMonthLabel="Previous month";this.range=false;this.showDropdowns=false;this.startTimeLabel="Start time";this.timePicker=false;this.timeLabel="Time";this.triggerLabel="Choose date";this.value="";this.yearLabel="Year";this.isOpen=false;this.text="";this.textError="";this.activeDate="";this.viewMonth="";this.draftStart="";this.draftEnd="";this.startTime=we;this.endTime=xe;this.previewDate="";this.onApply=function(){var e=r.draftParts();if(!e)return;r.commitParts(e);r.closeCalendar(true)};this.onCancel=function(){if(r.clearable){r.commitValue("")}else{r.restoreValueAtOpen()}r.closeCalendar(true)};this.onPresetClick=function(e,i){r.draftStart=j(i.start);r.draftEnd=j(i.end);r.previewDate="";if(r.appliesOnPick&&!r.presetByArrow){r.onApply();return}r.showDate(i.end,true);e.currentTarget.focus()};this.onPresetsKeyDown=function(e){var i={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1}[e.key];var t={Home:"first",End:"last"}[e.key];if(!i&&!t)return;var n=Array.from(e.currentTarget.querySelectorAll('[role="radio"]:not([disabled])'));var a=n.indexOf(e.target);var s=t==="first"?n[0]:t==="last"?n[n.length-1]:n[(a+i+n.length)%n.length];if(!s)return;e.preventDefault();s.focus();if(s.classList.contains("pds-datepicker__preset")&&s!==n[n.length-1]){r.presetByArrow=true;s.click();r.presetByArrow=false}};this.onClearMouseDown=function(e){e.preventDefault()};this.onClearClick=function(){var e;r.commitValue("");r.closeCalendar(false);void((e=r.inputEl)===null||e===void 0?void 0:e.setFocus())};this.onCustomRangeClick=function(){var e,i;(i=(e=r.dialogEl)===null||e===void 0?void 0:e.querySelector('[data-date][tabindex="0"]'))===null||i===void 0?void 0:i.focus()};this.onDocumentPointerDown=function(e){var i;var t=e.composedPath();if(t.includes(r.el)||r.portal&&t.includes(r.portal.host))return;r.closeCalendar(false);if(((i=t[0])===null||i===void 0?void 0:i.localName)==="dialog")Se()};this.onHostFocusIn=function(e){r.focusEntered(e)};this.onCalendarFocusIn=function(e){var i,t;r.focusEntered(e);(i=r.dialogEl)===null||i===void 0?void 0:i.setAttribute("aria-modal","true");if(e.target===r.dialogEl){(t=r.dialogEl.querySelector('[data-date="'.concat(r.activeDate,'"]')))===null||t===void 0?void 0:t.focus({preventScroll:true})}};this.onCalendarFocusOut=function(e){var i,t;var n=e.relatedTarget;if(!n||!((i=r.dialogEl)===null||i===void 0?void 0:i.contains(n)))(t=r.dialogEl)===null||t===void 0?void 0:t.removeAttribute("aria-modal");r.checkFocusLeft(e,n!==null)};this.onHostFocusOut=function(e){var i=e.relatedTarget;if(i&&r.isInside(i))return;r.checkFocusLeft(e,i!==null)};this.stopInnerEvent=function(e){return e.stopPropagation()};this.onFieldClick=function(e){var i,t;var n=e.composedPath();if(r.triggerEl&&n.includes(r.triggerEl)||r.clearEl&&n.includes(r.clearEl))return;var a=(t=(i=r.inputEl)===null||i===void 0?void 0:i.shadowRoot)===null||t===void 0?void 0:t.querySelector("label");if(a&&n.includes(a)){r.skipForwardedClick=true;window.setTimeout((function(){return r.skipForwardedClick=false}));return}if(r.skipForwardedClick){r.skipForwardedClick=false;return}var s=r.fieldReference();if(s&&s!==r.inputEl&&!n.includes(s))return;r.openCalendar(false)};this.onTextInput=function(e){var i,t;e.stopPropagation();r.text=String((i=e.detail.value)!==null&&i!==void 0?i:"");if(!r.isOpen)return;var n=r.parseText(r.text);if(!n)return;var a=[r.startTime,r.endTime],s=a[0],o=a[1];(t=r.timesBeforeTyping)!==null&&t!==void 0?t:r.timesBeforeTyping=[s,o];r.loadDraft(n);if(r.timePicker){var d=r.resolvedFormat;var l=r.resolvedLocale;var u=r.range?pe(r.text,d,l):[ce(r.text,d,l)];var c=r.parsedValue();var p=function(e){var i,t,r;return!((i=u===null||u===void 0?void 0:u[e])===null||i===void 0?void 0:i.time)||((t=u[e])===null||t===void 0?void 0:t.time)===((r=c===null||c===void 0?void 0:c[e])===null||r===void 0?void 0:r.time)};if(p(0))r.startTime=s;if(r.range&&p(1))r.endTime=o}r.showDate(n[n.length-1].date)};this.onTextChange=function(e){e.stopPropagation();if(!r.isOpen||!r.hasFooter){r.commitText();return}window.setTimeout((function(){var e;if(r.isOpen&&(r.el.matches(":focus-within")||((e=r.portal)===null||e===void 0?void 0:e.host.matches(":focus-within"))))return;r.commitPendingText()}))};this.onTextKeyDown=function(e){e.stopPropagation();var i=e.detail;if(i.altKey&&i.key==="ArrowDown"){i.preventDefault();if(r.isOpen){r.focusActiveDay=true;r.flushActiveDayFocus()}else{r.openCalendar(true)}}else if(i.key==="Enter"&&r.isOpen){if(!r.hasFooter||r.text!==r.fieldText()&&!r.parseText(r.text)){r.commitText()}else{var t=r.draftParts();if(t)r.commitParts(t)}if(!r.textError)r.closeCalendar(false)}else if(i.key==="Escape"&&r.isOpen){i.preventDefault();i.stopPropagation();r.restoreValueAtOpen();r.closeCalendar(false)}};this.onTriggerKeyDown=function(e){var i;if(!r.isOpen)return;if(e.key==="Escape"){e.preventDefault();e.stopPropagation();r.restoreValueAtOpen();r.closeCalendar(false);return}if(e.key!=="Tab"||e.shiftKey||((i=r.dialogEl)===null||i===void 0?void 0:i.style.visibility)!=="visible")return;e.preventDefault();r.focusActiveDay=true;r.flushActiveDayFocus()};this.onTriggerClick=function(){if(r.isOpen){r.closeCalendar(true)}else{r.openCalendar(true)}};this.onDialogKeyDown=function(e){if(e.key==="Escape"){e.preventDefault();e.stopPropagation();r.restoreValueAtOpen();r.closeCalendar(true)}else if(e.key==="Tab"){r.trapTab(e)}};this.onGridKeyDown=function(e){var i=M(r.activeDate);if(!i)return;var t=getComputedStyle(r.el).direction==="rtl";var n=P(i,r.weekStart);var a=null;switch(e.key){case"ArrowLeft":a=A(i,t?1:-1);break;case"ArrowRight":a=A(i,t?-1:1);break;case"ArrowUp":a=A(i,-7);break;case"ArrowDown":a=A(i,7);break;case"Home":a=A(i,-n);break;case"End":a=A(i,6-n);break;case"PageUp":a=S(i,e.shiftKey?-12:-1);break;case"PageDown":a=S(i,e.shiftKey?12:1);break;case"Enter":case" ":e.preventDefault();r.pickDate(i);if(r.hasFooter)r.focusActiveDay=true;return;default:return}e.preventDefault();var s=Y(a,r.minDate,r.maxDate);r.showDate(s);if(r.range)r.previewDate=j(s);r.focusActiveDay=true};this.onGridClick=function(e){var i=r.dayFromEvent(e);if(i)r.pickDate(i)};this.onGridPointerOver=function(e){if(!r.range||!r.draftStart||r.draftEnd)return;var i=r.dayFromEvent(e);var t=i&&j(i);if(t&&t!==r.previewDate)r.previewDate=t}}e.prototype.open=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.openCalendar(true);return[2]}))}))};e.prototype.close=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.closeCalendar(false);return[2]}))}))};e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:return[4,(e=this.inputEl)===null||e===void 0?void 0:e.setFocus()];case 1:i.sent();return[2]}}))}))};e.prototype.valueChanged=function(){var e;if(!this.committing)this.valueAtOpen=(e=this.value)!==null&&e!==void 0?e:"";this.refreshFromValue()};e.prototype.contextChanged=function(){this.refreshFromValue()};e.prototype.placementChanged=function(){this.stopPositioning()};e.prototype.refreshFromValue=function(){var e;this.text=this.fieldText();this.textError="";this.updateFormValue();if(!this.isOpen)return;var i=this.parsedValue();this.loadDraft(i);var t=(e=i&&i[i.length-1].date)!==null&&e!==void 0?e:C();this.showDate(Y(t,this.minDate,this.maxDate),true)};e.prototype.requiredChanged=function(){this.updateFormValue()};e.prototype.componentWillLoad=function(){this.text=this.fieldText()};e.prototype.connectedCallback=function(){if(this.el.attachInternals&&!this.internals){this.internals=this.el.attachInternals()}};e.prototype.componentDidLoad=function(){this.updateFormValue()};e.prototype.disconnectedCallback=function(){var e;this.closeCalendar(false);(e=this.portal)===null||e===void 0?void 0:e.remove()};e.prototype.componentDidRender=function(){var e,i;if(!this.isOpen||!this.dialogEl){(e=this.portal)===null||e===void 0?void 0:e.remove();return}(i=this.portal)!==null&&i!==void 0?i:this.portal=new B(this.el);this.portal.mount(this.dialogEl,this.resolvedLocale);if(!this.cleanupAutoUpdate)this.startPositioning();this.flushActiveDayFocus()};e.prototype.flushActiveDayFocus=function(){var e,i;if(!this.focusActiveDay||((e=this.dialogEl)===null||e===void 0?void 0:e.style.visibility)!=="visible")return;this.focusActiveDay=false;(i=this.dialogEl.querySelector('[data-date="'.concat(this.activeDate,'"]')))===null||i===void 0?void 0:i.focus()};Object.defineProperty(e.prototype,"baseId",{get:function(){return this.componentId||this.fallbackId},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"resolvedLocale",{get:function(){return I(this.locale||k(this.el))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"weekStart",{get:function(){var e=this.firstDayOfWeek;if(typeof e==="number"&&Number.isInteger(e)&&e>=0&&e<=6)return e;return N(this.resolvedLocale)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"minDate",{get:function(){return M(this.min)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"maxDate",{get:function(){return M(this.max)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isInteractive",{get:function(){return!this.disabled&&!this.readonly},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"monthCount",{get:function(){var e=typeof window!=="undefined"&&window.innerWidth<Me;return this.range&&!e?2:1},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"appliesOnPick",{get:function(){return this.range&&this.autoApply&&!this.timePicker},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"hasFooter",{get:function(){return(this.range||this.timePicker)&&!this.appliesOnPick},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"resolvedPresets",{get:function(){return this.range?Z(this.presets,C()):[]},enumerable:false,configurable:true});e.prototype.parsedValue=function(e){if(e===void 0){e=this.value}if(this.range){var i=(e!==null&&e!==void 0?e:"").split("/"),t=i[0],r=i[1],n=i[2];var a=G(t);var s=G(r);return n===undefined&&a&&s&&he(a,s)<=0?[a,s]:null}var o=G(e);return o?[o]:null};Object.defineProperty(e.prototype,"resolvedFormat",{get:function(){return te(this.format,this.timePicker,this.timePicker&&ge(this.resolvedLocale).hour12)},enumerable:false,configurable:true});e.prototype.fieldText=function(){var e=this;var i;var t=this.parsedValue();if(!t)return(i=this.value)!==null&&i!==void 0?i:"";return t.map((function(i){return fe(e.withTimePicker(i),e.resolvedFormat,e.resolvedLocale)})).join(be)};e.prototype.withTimePicker=function(e,i){if(i===void 0){i=we}var t;return{date:e.date,time:this.timePicker?(t=e.time)!==null&&t!==void 0?t:i:null}};Object.defineProperty(e.prototype,"fieldPlaceholder",{get:function(){if(this.placeholder)return this.placeholder;var e=this.resolvedFormat;return this.range?"".concat(e).concat(be).concat(e):e},enumerable:false,configurable:true});e.prototype.loadDraft=function(e){var i,t;var r=e!==null&&e!==void 0?e:[],n=r[0],a=r[1];this.draftStart=n?j(n.date):"";this.draftEnd=this.range&&a?j(a.date):"";this.startTime=(i=n===null||n===void 0?void 0:n.time)!==null&&i!==void 0?i:we;this.endTime=(t=a===null||a===void 0?void 0:a.time)!==null&&t!==void 0?t:xe;this.previewDate=""};e.prototype.openCalendar=function(e){var i,t;if(!this.isInteractive||this.isOpen)return;var r=this.parsedValue();this.loadDraft(r);this.valueAtOpen=(i=this.value)!==null&&i!==void 0?i:"";var n=(t=r&&r[r.length-1].date)!==null&&t!==void 0?t:C();this.showDate(Y(n,this.minDate,this.maxDate),true);this.focusActiveDay=e;this.isOpen=true;document.addEventListener("pointerdown",this.onDocumentPointerDown,true)};e.prototype.closeCalendar=function(e){var i;if(!this.isOpen)return;this.commitPendingText();this.timesBeforeTyping=undefined;this.isOpen=false;this.stopPositioning();document.removeEventListener("pointerdown",this.onDocumentPointerDown,true);if(e)(i=this.triggerEl)===null||i===void 0?void 0:i.focus()};e.prototype.showDate=function(e,i){if(i===void 0){i=false}var t=Oe(e);var r=M(this.viewMonth);var n=r&&S(r,this.monthCount-1);if(i||!r||t<r){this.viewMonth=j(i?S(t,1-this.monthCount):t)}else if(n&&t>n){this.viewMonth=j(S(t,1-this.monthCount))}this.activeDate=j(e)};e.prototype.pickDate=function(e){if(z(e,this.minDate,this.maxDate))return;this.dropTypedText();if(this.range){this.pickRangeDay(e)}else if(this.timePicker){this.draftStart=j(e);this.activeDate=this.draftStart}else{this.commitValue(j(e));this.closeCalendar(true)}};e.prototype.pickRangeDay=function(e){var i=M(this.draftStart);var t=j(e);if(!i||this.draftEnd){this.draftStart=t;this.draftEnd=""}else if(e<i){this.draftStart=t}else{this.draftEnd=t}this.previewDate="";this.activeDate=t;if(this.draftEnd&&this.appliesOnPick)this.onApply()};e.prototype.commitValue=function(e,i){if(i===void 0){i={}}var t;var r=e!==((t=this.value)!==null&&t!==void 0?t:"");this.timesBeforeTyping=undefined;this.committing=true;this.value=e;this.committing=false;this.text=this.fieldText();this.textError="";this.updateFormValue();if(r)this.pdsDatepickerChange.emit(Object.assign({value:e},i))};e.prototype.commitParts=function(e){if(!this.range){this.commitValue(ve(e[0]));return}var i=e[0],t=e[1];var r=$(this.resolvedPresets,i.date,t.date);this.commitValue("".concat(ve(i),"/").concat(ve(t)),Object.assign({start:ve(i),end:ve(t)},r?{preset:r.key}:{}))};e.prototype.draftParts=function(){var e;var i=M(this.draftStart);if(!i)return null;var t=this.withTimePicker({date:i,time:this.startTime});if(!this.range)return[t];var r=this.withTimePicker({date:(e=M(this.draftEnd))!==null&&e!==void 0?e:i,time:this.endTime});return[t,he(r,t)<0?Object.assign(Object.assign({},r),{time:t.time}):r]};e.prototype.restoreValueAtOpen=function(){var e;if(this.valueAtOpen===((e=this.value)!==null&&e!==void 0?e:"")){this.dropTypedText();return}var i=this.parsedValue(this.valueAtOpen);if(i)this.commitParts(i);else this.commitValue(this.valueAtOpen)};e.prototype.isInside=function(e){var i,t;if(!e)return false;return e===this.el||this.el.contains(e)||!!((i=this.el.shadowRoot)===null||i===void 0?void 0:i.contains(e))||!!((t=this.portal)===null||t===void 0?void 0:t.contains(e))};e.prototype.focusEntered=function(e){if(this.hasFocus)return;this.hasFocus=true;this.pdsFocus.emit(e)};e.prototype.checkFocusLeft=function(e,i){var t=this;window.setTimeout((function(){var r;if(t.el.matches(":focus-within")||((r=t.portal)===null||r===void 0?void 0:r.host.matches(":focus-within")))return;if(i)t.closeCalendar(false);if(!t.hasFocus)return;t.hasFocus=false;t.pdsBlur.emit(e)}))};e.prototype.startPositioning=function(){var e=this;var i=this.fieldReference();var t=this.dialogEl;if(!i||!t)return;this.cleanupAutoUpdate=s(i,t,(function(){o(i,t,{placement:e.placement,strategy:"fixed",middleware:[d(4),l({padding:Ce}),u({padding:Ce,apply:function(e){var i=e.availableWidth,t=e.availableHeight,r=e.elements;var n=window.innerHeight-Ce*2;var a=Math.max(t,Math.min(n,je));Object.assign(r.floating.style,{maxHeight:"".concat(Math.max(0,a),"px"),maxWidth:"".concat(Math.max(0,i),"px")})}}),c({padding:Ce,crossAxis:true}),p()]}).then((function(i){var r=i.x,n=i.y,a=i.middlewareData;var s;var o=!!((s=a.hide)===null||s===void 0?void 0:s.referenceHidden);Object.assign(t.style,{left:"".concat(r,"px"),top:"".concat(n,"px"),visibility:o?"hidden":"visible"});e.flushActiveDayFocus()}))}))};e.prototype.stopPositioning=function(){var e;(e=this.cleanupAutoUpdate)===null||e===void 0?void 0:e.call(this);this.cleanupAutoUpdate=undefined};e.prototype.fieldReference=function(){var e,i,t;return(t=(i=(e=this.inputEl)===null||e===void 0?void 0:e.shadowRoot)===null||i===void 0?void 0:i.querySelector(".pds-input__field-wrapper"))!==null&&t!==void 0?t:this.inputEl};e.prototype.commitPendingText=function(){if(this.text===this.fieldText())return;var e=this.parseText(this.text)?this.draftParts():null;if(e)this.commitParts(e);else this.commitText()};e.prototype.readText=function(e){var i=this;var t=this.resolvedFormat;var r=this.resolvedLocale;var n=this.range?pe(e,t,r):[ce(e,t,r)];if(!n||n.some((function(e){return!e})))return null;return n.map((function(e,t){return i.withTimePicker(e,t===1?xe:we)}))};e.prototype.parseText=function(e){var i=this.readText(e);return i&&!this.rangeError(i)?i:null};e.prototype.rangeError=function(e){var i=this;if(this.minDate&&e.some((function(e){return e.date<i.minDate})))return"min";if(this.maxDate&&e.some((function(e){return e.date>i.maxDate})))return"max";return""};e.prototype.valueError=function(){if(!this.value)return"";var e=this.parsedValue();return e?this.rangeError(e):"format"};e.prototype.commitText=function(){var e=this.text.trim();if(e===""){this.commitValue("");return}var i=this.readText(e);var t=i?this.rangeError(i):"format";if(i&&!t){this.commitParts(i)}else{this.textError=t;this.updateFormValue()}};e.prototype.canShowMonth=function(e){var i;var t=(i=M(this.viewMonth))!==null&&i!==void 0?i:C();if(e<0)return!this.minDate||A(t,-1)>=this.minDate;return!this.maxDate||S(t,this.monthCount)<=this.maxDate};e.prototype.showMonth=function(e,i){var t,r;var n=(t=M(this.viewMonth))!==null&&t!==void 0?t:C();var a=(r=M(this.activeDate))!==null&&r!==void 0?r:C();this.viewMonth=j(S(n,i));this.activeDate=j(Y(S(a,i),this.minDate,this.maxDate));if(this.canShowMonth(i)){e.currentTarget.focus()}else{this.focusActiveDay=true}};e.prototype.jumpTo=function(e,i,t){var r;var n=Y(new Date(Date.UTC(i,t,1)),this.minDate,this.maxDate);this.viewMonth=j(S(Oe(n),-e));var a=(r=M(this.activeDate))!==null&&r!==void 0?r:n;var s=Math.min(a.getUTCDate(),new Date(Date.UTC(i,t+1,0)).getUTCDate());this.activeDate=j(Y(new Date(Date.UTC(i,t,s)),this.minDate,this.maxDate))};e.prototype.dropTypedText=function(){var e;if(this.timesBeforeTyping)e=this.timesBeforeTyping,this.startTime=e[0],this.endTime=e[1];this.timesBeforeTyping=undefined;if(this.text===this.fieldText()&&!this.textError)return;this.text=this.fieldText();if(this.inputEl)this.inputEl.value=this.text;this.textError="";this.updateFormValue()};e.prototype.trapTab=function(e){var i,t,r,n;var a=Array.from((t=(i=this.dialogEl)===null||i===void 0?void 0:i.querySelectorAll('button:not([disabled]):not([tabindex="-1"]), select:not([disabled]), [data-date][tabindex="0"]'))!==null&&t!==void 0?t:[]);if(a.length===0)return;var s=(n=(r=this.dialogEl)===null||r===void 0?void 0:r.getRootNode())===null||n===void 0?void 0:n.activeElement;var o=a[0];var d=a[a.length-1];if(e.shiftKey&&s===o){e.preventDefault();d.focus()}else if(!e.shiftKey&&s===d){e.preventDefault();o.focus()}};e.prototype.dayFromEvent=function(e){var i,t;var r=(t=(i=e.target)===null||i===void 0?void 0:i.closest)===null||t===void 0?void 0:t.call(i,"[data-date]");return M(r===null||r===void 0?void 0:r.dataset.date)};e.prototype.updateFormValue=function(){var e,i,t,r;if(g()||!((e=this.internals)===null||e===void 0?void 0:e.setFormValue))return;this.internals.setFormValue(this.value||null);if(!this.internals.setValidity)return;var n=(r=(t=(i=this.inputEl)===null||i===void 0?void 0:i.shadowRoot)===null||t===void 0?void 0:t.querySelector("input"))!==null&&r!==void 0?r:undefined;var a=this.textError||this.valueError();if(a==="format"){this.internals.setValidity({badInput:true},this.invalidDateMessage,n)}else if(a==="min"){this.internals.setValidity({rangeUnderflow:true},this.boundMessage(this.minDateMessage,this.minDate),n)}else if(a==="max"){this.internals.setValidity({rangeOverflow:true},this.boundMessage(this.maxDateMessage,this.maxDate),n)}else if(this.required&&!this.value){this.internals.setValidity({valueMissing:true},(n===null||n===void 0?void 0:n.validationMessage)||this.invalidDateMessage,n)}else{this.internals.setValidity({})}};e.prototype.boundMessage=function(e,i){var t=i?fe({date:i,time:null},this.format||undefined,this.resolvedLocale):"";return y(e,{date:t})};e.prototype.formResetCallback=function(){this.value="";this.text="";this.textError="";this.closeCalendar(false);this.updateFormValue()};e.prototype.interactivityChanged=function(){if(!this.isInteractive)this.closeCalendar(false)};e.prototype.formDisabledCallback=function(e){this.disabled=e;if(e)this.closeCalendar(false)};e.prototype.formStateRestoreCallback=function(e){if(typeof e==="string")this.value=e};e.prototype.triggerAccessibleName=function(e){var i=this.parsedValue();if(!i)return this.triggerLabel;var t=i.map((function(i){return E(i.date,e,ye)}));return"".concat(this.triggerLabel,", ").concat(t.join(be))};e.prototype.highlightedRange=function(){var e=M(this.draftStart);var i=M(this.draftEnd);if(!e||i)return[e,i];var t=M(this.previewDate);return[e,t&&t>e?t:null]};e.prototype.selectedDay=function(){if(this.range)return null;return M(this.draftStart)};e.prototype.renderMonthHeading=function(e,i,t,n){var a=this;var s=E(e,t,{month:"long",year:"numeric"});var o=i===0?"polite":null;if(!this.showDropdowns){return r("div",{class:"pds-datepicker__heading",id:n,"aria-live":o},s)}var d=e.getUTCFullYear();var l=e.getUTCMonth();var u=this.minDate;var c=this.maxDate;var p=C().getUTCFullYear();var v=u?u.getUTCFullYear():p-Ae;var f=c?c.getUTCFullYear():p+Ae;var b=L(t,{month:"long"});var m=L(t,{year:"numeric"});return r("div",{class:"pds-datepicker__dropdowns"},r("span",{class:"visually-hidden",id:n,"aria-live":o},s),r("span",{class:"pds-datepicker__select-wrap"},r("select",{class:"pds-datepicker__heading-select","aria-label":this.monthLabel,onChange:function(e){return a.jumpTo(i,d,Number(e.target.value))}},Array.from({length:12},(function(e,i){var t=!!u&&new Date(Date.UTC(d,i+1,0))<u||!!c&&new Date(Date.UTC(d,i,1))>c;return r("option",{value:String(i),selected:i===l,disabled:t},b.format(new Date(Date.UTC(d,i,1))))}))),r("pds-icon",{class:"pds-datepicker__select-caret",icon:h,size:"small","aria-hidden":"true"})),r("span",{class:"pds-datepicker__select-wrap"},r("select",{class:"pds-datepicker__heading-select","aria-label":this.yearLabel,onChange:function(e){return a.jumpTo(i,Number(e.target.value),l)}},Array.from({length:Math.max(f,d)-Math.min(v,d)+1},(function(e,i){var t=Math.min(v,d)+i;return r("option",{value:String(t),selected:t===d},m.format(new Date(Date.UTC(t,0,1))))}))),r("pds-icon",{class:"pds-datepicker__select-caret",icon:h,size:"small","aria-hidden":"true"})))};e.prototype.renderMonth=function(e,i,t){var n=this;var a=e.getUTCFullYear();var s=e.getUTCMonth();var o=this.minDate;var d=this.maxDate;var l=this.selectedDay();var u=this.range?this.highlightedRange():[null,null],c=u[0],p=u[1];var h=C();var b=L(t,ye);var m=L(t,{day:"numeric"});var _="".concat(this.baseId,"-calendar-heading-").concat(i);var g=i===0;var k=i===this.monthCount-1;return r("div",{class:"pds-datepicker__month"},r("div",{class:"pds-datepicker__header"},g?r("button",{type:"button",class:"pds-datepicker__nav pds-datepicker__nav--previous","aria-label":this.previousMonthLabel,disabled:!this.canShowMonth(-1),onClick:function(e){return n.showMonth(e,-1)}},r("pds-icon",{icon:v,"aria-hidden":"true"})):r("span",{class:"pds-datepicker__nav-spacer"}),this.renderMonthHeading(e,i,t,_),k?r("button",{type:"button",class:"pds-datepicker__nav pds-datepicker__nav--next","aria-label":this.nextMonthLabel,disabled:!this.canShowMonth(1),onClick:function(e){return n.showMonth(e,1)}},r("pds-icon",{icon:f,"aria-hidden":"true"})):r("span",{class:"pds-datepicker__nav-spacer"})),r("table",{class:"pds-datepicker__grid",role:"grid","aria-labelledby":_,"aria-multiselectable":this.range?"true":null,onKeyDown:this.onGridKeyDown,onClick:this.onGridClick,onPointerOver:this.onGridPointerOver},r("thead",null,r("tr",null,U(t,this.weekStart).map((function(e){return r("th",{scope:"col",class:"pds-datepicker__weekday"},r("span",{"aria-hidden":"true"},e.short),r("span",{class:"visually-hidden"},e.long))})))),r("tbody",null,T(a,s,this.weekStart).map((function(e){return r("tr",null,e.map((function(e,i){if(!e)return r("td",{class:"pds-datepicker__day pds-datepicker__day--empty"});var t=j(e);var a=z(e,o,d);var s=H(e,c)||H(e,p);var u=!!c&&!!p&&!H(c,p);var v=!!c&&!!p&&e>=c&&e<=p;var f=H(e,l)||s||v;var _=H(e,h);return r("td",{class:{"pds-datepicker__day":true,"pds-datepicker__day--selected":H(e,l)||s,"pds-datepicker__day--in-range":v&&!s,"pds-datepicker__day--range-start":u&&H(e,c),"pds-datepicker__day--range-end":u&&H(e,p),"pds-datepicker__day--row-start":v&&i===0,"pds-datepicker__day--row-end":v&&i===6,"pds-datepicker__day--today":_,"pds-datepicker__day--disabled":a},"data-date":t,tabindex:t===n.activeDate?"0":"-1","aria-label":b.format(e),"aria-selected":f?"true":null,"aria-current":_?"date":null,"aria-disabled":a?"true":null},He(m,e))})))})))),this.timePicker&&this.timesUnderMonth(i).map((function(e){return n.renderTime(e,t)})))};e.prototype.timesUnderMonth=function(e){if(!this.range)return["start"];if(this.monthCount===1)return["start","end"];return[e===0?"start":"end"]};e.prototype.renderTime=function(e,i){var t=this;var n,a,s;var o=e==="start"?this.startTime:(s=(a=(n=this.draftParts())===null||n===void 0?void 0:n[1])===null||a===void 0?void 0:a.time)!==null&&s!==void 0?s:this.endTime;var d=me(o),l=d[0],u=d[1];var c=ge(i);var p=Math.max(1,Math.min(60,Math.floor(this.minuteIncrement)||1));var h=function(i,r){var n=_e(i,r);if(e==="start")t.startTime=n;else t.endTime=n;if(t.timesBeforeTyping)t.timesBeforeTyping[e==="start"?0:1]=n};var v=!this.range?this.timeLabel:e==="start"?this.startTimeLabel:this.endTimeLabel;var f=l>=12;var b=c.hour12?Array.from({length:12},(function(e,i){return i+1})):Array.from({length:24},(function(e,i){return i}));var m=c.hour12?l%12||12:l;var _=Array.from({length:Math.ceil(60/p)},(function(e,i){return i*p}));if(!_.includes(u))_.push(u);_.sort((function(e,i){return e-i}));var g="".concat(this.baseId,"-time-").concat(e);return r("div",{class:"pds-datepicker__time",role:"group","aria-labelledby":g},r("span",{class:"pds-datepicker__time-label",id:g},v),r("span",{class:"pds-datepicker__time-field"},r("select",{class:"pds-datepicker__time-select","aria-label":this.hourLabel,onChange:function(e){var i=Number(e.target.value);h(c.hour12?i%12+(f?12:0):i,u)}},b.map((function(e){return r("option",{value:String(e),selected:e===m},c.hour12?String(e):String(e).padStart(2,"0"))}))),r("span",{class:"pds-datepicker__time-separator","aria-hidden":"true"},":"),r("select",{class:"pds-datepicker__time-select","aria-label":this.minuteLabel,onChange:function(e){return h(l,Number(e.target.value))}},_.map((function(e){return r("option",{value:String(e),selected:e===u},String(e).padStart(2,"0"))}))),c.hour12&&r("select",{class:"pds-datepicker__time-select pds-datepicker__time-select--period","aria-label":this.periodLabel,onChange:function(e){var i=e.target.value==="pm";h(l%12+(i?12:0),u)}},r("option",{value:"am",selected:!f},c.am),r("option",{value:"pm",selected:f},c.pm))))};e.prototype.renderPresets=function(){var e=this;var i;var t=this.resolvedPresets;if(t.length===0)return null;var n=$(t,M(this.draftStart),M(this.draftEnd));var a=!n&&!!this.draftStart;var s=function(i){return K(i,e.minDate,e.maxDate)};var o=n&&s(n)?n:a?"custom":(i=t.find(s))!==null&&i!==void 0?i:"custom";return r("div",{class:"pds-datepicker__presets-column"},r("ul",{class:"pds-datepicker__presets",part:"presets",role:"radiogroup","aria-label":this.presetsLabel,onKeyDown:this.onPresetsKeyDown},t.map((function(i){var t=i===n;return r("li",{role:"none"},r("button",{type:"button",role:"radio",class:{"pds-datepicker__preset":true,"pds-datepicker__preset--selected":t},"aria-checked":t?"true":"false",tabindex:i===o?"0":"-1",disabled:!K(i,e.minDate,e.maxDate),onClick:function(t){return e.onPresetClick(t,i)}},r("span",null,i.label),t&&r("pds-icon",{icon:b,"aria-hidden":"true"})))})),r("li",{role:"none"},r("button",{type:"button",role:"radio",class:{"pds-datepicker__preset":true,"pds-datepicker__preset--selected":a},"aria-checked":a?"true":"false",tabindex:o==="custom"?"0":"-1",onClick:this.onCustomRangeClick},r("span",null,this.customRangeLabel),a&&r("pds-icon",{icon:b,"aria-hidden":"true"})))))};e.prototype.selectionText=function(){var e=this.draftParts();if(!e)return"";var i=this.resolvedFormat;var t=this.resolvedLocale;if(this.range&&!this.draftEnd)return"".concat(fe(e[0],i,t)).concat(be);return e.map((function(e){return fe(e,i,t)})).join(be)};e.prototype.renderFooter=function(){var e=this.draftParts();var i=this.selectionText();return r("div",{class:"pds-datepicker__footer"},r("span",{class:"pds-datepicker__selection","aria-live":"polite"},i),r("button",{type:"button",class:"pds-datepicker__action",onClick:this.onCancel},this.clearable?this.clearLabel:this.cancelLabel),r("button",{type:"button",class:"pds-datepicker__action pds-datepicker__action--primary",disabled:!e,onClick:this.onApply},this.applyLabel))};e.prototype.renderCalendar=function(e){var i=this;var t;var n=(t=M(this.viewMonth))!==null&&t!==void 0?t:C();var a=Array.from({length:this.monthCount},(function(e,i){return S(n,i)}));return r("div",{class:{"pds-datepicker__dialog":true,"pds-datepicker__dialog--range":this.range},id:"".concat(this.baseId,"-calendar"),role:"dialog",tabindex:"-1","aria-labelledby":this.range?null:"".concat(this.baseId,"-calendar-heading-0"),"aria-label":this.range?this.label||this.triggerLabel:null,part:"calendar",ref:function(e){return i.dialogEl=e},onKeyDown:this.onDialogKeyDown,onFocusin:this.onCalendarFocusIn,onFocusout:this.onCalendarFocusOut},this.range&&this.renderPresets(),r("div",{class:"pds-datepicker__panel"},r("div",{class:"pds-datepicker__months"},a.map((function(t,r){return i.renderMonth(t,r,e)}))),this.hasFooter&&this.renderFooter(),this.appliesOnPick&&r("span",{class:"visually-hidden","aria-live":"polite"},this.selectionText())))};e.prototype.render=function(){var e=this;var i=this.resolvedLocale;return r(n,{key:"a761f0ca6eeedcac3e4bd90760aa9781cd37dcdc",class:{"pds-datepicker--range":this.range,"pds-datepicker--time":this.timePicker},"full-width":this.fullWidth?"true":null,onFocusin:this.onHostFocusIn,onFocusout:this.onHostFocusOut},r("pds-input",{key:"2eb04f9fd4e2f7a2437145d250c629c2cc8a0bf6",ref:function(i){return e.inputEl=i},componentId:this.baseId,label:this.label,hideLabel:this.hideLabel,helperMessage:this.helperMessage,errorMessage:this.errorMessage,invalid:this.invalid||!!this.textError||!!this.valueError(),disabled:this.disabled,readonly:this.readonly,required:this.required,placeholder:this.fieldPlaceholder,fullWidth:this.fullWidth,autocomplete:"off",value:this.text,onClick:this.onFieldClick,onPdsInput:this.onTextInput,onPdsChange:this.onTextChange,onPdsKeyDown:this.onTextKeyDown,onPdsFocus:this.stopInnerEvent,onPdsBlur:this.stopInnerEvent},this.clearable&&!!this.value&&this.isInteractive&&r("button",{key:"clear",slot:"suffix",type:"button",class:"pds-datepicker__clear",ref:function(i){return e.clearEl=i},"aria-label":this.label?"".concat(this.clearLabel," ").concat(this.label):this.clearLabel,tabindex:"-1",onMouseDown:this.onClearMouseDown,onClick:this.onClearClick},r("pds-icon",{key:"98c325fbba8ea78b2d409bc77099db3206738508",icon:m,"aria-hidden":"true"})),r("button",{key:"trigger",slot:"suffix",type:"button",class:"pds-datepicker__trigger",ref:function(i){return e.triggerEl=i},"aria-label":this.triggerAccessibleName(i),"aria-haspopup":"dialog","aria-expanded":this.isOpen?"true":"false",disabled:!this.isInteractive,onClick:this.onTriggerClick,onKeyDown:this.onTriggerKeyDown},r("pds-icon",{key:"cb8483febe1b485058b7bb4271b749981a7747a1",icon:_,"aria-hidden":"true"}))),this.isOpen&&this.renderCalendar(i))};Object.defineProperty(e,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{value:[{valueChanged:0}],format:[{contextChanged:0}],locale:[{contextChanged:0}],timePicker:[{contextChanged:0}],range:[{contextChanged:0}],min:[{contextChanged:0}],max:[{contextChanged:0}],placement:[{placementChanged:0}],required:[{requiredChanged:0}],disabled:[{interactivityChanged:0}],readonly:[{interactivityChanged:0}]}},enumerable:false,configurable:true});return e}());Ye.style=ke()}}}));
@@ -1 +1 @@
1
- System.register(["./p-CjRCtzPD.system.js","./p-CNXspDYs.system.js","./p-BZ1l3LGl.system.js"],(function(t){"use strict";var i,s,n,a,e;return{setters:[function(t){i=t.r;s=t.h;n=t.H;a=t.a},function(t){e=t.H},null],execute:function(){var r=function(){return":host{--tabs-dimension-panel-margin-top:var(--pine-dimension-none);--tabs-dimension-panel-padding:0;display:block}.pds-tabs__tablist{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--pine-dimension-md)}:host(.pds-tabs--divider) .pds-tabs__tablist{-webkit-border-after:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);border-block-end:var(--pine-border-width-thin) solid var(--pine-color-border-subtle)}:host(.pds-tabs--stretch){block-size:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host(.pds-tabs--stretch) .pds-tabs__tablist{-ms-flex:0 0 auto;flex:0 0 auto}:host(.pds-tabs--availability) .pds-tabs__tablist{gap:var(--pine-dimension-xs)}:host(.pds-tabs--filter) .pds-tabs__tablist{gap:var(--pine-dimension-sm)}:host(.pds-tabs--pill) .pds-tabs__tablist{background-color:var(--pine-color-background-app);border:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);border-radius:var(--pine-dimension-100);display:-ms-inline-flexbox;display:inline-flex;display:-ms-flexbox;display:flex;gap:0;height:var(--pine-dimension-450)}"};var o=t("pds_tabs",function(){function t(t){var s=this;i(this,t);this.hostKeeper=new e;this.slotChangeScheduled=false;this.lastFocusedTab=null;this.handleFocusIn=function(t){var i;var n=(i=t.target)===null||i===void 0?void 0:i.closest("pds-tab");if(n&&n.closest("pds-tabs")===s.el){s.lastFocusedTab=n}};this.handleFocusOut=function(t){var i=s.lastFocusedTab;if(t.relatedTarget){s.lastFocusedTab=null;return}queueMicrotask((function(){if(s.lastFocusedTab===i&&(i===null||i===void 0?void 0:i.isConnected))s.lastFocusedTab=null}))};this.divider=false;this.stretch=false;this.nav=false;this.handleSlotChange=function(){if(s.slotChangeScheduled)return;s.slotChangeScheduled=true;s.activeTabNameBeforeSlotChange=s.activeTabName;queueMicrotask((function(){s.slotChangeScheduled=false;s.recollectAfterSlotChange()}))}}t.prototype.connectedCallback=function(){this.hostKeeper.connect(this.el);this.el.addEventListener("focusin",this.handleFocusIn);this.el.addEventListener("focusout",this.handleFocusOut);var t=this.tabsSlot!=null;this.setupSlotChangeListeners();if(t)this.handleSlotChange()};t.prototype.disconnectedCallback=function(){var t,i;this.hostKeeper.disconnect();this.el.removeEventListener("focusin",this.handleFocusIn);this.el.removeEventListener("focusout",this.handleFocusOut);(t=this.tabsSlot)===null||t===void 0?void 0:t.removeEventListener("slotchange",this.handleSlotChange);(i=this.tabPanelsSlot)===null||i===void 0?void 0:i.removeEventListener("slotchange",this.handleSlotChange)};t.prototype.componentDidLoad=function(){this.setupSlotChangeListeners()};t.prototype.tabClickHandler=function(t){if(this.componentId===t.detail[1]){this.activeTabIndex=t.detail[0];this.activeTabName=this.tabs[this.activeTabIndex].name}};t.prototype.handleKeyDown=function(t){if(this.isNav)return;var i=["ArrowLeft","ArrowRight","Home","End"];var s=t.target;var n=s.closest("pds-tab");var a=n&&n.closest("pds-tabs")===this.el;if(i.includes(t.key)&&a){t.preventDefault();this.moveActiveTab(t.key)}};Object.defineProperty(t.prototype,"isNav",{get:function(){return!!this.nav},enumerable:false,configurable:true});t.prototype.warnOnNavConfig=function(){var t;if(!((t=this.tabs)===null||t===void 0?void 0:t.length))return;var i=this.tabs.filter((function(t){var i=t.getAttribute("href");return i!=null&&i!==""})).length;if(this.nav&&i<this.tabs.length){console.warn("pds-tabs: `nav` is set, so every pds-tab needs an `href`.")}else if(!this.nav&&i>0){console.warn("pds-tabs: a pds-tab has an `href` but `nav` is not set — add `nav` to pds-tabs for navigation mode; the href is ignored in panel mode.")}};t.prototype.moveActiveTab=function(t){var i=0;var s=this.tabs.length-1;var n=null;switch(t){case"ArrowLeft":n=this.activeTabIndex===i?s:this.activeTabIndex+-1;break;case"ArrowRight":n=this.activeTabIndex===s?i:this.activeTabIndex+1;break;case"Home":n=i;break;case"End":n=s;break}this.tabs[n].children[0].focus();this.activeTabName=this.tabs[n].name;this.activeTabIndex=n};t.prototype.findAllChildren=function(){var t=this;var i=Array.from(this.el.querySelectorAll("pds-tab"));var s=Array.from(this.el.querySelectorAll("pds-tabpanel"));this.tabs=i.filter((function(i){return i.closest("pds-tabs")===t.el}));this.tabPanels=s.filter((function(i){return i.closest("pds-tabs")===t.el}))};t.prototype.setupSlotChangeListeners=function(){var t,i,s,n;this.tabsSlot=(t=this.el.shadowRoot)===null||t===void 0?void 0:t.querySelector('slot[name="tabs"]');this.tabPanelsSlot=(i=this.el.shadowRoot)===null||i===void 0?void 0:i.querySelector('slot[name="tabpanels"]');(s=this.tabsSlot)===null||s===void 0?void 0:s.addEventListener("slotchange",this.handleSlotChange);(n=this.tabPanelsSlot)===null||n===void 0?void 0:n.addEventListener("slotchange",this.handleSlotChange)};t.prototype.recollectAfterSlotChange=function(){var t=this;var i=this.activeTabNameBeforeSlotChange;var s=!this.isNav&&this.lastFocusedTab!=null&&!this.lastFocusedTab.isConnected;this.findAllChildren();this.warnOnNavConfig();if(i!=null&&!this.tabs.some((function(t){return t.name===i}))){this.activeTabName=undefined}this.passPropsToChildren();if(s){this.lastFocusedTab=null;requestAnimationFrame((function(){var i;var s=document.activeElement;if(s&&s!==document.body)return;var n=t.tabs.find((function(i){return i.name===t.activeTabName}));(i=n===null||n===void 0?void 0:n.querySelector("button"))===null||i===void 0?void 0:i.focus()}))}};t.prototype.propGeneration=function(t,i){if(i===void 0){i=0}t.parentComponentId=this.componentId.toString();t.variant=this.variant;t.selected=this.activeTabName===t.name?true:false;t["index"]=i};t.prototype.passPropsToChildren=function(){var t=this;var i;if(!this.nav&&this.activeTabName==null&&this.tabs.length){var s=(i=this.tabs.find((function(t){return!t.disabled})))!==null&&i!==void 0?i:this.tabs[0];this.activeTabName=s.name}this.tabs.forEach((function(i,s){if(t.activeTabName===i.name)t.activeTabIndex=s;t.propGeneration(i,s);i.navMode=t.nav}));this.tabPanels.forEach((function(i){t.propGeneration(i);i.stretch=t.stretch}))};t.prototype.classNames=function(){var t="pds-tabs";if(this.variant&&this.variant!="primary"){var i="pds-tabs--".concat(this.variant);t+=" "+i}if(this.divider){t+=" pds-tabs--divider"}if(this.stretch){t+=" pds-tabs--stretch"}return t};t.prototype.componentWillLoad=function(){this.findAllChildren();this.warnOnNavConfig()};t.prototype.componentWillRender=function(){this.passPropsToChildren()};t.prototype.render=function(){var t=this.isNav?s("nav",{class:"pds-tabs__tablist","aria-label":this.tablistLabel||undefined,part:"tab-list"},s("slot",{name:"tabs"})):s("div",{class:"pds-tabs__tablist",role:"tablist","aria-label":this.tablistLabel,part:"tab-list"},s("slot",{name:"tabs"}));var i=this.classNames();this.hostKeeper.record(i);return s(n,{key:"08ac02be358bebbd95dd5edca30cd99789445f50","active-tab-name":this.activeTabName,class:i,id:this.componentId},t,s("slot",{key:"02395c056f80f46f1fa9117eafde68ef170b4188",name:"tabpanels"}))};Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());o.style=r()}}}));
1
+ System.register(["./p-BK1sLRfg.system.js","./p-CNXspDYs.system.js","./p-BZ1l3LGl.system.js"],(function(t){"use strict";var i,s,n,a,e;return{setters:[function(t){i=t.r;s=t.h;n=t.H;a=t.a},function(t){e=t.H},null],execute:function(){var r=function(){return":host{--tabs-dimension-panel-margin-top:var(--pine-dimension-none);--tabs-dimension-panel-padding:0;display:block}.pds-tabs__tablist{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--pine-dimension-md)}:host(.pds-tabs--divider) .pds-tabs__tablist{-webkit-border-after:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);border-block-end:var(--pine-border-width-thin) solid var(--pine-color-border-subtle)}:host(.pds-tabs--stretch){block-size:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host(.pds-tabs--stretch) .pds-tabs__tablist{-ms-flex:0 0 auto;flex:0 0 auto}:host(.pds-tabs--availability) .pds-tabs__tablist{gap:var(--pine-dimension-xs)}:host(.pds-tabs--filter) .pds-tabs__tablist{gap:var(--pine-dimension-sm)}:host(.pds-tabs--pill) .pds-tabs__tablist{background-color:var(--pine-color-background-app);border:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);border-radius:var(--pine-dimension-100);display:-ms-inline-flexbox;display:inline-flex;display:-ms-flexbox;display:flex;gap:0;height:var(--pine-dimension-450)}"};var o=t("pds_tabs",function(){function t(t){var s=this;i(this,t);this.hostKeeper=new e;this.slotChangeScheduled=false;this.lastFocusedTab=null;this.handleFocusIn=function(t){var i;var n=(i=t.target)===null||i===void 0?void 0:i.closest("pds-tab");if(n&&n.closest("pds-tabs")===s.el){s.lastFocusedTab=n}};this.handleFocusOut=function(t){var i=s.lastFocusedTab;if(t.relatedTarget){s.lastFocusedTab=null;return}queueMicrotask((function(){if(s.lastFocusedTab===i&&(i===null||i===void 0?void 0:i.isConnected))s.lastFocusedTab=null}))};this.divider=false;this.stretch=false;this.nav=false;this.handleSlotChange=function(){if(s.slotChangeScheduled)return;s.slotChangeScheduled=true;s.activeTabNameBeforeSlotChange=s.activeTabName;queueMicrotask((function(){s.slotChangeScheduled=false;s.recollectAfterSlotChange()}))}}t.prototype.connectedCallback=function(){this.hostKeeper.connect(this.el);this.el.addEventListener("focusin",this.handleFocusIn);this.el.addEventListener("focusout",this.handleFocusOut);var t=this.tabsSlot!=null;this.setupSlotChangeListeners();if(t)this.handleSlotChange()};t.prototype.disconnectedCallback=function(){var t,i;this.hostKeeper.disconnect();this.el.removeEventListener("focusin",this.handleFocusIn);this.el.removeEventListener("focusout",this.handleFocusOut);(t=this.tabsSlot)===null||t===void 0?void 0:t.removeEventListener("slotchange",this.handleSlotChange);(i=this.tabPanelsSlot)===null||i===void 0?void 0:i.removeEventListener("slotchange",this.handleSlotChange)};t.prototype.componentDidLoad=function(){this.setupSlotChangeListeners()};t.prototype.tabClickHandler=function(t){if(this.componentId===t.detail[1]){this.activeTabIndex=t.detail[0];this.activeTabName=this.tabs[this.activeTabIndex].name}};t.prototype.handleKeyDown=function(t){if(this.isNav)return;var i=["ArrowLeft","ArrowRight","Home","End"];var s=t.target;var n=s.closest("pds-tab");var a=n&&n.closest("pds-tabs")===this.el;if(i.includes(t.key)&&a){t.preventDefault();this.moveActiveTab(t.key)}};Object.defineProperty(t.prototype,"isNav",{get:function(){return!!this.nav},enumerable:false,configurable:true});t.prototype.warnOnNavConfig=function(){var t;if(!((t=this.tabs)===null||t===void 0?void 0:t.length))return;var i=this.tabs.filter((function(t){var i=t.getAttribute("href");return i!=null&&i!==""})).length;if(this.nav&&i<this.tabs.length){console.warn("pds-tabs: `nav` is set, so every pds-tab needs an `href`.")}else if(!this.nav&&i>0){console.warn("pds-tabs: a pds-tab has an `href` but `nav` is not set — add `nav` to pds-tabs for navigation mode; the href is ignored in panel mode.")}};t.prototype.moveActiveTab=function(t){var i=0;var s=this.tabs.length-1;var n=null;switch(t){case"ArrowLeft":n=this.activeTabIndex===i?s:this.activeTabIndex+-1;break;case"ArrowRight":n=this.activeTabIndex===s?i:this.activeTabIndex+1;break;case"Home":n=i;break;case"End":n=s;break}this.tabs[n].children[0].focus();this.activeTabName=this.tabs[n].name;this.activeTabIndex=n};t.prototype.findAllChildren=function(){var t=this;var i=Array.from(this.el.querySelectorAll("pds-tab"));var s=Array.from(this.el.querySelectorAll("pds-tabpanel"));this.tabs=i.filter((function(i){return i.closest("pds-tabs")===t.el}));this.tabPanels=s.filter((function(i){return i.closest("pds-tabs")===t.el}))};t.prototype.setupSlotChangeListeners=function(){var t,i,s,n;this.tabsSlot=(t=this.el.shadowRoot)===null||t===void 0?void 0:t.querySelector('slot[name="tabs"]');this.tabPanelsSlot=(i=this.el.shadowRoot)===null||i===void 0?void 0:i.querySelector('slot[name="tabpanels"]');(s=this.tabsSlot)===null||s===void 0?void 0:s.addEventListener("slotchange",this.handleSlotChange);(n=this.tabPanelsSlot)===null||n===void 0?void 0:n.addEventListener("slotchange",this.handleSlotChange)};t.prototype.recollectAfterSlotChange=function(){var t=this;var i=this.activeTabNameBeforeSlotChange;var s=!this.isNav&&this.lastFocusedTab!=null&&!this.lastFocusedTab.isConnected;this.findAllChildren();this.warnOnNavConfig();if(i!=null&&!this.tabs.some((function(t){return t.name===i}))){this.activeTabName=undefined}this.passPropsToChildren();if(s){this.lastFocusedTab=null;requestAnimationFrame((function(){var i;var s=document.activeElement;if(s&&s!==document.body)return;var n=t.tabs.find((function(i){return i.name===t.activeTabName}));(i=n===null||n===void 0?void 0:n.querySelector("button"))===null||i===void 0?void 0:i.focus()}))}};t.prototype.propGeneration=function(t,i){if(i===void 0){i=0}t.parentComponentId=this.componentId.toString();t.variant=this.variant;t.selected=this.activeTabName===t.name?true:false;t["index"]=i};t.prototype.passPropsToChildren=function(){var t=this;var i;if(!this.nav&&this.activeTabName==null&&this.tabs.length){var s=(i=this.tabs.find((function(t){return!t.disabled})))!==null&&i!==void 0?i:this.tabs[0];this.activeTabName=s.name}this.tabs.forEach((function(i,s){if(t.activeTabName===i.name)t.activeTabIndex=s;t.propGeneration(i,s);i.navMode=t.nav}));this.tabPanels.forEach((function(i){t.propGeneration(i);i.stretch=t.stretch}))};t.prototype.classNames=function(){var t="pds-tabs";if(this.variant&&this.variant!="primary"){var i="pds-tabs--".concat(this.variant);t+=" "+i}if(this.divider){t+=" pds-tabs--divider"}if(this.stretch){t+=" pds-tabs--stretch"}return t};t.prototype.componentWillLoad=function(){this.findAllChildren();this.warnOnNavConfig()};t.prototype.componentWillRender=function(){this.passPropsToChildren()};t.prototype.render=function(){var t=this.isNav?s("nav",{class:"pds-tabs__tablist","aria-label":this.tablistLabel||undefined,part:"tab-list"},s("slot",{name:"tabs"})):s("div",{class:"pds-tabs__tablist",role:"tablist","aria-label":this.tablistLabel,part:"tab-list"},s("slot",{name:"tabs"}));var i=this.classNames();this.hostKeeper.record(i);return s(n,{key:"08ac02be358bebbd95dd5edca30cd99789445f50","active-tab-name":this.activeTabName,class:i,id:this.componentId},t,s("slot",{key:"02395c056f80f46f1fa9117eafde68ef170b4188",name:"tabpanels"}))};Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());o.style=r()}}}));
@@ -1 +1 @@
1
- import{r as t,c as i,h as s,H as h,a as e}from"./p-BplEmwUQ.js";import{p as o,a as n,c as r,o as l,f as a,s as d}from"./p-Cuc0DYlm.js";import{c as p,a as c}from"./p-DHPzKMVS.js";import{r as u}from"./p-t3idJwV0.js";import{s as v}from"./p-35s7h-dk.js";import{l as m}from"./p-BgNaWLoS.js";import{t as f}from"./p-DCKBKRUy.js";const b=t=>{const i=String(t),s=i.length,h=i.charCodeAt(0);let e="";for(let t=0;t<s;t++){const o=i.charCodeAt(t);e+=0!==o?o>=1&&o<=31||127===o||0===t&&o>=48&&o<=57||1===t&&o>=48&&o<=57&&45===h?`\\${o.toString(16)} `:0===t&&1===s&&45===o||!(o>=128||45===o||95===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122)?`\\${i.charAt(t)}`:i.charAt(t):"�"}return e},g=[],w=Object.assign(Object.assign({},o),{getOffsetParent:()=>window});function k(){var t;let i=document.activeElement;for(;null===(t=null==i?void 0:i.shadowRoot)||void 0===t?void 0:t.activeElement;)i=i.shadowRoot.activeElement;return i}function y(t,i){let s=t;for(;s.getRootNode()!==i.getRootNode()&&s.getRootNode()instanceof ShadowRoot;)s=s.getRootNode().host;return s}const T=new WeakMap,P=class{constructor(s){t(this,s),this.pdsPopoverOpen=i(this,"pdsPopoverOpen"),this.pdsPopoverClose=i(this,"pdsPopoverClose"),this.active=!1,this.isComponentMounted=!0,this.hasLoaded=!1,this.generatedPortalId=null,this.triggerEl=null,this.triggerObserver=null,this.portalEl=null,this.stopAutoUpdate=null,this.positioningRun=0,this.positioning=Promise.resolve(),this.openEventPending=!1,this.movedNodes=[],this.openTimestamp=0,this.hoverOpened=!1,this.closeWhenFocusLeaves=!1,this.panelDistance=1/0,this.tabGuardEl=null,this.leavingPanel=!1,this.tabDirection=null,this.popoverTargetAction="show",this.openOn="click",this.popoverType="auto",this.maxWidth=352,this.padding="md",this.placement="right",this.handleTriggerSlotChange=t=>{const i=t.target.assignedElements();null!=this.triggerEl&&(this.triggerEl.removeEventListener("click",this.handleTriggerClick),this.stopListeningForHover(this.triggerEl)),i.length>0?(this.triggerEl=i[0],this.linkTriggerToPortal(),this.triggerEl.addEventListener("click",this.handleTriggerClick),this.listenForHover(this.triggerEl)):this.triggerEl=null,this.active&&this.addScrollAndResizeListeners(),this.observeTrigger()},this.handleContentSlotChange=()=>{this.active&&this.updatePortalContent()},this.handleTriggerClick=t=>{if(t.composedPath().find((t=>t instanceof HTMLAnchorElement&&t.href))||t.preventDefault(),"hover"===this.openOn&&"hide"!==this.popoverTargetAction){const t=this.hoverOpened;if(this.pin(),t)return}switch(this.popoverTargetAction){case"show":this.show();break;case"hide":this.hide();break;default:this.toggle()}},this.handleHoverEnter=t=>{"touch"!==t.pointerType&&(this.clearHoverTimers(),this.active||(this.hoverOpenTimer=setTimeout((()=>{this.hoverOpenTimer=void 0,this.active||null==this.portalEl||(this.hoverOpened=!0,this.show())}),120)))},this.handleHoverLeave=t=>{"touch"!==t.pointerType&&(this.clearHoverTimers(),this.hoverOpened&&(this.hoverCloseTimer=setTimeout(this.closeFromHover,200),t.currentTarget===this.triggerEl&&(this.panelDistance=this.distanceToPanel(t),document.addEventListener("pointermove",this.handleMoveTowardPanel))))},this.handleMoveTowardPanel=t=>{const i=this.distanceToPanel(t);i<this.panelDistance&&(clearTimeout(this.hoverCloseTimer),this.hoverCloseTimer=setTimeout(this.closeFromHover,200)),this.panelDistance=i},this.handleHoverFocusOut=t=>{this.closeWhenFocusLeaves&&!p(this.portalEl,t.relatedTarget)&&(this.closeWhenFocusLeaves=!1,this.hoverCloseTimer=setTimeout(this.closeFromHover,200))},this.closeFromHover=()=>{this.clearHoverTimers(),this.hoverOpened&&(p(this.portalEl,k())?this.closeWhenFocusLeaves=!0:this.hide())},this.shadowFocusStyle=null,this.watchedDialog=null,this.onDialogClose=()=>{this.hide()},this.handleSubmitFromPanel=t=>{this.portalEl&&p(t.target,this.portalEl)&&(p(this.portalEl,t.submitter)||p(this.portalEl,k()))&&(t.preventDefault(),t.stopPropagation())},this.syncTabGuard=t=>{if("Tab"!==t.key)return;this.releasePanel(),this.tabDirection=t.shiftKey?"backward":"forward",setTimeout(this.endTabKey);const i=this.guardedTabbables().length>0;null!=this.tabGuardEl&&(this.tabGuardEl.tabIndex=i?0:-1);const s=k();!i||p(this.portalEl,s)||c(".pds-popover, .pds-datepicker-calendar-portal, .pds-combobox-dropdown-portal",null!=s?s:document)||(this.portalEl.inert=!0)},this.endTabKey=()=>{this.tabDirection=null,this.releasePanel()},this.handleTabGuardFocus=t=>{if(this.leavingPanel)return;this.releasePanel();const i=this.guardedTabbables(),s=t.relatedTarget,h=(null!=this.tabDirection?"backward"===this.tabDirection:null!=s&&this.isAfterPopover(s))?i[i.length-1]:i[0];null==h?this.returnFocusToTrigger():h.focus()},this.handleTabFromPanel=t=>{if("Tab"!==t.key||t.defaultPrevented||null==this.tabGuardEl)return;const i=this.guardedTabbables(),s=t.shiftKey?i[0]:i[i.length-1];null!=s&&k()===s&&this.leavePanel(s,t.shiftKey)},this.releasePanel=()=>{null!=this.portalEl&&(this.portalEl.inert=!1)}}openOnChanged(){this.pin(),this.stopListeningForHover(this.triggerEl),this.stopListeningForHover(this.portalEl),this.isComponentMounted&&(this.listenForHover(this.triggerEl),this.listenForHover(this.portalEl))}applyPadding(){null!=this.portalEl&&(this.portalEl.style.padding=this.paddingToken())}paddingToken(){switch(this.padding){case"none":return"var(--pine-dimension-none)";case"xs":return"var(--pine-dimension-xs)";case"sm":return"var(--pine-dimension-sm)";default:return"var(--pine-dimension-md)"}}restorePlacementDefault(t){this.placement=u(this.el,"placement",t,"right")}componentDidLoad(){var t;this.boundClickOutsideHandler=this.handleClickOutside.bind(this),this.boundEscapeKeyHandler=this.handleEscapeKey.bind(this),this.createPortal(),this.hasLoaded=!0;const i=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector('slot[name="trigger"]');if(i&&null==this.triggerEl){const t=new("undefined"!=typeof window?window.Event:global.Event)("slotchange");Object.defineProperty(t,"target",{value:i,enumerable:!0}),this.handleTriggerSlotChange(t)}else this.linkTriggerToPortal()}observeTrigger(){var t;null===(t=this.triggerObserver)||void 0===t||t.disconnect(),this.triggerObserver=null,null!=this.triggerEl&&"undefined"!=typeof MutationObserver&&(this.triggerObserver=new MutationObserver(m((()=>this.linkTriggerToPortal()),"pds-popover: stopped restoring its trigger ARIA, as another script keeps changing it. It may be wrong until the popover opens or closes.",this.triggerEl)),this.triggerObserver.observe(this.triggerEl,{attributes:!0,attributeFilter:["aria-expanded","aria-controls"]}))}linkTriggerToPortal(){return null!=this.triggerEl&&null!=this.portalEl&&v(this.triggerEl,{"aria-expanded":String(this.active),"aria-controls":this.portalEl.id})}listenForHover(t){"hover"===this.openOn&&null!=t&&(t.addEventListener("pointerenter",this.handleHoverEnter),t.addEventListener("pointerleave",this.handleHoverLeave),t.addEventListener("focusout",this.handleHoverFocusOut))}stopListeningForHover(t){null!=t&&(t.removeEventListener("pointerenter",this.handleHoverEnter),t.removeEventListener("pointerleave",this.handleHoverLeave),t.removeEventListener("focusout",this.handleHoverFocusOut))}distanceToPanel({clientX:t,clientY:i}){const s=this.portalEl.getBoundingClientRect();return Math.hypot(Math.max(s.left-t,0,t-s.right),Math.max(s.top-i,0,i-s.bottom))}pin(){var t;this.clearHoverTimers(),this.hoverOpened&&(this.hoverOpened=!1,"auto"!==this.popoverType&&(this.forgetOpen(),null===(t=this.portalEl)||void 0===t||t.removeAttribute("data-pds-popover-open"),document.removeEventListener("keydown",this.boundEscapeKeyHandler)))}clearHoverTimers(){clearTimeout(this.hoverOpenTimer),clearTimeout(this.hoverCloseTimer),this.hoverOpenTimer=void 0,this.hoverCloseTimer=void 0,this.closeWhenFocusLeaves=!1,document.removeEventListener("pointermove",this.handleMoveTowardPanel)}connectedCallback(){var t;this.hasLoaded&&(this.isComponentMounted=!0,this.createPortal(),null===(t=this.triggerEl)||void 0===t||t.addEventListener("click",this.handleTriggerClick),this.listenForHover(this.triggerEl),this.observeTrigger(),this.linkTriggerToPortal(),this.active&&(this.placePortal(),this.addScrollAndResizeListeners()))}disconnectedCallback(){var t,i;this.el.isConnected||(this.isComponentMounted=!1,this.unwatchDialogClose(),this.forgetOpen(),this.active&&(this.restorePortalContent(),this.active=!1,this.linkTriggerToPortal(),this.emitOpenEvent(),this.pdsPopoverClose.emit({componentId:this.componentId,popoverType:this.popoverType})),null!=this.triggerEl&&this.triggerEl.removeEventListener("click",this.handleTriggerClick),this.stopListeningForHover(this.triggerEl),null===(t=this.triggerObserver)||void 0===t||t.disconnect(),this.triggerObserver=null,this.removeLightDismissListeners(),this.removeScrollAndResizeListeners(),document.removeEventListener("submit",this.handleSubmitFromPanel,!0),document.removeEventListener("keydown",this.syncTabGuard,!0),null===(i=this.tabGuardEl)||void 0===i||i.removeAttribute("tabindex"),this.clearHoverTimers(),this.hoverOpened=!1,this.removePortal())}createPortal(){var t;null===this.portalEl&&(this.portalEl=document.createElement("div"),this.portalEl.className="pds-popover",T.set(this.portalEl,this),this.portalEl.style.position="fixed",this.portalEl.style.zIndex="var(--pine-z-index-raised)",this.portalEl.style.maxWidth=`${this.maxWidth}px`,this.portalEl.style.display="none",this.portalEl.style.opacity="0",this.portalEl.style.visibility="hidden",this.portalEl.style.backgroundColor="var(--pine-color-background-overlay)",this.portalEl.style.borderRadius="var(--pine-dimension-125)",this.portalEl.style.boxShadow="var(--pine-box-shadow-200)",this.portalEl.style.margin="var(--pine-dimension-none)",this.portalEl.style.padding=this.paddingToken(),this.componentId?this.portalEl.id=`${this.componentId}-portal`:(null!==(t=this.generatedPortalId)&&void 0!==t||(this.generatedPortalId="pds-popover-portal-"+P.instanceCounter++),this.portalEl.id=this.generatedPortalId),document.body.appendChild(this.portalEl),this.addPortalFocusStyles(),this.listenForHover(this.portalEl),this.portalEl.addEventListener("keydown",this.handleTabFromPanel))}addPortalFocusStyles(){if(!this.portalEl)return;const t=this.portalEl.id,i=b(t);if(document.querySelector(`style[data-pds-popover-focus="${i}"]`))return;const s=document.createElement("style");s.setAttribute("data-pds-popover-focus",t),s.textContent=`\n #${i}:focus {\n outline: var(--pine-outline-focus, 2px solid var(--pine-color-focus-ring, #6366f1)) !important;\n outline-offset: var(--pine-border-width, 1px);\n }\n #${i}:focus:not(:focus-visible) {\n outline: none;\n }\n [data-theme="dark"] #${i} {\n border: var(--pine-border);\n }\n `,document.head.appendChild(s)}updatePortalContent(){var t;if(!this.portalEl)return;const i=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector(".pds-popover__content-slot-wrapper"),s=null==i?void 0:i.querySelector("slot");s&&s.assignedNodes().forEach((t=>{var i;const s=t.parentNode===this.portalEl,h=this.movedNodes.some((i=>i.node===t));if(s||h)return;const e=document.createComment("pds-popover-placeholder");null===(i=t.parentNode)||void 0===i||i.insertBefore(e,t),this.portalEl.appendChild(t),this.movedNodes.push({node:t,placeholder:e})}))}restorePortalContent(){this.movedNodes.forEach((({node:t,placeholder:i})=>{i.parentNode&&(i.parentNode.insertBefore(t,i),i.parentNode.removeChild(i))})),this.movedNodes=[]}copyFocusStylesInto(t){var i,s,h;if(!(t instanceof ShadowRoot))return null===(i=this.shadowFocusStyle)||void 0===i||i.remove(),void(this.shadowFocusStyle=null);if((null===(s=this.shadowFocusStyle)||void 0===s?void 0:s.parentNode)===t||!this.portalEl)return;const e=document.querySelector(`style[data-pds-popover-focus="${b(this.portalEl.id)}"]`);e&&(null===(h=this.shadowFocusStyle)||void 0===h||h.remove(),this.shadowFocusStyle=e.cloneNode(!0),t.appendChild(this.shadowFocusStyle))}removePortal(){var t;if(null===(t=this.shadowFocusStyle)||void 0===t||t.remove(),this.shadowFocusStyle=null,this.portalEl){this.portalEl.parentNode&&this.portalEl.parentNode.removeChild(this.portalEl);const t=document.querySelector(`style[data-pds-popover-focus="${b(this.portalEl.id)}"]`);t&&t.parentNode&&t.parentNode.removeChild(t)}this.portalEl=null}async show(){if(this.active||!this.portalEl)return;let t;this.active=!0,this.openTimestamp=Date.now(),this.linkTriggerToPortal(),this.placePortal(),this.updatePortalContent(),("auto"===this.popoverType||this.hoverOpened)&&this.portalEl.setAttribute("data-pds-popover-open",""),this.portalEl.style.display="block",this.portalEl.style.opacity="1",this.portalEl.style.visibility="visible",this.addScrollAndResizeListeners(),document.addEventListener("submit",this.handleSubmitFromPanel,!0),document.addEventListener("keydown",this.syncTabGuard,!0),"auto"===this.popoverType?(g.push(this),this.addLightDismissListeners()):this.hoverOpened&&(g.push(this),document.addEventListener("keydown",this.boundEscapeKeyHandler)),this.openEventPending=!0;do{t=this.positioning,await t}while(t!==this.positioning);this.emitOpenEvent()}emitOpenEvent(){this.openEventPending&&(this.openEventPending=!1,this.pdsPopoverOpen.emit({componentId:this.componentId,popoverType:this.popoverType}))}async hide(){var t;if(this.clearHoverTimers(),!this.active||!this.portalEl)return;this.active=!1,this.hoverOpened=!1,this.unwatchDialogClose();const i=p(this.portalEl,k());this.linkTriggerToPortal(),this.restorePortalContent(),this.portalEl.style.border="",this.portalEl.removeAttribute("data-pds-popover-open"),this.portalEl.removeAttribute("data-pds-popover-placement"),this.portalEl.style.display="none",this.portalEl.style.opacity="0",this.portalEl.style.visibility="hidden",i&&this.returnFocusToTrigger(),this.forgetOpen(),this.removeLightDismissListeners(),this.removeScrollAndResizeListeners(),document.removeEventListener("submit",this.handleSubmitFromPanel,!0),document.removeEventListener("keydown",this.syncTabGuard,!0),null===(t=this.tabGuardEl)||void 0===t||t.removeAttribute("tabindex"),this.releasePanel(),this.emitOpenEvent(),this.pdsPopoverClose.emit({componentId:this.componentId,popoverType:this.popoverType})}async toggle(){this.active?await this.hide():await this.show()}placePortal(){var t,i;if(!this.portalEl)return;const s=c("dialog[open]",this.el);if(!s)return this.unwatchDialogClose(),this.portalEl.style.border="",this.portalEl.parentElement!==document.body&&document.body.appendChild(this.portalEl),void this.copyFocusStylesInto(document);const h=c("form",this.el);(null===(t=this.el.parentElement)||void 0===t?void 0:t.shadowRoot)||h&&p(s,h)?this.portalEl.parentNode!==s&&s.appendChild(this.portalEl):this.el.nextElementSibling!==this.portalEl&&(null===(i=this.el.parentNode)||void 0===i||i.insertBefore(this.portalEl,this.el.nextSibling)),this.watchDialogClose(s);const e=this.portalEl.getRootNode();this.copyFocusStylesInto(e),this.portalEl.style.border=e instanceof ShadowRoot&&c('[data-theme="dark"]',this.el)?"var(--pine-border)":""}forgetOpen(){const t=g.indexOf(this);t>=0&&g.splice(t,1)}takesEscapeFrom(t){var i,s;const h=null!==(s=null===(i=t.composedPath)||void 0===i?void 0:i.call(t)[0])&&void 0!==s?s:t.target,e=c("dialog[open]",h);return!(e&&!p(e,this.portalEl)&&(e.classList.contains("pds-modal__backdrop")||e.matches(":modal")))}addLightDismissListeners(){document.addEventListener("click",this.boundClickOutsideHandler,!0),document.addEventListener("keydown",this.boundEscapeKeyHandler)}watchDialogClose(t){this.watchedDialog!==t&&(this.unwatchDialogClose(),this.watchedDialog=t,t.addEventListener("close",this.onDialogClose))}unwatchDialogClose(){var t;null===(t=this.watchedDialog)||void 0===t||t.removeEventListener("close",this.onDialogClose),this.watchedDialog=null}removeLightDismissListeners(){document.removeEventListener("click",this.boundClickOutsideHandler,!0),document.removeEventListener("keydown",this.boundEscapeKeyHandler)}guardedTabbables(){return null==this.portalEl||this.el.nextElementSibling===this.portalEl?[]:f(this.portalEl)}isAfterPopover(t){return!(p(this.el,t)||(i=function(t,i){const s=y(i,t);return y(t,s).compareDocumentPosition(s)}(this.el,t),s=Node.DOCUMENT_POSITION_FOLLOWING,i&Node.DOCUMENT_POSITION_DISCONNECTED||!(i&s)));var i,s}leavePanel(t,i){var s,h;this.leavingPanel=!0,null===(s=this.tabGuardEl)||void 0===s||s.focus(),this.leavingPanel=!1,this.portalEl.inert=!0,setTimeout((()=>this.finishLeavingPanel(t)));const e=T.get(c(".pds-popover",this.el)),o=null!==(h=null==e?void 0:e.guardedTabbables())&&void 0!==h?h:[];i||o[o.length-1]!==this.tabGuardEl||e.leavePanel(t,!1)}finishLeavingPanel(t){var i;this.releasePanel(),this.active&&(null===(i=this.el.shadowRoot)||void 0===i?void 0:i.activeElement)===this.tabGuardEl&&t.focus()}addScrollAndResizeListeners(){this.removeScrollAndResizeListeners(),null!=this.triggerEl&&null!=this.portalEl&&(this.stopAutoUpdate=n(this.triggerEl,this.portalEl,(()=>{this.positioning=this.handlePopoverPositioning().catch((t=>console.warn("pds-popover: failed to position the panel",t)))})))}removeScrollAndResizeListeners(){var t;null===(t=this.stopAutoUpdate)||void 0===t||t.call(this),this.stopAutoUpdate=null}handleClickOutside(t){var i,s;if((t.timeStamp?Date.now()-(performance.now()-t.timeStamp):Date.now())<=this.openTimestamp)return;const h=null!==(s=null===(i=t.composedPath)||void 0===i?void 0:i.call(t)[0])&&void 0!==s?s:t.target,e=c(".pds-datepicker-calendar-portal",h),o=null==e?void 0:e.pdsDatepicker;if(o&&(p(this.portalEl,o)||p(this.triggerEl,o)))return;const n=p(this.portalEl,h),r=p(this.triggerEl,h);n||r||this.hide()}returnFocusToTrigger(){this.triggerEl&&this.triggerEl.focus({preventScroll:!0})}handleEscapeKey(t){"Escape"!==t.key||t.defaultPrevented||[...g].reverse().find((i=>i.takesEscapeFrom(t)))===this&&(t.preventDefault(),t.stopPropagation(),this.hide())}async handlePopoverPositioning(){const t=++this.positioningRun;if(null==this.triggerEl||null==this.portalEl)return;const i=this.triggerEl.getBoundingClientRect();if(0===i.width||0===i.height)return;const s=this.portalEl,{x:h,y:e,placement:o}=await r(this.triggerEl,s,{placement:this.placement,strategy:"fixed",middleware:[l(8),a({fallbackStrategy:"initialPlacement"}),d({padding:8})],platform:w});if(!this.active||t!==this.positioningRun||s!==this.portalEl)return;s.setAttribute("data-pds-popover-placement",o);const n=(t=>{var i;const s=document.createElement("div");s.style.cssText="all: initial; position: fixed; top: 0; left: 0;",null===(i=t.parentNode)||void 0===i||i.insertBefore(s,t);const{top:h,left:e}=s.getBoundingClientRect();return s.remove(),{top:h,left:e}})(s);s.style.top=e-n.top+"px",s.style.left=h-n.left+"px"}render(){return s(h,{key:"85422eb7544a4795ce78b51684b7224a5d856a4e",id:this.componentId},s("span",{key:"6fe9c827ed4d46ca723d6013f296faf80ba31366",class:"pds-popover__trigger-wrapper"},s("slot",{key:"970d1974d2be1451e670a36e7d2ccdc5979595bb",name:"trigger",onSlotchange:this.handleTriggerSlotChange})),s("span",{key:"0c76f76286a30d8e6e948bd0abab3317b3673aa6",class:"pds-popover__tab-guard",ref:t=>this.tabGuardEl=null!=t?t:null,onFocus:this.handleTabGuardFocus}),s("div",{key:"692c45e93899e74a3d5970f3a3625f6115ab63b0",class:"pds-popover__content-slot-wrapper"},s("slot",{key:"f1566e0eb1eb08626f2a8285447702ce96b09f4d",onSlotchange:this.handleContentSlotChange})))}get el(){return e(this)}static get watchers(){return{openOn:[{openOnChanged:0}],padding:[{applyPadding:0}],placement:[{restorePlacementDefault:0}]}}};P.instanceCounter=0,P.style=":host{--sizing-max-width-default:352px;display:inline-block}:host .pds-popover__trigger-wrapper{display:inline-block}:host .pds-popover__tab-guard{opacity:0;outline:none;pointer-events:none;position:fixed}:host .pds-popover__content-slot-wrapper{display:none}";export{P as pds_popover}
1
+ import{r as t,c as i,h as s,H as h,a as e}from"./p-M31tvpDN.js";import{p as o,a as n,c as r,o as l,f as a,s as d}from"./p-Cuc0DYlm.js";import{c as p,a as c}from"./p-DHPzKMVS.js";import{r as u}from"./p-t3idJwV0.js";import{s as v}from"./p-35s7h-dk.js";import{l as m}from"./p-BgNaWLoS.js";import{t as f}from"./p-C6ZWpp3v.js";const b=t=>{const i=String(t),s=i.length,h=i.charCodeAt(0);let e="";for(let t=0;t<s;t++){const o=i.charCodeAt(t);e+=0!==o?o>=1&&o<=31||127===o||0===t&&o>=48&&o<=57||1===t&&o>=48&&o<=57&&45===h?`\\${o.toString(16)} `:0===t&&1===s&&45===o||!(o>=128||45===o||95===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122)?`\\${i.charAt(t)}`:i.charAt(t):"�"}return e},g=[],w=Object.assign(Object.assign({},o),{getOffsetParent:()=>window});function k(){var t;let i=document.activeElement;for(;null===(t=null==i?void 0:i.shadowRoot)||void 0===t?void 0:t.activeElement;)i=i.shadowRoot.activeElement;return i}function y(t,i){let s=t;for(;s.getRootNode()!==i.getRootNode()&&s.getRootNode()instanceof ShadowRoot;)s=s.getRootNode().host;return s}const T=new WeakMap,P=class{constructor(s){t(this,s),this.pdsPopoverOpen=i(this,"pdsPopoverOpen"),this.pdsPopoverClose=i(this,"pdsPopoverClose"),this.active=!1,this.isComponentMounted=!0,this.hasLoaded=!1,this.generatedPortalId=null,this.triggerEl=null,this.triggerObserver=null,this.portalEl=null,this.stopAutoUpdate=null,this.positioningRun=0,this.positioning=Promise.resolve(),this.openEventPending=!1,this.movedNodes=[],this.openTimestamp=0,this.hoverOpened=!1,this.closeWhenFocusLeaves=!1,this.panelDistance=1/0,this.tabGuardEl=null,this.leavingPanel=!1,this.tabDirection=null,this.popoverTargetAction="show",this.openOn="click",this.popoverType="auto",this.maxWidth=352,this.padding="md",this.placement="right",this.handleTriggerSlotChange=t=>{const i=t.target.assignedElements();null!=this.triggerEl&&(this.triggerEl.removeEventListener("click",this.handleTriggerClick),this.stopListeningForHover(this.triggerEl)),i.length>0?(this.triggerEl=i[0],this.linkTriggerToPortal(),this.triggerEl.addEventListener("click",this.handleTriggerClick),this.listenForHover(this.triggerEl)):this.triggerEl=null,this.active&&this.addScrollAndResizeListeners(),this.observeTrigger()},this.handleContentSlotChange=()=>{this.active&&this.updatePortalContent()},this.handleTriggerClick=t=>{if(t.composedPath().find((t=>t instanceof HTMLAnchorElement&&t.href))||t.preventDefault(),"hover"===this.openOn&&"hide"!==this.popoverTargetAction){const t=this.hoverOpened;if(this.pin(),t)return}switch(this.popoverTargetAction){case"show":this.show();break;case"hide":this.hide();break;default:this.toggle()}},this.handleHoverEnter=t=>{"touch"!==t.pointerType&&(this.clearHoverTimers(),this.active||(this.hoverOpenTimer=setTimeout((()=>{this.hoverOpenTimer=void 0,this.active||null==this.portalEl||(this.hoverOpened=!0,this.show())}),120)))},this.handleHoverLeave=t=>{"touch"!==t.pointerType&&(this.clearHoverTimers(),this.hoverOpened&&(this.hoverCloseTimer=setTimeout(this.closeFromHover,200),t.currentTarget===this.triggerEl&&(this.panelDistance=this.distanceToPanel(t),document.addEventListener("pointermove",this.handleMoveTowardPanel))))},this.handleMoveTowardPanel=t=>{const i=this.distanceToPanel(t);i<this.panelDistance&&(clearTimeout(this.hoverCloseTimer),this.hoverCloseTimer=setTimeout(this.closeFromHover,200)),this.panelDistance=i},this.handleHoverFocusOut=t=>{this.closeWhenFocusLeaves&&!p(this.portalEl,t.relatedTarget)&&(this.closeWhenFocusLeaves=!1,this.hoverCloseTimer=setTimeout(this.closeFromHover,200))},this.closeFromHover=()=>{this.clearHoverTimers(),this.hoverOpened&&(p(this.portalEl,k())?this.closeWhenFocusLeaves=!0:this.hide())},this.shadowFocusStyle=null,this.watchedDialog=null,this.onDialogClose=()=>{this.hide()},this.handleSubmitFromPanel=t=>{this.portalEl&&p(t.target,this.portalEl)&&(p(this.portalEl,t.submitter)||p(this.portalEl,k()))&&(t.preventDefault(),t.stopPropagation())},this.syncTabGuard=t=>{if("Tab"!==t.key)return;this.releasePanel(),this.tabDirection=t.shiftKey?"backward":"forward",setTimeout(this.endTabKey);const i=this.guardedTabbables().length>0;null!=this.tabGuardEl&&(this.tabGuardEl.tabIndex=i?0:-1);const s=k();!i||p(this.portalEl,s)||c(".pds-popover, .pds-datepicker-calendar-portal, .pds-combobox-dropdown-portal",null!=s?s:document)||(this.portalEl.inert=!0)},this.endTabKey=()=>{this.tabDirection=null,this.releasePanel()},this.handleTabGuardFocus=t=>{if(this.leavingPanel)return;this.releasePanel();const i=this.guardedTabbables(),s=t.relatedTarget,h=(null!=this.tabDirection?"backward"===this.tabDirection:null!=s&&this.isAfterPopover(s))?i[i.length-1]:i[0];null==h?this.returnFocusToTrigger():h.focus()},this.handleTabFromPanel=t=>{if("Tab"!==t.key||t.defaultPrevented||null==this.tabGuardEl)return;const i=this.guardedTabbables(),s=t.shiftKey?i[0]:i[i.length-1];null!=s&&k()===s&&this.leavePanel(s,t.shiftKey)},this.releasePanel=()=>{null!=this.portalEl&&(this.portalEl.inert=!1)}}openOnChanged(){this.pin(),this.stopListeningForHover(this.triggerEl),this.stopListeningForHover(this.portalEl),this.isComponentMounted&&(this.listenForHover(this.triggerEl),this.listenForHover(this.portalEl))}applyPadding(){null!=this.portalEl&&(this.portalEl.style.padding=this.paddingToken())}paddingToken(){switch(this.padding){case"none":return"var(--pine-dimension-none)";case"xs":return"var(--pine-dimension-xs)";case"sm":return"var(--pine-dimension-sm)";default:return"var(--pine-dimension-md)"}}restorePlacementDefault(t){this.placement=u(this.el,"placement",t,"right")}componentDidLoad(){var t;this.boundClickOutsideHandler=this.handleClickOutside.bind(this),this.boundEscapeKeyHandler=this.handleEscapeKey.bind(this),this.createPortal(),this.hasLoaded=!0;const i=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector('slot[name="trigger"]');if(i&&null==this.triggerEl){const t=new("undefined"!=typeof window?window.Event:global.Event)("slotchange");Object.defineProperty(t,"target",{value:i,enumerable:!0}),this.handleTriggerSlotChange(t)}else this.linkTriggerToPortal()}observeTrigger(){var t;null===(t=this.triggerObserver)||void 0===t||t.disconnect(),this.triggerObserver=null,null!=this.triggerEl&&"undefined"!=typeof MutationObserver&&(this.triggerObserver=new MutationObserver(m((()=>this.linkTriggerToPortal()),"pds-popover: stopped restoring its trigger ARIA, as another script keeps changing it. It may be wrong until the popover opens or closes.",this.triggerEl)),this.triggerObserver.observe(this.triggerEl,{attributes:!0,attributeFilter:["aria-expanded","aria-controls"]}))}linkTriggerToPortal(){return null!=this.triggerEl&&null!=this.portalEl&&v(this.triggerEl,{"aria-expanded":String(this.active),"aria-controls":this.portalEl.id})}listenForHover(t){"hover"===this.openOn&&null!=t&&(t.addEventListener("pointerenter",this.handleHoverEnter),t.addEventListener("pointerleave",this.handleHoverLeave),t.addEventListener("focusout",this.handleHoverFocusOut))}stopListeningForHover(t){null!=t&&(t.removeEventListener("pointerenter",this.handleHoverEnter),t.removeEventListener("pointerleave",this.handleHoverLeave),t.removeEventListener("focusout",this.handleHoverFocusOut))}distanceToPanel({clientX:t,clientY:i}){const s=this.portalEl.getBoundingClientRect();return Math.hypot(Math.max(s.left-t,0,t-s.right),Math.max(s.top-i,0,i-s.bottom))}pin(){var t;this.clearHoverTimers(),this.hoverOpened&&(this.hoverOpened=!1,"auto"!==this.popoverType&&(this.forgetOpen(),null===(t=this.portalEl)||void 0===t||t.removeAttribute("data-pds-popover-open"),document.removeEventListener("keydown",this.boundEscapeKeyHandler)))}clearHoverTimers(){clearTimeout(this.hoverOpenTimer),clearTimeout(this.hoverCloseTimer),this.hoverOpenTimer=void 0,this.hoverCloseTimer=void 0,this.closeWhenFocusLeaves=!1,document.removeEventListener("pointermove",this.handleMoveTowardPanel)}connectedCallback(){var t;this.hasLoaded&&(this.isComponentMounted=!0,this.createPortal(),null===(t=this.triggerEl)||void 0===t||t.addEventListener("click",this.handleTriggerClick),this.listenForHover(this.triggerEl),this.observeTrigger(),this.linkTriggerToPortal(),this.active&&(this.placePortal(),this.addScrollAndResizeListeners()))}disconnectedCallback(){var t,i;this.el.isConnected||(this.isComponentMounted=!1,this.unwatchDialogClose(),this.forgetOpen(),this.active&&(this.restorePortalContent(),this.active=!1,this.linkTriggerToPortal(),this.emitOpenEvent(),this.pdsPopoverClose.emit({componentId:this.componentId,popoverType:this.popoverType})),null!=this.triggerEl&&this.triggerEl.removeEventListener("click",this.handleTriggerClick),this.stopListeningForHover(this.triggerEl),null===(t=this.triggerObserver)||void 0===t||t.disconnect(),this.triggerObserver=null,this.removeLightDismissListeners(),this.removeScrollAndResizeListeners(),document.removeEventListener("submit",this.handleSubmitFromPanel,!0),document.removeEventListener("keydown",this.syncTabGuard,!0),null===(i=this.tabGuardEl)||void 0===i||i.removeAttribute("tabindex"),this.clearHoverTimers(),this.hoverOpened=!1,this.removePortal())}createPortal(){var t;null===this.portalEl&&(this.portalEl=document.createElement("div"),this.portalEl.className="pds-popover",T.set(this.portalEl,this),this.portalEl.style.position="fixed",this.portalEl.style.zIndex="var(--pine-z-index-raised)",this.portalEl.style.maxWidth=`${this.maxWidth}px`,this.portalEl.style.display="none",this.portalEl.style.opacity="0",this.portalEl.style.visibility="hidden",this.portalEl.style.backgroundColor="var(--pine-color-background-overlay)",this.portalEl.style.borderRadius="var(--pine-dimension-125)",this.portalEl.style.boxShadow="var(--pine-box-shadow-200)",this.portalEl.style.margin="var(--pine-dimension-none)",this.portalEl.style.padding=this.paddingToken(),this.componentId?this.portalEl.id=`${this.componentId}-portal`:(null!==(t=this.generatedPortalId)&&void 0!==t||(this.generatedPortalId="pds-popover-portal-"+P.instanceCounter++),this.portalEl.id=this.generatedPortalId),document.body.appendChild(this.portalEl),this.addPortalFocusStyles(),this.listenForHover(this.portalEl),this.portalEl.addEventListener("keydown",this.handleTabFromPanel))}addPortalFocusStyles(){if(!this.portalEl)return;const t=this.portalEl.id,i=b(t);if(document.querySelector(`style[data-pds-popover-focus="${i}"]`))return;const s=document.createElement("style");s.setAttribute("data-pds-popover-focus",t),s.textContent=`\n #${i}:focus {\n outline: var(--pine-outline-focus, 2px solid var(--pine-color-focus-ring, #6366f1)) !important;\n outline-offset: var(--pine-border-width, 1px);\n }\n #${i}:focus:not(:focus-visible) {\n outline: none;\n }\n [data-theme="dark"] #${i} {\n border: var(--pine-border);\n }\n `,document.head.appendChild(s)}updatePortalContent(){var t;if(!this.portalEl)return;const i=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector(".pds-popover__content-slot-wrapper"),s=null==i?void 0:i.querySelector("slot");s&&s.assignedNodes().forEach((t=>{var i;const s=t.parentNode===this.portalEl,h=this.movedNodes.some((i=>i.node===t));if(s||h)return;const e=document.createComment("pds-popover-placeholder");null===(i=t.parentNode)||void 0===i||i.insertBefore(e,t),this.portalEl.appendChild(t),this.movedNodes.push({node:t,placeholder:e})}))}restorePortalContent(){this.movedNodes.forEach((({node:t,placeholder:i})=>{i.parentNode&&(i.parentNode.insertBefore(t,i),i.parentNode.removeChild(i))})),this.movedNodes=[]}copyFocusStylesInto(t){var i,s,h;if(!(t instanceof ShadowRoot))return null===(i=this.shadowFocusStyle)||void 0===i||i.remove(),void(this.shadowFocusStyle=null);if((null===(s=this.shadowFocusStyle)||void 0===s?void 0:s.parentNode)===t||!this.portalEl)return;const e=document.querySelector(`style[data-pds-popover-focus="${b(this.portalEl.id)}"]`);e&&(null===(h=this.shadowFocusStyle)||void 0===h||h.remove(),this.shadowFocusStyle=e.cloneNode(!0),t.appendChild(this.shadowFocusStyle))}removePortal(){var t;if(null===(t=this.shadowFocusStyle)||void 0===t||t.remove(),this.shadowFocusStyle=null,this.portalEl){this.portalEl.parentNode&&this.portalEl.parentNode.removeChild(this.portalEl);const t=document.querySelector(`style[data-pds-popover-focus="${b(this.portalEl.id)}"]`);t&&t.parentNode&&t.parentNode.removeChild(t)}this.portalEl=null}async show(){if(this.active||!this.portalEl)return;let t;this.active=!0,this.openTimestamp=Date.now(),this.linkTriggerToPortal(),this.placePortal(),this.updatePortalContent(),("auto"===this.popoverType||this.hoverOpened)&&this.portalEl.setAttribute("data-pds-popover-open",""),this.portalEl.style.display="block",this.portalEl.style.opacity="1",this.portalEl.style.visibility="visible",this.addScrollAndResizeListeners(),document.addEventListener("submit",this.handleSubmitFromPanel,!0),document.addEventListener("keydown",this.syncTabGuard,!0),"auto"===this.popoverType?(g.push(this),this.addLightDismissListeners()):this.hoverOpened&&(g.push(this),document.addEventListener("keydown",this.boundEscapeKeyHandler)),this.openEventPending=!0;do{t=this.positioning,await t}while(t!==this.positioning);this.emitOpenEvent()}emitOpenEvent(){this.openEventPending&&(this.openEventPending=!1,this.pdsPopoverOpen.emit({componentId:this.componentId,popoverType:this.popoverType}))}async hide(){var t;if(this.clearHoverTimers(),!this.active||!this.portalEl)return;this.active=!1,this.hoverOpened=!1,this.unwatchDialogClose();const i=p(this.portalEl,k());this.linkTriggerToPortal(),this.restorePortalContent(),this.portalEl.style.border="",this.portalEl.removeAttribute("data-pds-popover-open"),this.portalEl.removeAttribute("data-pds-popover-placement"),this.portalEl.style.display="none",this.portalEl.style.opacity="0",this.portalEl.style.visibility="hidden",i&&this.returnFocusToTrigger(),this.forgetOpen(),this.removeLightDismissListeners(),this.removeScrollAndResizeListeners(),document.removeEventListener("submit",this.handleSubmitFromPanel,!0),document.removeEventListener("keydown",this.syncTabGuard,!0),null===(t=this.tabGuardEl)||void 0===t||t.removeAttribute("tabindex"),this.releasePanel(),this.emitOpenEvent(),this.pdsPopoverClose.emit({componentId:this.componentId,popoverType:this.popoverType})}async toggle(){this.active?await this.hide():await this.show()}placePortal(){var t,i;if(!this.portalEl)return;const s=c("dialog[open]",this.el);if(!s)return this.unwatchDialogClose(),this.portalEl.style.border="",this.portalEl.parentElement!==document.body&&document.body.appendChild(this.portalEl),void this.copyFocusStylesInto(document);const h=c("form",this.el);(null===(t=this.el.parentElement)||void 0===t?void 0:t.shadowRoot)||h&&p(s,h)?this.portalEl.parentNode!==s&&s.appendChild(this.portalEl):this.el.nextElementSibling!==this.portalEl&&(null===(i=this.el.parentNode)||void 0===i||i.insertBefore(this.portalEl,this.el.nextSibling)),this.watchDialogClose(s);const e=this.portalEl.getRootNode();this.copyFocusStylesInto(e),this.portalEl.style.border=e instanceof ShadowRoot&&c('[data-theme="dark"]',this.el)?"var(--pine-border)":""}forgetOpen(){const t=g.indexOf(this);t>=0&&g.splice(t,1)}takesEscapeFrom(t){var i,s;const h=null!==(s=null===(i=t.composedPath)||void 0===i?void 0:i.call(t)[0])&&void 0!==s?s:t.target,e=c("dialog[open]",h);return!(e&&!p(e,this.portalEl)&&(e.classList.contains("pds-modal__backdrop")||e.matches(":modal")))}addLightDismissListeners(){document.addEventListener("click",this.boundClickOutsideHandler,!0),document.addEventListener("keydown",this.boundEscapeKeyHandler)}watchDialogClose(t){this.watchedDialog!==t&&(this.unwatchDialogClose(),this.watchedDialog=t,t.addEventListener("close",this.onDialogClose))}unwatchDialogClose(){var t;null===(t=this.watchedDialog)||void 0===t||t.removeEventListener("close",this.onDialogClose),this.watchedDialog=null}removeLightDismissListeners(){document.removeEventListener("click",this.boundClickOutsideHandler,!0),document.removeEventListener("keydown",this.boundEscapeKeyHandler)}guardedTabbables(){return null==this.portalEl||this.el.nextElementSibling===this.portalEl?[]:f(this.portalEl)}isAfterPopover(t){return!(p(this.el,t)||(i=function(t,i){const s=y(i,t);return y(t,s).compareDocumentPosition(s)}(this.el,t),s=Node.DOCUMENT_POSITION_FOLLOWING,i&Node.DOCUMENT_POSITION_DISCONNECTED||!(i&s)));var i,s}leavePanel(t,i){var s,h;this.leavingPanel=!0,null===(s=this.tabGuardEl)||void 0===s||s.focus(),this.leavingPanel=!1,this.portalEl.inert=!0,setTimeout((()=>this.finishLeavingPanel(t)));const e=T.get(c(".pds-popover",this.el)),o=null!==(h=null==e?void 0:e.guardedTabbables())&&void 0!==h?h:[];i||o[o.length-1]!==this.tabGuardEl||e.leavePanel(t,!1)}finishLeavingPanel(t){var i;this.releasePanel(),this.active&&(null===(i=this.el.shadowRoot)||void 0===i?void 0:i.activeElement)===this.tabGuardEl&&t.focus()}addScrollAndResizeListeners(){this.removeScrollAndResizeListeners(),null!=this.triggerEl&&null!=this.portalEl&&(this.stopAutoUpdate=n(this.triggerEl,this.portalEl,(()=>{this.positioning=this.handlePopoverPositioning().catch((t=>console.warn("pds-popover: failed to position the panel",t)))})))}removeScrollAndResizeListeners(){var t;null===(t=this.stopAutoUpdate)||void 0===t||t.call(this),this.stopAutoUpdate=null}handleClickOutside(t){var i,s;if((t.timeStamp?Date.now()-(performance.now()-t.timeStamp):Date.now())<=this.openTimestamp)return;const h=null!==(s=null===(i=t.composedPath)||void 0===i?void 0:i.call(t)[0])&&void 0!==s?s:t.target,e=c(".pds-datepicker-calendar-portal",h),o=null==e?void 0:e.pdsDatepicker;if(o&&(p(this.portalEl,o)||p(this.triggerEl,o)))return;const n=p(this.portalEl,h),r=p(this.triggerEl,h);n||r||this.hide()}returnFocusToTrigger(){this.triggerEl&&this.triggerEl.focus({preventScroll:!0})}handleEscapeKey(t){"Escape"!==t.key||t.defaultPrevented||[...g].reverse().find((i=>i.takesEscapeFrom(t)))===this&&(t.preventDefault(),t.stopPropagation(),this.hide())}async handlePopoverPositioning(){const t=++this.positioningRun;if(null==this.triggerEl||null==this.portalEl)return;const i=this.triggerEl.getBoundingClientRect();if(0===i.width||0===i.height)return;const s=this.portalEl,{x:h,y:e,placement:o}=await r(this.triggerEl,s,{placement:this.placement,strategy:"fixed",middleware:[l(8),a({fallbackStrategy:"initialPlacement"}),d({padding:8})],platform:w});if(!this.active||t!==this.positioningRun||s!==this.portalEl)return;s.setAttribute("data-pds-popover-placement",o);const n=(t=>{var i;const s=document.createElement("div");s.style.cssText="all: initial; position: fixed; top: 0; left: 0;",null===(i=t.parentNode)||void 0===i||i.insertBefore(s,t);const{top:h,left:e}=s.getBoundingClientRect();return s.remove(),{top:h,left:e}})(s);s.style.top=e-n.top+"px",s.style.left=h-n.left+"px"}render(){return s(h,{key:"85422eb7544a4795ce78b51684b7224a5d856a4e",id:this.componentId},s("span",{key:"6fe9c827ed4d46ca723d6013f296faf80ba31366",class:"pds-popover__trigger-wrapper"},s("slot",{key:"970d1974d2be1451e670a36e7d2ccdc5979595bb",name:"trigger",onSlotchange:this.handleTriggerSlotChange})),s("span",{key:"0c76f76286a30d8e6e948bd0abab3317b3673aa6",class:"pds-popover__tab-guard",ref:t=>this.tabGuardEl=null!=t?t:null,onFocus:this.handleTabGuardFocus}),s("div",{key:"692c45e93899e74a3d5970f3a3625f6115ab63b0",class:"pds-popover__content-slot-wrapper"},s("slot",{key:"f1566e0eb1eb08626f2a8285447702ce96b09f4d",onSlotchange:this.handleContentSlotChange})))}get el(){return e(this)}static get watchers(){return{openOn:[{openOnChanged:0}],padding:[{applyPadding:0}],placement:[{restorePlacementDefault:0}]}}};P.instanceCounter=0,P.style=":host{--sizing-max-width-default:352px;display:inline-block}:host .pds-popover__trigger-wrapper{display:inline-block}:host .pds-popover__tab-guard{opacity:0;outline:none;pointer-events:none;position:fixed}:host .pds-popover__content-slot-wrapper{display:none}";export{P as pds_popover}
@@ -1 +1 @@
1
- System.register(["./p-CjRCtzPD.system.js","./p-BZ1l3LGl.system.js"],(function(r){"use strict";var e,o,i,l,n;return{setters:[function(r){e=r.r;o=r.c;i=r.h;l=r.H;n=r.a},null],execute:function(){var a=function(){return":host{--pine-alert-color-background:var(--pine-color-grey-150);--pine-alert-color-border:var(--pine-color-grey-300);--pine-alert-color-dismiss:var(--pine-color-grey-900);--pine-alert-color-dismiss-hover:var(--pine-color-grey-300);--pine-alert-color-icon:var(--pine-color-grey-700);--pine-alert-color-link:var(--pine-color-grey-900);--pine-alert-color-link-hover:var(--pine-color-grey-950);--pine-alert-color-text:var(--pine-color-grey-950);--pine-alert-color-danger-background:var(--pine-color-red-150);--pine-alert-color-danger-border:var(--pine-color-red-300);--pine-alert-color-danger-dismiss:var(--pine-color-red-900);--pine-alert-color-danger-dismiss-hover:var(--pine-color-red-300);--pine-alert-color-danger-icon:var(--pine-color-red-700);--pine-alert-color-danger-link:var(--pine-color-red-900);--pine-alert-color-danger-link-hover:var(--pine-color-red-950);--pine-alert-color-danger-text:var(--pine-color-red-950);--pine-alert-color-info-background:var(--pine-color-blue-150);--pine-alert-color-info-border:var(--pine-color-blue-300);--pine-alert-color-info-dismiss:var(--pine-color-blue-900);--pine-alert-color-info-dismiss-hover:var(--pine-color-blue-300);--pine-alert-color-info-icon:var(--pine-color-blue-700);--pine-alert-color-info-link:var(--pine-color-blue-900);--pine-alert-color-info-link-hover:var(--pine-color-blue-950);--pine-alert-color-info-text:var(--pine-color-blue-950);--pine-alert-color-success-background:var(--pine-color-green-150);--pine-alert-color-success-border:var(--pine-color-green-300);--pine-alert-color-success-dismiss:var(--pine-color-green-900);--pine-alert-color-success-dismiss-hover:var(--pine-color-green-300);--pine-alert-color-success-icon:var(--pine-color-green-700);--pine-alert-color-success-link:var(--pine-color-green-900);--pine-alert-color-success-link-hover:var(--pine-color-green-950);--pine-alert-color-success-text:var(--pine-color-green-950);--pine-alert-color-warning-background:var(--pine-color-yellow-150);--pine-alert-color-warning-border:var(--pine-color-yellow-300);--pine-alert-color-warning-dismiss:var(--pine-color-yellow-900);--pine-alert-color-warning-dismiss-hover:var(--pine-color-yellow-300);--pine-alert-color-warning-icon:var(--pine-color-yellow-700);--pine-alert-color-warning-link:var(--pine-color-yellow-900);--pine-alert-color-warning-link-hover:var(--pine-color-yellow-950);--pine-alert-color-warning-text:var(--pine-color-yellow-950)}:host-context([data-theme=dark]){--pine-alert-color-background:var(--pine-color-grey-800);--pine-alert-color-border:var(--pine-color-grey-600);--pine-alert-color-dismiss:var(--pine-color-grey-200);--pine-alert-color-dismiss-hover:var(--pine-color-grey-700);--pine-alert-color-icon:var(--pine-color-grey-300);--pine-alert-color-link:var(--pine-color-grey-300);--pine-alert-color-link-hover:var(--pine-color-grey-050);--pine-alert-color-text:var(--pine-color-grey-100);--pine-alert-color-danger-background:var(--pine-color-red-900);--pine-alert-color-danger-border:var(--pine-color-red-800);--pine-alert-color-danger-dismiss:var(--pine-color-red-200);--pine-alert-color-danger-dismiss-hover:var(--pine-color-red-800);--pine-alert-color-danger-icon:var(--pine-color-red-400);--pine-alert-color-danger-link:var(--pine-color-red-300);--pine-alert-color-danger-link-hover:var(--pine-color-red-200);--pine-alert-color-danger-text:var(--pine-color-red-100);--pine-alert-color-info-background:var(--pine-color-blue-900);--pine-alert-color-info-border:var(--pine-color-blue-800);--pine-alert-color-info-dismiss:var(--pine-color-blue-200);--pine-alert-color-info-dismiss-hover:var(--pine-color-blue-800);--pine-alert-color-info-icon:var(--pine-color-blue-400);--pine-alert-color-info-link:var(--pine-color-blue-300);--pine-alert-color-info-link-hover:var(--pine-color-blue-200);--pine-alert-color-info-text:var(--pine-color-blue-100);--pine-alert-color-success-background:var(--pine-color-green-900);--pine-alert-color-success-border:var(--pine-color-green-800);--pine-alert-color-success-dismiss:var(--pine-color-green-200);--pine-alert-color-success-dismiss-hover:var(--pine-color-green-800);--pine-alert-color-success-icon:var(--pine-color-green-400);--pine-alert-color-success-link:var(--pine-color-green-300);--pine-alert-color-success-link-hover:var(--pine-color-green-200);--pine-alert-color-success-text:var(--pine-color-green-100);--pine-alert-color-warning-background:var(--pine-color-yellow-900);--pine-alert-color-warning-border:var(--pine-color-yellow-800);--pine-alert-color-warning-dismiss:var(--pine-color-yellow-200);--pine-alert-color-warning-dismiss-hover:var(--pine-color-yellow-800);--pine-alert-color-warning-icon:var(--pine-color-yellow-400);--pine-alert-color-warning-link:var(--pine-color-yellow-300);--pine-alert-color-warning-link-hover:var(--pine-color-yellow-200);--pine-alert-color-warning-text:var(--pine-color-yellow-100)}"};var s=function(){return":host{--pds-context-link-color:var(--pine-alert-color-link);--pds-context-link-color-hover:var(--pine-alert-color-link-hover);display:block;line-height:1;width:100%}:host([variant=danger]){--pds-context-link-color:var(--pine-alert-color-danger-link);--pds-context-link-color-hover:var(--pine-alert-color-danger-link-hover)}:host([variant=info]){--pds-context-link-color:var(--pine-alert-color-info-link);--pds-context-link-color-hover:var(--pine-alert-color-info-link-hover)}:host([variant=success]){--pds-context-link-color:var(--pine-alert-color-success-link);--pds-context-link-color-hover:var(--pine-alert-color-success-link-hover)}:host([variant=warning]){--pds-context-link-color:var(--pine-alert-color-warning-link);--pds-context-link-color-hover:var(--pine-alert-color-warning-link-hover)}.pds-alert__container{--pds-alert-icon-size:var(--pine-dimension-sm);--pds-alert-border-dismiss-outline:2px solid var(--pds-alert-color-dismiss);--pds-alert-background:var(--pine-alert-color-background);--pds-alert-border-color:var(--pine-alert-color-border);--pds-alert-color-icon:var(--pine-alert-color-icon);--pds-alert-color-text:var(--pine-alert-color-text);--pds-alert-color-dismiss:var(--pine-alert-color-dismiss);--pds-alert-background-dismiss-hover:var(--pine-alert-color-dismiss-hover);padding:var(--pine-dimension-250)}.pds-alert__container--danger{--pds-alert-background:var(--pine-alert-color-danger-background);--pds-alert-border-color:var(--pine-alert-color-danger-border);--pds-alert-color-icon:var(--pine-alert-color-danger-icon);--pds-alert-color-text:var(--pine-alert-color-danger-text);--pds-alert-color-dismiss:var(--pine-alert-color-danger-dismiss);--pds-alert-background-dismiss-hover:var(--pine-alert-color-danger-dismiss-hover)}.pds-alert__container--info{--pds-alert-background:var(--pine-alert-color-info-background);--pds-alert-border-color:var(--pine-alert-color-info-border);--pds-alert-color-icon:var(--pine-alert-color-info-icon);--pds-alert-color-text:var(--pine-alert-color-info-text);--pds-alert-color-dismiss:var(--pine-alert-color-info-dismiss);--pds-alert-background-dismiss-hover:var(--pine-alert-color-info-dismiss-hover)}.pds-alert__container--success{--pds-alert-background:var(--pine-alert-color-success-background);--pds-alert-border-color:var(--pine-alert-color-success-border);--pds-alert-color-icon:var(--pine-alert-color-success-icon);--pds-alert-color-text:var(--pine-alert-color-success-text);--pds-alert-color-dismiss:var(--pine-alert-color-success-dismiss);--pds-alert-background-dismiss-hover:var(--pine-alert-color-success-dismiss-hover)}.pds-alert__container--warning{--pds-alert-background:var(--pine-alert-color-warning-background);--pds-alert-border-color:var(--pine-alert-color-warning-border);--pds-alert-color-icon:var(--pine-alert-color-warning-icon);--pds-alert-color-text:var(--pine-alert-color-warning-text);--pds-alert-color-dismiss:var(--pine-alert-color-warning-dismiss);--pds-alert-background-dismiss-hover:var(--pine-alert-color-warning-dismiss-hover)}.pds-alert__icon{-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-alert__icon--small{-webkit-margin-before:0;margin-block-start:0}.pds-alert__content-wrapper{-ms-flex:1;flex:1;min-width:0;overflow:hidden;width:100%}.pds-alert__dismiss{-ms-flex-align:center;align-items:center;background:none;border:0;border-radius:var(--pine-border-radius-full);cursor:pointer;display:-ms-flexbox;display:flex;height:var(--pine-dimension-250);-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-xs);width:var(--pine-dimension-250)}.pds-alert__dismiss:hover{background:var(--pds-alert-background-dismiss-hover);opacity:0.8}.pds-alert__dismiss:focus-visible{outline:var(--pds-alert-border-dismiss-outline)}.pds-alert__description--small{-ms-flex:1 1 auto;flex:1 1 auto;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-alert__actions{-webkit-margin-before:var(--pine-dimension-sm);margin-block-start:var(--pine-dimension-sm)}.pds-alert__actions--small{-ms-flex-negative:0;flex-shrink:0;-webkit-margin-start:auto;margin-inline-start:auto;white-space:nowrap}.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}"};var c={danger:"Error",info:"Info",success:"Success",warning:"Warning"};var t=r("pds_alert",function(){function r(r){var i=this;e(this,r);this.pdsAlertDismissClick=o(this,"pdsAlertDismissClick");this.small=false;this.dismissible=false;this.hideIcon=false;this.variant="default";this.dismissLabel="Dismiss alert";this.hasActionsContent=false;this.handleCloseClick=function(){i.pdsAlertDismissClick.emit()}}r.prototype.componentWillRender=function(){var r=this.el.querySelector('[slot="actions"]');this.hasActionsContent=!!r};r.prototype.renderActions=function(r){return i("pds-box",{class:r?"pds-alert__actions--small":"pds-alert__actions",gap:"sm",flex:r?"none":undefined,"align-items":r?undefined:"center"},i("slot",{name:"actions"}))};r.prototype.renderContent=function(){if(this.small){return i("pds-box",{display:"flex",gap:"md","align-items":"center"},i("pds-text",{truncate:this.small,class:"pds-alert__description--small",color:"var(--pds-alert-color-text)",tag:"p"},i("slot",null)),this.hasActionsContent&&this.renderActions(true))}return i("div",null,i("pds-text",{class:"pds-alert__description",color:"var(--pds-alert-color-text)",tag:"p"},i("slot",null)),this.hasActionsContent&&this.renderActions(false))};r.prototype.severityText=function(){var r;return(r=this.severityLabel)!==null&&r!==void 0?r:c[this.variant]};r.prototype.render=function(){var r=this.severityText();var e={danger:"warning-filled",default:"info-circle-filled",info:"info-circle-filled",success:"check-circle-filled",warning:"info-circle-filled"};var o=e[this.variant]||e.default;return i(l,{key:"d487419289ef352f63e7861fb21f42aa243ee526",class:"pds-alert",id:this.componentId,variant:this.variant},i("pds-box",{key:"0ecd6e25d4163d41055be53e88f6d332e56e1ed8",class:"pds-alert__container pds-alert__container--".concat(this.variant),"background-color":"var(--pds-alert-background)","border-color":"var(--pds-alert-border-color)","border-radius":"md",border:true,display:"block"},i("pds-box",{key:"4cca87bd3b9758e9830eddec25c9fd3e8c06a44d",gap:"sm",display:"flex","align-items":this.small?"center":undefined},r&&i("span",{key:"b076475ed4a0bc2db09df84d6530db0e4e098daf",class:"visually-hidden"},r),!this.hideIcon&&i("pds-icon",{key:"e8efc683c4f84e22fac8729c0c476c817b33f3e6",class:"pds-alert__icon ".concat(this.small?"pds-alert__icon--small":""),color:"var(--pds-alert-color-icon)",icon:o,size:"var(--pds-alert-icon-size)","aria-hidden":"true"}),i("pds-box",{key:"f3ff29ce778f2e8bfb0d0a3e6a732714ce22e8ad",class:"pds-alert__content-wrapper",direction:"column",gap:"xs",flex:"grow"},this.heading&&!this.small&&i("pds-text",{key:"c00d44fe496e8aae699ac740428e6e523c0c8d0a",class:"pds-alert__heading",color:"var(--pds-alert-color-text)",size:"h5",tag:"h3",weight:"medium"},this.heading),this.renderContent()),this.dismissible&&i("button",{key:"d770590cecc3b27e1dd2750bbdfa07209dbb017d",class:"pds-alert__dismiss",type:"button",part:"dismiss","aria-label":this.dismissLabel,onClick:this.handleCloseClick},i("pds-icon",{key:"9d79c27c829662dbeecb30dfad806f345eeb6c67",icon:"remove",size:"var(--pds-alert-icon-size)","aria-hidden":"true",color:"var(--pds-alert-color-dismiss)"})))))};Object.defineProperty(r.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return r}());t.style=a()+s()}}}));
1
+ System.register(["./p-BK1sLRfg.system.js","./p-BZ1l3LGl.system.js"],(function(r){"use strict";var e,o,i,l,n;return{setters:[function(r){e=r.r;o=r.c;i=r.h;l=r.H;n=r.a},null],execute:function(){var a=function(){return":host{--pine-alert-color-background:var(--pine-color-grey-150);--pine-alert-color-border:var(--pine-color-grey-300);--pine-alert-color-dismiss:var(--pine-color-grey-900);--pine-alert-color-dismiss-hover:var(--pine-color-grey-300);--pine-alert-color-icon:var(--pine-color-grey-700);--pine-alert-color-link:var(--pine-color-grey-900);--pine-alert-color-link-hover:var(--pine-color-grey-950);--pine-alert-color-text:var(--pine-color-grey-950);--pine-alert-color-danger-background:var(--pine-color-red-150);--pine-alert-color-danger-border:var(--pine-color-red-300);--pine-alert-color-danger-dismiss:var(--pine-color-red-900);--pine-alert-color-danger-dismiss-hover:var(--pine-color-red-300);--pine-alert-color-danger-icon:var(--pine-color-red-700);--pine-alert-color-danger-link:var(--pine-color-red-900);--pine-alert-color-danger-link-hover:var(--pine-color-red-950);--pine-alert-color-danger-text:var(--pine-color-red-950);--pine-alert-color-info-background:var(--pine-color-blue-150);--pine-alert-color-info-border:var(--pine-color-blue-300);--pine-alert-color-info-dismiss:var(--pine-color-blue-900);--pine-alert-color-info-dismiss-hover:var(--pine-color-blue-300);--pine-alert-color-info-icon:var(--pine-color-blue-700);--pine-alert-color-info-link:var(--pine-color-blue-900);--pine-alert-color-info-link-hover:var(--pine-color-blue-950);--pine-alert-color-info-text:var(--pine-color-blue-950);--pine-alert-color-success-background:var(--pine-color-green-150);--pine-alert-color-success-border:var(--pine-color-green-300);--pine-alert-color-success-dismiss:var(--pine-color-green-900);--pine-alert-color-success-dismiss-hover:var(--pine-color-green-300);--pine-alert-color-success-icon:var(--pine-color-green-700);--pine-alert-color-success-link:var(--pine-color-green-900);--pine-alert-color-success-link-hover:var(--pine-color-green-950);--pine-alert-color-success-text:var(--pine-color-green-950);--pine-alert-color-warning-background:var(--pine-color-yellow-150);--pine-alert-color-warning-border:var(--pine-color-yellow-300);--pine-alert-color-warning-dismiss:var(--pine-color-yellow-900);--pine-alert-color-warning-dismiss-hover:var(--pine-color-yellow-300);--pine-alert-color-warning-icon:var(--pine-color-yellow-700);--pine-alert-color-warning-link:var(--pine-color-yellow-900);--pine-alert-color-warning-link-hover:var(--pine-color-yellow-950);--pine-alert-color-warning-text:var(--pine-color-yellow-950)}:host-context([data-theme=dark]){--pine-alert-color-background:var(--pine-color-grey-800);--pine-alert-color-border:var(--pine-color-grey-600);--pine-alert-color-dismiss:var(--pine-color-grey-200);--pine-alert-color-dismiss-hover:var(--pine-color-grey-700);--pine-alert-color-icon:var(--pine-color-grey-300);--pine-alert-color-link:var(--pine-color-grey-300);--pine-alert-color-link-hover:var(--pine-color-grey-050);--pine-alert-color-text:var(--pine-color-grey-100);--pine-alert-color-danger-background:var(--pine-color-red-900);--pine-alert-color-danger-border:var(--pine-color-red-800);--pine-alert-color-danger-dismiss:var(--pine-color-red-200);--pine-alert-color-danger-dismiss-hover:var(--pine-color-red-800);--pine-alert-color-danger-icon:var(--pine-color-red-400);--pine-alert-color-danger-link:var(--pine-color-red-300);--pine-alert-color-danger-link-hover:var(--pine-color-red-200);--pine-alert-color-danger-text:var(--pine-color-red-100);--pine-alert-color-info-background:var(--pine-color-blue-900);--pine-alert-color-info-border:var(--pine-color-blue-800);--pine-alert-color-info-dismiss:var(--pine-color-blue-200);--pine-alert-color-info-dismiss-hover:var(--pine-color-blue-800);--pine-alert-color-info-icon:var(--pine-color-blue-400);--pine-alert-color-info-link:var(--pine-color-blue-300);--pine-alert-color-info-link-hover:var(--pine-color-blue-200);--pine-alert-color-info-text:var(--pine-color-blue-100);--pine-alert-color-success-background:var(--pine-color-green-900);--pine-alert-color-success-border:var(--pine-color-green-800);--pine-alert-color-success-dismiss:var(--pine-color-green-200);--pine-alert-color-success-dismiss-hover:var(--pine-color-green-800);--pine-alert-color-success-icon:var(--pine-color-green-400);--pine-alert-color-success-link:var(--pine-color-green-300);--pine-alert-color-success-link-hover:var(--pine-color-green-200);--pine-alert-color-success-text:var(--pine-color-green-100);--pine-alert-color-warning-background:var(--pine-color-yellow-900);--pine-alert-color-warning-border:var(--pine-color-yellow-800);--pine-alert-color-warning-dismiss:var(--pine-color-yellow-200);--pine-alert-color-warning-dismiss-hover:var(--pine-color-yellow-800);--pine-alert-color-warning-icon:var(--pine-color-yellow-400);--pine-alert-color-warning-link:var(--pine-color-yellow-300);--pine-alert-color-warning-link-hover:var(--pine-color-yellow-200);--pine-alert-color-warning-text:var(--pine-color-yellow-100)}"};var s=function(){return":host{--pds-context-link-color:var(--pine-alert-color-link);--pds-context-link-color-hover:var(--pine-alert-color-link-hover);display:block;line-height:1;width:100%}:host([variant=danger]){--pds-context-link-color:var(--pine-alert-color-danger-link);--pds-context-link-color-hover:var(--pine-alert-color-danger-link-hover)}:host([variant=info]){--pds-context-link-color:var(--pine-alert-color-info-link);--pds-context-link-color-hover:var(--pine-alert-color-info-link-hover)}:host([variant=success]){--pds-context-link-color:var(--pine-alert-color-success-link);--pds-context-link-color-hover:var(--pine-alert-color-success-link-hover)}:host([variant=warning]){--pds-context-link-color:var(--pine-alert-color-warning-link);--pds-context-link-color-hover:var(--pine-alert-color-warning-link-hover)}.pds-alert__container{--pds-alert-icon-size:var(--pine-dimension-sm);--pds-alert-border-dismiss-outline:2px solid var(--pds-alert-color-dismiss);--pds-alert-background:var(--pine-alert-color-background);--pds-alert-border-color:var(--pine-alert-color-border);--pds-alert-color-icon:var(--pine-alert-color-icon);--pds-alert-color-text:var(--pine-alert-color-text);--pds-alert-color-dismiss:var(--pine-alert-color-dismiss);--pds-alert-background-dismiss-hover:var(--pine-alert-color-dismiss-hover);padding:var(--pine-dimension-250)}.pds-alert__container--danger{--pds-alert-background:var(--pine-alert-color-danger-background);--pds-alert-border-color:var(--pine-alert-color-danger-border);--pds-alert-color-icon:var(--pine-alert-color-danger-icon);--pds-alert-color-text:var(--pine-alert-color-danger-text);--pds-alert-color-dismiss:var(--pine-alert-color-danger-dismiss);--pds-alert-background-dismiss-hover:var(--pine-alert-color-danger-dismiss-hover)}.pds-alert__container--info{--pds-alert-background:var(--pine-alert-color-info-background);--pds-alert-border-color:var(--pine-alert-color-info-border);--pds-alert-color-icon:var(--pine-alert-color-info-icon);--pds-alert-color-text:var(--pine-alert-color-info-text);--pds-alert-color-dismiss:var(--pine-alert-color-info-dismiss);--pds-alert-background-dismiss-hover:var(--pine-alert-color-info-dismiss-hover)}.pds-alert__container--success{--pds-alert-background:var(--pine-alert-color-success-background);--pds-alert-border-color:var(--pine-alert-color-success-border);--pds-alert-color-icon:var(--pine-alert-color-success-icon);--pds-alert-color-text:var(--pine-alert-color-success-text);--pds-alert-color-dismiss:var(--pine-alert-color-success-dismiss);--pds-alert-background-dismiss-hover:var(--pine-alert-color-success-dismiss-hover)}.pds-alert__container--warning{--pds-alert-background:var(--pine-alert-color-warning-background);--pds-alert-border-color:var(--pine-alert-color-warning-border);--pds-alert-color-icon:var(--pine-alert-color-warning-icon);--pds-alert-color-text:var(--pine-alert-color-warning-text);--pds-alert-color-dismiss:var(--pine-alert-color-warning-dismiss);--pds-alert-background-dismiss-hover:var(--pine-alert-color-warning-dismiss-hover)}.pds-alert__icon{-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-alert__icon--small{-webkit-margin-before:0;margin-block-start:0}.pds-alert__content-wrapper{-ms-flex:1;flex:1;min-width:0;overflow:hidden;width:100%}.pds-alert__dismiss{-ms-flex-align:center;align-items:center;background:none;border:0;border-radius:var(--pine-border-radius-full);cursor:pointer;display:-ms-flexbox;display:flex;height:var(--pine-dimension-250);-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-xs);width:var(--pine-dimension-250)}.pds-alert__dismiss:hover{background:var(--pds-alert-background-dismiss-hover);opacity:0.8}.pds-alert__dismiss:focus-visible{outline:var(--pds-alert-border-dismiss-outline)}.pds-alert__description--small{-ms-flex:1 1 auto;flex:1 1 auto;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-alert__actions{-webkit-margin-before:var(--pine-dimension-sm);margin-block-start:var(--pine-dimension-sm)}.pds-alert__actions--small{-ms-flex-negative:0;flex-shrink:0;-webkit-margin-start:auto;margin-inline-start:auto;white-space:nowrap}.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}"};var c={danger:"Error",info:"Info",success:"Success",warning:"Warning"};var t=r("pds_alert",function(){function r(r){var i=this;e(this,r);this.pdsAlertDismissClick=o(this,"pdsAlertDismissClick");this.small=false;this.dismissible=false;this.hideIcon=false;this.variant="default";this.dismissLabel="Dismiss alert";this.hasActionsContent=false;this.handleCloseClick=function(){i.pdsAlertDismissClick.emit()}}r.prototype.componentWillRender=function(){var r=this.el.querySelector('[slot="actions"]');this.hasActionsContent=!!r};r.prototype.renderActions=function(r){return i("pds-box",{class:r?"pds-alert__actions--small":"pds-alert__actions",gap:"sm",flex:r?"none":undefined,"align-items":r?undefined:"center"},i("slot",{name:"actions"}))};r.prototype.renderContent=function(){if(this.small){return i("pds-box",{display:"flex",gap:"md","align-items":"center"},i("pds-text",{truncate:this.small,class:"pds-alert__description--small",color:"var(--pds-alert-color-text)",tag:"p"},i("slot",null)),this.hasActionsContent&&this.renderActions(true))}return i("div",null,i("pds-text",{class:"pds-alert__description",color:"var(--pds-alert-color-text)",tag:"p"},i("slot",null)),this.hasActionsContent&&this.renderActions(false))};r.prototype.severityText=function(){var r;return(r=this.severityLabel)!==null&&r!==void 0?r:c[this.variant]};r.prototype.render=function(){var r=this.severityText();var e={danger:"warning-filled",default:"info-circle-filled",info:"info-circle-filled",success:"check-circle-filled",warning:"info-circle-filled"};var o=e[this.variant]||e.default;return i(l,{key:"d487419289ef352f63e7861fb21f42aa243ee526",class:"pds-alert",id:this.componentId,variant:this.variant},i("pds-box",{key:"0ecd6e25d4163d41055be53e88f6d332e56e1ed8",class:"pds-alert__container pds-alert__container--".concat(this.variant),"background-color":"var(--pds-alert-background)","border-color":"var(--pds-alert-border-color)","border-radius":"md",border:true,display:"block"},i("pds-box",{key:"4cca87bd3b9758e9830eddec25c9fd3e8c06a44d",gap:"sm",display:"flex","align-items":this.small?"center":undefined},r&&i("span",{key:"b076475ed4a0bc2db09df84d6530db0e4e098daf",class:"visually-hidden"},r),!this.hideIcon&&i("pds-icon",{key:"e8efc683c4f84e22fac8729c0c476c817b33f3e6",class:"pds-alert__icon ".concat(this.small?"pds-alert__icon--small":""),color:"var(--pds-alert-color-icon)",icon:o,size:"var(--pds-alert-icon-size)","aria-hidden":"true"}),i("pds-box",{key:"f3ff29ce778f2e8bfb0d0a3e6a732714ce22e8ad",class:"pds-alert__content-wrapper",direction:"column",gap:"xs",flex:"grow"},this.heading&&!this.small&&i("pds-text",{key:"c00d44fe496e8aae699ac740428e6e523c0c8d0a",class:"pds-alert__heading",color:"var(--pds-alert-color-text)",size:"h5",tag:"h3",weight:"medium"},this.heading),this.renderContent()),this.dismissible&&i("button",{key:"d770590cecc3b27e1dd2750bbdfa07209dbb017d",class:"pds-alert__dismiss",type:"button",part:"dismiss","aria-label":this.dismissLabel,onClick:this.handleCloseClick},i("pds-icon",{key:"9d79c27c829662dbeecb30dfad806f345eeb6c67",icon:"remove",size:"var(--pds-alert-icon-size)","aria-hidden":"true",color:"var(--pds-alert-color-dismiss)"})))))};Object.defineProperty(r.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return r}());t.style=a()+s()}}}));
@@ -1 +1 @@
1
- import{r,h as s,H as e,a as i}from"./p-BplEmwUQ.js";import{H as a}from"./p-35s7h-dk.js";import{n as o}from"./p-OYK5-nwe.js";import"./p-BgNaWLoS.js";const t=class{constructor(s){r(this,s),this.hostKeeper=new a,this.animated=!1,this.percent=0,this.showPercent=!1}connectedCallback(){this.hostKeeper.connect(this.el)}disconnectedCallback(){this.hostKeeper.disconnect()}render(){const r=o(this.fillColor),i=this.animated?{"is-animated":this.animated}:"";return this.hostKeeper.record(i),s(e,{key:"6d2151cdd1f65b33a7478e5ac12df711d8252d1f",class:i},s("div",{key:"4a902c6c7d51fe8e8a778e1fa24bdbf95d625b1f",class:"pds-progress"},s("label",{key:"c50955234a7eee05cdf47531e25b4413f206e416",class:"pds-progress__label",htmlFor:this.componentId},this.label),s("progress",{key:"c54ad90f7b3fcf3368afca4c5618949f1a370114",id:this.componentId,max:"100",style:r?{"--color-progress-fill":r}:{},value:this.percent})),this.showPercent&&s("div",{key:"6b3e3f42f04a516ef7992d1f8bc967be432f55bb",class:"pds-progress__percentage"},this.percent,"%"))}get el(){return i(this)}};t.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{t as pds_progress}
1
+ import{r,h as s,H as e,a as i}from"./p-M31tvpDN.js";import{H as a}from"./p-35s7h-dk.js";import{n as o}from"./p-OYK5-nwe.js";import"./p-BgNaWLoS.js";const t=class{constructor(s){r(this,s),this.hostKeeper=new a,this.animated=!1,this.percent=0,this.showPercent=!1}connectedCallback(){this.hostKeeper.connect(this.el)}disconnectedCallback(){this.hostKeeper.disconnect()}render(){const r=o(this.fillColor),i=this.animated?{"is-animated":this.animated}:"";return this.hostKeeper.record(i),s(e,{key:"6d2151cdd1f65b33a7478e5ac12df711d8252d1f",class:i},s("div",{key:"4a902c6c7d51fe8e8a778e1fa24bdbf95d625b1f",class:"pds-progress"},s("label",{key:"c50955234a7eee05cdf47531e25b4413f206e416",class:"pds-progress__label",htmlFor:this.componentId},this.label),s("progress",{key:"c54ad90f7b3fcf3368afca4c5618949f1a370114",id:this.componentId,max:"100",style:r?{"--color-progress-fill":r}:{},value:this.percent})),this.showPercent&&s("div",{key:"6b3e3f42f04a516ef7992d1f8bc967be432f55bb",class:"pds-progress__percentage"},this.percent,"%"))}get el(){return i(this)}};t.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{t as pds_progress}