@salla.sa/twilight-components 2.14.418 → 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-C1_8U7ht.js → filepond-BiRMqsJc.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-C2QZkcu0.js → filepond-plugin-file-poster-LU25G59n.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-CbVRd24w.js → filepond-plugin-file-validate-size-J3-riOvN.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-63RP4vcL.js → filepond-plugin-file-validate-type-DMawm6j5.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-CjWMhhkZ.js → filepond-plugin-image-edit-QXtHYcEz.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-CJxStqYG.js → filepond-plugin-image-exif-orientation-C0VBHQjd.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview--RTa59Q8.js → filepond-plugin-image-preview-xG9m-vgD.js} +1 -1
- package/dist/cjs/{functions-T48FHZw8.js → functions-CZrHAX2r.js} +1 -1
- package/dist/cjs/helpers-BJ2rnhxz.js +197 -0
- package/dist/cjs/{index-DO_QXaSt.js → index-Ce-Twd7-.js} +10 -6
- package/dist/cjs/{index-CQ4zjhzH.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 +36 -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-BnNAgCN_.js → tracked-promise-DChUtH5B.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-wbE79zwn.js → vanilla-picker-ivACsPLJ.js} +1 -1
- package/dist/collection/collection-manifest.json +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-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-BaqNYv3C.js → filepond-0Pvy36B6.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-nENZqIRv.js → filepond-plugin-file-poster-DV7OW1XJ.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-DGOq4RG8.js → filepond-plugin-file-validate-size-DEya24r_.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-DwM-3UO7.js → filepond-plugin-file-validate-type-DiFvVzC6.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-BCqDiFWK.js → filepond-plugin-image-edit-DGBw5KRt.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-DiuxhjrQ.js → filepond-plugin-image-exif-orientation-BbpZAlI-.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-DbFvPPQQ.js → filepond-plugin-image-preview-CjRkn0jY.js} +1 -1
- package/dist/esm/{functions-JPNAXx4d.js → functions-BcJ4xDKw.js} +1 -1
- package/dist/esm/helpers-DR_vlSvU.js +184 -0
- package/dist/esm/{index-DElBWCVR.js → index-313k5SuU.js} +1 -1
- package/dist/esm/{index-BwsreBbG.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 +10 -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-BD-FZk2P.js → tracked-promise-xD-AZOwt.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-CqoFxJJE.js → vanilla-picker-Bu8PG2Le.js} +1 -1
- package/dist/twilight/{p-ce588635.entry.js → p-02600ee1.entry.js} +1 -1
- package/dist/twilight/{p-c5e18341.entry.js → p-02608fcd.entry.js} +1 -1
- package/dist/twilight/{p-f73c7b43.entry.js → p-029f9bfd.entry.js} +1 -1
- package/dist/twilight/p-073536c3.entry.js +4 -0
- package/dist/twilight/{p-ceb9458e.entry.js → p-0d4afc4b.entry.js} +1 -1
- package/dist/twilight/{p-edaba475.entry.js → p-11da9c5a.entry.js} +1 -1
- package/dist/twilight/{p-7d3722ad.entry.js → p-13b1dae0.entry.js} +1 -1
- package/dist/twilight/{p-ab5e0aef.entry.js → p-13f019f5.entry.js} +1 -1
- package/dist/twilight/{p-069485ec.entry.js → p-15be9e7a.entry.js} +1 -1
- package/dist/twilight/{p-d9c4d2ed.entry.js → p-1bce06bf.entry.js} +1 -1
- package/dist/twilight/{p-0bf11f89.entry.js → p-1fe827c7.entry.js} +1 -1
- package/dist/twilight/{p-fec6b08b.entry.js → p-22d12f28.entry.js} +1 -1
- package/dist/twilight/{p-b737dbcb.entry.js → p-2afe64d1.entry.js} +1 -1
- package/dist/twilight/{p-3f50a52d.entry.js → p-2bb796b3.entry.js} +1 -1
- package/dist/twilight/{p-f653f2bb.entry.js → p-2f1cb6da.entry.js} +1 -1
- package/dist/twilight/{p-f88806d7.entry.js → p-3252277a.entry.js} +1 -1
- package/dist/twilight/{p-4110e600.entry.js → p-3539d2a1.entry.js} +1 -1
- package/dist/twilight/{p-167f5262.entry.js → p-3bda095b.entry.js} +1 -1
- package/dist/twilight/{p-61215f22.entry.js → p-3d286589.entry.js} +1 -1
- package/dist/twilight/{p-5ac81ffe.entry.js → p-410f0149.entry.js} +1 -1
- package/dist/twilight/{p-57451f00.entry.js → p-42bf8cc1.entry.js} +1 -1
- package/dist/twilight/p-43c4c857.entry.js +4 -0
- package/dist/twilight/{p-ff90dbf0.entry.js → p-4550de2d.entry.js} +1 -1
- package/dist/twilight/{p-fbe07d2d.entry.js → p-4752dc2c.entry.js} +1 -1
- package/dist/twilight/{p-9d8e4e7c.entry.js → p-48aba4cd.entry.js} +1 -1
- package/dist/twilight/p-49e28ca2.entry.js +4 -0
- package/dist/twilight/{p-10884e6e.entry.js → p-4a7cbe49.entry.js} +1 -1
- package/dist/twilight/{p-46088f51.entry.js → p-51252013.entry.js} +1 -1
- package/dist/twilight/{p-29fc145b.entry.js → p-53e63007.entry.js} +1 -1
- package/dist/twilight/{p-dcc65eb2.entry.js → p-57a4f3d2.entry.js} +1 -1
- package/dist/twilight/{p-a96ec635.entry.js → p-5dbb89d5.entry.js} +1 -1
- package/dist/twilight/p-5dd07559.entry.js +4 -0
- package/dist/twilight/{p-ac008da7.entry.js → p-5dd75357.entry.js} +1 -1
- package/dist/twilight/p-5e4e45be.entry.js +4 -0
- package/dist/twilight/{p-d0cf9b68.entry.js → p-5f174a3e.entry.js} +1 -1
- package/dist/twilight/{p-695e3211.entry.js → p-625218f7.entry.js} +1 -1
- package/dist/twilight/{p-03c39b2d.entry.js → p-654a0990.entry.js} +1 -1
- package/dist/twilight/{p-d739ae41.entry.js → p-654b9857.entry.js} +1 -1
- package/dist/twilight/{p-60878c2e.entry.js → p-65ff0bf4.entry.js} +1 -1
- package/dist/twilight/{p-aaff5603.entry.js → p-665aa4d1.entry.js} +1 -1
- package/dist/twilight/{p-5b371b1f.entry.js → p-69bec0e3.entry.js} +1 -1
- package/dist/twilight/{p-2bd83486.entry.js → p-6b02b118.entry.js} +1 -1
- package/dist/twilight/{p-44db7163.entry.js → p-72d4121c.entry.js} +1 -1
- package/dist/twilight/{p-993bdcbe.entry.js → p-74cd506d.entry.js} +1 -1
- package/dist/twilight/{p-b6ac7a22.entry.js → p-75f26291.entry.js} +1 -1
- package/dist/twilight/{p-1c3e0dbc.entry.js → p-7ce1dff1.entry.js} +1 -1
- package/dist/twilight/{p-7d492d3c.entry.js → p-7d08def1.entry.js} +1 -1
- package/dist/twilight/{p-ad762138.entry.js → p-7f6c6d8a.entry.js} +1 -1
- package/dist/twilight/{p-0a786447.entry.js → p-82d776ae.entry.js} +1 -1
- package/dist/twilight/{p-d469525b.entry.js → p-87e78adc.entry.js} +1 -1
- package/dist/twilight/{p-b6dce61a.entry.js → p-891e4b61.entry.js} +1 -1
- package/dist/twilight/{p-91d74168.entry.js → p-8bdd9c9b.entry.js} +1 -1
- package/dist/twilight/{p-19e82de2.entry.js → p-8d0b4049.entry.js} +1 -1
- package/dist/twilight/{p-9134d94d.entry.js → p-8dbff2c8.entry.js} +1 -1
- package/dist/twilight/{p-9c73e42a.entry.js → p-944b02ec.entry.js} +1 -1
- package/dist/twilight/{p-af1474dd.entry.js → p-9693310b.entry.js} +1 -1
- package/dist/twilight/{p-c1d4db6f.entry.js → p-9dcc291b.entry.js} +1 -1
- package/dist/twilight/{p-Dw7mGaHj.js → p-B6bkY5-l.js} +1 -1
- package/dist/twilight/{p-BuNOvMeU.js → p-BCWPIsso.js} +1 -1
- package/dist/twilight/p-BLehGhpL.js +4 -0
- package/dist/twilight/{p-CTyl0UJE.js → p-BN2EOPT0.js} +1 -1
- package/dist/twilight/{p-DlGhggDp.js → p-BeZ-z3uX.js} +1 -1
- package/dist/twilight/{p-GgHo6Cr_.js → p-Bu7ZSFM5.js} +1 -1
- package/dist/twilight/{p-CEuTw3-D.js → p-C0UBM1r0.js} +1 -1
- package/dist/twilight/{p-Cw0Ky-u0.js → p-C1ReTfKT.js} +1 -1
- package/dist/twilight/p-C8xwacGT.js +4 -0
- package/dist/twilight/{p-DPgASjJ8.js → p-CX1cQxmm.js} +1 -1
- package/dist/twilight/{p-BwsreBbG.js → p-CfaNNoM2.js} +1 -1
- package/dist/twilight/p-CoQJOPRz.js +4 -0
- package/dist/twilight/{p-LWKLIOwS.js → p-P9Uquv6J.js} +1 -1
- package/dist/twilight/p-a132e9dc.entry.js +4 -0
- package/dist/twilight/{p-a3a0bafa.entry.js → p-a22ab12e.entry.js} +1 -1
- package/dist/twilight/{p-4807586a.entry.js → p-a5093858.entry.js} +1 -1
- package/dist/twilight/{p-4edf67be.entry.js → p-a5483eab.entry.js} +1 -1
- package/dist/twilight/{p-57e0b11b.entry.js → p-ab922196.entry.js} +1 -1
- package/dist/twilight/{p-2f833767.entry.js → p-adf1ff1f.entry.js} +1 -1
- package/dist/twilight/{p-4c57de7b.entry.js → p-b075bdd3.entry.js} +1 -1
- package/dist/twilight/{p-b9062150.entry.js → p-b6446ed0.entry.js} +1 -1
- package/dist/twilight/{p-25104b13.entry.js → p-bd29fa58.entry.js} +1 -1
- package/dist/twilight/{p-b4fd50ef.entry.js → p-c0a96a41.entry.js} +1 -1
- package/dist/twilight/{p-b9c9c487.entry.js → p-c0da03a4.entry.js} +1 -1
- package/dist/twilight/{p-1c1ac203.entry.js → p-ce4823e8.entry.js} +1 -1
- package/dist/twilight/{p-af84c7b8.entry.js → p-cef8dfa8.entry.js} +1 -1
- package/dist/twilight/p-d737a90e.entry.js +4 -0
- package/dist/twilight/p-d7e404d1.entry.js +4 -0
- package/dist/twilight/{p-a00015ec.entry.js → p-d95fad47.entry.js} +1 -1
- package/dist/twilight/{p-201926a3.entry.js → p-dacc7681.entry.js} +1 -1
- package/dist/twilight/{p-580441f5.entry.js → p-e15ceaae.entry.js} +1 -1
- package/dist/twilight/p-e692fd88.entry.js +4 -0
- package/dist/twilight/{p-59657a19.entry.js → p-ee5afe29.entry.js} +1 -1
- package/dist/twilight/{p-681953ef.entry.js → p-f248ce38.entry.js} +1 -1
- package/dist/twilight/{p-c968dab0.entry.js → p-f6468e0f.entry.js} +1 -1
- package/dist/twilight/{p-cd6fc43c.entry.js → p-f9e89a30.entry.js} +1 -1
- package/dist/twilight/{p-e5325563.entry.js → p-fdd2d95e.entry.js} +1 -1
- package/dist/twilight/{p-0654ccca.entry.js → p-ff0d8f2b.entry.js} +1 -1
- package/dist/twilight/{p-CbukOCNI.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-36048354.entry.js +0 -4
- package/dist/twilight/p-60d875cc.entry.js +0 -4
- package/dist/twilight/p-7a33e83b.entry.js +0 -4
- package/dist/twilight/p-86cfa253.entry.js +0 -4
- package/dist/twilight/p-c0b690b2.entry.js +0 -4
- package/dist/twilight/p-e07f938a.entry.js +0 -4
- package/dist/twilight/p-f-qXMnue.js +0 -4
- package/dist/twilight/p-f2815da9.entry.js +0 -4
- package/dist/twilight/p-f7b21078.entry.js +0 -4
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-Ce-Twd7-.js');
|
|
7
7
|
|
|
8
8
|
const sallaPaymentsCss = ":host{display:block}";
|
|
9
9
|
|
|
@@ -36,12 +36,12 @@ const SallaPayments = class {
|
|
|
36
36
|
render() {
|
|
37
37
|
const madeInKSA = !this.exclude.includes('made-in-ksa') && salla.config.get('store.settings.made_in_ksa');
|
|
38
38
|
const sbcId = this.exclude.includes('sbc') ? null : salla.config.get('store.settings.certificate.id');
|
|
39
|
-
return (index.h(index.Host, { key: '
|
|
39
|
+
return (index.h(index.Host, { key: '94af8ddf97dca63ba7c1a19f65a1d872b8d565c6', class: "s-payments-list-wrap" }, index.h("ul", { key: '8e1425d89a60290b92042f82edbd2c0505da2904', class: "s-payments-list" }, madeInKSA && index.h("li", { key: '4ca6642fc2ef1cf1505b37127cf93cf48805e454', class: "s-payments-list-item" }, index.h("img", { key: 'f704728b2fade2d27f2109d47bc7e7381f3efe8b', width: "100%", height: "100%", decoding: "async", loading: "lazy", src: salla.url.cdn(`images/made-in-ksa.svg`, 58, 58), alt: "made in KSA certified" })), this.payments.map((payment) => (payment == "cod" ?
|
|
40
40
|
index.h("div", { id: "cod-slot", innerHTML: this.codSlot
|
|
41
41
|
.replace(/\{image\}/g, salla.url.cdn(`images/payment/cod_mini.png`, 58, 58)) }) :
|
|
42
42
|
index.h("div", { id: "payment-slot", innerHTML: this.paymentSlot
|
|
43
43
|
.replace(/\{image\}/g, salla.url.cdn(`images/payment/${payment}_mini.png`, 58, 58))
|
|
44
|
-
.replace(/\{payment\}/g, payment) }))), sbcId && index.h("div", { key: '
|
|
44
|
+
.replace(/\{payment\}/g, payment) }))), sbcId && index.h("div", { key: '5071bb1e003ff36b445fd15948b7612f6a1ecde4', id: "sbc-slot", innerHTML: this.sbcSlot
|
|
45
45
|
.replace(/\{image\}/g, salla.url.cdn(`images/sbc.png`, 58, 58))
|
|
46
46
|
.replace(/\{link\}/g, `https://eauthenticate.saudibusiness.gov.sa/certificate-details/${sbcId}`) }))));
|
|
47
47
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-Ce-Twd7-.js');
|
|
7
7
|
|
|
8
8
|
var Inbox = `<!-- Generated by IcoMoon.io -->
|
|
9
9
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -43,7 +43,7 @@ const SallaPlaceholder = class {
|
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
|
-
return (index.h(index.Host, { key: '
|
|
46
|
+
return (index.h(index.Host, { key: 'c036c6655683dd28dc1fe108a0c9f18c41d4dab2', class: this.alignmentClass() }, index.h("div", { key: '8a344197473899bfce235707a0a4b586b09f7586', class: `s-placeholder-icon s-placeholder-icon-${this.iconSize}`, innerHTML: this.icon }), index.h("div", { key: '84c667eedacea750f761c0c650615c63812875ca', class: "s-placeholder-title" }, index.h("slot", { key: '4b59c67b550d5b4fb818007f0061b7648984c13c', name: 'title' }, index.h("span", { key: 'aec395c1624cc78932d4bddc2aaf936d6c300143' }, salla.lang.get('common.elements.no_options')))), index.h("div", { key: 'de0e5e440393992977e73d457df7c537cb2c1c8a', class: "s-placeholder-description" }, index.h("slot", { key: '4e85b215cd7255ee2ec7bd18913ea9f4709adaef', name: 'description' }, index.h("span", { key: '2c6746373095d09ef5cd19c2015cb240545d4ef9' }, salla.lang.get('common.errors.empty_results'))))));
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
SallaPlaceholder.style = sallaPlaceholderCss;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-Ce-Twd7-.js');
|
|
7
7
|
var arrowLeft = require('./arrow-left-xSEmRpp6.js');
|
|
8
8
|
|
|
9
9
|
var arrowRight = `<!-- Generated by IcoMoon.io -->
|
|
@@ -159,9 +159,9 @@ const SallaPriceRange = class {
|
|
|
159
159
|
this.maxPrice = value === undefined ? '' : value;
|
|
160
160
|
}
|
|
161
161
|
render() {
|
|
162
|
-
return (index.h(index.Host, { key: '
|
|
162
|
+
return (index.h(index.Host, { key: '343fd7a54f3a7d32c6709019fb168c7a8a1ca5f1' }, this.filterValues.map((filterValue, index$1) => {
|
|
163
163
|
return index.h("label", { class: "s-filters-label", htmlFor: `${this.option.key}-${index$1}`, key: index$1 }, index.h("input", { id: `${this.option.key}-${index$1}`, name: "price", type: "radio", checked: this.isChecked(filterValue), class: "s-filters-radio", onChange: e => this.handleMinMaxPrice(e, filterValue) }), index.h("span", { innerHTML: this.getPriceLabel(filterValue) }));
|
|
164
|
-
}), index.h("div", { key: '
|
|
164
|
+
}), index.h("div", { key: '99b72a90eb7c99fd0a061f3ae6fdb7a16f4a6cb5', class: "flex justify-center items-center" }, index.h("div", { key: '90234fcadbfd931e1ccbd8006f47219196b7d958', class: "relative max-w-xl w-full" }, index.h("div", { key: 'eb284df7b56929fa0b6b31f029024a48ba0528b5', class: "s-price-range-inputs" }, index.h("div", { key: '43adbda7a9dd480690a678e0efc7aeed889fb81f', class: "s-price-range-relative" }, index.h("div", { key: '16277456eb7fc08357ff91daef4af1944e79b762', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), index.h("input", { key: '9af2548117afe8389b786621d9e26e8f441c9fa6', type: "number", maxlength: "5", ref: el => this.minInput = el, onBlur: (e) => this.handleMinPrice(e), value: this.minPrice, placeholder: this.fromLabel, class: "s-price-range-number-input" })), index.h("div", { key: '5f5a45e86632b6183e0b85a5c1489d311b72c9b1', class: "s-price-range-gray-text" }, " -"), index.h("div", { key: '80198c67b69613cd09f0aa03faaf7f162a432478', class: "s-price-range-relative" }, index.h("div", { key: '5b84faee68142be3f18215b6f916eb1cd245c74c', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), index.h("input", { key: 'a813df6ce1645b5e3d414a13879f9c4172bb6f4f', type: "number", maxlength: "5", ref: el => this.maxInput = el, onBlur: (e) => this.handleMaxPrice(e), value: this.maxPrice, placeholder: this.toLabel, class: "s-price-range-number-input", "aria-describedby": "price-currency" })), index.h("salla-button", { key: '34644f25fbd11238f27f3de0343ef5b65d192c16', color: 'gray', shape: 'icon', size: 'small', fill: 'outline', onClick: (event) => this.changedEventHandler(event) }, index.h("span", { key: '07f5f1d7faad2ad05ea8538076b73b14a8f3137c', innerHTML: this.isRTL ? arrowLeft.arrowLeft : arrowRight })))))));
|
|
165
165
|
}
|
|
166
166
|
componentDidLoad() {
|
|
167
167
|
this.isReady = true;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-Ce-Twd7-.js');
|
|
7
7
|
var star2 = require('./star2-R146a27p.js');
|
|
8
8
|
var Helper = require('./Helper-CU4Xuiki.js');
|
|
9
9
|
require('./anime.es-BqW8JHZi.js');
|
|
@@ -116,14 +116,14 @@ const SallaProductCard = class {
|
|
|
116
116
|
's-product-card-out-of-stock': this.productData?.is_out_of_stock,
|
|
117
117
|
};
|
|
118
118
|
const hrefProp = this.productData?.url ? { href: this.productData.url, title: `Learn more about ${this.productData?.name}` } : {};
|
|
119
|
-
return (index.h(index.Host, { key: '
|
|
119
|
+
return (index.h(index.Host, { key: '9587bcb7fa6abdf1ec9cea621004e7e7077c2fd6', id: `product-${this.productData?.id}`, class: classes }, index.h("div", { key: 'f2d3c72f55d302e85a2da4e478d294f1ff7a155b', class: !this.fullImage ? 's-product-card-image' : 's-product-card-image-full' }, index.h("a", { key: '932e6defeeec23cda564e80a55f90260d51a1996', ...hrefProp }, index.h("img", { key: 'f1a82c5dab197fff512d5ab220a34acea82fd6d0', class: `s-product-card-image-${salla.url.is_placeholder(this.productData?.image?.url)
|
|
120
120
|
? 'contain'
|
|
121
121
|
: this.fitImageHeight
|
|
122
122
|
? this.fitImageHeight
|
|
123
|
-
: 'cover'} lazy`, src: this.placeholder, alt: this.productData?.image?.alt || this.productData?.name, "data-src": this.productData?.image?.url || this.productData?.thumbnail }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && index.h("a", { key: '
|
|
124
|
-
index.h("salla-button", { shape: "icon", fill: "none", color: "light", loading: false, "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () => this.handleWishlistClick() }, index.h("span", { innerHTML: Heart })) : ''), index.h("div", { key: '
|
|
123
|
+
: 'cover'} lazy`, src: this.placeholder, alt: this.productData?.image?.alt || this.productData?.name, "data-src": this.productData?.image?.url || this.productData?.thumbnail }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && index.h("a", { key: '40eb012054592e5c65309a4fcbe6fd4f3512197e', ...hrefProp, class: "s-product-card-overlay" }), !this.horizontal && !this.fullImage ?
|
|
124
|
+
index.h("salla-button", { shape: "icon", fill: "none", color: "light", loading: false, "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () => this.handleWishlistClick() }, index.h("span", { innerHTML: Heart })) : ''), index.h("div", { key: '91c99ae52ff1da64dfe69812ccfb26e91590f105', class: "s-product-card-content" }, this.isSpecial && this.productData?.quantity ?
|
|
125
125
|
index.h("div", { class: "s-product-card-content-pie", ref: pie => this.pie = pie }, index.h("span", null, index.h("b", null, salla.helpers.number(this.productData?.quantity)), this.remained), index.h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "-2 -1 36 34", class: "s-product-card-content-pie-svg" }, index.h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-base" }), index.h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-bar" })))
|
|
126
|
-
: '', index.h("div", { key: '
|
|
126
|
+
: '', index.h("div", { key: '630f6fdafccb0a6d5db2eb9399f5ba7c02ffde4b', class: { 's-product-card-content-main': true, 's-product-card-content-extra-padding': this.isSpecial } }, index.h("h3", { key: '0c366496893811cec16c67b4c28c8ac6a40bd191', class: "s-product-card-content-title" }, index.h("a", { key: 'f9ba0a3655e8058b3a10c16016e7e5f3d85a6e8a', ...hrefProp }, this.productData?.name)), this.productData?.subtitle && !this.minimal ?
|
|
127
127
|
index.h("p", { class: "s-product-card-content-subtitle" }, this.productData?.subtitle)
|
|
128
128
|
: ''), this.productData?.donation && !this.minimal && !this.fullImage ?
|
|
129
129
|
[index.h("salla-progress-bar", { donation: this.productData?.donation }), index.h("div", { class: "s-product-card-donation-input" }, this.productData?.donation?.can_donate ?
|
|
@@ -132,7 +132,7 @@ const SallaProductCard = class {
|
|
|
132
132
|
this.addBtn.donatingAmount = e.target.value;
|
|
133
133
|
}, id: "donation-amount", name: "donating_amount", class: "s-form-control", placeholder: this.donationAmount })]
|
|
134
134
|
: '')]
|
|
135
|
-
: '', index.h("div", { key: '
|
|
135
|
+
: '', index.h("div", { key: 'd67416c75a6fb7daa507e2d578c11f5dc1ecff2f', class: { 's-product-card-content-sub': true, 's-product-card-content-extra-padding': this.isSpecial } }, this.getProductPrice(), this.productData?.rating?.stars && !this.minimal ?
|
|
136
136
|
index.h("div", { class: "s-product-card-rating" }, index.h("span", { innerHTML: star2.Star }), index.h("span", null, this.productData.rating.stars))
|
|
137
137
|
: ''), this.isSpecial && this.productData.discount_ends
|
|
138
138
|
? index.h("salla-count-down", { date: this.formatDate(this.productData.discount_ends), "end-of-day": true, boxed: true, labeled: true })
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-Ce-Twd7-.js');
|
|
7
7
|
|
|
8
8
|
var PencilRuler = `<!-- Generated by IcoMoon.io -->
|
|
9
9
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -53,11 +53,11 @@ const SallaProductSizeGuide = class {
|
|
|
53
53
|
return index.h("salla-placeholder", { alignment: "center", iconSize: "xl" }, index.h("div", { slot: "title" }, this.placeholder_title), index.h("div", { slot: "description" }, this.placeholder_description));
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return (index.h("salla-modal", { key: '
|
|
56
|
+
return (index.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 }, index.h("span", { key: '5989a906d9d0e843142374c202aa5276731282e8', slot: 'icon', class: "s-product-size-guide-header-icon", innerHTML: PencilRuler }), index.h("div", { key: 'a87674a01f544d91a16303cf96111633ca4438a3', slot: "loading" }, index.h("div", { key: 'f1e2f05860bb25796752283af36515432803ca9a', class: "s-product-size-guide-skeleton" }, index.h("salla-skeleton", { key: 'e579db557854a2b7903f5c435977c8d410a9157a', height: '15px', width: '25%' }), index.h("div", { key: '0b6e56e41efeebfe5215afb17e69b465f5a9992a', class: "s-product-size-guide-skeleton-header" }, index.h("salla-skeleton", { key: 'fbc7b34bdb2cf914b7d197432132065a4d1c4152', height: '40px' }), index.h("salla-skeleton", { key: '8045c64a63a469f70f87f686ec986d0c6f5aa1c5', height: '40px' }), index.h("salla-skeleton", { key: '0abd35f5af325ca1f2208659a9fb1f2ca284adfd', height: '40px' }), index.h("salla-skeleton", { key: 'd444ac5dd6391b9c902e17f98c0d3c35a939e678', height: '40px' })), index.h("div", { key: '1a217120cd307a4b837175b3eace97788a4195e4', class: "s-product-size-guide-skeleton-content" }, index.h("salla-skeleton", { key: 'a47510c2ba3357066fe2452f8dbf899bda36177f', height: '15px', width: '25%' }), index.h("salla-skeleton", { key: 'e097a5097938fc4fda820d753c42c08d06dabbea', height: '10px', width: '75%' }), index.h("salla-skeleton", { key: '16267e9b3f7a21aa384d8a8a59ff05473aebfe97', height: '10px', width: '50%' }), index.h("salla-skeleton", { key: '904842b7bde12557b9a72dc48bdeb6ebd3c65ed4', height: '10px', width: '75%' }), index.h("salla-skeleton", { key: '4286e18b5198144636f9f4ad8a2445ca41673918', height: '10px', width: '100%' }), index.h("salla-skeleton", { key: 'b1483afcb842489b5c6997216bc7e8c24437f16f', height: '10px', width: '25%' }), index.h("salla-skeleton", { key: '140f19a164bbb547c844a8483efcd86f18336a20', height: '10px', width: '60%' }), index.h("salla-skeleton", { key: '23475f824cb98b0a776b5ae2b3715a14b9413d4b', height: '10px', width: '45%' }), index.h("salla-skeleton", { key: '75d3bcd58f50886ffad02b329d5153b0ae41d46e', height: '10px', width: '30%' })))), index.h("slot", { key: '836b93fd9084ee2f19077333ac31e1629a5ad118', name: "header" }), !this.hasError && !!this.guides ?
|
|
57
57
|
[
|
|
58
58
|
index.h("salla-tabs", null, this.guides.map((guide) => index.h("salla-tab-header", { slot: "header", name: guide.name }, index.h("span", null, guide.name))), this.guides.map((guide) => index.h("salla-tab-content", { slot: "content", name: guide.name }, index.h("div", { innerHTML: guide.description }))))
|
|
59
59
|
]
|
|
60
|
-
: this.showPlaceholder(), index.h("slot", { key: '
|
|
60
|
+
: this.showPlaceholder(), index.h("slot", { key: 'ac635b008e11b61918efb43ba6489c4130831a32', name: "footer" })));
|
|
61
61
|
}
|
|
62
62
|
get host() { return index.getElement(this); }
|
|
63
63
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-Ce-Twd7-.js');
|
|
7
7
|
var anime_es = require('./anime.es-BqW8JHZi.js');
|
|
8
8
|
var shoppingBag = require('./shopping-bag-C1gvTVHr.js');
|
|
9
9
|
var Helper = require('./Helper-CU4Xuiki.js');
|
|
@@ -97,7 +97,7 @@ const SallaProductsList = class {
|
|
|
97
97
|
async reload() {
|
|
98
98
|
!this.autoload && this.loadMoreWrapper && (this.loadMoreWrapper.style.display = 'none');
|
|
99
99
|
this.hasInfiniteScroll && salla.infiniteScroll.destroy(this.infiniteScroll);
|
|
100
|
-
this.buildNextPageUrl();
|
|
100
|
+
await this.buildNextPageUrl();
|
|
101
101
|
// TODO: this is problematic in testing, for the time being it's been resolved like this
|
|
102
102
|
this.wrapper.innerHTML = '';
|
|
103
103
|
if (this.hasInfiniteScroll) {
|
|
@@ -133,7 +133,7 @@ const SallaProductsList = class {
|
|
|
133
133
|
},
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
|
-
initBaseNextPageUrl(source) {
|
|
136
|
+
async initBaseNextPageUrl(source) {
|
|
137
137
|
this.nextPage = salla.url.api(`products?source=${source}`);
|
|
138
138
|
if (this.includes?.length) {
|
|
139
139
|
this.nextPage += `&includes[]=${this.includes.join('&includes[]=')}`;
|
|
@@ -162,8 +162,9 @@ const SallaProductsList = class {
|
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
+
this.nextPage = await this.applyBeforeBuildListUrl(this.nextPage);
|
|
165
166
|
}
|
|
166
|
-
buildNextPageUrl() {
|
|
167
|
+
async buildNextPageUrl() {
|
|
167
168
|
let source = this.getSource();
|
|
168
169
|
if (source === 'json') {
|
|
169
170
|
return;
|
|
@@ -175,7 +176,7 @@ const SallaProductsList = class {
|
|
|
175
176
|
return;
|
|
176
177
|
}
|
|
177
178
|
}
|
|
178
|
-
this.initBaseNextPageUrl(source);
|
|
179
|
+
await this.initBaseNextPageUrl(source);
|
|
179
180
|
if (this.isSourceWithoutValue()) {
|
|
180
181
|
return;
|
|
181
182
|
}
|
|
@@ -495,7 +496,7 @@ const SallaProductsList = class {
|
|
|
495
496
|
if (this.includes) {
|
|
496
497
|
await this.injectAndProcessData(response);
|
|
497
498
|
}
|
|
498
|
-
const items = this.handleResponse(response);
|
|
499
|
+
const items = await this.handleResponse(response);
|
|
499
500
|
this.infiniteScroll.appendItems(items);
|
|
500
501
|
if (this.infiniteScroll.pageIndex === 2) {
|
|
501
502
|
if (!this.autoload && this.nextPage) {
|
|
@@ -550,6 +551,25 @@ const SallaProductsList = class {
|
|
|
550
551
|
this.infiniteScroll.loadNextPage();
|
|
551
552
|
}
|
|
552
553
|
}
|
|
554
|
+
async applyBeforeBuildListUrl(url) {
|
|
555
|
+
try {
|
|
556
|
+
const ctx = { component: this, url };
|
|
557
|
+
await salla.hooks.call('salla-products-list', 'beforeBuildListUrl', ctx);
|
|
558
|
+
return ctx.url;
|
|
559
|
+
}
|
|
560
|
+
catch (e) {
|
|
561
|
+
salla.logger.warn('beforeBuildListUrl hook failed', e?.message);
|
|
562
|
+
return url;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
async resolveNextPageFromCursor(response) {
|
|
566
|
+
if (!response.cursor) {
|
|
567
|
+
return this.nextPage;
|
|
568
|
+
}
|
|
569
|
+
return response.cursor.next
|
|
570
|
+
? await this.applyBeforeBuildListUrl(response.cursor.next)
|
|
571
|
+
: response.cursor.next;
|
|
572
|
+
}
|
|
553
573
|
async injectAndProcessData(response) {
|
|
554
574
|
try {
|
|
555
575
|
await Helper.Helper.injectExtraFieldsToResponse(response);
|
|
@@ -576,18 +596,21 @@ const SallaProductsList = class {
|
|
|
576
596
|
//for the first page we need to inject the dom after the load, see @method componentDidLoad
|
|
577
597
|
if (!this.firstPageResponse) {
|
|
578
598
|
this.firstPageResponse = response;
|
|
579
|
-
this.nextPage =
|
|
599
|
+
this.nextPage = await this.resolveNextPageFromCursor(response);
|
|
580
600
|
return;
|
|
581
601
|
}
|
|
582
|
-
this.handleResponse(response).forEach(card => this.wrapper.append(card));
|
|
602
|
+
(await this.handleResponse(response)).forEach(card => this.wrapper.append(card));
|
|
583
603
|
}));
|
|
584
604
|
}
|
|
605
|
+
/**
|
|
606
|
+
* Load the next products page.
|
|
607
|
+
*/
|
|
585
608
|
async loadMore() {
|
|
586
609
|
this.infiniteScroll?.loadNextPage();
|
|
587
610
|
}
|
|
588
611
|
componentWillLoad() {
|
|
589
612
|
return salla.onReady()
|
|
590
|
-
.then(() => {
|
|
613
|
+
.then(async () => {
|
|
591
614
|
this.hasCustomComponent = !!customElements.get(this.productCardComponent);
|
|
592
615
|
this.sourceValueIsValid = !!(this.getSourceValue() || this.isSourceWithoutValue());
|
|
593
616
|
this.hasInfiniteScroll = !['json', 'selected', 'related', 'landing-page', 'recently'].includes(this.getSource()) && !this.limit;
|
|
@@ -602,7 +625,7 @@ const SallaProductsList = class {
|
|
|
602
625
|
catch (e) {
|
|
603
626
|
salla.logger.warn('failed to get filters from url', e.message);
|
|
604
627
|
}
|
|
605
|
-
this.buildNextPageUrl();
|
|
628
|
+
await this.buildNextPageUrl();
|
|
606
629
|
this.isReady = true;
|
|
607
630
|
const snapshot = sessionStorage.getItem(this.infiniteScrollStateKey);
|
|
608
631
|
if (!!snapshot) {
|
|
@@ -654,9 +677,9 @@ const SallaProductsList = class {
|
|
|
654
677
|
}
|
|
655
678
|
else if (!this.firstPageResponse && this.switchToNormalBehavior) {
|
|
656
679
|
this.getInitialData()
|
|
657
|
-
.then(() => {
|
|
680
|
+
.then(async () => {
|
|
658
681
|
if (this.firstPageResponse) {
|
|
659
|
-
this.handleResponse(this.firstPageResponse, false).forEach(card => {
|
|
682
|
+
(await this.handleResponse(this.firstPageResponse, false)).forEach(card => {
|
|
660
683
|
this.wrapper.append(card);
|
|
661
684
|
});
|
|
662
685
|
setTimeout(() => {
|
|
@@ -675,7 +698,7 @@ const SallaProductsList = class {
|
|
|
675
698
|
});
|
|
676
699
|
}
|
|
677
700
|
else {
|
|
678
|
-
this.firstPageResponse && this.handleResponse(this.firstPageResponse, false).forEach(card => this.wrapper.append(card));
|
|
701
|
+
this.firstPageResponse && (await this.handleResponse(this.firstPageResponse, false)).forEach(card => this.wrapper.append(card));
|
|
679
702
|
}
|
|
680
703
|
}
|
|
681
704
|
canRender() {
|
|
@@ -701,7 +724,7 @@ const SallaProductsList = class {
|
|
|
701
724
|
this.initiateInfiniteScroll();
|
|
702
725
|
this.loading();
|
|
703
726
|
}
|
|
704
|
-
handleResponse(response, shouldBuildNextPage = true) {
|
|
727
|
+
async handleResponse(response, shouldBuildNextPage = true) {
|
|
705
728
|
//todo:: check why it reach here undfined one time🤔
|
|
706
729
|
if (!response) {
|
|
707
730
|
return [];
|
|
@@ -751,7 +774,7 @@ const SallaProductsList = class {
|
|
|
751
774
|
}
|
|
752
775
|
//because: this.nextPage is state we don't need to touch it after the build, to avoid the re-rendering
|
|
753
776
|
if (shouldBuildNextPage) {
|
|
754
|
-
this.nextPage =
|
|
777
|
+
this.nextPage = await this.resolveNextPageFromCursor(response);
|
|
755
778
|
}
|
|
756
779
|
this.loading(false);
|
|
757
780
|
this.placeholderLoader && this.placeholderLoader.remove();
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var functions = require('./functions-
|
|
6
|
+
var index = require('./index-Ce-Twd7-.js');
|
|
7
|
+
var functions = require('./functions-CZrHAX2r.js');
|
|
8
8
|
var gift = require('./gift-DbNivqYO.js');
|
|
9
9
|
var tag = require('./tag-D-PcUR33.js');
|
|
10
10
|
var check = require('./check-BnVBPQNp.js');
|
|
11
11
|
var cancel = require('./cancel-B5SbMYEk.js');
|
|
12
|
-
var trackedPromise = require('./tracked-promise-
|
|
12
|
+
var trackedPromise = require('./tracked-promise-DChUtH5B.js');
|
|
13
13
|
|
|
14
14
|
const sallaLoyaltyProgramCss$3 = "";
|
|
15
15
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-Ce-Twd7-.js');
|
|
7
7
|
var search = require('./search-c7Aa7lM9.js');
|
|
8
8
|
|
|
9
9
|
var StoreAlt = `<!-- Generated by IcoMoon.io -->
|
|
@@ -160,7 +160,7 @@ const SallaScopees = class {
|
|
|
160
160
|
return salla.onReady();
|
|
161
161
|
}
|
|
162
162
|
render() {
|
|
163
|
-
return (index.h(index.Host, { key: '
|
|
163
|
+
return (index.h(index.Host, { key: '743fc37aec29a2ec15deb00c7463b51d0edcc29e' }, index.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 ?
|
|
164
164
|
index.h("div", { slot: "loading" }, index.h("div", { class: "s-scopes-skeleton" }, index.h("salla-list-tile", { class: "s-scopes-header" }, index.h("div", { slot: "icon", class: "s-scopes-header-icon" }, index.h("salla-skeleton", { type: "circle" })), index.h("div", { slot: "title", class: "s-scopes-header-title mb-5" }, index.h("salla-skeleton", { height: '15px', width: '50%' })), index.h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, index.h("salla-skeleton", { height: '10px' }), index.h("salla-skeleton", { height: '10px', width: '75%' }))), index.h("div", { class: "s-scopes-skeleton-search" }, index.h("salla-skeleton", { height: '10px', width: '50%' }), index.h("salla-skeleton", { height: '30px', width: '100%' })), index.h("div", { class: "s-scopes-skeleton-scopes" }, index.h("salla-skeleton", { height: '10px', width: '30%' }), index.h("salla-skeleton", { height: '10px', width: '25%' }), index.h("salla-skeleton", { height: '10px', width: '30%' }), index.h("salla-skeleton", { height: '10px', width: '25%' }), index.h("salla-skeleton", { height: '10px', width: '30%' }), index.h("salla-skeleton", { height: '10px', width: '25%' }), index.h("salla-skeleton", { height: '10px', width: '30%' }), index.h("salla-skeleton", { height: '10px', width: '25%' })), index.h("div", { class: "s-scopes-skeleton-btn" }, index.h("salla-skeleton", { height: '40px', width: '100%' }))))
|
|
165
165
|
:
|
|
166
166
|
[index.h("salla-list-tile", { class: this.originalScopesList?.length ? "s-scopes-header block" : "s-hidden" }, index.h("div", { slot: "icon", class: "s-scopes-header-icon", innerHTML: StoreAlt }), index.h("div", { slot: "title", class: "s-scopes-header-title" }, salla.lang.get('blocks.scope.you_are_browse_store_from')), index.h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, !!this.selected_scope ? this.selected_scope.name : "")), index.h("div", { class: "s-scopes-wrap" }, !!this.originalScopesList?.length && index.h("h4", { class: "s-scopes-title" }, this.getFormTitle()), this.originalScopesList?.length > this.searchDisplayLimit ?
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-Ce-Twd7-.js');
|
|
7
7
|
var search = require('./search-c7Aa7lM9.js');
|
|
8
8
|
var Helper = require('./Helper-CU4Xuiki.js');
|
|
9
9
|
require('./anime.es-BqW8JHZi.js');
|
|
@@ -131,10 +131,10 @@ const SallaSearch = class {
|
|
|
131
131
|
this.inputValue.length < 3 ? this.container.classList.remove('s-search-no-results') : '';
|
|
132
132
|
}
|
|
133
133
|
render() {
|
|
134
|
-
const searchContent = (index.h("div", { key: '
|
|
134
|
+
const searchContent = (index.h("div", { key: '6d47849faffad8faa82bfb8368ea2ad9e2aced49', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => (this.container = container) }, index.h("div", { key: '6c6330e985c6505b1cf8c78e5ab95cb3b22844c9', class: "s-search-input-wrapper" }, index.h("span", { key: 'e01360120e50a316881569d19e455ccb998e50ab', class: "s-search-icon-wrap" }, index.h("span", { key: 'f9d9e717638271402ba445d59ec8b5315d542a16', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : search.Search })), index.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: {
|
|
135
135
|
height: this.height + 'px',
|
|
136
136
|
borderRadius: this.oval ? this.height / 2 + 'px' : '',
|
|
137
|
-
} }), this.showAction ? (index.h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && index.h("span", { innerHTML: search.Search }))) : null), index.h("div", { key: '
|
|
137
|
+
} }), this.showAction ? (index.h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && index.h("span", { innerHTML: search.Search }))) : null), index.h("div", { key: '1a28e1cef5a6785ed45cef1beb1e177c174aca0c', class: "s-search-results" }, this.results?.data.map(product => (index.h("a", { href: product.url + '?from=search-bar', class: {
|
|
138
138
|
's-search-product': true,
|
|
139
139
|
's-search-product-not-available': !product.is_available,
|
|
140
140
|
}, innerHTML: this.productSlot
|
|
@@ -143,9 +143,9 @@ const SallaSearch = class {
|
|
|
143
143
|
.replace(/\{regular_price\}/g, product.is_on_sale && product.regular_price
|
|
144
144
|
? salla.money(product.regular_price)
|
|
145
145
|
: '')
|
|
146
|
-
.replace(/\{image\}/g, product.image.url) }))), index.h("p", { key: '
|
|
147
|
-
const modalContent = (index.h("salla-modal", { key: '
|
|
148
|
-
const placeholderContent = (index.h("div", { key: '
|
|
146
|
+
.replace(/\{image\}/g, product.image.url) }))), index.h("p", { key: 'df6eb433971ec24b64de09de7f5d861fe7d26c7e', ref: el => (this.noResults = el), class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options')))));
|
|
147
|
+
const modalContent = (index.h("salla-modal", { key: '37af042080e667919d94197c9ac16496a716bc9e', position: "top", class: "s-search-modal", ref: modal => (this.modal = modal) }, searchContent));
|
|
148
|
+
const placeholderContent = (index.h("div", { key: 'ce1fa4591a9c61563344a8bc48ed3e09d1ad6796', class: "s-search-placeholder-wrapper s-search-inline" }, index.h("div", { key: 'f42ee11b614068bcbde12e6e82034b8b3b22bfaa', class: "s-search-input-wrapper" }, index.h("span", { key: '8b775e814e03a3de5c24bbe4e252e3e78fa82988', class: "s-search-icon-wrap" }, index.h("span", { key: '69cfca5e26fe366e2544e95e9b468aba28b32e55', class: "s-search-icon", innerHTML: search.Search })), index.h("button", { key: '998a6aa2efd5003e413d7d467ca4e78b0f97bbe1', type: "button", class: "s-search-input s-search-placeholder-trigger", onClick: () => this.open(), style: {
|
|
149
149
|
height: this.height + 'px',
|
|
150
150
|
borderRadius: this.oval ? this.height / 2 + 'px' : '',
|
|
151
151
|
} }, salla.lang.get('blocks.header.search_placeholder'))), modalContent));
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-Ce-Twd7-.js');
|
|
7
7
|
|
|
8
8
|
const sallaSkeletonCss = ":host{display:block}";
|
|
9
9
|
|
|
@@ -28,7 +28,7 @@ const SallaSkeleton = class {
|
|
|
28
28
|
's-skeleton-item': true,
|
|
29
29
|
's-skeleton-item-circular': this.type == 'circle',
|
|
30
30
|
};
|
|
31
|
-
return (index.h(index.Host, { key: '
|
|
31
|
+
return (index.h(index.Host, { key: '9f9448d939ba69f60eca8dc6ea2ff98a047d6770', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, index.h("div", { key: '3b43bb472316b5541a90081a5f3cb6ef91558212', class: classes }, "\u00A0")));
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
SallaSkeleton.style = sallaSkeletonCss;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-Ce-Twd7-.js');
|
|
7
7
|
var anime_es = require('./anime.es-BqW8JHZi.js');
|
|
8
8
|
var facebook = require('./facebook-DbXua6B9.js');
|
|
9
9
|
var mail = require('./mail-Bgvt2hc9.js');
|
|
@@ -150,7 +150,7 @@ const SallaSocialShare = class {
|
|
|
150
150
|
window.a2a?.init('page');
|
|
151
151
|
}
|
|
152
152
|
render() {
|
|
153
|
-
return (index.h("div", { key: '
|
|
153
|
+
return (index.h("div", { key: 'b3e61354de13c16f9bce1dd4cd397375d9a42da9', class: "s-social-share-wrapper" }, index.h("slot", { key: 'ef44d8cda6967977a59a0fe85777add8a73ffa59', name: 'widget' }, index.h("salla-button", { key: '243916c3a241c9dceb11a406faabe033c71820d2', "aria-label": "Share", onClick: () => this.open(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, index.h("span", { key: 'a6fd2be4e2990f285960308cfd985d37e464d205', innerHTML: this.opened ? cancel.SICancel : ShareAlt }))), index.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 => {
|
|
154
154
|
return (index.h("li", null, index.h("a", { class: `a2a_button_${platform}`, "aria-label": `Share Via ${platform}` }, this.platformIcons.map((icon) => {
|
|
155
155
|
if (icon.name === platform) {
|
|
156
156
|
return index.h("span", { class: "s-social-share-icon", innerHTML: icon.icon });
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-Ce-Twd7-.js');
|
|
7
7
|
var facebook = require('./facebook-DbXua6B9.js');
|
|
8
8
|
|
|
9
9
|
var instagram = `<!-- Generated by IcoMoon.io -->
|
|
@@ -57,7 +57,7 @@ const SallaSocial = class {
|
|
|
57
57
|
}
|
|
58
58
|
render() {
|
|
59
59
|
const linksArray = this.getLinksArray();
|
|
60
|
-
return (index.h(index.Host, { key: '
|
|
60
|
+
return (index.h(index.Host, { key: '27639596a37f52686c1ac4b1a825fa143747216c' }, index.h("ul", { key: '9f6a6c96fe124fda09d2b879e3825ef73ec29c2c', class: "s-social-list" }, linksArray.map((link) => (index.h("li", { class: "s-social-link" }, index.h("div", { id: "social-slot", innerHTML: this.socialSlot
|
|
61
61
|
.replace(/\{icon\}/g, this.iconsList[link.type])
|
|
62
62
|
.replace(/\{type\}/g, link.type)
|
|
63
63
|
.replace(/\{link\}/g, link.value.toString()) })))))));
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-Ce-Twd7-.js');
|
|
7
7
|
|
|
8
8
|
const sallaTabContentCss = "";
|
|
9
9
|
|
|
@@ -33,7 +33,7 @@ const SallaTabContent = class {
|
|
|
33
33
|
's-tabs-content': true,
|
|
34
34
|
's-tabs-content-selected': this.isSelected
|
|
35
35
|
};
|
|
36
|
-
return (index.h("div", { key: '
|
|
36
|
+
return (index.h("div", { key: '8678e860af6640f0ff1a92593fbe624416412b49', class: classes }, index.h("slot", { key: '10951e5230f9c5fbfbd5959d3773d44b66e85315' })));
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
SallaTabContent.style = sallaTabContentCss;
|
|
@@ -92,7 +92,7 @@ const SallaTabHeader = class {
|
|
|
92
92
|
's-tabs-active': this.isSelected,
|
|
93
93
|
};
|
|
94
94
|
return [
|
|
95
|
-
index.h("div", { key: '
|
|
95
|
+
index.h("div", { key: '02bd540222ec3bd4adac0dd08132c366e29c6d9d', class: classes, onClick: this.onClick.bind(this) }, index.h("slot", { key: '9e6de884cb209d499e4bbd055e40c525680a7c37' })),
|
|
96
96
|
];
|
|
97
97
|
}
|
|
98
98
|
};
|
|
@@ -145,7 +145,7 @@ const SallaTabs = class {
|
|
|
145
145
|
}
|
|
146
146
|
render() {
|
|
147
147
|
return [
|
|
148
|
-
index.h("div", { key: '
|
|
148
|
+
index.h("div", { key: 'ecbcdc11af92d35afe933b11676bcf4769d19162', class: "s-tabs" }, index.h("div", { key: 'fa4fdecbc995dded92e3d64bf770d6375ad53fd2', class: "s-tabs-header" }, index.h("slot", { key: '730c1a278e95b7fa98da29956fee23dcd06e641d', name: "header" })), index.h("div", { key: '9721096ba8e1236500855a80f569e6ea8a4c1c32', class: "s-tabs-content-wrapper" }, index.h("slot", { key: 'ce82c43fd21bd1f28a7658b927646d0ff6052ea7', name: "content" })))
|
|
149
149
|
];
|
|
150
150
|
}
|
|
151
151
|
get host() { return index.getElement(this); }
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-Ce-Twd7-.js');
|
|
7
7
|
|
|
8
8
|
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%)}.s-tooltip-item--dark{background-color:#555555;color:white;padding:5px 15px;border-radius:8px;font-size:12px;font-weight:normal;max-width:330px;width:max-content}.s-tooltip-item--dark::after{border-color:#555555 transparent transparent transparent}";
|
|
9
9
|
|
|
@@ -33,7 +33,7 @@ const SallaTooltip = class {
|
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
35
|
const validTheme = ['default', 'dark'].includes(this.theme) ? this.theme : 'default';
|
|
36
|
-
return (index.h("div", { key: '
|
|
36
|
+
return (index.h("div", { key: '789e7e8e0653d68b5387b2199e05f287c8b91c92', class: "s-tooltip-container" }, index.h("div", { key: '0342a96fa7c3d316cfc9f5435dc7321920044a12', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? index.h("span", null, this.text) : index.h("slot", null))));
|
|
37
37
|
}
|
|
38
38
|
get el() { return index.getElement(this); }
|
|
39
39
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-Ce-Twd7-.js');
|
|
7
7
|
var keyboard_arrow_down = require('./keyboard_arrow_down-DHJ3FFZq.js');
|
|
8
8
|
var bellRing = require('./bell-ring-BfKPinNo.js');
|
|
9
9
|
var cart = require('./cart-s-x1Fshk.js');
|