@salla.sa/twilight-components 2.14.374 → 2.14.376
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-DeuvVE5J.js → filepond-Dd3I4rgw.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-Dxa8I3SY.js → filepond-plugin-file-poster-5djSowYt.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-W2mdgWG2.js → filepond-plugin-file-validate-size-Cu2EHcXR.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-CnyOIQz9.js → filepond-plugin-file-validate-type-DcLyIuh_.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-CCb7ekNo.js → filepond-plugin-image-edit-Dqqtvcxc.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-COejHavo.js → filepond-plugin-image-exif-orientation-C3GbyQ0e.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-BO9TNEub.js → filepond-plugin-image-preview-DvR00gFp.js} +1 -1
- package/dist/cjs/{index-CWDMaA5x.js → index-D3izAH5D.js} +2 -2
- package/dist/cjs/{index-CpUSS5zv.js → index-DyIre-QC.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/salla-accordion-body_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_4.cjs.entry.js +1 -1
- package/dist/cjs/salla-advertisement.cjs.entry.js +2 -2
- package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- 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 +1 -1
- 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 +1 -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 +35 -10
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- 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 +6 -2
- 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 +1 -1
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -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 +1 -1
- 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 +1 -1
- package/dist/cjs/{vanilla-picker-D2Lx83x-.js → vanilla-picker-RmaN5uNR.js} +1 -1
- package/dist/collection/components/salla-advertisement/salla-advertisement.js +1 -1
- package/dist/collection/components/salla-gifting/salla-gifting.js +34 -9
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +5 -1
- package/dist/components/index.js +2 -2
- package/dist/components/salla-advertisement.js +1 -1
- package/dist/components/salla-gifting.js +34 -9
- package/dist/components/salla-localization-modal.js +5 -1
- package/dist/esm/{filepond-TuPJAejT.js → filepond-DR04w4Gj.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-cCpQ5Yn9.js → filepond-plugin-file-poster-B2IuQmji.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-rJLWDXdJ.js → filepond-plugin-file-validate-size-AvcAnLs8.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-KBmivBiQ.js → filepond-plugin-file-validate-type-Dw8J2cdC.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-CZ1DRDD_.js → filepond-plugin-image-edit-r16XZ3To.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-B-eqhWXq.js → filepond-plugin-image-exif-orientation-Bf0AAHG5.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-BdtUA8MJ.js → filepond-plugin-image-preview-r-_bB1wt.js} +1 -1
- package/dist/esm/{index-CS4mgWBr.js → index-DCcWXApI.js} +1 -1
- package/dist/esm/{index-CrfyjHDc.js → index-tPV-H3dI.js} +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/salla-accordion-body_3.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_4.entry.js +1 -1
- package/dist/esm/salla-advertisement.entry.js +2 -2
- package/dist/esm/salla-alert_2.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- 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 +1 -1
- 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 +1 -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 +35 -10
- package/dist/esm/salla-hook.entry.js +1 -1
- 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 +6 -2
- 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 +1 -1
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/esm/salla-scopes.entry.js +1 -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 +1 -1
- 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 +2 -2
- package/dist/esm/{vanilla-picker-s0vHL0vA.js → vanilla-picker-r-Gkwefa.js} +1 -1
- package/dist/twilight/{p-0218b0ff.entry.js → p-0579e2e1.entry.js} +1 -1
- package/dist/twilight/{p-156057d6.entry.js → p-0769d555.entry.js} +1 -1
- package/dist/twilight/{p-e0d4ac10.entry.js → p-0f29b15e.entry.js} +1 -1
- package/dist/twilight/{p-0db8b7cc.entry.js → p-12aedefe.entry.js} +1 -1
- package/dist/twilight/{p-8ecaa871.entry.js → p-15492069.entry.js} +1 -1
- package/dist/twilight/{p-91973470.entry.js → p-203f7b3e.entry.js} +1 -1
- package/dist/twilight/{p-1318538a.entry.js → p-27daf422.entry.js} +1 -1
- package/dist/twilight/{p-15d51226.entry.js → p-2be9a0eb.entry.js} +1 -1
- package/dist/twilight/{p-1355d443.entry.js → p-3253720a.entry.js} +1 -1
- package/dist/twilight/{p-067b7ce5.entry.js → p-3302cd20.entry.js} +1 -1
- package/dist/twilight/{p-ae9c2af6.entry.js → p-36b5c441.entry.js} +1 -1
- package/dist/twilight/{p-130b9fde.entry.js → p-36f1db49.entry.js} +1 -1
- package/dist/twilight/{p-25065293.entry.js → p-3714d18d.entry.js} +1 -1
- package/dist/twilight/{p-a5b3b992.entry.js → p-37f63c73.entry.js} +1 -1
- package/dist/twilight/p-3916a321.entry.js +4 -0
- package/dist/twilight/{p-2030e9b3.entry.js → p-3ccb51d4.entry.js} +1 -1
- package/dist/twilight/{p-fda58052.entry.js → p-3d5b254f.entry.js} +1 -1
- package/dist/twilight/{p-e9bb3469.entry.js → p-448c10ba.entry.js} +1 -1
- package/dist/twilight/{p-843df720.entry.js → p-470418bf.entry.js} +1 -1
- package/dist/twilight/{p-8df33bfb.entry.js → p-4c8241d3.entry.js} +1 -1
- package/dist/twilight/{p-e74049ca.entry.js → p-4ee14ebc.entry.js} +1 -1
- package/dist/twilight/{p-37899dd0.entry.js → p-4fc3ca9d.entry.js} +1 -1
- package/dist/twilight/p-50472812.entry.js +4 -0
- package/dist/twilight/{p-96216e77.entry.js → p-511056d9.entry.js} +1 -1
- package/dist/twilight/{p-8fdfda0b.entry.js → p-52c45fad.entry.js} +1 -1
- package/dist/twilight/{p-f7b7b382.entry.js → p-533fa9c6.entry.js} +1 -1
- package/dist/twilight/{p-2b964947.entry.js → p-54455d78.entry.js} +1 -1
- package/dist/twilight/{p-1c8cb0ef.entry.js → p-5472995e.entry.js} +1 -1
- package/dist/twilight/{p-94648166.entry.js → p-569595a3.entry.js} +1 -1
- package/dist/twilight/{p-eca4d49b.entry.js → p-5a18cf72.entry.js} +1 -1
- package/dist/twilight/{p-5385af9c.entry.js → p-5e5e095f.entry.js} +1 -1
- package/dist/twilight/{p-179298ec.entry.js → p-6105ab3d.entry.js} +1 -1
- package/dist/twilight/{p-fc4c3626.entry.js → p-61e496a2.entry.js} +1 -1
- package/dist/twilight/{p-ca5cd5a1.entry.js → p-66f6c1b8.entry.js} +1 -1
- package/dist/twilight/{p-61e0d078.entry.js → p-6b104508.entry.js} +1 -1
- package/dist/twilight/{p-d0344bd5.entry.js → p-77e92155.entry.js} +1 -1
- package/dist/twilight/{p-4261c148.entry.js → p-7e8959cf.entry.js} +1 -1
- package/dist/twilight/{p-a2ef40d8.entry.js → p-80fc55b0.entry.js} +1 -1
- package/dist/twilight/{p-1f4c59ca.entry.js → p-81b354ff.entry.js} +1 -1
- package/dist/twilight/{p-42162ee9.entry.js → p-829773bc.entry.js} +1 -1
- package/dist/twilight/{p-8f3ff806.entry.js → p-830b2283.entry.js} +1 -1
- package/dist/twilight/{p-eff7ed31.entry.js → p-869a1401.entry.js} +1 -1
- package/dist/twilight/{p-6e016cdb.entry.js → p-929c7727.entry.js} +1 -1
- package/dist/twilight/{p-a57560cf.entry.js → p-937aeda4.entry.js} +1 -1
- package/dist/twilight/{p-0543e413.entry.js → p-95d2137a.entry.js} +1 -1
- package/dist/twilight/{p-ce4a4b2e.entry.js → p-9829cf1f.entry.js} +1 -1
- package/dist/twilight/{p-dd2b3955.entry.js → p-9f14e44b.entry.js} +1 -1
- package/dist/twilight/p-B0EU8pwr.js +9 -0
- package/dist/twilight/{p-DZ7QJ2Rp.js → p-B6ISKHWd.js} +1 -1
- package/dist/twilight/{p-CQwuMkiJ.js → p-BDVIVE46.js} +1 -1
- package/dist/twilight/{p-C4_y7sLz.js → p-BppJ4FQ3.js} +1 -1
- package/dist/twilight/{p-DLIn9Lr_.js → p-CUyHDQ4B.js} +1 -1
- package/dist/twilight/{p-DChNcvW3.js → p-DDEnR3gK.js} +1 -1
- package/dist/twilight/{p-3mtQhZMU.js → p-H_UM2yHj.js} +1 -1
- package/dist/twilight/{p-21b55c4b.entry.js → p-a5f7cd65.entry.js} +1 -1
- package/dist/twilight/{p-b7f25ad6.entry.js → p-ae065b2e.entry.js} +1 -1
- package/dist/twilight/{p-9b5d0797.entry.js → p-b072eac3.entry.js} +1 -1
- package/dist/twilight/{p-ea1c36dc.entry.js → p-b3201ba3.entry.js} +1 -1
- package/dist/twilight/{p-531d1d9b.entry.js → p-b325dc37.entry.js} +1 -1
- package/dist/twilight/{p-ffb8c922.entry.js → p-b722032c.entry.js} +1 -1
- package/dist/twilight/{p-9f749fc5.entry.js → p-b984cb48.entry.js} +1 -1
- package/dist/twilight/{p-9a9b1282.entry.js → p-bc7861ff.entry.js} +1 -1
- package/dist/twilight/{p-070e9633.entry.js → p-bf4b33e8.entry.js} +1 -1
- package/dist/twilight/{p-61e83060.entry.js → p-c11c511c.entry.js} +1 -1
- package/dist/twilight/{p-c6bf02e6.entry.js → p-c2d8dc32.entry.js} +1 -1
- package/dist/twilight/{p-21c806a5.entry.js → p-d3e38f65.entry.js} +1 -1
- package/dist/twilight/{p-ed3aa311.entry.js → p-d591f0ca.entry.js} +1 -1
- package/dist/twilight/{p-1e80a098.entry.js → p-d5b58a28.entry.js} +1 -1
- package/dist/twilight/{p-44477b3c.entry.js → p-d7f95270.entry.js} +1 -1
- package/dist/twilight/{p-5b964337.entry.js → p-dc76fb54.entry.js} +1 -1
- package/dist/twilight/{p-ByQ_JtEq.js → p-dpTfUdyk.js} +1 -1
- package/dist/twilight/{p-62614eb2.entry.js → p-e2a36803.entry.js} +1 -1
- package/dist/twilight/p-e36d3b80.entry.js +4 -0
- package/dist/twilight/{p-a6f4ea7e.entry.js → p-e63aa139.entry.js} +1 -1
- package/dist/twilight/{p-56ee82aa.entry.js → p-f8938945.entry.js} +1 -1
- package/dist/twilight/{p-eba03779.entry.js → p-fdadc257.entry.js} +1 -1
- package/dist/twilight/{p-CrfyjHDc.js → p-tPV-H3dI.js} +1 -1
- package/dist/twilight/{p-SOZG27Gu.js → p-u-3-Hs-0.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-gifting/intefaces.d.ts +1 -0
- package/dist/types/components/salla-gifting/salla-gifting.d.ts +1 -0
- package/package.json +5 -5
- package/dist/twilight/p-6e7f4d65.entry.js +0 -4
- package/dist/twilight/p-9ec0d0b2.entry.js +0 -4
- package/dist/twilight/p-TRZAgxSA.js +0 -9
- package/dist/twilight/p-ab755139.entry.js +0 -4
package/dist/esm/loader.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { g as globalScripts, b as bootstrapLazy } from './index-
|
|
5
|
-
export { s as setNonce } from './index-
|
|
4
|
+
import { g as globalScripts, b as bootstrapLazy } from './index-tPV-H3dI.js';
|
|
5
|
+
export { s as setNonce } from './index-tPV-H3dI.js';
|
|
6
6
|
|
|
7
7
|
const defineCustomElements = async (win, options) => {
|
|
8
8
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, c as createEvent, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, c as createEvent, a as getElement } from './index-tPV-H3dI.js';
|
|
5
5
|
import { p as plusIcon, m as minusIcon } from './minus-DfeagqF1.js';
|
|
6
6
|
import { L as Location } from './location-BO5AoBAP.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement, c as createEvent } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement, c as createEvent } from './index-tPV-H3dI.js';
|
|
5
5
|
import { A as ArrowLeftIcon, a as ArrowRightIcon } from './keyboard_arrow_right-Vqpj4CWE.js';
|
|
6
6
|
import { C as Cancel } from './cancel-BsLF_HK7.js';
|
|
7
7
|
import { C as CheckCircle2 } from './check-circle2-BV4kqbdL.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement, e as axios } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement, e as axios } from './index-tPV-H3dI.js';
|
|
5
5
|
import { P as PendingOrdersIcon } from './cart-DY4LZmNP.js';
|
|
6
6
|
import { H as Helper } from './Helper-DFMXF2_h.js';
|
|
7
7
|
import { B as BellRing } from './bell-ring-D3mWkc-3.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-tPV-H3dI.js';
|
|
5
5
|
import { a as anime } from './anime.es-CgtvEd63.js';
|
|
6
6
|
|
|
7
7
|
const sallaAdvertisementCss = ":host{display:block}";
|
|
@@ -16,7 +16,7 @@ const SallaAdvertisement = class {
|
|
|
16
16
|
salla.onReady(() => {
|
|
17
17
|
this.currentSlug = salla.config.get("page.slug");
|
|
18
18
|
});
|
|
19
|
-
this.advSlot = this.host.querySelector('[slot="adv"]')?.innerHTML || `<div class="s-advertisement-content"><
|
|
19
|
+
this.advSlot = this.host.querySelector('[slot="adv"]')?.innerHTML || `<div class="s-advertisement-content"><span class="s-advertisement-content-main">{iconElem}{urlElem}</span>{closeElem}</div>
|
|
20
20
|
`;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-tPV-H3dI.js';
|
|
5
5
|
import { P as PendingOrdersIcon } from './cart-DY4LZmNP.js';
|
|
6
6
|
import { I as ImageIcon } from './image-C-tzSDxw.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-tPV-H3dI.js';
|
|
5
5
|
|
|
6
6
|
const sallaAppInstallAlertCss = ":host{display:block}";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-tPV-H3dI.js';
|
|
5
5
|
|
|
6
6
|
const sallaAppsIconsCss = ":host{display:block}";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-tPV-H3dI.js';
|
|
5
5
|
import { A as ArrowDown } from './keyboard_arrow_down-DCZbpt2a.js';
|
|
6
6
|
import { p as plusIcon, m as minusIcon } from './minus-DfeagqF1.js';
|
|
7
7
|
import { H as Helper } from './Helper-DFMXF2_h.js';
|
|
@@ -364,7 +364,7 @@ const SallaColorPicker = class {
|
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
initColorPicker() {
|
|
367
|
-
this.pickerReady = import('./vanilla-picker-
|
|
367
|
+
this.pickerReady = import('./vanilla-picker-r-Gkwefa.js').then(function (n) { return n.v; }).then(mod => {
|
|
368
368
|
const Picker = mod.default;
|
|
369
369
|
const picker = new Picker({
|
|
370
370
|
parent: this.host,
|
|
@@ -812,13 +812,13 @@ const SallaFileUpload = class {
|
|
|
812
812
|
return;
|
|
813
813
|
try {
|
|
814
814
|
const [FilePondModule, FilePondPluginFileValidateSize, FilePondPluginImageExifOrientation, FilePondPluginImagePreview, FilePondPluginImageEdit, FilePondPluginFileValidateType, FilePondPluginFilePoster] = await Promise.all([
|
|
815
|
-
import('./filepond-
|
|
816
|
-
import('./filepond-plugin-file-validate-size-
|
|
817
|
-
import('./filepond-plugin-image-exif-orientation-
|
|
818
|
-
import('./filepond-plugin-image-preview-
|
|
819
|
-
import('./filepond-plugin-image-edit-
|
|
820
|
-
import('./filepond-plugin-file-validate-type-
|
|
821
|
-
import('./filepond-plugin-file-poster-
|
|
815
|
+
import('./filepond-DR04w4Gj.js').then(function (n) { return n.f; }),
|
|
816
|
+
import('./filepond-plugin-file-validate-size-AvcAnLs8.js').then(function (n) { return n.f; }),
|
|
817
|
+
import('./filepond-plugin-image-exif-orientation-Bf0AAHG5.js').then(function (n) { return n.f; }),
|
|
818
|
+
import('./filepond-plugin-image-preview-r-_bB1wt.js').then(function (n) { return n.f; }),
|
|
819
|
+
import('./filepond-plugin-image-edit-r16XZ3To.js').then(function (n) { return n.f; }),
|
|
820
|
+
import('./filepond-plugin-file-validate-type-Dw8J2cdC.js').then(function (n) { return n.f; }),
|
|
821
|
+
import('./filepond-plugin-file-poster-B2IuQmji.js').then(function (n) { return n.f; })
|
|
822
822
|
]);
|
|
823
823
|
this.FilePond = FilePondModule;
|
|
824
824
|
// Register plugins
|
|
@@ -1413,7 +1413,7 @@ const SallaTelInput = class {
|
|
|
1413
1413
|
if (this.TelInput)
|
|
1414
1414
|
return;
|
|
1415
1415
|
try {
|
|
1416
|
-
const telInputModule = await import('./index-
|
|
1416
|
+
const telInputModule = await import('./index-DCcWXApI.js').then(function (n) { return n.i; });
|
|
1417
1417
|
this.TelInput = telInputModule.default;
|
|
1418
1418
|
}
|
|
1419
1419
|
catch (error) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-tPV-H3dI.js';
|
|
5
5
|
import { S as Search } from './search-BscTeWDc.js';
|
|
6
6
|
import { L as Location } from './location-BO5AoBAP.js';
|
|
7
7
|
import { a as ArrowRightIcon, A as ArrowLeftIcon } from './keyboard_arrow_right-Vqpj4CWE.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-tPV-H3dI.js';
|
|
5
5
|
import { S as SpecialDiscountIcon } from './special-discount-Ctkfc4K-.js';
|
|
6
6
|
import { l as loyaltyProgramIcon } from './gift-BChI23pG.js';
|
|
7
7
|
import { A as ArrowDown } from './keyboard_arrow_down-DCZbpt2a.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement, f as require_root, i as requireIsObject, j as requireIsSymbol, d as getDefaultExportFromCjs } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement, f as require_root, i as requireIsObject, j as requireIsSymbol, d as getDefaultExportFromCjs } from './index-tPV-H3dI.js';
|
|
5
5
|
import { i as iconCheck } from './check-BsXh13x8.js';
|
|
6
6
|
import { a as anime } from './anime.es-CgtvEd63.js';
|
|
7
7
|
import { H as Helper } from './Helper-DFMXF2_h.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-tPV-H3dI.js';
|
|
5
5
|
import { W as WhatsappIcon } from './whatsapp2-CgR-T_ZS.js';
|
|
6
6
|
import { M as MailIcon } from './mail-DmgxDvXL.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-tPV-H3dI.js';
|
|
5
5
|
|
|
6
6
|
const sallaCookiesBarCss = ":host{display:block;overflow:visible}.s-cookies-bar{box-shadow:0 0 20px 4px rgba(0, 0, 0, 0.15)}";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-tPV-H3dI.js';
|
|
5
5
|
import { S as Star } from './star2-D4oPi1Ov.js';
|
|
6
6
|
|
|
7
7
|
const sallaCountDownCss = "";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h } from './index-tPV-H3dI.js';
|
|
5
5
|
import { C as CameraIcon } from './camera-C6jIkM-X.js';
|
|
6
6
|
import { F as FormFieldTypes } from './interfaces-OF8QcbMM.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-tPV-H3dI.js';
|
|
5
5
|
import { H as Helper } from './Helper-DFMXF2_h.js';
|
|
6
6
|
import { F as FilterOptionTypes } from './interfaces-DL4h2bc3.js';
|
|
7
7
|
import './anime.es-CgtvEd63.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-tPV-H3dI.js';
|
|
5
5
|
import { F as FilterOptionTypes } from './interfaces-DL4h2bc3.js';
|
|
6
6
|
import { H as Helper } from './Helper-DFMXF2_h.js';
|
|
7
7
|
import './anime.es-CgtvEd63.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h } from './index-
|
|
4
|
+
import { r as registerInstance, h } from './index-tPV-H3dI.js';
|
|
5
5
|
import { a as anime } from './anime.es-CgtvEd63.js';
|
|
6
6
|
import { a as arrowLeft } from './arrow-left-BedNk7k1.js';
|
|
7
7
|
import { C as Cancel } from './cancel-BsLF_HK7.js';
|
|
@@ -51,6 +51,7 @@ const SallaGifting = class {
|
|
|
51
51
|
this.selectedText = undefined;
|
|
52
52
|
this.hasError = false;
|
|
53
53
|
this.timeZone = null;
|
|
54
|
+
this.receiverCountryCode = salla.config.get('store.scope.countries')?.[0] || salla.config.get('store.store_country') || 'SA';
|
|
54
55
|
this.hostId = `salla-gifting-${Math.random().toString(36).slice(2, 10)}`;
|
|
55
56
|
/**
|
|
56
57
|
* The form selector to be used to get the form data
|
|
@@ -302,18 +303,28 @@ const SallaGifting = class {
|
|
|
302
303
|
this.selectedText = event.target.value;
|
|
303
304
|
this.customTextArea.classList.remove('s-form-has-error');
|
|
304
305
|
}
|
|
306
|
+
clearError(key) {
|
|
307
|
+
if (this.errors?.[key]) {
|
|
308
|
+
const { [key]: _, ...rest } = this.errors;
|
|
309
|
+
this.errors = rest;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
305
312
|
handleSenderName(event) {
|
|
306
313
|
this.senderName = event.target.value;
|
|
314
|
+
this.clearError('sender_name');
|
|
307
315
|
}
|
|
308
316
|
handleReceiverName(event) {
|
|
309
317
|
this.receiverName = event.target.value;
|
|
318
|
+
this.clearError('receiver.name');
|
|
310
319
|
}
|
|
311
320
|
handleReceiverCity(event) {
|
|
312
321
|
this.receiverCity = event.target.value;
|
|
322
|
+
this.clearError('receiver.city_id');
|
|
313
323
|
}
|
|
314
324
|
async handleCountryChange(event) {
|
|
315
325
|
const countryId = event.target.value;
|
|
316
326
|
this.selectedCountryId = countryId;
|
|
327
|
+
this.clearError('receiver.country');
|
|
317
328
|
// Find the selected country and store its country_code
|
|
318
329
|
const selectedCountry = this.gift?.countries?.find(country => country.id == countryId);
|
|
319
330
|
this.selectedCountryCode = selectedCountry?.country_code;
|
|
@@ -358,6 +369,7 @@ const SallaGifting = class {
|
|
|
358
369
|
let phone = event.detail;
|
|
359
370
|
this.receiverMobile = phone.number;
|
|
360
371
|
this.receiverCountryCode = phone.country_code;
|
|
372
|
+
this.clearError('receiver.mobile');
|
|
361
373
|
}
|
|
362
374
|
handleDateTimePicker(event) {
|
|
363
375
|
this.deliveryDate = event.detail;
|
|
@@ -384,12 +396,24 @@ const SallaGifting = class {
|
|
|
384
396
|
this.calendarFormGroup.classList.add('s-form-has-error');
|
|
385
397
|
return;
|
|
386
398
|
}
|
|
387
|
-
// Validate
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
399
|
+
// Validate required fields
|
|
400
|
+
const requiredFields = [
|
|
401
|
+
{ key: 'sender_name', value: this.senderName, label: this.senderNameLabel },
|
|
402
|
+
{ key: 'receiver.name', value: this.receiverName, label: this.receiverNameFieldLabel },
|
|
403
|
+
{ key: 'receiver.mobile', value: this.receiverMobile, label: this.receiverMobileFieldLabel },
|
|
404
|
+
...(this.physicalProducts ? [
|
|
405
|
+
{ key: 'receiver.country', value: this.selectedCountryId, label: this.receiverCountryFieldLabel },
|
|
406
|
+
{ key: 'receiver.city_id', value: this.receiverCity, label: this.receiverCityFieldLabel },
|
|
407
|
+
] : []),
|
|
408
|
+
];
|
|
409
|
+
const validationErrors = {};
|
|
410
|
+
requiredFields.forEach(({ key, value, label }) => {
|
|
411
|
+
if (!value) {
|
|
412
|
+
validationErrors[key] = salla.lang.get('common.errors.field_required', { attribute: label });
|
|
391
413
|
}
|
|
392
|
-
|
|
414
|
+
});
|
|
415
|
+
if (Object.keys(validationErrors).length) {
|
|
416
|
+
this.errors = validationErrors;
|
|
393
417
|
this.setWrapperHeight(2, 150, 0);
|
|
394
418
|
return;
|
|
395
419
|
}
|
|
@@ -402,8 +426,9 @@ const SallaGifting = class {
|
|
|
402
426
|
donation_amount: donatingAmount ? donatingAmount : null,
|
|
403
427
|
receiver: {
|
|
404
428
|
name: this.receiverName,
|
|
405
|
-
|
|
429
|
+
mobile_country_code: this.receiverCountryCode,
|
|
406
430
|
mobile: this.receiverMobile,
|
|
431
|
+
...(this.physicalProducts && this.selectedCountryCode ? { country_code: this.selectedCountryCode } : {}),
|
|
407
432
|
...(this.receiverCity && this.physicalProducts ? { city_id: this.receiverCity } : {})
|
|
408
433
|
},
|
|
409
434
|
has_apple_pay: salla.helpers.hasApplePay(),
|
|
@@ -461,7 +486,7 @@ const SallaGifting = class {
|
|
|
461
486
|
}
|
|
462
487
|
render() {
|
|
463
488
|
return [
|
|
464
|
-
h("div", { key: '
|
|
489
|
+
h("div", { key: 'ba5575020df2e6e1d72eadc5c15ffa2629a7e0f0' }, h("salla-list-tile", { key: '2be6a003eb1881b35001d184fe4e7d8b3a48bcc2', class: this.generateClass() }, h("div", { key: 'c1c9762462177aac3571c72608921fb3a71e0c1e', slot: "title" }, this.vertical ? h("span", { innerHTML: GiftSharing }) : '', h("h3", { key: '6d25fe0684792b2b18c48b23c3a78fe1f428d371' }, !!this.widgetTitle ? this.widgetTitle : this.sectionTitle)), h("div", { key: '8943aeec88dd610d159b3ee09e7cf784bfb85057', slot: "subtitle" }, h("div", { key: '7e93b7590c04431344d940965f851e6c21565921' }, !!this.widgetSubtitle ? this.widgetSubtitle : this.sectionSubtitle)), h("div", { key: '0b4c0390853b20e1cc1dcd63215d639f6da28d5b', slot: "action" }, h("salla-button", { key: '8597cbcfecfe87c4057a0712e78cf5c3ccea9b89', color: "primary", fill: "outline", width: "wide", class: "s-gifting-widget-action", onClick: () => this.handleGiftButtonClick() }, h("slot", { key: '48ee9b4c7fd63ae5d49acf137fb429292ade8fd7', name: "widget-btn-content" }, h("div", { key: '05681d9d1f8f99b0c8ac722fc4c49a0b7c9dfb7d', class: "s-gifting-widget-action-content" }, h("span", { key: '4c22063c0d47096166363bbf458ec2b57615bc6c', innerHTML: GiftSharing }), " \u00A0", h("span", { key: '2688bf6e45d28f6696e8581d745626ac749b30c6' }, this.sectionBtnText)))))), h("salla-modal", { key: '338ce16bd3c615b5a97d8bf09d1bd1fa6388194e', id: this.hostId, isLoading: true, class: "s-gifting-modal", width: "sm", ref: modal => this.modal = modal }, h("div", { key: '33662376e8979c321fce3d2c01060881439bb652', slot: "loading" }, h("div", { key: 'ae3173d44990f7c2f41206f9ecd63dc1b30c2a1e', class: "s-gifting-skeleton" }, h("div", { key: 'dcab87f7a921763c0a52d122c2eb5b87aca41792', class: "s-gifting-modal-header" }, h("salla-skeleton", { key: 'c41d6ced2a82554aeb7e36986111832bef6f1f0f', type: 'circle', height: '5rem', width: '5rem' }), h("h2", { key: 'cbf4e6c3eccc896f4b2675f5877df055d5b884be', class: "s-gifting-modal-title" }, h("div", { key: '544134f67bdac37775af422cac9688c7975b0c4b', class: "s-gifting-modal-badge-wrapper" }, h("salla-skeleton", { key: '62d175f4b42d24ded6f87f3af700af35febe108f', height: '15px', width: '150px' })))), h("div", { key: '7dc39034234bfb0e57cbbc2c395a639cd383a77b', class: "s-gifting-skeleton-content" }, h("salla-skeleton", { key: '5d73d76103a98cd477f4604c3408b6071434c2f5', height: '10px', width: '150px' }), h("salla-skeleton", { key: '477ee6bf604e799336e7c45f119cfcdbc23cb0ed', height: '230px' }), h("salla-skeleton", { key: 'b8c51be1f614081b900465e1445d726be5bb3d48', height: '10px', width: '150px' }), h("salla-skeleton", { key: '6dae16f42decbd267fa03b7a71103a32fe30e2b1', height: '30px' }), h("salla-skeleton", { key: '1b077b2a03c438446a0a9c115e2b61377fcbd542', height: '40px' })))), h("slot", { key: 'fb0253f4ca6c6e4cafd0c8496e94d0e6da37d748', name: "header" }), !!this.hasError ?
|
|
465
490
|
h("salla-placeholder", { alignment: "center" }, h("span", { slot: "title" }, this.errorMessage || salla.lang.get('common.errors.empty_results')), h("span", { slot: "description" }, " "))
|
|
466
491
|
:
|
|
467
492
|
[
|
|
@@ -472,12 +497,12 @@ const SallaGifting = class {
|
|
|
472
497
|
: ""), h("div", { class: "anime-item" }, h("div", { class: "s-form-group s-gifting-selectText", ref: el => this.textSelect = el }, h("select", { id: "gift-text-selection", name: "gift-text-selection", class: "s-form-control s-gifting-select", onChange: e => this.toggleGiftText(e) }, h("option", { "data-id": null, selected: true }, this.selectGiftMessage), this.gift && this.gift.gift_texts ?
|
|
473
498
|
this.gift?.gift_texts.map((txt) => h("option", { "data-id": txt.id, value: txt.text, key: txt.id }, txt.text)) : '', h("option", { "data-id": "custom" }, this.giftCustomText))), h("div", { class: this.showGiftText ? "s-form-group s-gifting-textarea shown" : "s-form-group s-gifting-textarea hide", ref: (el) => this.customTextArea = el }, h("label", { htmlFor: "gift-custom-text", class: "s-form-label" }, this.giftCustomText), h("div", { class: "mt-1" }, h("textarea", { onInput: (event) => this.handleTextAreaChange(event), rows: 4, ref: (el) => this.textArea = el, name: "gift-custom-text", id: "gift-custom-text", class: "s-form-control" })))), h("div", { class: "anime-item" }, h("salla-button", { color: "primary", width: "wide", onClick: () => this.goToStep2() }, h("span", null, this.nextStep)))), h("div", { class: "s-gifting-step-two gift-step-2", ref: el => this.step2Elems = el }, h("div", { class: this.errors && this.errors['sender_name'] ? "s-form-group s-form-has-error anime-item opacity-0" : "s-form-group anime-item opacity-0" }, h("label", { htmlFor: "sender_name", class: "s-form-label" }, this.senderNameLabel), h("input", { type: "text", class: "s-form-control", name: "sender_name", id: "sender_name", value: this.senderName, onInput: (event) => this.handleSenderName(event), placeholder: "" }), this.errors && this.errors['sender_name'] ?
|
|
474
499
|
h("span", { class: "s-gifting-error" }, this.errors['sender_name']) : ''), h("div", { class: this.errors && this.errors['receiver.name'] ? "s-form-group s-form-has-error anime-item opacity-0" : "s-form-group anime-item opacity-0" }, h("label", { htmlFor: "receiver_name", class: "s-form-label" }, this.receiverNameFieldLabel), h("input", { type: "text", class: "s-form-control", name: "receiver_name", id: "receiver_name", value: "", onInput: (event) => this.handleReceiverName(event), placeholder: "" }), this.errors && this.errors['receiver.name'] ?
|
|
475
|
-
h("span", { class: "s-gifting-error" }, this.errors['receiver.name']) : ''), h("div", { class: this.errors && this.errors['receiver.mobile'] ? "s-form-group s-form-has-error anime-item opacity-0" : "s-form-group anime-item opacity-0" }, h("label", { class: "s-form-label" }, this.receiverMobileFieldLabel), h("salla-tel-input", { class: "s-gifting-tel-input", phone: this.receiverMobile, countryCode: this.
|
|
500
|
+
h("span", { class: "s-gifting-error" }, this.errors['receiver.name']) : ''), h("div", { class: this.errors && this.errors['receiver.mobile'] ? "s-form-group s-form-has-error anime-item opacity-0" : "s-form-group anime-item opacity-0" }, h("label", { class: "s-form-label" }, this.receiverMobileFieldLabel), h("salla-tel-input", { class: "s-gifting-tel-input", phone: this.receiverMobile, countryCode: this.receiverCountryCode, onPhoneEntered: (e) => this.handlePhoneInputChange(e) }), this.errors && this.errors['receiver.mobile'] ?
|
|
476
501
|
h("span", { class: "s-gifting-error" }, this.errors['receiver.mobile']) : ''), this.physicalProducts &&
|
|
477
502
|
h("div", null, h("div", { class: this.errors && this.errors['receiver.country'] ? "s-form-group s-form-has-error anime-item opacity-0" : "s-form-group anime-item opacity-0" }, h("label", { class: "s-form-label" }, this.receiverCountryFieldLabel), h("select", { name: "country", class: "s-form-control", onChange: (event) => this.handleCountryChange(event), required: true }, h("option", { value: "" }, this.selectCountry), this.gift?.countries?.map((country) => (h("option", { value: country.id }, country.name)))), this.errors && this.errors['receiver.country'] ?
|
|
478
503
|
h("span", { class: "s-gifting-error" }, this.errors['receiver.country']) : ''), h("div", { class: this.errors && this.errors['receiver.city_id'] ? "s-form-group s-form-has-error anime-item opacity-0" : "s-form-group anime-item opacity-0" }, h("label", { class: "s-form-label" }, this.receiverCityFieldLabel), h("select", { name: "city", "aria-label": salla.lang.get('blocks.buy_as_gift.select_city'), class: "s-form-control", onChange: (event) => this.handleReceiverCity(event), disabled: this.loadingCities }, h("option", { value: "", selected: true }, this.loadingCities ? salla.lang.get('common.elements.loading') : this.selectCity), this.gift?.cities?.map((city) => (h("option", { value: city.id }, city.name)))), this.errors && this.errors['receiver.city_id'] ?
|
|
479
504
|
h("span", { class: "s-gifting-error" }, this.errors['receiver.city_id']) : ''), h("div", { class: "s-gifting-info anime-item opacity-0" }, h("span", { innerHTML: Alert }), h("span", null, this.selectCityInfo))), !this.physicalProducts && h("div", { class: "anime-item opacity-0" }, h("label", { class: "s-gifting-schedule s-gifting-clickable", htmlFor: `schedule-${this.hostId}` }, h("input", { type: "checkbox", name: 'schedule', id: `schedule-${this.hostId}`, onChange: () => this.toggleCalendar(), class: "s-checkbox" }), h("span", { class: "s-form-label" }, " ", this.sendLater, " "))), h("div", { class: this.getCalendarClasses(), ref: (el) => this.calendarFormGroup = el }, h("label", { class: "s-form-label" }, this.selectSendDateAndTime), h("salla-datetime-picker", { value: this.deliveryDate, placeholder: this.selectSendDateAndTime, "enable-time": true, "date-format": "Y-m-d h:i K", onPicked: (event) => this.handleDateTimePicker(event) }), h("span", { class: "s-gifting-calendar-hint" }, this.canNotEditOrderAfterSelectDate)), h("div", { class: "s-gifting-step-two-footer anime-item opacity-0" }, h("a", { href: "#!", innerHTML: arrowLeft, onClick: (e) => this.goToStep1(e) }), h("salla-button", { onClick: () => this.submitForm(), color: "primary", width: 'wide' }, h("span", null, this.sendGift)))))
|
|
480
|
-
], h("slot", { key: '
|
|
505
|
+
], h("slot", { key: '8b69297ac7f9a527c12325a64a267825ea5ee48b', name: "footer" })))
|
|
481
506
|
];
|
|
482
507
|
}
|
|
483
508
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-tPV-H3dI.js';
|
|
5
5
|
|
|
6
6
|
const SallaHook = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-tPV-H3dI.js';
|
|
5
5
|
import { H as Helper } from './Helper-DFMXF2_h.js';
|
|
6
6
|
import './anime.es-CgtvEd63.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-tPV-H3dI.js';
|
|
5
5
|
|
|
6
6
|
const sallaInstallmentCss = "salla-installment:empty{display:none}#tabbyPromoWrapper{background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);margin-bottom:20px;border:unset !important;font-weight:500}.salla-y #tabbyPromoWrapper{border:1px solid var(--color-grey-dark);border-radius:12px}#tabbyPromoWrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}#tabbyPromoWrapper #tabbyPromo *{font-family:var(--font-main)}#tabbyPromoWrapper #tabbyPromo>div>div{max-width:none;box-shadow:none;border:none}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet{max-width:100%;min-height:100px;padding:18px 20px;border:none !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__text,#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-size:var(--font-sm);color:var(--color-text) !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-weight:bold}.tabby-promo-wrapper #tabby-promo{font-family:var(--font-main) !important}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-title{font-size:var(--font-md)}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-desc{font-size:var(--font-sm);line-height:20px}.tamara-product-widget{margin-bottom:20px}.tamara-product-widget,.spotii-wrapper{min-height:100px;position:relative;color:var(--main-text-color);font-size:var(--font-sm);line-height:1.25;padding:20px 20px 20px 115px !important;background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);border:unset !important;font-family:inherit !important;font-weight:500}.salla-y .tamara-product-widget,.salla-y .spotii-wrapper{border-radius:12px;border:1px solid var(--color-grey-dark)}.tamara-product-widget:hover,.spotii-wrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}.tamara-product-widget .spotii-logo,.spotii-wrapper .spotii-logo{float:left;margin:0 0 0 -75px}.ltr .tamara-product-widget,.ltr .spotii-wrapper{text-align:left;padding:18px 100px 18px 20px !important}.ltr .tamara-product-widget .spotii-logo,.ltr .spotii-wrapper .spotii-logo{float:right;margin:0 -75px 0 0}.ltr .tamara-product-widget .spotii-product-widget,.ltr .spotii-wrapper .spotii-product-widget{text-align:left !important}.spotii-wrapper{margin-bottom:20px}.spotii-wrapper .spotii-promo{font-size:var(--font-md)}.spotii-wrapper .spotii-product-widget{font-size:var(--font-sm) !important;margin-top:10px}.tamara-product-widget .tamara-logo{position:absolute;left:20px !important;top:35px !important;margin:0 !important;height:24px !important}.ltr .tamara-product-widget .tamara-logo{right:20px !important;left:auto !important}.tamara-product-widget span{font-family:var(--font-main);font-size:var(--font-sm);color:var(--color-text)}.tamara-product-widget span:last-child{display:block;position:relative;margin-top:8px}.tamara-popup__wrap{overflow:auto !important}.s-installment-mispay-wrapper,.s-installment-madfu-wrapper,.s-installment-emkan-wrapper,.s-installment-rajehi-wrapper{font-size:14px;text-align:right;padding:20px;gap:42px;line-height:22px;color:rgb(0, 0, 0);min-width:100%;box-sizing:border-box;position:relative;background-color:white;border-radius:10px;margin:15px 0;display:flex;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1)}.s-installment-mispay-wrapper:hover,.s-installment-madfu-wrapper:hover,.s-installment-emkan-wrapper:hover,.s-installment-rajehi-wrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}.s-installment-mispay-content,.s-installment-madfu-content,.s-installment-emkan-content,.s-installment-rajehi-content{display:flex;flex-direction:row-reverse;width:100%;justify-content:space-between;align-items:center;gap:1rem}.s-installment-mispay-content-text,.s-installment-madfu-content-text,.s-installment-emkan-content-text,.s-installment-rajehi-content-text{color:var(--main-text-color);font-size:14px;font-weight:500;margin:0 16px 0 0;width:80%;left:14px;text-align:left}.s-installment-mispay-content img,.s-installment-madfu-content img,.s-installment-emkan-content img,.s-installment-rajehi-content img{height:28px;width:70px;display:inline-block;max-height:100%;vertical-align:middle;fill:none;stroke:unset;width:auto}.rtl .s-installment-mispay-content-text,.rtl .s-installment-madfu-content-text,.rtl .s-installment-emkan-content-text,.rtl .s-installment-rajehi-content-text{right:14px;text-align:right;margin:0 0 0 16px}.rtl .s-installment-mispay-content img,.rtl .s-installment-madfu-content img,.rtl .s-installment-emkan-content img,.rtl .s-installment-rajehi-content img{left:14px !important}.ltr .s-installment-mispay-content img,.ltr .s-installment-madfu-content img,.ltr .s-installment-emkan-content img,.ltr .s-installment-rajehi-content img{right:14px !important}.s-installment-rajehi-content img{width:70px !important;height:40px !important}.s-installment-emkan-content img{height:35px !important}";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-tPV-H3dI.js';
|
|
5
5
|
|
|
6
6
|
const SallaLocalizationModal = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -94,6 +94,10 @@ const SallaLocalizationModal = class {
|
|
|
94
94
|
if (this.language !== salla.config.get('user.language_code', 'ar')) {
|
|
95
95
|
url = salla.helpers.addParamToUrl('lang', this.language);
|
|
96
96
|
}
|
|
97
|
+
})
|
|
98
|
+
.then(() => {
|
|
99
|
+
salla.cookie.set('s-lang', this.language);
|
|
100
|
+
salla.cookie.set('s-curr', this.currency);
|
|
97
101
|
})
|
|
98
102
|
.then(() => this.btn.stop())
|
|
99
103
|
.then(() => this.close())
|
|
@@ -104,7 +108,7 @@ const SallaLocalizationModal = class {
|
|
|
104
108
|
});
|
|
105
109
|
}
|
|
106
110
|
render() {
|
|
107
|
-
return (h("salla-modal", { key: '
|
|
111
|
+
return (h("salla-modal", { key: 'd3a45aa4cc807e1ba549514b59ada59a2397bff0', isLoading: true, class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, h("div", { key: '1794f7c9e31a1a1b622363fa21905a73a8bbdb68', slot: 'loading' }, h("div", { key: 'd55e1b7fb36f84616dde3f19955c7e5013838080', class: "s-localization-modal-skeleton" }, h("salla-skeleton", { key: '7a25a0f055f401a8a63030df1ab930957668c1df', width: '25%', height: '15px' }), h("div", { key: '8e9c1aba813a5efa58dc4132a504d1612343cce6', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => h("div", { class: "s-localization-modal-skeleton-item" }, h("div", { class: "s-localization-modal-skeleton-item-flex" }, h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), h("salla-skeleton", { height: '10px', width: '100px' })), h("salla-skeleton", { height: '15px', width: '20px' })))), h("salla-skeleton", { key: 'b3ef9e80a8dec053e9c0e6d10d1145d4057c98ad', width: '25%', height: '15px' }), h("div", { key: '1d062e516cc37994e34c0aa77634bc7a2311c4ff', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => h("div", { class: "s-localization-modal-skeleton-item" }, h("div", { class: "s-localization-modal-skeleton-item-flex" }, h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), h("salla-skeleton", { height: '10px', width: '100px' })), h("salla-skeleton", { height: '15px', width: '20px' })))), h("salla-skeleton", { key: '9f7a16b0f3881882fc257ed7e1290380dea38a4c', height: '40px', width: '100%' }))), !!this.hasError ?
|
|
108
112
|
h("salla-placeholder", { alignment: "center" }, h("span", { slot: "description" }, this.errorMessage)) :
|
|
109
113
|
h("div", { class: "s-localization-modal-inner" }, this.languages.length > 1 ?
|
|
110
114
|
h("div", { class: "s-localization-modal-section" }, h("label", { class: "s-localization-modal-title" }, salla.lang.get('common.titles.language')), h("div", { class: "s-localization-modal-section-inner" }, this.languages.length < 6 ?
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, F as Fragment, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, F as Fragment, a as getElement } from './index-tPV-H3dI.js';
|
|
5
5
|
|
|
6
6
|
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%}";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-tPV-H3dI.js';
|
|
5
5
|
|
|
6
6
|
const sallaLoyaltyPrizeItemCss = "salla-loyalty-prize-item:hover{box-shadow:0 5px 15px 1px rgba(0, 0, 0, 0.04) !important}";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-tPV-H3dI.js';
|
|
5
5
|
import { l as loyaltyProgramIcon } from './gift-BChI23pG.js';
|
|
6
6
|
|
|
7
7
|
const sallaLoyaltyProgramCss = "";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h } from './index-
|
|
4
|
+
import { r as registerInstance, h } from './index-tPV-H3dI.js';
|
|
5
5
|
import { S as Star } from './star2-D4oPi1Ov.js';
|
|
6
6
|
import { C as Cancel } from './cancel-BsLF_HK7.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-tPV-H3dI.js';
|
|
5
5
|
import { C as Cancel } from './cancel-BsLF_HK7.js';
|
|
6
6
|
|
|
7
7
|
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}}";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement, F as Fragment } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement, F as Fragment } from './index-tPV-H3dI.js';
|
|
5
5
|
|
|
6
6
|
const sallaMultipleBundleProductCartCss = "";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-tPV-H3dI.js';
|
|
5
5
|
import { A as ArrowLeftIcon, a as ArrowRightIcon } from './keyboard_arrow_right-Vqpj4CWE.js';
|
|
6
6
|
|
|
7
7
|
const sallaMultipleBundleProductOptionsModalCss = ":host{display:block}";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-tPV-H3dI.js';
|
|
5
5
|
import { H as Helper } from './Helper-DFMXF2_h.js';
|
|
6
6
|
import './anime.es-CgtvEd63.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-tPV-H3dI.js';
|
|
5
5
|
import { S as SpecialDiscountIcon } from './special-discount-Ctkfc4K-.js';
|
|
6
6
|
|
|
7
7
|
var Tag = `<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|