@salla.sa/twilight-components 2.14.417 → 2.14.419
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-CLDRrF9Y.js → filepond-BiRMqsJc.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-BG080TXY.js → filepond-plugin-file-poster-LU25G59n.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-D9x7yIeS.js → filepond-plugin-file-validate-size-J3-riOvN.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-CpHYiI2P.js → filepond-plugin-file-validate-type-DMawm6j5.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-B6TFtexK.js → filepond-plugin-image-edit-QXtHYcEz.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-C4Ycs5Ji.js → filepond-plugin-image-exif-orientation-C0VBHQjd.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-CWlUoPsm.js → filepond-plugin-image-preview-xG9m-vgD.js} +1 -1
- package/dist/cjs/{functions-B0oYwrYv.js → functions-CZrHAX2r.js} +1 -1
- package/dist/cjs/helpers-BJ2rnhxz.js +197 -0
- package/dist/cjs/{index-BQnJvBnq.js → index-Ce-Twd7-.js} +10 -6
- package/dist/cjs/{index-DEDv7FBx.js → index-DE1iYzD2.js} +1 -1
- package/dist/cjs/interfaces-Bh7W0bEU.js +33 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +37 -58
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-badge.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +12 -12
- package/dist/cjs/salla-bullet-delivery.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +4 -4
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
- package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
- package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-map.cjs.entry.js +1 -1
- package/dist/cjs/salla-menu.cjs.entry.js +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-edit-item.cjs.entry.js +28 -29
- package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +41 -0
- package/dist/cjs/salla-order-edit.cjs.entry.js +339 -40
- package/dist/cjs/salla-order-summary.cjs.entry.js +2 -2
- 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 +3 -3
- package/dist/cjs/salla-placeholder.cjs.entry.js +2 -2
- package/dist/cjs/salla-price-range.cjs.entry.js +3 -3
- package/dist/cjs/salla-product-card_2.cjs.entry.js +6 -6
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +3 -3
- package/dist/cjs/salla-products-list.cjs.entry.js +38 -15
- package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
- package/dist/cjs/salla-scopes.cjs.entry.js +2 -2
- package/dist/cjs/salla-search.cjs.entry.js +6 -6
- package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
- package/dist/cjs/salla-social.cjs.entry.js +2 -2
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/{tracked-promise-BYjrk7x6.js → tracked-promise-DChUtH5B.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-DbbhCpKU.js → vanilla-picker-ivACsPLJ.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/salla-bought-together/salla-bought-together.js +1 -0
- package/dist/collection/components/salla-order-edit/helpers.js +181 -0
- package/dist/collection/components/salla-order-edit/salla-order-edit-item.css +3 -0
- package/dist/collection/components/salla-order-edit/salla-order-edit-item.js +42 -30
- package/dist/collection/components/salla-order-edit/salla-order-edit-product-card.css +4 -0
- package/dist/collection/components/salla-order-edit/salla-order-edit-product-card.js +93 -0
- package/dist/collection/components/salla-order-edit/salla-order-edit.css +3 -0
- package/dist/collection/components/salla-order-edit/salla-order-edit.js +353 -39
- package/dist/collection/components/salla-order-summary/salla-order-summary.js +1 -1
- package/dist/collection/components/salla-payments/salla-payments.js +2 -2
- package/dist/collection/components/salla-placeholder/salla-placeholder.js +1 -1
- package/dist/collection/components/salla-price-range/salla-price-range.js +2 -2
- package/dist/collection/components/salla-product-availability/salla-product-availability.js +1 -1
- package/dist/collection/components/salla-product-card/salla-product-card.js +5 -5
- package/dist/collection/components/salla-product-options/salla-product-options.js +28 -0
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
- package/dist/collection/components/salla-products-list/salla-products-list.js +54 -14
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
- package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +1 -1
- package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
- package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
- package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
- package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
- package/dist/collection/components/salla-search/salla-search.js +5 -5
- package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
- package/dist/collection/components/salla-social/salla-social.js +1 -1
- package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
- package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
- package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/salla-bought-together.js +1 -0
- package/dist/components/salla-order-edit-item2.js +207 -30
- package/dist/components/salla-order-edit-product-card.d.ts +11 -0
- package/dist/components/salla-order-edit-product-card.js +59 -0
- package/dist/components/salla-order-edit.js +378 -65
- package/dist/components/salla-order-summary.js +1 -1
- package/dist/components/salla-payments.js +2 -2
- package/dist/components/salla-placeholder2.js +1 -1
- package/dist/components/salla-price-range2.js +2 -2
- package/dist/components/salla-product-availability2.js +1 -1
- package/dist/components/salla-product-card2.js +5 -5
- package/dist/components/salla-product-options2.js +8 -1
- package/dist/components/salla-product-size-guide.js +2 -2
- package/dist/components/salla-products-list2.js +39 -15
- package/dist/components/salla-quantity-input2.js +1 -1
- package/dist/components/salla-quick-buy2.js +1 -1
- package/dist/components/salla-review-card2.js +1 -1
- package/dist/components/salla-reviews-page.js +1 -1
- package/dist/components/salla-reviews.js +1 -1
- package/dist/components/salla-scopes.js +1 -1
- package/dist/components/salla-search.js +5 -5
- package/dist/components/salla-skeleton2.js +1 -1
- package/dist/components/salla-social-share.js +1 -1
- package/dist/components/salla-social.js +1 -1
- package/dist/components/salla-tab-content2.js +1 -1
- package/dist/components/salla-tab-header2.js +1 -1
- package/dist/components/salla-tabs2.js +1 -1
- package/dist/components/salla-tel-input2.js +1 -1
- package/dist/components/salla-tooltip2.js +1 -1
- package/dist/components/salla-user-settings.js +1 -1
- package/dist/esm/{filepond-B25v0bOp.js → filepond-0Pvy36B6.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-3pI-GrYi.js → filepond-plugin-file-poster-DV7OW1XJ.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-BF3zIjLe.js → filepond-plugin-file-validate-size-DEya24r_.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-BR91w5t3.js → filepond-plugin-file-validate-type-DiFvVzC6.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-DPwgIvr6.js → filepond-plugin-image-edit-DGBw5KRt.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-Ba27xDEr.js → filepond-plugin-image-exif-orientation-BbpZAlI-.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-CAEqmh_E.js → filepond-plugin-image-preview-CjRkn0jY.js} +1 -1
- package/dist/esm/{functions-Bk6s9Xp6.js → functions-BcJ4xDKw.js} +1 -1
- package/dist/esm/helpers-DR_vlSvU.js +184 -0
- package/dist/esm/{index-SSgsVJTU.js → index-313k5SuU.js} +1 -1
- package/dist/esm/{index-CN6KGTlN.js → index-CfaNNoM2.js} +10 -6
- package/dist/esm/interfaces-CoQJOPRz.js +33 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_5.entry.js +11 -32
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-badge.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +12 -12
- package/dist/esm/salla-bullet-delivery.entry.js +1 -1
- package/dist/esm/salla-cart-coupons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-comment-form_8.entry.js +4 -4
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-cookies-bar.entry.js +1 -1
- package/dist/esm/salla-count-down.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-delivery-promise.entry.js +1 -1
- package/dist/esm/salla-edit-order-button.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +1 -1
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +1 -1
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-list-tile.entry.js +1 -1
- package/dist/esm/salla-localization-modal.entry.js +1 -1
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-banner.entry.js +2 -2
- package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
- package/dist/esm/salla-loyalty-panel.entry.js +3 -3
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +3 -3
- package/dist/esm/salla-loyalty-reward.entry.js +2 -2
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-map.entry.js +1 -1
- package/dist/esm/salla-menu.entry.js +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-edit-item.entry.js +28 -29
- package/dist/esm/salla-order-edit-product-card.entry.js +39 -0
- package/dist/esm/salla-order-edit.entry.js +339 -40
- package/dist/esm/salla-order-summary.entry.js +2 -2
- 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 +3 -3
- package/dist/esm/salla-placeholder.entry.js +2 -2
- package/dist/esm/salla-price-range.entry.js +3 -3
- package/dist/esm/salla-product-card_2.entry.js +6 -6
- package/dist/esm/salla-product-size-guide.entry.js +3 -3
- package/dist/esm/salla-products-list.entry.js +38 -15
- package/dist/esm/salla-progress-bar.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- package/dist/esm/salla-reward-action_4.entry.js +3 -3
- package/dist/esm/salla-scopes.entry.js +2 -2
- package/dist/esm/salla-search.entry.js +6 -6
- package/dist/esm/salla-skeleton.entry.js +2 -2
- package/dist/esm/salla-slider.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +2 -2
- package/dist/esm/salla-social.entry.js +2 -2
- package/dist/esm/salla-tab-content_3.entry.js +4 -4
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +2 -2
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-user-menu.entry.js +1 -1
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +2 -2
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/{tracked-promise-BpxjPYjA.js → tracked-promise-xD-AZOwt.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-CoVpA0FA.js → vanilla-picker-Bu8PG2Le.js} +1 -1
- package/dist/twilight/{p-5fe916ee.entry.js → p-02600ee1.entry.js} +1 -1
- package/dist/twilight/{p-f6862c1d.entry.js → p-02608fcd.entry.js} +1 -1
- package/dist/twilight/{p-7d0a6459.entry.js → p-029f9bfd.entry.js} +1 -1
- package/dist/twilight/p-073536c3.entry.js +4 -0
- package/dist/twilight/{p-89e6dc27.entry.js → p-0d4afc4b.entry.js} +1 -1
- package/dist/twilight/{p-529f8c0a.entry.js → p-11da9c5a.entry.js} +1 -1
- package/dist/twilight/{p-5980a88b.entry.js → p-13b1dae0.entry.js} +1 -1
- package/dist/twilight/{p-b94fd507.entry.js → p-13f019f5.entry.js} +1 -1
- package/dist/twilight/{p-65b943d6.entry.js → p-15be9e7a.entry.js} +1 -1
- package/dist/twilight/{p-f6010b04.entry.js → p-1bce06bf.entry.js} +1 -1
- package/dist/twilight/{p-93489e49.entry.js → p-1fe827c7.entry.js} +1 -1
- package/dist/twilight/{p-a3eaba68.entry.js → p-22d12f28.entry.js} +1 -1
- package/dist/twilight/{p-53c44a72.entry.js → p-2afe64d1.entry.js} +1 -1
- package/dist/twilight/{p-269c76e2.entry.js → p-2bb796b3.entry.js} +1 -1
- package/dist/twilight/{p-bbf9d24f.entry.js → p-2f1cb6da.entry.js} +1 -1
- package/dist/twilight/{p-337dc693.entry.js → p-3252277a.entry.js} +1 -1
- package/dist/twilight/{p-fa6c9d88.entry.js → p-3539d2a1.entry.js} +1 -1
- package/dist/twilight/{p-01e5a467.entry.js → p-3bda095b.entry.js} +1 -1
- package/dist/twilight/{p-44147d14.entry.js → p-3d286589.entry.js} +1 -1
- package/dist/twilight/{p-4e02648d.entry.js → p-410f0149.entry.js} +1 -1
- package/dist/twilight/{p-21c9f888.entry.js → p-42bf8cc1.entry.js} +1 -1
- package/dist/twilight/p-43c4c857.entry.js +4 -0
- package/dist/twilight/{p-fd200890.entry.js → p-4550de2d.entry.js} +1 -1
- package/dist/twilight/{p-f6cb5670.entry.js → p-4752dc2c.entry.js} +1 -1
- package/dist/twilight/{p-943a70d5.entry.js → p-48aba4cd.entry.js} +1 -1
- package/dist/twilight/p-49e28ca2.entry.js +4 -0
- package/dist/twilight/{p-3a336511.entry.js → p-4a7cbe49.entry.js} +1 -1
- package/dist/twilight/{p-ce32049d.entry.js → p-51252013.entry.js} +1 -1
- package/dist/twilight/{p-5c2221e4.entry.js → p-53e63007.entry.js} +1 -1
- package/dist/twilight/{p-60bcb05d.entry.js → p-57a4f3d2.entry.js} +1 -1
- package/dist/twilight/{p-50562d51.entry.js → p-5dbb89d5.entry.js} +1 -1
- package/dist/twilight/p-5dd07559.entry.js +4 -0
- package/dist/twilight/{p-5a719b92.entry.js → p-5dd75357.entry.js} +1 -1
- package/dist/twilight/p-5e4e45be.entry.js +4 -0
- package/dist/twilight/{p-93fd1f4c.entry.js → p-5f174a3e.entry.js} +1 -1
- package/dist/twilight/{p-901f4d3c.entry.js → p-625218f7.entry.js} +1 -1
- package/dist/twilight/{p-12a70121.entry.js → p-654a0990.entry.js} +1 -1
- package/dist/twilight/{p-89912723.entry.js → p-654b9857.entry.js} +1 -1
- package/dist/twilight/{p-2a3c8c27.entry.js → p-65ff0bf4.entry.js} +1 -1
- package/dist/twilight/{p-41338b27.entry.js → p-665aa4d1.entry.js} +1 -1
- package/dist/twilight/{p-30847b55.entry.js → p-69bec0e3.entry.js} +1 -1
- package/dist/twilight/{p-4546305a.entry.js → p-6b02b118.entry.js} +1 -1
- package/dist/twilight/{p-a3a24c3a.entry.js → p-72d4121c.entry.js} +1 -1
- package/dist/twilight/{p-9e2f4e04.entry.js → p-74cd506d.entry.js} +1 -1
- package/dist/twilight/{p-ea67e7fb.entry.js → p-75f26291.entry.js} +1 -1
- package/dist/twilight/{p-8cd3e1ee.entry.js → p-7ce1dff1.entry.js} +1 -1
- package/dist/twilight/{p-4f898f9a.entry.js → p-7d08def1.entry.js} +1 -1
- package/dist/twilight/{p-984ad4f5.entry.js → p-7f6c6d8a.entry.js} +1 -1
- package/dist/twilight/{p-f953dac6.entry.js → p-82d776ae.entry.js} +1 -1
- package/dist/twilight/{p-7df3848c.entry.js → p-87e78adc.entry.js} +1 -1
- package/dist/twilight/{p-a0f201dc.entry.js → p-891e4b61.entry.js} +1 -1
- package/dist/twilight/{p-f8971c24.entry.js → p-8bdd9c9b.entry.js} +1 -1
- package/dist/twilight/{p-b21dff70.entry.js → p-8d0b4049.entry.js} +1 -1
- package/dist/twilight/{p-92948a3c.entry.js → p-8dbff2c8.entry.js} +1 -1
- package/dist/twilight/{p-cb7286b0.entry.js → p-944b02ec.entry.js} +1 -1
- package/dist/twilight/{p-a6b86d59.entry.js → p-9693310b.entry.js} +1 -1
- package/dist/twilight/{p-9ef5baee.entry.js → p-9dcc291b.entry.js} +1 -1
- package/dist/twilight/{p-BqUtsKuV.js → p-B6bkY5-l.js} +1 -1
- package/dist/twilight/{p-IfDGKmqz.js → p-BCWPIsso.js} +1 -1
- package/dist/twilight/p-BLehGhpL.js +4 -0
- package/dist/twilight/{p-BI8HHCBk.js → p-BN2EOPT0.js} +2 -2
- package/dist/twilight/{p-D3AXrniM.js → p-BeZ-z3uX.js} +1 -1
- package/dist/twilight/{p-Dhp50bRZ.js → p-Bu7ZSFM5.js} +1 -1
- package/dist/twilight/{p-Dnp_uMrB.js → p-C0UBM1r0.js} +1 -1
- package/dist/twilight/{p-BHMFnn7K.js → p-C1ReTfKT.js} +1 -1
- package/dist/twilight/p-C8xwacGT.js +4 -0
- package/dist/twilight/{p-OFtreEoC.js → p-CX1cQxmm.js} +1 -1
- package/dist/twilight/{p-CN6KGTlN.js → p-CfaNNoM2.js} +1 -1
- package/dist/twilight/p-CoQJOPRz.js +4 -0
- package/dist/twilight/{p-CZ0CFRkg.js → p-P9Uquv6J.js} +1 -1
- package/dist/twilight/p-a132e9dc.entry.js +4 -0
- package/dist/twilight/{p-8867d017.entry.js → p-a22ab12e.entry.js} +1 -1
- package/dist/twilight/{p-3ea047a7.entry.js → p-a5093858.entry.js} +1 -1
- package/dist/twilight/{p-3d7867a2.entry.js → p-a5483eab.entry.js} +1 -1
- package/dist/twilight/{p-50a976c7.entry.js → p-ab922196.entry.js} +1 -1
- package/dist/twilight/{p-5ccc2829.entry.js → p-adf1ff1f.entry.js} +1 -1
- package/dist/twilight/{p-acdba86b.entry.js → p-b075bdd3.entry.js} +1 -1
- package/dist/twilight/{p-d83942f4.entry.js → p-b6446ed0.entry.js} +1 -1
- package/dist/twilight/{p-cba54712.entry.js → p-bd29fa58.entry.js} +1 -1
- package/dist/twilight/{p-38661112.entry.js → p-c0a96a41.entry.js} +1 -1
- package/dist/twilight/{p-2835e988.entry.js → p-c0da03a4.entry.js} +1 -1
- package/dist/twilight/{p-8f879479.entry.js → p-ce4823e8.entry.js} +1 -1
- package/dist/twilight/{p-418574c0.entry.js → p-cef8dfa8.entry.js} +1 -1
- package/dist/twilight/{p-984298b9.entry.js → p-d737a90e.entry.js} +1 -1
- package/dist/twilight/p-d7e404d1.entry.js +4 -0
- package/dist/twilight/{p-078e99bf.entry.js → p-d95fad47.entry.js} +1 -1
- package/dist/twilight/{p-1ac92f5a.entry.js → p-dacc7681.entry.js} +1 -1
- package/dist/twilight/{p-6f620e38.entry.js → p-e15ceaae.entry.js} +1 -1
- package/dist/twilight/p-e692fd88.entry.js +4 -0
- package/dist/twilight/{p-b3ad1668.entry.js → p-ee5afe29.entry.js} +1 -1
- package/dist/twilight/{p-329af334.entry.js → p-f248ce38.entry.js} +1 -1
- package/dist/twilight/{p-7cd6a7c4.entry.js → p-f6468e0f.entry.js} +1 -1
- package/dist/twilight/{p-4bf158ef.entry.js → p-f9e89a30.entry.js} +1 -1
- package/dist/twilight/{p-8f45764d.entry.js → p-fdd2d95e.entry.js} +1 -1
- package/dist/twilight/{p-66aac45f.entry.js → p-ff0d8f2b.entry.js} +1 -1
- package/dist/twilight/{p-CSkvMMJe.js → p-nj3fF7xi.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-order-edit/helpers.d.ts +25 -0
- package/dist/types/components/salla-order-edit/interfaces.d.ts +22 -25
- package/dist/types/components/salla-order-edit/salla-order-edit-item.d.ts +7 -5
- package/dist/types/components/salla-order-edit/salla-order-edit-product-card.d.ts +11 -0
- package/dist/types/components/salla-order-edit/salla-order-edit.d.ts +56 -4
- package/dist/types/components/salla-product-options/salla-product-options.d.ts +4 -0
- package/dist/types/components/salla-products-list/salla-products-list.d.ts +5 -0
- package/dist/types/components.d.ts +51 -4
- package/package.json +5 -5
- package/dist/twilight/p-100664ef.entry.js +0 -4
- package/dist/twilight/p-38856897.entry.js +0 -4
- package/dist/twilight/p-43eca2f5.entry.js +0 -4
- package/dist/twilight/p-6edcfd67.entry.js +0 -4
- package/dist/twilight/p-73f6f7c7.entry.js +0 -4
- package/dist/twilight/p-DyiIcpTE.js +0 -4
- package/dist/twilight/p-a31559f1.entry.js +0 -4
- package/dist/twilight/p-c20a8155.entry.js +0 -4
|
@@ -124,6 +124,12 @@ export class SallaProductOptions {
|
|
|
124
124
|
.map(sku => that.outSkus.push(Number(sku[0])));
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
|
+
/**
|
|
128
|
+
* Get the current options state, including selected values/details.
|
|
129
|
+
*/
|
|
130
|
+
async getOptionsData() {
|
|
131
|
+
return this.optionsData;
|
|
132
|
+
}
|
|
127
133
|
/**
|
|
128
134
|
* Get the id's of the selected options.
|
|
129
135
|
* */
|
|
@@ -1073,6 +1079,28 @@ export class SallaProductOptions {
|
|
|
1073
1079
|
}]
|
|
1074
1080
|
}
|
|
1075
1081
|
},
|
|
1082
|
+
"getOptionsData": {
|
|
1083
|
+
"complexType": {
|
|
1084
|
+
"signature": "() => Promise<Option[]>",
|
|
1085
|
+
"parameters": [],
|
|
1086
|
+
"references": {
|
|
1087
|
+
"Promise": {
|
|
1088
|
+
"location": "global",
|
|
1089
|
+
"id": "global::Promise"
|
|
1090
|
+
},
|
|
1091
|
+
"Option": {
|
|
1092
|
+
"location": "import",
|
|
1093
|
+
"path": "./interfaces",
|
|
1094
|
+
"id": "src/components/salla-product-options/interfaces.ts::Option"
|
|
1095
|
+
}
|
|
1096
|
+
},
|
|
1097
|
+
"return": "Promise<Option[]>"
|
|
1098
|
+
},
|
|
1099
|
+
"docs": {
|
|
1100
|
+
"text": "Get the current options state, including selected values/details.",
|
|
1101
|
+
"tags": []
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1076
1104
|
"getSelectedOptionsData": {
|
|
1077
1105
|
"complexType": {
|
|
1078
1106
|
"signature": "() => Promise<{}>",
|
|
@@ -45,11 +45,11 @@ export class SallaProductSizeGuide {
|
|
|
45
45
|
return h("salla-placeholder", { alignment: "center", iconSize: "xl" }, h("div", { slot: "title" }, this.placeholder_title), h("div", { slot: "description" }, this.placeholder_description));
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h("salla-modal", { key: '
|
|
48
|
+
return (h("salla-modal", { key: '890b39170a64cbe054d9abfeafde2304560848d7', class: "s-product-size-guide-wrapper", id: 'salla-product-size-guide-modal', isLoading: true, "has-skeleton": true, width: "md", ref: modal => this.modal = modal }, h("span", { key: '5989a906d9d0e843142374c202aa5276731282e8', slot: 'icon', class: "s-product-size-guide-header-icon", innerHTML: PencilRuler }), h("div", { key: 'a87674a01f544d91a16303cf96111633ca4438a3', slot: "loading" }, h("div", { key: 'f1e2f05860bb25796752283af36515432803ca9a', class: "s-product-size-guide-skeleton" }, h("salla-skeleton", { key: 'e579db557854a2b7903f5c435977c8d410a9157a', height: '15px', width: '25%' }), h("div", { key: '0b6e56e41efeebfe5215afb17e69b465f5a9992a', class: "s-product-size-guide-skeleton-header" }, h("salla-skeleton", { key: 'fbc7b34bdb2cf914b7d197432132065a4d1c4152', height: '40px' }), h("salla-skeleton", { key: '8045c64a63a469f70f87f686ec986d0c6f5aa1c5', height: '40px' }), h("salla-skeleton", { key: '0abd35f5af325ca1f2208659a9fb1f2ca284adfd', height: '40px' }), h("salla-skeleton", { key: 'd444ac5dd6391b9c902e17f98c0d3c35a939e678', height: '40px' })), h("div", { key: '1a217120cd307a4b837175b3eace97788a4195e4', class: "s-product-size-guide-skeleton-content" }, h("salla-skeleton", { key: 'a47510c2ba3357066fe2452f8dbf899bda36177f', height: '15px', width: '25%' }), h("salla-skeleton", { key: 'e097a5097938fc4fda820d753c42c08d06dabbea', height: '10px', width: '75%' }), h("salla-skeleton", { key: '16267e9b3f7a21aa384d8a8a59ff05473aebfe97', height: '10px', width: '50%' }), h("salla-skeleton", { key: '904842b7bde12557b9a72dc48bdeb6ebd3c65ed4', height: '10px', width: '75%' }), h("salla-skeleton", { key: '4286e18b5198144636f9f4ad8a2445ca41673918', height: '10px', width: '100%' }), h("salla-skeleton", { key: 'b1483afcb842489b5c6997216bc7e8c24437f16f', height: '10px', width: '25%' }), h("salla-skeleton", { key: '140f19a164bbb547c844a8483efcd86f18336a20', height: '10px', width: '60%' }), h("salla-skeleton", { key: '23475f824cb98b0a776b5ae2b3715a14b9413d4b', height: '10px', width: '45%' }), h("salla-skeleton", { key: '75d3bcd58f50886ffad02b329d5153b0ae41d46e', height: '10px', width: '30%' })))), h("slot", { key: '836b93fd9084ee2f19077333ac31e1629a5ad118', name: "header" }), !this.hasError && !!this.guides ?
|
|
49
49
|
[
|
|
50
50
|
h("salla-tabs", null, this.guides.map((guide) => h("salla-tab-header", { slot: "header", name: guide.name }, h("span", null, guide.name))), this.guides.map((guide) => h("salla-tab-content", { slot: "content", name: guide.name }, h("div", { innerHTML: guide.description }))))
|
|
51
51
|
]
|
|
52
|
-
: this.showPlaceholder(), h("slot", { key: '
|
|
52
|
+
: this.showPlaceholder(), h("slot", { key: 'ac635b008e11b61918efb43ba6489c4130831a32', name: "footer" })));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "salla-product-size-guide"; }
|
|
55
55
|
static get originalStyleUrls() {
|
|
@@ -90,7 +90,7 @@ export class SallaProductsList {
|
|
|
90
90
|
async reload() {
|
|
91
91
|
!this.autoload && this.loadMoreWrapper && (this.loadMoreWrapper.style.display = 'none');
|
|
92
92
|
this.hasInfiniteScroll && salla.infiniteScroll.destroy(this.infiniteScroll);
|
|
93
|
-
this.buildNextPageUrl();
|
|
93
|
+
await this.buildNextPageUrl();
|
|
94
94
|
// TODO: this is problematic in testing, for the time being it's been resolved like this
|
|
95
95
|
this.wrapper.innerHTML = '';
|
|
96
96
|
if (this.hasInfiniteScroll) {
|
|
@@ -126,7 +126,7 @@ export class SallaProductsList {
|
|
|
126
126
|
},
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
-
initBaseNextPageUrl(source) {
|
|
129
|
+
async initBaseNextPageUrl(source) {
|
|
130
130
|
this.nextPage = salla.url.api(`products?source=${source}`);
|
|
131
131
|
if (this.includes?.length) {
|
|
132
132
|
this.nextPage += `&includes[]=${this.includes.join('&includes[]=')}`;
|
|
@@ -155,8 +155,9 @@ export class SallaProductsList {
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
+
this.nextPage = await this.applyBeforeBuildListUrl(this.nextPage);
|
|
158
159
|
}
|
|
159
|
-
buildNextPageUrl() {
|
|
160
|
+
async buildNextPageUrl() {
|
|
160
161
|
let source = this.getSource();
|
|
161
162
|
if (source === 'json') {
|
|
162
163
|
return;
|
|
@@ -168,7 +169,7 @@ export class SallaProductsList {
|
|
|
168
169
|
return;
|
|
169
170
|
}
|
|
170
171
|
}
|
|
171
|
-
this.initBaseNextPageUrl(source);
|
|
172
|
+
await this.initBaseNextPageUrl(source);
|
|
172
173
|
if (this.isSourceWithoutValue()) {
|
|
173
174
|
return;
|
|
174
175
|
}
|
|
@@ -488,7 +489,7 @@ export class SallaProductsList {
|
|
|
488
489
|
if (this.includes) {
|
|
489
490
|
await this.injectAndProcessData(response);
|
|
490
491
|
}
|
|
491
|
-
const items = this.handleResponse(response);
|
|
492
|
+
const items = await this.handleResponse(response);
|
|
492
493
|
this.infiniteScroll.appendItems(items);
|
|
493
494
|
if (this.infiniteScroll.pageIndex === 2) {
|
|
494
495
|
if (!this.autoload && this.nextPage) {
|
|
@@ -543,6 +544,25 @@ export class SallaProductsList {
|
|
|
543
544
|
this.infiniteScroll.loadNextPage();
|
|
544
545
|
}
|
|
545
546
|
}
|
|
547
|
+
async applyBeforeBuildListUrl(url) {
|
|
548
|
+
try {
|
|
549
|
+
const ctx = { component: this, url };
|
|
550
|
+
await salla.hooks.call('salla-products-list', 'beforeBuildListUrl', ctx);
|
|
551
|
+
return ctx.url;
|
|
552
|
+
}
|
|
553
|
+
catch (e) {
|
|
554
|
+
salla.logger.warn('beforeBuildListUrl hook failed', e?.message);
|
|
555
|
+
return url;
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
async resolveNextPageFromCursor(response) {
|
|
559
|
+
if (!response.cursor) {
|
|
560
|
+
return this.nextPage;
|
|
561
|
+
}
|
|
562
|
+
return response.cursor.next
|
|
563
|
+
? await this.applyBeforeBuildListUrl(response.cursor.next)
|
|
564
|
+
: response.cursor.next;
|
|
565
|
+
}
|
|
546
566
|
async injectAndProcessData(response) {
|
|
547
567
|
try {
|
|
548
568
|
await Helper.injectExtraFieldsToResponse(response);
|
|
@@ -569,18 +589,21 @@ export class SallaProductsList {
|
|
|
569
589
|
//for the first page we need to inject the dom after the load, see @method componentDidLoad
|
|
570
590
|
if (!this.firstPageResponse) {
|
|
571
591
|
this.firstPageResponse = response;
|
|
572
|
-
this.nextPage =
|
|
592
|
+
this.nextPage = await this.resolveNextPageFromCursor(response);
|
|
573
593
|
return;
|
|
574
594
|
}
|
|
575
|
-
this.handleResponse(response).forEach(card => this.wrapper.append(card));
|
|
595
|
+
(await this.handleResponse(response)).forEach(card => this.wrapper.append(card));
|
|
576
596
|
}));
|
|
577
597
|
}
|
|
598
|
+
/**
|
|
599
|
+
* Load the next products page.
|
|
600
|
+
*/
|
|
578
601
|
async loadMore() {
|
|
579
602
|
this.infiniteScroll?.loadNextPage();
|
|
580
603
|
}
|
|
581
604
|
componentWillLoad() {
|
|
582
605
|
return salla.onReady()
|
|
583
|
-
.then(() => {
|
|
606
|
+
.then(async () => {
|
|
584
607
|
this.hasCustomComponent = !!customElements.get(this.productCardComponent);
|
|
585
608
|
this.sourceValueIsValid = !!(this.getSourceValue() || this.isSourceWithoutValue());
|
|
586
609
|
this.hasInfiniteScroll = !['json', 'selected', 'related', 'landing-page', 'recently'].includes(this.getSource()) && !this.limit;
|
|
@@ -595,7 +618,7 @@ export class SallaProductsList {
|
|
|
595
618
|
catch (e) {
|
|
596
619
|
salla.logger.warn('failed to get filters from url', e.message);
|
|
597
620
|
}
|
|
598
|
-
this.buildNextPageUrl();
|
|
621
|
+
await this.buildNextPageUrl();
|
|
599
622
|
this.isReady = true;
|
|
600
623
|
const snapshot = sessionStorage.getItem(this.infiniteScrollStateKey);
|
|
601
624
|
if (!!snapshot) {
|
|
@@ -647,9 +670,9 @@ export class SallaProductsList {
|
|
|
647
670
|
}
|
|
648
671
|
else if (!this.firstPageResponse && this.switchToNormalBehavior) {
|
|
649
672
|
this.getInitialData()
|
|
650
|
-
.then(() => {
|
|
673
|
+
.then(async () => {
|
|
651
674
|
if (this.firstPageResponse) {
|
|
652
|
-
this.handleResponse(this.firstPageResponse, false).forEach(card => {
|
|
675
|
+
(await this.handleResponse(this.firstPageResponse, false)).forEach(card => {
|
|
653
676
|
this.wrapper.append(card);
|
|
654
677
|
});
|
|
655
678
|
setTimeout(() => {
|
|
@@ -668,7 +691,7 @@ export class SallaProductsList {
|
|
|
668
691
|
});
|
|
669
692
|
}
|
|
670
693
|
else {
|
|
671
|
-
this.firstPageResponse && this.handleResponse(this.firstPageResponse, false).forEach(card => this.wrapper.append(card));
|
|
694
|
+
this.firstPageResponse && (await this.handleResponse(this.firstPageResponse, false)).forEach(card => this.wrapper.append(card));
|
|
672
695
|
}
|
|
673
696
|
}
|
|
674
697
|
canRender() {
|
|
@@ -694,7 +717,7 @@ export class SallaProductsList {
|
|
|
694
717
|
this.initiateInfiniteScroll();
|
|
695
718
|
this.loading();
|
|
696
719
|
}
|
|
697
|
-
handleResponse(response, shouldBuildNextPage = true) {
|
|
720
|
+
async handleResponse(response, shouldBuildNextPage = true) {
|
|
698
721
|
//todo:: check why it reach here undfined one time🤔
|
|
699
722
|
if (!response) {
|
|
700
723
|
return [];
|
|
@@ -744,7 +767,7 @@ export class SallaProductsList {
|
|
|
744
767
|
}
|
|
745
768
|
//because: this.nextPage is state we don't need to touch it after the build, to avoid the re-rendering
|
|
746
769
|
if (shouldBuildNextPage) {
|
|
747
|
-
this.nextPage =
|
|
770
|
+
this.nextPage = await this.resolveNextPageFromCursor(response);
|
|
748
771
|
}
|
|
749
772
|
this.loading(false);
|
|
750
773
|
this.placeholderLoader && this.placeholderLoader.remove();
|
|
@@ -1090,6 +1113,23 @@ export class SallaProductsList {
|
|
|
1090
1113
|
"text": "Reload the list of products (entire content of the component).",
|
|
1091
1114
|
"tags": []
|
|
1092
1115
|
}
|
|
1116
|
+
},
|
|
1117
|
+
"loadMore": {
|
|
1118
|
+
"complexType": {
|
|
1119
|
+
"signature": "() => Promise<void>",
|
|
1120
|
+
"parameters": [],
|
|
1121
|
+
"references": {
|
|
1122
|
+
"Promise": {
|
|
1123
|
+
"location": "global",
|
|
1124
|
+
"id": "global::Promise"
|
|
1125
|
+
}
|
|
1126
|
+
},
|
|
1127
|
+
"return": "Promise<void>"
|
|
1128
|
+
},
|
|
1129
|
+
"docs": {
|
|
1130
|
+
"text": "Load the next products page.",
|
|
1131
|
+
"tags": []
|
|
1132
|
+
}
|
|
1093
1133
|
}
|
|
1094
1134
|
};
|
|
1095
1135
|
}
|
|
@@ -91,7 +91,7 @@ export class SallaQuantityInput {
|
|
|
91
91
|
if (!inputAttributes['aria-label'] && !inputAttributes['aria-labelledby']) {
|
|
92
92
|
inputAttributes['aria-label'] = salla.lang.getWithDefault('common.elements.quantity', 'Quantity');
|
|
93
93
|
}
|
|
94
|
-
return (h(Host, { key: '
|
|
94
|
+
return (h(Host, { key: '0d455d7f718123741aaf8d11056526c6c5916565', class: "s-quantity-input" }, h("div", { key: 'c47dc0592e1c4abb724b9dfad352718a2379faf7', class: "s-quantity-input-container" }, h("button", { key: 'c1d67cc3c1df4ee33a34b62e92bbc20f00b6f22e', onClick: () => this.increase(), class: "s-quantity-input-increase-button s-quantity-input-button", type: "button", "aria-label": salla.lang.getWithDefault('common.elements.increase_quantity', 'Increase quantity') }, !this.hasIncrementSlot ? h("span", { innerHTML: Add }) : '', h("slot", { key: '802445a97219921692f9c0bcd0ca8e8ebf547b89', name: "increment-button" })), h("input", { key: 'ff93aa47a0dd6d102f39c28a77cae6282645e873', class: "s-quantity-input-input", ...inputAttributes, ref: (el) => this.textInput = el, onInput: (event) => this.setValue(event.target.value), inputMode: "numeric", pattern: "[0-9]*", min: "1", readOnly: this.disableInput, value: this.quantity }), h("button", { key: '568ad4da47ba3b52e197566c7f23cf540fc8423f', class: "s-quantity-input-decrease-button s-quantity-input-button", onClick: () => this.decrease(), type: "button", "aria-label": salla.lang.getWithDefault('common.elements.decrease_quantity', 'Decrease quantity') }, !this.hasDecrementSlot ? h("span", { innerHTML: Minus }) : '', h("slot", { key: '202303a0a7370e5d6cb54442dd6cc768646f18e8', name: "decrement-button" })))));
|
|
95
95
|
}
|
|
96
96
|
static get is() { return "salla-quantity-input"; }
|
|
97
97
|
static get originalStyleUrls() {
|
|
@@ -205,7 +205,7 @@ export class SallaQuickBuy {
|
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
207
|
render() {
|
|
208
|
-
return h(Host, { key: '
|
|
208
|
+
return h(Host, { key: '6a161249c65a797bc7e9b61549b3b1f6ad1e39fa' }, this.quickBuyButton());
|
|
209
209
|
}
|
|
210
210
|
quickBuyButton() {
|
|
211
211
|
return h("apple-pay-button", { locale: salla?.config?.get?.('user.language_code') || 'ar', onClick: () => this.quickBuyHandler(), "data-quick-purchase": "applepay", class: "s-quick-buy-apple-pay", "data-is-applepay": "1", buttonstyle: "black", type: this.type });
|
|
@@ -158,7 +158,7 @@ export class SallaReviewCard {
|
|
|
158
158
|
return (h("a", { href: this.review?.product?.url, class: "s-review-card-product-container" }, h("img", { alt: product.image?.alt || "Product", src: product.image?.url, class: "s-review-card-product-image", width: 60, height: 60, loading: "lazy", decoding: "async", draggable: false }), h("div", { class: "s-review-card-product-details" }, h("p", { class: "s-review-card-product-details-name" }, product.name), this.showPurchaseCount ? h("p", { class: "s-review-card-product-details-purchase-count" }, h("span", { innerHTML: IconFire2 }), this.purchasedCount) : null)));
|
|
159
159
|
}
|
|
160
160
|
render() {
|
|
161
|
-
return h("div", { key: '
|
|
161
|
+
return h("div", { key: '47efb35fefb0c57657c2e8f6707d4821f6c1c1a0', class: "s-review-card-container" }, this.renderSlider(), this.renderSingleImage(), renderDivider(), h("div", { key: 'eb624b4a9aa51b9053a5824818490dcf91594489', class: "s-review-card-content" }, this.renderHeader(), h("p", { key: 'f7bc3da7f0ef59c08789942d76e309e0d07a161a', class: "s-review-card-review-content", innerHTML: this.review?.content }), renderDivider(), this.renderProductInfo()));
|
|
162
162
|
}
|
|
163
163
|
static get is() { return "salla-review-card"; }
|
|
164
164
|
static get originalStyleUrls() {
|
|
@@ -85,7 +85,7 @@ export class SallaReviews {
|
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
render() {
|
|
88
|
-
return (h("div", { key: '
|
|
88
|
+
return (h("div", { key: 'a714c729b160349bb72976bc0b9910c2ddfee5bb', class: "s-reviews-container" }, h("div", { key: '5aadfe6203a6bfc70bd242914ad63de05b374a22', class: "s-reviews-header-wrapper" }, h("h1", { key: 'a7dcdfbb38a9eb069f8b3c46d065638b659fb891', class: "s-reviews-header" }, this.testimonialText), !!this.displayAllLink ? (h("a", { href: this.displayAllURL, class: "s-reviews-display-all" }, this.displayAllLinkText, h("span", { class: "s-reviews-display-all-icon", innerHTML: IconArrowLeft }))) : null), h("salla-slider", { key: 'cbb4ae4e75bbef6d5716287d096863de9631a3e2', centered: true, "slides-per-view": 1, type: "testimonials", class: "s-reviews-testimonials-slider", "controls-outer": true, "auto-play": true, id: `testimonials-${this.source}-slider` }, h("div", { key: '78ca0d0848ccba77a926b3142954d1a5ffe99a9b', slot: "items" }, this.reviews.map((item, index) => (h("div", { key: index, class: "s-reviews-swiper-slide" }, h("div", { class: "s-reviews-testimonial" }, h("div", { class: "s-reviews-testimonial__inner" }, h("div", { class: "s-reviews-testimonial__avatar" }, h("img", { src: 'images/s-empty.png', "data-src": item.avatar, alt: item.name ? item.name : 'testimonial-' + index, class: "lazy" })), h("div", { class: "s-reviews-testimonial__text" }, h("p", { innerHTML: item.content }), h("div", { class: "s-reviews-testimonial__name_wrapper" }, h("div", { class: "s-reviews-testimonial__info" }, item.name && h("h2", null, `${item.name}`)), h("div", { class: "s-reviews-testimonial__rating" }, h("salla-rating-stars", { size: "small", value: item.stars })))), h("span", { class: "s-reviews-testimonial__icon", innerHTML: IconQuoteOpen }))))))))));
|
|
89
89
|
}
|
|
90
90
|
static get is() { return "salla-reviews"; }
|
|
91
91
|
static get originalStyleUrls() {
|
|
@@ -142,7 +142,7 @@ export class SallaReviewsPage {
|
|
|
142
142
|
return options.map(option => (h("option", { key: option.value, value: option.value, selected: option.value === this.sort }, option.label)));
|
|
143
143
|
}
|
|
144
144
|
render() {
|
|
145
|
-
return (h("host", { key: '
|
|
145
|
+
return (h("host", { key: 'fcd0bc80f69825de03feab75422aef2dabcca93b' }, h("div", { key: '4d50dbde8eecf0a597717971dee990d01bae1f7c', class: "s-reviews-page-header-wrapper" }, h("h2", { key: 'ff2c3e971cb6c480ae6388308abaa40a90ccd1cd', class: "s-reviews-page-title" }, this.langTitlesReviews, h("span", { key: 'a8f550f07d5826d701036ca94c8535188cd29dc5', class: "s-reviews-page-count" }, "(", this.langRatingReviews, ")")), h("div", { key: 'a2e0465af025a4c695462a1ea223d7a554e582de', class: "s-reviews-page-filter-wrapper" }, h("label", { key: 'e333ae7128cb24e15d18dca25f6af3456f0648ec', class: "s-reviews-page-filter-label", htmlFor: "testimonials-filter" }, this.langSorting), h("select", { key: '7ed58196ce8319d3ff3d7f9f38f7ecdf371e4856', onChange: (e) => this.handleSorting(e), disabled: !this.reviews.length, class: "s-reviews-page-filter" }, this.renderSortingOptions()))), this.reviews.length ? h("main", { class: "s-reviews-page-grid", ref: el => {
|
|
146
146
|
this.wrapper = el;
|
|
147
147
|
} }, this.reviews.map(review => (h("salla-review-card", { key: review.id, review: review }))))
|
|
148
148
|
: h("div", { class: "s-products-list-placeholder" }, h("span", { innerHTML: ShoppingBag }), h("p", null, this.placeholderText)), this.pagination?.links?.next && this.reviews.length ? (h("div", { class: "s-reviews-page-load-more-container" }, h("salla-button", { class: "s-reviews-page-load-more-btn", loading: this.isLoading, onClick: () => this.infiniteScroll?.loadNextPage(), onKeyUp: () => this.infiniteScroll?.loadNextPage() }, this.langLoadMore))) : null));
|
|
@@ -146,7 +146,7 @@ export class SallaScopees {
|
|
|
146
146
|
return salla.onReady();
|
|
147
147
|
}
|
|
148
148
|
render() {
|
|
149
|
-
return (h(Host, { key: '
|
|
149
|
+
return (h(Host, { key: '743fc37aec29a2ec15deb00c7463b51d0edcc29e' }, h("salla-modal", { key: '4b98493956bf34f97217d384d194a21d69ec011f', ref: modal => this.modal = modal, isClosable: !!(this.isOpenedBefore || (this.selection == 'optional')), class: "s-scopes-modal", isLoading: this.loading, "has-skeleton": true }, this.loading ?
|
|
150
150
|
h("div", { slot: "loading" }, h("div", { class: "s-scopes-skeleton" }, h("salla-list-tile", { class: "s-scopes-header" }, h("div", { slot: "icon", class: "s-scopes-header-icon" }, h("salla-skeleton", { type: "circle" })), h("div", { slot: "title", class: "s-scopes-header-title mb-5" }, h("salla-skeleton", { height: '15px', width: '50%' })), h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, h("salla-skeleton", { height: '10px' }), h("salla-skeleton", { height: '10px', width: '75%' }))), h("div", { class: "s-scopes-skeleton-search" }, h("salla-skeleton", { height: '10px', width: '50%' }), h("salla-skeleton", { height: '30px', width: '100%' })), h("div", { class: "s-scopes-skeleton-scopes" }, h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' })), h("div", { class: "s-scopes-skeleton-btn" }, h("salla-skeleton", { height: '40px', width: '100%' }))))
|
|
151
151
|
:
|
|
152
152
|
[h("salla-list-tile", { class: this.originalScopesList?.length ? "s-scopes-header block" : "s-hidden" }, h("div", { slot: "icon", class: "s-scopes-header-icon", innerHTML: StoreAlt }), h("div", { slot: "title", class: "s-scopes-header-title" }, salla.lang.get('blocks.scope.you_are_browse_store_from')), h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, !!this.selected_scope ? this.selected_scope.name : "")), h("div", { class: "s-scopes-wrap" }, !!this.originalScopesList?.length && h("h4", { class: "s-scopes-title" }, this.getFormTitle()), this.originalScopesList?.length > this.searchDisplayLimit ?
|
|
@@ -127,10 +127,10 @@ export class SallaSearch {
|
|
|
127
127
|
this.inputValue.length < 3 ? this.container.classList.remove('s-search-no-results') : '';
|
|
128
128
|
}
|
|
129
129
|
render() {
|
|
130
|
-
const searchContent = (h("div", { key: '
|
|
130
|
+
const searchContent = (h("div", { key: '6d47849faffad8faa82bfb8368ea2ad9e2aced49', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => (this.container = container) }, h("div", { key: '6c6330e985c6505b1cf8c78e5ab95cb3b22844c9', class: "s-search-input-wrapper" }, h("span", { key: 'e01360120e50a316881569d19e455ccb998e50ab', class: "s-search-icon-wrap" }, h("span", { key: 'f9d9e717638271402ba445d59ec8b5315d542a16', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : Search })), h("input", { key: '4abd6b3c6647ccfd411463aa2c9610c8428efd17', type: "search", enterkeyhint: "search", autocomplete: "off", class: "s-search-input", placeholder: salla.lang.get('blocks.header.search_placeholder'), onInput: (e) => this.limitWordsAndSearch(e), onKeyDown: e => this.handleKeyDown(e), ref: input => (this.searchInput = input), style: {
|
|
131
131
|
height: this.height + 'px',
|
|
132
132
|
borderRadius: this.oval ? this.height / 2 + 'px' : '',
|
|
133
|
-
} }), this.showAction ? (h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && h("span", { innerHTML: Search }))) : null), h("div", { key: '
|
|
133
|
+
} }), this.showAction ? (h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && h("span", { innerHTML: Search }))) : null), h("div", { key: '1a28e1cef5a6785ed45cef1beb1e177c174aca0c', class: "s-search-results" }, this.results?.data.map(product => (h("a", { href: product.url + '?from=search-bar', class: {
|
|
134
134
|
's-search-product': true,
|
|
135
135
|
's-search-product-not-available': !product.is_available,
|
|
136
136
|
}, innerHTML: this.productSlot
|
|
@@ -139,9 +139,9 @@ export class SallaSearch {
|
|
|
139
139
|
.replace(/\{regular_price\}/g, product.is_on_sale && product.regular_price
|
|
140
140
|
? salla.money(product.regular_price)
|
|
141
141
|
: '')
|
|
142
|
-
.replace(/\{image\}/g, product.image.url) }))), h("p", { key: '
|
|
143
|
-
const modalContent = (h("salla-modal", { key: '
|
|
144
|
-
const placeholderContent = (h("div", { key: '
|
|
142
|
+
.replace(/\{image\}/g, product.image.url) }))), h("p", { key: 'df6eb433971ec24b64de09de7f5d861fe7d26c7e', ref: el => (this.noResults = el), class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options')))));
|
|
143
|
+
const modalContent = (h("salla-modal", { key: '37af042080e667919d94197c9ac16496a716bc9e', position: "top", class: "s-search-modal", ref: modal => (this.modal = modal) }, searchContent));
|
|
144
|
+
const placeholderContent = (h("div", { key: 'ce1fa4591a9c61563344a8bc48ed3e09d1ad6796', class: "s-search-placeholder-wrapper s-search-inline" }, h("div", { key: 'f42ee11b614068bcbde12e6e82034b8b3b22bfaa', class: "s-search-input-wrapper" }, h("span", { key: '8b775e814e03a3de5c24bbe4e252e3e78fa82988', class: "s-search-icon-wrap" }, h("span", { key: '69cfca5e26fe366e2544e95e9b468aba28b32e55', class: "s-search-icon", innerHTML: Search })), h("button", { key: '998a6aa2efd5003e413d7d467ca4e78b0f97bbe1', type: "button", class: "s-search-input s-search-placeholder-trigger", onClick: () => this.open(), style: {
|
|
145
145
|
height: this.height + 'px',
|
|
146
146
|
borderRadius: this.oval ? this.height / 2 + 'px' : '',
|
|
147
147
|
} }, salla.lang.get('blocks.header.search_placeholder'))), modalContent));
|
|
@@ -22,7 +22,7 @@ export class SallaSkeleton {
|
|
|
22
22
|
's-skeleton-item': true,
|
|
23
23
|
's-skeleton-item-circular': this.type == 'circle',
|
|
24
24
|
};
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: '9f9448d939ba69f60eca8dc6ea2ff98a047d6770', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: '3b43bb472316b5541a90081a5f3cb6ef91558212', class: classes }, "\u00A0")));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "salla-skeleton"; }
|
|
28
28
|
static get originalStyleUrls() {
|
|
@@ -31,7 +31,7 @@ export class SallaSocial {
|
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
33
|
const linksArray = this.getLinksArray();
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: '27639596a37f52686c1ac4b1a825fa143747216c' }, h("ul", { key: '9f6a6c96fe124fda09d2b879e3825ef73ec29c2c', class: "s-social-list" }, linksArray.map((link) => (h("li", { class: "s-social-link" }, h("div", { id: "social-slot", innerHTML: this.socialSlot
|
|
35
35
|
.replace(/\{icon\}/g, this.iconsList[link.type])
|
|
36
36
|
.replace(/\{type\}/g, link.type)
|
|
37
37
|
.replace(/\{link\}/g, link.value.toString()) })))))));
|
|
@@ -122,7 +122,7 @@ export class SallaSocialShare {
|
|
|
122
122
|
window.a2a?.init('page');
|
|
123
123
|
}
|
|
124
124
|
render() {
|
|
125
|
-
return (h("div", { key: '
|
|
125
|
+
return (h("div", { key: 'b3e61354de13c16f9bce1dd4cd397375d9a42da9', class: "s-social-share-wrapper" }, h("slot", { key: 'ef44d8cda6967977a59a0fe85777add8a73ffa59', name: 'widget' }, h("salla-button", { key: '243916c3a241c9dceb11a406faabe033c71820d2', "aria-label": "Share", onClick: () => this.open(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { key: 'a6fd2be4e2990f285960308cfd985d37e464d205', innerHTML: this.opened ? Cancel : ShareAlt }))), h("ul", { key: '27fa3a6ae2306cb61d97e71bb6591dd3614b5977', ref: el => this.shareMenu = el, class: "s-social-share-list a2a_kit share", "data-a2a-url": this.url ? this.url : window.location.href, "data-a2a-title": this.urlName ? this.urlName : document.title }, this.platforms.split(',').map(platform => {
|
|
126
126
|
return (h("li", null, h("a", { class: `a2a_button_${platform}`, "aria-label": `Share Via ${platform}` }, this.platformIcons.map((icon) => {
|
|
127
127
|
if (icon.name === platform) {
|
|
128
128
|
return h("span", { class: "s-social-share-icon", innerHTML: icon.icon });
|
|
@@ -30,7 +30,7 @@ export class SallaTabContent {
|
|
|
30
30
|
's-tabs-content': true,
|
|
31
31
|
's-tabs-content-selected': this.isSelected
|
|
32
32
|
};
|
|
33
|
-
return (h("div", { key: '
|
|
33
|
+
return (h("div", { key: '8678e860af6640f0ff1a92593fbe624416412b49', class: classes }, h("slot", { key: '10951e5230f9c5fbfbd5959d3773d44b66e85315' })));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "salla-tab-content"; }
|
|
36
36
|
static get originalStyleUrls() {
|
|
@@ -52,7 +52,7 @@ export class SallaTabHeader {
|
|
|
52
52
|
's-tabs-active': this.isSelected,
|
|
53
53
|
};
|
|
54
54
|
return [
|
|
55
|
-
h("div", { key: '
|
|
55
|
+
h("div", { key: '02bd540222ec3bd4adac0dd08132c366e29c6d9d', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: '9e6de884cb209d499e4bbd055e40c525680a7c37' })),
|
|
56
56
|
];
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "salla-tab-header"; }
|
|
@@ -50,7 +50,7 @@ export class SallaTabs {
|
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
52
|
return [
|
|
53
|
-
h("div", { key: '
|
|
53
|
+
h("div", { key: 'ecbcdc11af92d35afe933b11676bcf4769d19162', class: "s-tabs" }, h("div", { key: 'fa4fdecbc995dded92e3d64bf770d6375ad53fd2', class: "s-tabs-header" }, h("slot", { key: '730c1a278e95b7fa98da29956fee23dcd06e641d', name: "header" })), h("div", { key: '9721096ba8e1236500855a80f569e6ea8a4c1c32', class: "s-tabs-content-wrapper" }, h("slot", { key: 'ce82c43fd21bd1f28a7658b927646d0ff6052ea7', name: "content" })))
|
|
54
54
|
];
|
|
55
55
|
}
|
|
56
56
|
static get is() { return "salla-tabs"; }
|
|
@@ -123,7 +123,7 @@ export class SallaTelInput {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
render() {
|
|
126
|
-
return (h(Host, { key: '
|
|
126
|
+
return (h(Host, { key: '0ed711498e5b2987a4299bd36bebb6963a5082ea', class: "s-tel-input" }, h("input", { key: '8beb06377cefe6b4e02ca82f04941025949ea304', type: "tel", disabled: this.disabled, name: this.name, value: this.phone, onChange: (event) => this.handleCountryInput(event), ref: el => this.phoneInput = el, enterkeyhint: "next", autocomplete: "tel", class: "s-tel-input-control tel-input s-ltr" }), h("span", { key: '90295738a19bae3c61f4cb149c162ae8e3e1b08c', class: "s-tel-input-error-msg", ref: el => this.errorMsg = el }), h("input", { key: 'a15b9f99bbae0be5af7bd00335a4174e9609d507', type: "hidden", name: "country_code", value: this.countryCode, ref: el => this.countryCodeInput = el, class: "country_code" })));
|
|
127
127
|
}
|
|
128
128
|
componentDidLoad() {
|
|
129
129
|
this.initTelInput();
|
|
@@ -27,7 +27,7 @@ export class SallaTooltip {
|
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
29
|
const validTheme = ['default', 'dark'].includes(this.theme) ? this.theme : 'default';
|
|
30
|
-
return (h("div", { key: '
|
|
30
|
+
return (h("div", { key: '789e7e8e0653d68b5387b2199e05f287c8b91c92', class: "s-tooltip-container" }, h("div", { key: '0342a96fa7c3d316cfc9f5435dc7321920044a12', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? h("span", null, this.text) : h("slot", null))));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "salla-tooltip"; }
|
|
33
33
|
static get originalStyleUrls() {
|
|
@@ -56,7 +56,7 @@ export class SallaUserSettings {
|
|
|
56
56
|
await salla.profile.delete().finally(() => this.confirmationModal.close());
|
|
57
57
|
}
|
|
58
58
|
render() {
|
|
59
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: '09c239e885ba9e52e21ce17706c9296f99518c80', class: "s-user-settings-wrapper" }, this.canHideName && h("div", { key: 'ae1d8057c8bc4a1d355300f4be87b8a33091f694', class: "s-user-settings-section" }, h("salla-list-tile", { key: '93a7aec26398f466f350defd6f1878b89dc85351' }, h("div", { key: '2e89f6967972d7b95fe43ad735a2180409d234dd', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '622a59eff6171b5b1bb86d8482142df673cbf794', innerHTML: UserCancel })), h("div", { key: 'ce73e774974ea08605635a8443d068c73fd20129', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), h("div", { key: '000e5e933e8d6a1f1d4742b0441d86c8403d6cb5', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), h("div", { key: '498fc6ec63be3a7bc0a78b208a48a824af5c38df', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: '707181396eddd29d85826a48fb74a7119cfed2d6', class: "s-toggle" }, h("input", { key: 'a2188b266c8abe95a94affb128611074f8889405', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), h("div", { key: '1d50965f07763ba23f1675736f7d676a2e3300b9', class: "s-toggle-switcher" }))))), h("div", { key: '303f5388b3cb3954dc574dd8ac2c5f3981e870ce', class: "s-user-settings-section" }, h("salla-list-tile", { key: '6c751eafd2a3547fa7adaaf165230857c22820d4' }, h("div", { key: 'aaf770f0e43798c73d6fb7c5e0a71b7e03f812b8', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '3e5bbc36ed00b1c99816557314d82a5c51ceefac', innerHTML: Bullhorn })), h("div", { key: '9dce63894704b419536b9f7afec474b90bf047a8', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), h("div", { key: 'd1df5e80e9ee8b8512cfe334b3032d64a61b9dc2', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), h("div", { key: 'a57e08a44055a8859b4f3f2fd4ee8e7d3abf8e46', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: '6289b221064d45fd944bbed843350f4183d32e7e', class: "s-toggle" }, h("input", { key: '545e32938c4f1da231486b20be8f220108c20019', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), h("div", { key: 'efa1680c2fbbdcc280330ffa3d83379e96b0e755', class: "s-toggle-switcher" }))))), h("div", { key: '86e21a0171941aa0f1ddf008f479101a707c7e00', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, h("salla-list-tile", { key: '55f0b6d0b72ff1f91ff4ba09d28e8962e7f445b3' }, h("div", { key: '2d8ff66a76c3c8bf6a3c0e5222c142c0402b1c75', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'e59a4224af4f355679e2e163ca97c0f03b121ac7', innerHTML: UserOff })), h("div", { key: '59d4a4d841ab40f782f5a6a258c5e91211376d22', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), h("div", { key: 'b51a3eedf67d2635ebbf15eb7e39289866b92481', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), h("div", { key: '0871a013df31afcacad1f3e3f2a37a80668fffa0', slot: 'action', class: "s-user-settings-section-action" }, h("salla-button", { key: 'c42688b4aa87c5cbeb2145246327271cbc7561b5', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), h("salla-modal", { key: 'eaf3dbc98dc2483d2251fa5858bf77d698d24d66', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, h("span", { key: 'e7403e420404a68db65c1efa8edfa7ce8095ed82', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), h("div", { key: '1625698c6e2d8058177b51b5565adcf3fb92115f', class: "s-user-settings-confirmation" }, h("div", { key: '97a28f55f8dd76f15caa25148021501fe6447ddc', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), h("div", { key: '8454d3da817db426934ff49b535f82e9e0711eb9', class: "s-user-settings-confirmation-actions" }, h("salla-button", { key: '9227e5eb5854e0415c0280c752340a526c2d19fb', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), h("salla-button", { key: '3788d8ebbfe73e4bd085c942a9a651e22e4585e1', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
|
|
60
60
|
}
|
|
61
61
|
static get is() { return "salla-user-settings"; }
|
|
62
62
|
static get originalStyleUrls() {
|