@salla.sa/twilight-components 2.14.252 → 2.14.253
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/{app-globals-ChKTQEJ9.js → app-globals-BoVwS_2u.js} +3 -3
- package/dist/cjs/{app-globals-ChKTQEJ9.js.map → app-globals-BoVwS_2u.js.map} +1 -1
- package/dist/cjs/{index-DtXwvL5X.js → index-DxXe1Ylr.js} +16 -16
- package/dist/cjs/index-DxXe1Ylr.js.map +1 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/salla-accordion.salla-accordion-body.salla-accordion-head.salla-order-details-options.entry.cjs.js.map +1 -0
- package/dist/cjs/salla-accordion_4.cjs.entry.js +202 -0
- package/dist/cjs/salla-accordion_4.cjs.entry.js.map +1 -0
- package/dist/cjs/salla-add-product-button_51.cjs.entry.js +48 -48
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_2.cjs.entry.js +3 -3
- package/dist/cjs/salla-cart-item-offers.cjs.entry.js +1 -1
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +3 -3
- package/dist/cjs/salla-filters.cjs.entry.js +2 -2
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +2 -2
- package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item.cjs.entry.js +2 -2
- package/dist/cjs/salla-notifications.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 +80 -0
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js.map +1 -0
- package/dist/cjs/salla-order-details-multiple-bundle-product.entry.cjs.js.map +1 -0
- package/dist/cjs/salla-order-details.cjs.entry.js +53 -0
- package/dist/cjs/salla-order-details.cjs.entry.js.map +1 -0
- package/dist/cjs/salla-order-details.entry.cjs.js.map +1 -0
- package/dist/cjs/salla-order-summary.cjs.entry.js +2 -2
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +3 -3
- package/dist/cjs/salla-price-range.cjs.entry.js +3 -3
- package/dist/cjs/salla-product-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-review-card.cjs.entry.js +2 -2
- package/dist/cjs/salla-reviews-page.cjs.entry.js +2 -2
- package/dist/cjs/salla-reviews.cjs.entry.js +2 -2
- package/dist/cjs/salla-social.cjs.entry.js +2 -2
- 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-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/salla-accordion/salla-accordion-head.js +2 -2
- package/dist/collection/components/salla-accordion/salla-accordion-head.js.map +1 -1
- package/dist/collection/components/salla-accordion/salla-accordion.js +43 -1
- package/dist/collection/components/salla-accordion/salla-accordion.js.map +1 -1
- package/dist/collection/components/salla-alert/salla-alert.js +1 -1
- package/dist/collection/components/salla-booking-field/salla-booking-field.js +1 -1
- package/dist/collection/components/salla-bottom-alert/salla-bottom-alert.js +2 -2
- package/dist/collection/components/salla-cart-summary/salla-cart-summary.js +1 -1
- package/dist/collection/components/salla-color-picker/salla-color-picker.js +1 -1
- package/dist/collection/components/salla-comment-form/salla-comment-form.js +1 -1
- package/dist/collection/components/salla-comments/salla-comment-item.js +3 -3
- package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +1 -1
- package/dist/collection/components/salla-count-down/salla-count-down.js +1 -1
- package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1 -1
- package/dist/collection/components/salla-file-upload/salla-file-upload.js +2 -2
- package/dist/collection/components/salla-filters/salla-filters.js +1 -1
- package/dist/collection/components/salla-filters-widget/salla-filters-widget.js +2 -2
- package/dist/collection/components/salla-gifting/salla-gifting.js +2 -2
- package/dist/collection/components/salla-list-tile/salla-list-tile.js +1 -1
- package/dist/collection/components/salla-loading/salla-loading.js +1 -1
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +1 -1
- package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.js +1 -1
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-program.js +1 -1
- package/dist/collection/components/salla-maintenance-alert/salla-maintenance-alert.js +1 -1
- package/dist/collection/components/salla-map/salla-map.js +3 -3
- package/dist/collection/components/salla-notifications/salla-notification-item.js +1 -1
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +1 -1
- package/dist/collection/components/salla-order-details/interfaces.js +2 -0
- package/dist/collection/components/salla-order-details/interfaces.js.map +1 -0
- package/dist/collection/components/salla-order-details/salla-order-details-multiple-bundle-product.css +0 -0
- package/dist/collection/components/salla-order-details/salla-order-details-multiple-bundle-product.js +152 -0
- package/dist/collection/components/salla-order-details/salla-order-details-multiple-bundle-product.js.map +1 -0
- package/dist/collection/components/salla-order-details/salla-order-details-options.css +0 -0
- package/dist/collection/components/salla-order-details/salla-order-details-options.js +177 -0
- package/dist/collection/components/salla-order-details/salla-order-details-options.js.map +1 -0
- package/dist/collection/components/salla-order-details/salla-order-details.css +0 -0
- package/dist/collection/components/salla-order-details/salla-order-details.js +93 -0
- package/dist/collection/components/salla-order-details/salla-order-details.js.map +1 -0
- 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-size-guide/salla-product-size-guide.js +2 -2
- 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 +3 -3
- package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
- package/dist/collection/components/salla-slider/salla-slider.js +2 -2
- 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/index.js.map +1 -1
- package/dist/components/salla-accordion-body.js +1 -27
- package/dist/components/salla-accordion-body.js.map +1 -1
- package/dist/components/salla-accordion-body2.js +35 -0
- package/dist/components/salla-accordion-body2.js.map +1 -0
- package/dist/components/salla-accordion-head.js +1 -59
- package/dist/components/salla-accordion-head.js.map +1 -1
- package/dist/components/salla-accordion-head2.js +67 -0
- package/dist/components/salla-accordion-head2.js.map +1 -0
- package/dist/components/salla-accordion.js +1 -59
- package/dist/components/salla-accordion.js.map +1 -1
- package/dist/components/salla-accordion2.js +71 -0
- package/dist/components/salla-accordion2.js.map +1 -0
- package/dist/components/salla-alert.js +1 -1
- package/dist/components/salla-booking-field2.js +1 -1
- package/dist/components/salla-bottom-alert.js +2 -2
- package/dist/components/salla-cart-summary.js +1 -1
- package/dist/components/salla-color-picker2.js +1 -1
- package/dist/components/salla-comment-form2.js +1 -1
- package/dist/components/salla-comment-item2.js +3 -3
- package/dist/components/salla-conditional-fields2.js +1 -1
- package/dist/components/salla-count-down2.js +1 -1
- package/dist/components/salla-datetime-picker2.js +1 -1
- package/dist/components/salla-file-upload2.js +2 -2
- package/dist/components/salla-filters-widget2.js +2 -2
- package/dist/components/salla-filters.js +1 -1
- package/dist/components/salla-gifting.js +2 -2
- package/dist/components/salla-list-tile2.js +1 -1
- package/dist/components/salla-loading2.js +1 -1
- package/dist/components/salla-localization-modal.js +1 -1
- package/dist/components/salla-loyalty-prize-item.js +1 -1
- package/dist/components/salla-loyalty-program.js +1 -1
- package/dist/components/salla-maintenance-alert.js +1 -1
- package/dist/components/salla-map2.js +3 -3
- package/dist/components/salla-notification-item2.js +1 -1
- package/dist/components/salla-offer-modal.js +1 -1
- package/dist/components/salla-order-details-multiple-bundle-product.d.ts +11 -0
- package/dist/components/salla-order-details-multiple-bundle-product.js +12 -0
- package/dist/components/salla-order-details-multiple-bundle-product.js.map +1 -0
- package/dist/components/salla-order-details-multiple-bundle-product2.js +144 -0
- package/dist/components/salla-order-details-multiple-bundle-product2.js.map +1 -0
- package/dist/components/salla-order-details-options.d.ts +11 -0
- package/dist/components/salla-order-details-options.js +12 -0
- package/dist/components/salla-order-details-options.js.map +1 -0
- package/dist/components/salla-order-details-options2.js +145 -0
- package/dist/components/salla-order-details-options2.js.map +1 -0
- package/dist/components/salla-order-details.d.ts +11 -0
- package/dist/components/salla-order-details.js +127 -0
- package/dist/components/salla-order-details.js.map +1 -0
- 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-size-guide.js +2 -2
- package/dist/components/salla-quantity-input.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 +3 -3
- package/dist/components/salla-skeleton2.js +1 -1
- package/dist/components/salla-slider2.js +2 -2
- 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/{app-globals-3b0DwjjK.js → app-globals-5yxEmkuB.js} +3 -3
- package/dist/esm/{app-globals-3b0DwjjK.js.map → app-globals-5yxEmkuB.js.map} +1 -1
- package/dist/esm/{index-D4D34Ujk.js → index-Hw2jlaNN.js} +16 -16
- package/dist/esm/index-Hw2jlaNN.js.map +1 -0
- package/dist/esm/loader.js +4 -4
- package/dist/esm/salla-accordion.salla-accordion-body.salla-accordion-head.salla-order-details-options.entry.js.map +1 -0
- package/dist/esm/salla-accordion_4.entry.js +197 -0
- package/dist/esm/salla-accordion_4.entry.js.map +1 -0
- package/dist/esm/salla-add-product-button_51.entry.js +48 -48
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-booking-field_2.entry.js +3 -3
- package/dist/esm/salla-cart-item-offers.entry.js +1 -1
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +3 -3
- package/dist/esm/salla-filters.entry.js +2 -2
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +2 -2
- package/dist/esm/salla-loyalty-program.entry.js +2 -2
- package/dist/esm/salla-metadata.entry.js +1 -1
- package/dist/esm/salla-notification-item.entry.js +2 -2
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +78 -0
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js.map +1 -0
- package/dist/esm/salla-order-details.entry.js +51 -0
- package/dist/esm/salla-order-details.entry.js.map +1 -0
- package/dist/esm/salla-order-summary.entry.js +2 -2
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +3 -3
- package/dist/esm/salla-price-range.entry.js +3 -3
- package/dist/esm/salla-product-options.entry.js +1 -1
- package/dist/esm/salla-review-card.entry.js +2 -2
- package/dist/esm/salla-reviews-page.entry.js +2 -2
- package/dist/esm/salla-reviews.entry.js +2 -2
- package/dist/esm/salla-social.entry.js +2 -2
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.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/twilight.js +4 -4
- package/dist/esm-es5/{app-globals-3b0DwjjK.js → app-globals-5yxEmkuB.js} +2 -2
- package/dist/esm-es5/{app-globals-3b0DwjjK.js.map → app-globals-5yxEmkuB.js.map} +1 -1
- package/dist/esm-es5/{index-D4D34Ujk.js → index-Hw2jlaNN.js} +3 -3
- package/dist/esm-es5/index-Hw2jlaNN.js.map +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/salla-accordion.salla-accordion-body.salla-accordion-head.salla-order-details-options.entry.js.map +1 -0
- package/dist/esm-es5/salla-accordion_4.entry.js +5 -0
- package/dist/esm-es5/salla-accordion_4.entry.js.map +1 -0
- package/dist/esm-es5/salla-add-product-button_51.entry.js +3 -3
- package/dist/esm-es5/salla-advertisement.entry.js +1 -1
- package/dist/esm-es5/salla-app-install-alert.entry.js +1 -1
- package/dist/esm-es5/salla-apps-icons.entry.js +1 -1
- package/dist/esm-es5/salla-booking-field_2.entry.js +1 -1
- package/dist/esm-es5/salla-cart-item-offers.entry.js +1 -1
- package/dist/esm-es5/salla-conditional-offer.entry.js +1 -1
- package/dist/esm-es5/salla-contacts.entry.js +1 -1
- package/dist/esm-es5/salla-filters-widget.entry.js +2 -2
- package/dist/esm-es5/salla-filters.entry.js +1 -1
- package/dist/esm-es5/salla-installment.entry.js +1 -1
- package/dist/esm-es5/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm-es5/salla-loyalty-program.entry.js +1 -1
- package/dist/esm-es5/salla-metadata.entry.js +2 -2
- package/dist/esm-es5/salla-notification-item.entry.js +1 -1
- package/dist/esm-es5/salla-notifications.entry.js +2 -2
- package/dist/esm-es5/salla-offer.entry.js +1 -1
- package/dist/esm-es5/salla-order-details-multiple-bundle-product.entry.js +5 -0
- package/dist/esm-es5/salla-order-details-multiple-bundle-product.entry.js.map +1 -0
- package/dist/esm-es5/salla-order-details.entry.js +5 -0
- package/dist/esm-es5/salla-order-details.entry.js.map +1 -0
- package/dist/esm-es5/salla-order-summary.entry.js +2 -2
- package/dist/esm-es5/salla-orders.entry.js +1 -1
- package/dist/esm-es5/salla-payments.entry.js +1 -1
- package/dist/esm-es5/salla-price-range.entry.js +2 -2
- package/dist/esm-es5/salla-product-options.entry.js +1 -1
- package/dist/esm-es5/salla-review-card.entry.js +1 -1
- package/dist/esm-es5/salla-reviews-page.entry.js +1 -1
- package/dist/esm-es5/salla-reviews.entry.js +1 -1
- package/dist/esm-es5/salla-social.entry.js +1 -1
- package/dist/esm-es5/salla-tiered-offer.entry.js +1 -1
- package/dist/esm-es5/salla-tooltip.entry.js +1 -1
- package/dist/esm-es5/salla-verify.entry.js +1 -1
- package/dist/esm-es5/salla-wallet.entry.js +1 -1
- package/dist/esm-es5/twilight.js +1 -1
- package/dist/twilight/{p-d513da6f.entry.js → p-0065a55b.entry.js} +2 -2
- package/dist/twilight/{p-c9678188.system.entry.js → p-05cf8f0f.system.entry.js} +2 -2
- package/dist/twilight/{p-8213a9ef.system.entry.js → p-066a5e95.system.entry.js} +2 -2
- package/dist/twilight/{p-81aeef6a.entry.js → p-0a58ecb2.entry.js} +2 -2
- package/dist/twilight/{p-5b882c52.system.entry.js → p-0ab8c50f.system.entry.js} +2 -2
- package/dist/twilight/{p-d84eb47c.entry.js → p-13efdbe3.entry.js} +2 -2
- package/dist/twilight/{p-4af5ffea.entry.js → p-13f1a287.entry.js} +2 -2
- package/dist/twilight/{p-6e24a5f0.system.entry.js → p-15c42251.system.entry.js} +2 -2
- package/dist/twilight/{p-8c0822f7.system.entry.js → p-17567b38.system.entry.js} +2 -2
- package/dist/twilight/p-184bc156.system.entry.js +5 -0
- package/dist/twilight/p-184bc156.system.entry.js.map +1 -0
- package/dist/twilight/{p-648fb6ca.entry.js → p-204e0ad2.entry.js} +2 -2
- package/dist/twilight/{p-63cba8e3.entry.js → p-210ccdae.entry.js} +2 -2
- package/dist/twilight/{p-d0004953.entry.js → p-240b86ef.entry.js} +2 -2
- package/dist/twilight/{p-dd83a408.entry.js → p-27206d63.entry.js} +2 -2
- package/dist/twilight/{p-c84819d5.entry.js → p-35dd7512.entry.js} +4 -4
- package/dist/twilight/{p-2af0da5a.system.entry.js → p-38675c42.system.entry.js} +2 -2
- package/dist/twilight/{p-7234c5f2.system.entry.js → p-3cdd4d44.system.entry.js} +2 -2
- package/dist/twilight/{p-8359eb2a.entry.js → p-3e9ceed0.entry.js} +2 -2
- package/dist/twilight/{p-a18f81a8.system.entry.js → p-447f03b5.system.entry.js} +2 -2
- package/dist/twilight/{p-2ecf868e.entry.js → p-4b7e613a.entry.js} +2 -2
- package/dist/twilight/{p-d5750810.entry.js → p-4d5387e9.entry.js} +2 -2
- package/dist/twilight/{p-ad0fedcd.system.entry.js → p-53fb14d0.system.entry.js} +2 -2
- package/dist/twilight/p-5db51240.system.entry.js +5 -0
- package/dist/twilight/{p-aad20f10.system.entry.js → p-61f590ca.system.entry.js} +2 -2
- package/dist/twilight/p-6a179bc3.system.entry.js +5 -0
- package/dist/twilight/p-6a179bc3.system.entry.js.map +1 -0
- package/dist/twilight/{p-407d19d8.system.entry.js → p-6a51cb91.system.entry.js} +2 -2
- package/dist/twilight/{p-95adf84e.entry.js → p-6abfa7ed.entry.js} +2 -2
- package/dist/twilight/{p-45b61475.entry.js → p-6f66faea.entry.js} +2 -2
- package/dist/twilight/{p-f57bcc51.entry.js → p-7187b729.entry.js} +2 -2
- package/dist/twilight/{p-c87d6aa6.system.entry.js → p-765562b8.system.entry.js} +4 -4
- package/dist/twilight/p-76d92026.entry.js +5 -0
- package/dist/twilight/p-76d92026.entry.js.map +1 -0
- package/dist/twilight/{p-6a0b5799.entry.js → p-78deca48.entry.js} +2 -2
- package/dist/twilight/{p-3483eb09.system.entry.js → p-7dce6627.system.entry.js} +2 -2
- package/dist/twilight/p-7f28b72e.entry.js +5 -0
- package/dist/twilight/p-7f28b72e.entry.js.map +1 -0
- package/dist/twilight/{p-396198a2.entry.js → p-83f6408a.entry.js} +2 -2
- package/dist/twilight/{p-d097a67d.system.entry.js → p-888de4b8.system.entry.js} +2 -2
- package/dist/twilight/{p-Ccj70VFr.system.js.map → p-8SAlNoQ7.system.js.map} +1 -1
- package/dist/twilight/{p-CZGaqTus.system.js.map → p-8cuU9AcW.system.js.map} +1 -1
- package/dist/twilight/{p-1b24ea99.system.entry.js → p-8e807035.system.entry.js} +2 -2
- package/dist/twilight/{p-6b716e82.system.entry.js → p-8fcff962.system.entry.js} +2 -2
- package/dist/twilight/p-9a8a57f0.entry.js +5 -0
- package/dist/twilight/{p-1a9eebb6.system.entry.js → p-9cb1a11d.system.entry.js} +2 -2
- package/dist/twilight/{p-CDmxJQ_1.system.js.map → p-B10yx9se.system.js.map} +1 -1
- package/dist/twilight/{p-BHI6mAw4.system.js.map → p-BKsOE9n5.system.js.map} +1 -1
- package/dist/twilight/{p-BRsVFuI-.system.js.map → p-BzHfWaAI.system.js.map} +1 -1
- package/dist/twilight/{p-ByNC3ygM.system.js.map → p-C0IcnmR-.system.js.map} +1 -1
- package/dist/twilight/{p-B_aBck2N.system.js.map → p-C0Tc4qY_.system.js.map} +1 -1
- package/dist/twilight/{p-e-FAhVeu.system.js.map → p-C72wuhae.system.js.map} +1 -1
- package/dist/twilight/{p-BrxIkK1y.system.js.map → p-CDuCVzYE.system.js.map} +1 -1
- package/dist/twilight/{p-CgDN9ZEV.system.js.map → p-CK7f65RE.system.js.map} +1 -1
- package/dist/twilight/{p-B0xoNOFR.system.js → p-CQDiSGcm.system.js} +3 -3
- package/dist/twilight/p-CQDiSGcm.system.js.map +1 -0
- package/dist/twilight/{p-CVW8a0jw.system.js.map → p-Crz5Om7F.system.js.map} +1 -1
- package/dist/twilight/p-D6vllM1-.system.js.map +1 -0
- package/dist/twilight/{p-O_6m6zp3.system.js.map → p-DHIqW0kb.system.js.map} +1 -1
- package/dist/twilight/{p-DxRZfb-O.system.js → p-DHVFvgH-.system.js} +2 -2
- package/dist/twilight/{p-DxRZfb-O.system.js.map → p-DHVFvgH-.system.js.map} +1 -1
- package/dist/twilight/{p-DvrwOwqK.system.js.map → p-DNXP15r0.system.js.map} +1 -1
- package/dist/twilight/{p-Bqv1miCk.system.js.map → p-DNsqaxY7.system.js.map} +1 -1
- package/dist/twilight/{p-BxORDCZ3.system.js.map → p-DTx9WCBY.system.js.map} +1 -1
- package/dist/twilight/{p-TrPvZWq-.system.js.map → p-DVKxP5is.system.js.map} +1 -1
- package/dist/twilight/p-DVpqfl3D.system.js.map +1 -0
- package/dist/twilight/{p-BXoB3JpD.system.js.map → p-DZTRKwds.system.js.map} +1 -1
- package/dist/twilight/{p-CaCB348j.system.js.map → p-DZajWqW2.system.js.map} +1 -1
- package/dist/twilight/{p-BbDuw4AO.system.js.map → p-Da2A-hsX.system.js.map} +1 -1
- package/dist/twilight/{p-CNqFfslE.system.js.map → p-DgVuWfs6.system.js.map} +1 -1
- package/dist/twilight/p-Dhlfiere.system.js +5 -0
- package/dist/twilight/{p-DMKkUrkS.system.js.map → p-Dhlfiere.system.js.map} +1 -1
- package/dist/twilight/{p-DVnmchft.system.js.map → p-DkCrulih.system.js.map} +1 -1
- package/dist/twilight/{p-CB3G0Z8y.system.js.map → p-Du8MMxWf.system.js.map} +1 -1
- package/dist/twilight/{p-u0que_SA.system.js.map → p-DvSX1guT.system.js.map} +1 -1
- package/dist/twilight/{p-D4D34Ujk.js → p-Hw2jlaNN.js} +3 -3
- package/dist/twilight/p-Hw2jlaNN.js.map +1 -0
- package/dist/twilight/{p-C-vbYsMC.system.js.map → p-N45BdAU8.system.js.map} +1 -1
- package/dist/twilight/{p-DNiQ_YXx.js → p-NSLkL4Dn.js} +2 -2
- package/dist/twilight/{p-DNiQ_YXx.js.map → p-NSLkL4Dn.js.map} +1 -1
- package/dist/twilight/{p-OzJ9XEsV.system.js.map → p-QNwQUqLM.system.js.map} +1 -1
- package/dist/twilight/{p-DlRNuq8n.system.js.map → p-XDYW48AK.system.js.map} +1 -1
- package/dist/twilight/{p-1055f2fb.entry.js → p-a8cf78c0.entry.js} +2 -2
- package/dist/twilight/p-a9c9a4ac.entry.js +5 -0
- package/dist/twilight/p-a9c9a4ac.entry.js.map +1 -0
- package/dist/twilight/{p-669db4df.entry.js → p-b13ef44c.entry.js} +2 -2
- package/dist/twilight/{p-d15630dd.entry.js → p-b492c336.entry.js} +2 -2
- package/dist/twilight/{p-f745fcad.entry.js → p-b51bb42b.entry.js} +2 -2
- package/dist/twilight/{p-3eaddcf1.entry.js → p-bb1a0f6b.entry.js} +2 -2
- package/dist/twilight/{p-5542a867.entry.js → p-bca6b6b2.entry.js} +2 -2
- package/dist/twilight/{p-fbe10567.entry.js → p-bdca9c9c.entry.js} +2 -2
- package/dist/twilight/p-be2938da.entry.js +5 -0
- package/dist/twilight/{p-58085711.entry.js → p-c5b5a947.entry.js} +2 -2
- package/dist/twilight/{p-BJUBMQeL.system.js.map → p-cK_8A-PC.system.js.map} +1 -1
- package/dist/twilight/{p-CiGTTlgd.system.js.map → p-cR7gWxFU.system.js.map} +1 -1
- package/dist/twilight/p-d314110a.system.entry.js +5 -0
- package/dist/twilight/p-d314110a.system.entry.js.map +1 -0
- package/dist/twilight/{p-13324cdd.system.entry.js → p-d33197dc.system.entry.js} +3 -3
- package/dist/twilight/{p-e9bc1fa4.system.entry.js → p-d3c9cfbb.system.entry.js} +2 -2
- package/dist/twilight/{p-e823d4e8.system.entry.js → p-d4017888.system.entry.js} +2 -2
- package/dist/twilight/{p-442340d3.system.entry.js → p-d43b5d6a.system.entry.js} +2 -2
- package/dist/twilight/{p-2ae75a1c.entry.js → p-d7604122.entry.js} +2 -2
- package/dist/twilight/{p-ebd4ac51.system.entry.js → p-d8039b97.system.entry.js} +2 -2
- package/dist/twilight/{p-423d91f5.system.entry.js → p-db9674c2.system.entry.js} +2 -2
- package/dist/twilight/{p-a1d102d3.system.entry.js → p-eb292930.system.entry.js} +2 -2
- package/dist/twilight/{p-60bf8746.system.entry.js → p-ec034bd2.system.entry.js} +2 -2
- package/dist/twilight/{p-ab7cc63a.system.entry.js → p-f07ad750.system.entry.js} +2 -2
- package/dist/twilight/{p-06b95a05.system.entry.js → p-f0b1ceef.system.entry.js} +2 -2
- package/dist/twilight/p-f5aefbca.system.entry.js +5 -0
- package/dist/twilight/{p-17c50686.entry.js → p-fb399776.entry.js} +2 -2
- package/dist/twilight/{p-e784d087.entry.js → p-fe81524d.entry.js} +2 -2
- package/dist/twilight/p-fed7a7a5.system.entry.js +5 -0
- package/dist/twilight/{p-C9DFiJHW.system.js.map → p-jx7CG3rj.system.js.map} +1 -1
- package/dist/twilight/{p-ofxyuLsh.system.js.map → p-lRCsnz7i.system.js.map} +1 -1
- package/dist/twilight/p-oqUqe5ch.system.js.map +1 -0
- package/dist/twilight/{p-Cs3Irr4v.system.js.map → p-xRJ6wvh1.system.js.map} +1 -1
- package/dist/twilight/salla-accordion.salla-accordion-body.salla-accordion-head.salla-order-details-options.entry.esm.js.map +1 -0
- package/dist/twilight/salla-order-details-multiple-bundle-product.entry.esm.js.map +1 -0
- package/dist/twilight/salla-order-details.entry.esm.js.map +1 -0
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/twilight/twilight.js +1 -1
- package/dist/types/components/salla-accordion/salla-accordion.d.ts +2 -0
- package/dist/types/components/salla-order-details/interfaces.d.ts +55 -0
- package/dist/types/components/salla-order-details/salla-order-details-multiple-bundle-product.d.ts +22 -0
- package/dist/types/components/salla-order-details/salla-order-details-options.d.ts +23 -0
- package/dist/types/components/salla-order-details/salla-order-details.d.ts +14 -0
- package/dist/types/components.d.ts +173 -0
- package/package.json +5 -5
- package/dist/cjs/index-DtXwvL5X.js.map +0 -1
- package/dist/cjs/salla-accordion-body.cjs.entry.js +0 -23
- package/dist/cjs/salla-accordion-body.cjs.entry.js.map +0 -1
- package/dist/cjs/salla-accordion-body.entry.cjs.js.map +0 -1
- package/dist/cjs/salla-accordion-head.cjs.entry.js +0 -52
- package/dist/cjs/salla-accordion-head.cjs.entry.js.map +0 -1
- package/dist/cjs/salla-accordion-head.entry.cjs.js.map +0 -1
- package/dist/cjs/salla-accordion.cjs.entry.js +0 -51
- package/dist/cjs/salla-accordion.cjs.entry.js.map +0 -1
- package/dist/cjs/salla-accordion.entry.cjs.js.map +0 -1
- package/dist/esm/index-D4D34Ujk.js.map +0 -1
- package/dist/esm/salla-accordion-body.entry.js +0 -21
- package/dist/esm/salla-accordion-body.entry.js.map +0 -1
- package/dist/esm/salla-accordion-head.entry.js +0 -50
- package/dist/esm/salla-accordion-head.entry.js.map +0 -1
- package/dist/esm/salla-accordion.entry.js +0 -49
- package/dist/esm/salla-accordion.entry.js.map +0 -1
- package/dist/esm-es5/index-D4D34Ujk.js.map +0 -1
- package/dist/esm-es5/salla-accordion-body.entry.js +0 -5
- package/dist/esm-es5/salla-accordion-body.entry.js.map +0 -1
- package/dist/esm-es5/salla-accordion-head.entry.js +0 -5
- package/dist/esm-es5/salla-accordion-head.entry.js.map +0 -1
- package/dist/esm-es5/salla-accordion.entry.js +0 -5
- package/dist/esm-es5/salla-accordion.entry.js.map +0 -1
- package/dist/twilight/p-154fc672.entry.js +0 -5
- package/dist/twilight/p-154fc672.entry.js.map +0 -1
- package/dist/twilight/p-17ee3d18.entry.js +0 -5
- package/dist/twilight/p-40e20722.system.entry.js +0 -5
- package/dist/twilight/p-40e20722.system.entry.js.map +0 -1
- package/dist/twilight/p-4d6baea7.system.entry.js +0 -5
- package/dist/twilight/p-4d6baea7.system.entry.js.map +0 -1
- package/dist/twilight/p-553bc6b4.system.entry.js +0 -5
- package/dist/twilight/p-63a5bdc6.entry.js +0 -5
- package/dist/twilight/p-63a5bdc6.entry.js.map +0 -1
- package/dist/twilight/p-7eff7dc5.system.entry.js +0 -5
- package/dist/twilight/p-B0xoNOFR.system.js.map +0 -1
- package/dist/twilight/p-BN8tVPbo.system.js.map +0 -1
- package/dist/twilight/p-Cc6e2YrQ.system.js.map +0 -1
- package/dist/twilight/p-D4D34Ujk.js.map +0 -1
- package/dist/twilight/p-DMKkUrkS.system.js +0 -5
- package/dist/twilight/p-Daef3WlT.system.js.map +0 -1
- package/dist/twilight/p-c0363ba7.entry.js +0 -5
- package/dist/twilight/p-c0363ba7.entry.js.map +0 -1
- package/dist/twilight/p-e2ab2b64.system.entry.js +0 -5
- package/dist/twilight/p-e2ab2b64.system.entry.js.map +0 -1
- package/dist/twilight/p-ef38f4ac.system.entry.js +0 -5
- package/dist/twilight/p-fcc64f6d.entry.js +0 -5
- package/dist/twilight/salla-accordion-body.entry.esm.js.map +0 -1
- package/dist/twilight/salla-accordion-head.entry.esm.js.map +0 -1
- package/dist/twilight/salla-accordion.entry.esm.js.map +0 -1
- /package/dist/twilight/{p-d513da6f.entry.js.map → p-0065a55b.entry.js.map} +0 -0
- /package/dist/twilight/{p-c9678188.system.entry.js.map → p-05cf8f0f.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-8213a9ef.system.entry.js.map → p-066a5e95.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-81aeef6a.entry.js.map → p-0a58ecb2.entry.js.map} +0 -0
- /package/dist/twilight/{p-5b882c52.system.entry.js.map → p-0ab8c50f.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-d84eb47c.entry.js.map → p-13efdbe3.entry.js.map} +0 -0
- /package/dist/twilight/{p-4af5ffea.entry.js.map → p-13f1a287.entry.js.map} +0 -0
- /package/dist/twilight/{p-6e24a5f0.system.entry.js.map → p-15c42251.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-8c0822f7.system.entry.js.map → p-17567b38.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-648fb6ca.entry.js.map → p-204e0ad2.entry.js.map} +0 -0
- /package/dist/twilight/{p-63cba8e3.entry.js.map → p-210ccdae.entry.js.map} +0 -0
- /package/dist/twilight/{p-d0004953.entry.js.map → p-240b86ef.entry.js.map} +0 -0
- /package/dist/twilight/{p-dd83a408.entry.js.map → p-27206d63.entry.js.map} +0 -0
- /package/dist/twilight/{p-c84819d5.entry.js.map → p-35dd7512.entry.js.map} +0 -0
- /package/dist/twilight/{p-2af0da5a.system.entry.js.map → p-38675c42.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-7234c5f2.system.entry.js.map → p-3cdd4d44.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-8359eb2a.entry.js.map → p-3e9ceed0.entry.js.map} +0 -0
- /package/dist/twilight/{p-a18f81a8.system.entry.js.map → p-447f03b5.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-2ecf868e.entry.js.map → p-4b7e613a.entry.js.map} +0 -0
- /package/dist/twilight/{p-d5750810.entry.js.map → p-4d5387e9.entry.js.map} +0 -0
- /package/dist/twilight/{p-ad0fedcd.system.entry.js.map → p-53fb14d0.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-553bc6b4.system.entry.js.map → p-5db51240.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-aad20f10.system.entry.js.map → p-61f590ca.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-407d19d8.system.entry.js.map → p-6a51cb91.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-95adf84e.entry.js.map → p-6abfa7ed.entry.js.map} +0 -0
- /package/dist/twilight/{p-45b61475.entry.js.map → p-6f66faea.entry.js.map} +0 -0
- /package/dist/twilight/{p-f57bcc51.entry.js.map → p-7187b729.entry.js.map} +0 -0
- /package/dist/twilight/{p-c87d6aa6.system.entry.js.map → p-765562b8.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-6a0b5799.entry.js.map → p-78deca48.entry.js.map} +0 -0
- /package/dist/twilight/{p-3483eb09.system.entry.js.map → p-7dce6627.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-396198a2.entry.js.map → p-83f6408a.entry.js.map} +0 -0
- /package/dist/twilight/{p-d097a67d.system.entry.js.map → p-888de4b8.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-1b24ea99.system.entry.js.map → p-8e807035.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-6b716e82.system.entry.js.map → p-8fcff962.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-17ee3d18.entry.js.map → p-9a8a57f0.entry.js.map} +0 -0
- /package/dist/twilight/{p-1a9eebb6.system.entry.js.map → p-9cb1a11d.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-1055f2fb.entry.js.map → p-a8cf78c0.entry.js.map} +0 -0
- /package/dist/twilight/{p-669db4df.entry.js.map → p-b13ef44c.entry.js.map} +0 -0
- /package/dist/twilight/{p-d15630dd.entry.js.map → p-b492c336.entry.js.map} +0 -0
- /package/dist/twilight/{p-f745fcad.entry.js.map → p-b51bb42b.entry.js.map} +0 -0
- /package/dist/twilight/{p-3eaddcf1.entry.js.map → p-bb1a0f6b.entry.js.map} +0 -0
- /package/dist/twilight/{p-5542a867.entry.js.map → p-bca6b6b2.entry.js.map} +0 -0
- /package/dist/twilight/{p-fbe10567.entry.js.map → p-bdca9c9c.entry.js.map} +0 -0
- /package/dist/twilight/{p-fcc64f6d.entry.js.map → p-be2938da.entry.js.map} +0 -0
- /package/dist/twilight/{p-58085711.entry.js.map → p-c5b5a947.entry.js.map} +0 -0
- /package/dist/twilight/{p-13324cdd.system.entry.js.map → p-d33197dc.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-e9bc1fa4.system.entry.js.map → p-d3c9cfbb.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-e823d4e8.system.entry.js.map → p-d4017888.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-442340d3.system.entry.js.map → p-d43b5d6a.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-2ae75a1c.entry.js.map → p-d7604122.entry.js.map} +0 -0
- /package/dist/twilight/{p-ebd4ac51.system.entry.js.map → p-d8039b97.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-423d91f5.system.entry.js.map → p-db9674c2.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-a1d102d3.system.entry.js.map → p-eb292930.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-60bf8746.system.entry.js.map → p-ec034bd2.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-ab7cc63a.system.entry.js.map → p-f07ad750.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-06b95a05.system.entry.js.map → p-f0b1ceef.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-ef38f4ac.system.entry.js.map → p-f5aefbca.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-17c50686.entry.js.map → p-fb399776.entry.js.map} +0 -0
- /package/dist/twilight/{p-e784d087.entry.js.map → p-fe81524d.entry.js.map} +0 -0
- /package/dist/twilight/{p-7eff7dc5.system.entry.js.map → p-fed7a7a5.system.entry.js.map} +0 -0
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { Host, h } from "@stencil/core";
|
|
5
|
+
import copyIcon from "../../assets/svg/swap-fill.svg";
|
|
6
|
+
/**
|
|
7
|
+
* @salla/ui-components
|
|
8
|
+
* The `salla-order-details-options` component renders product options for order details.
|
|
9
|
+
* It displays various types of options including colors, images, files, maps, and text values.
|
|
10
|
+
*/
|
|
11
|
+
export class SallaOrderDetailsOptions {
|
|
12
|
+
constructor() {
|
|
13
|
+
/** Whether to show the options in a bordered container */
|
|
14
|
+
this.bordered = true;
|
|
15
|
+
/** Placeholder image URL when option image is not available */
|
|
16
|
+
this.placeholderImage = 'images/placeholder.png';
|
|
17
|
+
/** Parsed options data */
|
|
18
|
+
this.optionsData = [];
|
|
19
|
+
}
|
|
20
|
+
componentWillLoad() {
|
|
21
|
+
this.parseOptionsData();
|
|
22
|
+
}
|
|
23
|
+
componentWillUpdate() {
|
|
24
|
+
this.parseOptionsData();
|
|
25
|
+
}
|
|
26
|
+
parseOptionsData() {
|
|
27
|
+
if (!this.options) {
|
|
28
|
+
this.optionsData = [];
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (typeof this.options === 'string') {
|
|
32
|
+
try {
|
|
33
|
+
this.optionsData = JSON.parse(this.options);
|
|
34
|
+
}
|
|
35
|
+
catch (e) {
|
|
36
|
+
// Invalid options JSON, fallback to empty array
|
|
37
|
+
this.optionsData = [];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
this.optionsData = Array.isArray(this.options) ? this.options : [];
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
renderOptionValue(option) {
|
|
45
|
+
// Handle image options
|
|
46
|
+
if (option.is_image) {
|
|
47
|
+
return (h("div", { class: "s-order-details-option-image-container" }, h("a", { href: option.value, target: "_blank" }, h("img", { class: "s-order-details-option-image", src: option.value || this.placeholderImage, alt: option.name }))));
|
|
48
|
+
}
|
|
49
|
+
// Handle color options
|
|
50
|
+
if (option.color) {
|
|
51
|
+
return (h("span", { title: option.value, class: "s-order-details-option-color-swatch", style: { backgroundColor: option.color } }));
|
|
52
|
+
}
|
|
53
|
+
// Handle file options
|
|
54
|
+
if (option.is_file) {
|
|
55
|
+
return (h("a", { href: option.value, target: "_blank", class: "s-order-details-option-file-link" }, "Attachments"));
|
|
56
|
+
}
|
|
57
|
+
// Handle color picker options
|
|
58
|
+
if (option.is_color_picker) {
|
|
59
|
+
return (h("div", { class: "s-order-details-option-color-picker" }, h("div", { class: "s-order-details-option-color-picker-content" }, h("span", { class: "s-order-details-option-color-picker-text" }, option.value), h("span", { class: "s-order-details-option-color-picker-swatch", style: { backgroundColor: option.value, width: '1rem' } })), h("salla-button", { onClick: e => this.copyToClipboard(e, option.value), shape: "link", class: "s-order-details-option-color-picker-button" }, h("span", { class: "s-order-details-option-color-copy-icon", innerHTML: copyIcon }))));
|
|
60
|
+
}
|
|
61
|
+
// Handle map options
|
|
62
|
+
if (option.is_map && option.latitude && option.longitude) {
|
|
63
|
+
return (h("salla-map", { id: `location_map_${option.id}`, class: `map_${option.id}`, zoom: 15, readonly: true, lat: option.latitude, lng: option.longitude }, h("div", { slot: "button" }, h("button", { type: "button", class: "s-order-details-option-map-button", onClick: () => this.openMap(option.id) }, "Show Location"))));
|
|
64
|
+
}
|
|
65
|
+
// Default text value
|
|
66
|
+
return (h("span", { class: "s-order-details-option-default-text" }, option.display_value || option.value));
|
|
67
|
+
}
|
|
68
|
+
copyToClipboard(event, content) {
|
|
69
|
+
event.preventDefault();
|
|
70
|
+
if (navigator.clipboard) {
|
|
71
|
+
navigator.clipboard.writeText(content);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
openMap(optionId) {
|
|
75
|
+
const mapElement = document.querySelector(`salla-map.map_${optionId}`);
|
|
76
|
+
if (mapElement && mapElement.open) {
|
|
77
|
+
mapElement.open();
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
render() {
|
|
81
|
+
if (!this.optionsData.length) {
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
const containerClasses = this.bordered
|
|
85
|
+
? 's-order-details-options-container'
|
|
86
|
+
: 's-order-details-options-container-borderless';
|
|
87
|
+
return (h(Host, { class: "s-order-details-options-wrapper" }, h("h2", { class: "s-order-details-options-title" }, salla.lang.get('pages.cart.item_options')), h("div", { class: containerClasses }, h("dl", { class: "s-order-details-options-list" }, this.optionsData.map(option => (h("div", { key: option.id, class: "s-order-details-options-item" }, h("dt", { class: "s-order-details-options-item-name" }, option.name, ":"), h("dd", { class: option.is_image
|
|
88
|
+
? 's-order-details-options-item-value-image'
|
|
89
|
+
: 's-order-details-options-item-value-text' }, this.renderOptionValue(option)))))))));
|
|
90
|
+
}
|
|
91
|
+
static get is() { return "salla-order-details-options"; }
|
|
92
|
+
static get originalStyleUrls() {
|
|
93
|
+
return {
|
|
94
|
+
"$": ["salla-order-details-options.scss"]
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
static get styleUrls() {
|
|
98
|
+
return {
|
|
99
|
+
"$": ["salla-order-details-options.css"]
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
static get properties() {
|
|
103
|
+
return {
|
|
104
|
+
"options": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"attribute": "options",
|
|
107
|
+
"mutable": false,
|
|
108
|
+
"complexType": {
|
|
109
|
+
"original": "ProductOption[] | string",
|
|
110
|
+
"resolved": "ProductOption[] | string",
|
|
111
|
+
"references": {
|
|
112
|
+
"ProductOption": {
|
|
113
|
+
"location": "import",
|
|
114
|
+
"path": "./interfaces",
|
|
115
|
+
"id": "src/components/salla-order-details/interfaces.ts::ProductOption"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"required": false,
|
|
120
|
+
"optional": true,
|
|
121
|
+
"docs": {
|
|
122
|
+
"tags": [],
|
|
123
|
+
"text": "Product options to display"
|
|
124
|
+
},
|
|
125
|
+
"getter": false,
|
|
126
|
+
"setter": false,
|
|
127
|
+
"reflect": false
|
|
128
|
+
},
|
|
129
|
+
"bordered": {
|
|
130
|
+
"type": "boolean",
|
|
131
|
+
"attribute": "bordered",
|
|
132
|
+
"mutable": false,
|
|
133
|
+
"complexType": {
|
|
134
|
+
"original": "boolean",
|
|
135
|
+
"resolved": "boolean",
|
|
136
|
+
"references": {}
|
|
137
|
+
},
|
|
138
|
+
"required": false,
|
|
139
|
+
"optional": true,
|
|
140
|
+
"docs": {
|
|
141
|
+
"tags": [],
|
|
142
|
+
"text": "Whether to show the options in a bordered container"
|
|
143
|
+
},
|
|
144
|
+
"getter": false,
|
|
145
|
+
"setter": false,
|
|
146
|
+
"reflect": false,
|
|
147
|
+
"defaultValue": "true"
|
|
148
|
+
},
|
|
149
|
+
"placeholderImage": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"attribute": "placeholder-image",
|
|
152
|
+
"mutable": false,
|
|
153
|
+
"complexType": {
|
|
154
|
+
"original": "string",
|
|
155
|
+
"resolved": "string",
|
|
156
|
+
"references": {}
|
|
157
|
+
},
|
|
158
|
+
"required": false,
|
|
159
|
+
"optional": false,
|
|
160
|
+
"docs": {
|
|
161
|
+
"tags": [],
|
|
162
|
+
"text": "Placeholder image URL when option image is not available"
|
|
163
|
+
},
|
|
164
|
+
"getter": false,
|
|
165
|
+
"setter": false,
|
|
166
|
+
"reflect": false,
|
|
167
|
+
"defaultValue": "'images/placeholder.png'"
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
static get states() {
|
|
172
|
+
return {
|
|
173
|
+
"optionsData": {}
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
//# sourceMappingURL=salla-order-details-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"salla-order-details-options.js","sourceRoot":"","sources":["../../../src/components/salla-order-details/salla-order-details-options.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Host, h, Prop, State } from '@stencil/core';\nimport { ProductOption } from './interfaces';\nimport copyIcon from '../../assets/svg/swap-fill.svg';\n\n/**\n * @salla/ui-components\n * The `salla-order-details-options` component renders product options for order details.\n * It displays various types of options including colors, images, files, maps, and text values.\n */\n@Component({\n tag: 'salla-order-details-options',\n styleUrl: 'salla-order-details-options.scss',\n})\nexport class SallaOrderDetailsOptions {\n /** Product options to display */\n @Prop() options?: ProductOption[] | string;\n\n /** Whether to show the options in a bordered container */\n @Prop() bordered?: boolean = true;\n\n /** Placeholder image URL when option image is not available */\n @Prop() placeholderImage: string = 'images/placeholder.png';\n\n /** Parsed options data */\n @State() optionsData: ProductOption[] = [];\n\n componentWillLoad() {\n this.parseOptionsData();\n }\n\n componentWillUpdate() {\n this.parseOptionsData();\n }\n\n private parseOptionsData() {\n if (!this.options) {\n this.optionsData = [];\n return;\n }\n\n if (typeof this.options === 'string') {\n try {\n this.optionsData = JSON.parse(this.options);\n } catch (e) {\n // Invalid options JSON, fallback to empty array\n this.optionsData = [];\n }\n } else {\n this.optionsData = Array.isArray(this.options) ? this.options : [];\n }\n }\n\n private renderOptionValue(option: ProductOption) {\n // Handle image options\n if (option.is_image) {\n return (\n <div class=\"s-order-details-option-image-container\">\n <a href={option.value as string} target=\"_blank\">\n <img\n class=\"s-order-details-option-image\"\n src={(option.value as string) || this.placeholderImage}\n alt={option.name}\n />\n </a>\n </div>\n );\n }\n\n // Handle color options\n if (option.color) {\n return (\n <span\n title={option.value as string}\n class=\"s-order-details-option-color-swatch\"\n style={{ backgroundColor: option.color }}\n ></span>\n );\n }\n\n // Handle file options\n if (option.is_file) {\n return (\n <a href={option.value as string} target=\"_blank\" class=\"s-order-details-option-file-link\">\n Attachments\n </a>\n );\n }\n\n // Handle color picker options\n if (option.is_color_picker) {\n return (\n <div class=\"s-order-details-option-color-picker\">\n <div class=\"s-order-details-option-color-picker-content\">\n <span class=\"s-order-details-option-color-picker-text\">{option.value}</span>\n <span\n class=\"s-order-details-option-color-picker-swatch\"\n style={{ backgroundColor: option.value as string, width: '1rem' }}\n ></span>\n </div>\n <salla-button\n onClick={e => this.copyToClipboard(e, option.value as string)}\n shape=\"link\"\n class=\"s-order-details-option-color-picker-button\"\n >\n <span class=\"s-order-details-option-color-copy-icon\" innerHTML={copyIcon}></span>\n </salla-button>\n </div>\n );\n }\n\n // Handle map options\n if (option.is_map && option.latitude && option.longitude) {\n return (\n <salla-map\n id={`location_map_${option.id}`}\n class={`map_${option.id}`}\n zoom={15}\n readonly\n lat={option.latitude as number}\n lng={option.longitude as number}\n >\n <div slot=\"button\">\n <button\n type=\"button\"\n class=\"s-order-details-option-map-button\"\n onClick={() => this.openMap(option.id)}\n >\n Show Location\n </button>\n </div>\n </salla-map>\n );\n }\n\n // Default text value\n return (\n <span class=\"s-order-details-option-default-text\">\n {option.display_value || option.value}\n </span>\n );\n }\n\n private copyToClipboard(event: Event, content: string) {\n event.preventDefault();\n if (navigator.clipboard) {\n navigator.clipboard.writeText(content);\n }\n }\n\n private openMap(optionId: string | number) {\n const mapElement = document.querySelector(`salla-map.map_${optionId}`) as any;\n if (mapElement && mapElement.open) {\n mapElement.open();\n }\n }\n\n render() {\n if (!this.optionsData.length) {\n return null;\n }\n\n const containerClasses = this.bordered\n ? 's-order-details-options-container'\n : 's-order-details-options-container-borderless';\n\n return (\n <Host class=\"s-order-details-options-wrapper\">\n <h2 class=\"s-order-details-options-title\">{salla.lang.get('pages.cart.item_options')}</h2>\n <div class={containerClasses}>\n <dl class=\"s-order-details-options-list\">\n {this.optionsData.map(option => (\n <div key={option.id} class=\"s-order-details-options-item\">\n <dt class=\"s-order-details-options-item-name\">{option.name}:</dt>\n <dd\n class={\n option.is_image\n ? 's-order-details-options-item-value-image'\n : 's-order-details-options-item-value-text'\n }\n >\n {this.renderOptionValue(option)}\n </dd>\n </div>\n ))}\n </dl>\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { Host, h, Fragment } from "@stencil/core";
|
|
5
|
+
/**
|
|
6
|
+
* @salla/ui-components
|
|
7
|
+
* The `salla-order-details` component renders a collapsible summary for an order product with optional options list.
|
|
8
|
+
* It uses the salla-accordion component to provide collapsible functionality.
|
|
9
|
+
*/
|
|
10
|
+
export class SallaOrderDetails {
|
|
11
|
+
parseOrderDetailsData(newValue) {
|
|
12
|
+
this.parsedOrderDetailsData = newValue;
|
|
13
|
+
if (typeof this.orderDetails === 'string') {
|
|
14
|
+
this.parsedOrderDetailsData = JSON.parse(newValue);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
this.parsedOrderDetailsData = newValue;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
componentWillLoad() {
|
|
21
|
+
this.parseOrderDetailsData(this.orderDetails);
|
|
22
|
+
console.log('Parent componentWillLoad - parsedOrderDetailsData:', this.parsedOrderDetailsData);
|
|
23
|
+
}
|
|
24
|
+
renderOrderDetailsContent() {
|
|
25
|
+
// Check if we have parsed data
|
|
26
|
+
if (!this.parsedOrderDetailsData) {
|
|
27
|
+
console.warn('No parsedOrderDetailsData available');
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
return [
|
|
31
|
+
/* Product Options */
|
|
32
|
+
this.parsedOrderDetailsData.options && this.parsedOrderDetailsData.options.length > 0 && (h("salla-order-details-options", { options: this.parsedOrderDetailsData.options })),
|
|
33
|
+
/* Bundle Subproducts */
|
|
34
|
+
this.parsedOrderDetailsData.sub_products &&
|
|
35
|
+
this.parsedOrderDetailsData.sub_products.length > 0 && (h(Fragment, null, h("h2", { class: "s-order-details-bundle-title" }, salla.lang.get('pages.orders.sub_products')), h("div", { class: "s-order-details-bundle-content" }, this.parsedOrderDetailsData.sub_products.map(product => (h("salla-order-details-multiple-bundle-product", { key: product === null || product === void 0 ? void 0 : product.id, productDetails: product })))))),
|
|
36
|
+
];
|
|
37
|
+
}
|
|
38
|
+
render() {
|
|
39
|
+
return h(Host, { key: 'd76fce6a442aca11f3544a9f101ea4245a9317db', class: "s-order-details-wrapper" }, this.renderOrderDetailsContent());
|
|
40
|
+
}
|
|
41
|
+
static get is() { return "salla-order-details"; }
|
|
42
|
+
static get originalStyleUrls() {
|
|
43
|
+
return {
|
|
44
|
+
"$": ["salla-order-details.scss"]
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
static get styleUrls() {
|
|
48
|
+
return {
|
|
49
|
+
"$": ["salla-order-details.css"]
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
static get properties() {
|
|
53
|
+
return {
|
|
54
|
+
"orderDetails": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"attribute": "order-details",
|
|
57
|
+
"mutable": false,
|
|
58
|
+
"complexType": {
|
|
59
|
+
"original": "string | OrderProduct",
|
|
60
|
+
"resolved": "OrderProduct | string",
|
|
61
|
+
"references": {
|
|
62
|
+
"OrderProduct": {
|
|
63
|
+
"location": "import",
|
|
64
|
+
"path": "./interfaces",
|
|
65
|
+
"id": "src/components/salla-order-details/interfaces.ts::OrderProduct"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"required": false,
|
|
70
|
+
"optional": false,
|
|
71
|
+
"docs": {
|
|
72
|
+
"tags": [],
|
|
73
|
+
"text": ""
|
|
74
|
+
},
|
|
75
|
+
"getter": false,
|
|
76
|
+
"setter": false,
|
|
77
|
+
"reflect": false
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
static get states() {
|
|
82
|
+
return {
|
|
83
|
+
"parsedOrderDetailsData": {}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
static get watchers() {
|
|
87
|
+
return [{
|
|
88
|
+
"propName": "orderDetails",
|
|
89
|
+
"methodName": "parseOrderDetailsData"
|
|
90
|
+
}];
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=salla-order-details.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"salla-order-details.js","sourceRoot":"","sources":["../../../src/components/salla-order-details/salla-order-details.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGjF;;;;GAIG;AAKH,MAAM,OAAO,iBAAiB;IAMpB,qBAAqB,CAAC,QAA+B;QAC3D,IAAI,CAAC,sBAAsB,GAAG,QAAwB,CAAC;QACvD,IAAI,OAAO,IAAI,CAAC,YAAY,KAAK,QAAQ,EAAE,CAAC;YAC1C,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC,KAAK,CAAC,QAAkB,CAAC,CAAC;QAC/D,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,sBAAsB,GAAG,QAAwB,CAAC;QACzD,CAAC;IACH,CAAC;IAED,iBAAiB;QACf,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC9C,OAAO,CAAC,GAAG,CAAC,oDAAoD,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;IACjG,CAAC;IAEO,yBAAyB;QAC/B,+BAA+B;QAC/B,IAAI,CAAC,IAAI,CAAC,sBAAsB,EAAE,CAAC;YACjC,OAAO,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAC;YACpD,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO;YACL,qBAAqB;YACrB,IAAI,CAAC,sBAAsB,CAAC,OAAO,IAAI,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,CACvF,mCAA6B,OAAO,EAAE,IAAI,CAAC,sBAAsB,CAAC,OAAO,GAAI,CAC9E;YAED,wBAAwB;YACxB,IAAI,CAAC,sBAAsB,CAAC,YAAY;gBACtC,IAAI,CAAC,sBAAsB,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,IAAI,CACrD,EAAC,QAAQ;gBACP,UAAI,KAAK,EAAC,8BAA8B,IACrC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,2BAA2B,CAAC,CACzC;gBACL,WAAK,KAAK,EAAC,gCAAgC,IACxC,IAAI,CAAC,sBAAsB,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CACvD,mDACE,GAAG,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,EAAE,EAChB,cAAc,EAAE,OAAO,GACvB,CACH,CAAC,CACE,CACG,CACZ;SACJ,CAAC;IACJ,CAAC;IAED,MAAM;QACJ,OAAO,EAAC,IAAI,qDAAC,KAAK,EAAC,yBAAyB,IAAE,IAAI,CAAC,yBAAyB,EAAE,CAAQ,CAAC;IACzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, State, Watch, Fragment } from '@stencil/core';\nimport { OrderProduct } from './interfaces';\n\n/**\n * @salla/ui-components\n * The `salla-order-details` component renders a collapsible summary for an order product with optional options list.\n * It uses the salla-accordion component to provide collapsible functionality.\n */\n@Component({\n tag: 'salla-order-details',\n styleUrl: 'salla-order-details.scss',\n})\nexport class SallaOrderDetails {\n @Prop() orderDetails: string | OrderProduct;\n\n @State() parsedOrderDetailsData: OrderProduct;\n\n @Watch('orderDetails')\n private parseOrderDetailsData(newValue: string | OrderProduct) {\n this.parsedOrderDetailsData = newValue as OrderProduct;\n if (typeof this.orderDetails === 'string') {\n this.parsedOrderDetailsData = JSON.parse(newValue as string);\n } else {\n this.parsedOrderDetailsData = newValue as OrderProduct;\n }\n }\n\n componentWillLoad() {\n this.parseOrderDetailsData(this.orderDetails);\n console.log('Parent componentWillLoad - parsedOrderDetailsData:', this.parsedOrderDetailsData);\n }\n\n private renderOrderDetailsContent() {\n // Check if we have parsed data\n if (!this.parsedOrderDetailsData) {\n console.warn('No parsedOrderDetailsData available');\n return null;\n }\n\n return [\n /* Product Options */\n this.parsedOrderDetailsData.options && this.parsedOrderDetailsData.options.length > 0 && (\n <salla-order-details-options options={this.parsedOrderDetailsData.options} />\n ),\n\n /* Bundle Subproducts */\n this.parsedOrderDetailsData.sub_products &&\n this.parsedOrderDetailsData.sub_products.length > 0 && (\n <Fragment>\n <h2 class=\"s-order-details-bundle-title\">\n {salla.lang.get('pages.orders.sub_products')}\n </h2>\n <div class=\"s-order-details-bundle-content\">\n {this.parsedOrderDetailsData.sub_products.map(product => (\n <salla-order-details-multiple-bundle-product\n key={product?.id}\n productDetails={product}\n />\n ))}\n </div>\n </Fragment>\n ),\n ];\n }\n\n render() {\n return <Host class=\"s-order-details-wrapper\">{this.renderOrderDetailsContent()}</Host>;\n }\n}\n"]}
|
|
@@ -62,7 +62,7 @@ export class SallaOrderSummary {
|
|
|
62
62
|
this.copyCodeButtonTimeout && clearTimeout(this.copyCodeButtonTimeout);
|
|
63
63
|
}
|
|
64
64
|
render() {
|
|
65
|
-
return (h("ul", { key: '
|
|
65
|
+
return (h("ul", { key: '14eed8e219bcde5b32d5fddb95bb8727e980c56c', class: "s-order-summary-wrapper" }, this.noItemFound ? h("salla-placeholder", { alignment: "center" }, h("span", { slot: "title" })) :
|
|
66
66
|
this.order_items.map((item) => (this.isDigitalCard(item) ? (h("li", { key: item.product.id, class: "s-order-summary-item" }, h("h2", { class: "s-order-summary-item-title" }, this.codes_text, " (", item.name, ")"), item.codes.map((code) => (h("div", { key: code.code, class: "s-order-summary-code-item-wrapper" }, h("p", null, h("span", { innerHTML: iconCreditCard }), h("span", null, code.code)), h("salla-button", { class: `s-order-summary-item-copy-button ${this.codeCopied === code.code ? 'copied' : ''}`, onClick: () => this.copyToClipboardHandler(code.code), shape: "link" }, h("span", { innerHTML: this.codeCopied === code.code ? iconCheck : iconCopy }), h("span", null, this.copy_text))))))) :
|
|
67
67
|
this.isDigitalProduct(item) ? (h("li", { key: item.product.id, class: "s-order-summary-item" }, h("h2", { class: "s-order-summary-item-title" }, this.files_text, " (", item.name, ")"), h("ul", null, item.files.map((file) => (h("li", { class: "s-order-summary-digital-item-wrapper" }, h("div", null, h("span", { innerHTML: iconFileArchive }), h("span", null, file.name)), h("a", { href: file.url, target: "_blank", class: "s-order-summary-item-download" }, h("span", { innerHTML: iconDownload }), h("span", null, this.download_text)))))))) : null))));
|
|
68
68
|
}
|
|
@@ -37,12 +37,12 @@ export class SallaPayments {
|
|
|
37
37
|
render() {
|
|
38
38
|
const madeInKSA = !this.exclude.includes('made-in-ksa') && salla.config.get('store.settings.made_in_ksa');
|
|
39
39
|
const sbcId = this.exclude.includes('sbc') ? null : salla.config.get('store.settings.certificate.id');
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: 'a1a26ba03aa60491071f0e63bac40de3ad91bce6', class: "s-payments-list-wrap" }, h("ul", { key: 'd31ca162e83aade956f45d8f517029942a748646', class: "s-payments-list" }, madeInKSA && h("li", { key: '552e3e57345d01ab33bfd20094cbcf8f702c6efa', class: "s-payments-list-item" }, h("img", { key: '04eb9c9a1950edc9ea3c2e218fbe6c5c21d65f6a', class: "lazy", width: "100%", height: "100%", decoding: "async", loading: "lazy", "data-src": salla.url.cdn(`images/made-in-ksa.svg`, 58, 58), alt: "made in KSA certified" })), this.payments.map((payment) => (payment == "cod" ?
|
|
41
41
|
h("div", { id: "cod-slot", innerHTML: this.codSlot
|
|
42
42
|
.replace(/\{image\}/g, salla.url.cdn(`images/payment/cod_mini.png`, 58, 58)) }) :
|
|
43
43
|
h("div", { id: "payment-slot", innerHTML: this.paymentSlot
|
|
44
44
|
.replace(/\{image\}/g, salla.url.cdn(`images/payment/${payment}_mini.png`, 58, 58))
|
|
45
|
-
.replace(/\{payment\}/g, payment) }))), sbcId && h("div", { key: '
|
|
45
|
+
.replace(/\{payment\}/g, payment) }))), sbcId && h("div", { key: '5f69b3c936edf8039006d6ecd73e3c44b74b9167', id: "sbc-slot", innerHTML: this.sbcSlot
|
|
46
46
|
.replace(/\{image\}/g, salla.url.cdn(`images/sbc.png`, 58, 58))
|
|
47
47
|
.replace(/\{link\}/g, `https://eauthenticate.saudibusiness.gov.sa/certificate-details/${sbcId}`) }))));
|
|
48
48
|
}
|
|
@@ -35,7 +35,7 @@ export class SallaPlaceholder {
|
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: 'fe8c3b4958319a69bedc23c4edd7e5e9db820301', class: this.alignmentClass() }, h("div", { key: '727c7f934c9dbc5fb5cdfba7f563855162fa3a23', class: `s-placeholder-icon s-placeholder-icon-${this.iconSize}`, innerHTML: this.icon }), h("div", { key: '6c61798f5af682c078f4536fd88af14c241bc009', class: "s-placeholder-title" }, h("slot", { key: '6bd403b5402ff34b69615ad94fce85516b0fe79d', name: 'title' }, h("span", { key: 'beef08e2f61e1328f15afa9b895302c235022f91' }, salla.lang.get('common.elements.no_options')))), h("div", { key: '50fea21d9fcc09a3478beb31e9e876ed7726b704', class: "s-placeholder-description" }, h("slot", { key: 'de0f6916c65c2a2c97ea3ee3fa16d6fdbeebe90a', name: 'description' }, h("span", { key: '3f6621dc6d2f19b1c5e8f55f9f2cc4b0b622bbcc' }, salla.lang.get('common.errors.empty_results'))))));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "salla-placeholder"; }
|
|
41
41
|
static get originalStyleUrls() {
|
|
@@ -147,9 +147,9 @@ export class SallaPriceRange {
|
|
|
147
147
|
this.maxPrice = value === undefined ? '' : value;
|
|
148
148
|
}
|
|
149
149
|
render() {
|
|
150
|
-
return (h(Host, { key: '
|
|
150
|
+
return (h(Host, { key: 'dc09f4be81c3652da570b522894917f6b70faf61' }, this.filterValues.map((filterValue, index) => {
|
|
151
151
|
return h("label", { class: "s-filters-label", htmlFor: `${this.option.key}-${index}`, key: index }, h("input", { id: `${this.option.key}-${index}`, name: "price", type: "radio", checked: this.isChecked(filterValue), class: "s-filters-radio", onChange: e => this.handleMinMaxPrice(e, filterValue) }), h("span", { innerHTML: this.getPriceLabel(filterValue) }));
|
|
152
|
-
}), h("div", { key: '
|
|
152
|
+
}), h("div", { key: '97f20e2bcff15d906dc5566a7f147339e4423138', class: "flex justify-center items-center" }, h("div", { key: '4c631a9f5c77890bcffd365db6dab471ba989246', class: "relative max-w-xl w-full" }, h("div", { key: '3e4c53b29c4e6fa90eba1a23f646d8391b1ce462', class: "s-price-range-inputs" }, h("div", { key: '6bb515095db500d78c5cc22f2bd25635d157793d', class: "s-price-range-relative" }, h("div", { key: '59617a36c7095a0766155521afb20d517fc5321a', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), h("input", { key: 'bc1ae88ba28bcc11a7373cad13cdd2104646023b', 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" })), h("div", { key: '49e12143570efe2f019e9a3240f9d1c184482f9c', class: "s-price-range-gray-text" }, " -"), h("div", { key: '1e61ef602dbb0f1622bbd7279f15b5ef71d0f2db', class: "s-price-range-relative" }, h("div", { key: '5aac7489a79f52156f382e0e4e181b6d0a8e5fb3', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), h("input", { key: '104a3ce0be1d461715fdc6a29d0df33a8a378ad3', 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" })), h("salla-button", { key: '2e722552816b6ceabf030d596fac580e1fa8d41a', color: 'gray', shape: 'icon', size: 'small', fill: 'outline', onClick: (event) => this.changedEventHandler(event) }, h("span", { key: '6f41a0dfa95c9910ab5d17e98ba815444fab8cca', innerHTML: this.isRTL ? arrowLeft : arrowRight })))))));
|
|
153
153
|
}
|
|
154
154
|
componentDidLoad() {
|
|
155
155
|
this.isReady = true;
|
|
@@ -132,7 +132,7 @@ export class SallaProductAvailability {
|
|
|
132
132
|
field.nextElementSibling['innerText'] = '* ' + errorMsg;
|
|
133
133
|
}
|
|
134
134
|
render() {
|
|
135
|
-
return (h(Host, { key: '
|
|
135
|
+
return (h(Host, { key: '0dc32b09e3916993a31ce6e27d9cefd81dd56289', class: "s-product-availability-wrap" }, this.isSubscribed || this.isVisitorSubscribed
|
|
136
136
|
? h("div", { class: "s-product-availability-subscribed" }, h("span", { innerHTML: BellRingIcon, class: "s-product-availability-subs-icon" }), salla.lang.get('pages.products.notify_availability_success'))
|
|
137
137
|
:
|
|
138
138
|
h("salla-button", { width: "wide", onClick: () => this.isUser ? this.submit() : this.openModel() }, salla.lang.get('pages.products.notify_availability')), this.isUser || this.isSubscribed || this.isVisitorSubscribed ? '' : this.renderModal()));
|
|
@@ -95,14 +95,14 @@ export class SallaProductCard {
|
|
|
95
95
|
's-product-card-out-of-stock': (_b = this.productData) === null || _b === void 0 ? void 0 : _b.is_out_of_stock,
|
|
96
96
|
};
|
|
97
97
|
const hrefProp = ((_c = this.productData) === null || _c === void 0 ? void 0 : _c.url) ? { href: this.productData.url, title: `Learn more about ${(_d = this.productData) === null || _d === void 0 ? void 0 : _d.name}` } : {};
|
|
98
|
-
return (h(Host, { key: '
|
|
98
|
+
return (h(Host, { key: '80743147fd154496018ff530e3c84b2f66cf2985', id: `product-${(_e = this.productData) === null || _e === void 0 ? void 0 : _e.id}`, class: classes }, h("div", { key: 'ecf4f7838db5d38bc355d8730c3eb10dd04aedc4', class: !this.fullImage ? 's-product-card-image' : 's-product-card-image-full' }, h("a", Object.assign({ key: 'db0198934b449152c88d23f8adc71ec212761e2a' }, hrefProp), h("img", { key: 'f80856aacb8861e68ef0dfbe43aeb22d422920f9', class: `s-product-card-image-${salla.url.is_placeholder((_g = (_f = this.productData) === null || _f === void 0 ? void 0 : _f.image) === null || _g === void 0 ? void 0 : _g.url)
|
|
99
99
|
? 'contain'
|
|
100
100
|
: this.fitImageHeight
|
|
101
101
|
? this.fitImageHeight
|
|
102
|
-
: 'cover'} lazy`, src: this.placeholder, alt: ((_j = (_h = this.productData) === null || _h === void 0 ? void 0 : _h.image) === null || _j === void 0 ? void 0 : _j.alt) || ((_k = this.productData) === null || _k === void 0 ? void 0 : _k.name), "data-src": ((_m = (_l = this.productData) === null || _l === void 0 ? void 0 : _l.image) === null || _m === void 0 ? void 0 : _m.url) || ((_o = this.productData) === null || _o === void 0 ? void 0 : _o.thumbnail) }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && h("a", Object.assign({ key: '
|
|
103
|
-
h("salla-button", { shape: "icon", fill: "none", color: "light", "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () => salla.wishlist.toggle(this.productData.id) }, h("span", { innerHTML: Heart })) : ''), h("div", { key: '
|
|
102
|
+
: 'cover'} lazy`, src: this.placeholder, alt: ((_j = (_h = this.productData) === null || _h === void 0 ? void 0 : _h.image) === null || _j === void 0 ? void 0 : _j.alt) || ((_k = this.productData) === null || _k === void 0 ? void 0 : _k.name), "data-src": ((_m = (_l = this.productData) === null || _l === void 0 ? void 0 : _l.image) === null || _m === void 0 ? void 0 : _m.url) || ((_o = this.productData) === null || _o === void 0 ? void 0 : _o.thumbnail) }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && h("a", Object.assign({ key: '7ce28a0b764367d51c8b351793509490cfd1e658' }, hrefProp, { class: "s-product-card-overlay" })), !this.horizontal && !this.fullImage ?
|
|
103
|
+
h("salla-button", { shape: "icon", fill: "none", color: "light", "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () => salla.wishlist.toggle(this.productData.id) }, h("span", { innerHTML: Heart })) : ''), h("div", { key: 'b4f68d13d035d7de2fab28e6f2c0d026d46d8901', class: "s-product-card-content" }, this.isSpecial && ((_p = this.productData) === null || _p === void 0 ? void 0 : _p.quantity) ?
|
|
104
104
|
h("div", { class: "s-product-card-content-pie", ref: pie => this.pie = pie }, h("span", null, h("b", null, salla.helpers.number((_q = this.productData) === null || _q === void 0 ? void 0 : _q.quantity)), this.remained), h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "-2 -1 36 34", class: "s-product-card-content-pie-svg" }, h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-base" }), h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-bar" })))
|
|
105
|
-
: '', h("div", { key: '
|
|
105
|
+
: '', h("div", { key: '2259cecd4157e62a382d95cb6facde5b73eca1af', class: { 's-product-card-content-main': true, 's-product-card-content-extra-padding': this.isSpecial } }, h("h3", { key: '5b5ec545eb44fefdde1d4e2632b4e55baa86260c', class: "s-product-card-content-title" }, h("a", Object.assign({ key: '9afa68bf465f9c18e304ee462037df0999426696' }, hrefProp), (_r = this.productData) === null || _r === void 0 ? void 0 : _r.name)), ((_s = this.productData) === null || _s === void 0 ? void 0 : _s.subtitle) && !this.minimal ?
|
|
106
106
|
h("p", { class: "s-product-card-content-subtitle" }, (_t = this.productData) === null || _t === void 0 ? void 0 : _t.subtitle)
|
|
107
107
|
: ''), ((_u = this.productData) === null || _u === void 0 ? void 0 : _u.donation) && !this.minimal && !this.fullImage ?
|
|
108
108
|
[h("salla-progress-bar", { donation: (_v = this.productData) === null || _v === void 0 ? void 0 : _v.donation }), h("div", { class: "s-product-card-donation-input" }, ((_x = (_w = this.productData) === null || _w === void 0 ? void 0 : _w.donation) === null || _x === void 0 ? void 0 : _x.can_donate) ?
|
|
@@ -111,7 +111,7 @@ export class SallaProductCard {
|
|
|
111
111
|
this.addBtn.donatingAmount = e.target.value;
|
|
112
112
|
}, id: "donation-amount", name: "donating_amount", class: "s-form-control", placeholder: this.donationAmount })]
|
|
113
113
|
: '')]
|
|
114
|
-
: '', h("div", { key: '
|
|
114
|
+
: '', h("div", { key: '7dc9364b456583bbb0a063038eadb971d68d33a1', class: { 's-product-card-content-sub': true, 's-product-card-content-extra-padding': this.isSpecial } }, this.getProductPrice(), ((_z = (_y = this.productData) === null || _y === void 0 ? void 0 : _y.rating) === null || _z === void 0 ? void 0 : _z.stars) && !this.minimal ?
|
|
115
115
|
h("div", { class: "s-product-card-rating" }, h("span", { innerHTML: Star }), h("span", null, this.productData.rating.stars))
|
|
116
116
|
: ''), this.isSpecial && this.productData.discount_ends
|
|
117
117
|
? h("salla-count-down", { date: this.formatDate(this.productData.discount_ends), "end-of-day": true, boxed: true, labeled: true })
|
|
@@ -46,11 +46,11 @@ export class SallaProductSizeGuide {
|
|
|
46
46
|
return h("salla-placeholder", { alignment: "center", iconSize: "xl" }, h("div", { slot: "title" }, this.placeholder_title), h("div", { slot: "description" }, this.placeholder_description));
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (h("salla-modal", { key: '
|
|
49
|
+
return (h("salla-modal", { key: 'e92e648a22d686acde12a13c08335ed3a601e5d0', 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: '6131b840918392e03dc9011b7c23e81cb4b9ff36', slot: 'icon', class: "s-product-size-guide-header-icon", innerHTML: PencilRuler }), h("div", { key: '7d7a998886ae6db08057825eae7b2835f73a8ae4', slot: "loading" }, h("div", { key: '518a9e510085c13c9361f656eb26dcec8ae8455d', class: "s-product-size-guide-skeleton" }, h("salla-skeleton", { key: '65a92119d1b5f9462dd826a838ee6042075d406a', height: '15px', width: '25%' }), h("div", { key: '3cb1034e05756d34d0e9e41a2d4e8f4bd6d925bd', class: "s-product-size-guide-skeleton-header" }, h("salla-skeleton", { key: 'c66e517e8186c83c5bc847a4df87fab31c7f7dbb', height: '40px' }), h("salla-skeleton", { key: '263ae7fde377e75a56d8aa37e814882ac0e9e772', height: '40px' }), h("salla-skeleton", { key: '9f226f26ab6eb1b36cde6cbaedb669d4c034f0a9', height: '40px' }), h("salla-skeleton", { key: 'b5ade5bbaa60f330944c2e868bb9032ef3697bed', height: '40px' })), h("div", { key: 'c0f1d73376efcce4b32fc268c297755c2fc4124e', class: "s-product-size-guide-skeleton-content" }, h("salla-skeleton", { key: 'd3bc5ffef7ca7b2b46b3a320706fa9f82caf9eed', height: '15px', width: '25%' }), h("salla-skeleton", { key: 'f4a9872abfd909796239032757ee0f24f17fb079', height: '10px', width: '75%' }), h("salla-skeleton", { key: '92f22b9609c9a828c88035edf4b5e765fb5040de', height: '10px', width: '50%' }), h("salla-skeleton", { key: '58c7dc5c2f70ed6454b0f41c21bdf245fe412be3', height: '10px', width: '75%' }), h("salla-skeleton", { key: 'b6a6d2585848f125533614c7bbd741bf30121cc3', height: '10px', width: '100%' }), h("salla-skeleton", { key: '271c7052e3b23d4876c65fa5427ace8b47fd26d9', height: '10px', width: '25%' }), h("salla-skeleton", { key: 'b0618e943218f639eb0be368098f8903fecd939f', height: '10px', width: '60%' }), h("salla-skeleton", { key: 'b4e86e51443897ba56a594be2e92c2dbb53f9a9b', height: '10px', width: '45%' }), h("salla-skeleton", { key: '79e8eb1ed011e9fa22b569eda7be7e50135bef7e', height: '10px', width: '30%' })))), h("slot", { key: '62425e2436d2fee89c66e4b3ea66752bbc407616', name: "header" }), !this.hasError && !!this.guides ?
|
|
50
50
|
[
|
|
51
51
|
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 }))))
|
|
52
52
|
]
|
|
53
|
-
: this.showPlaceholder(), h("slot", { key: '
|
|
53
|
+
: this.showPlaceholder(), h("slot", { key: '6c939d70100e2353436e962d9bd5a9c5f59788e5', name: "footer" })));
|
|
54
54
|
}
|
|
55
55
|
static get is() { return "salla-product-size-guide"; }
|
|
56
56
|
static get originalStyleUrls() {
|
|
@@ -80,7 +80,7 @@ export class SallaQuantityInput {
|
|
|
80
80
|
return this.host;
|
|
81
81
|
}
|
|
82
82
|
render() {
|
|
83
|
-
return (h(Host, { key: '
|
|
83
|
+
return (h(Host, { key: '3d641a0813512c3ff22e32275dfd709df934e1f1', class: "s-quantity-input" }, h("div", { key: '2682491a551bcff31f07904566f3a2331d3c0240', class: "s-quantity-input-container" }, h("button", { key: '3b5b2551624628dfb98a41a4a1984749290b9c3c', onClick: () => this.increase(), class: "s-quantity-input-increase-button s-quantity-input-button", type: "button" }, !this.hasIncrementSlot ? h("span", { innerHTML: Add }) : '', h("slot", { key: 'a1263ebcd7fa9fdb5b347e6eef3fe339bae6581a', name: "increment-button" })), h("input", Object.assign({ key: '7e91e2e4d26ee97bca0435351d68f4f456245429', class: "s-quantity-input-input" }, this.getInputAttributes(), { ref: (el) => this.textInput = el, onInput: (event) => this.setValue(event.target.value), min: "1", value: this.quantity })), h("button", { key: '247d8b99d613ef6117f40685f5f0b899cde19102', class: "s-quantity-input-decrease-button s-quantity-input-button", onClick: () => this.decrease(), type: "button" }, !this.hasDecrementSlot ? h("span", { innerHTML: Minus }) : '', h("slot", { key: 'f59b44ec67c071f36a4885728d5095a2a8e01d85', name: "decrement-button" })))));
|
|
84
84
|
}
|
|
85
85
|
static get is() { return "salla-quantity-input"; }
|
|
86
86
|
static get originalStyleUrls() {
|
|
@@ -187,7 +187,7 @@ export class SallaQuickBuy {
|
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
189
|
render() {
|
|
190
|
-
return h(Host, { key: '
|
|
190
|
+
return h(Host, { key: 'f6c7ae2cc1b0b67b1bc85a95602cda238dab6192' }, this.quickBuyButton());
|
|
191
191
|
}
|
|
192
192
|
quickBuyButton() {
|
|
193
193
|
return h("apple-pay-button", { locale: salla.config.get('user.language_code'), onClick: () => this.quickBuyHandler(), "data-quick-purchase": "applepay", class: "s-quick-buy-apple-pay", "data-is-applepay": "1", buttonstyle: "black", type: this.type });
|
|
@@ -167,7 +167,7 @@ export class SallaReviewCard {
|
|
|
167
167
|
}
|
|
168
168
|
render() {
|
|
169
169
|
var _a;
|
|
170
|
-
return h("div", { key: '
|
|
170
|
+
return h("div", { key: '22c0b4997b5eaa3eee23c642aa8fc778cff7fd22', class: "s-review-card-container" }, this.renderSlider(), this.renderSingleImage(), renderDivider(), h("div", { key: 'db1391a8d4ddad808f54551b39d9bfeb55466225', class: "s-review-card-content" }, this.renderHeader(), h("p", { key: '4c6e9af60e480f5c9f840e7ba95f7c59ba12e172', class: "s-review-card-review-content", innerHTML: (_a = this.review) === null || _a === void 0 ? void 0 : _a.content }), renderDivider(), this.renderProductInfo()));
|
|
171
171
|
}
|
|
172
172
|
static get is() { return "salla-review-card"; }
|
|
173
173
|
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: 'deed3cdbac9556908c110d96935d6478996caf99', class: "s-reviews-container" }, h("div", { key: '3646aa3266c29d1f371cf3acedaedc726f7e6bac', class: "s-reviews-header-wrapper" }, h("h1", { key: '0a47642eea4e162173374f0a1340fd3068165d30', 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: '71b0e1f246172b5ea042f7a4dcdc351190a3de3c', 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: '50b9ac94feca79ed29d85bfcf4808b0849e4f933', 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() {
|
|
@@ -145,7 +145,7 @@ export class SallaReviewsPage {
|
|
|
145
145
|
}
|
|
146
146
|
render() {
|
|
147
147
|
var _a, _b;
|
|
148
|
-
return (h("host", { key: '
|
|
148
|
+
return (h("host", { key: 'f3b06307322a56ad320374a50e13161be4e7cc8a' }, h("div", { key: '3dcabdae4ee87de5c62873f327657991a56bc0e1', class: "s-reviews-page-header-wrapper" }, h("h2", { key: '61bca34f24c52440fd8f736f9a6ab2b37be65c34', class: "s-reviews-page-title" }, this.langTitlesReviews, h("span", { key: 'c29228eaa51e9c202c6031e5f69b95905aa5485a', class: "s-reviews-page-count" }, "(", this.langRatingReviews, ")")), h("div", { key: '81f964be39231e21cd7c994e7e241e755af54c86', class: "s-reviews-page-filter-wrapper" }, h("label", { key: 'd408952ef5ffba3bedd5e01b5c6edec1aeb34f28', class: "s-reviews-page-filter-label", htmlFor: "testimonials-filter" }, this.langSorting), h("select", { key: '5138fdf478aed6fea544dd1adf4d32f715f89532', 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 => {
|
|
149
149
|
this.wrapper = el;
|
|
150
150
|
} }, this.reviews.map(review => (h("salla-review-card", { key: review.id, review: review }))))
|
|
151
151
|
: h("div", { class: "s-products-list-placeholder" }, h("span", { innerHTML: ShoppingBag }), h("p", null, this.placeholderText)), ((_b = (_a = this.pagination) === null || _a === void 0 ? void 0 : _a.links) === null || _b === void 0 ? void 0 : _b.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: () => { var _a; return (_a = this.infiniteScroll) === null || _a === void 0 ? void 0 : _a.loadNextPage(); }, onKeyUp: () => { var _a; return (_a = this.infiniteScroll) === null || _a === void 0 ? void 0 : _a.loadNextPage(); } }, this.langLoadMore))) : null));
|
|
@@ -155,7 +155,7 @@ export class SallaScopees {
|
|
|
155
155
|
}
|
|
156
156
|
render() {
|
|
157
157
|
var _a, _b, _c, _d;
|
|
158
|
-
return (h(Host, { key: '
|
|
158
|
+
return (h(Host, { key: '23748ef5243efc8a5ff9070043ddc507fe817fad' }, h("salla-modal", { key: '3ccb5b554df266e49d4f774e26dd7306dce9b249', ref: modal => this.modal = modal, isClosable: !!(this.isOpenedBefore || (this.selection == 'optional')), class: "s-scopes-modal", isLoading: this.loading, "has-skeleton": true }, this.loading ?
|
|
159
159
|
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%' }))))
|
|
160
160
|
:
|
|
161
161
|
[h("salla-list-tile", { class: ((_a = this.originalScopesList) === null || _a === void 0 ? void 0 : _a.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" }, !!((_b = this.originalScopesList) === null || _b === void 0 ? void 0 : _b.length) && h("h4", { class: "s-scopes-title" }, this.getFormTitle()), ((_c = this.originalScopesList) === null || _c === void 0 ? void 0 : _c.length) > this.searchDisplayLimit ?
|
|
@@ -125,13 +125,13 @@ export class SallaSearch {
|
|
|
125
125
|
}
|
|
126
126
|
render() {
|
|
127
127
|
var _a;
|
|
128
|
-
const searchContent = h("div", { key: '
|
|
129
|
-
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: '
|
|
128
|
+
const searchContent = h("div", { key: 'ed22d66e43268e8024639db4b3bdfdc78663c162', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => this.container = container }, h("div", { key: '3e6ed06c2a056d6fa6e5f18d03225a2a6eb3bd91', class: "s-search-input-wrapper" }, h("span", { key: '50fe2fd917b7f53d97c4178de03a9b460de53e50', class: "s-search-icon-wrap" }, h("span", { key: 'df7ed0c94180ee796f1634608f0e6984ccbac15c', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : Search })), h("input", { key: '73f564326eec5d12631b7855d853dd229fa00797', 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: { height: this.height + 'px', borderRadius: this.oval ? this.height / 2 + 'px' : '' } }), this.showAction ?
|
|
129
|
+
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: 'c8cdfa1f5d102392144389f81639d6c92f8caea5', class: "s-search-results" }, (_a = this.results) === null || _a === void 0 ? void 0 :
|
|
130
130
|
_a.data.map((product) => h("a", { href: product.url + '?from=search-bar', class: { "s-search-product": true, 's-search-product-not-available': !product.is_available }, innerHTML: this.productSlot
|
|
131
131
|
.replace(/\{name\}/g, product.name)
|
|
132
132
|
.replace(/\{price\}/g, product.price ? salla.money(product.price) : '')
|
|
133
133
|
.replace(/\{regular_price\}/g, product.is_on_sale && product.regular_price ? salla.money(product.regular_price) : '')
|
|
134
|
-
.replace(/\{image\}/g, product.image.url) })), h("p", { key: '
|
|
134
|
+
.replace(/\{image\}/g, product.image.url) })), h("p", { key: '7daf87c934b2fce3555755b1d326e3486e6a2bc2', ref: el => this.noResults = el, class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options'))));
|
|
135
135
|
return (this.inline ?
|
|
136
136
|
h("div", { class: "s-search-modal" }, searchContent)
|
|
137
137
|
:
|
|
@@ -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: 'f57ae59c20db39c4c9c47f777d229768071e2553', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: '0214a933f54acfd816f3cf1c510374c918469c5e', class: classes }, "\u00A0")));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "salla-skeleton"; }
|
|
28
28
|
static get originalStyleUrls() {
|