@salla.sa/twilight-components 2.14.357 → 2.14.358
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{filepond-CVZ-BhRy.js → filepond-C8Iv03Xw.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-2ShKuqPr.js → filepond-plugin-file-poster-6G0m20wb.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-BFWtiLWL.js → filepond-plugin-file-validate-size-BrrvFDrX.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-BzqK-hKY.js → filepond-plugin-file-validate-type-BAIli6YR.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-Bcnu5eSZ.js → filepond-plugin-image-edit-CLI8O8iN.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-CCnsEJ8x.js → filepond-plugin-image-exif-orientation-D6pllZWx.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-kn_ZJZXi.js → filepond-plugin-image-preview-CkkozCc3.js} +1 -1
- package/dist/cjs/{index-B-qAr7bS.js → index-CiABtziQ.js} +1 -1
- package/dist/cjs/{index-CF5bZnDB.js → index-D8CYdUGa.js} +6 -6
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_4.cjs.entry.js +1 -1
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +10 -10
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
- package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +1 -1
- package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +1 -1
- package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
- package/dist/cjs/salla-social.cjs.entry.js +1 -1
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +57 -47
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-DuWLLDIZ.js → vanilla-picker-AGoPnWFt.js} +1 -1
- package/dist/collection/components/salla-user-menu/salla-user-menu.js +76 -46
- package/dist/components/index.js +2 -2
- package/dist/components/salla-login-modal.js +1 -358
- package/dist/components/salla-login-modal2.js +363 -0
- package/dist/components/salla-user-menu.js +76 -47
- package/dist/esm/{filepond-BInIwZYj.js → filepond-BbukY3G5.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-DRu2Mi6P.js → filepond-plugin-file-poster-DIB4KhNs.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-DO5zxC4X.js → filepond-plugin-file-validate-size-C2La5co0.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-BwxMZ28-.js → filepond-plugin-file-validate-type-s5WI8DP4.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-CwEZfbKE.js → filepond-plugin-image-edit-BdW45IS3.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-B2YJJ8ni.js → filepond-plugin-image-exif-orientation-C12lmnIq.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-BdiNpvoD.js → filepond-plugin-image-preview-DC2SjiV6.js} +1 -1
- package/dist/esm/{index-BKsC0x_d.js → index-COH2oGKJ.js} +1 -1
- package/dist/esm/{index-DhtEPVv1.js → index-CTOqXLNX.js} +6 -6
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_3.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_4.entry.js +1 -1
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +10 -10
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-comment-form_8.entry.js +1 -1
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-count-down_2.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +1 -1
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +1 -1
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-list-tile.entry.js +1 -1
- package/dist/esm/salla-localization-modal.entry.js +1 -1
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +1 -1
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-menu.entry.js +1 -1
- package/dist/esm/salla-metadata.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-notification-item.entry.js +1 -1
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer-modal.entry.js +1 -1
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +1 -1
- package/dist/esm/salla-order-totals-card.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +1 -1
- package/dist/esm/salla-placeholder.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +1 -1
- package/dist/esm/salla-products-slider.entry.js +1 -1
- package/dist/esm/salla-progress-bar.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +1 -1
- package/dist/esm/salla-skeleton.entry.js +1 -1
- package/dist/esm/salla-slider.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +1 -1
- package/dist/esm/salla-social.entry.js +1 -1
- package/dist/esm/salla-tab-content_3.entry.js +1 -1
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +1 -1
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-user-menu.entry.js +57 -47
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +1 -1
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-9y3LOKrc.js → vanilla-picker-xnlQPhDH.js} +1 -1
- package/dist/twilight/p-030cfa72.entry.js +4 -0
- package/dist/twilight/{p-12c7abc7.entry.js → p-08085ebd.entry.js} +1 -1
- package/dist/twilight/{p-0523a5ef.entry.js → p-1a18938a.entry.js} +1 -1
- package/dist/twilight/{p-63fb4f6a.entry.js → p-1b706044.entry.js} +1 -1
- package/dist/twilight/{p-9902b843.entry.js → p-25d51430.entry.js} +1 -1
- package/dist/twilight/{p-3071d452.entry.js → p-26c0b94a.entry.js} +1 -1
- package/dist/twilight/{p-f47c7d7e.entry.js → p-26cc636d.entry.js} +1 -1
- package/dist/twilight/{p-8318e5a4.entry.js → p-2f9c2638.entry.js} +1 -1
- package/dist/twilight/{p-da2a9d5e.entry.js → p-3306aeb9.entry.js} +1 -1
- package/dist/twilight/{p-9da9a96e.entry.js → p-331cc73d.entry.js} +1 -1
- package/dist/twilight/{p-83a9dae4.entry.js → p-341b1773.entry.js} +1 -1
- package/dist/twilight/{p-ca414718.entry.js → p-342648a6.entry.js} +1 -1
- package/dist/twilight/{p-de3f8afc.entry.js → p-3cfcccd4.entry.js} +1 -1
- package/dist/twilight/{p-06af1120.entry.js → p-3d953eaa.entry.js} +1 -1
- package/dist/twilight/{p-56b5658d.entry.js → p-40fe2fdb.entry.js} +1 -1
- package/dist/twilight/{p-47bc1b0e.entry.js → p-4288fffb.entry.js} +1 -1
- package/dist/twilight/{p-378f9cb2.entry.js → p-45cfc834.entry.js} +1 -1
- package/dist/twilight/{p-17a49368.entry.js → p-4d8b8554.entry.js} +1 -1
- package/dist/twilight/{p-00c8b870.entry.js → p-53fcf35b.entry.js} +1 -1
- package/dist/twilight/{p-dbd7bab7.entry.js → p-54a1b32c.entry.js} +1 -1
- package/dist/twilight/{p-659378d1.entry.js → p-5c57f6a7.entry.js} +1 -1
- package/dist/twilight/{p-706fc07a.entry.js → p-605cf513.entry.js} +1 -1
- package/dist/twilight/{p-a5094c62.entry.js → p-61ab5693.entry.js} +1 -1
- package/dist/twilight/{p-2ab31b93.entry.js → p-66d0fc30.entry.js} +1 -1
- package/dist/twilight/{p-fd9858a0.entry.js → p-680a8a26.entry.js} +1 -1
- package/dist/twilight/{p-478da0db.entry.js → p-6b166062.entry.js} +1 -1
- package/dist/twilight/{p-6aa0b298.entry.js → p-6be952b4.entry.js} +1 -1
- package/dist/twilight/{p-b350c896.entry.js → p-6cf2ffe8.entry.js} +1 -1
- package/dist/twilight/{p-df17bdfb.entry.js → p-707bbd12.entry.js} +1 -1
- package/dist/twilight/{p-476a002f.entry.js → p-73f89ae0.entry.js} +1 -1
- package/dist/twilight/{p-5a691df0.entry.js → p-770b684e.entry.js} +1 -1
- package/dist/twilight/{p-67656ed6.entry.js → p-77380609.entry.js} +1 -1
- package/dist/twilight/{p-04871dde.entry.js → p-7fc1087d.entry.js} +1 -1
- package/dist/twilight/{p-a37b4382.entry.js → p-81148c5c.entry.js} +1 -1
- package/dist/twilight/{p-e13bcda5.entry.js → p-852f653a.entry.js} +1 -1
- package/dist/twilight/{p-6b48b78c.entry.js → p-881d81da.entry.js} +1 -1
- package/dist/twilight/{p-18c1aa82.entry.js → p-8b251669.entry.js} +1 -1
- package/dist/twilight/{p-68f77bf9.entry.js → p-8b444008.entry.js} +1 -1
- package/dist/twilight/{p-8e3ab101.entry.js → p-8c87fc89.entry.js} +1 -1
- package/dist/twilight/{p-ddf1eb8e.entry.js → p-8d380340.entry.js} +1 -1
- package/dist/twilight/{p-c623dae3.entry.js → p-9247e41a.entry.js} +1 -1
- package/dist/twilight/{p-c50ea722.entry.js → p-953dc2c7.entry.js} +1 -1
- package/dist/twilight/{p-C5JBfwX3.js → p-BTHq9O3t.js} +1 -1
- package/dist/twilight/{p-9kdhmfl0.js → p-B_QZ5Uh8.js} +2 -2
- package/dist/twilight/{p-DhtEPVv1.js → p-CTOqXLNX.js} +1 -1
- package/dist/twilight/{p-BnEemU3K.js → p-CUP6xpY8.js} +1 -1
- package/dist/twilight/{p-Oa-SLesW.js → p-CVhlRyCZ.js} +1 -1
- package/dist/twilight/p-CeLw8fUj.js +9 -0
- package/dist/twilight/{p-D5Ctrxqk.js → p-CfxXglSG.js} +1 -1
- package/dist/twilight/{p-ChWBy7Mi.js → p-D-swSluC.js} +1 -1
- package/dist/twilight/{p-sTgCEptc.js → p-DneV5uAu.js} +1 -1
- package/dist/twilight/{p-c6abc912.entry.js → p-a1fa152d.entry.js} +1 -1
- package/dist/twilight/{p-e61517dd.entry.js → p-a2536d37.entry.js} +1 -1
- package/dist/twilight/{p-ead767db.entry.js → p-a44e8395.entry.js} +1 -1
- package/dist/twilight/{p-89f4a500.entry.js → p-a6f29cf5.entry.js} +1 -1
- package/dist/twilight/{p-4d200466.entry.js → p-a84a4855.entry.js} +1 -1
- package/dist/twilight/{p-e0506d5f.entry.js → p-aa2ba103.entry.js} +1 -1
- package/dist/twilight/{p-6c9a3556.entry.js → p-aea1ea51.entry.js} +1 -1
- package/dist/twilight/{p-d597ea5a.entry.js → p-b02413c6.entry.js} +1 -1
- package/dist/twilight/{p-e0f3dcc1.entry.js → p-b8738435.entry.js} +1 -1
- package/dist/twilight/{p-3874791d.entry.js → p-b95b8e92.entry.js} +1 -1
- package/dist/twilight/{p-0317ca56.entry.js → p-bb333ec8.entry.js} +1 -1
- package/dist/twilight/{p-c2167627.entry.js → p-bff05b48.entry.js} +1 -1
- package/dist/twilight/{p-af829f6e.entry.js → p-ca96c86b.entry.js} +1 -1
- package/dist/twilight/{p-a1853dac.entry.js → p-cb619ea6.entry.js} +1 -1
- package/dist/twilight/{p-93e72677.entry.js → p-cec6fce5.entry.js} +1 -1
- package/dist/twilight/{p-e6de17d2.entry.js → p-d3852cc4.entry.js} +1 -1
- package/dist/twilight/{p-8b8442ec.entry.js → p-d8affce0.entry.js} +1 -1
- package/dist/twilight/{p-0108db0e.entry.js → p-dcb6403c.entry.js} +1 -1
- package/dist/twilight/{p-3253d74f.entry.js → p-e9619d27.entry.js} +1 -1
- package/dist/twilight/{p-e0f56ef8.entry.js → p-ed8ce802.entry.js} +1 -1
- package/dist/twilight/{p-adbb3dcd.entry.js → p-f81009de.entry.js} +1 -1
- package/dist/twilight/{p-135b2262.entry.js → p-f81e3982.entry.js} +1 -1
- package/dist/twilight/{p-b01b370a.entry.js → p-fbc8d862.entry.js} +1 -1
- package/dist/twilight/{p-5636bdc5.entry.js → p-fc958ce6.entry.js} +1 -1
- package/dist/twilight/{p-DucyXwUa.js → p-kA0d1JcV.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +7 -1
- package/dist/types/components.d.ts +10 -0
- package/package.json +5 -5
- package/dist/twilight/p-a798090d.entry.js +0 -4
- package/dist/twilight/p-upVSO4PR.js +0 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-CTOqXLNX.js';
|
|
5
5
|
import { H as Helper } from './Helper-B5RLi6Xo.js';
|
|
6
6
|
import './anime.es-CgtvEd63.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-CTOqXLNX.js';
|
|
5
5
|
import { S as SpecialDiscountIcon } from './special-discount-Ctkfc4K-.js';
|
|
6
6
|
|
|
7
7
|
var Tag = `<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-CTOqXLNX.js';
|
|
5
5
|
|
|
6
6
|
var copyIcon = `<!-- Generated by IcoMoon.io -->
|
|
7
7
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h } from './index-
|
|
4
|
+
import { r as registerInstance, h } from './index-CTOqXLNX.js';
|
|
5
5
|
import { i as iconCheck } from './check-BsXh13x8.js';
|
|
6
6
|
|
|
7
7
|
var iconFileArchive = `<!-- Generated by IcoMoon.io -->
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-CTOqXLNX.js';
|
|
5
5
|
import { H as Helper } from './Helper-B5RLi6Xo.js';
|
|
6
6
|
import './anime.es-CgtvEd63.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-CTOqXLNX.js';
|
|
5
5
|
|
|
6
6
|
const sallaPaymentsCss = ":host{display:block}";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-CTOqXLNX.js';
|
|
5
5
|
|
|
6
6
|
var Inbox = `<!-- Generated by IcoMoon.io -->
|
|
7
7
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-CTOqXLNX.js';
|
|
5
5
|
import { a as arrowLeft } from './arrow-left-BedNk7k1.js';
|
|
6
6
|
|
|
7
7
|
var arrowRight = `<!-- Generated by IcoMoon.io -->
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-CTOqXLNX.js';
|
|
5
5
|
|
|
6
6
|
var PencilRuler = `<!-- Generated by IcoMoon.io -->
|
|
7
7
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-CTOqXLNX.js';
|
|
5
5
|
import { a as anime } from './anime.es-CgtvEd63.js';
|
|
6
6
|
import { S as ShoppingBag } from './shopping-bag-DiKTtDW5.js';
|
|
7
7
|
import { H as Helper } from './Helper-B5RLi6Xo.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-CTOqXLNX.js';
|
|
5
5
|
import { H as Helper } from './Helper-B5RLi6Xo.js';
|
|
6
6
|
import './anime.es-CgtvEd63.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-CTOqXLNX.js';
|
|
5
5
|
import { M as MailIcon } from './mail-DmgxDvXL.js';
|
|
6
6
|
import { C as Cancel } from './cancel-BsLF_HK7.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-CTOqXLNX.js';
|
|
5
5
|
import { W as WishListIcon } from './star-ZT7ehBBk.js';
|
|
6
6
|
import { C as CheckCircle2 } from './check-circle2-BV4kqbdL.js';
|
|
7
7
|
import { H as Helper } from './Helper-B5RLi6Xo.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-CTOqXLNX.js';
|
|
5
5
|
import { S as Search } from './search-BscTeWDc.js';
|
|
6
6
|
|
|
7
7
|
var StoreAlt = `<!-- Generated by IcoMoon.io -->
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-CTOqXLNX.js';
|
|
5
5
|
import { S as Search } from './search-BscTeWDc.js';
|
|
6
6
|
import { H as Helper } from './Helper-B5RLi6Xo.js';
|
|
7
7
|
import './anime.es-CgtvEd63.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-CTOqXLNX.js';
|
|
5
5
|
import { a as ArrowRightIcon, A as ArrowLeftIcon } from './keyboard_arrow_right-Vqpj4CWE.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-CTOqXLNX.js';
|
|
5
5
|
import { a as anime } from './anime.es-CgtvEd63.js';
|
|
6
6
|
import { f as facebook, t as twitter } from './facebook-CO-PeZ27.js';
|
|
7
7
|
import { M as MailIcon } from './mail-DmgxDvXL.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-CTOqXLNX.js';
|
|
5
5
|
import { f as facebook, t as twitter } from './facebook-CO-PeZ27.js';
|
|
6
6
|
|
|
7
7
|
var instagram = `<!-- Generated by IcoMoon.io -->
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, c as createEvent, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, c as createEvent, a as getElement } from './index-CTOqXLNX.js';
|
|
5
5
|
|
|
6
6
|
const sallaTabContentCss = "";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-CTOqXLNX.js';
|
|
5
5
|
|
|
6
6
|
const sallaTooltipCss = ".s-tooltip-container{position:relative;display:inline-block}.s-tooltip-item{position:absolute;transform:translateX(-39%);background-color:#baf3e6;color:#004d5a;bottom:100%;left:50%;text-align:center;border-radius:5px;z-index:1;white-space:nowrap;opacity:0;transition:opacity 0.3s;pointer-events:none;margin:0 0 16px 8px;padding:12px;max-width:150px;width:190px;white-space:normal;opacity:1}.s-tooltip-item::after{content:\"\";position:absolute;bottom:-10px;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#baf3e6 transparent transparent transparent}.s-tooltip-item:dir(ltr){transform:translateX(-72%)}";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-CTOqXLNX.js';
|
|
5
5
|
import { A as ArrowDown } from './keyboard_arrow_down-DCZbpt2a.js';
|
|
6
6
|
import { B as BellRing } from './bell-ring-D3mWkc-3.js';
|
|
7
7
|
import { P as PendingOrdersIcon } from './cart-DY4LZmNP.js';
|
|
@@ -89,6 +89,10 @@ const SallaUserMenu = class {
|
|
|
89
89
|
* To Make the dropdown menu relative to parent element or not
|
|
90
90
|
*/
|
|
91
91
|
this.relativeDropdown = false;
|
|
92
|
+
/**
|
|
93
|
+
* To auto mount the login modal or not
|
|
94
|
+
*/
|
|
95
|
+
this.autoMount = false;
|
|
92
96
|
this.onClickOutside = () => {
|
|
93
97
|
this.opened = false;
|
|
94
98
|
};
|
|
@@ -102,56 +106,12 @@ const SallaUserMenu = class {
|
|
|
102
106
|
loyalty_program: loyaltyProgramIcon,
|
|
103
107
|
profile: UserCircle
|
|
104
108
|
};
|
|
105
|
-
// salla.auth.event.onLoggedIn(() => {
|
|
106
|
-
// this.is_loggedIn = true
|
|
107
|
-
// })
|
|
108
|
-
salla.lang.onLoaded(() => {
|
|
109
|
-
this.notifications = salla.lang.get('common.titles.notifications');
|
|
110
|
-
this.orders = salla.lang.get('common.titles.orders');
|
|
111
|
-
this.pending_orders = salla.lang.get('common.titles.pending_orders');
|
|
112
|
-
this.wishlist = salla.lang.get('common.titles.wishlist');
|
|
113
|
-
this.profile = salla.lang.get('common.titles.profile');
|
|
114
|
-
this.hello = salla.lang.get('pages.checkout.hello');
|
|
115
|
-
this.rating = salla.lang.get('common.titles.rating');
|
|
116
|
-
this.wallet = salla.lang.get('common.titles.wallet');
|
|
117
|
-
this.settings = salla.lang.get('common.titles.settings');
|
|
118
|
-
this.loyalty_program = salla.lang.get('pages.loyalty_program.loyalty_points');
|
|
119
|
-
this.logout = salla.lang.get('blocks.header.logout');
|
|
120
|
-
});
|
|
121
|
-
Salla.onReady(() => {
|
|
122
|
-
if (salla.config.isGuest()) {
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
this.is_loggedIn = true;
|
|
126
|
-
/**
|
|
127
|
-
* Get Fresh Notifications In These Cases:
|
|
128
|
-
* - is notification page, if user already changed the status of his orders (to reset notification badge)
|
|
129
|
-
* - is pending orders page, if user already changed the status of his orders (to reset orders badge)
|
|
130
|
-
* - is profile page, in case user changed his name or avatar, we need to update it
|
|
131
|
-
* - half hour is passed from the last user data fetched
|
|
132
|
-
*
|
|
133
|
-
* //todo:: update the data in the storage in customer pages
|
|
134
|
-
* //todo:: cover two requests in customer pages
|
|
135
|
-
* //todo:: make sure to run this only after token is set
|
|
136
|
-
*/
|
|
137
|
-
const shouldFetchProfile = !this.inline &&
|
|
138
|
-
(salla.url.is_page('customer.notifications') ||
|
|
139
|
-
salla.url.is_page('customer.orders.index.pending') ||
|
|
140
|
-
salla.url.is_page('customer.profile') ||
|
|
141
|
-
(Date.now() - (salla.storage.get('user.fetched_at') || 0)) / 1000 / 60 > 30);
|
|
142
|
-
if (shouldFetchProfile) {
|
|
143
|
-
this.fetchFreshProfile();
|
|
144
|
-
}
|
|
145
|
-
else {
|
|
146
|
-
salla.event.on('profile::info.fetched', res => {
|
|
147
|
-
this.updateProfileState(res);
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
109
|
}
|
|
152
110
|
async componentWillLoad() {
|
|
153
111
|
await salla.onReady();
|
|
154
112
|
await salla.lang.onLoaded();
|
|
113
|
+
this.loadTranslations();
|
|
114
|
+
this.initiate();
|
|
155
115
|
Salla.event.on('api::token.injected', (token) => this.profileUrl = this.buildProfileUrl(token));
|
|
156
116
|
this.sallaAccountEnabled = Salla.config.get('store.features')?.includes('salla-account');
|
|
157
117
|
this.items = this.sallaAccountEnabled ? { ...this.items, settings: SettingstIcon } : this.items;
|
|
@@ -175,6 +135,56 @@ const SallaUserMenu = class {
|
|
|
175
135
|
this.triggerSlot = trigger.innerHTML;
|
|
176
136
|
trigger.innerHTML = this.replaceParams(trigger.innerHTML);
|
|
177
137
|
}
|
|
138
|
+
loadTranslations() {
|
|
139
|
+
this.notifications = Salla.lang.get('common.titles.notifications');
|
|
140
|
+
this.orders = Salla.lang.get('common.titles.orders');
|
|
141
|
+
this.pending_orders = Salla.lang.get('common.titles.pending_orders');
|
|
142
|
+
this.wishlist = Salla.lang.get('common.titles.wishlist');
|
|
143
|
+
this.profile = Salla.lang.get('common.titles.profile');
|
|
144
|
+
this.hello = Salla.lang.get('pages.checkout.hello');
|
|
145
|
+
this.rating = Salla.lang.get('common.titles.rating');
|
|
146
|
+
this.wallet = Salla.lang.get('common.titles.wallet');
|
|
147
|
+
this.settings = Salla.lang.get('common.titles.settings');
|
|
148
|
+
this.loyalty_program = Salla.lang.get('pages.loyalty_program.loyalty_points');
|
|
149
|
+
this.logout = Salla.lang.get('blocks.header.logout');
|
|
150
|
+
}
|
|
151
|
+
initiate() {
|
|
152
|
+
if (Salla.config.isGuest()) {
|
|
153
|
+
return this.autoMountLoginModal();
|
|
154
|
+
}
|
|
155
|
+
this.is_loggedIn = true;
|
|
156
|
+
/**
|
|
157
|
+
* Get Fresh Notifications In These Cases:
|
|
158
|
+
* - is notification page, if user already changed the status of his orders (to reset notification badge)
|
|
159
|
+
* - is pending orders page, if user already changed the status of his orders (to reset orders badge)
|
|
160
|
+
* - is profile page, in case user changed his name or avatar, we need to update it
|
|
161
|
+
* - half hour is passed from the last user data fetched
|
|
162
|
+
*
|
|
163
|
+
* //todo:: update the data in the storage in customer pages
|
|
164
|
+
* //todo:: cover two requests in customer pages
|
|
165
|
+
* //todo:: make sure to run this only after token is set
|
|
166
|
+
*/
|
|
167
|
+
const shouldFetchProfile = !this.inline &&
|
|
168
|
+
(salla.url.is_page('customer.notifications') ||
|
|
169
|
+
salla.url.is_page('customer.orders.index.pending') ||
|
|
170
|
+
salla.url.is_page('customer.profile') ||
|
|
171
|
+
(Date.now() - (salla.storage.get('user.fetched_at') || 0)) / 1000 / 60 > 30);
|
|
172
|
+
if (shouldFetchProfile) {
|
|
173
|
+
return this.fetchFreshProfile();
|
|
174
|
+
}
|
|
175
|
+
salla.event.on('profile::info.fetched', res => {
|
|
176
|
+
this.updateProfileState(res);
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
autoMountLoginModal() {
|
|
180
|
+
if (!this.autoMount) {
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
if (document.querySelector('salla-login-modal')) {
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
Salla.hooks.mount('body:end', document.createElement('salla-login-modal'));
|
|
187
|
+
}
|
|
178
188
|
fetchFreshProfile() {
|
|
179
189
|
//don't request fetchFreshProfile unless token is injected into the api
|
|
180
190
|
if (!salla.api.token) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h } from './index-
|
|
4
|
+
import { r as registerInstance, h } from './index-CTOqXLNX.js';
|
|
5
5
|
import { G as Genders } from './interfaces-OF8QcbMM.js';
|
|
6
6
|
|
|
7
7
|
const sallaUserProfileCss = ":host{display:block}";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-CTOqXLNX.js';
|
|
5
5
|
|
|
6
6
|
var Bullhorn = `<!-- Generated by IcoMoon.io -->
|
|
7
7
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-CTOqXLNX.js';
|
|
5
5
|
import { M as MailIcon } from './mail-DmgxDvXL.js';
|
|
6
6
|
|
|
7
7
|
var AndroidPhoneIcon = `<!-- Generated by IcoMoon.io -->
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-CTOqXLNX.js';
|
|
5
5
|
|
|
6
6
|
const sallaWalletCss = ".s-wallet-table{min-width:100%}.s-wallet-table-balance-container{display:flex !important;align-items:center !important;justify-content:flex-start !important;gap:1rem}.s-wallet-table-balance-icon{border-radius:50%;width:52px;height:52px;font-size:25px;padding:16px 13px;background:var(--color-primary-reverse);color:var(--color-primary)}.s-wallet-table-empty-state{display:flex;flex-direction:column;align-items:center}.s-wallet-table-empty-state i{font-size:80px;margin:4rem 0 2rem;color:var(--infinte-color)}.s-wallet-table-transaction-status{padding:6px 19px !important;border-radius:20px;width:max-content;display:flex;align-items:center}.s-wallet-table-transaction-status-default{background:#fff6eb;color:#a46f29}.s-wallet-table-transaction-status-cashback{background:#effbf6;color:#00af6c}.s-wallet-table-transaction-status-refund{background:#ecf3fe;color:#5196f3}.s-wallet-table-transaction-status-purchase{background:#feecec;color:#f55157}.s-wallet-table-transaction-status-icons-success{color:#00af6c}";
|
|
7
7
|
|