@salla.sa/twilight-components 2.14.422 → 2.14.424
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-Bj2Lr664.js → filepond-DS8lFN12.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-D6zjqOTW.js → filepond-plugin-file-poster-DOlur-Zr.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-DW2JtTpK.js → filepond-plugin-file-validate-size-8cdzV2Th.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-Cm_dx5vR.js → filepond-plugin-file-validate-type-DlZs1kVq.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-CyB1FduP.js → filepond-plugin-image-edit-SIPcIJFA.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-CxcuYrF1.js → filepond-plugin-image-exif-orientation-CISQ2nhQ.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-CXF_Kqyu.js → filepond-plugin-image-preview-8n6MPTM9.js} +1 -1
- package/dist/cjs/{functions-QULFiarR.js → functions-BYHbilvv.js} +1 -1
- package/dist/cjs/{index-C-KeWKxB.js → index-D6qSyn6o.js} +1 -1
- package/dist/cjs/{index-CSI6rnkc.js → index-oFPXLGXi.js} +12 -8
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +4 -2
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- 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-badge.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-coupons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +3 -9
- 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.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
- package/dist/cjs/salla-edit-order-button.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-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
- 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-map.cjs.entry.js +1 -1
- package/dist/cjs/salla-menu.cjs.entry.js +2 -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-next-order-coupon.cjs.entry.js +126 -0
- 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-edit-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +3 -9
- 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-card_2.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-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-reward-action_4.cjs.entry.js +9 -7
- 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/swap-stroke-CYGxjKIS.js +13 -0
- package/dist/cjs/tag-money-Cuohw_4j.js +13 -0
- package/dist/cjs/{tracked-promise-DTPdQpTt.js → tracked-promise-UbTM_M6f.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-CmTZhXxo.js → vanilla-picker-CyHLTyvk.js} +1 -1
- package/dist/collection/collection-manifest.json +6 -0
- package/dist/collection/components/salla-bought-together/salla-bought-together.js +3 -1
- package/dist/collection/components/salla-loyalty-program/salla-reward-details.js +6 -4
- package/dist/collection/components/salla-menu/salla-menu.js +1 -0
- package/dist/collection/components/salla-next-order-coupon/interfaces.js +1 -0
- package/dist/collection/components/salla-next-order-coupon/salla-next-order-coupon.css +3 -0
- package/dist/collection/components/salla-next-order-coupon/salla-next-order-coupon.js +142 -0
- package/dist/components/index.js +2 -2
- package/dist/components/salla-bought-together.js +3 -1
- package/dist/components/salla-cart-item-offers.js +1 -7
- package/dist/components/salla-menu.js +1 -0
- package/dist/components/salla-next-order-coupon.d.ts +11 -0
- package/dist/components/salla-next-order-coupon.js +165 -0
- package/dist/components/salla-order-summary.js +1 -7
- package/dist/components/salla-reward-details2.js +6 -4
- package/dist/components/swap-stroke.js +11 -0
- package/dist/components/tag-money.js +11 -0
- package/dist/esm/{filepond-CaO0jWZe.js → filepond-BKuHui9z.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-x8WSmS0o.js → filepond-plugin-file-poster-Dh39_0L1.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-CxlH6WN0.js → filepond-plugin-file-validate-size-CcS_RyRW.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-qw3WFgZc.js → filepond-plugin-file-validate-type-DpLuBo4I.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-DuhPVO0a.js → filepond-plugin-image-edit-BV3ho0c6.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-BffsImgy.js → filepond-plugin-image-exif-orientation-CCciy-YF.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-VZtiw7aM.js → filepond-plugin-image-preview-hfHsj8OM.js} +1 -1
- package/dist/esm/{functions-DQPUS1s5.js → functions-Czm5P_7C.js} +1 -1
- package/dist/esm/{index-DcQSprhU.js → index-BdWSh9vH.js} +12 -8
- package/dist/esm/{index-CDqmBYQb.js → index-C5q-9m7l.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_5.entry.js +4 -2
- package/dist/esm/salla-advertisement.entry.js +1 -1
- 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-badge.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-coupons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +2 -8
- 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.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-delivery-promise.entry.js +1 -1
- package/dist/esm/salla-edit-order-button.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-fulfillment-methods.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-banner.entry.js +2 -2
- package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
- package/dist/esm/salla-loyalty-panel.entry.js +3 -3
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +3 -3
- package/dist/esm/salla-loyalty-reward.entry.js +2 -2
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-map.entry.js +1 -1
- package/dist/esm/salla-menu.entry.js +2 -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-next-order-coupon.entry.js +124 -0
- 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-edit-item.entry.js +1 -1
- package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
- package/dist/esm/salla-order-edit.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +2 -8
- 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-card_2.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-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-reward-action_4.entry.js +9 -7
- 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/swap-stroke-DqDX5na4.js +11 -0
- package/dist/esm/tag-money-CJUR4sUM.js +11 -0
- package/dist/esm/{tracked-promise-CjUGdQ4e.js → tracked-promise-CGupCr4U.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-71UAczkS.js → vanilla-picker-XBpFNS7X.js} +1 -1
- package/dist/twilight/p-01c8a84e.entry.js +4 -0
- package/dist/twilight/{p-f2476ba0.entry.js → p-0705e86d.entry.js} +1 -1
- package/dist/twilight/{p-00031f8b.entry.js → p-077ff83c.entry.js} +1 -1
- package/dist/twilight/p-0c299177.entry.js +4 -0
- package/dist/twilight/{p-81f18d48.entry.js → p-106c5b79.entry.js} +1 -1
- package/dist/twilight/{p-9cb39e42.entry.js → p-1186078e.entry.js} +1 -1
- package/dist/twilight/{p-f161933c.entry.js → p-15836ed9.entry.js} +1 -1
- package/dist/twilight/{p-3f01ef83.entry.js → p-15a8c7c6.entry.js} +1 -1
- package/dist/twilight/{p-80865031.entry.js → p-163ebaf7.entry.js} +1 -1
- package/dist/twilight/{p-e08d36d6.entry.js → p-168c942e.entry.js} +1 -1
- package/dist/twilight/{p-062ce0be.entry.js → p-1722e759.entry.js} +1 -1
- package/dist/twilight/{p-DgJJBXMW.js → p-1YpyVfkq.js} +1 -1
- package/dist/twilight/{p-97a43989.entry.js → p-1a796e26.entry.js} +1 -1
- package/dist/twilight/{p-c34b5d8a.entry.js → p-1af3a167.entry.js} +1 -1
- package/dist/twilight/{p-e87d2534.entry.js → p-1d508c88.entry.js} +1 -1
- package/dist/twilight/{p-3a3dd27f.entry.js → p-23583546.entry.js} +1 -1
- package/dist/twilight/p-2437e4ac.entry.js +4 -0
- package/dist/twilight/{p-63e1b828.entry.js → p-27c6128f.entry.js} +1 -1
- package/dist/twilight/{p-a147d986.entry.js → p-27f90256.entry.js} +1 -1
- package/dist/twilight/{p-b0b2aeda.entry.js → p-29cbf744.entry.js} +1 -1
- package/dist/twilight/{p-cfac18e6.entry.js → p-2cb6feea.entry.js} +1 -1
- package/dist/twilight/{p-ea4ded2f.entry.js → p-2f530556.entry.js} +1 -1
- package/dist/twilight/{p-6ccbe91b.entry.js → p-34c1e701.entry.js} +1 -1
- package/dist/twilight/{p-6587c7d9.entry.js → p-37397917.entry.js} +1 -1
- package/dist/twilight/{p-3115fa6f.entry.js → p-3fb699fb.entry.js} +1 -1
- package/dist/twilight/{p-b3a731c1.entry.js → p-41237614.entry.js} +1 -1
- package/dist/twilight/{p-300dae0b.entry.js → p-4ad0ea7c.entry.js} +1 -1
- package/dist/twilight/{p-061c3ad0.entry.js → p-4dc5f354.entry.js} +1 -1
- package/dist/twilight/{p-5637acc5.entry.js → p-4f1e3ebb.entry.js} +1 -1
- package/dist/twilight/{p-ecb69641.entry.js → p-50002b57.entry.js} +1 -1
- package/dist/twilight/{p-14805623.entry.js → p-538cf743.entry.js} +1 -1
- package/dist/twilight/{p-c2a2158a.entry.js → p-55b5e8be.entry.js} +1 -1
- package/dist/twilight/{p-503f9bbf.entry.js → p-5b37732b.entry.js} +1 -1
- package/dist/twilight/{p-4f6bff26.entry.js → p-5ba9c7db.entry.js} +1 -1
- package/dist/twilight/{p-a4c32f61.entry.js → p-5bbc5ce6.entry.js} +1 -1
- package/dist/twilight/{p-192e2bc3.entry.js → p-61abc2ef.entry.js} +1 -1
- package/dist/twilight/{p-d46ab245.entry.js → p-61eb0bc8.entry.js} +1 -1
- package/dist/twilight/{p-f6ed04b2.entry.js → p-635738d0.entry.js} +1 -1
- package/dist/twilight/{p-d65db41e.entry.js → p-649268c1.entry.js} +1 -1
- package/dist/twilight/{p-a2fcbc1a.entry.js → p-66c85e94.entry.js} +1 -1
- package/dist/twilight/{p-0217da98.entry.js → p-6a2b2122.entry.js} +1 -1
- package/dist/twilight/{p-deffef72.entry.js → p-6bb43f9d.entry.js} +1 -1
- package/dist/twilight/{p-957bffb4.entry.js → p-77744cd4.entry.js} +1 -1
- package/dist/twilight/{p-452d8cd0.entry.js → p-7f9c18d8.entry.js} +1 -1
- package/dist/twilight/{p-c9b8eaa4.entry.js → p-806d31ba.entry.js} +1 -1
- package/dist/twilight/{p-fa5cfbbb.entry.js → p-813b762c.entry.js} +1 -1
- package/dist/twilight/{p-f0f5e269.entry.js → p-85267471.entry.js} +1 -1
- package/dist/twilight/{p-32a76526.entry.js → p-86486b65.entry.js} +1 -1
- package/dist/twilight/{p-c13164b8.entry.js → p-88e2d340.entry.js} +1 -1
- package/dist/twilight/{p-587d6230.entry.js → p-8b807210.entry.js} +1 -1
- package/dist/twilight/{p-f77d4659.entry.js → p-920a3f93.entry.js} +1 -1
- package/dist/twilight/{p-e79d468d.entry.js → p-937b1d3f.entry.js} +1 -1
- package/dist/twilight/{p-77d1859e.entry.js → p-93a4254f.entry.js} +1 -1
- package/dist/twilight/{p-acb769ec.entry.js → p-9d16c043.entry.js} +1 -1
- package/dist/twilight/{p-c49b9285.entry.js → p-9ec5b3ec.entry.js} +1 -1
- package/dist/twilight/{p-BTAUEZcN.js → p-B-CUQTrk.js} +1 -1
- package/dist/twilight/{p-CT3zVv2d.js → p-B8u0sgnU.js} +1 -1
- package/dist/twilight/{p-Cs04GLEl.js → p-BUZ_EM6t.js} +1 -1
- package/dist/twilight/{p-DcQSprhU.js → p-BdWSh9vH.js} +1 -1
- package/dist/twilight/{p-l-JdSat8.js → p-Bvagw9Eb.js} +1 -1
- package/dist/twilight/p-CJUR4sUM.js +4 -0
- package/dist/twilight/{p-CN2sY_Li.js → p-CL1NQBQS.js} +1 -1
- package/dist/twilight/{p-BCVUxip0.js → p-CXWkL-Nl.js} +1 -1
- package/dist/twilight/{p-BHk2Uou3.js → p-Co4B1BYS.js} +1 -1
- package/dist/twilight/p-DqDX5na4.js +4 -0
- package/dist/twilight/{p-Ca8b1Y6p.js → p-MdN_P6GB.js} +1 -1
- package/dist/twilight/{p-e8a3af2d.entry.js → p-a08bae8c.entry.js} +1 -1
- package/dist/twilight/{p-868e3de6.entry.js → p-a0c2d2fc.entry.js} +1 -1
- package/dist/twilight/{p-e4f154ee.entry.js → p-a2bf9399.entry.js} +1 -1
- package/dist/twilight/{p-64f577be.entry.js → p-a2cf36dd.entry.js} +1 -1
- package/dist/twilight/{p-8101bf16.entry.js → p-a517605b.entry.js} +1 -1
- package/dist/twilight/p-a6980f8f.entry.js +4 -0
- package/dist/twilight/p-a7292650.entry.js +4 -0
- package/dist/twilight/{p-a44f888a.entry.js → p-b49a7e3e.entry.js} +1 -1
- package/dist/twilight/{p-28cd5556.entry.js → p-b5b4582b.entry.js} +1 -1
- package/dist/twilight/{p-e2e790c2.entry.js → p-b9e27f4a.entry.js} +1 -1
- package/dist/twilight/{p-b3d565bd.entry.js → p-ba7d2b19.entry.js} +1 -1
- package/dist/twilight/{p-1cf5f505.entry.js → p-bb684fb5.entry.js} +1 -1
- package/dist/twilight/{p-013cfbf0.entry.js → p-bed2665e.entry.js} +1 -1
- package/dist/twilight/{p-69b6a7e6.entry.js → p-c4b60782.entry.js} +1 -1
- package/dist/twilight/{p-5e5ccdab.entry.js → p-c9a2317f.entry.js} +1 -1
- package/dist/twilight/{p-9924b574.entry.js → p-cc41c0fa.entry.js} +1 -1
- package/dist/twilight/{p-a6282734.entry.js → p-cda257aa.entry.js} +1 -1
- package/dist/twilight/{p-7282ff57.entry.js → p-cfdf044a.entry.js} +1 -1
- package/dist/twilight/{p-8ad13a15.entry.js → p-d1b0d5a6.entry.js} +1 -1
- package/dist/twilight/{p-6d5b28c5.entry.js → p-d93dda4f.entry.js} +1 -1
- package/dist/twilight/{p-38ce7612.entry.js → p-df0ef038.entry.js} +1 -1
- package/dist/twilight/{p-4a8e7f09.entry.js → p-e09f41df.entry.js} +1 -1
- package/dist/twilight/{p-9170fe95.entry.js → p-e14c7c23.entry.js} +1 -1
- package/dist/twilight/{p-63d47b05.entry.js → p-e33b5cf9.entry.js} +1 -1
- package/dist/twilight/p-e580c9e9.entry.js +4 -0
- package/dist/twilight/{p-d188ddc3.entry.js → p-ed767ba1.entry.js} +1 -1
- package/dist/twilight/{p-8ec0ba5b.entry.js → p-effcd169.entry.js} +1 -1
- package/dist/twilight/{p-8eebefe9.entry.js → p-fba1c62d.entry.js} +1 -1
- package/dist/twilight/{p-6c98089b.entry.js → p-ff8f343e.entry.js} +1 -1
- package/dist/twilight/{p-CRRWZbuL.js → p-kpU-gI-I.js} +1 -1
- package/dist/twilight/{p-DeBNbBwy.js → p-qPitx-1F.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-next-order-coupon/interfaces.d.ts +11 -0
- package/dist/types/components/salla-next-order-coupon/salla-next-order-coupon.d.ts +24 -0
- package/dist/types/components.d.ts +13 -0
- package/package.json +5 -5
- package/dist/twilight/p-27cc8fc7.entry.js +0 -4
- package/dist/twilight/p-489cca66.entry.js +0 -4
- package/dist/twilight/p-497b058a.entry.js +0 -4
- package/dist/twilight/p-4c759f75.entry.js +0 -4
- package/dist/twilight/p-50b449bd.entry.js +0 -4
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-oFPXLGXi.js');
|
|
7
7
|
|
|
8
8
|
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}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-oFPXLGXi.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,10 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-oFPXLGXi.js');
|
|
7
7
|
var translations = require('./translations-DMwpLvqi.js');
|
|
8
8
|
var gift = require('./gift-DbNivqYO.js');
|
|
9
|
-
var trackedPromise = require('./tracked-promise-
|
|
9
|
+
var trackedPromise = require('./tracked-promise-UbTM_M6f.js');
|
|
10
10
|
|
|
11
11
|
const sallaLoyaltyProgramCss = "";
|
|
12
12
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var functions = require('./functions-
|
|
6
|
+
var index = require('./index-oFPXLGXi.js');
|
|
7
|
+
var functions = require('./functions-BYHbilvv.js');
|
|
8
8
|
var gift = require('./gift-DbNivqYO.js');
|
|
9
9
|
var cart2 = require('./cart2-B98PSAFN.js');
|
|
10
10
|
var userAdd = require('./user-add-BCGrddZS.js');
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-oFPXLGXi.js');
|
|
7
7
|
var translations = require('./translations-DMwpLvqi.js');
|
|
8
|
-
var functions = require('./functions-
|
|
8
|
+
var functions = require('./functions-BYHbilvv.js');
|
|
9
9
|
var star2 = require('./star2-R146a27p.js');
|
|
10
10
|
var cancel = require('./cancel-B5SbMYEk.js');
|
|
11
11
|
var percentage = require('./percentage-Fs83gq6Q.js');
|
|
12
12
|
var shipping = require('./shipping-CPYcgyCL.js');
|
|
13
13
|
var cart2 = require('./cart2-B98PSAFN.js');
|
|
14
|
-
var trackedPromise = require('./tracked-promise-
|
|
14
|
+
var trackedPromise = require('./tracked-promise-UbTM_M6f.js');
|
|
15
15
|
|
|
16
16
|
var PrizeImage = `<svg xmlns="http://www.w3.org/2000/svg" width="77" height="77" fill="none" viewBox="0 0 57 57"><rect width="56.3" height="55.9" x=".4" y=".2" fill="#FFF5E5" rx="27.9"/><g clip-path="url(#a)"><path fill="#EE9D0D" d="M16.7 27.5h17.5v12.2a1 1 0 0 1-1 1H17.7a1 1 0 0 1-1-1V27.5Z"/><path fill="#C7830B" d="M34.2 27.8v6l-6.8-6.3H34l.3.3Z"/><path fill="#C7830B" d="M34.2 32.3v1.5l-1.6-1.5h1.6Z"/><path fill="#EA2B2D" d="m29.9 15.8-.3.1a2.4 2.4 0 0 0-1.4 1.5l-.2.8-.4.2a2.4 2.4 0 0 0-1.1 1.4l4.2 3.9L33 21l.2-2.9a2.4 2.4 0 0 0-3.3-2.4ZM41.1 26.3v.2a2.4 2.4 0 0 1-1.5 1.6l-.7.3-.2.3a2.4 2.4 0 0 1-1.3 1.3l-4.2-4 2.4-2.5 2.9-.3a2.4 2.4 0 0 1 2.6 3.1Z"/><path fill="#CB2527" d="M23.7 27.5h3.5v13.1h-3.5V27.5Z"/><path fill="#EA2B2D" d="M16.7 32.3h17.5v3.5H16.7v-3.5Z"/><path fill="#CB2527" d="M34.2 32.3v1.5l-1.6-1.5h1.6Z"/><path fill="#EE9D0D" d="M25.3 18.7 38.6 31a1 1 0 0 1 0 1.4l-2.3 2.4-14.7-13.7 2.3-2.5a1 1 0 0 1 1.4 0Z"/><path fill="#CB2527" d="m30.3 23.4 3.2 3-3 3.2-3.2-3 3-3.2ZM31.8 22.8a.4.4 0 0 1-.3-.1l-.3-.4A5.9 5.9 0 0 1 30 18a.4.4 0 0 1 .9 0 5 5 0 0 0 1 3.7l.3.3a.4.4 0 0 1-.4.7Z"/><path fill="#EA2B2D" d="M30.7 23.7c-1.9.7-3.8 1-5.7.9h-1.1l1.9 1.7-.6 1.9 1.8-.6c1.7-.5 3.2-1.4 4.6-2.5l.3-.2-1.2-1.2Z"/><path fill="#CB2527" d="M37.8 26.4c-1.1 0-2.3-.3-3.2-1l-.4-.2a.4.4 0 0 1 0-.8.4.4 0 0 1 .5 0l.3.3a5 5 0 0 0 3.7.7.4.4 0 1 1 .2 1 6 6 0 0 1-1 0Z"/><path fill="#EA2B2D" d="M33.2 26c-.5 2-.7 3.9-.5 5.8l.1 1.1-1.9-1.8-1.8.7.4-1.8c.4-1.7 1.2-3.3 2.2-4.8l.2-.3 1.3 1.2Z"/><path fill="#6699CE" d="M21.5 17.4a.9.9 0 1 0 0-1.7.9.9 0 0 0 0 1.7Z"/><path fill="#FAA6B2" d="M16.7 27.5a.9.9 0 1 0 0-1.8.9.9 0 0 0 0 1.8Z"/><path fill="#A6DEFF" d="M18.4 17.9a.4.4 0 0 1-.4-.3v-.1a1.4 1.4 0 0 0-1.3-1 .4.4 0 0 1-.2-.8h.2a2.3 2.3 0 0 1 2.1 1.5.4.4 0 0 1-.4.7ZM20.6 25.6h-.2v-.1a1 1 0 0 0-1.1 0 .4.4 0 0 1-.5-.8 1.8 1.8 0 0 1 2 0 .4.4 0 0 1-.2.9Z"/><path fill="#EEB436" d="m17.6 18.6 1.3 1.2 1.8-.4-.7 1.7.9 1.6-1.8-.2-1.2 1.3-.4-1.8-1.7-.7 1.6-.9.2-1.8ZM23 26.6l-.5 1.8 1.2 1.3-1.8.2-1 1.5-.6-1.7-1.8-.4 1.4-1.1-.2-1.9 1.6 1 1.6-.7Z"/><path fill="#F72D2F" d="m33.2 26-2.5-2.3L33 21a4 4 0 0 1 2.6 2.4l-2.4 2.6Z"/></g><defs><clipPath id="a"><path fill="#fff" d="M15.8 15.7h25.4v25H15.8z"/></clipPath></defs></svg>`;
|
|
17
17
|
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-oFPXLGXi.js');
|
|
7
7
|
var translations = require('./translations-DMwpLvqi.js');
|
|
8
|
-
var functions = require('./functions-
|
|
8
|
+
var functions = require('./functions-BYHbilvv.js');
|
|
9
9
|
var percentage = require('./percentage-Fs83gq6Q.js');
|
|
10
10
|
var shipping = require('./shipping-CPYcgyCL.js');
|
|
11
11
|
var cart2 = require('./cart2-B98PSAFN.js');
|
|
12
12
|
var userAdd = require('./user-add-BCGrddZS.js');
|
|
13
13
|
var giftSharing = require('./gift-sharing-BE0uszUm.js');
|
|
14
14
|
var gift = require('./gift-DbNivqYO.js');
|
|
15
|
-
var trackedPromise = require('./tracked-promise-
|
|
15
|
+
var trackedPromise = require('./tracked-promise-UbTM_M6f.js');
|
|
16
16
|
var anime_es = require('./anime.es-BqW8JHZi.js');
|
|
17
17
|
|
|
18
18
|
var SICartUpload = `<!-- Generated by IcoMoon.io -->
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var functions = require('./functions-
|
|
6
|
+
var index = require('./index-oFPXLGXi.js');
|
|
7
|
+
var functions = require('./functions-BYHbilvv.js');
|
|
8
8
|
var gift = require('./gift-DbNivqYO.js');
|
|
9
9
|
|
|
10
10
|
const sallaLoyaltyProgramCss = "";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-oFPXLGXi.js');
|
|
7
7
|
var cancel = require('./cancel-B5SbMYEk.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,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-oFPXLGXi.js');
|
|
7
7
|
|
|
8
8
|
const sallaMenuCss = ":host{display:block}";
|
|
9
9
|
|
|
@@ -19,6 +19,7 @@ const SallaMenu = class {
|
|
|
19
19
|
*/
|
|
20
20
|
this.useReactLink = false;
|
|
21
21
|
this.menus = [];
|
|
22
|
+
this.displayAllText = '';
|
|
22
23
|
}
|
|
23
24
|
async componentWillLoad() {
|
|
24
25
|
return salla.onReady(() => {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-oFPXLGXi.js');
|
|
7
7
|
var keyboard_arrow_right = require('./keyboard_arrow_right-BayM_Il2.js');
|
|
8
8
|
|
|
9
9
|
const sallaMultipleBundleProductOptionsModalCss = ":host{display:block}";
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
'use strict';
|
|
5
|
+
|
|
6
|
+
var index = require('./index-oFPXLGXi.js');
|
|
7
|
+
var tagMoney = require('./tag-money-Cuohw_4j.js');
|
|
8
|
+
var swapStroke = require('./swap-stroke-CYGxjKIS.js');
|
|
9
|
+
|
|
10
|
+
const sallaNextOrderCouponCss = ":host{display:block}";
|
|
11
|
+
|
|
12
|
+
const SallaNextOrderCoupon = class {
|
|
13
|
+
constructor(hostRef) {
|
|
14
|
+
index.registerInstance(this, hostRef);
|
|
15
|
+
this.coupon = null;
|
|
16
|
+
this.isLoading = true;
|
|
17
|
+
this.titlePercentTpl = '';
|
|
18
|
+
this.titleFixedTpl = '';
|
|
19
|
+
this.badgeLabel = '';
|
|
20
|
+
this.minSpendTpl = '';
|
|
21
|
+
this.expiresTpl = '';
|
|
22
|
+
this.shopNowLabel = '';
|
|
23
|
+
this.copyLabel = '';
|
|
24
|
+
this.copiedLabel = '';
|
|
25
|
+
}
|
|
26
|
+
componentWillLoad() {
|
|
27
|
+
Salla.onReady()
|
|
28
|
+
.then(() => Salla.lang.onLoaded())
|
|
29
|
+
.then(() => {
|
|
30
|
+
this.loadTranslations();
|
|
31
|
+
return this.loadCoupon();
|
|
32
|
+
})
|
|
33
|
+
.catch(() => {
|
|
34
|
+
this.isLoading = false;
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
loadTranslations() {
|
|
38
|
+
this.titlePercentTpl = Salla.lang.get('pages.thank_you.next_order_coupon.title_percent') || '';
|
|
39
|
+
this.titleFixedTpl = Salla.lang.get('pages.thank_you.next_order_coupon.title_fixed') || '';
|
|
40
|
+
this.badgeLabel = Salla.lang.get('pages.thank_you.next_order_coupon.badge') || '';
|
|
41
|
+
this.minSpendTpl = Salla.lang.get('pages.thank_you.next_order_coupon.min_spend') || '';
|
|
42
|
+
this.expiresTpl = Salla.lang.get('pages.thank_you.next_order_coupon.expires') || '';
|
|
43
|
+
this.shopNowLabel = Salla.lang.get('pages.thank_you.next_order_coupon.shop_now') || '';
|
|
44
|
+
this.copyLabel = Salla.lang.get('common.elements.copy') || '';
|
|
45
|
+
this.copiedLabel = Salla.lang.get('pages.thank_you.next_order_coupon.copied') || '';
|
|
46
|
+
}
|
|
47
|
+
async loadCoupon() {
|
|
48
|
+
try {
|
|
49
|
+
const response = await salla.api.request('coupons', { type: 'thankyou' });
|
|
50
|
+
const raw = response?.data;
|
|
51
|
+
const list = Array.isArray(raw) ? raw : (Array.isArray(raw?.data) ? raw.data : []);
|
|
52
|
+
this.coupon = list[0] ?? null;
|
|
53
|
+
}
|
|
54
|
+
catch {
|
|
55
|
+
this.coupon = null;
|
|
56
|
+
}
|
|
57
|
+
finally {
|
|
58
|
+
this.isLoading = false;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
async copyCode() {
|
|
62
|
+
if (!this.coupon)
|
|
63
|
+
return;
|
|
64
|
+
try {
|
|
65
|
+
await navigator.clipboard.writeText(this.coupon.code);
|
|
66
|
+
salla.notify.success(this.copiedLabel);
|
|
67
|
+
salla.event.dispatch('salla::next-order-coupon.code.copied', { code: this.coupon.code });
|
|
68
|
+
}
|
|
69
|
+
catch {
|
|
70
|
+
// clipboard write failed silently
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
isPercentage() {
|
|
74
|
+
return this.coupon?.type === 'P' || this.coupon?.type === 'percentage';
|
|
75
|
+
}
|
|
76
|
+
formatAmount() {
|
|
77
|
+
if (!this.coupon)
|
|
78
|
+
return '';
|
|
79
|
+
if (this.isPercentage()) {
|
|
80
|
+
return `${salla.helpers.number(this.coupon.amount)}%`;
|
|
81
|
+
}
|
|
82
|
+
const amt = this.coupon.amount;
|
|
83
|
+
if (typeof amt === 'object' && amt.amount) {
|
|
84
|
+
const a = amt;
|
|
85
|
+
return index.h("span", { innerHTML: salla.money(a.amount, a.currency) });
|
|
86
|
+
}
|
|
87
|
+
return index.h("span", { innerHTML: salla.money(amt) });
|
|
88
|
+
}
|
|
89
|
+
formatMinSpend() {
|
|
90
|
+
const min = this.coupon?.minimum_amount;
|
|
91
|
+
if (!min)
|
|
92
|
+
return '';
|
|
93
|
+
if (typeof min === 'string') {
|
|
94
|
+
return min.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
|
95
|
+
}
|
|
96
|
+
return salla.money(min.amount, min.currency);
|
|
97
|
+
}
|
|
98
|
+
formatExpiry() {
|
|
99
|
+
const d = this.coupon?.expiry_date;
|
|
100
|
+
if (!d)
|
|
101
|
+
return '';
|
|
102
|
+
return new Date(d).toLocaleDateString(Salla.lang.locale || 'en-GB');
|
|
103
|
+
}
|
|
104
|
+
renderSkeleton() {
|
|
105
|
+
return (index.h("div", { class: "s-next-order-coupon-wrapper s-next-order-coupon-skeleton" }, index.h("div", { class: "s-next-order-coupon-inner" }, index.h("div", { class: "s-next-order-coupon-info" }, index.h("salla-skeleton", { type: "normal", width: "48px", height: "48px" }), index.h("div", { class: "s-next-order-coupon-details" }, index.h("salla-skeleton", { height: "14px", width: "220px" }), index.h("salla-skeleton", { height: "12px", width: "140px" }))), index.h("div", { class: "s-next-order-coupon-actions" }, index.h("salla-skeleton", { height: "40px", width: "140px" }), index.h("salla-skeleton", { height: "40px", width: "100px" })))));
|
|
106
|
+
}
|
|
107
|
+
renderTitle() {
|
|
108
|
+
const amount = this.formatAmount();
|
|
109
|
+
const tpl = this.isPercentage() ? this.titlePercentTpl : this.titleFixedTpl;
|
|
110
|
+
const placeholder = this.isPercentage() ? ':amount%' : ':amount';
|
|
111
|
+
const parts = tpl.split(placeholder);
|
|
112
|
+
return (index.h("p", { class: "s-next-order-coupon-title" }, parts[0], index.h("span", { class: "s-next-order-coupon-amount" }, amount), parts[1] || ''));
|
|
113
|
+
}
|
|
114
|
+
render() {
|
|
115
|
+
if (this.isLoading)
|
|
116
|
+
return this.renderSkeleton();
|
|
117
|
+
if (!this.coupon)
|
|
118
|
+
return null;
|
|
119
|
+
const minSpend = this.formatMinSpend();
|
|
120
|
+
const expiry = this.formatExpiry();
|
|
121
|
+
return (index.h("div", { class: "s-next-order-coupon-wrapper" }, index.h("div", { class: "s-next-order-coupon-inner" }, index.h("div", { class: "s-next-order-coupon-info" }, index.h("div", { class: "s-next-order-coupon-icon-wrap" }, index.h("span", { class: "s-next-order-coupon-icon-bg" }), index.h("span", { class: "s-next-order-coupon-icon", innerHTML: tagMoney.TagMoneyIcon })), index.h("div", { class: "s-next-order-coupon-details" }, index.h("div", { class: "s-next-order-coupon-title-row" }, this.renderTitle(), index.h("span", { class: "s-next-order-coupon-badge" }, index.h("span", { class: "s-next-order-coupon-badge-bg" }), index.h("span", { class: "s-next-order-coupon-badge-text" }, this.badgeLabel))), (minSpend || expiry) && (index.h("p", { class: "s-next-order-coupon-meta" }, minSpend && (index.h("span", { innerHTML: this.minSpendTpl.replace(':amount', minSpend) })), expiry && (index.h("span", null, this.expiresTpl.replace(':date', expiry))))))), index.h("div", { class: "s-next-order-coupon-actions" }, index.h("div", { class: "s-next-order-coupon-code-box" }, index.h("span", { class: "s-next-order-coupon-code-text" }, this.coupon.code), index.h("salla-button", { shape: "link", class: "s-next-order-coupon-copy-btn", title: this.copyLabel, onClick: () => this.copyCode() }, index.h("span", { class: "s-next-order-coupon-copy-icon", innerHTML: swapStroke.iconCopy }))), index.h("salla-button", { href: salla.url.get(''), class: "s-next-order-coupon-shop-btn" }, this.shopNowLabel)))));
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
SallaNextOrderCoupon.style = sallaNextOrderCouponCss;
|
|
125
|
+
|
|
126
|
+
exports.salla_next_order_coupon = SallaNextOrderCoupon;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-oFPXLGXi.js');
|
|
7
7
|
var specialDiscount = require('./special-discount-DC2oXurL.js');
|
|
8
8
|
var tag = require('./tag-D-PcUR33.js');
|
|
9
9
|
var cart2 = require('./cart2-B98PSAFN.js');
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-oFPXLGXi.js');
|
|
7
|
+
var swapStroke = require('./swap-stroke-CYGxjKIS.js');
|
|
7
8
|
var check = require('./check-BnVBPQNp.js');
|
|
8
9
|
|
|
9
10
|
var iconFileArchive = `<!-- Generated by IcoMoon.io -->
|
|
@@ -20,13 +21,6 @@ var iconDownload = `<!-- Generated by IcoMoon.io -->
|
|
|
20
21
|
</svg>
|
|
21
22
|
`;
|
|
22
23
|
|
|
23
|
-
var iconCopy = `<!-- Generated by IcoMoon.io -->
|
|
24
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
25
|
-
<title>swap-stroke</title>
|
|
26
|
-
<path d="M6.667 18.667h-2.667c-0.736 0-1.333-0.597-1.333-1.333v-13.333c0-0.736 0.597-1.333 1.333-1.333h13.333c0.736 0 1.333 0.597 1.333 1.333v2.667c0 0.737 0.596 1.333 1.333 1.333s1.333-0.596 1.333-1.333v-2.667c0-2.205-1.795-4-4-4h-13.333c-2.205 0-4 1.795-4 4v13.333c0 2.205 1.795 4 4 4h2.667c0.737 0 1.333-0.596 1.333-1.333s-0.596-1.333-1.333-1.333zM28 10.667h-13.333c-2.205 0-4 1.795-4 4v13.333c0 2.205 1.795 4 4 4h13.333c2.205 0 4-1.795 4-4v-13.333c0-2.205-1.795-4-4-4zM29.333 28c0 0.736-0.597 1.333-1.333 1.333h-13.333c-0.736 0-1.333-0.597-1.333-1.333v-13.333c0-0.736 0.597-1.333 1.333-1.333h13.333c0.736 0 1.333 0.597 1.333 1.333z"></path>
|
|
27
|
-
</svg>
|
|
28
|
-
`;
|
|
29
|
-
|
|
30
24
|
var iconCreditCard = `<!-- Generated by IcoMoon.io -->
|
|
31
25
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
32
26
|
<title>debit-card-back</title>
|
|
@@ -93,7 +87,7 @@ const SallaOrderSummary = class {
|
|
|
93
87
|
}
|
|
94
88
|
render() {
|
|
95
89
|
return (index.h("ul", { key: '20b8d793a83306a203cd0f7eadededf3ce224181', class: "s-order-summary-wrapper" }, this.noItemFound ? index.h("salla-placeholder", { alignment: "center" }, index.h("span", { slot: "title" })) :
|
|
96
|
-
this.order_items.map((item) => (this.isDigitalCard(item) ? (index.h("li", { key: item.product.id, class: "s-order-summary-item" }, index.h("h2", { class: "s-order-summary-item-title" }, this.codes_text, " (", item.name, ")"), item.codes.map((code) => (index.h("div", { key: code.code, class: "s-order-summary-code-item-wrapper" }, index.h("p", null, index.h("span", { innerHTML: iconCreditCard }), index.h("span", null, code.code)), index.h("salla-button", { class: `s-order-summary-item-copy-button ${this.codeCopied === code.code ? 'copied' : ''}`, onClick: () => this.copyToClipboardHandler(code.code), shape: "link" }, index.h("span", { innerHTML: this.codeCopied === code.code ? check.SICheck : iconCopy }), index.h("span", null, this.copy_text))))))) :
|
|
90
|
+
this.order_items.map((item) => (this.isDigitalCard(item) ? (index.h("li", { key: item.product.id, class: "s-order-summary-item" }, index.h("h2", { class: "s-order-summary-item-title" }, this.codes_text, " (", item.name, ")"), item.codes.map((code) => (index.h("div", { key: code.code, class: "s-order-summary-code-item-wrapper" }, index.h("p", null, index.h("span", { innerHTML: iconCreditCard }), index.h("span", null, code.code)), index.h("salla-button", { class: `s-order-summary-item-copy-button ${this.codeCopied === code.code ? 'copied' : ''}`, onClick: () => this.copyToClipboardHandler(code.code), shape: "link" }, index.h("span", { innerHTML: this.codeCopied === code.code ? check.SICheck : swapStroke.iconCopy }), index.h("span", null, this.copy_text))))))) :
|
|
97
91
|
this.isDigitalProduct(item) ? (index.h("li", { key: item.product.id, class: "s-order-summary-item" }, index.h("h2", { class: "s-order-summary-item-title" }, this.files_text, " (", item.name, ")"), index.h("ul", null, item.files.map((file) => (index.h("li", { class: "s-order-summary-digital-item-wrapper" }, index.h("div", null, index.h("span", { innerHTML: iconFileArchive }), index.h("span", null, file.name)), index.h("a", { href: file.url, target: "_blank", class: "s-order-summary-item-download" }, index.h("span", { innerHTML: iconDownload }), index.h("span", null, this.download_text)))))))) : null))));
|
|
98
92
|
}
|
|
99
93
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-oFPXLGXi.js');
|
|
7
7
|
|
|
8
8
|
var PencilRuler = `<!-- Generated by IcoMoon.io -->
|
|
9
9
|
<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-oFPXLGXi.js');
|
|
7
7
|
var anime_es = require('./anime.es-BqW8JHZi.js');
|
|
8
8
|
var shoppingBag = require('./shopping-bag-C1gvTVHr.js');
|
|
9
9
|
var Helper = require('./Helper-CU4Xuiki.js');
|