@salla.sa/twilight-components 2.14.185 → 2.14.186
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-DcOQ2Xy1.js → app-globals-B2XTfLFm.js} +3 -3
- package/dist/cjs/{app-globals-DcOQ2Xy1.js.map → app-globals-B2XTfLFm.js.map} +1 -1
- package/dist/cjs/{index-B9hoffmV.js → index-DP2ysEjm.js} +4 -4
- package/dist/cjs/index-DP2ysEjm.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-loyalty-program.cjs.entry.js +1 -1
- package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-review-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-reviews-page.cjs.entry.js +1 -1
- package/dist/cjs/salla-reviews.cjs.entry.js +1 -1
- package/dist/cjs/salla-social.cjs.entry.js +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-D9DEYpz2.js → app-globals-B8kmVt1h.js} +3 -3
- package/dist/esm/{app-globals-D9DEYpz2.js.map → app-globals-B8kmVt1h.js.map} +1 -1
- package/dist/esm/{index-BvdHfZUh.js → index-B_24C1wK.js} +4 -4
- package/dist/esm/index-B_24C1wK.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-loyalty-program.entry.js +1 -1
- package/dist/esm/salla-metadata.entry.js +1 -1
- package/dist/esm/salla-notification-item.entry.js +1 -1
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-options.entry.js +1 -1
- package/dist/esm/salla-review-card.entry.js +1 -1
- package/dist/esm/salla-reviews-page.entry.js +1 -1
- package/dist/esm/salla-reviews.entry.js +1 -1
- package/dist/esm/salla-social.entry.js +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-D9DEYpz2.js → app-globals-B8kmVt1h.js} +2 -2
- package/dist/esm-es5/{app-globals-D9DEYpz2.js.map → app-globals-B8kmVt1h.js.map} +1 -1
- package/dist/esm-es5/{index-BvdHfZUh.js → index-B_24C1wK.js} +3 -3
- package/dist/esm-es5/index-B_24C1wK.js.map +1 -0
- 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 +1 -1
- package/dist/esm-es5/salla-filters.entry.js +1 -1
- package/dist/esm-es5/salla-installment.entry.js +1 -1
- package/dist/esm-es5/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm-es5/salla-loyalty-program.entry.js +1 -1
- package/dist/esm-es5/salla-metadata.entry.js +1 -1
- package/dist/esm-es5/salla-notification-item.entry.js +1 -1
- package/dist/esm-es5/salla-notifications.entry.js +1 -1
- package/dist/esm-es5/salla-offer.entry.js +1 -1
- package/dist/esm-es5/salla-order-summary.entry.js +1 -1
- package/dist/esm-es5/salla-orders.entry.js +1 -1
- package/dist/esm-es5/salla-payments.entry.js +1 -1
- package/dist/esm-es5/salla-price-range.entry.js +1 -1
- package/dist/esm-es5/salla-product-options.entry.js +1 -1
- package/dist/esm-es5/salla-review-card.entry.js +1 -1
- package/dist/esm-es5/salla-reviews-page.entry.js +1 -1
- package/dist/esm-es5/salla-reviews.entry.js +1 -1
- package/dist/esm-es5/salla-social.entry.js +1 -1
- package/dist/esm-es5/salla-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-f2dbcb5c.system.entry.js → p-04e2aaf3.system.entry.js} +2 -2
- package/dist/twilight/{p-b068b664.system.entry.js → p-0512ef71.system.entry.js} +2 -2
- package/dist/twilight/{p-fc7d699f.system.entry.js → p-08f2563a.system.entry.js} +2 -2
- package/dist/twilight/{p-aa617413.entry.js → p-0bf86248.entry.js} +2 -2
- package/dist/twilight/{p-a5a99008.entry.js → p-0c2fde6a.entry.js} +2 -2
- package/dist/twilight/{p-4698508b.entry.js → p-0c78d118.entry.js} +2 -2
- package/dist/twilight/{p-f965b92d.entry.js → p-0e005390.entry.js} +2 -2
- package/dist/twilight/{p-7a97d8a0.entry.js → p-18f545ce.entry.js} +2 -2
- package/dist/twilight/{p-6066fd8a.system.entry.js → p-22eadef9.system.entry.js} +2 -2
- package/dist/twilight/{p-751f9e81.system.entry.js → p-281b33fd.system.entry.js} +2 -2
- package/dist/twilight/{p-da1d2708.system.entry.js → p-2ba7f244.system.entry.js} +2 -2
- package/dist/twilight/{p-21e7b384.entry.js → p-2c09aa44.entry.js} +2 -2
- package/dist/twilight/{p-2ef5f4ae.system.entry.js → p-2eda12ca.system.entry.js} +2 -2
- package/dist/twilight/{p-a09dbcd2.entry.js → p-336a582f.entry.js} +2 -2
- package/dist/twilight/{p-ac757399.system.entry.js → p-3881c021.system.entry.js} +2 -2
- package/dist/twilight/{p-0a5b977a.system.entry.js → p-3b09fb2d.system.entry.js} +2 -2
- package/dist/twilight/{p-10ef31ab.entry.js → p-3ca95fb7.entry.js} +2 -2
- package/dist/twilight/{p-e58827f0.entry.js → p-42cd7f48.entry.js} +2 -2
- package/dist/twilight/{p-264e4169.entry.js → p-477fe904.entry.js} +2 -2
- package/dist/twilight/{p-McJds3jL.system.js.map → p-5-yMP2hG.system.js.map} +1 -1
- package/dist/twilight/{p-031bbab5.system.entry.js → p-51754255.system.entry.js} +2 -2
- package/dist/twilight/{p-bddc07c2.entry.js → p-53cde95f.entry.js} +2 -2
- package/dist/twilight/{p-abd64c49.entry.js → p-57234b5b.entry.js} +2 -2
- package/dist/twilight/{p-b5b810fe.system.entry.js → p-5b9b2dd1.system.entry.js} +2 -2
- package/dist/twilight/{p-D_OEaWW1.system.js.map → p-5yfYYBKw.system.js.map} +1 -1
- package/dist/twilight/{p-19060ce1.system.entry.js → p-71a458fa.system.entry.js} +2 -2
- package/dist/twilight/{p-59c68927.entry.js → p-79306984.entry.js} +7 -7
- package/dist/twilight/{p-807fb606.entry.js → p-79d5792f.entry.js} +2 -2
- package/dist/twilight/{p-2d5dfe48.entry.js → p-7eac9137.entry.js} +2 -2
- package/dist/twilight/{p-a085fc3a.entry.js → p-83f9d4e0.entry.js} +2 -2
- package/dist/twilight/{p-e0bd0139.entry.js → p-84dbaf58.entry.js} +2 -2
- package/dist/twilight/{p-af892c4d.system.entry.js → p-889ba1f3.system.entry.js} +2 -2
- package/dist/twilight/{p-2310e9be.system.entry.js → p-8b0aca31.system.entry.js} +2 -2
- package/dist/twilight/{p-3662add5.system.entry.js → p-8d832b5b.system.entry.js} +2 -2
- package/dist/twilight/{p-d0ae458b.system.entry.js → p-93d8dd9d.system.entry.js} +2 -2
- package/dist/twilight/{p-b0e65936.system.entry.js → p-9768622e.system.entry.js} +2 -2
- package/dist/twilight/{p-f00be959.entry.js → p-989e977d.entry.js} +2 -2
- package/dist/twilight/{p-DPOZpC46.system.js.map → p-B2_BYQZ0.system.js.map} +1 -1
- package/dist/twilight/{p-afab47uH.system.js.map → p-B2k8TIDd.system.js.map} +1 -1
- package/dist/twilight/{p-2Dt5-LYr.system.js.map → p-BA1yPamN.system.js.map} +1 -1
- package/dist/twilight/{p-BS0Zd6-V.system.js.map → p-BCGS71KB.system.js.map} +1 -1
- package/dist/twilight/{p-Bhrkx1az.system.js.map → p-BIgc8Qeu.system.js.map} +1 -1
- package/dist/twilight/{p-C0EWAkwu.system.js.map → p-BTlOdS-y.system.js.map} +1 -1
- package/dist/twilight/{p-BvdHfZUh.js → p-B_24C1wK.js} +3 -3
- package/dist/twilight/p-B_24C1wK.js.map +1 -0
- package/dist/twilight/{p-B3X360ag.system.js.map → p-B_Tkg_1V.system.js.map} +1 -1
- package/dist/twilight/{p-LQLJtuvI.js → p-BcHMDFwk.js} +2 -2
- package/dist/twilight/{p-LQLJtuvI.js.map → p-BcHMDFwk.js.map} +1 -1
- package/dist/twilight/{p-CJD1jao-.system.js.map → p-Bztdfuxy.system.js.map} +1 -1
- package/dist/twilight/{p-Cr3ZMdxH.system.js.map → p-C227BsDS.system.js.map} +1 -1
- package/dist/twilight/{p-DFfT_kiF.system.js.map → p-C7hPRztr.system.js.map} +1 -1
- package/dist/twilight/{p-9Zmz_jHJ.system.js.map → p-CA7jaSZ-.system.js.map} +1 -1
- package/dist/twilight/{p-Xzt4of__.system.js.map → p-CDYrzP7n.system.js.map} +1 -1
- package/dist/twilight/{p-Cib1r2ud.system.js.map → p-CI2IRzjS.system.js.map} +1 -1
- package/dist/twilight/{p-CbQAhk9y.system.js.map → p-Cg3u_z1t.system.js.map} +1 -1
- package/dist/twilight/{p-B7bgRKDH.system.js → p-Cm57t-Ss.system.js} +3 -3
- package/dist/twilight/p-Cm57t-Ss.system.js.map +1 -0
- package/dist/twilight/{p-Dj8dq-1Y.system.js.map → p-CwmKh1hr.system.js.map} +1 -1
- package/dist/twilight/{p-Bh5NhbcF.system.js.map → p-D4bwCKNF.system.js.map} +1 -1
- package/dist/twilight/{p-DQuAT6I2.system.js.map → p-DAgG2djL.system.js.map} +1 -1
- package/dist/twilight/{p-BCdei5tO.system.js → p-DLN_Ijrf.system.js} +2 -2
- package/dist/twilight/{p-BCdei5tO.system.js.map → p-DLN_Ijrf.system.js.map} +1 -1
- package/dist/twilight/{p-BQX8AcMd.system.js.map → p-DVCXJcNC.system.js.map} +1 -1
- package/dist/twilight/{p-CXbnPf9O.system.js.map → p-DXlpy-bH.system.js.map} +1 -1
- package/dist/twilight/{p-CBtx6iuG.system.js.map → p-DYCAKDI_.system.js.map} +1 -1
- package/dist/twilight/{p-BHQWzQFE.system.js.map → p-Df_WLG_j.system.js.map} +1 -1
- package/dist/twilight/{p-BDjUAJaQ.system.js.map → p-Dg82N87Y.system.js.map} +1 -1
- package/dist/twilight/{p-BNU8JJrI.system.js.map → p-DjAI9bnL.system.js.map} +1 -1
- package/dist/twilight/{p-CKT2P_WA.system.js → p-JhIDpogd.system.js} +2 -2
- package/dist/twilight/{p-CKT2P_WA.system.js.map → p-JhIDpogd.system.js.map} +1 -1
- package/dist/twilight/{p-CdEtQkil.system.js.map → p-Q3UYQ3Us.system.js.map} +1 -1
- package/dist/twilight/{p-Cz70T8SF.system.js.map → p-YO_nIm9c.system.js.map} +1 -1
- package/dist/twilight/{p-18771434.system.entry.js → p-ab612dd3.system.entry.js} +2 -2
- package/dist/twilight/{p-da3edd24.system.entry.js → p-ae849ee2.system.entry.js} +2 -2
- package/dist/twilight/{p-5ede7efb.system.entry.js → p-b0907186.system.entry.js} +2 -2
- package/dist/twilight/{p-62c5307d.entry.js → p-b1b3eace.entry.js} +2 -2
- package/dist/twilight/{p-d61777f5.entry.js → p-b307e67f.entry.js} +2 -2
- package/dist/twilight/{p-dafba179.entry.js → p-b6dcddf3.entry.js} +2 -2
- package/dist/twilight/{p-cf79e6fd.system.entry.js → p-bc5fde50.system.entry.js} +2 -2
- package/dist/twilight/{p-d81eb7f1.entry.js → p-bc616f89.entry.js} +2 -2
- package/dist/twilight/{p-2a2a6cf0.system.entry.js → p-bd461614.system.entry.js} +2 -2
- package/dist/twilight/{p-a3cc153e.system.entry.js → p-be767f94.system.entry.js} +2 -2
- package/dist/twilight/{p-8f8d71dc.entry.js → p-be7dd0f1.entry.js} +2 -2
- package/dist/twilight/{p-21d01561.entry.js → p-bfecd96a.entry.js} +2 -2
- package/dist/twilight/{p-d959be43.system.entry.js → p-c3842f26.system.entry.js} +2 -2
- package/dist/twilight/{p-6d2e9404.system.entry.js → p-c41a9230.system.entry.js} +2 -2
- package/dist/twilight/{p-95f56fda.entry.js → p-c8affcb2.entry.js} +2 -2
- package/dist/twilight/{p-461198bc.system.entry.js → p-c9af5c52.system.entry.js} +2 -2
- package/dist/twilight/{p-fbe306a1.system.entry.js → p-d26ca0f0.system.entry.js} +2 -2
- package/dist/twilight/{p-54c590e5.entry.js → p-d8e8a5c0.entry.js} +2 -2
- package/dist/twilight/{p-52bb4f90.system.entry.js → p-e6571a0f.system.entry.js} +2 -2
- package/dist/twilight/{p-82017bdc.entry.js → p-ec81e2aa.entry.js} +2 -2
- package/dist/twilight/{p-BRowu-Sc.system.js.map → p-exnX-35H.system.js.map} +1 -1
- package/dist/twilight/{p-69bdd460.entry.js → p-f6106d2f.entry.js} +2 -2
- package/dist/twilight/{p-9e042942.system.entry.js → p-fb61a44d.system.entry.js} +2 -2
- package/dist/twilight/{p-93302758.entry.js → p-fe6d6060.entry.js} +2 -2
- package/dist/twilight/{p-C7kOI93-.system.js.map → p-pT_5Nm1z.system.js.map} +1 -1
- package/dist/twilight/{p-MSKD2iSX.system.js.map → p-zjJT37ed.system.js.map} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/twilight/twilight.js +1 -1
- package/package.json +5 -5
- package/dist/cjs/index-B9hoffmV.js.map +0 -1
- package/dist/esm/index-BvdHfZUh.js.map +0 -1
- package/dist/esm-es5/index-BvdHfZUh.js.map +0 -1
- package/dist/twilight/p-B7bgRKDH.system.js.map +0 -1
- package/dist/twilight/p-BvdHfZUh.js.map +0 -1
- /package/dist/twilight/{p-f2dbcb5c.system.entry.js.map → p-04e2aaf3.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-b068b664.system.entry.js.map → p-0512ef71.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-fc7d699f.system.entry.js.map → p-08f2563a.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-aa617413.entry.js.map → p-0bf86248.entry.js.map} +0 -0
- /package/dist/twilight/{p-a5a99008.entry.js.map → p-0c2fde6a.entry.js.map} +0 -0
- /package/dist/twilight/{p-4698508b.entry.js.map → p-0c78d118.entry.js.map} +0 -0
- /package/dist/twilight/{p-f965b92d.entry.js.map → p-0e005390.entry.js.map} +0 -0
- /package/dist/twilight/{p-7a97d8a0.entry.js.map → p-18f545ce.entry.js.map} +0 -0
- /package/dist/twilight/{p-6066fd8a.system.entry.js.map → p-22eadef9.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-751f9e81.system.entry.js.map → p-281b33fd.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-da1d2708.system.entry.js.map → p-2ba7f244.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-21e7b384.entry.js.map → p-2c09aa44.entry.js.map} +0 -0
- /package/dist/twilight/{p-2ef5f4ae.system.entry.js.map → p-2eda12ca.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-a09dbcd2.entry.js.map → p-336a582f.entry.js.map} +0 -0
- /package/dist/twilight/{p-ac757399.system.entry.js.map → p-3881c021.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-0a5b977a.system.entry.js.map → p-3b09fb2d.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-10ef31ab.entry.js.map → p-3ca95fb7.entry.js.map} +0 -0
- /package/dist/twilight/{p-e58827f0.entry.js.map → p-42cd7f48.entry.js.map} +0 -0
- /package/dist/twilight/{p-264e4169.entry.js.map → p-477fe904.entry.js.map} +0 -0
- /package/dist/twilight/{p-031bbab5.system.entry.js.map → p-51754255.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-bddc07c2.entry.js.map → p-53cde95f.entry.js.map} +0 -0
- /package/dist/twilight/{p-abd64c49.entry.js.map → p-57234b5b.entry.js.map} +0 -0
- /package/dist/twilight/{p-b5b810fe.system.entry.js.map → p-5b9b2dd1.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-19060ce1.system.entry.js.map → p-71a458fa.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-59c68927.entry.js.map → p-79306984.entry.js.map} +0 -0
- /package/dist/twilight/{p-807fb606.entry.js.map → p-79d5792f.entry.js.map} +0 -0
- /package/dist/twilight/{p-2d5dfe48.entry.js.map → p-7eac9137.entry.js.map} +0 -0
- /package/dist/twilight/{p-a085fc3a.entry.js.map → p-83f9d4e0.entry.js.map} +0 -0
- /package/dist/twilight/{p-e0bd0139.entry.js.map → p-84dbaf58.entry.js.map} +0 -0
- /package/dist/twilight/{p-af892c4d.system.entry.js.map → p-889ba1f3.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-2310e9be.system.entry.js.map → p-8b0aca31.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-3662add5.system.entry.js.map → p-8d832b5b.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-d0ae458b.system.entry.js.map → p-93d8dd9d.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-b0e65936.system.entry.js.map → p-9768622e.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-f00be959.entry.js.map → p-989e977d.entry.js.map} +0 -0
- /package/dist/twilight/{p-18771434.system.entry.js.map → p-ab612dd3.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-da3edd24.system.entry.js.map → p-ae849ee2.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-5ede7efb.system.entry.js.map → p-b0907186.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-62c5307d.entry.js.map → p-b1b3eace.entry.js.map} +0 -0
- /package/dist/twilight/{p-d61777f5.entry.js.map → p-b307e67f.entry.js.map} +0 -0
- /package/dist/twilight/{p-dafba179.entry.js.map → p-b6dcddf3.entry.js.map} +0 -0
- /package/dist/twilight/{p-cf79e6fd.system.entry.js.map → p-bc5fde50.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-d81eb7f1.entry.js.map → p-bc616f89.entry.js.map} +0 -0
- /package/dist/twilight/{p-2a2a6cf0.system.entry.js.map → p-bd461614.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-a3cc153e.system.entry.js.map → p-be767f94.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-8f8d71dc.entry.js.map → p-be7dd0f1.entry.js.map} +0 -0
- /package/dist/twilight/{p-21d01561.entry.js.map → p-bfecd96a.entry.js.map} +0 -0
- /package/dist/twilight/{p-d959be43.system.entry.js.map → p-c3842f26.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-6d2e9404.system.entry.js.map → p-c41a9230.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-95f56fda.entry.js.map → p-c8affcb2.entry.js.map} +0 -0
- /package/dist/twilight/{p-461198bc.system.entry.js.map → p-c9af5c52.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-fbe306a1.system.entry.js.map → p-d26ca0f0.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-54c590e5.entry.js.map → p-d8e8a5c0.entry.js.map} +0 -0
- /package/dist/twilight/{p-52bb4f90.system.entry.js.map → p-e6571a0f.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-82017bdc.entry.js.map → p-ec81e2aa.entry.js.map} +0 -0
- /package/dist/twilight/{p-69bdd460.entry.js.map → p-f6106d2f.entry.js.map} +0 -0
- /package/dist/twilight/{p-9e042942.system.entry.js.map → p-fb61a44d.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-93302758.entry.js.map → p-fe6d6060.entry.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,h as s,H as a,g as l}from"./p-
|
|
5
|
-
//# sourceMappingURL=p-
|
|
4
|
+
import{r as t,h as s,H as a,g as l}from"./p-B_24C1wK.js";const i=":host{display:block}";const e=class{constructor(s){t(this,s);this.alertDelay=null;this.data=salla.config.get("store.app_install_prompt");this.open=false;this.closing=false}connectedCallback(){salla.onReady((()=>{this.data=salla.config.get("store.app_install_prompt");if(!this.isMobileOrTabletDevice())return;if(!this.data)return salla.logger.error("Failed to retrieve salla-app-install-alert config");this.ctaLink=salla.url.get("app");this.alertDelay=setTimeout((()=>this.open=true),3e3)}))}disconnectedCallback(){clearTimeout(this.alertDelay)}isMobileOrTabletDevice(t=1024){const s=window.innerWidth<=t;const a=/Macintosh|Android|iPhone|iPad|iPod/i.test(navigator.userAgent);const l="ontouchstart"in window||"ontouchend"in document||navigator.maxTouchPoints>0;return a&&s&&l}closeAlert(){salla.storage.set("app_install_prompt_disabled",true);this.closing=true;this.host.addEventListener("animationend",(()=>{this.closing=false;this.open=false}),{once:true})}render(){return this.data?s(a,{class:`s-app-install-alert-wrapper ${this.open?"open":""} ${this.closing?"closing":""}`,position:this.data.position},s("div",null,s("img",{src:this.data.icon,width:"58",height:"58",alt:`${salla.config.get("store.name")}`})),s("div",{class:"s-app-install-alert-content"},s("h2",{class:"s-app-install-alert-title"},this.data.title),s("p",{class:"s-app-install-alert-sub-title"},this.data.sub_title," "," ",s("a",{href:this.ctaLink,target:"_blank","aria-label":"download app",class:"s-app-install-alert-cta"},salla.lang.getWithDefault("blocks.footer.download_app_now","حمله الآن")))),s("button",{class:"s-app-install-alert-cancel-button",onClick:()=>this.closeAlert()},s("i",{class:"sicon-cancel"}))):null}get host(){return l(this)}};e.style=i;export{e as salla_app_install_alert};
|
|
5
|
+
//# sourceMappingURL=p-53cde95f.entry.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import{r as e,h as i}from"./p-
|
|
5
|
-
//# sourceMappingURL=p-
|
|
4
|
+
import{r as e,h as i}from"./p-B_24C1wK.js";const a="";const t=class{constructor(i){e(this,i)}render(){return i("a",{key:"21d941879be8aa4e4e1d021eb35de02e0c8a7489",href:this.notification.url,class:{"s-notifications-item":true,"s-notifications-item-shadow":true,"s-notifications-item-read":!this.notification.is_new}},i("span",{key:"d87bc5a1e76a994570e8799334a760a8bc401aab",class:"s-notifications-item-icon"},i("i",{key:"8da261c43ece9e2c48c293c6e634498a80bdbeea",class:{"s-notifications-item-icon sicon-bell-ring":true,"s-notifications-item-icon-new":this.notification.is_new}})),i("div",{key:"62fc9b7e2b1a9e6e21caace512686e535d118e06",class:"s-notifications-item-content"},i("div",{key:"a0fa209eb4bb714a1c5b07ddd282c8f2c388d367",class:"s-notifications-item-content-leading"},i("h4",{key:"f0402b63fc4d54d9ee2321ff9fac13beb98d37d5"},this.notification.title),i("p",{key:"d5e92ab43d656d6f194f7e8042810e86bd1fff32"},this.notification.sub_title)),i("span",{key:"29d44babb4ebb89265de05586f388887838c7c75",class:"s-notifications-item-content-trailing"},i("i",{key:"7f2beafa8ee24e5ae671da82554ac8287665e003",class:"sicon-time s-notifications-item-content-trailing-icon"}),i("span",{key:"fd434aeec4acad5b46644fdb29c31a5f28b6dccd"},this.notification.date))))}};t.style=a;export{t as salla_notification_item};
|
|
5
|
+
//# sourceMappingURL=p-57234b5b.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-Cm57t-Ss.system.js","./p-CLqFzsVe.system.js"],(function(t){"use strict";var n,s,i,e;return{setters:[function(t){n=t.r;s=t.h;i=t.g},function(t){e=t.a}],execute:function(){var a=":host{display:block}";var r=t("salla_advertisement",function(){function t(t){var s=this;n(this,t);var i;this.currentSlug=salla.config.get("page.slug");salla.onReady((function(){s.currentSlug=salla.config.get("page.slug")}));this.advSlot=((i=this.host.querySelector('[slot="adv"]'))===null||i===void 0?void 0:i.innerHTML)||'<div class="s-advertisement-content"><h2 class="s-advertisement-content-main">{iconElem}{urlElem}</h2>{closeElem}</div>\n '}t.prototype.isNotVisible=function(t){return!!salla.storage.get("statusAd-".concat(t.id))};t.prototype.setCanDisplayFlag=function(t,n){if(!n){salla.storage.set("statusAd-".concat(t.id),"dismissed");e({targets:this.host,opacity:[1,0],duration:300,height:[this.host.clientHeight,0],easing:"easeInOutQuad"})}};t.prototype.render=function(){var t=this;if(Array.isArray(this.advertisements)&&!this.advertisements.length||!this.advertisements){return}return this.advertisements.map((function(n){return s("div",{class:{"s-hidden":t.isNotVisible(n),"s-advertisement":true},"data-id":n.id,style:{"background-color":n.colors.bg,color:n.colors.text}},s("div",{id:"adv-slot",innerHTML:t.advSlot.replace("{iconElem}",'<i class="s-advertisement-content-icon '.concat(n.icon,'"></i>')).replace("{urlElem}",n.url?'<a href="'.concat(n.url,'" target="').concat(n.target,'">').concat(n.description,"</a>"):n.description).replace("{closeElem}",'<button class="s-advertisement-action" aria-label="close-alert"><i class="sicon-cancel"></i></button>').replace("{icon}",n.icon).replace("{url}",n.url).replace("{target}",n.target).replace("{description}",n.description).replace("{bg_color}",n.colors.bg).replace("{text_color}",n.colors.text)}))}))};t.prototype.componentWillLoad=function(){var t=this;return new Promise((function(t){return salla.onReady(t)})).then((function(){return salla.api.advertisement.fetch(t.currentSlug)})).then((function(t){return Array.isArray(t.data)?t.data.find((function(t){return!salla.storage.get("statusAd-".concat(t.id))})):null})).then((function(n){return t.advertisements=n?[n]:[]}))};t.prototype.componentDidRender=function(){var t=this;var n;if(Array.isArray(this.advertisements)&&!this.advertisements.length||!this.advertisements){return}setTimeout((function(){var n=t.host.querySelector(".s-advertisement-action");if(n){n.addEventListener("click",(function(){return t.setCanDisplayFlag(t.advertisements[0],false)}))}}));this.host.querySelectorAll("#adv-slot").forEach((function(t){return t===null||t===void 0?void 0:t.replaceWith(t===null||t===void 0?void 0:t.firstChild)}));(n=this.host.querySelector('[slot="adv"]'))===null||n===void 0?void 0:n.remove();e({targets:this.host,opacity:[0,1],duration:300,height:[0,this.host.clientHeight],easing:"easeInOutQuad"})};Object.defineProperty(t.prototype,"host",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());r.style=a}}}));
|
|
5
|
+
//# sourceMappingURL=p-5b9b2dd1.system.entry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"p-
|
|
1
|
+
{"version":3,"file":"p-5yfYYBKw.system.js","sources":["@lazy-external-entrypoint?app-data=conditional"],"sourcesContent":["export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\nexport const defineCustomElements = async (win, options) => {\n if (typeof window === 'undefined') return undefined;\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAGY,YAAC,oBAAoB,mCAAG,OAAO,GAAG,EAAE,OAAO,KAAK;MAC5D,EAAE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,OAAO,SAAS;MACrD,EAAE,MAAM,aAAa,EAAE;MACvB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;MAC7D;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(e,t,n,i){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function r(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i["throw"](e))}catch(e){s(e)}}function c(e){e.done?n(e.value):a(e.value).then(r,o)}c((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,r;return r={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function o(e){return function(t){return c([e,t])}}function c(o){if(i)throw new TypeError("Generator is already executing.");while(r&&(r=0,o[0]&&(n=0)),n)try{if(i=1,a&&(s=o[0]&2?a["return"]:o[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,o[1])).done)return s;if(a=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;a=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){n.label=o[1];break}if(o[0]===6&&n.label<s[1]){n.label=s[1];s=o;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(o);break}if(s[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];a=0}finally{i=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* Crafted with ❤ by Salla
|
|
4
|
-
*/System.register(["./p-B7bgRKDH.system.js"],(function(e){"use strict";var t,n,i,a,s;return{setters:[function(e){t=e.r;n=e.c;i=e.h;a=e.H;s=e.g}],execute:function(){var r='\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>calendar-time</title>\n<path d="M22.667 17.333c-0.737 0-1.333 0.596-1.333 1.333v2.667h-2.667c-0.737 0-1.333 0.596-1.333 1.333s0.596 1.333 1.333 1.333h4c0.737 0 1.333-0.596 1.333-1.333v-4c0-0.737-0.596-1.333-1.333-1.333zM28 2.667h-2.667v-1.333c0-0.736-0.596-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v1.333h-13.333v-1.333c0-0.736-0.596-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v1.333h-2.667c-2.205 0-4 1.795-4 4v21.333c0 2.205 1.795 4 4 4h5.363c0.737 0 1.333-0.596 1.333-1.333s-0.596-1.333-1.333-1.333h-5.363c-0.736 0-1.333-0.597-1.333-1.333v-21.333c0-0.736 0.597-1.333 1.333-1.333h2.667v2.667c0 0.736 0.596 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.667h13.333v2.667c0 0.736 0.596 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.667h2.667c0.736 0 1.333 0.599 1.333 1.333v2.696c0 0.736 0.596 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.696c0-2.205-1.795-4-4-4zM22 12c-5.515 0-10 4.485-10 10s4.485 10 10 10 10-4.485 10-10-4.485-10-10-10zM22 29.333c-4.043 0-7.333-3.291-7.333-7.333s3.291-7.333 7.333-7.333 7.333 3.291 7.333 7.333-3.291 7.333-7.333 7.333z"></path>\n</svg>\n';var o='\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>calendar</title>\n<path d="M28 2.667h-2.667v-1.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v1.333h-13.333v-1.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v1.333h-2.667c-2.205 0-4 1.795-4 4v21.333c0 2.205 1.795 4 4 4h24c2.205 0 4-1.795 4-4v-21.333c0-2.205-1.795-4-4-4zM29.333 28c0 0.736-0.599 1.333-1.333 1.333h-24c-0.736 0-1.333-0.599-1.333-1.333v-13.333h26.667zM29.333 12h-26.667v-5.333c0-0.736 0.599-1.333 1.333-1.333h2.667v2.667c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.667h13.333v2.667c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.667h2.667c0.736 0 1.333 0.599 1.333 1.333z"></path>\n</svg>\n';var c='\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>time</title>\n<path d="M16 0c-8.823 0-16 7.177-16 16s7.177 16 16 16 16-7.177 16-16-7.177-16-16-16zM16 29.333c-7.352 0-13.333-5.981-13.333-13.333s5.981-13.333 13.333-13.333 13.333 5.981 13.333 13.333-5.981 13.333-13.333 13.333zM16 8c-0.736 0-1.333 0.596-1.333 1.333v6.667h-4c-0.736 0-1.333 0.596-1.333 1.333s0.597 1.333 1.333 1.333h5.333c0.736 0 1.333-0.596 1.333-1.333v-8c0-0.737-0.597-1.333-1.333-1.333z"></path>\n</svg>\n';var l=":host{display:block}";var u=e("salla_booking_field",function(){function e(e){var i=this;t(this,e);this.invalidInput=n(this,"invalidInput");this.bookNowLabel=salla.lang.get("pages.cart.book_an_appointment","حجز موعد");this.editLabel=salla.lang.get("pages.cart.edit_an_appointment","تعديل الموعد");this.bookedLabel=salla.lang.get("pages.cart.booked_successfully","تمت اضافة الموعد بنجاح");this.selectDate=salla.lang.get("pages.cart.select_appointment_date","حدد تاريخ الموعد");this.bookingUrl="";this.iframeReady=false;this.reservations=[];salla.lang.onLoaded((function(){return i.setTranslations()}));Salla.event.on("booking::open",(function(e){return i.handleBookingOpen(e)}))}e.prototype.setTranslations=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=function(e,t,n){return new Promise((function(i){salla.helpers.setNested(salla.lang.messages[e],t,n);i(true)}))};return[4,e("ar.trans","pages.cart.book_an_appointment","حجز موعد")];case 1:t.sent();return[4,e("en.trans","pages.cart.book_an_appointment","Book an Appointment")];case 2:t.sent();return[4,e("ar.trans","pages.cart.edit_an_appointment","تعديل الموعد")];case 3:t.sent();return[4,e("en.trans","pages.cart.edit_an_appointment","Edit an Appointment")];case 4:t.sent();return[4,e("ar.trans","pages.cart.booked_successfully","تمت اضافة الموعد بنجاح")];case 5:t.sent();return[4,e("en.trans","pages.cart.booked_successfully","Booked Successfully")];case 6:t.sent();return[4,e("ar.trans","pages.cart.select_appointment_date","حدد تاريخ الموعد")];case 7:t.sent();return[4,e("en.trans","pages.cart.select_appointment_date","Select appointment date")];case 8:t.sent();this.bookNowLabel=salla.lang.get("pages.cart.book_an_appointment");this.editLabel=salla.lang.get("pages.cart.edit_an_appointment");this.bookedLabel=salla.lang.get("pages.cart.booked_successfully");this.selectDate=salla.lang.get("pages.cart.select_appointment_date");return[2]}}))}))};e.prototype.openBookingModal=function(e,t){var n=this;if(t===void 0){t=false}if(t&&(!e.detail||typeof e.detail!=="number"||e.detail!==this.productId)){return}if(salla.config.isGuest()){this.setAfterReloadEvent("booking::open-after-reload",this.productId);salla.event.dispatch("login::open");return}salla.booking.add(this.productId,false).then((function(e){if(e.data.redirect.to!=="booking"){throw new Error("Unexpected redirect!")}salla.event.dispatch("booking::open",{url:e.data.redirect.url,id:n.productId})})).catch((function(e){salla.error(salla.lang.get("common.errors.error_occurred"));salla.logger.error(e.response||e)}))};e.prototype.handleBookingOpen=function(e){var t=this;if(e.id!==this.productId)return;this.bookingUrl=salla.url.addParamToUrl("product_id",e.id,e.url);this.iframeReady=true;setTimeout((function(){t.modal.setTitle(t.selectDate);t.modal.open()}),100)};e.prototype.setAfterReloadEvent=function(e,t){salla.storage.set("afterReloadEvent",{event:e,payload:t})};e.prototype.emitAfterReloadEvent=function(){var e=salla.storage.get("afterReloadEvent");if(e&&e.event){var t=new CustomEvent(e.event,{detail:e.payload});window.dispatchEvent(t);salla.storage.remove("afterReloadEvent")}};e.prototype.componentWillLoad=function(){if(this.option&&this.option.details.length){this.reservations=this.option.details}};e.prototype.componentDidLoad=function(){var e=this;window.addEventListener("booking::open-after-reload",(function(t){return e.openBookingModal(t,true)}));this.emitAfterReloadEvent();window.addEventListener("message",this.handleMessageEvent.bind(this));this.reservationsInput.addEventListener("invalid",(function(t){return e.invalidInput.emit(t)}));this.reservationsInput.addEventListener("input",(function(){e.reservationsInput.setCustomValidity("");e.reservationsInput.reportValidity()}))};e.prototype.handleMessageEvent=function(e){var t,n;if(e.data.source!=="booking")return;var i=e.data.type;var a=e.data.message;if(localStorage.getItem("debug"))console.log("Received an action:".concat(i),e.data);if(i==="error"){if((t=a.fields)===null||t===void 0?void 0:t.reservation){salla.notify.error(a.fields.reservation[0]);return}var s=Object.values(a.fields||[a.message]).flat().map((function(e){return"<li>".concat(e,"</li>")})).join("");salla.notify.error("<ul>".concat(s,"</ul>"))}if(i==="success"){if(Number(a.productId)!==Number(this.productId))return;this.reservations=a.data.reservations.map((function(e){if(e.time&&e.time.length>0){var t=e.time[0];return{date:e.date,day:e.day,from_timestamp:t.from,to_timestamp:t.to}}return null})).filter((function(e){return e!==null}));salla.notify.success(this.bookedLabel);(n=this.modal)===null||n===void 0?void 0:n.close();setTimeout((function(){return window.location.reload()}))}if(i==="height"){this.iframe.height=(a===null||a===void 0?void 0:a.height)+"px"}};e.prototype.bookingModal=function(){var e=this;return i("salla-modal",{class:"s-booking-field-modal",ref:function(t){return e.modal=t},width:"md",position:"middle",noPadding:true},i("iframe",{ref:function(t){return e.iframe=t},src:this.bookingUrl,frameborder:"0"}))};e.prototype.renderReservationDate=function(e){return i("span",{class:e.from_timestamp?"s-booking-field-reservations-has-time":""},i("i",{class:"s-booking-field-reservations-icon",innerHTML:o}),e.date)};e.prototype.renderReservationTime=function(e){if(!e.from_timestamp)return"";return i("span",{class:"s-booking-field-reservations-time"},i("i",{class:"s-booking-field-reservations-icon",innerHTML:c}),i("span",null,e.from_timestamp," - ",e.to_timestamp))};e.prototype.render=function(){var e=this;return i(a,{key:"9c5755ca98a3a3a1340414de0109133ffb6617c4"},i("div",{key:"dabd37fc3a9a1879fb0c5cb3899c28971d8724ef",class:"s-booking-field-main"},this.option.required||this.reservations.length>0?i("div",{class:"s-booking-field-price"},i("span",{innerHTML:salla.money(this.option.price)})):"",i("salla-button",{key:"7fbe8ff75abac48b86b7992c261ba0439514c786",class:"s-booking-field-book-now",size:"small",loaderPosition:"center",fill:"outline",onClick:function(t){return e.openBookingModal(t,false)}},i("span",{key:"496907083ce40b1618c8a1b2228f91c70b83f60a",class:"s-booking-field-book-now-content"},i("span",{key:"e4455c6205055349b3137397f039125e0b3a6cf1",innerHTML:r}),this.reservations.length?this.editLabel:this.bookNowLabel))),this.reservations.length>0&&i("div",{key:"de68930ac2cab061c7f9b268f8887342528ba8e7",class:"s-booking-field-reservations"},this.reservations.map((function(t,n){return i("div",{key:n,class:"s-booking-field-reservations-item"},e.renderReservationDate(t),e.renderReservationTime(t))}))),i("input",{key:"f148bc7110984389035474c47fcc963a9fa14607",class:"s-hidden",name:this.option.name,required:this.option.required,value:JSON.stringify(this.reservations)==="[]"?"":JSON.stringify(this.reservations),ref:function(t){return e.reservationsInput=t}}),this.iframeReady&&this.bookingModal())};Object.defineProperty(e.prototype,"host",{get:function(){return s(this)},enumerable:false,configurable:true});return e}());u.style=l;var f=e("salla_conditional_fields",function(){function e(e){t(this,e)}e.prototype.hideAllOptions=function(e){var t=this;this.host.querySelectorAll('[data-show-when^="options['.concat(e,'"]')).forEach((function(e){e.classList.add("hidden");t.hideAllOptions(e.dataset.optionId);t.disableInputs(e)}))};e.prototype.disableInputs=function(e){e.querySelectorAll("[name]").forEach((function(e){var t;e.setAttribute("disabled","");e.removeAttribute("required");if(((t=e===null||e===void 0?void 0:e.tagName)===null||t===void 0?void 0:t.toLowerCase())==="select"){e.value=""}if(["checkbox"].includes(e.getAttribute("type"))&&e.hasOwnProperty("checked")){e.checked=false}}))};e.prototype.changeHandler=function(e){var t=this;var n;salla.event.emit("salla-onditional-fields::change",e);salla.log("Received the change event: ",e);if(!e.target||!["SELECT"].includes(e.target.tagName)&&!["checkbox","radio"].includes(e.target.getAttribute("type"))){salla.log("Ignore the change because is not a supported input: "+(((n=e===null||e===void 0?void 0:e.target)===null||n===void 0?void 0:n.tagName)||"N/A"));return}var i=e.target.name.replace("[]","");var a=e.target.getAttribute("type")==="checkbox";var s=e.target.getAttribute("type")==="radio";salla.log("Trying to find all elements with condition:",'[data-show-when^="'.concat(i,'"]'));this.host.querySelectorAll('[data-show-when^="'.concat(i,'"]')).forEach((function(n){var i=!(n===null||n===void 0?void 0:n.dataset.showWhen.includes("!="));var r=n===null||n===void 0?void 0:n.dataset.showWhen.replace(/(.*)(=|!=)(.*)/gm,"$3").trim();var o;if(a){var c=Array.from(t.host.querySelectorAll('input[name="'.concat(e.target.name,'"]:checked')),(function(e){return e===null||e===void 0?void 0:e.value}));o=c.includes(r.toString())}else if(s){o=e.target.checked&&e.target.value===r}else{o=r===e.target.value}salla.log("The input is ",a?"Multiple":s?"Radio":"Single"," value:",o);var l=i&&o||!i&&!o;if(l){n.classList.remove("hidden");n.querySelectorAll("[name]").forEach((function(e){e.removeAttribute("disabled");var t=e.closest(".s-product-options-option");if(t.dataset.optionRequired==="true"){e.setAttribute("required","")}if(e.getAttribute("type")==="checkbox"){var n=Array.from(document.querySelectorAll('input[type="checkbox"][name="'.concat(e.getAttribute("name"),'"]')));var i=n.some((function(e){return e.checked}));if(i){n.forEach((function(e){e.removeAttribute("required")}))}}}))}else{t.hideAllOptions(n.dataset.optionId);n.classList.add("hidden");t.disableInputs(n)}}))};e.prototype.componentDidRender=function(){var e=this;this.host.querySelectorAll("[data-show-when]").forEach((function(t){var n;var i=(n=t===null||t===void 0?void 0:t.dataset)===null||n===void 0?void 0:n.showWhen.replace(/(.*)(=|!=)(.*)/gm,"$1").trim();if(!i){return}e.changeHandler({target:e.host.querySelector('[name^="'+i+'"]')})}))};e.prototype.render=function(){return i(a,{key:"f2c9836cd5e5667efd13ade5d4e064551c89d569"},i("slot",{key:"980eef852261b13f477a2c2ad140e7c3e96e737f"}))};Object.defineProperty(e.prototype,"host",{get:function(){return s(this)},enumerable:false,configurable:true});return e}())}}}));
|
|
5
|
-
//# sourceMappingURL=p-
|
|
4
|
+
*/System.register(["./p-Cm57t-Ss.system.js"],(function(e){"use strict";var t,n,i,a,s;return{setters:[function(e){t=e.r;n=e.c;i=e.h;a=e.H;s=e.g}],execute:function(){var r='\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>calendar-time</title>\n<path d="M22.667 17.333c-0.737 0-1.333 0.596-1.333 1.333v2.667h-2.667c-0.737 0-1.333 0.596-1.333 1.333s0.596 1.333 1.333 1.333h4c0.737 0 1.333-0.596 1.333-1.333v-4c0-0.737-0.596-1.333-1.333-1.333zM28 2.667h-2.667v-1.333c0-0.736-0.596-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v1.333h-13.333v-1.333c0-0.736-0.596-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v1.333h-2.667c-2.205 0-4 1.795-4 4v21.333c0 2.205 1.795 4 4 4h5.363c0.737 0 1.333-0.596 1.333-1.333s-0.596-1.333-1.333-1.333h-5.363c-0.736 0-1.333-0.597-1.333-1.333v-21.333c0-0.736 0.597-1.333 1.333-1.333h2.667v2.667c0 0.736 0.596 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.667h13.333v2.667c0 0.736 0.596 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.667h2.667c0.736 0 1.333 0.599 1.333 1.333v2.696c0 0.736 0.596 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.696c0-2.205-1.795-4-4-4zM22 12c-5.515 0-10 4.485-10 10s4.485 10 10 10 10-4.485 10-10-4.485-10-10-10zM22 29.333c-4.043 0-7.333-3.291-7.333-7.333s3.291-7.333 7.333-7.333 7.333 3.291 7.333 7.333-3.291 7.333-7.333 7.333z"></path>\n</svg>\n';var o='\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>calendar</title>\n<path d="M28 2.667h-2.667v-1.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v1.333h-13.333v-1.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v1.333h-2.667c-2.205 0-4 1.795-4 4v21.333c0 2.205 1.795 4 4 4h24c2.205 0 4-1.795 4-4v-21.333c0-2.205-1.795-4-4-4zM29.333 28c0 0.736-0.599 1.333-1.333 1.333h-24c-0.736 0-1.333-0.599-1.333-1.333v-13.333h26.667zM29.333 12h-26.667v-5.333c0-0.736 0.599-1.333 1.333-1.333h2.667v2.667c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.667h13.333v2.667c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.667h2.667c0.736 0 1.333 0.599 1.333 1.333z"></path>\n</svg>\n';var c='\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>time</title>\n<path d="M16 0c-8.823 0-16 7.177-16 16s7.177 16 16 16 16-7.177 16-16-7.177-16-16-16zM16 29.333c-7.352 0-13.333-5.981-13.333-13.333s5.981-13.333 13.333-13.333 13.333 5.981 13.333 13.333-5.981 13.333-13.333 13.333zM16 8c-0.736 0-1.333 0.596-1.333 1.333v6.667h-4c-0.736 0-1.333 0.596-1.333 1.333s0.597 1.333 1.333 1.333h5.333c0.736 0 1.333-0.596 1.333-1.333v-8c0-0.737-0.597-1.333-1.333-1.333z"></path>\n</svg>\n';var l=":host{display:block}";var u=e("salla_booking_field",function(){function e(e){var i=this;t(this,e);this.invalidInput=n(this,"invalidInput");this.bookNowLabel=salla.lang.get("pages.cart.book_an_appointment","حجز موعد");this.editLabel=salla.lang.get("pages.cart.edit_an_appointment","تعديل الموعد");this.bookedLabel=salla.lang.get("pages.cart.booked_successfully","تمت اضافة الموعد بنجاح");this.selectDate=salla.lang.get("pages.cart.select_appointment_date","حدد تاريخ الموعد");this.bookingUrl="";this.iframeReady=false;this.reservations=[];salla.lang.onLoaded((function(){return i.setTranslations()}));Salla.event.on("booking::open",(function(e){return i.handleBookingOpen(e)}))}e.prototype.setTranslations=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=function(e,t,n){return new Promise((function(i){salla.helpers.setNested(salla.lang.messages[e],t,n);i(true)}))};return[4,e("ar.trans","pages.cart.book_an_appointment","حجز موعد")];case 1:t.sent();return[4,e("en.trans","pages.cart.book_an_appointment","Book an Appointment")];case 2:t.sent();return[4,e("ar.trans","pages.cart.edit_an_appointment","تعديل الموعد")];case 3:t.sent();return[4,e("en.trans","pages.cart.edit_an_appointment","Edit an Appointment")];case 4:t.sent();return[4,e("ar.trans","pages.cart.booked_successfully","تمت اضافة الموعد بنجاح")];case 5:t.sent();return[4,e("en.trans","pages.cart.booked_successfully","Booked Successfully")];case 6:t.sent();return[4,e("ar.trans","pages.cart.select_appointment_date","حدد تاريخ الموعد")];case 7:t.sent();return[4,e("en.trans","pages.cart.select_appointment_date","Select appointment date")];case 8:t.sent();this.bookNowLabel=salla.lang.get("pages.cart.book_an_appointment");this.editLabel=salla.lang.get("pages.cart.edit_an_appointment");this.bookedLabel=salla.lang.get("pages.cart.booked_successfully");this.selectDate=salla.lang.get("pages.cart.select_appointment_date");return[2]}}))}))};e.prototype.openBookingModal=function(e,t){var n=this;if(t===void 0){t=false}if(t&&(!e.detail||typeof e.detail!=="number"||e.detail!==this.productId)){return}if(salla.config.isGuest()){this.setAfterReloadEvent("booking::open-after-reload",this.productId);salla.event.dispatch("login::open");return}salla.booking.add(this.productId,false).then((function(e){if(e.data.redirect.to!=="booking"){throw new Error("Unexpected redirect!")}salla.event.dispatch("booking::open",{url:e.data.redirect.url,id:n.productId})})).catch((function(e){salla.error(salla.lang.get("common.errors.error_occurred"));salla.logger.error(e.response||e)}))};e.prototype.handleBookingOpen=function(e){var t=this;if(e.id!==this.productId)return;this.bookingUrl=salla.url.addParamToUrl("product_id",e.id,e.url);this.iframeReady=true;setTimeout((function(){t.modal.setTitle(t.selectDate);t.modal.open()}),100)};e.prototype.setAfterReloadEvent=function(e,t){salla.storage.set("afterReloadEvent",{event:e,payload:t})};e.prototype.emitAfterReloadEvent=function(){var e=salla.storage.get("afterReloadEvent");if(e&&e.event){var t=new CustomEvent(e.event,{detail:e.payload});window.dispatchEvent(t);salla.storage.remove("afterReloadEvent")}};e.prototype.componentWillLoad=function(){if(this.option&&this.option.details.length){this.reservations=this.option.details}};e.prototype.componentDidLoad=function(){var e=this;window.addEventListener("booking::open-after-reload",(function(t){return e.openBookingModal(t,true)}));this.emitAfterReloadEvent();window.addEventListener("message",this.handleMessageEvent.bind(this));this.reservationsInput.addEventListener("invalid",(function(t){return e.invalidInput.emit(t)}));this.reservationsInput.addEventListener("input",(function(){e.reservationsInput.setCustomValidity("");e.reservationsInput.reportValidity()}))};e.prototype.handleMessageEvent=function(e){var t,n;if(e.data.source!=="booking")return;var i=e.data.type;var a=e.data.message;if(localStorage.getItem("debug"))console.log("Received an action:".concat(i),e.data);if(i==="error"){if((t=a.fields)===null||t===void 0?void 0:t.reservation){salla.notify.error(a.fields.reservation[0]);return}var s=Object.values(a.fields||[a.message]).flat().map((function(e){return"<li>".concat(e,"</li>")})).join("");salla.notify.error("<ul>".concat(s,"</ul>"))}if(i==="success"){if(Number(a.productId)!==Number(this.productId))return;this.reservations=a.data.reservations.map((function(e){if(e.time&&e.time.length>0){var t=e.time[0];return{date:e.date,day:e.day,from_timestamp:t.from,to_timestamp:t.to}}return null})).filter((function(e){return e!==null}));salla.notify.success(this.bookedLabel);(n=this.modal)===null||n===void 0?void 0:n.close();setTimeout((function(){return window.location.reload()}))}if(i==="height"){this.iframe.height=(a===null||a===void 0?void 0:a.height)+"px"}};e.prototype.bookingModal=function(){var e=this;return i("salla-modal",{class:"s-booking-field-modal",ref:function(t){return e.modal=t},width:"md",position:"middle",noPadding:true},i("iframe",{ref:function(t){return e.iframe=t},src:this.bookingUrl,frameborder:"0"}))};e.prototype.renderReservationDate=function(e){return i("span",{class:e.from_timestamp?"s-booking-field-reservations-has-time":""},i("i",{class:"s-booking-field-reservations-icon",innerHTML:o}),e.date)};e.prototype.renderReservationTime=function(e){if(!e.from_timestamp)return"";return i("span",{class:"s-booking-field-reservations-time"},i("i",{class:"s-booking-field-reservations-icon",innerHTML:c}),i("span",null,e.from_timestamp," - ",e.to_timestamp))};e.prototype.render=function(){var e=this;return i(a,{key:"9c5755ca98a3a3a1340414de0109133ffb6617c4"},i("div",{key:"dabd37fc3a9a1879fb0c5cb3899c28971d8724ef",class:"s-booking-field-main"},this.option.required||this.reservations.length>0?i("div",{class:"s-booking-field-price"},i("span",{innerHTML:salla.money(this.option.price)})):"",i("salla-button",{key:"7fbe8ff75abac48b86b7992c261ba0439514c786",class:"s-booking-field-book-now",size:"small",loaderPosition:"center",fill:"outline",onClick:function(t){return e.openBookingModal(t,false)}},i("span",{key:"496907083ce40b1618c8a1b2228f91c70b83f60a",class:"s-booking-field-book-now-content"},i("span",{key:"e4455c6205055349b3137397f039125e0b3a6cf1",innerHTML:r}),this.reservations.length?this.editLabel:this.bookNowLabel))),this.reservations.length>0&&i("div",{key:"de68930ac2cab061c7f9b268f8887342528ba8e7",class:"s-booking-field-reservations"},this.reservations.map((function(t,n){return i("div",{key:n,class:"s-booking-field-reservations-item"},e.renderReservationDate(t),e.renderReservationTime(t))}))),i("input",{key:"f148bc7110984389035474c47fcc963a9fa14607",class:"s-hidden",name:this.option.name,required:this.option.required,value:JSON.stringify(this.reservations)==="[]"?"":JSON.stringify(this.reservations),ref:function(t){return e.reservationsInput=t}}),this.iframeReady&&this.bookingModal())};Object.defineProperty(e.prototype,"host",{get:function(){return s(this)},enumerable:false,configurable:true});return e}());u.style=l;var f=e("salla_conditional_fields",function(){function e(e){t(this,e)}e.prototype.hideAllOptions=function(e){var t=this;this.host.querySelectorAll('[data-show-when^="options['.concat(e,'"]')).forEach((function(e){e.classList.add("hidden");t.hideAllOptions(e.dataset.optionId);t.disableInputs(e)}))};e.prototype.disableInputs=function(e){e.querySelectorAll("[name]").forEach((function(e){var t;e.setAttribute("disabled","");e.removeAttribute("required");if(((t=e===null||e===void 0?void 0:e.tagName)===null||t===void 0?void 0:t.toLowerCase())==="select"){e.value=""}if(["checkbox"].includes(e.getAttribute("type"))&&e.hasOwnProperty("checked")){e.checked=false}}))};e.prototype.changeHandler=function(e){var t=this;var n;salla.event.emit("salla-onditional-fields::change",e);salla.log("Received the change event: ",e);if(!e.target||!["SELECT"].includes(e.target.tagName)&&!["checkbox","radio"].includes(e.target.getAttribute("type"))){salla.log("Ignore the change because is not a supported input: "+(((n=e===null||e===void 0?void 0:e.target)===null||n===void 0?void 0:n.tagName)||"N/A"));return}var i=e.target.name.replace("[]","");var a=e.target.getAttribute("type")==="checkbox";var s=e.target.getAttribute("type")==="radio";salla.log("Trying to find all elements with condition:",'[data-show-when^="'.concat(i,'"]'));this.host.querySelectorAll('[data-show-when^="'.concat(i,'"]')).forEach((function(n){var i=!(n===null||n===void 0?void 0:n.dataset.showWhen.includes("!="));var r=n===null||n===void 0?void 0:n.dataset.showWhen.replace(/(.*)(=|!=)(.*)/gm,"$3").trim();var o;if(a){var c=Array.from(t.host.querySelectorAll('input[name="'.concat(e.target.name,'"]:checked')),(function(e){return e===null||e===void 0?void 0:e.value}));o=c.includes(r.toString())}else if(s){o=e.target.checked&&e.target.value===r}else{o=r===e.target.value}salla.log("The input is ",a?"Multiple":s?"Radio":"Single"," value:",o);var l=i&&o||!i&&!o;if(l){n.classList.remove("hidden");n.querySelectorAll("[name]").forEach((function(e){e.removeAttribute("disabled");var t=e.closest(".s-product-options-option");if(t.dataset.optionRequired==="true"){e.setAttribute("required","")}if(e.getAttribute("type")==="checkbox"){var n=Array.from(document.querySelectorAll('input[type="checkbox"][name="'.concat(e.getAttribute("name"),'"]')));var i=n.some((function(e){return e.checked}));if(i){n.forEach((function(e){e.removeAttribute("required")}))}}}))}else{t.hideAllOptions(n.dataset.optionId);n.classList.add("hidden");t.disableInputs(n)}}))};e.prototype.componentDidRender=function(){var e=this;this.host.querySelectorAll("[data-show-when]").forEach((function(t){var n;var i=(n=t===null||t===void 0?void 0:t.dataset)===null||n===void 0?void 0:n.showWhen.replace(/(.*)(=|!=)(.*)/gm,"$1").trim();if(!i){return}e.changeHandler({target:e.host.querySelector('[name^="'+i+'"]')})}))};e.prototype.render=function(){return i(a,{key:"f2c9836cd5e5667efd13ade5d4e064551c89d569"},i("slot",{key:"980eef852261b13f477a2c2ad140e7c3e96e737f"}))};Object.defineProperty(e.prototype,"host",{get:function(){return s(this)},enumerable:false,configurable:true});return e}())}}}));
|
|
5
|
+
//# sourceMappingURL=p-71a458fa.system.entry.js.map
|