@salla.sa/twilight-components 2.14.159 → 2.14.160
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-CamMS9Ns.js → app-globals-xjIQ-3yW.js} +3 -3
- package/dist/cjs/{app-globals-CamMS9Ns.js.map → app-globals-xjIQ-3yW.js.map} +1 -1
- package/dist/cjs/{index-DRXGuw0Z.js → index-CBQ7xqUh.js} +4 -4
- package/dist/cjs/{index-DRXGuw0Z.js.map → index-CBQ7xqUh.js.map} +1 -1
- 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 +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/components/index.js +2 -2
- package/dist/components/index.js.map +1 -1
- package/dist/esm/{app-globals-BSwhySyV.js → app-globals-t661HPF2.js} +3 -3
- package/dist/esm/{app-globals-BSwhySyV.js.map → app-globals-t661HPF2.js.map} +1 -1
- package/dist/esm/{index-Dx3sjGdn.js → index-BadYmqRM.js} +4 -4
- package/dist/esm/{index-Dx3sjGdn.js.map → index-BadYmqRM.js.map} +1 -1
- 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 +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-BSwhySyV.js → app-globals-t661HPF2.js} +2 -2
- package/dist/esm-es5/{app-globals-BSwhySyV.js.map → app-globals-t661HPF2.js.map} +1 -1
- package/dist/esm-es5/{index-Dx3sjGdn.js → index-BadYmqRM.js} +3 -3
- package/dist/esm-es5/{index-Dx3sjGdn.js.map → index-BadYmqRM.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 +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 +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-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-3f20f483.entry.js → p-10dfafa6.entry.js} +2 -2
- package/dist/twilight/{p-be136f3f.system.entry.js → p-11eb8dab.system.entry.js} +2 -2
- package/dist/twilight/{p-394785c7.entry.js → p-152b5b15.entry.js} +2 -2
- package/dist/twilight/{p-f7c72d37.entry.js → p-171d8329.entry.js} +2 -2
- package/dist/twilight/{p-c2b1081d.system.entry.js → p-1adb9ca5.system.entry.js} +2 -2
- package/dist/twilight/p-1d2f4e93.entry.js +5 -0
- package/dist/twilight/{p-fd69b722.system.entry.js → p-2430a136.system.entry.js} +2 -2
- package/dist/twilight/{p-d84c9e9a.entry.js → p-2dbf3408.entry.js} +2 -2
- package/dist/twilight/{p-e91eacf8.entry.js → p-37f02b7c.entry.js} +2 -2
- package/dist/twilight/{p-5f6a4505.entry.js → p-3ce9a531.entry.js} +2 -2
- package/dist/twilight/{p-eb455e82.entry.js → p-471d8624.entry.js} +7 -7
- package/dist/twilight/{p-b610b41b.entry.js → p-487eb0f4.entry.js} +2 -2
- package/dist/twilight/{p-a169ca77.entry.js → p-4abd9cd5.entry.js} +2 -2
- package/dist/twilight/{p-11df525a.system.entry.js → p-4e73ea6a.system.entry.js} +2 -2
- package/dist/twilight/{p-f0417b85.entry.js → p-56a00c80.entry.js} +2 -2
- package/dist/twilight/{p-d071b8cc.system.entry.js → p-66ce88b9.system.entry.js} +2 -2
- package/dist/twilight/{p-8779eac3.system.entry.js → p-68c2a2fc.system.entry.js} +2 -2
- package/dist/twilight/{p-0adaa82c.entry.js → p-6bfe0649.entry.js} +2 -2
- package/dist/twilight/{p-558853f4.entry.js → p-6dc92184.entry.js} +2 -2
- package/dist/twilight/{p-03350390.system.entry.js → p-6ed7397a.system.entry.js} +2 -2
- package/dist/twilight/{p-8e327ba4.system.entry.js → p-7121acc6.system.entry.js} +2 -2
- package/dist/twilight/{p-46cebe63.system.entry.js → p-73064711.system.entry.js} +2 -2
- package/dist/twilight/{p-4919e9f5.entry.js → p-7e3a2f37.entry.js} +2 -2
- package/dist/twilight/{p-222601a3.system.entry.js → p-7f771ff0.system.entry.js} +2 -2
- package/dist/twilight/{p-e060f3ba.entry.js → p-848d8c41.entry.js} +2 -2
- package/dist/twilight/{p-1f10c7dd.system.entry.js → p-85dc1666.system.entry.js} +2 -2
- package/dist/twilight/{p-79fc31cc.system.entry.js → p-8b26852f.system.entry.js} +2 -2
- package/dist/twilight/{p-73e8edd1.system.entry.js → p-9130af06.system.entry.js} +2 -2
- package/dist/twilight/{p-128427b4.entry.js → p-948fcbf4.entry.js} +2 -2
- package/dist/twilight/{p-a014d0cf.system.entry.js → p-9d4f907e.system.entry.js} +2 -2
- package/dist/twilight/{p-96a07e65.entry.js → p-9e1a0b97.entry.js} +2 -2
- package/dist/twilight/{p-CMrDYR3H.js → p-B36wKU6J.js} +2 -2
- package/dist/twilight/{p-CMrDYR3H.js.map → p-B36wKU6J.js.map} +1 -1
- package/dist/twilight/{p-BIj36BuD.system.js.map → p-B7fFxdpl.system.js.map} +1 -1
- package/dist/twilight/{p-04Sm8btE.system.js.map → p-BJ2d6t7R.system.js.map} +1 -1
- package/dist/twilight/{p-LBE5EMnY.system.js.map → p-BRtYWLVj.system.js.map} +1 -1
- package/dist/twilight/{p-WrNE17mx.system.js.map → p-BRuR3WxT.system.js.map} +1 -1
- package/dist/twilight/{p-DnYbTj48.system.js.map → p-BVfwWIbp.system.js.map} +1 -1
- package/dist/twilight/{p-AKgc2MvM.system.js.map → p-BZkSItim.system.js.map} +1 -1
- package/dist/twilight/{p-Dx3sjGdn.js → p-BadYmqRM.js} +3 -3
- package/dist/twilight/{p-Dx3sjGdn.js.map → p-BadYmqRM.js.map} +1 -1
- package/dist/twilight/{p-DAU6gVGv.system.js.map → p-BcjOBhzu.system.js.map} +1 -1
- package/dist/twilight/{p-D0JU5Ba9.system.js.map → p-BdloeQcJ.system.js.map} +1 -1
- package/dist/twilight/{p-DZ9he3x3.system.js.map → p-BfymdCFM.system.js.map} +1 -1
- package/dist/twilight/{p-CSn3byBQ.system.js.map → p-BhUBSEac.system.js.map} +1 -1
- package/dist/twilight/{p-COVE0cME.system.js.map → p-BpnS4Mbe.system.js.map} +1 -1
- package/dist/twilight/{p-2eYyAuO0.system.js.map → p-Bqb2-z_l.system.js.map} +1 -1
- package/dist/twilight/{p-D0bcbbUb.system.js.map → p-Br1YhHRy.system.js.map} +1 -1
- package/dist/twilight/{p-xlyAI_dL.system.js.map → p-C2WzIODI.system.js.map} +1 -1
- package/dist/twilight/{p-4zUBI38J.system.js.map → p-CI51CKmI.system.js.map} +1 -1
- package/dist/twilight/{p-C7j-bQM7.system.js.map → p-CN-3LH4d.system.js.map} +1 -1
- package/dist/twilight/{p-BIE-CEvk.system.js → p-CZQTi9Ev.system.js} +3 -3
- package/dist/twilight/{p-BIE-CEvk.system.js.map → p-CZQTi9Ev.system.js.map} +1 -1
- package/dist/twilight/{p-DIse7DxX.system.js.map → p-CfVDKGiT.system.js.map} +1 -1
- package/dist/twilight/{p-CUiSBoSH.system.js → p-ChCHYEIi.system.js} +2 -2
- package/dist/twilight/{p-CUiSBoSH.system.js.map → p-ChCHYEIi.system.js.map} +1 -1
- package/dist/twilight/{p-C7OmxFRY.system.js.map → p-CmsHHJ7p.system.js.map} +1 -1
- package/dist/twilight/{p-C0IYmnnf.system.js.map → p-Cs_aG8et.system.js.map} +1 -1
- package/dist/twilight/{p-a0wh9lkj.system.js.map → p-DBqvRJNg.system.js.map} +1 -1
- package/dist/twilight/{p-CCwUn1Ea.system.js.map → p-DI29PVft.system.js.map} +1 -1
- package/dist/twilight/{p-XMIx8npt.system.js → p-DOTmTJnI.system.js} +2 -2
- package/dist/twilight/{p-XMIx8npt.system.js.map → p-DOTmTJnI.system.js.map} +1 -1
- package/dist/twilight/{p-BQzBjptM.system.js.map → p-DSmzGci-.system.js.map} +1 -1
- package/dist/twilight/{p-DXZ3zjZ4.system.js.map → p-DYsxFZrD.system.js.map} +1 -1
- package/dist/twilight/{p-CXsQmHAE.system.js.map → p-DeRaEC_2.system.js.map} +1 -1
- package/dist/twilight/{p-jUTCVded.system.js.map → p-Dj1dLLfK.system.js.map} +1 -1
- package/dist/twilight/{p-CcXNuDDd.system.js.map → p-DnUg8KyX.system.js.map} +1 -1
- package/dist/twilight/{p-BTpO9Ctr.system.js.map → p-OpaJ0owB.system.js.map} +1 -1
- package/dist/twilight/{p-BZL8or-w.system.js.map → p-XpRgD9UJ.system.js.map} +1 -1
- package/dist/twilight/{p-BkHtv_FQ.system.js.map → p-YMObsjs5.system.js.map} +1 -1
- package/dist/twilight/{p-72b1df53.entry.js → p-a1024555.entry.js} +2 -2
- package/dist/twilight/{p-47e8785d.entry.js → p-a7c52e55.entry.js} +2 -2
- package/dist/twilight/{p-899cc113.system.entry.js → p-a9b0cf4d.system.entry.js} +2 -2
- package/dist/twilight/{p-d136624b.entry.js → p-ac5c6ef1.entry.js} +2 -2
- package/dist/twilight/{p-9c72bbd8.entry.js → p-b1b9871a.entry.js} +2 -2
- package/dist/twilight/{p-ff3e782a.system.entry.js → p-b301c02f.system.entry.js} +2 -2
- package/dist/twilight/{p-80a62809.system.entry.js → p-b4f89d1d.system.entry.js} +2 -2
- package/dist/twilight/{p-4afd49b1.system.entry.js → p-b6be9003.system.entry.js} +2 -2
- package/dist/twilight/{p-26afeb2a.entry.js → p-b86dcca2.entry.js} +2 -2
- package/dist/twilight/{p-adb3db8f.system.entry.js → p-bee87e87.system.entry.js} +2 -2
- package/dist/twilight/{p-729322ff.system.entry.js → p-ca245507.system.entry.js} +2 -2
- package/dist/twilight/{p-77e61685.entry.js → p-ca27f6c1.entry.js} +2 -2
- package/dist/twilight/{p-60c38d50.system.entry.js → p-cda1a230.system.entry.js} +2 -2
- package/dist/twilight/{p-b9c865ce.system.entry.js → p-cdbc19d5.system.entry.js} +2 -2
- package/dist/twilight/{p-111091ec.entry.js → p-cebfe1ee.entry.js} +2 -2
- package/dist/twilight/{p-99370255.system.entry.js → p-deb5199e.system.entry.js} +2 -2
- package/dist/twilight/{p-6b88aaaa.entry.js → p-e3b34d4b.entry.js} +2 -2
- package/dist/twilight/{p-d9bc9c4c.system.entry.js → p-e3ba20eb.system.entry.js} +2 -2
- package/dist/twilight/{p-7ed7f292.entry.js → p-e6d2e1e2.entry.js} +2 -2
- package/dist/twilight/{p-906e29b3.system.entry.js → p-e8ab6080.system.entry.js} +2 -2
- package/dist/twilight/{p-18bdfd1d.system.entry.js → p-e9280cbf.system.entry.js} +2 -2
- package/dist/twilight/{p-7ae06330.system.entry.js → p-f01a72e3.system.entry.js} +2 -2
- package/dist/twilight/{p-d9d4ea95.entry.js → p-f3bc81b6.entry.js} +2 -2
- package/dist/twilight/{p-450f19c3.entry.js → p-f94cbbd4.entry.js} +2 -2
- package/dist/twilight/{p-3caeb724.system.entry.js → p-fc3b3065.system.entry.js} +2 -2
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/twilight/twilight.js +1 -1
- package/package.json +5 -5
- package/dist/twilight/p-0984ddd3.entry.js +0 -5
- /package/dist/twilight/{p-3f20f483.entry.js.map → p-10dfafa6.entry.js.map} +0 -0
- /package/dist/twilight/{p-be136f3f.system.entry.js.map → p-11eb8dab.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-394785c7.entry.js.map → p-152b5b15.entry.js.map} +0 -0
- /package/dist/twilight/{p-f7c72d37.entry.js.map → p-171d8329.entry.js.map} +0 -0
- /package/dist/twilight/{p-c2b1081d.system.entry.js.map → p-1adb9ca5.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-0984ddd3.entry.js.map → p-1d2f4e93.entry.js.map} +0 -0
- /package/dist/twilight/{p-fd69b722.system.entry.js.map → p-2430a136.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-d84c9e9a.entry.js.map → p-2dbf3408.entry.js.map} +0 -0
- /package/dist/twilight/{p-e91eacf8.entry.js.map → p-37f02b7c.entry.js.map} +0 -0
- /package/dist/twilight/{p-5f6a4505.entry.js.map → p-3ce9a531.entry.js.map} +0 -0
- /package/dist/twilight/{p-eb455e82.entry.js.map → p-471d8624.entry.js.map} +0 -0
- /package/dist/twilight/{p-b610b41b.entry.js.map → p-487eb0f4.entry.js.map} +0 -0
- /package/dist/twilight/{p-a169ca77.entry.js.map → p-4abd9cd5.entry.js.map} +0 -0
- /package/dist/twilight/{p-11df525a.system.entry.js.map → p-4e73ea6a.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-f0417b85.entry.js.map → p-56a00c80.entry.js.map} +0 -0
- /package/dist/twilight/{p-d071b8cc.system.entry.js.map → p-66ce88b9.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-8779eac3.system.entry.js.map → p-68c2a2fc.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-0adaa82c.entry.js.map → p-6bfe0649.entry.js.map} +0 -0
- /package/dist/twilight/{p-558853f4.entry.js.map → p-6dc92184.entry.js.map} +0 -0
- /package/dist/twilight/{p-03350390.system.entry.js.map → p-6ed7397a.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-8e327ba4.system.entry.js.map → p-7121acc6.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-46cebe63.system.entry.js.map → p-73064711.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-4919e9f5.entry.js.map → p-7e3a2f37.entry.js.map} +0 -0
- /package/dist/twilight/{p-222601a3.system.entry.js.map → p-7f771ff0.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-e060f3ba.entry.js.map → p-848d8c41.entry.js.map} +0 -0
- /package/dist/twilight/{p-1f10c7dd.system.entry.js.map → p-85dc1666.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-79fc31cc.system.entry.js.map → p-8b26852f.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-73e8edd1.system.entry.js.map → p-9130af06.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-128427b4.entry.js.map → p-948fcbf4.entry.js.map} +0 -0
- /package/dist/twilight/{p-a014d0cf.system.entry.js.map → p-9d4f907e.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-96a07e65.entry.js.map → p-9e1a0b97.entry.js.map} +0 -0
- /package/dist/twilight/{p-72b1df53.entry.js.map → p-a1024555.entry.js.map} +0 -0
- /package/dist/twilight/{p-47e8785d.entry.js.map → p-a7c52e55.entry.js.map} +0 -0
- /package/dist/twilight/{p-899cc113.system.entry.js.map → p-a9b0cf4d.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-d136624b.entry.js.map → p-ac5c6ef1.entry.js.map} +0 -0
- /package/dist/twilight/{p-9c72bbd8.entry.js.map → p-b1b9871a.entry.js.map} +0 -0
- /package/dist/twilight/{p-ff3e782a.system.entry.js.map → p-b301c02f.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-80a62809.system.entry.js.map → p-b4f89d1d.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-4afd49b1.system.entry.js.map → p-b6be9003.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-26afeb2a.entry.js.map → p-b86dcca2.entry.js.map} +0 -0
- /package/dist/twilight/{p-adb3db8f.system.entry.js.map → p-bee87e87.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-729322ff.system.entry.js.map → p-ca245507.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-77e61685.entry.js.map → p-ca27f6c1.entry.js.map} +0 -0
- /package/dist/twilight/{p-60c38d50.system.entry.js.map → p-cda1a230.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-b9c865ce.system.entry.js.map → p-cdbc19d5.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-111091ec.entry.js.map → p-cebfe1ee.entry.js.map} +0 -0
- /package/dist/twilight/{p-99370255.system.entry.js.map → p-deb5199e.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-6b88aaaa.entry.js.map → p-e3b34d4b.entry.js.map} +0 -0
- /package/dist/twilight/{p-d9bc9c4c.system.entry.js.map → p-e3ba20eb.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-7ed7f292.entry.js.map → p-e6d2e1e2.entry.js.map} +0 -0
- /package/dist/twilight/{p-906e29b3.system.entry.js.map → p-e8ab6080.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-18bdfd1d.system.entry.js.map → p-e9280cbf.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-7ae06330.system.entry.js.map → p-f01a72e3.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-d9d4ea95.entry.js.map → p-f3bc81b6.entry.js.map} +0 -0
- /package/dist/twilight/{p-450f19c3.entry.js.map → p-f94cbbd4.entry.js.map} +0 -0
- /package/dist/twilight/{p-3caeb724.system.entry.js.map → p-fc3b3065.system.entry.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import{r as e,c as t,h as a,H as s,g as i}from"./p-Dx3sjGdn.js";var n=`\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>calendar-time</title>\n<path d="M22.667 17.333c-0.737 0-1.333 0.596-1.333 1.333v2.667h-2.667c-0.737 0-1.333 0.596-1.333 1.333s0.596 1.333 1.333 1.333h4c0.737 0 1.333-0.596 1.333-1.333v-4c0-0.737-0.596-1.333-1.333-1.333zM28 2.667h-2.667v-1.333c0-0.736-0.596-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v1.333h-13.333v-1.333c0-0.736-0.596-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v1.333h-2.667c-2.205 0-4 1.795-4 4v21.333c0 2.205 1.795 4 4 4h5.363c0.737 0 1.333-0.596 1.333-1.333s-0.596-1.333-1.333-1.333h-5.363c-0.736 0-1.333-0.597-1.333-1.333v-21.333c0-0.736 0.597-1.333 1.333-1.333h2.667v2.667c0 0.736 0.596 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.667h13.333v2.667c0 0.736 0.596 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.667h2.667c0.736 0 1.333 0.599 1.333 1.333v2.696c0 0.736 0.596 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.696c0-2.205-1.795-4-4-4zM22 12c-5.515 0-10 4.485-10 10s4.485 10 10 10 10-4.485 10-10-4.485-10-10-10zM22 29.333c-4.043 0-7.333-3.291-7.333-7.333s3.291-7.333 7.333-7.333 7.333 3.291 7.333 7.333-3.291 7.333-7.333 7.333z"></path>\n</svg>\n`;var o=`\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>calendar</title>\n<path d="M28 2.667h-2.667v-1.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v1.333h-13.333v-1.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v1.333h-2.667c-2.205 0-4 1.795-4 4v21.333c0 2.205 1.795 4 4 4h24c2.205 0 4-1.795 4-4v-21.333c0-2.205-1.795-4-4-4zM29.333 28c0 0.736-0.599 1.333-1.333 1.333h-24c-0.736 0-1.333-0.599-1.333-1.333v-13.333h26.667zM29.333 12h-26.667v-5.333c0-0.736 0.599-1.333 1.333-1.333h2.667v2.667c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.667h13.333v2.667c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.667h2.667c0.736 0 1.333 0.599 1.333 1.333z"></path>\n</svg>\n`;var l=`\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>time</title>\n<path d="M16 0c-8.823 0-16 7.177-16 16s7.177 16 16 16 16-7.177 16-16-7.177-16-16-16zM16 29.333c-7.352 0-13.333-5.981-13.333-13.333s5.981-13.333 13.333-13.333 13.333 5.981 13.333 13.333-5.981 13.333-13.333 13.333zM16 8c-0.736 0-1.333 0.596-1.333 1.333v6.667h-4c-0.736 0-1.333 0.596-1.333 1.333s0.597 1.333 1.333 1.333h5.333c0.736 0 1.333-0.596 1.333-1.333v-8c0-0.737-0.597-1.333-1.333-1.333z"></path>\n</svg>\n`;const r=":host{display:block}";const c=class{constructor(a){e(this,a);this.invalidInput=t(this,"invalidInput");this.bookNowLabel=salla.lang.get("pages.cart.book_an_appointment","حجز موعد");this.editLabel=salla.lang.get("pages.cart.edit_an_appointment","تعديل الموعد");this.bookedLabel=salla.lang.get("pages.cart.booked_successfully","تمت اضافة الموعد بنجاح");this.selectDate=salla.lang.get("pages.cart.select_appointment_date","حدد تاريخ الموعد");this.bookingUrl="";this.iframeReady=false;this.reservations=[];salla.lang.onLoaded((()=>this.setTranslations()));Salla.event.on("booking::open",(e=>this.handleBookingOpen(e)))}async setTranslations(){const e=(e,t,a)=>new Promise((s=>{salla.helpers.setNested(salla.lang.messages[e],t,a);s(true)}));await e("ar.trans","pages.cart.book_an_appointment","حجز موعد");await e("en.trans","pages.cart.book_an_appointment","Book an Appointment");await e("ar.trans","pages.cart.edit_an_appointment","تعديل الموعد");await e("en.trans","pages.cart.edit_an_appointment","Edit an Appointment");await e("ar.trans","pages.cart.booked_successfully","تمت اضافة الموعد بنجاح");await e("en.trans","pages.cart.booked_successfully","Booked Successfully");await e("ar.trans","pages.cart.select_appointment_date","حدد تاريخ الموعد");await e("en.trans","pages.cart.select_appointment_date","Select appointment date");this.bookNowLabel=salla.lang.get("pages.cart.book_an_appointment");this.editLabel=salla.lang.get("pages.cart.edit_an_appointment");this.bookedLabel=salla.lang.get("pages.cart.booked_successfully");this.selectDate=salla.lang.get("pages.cart.select_appointment_date")}openBookingModal(e,t=false){if(t&&(!e.detail||typeof e.detail!=="number"||e.detail!==this.productId)){return}if(salla.config.isGuest()){this.setAfterReloadEvent("booking::open-after-reload",this.productId);salla.event.dispatch("login::open");return}salla.booking.add(this.productId,false).then((e=>{if(e.data.redirect.to!=="booking"){throw new Error("Unexpected redirect!")}salla.event.dispatch("booking::open",{url:e.data.redirect.url,id:this.productId})})).catch((e=>{salla.error(salla.lang.get("common.errors.error_occurred"));salla.logger.error(e.response||e)}))}handleBookingOpen(e){if(e.id!==this.productId)return;this.bookingUrl=salla.url.addParamToUrl("product_id",e.id,e.url);this.iframeReady=true;setTimeout((()=>{this.modal.setTitle(this.selectDate);this.modal.open()}),100)}setAfterReloadEvent(e,t){salla.storage.set("afterReloadEvent",{event:e,payload:t})}emitAfterReloadEvent(){const e=salla.storage.get("afterReloadEvent");if(e&&e.event){const t=new CustomEvent(e.event,{detail:e.payload});window.dispatchEvent(t);salla.storage.remove("afterReloadEvent")}}componentWillLoad(){if(this.option&&this.option.details.length){this.reservations=this.option.details}}componentDidLoad(){window.addEventListener("booking::open-after-reload",(e=>this.openBookingModal(e,true)));this.emitAfterReloadEvent();window.addEventListener("message",this.handleMessageEvent.bind(this));this.reservationsInput.addEventListener("invalid",(e=>this.invalidInput.emit(e)));this.reservationsInput.addEventListener("input",(()=>{this.reservationsInput.setCustomValidity("");this.reservationsInput.reportValidity()}))}handleMessageEvent(e){var t,a;if(e.data.source!=="booking")return;const s=e.data.type;const i=e.data.message;if(localStorage.getItem("debug"))console.log(`Received an action:${s}`,e.data);if(s==="error"){if((t=i.fields)===null||t===void 0?void 0:t.reservation){salla.notify.error(i.fields.reservation[0]);return}const e=Object.values(i.fields||[i.message]).flat().map((e=>`<li>${e}</li>`)).join("");salla.notify.error(`<ul>${e}</ul>`)}if(s==="success"){if(Number(i.productId)!==Number(this.productId))return;this.reservations=i.data.reservations.map((e=>{if(e.time&&e.time.length>0){const t=e.time[0];return{date:e.date,day:e.day,from_timestamp:t.from,to_timestamp:t.to}}return null})).filter((e=>e!==null));salla.notify.success(this.bookedLabel);(a=this.modal)===null||a===void 0?void 0:a.close();setTimeout((()=>window.location.reload()))}if(s==="height"){this.iframe.height=(i===null||i===void 0?void 0:i.height)+"px"}}bookingModal(){return a("salla-modal",{class:"s-booking-field-modal",ref:e=>this.modal=e,width:"md",position:"middle",noPadding:true},a("iframe",{ref:e=>this.iframe=e,src:this.bookingUrl,frameborder:"0"}))}renderReservationDate(e){return a("span",{class:e.from_timestamp?"s-booking-field-reservations-has-time":""},a("i",{class:"s-booking-field-reservations-icon",innerHTML:o}),e.date)}renderReservationTime(e){if(!e.from_timestamp)return"";return a("span",{class:"s-booking-field-reservations-time"},a("i",{class:"s-booking-field-reservations-icon",innerHTML:l}),a("span",null,e.from_timestamp," - ",e.to_timestamp))}render(){return a(s,{key:"9c5755ca98a3a3a1340414de0109133ffb6617c4"},a("div",{key:"dabd37fc3a9a1879fb0c5cb3899c28971d8724ef",class:"s-booking-field-main"},this.option.required||this.reservations.length>0?a("div",{class:"s-booking-field-price"},a("span",null,salla.money(this.option.price))):"",a("salla-button",{key:"15f8d038b76ada27f0289666497aaae7eee8ba42",class:"s-booking-field-book-now",size:"small",loaderPosition:"center",fill:"outline",onClick:e=>this.openBookingModal(e,false)},a("span",{key:"e02c4da8a45ef524309eb3fc943e3ba15dbd2e9e",class:"s-booking-field-book-now-content"},a("span",{key:"51c7a7f49cc84cf614ac558cca5ef291971364c0",innerHTML:n}),this.reservations.length?this.editLabel:this.bookNowLabel))),this.reservations.length>0&&a("div",{key:"ccbf9faf50176b947622d548055140730d460920",class:"s-booking-field-reservations"},this.reservations.map(((e,t)=>a("div",{key:t,class:"s-booking-field-reservations-item"},this.renderReservationDate(e),this.renderReservationTime(e))))),a("input",{key:"8c6ad98754aec705a0aead75c1637ed7135323cf",class:"s-hidden",name:this.option.name,required:this.option.required,value:JSON.stringify(this.reservations)==="[]"?"":JSON.stringify(this.reservations),ref:e=>this.reservationsInput=e}),this.iframeReady&&this.bookingModal())}get host(){return i(this)}};c.style=r;const d=class{constructor(t){e(this,t)}hideAllOptions(e){this.host.querySelectorAll(`[data-show-when^="options[${e}"]`).forEach((e=>{e.classList.add("hidden");this.hideAllOptions(e.dataset.optionId);this.disableInputs(e)}))}disableInputs(e){e.querySelectorAll("[name]").forEach((e=>{var t;e.setAttribute("disabled","");e.removeAttribute("required");if(((t=e===null||e===void 0?void 0:e.tagName)===null||t===void 0?void 0:t.toLowerCase())==="select"){e.value=""}if(["checkbox"].includes(e.getAttribute("type"))&&e.hasOwnProperty("checked")){e.checked=false}}))}changeHandler(e){var t;salla.event.emit("salla-onditional-fields::change",e);salla.log("Received the change event: ",e);if(!e.target||!["SELECT"].includes(e.target.tagName)&&!["checkbox","radio"].includes(e.target.getAttribute("type"))){salla.log("Ignore the change because is not a supported input: "+(((t=e===null||e===void 0?void 0:e.target)===null||t===void 0?void 0:t.tagName)||"N/A"));return}let a=e.target.name.replace("[]","");let s=e.target.getAttribute("type")==="checkbox";let i=e.target.getAttribute("type")==="radio";salla.log("Trying to find all elements with condition:",`[data-show-when^="${a}"]`);this.host.querySelectorAll(`[data-show-when^="${a}"]`).forEach((t=>{let a=!(t===null||t===void 0?void 0:t.dataset.showWhen.includes("!="));let n=t===null||t===void 0?void 0:t.dataset.showWhen.replace(/(.*)(=|!=)(.*)/gm,"$3").trim();let o;if(s){let t=Array.from(this.host.querySelectorAll(`input[name="${e.target.name}"]:checked`),(e=>e===null||e===void 0?void 0:e.value));o=t.includes(n.toString())}else if(i){o=e.target.checked&&e.target.value===n}else{o=n===e.target.value}salla.log("The input is ",s?"Multiple":i?"Radio":"Single"," value:",o);let l=a&&o||!a&&!o;if(l){t.classList.remove("hidden");t.querySelectorAll("[name]").forEach((e=>{e.removeAttribute("disabled");const t=e.closest(".s-product-options-option");if(t.dataset.optionRequired==="true"){e.setAttribute("required","")}if(e.getAttribute("type")==="checkbox"){const t=Array.from(document.querySelectorAll(`input[type="checkbox"][name="${e.getAttribute("name")}"]`));const a=t.some((e=>e.checked));if(a){t.forEach((e=>{e.removeAttribute("required")}))}}}))}else{this.hideAllOptions(t.dataset.optionId);t.classList.add("hidden");this.disableInputs(t)}}))}componentDidRender(){this.host.querySelectorAll(`[data-show-when]`).forEach((e=>{var t;let a=(t=e===null||e===void 0?void 0:e.dataset)===null||t===void 0?void 0:t.showWhen.replace(/(.*)(=|!=)(.*)/gm,"$1").trim();if(!a){return}this.changeHandler({target:this.host.querySelector('[name^="'+a+'"]')})}))}render(){return a(s,{key:"f2c9836cd5e5667efd13ade5d4e064551c89d569"},a("slot",{key:"980eef852261b13f477a2c2ad140e7c3e96e737f"}))}get host(){return i(this)}};export{c as salla_booking_field,d as salla_conditional_fields};
|
|
5
|
-
//# sourceMappingURL=p-
|
|
4
|
+
import{r as e,c as t,h as a,H as s,g as i}from"./p-BadYmqRM.js";var n=`\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>calendar-time</title>\n<path d="M22.667 17.333c-0.737 0-1.333 0.596-1.333 1.333v2.667h-2.667c-0.737 0-1.333 0.596-1.333 1.333s0.596 1.333 1.333 1.333h4c0.737 0 1.333-0.596 1.333-1.333v-4c0-0.737-0.596-1.333-1.333-1.333zM28 2.667h-2.667v-1.333c0-0.736-0.596-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v1.333h-13.333v-1.333c0-0.736-0.596-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v1.333h-2.667c-2.205 0-4 1.795-4 4v21.333c0 2.205 1.795 4 4 4h5.363c0.737 0 1.333-0.596 1.333-1.333s-0.596-1.333-1.333-1.333h-5.363c-0.736 0-1.333-0.597-1.333-1.333v-21.333c0-0.736 0.597-1.333 1.333-1.333h2.667v2.667c0 0.736 0.596 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.667h13.333v2.667c0 0.736 0.596 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.667h2.667c0.736 0 1.333 0.599 1.333 1.333v2.696c0 0.736 0.596 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.696c0-2.205-1.795-4-4-4zM22 12c-5.515 0-10 4.485-10 10s4.485 10 10 10 10-4.485 10-10-4.485-10-10-10zM22 29.333c-4.043 0-7.333-3.291-7.333-7.333s3.291-7.333 7.333-7.333 7.333 3.291 7.333 7.333-3.291 7.333-7.333 7.333z"></path>\n</svg>\n`;var o=`\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>calendar</title>\n<path d="M28 2.667h-2.667v-1.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v1.333h-13.333v-1.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v1.333h-2.667c-2.205 0-4 1.795-4 4v21.333c0 2.205 1.795 4 4 4h24c2.205 0 4-1.795 4-4v-21.333c0-2.205-1.795-4-4-4zM29.333 28c0 0.736-0.599 1.333-1.333 1.333h-24c-0.736 0-1.333-0.599-1.333-1.333v-13.333h26.667zM29.333 12h-26.667v-5.333c0-0.736 0.599-1.333 1.333-1.333h2.667v2.667c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.667h13.333v2.667c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.667h2.667c0.736 0 1.333 0.599 1.333 1.333z"></path>\n</svg>\n`;var l=`\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>time</title>\n<path d="M16 0c-8.823 0-16 7.177-16 16s7.177 16 16 16 16-7.177 16-16-7.177-16-16-16zM16 29.333c-7.352 0-13.333-5.981-13.333-13.333s5.981-13.333 13.333-13.333 13.333 5.981 13.333 13.333-5.981 13.333-13.333 13.333zM16 8c-0.736 0-1.333 0.596-1.333 1.333v6.667h-4c-0.736 0-1.333 0.596-1.333 1.333s0.597 1.333 1.333 1.333h5.333c0.736 0 1.333-0.596 1.333-1.333v-8c0-0.737-0.597-1.333-1.333-1.333z"></path>\n</svg>\n`;const r=":host{display:block}";const c=class{constructor(a){e(this,a);this.invalidInput=t(this,"invalidInput");this.bookNowLabel=salla.lang.get("pages.cart.book_an_appointment","حجز موعد");this.editLabel=salla.lang.get("pages.cart.edit_an_appointment","تعديل الموعد");this.bookedLabel=salla.lang.get("pages.cart.booked_successfully","تمت اضافة الموعد بنجاح");this.selectDate=salla.lang.get("pages.cart.select_appointment_date","حدد تاريخ الموعد");this.bookingUrl="";this.iframeReady=false;this.reservations=[];salla.lang.onLoaded((()=>this.setTranslations()));Salla.event.on("booking::open",(e=>this.handleBookingOpen(e)))}async setTranslations(){const e=(e,t,a)=>new Promise((s=>{salla.helpers.setNested(salla.lang.messages[e],t,a);s(true)}));await e("ar.trans","pages.cart.book_an_appointment","حجز موعد");await e("en.trans","pages.cart.book_an_appointment","Book an Appointment");await e("ar.trans","pages.cart.edit_an_appointment","تعديل الموعد");await e("en.trans","pages.cart.edit_an_appointment","Edit an Appointment");await e("ar.trans","pages.cart.booked_successfully","تمت اضافة الموعد بنجاح");await e("en.trans","pages.cart.booked_successfully","Booked Successfully");await e("ar.trans","pages.cart.select_appointment_date","حدد تاريخ الموعد");await e("en.trans","pages.cart.select_appointment_date","Select appointment date");this.bookNowLabel=salla.lang.get("pages.cart.book_an_appointment");this.editLabel=salla.lang.get("pages.cart.edit_an_appointment");this.bookedLabel=salla.lang.get("pages.cart.booked_successfully");this.selectDate=salla.lang.get("pages.cart.select_appointment_date")}openBookingModal(e,t=false){if(t&&(!e.detail||typeof e.detail!=="number"||e.detail!==this.productId)){return}if(salla.config.isGuest()){this.setAfterReloadEvent("booking::open-after-reload",this.productId);salla.event.dispatch("login::open");return}salla.booking.add(this.productId,false).then((e=>{if(e.data.redirect.to!=="booking"){throw new Error("Unexpected redirect!")}salla.event.dispatch("booking::open",{url:e.data.redirect.url,id:this.productId})})).catch((e=>{salla.error(salla.lang.get("common.errors.error_occurred"));salla.logger.error(e.response||e)}))}handleBookingOpen(e){if(e.id!==this.productId)return;this.bookingUrl=salla.url.addParamToUrl("product_id",e.id,e.url);this.iframeReady=true;setTimeout((()=>{this.modal.setTitle(this.selectDate);this.modal.open()}),100)}setAfterReloadEvent(e,t){salla.storage.set("afterReloadEvent",{event:e,payload:t})}emitAfterReloadEvent(){const e=salla.storage.get("afterReloadEvent");if(e&&e.event){const t=new CustomEvent(e.event,{detail:e.payload});window.dispatchEvent(t);salla.storage.remove("afterReloadEvent")}}componentWillLoad(){if(this.option&&this.option.details.length){this.reservations=this.option.details}}componentDidLoad(){window.addEventListener("booking::open-after-reload",(e=>this.openBookingModal(e,true)));this.emitAfterReloadEvent();window.addEventListener("message",this.handleMessageEvent.bind(this));this.reservationsInput.addEventListener("invalid",(e=>this.invalidInput.emit(e)));this.reservationsInput.addEventListener("input",(()=>{this.reservationsInput.setCustomValidity("");this.reservationsInput.reportValidity()}))}handleMessageEvent(e){var t,a;if(e.data.source!=="booking")return;const s=e.data.type;const i=e.data.message;if(localStorage.getItem("debug"))console.log(`Received an action:${s}`,e.data);if(s==="error"){if((t=i.fields)===null||t===void 0?void 0:t.reservation){salla.notify.error(i.fields.reservation[0]);return}const e=Object.values(i.fields||[i.message]).flat().map((e=>`<li>${e}</li>`)).join("");salla.notify.error(`<ul>${e}</ul>`)}if(s==="success"){if(Number(i.productId)!==Number(this.productId))return;this.reservations=i.data.reservations.map((e=>{if(e.time&&e.time.length>0){const t=e.time[0];return{date:e.date,day:e.day,from_timestamp:t.from,to_timestamp:t.to}}return null})).filter((e=>e!==null));salla.notify.success(this.bookedLabel);(a=this.modal)===null||a===void 0?void 0:a.close();setTimeout((()=>window.location.reload()))}if(s==="height"){this.iframe.height=(i===null||i===void 0?void 0:i.height)+"px"}}bookingModal(){return a("salla-modal",{class:"s-booking-field-modal",ref:e=>this.modal=e,width:"md",position:"middle",noPadding:true},a("iframe",{ref:e=>this.iframe=e,src:this.bookingUrl,frameborder:"0"}))}renderReservationDate(e){return a("span",{class:e.from_timestamp?"s-booking-field-reservations-has-time":""},a("i",{class:"s-booking-field-reservations-icon",innerHTML:o}),e.date)}renderReservationTime(e){if(!e.from_timestamp)return"";return a("span",{class:"s-booking-field-reservations-time"},a("i",{class:"s-booking-field-reservations-icon",innerHTML:l}),a("span",null,e.from_timestamp," - ",e.to_timestamp))}render(){return a(s,{key:"9c5755ca98a3a3a1340414de0109133ffb6617c4"},a("div",{key:"dabd37fc3a9a1879fb0c5cb3899c28971d8724ef",class:"s-booking-field-main"},this.option.required||this.reservations.length>0?a("div",{class:"s-booking-field-price"},a("span",null,salla.money(this.option.price))):"",a("salla-button",{key:"15f8d038b76ada27f0289666497aaae7eee8ba42",class:"s-booking-field-book-now",size:"small",loaderPosition:"center",fill:"outline",onClick:e=>this.openBookingModal(e,false)},a("span",{key:"e02c4da8a45ef524309eb3fc943e3ba15dbd2e9e",class:"s-booking-field-book-now-content"},a("span",{key:"51c7a7f49cc84cf614ac558cca5ef291971364c0",innerHTML:n}),this.reservations.length?this.editLabel:this.bookNowLabel))),this.reservations.length>0&&a("div",{key:"ccbf9faf50176b947622d548055140730d460920",class:"s-booking-field-reservations"},this.reservations.map(((e,t)=>a("div",{key:t,class:"s-booking-field-reservations-item"},this.renderReservationDate(e),this.renderReservationTime(e))))),a("input",{key:"8c6ad98754aec705a0aead75c1637ed7135323cf",class:"s-hidden",name:this.option.name,required:this.option.required,value:JSON.stringify(this.reservations)==="[]"?"":JSON.stringify(this.reservations),ref:e=>this.reservationsInput=e}),this.iframeReady&&this.bookingModal())}get host(){return i(this)}};c.style=r;const d=class{constructor(t){e(this,t)}hideAllOptions(e){this.host.querySelectorAll(`[data-show-when^="options[${e}"]`).forEach((e=>{e.classList.add("hidden");this.hideAllOptions(e.dataset.optionId);this.disableInputs(e)}))}disableInputs(e){e.querySelectorAll("[name]").forEach((e=>{var t;e.setAttribute("disabled","");e.removeAttribute("required");if(((t=e===null||e===void 0?void 0:e.tagName)===null||t===void 0?void 0:t.toLowerCase())==="select"){e.value=""}if(["checkbox"].includes(e.getAttribute("type"))&&e.hasOwnProperty("checked")){e.checked=false}}))}changeHandler(e){var t;salla.event.emit("salla-onditional-fields::change",e);salla.log("Received the change event: ",e);if(!e.target||!["SELECT"].includes(e.target.tagName)&&!["checkbox","radio"].includes(e.target.getAttribute("type"))){salla.log("Ignore the change because is not a supported input: "+(((t=e===null||e===void 0?void 0:e.target)===null||t===void 0?void 0:t.tagName)||"N/A"));return}let a=e.target.name.replace("[]","");let s=e.target.getAttribute("type")==="checkbox";let i=e.target.getAttribute("type")==="radio";salla.log("Trying to find all elements with condition:",`[data-show-when^="${a}"]`);this.host.querySelectorAll(`[data-show-when^="${a}"]`).forEach((t=>{let a=!(t===null||t===void 0?void 0:t.dataset.showWhen.includes("!="));let n=t===null||t===void 0?void 0:t.dataset.showWhen.replace(/(.*)(=|!=)(.*)/gm,"$3").trim();let o;if(s){let t=Array.from(this.host.querySelectorAll(`input[name="${e.target.name}"]:checked`),(e=>e===null||e===void 0?void 0:e.value));o=t.includes(n.toString())}else if(i){o=e.target.checked&&e.target.value===n}else{o=n===e.target.value}salla.log("The input is ",s?"Multiple":i?"Radio":"Single"," value:",o);let l=a&&o||!a&&!o;if(l){t.classList.remove("hidden");t.querySelectorAll("[name]").forEach((e=>{e.removeAttribute("disabled");const t=e.closest(".s-product-options-option");if(t.dataset.optionRequired==="true"){e.setAttribute("required","")}if(e.getAttribute("type")==="checkbox"){const t=Array.from(document.querySelectorAll(`input[type="checkbox"][name="${e.getAttribute("name")}"]`));const a=t.some((e=>e.checked));if(a){t.forEach((e=>{e.removeAttribute("required")}))}}}))}else{this.hideAllOptions(t.dataset.optionId);t.classList.add("hidden");this.disableInputs(t)}}))}componentDidRender(){this.host.querySelectorAll(`[data-show-when]`).forEach((e=>{var t;let a=(t=e===null||e===void 0?void 0:e.dataset)===null||t===void 0?void 0:t.showWhen.replace(/(.*)(=|!=)(.*)/gm,"$1").trim();if(!a){return}this.changeHandler({target:this.host.querySelector('[name^="'+a+'"]')})}))}render(){return a(s,{key:"f2c9836cd5e5667efd13ade5d4e064551c89d569"},a("slot",{key:"980eef852261b13f477a2c2ad140e7c3e96e737f"}))}get host(){return i(this)}};export{c as salla_booking_field,d as salla_conditional_fields};
|
|
5
|
+
//# sourceMappingURL=p-848d8c41.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-CZQTi9Ev.system.js"],(function(t){"use strict";var a,r,e,n;return{setters:[function(t){a=t.r;r=t.h;e=t.H;n=t.g}],execute:function(){var s="";var i=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 r=String(a.getDate()).padStart(2,"0");var e=String(a.getMonth()+1).padStart(2,"0");var n=a.getFullYear();var s="".concat(r,"/").concat(e,"/").concat(n);return s}return t.value};t.prototype.componentWillLoad=function(){var t=this;return salla.onReady().then((function(){var t;if(!((t=salla.config.get("store.features"))===null||t===void 0?void 0:t.includes("custom-fields"))){throw new Error("feature custom-fields is not activated")}})).then((function(){if(!t.entityId&&salla.url.is_page("product.single")){t.entityId=salla.config.get("page.id")}if(!t.entityId){throw new Error("can't render salla-metadata without enity-id prop!")}salla.lang.onLoaded((function(){return t.download=salla.lang.get("pages.thank_you.download")}));var a=Array.isArray(t.entityId)?t.entityId:[t.entityId];var r=a.map((function(t){return"entities[]=".concat(t)})).join("&");var e="https://api.salla.dev/store/v1/metadata/values?type=".concat(t.entity,"&").concat(r);return salla.api.request(e).then((function(t){var a;return(a=t.data[0])===null||a===void 0?void 0:a.sections}))})).then((function(a){return t.specs=a})).catch((function(t){return salla.logger.error("Error loading more specs:",t)}))};t.prototype.render=function(){var t=this;if(!this.specs.length){return}return r(e,{class:"s-metadata-wrapper"},this.specs.map((function(a){return r("div",{class:"s-metadata-box"},r("div",{class:"s-metadata-box-header"},r("i",{class:"sicon-list"}),a.name),a.fields.map((function(a){return r("div",{class:"s-metadata-row"},r("p",{class:"s-metadata-row-name"},a.name),r("p",{class:"s-metadata-row-value",innerHTML:t.getValue(a)}))})))})))};Object.defineProperty(t.prototype,"host",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());i.style=s}}}));
|
|
5
|
+
//# sourceMappingURL=p-85dc1666.system.entry.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(t,r,n,i){function e(t){return t instanceof n?t:new n((function(r){r(t)}))}return new(n||(n=Promise))((function(n,a){function s(t){try{u(i.next(t))}catch(t){a(t)}}function o(t){try{u(i["throw"](t))}catch(t){a(t)}}function u(t){t.done?n(t.value):e(t.value).then(s,o)}u((i=i.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},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(r){return u([t,r])}}function u(o){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(n=0)),n)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:n.label++;return{value:o[1],done:false};case 5:n.label++;e=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=r.call(t,n)}catch(t){o=[6,t];e=0}finally{i=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* Crafted with ❤ by Salla
|
|
4
|
-
*/System.register(["./p-
|
|
5
|
-
//# sourceMappingURL=p-
|
|
4
|
+
*/System.register(["./p-CZQTi9Ev.system.js","./p-Bnro4LR3.system.js","./p-CorPzHaH.system.js","./p-CLqFzsVe.system.js"],(function(t){"use strict";var r,n,i,e,a,s,o;return{setters:[function(t){r=t.r;n=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;r(this,t);this.changed=n(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 r=t.filters;i.host.style.display="";var n={};i.filters=r.map((function(t){t.label={category_id:salla.lang.get("common.titles.categories"),brand_id:salla.lang.get("common.titles.brands"),rating:salla.lang.get("pages.categories.filter_rating"),price:salla.lang.get("pages.categories.filter_price")}[t.key]||t.label;if(t.key=="rating"){t.type=s.VALUES;var r=t.values,e=r.max,a=r.min;t.values=[5,4,3,2,1].filter((function(t){return t>=a||t<=e}))}if(i.filtersData.variants&&t.type==s.VARIANTS){n.variants=i.filtersData.variants}if(i.filtersData[t.key]&&t.type!==s.VARIANTS){n[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(n).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;n.category_id=d;window.history.pushState({path:w},"",w)}return t}));i.filtersData=n;i.host.childNodes.forEach((function(t){return __awaiter(i,void 0,void 0,(function(){var r;return __generator(this,(function(n){switch(n.label){case 0:r=t.setWidgetHeight;if(!r)return[3,2];return[4,t.setWidgetHeight()];case 1:r=n.sent();n.label=2;case 2:return[2,r]}}))}))}))}))}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,r,n;return __generator(this,(function(i){switch(i.label){case 0:i.trys.push([0,2,,3]);t=new URLSearchParams(window.location.search);r=this;return[4,o.extractFiltersFromUrl(t)];case 1:r.filtersData=i.sent();return[3,3];case 2:n=i.sent();console.warn("failed to get filters from URL",n.message);return[3,3];case 3:return[2]}}))}))};t.prototype.getFilters=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.filtersData]}))}))};t.prototype.applyFilters=function(){return __awaiter(this,void 0,void 0,(function(){var t;var r=this;return __generator(this,(function(n){if(!this.isReady){return[2]}t=Object.keys(this.filtersData).length>0;setTimeout((function(){var n;if(t){var 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=r.encodeFilters(r.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);(n=i.searchParams)===null||n===void 0?void 0:n.delete("filters");window.history.pushState({},"",i.toString())}salla.event.emit("salla-filters::changed",r.filtersData);r.changed.emit(r.filtersData)}),300);return[2]}))}))};t.prototype.encodeFilters=function(t,r){if(r===void 0){r="filters"}var n=[];for(var i in t){if(Object.prototype.hasOwnProperty.call(t,i)){var e=t[i];var a=r?"".concat(r,"[").concat(i,"]"):i;if(Array.isArray(e)){for(var s=0;s<e.length;s++){n.push("".concat(a,"[").concat(s,"]=").concat(e[s]))}}else if(typeof e==="object"&&e!==null){n.push(this.encodeFilters(e,a))}else{var o="".concat(a,"=").concat(e);n.push(o)}}}return n.join("&")};t.prototype.resetFilters=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.removeFiltersQueryParams();this.filtersData={};this.host.childNodes.forEach((function(t){return t.reset&&t.reset()}));salla.event.emit("salla-filters::reset");return[2,this.applyFilters()]}))}))};t.prototype.removeFiltersQueryParams=function(){var t=new URLSearchParams(window.location.search);var r=Array.from(t.keys()).filter((function(t){return!t.startsWith("filters[")})).map((function(r){return"".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(t.get(r)))})).join("&");var n=r?"".concat(window.location.pathname,"?").concat(r):window.location.pathname;window.history.pushState({},"",n)};t.prototype.handleOptionChange=function(t,r,n){if(r.type===s.RANGE){this.filtersData[r.key]=n}var i=t.target.checked;if(r.type===s.VARIANTS){this.filtersData.variants=this.filtersData.variants||{};i&&(this.filtersData.variants[r.key]=n);i||delete this.filtersData.variants[r.key]}else if(t.target.type=="radio"){i&&(this.filtersData[r.key]=n);i||delete this.filtersData[r.key]}else if(t.target.type=="checkbox"){this.filtersData[r.key]=this.filtersData[r.key]||[];if(i){this.filtersData[r.key].push(n)}this.filtersData[r.key]=this.filtersData[r.key].filter((function(t){return t!=n}))}this.applyFilters()};t.prototype.render=function(){var t=this;var r,n;return i(e,{key:"80fda46c33daf06c6a22d567d13375351db4e3cb"},(r=this.filters)===null||r===void 0?void 0:r.map((function(r){return i("salla-filters-widget",{option:r,filtersData:t.filtersData,onChanged:function(r){var n=r.detail,i=n.event,e=n.option,a=n.value;t.handleOptionChange(i,e,a)}})})),((n=this.filters)===null||n===void 0?void 0:n.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-8b26852f.system.entry.js.map
|