@salla.sa/twilight-components 1.4.12 → 1.4.18

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 (35) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/salla-button_24.cjs.entry.js +19 -15
  4. package/dist/cjs/twilight-components.cjs.js +1 -1
  5. package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +1 -1
  6. package/dist/collection/components/salla-loyalty/salla-loyalty.js +37 -16
  7. package/dist/collection/components/salla-modal/salla-modal.js +25 -2
  8. package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +1 -1
  9. package/dist/collection/components/salla-placeholder/salla-placeholder.js +2 -2
  10. package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +2 -2
  11. package/dist/collection/components/salla-scopes/salla-scopes.js +3 -2
  12. package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
  13. package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
  14. package/dist/collection/global/app.js +1 -1
  15. package/dist/components/salla-localization-modal.js +1 -1
  16. package/dist/components/salla-loyalty.js +19 -14
  17. package/dist/components/salla-modal2.js +7 -2
  18. package/dist/components/salla-offer-modal.js +1 -1
  19. package/dist/components/salla-placeholder2.js +2 -2
  20. package/dist/components/salla-rating-modal.js +2 -2
  21. package/dist/components/salla-scopes.js +3 -2
  22. package/dist/components/salla-skeleton.js +1 -48
  23. package/dist/components/salla-skeleton2.js +53 -0
  24. package/dist/components/salla-social-share.js +1 -1
  25. package/dist/components/salla-tel-input2.js +1 -1
  26. package/dist/esm/loader.js +1 -1
  27. package/dist/esm/salla-button_24.entry.js +19 -15
  28. package/dist/esm/twilight-components.js +1 -1
  29. package/dist/twilight-components/p-99c0f70c.entry.js +4 -0
  30. package/dist/twilight-components/twilight-components.esm.js +1 -1
  31. package/dist/types/components/salla-modal/salla-modal.d.ts +4 -0
  32. package/dist/types/components.d.ts +8 -0
  33. package/example/assets/tailwind.css +81 -0
  34. package/package.json +1 -1
  35. package/dist/twilight-components/p-d0415349.entry.js +0 -4
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <div id="top"></div>
2
-
2
+
3
3
  <br />
4
4
  <div align="center">
5
5
  <a href="https://salla.dev">
@@ -218,4 +218,4 @@ You can also simply open an issue with the tag "enhancement". Don't forget to gi
218
218
 
219
219
  The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
220
220
 
221
- <p align="right">(<a href="#top">back to top</a>)</p>
221
+ <p align="right">(<a href="#top">back to top</a>)</p>
@@ -17,7 +17,7 @@ const patchEsm = () => {
17
17
  const defineCustomElements = (win, options) => {
18
18
  if (typeof window === 'undefined') return Promise.resolve();
19
19
  return patchEsm().then(() => {
20
- return index.bootstrapLazy([["salla-button_24.cjs",[[4,"salla-loyalty",{"prizePoints":[8,"prize-points"],"customerPoints":[2,"customer-points"],"prizeTitle":[1,"prize-title"],"allowEmail":[4,"allow-email"],"allowMobile":[4,"allow-mobile"],"requireEmail":[4,"require-email"],"guestMessage":[1,"guest-message"],"loyaltyProgram":[32],"buttonLoading":[32],"selectedItem":[32],"askConfirmation":[32],"is_loggedin":[32],"points":[32],"exchange_points":[32],"are_you_sure_to_exchange":[32],"for":[32],"cancel":[32],"confirm":[32],"cart_total_point_summary":[32],"cart_point_exchange_now":[32],"login_button":[32],"open":[64],"close":[64],"resetExchange":[64],"exchangeLoyaltyPoint":[64]}],[4,"salla-product-size-guide",{"guides":[32],"productId":[32],"open":[64],"close":[64]}],[4,"salla-login-modal",{"isEmailAllowed":[1028,"is-email-allowed"],"isMobileAllowed":[1028,"is-mobile-allowed"],"isEmailRequired":[1028,"is-email-required"],"title":[32],"loginTypeTitle":[32],"loginText":[32],"smsLabel":[32],"mobileLabel":[32],"emailLabel":[32],"enterText":[32],"bySMSText":[32],"byEmailText":[32],"emailErrorMsg":[32],"firstNameLabel":[32],"lastNameLabel":[32],"firstNameErrorMsg":[32],"lastNameErrorMsg":[32],"open":[64]},[[8,"verified","onVerified"]]],[4,"salla-scopes",{"selection":[1],"searchDisplayLimit":[2,"search-display-limit"],"mode":[32],"current_scope":[32],"scopes":[32],"originalScopesList":[32],"branchNotFound":[32],"ourServiceIsNotFound":[32],"searchForAvailabilityInOtherBranch":[32],"shoppingFromAnotherBranch":[32],"nowBrowsingFrom":[32],"confirmButton":[32],"scopeSearchPlaceholder":[32],"selected_scope":[32],"isOpenedBefore":[32],"close":[64],"open":[64],"handleSubmit":[64]}],[0,"salla-rating-modal",{"orderId":[2,"order-id"],"order":[32],"open":[64],"close":[64]}],[0,"salla-localization-modal",{"language":[1537],"currency":[1537],"languages":[32],"currencies":[32],"languagesTitle":[32],"currenciesTitle":[32],"isLoading":[32],"open":[64],"close":[64],"submit":[64]}],[0,"salla-offer-modal",{"offer":[32],"offer_name":[32],"offer_message":[32],"offer_expires_in":[32],"remember_my_choice":[32],"add_to_cart":[32],"out_of_stock":[32],"open":[64],"showOffer":[64]}],[0,"salla-search",{"inline":[4],"oval":[4],"height":[2],"results":[32],"placeholder":[32],"noResultsText":[32],"typing":[32],"debounce":[32],"search_term":[32]}],[4,"salla-social-share",{"url":[513],"urlName":[513,"url-name"],"platforms":[16],"opened":[32],"allPlatforms":[32],"platformIcons":[32],"open":[64]}],[4,"salla-infinite-scroll",{"nextPage":[1,"next-page"],"autoload":[1028],"container":[1],"item":[1],"loadMore":[32],"noMore":[32],"failedToLoad":[32]}],[0,"salla-skeleton",{"type":[1],"width":[1],"height":[1]}],[0,"salla-product-availability",{"channels":[1],"productId":[2,"product-id"],"isSubscribed":[1028,"is-subscribed"],"subTitle":[32],"mobileLabel":[32],"emailLabel":[32],"emailPlaceholder":[32],"subscribedMessage":[32],"title_":[32],"emailErrorMsg":[32],"isVisitorSubscribed":[32]}],[4,"salla-verify",{"display":[1],"type":[1025],"autoReload":[4,"auto-reload"],"title":[32],"resendAfter":[32],"isProfileVerify":[32],"getCode":[64],"open":[64]}],[4,"salla-swiper",{"loop":[4],"speed":[2],"itemPerView":[8,"item-per-view"],"spaceBetweenItems":[2,"space-between-items"],"direction":[1],"currentIndex":[32],"isLastSlideItem":[32],"isFirstSlideItem":[32]}],[0,"salla-rating-stars",{"name":[1],"size":[1],"value":[2]}],[4,"salla-list-tile",{"href":[1],"target":[1]}],[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,"onSelect","onSelectedTab"]]],[4,"salla-placeholder",{"icon":[1],"alignment":[1],"iconSize":[1,"icon-size"],"default_title":[32],"default_description":[32]}],[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-modal",{"isClosable":[1028,"is-closable"],"width":[513],"position":[513],"visible":[516],"isLoading":[1540,"is-loading"],"subTitleFirst":[4,"sub-title-first"],"noPadding":[4,"no-padding"],"subTitle":[1,"sub-title"],"icon":[1],"iconStyle":[1,"icon-style"],"imageIcon":[1,"image-icon"],"modalTitle":[32],"open":[64],"close":[64],"setTitle":[64],"loading":[64],"stopLoading":[64]}],[4,"salla-button",{"shape":[513],"color":[513],"fill":[513],"size":[513],"width":[513],"loading":[516],"disabled":[516],"loaderPosition":[1,"loader-position"],"href":[1],"load":[64],"stop":[64],"setText":[64],"disable":[64],"enable":[64]}],[0,"salla-loading",{"size":[8],"width":[8],"color":[1],"bgColor":[1,"bg-color"]}]]],["salla-add-product-button.cjs",[[4,"salla-add-product-button",{"channels":[513],"quantity":[514],"donatingAmount":[514,"donating-amount"],"productId":[520,"product-id"],"productStatus":[513,"product-status"],"productType":[513,"product-type"]}]]],["salla-conditional-fields.cjs",[[4,"salla-conditional-fields",null,[[0,"change","changeHandler"]]]]],["salla-installment.cjs",[[0,"salla-installment",{"price":[1],"language":[1],"currency":[1],"tamaraIsActive":[32],"tabbyIsActive":[32],"spotiiIsActive":[32]}]]],["salla-quantity-input.cjs",[[4,"salla-quantity-input",{"quantity":[32],"decrease":[64],"increase":[64],"setValue":[64]}]]]], options);
20
+ return index.bootstrapLazy([["salla-button_24.cjs",[[4,"salla-loyalty",{"prizePoints":[8,"prize-points"],"customerPoints":[2,"customer-points"],"prizeTitle":[1,"prize-title"],"allowEmail":[4,"allow-email"],"allowMobile":[4,"allow-mobile"],"requireEmail":[4,"require-email"],"guestMessage":[1,"guest-message"],"loyaltyProgram":[32],"buttonLoading":[32],"selectedItem":[32],"askConfirmation":[32],"is_loggedin":[32],"points":[32],"exchange_points":[32],"are_you_sure_to_exchange":[32],"for":[32],"cancel":[32],"confirm":[32],"cart_total_point_summary":[32],"cart_point_exchange_now":[32],"login_button":[32],"open":[64],"close":[64],"resetExchange":[64],"exchangeLoyaltyPoint":[64]}],[4,"salla-product-size-guide",{"guides":[32],"productId":[32],"open":[64],"close":[64]}],[4,"salla-login-modal",{"isEmailAllowed":[1028,"is-email-allowed"],"isMobileAllowed":[1028,"is-mobile-allowed"],"isEmailRequired":[1028,"is-email-required"],"title":[32],"loginTypeTitle":[32],"loginText":[32],"smsLabel":[32],"mobileLabel":[32],"emailLabel":[32],"enterText":[32],"bySMSText":[32],"byEmailText":[32],"emailErrorMsg":[32],"firstNameLabel":[32],"lastNameLabel":[32],"firstNameErrorMsg":[32],"lastNameErrorMsg":[32],"open":[64]},[[8,"verified","onVerified"]]],[4,"salla-scopes",{"selection":[1],"searchDisplayLimit":[2,"search-display-limit"],"mode":[32],"current_scope":[32],"scopes":[32],"originalScopesList":[32],"branchNotFound":[32],"ourServiceIsNotFound":[32],"searchForAvailabilityInOtherBranch":[32],"shoppingFromAnotherBranch":[32],"nowBrowsingFrom":[32],"confirmButton":[32],"scopeSearchPlaceholder":[32],"selected_scope":[32],"isOpenedBefore":[32],"close":[64],"open":[64],"handleSubmit":[64]}],[0,"salla-rating-modal",{"orderId":[2,"order-id"],"order":[32],"open":[64],"close":[64]}],[0,"salla-localization-modal",{"language":[1537],"currency":[1537],"languages":[32],"currencies":[32],"languagesTitle":[32],"currenciesTitle":[32],"isLoading":[32],"open":[64],"close":[64],"submit":[64]}],[0,"salla-offer-modal",{"offer":[32],"offer_name":[32],"offer_message":[32],"offer_expires_in":[32],"remember_my_choice":[32],"add_to_cart":[32],"out_of_stock":[32],"open":[64],"showOffer":[64]}],[0,"salla-search",{"inline":[4],"oval":[4],"height":[2],"results":[32],"placeholder":[32],"noResultsText":[32],"typing":[32],"debounce":[32],"search_term":[32]}],[4,"salla-social-share",{"url":[513],"urlName":[513,"url-name"],"platforms":[16],"opened":[32],"allPlatforms":[32],"platformIcons":[32],"open":[64]}],[4,"salla-infinite-scroll",{"nextPage":[1,"next-page"],"autoload":[1028],"container":[1],"item":[1],"loadMore":[32],"noMore":[32],"failedToLoad":[32]}],[0,"salla-product-availability",{"channels":[1],"productId":[2,"product-id"],"isSubscribed":[1028,"is-subscribed"],"subTitle":[32],"mobileLabel":[32],"emailLabel":[32],"emailPlaceholder":[32],"subscribedMessage":[32],"title_":[32],"emailErrorMsg":[32],"isVisitorSubscribed":[32]}],[4,"salla-verify",{"display":[1],"type":[1025],"autoReload":[4,"auto-reload"],"title":[32],"resendAfter":[32],"isProfileVerify":[32],"getCode":[64],"open":[64]}],[4,"salla-swiper",{"loop":[4],"speed":[2],"itemPerView":[8,"item-per-view"],"spaceBetweenItems":[2,"space-between-items"],"direction":[1],"currentIndex":[32],"isLastSlideItem":[32],"isFirstSlideItem":[32]}],[0,"salla-rating-stars",{"name":[1],"size":[1],"value":[2]}],[0,"salla-skeleton",{"type":[1],"width":[1],"height":[1]}],[4,"salla-list-tile",{"href":[1],"target":[1]}],[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,"onSelect","onSelectedTab"]]],[4,"salla-placeholder",{"icon":[1],"alignment":[1],"iconSize":[1,"icon-size"],"default_title":[32],"default_description":[32]}],[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-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"],"icon":[1],"iconStyle":[1,"icon-style"],"imageIcon":[1,"image-icon"],"modalTitle":[32],"open":[64],"close":[64],"setTitle":[64],"loading":[64],"stopLoading":[64]}],[4,"salla-button",{"shape":[513],"color":[513],"fill":[513],"size":[513],"width":[513],"loading":[516],"disabled":[516],"loaderPosition":[1,"loader-position"],"href":[1],"load":[64],"stop":[64],"setText":[64],"disable":[64],"enable":[64]}],[0,"salla-loading",{"size":[8],"width":[8],"color":[1],"bgColor":[1,"bg-color"]}]]],["salla-add-product-button.cjs",[[4,"salla-add-product-button",{"channels":[513],"quantity":[514],"donatingAmount":[514,"donating-amount"],"productId":[520,"product-id"],"productStatus":[513,"product-status"],"productType":[513,"product-type"]}]]],["salla-conditional-fields.cjs",[[4,"salla-conditional-fields",null,[[0,"change","changeHandler"]]]]],["salla-installment.cjs",[[0,"salla-installment",{"price":[1],"language":[1],"currency":[1],"tamaraIsActive":[32],"tabbyIsActive":[32],"spotiiIsActive":[32]}]]],["salla-quantity-input.cjs",[[4,"salla-quantity-input",{"quantity":[32],"decrease":[64],"increase":[64],"setValue":[64]}]]]], options);
21
21
  });
22
22
  };
23
23
 
@@ -327,7 +327,7 @@ const SallaLocalizationModal = class {
327
327
  .then(() => url && (window.location.href = url));
328
328
  }
329
329
  render() {
330
- return (index$1.h("salla-modal", { isLoading: this.isLoading, id: "salla-localization", class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, !this.isLoading ?
330
+ return (index$1.h("salla-modal", { isLoading: this.isLoading, class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, !this.isLoading ?
331
331
  index$1.h("div", { class: "s-localization-modal-inner" }, this.languages.length > 1 ?
332
332
  index$1.h("div", { class: "s-localization-modal-section" }, index$1.h("label", { class: "s-localization-modal-title" }, this.languagesTitle), index$1.h("div", { class: "s-localization-modal-section-inner" }, this.languages.length < 6 ?
333
333
  this.languages.map(lang => index$1.h("div", { class: "s-localization-modal-item" }, index$1.h("input", { class: "s-localization-modal-input", type: "radio", checked: this.language == lang.iso_code, onChange: () => this.language = lang.iso_code, name: "language", id: 'lang-' + lang.code.toLowerCase(), value: lang.code }), index$1.h("div", { class: "s-localization-modal-label-slot", id: "language-slot", innerHTML: this.languageSlot
@@ -709,7 +709,6 @@ const SallaLoyalty = class {
709
709
  this.modal.open();
710
710
  return await salla.loyalty.getProgram()
711
711
  .then((response) => {
712
- console.log("🚀 ~ file: salla-loyalty.tsx ~ line 167 ~ SallaLoyalty ~ .then ~ response", response);
713
712
  this.loyaltyProgram = response.data;
714
713
  })
715
714
  .catch(e => console.log(e))
@@ -777,12 +776,12 @@ const SallaLoyalty = class {
777
776
  index$1.h("slot", { name: 'widget' }, this.customerPoints ?
778
777
  index$1.h("salla-list-tile", { class: 's-loyalty-widget' }, index$1.h("div", { slot: "icon", class: "s-loyalty-widget-icon", innerHTML: Star2 }), index$1.h("div", { slot: "subtitle" }, this.is_loggedin ? this.cart_total_point_summary : this.guestMessage, index$1.h("salla-button", { shape: "link", color: "primary", onClick: () => salla.event.dispatch("loyalty::open") }, this.is_loggedin ? this.cart_point_exchange_now : this.login_button))) :
779
778
  ''),
780
- index$1.h("salla-modal", { id: "salla-loyalty-confirmation-modal", noPadding: true, position: 'top', width: "sm", ref: modal => this.confirmationModal = modal }, this.getConfirmationModal()),
781
- index$1.h("salla-modal", { isLoading: true, id: "salla-loyalty-modal", width: "md", ref: modal => this.modal = modal }, !!this.loyaltyProgram ?
779
+ index$1.h("salla-modal", { noPadding: true, position: 'top', width: "sm", ref: modal => this.confirmationModal = modal }, this.getConfirmationModal()),
780
+ index$1.h("salla-modal", { isLoading: true, "has-skeleton": true, width: "md", ref: modal => this.modal = modal }, index$1.h("div", { slot: "loading" }, index$1.h("div", { class: "s-loyalty-skeleton" }, index$1.h("salla-list-tile", { class: "s-loyalty-header" }, index$1.h("div", { slot: "icon", class: "s-loyalty-header-icon" }, index$1.h("salla-skeleton", { type: "circle", height: '6rem', width: '6rem' })), index$1.h("div", { slot: "title", class: "s-loyalty-header-title mb-5" }, index$1.h("salla-skeleton", { height: '15px', width: '50%' })), index$1.h("div", { slot: "subtitle", class: "s-loyalty-header-subtitle" }, index$1.h("salla-skeleton", { height: '10px' }), index$1.h("salla-skeleton", { height: '10px', width: '75%' }))), index$1.h("div", { class: "s-loyalty-skeleton-cards" }, [...Array(3)].map(() => index$1.h("div", { class: "s-loyalty-prize-item" }, index$1.h("salla-skeleton", { height: '9rem' }), index$1.h("div", { class: "s-loyalty-prize-item-title" }, index$1.h("salla-skeleton", { height: '15px', width: '75%' })), index$1.h("div", { class: "s-loyalty-prize-item-subtitle" }, index$1.h("salla-skeleton", { height: '10px', width: '50%' }), index$1.h("salla-skeleton", { height: '10px', width: '25%' })), index$1.h("div", { class: "s-loyalty-prize-item-points" }, index$1.h("salla-skeleton", { height: '15px', width: '100px' }), index$1.h("div", { class: "s-loyalty-prize-item-check" }, index$1.h("salla-skeleton", { height: '1rem', width: '1rem', type: 'circle' })))))))), !!this.loyaltyProgram ?
782
781
  [
783
782
  index$1.h("salla-list-tile", { id: 's-loyalty-header', class: "s-loyalty-header" }, index$1.h("div", { slot: "icon", class: "s-loyalty-header-icon", innerHTML: GiftImg }), index$1.h("div", { slot: "title", class: "s-loyalty-header-title" }, this.loyaltyProgram.prize_promotion_title), index$1.h("div", { slot: "subtitle", class: "s-loyalty-header-subtitle" }, this.loyaltyProgram.prize_promotion_description)),
784
783
  index$1.h("salla-tabs", null, this.loyaltyProgram.prizes.map((prize) => index$1.h("salla-tab-header", { slot: "header", name: prize.title }, index$1.h("span", null, prize.title))), this.loyaltyProgram.prizes.map((prize) => index$1.h("salla-tab-content", { slot: "content", name: prize.title }, index$1.h("salla-swiper", { "space-between-items": "20" }, prize.items.map((item) => this.prizeItem(item)))))),
785
- index$1.h("salla-button", { disabled: !this.selectedItem, width: "wide", class: "s-loyalty-program-redeem-btn", onClick: () => this.openConfirmation() }, this.exchange_points)
784
+ index$1.h("salla-button", { disabled: !this.selectedItem, width: "wide", class: "s-loyalty-program-redeem-btn", onClick: () => this.openConfirmation() }, this.exchange_points),
786
785
  ]
787
786
  : index$1.h("salla-placeholder", { class: "s-loyalty-placeholder", alignment: "center" })),
788
787
  ];
@@ -811,6 +810,10 @@ const SallaModal = class {
811
810
  * open the modal on rendering
812
811
  */
813
812
  this.visible = false;
813
+ /**
814
+ * open the modal on rendering
815
+ */
816
+ this.hasSkeleton = false;
814
817
  /**
815
818
  * Show loading in the middle
816
819
  */
@@ -912,13 +915,13 @@ const SallaModal = class {
912
915
  };
913
916
  }
914
917
  getWidth() {
915
- return this.isLoading ? 'sm' : this.width;
918
+ return this.isLoading ? this.hasSkeleton ? 'md' : 'sm' : this.width;
916
919
  }
917
920
  //todo:: pref for each modal
918
921
  render() {
919
922
  this.host.id = this.host.id || 'salla-modal';
920
923
  if (this.isLoading) {
921
- return (index$1.h(index$1.Host, { class: 'salla-modal s-modal s-modal-container s-hidden', "aria-modal": "true", role: "dialog" }, index$1.h("div", { class: "s-modal-overlay", ref: el => this.overlay = el, onClick: () => this.closeModal() }), index$1.h("div", { class: "s-modal-wrapper" }, index$1.h("span", { class: 's-modal-spacer s-modal-align-' + this.position }, "\u200B"), index$1.h("div", { class: 's-modal-body ' + 's-modal-align-' + this.position + ' s-modal-' + this.getWidth() + (this.noPadding ? ' s-modal-nopadding' : ' s-modal-padding') }, index$1.h("salla-loading", null), index$1.h("div", { class: "s-hidden" }, index$1.h("slot", null))))));
924
+ return (index$1.h(index$1.Host, { class: 'salla-modal s-modal s-modal-container s-hidden', "aria-modal": "true", role: "dialog" }, index$1.h("div", { class: "s-modal-overlay", ref: el => this.overlay = el, onClick: () => this.closeModal() }), index$1.h("div", { class: "s-modal-wrapper" }, index$1.h("span", { class: 's-modal-spacer s-modal-align-' + this.position }, "\u200B"), index$1.h("div", { class: 's-modal-body ' + 's-modal-align-' + this.position + ' s-modal-' + this.getWidth() + (this.noPadding ? ' s-modal-nopadding' : ' s-modal-padding') }, index$1.h("slot", { name: "loading" }, index$1.h("salla-loading", null)), index$1.h("div", { class: "s-hidden" }, index$1.h("slot", null))))));
922
925
  }
923
926
  return (index$1.h(index$1.Host, { class: 'salla-modal s-modal s-modal-container s-hidden', "aria-modal": "true", role: "dialog" }, index$1.h("div", { class: "s-modal-overlay", ref: el => this.overlay = el, onClick: () => this.closeModal() }), index$1.h("div", { class: "s-modal-wrapper" }, index$1.h("span", { class: 's-modal-spacer s-modal-align-' + this.position }, "\u200B"), index$1.h("div", { class: 's-modal-body ' + 's-modal-align-' + this.position + ' s-modal-' + this.getWidth() + (this.noPadding ? ' s-modal-nopadding' : ' s-modal-padding') }, index$1.h("div", { class: { 's-modal-header': true, 's-modal-is-center': this.icon != '' || this.imageIcon != '' } }, this.isClosable ?
924
927
  index$1.h("button", { class: "s-modal-close", onClick: () => this.closeModal(), type: "button" }, index$1.h("span", { class: "sicon-cancel" }))
@@ -1007,7 +1010,7 @@ const SallaOfferModal = class {
1007
1010
  }
1008
1011
  render() {
1009
1012
  var _a, _b;
1010
- return index$1.h("salla-modal", { id: "salla-offer-modal", "sub-title-first": true, icon: "sicon-special-discount", "sub-title": this.offer_message, ref: modal => this.modal = modal, "is-loading": this.offer === null }, this.offer !== null
1013
+ return index$1.h("salla-modal", { "sub-title-first": true, icon: "sicon-special-discount", "sub-title": this.offer_message, ref: modal => this.modal = modal, "is-loading": this.offer === null }, this.offer !== null
1011
1014
  ? [index$1.h("div", { class: "s-offer-modal-scrolled-slider-wrap" }, index$1.h("div", { class: "s-offer-modal-body s-offer-modal-scrolled-slider" }, ((_a = this.offer.get.categories) === null || _a === void 0 ? void 0 : _a.length) > 0
1012
1015
  ? this.offer.get.categories.map(category => index$1.h("a", { href: category.urls.customer, class: "s-offer-modal-badge s-offer-modal-slider-item", innerHTML: this.categorySlot
1013
1016
  .replace(/\{name\}/g, category.name)
@@ -1110,7 +1113,7 @@ const SallaPlaceholder = class {
1110
1113
  };
1111
1114
  }
1112
1115
  render() {
1113
- return (index$1.h("div", { class: this.alignmentClass() }, index$1.h("div", { class: `s-placeholder-icon s-placeholder-icon-${this.iconSize}`, innerHTML: this.icon }), index$1.h("div", { class: "s-placeholder-title" }, index$1.h("slot", { name: 'title' }, index$1.h("span", null, this.default_title))), index$1.h("div", { class: "s-placeholder-description" }, index$1.h("slot", { name: 'description' }, index$1.h("span", null, this.default_description)))));
1116
+ return (index$1.h(index$1.Host, { class: this.alignmentClass() }, index$1.h("div", { class: `s-placeholder-icon s-placeholder-icon-${this.iconSize}`, innerHTML: this.icon }), index$1.h("div", { class: "s-placeholder-title" }, index$1.h("slot", { name: 'title' }, index$1.h("span", null, this.default_title))), index$1.h("div", { class: "s-placeholder-description" }, index$1.h("slot", { name: 'description' }, index$1.h("span", null, this.default_description)))));
1114
1117
  }
1115
1118
  };
1116
1119
  SallaPlaceholder.style = sallaPlaceholderCss;
@@ -1422,9 +1425,9 @@ const SallaRatingModal = class {
1422
1425
  this.showActiveStep(this.thanksTab);
1423
1426
  }
1424
1427
  render() {
1425
- return (index$1.h(index$1.Host, { id: "s-rating" }, index$1.h("salla-modal", { isLoading: true, width: "md", ref: modal => this.modal = modal }, this.order
1428
+ return (index$1.h(index$1.Host, { class: "s-rating" }, index$1.h("salla-modal", { isLoading: true, width: "md", ref: modal => this.modal = modal }, this.order
1426
1429
  ? [index$1.h("div", { class: "s-rating-modal-wrapper", ref: el => this.body = el }, this.order.testimonials_enabled ?
1427
- index$1.h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step s-rating-modal-hidden", "data-type": "store" }, index$1.h("div", { class: "s-rating-modal-rounded-icon" }, index$1.h("img", { src: salla.config.get('store.logo', 'https://assets.salla.sa/cp/assets/images/logo-new.png'), alt: "store name", class: "s-rating-modal-store-logo" })), index$1.h("h2", { class: "s-rating-modal-title" }, this.rate_the_store), index$1.h("div", { class: "s-rating-modal-stars-company" }, index$1.h("salla-rating-stars", { size: "large" })), index$1.h("textarea", { id: "storeReview", name: "comment", class: "s-rating-modal-comment", placeholder: this.write_store_rate }), index$1.h("small", { class: "s-rating-modal-validation-msg" }))
1430
+ index$1.h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step s-rating-modal-hidden", "data-type": "store" }, index$1.h("div", { class: "s-rating-modal-rounded-icon" }, index$1.h("img", { src: salla.config.get('store.logo', 'https://assets.salla.sa/cp/assets/images/logo-new.png'), alt: "store name", class: "s-rating-modal-store-logo" })), index$1.h("h2", { class: "s-rating-modal-title" }, this.rate_the_store), index$1.h("div", { class: "s-rating-modal-stars-company" }, index$1.h("salla-rating-stars", { size: "large" })), index$1.h("textarea", { name: "comment", class: "s-rating-modal-comment", placeholder: this.write_store_rate }), index$1.h("small", { class: "s-rating-modal-validation-msg" }))
1428
1431
  : '', this.order.products_enabled
1429
1432
  ? index$1.h("section", { class: "s-rating-modal-step s-rating-modal-hidden", "data-type": "products" }, this.order.products.map((item, index) => index$1.h("div", { class: "rating-outer-form s-rating-modal-product", "data-stars-error": this.rate_product_stars }, index$1.h("div", { class: "s-rating-modal-product-img-wrap" }, index$1.h("img", { src: item.product.thumbnail, alt: item.product.name, class: "s-rating-modal-product-img" })), index$1.h("div", { class: "s-rating-modal-product-details" }, index$1.h("h3", { class: "s-rating-modal-product-title" }, " ", item.product.name), index$1.h("div", { class: "s-rating-modal-stars-product" }, index$1.h("salla-rating-stars", { size: "small", name: `products[${index}][rating]` })), index$1.h("input", { type: "hidden", name: `products[${index}][product_id]`, value: item.product.id }), index$1.h("textarea", { placeholder: this.write_product_rate, name: `products[${index}][comment]`, class: "s-rating-modal-comment" }), index$1.h("small", { class: "s-rating-modal-validation-msg" })))))
1430
1433
  : '', this.order.shipping_enabled
@@ -1597,7 +1600,8 @@ const SallaScopees = class {
1597
1600
  return await salla.scope.change(payload)
1598
1601
  .then(() => {
1599
1602
  salla.storage.set("branch-choosed-before", true);
1600
- window.location.reload();
1603
+ salla.storage.set("scope", this.current_scope.id);
1604
+ window.location.search += "&scope=" + this.current_scope.id;
1601
1605
  }).catch(e => console.log(e))
1602
1606
  .finally(() => {
1603
1607
  this.changeBtn.stop();
@@ -1643,7 +1647,7 @@ const SallaScopees = class {
1643
1647
  return index$1.h("div", { class: "s-scopes-footer" }, index$1.h("slot", { name: "footer" }, index$1.h("salla-button", { ref: btn => this.changeBtn = btn, disabled: !this.current_scope, onClick: () => this.handleSubmit(), class: "s-scopes-submit", "loader-position": "center", width: "wide" }, this.confirmButton)));
1644
1648
  }
1645
1649
  render() {
1646
- return (index$1.h(index$1.Host, null, index$1.h("salla-modal", { ref: modal => this.modal = modal, id: "s-scopes-modal", isClosable: !!(this.isOpenedBefore || (this.selection == 'optional')), class: "s-scopes-modal", isLoading: true }, index$1.h("salla-list-tile", { class: this.originalScopesList.length ? "s-scopes-header block" : "s-hidden" }, index$1.h("div", { slot: "icon", class: "s-scopes-header-icon", innerHTML: StoreAlt }), index$1.h("div", { slot: "title", class: "s-scopes-header-title" }, this.nowBrowsingFrom), index$1.h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, !!this.selected_scope ? this.selected_scope.name : "")), index$1.h("div", { class: "s-scopes-wrap" }, !!this.originalScopesList.length && index$1.h("h4", { class: "s-scopes-title" }, this.getFormTitle()), this.originalScopesList.length > this.searchDisplayLimit ?
1650
+ return (index$1.h(index$1.Host, null, index$1.h("salla-modal", { ref: modal => this.modal = modal, isClosable: !!(this.isOpenedBefore || (this.selection == 'optional')), class: "s-scopes-modal", isLoading: true }, index$1.h("salla-list-tile", { class: this.originalScopesList.length ? "s-scopes-header block" : "s-hidden" }, index$1.h("div", { slot: "icon", class: "s-scopes-header-icon", innerHTML: StoreAlt }), index$1.h("div", { slot: "title", class: "s-scopes-header-title" }, this.nowBrowsingFrom), index$1.h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, !!this.selected_scope ? this.selected_scope.name : "")), index$1.h("div", { class: "s-scopes-wrap" }, !!this.originalScopesList.length && index$1.h("h4", { class: "s-scopes-title" }, this.getFormTitle()), this.originalScopesList.length > this.searchDisplayLimit ?
1647
1651
  index$1.h("div", { class: "s-scopes-search-wrapper" }, index$1.h("div", { class: "s-scopes-search-icon", innerHTML: Search }), index$1.h("input", { type: "text", class: "s-scopes-search-input", onInput: e => this.handleSearchFieldTyping(e), placeholder: this.scopeSearchPlaceholder }))
1648
1652
  : "", this.scopes.length < 2 ?
1649
1653
  this.placeholderContent()
@@ -3208,7 +3212,7 @@ const SallaSocialShare = class {
3208
3212
  }, '-=200');
3209
3213
  }
3210
3214
  render() {
3211
- return (index$1.h("div", { id: "s-social-share", class: "s-social-share-wrapper" }, index$1.h("slot", { name: 'widget' }, index$1.h("salla-button", { "aria-label": "Share", onClick: () => this.open(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, index$1.h("i", { class: this.opened ? "sicon-cancel" : "sicon-share-alt" }))), index$1.h("ul", { ref: el => this.shareMenu = el, class: "s-social-share-list a2a_kit share" }, this.platforms.map(platform => {
3215
+ return (index$1.h("div", { class: "s-social-share-wrapper" }, index$1.h("slot", { name: 'widget' }, index$1.h("salla-button", { "aria-label": "Share", onClick: () => this.open(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, index$1.h("i", { class: this.opened ? "sicon-cancel" : "sicon-share-alt" }))), index$1.h("ul", { ref: el => this.shareMenu = el, class: "s-social-share-list a2a_kit share" }, this.platforms.map(platform => {
3212
3216
  return (index$1.h("li", { ref: el => this.platformItem = el }, index$1.h("a", { class: `a2a_button_${platform}`, "aria-label": `Share Via ${platform}` }, this.platformIcons.map((icon) => {
3213
3217
  if (icon.name === platform) {
3214
3218
  return index$1.h("span", { class: "s-social-share-icon", innerHTML: icon.icon });
@@ -9822,7 +9826,7 @@ const SallaTelInput = class {
9822
9826
  }
9823
9827
  ;
9824
9828
  render() {
9825
- return (index$1.h(index$1.Host, { id: "s-tel-input" }, index$1.h("input", { type: "tel", name: this.name, value: this.phone, ref: el => this.phoneInput = el, class: "s-tel-input-control tel-input s-ltr" }), index$1.h("span", { class: "s-tel-input-error-msg", ref: el => this.errorMsg = el }), index$1.h("input", { type: "hidden", name: "country_code", value: this.countryCode, ref: el => this.countryCodeInput = el, class: "country_code" })));
9829
+ return (index$1.h(index$1.Host, { class: "s-tel-input" }, index$1.h("input", { type: "tel", name: this.name, value: this.phone, ref: el => this.phoneInput = el, class: "s-tel-input-control tel-input s-ltr" }), index$1.h("span", { class: "s-tel-input-error-msg", ref: el => this.errorMsg = el }), index$1.h("input", { type: "hidden", name: "country_code", value: this.countryCode, ref: el => this.countryCodeInput = el, class: "country_code" })));
9826
9830
  }
9827
9831
  componentDidLoad() {
9828
9832
  this.initTelInput();
@@ -18,5 +18,5 @@ const patchBrowser = () => {
18
18
  };
19
19
 
20
20
  patchBrowser().then(options => {
21
- return index.bootstrapLazy([["salla-button_24.cjs",[[4,"salla-loyalty",{"prizePoints":[8,"prize-points"],"customerPoints":[2,"customer-points"],"prizeTitle":[1,"prize-title"],"allowEmail":[4,"allow-email"],"allowMobile":[4,"allow-mobile"],"requireEmail":[4,"require-email"],"guestMessage":[1,"guest-message"],"loyaltyProgram":[32],"buttonLoading":[32],"selectedItem":[32],"askConfirmation":[32],"is_loggedin":[32],"points":[32],"exchange_points":[32],"are_you_sure_to_exchange":[32],"for":[32],"cancel":[32],"confirm":[32],"cart_total_point_summary":[32],"cart_point_exchange_now":[32],"login_button":[32],"open":[64],"close":[64],"resetExchange":[64],"exchangeLoyaltyPoint":[64]}],[4,"salla-product-size-guide",{"guides":[32],"productId":[32],"open":[64],"close":[64]}],[4,"salla-login-modal",{"isEmailAllowed":[1028,"is-email-allowed"],"isMobileAllowed":[1028,"is-mobile-allowed"],"isEmailRequired":[1028,"is-email-required"],"title":[32],"loginTypeTitle":[32],"loginText":[32],"smsLabel":[32],"mobileLabel":[32],"emailLabel":[32],"enterText":[32],"bySMSText":[32],"byEmailText":[32],"emailErrorMsg":[32],"firstNameLabel":[32],"lastNameLabel":[32],"firstNameErrorMsg":[32],"lastNameErrorMsg":[32],"open":[64]},[[8,"verified","onVerified"]]],[4,"salla-scopes",{"selection":[1],"searchDisplayLimit":[2,"search-display-limit"],"mode":[32],"current_scope":[32],"scopes":[32],"originalScopesList":[32],"branchNotFound":[32],"ourServiceIsNotFound":[32],"searchForAvailabilityInOtherBranch":[32],"shoppingFromAnotherBranch":[32],"nowBrowsingFrom":[32],"confirmButton":[32],"scopeSearchPlaceholder":[32],"selected_scope":[32],"isOpenedBefore":[32],"close":[64],"open":[64],"handleSubmit":[64]}],[0,"salla-rating-modal",{"orderId":[2,"order-id"],"order":[32],"open":[64],"close":[64]}],[0,"salla-localization-modal",{"language":[1537],"currency":[1537],"languages":[32],"currencies":[32],"languagesTitle":[32],"currenciesTitle":[32],"isLoading":[32],"open":[64],"close":[64],"submit":[64]}],[0,"salla-offer-modal",{"offer":[32],"offer_name":[32],"offer_message":[32],"offer_expires_in":[32],"remember_my_choice":[32],"add_to_cart":[32],"out_of_stock":[32],"open":[64],"showOffer":[64]}],[0,"salla-search",{"inline":[4],"oval":[4],"height":[2],"results":[32],"placeholder":[32],"noResultsText":[32],"typing":[32],"debounce":[32],"search_term":[32]}],[4,"salla-social-share",{"url":[513],"urlName":[513,"url-name"],"platforms":[16],"opened":[32],"allPlatforms":[32],"platformIcons":[32],"open":[64]}],[4,"salla-infinite-scroll",{"nextPage":[1,"next-page"],"autoload":[1028],"container":[1],"item":[1],"loadMore":[32],"noMore":[32],"failedToLoad":[32]}],[0,"salla-skeleton",{"type":[1],"width":[1],"height":[1]}],[0,"salla-product-availability",{"channels":[1],"productId":[2,"product-id"],"isSubscribed":[1028,"is-subscribed"],"subTitle":[32],"mobileLabel":[32],"emailLabel":[32],"emailPlaceholder":[32],"subscribedMessage":[32],"title_":[32],"emailErrorMsg":[32],"isVisitorSubscribed":[32]}],[4,"salla-verify",{"display":[1],"type":[1025],"autoReload":[4,"auto-reload"],"title":[32],"resendAfter":[32],"isProfileVerify":[32],"getCode":[64],"open":[64]}],[4,"salla-swiper",{"loop":[4],"speed":[2],"itemPerView":[8,"item-per-view"],"spaceBetweenItems":[2,"space-between-items"],"direction":[1],"currentIndex":[32],"isLastSlideItem":[32],"isFirstSlideItem":[32]}],[0,"salla-rating-stars",{"name":[1],"size":[1],"value":[2]}],[4,"salla-list-tile",{"href":[1],"target":[1]}],[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,"onSelect","onSelectedTab"]]],[4,"salla-placeholder",{"icon":[1],"alignment":[1],"iconSize":[1,"icon-size"],"default_title":[32],"default_description":[32]}],[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-modal",{"isClosable":[1028,"is-closable"],"width":[513],"position":[513],"visible":[516],"isLoading":[1540,"is-loading"],"subTitleFirst":[4,"sub-title-first"],"noPadding":[4,"no-padding"],"subTitle":[1,"sub-title"],"icon":[1],"iconStyle":[1,"icon-style"],"imageIcon":[1,"image-icon"],"modalTitle":[32],"open":[64],"close":[64],"setTitle":[64],"loading":[64],"stopLoading":[64]}],[4,"salla-button",{"shape":[513],"color":[513],"fill":[513],"size":[513],"width":[513],"loading":[516],"disabled":[516],"loaderPosition":[1,"loader-position"],"href":[1],"load":[64],"stop":[64],"setText":[64],"disable":[64],"enable":[64]}],[0,"salla-loading",{"size":[8],"width":[8],"color":[1],"bgColor":[1,"bg-color"]}]]],["salla-add-product-button.cjs",[[4,"salla-add-product-button",{"channels":[513],"quantity":[514],"donatingAmount":[514,"donating-amount"],"productId":[520,"product-id"],"productStatus":[513,"product-status"],"productType":[513,"product-type"]}]]],["salla-conditional-fields.cjs",[[4,"salla-conditional-fields",null,[[0,"change","changeHandler"]]]]],["salla-installment.cjs",[[0,"salla-installment",{"price":[1],"language":[1],"currency":[1],"tamaraIsActive":[32],"tabbyIsActive":[32],"spotiiIsActive":[32]}]]],["salla-quantity-input.cjs",[[4,"salla-quantity-input",{"quantity":[32],"decrease":[64],"increase":[64],"setValue":[64]}]]]], options);
21
+ return index.bootstrapLazy([["salla-button_24.cjs",[[4,"salla-loyalty",{"prizePoints":[8,"prize-points"],"customerPoints":[2,"customer-points"],"prizeTitle":[1,"prize-title"],"allowEmail":[4,"allow-email"],"allowMobile":[4,"allow-mobile"],"requireEmail":[4,"require-email"],"guestMessage":[1,"guest-message"],"loyaltyProgram":[32],"buttonLoading":[32],"selectedItem":[32],"askConfirmation":[32],"is_loggedin":[32],"points":[32],"exchange_points":[32],"are_you_sure_to_exchange":[32],"for":[32],"cancel":[32],"confirm":[32],"cart_total_point_summary":[32],"cart_point_exchange_now":[32],"login_button":[32],"open":[64],"close":[64],"resetExchange":[64],"exchangeLoyaltyPoint":[64]}],[4,"salla-product-size-guide",{"guides":[32],"productId":[32],"open":[64],"close":[64]}],[4,"salla-login-modal",{"isEmailAllowed":[1028,"is-email-allowed"],"isMobileAllowed":[1028,"is-mobile-allowed"],"isEmailRequired":[1028,"is-email-required"],"title":[32],"loginTypeTitle":[32],"loginText":[32],"smsLabel":[32],"mobileLabel":[32],"emailLabel":[32],"enterText":[32],"bySMSText":[32],"byEmailText":[32],"emailErrorMsg":[32],"firstNameLabel":[32],"lastNameLabel":[32],"firstNameErrorMsg":[32],"lastNameErrorMsg":[32],"open":[64]},[[8,"verified","onVerified"]]],[4,"salla-scopes",{"selection":[1],"searchDisplayLimit":[2,"search-display-limit"],"mode":[32],"current_scope":[32],"scopes":[32],"originalScopesList":[32],"branchNotFound":[32],"ourServiceIsNotFound":[32],"searchForAvailabilityInOtherBranch":[32],"shoppingFromAnotherBranch":[32],"nowBrowsingFrom":[32],"confirmButton":[32],"scopeSearchPlaceholder":[32],"selected_scope":[32],"isOpenedBefore":[32],"close":[64],"open":[64],"handleSubmit":[64]}],[0,"salla-rating-modal",{"orderId":[2,"order-id"],"order":[32],"open":[64],"close":[64]}],[0,"salla-localization-modal",{"language":[1537],"currency":[1537],"languages":[32],"currencies":[32],"languagesTitle":[32],"currenciesTitle":[32],"isLoading":[32],"open":[64],"close":[64],"submit":[64]}],[0,"salla-offer-modal",{"offer":[32],"offer_name":[32],"offer_message":[32],"offer_expires_in":[32],"remember_my_choice":[32],"add_to_cart":[32],"out_of_stock":[32],"open":[64],"showOffer":[64]}],[0,"salla-search",{"inline":[4],"oval":[4],"height":[2],"results":[32],"placeholder":[32],"noResultsText":[32],"typing":[32],"debounce":[32],"search_term":[32]}],[4,"salla-social-share",{"url":[513],"urlName":[513,"url-name"],"platforms":[16],"opened":[32],"allPlatforms":[32],"platformIcons":[32],"open":[64]}],[4,"salla-infinite-scroll",{"nextPage":[1,"next-page"],"autoload":[1028],"container":[1],"item":[1],"loadMore":[32],"noMore":[32],"failedToLoad":[32]}],[0,"salla-product-availability",{"channels":[1],"productId":[2,"product-id"],"isSubscribed":[1028,"is-subscribed"],"subTitle":[32],"mobileLabel":[32],"emailLabel":[32],"emailPlaceholder":[32],"subscribedMessage":[32],"title_":[32],"emailErrorMsg":[32],"isVisitorSubscribed":[32]}],[4,"salla-verify",{"display":[1],"type":[1025],"autoReload":[4,"auto-reload"],"title":[32],"resendAfter":[32],"isProfileVerify":[32],"getCode":[64],"open":[64]}],[4,"salla-swiper",{"loop":[4],"speed":[2],"itemPerView":[8,"item-per-view"],"spaceBetweenItems":[2,"space-between-items"],"direction":[1],"currentIndex":[32],"isLastSlideItem":[32],"isFirstSlideItem":[32]}],[0,"salla-rating-stars",{"name":[1],"size":[1],"value":[2]}],[0,"salla-skeleton",{"type":[1],"width":[1],"height":[1]}],[4,"salla-list-tile",{"href":[1],"target":[1]}],[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,"onSelect","onSelectedTab"]]],[4,"salla-placeholder",{"icon":[1],"alignment":[1],"iconSize":[1,"icon-size"],"default_title":[32],"default_description":[32]}],[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-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"],"icon":[1],"iconStyle":[1,"icon-style"],"imageIcon":[1,"image-icon"],"modalTitle":[32],"open":[64],"close":[64],"setTitle":[64],"loading":[64],"stopLoading":[64]}],[4,"salla-button",{"shape":[513],"color":[513],"fill":[513],"size":[513],"width":[513],"loading":[516],"disabled":[516],"loaderPosition":[1,"loader-position"],"href":[1],"load":[64],"stop":[64],"setText":[64],"disable":[64],"enable":[64]}],[0,"salla-loading",{"size":[8],"width":[8],"color":[1],"bgColor":[1,"bg-color"]}]]],["salla-add-product-button.cjs",[[4,"salla-add-product-button",{"channels":[513],"quantity":[514],"donatingAmount":[514,"donating-amount"],"productId":[520,"product-id"],"productStatus":[513,"product-status"],"productType":[513,"product-type"]}]]],["salla-conditional-fields.cjs",[[4,"salla-conditional-fields",null,[[0,"change","changeHandler"]]]]],["salla-installment.cjs",[[0,"salla-installment",{"price":[1],"language":[1],"currency":[1],"tamaraIsActive":[32],"tabbyIsActive":[32],"spotiiIsActive":[32]}]]],["salla-quantity-input.cjs",[[4,"salla-quantity-input",{"quantity":[32],"decrease":[64],"increase":[64],"setValue":[64]}]]]], options);
22
22
  });
@@ -86,7 +86,7 @@ export class SallaLocalizationModal {
86
86
  .then(() => url && (window.location.href = url));
87
87
  }
88
88
  render() {
89
- return (h("salla-modal", { isLoading: this.isLoading, id: "salla-localization", class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, !this.isLoading ?
89
+ return (h("salla-modal", { isLoading: this.isLoading, class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, !this.isLoading ?
90
90
  h("div", { class: "s-localization-modal-inner" },
91
91
  this.languages.length > 1 ?
92
92
  h("div", { class: "s-localization-modal-section" },
@@ -125,7 +125,6 @@ export class SallaLoyalty {
125
125
  this.modal.open();
126
126
  return await salla.loyalty.getProgram()
127
127
  .then((response) => {
128
- console.log("🚀 ~ file: salla-loyalty.tsx ~ line 167 ~ SallaLoyalty ~ .then ~ response", response);
129
128
  this.loyaltyProgram = response.data;
130
129
  })
131
130
  .catch(e => console.log(e))
@@ -197,21 +196,43 @@ export class SallaLoyalty {
197
196
  this.is_loggedin ? this.cart_total_point_summary : this.guestMessage,
198
197
  h("salla-button", { shape: "link", color: "primary", onClick: () => salla.event.dispatch("loyalty::open") }, this.is_loggedin ? this.cart_point_exchange_now : this.login_button))) :
199
198
  ''),
200
- h("salla-modal", { id: "salla-loyalty-confirmation-modal", noPadding: true, position: 'top', width: "sm", ref: modal => this.confirmationModal = modal }, this.getConfirmationModal()),
201
- h("salla-modal", { isLoading: true, id: "salla-loyalty-modal", width: "md", ref: modal => this.modal = modal }, !!this.loyaltyProgram ?
202
- [
203
- h("salla-list-tile", { id: 's-loyalty-header', class: "s-loyalty-header" },
204
- h("div", { slot: "icon", class: "s-loyalty-header-icon", innerHTML: GiftImg }),
205
- h("div", { slot: "title", class: "s-loyalty-header-title" }, this.loyaltyProgram.prize_promotion_title),
206
- h("div", { slot: "subtitle", class: "s-loyalty-header-subtitle" }, this.loyaltyProgram.prize_promotion_description)),
207
- h("salla-tabs", null,
208
- this.loyaltyProgram.prizes.map((prize) => h("salla-tab-header", { slot: "header", name: prize.title },
209
- h("span", null, prize.title))),
210
- this.loyaltyProgram.prizes.map((prize) => h("salla-tab-content", { slot: "content", name: prize.title },
211
- h("salla-swiper", { "space-between-items": "20" }, prize.items.map((item) => this.prizeItem(item)))))),
212
- h("salla-button", { disabled: !this.selectedItem, width: "wide", class: "s-loyalty-program-redeem-btn", onClick: () => this.openConfirmation() }, this.exchange_points)
213
- ]
214
- : h("salla-placeholder", { class: "s-loyalty-placeholder", alignment: "center" })),
199
+ h("salla-modal", { noPadding: true, position: 'top', width: "sm", ref: modal => this.confirmationModal = modal }, this.getConfirmationModal()),
200
+ h("salla-modal", { isLoading: true, "has-skeleton": true, width: "md", ref: modal => this.modal = modal },
201
+ h("div", { slot: "loading" },
202
+ h("div", { class: "s-loyalty-skeleton" },
203
+ h("salla-list-tile", { class: "s-loyalty-header" },
204
+ h("div", { slot: "icon", class: "s-loyalty-header-icon" },
205
+ h("salla-skeleton", { type: "circle", height: '6rem', width: '6rem' })),
206
+ h("div", { slot: "title", class: "s-loyalty-header-title mb-5" },
207
+ h("salla-skeleton", { height: '15px', width: '50%' })),
208
+ h("div", { slot: "subtitle", class: "s-loyalty-header-subtitle" },
209
+ h("salla-skeleton", { height: '10px' }),
210
+ h("salla-skeleton", { height: '10px', width: '75%' }))),
211
+ h("div", { class: "s-loyalty-skeleton-cards" }, [...Array(3)].map(() => h("div", { class: "s-loyalty-prize-item" },
212
+ h("salla-skeleton", { height: '9rem' }),
213
+ h("div", { class: "s-loyalty-prize-item-title" },
214
+ h("salla-skeleton", { height: '15px', width: '75%' })),
215
+ h("div", { class: "s-loyalty-prize-item-subtitle" },
216
+ h("salla-skeleton", { height: '10px', width: '50%' }),
217
+ h("salla-skeleton", { height: '10px', width: '25%' })),
218
+ h("div", { class: "s-loyalty-prize-item-points" },
219
+ h("salla-skeleton", { height: '15px', width: '100px' }),
220
+ h("div", { class: "s-loyalty-prize-item-check" },
221
+ h("salla-skeleton", { height: '1rem', width: '1rem', type: 'circle' })))))))),
222
+ !!this.loyaltyProgram ?
223
+ [
224
+ h("salla-list-tile", { id: 's-loyalty-header', class: "s-loyalty-header" },
225
+ h("div", { slot: "icon", class: "s-loyalty-header-icon", innerHTML: GiftImg }),
226
+ h("div", { slot: "title", class: "s-loyalty-header-title" }, this.loyaltyProgram.prize_promotion_title),
227
+ h("div", { slot: "subtitle", class: "s-loyalty-header-subtitle" }, this.loyaltyProgram.prize_promotion_description)),
228
+ h("salla-tabs", null,
229
+ this.loyaltyProgram.prizes.map((prize) => h("salla-tab-header", { slot: "header", name: prize.title },
230
+ h("span", null, prize.title))),
231
+ this.loyaltyProgram.prizes.map((prize) => h("salla-tab-content", { slot: "content", name: prize.title },
232
+ h("salla-swiper", { "space-between-items": "20" }, prize.items.map((item) => this.prizeItem(item)))))),
233
+ h("salla-button", { disabled: !this.selectedItem, width: "wide", class: "s-loyalty-program-redeem-btn", onClick: () => this.openConfirmation() }, this.exchange_points),
234
+ ]
235
+ : h("salla-placeholder", { class: "s-loyalty-placeholder", alignment: "center" })),
215
236
  ];
216
237
  }
217
238
  componentDidLoad() {
@@ -21,6 +21,10 @@ export class SallaModal {
21
21
  * open the modal on rendering
22
22
  */
23
23
  this.visible = false;
24
+ /**
25
+ * open the modal on rendering
26
+ */
27
+ this.hasSkeleton = false;
24
28
  /**
25
29
  * Show loading in the middle
26
30
  */
@@ -122,7 +126,7 @@ export class SallaModal {
122
126
  };
123
127
  }
124
128
  getWidth() {
125
- return this.isLoading ? 'sm' : this.width;
129
+ return this.isLoading ? this.hasSkeleton ? 'md' : 'sm' : this.width;
126
130
  }
127
131
  //todo:: pref for each modal
128
132
  render() {
@@ -133,7 +137,8 @@ export class SallaModal {
133
137
  h("div", { class: "s-modal-wrapper" },
134
138
  h("span", { class: 's-modal-spacer s-modal-align-' + this.position }, "\u200B"),
135
139
  h("div", { class: 's-modal-body ' + 's-modal-align-' + this.position + ' s-modal-' + this.getWidth() + (this.noPadding ? ' s-modal-nopadding' : ' s-modal-padding') },
136
- h("salla-loading", null),
140
+ h("slot", { name: "loading" },
141
+ h("salla-loading", null)),
137
142
  h("div", { class: "s-hidden" },
138
143
  h("slot", null))))));
139
144
  }
@@ -244,6 +249,24 @@ export class SallaModal {
244
249
  "reflect": true,
245
250
  "defaultValue": "false"
246
251
  },
252
+ "hasSkeleton": {
253
+ "type": "boolean",
254
+ "mutable": false,
255
+ "complexType": {
256
+ "original": "boolean",
257
+ "resolved": "boolean",
258
+ "references": {}
259
+ },
260
+ "required": false,
261
+ "optional": false,
262
+ "docs": {
263
+ "tags": [],
264
+ "text": "open the modal on rendering"
265
+ },
266
+ "attribute": "has-skeleton",
267
+ "reflect": true,
268
+ "defaultValue": "false"
269
+ },
247
270
  "isLoading": {
248
271
  "type": "boolean",
249
272
  "mutable": true,
@@ -73,7 +73,7 @@ export class SallaOfferModal {
73
73
  }
74
74
  render() {
75
75
  var _a, _b;
76
- return h("salla-modal", { id: "salla-offer-modal", "sub-title-first": true, icon: "sicon-special-discount", "sub-title": this.offer_message, ref: modal => this.modal = modal, "is-loading": this.offer === null }, this.offer !== null
76
+ return h("salla-modal", { "sub-title-first": true, icon: "sicon-special-discount", "sub-title": this.offer_message, ref: modal => this.modal = modal, "is-loading": this.offer === null }, this.offer !== null
77
77
  ? [h("div", { class: "s-offer-modal-scrolled-slider-wrap" },
78
78
  h("div", { class: "s-offer-modal-body s-offer-modal-scrolled-slider" }, ((_a = this.offer.get.categories) === null || _a === void 0 ? void 0 : _a.length) > 0
79
79
  ? this.offer.get.categories.map(category => h("a", { href: category.urls.customer, class: "s-offer-modal-badge s-offer-modal-slider-item", innerHTML: this.categorySlot
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { Component, Prop, State, h } from '@stencil/core';
4
+ import { Component, Prop, State, h, Host } from '@stencil/core';
5
5
  import Inbox from '../../assets/svg/inbox.svg';
6
6
  export class SallaPlaceholder {
7
7
  constructor() {
@@ -31,7 +31,7 @@ export class SallaPlaceholder {
31
31
  };
32
32
  }
33
33
  render() {
34
- return (h("div", { class: this.alignmentClass() },
34
+ return (h(Host, { class: this.alignmentClass() },
35
35
  h("div", { class: `s-placeholder-icon s-placeholder-icon-${this.iconSize}`, innerHTML: this.icon }),
36
36
  h("div", { class: "s-placeholder-title" },
37
37
  h("slot", { name: 'title' },
@@ -147,7 +147,7 @@ export class SallaRatingModal {
147
147
  this.showActiveStep(this.thanksTab);
148
148
  }
149
149
  render() {
150
- return (h(Host, { id: "s-rating" },
150
+ return (h(Host, { class: "s-rating" },
151
151
  h("salla-modal", { isLoading: true, width: "md", ref: modal => this.modal = modal }, this.order
152
152
  ? [h("div", { class: "s-rating-modal-wrapper", ref: el => this.body = el },
153
153
  this.order.testimonials_enabled ?
@@ -157,7 +157,7 @@ export class SallaRatingModal {
157
157
  h("h2", { class: "s-rating-modal-title" }, this.rate_the_store),
158
158
  h("div", { class: "s-rating-modal-stars-company" },
159
159
  h("salla-rating-stars", { size: "large" })),
160
- h("textarea", { id: "storeReview", name: "comment", class: "s-rating-modal-comment", placeholder: this.write_store_rate }),
160
+ h("textarea", { name: "comment", class: "s-rating-modal-comment", placeholder: this.write_store_rate }),
161
161
  h("small", { class: "s-rating-modal-validation-msg" }))
162
162
  : '',
163
163
  this.order.products_enabled
@@ -73,7 +73,8 @@ export class SallaScopees {
73
73
  return await salla.scope.change(payload)
74
74
  .then(() => {
75
75
  salla.storage.set("branch-choosed-before", true);
76
- window.location.reload();
76
+ salla.storage.set("scope", this.current_scope.id);
77
+ window.location.search += "&scope=" + this.current_scope.id;
77
78
  }).catch(e => console.log(e))
78
79
  .finally(() => {
79
80
  this.changeBtn.stop();
@@ -130,7 +131,7 @@ export class SallaScopees {
130
131
  }
131
132
  render() {
132
133
  return (h(Host, null,
133
- h("salla-modal", { ref: modal => this.modal = modal, id: "s-scopes-modal", isClosable: !!(this.isOpenedBefore || (this.selection == 'optional')), class: "s-scopes-modal", isLoading: true },
134
+ h("salla-modal", { ref: modal => this.modal = modal, isClosable: !!(this.isOpenedBefore || (this.selection == 'optional')), class: "s-scopes-modal", isLoading: true },
134
135
  h("salla-list-tile", { class: this.originalScopesList.length ? "s-scopes-header block" : "s-hidden" },
135
136
  h("div", { slot: "icon", class: "s-scopes-header-icon", innerHTML: StoreAlt }),
136
137
  h("div", { slot: "title", class: "s-scopes-header-title" }, this.nowBrowsingFrom),
@@ -76,7 +76,7 @@ export class SallaSocialShare {
76
76
  }, '-=200');
77
77
  }
78
78
  render() {
79
- return (h("div", { id: "s-social-share", class: "s-social-share-wrapper" },
79
+ return (h("div", { class: "s-social-share-wrapper" },
80
80
  h("slot", { name: 'widget' },
81
81
  h("salla-button", { "aria-label": "Share", onClick: () => this.open(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" },
82
82
  h("i", { class: this.opened ? "sicon-cancel" : "sicon-share-alt" }))),
@@ -89,7 +89,7 @@ export class SallaTelInput {
89
89
  }
90
90
  ;
91
91
  render() {
92
- return (h(Host, { id: "s-tel-input" },
92
+ return (h(Host, { class: "s-tel-input" },
93
93
  h("input", { type: "tel", name: this.name, value: this.phone, ref: el => this.phoneInput = el, class: "s-tel-input-control tel-input s-ltr" }),
94
94
  h("span", { class: "s-tel-input-error-msg", ref: el => this.errorMsg = el }),
95
95
  h("input", { type: "hidden", name: "country_code", value: this.countryCode, ref: el => this.countryCodeInput = el, class: "country_code" })));
@@ -6,7 +6,6 @@ import '@salla.sa/twilight/dist/cjs/index';
6
6
  export default function () {
7
7
  salla.init({
8
8
  debug: true,
9
- language_code: 'en',
10
9
  store: {
11
10
  // stage
12
11
  url: "https://web-26c3cd35add3468fc189c714bd1a1345.salla.group/bayans",
@@ -20,6 +19,7 @@ export default function () {
20
19
  type: 'user',
21
20
  id: "TEXGNhitwf0E1wjxgVFA4wSDMC2sJsLboHNoLmAL",
22
21
  email: "daniel@salla.sa",
22
+ language_code: 'ar',
23
23
  },
24
24
  });
25
25
  // this is required to bypass cloudflare in stage
@@ -88,7 +88,7 @@ const SallaLocalizationModal$1 = /*@__PURE__*/ proxyCustomElement(class extends
88
88
  .then(() => url && (window.location.href = url));
89
89
  }
90
90
  render() {
91
- return (h("salla-modal", { isLoading: this.isLoading, id: "salla-localization", class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, !this.isLoading ?
91
+ return (h("salla-modal", { isLoading: this.isLoading, class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, !this.isLoading ?
92
92
  h("div", { class: "s-localization-modal-inner" }, this.languages.length > 1 ?
93
93
  h("div", { class: "s-localization-modal-section" }, h("label", { class: "s-localization-modal-title" }, this.languagesTitle), h("div", { class: "s-localization-modal-section-inner" }, this.languages.length < 6 ?
94
94
  this.languages.map(lang => h("div", { class: "s-localization-modal-item" }, h("input", { class: "s-localization-modal-input", type: "radio", checked: this.language == lang.iso_code, onChange: () => this.language = lang.iso_code, name: "language", id: 'lang-' + lang.code.toLowerCase(), value: lang.code }), h("div", { class: "s-localization-modal-label-slot", id: "language-slot", innerHTML: this.languageSlot
@@ -2,11 +2,12 @@
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
4
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
5
- import { d as defineCustomElement$a } from './salla-button2.js';
6
- import { d as defineCustomElement$9 } from './salla-list-tile2.js';
7
- import { d as defineCustomElement$8 } from './salla-loading2.js';
8
- import { d as defineCustomElement$7 } from './salla-modal2.js';
9
- import { d as defineCustomElement$6 } from './salla-placeholder2.js';
5
+ import { d as defineCustomElement$b } from './salla-button2.js';
6
+ import { d as defineCustomElement$a } from './salla-list-tile2.js';
7
+ import { d as defineCustomElement$9 } from './salla-loading2.js';
8
+ import { d as defineCustomElement$8 } from './salla-modal2.js';
9
+ import { d as defineCustomElement$7 } from './salla-placeholder2.js';
10
+ import { d as defineCustomElement$6 } from './salla-skeleton2.js';
10
11
  import { d as defineCustomElement$5 } from './salla-swiper2.js';
11
12
  import { d as defineCustomElement$4 } from './salla-tab-content2.js';
12
13
  import { d as defineCustomElement$3 } from './salla-tab-header2.js';
@@ -172,7 +173,6 @@ const SallaLoyalty$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
172
173
  this.modal.open();
173
174
  return await salla.loyalty.getProgram()
174
175
  .then((response) => {
175
- console.log("🚀 ~ file: salla-loyalty.tsx ~ line 167 ~ SallaLoyalty ~ .then ~ response", response);
176
176
  this.loyaltyProgram = response.data;
177
177
  })
178
178
  .catch(e => console.log(e))
@@ -240,12 +240,12 @@ const SallaLoyalty$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
240
240
  h("slot", { name: 'widget' }, this.customerPoints ?
241
241
  h("salla-list-tile", { class: 's-loyalty-widget' }, h("div", { slot: "icon", class: "s-loyalty-widget-icon", innerHTML: Star2 }), h("div", { slot: "subtitle" }, this.is_loggedin ? this.cart_total_point_summary : this.guestMessage, h("salla-button", { shape: "link", color: "primary", onClick: () => salla.event.dispatch("loyalty::open") }, this.is_loggedin ? this.cart_point_exchange_now : this.login_button))) :
242
242
  ''),
243
- h("salla-modal", { id: "salla-loyalty-confirmation-modal", noPadding: true, position: 'top', width: "sm", ref: modal => this.confirmationModal = modal }, this.getConfirmationModal()),
244
- h("salla-modal", { isLoading: true, id: "salla-loyalty-modal", width: "md", ref: modal => this.modal = modal }, !!this.loyaltyProgram ?
243
+ h("salla-modal", { noPadding: true, position: 'top', width: "sm", ref: modal => this.confirmationModal = modal }, this.getConfirmationModal()),
244
+ h("salla-modal", { isLoading: true, "has-skeleton": true, width: "md", ref: modal => this.modal = modal }, h("div", { slot: "loading" }, h("div", { class: "s-loyalty-skeleton" }, h("salla-list-tile", { class: "s-loyalty-header" }, h("div", { slot: "icon", class: "s-loyalty-header-icon" }, h("salla-skeleton", { type: "circle", height: '6rem', width: '6rem' })), h("div", { slot: "title", class: "s-loyalty-header-title mb-5" }, h("salla-skeleton", { height: '15px', width: '50%' })), h("div", { slot: "subtitle", class: "s-loyalty-header-subtitle" }, h("salla-skeleton", { height: '10px' }), h("salla-skeleton", { height: '10px', width: '75%' }))), h("div", { class: "s-loyalty-skeleton-cards" }, [...Array(3)].map(() => h("div", { class: "s-loyalty-prize-item" }, h("salla-skeleton", { height: '9rem' }), h("div", { class: "s-loyalty-prize-item-title" }, h("salla-skeleton", { height: '15px', width: '75%' })), h("div", { class: "s-loyalty-prize-item-subtitle" }, h("salla-skeleton", { height: '10px', width: '50%' }), h("salla-skeleton", { height: '10px', width: '25%' })), h("div", { class: "s-loyalty-prize-item-points" }, h("salla-skeleton", { height: '15px', width: '100px' }), h("div", { class: "s-loyalty-prize-item-check" }, h("salla-skeleton", { height: '1rem', width: '1rem', type: 'circle' })))))))), !!this.loyaltyProgram ?
245
245
  [
246
246
  h("salla-list-tile", { id: 's-loyalty-header', class: "s-loyalty-header" }, h("div", { slot: "icon", class: "s-loyalty-header-icon", innerHTML: GiftImg }), h("div", { slot: "title", class: "s-loyalty-header-title" }, this.loyaltyProgram.prize_promotion_title), h("div", { slot: "subtitle", class: "s-loyalty-header-subtitle" }, this.loyaltyProgram.prize_promotion_description)),
247
247
  h("salla-tabs", null, this.loyaltyProgram.prizes.map((prize) => h("salla-tab-header", { slot: "header", name: prize.title }, h("span", null, prize.title))), this.loyaltyProgram.prizes.map((prize) => h("salla-tab-content", { slot: "content", name: prize.title }, h("salla-swiper", { "space-between-items": "20" }, prize.items.map((item) => this.prizeItem(item)))))),
248
- h("salla-button", { disabled: !this.selectedItem, width: "wide", class: "s-loyalty-program-redeem-btn", onClick: () => this.openConfirmation() }, this.exchange_points)
248
+ h("salla-button", { disabled: !this.selectedItem, width: "wide", class: "s-loyalty-program-redeem-btn", onClick: () => this.openConfirmation() }, this.exchange_points),
249
249
  ]
250
250
  : h("salla-placeholder", { class: "s-loyalty-placeholder", alignment: "center" })),
251
251
  ];
@@ -285,7 +285,7 @@ function defineCustomElement$1() {
285
285
  if (typeof customElements === "undefined") {
286
286
  return;
287
287
  }
288
- const components = ["salla-loyalty", "salla-button", "salla-list-tile", "salla-loading", "salla-modal", "salla-placeholder", "salla-swiper", "salla-tab-content", "salla-tab-header", "salla-tabs"];
288
+ const components = ["salla-loyalty", "salla-button", "salla-list-tile", "salla-loading", "salla-modal", "salla-placeholder", "salla-skeleton", "salla-swiper", "salla-tab-content", "salla-tab-header", "salla-tabs"];
289
289
  components.forEach(tagName => { switch (tagName) {
290
290
  case "salla-loyalty":
291
291
  if (!customElements.get(tagName)) {
@@ -294,25 +294,30 @@ function defineCustomElement$1() {
294
294
  break;
295
295
  case "salla-button":
296
296
  if (!customElements.get(tagName)) {
297
- defineCustomElement$a();
297
+ defineCustomElement$b();
298
298
  }
299
299
  break;
300
300
  case "salla-list-tile":
301
301
  if (!customElements.get(tagName)) {
302
- defineCustomElement$9();
302
+ defineCustomElement$a();
303
303
  }
304
304
  break;
305
305
  case "salla-loading":
306
306
  if (!customElements.get(tagName)) {
307
- defineCustomElement$8();
307
+ defineCustomElement$9();
308
308
  }
309
309
  break;
310
310
  case "salla-modal":
311
311
  if (!customElements.get(tagName)) {
312
- defineCustomElement$7();
312
+ defineCustomElement$8();
313
313
  }
314
314
  break;
315
315
  case "salla-placeholder":
316
+ if (!customElements.get(tagName)) {
317
+ defineCustomElement$7();
318
+ }
319
+ break;
320
+ case "salla-skeleton":
316
321
  if (!customElements.get(tagName)) {
317
322
  defineCustomElement$6();
318
323
  }