@salla.sa/twilight-components 2.14.218 → 2.14.219
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-Cprz3aRk.js → app-globals-DwcsRV1q.js} +3 -3
- package/dist/cjs/{app-globals-Cprz3aRk.js.map → app-globals-DwcsRV1q.js.map} +1 -1
- package/dist/cjs/{index-Cdw4usuf.js → index-CcKYmcmm.js} +4 -4
- package/dist/cjs/index-CcKYmcmm.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion-head.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_51.cjs.entry.js +7 -7
- 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-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 +4 -4
- package/dist/cjs/salla-social.cjs.entry.js.map +1 -1
- package/dist/cjs/salla-social.entry.cjs.js.map +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 +2 -2
- package/dist/collection/components/salla-social/salla-social.js +3 -3
- package/dist/collection/components/salla-social/salla-social.js.map +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-social-share.js +1 -1
- package/dist/components/salla-social.js +3 -3
- package/dist/components/salla-social.js.map +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-1BjWWr1H.js → app-globals-C4AMOceU.js} +3 -3
- package/dist/esm/{app-globals-1BjWWr1H.js.map → app-globals-C4AMOceU.js.map} +1 -1
- package/dist/esm/{index-BD7ZbsaZ.js → index-5Ng8LPjI.js} +4 -4
- package/dist/esm/index-5Ng8LPjI.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body.entry.js +1 -1
- package/dist/esm/salla-accordion-head.entry.js +1 -1
- package/dist/esm/salla-accordion.entry.js +1 -1
- package/dist/esm/salla-add-product-button_51.entry.js +7 -7
- 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-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 +4 -4
- package/dist/esm/salla-social.entry.js.map +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 +3 -3
- package/dist/esm-es5/{app-globals-1BjWWr1H.js → app-globals-C4AMOceU.js} +2 -2
- package/dist/esm-es5/{app-globals-1BjWWr1H.js.map → app-globals-C4AMOceU.js.map} +1 -1
- package/dist/esm-es5/{index-BD7ZbsaZ.js → index-5Ng8LPjI.js} +3 -3
- package/dist/{cjs/index-Cdw4usuf.js.map → esm-es5/index-5Ng8LPjI.js.map} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/salla-accordion-body.entry.js +1 -1
- package/dist/esm-es5/salla-accordion-head.entry.js +1 -1
- package/dist/esm-es5/salla-accordion.entry.js +1 -1
- package/dist/esm-es5/salla-add-product-button_51.entry.js +2 -2
- 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 +2 -2
- 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 +1 -1
- package/dist/esm-es5/salla-notification-item.entry.js +1 -1
- package/dist/esm-es5/salla-notifications.entry.js +1 -1
- package/dist/esm-es5/salla-offer.entry.js +1 -1
- package/dist/esm-es5/salla-order-summary.entry.js +1 -1
- 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-social.entry.js.map +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-279fa1ba.system.entry.js → p-026b2234.system.entry.js} +2 -2
- package/dist/twilight/{p-a3851930.system.entry.js → p-059307d0.system.entry.js} +2 -2
- package/dist/twilight/{p-ecbf2df4.system.entry.js → p-0997acd6.system.entry.js} +2 -2
- package/dist/twilight/{p-1e970f30.entry.js → p-0c73100c.entry.js} +2 -2
- package/dist/twilight/{p-5e9f7537.system.entry.js → p-0f6f5c5a.system.entry.js} +2 -2
- package/dist/twilight/{p-Ky_8TZck.system.js.map → p-0n3Z0RlT.system.js.map} +1 -1
- package/dist/twilight/{p-f8f4ba08.system.entry.js → p-1d9751af.system.entry.js} +2 -2
- package/dist/twilight/{p-5fcbc55c.entry.js → p-1fec50ba.entry.js} +2 -2
- package/dist/twilight/{p-d67ffc4d.system.entry.js → p-2378fcc3.system.entry.js} +2 -2
- package/dist/twilight/{p-2dca93d6.entry.js → p-2406c822.entry.js} +2 -2
- package/dist/twilight/p-27b836fc.entry.js +5 -0
- package/dist/twilight/p-27fa775d.system.entry.js +5 -0
- package/dist/twilight/{p-aae661d5.system.entry.js → p-2bbb1442.system.entry.js} +2 -2
- package/dist/twilight/{p-d7d88ebf.system.entry.js → p-30635b42.system.entry.js} +2 -2
- package/dist/twilight/{p-99ecd68e.system.entry.js → p-38dbabf3.system.entry.js} +2 -2
- package/dist/twilight/{p-776ab2c0.entry.js → p-3f87edc6.entry.js} +2 -2
- package/dist/twilight/{p-a4949ca4.entry.js → p-3fcf491f.entry.js} +2 -2
- package/dist/twilight/{p-80b67c04.entry.js → p-4260bfbf.entry.js} +2 -2
- package/dist/twilight/{p-f74cdaa4.system.entry.js → p-4aec7d12.system.entry.js} +2 -2
- package/dist/twilight/{p-a6f508c5.entry.js → p-4defb732.entry.js} +2 -2
- package/dist/twilight/{p-235c600c.entry.js → p-50348764.entry.js} +2 -2
- package/dist/twilight/{p-b6bd1877.system.entry.js → p-5092bc1b.system.entry.js} +2 -2
- package/dist/twilight/{p-9b451df1.system.entry.js → p-52d9262a.system.entry.js} +2 -2
- package/dist/twilight/{p-1c9bdf4f.system.entry.js → p-568ca254.system.entry.js} +2 -2
- package/dist/twilight/{p-cefce16f.system.entry.js → p-592ab962.system.entry.js} +2 -2
- package/dist/twilight/{p-BD7ZbsaZ.js → p-5Ng8LPjI.js} +3 -3
- package/dist/twilight/p-5Ng8LPjI.js.map +1 -0
- package/dist/twilight/{p-52986763.system.entry.js → p-5bcba29f.system.entry.js} +2 -2
- package/dist/twilight/{p-0f6bbb00.entry.js → p-5cdc0973.entry.js} +2 -2
- package/dist/twilight/{p-a1c2c2f9.entry.js → p-606c8dfc.entry.js} +2 -2
- package/dist/twilight/{p-5a8b3581.system.entry.js → p-63f7bf97.system.entry.js} +2 -2
- package/dist/twilight/{p-6426d0a3.entry.js → p-6831d2b2.entry.js} +2 -2
- package/dist/twilight/{p-2153371d.entry.js → p-6ccab36e.entry.js} +2 -2
- package/dist/twilight/{p-a750726a.system.entry.js → p-725de283.system.entry.js} +2 -2
- package/dist/twilight/p-725de283.system.entry.js.map +1 -0
- package/dist/twilight/{p-991c9092.system.entry.js → p-727b5970.system.entry.js} +2 -2
- package/dist/twilight/{p-e3cf72ab.entry.js → p-7425415e.entry.js} +2 -2
- package/dist/twilight/{p-5ba6eb96.entry.js → p-74922500.entry.js} +2 -2
- package/dist/twilight/{p-C55ivbz8.system.js.map → p-7SiswGu5.system.js.map} +1 -1
- package/dist/twilight/{p-7560ff17.entry.js → p-7e2380cb.entry.js} +2 -2
- package/dist/twilight/{p-2db921e5.entry.js → p-7f275c07.entry.js} +2 -2
- package/dist/twilight/{p-00d84fef.entry.js → p-817c183a.entry.js} +2 -2
- package/dist/twilight/{p-1b02a56b.system.entry.js → p-83ec57bf.system.entry.js} +2 -2
- package/dist/twilight/{p-16026fd5.entry.js → p-87ed46f2.entry.js} +2 -2
- package/dist/twilight/{p-98f4a14e.entry.js → p-89b36aa5.entry.js} +2 -2
- package/dist/twilight/{p-900da687.system.entry.js → p-8aebf618.system.entry.js} +3 -3
- package/dist/twilight/{p-5ecdde13.entry.js → p-8fee4078.entry.js} +2 -2
- package/dist/twilight/{p-57d160fe.entry.js → p-917f2e0d.entry.js} +2 -2
- package/dist/twilight/p-917f2e0d.entry.js.map +1 -0
- package/dist/twilight/{p-cb38b4e9.entry.js → p-9a610905.entry.js} +2 -2
- package/dist/twilight/{p-CRJKX4lS.system.js.map → p-B5V-3iwA.system.js.map} +1 -1
- package/dist/twilight/{p-B9BNQMLi.system.js.map → p-BC9d2sk2.system.js.map} +1 -1
- package/dist/twilight/{p-DJh8-YdP.system.js.map → p-BKj6IZd9.system.js.map} +1 -1
- package/dist/twilight/{p-CrA9jrq2.system.js.map → p-BRVKF1oX.system.js.map} +1 -1
- package/dist/twilight/{p-Jjsbvk6X.system.js.map → p-B_XWr5W4.system.js.map} +1 -1
- package/dist/twilight/{p-C5U_yy9V.system.js.map → p-BwQkR44B.system.js.map} +1 -1
- package/dist/twilight/{p-CwPvbVrh.system.js.map → p-C1RajKkq.system.js.map} +1 -1
- package/dist/twilight/{p-C1smLq7U.system.js.map → p-C435-Ngu.system.js.map} +1 -1
- package/dist/twilight/{p-BFwkeKmc.system.js.map → p-CVCIt2lC.system.js.map} +1 -1
- package/dist/twilight/{p-CGJASpcw.system.js → p-CW47XnO5.system.js} +3 -3
- package/dist/twilight/p-CW47XnO5.system.js.map +1 -0
- package/dist/twilight/{p-C7dutM3O.system.js.map → p-D0yWDY14.system.js.map} +1 -1
- package/dist/twilight/{p-DmtzBkHI.system.js.map → p-D5qlTBkb.system.js.map} +1 -1
- package/dist/twilight/{p-t6v8vInO.system.js.map → p-D66T0o_K.system.js.map} +1 -1
- package/dist/twilight/{p-BtS2C9ko.system.js.map → p-DA5WTaBt.system.js.map} +1 -1
- package/dist/twilight/{p-B9SwX01D.system.js.map → p-DAcwScl7.system.js.map} +1 -1
- package/dist/twilight/p-DAzL0lXn.system.js.map +1 -0
- package/dist/twilight/{p--qw6JuMS.system.js.map → p-DEap41uW.system.js.map} +1 -1
- package/dist/twilight/{p-B4RzPp9F.system.js → p-DF9ZFyzo.system.js} +2 -2
- package/dist/twilight/{p-B4RzPp9F.system.js.map → p-DF9ZFyzo.system.js.map} +1 -1
- package/dist/twilight/{p-BfEAw6t1.system.js.map → p-DO1cm8rG.system.js.map} +1 -1
- package/dist/twilight/{p-BY5eIa5K.system.js.map → p-DUpLpWDY.system.js.map} +1 -1
- package/dist/twilight/{p-BHq4ldMn.system.js.map → p-DkgAOYre.system.js.map} +1 -1
- package/dist/twilight/{p-CHLtCZu1.system.js.map → p-DrkjWDOn.system.js.map} +1 -1
- package/dist/twilight/{p-BRJeYy1s.js → p-DvQyp25Z.js} +2 -2
- package/dist/twilight/{p-BRJeYy1s.js.map → p-DvQyp25Z.js.map} +1 -1
- package/dist/twilight/{p-B8Mh4iYE.system.js → p-DyTthv6s.system.js} +2 -2
- package/dist/twilight/{p-B8Mh4iYE.system.js.map → p-DyTthv6s.system.js.map} +1 -1
- package/dist/twilight/{p-DaR7liIO.system.js.map → p-F2JLu9jF.system.js.map} +1 -1
- package/dist/twilight/{p-CW6TWghI.system.js.map → p-Q3cnmL-k.system.js.map} +1 -1
- package/dist/twilight/{p-Dt3vAUqr.system.js.map → p-Qk6u-mnz.system.js.map} +1 -1
- package/dist/twilight/{p-Bv4kNo3j.system.js.map → p-SmO-pF11.system.js.map} +1 -1
- package/dist/twilight/{p-CmdHzhlG.system.js.map → p-TbCQaUz_.system.js.map} +1 -1
- package/dist/twilight/{p-DYuTAKQe.system.js.map → p-Uyr4Flns.system.js.map} +1 -1
- package/dist/twilight/{p-Dwx9565k.system.js.map → p-W-D1NGNr.system.js.map} +1 -1
- package/dist/twilight/{p-158a6252.system.entry.js → p-a3867f03.system.entry.js} +2 -2
- package/dist/twilight/{p-64ab9568.system.entry.js → p-ab25e4b2.system.entry.js} +2 -2
- package/dist/twilight/{p-353e283e.system.entry.js → p-b0218d53.system.entry.js} +2 -2
- package/dist/twilight/{p-cb3b24fc.entry.js → p-b0b3047d.entry.js} +2 -2
- package/dist/twilight/{p-88ec013d.system.entry.js → p-b56edfc7.system.entry.js} +2 -2
- package/dist/twilight/{p-f7a652cb.system.entry.js → p-b66d9649.system.entry.js} +3 -3
- package/dist/twilight/{p-18a71553.entry.js → p-b932035d.entry.js} +2 -2
- package/dist/twilight/{p-6ffc3952.system.entry.js → p-bb0a64fb.system.entry.js} +2 -2
- package/dist/twilight/p-bed89c3a.system.entry.js +5 -0
- package/dist/twilight/{p-675e43a1.system.entry.js → p-c8833f02.system.entry.js} +2 -2
- package/dist/twilight/{p-2af4c880.system.entry.js → p-cd1a5066.system.entry.js} +2 -2
- package/dist/twilight/{p-a16e1cc6.system.entry.js → p-d39080ee.system.entry.js} +2 -2
- package/dist/twilight/{p-1d71903d.entry.js → p-e0039759.entry.js} +2 -2
- package/dist/twilight/{p-0839a213.entry.js → p-e182183b.entry.js} +2 -2
- package/dist/twilight/{p-814afe3f.entry.js → p-e38dcdec.entry.js} +3 -3
- package/dist/twilight/{p-9c7bc4c1.system.entry.js → p-e7267b4b.system.entry.js} +2 -2
- package/dist/twilight/p-f0443b95.entry.js +5 -0
- package/dist/twilight/{p-baafec43.entry.js → p-f0eacf55.entry.js} +2 -2
- package/dist/twilight/{p-4482b984.entry.js → p-fa63f709.entry.js} +2 -2
- package/dist/twilight/{p-e619bbeb.entry.js → p-fe03bd17.entry.js} +2 -2
- package/dist/twilight/{p-CqHa3t6T.system.js.map → p-gVMnKsEU.system.js.map} +1 -1
- package/dist/twilight/{p-DO0fKJmB.system.js.map → p-jJ43wXLr.system.js.map} +1 -1
- package/dist/twilight/{p-CbHhCS1k.system.js.map → p-nXvqfF6q.system.js.map} +1 -1
- package/dist/twilight/{p-DErJch_F.system.js.map → p-uTVeOuzK.system.js.map} +1 -1
- package/dist/twilight/salla-social.entry.esm.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/esm/index-BD7ZbsaZ.js.map +0 -1
- package/dist/esm-es5/index-BD7ZbsaZ.js.map +0 -1
- package/dist/twilight/p-269f2b76.entry.js +0 -5
- package/dist/twilight/p-57d160fe.entry.js.map +0 -1
- package/dist/twilight/p-59d8de3f.system.entry.js +0 -5
- package/dist/twilight/p-5VM9xVI0.system.js.map +0 -1
- package/dist/twilight/p-9eaeffac.system.entry.js +0 -5
- package/dist/twilight/p-BD7ZbsaZ.js.map +0 -1
- package/dist/twilight/p-CGJASpcw.system.js.map +0 -1
- package/dist/twilight/p-a42853ec.entry.js +0 -5
- package/dist/twilight/p-a750726a.system.entry.js.map +0 -1
- /package/dist/twilight/{p-279fa1ba.system.entry.js.map → p-026b2234.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-a3851930.system.entry.js.map → p-059307d0.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-ecbf2df4.system.entry.js.map → p-0997acd6.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-1e970f30.entry.js.map → p-0c73100c.entry.js.map} +0 -0
- /package/dist/twilight/{p-5e9f7537.system.entry.js.map → p-0f6f5c5a.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-f8f4ba08.system.entry.js.map → p-1d9751af.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-5fcbc55c.entry.js.map → p-1fec50ba.entry.js.map} +0 -0
- /package/dist/twilight/{p-d67ffc4d.system.entry.js.map → p-2378fcc3.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-2dca93d6.entry.js.map → p-2406c822.entry.js.map} +0 -0
- /package/dist/twilight/{p-269f2b76.entry.js.map → p-27b836fc.entry.js.map} +0 -0
- /package/dist/twilight/{p-59d8de3f.system.entry.js.map → p-27fa775d.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-aae661d5.system.entry.js.map → p-2bbb1442.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-d7d88ebf.system.entry.js.map → p-30635b42.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-99ecd68e.system.entry.js.map → p-38dbabf3.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-776ab2c0.entry.js.map → p-3f87edc6.entry.js.map} +0 -0
- /package/dist/twilight/{p-a4949ca4.entry.js.map → p-3fcf491f.entry.js.map} +0 -0
- /package/dist/twilight/{p-80b67c04.entry.js.map → p-4260bfbf.entry.js.map} +0 -0
- /package/dist/twilight/{p-f74cdaa4.system.entry.js.map → p-4aec7d12.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-a6f508c5.entry.js.map → p-4defb732.entry.js.map} +0 -0
- /package/dist/twilight/{p-235c600c.entry.js.map → p-50348764.entry.js.map} +0 -0
- /package/dist/twilight/{p-b6bd1877.system.entry.js.map → p-5092bc1b.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-9b451df1.system.entry.js.map → p-52d9262a.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-1c9bdf4f.system.entry.js.map → p-568ca254.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-cefce16f.system.entry.js.map → p-592ab962.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-52986763.system.entry.js.map → p-5bcba29f.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-0f6bbb00.entry.js.map → p-5cdc0973.entry.js.map} +0 -0
- /package/dist/twilight/{p-a1c2c2f9.entry.js.map → p-606c8dfc.entry.js.map} +0 -0
- /package/dist/twilight/{p-5a8b3581.system.entry.js.map → p-63f7bf97.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-6426d0a3.entry.js.map → p-6831d2b2.entry.js.map} +0 -0
- /package/dist/twilight/{p-2153371d.entry.js.map → p-6ccab36e.entry.js.map} +0 -0
- /package/dist/twilight/{p-991c9092.system.entry.js.map → p-727b5970.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-e3cf72ab.entry.js.map → p-7425415e.entry.js.map} +0 -0
- /package/dist/twilight/{p-5ba6eb96.entry.js.map → p-74922500.entry.js.map} +0 -0
- /package/dist/twilight/{p-7560ff17.entry.js.map → p-7e2380cb.entry.js.map} +0 -0
- /package/dist/twilight/{p-2db921e5.entry.js.map → p-7f275c07.entry.js.map} +0 -0
- /package/dist/twilight/{p-00d84fef.entry.js.map → p-817c183a.entry.js.map} +0 -0
- /package/dist/twilight/{p-1b02a56b.system.entry.js.map → p-83ec57bf.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-16026fd5.entry.js.map → p-87ed46f2.entry.js.map} +0 -0
- /package/dist/twilight/{p-98f4a14e.entry.js.map → p-89b36aa5.entry.js.map} +0 -0
- /package/dist/twilight/{p-900da687.system.entry.js.map → p-8aebf618.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-5ecdde13.entry.js.map → p-8fee4078.entry.js.map} +0 -0
- /package/dist/twilight/{p-cb38b4e9.entry.js.map → p-9a610905.entry.js.map} +0 -0
- /package/dist/twilight/{p-158a6252.system.entry.js.map → p-a3867f03.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-64ab9568.system.entry.js.map → p-ab25e4b2.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-353e283e.system.entry.js.map → p-b0218d53.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-cb3b24fc.entry.js.map → p-b0b3047d.entry.js.map} +0 -0
- /package/dist/twilight/{p-88ec013d.system.entry.js.map → p-b56edfc7.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-f7a652cb.system.entry.js.map → p-b66d9649.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-18a71553.entry.js.map → p-b932035d.entry.js.map} +0 -0
- /package/dist/twilight/{p-6ffc3952.system.entry.js.map → p-bb0a64fb.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-9eaeffac.system.entry.js.map → p-bed89c3a.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-675e43a1.system.entry.js.map → p-c8833f02.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-2af4c880.system.entry.js.map → p-cd1a5066.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-a16e1cc6.system.entry.js.map → p-d39080ee.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-1d71903d.entry.js.map → p-e0039759.entry.js.map} +0 -0
- /package/dist/twilight/{p-0839a213.entry.js.map → p-e182183b.entry.js.map} +0 -0
- /package/dist/twilight/{p-814afe3f.entry.js.map → p-e38dcdec.entry.js.map} +0 -0
- /package/dist/twilight/{p-9c7bc4c1.system.entry.js.map → p-e7267b4b.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-a42853ec.entry.js.map → p-f0443b95.entry.js.map} +0 -0
- /package/dist/twilight/{p-baafec43.entry.js.map → p-f0eacf55.entry.js.map} +0 -0
- /package/dist/twilight/{p-4482b984.entry.js.map → p-fa63f709.entry.js.map} +0 -0
- /package/dist/twilight/{p-e619bbeb.entry.js.map → p-fe03bd17.entry.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import{r as s,c as t,h as i,H as e,g as a}from"./p-
|
|
5
|
-
//# sourceMappingURL=p-
|
|
4
|
+
import{r as s,c as t,h as i,H as e,g as a}from"./p-5Ng8LPjI.js";import{H as h}from"./p-DjVGZdqd.js";import{F as l}from"./p-DL4h2bc3.js";import"./p-CgtvEd63.js";const r=":host{display:block}";const n=class{constructor(i){s(this,i);this.changed=t(this,"changed");this.initHeight=195;this.isOpen=true;this.isShowMore=false;this.showMoreLabel="عرض المزيد";this.showLessLabel="عرض أقل";this.page=salla.config.get("page")}connectedCallback(){this.withLoadMore=this.option.key!="price"&&Array.isArray(this.option.values)&&this.option.values.length>8;salla.onReady((()=>{this.page=salla.config.get("page")}));salla.lang.onLoaded((()=>{this.showMoreLabel=salla.lang.getWithDefault("common.titles.more",this.showMoreLabel);this.showLessLabel=salla.lang.getWithDefault("common.elements.show_less",this.showLessLabel)}))}componentDidLoad(){this.widgetValues.scrollHeight<this.initHeight&&(this.withLoadMore=false);this.withLoadMore&&this.widgetValues&&(this.widgetValues.style.maxHeight=`${this.initHeight}px`);this.widgetContent.style.height=`${this.widgetContent.scrollHeight}px`}async setWidgetHeight(s=250){this.widgetContent.removeAttribute("style");setTimeout((()=>{let s=this.widgetContent.scrollHeight;this.widgetContent.style.height=s+"px"}),s)}async reset(){if(this.option.type===l.RANGE){this.priceRange.reset()}Array.from(this.host.querySelectorAll("input")).forEach((s=>s.checked=false))}async showMore(){this.isShowMore=!this.isShowMore;this.widgetContent.style.height="auto";this.widgetValues.style.maxHeight=this.isShowMore?`${this.widgetValues.scrollHeight}px`:`${this.initHeight}px`;setTimeout((()=>{this.widgetContent.style.height=`${this.widgetContent.scrollHeight}px`}),400)}async toggleWidget(){this.isOpen=!this.isOpen;h.toggleElementClassIf(this.widgetContent,"s-filters-widget-opened","s-filters-widget-closed",(()=>this.isOpen))}renderFilterOption(s){if(![l.VALUES,l.MINIMUM,l.VARIANTS].includes(s.type)){return""}return s.values.map(((t,e)=>{let a=typeof t=="number"?t:t.key||t.value;return i("label",{class:"s-filters-label",htmlFor:`${s.key}-option-${a}`,key:`${s.key}-option-${a}`},i("input",{id:`${s.key}-option-${a}`,name:s.key,type:"radio",checked:this.isSelectedOption(s,a),class:`s-filters-radio`,onChange:t=>this.changed.emit({event:t,option:s,value:a})}),this.getOptionLabel(s,t))}))}isSelectedOption(s,t){if(s.type===l.MINIMUM){return this.filtersData[s.key]==t}if(s.type===l.VARIANTS){return this.filtersData[s.type]&&this.filtersData[s.type][Object.keys(this.filtersData[s.type])[0]]==t}if(s.type===l.RANGE){return this.filtersData[s.key]&&this.filtersData[s.key].min==t.min&&this.filtersData[s.key].max==t.max}if(s.type===l.VALUES){return this.filtersData[s.key]&&Number(this.filtersData[s.key])==Number(t)}return false}getOptionLabel(s,t){if(s.key=="rating"){return i("salla-rating-stars",{size:"small",value:t})}let e=t.value||"null";return i("span",{class:"s-filters-option-name"},e)}render(){return i(e,{key:"d6f2078b058a8244a95a78e879886f3b04e0e1c0",class:"s-filters-widget-container"},i("h3",{key:"40ff9f985604de49752b38c0fc66611cd1811857",class:"s-filters-widget-title",onClick:()=>this.toggleWidget()},i("span",{key:"06847af2f3f089afb3223e4ce4c56bfa1cb195d5"},this.option.label),i("span",{key:"8ecf9c638f7ad163cda5f7235ecac66661cf8e68",class:`s-filters-widget-plusminus ${this.isOpen?"s-filters-widget-plusminus-active":""}`})),i("div",{key:"15c98c71532ec2bf1f43f3e9bcc1d964a0f3d88d",class:"s-filters-widget-content",ref:s=>this.widgetContent=s},i("div",{key:"f1221b0ce096e1fda0044776bfdba952a990230c",class:"s-filters-widget-values",ref:s=>this.widgetValues=s},i("slot",{key:"1612242828f38a9c086d2a7887174bcdde05618b"}),this.option.type!==l.RANGE?this.renderFilterOption(this.option):i("salla-price-range",{onChanged:s=>{this.changed.emit(s.detail)},ref:s=>this.priceRange=s,filtersData:this.filtersData,option:this.option})),this.withLoadMore&&i("a",{key:"5726822a429c26ee9ddadaf7351e8d32a3a98695",class:"s-filters-widget-more",onClick:()=>this.showMore()},!this.isShowMore?this.showMoreLabel:this.showLessLabel)))}get host(){return a(this)}};n.style=r;export{n as salla_filters_widget};
|
|
5
|
+
//# sourceMappingURL=p-b932035d.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-CW47XnO5.system.js"],(function(t){"use strict";var s,n,a,i;return{setters:[function(t){s=t.r;n=t.h;a=t.H;i=t.g}],execute:function(){var r=":host{display:block}";var e=t("salla_apps_icons",function(){function t(t){var n=this;s(this,t);var a;this.apps=salla.config.get("store.apps");this.appSlot=((a=this.host.querySelector('[slot="app"]'))===null||a===void 0?void 0:a.innerHTML)||"<img alt={name} src={icon} />";salla.onReady((function(){n.apps=salla.config.get("store.apps")}));salla.lang.onLoaded((function(){n.appsTitle=salla.lang.get("blocks.footer.download_apps")}))}t.prototype.getAppsArray=function(){return Object.entries(this.apps).map((function(t){var s=t[0],n=t[1];return{name:s,value:n}}))};t.prototype.componentWillLoad=function(){return new Promise((function(t){return salla.onReady(t)}))};t.prototype.render=function(){var t=this;var s=this.getAppsArray();if(Array.isArray(s)&&!s.length){return}return n(a,{class:"s-apps-icons"},!this.hideTitle&&n("h3",null,this.appsTitle),n("div",{class:{"s-apps-icons-list":true,vertical:this.vertical}},s.map((function(s,a){return n("a",{key:a,href:s.value,rel:"noreferrer",target:"_blank",class:"s-apps-icons-item",id:"app-slot",innerHTML:t.appSlot.replace(/\{icon\}/g,salla.url.cdn("images/".concat(s.name,".png"))).replace(/\{name\}/g,s.name)})}))))};t.prototype.componentDidRender=function(){var t;(t=this.host.querySelector('[slot="app"]'))===null||t===void 0?void 0:t.remove()};Object.defineProperty(t.prototype,"host",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());e.style=r}}}));
|
|
5
|
+
//# sourceMappingURL=p-bb0a64fb.system.entry.js.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,n,r,i){function e(t){return t instanceof r?t:new r((function(n){n(t)}))}return new(r||(r=Promise))((function(r,a){function s(t){try{u(i.next(t))}catch(t){a(t)}}function o(t){try{u(i["throw"](t))}catch(t){a(t)}}function u(t){t.done?r(t.value):e(t.value).then(s,o)}u((i=i.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,e,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(n){return u([t,n])}}function u(o){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(r=0)),r)try{if(i=1,e&&(a=o[0]&2?e["return"]:o[0]?e["throw"]||((a=e["return"])&&a.call(e),0):e.next)&&!(a=a.call(e,o[1])).done)return a;if(e=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;e=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(o[0]===6&&r.label<a[1]){r.label=a[1];a=o;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(o);break}if(a[2])r.ops.pop();r.trys.pop();continue}o=n.call(t,r)}catch(t){o=[6,t];e=0}finally{i=a=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-CW47XnO5.system.js","./p-Bnro4LR3.system.js","./p-C-c0Msup.system.js","./p-CLqFzsVe.system.js"],(function(t){"use strict";var n,r,i,e,a,s,o;return{setters:[function(t){n=t.r;r=t.c;i=t.h;e=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 i=this;n(this,t);this.changed=r(this,"changed");this.isReady=false;this.filtersData={};salla.event.on("filters::hidden",(function(){return i.host.style.display="none"}));salla.lang.onLoaded((function(){i.apply=salla.lang.get("pages.checkout.apply");i.reset=salla.lang.get("pages.categories.filters_reset")}));salla.event.on("filters::fetched",(function(t){var n=t.filters;i.host.style.display="";var r={};i.filters=n.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 n=t.values,e=n.max,a=n.min;t.values=[5,4,3,2,1].filter((function(t){return t>=a||t<=e}))}if(i.filtersData.variants&&t.type==s.VARIANTS){r.variants=i.filtersData.variants}if(i.filtersData[t.key]&&t.type!==s.VARIANTS){r[t.key]=i.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(r).length==0&&!u){var h=window.location.href;var d=salla.config.get("page.id");var v=h.indexOf("?")!==-1?"&":"?";var w=h+v+"filters[category_id]="+d;r.category_id=d;window.history.pushState({path:w},"",w)}return t}));i.filtersData=r;i.host.childNodes.forEach((function(t){return __awaiter(i,void 0,void 0,(function(){var n;return __generator(this,(function(r){switch(r.label){case 0:n=t.setWidgetHeight;if(!n)return[3,2];return[4,t.setWidgetHeight()];case 1:n=r.sent();r.label=2;case 2:return[2,n]}}))}))}))}))}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,n,r;return __generator(this,(function(i){switch(i.label){case 0:i.trys.push([0,2,,3]);t=new URLSearchParams(window.location.search);n=this;return[4,o.extractFiltersFromUrl(t)];case 1:n.filtersData=i.sent();return[3,3];case 2:r=i.sent();console.warn("failed to get filters from URL",r.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 n=this;return __generator(this,(function(r){if(!this.isReady){return[2]}t=Object.keys(this.filtersData).length>0;setTimeout((function(){var r;if(t){var i=new URL(window.location.href);for(var e=0,a=i.searchParams.entries();e<a.length;e++){var s=a[e][0];if(s.startsWith("filters")){i.searchParams.delete(s)}}var o=n.encodeFilters(n.filtersData);var u=i.search.split("&").filter((function(t){return!t.includes("filters")})).join("&");if(u){i.search=i.search.split("&filters")[0]+"&"+o}else{i.search="?".concat(o)}window.history.pushState({},"",i.href)}else{var i=new URL(window.location.href);(r=i.searchParams)===null||r===void 0?void 0:r.delete("filters");window.history.pushState({},"",i.toString())}salla.event.emit("salla-filters::changed",n.filtersData);n.changed.emit(n.filtersData)}),300);return[2]}))}))};t.prototype.encodeFilters=function(t,n){if(n===void 0){n="filters"}var r=[];for(var i in t){if(Object.prototype.hasOwnProperty.call(t,i)){var e=t[i];var a=n?"".concat(n,"[").concat(i,"]"):i;if(Array.isArray(e)){for(var s=0;s<e.length;s++){r.push("".concat(a,"[").concat(s,"]=").concat(e[s]))}}else if(typeof e==="object"&&e!==null){r.push(this.encodeFilters(e,a))}else{var o="".concat(a,"=").concat(e);r.push(o)}}}return r.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 n=Array.from(t.keys()).filter((function(t){return!t.startsWith("filters[")})).map((function(n){return"".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(t.get(n)))})).join("&");var r=n?"".concat(window.location.pathname,"?").concat(n):window.location.pathname;window.history.pushState({},"",r)};t.prototype.handleOptionChange=function(t,n,r){if(n.type===s.RANGE){this.filtersData[n.key]=r}var i=t.target.checked;if(n.type===s.VARIANTS){this.filtersData.variants=this.filtersData.variants||{};i&&(this.filtersData.variants[n.key]=r);i||delete this.filtersData.variants[n.key]}else if(t.target.type=="radio"){i&&(this.filtersData[n.key]=r);i||delete this.filtersData[n.key]}else if(t.target.type=="checkbox"){this.filtersData[n.key]=this.filtersData[n.key]||[];if(i){this.filtersData[n.key].push(r)}this.filtersData[n.key]=this.filtersData[n.key].filter((function(t){return t!=r}))}this.applyFilters()};t.prototype.render=function(){var t=this;var n,r;return i(e,{key:"d62d9a867f140a911cb5da11a1034511fd230745"},(n=this.filters)===null||n===void 0?void 0:n.map((function(n){return i("salla-filters-widget",{option:n,filtersData:t.filtersData,onChanged:function(n){var r=n.detail,i=r.event,e=r.option,a=r.value;t.handleOptionChange(i,e,a)}})})),((r=this.filters)===null||r===void 0?void 0:r.length)?i("div",{class:"s-filters-footer"},i("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-bed89c3a.system.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-CW47XnO5.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:"6358d81e74e1fd966b7046deab946f33391b2fc6",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-c8833f02.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-CW47XnO5.system.js"],(function(t){"use strict";var e,i,s,a;return{setters:[function(t){e=t.r;i=t.h;s=t.H;a=t.g}],execute:function(){var n="";var c=t("salla_accordion",function(){function t(t){e(this,t);this.collapsible=true;this.collapsed=true;this.dir=document.dir||"rtl"}t.prototype.directionChangedHandler=function(t){this.dir=t.detail.dir};t.prototype.handleCollapse=function(t){this.collapsed=t.detail.payload.collapsed};t.prototype.setcollapsibleProp=function(){var t=this.host.querySelector("salla-accordion-head");if(this.collapsible&&t){t.setAttribute("collapsible","true");t.setAttribute("collapsed",this.collapsed.toString())}};t.prototype.componentDidRender=function(){this.setcollapsibleProp();var t=this.host.querySelector("salla-accordion-body");if(this.collapsible){this.host.setAttribute("data-collapsed",this.collapsed.toString());t===null||t===void 0?void 0:t.setAttribute("data-collapsed",this.collapsed.toString())}};t.prototype.render=function(){return i(s,{key:"30e906d87cba59e197e71460bb24e578455f2d28",class:"s-accordion-wrapper ".concat(this.dir),"data-collapsed":this.collapsed.toString()},i("slot",{key:"8c26efc12856022567e5abe587c7537a5776285b"}))};Object.defineProperty(t.prototype,"host",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());c.style=n}}}));
|
|
5
|
+
//# sourceMappingURL=p-cd1a5066.system.entry.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(t,a,e,n){function r(t){return t instanceof e?t:new e((function(a){a(t)}))}return new(e||(e=Promise))((function(e,i){function s(t){try{o(n.next(t))}catch(t){i(t)}}function u(t){try{o(n["throw"](t))}catch(t){i(t)}}function o(t){t.done?e(t.value):r(t.value).then(s,u)}o((n=n.apply(t,a||[])).next())}))};var __generator=this&&this.__generator||function(t,a){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(t){return function(a){return o([t,a])}}function o(u){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,u[0]&&(e=0)),e)try{if(n=1,r&&(i=u[0]&2?r["return"]:u[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;if(r=0,i)u=[u[0]&2,i.value];switch(u[0]){case 0:case 1:i=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;r=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){e.label=u[1];break}if(u[0]===6&&e.label<i[1]){e.label=i[1];i=u;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(u);break}if(i[2])e.ops.pop();e.trys.pop();continue}u=a.call(t,e)}catch(t){u=[6,t];r=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* Crafted with ❤ by Salla
|
|
4
|
-
*/System.register(["./p-
|
|
5
|
-
//# sourceMappingURL=p-
|
|
4
|
+
*/System.register(["./p-CW47XnO5.system.js"],(function(t){"use strict";var a,e,n,r;return{setters:[function(t){a=t.r;e=t.h;n=t.H;r=t.g}],execute:function(){var i="";var s=t("salla_metadata",function(){function t(t){a(this,t);this.entity="product";this.specs=[];this.download=salla.lang.get("pages.thank_you.download");if(this.entityId){try{this.entityId=Array.isArray(this.entityId)?this.entityId:JSON.parse(this.entityId);return}catch(t){salla.log("Bad json passed via entityId prop")}}}t.prototype.getValue=function(t){if(t.type==="file"){return'<a href="'.concat(t.value,'" class="text-primary" target="_blank"><span class="sicon-download"></span> ').concat(this.download,"</a>")}if(t.type==="url"){return'<a href="'.concat(t.value,'" class="text-blue-700 underline" target="_blank">').concat(t.value,"</a>")}if(t.type==="date"){var a=new Date(t.value);var e=String(a.getDate()).padStart(2,"0");var n=String(a.getMonth()+1).padStart(2,"0");var r=a.getFullYear();var i="".concat(e,"/").concat(n,"/").concat(r);return i}return t.value};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,a,e;return __generator(this,(function(n){switch(n.label){case 0:return[4,salla.onReady()];case 1:n.sent();if(!((t=salla.config.get("store.features"))===null||t===void 0?void 0:t.includes("custom-fields"))){return[2,salla.logger.error("feature custom-fields is not activated")]}if(!this.entityId&&(salla.url.is_page("product.single")||salla.url.is_page("product.showNewUrls"))){this.entityId=salla.config.get("page.id")}if(!this.entityId){return[2,salla.logger.error("can't render salla-metadata without enity-id prop!")]}return[4,salla.lang.onLoaded()];case 2:n.sent();this.download=salla.lang.get("pages.thank_you.download");return[4,Salla.api.metadata.fetchValues(this.entity,this.entityId)];case 3:e=n.sent();this.specs=(a=e.data[0])===null||a===void 0?void 0:a.sections;return[2]}}))}))};t.prototype.render=function(){var t=this;if(!this.specs.length){return}return e(n,{class:"s-metadata-wrapper"},this.specs.map((function(a){return e("div",{class:"s-metadata-box"},e("div",{class:"s-metadata-box-header"},e("i",{class:"sicon-list"}),a.name),a.fields.map((function(a){return e("div",{class:"s-metadata-row"},e("p",{class:"s-metadata-row-name"},a.name),e("p",{class:"s-metadata-row-value",innerHTML:t.getValue(a)}))})))})))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());s.style=i}}}));
|
|
5
|
+
//# sourceMappingURL=p-d39080ee.system.entry.js.map
|
|
@@ -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-5Ng8LPjI.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-e0039759.entry.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import{r as a,h as t,H as s,g as e}from"./p-
|
|
5
|
-
//# sourceMappingURL=p-
|
|
4
|
+
import{r as a,h as t,H as s,g as e}from"./p-5Ng8LPjI.js";const i="";const l=class{constructor(t){a(this,t);this.entity="product";this.specs=[];this.download=salla.lang.get("pages.thank_you.download");if(this.entityId){try{this.entityId=Array.isArray(this.entityId)?this.entityId:JSON.parse(this.entityId);return}catch(a){salla.log("Bad json passed via entityId prop")}}}getValue(a){if(a.type==="file"){return`<a href="${a.value}" class="text-primary" target="_blank"><span class="sicon-download"></span> ${this.download}</a>`}if(a.type==="url"){return`<a href="${a.value}" class="text-blue-700 underline" target="_blank">${a.value}</a>`}if(a.type==="date"){const t=new Date(a.value);const s=String(t.getDate()).padStart(2,"0");const e=String(t.getMonth()+1).padStart(2,"0");const i=t.getFullYear();const l=`${s}/${e}/${i}`;return l}return a.value}async componentWillLoad(){var a,t;await salla.onReady();if(!((a=salla.config.get("store.features"))===null||a===void 0?void 0:a.includes("custom-fields"))){return salla.logger.error("feature custom-fields is not activated")}if(!this.entityId&&(salla.url.is_page("product.single")||salla.url.is_page("product.showNewUrls"))){this.entityId=salla.config.get("page.id")}if(!this.entityId){return salla.logger.error("can't render salla-metadata without enity-id prop!")}await salla.lang.onLoaded();this.download=salla.lang.get("pages.thank_you.download");const s=await Salla.api.metadata.fetchValues(this.entity,this.entityId);this.specs=(t=s.data[0])===null||t===void 0?void 0:t.sections}render(){if(!this.specs.length){return}return t(s,{class:"s-metadata-wrapper"},this.specs.map((a=>t("div",{class:"s-metadata-box"},t("div",{class:"s-metadata-box-header"},t("i",{class:"sicon-list"}),a.name),a.fields.map((a=>t("div",{class:"s-metadata-row"},t("p",{class:"s-metadata-row-name"},a.name),t("p",{class:"s-metadata-row-value",innerHTML:this.getValue(a)}))))))))}get host(){return e(this)}};l.style=i;export{l as salla_metadata};
|
|
5
|
+
//# sourceMappingURL=p-e182183b.entry.js.map
|