@salla.sa/twilight-components 2.11.49 → 2.11.51
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/index-1d2b3370.js +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/salla-add-product-button.cjs.entry.js +4 -13
- package/dist/cjs/salla-button_36.cjs.entry.js +138 -37
- package/dist/cjs/salla-comment-form.cjs.entry.js +43 -0
- package/dist/cjs/salla-product-options.cjs.entry.js +8 -6
- package/dist/cjs/twilight.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/salla-add-product-button/salla-add-product-button.js +4 -13
- package/dist/collection/components/salla-cart-summary/salla-cart-summary.js +26 -3
- package/dist/collection/components/salla-count-down/salla-count-down.css +0 -0
- package/dist/collection/components/salla-count-down/salla-count-down.js +253 -0
- package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1 -1
- package/dist/collection/components/salla-file-upload/salla-file-upload.js +4 -1
- package/dist/collection/components/salla-gifting/salla-gifting.js +26 -2
- package/dist/collection/components/salla-login-modal/salla-login-modal.js +4 -3
- package/dist/collection/components/salla-map/salla-map.js +1 -1
- package/dist/collection/components/salla-modal/salla-modal.js +10 -0
- package/dist/collection/components/salla-product-options/salla-product-options.js +25 -7
- package/dist/collection/components/salla-quick-order/salla-quick-order.js +39 -8
- package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/salla-add-product-button.js +4 -13
- package/dist/components/salla-cart-summary.js +4 -1
- package/dist/components/salla-count-down.d.ts +11 -0
- package/dist/components/salla-count-down.js +122 -0
- package/dist/components/salla-file-upload2.js +3 -0
- package/dist/components/salla-gifting.js +10 -2
- package/dist/components/salla-login-modal.js +4 -3
- package/dist/components/salla-map2.js +1 -1
- package/dist/components/salla-modal2.js +10 -0
- package/dist/components/salla-product-options.js +9 -6
- package/dist/components/salla-quick-order.js +39 -8
- package/dist/components/salla-scopes.js +1 -1
- package/dist/esm/index-f1d446ac.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/salla-add-product-button.entry.js +4 -13
- package/dist/esm/salla-button_36.entry.js +138 -37
- package/dist/esm/salla-comment-form.entry.js +39 -0
- package/dist/esm/salla-product-options.entry.js +8 -6
- package/dist/esm/twilight.js +1 -1
- package/dist/esm-es5/index-f1d446ac.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/salla-add-product-button.entry.js +2 -2
- package/dist/esm-es5/salla-button_36.entry.js +5 -5
- package/dist/esm-es5/salla-comment-form.entry.js +4 -0
- package/dist/esm-es5/salla-product-options.entry.js +2 -2
- package/dist/esm-es5/twilight.js +1 -1
- package/dist/twilight/p-02294ce9.system.entry.js +4 -0
- package/dist/twilight/p-0e3e1ff4.entry.js +4 -0
- package/dist/twilight/p-7d966812.entry.js +4 -0
- package/dist/twilight/p-91ed573c.system.entry.js +53 -0
- package/dist/twilight/p-9fda3312.system.js +1 -1
- package/dist/twilight/p-b540cfc6.system.entry.js +4 -0
- package/dist/twilight/p-cdb6aa9e.entry.js +4 -0
- package/dist/twilight/p-d9579b04.system.entry.js +4 -0
- package/dist/twilight/p-fb73867f.entry.js +36 -0
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-add-product-button/salla-add-product-button.d.ts +0 -1
- package/dist/types/components/salla-cart-summary/salla-cart-summary.d.ts +5 -0
- package/dist/types/components/salla-count-down/salla-count-down.d.ts +53 -0
- package/dist/types/components/salla-file-upload/salla-file-upload.d.ts +3 -0
- package/dist/types/components/salla-gifting/salla-gifting.d.ts +5 -0
- package/dist/types/components/salla-modal/salla-modal.d.ts +1 -0
- package/dist/types/components/salla-product-options/salla-product-options.d.ts +7 -0
- package/dist/types/components/salla-quick-order/salla-quick-order.d.ts +5 -1
- package/dist/types/components.d.ts +99 -0
- package/package.json +3 -3
- package/dist/twilight/p-14fd987d.system.entry.js +0 -53
- package/dist/twilight/p-1bbf7223.entry.js +0 -4
- package/dist/twilight/p-3c98b71d.entry.js +0 -4
- package/dist/twilight/p-85c55961.system.entry.js +0 -4
- package/dist/twilight/p-99cb7643.system.entry.js +0 -4
- package/dist/twilight/p-d2c63efe.entry.js +0 -36
|
@@ -1916,6 +1916,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1916
1916
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1917
1917
|
/* webpackMode: "lazy" */
|
|
1918
1918
|
'./salla-add-product-button.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1919
|
+
case 'salla-comment-form.cjs':
|
|
1920
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1921
|
+
/* webpackMode: "lazy" */
|
|
1922
|
+
'./salla-comment-form.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1919
1923
|
case 'salla-installment.cjs':
|
|
1920
1924
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1921
1925
|
/* webpackMode: "lazy" */
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -34,7 +34,7 @@ const defineCustomElements = (win, options) => {
|
|
|
34
34
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
35
35
|
return patchEsm().then(() => {
|
|
36
36
|
appGlobals.globalScripts();
|
|
37
|
-
return index.bootstrapLazy(JSON.parse("[[\"salla-button_36.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],\"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\":[1544,\"prize-points\"],\"customerPoints\":[1538,\"customer-points\"],\"prizeTitle\":[1537,\"prize-title\"],\"allowEmail\":[4,\"allow-email\"],\"allowMobile\":[4,\"allow-mobile\"],\"requireEmail\":[4,\"require-email\"],\"guestMessage\":[1025,\"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]}],[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],\"dragAndDrop\":[32],\"browseFromFiles\":[32],\"customFields\":[32],\"uploadedImage\":[32],\"open\":[64]},[[8,\"verified\",\"onVerified\"]]],[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]}],[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]}],[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\":[1537],\"showAvatar\":[4,\"show-avatar\"],\"itemId\":[1544,\"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-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],\"hasBadges\":[32],\"OrderUpdate\":[32]}],[0,\"salla-product-availability\",{\"channels\":[1],\"notifyOptionsAvailability\":[4,\"notify-options-availability\"],\"productId\":[2,\"product-id\"],\"isSubscribed\":[1028,\"is-subscribed\"],\"translationLoaded\":[32],\"title_\":[32],\"isVisitorSubscribed\":[32]}],[4,\"salla-map\",{\"name\":[1],\"required\":[4],\"readonly\":[4],\"searchable\":[1028],\"lat\":[1026],\"lng\":[1026],\"apiKey\":[1025,\"api-key\"],\"modalTitle\":[1,\"modal-title\"],\"zoom\":[1026],\"theme\":[1025],\"modalActivityTitle\":[32],\"confirmButtonTitle\":[32],\"locateButtonTitle\":[32],\"locateButtonEdit\":[32],\"searchPlaceholder\":[32],\"searchInputValue\":[32],\"formattedAddress\":[32],\"geolocationError\":[32],\"searchInput\":[32],\"mapInput\":[32],\"mapElement\":[32],\"selectedLat\":[32],\"selectedLng\":[32],\"open\":[64]}],[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-color-picker\",{\"name\":[1],\"required\":[4],\"color\":[1],\"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]}],[0,\"salla-progress-bar\",{\"donation\":[1],\"target\":[1026],\"value\":[1026],\"height\":[1025],\"header\":[1025],\"stripped\":[1028],\"message\":[1025],\"unit\":[1025],\"color\":[1025]}],[0,\"salla-rating-stars\",{\"name\":[1],\"size\":[1],\"value\":[2],\"reviews\":[2]}],[0,\"salla-datetime-picker\",{\"value\":[1537],\"required\":[4],\"name\":[513],\"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]}],[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\"]]],[0,\"salla-file-upload\",{\"value\":[1537],\"files\":[513],\"height\":[513],\"cartItemId\":[1,\"cart-item-id\"],\"profileImage\":[516,\"profile-image\"],\"name\":[1537],\"payloadName\":[1,\"payload-name\"],\"accept\":[1537],\"fileId\":[2,\"file-id\"],\"url\":[1025],\"method\":[1],\"formData\":[1,\"form-data\"],\"required\":[4],\"maxFileSize\":[1,\"max-file-size\"],\"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],\"instantUpload\":[1028,\"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\":[1025,\"label-idle\"],\"iconRemove\":[1,\"icon-remove\"],\"iconProcess\":[1,\"icon-process\"],\"iconRetry\":[1,\"icon-retry\"],\"iconUndo\":[1,\"icon-undo\"],\"setOption\":[64]}],[4,\"salla-slider\",{\"blockTitle\":[513,\"block-title\"],\"listenToThumbnailsOption\":[516,\"listen-to-thumbnails-option\"],\"blockSubtitle\":[513,\"block-subtitle\"],\"displayAllUrl\":[513,\"display-all-url\"],\"arrowsCentered\":[516,\"arrows-centered\"],\"verticalThumbs\":[516,\"vertical-thumbs\"],\"vertical\":[516],\"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-product-options.cjs\",[[0,\"salla-product-options\",{\"productId\":[2,\"product-id\"],\"options\":[1],\"optionsData\":[32],\"outOfStockText\":[32],\"donationAmount\":[32],\"selectedOptions\":[32],\"canDisabled\":[32],\"selectedSkus\":[32],\"selectedOutSkus\":[32],\"getSelectedOptionsData\":[64],\"getSelectedOptions\":[64],\"getOption\":[64]}]]],[\"salla-add-product-button.cjs\",[[4,\"salla-add-product-button\",{\"channels\":[513],\"subscribedOptions\":[1,\"subscribed-options\"],\"quantity\":[514],\"donatingAmount\":[514,\"donating-amount\"],\"notifyOptionsAvailability\":[516,\"notify-options-availability\"],\"productId\":[520,\"product-id\"],\"productStatus\":[513,\"product-status\"],\"productType\":[513,\"product-type\"],\"hasOutOfStockOption\":[32],\"hasSubscribedOptions\":[32],\"selectedOptions\":[32]}]]],[\"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\"]}]]],[\"salla-conditional-fields.cjs\",[[4,\"salla-conditional-fields\",null,[[0,\"change\",\"changeHandler\"]]]]]]"), options);
|
|
37
|
+
return index.bootstrapLazy(JSON.parse("[[\"salla-button_36.cjs\",[[4,\"salla-gifting\",{\"productId\":[2,\"product-id\"],\"widgetSubtitle\":[1,\"widget-subtitle\"],\"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],\"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\":[1544,\"prize-points\"],\"customerPoints\":[1538,\"customer-points\"],\"prizeTitle\":[1537,\"prize-title\"],\"allowEmail\":[4,\"allow-email\"],\"allowMobile\":[4,\"allow-mobile\"],\"requireEmail\":[4,\"require-email\"],\"guestMessage\":[1025,\"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]}],[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],\"dragAndDrop\":[32],\"browseFromFiles\":[32],\"customFields\":[32],\"uploadedImage\":[32],\"open\":[64]},[[8,\"verified\",\"onVerified\"]]],[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]}],[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]}],[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\"]]],[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\",{\"showCartLabel\":[4,\"show-cart-label\"],\"cartSummaryCount\":[32],\"cartSummaryTotal\":[32],\"cartLabel\":[32],\"animateToCart\":[64]}],[0,\"salla-count-down\",{\"date\":[1],\"boxed\":[4],\"size\":[1],\"color\":[1],\"labeled\":[4],\"endText\":[1,\"end-text\"],\"digits\":[1],\"daysLabel\":[32],\"hoursLabel\":[32],\"minutesLabel\":[32],\"secondsLabel\":[32],\"endLabel\":[32],\"invalidDate\":[32],\"offerEnded\":[32],\"countInterval\":[32],\"endCountDown\":[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],\"hasBadges\":[32],\"OrderUpdate\":[32]}],[0,\"salla-product-availability\",{\"channels\":[1],\"notifyOptionsAvailability\":[4,\"notify-options-availability\"],\"productId\":[2,\"product-id\"],\"isSubscribed\":[1028,\"is-subscribed\"],\"translationLoaded\":[32],\"title_\":[32],\"isVisitorSubscribed\":[32]}],[4,\"salla-map\",{\"name\":[1],\"required\":[4],\"readonly\":[4],\"searchable\":[1028],\"lat\":[1026],\"lng\":[1026],\"apiKey\":[1025,\"api-key\"],\"modalTitle\":[1,\"modal-title\"],\"zoom\":[1026],\"theme\":[1025],\"modalActivityTitle\":[32],\"confirmButtonTitle\":[32],\"locateButtonTitle\":[32],\"locateButtonEdit\":[32],\"searchPlaceholder\":[32],\"searchInputValue\":[32],\"formattedAddress\":[32],\"geolocationError\":[32],\"searchInput\":[32],\"mapInput\":[32],\"mapElement\":[32],\"selectedLat\":[32],\"selectedLng\":[32],\"open\":[64]}],[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-color-picker\",{\"name\":[1],\"required\":[4],\"color\":[1],\"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]}],[0,\"salla-progress-bar\",{\"donation\":[1],\"target\":[1026],\"value\":[1026],\"height\":[1025],\"header\":[1025],\"stripped\":[1028],\"message\":[1025],\"unit\":[1025],\"color\":[1025]}],[0,\"salla-rating-stars\",{\"name\":[1],\"size\":[1],\"value\":[2],\"reviews\":[2]}],[0,\"salla-datetime-picker\",{\"value\":[1537],\"required\":[4],\"name\":[513],\"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]}],[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\"]]],[0,\"salla-file-upload\",{\"value\":[1537],\"files\":[513],\"height\":[513],\"cartItemId\":[1,\"cart-item-id\"],\"profileImage\":[516,\"profile-image\"],\"name\":[1537],\"payloadName\":[1,\"payload-name\"],\"accept\":[1537],\"fileId\":[2,\"file-id\"],\"url\":[1025],\"method\":[1],\"formData\":[1,\"form-data\"],\"required\":[4],\"maxFileSize\":[1,\"max-file-size\"],\"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],\"instantUpload\":[1028,\"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\":[1025,\"label-idle\"],\"iconRemove\":[1,\"icon-remove\"],\"iconProcess\":[1,\"icon-process\"],\"iconRetry\":[1,\"icon-retry\"],\"iconUndo\":[1,\"icon-undo\"],\"setOption\":[64]}],[4,\"salla-slider\",{\"blockTitle\":[513,\"block-title\"],\"listenToThumbnailsOption\":[516,\"listen-to-thumbnails-option\"],\"blockSubtitle\":[513,\"block-subtitle\"],\"displayAllUrl\":[513,\"display-all-url\"],\"arrowsCentered\":[516,\"arrows-centered\"],\"verticalThumbs\":[516,\"vertical-thumbs\"],\"vertical\":[516],\"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-product-options.cjs\",[[0,\"salla-product-options\",{\"productId\":[2,\"product-id\"],\"options\":[1],\"optionsData\":[32],\"outOfStockText\":[32],\"donationAmount\":[32],\"selectedOptions\":[32],\"canDisabled\":[32],\"selectedSkus\":[32],\"selectedOutSkus\":[32],\"getSelectedOptionsData\":[64],\"hasOutOfStockOption\":[64],\"getSelectedOptions\":[64],\"getOption\":[64]}]]],[\"salla-add-product-button.cjs\",[[4,\"salla-add-product-button\",{\"channels\":[513],\"subscribedOptions\":[1,\"subscribed-options\"],\"quantity\":[514],\"donatingAmount\":[514,\"donating-amount\"],\"notifyOptionsAvailability\":[516,\"notify-options-availability\"],\"productId\":[520,\"product-id\"],\"productStatus\":[513,\"product-status\"],\"productType\":[513,\"product-type\"],\"hasOutOfStockOption\":[32],\"hasSubscribedOptions\":[32],\"selectedOptions\":[32]}]]],[\"salla-comment-form.cjs\",[[0,\"salla-comment-form\",{\"type\":[1537],\"showAvatar\":[4,\"show-avatar\"],\"itemId\":[1544,\"item-id\"],\"placeholder\":[32],\"submitText\":[32],\"canComment\":[32]}]]],[\"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\"]}]]],[\"salla-conditional-fields.cjs\",[[4,\"salla-conditional-fields\",null,[[0,\"change\",\"changeHandler\"]]]]]]"), options);
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
40
|
|
|
@@ -81,16 +81,6 @@ const SallaAddProductButton = class {
|
|
|
81
81
|
}
|
|
82
82
|
return this.hostAttributes;
|
|
83
83
|
}
|
|
84
|
-
pushSelectedOption(data) {
|
|
85
|
-
const index = this.selectedOptions.findIndex(option => option.option_id === data.option.id);
|
|
86
|
-
if (index > -1) {
|
|
87
|
-
this.selectedOptions[index] = Object.assign(Object.assign({}, data.detail), { option_id: data.option.id });
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
this.selectedOptions.push(Object.assign(Object.assign({}, data.detail), { option_id: data.option.id }));
|
|
91
|
-
}
|
|
92
|
-
this.hasOutOfStockOption = this.selectedOptions.some(option => option.is_out);
|
|
93
|
-
}
|
|
94
84
|
componentWillLoad() {
|
|
95
85
|
this.hasLabel = !!this.host.innerHTML.replace('<!---->', '').trim();
|
|
96
86
|
}
|
|
@@ -106,17 +96,18 @@ const SallaAddProductButton = class {
|
|
|
106
96
|
if ((this.productStatus === 'out-and-notify' && this.channels) || this.hasOutOfStockOption) {
|
|
107
97
|
return index.h(index.Host, null, index.h("salla-product-availability", Object.assign({}, this.getBtnAttributes())));
|
|
108
98
|
}
|
|
109
|
-
return index.h(index.Host, null, index.h("salla-button", Object.assign({ color: this.productStatus === 'sale' ? 'primary' : 'light', fill: this.productStatus === 'sale' ? 'solid' : 'outline', ref: el => this.btn = el, onClick: event => this.addProductToCart(event), disabled: this.productStatus !== 'sale' }, this.getBtnAttributes(), { "loader-position": "center"
|
|
99
|
+
return index.h(index.Host, null, index.h("salla-button", Object.assign({ color: this.productStatus === 'sale' ? 'primary' : 'light', type: "button", fill: this.productStatus === 'sale' ? 'solid' : 'outline', ref: el => this.btn = el, onClick: event => this.addProductToCart(event), disabled: this.productStatus !== 'sale' }, this.getBtnAttributes(), { "loader-position": "center" }), index.h("slot", null)));
|
|
110
100
|
}
|
|
111
101
|
componentDidLoad() {
|
|
112
102
|
if (!this.notifyOptionsAvailability) {
|
|
113
103
|
return;
|
|
114
104
|
}
|
|
115
|
-
salla.event.on('product-options::change', data => {
|
|
105
|
+
salla.event.on('product-options::change', async (data) => {
|
|
106
|
+
var _a;
|
|
116
107
|
if (!['thumbnail', 'color', 'single-option'].includes(data.option.type)) {
|
|
117
108
|
return;
|
|
118
109
|
}
|
|
119
|
-
this.
|
|
110
|
+
this.hasOutOfStockOption = await ((_a = document.querySelector(`salla-product-options[product-id="${this.productId}"]`)) === null || _a === void 0 ? void 0 : _a.hasOutOfStockOption());
|
|
120
111
|
this.hasLabel = false;
|
|
121
112
|
if (!this.subscribedOptions || this.subscribedOptions === 'null') {
|
|
122
113
|
return;
|
|
@@ -1444,6 +1444,7 @@ const SallaCartSummary = class {
|
|
|
1444
1444
|
index.registerInstance(this, hostRef);
|
|
1445
1445
|
this.cartSummaryCount = salla.storage.get('cart.summary.count') || 0;
|
|
1446
1446
|
this.cartSummaryTotal = salla.storage.get('cart.summary.total') || 0;
|
|
1447
|
+
this.cartLabel = salla.config.get('user.language_code') === 'ar' ? 'السلة' : 'Cart';
|
|
1447
1448
|
salla.cart.event.onUpdated((response) => {
|
|
1448
1449
|
this.cartSummaryCount = response.count || 0;
|
|
1449
1450
|
this.cartSummaryTotal = response.total || 0;
|
|
@@ -1499,7 +1500,7 @@ const SallaCartSummary = class {
|
|
|
1499
1500
|
}, '-=1700');
|
|
1500
1501
|
}
|
|
1501
1502
|
render() {
|
|
1502
|
-
return (index.h(index.Host, null, index.h("a", { class: "s-cart-summary-wrapper", href: salla.url.get('cart') }, index.h("div", { id: "s-cart-icon" }, index.h("slot", { name: "icon" }, index.h("i", { class: "s-cart-summary-icon", innerHTML: PendingOrdersIcon }))), index.h("span", { class: "s-cart-summary-count" }, salla.helpers.number(this.cartSummaryCount)), index.h("b", { class: "s-cart-summary-total" }, salla.money(this.cartSummaryTotal)))));
|
|
1503
|
+
return (index.h(index.Host, null, index.h("a", { class: "s-cart-summary-wrapper", href: salla.url.get('cart') }, index.h("div", { id: "s-cart-icon" }, index.h("slot", { name: "icon" }, index.h("i", { class: "s-cart-summary-icon", innerHTML: PendingOrdersIcon }))), index.h("span", { class: "s-cart-summary-count" }, salla.helpers.number(this.cartSummaryCount)), index.h("p", { class: "s-cart-summary-content" }, this.showCartLabel && index.h("span", { class: "s-cart-summary-label" }, this.cartLabel), index.h("b", { class: "s-cart-summary-total" }, salla.money(this.cartSummaryTotal))))));
|
|
1503
1504
|
}
|
|
1504
1505
|
get host() { return index.getElement(this); }
|
|
1505
1506
|
};
|
|
@@ -2667,38 +2668,86 @@ const SallaColorPicker = class {
|
|
|
2667
2668
|
};
|
|
2668
2669
|
SallaColorPicker.style = sallaColorPickerCss;
|
|
2669
2670
|
|
|
2670
|
-
const
|
|
2671
|
+
const sallaCountDownCss = "";
|
|
2671
2672
|
|
|
2672
|
-
const
|
|
2673
|
+
const SallaCountDown = class {
|
|
2673
2674
|
constructor(hostRef) {
|
|
2674
2675
|
index.registerInstance(this, hostRef);
|
|
2675
|
-
|
|
2676
|
-
|
|
2676
|
+
/**
|
|
2677
|
+
* The size of the count down
|
|
2678
|
+
* */
|
|
2679
|
+
this.size = 'md';
|
|
2680
|
+
/**
|
|
2681
|
+
* The color of the count down
|
|
2682
|
+
* */
|
|
2683
|
+
this.color = 'dark';
|
|
2684
|
+
/**
|
|
2685
|
+
* The digits lang to show in the count down
|
|
2686
|
+
* */
|
|
2687
|
+
this.digits = 'auto';
|
|
2688
|
+
this.daysLabel = '';
|
|
2689
|
+
this.hoursLabel = '';
|
|
2690
|
+
this.minutesLabel = '';
|
|
2691
|
+
this.secondsLabel = '';
|
|
2692
|
+
this.endLabel = '';
|
|
2693
|
+
this.invalidDate = '';
|
|
2694
|
+
this.offerEnded = false;
|
|
2677
2695
|
salla.lang.onLoaded(() => {
|
|
2678
|
-
this.
|
|
2679
|
-
this.
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
this.
|
|
2683
|
-
this.
|
|
2684
|
-
this.type = salla.url.is_page('page-single') ? 'page' : 'product';
|
|
2696
|
+
this.daysLabel = salla.lang.get('pages.checkout.day');
|
|
2697
|
+
this.hoursLabel = salla.lang.get('pages.checkout.hour');
|
|
2698
|
+
this.minutesLabel = salla.lang.get('pages.checkout.minute');
|
|
2699
|
+
this.invalidDate = salla.lang.get('blocks.buy_as_gift.incorrect_date');
|
|
2700
|
+
this.secondsLabel = salla.lang.get('pages.checkout.second');
|
|
2701
|
+
this.endLabel = salla.lang.get('pages.checkout.offer_ended');
|
|
2685
2702
|
});
|
|
2686
2703
|
}
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2704
|
+
/**
|
|
2705
|
+
* End the count down
|
|
2706
|
+
* */
|
|
2707
|
+
async endCountDown() {
|
|
2708
|
+
clearInterval(this.countInterval);
|
|
2709
|
+
this.offerEnded = true;
|
|
2710
|
+
this.daysEl.innerHTML = this.number(0);
|
|
2711
|
+
this.hoursEl.innerHTML = this.number(0);
|
|
2712
|
+
this.minutesEl.innerHTML = this.number(0);
|
|
2713
|
+
this.secondsEl.innerHTML = this.number(0);
|
|
2714
|
+
}
|
|
2715
|
+
isValidDate(date) {
|
|
2716
|
+
return !isNaN(Date.parse(date));
|
|
2717
|
+
}
|
|
2718
|
+
number(digit) {
|
|
2719
|
+
return salla.helpers.number(digit, this.digits === 'en');
|
|
2720
|
+
}
|
|
2721
|
+
startCountDown() {
|
|
2722
|
+
let countDownDate = new Date(this.date);
|
|
2723
|
+
countDownDate.setHours(23, 59, 59, 999);
|
|
2724
|
+
let countDownTime = countDownDate.getTime();
|
|
2725
|
+
this.countInterval = setInterval(() => {
|
|
2726
|
+
let now = new Date().getTime();
|
|
2727
|
+
let distance = countDownTime - now;
|
|
2728
|
+
this.daysEl.innerHTML = this.number(Math.floor(distance / (1000 * 60 * 60 * 24)));
|
|
2729
|
+
this.hoursEl.innerHTML = this.number(Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)));
|
|
2730
|
+
this.minutesEl.innerHTML = this.number(Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)));
|
|
2731
|
+
this.secondsEl.innerHTML = this.number(Math.floor((distance % (1000 * 60)) / 1000));
|
|
2732
|
+
if (distance < 0) {
|
|
2733
|
+
this.endCountDown();
|
|
2734
|
+
}
|
|
2735
|
+
}, 1000);
|
|
2736
|
+
}
|
|
2737
|
+
componentDidLoad() {
|
|
2738
|
+
if (!this.date) {
|
|
2690
2739
|
return;
|
|
2691
2740
|
}
|
|
2692
|
-
this.
|
|
2693
|
-
.then(() => salla.comment.add({ id: this.itemId, comment: this.commentField.value, type: this.type }))
|
|
2694
|
-
.finally(() => this.submitBtn.stop);
|
|
2741
|
+
this.startCountDown();
|
|
2695
2742
|
}
|
|
2696
2743
|
render() {
|
|
2697
|
-
|
|
2698
|
-
|
|
2744
|
+
if (!this.isValidDate(this.date)) {
|
|
2745
|
+
return index.h("div", null, this.invalidDate);
|
|
2746
|
+
}
|
|
2747
|
+
return (index.h(index.Host, { class: "s-count-down-wrapper" }, index.h("ul", { class: `s-count-down-list ${this.boxed ? 's-count-down-boxed' : ''} ${this.offerEnded ? 's-count-down-ended' : ''} s-count-down-${this.size} s-count-down-${this.color}` }, index.h("li", { class: "s-count-down-item" }, index.h("div", { class: "s-count-down-item-value", ref: el => this.secondsEl = el }, this.number(0)), this.labeled && index.h("div", { class: "s-count-down-item-label" }, this.secondsLabel)), index.h("li", { class: "s-count-down-item" }, index.h("div", { class: "s-count-down-item-value", ref: el => this.minutesEl = el }, this.number(0)), this.labeled && index.h("div", { class: "s-count-down-item-label" }, this.minutesLabel)), index.h("li", { class: "s-count-down-item" }, index.h("div", { class: "s-count-down-item-value", ref: el => this.hoursEl = el }, this.number(0)), this.labeled && index.h("div", { class: "s-count-down-item-label" }, this.hoursLabel)), index.h("li", { class: "s-count-down-item" }, index.h("div", { class: "s-count-down-item-value", ref: el => this.daysEl = el }, this.number(0)), this.labeled && index.h("div", { class: "s-count-down-item-label" }, this.daysLabel))), this.offerEnded && index.h("div", { class: "s-count-down-end-text" }, !!this.endText ? this.endText : this.endLabel)));
|
|
2699
2748
|
}
|
|
2700
2749
|
};
|
|
2701
|
-
|
|
2750
|
+
SallaCountDown.style = sallaCountDownCss;
|
|
2702
2751
|
|
|
2703
2752
|
var HOOKS = [
|
|
2704
2753
|
"onChange",
|
|
@@ -20760,6 +20809,9 @@ const SallaFileUpload = class {
|
|
|
20760
20809
|
fileInput.dispatchEvent(new window.Event('change', { bubbles: true }));
|
|
20761
20810
|
return this.removed.emit(deletedFile);
|
|
20762
20811
|
}
|
|
20812
|
+
/**
|
|
20813
|
+
* Method to set option for filepond
|
|
20814
|
+
* */
|
|
20763
20815
|
async setOption(key, value) {
|
|
20764
20816
|
this.filepond[key] = value;
|
|
20765
20817
|
}
|
|
@@ -20990,6 +21042,13 @@ const SallaGifting = class {
|
|
|
20990
21042
|
this.currentLang = salla.lang.locale;
|
|
20991
21043
|
});
|
|
20992
21044
|
}
|
|
21045
|
+
componentDidLoad() {
|
|
21046
|
+
salla.event.product.onPriceUpdated(() => {
|
|
21047
|
+
const quantityInput = document.querySelector('.s-quantity-input-input');
|
|
21048
|
+
// @ts-ignore
|
|
21049
|
+
this.quantity = quantityInput.value;
|
|
21050
|
+
});
|
|
21051
|
+
}
|
|
20993
21052
|
/**
|
|
20994
21053
|
* Show / Open the gifting modal window
|
|
20995
21054
|
*/
|
|
@@ -21226,7 +21285,7 @@ const SallaGifting = class {
|
|
|
21226
21285
|
let payload = {
|
|
21227
21286
|
text: this.selectedText,
|
|
21228
21287
|
sender_name: this.senderName,
|
|
21229
|
-
quantity:
|
|
21288
|
+
quantity: this.quantity,
|
|
21230
21289
|
deliver_at: this.showCalendar ? this.deliveryDate : null,
|
|
21231
21290
|
image_url: (_a = this.uploadedImage) !== null && _a !== void 0 ? _a : this.selectedImage,
|
|
21232
21291
|
receiver: {
|
|
@@ -21251,7 +21310,7 @@ const SallaGifting = class {
|
|
|
21251
21310
|
render() {
|
|
21252
21311
|
var _a, _b;
|
|
21253
21312
|
return [
|
|
21254
|
-
index.h("div", null, index.h("salla-list-tile", { class: "s-gifting-widget" }, index.h("div", { slot: "title" }, index.h("h3", null, this.sectionTitle)), index.h("div", { slot: "subtitle" }, index.h("div", null, this.sectionSubtitle)), index.h("div", { slot: "action" }, index.h("salla-button", { class: "s-gifting-widget-action", color: "gray", onClick: () => this.open() }, index.h("span", { innerHTML: GiftSharing }), " \u00A0", index.h("span", null, this.sectionBtnText)))), index.h("salla-modal", { id: 'salla-gifting-modal', isLoading: true, class: "s-gifting-modal", width: "sm", ref: modal => this.modal = modal }, index.h("div", { slot: "loading" }, index.h("div", { class: "s-gifting-skeleton" }, index.h("div", { class: "s-gifting-modal-header" }, index.h("salla-skeleton", { type: 'circle', height: '5rem', width: '5rem' }), index.h("h2", { class: "s-gifting-modal-title" }, index.h("div", { class: "s-gifting-modal-badge-wrapper" }, index.h("salla-skeleton", { height: '15px', width: '150px' })))), index.h("div", { class: "s-gifting-skeleton-content" }, index.h("salla-skeleton", { height: '10px', width: '150px' }), index.h("salla-skeleton", { height: '230px' }), index.h("salla-skeleton", { height: '10px', width: '150px' }), index.h("salla-skeleton", { height: '30px' }), index.h("salla-skeleton", { height: '40px' })))), index.h("slot", { name: "header" }), !!this.hasError ?
|
|
21313
|
+
index.h("div", null, index.h("salla-list-tile", { class: "s-gifting-widget" }, index.h("div", { slot: "title" }, index.h("h3", null, this.sectionTitle)), index.h("div", { slot: "subtitle" }, index.h("div", null, !!this.widgetSubtitle ? this.widgetSubtitle : this.sectionSubtitle)), index.h("div", { slot: "action" }, index.h("salla-button", { class: "s-gifting-widget-action", color: "gray", onClick: () => this.open() }, index.h("span", { innerHTML: GiftSharing }), " \u00A0", index.h("span", null, this.sectionBtnText)))), index.h("salla-modal", { id: 'salla-gifting-modal', isLoading: true, class: "s-gifting-modal", width: "sm", ref: modal => this.modal = modal }, index.h("div", { slot: "loading" }, index.h("div", { class: "s-gifting-skeleton" }, index.h("div", { class: "s-gifting-modal-header" }, index.h("salla-skeleton", { type: 'circle', height: '5rem', width: '5rem' }), index.h("h2", { class: "s-gifting-modal-title" }, index.h("div", { class: "s-gifting-modal-badge-wrapper" }, index.h("salla-skeleton", { height: '15px', width: '150px' })))), index.h("div", { class: "s-gifting-skeleton-content" }, index.h("salla-skeleton", { height: '10px', width: '150px' }), index.h("salla-skeleton", { height: '230px' }), index.h("salla-skeleton", { height: '10px', width: '150px' }), index.h("salla-skeleton", { height: '30px' }), index.h("salla-skeleton", { height: '40px' })))), index.h("slot", { name: "header" }), !!this.hasError ?
|
|
21255
21314
|
index.h("salla-placeholder", { alignment: "center" }, index.h("span", { slot: "title" }, this.errorMessage || salla.lang.get('common.errors.empty_results')), index.h("span", { slot: "description" }, " "))
|
|
21256
21315
|
:
|
|
21257
21316
|
[
|
|
@@ -21773,9 +21832,10 @@ const SallaLoginModal = class {
|
|
|
21773
21832
|
if ([this.mobileTab, this.emailTab].includes(tab)) {
|
|
21774
21833
|
this.regType = tab === this.mobileTab ? 'phone' : 'email';
|
|
21775
21834
|
}
|
|
21776
|
-
|
|
21777
|
-
|
|
21778
|
-
|
|
21835
|
+
const input = tab.querySelector('input[type="tel"], input[type="email"]');
|
|
21836
|
+
input && setTimeout(() => {
|
|
21837
|
+
input.focus();
|
|
21838
|
+
}, 100);
|
|
21779
21839
|
(_a = this.modal) === null || _a === void 0 ? void 0 : _a.setTitle(this.currentTabName === 'registration' ? salla.lang.get('common.titles.registration') : this.title);
|
|
21780
21840
|
return this;
|
|
21781
21841
|
}
|
|
@@ -22736,7 +22796,7 @@ const SallaMap = class {
|
|
|
22736
22796
|
}
|
|
22737
22797
|
// rendering functions
|
|
22738
22798
|
getLocationModal() {
|
|
22739
|
-
return (index.h("div", null, index.h("div", { class: "s-map-modal-title" }, this.modalTitle
|
|
22799
|
+
return (index.h("div", null, index.h("div", { class: "s-map-modal-title" }, !!this.modalTitle ? this.modalTitle : this.modalActivityTitle), index.h("div", { class: "s-map-modal-body" }, index.h("div", { class: "s-map-element", ref: el => (this.mapElement = el) }), this.readonly ? "" :
|
|
22740
22800
|
[
|
|
22741
22801
|
this.searchable && (index.h("div", { class: "s-map-search-wrapper" }, index.h("input", { class: "s-map-search-input", ref: el => (this.searchInput = el), placeholder: this.searchPlaceholder }))),
|
|
22742
22802
|
index.h("salla-button", { class: "s-map-my-location-button", onClick: () => {
|
|
@@ -22859,6 +22919,7 @@ const SallaModal = class {
|
|
|
22859
22919
|
*/
|
|
22860
22920
|
async open() {
|
|
22861
22921
|
this.host.setAttribute('visible', '');
|
|
22922
|
+
this.handleAutoFocus();
|
|
22862
22923
|
return this.host;
|
|
22863
22924
|
}
|
|
22864
22925
|
/**
|
|
@@ -22890,6 +22951,15 @@ const SallaModal = class {
|
|
|
22890
22951
|
this.isLoading = false;
|
|
22891
22952
|
return this.host;
|
|
22892
22953
|
}
|
|
22954
|
+
handleAutoFocus() {
|
|
22955
|
+
const firstFocusableElement = this.host.querySelector('input, textarea, select');
|
|
22956
|
+
if (!firstFocusableElement) {
|
|
22957
|
+
return;
|
|
22958
|
+
}
|
|
22959
|
+
setTimeout(() => {
|
|
22960
|
+
firstFocusableElement.focus();
|
|
22961
|
+
}, 100);
|
|
22962
|
+
}
|
|
22893
22963
|
toggleModal(isOpen) {
|
|
22894
22964
|
const body = this.host.querySelector('.s-modal-body');
|
|
22895
22965
|
Helper$1.toggleElementClassIf(body, 's-modal-entering', 's-modal-leaving', () => isOpen)
|
|
@@ -23534,6 +23604,22 @@ const SallaQuickOrder = class {
|
|
|
23534
23604
|
getBtnColor() {
|
|
23535
23605
|
return this.quickOrderStyle === 'default' ? 'light' : 'primary';
|
|
23536
23606
|
}
|
|
23607
|
+
getErrorMessage(type, name) {
|
|
23608
|
+
return salla.lang.get(`common.errors.${type}`, { attribute: name == 'name' ? this.userNameLabel : this.placeHolderEmail });
|
|
23609
|
+
}
|
|
23610
|
+
handleInvalidInput(e) {
|
|
23611
|
+
let input = e.target;
|
|
23612
|
+
let validity = input.validity;
|
|
23613
|
+
let errorMessage;
|
|
23614
|
+
if (validity.valueMissing) {
|
|
23615
|
+
errorMessage = this.getErrorMessage('field_required', input.name);
|
|
23616
|
+
console.log(this.getErrorMessage('field_required', input.name));
|
|
23617
|
+
}
|
|
23618
|
+
else if (validity.typeMismatch) {
|
|
23619
|
+
errorMessage = this.getErrorMessage('invalid_value', input.name);
|
|
23620
|
+
}
|
|
23621
|
+
input.setCustomValidity(errorMessage);
|
|
23622
|
+
}
|
|
23537
23623
|
async setWrapperHeight() {
|
|
23538
23624
|
let expandable = this.host.querySelector('.s-quick-order-expandable');
|
|
23539
23625
|
setTimeout(() => {
|
|
@@ -23562,13 +23648,17 @@ const SallaQuickOrder = class {
|
|
|
23562
23648
|
this.setWrapperHeight();
|
|
23563
23649
|
return;
|
|
23564
23650
|
}
|
|
23565
|
-
return this.
|
|
23651
|
+
return this.submitBtn.load()
|
|
23652
|
+
.then(() => this.getPayload())
|
|
23566
23653
|
.then((payload) => salla.api.cart.createQuickOrder(payload))
|
|
23567
23654
|
.then(() => {
|
|
23568
|
-
|
|
23569
|
-
|
|
23655
|
+
setTimeout(() => {
|
|
23656
|
+
this.submitBtn.stop();
|
|
23657
|
+
this.submitSucess = true;
|
|
23658
|
+
this.quickOrderSubmited.emit();
|
|
23659
|
+
}, 200);
|
|
23570
23660
|
})
|
|
23571
|
-
.catch(error => error && console.error(error));
|
|
23661
|
+
.catch(error => error && (console.error(error), this.submitBtn.stop()));
|
|
23572
23662
|
}
|
|
23573
23663
|
async getPayload() {
|
|
23574
23664
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -23600,14 +23690,14 @@ const SallaQuickOrder = class {
|
|
|
23600
23690
|
return;
|
|
23601
23691
|
}
|
|
23602
23692
|
if (this.submitSucess) {
|
|
23603
|
-
return (index.h(index.Host, { class: "s-quick-order" }, index.h("div", { class: 's-quick-order-confirm' }, index.h("i", { innerHTML: CelebrationIcon }), index.h("span", null, this.thanksMessage))));
|
|
23693
|
+
return (index.h(index.Host, { class: "s-quick-order" }, index.h("div", { class: 's-quick-order-confirm', style: { backgroundColor: salla.config.get('theme.color.primary') + '10', borderColor: salla.config.get('theme.color.primary') + '10', color: salla.config.get('theme.color.primary') } }, index.h("i", { innerHTML: CelebrationIcon }), index.h("span", null, this.thanksMessage))));
|
|
23604
23694
|
}
|
|
23605
23695
|
return (index.h(index.Host, { class: `s-quick-order s-quick-order-${this.getDarkOrLight()}` }, index.h("div", { class: `s-quick-order-container s-quick-order-${this.quickOrderStyle}`, style: { backgroundColor: this.getStyleColor() } }, index.h("div", { class: "s-quick-order-button-cont" }, index.h("div", null, index.h("h3", null, this.quickOrderTitle), index.h("p", null, this.subTitle)), index.h("salla-button", { class: this.expanded ? "s-quick-order-btn-close" : "", onClick: (e) => this.submit(e, true), color: this.getBtnColor() }, this.oneClick
|
|
23606
23696
|
? this.confirmPayButtonTitle : this.expanded ? index.h("i", { innerHTML: Cancel }) : this.confirmPayButtonTitle)), index.h("form", { onSubmit: (e) => this.submit(e), class: 's-quick-order-expandable ' + (this.expanded ? 's-quick-order-shown' : '') }, Salla.config.isGuest() &&
|
|
23607
23697
|
[
|
|
23608
|
-
index.h("div", { class: "s-form-group" }, index.h("span", { innerHTML: PortraitIcon }), index.h("input", { type: "text", required: true, class: "s-form-control", placeholder: this.userNameLabel, ref: el => (this.nameInput = el) })),
|
|
23609
|
-
index.h("div", { class: "s-quick-order-flex-input" }, index.h("div", { class: "s-form-group" }, index.h("span", { innerHTML: IphoneXIcon }), index.h("salla-tel-input", { ref: el => (this.phoneInput = el) })), index.h("div", { class: "s-form-group" }, index.h("span", { innerHTML: MailIcon }), index.h("input", { type: "email", class: "s-form-control", required: this.isEmailRequired, placeholder: this.placeHolderEmail + ' ' + (this.isEmailRequired ? '' : this.emailOptional), ref: el => (this.emailInput = el) }))),
|
|
23610
|
-
], 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 })))));
|
|
23698
|
+
index.h("div", { class: "s-form-group" }, index.h("span", { innerHTML: PortraitIcon }), index.h("input", { type: "text", required: true, class: "s-form-control", name: 'name', placeholder: this.userNameLabel, ref: el => (this.nameInput = el) })),
|
|
23699
|
+
index.h("div", { class: "s-quick-order-flex-input" }, index.h("div", { class: "s-form-group" }, index.h("span", { innerHTML: IphoneXIcon }), index.h("salla-tel-input", { ref: el => (this.phoneInput = el) })), index.h("div", { class: "s-form-group" }, index.h("span", { innerHTML: MailIcon }), index.h("input", { type: "email", class: "s-form-control", name: 'email', required: this.isEmailRequired, placeholder: this.placeHolderEmail + ' ' + (this.isEmailRequired ? '' : this.emailOptional), ref: el => (this.emailInput = el) }))),
|
|
23700
|
+
], 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", ref: el => (this.submitBtn = el) }, this.payButtonTitle)), index.h("salla-modal", { "modal-title": this.agreementModalHead, ref: modal => (this.agreementModal = modal) }, index.h("article", { innerHTML: this.agreementText })))));
|
|
23611
23701
|
}
|
|
23612
23702
|
componentWillLoad() {
|
|
23613
23703
|
return salla.api.withoutNotifier(() => salla.api.cart.getQuickOrderSettings().then(res => {
|
|
@@ -23630,6 +23720,17 @@ const SallaQuickOrder = class {
|
|
|
23630
23720
|
this.oneClick = !(this.isTermsRequired || this.isEmailRequired) && this.user !== null;
|
|
23631
23721
|
}));
|
|
23632
23722
|
}
|
|
23723
|
+
componentDidLoad() {
|
|
23724
|
+
this.host.querySelectorAll('input').forEach(input => {
|
|
23725
|
+
input.addEventListener('invalid', e => {
|
|
23726
|
+
this.handleInvalidInput(e);
|
|
23727
|
+
});
|
|
23728
|
+
input.addEventListener('input', () => {
|
|
23729
|
+
input.setCustomValidity('');
|
|
23730
|
+
input.reportValidity();
|
|
23731
|
+
});
|
|
23732
|
+
});
|
|
23733
|
+
}
|
|
23633
23734
|
get host() { return index.getElement(this); }
|
|
23634
23735
|
};
|
|
23635
23736
|
SallaQuickOrder.style = sallaQuickOrderCss;
|
|
@@ -24055,7 +24156,7 @@ const SallaScopees = class {
|
|
|
24055
24156
|
:
|
|
24056
24157
|
[index.h("salla-list-tile", { class: ((_a = this.originalScopesList) === null || _a === void 0 ? void 0 : _a.length) ? "s-scopes-header block" : "s-hidden" }, index.h("div", { slot: "icon", class: "s-scopes-header-icon", innerHTML: StoreAlt }), index.h("div", { slot: "title", class: "s-scopes-header-title" }, salla.lang.get('blocks.scope.you_are_browse_store_from')), index.h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, !!this.selected_scope ? this.selected_scope.name : "")), index.h("div", { class: "s-scopes-wrap" }, !!((_b = this.originalScopesList) === null || _b === void 0 ? void 0 : _b.length) && index.h("h4", { class: "s-scopes-title" }, this.getFormTitle()), ((_c = this.originalScopesList) === null || _c === void 0 ? void 0 : _c.length) > this.searchDisplayLimit ?
|
|
24057
24158
|
index.h("div", { class: "s-scopes-search-wrapper" }, index.h("div", { class: "s-scopes-search-icon", innerHTML: Search }), index.h("input", { type: "text", class: "s-scopes-search-input", onInput: e => this.handleSearchFieldTyping(e), enterkeyhint: "search", placeholder: salla.lang.get('blocks.scope.searching_for_a_branch') }))
|
|
24058
|
-
: "", this.hasError || ((_d = this.
|
|
24159
|
+
: "", this.hasError || ((_d = this.originalScopesList) === null || _d === void 0 ? void 0 : _d.length) < 2 ?
|
|
24059
24160
|
this.placeholderContent()
|
|
24060
24161
|
: this.mode === ModeType.DEFAULT ? this.defaultContent() : this.availabilityContent())])));
|
|
24061
24162
|
}
|
|
@@ -26835,7 +26936,7 @@ SallaVerify.style = sallaVerifyCss;
|
|
|
26835
26936
|
exports.salla_button = SallaButton;
|
|
26836
26937
|
exports.salla_cart_summary = SallaCartSummary;
|
|
26837
26938
|
exports.salla_color_picker = SallaColorPicker;
|
|
26838
|
-
exports.
|
|
26939
|
+
exports.salla_count_down = SallaCountDown;
|
|
26839
26940
|
exports.salla_datetime_picker = SallaDatetimePicker;
|
|
26840
26941
|
exports.salla_file_upload = SallaFileUpload;
|
|
26841
26942
|
exports.salla_gifting = SallaGifting;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
'use strict';
|
|
5
|
+
|
|
6
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
|
+
|
|
8
|
+
const index = require('./index-1d2b3370.js');
|
|
9
|
+
|
|
10
|
+
const sallaCommentFormCss = ":host{display:block}";
|
|
11
|
+
|
|
12
|
+
const SallaCommentForm = class {
|
|
13
|
+
constructor(hostRef) {
|
|
14
|
+
index.registerInstance(this, hostRef);
|
|
15
|
+
this.placeholder = salla.lang.get('blocks.comments.placeholder');
|
|
16
|
+
this.submitText = salla.lang.get('blocks.comments.submit');
|
|
17
|
+
salla.lang.onLoaded(() => {
|
|
18
|
+
this.placeholder = salla.lang.get('blocks.comments.placeholder');
|
|
19
|
+
this.submitText = salla.lang.get('blocks.comments.submit');
|
|
20
|
+
});
|
|
21
|
+
salla.onReady(() => {
|
|
22
|
+
this.canComment = salla.config.get('user.can_comment');
|
|
23
|
+
this.itemId = salla.config.get('page.id');
|
|
24
|
+
this.type = salla.url.is_page('page-single') ? 'page' : 'product';
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
submit() {
|
|
28
|
+
if (!this.commentForm.reportValidity()) {
|
|
29
|
+
salla.log('CommentForm:: validation error!');
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
this.submitBtn.load()
|
|
33
|
+
.then(() => salla.comment.add({ id: this.itemId, comment: this.commentField.value, type: this.type }))
|
|
34
|
+
.finally(() => this.submitBtn.stop);
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
return (index.h(index.Host, null, !!this.canComment ? index.h("form", { ref: frm => this.commentForm = frm }, index.h("div", { class: "s-comment-form-wrapper" }, this.showAvatar ?
|
|
38
|
+
index.h("img", { class: "s-comment-form-avatar", src: salla.config.get('user.avatar'), alt: "user avatar" }) : '', index.h("div", { class: "s-comment-form-content" }, index.h("textarea", { cols: 30, rows: 5, minlength: "4", maxlength: "500", ref: field => this.commentField = field, placeholder: this.placeholder, class: "s-comment-form-input", required: true }), index.h("br", null), index.h("div", { class: "s-comment-form-action" }, index.h("salla-button", { ref: btn => this.submitBtn = btn, "loader-position": 'center', onClick: () => this.submit() }, this.submitText))))) : ''));
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
SallaCommentForm.style = sallaCommentFormCss;
|
|
42
|
+
|
|
43
|
+
exports.salla_comment_form = SallaCommentForm;
|
|
@@ -62,7 +62,7 @@ const SallaProductOptions = class {
|
|
|
62
62
|
exl: 'application/excel,application/vnd.ms-excel,application/x-excel,application/x-msexcel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
63
63
|
txt: 'text/plain',
|
|
64
64
|
};
|
|
65
|
-
this.outOfStockText =
|
|
65
|
+
this.outOfStockText = '';
|
|
66
66
|
this.donationAmount = salla.lang.get('pages.products.donation_amount');
|
|
67
67
|
this.selectedOptions = [];
|
|
68
68
|
this.outSkus = [];
|
|
@@ -113,6 +113,12 @@ const SallaProductOptions = class {
|
|
|
113
113
|
});
|
|
114
114
|
return selectedOptions;
|
|
115
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* Return true if there is any out of stock options are selected and vise versa.
|
|
118
|
+
* */
|
|
119
|
+
async hasOutOfStockOption() {
|
|
120
|
+
return this.selectedOptions.some(option => option.is_out) || (this.selectedSkus.length && this.selectedSkus.every(sku => this.outSkus.includes(sku)));
|
|
121
|
+
}
|
|
116
122
|
/**
|
|
117
123
|
* Get selected options.
|
|
118
124
|
* */
|
|
@@ -133,7 +139,6 @@ const SallaProductOptions = class {
|
|
|
133
139
|
});
|
|
134
140
|
data.detail = detail;
|
|
135
141
|
}
|
|
136
|
-
//todo:: this code looks repeated with salla-add-to-cart component, clean it in one place
|
|
137
142
|
const index = this.selectedOptions.findIndex(option => option.option_id === data.option.id);
|
|
138
143
|
index > -1 ? this.selectedOptions[index] = Object.assign(Object.assign({}, data.detail), { option_id: data.option.id }) : this.selectedOptions.push(Object.assign(Object.assign({}, data.detail), { option_id: data.option.id }));
|
|
139
144
|
this.setSelectedSkus();
|
|
@@ -289,10 +294,7 @@ const SallaProductOptions = class {
|
|
|
289
294
|
let outSelectableSkus = this.selectedSkus.filter(sku => this.outSkus.includes(sku));
|
|
290
295
|
return Object.keys(detail.skus_availability).some(sku => outSelectableSkus.includes(Number(sku)));
|
|
291
296
|
}
|
|
292
|
-
|
|
293
|
-
// see image: Screen Shot 2023-01-04 at 8.46.56 PM.png, color green & color blue should be out,
|
|
294
|
-
// because the selected thumbnail is out
|
|
295
|
-
return false;
|
|
297
|
+
return this.selectedOptions.some(option => option.is_out && option.option_id !== detail.option_id);
|
|
296
298
|
}
|
|
297
299
|
singleOption(option) {
|
|
298
300
|
return index.h("div", null, index.h("select", { name: `options[${option.id}]`, required: option.required, class: "s-form-control", onChange: e => this.changedHandler(e, option) }, index.h("option", { value: "" }, option.placeholder), option === null || option === void 0 ? void 0 :
|