@salla.sa/twilight-components 2.14.537 → 2.14.538
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/{cancel-B5SbMYEk.js → cancel-De6vslRA.js} +2 -2
- package/dist/cjs/{check-BnVBPQNp.js → check-x3w3-gpj.js} +2 -2
- package/dist/cjs/{filepond-BKilDzmk.js → filepond-CtSUl5Ct.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-DMIbAyAM.js → filepond-plugin-file-poster-MbB20g2i.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-NaEK453w.js → filepond-plugin-file-validate-size-Djvu0kmc.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-C4fSQyfm.js → filepond-plugin-file-validate-type-D7LBD397.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-M4p4znH2.js → filepond-plugin-image-edit-CD_ps_ik.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-BmZUQ1qY.js → filepond-plugin-image-exif-orientation-6yimvoyt.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-DQeJbx48.js → filepond-plugin-image-preview-B9Co2A29.js} +1 -1
- package/dist/cjs/{gift-DbNivqYO.js → gift-CJ-3Yw_x.js} +2 -2
- package/dist/cjs/{gift-sharing-BE0uszUm.js → gift-sharing-CStz46FA.js} +2 -2
- package/dist/cjs/{index-B_5gLFr2.js → index-CS4z8Mi_.js} +112 -66
- package/dist/cjs/{intlTelInput-B5hswC8S.js → intlTelInput-C2d0ZWHY.js} +1 -1
- package/dist/cjs/{iphone-x-qC21wCLj.js → iphone-x-B683VspR.js} +2 -2
- 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 +10 -10
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +8 -8
- package/dist/cjs/salla-advertisement.cjs.entry.js +2 -2
- package/dist/cjs/salla-alert_2.cjs.entry.js +3 -3
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +2 -2
- package/dist/cjs/salla-apps-icons.cjs.entry.js +2 -2
- package/dist/cjs/salla-badge.cjs.entry.js +2 -2
- package/dist/cjs/salla-basket-gap.cjs.entry.js +2 -2
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +16 -16
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +21 -36
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +2 -2
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +5 -5
- package/dist/cjs/salla-cart-summary-card.cjs.entry.js +4 -1
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +2 -2
- package/dist/cjs/salla-comment-factors.cjs.entry.js +2 -2
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +15 -13
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +2 -2
- package/dist/cjs/salla-contacts.cjs.entry.js +2 -2
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +2 -2
- package/dist/cjs/{salla-count-down_2.cjs.entry.js → salla-count-down.cjs.entry.js} +2 -210
- package/dist/cjs/salla-custom-fields.cjs.entry.js +2 -2
- package/dist/cjs/salla-delivery-promise.cjs.entry.js +4 -1
- package/dist/cjs/salla-edit-order-button.cjs.entry.js +2 -2
- package/dist/cjs/salla-filters-widget.cjs.entry.js +2 -2
- package/dist/cjs/salla-filters.cjs.entry.js +2 -2
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +4 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +7 -7
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +2 -2
- package/dist/cjs/salla-installment.cjs.entry.js +2 -2
- package/dist/cjs/salla-list-tile.cjs.entry.js +2 -2
- package/dist/cjs/salla-localization-modal.cjs.entry.js +5 -2
- package/dist/cjs/salla-login-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-banner_10.cjs.entry.js +980 -0
- package/dist/cjs/salla-loyalty-exchange-product-card.cjs.entry.js +27 -0
- package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +7 -4
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty.cjs.entry.js +4 -4
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +4 -4
- package/dist/cjs/salla-map_2.cjs.entry.js +3 -3
- package/dist/cjs/salla-menu.cjs.entry.js +2 -2
- package/dist/cjs/salla-metadata.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/salla-next-order-coupon.cjs.entry.js +2 -2
- package/dist/cjs/salla-notification-item_2.cjs.entry.js +172 -0
- package/dist/cjs/salla-offer-modal.cjs.entry.js +6 -7
- package/dist/cjs/salla-offer.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-branch.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-cancel.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-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 +2 -2
- package/dist/cjs/salla-order-options-modal_2.cjs.entry.js +367 -0
- package/dist/cjs/salla-order-shipments.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-summary.cjs.entry.js +4 -4
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +2 -2
- package/dist/cjs/salla-orders.cjs.entry.js +5 -3
- package/dist/cjs/salla-payments.cjs.entry.js +2 -2
- package/dist/cjs/salla-placeholder.cjs.entry.js +2 -2
- package/dist/cjs/salla-price-range.cjs.entry.js +2 -2
- package/dist/cjs/salla-product-card-embed.cjs.entry.js +2 -2
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +2 -2
- package/dist/cjs/salla-products-list.cjs.entry.js +5 -3
- package/dist/cjs/salla-products-slider.cjs.entry.js +167 -0
- package/dist/cjs/salla-quick-order.cjs.entry.js +6 -6
- package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +2 -2
- package/dist/cjs/salla-rating-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-review-factors-tags.cjs.entry.js +2 -2
- package/dist/cjs/salla-scopes.cjs.entry.js +2 -2
- package/dist/cjs/salla-search.cjs.entry.js +2 -2
- package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/salla-slider.cjs.entry.js +2 -2
- package/dist/cjs/salla-social-share.cjs.entry.js +5 -5
- package/dist/cjs/salla-social.cjs.entry.js +2 -2
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +2 -2
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +2 -2
- package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/salla-trust-badges.cjs.entry.js +2 -2
- package/dist/cjs/salla-user-menu.cjs.entry.js +6 -6
- package/dist/cjs/salla-user-profile.cjs.entry.js +2 -2
- package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
- package/dist/cjs/salla-verify.cjs.entry.js +2 -2
- package/dist/cjs/salla-wallet.cjs.entry.js +5 -3
- package/dist/cjs/salla-wishlist-actions.cjs.entry.js +2 -2
- package/dist/cjs/{cart2-B98PSAFN.js → tag-BH5n_Nx3.js} +9 -2
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-DcX-oQDe.js → vanilla-picker-CU_KPkZ1.js} +1 -1
- package/dist/collection/collection-manifest.json +20 -0
- package/dist/collection/components/salla-accordion/salla-accordion.css +233 -0
- package/dist/collection/components/salla-add-product-button/salla-add-product-button.css +248 -1
- package/dist/collection/components/salla-advertisement/salla-advertisement.css +53 -2
- package/dist/collection/components/salla-alert/salla-alert.css +57 -2
- package/dist/collection/components/salla-app-install-alert/salla-app-install-alert.css +123 -2
- package/dist/collection/components/salla-apps-icons/salla-apps-icons.css +15 -2
- package/dist/collection/components/salla-badge/salla-badge.css +72 -0
- package/dist/collection/components/salla-basket-gap/salla-basket-gap.css +282 -2
- package/dist/collection/components/salla-booking-field/salla-booking-field.css +108 -2
- package/dist/collection/components/salla-bottom-alert/salla-bottom-alert.css +273 -2
- package/dist/collection/components/salla-bought-together/salla-bought-together.css +139 -2
- package/dist/collection/components/salla-breadcrumb/salla-breadcrumb.css +49 -2
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.css +1170 -5
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +13 -16
- package/dist/collection/components/salla-button/salla-button.css +681 -2
- package/dist/collection/components/salla-cart-coupons/salla-cart-coupons.css +344 -2
- package/dist/collection/components/salla-cart-item-offers/salla-cart-item-offers.css +108 -2
- package/dist/collection/components/salla-cart-summary/salla-cart-summary.css +43 -0
- package/dist/collection/components/salla-cart-summary-card/salla-cart-summary-card.css +308 -0
- package/dist/collection/components/salla-cart-summary-card/salla-cart-summary-card.js +10 -0
- package/dist/collection/components/salla-cashback-banner/salla-cashback-banner.css +39 -0
- package/dist/collection/components/salla-color-picker/salla-color-picker.css +48 -0
- package/dist/collection/components/salla-comment-form/salla-comment-form.css +94 -2
- package/dist/collection/components/salla-comments/salla-comments.css +626 -2
- package/dist/collection/components/salla-comments/salla-comments.js +2 -2
- package/dist/collection/components/salla-conditional-offer/salla-conditional-offer.css +293 -2
- package/dist/collection/components/salla-contacts/salla-contacts.css +105 -2
- package/dist/collection/components/salla-cookies-bar/salla-cookies-bar.css +91 -2
- package/dist/collection/components/salla-count-down/salla-count-down.css +395 -2
- package/dist/collection/components/salla-custom-fields/salla-custom-fields.css +86 -2
- package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.css +88 -2
- package/dist/collection/components/salla-delivery-promise/salla-delivery-promise.css +452 -0
- package/dist/collection/components/salla-delivery-promise/salla-delivery-promise.js +10 -0
- package/dist/collection/components/salla-drawer/salla-drawer.css +403 -0
- package/dist/collection/components/salla-edit-order-button/salla-edit-order-button.css +2 -2
- package/dist/collection/components/salla-file-upload/salla-file-upload.css +277 -2
- package/dist/collection/components/salla-filters/salla-filters.css +199 -2
- package/dist/collection/components/salla-filters-widget/salla-filters-widget.css +169 -2
- package/dist/collection/components/salla-fulfillment-methods/salla-fulfillment-methods.css +140 -0
- package/dist/collection/components/salla-fulfillment-methods/salla-fulfillment-methods.js +10 -0
- package/dist/collection/components/salla-gifting/salla-gifting.css +593 -2
- package/dist/collection/components/salla-infinite-scroll/salla-infinite-scroll.css +107 -2
- package/dist/collection/components/salla-installment/salla-installment.css +8 -2
- package/dist/collection/components/salla-list-tile/salla-list-tile.css +190 -0
- package/dist/collection/components/salla-loading/salla-loading.css +13 -2
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.css +170 -0
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +11 -1
- package/dist/collection/components/salla-login-modal/salla-login-modal.css +8 -2
- package/dist/collection/components/salla-loyalty/salla-loyalty.css +377 -0
- package/dist/collection/components/salla-loyalty-points-banner/salla-loyalty-points-banner.css +36 -0
- package/dist/collection/components/salla-loyalty-points-history/salla-loyalty-points-history.css +365 -0
- package/dist/collection/components/salla-loyalty-points-history/salla-loyalty-points-history.js +11 -1
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-program.css +1621 -2
- package/dist/collection/components/salla-maintenance-alert/salla-maintenance-alert.css +156 -2
- package/dist/collection/components/salla-map/salla-map.css +88 -2
- package/dist/collection/components/salla-menu/salla-menu.css +175 -2
- package/dist/collection/components/salla-metadata/salla-metadata.css +49 -0
- package/dist/collection/components/salla-modal/salla-modal.css +556 -2
- package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.css +342 -2
- package/dist/collection/components/salla-next-order-coupon/salla-next-order-coupon.css +190 -2
- package/dist/collection/components/salla-notifications/salla-notifications.css +217 -0
- package/dist/collection/components/salla-notifications/salla-notifications.js +2 -2
- package/dist/collection/components/salla-offer/salla-offer.css +961 -2
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.css +514 -2
- package/dist/collection/components/salla-order-branch/salla-order-branch.css +269 -2
- package/dist/collection/components/salla-order-cancel/salla-order-cancel.css +283 -2
- package/dist/collection/components/salla-order-details/salla-order-details.css +319 -0
- package/dist/collection/components/salla-order-edit/salla-order-edit.css +773 -2
- package/dist/collection/components/salla-order-options-modal/salla-order-options-modal.css +50 -2
- package/dist/collection/components/salla-order-shipments/salla-order-shipments.css +110 -2
- package/dist/collection/components/salla-order-summary/salla-order-summary.css +117 -2
- package/dist/collection/components/salla-order-totals-card/salla-order-totals-card.css +116 -2
- package/dist/collection/components/salla-orders/salla-orders.css +367 -2
- package/dist/collection/components/salla-orders/salla-orders.js +2 -2
- package/dist/collection/components/salla-payments/salla-payments.css +40 -2
- package/dist/collection/components/salla-placeholder/salla-placeholder.css +121 -0
- package/dist/collection/components/salla-price-range/salla-price-range.css +146 -2
- package/dist/collection/components/salla-product-availability/salla-product-availability.css +188 -2
- package/dist/collection/components/salla-product-card/salla-product-card.css +694 -2
- package/dist/collection/components/salla-product-card-embed/salla-product-card-embed.css +42 -2
- package/dist/collection/components/salla-product-options/salla-product-options.css +749 -0
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.css +105 -2
- package/dist/collection/components/salla-products-list/salla-products-list.css +286 -2
- package/dist/collection/components/salla-products-list/salla-products-list.js +2 -2
- package/dist/collection/components/salla-products-slider/salla-products-slider.css +48 -0
- package/dist/collection/components/salla-progress-bar/salla-progress-bar.css +53 -0
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.css +47 -2
- package/dist/collection/components/salla-quick-buy/salla-quick-buy.css +32 -2
- package/dist/collection/components/salla-quick-order/salla-quick-order.css +233 -1
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.css +540 -2
- package/dist/collection/components/salla-rating-stars/salla-rating-stars.css +91 -2
- package/dist/collection/components/salla-review-card/salla-review-card.css +213 -1
- package/dist/collection/components/salla-review-factors-tags/salla-review-factors-tags.css +45 -2
- package/dist/collection/components/salla-reviews/salla-reviews.css +378 -0
- package/dist/collection/components/salla-reviews-page/salla-reviews-page.css +124 -2
- package/dist/collection/components/salla-reviews-summary/salla-reviews-summary.css +118 -2
- package/dist/collection/components/salla-scopes/salla-scopes.css +299 -2
- package/dist/collection/components/salla-search/salla-search.css +298 -2
- package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.css +508 -0
- package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +14 -4
- package/dist/collection/components/salla-skeleton/salla-skeleton.css +31 -2
- package/dist/collection/components/salla-slider/salla-slider.css +749 -2
- package/dist/collection/components/salla-social/salla-social.css +31 -2
- package/dist/collection/components/salla-social-share/salla-social-share.css +56 -2
- package/dist/collection/components/salla-tabs/salla-tabs.css +233 -2
- package/dist/collection/components/salla-tel-input/salla-tel-input.css +82 -2
- package/dist/collection/components/salla-tiered-offer/salla-tiered-offer.css +305 -2
- package/dist/collection/components/salla-tooltip/salla-tooltip.css +10 -3
- package/dist/collection/components/salla-trust-badges/salla-trust-badges.css +36 -0
- package/dist/collection/components/salla-user-menu/salla-user-menu.css +395 -0
- package/dist/collection/components/salla-user-profile/salla-user-profile.css +79 -2
- package/dist/collection/components/salla-user-settings/salla-user-settings.css +299 -2
- package/dist/collection/components/salla-verify/salla-verify.css +226 -2
- package/dist/collection/components/salla-wallet/salla-wallet.css +333 -2
- package/dist/collection/components/salla-wallet/salla-wallet.js +2 -2
- package/dist/collection/components/salla-wishlist-actions/salla-wishlist-actions.css +88 -2
- package/dist/collection/global/app.js +60 -0
- package/dist/collection/global/app.ts +60 -0
- package/dist/collection/global/base-css.js +5 -0
- package/dist/collection/global/base-css.ts +2 -0
- package/dist/collection/plugins/build-base-css.js +43 -0
- package/dist/collection/plugins/css-coverage-check.js +363 -0
- package/dist/collection/plugins/tailwind-per-component.js +146 -0
- package/dist/collection/plugins/watch-utilities.js +22 -0
- package/dist/components/index.js +64 -2
- package/dist/components/salla-accordion2.js +1 -1
- package/dist/components/salla-add-product-button2.js +1 -1
- package/dist/components/salla-advertisement.js +1 -1
- package/dist/components/salla-alert.js +1 -1
- package/dist/components/salla-app-install-alert.js +1 -1
- package/dist/components/salla-apps-icons.js +1 -1
- package/dist/components/salla-badge2.js +1 -1
- package/dist/components/salla-basket-gap.js +1 -1
- package/dist/components/salla-booking-field2.js +1 -1
- package/dist/components/salla-bottom-alert.js +1 -1
- package/dist/components/salla-bought-together.js +1 -1
- package/dist/components/salla-breadcrumb.js +1 -1
- package/dist/components/salla-bullet-delivery.js +13 -31
- package/dist/components/salla-button2.js +1 -1
- package/dist/components/salla-cart-coupons.js +1 -1
- package/dist/components/salla-cart-item-offers.js +1 -1
- package/dist/components/salla-cart-summary-card.js +3 -0
- package/dist/components/salla-cart-summary.js +1 -1
- package/dist/components/salla-cashback-banner.js +1 -1
- package/dist/components/salla-color-picker2.js +1 -1
- package/dist/components/salla-comment-factors2.js +1 -1
- package/dist/components/salla-comment-form2.js +1 -1
- package/dist/components/salla-comment-item2.js +1 -1
- package/dist/components/salla-comments.js +4 -2
- package/dist/components/salla-conditional-offer.js +1 -1
- package/dist/components/salla-contacts.js +1 -1
- package/dist/components/salla-cookies-bar.js +1 -1
- package/dist/components/salla-count-down2.js +1 -1
- package/dist/components/salla-custom-fields.js +1 -1
- package/dist/components/salla-datetime-picker2.js +1 -1
- package/dist/components/salla-delivery-promise.js +3 -0
- package/dist/components/salla-drawer2.js +1 -1
- package/dist/components/salla-edit-order-button.js +1 -1
- package/dist/components/salla-file-upload2.js +1 -1
- package/dist/components/salla-filters-widget2.js +1 -1
- package/dist/components/salla-filters.js +1 -1
- package/dist/components/salla-fulfillment-methods.js +3 -0
- package/dist/components/salla-gifting.js +1 -1
- package/dist/components/salla-infinite-scroll.js +1 -1
- package/dist/components/salla-installment.js +1 -1
- package/dist/components/salla-list-tile2.js +1 -1
- package/dist/components/salla-loading2.js +1 -1
- package/dist/components/salla-localization-modal.js +4 -1
- package/dist/components/salla-login-modal2.js +1 -1
- package/dist/components/salla-loyalty-banner.js +1 -1
- package/dist/components/salla-loyalty-exchange-product-card2.js +1 -1
- package/dist/components/salla-loyalty-hero2.js +1 -1
- package/dist/components/salla-loyalty-panel.js +1 -1
- package/dist/components/salla-loyalty-point2.js +1 -1
- package/dist/components/salla-loyalty-points-banner.js +1 -1
- package/dist/components/salla-loyalty-points-history.js +4 -1
- package/dist/components/salla-loyalty-program.js +1 -1
- package/dist/components/salla-loyalty-reward.js +1 -1
- package/dist/components/salla-loyalty.js +1 -1
- package/dist/components/salla-maintenance-alert.js +1 -1
- package/dist/components/salla-map2.js +1 -1
- package/dist/components/salla-menu.js +1 -1
- package/dist/components/salla-metadata.js +1 -1
- package/dist/components/salla-modal2.js +1 -1
- package/dist/components/salla-multiple-bundle-product.js +1 -1
- package/dist/components/salla-next-order-coupon.js +1 -1
- package/dist/components/salla-notification-item2.js +1 -1
- package/dist/components/salla-notifications.js +4 -2
- package/dist/components/salla-offer-modal.js +1 -1
- package/dist/components/salla-offer.js +1 -1
- package/dist/components/salla-order-branch.js +1 -1
- package/dist/components/salla-order-cancel.js +1 -1
- package/dist/components/salla-order-details.js +1 -1
- package/dist/components/salla-order-edit.js +1 -1
- package/dist/components/salla-order-options-modal2.js +1 -1
- package/dist/components/salla-order-shipments.js +1 -1
- package/dist/components/salla-order-summary.js +1 -1
- package/dist/components/salla-order-totals-card.js +1 -1
- package/dist/components/salla-orders.js +4 -2
- package/dist/components/salla-payments.js +1 -1
- package/dist/components/salla-placeholder2.js +1 -1
- package/dist/components/salla-price-range2.js +1 -1
- package/dist/components/salla-product-availability2.js +1 -1
- package/dist/components/salla-product-card-embed.js +1 -1
- package/dist/components/salla-product-card2.js +1 -1
- package/dist/components/salla-product-options2.js +1 -1
- package/dist/components/salla-product-size-guide.js +1 -1
- package/dist/components/salla-products-list2.js +4 -2
- package/dist/components/salla-products-slider2.js +1 -1
- package/dist/components/salla-progress-bar2.js +1 -1
- package/dist/components/salla-quantity-input2.js +1 -1
- package/dist/components/salla-quick-buy2.js +1 -1
- package/dist/components/salla-quick-order.js +1 -1
- package/dist/components/salla-rating-modal-v22.js +1 -1
- package/dist/components/salla-rating-modal.js +1 -1
- package/dist/components/salla-rating-stars2.js +1 -1
- package/dist/components/salla-review-card2.js +1 -1
- package/dist/components/salla-review-factors-tags2.js +1 -1
- package/dist/components/salla-reviews-page.js +1 -1
- package/dist/components/salla-reviews-summary2.js +1 -1
- package/dist/components/salla-reviews.js +1 -1
- package/dist/components/salla-reward-action2.js +1 -1
- package/dist/components/salla-reward-card2.js +1 -1
- package/dist/components/salla-reward-details2.js +1 -1
- package/dist/components/salla-reward-exchange2.js +1 -1
- package/dist/components/salla-scopes.js +1 -1
- package/dist/components/salla-search.js +1 -1
- package/dist/components/salla-searchable-dropdown2.js +7 -4
- package/dist/components/salla-skeleton2.js +1 -1
- package/dist/components/salla-slider2.js +1 -1
- package/dist/components/salla-social-share2.js +1 -1
- package/dist/components/salla-social.js +1 -1
- package/dist/components/salla-tabs2.js +1 -1
- package/dist/components/salla-tel-input2.js +1 -1
- package/dist/components/salla-tiered-offer.js +1 -1
- package/dist/components/salla-tooltip2.js +1 -1
- package/dist/components/salla-trust-badges.js +1 -1
- package/dist/components/salla-user-menu.js +1 -1
- package/dist/components/salla-user-profile.js +1 -1
- package/dist/components/salla-user-settings.js +1 -1
- package/dist/components/salla-verify.js +1 -1
- package/dist/components/salla-wallet.js +4 -2
- package/dist/components/salla-wishlist-actions.js +1 -1
- package/dist/esm/{cancel-8Tsmrwno.js → cancel-BsLF_HK7.js} +2 -2
- package/dist/esm/{check-BZp0rKEO.js → check-BsXh13x8.js} +2 -2
- package/dist/esm/{filepond-Co-IypIA.js → filepond-DPHK5C54.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-CoRXw3k-.js → filepond-plugin-file-poster-d3QMLqXZ.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-CGJ0QOyy.js → filepond-plugin-file-validate-size-ddyhZs41.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-DDAxGYz8.js → filepond-plugin-file-validate-type-CJvnicil.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-BTbI51S8.js → filepond-plugin-image-edit-CkhsRCAn.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-C0VSH5eq.js → filepond-plugin-image-exif-orientation-DuQyWmiv.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-DZbIdviE.js → filepond-plugin-image-preview-D7QjrK0d.js} +1 -1
- package/dist/esm/{gift-CXRKXFgT.js → gift-BChI23pG.js} +2 -2
- package/dist/esm/{gift-sharing-0-eTJXSD.js → gift-sharing-DxkgAGoT.js} +2 -2
- package/dist/esm/{index-BICKbbaT.js → index-B8_UK_fg.js} +112 -66
- package/dist/esm/{intlTelInput-CcU6kFYO.js → intlTelInput-B9yY2tRj.js} +1 -1
- package/dist/esm/{iphone-x-CciN5Q_x.js → iphone-x-Z7udRKSZ.js} +2 -2
- 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 +10 -10
- package/dist/esm/salla-add-product-button_5.entry.js +8 -8
- package/dist/esm/salla-advertisement.entry.js +2 -2
- package/dist/esm/salla-alert_2.entry.js +3 -3
- package/dist/esm/salla-app-install-alert.entry.js +2 -2
- package/dist/esm/salla-apps-icons.entry.js +2 -2
- package/dist/esm/salla-badge.entry.js +2 -2
- package/dist/esm/salla-basket-gap.entry.js +2 -2
- package/dist/esm/salla-booking-field_7.entry.js +16 -16
- package/dist/esm/salla-bullet-delivery_2.entry.js +21 -36
- package/dist/esm/salla-cart-coupons.entry.js +2 -2
- package/dist/esm/salla-cart-item-offers_2.entry.js +5 -5
- package/dist/esm/salla-cart-summary-card.entry.js +4 -1
- package/dist/esm/salla-cashback-banner.entry.js +2 -2
- package/dist/esm/salla-comment-factors.entry.js +2 -2
- package/dist/esm/salla-comment-form_8.entry.js +15 -13
- package/dist/esm/salla-conditional-offer.entry.js +2 -2
- package/dist/esm/salla-contacts.entry.js +2 -2
- package/dist/esm/salla-cookies-bar.entry.js +2 -2
- package/dist/esm/{salla-count-down_2.entry.js → salla-count-down.entry.js} +3 -210
- package/dist/esm/salla-custom-fields.entry.js +2 -2
- package/dist/esm/salla-delivery-promise.entry.js +4 -1
- package/dist/esm/salla-edit-order-button.entry.js +2 -2
- package/dist/esm/salla-filters-widget.entry.js +2 -2
- package/dist/esm/salla-filters.entry.js +2 -2
- package/dist/esm/salla-fulfillment-methods.entry.js +4 -1
- package/dist/esm/salla-gifting.entry.js +7 -7
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +2 -2
- package/dist/esm/salla-installment.entry.js +2 -2
- package/dist/esm/salla-list-tile.entry.js +2 -2
- package/dist/esm/salla-localization-modal.entry.js +5 -2
- package/dist/esm/salla-login-modal.entry.js +2 -2
- package/dist/esm/salla-loyalty-banner_10.entry.js +969 -0
- package/dist/esm/salla-loyalty-exchange-product-card.entry.js +25 -0
- package/dist/esm/salla-loyalty-points-banner.entry.js +2 -2
- package/dist/esm/salla-loyalty-points-history.entry.js +7 -4
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty.entry.js +4 -4
- package/dist/esm/salla-maintenance-alert.entry.js +4 -4
- package/dist/esm/salla-map_2.entry.js +3 -3
- package/dist/esm/salla-menu.entry.js +2 -2
- package/dist/esm/salla-metadata.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/salla-next-order-coupon.entry.js +2 -2
- package/dist/esm/salla-notification-item_2.entry.js +169 -0
- package/dist/esm/salla-offer-modal.entry.js +6 -7
- package/dist/esm/salla-offer.entry.js +2 -2
- package/dist/esm/salla-order-branch.entry.js +2 -2
- package/dist/esm/salla-order-cancel.entry.js +2 -2
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +2 -2
- package/dist/esm/salla-order-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 +2 -2
- package/dist/esm/salla-order-options-modal_2.entry.js +364 -0
- package/dist/esm/salla-order-shipments.entry.js +2 -2
- package/dist/esm/salla-order-summary.entry.js +4 -4
- package/dist/esm/salla-order-totals-card.entry.js +2 -2
- package/dist/esm/salla-orders.entry.js +5 -3
- package/dist/esm/salla-payments.entry.js +2 -2
- package/dist/esm/salla-placeholder.entry.js +2 -2
- package/dist/esm/salla-price-range.entry.js +2 -2
- package/dist/esm/salla-product-card-embed.entry.js +2 -2
- package/dist/esm/salla-product-size-guide.entry.js +2 -2
- package/dist/esm/salla-products-list.entry.js +5 -3
- package/dist/esm/salla-products-slider.entry.js +165 -0
- package/dist/esm/salla-quick-order.entry.js +6 -6
- package/dist/esm/salla-rating-modal-v2.entry.js +2 -2
- package/dist/esm/salla-rating-modal.entry.js +2 -2
- package/dist/esm/salla-review-factors-tags.entry.js +2 -2
- package/dist/esm/salla-scopes.entry.js +2 -2
- package/dist/esm/salla-search.entry.js +2 -2
- package/dist/esm/salla-skeleton.entry.js +2 -2
- package/dist/esm/salla-slider.entry.js +2 -2
- package/dist/esm/salla-social-share.entry.js +5 -5
- package/dist/esm/salla-social.entry.js +2 -2
- package/dist/esm/salla-tab-content_3.entry.js +2 -2
- package/dist/esm/salla-tiered-offer.entry.js +2 -2
- package/dist/esm/salla-tooltip.entry.js +2 -2
- package/dist/esm/salla-trust-badges.entry.js +2 -2
- package/dist/esm/salla-user-menu.entry.js +6 -6
- package/dist/esm/salla-user-profile.entry.js +2 -2
- package/dist/esm/salla-user-settings.entry.js +2 -2
- package/dist/esm/salla-verify.entry.js +2 -2
- package/dist/esm/salla-wallet.entry.js +5 -3
- package/dist/esm/salla-wishlist-actions.entry.js +2 -2
- package/dist/esm/{cart2-D1s2kXqL.js → tag-DRvZV5oe.js} +8 -2
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-ZYaCOUKK.js → vanilla-picker-BSz2-wvu.js} +1 -1
- package/dist/twilight/global/app.ts +60 -0
- package/dist/twilight/global/base-css.ts +2 -0
- package/dist/twilight/p-00ce360c.entry.js +4 -0
- package/dist/twilight/p-02bbd257.entry.js +4 -0
- package/dist/twilight/p-05055aa6.entry.js +4 -0
- package/dist/twilight/{p-54f5ab92.entry.js → p-054f3d0b.entry.js} +1 -1
- package/dist/twilight/{p-BBYplmag.js → p-0_ExyxPG.js} +1 -1
- package/dist/twilight/p-0b2c0f48.entry.js +4 -0
- package/dist/twilight/p-0dca6c20.entry.js +4 -0
- package/dist/twilight/{p-e8d773b2.entry.js → p-0ea80795.entry.js} +1 -1
- package/dist/twilight/{p-3be661be.entry.js → p-0f23ae67.entry.js} +1 -1
- package/dist/twilight/p-15edaa75.entry.js +4 -0
- package/dist/twilight/p-16d9d755.entry.js +4 -0
- package/dist/twilight/p-1a7af76b.entry.js +4 -0
- package/dist/twilight/{p-eb1bdbee.entry.js → p-1dfa3b27.entry.js} +1 -1
- package/dist/twilight/p-249fb9a3.entry.js +4 -0
- package/dist/twilight/p-25d06ec0.entry.js +4 -0
- package/dist/twilight/p-2b70199f.entry.js +4 -0
- package/dist/twilight/p-2f3d4e4e.entry.js +4 -0
- package/dist/twilight/p-306890a8.entry.js +4 -0
- package/dist/twilight/p-314aaef4.entry.js +4 -0
- package/dist/twilight/p-361ceb35.entry.js +4 -0
- package/dist/twilight/p-37bf885e.entry.js +4 -0
- package/dist/twilight/{p-99b6543b.entry.js → p-3a1c360f.entry.js} +1 -1
- package/dist/twilight/p-3aaa53c0.entry.js +4 -0
- package/dist/twilight/p-3b5cc06e.entry.js +4 -0
- package/dist/twilight/p-3c98087c.entry.js +4 -0
- package/dist/twilight/p-3d511460.entry.js +4 -0
- package/dist/twilight/p-3eb3acd1.entry.js +4 -0
- package/dist/twilight/p-4207c1a3.entry.js +4 -0
- package/dist/twilight/{p-15f20a28.entry.js → p-45413551.entry.js} +1 -1
- package/dist/twilight/{p-5d14a4ee.entry.js → p-45cae5c6.entry.js} +1 -1
- package/dist/twilight/p-4e76cc16.entry.js +4 -0
- package/dist/twilight/{p-a5d54ce0.entry.js → p-50a22b2c.entry.js} +1 -1
- package/dist/twilight/p-526a826c.entry.js +4 -0
- package/dist/twilight/{p-149e1143.entry.js → p-563eb741.entry.js} +1 -1
- package/dist/twilight/p-5684d0f8.entry.js +4 -0
- package/dist/twilight/p-5690d7cd.entry.js +4 -0
- package/dist/twilight/{p-b8980a7c.entry.js → p-56d5e4c7.entry.js} +38 -38
- package/dist/twilight/{p-24cb77eb.entry.js → p-5a473895.entry.js} +1 -1
- package/dist/twilight/p-5a893b7d.entry.js +4 -0
- package/dist/twilight/p-5b78ff50.entry.js +4 -0
- package/dist/twilight/p-5bf27714.entry.js +4 -0
- package/dist/twilight/p-63cae95d.entry.js +4 -0
- package/dist/twilight/p-68f2e246.entry.js +4 -0
- package/dist/twilight/p-69c3b48c.entry.js +4 -0
- package/dist/twilight/p-6dde9e14.entry.js +4 -0
- package/dist/twilight/p-73cd41fa.entry.js +4 -0
- package/dist/twilight/{p-036f67e4.entry.js → p-7591fcad.entry.js} +1 -1
- package/dist/twilight/p-78b7cb89.entry.js +4 -0
- package/dist/twilight/p-78c4d093.entry.js +4 -0
- package/dist/twilight/{p-2ac47b6b.entry.js → p-837ebad8.entry.js} +1 -1
- package/dist/twilight/p-84a2bf28.entry.js +4 -0
- package/dist/twilight/p-85345231.entry.js +4 -0
- package/dist/twilight/{p-c1caae26.entry.js → p-86a361e4.entry.js} +1 -1
- package/dist/twilight/{p-e24e104a.entry.js → p-8bf0cc70.entry.js} +1 -1
- package/dist/twilight/p-933a4956.entry.js +4 -0
- package/dist/twilight/p-9830acfc.entry.js +4 -0
- package/dist/twilight/{p-710a3ce8.entry.js → p-99b70539.entry.js} +1 -1
- package/dist/twilight/p-9be6697f.entry.js +4 -0
- package/dist/twilight/p-9dfaa3ed.entry.js +4 -0
- package/dist/twilight/{p-BICKbbaT.js → p-B8_UK_fg.js} +2 -2
- package/dist/twilight/{p-CnydhXLD.js → p-BCXr9HaJ.js} +2 -2
- package/dist/twilight/{p-CXRKXFgT.js → p-BChI23pG.js} +1 -1
- package/dist/twilight/{p-DGAX-mOJ.js → p-BWIa_6im.js} +2 -2
- package/dist/twilight/{p-8Tsmrwno.js → p-BsLF_HK7.js} +1 -1
- package/dist/twilight/{p-BZp0rKEO.js → p-BsXh13x8.js} +1 -1
- package/dist/twilight/{p-gy7RAvBD.js → p-C6ayRPtn.js} +1 -1
- package/dist/twilight/{p-BqKKpKiZ.js → p-D6fzhuhC.js} +1 -1
- package/dist/twilight/{p-CH2gmG7u.js → p-DDGtN95g.js} +1 -1
- package/dist/twilight/{p-Dbba1-no.js → p-DIjxGw7w.js} +1 -1
- package/dist/twilight/{p-D1s2kXqL.js → p-DRvZV5oe.js} +1 -1
- package/dist/twilight/{p-DwA0FvNE.js → p-DaamyJSZ.js} +1 -1
- package/dist/twilight/{p-0-eTJXSD.js → p-DxkgAGoT.js} +1 -1
- package/dist/twilight/{p-CciN5Q_x.js → p-Z7udRKSZ.js} +1 -1
- package/dist/twilight/p-a337f80b.entry.js +4 -0
- package/dist/twilight/p-a667842e.entry.js +4 -0
- package/dist/twilight/{p-3c52b097.entry.js → p-a741ac5e.entry.js} +1 -1
- package/dist/twilight/p-a768e51b.entry.js +4 -0
- package/dist/twilight/{p-8ea78b6a.entry.js → p-ae05ee76.entry.js} +1 -1
- package/dist/twilight/p-af34df62.entry.js +4 -0
- package/dist/twilight/p-b078ccc9.entry.js +4 -0
- package/dist/twilight/p-b3e8b4d9.entry.js +4 -0
- package/dist/twilight/p-b4418299.entry.js +4 -0
- package/dist/twilight/p-bf58de87.entry.js +4 -0
- package/dist/twilight/p-c22173bf.entry.js +4 -0
- package/dist/twilight/{p-b10e56fd.entry.js → p-c3c48232.entry.js} +1 -1
- package/dist/twilight/{p-064d4340.entry.js → p-c4362957.entry.js} +1 -1
- package/dist/twilight/p-cd1d84e9.entry.js +4 -0
- package/dist/twilight/p-cde03bb7.entry.js +4 -0
- package/dist/twilight/{p-3ff03500.entry.js → p-d176de00.entry.js} +1 -1
- package/dist/twilight/p-d1e84f6b.entry.js +4 -0
- package/dist/twilight/p-d3eebc36.entry.js +4 -0
- package/dist/twilight/p-d5f63b95.entry.js +4 -0
- package/dist/twilight/p-d7392ff8.entry.js +4 -0
- package/dist/twilight/p-d9e7120d.entry.js +4 -0
- package/dist/twilight/{p-45199451.entry.js → p-da4b3ba6.entry.js} +1 -1
- package/dist/twilight/p-da7ae476.entry.js +4 -0
- package/dist/twilight/p-dbe69b54.entry.js +4 -0
- package/dist/twilight/p-dd24b858.entry.js +4 -0
- package/dist/twilight/p-e0e7454d.entry.js +4 -0
- package/dist/twilight/p-e491102e.entry.js +4 -0
- package/dist/twilight/p-eb6ef0b8.entry.js +4 -0
- package/dist/twilight/p-ed5031aa.entry.js +4 -0
- package/dist/twilight/{p-b4a173be.entry.js → p-f2bbeed7.entry.js} +1 -1
- package/dist/twilight/{p-56f180b1.entry.js → p-f663b4a4.entry.js} +1 -1
- package/dist/twilight/p-fb97a82d.entry.js +4 -0
- package/dist/twilight/p-fdbdc8f3.entry.js +4 -0
- package/dist/twilight/{p-BMmR9fBv.js → p-nuG4txey.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-bullet-delivery/interfaces.d.ts +1 -0
- package/dist/types/components/salla-loyalty-program/interfaces.d.ts +1 -1
- package/dist/types/global/base-css.d.ts +1 -0
- package/package.json +8 -7
- package/dist/cjs/functions-BbsKJYTv.js +0 -102
- package/dist/cjs/percentage-Fs83gq6Q.js +0 -21
- package/dist/cjs/salla-loyalty-banner.cjs.entry.js +0 -67
- package/dist/cjs/salla-loyalty-exchange-product-card_5.cjs.entry.js +0 -305
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +0 -255
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +0 -104
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +0 -134
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +0 -54
- package/dist/cjs/salla-notification-item.cjs.entry.js +0 -20
- package/dist/cjs/salla-notifications.cjs.entry.js +0 -157
- package/dist/cjs/salla-product-card_2.cjs.entry.js +0 -319
- package/dist/cjs/shipping-CPYcgyCL.js +0 -13
- package/dist/cjs/tag-D-PcUR33.js +0 -12
- package/dist/cjs/tracked-promise-FYMkib0n.js +0 -31
- package/dist/cjs/user-add-BCGrddZS.js +0 -13
- package/dist/esm/functions-DBwN_PnC.js +0 -95
- package/dist/esm/percentage-Bs6JxDkg.js +0 -18
- package/dist/esm/salla-loyalty-banner.entry.js +0 -65
- package/dist/esm/salla-loyalty-exchange-product-card_5.entry.js +0 -299
- package/dist/esm/salla-loyalty-hero_2.entry.js +0 -252
- package/dist/esm/salla-loyalty-panel.entry.js +0 -102
- package/dist/esm/salla-loyalty-program.entry.js +0 -132
- package/dist/esm/salla-loyalty-reward.entry.js +0 -52
- package/dist/esm/salla-notification-item.entry.js +0 -18
- package/dist/esm/salla-notifications.entry.js +0 -155
- package/dist/esm/salla-product-card_2.entry.js +0 -316
- package/dist/esm/shipping-CZRcMGA9.js +0 -11
- package/dist/esm/tag-cgSL_BIo.js +0 -10
- package/dist/esm/tracked-promise-BGUdJ_Y7.js +0 -29
- package/dist/esm/user-add-QpH8MU22.js +0 -11
- package/dist/twilight/p-035e0ede.entry.js +0 -4
- package/dist/twilight/p-0a34505a.entry.js +0 -4
- package/dist/twilight/p-123ea3ce.entry.js +0 -4
- package/dist/twilight/p-169db5a8.entry.js +0 -4
- package/dist/twilight/p-182271b9.entry.js +0 -4
- package/dist/twilight/p-1d6e569d.entry.js +0 -4
- package/dist/twilight/p-21eef21b.entry.js +0 -4
- package/dist/twilight/p-22da89fa.entry.js +0 -4
- package/dist/twilight/p-23e937b6.entry.js +0 -4
- package/dist/twilight/p-2b07007d.entry.js +0 -4
- package/dist/twilight/p-2bf03b63.entry.js +0 -4
- package/dist/twilight/p-2c78a0ef.entry.js +0 -4
- package/dist/twilight/p-30660cd8.entry.js +0 -4
- package/dist/twilight/p-34ed76ac.entry.js +0 -4
- package/dist/twilight/p-3eb13818.entry.js +0 -4
- package/dist/twilight/p-3ff42b07.entry.js +0 -4
- package/dist/twilight/p-44a81e6e.entry.js +0 -4
- package/dist/twilight/p-44b0d992.entry.js +0 -4
- package/dist/twilight/p-45982933.entry.js +0 -4
- package/dist/twilight/p-45b975c2.entry.js +0 -4
- package/dist/twilight/p-492415ef.entry.js +0 -4
- package/dist/twilight/p-4c9e1e69.entry.js +0 -4
- package/dist/twilight/p-4f75de82.entry.js +0 -4
- package/dist/twilight/p-4ffb3087.entry.js +0 -4
- package/dist/twilight/p-598c5098.entry.js +0 -4
- package/dist/twilight/p-5c333767.entry.js +0 -4
- package/dist/twilight/p-5c452062.entry.js +0 -4
- package/dist/twilight/p-60901520.entry.js +0 -4
- package/dist/twilight/p-649e1e03.entry.js +0 -4
- package/dist/twilight/p-670e6462.entry.js +0 -4
- package/dist/twilight/p-6a814b15.entry.js +0 -4
- package/dist/twilight/p-6def828f.entry.js +0 -4
- package/dist/twilight/p-70e3120c.entry.js +0 -4
- package/dist/twilight/p-74d7660d.entry.js +0 -4
- package/dist/twilight/p-7518b9d3.entry.js +0 -4
- package/dist/twilight/p-8638175a.entry.js +0 -4
- package/dist/twilight/p-8ea18b13.entry.js +0 -4
- package/dist/twilight/p-95ef5ed3.entry.js +0 -4
- package/dist/twilight/p-9c98fca1.entry.js +0 -4
- package/dist/twilight/p-9ee5b0f7.entry.js +0 -4
- package/dist/twilight/p-BgfpunEY.js +0 -4
- package/dist/twilight/p-Bs6JxDkg.js +0 -4
- package/dist/twilight/p-CZRcMGA9.js +0 -4
- package/dist/twilight/p-QpH8MU22.js +0 -4
- package/dist/twilight/p-a0a248bd.entry.js +0 -4
- package/dist/twilight/p-a0cf8839.entry.js +0 -4
- package/dist/twilight/p-a665082c.entry.js +0 -4
- package/dist/twilight/p-abe7ac70.entry.js +0 -4
- package/dist/twilight/p-ad38c3e0.entry.js +0 -4
- package/dist/twilight/p-adf1ebf6.entry.js +0 -4
- package/dist/twilight/p-aec408ec.entry.js +0 -4
- package/dist/twilight/p-afa12e38.entry.js +0 -4
- package/dist/twilight/p-b17da4d5.entry.js +0 -4
- package/dist/twilight/p-b5ca8b9f.entry.js +0 -4
- package/dist/twilight/p-b5cc3e95.entry.js +0 -4
- package/dist/twilight/p-b725b869.entry.js +0 -4
- package/dist/twilight/p-bba004e0.entry.js +0 -4
- package/dist/twilight/p-bcef7f80.entry.js +0 -4
- package/dist/twilight/p-bdc23bcf.entry.js +0 -4
- package/dist/twilight/p-bfdb98db.entry.js +0 -4
- package/dist/twilight/p-c139be2a.entry.js +0 -4
- package/dist/twilight/p-c47486be.entry.js +0 -4
- package/dist/twilight/p-c861e9f8.entry.js +0 -4
- package/dist/twilight/p-cc6eb9fd.entry.js +0 -4
- package/dist/twilight/p-cdb0d7fb.entry.js +0 -4
- package/dist/twilight/p-cdc3ac03.entry.js +0 -4
- package/dist/twilight/p-cgSL_BIo.js +0 -4
- package/dist/twilight/p-d6941dc6.entry.js +0 -4
- package/dist/twilight/p-dd6ec724.entry.js +0 -4
- package/dist/twilight/p-ddabd5f2.entry.js +0 -4
- package/dist/twilight/p-e7a1f0c1.entry.js +0 -4
- package/dist/twilight/p-eafff38c.entry.js +0 -4
- package/dist/twilight/p-efccc05e.entry.js +0 -4
- package/dist/twilight/p-faec58b8.entry.js +0 -4
- package/dist/twilight/p-fdbe9913.entry.js +0 -4
- package/dist/twilight/p-fde5aae7.entry.js +0 -4
- package/dist/twilight/p-g9J0grSR.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import{r as e,h as t,H as s}from"./p-BICKbbaT.js";const i=class{constructor(t){e(this,t),this.otpInputs=[],this.deletePendingDays=null,this.currentStep="confirm",this.isDeletePending=!1,this.otpType="email",this.otpHasError=!1,this.otpErrorMessage="",this.isSubmitting=!1,this.isVerifyingOtp=!1,this.isSwitchingChannel=!1,this.resendAfter=30,this.showResendLink=!1,this.canHideName=salla.config.get("store.settings.rating.can_customer_hide_name"),this.translationDefaults={"pages.profile.delete_account":{ar:"حذف الحساب",en:"Delete account"},"pages.profile.delete_account_description":{ar:"سيُحذف حسابك وبياناتك من المتجر نهائيًا، بما في ذلك سجل طلباتك.",en:"Your account and data will be permanently deleted from the store, including your order history."},"pages.profile.delete_account_confirm_title":{ar:"هل تريد حذف حسابك؟",en:"Do you want to delete your account?"},"pages.profile.delete_account_warning":{ar:"بعد الحذف، ستفقد الوصول إلى بياناتك، بما في ذلك سجل الطلبات، وقائمة الأمنيات، وأي نقاط ولاء أو رصيد متاح في المحفظة.",en:"After deletion, you will lose access to your data, including order history, wishlist, and any loyalty points or wallet balance."},"pages.profile.cancel":{ar:"إلغاء",en:"Cancel"},"pages.profile.delete_account_otp_title":{ar:"تأكيد حذف الحساب",en:"Confirm account deletion"},"pages.profile.delete_account_otp_instruction":{ar:"للمتابعة، أدخل رمز التحقٌّق المرسل إلى:",en:"To continue, enter the verification code sent to:"},"pages.profile.delete_account_confirm_otp":{ar:"تأكيد الحذف",en:"Confirm deletion"},"pages.profile.delete_account_otp_required":{ar:"يرجى إدخال رمز التحقٌّق",en:"Please enter the verification code"},"pages.profile.delete_account_send_via_phone":{ar:"إرسال عبر الهاتف",en:"Send via phone"},"pages.profile.delete_account_send_via_email":{ar:"إرسال عبر البريد الإلكتروني",en:"Send via email"},"pages.profile.delete_account_success_title":{ar:"أُرسل طلب حذف الحساب",en:"Account deletion request submitted"},"pages.profile.delete_account_success_message":{ar:"سيُحذف حسابك خلال 30 يومًا. يمكنك إلغاء الطلب بتسجيل الدخول مرة أخرى قبل اكتمال الحذف.",en:"Your account will be deleted within 30 days. You can cancel the request by signing in again before deletion is complete."},"pages.profile.ok":{ar:"موافق",en:"OK"},"pages.profile.cancel_deletion_request":{ar:"تراجع عن الحذف",en:"Withdraw deletion"},"pages.profile.delete_account_pending":{ar:"حسابك مجدول للحذف نهائيًا من المتجر خلال :days يومًا. يمكنك التراجع عن الحذف قبل انقضاء المدة.",en:"Your account will be deleted permanently from the store within :days days. You can withdraw the deletion before the deadline."},"pages.profile.delete_request_cancelled":{ar:"تم إلغاء طلب الحذف",en:"Deletion request cancelled"}},this.registerTranslationDefaults(),this.loadTranslations(),salla.onReady((()=>{this.isHiddenName=salla.config.get("user.is_hidden_name"),this.isNotifiable=salla.config.get("user.is_notifiable"),this.canHideName=salla.config.get("store.settings.rating.can_customer_hide_name"),this.fetchDeleteRequestStatus(),this.isNotifiable&&this.isHiddenName||salla.event.on("profile::info.fetched",(e=>{this.isHiddenName=e.data.is_hidden_name,this.isNotifiable=e.data.is_notifiable}))})),salla.lang.onLoaded((()=>{this.registerTranslationDefaults(),this.loadTranslations()}))}getDaysUntilExecution(e){return Math.max(0,Math.ceil(((e>1e12?e:1e3*e)-Date.now())/864e5))}applyPendingMessage(){const e=salla.lang.get("pages.profile.delete_account_pending");this.deleteAccountPending=null!=this.deletePendingDays?e.replace(/:days/g,String(salla.helpers.number(this.deletePendingDays))):e}async fetchDeleteRequestStatus(){try{const e=await salla.profile.getDeleteRequest(),t=e?.data??null,s=t?.data_request||t,i=s?.status;this.isDeletePending="pending"===i;const a=s?.execution_at;this.deletePendingDays=null==a||Number.isNaN(Number(a))?null:this.getDaysUntilExecution(Number(a)),this.applyPendingMessage()}catch{}}registerTranslationDefaults(){if(!salla?.lang?.addBulk)return;const e=Object.entries(this.translationDefaults).reduce(((e,[t,s])=>(salla.lang.get(t)===t&&(e[t]=s),e)),{});Object.keys(e).length&&salla.lang.addBulk(e)}loadTranslations(){this.deleteAccount=salla.lang.get("pages.profile.delete_account"),this.deleteAccountDesc=salla.lang.get("pages.profile.delete_account_description"),this.deleteConfirmTitle=salla.lang.get("pages.profile.delete_account_confirm_title"),this.deleteAccountWarning=salla.lang.get("pages.profile.delete_account_warning"),this.cancelLabel=salla.lang.get("pages.profile.cancel"),this.deleteOtpTitle=salla.lang.get("pages.profile.delete_account_otp_title"),this.deleteOtpInstruction=salla.lang.get("pages.profile.delete_account_otp_instruction"),this.deleteConfirmOtp=salla.lang.get("pages.profile.delete_account_confirm_otp"),this.sendViaPhone=salla.lang.get("pages.profile.delete_account_send_via_phone"),this.sendViaEmail=salla.lang.get("pages.profile.delete_account_send_via_email"),this.deleteSuccessTitle=salla.lang.get("pages.profile.delete_account_success_title"),this.deleteSuccessMessage=salla.lang.get("pages.profile.delete_account_success_message"),this.okLabel=salla.lang.get("pages.profile.ok"),this.cancelDeletionRequest=salla.lang.get("pages.profile.cancel_deletion_request"),this.applyPendingMessage(),this.resendAfterLabel=salla.lang.get("blocks.header.resend_after"),this.resendLabel=salla.lang.get("blocks.comments.submit"),this.promotionalMsgs=salla.lang.get("pages.profile.promotional_messages"),this.hideMyName=salla.lang.get("pages.profile.hide_my_name"),this.hideMyNameDesc=salla.lang.get("pages.profile.hide_my_name_desc"),this.promotionalMsgsDesc=salla.lang.get("pages.profile.promotional_messages_description")}toggleSetting(e,t){salla.profile.updateSettings({name:e,value:t.target.checked})}capitalizeText(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}getOtpTarget(){return"email"===this.otpType?salla.config.get("user.email")||"":salla.config.get("user.mobile")||""}updateModalForStep(){if(this.confirmationModal)switch(this.currentStep){case"confirm":this.confirmationModal.setTitle(this.capitalizeText(this.deleteConfirmTitle));break;case"otp":this.confirmationModal.setTitle(this.capitalizeText(this.deleteOtpTitle));break;case"success":this.confirmationModal.setTitle(this.capitalizeText(this.deleteSuccessTitle))}}openDeleteModal(){this.currentStep="confirm",this.otpType="email",this.resetOtpInputs(),this.clearResendTimer(),this.updateModalForStep(),this.confirmationModal.open()}closeDeleteModal(){this.clearResendTimer(),this.confirmationModal?.close()}goBackFromOtp(){this.clearResendTimer(),this.resetOtpInputs(),this.resetOtpError(),this.currentStep="confirm",this.updateModalForStep()}async handleModalVisibilityChanged(e){if(e.detail)return;this.clearResendTimer();const t="success"===this.currentStep;t&&(this.isDeletePending=!0),this.currentStep="confirm",this.resetOtpInputs(),t&&await this.fetchDeleteRequestStatus()}formatResendTimer(e){return"00 : "+(e>=10?`${e}`:`0${e}`)}updateResendTimerDisplay(){this.timerEl&&(this.timerEl.innerHTML=this.formatResendTimer(this.resendAfter))}isDeleteRequestInFlight(){return this.isSubmitting||this.isSwitchingChannel||this.isVerifyingOtp}async initiateDeleteRequest(e="confirm"){if(!this.isDeleteRequestInFlight()){"switch"===e||"resend"===e?this.isSwitchingChannel=!0:this.isSubmitting=!0;try{await salla.profile.initiateDeleteRequest(this.otpType),this.currentStep="otp",this.updateModalForStep(),this.resetOtpInputs(),this.startResendTimer(),setTimeout((()=>this.otpInputs[0]?.focus()),100)}catch(e){salla.notify?.error?.(e.response?.data?.error?.message||salla.lang.get("common.errors.error_occurred"))}finally{"switch"===e||"resend"===e?this.isSwitchingChannel=!1:this.isSubmitting=!1}}}async switchOtpChannel(){this.isDeleteRequestInFlight()||(this.otpType="email"===this.otpType?"mobile":"email",await this.initiateDeleteRequest("switch"))}async resendOtp(){this.showResendLink&&!this.isDeleteRequestInFlight()&&await this.initiateDeleteRequest("resend")}collectOtpCode(){const e=salla.helpers.number(this.otpInputs.map((e=>e?.value||"")).join(""),!0).replace(/[^0-9]/g,"");return this.hiddenCodeInput&&(this.hiddenCodeInput.value=e),e}resetOtpError(){this.otpHasError=!1,this.otpErrorMessage=""}setOtpError(e){this.otpHasError=!0,this.otpErrorMessage=e}async verifyDeleteOtp(){if(this.isVerifyingOtp||this.isSwitchingChannel)return;const e=this.collectOtpCode();if(e.length<4)return this.setOtpError(salla.lang.get("pages.profile.delete_account_otp_required")),void this.otpInputs[e.length]?.focus();this.resetOtpError(),this.isVerifyingOtp=!0;try{const t=await salla.profile.verifyDeleteRequest({type:this.otpType,code:e});this.deleteSuccessMessage=t?.data?.message||salla.lang.get("pages.profile.delete_account_success_message"),this.clearResendTimer(),this.resetOtpInputs(),this.otpInputs=[],this.currentStep="success",this.updateModalForStep()}catch(e){this.setOtpError(e.response?.data?.error?.message||salla.lang.get("common.errors.error_occurred")),this.resetOtpInputs()}finally{this.isVerifyingOtp=!1}}async confirmSuccess(){this.isDeletePending=!0,this.closeDeleteModal(),this.currentStep="confirm",await this.fetchDeleteRequestStatus()}async cancelDeleteRequest(){if(!this.isSubmitting){this.isSubmitting=!0;try{const e=(await salla.profile.cancelDeleteRequest()).message||salla.lang.get("pages.profile.delete_request_cancelled");this.isDeletePending=!1,salla.notify?.success?.(e)}catch(e){salla.notify?.error?.(e.response?.data?.error?.message||salla.lang.get("common.errors.error_occurred"))}finally{this.isSubmitting=!1}}}resetOtpInputs(){this.otpInputs.forEach((e=>{e&&(e.value="")})),this.hiddenCodeInput&&(this.hiddenCodeInput.value="")}modifyNextOtpInput(e,t){e.value=t[0],t=t.substring(1),e.nextElementSibling&&t.length?this.modifyNextOtpInput(e.nextElementSibling,t):e.nextElementSibling||0!==t.length?e.nextElementSibling&&0===t.length&&e.nextElementSibling.focus():e.focus()}splitOtpNumber(e){const t=salla.helpers.number(e.data||e.target.value||"",!0).replace(/[^0-9]/g,"");t&&1!==t.length&&this.modifyNextOtpInput(e.target,t)}allOtpInputsFilled(){return this.otpInputs.every((e=>e?.value))}handleOtpInput(e){this.resetOtpError(),e.target.value=salla.helpers.number(e.target.value||"",!0),salla.helpers.inputDigitsOnly(e.target),this.allOtpInputsFilled()&&setTimeout((()=>this.verifyDeleteOtp()),100)}handleOtpKeyUp(e){if(this.resetOtpError(),["Alt","Shift","Control","AltGraph","Ctrl"].includes(e.key))return;const t=e.keyCode||e.charCode;e.target.value?(e.target.nextElementSibling?.focus(),e.target.nextElementSibling?.select()):[8,46].includes(t)&&(e.target.previousElementSibling?.focus(),e.target.previousElementSibling?.select()),e.target.value.length>1&&this.splitOtpNumber(e)}handleOtpPaste(e){this.resetOtpError();const t=salla.helpers.number(e.clipboardData.getData("text")||"",!0).replace(/[^0-9]/g,"").substring(0,this.otpInputs.length);this.otpInputs.forEach((e=>e.value="")),this.otpInputs[0]&&this.modifyNextOtpInput(this.otpInputs[0],t)}handleOtpFocus(e){e.target!==this.otpInputs[0]&&(""===this.otpInputs[0]?.value&&this.otpInputs[0].focus(),""===e.target.previousElementSibling?.value&&e.target.previousElementSibling.focus())}startResendTimer(){this.clearResendTimer(),this.resendAfter=30,this.showResendLink=!1,this.updateResendTimerDisplay(),this.resendTimerId=setInterval((()=>{if(this.resendAfter--,this.resendAfter<=0)return this.clearResendTimer(),void(this.showResendLink=!0);this.updateResendTimerDisplay()}),1e3)}clearResendTimer(){this.resendTimerId&&(clearInterval(this.resendTimerId),this.resendTimerId=null),this.showResendLink=!1}renderUserDeleteIcon(){return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",color:"currentColor",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},t("path",{d:"M14.5 8C14.5 5.23858 12.2614 3 9.5 3C6.73858 3 4.5 5.23858 4.5 8C4.5 10.7614 6.73858 13 9.5 13C12.2614 13 14.5 10.7614 14.5 8Z"}),t("path",{d:"M15.5 21L18.5 18M18.5 18L21.5 15M18.5 18L15.5 15M18.5 18L21.5 21"}),t("path",{d:"M2.5 20C2.5 16.134 5.63401 13 9.5 13C10.775 13 11.9704 13.3409 13 13.9365"}))}renderConfirmStep(){return t("div",{class:"s-user-settings-delete-body"},t("p",{class:"s-user-settings-delete-warning"},this.deleteAccountWarning),t("div",{class:"s-user-settings-delete-actions s-user-settings-delete-actions--row"},t("salla-button",{width:"wide",fill:"outline",color:"danger",onClick:()=>this.closeDeleteModal()},this.capitalizeText(this.cancelLabel)),t("salla-button",{width:"wide",color:"primary",loading:this.isSubmitting,onClick:()=>this.initiateDeleteRequest()},this.capitalizeText(this.deleteAccount))))}renderOtpStep(){return t("div",{class:"s-user-settings-delete-body"},t("p",{class:"s-user-settings-delete-otp-instruction"},this.deleteOtpInstruction),t("p",{class:"s-user-settings-delete-otp-target"},this.getOtpTarget()),t("input",{type:"hidden",name:"code",maxlength:"4",ref:e=>this.hiddenCodeInput=e}),t("div",{class:{"s-user-settings-delete-otp-codes":!0,"has-error":this.otpHasError},dir:"ltr"},[1,2,3,4].map((e=>t("input",{type:"text",autocomplete:"one-time-code",pattern:"[0-9]*",inputmode:"numeric",maxlength:"1",id:`delete-otp-${e}`,class:{"s-user-settings-delete-otp-input":!0,"s-has-error":this.otpHasError},onInput:e=>this.handleOtpInput(e),onPaste:e=>this.handleOtpPaste(e),onKeyUp:e=>this.handleOtpKeyUp(e),onFocus:e=>this.handleOtpFocus(e),ref:t=>this.otpInputs[e-1]=t,required:!0})))),this.otpHasError&&this.otpErrorMessage?t("span",{class:"s-user-settings-delete-otp-error"},this.otpErrorMessage):"",t("div",{class:"s-user-settings-delete-actions s-user-settings-delete-actions--stack"},t("salla-button",{width:"wide",color:"primary",disabled:this.isSwitchingChannel,onClick:()=>this.verifyDeleteOtp()},this.capitalizeText(this.deleteConfirmOtp)),t("salla-button",{width:"wide",fill:"outline",color:"primary",disabled:this.isVerifyingOtp,onClick:()=>this.switchOtpChannel()},this.capitalizeText("email"===this.otpType?this.sendViaPhone:this.sendViaEmail))),t("p",{class:"s-user-settings-delete-otp-resend",style:{display:this.showResendLink?"none":"block"}},this.resendAfterLabel,t("b",{class:"s-user-settings-delete-otp-timer mx-1 font-bold",ref:e=>this.timerEl=e})),t("a",{href:"#",class:"s-user-settings-delete-otp-resend-link",style:{display:this.showResendLink?"block":"none"},onClick:e=>{e.preventDefault(),this.resendOtp()}},this.resendLabel))}renderSuccessStep(){return t("div",{class:"s-user-settings-delete-body"},t("p",{class:"s-user-settings-delete-success-body"},this.deleteSuccessMessage),t("div",{class:"s-user-settings-delete-actions s-user-settings-delete-actions--stack"},t("salla-button",{class:"s-user-settings-delete-success-btn",width:"wide",color:"primary",onClick:()=>this.confirmSuccess()},this.capitalizeText(this.okLabel))))}renderDeleteStep(){switch(this.currentStep){case"otp":return this.renderOtpStep();case"success":return this.renderSuccessStep();default:return this.renderConfirmStep()}}renderDeleteSectionAction(){return this.isDeletePending?t("salla-button",{fill:"outline",color:"danger",shape:"btn",size:"medium",width:"normal",loading:this.isSubmitting,onClick:()=>this.cancelDeleteRequest()},this.capitalizeText(this.cancelDeletionRequest)):t("salla-button",{fill:"outline",color:"danger",shape:"btn",size:"medium",width:"normal",onClick:()=>this.openDeleteModal()},this.capitalizeText(this.deleteAccount))}render(){return t(s,{key:"64356c5b57d826fce8c29cc319a9762464c7fe51",class:"s-user-settings-wrapper"},this.canHideName&&t("div",{key:"4f7b3eb703f89e4a758fca54ba1b214f6724aaea",class:"s-user-settings-section"},t("salla-list-tile",{key:"7ad109e36b278fe81a314d51e1ab68030dd96cdc"},t("div",{key:"c789b7e2c541e25aaaf336e052d1986f6429da71",slot:"icon",class:"s-user-settings-section-icon"},t("span",{key:"5d7b377aefb80139527d8814ee2c636fa9c73e0f",innerHTML:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>user-cancel</title>\n<path d="M29.885 16l1.724-1.724c0.521-0.521 0.521-1.364 0-1.885s-1.364-0.521-1.885 0l-1.724 1.724-1.724-1.724c-0.521-0.521-1.364-0.521-1.885 0s-0.521 1.364 0 1.885l1.724 1.724-1.724 1.724c-0.521 0.521-0.521 1.364 0 1.885 0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391l1.724-1.724 1.724 1.724c0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391c0.521-0.521 0.521-1.364 0-1.885zM10.667 16c4.043 0 7.333-3.289 7.333-7.333s-3.291-7.333-7.333-7.333-7.333 3.289-7.333 7.333 3.291 7.333 7.333 7.333zM10.667 4c2.573 0 4.667 2.093 4.667 4.667s-2.093 4.667-4.667 4.667-4.667-2.093-4.667-4.667 2.093-4.667 4.667-4.667zM10.667 18.667c-5.881 0-10.667 3.813-10.667 8.5v2.167c0 0.736 0.596 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.167c0-3.217 3.588-5.833 8-5.833s8 2.616 8 5.833v2.167c0 0.736 0.596 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.167c0-4.687-4.785-8.5-10.667-8.5z"></path>\n</svg>\n'})),t("div",{key:"fdb9d6130ef27cffbe4e2ef06e7b9155d0d04c2b",slot:"title",class:"s-user-settings-section-title"},this.capitalizeText(this.hideMyName)),t("div",{key:"bd8592a487c79926355eeea25a5e1429bca0fd80",slot:"subtitle",class:"s-user-settings-section-subtitle"},this.capitalizeText(this.hideMyNameDesc)),t("div",{key:"cf21ed12bb38dc3a613efac6d017a72aab38780b",slot:"action",class:"s-user-settings-section-action"},t("label",{key:"160140e25cf8e6c4556e52c0b36ba5769618b419",class:"s-toggle"},t("input",{key:"369a694fabbd42e6c239b23c26d68f858775ffe2",class:"s-toggle-input",checked:this.isHiddenName,onChange:e=>this.toggleSetting("is_hidden_name",e),type:"checkbox"}),t("div",{key:"5952ec01913ef95d888eeb3aace14123ffd3ef6f",class:"s-toggle-switcher"}))))),t("div",{key:"885355f8435759c9359a3d9eb95d5637b1c74751",class:"s-user-settings-section"},t("salla-list-tile",{key:"93b607850b20add5384a3b28e4e58fbfcb181d53"},t("div",{key:"c795aabfdc6df0beb9c0bfcf73ad87625eb7f51b",slot:"icon",class:"s-user-settings-section-icon"},t("span",{key:"a59ede027c4466a1e84e8e8b4c649c7b418dd0a3",innerHTML:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>bullhorn</title>\n<path d="M30.129 0.264c-0.339-0.252-0.776-0.328-1.179-0.208l-24.951 7.485v-0.216c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v14.667c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-0.112l3.448 1.207-0.595 1.704c-0.321 1.019-0.227 2.103 0.267 3.051s1.327 1.647 2.345 1.968l6.359 2.004c0.399 0.127 0.804 0.187 1.201 0.187 1.699 0 3.277-1.091 3.812-2.785l0.423-1.295 7.633 2.672c0.143 0.049 0.292 0.075 0.44 0.075 0.273 0 0.543-0.084 0.772-0.247 0.352-0.249 0.561-0.655 0.561-1.087v-28c0-0.421-0.199-0.819-0.537-1.069zM18.297 28.4c-0.221 0.701-0.973 1.089-1.673 0.871l-6.357-2.004c-0.34-0.108-0.617-0.34-0.781-0.656s-0.196-0.676-0.101-0.977l0.581-1.665 8.777 3.072zM28 27.453l-24-8.4v-8.728l24-7.2z"></path>\n</svg>\n'})),t("div",{key:"e7af96b6f919a8be8bb126237cb3977e72a7c089",slot:"title",class:"s-user-settings-section-title"},this.capitalizeText(this.promotionalMsgs)),t("div",{key:"dab7b270443b6eddccd7df739c2bee82eb7706af",slot:"subtitle",class:"s-user-settings-section-subtitle"},this.capitalizeText(this.promotionalMsgsDesc)),t("div",{key:"56a6f18c788891fe9215a57d0fcaa5cf98bd3aa5",slot:"action",class:"s-user-settings-section-action"},t("label",{key:"1fc28780fe779099eaed7916f31cbbb681c10fe9",class:"s-toggle"},t("input",{key:"832edd6e5b806171bb913163b7d5c19dbb0833f5",class:"s-toggle-input",checked:this.isNotifiable,onChange:e=>this.toggleSetting("is_notifiable",e),type:"checkbox"}),t("div",{key:"54260d8cca19ca6914cdd3bf15093b9669fef44a",class:"s-toggle-switcher"}))))),t("div",{key:"549bae1159a55b035952a12c8dc9d2b9d660f5bf",class:"s-user-settings-section s-user-settings-section-delete-user"},t("salla-list-tile",{key:"7969327e863cd998a120f27d61621d83ef8e57d5"},t("div",{key:"acf14b5e6ce76657fe0016aa63e26851e7688cd5",slot:"icon",class:"s-user-settings-section-icon"},this.renderUserDeleteIcon()),t("div",{key:"4a38cf9d0510e784317b0eb4db2fd4589a9f71d4",slot:"title",class:"s-user-settings-section-title"},this.capitalizeText(this.deleteAccount)),t("div",{key:"054f6a6c30f2eb9794f83a0998f20e208c7ed85a",slot:"subtitle",class:"s-user-settings-section-subtitle"},this.capitalizeText(this.isDeletePending?this.deleteAccountPending:this.deleteAccountDesc)),t("div",{key:"00d392a300b986d5d3e6f6711e6996df9731962d",slot:"action",class:"s-user-settings-section-action"},this.renderDeleteSectionAction()))),t("salla-modal",{key:"d4e8006e57d9c35267177f07b60e510ea3e53400",id:"salla-user-settings-delete-modal",width:"xs",centered:!0,showBack:"otp"===this.currentStep,isClosable:"success"!==this.currentStep,iconStyle:"success"===this.currentStep?"success":void 0,onModalVisibilityChanged:e=>this.handleModalVisibilityChanged(e),onModalBack:()=>this.goBackFromOtp(),ref:e=>this.confirmationModal=e},"success"!==this.currentStep?t("span",{slot:"icon",class:"s-user-settings-delete-icon"},this.renderUserDeleteIcon()):null,t("div",{key:this.currentStep,class:"s-user-settings-delete-step"},this.renderDeleteStep())))}};i.style=".s-modal-header-inner{display:flex;flex-direction:column !important;align-items:center !important;justify-content:center !important}.s-modal-header-content{text-align:center !important}.s-user-settings-delete-body{text-align:center}.s-user-settings-delete-icon{display:inline-flex;align-items:center;justify-content:center;width:4rem;height:4rem;border-radius:9999px;border:1px solid var(--infinte-color);color:var(--infinte-color);margin:0 auto 1rem}.s-user-settings-delete-icon svg{width:1.5rem;height:1.5rem}.s-user-settings-delete-warning{color:#6b7280;font-size:0.875rem;line-height:1.625;margin-bottom:1.25rem}.s-user-settings-delete-actions--row{display:flex;gap:0.75rem;justify-content:center}.s-user-settings-delete-actions--row salla-button{flex:1}.s-user-settings-delete-actions--stack{display:flex;flex-direction:column;gap:0.75rem;margin-top:1.25rem}.s-user-settings-delete-otp-instruction{color:#6b7280;font-size:0.875rem}.s-user-settings-delete-otp-target{color:#6b7280;direction:ltr;margin-bottom:1.25rem}.s-user-settings-delete-otp-codes{display:flex;justify-content:stretch;gap:0.75rem;direction:ltr;margin-bottom:0.75rem;width:100%}.s-user-settings-delete-otp-codes.has-error{margin-bottom:0}.s-user-settings-delete-otp-input{flex:1 1 0;min-width:0;width:100%;height:3.5rem;text-align:center;border:1px solid #d1d5db;border-radius:0.5rem;font-size:1.25rem;font-weight:600;color:#111827;outline:none}.s-user-settings-delete-otp-input:focus{border-color:#004956;box-shadow:0 0 0 1px #004956}.s-user-settings-delete-otp-input.s-has-error{border-color:#ef4444 !important}.s-user-settings-delete-otp-input.s-has-error:focus{border-color:#ef4444 !important;box-shadow:0 0 0 1px #ef4444}.s-user-settings-delete-otp-input::-webkit-outer-spin-button,.s-user-settings-delete-otp-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.s-user-settings-delete-otp-input[type=text]{-moz-appearance:textfield}.s-user-settings-delete-otp-error{display:block;color:#ef4444;font-size:0.75rem;text-align:center;padding-top:0.75rem;margin-bottom:1.25rem}.s-user-settings-delete-otp-resend{color:#6b7280;font-size:0.75rem;margin-top:1rem;text-align:center}.s-user-settings-delete-otp-timer{font-weight:600;direction:ltr;display:inline-block}.s-user-settings-delete-otp-resend-link{display:block;color:#004956;font-size:0.875rem;margin-top:1rem;text-align:center;text-decoration:underline;cursor:pointer}.s-user-settings-delete-success-body{color:#6b7280;font-size:0.875rem;line-height:1.625;margin-bottom:1.25rem}.s-user-settings-delete-success-btn{--s-button-color:#004956}";export{i as salla_user_settings}
|
|
4
|
+
import{r as e,h as t,H as s}from"./p-B8_UK_fg.js";const i=class{constructor(t){e(this,t),this.otpInputs=[],this.deletePendingDays=null,this.currentStep="confirm",this.isDeletePending=!1,this.otpType="email",this.otpHasError=!1,this.otpErrorMessage="",this.isSubmitting=!1,this.isVerifyingOtp=!1,this.isSwitchingChannel=!1,this.resendAfter=30,this.showResendLink=!1,this.canHideName=salla.config.get("store.settings.rating.can_customer_hide_name"),this.translationDefaults={"pages.profile.delete_account":{ar:"حذف الحساب",en:"Delete account"},"pages.profile.delete_account_description":{ar:"سيُحذف حسابك وبياناتك من المتجر نهائيًا، بما في ذلك سجل طلباتك.",en:"Your account and data will be permanently deleted from the store, including your order history."},"pages.profile.delete_account_confirm_title":{ar:"هل تريد حذف حسابك؟",en:"Do you want to delete your account?"},"pages.profile.delete_account_warning":{ar:"بعد الحذف، ستفقد الوصول إلى بياناتك، بما في ذلك سجل الطلبات، وقائمة الأمنيات، وأي نقاط ولاء أو رصيد متاح في المحفظة.",en:"After deletion, you will lose access to your data, including order history, wishlist, and any loyalty points or wallet balance."},"pages.profile.cancel":{ar:"إلغاء",en:"Cancel"},"pages.profile.delete_account_otp_title":{ar:"تأكيد حذف الحساب",en:"Confirm account deletion"},"pages.profile.delete_account_otp_instruction":{ar:"للمتابعة، أدخل رمز التحقٌّق المرسل إلى:",en:"To continue, enter the verification code sent to:"},"pages.profile.delete_account_confirm_otp":{ar:"تأكيد الحذف",en:"Confirm deletion"},"pages.profile.delete_account_otp_required":{ar:"يرجى إدخال رمز التحقٌّق",en:"Please enter the verification code"},"pages.profile.delete_account_send_via_phone":{ar:"إرسال عبر الهاتف",en:"Send via phone"},"pages.profile.delete_account_send_via_email":{ar:"إرسال عبر البريد الإلكتروني",en:"Send via email"},"pages.profile.delete_account_success_title":{ar:"أُرسل طلب حذف الحساب",en:"Account deletion request submitted"},"pages.profile.delete_account_success_message":{ar:"سيُحذف حسابك خلال 30 يومًا. يمكنك إلغاء الطلب بتسجيل الدخول مرة أخرى قبل اكتمال الحذف.",en:"Your account will be deleted within 30 days. You can cancel the request by signing in again before deletion is complete."},"pages.profile.ok":{ar:"موافق",en:"OK"},"pages.profile.cancel_deletion_request":{ar:"تراجع عن الحذف",en:"Withdraw deletion"},"pages.profile.delete_account_pending":{ar:"حسابك مجدول للحذف نهائيًا من المتجر خلال :days يومًا. يمكنك التراجع عن الحذف قبل انقضاء المدة.",en:"Your account will be deleted permanently from the store within :days days. You can withdraw the deletion before the deadline."},"pages.profile.delete_request_cancelled":{ar:"تم إلغاء طلب الحذف",en:"Deletion request cancelled"}},this.registerTranslationDefaults(),this.loadTranslations(),salla.onReady((()=>{this.isHiddenName=salla.config.get("user.is_hidden_name"),this.isNotifiable=salla.config.get("user.is_notifiable"),this.canHideName=salla.config.get("store.settings.rating.can_customer_hide_name"),this.fetchDeleteRequestStatus(),this.isNotifiable&&this.isHiddenName||salla.event.on("profile::info.fetched",(e=>{this.isHiddenName=e.data.is_hidden_name,this.isNotifiable=e.data.is_notifiable}))})),salla.lang.onLoaded((()=>{this.registerTranslationDefaults(),this.loadTranslations()}))}getDaysUntilExecution(e){return Math.max(0,Math.ceil(((e>1e12?e:1e3*e)-Date.now())/864e5))}applyPendingMessage(){const e=salla.lang.get("pages.profile.delete_account_pending");this.deleteAccountPending=null!=this.deletePendingDays?e.replace(/:days/g,String(salla.helpers.number(this.deletePendingDays))):e}async fetchDeleteRequestStatus(){try{const e=await salla.profile.getDeleteRequest(),t=e?.data??null,s=t?.data_request||t,i=s?.status;this.isDeletePending="pending"===i;const r=s?.execution_at;this.deletePendingDays=null==r||Number.isNaN(Number(r))?null:this.getDaysUntilExecution(Number(r)),this.applyPendingMessage()}catch{}}registerTranslationDefaults(){if(!salla?.lang?.addBulk)return;const e=Object.entries(this.translationDefaults).reduce(((e,[t,s])=>(salla.lang.get(t)===t&&(e[t]=s),e)),{});Object.keys(e).length&&salla.lang.addBulk(e)}loadTranslations(){this.deleteAccount=salla.lang.get("pages.profile.delete_account"),this.deleteAccountDesc=salla.lang.get("pages.profile.delete_account_description"),this.deleteConfirmTitle=salla.lang.get("pages.profile.delete_account_confirm_title"),this.deleteAccountWarning=salla.lang.get("pages.profile.delete_account_warning"),this.cancelLabel=salla.lang.get("pages.profile.cancel"),this.deleteOtpTitle=salla.lang.get("pages.profile.delete_account_otp_title"),this.deleteOtpInstruction=salla.lang.get("pages.profile.delete_account_otp_instruction"),this.deleteConfirmOtp=salla.lang.get("pages.profile.delete_account_confirm_otp"),this.sendViaPhone=salla.lang.get("pages.profile.delete_account_send_via_phone"),this.sendViaEmail=salla.lang.get("pages.profile.delete_account_send_via_email"),this.deleteSuccessTitle=salla.lang.get("pages.profile.delete_account_success_title"),this.deleteSuccessMessage=salla.lang.get("pages.profile.delete_account_success_message"),this.okLabel=salla.lang.get("pages.profile.ok"),this.cancelDeletionRequest=salla.lang.get("pages.profile.cancel_deletion_request"),this.applyPendingMessage(),this.resendAfterLabel=salla.lang.get("blocks.header.resend_after"),this.resendLabel=salla.lang.get("blocks.comments.submit"),this.promotionalMsgs=salla.lang.get("pages.profile.promotional_messages"),this.hideMyName=salla.lang.get("pages.profile.hide_my_name"),this.hideMyNameDesc=salla.lang.get("pages.profile.hide_my_name_desc"),this.promotionalMsgsDesc=salla.lang.get("pages.profile.promotional_messages_description")}toggleSetting(e,t){salla.profile.updateSettings({name:e,value:t.target.checked})}capitalizeText(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}getOtpTarget(){return"email"===this.otpType?salla.config.get("user.email")||"":salla.config.get("user.mobile")||""}updateModalForStep(){if(this.confirmationModal)switch(this.currentStep){case"confirm":this.confirmationModal.setTitle(this.capitalizeText(this.deleteConfirmTitle));break;case"otp":this.confirmationModal.setTitle(this.capitalizeText(this.deleteOtpTitle));break;case"success":this.confirmationModal.setTitle(this.capitalizeText(this.deleteSuccessTitle))}}openDeleteModal(){this.currentStep="confirm",this.otpType="email",this.resetOtpInputs(),this.clearResendTimer(),this.updateModalForStep(),this.confirmationModal.open()}closeDeleteModal(){this.clearResendTimer(),this.confirmationModal?.close()}goBackFromOtp(){this.clearResendTimer(),this.resetOtpInputs(),this.resetOtpError(),this.currentStep="confirm",this.updateModalForStep()}async handleModalVisibilityChanged(e){if(e.detail)return;this.clearResendTimer();const t="success"===this.currentStep;t&&(this.isDeletePending=!0),this.currentStep="confirm",this.resetOtpInputs(),t&&await this.fetchDeleteRequestStatus()}formatResendTimer(e){return"00 : "+(e>=10?`${e}`:`0${e}`)}updateResendTimerDisplay(){this.timerEl&&(this.timerEl.innerHTML=this.formatResendTimer(this.resendAfter))}isDeleteRequestInFlight(){return this.isSubmitting||this.isSwitchingChannel||this.isVerifyingOtp}async initiateDeleteRequest(e="confirm"){if(!this.isDeleteRequestInFlight()){"switch"===e||"resend"===e?this.isSwitchingChannel=!0:this.isSubmitting=!0;try{await salla.profile.initiateDeleteRequest(this.otpType),this.currentStep="otp",this.updateModalForStep(),this.resetOtpInputs(),this.startResendTimer(),setTimeout((()=>this.otpInputs[0]?.focus()),100)}catch(e){salla.notify?.error?.(e.response?.data?.error?.message||salla.lang.get("common.errors.error_occurred"))}finally{"switch"===e||"resend"===e?this.isSwitchingChannel=!1:this.isSubmitting=!1}}}async switchOtpChannel(){this.isDeleteRequestInFlight()||(this.otpType="email"===this.otpType?"mobile":"email",await this.initiateDeleteRequest("switch"))}async resendOtp(){this.showResendLink&&!this.isDeleteRequestInFlight()&&await this.initiateDeleteRequest("resend")}collectOtpCode(){const e=salla.helpers.number(this.otpInputs.map((e=>e?.value||"")).join(""),!0).replace(/[^0-9]/g,"");return this.hiddenCodeInput&&(this.hiddenCodeInput.value=e),e}resetOtpError(){this.otpHasError=!1,this.otpErrorMessage=""}setOtpError(e){this.otpHasError=!0,this.otpErrorMessage=e}async verifyDeleteOtp(){if(this.isVerifyingOtp||this.isSwitchingChannel)return;const e=this.collectOtpCode();if(e.length<4)return this.setOtpError(salla.lang.get("pages.profile.delete_account_otp_required")),void this.otpInputs[e.length]?.focus();this.resetOtpError(),this.isVerifyingOtp=!0;try{const t=await salla.profile.verifyDeleteRequest({type:this.otpType,code:e});this.deleteSuccessMessage=t?.data?.message||salla.lang.get("pages.profile.delete_account_success_message"),this.clearResendTimer(),this.resetOtpInputs(),this.otpInputs=[],this.currentStep="success",this.updateModalForStep()}catch(e){this.setOtpError(e.response?.data?.error?.message||salla.lang.get("common.errors.error_occurred")),this.resetOtpInputs()}finally{this.isVerifyingOtp=!1}}async confirmSuccess(){this.isDeletePending=!0,this.closeDeleteModal(),this.currentStep="confirm",await this.fetchDeleteRequestStatus()}async cancelDeleteRequest(){if(!this.isSubmitting){this.isSubmitting=!0;try{const e=(await salla.profile.cancelDeleteRequest()).message||salla.lang.get("pages.profile.delete_request_cancelled");this.isDeletePending=!1,salla.notify?.success?.(e)}catch(e){salla.notify?.error?.(e.response?.data?.error?.message||salla.lang.get("common.errors.error_occurred"))}finally{this.isSubmitting=!1}}}resetOtpInputs(){this.otpInputs.forEach((e=>{e&&(e.value="")})),this.hiddenCodeInput&&(this.hiddenCodeInput.value="")}modifyNextOtpInput(e,t){e.value=t[0],t=t.substring(1),e.nextElementSibling&&t.length?this.modifyNextOtpInput(e.nextElementSibling,t):e.nextElementSibling||0!==t.length?e.nextElementSibling&&0===t.length&&e.nextElementSibling.focus():e.focus()}splitOtpNumber(e){const t=salla.helpers.number(e.data||e.target.value||"",!0).replace(/[^0-9]/g,"");t&&1!==t.length&&this.modifyNextOtpInput(e.target,t)}allOtpInputsFilled(){return this.otpInputs.every((e=>e?.value))}handleOtpInput(e){this.resetOtpError(),e.target.value=salla.helpers.number(e.target.value||"",!0),salla.helpers.inputDigitsOnly(e.target),this.allOtpInputsFilled()&&setTimeout((()=>this.verifyDeleteOtp()),100)}handleOtpKeyUp(e){if(this.resetOtpError(),["Alt","Shift","Control","AltGraph","Ctrl"].includes(e.key))return;const t=e.keyCode||e.charCode;e.target.value?(e.target.nextElementSibling?.focus(),e.target.nextElementSibling?.select()):[8,46].includes(t)&&(e.target.previousElementSibling?.focus(),e.target.previousElementSibling?.select()),e.target.value.length>1&&this.splitOtpNumber(e)}handleOtpPaste(e){this.resetOtpError();const t=salla.helpers.number(e.clipboardData.getData("text")||"",!0).replace(/[^0-9]/g,"").substring(0,this.otpInputs.length);this.otpInputs.forEach((e=>e.value="")),this.otpInputs[0]&&this.modifyNextOtpInput(this.otpInputs[0],t)}handleOtpFocus(e){e.target!==this.otpInputs[0]&&(""===this.otpInputs[0]?.value&&this.otpInputs[0].focus(),""===e.target.previousElementSibling?.value&&e.target.previousElementSibling.focus())}startResendTimer(){this.clearResendTimer(),this.resendAfter=30,this.showResendLink=!1,this.updateResendTimerDisplay(),this.resendTimerId=setInterval((()=>{if(this.resendAfter--,this.resendAfter<=0)return this.clearResendTimer(),void(this.showResendLink=!0);this.updateResendTimerDisplay()}),1e3)}clearResendTimer(){this.resendTimerId&&(clearInterval(this.resendTimerId),this.resendTimerId=null),this.showResendLink=!1}renderUserDeleteIcon(){return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",color:"currentColor",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},t("path",{d:"M14.5 8C14.5 5.23858 12.2614 3 9.5 3C6.73858 3 4.5 5.23858 4.5 8C4.5 10.7614 6.73858 13 9.5 13C12.2614 13 14.5 10.7614 14.5 8Z"}),t("path",{d:"M15.5 21L18.5 18M18.5 18L21.5 15M18.5 18L15.5 15M18.5 18L21.5 21"}),t("path",{d:"M2.5 20C2.5 16.134 5.63401 13 9.5 13C10.775 13 11.9704 13.3409 13 13.9365"}))}renderConfirmStep(){return t("div",{class:"s-user-settings-delete-body"},t("p",{class:"s-user-settings-delete-warning"},this.deleteAccountWarning),t("div",{class:"s-user-settings-delete-actions s-user-settings-delete-actions--row"},t("salla-button",{width:"wide",fill:"outline",color:"danger",onClick:()=>this.closeDeleteModal()},this.capitalizeText(this.cancelLabel)),t("salla-button",{width:"wide",color:"primary",loading:this.isSubmitting,onClick:()=>this.initiateDeleteRequest()},this.capitalizeText(this.deleteAccount))))}renderOtpStep(){return t("div",{class:"s-user-settings-delete-body"},t("p",{class:"s-user-settings-delete-otp-instruction"},this.deleteOtpInstruction),t("p",{class:"s-user-settings-delete-otp-target"},this.getOtpTarget()),t("input",{type:"hidden",name:"code",maxlength:"4",ref:e=>this.hiddenCodeInput=e}),t("div",{class:{"s-user-settings-delete-otp-codes":!0,"has-error":this.otpHasError},dir:"ltr"},[1,2,3,4].map((e=>t("input",{type:"text",autocomplete:"one-time-code",pattern:"[0-9]*",inputmode:"numeric",maxlength:"1",id:`delete-otp-${e}`,class:{"s-user-settings-delete-otp-input":!0,"s-has-error":this.otpHasError},onInput:e=>this.handleOtpInput(e),onPaste:e=>this.handleOtpPaste(e),onKeyUp:e=>this.handleOtpKeyUp(e),onFocus:e=>this.handleOtpFocus(e),ref:t=>this.otpInputs[e-1]=t,required:!0})))),this.otpHasError&&this.otpErrorMessage?t("span",{class:"s-user-settings-delete-otp-error"},this.otpErrorMessage):"",t("div",{class:"s-user-settings-delete-actions s-user-settings-delete-actions--stack"},t("salla-button",{width:"wide",color:"primary",disabled:this.isSwitchingChannel,onClick:()=>this.verifyDeleteOtp()},this.capitalizeText(this.deleteConfirmOtp)),t("salla-button",{width:"wide",fill:"outline",color:"primary",disabled:this.isVerifyingOtp,onClick:()=>this.switchOtpChannel()},this.capitalizeText("email"===this.otpType?this.sendViaPhone:this.sendViaEmail))),t("p",{class:"s-user-settings-delete-otp-resend",style:{display:this.showResendLink?"none":"block"}},this.resendAfterLabel,t("b",{class:"s-user-settings-delete-otp-timer mx-1 font-bold",ref:e=>this.timerEl=e})),t("a",{href:"#",class:"s-user-settings-delete-otp-resend-link",style:{display:this.showResendLink?"block":"none"},onClick:e=>{e.preventDefault(),this.resendOtp()}},this.resendLabel))}renderSuccessStep(){return t("div",{class:"s-user-settings-delete-body"},t("p",{class:"s-user-settings-delete-success-body"},this.deleteSuccessMessage),t("div",{class:"s-user-settings-delete-actions s-user-settings-delete-actions--stack"},t("salla-button",{class:"s-user-settings-delete-success-btn",width:"wide",color:"primary",onClick:()=>this.confirmSuccess()},this.capitalizeText(this.okLabel))))}renderDeleteStep(){switch(this.currentStep){case"otp":return this.renderOtpStep();case"success":return this.renderSuccessStep();default:return this.renderConfirmStep()}}renderDeleteSectionAction(){return this.isDeletePending?t("salla-button",{fill:"outline",color:"danger",shape:"btn",size:"medium",width:"normal",loading:this.isSubmitting,onClick:()=>this.cancelDeleteRequest()},this.capitalizeText(this.cancelDeletionRequest)):t("salla-button",{fill:"outline",color:"danger",shape:"btn",size:"medium",width:"normal",onClick:()=>this.openDeleteModal()},this.capitalizeText(this.deleteAccount))}render(){return t(s,{key:"64356c5b57d826fce8c29cc319a9762464c7fe51",class:"s-user-settings-wrapper"},this.canHideName&&t("div",{key:"4f7b3eb703f89e4a758fca54ba1b214f6724aaea",class:"s-user-settings-section"},t("salla-list-tile",{key:"7ad109e36b278fe81a314d51e1ab68030dd96cdc"},t("div",{key:"c789b7e2c541e25aaaf336e052d1986f6429da71",slot:"icon",class:"s-user-settings-section-icon"},t("span",{key:"5d7b377aefb80139527d8814ee2c636fa9c73e0f",innerHTML:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>user-cancel</title>\n<path d="M29.885 16l1.724-1.724c0.521-0.521 0.521-1.364 0-1.885s-1.364-0.521-1.885 0l-1.724 1.724-1.724-1.724c-0.521-0.521-1.364-0.521-1.885 0s-0.521 1.364 0 1.885l1.724 1.724-1.724 1.724c-0.521 0.521-0.521 1.364 0 1.885 0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391l1.724-1.724 1.724 1.724c0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391c0.521-0.521 0.521-1.364 0-1.885zM10.667 16c4.043 0 7.333-3.289 7.333-7.333s-3.291-7.333-7.333-7.333-7.333 3.289-7.333 7.333 3.291 7.333 7.333 7.333zM10.667 4c2.573 0 4.667 2.093 4.667 4.667s-2.093 4.667-4.667 4.667-4.667-2.093-4.667-4.667 2.093-4.667 4.667-4.667zM10.667 18.667c-5.881 0-10.667 3.813-10.667 8.5v2.167c0 0.736 0.596 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.167c0-3.217 3.588-5.833 8-5.833s8 2.616 8 5.833v2.167c0 0.736 0.596 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.167c0-4.687-4.785-8.5-10.667-8.5z"></path>\n</svg>\n'})),t("div",{key:"fdb9d6130ef27cffbe4e2ef06e7b9155d0d04c2b",slot:"title",class:"s-user-settings-section-title"},this.capitalizeText(this.hideMyName)),t("div",{key:"bd8592a487c79926355eeea25a5e1429bca0fd80",slot:"subtitle",class:"s-user-settings-section-subtitle"},this.capitalizeText(this.hideMyNameDesc)),t("div",{key:"cf21ed12bb38dc3a613efac6d017a72aab38780b",slot:"action",class:"s-user-settings-section-action"},t("label",{key:"160140e25cf8e6c4556e52c0b36ba5769618b419",class:"s-toggle"},t("input",{key:"369a694fabbd42e6c239b23c26d68f858775ffe2",class:"s-toggle-input",checked:this.isHiddenName,onChange:e=>this.toggleSetting("is_hidden_name",e),type:"checkbox"}),t("div",{key:"5952ec01913ef95d888eeb3aace14123ffd3ef6f",class:"s-toggle-switcher"}))))),t("div",{key:"885355f8435759c9359a3d9eb95d5637b1c74751",class:"s-user-settings-section"},t("salla-list-tile",{key:"93b607850b20add5384a3b28e4e58fbfcb181d53"},t("div",{key:"c795aabfdc6df0beb9c0bfcf73ad87625eb7f51b",slot:"icon",class:"s-user-settings-section-icon"},t("span",{key:"a59ede027c4466a1e84e8e8b4c649c7b418dd0a3",innerHTML:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>bullhorn</title>\n<path d="M30.129 0.264c-0.339-0.252-0.776-0.328-1.179-0.208l-24.951 7.485v-0.216c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v14.667c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-0.112l3.448 1.207-0.595 1.704c-0.321 1.019-0.227 2.103 0.267 3.051s1.327 1.647 2.345 1.968l6.359 2.004c0.399 0.127 0.804 0.187 1.201 0.187 1.699 0 3.277-1.091 3.812-2.785l0.423-1.295 7.633 2.672c0.143 0.049 0.292 0.075 0.44 0.075 0.273 0 0.543-0.084 0.772-0.247 0.352-0.249 0.561-0.655 0.561-1.087v-28c0-0.421-0.199-0.819-0.537-1.069zM18.297 28.4c-0.221 0.701-0.973 1.089-1.673 0.871l-6.357-2.004c-0.34-0.108-0.617-0.34-0.781-0.656s-0.196-0.676-0.101-0.977l0.581-1.665 8.777 3.072zM28 27.453l-24-8.4v-8.728l24-7.2z"></path>\n</svg>\n'})),t("div",{key:"e7af96b6f919a8be8bb126237cb3977e72a7c089",slot:"title",class:"s-user-settings-section-title"},this.capitalizeText(this.promotionalMsgs)),t("div",{key:"dab7b270443b6eddccd7df739c2bee82eb7706af",slot:"subtitle",class:"s-user-settings-section-subtitle"},this.capitalizeText(this.promotionalMsgsDesc)),t("div",{key:"56a6f18c788891fe9215a57d0fcaa5cf98bd3aa5",slot:"action",class:"s-user-settings-section-action"},t("label",{key:"1fc28780fe779099eaed7916f31cbbb681c10fe9",class:"s-toggle"},t("input",{key:"832edd6e5b806171bb913163b7d5c19dbb0833f5",class:"s-toggle-input",checked:this.isNotifiable,onChange:e=>this.toggleSetting("is_notifiable",e),type:"checkbox"}),t("div",{key:"54260d8cca19ca6914cdd3bf15093b9669fef44a",class:"s-toggle-switcher"}))))),t("div",{key:"549bae1159a55b035952a12c8dc9d2b9d660f5bf",class:"s-user-settings-section s-user-settings-section-delete-user"},t("salla-list-tile",{key:"7969327e863cd998a120f27d61621d83ef8e57d5"},t("div",{key:"acf14b5e6ce76657fe0016aa63e26851e7688cd5",slot:"icon",class:"s-user-settings-section-icon"},this.renderUserDeleteIcon()),t("div",{key:"4a38cf9d0510e784317b0eb4db2fd4589a9f71d4",slot:"title",class:"s-user-settings-section-title"},this.capitalizeText(this.deleteAccount)),t("div",{key:"054f6a6c30f2eb9794f83a0998f20e208c7ed85a",slot:"subtitle",class:"s-user-settings-section-subtitle"},this.capitalizeText(this.isDeletePending?this.deleteAccountPending:this.deleteAccountDesc)),t("div",{key:"00d392a300b986d5d3e6f6711e6996df9731962d",slot:"action",class:"s-user-settings-section-action"},this.renderDeleteSectionAction()))),t("salla-modal",{key:"d4e8006e57d9c35267177f07b60e510ea3e53400",id:"salla-user-settings-delete-modal",width:"xs",centered:!0,showBack:"otp"===this.currentStep,isClosable:"success"!==this.currentStep,iconStyle:"success"===this.currentStep?"success":void 0,onModalVisibilityChanged:e=>this.handleModalVisibilityChanged(e),onModalBack:()=>this.goBackFromOtp(),ref:e=>this.confirmationModal=e},"success"!==this.currentStep?t("span",{slot:"icon",class:"s-user-settings-delete-icon"},this.renderUserDeleteIcon()):null,t("div",{key:this.currentStep,class:"s-user-settings-delete-step"},this.renderDeleteStep())))}};i.style='/*!twlt*/.s-modal-header-inner{display:flex;flex-direction:column !important;align-items:center !important;justify-content:center !important}.s-modal-header-content{text-align:center !important}.s-user-settings-delete-body{text-align:center}.s-user-settings-delete-icon{display:inline-flex;align-items:center;justify-content:center;width:4rem;height:4rem;border-radius:9999px;border:1px solid var(--infinte-color);color:var(--infinte-color);margin:0 auto 1rem}.s-user-settings-delete-icon svg{width:1.5rem;height:1.5rem}.s-user-settings-delete-warning{color:#6b7280;font-size:0.875rem;line-height:1.625;margin-bottom:1.25rem}.s-user-settings-delete-actions--row{display:flex;gap:0.75rem;justify-content:center}.s-user-settings-delete-actions--row salla-button{flex:1}.s-user-settings-delete-actions--stack{display:flex;flex-direction:column;gap:0.75rem;margin-top:1.25rem}.s-user-settings-delete-otp-instruction{color:#6b7280;font-size:0.875rem}.s-user-settings-delete-otp-target{color:#6b7280;direction:ltr;margin-bottom:1.25rem}.s-user-settings-delete-otp-codes{display:flex;justify-content:stretch;gap:0.75rem;direction:ltr;margin-bottom:0.75rem;width:100%}.s-user-settings-delete-otp-codes.has-error{margin-bottom:0}.s-user-settings-delete-otp-input{flex:1 1 0;min-width:0;width:100%;height:3.5rem;text-align:center;border:1px solid #d1d5db;border-radius:0.5rem;font-size:1.25rem;font-weight:600;color:#111827;outline:none}.s-user-settings-delete-otp-input:focus{border-color:#004956;box-shadow:0 0 0 1px #004956}.s-user-settings-delete-otp-input.s-has-error{border-color:#ef4444 !important}.s-user-settings-delete-otp-input.s-has-error:focus{border-color:#ef4444 !important;box-shadow:0 0 0 1px #ef4444}.s-user-settings-delete-otp-input::-webkit-outer-spin-button,.s-user-settings-delete-otp-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.s-user-settings-delete-otp-input[type=text]{-moz-appearance:textfield}.s-user-settings-delete-otp-error{display:block;color:#ef4444;font-size:0.75rem;text-align:center;padding-top:0.75rem;margin-bottom:1.25rem}.s-user-settings-delete-otp-resend{color:#6b7280;font-size:0.75rem;margin-top:1rem;text-align:center}.s-user-settings-delete-otp-timer{font-weight:600;direction:ltr;display:inline-block}.s-user-settings-delete-otp-resend-link{display:block;color:#004956;font-size:0.875rem;margin-top:1rem;text-align:center;text-decoration:underline;cursor:pointer}.s-user-settings-delete-success-body{color:#6b7280;font-size:0.875rem;line-height:1.625;margin-bottom:1.25rem}.s-user-settings-delete-success-btn{--s-button-color:#004956}.mx-1{margin-left:0.25rem;margin-right:0.25rem}.block{display:block}.hidden{display:none}.font-bold{font-weight:700}.outline{outline-style:solid}.s-has-error{--tw-border-opacity:1;border-color:rgb(248 113 113 / var(--tw-border-opacity, 1))}.s-has-error:focus{--tw-border-opacity:1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.btn{display:inline-flex;flex:1 1 0%;align-items:center;justify-content:center;white-space:nowrap;border-radius:0.375rem;padding-left:1.5rem;padding-right:1.5rem;padding-bottom:0.625rem;padding-top:0.5rem;font-size:0.875rem;line-height:1.25rem;font-weight:700;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.btn:hover{opacity:0.8}.has-error .s-form-label{color:#ff443a}.has-error .s-form-control,.has-error .s-tel-input-control,.has-error .s-datetime-picker-input{border-color:#ff443a;color:#ff443a}.toggle-checkbox .s-toggle-input{position:absolute;visibility:hidden}.toggle-checkbox .s-toggle-switcher{display:inline-block;background:#ccc;border-radius:16px;width:40px;height:25px;position:relative;vertical-align:middle;transition:background 0.25s}.toggle-checkbox .s-toggle-switcher:before,.toggle-checkbox .s-toggle-switcher:after{content:""}.toggle-checkbox .s-toggle-switcher:before{display:block;background:#fff;border-radius:50%;box-shadow:0 0 0 1px rgba(0,0,0,0.25);width:20px;height:21px;position:absolute;top:2.2px;left:1px;transition:left 0.25s}.toggle-checkbox .s-toggle-input:checked+div{background:#30D158}.toggle-checkbox .s-toggle-input:checked+div:before{left:18px}.s-has-error{--tw-border-opacity:1 !important;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1)) !important;--tw-text-opacity:1 !important;color:rgb(239 68 68 / var(--tw-text-opacity, 1)) !important}.s-toggle{cursor:pointer;display:inline-block}.s-toggle .s-toggle-input{position:absolute;visibility:hidden}.s-toggle .s-toggle-label{margin-left:5px;position:relative;top:2px}.s-toggle .s-toggle-switcher{display:inline-block;background:#ccc;border-radius:16px;width:40px;height:25px;position:relative;vertical-align:middle;transition:background 0.25s}.s-toggle .s-toggle-switcher:before,.s-toggle .s-toggle-switcher:after{content:""}.s-toggle .s-toggle-switcher:before{display:block;background:#fff;border-radius:50%;box-shadow:0 0 0 1px rgba(0,0,0,0.25);width:20px;height:21px;position:absolute;top:2.2px;left:1px;transition:left 0.25s}.s-toggle .s-toggle-input:checked+div{background:#30D158}.s-toggle .s-toggle-input:checked+div:before{left:18px}.s-user-settings-section{border-bottom-width:1px;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.s-user-settings-section:first-child{border-bottom-right-radius:0px;border-bottom-left-radius:0px;border-top-left-radius:0.375rem;border-top-right-radius:0.375rem}.s-user-settings-section:last-child{border-bottom-right-radius:0.375rem;border-bottom-left-radius:0.375rem;border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-width:0px}.s-user-settings-section .s-list-tile-item{align-items:flex-start;background-color:transparent;padding:1.25rem}@media (min-width: 768px){.s-user-settings-section .s-list-tile-item{align-items:center}}.s-user-settings-section .s-list-tile-item-action{margin-left:auto}.s-user-settings-section .s-list-tile-item-action:where([dir="rtl"],[dir="rtl"] *){margin-right:auto;margin-left:0px}.s-user-settings-section .s-list-tile-item-action button{width:100%;padding:10px}.s-user-settings-section-delete-user .s-list-tile-item{flex-wrap:wrap}@media (min-width: 768px){.s-user-settings-section-delete-user .s-list-tile-item{flex-wrap:nowrap}}.s-user-settings-section-delete-user .s-list-tile-item-icon{position:relative;top:5px}@media (min-width: 768px){.s-user-settings-section-delete-user .s-list-tile-item-icon{top:0px}}@media (max-width: 768px){.s-user-settings-section-delete-user .s-list-tile-item-content{flex:1 0 85%}.s-user-settings-section-delete-user .s-list-tile-item-action{flex:1 1 100%;margin-top:1rem}}.s-user-settings-section-title{font-size:1rem;line-height:1.5rem;--tw-text-opacity:1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.s-user-settings-section-subtitle{font-size:0.75rem;line-height:1rem;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-user-settings-section-icon svg{height:1.25rem;width:1.25rem}.s-user-settings-confirmation{text-align:center}.s-user-settings-confirmation svg{text-align:center}.s-user-settings-confirmation-icon{display:inline-flex;height:3rem;width:3rem;align-items:center;justify-content:center;border-radius:9999px;border-width:1px;border-style:solid;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}@media (min-width: 640px){.s-user-settings-confirmation-icon{margin-left:auto;margin-right:auto;margin-bottom:1rem;height:5rem;width:5rem}}.s-user-settings-confirmation-icon:where([dir="ltr"],[dir="ltr"] *){margin-right:0.5rem}@media (min-width: 640px){.s-user-settings-confirmation-icon:where([dir="ltr"],[dir="ltr"] *){margin-right:0px}}.s-user-settings-confirmation-icon:where([dir="rtl"],[dir="rtl"] *){margin-left:0.5rem}@media (min-width: 640px){.s-user-settings-confirmation-icon:where([dir="rtl"],[dir="rtl"] *){margin-left:0px}}.s-user-settings-confirmation-icon svg{height:1.25rem;width:1.25rem;flex-shrink:0;fill:#9ca3af}.s-user-settings-confirmation-warning{font-size:0.75rem;line-height:1rem;--tw-text-opacity:1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.s-user-settings-confirmation-actions{margin-top:1.25rem;display:flex;align-items:center;justify-content:space-between}.s-user-settings-confirmation-actions>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.s-user-settings-confirmation-actions:where([dir="rtl"],[dir="rtl"] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}';export{i as salla_user_settings}
|