@salla.sa/twilight-components 2.14.272 → 2.14.274
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/{filepond-EG2Mf8a1.js → filepond-L1nMkdqn.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-DjNsnxTw.js → filepond-plugin-file-poster-BYZl5BE2.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-BlM1btNO.js → filepond-plugin-file-validate-size-DSrSXg4-.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-DhymSoh9.js → filepond-plugin-file-validate-type-CgnsyE2V.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-BQfvfpQ1.js → filepond-plugin-image-edit-lODj8ghv.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-DOi06s13.js → filepond-plugin-image-exif-orientation-uQ5EYlsy.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-Rfix7Xbt.js → filepond-plugin-image-preview-Cm1OgAvZ.js} +1 -1
- package/dist/cjs/{index-DS7mXxWq.js → index-BEeccvkl.js} +136 -26
- package/dist/cjs/{index-vIV5iX-W.js → index-D0NII6ks.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -4
- package/dist/cjs/{salla-add-product-button_51.cjs.entry.js → salla-accordion_62.cjs.entry.js} +2104 -120
- 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-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 +2 -2
- 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-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/{salla-accordion_4.cjs.entry.js → salla-order-details-options.cjs.entry.js} +1 -100
- package/dist/cjs/salla-order-details.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-summary.cjs.entry.js +2 -2
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +3 -3
- package/dist/cjs/salla-price-range.cjs.entry.js +3 -3
- package/dist/cjs/salla-review-card.cjs.entry.js +2 -2
- package/dist/cjs/salla-reviews-page.cjs.entry.js +2 -2
- package/dist/cjs/salla-reviews.cjs.entry.js +2 -2
- package/dist/cjs/salla-social.cjs.entry.js +2 -2
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +3 -4
- package/dist/collection/collection-manifest.json +5 -0
- package/dist/collection/components/salla-accordion/salla-accordion-head.js +8 -2
- package/dist/collection/components/salla-comments/salla-comments.js +20 -1
- package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +33 -5
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-cart.css +0 -0
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-cart.js +89 -0
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.css +0 -0
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.js +195 -0
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.css +3 -0
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.js +595 -0
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.css +0 -0
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.js +174 -0
- package/dist/collection/components/salla-multiple-bundle-product/interfaces.js +1 -0
- package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.css +3 -0
- package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.js +132 -0
- package/dist/collection/components/salla-notifications/salla-notification-item.js +1 -1
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +1 -1
- package/dist/collection/components/salla-order-details/salla-order-details.js +1 -1
- package/dist/collection/components/salla-order-summary/salla-order-summary.js +1 -1
- package/dist/collection/components/salla-payments/salla-payments.js +2 -2
- package/dist/collection/components/salla-placeholder/salla-placeholder.js +1 -1
- package/dist/collection/components/salla-price-range/salla-price-range.js +2 -2
- package/dist/collection/components/salla-product-availability/salla-product-availability.js +1 -1
- package/dist/collection/components/salla-product-card/salla-product-card.js +5 -5
- package/dist/collection/components/salla-product-options/salla-product-options.js +105 -22
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
- package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +1 -1
- package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
- package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
- package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
- package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
- package/dist/collection/components/salla-search/salla-search.js +3 -3
- package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
- package/dist/collection/components/salla-slider/salla-slider.js +2 -2
- package/dist/collection/components/salla-social/salla-social.js +1 -1
- package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
- package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
- package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/salla-accordion-head2.js +2 -2
- package/dist/components/salla-comments.js +20 -1
- package/dist/components/salla-conditional-fields2.js +28 -6
- package/dist/components/salla-multiple-bundle-product-cart.d.ts +11 -0
- package/dist/components/salla-multiple-bundle-product-cart.js +9 -0
- package/dist/components/salla-multiple-bundle-product-cart2.js +153 -0
- package/dist/components/salla-multiple-bundle-product-details.d.ts +11 -0
- package/dist/components/salla-multiple-bundle-product-details.js +9 -0
- package/dist/components/salla-multiple-bundle-product-details2.js +283 -0
- package/dist/components/salla-multiple-bundle-product-options-modal.d.ts +11 -0
- package/dist/components/salla-multiple-bundle-product-options-modal.js +9 -0
- package/dist/components/salla-multiple-bundle-product-options-modal2.js +585 -0
- package/dist/components/salla-multiple-bundle-product-slider.d.ts +11 -0
- package/dist/components/salla-multiple-bundle-product-slider.js +9 -0
- package/dist/components/salla-multiple-bundle-product-slider2.js +81 -0
- package/dist/components/salla-multiple-bundle-product.d.ts +11 -0
- package/dist/components/salla-multiple-bundle-product.js +210 -0
- package/dist/components/salla-notification-item2.js +1 -1
- package/dist/components/salla-offer-modal.js +1 -1
- package/dist/components/salla-order-details.js +1 -1
- package/dist/components/salla-order-summary.js +1 -1
- package/dist/components/salla-payments.js +2 -2
- package/dist/components/salla-placeholder2.js +1 -1
- package/dist/components/salla-price-range2.js +2 -2
- package/dist/components/salla-product-availability2.js +1 -1
- package/dist/components/salla-product-card2.js +5 -5
- package/dist/components/salla-product-options.js +1 -810
- package/dist/{esm/salla-product-options.entry.js → components/salla-product-options2.js} +197 -30
- package/dist/components/salla-product-size-guide.js +2 -2
- package/dist/components/salla-quantity-input.js +1 -1
- package/dist/components/salla-quick-buy2.js +1 -1
- package/dist/components/salla-review-card2.js +1 -1
- package/dist/components/salla-reviews-page.js +1 -1
- package/dist/components/salla-reviews.js +1 -1
- package/dist/components/salla-scopes.js +1 -1
- package/dist/components/salla-search.js +3 -3
- package/dist/components/salla-skeleton2.js +1 -1
- package/dist/components/salla-slider2.js +2 -2
- package/dist/components/salla-social-share.js +1 -1
- package/dist/components/salla-social.js +1 -1
- package/dist/components/salla-tab-content2.js +1 -1
- package/dist/components/salla-tab-header2.js +1 -1
- package/dist/components/salla-tabs2.js +1 -1
- package/dist/components/salla-tel-input2.js +1 -1
- package/dist/components/salla-tooltip2.js +1 -1
- package/dist/components/salla-user-settings.js +1 -1
- package/dist/esm/{filepond-DbR8YXoW.js → filepond-JStnJXdo.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-DEj3O3wZ.js → filepond-plugin-file-poster-13kSl6pa.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-DYnIp5yF.js → filepond-plugin-file-validate-size-DGYz9wX6.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-Cx_PD8SU.js → filepond-plugin-file-validate-type-7M_EeTPs.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-BwmXRkmP.js → filepond-plugin-image-edit-C5N0Q0IF.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-BtsMS4U-.js → filepond-plugin-image-exif-orientation-BvYJ1LVk.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-DQ0c3hIt.js → filepond-plugin-image-preview-P4HnGsSt.js} +1 -1
- package/dist/esm/{index-D5PGwR59.js → index-Bdj1TBK9.js} +136 -26
- package/dist/esm/{index-xiIpq8fU.js → index-CqLymITv.js} +1 -1
- package/dist/esm/loader.js +3 -4
- package/dist/esm/{salla-add-product-button_51.entry.js → salla-accordion_62.entry.js} +2084 -111
- 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-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 +2 -2
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/{salla-accordion_4.entry.js → salla-order-details-options.entry.js} +2 -98
- package/dist/esm/salla-order-details.entry.js +2 -2
- package/dist/esm/salla-order-summary.entry.js +2 -2
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +3 -3
- package/dist/esm/salla-price-range.entry.js +3 -3
- package/dist/esm/salla-review-card.entry.js +2 -2
- package/dist/esm/salla-reviews-page.entry.js +2 -2
- package/dist/esm/salla-reviews.entry.js +2 -2
- package/dist/esm/salla-social.entry.js +2 -2
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +2 -2
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/twilight.js +3 -4
- package/dist/twilight/{p-56fa3b9c.entry.js → p-0f8534fd.entry.js} +1 -1
- package/dist/twilight/{p-3f412ab2.entry.js → p-1be88437.entry.js} +1 -1
- package/dist/twilight/{p-10856491.entry.js → p-1d81f143.entry.js} +1 -1
- package/dist/twilight/{p-4611a11b.entry.js → p-282f4f69.entry.js} +1 -1
- package/dist/twilight/{p-9e3f55be.entry.js → p-34e10e96.entry.js} +1 -1
- package/dist/twilight/{p-c15928d5.entry.js → p-3a4137eb.entry.js} +1 -1
- package/dist/twilight/{p-0ffafdea.entry.js → p-456d49c3.entry.js} +1 -1
- package/dist/twilight/{p-a61e2b8e.entry.js → p-4d05539c.entry.js} +1 -1
- package/dist/twilight/{p-e3b0a71f.entry.js → p-550d2b59.entry.js} +1 -1
- package/dist/twilight/{p-de200512.entry.js → p-57629f65.entry.js} +1 -1
- package/dist/twilight/p-5971eca7.entry.js +4 -0
- package/dist/twilight/p-723d7b1b.entry.js +4 -0
- package/dist/twilight/{p-92848d53.entry.js → p-78e6e403.entry.js} +1 -1
- package/dist/twilight/{p-2613f6dc.entry.js → p-895bd462.entry.js} +1 -1
- package/dist/twilight/p-9760fa21.entry.js +4 -0
- package/dist/twilight/{p-C4wd-bXb.js → p-AhRhML1e.js} +1 -1
- package/dist/twilight/{p-Bvez5luh.js → p-BP3jjHyr.js} +1 -1
- package/dist/twilight/{p-D5PGwR59.js → p-Bdj1TBK9.js} +2 -2
- package/dist/twilight/{p-BsHa_73h.js → p-Btn8p1Mk.js} +1 -1
- package/dist/twilight/{p-D0ZZ4jO5.js → p-CDM6fsL2.js} +2 -2
- package/dist/twilight/{p-CH8-uKSN.js → p-Ccp_rmSW.js} +1 -1
- package/dist/twilight/{p-DV_VEuIe.js → p-D6-aDTP4.js} +1 -1
- package/dist/twilight/{p-D5p2t_CX.js → p-DD6CdbcU.js} +1 -1
- package/dist/twilight/{p-DEUne75O.js → p-DYhkBiMu.js} +1 -1
- package/dist/twilight/p-a1e9d695.entry.js +4 -0
- package/dist/twilight/{p-eaad31d1.entry.js → p-a5681537.entry.js} +1 -1
- package/dist/twilight/{p-e95284d7.entry.js → p-a8d01888.entry.js} +1 -1
- package/dist/twilight/p-b254a752.entry.js +4 -0
- package/dist/twilight/{p-eae51196.entry.js → p-bd7a0c4f.entry.js} +1 -1
- package/dist/twilight/{p-7df916fc.entry.js → p-bf90a8c8.entry.js} +1 -1
- package/dist/twilight/p-c293f9c1.entry.js +11 -0
- package/dist/twilight/{p-b94ebbd9.entry.js → p-c9ad0ad1.entry.js} +1 -1
- package/dist/twilight/p-cc93a79e.entry.js +4 -0
- package/dist/twilight/{p-2bf21126.entry.js → p-e825aae4.entry.js} +1 -1
- package/dist/twilight/{p-8ba8efe1.entry.js → p-e99645f0.entry.js} +1 -1
- package/dist/twilight/{p-f3c29342.entry.js → p-f232e683.entry.js} +1 -1
- package/dist/twilight/{p-65b1fcea.entry.js → p-f7784dda.entry.js} +1 -1
- package/dist/twilight/{p-280c1f64.entry.js → p-f85916d5.entry.js} +1 -1
- package/dist/twilight/{p-bcab2639.entry.js → p-f96be282.entry.js} +1 -1
- package/dist/twilight/{p-b40d5871.entry.js → p-faee9d58.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-accordion/salla-accordion-head.d.ts +6 -0
- package/dist/types/components/salla-conditional-fields/salla-conditional-fields.d.ts +2 -0
- package/dist/types/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-cart.d.ts +10 -0
- package/dist/types/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.d.ts +20 -0
- package/dist/types/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.d.ts +46 -0
- package/dist/types/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.d.ts +22 -0
- package/dist/types/components/salla-multiple-bundle-product/interfaces.d.ts +101 -0
- package/dist/types/components/salla-multiple-bundle-product/salla-multiple-bundle-product.d.ts +42 -0
- package/dist/types/components/salla-product-options/salla-product-options.d.ts +21 -1
- package/dist/types/components.d.ts +298 -2
- package/package.json +5 -5
- package/dist/cjs/app-globals-OVEmNa5W.js +0 -38
- package/dist/cjs/camera-DytepEoK.js +0 -13
- package/dist/cjs/minus-CCryh1qf.js +0 -21
- package/dist/cjs/salla-booking-field_2.cjs.entry.js +0 -280
- package/dist/cjs/salla-product-options.cjs.entry.js +0 -715
- package/dist/esm/app-globals-BKgAyoNJ.js +0 -36
- package/dist/esm/camera-C6jIkM-X.js +0 -11
- package/dist/esm/minus-DfeagqF1.js +0 -18
- package/dist/esm/salla-booking-field_2.entry.js +0 -277
- package/dist/twilight/p-19c38b4a.entry.js +0 -11
- package/dist/twilight/p-8272b58f.entry.js +0 -4
- package/dist/twilight/p-989fcbb4.entry.js +0 -4
- package/dist/twilight/p-9f47b72b.entry.js +0 -4
- package/dist/twilight/p-C6jIkM-X.js +0 -4
- package/dist/twilight/p-DfeagqF1.js +0 -4
- package/dist/twilight/p-KHt1Smzh.js +0 -4
- package/dist/twilight/p-b8d41065.entry.js +0 -4
- package/dist/twilight/p-dd9695d6.entry.js +0 -4
- package/dist/twilight/p-e2ebb686.entry.js +0 -4
- package/dist/twilight/p-e30f7c20.entry.js +0 -4
- package/dist/twilight/p-fcb3e719.entry.js +0 -4
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import { L as LazyLoad } from './index-D5PGwR59.js';
|
|
5
|
-
|
|
6
|
-
function appGlobalScript () {
|
|
7
|
-
// Only initialize it one time for the entire application
|
|
8
|
-
if (!document.lazyLoadInstance) {
|
|
9
|
-
document.lazyLoadInstance = new LazyLoad({
|
|
10
|
-
use_native: true, //native not support lazyLoad backgrounds
|
|
11
|
-
// restore_on_error: true,
|
|
12
|
-
// Your custom settings go here
|
|
13
|
-
// callback_finish: () => document.lazyLoadBackgrounds.update(document.querySelectorAll('.lazy[data-bg]:not(.loaded)'))
|
|
14
|
-
});
|
|
15
|
-
document.lazyLoadBackgrounds = new LazyLoad({
|
|
16
|
-
elements_selector: '.lazy[data-bg]:not(.loaded)',
|
|
17
|
-
});
|
|
18
|
-
//native way doesn't load backgrounds
|
|
19
|
-
// document.lazyLoadBackgrounds = new LazyLoad();
|
|
20
|
-
}
|
|
21
|
-
//make sure that lazyLoad will be fired after loading the page too.
|
|
22
|
-
if (document.readyState !== 'complete') {
|
|
23
|
-
document.addEventListener("DOMContentLoaded", () => document.lazyLoadInstance.update());
|
|
24
|
-
document.addEventListener("DOMContentLoaded", () => document.lazyLoadBackgrounds.update());
|
|
25
|
-
}
|
|
26
|
-
// fire it after each load more request;
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
salla.infiniteScroll.event.onAppend(() => {
|
|
29
|
-
document.lazyLoadInstance.update();
|
|
30
|
-
document.lazyLoadBackgrounds.update();
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const globalScripts = appGlobalScript;
|
|
35
|
-
|
|
36
|
-
export { globalScripts as g };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
var CameraIcon = `<!-- Generated by IcoMoon.io -->
|
|
5
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
6
|
-
<title>camera</title>
|
|
7
|
-
<path d="M16 10.667c-4.044 0-7.333 3.289-7.333 7.333s3.289 7.333 7.333 7.333 7.333-3.289 7.333-7.333-3.289-7.333-7.333-7.333zM16 22.667c-2.573 0-4.667-2.093-4.667-4.667s2.093-4.667 4.667-4.667 4.667 2.093 4.667 4.667-2.093 4.667-4.667 4.667zM28 5.333h-3.287l-2.271-3.407c-0.248-0.371-0.664-0.593-1.109-0.593h-10.667c-0.445 0-0.861 0.223-1.109 0.593l-2.271 3.407h-3.287c-2.205 0-4 1.795-4 4v17.333c0 2.205 1.795 4 4 4h24c2.205 0 4-1.795 4-4v-17.333c0-2.205-1.795-4-4-4zM29.333 26.667c0 0.735-0.599 1.333-1.333 1.333h-24c-0.735 0-1.333-0.599-1.333-1.333v-17.333c0-0.735 0.599-1.333 1.333-1.333h4c0.445 0 0.861-0.223 1.109-0.593l2.272-3.407h9.239l2.271 3.407c0.248 0.371 0.664 0.593 1.109 0.593h4c0.735 0 1.333 0.599 1.333 1.333zM25.333 10.66c-0.736 0-1.333 0.604-1.333 1.34s0.597 1.333 1.333 1.333 1.333-0.597 1.333-1.333v-0.013c0-0.736-0.597-1.327-1.333-1.327z"></path>
|
|
8
|
-
</svg>
|
|
9
|
-
`;
|
|
10
|
-
|
|
11
|
-
export { CameraIcon as C };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
var plusIcon = `<!-- Generated by IcoMoon.io -->
|
|
5
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
6
|
-
<title>add</title>
|
|
7
|
-
<path d="M26.667 14.667h-9.333v-9.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v9.333h-9.333c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333h9.333v9.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-9.333h9.333c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333z"></path>
|
|
8
|
-
</svg>
|
|
9
|
-
`;
|
|
10
|
-
|
|
11
|
-
var minusIcon = `<!-- Generated by IcoMoon.io -->
|
|
12
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
13
|
-
<title>minus</title>
|
|
14
|
-
<path d="M26.667 14.667h-21.333c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333h21.333c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333z"></path>
|
|
15
|
-
</svg>
|
|
16
|
-
`;
|
|
17
|
-
|
|
18
|
-
export { minusIcon as m, plusIcon as p };
|
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-D5PGwR59.js';
|
|
5
|
-
|
|
6
|
-
var BookingTime = `<!-- Generated by IcoMoon.io -->
|
|
7
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
8
|
-
<title>calendar-time</title>
|
|
9
|
-
<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>
|
|
10
|
-
</svg>
|
|
11
|
-
`;
|
|
12
|
-
|
|
13
|
-
var Calendar = `<!-- Generated by IcoMoon.io -->
|
|
14
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
15
|
-
<title>calendar</title>
|
|
16
|
-
<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>
|
|
17
|
-
</svg>
|
|
18
|
-
`;
|
|
19
|
-
|
|
20
|
-
var TimeIcon = `<!-- Generated by IcoMoon.io -->
|
|
21
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
22
|
-
<title>time</title>
|
|
23
|
-
<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>
|
|
24
|
-
</svg>
|
|
25
|
-
`;
|
|
26
|
-
|
|
27
|
-
const sallaBookingFieldCss = ":host{display:block}";
|
|
28
|
-
|
|
29
|
-
const SallaBookingField = class {
|
|
30
|
-
constructor(hostRef) {
|
|
31
|
-
registerInstance(this, hostRef);
|
|
32
|
-
this.invalidInput = createEvent(this, "invalidInput");
|
|
33
|
-
this.bookNowLabel = salla.lang.get('pages.cart.book_an_appointment', 'حجز موعد');
|
|
34
|
-
this.editLabel = salla.lang.get('pages.cart.edit_an_appointment', 'تعديل الموعد');
|
|
35
|
-
this.bookedLabel = salla.lang.get('pages.cart.booked_successfully', 'تمت اضافة الموعد بنجاح');
|
|
36
|
-
this.selectDate = salla.lang.get('pages.cart.select_appointment_date', 'حدد تاريخ الموعد');
|
|
37
|
-
this.bookingUrl = '';
|
|
38
|
-
this.iframeReady = false;
|
|
39
|
-
this.reservations = [];
|
|
40
|
-
// Load translations
|
|
41
|
-
salla.lang.onLoaded(() => this.setTranslations());
|
|
42
|
-
// Register event listeners
|
|
43
|
-
Salla.event.on('booking::open', (data) => this.handleBookingOpen(data));
|
|
44
|
-
}
|
|
45
|
-
async setTranslations() {
|
|
46
|
-
const setNestedAsync = (lang, key, value) => {
|
|
47
|
-
return new Promise((resolve) => {
|
|
48
|
-
salla.helpers.setNested(salla.lang.messages[lang], key, value);
|
|
49
|
-
resolve(true);
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
await setNestedAsync('ar.trans', 'pages.cart.book_an_appointment', 'حجز موعد');
|
|
53
|
-
await setNestedAsync('en.trans', 'pages.cart.book_an_appointment', 'Book an Appointment');
|
|
54
|
-
await setNestedAsync('ar.trans', 'pages.cart.edit_an_appointment', 'تعديل الموعد');
|
|
55
|
-
await setNestedAsync('en.trans', 'pages.cart.edit_an_appointment', 'Edit an Appointment');
|
|
56
|
-
await setNestedAsync('ar.trans', 'pages.cart.booked_successfully', 'تمت اضافة الموعد بنجاح');
|
|
57
|
-
await setNestedAsync('en.trans', 'pages.cart.booked_successfully', 'Booked Successfully');
|
|
58
|
-
await setNestedAsync('ar.trans', 'pages.cart.select_appointment_date', 'حدد تاريخ الموعد');
|
|
59
|
-
await setNestedAsync('en.trans', 'pages.cart.select_appointment_date', 'Select appointment date');
|
|
60
|
-
this.bookNowLabel = salla.lang.get('pages.cart.book_an_appointment');
|
|
61
|
-
this.editLabel = salla.lang.get('pages.cart.edit_an_appointment');
|
|
62
|
-
this.bookedLabel = salla.lang.get('pages.cart.booked_successfully');
|
|
63
|
-
this.selectDate = salla.lang.get('pages.cart.select_appointment_date');
|
|
64
|
-
}
|
|
65
|
-
openBookingModal(event, afterReload = false) {
|
|
66
|
-
if (afterReload && (!event.detail || typeof event.detail !== 'number' || event.detail !== this.productId)) {
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
if (salla.config.isGuest()) {
|
|
70
|
-
this.setAfterReloadEvent('booking::open-after-reload', this.productId);
|
|
71
|
-
salla.event.dispatch('login::open');
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
salla.booking.add(this.productId, false)
|
|
75
|
-
.then((resp) => {
|
|
76
|
-
if (resp.data.redirect.to !== 'booking') {
|
|
77
|
-
throw new Error('Unexpected redirect!');
|
|
78
|
-
}
|
|
79
|
-
salla.event.dispatch('booking::open', { url: resp.data.redirect.url, id: this.productId });
|
|
80
|
-
})
|
|
81
|
-
.catch((error) => {
|
|
82
|
-
salla.error(salla.lang.get('common.errors.error_occurred'));
|
|
83
|
-
salla.logger.error(error.response || error);
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
handleBookingOpen(data) {
|
|
87
|
-
if (data.id !== this.productId)
|
|
88
|
-
return;
|
|
89
|
-
this.bookingUrl = salla.url.addParamToUrl('product_id', data.id, data.url);
|
|
90
|
-
this.iframeReady = true;
|
|
91
|
-
setTimeout(() => {
|
|
92
|
-
this.modal.setTitle(this.selectDate);
|
|
93
|
-
this.modal.open();
|
|
94
|
-
}, 100);
|
|
95
|
-
}
|
|
96
|
-
setAfterReloadEvent(event, payload) {
|
|
97
|
-
salla.storage.set('afterReloadEvent', { event, payload });
|
|
98
|
-
}
|
|
99
|
-
emitAfterReloadEvent() {
|
|
100
|
-
const eventDetails = salla.storage.get('afterReloadEvent');
|
|
101
|
-
if (eventDetails && eventDetails.event) {
|
|
102
|
-
const customEvent = new CustomEvent(eventDetails.event, {
|
|
103
|
-
detail: eventDetails.payload
|
|
104
|
-
});
|
|
105
|
-
window.dispatchEvent(customEvent);
|
|
106
|
-
salla.storage.remove('afterReloadEvent');
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
componentWillLoad() {
|
|
110
|
-
if (this.option && this.option.details.length) {
|
|
111
|
-
this.reservations = this.option.details;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
componentDidLoad() {
|
|
115
|
-
window.addEventListener('booking::open-after-reload', (event) => this.openBookingModal(event, true));
|
|
116
|
-
this.emitAfterReloadEvent();
|
|
117
|
-
window.addEventListener('message', this.handleMessageEvent.bind(this));
|
|
118
|
-
this.reservationsInput.addEventListener('invalid', e => this.invalidInput.emit(e));
|
|
119
|
-
this.reservationsInput.addEventListener('input', () => {
|
|
120
|
-
this.reservationsInput.setCustomValidity('');
|
|
121
|
-
this.reservationsInput.reportValidity();
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
handleMessageEvent(event) {
|
|
125
|
-
if (event.data.source !== 'booking')
|
|
126
|
-
return;
|
|
127
|
-
const action = event.data.type;
|
|
128
|
-
const value = event.data.message;
|
|
129
|
-
if (localStorage.getItem('debug'))
|
|
130
|
-
console.log(`Received an action:${action}`, event.data);
|
|
131
|
-
if (action === 'error') {
|
|
132
|
-
if (value.fields?.reservation) {
|
|
133
|
-
salla.notify.error(value.fields.reservation[0]);
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
const errorList = Object.values(value.fields || [value.message]).flat().map(error => `<li>${error}</li>`).join('');
|
|
137
|
-
salla.notify.error(`<ul>${errorList}</ul>`);
|
|
138
|
-
}
|
|
139
|
-
if (action === 'success') {
|
|
140
|
-
if (Number(value.productId) !== Number(this.productId))
|
|
141
|
-
return;
|
|
142
|
-
this.reservations = value.data.reservations.map(schedule => {
|
|
143
|
-
if (schedule.time && schedule.time.length > 0) {
|
|
144
|
-
const timeSlot = schedule.time[0];
|
|
145
|
-
return {
|
|
146
|
-
date: schedule.date,
|
|
147
|
-
day: schedule.day,
|
|
148
|
-
from_timestamp: timeSlot.from,
|
|
149
|
-
to_timestamp: timeSlot.to,
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
return null;
|
|
153
|
-
}).filter(item => item !== null);
|
|
154
|
-
salla.notify.success(this.bookedLabel);
|
|
155
|
-
this.modal?.close();
|
|
156
|
-
setTimeout(() => window.location.reload());
|
|
157
|
-
}
|
|
158
|
-
if (action === 'height') {
|
|
159
|
-
this.iframe.height = value?.height + 'px';
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
bookingModal() {
|
|
163
|
-
return (h("salla-modal", { class: "s-booking-field-modal", ref: modal => (this.modal = modal), width: "md", position: "middle", noPadding: true }, h("iframe", { ref: iframe => (this.iframe = iframe), src: this.bookingUrl, frameborder: "0" })));
|
|
164
|
-
}
|
|
165
|
-
renderReservationDate(reservation) {
|
|
166
|
-
return (h("span", { class: reservation.from_timestamp ? 's-booking-field-reservations-has-time' : '' }, h("i", { class: "s-booking-field-reservations-icon", innerHTML: Calendar }), reservation.date));
|
|
167
|
-
}
|
|
168
|
-
renderReservationTime(reservation) {
|
|
169
|
-
if (!reservation.from_timestamp)
|
|
170
|
-
return '';
|
|
171
|
-
return (h("span", { class: "s-booking-field-reservations-time" }, h("i", { class: "s-booking-field-reservations-icon", innerHTML: TimeIcon }), h("span", null, reservation.from_timestamp, " - ", reservation.to_timestamp)));
|
|
172
|
-
}
|
|
173
|
-
render() {
|
|
174
|
-
return (h(Host, { key: '04c9e3dc3dc825bd6905221d858c260f7ca34748' }, h("div", { key: '07ec38cec1bd1798640dd7ea9592bb3b17d945c6', class: "s-booking-field-main" }, this.option.required || this.reservations.length > 0 ? h("div", { class: "s-booking-field-price" }, h("span", { innerHTML: salla.money(this.option.price) })) : '', h("salla-button", { key: '6b71889cfc0429d15c466a6f194df31549f09786', class: "s-booking-field-book-now", size: "small", loaderPosition: "center", fill: "outline", onClick: event => this.openBookingModal(event, false) }, h("span", { key: 'a16f8db6f52c7751ea605efcae04057ca0dc5b61', class: "s-booking-field-book-now-content" }, h("span", { key: '95f6086a599bcc620c87ece6c6ae9620dba15581', innerHTML: BookingTime }), this.reservations.length ? this.editLabel : this.bookNowLabel))), this.reservations.length > 0 && (h("div", { key: 'b3615100bbfff3d98d0ac99145aaf53449790c94', class: "s-booking-field-reservations" }, this.reservations.map((reservation, index) => (h("div", { key: index, class: "s-booking-field-reservations-item" }, this.renderReservationDate(reservation), this.renderReservationTime(reservation)))))), h("input", { key: '126f14f2e520b8696bc7450e209bad30b267878b', class: "s-hidden", name: this.option.name, required: this.option.required, value: JSON.stringify(this.reservations) === '[]' ? '' : JSON.stringify(this.reservations), ref: reservations => this.reservationsInput = reservations }), this.iframeReady && this.bookingModal()));
|
|
175
|
-
}
|
|
176
|
-
get host() { return getElement(this); }
|
|
177
|
-
};
|
|
178
|
-
SallaBookingField.style = sallaBookingFieldCss;
|
|
179
|
-
|
|
180
|
-
const SallaConditionalFields = class {
|
|
181
|
-
constructor(hostRef) {
|
|
182
|
-
registerInstance(this, hostRef);
|
|
183
|
-
}
|
|
184
|
-
hideAllOptions(optionId) {
|
|
185
|
-
this.host.querySelectorAll(`[data-show-when^="options[${optionId}"]`).forEach((field) => {
|
|
186
|
-
field.classList.add('hidden');
|
|
187
|
-
this.hideAllOptions(field.dataset.optionId);
|
|
188
|
-
this.disableInputs(field);
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
disableInputs(field) {
|
|
192
|
-
field.querySelectorAll('[name]').forEach((input) => {
|
|
193
|
-
input.setAttribute('disabled', '');
|
|
194
|
-
input.removeAttribute('required');
|
|
195
|
-
if (input?.tagName?.toLowerCase() === 'select') {
|
|
196
|
-
input.value = '';
|
|
197
|
-
}
|
|
198
|
-
if (['checkbox'].includes(input.getAttribute('type')) && input.hasOwnProperty('checked')) {
|
|
199
|
-
// @ts-ignore
|
|
200
|
-
input.checked = false;
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
changeHandler(event) {
|
|
205
|
-
salla.event.emit('salla-onditional-fields::change', event);
|
|
206
|
-
salla.log('Received the change event: ', event);
|
|
207
|
-
if (!event.target || !['SELECT'].includes(event.target.tagName) && !['checkbox', 'radio'].includes(event.target.getAttribute('type'))) {
|
|
208
|
-
salla.log('Ignore the change because is not a supported input: ' + (event?.target?.tagName || 'N/A'));
|
|
209
|
-
return;
|
|
210
|
-
}
|
|
211
|
-
let optionId = event.target.name.replace('[]', '');
|
|
212
|
-
let isMultiple = event.target.getAttribute('type') === 'checkbox';
|
|
213
|
-
let isRadio = event.target.getAttribute('type') === 'radio';
|
|
214
|
-
salla.log('Trying to find all elements with condition:', `[data-show-when^="${optionId}"]`);
|
|
215
|
-
this.host.querySelectorAll(`[data-show-when^="${optionId}"]`)
|
|
216
|
-
.forEach((field) => {
|
|
217
|
-
let isEqual = !field?.dataset.showWhen.includes('!=');
|
|
218
|
-
let value = field?.dataset.showWhen.replace(/(.*)(=|!=)(.*)/gm, '$3').trim();
|
|
219
|
-
let isSelected;
|
|
220
|
-
if (isMultiple) {
|
|
221
|
-
let selectedValues = Array.from(this.host.querySelectorAll(`input[name="${event.target.name}"]:checked`), e => e?.value);
|
|
222
|
-
isSelected = selectedValues.includes(value.toString());
|
|
223
|
-
}
|
|
224
|
-
else if (isRadio) {
|
|
225
|
-
// Handle radio inputs.
|
|
226
|
-
isSelected = event.target.checked && event.target.value === value;
|
|
227
|
-
}
|
|
228
|
-
else {
|
|
229
|
-
isSelected = value === event.target.value;
|
|
230
|
-
}
|
|
231
|
-
salla.log('The input is ', isMultiple ? 'Multiple' : isRadio ? 'Radio' : 'Single', ' value:', isSelected);
|
|
232
|
-
let showTheInput = (isEqual && isSelected) || (!isEqual && !isSelected);
|
|
233
|
-
if (showTheInput) {
|
|
234
|
-
field.classList.remove('hidden');
|
|
235
|
-
field.querySelectorAll('[name]').forEach((input) => {
|
|
236
|
-
input.removeAttribute('disabled');
|
|
237
|
-
const closestProductOption = input.closest('.s-product-options-option');
|
|
238
|
-
if (closestProductOption.dataset.optionRequired === 'true') {
|
|
239
|
-
input.setAttribute('required', '');
|
|
240
|
-
}
|
|
241
|
-
if (input.getAttribute('type') === 'checkbox') {
|
|
242
|
-
const checkboxes = Array.from(document.querySelectorAll(`input[type="checkbox"][name="${input.getAttribute('name')}"]`));
|
|
243
|
-
const isAnyChecked = checkboxes.some((checkbox) => checkbox.checked);
|
|
244
|
-
if (isAnyChecked) {
|
|
245
|
-
checkboxes.forEach((checkbox) => {
|
|
246
|
-
checkbox.removeAttribute('required');
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
else {
|
|
253
|
-
this.hideAllOptions(field.dataset.optionId);
|
|
254
|
-
field.classList.add('hidden');
|
|
255
|
-
this.disableInputs(field);
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
componentDidRender() {
|
|
260
|
-
this.host.querySelectorAll(`[data-show-when]`).forEach((field) => {
|
|
261
|
-
// @ts-ignore
|
|
262
|
-
let optionName = field?.dataset?.showWhen.replace(/(.*)(=|!=)(.*)/gm, '$1').trim();
|
|
263
|
-
if (!optionName) {
|
|
264
|
-
return;
|
|
265
|
-
}
|
|
266
|
-
this.changeHandler({
|
|
267
|
-
target: this.host.querySelector('[name^="' + optionName + '"]')
|
|
268
|
-
});
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
render() {
|
|
272
|
-
return (h(Host, { key: '405156ba83b8731039c2dd0ff800f617150cc722' }, h("slot", { key: '2bff17ce7b49fef9b028d673992d256b00e9481b' })));
|
|
273
|
-
}
|
|
274
|
-
get host() { return getElement(this); }
|
|
275
|
-
};
|
|
276
|
-
|
|
277
|
-
export { SallaBookingField as salla_booking_field, SallaConditionalFields as salla_conditional_fields };
|