@salla.sa/twilight-components 2.13.17 → 2.13.19
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/{camera-807a5122.js → camera-82e553eb.js} +1 -9
- package/dist/cjs/camera-82e553eb.js.map +1 -0
- package/dist/cjs/check-771d889f.js +15 -0
- package/dist/cjs/check-771d889f.js.map +1 -0
- package/dist/cjs/{index-40f35e63.js → index-96c545df.js} +12 -3
- package/dist/cjs/index-96c545df.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-add-product-button_47.cjs.entry.js +5 -4
- package/dist/cjs/salla-add-product-button_47.cjs.entry.js.map +1 -1
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +10 -20
- package/dist/cjs/salla-app-install-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-conditional-fields.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-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 +107 -0
- package/dist/cjs/salla-order-summary.cjs.entry.js.map +1 -0
- 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 +4 -3
- package/dist/cjs/salla-product-options.cjs.entry.js.map +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/salla-app-install-alert/interfaces.js +2 -0
- package/dist/collection/components/salla-app-install-alert/interfaces.js.map +1 -0
- package/dist/collection/components/salla-app-install-alert/salla-app-install-alert.js +9 -19
- package/dist/collection/components/salla-app-install-alert/salla-app-install-alert.js.map +1 -1
- package/dist/collection/components/salla-order-summary/interfaces.js +2 -0
- package/dist/collection/components/salla-order-summary/interfaces.js.map +1 -0
- package/dist/collection/components/salla-order-summary/salla-order-summary.css +3 -0
- package/dist/collection/components/salla-order-summary/salla-order-summary.js +113 -0
- package/dist/collection/components/salla-order-summary/salla-order-summary.js.map +1 -0
- package/dist/collection/components/salla-order-summary/test/salla-order-summary.e2e.js +13 -0
- package/dist/collection/components/salla-order-summary/test/salla-order-summary.e2e.js.map +1 -0
- package/dist/collection/components/salla-order-summary/test/salla-order-summary.spec.js +21 -0
- package/dist/collection/components/salla-order-summary/test/salla-order-summary.spec.js.map +1 -0
- package/dist/collection/components/salla-quick-order/salla-quick-order.js +1 -1
- package/dist/collection/components/salla-quick-order/salla-quick-order.js.map +1 -1
- package/dist/components/salla-app-install-alert.js +9 -19
- package/dist/components/salla-app-install-alert.js.map +1 -1
- package/dist/components/salla-order-summary.d.ts +11 -0
- package/dist/components/salla-order-summary.js +137 -0
- package/dist/components/salla-order-summary.js.map +1 -0
- package/dist/components/salla-quick-order.js +1 -1
- package/dist/components/salla-quick-order.js.map +1 -1
- package/dist/esm/{camera-a379486d.js → camera-d0a93c12.js} +2 -9
- package/dist/esm/camera-d0a93c12.js.map +1 -0
- package/dist/esm/check-838f37a7.js +13 -0
- package/dist/esm/check-838f37a7.js.map +1 -0
- package/dist/esm/{index-e6c3f002.js → index-9a9b1e67.js} +12 -3
- package/dist/esm/index-9a9b1e67.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-add-product-button_47.entry.js +4 -3
- package/dist/esm/salla-add-product-button_47.entry.js.map +1 -1
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +10 -20
- package/dist/esm/salla-app-install-alert.entry.js.map +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-conditional-fields.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-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 +103 -0
- package/dist/esm/salla-order-summary.entry.js.map +1 -0
- 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 +3 -2
- package/dist/esm/salla-product-options.entry.js.map +1 -1
- package/dist/esm/salla-products-list.entry.js +1 -1
- package/dist/esm/salla-products-slider.entry.js +1 -1
- package/dist/esm/salla-social.entry.js +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm-es5/camera-d0a93c12.js +5 -0
- package/dist/esm-es5/check-838f37a7.js +5 -0
- package/dist/esm-es5/{index-e6c3f002.js → index-9a9b1e67.js} +2 -2
- package/dist/esm-es5/index-9a9b1e67.js.map +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/salla-add-product-button_47.entry.js +2 -2
- package/dist/esm-es5/salla-add-product-button_47.entry.js.map +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-app-install-alert.entry.js.map +1 -1
- package/dist/esm-es5/salla-apps-icons.entry.js +1 -1
- package/dist/esm-es5/salla-conditional-fields.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-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 +5 -0
- package/dist/esm-es5/salla-order-summary.entry.js.map +1 -0
- 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-product-options.entry.js.map +1 -1
- package/dist/esm-es5/salla-products-list.entry.js +1 -1
- package/dist/esm-es5/salla-products-slider.entry.js +1 -1
- package/dist/esm-es5/salla-social.entry.js +1 -1
- package/dist/esm-es5/twilight.js +1 -1
- package/dist/esm-es5/twilight.js.map +1 -1
- package/dist/twilight/p-0186ffc1.js +5 -0
- package/dist/twilight/{p-b7b592bc.entry.js → p-06371bb0.entry.js} +2 -2
- package/dist/twilight/{p-3834f37c.entry.js → p-09708e69.entry.js} +2 -2
- package/dist/twilight/{p-06ee24b3.system.entry.js → p-0b502ded.system.entry.js} +2 -2
- package/dist/twilight/{p-6d939dd2.entry.js → p-1670ae9f.entry.js} +10 -10
- package/dist/twilight/{p-6d939dd2.entry.js.map → p-1670ae9f.entry.js.map} +1 -1
- package/dist/twilight/p-19338c46.entry.js +5 -0
- package/dist/twilight/p-19338c46.entry.js.map +1 -0
- package/dist/twilight/p-1d8dea0d.system.entry.js +5 -0
- package/dist/twilight/p-1d8dea0d.system.entry.js.map +1 -0
- package/dist/twilight/{p-bf4cc420.system.entry.js → p-244fdaa3.system.entry.js} +2 -2
- package/dist/twilight/p-26807b00.system.entry.js +5 -0
- package/dist/twilight/{p-3b9dc939.system.entry.js.map → p-26807b00.system.entry.js.map} +1 -1
- package/dist/twilight/{p-9d806602.system.entry.js → p-26ccfdb9.system.entry.js} +2 -2
- package/dist/twilight/{p-06d0f1fc.system.entry.js → p-27e67445.system.entry.js} +2 -2
- package/dist/twilight/{p-025d4f2d.system.entry.js → p-2919b445.system.entry.js} +2 -2
- package/dist/twilight/{p-dd9b5ccb.js → p-294dad80.js} +2 -2
- package/dist/twilight/p-294dad80.js.map +1 -0
- package/dist/twilight/{p-390ad22a.system.entry.js → p-4923a67f.system.entry.js} +2 -2
- package/dist/twilight/p-4f6a5307.js +5 -0
- package/dist/twilight/p-4f6a5307.js.map +1 -0
- package/dist/twilight/{p-6b22ed0e.system.entry.js → p-52e80e00.system.entry.js} +2 -2
- package/dist/twilight/{p-1868754d.system.entry.js → p-5ab9e320.system.entry.js} +2 -2
- package/dist/twilight/{p-8241fdbe.system.entry.js → p-5add79da.system.entry.js} +2 -2
- package/dist/twilight/{p-73543cab.entry.js → p-5cf571e0.entry.js} +2 -2
- package/dist/twilight/{p-ce624f5f.system.entry.js → p-5d8d9481.system.entry.js} +2 -2
- package/dist/twilight/p-61858adc.system.js +5 -0
- package/dist/twilight/p-61858adc.system.js.map +1 -0
- package/dist/twilight/{p-d4007670.system.entry.js → p-63de8456.system.entry.js} +10 -10
- package/dist/twilight/{p-d4007670.system.entry.js.map → p-63de8456.system.entry.js.map} +1 -1
- package/dist/twilight/{p-333ec93c.entry.js → p-65a4715d.entry.js} +2 -2
- package/dist/twilight/{p-4ce6ce88.entry.js → p-65f0067f.entry.js} +2 -2
- package/dist/twilight/{p-6d6256da.system.entry.js → p-66da3f43.system.entry.js} +2 -2
- package/dist/twilight/p-70434381.system.js +5 -0
- package/dist/twilight/p-70434381.system.js.map +1 -0
- package/dist/twilight/{p-54d6d3b2.system.entry.js → p-78b1292d.system.entry.js} +2 -2
- package/dist/twilight/{p-124dbc8a.entry.js → p-7ce64b51.entry.js} +2 -2
- package/dist/twilight/{p-c6bac58c.entry.js → p-7fc43537.entry.js} +2 -2
- package/dist/twilight/p-80f28677.system.js +5 -0
- package/dist/twilight/{p-22970c71.system.js.map → p-80f28677.system.js.map} +1 -1
- package/dist/twilight/{p-a576382e.entry.js → p-93a0c3f0.entry.js} +2 -2
- package/dist/twilight/{p-2196dcbb.entry.js → p-94ad2e62.entry.js} +2 -2
- package/dist/twilight/p-97a6c220.system.entry.js +5 -0
- package/dist/twilight/p-97a6c220.system.entry.js.map +1 -0
- package/dist/twilight/{p-878fc12c.system.entry.js → p-9afefe3a.system.entry.js} +2 -2
- package/dist/twilight/{p-2d5a5668.system.entry.js → p-bb77d0d9.system.entry.js} +2 -2
- package/dist/twilight/p-c7f23f03.entry.js +5 -0
- package/dist/twilight/{p-af0f70cd.entry.js.map → p-c7f23f03.entry.js.map} +1 -1
- package/dist/twilight/{p-25656ae8.entry.js → p-c8c265d7.entry.js} +2 -2
- package/dist/twilight/{p-9a7f3e65.system.entry.js → p-d1b7315f.system.entry.js} +2 -2
- package/dist/twilight/{p-041f94a6.entry.js → p-d41dfff7.entry.js} +2 -2
- package/dist/twilight/{p-3d58cecc.entry.js → p-d5e825e0.entry.js} +2 -2
- package/dist/twilight/{p-37d0c076.entry.js → p-e218f9e3.entry.js} +2 -2
- package/dist/twilight/{p-2768c606.entry.js → p-e6bb10f0.entry.js} +2 -2
- package/dist/twilight/{p-89564b2e.entry.js → p-e7aa06ff.entry.js} +2 -2
- package/dist/twilight/{p-a54fbc9b.system.entry.js → p-ed382e13.system.entry.js} +2 -2
- package/dist/twilight/{p-548cb28d.system.js → p-eebd57c0.system.js} +2 -2
- package/dist/twilight/p-eebd57c0.system.js.map +1 -0
- package/dist/twilight/{p-0c2748dd.entry.js → p-f30e7de2.entry.js} +2 -2
- package/dist/twilight/p-f5cd04ef.entry.js +5 -0
- package/dist/twilight/p-f5cd04ef.entry.js.map +1 -0
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/twilight/twilight.esm.js.map +1 -1
- package/dist/twilight/twilight.js +1 -1
- package/dist/types/components/salla-app-install-alert/interfaces.d.ts +6 -0
- package/dist/types/components/salla-app-install-alert/salla-app-install-alert.d.ts +5 -6
- package/dist/types/components/salla-order-summary/interfaces.d.ts +20 -0
- package/dist/types/components/salla-order-summary/salla-order-summary.d.ts +24 -0
- package/dist/types/components.d.ts +21 -0
- package/package.json +5 -5
- package/dist/cjs/camera-807a5122.js.map +0 -1
- package/dist/cjs/index-40f35e63.js.map +0 -1
- package/dist/esm/camera-a379486d.js.map +0 -1
- package/dist/esm/index-e6c3f002.js.map +0 -1
- package/dist/esm-es5/camera-a379486d.js +0 -5
- package/dist/esm-es5/index-e6c3f002.js.map +0 -1
- package/dist/twilight/p-22970c71.system.js +0 -5
- package/dist/twilight/p-3b9dc939.system.entry.js +0 -5
- package/dist/twilight/p-548cb28d.system.js.map +0 -1
- package/dist/twilight/p-59b293ab.system.entry.js +0 -5
- package/dist/twilight/p-59b293ab.system.entry.js.map +0 -1
- package/dist/twilight/p-af0f70cd.entry.js +0 -5
- package/dist/twilight/p-bcafcefb.system.js +0 -5
- package/dist/twilight/p-cbda894f.js +0 -5
- package/dist/twilight/p-dd9b5ccb.js.map +0 -1
- package/dist/twilight/p-f0a605cc.entry.js +0 -5
- package/dist/twilight/p-f0a605cc.entry.js.map +0 -1
- package/dist/types/global.d.ts +0 -20
- /package/dist/esm-es5/{camera-a379486d.js.map → camera-d0a93c12.js.map} +0 -0
- /package/dist/{twilight/p-bcafcefb.system.js.map → esm-es5/check-838f37a7.js.map} +0 -0
- /package/dist/twilight/{p-cbda894f.js.map → p-0186ffc1.js.map} +0 -0
- /package/dist/twilight/{p-b7b592bc.entry.js.map → p-06371bb0.entry.js.map} +0 -0
- /package/dist/twilight/{p-3834f37c.entry.js.map → p-09708e69.entry.js.map} +0 -0
- /package/dist/twilight/{p-06ee24b3.system.entry.js.map → p-0b502ded.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-bf4cc420.system.entry.js.map → p-244fdaa3.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-9d806602.system.entry.js.map → p-26ccfdb9.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-06d0f1fc.system.entry.js.map → p-27e67445.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-025d4f2d.system.entry.js.map → p-2919b445.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-390ad22a.system.entry.js.map → p-4923a67f.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-6b22ed0e.system.entry.js.map → p-52e80e00.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-1868754d.system.entry.js.map → p-5ab9e320.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-8241fdbe.system.entry.js.map → p-5add79da.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-73543cab.entry.js.map → p-5cf571e0.entry.js.map} +0 -0
- /package/dist/twilight/{p-ce624f5f.system.entry.js.map → p-5d8d9481.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-333ec93c.entry.js.map → p-65a4715d.entry.js.map} +0 -0
- /package/dist/twilight/{p-4ce6ce88.entry.js.map → p-65f0067f.entry.js.map} +0 -0
- /package/dist/twilight/{p-6d6256da.system.entry.js.map → p-66da3f43.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-54d6d3b2.system.entry.js.map → p-78b1292d.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-124dbc8a.entry.js.map → p-7ce64b51.entry.js.map} +0 -0
- /package/dist/twilight/{p-c6bac58c.entry.js.map → p-7fc43537.entry.js.map} +0 -0
- /package/dist/twilight/{p-a576382e.entry.js.map → p-93a0c3f0.entry.js.map} +0 -0
- /package/dist/twilight/{p-2196dcbb.entry.js.map → p-94ad2e62.entry.js.map} +0 -0
- /package/dist/twilight/{p-878fc12c.system.entry.js.map → p-9afefe3a.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-2d5a5668.system.entry.js.map → p-bb77d0d9.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-25656ae8.entry.js.map → p-c8c265d7.entry.js.map} +0 -0
- /package/dist/twilight/{p-9a7f3e65.system.entry.js.map → p-d1b7315f.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-041f94a6.entry.js.map → p-d41dfff7.entry.js.map} +0 -0
- /package/dist/twilight/{p-3d58cecc.entry.js.map → p-d5e825e0.entry.js.map} +0 -0
- /package/dist/twilight/{p-37d0c076.entry.js.map → p-e218f9e3.entry.js.map} +0 -0
- /package/dist/twilight/{p-2768c606.entry.js.map → p-e6bb10f0.entry.js.map} +0 -0
- /package/dist/twilight/{p-89564b2e.entry.js.map → p-e7aa06ff.entry.js.map} +0 -0
- /package/dist/twilight/{p-a54fbc9b.system.entry.js.map → p-ed382e13.system.entry.js.map} +0 -0
- /package/dist/twilight/{p-0c2748dd.entry.js.map → p-f30e7de2.entry.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function s(t){try{l(r.next(t))}catch(t){a(t)}}function o(t){try{l(r["throw"](t))}catch(t){a(t)}}function l(t){t.done?n(t.value):i(t.value).then(s,o)}l((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(e){return l([t,e])}}function l(o){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(n=0)),n)try{if(r=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=e.call(t,n)}catch(t){o=[6,t];i=0}finally{r=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-eebd57c0.system.js","./p-8f7b9e36.system.js"],(function(t){"use strict";var e,n,r,i;return{setters:[function(t){e=t.r;n=t.h;r=t.g},function(t){i=t.a}],execute:function(){var a=":host{display:block}";var s=t("salla_advertisement",function(){function t(t){var n=this;e(this,t);var r;this.position=undefined;this.advertisements=undefined;this.advertIcon=undefined;this.currentSlug=salla.config.get("page.slug");salla.onReady((function(){n.currentSlug=salla.config.get("page.slug")}));this.advSlot=((r=this.host.querySelector('[slot="adv"]'))===null||r===void 0?void 0:r.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,e){if(!e){salla.storage.set("statusAd-".concat(t.id),"dismissed");i({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(e){return n("div",{class:{"s-hidden":t.isNotVisible(e),"s-advertisement":true},"data-id":e.id,style:{"background-color":e.colors.bg,color:e.colors.text}},n("div",{id:"adv-slot",innerHTML:t.advSlot.replace("{iconElem}",'<i class="s-advertisement-content-icon '.concat(e.icon,'"></i>')).replace("{urlElem}",e.url?'<a href="'.concat(e.url,'" target="').concat(e.target,'">').concat(e.description,"</a>"):e.description).replace("{closeElem}",'<button class="s-advertisement-action" aria-label="close-alert"><i class="sicon-cancel"></i></button>').replace("{icon}",e.icon).replace("{url}",e.url).replace("{target}",e.target).replace("{description}",e.description).replace("{bg_color}",e.colors.bg).replace("{text_color}",e.colors.text)}))}))};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){switch(e.label){case 0:return[4,salla.api.advertisement.fetch(this.currentSlug).then((function(e){var n=e.data;if(Array.isArray(n)&&n.length>0){for(var r=0,i=n;r<i.length;r++){var a=i[r];if(!salla.storage.get("statusAd-".concat(a.id))){t.advertisements=[a];break}}}}))];case 1:e.sent();return[2]}}))}))};t.prototype.componentDidRender=function(){var t=this;var e;if(Array.isArray(this.advertisements)&&!this.advertisements.length||!this.advertisements){return}setTimeout((function(){var e=t.host.querySelector(".s-advertisement-action");if(e){e.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)}));(e=this.host.querySelector('[slot="adv"]'))===null||e===void 0?void 0:e.remove();i({targets:this.host,opacity:[0,1],duration:300,height:[0,this.host.clientHeight],easing:"easeInOutQuad"})};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());s.style=a}}}));
|
|
5
|
+
//# sourceMappingURL=p-5ab9e320.system.entry.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
System.register(["./p-
|
|
5
|
-
//# sourceMappingURL=p-
|
|
4
|
+
System.register(["./p-eebd57c0.system.js"],(function(e){"use strict";var t,n,s,a;return{setters:[function(e){t=e.r;n=e.h;s=e.H;a=e.g}],execute:function(){var r=":host{display:block}";var i=e("salla_apps_icons",function(){function e(e){var n=this;t(this,e);var s;this.apps=salla.config.get("store.apps");this.hideTitle=undefined;this.appsTitle=undefined;this.vertical=undefined;this.appSlot=((s=this.host.querySelector('[slot="app"]'))===null||s===void 0?void 0:s.innerHTML)||"<img alt={name} src={icon} />";salla.onReady((function(){n.apps=salla.config.get("store.apps")}));salla.lang.onLoaded((function(){n.appsTitle=salla.lang.get("blocks.footer.download_apps")}))}e.prototype.getAppsArray=function(){return Object.entries(this.apps).map((function(e){var t=e[0],n=e[1];return{name:t,value:n}}))};e.prototype.render=function(){var e=this;var t=this.getAppsArray();if(Array.isArray(t)&&!t.length){return}return n(s,{class:"s-apps-icons"},!this.hideTitle&&n("h3",null,this.appsTitle),n("div",{class:{"s-apps-icons-list":true,vertical:this.vertical}},t.map((function(t,s){return n("a",{key:s,href:t.value,rel:"noreferrer",target:"_blank",class:"s-apps-icons-item",id:"app-slot",innerHTML:e.appSlot.replace(/\{icon\}/g,salla.url.cdn("images/".concat(t.name,".png"))).replace(/\{name\}/g,t.name)})}))))};e.prototype.componentDidRender=function(){var e;(e=this.host.querySelector('[slot="app"]'))===null||e===void 0?void 0:e.remove()};Object.defineProperty(e.prototype,"host",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());i.style=r}}}));
|
|
5
|
+
//# sourceMappingURL=p-5add79da.system.entry.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,c as i,h as e,H as s}from"./p-
|
|
5
|
-
//# sourceMappingURL=p-
|
|
4
|
+
import{r as t,c as i,h as e,H as s}from"./p-294dad80.js";const r=":host{display:block}.rtl .rtl-range-slider,[dir=rtl] .rtl-range-slider{-webkit-transform:rotateY(180deg);transform:rotateY(180deg)}.rtl .rtl-range-numbers,[dir=rtl] .rtl-range-numbers{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.rtl .form-select,.rtl select,[dir=rtl] .form-select,[dir=rtl] select{background-position:left 0.5rem center;padding-right:12px}.rtl .menu-divide li:not(:last-child):after,[dir=rtl] .menu-divide li:not(:last-child):after{left:0;right:auto}input[type=range]::-webkit-slider-thumb{pointer-events:all;width:24px;height:24px;-webkit-appearance:none}[type=checkbox]:checked{background-size:80%}";const l=class{constructor(e){t(this,e);this.changed=i(this,"changed",7);this.filterValues=[];this.minPrice=undefined;this.maxPrice=undefined;this.option=undefined;this.filtersData=undefined;this.min=0;this.max=1e4;this.priceOptions=undefined;this.moreThanLabel="أكثر من";this.lessThanLabel="أقل من";this.toLabel="الى";this.fromLabel="من";this.typing=false;this.debounce=setTimeout((()=>""),1e3)}connectedCallback(){var t;if(this.filtersData&&((t=this.filtersData)===null||t===void 0?void 0:t.price)){this.minPrice=this.filtersData.price.min;this.maxPrice=this.filtersData.price.max}salla.lang.onLoaded((()=>{this.moreThanLabel=salla.lang.getWithDefault("common.elements.more_than",this.moreThanLabel);this.lessThanLabel=salla.lang.getWithDefault("common.elements.less_than",this.lessThanLabel);this.toLabel=salla.lang.getWithDefault("common.elements.to",this.toLabel);this.fromLabel=salla.lang.getWithDefault("common.elements.from",this.fromLabel)}));if(this.option.values.length==1){return}if(this.option.values.length<=5){this.filterValues=this.option.values;return}const i=Math.ceil(this.option.values.length/5);for(let t=0;t<this.option.values.length;t+=i){this.filterValues.push(this.option.values.slice(t,t+i).reduce(((t,i)=>{t.to=i.to;t.count+=i.count;return t})))}}async reset(){this.minInput.value=null;this.maxInput.value=null}getPriceLabel(t){if(isNaN(t.from)||t.from<1){return`${this.lessThanLabel} ${salla.money(t.to)}`}if(isNaN(t.to)||t.to<1){return`${this.moreThanLabel} ${salla.money(t.from)}`}return`${salla.money(t.from)} ${this.toLabel} ${salla.money(t.to)}`}handleMinMaxPrice(t,i){this.minPrice=i.from;this.maxPrice=i.to!="*"?i.to:"";this.changedEventHandler(t)}async changedEventHandler(t,i=false){this.typing=true;salla.helpers.inputDigitsOnly(t.target);let e=t?t.target.value*1:"";clearTimeout(this.debounce);this.debounce=setTimeout((()=>{this.typing=false;if(i){if(!this.maxPrice&&e){this.maxPrice=""}this.minInputValidation(e)}else{if(!this.minPrice&&e){this.minPrice=0}this.maxInputValidation(e)}this.isReady&&this.changed.emit({event:t,option:this.option,value:{max:this.maxPrice,min:this.minPrice}})}),1e3)}minInputValidation(t){if(t&&(t>this.max||this.maxPrice&&t>this.maxPrice)){return}if(t<this.min){this.minPrice=this.min;return}if(t){this.minPrice=t}}maxInputValidation(t){if(t&&(t<this.min||this.minPrice&&t<this.minPrice)){return}if(t>this.max){this.maxPrice=this.max;return}if(t){this.maxPrice=t}}isChecked(t){if(!this.minPrice&&!this.maxPrice){return false}let i=(t.from<1||t.from=="*")&&this.minPrice==0||t.from==this.minPrice;let e=t.to=="*"||!t.to||t.to==this.maxPrice;return i&&e}render(){return e(s,null,this.filterValues.map(((t,i)=>e("label",{class:"s-filters-label",htmlFor:`${this.option.key}-${i}`},e("input",{id:`${this.option.key}-${i}`,name:"price",type:"radio",checked:this.isChecked(t),class:"s-filters-radio",onChange:i=>this.handleMinMaxPrice(i,t)}),this.getPriceLabel(t)))),e("div",{class:"flex justify-center items-center"},e("div",{class:"relative max-w-xl w-full"},e("div",{class:"s-price-range-inputs"},e("div",{class:"s-price-range-relative"},e("div",{class:"s-price-range-currency"}," ",salla.config.currency().symbol),e("input",{type:"number",maxlength:"5",ref:t=>this.minInput=t,onInput:t=>this.changedEventHandler(t,true),value:this.minPrice,placeholder:this.fromLabel,class:"s-price-range-number-input"})),e("div",{class:"s-price-range-gray-text"}," -"),e("div",{class:"s-price-range-relative"},e("div",{class:"s-price-range-currency"}," ",salla.config.currency().symbol),e("input",{type:"number",maxlength:"5",placeholder:this.toLabel,ref:t=>this.maxInput=t,onInput:t=>this.changedEventHandler(t),value:this.maxPrice,class:"s-price-range-number-input","aria-describedby":"price-currency"}))))))}componentDidLoad(){this.isReady=true}};l.style=r;export{l as salla_price_range};
|
|
5
|
+
//# sourceMappingURL=p-5cf571e0.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-eebd57c0.system.js"],(function(t){"use strict";var e,i,a,r;return{setters:[function(t){e=t.r;i=t.h;a=t.H;r=t.g}],execute:function(){var o='salla-installment:empty{display:none}#tabbyPromoWrapper{background:white;border-radius:0.375rem;-webkit-transition:-webkit-box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), -webkit-box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);margin-bottom:20px}.salla-y #tabbyPromoWrapper{border:1px solid var(--color-grey-dark);border-radius:12px}#tabbyPromoWrapper:hover{-webkit-box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922);box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}#tabbyPromoWrapper #tabbyPromo *{font-family:var(--font-main)}#tabbyPromoWrapper #tabbyPromo>div>div{max-width:none;-webkit-box-shadow:none;box-shadow:none;border:none}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet{max-width:100%;min-height:100px;padding:18px 20px;border:none !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__text,#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-size:var(--font-sm);color:var(--color-text) !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-weight:bold}.tabby-promo-wrapper #tabby-promo{font-family:var(--font-main) !important}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-title{font-size:var(--font-md)}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-desc{font-size:var(--font-sm);line-height:20px}.tamara-product-widget{margin-bottom:20px}.tamara-product-widget,.spotii-wrapper{min-height:100px;position:relative;color:var(--color-text);font-size:var(--font-sm);line-height:1.25;padding:18px 20px 18px 100px !important;background:white;border-radius:0.375rem;-webkit-transition:-webkit-box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), -webkit-box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1)}.salla-y .tamara-product-widget,.salla-y .spotii-wrapper{border-radius:12px;border:1px solid var(--color-grey-dark)}.tamara-product-widget:hover,.spotii-wrapper:hover{-webkit-box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922);box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}.tamara-product-widget .spotii-logo,.spotii-wrapper .spotii-logo{float:left;margin:0 0 0 -75px}.ltr .tamara-product-widget,.ltr .spotii-wrapper{text-align:left;padding:18px 100px 18px 20px !important}.ltr .tamara-product-widget .spotii-logo,.ltr .spotii-wrapper .spotii-logo{float:right;margin:0 -75px 0 0}.ltr .tamara-product-widget .spotii-product-widget,.ltr .spotii-wrapper .spotii-product-widget{text-align:left !important}.spotii-wrapper{margin-bottom:20px}.spotii-wrapper .spotii-promo{font-size:var(--font-md)}.spotii-wrapper .spotii-product-widget{font-size:var(--font-sm) !important;margin-top:10px}.tamara-product-widget .tamara-logo{position:absolute;left:20px;top:18px;margin:0 !important}.ltr .tamara-product-widget .tamara-logo{right:20px;left:auto}.tamara-product-widget span{font-family:var(--font-main);font-size:var(--font-sm);color:var(--color-text)}.tamara-product-widget span:last-child{display:block;position:relative;margin-top:8px}.tamara-popup__wrap{overflow:auto !important}.s-installment-mispay-wrapper{font-family:"Noto Sans Arabic", sans-serif;font-size:14px;text-align:right;padding:24px 20px 24px 0px;gap:42px;direction:rtl;line-height:22px;color:rgb(0, 0, 0);min-width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;background-color:white;border-radius:10px;border:1px solid var(--07--Light-Theme-Gray-color-gray-300, #EEE);margin:15px 0;display:-ms-flexbox;display:flex;-webkit-transition:-webkit-box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), -webkit-box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1)}.s-installment-mispay-wrapper:hover{-webkit-box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922);box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}.s-installment-mispay-content{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;margin:15px !important}.s-installment-mispay-content-text{color:#292929;margin:0 16px 0 0;width:80%;position:absolute;left:14px;text-align:left}.s-installment-mispay-content img{height:28px;width:70px;display:inline-block;max-height:100%;vertical-align:middle;fill:none;stroke:unset;width:auto;position:absolute}.rtl .s-installment-mispay-content-text{right:14px;text-align:right;margin:0 0 0 16px}.rtl .s-installment-mispay-content img{left:14px !important}.ltr .s-installment-mispay-content img{right:14px !important}';var s=t("salla_installment",function(){function t(t){var i=this;e(this,t);this.tabbyBorderRemoved=false;this.tabbyRemoveBorderTries=0;this.price=undefined;this.language=salla.config.get("user.language_code");this.currency=salla.config.get("user.currency_code");this.tamaraIsActive=undefined;this.tabbyIsActive=undefined;this.spotiiIsActive=undefined;this.mispayActive=undefined;this.installment_sheria_text=function(t){return salla.lang.get("pages.products.installments",t)};salla.lang.onLoaded((function(){i.installment_sheria_text({payment:salla.money(parseFloat(i.price)),amount:salla.money(parseFloat(i.price)/3),installments:3});var t=salla.config.get("store.settings.installments");if(t){i.tamaraIsActive=t.includes("tamara_installment");i.tabbyIsActive=t.includes("tabby_installment");i.spotiiIsActive=t.includes("spotii_pay");i.mispayActive=t.includes("mispay_installment")}i.renderInstallments()}));salla.event.on("product::price.updated",(function(t){var e=t.data;if(!e.price||e.price==i.price){return}i.price=e.price;i.renderInstallments(true)}))}t.prototype.render=function(){return i(a,null,this.tamaraIsActive?i("div",{class:"tamara-product-widget","data-price":this.price,"data-currency":this.currency,"data-lang":this.language,"data-payment-type":"installment"}):"",this.tabbyIsActive?i("div",{id:"tabbyPromoWrapper"},i("div",{id:"tabbyPromo"})):"",this.spotiiIsActive?i("div",{class:"spotii-wrapper"},i("div",{class:"spotii-promo"})):"",this.mispayActive?i("div",{class:"s-installment-mispay-wrapper"},i("div",{class:"s-installment-mispay-content"},i("img",{src:salla.url.cdn("images/payment/png/mispay.png"),alt:"mispay"}),i("span",{class:"s-installment-mispay-content-text"},this.installment_sheria_text({payment:salla.money(parseFloat(this.price)),amount:salla.money(parseFloat(this.price)/3),installments:3})))):"")};t.prototype.renderInstallments=function(t){var e=this;if(t===void 0){t=false}if(this.tamaraIsActive){if(t){var i=document.querySelector('script[src="https://cdn.tamara.co/widget/product-widget.min.js"]');if(i){i.remove()}}var a=document.createElement("script");a.setAttribute("src","https://cdn.tamara.co/widget/product-widget.min.js");document.head.appendChild(a);a.onload=function(){window.TamaraProductWidget.init({lang:e.language});setTimeout((function(){window.TamaraProductWidget.render()}),300)}}if(this.tabbyIsActive){if(t){var r=this.host.querySelector("#tabbyPromoWrapper");if(r){r.remove()}var o=document.createElement("div");o.setAttribute("id","tabbyPromoWrapper");var s=document.createElement("div");s.setAttribute("id","tabbyPromo");o.appendChild(s);this.host.appendChild(o);var n=document.querySelector('script[src="https://checkout.tabby.ai/tabby-promo.js"]');if(n){n.remove()}}var p=document.createElement("script");p.setAttribute("src","https://checkout.tabby.ai/tabby-promo.js");document.head.appendChild(p);p.onload=function(){var t=window.TabbyPromo;new t({selector:"#tabbyPromo",currency:e.currency,price:e.price,lang:e.language});document.querySelectorAll(".tabby-promo-snippet__logo").forEach((function(t){t.setAttribute("aria-label","Tabby Logo")}))};this.removeTabbyBorder()}if(this.spotiiIsActive){if(t){var l=this.host.querySelector(".spotii-wrapper");if(l){l.remove()}var b=document.createElement("div");b.classList.add("spotii-wrapper");var d=document.createElement("div");d.classList.add("spotii-promo");b.appendChild(d);this.host.appendChild(b);var m=document.querySelector('script[src="'+salla.url.cdn("js/price-widget-ar-salla.js")+'"]');if(m){m.remove()}}var c=salla.money((Number(this.price)/3).toFixed(2));var u=salla.config.get("theme.is_rtl",true);window.spotiiConfig={targetXPath:[".spotii-wrapper"],renderToPath:[".spotii-promo"],numberOfPayment:3,currency:this.currency,templateLine:"${textOne} ${number} ${textTwo} "+c+"${logo} ${info}",textOne:u?"جزء الدفع على":"Split it into",textTwo:u?"أقساط متساوية بدون تكاليف اضافية بقيمة":"payments of",textThree:"مع",price:this.price};var g=document.createElement("script");g.setAttribute("src",salla.url.cdn("js/price-widget-ar-salla.js"));document.head.appendChild(g)}};t.prototype.removeTabbyBorder=function(){var t=this;if(this.tabbyBorderRemoved||this.tabbyRemoveBorderTries>5){return}this.tabbyRemoveBorderTries++;setTimeout((function(){var e=document.querySelector("#tabbyPromo>div>div");e=e?e.shadowRoot.querySelector('div[class^="styles__tabby-promo-snippet--"]'):null;if(e){e.style="border: none; margin: 15px 0!important;";t.tabbyBorderRemoved=true}else{t.removeTabbyBorder()}}),this.tabbyRemoveBorderTries*500)};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());s.style=o}}}));
|
|
5
|
+
//# sourceMappingURL=p-5d8d9481.system.entry.js.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
System.register([],(function(t){"use strict";return{execute:function(){var e=t("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>check</title>\n<path d="M27.521 6.976c-0.569-0.472-1.407-0.393-1.879 0.171l-12.567 15.080-7.003-4.668c-0.615-0.411-1.441-0.244-1.849 0.369-0.409 0.612-0.244 1.441 0.369 1.849l8 5.333c0.227 0.149 0.484 0.223 0.739 0.223 0.384 0 0.763-0.165 1.027-0.48l13.333-16c0.471-0.565 0.393-1.407-0.171-1.877z"></path>\n</svg>\n')}}}));
|
|
5
|
+
//# sourceMappingURL=p-61858adc.system.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":[],"mappings":""}
|