@salla.sa/twilight-components 2.14.172 → 2.14.174
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-Bk9IDSPX.js → app-globals-CD_BaQp-.js} +3 -3
- package/dist/cjs/{app-globals-Bk9IDSPX.js.map → app-globals-CD_BaQp-.js.map} +1 -1
- package/dist/cjs/{index-B1jJnKON.js → index-C3GqoGli.js} +4 -4
- package/dist/cjs/index-C3GqoGli.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-add-product-button_49.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-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 +38 -2
- package/dist/cjs/salla-offer.cjs.entry.js.map +1 -1
- package/dist/cjs/salla-offer.entry.cjs.js.map +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-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/collection/components/salla-offer/interfaces.js +1 -0
- package/dist/collection/components/salla-offer/interfaces.js.map +1 -1
- package/dist/collection/components/salla-offer/salla-offer.js +37 -1
- package/dist/collection/components/salla-offer/salla-offer.js.map +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/salla-offer.js +37 -1
- package/dist/components/salla-offer.js.map +1 -1
- package/dist/esm/{app-globals-BlWInTtE.js → app-globals-BBJcPpgl.js} +3 -3
- package/dist/esm/{app-globals-BlWInTtE.js.map → app-globals-BBJcPpgl.js.map} +1 -1
- package/dist/esm/{index-CayW-agT.js → index-CX0uBHuY.js} +4 -4
- package/dist/esm/index-CX0uBHuY.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-add-product-button_49.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-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 +38 -2
- package/dist/esm/salla-offer.entry.js.map +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-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-BlWInTtE.js → app-globals-BBJcPpgl.js} +2 -2
- package/dist/esm-es5/{app-globals-BlWInTtE.js.map → app-globals-BBJcPpgl.js.map} +1 -1
- package/dist/esm-es5/{index-CayW-agT.js → index-CX0uBHuY.js} +3 -3
- package/dist/{cjs/index-B1jJnKON.js.map → esm-es5/index-CX0uBHuY.js.map} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/salla-add-product-button_49.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 +2 -2
- package/dist/esm-es5/salla-filters.entry.js +1 -1
- package/dist/esm-es5/salla-installment.entry.js +1 -1
- package/dist/esm-es5/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm-es5/salla-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-offer.entry.js.map +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-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-41480e7b.entry.js → p-01758264.entry.js} +2 -2
- package/dist/twilight/{p-2a10bff2.system.entry.js → p-0e30d2ab.system.entry.js} +2 -2
- package/dist/twilight/{p-740b39fc.system.entry.js → p-1051476a.system.entry.js} +2 -2
- package/dist/twilight/p-18dbde81.entry.js +5 -0
- package/dist/twilight/{p-67fe618e.system.entry.js → p-239eb0b2.system.entry.js} +2 -2
- package/dist/twilight/{p-f5ce1227.system.entry.js → p-23a1656f.system.entry.js} +2 -2
- package/dist/twilight/{p-1696a245.system.entry.js → p-26be4656.system.entry.js} +2 -2
- package/dist/twilight/{p-d600f506.entry.js → p-2871c4ed.entry.js} +2 -2
- package/dist/twilight/{p-2d0c2877.entry.js → p-2f617403.entry.js} +2 -2
- package/dist/twilight/p-33f15762.system.entry.js +5 -0
- package/dist/twilight/p-33f15762.system.entry.js.map +1 -0
- package/dist/twilight/{p-29e96484.entry.js → p-3e4a70ae.entry.js} +2 -2
- package/dist/twilight/{p-db68e58b.system.entry.js → p-41d3c422.system.entry.js} +2 -2
- package/dist/twilight/{p-aa6a0113.entry.js → p-45bb9ebb.entry.js} +2 -2
- package/dist/twilight/{p-0649d076.entry.js → p-54aa62f6.entry.js} +2 -2
- package/dist/twilight/{p-fb9cd621.system.entry.js → p-5b225162.system.entry.js} +2 -2
- package/dist/twilight/{p-d56a7bd9.system.entry.js → p-60a339b2.system.entry.js} +2 -2
- package/dist/twilight/{p-UOO6uSKD.system.js.map → p-6Z51fW5V.system.js.map} +1 -1
- package/dist/twilight/{p-d2c834be.system.entry.js → p-705f4e7c.system.entry.js} +2 -2
- package/dist/twilight/{p-37a3c661.entry.js → p-707dc2da.entry.js} +2 -2
- package/dist/twilight/{p-c70ed29b.system.entry.js → p-718cf9c2.system.entry.js} +2 -2
- package/dist/twilight/{p-756fe45d.entry.js → p-71e5c489.entry.js} +2 -2
- package/dist/twilight/{p-8e242779.system.entry.js → p-74868f2f.system.entry.js} +2 -2
- package/dist/twilight/{p-ad02a471.system.entry.js → p-7d79f24e.system.entry.js} +2 -2
- package/dist/twilight/{p-e084e3c4.entry.js → p-7f649627.entry.js} +2 -2
- package/dist/twilight/{p-2da442c2.system.entry.js → p-85e1b079.system.entry.js} +2 -2
- package/dist/twilight/{p-69ec9ac8.system.entry.js → p-861e4acb.system.entry.js} +2 -2
- package/dist/twilight/{p-269ebd5d.entry.js → p-864db8ef.entry.js} +2 -2
- package/dist/twilight/{p-9361e7a2.entry.js → p-86862ab0.entry.js} +2 -2
- package/dist/twilight/{p-316e3ea9.entry.js → p-8de36749.entry.js} +2 -2
- package/dist/twilight/p-97b354fc.entry.js +5 -0
- package/dist/twilight/p-97b354fc.entry.js.map +1 -0
- package/dist/twilight/{p-DEOECcHf.system.js.map → p-B3d1A_no.system.js.map} +1 -1
- package/dist/twilight/{p-BuezmX1t.system.js → p-BLvmEwO6.system.js} +2 -2
- package/dist/twilight/{p-BuezmX1t.system.js.map → p-BLvmEwO6.system.js.map} +1 -1
- package/dist/twilight/{p-D4ot6EsS.system.js.map → p-BUuDJl4A.system.js.map} +1 -1
- package/dist/twilight/{p-Ccj3kuAD.system.js.map → p-BYmWNjXa.system.js.map} +1 -1
- package/dist/twilight/{p-CPIDPWPd.system.js.map → p-BYpq9P24.system.js.map} +1 -1
- package/dist/twilight/{p-Dg8Ywiaf.system.js.map → p-BbMtIVz6.system.js.map} +1 -1
- package/dist/twilight/{p-BeVJFUxX.system.js.map → p-BdwJQyF9.system.js.map} +1 -1
- package/dist/twilight/{p-W3JU15BC.system.js.map → p-BfTudTlU.system.js.map} +1 -1
- package/dist/twilight/{p-C4gOv56I.system.js.map → p-C7XOlGYs.system.js.map} +1 -1
- package/dist/twilight/{p-CECjqlBg.system.js.map → p-C7kuUNJ9.system.js.map} +1 -1
- package/dist/twilight/{p-CjXAM86c.system.js.map → p-CFQbVLkx.system.js.map} +1 -1
- package/dist/twilight/{p-CT7GoHDG.system.js.map → p-CM2_m-81.system.js.map} +1 -1
- package/dist/twilight/{p-BYBYDro2.system.js.map → p-CQiyOX1V.system.js.map} +1 -1
- package/dist/twilight/{p-hIDulQlu.system.js.map → p-CUzMCcle.system.js.map} +1 -1
- package/dist/twilight/{p-B3wutB2s.system.js.map → p-CVmHibBr.system.js.map} +1 -1
- package/dist/twilight/{p-CayW-agT.js → p-CX0uBHuY.js} +3 -3
- package/dist/twilight/p-CX0uBHuY.js.map +1 -0
- package/dist/twilight/{p-FxRE-bWf.system.js → p-CtSOOlDj.system.js} +2 -2
- package/dist/twilight/{p-FxRE-bWf.system.js.map → p-CtSOOlDj.system.js.map} +1 -1
- package/dist/twilight/{p-CmumtzEL.system.js → p-Cu2Id4O_.system.js} +5 -5
- package/dist/twilight/p-Cu2Id4O_.system.js.map +1 -0
- package/dist/twilight/{p-DraNKP6B.system.js.map → p-D-XXtzuS.system.js.map} +1 -1
- package/dist/twilight/{p-PnQHllOh.js → p-D0mJZ4Ks.js} +2 -2
- package/dist/twilight/{p-PnQHllOh.js.map → p-D0mJZ4Ks.js.map} +1 -1
- package/dist/twilight/{p-C7B9pjwv.system.js.map → p-DJYJQNBM.system.js.map} +1 -1
- package/dist/twilight/{p-DzJCsxNk.system.js.map → p-DWXoZRgY.system.js.map} +1 -1
- package/dist/twilight/p-DZNDJNsm.system.js.map +1 -0
- package/dist/twilight/{p-C2OoabIm.system.js.map → p-Dgv9KloL.system.js.map} +1 -1
- package/dist/twilight/{p-CT4XUl4u.system.js.map → p-DoDgrbUh.system.js.map} +1 -1
- package/dist/twilight/{p-y427D1HL.system.js.map → p-DqYY_MOh.system.js.map} +1 -1
- package/dist/twilight/{p-BmwlZkRw.system.js.map → p-DyVcaWJ1.system.js.map} +1 -1
- package/dist/twilight/{p-CCr4sv_K.system.js.map → p-F3zRr1u-.system.js.map} +1 -1
- package/dist/twilight/{p-CeyDIaJF.system.js.map → p-M6Ed3i_n.system.js.map} +1 -1
- package/dist/twilight/{p-Dmm2RXZq.system.js.map → p-Y_liGs3J.system.js.map} +1 -1
- package/dist/twilight/{p-54bd7e18.system.entry.js → p-a040ce17.system.entry.js} +2 -2
- package/dist/twilight/{p-b63bc4db.entry.js → p-a3c65a59.entry.js} +2 -2
- package/dist/twilight/{p-9ca8c6b6.entry.js → p-a48d4e48.entry.js} +2 -2
- package/dist/twilight/{p-611b6013.system.entry.js → p-a6704180.system.entry.js} +2 -2
- package/dist/twilight/{p-679bb855.system.entry.js → p-a7cd65cc.system.entry.js} +2 -2
- package/dist/twilight/{p-e061a1f5.system.entry.js → p-ad901f4c.system.entry.js} +2 -2
- package/dist/twilight/{p-41ecc4f7.entry.js → p-afa167be.entry.js} +2 -2
- package/dist/twilight/{p-20bdcd53.entry.js → p-afc6a140.entry.js} +2 -2
- package/dist/twilight/{p-1dd178a2.entry.js → p-b1590e9b.entry.js} +2 -2
- package/dist/twilight/{p-19f533ec.entry.js → p-b29d7c75.entry.js} +2 -2
- package/dist/twilight/{p-9d750b3d.system.entry.js → p-c228b2aa.system.entry.js} +2 -2
- package/dist/twilight/{p-8c9ae8bd.entry.js → p-c36b58cf.entry.js} +2 -2
- package/dist/twilight/{p-3093ea8e.system.entry.js → p-c6f235c7.system.entry.js} +2 -2
- package/dist/twilight/{p-cdc147d2.system.entry.js → p-c7a36a2f.system.entry.js} +2 -2
- package/dist/twilight/{p-fdd3788a.entry.js → p-c991e7a9.entry.js} +2 -2
- package/dist/twilight/{p-a78387e7.system.entry.js → p-cbf5d10b.system.entry.js} +2 -2
- package/dist/twilight/{p-51195e76.entry.js → p-d1169fdb.entry.js} +2 -2
- package/dist/twilight/{p-b72f268b.entry.js → p-d2fd1396.entry.js} +2 -2
- package/dist/twilight/{p-e9ca7e7c.entry.js → p-d4d9b899.entry.js} +2 -2
- package/dist/twilight/{p-86dd7e02.system.entry.js → p-d5c8db3c.system.entry.js} +2 -2
- package/dist/twilight/{p-33963e7d.entry.js → p-d7dc410a.entry.js} +2 -2
- package/dist/twilight/{p-7ddf00a9.system.entry.js → p-e250a54f.system.entry.js} +2 -2
- package/dist/twilight/{p-d14e40fe.system.entry.js → p-ec4917ea.system.entry.js} +2 -2
- package/dist/twilight/{p-247636ef.entry.js → p-ee3d9cfa.entry.js} +2 -2
- package/dist/twilight/{p-ee97bc7b.system.entry.js → p-ee99372c.system.entry.js} +2 -2
- package/dist/twilight/{p-44a213de.system.entry.js → p-f7509c22.system.entry.js} +2 -2
- package/dist/twilight/{p-952a8078.entry.js → p-fdd7c18c.entry.js} +2 -2
- package/dist/twilight/{p-Bxsqm2ye.system.js.map → p-yDI_0zwM.system.js.map} +1 -1
- package/dist/twilight/{p-BuxFmGAL.system.js.map → p-zeGtPtUH.system.js.map} +1 -1
- package/dist/twilight/{p-DUKloBXK.system.js.map → p-zsSwLdpB.system.js.map} +1 -1
- package/dist/twilight/salla-offer.entry.esm.js.map +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/twilight/twilight.js +1 -1
- package/dist/types/components/salla-offer/interfaces.d.ts +13 -2
- package/dist/types/components/salla-offer/salla-offer.d.ts +1 -0
- package/package.json +5 -5
- package/dist/esm/index-CayW-agT.js.map +0 -1
- package/dist/esm-es5/index-CayW-agT.js.map +0 -1
- package/dist/twilight/p-4ced9aab.entry.js +0 -5
- package/dist/twilight/p-4fb112e6.system.entry.js +0 -5
- package/dist/twilight/p-4fb112e6.system.entry.js.map +0 -1
- package/dist/twilight/p-CayW-agT.js.map +0 -1
- package/dist/twilight/p-CmumtzEL.system.js.map +0 -1
- package/dist/twilight/p-d0912efd.entry.js +0 -5
- package/dist/twilight/p-d0912efd.entry.js.map +0 -1
- package/dist/twilight/p-qziIzWVk.system.js.map +0 -1
- /package/dist/twilight/{p-41480e7b.entry.js.map → p-01758264.entry.js.map} +0 -0
- /package/dist/twilight/{p-2a10bff2.system.entry.js.map → p-0e30d2ab.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-740b39fc.system.entry.js.map → p-1051476a.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-4ced9aab.entry.js.map → p-18dbde81.entry.js.map} +0 -0
- /package/dist/twilight/{p-67fe618e.system.entry.js.map → p-239eb0b2.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-f5ce1227.system.entry.js.map → p-23a1656f.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-1696a245.system.entry.js.map → p-26be4656.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-d600f506.entry.js.map → p-2871c4ed.entry.js.map} +0 -0
- /package/dist/twilight/{p-2d0c2877.entry.js.map → p-2f617403.entry.js.map} +0 -0
- /package/dist/twilight/{p-29e96484.entry.js.map → p-3e4a70ae.entry.js.map} +0 -0
- /package/dist/twilight/{p-db68e58b.system.entry.js.map → p-41d3c422.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-aa6a0113.entry.js.map → p-45bb9ebb.entry.js.map} +0 -0
- /package/dist/twilight/{p-0649d076.entry.js.map → p-54aa62f6.entry.js.map} +0 -0
- /package/dist/twilight/{p-fb9cd621.system.entry.js.map → p-5b225162.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-d56a7bd9.system.entry.js.map → p-60a339b2.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-d2c834be.system.entry.js.map → p-705f4e7c.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-37a3c661.entry.js.map → p-707dc2da.entry.js.map} +0 -0
- /package/dist/twilight/{p-c70ed29b.system.entry.js.map → p-718cf9c2.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-756fe45d.entry.js.map → p-71e5c489.entry.js.map} +0 -0
- /package/dist/twilight/{p-8e242779.system.entry.js.map → p-74868f2f.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-ad02a471.system.entry.js.map → p-7d79f24e.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-e084e3c4.entry.js.map → p-7f649627.entry.js.map} +0 -0
- /package/dist/twilight/{p-2da442c2.system.entry.js.map → p-85e1b079.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-69ec9ac8.system.entry.js.map → p-861e4acb.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-269ebd5d.entry.js.map → p-864db8ef.entry.js.map} +0 -0
- /package/dist/twilight/{p-9361e7a2.entry.js.map → p-86862ab0.entry.js.map} +0 -0
- /package/dist/twilight/{p-316e3ea9.entry.js.map → p-8de36749.entry.js.map} +0 -0
- /package/dist/twilight/{p-54bd7e18.system.entry.js.map → p-a040ce17.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-b63bc4db.entry.js.map → p-a3c65a59.entry.js.map} +0 -0
- /package/dist/twilight/{p-9ca8c6b6.entry.js.map → p-a48d4e48.entry.js.map} +0 -0
- /package/dist/twilight/{p-611b6013.system.entry.js.map → p-a6704180.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-679bb855.system.entry.js.map → p-a7cd65cc.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-e061a1f5.system.entry.js.map → p-ad901f4c.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-41ecc4f7.entry.js.map → p-afa167be.entry.js.map} +0 -0
- /package/dist/twilight/{p-20bdcd53.entry.js.map → p-afc6a140.entry.js.map} +0 -0
- /package/dist/twilight/{p-1dd178a2.entry.js.map → p-b1590e9b.entry.js.map} +0 -0
- /package/dist/twilight/{p-19f533ec.entry.js.map → p-b29d7c75.entry.js.map} +0 -0
- /package/dist/twilight/{p-9d750b3d.system.entry.js.map → p-c228b2aa.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-8c9ae8bd.entry.js.map → p-c36b58cf.entry.js.map} +0 -0
- /package/dist/twilight/{p-3093ea8e.system.entry.js.map → p-c6f235c7.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-cdc147d2.system.entry.js.map → p-c7a36a2f.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-fdd3788a.entry.js.map → p-c991e7a9.entry.js.map} +0 -0
- /package/dist/twilight/{p-a78387e7.system.entry.js.map → p-cbf5d10b.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-51195e76.entry.js.map → p-d1169fdb.entry.js.map} +0 -0
- /package/dist/twilight/{p-b72f268b.entry.js.map → p-d2fd1396.entry.js.map} +0 -0
- /package/dist/twilight/{p-e9ca7e7c.entry.js.map → p-d4d9b899.entry.js.map} +0 -0
- /package/dist/twilight/{p-86dd7e02.system.entry.js.map → p-d5c8db3c.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-33963e7d.entry.js.map → p-d7dc410a.entry.js.map} +0 -0
- /package/dist/twilight/{p-7ddf00a9.system.entry.js.map → p-e250a54f.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-d14e40fe.system.entry.js.map → p-ec4917ea.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-247636ef.entry.js.map → p-ee3d9cfa.entry.js.map} +0 -0
- /package/dist/twilight/{p-ee97bc7b.system.entry.js.map → p-ee99372c.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-44a213de.system.entry.js.map → p-f7509c22.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-952a8078.entry.js.map → p-fdd7c18c.entry.js.map} +0 -0
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,c as t,h as a,H as i}from"./p-CayW-agT.js";const s="salla-loyalty-prize-item:hover{-webkit-box-shadow:0 5px 15px 1px rgba(0, 0, 0, 0.04) !important;box-shadow:0 5px 15px 1px rgba(0, 0, 0, 0.04) !important}";const c=class{constructor(a){e(this,a);this.prizeItemSelected=t(this,"prizeItemSelected")}onPrizeItemClick(){this.prizeItemSelected.emit(this.item)}render(){return a(i,{key:"5434064e3e54117f4df4e16282f70e81503d7489"},a("div",{key:"28b5a19dcd1f239a74d69e91a1cda66ae7521e8e",onClick:this.onPrizeItemClick.bind(this)},a("img",{key:"82917e0074006f4e462b2328405714a31d168c17",class:"s-loyalty-prize-item-image",src:this.item.image,alt:this.item.name}),a("div",{key:"089ac134ed2a0474067c79cd590154ca85a380c9",class:"s-loyalty-prize-item-title"},this.item.name),a("div",{key:"85d245c32c42701274fa29761c4345020532eac1",class:"s-loyalty-prize-item-subtitle"},this.item.description),a("div",{key:"5f37781c8c77998a0bb586ddcda4640741db0b6e",class:"s-loyalty-prize-item-points"},this.item.cost_points," Points")))}};c.style=s;export{c as salla_loyalty_prize_item};
|
|
5
|
-
//# sourceMappingURL=p-4ced9aab.entry.js.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,r,s){function n(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,a){function i(e){try{l(s.next(e))}catch(e){a(e)}}function o(e){try{l(s["throw"](e))}catch(e){a(e)}}function l(e){e.done?r(e.value):n(e.value).then(i,o)}l((s=s.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},s,n,a,i;return i={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function o(e){return function(t){return l([e,t])}}function l(o){if(s)throw new TypeError("Generator is already executing.");while(i&&(i=0,o[0]&&(r=0)),r)try{if(s=1,n&&(a=o[0]&2?n["return"]:o[0]?n["throw"]||((a=n["return"])&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;if(n=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++;n=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=t.call(e,r)}catch(e){o=[6,e];n=0}finally{s=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-CmumtzEL.system.js"],(function(e){"use strict";var t,r,s;return{setters:[function(e){t=e.r;r=e.h;s=e.g}],execute:function(){var n;(function(e){e["ProductDetail"]="product.single";e["Cart"]="cart"})(n||(n={}));var a;(function(e){e["Conditional"]="conditional";e["PercentageOrFixed"]="fixed";e["DiscountsTable"]="discounts_table";e["Bank"]="bank";e["BuyXGetY"]="buy_x_get_y"})(a||(a={}));var i='.s-offer-wrapper .s-slider-block__title h2{font-size:1.125rem;line-height:1.75rem;color:#f87171}.s-offer-wrapper .s-slider-block__title h2::before{font-family:"sallaicons";content:"\\ee30" !important;position:absolute;top:1rem;font-size:3rem;font-weight:400;line-height:1;color:#fef2f2}.s-offer-bank-wrapper-sinlge-item{display:-ms-flexbox;display:flex;-ms-flex-align:center !important;align-items:center !important;gap:14px}.s-offer-bank-wrapper{display:-ms-flexbox !important;display:flex !important;width:100% !important}';var o=e("salla_offer",function(){function e(e){var r=this;t(this,e);var s;this.productCardComponent="custom-salla-product-card";this.offersList=[];this.isMultipleBank=false;this.isBankOffer=false;this.canRender=false;this.showOffer=salla.config.get("store.settings.product.show_special_offers");this.offer_with_price_text=salla.lang.get("pages.offer.with_price",{price:""});this.with_discount_text=salla.lang.get("pages.products.with_a_discount");this.product_discount_text=salla.lang.get("pages.products.discount");this.special_offer_text=salla.lang.get("pages.products.special_offer");this.multipleBankOfferTitleText=salla.lang.get("pages.offer.multiple_bank_offers_title");this.multipleBankOfferTitleDescription=salla.lang.get("pages.offer.multiple_bank_offers_message");this.buy_quantity_text=function(e){return salla.lang.get("pages.offer.buy_quantity",{quantity:e})};salla.lang.onLoaded((function(){r.offer_with_price_text=salla.lang.get("pages.offer.with_price");r.with_discount_text=salla.lang.get("pages.products.with_a_discount");r.product_discount_text=salla.lang.get("pages.products.discount");r.special_offer_text=salla.lang.get("pages.products.special_offer");r.multipleBankOfferTitleText=salla.lang.get("pages.offer.multiple_bank_offers_title");r.multipleBankOfferTitleDescription=salla.lang.get("pages.offer.multiple_bank_offers_message");r.buy_quantity_text(0)}));salla.onReady((function(){r.currentPage=salla.config.get("page.slug");r.userCurrency=salla.config.get("currencies")[salla.config.get("user.currency_code")].symbol}));this.categorySlot=((s=this.host.querySelector('[slot="category"]'))===null||s===void 0?void 0:s.innerHTML)||'<a href={url} class="s-offer-slide-cat-entry"><i class={icon}></i><h4>{name}</h4></a>'}e.prototype.getEndpointByPageName=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!(this.currentPage==n.Cart))return[3,2];return[4,Salla.cart.getCurrentCartId()];case 1:e=t.sent();return[2,"offers/cart/".concat(e)];case 2:if(this.currentPage==n.ProductDetail){return[2,"offers/product/".concat(salla.config.get("page.id"))]}return[2,"offers"]}}))}))};e.prototype.componentWillLoad=function(){var e=this;this.hasCustomComponent=!!customElements.get(this.productCardComponent);return new Promise((function(e){return salla.onReady(e)})).then((function(){e.showOffer=!salla.url.is_page("product.single")||salla.config.get("store.settings.product.show_special_offers");if(e.showOffer){return}throw new Error("Merchant disabled showing the offers on product page")})).then((function(){return __awaiter(e,void 0,void 0,(function(){var e,t;return __generator(this,(function(r){switch(r.label){case 0:t=(e=salla.api).request;return[4,this.getEndpointByPageName()];case 1:return[2,t.apply(e,[r.sent()])]}}))}))})).then((function(t){if(!(e.offersList=t.data).length){throw new Error("salla-offers:: There is no offers!")}var r=e.offersList.find((function(e){return[a.Bank,a.BuyXGetY,a.DiscountsTable].includes(e.type)}));if(!r){throw new Error("salla-offers:: Offer type not supported yet!")}if(r.type===a.DiscountsTable){return e.offersList=[r]}if(e.isBankOffer=r.type===a.Bank){e.offersList=e.offersList.filter((function(e){return e.type===a.Bank}));e.isMultipleBank=e.offersList.length>1;return e.offersList}var s=r.details.get;return s.source==="products"?salla.product.api.fetch({source:"selected",source_value:s.source_value}).then((function(t){s.products=t.data;r.details.get=s;return e.offersList=[r]})):salla.product.api.categories().then((function(t){s.categories=e.findCategories(t.data,s.source_value);r.details.get=s;return e.offersList=[r]}))})).then((function(t){salla.storage.set(e.getStorageKey(),{offers:t,stored_at:(new Date).getTime()});e.canRender=true})).catch((function(e){salla.logger.warn(e)}))};e.prototype.componentDidLoad=function(){var e=this.host.querySelector(".s-slider-block__title-nav");e===null||e===void 0?void 0:e.classList.add("s-offer-bank-payment-nav")};e.prototype.findCategories=function(e,t){var r;var s=[];for(var n=0,a=e;n<a.length;n++){var i=a[n];if(t.includes(i.id_||i.id)){s.push(i)}if(((r=i.sub_categories)===null||r===void 0?void 0:r.length)>0){s=s.concat(this.findCategories(i.sub_categories,t))}}return s};e.prototype.getStorageKey=function(){try{var e=salla.config.get("page.slug").replace(".","_");var t=salla.lang.getLocale();var r=salla.config.currency().code;if(!e||!t||!r){throw new Error("Unable to get the storage key.")}return"s-offers-".concat(e,"-").concat(salla.config.get("page.id"),"-").concat(t,"-").concat(r)}catch(e){return""}};e.prototype.getOffersFromStorage=function(){var e=salla.storage.get(this.getStorageKey());if(!e||e.stored_at<(new Date).getTime()-10*60*1e3){salla.storage.remove(this.getStorageKey());return null}this.canRender=true;return Promise.resolve(e.offers)};e.prototype.render=function(){if(!this.offersList.length||!this.canRender||!this.showOffer)return null;var e=this.offersList[0];var t=this.isBankOffer?this.isMultipleBank?this.multipleBankOfferTitleText:null:e.title;var s=this.isBankOffer?this.isMultipleBank?this.multipleBankOfferTitleDescription:null:e.description;var n={"block-title":t,"block-subTitle":s,"show-controls":this.isMultipleBank};return r("div",{class:"s-offer-wrapper"},r("p",{class:"s-offer-corner-badge"},this.special_offer_text),r("salla-slider",Object.assign({type:"carousel",id:"offer-slider"},n),r("div",{slot:"items"},this.renderSectionForOfferType(e.type))))};e.prototype.renderSectionForOfferType=function(e){if(this.isBankOffer){return this.renderBankSection()}if(e==a.BuyXGetY){return this.renderBuyXGetYSection()}return this.renderDiscountTableSection()};e.prototype.getCategoriesSection=function(e){return r("div",{class:"s-offer-slide-one-sixth swiper-slide",innerHTML:this.categorySlot.replace(/\{url\}/g,e.url).replace(/\{icon\}/g,e.icon||"sicon-store").replace(/\{name\}/g,e.name)})};e.prototype.renderBuyXGetYSection=function(){var e=this;var t,s;var n=this.offersList[0].details;return[(t=n.get.products)===null||t===void 0?void 0:t.map((function(t){return r("div",{class:"s-offer-slide-one-fourth"},e.hasCustomComponent?r(e.productCardComponent,{product:t}):r("salla-product-card",{"shadow-on-hover":true,product:t}))})),(s=n.get.categories)===null||s===void 0?void 0:s.map((function(t){return e.getCategoriesSection(t)}))]};e.prototype.renderBankSection=function(){var e=this;return this.offersList.map((function(t){return r("div",{class:{"s-offer-slide-one-sixth":e.isMultipleBank,"s-offer-bank-wrapper-sinlge-item":!e.isMultipleBank}},r("div",{class:{"s-offer-bank-wrapper":true,"s-offer-slide-one-sixth":!e.isMultipleBank,"s-offer-bank-wrapper-multi-spacer":e.isMultipleBank}},r("div",{class:"s-offer-bank-logo"},r("img",{src:t.details.logo||salla.url.cdn("images/s-empty.png"),"data-src":t.details.logo,alt:t.title+" offer"})),r("ul",{class:"s-offer-bank-payment-wrapper"},t.details.payments.map((function(e){return r("li",{class:"s-offer-bank-payment-single"},r("img",{src:salla.url.cdn("images/payment/"+e+".png")||salla.url.cdn("images/s-empty.png"),"data-src":salla.url.cdn("images/payment/"+e+".png"),alt:"payment"}))}))),e.isMultipleBank?r("p",{class:"s-offer-bank-payment-discount-percent"},"".concat(e.product_discount_text," ").concat(t.details.discount_value).concat(t.details.discount_type==="percentage"&&"%")):""),!e.isMultipleBank?r("div",{class:"s-offer-bank-message s-offer-slide-one-fourth"},r("h2",null,e.offersList[0].title),r("p",{innerHTML:e.generateBankDescription(e.offersList[0].description,t.details.discount_value)})):"")}))};e.prototype.generateBankDescription=function(e,t){return e.replace(new RegExp("".concat(t," %")),'<span class="s-offer-bank-message-amount">'.concat(t," %</span>"))};e.prototype.renderDiscountTableSection=function(){var e=this;var t;var s=this.offersList[0];var n=s.details.show_price_after_discount;return(t=this.offersList[0].details.discounts)===null||t===void 0?void 0:t.map((function(t){return r("div",{class:"s-offer-slide-one-fourth"},r("div",{class:"s-offer-slide-offer-entry"},r("div",{class:"s-offer-slide-offer-entry-price-quantity-container"},r("p",{class:"s-offer-slide-offer-entry-quantity"},e.buy_quantity_text(t.quantity)),n?r("div",{class:"s-offer-slide-offer-entry-price"},r("span",null,e.offer_with_price_text),r("span",{class:"s-offer-slide-offer-entry-price-amount"},t.discounted_amount)," ",r("span",null,e.userCurrency)):""),r("p",{class:"s-offer-slide-offer-entry-price-amount-percent"},e.with_discount_text,"(",r("span",null,t.percentage,!!t.percentage&&"%"),")")))}))};Object.defineProperty(e.prototype,"host",{get:function(){return s(this)},enumerable:false,configurable:true});return e}());o.style=i}}}));
|
|
5
|
-
//# sourceMappingURL=p-4fb112e6.system.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["PageType","OfferType","sallaOfferCss","SallaOffer","exports","class_1","hostRef","_this","this","productCardComponent","offersList","isMultipleBank","isBankOffer","canRender","showOffer","salla","config","get","offer_with_price_text","lang","price","with_discount_text","product_discount_text","special_offer_text","multipleBankOfferTitleText","multipleBankOfferTitleDescription","buy_quantity_text","quantity","onLoaded","onReady","currentPage","userCurrency","symbol","categorySlot","_a","host","querySelector","innerHTML","prototype","getEndpointByPageName","Cart","Salla","cart","getCurrentCartId","cartId","_c","sent","concat","ProductDetail","componentWillLoad","hasCustomComponent","customElements","Promise","resolve","then","url","is_page","Error","__awaiter","_d","__generator","_e","api","request","apply","res","data","length","offer","find","Bank","BuyXGetY","DiscountsTable","includes","type","filter","getY","details","source","product","fetch","source_value","response","products","categories","findCategories","offers","storage","set","getStorageKey","stored_at","Date","getTime","catch","error","logger","warn","componentDidLoad","nav","classList","add","ids","found","_i","categories_1","category","id_","id","push","sub_categories","pageSlug","replace","locale","getLocale","currencyCode","currency","code","getOffersFromStorage","storageOffers","remove","render","blockTitle","title","blockSubTitle","description","titles","h","class","Object","assign","slot","renderSectionForOfferType","offerType","renderBankSection","renderBuyXGetYSection","renderDiscountTableSection","getCategoriesSection","icon","name","map","_b","bankOffer","src","logo","cdn","alt","payments","payment","discount_value","discount_type","generateBankDescription","desc","value","RegExp","show_discounted_price","show_price_after_discount","discounts","discount","discounted_amount","percentage"],"sources":["src/components/salla-offer/interfaces.ts","src/components/salla-offer/salla-offer.scss?tag=salla-offer","src/components/salla-offer/salla-offer.tsx"],"sourcesContent":["export enum PageType {\n ProductDetail = \"product.single\",\n Cart = \"cart\"\n}\n\nexport enum OfferType {\n Conditional = \"conditional\",\n PercentageOrFixed = \"fixed\",\n DiscountsTable = \"discounts_table\",\n Bank = \"bank\",\n BuyXGetY = \"buy_x_get_y\"\n}\n\n\nexport interface DiscountDetailFixed {\n discount_type: \"fixed\";\n min_spend: number;\n discount_value: number;\n}\n\nexport interface DiscountDetailFreeProduct {\n discount_type: \"free_product\";\n min_spend: number;\n discount_value: number;\n}\n\nexport interface DiscountDetailConditional extends Array<DiscountDetailFixed | DiscountDetailFreeProduct> {}\n\nexport interface DiscountDetailPercentageFixed {\n apply_to: \"all\" | \"products\" | \"categories\" | \"payment_methods\";\n targets: Array<string | number>;\n ends_at: number;\n min_spend: number;\n discount_value: number;\n}\n\nexport interface Discount {\n discounted_amount: any;\n quantity: number;\n percentage: number;\n}\n\nexport interface DiscountDetailTable {\n apply_to: \"all\" | \"products\" | \"categories\" | \"payment_methods\" | \"order\";\n discount_value: number;\n ends_at: string;\n min_items: number;\n min_spend: number;\n show_price_after_discount: boolean;\n discounts: Discount[];\n}\n\nexport interface BankOffer {\n logo: string;\n discount_value: number;\n discount_type: string;\n minimum_spend: number;\n payments: string[];\n}\n\nexport interface BuyXGetYDetail {\n ends_at: number;\n buy: {\n source: \"product\" | \"category\";\n source_value: number[];\n quantity: number;\n };\n get: {\n source: \"products\" | \"category\";\n source_value: number[];\n type: \"free_product\" | \"percentage\" | \"fixed\";\n value: number;\n products?: Product[];//we will set this dynamically\n categories?: Category[];//we will set this dynamically\n };\n}\n\nexport interface Offer {\n id: number;\n title: string;\n description: string;\n type: OfferType | \"conditional\" | \"fixed\" | \"discounts_table\" | \"bank\" | \"buy_x_get_y\";\n details: DiscountDetailConditional | DiscountDetailPercentageFixed | DiscountDetailTable | BankOffer | BuyXGetYDetail;\n}\n\nexport interface Product {\n id: number;\n type: string;\n status: string;\n is_available: boolean;\n sku: string;\n name: string;\n price: { amount: number; currency: string; };\n promotion: { title: string; sub_title: string; };\n sale_price: { amount: number; currency: string; };\n regular_price: { amount: number; currency: string; };\n currency: string;\n url: string;\n thumbnail: string;\n has_special_price: boolean;\n favorite?: any;\n}\n\nexport interface Category {\n id?: string;\n id_?: number;\n name?: string;\n url?: string;\n icon?: string;\n sub_categories?: Category[];\n items?: any[] | null;\n}\n\nexport interface Currency {\n code: string | 'SAR';\n name: string;\n symbol: string;\n amount?: number;\n country_code?: string;\n}\n",".s-offer-wrapper .s-slider-block__title {\n h2 {\n font-size: 1.125rem;\n line-height: 1.75rem;\n color: #f87171;\n\n &::before {\n font-family: \"sallaicons\";\n content: \"\\ee30\" !important;\n position: absolute;\n top: 1rem;\n font-size: 3rem;\n font-weight: 400;\n line-height: 1;\n color: #fef2f2;\n }\n }\n}\n\n.s-offer-bank-wrapper-sinlge-item{\n display: flex;\n align-items: center !important;\n gap: 14px;\n}\n\n.s-offer-bank-wrapper {\n display: flex !important;\n width: 100% !important;\n}\n\n// .s-offer-bank-wrapper {\n // \n// }","import { Component, Element, Prop, State, h } from '@stencil/core';\nimport { Offer, Category, Product, Discount, Currency, BuyXGetYDetail, PageType, OfferType, BankOffer, DiscountDetailTable } from './interfaces';\n\n\n/**\n * `salla-offer` is a StencilJS component that displays offers, categories, products, banks, and discount information.\n * It uses the `salla-slider` component for carousel functionality.\n *\n * @slot category - The slot for customizing the category entry layout.\n * \n * @csspart custom - Custom CSS part to target specific elements in the component.\n *\n * @example\n * <salla-offer product-id=\"123\"></salla-offer>\n */\n@Component({\n tag: 'salla-offer',\n styleUrl: 'salla-offer.scss',\n})\nexport class SallaOffer {\n\n constructor() {\n // Language\n salla.lang.onLoaded(() => {\n this.offer_with_price_text = salla.lang.get('pages.offer.with_price');\n this.with_discount_text = salla.lang.get('pages.products.with_a_discount');\n this.product_discount_text = salla.lang.get('pages.products.discount');\n this.special_offer_text = salla.lang.get('pages.products.special_offer');\n this.multipleBankOfferTitleText = salla.lang.get('pages.offer.multiple_bank_offers_title');\n this.multipleBankOfferTitleDescription = salla.lang.get('pages.offer.multiple_bank_offers_message');\n this.buy_quantity_text(0);\n })\n\n salla.onReady(() => {\n this.currentPage = salla.config.get('page.slug')\n this.userCurrency = salla.config.get('currencies')[salla.config.get('user.currency_code')].symbol\n });\n\n this.categorySlot = this.host.querySelector('[slot=\"category\"]')?.innerHTML || '<a href={url} class=\"s-offer-slide-cat-entry\"><i class={icon}></i><h4>{name}</h4></a>';\n }\n\n /**\n * Custom Card Component for the Salla Products List.\n *\n * This component allows you to customize the appearance of individual product cards within a Salla Products List.\n *\n * @example\n * <salla-products-list product-card-component=\"my-custom-card-style1\" ...\n * <salla-products-list product-card-component=\"my-custom-card-style2\" ...\n */\n @Prop() productCardComponent: string = 'custom-salla-product-card';\n\n // Declare component state variables\n @State() offersList: Offer[] = [];\n @State() userCurrency: Currency;\n @State() isMultipleBank: boolean = false;\n @State() title?: string;\n @State() currentPage: string;\n @State() hasCustomComponent: boolean;\n\n @State() isBankOffer: boolean = false;\n @State() canRender: boolean = false;\n @State() showOffer: boolean = salla.config.get('store.settings.product.show_special_offers');\n\n // Default translated texts\n @State() offer_with_price_text: string = salla.lang.get('pages.offer.with_price', { price: '' });\n @State() with_discount_text: string = salla.lang.get('pages.products.with_a_discount')\n @State() product_discount_text: string = salla.lang.get('pages.products.discount')\n @State() special_offer_text: string = salla.lang.get('pages.products.special_offer')\n @State() multipleBankOfferTitleText: string = salla.lang.get('pages.offer.multiple_bank_offers_title')\n @State() multipleBankOfferTitleDescription: string = salla.lang.get('pages.offer.multiple_bank_offers_message')\n @State() buy_quantity_text: (quantity: number) => string = (quantity) => salla.lang.get('pages.offer.buy_quantity', { quantity })\n\n // Reference to the host element\n @Element() host: HTMLElement;\n\n private categorySlot: string;\n\n private async getEndpointByPageName(): Promise<string> {\n if (this.currentPage == PageType.Cart) {\n const cartId = await Salla.cart.getCurrentCartId();\n return `offers/cart/${cartId}`;\n }\n\n if (this.currentPage == PageType.ProductDetail) {\n return `offers/product/${salla.config.get('page.id')}`;\n }\n\n return \"offers\";\n }\n\n componentWillLoad() {\n this.hasCustomComponent = !!customElements.get(this.productCardComponent);\n // let offers = this.getOffersFromStorage();\n // if (offers) {\n // return offers.then(offersFromStorage => this.offersList = offersFromStorage);\n // }\n\n return (new Promise(resolve => salla.onReady(resolve)))\n .then(() => {\n this.showOffer = !salla.url.is_page('product.single') || salla.config.get('store.settings.product.show_special_offers')\n if (this.showOffer) {\n return;\n }\n throw new Error(\"Merchant disabled showing the offers on product page\");\n }\n )\n .then(async () => salla.api.request(await this.getEndpointByPageName()))\n .then((res) => {\n if (!(this.offersList = res.data).length) {\n throw new Error('salla-offers:: There is no offers!');\n }\n //we support these offers only\n const offer = this.offersList.find(offer => [OfferType.Bank, OfferType.BuyXGetY, OfferType.DiscountsTable].includes(offer.type as any));\n if (!offer) {\n throw new Error('salla-offers:: Offer type not supported yet!');\n }\n //because there is no need for special handling for discounts table, just skip the other cases\n if (offer.type === OfferType.DiscountsTable) {\n return this.offersList = [offer];\n }\n\n //if it's banks offer, we need to include the other banks overs\n if ((this.isBankOffer = offer.type === OfferType.Bank)) {\n this.offersList = this.offersList.filter(offer => offer.type === OfferType.Bank);\n this.isMultipleBank = this.offersList.length > 1;\n return this.offersList;\n }\n //BuyXGetY offers\n const getY = (offer.details as BuyXGetYDetail).get;\n\n return getY.source === 'products'\n //todo:: avoid this request, and the handling for the products, just use `salla-products-slider` and don't forget to pass the customcard\n ? salla.product.api.fetch({ source: \"selected\", source_value: getY.source_value })\n .then((response: any) => {\n getY.products = response.data;\n (offer.details as any).get = getY;\n return this.offersList = [offer];\n })//set the products\n : salla.product.api.categories()//get all categories in one query, then extract only the selected one, instead of sending multi requests\n .then((res) => {\n getY.categories = this.findCategories(res.data, getY.source_value);\n (offer.details as any).get = getY;\n return this.offersList = [offer];\n });\n })\n .then((offers: Offer[]) => {\n salla.storage.set(this.getStorageKey(), { offers, stored_at: new Date().getTime() });\n this.canRender = true;\n })\n .catch((error) => {\n salla.logger.warn(error)\n });\n }\n\n componentDidLoad() {\n let nav = this.host.querySelector('.s-slider-block__title-nav');\n nav?.classList.add(\"s-offer-bank-payment-nav\")\n }\n\n\n findCategories(categories: Category[], ids: any[]): Category[] {\n let found: Category[] = [];\n\n for (const category of categories) {\n if (ids.includes(category.id_ || category.id)) { //here we are using || because we are planning to drop `id_`\n found.push(category);\n }\n if (category.sub_categories?.length > 0) {\n found = found.concat(this.findCategories(category.sub_categories, ids));\n }\n }\n\n return found;\n }\n\n //todo::add to the key params, to make sure it will support multi offers in the same page if it's wanted\n getStorageKey(): string {\n try {\n const pageSlug = salla.config.get('page.slug').replace('.', '_');\n const locale = salla.lang.getLocale();\n const currencyCode = salla.config.currency().code;\n\n if (!pageSlug || !locale || !currencyCode) {\n throw new Error('Unable to get the storage key.');\n }\n\n return `s-offers-${pageSlug}-${salla.config.get('page.id')}-${locale}-${currencyCode}`;\n } catch (error) {\n return '';\n }\n }\n\n //@ts-ignore\n getOffersFromStorage(): null | Promise<Offer[]> {\n let storageOffers = salla.storage.get(this.getStorageKey());\n //if the offers not existed, or it has been stored before 10 minutes from now, ignore it;\n if (!storageOffers || storageOffers.stored_at < (new Date().getTime() - 10 * 60 * 1000)) {\n salla.storage.remove(this.getStorageKey());\n return null;\n }\n this.canRender = true;\n\n //return it as resolve to support .then\n return Promise.resolve(storageOffers.offers);\n }\n\n render() {\n if (!this.offersList.length || !this.canRender || !this.showOffer) return null;\n const offer: Offer = this.offersList[0];\n\n const blockTitle = this.isBankOffer ? (this.isMultipleBank ? this.multipleBankOfferTitleText : null) : offer.title;\n const blockSubTitle = this.isBankOffer ? (this.isMultipleBank ? this.multipleBankOfferTitleDescription : null) : offer.description;\n\n const titles = {\n 'block-title': blockTitle,\n 'block-subTitle': blockSubTitle,\n 'show-controls': this.isMultipleBank\n };\n\n return (\n <div class=\"s-offer-wrapper\">\n {<p class=\"s-offer-corner-badge\">{this.special_offer_text}</p>}\n {/* discounts table is not a slider, it's a table🤔 */}\n {/* single bank offer is not a slider, it's a dom without slider🤔 */}\n <salla-slider type=\"carousel\" id=\"offer-slider\" {...titles}>\n <div slot='items'>\n {this.renderSectionForOfferType(offer.type)}\n </div>\n </salla-slider>\n </div>\n );\n }\n\n private renderSectionForOfferType(offerType: OfferType | string) {\n if (this.isBankOffer) {\n return this.renderBankSection();\n }\n if (offerType == OfferType.BuyXGetY) {\n return this.renderBuyXGetYSection();\n }\n\n return this.renderDiscountTableSection();\n }\n\n /**\n * Generates content for the categories section.\n *\n * @param offeredCategories - An array of Category objects.\n * @returns An array of HTML elements representing categories.\n */\n private getCategoriesSection(category: Category) {\n return <div class=\"s-offer-slide-one-sixth swiper-slide\" innerHTML={this.categorySlot\n .replace(/\\{url\\}/g, category.url)\n .replace(/\\{icon\\}/g, category.icon || \"sicon-store\")\n .replace(/\\{name\\}/g, category.name)}></div>\n }\n\n private renderBuyXGetYSection() {\n const details = (this.offersList[0].details as BuyXGetYDetail)\n return [\n details.get.products?.map((product: Product) => (\n <div class=\"s-offer-slide-one-fourth\">\n {this.hasCustomComponent\n ? <this.productCardComponent product={product}></this.productCardComponent>\n : <salla-product-card shadow-on-hover product={product}></salla-product-card>}\n </div>\n )),\n details.get.categories?.map((category: Category) => this.getCategoriesSection(category))\n ];\n }\n\n /**\n * Generates content for the bank section.\n *\n * @param offeredBank - An array of Bank objects.\n * @param name - The title of the current offer.\n * @param description - The description of the current offer.\n * @returns An array of HTML elements representing banks.\n * \n * TODO: loop over the list and filter bank types and pass it to this function\n */\n private renderBankSection() {\n return this.offersList.map((bankOffer: Offer) => {\n return <div class={{ \"s-offer-slide-one-sixth\": this.isMultipleBank, \"s-offer-bank-wrapper-sinlge-item\": !this.isMultipleBank }}>\n <div class={{ \"s-offer-bank-wrapper\": true, \"s-offer-slide-one-sixth\": !this.isMultipleBank, \"s-offer-bank-wrapper-multi-spacer\": this.isMultipleBank }}>\n <div class=\"s-offer-bank-logo\">\n <img src={(bankOffer.details as BankOffer).logo || salla.url.cdn('images/s-empty.png')} data-src={(bankOffer.details as BankOffer).logo} alt={bankOffer.title + \" offer\"} />\n </div>\n <ul class=\"s-offer-bank-payment-wrapper\">\n {(bankOffer.details as BankOffer).payments.map((payment: string) => {\n return <li class=\"s-offer-bank-payment-single\">\n <img\n src={salla.url.cdn('images/payment/' + payment + '.png') || salla.url.cdn('images/s-empty.png')}\n data-src={salla.url.cdn('images/payment/' + payment + '.png')}\n alt=\"payment\" />\n </li>\n })}\n </ul>\n {this.isMultipleBank ?\n <p class=\"s-offer-bank-payment-discount-percent\">\n {`${this.product_discount_text} ${(bankOffer.details as BankOffer).discount_value}${(bankOffer.details as BankOffer).discount_type === \"percentage\" && '%'}`}\n </p>\n : \"\"}\n </div>\n {!this.isMultipleBank ?\n <div class=\"s-offer-bank-message s-offer-slide-one-fourth\">\n <h2>{this.offersList[0].title}</h2>\n <p innerHTML={this.generateBankDescription(this.offersList[0].description, (bankOffer.details as BankOffer).discount_value)}></p>\n </div>\n : \"\"}\n </div>\n })\n }\n\n private generateBankDescription(desc: string, value): string {\n return desc.replace(new RegExp(`${value} %`), `<span class=\"s-offer-bank-message-amount\">${value} %</span>`)\n }\n\n /**\n * Generates content for the discount table section.\n *\n * @param discountTable - An array of Discount objects.\n * @returns An array of HTML elements representing discounts_table.\n */\n private renderDiscountTableSection() {\n const offer: Offer = this.offersList[0];\n let show_discounted_price = (offer.details as DiscountDetailTable).show_price_after_discount;\n return (this.offersList[0].details as DiscountDetailTable).discounts?.map((discount: Discount) => <div class=\"s-offer-slide-one-fourth\">\n <div class=\"s-offer-slide-offer-entry\">\n <div class=\"s-offer-slide-offer-entry-price-quantity-container\">\n <p class=\"s-offer-slide-offer-entry-quantity\">{this.buy_quantity_text(discount.quantity)}</p>\n {show_discounted_price ?\n <div class=\"s-offer-slide-offer-entry-price\">\n <span>{this.offer_with_price_text}</span>\n <span class=\"s-offer-slide-offer-entry-price-amount\">{discount.discounted_amount}</span> <span>{this.userCurrency}</span>\n </div> : \"\"}\n </div>\n <p class=\"s-offer-slide-offer-entry-price-amount-percent\">{this.with_discount_text}\n (<span>{discount.percentage}{!!discount.percentage && '%'}</span>)</p>\n </div>\n </div>\n )\n }\n\n}\n"],"mappings":";;;qJAAA,IAAYA,GAAZ,SAAYA,GACVA,EAAA,kCACAA,EAAA,cACD,EAHD,CAAYA,MAGX,KAED,IAAYC,GAAZ,SAAYA,GACVA,EAAA,6BACAA,EAAA,6BACAA,EAAA,oCACAA,EAAA,eACAA,EAAA,y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