@salla.sa/twilight-components 2.11.9 → 2.11.11

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 (38) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/salla-button_37.cjs.entry.js +127 -101
  3. package/dist/cjs/twilight.cjs.js +1 -1
  4. package/dist/collection/components/salla-color-picker/salla-color-picker.js +49 -1
  5. package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +23 -12
  6. package/dist/collection/components/salla-file-upload/salla-file-upload.js +64 -78
  7. package/dist/collection/components/salla-map/salla-map.js +58 -18
  8. package/dist/collection/components/salla-product-options/interfaces.js +3 -0
  9. package/dist/collection/components/salla-product-options/salla-product-options.js +70 -21
  10. package/dist/collection/components/salla-slider/salla-slider.js +2 -2
  11. package/dist/components/salla-color-picker.js +1 -1174
  12. package/dist/components/salla-color-picker2.js +1192 -0
  13. package/dist/components/salla-conditional-fields2.js +23 -12
  14. package/dist/components/salla-file-upload2.js +30 -75
  15. package/dist/components/salla-map.js +1 -716
  16. package/dist/components/salla-map2.js +728 -0
  17. package/dist/components/salla-product-options.js +83 -27
  18. package/dist/components/salla-slider2.js +2 -2
  19. package/dist/esm/loader.js +1 -1
  20. package/dist/esm/salla-button_37.entry.js +127 -101
  21. package/dist/esm/twilight.js +1 -1
  22. package/dist/esm-es5/loader.js +1 -1
  23. package/dist/esm-es5/salla-button_37.entry.js +4 -4
  24. package/dist/esm-es5/twilight.js +1 -1
  25. package/dist/twilight/p-bb361b66.system.entry.js +53 -0
  26. package/dist/twilight/p-c71ec183.system.js +1 -1
  27. package/dist/twilight/p-ee192b12.entry.js +36 -0
  28. package/dist/twilight/twilight.esm.js +1 -1
  29. package/dist/types/components/salla-color-picker/salla-color-picker.d.ts +9 -0
  30. package/dist/types/components/salla-conditional-fields/salla-conditional-fields.d.ts +2 -0
  31. package/dist/types/components/salla-file-upload/salla-file-upload.d.ts +9 -25
  32. package/dist/types/components/salla-map/salla-map.d.ts +13 -2
  33. package/dist/types/components/salla-product-options/interfaces.d.ts +4 -1
  34. package/dist/types/components/salla-product-options/salla-product-options.d.ts +14 -3
  35. package/dist/types/components.d.ts +60 -4
  36. package/package.json +4 -4
  37. package/dist/twilight/p-9f9c6276.entry.js +0 -36
  38. package/dist/twilight/p-ecac0cdc.system.entry.js +0 -53
@@ -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_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],\"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\":[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]}],[4,\"salla-map\",{\"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],\"searchInputValue\":[32],\"geolocationError\":[32],\"searchInput\":[32],\"mapElement\":[32],\"open\":[64]}],[0,\"salla-product-options\",{\"productId\":[2,\"product-id\"],\"options\":[1],\"optionsData\":[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],\"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],\"hasBadges\":[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\":[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\"]]],[4,\"salla-slider\",{\"blockTitle\":[513,\"block-title\"],\"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]}],[0,\"salla-file-upload\",{\"value\":[1537],\"files\":[513],\"cartItemId\":[1,\"cart-item-id\"],\"profileImage\":[516,\"profile-image\"],\"name\":[1537],\"payloadName\":[1,\"payload-name\"],\"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\":[1,\"label-idle\"],\"iconRemove\":[1,\"icon-remove\"],\"iconProcess\":[1,\"icon-process\"],\"iconRetry\":[1,\"icon-retry\"],\"iconUndo\":[1,\"icon-undo\"],\"labelInvalidField\":[32],\"labelFileWaitingForSize\":[32],\"labelFileSizeNotAvailable\":[32],\"labelFileLoading\":[32],\"labelFileLoadError\":[32],\"labelFileProcessing\":[32],\"labelFileProcessingComplete\":[32],\"labelFileProcessingAborted\":[32],\"labelFileProcessingError\":[32],\"labelFileProcessingRevertError\":[32],\"labelFileRemoveError\":[32],\"labelTapToCancel\":[32],\"labelTapToRetry\":[32],\"labelTapToUndo\":[32],\"labelButtonRemoveItem\":[32],\"labelButtonAbortItemLoad\":[32],\"labelButtonRetryItemLoad\":[32],\"labelButtonAbortItemProcessing\":[32],\"labelButtonUndoItemProcessing\":[32],\"labelButtonRetryItemProcessing\":[32],\"labelButtonProcessItem\":[32],\"setOption\":[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);
37
+ 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],\"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\":[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]}],[0,\"salla-product-options\",{\"productId\":[2,\"product-id\"],\"options\":[1],\"optionsData\":[32],\"outOfStockText\":[32],\"donationAmount\":[32]}],[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\":[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-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],\"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],\"searchInputValue\":[32],\"geolocationError\":[32],\"searchInput\":[32],\"mapInput\":[32],\"mapElement\":[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]}],[4,\"salla-conditional-fields\",null,[[0,\"change\",\"changeHandler\"]]],[0,\"salla-rating-stars\",{\"name\":[1],\"size\":[1],\"value\":[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\"]]],[4,\"salla-slider\",{\"blockTitle\":[513,\"block-title\"],\"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]}],[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\":[1],\"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-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);
38
38
  });
39
39
  };
40
40
 
@@ -2520,6 +2520,14 @@ const SallaColorPicker = class {
2520
2520
  this.submitted = index.createEvent(this, "submitted", 7);
2521
2521
  this.popupOpened = index.createEvent(this, "popupOpened", 7);
2522
2522
  this.popupClosed = index.createEvent(this, "popupClosed", 7);
2523
+ /**
2524
+ * File input name for the native formData
2525
+ */
2526
+ this.name = 'color';
2527
+ /**
2528
+ * Set if the color picker input is required or not
2529
+ */
2530
+ this.required = false;
2523
2531
  /**
2524
2532
  * Initial color for the picker.
2525
2533
  */
@@ -2543,11 +2551,14 @@ const SallaColorPicker = class {
2543
2551
  this.enableAlpha = false;
2544
2552
  }
2545
2553
  colorChangeHandler(color) {
2554
+ this.colorInput.value = color.hex;
2546
2555
  this.colorChanged.emit(color);
2547
2556
  }
2548
2557
  submittedHandler(color) {
2549
2558
  this.setColorValue(color.rgbaString, true);
2550
2559
  this.canvas.style.backgroundColor = color.rgbString;
2560
+ this.colorInput.value = color.hex;
2561
+ this.colorInput.dispatchEvent(new window.Event('change', { bubbles: true }));
2551
2562
  this.submitted.emit(color);
2552
2563
  }
2553
2564
  popupOpenedHandler(color) {
@@ -2649,7 +2660,7 @@ const SallaColorPicker = class {
2649
2660
  });
2650
2661
  }
2651
2662
  render() {
2652
- return (index.h(index.Host, { class: "s-color-picker-main" }, index.h("slot", null, index.h("div", { class: "s-color-picker-widget" }, index.h("div", { class: "s-color-picker-widget-canvas", ref: dv => this.canvas = dv }), index.h("span", { innerHTML: ArrowDown })))));
2663
+ return (index.h(index.Host, { class: "s-color-picker-main" }, index.h("slot", null, index.h("div", { class: "s-color-picker-widget" }, index.h("div", { class: "s-color-picker-widget-canvas", ref: dv => this.canvas = dv }), index.h("span", { innerHTML: ArrowDown }))), index.h("input", { type: "hidden", name: this.name, required: this.required, value: this.color, ref: color => this.colorInput = color })));
2653
2664
  }
2654
2665
  get host() { return index.getElement(this); }
2655
2666
  };
@@ -2699,6 +2710,27 @@ const SallaConditionalFields = class {
2699
2710
  constructor(hostRef) {
2700
2711
  index.registerInstance(this, hostRef);
2701
2712
  }
2713
+ hideAllOptions(optionId) {
2714
+ this.host.querySelectorAll(`[data-show-when^="options[${optionId}"]`).forEach((field) => {
2715
+ field.classList.add('hidden');
2716
+ this.hideAllOptions(field.dataset.optionId);
2717
+ this.disableInputs(field);
2718
+ });
2719
+ }
2720
+ disableInputs(field) {
2721
+ field.querySelectorAll('[name]').forEach((input) => {
2722
+ var _a;
2723
+ input.setAttribute('disabled', '');
2724
+ input.removeAttribute('required');
2725
+ if (((_a = input === null || input === void 0 ? void 0 : input.tagName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'select') {
2726
+ input.value = '';
2727
+ }
2728
+ if (['checkbox'].includes(input.getAttribute('type')) && input.hasOwnProperty('checked')) {
2729
+ // @ts-ignore
2730
+ input.checked = false;
2731
+ }
2732
+ });
2733
+ }
2702
2734
  changeHandler(event) {
2703
2735
  var _a;
2704
2736
  salla.event.emit('salla-onditional-fields::change', event);
@@ -2738,19 +2770,9 @@ const SallaConditionalFields = class {
2738
2770
  });
2739
2771
  }
2740
2772
  else {
2773
+ this.hideAllOptions(field.dataset.optionId);
2741
2774
  field.classList.add('hidden');
2742
- field.querySelectorAll('[name]').forEach((input) => {
2743
- input.setAttribute('disabled', '');
2744
- input.removeAttribute('required');
2745
- if (['checkbox'].includes(input.getAttribute('type')) && input.hasOwnProperty('checked')) {
2746
- // @ts-ignore
2747
- input.checked = false;
2748
- }
2749
- //firing this event will show errors, so don't run it when pageLoading.
2750
- // if (this.optionsAlreadyInitiated) {
2751
- // salla.document.event.fireEvent(input, 'change', {'bubbles': true});
2752
- // }
2753
- });
2775
+ this.disableInputs(field);
2754
2776
  }
2755
2777
  });
2756
2778
  }
@@ -20667,6 +20689,10 @@ const SallaFileUpload = class {
20667
20689
  * Set the component to be profile image uploader with a preview and a circular shape
20668
20690
  */
20669
20691
  this.profileImage = false;
20692
+ /**
20693
+ * Accepted file types
20694
+ */
20695
+ this.accept = "image/png, image/jpeg, image/jpg, image/gif, video/*";
20670
20696
  /**
20671
20697
  * The submit request method.
20672
20698
  */
@@ -20759,32 +20785,6 @@ const SallaFileUpload = class {
20759
20785
  * The icon used for undo actions
20760
20786
  */
20761
20787
  this.iconUndo = '<svg>...</svg>';
20762
- /// STATES
20763
- /**
20764
- * //todo:: drop all of there and set them directly @see how we set `labelFileTypeNotAllowed`
20765
- * Translations
20766
- */
20767
- this.labelInvalidField = salla.lang.get("common.uploader.invalid_field");
20768
- this.labelFileWaitingForSize = salla.lang.get('common.uploader.waiting_file_info');
20769
- this.labelFileSizeNotAvailable = salla.lang.get('common.uploader.size_not_available');
20770
- this.labelFileLoading = salla.lang.get('common.elements.loading');
20771
- this.labelFileLoadError = salla.lang.get('common.uploader.failed_to_load');
20772
- this.labelFileProcessing = salla.lang.get('common.uploader.uploading');
20773
- this.labelFileProcessingComplete = salla.lang.get('common.uploader.upload_completed');
20774
- this.labelFileProcessingAborted = salla.lang.get('common.uploader.upload_cancelled');
20775
- this.labelFileProcessingError = salla.lang.get('common.uploader.error_uploading');
20776
- this.labelFileProcessingRevertError = salla.lang.get('common.uploader.error_reverting');
20777
- this.labelFileRemoveError = salla.lang.get('common.uploader.error_removing');
20778
- this.labelTapToCancel = salla.lang.get("common.elements.cancel");
20779
- this.labelTapToRetry = salla.lang.get("common.elements.retry");
20780
- this.labelTapToUndo = salla.lang.get("common.uploader.revert");
20781
- this.labelButtonRemoveItem = salla.lang.get("common.elements.remove");
20782
- this.labelButtonAbortItemLoad = salla.lang.get("common.elements.abort");
20783
- this.labelButtonRetryItemLoad = salla.lang.get("common.elements.retry");
20784
- this.labelButtonAbortItemProcessing = salla.lang.get("common.uploader.abort_upload");
20785
- this.labelButtonUndoItemProcessing = salla.lang.get("common.elements.undo");
20786
- this.labelButtonRetryItemProcessing = `${salla.lang.get("common.elements.retry")} ${salla.lang.get("common.uploader.upload")}`;
20787
- this.labelButtonProcessItem = salla.lang.get("common.uploader.upload");
20788
20788
  filepond.registerPlugin(FilePondPluginImagePreview, filepondPluginImageExifOrientation, filepondPluginFileValidateSize, filepondPluginImageEdit, filepondPluginFileValidateType, filepondPluginFilePoster);
20789
20789
  //if cartItemIdIsPassed, we need to set the url
20790
20790
  if (!this.url && this.cartItemId) {
@@ -20801,30 +20801,21 @@ const SallaFileUpload = class {
20801
20801
  }
20802
20802
  salla.lang.onLoaded(() => {
20803
20803
  this.host.querySelectorAll('.filepond--drop-label>label').forEach(label => label.innerHTML = this.getLabel());
20804
- this.labelInvalidField = salla.lang.get("common.uploader.invalid_field");
20805
- this.labelFileWaitingForSize = salla.lang.get('common.uploader.waiting_file_info');
20806
- this.labelFileSizeNotAvailable = salla.lang.get('common.uploader.size_not_available');
20807
- this.labelFileLoading = salla.lang.get('common.elements.loading');
20808
- this.labelFileLoadError = salla.lang.get('common.uploader.failed_to_load');
20809
- this.labelFileProcessing = salla.lang.get('common.uploader.uploading');
20810
- this.labelFileProcessingComplete = salla.lang.get('common.uploader.upload_completed');
20811
- this.labelFileProcessingAborted = salla.lang.get('common.uploader.upload_cancelled');
20812
- this.labelFileProcessingError = salla.lang.get('common.uploader.error_uploading');
20813
- this.labelFileProcessingRevertError = salla.lang.get('common.uploader.error_reverting');
20814
- this.labelFileRemoveError = salla.lang.get('common.uploader.error_removing');
20815
- this.labelTapToCancel = salla.lang.get("common.elements.cancel");
20816
- this.labelTapToRetry = salla.lang.get("common.elements.retry");
20817
- this.labelTapToUndo = salla.lang.get("common.uploader.revert");
20818
- this.labelButtonRemoveItem = salla.lang.get("common.elements.remove");
20819
- this.labelButtonAbortItemLoad = salla.lang.get("common.elements.abort");
20820
- this.labelButtonRetryItemLoad = salla.lang.get("common.elements.retry");
20821
- this.labelButtonAbortItemProcessing = salla.lang.get("common.uploader.abort_upload");
20822
- this.labelButtonUndoItemProcessing = salla.lang.get("common.elements.undo");
20823
- this.labelButtonRetryItemProcessing = `${salla.lang.get("common.elements.retry")} ${salla.lang.get("common.uploader.upload")}`;
20824
- this.labelButtonProcessItem = salla.lang.get("common.uploader.upload");
20825
20804
  if (this.filepond) {
20826
20805
  this.filepond.labelFileTypeNotAllowed = salla.lang.get('common.uploader.invalid_type');
20827
20806
  this.filepond.labelMaxFileSizeExceeded = salla.lang.get('common.uploader.too_large');
20807
+ this.filepond.labelFileSizeNotAvailable = salla.lang.get('common.uploader.size_not_available');
20808
+ this.filepond.labelFileLoading = salla.lang.get('common.elements.loading');
20809
+ this.filepond.labelFileLoadError = salla.lang.get('common.uploader.failed_to_load');
20810
+ this.filepond.labelFileProcessing = salla.lang.get('common.uploader.uploading');
20811
+ this.filepond.labelFileProcessingComplete = salla.lang.get('common.uploader.upload_completed');
20812
+ this.filepond.labelFileProcessingAborted = salla.lang.get('common.uploader.upload_cancelled');
20813
+ this.filepond.labelFileProcessingError = salla.lang.get('common.uploader.error_uploading');
20814
+ this.filepond.labelTapToCancel = salla.lang.get("common.elements.cancel");
20815
+ this.filepond.labelTapToRetry = salla.lang.get("common.elements.retry");
20816
+ this.filepond.labelButtonRemoveItem = salla.lang.get("common.elements.remove");
20817
+ this.filepond.labelButtonUndoItemProcessing = salla.lang.get("common.elements.undo");
20818
+ this.filepond.labelButtonProcessItem = salla.lang.get("common.uploader.upload");
20828
20819
  }
20829
20820
  });
20830
20821
  }
@@ -20840,11 +20831,13 @@ const SallaFileUpload = class {
20840
20831
  container.items.add(file.file);
20841
20832
  fileInput.type = 'file';
20842
20833
  fileInput.files = container.files;
20834
+ fileInput.dispatchEvent(new window.Event('change', { bubbles: true }));
20843
20835
  }
20844
20836
  uploadedHandler() {
20845
20837
  let fileInput = this.getFormDataFileInput();
20846
20838
  fileInput.type = 'hidden';
20847
20839
  fileInput.value = this.value;
20840
+ fileInput.dispatchEvent(new window.Event('change', { bubbles: true }));
20848
20841
  return this.uploaded.emit(this.value);
20849
20842
  }
20850
20843
  removedHandler(deletedFile) {
@@ -20854,6 +20847,10 @@ const SallaFileUpload = class {
20854
20847
  if (deletedFile.getMetadata('id')) {
20855
20848
  salla.cart.api.deleteImage(deletedFile.getMetadata('id'));
20856
20849
  }
20850
+ if (this.height) {
20851
+ setTimeout(() => this.host.querySelector('.filepond--root').style.height = this.height, 1000);
20852
+ }
20853
+ fileInput.dispatchEvent(new window.Event('change', { bubbles: true }));
20857
20854
  return this.removed.emit(deletedFile);
20858
20855
  }
20859
20856
  async setOption(key, value) {
@@ -20900,15 +20897,17 @@ const SallaFileUpload = class {
20900
20897
  }
20901
20898
  return [];
20902
20899
  }
20903
- render() {
20900
+ componentWillLoad() {
20904
20901
  if (!this.labelIdle) {
20905
20902
  this.labelIdle = this.host.innerHTML;
20906
20903
  this.host.innerHTML = '';
20907
20904
  }
20905
+ }
20906
+ render() {
20908
20907
  return (index.h(index.Host, { class: {
20909
20908
  "s-file-upload": true,
20910
20909
  "s-file-upload-profile-image": this.profileImage,
20911
- } }, index.h("input", { type: "file", name: this.name, value: this.value, ref: ele => this.fileUploader = ele, required: this.required, class: "s-file-upload-wrapper s-file-upload-input", accept: "image/png, image/jpeg, image/jpg, image/gif" })));
20910
+ } }, index.h("input", { type: "file", name: this.name, value: this.value, ref: ele => this.fileUploader = ele, required: this.required, class: "s-file-upload-wrapper s-file-upload-input", accept: this.accept })));
20912
20911
  }
20913
20912
  componentDidLoad() {
20914
20913
  let files = this.getFiles();
@@ -20988,10 +20987,7 @@ const SallaFileUpload = class {
20988
20987
  labelDecimalSeparator: this.labelDecimalSeparator,
20989
20988
  labelThousandsSeparator: this.labelThousandsSeparator,
20990
20989
  labelIdle: this.getLabel(),
20991
- //todo:: pass support types from props
20992
- acceptedFileTypes: ['image/jpg', 'image/png', 'image/jpeg', 'image/gif', 'video/*'],
20993
- labelInvalidField: this.labelInvalidField,
20994
- labelFileWaitingForSize: this.labelFileWaitingForSize,
20990
+ acceptedFileTypes: this.accept.replace(/\s+/g, '').split(','),
20995
20991
  labelFileTypeNotAllowed: salla.lang.get('common.uploader.invalid_type'),
20996
20992
  fileValidateTypeLabelExpectedTypes: '{allButLastType}, {lastType}',
20997
20993
  labelMaxFileSizeExceeded: salla.lang.get('common.uploader.too_large'),
@@ -22623,6 +22619,8 @@ const SallaMap = class {
22623
22619
  this.selected = index.createEvent(this, "selected", 7);
22624
22620
  this.mapClicked = index.createEvent(this, "mapClicked", 7);
22625
22621
  this.currentLocationChanged = index.createEvent(this, "currentLocationChanged", 7);
22622
+ this.defaultLat = 21.419421; //Mecca 🕋
22623
+ this.defaultLng = 39.82553; //Mecca 🕋
22626
22624
  // state variables
22627
22625
  this.modalActivityTitle = 'Activity Location';
22628
22626
  this.confirmButtonTitle = 'Confirm';
@@ -22631,21 +22629,21 @@ const SallaMap = class {
22631
22629
  this.searchInputValue = null;
22632
22630
  this.geolocationError = false;
22633
22631
  /**
22634
- * Disable or enable actions
22632
+ * File input name for the native formData
22635
22633
  */
22636
- this.readonly = false;
22634
+ this.name = 'location';
22637
22635
  /**
22638
- * Sets the search bar visibility.
22636
+ * Set if the location input is required or not
22639
22637
  */
22640
- this.searchable = false;
22638
+ this.required = false;
22641
22639
  /**
22642
- * Latitude coordinate, defaults to Mecca 🕋 ❤️
22640
+ * Disable or enable actions
22643
22641
  */
22644
- this.lat = 21.419421;
22642
+ this.readonly = false;
22645
22643
  /**
22646
- * Longitude coordinate, defaults to Mecca 🕋 ❤️
22644
+ * Sets the search bar visibility.
22647
22645
  */
22648
- this.lng = 39.82553;
22646
+ this.searchable = false;
22649
22647
  /**
22650
22648
  * Sets google api key value
22651
22649
  */
@@ -22690,10 +22688,10 @@ const SallaMap = class {
22690
22688
  const loader = new Loader(this.apiKey, options);
22691
22689
  loader.load().then(google => {
22692
22690
  this.map = new google.maps.Map(mapDOM, {
22693
- center: {
22691
+ center: (this.lat || this.lng) ? {
22694
22692
  lat: this.lat,
22695
22693
  lng: this.lng,
22696
- },
22694
+ } : null,
22697
22695
  zoom: this.zoom,
22698
22696
  zoomControl: true,
22699
22697
  mapTypeControl: false,
@@ -22744,7 +22742,7 @@ const SallaMap = class {
22744
22742
  address: this.searchInputValue ? this.searchInputValue : null,
22745
22743
  });
22746
22744
  });
22747
- if (!this.host.hasAttribute('lat') && !this.host.hasAttribute('lng')) {
22745
+ if (this.lat == this.defaultLat && this.lng == this.defaultLng) {
22748
22746
  this.getCurrentLocation();
22749
22747
  if (this.geolocationError) {
22750
22748
  this.map.setCenter({
@@ -22829,8 +22827,10 @@ const SallaMap = class {
22829
22827
  lng: this.lng,
22830
22828
  address: this.searchInputValue ? this.searchInputValue : null,
22831
22829
  };
22830
+ this.mapInput.value = `${points.lat}, ${points.lng}`;
22832
22831
  salla.event.emit('salla-map::selected', points);
22833
22832
  this.selected.emit(points);
22833
+ this.mapInput.dispatchEvent(new window.Event('change', { bubbles: true }));
22834
22834
  this.locationModal.close();
22835
22835
  } }, this.confirmButtonTitle)
22836
22836
  ])));
@@ -22841,7 +22841,7 @@ const SallaMap = class {
22841
22841
  this.locationModal = modal;
22842
22842
  } }, this.getLocationModal()), index.h("slot", { name: "button" }, index.h("salla-button", { onClick: () => {
22843
22843
  this.open();
22844
- }, 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)))));
22844
+ }, 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))), index.h("input", { type: "hidden", name: this.name, required: this.required, value: `${this.lat}, ${this.lng}`, ref: color => this.mapInput = color })));
22845
22845
  }
22846
22846
  get host() { return index.getElement(this); }
22847
22847
  };
@@ -23328,6 +23328,9 @@ var DisplayType;
23328
23328
  DisplayType["TIME"] = "time";
23329
23329
  DisplayType["RADIO"] = "radio";
23330
23330
  DisplayType["CHECKBOX"] = "checkbox";
23331
+ DisplayType["MAP"] = "map";
23332
+ DisplayType["FILE"] = "file";
23333
+ DisplayType["COLOR_PICKER"] = "color_picker";
23331
23334
  })(DisplayType || (DisplayType = {}));
23332
23335
  var Currency;
23333
23336
  (function (Currency) {
@@ -23341,6 +23344,13 @@ const CheckCircleIcon = `<!-- Generated by IcoMoon.io -->
23341
23344
  </svg>
23342
23345
  `;
23343
23346
 
23347
+ const FileIcon = `<!-- Generated by IcoMoon.io -->
23348
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
23349
+ <title>file-upload</title>
23350
+ <path d="M21.333 24c0.341 0 0.683-0.131 0.943-0.391 0.521-0.521 0.521-1.364 0-1.885l-5.333-5.333c-0.123-0.123-0.271-0.22-0.433-0.288-0.327-0.135-0.693-0.135-1.019 0-0.163 0.068-0.311 0.165-0.433 0.288l-5.333 5.333c-0.521 0.521-0.521 1.364 0 1.885s1.364 0.521 1.885 0l3.057-3.057v10.115c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-10.115l3.057 3.057c0.26 0.26 0.601 0.391 0.943 0.391zM28.943 9.724l-9.333-9.333c-0.249-0.251-0.589-0.391-0.943-0.391h-12c-2.205 0-4 1.795-4 4v24c0 2.205 1.795 4 4 4h4c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-4c-0.735 0-1.333-0.599-1.333-1.333v-24c0-0.735 0.599-1.333 1.333-1.333h11.448l8.552 8.552v16.781c0 0.735-0.599 1.333-1.333 1.333h-4c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333h4c2.205 0 4-1.795 4-4v-17.333c0-0.353-0.14-0.693-0.391-0.943z"></path>
23351
+ </svg>
23352
+ `;
23353
+
23344
23354
  const sallaProductOptionsCss = "";
23345
23355
 
23346
23356
  const SallaProductOptions = class {
@@ -23357,6 +23367,16 @@ const SallaProductOptions = class {
23357
23367
  this.dateTimeSelected = index.createEvent(this, "dateTimeSelected", 7);
23358
23368
  this.dateSelected = index.createEvent(this, "dateSelected", 7);
23359
23369
  this.timeSelected = index.createEvent(this, "timeSelected", 7);
23370
+ this.colorPicked = index.createEvent(this, "colorPicked", 7);
23371
+ this.locationSelected = index.createEvent(this, "locationSelected", 7);
23372
+ this.fileTypes = {
23373
+ pdf: 'application/pdf',
23374
+ png: 'image/png',
23375
+ jpg: 'image/jpeg',
23376
+ word: 'application/msword',
23377
+ exl: 'application/vnd.ms-excel',
23378
+ txt: 'text/plain',
23379
+ };
23360
23380
  this.outOfStockText = salla.lang.get("pages.products.out_of_stock");
23361
23381
  this.donationAmount = salla.lang.get('pages.products.donation_amount');
23362
23382
  /**
@@ -23389,10 +23409,18 @@ const SallaProductOptions = class {
23389
23409
  }
23390
23410
  this.itemsSelected.emit(multiSelectedItems);
23391
23411
  }
23412
+ getLatLng(value, type) {
23413
+ return value
23414
+ ? value.split(',')[type == 'lat' ? 0 : 1]
23415
+ : '';
23416
+ }
23392
23417
  getDisplayForType(option) {
23393
23418
  if (this[`${option.type}Option`]) {
23394
23419
  return this[`${option.type}Option`](option);
23395
23420
  }
23421
+ if (option.type === DisplayType.COLOR_PICKER) {
23422
+ return this.colorPickerOption(option);
23423
+ }
23396
23424
  if (option.type === DisplayType.MULTIPLE_OPTIONS) {
23397
23425
  return this.multipleOptions(option);
23398
23426
  }
@@ -23415,7 +23443,7 @@ const SallaProductOptions = class {
23415
23443
  if (this.optionsData.length == 0) {
23416
23444
  return;
23417
23445
  }
23418
- return (index.h(index.Host, { class: "s-product-options-wrapper" }, index.h("salla-conditional-fields", null, this.optionsData.map((option) => index.h("div", Object.assign({ class: `s-product-options-option-container${option.visibility_condition ? ' hidden' : ''}` }, this.getOptionShownWhen(option)), option.name == 'splitter' ?
23446
+ return (index.h(index.Host, { class: "s-product-options-wrapper" }, index.h("salla-conditional-fields", null, this.optionsData.map((option) => index.h("div", Object.assign({ class: `s-product-options-option-container${option.visibility_condition ? ' hidden' : ''}`, "data-option-id": option.id }, this.getOptionShownWhen(option)), option.name == 'splitter' ?
23419
23447
  this.splitterOption()
23420
23448
  : 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))))))));
23421
23449
  }
@@ -23423,33 +23451,24 @@ const SallaProductOptions = class {
23423
23451
  donationOption(option) {
23424
23452
  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", value: option.value, placeholder: option.placeholder, onInput: e => salla.helpers.inputDigitsOnly(e.target), onBlur: e => this.donationMoneyEntered.emit(e) }), index.h("span", { class: "s-product-options-donation-amount-currency" }, salla.config.currency(salla.config.get('user.currency_code')).symbol));
23425
23453
  }
23426
- getFilepondPlaceholder() {
23427
- //todo:: add translatable string
23428
- 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>`;
23429
- }
23430
- handleOnImageRemoved(event) {
23431
- //todo:: add on remove from cartitem images
23432
- // use salla.url.is_page('cart')
23433
- // call salla.cart.api.deleteImage(file('id'))
23434
- //@ts-ignore
23435
- setTimeout(() => event.target.querySelector('.filepond--root').style.height = '120px', 1000);
23436
- }
23437
- handleOnImageUploaded(event) {
23438
- //todo:: fire imageUploaded from salla-product-options
23439
- event.target.querySelector('.filepond--data input[type="hidden"]').dispatchEvent(new window.Event('change', { bubbles: true }));
23440
- }
23441
23454
  //todo:: why we need this way, use the native way!!
23442
23455
  //@ts-ignore
23443
23456
  selectThumbnail(e, value) {
23444
23457
  this.thumbnailSelected.emit(e);
23445
23458
  }
23459
+ fileUploader(option, additions = null) {
23460
+ return index.h("salla-file-upload", Object.assign({}, (additions || {}), { "payload-name": "file", value: option.value, "instant-upload": true, name: `options[${option.id}]`, height: "120px", url: salla.cart.api.getUploadImageEndpoint(), "form-data": { cart_item_id: this.productId, product_id: this.productId }, class: { "s-product-options-image-input": true, required: option.required } }), index.h("div", { class: "s-product-options-filepond-placeholder" }, index.h("span", { class: "s-product-options-filepond-placeholder-icon", innerHTML: additions ? FileIcon : CameraIcon }), index.h("p", { class: "s-product-options-filepond-placeholder-text" }, salla.lang.get('common.uploader.drag_and_drop')), index.h("span", { class: "filepond--label-action" }, salla.lang.get('common.uploader.browse'))));
23461
+ }
23446
23462
  //@ts-ignore
23447
23463
  imageOption(option) {
23448
- return index.h("salla-file-upload", { "instant-upload": true, name: `options[${option.id}]`, "payload-name": "file", "data-item-id": salla.url.is_page('cart') ? option.id : '', class: { "s-product-options-image-input": true, required: option.required }, labelIdle: this.getFilepondPlaceholder(), onRemoved: event => this.handleOnImageRemoved(event), onUploaded: event => this.handleOnImageUploaded(event), value: option.value, url: salla.cart.api.getUploadImageEndpoint(), "form-data": {
23449
- _token: salla.config.get('_token'),
23450
- cart_item_id: this.productId,
23451
- product_id: this.productId,
23452
- } });
23464
+ return this.fileUploader(option);
23465
+ }
23466
+ //@ts-ignore
23467
+ fileOption(option) {
23468
+ let types = option.details.map(detail => this.fileTypes[detail.name]).filter(Boolean);
23469
+ return types.length
23470
+ ? this.fileUploader(option, { accept: types.join(',') })
23471
+ : 'File types not selected.';
23453
23472
  }
23454
23473
  //@ts-ignore
23455
23474
  numberOption(option) {
@@ -23468,6 +23487,13 @@ const SallaProductOptions = class {
23468
23487
  //todo::remove mt-1 class, and if it's okay to remove the tag itself will be great
23469
23488
  return index.h("div", { class: "s-product-options-textarea" }, index.h("div", { class: "mt-1" }, index.h("textarea", { rows: 4, value: option.value, class: "s-form-control", required: option.required, id: `options[${option.id}]`, name: `options[${option.id}]`, placeholder: option.placeholder, onInput: (e) => this.textareaOptionEntered.emit(e) })));
23470
23489
  }
23490
+ //@ts-ignore
23491
+ mapOption(option) {
23492
+ return index.h("salla-map", { zoom: 15, lat: this.getLatLng(option.value, 'lat'), lng: this.getLatLng(option.value, 'lng'), name: `options[${option.id}]`, searchable: true, required: option.required, onSelected: e => this.locationSelected.emit(e) });
23493
+ }
23494
+ colorPickerOption(option) {
23495
+ return index.h("salla-color-picker", { onSubmitted: e => this.colorPicked.emit(e), name: `options[${option.id}]`, required: option.required, color: option.value || '#5dd5c4' });
23496
+ }
23471
23497
  /**
23472
23498
  * ============= Date Time options =============
23473
23499
  */
@@ -24846,8 +24872,8 @@ const SallaSwiper = class {
24846
24872
  var _a, _b, _c, _d;
24847
24873
  let classes = this.type ? this.type + '-slider ' : '';
24848
24874
  classes += this.controlsOuter ? ' s-slider-controls-outer ' : '';
24849
- classes += this.blockTitle == '' ? ' s-slider-has-notitle ' : '';
24850
- classes += this.verticalThumbs ? ' s-slider-vertical ' : ' s-slider-horizontal';
24875
+ classes += this.blockTitle == '' ? ' s-slider-has-notitle s-slider-v-centered ' : '';
24876
+ classes += this.verticalThumbs ? ' s-slider-vertical ' : ' s-slider-horizontal ';
24851
24877
  classes += this.arrowsCentered ? ' s-slider-v-centered ' : '';
24852
24878
  return (index.h(index.Host, { class: 's-slider-wrapper ' + classes }, this.blockTitle || this.showControls ?
24853
24879
  index.h("div", { class: "s-slider-block__title" }, this.blockTitle ?