@paperless/core 3.13.1 → 3.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (433) hide show
  1. package/dist/assets/icons/general/scroll.svg +13 -1
  2. package/dist/build/index.esm.js +1 -1
  3. package/dist/build/{p-d13d8eb9.entry.js → p-06e05b91.entry.js} +1 -1
  4. package/dist/{paperless/p-2dfbfe7a.entry.js → build/p-14df360e.entry.js} +1 -1
  5. package/dist/{paperless/p-9f3cf82d.entry.js → build/p-195e954b.entry.js} +1 -1
  6. package/dist/{paperless/p-e2219fa7.entry.js → build/p-21af7426.entry.js} +1 -1
  7. package/dist/build/{p-16c98151.entry.js → p-221357a9.entry.js} +1 -1
  8. package/dist/build/{p-18aebae1.entry.js → p-25dd095e.entry.js} +1 -1
  9. package/dist/{paperless/p-fad5a088.entry.js → build/p-2e47c533.entry.js} +1 -1
  10. package/dist/build/{p-ad2767f7.entry.js → p-2e8e4b6c.entry.js} +1 -1
  11. package/dist/build/{p-cbdf1355.entry.js → p-31167a12.entry.js} +1 -1
  12. package/dist/build/p-3203bd08.entry.js +1 -0
  13. package/dist/build/{p-a1e69465.entry.js → p-3a857d73.entry.js} +1 -1
  14. package/dist/build/{p-90c95664.entry.js → p-3b2b195d.entry.js} +1 -1
  15. package/dist/build/{p-35107edb.entry.js → p-3bc3a649.entry.js} +1 -1
  16. package/dist/build/{p-fd26cf65.entry.js → p-4060ee8b.entry.js} +1 -1
  17. package/dist/build/{p-b992baa0.entry.js → p-44cee1cb.entry.js} +1 -1
  18. package/dist/{paperless/p-7c01dd27.entry.js → build/p-45ce6a54.entry.js} +1 -1
  19. package/dist/{paperless/p-0892908c.entry.js → build/p-507261fa.entry.js} +1 -1
  20. package/dist/build/{p-2eb0963d.entry.js → p-50c4d56e.entry.js} +1 -1
  21. package/dist/{paperless/p-8e3a2fa0.entry.js → build/p-54b0790e.entry.js} +1 -1
  22. package/dist/{paperless/p-b35a687a.entry.js → build/p-655fda1a.entry.js} +1 -1
  23. package/dist/build/{p-a263c4fe.entry.js → p-7abc21d8.entry.js} +1 -1
  24. package/dist/build/p-7e6801ef.js +1 -0
  25. package/dist/build/p-832c13bc.entry.js +1 -0
  26. package/dist/build/{p-4536b546.entry.js → p-835737f1.entry.js} +1 -1
  27. package/dist/build/{p-001e60c3.entry.js → p-90610536.entry.js} +1 -1
  28. package/dist/build/p-91dcf7d0.entry.js +1 -0
  29. package/dist/{paperless/p-7b858cd2.entry.js → build/p-938b6c09.entry.js} +1 -1
  30. package/dist/{paperless/p-bf22285d.entry.js → build/p-9a6196a5.entry.js} +1 -1
  31. package/dist/build/{p-f6a8012e.entry.js → p-9b28fc94.entry.js} +1 -1
  32. package/dist/build/p-9c29695a.entry.js +1 -0
  33. package/dist/{components/p-CU4DsLKq.js → build/p-C8Ju8eG_.js} +1 -1
  34. package/dist/{paperless/p-b4c6d3be.entry.js → build/p-ad2650e8.entry.js} +1 -1
  35. package/dist/build/{p-e1aaca9c.entry.js → p-b48c0217.entry.js} +1 -1
  36. package/dist/{paperless/p-e00be7e7.entry.js → build/p-b6809b6f.entry.js} +1 -1
  37. package/dist/build/{p-b98a72c3.entry.js → p-b8f7c55a.entry.js} +1 -1
  38. package/dist/{paperless/p-8a2690df.entry.js → build/p-b91cdc33.entry.js} +1 -1
  39. package/dist/build/{p-0380b299.entry.js → p-b966039d.entry.js} +1 -1
  40. package/dist/build/{p-8ed51b6d.entry.js → p-bdda8043.entry.js} +1 -1
  41. package/dist/build/{p-8e91039f.entry.js → p-d1cb90b9.entry.js} +1 -1
  42. package/dist/{paperless/p-e26a497e.entry.js → build/p-d58dcb50.entry.js} +1 -1
  43. package/dist/{paperless/p-0b4b4cf7.entry.js → build/p-d614092e.entry.js} +1 -1
  44. package/dist/build/{p-2c10ed8a.entry.js → p-dca31554.entry.js} +1 -1
  45. package/dist/build/p-e2917e71.entry.js +1 -0
  46. package/dist/{paperless/p-d4d0d4a7.entry.js → build/p-e405fba1.entry.js} +1 -1
  47. package/dist/build/p-e6669599.entry.js +1 -0
  48. package/dist/build/{p-dbac42ad.entry.js → p-e86238e2.entry.js} +1 -1
  49. package/dist/build/{p-0da11431.entry.js → p-f3cbc433.entry.js} +1 -1
  50. package/dist/build/{p-e6f986d8.entry.js → p-f5cacfd0.entry.js} +1 -1
  51. package/dist/build/{p-afc6498d.entry.js → p-fcff315d.entry.js} +1 -1
  52. package/dist/{paperless/p-b2cbd111.entry.js → build/p-fea58ded.entry.js} +1 -1
  53. package/dist/build/{p-87112092.entry.js → p-fedaa9ef.entry.js} +1 -1
  54. package/dist/build/paperless.esm.js +1 -1
  55. package/dist/cjs/{icons-B5X261jk.js → icons-DIczdKrP.js} +13 -1
  56. package/dist/cjs/index-BGtpSJv_.js +4 -0
  57. package/dist/cjs/index.cjs.js +1 -1
  58. package/dist/cjs/loader.cjs.js +1 -1
  59. package/dist/cjs/p-accordion.cjs.entry.js +2 -2
  60. package/dist/cjs/p-attachment.cjs.entry.js +8 -8
  61. package/dist/cjs/p-avatar-group.cjs.entry.js +1 -1
  62. package/dist/cjs/p-avatar.cjs.entry.js +1 -1
  63. package/dist/cjs/p-backdrop.cjs.entry.js +3 -3
  64. package/dist/cjs/p-badge_3.cjs.entry.js +4 -4
  65. package/dist/cjs/p-button-group.cjs.entry.js +1 -1
  66. package/dist/cjs/p-button_3.cjs.entry.js +2 -2
  67. package/dist/cjs/p-calendar.cjs.entry.js +1 -1
  68. package/dist/cjs/p-card-body.cjs.entry.js +1 -1
  69. package/dist/cjs/p-card-container.cjs.entry.js +2 -2
  70. package/dist/cjs/p-card-header.cjs.entry.js +3 -3
  71. package/dist/cjs/p-checkbox_3.cjs.entry.js +9 -9
  72. package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
  73. package/dist/cjs/p-cropper.cjs.entry.js +1 -1
  74. package/dist/cjs/p-datepicker.cjs.entry.js +2 -2
  75. package/dist/cjs/p-divider.cjs.entry.js +2 -2
  76. package/dist/cjs/p-drawer-body_3.cjs.entry.js +4 -4
  77. package/dist/cjs/p-dropdown-menu-item_2.cjs.entry.js +5 -5
  78. package/dist/cjs/p-dropzone.cjs.entry.js +200 -0
  79. package/dist/cjs/p-empty-state_8.cjs.entry.js +18 -18
  80. package/dist/cjs/p-field_3.cjs.entry.js +13 -13
  81. package/dist/cjs/p-floating-menu-item.cjs.entry.js +2 -2
  82. package/dist/cjs/p-illustration.cjs.entry.js +1 -1
  83. package/dist/cjs/p-info-panel.cjs.entry.js +2 -2
  84. package/dist/cjs/p-label.cjs.entry.js +3 -3
  85. package/dist/cjs/p-layout.cjs.entry.js +1 -1
  86. package/dist/cjs/p-listing-item.cjs.entry.js +1 -1
  87. package/dist/cjs/p-listing-line.cjs.entry.js +1 -1
  88. package/dist/cjs/p-listing.cjs.entry.js +2 -2
  89. package/dist/cjs/p-modal-body_4.cjs.entry.js +6 -6
  90. package/dist/cjs/p-navbar.cjs.entry.js +1 -1
  91. package/dist/cjs/p-navigation-item.cjs.entry.js +3 -3
  92. package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
  93. package/dist/cjs/p-navigation-title.cjs.entry.js +1 -1
  94. package/dist/cjs/p-pagination_3.cjs.entry.js +8 -8
  95. package/dist/cjs/p-profile.cjs.entry.js +1 -1
  96. package/dist/cjs/p-radio.cjs.entry.js +3 -3
  97. package/dist/cjs/p-range.cjs.entry.js +3 -3
  98. package/dist/cjs/p-select.cjs.entry.js +2 -2
  99. package/dist/cjs/p-smile.cjs.entry.js +1 -1
  100. package/dist/cjs/p-stepper-item_2.cjs.entry.js +5 -5
  101. package/dist/cjs/p-tab-container.cjs.entry.js +1 -1
  102. package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
  103. package/dist/cjs/p-table.cjs.entry.js +2 -2
  104. package/dist/cjs/p-toast-container.cjs.entry.js +2 -2
  105. package/dist/cjs/p-toast.cjs.entry.js +1 -1
  106. package/dist/cjs/p-toggle.cjs.entry.js +3 -3
  107. package/dist/cjs/p-tooltip.cjs.entry.js +2 -2
  108. package/dist/cjs/paperless.cjs.js +1 -1
  109. package/dist/collection/assets/icons/general/scroll.svg +13 -1
  110. package/dist/collection/collection-manifest.json +1 -0
  111. package/dist/collection/components/atoms/avatar/avatar/avatar.component.js +1 -1
  112. package/dist/collection/components/atoms/avatar/avatar-group/avatar-group.component.js +1 -1
  113. package/dist/collection/components/atoms/backdrop/backdrop.component.js +3 -3
  114. package/dist/collection/components/atoms/badge/badge.component.js +1 -1
  115. package/dist/collection/components/atoms/card/body/card-body.component.js +1 -1
  116. package/dist/collection/components/atoms/card/container/card-container.component.js +2 -2
  117. package/dist/collection/components/atoms/card/header/card-header.component.js +3 -3
  118. package/dist/collection/components/atoms/checkbox/checkbox.component.js +4 -4
  119. package/dist/collection/components/atoms/divider/divider.component.js +2 -2
  120. package/dist/collection/components/atoms/drawer/body/drawer-body.component.js +1 -1
  121. package/dist/collection/components/atoms/drawer/container/drawer-container.component.js +2 -2
  122. package/dist/collection/components/atoms/drawer/header/drawer-header.component.js +1 -1
  123. package/dist/collection/components/atoms/dropdown-menu/container/dropdown-menu-container.component.js +3 -3
  124. package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.js +3 -3
  125. package/dist/collection/components/atoms/floating-menu/container/floating-menu-container.component.js +2 -2
  126. package/dist/collection/components/atoms/floating-menu/item/floating-menu-item.component.js +2 -2
  127. package/dist/collection/components/atoms/helper/helper.component.js +1 -1
  128. package/dist/collection/components/atoms/icon/icon.component.js +1 -1
  129. package/dist/collection/components/atoms/illustration/illustration.component.js +1 -1
  130. package/dist/collection/components/atoms/info-panel/info-panel.component.js +2 -2
  131. package/dist/collection/components/atoms/layout/layout.component.js +1 -1
  132. package/dist/collection/components/atoms/listing/item/listing-item.component.js +1 -1
  133. package/dist/collection/components/atoms/listing/line/listing-line.component.js +1 -1
  134. package/dist/collection/components/atoms/modal/body/modal-body.component.js +2 -2
  135. package/dist/collection/components/atoms/modal/container/modal-container.component.js +2 -2
  136. package/dist/collection/components/atoms/modal/footer/modal-footer.component.js +1 -1
  137. package/dist/collection/components/atoms/modal/header/modal-header.component.js +1 -1
  138. package/dist/collection/components/atoms/navigation-title/navigation-title.component.js +1 -1
  139. package/dist/collection/components/atoms/pagination/pages-item/pagination-pages-item.component.js +2 -2
  140. package/dist/collection/components/atoms/radio/radio.component.js +3 -3
  141. package/dist/collection/components/atoms/segment/container/segment-container.component.js +1 -1
  142. package/dist/collection/components/atoms/segment/item/segment-item.component.js +2 -2
  143. package/dist/collection/components/atoms/smile/smile.component.js +1 -1
  144. package/dist/collection/components/atoms/stepper/item/stepper-item.component.js +4 -4
  145. package/dist/collection/components/atoms/stepper/line/stepper-line.component.js +1 -1
  146. package/dist/collection/components/atoms/tab/container/tab-container.component.js +1 -1
  147. package/dist/collection/components/atoms/tab/item/tab-item.component.js +1 -1
  148. package/dist/collection/components/atoms/table/actions-container/table-container.component.js +1 -1
  149. package/dist/collection/components/atoms/table/container/table-row-actions-container.component.js +3 -3
  150. package/dist/collection/components/atoms/toast-container/toast-container.component.js +2 -2
  151. package/dist/collection/components/atoms/toggle/toggle.component.js +3 -3
  152. package/dist/collection/components/atoms/tooltip/tooltip.component.js +2 -2
  153. package/dist/collection/components/molecules/accordion/accordion.component.js +2 -2
  154. package/dist/collection/components/molecules/attachment/attachment.component.js +8 -8
  155. package/dist/collection/components/molecules/button-group/button-group.component.js +1 -1
  156. package/dist/collection/components/molecules/calendar/calendar.component.js +1 -1
  157. package/dist/collection/components/molecules/content-slider/content-slider.component.js +2 -2
  158. package/dist/collection/components/molecules/cropper/cropper.component.js +1 -1
  159. package/dist/collection/components/molecules/datepicker/datepicker.component.js +2 -2
  160. package/dist/collection/components/molecules/dropdown/dropdown.component.js +2 -2
  161. package/dist/collection/components/molecules/dropzone/dropzone.component.css +1 -0
  162. package/dist/collection/components/molecules/dropzone/dropzone.component.js +402 -0
  163. package/dist/collection/components/molecules/dropzone/dropzone.stories.js +44 -0
  164. package/dist/collection/components/molecules/empty-state/empty-state.component.js +2 -2
  165. package/dist/collection/components/molecules/field/container/field-container.component.js +8 -8
  166. package/dist/collection/components/molecules/field/field/field.component.js +4 -4
  167. package/dist/collection/components/molecules/label/label.component.js +3 -3
  168. package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +3 -3
  169. package/dist/collection/components/molecules/navigation/section/navigation-section.component.js +1 -1
  170. package/dist/collection/components/molecules/pagination/pages/pagination-pages.component.js +1 -1
  171. package/dist/collection/components/molecules/pagination/pagination/pagination.component.js +3 -3
  172. package/dist/collection/components/molecules/pagination/size/pagination-size.component.js +4 -4
  173. package/dist/collection/components/molecules/profile/profile.component.js +1 -1
  174. package/dist/collection/components/molecules/range/range.component.js +3 -3
  175. package/dist/collection/components/molecules/select/select.component.js +2 -2
  176. package/dist/collection/components/molecules/table/cell/table-cell.component.js +1 -1
  177. package/dist/collection/components/molecules/table/footer/table-footer.component.js +2 -2
  178. package/dist/collection/components/molecules/table/header/table-header.component.js +4 -4
  179. package/dist/collection/components/molecules/table/row/table-row.component.js +3 -3
  180. package/dist/collection/components/molecules/toast/toast.component.js +1 -1
  181. package/dist/collection/components/organisms/listing/listing.component.js +2 -2
  182. package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
  183. package/dist/collection/components/organisms/table/table.component.js +2 -2
  184. package/dist/components/index.js +1 -1
  185. package/dist/components/{p-C5n669YA.js → p-5xGhxj77.js} +1 -1
  186. package/dist/components/{p-BrFy12TR.js → p-B0R6Smvm.js} +1 -1
  187. package/dist/components/{p-Dy4IX7Pe.js → p-BCWtvvOe.js} +1 -1
  188. package/dist/components/{p-BO22HPlM.js → p-BEV6zDs0.js} +1 -1
  189. package/dist/components/{p-QJoR_dmN.js → p-BGolUUn0.js} +1 -1
  190. package/dist/components/{p-lss590AG.js → p-BKVZoBXs.js} +1 -1
  191. package/dist/components/{p-Crasy6LB.js → p-BQ2nfPDP.js} +1 -1
  192. package/dist/components/{p-CNtLMu6c.js → p-Bd4QOMb3.js} +1 -1
  193. package/dist/components/{p-4vMrjI4R.js → p-Bg4oBHWW.js} +1 -1
  194. package/dist/components/{p-BqDsctQ9.js → p-BmPunDdB.js} +1 -1
  195. package/dist/components/{p-BE5gs-wy.js → p-BmZe-ySu.js} +1 -1
  196. package/dist/components/{p-ByXfZHh6.js → p-BqKhfVsb.js} +1 -1
  197. package/dist/components/{p-PwfSEBI3.js → p-BtQtJLYr.js} +1 -1
  198. package/dist/components/p-BzANZHar.js +1 -0
  199. package/dist/components/{p-C7j7Um7Y.js → p-C-Fx-e2u.js} +1 -1
  200. package/dist/{paperless/p-CU4DsLKq.js → components/p-C8Ju8eG_.js} +1 -1
  201. package/dist/components/{p-CMmvAq1F.js → p-CEucaDLB.js} +1 -1
  202. package/dist/components/{p-Tuv_bAJ2.js → p-CGolQEyn.js} +1 -1
  203. package/dist/components/{p-BrFVDEeC.js → p-CK5WtJW3.js} +1 -1
  204. package/dist/components/{p-DL2YlEpH.js → p-CPr4Yiq8.js} +1 -1
  205. package/dist/components/{p-BSU1g6Cl.js → p-CTFrItdj.js} +1 -1
  206. package/dist/components/{p-DHLrIt0b.js → p-C_ug-NFC.js} +1 -1
  207. package/dist/components/{p-DQyKcYSv.js → p-Cgmg4D6Y.js} +1 -1
  208. package/dist/components/{p-DvxgfyQ_.js → p-CmhjRWQy.js} +1 -1
  209. package/dist/components/{p-9C3ias2a.js → p-D-CC7BBx.js} +1 -1
  210. package/dist/components/{p-BxQCn3Jj.js → p-DA92PZeS.js} +1 -1
  211. package/dist/components/{p-PKBe_c-k.js → p-DEoTWGPb.js} +1 -1
  212. package/dist/components/{p-i1p7L9W8.js → p-DLz3l4Ve.js} +1 -1
  213. package/dist/components/{p-t4aLscWg.js → p-DNm_yz0u.js} +1 -1
  214. package/dist/components/p-DPRie-gp.js +1 -0
  215. package/dist/components/{p-BHcIe6BE.js → p-DW2CgFRa.js} +1 -1
  216. package/dist/components/{p-co8zArTG.js → p-DYtn3uAK.js} +1 -1
  217. package/dist/components/{p-CqDwyvBc.js → p-D_BCPirj.js} +1 -1
  218. package/dist/components/{p-B0rHem3C.js → p-Dd7Yba0f.js} +1 -1
  219. package/dist/components/{p-CB3RfZL6.js → p-DgXmfcNf.js} +1 -1
  220. package/dist/components/{p-CMhIKf1I.js → p-Du6rwBJ8.js} +1 -1
  221. package/dist/components/{p-BDYSnb7i.js → p-Dzd3xVIu.js} +1 -1
  222. package/dist/components/{p-BoI3_eAE.js → p-F3PaXjBa.js} +1 -1
  223. package/dist/components/{p-DbRPTfvT.js → p-GCtiZnn_.js} +1 -1
  224. package/dist/components/{p-DP6H82uQ.js → p-O5rAm8zV.js} +1 -1
  225. package/dist/components/{p-UUd1zusc.js → p-R1ZwoW7p.js} +1 -1
  226. package/dist/components/p-accordion.js +1 -1
  227. package/dist/components/p-attachment.js +1 -1
  228. package/dist/components/p-avatar-group.js +1 -1
  229. package/dist/components/p-avatar.js +1 -1
  230. package/dist/components/{p-A2wMRQKW.js → p-bWeLk9nj.js} +1 -1
  231. package/dist/components/p-backdrop.js +1 -1
  232. package/dist/components/p-badge.js +1 -1
  233. package/dist/components/p-button-group.js +1 -1
  234. package/dist/components/p-button.js +1 -1
  235. package/dist/components/p-calendar.js +1 -1
  236. package/dist/components/p-card-body.js +1 -1
  237. package/dist/components/p-card-container.js +1 -1
  238. package/dist/components/p-card-header.js +1 -1
  239. package/dist/components/p-checkbox.js +1 -1
  240. package/dist/components/p-content-slider.js +1 -1
  241. package/dist/components/p-cropper.js +2 -2
  242. package/dist/components/p-datepicker.js +1 -1
  243. package/dist/components/p-divider.js +1 -1
  244. package/dist/components/p-drawer-body.js +1 -1
  245. package/dist/components/p-drawer-container.js +1 -1
  246. package/dist/components/p-drawer-header.js +1 -1
  247. package/dist/components/p-drawer.js +1 -1
  248. package/dist/components/p-dropdown-menu-container.js +1 -1
  249. package/dist/components/p-dropdown-menu-item.js +1 -1
  250. package/dist/components/p-dropdown.js +1 -1
  251. package/dist/components/p-dropzone.d.ts +11 -0
  252. package/dist/components/p-dropzone.js +1 -0
  253. package/dist/components/p-empty-state.js +1 -1
  254. package/dist/components/p-field-container.js +1 -1
  255. package/dist/components/p-field.js +1 -1
  256. package/dist/components/p-floating-menu-container.js +1 -1
  257. package/dist/components/p-floating-menu-item.js +1 -1
  258. package/dist/components/p-helper.js +1 -1
  259. package/dist/components/p-icon.js +1 -1
  260. package/dist/components/p-illustration.js +1 -1
  261. package/dist/components/p-info-panel.js +1 -1
  262. package/dist/components/{p-Bg0nKrgn.js → p-jLO4drbv.js} +1 -1
  263. package/dist/components/p-label.js +1 -1
  264. package/dist/components/p-layout.js +1 -1
  265. package/dist/components/p-listing-item.js +1 -1
  266. package/dist/components/p-listing-line.js +1 -1
  267. package/dist/components/p-listing.js +1 -1
  268. package/dist/components/p-modal-body.js +1 -1
  269. package/dist/components/p-modal-container.js +1 -1
  270. package/dist/components/p-modal-footer.js +1 -1
  271. package/dist/components/p-modal-header.js +1 -1
  272. package/dist/components/p-modal.js +1 -1
  273. package/dist/components/p-navbar.js +1 -1
  274. package/dist/components/p-navigation-item.js +1 -1
  275. package/dist/components/p-navigation-section.js +1 -1
  276. package/dist/components/p-navigation-title.js +1 -1
  277. package/dist/components/p-pagination-pages-item.js +1 -1
  278. package/dist/components/p-pagination-pages.js +1 -1
  279. package/dist/components/p-pagination-size.js +1 -1
  280. package/dist/components/p-pagination.js +1 -1
  281. package/dist/components/p-profile.js +1 -1
  282. package/dist/components/p-radio.js +1 -1
  283. package/dist/components/p-range.js +1 -1
  284. package/dist/components/p-segment-container.js +1 -1
  285. package/dist/components/p-segment-item.js +1 -1
  286. package/dist/components/p-select.js +1 -1
  287. package/dist/components/p-smile.js +1 -1
  288. package/dist/components/p-stepper-item.js +1 -1
  289. package/dist/components/p-stepper-line.js +1 -1
  290. package/dist/components/p-stepper.js +1 -1
  291. package/dist/components/p-tab-container.js +1 -1
  292. package/dist/components/p-tab-item.js +1 -1
  293. package/dist/components/p-table-cell.js +1 -1
  294. package/dist/components/p-table-container.js +1 -1
  295. package/dist/components/p-table-footer.js +1 -1
  296. package/dist/components/p-table-header.js +1 -1
  297. package/dist/components/p-table-row-actions-container.js +1 -1
  298. package/dist/components/p-table-row.js +1 -1
  299. package/dist/components/p-table.js +1 -1
  300. package/dist/components/p-toast-container.js +1 -1
  301. package/dist/components/p-toast.js +1 -1
  302. package/dist/components/p-toggle.js +1 -1
  303. package/dist/components/p-tooltip.js +1 -1
  304. package/dist/components/{p-3Vtsi6MW.js → p-tygV9wpP.js} +1 -1
  305. package/dist/components/{p-C_JXTK81.js → p-yulcflZJ.js} +1 -1
  306. package/dist/esm/{icons-CU4DsLKq.js → icons-C8Ju8eG_.js} +13 -1
  307. package/dist/esm/index-yFtRjnrU.js +4 -0
  308. package/dist/esm/index.js +1 -1
  309. package/dist/esm/loader.js +1 -1
  310. package/dist/esm/p-accordion.entry.js +2 -2
  311. package/dist/esm/p-attachment.entry.js +8 -8
  312. package/dist/esm/p-avatar-group.entry.js +1 -1
  313. package/dist/esm/p-avatar.entry.js +1 -1
  314. package/dist/esm/p-backdrop.entry.js +3 -3
  315. package/dist/esm/p-badge_3.entry.js +4 -4
  316. package/dist/esm/p-button-group.entry.js +1 -1
  317. package/dist/esm/p-button_3.entry.js +2 -2
  318. package/dist/esm/p-calendar.entry.js +1 -1
  319. package/dist/esm/p-card-body.entry.js +1 -1
  320. package/dist/esm/p-card-container.entry.js +2 -2
  321. package/dist/esm/p-card-header.entry.js +3 -3
  322. package/dist/esm/p-checkbox_3.entry.js +9 -9
  323. package/dist/esm/p-content-slider.entry.js +2 -2
  324. package/dist/esm/p-cropper.entry.js +1 -1
  325. package/dist/esm/p-datepicker.entry.js +2 -2
  326. package/dist/esm/p-divider.entry.js +2 -2
  327. package/dist/esm/p-drawer-body_3.entry.js +4 -4
  328. package/dist/esm/p-dropdown-menu-item_2.entry.js +5 -5
  329. package/dist/esm/p-dropzone.entry.js +198 -0
  330. package/dist/esm/p-empty-state_8.entry.js +18 -18
  331. package/dist/esm/p-field_3.entry.js +13 -13
  332. package/dist/esm/p-floating-menu-item.entry.js +2 -2
  333. package/dist/esm/p-illustration.entry.js +1 -1
  334. package/dist/esm/p-info-panel.entry.js +2 -2
  335. package/dist/esm/p-label.entry.js +3 -3
  336. package/dist/esm/p-layout.entry.js +1 -1
  337. package/dist/esm/p-listing-item.entry.js +1 -1
  338. package/dist/esm/p-listing-line.entry.js +1 -1
  339. package/dist/esm/p-listing.entry.js +2 -2
  340. package/dist/esm/p-modal-body_4.entry.js +6 -6
  341. package/dist/esm/p-navbar.entry.js +1 -1
  342. package/dist/esm/p-navigation-item.entry.js +3 -3
  343. package/dist/esm/p-navigation-section.entry.js +1 -1
  344. package/dist/esm/p-navigation-title.entry.js +1 -1
  345. package/dist/esm/p-pagination_3.entry.js +8 -8
  346. package/dist/esm/p-profile.entry.js +1 -1
  347. package/dist/esm/p-radio.entry.js +3 -3
  348. package/dist/esm/p-range.entry.js +3 -3
  349. package/dist/esm/p-select.entry.js +2 -2
  350. package/dist/esm/p-smile.entry.js +1 -1
  351. package/dist/esm/p-stepper-item_2.entry.js +5 -5
  352. package/dist/esm/p-tab-container.entry.js +1 -1
  353. package/dist/esm/p-tab-item.entry.js +1 -1
  354. package/dist/esm/p-table.entry.js +2 -2
  355. package/dist/esm/p-toast-container.entry.js +2 -2
  356. package/dist/esm/p-toast.entry.js +1 -1
  357. package/dist/esm/p-toggle.entry.js +3 -3
  358. package/dist/esm/p-tooltip.entry.js +2 -2
  359. package/dist/esm/paperless.js +1 -1
  360. package/dist/index.html +1 -1
  361. package/dist/paperless/index.esm.js +1 -1
  362. package/dist/paperless/{p-d13d8eb9.entry.js → p-06e05b91.entry.js} +1 -1
  363. package/dist/{build/p-2dfbfe7a.entry.js → paperless/p-14df360e.entry.js} +1 -1
  364. package/dist/{build/p-9f3cf82d.entry.js → paperless/p-195e954b.entry.js} +1 -1
  365. package/dist/{build/p-e2219fa7.entry.js → paperless/p-21af7426.entry.js} +1 -1
  366. package/dist/paperless/{p-16c98151.entry.js → p-221357a9.entry.js} +1 -1
  367. package/dist/paperless/{p-18aebae1.entry.js → p-25dd095e.entry.js} +1 -1
  368. package/dist/{build/p-fad5a088.entry.js → paperless/p-2e47c533.entry.js} +1 -1
  369. package/dist/paperless/{p-ad2767f7.entry.js → p-2e8e4b6c.entry.js} +1 -1
  370. package/dist/paperless/{p-cbdf1355.entry.js → p-31167a12.entry.js} +1 -1
  371. package/dist/paperless/p-3203bd08.entry.js +1 -0
  372. package/dist/paperless/{p-a1e69465.entry.js → p-3a857d73.entry.js} +1 -1
  373. package/dist/paperless/{p-90c95664.entry.js → p-3b2b195d.entry.js} +1 -1
  374. package/dist/paperless/{p-35107edb.entry.js → p-3bc3a649.entry.js} +1 -1
  375. package/dist/paperless/{p-fd26cf65.entry.js → p-4060ee8b.entry.js} +1 -1
  376. package/dist/paperless/{p-b992baa0.entry.js → p-44cee1cb.entry.js} +1 -1
  377. package/dist/{build/p-7c01dd27.entry.js → paperless/p-45ce6a54.entry.js} +1 -1
  378. package/dist/{build/p-0892908c.entry.js → paperless/p-507261fa.entry.js} +1 -1
  379. package/dist/paperless/{p-2eb0963d.entry.js → p-50c4d56e.entry.js} +1 -1
  380. package/dist/{build/p-8e3a2fa0.entry.js → paperless/p-54b0790e.entry.js} +1 -1
  381. package/dist/{build/p-b35a687a.entry.js → paperless/p-655fda1a.entry.js} +1 -1
  382. package/dist/paperless/{p-a263c4fe.entry.js → p-7abc21d8.entry.js} +1 -1
  383. package/dist/paperless/p-832c13bc.entry.js +1 -0
  384. package/dist/paperless/{p-4536b546.entry.js → p-835737f1.entry.js} +1 -1
  385. package/dist/paperless/{p-001e60c3.entry.js → p-90610536.entry.js} +1 -1
  386. package/dist/paperless/p-91dcf7d0.entry.js +1 -0
  387. package/dist/{build/p-7b858cd2.entry.js → paperless/p-938b6c09.entry.js} +1 -1
  388. package/dist/{build/p-bf22285d.entry.js → paperless/p-9a6196a5.entry.js} +1 -1
  389. package/dist/paperless/{p-f6a8012e.entry.js → p-9b28fc94.entry.js} +1 -1
  390. package/dist/paperless/p-9c29695a.entry.js +1 -0
  391. package/dist/{build/p-CU4DsLKq.js → paperless/p-C8Ju8eG_.js} +1 -1
  392. package/dist/{build/p-b4c6d3be.entry.js → paperless/p-ad2650e8.entry.js} +1 -1
  393. package/dist/paperless/{p-e1aaca9c.entry.js → p-b48c0217.entry.js} +1 -1
  394. package/dist/{build/p-e00be7e7.entry.js → paperless/p-b6809b6f.entry.js} +1 -1
  395. package/dist/paperless/{p-b98a72c3.entry.js → p-b8f7c55a.entry.js} +1 -1
  396. package/dist/{build/p-8a2690df.entry.js → paperless/p-b91cdc33.entry.js} +1 -1
  397. package/dist/paperless/{p-0380b299.entry.js → p-b966039d.entry.js} +1 -1
  398. package/dist/paperless/{p-8ed51b6d.entry.js → p-bdda8043.entry.js} +1 -1
  399. package/dist/paperless/{p-8e91039f.entry.js → p-d1cb90b9.entry.js} +1 -1
  400. package/dist/{build/p-e26a497e.entry.js → paperless/p-d58dcb50.entry.js} +1 -1
  401. package/dist/{build/p-0b4b4cf7.entry.js → paperless/p-d614092e.entry.js} +1 -1
  402. package/dist/paperless/{p-2c10ed8a.entry.js → p-dca31554.entry.js} +1 -1
  403. package/dist/paperless/p-e2917e71.entry.js +1 -0
  404. package/dist/{build/p-d4d0d4a7.entry.js → paperless/p-e405fba1.entry.js} +1 -1
  405. package/dist/paperless/p-e6669599.entry.js +1 -0
  406. package/dist/paperless/{p-dbac42ad.entry.js → p-e86238e2.entry.js} +1 -1
  407. package/dist/paperless/{p-0da11431.entry.js → p-f3cbc433.entry.js} +1 -1
  408. package/dist/paperless/{p-e6f986d8.entry.js → p-f5cacfd0.entry.js} +1 -1
  409. package/dist/paperless/{p-afc6498d.entry.js → p-fcff315d.entry.js} +1 -1
  410. package/dist/{build/p-b2cbd111.entry.js → paperless/p-fea58ded.entry.js} +1 -1
  411. package/dist/paperless/{p-87112092.entry.js → p-fedaa9ef.entry.js} +1 -1
  412. package/dist/paperless/paperless.esm.js +1 -1
  413. package/dist/sw.js +1 -1
  414. package/dist/sw.js.map +1 -1
  415. package/dist/types/components/molecules/dropzone/dropzone.component.d.ts +68 -0
  416. package/dist/types/components/molecules/dropzone/dropzone.stories.d.ts +25 -0
  417. package/dist/types/components.d.ts +104 -2
  418. package/hydrate/index.js +365 -145
  419. package/hydrate/index.mjs +365 -145
  420. package/package.json +5 -1
  421. package/dist/build/p-21b62f41.entry.js +0 -1
  422. package/dist/build/p-27613157.entry.js +0 -1
  423. package/dist/build/p-bba808f0.entry.js +0 -1
  424. package/dist/build/p-dd5b5648.js +0 -1
  425. package/dist/build/p-ef2d18cc.entry.js +0 -1
  426. package/dist/build/p-fb18c197.entry.js +0 -1
  427. package/dist/components/p-CUwpPeVc.js +0 -1
  428. package/dist/components/p-IBTfZiqD.js +0 -1
  429. package/dist/paperless/p-21b62f41.entry.js +0 -1
  430. package/dist/paperless/p-27613157.entry.js +0 -1
  431. package/dist/paperless/p-bba808f0.entry.js +0 -1
  432. package/dist/paperless/p-ef2d18cc.entry.js +0 -1
  433. package/dist/paperless/p-fb18c197.entry.js +0 -1
@@ -1,3 +1,3 @@
1
- import{t,p as s,H as e,c as i,h}from"./p-CySg37XO.js";import{T as n}from"./p-Au2WuEGF.js";import{s as r}from"./p-BBiGYjKk.js";import{d as o}from"./p-DL2YlEpH.js";import{d as a}from"./p-C7j7Um7Y.js";const c="undefined"!=typeof window&&void 0!==window.document,l=c?window:{},d=!!c&&"ontouchstart"in l.document.documentElement,u=!!c&&"PointerEvent"in l,p="cropper",b=p+"-canvas",m=p+"-crosshair",f=p+"-grid",g=p+"-handle",w=p+"-image",v=p+"-selection",k=p+"-shade",$=p+"-viewer",y="select",x="move",z="scale",M="rotate",C="transform",j="none",A="n-resize",E="e-resize",O="s-resize",T="w-resize",S="ne-resize",Y="nw-resize",_="se-resize",I="sw-resize",N=u?"pointerdown":d?"touchstart":"mousedown",R=u?"pointermove":d?"touchmove":"mousemove",X=u?"pointerup pointercancel":d?"touchend touchcancel":"mouseup",W="error",P="keydown",D="load",L="wheel",B="action",U="actionend",F="actionstart",H="change",G="transform",K=Number.isNaN||l.isNaN;function V(t){return"number"==typeof t&&!K(t)}function Z(t){return V(t)&&t>0&&t<1/0}function q(t){return"object"==typeof t&&null!==t}const{hasOwnProperty:J}=Object.prototype;function Q(t){if(!q(t))return!1;try{const{constructor:s}=t,{prototype:e}=s;return s&&e&&J.call(e,"isPrototypeOf")}catch(t){return!1}}function tt(t){return"function"==typeof t}function st(t){return"object"==typeof t&&null!==t&&1===t.nodeType}const et=/([a-z\d])([A-Z])/g;function it(t){return(t+"").replace(et,"$1-$2").toLowerCase()}const ht=/-[A-z\d]/g;function nt(t){return t.replace(ht,(t=>t.slice(1).toUpperCase()))}const rt=/\s\s*/;function ot(t,s,e,i){s.trim().split(rt).forEach((s=>{t.removeEventListener(s,e,i)}))}function at(t,s,e,i){s.trim().split(rt).forEach((s=>{t.addEventListener(s,e,i)}))}function ct(t,s,e,i){at(t,s,e,Object.assign(Object.assign({},i),{once:!0}))}const lt={bubbles:!0,cancelable:!0,composed:!0},dt=Promise.resolve();function ut(t){const{documentElement:s}=t.ownerDocument,e=t.getBoundingClientRect();return{left:e.left+(l.pageXOffset-s.clientLeft),top:e.top+(l.pageYOffset-s.clientTop)}}const pt=/deg|g?rad|turn$/i;function bt(t){const s=parseFloat(t)||0;if(0!==s){const[e="rad"]=(t+"").match(pt)||[];switch(e.toLowerCase()){case"deg":return s/360*(2*Math.PI);case"grad":return s/400*(2*Math.PI);case"turn":return s*(2*Math.PI)}}return s}const mt="contain";function ft(t,s=mt){const{aspectRatio:e}=t;let{width:i,height:h}=t;const n=Z(i),r=Z(h);if(n&&r){const t=h*e;s===mt&&t>i||"cover"===s&&t<i?h=i/e:i=h*e}else n?h=i/e:r&&(i=h*e);return{width:i,height:h}}function gt(t,...s){if(0===s.length)return t;const[e,i,h,n,r,o]=t,[a,c,l,d,u,p]=s[0];return gt(t=[e*a+h*c,i*a+n*c,e*l+h*d,i*l+n*d,e*u+h*p+r,i*u+n*p+o],...s.slice(1))}const wt=/left|top|width|height/i,vt="open",kt=new WeakMap,$t=new WeakMap,yt=new Map,xt=l.document&&Array.isArray(l.document.adoptedStyleSheets)&&"replaceSync"in l.CSSStyleSheet.prototype;class zt extends HTMLElement{get $sharedStyle(){return(this.themeColor?`:host{--theme-color: ${this.themeColor};}`:"")+":host([hidden]){display:none!important}"}constructor(){var t,s;super(),this.shadowRootMode=vt,this.slottable=!0;const e=null===(s=null===(t=Object.getPrototypeOf(this))||void 0===t?void 0:t.constructor)||void 0===s?void 0:s.$name;e&&yt.set(e,this.tagName.toLowerCase())}static get observedAttributes(){return["shadow-root-mode","slottable","theme-color"]}attributeChangedCallback(t,s,e){if(Object.is(e,s))return;const i=nt(t);let h=e;switch(typeof this[i]){case"boolean":h=null!==e&&"false"!==e;break;case"number":h=Number(e)}switch(this[i]=h,t){case"theme-color":{const t=$t.get(this),s=this.$sharedStyle;t&&s&&(xt?t.replaceSync(s):t.textContent=s);break}}}$propertyChangedCallback(t,s,e){if(!Object.is(e,s))switch(t=it(t),typeof e){case"boolean":!0===e?this.hasAttribute(t)||this.setAttribute(t,""):this.removeAttribute(t);break;case"number":K(e)?e="":e+="";default:e?this.getAttribute(t)!==e&&this.setAttribute(t,e):this.removeAttribute(t)}}connectedCallback(){Object.getPrototypeOf(this).constructor.observedAttributes.forEach((t=>{const s=nt(t);let e=this[s];(function(t){return void 0===t})(e)||this.$propertyChangedCallback(s,void 0,e),Object.defineProperty(this,s,{enumerable:!0,configurable:!0,get:()=>e,set(t){const i=e;e=t,this.$propertyChangedCallback(s,i,t)}})}));const t=this.attachShadow({mode:this.shadowRootMode||vt});if(this.shadowRoot||kt.set(this,t),$t.set(this,this.$addStyles(this.$sharedStyle)),this.$style&&this.$addStyles(this.$style),this.$template){const s=document.createElement("template");s.innerHTML=this.$template,t.appendChild(s.content)}if(this.slottable){const s=document.createElement("slot");t.appendChild(s)}}disconnectedCallback(){$t.has(this)&&$t.delete(this),kt.has(this)&&kt.delete(this)}$getTagNameOf(t){var s;return null!==(s=yt.get(t))&&void 0!==s?s:t}$setStyles(t){return Object.keys(t).forEach((s=>{let e=t[s];V(e)&&(0!==e&&wt.test(s)?e+="px":e+=""),this.style[s]=e})),this}$getShadowRoot(){return this.shadowRoot||kt.get(this)}$addStyles(t){let s;const e=this.$getShadowRoot();return xt?(s=new CSSStyleSheet,s.replaceSync(t),e.adoptedStyleSheets=e.adoptedStyleSheets.concat(s)):(s=document.createElement("style"),s.textContent=t,e.appendChild(s)),s}$emit(t,s,e){return function(t,s,e,i){return t.dispatchEvent(new CustomEvent(s,Object.assign(Object.assign(Object.assign({},lt),{detail:e}),i)))}(this,t,s,e)}$nextTick(t){return function(t,s){return s?dt.then(t?s.bind(t):s):dt}(this,t)}static $define(t,s){q(t)&&(s=t,t=""),t||(t=this.$name||this.name),t=it(t),c&&l.customElements&&!l.customElements.get(t)&&customElements.define(t,this,s)}}zt.$version="2.0.0";class Mt extends zt{constructor(){super(...arguments),this.$onPointerDown=null,this.$onPointerMove=null,this.$onPointerUp=null,this.$onWheel=null,this.$wheeling=!1,this.$pointers=new Map,this.$style=':host{display:block;min-height:100px;min-width:200px;overflow:hidden;position:relative;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([background]){background-color:#fff;background-image:repeating-linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),repeating-linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-image:repeating-conic-gradient(#ccc 0 25%,#fff 0 50%);background-position:0 0,.5rem .5rem;background-size:1rem 1rem}:host([disabled]){pointer-events:none}:host([disabled]):after{bottom:0;content:"";cursor:not-allowed;display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}',this.$action=j,this.background=!1,this.disabled=!1,this.scaleStep=.1,this.themeColor="#39f"}static get observedAttributes(){return super.observedAttributes.concat(["background","disabled","scale-step"])}connectedCallback(){super.connectedCallback(),this.disabled||this.$bind()}disconnectedCallback(){this.disabled||this.$unbind(),super.disconnectedCallback()}$propertyChangedCallback(t,s,e){Object.is(e,s)||(super.$propertyChangedCallback(t,s,e),"disabled"!==t)||(e?this.$unbind():this.$bind())}$bind(){this.$onPointerDown||(this.$onPointerDown=this.$handlePointerDown.bind(this),at(this,N,this.$onPointerDown)),this.$onPointerMove||(this.$onPointerMove=this.$handlePointerMove.bind(this),at(this.ownerDocument,R,this.$onPointerMove)),this.$onPointerUp||(this.$onPointerUp=this.$handlePointerUp.bind(this),at(this.ownerDocument,X,this.$onPointerUp)),this.$onWheel||(this.$onWheel=this.$handleWheel.bind(this),at(this,L,this.$onWheel,{passive:!1,capture:!0}))}$unbind(){this.$onPointerDown&&(ot(this,N,this.$onPointerDown),this.$onPointerDown=null),this.$onPointerMove&&(ot(this.ownerDocument,R,this.$onPointerMove),this.$onPointerMove=null),this.$onPointerUp&&(ot(this.ownerDocument,X,this.$onPointerUp),this.$onPointerUp=null),this.$onWheel&&(ot(this,L,this.$onWheel,{capture:!0}),this.$onWheel=null)}$handlePointerDown(t){const{buttons:s,button:e,type:i}=t;if(this.disabled||("pointerdown"===i&&"mouse"===t.pointerType||"mousedown"===i)&&(V(s)&&1!==s||V(e)&&0!==e||t.ctrlKey))return;const{$pointers:h}=this;let n="";if(t.changedTouches)Array.from(t.changedTouches).forEach((({identifier:t,pageX:s,pageY:e})=>{h.set(t,{startX:s,startY:e,endX:s,endY:e})}));else{const{pointerId:s=0,pageX:e,pageY:i}=t;h.set(s,{startX:e,startY:i,endX:e,endY:i})}h.size>1?n=C:st(t.target)&&(n=t.target.action||t.target.getAttribute("action")||""),!1!==this.$emit(F,{action:n,relatedEvent:t})&&(t.preventDefault(),this.$action=n,this.style.willChange="transform")}$handlePointerMove(t){const{$action:s,$pointers:e}=this;if(this.disabled||s===j||0===e.size)return;if(!1===this.$emit("actionmove",{action:s,relatedEvent:t}))return;if(t.preventDefault(),t.changedTouches)Array.from(t.changedTouches).forEach((({identifier:t,pageX:s,pageY:i})=>{const h=e.get(t);h&&Object.assign(h,{endX:s,endY:i})}));else{const{pointerId:s=0,pageX:i,pageY:h}=t,n=e.get(s);n&&Object.assign(n,{endX:i,endY:h})}const i={action:s,relatedEvent:t};if(s===C){const s=new Map(e);let h=0,n=0,r=0,o=0,a=t.pageX,c=t.pageY;e.forEach(((t,e)=>{s.delete(e),s.forEach((s=>{let e=s.startX-t.startX,i=s.startY-t.startY,l=s.endX-t.endX,d=s.endY-t.endY,u=0,p=0,b=0,m=0;if(0===e?i<0?b=2*Math.PI:i>0&&(b=Math.PI):e>0?b=Math.PI/2+Math.atan(i/e):e<0&&(b=1.5*Math.PI+Math.atan(i/e)),0===l?d<0?m=2*Math.PI:d>0&&(m=Math.PI):l>0?m=Math.PI/2+Math.atan(d/l):l<0&&(m=1.5*Math.PI+Math.atan(d/l)),m>0||b>0){const e=m-b,i=Math.abs(e);i>h&&(h=i,r=e,a=(t.startX+s.startX)/2,c=(t.startY+s.startY)/2)}if(e=Math.abs(e),i=Math.abs(i),l=Math.abs(l),d=Math.abs(d),e>0&&i>0?u=Math.sqrt(e*e+i*i):e>0?u=e:i>0&&(u=i),l>0&&d>0?p=Math.sqrt(l*l+d*d):l>0?p=l:d>0&&(p=d),u>0&&p>0){const e=(p-u)/u,i=Math.abs(e);i>n&&(n=i,o=e,a=(t.startX+s.startX)/2,c=(t.startY+s.startY)/2)}}))}));const l=h>0,d=n>0;l&&d?(i.rotate=r,i.scale=o,i.centerX=a,i.centerY=c):l?(i.action=M,i.rotate=r,i.centerX=a,i.centerY=c):d?(i.action=z,i.scale=o,i.centerX=a,i.centerY=c):i.action=j}else{const[t]=Array.from(e.values());Object.assign(i,t)}e.forEach((t=>{t.startX=t.endX,t.startY=t.endY})),i.action!==j&&this.$emit(B,i,{cancelable:!1})}$handlePointerUp(t){const{$action:s,$pointers:e}=this;if(!this.disabled&&s!==j&&!1!==this.$emit(U,{action:s,relatedEvent:t})){if(t.preventDefault(),t.changedTouches)Array.from(t.changedTouches).forEach((({identifier:t})=>{e.delete(t)}));else{const{pointerId:s=0}=t;e.delete(s)}0===e.size&&(this.style.willChange="",this.$action=j)}}$handleWheel(t){this.disabled||(t.preventDefault(),this.$wheeling||(this.$wheeling=!0,setTimeout((()=>{this.$wheeling=!1}),50),this.$emit(B,{action:z,scale:(t.deltaY>0?-1:1)*this.scaleStep,relatedEvent:t},{cancelable:!1})))}$setAction(t){return function(t){return"string"==typeof t}(t)&&(this.$action=t),this}$toCanvas(t){return new Promise(((s,e)=>{if(!this.isConnected)return void e(Error("The current element is not connected to the DOM."));const i=document.createElement("canvas");let h=this.offsetWidth,n=this.offsetHeight,r=1;Q(t)&&(Z(t.width)||Z(t.height))&&(({width:h,height:n}=ft({aspectRatio:h/n,width:t.width,height:t.height})),r=h/this.offsetWidth),i.width=h,i.height=n;const o=this.querySelector(this.$getTagNameOf(w));o?o.$ready().then((e=>{const a=i.getContext("2d");if(a){const[s,c,l,d,u,p]=o.$getTransform();let b=u,m=p,f=e.naturalWidth,g=e.naturalHeight;1!==r&&(b*=r,m*=r,f*=r,g*=r);const w=f/2,v=g/2;a.fillStyle="transparent",a.fillRect(0,0,h,n),Q(t)&&tt(t.beforeDraw)&&t.beforeDraw.call(this,a,i),a.save(),a.translate(w,v),a.transform(s,c,l,d,b,m),a.translate(-w,-v),a.drawImage(e,0,0,f,g),a.restore()}s(i)})).catch(e):s(i)}))}}Mt.$name=b,Mt.$version="2.0.0";const Ct=new WeakMap,jt=["alt","crossorigin","decoding","importance","loading","referrerpolicy","sizes","src","srcset"];class At extends zt{constructor(){super(...arguments),this.$matrix=[1,0,0,1,0,0],this.$onLoad=null,this.$onCanvasAction=null,this.$onCanvasActionEnd=null,this.$onCanvasActionStart=null,this.$actionStartTarget=null,this.$style=":host{display:inline-block}img{display:block;height:100%;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}",this.$image=new Image,this.initialCenterSize="contain",this.rotatable=!1,this.scalable=!1,this.skewable=!1,this.slottable=!1,this.translatable=!1}set $canvas(t){Ct.set(this,t)}get $canvas(){return Ct.get(this)}static get observedAttributes(){return super.observedAttributes.concat(jt,["initial-center-size","rotatable","scalable","skewable","translatable"])}attributeChangedCallback(t,s,e){Object.is(e,s)||(super.attributeChangedCallback(t,s,e),jt.includes(t)&&this.$image.setAttribute(t,e))}$propertyChangedCallback(t,s,e){Object.is(e,s)||(super.$propertyChangedCallback(t,s,e),"initialCenterSize"!==t)||this.$nextTick((()=>{this.$center(e)}))}connectedCallback(){super.connectedCallback();const{$image:t}=this,s=this.closest(this.$getTagNameOf(b));s&&(this.$canvas=s,this.$setStyles({display:"block",position:"absolute"}),this.$onCanvasActionStart=t=>{var s,e;this.$actionStartTarget=null===(e=null===(s=t.detail)||void 0===s?void 0:s.relatedEvent)||void 0===e?void 0:e.target},this.$onCanvasActionEnd=()=>{this.$actionStartTarget=null},this.$onCanvasAction=this.$handleAction.bind(this),at(s,F,this.$onCanvasActionStart),at(s,U,this.$onCanvasActionEnd),at(s,B,this.$onCanvasAction)),this.$onLoad=this.$handleLoad.bind(this),at(t,D,this.$onLoad),this.$getShadowRoot().appendChild(t)}disconnectedCallback(){const{$image:t,$canvas:s}=this;s&&(this.$onCanvasActionStart&&(ot(s,F,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(ot(s,U,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasAction&&(ot(s,B,this.$onCanvasAction),this.$onCanvasAction=null)),t&&this.$onLoad&&(ot(t,D,this.$onLoad),this.$onLoad=null),this.$getShadowRoot().removeChild(t),super.disconnectedCallback()}$handleLoad(){const{$image:t}=this;this.$setStyles({width:t.naturalWidth,height:t.naturalHeight}),this.$canvas&&this.$center(this.initialCenterSize)}$handleAction(t){if(this.hidden||!(this.rotatable||this.scalable||this.translatable))return;const{$canvas:s}=this,{detail:e}=t;if(e){const{relatedEvent:t}=e;let{action:i}=e;switch(i!==C||this.rotatable&&this.scalable||(i=this.rotatable?M:this.scalable?z:j),i){case x:if(this.translatable){let i=null;t&&(i=t.target.closest(this.$getTagNameOf(v))),i||(i=s.querySelector(this.$getTagNameOf(v))),i&&i.multiple&&!i.active&&(i=s.querySelector(this.$getTagNameOf(v)+"[active]")),i&&!i.hidden&&i.movable&&!i.dynamic&&this.$actionStartTarget&&i.contains(this.$actionStartTarget)||this.$move(e.endX-e.startX,e.endY-e.startY)}break;case M:if(this.rotatable)if(t){const{x:s,y:i}=this.getBoundingClientRect();this.$rotate(e.rotate,t.clientX-s,t.clientY-i)}else this.$rotate(e.rotate);break;case z:if(this.scalable)if(t){const s=t.target.closest(this.$getTagNameOf(v));if(!s||!s.zoomable||s.zoomable&&s.dynamic){const{x:s,y:i}=this.getBoundingClientRect();this.$zoom(e.scale,t.clientX-s,t.clientY-i)}}else this.$zoom(e.scale);break;case C:if(this.rotatable&&this.scalable){const{rotate:s}=e;let{scale:i}=e;i<0?i=1/(1-i):i+=1;const h=Math.cos(s),n=Math.sin(s),[r,o,a,c]=[h*i,n*i,-n*i,h*i];if(t){const s=this.getBoundingClientRect(),e=t.clientX-s.x,i=t.clientY-s.y,[h,n,l,d]=this.$matrix,u=e-s.width/2,p=i-s.height/2,b=(u*d-l*p)/(h*d-l*n),m=(p*h-n*u)/(h*d-l*n);this.$transform(r,o,a,c,b*(1-r)+m*a,m*(1-c)+b*o)}else this.$transform(r,o,a,c,0,0)}}}}$ready(t){const{$image:s}=this,e=new Promise(((t,e)=>{const i=Error("Failed to load the image source");if(s.complete)s.naturalWidth>0&&s.naturalHeight>0?t(s):e(i);else{const h=()=>{ot(s,W,n),t(s)},n=()=>{ot(s,D,h),e(i)};ct(s,D,h),ct(s,W,n)}}));return tt(t)&&e.then((s=>(t(s),s))),e}$center(t){const{parentElement:s}=this;if(!s)return this;const e=s.getBoundingClientRect(),i=e.width,h=e.height,{x:n,y:r,width:o,height:a}=this.getBoundingClientRect();if(this.$move(e.x+i/2-(n+o/2),e.y+h/2-(r+a/2)),t&&(o!==i||a!==h)){const s=i/o,e=h/a;switch(t){case"cover":this.$scale(Math.max(s,e));break;case"contain":this.$scale(Math.min(s,e))}}return this}$move(t,s=t){if(this.translatable&&V(t)&&V(s)){const[e,i,h,n]=this.$matrix;this.$translate((t*n-h*s)/(e*n-h*i),(s*e-i*t)/(e*n-h*i))}return this}$moveTo(t,s=t){if(this.translatable&&V(t)&&V(s)){const[e,i,h,n]=this.$matrix;this.$setTransform(e,i,h,n,(t*n-h*s)/(e*n-h*i),(s*e-i*t)/(e*n-h*i))}return this}$rotate(t,s,e){if(this.rotatable){const i=bt(t),h=Math.cos(i),n=Math.sin(i),[r,o,a,c]=[h,n,-n,h];if(V(s)&&V(e)){const[t,i,h,n]=this.$matrix,{width:l,height:d}=this.getBoundingClientRect(),u=s-l/2,p=e-d/2,b=(u*n-h*p)/(t*n-h*i),m=(p*t-i*u)/(t*n-h*i);this.$transform(r,o,a,c,b*(1-r)-m*a,m*(1-c)-b*o)}else this.$transform(r,o,a,c,0,0)}return this}$zoom(t,s,e){if(!this.scalable||0===t)return this;if(t<0?t=1/(1-t):t+=1,V(s)&&V(e)){const[i,h,n,r]=this.$matrix,{width:o,height:a}=this.getBoundingClientRect(),c=s-o/2,l=e-a/2;this.$transform(t,0,0,t,(c*r-n*l)/(i*r-n*h)*(1-t),(l*i-h*c)/(i*r-n*h)*(1-t))}else this.$scale(t);return this}$scale(t,s=t){return this.scalable&&this.$transform(t,0,0,s,0,0),this}$skew(t,s=0){if(this.skewable){const e=bt(t),i=bt(s);this.$transform(1,Math.tan(i),Math.tan(e),1,0,0)}return this}$translate(t,s=t){return this.translatable&&V(t)&&V(s)&&this.$transform(1,0,0,1,t,s),this}$transform(t,s,e,i,h,n){return V(t)&&V(s)&&V(e)&&V(i)&&V(h)&&V(n)?this.$setTransform(gt(this.$matrix,[t,s,e,i,h,n])):this}$setTransform(t,s,e,i,h,n){if((this.rotatable||this.scalable||this.skewable||this.translatable)&&(Array.isArray(t)&&([t,s,e,i,h,n]=t),V(t)&&V(s)&&V(e)&&V(i)&&V(h)&&V(n))){const r=[...this.$matrix],o=[t,s,e,i,h,n];if(!1===this.$emit(G,{matrix:o,oldMatrix:r}))return this;this.$matrix=o,this.style.transform=`matrix(${o.join(", ")})`}return this}$getTransform(){return this.$matrix.slice()}$resetTransform(){return this.$setTransform([1,0,0,1,0,0])}}At.$name=w,At.$version="2.0.0";const Et=new WeakMap;class Ot extends zt{constructor(){super(...arguments),this.$onCanvasChange=null,this.$onCanvasActionEnd=null,this.$onCanvasActionStart=null,this.$style=":host{display:block;height:0;left:0;outline:var(--theme-color) solid 1px;position:relative;top:0;width:0}:host([transparent]){outline-color:transparent}",this.x=0,this.y=0,this.width=0,this.height=0,this.slottable=!1,this.themeColor="rgba(0, 0, 0, 0.65)"}set $canvas(t){Et.set(this,t)}get $canvas(){return Et.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["height","width","x","y"])}connectedCallback(){super.connectedCallback();const t=this.closest(this.$getTagNameOf(b));if(t){this.$canvas=t,this.style.position="absolute";const s=t.querySelector(this.$getTagNameOf(v));s&&(this.$onCanvasActionStart=t=>{s.hidden&&t.detail.action===y&&(this.hidden=!1)},this.$onCanvasActionEnd=t=>{s.hidden&&t.detail.action===y&&(this.hidden=!0)},this.$onCanvasChange=t=>{const{x:e,y:i,width:h,height:n}=t.detail;this.$change(e,i,h,n),(s.hidden||0===e&&0===i&&0===h&&0===n)&&(this.hidden=!0)},at(t,F,this.$onCanvasActionStart),at(t,U,this.$onCanvasActionEnd),at(t,H,this.$onCanvasChange))}this.$render()}disconnectedCallback(){const{$canvas:t}=this;t&&(this.$onCanvasActionStart&&(ot(t,F,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(ot(t,U,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasChange&&(ot(t,H,this.$onCanvasChange),this.$onCanvasChange=null)),super.disconnectedCallback()}$change(t,s,e=this.width,i=this.height){return V(t)&&V(s)&&V(e)&&V(i)&&(t!==this.x||s!==this.y||e!==this.width||i!==this.height)?(this.hidden&&(this.hidden=!1),this.x=t,this.y=s,this.width=e,this.height=i,this.$render()):this}$reset(){return this.$change(0,0,0,0)}$render(){return this.$setStyles({transform:`translate(${this.x}px, ${this.y}px)`,width:this.width,height:this.height,outlineWidth:l.innerWidth})}}Ot.$name=k,Ot.$version="2.0.0";class Tt extends zt{constructor(){super(...arguments),this.$onCanvasCropEnd=null,this.$onCanvasCropStart=null,this.$style=':host{background-color:var(--theme-color);display:block}:host([action=move]),:host([action=select]){height:100%;left:0;position:absolute;top:0;width:100%}:host([action=move]){cursor:move}:host([action=select]){cursor:crosshair}:host([action$=-resize]){background-color:transparent;height:15px;position:absolute;width:15px}:host([action$=-resize]):after{background-color:var(--theme-color);content:"";display:block;height:5px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:5px}:host([action=n-resize]),:host([action=s-resize]){cursor:ns-resize;left:50%;transform:translateX(-50%);width:100%}:host([action=n-resize]){top:-8px}:host([action=s-resize]){bottom:-8px}:host([action=e-resize]),:host([action=w-resize]){cursor:ew-resize;height:100%;top:50%;transform:translateY(-50%)}:host([action=e-resize]){right:-8px}:host([action=w-resize]){left:-8px}:host([action=ne-resize]){cursor:nesw-resize;right:-8px;top:-8px}:host([action=nw-resize]){cursor:nwse-resize;left:-8px;top:-8px}:host([action=se-resize]){bottom:-8px;cursor:nwse-resize;right:-8px}:host([action=se-resize]):after{height:15px;width:15px}@media (pointer:coarse){:host([action=se-resize]):after{height:10px;width:10px}}@media (pointer:fine){:host([action=se-resize]):after{height:5px;width:5px}}:host([action=sw-resize]){bottom:-8px;cursor:nesw-resize;left:-8px}:host([plain]){background-color:transparent}',this.action=j,this.plain=!1,this.slottable=!1,this.themeColor="rgba(51, 153, 255, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["action","plain"])}}Tt.$name=g,Tt.$version="2.0.0";const St=new WeakMap;class Yt extends zt{constructor(){super(...arguments),this.$onCanvasAction=null,this.$onCanvasActionStart=null,this.$onCanvasActionEnd=null,this.$onDocumentKeyDown=null,this.$action="",this.$actionStartTarget=null,this.$changing=!1,this.$style=':host{display:block;left:0;position:relative;right:0}:host([outlined]){outline:1px solid var(--theme-color)}:host([multiple]){outline:1px dashed hsla(0,0%,100%,.5)}:host([multiple]):after{bottom:0;content:"";cursor:pointer;display:block;left:0;position:absolute;right:0;top:0}:host([multiple][active]){outline-color:var(--theme-color);z-index:1}:host([multiple])>*{visibility:hidden}:host([multiple][active])>*{visibility:visible}:host([multiple][active]):after{display:none}',this.$initialSelection={x:0,y:0,width:0,height:0},this.x=0,this.y=0,this.width=0,this.height=0,this.aspectRatio=NaN,this.initialAspectRatio=NaN,this.initialCoverage=NaN,this.active=!1,this.linked=!1,this.dynamic=!1,this.movable=!1,this.resizable=!1,this.zoomable=!1,this.multiple=!1,this.keyboard=!1,this.outlined=!1,this.precise=!1}set $canvas(t){St.set(this,t)}get $canvas(){return St.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["active","aspect-ratio","dynamic","height","initial-aspect-ratio","initial-coverage","keyboard","linked","movable","multiple","outlined","precise","resizable","width","x","y","zoomable"])}$propertyChangedCallback(t,s,e){if(!Object.is(e,s))switch(super.$propertyChangedCallback(t,s,e),t){case"x":case"y":case"width":case"height":this.$changing||this.$nextTick((()=>{this.$change(this.x,this.y,this.width,this.height,this.aspectRatio,!0)}));break;case"aspectRatio":case"initialAspectRatio":this.$nextTick((()=>{this.$initSelection()}));break;case"initialCoverage":this.$nextTick((()=>{Z(e)&&e<=1&&this.$initSelection(!0,!0)}));break;case"keyboard":this.$nextTick((()=>{this.$canvas&&(e?this.$onDocumentKeyDown||(this.$onDocumentKeyDown=this.$handleKeyDown.bind(this),at(this.ownerDocument,P,this.$onDocumentKeyDown)):this.$onDocumentKeyDown&&(ot(this.ownerDocument,P,this.$onDocumentKeyDown),this.$onDocumentKeyDown=null))}));break;case"multiple":this.$nextTick((()=>{if(this.$canvas){const t=this.$getSelections();e?(t.forEach((t=>{t.active=!1})),this.active=!0,this.$emit(H,{x:this.x,y:this.y,width:this.width,height:this.height})):(this.active=!1,t.slice(1).forEach((t=>{this.$removeSelection(t)})))}}));break;case"precise":this.$nextTick((()=>{this.$change(this.x,this.y)}));break;case"linked":e&&(this.dynamic=!0)}}connectedCallback(){super.connectedCallback();const t=this.closest(this.$getTagNameOf(b));t?(this.$canvas=t,this.$setStyles({position:"absolute",transform:`translate(${this.x}px, ${this.y}px)`}),this.hidden||this.$render(),this.$initSelection(!0),this.$onCanvasActionStart=this.$handleActionStart.bind(this),this.$onCanvasActionEnd=this.$handleActionEnd.bind(this),this.$onCanvasAction=this.$handleAction.bind(this),at(t,F,this.$onCanvasActionStart),at(t,U,this.$onCanvasActionEnd),at(t,B,this.$onCanvasAction)):this.$render()}disconnectedCallback(){const{$canvas:t}=this;t&&(this.$onCanvasActionStart&&(ot(t,F,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(ot(t,U,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasAction&&(ot(t,B,this.$onCanvasAction),this.$onCanvasAction=null)),super.disconnectedCallback()}$getSelections(){let t=[];return this.parentElement&&(t=Array.from(this.parentElement.querySelectorAll(this.$getTagNameOf(v)))),t}$initSelection(t=!1,s=!1){const{initialCoverage:e,parentElement:i}=this;if(Z(e)&&i){const h=this.aspectRatio||this.initialAspectRatio;let n=(s?0:this.width)||i.offsetWidth*e,r=(s?0:this.height)||i.offsetHeight*e;Z(h)&&({width:n,height:r}=ft({aspectRatio:h,width:n,height:r})),this.$change(this.x,this.y,n,r),t&&this.$center(),this.$initialSelection={x:this.x,y:this.y,width:this.width,height:this.height}}}$createSelection(){const t=this.cloneNode(!0);return this.hasAttribute("id")&&t.removeAttribute("id"),t.initialCoverage=NaN,this.active=!1,this.parentElement&&this.parentElement.insertBefore(t,this.nextSibling),t}$removeSelection(t=this){if(this.parentElement){const s=this.$getSelections();if(s.length>1){const e=s.indexOf(t),i=s[e+1]||s[e-1];i&&(t.active=!1,this.parentElement.removeChild(t),i.active=!0,i.$emit(H,{x:i.x,y:i.y,width:i.width,height:i.height}))}else this.$clear()}}$handleActionStart(t){var s,e;const i=null===(e=null===(s=t.detail)||void 0===s?void 0:s.relatedEvent)||void 0===e?void 0:e.target;this.$action="",this.$actionStartTarget=i,!this.hidden&&this.multiple&&!this.active&&i===this&&this.parentElement&&(this.$getSelections().forEach((t=>{t.active=!1})),this.active=!0,this.$emit(H,{x:this.x,y:this.y,width:this.width,height:this.height}))}$handleAction(t){const{currentTarget:s,detail:e}=t;if(!s||!e)return;const{relatedEvent:i}=e;let{action:h}=e;if(!h&&this.multiple&&(h=this.$action||(null==i?void 0:i.target.action),this.$action=h),!h||this.hidden&&h!==y||this.multiple&&!this.active&&h!==z)return;const n=e.endX-e.startX,r=e.endY-e.startY,{width:o,height:a}=this;let{aspectRatio:c}=this;switch(!Z(c)&&i.shiftKey&&(c=Z(o)&&Z(a)?o/a:1),h){case y:if(0!==n&&0!==r){const{$canvas:t}=this,i=ut(s);(this.multiple&&!this.hidden?this.$createSelection():this).$change(e.startX-i.left,e.startY-i.top,Math.abs(n),Math.abs(r),c),n<0?r<0?h=Y:r>0&&(h=I):n>0&&(r<0?h=S:r>0&&(h=_)),t&&(t.$action=h)}break;case x:this.movable&&(this.dynamic||this.$actionStartTarget&&this.contains(this.$actionStartTarget))&&this.$move(n,r);break;case z:if(i&&this.zoomable&&(this.dynamic||this.contains(i.target))){const t=ut(s);this.$zoom(e.scale,i.pageX-t.left,i.pageY-t.top)}break;default:this.$resize(h,n,r,c)}}$handleActionEnd(){this.$action="",this.$actionStartTarget=null}$handleKeyDown(t){if(this.hidden||!this.keyboard||this.multiple&&!this.active||t.defaultPrevented)return;const{activeElement:s}=document;if(!s||!["INPUT","TEXTAREA"].includes(s.tagName)&&!["true","plaintext-only"].includes(s.contentEditable))switch(t.key){case"Backspace":t.metaKey&&(t.preventDefault(),this.$removeSelection());break;case"Delete":t.preventDefault(),this.$removeSelection();break;case"ArrowLeft":t.preventDefault(),this.$move(-1,0);break;case"ArrowRight":t.preventDefault(),this.$move(1,0);break;case"ArrowUp":t.preventDefault(),this.$move(0,-1);break;case"ArrowDown":t.preventDefault(),this.$move(0,1);break;case"+":t.preventDefault(),this.$zoom(.1);break;case"-":t.preventDefault(),this.$zoom(-.1)}}$center(){const{parentElement:t}=this;return t?this.$change((t.offsetWidth-this.width)/2,(t.offsetHeight-this.height)/2):this}$move(t,s=t){return this.$moveTo(this.x+t,this.y+s)}$moveTo(t,s=t){return this.movable?this.$change(t,s):this}$resize(t,s=0,e=0,i=this.aspectRatio){if(!this.resizable)return this;const h=Z(i),{$canvas:n}=this;let{x:r,y:o,width:a,height:c}=this;switch(t){case A:o+=e,c-=e,c<0&&(t=O,c=-c,o-=c),h&&(r+=(s=e*i)/2,a-=s,a<0&&(a=-a,r-=a));break;case E:a+=s,a<0&&(t=T,a=-a,r-=a),h&&(o-=(e=s/i)/2,c+=e,c<0&&(c=-c,o-=c));break;case O:c+=e,c<0&&(t=A,c=-c,o-=c),h&&(r-=(s=e*i)/2,a+=s,a<0&&(a=-a,r-=a));break;case T:r+=s,a-=s,a<0&&(t=E,a=-a,r-=a),h&&(o+=(e=s/i)/2,c-=e,c<0&&(c=-c,o-=c));break;case S:h&&(e=-s/i),o+=e,c-=e,a+=s,a<0&&c<0?(t=I,a=-a,c=-c,r-=a,o-=c):a<0?(t=Y,a=-a,r-=a):c<0&&(t=_,c=-c,o-=c);break;case Y:h&&(e=s/i),r+=s,o+=e,a-=s,c-=e,a<0&&c<0?(t=_,a=-a,c=-c,r-=a,o-=c):a<0?(t=S,a=-a,r-=a):c<0&&(t=I,c=-c,o-=c);break;case _:h&&(e=s/i),a+=s,c+=e,a<0&&c<0?(t=Y,a=-a,c=-c,r-=a,o-=c):a<0?(t=I,a=-a,r-=a):c<0&&(t=S,c=-c,o-=c);break;case I:h&&(e=-s/i),r+=s,a-=s,c+=e,a<0&&c<0?(t=S,a=-a,c=-c,r-=a,o-=c):a<0?(t=_,a=-a,r-=a):c<0&&(t=Y,c=-c,o-=c)}return n&&n.$setAction(t),this.$change(r,o,a,c)}$zoom(t,s,e){if(!this.zoomable||0===t)return this;t<0?t=1/(1-t):t+=1;const{width:i,height:h}=this,n=i*t,r=h*t;let o=this.x,a=this.y;return V(s)&&V(e)?(o-=(s-this.x)/i*(n-i),a-=(e-this.y)/h*(r-h)):(o-=(n-i)/2,a-=(r-h)/2),this.$change(o,a,n,r)}$change(t,s,e=this.width,i=this.height,h=this.aspectRatio,n=!1){return this.$changing||!V(t)||!V(s)||!V(e)||!V(i)||e<0||i<0?this:(Z(h)&&({width:e,height:i}=ft({aspectRatio:h,width:e,height:i},"cover")),this.precise||(t=Math.round(t),s=Math.round(s),e=Math.round(e),i=Math.round(i)),t===this.x&&s===this.y&&e===this.width&&i===this.height&&Object.is(h,this.aspectRatio)&&!n?this:(this.hidden&&(this.hidden=!1),!1===this.$emit(H,{x:t,y:s,width:e,height:i})?this:(this.$changing=!0,this.x=t,this.y=s,this.width=e,this.height=i,this.$changing=!1,this.$render())))}$reset(){const{x:t,y:s,width:e,height:i}=this.$initialSelection;return this.$change(t,s,e,i)}$clear(){return this.$change(0,0,0,0,NaN,!0),this.hidden=!0,this}$render(){return this.$setStyles({transform:`translate(${this.x}px, ${this.y}px)`,width:this.width,height:this.height})}$toCanvas(t){return new Promise(((s,e)=>{if(!this.isConnected)return void e(Error("The current element is not connected to the DOM."));const i=document.createElement("canvas");let{width:h,height:n}=this,r=1;if(Q(t)&&(Z(t.width)||Z(t.height))&&(({width:h,height:n}=ft({aspectRatio:h/n,width:t.width,height:t.height})),r=h/this.width),i.width=h,i.height=n,!this.$canvas)return void s(i);const o=this.$canvas.querySelector(this.$getTagNameOf(w));o?o.$ready().then((e=>{const a=i.getContext("2d");if(a){const[s,c,l,d,u,p]=o.$getTransform(),b=-this.x,m=-this.y,f=(b*d-l*m)/(s*d-l*c),g=(m*s-c*b)/(s*d-l*c);let w=s*f+l*g+u,v=c*f+d*g+p,k=e.naturalWidth,$=e.naturalHeight;1!==r&&(w*=r,v*=r,k*=r,$*=r);const y=k/2,x=$/2;a.fillStyle="transparent",a.fillRect(0,0,h,n),Q(t)&&tt(t.beforeDraw)&&t.beforeDraw.call(this,a,i),a.save(),a.translate(y,x),a.transform(s,c,l,d,w,v),a.translate(-y,-x),a.drawImage(e,0,0,k,$),a.restore()}s(i)})).catch(e):s(i)}))}}Yt.$name=v,Yt.$version="2.0.0";class _t extends zt{constructor(){super(...arguments),this.$style=":host{display:flex;flex-direction:column;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([bordered]){border:1px dashed var(--theme-color)}:host([covered]){bottom:0;left:0;position:absolute;right:0;top:0}:host>span{display:flex;flex:1}:host>span+span{border-top:1px dashed var(--theme-color)}:host>span>span{flex:1}:host>span>span+span{border-left:1px dashed var(--theme-color)}",this.bordered=!1,this.columns=3,this.covered=!1,this.rows=3,this.slottable=!1,this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["bordered","columns","covered","rows"])}$propertyChangedCallback(t,s,e){Object.is(e,s)||(super.$propertyChangedCallback(t,s,e),"rows"!==t&&"columns"!==t||this.$nextTick((()=>{this.$render()})))}connectedCallback(){super.connectedCallback(),this.$render()}$render(){const t=this.$getShadowRoot(),s=document.createDocumentFragment();for(let t=0;t<this.rows;t+=1){const t=document.createElement("span");t.setAttribute("role","row");for(let s=0;s<this.columns;s+=1){const s=document.createElement("span");s.setAttribute("role","gridcell"),t.appendChild(s)}s.appendChild(t)}t&&(t.innerHTML="",t.appendChild(s))}}_t.$name=f,_t.$version="2.0.0";class It extends zt{constructor(){super(...arguments),this.$style=':host{display:inline-block;height:1em;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1em}:host:after,:host:before{background-color:var(--theme-color);content:"";display:block;position:absolute}:host:before{height:1px;left:0;top:50%;transform:translateY(-50%);width:100%}:host:after{height:100%;left:50%;top:0;transform:translateX(-50%);width:1px}:host([centered]){left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}',this.centered=!1,this.slottable=!1,this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["centered"])}}It.$name=m,It.$version="2.0.0";const Nt=new WeakMap,Rt=new WeakMap,Xt=new WeakMap,Wt=new WeakMap,Pt="vertical";class Dt extends zt{constructor(){super(...arguments),this.$onSelectionChange=null,this.$onSourceImageLoad=null,this.$onSourceImageTransform=null,this.$scale=1,this.$style=":host{display:block;height:100%;overflow:hidden;position:relative;width:100%}",this.resize=Pt,this.selection="",this.slottable=!1}set $image(t){Rt.set(this,t)}get $image(){return Rt.get(this)}set $sourceImage(t){Wt.set(this,t)}get $sourceImage(){return Wt.get(this)}set $canvas(t){Nt.set(this,t)}get $canvas(){return Nt.get(this)}set $selection(t){Xt.set(this,t)}get $selection(){return Xt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["resize","selection"])}connectedCallback(){super.connectedCallback();let t=null;if(t=this.selection?this.ownerDocument.querySelector(this.selection):this.closest(this.$getTagNameOf(v)),st(t)){this.$selection=t,this.$onSelectionChange=this.$handleSelectionChange.bind(this),at(t,H,this.$onSelectionChange);const s=t.closest(this.$getTagNameOf(b));if(s){this.$canvas=s;const t=s.querySelector(this.$getTagNameOf(w));t&&(this.$sourceImage=t,this.$image=t.cloneNode(!0),this.$getShadowRoot().appendChild(this.$image),this.$onSourceImageLoad=this.$handleSourceImageLoad.bind(this),this.$onSourceImageTransform=this.$handleSourceImageTransform.bind(this),at(t.$image,D,this.$onSourceImageLoad),at(t,G,this.$onSourceImageTransform))}this.$render()}}disconnectedCallback(){const{$selection:t,$sourceImage:s}=this;t&&this.$onSelectionChange&&(ot(t,H,this.$onSelectionChange),this.$onSelectionChange=null),s&&this.$onSourceImageLoad&&(ot(s.$image,D,this.$onSourceImageLoad),this.$onSourceImageLoad=null),s&&this.$onSourceImageTransform&&(ot(s,G,this.$onSourceImageTransform),this.$onSourceImageTransform=null),super.disconnectedCallback()}$handleSelectionChange(t){this.$render(t.detail)}$handleSourceImageLoad(){const{$image:t,$sourceImage:s}=this,e=t.getAttribute("src"),i=s.getAttribute("src");i&&i!==e&&(t.setAttribute("src",i),t.$ready((()=>{setTimeout((()=>{this.$render()}),50)})))}$handleSourceImageTransform(t){this.$render(void 0,t.detail.matrix)}$render(t,s){const{$canvas:e,$selection:i}=this;t||i.hidden||(t=i),(!t||0===t.x&&0===t.y&&0===t.width&&0===t.height)&&(t={x:0,y:0,width:e.offsetWidth,height:e.offsetHeight});const{x:h,y:n,width:r,height:o}=t,a={},{clientWidth:c,clientHeight:l}=this;let d=c,u=l,p=NaN;switch(this.resize){case"both":p=1,d=r,u=o,a.width=r,a.height=o;break;case"horizontal":p=o>0?l/o:0,d=r*p,a.width=d;break;case Pt:p=r>0?c/r:0,u=o*p,a.height=u;break;default:c>0?p=r>0?c/r:0:l>0&&(p=o>0?l/o:0)}this.$scale=p,this.$setStyles(a),this.$sourceImage&&this.$transformImageByOffset(null!=s?s:this.$sourceImage.$getTransform(),-h,-n)}$transformImageByOffset(t,s,e){const{$image:i,$scale:h,$sourceImage:n}=this;if(n&&i&&h>=0){const[n,r,o,a,c,l]=t,d=(s*a-o*e)/(n*a-o*r),u=(e*n-r*s)/(n*a-o*r),p=n*d+o*u+c,b=r*d+a*u+l;i.$ready((t=>{this.$setStyles.call(i,{width:t.naturalWidth*h,height:t.naturalHeight*h})})),i.$setTransform(n,r,o,a,p*h,b*h)}}}Dt.$name=$,Dt.$version="2.0.0",
1
+ import{t,p as s,H as e,c as i,h}from"./p-CySg37XO.js";import{T as n}from"./p-Au2WuEGF.js";import{s as r}from"./p-BBiGYjKk.js";import{d as o}from"./p-CPr4Yiq8.js";import{d as a}from"./p-C-Fx-e2u.js";const c="undefined"!=typeof window&&void 0!==window.document,l=c?window:{},d=!!c&&"ontouchstart"in l.document.documentElement,u=!!c&&"PointerEvent"in l,p="cropper",b=p+"-canvas",m=p+"-crosshair",f=p+"-grid",g=p+"-handle",w=p+"-image",v=p+"-selection",k=p+"-shade",$=p+"-viewer",y="select",x="move",z="scale",M="rotate",C="transform",A="none",j="n-resize",E="e-resize",O="s-resize",T="w-resize",S="ne-resize",_="nw-resize",I="se-resize",N="sw-resize",R=u?"pointerdown":d?"touchstart":"mousedown",X=u?"pointermove":d?"touchmove":"mousemove",Y=u?"pointerup pointercancel":d?"touchend touchcancel":"mouseup",P="error",W="keydown",D="load",L="wheel",B="action",F="actionend",U="actionstart",G="change",H="transform",K=Number.isNaN||l.isNaN;function q(t){return"number"==typeof t&&!K(t)}function V(t){return q(t)&&t>0&&t<1/0}function Z(t){return"object"==typeof t&&null!==t}const{hasOwnProperty:J}=Object.prototype;function Q(t){if(!Z(t))return!1;try{const{constructor:s}=t,{prototype:e}=s;return s&&e&&J.call(e,"isPrototypeOf")}catch(t){return!1}}function tt(t){return"function"==typeof t}function st(t){return"object"==typeof t&&null!==t&&1===t.nodeType}const et=/([a-z\d])([A-Z])/g;function it(t){return(t+"").replace(et,"$1-$2").toLowerCase()}const ht=/-[A-z\d]/g;function nt(t){return t.replace(ht,(t=>t.slice(1).toUpperCase()))}const rt=/\s\s*/;function ot(t,s,e,i){s.trim().split(rt).forEach((s=>{t.removeEventListener(s,e,i)}))}function at(t,s,e,i){s.trim().split(rt).forEach((s=>{t.addEventListener(s,e,i)}))}function ct(t,s,e,i){at(t,s,e,Object.assign(Object.assign({},i),{once:!0}))}const lt={bubbles:!0,cancelable:!0,composed:!0},dt=Promise.resolve();function ut(t){const{documentElement:s}=t.ownerDocument,e=t.getBoundingClientRect();return{left:e.left+(l.pageXOffset-s.clientLeft),top:e.top+(l.pageYOffset-s.clientTop)}}const pt=/deg|g?rad|turn$/i;function bt(t){const s=parseFloat(t)||0;if(0!==s){const[e="rad"]=(t+"").match(pt)||[];switch(e.toLowerCase()){case"deg":return s/360*(2*Math.PI);case"grad":return s/400*(2*Math.PI);case"turn":return s*(2*Math.PI)}}return s}const mt="contain";function ft(t,s=mt){const{aspectRatio:e}=t;let{width:i,height:h}=t;const n=V(i),r=V(h);if(n&&r){const t=h*e;s===mt&&t>i||"cover"===s&&t<i?h=i/e:i=h*e}else n?h=i/e:r&&(i=h*e);return{width:i,height:h}}function gt(t,...s){if(0===s.length)return t;const[e,i,h,n,r,o]=t,[a,c,l,d,u,p]=s[0];return gt(t=[e*a+h*c,i*a+n*c,e*l+h*d,i*l+n*d,e*u+h*p+r,i*u+n*p+o],...s.slice(1))}const wt=/left|top|width|height/i,vt="open",kt=new WeakMap,$t=new WeakMap,yt=new Map,xt=l.document&&Array.isArray(l.document.adoptedStyleSheets)&&"replaceSync"in l.CSSStyleSheet.prototype;class zt extends HTMLElement{get $sharedStyle(){return(this.themeColor?`:host{--theme-color: ${this.themeColor};}`:"")+":host([hidden]){display:none!important}"}constructor(){var t,s;super(),this.shadowRootMode=vt,this.slottable=!0;const e=null===(s=null===(t=Object.getPrototypeOf(this))||void 0===t?void 0:t.constructor)||void 0===s?void 0:s.$name;e&&yt.set(e,this.tagName.toLowerCase())}static get observedAttributes(){return["shadow-root-mode","slottable","theme-color"]}attributeChangedCallback(t,s,e){if(Object.is(e,s))return;const i=nt(t);let h=e;switch(typeof this[i]){case"boolean":h=null!==e&&"false"!==e;break;case"number":h=Number(e)}switch(this[i]=h,t){case"theme-color":{const t=$t.get(this),s=this.$sharedStyle;t&&s&&(xt?t.replaceSync(s):t.textContent=s);break}}}$propertyChangedCallback(t,s,e){if(!Object.is(e,s))switch(t=it(t),typeof e){case"boolean":!0===e?this.hasAttribute(t)||this.setAttribute(t,""):this.removeAttribute(t);break;case"number":K(e)?e="":e+="";default:e?this.getAttribute(t)!==e&&this.setAttribute(t,e):this.removeAttribute(t)}}connectedCallback(){Object.getPrototypeOf(this).constructor.observedAttributes.forEach((t=>{const s=nt(t);let e=this[s];(function(t){return void 0===t})(e)||this.$propertyChangedCallback(s,void 0,e),Object.defineProperty(this,s,{enumerable:!0,configurable:!0,get:()=>e,set(t){const i=e;e=t,this.$propertyChangedCallback(s,i,t)}})}));const t=this.attachShadow({mode:this.shadowRootMode||vt});if(this.shadowRoot||kt.set(this,t),$t.set(this,this.$addStyles(this.$sharedStyle)),this.$style&&this.$addStyles(this.$style),this.$template){const s=document.createElement("template");s.innerHTML=this.$template,t.appendChild(s.content)}if(this.slottable){const s=document.createElement("slot");t.appendChild(s)}}disconnectedCallback(){$t.has(this)&&$t.delete(this),kt.has(this)&&kt.delete(this)}$getTagNameOf(t){var s;return null!==(s=yt.get(t))&&void 0!==s?s:t}$setStyles(t){return Object.keys(t).forEach((s=>{let e=t[s];q(e)&&(0!==e&&wt.test(s)?e+="px":e+=""),this.style[s]=e})),this}$getShadowRoot(){return this.shadowRoot||kt.get(this)}$addStyles(t){let s;const e=this.$getShadowRoot();return xt?(s=new CSSStyleSheet,s.replaceSync(t),e.adoptedStyleSheets=e.adoptedStyleSheets.concat(s)):(s=document.createElement("style"),s.textContent=t,e.appendChild(s)),s}$emit(t,s,e){return function(t,s,e,i){return t.dispatchEvent(new CustomEvent(s,Object.assign(Object.assign(Object.assign({},lt),{detail:e}),i)))}(this,t,s,e)}$nextTick(t){return function(t,s){return s?dt.then(t?s.bind(t):s):dt}(this,t)}static $define(t,s){Z(t)&&(s=t,t=""),t||(t=this.$name||this.name),t=it(t),c&&l.customElements&&!l.customElements.get(t)&&customElements.define(t,this,s)}}zt.$version="2.0.0";class Mt extends zt{constructor(){super(...arguments),this.$onPointerDown=null,this.$onPointerMove=null,this.$onPointerUp=null,this.$onWheel=null,this.$wheeling=!1,this.$pointers=new Map,this.$style=':host{display:block;min-height:100px;min-width:200px;overflow:hidden;position:relative;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([background]){background-color:#fff;background-image:repeating-linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),repeating-linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-image:repeating-conic-gradient(#ccc 0 25%,#fff 0 50%);background-position:0 0,.5rem .5rem;background-size:1rem 1rem}:host([disabled]){pointer-events:none}:host([disabled]):after{bottom:0;content:"";cursor:not-allowed;display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}',this.$action=A,this.background=!1,this.disabled=!1,this.scaleStep=.1,this.themeColor="#39f"}static get observedAttributes(){return super.observedAttributes.concat(["background","disabled","scale-step"])}connectedCallback(){super.connectedCallback(),this.disabled||this.$bind()}disconnectedCallback(){this.disabled||this.$unbind(),super.disconnectedCallback()}$propertyChangedCallback(t,s,e){Object.is(e,s)||(super.$propertyChangedCallback(t,s,e),"disabled"!==t)||(e?this.$unbind():this.$bind())}$bind(){this.$onPointerDown||(this.$onPointerDown=this.$handlePointerDown.bind(this),at(this,R,this.$onPointerDown)),this.$onPointerMove||(this.$onPointerMove=this.$handlePointerMove.bind(this),at(this.ownerDocument,X,this.$onPointerMove)),this.$onPointerUp||(this.$onPointerUp=this.$handlePointerUp.bind(this),at(this.ownerDocument,Y,this.$onPointerUp)),this.$onWheel||(this.$onWheel=this.$handleWheel.bind(this),at(this,L,this.$onWheel,{passive:!1,capture:!0}))}$unbind(){this.$onPointerDown&&(ot(this,R,this.$onPointerDown),this.$onPointerDown=null),this.$onPointerMove&&(ot(this.ownerDocument,X,this.$onPointerMove),this.$onPointerMove=null),this.$onPointerUp&&(ot(this.ownerDocument,Y,this.$onPointerUp),this.$onPointerUp=null),this.$onWheel&&(ot(this,L,this.$onWheel,{capture:!0}),this.$onWheel=null)}$handlePointerDown(t){const{buttons:s,button:e,type:i}=t;if(this.disabled||("pointerdown"===i&&"mouse"===t.pointerType||"mousedown"===i)&&(q(s)&&1!==s||q(e)&&0!==e||t.ctrlKey))return;const{$pointers:h}=this;let n="";if(t.changedTouches)Array.from(t.changedTouches).forEach((({identifier:t,pageX:s,pageY:e})=>{h.set(t,{startX:s,startY:e,endX:s,endY:e})}));else{const{pointerId:s=0,pageX:e,pageY:i}=t;h.set(s,{startX:e,startY:i,endX:e,endY:i})}h.size>1?n=C:st(t.target)&&(n=t.target.action||t.target.getAttribute("action")||""),!1!==this.$emit(U,{action:n,relatedEvent:t})&&(t.preventDefault(),this.$action=n,this.style.willChange="transform")}$handlePointerMove(t){const{$action:s,$pointers:e}=this;if(this.disabled||s===A||0===e.size)return;if(!1===this.$emit("actionmove",{action:s,relatedEvent:t}))return;if(t.preventDefault(),t.changedTouches)Array.from(t.changedTouches).forEach((({identifier:t,pageX:s,pageY:i})=>{const h=e.get(t);h&&Object.assign(h,{endX:s,endY:i})}));else{const{pointerId:s=0,pageX:i,pageY:h}=t,n=e.get(s);n&&Object.assign(n,{endX:i,endY:h})}const i={action:s,relatedEvent:t};if(s===C){const s=new Map(e);let h=0,n=0,r=0,o=0,a=t.pageX,c=t.pageY;e.forEach(((t,e)=>{s.delete(e),s.forEach((s=>{let e=s.startX-t.startX,i=s.startY-t.startY,l=s.endX-t.endX,d=s.endY-t.endY,u=0,p=0,b=0,m=0;if(0===e?i<0?b=2*Math.PI:i>0&&(b=Math.PI):e>0?b=Math.PI/2+Math.atan(i/e):e<0&&(b=1.5*Math.PI+Math.atan(i/e)),0===l?d<0?m=2*Math.PI:d>0&&(m=Math.PI):l>0?m=Math.PI/2+Math.atan(d/l):l<0&&(m=1.5*Math.PI+Math.atan(d/l)),m>0||b>0){const e=m-b,i=Math.abs(e);i>h&&(h=i,r=e,a=(t.startX+s.startX)/2,c=(t.startY+s.startY)/2)}if(e=Math.abs(e),i=Math.abs(i),l=Math.abs(l),d=Math.abs(d),e>0&&i>0?u=Math.sqrt(e*e+i*i):e>0?u=e:i>0&&(u=i),l>0&&d>0?p=Math.sqrt(l*l+d*d):l>0?p=l:d>0&&(p=d),u>0&&p>0){const e=(p-u)/u,i=Math.abs(e);i>n&&(n=i,o=e,a=(t.startX+s.startX)/2,c=(t.startY+s.startY)/2)}}))}));const l=h>0,d=n>0;l&&d?(i.rotate=r,i.scale=o,i.centerX=a,i.centerY=c):l?(i.action=M,i.rotate=r,i.centerX=a,i.centerY=c):d?(i.action=z,i.scale=o,i.centerX=a,i.centerY=c):i.action=A}else{const[t]=Array.from(e.values());Object.assign(i,t)}e.forEach((t=>{t.startX=t.endX,t.startY=t.endY})),i.action!==A&&this.$emit(B,i,{cancelable:!1})}$handlePointerUp(t){const{$action:s,$pointers:e}=this;if(!this.disabled&&s!==A&&!1!==this.$emit(F,{action:s,relatedEvent:t})){if(t.preventDefault(),t.changedTouches)Array.from(t.changedTouches).forEach((({identifier:t})=>{e.delete(t)}));else{const{pointerId:s=0}=t;e.delete(s)}0===e.size&&(this.style.willChange="",this.$action=A)}}$handleWheel(t){this.disabled||(t.preventDefault(),this.$wheeling||(this.$wheeling=!0,setTimeout((()=>{this.$wheeling=!1}),50),this.$emit(B,{action:z,scale:(t.deltaY>0?-1:1)*this.scaleStep,relatedEvent:t},{cancelable:!1})))}$setAction(t){return function(t){return"string"==typeof t}(t)&&(this.$action=t),this}$toCanvas(t){return new Promise(((s,e)=>{if(!this.isConnected)return void e(Error("The current element is not connected to the DOM."));const i=document.createElement("canvas");let h=this.offsetWidth,n=this.offsetHeight,r=1;Q(t)&&(V(t.width)||V(t.height))&&(({width:h,height:n}=ft({aspectRatio:h/n,width:t.width,height:t.height})),r=h/this.offsetWidth),i.width=h,i.height=n;const o=this.querySelector(this.$getTagNameOf(w));o?o.$ready().then((e=>{const a=i.getContext("2d");if(a){const[s,c,l,d,u,p]=o.$getTransform();let b=u,m=p,f=e.naturalWidth,g=e.naturalHeight;1!==r&&(b*=r,m*=r,f*=r,g*=r);const w=f/2,v=g/2;a.fillStyle="transparent",a.fillRect(0,0,h,n),Q(t)&&tt(t.beforeDraw)&&t.beforeDraw.call(this,a,i),a.save(),a.translate(w,v),a.transform(s,c,l,d,b,m),a.translate(-w,-v),a.drawImage(e,0,0,f,g),a.restore()}s(i)})).catch(e):s(i)}))}}Mt.$name=b,Mt.$version="2.0.0";const Ct=new WeakMap,At=["alt","crossorigin","decoding","importance","loading","referrerpolicy","sizes","src","srcset"];class jt extends zt{constructor(){super(...arguments),this.$matrix=[1,0,0,1,0,0],this.$onLoad=null,this.$onCanvasAction=null,this.$onCanvasActionEnd=null,this.$onCanvasActionStart=null,this.$actionStartTarget=null,this.$style=":host{display:inline-block}img{display:block;height:100%;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}",this.$image=new Image,this.initialCenterSize="contain",this.rotatable=!1,this.scalable=!1,this.skewable=!1,this.slottable=!1,this.translatable=!1}set $canvas(t){Ct.set(this,t)}get $canvas(){return Ct.get(this)}static get observedAttributes(){return super.observedAttributes.concat(At,["initial-center-size","rotatable","scalable","skewable","translatable"])}attributeChangedCallback(t,s,e){Object.is(e,s)||(super.attributeChangedCallback(t,s,e),At.includes(t)&&this.$image.setAttribute(t,e))}$propertyChangedCallback(t,s,e){Object.is(e,s)||(super.$propertyChangedCallback(t,s,e),"initialCenterSize"!==t)||this.$nextTick((()=>{this.$center(e)}))}connectedCallback(){super.connectedCallback();const{$image:t}=this,s=this.closest(this.$getTagNameOf(b));s&&(this.$canvas=s,this.$setStyles({display:"block",position:"absolute"}),this.$onCanvasActionStart=t=>{var s,e;this.$actionStartTarget=null===(e=null===(s=t.detail)||void 0===s?void 0:s.relatedEvent)||void 0===e?void 0:e.target},this.$onCanvasActionEnd=()=>{this.$actionStartTarget=null},this.$onCanvasAction=this.$handleAction.bind(this),at(s,U,this.$onCanvasActionStart),at(s,F,this.$onCanvasActionEnd),at(s,B,this.$onCanvasAction)),this.$onLoad=this.$handleLoad.bind(this),at(t,D,this.$onLoad),this.$getShadowRoot().appendChild(t)}disconnectedCallback(){const{$image:t,$canvas:s}=this;s&&(this.$onCanvasActionStart&&(ot(s,U,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(ot(s,F,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasAction&&(ot(s,B,this.$onCanvasAction),this.$onCanvasAction=null)),t&&this.$onLoad&&(ot(t,D,this.$onLoad),this.$onLoad=null),this.$getShadowRoot().removeChild(t),super.disconnectedCallback()}$handleLoad(){const{$image:t}=this;this.$setStyles({width:t.naturalWidth,height:t.naturalHeight}),this.$canvas&&this.$center(this.initialCenterSize)}$handleAction(t){if(this.hidden||!(this.rotatable||this.scalable||this.translatable))return;const{$canvas:s}=this,{detail:e}=t;if(e){const{relatedEvent:t}=e;let{action:i}=e;switch(i!==C||this.rotatable&&this.scalable||(i=this.rotatable?M:this.scalable?z:A),i){case x:if(this.translatable){let i=null;t&&(i=t.target.closest(this.$getTagNameOf(v))),i||(i=s.querySelector(this.$getTagNameOf(v))),i&&i.multiple&&!i.active&&(i=s.querySelector(this.$getTagNameOf(v)+"[active]")),i&&!i.hidden&&i.movable&&!i.dynamic&&this.$actionStartTarget&&i.contains(this.$actionStartTarget)||this.$move(e.endX-e.startX,e.endY-e.startY)}break;case M:if(this.rotatable)if(t){const{x:s,y:i}=this.getBoundingClientRect();this.$rotate(e.rotate,t.clientX-s,t.clientY-i)}else this.$rotate(e.rotate);break;case z:if(this.scalable)if(t){const s=t.target.closest(this.$getTagNameOf(v));if(!s||!s.zoomable||s.zoomable&&s.dynamic){const{x:s,y:i}=this.getBoundingClientRect();this.$zoom(e.scale,t.clientX-s,t.clientY-i)}}else this.$zoom(e.scale);break;case C:if(this.rotatable&&this.scalable){const{rotate:s}=e;let{scale:i}=e;i<0?i=1/(1-i):i+=1;const h=Math.cos(s),n=Math.sin(s),[r,o,a,c]=[h*i,n*i,-n*i,h*i];if(t){const s=this.getBoundingClientRect(),e=t.clientX-s.x,i=t.clientY-s.y,[h,n,l,d]=this.$matrix,u=e-s.width/2,p=i-s.height/2,b=(u*d-l*p)/(h*d-l*n),m=(p*h-n*u)/(h*d-l*n);this.$transform(r,o,a,c,b*(1-r)+m*a,m*(1-c)+b*o)}else this.$transform(r,o,a,c,0,0)}}}}$ready(t){const{$image:s}=this,e=new Promise(((t,e)=>{const i=Error("Failed to load the image source");if(s.complete)s.naturalWidth>0&&s.naturalHeight>0?t(s):e(i);else{const h=()=>{ot(s,P,n),t(s)},n=()=>{ot(s,D,h),e(i)};ct(s,D,h),ct(s,P,n)}}));return tt(t)&&e.then((s=>(t(s),s))),e}$center(t){const{parentElement:s}=this;if(!s)return this;const e=s.getBoundingClientRect(),i=e.width,h=e.height,{x:n,y:r,width:o,height:a}=this.getBoundingClientRect();if(this.$move(e.x+i/2-(n+o/2),e.y+h/2-(r+a/2)),t&&(o!==i||a!==h)){const s=i/o,e=h/a;switch(t){case"cover":this.$scale(Math.max(s,e));break;case"contain":this.$scale(Math.min(s,e))}}return this}$move(t,s=t){if(this.translatable&&q(t)&&q(s)){const[e,i,h,n]=this.$matrix;this.$translate((t*n-h*s)/(e*n-h*i),(s*e-i*t)/(e*n-h*i))}return this}$moveTo(t,s=t){if(this.translatable&&q(t)&&q(s)){const[e,i,h,n]=this.$matrix;this.$setTransform(e,i,h,n,(t*n-h*s)/(e*n-h*i),(s*e-i*t)/(e*n-h*i))}return this}$rotate(t,s,e){if(this.rotatable){const i=bt(t),h=Math.cos(i),n=Math.sin(i),[r,o,a,c]=[h,n,-n,h];if(q(s)&&q(e)){const[t,i,h,n]=this.$matrix,{width:l,height:d}=this.getBoundingClientRect(),u=s-l/2,p=e-d/2,b=(u*n-h*p)/(t*n-h*i),m=(p*t-i*u)/(t*n-h*i);this.$transform(r,o,a,c,b*(1-r)-m*a,m*(1-c)-b*o)}else this.$transform(r,o,a,c,0,0)}return this}$zoom(t,s,e){if(!this.scalable||0===t)return this;if(t<0?t=1/(1-t):t+=1,q(s)&&q(e)){const[i,h,n,r]=this.$matrix,{width:o,height:a}=this.getBoundingClientRect(),c=s-o/2,l=e-a/2;this.$transform(t,0,0,t,(c*r-n*l)/(i*r-n*h)*(1-t),(l*i-h*c)/(i*r-n*h)*(1-t))}else this.$scale(t);return this}$scale(t,s=t){return this.scalable&&this.$transform(t,0,0,s,0,0),this}$skew(t,s=0){if(this.skewable){const e=bt(t),i=bt(s);this.$transform(1,Math.tan(i),Math.tan(e),1,0,0)}return this}$translate(t,s=t){return this.translatable&&q(t)&&q(s)&&this.$transform(1,0,0,1,t,s),this}$transform(t,s,e,i,h,n){return q(t)&&q(s)&&q(e)&&q(i)&&q(h)&&q(n)?this.$setTransform(gt(this.$matrix,[t,s,e,i,h,n])):this}$setTransform(t,s,e,i,h,n){if((this.rotatable||this.scalable||this.skewable||this.translatable)&&(Array.isArray(t)&&([t,s,e,i,h,n]=t),q(t)&&q(s)&&q(e)&&q(i)&&q(h)&&q(n))){const r=[...this.$matrix],o=[t,s,e,i,h,n];if(!1===this.$emit(H,{matrix:o,oldMatrix:r}))return this;this.$matrix=o,this.style.transform=`matrix(${o.join(", ")})`}return this}$getTransform(){return this.$matrix.slice()}$resetTransform(){return this.$setTransform([1,0,0,1,0,0])}}jt.$name=w,jt.$version="2.0.0";const Et=new WeakMap;class Ot extends zt{constructor(){super(...arguments),this.$onCanvasChange=null,this.$onCanvasActionEnd=null,this.$onCanvasActionStart=null,this.$style=":host{display:block;height:0;left:0;outline:var(--theme-color) solid 1px;position:relative;top:0;width:0}:host([transparent]){outline-color:transparent}",this.x=0,this.y=0,this.width=0,this.height=0,this.slottable=!1,this.themeColor="rgba(0, 0, 0, 0.65)"}set $canvas(t){Et.set(this,t)}get $canvas(){return Et.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["height","width","x","y"])}connectedCallback(){super.connectedCallback();const t=this.closest(this.$getTagNameOf(b));if(t){this.$canvas=t,this.style.position="absolute";const s=t.querySelector(this.$getTagNameOf(v));s&&(this.$onCanvasActionStart=t=>{s.hidden&&t.detail.action===y&&(this.hidden=!1)},this.$onCanvasActionEnd=t=>{s.hidden&&t.detail.action===y&&(this.hidden=!0)},this.$onCanvasChange=t=>{const{x:e,y:i,width:h,height:n}=t.detail;this.$change(e,i,h,n),(s.hidden||0===e&&0===i&&0===h&&0===n)&&(this.hidden=!0)},at(t,U,this.$onCanvasActionStart),at(t,F,this.$onCanvasActionEnd),at(t,G,this.$onCanvasChange))}this.$render()}disconnectedCallback(){const{$canvas:t}=this;t&&(this.$onCanvasActionStart&&(ot(t,U,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(ot(t,F,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasChange&&(ot(t,G,this.$onCanvasChange),this.$onCanvasChange=null)),super.disconnectedCallback()}$change(t,s,e=this.width,i=this.height){return q(t)&&q(s)&&q(e)&&q(i)&&(t!==this.x||s!==this.y||e!==this.width||i!==this.height)?(this.hidden&&(this.hidden=!1),this.x=t,this.y=s,this.width=e,this.height=i,this.$render()):this}$reset(){return this.$change(0,0,0,0)}$render(){return this.$setStyles({transform:`translate(${this.x}px, ${this.y}px)`,width:this.width,height:this.height,outlineWidth:l.innerWidth})}}Ot.$name=k,Ot.$version="2.0.0";class Tt extends zt{constructor(){super(...arguments),this.$onCanvasCropEnd=null,this.$onCanvasCropStart=null,this.$style=':host{background-color:var(--theme-color);display:block}:host([action=move]),:host([action=select]){height:100%;left:0;position:absolute;top:0;width:100%}:host([action=move]){cursor:move}:host([action=select]){cursor:crosshair}:host([action$=-resize]){background-color:transparent;height:15px;position:absolute;width:15px}:host([action$=-resize]):after{background-color:var(--theme-color);content:"";display:block;height:5px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:5px}:host([action=n-resize]),:host([action=s-resize]){cursor:ns-resize;left:50%;transform:translateX(-50%);width:100%}:host([action=n-resize]){top:-8px}:host([action=s-resize]){bottom:-8px}:host([action=e-resize]),:host([action=w-resize]){cursor:ew-resize;height:100%;top:50%;transform:translateY(-50%)}:host([action=e-resize]){right:-8px}:host([action=w-resize]){left:-8px}:host([action=ne-resize]){cursor:nesw-resize;right:-8px;top:-8px}:host([action=nw-resize]){cursor:nwse-resize;left:-8px;top:-8px}:host([action=se-resize]){bottom:-8px;cursor:nwse-resize;right:-8px}:host([action=se-resize]):after{height:15px;width:15px}@media (pointer:coarse){:host([action=se-resize]):after{height:10px;width:10px}}@media (pointer:fine){:host([action=se-resize]):after{height:5px;width:5px}}:host([action=sw-resize]){bottom:-8px;cursor:nesw-resize;left:-8px}:host([plain]){background-color:transparent}',this.action=A,this.plain=!1,this.slottable=!1,this.themeColor="rgba(51, 153, 255, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["action","plain"])}}Tt.$name=g,Tt.$version="2.0.0";const St=new WeakMap;class _t extends zt{constructor(){super(...arguments),this.$onCanvasAction=null,this.$onCanvasActionStart=null,this.$onCanvasActionEnd=null,this.$onDocumentKeyDown=null,this.$action="",this.$actionStartTarget=null,this.$changing=!1,this.$style=':host{display:block;left:0;position:relative;right:0}:host([outlined]){outline:1px solid var(--theme-color)}:host([multiple]){outline:1px dashed hsla(0,0%,100%,.5)}:host([multiple]):after{bottom:0;content:"";cursor:pointer;display:block;left:0;position:absolute;right:0;top:0}:host([multiple][active]){outline-color:var(--theme-color);z-index:1}:host([multiple])>*{visibility:hidden}:host([multiple][active])>*{visibility:visible}:host([multiple][active]):after{display:none}',this.$initialSelection={x:0,y:0,width:0,height:0},this.x=0,this.y=0,this.width=0,this.height=0,this.aspectRatio=NaN,this.initialAspectRatio=NaN,this.initialCoverage=NaN,this.active=!1,this.linked=!1,this.dynamic=!1,this.movable=!1,this.resizable=!1,this.zoomable=!1,this.multiple=!1,this.keyboard=!1,this.outlined=!1,this.precise=!1}set $canvas(t){St.set(this,t)}get $canvas(){return St.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["active","aspect-ratio","dynamic","height","initial-aspect-ratio","initial-coverage","keyboard","linked","movable","multiple","outlined","precise","resizable","width","x","y","zoomable"])}$propertyChangedCallback(t,s,e){if(!Object.is(e,s))switch(super.$propertyChangedCallback(t,s,e),t){case"x":case"y":case"width":case"height":this.$changing||this.$nextTick((()=>{this.$change(this.x,this.y,this.width,this.height,this.aspectRatio,!0)}));break;case"aspectRatio":case"initialAspectRatio":this.$nextTick((()=>{this.$initSelection()}));break;case"initialCoverage":this.$nextTick((()=>{V(e)&&e<=1&&this.$initSelection(!0,!0)}));break;case"keyboard":this.$nextTick((()=>{this.$canvas&&(e?this.$onDocumentKeyDown||(this.$onDocumentKeyDown=this.$handleKeyDown.bind(this),at(this.ownerDocument,W,this.$onDocumentKeyDown)):this.$onDocumentKeyDown&&(ot(this.ownerDocument,W,this.$onDocumentKeyDown),this.$onDocumentKeyDown=null))}));break;case"multiple":this.$nextTick((()=>{if(this.$canvas){const t=this.$getSelections();e?(t.forEach((t=>{t.active=!1})),this.active=!0,this.$emit(G,{x:this.x,y:this.y,width:this.width,height:this.height})):(this.active=!1,t.slice(1).forEach((t=>{this.$removeSelection(t)})))}}));break;case"precise":this.$nextTick((()=>{this.$change(this.x,this.y)}));break;case"linked":e&&(this.dynamic=!0)}}connectedCallback(){super.connectedCallback();const t=this.closest(this.$getTagNameOf(b));t?(this.$canvas=t,this.$setStyles({position:"absolute",transform:`translate(${this.x}px, ${this.y}px)`}),this.hidden||this.$render(),this.$initSelection(!0),this.$onCanvasActionStart=this.$handleActionStart.bind(this),this.$onCanvasActionEnd=this.$handleActionEnd.bind(this),this.$onCanvasAction=this.$handleAction.bind(this),at(t,U,this.$onCanvasActionStart),at(t,F,this.$onCanvasActionEnd),at(t,B,this.$onCanvasAction)):this.$render()}disconnectedCallback(){const{$canvas:t}=this;t&&(this.$onCanvasActionStart&&(ot(t,U,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(ot(t,F,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasAction&&(ot(t,B,this.$onCanvasAction),this.$onCanvasAction=null)),super.disconnectedCallback()}$getSelections(){let t=[];return this.parentElement&&(t=Array.from(this.parentElement.querySelectorAll(this.$getTagNameOf(v)))),t}$initSelection(t=!1,s=!1){const{initialCoverage:e,parentElement:i}=this;if(V(e)&&i){const h=this.aspectRatio||this.initialAspectRatio;let n=(s?0:this.width)||i.offsetWidth*e,r=(s?0:this.height)||i.offsetHeight*e;V(h)&&({width:n,height:r}=ft({aspectRatio:h,width:n,height:r})),this.$change(this.x,this.y,n,r),t&&this.$center(),this.$initialSelection={x:this.x,y:this.y,width:this.width,height:this.height}}}$createSelection(){const t=this.cloneNode(!0);return this.hasAttribute("id")&&t.removeAttribute("id"),t.initialCoverage=NaN,this.active=!1,this.parentElement&&this.parentElement.insertBefore(t,this.nextSibling),t}$removeSelection(t=this){if(this.parentElement){const s=this.$getSelections();if(s.length>1){const e=s.indexOf(t),i=s[e+1]||s[e-1];i&&(t.active=!1,this.parentElement.removeChild(t),i.active=!0,i.$emit(G,{x:i.x,y:i.y,width:i.width,height:i.height}))}else this.$clear()}}$handleActionStart(t){var s,e;const i=null===(e=null===(s=t.detail)||void 0===s?void 0:s.relatedEvent)||void 0===e?void 0:e.target;this.$action="",this.$actionStartTarget=i,!this.hidden&&this.multiple&&!this.active&&i===this&&this.parentElement&&(this.$getSelections().forEach((t=>{t.active=!1})),this.active=!0,this.$emit(G,{x:this.x,y:this.y,width:this.width,height:this.height}))}$handleAction(t){const{currentTarget:s,detail:e}=t;if(!s||!e)return;const{relatedEvent:i}=e;let{action:h}=e;if(!h&&this.multiple&&(h=this.$action||(null==i?void 0:i.target.action),this.$action=h),!h||this.hidden&&h!==y||this.multiple&&!this.active&&h!==z)return;const n=e.endX-e.startX,r=e.endY-e.startY,{width:o,height:a}=this;let{aspectRatio:c}=this;switch(!V(c)&&i.shiftKey&&(c=V(o)&&V(a)?o/a:1),h){case y:if(0!==n&&0!==r){const{$canvas:t}=this,i=ut(s);(this.multiple&&!this.hidden?this.$createSelection():this).$change(e.startX-i.left,e.startY-i.top,Math.abs(n),Math.abs(r),c),n<0?r<0?h=_:r>0&&(h=N):n>0&&(r<0?h=S:r>0&&(h=I)),t&&(t.$action=h)}break;case x:this.movable&&(this.dynamic||this.$actionStartTarget&&this.contains(this.$actionStartTarget))&&this.$move(n,r);break;case z:if(i&&this.zoomable&&(this.dynamic||this.contains(i.target))){const t=ut(s);this.$zoom(e.scale,i.pageX-t.left,i.pageY-t.top)}break;default:this.$resize(h,n,r,c)}}$handleActionEnd(){this.$action="",this.$actionStartTarget=null}$handleKeyDown(t){if(this.hidden||!this.keyboard||this.multiple&&!this.active||t.defaultPrevented)return;const{activeElement:s}=document;if(!s||!["INPUT","TEXTAREA"].includes(s.tagName)&&!["true","plaintext-only"].includes(s.contentEditable))switch(t.key){case"Backspace":t.metaKey&&(t.preventDefault(),this.$removeSelection());break;case"Delete":t.preventDefault(),this.$removeSelection();break;case"ArrowLeft":t.preventDefault(),this.$move(-1,0);break;case"ArrowRight":t.preventDefault(),this.$move(1,0);break;case"ArrowUp":t.preventDefault(),this.$move(0,-1);break;case"ArrowDown":t.preventDefault(),this.$move(0,1);break;case"+":t.preventDefault(),this.$zoom(.1);break;case"-":t.preventDefault(),this.$zoom(-.1)}}$center(){const{parentElement:t}=this;return t?this.$change((t.offsetWidth-this.width)/2,(t.offsetHeight-this.height)/2):this}$move(t,s=t){return this.$moveTo(this.x+t,this.y+s)}$moveTo(t,s=t){return this.movable?this.$change(t,s):this}$resize(t,s=0,e=0,i=this.aspectRatio){if(!this.resizable)return this;const h=V(i),{$canvas:n}=this;let{x:r,y:o,width:a,height:c}=this;switch(t){case j:o+=e,c-=e,c<0&&(t=O,c=-c,o-=c),h&&(r+=(s=e*i)/2,a-=s,a<0&&(a=-a,r-=a));break;case E:a+=s,a<0&&(t=T,a=-a,r-=a),h&&(o-=(e=s/i)/2,c+=e,c<0&&(c=-c,o-=c));break;case O:c+=e,c<0&&(t=j,c=-c,o-=c),h&&(r-=(s=e*i)/2,a+=s,a<0&&(a=-a,r-=a));break;case T:r+=s,a-=s,a<0&&(t=E,a=-a,r-=a),h&&(o+=(e=s/i)/2,c-=e,c<0&&(c=-c,o-=c));break;case S:h&&(e=-s/i),o+=e,c-=e,a+=s,a<0&&c<0?(t=N,a=-a,c=-c,r-=a,o-=c):a<0?(t=_,a=-a,r-=a):c<0&&(t=I,c=-c,o-=c);break;case _:h&&(e=s/i),r+=s,o+=e,a-=s,c-=e,a<0&&c<0?(t=I,a=-a,c=-c,r-=a,o-=c):a<0?(t=S,a=-a,r-=a):c<0&&(t=N,c=-c,o-=c);break;case I:h&&(e=s/i),a+=s,c+=e,a<0&&c<0?(t=_,a=-a,c=-c,r-=a,o-=c):a<0?(t=N,a=-a,r-=a):c<0&&(t=S,c=-c,o-=c);break;case N:h&&(e=-s/i),r+=s,a-=s,c+=e,a<0&&c<0?(t=S,a=-a,c=-c,r-=a,o-=c):a<0?(t=I,a=-a,r-=a):c<0&&(t=_,c=-c,o-=c)}return n&&n.$setAction(t),this.$change(r,o,a,c)}$zoom(t,s,e){if(!this.zoomable||0===t)return this;t<0?t=1/(1-t):t+=1;const{width:i,height:h}=this,n=i*t,r=h*t;let o=this.x,a=this.y;return q(s)&&q(e)?(o-=(s-this.x)/i*(n-i),a-=(e-this.y)/h*(r-h)):(o-=(n-i)/2,a-=(r-h)/2),this.$change(o,a,n,r)}$change(t,s,e=this.width,i=this.height,h=this.aspectRatio,n=!1){return this.$changing||!q(t)||!q(s)||!q(e)||!q(i)||e<0||i<0?this:(V(h)&&({width:e,height:i}=ft({aspectRatio:h,width:e,height:i},"cover")),this.precise||(t=Math.round(t),s=Math.round(s),e=Math.round(e),i=Math.round(i)),t===this.x&&s===this.y&&e===this.width&&i===this.height&&Object.is(h,this.aspectRatio)&&!n?this:(this.hidden&&(this.hidden=!1),!1===this.$emit(G,{x:t,y:s,width:e,height:i})?this:(this.$changing=!0,this.x=t,this.y=s,this.width=e,this.height=i,this.$changing=!1,this.$render())))}$reset(){const{x:t,y:s,width:e,height:i}=this.$initialSelection;return this.$change(t,s,e,i)}$clear(){return this.$change(0,0,0,0,NaN,!0),this.hidden=!0,this}$render(){return this.$setStyles({transform:`translate(${this.x}px, ${this.y}px)`,width:this.width,height:this.height})}$toCanvas(t){return new Promise(((s,e)=>{if(!this.isConnected)return void e(Error("The current element is not connected to the DOM."));const i=document.createElement("canvas");let{width:h,height:n}=this,r=1;if(Q(t)&&(V(t.width)||V(t.height))&&(({width:h,height:n}=ft({aspectRatio:h/n,width:t.width,height:t.height})),r=h/this.width),i.width=h,i.height=n,!this.$canvas)return void s(i);const o=this.$canvas.querySelector(this.$getTagNameOf(w));o?o.$ready().then((e=>{const a=i.getContext("2d");if(a){const[s,c,l,d,u,p]=o.$getTransform(),b=-this.x,m=-this.y,f=(b*d-l*m)/(s*d-l*c),g=(m*s-c*b)/(s*d-l*c);let w=s*f+l*g+u,v=c*f+d*g+p,k=e.naturalWidth,$=e.naturalHeight;1!==r&&(w*=r,v*=r,k*=r,$*=r);const y=k/2,x=$/2;a.fillStyle="transparent",a.fillRect(0,0,h,n),Q(t)&&tt(t.beforeDraw)&&t.beforeDraw.call(this,a,i),a.save(),a.translate(y,x),a.transform(s,c,l,d,w,v),a.translate(-y,-x),a.drawImage(e,0,0,k,$),a.restore()}s(i)})).catch(e):s(i)}))}}_t.$name=v,_t.$version="2.0.0";class It extends zt{constructor(){super(...arguments),this.$style=":host{display:flex;flex-direction:column;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([bordered]){border:1px dashed var(--theme-color)}:host([covered]){bottom:0;left:0;position:absolute;right:0;top:0}:host>span{display:flex;flex:1}:host>span+span{border-top:1px dashed var(--theme-color)}:host>span>span{flex:1}:host>span>span+span{border-left:1px dashed var(--theme-color)}",this.bordered=!1,this.columns=3,this.covered=!1,this.rows=3,this.slottable=!1,this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["bordered","columns","covered","rows"])}$propertyChangedCallback(t,s,e){Object.is(e,s)||(super.$propertyChangedCallback(t,s,e),"rows"!==t&&"columns"!==t||this.$nextTick((()=>{this.$render()})))}connectedCallback(){super.connectedCallback(),this.$render()}$render(){const t=this.$getShadowRoot(),s=document.createDocumentFragment();for(let t=0;t<this.rows;t+=1){const t=document.createElement("span");t.setAttribute("role","row");for(let s=0;s<this.columns;s+=1){const s=document.createElement("span");s.setAttribute("role","gridcell"),t.appendChild(s)}s.appendChild(t)}t&&(t.innerHTML="",t.appendChild(s))}}It.$name=f,It.$version="2.0.0";class Nt extends zt{constructor(){super(...arguments),this.$style=':host{display:inline-block;height:1em;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1em}:host:after,:host:before{background-color:var(--theme-color);content:"";display:block;position:absolute}:host:before{height:1px;left:0;top:50%;transform:translateY(-50%);width:100%}:host:after{height:100%;left:50%;top:0;transform:translateX(-50%);width:1px}:host([centered]){left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}',this.centered=!1,this.slottable=!1,this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["centered"])}}Nt.$name=m,Nt.$version="2.0.0";const Rt=new WeakMap,Xt=new WeakMap,Yt=new WeakMap,Pt=new WeakMap,Wt="vertical";class Dt extends zt{constructor(){super(...arguments),this.$onSelectionChange=null,this.$onSourceImageLoad=null,this.$onSourceImageTransform=null,this.$scale=1,this.$style=":host{display:block;height:100%;overflow:hidden;position:relative;width:100%}",this.resize=Wt,this.selection="",this.slottable=!1}set $image(t){Xt.set(this,t)}get $image(){return Xt.get(this)}set $sourceImage(t){Pt.set(this,t)}get $sourceImage(){return Pt.get(this)}set $canvas(t){Rt.set(this,t)}get $canvas(){return Rt.get(this)}set $selection(t){Yt.set(this,t)}get $selection(){return Yt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["resize","selection"])}connectedCallback(){super.connectedCallback();let t=null;if(t=this.selection?this.ownerDocument.querySelector(this.selection):this.closest(this.$getTagNameOf(v)),st(t)){this.$selection=t,this.$onSelectionChange=this.$handleSelectionChange.bind(this),at(t,G,this.$onSelectionChange);const s=t.closest(this.$getTagNameOf(b));if(s){this.$canvas=s;const t=s.querySelector(this.$getTagNameOf(w));t&&(this.$sourceImage=t,this.$image=t.cloneNode(!0),this.$getShadowRoot().appendChild(this.$image),this.$onSourceImageLoad=this.$handleSourceImageLoad.bind(this),this.$onSourceImageTransform=this.$handleSourceImageTransform.bind(this),at(t.$image,D,this.$onSourceImageLoad),at(t,H,this.$onSourceImageTransform))}this.$render()}}disconnectedCallback(){const{$selection:t,$sourceImage:s}=this;t&&this.$onSelectionChange&&(ot(t,G,this.$onSelectionChange),this.$onSelectionChange=null),s&&this.$onSourceImageLoad&&(ot(s.$image,D,this.$onSourceImageLoad),this.$onSourceImageLoad=null),s&&this.$onSourceImageTransform&&(ot(s,H,this.$onSourceImageTransform),this.$onSourceImageTransform=null),super.disconnectedCallback()}$handleSelectionChange(t){this.$render(t.detail)}$handleSourceImageLoad(){const{$image:t,$sourceImage:s}=this,e=t.getAttribute("src"),i=s.getAttribute("src");i&&i!==e&&(t.setAttribute("src",i),t.$ready((()=>{setTimeout((()=>{this.$render()}),50)})))}$handleSourceImageTransform(t){this.$render(void 0,t.detail.matrix)}$render(t,s){const{$canvas:e,$selection:i}=this;t||i.hidden||(t=i),(!t||0===t.x&&0===t.y&&0===t.width&&0===t.height)&&(t={x:0,y:0,width:e.offsetWidth,height:e.offsetHeight});const{x:h,y:n,width:r,height:o}=t,a={},{clientWidth:c,clientHeight:l}=this;let d=c,u=l,p=NaN;switch(this.resize){case"both":p=1,d=r,u=o,a.width=r,a.height=o;break;case"horizontal":p=o>0?l/o:0,d=r*p,a.width=d;break;case Wt:p=r>0?c/r:0,u=o*p,a.height=u;break;default:c>0?p=r>0?c/r:0:l>0&&(p=o>0?l/o:0)}this.$scale=p,this.$setStyles(a),this.$sourceImage&&this.$transformImageByOffset(null!=s?s:this.$sourceImage.$getTransform(),-h,-n)}$transformImageByOffset(t,s,e){const{$image:i,$scale:h,$sourceImage:n}=this;if(n&&i&&h>=0){const[n,r,o,a,c,l]=t,d=(s*a-o*e)/(n*a-o*r),u=(e*n-r*s)/(n*a-o*r),p=n*d+o*u+c,b=r*d+a*u+l;i.$ready((t=>{this.$setStyles.call(i,{width:t.naturalWidth*h,height:t.naturalHeight*h})})),i.$setTransform(n,r,o,a,p*h,b*h)}}}Dt.$name=$,Dt.$version="2.0.0",
2
2
  /*! Cropper.js v2.0.0 | (c) 2015-present Chen Fengyuan | MIT */
3
- Mt.$define(),It.$define(),_t.$define(),Tt.$define(),At.$define(),Yt.$define(),Ot.$define(),Dt.$define();const Lt=s(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.valueChange=i(this,"valueChange",3)}value;returnType="base64";valueChange;_imageRef;_selectionRef;_maxScale=0;_minScale=0;_resizeDebounceTimeout;_toCanvasDebounceTimeout;_loaded=!1;_currentScale=0;onResize(){this._resizeDebounceTimeout&&clearTimeout(this._resizeDebounceTimeout),this._resizeDebounceTimeout=setTimeout((()=>{this._selectionRef.$center(),this._imageRef.$center()}),200)}componentDidLoad(){setTimeout((()=>{this._loaded=!0}),200)}render(){const t="dark"===r.theme?"rgba(70, 75, 84, 0.5)":"rgba(255, 255, 255, 0.5)";return h(n,{key:"009cda4ff4eb5d2a7ff777a901b67c83a5f37af5"},this._loaded&&h("cropper-canvas",{key:"205006259f0393275f061f60d92ee9f3fdff16aa",class:"\n h-[17.5rem] w-full border-0 border-b border-solid border-off-white-700\n bg-white\n dark:border-hurricane-200\n ",onAction:()=>this._onAction()},h("cropper-image",{key:"d53e718c7c5c9da68c10e39ee67e2c98ad23e825",alt:"Picture",crossorigin:"anonymous",ref:t=>this._setImageRef(t),src:this.value,scalable:!0,translatable:!0}),h("cropper-shade",{key:"ce71d0a0602110c330746027f300d373b5142e55",class:"aspect-branding rounded-full","theme-color":t,hidden:!0}),h("cropper-selection",{key:"a552b9b1fbcdc2c9d8707f309fe4cbd62b644ad5","aspect-ratio":"1","initial-coverage":"0.7",ref:t=>this._selectionRef=t}),h("cropper-handle",{key:"1419ae877acfcb7ad6981cd825f57dc4e85b1aef",action:"move",plain:!0})),h("p-range",{key:"caa9104d95c54d50658ca146a6e875c944f0e0e6",class:"\n w-full px-14\n tablet:max-w-xs tablet:px-1\n ",value:this._currentScale,onValueChange:t=>this._onInput(t.detail)}))}_setImageRef(t){!this._imageRef&&t&&(this._imageRef=t,this._imageRef.$ready((t=>setTimeout((()=>this._setInitialState(t)),100))))}_setInitialState(t){let s=200/t.naturalHeight;t.naturalHeight>=t.naturalWidth&&(s=200/t.naturalWidth),this._minScale=s,this._maxScale=5,this._selectionRef.$resize("nw-resize",200,200,1),this._selectionRef.$center(),this._toCanvas(),this._setScale(s)}_onAction(){this._setCurrentScale(),this._toCanvas()}_setScale(t,s=!0,e=!0){const i=this._imageRef.$getTransform();this._imageRef.$setTransform([t,0,0,t,i[4],i[5]]),s&&this._imageRef.$center(),e&&this._setCurrentScale()}_setCurrentScale(){const t=this._imageRef.$getTransform()[0];return t<this._minScale?(this._setScale(this._minScale,!0,!1),void(this._currentScale=0)):t>this._maxScale?(this._setScale(this._maxScale,!0,!1),void(this._currentScale=100)):void(this._currentScale=t!==this._minScale?t!==this._maxScale?(t-this._minScale)/(this._maxScale-this._minScale)*100:100:0)}_onInput(t){const s=this._imageRef.$getTransform(),e=t/100*(this._maxScale-this._minScale);e!==s[0]&&(this._setScale(e+this._minScale,!1,!1),this._currentScale=t,this._toCanvas())}_toCanvas(){this._toCanvasDebounceTimeout&&clearTimeout(this._toCanvasDebounceTimeout),this._toCanvasDebounceTimeout=setTimeout((async()=>{const t=await this._selectionRef.$toCanvas();if("canvas"===this.returnType)return void this.valueChange.emit(t);const s=t.toDataURL("image/png");this.valueChange.emit(s)}),200)}static get style(){return".mb-6{margin-bottom:1.5rem}.flex{display:flex}.w-full{width:100%}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}*{box-sizing:border-box}:host{align-items:center;display:flex;flex-direction:column;gap:1.5rem;justify-content:space-between;margin-bottom:1.5rem;width:100%}.static{position:static}.hidden{display:none}.aspect-branding{aspect-ratio:23/24}.h-\\[17\\.5rem\\]{height:17.5rem}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.rounded-full{border-radius:9999px}.border-0{border-width:0}.border-b{border-bottom-width:1px}.border-solid{border-style:solid}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.px-14{padding-left:3.5rem;padding-right:3.5rem}@media (min-width:40rem){.tablet\\:max-w-xs{max-width:20rem}.tablet\\:px-1{padding-left:.25rem;padding-right:.25rem}}.dark\\:border-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(163 165 169/var(--tw-border-opacity,1))}.dark\\:border-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(163 165 169/var(--tw-border-opacity,1))}"}},[513,"p-cropper",{value:[1],returnType:[1,"return-type"],_loaded:[32],_currentScale:[32]},[[9,"resize","onResize"]]]);function Bt(){"undefined"!=typeof customElements&&["p-cropper","p-icon","p-range"].forEach((s=>{switch(s){case"p-cropper":customElements.get(t(s))||customElements.define(t(s),Lt);break;case"p-icon":customElements.get(t(s))||o();break;case"p-range":customElements.get(t(s))||a()}}))}Bt();const Ut=Lt,Ft=Bt;export{Ut as PCropper,Ft as defineCustomElement}
3
+ Mt.$define(),Nt.$define(),It.$define(),Tt.$define(),jt.$define(),_t.$define(),Ot.$define(),Dt.$define();const Lt=s(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.valueChange=i(this,"valueChange",3)}value;returnType="base64";valueChange;_imageRef;_selectionRef;_maxScale=0;_minScale=0;_resizeDebounceTimeout;_toCanvasDebounceTimeout;_loaded=!1;_currentScale=0;onResize(){this._resizeDebounceTimeout&&clearTimeout(this._resizeDebounceTimeout),this._resizeDebounceTimeout=setTimeout((()=>{this._selectionRef.$center(),this._imageRef.$center()}),200)}componentDidLoad(){setTimeout((()=>{this._loaded=!0}),200)}render(){const t="dark"===r.theme?"rgba(70, 75, 84, 0.5)":"rgba(255, 255, 255, 0.5)";return h(n,{key:"45de2e7e220d4a56fc8f863bebc570efba716c6e"},this._loaded&&h("cropper-canvas",{key:"2d781601e405bbe14ef3dee14b3279b6ee1378b4",class:"\n h-[17.5rem] w-full border-0 border-b border-solid border-off-white-700\n bg-white\n dark:border-hurricane-200\n ",onAction:()=>this._onAction()},h("cropper-image",{key:"5f55ad7da0800e65d965a73dcf2954e62a720e30",alt:"Picture",crossorigin:"anonymous",ref:t=>this._setImageRef(t),src:this.value,scalable:!0,translatable:!0}),h("cropper-shade",{key:"8f6235a0c13f64b907447d4611365831bbed8328",class:"aspect-branding rounded-full","theme-color":t,hidden:!0}),h("cropper-selection",{key:"fbffe0267e5346b34f627d4160222c08a048da18","aspect-ratio":"1","initial-coverage":"0.7",ref:t=>this._selectionRef=t}),h("cropper-handle",{key:"90d51dfa7e392505459b2252334e98eaf28f0e9d",action:"move",plain:!0})),h("p-range",{key:"8baa03308cba09293a7438957efe228ab4abd665",class:"\n w-full px-14\n tablet:max-w-xs tablet:px-1\n ",value:this._currentScale,onValueChange:t=>this._onInput(t.detail)}))}_setImageRef(t){!this._imageRef&&t&&(this._imageRef=t,this._imageRef.$ready((t=>setTimeout((()=>this._setInitialState(t)),100))))}_setInitialState(t){let s=200/t.naturalHeight;t.naturalHeight>=t.naturalWidth&&(s=200/t.naturalWidth),this._minScale=s,this._maxScale=5,this._selectionRef.$resize("nw-resize",200,200,1),this._selectionRef.$center(),this._toCanvas(),this._setScale(s)}_onAction(){this._setCurrentScale(),this._toCanvas()}_setScale(t,s=!0,e=!0){const i=this._imageRef.$getTransform();this._imageRef.$setTransform([t,0,0,t,i[4],i[5]]),s&&this._imageRef.$center(),e&&this._setCurrentScale()}_setCurrentScale(){const t=this._imageRef.$getTransform()[0];return t<this._minScale?(this._setScale(this._minScale,!0,!1),void(this._currentScale=0)):t>this._maxScale?(this._setScale(this._maxScale,!0,!1),void(this._currentScale=100)):void(this._currentScale=t!==this._minScale?t!==this._maxScale?(t-this._minScale)/(this._maxScale-this._minScale)*100:100:0)}_onInput(t){const s=this._imageRef.$getTransform(),e=t/100*(this._maxScale-this._minScale);e!==s[0]&&(this._setScale(e+this._minScale,!1,!1),this._currentScale=t,this._toCanvas())}_toCanvas(){this._toCanvasDebounceTimeout&&clearTimeout(this._toCanvasDebounceTimeout),this._toCanvasDebounceTimeout=setTimeout((async()=>{const t=await this._selectionRef.$toCanvas();if("canvas"===this.returnType)return void this.valueChange.emit(t);const s=t.toDataURL("image/png");this.valueChange.emit(s)}),200)}static get style(){return".mb-6{margin-bottom:1.5rem}.flex{display:flex}.w-full{width:100%}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}*{box-sizing:border-box}:host{align-items:center;display:flex;flex-direction:column;gap:1.5rem;justify-content:space-between;margin-bottom:1.5rem;width:100%}.static{position:static}.hidden{display:none}.aspect-branding{aspect-ratio:23/24}.h-\\[17\\.5rem\\]{height:17.5rem}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.rounded-full{border-radius:9999px}.border-0{border-width:0}.border-b{border-bottom-width:1px}.border-solid{border-style:solid}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.px-14{padding-left:3.5rem;padding-right:3.5rem}@media (min-width:40rem){.tablet\\:max-w-xs{max-width:20rem}.tablet\\:px-1{padding-left:.25rem;padding-right:.25rem}}.dark\\:border-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(163 165 169/var(--tw-border-opacity,1))}.dark\\:border-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(163 165 169/var(--tw-border-opacity,1))}"}},[513,"p-cropper",{value:[1],returnType:[1,"return-type"],_loaded:[32],_currentScale:[32]},[[9,"resize","onResize"]]]);function Bt(){"undefined"!=typeof customElements&&["p-cropper","p-icon","p-range"].forEach((s=>{switch(s){case"p-cropper":customElements.get(t(s))||customElements.define(t(s),Lt);break;case"p-icon":customElements.get(t(s))||o();break;case"p-range":customElements.get(t(s))||a()}}))}Bt();const Ft=Lt,Ut=Bt;export{Ft as PCropper,Ut as defineCustomElement}
@@ -1 +1 @@
1
- import{t as e,p as t,H as s,c as i,h as a}from"./p-CySg37XO.js";import{d as o,a as l,l as n}from"./p-BoI3_eAE.js";import{s as r}from"./p-BBiGYjKk.js";import{c as h}from"./p-TyZ7uPES.js";import{i as d}from"./p-DPc49L2n.js";import{a as p}from"./p-C5CTp9IA.js";import{d as c}from"./p-BDYSnb7i.js";import{d as u}from"./p-BxQCn3Jj.js";import{d as m}from"./p-DvxgfyQ_.js";import{d as y}from"./p-9C3ias2a.js";import{d as f}from"./p-A2wMRQKW.js";import{d as b}from"./p-BHcIe6BE.js";import{d as D}from"./p-DL2YlEpH.js";import{d as w}from"./p-D8faiybE.js";import{d as v}from"./p-Bg0nKrgn.js";const g=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.valueChange=i(this,"valueChange",3),this._internals=this.attachInternals()}placeholder;value;preselectToday=!1;enableNativePicker=!0;disabledDates;minDate=null;maxDate=null;disableWeekends=!1;enableToday=!0;todayText="today";mode="day";valueChange;format="dd-MM-yyyy";hideIconWhenFilled=!1;size="base";prefix;label;loading=!1;helper;required;showOptional=!0;error;disabled=!1;strategy="absolute";placement="bottom-start";get _el(){return this}_showDropdown=!1;_value;_minDate;_maxDate;_disabledDates=[];_isMobileBrowser=!1;_internals;_onInputTimeout;_inputRef;_dateInputRef;_defaultFormats={year:"yyyy",month:"LLLL, yyyy",day:"dd-MM-yyyy",dayNoDashes:"ddMMyyyy"};parseValue(e){!e&&this.preselectToday&&(e=new Date),"string"==typeof e&&(e=new Date(e)),e?.getTime()!==this._value?.getTime()&&this._setValue(e,!0)}parseMinDate(e){null!==e&&""!==e?("string"==typeof e&&(e=new Date(e)),l.isValid(e)&&(this._minDate=e,l.isBefore(this._value,this._minDate)&&this._setValue(null))):this.minDate=new Date(l.getYear(l.subYears(new Date,100)),0,1)}parseMaxDate(e){null!==e&&""!==e?("string"==typeof e&&(e=new Date(e)),l.isValid(e)&&(this._maxDate=e,l.isAfter(this._value,this._maxDate)&&this._setValue(null))):this.maxDate=this._getAutomaticMax()}parseDisabledDates(e){"string"==typeof e&&(e=JSON.parse(e)),e&&Array.isArray(e)&&(this._disabledDates=e.map((e=>"string"==typeof e?new Date(e):e)).filter((e=>l.isValid(e))),this._isDisabledDay(this._value)&&this._setValue(null))}formResetCallback(){this._setValue(null)}formDisabledCallback(e){this._internals.form&&(this.disabled=e)}componentWillLoad(){this.disabledDates&&this.parseDisabledDates(this.disabledDates),this.parseMinDate(this.minDate),this.parseMaxDate(this.maxDate),this._isMobileBrowser=d(),this.parseValue(this.value)}componentWillRender(){"day"!==this.mode&&this.format===this._defaultFormats.day&&(this.format=this._defaultFormats[this.mode])}render(){return a("p-dropdown",{key:"f049a50e493e5fa104141f8e65b9077f41ecd5aa",allowOverflow:!0,applyFullWidth:!1,applyMaxWidth:!1,disableTriggerClick:!0,insideClick:!0,isDatepicker:!0,placement:this.placement,show:this._showDropdown,strategy:this.strategy},a("p-field",{key:"2869249c84a37034ce2ce630da493d397cc5f532",autoShowError:!1,disabled:p(this.disabled),error:this.error,focused:this._showDropdown,forceShowTooltip:!!this.error?.length&&!this._showDropdown,helper:this.helper,icon:this.hideIconWhenFilled&&this._value?null:"calendar-multi",iconPosition:"start",label:this.label,loading:this.loading,placeholder:this.placeholder,prefix:this.prefix,required:p(this.required),showOptional:p(this.showOptional),size:this.size,slot:"trigger",value:this._getFormattedDate(),onBlur:e=>this._onBlur(e),onFocus:()=>this._onFocus(),onInputRefChange:e=>this._inputRef=e.detail,onValueChange:e=>this._onValueChange(e.detail)}),this.enableNativePicker&&this._isMobileBrowser&&a("input",{key:"da643dba40ee7778ec14707db572f2d80cd58547",class:"\n pointer-events-none absolute left-0 top-0 z-[-10] overflow-hidden\n opacity-0\n ",max:this.maxDate&&l.format(new Date(this.maxDate),"yyyy-MM-dd",{locale:"nl"===r.locale?n.nl:n.enUS}),min:this._minDate&&l.format(new Date(this._minDate),"yyyy-MM-dd",{locale:"nl"===r.locale?n.nl:n.enUS}),ref:e=>this._dateInputRef=e,slot:"trigger",type:"day"===this.mode?"date":"month",value:this._value&&l.format(this._value,"yyyy-MM-dd",{locale:"nl"===r.locale?n.nl:n.enUS}),onInput:e=>this._onNativeInput(e)}),a("div",{key:"5fd257d5996ba8aa8164acf82da3ada6803132ae",slot:"items",tabIndex:-1},a("p-calendar",{key:"2864686436f1d4e6148ddfb65b44ef21f2f9f0bb",disableWeekends:this.disableWeekends,disabledDates:this.disabledDates,enableToday:this.enableToday,maxDate:this.maxDate,minDate:this.minDate,mode:this.mode,preselectToday:this.preselectToday,todayText:this.todayText,value:this._value,variant:"embedded",onValueChange:({detail:e})=>this.value=e})))}documentClickHandler({target:e}){this._showDropdown&&!h(e,this._el)&&(this._showDropdown=!1)}_onFocus(){if(this._isMobileBrowser&&this._dateInputRef)return this._dateInputRef.focus(),this._dateInputRef.showPicker(),void this._inputRef.blur();this._showDropdown=!0}_onBlur(e,t){if(t=t||this.format,this._isMobileBrowser&&this._dateInputRef)return;e.relatedTarget&&!h(e.relatedTarget,this._el)&&(this._showDropdown=!1);const s=this._inputRef;if(null===s.value)return;const i=l.parse(s.value,t,new Date,{locale:"nl"===r.locale?n.nl:n.enUS});if(i===this._value)return;const a=l.isValid(i);if(!a&&t===this.format&&"day"===this.mode)return this._onBlur(e,this._defaultFormats.dayNoDashes);a&&!this._isDisabledDay(i)?this._setValue(i,!1):s.value=this._getFormattedDate()}_onValueChange(e,t=this.format){this._onInputTimeout&&(clearTimeout(this._onInputTimeout),this._onInputTimeout=null),this._onInputTimeout=setTimeout((()=>{if(0===e.length){if(null===this._value)return;return void this._setValue(null)}const s=l.parse(e,t,new Date);l.isValid(s)&&l.format(s,t,{locale:"nl"===r.locale?n.nl:n.enUS})===e?this._setValue(s,!1):"day"===this.mode&&this._onValueChange(e,this._defaultFormats.dayNoDashes)}),300)}_onNativeInput(e){e.target&&(this._onInputTimeout&&(clearTimeout(this._onInputTimeout),this._onInputTimeout=null),this._onInputTimeout=setTimeout((()=>{this._setValue(""===e.target.value?null:new Date(e.target.value),!1)})))}_setValue(e,t=!0){if(null===e)return this._value=null,void this.valueChange.emit(null);l.isValid(e)&&(this._isDisabledDay(e)?this._dateInputRef?.value&&(this._dateInputRef.value=this._value?l.format(this._value,"yyyy-MM-dd",{locale:"nl"===r.locale?n.nl:n.enUS}):null):(e="day"===this.mode?l.startOfDay(e):"month"===this.mode?l.startOfMonth(e):l.startOfYear(e),l.isSameDay(e,this._value)||(t&&(this._showDropdown=!1),this._value=e,this.valueChange.emit(e))))}_isDisabledDay(e){return this.disableWeekends&&l.isWeekend(e)||l.isBefore(e,this._minDate)&&!l.isSameDay(e,this._minDate)||l.isAfter(e,this._maxDate)&&!l.isSameDay(e,this._maxDate)||this._disabledDates.some((t=>l.isSameDay(t,e)))}_getFormattedDate(){return this._value?l.format(this._value,this.format,{locale:"nl"===r.locale?n.nl:n.enUS}):""}_getAutomaticMax(){const e=l.addYears(new Date,50);let t=l.getYear(e);return t=10*Math.ceil(t/10),l.setYear(e,t)}static get formAssociated(){return!0}static get watchers(){return{value:[{parseValue:0}],minDate:[{parseMinDate:0}],maxDate:[{parseMaxDate:0}],disabledDates:[{parseDisabledDates:0}]}}static get style(){return"*{box-sizing:border-box}.pointer-events-none{pointer-events:none}.static{position:static}.absolute{position:absolute}.left-0{left:0}.top-0{top:0}.z-\\[-10\\]{z-index:-10}.overflow-hidden{overflow:hidden}.opacity-0{opacity:0}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}"}},[576,"p-datepicker",{placeholder:[1],value:[1],preselectToday:[4,"preselect-today"],enableNativePicker:[4,"enable-native-picker"],disabledDates:[1,"disabled-dates"],minDate:[1,"min-date"],maxDate:[1,"max-date"],disableWeekends:[4,"disable-weekends"],enableToday:[4,"enable-today"],todayText:[1,"today-text"],mode:[1],format:[1],hideIconWhenFilled:[4,"hide-icon-when-filled"],size:[1],prefix:[1],label:[1],loading:[4],helper:[1],required:[516],showOptional:[516,"show-optional"],error:[513],disabled:[516],strategy:[1],placement:[513],_showDropdown:[32],_value:[32],_minDate:[32],_maxDate:[32],_disabledDates:[32],_isMobileBrowser:[32]},[[6,"click","documentClickHandler"]],{value:[{parseValue:0}],minDate:[{parseMinDate:0}],maxDate:[{parseMaxDate:0}],disabledDates:[{parseDisabledDates:0}]}]);function k(){"undefined"!=typeof customElements&&["p-datepicker","p-button","p-calendar","p-dropdown","p-dropdown-menu-container","p-field","p-field-container","p-helper","p-icon","p-loader","p-tooltip"].forEach((t=>{switch(t){case"p-datepicker":customElements.get(e(t))||customElements.define(e(t),g);break;case"p-button":customElements.get(e(t))||c();break;case"p-calendar":customElements.get(e(t))||o();break;case"p-dropdown":customElements.get(e(t))||u();break;case"p-dropdown-menu-container":customElements.get(e(t))||m();break;case"p-field":customElements.get(e(t))||y();break;case"p-field-container":customElements.get(e(t))||f();break;case"p-helper":customElements.get(e(t))||b();break;case"p-icon":customElements.get(e(t))||D();break;case"p-loader":customElements.get(e(t))||w();break;case"p-tooltip":customElements.get(e(t))||v()}}))}k();const x=g,_=k;export{x as PDatepicker,_ as defineCustomElement}
1
+ import{t,p as e,H as s,c as i,h as a}from"./p-CySg37XO.js";import{d as o,a as l,l as r}from"./p-F3PaXjBa.js";import{s as n}from"./p-BBiGYjKk.js";import{c as h}from"./p-TyZ7uPES.js";import{i as d}from"./p-DPc49L2n.js";import{a as p}from"./p-C5CTp9IA.js";import{d as c}from"./p-Dzd3xVIu.js";import{d as u}from"./p-DA92PZeS.js";import{d as m}from"./p-CmhjRWQy.js";import{d as y}from"./p-D-CC7BBx.js";import{d as b}from"./p-bWeLk9nj.js";import{d as f}from"./p-DW2CgFRa.js";import{d as D}from"./p-CPr4Yiq8.js";import{d as w}from"./p-D8faiybE.js";import{d as v}from"./p-jLO4drbv.js";const g=e(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.valueChange=i(this,"valueChange",3),this._internals=this.attachInternals()}placeholder;value;preselectToday=!1;enableNativePicker=!0;disabledDates;minDate=null;maxDate=null;disableWeekends=!1;enableToday=!0;todayText="today";mode="day";valueChange;format="dd-MM-yyyy";hideIconWhenFilled=!1;size="base";prefix;label;loading=!1;helper;required;showOptional=!0;error;disabled=!1;strategy="absolute";placement="bottom-start";get _el(){return this}_showDropdown=!1;_value;_minDate;_maxDate;_disabledDates=[];_isMobileBrowser=!1;_internals;_onInputTimeout;_inputRef;_dateInputRef;_defaultFormats={year:"yyyy",month:"LLLL, yyyy",day:"dd-MM-yyyy",dayNoDashes:"ddMMyyyy"};parseValue(t){!t&&this.preselectToday&&(t=new Date),"string"==typeof t&&(t=new Date(t)),t?.getTime()!==this._value?.getTime()&&this._setValue(t,!0)}parseMinDate(t){null!==t&&""!==t?("string"==typeof t&&(t=new Date(t)),l.isValid(t)&&(this._minDate=t,l.isBefore(this._value,this._minDate)&&this._setValue(null))):this.minDate=new Date(l.getYear(l.subYears(new Date,100)),0,1)}parseMaxDate(t){null!==t&&""!==t?("string"==typeof t&&(t=new Date(t)),l.isValid(t)&&(this._maxDate=t,l.isAfter(this._value,this._maxDate)&&this._setValue(null))):this.maxDate=this._getAutomaticMax()}parseDisabledDates(t){"string"==typeof t&&(t=JSON.parse(t)),t&&Array.isArray(t)&&(this._disabledDates=t.map((t=>"string"==typeof t?new Date(t):t)).filter((t=>l.isValid(t))),this._isDisabledDay(this._value)&&this._setValue(null))}formResetCallback(){this._setValue(null)}formDisabledCallback(t){this._internals.form&&(this.disabled=t)}componentWillLoad(){this.disabledDates&&this.parseDisabledDates(this.disabledDates),this.parseMinDate(this.minDate),this.parseMaxDate(this.maxDate),this._isMobileBrowser=d(),this.parseValue(this.value)}componentWillRender(){"day"!==this.mode&&this.format===this._defaultFormats.day&&(this.format=this._defaultFormats[this.mode])}render(){return a("p-dropdown",{key:"891468e0d880fbe578d4b0106a3b09e741d86d59",allowOverflow:!0,applyFullWidth:!1,applyMaxWidth:!1,disableTriggerClick:!0,insideClick:!0,isDatepicker:!0,placement:this.placement,show:this._showDropdown,strategy:this.strategy},a("p-field",{key:"f7065621d6f200a2f340e866f5357b5aa133fdcc",autoShowError:!1,disabled:p(this.disabled),error:this.error,focused:this._showDropdown,forceShowTooltip:!!this.error?.length&&!this._showDropdown,helper:this.helper,icon:this.hideIconWhenFilled&&this._value?null:"calendar-multi",iconPosition:"start",label:this.label,loading:this.loading,placeholder:this.placeholder,prefix:this.prefix,required:p(this.required),showOptional:p(this.showOptional),size:this.size,slot:"trigger",value:this._getFormattedDate(),onBlur:t=>this._onBlur(t),onFocus:()=>this._onFocus(),onInputRefChange:t=>this._inputRef=t.detail,onValueChange:t=>this._onValueChange(t.detail)}),this.enableNativePicker&&this._isMobileBrowser&&a("input",{key:"62752c953dfd35a76d7650d8c0621421c77257f0",class:"\n pointer-events-none absolute left-0 top-0 z-[-10] overflow-hidden\n opacity-0\n ",max:this.maxDate&&l.format(new Date(this.maxDate),"yyyy-MM-dd",{locale:"nl"===n.locale?r.nl:r.enUS}),min:this._minDate&&l.format(new Date(this._minDate),"yyyy-MM-dd",{locale:"nl"===n.locale?r.nl:r.enUS}),ref:t=>this._dateInputRef=t,slot:"trigger",type:"day"===this.mode?"date":"month",value:this._value&&l.format(this._value,"yyyy-MM-dd",{locale:"nl"===n.locale?r.nl:r.enUS}),onInput:t=>this._onNativeInput(t)}),a("div",{key:"19aeebff76b179555fcbf507fe9a503b074bd79e",slot:"items",tabIndex:-1},a("p-calendar",{key:"1d8b3593b3598c0cf4bf6b63366bad0aa554403f",disableWeekends:this.disableWeekends,disabledDates:this.disabledDates,enableToday:this.enableToday,maxDate:this.maxDate,minDate:this.minDate,mode:this.mode,preselectToday:this.preselectToday,todayText:this.todayText,value:this._value,variant:"embedded",onValueChange:({detail:t})=>this.value=t})))}documentClickHandler({target:t}){this._showDropdown&&!h(t,this._el)&&(this._showDropdown=!1)}_onFocus(){if(this._isMobileBrowser&&this._dateInputRef)return this._dateInputRef.focus(),this._dateInputRef.showPicker(),void this._inputRef.blur();this._showDropdown=!0}_onBlur(t,e){if(e=e||this.format,this._isMobileBrowser&&this._dateInputRef)return;t.relatedTarget&&!h(t.relatedTarget,this._el)&&(this._showDropdown=!1);const s=this._inputRef;if(null===s.value)return;const i=l.parse(s.value,e,new Date,{locale:"nl"===n.locale?r.nl:r.enUS});if(i===this._value)return;const a=l.isValid(i);if(!a&&e===this.format&&"day"===this.mode)return this._onBlur(t,this._defaultFormats.dayNoDashes);a&&!this._isDisabledDay(i)?this._setValue(i,!1):s.value=this._getFormattedDate()}_onValueChange(t,e=this.format){this._onInputTimeout&&(clearTimeout(this._onInputTimeout),this._onInputTimeout=null),this._onInputTimeout=setTimeout((()=>{if(0===t.length){if(null===this._value)return;return void this._setValue(null)}const s=l.parse(t,e,new Date);l.isValid(s)&&l.format(s,e,{locale:"nl"===n.locale?r.nl:r.enUS})===t?this._setValue(s,!1):"day"===this.mode&&this._onValueChange(t,this._defaultFormats.dayNoDashes)}),300)}_onNativeInput(t){t.target&&(this._onInputTimeout&&(clearTimeout(this._onInputTimeout),this._onInputTimeout=null),this._onInputTimeout=setTimeout((()=>{this._setValue(""===t.target.value?null:new Date(t.target.value),!1)})))}_setValue(t,e=!0){if(null===t)return this._value=null,void this.valueChange.emit(null);l.isValid(t)&&(this._isDisabledDay(t)?this._dateInputRef?.value&&(this._dateInputRef.value=this._value?l.format(this._value,"yyyy-MM-dd",{locale:"nl"===n.locale?r.nl:r.enUS}):null):(t="day"===this.mode?l.startOfDay(t):"month"===this.mode?l.startOfMonth(t):l.startOfYear(t),l.isSameDay(t,this._value)||(e&&(this._showDropdown=!1),this._value=t,this.valueChange.emit(t))))}_isDisabledDay(t){return this.disableWeekends&&l.isWeekend(t)||l.isBefore(t,this._minDate)&&!l.isSameDay(t,this._minDate)||l.isAfter(t,this._maxDate)&&!l.isSameDay(t,this._maxDate)||this._disabledDates.some((e=>l.isSameDay(e,t)))}_getFormattedDate(){return this._value?l.format(this._value,this.format,{locale:"nl"===n.locale?r.nl:r.enUS}):""}_getAutomaticMax(){const t=l.addYears(new Date,50);let e=l.getYear(t);return e=10*Math.ceil(e/10),l.setYear(t,e)}static get formAssociated(){return!0}static get watchers(){return{value:[{parseValue:0}],minDate:[{parseMinDate:0}],maxDate:[{parseMaxDate:0}],disabledDates:[{parseDisabledDates:0}]}}static get style(){return"*{box-sizing:border-box}.pointer-events-none{pointer-events:none}.static{position:static}.absolute{position:absolute}.left-0{left:0}.top-0{top:0}.z-\\[-10\\]{z-index:-10}.overflow-hidden{overflow:hidden}.opacity-0{opacity:0}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}"}},[576,"p-datepicker",{placeholder:[1],value:[1],preselectToday:[4,"preselect-today"],enableNativePicker:[4,"enable-native-picker"],disabledDates:[1,"disabled-dates"],minDate:[1,"min-date"],maxDate:[1,"max-date"],disableWeekends:[4,"disable-weekends"],enableToday:[4,"enable-today"],todayText:[1,"today-text"],mode:[1],format:[1],hideIconWhenFilled:[4,"hide-icon-when-filled"],size:[1],prefix:[1],label:[1],loading:[4],helper:[1],required:[516],showOptional:[516,"show-optional"],error:[513],disabled:[516],strategy:[1],placement:[513],_showDropdown:[32],_value:[32],_minDate:[32],_maxDate:[32],_disabledDates:[32],_isMobileBrowser:[32]},[[6,"click","documentClickHandler"]],{value:[{parseValue:0}],minDate:[{parseMinDate:0}],maxDate:[{parseMaxDate:0}],disabledDates:[{parseDisabledDates:0}]}]);function k(){"undefined"!=typeof customElements&&["p-datepicker","p-button","p-calendar","p-dropdown","p-dropdown-menu-container","p-field","p-field-container","p-helper","p-icon","p-loader","p-tooltip"].forEach((e=>{switch(e){case"p-datepicker":customElements.get(t(e))||customElements.define(t(e),g);break;case"p-button":customElements.get(t(e))||c();break;case"p-calendar":customElements.get(t(e))||o();break;case"p-dropdown":customElements.get(t(e))||u();break;case"p-dropdown-menu-container":customElements.get(t(e))||m();break;case"p-field":customElements.get(t(e))||y();break;case"p-field-container":customElements.get(t(e))||b();break;case"p-helper":customElements.get(t(e))||f();break;case"p-icon":customElements.get(t(e))||D();break;case"p-loader":customElements.get(t(e))||w();break;case"p-tooltip":customElements.get(t(e))||v()}}))}k();const x=g,_=k;export{x as PDatepicker,_ as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-DP6H82uQ.js";const p=o,r=s;export{p as PDivider,r as defineCustomElement}
1
+ import{D as o,d as r}from"./p-O5rAm8zV.js";const s=o,m=r;export{s as PDivider,m as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as r}from"./p-co8zArTG.js";const s=o,p=r;export{s as PDrawerBody,p as defineCustomElement}
1
+ import{D as o,d as s}from"./p-DYtn3uAK.js";const t=o,p=s;export{t as PDrawerBody,p as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as r}from"./p-B0rHem3C.js";const s=o,m=r;export{s as PDrawerContainer,m as defineCustomElement}
1
+ import{D as o,d as s}from"./p-Dd7Yba0f.js";const a=o,p=s;export{a as PDrawerContainer,p as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-CNtLMu6c.js";const t=o,p=s;export{t as PDrawerHeader,p as defineCustomElement}
1
+ import{D as o,d as s}from"./p-Bd4QOMb3.js";const p=o,r=s;export{p as PDrawerHeader,r as defineCustomElement}
@@ -1 +1 @@
1
- import{t as e,p as s,H as r,c as t,h as o}from"./p-CySg37XO.js";import{d as a}from"./p-QJoR_dmN.js";import{d as l}from"./p-BDYSnb7i.js";import{d as c}from"./p-co8zArTG.js";import{d as i}from"./p-B0rHem3C.js";import{d as n}from"./p-CNtLMu6c.js";import{d as p}from"./p-DL2YlEpH.js";import{d}from"./p-D8faiybE.js";import{d as h}from"./p-Dy4IX7Pe.js";const m=s(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.closeClicked=t(this,"closeClicked",3),this.closed=t(this,"closed",3)}header;show=!1;applyBlur=!1;showClose=!0;backdropClickClose=!0;canClose=!0;scrollLock=!0;closeClicked;closed;get _el(){return this}_hasHeaderSlot=!1;_closing=!1;componentWillLoad(){this._hasHeaderSlot=!!this._el.querySelector(':scope > [slot="header"]')}render(){if(!this.show)return;const e=o("slot",{name:"header"}),s=o("slot",{name:"content"});return o("p-backdrop",{applyBlur:this.applyBlur,closing:this._closing,scrollLock:this.scrollLock,variant:"drawer",onClicked:e=>this._backdropClick(e.detail)},o("p-drawer-container",{closing:this._closing},(this.header?.length||this._hasHeaderSlot)&&o("p-drawer-header",{"show-close":this.showClose,onClose:e=>this.close(e.detail,"close")},this._hasHeaderSlot?e:this.header),o("p-drawer-body",null,s)))}_backdropClick(e){this.backdropClickClose&&(this._findDrawer(e.target)||this.close(e,"backdrop"))}_findDrawer(e){return e?"p-drawer-container"===e.nodeName.toLowerCase()?e:"p-backdrop"===e?.nodeName?.toLowerCase()?null:this._findDrawer(e?.parentElement):null}close(e,s="unknown",r=!1){(r||(this.closeClicked.emit({event:e,canClose:this.canClose,source:s}),this.canClose))&&(this._closing=!0,setTimeout((()=>{this.show=!1,this._closing=!1,this.closed.emit()}),250))}handleCloseDrawer(){this.close(null,"event")}handleForceCloseDrawer(){this.close(null,"event",!0)}static get style(){return"*{box-sizing:border-box}.static{position:static}.blur{--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}"}},[769,"p-drawer",{header:[1],show:[4],applyBlur:[4,"apply-blur"],showClose:[4,"show-close"],backdropClickClose:[4,"backdrop-click-close"],canClose:[4,"can-close"],scrollLock:[4,"scroll-lock"],_closing:[32]},[[8,"closeDrawer","handleCloseDrawer"],[8,"forceCloseDrawer","handleForceCloseDrawer"]]]);function u(){"undefined"!=typeof customElements&&["p-drawer","p-backdrop","p-button","p-drawer-body","p-drawer-container","p-drawer-header","p-icon","p-loader","p-smile"].forEach((s=>{switch(s){case"p-drawer":customElements.get(e(s))||customElements.define(e(s),m);break;case"p-backdrop":customElements.get(e(s))||a();break;case"p-button":customElements.get(e(s))||l();break;case"p-drawer-body":customElements.get(e(s))||c();break;case"p-drawer-container":customElements.get(e(s))||i();break;case"p-drawer-header":customElements.get(e(s))||n();break;case"p-icon":customElements.get(e(s))||p();break;case"p-loader":customElements.get(e(s))||d();break;case"p-smile":customElements.get(e(s))||h()}}))}u();const w=m,b=u;export{w as PDrawer,b as defineCustomElement}
1
+ import{t as e,p as s,H as r,c as t,h as o}from"./p-CySg37XO.js";import{d as a}from"./p-BGolUUn0.js";import{d as l}from"./p-Dzd3xVIu.js";import{d as c}from"./p-DYtn3uAK.js";import{d as i}from"./p-Dd7Yba0f.js";import{d as n}from"./p-Bd4QOMb3.js";import{d as p}from"./p-CPr4Yiq8.js";import{d}from"./p-D8faiybE.js";import{d as h}from"./p-BCWtvvOe.js";const m=s(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.closeClicked=t(this,"closeClicked",3),this.closed=t(this,"closed",3)}header;show=!1;applyBlur=!1;showClose=!0;backdropClickClose=!0;canClose=!0;scrollLock=!0;closeClicked;closed;get _el(){return this}_hasHeaderSlot=!1;_closing=!1;componentWillLoad(){this._hasHeaderSlot=!!this._el.querySelector(':scope > [slot="header"]')}render(){if(!this.show)return;const e=o("slot",{name:"header"}),s=o("slot",{name:"content"});return o("p-backdrop",{applyBlur:this.applyBlur,closing:this._closing,scrollLock:this.scrollLock,variant:"drawer",onClicked:e=>this._backdropClick(e.detail)},o("p-drawer-container",{closing:this._closing},(this.header?.length||this._hasHeaderSlot)&&o("p-drawer-header",{"show-close":this.showClose,onClose:e=>this.close(e.detail,"close")},this._hasHeaderSlot?e:this.header),o("p-drawer-body",null,s)))}_backdropClick(e){this.backdropClickClose&&(this._findDrawer(e.target)||this.close(e,"backdrop"))}_findDrawer(e){return e?"p-drawer-container"===e.nodeName.toLowerCase()?e:"p-backdrop"===e?.nodeName?.toLowerCase()?null:this._findDrawer(e?.parentElement):null}close(e,s="unknown",r=!1){(r||(this.closeClicked.emit({event:e,canClose:this.canClose,source:s}),this.canClose))&&(this._closing=!0,setTimeout((()=>{this.show=!1,this._closing=!1,this.closed.emit()}),250))}handleCloseDrawer(){this.close(null,"event")}handleForceCloseDrawer(){this.close(null,"event",!0)}static get style(){return"*{box-sizing:border-box}.static{position:static}.blur{--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}"}},[769,"p-drawer",{header:[1],show:[4],applyBlur:[4,"apply-blur"],showClose:[4,"show-close"],backdropClickClose:[4,"backdrop-click-close"],canClose:[4,"can-close"],scrollLock:[4,"scroll-lock"],_closing:[32]},[[8,"closeDrawer","handleCloseDrawer"],[8,"forceCloseDrawer","handleForceCloseDrawer"]]]);function u(){"undefined"!=typeof customElements&&["p-drawer","p-backdrop","p-button","p-drawer-body","p-drawer-container","p-drawer-header","p-icon","p-loader","p-smile"].forEach((s=>{switch(s){case"p-drawer":customElements.get(e(s))||customElements.define(e(s),m);break;case"p-backdrop":customElements.get(e(s))||a();break;case"p-button":customElements.get(e(s))||l();break;case"p-drawer-body":customElements.get(e(s))||c();break;case"p-drawer-container":customElements.get(e(s))||i();break;case"p-drawer-header":customElements.get(e(s))||n();break;case"p-icon":customElements.get(e(s))||p();break;case"p-loader":customElements.get(e(s))||d();break;case"p-smile":customElements.get(e(s))||h()}}))}u();const w=m,b=u;export{w as PDrawer,b as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-DvxgfyQ_.js";const p=o,r=s;export{p as PDropdownMenuContainer,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-CmhjRWQy.js";const m=o,p=s;export{m as PDropdownMenuContainer,p as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as r}from"./p-BrFy12TR.js";const s=o,p=r;export{s as PDropdownMenuItem,p as defineCustomElement}
1
+ import{D as m,d as o}from"./p-B0R6Smvm.js";const s=m,p=o;export{s as PDropdownMenuItem,p as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-BxQCn3Jj.js";const p=o,r=s;export{p as PDropdown,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-DA92PZeS.js";const p=o,r=s;export{p as PDropdown,r as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface PDropzone extends Components.PDropzone, HTMLElement {}
4
+ export const PDropzone: {
5
+ prototype: PDropzone;
6
+ new (): PDropzone;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{t as e,p as t,H as o,c as r,h as i}from"./p-CySg37XO.js";import{c as s}from"./p-CBWjHURv.js";import{T as a}from"./p-Au2WuEGF.js";import{c as d}from"./p-xs4N_Y-0.js";import{d as c}from"./p-CPr4Yiq8.js";import{d as n}from"./p-D8faiybE.js";const l=s(["flex w-full flex-col items-center gap-2","rounded-lg","border","p-8"],{variants:{uploaded:{false:"border-dashed",true:"border-off-white-700"},isOver:{true:"border-dashed border-indigo-500 bg-indigo-50",false:"border-white-800"}},compoundVariants:[{uploaded:!0,isOver:!1,class:"border-solid bg-positive-green-50"},{uploaded:!1,isOver:!1,class:"bg-white-600"}]}),p=t(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.upload=r(this,"upload",3)}icon="file-export";showIcon=!0;acceptGroup="any";fileId;loading=!1;allowMultiple=!0;uploaded=!1;upload;get _el(){return this}_isOver=!1;_fileRef;_filesToProcess=0;_results=[];_documentBlocked=!1;_preventDefault=e=>e.preventDefault();componentWillRender(){if(!this._isOver&&this._documentBlocked)return document.removeEventListener("drop",this._preventDefault),document.removeEventListener("dragover",this._preventDefault),void(this._documentBlocked=!1);this._isOver&&(document.addEventListener("drop",this._preventDefault),document.addEventListener("dragover",this._preventDefault),this._documentBlocked=!0)}render(){const e=this._el.innerHTML?.length>0;return i(a,{key:"850603b4fb37087fd8bd7db5f37d9fcb17687fd2"},i("div",{key:"594badd15df513690f388b021993694ad710e5c6",class:d(l({isOver:this._isOver,uploaded:this.uploaded}),{}),onClick:()=>this._uploadClick()},!this.loading&&this.showIcon&&i("p-icon",{key:"10d41c9cd21bcba962c186ed04f48c1abf9c2073",class:d({"text-storm-300":!this._isOver,"text-indigo-900":this._isOver}),variant:this.icon}),this.loading&&i("p-loader",{key:"1c2b811db6711ef9bc4ba54d380f4aff7870ea0b"}),e&&i("slot",{key:"2e1ab2124bef07b476a23bfefed446e4ac17c0d2"}),this.uploaded&&!this._isOver&&i("div",{key:"e277e12954fd53100ec6202002c1b495d42ddb8b",class:"flex items-center gap-2 text-positive-green-800"},i("p-icon",{key:"68dc24d68232b98aaed2d1a5b1bc38888c7efffb",variant:"check-circle"}),i("span",{key:"f8cc3ffc3201efb23cd90d30eb7921e5c597db62",class:"font-medium"},"Toegevoegd")),(!this.uploaded||this._isOver)&&i("div",{key:"be0dfd5990877b7e914580f3d6c193d48402ab2a",class:d("flex flex-col text-center",{"opacity-50":this._isOver})},i("span",{key:"f406b49e7b8ec6b4fb01fff011523147714da170",class:"font-medium"},"Sleep je bestand hierheen"),i("span",{key:"7656b9d337a582f2e69cf555a4f5c8eaa70e6f51",class:"font-normal"},"of klik om te uploaden"))),i("input",{key:"09b2471f370d6140db3bd9359e7c4c7a9237b9dc",accept:"any"==this.acceptGroup?"":"image/*",class:"hidden",multiple:!0===this.allowMultiple||void 0,ref:e=>this._fileRef=e,type:"file",onChange:e=>this._onFileChange(e)}))}onDrop(e){const t=this._getFiles(e);t?.length&&this._processFiles(t)}onDragOver(e){this._isFilesEvent(e)&&(this._isOver=!0)}onDragLeave(){this._isOver=!1}_isFilesEvent(e){return!!e.dataTransfer&&0!==[...e.dataTransfer.items].filter((e=>"file"===e.kind)).length}_getFiles(e){if(!this._isFilesEvent(e))return;const t=e.dataTransfer?.files??[];return 0!==t.length?[...t]:void 0}_uploadClick(){this._fileRef&&this._fileRef.click()}_onFileChange(e){const t=e.target;if(!t.files)return;const o=[...t.files];o?.length&&this._processFiles(o)}_processFiles(e){this._results=[],this.allowMultiple||(e=[e[0]]),this._filesToProcess=e.length;for(const t of e)this._processFile(t)}_processFile(e){this.loading=!0;const t=new FileReader;t.addEventListener("load",(t=>this._onLoad(e,t?.currentTarget?.result))),t.readAsDataURL(e)}_onLoad(e,t){if(this._results.push({file:e,result:t}),this._results?.length<this._filesToProcess)return;const o={fileId:this.fileId,results:this._results};1!==this._results.length&&this.allowMultiple||(o.file=this._results[0].file,o.result=this._results[0].result),this.upload.emit(o),this._fileRef&&(this._fileRef.value=""),this.loading=!1}static get style(){return"*{box-sizing:border-box}.static{position:static}.flex{display:flex}.hidden{display:none}.w-full{width:100%}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-2{gap:.5rem}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-indigo-500{--tw-border-opacity:1;border-color:rgb(142 179 251/var(--tw-border-opacity,1))}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.border-white-800{--tw-border-opacity:1;border-color:rgb(228 227 227/var(--tw-border-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-positive-green-50{--tw-bg-opacity:1;background-color:rgb(234 253 227/var(--tw-bg-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.p-8{padding:2rem}.text-center{text-align:center}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-indigo-900{--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.text-positive-green-800{--tw-text-opacity:1;color:rgb(47 100 7/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.opacity-50{opacity:.5}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}"}},[769,"p-dropzone",{icon:[1],showIcon:[4,"show-icon"],acceptGroup:[1,"accept-group"],fileId:[1,"file-id"],loading:[4],allowMultiple:[4,"allow-multiple"],uploaded:[4],_isOver:[32]},[[1,"drop","onDrop"],[1,"dragover","onDragOver"],[1,"dragleave","onDragLeave"]]]);function b(){"undefined"!=typeof customElements&&["p-dropzone","p-icon","p-loader"].forEach((t=>{switch(t){case"p-dropzone":customElements.get(e(t))||customElements.define(e(t),p);break;case"p-icon":customElements.get(e(t))||c();break;case"p-loader":customElements.get(e(t))||n()}}))}b();const f=p,h=b;export{f as PDropzone,h as defineCustomElement}
@@ -1 +1 @@
1
- import{E as o,d as s}from"./p-CB3RfZL6.js";const p=o,r=s;export{p as PEmptyState,r as defineCustomElement}
1
+ import{E as o,d as s}from"./p-DgXmfcNf.js";const f=o,m=s;export{f as PEmptyState,m as defineCustomElement}
@@ -1 +1 @@
1
- import{F as o,d as s}from"./p-A2wMRQKW.js";const p=o,r=s;export{p as PFieldContainer,r as defineCustomElement}
1
+ import{F as o,d as s}from"./p-bWeLk9nj.js";const p=o,r=s;export{p as PFieldContainer,r as defineCustomElement}
@@ -1 +1 @@
1
- import{F as s,d as a}from"./p-9C3ias2a.js";const o=s,p=a;export{o as PField,p as defineCustomElement}
1
+ import{F as o,d as s}from"./p-D-CC7BBx.js";const p=o,r=s;export{p as PField,r as defineCustomElement}
@@ -1 +1 @@
1
- import{F as s,d as o}from"./p-UUd1zusc.js";const p=s,r=o;export{p as PFloatingMenuContainer,r as defineCustomElement}
1
+ import{F as o,d as p}from"./p-R1ZwoW7p.js";const s=o,r=p;export{s as PFloatingMenuContainer,r as defineCustomElement}
@@ -1 +1 @@
1
- import{F as o,d as s}from"./p-CMhIKf1I.js";const p=o,r=s;export{p as PFloatingMenuItem,r as defineCustomElement}
1
+ import{F as o,d as r}from"./p-Du6rwBJ8.js";const s=o,p=r;export{s as PFloatingMenuItem,p as defineCustomElement}
@@ -1 +1 @@
1
- import{H as o,d as s}from"./p-BHcIe6BE.js";const p=o,r=s;export{p as PHelper,r as defineCustomElement}
1
+ import{H as o,d as s}from"./p-DW2CgFRa.js";const a=o,p=s;export{a as PHelper,p as defineCustomElement}
@@ -1 +1 @@
1
- import{I as o,d as p}from"./p-DL2YlEpH.js";const s=o,r=p;export{s as PIcon,r as defineCustomElement}
1
+ import{I as o,d as r}from"./p-CPr4Yiq8.js";const s=o,p=r;export{s as PIcon,p as defineCustomElement}
@@ -1 +1 @@
1
- import{I as o,d as s}from"./p-CMmvAq1F.js";const m=o,p=s;export{m as PIllustration,p as defineCustomElement}
1
+ import{I as o,d as s}from"./p-CEucaDLB.js";const a=o,p=s;export{a as PIllustration,p as defineCustomElement}
@@ -1 +1 @@
1
- import{t,p as e,H as a,c as r,h as o}from"./p-CySg37XO.js";import{c as i}from"./p-CBWjHURv.js";import{T as d}from"./p-Au2WuEGF.js";import{d as h}from"./p-DL2YlEpH.js";const n=i(["flex flex-col gap-1","h-inherit w-full px-4 py-3","relative rounded-lg"],{variants:{closeAble:{true:"pr-10"},variant:{neutral:"\n bg-indigo-100\n dark:bg-indigo-300/15\n ",positive:"\n bg-positive-green-100\n dark:bg-positive-green-alternative/15\n ",biased:"\n bg-amber-50\n dark:bg-amber-alternative/15\n ",negative:"\n bg-negative-red-100\n dark:bg-negative-red-alternative/15\n ",feedback:"\n bg-white-700\n dark:bg-hurricane-100/15\n "}}}),c=i("text-sm font-medium",{variants:{variant:{neutral:"\n text-indigo-900\n dark:text-indigo-400\n ",positive:"\n text-positive-green-800\n dark:text-positive-green-alternative\n ",biased:"\n text-amber-800\n dark:text-amber-alternative\n ",negative:"\n text-negative-red-800\n dark:text-negative-red-alternative\n ",feedback:"\n text-storm-800\n dark:text-hurricane-100\n "}}}),s=i(["absolute right-2 top-2","flex items-center justify-center","cursor-pointer rounded-lg","\n text-storm-800/60\n hover:bg-white-500/40 hover:text-storm-800/60\n ","\n dark:text-white/60\n dark:hover:bg-white/15 dark:hover:text-white\n ","h-6 w-6"]),g=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.closed=r(this,"closed",3)}variant="feedback";header;content;closeable=!1;closed;get _el(){return this}render(){const t=!!this._el.querySelector(':scope > [slot="header"]'),e=!!this._el.querySelector(':scope > [slot="content"]');return o(d,{key:"87ae49020797e8641547365c95ff8612133cc199"},o("div",{key:"f19b4f2340c1a85b5c37f744506ce9f518e80ba0",class:n({variant:this.variant,closeAble:this.closeable})},(this.header?.length||t)&&o("div",{key:"49de1f8919c4d0ae223381866417b9757f7f9eb3",class:c({variant:this.variant})},this.header?.length?o("p",{class:"my-0"},this.header):o("slot",{name:"header"})),(this.content?.length||e)&&o("div",{key:"2612d827209f18b1164d907b15eeb7f7d13db969",class:"\n h-inherit text-sm font-normal text-storm-800/60\n dark:text-white/70\n "},this.content?.length?o("p",{class:"my-0"},this.content):o("slot",{name:"content"})),this.closeable&&o("div",{key:"682d40844b695e499d0dbb93144b9f313c0f9da4",class:s(),onClick:()=>this._close()},o("p-icon",{key:"8eeb362cefab7c7ea50f837044668e9633ae947d",variant:"negative"}))))}_close(){this.closed.emit(),this._el.remove()}static get style(){return"*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.relative{position:relative}.right-2{right:.5rem}.top-2{top:.5rem}.my-0{margin-bottom:0;margin-top:0}.flex{display:flex}.h-6{height:1.5rem}.h-inherit{height:inherit}.w-6{width:1.5rem}.w-full{width:100%}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.rounded-lg{border-radius:.5rem}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 250 224/var(--tw-bg-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-negative-red-100{--tw-bg-opacity:1;background-color:rgb(255 221 221/var(--tw-bg-opacity,1))}.bg-positive-green-100{--tw-bg-opacity:1;background-color:rgb(213 251 199/var(--tw-bg-opacity,1))}.bg-white-700{--tw-bg-opacity:1;background-color:rgb(242 242 242/var(--tw-bg-opacity,1))}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.pr-10{padding-right:2.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-amber-800{--tw-text-opacity:1;color:rgb(148 77 11/var(--tw-text-opacity,1))}.text-indigo-900{--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/var(--tw-text-opacity,1))}.text-positive-green-800{--tw-text-opacity:1;color:rgb(47 100 7/var(--tw-text-opacity,1))}.text-storm-800{--tw-text-opacity:1;color:rgb(2 8 21/var(--tw-text-opacity,1))}.text-storm-800\\/60{color:rgba(2,8,21,.6)}.hover\\:bg-white-500\\/40:hover{background-color:hsla(0,0%,100%,.4)}.hover\\:text-storm-800\\/60:hover{color:rgba(2,8,21,.6)}.dark\\:bg-amber-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(255,231,92,.15)}.dark\\:bg-hurricane-100\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(220,3%,83%,.15)}.dark\\:bg-indigo-300\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(187,209,253,.15)}.dark\\:bg-negative-red-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(255,92,92,.15)}.dark\\:bg-positive-green-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(98,255,92,.15)}.dark\\:text-amber-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 231 92/var(--tw-text-opacity,1))}.dark\\:text-hurricane-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-indigo-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(165 194 252/var(--tw-text-opacity,1))}.dark\\:text-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.dark\\:text-positive-green-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(98 255 92/var(--tw-text-opacity,1))}.dark\\:text-white\\/60:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.6)}.dark\\:text-white\\/70:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.7)}.dark\\:hover\\:bg-white\\/15:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:hover\\:text-white:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-amber-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(255,231,92,.15)}.dark\\:bg-hurricane-100\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(220,3%,83%,.15)}.dark\\:bg-indigo-300\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(187,209,253,.15)}.dark\\:bg-negative-red-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(255,92,92,.15)}.dark\\:bg-positive-green-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(98,255,92,.15)}.dark\\:text-amber-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 231 92/var(--tw-text-opacity,1))}.dark\\:text-hurricane-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-indigo-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(165 194 252/var(--tw-text-opacity,1))}.dark\\:text-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.dark\\:text-positive-green-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(98 255 92/var(--tw-text-opacity,1))}.dark\\:text-white\\/60:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.6)}.dark\\:text-white\\/70:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.7)}.dark\\:hover\\:bg-white\\/15:hover:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:hover\\:text-white:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[769,"p-info-panel",{variant:[1],header:[1],content:[1],closeable:[4]}]);function b(){"undefined"!=typeof customElements&&["p-info-panel","p-icon"].forEach((e=>{switch(e){case"p-info-panel":customElements.get(t(e))||customElements.define(t(e),g);break;case"p-icon":customElements.get(t(e))||h()}}))}b();const l=g,k=b;export{l as PInfoPanel,k as defineCustomElement}
1
+ import{t,p as e,H as a,c as r,h as o}from"./p-CySg37XO.js";import{c as d}from"./p-CBWjHURv.js";import{T as i}from"./p-Au2WuEGF.js";import{d as h}from"./p-CPr4Yiq8.js";const n=d(["flex flex-col gap-1","h-inherit w-full px-4 py-3","relative rounded-lg"],{variants:{closeAble:{true:"pr-10"},variant:{neutral:"\n bg-indigo-100\n dark:bg-indigo-300/15\n ",positive:"\n bg-positive-green-100\n dark:bg-positive-green-alternative/15\n ",biased:"\n bg-amber-50\n dark:bg-amber-alternative/15\n ",negative:"\n bg-negative-red-100\n dark:bg-negative-red-alternative/15\n ",feedback:"\n bg-white-700\n dark:bg-hurricane-100/15\n "}}}),c=d("text-sm font-medium",{variants:{variant:{neutral:"\n text-indigo-900\n dark:text-indigo-400\n ",positive:"\n text-positive-green-800\n dark:text-positive-green-alternative\n ",biased:"\n text-amber-800\n dark:text-amber-alternative\n ",negative:"\n text-negative-red-800\n dark:text-negative-red-alternative\n ",feedback:"\n text-storm-800\n dark:text-hurricane-100\n "}}}),s=d(["absolute right-2 top-2","flex items-center justify-center","cursor-pointer rounded-lg","\n text-storm-800/60\n hover:bg-white-500/40 hover:text-storm-800/60\n ","\n dark:text-white/60\n dark:hover:bg-white/15 dark:hover:text-white\n ","h-6 w-6"]),g=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.closed=r(this,"closed",3)}variant="feedback";header;content;closeable=!1;closed;get _el(){return this}render(){const t=!!this._el.querySelector(':scope > [slot="header"]'),e=!!this._el.querySelector(':scope > [slot="content"]');return o(i,{key:"effb38193e5597af8e484137f8dc758999d2c52a"},o("div",{key:"14cb61d11f41c4ec4b34689fb20a2cd71a9204a6",class:n({variant:this.variant,closeAble:this.closeable})},(this.header?.length||t)&&o("div",{key:"a1ceeb47d24d9d108044d0078d3da39f5efb81e1",class:c({variant:this.variant})},this.header?.length?o("p",{class:"my-0"},this.header):o("slot",{name:"header"})),(this.content?.length||e)&&o("div",{key:"0221101d1e13cd55a8e4b7d36406e3c212dc3b79",class:"\n h-inherit text-sm font-normal text-storm-800/60\n dark:text-white/70\n "},this.content?.length?o("p",{class:"my-0"},this.content):o("slot",{name:"content"})),this.closeable&&o("div",{key:"1a23880fa9eaf54d38f13e21e241cb21fece511d",class:s(),onClick:()=>this._close()},o("p-icon",{key:"717beeeb7f1cb95688f2df6712b284280acc446c",variant:"negative"}))))}_close(){this.closed.emit(),this._el.remove()}static get style(){return"*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.relative{position:relative}.right-2{right:.5rem}.top-2{top:.5rem}.my-0{margin-bottom:0;margin-top:0}.flex{display:flex}.h-6{height:1.5rem}.h-inherit{height:inherit}.w-6{width:1.5rem}.w-full{width:100%}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.rounded-lg{border-radius:.5rem}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 250 224/var(--tw-bg-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-negative-red-100{--tw-bg-opacity:1;background-color:rgb(255 221 221/var(--tw-bg-opacity,1))}.bg-positive-green-100{--tw-bg-opacity:1;background-color:rgb(213 251 199/var(--tw-bg-opacity,1))}.bg-white-700{--tw-bg-opacity:1;background-color:rgb(242 242 242/var(--tw-bg-opacity,1))}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.pr-10{padding-right:2.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-amber-800{--tw-text-opacity:1;color:rgb(148 77 11/var(--tw-text-opacity,1))}.text-indigo-900{--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/var(--tw-text-opacity,1))}.text-positive-green-800{--tw-text-opacity:1;color:rgb(47 100 7/var(--tw-text-opacity,1))}.text-storm-800{--tw-text-opacity:1;color:rgb(2 8 21/var(--tw-text-opacity,1))}.text-storm-800\\/60{color:rgba(2,8,21,.6)}.hover\\:bg-white-500\\/40:hover{background-color:hsla(0,0%,100%,.4)}.hover\\:text-storm-800\\/60:hover{color:rgba(2,8,21,.6)}.dark\\:bg-amber-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(255,231,92,.15)}.dark\\:bg-hurricane-100\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(220,3%,83%,.15)}.dark\\:bg-indigo-300\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(187,209,253,.15)}.dark\\:bg-negative-red-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(255,92,92,.15)}.dark\\:bg-positive-green-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(98,255,92,.15)}.dark\\:text-amber-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 231 92/var(--tw-text-opacity,1))}.dark\\:text-hurricane-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-indigo-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(165 194 252/var(--tw-text-opacity,1))}.dark\\:text-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.dark\\:text-positive-green-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(98 255 92/var(--tw-text-opacity,1))}.dark\\:text-white\\/60:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.6)}.dark\\:text-white\\/70:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.7)}.dark\\:hover\\:bg-white\\/15:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:hover\\:text-white:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-amber-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(255,231,92,.15)}.dark\\:bg-hurricane-100\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(220,3%,83%,.15)}.dark\\:bg-indigo-300\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(187,209,253,.15)}.dark\\:bg-negative-red-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(255,92,92,.15)}.dark\\:bg-positive-green-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(98,255,92,.15)}.dark\\:text-amber-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 231 92/var(--tw-text-opacity,1))}.dark\\:text-hurricane-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-indigo-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(165 194 252/var(--tw-text-opacity,1))}.dark\\:text-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.dark\\:text-positive-green-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(98 255 92/var(--tw-text-opacity,1))}.dark\\:text-white\\/60:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.6)}.dark\\:text-white\\/70:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.7)}.dark\\:hover\\:bg-white\\/15:hover:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:hover\\:text-white:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[769,"p-info-panel",{variant:[1],header:[1],content:[1],closeable:[4]}]);function b(){"undefined"!=typeof customElements&&["p-info-panel","p-icon"].forEach((e=>{switch(e){case"p-info-panel":customElements.get(t(e))||customElements.define(t(e),g);break;case"p-icon":customElements.get(t(e))||h()}}))}b();const l=g,k=b;export{l as PInfoPanel,k as defineCustomElement}
@@ -1 +1 @@
1
- import{t,p as e,H as a,c as r,h as o}from"./p-CySg37XO.js";import{a as i,c as s,o as n,f as h,s as d}from"./p-CeBIrPPx.js";import{c}from"./p-CBWjHURv.js";import{T as p}from"./p-Au2WuEGF.js";const l=c(["inline-block px-2","text-xs","opacity-0 drop-shadow-3 transition-opacity","rounded-lg","z-tooltip","pointer-events-none"],{variants:{variant:{hover:"\n max-w-[14.5rem] bg-storm-500 py-1 text-white\n dark:bg-white dark:text-storm-300\n ",click:"max-w-[18rem]",error:"w-full max-w-full"},strategy:{fixed:"fixed",absolute:"absolute"}},compoundVariants:[{variant:["hover","click"],class:"w-max"},{variant:["click","error"],class:"\n bg-white py-2 text-storm-300\n dark:bg-hurricane-800 dark:text-hurricane-200\n "}]}),b=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.isOpen=r(this,"isOpen",3)}variant="hover";content;placement;offset=8;strategy="absolute";enableUserInput=!0;show=!1;canManuallyClose=!0;isOpen;get _el(){return this}_hasContentSlot=!1;_loaded=!1;_popover;_cleanup;componentWillLoad(){this._hasContentSlot=!!this._el.querySelector(':scope > [slot="content"]')}componentShouldUpdate(){this._update()}disconnectedCallback(){this._cleanup&&(this._cleanup(),this._cleanup=null)}render(){return o(p,{key:"20bdd1bec32da57c6726d73a07d5f82fb3acaa80","data-filled":this.content?.length>0||this._hasContentSlot},o("slot",{key:"03034eaa1d19b613c4c097a378d224b79acab473",name:"trigger"}),o("div",{key:"d1ea8eed0b2ab04117f7e2f1d3b32a710c49726c",class:l({variant:this.variant,strategy:this.strategy}),"data-placement":this.placement,ref:t=>this._load(t),role:"popover"},o("div",{key:"91944080d3d30625478ed2c9f56dbafe7e34c253",class:"flex gap-2 whitespace-normal"},"error"===this.variant&&o("div",{key:"c7f95766a424908bd4dabcbf6edd0e8ac4d815d0",class:"\n w-[2px] bg-negative-red-500\n dark:bg-negative-red-alternative\n "}),this.content??o("slot",{key:"873c0139e49366b94630a5f40e56705a9ed89bf2",name:"content"}))))}clickHandler(){"hover"!==this.variant&&this.enableUserInput&&this._popover&&(Object.hasOwn(this._popover.dataset,"show")||this._show())}documentClickHandler(){"hover"!==this.variant&&this.canManuallyClose&&!this.show&&this._popover&&Object.hasOwn(this._popover.dataset,"show")&&this._hide()}mouseEnterHandler(){"hover"===this.variant&&this.enableUserInput&&this._show()}mouseLeaveHandler(){!this.show&&"hover"===this.variant&&this.enableUserInput&&this._hide()}onShowChange(t){if(this._popover)return t&&!Object.hasOwn(this._popover.dataset,"show")?this._show():this._hide()}onContentChange(t){!t||t.length>0||this._hide()}_show(){this._loaded&&(this.content?.length||this._hasContentSlot?(this._cleanup=i(this._el,this._popover,(()=>this._update())),this._popover.dataset.show="",this._popover.classList.remove("opacity-0","pointer-events-none"),this._popover.classList.add("opacity-100","pointer-events-auto"),this.isOpen.emit(!0)):Object.hasOwn(this._popover.dataset,"show")&&this._hide())}_hide(){this._loaded&&(this._cleanup&&(this._cleanup(),this._cleanup=null),delete this._popover.dataset.show,this._popover.classList.remove("opacity-100","pointer-events-auto"),this._popover.classList.add("opacity-0","pointer-events-none"),this.isOpen.emit(!1))}_load(t){this._popover=t,t&&(this._update(),this._loaded=!0,this.show&&setTimeout((()=>this._show()),100))}_update(){this._popover&&s(this._el,this._popover,{placement:"error"!==this.variant||this.placement?this.placement??"top":"bottom-start",strategy:this.strategy,middleware:[n(this.offset),h(),d()]}).then((({x:t,y:e,placement:a})=>{this._popover.dataset.placement=a,Object.assign(this._popover.style,{top:`${e}px`,left:`${t}px`})}))}static get watchers(){return{show:[{onShowChange:0}],content:[{onContentChange:0}]}}static get style(){return".relative{position:relative}.h-inherit{height:inherit}.w-inherit{width:inherit}*{box-sizing:border-box}:host{height:inherit;max-width:100%;position:relative;width:inherit}:host([data-filled]){cursor:pointer}:host(:not([data-filled])){cursor:auto}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.z-tooltip{z-index:400}.inline-block{display:inline-block}.flex{display:flex}.w-\\[2px\\]{width:2px}.w-full{width:100%}.w-max{width:max-content}.max-w-\\[14\\.5rem\\]{max-width:14.5rem}.max-w-\\[18rem\\]{max-width:18rem}.max-w-full{max-width:100%}.gap-2{gap:.5rem}.whitespace-normal{white-space:normal}.rounded-lg{border-radius:.5rem}.bg-negative-red-500{--tw-bg-opacity:1;background-color:rgb(230 30 30/var(--tw-bg-opacity,1))}.bg-storm-500{--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.text-xs{font-size:.75rem;line-height:1rem}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.blur{--tw-blur:blur(8px)}.blur,.drop-shadow-3{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-3{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.08)) drop-shadow(0 2px 2px rgba(0,2,2,.08)) drop-shadow(0 4px 4px rgba(0,2,2,.08))}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.dark\\:bg-hurricane-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}.dark\\:bg-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(255 92 92/var(--tw-bg-opacity,1))}.dark\\:bg-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-storm-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:bg-hurricane-800:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}.dark\\:bg-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 92 92/var(--tw-bg-opacity,1))}.dark\\:bg-white:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-storm-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}"}},[769,"p-tooltip",{variant:[1],content:[1],placement:[1],offset:[2],strategy:[1],enableUserInput:[4,"enable-user-input"],show:[4],canManuallyClose:[4,"can-manually-close"]},[[2,"click","clickHandler"],[6,"click","documentClickHandler"],[1,"mouseenter","mouseEnterHandler"],[0,"focus","mouseEnterHandler"],[1,"mouseleave","mouseLeaveHandler"],[0,"blur","mouseLeaveHandler"]],{show:[{onShowChange:0}],content:[{onContentChange:0}]}]);function w(){"undefined"!=typeof customElements&&["p-tooltip"].forEach((e=>{"p-tooltip"===e&&(customElements.get(t(e))||customElements.define(t(e),b))}))}w();export{b as T,w as d}
1
+ import{t,p as e,H as a,c as r,h as o}from"./p-CySg37XO.js";import{a as i,c as s,o as n,f as h,s as d}from"./p-CeBIrPPx.js";import{c}from"./p-CBWjHURv.js";import{T as p}from"./p-Au2WuEGF.js";const l=c(["inline-block px-2","text-xs","opacity-0 drop-shadow-3 transition-opacity","rounded-lg","z-tooltip","pointer-events-none"],{variants:{variant:{hover:"\n max-w-[14.5rem] bg-storm-500 py-1 text-white\n dark:bg-white dark:text-storm-300\n ",click:"max-w-[18rem]",error:"w-full max-w-full"},strategy:{fixed:"fixed",absolute:"absolute"}},compoundVariants:[{variant:["hover","click"],class:"w-max"},{variant:["click","error"],class:"\n bg-white py-2 text-storm-300\n dark:bg-hurricane-800 dark:text-hurricane-200\n "}]}),b=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.isOpen=r(this,"isOpen",3)}variant="hover";content;placement;offset=8;strategy="absolute";enableUserInput=!0;show=!1;canManuallyClose=!0;isOpen;get _el(){return this}_hasContentSlot=!1;_loaded=!1;_popover;_cleanup;componentWillLoad(){this._hasContentSlot=!!this._el.querySelector(':scope > [slot="content"]')}componentShouldUpdate(){this._update()}disconnectedCallback(){this._cleanup&&(this._cleanup(),this._cleanup=null)}render(){return o(p,{key:"b7236e3ce5912e9ba30714da4c2e7af49086f834","data-filled":this.content?.length>0||this._hasContentSlot},o("slot",{key:"cf670f071402f8f8c8e410b0ac5cd71e04e66c83",name:"trigger"}),o("div",{key:"6070ac034b4430f7e7e34f18b057983d1a0c2f6e",class:l({variant:this.variant,strategy:this.strategy}),"data-placement":this.placement,ref:t=>this._load(t),role:"popover"},o("div",{key:"bdfd98d1aa78a4b381744740ed5f6e8ee5d892d2",class:"flex gap-2 whitespace-normal"},"error"===this.variant&&o("div",{key:"1d146ca53838e1d02026e2106ad878348ac9c668",class:"\n w-[2px] bg-negative-red-500\n dark:bg-negative-red-alternative\n "}),this.content??o("slot",{key:"a7b9a33b688c70778870545029b19d99cbaa5cb5",name:"content"}))))}clickHandler(){"hover"!==this.variant&&this.enableUserInput&&this._popover&&(Object.hasOwn(this._popover.dataset,"show")||this._show())}documentClickHandler(){"hover"!==this.variant&&this.canManuallyClose&&!this.show&&this._popover&&Object.hasOwn(this._popover.dataset,"show")&&this._hide()}mouseEnterHandler(){"hover"===this.variant&&this.enableUserInput&&this._show()}mouseLeaveHandler(){!this.show&&"hover"===this.variant&&this.enableUserInput&&this._hide()}onShowChange(t){if(this._popover)return t&&!Object.hasOwn(this._popover.dataset,"show")?this._show():this._hide()}onContentChange(t){!t||t.length>0||this._hide()}_show(){this._loaded&&(this.content?.length||this._hasContentSlot?(this._cleanup=i(this._el,this._popover,(()=>this._update())),this._popover.dataset.show="",this._popover.classList.remove("opacity-0","pointer-events-none"),this._popover.classList.add("opacity-100","pointer-events-auto"),this.isOpen.emit(!0)):Object.hasOwn(this._popover.dataset,"show")&&this._hide())}_hide(){this._loaded&&(this._cleanup&&(this._cleanup(),this._cleanup=null),delete this._popover.dataset.show,this._popover.classList.remove("opacity-100","pointer-events-auto"),this._popover.classList.add("opacity-0","pointer-events-none"),this.isOpen.emit(!1))}_load(t){this._popover=t,t&&(this._update(),this._loaded=!0,this.show&&setTimeout((()=>this._show()),100))}_update(){this._popover&&s(this._el,this._popover,{placement:"error"!==this.variant||this.placement?this.placement??"top":"bottom-start",strategy:this.strategy,middleware:[n(this.offset),h(),d()]}).then((({x:t,y:e,placement:a})=>{this._popover.dataset.placement=a,Object.assign(this._popover.style,{top:`${e}px`,left:`${t}px`})}))}static get watchers(){return{show:[{onShowChange:0}],content:[{onContentChange:0}]}}static get style(){return".relative{position:relative}.h-inherit{height:inherit}.w-inherit{width:inherit}*{box-sizing:border-box}:host{height:inherit;max-width:100%;position:relative;width:inherit}:host([data-filled]){cursor:pointer}:host(:not([data-filled])){cursor:auto}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.z-tooltip{z-index:400}.inline-block{display:inline-block}.flex{display:flex}.w-\\[2px\\]{width:2px}.w-full{width:100%}.w-max{width:max-content}.max-w-\\[14\\.5rem\\]{max-width:14.5rem}.max-w-\\[18rem\\]{max-width:18rem}.max-w-full{max-width:100%}.gap-2{gap:.5rem}.whitespace-normal{white-space:normal}.rounded-lg{border-radius:.5rem}.bg-negative-red-500{--tw-bg-opacity:1;background-color:rgb(230 30 30/var(--tw-bg-opacity,1))}.bg-storm-500{--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.text-xs{font-size:.75rem;line-height:1rem}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.blur{--tw-blur:blur(8px)}.blur,.drop-shadow-3{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-3{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.08)) drop-shadow(0 2px 2px rgba(0,2,2,.08)) drop-shadow(0 4px 4px rgba(0,2,2,.08))}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.dark\\:bg-hurricane-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}.dark\\:bg-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(255 92 92/var(--tw-bg-opacity,1))}.dark\\:bg-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-storm-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:bg-hurricane-800:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}.dark\\:bg-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 92 92/var(--tw-bg-opacity,1))}.dark\\:bg-white:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-storm-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}"}},[769,"p-tooltip",{variant:[1],content:[1],placement:[1],offset:[2],strategy:[1],enableUserInput:[4,"enable-user-input"],show:[4],canManuallyClose:[4,"can-manually-close"]},[[2,"click","clickHandler"],[6,"click","documentClickHandler"],[1,"mouseenter","mouseEnterHandler"],[0,"focus","mouseEnterHandler"],[1,"mouseleave","mouseLeaveHandler"],[0,"blur","mouseLeaveHandler"]],{show:[{onShowChange:0}],content:[{onContentChange:0}]}]);function w(){"undefined"!=typeof customElements&&["p-tooltip"].forEach((e=>{"p-tooltip"===e&&(customElements.get(t(e))||customElements.define(t(e),b))}))}w();export{b as T,w as d}
@@ -1 +1 @@
1
- import{t,p as e,H as a,h as r}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as i}from"./p-Au2WuEGF.js";import{c as d}from"./p-xs4N_Y-0.js";import{d as n}from"./p-DL2YlEpH.js";const c=o(["flex items-center justify-center gap-2","h-6 rounded-full"],{variants:{variant:{positive:["bg-positive-green-100 text-positive-green-800","\n dark:bg-positive-green-alternative/15\n dark:text-positive-green-alternative\n "],biased:["bg-amber-100 text-amber-800","dark:bg-amber-alternative/15 dark:text-amber-alternative"],negative:["bg-negative-red-100 text-negative-red-800","dark:bg-negative-red-alternative/15 dark:text-negative-red-alternative"],neutral:["bg-indigo-100 text-indigo-900","dark:bg-indigo-300/15 dark:text-indigo-400"],unavailable:["bg-white-700 text-storm-800","dark:bg-hurricane-100/15 dark:text-hurricane-100"]},iconOnly:{false:"px-2",true:"w-6 p-2"},keepMobileContent:{false:null,true:null}},compoundVariants:[{keepMobileContent:!1,iconOnly:!1,class:"\n w-6 p-2\n desktop-xs:w-auto desktop-xs:py-0\n "}]}),s=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}variant="neutral";iconOnly=!1;icon;iconFlip;iconRotate;keepMobileContent=!1;render(){return r(i,{key:"104ee5d95a9a998e9ff5d50a0319db1131dd49a9"},r("div",{key:"d0d2d11eab222b5183d5a835b3bd2fb195295552",class:c({variant:this.variant,iconOnly:this.iconOnly,keepMobileContent:this.keepMobileContent})},this.icon&&r("p-icon",{key:"920c633b134bfca8b0643e8a8174bf66aa7066de",class:"flex-shrink-0",flip:this.iconFlip,rotate:this.iconRotate,variant:this.icon}),!this.iconOnly&&r("div",{key:"a178ec5c8f8543cd6b2f746cff170e43be54ff04",class:d("\n flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm\n font-medium\n ",{hidden:!this.keepMobileContent,"desktop-xs:block":!this.keepMobileContent})},r("slot",{key:"d8ef0efd720dbb24690ef5b354277eb84ede8921"}))))}static get style(){return"*{box-sizing:border-box}.static{position:static}.flex{display:flex}.hidden{display:none}.h-6{height:1.5rem}.w-6{width:1.5rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.bg-amber-100{--tw-bg-opacity:1;background-color:rgb(255 246 194/var(--tw-bg-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-negative-red-100{--tw-bg-opacity:1;background-color:rgb(255 221 221/var(--tw-bg-opacity,1))}.bg-positive-green-100{--tw-bg-opacity:1;background-color:rgb(213 251 199/var(--tw-bg-opacity,1))}.bg-white-700{--tw-bg-opacity:1;background-color:rgb(242 242 242/var(--tw-bg-opacity,1))}.p-2{padding:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.text-amber-800{--tw-text-opacity:1;color:rgb(148 77 11/var(--tw-text-opacity,1))}.text-indigo-900{--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/var(--tw-text-opacity,1))}.text-positive-green-800{--tw-text-opacity:1;color:rgb(47 100 7/var(--tw-text-opacity,1))}.text-storm-800{--tw-text-opacity:1;color:rgb(2 8 21/var(--tw-text-opacity,1))}@media (min-width:64rem){.desktop-xs\\:block{display:block}.desktop-xs\\:w-auto{width:auto}.desktop-xs\\:py-0{padding-bottom:0;padding-top:0}}.dark\\:bg-amber-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(255,231,92,.15)}.dark\\:bg-hurricane-100\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(220,3%,83%,.15)}.dark\\:bg-indigo-300\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(187,209,253,.15)}.dark\\:bg-negative-red-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(255,92,92,.15)}.dark\\:bg-positive-green-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(98,255,92,.15)}.dark\\:text-amber-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 231 92/var(--tw-text-opacity,1))}.dark\\:text-hurricane-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-indigo-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(165 194 252/var(--tw-text-opacity,1))}.dark\\:text-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.dark\\:text-positive-green-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(98 255 92/var(--tw-text-opacity,1))}.dark\\:bg-amber-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(255,231,92,.15)}.dark\\:bg-hurricane-100\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(220,3%,83%,.15)}.dark\\:bg-indigo-300\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(187,209,253,.15)}.dark\\:bg-negative-red-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(255,92,92,.15)}.dark\\:bg-positive-green-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(98,255,92,.15)}.dark\\:text-amber-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 231 92/var(--tw-text-opacity,1))}.dark\\:text-hurricane-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-indigo-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(165 194 252/var(--tw-text-opacity,1))}.dark\\:text-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.dark\\:text-positive-green-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(98 255 92/var(--tw-text-opacity,1))}"}},[769,"p-label",{variant:[513],iconOnly:[516,"icon-only"],icon:[513],iconFlip:[1,"icon-flip"],iconRotate:[2,"icon-rotate"],keepMobileContent:[516,"keep-mobile-content"]}]);function l(){"undefined"!=typeof customElements&&["p-label","p-icon"].forEach((e=>{switch(e){case"p-label":customElements.get(t(e))||customElements.define(t(e),s);break;case"p-icon":customElements.get(t(e))||n()}}))}l();const g=s,h=l;export{g as PLabel,h as defineCustomElement}
1
+ import{t,p as e,H as a,h as r}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as i}from"./p-Au2WuEGF.js";import{c as d}from"./p-xs4N_Y-0.js";import{d as n}from"./p-CPr4Yiq8.js";const c=o(["flex items-center justify-center gap-2","h-6 rounded-full"],{variants:{variant:{positive:["bg-positive-green-100 text-positive-green-800","\n dark:bg-positive-green-alternative/15\n dark:text-positive-green-alternative\n "],biased:["bg-amber-100 text-amber-800","dark:bg-amber-alternative/15 dark:text-amber-alternative"],negative:["bg-negative-red-100 text-negative-red-800","dark:bg-negative-red-alternative/15 dark:text-negative-red-alternative"],neutral:["bg-indigo-100 text-indigo-900","dark:bg-indigo-300/15 dark:text-indigo-400"],unavailable:["bg-white-700 text-storm-800","dark:bg-hurricane-100/15 dark:text-hurricane-100"]},iconOnly:{false:"px-2",true:"w-6 p-2"},keepMobileContent:{false:null,true:null}},compoundVariants:[{keepMobileContent:!1,iconOnly:!1,class:"\n w-6 p-2\n desktop-xs:w-auto desktop-xs:py-0\n "}]}),s=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}variant="neutral";iconOnly=!1;icon;iconFlip;iconRotate;keepMobileContent=!1;render(){return r(i,{key:"2dcb1d9bafb86433ad4bc24a7f1947ca52656056"},r("div",{key:"ce580094967f042bef6aef229b393709f0993c34",class:c({variant:this.variant,iconOnly:this.iconOnly,keepMobileContent:this.keepMobileContent})},this.icon&&r("p-icon",{key:"450bf31eec5f09c5b326f7819841f9b6dc155993",class:"flex-shrink-0",flip:this.iconFlip,rotate:this.iconRotate,variant:this.icon}),!this.iconOnly&&r("div",{key:"825b6996bba84ffeb67dd8f4cfb114b0034599bf",class:d("\n flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm\n font-medium\n ",{hidden:!this.keepMobileContent,"desktop-xs:block":!this.keepMobileContent})},r("slot",{key:"6d71814586719b1b7898d5f46033a8d46ed63974"}))))}static get style(){return"*{box-sizing:border-box}.static{position:static}.flex{display:flex}.hidden{display:none}.h-6{height:1.5rem}.w-6{width:1.5rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.bg-amber-100{--tw-bg-opacity:1;background-color:rgb(255 246 194/var(--tw-bg-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-negative-red-100{--tw-bg-opacity:1;background-color:rgb(255 221 221/var(--tw-bg-opacity,1))}.bg-positive-green-100{--tw-bg-opacity:1;background-color:rgb(213 251 199/var(--tw-bg-opacity,1))}.bg-white-700{--tw-bg-opacity:1;background-color:rgb(242 242 242/var(--tw-bg-opacity,1))}.p-2{padding:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.text-amber-800{--tw-text-opacity:1;color:rgb(148 77 11/var(--tw-text-opacity,1))}.text-indigo-900{--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/var(--tw-text-opacity,1))}.text-positive-green-800{--tw-text-opacity:1;color:rgb(47 100 7/var(--tw-text-opacity,1))}.text-storm-800{--tw-text-opacity:1;color:rgb(2 8 21/var(--tw-text-opacity,1))}@media (min-width:64rem){.desktop-xs\\:block{display:block}.desktop-xs\\:w-auto{width:auto}.desktop-xs\\:py-0{padding-bottom:0;padding-top:0}}.dark\\:bg-amber-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(255,231,92,.15)}.dark\\:bg-hurricane-100\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(220,3%,83%,.15)}.dark\\:bg-indigo-300\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(187,209,253,.15)}.dark\\:bg-negative-red-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(255,92,92,.15)}.dark\\:bg-positive-green-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(98,255,92,.15)}.dark\\:text-amber-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 231 92/var(--tw-text-opacity,1))}.dark\\:text-hurricane-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-indigo-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(165 194 252/var(--tw-text-opacity,1))}.dark\\:text-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.dark\\:text-positive-green-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(98 255 92/var(--tw-text-opacity,1))}.dark\\:bg-amber-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(255,231,92,.15)}.dark\\:bg-hurricane-100\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(220,3%,83%,.15)}.dark\\:bg-indigo-300\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(187,209,253,.15)}.dark\\:bg-negative-red-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(255,92,92,.15)}.dark\\:bg-positive-green-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(98,255,92,.15)}.dark\\:text-amber-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 231 92/var(--tw-text-opacity,1))}.dark\\:text-hurricane-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-indigo-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(165 194 252/var(--tw-text-opacity,1))}.dark\\:text-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.dark\\:text-positive-green-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(98 255 92/var(--tw-text-opacity,1))}"}},[769,"p-label",{variant:[513],iconOnly:[516,"icon-only"],icon:[513],iconFlip:[1,"icon-flip"],iconRotate:[2,"icon-rotate"],keepMobileContent:[516,"keep-mobile-content"]}]);function b(){"undefined"!=typeof customElements&&["p-label","p-icon"].forEach((e=>{switch(e){case"p-label":customElements.get(t(e))||customElements.define(t(e),s);break;case"p-icon":customElements.get(t(e))||n()}}))}b();const g=s,h=b;export{g as PLabel,h as defineCustomElement}
@@ -1 +1 @@
1
- import{t,p as e,H as i,c as n,h as d,d as r}from"./p-CySg37XO.js";const a=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.scroll=n(this,"scroll",7)}variant="default";scroll;render(){return d(r,{key:"68c0d8d671ff7758d15b9e5fc3900e83a37b2eaa",class:"variant-"+this.variant},d("div",{key:"eb69411e0da0701d56d75b9806ea30803c3d2ab5",class:"content",onScroll:t=>this.scroll.emit(t)},d("div",{key:"afa8292a2724d7324241bf1f1e1169dd8a8bb268",class:"inner-content"},d("slot",{key:"13c05d1069df30d05e90e67870c0f14226f76496",name:"content"})),d("slot",{key:"3e9aa54d08187ef8b10fe039d5d9dc671416815e",name:"outer-content"})),d("div",{key:"0a9d15f56b5657848300a4f508f00bd97f4d830b",class:"sidebar"},d("slot",{key:"511235651ac7b904b6d5235d08d7fcf1c7ad4bbd",name:"sidebar"})),d("div",{key:"ae22647a35c67825bfdc607387baaf0ec6cdbb2c",class:"topbar"},d("slot",{key:"04692b01dc2912d2cc7f3d390dc1908d235fe014",name:"topbar"})))}static get style(){return'.relative{position:relative}.sticky{position:sticky}.z-\\[11\\]{z-index:11}.box-border{box-sizing:border-box}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-dvh{height:100dvh}.h-full{height:100%}.w-full{width:100%}.w-unset{width:unset}.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.items-center{align-items:center}.overflow-y-auto{overflow-y:auto}.px-content-mobile-x{padding-left:1rem;padding-right:1rem}*{box-sizing:border-box}:host{display:grid;gap:0;grid-template-areas:"sidebar" "topbar" "content";grid-template-columns:1fr;grid-template-rows:repeat(2,min-content) 1fr;height:100dvh;width:100dvw}@media (min-width:80rem){:host{grid-template-areas:"topbar topbar" "sidebar content";grid-template-columns:auto 1fr;grid-template-rows:min-content 1fr}}:host .content,:host .sidebar,:host .topbar{align-self:flex-start}:host .topbar{grid-area:topbar;position:sticky;width:100%;z-index:11}:host .sidebar{box-sizing:border-box;display:flex;grid-area:sidebar;height:100%;width:100%}@media (min-width:80rem){:host .sidebar{width:15rem}}:host .content{display:flex;flex-direction:column;grid-area:content;height:100%;overflow-x:hidden;overflow-y:auto;padding:1.5rem 1rem;position:relative}@media (min-width:40rem){:host .content{padding:2rem}}@media (min-width:80rem){:host .content{padding:2rem 1.5rem 1.5rem}}@media (min-width:90rem){:host .content{padding:2rem}}@media (min-width:120rem){:host .content{padding-bottom:5rem;padding-left:5rem;padding-right:2rem}}@media (min-width:160rem){:host .content{padding-bottom:7.5rem;padding-left:7.5rem;padding-top:4rem}}:host .content .inner-content{flex:1 1 0%;position:relative}@media (min-width:80rem){:host .content .inner-content{width:62rem}}@media (min-width:90rem){:host .content .inner-content{width:71rem}}@media (min-width:96rem){:host .content .inner-content{width:77rem}}@media (min-width:105rem){:host .content .inner-content{width:83rem}}:host(.variant-default) .content{flex:1 1 0%}:host(.variant-login){grid-template-areas:"topbar topbar" "content content"}@media (min-width:80rem){:host(.variant-login){grid-template-areas:"topbar topbar" "content sidebar"}}:host(.variant-login) .sidebar{display:none;flex:1 1 0%;overflow:hidden;padding:.5rem;width:unset}@media (min-width:80rem){:host(.variant-login) .sidebar{display:flex}}:host(.variant-login) .sidebar .inner-content{padding:.5rem}:host(.variant-login) .content{align-items:center;height:100dvh;padding:calc(env(safe-area-inset-top) + 3.5rem) 1rem 1.5rem}@media (min-width:80rem){:host(.variant-login) .content{height:100%;justify-content:center;padding:1.5rem 4.5rem 0}}:host(.variant-login) .content .inner-content{box-sizing:border-box;flex:unset;width:100%}@media (min-width:40rem){:host(.variant-login) .content .inner-content{width:21rem}}@media (min-width:80rem){:host(.variant-office) .content .inner-content{width:58rem}}@media (min-width:90rem){:host(.variant-office) .content .inner-content{width:67rem}}@media (min-width:96rem){:host(.variant-office) .content .inner-content{width:73rem}}@media (min-width:105rem){:host(.variant-office) .content .inner-content{width:79rem}}@media (min-width:120rem){:host(.variant-office) .content .inner-content{width:82rem}}@media (min-width:160rem){:host(.variant-office) .content .inner-content{width:84.5rem}}@media (min-width:80rem){:host(.variant-office) .sidebar{width:19rem}}@media (min-width:105rem){:host(.variant-office) .sidebar{width:22rem}}@media (min-width:80rem){.layout-1280\\:flex{display:flex}.layout-1280\\:w-\\[19rem\\]{width:19rem}.layout-1280\\:w-\\[58rem\\]{width:58rem}.layout-1280\\:p-6{padding:1.5rem}.layout-1280\\:px-18{padding-left:4.5rem;padding-right:4.5rem}}@media (min-width:90rem){.layout-1440\\:w-\\[67rem\\]{width:67rem}}@media (min-width:96rem){.layout-1536\\:w-\\[73rem\\]{width:73rem}}@media (min-width:105rem){.layout-1680\\:w-\\[22rem\\]{width:22rem}.layout-1680\\:w-\\[79rem\\]{width:79rem}}@media (min-width:120rem){.layout-1920\\:w-\\[82rem\\]{width:82rem}.layout-1920\\:pl-20{padding-left:5rem}.layout-1920\\:pr-8{padding-right:2rem}}@media (min-width:160rem){.layout-2560\\:w-\\[84\\.5rem\\]{width:84.5rem}.layout-2560\\:pb-\\[7\\.5rem\\]{padding-bottom:7.5rem}.layout-2560\\:pl-\\[7\\.5rem\\]{padding-left:7.5rem}.layout-2560\\:pt-16{padding-top:4rem}}.static{position:static}'}},[769,"p-layout",{variant:[1]}]);function o(){"undefined"!=typeof customElements&&["p-layout"].forEach((e=>{"p-layout"===e&&(customElements.get(t(e))||customElements.define(t(e),a))}))}o();const m=a,s=o;export{m as PLayout,s as defineCustomElement}
1
+ import{t as e,p as t,H as i,c as n,h as a,d as r}from"./p-CySg37XO.js";const d=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.scroll=n(this,"scroll",7)}variant="default";scroll;render(){return a(r,{key:"d01fb1020c3647bf8010bbd17419e8c66ce1c96d",class:"variant-"+this.variant},a("div",{key:"9ff8a4475fd1b9bea0d60c79cef445cc56441641",class:"content",onScroll:e=>this.scroll.emit(e)},a("div",{key:"0b0538ea3608acb8ab5cfbdb68ee1094dfca142a",class:"inner-content"},a("slot",{key:"246a0d0513aa4e11d0c8b3a528235433c2ae5cd2",name:"content"})),a("slot",{key:"174efaf8981ee49561f8718436da8b86b19a4550",name:"outer-content"})),a("div",{key:"780403256ca296797290cbb4a59bd8964ccffbc4",class:"sidebar"},a("slot",{key:"47df9f24bdeba40201597f35f51ef3620973398f",name:"sidebar"})),a("div",{key:"9916f3c82d19b109ea3893bb7ac6846a1e875f0c",class:"topbar"},a("slot",{key:"bf0995ba0ef0db3309e9fe553e78d25ac857730d",name:"topbar"})))}static get style(){return'.relative{position:relative}.sticky{position:sticky}.z-\\[11\\]{z-index:11}.box-border{box-sizing:border-box}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-dvh{height:100dvh}.h-full{height:100%}.w-full{width:100%}.w-unset{width:unset}.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.items-center{align-items:center}.overflow-y-auto{overflow-y:auto}.px-content-mobile-x{padding-left:1rem;padding-right:1rem}*{box-sizing:border-box}:host{display:grid;gap:0;grid-template-areas:"sidebar" "topbar" "content";grid-template-columns:1fr;grid-template-rows:repeat(2,min-content) 1fr;height:100dvh;width:100dvw}@media (min-width:80rem){:host{grid-template-areas:"topbar topbar" "sidebar content";grid-template-columns:auto 1fr;grid-template-rows:min-content 1fr}}:host .content,:host .sidebar,:host .topbar{align-self:flex-start}:host .topbar{grid-area:topbar;position:sticky;width:100%;z-index:11}:host .sidebar{box-sizing:border-box;display:flex;grid-area:sidebar;height:100%;width:100%}@media (min-width:80rem){:host .sidebar{width:15rem}}:host .content{display:flex;flex-direction:column;grid-area:content;height:100%;overflow-x:hidden;overflow-y:auto;padding:1.5rem 1rem;position:relative}@media (min-width:40rem){:host .content{padding:2rem}}@media (min-width:80rem){:host .content{padding:2rem 1.5rem 1.5rem}}@media (min-width:90rem){:host .content{padding:2rem}}@media (min-width:120rem){:host .content{padding-bottom:5rem;padding-left:5rem;padding-right:2rem}}@media (min-width:160rem){:host .content{padding-bottom:7.5rem;padding-left:7.5rem;padding-top:4rem}}:host .content .inner-content{flex:1 1 0%;position:relative}@media (min-width:80rem){:host .content .inner-content{width:62rem}}@media (min-width:90rem){:host .content .inner-content{width:71rem}}@media (min-width:96rem){:host .content .inner-content{width:77rem}}@media (min-width:105rem){:host .content .inner-content{width:83rem}}:host(.variant-default) .content{flex:1 1 0%}:host(.variant-login){grid-template-areas:"topbar topbar" "content content"}@media (min-width:80rem){:host(.variant-login){grid-template-areas:"topbar topbar" "content sidebar"}}:host(.variant-login) .sidebar{display:none;flex:1 1 0%;overflow:hidden;padding:.5rem;width:unset}@media (min-width:80rem){:host(.variant-login) .sidebar{display:flex}}:host(.variant-login) .sidebar .inner-content{padding:.5rem}:host(.variant-login) .content{align-items:center;height:100dvh;padding:calc(env(safe-area-inset-top) + 3.5rem) 1rem 1.5rem}@media (min-width:80rem){:host(.variant-login) .content{height:100%;justify-content:center;padding:1.5rem 4.5rem 0}}:host(.variant-login) .content .inner-content{box-sizing:border-box;flex:unset;width:100%}@media (min-width:40rem){:host(.variant-login) .content .inner-content{width:21rem}}@media (min-width:80rem){:host(.variant-office) .content .inner-content{width:58rem}}@media (min-width:90rem){:host(.variant-office) .content .inner-content{width:67rem}}@media (min-width:96rem){:host(.variant-office) .content .inner-content{width:73rem}}@media (min-width:105rem){:host(.variant-office) .content .inner-content{width:79rem}}@media (min-width:120rem){:host(.variant-office) .content .inner-content{width:82rem}}@media (min-width:160rem){:host(.variant-office) .content .inner-content{width:84.5rem}}@media (min-width:80rem){:host(.variant-office) .sidebar{width:19rem}}@media (min-width:105rem){:host(.variant-office) .sidebar{width:22rem}}@media (min-width:80rem){.layout-1280\\:flex{display:flex}.layout-1280\\:w-\\[19rem\\]{width:19rem}.layout-1280\\:w-\\[58rem\\]{width:58rem}.layout-1280\\:p-6{padding:1.5rem}.layout-1280\\:px-18{padding-left:4.5rem;padding-right:4.5rem}}@media (min-width:90rem){.layout-1440\\:w-\\[67rem\\]{width:67rem}}@media (min-width:96rem){.layout-1536\\:w-\\[73rem\\]{width:73rem}}@media (min-width:105rem){.layout-1680\\:w-\\[22rem\\]{width:22rem}.layout-1680\\:w-\\[79rem\\]{width:79rem}}@media (min-width:120rem){.layout-1920\\:w-\\[82rem\\]{width:82rem}.layout-1920\\:pl-20{padding-left:5rem}.layout-1920\\:pr-8{padding-right:2rem}}@media (min-width:160rem){.layout-2560\\:w-\\[84\\.5rem\\]{width:84.5rem}.layout-2560\\:pb-\\[7\\.5rem\\]{padding-bottom:7.5rem}.layout-2560\\:pl-\\[7\\.5rem\\]{padding-left:7.5rem}.layout-2560\\:pt-16{padding-top:4rem}}.static{position:static}'}},[769,"p-layout",{variant:[1]}]);function o(){"undefined"!=typeof customElements&&["p-layout"].forEach((t=>{"p-layout"===t&&(customElements.get(e(t))||customElements.define(e(t),d))}))}o();const m=d,s=o;export{m as PLayout,s as defineCustomElement}
@@ -1 +1 @@
1
- import{t,p as e,H as a,h as i}from"./p-CySg37XO.js";import{T as c}from"./p-Au2WuEGF.js";import{d as o}from"./p-DL2YlEpH.js";const s=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}icon="placeholder";render(){return i(c,{key:"48200b196b5101d5a7898f8aa57acbbb795e7205"},i("div",{key:"072dfd68fe13a8934f44a5ac41b90d909ca1f7d5",class:"\n flex items-center gap-2 text-storm-500\n dark:text-white\n "},i("p-icon",{key:"b881af3bafcb5d50e5bd9c9c46f17918f9d92ced",variant:this.icon}),i("div",{key:"c6829a5ab4e6233ca5e9a1304fb917ff5dc319ce",class:"flex min-w-0 flex-1 flex-col text-sm font-medium"},i("slot",{key:"f8a06f03fdf53b22b0ba11b12bcfbf035cf18f3d"}))))}static get style(){return"*{box-sizing:border-box}.static{position:static}.flex{display:flex}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-2{gap:.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[769,"p-listing-item",{icon:[1]}]);function r(){"undefined"!=typeof customElements&&["p-listing-item","p-icon"].forEach((e=>{switch(e){case"p-listing-item":customElements.get(t(e))||customElements.define(t(e),s);break;case"p-icon":customElements.get(t(e))||o()}}))}r();const n=s,f=r;export{n as PListingItem,f as defineCustomElement}
1
+ import{t,p as e,H as i,h as a}from"./p-CySg37XO.js";import{T as c}from"./p-Au2WuEGF.js";import{d as o}from"./p-CPr4Yiq8.js";const s=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}icon="placeholder";render(){return a(c,{key:"365ba4cef81b87755dd6c18fc5238992a2b35e15"},a("div",{key:"b121cf8fe6e62c062583c035a0144fc9cd08f324",class:"\n flex items-center gap-2 text-storm-500\n dark:text-white\n "},a("p-icon",{key:"d0fea1dd0e4437ad9cbf02a5441bcbec018958a9",variant:this.icon}),a("div",{key:"9a244f968dab4b6bdc12c5ec0176b2c68917892b",class:"flex min-w-0 flex-1 flex-col text-sm font-medium"},a("slot",{key:"26fe3df7e514a68a3c7813e0231e7f1aa4b13f0f"}))))}static get style(){return"*{box-sizing:border-box}.static{position:static}.flex{display:flex}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-2{gap:.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[769,"p-listing-item",{icon:[1]}]);function r(){"undefined"!=typeof customElements&&["p-listing-item","p-icon"].forEach((e=>{switch(e){case"p-listing-item":customElements.get(t(e))||customElements.define(t(e),s);break;case"p-icon":customElements.get(t(e))||o()}}))}r();const n=s,m=r;export{n as PListingItem,m as defineCustomElement}