@salla.sa/twilight-components 2.14.260 → 2.14.261
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-C-RMRzcr.js → app-globals-9KVXzA9b.js} +3 -3
- package/dist/cjs/{app-globals-C-RMRzcr.js.map → app-globals-9KVXzA9b.js.map} +1 -1
- package/dist/cjs/{index-Cb0SQNc9.js → index-CfmOwvmC.js} +4 -4
- package/dist/cjs/index-CfmOwvmC.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion_4.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_51.cjs.entry.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
- package/dist/cjs/salla-metadata.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.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.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-review-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-reviews-page.cjs.entry.js +1 -1
- package/dist/cjs/salla-reviews.cjs.entry.js +1 -1
- package/dist/cjs/salla-social.cjs.entry.js +1 -1
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/components/index.js +2 -2
- package/dist/components/index.js.map +1 -1
- package/dist/esm/{app-globals-CYjWTTrt.js → app-globals-BgG-hCSq.js} +3 -3
- package/dist/esm/{app-globals-CYjWTTrt.js.map → app-globals-BgG-hCSq.js.map} +1 -1
- package/dist/esm/{index-DtlYcjlJ.js → index-LSZwJPPB.js} +4 -4
- package/dist/esm/index-LSZwJPPB.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion_4.entry.js +1 -1
- package/dist/esm/salla-add-product-button_51.entry.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +1 -1
- package/dist/esm/salla-metadata.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.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-options.entry.js +1 -1
- package/dist/esm/salla-review-card.entry.js +1 -1
- package/dist/esm/salla-reviews-page.entry.js +1 -1
- package/dist/esm/salla-reviews.entry.js +1 -1
- package/dist/esm/salla-social.entry.js +1 -1
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +1 -1
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm-es5/{app-globals-CYjWTTrt.js → app-globals-BgG-hCSq.js} +2 -2
- package/dist/esm-es5/{app-globals-CYjWTTrt.js.map → app-globals-BgG-hCSq.js.map} +1 -1
- package/dist/esm-es5/{index-DtlYcjlJ.js → index-LSZwJPPB.js} +3 -3
- package/dist/esm-es5/index-LSZwJPPB.js.map +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/salla-accordion_4.entry.js +1 -1
- package/dist/esm-es5/salla-add-product-button_51.entry.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/esm-es5/salla-order-details.entry.js +1 -1
- 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 +1 -1
- 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-58768895.entry.js → p-008a771c.entry.js} +2 -2
- package/dist/twilight/{p-385257e0.entry.js → p-0407da23.entry.js} +2 -2
- package/dist/twilight/{p-c6fde185.system.entry.js → p-059405fc.system.entry.js} +2 -2
- package/dist/twilight/{p-0303d452.system.entry.js → p-09bc1f72.system.entry.js} +2 -2
- package/dist/twilight/{p-66464e8e.system.entry.js → p-0e1cd76c.system.entry.js} +3 -3
- package/dist/twilight/p-13a2e582.system.entry.js +5 -0
- package/dist/twilight/{p-2bb3b70e.system.entry.js → p-143dd94c.system.entry.js} +2 -2
- package/dist/twilight/{p-1362c93c.system.entry.js → p-188e8d1c.system.entry.js} +2 -2
- package/dist/twilight/p-1f8bf87a.entry.js +5 -0
- package/dist/twilight/{p-d632f1fa.system.entry.js → p-1f93b886.system.entry.js} +2 -2
- package/dist/twilight/{p-57cfb4b1.system.entry.js → p-275332fa.system.entry.js} +2 -2
- package/dist/twilight/{p-db7a231b.entry.js → p-2957c27c.entry.js} +2 -2
- package/dist/twilight/{p-c94f95c1.system.entry.js → p-2ed6d081.system.entry.js} +2 -2
- package/dist/twilight/{p-e0e29fb0.system.entry.js → p-39d68fc1.system.entry.js} +2 -2
- package/dist/twilight/{p-939f9104.entry.js → p-3ede6721.entry.js} +2 -2
- package/dist/twilight/{p-3f20e330.entry.js → p-42bcde7d.entry.js} +2 -2
- package/dist/twilight/{p-7f20c85c.entry.js → p-47de107e.entry.js} +2 -2
- package/dist/twilight/{p-784ee964.system.entry.js → p-4806aee6.system.entry.js} +2 -2
- package/dist/twilight/{p-54a5d0ac.system.entry.js → p-4eef3c0e.system.entry.js} +2 -2
- package/dist/twilight/{p-2323e473.entry.js → p-5271a9e8.entry.js} +2 -2
- package/dist/twilight/{p-0259d6cb.system.entry.js → p-528aa2c4.system.entry.js} +2 -2
- package/dist/twilight/{p-39a319ec.system.entry.js → p-53e00642.system.entry.js} +2 -2
- package/dist/twilight/{p-4cf011a4.system.entry.js → p-5bae6d14.system.entry.js} +2 -2
- package/dist/twilight/{p-93e6452b.system.entry.js → p-64c8b0e2.system.entry.js} +2 -2
- package/dist/twilight/{p-0ba23365.system.entry.js → p-64de4869.system.entry.js} +2 -2
- package/dist/twilight/{p-e28d3b71.entry.js → p-675d4ab7.entry.js} +2 -2
- package/dist/twilight/{p-5f352ca9.system.entry.js → p-68285203.system.entry.js} +2 -2
- package/dist/twilight/{p-f0dd4f76.entry.js → p-68327c54.entry.js} +2 -2
- package/dist/twilight/{p-c0072de1.system.entry.js → p-6a8ba65f.system.entry.js} +3 -3
- package/dist/twilight/{p-099e8eb6.entry.js → p-6ad30bc0.entry.js} +2 -2
- package/dist/twilight/{p-e1e90d0c.entry.js → p-6b1753ce.entry.js} +2 -2
- package/dist/twilight/{p-36b00bb1.system.entry.js → p-71bd4d79.system.entry.js} +2 -2
- package/dist/twilight/{p-d14a8edc.system.entry.js → p-81b99416.system.entry.js} +2 -2
- package/dist/twilight/{p-cbcfb963.entry.js → p-87d32e2f.entry.js} +2 -2
- package/dist/twilight/{p-b23ce243.system.entry.js → p-88e53a1e.system.entry.js} +2 -2
- package/dist/twilight/{p-xfMEaBec.system.js.map → p-8i-yI1XS.system.js.map} +1 -1
- package/dist/twilight/{p-83549a90.entry.js → p-9847a4f4.entry.js} +2 -2
- package/dist/twilight/{p-a80652d3.entry.js → p-9e6c5671.entry.js} +2 -2
- package/dist/twilight/{p-DS9YDo5Q.system.js.map → p-B2wed4KP.system.js.map} +1 -1
- package/dist/twilight/{p-CvcXa2TU.system.js.map → p-B4sHNRyB.system.js.map} +1 -1
- package/dist/twilight/{p-_Zg_vfYO.system.js → p-B52cxJwt.system.js} +2 -2
- package/dist/twilight/{p-_Zg_vfYO.system.js.map → p-B52cxJwt.system.js.map} +1 -1
- package/dist/twilight/{p-BNKx_fXu.system.js.map → p-B7SRc_rs.system.js.map} +1 -1
- package/dist/twilight/{p-t6iSIvKc.system.js.map → p-BBjPvuu7.system.js.map} +1 -1
- package/dist/twilight/{p-C0zi3xso.system.js.map → p-BC-cnFy-.system.js.map} +1 -1
- package/dist/twilight/{p-DqqqpQLX.system.js.map → p-BL3DMysj.system.js.map} +1 -1
- package/dist/twilight/{p-DF5hpYv8.system.js → p-BMCxvVxH.system.js} +2 -2
- package/dist/twilight/{p-DF5hpYv8.system.js.map → p-BMCxvVxH.system.js.map} +1 -1
- package/dist/twilight/{p-lKe9xnuY.system.js.map → p-BMe9fgvJ.system.js.map} +1 -1
- package/dist/twilight/{p-CdPxDxze.system.js.map → p-BtWTphPP.system.js.map} +1 -1
- package/dist/twilight/{p--178guyc.system.js.map → p-C51w7Au-.system.js.map} +1 -1
- package/dist/twilight/{p-C8JDkECr.system.js.map → p-CCJYFUxF.system.js.map} +1 -1
- package/dist/twilight/{p-D2T3kwP1.system.js.map → p-CGmIt4gq.system.js.map} +1 -1
- package/dist/twilight/{p-C_tZ3UPA.system.js.map → p-CLHJmBGj.system.js.map} +1 -1
- package/dist/twilight/{p-Ch2ngfCk.system.js.map → p-CNqf1L3p.system.js.map} +1 -1
- package/dist/twilight/{p-B9diX3Ld.system.js.map → p-C_Jmr6ar.system.js.map} +1 -1
- package/dist/twilight/{p-y6fipjol.system.js.map → p-Cb9M2a-j.system.js.map} +1 -1
- package/dist/twilight/{p-DiFVtThr.system.js → p-Ce2XJNsy.system.js} +3 -3
- package/dist/twilight/p-Ce2XJNsy.system.js.map +1 -0
- package/dist/twilight/{p-D0CcSuA9.system.js.map → p-Cnbdx_CN.system.js.map} +1 -1
- package/dist/twilight/{p-DHzL55RC.system.js.map → p-Co12cj-7.system.js.map} +1 -1
- package/dist/twilight/{p-C6nl4csu.system.js.map → p-D3JDyRUW.system.js.map} +1 -1
- package/dist/twilight/{p-UHVUEdWQ.system.js.map → p-D8jKZnWs.system.js.map} +1 -1
- package/dist/twilight/{p-CX4G4VV7.system.js.map → p-DHFCX5Dz.system.js.map} +1 -1
- package/dist/twilight/{p-CI_HtUC7.system.js.map → p-DN3CCyG-.system.js.map} +1 -1
- package/dist/twilight/{p-C9OfFWmp.system.js.map → p-DNiwBHdX.system.js.map} +1 -1
- package/dist/twilight/{p-FCntN3lB.js → p-DQg5Q6X-.js} +2 -2
- package/dist/twilight/{p-FCntN3lB.js.map → p-DQg5Q6X-.js.map} +1 -1
- package/dist/twilight/{p-BP64ZxhW.system.js.map → p-DS9HrJPI.system.js.map} +1 -1
- package/dist/twilight/{p-NwP5WLUz.system.js.map → p-DVEvrSjN.system.js.map} +1 -1
- package/dist/twilight/{p-Bx7mzn4-.system.js.map → p-DaMdjqfe.system.js.map} +1 -1
- package/dist/twilight/{p-C3b5GFVP.system.js.map → p-DaTp8sB1.system.js.map} +1 -1
- package/dist/twilight/{p-Brt6MZMy.system.js.map → p-DzjfnKbb.system.js.map} +1 -1
- package/dist/twilight/{p-hUWZ36QL.system.js.map → p-H5xAa3Fp.system.js.map} +1 -1
- package/dist/twilight/{p-DtlYcjlJ.js → p-LSZwJPPB.js} +3 -3
- package/dist/twilight/p-LSZwJPPB.js.map +1 -0
- package/dist/twilight/{p-Cl6TP9Ol.system.js.map → p-MzTS1h7j.system.js.map} +1 -1
- package/dist/twilight/{p-DG_xtA-f.system.js.map → p-NCpDIEN8.system.js.map} +1 -1
- package/dist/twilight/{p-DhIVzS4b.system.js.map → p-Xd4af-0t.system.js.map} +1 -1
- package/dist/twilight/{p-3ad79104.entry.js → p-a13fcfe1.entry.js} +2 -2
- package/dist/twilight/{p-109f5735.entry.js → p-a6961af5.entry.js} +2 -2
- package/dist/twilight/{p-f2bac5d5.system.entry.js → p-aa357e2b.system.entry.js} +2 -2
- package/dist/twilight/{p-d71d6dff.entry.js → p-aa49c07f.entry.js} +2 -2
- package/dist/twilight/{p-C25xo2I9.system.js.map → p-aff393D5.system.js.map} +1 -1
- package/dist/twilight/{p-e6d51e3a.entry.js → p-b0d88d59.entry.js} +2 -2
- package/dist/twilight/{p-19061cec.entry.js → p-b7572664.entry.js} +2 -2
- package/dist/twilight/{p-97cc91c4.entry.js → p-b94bc357.entry.js} +2 -2
- package/dist/twilight/{p-ee66c0dd.entry.js → p-c09565da.entry.js} +2 -2
- package/dist/twilight/{p-862ad154.entry.js → p-c38dbed0.entry.js} +2 -2
- package/dist/twilight/{p-5cb3dd8e.system.entry.js → p-c5fa09d1.system.entry.js} +2 -2
- package/dist/twilight/{p-c6a3fdb0.entry.js → p-ccffcd08.entry.js} +2 -2
- package/dist/twilight/{p-9fa8d963.entry.js → p-ce02710a.entry.js} +2 -2
- package/dist/twilight/{p-f1d6fdbf.entry.js → p-d02a08e9.entry.js} +2 -2
- package/dist/twilight/{p-3e960ee9.system.entry.js → p-d1ca52ee.system.entry.js} +2 -2
- package/dist/twilight/{p-3ad485dd.entry.js → p-d1ef5396.entry.js} +2 -2
- package/dist/twilight/{p-1b42ce8a.entry.js → p-d3a36873.entry.js} +2 -2
- package/dist/twilight/{p-7105480a.system.entry.js → p-d62c20f1.system.entry.js} +2 -2
- package/dist/twilight/{p-6a611226.entry.js → p-d660efad.entry.js} +2 -2
- package/dist/twilight/{p-04e33bba.system.entry.js → p-dad1b603.system.entry.js} +2 -2
- package/dist/twilight/{p-55771cda.system.entry.js → p-de2b1078.system.entry.js} +2 -2
- package/dist/twilight/{p-007ca6d7.system.entry.js → p-e5eae8ce.system.entry.js} +2 -2
- package/dist/twilight/p-ea832823.system.entry.js +5 -0
- package/dist/twilight/{p-fba0b0f7.system.entry.js → p-ef823dbd.system.entry.js} +2 -2
- package/dist/twilight/{p-6e1ecf18.entry.js → p-f0cc5b35.entry.js} +2 -2
- package/dist/twilight/{p-d8aab17c.system.entry.js → p-f1218836.system.entry.js} +2 -2
- package/dist/twilight/{p-7dc3a160.system.entry.js → p-f80b373d.system.entry.js} +2 -2
- package/dist/twilight/{p-ef04d7e0.entry.js → p-fa5ead87.entry.js} +2 -2
- package/dist/twilight/{p-d1809737.entry.js → p-fcfd9a2b.entry.js} +2 -2
- package/dist/twilight/{p-138b8ce7.entry.js → p-fe0234a1.entry.js} +2 -2
- package/dist/twilight/{p-BWbXuc8f.system.js.map → p-jGMZVThE.system.js.map} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/twilight/twilight.js +1 -1
- package/package.json +5 -5
- package/dist/cjs/index-Cb0SQNc9.js.map +0 -1
- package/dist/esm/index-DtlYcjlJ.js.map +0 -1
- package/dist/esm-es5/index-DtlYcjlJ.js.map +0 -1
- package/dist/twilight/p-DiFVtThr.system.js.map +0 -1
- package/dist/twilight/p-DtlYcjlJ.js.map +0 -1
- package/dist/twilight/p-bcae7f12.system.entry.js +0 -5
- package/dist/twilight/p-ce103d4c.system.entry.js +0 -5
- package/dist/twilight/p-f702aead.entry.js +0 -5
- /package/dist/twilight/{p-58768895.entry.js.map → p-008a771c.entry.js.map} +0 -0
- /package/dist/twilight/{p-385257e0.entry.js.map → p-0407da23.entry.js.map} +0 -0
- /package/dist/twilight/{p-c6fde185.system.entry.js.map → p-059405fc.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-0303d452.system.entry.js.map → p-09bc1f72.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-66464e8e.system.entry.js.map → p-0e1cd76c.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-bcae7f12.system.entry.js.map → p-13a2e582.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-2bb3b70e.system.entry.js.map → p-143dd94c.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-1362c93c.system.entry.js.map → p-188e8d1c.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-f702aead.entry.js.map → p-1f8bf87a.entry.js.map} +0 -0
- /package/dist/twilight/{p-d632f1fa.system.entry.js.map → p-1f93b886.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-57cfb4b1.system.entry.js.map → p-275332fa.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-db7a231b.entry.js.map → p-2957c27c.entry.js.map} +0 -0
- /package/dist/twilight/{p-c94f95c1.system.entry.js.map → p-2ed6d081.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-e0e29fb0.system.entry.js.map → p-39d68fc1.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-939f9104.entry.js.map → p-3ede6721.entry.js.map} +0 -0
- /package/dist/twilight/{p-3f20e330.entry.js.map → p-42bcde7d.entry.js.map} +0 -0
- /package/dist/twilight/{p-7f20c85c.entry.js.map → p-47de107e.entry.js.map} +0 -0
- /package/dist/twilight/{p-784ee964.system.entry.js.map → p-4806aee6.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-54a5d0ac.system.entry.js.map → p-4eef3c0e.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-2323e473.entry.js.map → p-5271a9e8.entry.js.map} +0 -0
- /package/dist/twilight/{p-0259d6cb.system.entry.js.map → p-528aa2c4.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-39a319ec.system.entry.js.map → p-53e00642.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-4cf011a4.system.entry.js.map → p-5bae6d14.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-93e6452b.system.entry.js.map → p-64c8b0e2.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-0ba23365.system.entry.js.map → p-64de4869.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-e28d3b71.entry.js.map → p-675d4ab7.entry.js.map} +0 -0
- /package/dist/twilight/{p-5f352ca9.system.entry.js.map → p-68285203.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-f0dd4f76.entry.js.map → p-68327c54.entry.js.map} +0 -0
- /package/dist/twilight/{p-c0072de1.system.entry.js.map → p-6a8ba65f.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-099e8eb6.entry.js.map → p-6ad30bc0.entry.js.map} +0 -0
- /package/dist/twilight/{p-e1e90d0c.entry.js.map → p-6b1753ce.entry.js.map} +0 -0
- /package/dist/twilight/{p-36b00bb1.system.entry.js.map → p-71bd4d79.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-d14a8edc.system.entry.js.map → p-81b99416.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-cbcfb963.entry.js.map → p-87d32e2f.entry.js.map} +0 -0
- /package/dist/twilight/{p-b23ce243.system.entry.js.map → p-88e53a1e.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-83549a90.entry.js.map → p-9847a4f4.entry.js.map} +0 -0
- /package/dist/twilight/{p-a80652d3.entry.js.map → p-9e6c5671.entry.js.map} +0 -0
- /package/dist/twilight/{p-3ad79104.entry.js.map → p-a13fcfe1.entry.js.map} +0 -0
- /package/dist/twilight/{p-109f5735.entry.js.map → p-a6961af5.entry.js.map} +0 -0
- /package/dist/twilight/{p-f2bac5d5.system.entry.js.map → p-aa357e2b.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-d71d6dff.entry.js.map → p-aa49c07f.entry.js.map} +0 -0
- /package/dist/twilight/{p-e6d51e3a.entry.js.map → p-b0d88d59.entry.js.map} +0 -0
- /package/dist/twilight/{p-19061cec.entry.js.map → p-b7572664.entry.js.map} +0 -0
- /package/dist/twilight/{p-97cc91c4.entry.js.map → p-b94bc357.entry.js.map} +0 -0
- /package/dist/twilight/{p-ee66c0dd.entry.js.map → p-c09565da.entry.js.map} +0 -0
- /package/dist/twilight/{p-862ad154.entry.js.map → p-c38dbed0.entry.js.map} +0 -0
- /package/dist/twilight/{p-5cb3dd8e.system.entry.js.map → p-c5fa09d1.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-c6a3fdb0.entry.js.map → p-ccffcd08.entry.js.map} +0 -0
- /package/dist/twilight/{p-9fa8d963.entry.js.map → p-ce02710a.entry.js.map} +0 -0
- /package/dist/twilight/{p-f1d6fdbf.entry.js.map → p-d02a08e9.entry.js.map} +0 -0
- /package/dist/twilight/{p-3e960ee9.system.entry.js.map → p-d1ca52ee.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-3ad485dd.entry.js.map → p-d1ef5396.entry.js.map} +0 -0
- /package/dist/twilight/{p-1b42ce8a.entry.js.map → p-d3a36873.entry.js.map} +0 -0
- /package/dist/twilight/{p-7105480a.system.entry.js.map → p-d62c20f1.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-6a611226.entry.js.map → p-d660efad.entry.js.map} +0 -0
- /package/dist/twilight/{p-04e33bba.system.entry.js.map → p-dad1b603.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-55771cda.system.entry.js.map → p-de2b1078.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-007ca6d7.system.entry.js.map → p-e5eae8ce.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-ce103d4c.system.entry.js.map → p-ea832823.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-fba0b0f7.system.entry.js.map → p-ef823dbd.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-6e1ecf18.entry.js.map → p-f0cc5b35.entry.js.map} +0 -0
- /package/dist/twilight/{p-d8aab17c.system.entry.js.map → p-f1218836.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-7dc3a160.system.entry.js.map → p-f80b373d.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-ef04d7e0.entry.js.map → p-fa5ead87.entry.js.map} +0 -0
- /package/dist/twilight/{p-d1809737.entry.js.map → p-fcfd9a2b.entry.js.map} +0 -0
- /package/dist/twilight/{p-138b8ce7.entry.js.map → p-fe0234a1.entry.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import{r as s,h as t}from"./p-
|
|
5
|
-
//# sourceMappingURL=p-
|
|
4
|
+
import{r as s,h as t}from"./p-LSZwJPPB.js";import{S as i,A as e}from"./p-yRO-ZESF.js";import{G as c}from"./p-C0JNGIpa.js";var r=`\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>tag-money</title>\n<path d="M20.567 11.433c-0.521-0.521-1.364-0.521-1.885 0l-0.524 0.524c-1.28-0.819-3.091-0.681-4.191 0.419-0.631 0.631-0.976 1.468-0.976 2.359 0 0.889 0.347 1.727 0.976 2.357l0.943 0.943c0.171 0.171 0.195 0.368 0.195 0.472s-0.025 0.301-0.196 0.472c-0.169 0.169-0.367 0.195-0.471 0.195s-0.301-0.025-0.472-0.195l-2.357-2.357c-0.521-0.521-1.364-0.521-1.885 0s-0.521 1.364 0 1.885l0.944 0.941-0.472 0.472c-0.521 0.521-0.521 1.364 0 1.885 0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391l0.519-0.519c0.54 0.359 1.173 0.553 1.837 0.553 0.892 0 1.729-0.348 2.357-0.976 0.631-0.631 0.976-1.467 0.976-2.357s-0.347-1.727-0.976-2.357l-0.943-0.943c-0.26-0.26-0.26-0.684 0-0.944 0.259-0.259 0.683-0.261 0.944 0l1.885 1.887c0.521 0.521 1.364 0.521 1.885 0 0.521-0.52 0.521-1.364 0-1.885l-0.472-0.472 0.472-0.472c0.521-0.521 0.521-1.365 0.001-1.887zM28 0h-9.344c-1.059 0-2.056 0.411-2.809 1.153l-14.673 14.456c-1.56 1.56-1.561 4.097-0.001 5.657l9.56 9.56c0.755 0.755 1.76 1.172 2.828 1.173h0.003c1.068 0 2.072-0.416 2.833-1.179l14.451-14.668c0.743-0.753 1.153-1.751 1.153-2.809v-9.344c0-2.205-1.795-4-4-4zM29.333 13.344c0 0.353-0.137 0.685-0.385 0.937l-14.444 14.661c-0.252 0.252-0.587 0.391-0.941 0.391-0.001 0-0.001 0-0.001 0-0.356-0.001-0.691-0.139-0.943-0.392l-9.561-9.56c-0.52-0.52-0.52-1.365-0.005-1.88l14.667-14.449c0.253-0.248 0.585-0.385 0.937-0.385h9.344c0.736 0 1.333 0.597 1.333 1.333zM24 6.673c-0.737 0-1.333 0.604-1.333 1.341s0.596 1.333 1.333 1.333 1.333-0.596 1.333-1.333v-0.015c0-0.737-0.596-1.327-1.333-1.327z"></path>\n</svg>\n`;var a=`\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>fire</title>\n<path d="M21.56 3.009c-0.052-0.047-0.116-0.065-0.173-0.103-0.073-0.048-0.143-0.1-0.223-0.132-0.083-0.033-0.165-0.047-0.252-0.063-0.081-0.016-0.16-0.035-0.243-0.035-0.089 0-0.172 0.020-0.26 0.037-0.080 0.016-0.159 0.028-0.236 0.059-0.084 0.035-0.157 0.088-0.235 0.14-0.053 0.036-0.115 0.053-0.165 0.097-0.049 0.044-0.988 0.895-2.288 2.255-2.364-2.839-4.476-4.815-4.576-4.908-0.056-0.052-0.127-0.075-0.188-0.115-0.075-0.049-0.143-0.105-0.224-0.137-0.080-0.032-0.163-0.041-0.245-0.057-0.085-0.016-0.167-0.040-0.252-0.040-0.084 0-0.163 0.023-0.245 0.039-0.087 0.016-0.172 0.025-0.253 0.059-0.080 0.032-0.147 0.087-0.22 0.135-0.063 0.041-0.133 0.064-0.189 0.116-0.453 0.423-11.092 10.408-11.092 18.095 0 7.977 4.935 13.549 12 13.549h8.667c6.673 0 11.333-5.115 11.333-12.439 0-7.052-10.013-16.167-10.44-16.552zM20.667 29.333h-7.777c-2.924 0-4.889-2.044-4.889-5.084 0-2.317 2.816-6.441 4.888-8.887 0.76 0.909 2.755 3.397 3.969 5.869 0.212 0.431 0.639 0.715 1.117 0.743 0.489 0.031 0.937-0.203 1.197-0.605 0.552-0.849 1.109-1.596 1.497-2.093 1.491 1.897 3.331 4.78 3.331 6.399 0 2.188-1.34 3.659-3.333 3.659zM26.537 27.052c0.081-0.44 0.129-0.899 0.129-1.377 0-3.269-3.713-7.847-4.46-8.735l-0.523-0.617c-0.507-0.599-1.528-0.599-2.035 0l-0.531 0.627c-0.147 0.175-0.495 0.599-0.936 1.187-1.595-2.597-3.495-4.776-3.595-4.889l-0.697-0.793c-0.507-0.577-1.499-0.577-2.004 0l-0.697 0.795c-0.6 0.684-5.856 6.803-5.856 11.001 0 0.881 0.127 1.712 0.356 2.484-1.896-1.933-3.023-4.821-3.023-8.283 0-4.915 6.073-11.997 9.329-15.255 1.001 1.008 2.692 2.789 4.368 4.927 0.243 0.309 0.609 0.496 1.001 0.509h0.048c0.376 0 0.735-0.159 0.988-0.439 0.889-0.981 1.693-1.795 2.269-2.359 3.051 2.965 8.663 9.323 8.663 13.727 0 3.171-1.031 5.769-2.796 7.491z"></path>\n</svg>\n`;var o=`\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>discount-coupon</title>\n<path d="M27 28h-22c-0.552 0-1-0.448-1-1v0c0-1.657-1.343-3-3-3v0c-0.552 0-1-0.448-1-1v0-12c0-0.552 0.448-1 1-1v0c1.657 0 3-1.343 3-3v0c0-0.552 0.448-1 1-1v0h22c0.552 0 1 0.448 1 1v0c0 1.657 1.343 3 3 3v0c0.552 0 1 0.448 1 1v0 12c0 0.552-0.448 1-1 1v0c-1.657 0-3 1.343-3 3v0c0 0.552-0.448 1-1 1v0zM5.9 26h20.2c0.415-1.964 1.936-3.485 3.867-3.894l0.033-0.006v-10.2c-1.964-0.415-3.485-1.936-3.894-3.867l-0.006-0.033h-20.2c-0.415 1.964-1.936 3.485-3.867 3.894l-0.033 0.006v10.2c1.964 0.415 3.485 1.936 3.894 3.867l0.006 0.033zM20 7h2v3h-2v-3zM20 12h2v4h-2v-4zM20 18h2v4h-2v-4zM20 24h2v3h-2v-3zM9 16c-1.657 0-3-1.343-3-3s1.343-3 3-3c1.657 0 3 1.343 3 3v0c0 1.657-1.343 3-3 3v0zM9 12c-0.552 0-1 0.448-1 1s0.448 1 1 1c0.552 0 1-0.448 1-1v0c0-0.552-0.448-1-1-1v0zM15 24c-1.657 0-3-1.343-3-3s1.343-3 3-3c1.657 0 3 1.343 3 3v0c0 1.657-1.343 3-3 3v0zM15 20c-0.552 0-1 0.448-1 1s0.448 1 1 1c0.552 0 1-0.448 1-1v0c0-0.552-0.448-1-1-1v0zM7 24c-0.552-0-1-0.448-1-1 0-0.244 0.088-0.468 0.233-0.642l-0.001 0.002 10-12c0.185-0.221 0.461-0.36 0.769-0.36 0.553 0 1.001 0.448 1.001 1.001 0 0.245-0.088 0.469-0.233 0.643l0.001-0.002-10 12c-0.185 0.22-0.46 0.358-0.767 0.358-0.001 0-0.002 0-0.003 0h0z"></path>\n</svg>\n`;const l=":host{display:block}";const n=class{constructor(t){s(this,t);this.internalOffers=[];this.showAll=false;this.freeLabel="";this.receivedOffer="";this.discountAmountLabel="";this.showMoreOffers="";this.icons={DiscountCouponIcon:o,GiftIcon:c,FireIcon:a,SpecialDiscountIcon:i,TagMoneyIcon:r};this.visibleOffersCount=3;this.handleCartItemUpdated=s=>{const t=s.data.cart.items.find((s=>s.id===this.itemId));if((t===null||t===void 0?void 0:t.id)===this.itemId){this.internalQuantity=t.quantity;this.internalOffers=t.detailed_offers||[];this.internalProductPrice=t.product_price}};this.toggleShowAll=()=>{this.showAll=!this.showAll}}async componentWillLoad(){await Salla.onReady();await salla.lang.onLoaded((()=>{this.freeLabel=salla.lang.get("common.elements.freeExclam");this.receivedOffer=salla.lang.get("pages.cart.received_offer");this.discountAmountLabel=salla.lang.get("pages.cart.discount_amount");this.showMoreOffers=salla.lang.get("pages.cart.show_more_offers")}));this.internalQuantity=this.quantity;this.internalOffers=this.parseOffers(this.offers);this.internalProductPrice=this.productPrice}componentDidLoad(){salla.event.on("cart::item.updated",(s=>this.handleCartItemUpdated(s)))}parseOffers(s){try{if(typeof s!=="string"){console.warn("Offers is not a string. Returning as-is.",s);return Array.isArray(s)?s:[]}return JSON.parse(s||"[]")}catch(s){console.error("Failed to parse offers",s);return[]}}get visibleOffers(){return this.internalOffers.slice(0,this.visibleOffersCount)}get hiddenOffers(){return this.internalOffers.slice(this.visibleOffersCount)}getPaidQty(s,t){return s-t.free_quantity}renderOffer(s,i){const e=this.getPaidQty(s,i);return t("div",{class:"s-cart-item-offers-box"},i.free_quantity>0&&e>0&&t("div",{class:"s-cart-item-offers-paid-free"},t("div",{class:"s-cart-item-offers-line"},salla.helpers.number(e)," × ",t("span",{innerHTML:salla.money(this.internalProductPrice)})),t("div",{class:"s-cart-item-offers-line"},salla.helpers.number(i.free_quantity)," ×",t("span",{class:"s-cart-item-offers-regular-price",innerHTML:salla.money(this.internalProductPrice)}),t("span",{class:"s-cart-item-offers-free-label"},this.freeLabel))),t("div",{class:"s-cart-item-offers-details"},t("span",{class:`s-cart-item-offers-icon`,innerHTML:this.icons[i.discount_icon]||""}),t("div",null,t("p",{class:"s-cart-item-offers-title"},this.receivedOffer.replace(":offer",i.offer_name)),t("p",{class:"s-cart-item-offers-discount"},t("span",{innerHTML:this.discountAmountLabel.replace(":amount",salla.money(i.discount_amount.toFixed(2)))})))))}render(){var s,i;if(!((s=this.internalOffers)===null||s===void 0?void 0:s.length)){return null}return t("div",{class:"s-cart-item-offers-container",id:`offers_list_${this.itemId}`},this.visibleOffers.map((s=>this.renderOffer(this.internalQuantity,s))),((i=this.internalOffers)===null||i===void 0?void 0:i.length)>this.visibleOffersCount&&t("div",{class:"s-cart-item-offers-show-more"},t("button",{class:"s-cart-item-offers-show-more-btn",onClick:this.toggleShowAll,type:"button"},t("span",{class:"s-cart-item-offers-show-more-label"},"+",this.hiddenOffers.length," ",this.showMoreOffers,t("span",{innerHTML:e,class:{"s-cart-item-offers-arrow-icon":true,"s-cart-item-offers-arrow-open":this.showAll}})))),this.showAll&&t("div",{class:"s-cart-item-offers-collapsed",id:`offers_${this.itemId}`},this.hiddenOffers.map((s=>this.renderOffer(this.internalQuantity,s)))))}};n.style=l;export{n as salla_cart_item_offers};
|
|
5
|
+
//# sourceMappingURL=p-008a771c.entry.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,c as s,h as e,H as i,g as l}from"./p-
|
|
5
|
-
//# sourceMappingURL=p-
|
|
4
|
+
import{r as t,c as s,h as e,H as i,g as l}from"./p-LSZwJPPB.js";import{F as a}from"./p-DL4h2bc3.js";import{H as r}from"./p-CGaH6V1S.js";import"./p-CgtvEd63.js";const o=":host{display:block}.s-rating-stars-small{line-height:12px}.s-filters-radio{background-image:none !important}";const n=class{constructor(e){t(this,e);this.changed=s(this,"changed");this.isReady=false;this.filtersData={};salla.event.on("filters::hidden",(()=>this.host.style.display="none"));salla.lang.onLoaded((()=>{this.apply=salla.lang.get("pages.checkout.apply");this.reset=salla.lang.get("pages.categories.filters_reset")}));salla.event.on("filters::fetched",(({filters:t})=>{this.host.style.display="";let s={};this.filters=t.map((t=>{t.label={category_id:salla.lang.get("common.titles.categories"),brand_id:salla.lang.get("common.titles.brands"),rating:salla.lang.get("pages.categories.filter_rating"),price:salla.lang.get("pages.categories.filter_price")}[t.key]||t.label;if(t.key=="rating"){t.type=a.VALUES;let{max:s,min:e}=t.values;t.values=[5,4,3,2,1].filter((t=>t>=e||t<=s))}if(this.filtersData.variants&&t.type==a.VARIANTS){s.variants=this.filtersData.variants}if(this.filtersData[t.key]&&t.type!==a.VARIANTS){s[t.key]=this.filtersData[t.key]}let e=new URLSearchParams(window.location.search);let i=false;for(let t of e.keys()){if(t.includes("filters")){i=true;break}}if(salla.config.get("page.slug")=="product.index"&&Object.keys(s).length==0&&!i){let t=window.location.href;let e=salla.config.get("page.id");let i=t.indexOf("?")!==-1?"&":"?";let l=t+i+"filters[category_id]="+e;s.category_id=e;window.history.pushState({path:l},"",l)}return t}));this.filtersData=s;this.host.childNodes.forEach((async t=>t.setWidgetHeight&&await t.setWidgetHeight()))}))}async componentWillLoad(){try{const t=new URLSearchParams(window.location.search);this.filtersData=await r.extractFiltersFromUrl(t)}catch(t){console.warn("failed to get filters from URL",t.message)}}async getFilters(){return this.filtersData}async applyFilters(){if(!this.isReady){return}let t=Object.keys(this.filtersData).length>0;setTimeout((()=>{var s;if(t){let t=new URL(window.location.href);for(const[s]of t.searchParams.entries()){if(s.startsWith("filters")){t.searchParams.delete(s)}}let s=this.encodeFilters(this.filtersData);let e=t.search.split("&").filter((t=>!t.includes("filters"))).join("&");if(e){t.search=t.search.split("&filters")[0]+"&"+s}else{t.search=`?${s}`}window.history.pushState({},"",t.href)}else{let t=new URL(window.location.href);(s=t.searchParams)===null||s===void 0?void 0:s.delete("filters");window.history.pushState({},"",t.toString())}salla.event.emit("salla-filters::changed",this.filtersData);this.changed.emit(this.filtersData)}),300)}encodeFilters(t,s="filters"){const e=[];for(const i in t){if(Object.prototype.hasOwnProperty.call(t,i)){const l=t[i];const a=s?`${s}[${i}]`:i;if(Array.isArray(l)){for(let t=0;t<l.length;t++){e.push(`${a}[${t}]=${l[t]}`)}}else if(typeof l==="object"&&l!==null){e.push(this.encodeFilters(l,a))}else{let t=`${a}=${l}`;e.push(t)}}}return e.join("&")}async resetFilters(){this.removeFiltersQueryParams();this.filtersData={};this.host.childNodes.forEach((t=>t.reset&&t.reset()));salla.event.emit("salla-filters::reset");return this.applyFilters()}removeFiltersQueryParams(){const t=new URLSearchParams(window.location.search);const s=Array.from(t.keys()).filter((t=>!t.startsWith("filters["))).map((s=>`${encodeURIComponent(s)}=${encodeURIComponent(t.get(s))}`)).join("&");const e=s?`${window.location.pathname}?${s}`:window.location.pathname;window.history.pushState({},"",e)}handleOptionChange(t,s,e){if(s.type===a.RANGE){this.filtersData[s.key]=e}let i=t.target.checked;if(s.type===a.VARIANTS){this.filtersData.variants=this.filtersData.variants||{};i&&(this.filtersData.variants[s.key]=e);i||delete this.filtersData.variants[s.key]}else if(t.target.type=="radio"){i&&(this.filtersData[s.key]=e);i||delete this.filtersData[s.key]}else if(t.target.type=="checkbox"){this.filtersData[s.key]=this.filtersData[s.key]||[];if(i){this.filtersData[s.key].push(e)}this.filtersData[s.key]=this.filtersData[s.key].filter((t=>t!=e))}this.applyFilters()}render(){var t,s;return e(i,{key:"54a625522588215230f1eb5a3ca94b8280b18040"},(t=this.filters)===null||t===void 0?void 0:t.map((t=>e("salla-filters-widget",{option:t,filtersData:this.filtersData,onChanged:({detail:{event:t,option:s,value:e}})=>{this.handleOptionChange(t,s,e)}}))),((s=this.filters)===null||s===void 0?void 0:s.length)?e("div",{class:"s-filters-footer"},e("salla-button",{color:"gray",fill:"outline",onClick:()=>this.resetFilters()},this.reset)):"")}componentDidLoad(){this.isReady=true}get host(){return l(this)}};n.style=o;export{n as salla_filters};
|
|
5
|
+
//# sourceMappingURL=p-0407da23.entry.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(t,n,e,r){function s(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,i){function c(t){try{o(r.next(t))}catch(t){i(t)}}function a(t){try{o(r["throw"](t))}catch(t){i(t)}}function o(t){t.done?e(t.value):s(t.value).then(c,a)}o((r=r.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,s,i,c;return c={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function a(t){return function(n){return o([t,n])}}function o(a){if(r)throw new TypeError("Generator is already executing.");while(c&&(c=0,a[0]&&(e=0)),e)try{if(r=1,s&&(i=a[0]&2?s["return"]:a[0]?s["throw"]||((i=s["return"])&&i.call(s),0):s.next)&&!(i=i.call(s,a[1])).done)return i;if(s=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:e.label++;return{value:a[1],done:false};case 5:e.label++;s=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){e.label=a[1];break}if(a[0]===6&&e.label<i[1]){e.label=i[1];i=a;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(a);break}if(i[2])e.ops.pop();e.trys.pop();continue}a=n.call(t,e)}catch(t){a=[6,t];s=0}finally{r=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* Crafted with ❤ by Salla
|
|
4
|
-
*/System.register(["./p-
|
|
5
|
-
//# sourceMappingURL=p-
|
|
4
|
+
*/System.register(["./p-Ce2XJNsy.system.js","./p-Dxc5oJG6.system.js"],(function(t){"use strict";var n,e,r;return{setters:[function(t){n=t.r;e=t.h},function(t){r=t.I}],execute:function(){var s='\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>file-archive</title>\n<path d="M17.333 16h-5.333c-0.737 0-1.333 0.597-1.333 1.333v2.667c0 2.205 1.795 4 4 4s4-1.795 4-4v-2.667c0-0.736-0.596-1.333-1.333-1.333zM16 20c0 0.735-0.597 1.333-1.333 1.333s-1.333-0.599-1.333-1.333v-1.333h2.667zM17.333 12h-5.333c-0.737 0-1.333 0.597-1.333 1.333s0.596 1.333 1.333 1.333h5.333c0.737 0 1.333-0.597 1.333-1.333s-0.596-1.333-1.333-1.333zM28.943 8.391l-8-8c-0.249-0.251-0.588-0.391-0.943-0.391h-13.333c-2.205 0-4 1.795-4 4v24c0 2.205 1.795 4 4 4h18.667c2.205 0 4-1.795 4-4v-18.667c0-0.353-0.14-0.693-0.391-0.943zM26.667 28c0 0.735-0.597 1.333-1.333 1.333h-18.667c-0.736 0-1.333-0.599-1.333-1.333v-24c0-0.735 0.597-1.333 1.333-1.333h12.781l7.219 7.219zM17.333 8h-5.333c-0.737 0-1.333 0.597-1.333 1.333s0.596 1.333 1.333 1.333h5.333c0.737 0 1.333-0.597 1.333-1.333s-0.596-1.333-1.333-1.333zM17.333 4h-5.333c-0.737 0-1.333 0.597-1.333 1.333s0.596 1.333 1.333 1.333h5.333c0.737 0 1.333-0.597 1.333-1.333s-0.596-1.333-1.333-1.333z"></path>\n</svg>\n';var i='\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>download</title>\n<path d="M15.056 20.941c0.123 0.124 0.271 0.221 0.435 0.289 0.163 0.067 0.336 0.103 0.509 0.103s0.347-0.036 0.509-0.103c0.164-0.068 0.311-0.165 0.435-0.289l5.332-5.332c0.521-0.521 0.521-1.364 0-1.885s-1.364-0.521-1.885 0l-3.057 3.057v-12.781c0-0.737-0.597-1.333-1.333-1.333s-1.333 0.596-1.333 1.333v12.781l-3.057-3.057c-0.521-0.521-1.364-0.521-1.885 0s-0.521 1.364 0 1.885zM25.333 26.667h-18.667c-0.736 0-1.333 0.596-1.333 1.333s0.597 1.333 1.333 1.333h18.667c0.736 0 1.333-0.596 1.333-1.333s-0.597-1.333-1.333-1.333z"></path>\n</svg>\n';var c='\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>swap-stroke</title>\n<path d="M6.667 18.667h-2.667c-0.736 0-1.333-0.597-1.333-1.333v-13.333c0-0.736 0.597-1.333 1.333-1.333h13.333c0.736 0 1.333 0.597 1.333 1.333v2.667c0 0.737 0.596 1.333 1.333 1.333s1.333-0.596 1.333-1.333v-2.667c0-2.205-1.795-4-4-4h-13.333c-2.205 0-4 1.795-4 4v13.333c0 2.205 1.795 4 4 4h2.667c0.737 0 1.333-0.596 1.333-1.333s-0.596-1.333-1.333-1.333zM28 10.667h-13.333c-2.205 0-4 1.795-4 4v13.333c0 2.205 1.795 4 4 4h13.333c2.205 0 4-1.795 4-4v-13.333c0-2.205-1.795-4-4-4zM29.333 28c0 0.736-0.597 1.333-1.333 1.333h-13.333c-0.736 0-1.333-0.597-1.333-1.333v-13.333c0-0.736 0.597-1.333 1.333-1.333h13.333c0.736 0 1.333 0.597 1.333 1.333z"></path>\n</svg>\n';var a='\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>debit-card-back</title>\n<path d="M30 28h-28c-1.105 0-2-0.895-2-2v0-18c0-1.105 0.895-2 2-2v0h28c1.105 0 2 0.895 2 2v0 18c0 1.105-0.895 2-2 2v0zM30 26v0zM2 8v18h28v-18zM31 14h-30c-0.552 0-1-0.448-1-1s0.448-1 1-1v0h30c0.552 0 1 0.448 1 1s-0.448 1-1 1v0zM11 22h-6c-0.552 0-1-0.448-1-1s0.448-1 1-1v0h6c0.552 0 1 0.448 1 1s-0.448 1-1 1v0zM24 24c-2.209 0-4-1.791-4-4s1.791-4 4-4c2.209 0 4 1.791 4 4v0c0 2.209-1.791 4-4 4v0zM24 18c-1.105 0-2 0.895-2 2s0.895 2 2 2c1.105 0 2-0.895 2-2v0c0-1.105-0.895-2-2-2v0zM20 24c-2.209 0-4-1.791-4-4s1.791-4 4-4v0c0.002 0 0.005 0 0.007 0 1.032 0 1.972 0.398 2.673 1.048l-0.003-0.002c0.191 0.183 0.311 0.439 0.311 0.724 0 0.552-0.448 1-1 1-0.257 0-0.492-0.097-0.669-0.257l0.001 0.001c-0.345-0.319-0.807-0.514-1.315-0.514-0.002 0-0.003 0-0.005 0h0c-1.105 0-2 0.895-2 2s0.895 2 2 2v0c0.002 0 0.004 0 0.007 0 0.508 0 0.971-0.195 1.317-0.515l-0.001 0.001c0.179-0.171 0.422-0.276 0.689-0.276 0.552 0 1 0.448 1 1 0 0.295-0.128 0.56-0.331 0.743l-0.001 0.001c-0.699 0.648-1.638 1.046-2.671 1.046-0.003 0-0.007 0-0.010 0h0.001z"></path>\n</svg>\n';var o=":host{display:block}";var l=t("salla_order_summary",function(){function t(t){n(this,t);this.codeCopied=null;this.noItemFound=true;this.order_items=[];this.isDigitalCard=function(t){return t.product.type==="codes"};this.isDigitalProduct=function(t){return t.product.type==="digital"}}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(n){switch(n.label){case 0:salla.lang.onLoaded((function(){t.codes_text=salla.lang.get("pages.thank_you.codes");t.copy_text=salla.lang.get("common.elements.copy");t.files_text=salla.lang.get("pages.thank_you.files");t.download_text=salla.lang.get("pages.thank_you.download")}));return[4,this.getOrderItems()];case 1:return[2,n.sent()]}}))}))};t.prototype.copyToClipboardHandler=function(t){var n=this;if(navigator&&"clipboard"in navigator){try{navigator.clipboard.writeText(t).then((function(){n.codeCopied=t;n.copyCodeButtonTimeout=setTimeout((function(){n.codeCopied=null}),3e3)}))}catch(t){salla.loggers.error("copy functionality is not supported by the browser")}}};t.prototype.getOrderItems=function(){return __awaiter(this,void 0,void 0,(function(){var t,n,e,r,s,i;var c=this;return __generator(this,(function(a){switch(a.label){case 0:t=this.orderId||salla.config.get("page.id");n="Failed to fetch order items";if(!t){salla.logger.error(n);throw new Error(n)}a.label=1;case 1:a.trys.push([1,3,,4]);return[4,salla.api.request("orders/".concat(t))];case 2:e=a.sent().data.items,r=e===void 0?[]:e;s=r.some((function(t){return c.isDigitalCard(t)||c.isDigitalProduct(t)}));if(s){this.order_items=r;this.noItemFound=false}return[3,4];case 3:i=a.sent();salla.logger.error(n);return[3,4];case 4:return[2]}}))}))};t.prototype.disconnectedCallback=function(){this.copyCodeButtonTimeout&&clearTimeout(this.copyCodeButtonTimeout)};t.prototype.render=function(){var t=this;return e("ul",{key:"14eed8e219bcde5b32d5fddb95bb8727e980c56c",class:"s-order-summary-wrapper"},this.noItemFound?e("salla-placeholder",{alignment:"center"},e("span",{slot:"title"})):this.order_items.map((function(n){return t.isDigitalCard(n)?e("li",{key:n.product.id,class:"s-order-summary-item"},e("h2",{class:"s-order-summary-item-title"},t.codes_text," (",n.name,")"),n.codes.map((function(n){return e("div",{key:n.code,class:"s-order-summary-code-item-wrapper"},e("p",null,e("span",{innerHTML:a}),e("span",null,n.code)),e("salla-button",{class:"s-order-summary-item-copy-button ".concat(t.codeCopied===n.code?"copied":""),onClick:function(){return t.copyToClipboardHandler(n.code)},shape:"link"},e("span",{innerHTML:t.codeCopied===n.code?r:c}),e("span",null,t.copy_text)))}))):t.isDigitalProduct(n)?e("li",{key:n.product.id,class:"s-order-summary-item"},e("h2",{class:"s-order-summary-item-title"},t.files_text," (",n.name,")"),e("ul",null,n.files.map((function(n){return e("li",{class:"s-order-summary-digital-item-wrapper"},e("div",null,e("span",{innerHTML:s}),e("span",null,n.name)),e("a",{href:n.url,target:"_blank",class:"s-order-summary-item-download"},e("span",{innerHTML:i}),e("span",null,t.download_text)))})))):null})))};return t}());l.style=o}}}));
|
|
5
|
+
//# sourceMappingURL=p-059405fc.system.entry.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
System.register(["./p-
|
|
5
|
-
//# sourceMappingURL=p-
|
|
4
|
+
System.register(["./p-Ce2XJNsy.system.js","./p-D5o2VQTp.system.js","./p-CzwwMHuN.system.js","./p-CLqFzsVe.system.js"],(function(s){"use strict";var e,i,t,a;return{setters:[function(s){e=s.r;i=s.h},function(s){t=s.a},function(s){a=s.H},null],execute:function(){var l='\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>quote-open</title>\n<path d="M8 12v-5.333c0-0.737-0.596-1.333-1.333-1.333-3.676 0-6.667 2.991-6.667 6.667v8c0 3.676 2.991 6.667 6.667 6.667h1.333c3.676 0 6.667-2.991 6.667-6.667v-1.333c0-3.676-2.991-6.667-6.667-6.667zM12 20c0 2.205-1.795 4-4 4h-1.333c-2.205 0-4-1.795-4-4v-8c0-1.739 1.115-3.221 2.667-3.772v5.105c0 0.737 0.596 1.333 1.333 1.333h1.333c2.205 0 4 1.795 4 4zM25.333 12v-5.333c0-0.737-0.596-1.333-1.333-1.333-3.676 0-6.667 2.991-6.667 6.667v8c0 3.676 2.991 6.667 6.667 6.667h1.333c3.676 0 6.667-2.991 6.667-6.667v-1.333c0-3.676-2.991-6.667-6.667-6.667zM29.333 20c0 2.205-1.795 4-4 4h-1.333c-2.205 0-4-1.795-4-4v-8c0-1.739 1.115-3.221 2.667-3.772v5.105c0 0.737 0.596 1.333 1.333 1.333h1.333c2.205 0 4 1.795 4 4z"></path>\n</svg>\n';var n="";var r=s("salla_reviews",function(){function s(s){var i=this;e(this,s);this.limit=5;this.type="store";this.sort="latest";this.hideCustomerInfo=false;this.reviews=[];this.showReviews=false;this.testimonialText=salla.lang.get("blocks.home.testimonials");this.displayAllLinkText=salla.lang.get("blocks.home.display_all");this.displayAllURL=null;this.source=this.source;salla.onReady((function(){i.displayAllURL=salla.url.get("testimonials");i.isRTL=salla.config.get("theme.is_rtl",true)}));salla.lang.onLoaded((function(){i.testimonialText=salla.lang.get("blocks.home.testimonials");i.displayAllLinkText=salla.lang.get("blocks.home.display_all")}))}s.prototype.fetchReviews=function(){if(this.source==="json"){return Promise.resolve(JSON.parse(this.sourceValue))}var s=["products","categories"].includes(this.source);var e={limit:this.limit,source:this.source,items:s?JSON.parse(this.sourceValue):this.sourceValue,sort:this.sort,type:this.type,hide_customer_info:this.hideCustomerInfo?1:0};return salla.api.request("reviews",{params:e},"get")};s.prototype.componentWillLoad=function(){var s=this;return new Promise((function(s){return salla.onReady(s)})).then((function(){return s.fetchReviews()})).then((function(s){return s.data||[]})).then((function(e){if(e.length){s.reviews=e;s.showReviews=true;a.generateReviewSchema(s.reviews)}}))};s.prototype.render=function(){return i("div",{key:"deed3cdbac9556908c110d96935d6478996caf99",class:"s-reviews-container"},i("div",{key:"3646aa3266c29d1f371cf3acedaedc726f7e6bac",class:"s-reviews-header-wrapper"},i("h1",{key:"0a47642eea4e162173374f0a1340fd3068165d30",class:"s-reviews-header"},this.testimonialText),!!this.displayAllLink?i("a",{href:this.displayAllURL,class:"s-reviews-display-all"},this.displayAllLinkText,i("span",{class:"s-reviews-display-all-icon",innerHTML:t})):null),i("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-".concat(this.source,"-slider")},i("div",{key:"50b9ac94feca79ed29d85bfcf4808b0849e4f933",slot:"items"},this.reviews.map((function(s,e){return i("div",{key:e,class:"s-reviews-swiper-slide"},i("div",{class:"s-reviews-testimonial"},i("div",{class:"s-reviews-testimonial__inner"},i("div",{class:"s-reviews-testimonial__avatar"},i("img",{src:"images/s-empty.png","data-src":s.avatar,alt:s.name?s.name:"testimonial-"+e,class:"lazy"})),i("div",{class:"s-reviews-testimonial__text"},i("p",{innerHTML:s.content}),i("div",{class:"s-reviews-testimonial__name_wrapper"},i("div",{class:"s-reviews-testimonial__info"},s.name&&i("h2",null,"".concat(s.name))),i("div",{class:"s-reviews-testimonial__rating"},i("salla-rating-stars",{size:"small",value:s.stars})))),i("span",{class:"s-reviews-testimonial__icon",innerHTML:l}))))})))))};return s}());r.style=n}}}));
|
|
5
|
+
//# sourceMappingURL=p-09bc1f72.system.entry.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,r,n,
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,r,n,e){function i(t){return t instanceof n?t:new n((function(r){r(t)}))}return new(n||(n=Promise))((function(n,a){function s(t){try{u(e.next(t))}catch(t){a(t)}}function o(t){try{u(e["throw"](t))}catch(t){a(t)}}function u(t){t.done?n(t.value):i(t.value).then(s,o)}u((e=e.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},e,i,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(r){return u([t,r])}}function u(o){if(e)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(n=0)),n)try{if(e=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=r.call(t,n)}catch(t){o=[6,t];i=0}finally{e=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* Crafted with ❤ by Salla
|
|
4
|
-
*/System.register(["./p-
|
|
5
|
-
//# sourceMappingURL=p-
|
|
4
|
+
*/System.register(["./p-Ce2XJNsy.system.js","./p-Bnro4LR3.system.js","./p-CzwwMHuN.system.js","./p-CLqFzsVe.system.js"],(function(t){"use strict";var r,n,e,i,a,s,o;return{setters:[function(t){r=t.r;n=t.c;e=t.h;i=t.H;a=t.g},function(t){s=t.F},function(t){o=t.H},null],execute:function(){var u=":host{display:block}.s-rating-stars-small{line-height:12px}.s-filters-radio{background-image:none !important}";var f=t("salla_filters",function(){function t(t){var e=this;r(this,t);this.changed=n(this,"changed");this.isReady=false;this.filtersData={};salla.event.on("filters::hidden",(function(){return e.host.style.display="none"}));salla.lang.onLoaded((function(){e.apply=salla.lang.get("pages.checkout.apply");e.reset=salla.lang.get("pages.categories.filters_reset")}));salla.event.on("filters::fetched",(function(t){var r=t.filters;e.host.style.display="";var n={};e.filters=r.map((function(t){t.label={category_id:salla.lang.get("common.titles.categories"),brand_id:salla.lang.get("common.titles.brands"),rating:salla.lang.get("pages.categories.filter_rating"),price:salla.lang.get("pages.categories.filter_price")}[t.key]||t.label;if(t.key=="rating"){t.type=s.VALUES;var r=t.values,i=r.max,a=r.min;t.values=[5,4,3,2,1].filter((function(t){return t>=a||t<=i}))}if(e.filtersData.variants&&t.type==s.VARIANTS){n.variants=e.filtersData.variants}if(e.filtersData[t.key]&&t.type!==s.VARIANTS){n[t.key]=e.filtersData[t.key]}var o=new URLSearchParams(window.location.search);var u=false;for(var f=0,c=o.keys();f<c.length;f++){var l=c[f];if(l.includes("filters")){u=true;break}}if(salla.config.get("page.slug")=="product.index"&&Object.keys(n).length==0&&!u){var h=window.location.href;var v=salla.config.get("page.id");var d=h.indexOf("?")!==-1?"&":"?";var w=h+d+"filters[category_id]="+v;n.category_id=v;window.history.pushState({path:w},"",w)}return t}));e.filtersData=n;e.host.childNodes.forEach((function(t){return __awaiter(e,void 0,void 0,(function(){var r;return __generator(this,(function(n){switch(n.label){case 0:r=t.setWidgetHeight;if(!r)return[3,2];return[4,t.setWidgetHeight()];case 1:r=n.sent();n.label=2;case 2:return[2,r]}}))}))}))}))}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,r,n;return __generator(this,(function(e){switch(e.label){case 0:e.trys.push([0,2,,3]);t=new URLSearchParams(window.location.search);r=this;return[4,o.extractFiltersFromUrl(t)];case 1:r.filtersData=e.sent();return[3,3];case 2:n=e.sent();console.warn("failed to get filters from URL",n.message);return[3,3];case 3:return[2]}}))}))};t.prototype.getFilters=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.filtersData]}))}))};t.prototype.applyFilters=function(){return __awaiter(this,void 0,void 0,(function(){var t;var r=this;return __generator(this,(function(n){if(!this.isReady){return[2]}t=Object.keys(this.filtersData).length>0;setTimeout((function(){var n;if(t){var e=new URL(window.location.href);for(var i=0,a=e.searchParams.entries();i<a.length;i++){var s=a[i][0];if(s.startsWith("filters")){e.searchParams.delete(s)}}var o=r.encodeFilters(r.filtersData);var u=e.search.split("&").filter((function(t){return!t.includes("filters")})).join("&");if(u){e.search=e.search.split("&filters")[0]+"&"+o}else{e.search="?".concat(o)}window.history.pushState({},"",e.href)}else{var e=new URL(window.location.href);(n=e.searchParams)===null||n===void 0?void 0:n.delete("filters");window.history.pushState({},"",e.toString())}salla.event.emit("salla-filters::changed",r.filtersData);r.changed.emit(r.filtersData)}),300);return[2]}))}))};t.prototype.encodeFilters=function(t,r){if(r===void 0){r="filters"}var n=[];for(var e in t){if(Object.prototype.hasOwnProperty.call(t,e)){var i=t[e];var a=r?"".concat(r,"[").concat(e,"]"):e;if(Array.isArray(i)){for(var s=0;s<i.length;s++){n.push("".concat(a,"[").concat(s,"]=").concat(i[s]))}}else if(typeof i==="object"&&i!==null){n.push(this.encodeFilters(i,a))}else{var o="".concat(a,"=").concat(i);n.push(o)}}}return n.join("&")};t.prototype.resetFilters=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.removeFiltersQueryParams();this.filtersData={};this.host.childNodes.forEach((function(t){return t.reset&&t.reset()}));salla.event.emit("salla-filters::reset");return[2,this.applyFilters()]}))}))};t.prototype.removeFiltersQueryParams=function(){var t=new URLSearchParams(window.location.search);var r=Array.from(t.keys()).filter((function(t){return!t.startsWith("filters[")})).map((function(r){return"".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(t.get(r)))})).join("&");var n=r?"".concat(window.location.pathname,"?").concat(r):window.location.pathname;window.history.pushState({},"",n)};t.prototype.handleOptionChange=function(t,r,n){if(r.type===s.RANGE){this.filtersData[r.key]=n}var e=t.target.checked;if(r.type===s.VARIANTS){this.filtersData.variants=this.filtersData.variants||{};e&&(this.filtersData.variants[r.key]=n);e||delete this.filtersData.variants[r.key]}else if(t.target.type=="radio"){e&&(this.filtersData[r.key]=n);e||delete this.filtersData[r.key]}else if(t.target.type=="checkbox"){this.filtersData[r.key]=this.filtersData[r.key]||[];if(e){this.filtersData[r.key].push(n)}this.filtersData[r.key]=this.filtersData[r.key].filter((function(t){return t!=n}))}this.applyFilters()};t.prototype.render=function(){var t=this;var r,n;return e(i,{key:"54a625522588215230f1eb5a3ca94b8280b18040"},(r=this.filters)===null||r===void 0?void 0:r.map((function(r){return e("salla-filters-widget",{option:r,filtersData:t.filtersData,onChanged:function(r){var n=r.detail,e=n.event,i=n.option,a=n.value;t.handleOptionChange(e,i,a)}})})),((n=this.filters)===null||n===void 0?void 0:n.length)?e("div",{class:"s-filters-footer"},e("salla-button",{color:"gray",fill:"outline",onClick:function(){return t.resetFilters()}},this.reset)):"")};t.prototype.componentDidLoad=function(){this.isReady=true};Object.defineProperty(t.prototype,"host",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());f.style=u}}}));
|
|
5
|
+
//# sourceMappingURL=p-0e1cd76c.system.entry.js.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,n,i){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function r(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i["throw"](e))}catch(e){s(e)}}function c(e){e.done?n(e.value):a(e.value).then(r,o)}c((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,r;return r={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function o(e){return function(t){return c([e,t])}}function c(o){if(i)throw new TypeError("Generator is already executing.");while(r&&(r=0,o[0]&&(n=0)),n)try{if(i=1,a&&(s=o[0]&2?a["return"]:o[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,o[1])).done)return s;if(a=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;a=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){n.label=o[1];break}if(o[0]===6&&n.label<s[1]){n.label=s[1];s=o;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(o);break}if(s[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];a=0}finally{i=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
|
|
2
|
+
/*!
|
|
3
|
+
* Crafted with ❤ by Salla
|
|
4
|
+
*/System.register(["./p-Ce2XJNsy.system.js"],(function(e){"use strict";var t,n,i,a,s;return{setters:[function(e){t=e.r;n=e.c;i=e.h;a=e.H;s=e.g}],execute:function(){var r='\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>calendar-time</title>\n<path d="M22.667 17.333c-0.737 0-1.333 0.596-1.333 1.333v2.667h-2.667c-0.737 0-1.333 0.596-1.333 1.333s0.596 1.333 1.333 1.333h4c0.737 0 1.333-0.596 1.333-1.333v-4c0-0.737-0.596-1.333-1.333-1.333zM28 2.667h-2.667v-1.333c0-0.736-0.596-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v1.333h-13.333v-1.333c0-0.736-0.596-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v1.333h-2.667c-2.205 0-4 1.795-4 4v21.333c0 2.205 1.795 4 4 4h5.363c0.737 0 1.333-0.596 1.333-1.333s-0.596-1.333-1.333-1.333h-5.363c-0.736 0-1.333-0.597-1.333-1.333v-21.333c0-0.736 0.597-1.333 1.333-1.333h2.667v2.667c0 0.736 0.596 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.667h13.333v2.667c0 0.736 0.596 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.667h2.667c0.736 0 1.333 0.599 1.333 1.333v2.696c0 0.736 0.596 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.696c0-2.205-1.795-4-4-4zM22 12c-5.515 0-10 4.485-10 10s4.485 10 10 10 10-4.485 10-10-4.485-10-10-10zM22 29.333c-4.043 0-7.333-3.291-7.333-7.333s3.291-7.333 7.333-7.333 7.333 3.291 7.333 7.333-3.291 7.333-7.333 7.333z"></path>\n</svg>\n';var o='\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>calendar</title>\n<path d="M28 2.667h-2.667v-1.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v1.333h-13.333v-1.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v1.333h-2.667c-2.205 0-4 1.795-4 4v21.333c0 2.205 1.795 4 4 4h24c2.205 0 4-1.795 4-4v-21.333c0-2.205-1.795-4-4-4zM29.333 28c0 0.736-0.599 1.333-1.333 1.333h-24c-0.736 0-1.333-0.599-1.333-1.333v-13.333h26.667zM29.333 12h-26.667v-5.333c0-0.736 0.599-1.333 1.333-1.333h2.667v2.667c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.667h13.333v2.667c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.667h2.667c0.736 0 1.333 0.599 1.333 1.333z"></path>\n</svg>\n';var c='\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>time</title>\n<path d="M16 0c-8.823 0-16 7.177-16 16s7.177 16 16 16 16-7.177 16-16-7.177-16-16-16zM16 29.333c-7.352 0-13.333-5.981-13.333-13.333s5.981-13.333 13.333-13.333 13.333 5.981 13.333 13.333-5.981 13.333-13.333 13.333zM16 8c-0.736 0-1.333 0.596-1.333 1.333v6.667h-4c-0.736 0-1.333 0.596-1.333 1.333s0.597 1.333 1.333 1.333h5.333c0.736 0 1.333-0.596 1.333-1.333v-8c0-0.737-0.597-1.333-1.333-1.333z"></path>\n</svg>\n';var l=":host{display:block}";var u=e("salla_booking_field",function(){function e(e){var i=this;t(this,e);this.invalidInput=n(this,"invalidInput");this.bookNowLabel=salla.lang.get("pages.cart.book_an_appointment","حجز موعد");this.editLabel=salla.lang.get("pages.cart.edit_an_appointment","تعديل الموعد");this.bookedLabel=salla.lang.get("pages.cart.booked_successfully","تمت اضافة الموعد بنجاح");this.selectDate=salla.lang.get("pages.cart.select_appointment_date","حدد تاريخ الموعد");this.bookingUrl="";this.iframeReady=false;this.reservations=[];salla.lang.onLoaded((function(){return i.setTranslations()}));Salla.event.on("booking::open",(function(e){return i.handleBookingOpen(e)}))}e.prototype.setTranslations=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=function(e,t,n){return new Promise((function(i){salla.helpers.setNested(salla.lang.messages[e],t,n);i(true)}))};return[4,e("ar.trans","pages.cart.book_an_appointment","حجز موعد")];case 1:t.sent();return[4,e("en.trans","pages.cart.book_an_appointment","Book an Appointment")];case 2:t.sent();return[4,e("ar.trans","pages.cart.edit_an_appointment","تعديل الموعد")];case 3:t.sent();return[4,e("en.trans","pages.cart.edit_an_appointment","Edit an Appointment")];case 4:t.sent();return[4,e("ar.trans","pages.cart.booked_successfully","تمت اضافة الموعد بنجاح")];case 5:t.sent();return[4,e("en.trans","pages.cart.booked_successfully","Booked Successfully")];case 6:t.sent();return[4,e("ar.trans","pages.cart.select_appointment_date","حدد تاريخ الموعد")];case 7:t.sent();return[4,e("en.trans","pages.cart.select_appointment_date","Select appointment date")];case 8:t.sent();this.bookNowLabel=salla.lang.get("pages.cart.book_an_appointment");this.editLabel=salla.lang.get("pages.cart.edit_an_appointment");this.bookedLabel=salla.lang.get("pages.cart.booked_successfully");this.selectDate=salla.lang.get("pages.cart.select_appointment_date");return[2]}}))}))};e.prototype.openBookingModal=function(e,t){var n=this;if(t===void 0){t=false}if(t&&(!e.detail||typeof e.detail!=="number"||e.detail!==this.productId)){return}if(salla.config.isGuest()){this.setAfterReloadEvent("booking::open-after-reload",this.productId);salla.event.dispatch("login::open");return}salla.booking.add(this.productId,false).then((function(e){if(e.data.redirect.to!=="booking"){throw new Error("Unexpected redirect!")}salla.event.dispatch("booking::open",{url:e.data.redirect.url,id:n.productId})})).catch((function(e){salla.error(salla.lang.get("common.errors.error_occurred"));salla.logger.error(e.response||e)}))};e.prototype.handleBookingOpen=function(e){var t=this;if(e.id!==this.productId)return;this.bookingUrl=salla.url.addParamToUrl("product_id",e.id,e.url);this.iframeReady=true;setTimeout((function(){t.modal.setTitle(t.selectDate);t.modal.open()}),100)};e.prototype.setAfterReloadEvent=function(e,t){salla.storage.set("afterReloadEvent",{event:e,payload:t})};e.prototype.emitAfterReloadEvent=function(){var e=salla.storage.get("afterReloadEvent");if(e&&e.event){var t=new CustomEvent(e.event,{detail:e.payload});window.dispatchEvent(t);salla.storage.remove("afterReloadEvent")}};e.prototype.componentWillLoad=function(){if(this.option&&this.option.details.length){this.reservations=this.option.details}};e.prototype.componentDidLoad=function(){var e=this;window.addEventListener("booking::open-after-reload",(function(t){return e.openBookingModal(t,true)}));this.emitAfterReloadEvent();window.addEventListener("message",this.handleMessageEvent.bind(this));this.reservationsInput.addEventListener("invalid",(function(t){return e.invalidInput.emit(t)}));this.reservationsInput.addEventListener("input",(function(){e.reservationsInput.setCustomValidity("");e.reservationsInput.reportValidity()}))};e.prototype.handleMessageEvent=function(e){var t,n;if(e.data.source!=="booking")return;var i=e.data.type;var a=e.data.message;if(localStorage.getItem("debug"))console.log("Received an action:".concat(i),e.data);if(i==="error"){if((t=a.fields)===null||t===void 0?void 0:t.reservation){salla.notify.error(a.fields.reservation[0]);return}var s=Object.values(a.fields||[a.message]).flat().map((function(e){return"<li>".concat(e,"</li>")})).join("");salla.notify.error("<ul>".concat(s,"</ul>"))}if(i==="success"){if(Number(a.productId)!==Number(this.productId))return;this.reservations=a.data.reservations.map((function(e){if(e.time&&e.time.length>0){var t=e.time[0];return{date:e.date,day:e.day,from_timestamp:t.from,to_timestamp:t.to}}return null})).filter((function(e){return e!==null}));salla.notify.success(this.bookedLabel);(n=this.modal)===null||n===void 0?void 0:n.close();setTimeout((function(){return window.location.reload()}))}if(i==="height"){this.iframe.height=(a===null||a===void 0?void 0:a.height)+"px"}};e.prototype.bookingModal=function(){var e=this;return i("salla-modal",{class:"s-booking-field-modal",ref:function(t){return e.modal=t},width:"md",position:"middle",noPadding:true},i("iframe",{ref:function(t){return e.iframe=t},src:this.bookingUrl,frameborder:"0"}))};e.prototype.renderReservationDate=function(e){return i("span",{class:e.from_timestamp?"s-booking-field-reservations-has-time":""},i("i",{class:"s-booking-field-reservations-icon",innerHTML:o}),e.date)};e.prototype.renderReservationTime=function(e){if(!e.from_timestamp)return"";return i("span",{class:"s-booking-field-reservations-time"},i("i",{class:"s-booking-field-reservations-icon",innerHTML:c}),i("span",null,e.from_timestamp," - ",e.to_timestamp))};e.prototype.render=function(){var e=this;return i(a,{key:"04c9e3dc3dc825bd6905221d858c260f7ca34748"},i("div",{key:"07ec38cec1bd1798640dd7ea9592bb3b17d945c6",class:"s-booking-field-main"},this.option.required||this.reservations.length>0?i("div",{class:"s-booking-field-price"},i("span",{innerHTML:salla.money(this.option.price)})):"",i("salla-button",{key:"6b71889cfc0429d15c466a6f194df31549f09786",class:"s-booking-field-book-now",size:"small",loaderPosition:"center",fill:"outline",onClick:function(t){return e.openBookingModal(t,false)}},i("span",{key:"a16f8db6f52c7751ea605efcae04057ca0dc5b61",class:"s-booking-field-book-now-content"},i("span",{key:"95f6086a599bcc620c87ece6c6ae9620dba15581",innerHTML:r}),this.reservations.length?this.editLabel:this.bookNowLabel))),this.reservations.length>0&&i("div",{key:"b3615100bbfff3d98d0ac99145aaf53449790c94",class:"s-booking-field-reservations"},this.reservations.map((function(t,n){return i("div",{key:n,class:"s-booking-field-reservations-item"},e.renderReservationDate(t),e.renderReservationTime(t))}))),i("input",{key:"126f14f2e520b8696bc7450e209bad30b267878b",class:"s-hidden",name:this.option.name,required:this.option.required,value:JSON.stringify(this.reservations)==="[]"?"":JSON.stringify(this.reservations),ref:function(t){return e.reservationsInput=t}}),this.iframeReady&&this.bookingModal())};Object.defineProperty(e.prototype,"host",{get:function(){return s(this)},enumerable:false,configurable:true});return e}());u.style=l;var f=e("salla_conditional_fields",function(){function e(e){t(this,e)}e.prototype.hideAllOptions=function(e){var t=this;this.host.querySelectorAll('[data-show-when^="options['.concat(e,'"]')).forEach((function(e){e.classList.add("hidden");t.hideAllOptions(e.dataset.optionId);t.disableInputs(e)}))};e.prototype.disableInputs=function(e){e.querySelectorAll("[name]").forEach((function(e){var t;e.setAttribute("disabled","");e.removeAttribute("required");if(((t=e===null||e===void 0?void 0:e.tagName)===null||t===void 0?void 0:t.toLowerCase())==="select"){e.value=""}if(["checkbox"].includes(e.getAttribute("type"))&&e.hasOwnProperty("checked")){e.checked=false}}))};e.prototype.changeHandler=function(e){var t=this;var n;salla.event.emit("salla-onditional-fields::change",e);salla.log("Received the change event: ",e);if(!e.target||!["SELECT"].includes(e.target.tagName)&&!["checkbox","radio"].includes(e.target.getAttribute("type"))){salla.log("Ignore the change because is not a supported input: "+(((n=e===null||e===void 0?void 0:e.target)===null||n===void 0?void 0:n.tagName)||"N/A"));return}var i=e.target.name.replace("[]","");var a=e.target.getAttribute("type")==="checkbox";var s=e.target.getAttribute("type")==="radio";salla.log("Trying to find all elements with condition:",'[data-show-when^="'.concat(i,'"]'));this.host.querySelectorAll('[data-show-when^="'.concat(i,'"]')).forEach((function(n){var i=!(n===null||n===void 0?void 0:n.dataset.showWhen.includes("!="));var r=n===null||n===void 0?void 0:n.dataset.showWhen.replace(/(.*)(=|!=)(.*)/gm,"$3").trim();var o;if(a){var c=Array.from(t.host.querySelectorAll('input[name="'.concat(e.target.name,'"]:checked')),(function(e){return e===null||e===void 0?void 0:e.value}));o=c.includes(r.toString())}else if(s){o=e.target.checked&&e.target.value===r}else{o=r===e.target.value}salla.log("The input is ",a?"Multiple":s?"Radio":"Single"," value:",o);var l=i&&o||!i&&!o;if(l){n.classList.remove("hidden");n.querySelectorAll("[name]").forEach((function(e){e.removeAttribute("disabled");var t=e.closest(".s-product-options-option");if(t.dataset.optionRequired==="true"){e.setAttribute("required","")}if(e.getAttribute("type")==="checkbox"){var n=Array.from(document.querySelectorAll('input[type="checkbox"][name="'.concat(e.getAttribute("name"),'"]')));var i=n.some((function(e){return e.checked}));if(i){n.forEach((function(e){e.removeAttribute("required")}))}}}))}else{t.hideAllOptions(n.dataset.optionId);n.classList.add("hidden");t.disableInputs(n)}}))};e.prototype.componentDidRender=function(){var e=this;this.host.querySelectorAll("[data-show-when]").forEach((function(t){var n;var i=(n=t===null||t===void 0?void 0:t.dataset)===null||n===void 0?void 0:n.showWhen.replace(/(.*)(=|!=)(.*)/gm,"$1").trim();if(!i){return}e.changeHandler({target:e.host.querySelector('[name^="'+i+'"]')})}))};e.prototype.render=function(){return i(a,{key:"405156ba83b8731039c2dd0ff800f617150cc722"},i("slot",{key:"2bff17ce7b49fef9b028d673992d256b00e9481b"}))};Object.defineProperty(e.prototype,"host",{get:function(){return s(this)},enumerable:false,configurable:true});return e}())}}}));
|
|
5
|
+
//# sourceMappingURL=p-13a2e582.system.entry.js.map
|