@salla.sa/twilight-components 2.14.417 → 2.14.419

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 (375) hide show
  1. package/dist/cjs/{filepond-CLDRrF9Y.js → filepond-BiRMqsJc.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-BG080TXY.js → filepond-plugin-file-poster-LU25G59n.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-D9x7yIeS.js → filepond-plugin-file-validate-size-J3-riOvN.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-CpHYiI2P.js → filepond-plugin-file-validate-type-DMawm6j5.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-B6TFtexK.js → filepond-plugin-image-edit-QXtHYcEz.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-C4Ycs5Ji.js → filepond-plugin-image-exif-orientation-C0VBHQjd.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-CWlUoPsm.js → filepond-plugin-image-preview-xG9m-vgD.js} +1 -1
  8. package/dist/cjs/{functions-B0oYwrYv.js → functions-CZrHAX2r.js} +1 -1
  9. package/dist/cjs/helpers-BJ2rnhxz.js +197 -0
  10. package/dist/cjs/{index-BQnJvBnq.js → index-Ce-Twd7-.js} +10 -6
  11. package/dist/cjs/{index-DEDv7FBx.js → index-DE1iYzD2.js} +1 -1
  12. package/dist/cjs/interfaces-Bh7W0bEU.js +33 -0
  13. package/dist/cjs/loader.cjs.js +2 -2
  14. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +37 -58
  17. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-booking-field_7.cjs.entry.js +12 -12
  23. package/dist/cjs/salla-bullet-delivery.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-comment-form_8.cjs.entry.js +4 -4
  27. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
  45. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
  46. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
  47. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  49. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  50. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-map.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-order-edit-item.cjs.entry.js +28 -29
  66. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +41 -0
  67. package/dist/cjs/salla-order-edit.cjs.entry.js +339 -40
  68. package/dist/cjs/salla-order-summary.cjs.entry.js +2 -2
  69. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-payments.cjs.entry.js +3 -3
  72. package/dist/cjs/salla-placeholder.cjs.entry.js +2 -2
  73. package/dist/cjs/salla-price-range.cjs.entry.js +3 -3
  74. package/dist/cjs/salla-product-card_2.cjs.entry.js +6 -6
  75. package/dist/cjs/salla-product-size-guide.cjs.entry.js +3 -3
  76. package/dist/cjs/salla-products-list.cjs.entry.js +38 -15
  77. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
  81. package/dist/cjs/salla-scopes.cjs.entry.js +2 -2
  82. package/dist/cjs/salla-search.cjs.entry.js +6 -6
  83. package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
  84. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
  86. package/dist/cjs/salla-social.cjs.entry.js +2 -2
  87. package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
  88. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
  90. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
  94. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  96. package/dist/cjs/{tracked-promise-BYjrk7x6.js → tracked-promise-DChUtH5B.js} +1 -1
  97. package/dist/cjs/twilight.cjs.js +2 -2
  98. package/dist/cjs/{vanilla-picker-DbbhCpKU.js → vanilla-picker-ivACsPLJ.js} +1 -1
  99. package/dist/collection/collection-manifest.json +1 -0
  100. package/dist/collection/components/salla-bought-together/salla-bought-together.js +1 -0
  101. package/dist/collection/components/salla-order-edit/helpers.js +181 -0
  102. package/dist/collection/components/salla-order-edit/salla-order-edit-item.css +3 -0
  103. package/dist/collection/components/salla-order-edit/salla-order-edit-item.js +42 -30
  104. package/dist/collection/components/salla-order-edit/salla-order-edit-product-card.css +4 -0
  105. package/dist/collection/components/salla-order-edit/salla-order-edit-product-card.js +93 -0
  106. package/dist/collection/components/salla-order-edit/salla-order-edit.css +3 -0
  107. package/dist/collection/components/salla-order-edit/salla-order-edit.js +353 -39
  108. package/dist/collection/components/salla-order-summary/salla-order-summary.js +1 -1
  109. package/dist/collection/components/salla-payments/salla-payments.js +2 -2
  110. package/dist/collection/components/salla-placeholder/salla-placeholder.js +1 -1
  111. package/dist/collection/components/salla-price-range/salla-price-range.js +2 -2
  112. package/dist/collection/components/salla-product-availability/salla-product-availability.js +1 -1
  113. package/dist/collection/components/salla-product-card/salla-product-card.js +5 -5
  114. package/dist/collection/components/salla-product-options/salla-product-options.js +28 -0
  115. package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
  116. package/dist/collection/components/salla-products-list/salla-products-list.js +54 -14
  117. package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
  118. package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +1 -1
  119. package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
  120. package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
  121. package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
  122. package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
  123. package/dist/collection/components/salla-search/salla-search.js +5 -5
  124. package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
  125. package/dist/collection/components/salla-social/salla-social.js +1 -1
  126. package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
  127. package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
  128. package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
  129. package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
  130. package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
  131. package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
  132. package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
  133. package/dist/components/index.js +2 -2
  134. package/dist/components/salla-bought-together.js +1 -0
  135. package/dist/components/salla-order-edit-item2.js +207 -30
  136. package/dist/components/salla-order-edit-product-card.d.ts +11 -0
  137. package/dist/components/salla-order-edit-product-card.js +59 -0
  138. package/dist/components/salla-order-edit.js +378 -65
  139. package/dist/components/salla-order-summary.js +1 -1
  140. package/dist/components/salla-payments.js +2 -2
  141. package/dist/components/salla-placeholder2.js +1 -1
  142. package/dist/components/salla-price-range2.js +2 -2
  143. package/dist/components/salla-product-availability2.js +1 -1
  144. package/dist/components/salla-product-card2.js +5 -5
  145. package/dist/components/salla-product-options2.js +8 -1
  146. package/dist/components/salla-product-size-guide.js +2 -2
  147. package/dist/components/salla-products-list2.js +39 -15
  148. package/dist/components/salla-quantity-input2.js +1 -1
  149. package/dist/components/salla-quick-buy2.js +1 -1
  150. package/dist/components/salla-review-card2.js +1 -1
  151. package/dist/components/salla-reviews-page.js +1 -1
  152. package/dist/components/salla-reviews.js +1 -1
  153. package/dist/components/salla-scopes.js +1 -1
  154. package/dist/components/salla-search.js +5 -5
  155. package/dist/components/salla-skeleton2.js +1 -1
  156. package/dist/components/salla-social-share.js +1 -1
  157. package/dist/components/salla-social.js +1 -1
  158. package/dist/components/salla-tab-content2.js +1 -1
  159. package/dist/components/salla-tab-header2.js +1 -1
  160. package/dist/components/salla-tabs2.js +1 -1
  161. package/dist/components/salla-tel-input2.js +1 -1
  162. package/dist/components/salla-tooltip2.js +1 -1
  163. package/dist/components/salla-user-settings.js +1 -1
  164. package/dist/esm/{filepond-B25v0bOp.js → filepond-0Pvy36B6.js} +1 -1
  165. package/dist/esm/{filepond-plugin-file-poster-3pI-GrYi.js → filepond-plugin-file-poster-DV7OW1XJ.js} +1 -1
  166. package/dist/esm/{filepond-plugin-file-validate-size-BF3zIjLe.js → filepond-plugin-file-validate-size-DEya24r_.js} +1 -1
  167. package/dist/esm/{filepond-plugin-file-validate-type-BR91w5t3.js → filepond-plugin-file-validate-type-DiFvVzC6.js} +1 -1
  168. package/dist/esm/{filepond-plugin-image-edit-DPwgIvr6.js → filepond-plugin-image-edit-DGBw5KRt.js} +1 -1
  169. package/dist/esm/{filepond-plugin-image-exif-orientation-Ba27xDEr.js → filepond-plugin-image-exif-orientation-BbpZAlI-.js} +1 -1
  170. package/dist/esm/{filepond-plugin-image-preview-CAEqmh_E.js → filepond-plugin-image-preview-CjRkn0jY.js} +1 -1
  171. package/dist/esm/{functions-Bk6s9Xp6.js → functions-BcJ4xDKw.js} +1 -1
  172. package/dist/esm/helpers-DR_vlSvU.js +184 -0
  173. package/dist/esm/{index-SSgsVJTU.js → index-313k5SuU.js} +1 -1
  174. package/dist/esm/{index-CN6KGTlN.js → index-CfaNNoM2.js} +10 -6
  175. package/dist/esm/interfaces-CoQJOPRz.js +33 -0
  176. package/dist/esm/loader.js +3 -3
  177. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  178. package/dist/esm/salla-accordion_6.entry.js +1 -1
  179. package/dist/esm/salla-add-product-button_5.entry.js +11 -32
  180. package/dist/esm/salla-advertisement.entry.js +1 -1
  181. package/dist/esm/salla-alert_2.entry.js +1 -1
  182. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  183. package/dist/esm/salla-apps-icons.entry.js +1 -1
  184. package/dist/esm/salla-badge.entry.js +1 -1
  185. package/dist/esm/salla-booking-field_7.entry.js +12 -12
  186. package/dist/esm/salla-bullet-delivery.entry.js +1 -1
  187. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  188. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  189. package/dist/esm/salla-comment-form_8.entry.js +4 -4
  190. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  191. package/dist/esm/salla-contacts.entry.js +1 -1
  192. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  193. package/dist/esm/salla-count-down.entry.js +1 -1
  194. package/dist/esm/salla-custom-fields.entry.js +1 -1
  195. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  196. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  197. package/dist/esm/salla-filters-widget.entry.js +1 -1
  198. package/dist/esm/salla-filters.entry.js +1 -1
  199. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  200. package/dist/esm/salla-gifting.entry.js +1 -1
  201. package/dist/esm/salla-hook.entry.js +1 -1
  202. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  203. package/dist/esm/salla-installment.entry.js +1 -1
  204. package/dist/esm/salla-list-tile.entry.js +1 -1
  205. package/dist/esm/salla-localization-modal.entry.js +1 -1
  206. package/dist/esm/salla-login-modal.entry.js +1 -1
  207. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  208. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  209. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  210. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  211. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  212. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  213. package/dist/esm/salla-loyalty.entry.js +1 -1
  214. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  215. package/dist/esm/salla-map.entry.js +1 -1
  216. package/dist/esm/salla-menu.entry.js +1 -1
  217. package/dist/esm/salla-metadata.entry.js +1 -1
  218. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  219. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  220. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  221. package/dist/esm/salla-notification-item.entry.js +1 -1
  222. package/dist/esm/salla-notifications.entry.js +1 -1
  223. package/dist/esm/salla-offer-modal.entry.js +1 -1
  224. package/dist/esm/salla-offer.entry.js +1 -1
  225. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  226. package/dist/esm/salla-order-details-options.entry.js +1 -1
  227. package/dist/esm/salla-order-details.entry.js +1 -1
  228. package/dist/esm/salla-order-edit-item.entry.js +28 -29
  229. package/dist/esm/salla-order-edit-product-card.entry.js +39 -0
  230. package/dist/esm/salla-order-edit.entry.js +339 -40
  231. package/dist/esm/salla-order-summary.entry.js +2 -2
  232. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  233. package/dist/esm/salla-orders.entry.js +1 -1
  234. package/dist/esm/salla-payments.entry.js +3 -3
  235. package/dist/esm/salla-placeholder.entry.js +2 -2
  236. package/dist/esm/salla-price-range.entry.js +3 -3
  237. package/dist/esm/salla-product-card_2.entry.js +6 -6
  238. package/dist/esm/salla-product-size-guide.entry.js +3 -3
  239. package/dist/esm/salla-products-list.entry.js +38 -15
  240. package/dist/esm/salla-progress-bar.entry.js +1 -1
  241. package/dist/esm/salla-quick-order.entry.js +1 -1
  242. package/dist/esm/salla-rating-modal.entry.js +1 -1
  243. package/dist/esm/salla-reward-action_4.entry.js +3 -3
  244. package/dist/esm/salla-scopes.entry.js +2 -2
  245. package/dist/esm/salla-search.entry.js +6 -6
  246. package/dist/esm/salla-skeleton.entry.js +2 -2
  247. package/dist/esm/salla-slider.entry.js +1 -1
  248. package/dist/esm/salla-social-share.entry.js +2 -2
  249. package/dist/esm/salla-social.entry.js +2 -2
  250. package/dist/esm/salla-tab-content_3.entry.js +4 -4
  251. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  252. package/dist/esm/salla-tooltip.entry.js +2 -2
  253. package/dist/esm/salla-trust-badges.entry.js +1 -1
  254. package/dist/esm/salla-user-menu.entry.js +1 -1
  255. package/dist/esm/salla-user-profile.entry.js +1 -1
  256. package/dist/esm/salla-user-settings.entry.js +2 -2
  257. package/dist/esm/salla-verify.entry.js +1 -1
  258. package/dist/esm/salla-wallet.entry.js +1 -1
  259. package/dist/esm/{tracked-promise-BpxjPYjA.js → tracked-promise-xD-AZOwt.js} +1 -1
  260. package/dist/esm/twilight.js +3 -3
  261. package/dist/esm/{vanilla-picker-CoVpA0FA.js → vanilla-picker-Bu8PG2Le.js} +1 -1
  262. package/dist/twilight/{p-5fe916ee.entry.js → p-02600ee1.entry.js} +1 -1
  263. package/dist/twilight/{p-f6862c1d.entry.js → p-02608fcd.entry.js} +1 -1
  264. package/dist/twilight/{p-7d0a6459.entry.js → p-029f9bfd.entry.js} +1 -1
  265. package/dist/twilight/p-073536c3.entry.js +4 -0
  266. package/dist/twilight/{p-89e6dc27.entry.js → p-0d4afc4b.entry.js} +1 -1
  267. package/dist/twilight/{p-529f8c0a.entry.js → p-11da9c5a.entry.js} +1 -1
  268. package/dist/twilight/{p-5980a88b.entry.js → p-13b1dae0.entry.js} +1 -1
  269. package/dist/twilight/{p-b94fd507.entry.js → p-13f019f5.entry.js} +1 -1
  270. package/dist/twilight/{p-65b943d6.entry.js → p-15be9e7a.entry.js} +1 -1
  271. package/dist/twilight/{p-f6010b04.entry.js → p-1bce06bf.entry.js} +1 -1
  272. package/dist/twilight/{p-93489e49.entry.js → p-1fe827c7.entry.js} +1 -1
  273. package/dist/twilight/{p-a3eaba68.entry.js → p-22d12f28.entry.js} +1 -1
  274. package/dist/twilight/{p-53c44a72.entry.js → p-2afe64d1.entry.js} +1 -1
  275. package/dist/twilight/{p-269c76e2.entry.js → p-2bb796b3.entry.js} +1 -1
  276. package/dist/twilight/{p-bbf9d24f.entry.js → p-2f1cb6da.entry.js} +1 -1
  277. package/dist/twilight/{p-337dc693.entry.js → p-3252277a.entry.js} +1 -1
  278. package/dist/twilight/{p-fa6c9d88.entry.js → p-3539d2a1.entry.js} +1 -1
  279. package/dist/twilight/{p-01e5a467.entry.js → p-3bda095b.entry.js} +1 -1
  280. package/dist/twilight/{p-44147d14.entry.js → p-3d286589.entry.js} +1 -1
  281. package/dist/twilight/{p-4e02648d.entry.js → p-410f0149.entry.js} +1 -1
  282. package/dist/twilight/{p-21c9f888.entry.js → p-42bf8cc1.entry.js} +1 -1
  283. package/dist/twilight/p-43c4c857.entry.js +4 -0
  284. package/dist/twilight/{p-fd200890.entry.js → p-4550de2d.entry.js} +1 -1
  285. package/dist/twilight/{p-f6cb5670.entry.js → p-4752dc2c.entry.js} +1 -1
  286. package/dist/twilight/{p-943a70d5.entry.js → p-48aba4cd.entry.js} +1 -1
  287. package/dist/twilight/p-49e28ca2.entry.js +4 -0
  288. package/dist/twilight/{p-3a336511.entry.js → p-4a7cbe49.entry.js} +1 -1
  289. package/dist/twilight/{p-ce32049d.entry.js → p-51252013.entry.js} +1 -1
  290. package/dist/twilight/{p-5c2221e4.entry.js → p-53e63007.entry.js} +1 -1
  291. package/dist/twilight/{p-60bcb05d.entry.js → p-57a4f3d2.entry.js} +1 -1
  292. package/dist/twilight/{p-50562d51.entry.js → p-5dbb89d5.entry.js} +1 -1
  293. package/dist/twilight/p-5dd07559.entry.js +4 -0
  294. package/dist/twilight/{p-5a719b92.entry.js → p-5dd75357.entry.js} +1 -1
  295. package/dist/twilight/p-5e4e45be.entry.js +4 -0
  296. package/dist/twilight/{p-93fd1f4c.entry.js → p-5f174a3e.entry.js} +1 -1
  297. package/dist/twilight/{p-901f4d3c.entry.js → p-625218f7.entry.js} +1 -1
  298. package/dist/twilight/{p-12a70121.entry.js → p-654a0990.entry.js} +1 -1
  299. package/dist/twilight/{p-89912723.entry.js → p-654b9857.entry.js} +1 -1
  300. package/dist/twilight/{p-2a3c8c27.entry.js → p-65ff0bf4.entry.js} +1 -1
  301. package/dist/twilight/{p-41338b27.entry.js → p-665aa4d1.entry.js} +1 -1
  302. package/dist/twilight/{p-30847b55.entry.js → p-69bec0e3.entry.js} +1 -1
  303. package/dist/twilight/{p-4546305a.entry.js → p-6b02b118.entry.js} +1 -1
  304. package/dist/twilight/{p-a3a24c3a.entry.js → p-72d4121c.entry.js} +1 -1
  305. package/dist/twilight/{p-9e2f4e04.entry.js → p-74cd506d.entry.js} +1 -1
  306. package/dist/twilight/{p-ea67e7fb.entry.js → p-75f26291.entry.js} +1 -1
  307. package/dist/twilight/{p-8cd3e1ee.entry.js → p-7ce1dff1.entry.js} +1 -1
  308. package/dist/twilight/{p-4f898f9a.entry.js → p-7d08def1.entry.js} +1 -1
  309. package/dist/twilight/{p-984ad4f5.entry.js → p-7f6c6d8a.entry.js} +1 -1
  310. package/dist/twilight/{p-f953dac6.entry.js → p-82d776ae.entry.js} +1 -1
  311. package/dist/twilight/{p-7df3848c.entry.js → p-87e78adc.entry.js} +1 -1
  312. package/dist/twilight/{p-a0f201dc.entry.js → p-891e4b61.entry.js} +1 -1
  313. package/dist/twilight/{p-f8971c24.entry.js → p-8bdd9c9b.entry.js} +1 -1
  314. package/dist/twilight/{p-b21dff70.entry.js → p-8d0b4049.entry.js} +1 -1
  315. package/dist/twilight/{p-92948a3c.entry.js → p-8dbff2c8.entry.js} +1 -1
  316. package/dist/twilight/{p-cb7286b0.entry.js → p-944b02ec.entry.js} +1 -1
  317. package/dist/twilight/{p-a6b86d59.entry.js → p-9693310b.entry.js} +1 -1
  318. package/dist/twilight/{p-9ef5baee.entry.js → p-9dcc291b.entry.js} +1 -1
  319. package/dist/twilight/{p-BqUtsKuV.js → p-B6bkY5-l.js} +1 -1
  320. package/dist/twilight/{p-IfDGKmqz.js → p-BCWPIsso.js} +1 -1
  321. package/dist/twilight/p-BLehGhpL.js +4 -0
  322. package/dist/twilight/{p-BI8HHCBk.js → p-BN2EOPT0.js} +2 -2
  323. package/dist/twilight/{p-D3AXrniM.js → p-BeZ-z3uX.js} +1 -1
  324. package/dist/twilight/{p-Dhp50bRZ.js → p-Bu7ZSFM5.js} +1 -1
  325. package/dist/twilight/{p-Dnp_uMrB.js → p-C0UBM1r0.js} +1 -1
  326. package/dist/twilight/{p-BHMFnn7K.js → p-C1ReTfKT.js} +1 -1
  327. package/dist/twilight/p-C8xwacGT.js +4 -0
  328. package/dist/twilight/{p-OFtreEoC.js → p-CX1cQxmm.js} +1 -1
  329. package/dist/twilight/{p-CN6KGTlN.js → p-CfaNNoM2.js} +1 -1
  330. package/dist/twilight/p-CoQJOPRz.js +4 -0
  331. package/dist/twilight/{p-CZ0CFRkg.js → p-P9Uquv6J.js} +1 -1
  332. package/dist/twilight/p-a132e9dc.entry.js +4 -0
  333. package/dist/twilight/{p-8867d017.entry.js → p-a22ab12e.entry.js} +1 -1
  334. package/dist/twilight/{p-3ea047a7.entry.js → p-a5093858.entry.js} +1 -1
  335. package/dist/twilight/{p-3d7867a2.entry.js → p-a5483eab.entry.js} +1 -1
  336. package/dist/twilight/{p-50a976c7.entry.js → p-ab922196.entry.js} +1 -1
  337. package/dist/twilight/{p-5ccc2829.entry.js → p-adf1ff1f.entry.js} +1 -1
  338. package/dist/twilight/{p-acdba86b.entry.js → p-b075bdd3.entry.js} +1 -1
  339. package/dist/twilight/{p-d83942f4.entry.js → p-b6446ed0.entry.js} +1 -1
  340. package/dist/twilight/{p-cba54712.entry.js → p-bd29fa58.entry.js} +1 -1
  341. package/dist/twilight/{p-38661112.entry.js → p-c0a96a41.entry.js} +1 -1
  342. package/dist/twilight/{p-2835e988.entry.js → p-c0da03a4.entry.js} +1 -1
  343. package/dist/twilight/{p-8f879479.entry.js → p-ce4823e8.entry.js} +1 -1
  344. package/dist/twilight/{p-418574c0.entry.js → p-cef8dfa8.entry.js} +1 -1
  345. package/dist/twilight/{p-984298b9.entry.js → p-d737a90e.entry.js} +1 -1
  346. package/dist/twilight/p-d7e404d1.entry.js +4 -0
  347. package/dist/twilight/{p-078e99bf.entry.js → p-d95fad47.entry.js} +1 -1
  348. package/dist/twilight/{p-1ac92f5a.entry.js → p-dacc7681.entry.js} +1 -1
  349. package/dist/twilight/{p-6f620e38.entry.js → p-e15ceaae.entry.js} +1 -1
  350. package/dist/twilight/p-e692fd88.entry.js +4 -0
  351. package/dist/twilight/{p-b3ad1668.entry.js → p-ee5afe29.entry.js} +1 -1
  352. package/dist/twilight/{p-329af334.entry.js → p-f248ce38.entry.js} +1 -1
  353. package/dist/twilight/{p-7cd6a7c4.entry.js → p-f6468e0f.entry.js} +1 -1
  354. package/dist/twilight/{p-4bf158ef.entry.js → p-f9e89a30.entry.js} +1 -1
  355. package/dist/twilight/{p-8f45764d.entry.js → p-fdd2d95e.entry.js} +1 -1
  356. package/dist/twilight/{p-66aac45f.entry.js → p-ff0d8f2b.entry.js} +1 -1
  357. package/dist/twilight/{p-CSkvMMJe.js → p-nj3fF7xi.js} +1 -1
  358. package/dist/twilight/twilight.esm.js +1 -1
  359. package/dist/types/components/salla-order-edit/helpers.d.ts +25 -0
  360. package/dist/types/components/salla-order-edit/interfaces.d.ts +22 -25
  361. package/dist/types/components/salla-order-edit/salla-order-edit-item.d.ts +7 -5
  362. package/dist/types/components/salla-order-edit/salla-order-edit-product-card.d.ts +11 -0
  363. package/dist/types/components/salla-order-edit/salla-order-edit.d.ts +56 -4
  364. package/dist/types/components/salla-product-options/salla-product-options.d.ts +4 -0
  365. package/dist/types/components/salla-products-list/salla-products-list.d.ts +5 -0
  366. package/dist/types/components.d.ts +51 -4
  367. package/package.json +5 -5
  368. package/dist/twilight/p-100664ef.entry.js +0 -4
  369. package/dist/twilight/p-38856897.entry.js +0 -4
  370. package/dist/twilight/p-43eca2f5.entry.js +0 -4
  371. package/dist/twilight/p-6edcfd67.entry.js +0 -4
  372. package/dist/twilight/p-73f6f7c7.entry.js +0 -4
  373. package/dist/twilight/p-DyiIcpTE.js +0 -4
  374. package/dist/twilight/p-a31559f1.entry.js +0 -4
  375. package/dist/twilight/p-c20a8155.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-CN6KGTlN.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-CfaNNoM2.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)})}};f({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=[],f=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 f={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"),f=o.getMetadata("filter")||null,u=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:u?u.id||u.matrix:n.query("GET_ALLOW_IMAGE_FILTER")&&n.query("GET_IMAGE_FILTER_COLOR_MATRIX")&&!I?f:null,color:I,markup:c};a.onconfirm=function(i){var n=i.data,t=n.crop,E=n.size,r=n.filter,_=n.color,f=n.colorMatrix,u=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})}u&&(I.markup=u),I.colors=_,I.filters=r,I.filter=f,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 f=t.createChildView(_,{label:"edit",icon:o("GET_IMAGE_EDIT_ICON_EDIT"),opacity:0});f.element.classList.add("filepond--action-edit-item"),f.element.dataset.align=o("GET_STYLE_IMAGE_EDIT_BUTTON_EDIT_ITEM_POSITION"),f.on("click",n.ref.handleEdit),n.ref.buttonEditItem=t.appendChildView(f)}else{var u=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),u.appendChild(I),n.ref.editButton=I}}}};r&&(f.DID_IMAGE_PREVIEW_SHOW=function(i){var n=i.root;n.ref.buttonEditItem&&(n.ref.buttonEditItem.opacity=1)}),t.registerWriter(E(f))}}}})),{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 A}from"./p-CN6KGTlN.js";function n(A,n){return n.forEach((function(n){n&&"string"!=typeof n&&!Array.isArray(n)&&Object.keys(n).forEach((function(e){if("default"!==e&&!(e in A)){var r=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(A,e,r.get?r:{enumerable:!0,get:function(){return n[e]}})}}))})),Object.freeze(A)}var e,r={exports:{}},i=(e||(e=1,r.exports=function(){var A=65496,n=65505,e=1165519206,r=18761,i=274,t=65280,o=function(A,n){return A.getUint16(n,arguments.length>2&&void 0!==arguments[2]&&arguments[2])},a=function(A,n){return A.getUint32(n,arguments.length>2&&void 0!==arguments[2]&&arguments[2])},u="undefined"!=typeof window&&void 0!==window.document,f=void 0,d=u?new Image:{};d.onload=function(){return f=d.naturalWidth>d.naturalHeight},d.src="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QA6RXhpZgAATU0AKgAAAAgAAwESAAMAAAABAAYAAAEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////wAALCAABAAIBASIA/8QAJgABAAAAAAAAAAAAAAAAAAAAAxABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQAAPwBH/9k=";var c=function(u){var d=u.utils,c=d.Type,v=d.isFile;return(0,u.addFilter)("DID_LOAD_ITEM",(function(u,d){var c=d.query;return new Promise((function(d){var w=u.file;if(!(v(w)&&function(A){return/^image\/jpeg/.test(A.type)}(w)&&c("GET_ALLOW_IMAGE_EXIF_ORIENTATION")&&f))return d(u);(function(u){return new Promise((function(f){var d=new FileReader;d.onload=function(u){var d=new DataView(u.target.result);if(o(d,0)===A){for(var c=d.byteLength,v=2;v<c;){var w=o(d,v);if(v+=2,w===n){if(a(d,v+=2)!==e)break;var g=o(d,v+=6)===r;v+=a(d,v+4,g);var l=o(d,v,g);v+=2;for(var p=0;p<l;p++)if(o(d,v+12*p,g)===i)return void f(o(d,v+12*p+8,g))}else{if((w&t)!==t)break;v+=o(d,v)}}f(-1)}else f(-1)},d.readAsArrayBuffer(u.slice(0,65536))}))})(w).then((function(A){u.setMetadata("exif",{orientation:A}),d(u)}))}))})),{options:{allowImageExifOrientation:[!0,c.BOOLEAN]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:c})),c}()),r.exports),t=n({__proto__:null,default:A(i)},[i]);
4
+ import{d as A}from"./p-CfaNNoM2.js";function n(A,n){return n.forEach((function(n){n&&"string"!=typeof n&&!Array.isArray(n)&&Object.keys(n).forEach((function(e){if("default"!==e&&!(e in A)){var r=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(A,e,r.get?r:{enumerable:!0,get:function(){return n[e]}})}}))})),Object.freeze(A)}var e,r={exports:{}},i=(e||(e=1,r.exports=function(){var A=65496,n=65505,e=1165519206,r=18761,i=274,t=65280,o=function(A,n){return A.getUint16(n,arguments.length>2&&void 0!==arguments[2]&&arguments[2])},a=function(A,n){return A.getUint32(n,arguments.length>2&&void 0!==arguments[2]&&arguments[2])},f="undefined"!=typeof window&&void 0!==window.document,u=void 0,d=f?new Image:{};d.onload=function(){return u=d.naturalWidth>d.naturalHeight},d.src="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QA6RXhpZgAATU0AKgAAAAgAAwESAAMAAAABAAYAAAEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////wAALCAABAAIBASIA/8QAJgABAAAAAAAAAAAAAAAAAAAAAxABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQAAPwBH/9k=";var c=function(f){var d=f.utils,c=d.Type,v=d.isFile;return(0,f.addFilter)("DID_LOAD_ITEM",(function(f,d){var c=d.query;return new Promise((function(d){var w=f.file;if(!(v(w)&&function(A){return/^image\/jpeg/.test(A.type)}(w)&&c("GET_ALLOW_IMAGE_EXIF_ORIENTATION")&&u))return d(f);(function(f){return new Promise((function(u){var d=new FileReader;d.onload=function(f){var d=new DataView(f.target.result);if(o(d,0)===A){for(var c=d.byteLength,v=2;v<c;){var w=o(d,v);if(v+=2,w===n){if(a(d,v+=2)!==e)break;var g=o(d,v+=6)===r;v+=a(d,v+4,g);var l=o(d,v,g);v+=2;for(var p=0;p<l;p++)if(o(d,v+12*p,g)===i)return void u(o(d,v+12*p+8,g))}else{if((w&t)!==t)break;v+=o(d,v)}}u(-1)}else u(-1)},d.readAsArrayBuffer(f.slice(0,65536))}))})(w).then((function(A){f.setMetadata("exif",{orientation:A}),d(f)}))}))})),{options:{allowImageExifOrientation:[!0,c.BOOLEAN]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:c})),c}()),r.exports),t=n({__proto__:null,default:A(i)},[i]);
5
5
  /*!
6
6
  * FilePondPluginImageExifOrientation 1.0.11
7
7
  * Licensed under MIT, https://opensource.org/licenses/MIT/
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ import{D as n}from"./p-CoQJOPRz.js";let t=0;function r(n){const r="undefined"!=typeof globalThis?globalThis.crypto:void 0;return r&&"function"==typeof r.randomUUID?`new-${n}-${r.randomUUID()}`:(t+=1,`new-${n}-${Date.now()}-${t}`)}function u(n){return null==n?n:"function"==typeof structuredClone?structuredClone(n):JSON.parse(JSON.stringify(n))}function e(n){return{items:{update:n.items.update,remove:n.items.remove,add:n.items.add.map((({itemId:n,...t})=>t))}}}function i(n,t,e,i={}){const o=u(n);return{id:r(n.id),quantity:t,isNew:!0,selectedOptions:i,product:{...o,options:u(e)}}}function o(n){return"undefined"!=typeof File&&n instanceof File?n.name:String(n)}function c(n={}){return JSON.stringify(Object.entries(n).filter((([,n])=>null!=n&&o(n).length>0)).map((([n,t])=>[String(n),o(t)])).sort((([n],[t])=>n.localeCompare(t))))}function s(n){return Boolean(n&&Object.values(n).some((n=>null!=n&&o(n).length>0)))}const f=new Set([n.COLOR,n.COUNTRY,n.DIGITAL_CARD_VALUE,n.MULTIPLE_OPTIONS,n.RADIO,n.SINGLE_OPTION,n.THUMBNAIL]);function l(n){if(s(n?.selectedOptions))return n.selectedOptions;const t=function(n=[]){return n.reduce(((n,t)=>{if(null==t?.id)return n;const r=t.details?.filter((n=>n?.is_selected))||[],u=r[r.length-1],e=u?.id??t.value;return null==e||0===String(e).length||(n[String(t.id)]=String(e)),n}),{})}(n?.product?.options);return s(t)?t:function(n){return(n?.options||[]).reduce(((t,r)=>{if(null==r?.id)return t;const u=r.value??r.display_value;return null==u||0===String(u).length||(t[String(r.id)]=function(n,t,r){const u=n?.product?.options?.find((n=>String(n.id)===String(t))),e=String(r);if(!u?.details?.length||!f.has(u.type))return e;const i=u.details.find((n=>[n.id,n.name,n.option_value,n.color,n.image,n.code,n.display_value].some((n=>null!=n&&String(n)===e))));return i?String(i.id):e}(n,r.id,u)),t}),{})}(n)}function a(n=[],t,r={}){const u=c(r);return n.find((n=>String(n.product?.id)===String(t)&&c(l(n))===u))}function d(n){const t=Number(n?.max_quantity??n?.max_quantity_per_order);return Number.isFinite(t)&&t>0?t:void 0}function S(n,t){return!Number.isFinite(n)||n<1?1:t&&n>t?t:n}function g(n=[],t,r,u,e){return n.map((n=>n.id===t?function(n,t,r,u){return{...n,quantity:t,selectedOptions:u??l(n),product:n.product?{...n.product,options:r??n.product.options}:n.product}}(n,r,u,e):n))}function p(n=[],t){return n.filter((n=>n.id!==t))}function m(n,t){return{...n,...t}}function b(n=[],t,r,u={}){const e=n.filter((n=>n.id!==t));return e.push({id:t,quantity:r,options:u}),e}function y(n=[],t,r,u){return n.map((n=>n.itemId===t?{...n,quantity:r,options:u??n.options}:n))}export{d as a,u as b,S as c,y as d,b as e,a as f,l as g,i as h,e as i,m,p as r,g as u}
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import{d as e}from"./p-CN6KGTlN.js";function E(e,E){return E.forEach((function(E){E&&"string"!=typeof E&&!Array.isArray(E)&&Object.keys(E).forEach((function(i){if("default"!==i&&!(i in e)){var _=Object.getOwnPropertyDescriptor(E,i);Object.defineProperty(e,i,_.get?_:{enumerable:!0,get:function(){return E[i]}})}}))})),Object.freeze(e)}var i,_,l={exports:{}},n=i?l.exports:(i=1,l.exports=(_=function(e){var E=e.addFilter,i=e.utils,_=i.Type,l=i.replaceInString,n=i.toNaturalFileSize;return E("ALLOW_HOPPER_ITEM",(function(e,E){var i=E.query;if(!i("GET_ALLOW_FILE_SIZE_VALIDATION"))return!0;var _=i("GET_MAX_FILE_SIZE");if(null!==_&&e.size>_)return!1;var l=i("GET_MIN_FILE_SIZE");return!(null!==l&&e.size<l)})),E("LOAD_FILE",(function(e,E){var i=E.query;return new Promise((function(E,_){if(!i("GET_ALLOW_FILE_SIZE_VALIDATION"))return E(e);var t=i("GET_FILE_VALIDATE_SIZE_FILTER");if(t&&!t(e))return E(e);var I=i("GET_MAX_FILE_SIZE");if(null!==I&&e.size>I)_({status:{main:i("GET_LABEL_MAX_FILE_SIZE_EXCEEDED"),sub:l(i("GET_LABEL_MAX_FILE_SIZE"),{filesize:n(I,".",i("GET_FILE_SIZE_BASE"),i("GET_FILE_SIZE_LABELS",i))})}});else{var L=i("GET_MIN_FILE_SIZE");if(null!==L&&e.size<L)_({status:{main:i("GET_LABEL_MIN_FILE_SIZE_EXCEEDED"),sub:l(i("GET_LABEL_MIN_FILE_SIZE"),{filesize:n(L,".",i("GET_FILE_SIZE_BASE"),i("GET_FILE_SIZE_LABELS",i))})}});else{var a=i("GET_MAX_TOTAL_FILE_SIZE");if(null!==a&&i("GET_ACTIVE_ITEMS").reduce((function(e,E){return e+E.fileSize}),0)>a)return void _({status:{main:i("GET_LABEL_MAX_TOTAL_FILE_SIZE_EXCEEDED"),sub:l(i("GET_LABEL_MAX_TOTAL_FILE_SIZE"),{filesize:n(a,".",i("GET_FILE_SIZE_BASE"),i("GET_FILE_SIZE_LABELS",i))})}});E(e)}}}))})),{options:{allowFileSizeValidation:[!0,_.BOOLEAN],maxFileSize:[null,_.INT],minFileSize:[null,_.INT],maxTotalFileSize:[null,_.INT],fileValidateSizeFilter:[null,_.FUNCTION],labelMinFileSizeExceeded:["File is too small",_.STRING],labelMinFileSize:["Minimum file size is {filesize}",_.STRING],labelMaxFileSizeExceeded:["File is too large",_.STRING],labelMaxFileSize:["Maximum file size is {filesize}",_.STRING],labelMaxTotalFileSizeExceeded:["Maximum total size exceeded",_.STRING],labelMaxTotalFileSize:["Maximum total file size is {filesize}",_.STRING]}}},"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:_})),_)),t=E({__proto__:null,default:e(n)},[n]);
4
+ import{d as e}from"./p-CfaNNoM2.js";function E(e,E){return E.forEach((function(E){E&&"string"!=typeof E&&!Array.isArray(E)&&Object.keys(E).forEach((function(i){if("default"!==i&&!(i in e)){var _=Object.getOwnPropertyDescriptor(E,i);Object.defineProperty(e,i,_.get?_:{enumerable:!0,get:function(){return E[i]}})}}))})),Object.freeze(e)}var i,_,l={exports:{}},n=i?l.exports:(i=1,l.exports=(_=function(e){var E=e.addFilter,i=e.utils,_=i.Type,l=i.replaceInString,n=i.toNaturalFileSize;return E("ALLOW_HOPPER_ITEM",(function(e,E){var i=E.query;if(!i("GET_ALLOW_FILE_SIZE_VALIDATION"))return!0;var _=i("GET_MAX_FILE_SIZE");if(null!==_&&e.size>_)return!1;var l=i("GET_MIN_FILE_SIZE");return!(null!==l&&e.size<l)})),E("LOAD_FILE",(function(e,E){var i=E.query;return new Promise((function(E,_){if(!i("GET_ALLOW_FILE_SIZE_VALIDATION"))return E(e);var t=i("GET_FILE_VALIDATE_SIZE_FILTER");if(t&&!t(e))return E(e);var I=i("GET_MAX_FILE_SIZE");if(null!==I&&e.size>I)_({status:{main:i("GET_LABEL_MAX_FILE_SIZE_EXCEEDED"),sub:l(i("GET_LABEL_MAX_FILE_SIZE"),{filesize:n(I,".",i("GET_FILE_SIZE_BASE"),i("GET_FILE_SIZE_LABELS",i))})}});else{var a=i("GET_MIN_FILE_SIZE");if(null!==a&&e.size<a)_({status:{main:i("GET_LABEL_MIN_FILE_SIZE_EXCEEDED"),sub:l(i("GET_LABEL_MIN_FILE_SIZE"),{filesize:n(a,".",i("GET_FILE_SIZE_BASE"),i("GET_FILE_SIZE_LABELS",i))})}});else{var L=i("GET_MAX_TOTAL_FILE_SIZE");if(null!==L&&i("GET_ACTIVE_ITEMS").reduce((function(e,E){return e+E.fileSize}),0)>L)return void _({status:{main:i("GET_LABEL_MAX_TOTAL_FILE_SIZE_EXCEEDED"),sub:l(i("GET_LABEL_MAX_TOTAL_FILE_SIZE"),{filesize:n(L,".",i("GET_FILE_SIZE_BASE"),i("GET_FILE_SIZE_LABELS",i))})}});E(e)}}}))})),{options:{allowFileSizeValidation:[!0,_.BOOLEAN],maxFileSize:[null,_.INT],minFileSize:[null,_.INT],maxTotalFileSize:[null,_.INT],fileValidateSizeFilter:[null,_.FUNCTION],labelMinFileSizeExceeded:["File is too small",_.STRING],labelMinFileSize:["Minimum file size is {filesize}",_.STRING],labelMaxFileSizeExceeded:["File is too large",_.STRING],labelMaxFileSize:["Maximum file size is {filesize}",_.STRING],labelMaxTotalFileSizeExceeded:["Maximum total size exceeded",_.STRING],labelMaxTotalFileSize:["Maximum total file size is {filesize}",_.STRING]}}},"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:_})),_)),t=E({__proto__:null,default:e(n)},[n]);
5
5
  /*!
6
6
  * FilePondPluginFileValidateSize 2.2.8
7
7
  * Licensed under MIT, https://opensource.org/licenses/MIT/