@salla.sa/twilight-components 2.14.597 → 2.14.599

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 (359) hide show
  1. package/dist/cjs/{filepond-Dw1N5qBB.js → filepond-Dk1cJoJp.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-C1ipzdpz.js → filepond-plugin-file-poster-Bg4PCTUm.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-DbTJ1H8k.js → filepond-plugin-file-validate-size-DmqmRxXK.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-CDOD2WKz.js → filepond-plugin-file-validate-type-BKd2QnuC.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-CP7JkpKx.js → filepond-plugin-image-edit-BIPbEbnk.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-Bm5i6zMO.js → filepond-plugin-image-exif-orientation-eQvkwjqa.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-INllb63L.js → filepond-plugin-image-preview-Ba8K6ft0.js} +1 -1
  8. package/dist/cjs/{index-DIEWuq3M.js → index-Bm1Ew-5K.js} +7 -7
  9. package/dist/cjs/{intlTelInput-bnpl10H7.js → intlTelInput-MWwwr9Td.js} +1 -1
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  12. package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
  13. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-applied-filters.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-attachment-view_9.cjs.entry.js +73 -13
  20. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-basket-gap.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-bullet-delivery_3.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cart-summary-card.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-comment-factors.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-comment-form_9.cjs.entry.js +4 -2
  29. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-gift-card-redeem_2.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  46. package/dist/cjs/salla-login-modal.cjs.entry.js +14 -3
  47. package/dist/cjs/salla-loyalty-banner_10.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-loyalty-exchange-product-card.cjs.entry.js +1 -1
  49. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-map_3.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-notification-item_2.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-order-cancel.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-order-options-modal.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-order-shipments.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-order-totals-card.cjs.entry.js +11 -4
  76. package/dist/cjs/salla-orders.cjs.entry.js +32 -2
  77. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-product-card.cjs.entry.js +3 -1
  82. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-review-factors-tags.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-review-order-item.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-scopes.cjs.entry.js +3 -3
  91. package/dist/cjs/salla-search-product-card.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  96. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  98. package/dist/cjs/salla-trust-badges.cjs.entry.js +2 -2
  99. package/dist/cjs/salla-user-menu.cjs.entry.js +33 -2
  100. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  101. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  102. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  103. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  104. package/dist/cjs/salla-wishlist-actions.cjs.entry.js +1 -1
  105. package/dist/cjs/salla-wishlist-summary.cjs.entry.js +1 -1
  106. package/dist/cjs/twilight.cjs.js +1 -1
  107. package/dist/cjs/{vanilla-picker-BaSDLxjI.js → vanilla-picker-BpuzEJnJ.js} +1 -1
  108. package/dist/collection/Helpers/money-text.js +37 -0
  109. package/dist/collection/components/salla-comments/salla-comment-item.js +3 -1
  110. package/dist/collection/components/salla-file-upload/salla-file-upload.js +63 -3
  111. package/dist/collection/components/salla-login-modal/salla-login-modal.css +3 -0
  112. package/dist/collection/components/salla-login-modal/salla-login-modal.js +12 -1
  113. package/dist/collection/components/salla-order-totals-card/salla-order-totals-card.js +10 -3
  114. package/dist/collection/components/salla-orders/salla-orders.js +4 -1
  115. package/dist/collection/components/salla-product-card/salla-product-card.js +2 -0
  116. package/dist/collection/components/salla-scopes/salla-scopes.css +14 -0
  117. package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
  118. package/dist/collection/components/salla-trust-badges/salla-trust-badges.css +17 -12
  119. package/dist/collection/components/salla-user-menu/salla-user-menu.js +32 -1
  120. package/dist/components/index.js +3 -3
  121. package/dist/components/salla-comment-item2.js +3 -1
  122. package/dist/components/salla-file-upload2.js +63 -3
  123. package/dist/components/salla-login-modal2.js +13 -2
  124. package/dist/components/salla-order-totals-card.js +10 -3
  125. package/dist/components/salla-orders.js +31 -1
  126. package/dist/components/salla-product-card2.js +2 -0
  127. package/dist/components/salla-scopes.js +2 -2
  128. package/dist/components/salla-trust-badges.js +1 -1
  129. package/dist/components/salla-user-menu.js +32 -1
  130. package/dist/docs.json +1 -1
  131. package/dist/esm/{filepond-DfLkIBAw.js → filepond-3PnWp9w_.js} +1 -1
  132. package/dist/esm/{filepond-plugin-file-poster-D3ie06bz.js → filepond-plugin-file-poster-DmoyhYlz.js} +1 -1
  133. package/dist/esm/{filepond-plugin-file-validate-size-C_S_eFQe.js → filepond-plugin-file-validate-size-CFkn2RRt.js} +1 -1
  134. package/dist/esm/{filepond-plugin-file-validate-type-BE7nqQRE.js → filepond-plugin-file-validate-type-pyAPn10a.js} +1 -1
  135. package/dist/esm/{filepond-plugin-image-edit-C6jDcMnX.js → filepond-plugin-image-edit-B5Rfgqvi.js} +1 -1
  136. package/dist/esm/{filepond-plugin-image-exif-orientation-nKXdF-ae.js → filepond-plugin-image-exif-orientation-DK15iBED.js} +1 -1
  137. package/dist/esm/{filepond-plugin-image-preview-Dzl44GI1.js → filepond-plugin-image-preview-BIW0XW_M.js} +1 -1
  138. package/dist/esm/{index-BmRQjBRH.js → index-CwwxD-7C.js} +7 -7
  139. package/dist/esm/{intlTelInput-dGrU4Iu9.js → intlTelInput-DYJOvh3V.js} +1 -1
  140. package/dist/esm/loader.js +2 -2
  141. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  142. package/dist/esm/salla-accordion_6.entry.js +1 -1
  143. package/dist/esm/salla-add-product-button_5.entry.js +1 -1
  144. package/dist/esm/salla-advertisement.entry.js +1 -1
  145. package/dist/esm/salla-alert_2.entry.js +1 -1
  146. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  147. package/dist/esm/salla-applied-filters.entry.js +1 -1
  148. package/dist/esm/salla-apps-icons.entry.js +1 -1
  149. package/dist/esm/salla-attachment-view_9.entry.js +73 -13
  150. package/dist/esm/salla-badge.entry.js +1 -1
  151. package/dist/esm/salla-basket-gap.entry.js +1 -1
  152. package/dist/esm/salla-bullet-delivery_3.entry.js +1 -1
  153. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  154. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  155. package/dist/esm/salla-cart-summary-card.entry.js +1 -1
  156. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  157. package/dist/esm/salla-comment-factors.entry.js +1 -1
  158. package/dist/esm/salla-comment-form_9.entry.js +4 -2
  159. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  160. package/dist/esm/salla-contacts.entry.js +1 -1
  161. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  162. package/dist/esm/salla-count-down.entry.js +1 -1
  163. package/dist/esm/salla-custom-fields.entry.js +1 -1
  164. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  165. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  166. package/dist/esm/salla-filters-widget.entry.js +1 -1
  167. package/dist/esm/salla-filters.entry.js +1 -1
  168. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  169. package/dist/esm/salla-gift-card-redeem_2.entry.js +1 -1
  170. package/dist/esm/salla-gifting.entry.js +1 -1
  171. package/dist/esm/salla-hook.entry.js +1 -1
  172. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  173. package/dist/esm/salla-installment.entry.js +1 -1
  174. package/dist/esm/salla-list-tile.entry.js +1 -1
  175. package/dist/esm/salla-localization-modal.entry.js +1 -1
  176. package/dist/esm/salla-login-modal.entry.js +14 -3
  177. package/dist/esm/salla-loyalty-banner_10.entry.js +1 -1
  178. package/dist/esm/salla-loyalty-exchange-product-card.entry.js +1 -1
  179. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  180. package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
  181. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  182. package/dist/esm/salla-loyalty.entry.js +1 -1
  183. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  184. package/dist/esm/salla-map_3.entry.js +1 -1
  185. package/dist/esm/salla-menu.entry.js +1 -1
  186. package/dist/esm/salla-metadata.entry.js +1 -1
  187. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  188. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  189. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  190. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  191. package/dist/esm/salla-notification-item_2.entry.js +1 -1
  192. package/dist/esm/salla-offer-modal.entry.js +1 -1
  193. package/dist/esm/salla-offer.entry.js +1 -1
  194. package/dist/esm/salla-order-branch.entry.js +1 -1
  195. package/dist/esm/salla-order-cancel.entry.js +1 -1
  196. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  197. package/dist/esm/salla-order-details-options.entry.js +1 -1
  198. package/dist/esm/salla-order-details.entry.js +1 -1
  199. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  200. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  201. package/dist/esm/salla-order-edit.entry.js +1 -1
  202. package/dist/esm/salla-order-options-modal.entry.js +1 -1
  203. package/dist/esm/salla-order-shipments.entry.js +1 -1
  204. package/dist/esm/salla-order-summary.entry.js +1 -1
  205. package/dist/esm/salla-order-totals-card.entry.js +11 -4
  206. package/dist/esm/salla-orders.entry.js +32 -2
  207. package/dist/esm/salla-payments.entry.js +1 -1
  208. package/dist/esm/salla-placeholder.entry.js +1 -1
  209. package/dist/esm/salla-price-range.entry.js +1 -1
  210. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  211. package/dist/esm/salla-product-card.entry.js +3 -1
  212. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  213. package/dist/esm/salla-products-list.entry.js +1 -1
  214. package/dist/esm/salla-products-slider.entry.js +1 -1
  215. package/dist/esm/salla-quick-order.entry.js +1 -1
  216. package/dist/esm/salla-rating-modal-v2.entry.js +1 -1
  217. package/dist/esm/salla-rating-modal.entry.js +1 -1
  218. package/dist/esm/salla-review-factors-tags.entry.js +1 -1
  219. package/dist/esm/salla-review-order-item.entry.js +1 -1
  220. package/dist/esm/salla-scopes.entry.js +3 -3
  221. package/dist/esm/salla-search-product-card.entry.js +1 -1
  222. package/dist/esm/salla-search.entry.js +1 -1
  223. package/dist/esm/salla-skeleton.entry.js +1 -1
  224. package/dist/esm/salla-social-share.entry.js +1 -1
  225. package/dist/esm/salla-social.entry.js +1 -1
  226. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  227. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  228. package/dist/esm/salla-trust-badges.entry.js +2 -2
  229. package/dist/esm/salla-user-menu.entry.js +33 -2
  230. package/dist/esm/salla-user-profile.entry.js +1 -1
  231. package/dist/esm/salla-user-settings.entry.js +1 -1
  232. package/dist/esm/salla-verify.entry.js +1 -1
  233. package/dist/esm/salla-wallet.entry.js +1 -1
  234. package/dist/esm/salla-wishlist-actions.entry.js +1 -1
  235. package/dist/esm/salla-wishlist-summary.entry.js +1 -1
  236. package/dist/esm/twilight.js +2 -2
  237. package/dist/esm/{vanilla-picker-DRghK0RD.js → vanilla-picker-BzVn0xEV.js} +1 -1
  238. package/dist/twilight/{p-aeafb519.entry.js → p-0253bf71.entry.js} +1 -1
  239. package/dist/twilight/{p-e2d1d888.entry.js → p-065f2937.entry.js} +1 -1
  240. package/dist/twilight/{p-e8d94147.entry.js → p-067ad44c.entry.js} +1 -1
  241. package/dist/twilight/{p-db9994c2.entry.js → p-07817ae8.entry.js} +1 -1
  242. package/dist/twilight/{p-1f2844db.entry.js → p-0889368b.entry.js} +1 -1
  243. package/dist/twilight/{p-41248f5f.entry.js → p-0b0c9ecb.entry.js} +1 -1
  244. package/dist/twilight/{p-4235b3c2.entry.js → p-0ba03206.entry.js} +1 -1
  245. package/dist/twilight/{p-dd4bcce0.entry.js → p-0bff8609.entry.js} +1 -1
  246. package/dist/twilight/{p-cca10a34.entry.js → p-10418cc0.entry.js} +1 -1
  247. package/dist/twilight/{p-f70fa2e9.entry.js → p-114e4228.entry.js} +1 -1
  248. package/dist/twilight/{p-3bf933f6.entry.js → p-14b1b664.entry.js} +1 -1
  249. package/dist/twilight/{p-d3be7885.entry.js → p-18e75544.entry.js} +1 -1
  250. package/dist/twilight/{p-68919916.entry.js → p-1b25ea2a.entry.js} +1 -1
  251. package/dist/twilight/{p-d307d40a.entry.js → p-1c191c15.entry.js} +1 -1
  252. package/dist/twilight/{p-12338d19.entry.js → p-1f561241.entry.js} +1 -1
  253. package/dist/twilight/{p-1908ab44.entry.js → p-1fd1c0a3.entry.js} +1 -1
  254. package/dist/twilight/{p-730101ff.entry.js → p-20f98a45.entry.js} +1 -1
  255. package/dist/twilight/{p-3d1842e4.entry.js → p-2213f6eb.entry.js} +1 -1
  256. package/dist/twilight/{p-7e724019.entry.js → p-25fb1508.entry.js} +1 -1
  257. package/dist/twilight/{p-f0180034.entry.js → p-261aff22.entry.js} +1 -1
  258. package/dist/twilight/p-27df0290.entry.js +4 -0
  259. package/dist/twilight/{p-d034a3ba.entry.js → p-2b5242cb.entry.js} +1 -1
  260. package/dist/twilight/{p-00e1f5fd.entry.js → p-2db00d46.entry.js} +1 -1
  261. package/dist/twilight/{p-1c8dde1a.entry.js → p-2f04343f.entry.js} +1 -1
  262. package/dist/twilight/{p-4b111d7a.entry.js → p-3243ab6e.entry.js} +1 -1
  263. package/dist/twilight/{p-8c10cb85.entry.js → p-3de0b3ae.entry.js} +1 -1
  264. package/dist/twilight/p-46c8b068.entry.js +4 -0
  265. package/dist/twilight/{p-7aa15258.entry.js → p-49bba37d.entry.js} +1 -1
  266. package/dist/twilight/{p-8e2488fe.entry.js → p-4ca3b245.entry.js} +1 -1
  267. package/dist/twilight/{p-ece1fecd.entry.js → p-4ebee06a.entry.js} +1 -1
  268. package/dist/twilight/{p-8b21158b.entry.js → p-509b04c7.entry.js} +1 -1
  269. package/dist/twilight/{p-4aa07eca.entry.js → p-55399fed.entry.js} +1 -1
  270. package/dist/twilight/{p-3745be6d.entry.js → p-56c77026.entry.js} +1 -1
  271. package/dist/twilight/{p-87cedb04.entry.js → p-62373e96.entry.js} +1 -1
  272. package/dist/twilight/{p-8248cecd.entry.js → p-62c985bc.entry.js} +1 -1
  273. package/dist/twilight/{p-15ab81d6.entry.js → p-62dc337d.entry.js} +1 -1
  274. package/dist/twilight/{p-fde4cf31.entry.js → p-651db82c.entry.js} +1 -1
  275. package/dist/twilight/{p-3f373f1e.entry.js → p-659e00b7.entry.js} +1 -1
  276. package/dist/twilight/{p-99463d58.entry.js → p-6b2f6957.entry.js} +1 -1
  277. package/dist/twilight/{p-182d7bab.entry.js → p-6d47b269.entry.js} +1 -1
  278. package/dist/twilight/p-6d61d93c.entry.js +4 -0
  279. package/dist/twilight/{p-7dfe99e6.entry.js → p-6e7433f2.entry.js} +1 -1
  280. package/dist/twilight/{p-e9319448.entry.js → p-6fa1498b.entry.js} +1 -1
  281. package/dist/twilight/{p-71cbf7a4.entry.js → p-7148dbad.entry.js} +1 -1
  282. package/dist/twilight/{p-ac7d45b6.entry.js → p-76ca3445.entry.js} +1 -1
  283. package/dist/twilight/p-79ce9e95.entry.js +4 -0
  284. package/dist/twilight/{p-ec1589cf.entry.js → p-7f653481.entry.js} +1 -1
  285. package/dist/twilight/{p-7c7648d7.entry.js → p-83e1c586.entry.js} +1 -1
  286. package/dist/twilight/{p-3f66f717.entry.js → p-84912a5a.entry.js} +1 -1
  287. package/dist/twilight/p-89bba634.entry.js +4 -0
  288. package/dist/twilight/{p-39a16468.entry.js → p-89fddf1e.entry.js} +1 -1
  289. package/dist/twilight/{p-d542e647.entry.js → p-8aa29666.entry.js} +1 -1
  290. package/dist/twilight/{p-ab1d320f.entry.js → p-8d99e9d1.entry.js} +1 -1
  291. package/dist/twilight/{p-5f35b46a.entry.js → p-8e91da09.entry.js} +1 -1
  292. package/dist/twilight/{p-c5d4f71c.entry.js → p-925ba8ce.entry.js} +1 -1
  293. package/dist/twilight/{p-51694dd2.entry.js → p-93d284c4.entry.js} +1 -1
  294. package/dist/twilight/{p-bfdde3db.entry.js → p-96154a67.entry.js} +1 -1
  295. package/dist/twilight/{p-C1XjCBHg.js → p-B8yyit_i.js} +1 -1
  296. package/dist/twilight/{p-CWismw4I.js → p-Bb9AkvT4.js} +1 -1
  297. package/dist/twilight/{p-C48Rktr4.js → p-CYeysHdt.js} +1 -1
  298. package/dist/twilight/{p-B4fbRnFh.js → p-CaabLwI1.js} +1 -1
  299. package/dist/twilight/{p-DnZfyhH5.js → p-CntnRJCa.js} +1 -1
  300. package/dist/twilight/{p-BmRQjBRH.js → p-CwwxD-7C.js} +2 -2
  301. package/dist/twilight/{p-DYEGhE1O.js → p-DFj0n9Nh.js} +1 -1
  302. package/dist/twilight/{p-OCGvfvVA.js → p-DHXSZjVo.js} +1 -1
  303. package/dist/twilight/{p-imI5he7m.js → p-DzBc32wK.js} +1 -1
  304. package/dist/twilight/{p-BIToxPOg.js → p-FcjN5vEx.js} +1 -1
  305. package/dist/twilight/{p-5617656f.entry.js → p-a6594c68.entry.js} +1 -1
  306. package/dist/twilight/{p-c22ea75b.entry.js → p-a743a10a.entry.js} +1 -1
  307. package/dist/twilight/{p-f348601d.entry.js → p-aaac2388.entry.js} +1 -1
  308. package/dist/twilight/p-ac8a7743.entry.js +4 -0
  309. package/dist/twilight/{p-33e769b3.entry.js → p-afd47a18.entry.js} +1 -1
  310. package/dist/twilight/{p-de3c5f91.entry.js → p-b2ff66ed.entry.js} +1 -1
  311. package/dist/twilight/{p-cc46f297.entry.js → p-b7c815f7.entry.js} +1 -1
  312. package/dist/twilight/{p-91326a74.entry.js → p-b7dfb1f1.entry.js} +1 -1
  313. package/dist/twilight/{p-b5829615.entry.js → p-bc5b70e9.entry.js} +1 -1
  314. package/dist/twilight/{p-fa600113.entry.js → p-bcbb4a03.entry.js} +1 -1
  315. package/dist/twilight/{p-96f9eb1f.entry.js → p-c282869e.entry.js} +1 -1
  316. package/dist/twilight/{p-3a996401.entry.js → p-c4f92bae.entry.js} +1 -1
  317. package/dist/twilight/{p-58dcc966.entry.js → p-c7a491ef.entry.js} +1 -1
  318. package/dist/twilight/{p-b5499627.entry.js → p-c84e619a.entry.js} +1 -1
  319. package/dist/twilight/{p-c3d33aee.entry.js → p-c892e962.entry.js} +1 -1
  320. package/dist/twilight/{p-2cf7eb3b.entry.js → p-c98d1097.entry.js} +1 -1
  321. package/dist/twilight/{p-737b93c2.entry.js → p-cce07c4c.entry.js} +1 -1
  322. package/dist/twilight/{p-60e1fb1a.entry.js → p-d01c4ba8.entry.js} +1 -1
  323. package/dist/twilight/{p-6b0d6b9b.entry.js → p-d6886b07.entry.js} +1 -1
  324. package/dist/twilight/{p-6854e982.entry.js → p-d8cf239a.entry.js} +1 -1
  325. package/dist/twilight/{p-b6c5435e.entry.js → p-db1e0bc6.entry.js} +1 -1
  326. package/dist/twilight/{p-cf1cc0d1.entry.js → p-dc090987.entry.js} +1 -1
  327. package/dist/twilight/{p-baaa3e72.entry.js → p-dda47e56.entry.js} +1 -1
  328. package/dist/twilight/{p-feb068a2.entry.js → p-e1fb95cb.entry.js} +1 -1
  329. package/dist/twilight/{p-2de666d8.entry.js → p-e248f0d0.entry.js} +1 -1
  330. package/dist/twilight/{p-3fdaf198.entry.js → p-e4ed760b.entry.js} +1 -1
  331. package/dist/twilight/{p-2de4c351.entry.js → p-ee2a5db7.entry.js} +1 -1
  332. package/dist/twilight/{p-a80acba3.entry.js → p-f1d5ebf4.entry.js} +1 -1
  333. package/dist/twilight/{p-9e196eb0.entry.js → p-f310c72e.entry.js} +1 -1
  334. package/dist/twilight/p-f345a77d.entry.js +4 -0
  335. package/dist/twilight/{p-1a8c7481.entry.js → p-f38d6c1b.entry.js} +1 -1
  336. package/dist/twilight/{p-55b5158c.entry.js → p-f4d52f9b.entry.js} +1 -1
  337. package/dist/twilight/{p-f76349b3.entry.js → p-f5026adf.entry.js} +1 -1
  338. package/dist/twilight/{p-61956814.entry.js → p-f51e9549.entry.js} +1 -1
  339. package/dist/twilight/{p-e6bc3cf4.entry.js → p-f5693509.entry.js} +1 -1
  340. package/dist/twilight/p-f580d024.entry.js +4 -0
  341. package/dist/twilight/{p-f5afeed8.entry.js → p-f8b428cb.entry.js} +1 -1
  342. package/dist/twilight/{p-9108e712.entry.js → p-fe7751a8.entry.js} +1 -1
  343. package/dist/twilight/twilight.esm.js +1 -1
  344. package/dist/types/Helpers/money-text.d.ts +13 -0
  345. package/dist/types/components/salla-file-upload/salla-file-upload.d.ts +10 -0
  346. package/dist/types/components/salla-login-modal/salla-login-modal.d.ts +3 -0
  347. package/dist/types/components/salla-order-totals-card/interfaces.d.ts +3 -3
  348. package/dist/types/components/salla-order-totals-card/salla-order-totals-card.d.ts +2 -0
  349. package/dist/types/components/salla-scopes/interfaces.d.ts +1 -0
  350. package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +13 -0
  351. package/package.json +19 -19
  352. package/dist/twilight/p-1557d0ca.entry.js +0 -4
  353. package/dist/twilight/p-19592be3.entry.js +0 -4
  354. package/dist/twilight/p-1c8bf883.entry.js +0 -4
  355. package/dist/twilight/p-74ccf675.entry.js +0 -4
  356. package/dist/twilight/p-844ebeb6.entry.js +0 -4
  357. package/dist/twilight/p-cdbb6758.entry.js +0 -4
  358. package/dist/twilight/p-d37e6c2f.entry.js +0 -4
  359. package/dist/twilight/p-fe3645b0.entry.js +0 -4
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import{d as i}from"./p-BmRQjBRH.js";function n(i,n){return n.forEach((function(n){n&&"string"!=typeof n&&!Array.isArray(n)&&Object.keys(n).forEach((function(t){if("default"!==t&&!(t in i)){var e=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(i,t,e.get?e:{enumerable:!0,get:function(){return n[t]}})}}))})),Object.freeze(i)}var t,e,o,E={exports:{}},r=t?E.exports:(t=1,E.exports=(e=function(i){return/^image/.test(i.type)},o=function(i){var n=i.addFilter,t=i.utils,o=t.Type,E=t.createRoute,r=t.createItemAPI,l=void 0===r?function(i){return i}:r,_=i.views.fileActionButton;n("SHOULD_REMOVE_ON_REVERT",(function(i,n){var t=n.item,o=n.query;return new Promise((function(i){var n=t.file;i(!(o("GET_ALLOW_IMAGE_EDIT")&&o("GET_IMAGE_EDIT_ALLOW_EDIT")&&e(n)))}))})),n("DID_LOAD_ITEM",(function(i,n){var t=n.query,o=n.dispatch;return new Promise((function(n,E){if(i.origin>1)n(i);else{var r=i.file;if(t("GET_ALLOW_IMAGE_EDIT")&&t("GET_IMAGE_EDIT_INSTANT_EDIT"))if(e(r)){var l=function(i,n,t){return function(e){a.shift(),e?n(i):t(i),o("KICK"),_()}},_=function(){if(a.length){var i=a[0],n=i.item;o("EDIT_ITEM",{id:n.id,handleEditorResponse:l(n,i.resolve,i.reject)})}};u({item:i,resolve:n,reject:E}),1===a.length&&_()}else n(i);else n(i)}}))})),n("DID_CREATE_ITEM",(function(i,n){var t=n.dispatch;i.extend("edit",(function(){t("EDIT_ITEM",{id:i.id})}))}));var a=[],u=function(i){return a.push(i),i};return n("CREATE_VIEW",(function(i){var n=i.is,t=i.view,o=i.query;if(o("GET_ALLOW_IMAGE_EDIT")){var r=o("GET_ALLOW_IMAGE_PREVIEW");if(n("file-info")&&!r||n("file")&&r){var a=o("GET_IMAGE_EDIT_EDITOR");if(a){a.filepondCallbackBridge||(a.outputData=!0,a.outputFile=!1,a.filepondCallbackBridge={onconfirm:a.onconfirm||function(){},oncancel:a.oncancel||function(){}});t.registerDestroyer((function(i){var n=i.root;n.ref.buttonEditItem&&n.ref.buttonEditItem.off("click",n.ref.handleEdit),n.ref.editButton&&n.ref.editButton.removeEventListener("click",n.ref.handleEdit)}));var u={EDIT_ITEM:function(i){var n=i.root,t=i.props.id,e=i.action.handleEditorResponse;a.cropAspectRatio=n.query("GET_IMAGE_CROP_ASPECT_RATIO")||a.cropAspectRatio,a.outputCanvasBackgroundColor=n.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR")||a.outputCanvasBackgroundColor;var o=n.query("GET_ITEM",t);if(o){var E=o.file,r=o.getMetadata("crop"),_=o.getMetadata("resize"),u=o.getMetadata("filter")||null,f=o.getMetadata("filters")||null,I=o.getMetadata("colors")||null,c=o.getMetadata("markup")||null,T={crop:r||{center:{x:.5,y:.5},flip:{horizontal:!1,vertical:!1},zoom:1,rotation:0,aspectRatio:null},size:_?{upscale:_.upscale,mode:_.mode,width:_.size.width,height:_.size.height}:null,filter:f?f.id||f.matrix:n.query("GET_ALLOW_IMAGE_FILTER")&&n.query("GET_IMAGE_FILTER_COLOR_MATRIX")&&!I?u:null,color:I,markup:c};a.onconfirm=function(i){var n=i.data,t=n.crop,E=n.size,r=n.filter,_=n.color,u=n.colorMatrix,f=n.markup,I={};if(t&&(I.crop=t),E){var c=(o.getMetadata("resize")||{}).size,T={width:E.width,height:E.height};T.width&&T.height||!c||(T.width=c.width,T.height=c.height),(T.width||T.height)&&(I.resize={upscale:E.upscale,mode:E.mode,size:T})}f&&(I.markup=f),I.colors=_,I.filters=r,I.filter=u,o.setMetadata(I),a.filepondCallbackBridge.onconfirm(n,l(o)),e&&(a.onclose=function(){e(!0),a.onclose=null})},a.oncancel=function(){a.filepondCallbackBridge.oncancel(l(o)),e&&(a.onclose=function(){e(!1),a.onclose=null})},a.open(E,T)}},DID_LOAD_ITEM:function(i){var n=i.root,E=i.props;if(o("GET_IMAGE_EDIT_ALLOW_EDIT")){var l=E.id,a=o("GET_ITEM",l);if(a&&e(a.file))if(n.ref.handleEdit=function(i){i.stopPropagation(),n.dispatch("EDIT_ITEM",{id:l})},r){var u=t.createChildView(_,{label:"edit",icon:o("GET_IMAGE_EDIT_ICON_EDIT"),opacity:0});u.element.classList.add("filepond--action-edit-item"),u.element.dataset.align=o("GET_STYLE_IMAGE_EDIT_BUTTON_EDIT_ITEM_POSITION"),u.on("click",n.ref.handleEdit),n.ref.buttonEditItem=t.appendChildView(u)}else{var f=t.element.querySelector(".filepond--file-info-main"),I=document.createElement("button");I.className="filepond--action-edit-item-alt",I.innerHTML=o("GET_IMAGE_EDIT_ICON_EDIT")+"<span>edit</span>",I.addEventListener("click",n.ref.handleEdit),f.appendChild(I),n.ref.editButton=I}}}};r&&(u.DID_IMAGE_PREVIEW_SHOW=function(i){var n=i.root;n.ref.buttonEditItem&&(n.ref.buttonEditItem.opacity=1)}),t.registerWriter(E(u))}}}})),{options:{allowImageEdit:[!0,o.BOOLEAN],styleImageEditButtonEditItemPosition:["bottom center",o.STRING],imageEditInstantEdit:[!1,o.BOOLEAN],imageEditAllowEdit:[!0,o.BOOLEAN],imageEditIconEdit:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M8.5 17h1.586l7-7L15.5 8.414l-7 7V17zm-1.707-2.707l8-8a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1 0 1.414l-8 8A1 1 0 0 1 10.5 19h-3a1 1 0 0 1-1-1v-3a1 1 0 0 1 .293-.707z" fill="currentColor" fill-rule="nonzero"/></svg>',o.STRING],imageEditEditor:[null,o.OBJECT]}}},"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:o})),o)),l=n({__proto__:null,default:i(r)},[r]);
4
+ import{d as i}from"./p-CwwxD-7C.js";function n(i,n){return n.forEach((function(n){n&&"string"!=typeof n&&!Array.isArray(n)&&Object.keys(n).forEach((function(t){if("default"!==t&&!(t in i)){var e=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(i,t,e.get?e:{enumerable:!0,get:function(){return n[t]}})}}))})),Object.freeze(i)}var t,e,o,E={exports:{}},r=t?E.exports:(t=1,E.exports=(e=function(i){return/^image/.test(i.type)},o=function(i){var n=i.addFilter,t=i.utils,o=t.Type,E=t.createRoute,r=t.createItemAPI,l=void 0===r?function(i){return i}:r,_=i.views.fileActionButton;n("SHOULD_REMOVE_ON_REVERT",(function(i,n){var t=n.item,o=n.query;return new Promise((function(i){var n=t.file;i(!(o("GET_ALLOW_IMAGE_EDIT")&&o("GET_IMAGE_EDIT_ALLOW_EDIT")&&e(n)))}))})),n("DID_LOAD_ITEM",(function(i,n){var t=n.query,o=n.dispatch;return new Promise((function(n,E){if(i.origin>1)n(i);else{var r=i.file;if(t("GET_ALLOW_IMAGE_EDIT")&&t("GET_IMAGE_EDIT_INSTANT_EDIT"))if(e(r)){var l=function(i,n,t){return function(e){a.shift(),e?n(i):t(i),o("KICK"),_()}},_=function(){if(a.length){var i=a[0],n=i.item;o("EDIT_ITEM",{id:n.id,handleEditorResponse:l(n,i.resolve,i.reject)})}};u({item:i,resolve:n,reject:E}),1===a.length&&_()}else n(i);else n(i)}}))})),n("DID_CREATE_ITEM",(function(i,n){var t=n.dispatch;i.extend("edit",(function(){t("EDIT_ITEM",{id:i.id})}))}));var a=[],u=function(i){return a.push(i),i};return n("CREATE_VIEW",(function(i){var n=i.is,t=i.view,o=i.query;if(o("GET_ALLOW_IMAGE_EDIT")){var r=o("GET_ALLOW_IMAGE_PREVIEW");if(n("file-info")&&!r||n("file")&&r){var a=o("GET_IMAGE_EDIT_EDITOR");if(a){a.filepondCallbackBridge||(a.outputData=!0,a.outputFile=!1,a.filepondCallbackBridge={onconfirm:a.onconfirm||function(){},oncancel:a.oncancel||function(){}});t.registerDestroyer((function(i){var n=i.root;n.ref.buttonEditItem&&n.ref.buttonEditItem.off("click",n.ref.handleEdit),n.ref.editButton&&n.ref.editButton.removeEventListener("click",n.ref.handleEdit)}));var u={EDIT_ITEM:function(i){var n=i.root,t=i.props.id,e=i.action.handleEditorResponse;a.cropAspectRatio=n.query("GET_IMAGE_CROP_ASPECT_RATIO")||a.cropAspectRatio,a.outputCanvasBackgroundColor=n.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR")||a.outputCanvasBackgroundColor;var o=n.query("GET_ITEM",t);if(o){var E=o.file,r=o.getMetadata("crop"),_=o.getMetadata("resize"),u=o.getMetadata("filter")||null,f=o.getMetadata("filters")||null,I=o.getMetadata("colors")||null,c=o.getMetadata("markup")||null,T={crop:r||{center:{x:.5,y:.5},flip:{horizontal:!1,vertical:!1},zoom:1,rotation:0,aspectRatio:null},size:_?{upscale:_.upscale,mode:_.mode,width:_.size.width,height:_.size.height}:null,filter:f?f.id||f.matrix:n.query("GET_ALLOW_IMAGE_FILTER")&&n.query("GET_IMAGE_FILTER_COLOR_MATRIX")&&!I?u:null,color:I,markup:c};a.onconfirm=function(i){var n=i.data,t=n.crop,E=n.size,r=n.filter,_=n.color,u=n.colorMatrix,f=n.markup,I={};if(t&&(I.crop=t),E){var c=(o.getMetadata("resize")||{}).size,T={width:E.width,height:E.height};T.width&&T.height||!c||(T.width=c.width,T.height=c.height),(T.width||T.height)&&(I.resize={upscale:E.upscale,mode:E.mode,size:T})}f&&(I.markup=f),I.colors=_,I.filters=r,I.filter=u,o.setMetadata(I),a.filepondCallbackBridge.onconfirm(n,l(o)),e&&(a.onclose=function(){e(!0),a.onclose=null})},a.oncancel=function(){a.filepondCallbackBridge.oncancel(l(o)),e&&(a.onclose=function(){e(!1),a.onclose=null})},a.open(E,T)}},DID_LOAD_ITEM:function(i){var n=i.root,E=i.props;if(o("GET_IMAGE_EDIT_ALLOW_EDIT")){var l=E.id,a=o("GET_ITEM",l);if(a&&e(a.file))if(n.ref.handleEdit=function(i){i.stopPropagation(),n.dispatch("EDIT_ITEM",{id:l})},r){var u=t.createChildView(_,{label:"edit",icon:o("GET_IMAGE_EDIT_ICON_EDIT"),opacity:0});u.element.classList.add("filepond--action-edit-item"),u.element.dataset.align=o("GET_STYLE_IMAGE_EDIT_BUTTON_EDIT_ITEM_POSITION"),u.on("click",n.ref.handleEdit),n.ref.buttonEditItem=t.appendChildView(u)}else{var f=t.element.querySelector(".filepond--file-info-main"),I=document.createElement("button");I.className="filepond--action-edit-item-alt",I.innerHTML=o("GET_IMAGE_EDIT_ICON_EDIT")+"<span>edit</span>",I.addEventListener("click",n.ref.handleEdit),f.appendChild(I),n.ref.editButton=I}}}};r&&(u.DID_IMAGE_PREVIEW_SHOW=function(i){var n=i.root;n.ref.buttonEditItem&&(n.ref.buttonEditItem.opacity=1)}),t.registerWriter(E(u))}}}})),{options:{allowImageEdit:[!0,o.BOOLEAN],styleImageEditButtonEditItemPosition:["bottom center",o.STRING],imageEditInstantEdit:[!1,o.BOOLEAN],imageEditAllowEdit:[!0,o.BOOLEAN],imageEditIconEdit:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M8.5 17h1.586l7-7L15.5 8.414l-7 7V17zm-1.707-2.707l8-8a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1 0 1.414l-8 8A1 1 0 0 1 10.5 19h-3a1 1 0 0 1-1-1v-3a1 1 0 0 1 .293-.707z" fill="currentColor" fill-rule="nonzero"/></svg>',o.STRING],imageEditEditor:[null,o.OBJECT]}}},"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:o})),o)),l=n({__proto__:null,default:i(r)},[r]);
5
5
  /*!
6
6
  * FilePondPluginImageEdit 1.6.3
7
7
  * Licensed under MIT, https://opensource.org/licenses/MIT/
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import{d as e}from"./p-BmRQjBRH.js";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}var n,i,E={exports:{}},r=n?E.exports:(n=1,E.exports=(i=function(e){var t=e.addFilter,n=e.utils,i=n.Type,E=n.isString,r=n.replaceInString,T=n.guesstimateMimeType,u=n.getExtensionFromFilename,o=n.getFilenameFromURL,_=function(e,t){return e.some((function(e){return/\*$/.test(e)?(n=e,(/^[^/]+/.exec(t)||[]).pop()===n.slice(0,-2)):e===t;var n}))},a=function(e,t,n){if(0===t.length)return!0;var i=function(e){var t="";if(E(e)){var n=o(e),i=u(n);i&&(t=T(i))}else t=e.type;return t}(e);return n?new Promise((function(E,r){n(e,i).then((function(e){_(t,e)?E():r()})).catch(r)})):_(t,i)};return t("SET_ATTRIBUTE_TO_OPTION_MAP",(function(e){return Object.assign(e,{accept:"acceptedFileTypes"})})),t("ALLOW_HOPPER_ITEM",(function(e,t){var n=t.query;return!n("GET_ALLOW_FILE_TYPE_VALIDATION")||a(e,n("GET_ACCEPTED_FILE_TYPES"))})),t("LOAD_FILE",(function(e,t){var n=t.query;return new Promise((function(t,i){if(n("GET_ALLOW_FILE_TYPE_VALIDATION")){var E=n("GET_ACCEPTED_FILE_TYPES"),T=n("GET_FILE_VALIDATE_TYPE_DETECT_TYPE"),u=a(e,E,T),o=function(){var e,t=E.map((e=n("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES_MAP"),function(t){return null!==e[t]&&(e[t]||t)})).filter((function(e){return!1!==e})),T=t.filter((function(e,n){return t.indexOf(e)===n}));i({status:{main:n("GET_LABEL_FILE_TYPE_NOT_ALLOWED"),sub:r(n("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES"),{allTypes:T.join(", "),allButLastType:T.slice(0,-1).join(", "),lastType:T[T.length-1]})}})};if("boolean"==typeof u)return u?t(e):o();u.then((function(){t(e)})).catch(o)}else t(e)}))})),{options:{allowFileTypeValidation:[!0,i.BOOLEAN],acceptedFileTypes:[[],i.ARRAY],labelFileTypeNotAllowed:["File is of invalid type",i.STRING],fileValidateTypeLabelExpectedTypes:["Expects {allButLastType} or {lastType}",i.STRING],fileValidateTypeLabelExpectedTypesMap:[{},i.OBJECT],fileValidateTypeDetectType:[null,i.FUNCTION]}}},"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:i})),i)),T=t({__proto__:null,default:e(r)},[r]);
4
+ import{d as e}from"./p-CwwxD-7C.js";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}var n,i,E={exports:{}},r=n?E.exports:(n=1,E.exports=(i=function(e){var t=e.addFilter,n=e.utils,i=n.Type,E=n.isString,r=n.replaceInString,T=n.guesstimateMimeType,u=n.getExtensionFromFilename,o=n.getFilenameFromURL,_=function(e,t){return e.some((function(e){return/\*$/.test(e)?(n=e,(/^[^/]+/.exec(t)||[]).pop()===n.slice(0,-2)):e===t;var n}))},a=function(e,t,n){if(0===t.length)return!0;var i=function(e){var t="";if(E(e)){var n=o(e),i=u(n);i&&(t=T(i))}else t=e.type;return t}(e);return n?new Promise((function(E,r){n(e,i).then((function(e){_(t,e)?E():r()})).catch(r)})):_(t,i)};return t("SET_ATTRIBUTE_TO_OPTION_MAP",(function(e){return Object.assign(e,{accept:"acceptedFileTypes"})})),t("ALLOW_HOPPER_ITEM",(function(e,t){var n=t.query;return!n("GET_ALLOW_FILE_TYPE_VALIDATION")||a(e,n("GET_ACCEPTED_FILE_TYPES"))})),t("LOAD_FILE",(function(e,t){var n=t.query;return new Promise((function(t,i){if(n("GET_ALLOW_FILE_TYPE_VALIDATION")){var E=n("GET_ACCEPTED_FILE_TYPES"),T=n("GET_FILE_VALIDATE_TYPE_DETECT_TYPE"),u=a(e,E,T),o=function(){var e,t=E.map((e=n("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES_MAP"),function(t){return null!==e[t]&&(e[t]||t)})).filter((function(e){return!1!==e})),T=t.filter((function(e,n){return t.indexOf(e)===n}));i({status:{main:n("GET_LABEL_FILE_TYPE_NOT_ALLOWED"),sub:r(n("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES"),{allTypes:T.join(", "),allButLastType:T.slice(0,-1).join(", "),lastType:T[T.length-1]})}})};if("boolean"==typeof u)return u?t(e):o();u.then((function(){t(e)})).catch(o)}else t(e)}))})),{options:{allowFileTypeValidation:[!0,i.BOOLEAN],acceptedFileTypes:[[],i.ARRAY],labelFileTypeNotAllowed:["File is of invalid type",i.STRING],fileValidateTypeLabelExpectedTypes:["Expects {allButLastType} or {lastType}",i.STRING],fileValidateTypeLabelExpectedTypesMap:[{},i.OBJECT],fileValidateTypeDetectType:[null,i.FUNCTION]}}},"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:i})),i)),T=t({__proto__:null,default:e(r)},[r]);
5
5
  /*!
6
6
  * FilePondPluginFileValidateType 1.2.9
7
7
  * Licensed under MIT, https://opensource.org/licenses/MIT/