@salla.sa/twilight-components 2.14.380 → 2.14.381
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.
- package/dist/cjs/{filepond-OhCwnn9l.js → filepond-CsqfBzs3.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-BjJJ863B.js → filepond-plugin-file-poster-BWhvanmU.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-D5nJzX3z.js → filepond-plugin-file-validate-size-noIyy5Yp.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-D13Iiqqr.js → filepond-plugin-file-validate-type-N76Wh7ZL.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-ClQqTYlQ.js → filepond-plugin-image-edit-BkgUR4kG.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-BTOdKQOQ.js → filepond-plugin-image-exif-orientation-DLFISFCC.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-Dsci6Rtb.js → filepond-plugin-image-preview-CtTDfIQp.js} +1 -1
- package/dist/cjs/{index-DH1vX5Bt.js → index-B-K6ToCR.js} +1 -1
- package/dist/cjs/{index-CHRvLWS8.js → index-Bxxuur88.js} +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +4 -2
- package/dist/cjs/salla-add-product-button_4.cjs.entry.js +1 -1
- package/dist/cjs/salla-advertisement.cjs.entry.js +5 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +8 -2
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +10 -10
- package/dist/cjs/salla-bullet-delivery.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +2 -2
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +5 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
- package/dist/cjs/salla-hook.cjs.entry.js +6 -2
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
- package/dist/cjs/salla-localization-modal.cjs.entry.js +144 -43
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +6 -4
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +10 -6
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +2 -2
- package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +1 -1
- package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +5 -3
- package/dist/cjs/salla-scopes.cjs.entry.js +5 -1
- package/dist/cjs/salla-search.cjs.entry.js +1 -1
- package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
- package/dist/cjs/salla-social.cjs.entry.js +1 -1
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +4 -4
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-BZ7Tbldp.js → vanilla-picker-DDwsUdkB.js} +1 -1
- package/dist/collection/components/salla-accordion/salla-accordion.js +5 -3
- package/dist/collection/components/salla-advertisement/salla-advertisement.js +4 -0
- package/dist/collection/components/salla-app-install-alert/salla-app-install-alert.js +7 -1
- package/dist/collection/components/salla-custom-fields/salla-custom-fields.js +12 -8
- package/dist/collection/components/salla-hook/salla-hook.js +12 -5
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +165 -47
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-cart.js +3 -2
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.js +4 -3
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.js +12 -9
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.js +7 -6
- package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.js +2 -2
- package/dist/collection/components/salla-order-details/salla-order-details.js +2 -2
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +4 -2
- package/dist/collection/components/salla-review-card/salla-review-card.js +2 -2
- package/dist/collection/components/salla-scopes/salla-scopes.js +4 -0
- package/dist/collection/components/salla-user-menu/salla-user-menu.js +7 -7
- package/dist/components/index.js +2 -2
- package/dist/components/salla-accordion2.js +3 -1
- package/dist/components/salla-advertisement.js +4 -0
- package/dist/components/salla-app-install-alert.js +7 -1
- package/dist/components/salla-custom-fields.js +4 -0
- package/dist/components/salla-hook.js +5 -1
- package/dist/components/salla-localization-modal.js +144 -43
- package/dist/components/salla-multiple-bundle-product-cart2.js +2 -1
- package/dist/components/salla-multiple-bundle-product-details2.js +3 -2
- package/dist/components/salla-multiple-bundle-product-options-modal2.js +7 -4
- package/dist/components/salla-multiple-bundle-product-slider2.js +2 -1
- package/dist/components/salla-multiple-bundle-product.js +1 -1
- package/dist/components/salla-order-details.js +1 -1
- package/dist/components/salla-rating-modal.js +4 -2
- package/dist/components/salla-review-card2.js +1 -1
- package/dist/components/salla-scopes.js +4 -0
- package/dist/components/salla-user-menu.js +4 -4
- package/dist/esm/{filepond-BgLkbAlS.js → filepond-Dw5LLI9G.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-s4m5zTQ5.js → filepond-plugin-file-poster-BQve1M8B.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-EfVTIVeK.js → filepond-plugin-file-validate-size-Mq0exUD8.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-Chg0gvtx.js → filepond-plugin-file-validate-type-BjZfWuzA.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-DvIjoDsi.js → filepond-plugin-image-edit-B_Mw4seW.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-kE8T9OkA.js → filepond-plugin-image-exif-orientation-D1rHHcpP.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-BJAUCA1P.js → filepond-plugin-image-preview-CSOxFeXE.js} +1 -1
- package/dist/esm/{index-eEimxoFN.js → index-BpoZBzEy.js} +2 -2
- package/dist/esm/{index-BAJAa57P.js → index-COcTESat.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_3.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +4 -2
- package/dist/esm/salla-add-product-button_4.entry.js +1 -1
- package/dist/esm/salla-advertisement.entry.js +5 -1
- package/dist/esm/salla-alert_2.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +8 -2
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +10 -10
- package/dist/esm/salla-bullet-delivery.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-comment-form_8.entry.js +2 -2
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-cookies-bar.entry.js +1 -1
- package/dist/esm/salla-count-down_2.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +5 -1
- package/dist/esm/salla-filters-widget.entry.js +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +1 -1
- package/dist/esm/salla-hook.entry.js +6 -2
- package/dist/esm/salla-infinite-scroll.entry.js +1 -1
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-list-tile.entry.js +1 -1
- package/dist/esm/salla-localization-modal.entry.js +144 -43
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +1 -1
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-menu.entry.js +1 -1
- package/dist/esm/salla-metadata.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +6 -4
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +10 -6
- package/dist/esm/salla-multiple-bundle-product.entry.js +2 -2
- package/dist/esm/salla-notification-item.entry.js +1 -1
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer-modal.entry.js +1 -1
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +2 -2
- package/dist/esm/salla-order-summary.entry.js +1 -1
- package/dist/esm/salla-order-totals-card.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +1 -1
- package/dist/esm/salla-placeholder.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +1 -1
- package/dist/esm/salla-products-slider.entry.js +1 -1
- package/dist/esm/salla-progress-bar.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +5 -3
- package/dist/esm/salla-scopes.entry.js +5 -1
- package/dist/esm/salla-search.entry.js +1 -1
- package/dist/esm/salla-skeleton.entry.js +1 -1
- package/dist/esm/salla-slider.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +1 -1
- package/dist/esm/salla-social.entry.js +1 -1
- package/dist/esm/salla-tab-content_3.entry.js +1 -1
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +1 -1
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-user-menu.entry.js +4 -4
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +1 -1
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-CQfoqkgB.js → vanilla-picker-COFfA4w_.js} +1 -1
- package/dist/twilight/{p-6d33240d.entry.js → p-0413c734.entry.js} +1 -1
- package/dist/twilight/p-04b8ab10.entry.js +4 -0
- package/dist/twilight/{p-8a40fabd.entry.js → p-15a594fa.entry.js} +1 -1
- package/dist/twilight/{p-424d54df.entry.js → p-15fd3093.entry.js} +1 -1
- package/dist/twilight/{p-309b6cfe.entry.js → p-17b7160b.entry.js} +1 -1
- package/dist/twilight/{p-f3b11c5e.entry.js → p-2199d718.entry.js} +1 -1
- package/dist/twilight/{p-f65b1cc4.entry.js → p-24377f25.entry.js} +1 -1
- package/dist/twilight/{p-38577abd.entry.js → p-264fbff6.entry.js} +1 -1
- package/dist/twilight/{p-52404ae1.entry.js → p-3041a8c3.entry.js} +1 -1
- package/dist/twilight/{p-4b8f5897.entry.js → p-30e99651.entry.js} +1 -1
- package/dist/twilight/{p-f7811b2e.entry.js → p-39581e5c.entry.js} +1 -1
- package/dist/twilight/{p-80956964.entry.js → p-3f181a96.entry.js} +1 -1
- package/dist/twilight/{p-b318a0ba.entry.js → p-4463abd4.entry.js} +1 -1
- package/dist/twilight/{p-8cdc7360.entry.js → p-4919e5a9.entry.js} +1 -1
- package/dist/twilight/{p-1b414a65.entry.js → p-4ffae40f.entry.js} +1 -1
- package/dist/twilight/{p-CNaIwBPC.js → p-4jF7OEOD.js} +1 -1
- package/dist/twilight/{p-0edc4cd6.entry.js → p-538189c6.entry.js} +1 -1
- package/dist/twilight/{p-a8be9bd2.entry.js → p-53c9c271.entry.js} +1 -1
- package/dist/twilight/{p-d9ea5bc0.entry.js → p-5507971f.entry.js} +1 -1
- package/dist/twilight/{p-4429147a.entry.js → p-5e99999b.entry.js} +1 -1
- package/dist/twilight/{p-8c083d22.entry.js → p-6004b9f6.entry.js} +1 -1
- package/dist/twilight/{p-4b18c6b6.entry.js → p-645926ff.entry.js} +1 -1
- package/dist/twilight/{p-4937d0bd.entry.js → p-64a71c5b.entry.js} +1 -1
- package/dist/twilight/{p-c3015089.entry.js → p-64e748a7.entry.js} +1 -1
- package/dist/twilight/{p-914fe9d5.entry.js → p-6a92b5dd.entry.js} +1 -1
- package/dist/twilight/{p-e3685dec.entry.js → p-6af10c58.entry.js} +1 -1
- package/dist/twilight/{p-e137375c.entry.js → p-7131d69f.entry.js} +1 -1
- package/dist/twilight/{p-14e34d12.entry.js → p-73ab234b.entry.js} +1 -1
- package/dist/twilight/{p-1062e8b0.entry.js → p-83f3ec31.entry.js} +1 -1
- package/dist/twilight/{p-6fca74f4.entry.js → p-84c228b3.entry.js} +1 -1
- package/dist/twilight/p-87995ef8.entry.js +4 -0
- package/dist/twilight/{p-0eb5078d.entry.js → p-8edc0ff0.entry.js} +1 -1
- package/dist/twilight/{p-8a50b0ec.entry.js → p-97fb05e9.entry.js} +1 -1
- package/dist/twilight/{p-e1091287.entry.js → p-984f5fdb.entry.js} +1 -1
- package/dist/twilight/{p-f9e74b2d.entry.js → p-98cb7b70.entry.js} +1 -1
- package/dist/twilight/{p-50b948f1.entry.js → p-9aea4727.entry.js} +1 -1
- package/dist/twilight/{p-73a0f916.entry.js → p-9f184cae.entry.js} +1 -1
- package/dist/twilight/{p-C0SN1Hu2.js → p-BEN319Se.js} +1 -1
- package/dist/twilight/{p-BA4uXDey.js → p-B_eS27OO.js} +1 -1
- package/dist/twilight/{p-eEimxoFN.js → p-BpoZBzEy.js} +1 -1
- package/dist/twilight/{p-_Nybob4I.js → p-CLHtpy_k.js} +1 -1
- package/dist/twilight/{p-DA2DReRj.js → p-ChWnmXKQ.js} +1 -1
- package/dist/twilight/{p-CBclGOrf.js → p-OV5ZDGcP.js} +1 -1
- package/dist/twilight/{p-0d0e9cc5.entry.js → p-a1bf8ad3.entry.js} +1 -1
- package/dist/twilight/{p-d1d96039.entry.js → p-a3ec6623.entry.js} +1 -1
- package/dist/twilight/{p-a5f45964.entry.js → p-ab35c8be.entry.js} +1 -1
- package/dist/twilight/p-acd0216d.entry.js +4 -0
- package/dist/twilight/{p-34f54667.entry.js → p-b01d274c.entry.js} +1 -1
- package/dist/twilight/{p-dd194e28.entry.js → p-b070f96a.entry.js} +1 -1
- package/dist/twilight/p-b2979968.entry.js +4 -0
- package/dist/twilight/{p-174f26e3.entry.js → p-bdefc2f2.entry.js} +1 -1
- package/dist/twilight/{p-6a0d5bf0.entry.js → p-c0540583.entry.js} +1 -1
- package/dist/twilight/{p-3e3ef749.entry.js → p-c1a34acb.entry.js} +1 -1
- package/dist/twilight/{p-1cc348bd.entry.js → p-c5b6f255.entry.js} +1 -1
- package/dist/twilight/{p-ba843446.entry.js → p-c5b8fb5f.entry.js} +1 -1
- package/dist/twilight/{p-537ea6c4.entry.js → p-c614db39.entry.js} +1 -1
- package/dist/twilight/{p-ca322deb.entry.js → p-c69cfce4.entry.js} +1 -1
- package/dist/twilight/{p-eb426d96.entry.js → p-c74dd641.entry.js} +1 -1
- package/dist/twilight/{p-2553c102.entry.js → p-ca62b40b.entry.js} +1 -1
- package/dist/twilight/{p-c4a32c32.entry.js → p-ca995389.entry.js} +1 -1
- package/dist/twilight/{p-8948444e.entry.js → p-d9e33667.entry.js} +1 -1
- package/dist/twilight/{p-b8c8437b.entry.js → p-dd01d95c.entry.js} +1 -1
- package/dist/twilight/{p-1cc494ac.entry.js → p-dff43324.entry.js} +1 -1
- package/dist/twilight/{p-1f256c22.entry.js → p-e35623f2.entry.js} +1 -1
- package/dist/twilight/{p-90a2dde9.entry.js → p-e4d4516c.entry.js} +1 -1
- package/dist/twilight/{p-2ca7ed43.entry.js → p-e66f7d14.entry.js} +1 -1
- package/dist/twilight/{p-s1UoXHVX.js → p-eWBd8uwT.js} +1 -1
- package/dist/twilight/{p-d595175e.entry.js → p-ed12b178.entry.js} +1 -1
- package/dist/twilight/{p-4a09432e.entry.js → p-efd9618b.entry.js} +1 -1
- package/dist/twilight/{p-642dbfd9.entry.js → p-f158ba7c.entry.js} +1 -1
- package/dist/twilight/{p-d042041b.entry.js → p-f2b27a5e.entry.js} +1 -1
- package/dist/twilight/{p-7f2a4dc0.entry.js → p-f60ec106.entry.js} +1 -1
- package/dist/twilight/{p-62713df9.entry.js → p-f625565a.entry.js} +1 -1
- package/dist/twilight/{p-2169fb7d.entry.js → p-f78b23ea.entry.js} +1 -1
- package/dist/twilight/{p-0af1c84b.entry.js → p-f7bf59b9.entry.js} +1 -1
- package/dist/twilight/{p-645edb0f.entry.js → p-fdad85d2.entry.js} +1 -1
- package/dist/twilight/{p-CeE1UK0j.js → p-rPMW4kOC.js} +1 -1
- package/dist/twilight/{p-C1cZE4BE.js → p-tNbreaQ2.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-accordion/salla-accordion.d.ts +2 -0
- package/dist/types/components/salla-app-install-alert/salla-app-install-alert.d.ts +1 -0
- package/dist/types/components/salla-custom-fields/salla-custom-fields.d.ts +8 -0
- package/dist/types/components/salla-hook/salla-hook.d.ts +5 -0
- package/dist/types/components/salla-localization-modal/salla-localization-modal.d.ts +14 -3
- package/dist/types/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-cart.d.ts +1 -0
- package/dist/types/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.d.ts +1 -0
- package/dist/types/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.d.ts +5 -0
- package/dist/types/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.d.ts +5 -0
- package/dist/types/components/salla-multiple-bundle-product/salla-multiple-bundle-product.d.ts +1 -0
- package/dist/types/components/salla-order-details/salla-order-details.d.ts +1 -0
- package/dist/types/components/salla-review-card/salla-review-card.d.ts +1 -0
- package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +2 -2
- package/dist/types/components.d.ts +120 -14
- package/package.json +5 -5
- package/dist/twilight/p-7ae2abce.entry.js +0 -4
- package/dist/twilight/p-c5b3b222.entry.js +0 -4
- package/dist/twilight/p-f1c55b22.entry.js +0 -4
- package/dist/twilight/p-f820bb24.entry.js +0 -4
|
@@ -3,27 +3,94 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-Bxxuur88.js');
|
|
7
7
|
|
|
8
8
|
const SallaLocalizationModal = class {
|
|
9
9
|
constructor(hostRef) {
|
|
10
10
|
index.registerInstance(this, hostRef);
|
|
11
|
-
this.
|
|
11
|
+
this.languageNames = {
|
|
12
|
+
"ar": "العربية",
|
|
13
|
+
"en": "English",
|
|
14
|
+
"sq": "shqip",
|
|
15
|
+
"hy": "հայերէն",
|
|
16
|
+
"bg": "български",
|
|
17
|
+
"zh": "汉语",
|
|
18
|
+
"hr": "hrvatski",
|
|
19
|
+
"cs": "čeština",
|
|
20
|
+
"da": "dansk",
|
|
21
|
+
"nl": "dutch",
|
|
22
|
+
"et": "eesti keel",
|
|
23
|
+
"fi": "suomen kieli",
|
|
24
|
+
"fr": "Français",
|
|
25
|
+
"de": "Deutsch",
|
|
26
|
+
"el": "Ελληνικά",
|
|
27
|
+
"hi": "हिन्दी",
|
|
28
|
+
"hu": "magyar",
|
|
29
|
+
//we know it's `id` as ISO 639-1 but we are using `ind` as ISO 639-2 on our system as key to avoid conflicts with `id` attribute
|
|
30
|
+
"ind": "bahasa Indonesia",
|
|
31
|
+
"ga": "Gaeilge",
|
|
32
|
+
"it": "Italiano",
|
|
33
|
+
"ja": "日本語",
|
|
34
|
+
"ko": "한국어",
|
|
35
|
+
"lv": "latviešu",
|
|
36
|
+
"mt": "Maltese",
|
|
37
|
+
"fa": "فارسی",
|
|
38
|
+
"pl": "Polish",
|
|
39
|
+
"pt": "português",
|
|
40
|
+
"ro": "română",
|
|
41
|
+
"ru": "русский",
|
|
42
|
+
"sl": "slovenščina",
|
|
43
|
+
"es": "Español",
|
|
44
|
+
"sv": "svenska",
|
|
45
|
+
"tl": "Tagalog (Filipino)",
|
|
46
|
+
"tr": "Türkçe",
|
|
47
|
+
"uk": "украї́нська",
|
|
48
|
+
"ur": "اُردُو",
|
|
49
|
+
"ms": "Bahasa Malaysia",
|
|
50
|
+
};
|
|
51
|
+
this.currenciesList = {
|
|
52
|
+
SAR: { en: "Saudi Riyal", ar: "ريال سعودي", symbol: "ر.س" },
|
|
53
|
+
USD: { en: "US Dollar", ar: "دولار أمريكي", symbol: "$" },
|
|
54
|
+
EUR: { en: "Euro", ar: "يورو", symbol: "€" },
|
|
55
|
+
AED: { en: "UAE Dirham", ar: "درهم اماراتي", symbol: "د.إ" },
|
|
56
|
+
KWD: { en: "Kuwaiti Dinar", ar: "دينار كويتي", symbol: "د.ك" },
|
|
57
|
+
BHD: { en: "Bahraini Dinar", ar: "دينار بحريني", symbol: "د.ب" },
|
|
58
|
+
QAR: { en: "Qatari Riyal", ar: "ريال قطري", symbol: "ر.ق" },
|
|
59
|
+
OMR: { en: "Omani Rial", ar: "ريال عماني", symbol: "ر.ع" },
|
|
60
|
+
AUD: { en: "Australian Dollar", ar: "دولار استرالي", symbol: "$" },
|
|
61
|
+
CAD: { en: "Canadian Dollar", ar: "دولار كندي", symbol: "$" },
|
|
62
|
+
CNY: { en: "Renminbi", ar: "رنمينبي", symbol: "¥" },
|
|
63
|
+
EGP: { en: "Egyptian Pound", ar: "جنيه مصري", symbol: "ج.م" },
|
|
64
|
+
GBP: { en: "Pound Sterling", ar: "جنيه استرليني", symbol: "£" },
|
|
65
|
+
IDR: { en: "Indonesian Rupiah", ar: "روبية إندونيسية", symbol: "Rp" },
|
|
66
|
+
INR: { en: "Indian Rupee", ar: "روبية هندية", symbol: "₹" },
|
|
67
|
+
JPY: { en: "Japanese Yen", ar: "ين ياباني", symbol: "¥" },
|
|
68
|
+
MYR: { en: "Malaysian Ringgit", ar: "رينغيت ماليزي", symbol: "RM" },
|
|
69
|
+
PKR: { en: "Pakistani Rupee", ar: "روبية باكستانية", symbol: "Rs." },
|
|
70
|
+
SEK: { en: "Swedish Krona", ar: "كرونة سويدية", symbol: "kr" },
|
|
71
|
+
SGD: { en: "Singapore Dollar", ar: "دولار سنغافوري", symbol: "$" },
|
|
72
|
+
TRY: { en: "Turkish Lira", ar: "ليرة تركية", symbol: "₺" },
|
|
73
|
+
IQD: { en: "Iraqi Dinar", ar: "دينار عراقي", symbol: "د.ع" },
|
|
74
|
+
LBP: { en: "Lebanese Pound", ar: "ليرة لبنانية", symbol: "ل.ل" },
|
|
75
|
+
MRO: { en: "Mauritanian Ouguiya", ar: "أوقية موريتانية", symbol: "UM" },
|
|
76
|
+
SDG: { en: "Sudanese Pound", ar: "جنيه سوداني", symbol: "SDG" },
|
|
77
|
+
SYP: { en: "Syrian Pound", ar: "ليرة سورية", symbol: "ل.س" },
|
|
78
|
+
TND: { en: "Tunisian Dinar", ar: "دينار تونسي", symbol: "د.ت" },
|
|
79
|
+
JOD: { en: "Jordanian Dinar", ar: "دينار أردني", symbol: "JOD" },
|
|
80
|
+
DZD: { en: "Algerian Dinar", ar: "دينار جزائري", symbol: "دج" },
|
|
81
|
+
MAD: { en: "Moroccan Dirham", ar: "درهم مغربي", symbol: "د.م." },
|
|
82
|
+
LYD: { en: "Libyan Dinar", ar: "دينار ليبي", symbol: "LD" },
|
|
83
|
+
YER: { en: "Yemeni Riyal", ar: "ريال يمني", symbol: "ر.ي" }
|
|
84
|
+
};
|
|
85
|
+
//here we will used the currency code instead of the symbol when current language is not arabic
|
|
86
|
+
this.arabicCurrencies = ["SAR", "AED", "KWD", "BHD", "QAR", "OMR", "EGP", "IQD", "LBP", "SYP", "TND", "DZD", "MAD", "YER"];
|
|
12
87
|
this.languages = [];
|
|
13
88
|
this.currencies = [];
|
|
14
89
|
this.hasError = false;
|
|
15
90
|
/**
|
|
16
|
-
*
|
|
91
|
+
* To show the trigger button or not
|
|
17
92
|
*/
|
|
18
|
-
this.
|
|
19
|
-
/**
|
|
20
|
-
* Current currency (existing or newly selected)
|
|
21
|
-
*/
|
|
22
|
-
this.currency = salla.config.get('user.currency_code');
|
|
23
|
-
salla.event.on('localization::open', () => this.open());
|
|
24
|
-
salla.lang.onLoaded(() => {
|
|
25
|
-
this.translationLoaded = true;
|
|
26
|
-
});
|
|
93
|
+
this.showTrigger = false;
|
|
27
94
|
/**
|
|
28
95
|
* letting developer to insert his own slot like:
|
|
29
96
|
* <salla-localization>
|
|
@@ -34,14 +101,25 @@ const SallaLocalizationModal = class {
|
|
|
34
101
|
* we made a workaround to pass language & currency attributes, then replace names in rendering
|
|
35
102
|
*/
|
|
36
103
|
this.languageSlot = this.host.querySelector('[slot="language"]')?.innerHTML || '<label class="s-localization-modal-label" for="lang-{code}"><span>{name}</span></label>';
|
|
37
|
-
this.currencySlot = this.host.querySelector('[slot="currency"]')?.innerHTML || '<label class="s-localization-modal-label" for="currency-{code}"><span>{name}</span><small class="s-localization-modal-currency">{
|
|
104
|
+
this.currencySlot = this.host.querySelector('[slot="currency"]')?.innerHTML || '<label class="s-localization-modal-label" for="currency-{code}"><span>{name}</span><small class="s-localization-modal-currency">{symbol}</small></label>';
|
|
105
|
+
}
|
|
106
|
+
async componentWillLoad() {
|
|
107
|
+
await Salla.onReady();
|
|
108
|
+
await Salla.lang.onLoaded();
|
|
109
|
+
Salla.event.on('localization::open', () => this.open());
|
|
110
|
+
if (!this.language) {
|
|
111
|
+
this.language = Salla.config.get('user.language_code');
|
|
112
|
+
}
|
|
113
|
+
if (!this.currency) {
|
|
114
|
+
this.currency = Salla.config.get('user.currency_code');
|
|
115
|
+
}
|
|
38
116
|
}
|
|
39
117
|
/**
|
|
40
118
|
* open the component
|
|
41
119
|
*/
|
|
42
120
|
async open() {
|
|
43
121
|
this.modal.open();
|
|
44
|
-
return await
|
|
122
|
+
return await Salla.api.withoutNotifier(() => this.getLanguages())
|
|
45
123
|
.then(() => this.getCurrencies())
|
|
46
124
|
.then(() => {
|
|
47
125
|
if (this.languages.length < 2 && this.currencies.length < 2) {
|
|
@@ -61,13 +139,30 @@ const SallaLocalizationModal = class {
|
|
|
61
139
|
async close() {
|
|
62
140
|
return this.modal.close();
|
|
63
141
|
}
|
|
142
|
+
getCurrency(currencyCode) {
|
|
143
|
+
return this.currenciesList[currencyCode || this.currency] || { en: "Saudi Riyal", ar: "ريال سعودي", symbol: "ر.س" };
|
|
144
|
+
}
|
|
145
|
+
getLanguageName() {
|
|
146
|
+
return this.languageNames[this.language] || this.language || '';
|
|
147
|
+
}
|
|
148
|
+
getCurrencySymbol(currencyCode) {
|
|
149
|
+
currencyCode = currencyCode || this.currency;
|
|
150
|
+
if (currencyCode === 'SAR') {
|
|
151
|
+
return '<i class="sicon-sar"></i>';
|
|
152
|
+
}
|
|
153
|
+
if (this.language === 'ar' || !this.arabicCurrencies.includes(currencyCode)) {
|
|
154
|
+
return this.getCurrency(currencyCode).symbol;
|
|
155
|
+
}
|
|
156
|
+
return currencyCode;
|
|
157
|
+
}
|
|
158
|
+
getCurrencyName(currencyCode) {
|
|
159
|
+
return this.language === 'ar' ? this.getCurrency(currencyCode).ar : this.getCurrency(currencyCode).en;
|
|
160
|
+
}
|
|
64
161
|
async getLanguages() {
|
|
65
|
-
this.
|
|
66
|
-
return this.languages.length > 1 ? null : await salla.config.languages().then(data => this.languages = data);
|
|
162
|
+
return this.languages.length > 1 ? null : await Salla.config.languages().then(data => this.languages = data);
|
|
67
163
|
}
|
|
68
164
|
async getCurrencies() {
|
|
69
|
-
this.
|
|
70
|
-
return this.currencies.length > 1 ? null : await salla.config.currencies().then(data => this.currencies = Object.values(data || {}));
|
|
165
|
+
return this.currencies.length > 1 ? null : await Salla.config.currencies().then(data => this.currencies = Object.values(data || {}));
|
|
71
166
|
}
|
|
72
167
|
onChangeCurrency(event) {
|
|
73
168
|
this.currency = event.target.value;
|
|
@@ -83,50 +178,56 @@ const SallaLocalizationModal = class {
|
|
|
83
178
|
this.btn.load()
|
|
84
179
|
.then(() => {
|
|
85
180
|
if (!this.currency) {
|
|
86
|
-
|
|
181
|
+
Salla.log('There is no currency!');
|
|
87
182
|
return;
|
|
88
183
|
}
|
|
89
|
-
if (this.currency ===
|
|
184
|
+
if (this.currency === Salla.config.get('user.currency_code', 'SAR')) {
|
|
90
185
|
return;
|
|
91
186
|
}
|
|
92
187
|
url = window.location.href;
|
|
93
|
-
return
|
|
188
|
+
return Salla.currency.api.change(this.currency);
|
|
94
189
|
})
|
|
95
190
|
.then(() => {
|
|
96
|
-
if (this.language !==
|
|
97
|
-
url =
|
|
191
|
+
if (this.language !== Salla.config.get('user.language_code', 'ar')) {
|
|
192
|
+
url = Salla.helpers.addParamToUrl('lang', this.language);
|
|
98
193
|
}
|
|
99
194
|
})
|
|
100
195
|
.then(() => {
|
|
101
|
-
|
|
102
|
-
|
|
196
|
+
Salla.cookie.set('s-lang', this.language);
|
|
197
|
+
Salla.cookie.set('s-curr', this.currency);
|
|
103
198
|
})
|
|
104
199
|
.then(() => this.btn.stop())
|
|
105
200
|
.then(() => this.close())
|
|
106
201
|
.then(() => {
|
|
107
202
|
if (url) {
|
|
108
|
-
window.location.href = url.replace(`/${
|
|
203
|
+
window.location.href = url.replace(`/${Salla.config.get('user.language_code')}/`, `/${this.language}/`);
|
|
109
204
|
}
|
|
110
205
|
});
|
|
111
206
|
}
|
|
112
207
|
render() {
|
|
113
|
-
return
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
208
|
+
return [
|
|
209
|
+
this.showTrigger
|
|
210
|
+
? index.h("button", { type: "button", onClick: () => this.open(), class: "s-localization-modal-trigger-btn" }, index.h("span", null, this.getLanguageName()), index.h("span", { class: "s-localization-modal-trigger-separator" }, "|"), " ", index.h("span", { innerHTML: this.getCurrencySymbol() }))
|
|
211
|
+
: '',
|
|
212
|
+
index.h("salla-modal", { key: 'ae9553ab14e30b7e9b6466d1e959e469e544ca5b', isLoading: true, class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, index.h("div", { key: '84bf38810a3d1c99ee084951ef596cc33a18e4f7', slot: 'loading' }, index.h("div", { key: '5e808b2a7774bc1f1e1fe25cb880c45a3b97f1aa', class: "s-localization-modal-skeleton" }, index.h("salla-skeleton", { key: 'c0000d5f4f5fb663f059822fe1a4f24a78a9dd65', width: '25%', height: '15px' }), index.h("div", { key: '45164d658a0ee5e8825422af35605bfd83e383ff', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => index.h("div", { class: "s-localization-modal-skeleton-item" }, index.h("div", { class: "s-localization-modal-skeleton-item-flex" }, index.h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), index.h("salla-skeleton", { height: '10px', width: '100px' })), index.h("salla-skeleton", { height: '15px', width: '20px' })))), index.h("salla-skeleton", { key: '1e63980f25677892f731e6ad30eda08b8a3852e0', width: '25%', height: '15px' }), index.h("div", { key: 'b1263061b94885e99d540f90054244fb41fd0a68', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => index.h("div", { class: "s-localization-modal-skeleton-item" }, index.h("div", { class: "s-localization-modal-skeleton-item-flex" }, index.h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), index.h("salla-skeleton", { height: '10px', width: '100px' })), index.h("salla-skeleton", { height: '15px', width: '20px' })))), index.h("salla-skeleton", { key: '6dfbe5d71475640cd41dfe3d01e9277f2b2b80c5', height: '40px', width: '100%' }))), !!this.hasError ?
|
|
213
|
+
index.h("salla-placeholder", { alignment: "center" }, index.h("span", { slot: "description" }, this.errorMessage)) :
|
|
214
|
+
index.h("div", { class: "s-localization-modal-inner" }, this.languages.length > 1 ?
|
|
215
|
+
index.h("div", { class: "s-localization-modal-section" }, index.h("label", { class: "s-localization-modal-title" }, Salla.lang.get('common.titles.language')), index.h("div", { class: "s-localization-modal-section-inner" }, this.languages.length < 6 ?
|
|
216
|
+
this.languages.map(lang => index.h("div", { class: "s-localization-modal-item" }, index.h("input", { class: "s-localization-modal-input", type: "radio", checked: this.language == lang.iso_code, onChange: () => this.language = lang.iso_code, name: "language", id: 'lang-' + lang.code.toLowerCase(), value: lang.code }), index.h("div", { class: "s-localization-modal-label-slot", id: "language-slot", innerHTML: this.languageSlot
|
|
217
|
+
.replace(/\{name\}/g, lang.name)
|
|
218
|
+
.replace(/\{code\}/g, lang.code)
|
|
219
|
+
.replace(/\{country_code\}/g, lang.country_code) }))) :
|
|
220
|
+
index.h("select", { class: "s-localization-modal-select", name: "language", onChange: e => this.onChangeLanguage(e) }, this.languages.map(lang => index.h("option", { value: lang.code, selected: this.language == lang.code }, lang.name)))))
|
|
221
|
+
: '', this.currencies.length > 1 ?
|
|
222
|
+
index.h("div", { class: "s-localization-modal-section" }, index.h("label", { class: "s-localization-modal-title" }, Salla.lang.get('common.titles.currency')), index.h("div", { class: "s-localization-modal-section-inner" }, this.currencies.length < 6 ?
|
|
223
|
+
this.currencies.map(currency => index.h("div", { class: "s-localization-modal-item" }, index.h("input", { class: "s-localization-modal-input", type: "radio", name: "currency", checked: this.currency == currency.code, onChange: () => this.currency = currency.code, id: 'currency-' + currency.code, value: currency.code }), index.h("div", { class: "s-localization-modal-label-slot", id: "currency-slot", innerHTML: this.currencySlot
|
|
224
|
+
.replace(/\{name\}/g, this.getCurrencyName(currency.code))
|
|
225
|
+
.replace(/\{code\}/g, currency.code)
|
|
226
|
+
.replace(/\{symbol\}/g, this.getCurrencySymbol(currency.code))
|
|
227
|
+
.replace(/\{country_code\}/g, currency.country_code) }))) :
|
|
228
|
+
index.h("select", { class: "s-localization-modal-select", name: "currency", onChange: e => this.onChangeCurrency(e) }, this.currencies.map(currency => index.h("option", { value: currency.code, selected: this.currency == currency.code }, currency.name)))))
|
|
229
|
+
: '', index.h("salla-button", { width: "wide", ref: btn => this.btn = btn, onClick: () => this.submit() }, Salla.lang.get('common.elements.ok'))))
|
|
230
|
+
];
|
|
130
231
|
}
|
|
131
232
|
/**
|
|
132
233
|
* to reduce dom levels we will move slot data into the parent dom
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-Bxxuur88.js');
|
|
7
7
|
|
|
8
8
|
const sallaLoginModalCss = "iframe{-moz-transition:height 0.3s;-ms-transition:height 0.3s;-o-transition:height 0.3s;-webkit-transition:height 0.3s;transition:height 0.3s;width:100%}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-Bxxuur88.js');
|
|
7
7
|
var cancel = require('./cancel-De6vslRA.js');
|
|
8
8
|
|
|
9
9
|
const sallaMaintenanceAlertCss = ".s-maintenance-alert-wrapper{display:flex;min-height:40px;width:100%;flex-direction:row;align-items:center;justify-content:center;--tw-bg-opacity:1;background-color:rgba(26, 38, 61, var(--tw-bg-opacity));padding:0.25rem 0.5rem;--tw-text-opacity:1;color:rgba(255, 255, 255, var(--tw-text-opacity))}.s-maintenance-alert-wrapper a{transition:0.35s cubic-bezier(0.2, 1, 0.3, 1)}.s-maintenance-alert-wrapper *{color:inherit}@media (min-width: 640px){.s-maintenance-alert-wrapper{padding-left:2rem;padding-right:2rem}}.s-maintenance-alert-content{margin-top:1rem;margin-bottom:1rem;display:flex;width:100%;align-items:center;justify-content:space-between}@media (min-width: 640px){.s-maintenance-alert-content{padding-left:2rem;padding-right:2rem}}.s-maintenance-alert-container{display:flex;align-items:center}.s-maintenance-alert-icon{margin-right:1.25rem;display:none}@media (min-width: 640px){.s-maintenance-alert-icon{display:block}}.s-maintenance-alert-text h2{margin-bottom:0.5rem;font-size:0.875rem;font-weight:700;line-height:1.4}@media (min-width: 640px){.s-maintenance-alert-text h2{font-size:1.5rem;line-height:2rem}}.s-maintenance-alert-text p{margin:0px;text-align:right;font-size:10px;line-height:1.2}@media (min-width: 640px){.s-maintenance-alert-text p{text-align:center;font-size:0.75rem;line-height:1}}.s-maintenance-alert-btn{position:relative;margin-left:4px;margin-right:4px;display:inline-block;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;border-radius:0.125rem;border-width:1px;--tw-border-opacity:1;border-color:rgba(93, 213, 196, var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(93, 213, 196, var(--tw-bg-opacity));padding:0.5rem;text-align:center;vertical-align:middle;font-size:0.875rem;font-weight:400;line-height:1.4;--tw-text-opacity:1;color:rgba(255, 255, 255, var(--tw-text-opacity))}.s-maintenance-alert-btn:hover{--tw-bg-opacity:1;background-color:rgba(53, 203, 181, var(--tw-bg-opacity))}.s-maintenance-alert-btn *{pointer-events:none}[dir=rtl] .s-maintenance-alert-btn{margin-left:1.25rem;margin-right:0}@media (min-width: 640px){.s-maintenance-alert-btn{padding:0.5rem 1rem}}";
|
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-Bxxuur88.js');
|
|
7
7
|
|
|
8
8
|
const sallaMultipleBundleProductCartCss = "";
|
|
9
9
|
|
|
10
10
|
const SallaMultipleBundleProductCart = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
|
+
/** The list of sections belonging to a bundle product. */
|
|
13
14
|
this.sections = [];
|
|
14
15
|
this.itemNumber = '';
|
|
15
16
|
}
|
|
@@ -35,7 +36,7 @@ const SallaMultipleBundleProductCart = class {
|
|
|
35
36
|
return (index.h("div", { slot: "html", class: "s-multiple-bundle-product-cart-header-wrapper" }, index.h("div", { class: `s-multiple-bundle-product-cart-header ${hasOptions ? '' : 's-multiple-bundle-product-cart-header-no-options'}` }, index.h("div", { class: "s-multiple-bundle-product-cart-header-content" }, index.h("a", { href: product?.url, class: "s-multiple-bundle-product-cart-header-image-wrapper" }, index.h("img", { src: product?.image?.url, alt: product?.image?.alt || product?.name, class: "s-multiple-bundle-product-cart-header-image" })), index.h("div", { class: "s-multiple-bundle-product-cart-header-content-details" }, index.h("h2", { class: "s-multiple-bundle-product-cart-header-content-details-title" }, index.h("a", { href: product?.url, class: "s-multiple-bundle-product-cart-header-content-details-title-link" }, product?.name)), index.h("div", { class: "s-multiple-bundle-product-cart-header-content-details-price" }, index.h("span", { class: "s-multiple-bundle-product-cart-header-content-details-price-regular" }, index.h("span", { innerHTML: product?.price ? salla.money(product?.price) : '' })), product?.sale_price > 0 && (index.h("span", { class: "s-multiple-bundle-product-cart-header-content-details-price-sale" }, index.h("span", { innerHTML: salla.money(product?.sale_price) })))), product?.quantity_in_group > 0 && product?.quantity !== 0 && (index.h("p", { class: "s-multiple-bundle-product-cart-header-content-details-quantity" }, index.h("span", null, salla.lang.get('pages.products.number_of_pieces')), index.h("span", null, product?.quantity_in_group))))), !hasOptions && (index.h("div", { class: "s-multiple-bundle-product-cart-header-remove-button" }, this.renderRemoveButton(sectionId, product, false))))));
|
|
36
37
|
}
|
|
37
38
|
render() {
|
|
38
|
-
return (index.h(index.Host, { key: '
|
|
39
|
+
return (index.h(index.Host, { key: '92c0fba176ee0d769f866a0ed50a1b27d43e9717', class: "s-multiple-bundle-product-wrapper" }, index.h("div", { key: '3184473ec9399f29fa225287d6adeea109b097ec', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, sectionIndex) => {
|
|
39
40
|
return section.products.map(product => {
|
|
40
41
|
const bundleContext = {
|
|
41
42
|
sectionId: section.id,
|
|
@@ -55,6 +56,7 @@ const sallaMultipleBundleProductDetailsCss = "";
|
|
|
55
56
|
const SallaMultipleBundleProductDetails = class {
|
|
56
57
|
constructor(hostRef) {
|
|
57
58
|
index.registerInstance(this, hostRef);
|
|
59
|
+
/** The list of sections belonging to a bundle product. */
|
|
58
60
|
this.sections = [];
|
|
59
61
|
// store selected product IDs per section (can be string or number)
|
|
60
62
|
this.selectedProducts = {};
|
|
@@ -207,10 +209,10 @@ const SallaMultipleBundleProductDetails = class {
|
|
|
207
209
|
}
|
|
208
210
|
}
|
|
209
211
|
render() {
|
|
210
|
-
return (index.h(index.Host, { key: '
|
|
212
|
+
return (index.h(index.Host, { key: '9d632fa75f2dd987a03a8d8c417e520503b4b71d', class: "s-multiple-bundle-product-wrapper" }, index.h("div", { key: '05517aff0eae9141a8f1f7fa0d72044fbbd46af9', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, index$1) => {
|
|
211
213
|
const selectedCount = this.selectedProducts[section.id]?.size || 0;
|
|
212
214
|
return (index.h("salla-accordion", { key: section.id, collapsed: index$1 === 0 ? false : true }, index.h("salla-accordion-head", null, this.renderAccordionHeader(section, selectedCount)), index.h("salla-accordion-body", null, index.h("salla-multiple-bundle-product-slider", { section: section, sectionIndex: index$1, selectedProducts: this.selectedProducts, onProductSelected: this.handleBundleSliderProductSelected, onProductOptionsSelected: this.handleBundleSliderProductOptionsSelected }))));
|
|
213
|
-
})), index.h("salla-multiple-bundle-product-options-modal", { key: '
|
|
215
|
+
})), index.h("salla-multiple-bundle-product-options-modal", { key: 'ac01f882d3e8268b41032857816ba9481918f484' })));
|
|
214
216
|
}
|
|
215
217
|
get host() { return index.getElement(this); }
|
|
216
218
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-Bxxuur88.js');
|
|
7
7
|
var keyboard_arrow_right = require('./keyboard_arrow_right-BayM_Il2.js');
|
|
8
8
|
|
|
9
9
|
const sallaMultipleBundleProductOptionsModalCss = ":host{display:block}";
|
|
@@ -41,6 +41,7 @@ const SallaMultipleBundleProductOptionsModal = class {
|
|
|
41
41
|
this.validationErrors = [];
|
|
42
42
|
this.hasUnsavedChanges = false;
|
|
43
43
|
}
|
|
44
|
+
/** Opens the modal manually. */
|
|
44
45
|
async open() {
|
|
45
46
|
if (!this.modal) {
|
|
46
47
|
requestAnimationFrame(() => this.open());
|
|
@@ -65,11 +66,13 @@ const SallaMultipleBundleProductOptionsModal = class {
|
|
|
65
66
|
this.isLoading = false;
|
|
66
67
|
}, 300);
|
|
67
68
|
}
|
|
69
|
+
/** Closes the modal manually. */
|
|
68
70
|
async close() {
|
|
69
71
|
if (this.modal) {
|
|
70
72
|
this.modal.close();
|
|
71
73
|
}
|
|
72
74
|
}
|
|
75
|
+
/** Refreshes the internal options tracking state manually. */
|
|
73
76
|
async refreshOptionsState() {
|
|
74
77
|
// Force re-render by updating the component state
|
|
75
78
|
this.selectedOptions = { ...this.selectedOptions };
|
|
@@ -464,7 +467,7 @@ const SallaMultipleBundleProductOptionsModal = class {
|
|
|
464
467
|
const cacheKey = this.generateCacheKey(this.sectionId, this.productIndex, productId);
|
|
465
468
|
const resetToken = this.optionsResetTokens[cacheKey] || 0;
|
|
466
469
|
const isDisabled = this.isLoading || optionsWithSelectedState.some(opt => opt.details.some(d => d.is_selected && d.is_out === true));
|
|
467
|
-
return (index.h(index.Host, { key: '
|
|
470
|
+
return (index.h(index.Host, { key: '357005ce9302183eeeec3238ebde74b99c5f7d88' }, index.h("salla-modal", { key: '95e4f37061229e8359a269b031942d507a43ea25', isLoading: this.isLoading, ref: el => (this.modal = el), width: "md", centered: false, id: `s-multiple-bundle-product-options-modal-options-${productId}`, class: "s-multiple-bundle-product-options-modal-wrapper" }, index.h("div", { key: 'b1525824f938c5af85a9ca043d2acf86e8773e6a', slot: "loading" }, index.h("salla-skeleton", { key: '7e71698646e7ec119afbed2fca9dab79c4fe2991', height: "100%", width: "100%" })), this.product?.images && this.product?.images.length > 0 && (index.h("salla-slider", { key: 'cd9042d00b0a237afd8dfe7ad4ed7032e298eb39', id: `details-slider-${this.product?.id}`, type: "thumbs", loop: false, "auto-height": true, "listen-to-thumbnails-option": true, showThumbsControls: false, controlsOuter: false, showControls: false, class: "s-multiple-bundle-product-options-modal-slider", verticalThumbs: true, thumbsConfig: {
|
|
468
471
|
centeredSlides: true,
|
|
469
472
|
centeredSlidesBounds: true,
|
|
470
473
|
slidesPerView: Math.min(5, Math.max(1, this.product?.images.length)),
|
|
@@ -472,13 +475,13 @@ const SallaMultipleBundleProductOptionsModal = class {
|
|
|
472
475
|
watchSlidesProgress: true,
|
|
473
476
|
direction: 'vertical',
|
|
474
477
|
spaceBetween: 10,
|
|
475
|
-
} }, index.h("div", { key: '
|
|
478
|
+
} }, index.h("div", { key: '81773392ee6167f0daf780637e15bef9b7b2f2c7', slot: "items" }, this.product?.images &&
|
|
476
479
|
this.product?.images.map((image, index$1) => (index.h("div", { key: index$1, class: "swiper-slide" }, index.h("img", { src: image.url, alt: image.alt || `${this.product?.name} - Image ${index$1 + 1}`, loading: "lazy", onError: e => {
|
|
477
480
|
e.target.style.display = 'none';
|
|
478
|
-
} }))))), this.product?.images && this.product?.images.length > 1 && (index.h("div", { key: '
|
|
481
|
+
} }))))), this.product?.images && this.product?.images.length > 1 && (index.h("div", { key: '2942ab32e0e28e6213b2a1d177e36c84136beaef', slot: "thumbs" }, this.product?.images &&
|
|
479
482
|
this.product?.images.map((image, index$1) => (index.h("div", { key: index$1, "data-caption": `${this.product?.name} - Image ${index$1 + 1}` }, index.h("img", { src: image.url, loading: "eager", class: "s-multiple-bundle-product-options-modal-slider-thumb", title: `${this.product?.name} - ${index$1 + 1}`, alt: image.alt || `${this.product?.name} - ${index$1 + 1}`, onError: e => {
|
|
480
483
|
e.target.style.display = 'none';
|
|
481
|
-
} })))))))), index.h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), index.h("div", { key: '
|
|
484
|
+
} })))))))), index.h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), index.h("div", { key: 'e3658d39d7462e1ba8c2099625d9a659541f6b2a', slot: "footer" }, index.h("div", { key: '8e03e9230c55b9ac6143e37629946e66daf47835', class: "s-multiple-bundle-product-options-modal-footer" }, index.h("salla-button", { key: 'feca5790f828f7b29de3cba4e3a54d772a7a94c5', onClick: e => this.onSave(e), loading: this.isLoading, disabled: isDisabled }, this.isLoading
|
|
482
485
|
? salla.lang.get('common.elements.saving')
|
|
483
486
|
: salla.lang.get('common.elements.save')))))));
|
|
484
487
|
}
|
|
@@ -496,6 +499,7 @@ const SallaMultipleBundleProductSlider = class {
|
|
|
496
499
|
index.registerInstance(this, hostRef);
|
|
497
500
|
this.productSelected = index.createEvent(this, "productSelected");
|
|
498
501
|
this.productOptionsSelected = index.createEvent(this, "productOptionsSelected");
|
|
502
|
+
/** A dictionary tracking which product IDs are currently selected per section. */
|
|
499
503
|
this.selectedProducts = {};
|
|
500
504
|
this.savedOptionsByInstance = {};
|
|
501
505
|
this.handleProductClick = (product, productIndex) => {
|
|
@@ -576,7 +580,7 @@ const SallaMultipleBundleProductSlider = class {
|
|
|
576
580
|
return `bundle[${sectionId}][${productIndex}][id]`;
|
|
577
581
|
}
|
|
578
582
|
render() {
|
|
579
|
-
return (index.h(index.Host, { key: '
|
|
583
|
+
return (index.h(index.Host, { key: '336a3bcf504a178ee207b40b3b7fac5d26e00f91' }, index.h("salla-slider", { key: '004d1c3f644bfd015efe2ffc21a78e912c5d0647', type: "carousel", controlsOuter: false, showControls: false, id: `accordion-multiple-bundle-product-${this.section.id}`, pagination: true, class: "s-multiple-bundle-product-wrapper-slider", sliderConfig: { spaceBetween: 0 } }, index.h("div", { key: 'fda4544764b9bf2eb95d408179c1abc252f50243', slot: "items" }, this?.section?.products?.map((product, productIndex) => {
|
|
580
584
|
const isChecked = this.selectedProducts[this.section.id]?.has(product.id) || false;
|
|
581
585
|
const hasSavedOptions = this.savedOptionsByInstance[this.getProductInstanceKey(this.section.id, productIndex)];
|
|
582
586
|
const optionsButtonLabel = hasSavedOptions
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-Bxxuur88.js');
|
|
7
7
|
|
|
8
8
|
const sallaMultipleBundleProductCss = ":host{display:block}";
|
|
9
9
|
|
|
@@ -58,7 +58,7 @@ const SallaMultipleBundleProduct = class {
|
|
|
58
58
|
this.parseProducts(this.bundleSections);
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
|
-
return (index.h(index.Host, { key: '
|
|
61
|
+
return (index.h(index.Host, { key: '2a4510d1ccd3dc840d25a288cb0788a7dd23672c', class: "s-multiple-bundle-product-wrapper" }, this.isCartPage() ? this.renderCartPage() : this.renderDetailsPage()));
|
|
62
62
|
}
|
|
63
63
|
static get watchers() { return {
|
|
64
64
|
"bundleSections": ["parseProducts"]
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-Bxxuur88.js');
|
|
7
7
|
var specialDiscount = require('./special-discount-DC2oXurL.js');
|
|
8
8
|
|
|
9
9
|
var Tag = `<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-Bxxuur88.js');
|
|
7
7
|
|
|
8
8
|
const sallaOrderDetailsCss = "";
|
|
9
9
|
|
|
@@ -39,7 +39,7 @@ const SallaOrderDetails = class {
|
|
|
39
39
|
];
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return index.h(index.Host, { key: '
|
|
42
|
+
return index.h(index.Host, { key: 'a32d03172c884c8431e592b35b3f6560e3055555', class: "s-order-details-wrapper" }, this.renderOrderDetailsContent());
|
|
43
43
|
}
|
|
44
44
|
static get watchers() { return {
|
|
45
45
|
"orderDetails": ["parseOrderDetailsData"]
|