@salla.sa/twilight-components 2.10.2 → 2.10.4

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.
Files changed (54) hide show
  1. package/dist/cjs/{app-globals-0a1abeac.js → app-globals-6d8fd0d2.js} +1 -1
  2. package/dist/cjs/index-1d2b3370.js +2 -6
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/{salla-button_35.cjs.entry.js → salla-button_37.cjs.entry.js} +364 -10
  5. package/dist/cjs/twilight.cjs.js +2 -2
  6. package/dist/collection/collection-manifest.json +1 -0
  7. package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +3 -0
  8. package/dist/collection/components/salla-map/salla-map.js +39 -4
  9. package/dist/collection/components/salla-product-options/interfaces.js +25 -0
  10. package/dist/collection/components/salla-product-options/salla-product-options.css +0 -0
  11. package/dist/collection/components/salla-product-options/salla-product-options.js +422 -0
  12. package/dist/collection/components/salla-quick-order/salla-quick-order.js +2 -2
  13. package/dist/collection/components/salla-slider/salla-slider.js +37 -3
  14. package/dist/collection/components/salla-user-menu/salla-user-menu.js +4 -2
  15. package/dist/components/index.d.ts +1 -0
  16. package/dist/components/index.js +2 -1
  17. package/dist/components/salla-conditional-fields.js +1 -94
  18. package/dist/{esm/salla-conditional-fields.entry.js → components/salla-conditional-fields2.js} +22 -7
  19. package/dist/components/salla-datetime-picker2.js +3 -0
  20. package/dist/components/salla-map.js +38 -3
  21. package/dist/components/salla-product-options.d.ts +11 -0
  22. package/dist/components/salla-product-options.js +270 -0
  23. package/dist/components/salla-quick-order.js +2 -2
  24. package/dist/components/salla-slider2.js +20 -3
  25. package/dist/components/salla-user-menu.js +4 -2
  26. package/dist/esm/{app-globals-d3b05078.js → app-globals-49168536.js} +1 -1
  27. package/dist/esm/index-f1d446ac.js +2 -6
  28. package/dist/esm/loader.js +2 -2
  29. package/dist/esm/{salla-button_35.entry.js → salla-button_37.entry.js} +363 -11
  30. package/dist/esm/twilight.js +2 -2
  31. package/dist/esm-es5/{app-globals-d3b05078.js → app-globals-49168536.js} +2 -2
  32. package/dist/esm-es5/index-f1d446ac.js +2 -2
  33. package/dist/esm-es5/loader.js +1 -1
  34. package/dist/esm-es5/{salla-button_35.entry.js → salla-button_37.entry.js} +4 -4
  35. package/dist/esm-es5/twilight.js +1 -1
  36. package/dist/twilight/p-49a71773.system.js +4 -0
  37. package/dist/twilight/{p-9d458384.entry.js → p-d5f8a6dd.entry.js} +5 -5
  38. package/dist/twilight/{p-95180d48.system.entry.js → p-e7ce5d86.system.entry.js} +7 -7
  39. package/dist/twilight/{p-70235d2a.system.js → p-f03909a5.system.js} +2 -2
  40. package/dist/twilight/{p-1b14dc52.js → p-f6948417.js} +2 -2
  41. package/dist/twilight/twilight.esm.js +1 -1
  42. package/dist/twilight/twilight.js +1 -1
  43. package/dist/types/components/salla-map/salla-map.d.ts +3 -0
  44. package/dist/types/components/salla-product-options/interfaces.d.ts +133 -0
  45. package/dist/types/components/salla-product-options/salla-product-options.d.ts +89 -0
  46. package/dist/types/components/salla-slider/salla-slider.d.ts +8 -0
  47. package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +1 -0
  48. package/dist/types/components.d.ts +85 -0
  49. package/package.json +5 -4
  50. package/dist/cjs/salla-conditional-fields.cjs.entry.js +0 -88
  51. package/dist/esm-es5/salla-conditional-fields.entry.js +0 -4
  52. package/dist/twilight/p-5d3cb89c.system.entry.js +0 -4
  53. package/dist/twilight/p-6a3883ae.entry.js +0 -4
  54. package/dist/twilight/p-97f66179.system.js +0 -4
@@ -2682,6 +2682,84 @@ const SallaCommentForm = class {
2682
2682
  };
2683
2683
  SallaCommentForm.style = sallaCommentFormCss;
2684
2684
 
2685
+ const SallaConditionalFields = class {
2686
+ constructor(hostRef) {
2687
+ index.registerInstance(this, hostRef);
2688
+ }
2689
+ changeHandler(event) {
2690
+ var _a;
2691
+ salla.event.emit('salla-onditional-fields::change', event);
2692
+ salla.log('Received the change event: ', event);
2693
+ if (!event.target || !['SELECT'].includes(event.target.tagName) && !['checkbox'].includes(event.target.getAttribute('type'))) {
2694
+ salla.log('Ignore the change because is not support input: ' + (((_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.tagName) || 'N/A'));
2695
+ return;
2696
+ }
2697
+ // to extract the option id from the input name, the supported names are name[*] and name[*][]
2698
+ let optionId = event.target.name.replace('[]', '');
2699
+ let isMultiple = event.target.getAttribute('type') === 'checkbox';
2700
+ salla.log('Trying to find all the element with condition:', `[data-show-when^="${optionId}"]`);
2701
+ this.host.querySelectorAll(`[data-show-when^="${optionId}"]`)
2702
+ .forEach((field) => {
2703
+ let isEqual = !(field === null || field === void 0 ? void 0 : field.dataset.showWhen.includes('!='));
2704
+ let value = field === null || field === void 0 ? void 0 : field.dataset.showWhen.replace(/(.*)(=|!=)(.*)/gm, '$3').trim();
2705
+ // let isSelected = isMultiple ? event.target?.checked : value === event.target.value;
2706
+ let isSelected;
2707
+ if (isMultiple) {
2708
+ // @ts-ignore
2709
+ let selectedValues = Array.from(this.host.querySelectorAll(`input[name="${event.target.name}"]:checked`), e => e === null || e === void 0 ? void 0 : e.value);
2710
+ isSelected = selectedValues.includes(value.toString());
2711
+ }
2712
+ else {
2713
+ isSelected = value === event.target.value;
2714
+ }
2715
+ salla.log('The input is ', (isMultiple ? 'Multiple' : 'Single'), ' value:', isSelected);
2716
+ let showTheInput = (isEqual && isSelected) || (!isEqual && !isSelected);
2717
+ if (showTheInput) {
2718
+ field.classList.remove('hidden');
2719
+ field.querySelectorAll('[name]').forEach((input) => {
2720
+ input.removeAttribute('disabled');
2721
+ //To handle focus on hidden input error
2722
+ if (!['checkbox'].includes(input.getAttribute('type')) && field.getElementsByClassName('required').length) {
2723
+ input.setAttribute('required', '');
2724
+ }
2725
+ });
2726
+ }
2727
+ else {
2728
+ field.classList.add('hidden');
2729
+ field.querySelectorAll('[name]').forEach((input) => {
2730
+ input.setAttribute('disabled', '');
2731
+ input.removeAttribute('required');
2732
+ if (['checkbox'].includes(input.getAttribute('type')) && input.hasOwnProperty('checked')) {
2733
+ // @ts-ignore
2734
+ input.checked = false;
2735
+ }
2736
+ //firing this event will show errors, so don't run it when pageLoading.
2737
+ // if (this.optionsAlreadyInitiated) {
2738
+ // salla.document.event.fireEvent(input, 'change', {'bubbles': true});
2739
+ // }
2740
+ });
2741
+ }
2742
+ });
2743
+ }
2744
+ componentDidRender() {
2745
+ this.host.querySelectorAll(`[data-show-when]`).forEach((field) => {
2746
+ var _a;
2747
+ // @ts-ignore
2748
+ let optionName = (_a = field === null || field === void 0 ? void 0 : field.dataset) === null || _a === void 0 ? void 0 : _a.showWhen.replace(/(.*)(=|!=)(.*)/gm, '$1').trim();
2749
+ if (!optionName) {
2750
+ return;
2751
+ }
2752
+ this.changeHandler({
2753
+ target: this.host.querySelector('[name^="' + optionName + '"]')
2754
+ });
2755
+ });
2756
+ }
2757
+ render() {
2758
+ return (index.h(index.Host, null, index.h("slot", null)));
2759
+ }
2760
+ get host() { return index.getElement(this); }
2761
+ };
2762
+
2685
2763
  var HOOKS = [
2686
2764
  "onChange",
2687
2765
  "onClose",
@@ -5459,6 +5537,9 @@ const SallaDatetimePicker = class {
5459
5537
  time_24hr: this.time_24hr,
5460
5538
  weekNumbers: this.weekNumbers,
5461
5539
  wrap: this.wrap,
5540
+ // onChange: this.handleOnChange(selectedDates, dateStr, instance)
5541
+ // onOpen: this.handleOnOpen(selectedDates, dateStr, instance)
5542
+ // onClose: this.handleOnClose(selectedDates, dateStr, instance)
5462
5543
  };
5463
5544
  flatpickr(this.dateInput, options);
5464
5545
  }
@@ -21854,6 +21935,7 @@ const SallaMap = class {
21854
21935
  this.locateButtonTitle = 'Locate';
21855
21936
  this.locateButtonEdit = 'Edit';
21856
21937
  this.searchInputValue = null;
21938
+ this.geolocationError = false;
21857
21939
  /**
21858
21940
  * Disable or enable actions
21859
21941
  */
@@ -21962,8 +22044,19 @@ const SallaMap = class {
21962
22044
  address: this.searchInputValue ? this.searchInputValue : null,
21963
22045
  });
21964
22046
  });
21965
- // get current location
21966
- this.getCurrentLocation();
22047
+ if (!this.host.hasAttribute('lat') && !this.host.hasAttribute('lng')) {
22048
+ this.getCurrentLocation();
22049
+ if (this.geolocationError) {
22050
+ this.map.setCenter({
22051
+ lat: this.lat,
22052
+ lng: this.lng,
22053
+ });
22054
+ this.marker.setPosition({
22055
+ lat: this.lat,
22056
+ lng: this.lng,
22057
+ });
22058
+ }
22059
+ }
21967
22060
  });
21968
22061
  }
21969
22062
  getCurrentLocation() {
@@ -21983,7 +22076,28 @@ const SallaMap = class {
21983
22076
  lng: position.coords.longitude,
21984
22077
  address: this.searchInputValue ? this.searchInputValue : null,
21985
22078
  });
21986
- });
22079
+ }, this.handleLocationError.bind(this));
22080
+ }
22081
+ else {
22082
+ salla.log('Geolocation is not supported by this browser.');
22083
+ this.geolocationError = true;
22084
+ }
22085
+ }
22086
+ handleLocationError(error) {
22087
+ this.geolocationError = true;
22088
+ switch (error.code) {
22089
+ case error.PERMISSION_DENIED:
22090
+ salla.log('User denied the request for Geolocation.');
22091
+ break;
22092
+ case error.POSITION_UNAVAILABLE:
22093
+ salla.log('Location information is unavailable.');
22094
+ break;
22095
+ case error.TIMEOUT:
22096
+ salla.log('The request to get user location timed out.');
22097
+ break;
22098
+ case error.UNKNOWN_ERROR:
22099
+ salla.log('An unknown error occurred.');
22100
+ break;
21987
22101
  }
21988
22102
  }
21989
22103
  /**
@@ -22029,6 +22143,7 @@ const SallaMap = class {
22029
22143
  this.open();
22030
22144
  }, color: "primary", class: "s-map-location-button" }, index.h("span", { class: "s-map-location-icon", innerHTML: this.searchInputValue ? Edit : Location }), this.searchInputValue ? (index.h("div", null, this.locateButtonEdit, " | ", this.formatAddress(this.searchInputValue))) : (this.locateButtonTitle)))));
22031
22145
  }
22146
+ get host() { return index.getElement(this); }
22032
22147
  };
22033
22148
  SallaMap.style = sallaMapCss;
22034
22149
 
@@ -22496,6 +22611,226 @@ const SallaProductAvailability = class {
22496
22611
  };
22497
22612
  SallaProductAvailability.style = sallaProductAvailabilityCss;
22498
22613
 
22614
+ var DisplayType;
22615
+ (function (DisplayType) {
22616
+ DisplayType["COLOR"] = "color";
22617
+ DisplayType["DATE"] = "date";
22618
+ DisplayType["DATETIME"] = "datetime";
22619
+ DisplayType["DONATION"] = "donation";
22620
+ DisplayType["IMAGE"] = "image";
22621
+ DisplayType["MULTIPLE_OPTIONS"] = "multiple-options";
22622
+ DisplayType["NUMBER"] = "number";
22623
+ DisplayType["SINGLE_OPTION"] = "single-option";
22624
+ DisplayType["SPLITTER"] = "splitter";
22625
+ DisplayType["TEXT"] = "text";
22626
+ DisplayType["TEXTAREA"] = "textarea";
22627
+ DisplayType["THUMBNAIL"] = "thumbnail";
22628
+ DisplayType["TIME"] = "time";
22629
+ DisplayType["RADIO"] = "radio";
22630
+ DisplayType["CHECKBOX"] = "checkbox";
22631
+ })(DisplayType || (DisplayType = {}));
22632
+ var Currency;
22633
+ (function (Currency) {
22634
+ Currency["Sar"] = "SAR";
22635
+ })(Currency || (Currency = {}));
22636
+
22637
+ const CheckCircleIcon = `<!-- Generated by IcoMoon.io -->
22638
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
22639
+ <title>check</title>
22640
+ <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>
22641
+ </svg>
22642
+ `;
22643
+
22644
+ const CameraIcon = `<!-- Generated by IcoMoon.io -->
22645
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
22646
+ <title>camera</title>
22647
+ <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>
22648
+ </svg>
22649
+ `;
22650
+
22651
+ const sallaProductOptionsCss = "";
22652
+
22653
+ const SallaProductOptions = class {
22654
+ constructor(hostRef) {
22655
+ index.registerInstance(this, hostRef);
22656
+ this.colorSelected = index.createEvent(this, "colorSelected", 7);
22657
+ this.thumbnailSelected = index.createEvent(this, "thumbnailSelected", 7);
22658
+ this.singleSelectOptionSelected = index.createEvent(this, "singleSelectOptionSelected", 7);
22659
+ this.donationMoneyEntered = index.createEvent(this, "donationMoneyEntered", 7);
22660
+ this.textOptionEntered = index.createEvent(this, "textOptionEntered", 7);
22661
+ this.textareaOptionEntered = index.createEvent(this, "textareaOptionEntered", 7);
22662
+ this.numberOptionEntered = index.createEvent(this, "numberOptionEntered", 7);
22663
+ this.itemsSelected = index.createEvent(this, "itemsSelected", 7);
22664
+ this.dateTimeSelected = index.createEvent(this, "dateTimeSelected", 7);
22665
+ this.dateSelected = index.createEvent(this, "dateSelected", 7);
22666
+ this.timeSelected = index.createEvent(this, "timeSelected", 7);
22667
+ this.options = [];
22668
+ this.uploadedImage = undefined;
22669
+ this.outOfStockText = salla.lang.get("pages.products.out_of_stock");
22670
+ this.donationAmount = salla.lang.get('pages.products.donation_amount');
22671
+ /**
22672
+ * The id of the product to which the options are going to be fetched for.
22673
+ */
22674
+ this.productId = salla.config.get('page.id');
22675
+ if (this.product) {
22676
+ this.setProductDetail(JSON.parse(this.product));
22677
+ }
22678
+ else if (this.productId) {
22679
+ this.fetchProductOptions();
22680
+ }
22681
+ salla.lang.onLoaded(() => {
22682
+ this.outOfStockText = salla.lang.get("pages.products.out_of_stock");
22683
+ this.donationAmount = salla.lang.get('pages.products.donation_amount');
22684
+ });
22685
+ }
22686
+ //todo:: typo here, but I think we will drop it anyway😌
22687
+ handleMultiSelectFieldInput() {
22688
+ var checkedBoxes = this.multipleOptionDom.querySelectorAll('input[type="checkbox"]:checked');
22689
+ var multiSelectedItems = [];
22690
+ for (let checkbox of checkedBoxes) {
22691
+ multiSelectedItems.push(checkbox.value);
22692
+ }
22693
+ this.itemsSelected.emit(multiSelectedItems);
22694
+ }
22695
+ /**
22696
+ * Image Selection
22697
+ */
22698
+ setProductDetail(detail) {
22699
+ this.productDetail = detail;
22700
+ this.options = detail.options;
22701
+ }
22702
+ fetchProductOptions() {
22703
+ return salla.api.product.getDetails(this.productId, ['options']).then(resp => {
22704
+ this.setProductDetail(resp.data);
22705
+ });
22706
+ }
22707
+ getDisplayForType(option) {
22708
+ if (this[`${option.type}Option`]) {
22709
+ return this[`${option.type}Option`](option);
22710
+ }
22711
+ if (option.type === DisplayType.MULTIPLE_OPTIONS) {
22712
+ return this.multipleOptions(option);
22713
+ }
22714
+ if (option.type === DisplayType.SINGLE_OPTION) {
22715
+ return this.singleOption(option);
22716
+ }
22717
+ salla.log(`Couldn't find options type(${option.type})😢`);
22718
+ return '';
22719
+ }
22720
+ render() {
22721
+ if (this.options.length == 0) {
22722
+ return;
22723
+ }
22724
+ return (index.h(index.Host, { class: "s-product-options-wrapper" }, index.h("salla-conditional-fields", null, this.options.map((option) => index.h("div", { class: "s-product-options-option-container" }, option.name == 'splitter' ?
22725
+ this.splitterOption()
22726
+ : index.h("div", { class: "s-product-options-option" }, index.h("label", { htmlFor: 'options[' + option.id + ']', class: "s-product-options-option-label" }, index.h("b", null, option.name, option.required && index.h("span", null, " * "), " "), index.h("small", null, option.placeholder)), index.h("div", { class: "s-product-options-option-content" }, this.getDisplayForType(option))))))));
22727
+ }
22728
+ //@ts-ignore
22729
+ colorOption(option) {
22730
+ return index.h("fieldset", { class: "s-product-options-colors-wrapper" }, option === null || option === void 0 ? void 0 : option.details.map((value) => index.h("div", null, index.h("input", { onChange: e => this.colorSelected.emit(e), name: `color-choice-${option.id}`, id: `color-choice-${option.id}-${value.id}`, required: true, type: "radio" }), index.h("label", { htmlFor: `color-choice-${option.id}-${value.id}` }, index.h("span", { style: { "background-color": value.color } }), index.h("p", null, value.name)))));
22731
+ }
22732
+ //@ts-ignore
22733
+ dateOption(option) {
22734
+ //todo:: consider date-range @see https://github.com/SallaApp/theme-raed/blob/master/src/assets/js/partials/product-options.js#L8-L23
22735
+ return index.h("div", { class: "s-product-options-date-element" }, index.h("salla-datetime-picker", { onPicked: e => this.dateSelected.emit(e), placeholder: option.name }));
22736
+ }
22737
+ //@ts-ignore
22738
+ datetimeOption(option) {
22739
+ //todo:: consider date-range @see https://github.com/SallaApp/theme-raed/blob/master/src/assets/js/partials/product-options.js#L8-L23
22740
+ return index.h("div", { class: "s-product-options-datetime-element" }, index.h("salla-datetime-picker", { mode: "range", dateFormat: "Y-m-d G:i:K", enableTime: true, minDate: option.from_date_time, maxDate: option.to_date_time, placeholder: option.name, onPicked: e => this.dateTimeSelected.emit(e) }));
22741
+ }
22742
+ //@ts-ignore
22743
+ donationOption(option) {
22744
+ var _a;
22745
+ let donation = this.productDetail.donation;
22746
+ if (!donation)
22747
+ return '';
22748
+ return index.h("div", { class: "s-product-options-donation-wrapper" }, index.h("input", { type: "text", id: "donating-amount", name: "donating_amount", class: "s-form-control", placeholder: option.placeholder, onInput: e => salla.helpers.inputDigitsOnly(e.target), onBlur: e => this.donationMoneyEntered.emit(e), value: salla.url.is_page('cart') ? (_a = this.productDetail) === null || _a === void 0 ? void 0 : _a.price : '' }), index.h("span", { class: "s-product-options-donation-amount-currency" }, salla.config.currency(salla.config.get('user.currency_code')).symbol));
22749
+ }
22750
+ getFilepondPlaceholder() {
22751
+ return `<div class="s-product-options-filepond-placeholder"><span class="s-product-options-filepond-placeholder-icon">${CameraIcon}</span><p class="s-product-options-filepond-placeholder-text">اسحب او افلت الصورة هنا</p> <span class="filepond--label-action">او تصفح من جهازك</span></div>`;
22752
+ }
22753
+ setUploaderHeight() {
22754
+ setTimeout(() => {
22755
+ this.uploader.querySelector('.filepond--root').style.height = '120px';
22756
+ }, 1000);
22757
+ }
22758
+ //@ts-ignore
22759
+ selectThumbnail(e, value) {
22760
+ this.thumbnailSelected.emit(e);
22761
+ }
22762
+ //todo:: move it to another place, create component if there is no component
22763
+ //@ts-ignore
22764
+ getServerConfig(url, option_id) {
22765
+ return {
22766
+ process: async (_fieldName, file, _metadata, load, error, _progress, abort, _transfer, _options) => {
22767
+ const formData = new FormData();
22768
+ formData.append("image_url", file, file.name);
22769
+ return await salla.product.uploadGiftImage(formData)
22770
+ .then((resp) => {
22771
+ this.uploadedImage = resp.data.url;
22772
+ load('success');
22773
+ file.metadata = `_${new Date().getTime()}`;
22774
+ }).catch(e => {
22775
+ console.log(e);
22776
+ error('error');
22777
+ })
22778
+ .finally(() => {
22779
+ return {
22780
+ abort: () => {
22781
+ abort();
22782
+ },
22783
+ };
22784
+ });
22785
+ }
22786
+ };
22787
+ }
22788
+ //@ts-ignore
22789
+ imageOption(option) {
22790
+ return index.h("salla-file-upload", { "instant-upload": true, ref: element => this.uploader = element, "data-item-id": salla.url.is_page('cart') ? option.id : '', class: { "s-product-options-image-input": true, required: option.required }, labelIdle: this.getFilepondPlaceholder(), onRemove: () => this.setUploaderHeight(), serverConfig: this.getServerConfig(salla.cart.api.getUrl('cart/option-image'), salla.url.is_page('cart') ? option.id : null) });
22791
+ }
22792
+ multipleOptions(option) {
22793
+ return index.h("div", { ref: element => this.multipleOptionDom = element, class: { "s-product-options-multiple-options-wrapper": true, 'required': option.required } }, option === null || option === void 0 ? void 0 : option.details.map((value) => {
22794
+ return index.h("div", null, index.h("input", { id: `field-${option.id}-${value.id}`, "aria-describedby": `options[${option.id}]-description`, name: `options[${option.id}]`, value: value.id, type: "checkbox", onChange: () => this.handleMultiSelectFieldInput() }), index.h("label", { htmlFor: `field-${option.id}-${value.id}` }, value.name));
22795
+ }));
22796
+ }
22797
+ //@ts-ignore
22798
+ numberOption(option) {
22799
+ return index.h("input", { placeholder: option.placeholder, name: `options[${option.id}]`, type: "text", onInput: e => salla.helpers.inputDigitsOnly(e.target), onBlur: e => this.numberOptionEntered.emit(e), class: "s-form-control" });
22800
+ }
22801
+ singleOption(option) {
22802
+ return index.h("div", null, index.h("select", { name: `options[${option.id}]`, required: option.required, class: "s-form-control" }, index.h("option", { value: "" }, option.placeholder), option === null || option === void 0 ? void 0 :
22803
+ option.details.map((op) => {
22804
+ return index.h("option", { onChange: e => this.singleSelectOptionSelected.emit(e), value: op.id }, op.name);
22805
+ })));
22806
+ }
22807
+ //@ts-ignore
22808
+ splitterOption() {
22809
+ return index.h("div", { class: "s-product-options-splitter" });
22810
+ }
22811
+ //@ts-ignore
22812
+ textOption(option) {
22813
+ return index.h("div", { class: "s-product-options-text" }, index.h("input", { placeholder: option.placeholder, name: `options[${option.id}]`, type: "text", onInput: e => this.textOptionEntered.emit(e), required: option.required, class: 's-form-control' }));
22814
+ }
22815
+ //@ts-ignore
22816
+ textareaOption(option) {
22817
+ return index.h("div", { class: "s-product-options-textarea" }, index.h("div", { class: "mt-1" }, index.h("textarea", { rows: 4, name: `options[${option.id}]`, required: option.required, id: `options[${option.id}]`, placeholder: option.placeholder, onInput: (e) => this.textareaOptionEntered.emit(e), class: "s-form-control" })));
22818
+ }
22819
+ //@ts-ignore
22820
+ thumbnailOption(option) {
22821
+ return index.h("div", { class: "s-product-options-thumbnails-wrapper" }, option.details.map((detail) => {
22822
+ return index.h("div", null, index.h("input", { required: option.required, type: "radio", id: `option_${option.id}_${detail.id}`, disabled: detail.is_out, "data-itemid": detail.id, name: `options[${option.id}]`, "data-img-id": detail.option_value, value: detail.option_value, onChange: (e) => this.selectThumbnail(e, detail.option_value) }), index.h("label", { htmlFor: `option_${option.id}_${detail.id}`, "data-img-id": detail.option_value, class: "go-to-slide" }, index.h("img", { "data-src": detail.image, src: detail.image, title: detail.name, alt: detail.name }), index.h("span", { innerHTML: CheckCircleIcon, class: "s-product-options-thumbnails-icon" })), index.h("p", null, detail.name, " "), detail.is_out ?
22823
+ [index.h("small", { class: "s-product-options-thumbnails-stock-badge" }, this.outOfStockText), index.h("div", { class: "s-product-options-thumbnails-badge-overlay" })]
22824
+ : '');
22825
+ }));
22826
+ }
22827
+ //@ts-ignore
22828
+ timeOption(option) {
22829
+ return index.h("salla-datetime-picker", { class: "s-product-options-time-element", enableTime: true, placeholder: option.name, noCalendar: true, dateFormat: "h:i K", onPicked: e => this.timeSelected.emit(e) });
22830
+ }
22831
+ };
22832
+ SallaProductOptions.style = sallaProductOptionsCss;
22833
+
22499
22834
  const PencilRuler = `<!-- Generated by IcoMoon.io -->
22500
22835
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
22501
22836
  <title>pencil-ruler</title>
@@ -22754,7 +23089,7 @@ const SallaQuickOrder = class {
22754
23089
  return;
22755
23090
  }
22756
23091
  return this.getPayload()
22757
- .then((payload) => salla.api.cart.createQuickCheckout(payload))
23092
+ .then((payload) => salla.api.cart.createQuickOrder(payload))
22758
23093
  .then(() => {
22759
23094
  this.quickOrderSubmited.emit();
22760
23095
  this.submitSucess = true;
@@ -22801,7 +23136,7 @@ const SallaQuickOrder = class {
22801
23136
  ], this.isTermsRequired && (index.h("label", { htmlFor: "terms", class: "s-quick-order-terms" }, index.h("input", { type: "checkbox", required: true, name: 'terms', id: 'terms', ref: el => (this.termsInput = el), onChange: () => (this.termsChecked = this.termsInput.checked), class: "s-checkbox" }), index.h("span", { class: "s-form-label" }, " ", index.h("div", { innerHTML: this.formatAgreementText(this.agreementText, 150) }, this.agreementText.length > 150 && (index.h("salla-button", { shape: "link", onClick: () => this.agreementModal.open() }, this.agreementShowText))), " "))), index.h("salla-button", { type: "submit", color: this.getBtnColor(), width: "wide" }, this.payButtonTitle)), index.h("salla-modal", { "modal-title": this.agreementModalHead, ref: modal => (this.agreementModal = modal) }, index.h("article", { innerHTML: this.agreementText })))));
22802
23137
  }
22803
23138
  componentWillLoad() {
22804
- return salla.api.withoutNotifier(() => salla.api.cart.getQuickCheckoutSettings().then(res => {
23139
+ return salla.api.withoutNotifier(() => salla.api.cart.getQuickOrderSettings().then(res => {
22805
23140
  var _a, _b;
22806
23141
  this.isAvailable = true;
22807
23142
  this.quickOrderTitle = res.data.title;
@@ -23426,6 +23761,10 @@ const SallaSwiper = class {
23426
23761
  * Show/hide slider block title
23427
23762
  */
23428
23763
  this.blockTitle = '';
23764
+ /**
23765
+ * Enable call a specific slide
23766
+ */
23767
+ // @Prop({reflect: true}) enableCallToSlide: boolean = false;
23429
23768
  /**
23430
23769
  * Show/hide slider block sub title
23431
23770
  */
@@ -23438,6 +23777,10 @@ const SallaSwiper = class {
23438
23777
  * Vertical or Horizontal thumbs slider
23439
23778
  */
23440
23779
  this.verticalThumbs = false;
23780
+ /**
23781
+ * Auto Height slider
23782
+ */
23783
+ this.autoHeight = false;
23441
23784
  /**
23442
23785
  * Show/hide arrows
23443
23786
  */
@@ -23523,10 +23866,12 @@ const SallaSwiper = class {
23523
23866
  breakpoints: { 1024: { slidesPerView: 2 } }
23524
23867
  },
23525
23868
  blog: {
23869
+ parallax: true,
23870
+ speed: 800,
23871
+ loop: true,
23526
23872
  slidesPerView: 1,
23527
23873
  centeredSlides: true,
23528
23874
  spaceBetween: 30,
23529
- effect: "fade",
23530
23875
  breakpoints: {
23531
23876
  320: { spaceBetween: 10 },
23532
23877
  768: { spaceBetween: 15 },
@@ -23535,8 +23880,7 @@ const SallaSwiper = class {
23535
23880
  },
23536
23881
  thumbs: {
23537
23882
  slidesPerView: 1,
23538
- spaceBetween: 30,
23539
- autoHeight: true
23883
+ spaceBetween: 30
23540
23884
  }
23541
23885
  };
23542
23886
  }
@@ -23657,6 +24001,12 @@ const SallaSwiper = class {
23657
24001
  salla.lang.onLoaded(() => {
23658
24002
  this.displayAllTitle = salla.lang.get('blocks.home.display_all');
23659
24003
  });
24004
+ // if (this.enableCallToSlide) {
24005
+ // salla.event.on('product-options::goToSlide', data => {
24006
+ // const slideIndex = this.sliderWrapper.querySelector(`[data-img-id="${data}"]`).getAttribute('data-slid-index');
24007
+ // this.slideTo(parseInt(slideIndex), 300, false);
24008
+ // });
24009
+ // }
23660
24010
  return new Promise((resolve, reject) => {
23661
24011
  // @ts-ignore
23662
24012
  if (typeof Swiper !== 'undefined') {
@@ -23695,6 +24045,7 @@ const SallaSwiper = class {
23695
24045
  autoplay: this.autoPlay,
23696
24046
  centeredSlides: this.centered,
23697
24047
  slidesPerView: this.slidesPerView,
24048
+ autoHeight: this.autoHeight,
23698
24049
  lazy: true,
23699
24050
  on: {
23700
24051
  // todo:: find better way for this workaround to show lazyLoad for duplicated slides, for some reason they are loaded but class not added.
@@ -25600,6 +25951,7 @@ const SallaUserMenu = class {
25600
25951
  this.hello = salla.lang.get("pages.checkout.hello");
25601
25952
  this.first_name = salla.storage.get('user.first_name') || '';
25602
25953
  this.last_name = salla.storage.get('user.last_name') || '';
25954
+ this.has_red_dot = salla.storage.get('user.notifications') || salla.storage.get('user.pending_orders');
25603
25955
  this.avatar = salla.storage.get('user.avatar') || salla.url.cdn('images/avatar.png');
25604
25956
  this.badges = {
25605
25957
  notifications: salla.helpers.number(salla.storage.get('user.notifications') || 0),
@@ -25641,7 +25993,7 @@ const SallaUserMenu = class {
25641
25993
  }
25642
25994
  //we need it to be the last item
25643
25995
  this.items.logout = LogoutIcon;
25644
- this.triggerSlot = ((_a = this.host.querySelector('[slot="trigger"]')) === null || _a === void 0 ? void 0 : _a.innerHTML) || '<div class="s-user-menu-trigger"><img class="s-user-menu-trigger-avatar" src="{avatar}" alt="{first_name}{last_name}" /><div class="s-user-menu-trigger-content"><span class="s-user-menu-trigger-hello">{hello}</span><p class="s-user-menu-trigger-name">{first_name} {last_name}</p></div> <i class="s-user-menu-trigger-icon">{icon}</i></div>';
25996
+ this.triggerSlot = ((_a = this.host.querySelector('[slot="trigger"]')) === null || _a === void 0 ? void 0 : _a.innerHTML) || '<div class="s-user-menu-trigger"><div class="s-user-menu-avatar-wrap"><img class="s-user-menu-trigger-avatar" src="{avatar}" alt="{first_name}{last_name}" /></div><div class="s-user-menu-trigger-content"><span class="s-user-menu-trigger-hello">{hello}</span><p class="s-user-menu-trigger-name">{first_name} {last_name}</p></div> <i class="s-user-menu-trigger-icon">{icon}</i></div>';
25645
25997
  if (salla.config.isGuest()) {
25646
25998
  return;
25647
25999
  }
@@ -25684,7 +26036,7 @@ const SallaUserMenu = class {
25684
26036
  salla.auth.logout();
25685
26037
  }
25686
26038
  getTheHeader() {
25687
- return index.h("div", { class: { 's-user-menu-trigger-slot': true, 's-user-menu-trigger-avatar-only': this.avatarOnly }, id: 'trigger-slot', onClick: (e) => this.open(e), innerHTML: this.triggerSlot
26039
+ return index.h("div", { class: { 's-user-menu-trigger-slot': true, 's-user-menu-red-dot': this.has_red_dot, 's-user-menu-trigger-avatar-only': this.avatarOnly }, id: 'trigger-slot', onClick: (e) => this.open(e), innerHTML: this.triggerSlot
25688
26040
  .replace(/\{hello\}/g, this.hello)
25689
26041
  .replace(/\{first_name\}/g, this.first_name)
25690
26042
  .replace(/\{last_name\}/g, this.last_name)
@@ -25958,6 +26310,7 @@ exports.salla_button = SallaButton;
25958
26310
  exports.salla_cart_summary = SallaCartSummary;
25959
26311
  exports.salla_color_picker = SallaColorPicker;
25960
26312
  exports.salla_comment_form = SallaCommentForm;
26313
+ exports.salla_conditional_fields = SallaConditionalFields;
25961
26314
  exports.salla_datetime_picker = SallaDatetimePicker;
25962
26315
  exports.salla_file_upload = SallaFileUpload;
25963
26316
  exports.salla_gifting = SallaGifting;
@@ -25972,6 +26325,7 @@ exports.salla_modal = SallaModal;
25972
26325
  exports.salla_offer_modal = SallaOfferModal;
25973
26326
  exports.salla_placeholder = SallaPlaceholder;
25974
26327
  exports.salla_product_availability = SallaProductAvailability;
26328
+ exports.salla_product_options = SallaProductOptions;
25975
26329
  exports.salla_product_size_guide = SallaProductSizeGuide;
25976
26330
  exports.salla_quantity_input = SallaQuantityInput;
25977
26331
  exports.salla_quick_order = SallaQuickOrder;
@@ -4,7 +4,7 @@
4
4
  'use strict';
5
5
 
6
6
  const index = require('./index-1d2b3370.js');
7
- const appGlobals = require('./app-globals-0a1abeac.js');
7
+ const appGlobals = require('./app-globals-6d8fd0d2.js');
8
8
  require('./_commonjsHelpers-691dd63b.js');
9
9
 
10
10
  /*
@@ -78,5 +78,5 @@ const patchDynamicImport = (base, orgScriptElm) => {
78
78
 
79
79
  patchBrowser().then(options => {
80
80
  appGlobals.globalScripts();
81
- return index.bootstrapLazy(JSON.parse("[[\"salla-button_35.cjs\",[[4,\"salla-gifting\",{\"productId\":[2,\"product-id\"],\"sectionTitle\":[32],\"sectionSubtitle\":[32],\"sectionBtnText\":[32],\"giftDetails\":[32],\"selectImageForYourGift\":[32],\"selectImageOrUpload\":[32],\"selectGiftMessage\":[32],\"giftCustomText\":[32],\"textId\":[32],\"incorrectGiftText\":[32],\"nextStep\":[32],\"senderNameLabel\":[32],\"receiverNameFieldLabel\":[32],\"receiverMobileFieldLabel\":[32],\"receiverEmailFieldLabel\":[32],\"emailPlaceholder\":[32],\"sendLater\":[32],\"selectSendDateAndTime\":[32],\"canNotEditOrderAfterSelectDate\":[32],\"sendGift\":[32],\"donationRequired\":[32],\"step1Elems\":[32],\"step2Elems\":[32],\"stepsWrapper\":[32],\"textArea\":[32],\"imageCover\":[32],\"textSelect\":[32],\"customTextArea\":[32],\"calendarFormGroup\":[32],\"currentStep\":[32],\"showCalendar\":[32],\"showGiftText\":[32],\"currentLang\":[32],\"parentClass\":[32],\"errors\":[32],\"gift\":[32],\"selectedGiftTextOption\":[32],\"showTextArea\":[32],\"selectedImage\":[32],\"uploadedImage\":[32],\"selectedText\":[32],\"senderName\":[32],\"errorMessage\":[32],\"hasError\":[32],\"quantity\":[32],\"deliveryDate\":[32],\"timeZone\":[32],\"receiverName\":[32],\"receiverMobile\":[32],\"receiverCountryCode\":[32],\"receiverEmail\":[32],\"open\":[64],\"close\":[64],\"goToStep2\":[64]}],[4,\"salla-loyalty\",{\"prizePoints\":[8,\"prize-points\"],\"customerPoints\":[2,\"customer-points\"],\"prizeTitle\":[1,\"prize-title\"],\"allowEmail\":[4,\"allow-email\"],\"allowMobile\":[4,\"allow-mobile\"],\"requireEmail\":[4,\"require-email\"],\"guestMessage\":[1,\"guest-message\"],\"loyaltyProgram\":[32],\"buttonLoading\":[32],\"selectedItem\":[32],\"askConfirmation\":[32],\"is_loggedin\":[32],\"hasError\":[32],\"errorMessage\":[32],\"translationLoaded\":[32],\"open\":[64],\"close\":[64],\"resetExchange\":[64],\"exchangeLoyaltyPoint\":[64]}],[4,\"salla-product-size-guide\",{\"guides\":[32],\"productId\":[32],\"placeholder_title\":[32],\"placeholder_description\":[32],\"modal_title\":[32],\"hasError\":[32],\"open\":[64],\"close\":[64]}],[0,\"salla-offer-modal\",{\"offer\":[32],\"offer_name\":[32],\"offer_message\":[32],\"hasError\":[32],\"errorMessage\":[32],\"productID\":[32],\"translationLoaded\":[32],\"addToCartLabel\":[32],\"open\":[64],\"showOffer\":[64]}],[0,\"salla-rating-modal\",{\"orderId\":[2,\"order-id\"],\"order\":[32],\"hasError\":[32],\"errorMessage\":[32],\"translationLoaded\":[32],\"open\":[64],\"close\":[64]}],[4,\"salla-scopes\",{\"selection\":[1],\"searchDisplayLimit\":[2,\"search-display-limit\"],\"translationLoaded\":[32],\"mode\":[32],\"current_scope\":[32],\"scopes\":[32],\"originalScopesList\":[32],\"selected_scope\":[32],\"isOpenedBefore\":[32],\"hasError\":[32],\"loading\":[32],\"close\":[64],\"open\":[64],\"handleSubmit\":[64]}],[0,\"salla-localization-modal\",{\"language\":[1537],\"currency\":[1537],\"translationLoaded\":[32],\"languages\":[32],\"currencies\":[32],\"hasError\":[32],\"errorMessage\":[32],\"open\":[64],\"close\":[64],\"submit\":[64]}],[4,\"salla-login-modal\",{\"isEmailAllowed\":[1028,\"is-email-allowed\"],\"isMobileAllowed\":[1028,\"is-mobile-allowed\"],\"isEmailRequired\":[1028,\"is-email-required\"],\"supportWebAuth\":[516,\"support-web-auth\"],\"currentTabName\":[32],\"regType\":[32],\"translationLoaded\":[32],\"title\":[32],\"emailErrorMsg\":[32],\"firstNameErrorMsg\":[32],\"lastNameErrorMsg\":[32],\"open\":[64]},[[8,\"verified\",\"onVerified\"]]],[0,\"salla-quick-order\",{\"quickOrderTitle\":[1025,\"quick-order-title\"],\"subTitle\":[1025,\"sub-title\"],\"payButtonTitle\":[1025,\"pay-button-title\"],\"confirmPayButtonTitle\":[1025,\"confirm-pay-button-title\"],\"agreementText\":[1025,\"agreement-text\"],\"isEmailRequired\":[1028,\"is-email-required\"],\"productId\":[1025,\"product-id\"],\"thanksMessage\":[1025,\"thanks-message\"],\"quickOrderStyle\":[1025,\"quick-order-style\"],\"user\":[32],\"isAvailable\":[32],\"oneClick\":[32],\"expanded\":[32],\"isTermsRequired\":[32],\"countryCode\":[32],\"submitSucess\":[32],\"placeHolderEmail\":[32],\"emailOptional\":[32],\"agreementShowText\":[32],\"agreementModalHead\":[32],\"userNameLabel\":[32],\"termsChecked\":[32]}],[0,\"salla-user-settings\",{\"isNotifiable\":[516,\"is-notifiable\"],\"deactivateAccount\":[32],\"promotionalMsgs\":[32],\"deactivateDesc\":[32],\"promotionalMsgsDesc\":[32],\"sorryForLeavingText\":[32],\"warningText\":[32],\"keepAccount\":[32],\"buttonLoading\":[32]}],[4,\"salla-map\",{\"readonly\":[4],\"searchable\":[1028],\"lat\":[1026],\"lng\":[1026],\"apiKey\":[1025,\"api-key\"],\"zoom\":[1026],\"theme\":[1025],\"modalActivityTitle\":[32],\"confirmButtonTitle\":[32],\"locateButtonTitle\":[32],\"locateButtonEdit\":[32],\"searchInputValue\":[32],\"searchInput\":[32],\"mapElement\":[32],\"open\":[64]}],[0,\"salla-search\",{\"inline\":[4],\"oval\":[4],\"height\":[2],\"translationLoaded\":[32],\"results\":[32],\"loading\":[32],\"typing\":[32],\"debounce\":[32],\"search_term\":[32]},[[0,\"keydown\",\"handleKeyDown\"]]],[0,\"salla-comment-form\",{\"type\":[1],\"showAvatar\":[4,\"show-avatar\"],\"itemId\":[8,\"item-id\"],\"placeholder\":[32],\"submitText\":[32],\"canComment\":[32]}],[4,\"salla-social-share\",{\"url\":[513],\"urlName\":[513,\"url-name\"],\"platforms\":[513],\"opened\":[32],\"allPlatforms\":[32],\"platformIcons\":[32],\"convertedPlatforms\":[32],\"open\":[64]}],[4,\"salla-cart-summary\",{\"cartSummaryCount\":[32],\"cartSummaryTotal\":[32],\"animateToCart\":[64]}],[4,\"salla-color-picker\",{\"color\":[1],\"placement\":[8],\"format\":[1],\"showCancelButton\":[4,\"show-cancel-button\"],\"showTextField\":[4,\"show-text-field\"],\"enableAlpha\":[4,\"enable-alpha\"],\"widgetColor\":[32],\"setPickerOption\":[64],\"movePopUp\":[64],\"setColorValue\":[64],\"openPicker\":[64],\"closePicker\":[64],\"destroyPicker\":[64]}],[4,\"salla-infinite-scroll\",{\"nextPage\":[1,\"next-page\"],\"autoload\":[1028],\"container\":[1],\"item\":[1],\"loadMore\":[32],\"noMore\":[32],\"failedToLoad\":[32]}],[4,\"salla-quantity-input\",{\"quantity\":[32],\"decrease\":[64],\"increase\":[64],\"setValue\":[64]}],[0,\"salla-user-menu\",{\"inline\":[516],\"avatarOnly\":[516,\"avatar-only\"],\"showHeader\":[516,\"show-header\"],\"relativeDropdown\":[516,\"relative-dropdown\"],\"accountLoading\":[32],\"opened\":[32],\"notifications\":[32],\"orders\":[32],\"pending_orders\":[32],\"wishlist\":[32],\"profile\":[32],\"rating\":[32],\"logout\":[32],\"hello\":[32],\"first_name\":[32],\"last_name\":[32],\"avatar\":[32],\"badges\":[32],\"OrderUpdate\":[32]}],[0,\"salla-product-availability\",{\"channels\":[1],\"productId\":[2,\"product-id\"],\"isSubscribed\":[1028,\"is-subscribed\"],\"translationLoaded\":[32],\"title_\":[32],\"isVisitorSubscribed\":[32]}],[4,\"salla-verify\",{\"display\":[1],\"type\":[1025],\"autoReload\":[4,\"auto-reload\"],\"supportWebAuth\":[4,\"support-web-auth\"],\"translationLoaded\":[32],\"title\":[32],\"resendAfter\":[32],\"isProfileVerify\":[32],\"getCode\":[64],\"open\":[64]}],[0,\"salla-datetime-picker\",{\"value\":[1025],\"placeholder\":[1],\"allowInput\":[4,\"allow-input\"],\"allowInvalidPreload\":[4,\"allow-invalid-preload\"],\"altFormat\":[1,\"alt-format\"],\"altInput\":[4,\"alt-input\"],\"altInputClass\":[1,\"alt-input-class\"],\"appendTo\":[16],\"ariaDateFormat\":[1,\"aria-date-format\"],\"autoFillDefaultTime\":[4,\"auto-fill-default-time\"],\"clickOpens\":[4,\"click-opens\"],\"closeOnSelect\":[4,\"close-on-select\"],\"conjunction\":[1],\"dateFormat\":[1,\"date-format\"],\"defaultDate\":[8,\"default-date\"],\"defaultHour\":[2,\"default-hour\"],\"defaultMinute\":[2,\"default-minute\"],\"defaultSeconds\":[2,\"default-seconds\"],\"disable\":[16],\"disableMobile\":[4,\"disable-mobile\"],\"enable\":[16],\"enableSeconds\":[4,\"enable-seconds\"],\"enableTime\":[4,\"enable-time\"],\"formatDate\":[16],\"hourIncrement\":[2,\"hour-increment\"],\"inline\":[4],\"locale\":[1],\"maxDate\":[8,\"max-date\"],\"maxTime\":[8,\"max-time\"],\"minDate\":[8,\"min-date\"],\"minTime\":[8,\"min-time\"],\"minuteIncrement\":[2,\"minute-increment\"],\"mode\":[1],\"monthSelectorType\":[1,\"month-selector-type\"],\"nextArrow\":[1,\"next-arrow\"],\"noCalendar\":[4,\"no-calendar\"],\"dateParser\":[16],\"position\":[1],\"positionElement\":[16],\"prevArrow\":[1,\"prev-arrow\"],\"shorthandCurrentMonth\":[4,\"shorthand-current-month\"],\"static\":[4],\"showMonths\":[2,\"show-months\"],\"time_24hr\":[4,\"time_-2-4hr\"],\"weekNumbers\":[4,\"week-numbers\"],\"wrap\":[4]}],[0,\"salla-file-upload\",{\"required\":[4],\"disabled\":[4],\"allowDrop\":[4,\"allow-drop\"],\"allowBrowse\":[4,\"allow-browse\"],\"allowPaste\":[4,\"allow-paste\"],\"allowMultiple\":[4,\"allow-multiple\"],\"allowReplace\":[4,\"allow-replace\"],\"allowRevert\":[4,\"allow-revert\"],\"allowRemove\":[4,\"allow-remove\"],\"allowProcess\":[4,\"allow-process\"],\"allowReorder\":[4,\"allow-reorder\"],\"storeAsFile\":[4,\"store-as-file\"],\"forceRevert\":[4,\"force-revert\"],\"maxFilesCount\":[2,\"max-files-count\"],\"maxParallelUploads\":[2,\"max-parallel-uploads\"],\"checkValidity\":[4,\"check-validity\"],\"itemInsertLocation\":[1,\"item-insert-location\"],\"itemInsertInterval\":[2,\"item-insert-interval\"],\"credits\":[4],\"dropOnPage\":[4,\"drop-on-page\"],\"dropOnElement\":[4,\"drop-on-element\"],\"dropValidation\":[4,\"drop-validation\"],\"ignoredFiles\":[16],\"serverConfig\":[1,\"server-config\"],\"instantUpload\":[4,\"instant-upload\"],\"chunkUploads\":[4,\"chunk-uploads\"],\"chunkForce\":[4,\"chunk-force\"],\"chunkSize\":[2,\"chunk-size\"],\"chunkRetryDelays\":[16],\"labelDecimalSeparator\":[1,\"label-decimal-separator\"],\"labelThousandsSeparator\":[1,\"label-thousands-separator\"],\"labelIdle\":[1,\"label-idle\"],\"labelInvalidField\":[1,\"label-invalid-field\"],\"labelFileWaitingForSize\":[1,\"label-file-waiting-for-size\"],\"labelFileSizeNotAvailable\":[1,\"label-file-size-not-available\"],\"labelFileLoading\":[1,\"label-file-loading\"],\"labelFileLoadError\":[1,\"label-file-load-error\"],\"labelFileProcessing\":[1,\"label-file-processing\"],\"labelFileProcessingComplete\":[1,\"label-file-processing-complete\"],\"labelFileProcessingAborted\":[1,\"label-file-processing-aborted\"],\"labelFileProcessingError\":[1,\"label-file-processing-error\"],\"labelFileProcessingRevertError\":[1,\"label-file-processing-revert-error\"],\"labelFileRemoveError\":[1,\"label-file-remove-error\"],\"labelTapToCancel\":[1,\"label-tap-to-cancel\"],\"labelTapToRetry\":[1,\"label-tap-to-retry\"],\"labelTapToUndo\":[1,\"label-tap-to-undo\"],\"labelButtonRemoveItem\":[1,\"label-button-remove-item\"],\"labelButtonAbortItemLoad\":[1,\"label-button-abort-item-load\"],\"labelButtonRetryItemLoad\":[1,\"label-button-retry-item-load\"],\"labelButtonAbortItemProcessing\":[1,\"label-button-abort-item-processing\"],\"labelButtonUndoItemProcessing\":[1,\"label-button-undo-item-processing\"],\"labelButtonRetryItemProcessing\":[1,\"label-button-retry-item-processing\"],\"labelButtonProcessItem\":[1,\"label-button-process-item\"],\"iconRemove\":[1,\"icon-remove\"],\"iconProcess\":[1,\"icon-process\"],\"iconRetry\":[1,\"icon-retry\"],\"iconUndo\":[1,\"icon-undo\"],\"pond\":[32],\"files\":[32],\"appendFile\":[64]}],[0,\"salla-rating-stars\",{\"name\":[1],\"size\":[1],\"value\":[2]}],[4,\"salla-tab-content\",{\"name\":[1],\"isSelected\":[32],\"getChild\":[64]}],[4,\"salla-tab-header\",{\"name\":[1],\"activeClass\":[1,\"active-class\"],\"height\":[8],\"centered\":[4],\"isSelected\":[32],\"getChild\":[64]}],[4,\"salla-tabs\",{\"backgroundColor\":[1,\"background-color\"],\"vertical\":[4]},[[0,\"tabSelected\",\"onSelectedTab\"]]],[4,\"salla-slider\",{\"blockTitle\":[513,\"block-title\"],\"blockSubtitle\":[513,\"block-subtitle\"],\"displayAllUrl\":[513,\"display-all-url\"],\"verticalThumbs\":[516,\"vertical-thumbs\"],\"showControls\":[516,\"show-controls\"],\"controlsOuter\":[516,\"controls-outer\"],\"showThumbsControls\":[4,\"show-thumbs-controls\"],\"autoPlay\":[4,\"auto-play\"],\"slidesPerView\":[1,\"slides-per-view\"],\"pagination\":[4],\"centered\":[4],\"loop\":[4],\"type\":[1],\"sliderConfig\":[520,\"slider-config\"],\"thumbsConfig\":[520,\"thumbs-config\"],\"currentIndex\":[32],\"isEnd\":[32],\"isBeginning\":[32],\"isRTL\":[32],\"swiperScript\":[32],\"displayAllTitle\":[32],\"slideTo\":[64],\"slideNext\":[64],\"slidePrev\":[64],\"slideToLoop\":[64],\"slideNextLoop\":[64],\"slidePrevLoop\":[64],\"slideReset\":[64],\"slideToClosest\":[64],\"update\":[64],\"updateAutoHeight\":[64],\"updateSlides\":[64],\"updateProgress\":[64],\"updateSlidesClasses\":[64],\"getSlides\":[64]}],[4,\"salla-list-tile\",{\"href\":[1],\"target\":[1]}],[0,\"salla-tel-input\",{\"phone\":[1025],\"name\":[1],\"countryCode\":[1025,\"country-code\"],\"mobileRequired\":[32],\"countryCodeLabel\":[32],\"mobileLabel\":[32],\"tooShort\":[32],\"tooLong\":[32],\"invalidCountryCode\":[32],\"invalidNumber\":[32],\"errorMap\":[32],\"getValues\":[64],\"isValid\":[64]}],[4,\"salla-placeholder\",{\"icon\":[1],\"alignment\":[1],\"iconSize\":[1,\"icon-size\"],\"translationLoaded\":[32]}],[0,\"salla-skeleton\",{\"type\":[1],\"width\":[1],\"height\":[1]}],[4,\"salla-modal\",{\"isClosable\":[1028,\"is-closable\"],\"width\":[513],\"position\":[513],\"visible\":[516],\"hasSkeleton\":[516,\"has-skeleton\"],\"isLoading\":[1540,\"is-loading\"],\"subTitleFirst\":[4,\"sub-title-first\"],\"noPadding\":[4,\"no-padding\"],\"subTitle\":[1,\"sub-title\"],\"centered\":[4],\"iconStyle\":[1,\"icon-style\"],\"modalTitle\":[32],\"open\":[64],\"close\":[64],\"setTitle\":[64],\"loading\":[64],\"stopLoading\":[64]},[[0,\"keyup\",\"handleKeyUp\"]]],[4,\"salla-button\",{\"shape\":[513],\"color\":[513],\"fill\":[513],\"size\":[513],\"width\":[513],\"loading\":[516],\"disabled\":[516],\"loaderPosition\":[1,\"loader-position\"],\"href\":[1],\"load\":[64],\"stop\":[64],\"setText\":[64],\"disable\":[64],\"enable\":[64]}],[0,\"salla-loading\",{\"size\":[8],\"width\":[8],\"color\":[1],\"bgColor\":[1,\"bg-color\"]}]]],[\"salla-add-product-button.cjs\",[[4,\"salla-add-product-button\",{\"channels\":[513],\"quantity\":[514],\"donatingAmount\":[514,\"donating-amount\"],\"productId\":[520,\"product-id\"],\"productStatus\":[513,\"product-status\"],\"productType\":[513,\"product-type\"]}]]],[\"salla-conditional-fields.cjs\",[[4,\"salla-conditional-fields\",null,[[0,\"change\",\"changeHandler\"]]]]],[\"salla-installment.cjs\",[[0,\"salla-installment\",{\"price\":[1],\"language\":[1],\"currency\":[1],\"tamaraIsActive\":[32],\"tabbyIsActive\":[32],\"spotiiIsActive\":[32]}]]],[\"salla-loyalty-prize-item.cjs\",[[0,\"salla-loyalty-prize-item\",{\"item\":[16]}]]],[\"salla-select.cjs\",[[0,\"salla-select\",{\"label\":[1],\"items\":[16],\"itemText\":[1,\"item-text\"],\"itemValue\":[1,\"item-value\"],\"itemDisabled\":[1,\"item-disabled\"],\"size\":[1],\"value\":[1032],\"autofocus\":[4],\"clearable\":[4],\"clearIcon\":[1,\"clear-icon\"],\"color\":[1],\"flat\":[4],\"disabled\":[4],\"loading\":[4],\"loadingColor\":[1,\"loading-color\"],\"hint\":[1],\"persistHint\":[4,\"persist-hint\"],\"placeholder\":[1],\"multiple\":[4],\"autocomplete\":[4],\"required\":[4],\"chips\":[4],\"shape\":[1],\"returnObject\":[4,\"return-object\"],\"hideDetail\":[4,\"hide-detail\"]}]]]]"), options);
81
+ return index.bootstrapLazy(JSON.parse("[[\"salla-button_37.cjs\",[[4,\"salla-gifting\",{\"productId\":[2,\"product-id\"],\"sectionTitle\":[32],\"sectionSubtitle\":[32],\"sectionBtnText\":[32],\"giftDetails\":[32],\"selectImageForYourGift\":[32],\"selectImageOrUpload\":[32],\"selectGiftMessage\":[32],\"giftCustomText\":[32],\"textId\":[32],\"incorrectGiftText\":[32],\"nextStep\":[32],\"senderNameLabel\":[32],\"receiverNameFieldLabel\":[32],\"receiverMobileFieldLabel\":[32],\"receiverEmailFieldLabel\":[32],\"emailPlaceholder\":[32],\"sendLater\":[32],\"selectSendDateAndTime\":[32],\"canNotEditOrderAfterSelectDate\":[32],\"sendGift\":[32],\"donationRequired\":[32],\"step1Elems\":[32],\"step2Elems\":[32],\"stepsWrapper\":[32],\"textArea\":[32],\"imageCover\":[32],\"textSelect\":[32],\"customTextArea\":[32],\"calendarFormGroup\":[32],\"currentStep\":[32],\"showCalendar\":[32],\"showGiftText\":[32],\"currentLang\":[32],\"parentClass\":[32],\"errors\":[32],\"gift\":[32],\"selectedGiftTextOption\":[32],\"showTextArea\":[32],\"selectedImage\":[32],\"uploadedImage\":[32],\"selectedText\":[32],\"senderName\":[32],\"errorMessage\":[32],\"hasError\":[32],\"quantity\":[32],\"deliveryDate\":[32],\"timeZone\":[32],\"receiverName\":[32],\"receiverMobile\":[32],\"receiverCountryCode\":[32],\"receiverEmail\":[32],\"open\":[64],\"close\":[64],\"goToStep2\":[64]}],[4,\"salla-loyalty\",{\"prizePoints\":[8,\"prize-points\"],\"customerPoints\":[2,\"customer-points\"],\"prizeTitle\":[1,\"prize-title\"],\"allowEmail\":[4,\"allow-email\"],\"allowMobile\":[4,\"allow-mobile\"],\"requireEmail\":[4,\"require-email\"],\"guestMessage\":[1,\"guest-message\"],\"loyaltyProgram\":[32],\"buttonLoading\":[32],\"selectedItem\":[32],\"askConfirmation\":[32],\"is_loggedin\":[32],\"hasError\":[32],\"errorMessage\":[32],\"translationLoaded\":[32],\"open\":[64],\"close\":[64],\"resetExchange\":[64],\"exchangeLoyaltyPoint\":[64]}],[4,\"salla-product-size-guide\",{\"guides\":[32],\"productId\":[32],\"placeholder_title\":[32],\"placeholder_description\":[32],\"modal_title\":[32],\"hasError\":[32],\"open\":[64],\"close\":[64]}],[0,\"salla-offer-modal\",{\"offer\":[32],\"offer_name\":[32],\"offer_message\":[32],\"hasError\":[32],\"errorMessage\":[32],\"productID\":[32],\"translationLoaded\":[32],\"addToCartLabel\":[32],\"open\":[64],\"showOffer\":[64]}],[0,\"salla-rating-modal\",{\"orderId\":[2,\"order-id\"],\"order\":[32],\"hasError\":[32],\"errorMessage\":[32],\"translationLoaded\":[32],\"open\":[64],\"close\":[64]}],[4,\"salla-scopes\",{\"selection\":[1],\"searchDisplayLimit\":[2,\"search-display-limit\"],\"translationLoaded\":[32],\"mode\":[32],\"current_scope\":[32],\"scopes\":[32],\"originalScopesList\":[32],\"selected_scope\":[32],\"isOpenedBefore\":[32],\"hasError\":[32],\"loading\":[32],\"close\":[64],\"open\":[64],\"handleSubmit\":[64]}],[0,\"salla-localization-modal\",{\"language\":[1537],\"currency\":[1537],\"translationLoaded\":[32],\"languages\":[32],\"currencies\":[32],\"hasError\":[32],\"errorMessage\":[32],\"open\":[64],\"close\":[64],\"submit\":[64]}],[4,\"salla-login-modal\",{\"isEmailAllowed\":[1028,\"is-email-allowed\"],\"isMobileAllowed\":[1028,\"is-mobile-allowed\"],\"isEmailRequired\":[1028,\"is-email-required\"],\"supportWebAuth\":[516,\"support-web-auth\"],\"currentTabName\":[32],\"regType\":[32],\"translationLoaded\":[32],\"title\":[32],\"emailErrorMsg\":[32],\"firstNameErrorMsg\":[32],\"lastNameErrorMsg\":[32],\"open\":[64]},[[8,\"verified\",\"onVerified\"]]],[0,\"salla-quick-order\",{\"quickOrderTitle\":[1025,\"quick-order-title\"],\"subTitle\":[1025,\"sub-title\"],\"payButtonTitle\":[1025,\"pay-button-title\"],\"confirmPayButtonTitle\":[1025,\"confirm-pay-button-title\"],\"agreementText\":[1025,\"agreement-text\"],\"isEmailRequired\":[1028,\"is-email-required\"],\"productId\":[1025,\"product-id\"],\"thanksMessage\":[1025,\"thanks-message\"],\"quickOrderStyle\":[1025,\"quick-order-style\"],\"user\":[32],\"isAvailable\":[32],\"oneClick\":[32],\"expanded\":[32],\"isTermsRequired\":[32],\"countryCode\":[32],\"submitSucess\":[32],\"placeHolderEmail\":[32],\"emailOptional\":[32],\"agreementShowText\":[32],\"agreementModalHead\":[32],\"userNameLabel\":[32],\"termsChecked\":[32]}],[0,\"salla-user-settings\",{\"isNotifiable\":[516,\"is-notifiable\"],\"deactivateAccount\":[32],\"promotionalMsgs\":[32],\"deactivateDesc\":[32],\"promotionalMsgsDesc\":[32],\"sorryForLeavingText\":[32],\"warningText\":[32],\"keepAccount\":[32],\"buttonLoading\":[32]}],[4,\"salla-map\",{\"readonly\":[4],\"searchable\":[1028],\"lat\":[1026],\"lng\":[1026],\"apiKey\":[1025,\"api-key\"],\"zoom\":[1026],\"theme\":[1025],\"modalActivityTitle\":[32],\"confirmButtonTitle\":[32],\"locateButtonTitle\":[32],\"locateButtonEdit\":[32],\"searchInputValue\":[32],\"geolocationError\":[32],\"searchInput\":[32],\"mapElement\":[32],\"open\":[64]}],[0,\"salla-product-options\",{\"productId\":[2,\"product-id\"],\"product\":[1],\"productDetail\":[32],\"options\":[32],\"uploadedImage\":[32],\"outOfStockText\":[32],\"donationAmount\":[32]}],[0,\"salla-search\",{\"inline\":[4],\"oval\":[4],\"height\":[2],\"translationLoaded\":[32],\"results\":[32],\"loading\":[32],\"typing\":[32],\"debounce\":[32],\"search_term\":[32]},[[0,\"keydown\",\"handleKeyDown\"]]],[0,\"salla-comment-form\",{\"type\":[1],\"showAvatar\":[4,\"show-avatar\"],\"itemId\":[8,\"item-id\"],\"placeholder\":[32],\"submitText\":[32],\"canComment\":[32]}],[4,\"salla-social-share\",{\"url\":[513],\"urlName\":[513,\"url-name\"],\"platforms\":[513],\"opened\":[32],\"allPlatforms\":[32],\"platformIcons\":[32],\"convertedPlatforms\":[32],\"open\":[64]}],[4,\"salla-cart-summary\",{\"cartSummaryCount\":[32],\"cartSummaryTotal\":[32],\"animateToCart\":[64]}],[4,\"salla-color-picker\",{\"color\":[1],\"placement\":[8],\"format\":[1],\"showCancelButton\":[4,\"show-cancel-button\"],\"showTextField\":[4,\"show-text-field\"],\"enableAlpha\":[4,\"enable-alpha\"],\"widgetColor\":[32],\"setPickerOption\":[64],\"movePopUp\":[64],\"setColorValue\":[64],\"openPicker\":[64],\"closePicker\":[64],\"destroyPicker\":[64]}],[4,\"salla-infinite-scroll\",{\"nextPage\":[1,\"next-page\"],\"autoload\":[1028],\"container\":[1],\"item\":[1],\"loadMore\":[32],\"noMore\":[32],\"failedToLoad\":[32]}],[4,\"salla-quantity-input\",{\"quantity\":[32],\"decrease\":[64],\"increase\":[64],\"setValue\":[64]}],[0,\"salla-user-menu\",{\"inline\":[516],\"avatarOnly\":[516,\"avatar-only\"],\"showHeader\":[516,\"show-header\"],\"relativeDropdown\":[516,\"relative-dropdown\"],\"accountLoading\":[32],\"opened\":[32],\"notifications\":[32],\"orders\":[32],\"pending_orders\":[32],\"wishlist\":[32],\"profile\":[32],\"rating\":[32],\"logout\":[32],\"hello\":[32],\"first_name\":[32],\"last_name\":[32],\"has_red_dot\":[32],\"avatar\":[32],\"badges\":[32],\"OrderUpdate\":[32]}],[0,\"salla-product-availability\",{\"channels\":[1],\"productId\":[2,\"product-id\"],\"isSubscribed\":[1028,\"is-subscribed\"],\"translationLoaded\":[32],\"title_\":[32],\"isVisitorSubscribed\":[32]}],[4,\"salla-verify\",{\"display\":[1],\"type\":[1025],\"autoReload\":[4,\"auto-reload\"],\"supportWebAuth\":[4,\"support-web-auth\"],\"translationLoaded\":[32],\"title\":[32],\"resendAfter\":[32],\"isProfileVerify\":[32],\"getCode\":[64],\"open\":[64]}],[4,\"salla-conditional-fields\",null,[[0,\"change\",\"changeHandler\"]]],[0,\"salla-rating-stars\",{\"name\":[1],\"size\":[1],\"value\":[2]}],[0,\"salla-datetime-picker\",{\"value\":[1025],\"placeholder\":[1],\"allowInput\":[4,\"allow-input\"],\"allowInvalidPreload\":[4,\"allow-invalid-preload\"],\"altFormat\":[1,\"alt-format\"],\"altInput\":[4,\"alt-input\"],\"altInputClass\":[1,\"alt-input-class\"],\"appendTo\":[16],\"ariaDateFormat\":[1,\"aria-date-format\"],\"autoFillDefaultTime\":[4,\"auto-fill-default-time\"],\"clickOpens\":[4,\"click-opens\"],\"closeOnSelect\":[4,\"close-on-select\"],\"conjunction\":[1],\"dateFormat\":[1,\"date-format\"],\"defaultDate\":[8,\"default-date\"],\"defaultHour\":[2,\"default-hour\"],\"defaultMinute\":[2,\"default-minute\"],\"defaultSeconds\":[2,\"default-seconds\"],\"disable\":[16],\"disableMobile\":[4,\"disable-mobile\"],\"enable\":[16],\"enableSeconds\":[4,\"enable-seconds\"],\"enableTime\":[4,\"enable-time\"],\"formatDate\":[16],\"hourIncrement\":[2,\"hour-increment\"],\"inline\":[4],\"locale\":[1],\"maxDate\":[8,\"max-date\"],\"maxTime\":[8,\"max-time\"],\"minDate\":[8,\"min-date\"],\"minTime\":[8,\"min-time\"],\"minuteIncrement\":[2,\"minute-increment\"],\"mode\":[1],\"monthSelectorType\":[1,\"month-selector-type\"],\"nextArrow\":[1,\"next-arrow\"],\"noCalendar\":[4,\"no-calendar\"],\"dateParser\":[16],\"position\":[1],\"positionElement\":[16],\"prevArrow\":[1,\"prev-arrow\"],\"shorthandCurrentMonth\":[4,\"shorthand-current-month\"],\"static\":[4],\"showMonths\":[2,\"show-months\"],\"time_24hr\":[4,\"time_-2-4hr\"],\"weekNumbers\":[4,\"week-numbers\"],\"wrap\":[4]}],[0,\"salla-file-upload\",{\"required\":[4],\"disabled\":[4],\"allowDrop\":[4,\"allow-drop\"],\"allowBrowse\":[4,\"allow-browse\"],\"allowPaste\":[4,\"allow-paste\"],\"allowMultiple\":[4,\"allow-multiple\"],\"allowReplace\":[4,\"allow-replace\"],\"allowRevert\":[4,\"allow-revert\"],\"allowRemove\":[4,\"allow-remove\"],\"allowProcess\":[4,\"allow-process\"],\"allowReorder\":[4,\"allow-reorder\"],\"storeAsFile\":[4,\"store-as-file\"],\"forceRevert\":[4,\"force-revert\"],\"maxFilesCount\":[2,\"max-files-count\"],\"maxParallelUploads\":[2,\"max-parallel-uploads\"],\"checkValidity\":[4,\"check-validity\"],\"itemInsertLocation\":[1,\"item-insert-location\"],\"itemInsertInterval\":[2,\"item-insert-interval\"],\"credits\":[4],\"dropOnPage\":[4,\"drop-on-page\"],\"dropOnElement\":[4,\"drop-on-element\"],\"dropValidation\":[4,\"drop-validation\"],\"ignoredFiles\":[16],\"serverConfig\":[1,\"server-config\"],\"instantUpload\":[4,\"instant-upload\"],\"chunkUploads\":[4,\"chunk-uploads\"],\"chunkForce\":[4,\"chunk-force\"],\"chunkSize\":[2,\"chunk-size\"],\"chunkRetryDelays\":[16],\"labelDecimalSeparator\":[1,\"label-decimal-separator\"],\"labelThousandsSeparator\":[1,\"label-thousands-separator\"],\"labelIdle\":[1,\"label-idle\"],\"labelInvalidField\":[1,\"label-invalid-field\"],\"labelFileWaitingForSize\":[1,\"label-file-waiting-for-size\"],\"labelFileSizeNotAvailable\":[1,\"label-file-size-not-available\"],\"labelFileLoading\":[1,\"label-file-loading\"],\"labelFileLoadError\":[1,\"label-file-load-error\"],\"labelFileProcessing\":[1,\"label-file-processing\"],\"labelFileProcessingComplete\":[1,\"label-file-processing-complete\"],\"labelFileProcessingAborted\":[1,\"label-file-processing-aborted\"],\"labelFileProcessingError\":[1,\"label-file-processing-error\"],\"labelFileProcessingRevertError\":[1,\"label-file-processing-revert-error\"],\"labelFileRemoveError\":[1,\"label-file-remove-error\"],\"labelTapToCancel\":[1,\"label-tap-to-cancel\"],\"labelTapToRetry\":[1,\"label-tap-to-retry\"],\"labelTapToUndo\":[1,\"label-tap-to-undo\"],\"labelButtonRemoveItem\":[1,\"label-button-remove-item\"],\"labelButtonAbortItemLoad\":[1,\"label-button-abort-item-load\"],\"labelButtonRetryItemLoad\":[1,\"label-button-retry-item-load\"],\"labelButtonAbortItemProcessing\":[1,\"label-button-abort-item-processing\"],\"labelButtonUndoItemProcessing\":[1,\"label-button-undo-item-processing\"],\"labelButtonRetryItemProcessing\":[1,\"label-button-retry-item-processing\"],\"labelButtonProcessItem\":[1,\"label-button-process-item\"],\"iconRemove\":[1,\"icon-remove\"],\"iconProcess\":[1,\"icon-process\"],\"iconRetry\":[1,\"icon-retry\"],\"iconUndo\":[1,\"icon-undo\"],\"pond\":[32],\"files\":[32],\"appendFile\":[64]}],[4,\"salla-tab-content\",{\"name\":[1],\"isSelected\":[32],\"getChild\":[64]}],[4,\"salla-tab-header\",{\"name\":[1],\"activeClass\":[1,\"active-class\"],\"height\":[8],\"centered\":[4],\"isSelected\":[32],\"getChild\":[64]}],[4,\"salla-tabs\",{\"backgroundColor\":[1,\"background-color\"],\"vertical\":[4]},[[0,\"tabSelected\",\"onSelectedTab\"]]],[4,\"salla-slider\",{\"blockTitle\":[513,\"block-title\"],\"blockSubtitle\":[513,\"block-subtitle\"],\"displayAllUrl\":[513,\"display-all-url\"],\"verticalThumbs\":[516,\"vertical-thumbs\"],\"autoHeight\":[516,\"auto-height\"],\"showControls\":[516,\"show-controls\"],\"controlsOuter\":[516,\"controls-outer\"],\"showThumbsControls\":[4,\"show-thumbs-controls\"],\"autoPlay\":[4,\"auto-play\"],\"slidesPerView\":[1,\"slides-per-view\"],\"pagination\":[4],\"centered\":[4],\"loop\":[4],\"type\":[1],\"sliderConfig\":[520,\"slider-config\"],\"thumbsConfig\":[520,\"thumbs-config\"],\"currentIndex\":[32],\"isEnd\":[32],\"isBeginning\":[32],\"isRTL\":[32],\"swiperScript\":[32],\"displayAllTitle\":[32],\"slideTo\":[64],\"slideNext\":[64],\"slidePrev\":[64],\"slideToLoop\":[64],\"slideNextLoop\":[64],\"slidePrevLoop\":[64],\"slideReset\":[64],\"slideToClosest\":[64],\"update\":[64],\"updateAutoHeight\":[64],\"updateSlides\":[64],\"updateProgress\":[64],\"updateSlidesClasses\":[64],\"getSlides\":[64]}],[4,\"salla-list-tile\",{\"href\":[1],\"target\":[1]}],[0,\"salla-tel-input\",{\"phone\":[1025],\"name\":[1],\"countryCode\":[1025,\"country-code\"],\"mobileRequired\":[32],\"countryCodeLabel\":[32],\"mobileLabel\":[32],\"tooShort\":[32],\"tooLong\":[32],\"invalidCountryCode\":[32],\"invalidNumber\":[32],\"errorMap\":[32],\"getValues\":[64],\"isValid\":[64]}],[4,\"salla-placeholder\",{\"icon\":[1],\"alignment\":[1],\"iconSize\":[1,\"icon-size\"],\"translationLoaded\":[32]}],[0,\"salla-skeleton\",{\"type\":[1],\"width\":[1],\"height\":[1]}],[4,\"salla-modal\",{\"isClosable\":[1028,\"is-closable\"],\"width\":[513],\"position\":[513],\"visible\":[516],\"hasSkeleton\":[516,\"has-skeleton\"],\"isLoading\":[1540,\"is-loading\"],\"subTitleFirst\":[4,\"sub-title-first\"],\"noPadding\":[4,\"no-padding\"],\"subTitle\":[1,\"sub-title\"],\"centered\":[4],\"iconStyle\":[1,\"icon-style\"],\"modalTitle\":[32],\"open\":[64],\"close\":[64],\"setTitle\":[64],\"loading\":[64],\"stopLoading\":[64]},[[0,\"keyup\",\"handleKeyUp\"]]],[4,\"salla-button\",{\"shape\":[513],\"color\":[513],\"fill\":[513],\"size\":[513],\"width\":[513],\"loading\":[516],\"disabled\":[516],\"loaderPosition\":[1,\"loader-position\"],\"href\":[1],\"load\":[64],\"stop\":[64],\"setText\":[64],\"disable\":[64],\"enable\":[64]}],[0,\"salla-loading\",{\"size\":[8],\"width\":[8],\"color\":[1],\"bgColor\":[1,\"bg-color\"]}]]],[\"salla-add-product-button.cjs\",[[4,\"salla-add-product-button\",{\"channels\":[513],\"quantity\":[514],\"donatingAmount\":[514,\"donating-amount\"],\"productId\":[520,\"product-id\"],\"productStatus\":[513,\"product-status\"],\"productType\":[513,\"product-type\"]}]]],[\"salla-installment.cjs\",[[0,\"salla-installment\",{\"price\":[1],\"language\":[1],\"currency\":[1],\"tamaraIsActive\":[32],\"tabbyIsActive\":[32],\"spotiiIsActive\":[32]}]]],[\"salla-loyalty-prize-item.cjs\",[[0,\"salla-loyalty-prize-item\",{\"item\":[16]}]]],[\"salla-select.cjs\",[[0,\"salla-select\",{\"label\":[1],\"items\":[16],\"itemText\":[1,\"item-text\"],\"itemValue\":[1,\"item-value\"],\"itemDisabled\":[1,\"item-disabled\"],\"size\":[1],\"value\":[1032],\"autofocus\":[4],\"clearable\":[4],\"clearIcon\":[1,\"clear-icon\"],\"color\":[1],\"flat\":[4],\"disabled\":[4],\"loading\":[4],\"loadingColor\":[1,\"loading-color\"],\"hint\":[1],\"persistHint\":[4,\"persist-hint\"],\"placeholder\":[1],\"multiple\":[4],\"autocomplete\":[4],\"required\":[4],\"chips\":[4],\"shape\":[1],\"returnObject\":[4,\"return-object\"],\"hideDetail\":[4,\"hide-detail\"]}]]]]"), options);
82
82
  });
@@ -22,6 +22,7 @@
22
22
  "./components/salla-offer-modal/salla-offer-modal.js",
23
23
  "./components/salla-placeholder/salla-placeholder.js",
24
24
  "./components/salla-product-availability/salla-product-availability.js",
25
+ "./components/salla-product-options/salla-product-options.js",
25
26
  "./components/salla-product-size-guide/salla-product-size-guide.js",
26
27
  "./components/salla-quantity-input/salla-quantity-input.js",
27
28
  "./components/salla-quick-order/salla-quick-order.js",
@@ -227,6 +227,9 @@ export class SallaDatetimePicker {
227
227
  time_24hr: this.time_24hr,
228
228
  weekNumbers: this.weekNumbers,
229
229
  wrap: this.wrap,
230
+ // onChange: this.handleOnChange(selectedDates, dateStr, instance)
231
+ // onOpen: this.handleOnOpen(selectedDates, dateStr, instance)
232
+ // onClose: this.handleOnClose(selectedDates, dateStr, instance)
230
233
  };
231
234
  flatpickr(this.dateInput, options);
232
235
  }