@salla.sa/twilight-components 2.9.32 → 2.9.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-cac2fd59.js → index-1d2b3370.js} +7 -2
- package/dist/cjs/{index-377e4d52.js → index-fcc9f90f.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/salla-add-product-button.cjs.entry.js +1 -1
- package/dist/cjs/{salla-button_30.cjs.entry.js → salla-button_32.cjs.entry.js} +224 -8
- package/dist/cjs/salla-conditional-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-select.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/salla-sheet/salla-sheet.css +24 -0
- package/dist/collection/components/salla-sheet/salla-sheet.js +210 -0
- package/dist/collection/components/salla-user-menu/interfaces.js +4 -0
- package/dist/collection/components/salla-user-menu/salla-user-menu.css +0 -0
- package/dist/collection/components/salla-user-menu/salla-user-menu.js +239 -0
- package/dist/collection/global/app-dev.js +31 -28
- package/dist/components/bell-ring.js +11 -0
- package/dist/components/cart.js +11 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +3 -1
- package/dist/components/salla-cart-summary.js +2 -8
- package/dist/components/salla-product-availability2.js +3 -9
- package/dist/components/salla-rating-modal.js +2 -8
- package/dist/components/salla-sheet.d.ts +11 -0
- package/dist/components/salla-sheet.js +111 -0
- package/dist/components/salla-user-menu.d.ts +11 -0
- package/dist/components/salla-user-menu.js +189 -0
- package/dist/components/star.js +11 -0
- package/dist/esm/{index-a277bafe.js → index-9c5cff9d.js} +1 -1
- package/dist/esm/{index-0ce70ad2.js → index-f1d446ac.js} +7 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-add-product-button.entry.js +1 -1
- package/dist/esm/{salla-button_30.entry.js → salla-button_32.entry.js} +223 -9
- package/dist/esm/salla-conditional-fields.entry.js +1 -1
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-select.entry.js +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm-es5/{index-a277bafe.js → index-9c5cff9d.js} +1 -1
- package/dist/esm-es5/{index-0ce70ad2.js → index-f1d446ac.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/salla-add-product-button.entry.js +1 -1
- package/dist/esm-es5/{salla-button_30.entry.js → salla-button_32.entry.js} +4 -4
- package/dist/esm-es5/salla-conditional-fields.entry.js +1 -1
- package/dist/esm-es5/salla-installment.entry.js +1 -1
- package/dist/esm-es5/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm-es5/salla-scopes.entry.js +1 -1
- package/dist/esm-es5/salla-select.entry.js +1 -1
- package/dist/esm-es5/twilight.js +1 -1
- package/dist/twilight/{p-10ac9c79.entry.js → p-03695034.entry.js} +1 -1
- package/dist/twilight/{p-521b6fde.entry.js → p-0bb00f36.entry.js} +1 -1
- package/dist/twilight/{p-0df01b70.system.entry.js → p-1b53ebda.system.entry.js} +1 -1
- package/dist/twilight/{p-26a23097.system.entry.js → p-217e1d1c.system.entry.js} +1 -1
- package/dist/twilight/{p-767eb598.system.entry.js → p-21aa165d.system.entry.js} +1 -1
- package/dist/twilight/{p-85816035.system.entry.js → p-3ae8b640.system.entry.js} +2 -2
- package/dist/twilight/{p-91d5fcc1.system.entry.js → p-486ce499.system.entry.js} +1 -1
- package/dist/twilight/{p-93a1a61e.entry.js → p-6d34d337.entry.js} +1 -1
- package/dist/twilight/{p-13e697f7.entry.js → p-6f41faf8.entry.js} +1 -1
- package/dist/twilight/{p-ca68752d.js → p-7dc66c07.js} +1 -1
- package/dist/twilight/{p-27e01463.entry.js → p-82931e46.entry.js} +1 -1
- package/dist/twilight/{p-9e4d198f.system.entry.js → p-9c0c939c.system.entry.js} +1 -1
- package/dist/twilight/{p-34e3a9bf.system.js → p-a761441b.system.js} +1 -1
- package/dist/twilight/{p-af4aa9f9.entry.js → p-a7bd281c.entry.js} +1 -1
- package/dist/twilight/{p-6224b033.entry.js → p-aede29a8.entry.js} +4 -4
- package/dist/twilight/p-b8f9d154.system.js +4 -0
- package/dist/twilight/{p-db0ba553.system.js → p-d9130020.system.js} +2 -2
- package/dist/twilight/{p-cfdc464c.js → p-da7b5ff6.js} +2 -2
- package/dist/twilight/{p-dd9b3c90.system.entry.js → p-fbaa17e1.system.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/twilight/twilight.js +1 -1
- package/dist/types/components/salla-sheet/salla-sheet.d.ts +35 -0
- package/dist/types/components/salla-user-menu/interfaces.d.ts +27 -0
- package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +46 -0
- package/dist/types/components.d.ts +76 -0
- package/package.json +4 -4
- package/dist/twilight/p-59dd7db3.system.js +0 -4
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index$1 = require('./index-
|
|
8
|
+
const index$1 = require('./index-1d2b3370.js');
|
|
9
9
|
const _commonjsHelpers = require('./_commonjsHelpers-691dd63b.js');
|
|
10
10
|
const search = require('./search-b487cc49.js');
|
|
11
11
|
|
|
@@ -118,7 +118,7 @@ const SallaButton = class {
|
|
|
118
118
|
};
|
|
119
119
|
SallaButton.style = sallaButtonCss;
|
|
120
120
|
|
|
121
|
-
const
|
|
121
|
+
const PendingOrdersIcon = `<!-- Generated by IcoMoon.io -->
|
|
122
122
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="30" height="32" viewBox="0 0 30 32">
|
|
123
123
|
<title>cart</title>
|
|
124
124
|
<path d="M15.426 28.084c0-1.412-0.85-2.684-2.156-3.226-1.305-0.54-2.807-0.241-3.805 0.758-0.999 0.998-1.298 2.5-0.758 3.805 0.54 1.303 1.815 2.155 3.226 2.155 1.928-0.003 3.49-1.564 3.492-3.492h0.001zM10.597 28.084h0.001c0-0.54 0.326-1.027 0.825-1.235 0.498-0.206 1.074-0.091 1.455 0.29 0.383 0.382 0.497 0.957 0.29 1.456-0.208 0.5-0.695 0.825-1.235 0.825-0.355 0-0.695-0.142-0.944-0.391-0.251-0.251-0.392-0.591-0.392-0.946h-0.001l0.001 0.001zM28.23 28.084c0-1.412-0.85-2.684-2.155-3.226-1.305-0.54-2.807-0.241-3.806 0.758s-1.297 2.5-0.756 3.805c0.54 1.303 1.813 2.155 3.226 2.155 1.927-0.003 3.49-1.564 3.491-3.492zM23.401 28.084c0-0.54 0.326-1.027 0.825-1.235 0.5-0.206 1.075-0.091 1.457 0.29s0.497 0.957 0.289 1.456c-0.206 0.5-0.693 0.825-1.233 0.825-0.738 0-1.337-0.599-1.337-1.337l-0.001 0.001zM1.953 0.234l-0.342-0.059c-0.29-0.064-0.594-0.004-0.839 0.166-0.247 0.169-0.414 0.436-0.463 0.734-0.050 0.3 0.023 0.607 0.201 0.85s0.444 0.402 0.738 0.44l0.341 0.059c1.825 0.324 3.248 1.794 3.548 3.662l1.981 12.369h-0.001c0.218 1.387 0.913 2.651 1.96 3.563s2.379 1.412 3.754 1.41h14.242c0.601 0 1.088-0.498 1.088-1.112s-0.487-1.112-1.088-1.112h-14.242c-1.679-0.001-3.139-1.183-3.525-2.854h11.463c1.614 0.004 3.188-0.518 4.493-1.49 1.305-0.973 2.271-2.346 2.762-3.918l1.298-4.136c0.145-0.455 0.065-0.953-0.213-1.336-0.278-0.385-0.72-0.608-1.187-0.602h-20.467l-0.181-1.141c-0.218-1.367-0.849-2.631-1.802-3.615-0.954-0.983-2.184-1.64-3.518-1.878h-0.001zM26.946 9.096l-0.993 3.169v-0.001c-0.353 1.122-1.044 2.101-1.975 2.796s-2.056 1.067-3.208 1.067h-11.833l-1.125-7.042 19.134 0.011z"></path>
|
|
@@ -1495,7 +1495,7 @@ const SallaCartSummary = class {
|
|
|
1495
1495
|
}, '-=1700');
|
|
1496
1496
|
}
|
|
1497
1497
|
render() {
|
|
1498
|
-
return (index$1.h(index$1.Host, null, index$1.h("a", { class: "s-cart-summary-wrapper", href: salla.url.get('cart') }, index$1.h("div", { id: "s-cart-icon" }, index$1.h("slot", { name: "icon" }, index$1.h("i", { class: "s-cart-summary-icon", innerHTML:
|
|
1498
|
+
return (index$1.h(index$1.Host, null, index$1.h("a", { class: "s-cart-summary-wrapper", href: salla.url.get('cart') }, index$1.h("div", { id: "s-cart-icon" }, index$1.h("slot", { name: "icon" }, index$1.h("i", { class: "s-cart-summary-icon", innerHTML: PendingOrdersIcon }))), index$1.h("span", { class: "s-cart-summary-count" }, salla.helpers.number(this.cartSummaryCount)), index$1.h("b", { class: "s-cart-summary-total" }, salla.money(this.cartSummaryTotal)))));
|
|
1499
1499
|
}
|
|
1500
1500
|
get host() { return index$1.getElement(this); }
|
|
1501
1501
|
};
|
|
@@ -20452,7 +20452,7 @@ const SallaPlaceholder = class {
|
|
|
20452
20452
|
};
|
|
20453
20453
|
SallaPlaceholder.style = sallaPlaceholderCss;
|
|
20454
20454
|
|
|
20455
|
-
const
|
|
20455
|
+
const BellRing = `<!-- Generated by IcoMoon.io -->
|
|
20456
20456
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
20457
20457
|
<title>bell-ring</title>
|
|
20458
20458
|
<path d="M2.667 13.333v-4c0-2.592 0.748-5.107 2.161-7.271 0.404-0.616 0.231-1.443-0.387-1.845-0.616-0.401-1.443-0.228-1.845 0.388-1.699 2.599-2.596 5.617-2.596 8.728v4c0 0.736 0.596 1.333 1.333 1.333s1.333-0.596 1.333-1.333zM25.333 15.647v-6.313c0-5.147-4.188-9.333-9.333-9.333s-9.333 4.187-9.333 9.333v6.312l-5.157 9.027c-0.236 0.413-0.235 0.92 0.004 1.331 0.239 0.412 0.679 0.664 1.153 0.664h8c0 2.941 2.392 5.333 5.333 5.333s5.333-2.392 5.333-5.333h8c0.475 0 0.915-0.252 1.153-0.664 0.239-0.411 0.24-0.917 0.004-1.331zM16 29.333c-1.471 0-2.667-1.196-2.667-2.667h5.333c0 1.472-1.196 2.667-2.667 2.667zM4.965 24l4.193-7.339c0.113-0.2 0.175-0.429 0.175-0.661v-6.667c0-3.676 2.991-6.667 6.667-6.667s6.667 2.991 6.667 6.667v6.667c0 0.232 0.061 0.46 0.176 0.661l4.192 7.339zM29.403 0.603c-0.403-0.616-1.232-0.789-1.845-0.387-0.617 0.403-0.791 1.229-0.387 1.845 1.415 2.165 2.163 4.68 2.163 7.272v4c0 0.736 0.596 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-4c0-3.112-0.899-6.132-2.597-8.731z"></path>
|
|
@@ -20548,12 +20548,12 @@ const SallaProductAvailability = class {
|
|
|
20548
20548
|
}
|
|
20549
20549
|
render() {
|
|
20550
20550
|
return (index$1.h(index$1.Host, { class: "s-product-availability-wrap" }, this.isSubscribed || this.isVisitorSubscribed
|
|
20551
|
-
? index$1.h("div", { class: "s-product-availability-subscribed" }, index$1.h("span", { innerHTML:
|
|
20551
|
+
? index$1.h("div", { class: "s-product-availability-subscribed" }, index$1.h("span", { innerHTML: BellRing, class: "s-product-availability-subs-icon" }), " ", salla.lang.get('pages.products.notify_availability_success'))
|
|
20552
20552
|
:
|
|
20553
20553
|
index$1.h("salla-button", { width: "wide", onClick: () => this.isUser ? this.submit() : this.modal.open() }, salla.lang.get('pages.products.notify_availability')), this.isUser || this.isSubscribed || this.isVisitorSubscribed ? '' : this.renderModal()));
|
|
20554
20554
|
}
|
|
20555
20555
|
renderModal() {
|
|
20556
|
-
return (index$1.h("salla-modal", { ref: modal => this.modal = modal, "modal-title": this.title_, subTitle: salla.lang.get('pages.products.notify_availability_subtitle'), width: "sm" }, index$1.h("span", { slot: 'icon', innerHTML:
|
|
20556
|
+
return (index$1.h("salla-modal", { ref: modal => this.modal = modal, "modal-title": this.title_, subTitle: salla.lang.get('pages.products.notify_availability_subtitle'), width: "sm" }, index$1.h("span", { slot: 'icon', innerHTML: BellRing }), index$1.h("div", { class: "s-product-availability-body" }, this.channels_.includes('email') ? [
|
|
20557
20557
|
index$1.h("label", { class: "s-product-availability-label" }, salla.lang.get('common.elements.email')),
|
|
20558
20558
|
index$1.h("input", { class: "s-product-availability-input", onKeyDown: e => this.typing(e, this.submit), placeholder: salla.lang.get('common.elements.email_placeholder') || 'your@email.com', ref: el => this.email = el, type: "email" }),
|
|
20559
20559
|
index$1.h("span", { class: "s-product-availability-error-msg" })
|
|
@@ -20718,7 +20718,7 @@ const SallaQuantityInput = class {
|
|
|
20718
20718
|
};
|
|
20719
20719
|
SallaQuantityInput.style = sallaQuantityInputCss;
|
|
20720
20720
|
|
|
20721
|
-
const
|
|
20721
|
+
const WishListIcon = `<!-- Generated by IcoMoon.io -->
|
|
20722
20722
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
20723
20723
|
<title>star</title>
|
|
20724
20724
|
<path d="M31.819 12.077c-0.367-0.883-1.209-1.411-2.259-1.411h-8.437l-2.681-8.871c-0.347-1.075-1.329-1.796-2.443-1.796s-2.096 0.721-2.447 1.805l-2.788 8.861h-8.275c-1.076 0-1.939 0.533-2.308 1.427-0.375 0.904-0.159 2.012 0.525 2.693 0.044 0.044 0.092 0.085 0.141 0.124l6.811 5.101-2.773 8.567c-0.344 1.063 0.019 2.228 0.899 2.899 0.459 0.351 1.001 0.527 1.544 0.527 0.528 0 1.056-0.165 1.511-0.499l7.159-5.267 7.161 5.268c0.896 0.659 2.168 0.645 3.051-0.028 0.884-0.671 1.245-1.836 0.901-2.9l-2.773-8.567 6.811-5.101c0.051-0.037 0.099-0.080 0.143-0.124 0.687-0.687 0.904-1.8 0.528-2.709zM21.976 18.448c-0.456 0.343-0.644 0.936-0.469 1.477l3.044 9.293-7.763-5.711c-0.235-0.173-0.513-0.259-0.791-0.259s-0.556 0.085-0.791 0.259l-7.713 5.676 2.997-9.257c0.175-0.541-0.013-1.136-0.469-1.477l-6.829-5.116h8.551c0.583 0 1.097-0.377 1.272-0.933l2.981-9.479 2.861 9.465c0.169 0.561 0.688 0.947 1.276 0.947h8.672z"></path>
|
|
@@ -20870,7 +20870,7 @@ const SallaRatingModal = class {
|
|
|
20870
20870
|
}
|
|
20871
20871
|
render() {
|
|
20872
20872
|
var _a;
|
|
20873
|
-
return (index$1.h(index$1.Host, { class: "s-rating-modal" }, index$1.h("salla-modal", { isLoading: true, width: "md", ref: modal => this.modal = modal }, index$1.h("div", { slot: 'loading' }, index$1.h("div", { class: "s-rating-modal-skeleton" }, index$1.h("salla-skeleton", { type: 'circle', height: '80px', width: '80px' }), index$1.h("salla-skeleton", { height: '15px', width: '60%' }), index$1.h("salla-skeleton", { height: '10px', width: '30%' }), index$1.h("div", { class: "s-rating-modal-skeleton-stars" }, [...Array(5)].map(() => index$1.h("div", { innerHTML:
|
|
20873
|
+
return (index$1.h(index$1.Host, { class: "s-rating-modal" }, index$1.h("salla-modal", { isLoading: true, width: "md", ref: modal => this.modal = modal }, index$1.h("div", { slot: 'loading' }, index$1.h("div", { class: "s-rating-modal-skeleton" }, index$1.h("salla-skeleton", { type: 'circle', height: '80px', width: '80px' }), index$1.h("salla-skeleton", { height: '15px', width: '60%' }), index$1.h("salla-skeleton", { height: '10px', width: '30%' }), index$1.h("div", { class: "s-rating-modal-skeleton-stars" }, [...Array(5)].map(() => index$1.h("div", { innerHTML: WishListIcon }))), index$1.h("salla-skeleton", { height: '100px', width: '100%' }), index$1.h("div", { class: "s-rating-modal-skeleton-footer" }, index$1.h("salla-skeleton", { height: '40px', width: '30%' })))), !this.hasError && this.order
|
|
20874
20874
|
? [index$1.h("div", { class: "s-rating-modal-wrapper", ref: el => this.body = el }, ((_a = this.order) === null || _a === void 0 ? void 0 : _a.testimonials_enabled) ?
|
|
20875
20875
|
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" }, salla.lang.get('pages.rating.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: salla.lang.get('pages.rating.write_store_rate') }), index$1.h("small", { class: "s-rating-modal-validation-msg" }))
|
|
20876
20876
|
: '', this.order.products_enabled
|
|
@@ -21076,6 +21076,78 @@ const SallaSearch = class {
|
|
|
21076
21076
|
};
|
|
21077
21077
|
SallaSearch.style = sallaSearchCss;
|
|
21078
21078
|
|
|
21079
|
+
const sallaSheetCss = ".s-sheet-overlay{position:fixed;top:0px;left:0px;width:100%;height:100%;background-color:#00000080;display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center;display:none}.s-sheet-overlay.active{display:-ms-flexbox;display:flex}.s-sheet-container{width:100%;height:40%;background-color:#ffffff;-webkit-transform:translateY(100%);transform:translateY(100%);-webkit-transition:-webkit-transform 0.4s ease-in-out;transition:-webkit-transform 0.4s ease-in-out;transition:transform 0.4s ease-in-out;transition:transform 0.4s ease-in-out, -webkit-transform 0.4s ease-in-out}";
|
|
21080
|
+
|
|
21081
|
+
const SallaSheet = class {
|
|
21082
|
+
constructor(hostRef) {
|
|
21083
|
+
index$1.registerInstance(this, hostRef);
|
|
21084
|
+
/**
|
|
21085
|
+
*
|
|
21086
|
+
*/
|
|
21087
|
+
this.position = 'bottom';
|
|
21088
|
+
/**
|
|
21089
|
+
*
|
|
21090
|
+
*/
|
|
21091
|
+
this.width = 600;
|
|
21092
|
+
/**
|
|
21093
|
+
*
|
|
21094
|
+
*/
|
|
21095
|
+
this.height = 300;
|
|
21096
|
+
/**
|
|
21097
|
+
*
|
|
21098
|
+
*/
|
|
21099
|
+
this.sheetColor = "#ffffff";
|
|
21100
|
+
/**
|
|
21101
|
+
*
|
|
21102
|
+
*/
|
|
21103
|
+
this.persistent = false;
|
|
21104
|
+
this.flag = false;
|
|
21105
|
+
}
|
|
21106
|
+
// private showHideSheet() {
|
|
21107
|
+
// this.flag = !this.flag;
|
|
21108
|
+
// }
|
|
21109
|
+
getMainClass() {
|
|
21110
|
+
return {
|
|
21111
|
+
"s-sheet-overlay": true,
|
|
21112
|
+
"active": this.flag,
|
|
21113
|
+
};
|
|
21114
|
+
}
|
|
21115
|
+
// private getOverlayStyle() {
|
|
21116
|
+
// return {
|
|
21117
|
+
// "align-items": this.position == "top" ? "flex-start" : "flex-end",
|
|
21118
|
+
// "justify-content": this.position == "left" ? "flex-start" : "flex-end"
|
|
21119
|
+
// }
|
|
21120
|
+
// }
|
|
21121
|
+
//
|
|
21122
|
+
// private getContainerStyle() {
|
|
21123
|
+
// return {
|
|
21124
|
+
// "width": `${this.width}px`,
|
|
21125
|
+
// "min-height": `${this.height}px`,
|
|
21126
|
+
// "background-color": this.sheetColor,
|
|
21127
|
+
// // "transform": 'translateY(100%)',
|
|
21128
|
+
// // "transition": "transform 0.4s ease-in-out"
|
|
21129
|
+
// }
|
|
21130
|
+
// }
|
|
21131
|
+
/**
|
|
21132
|
+
*
|
|
21133
|
+
* @returns
|
|
21134
|
+
*/
|
|
21135
|
+
open() {
|
|
21136
|
+
this.flag = true;
|
|
21137
|
+
}
|
|
21138
|
+
/**
|
|
21139
|
+
*
|
|
21140
|
+
* @returns
|
|
21141
|
+
*/
|
|
21142
|
+
close() {
|
|
21143
|
+
this.flag = false;
|
|
21144
|
+
}
|
|
21145
|
+
render() {
|
|
21146
|
+
return (index$1.h(index$1.Host, null, index$1.h("slot", { name: 'widget' }, index$1.h("salla-button", { fill: 'outline', width: "wide", onClick: () => this.open() }, "Show/Hide")), index$1.h("div", { class: this.getMainClass(), onClick: () => this.persistent ? null : this.close() }, index$1.h("div", { class: "s-sheet-container" }, index$1.h("slot", null)))));
|
|
21147
|
+
}
|
|
21148
|
+
};
|
|
21149
|
+
SallaSheet.style = sallaSheetCss;
|
|
21150
|
+
|
|
21079
21151
|
const sallaSkeletonCss = ":host{display:block}";
|
|
21080
21152
|
|
|
21081
21153
|
const SallaSkeleton = class {
|
|
@@ -27849,6 +27921,148 @@ const SallaTelInput = class {
|
|
|
27849
27921
|
};
|
|
27850
27922
|
SallaTelInput.style = sallaTelInputCss;
|
|
27851
27923
|
|
|
27924
|
+
const ArrowDown = `<!-- Generated by IcoMoon.io -->
|
|
27925
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
27926
|
+
<title>keyboard_arrow_down</title>
|
|
27927
|
+
<path d="M9.875 11.104l6.125 6.125 6.125-6.125 1.875 1.875-8 8-8-8z"></path>
|
|
27928
|
+
</svg>
|
|
27929
|
+
`;
|
|
27930
|
+
|
|
27931
|
+
const OrderIcon = `<!-- Generated by IcoMoon.io -->
|
|
27932
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
27933
|
+
<title>box-bankers</title>
|
|
27934
|
+
<path d="M28 1.333h-24c-2.205 0-4 1.795-4 4v5.333c0 0.736 0.597 1.333 1.333 1.333v14.667c0 2.205 1.795 4 4 4h21.333c2.205 0 4-1.795 4-4v-14.667c0.736 0 1.333-0.597 1.333-1.333v-5.333c0-2.205-1.795-4-4-4zM28 26.667c0 0.735-0.599 1.333-1.333 1.333h-21.333c-0.735 0-1.333-0.599-1.333-1.333v-14.667h5.333v2.667c0 1.471 1.196 2.667 2.667 2.667h8c1.471 0 2.667-1.196 2.667-2.667v-2.667h5.333zM12 14.667v-2.667h8v2.667zM29.333 9.333h-26.667v-4c0-0.735 0.599-1.333 1.333-1.333h24c0.735 0 1.333 0.599 1.333 1.333z"></path>
|
|
27935
|
+
</svg>
|
|
27936
|
+
`;
|
|
27937
|
+
|
|
27938
|
+
const ProfileIcon = `<!-- Generated by IcoMoon.io -->
|
|
27939
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
27940
|
+
<title>user-circle</title>
|
|
27941
|
+
<path d="M16 22.964c-4.525 0-8.447 1.713-9.993 4.365-0.371 0.636-0.156 1.452 0.48 1.823s1.453 0.156 1.823-0.48c0.855-1.465 3.624-3.041 7.689-3.041s6.835 1.576 7.689 3.041c0.249 0.424 0.696 0.661 1.155 0.661 0.228 0 0.459-0.059 0.669-0.181 0.637-0.371 0.852-1.187 0.48-1.823-1.545-2.652-5.467-4.365-9.992-4.365zM22.667 13.631c0-3.676-2.991-6.667-6.667-6.667s-6.667 2.991-6.667 6.667 2.991 6.667 6.667 6.667 6.667-2.992 6.667-6.667zM12 13.631c0-2.205 1.795-4 4-4s4 1.795 4 4-1.795 4-4 4-4-1.795-4-4zM16 0.297c-8.823 0-16 7.177-16 16 0 2.941 0.821 5.831 2.373 8.357 0.252 0.411 0.689 0.636 1.137 0.636 0.239 0 0.479-0.064 0.696-0.197 0.628-0.385 0.824-1.207 0.439-1.833-1.295-2.108-1.979-4.516-1.979-6.963 0-7.352 5.981-13.333 13.333-13.333s13.333 5.981 13.333 13.333c0 2.448-0.684 4.856-1.979 6.961-0.385 0.628-0.189 1.448 0.437 1.835 0.627 0.384 1.448 0.189 1.835-0.437 1.553-2.527 2.373-5.416 2.373-8.359 0-8.823-7.177-16-16-16z"></path>
|
|
27942
|
+
</svg>
|
|
27943
|
+
`;
|
|
27944
|
+
|
|
27945
|
+
const LogoutIcon = `<!-- Generated by IcoMoon.io -->
|
|
27946
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
27947
|
+
<title>send-out</title>
|
|
27948
|
+
<path d="M16 26.667h-9.333c-0.736 0-1.333-0.597-1.333-1.333v-18.667c0-0.736 0.597-1.333 1.333-1.333h9.333c0.737 0 1.333-0.596 1.333-1.333s-0.596-1.333-1.333-1.333h-9.333c-2.205 0-4 1.795-4 4v18.667c0 2.205 1.795 4 4 4h9.333c0.737 0 1.333-0.596 1.333-1.333s-0.596-1.333-1.333-1.333zM29.231 15.491c-0.068-0.164-0.167-0.312-0.289-0.436l-5.332-5.332c-0.521-0.521-1.364-0.521-1.885 0s-0.521 1.364 0 1.885l3.057 3.059h-12.781c-0.737 0-1.333 0.596-1.333 1.333s0.596 1.333 1.333 1.333h12.781l-3.057 3.057c-0.521 0.521-0.521 1.364 0 1.885 0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391l5.332-5.332c0.124-0.123 0.221-0.271 0.289-0.435 0.135-0.325 0.135-0.693 0-1.019z"></path>
|
|
27949
|
+
</svg>
|
|
27950
|
+
`;
|
|
27951
|
+
|
|
27952
|
+
const sallaUserMenuCss = "";
|
|
27953
|
+
|
|
27954
|
+
const SallaUserMenu = class {
|
|
27955
|
+
constructor(hostRef) {
|
|
27956
|
+
index$1.registerInstance(this, hostRef);
|
|
27957
|
+
var _a;
|
|
27958
|
+
this.items = {
|
|
27959
|
+
notifications: BellRing,
|
|
27960
|
+
orders: OrderIcon,
|
|
27961
|
+
pending_orders: PendingOrdersIcon,
|
|
27962
|
+
wishlist: WishListIcon,
|
|
27963
|
+
profile: ProfileIcon,
|
|
27964
|
+
logout: LogoutIcon,
|
|
27965
|
+
};
|
|
27966
|
+
this.accountLoading = false;
|
|
27967
|
+
this.opened = false;
|
|
27968
|
+
this.notifications = salla.lang.get("common.titles.notifications");
|
|
27969
|
+
this.orders = salla.lang.get("common.titles.orders");
|
|
27970
|
+
this.pending_orders = salla.lang.get("common.titles.pending_orders");
|
|
27971
|
+
this.wishlist = salla.lang.get("common.titles.wishlist");
|
|
27972
|
+
this.profile = salla.lang.get("common.titles.profile");
|
|
27973
|
+
this.logout = salla.lang.get("blocks.header.logout");
|
|
27974
|
+
this.hello = salla.lang.get("pages.checkout.hello");
|
|
27975
|
+
this.first_name = salla.storage.get('user.first_name') || '';
|
|
27976
|
+
this.last_name = salla.storage.get('user.last_name') || '';
|
|
27977
|
+
this.avatar = salla.storage.get('user.avatar') || salla.url.cdn('images/avatar.png');
|
|
27978
|
+
this.badges = {
|
|
27979
|
+
notifications: salla.helpers.number(salla.storage.get('user.notifications') || 0),
|
|
27980
|
+
pending_orders: salla.helpers.number(salla.storage.get('user.pending_orders') || 0)
|
|
27981
|
+
};
|
|
27982
|
+
/**
|
|
27983
|
+
* To display only the list without the dropdown functionality
|
|
27984
|
+
*/
|
|
27985
|
+
this.inline = false;
|
|
27986
|
+
/**
|
|
27987
|
+
* To display the trigger as an avatar only
|
|
27988
|
+
*/
|
|
27989
|
+
this.avatarOnly = false;
|
|
27990
|
+
/**
|
|
27991
|
+
* To display the dropdown header in mobile sheet
|
|
27992
|
+
*/
|
|
27993
|
+
this.showHeader = false;
|
|
27994
|
+
/**
|
|
27995
|
+
* To Make the dropdown menu relative to parent element or not
|
|
27996
|
+
*/
|
|
27997
|
+
this.relativeDropdown = false;
|
|
27998
|
+
this.onClickOutside = () => {
|
|
27999
|
+
this.opened = false;
|
|
28000
|
+
};
|
|
28001
|
+
this.OrderUpdate = 0;
|
|
28002
|
+
salla.lang.onLoaded(() => {
|
|
28003
|
+
this.notifications = salla.lang.get("common.titles.notifications");
|
|
28004
|
+
this.orders = salla.lang.get("common.titles.orders");
|
|
28005
|
+
this.pending_orders = salla.lang.get("common.titles.pending_orders");
|
|
28006
|
+
this.wishlist = salla.lang.get("common.titles.wishlist");
|
|
28007
|
+
this.profile = salla.lang.get("common.titles.profile");
|
|
28008
|
+
this.hello = salla.lang.get("pages.checkout.hello");
|
|
28009
|
+
this.logout = salla.lang.get("blocks.header.logout");
|
|
28010
|
+
});
|
|
28011
|
+
this.triggerSlot = ((_a = this.host.querySelector('[slot="trigger"]')) === null || _a === void 0 ? void 0 : _a.innerHTML) || '<div class="s-user-menu-trigger"><img class="s-user-menu-trigger-avatar" src="{avatar}" alt="{first_name}{last_name}" /><div class="s-user-menu-trigger-content"><span class="s-user-menu-trigger-hello">{hello}</span><p class="s-user-menu-trigger-name">{first_name} {last_name}</p></div> <i class="s-user-menu-trigger-icon">{icon}</i></div>';
|
|
28012
|
+
//if user info fetched before one hour get fresh data
|
|
28013
|
+
if (salla.config.isUser() && ((Date.now() - (salla.storage.get('user.fetched_at') || 0)) / 1000 / 60) > 30) {
|
|
28014
|
+
this.fetchFreshProfile();
|
|
28015
|
+
}
|
|
28016
|
+
}
|
|
28017
|
+
fetchFreshProfile() {
|
|
28018
|
+
salla.profile.api.info()
|
|
28019
|
+
.then((res) => {
|
|
28020
|
+
this.badges.pending_orders = salla.helpers.number(res.data.pending_orders || 0);
|
|
28021
|
+
this.badges.notifications = salla.helpers.number(res.data.notifications || 0);
|
|
28022
|
+
this.first_name = res.data.first_name;
|
|
28023
|
+
this.last_name = res.data.last_name;
|
|
28024
|
+
this.avatar = res.data.avatar || salla.url.cdn('images/avatar.png');
|
|
28025
|
+
});
|
|
28026
|
+
}
|
|
28027
|
+
async open(e) {
|
|
28028
|
+
this.opened = !this.opened;
|
|
28029
|
+
e.stopPropagation();
|
|
28030
|
+
if (this.opened) {
|
|
28031
|
+
window.addEventListener('click', this.onClickOutside);
|
|
28032
|
+
}
|
|
28033
|
+
}
|
|
28034
|
+
getTheHeader() {
|
|
28035
|
+
return index$1.h("div", { class: { 's-user-menu-trigger-slot': true, 's-user-menu-trigger-avatar-only': this.avatarOnly }, id: 'trigger-slot', onClick: (e) => this.open(e), innerHTML: this.triggerSlot
|
|
28036
|
+
.replace(/\{hello\}/g, this.hello)
|
|
28037
|
+
.replace(/\{first_name\}/g, this.first_name)
|
|
28038
|
+
.replace(/\{last_name\}/g, this.last_name)
|
|
28039
|
+
.replace(/\{avatar\}/g, this.avatar)
|
|
28040
|
+
.replace(/\{icon\}/g, ArrowDown) });
|
|
28041
|
+
}
|
|
28042
|
+
getMenuItem(item, i) {
|
|
28043
|
+
//todo:: enhancement support slot here
|
|
28044
|
+
return index$1.h("li", { class: {
|
|
28045
|
+
's-user-menu-dropdown-item': true,
|
|
28046
|
+
's-user-menu-dropdown-item-logout': i + 1 == Object.entries(this.items).length
|
|
28047
|
+
} }, index$1.h("a", { href: salla.url.get(item[0]) }, index$1.h("i", { innerHTML: item[1] }, " "), index$1.h("span", { class: "s-user-menu-dropdown-item-title" }, this[item[0]]), (this.badges[item[0]] && this.badges[item[0]] != '٠')
|
|
28048
|
+
? index$1.h("span", { class: "s-user-menu-dropdown-item-badge" }, this.badges[item[0]])
|
|
28049
|
+
: ""));
|
|
28050
|
+
}
|
|
28051
|
+
render() {
|
|
28052
|
+
//todo:: reduce class names, they are too long
|
|
28053
|
+
return (index$1.h(index$1.Host, null, this.inline ?
|
|
28054
|
+
index$1.h("ul", { class: "s-user-menu-inline" }, Object.entries(this.items).map((item, i) => this.getMenuItem(item, i)))
|
|
28055
|
+
: index$1.h("div", { class: { 's-user-menu-wrapper': true, 's-user-menu-relative-dropdown': this.relativeDropdown } }, this.getTheHeader(), index$1.h("div", { class: { 's-user-menu-toggler': true, 'opened': this.opened } }, index$1.h("div", { class: "s-user-menu-dropdown", onClick: (e) => e.stopPropagation() }, this.showHeader ? index$1.h("div", { class: "s-user-menu-dropdown-header" }, index$1.h("img", { src: this.avatar, alt: `${this.first_name} ${this.last_name}` }), index$1.h("div", { class: "s-user-menu-dropdown-header-content" }, index$1.h("span", null, this.hello), index$1.h("p", null, this.first_name, " ", this.last_name)), index$1.h("button", { class: "s-user-menu-dropdown-header-close", innerHTML: Cancel, onClick: () => this.opened = false })) : '', index$1.h("ul", { class: "s-user-menu-dropdown-list" }, Object.entries(this.items).map((item, i) => this.getMenuItem(item, i))))))));
|
|
28056
|
+
}
|
|
28057
|
+
componentShouldUpdate() {
|
|
28058
|
+
if (!this.opened) {
|
|
28059
|
+
window.removeEventListener('click', this.onClickOutside);
|
|
28060
|
+
}
|
|
28061
|
+
}
|
|
28062
|
+
get host() { return index$1.getElement(this); }
|
|
28063
|
+
};
|
|
28064
|
+
SallaUserMenu.style = sallaUserMenuCss;
|
|
28065
|
+
|
|
27852
28066
|
const Bullhorn = `<!-- Generated by IcoMoon.io -->
|
|
27853
28067
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
27854
28068
|
<title>bullhorn</title>
|
|
@@ -28109,6 +28323,7 @@ exports.salla_quantity_input = SallaQuantityInput;
|
|
|
28109
28323
|
exports.salla_rating_modal = SallaRatingModal;
|
|
28110
28324
|
exports.salla_rating_stars = SallaRatingStars;
|
|
28111
28325
|
exports.salla_search = SallaSearch;
|
|
28326
|
+
exports.salla_sheet = SallaSheet;
|
|
28112
28327
|
exports.salla_skeleton = SallaSkeleton;
|
|
28113
28328
|
exports.salla_social_share = SallaSocialShare;
|
|
28114
28329
|
exports.salla_swiper = SallaSwiper;
|
|
@@ -28116,5 +28331,6 @@ exports.salla_tab_content = SallaTabContent;
|
|
|
28116
28331
|
exports.salla_tab_header = SallaTabHeader;
|
|
28117
28332
|
exports.salla_tabs = SallaTabs;
|
|
28118
28333
|
exports.salla_tel_input = SallaTelInput;
|
|
28334
|
+
exports.salla_user_menu = SallaUserMenu;
|
|
28119
28335
|
exports.salla_user_settings = SallaUserSettings;
|
|
28120
28336
|
exports.salla_verify = SallaVerify;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-1d2b3370.js');
|
|
9
9
|
|
|
10
10
|
const sallaInstallmentCss = "#tabbyPromoWrapper{background:white;border-radius:0.375rem;-webkit-transition:-webkit-box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), -webkit-box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);margin-bottom:20px}.salla-y #tabbyPromoWrapper{border:1px solid var(--color-grey-dark);border-radius:12px}#tabbyPromoWrapper:hover{-webkit-box-shadow:0 0 #0000, 0 0 #0000, 5px 10px 30px #2B2D340D;box-shadow:0 0 #0000, 0 0 #0000, 5px 10px 30px #2B2D340D}#tabbyPromoWrapper #tabbyPromo *{font-family:var(--font-main)}#tabbyPromoWrapper #tabbyPromo>div>div{max-width:none;-webkit-box-shadow:none;box-shadow:none;border:none}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet{max-width:100%;min-height:100px;padding:18px 20px;border:none !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__text,#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-size:var(--font-sm);color:var(--color-text) !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-weight:bold}.tabby-promo-wrapper #tabby-promo{font-family:var(--font-main) !important}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-title{font-size:var(--font-md)}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-desc{font-size:var(--font-sm);line-height:20px}.tamara-product-widget{margin-bottom:20px}.tamara-product-widget,.spotii-wrapper{min-height:100px;position:relative;color:var(--color-text);font-size:var(--font-sm);line-height:1.25;padding:18px 20px 18px 100px !important;background:white;border-radius:0.375rem;-webkit-transition:-webkit-box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), -webkit-box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1)}.salla-y .tamara-product-widget,.salla-y .spotii-wrapper{border-radius:12px;border:1px solid var(--color-grey-dark)}.tamara-product-widget:hover,.spotii-wrapper:hover{-webkit-box-shadow:0 0 #0000, 0 0 #0000, 5px 10px 30px #2B2D340D;box-shadow:0 0 #0000, 0 0 #0000, 5px 10px 30px #2B2D340D}.tamara-product-widget .spotii-logo,.spotii-wrapper .spotii-logo{float:left;margin:0 0 0 -75px}.ltr .tamara-product-widget,.ltr .spotii-wrapper{text-align:left;padding:18px 100px 18px 20px !important}.ltr .tamara-product-widget .spotii-logo,.ltr .spotii-wrapper .spotii-logo{float:right;margin:0 -75px 0 0}.ltr .tamara-product-widget .spotii-product-widget,.ltr .spotii-wrapper .spotii-product-widget{text-align:left !important}.spotii-wrapper{margin-bottom:20px}.spotii-wrapper .spotii-promo{font-size:var(--font-md)}.spotii-wrapper .spotii-product-widget{font-size:var(--font-sm) !important;margin-top:10px}.tamara-product-widget .tamara-logo{position:absolute;left:20px;top:18px;margin:0 !important}.ltr .tamara-product-widget .tamara-logo{right:20px;left:auto}.tamara-product-widget span{font-family:var(--font-main);font-size:var(--font-sm);color:var(--color-text)}.tamara-product-widget span:last-child{display:block;position:relative;margin-top:8px}.tamara-popup__wrap{overflow:auto !important}";
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-1d2b3370.js');
|
|
9
9
|
|
|
10
10
|
const sallaLoyaltyPrizeItemCss = "salla-loyalty-prize-item:hover{-webkit-box-shadow:0 5px 15px 1px rgba(0, 0, 0, 0.04) !important;box-shadow:0 5px 15px 1px rgba(0, 0, 0, 0.04) !important}";
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-1d2b3370.js');
|
|
9
9
|
const search = require('./search-b487cc49.js');
|
|
10
10
|
|
|
11
11
|
const StoreAlt = `<!-- Generated by IcoMoon.io -->
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-1d2b3370.js');
|
|
9
9
|
|
|
10
10
|
const sallaSelectCss = ".s-select-label{display:block;margin-bottom:0.5rem;color:#111827;font-size:0.875rem;line-height:1.25rem;font-weight:500}.s-select-underline{display:block;padding-left:0;padding-right:0;padding-top:0.625rem;padding-bottom:0.625rem;background-color:transparent;color:#6B7280;font-size:0.875rem;line-height:1.25rem;width:100%;border-width:0;border-bottom-width:2px;border-color:#E5E7EB;-webkit-appearance:none;-moz-appearance:none;appearance:none}.s-select-outlined{display:block;padding:0.625rem;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;background-color:#F9FAFB;color:#111827;font-size:0.875rem;line-height:1.25rem;width:100%;border-radius:0.5rem;border-width:1px;border-color:#D1D5DB}.s-select-x-large{height:5rem}.s-select-large{height:4rem}.s-select-normal{height:3rem}.s-select-small{height:3rem}.s-select-x-small{height:2.5rem}.s-select-field{padding-top:0.25rem;padding-bottom:0.25rem;padding-right:0.5rem;padding-left:0.5rem;margin:0;font-size:1.125rem;line-height:1.75rem;font-weight:400;line-height:1.75rem;width:100%;border-radius:0.375rem;border-color:#9CA3AF;-webkit-box-shadow:none;box-shadow:none}.s-select-hint{margin-top:0.25rem;color:#374151;font-size:0.875rem;line-height:1.25rem;line-height:1.25rem}";
|
|
11
11
|
|
package/dist/cjs/twilight.cjs.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const index = require('./index-
|
|
7
|
-
require('./index-
|
|
6
|
+
const index = require('./index-1d2b3370.js');
|
|
7
|
+
require('./index-fcc9f90f.js');
|
|
8
8
|
require('./_commonjsHelpers-691dd63b.js');
|
|
9
9
|
|
|
10
10
|
/*
|
|
@@ -77,5 +77,5 @@ const patchDynamicImport = (base, orgScriptElm) => {
|
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
patchBrowser().then(options => {
|
|
80
|
-
return index.bootstrapLazy(JSON.parse("[[\"salla-button_30.cjs\",[[4,\"salla-gifting\",{\"productId\":[2,\"product-id\"],\"sectionTitle\":[32],\"sectionSubtitle\":[32],\"sectionBtnText\":[32],\"giftDetails\":[32],\"selectImageForYourGift\":[32],\"selectImageOrUpload\":[32],\"selectGiftMessage\":[32],\"giftCustomText\":[32],\"textId\":[32],\"incorrectGiftText\":[32],\"nextStep\":[32],\"senderNameLabel\":[32],\"receiverNameFieldLabel\":[32],\"receiverMobileFieldLabel\":[32],\"receiverEmailFieldLabel\":[32],\"emailPlaceholder\":[32],\"sendLater\":[32],\"selectSendDateAndTime\":[32],\"canNotEditOrderAfterSelectDate\":[32],\"sendGift\":[32],\"donationRequired\":[32],\"step1Elems\":[32],\"step2Elems\":[32],\"stepsWrapper\":[32],\"textArea\":[32],\"imageCover\":[32],\"textSelect\":[32],\"customTextArea\":[32],\"calendarFormGroup\":[32],\"currentStep\":[32],\"showCalendar\":[32],\"showGiftText\":[32],\"currentLang\":[32],\"parentClass\":[32],\"errors\":[32],\"gift\":[32],\"selectedGiftTextOption\":[32],\"showTextArea\":[32],\"selectedImage\":[32],\"uploadedImage\":[32],\"selectedText\":[32],\"senderName\":[32],\"errorMessage\":[32],\"hasError\":[32],\"quantity\":[32],\"deliveryDate\":[32],\"timeZone\":[32],\"receiverName\":[32],\"receiverMobile\":[32],\"receiverCountryCode\":[32],\"receiverEmail\":[32],\"open\":[64],\"close\":[64],\"goToStep2\":[64]}],[4,\"salla-loyalty\",{\"prizePoints\":[8,\"prize-points\"],\"customerPoints\":[2,\"customer-points\"],\"prizeTitle\":[1,\"prize-title\"],\"allowEmail\":[4,\"allow-email\"],\"allowMobile\":[4,\"allow-mobile\"],\"requireEmail\":[4,\"require-email\"],\"guestMessage\":[1,\"guest-message\"],\"loyaltyProgram\":[32],\"buttonLoading\":[32],\"selectedItem\":[32],\"askConfirmation\":[32],\"is_loggedin\":[32],\"hasError\":[32],\"errorMessage\":[32],\"translationLoaded\":[32],\"open\":[64],\"close\":[64],\"resetExchange\":[64],\"exchangeLoyaltyPoint\":[64]}],[4,\"salla-product-size-guide\",{\"guides\":[32],\"productId\":[32],\"placeholder_title\":[32],\"placeholder_description\":[32],\"modal_title\":[32],\"hasError\":[32],\"open\":[64],\"close\":[64]}],[0,\"salla-rating-modal\",{\"orderId\":[2,\"order-id\"],\"order\":[32],\"hasError\":[32],\"errorMessage\":[32],\"translationLoaded\":[32],\"open\":[64],\"close\":[64]}],[0,\"salla-localization-modal\",{\"language\":[1537],\"currency\":[1537],\"translationLoaded\":[32],\"languages\":[32],\"currencies\":[32],\"hasError\":[32],\"errorMessage\":[32],\"open\":[64],\"close\":[64],\"submit\":[64]}],[4,\"salla-login-modal\",{\"isEmailAllowed\":[1028,\"is-email-allowed\"],\"isMobileAllowed\":[1028,\"is-mobile-allowed\"],\"isEmailRequired\":[1028,\"is-email-required\"],\"supportWebAuth\":[516,\"support-web-auth\"],\"currentTabName\":[32],\"regType\":[32],\"translationLoaded\":[32],\"title\":[32],\"emailErrorMsg\":[32],\"firstNameErrorMsg\":[32],\"lastNameErrorMsg\":[32],\"open\":[64]},[[8,\"verified\",\"onVerified\"]]],[0,\"salla-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-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-product-availability\",{\"channels\":[1],\"productId\":[2,\"product-id\"],\"isSubscribed\":[1028,\"is-subscribed\"],\"translationLoaded\":[32],\"title_\":[32],\"isVisitorSubscribed\":[32]}],[4,\"salla-verify\",{\"display\":[1],\"type\":[1025],\"autoReload\":[4,\"auto-reload\"],\"supportWebAuth\":[4,\"support-web-auth\"],\"translationLoaded\":[32],\"title\":[32],\"resendAfter\":[32],\"isProfileVerify\":[32],\"getCode\":[64],\"open\":[64]}],[0,\"salla-datetime-picker\",{\"value\":[1025],\"placeholder\":[1],\"allowInput\":[4,\"allow-input\"],\"allowInvalidPreload\":[4,\"allow-invalid-preload\"],\"altFormat\":[1,\"alt-format\"],\"altInput\":[4,\"alt-input\"],\"altInputClass\":[1,\"alt-input-class\"],\"appendTo\":[16],\"ariaDateFormat\":[1,\"aria-date-format\"],\"autoFillDefaultTime\":[4,\"auto-fill-default-time\"],\"clickOpens\":[4,\"click-opens\"],\"closeOnSelect\":[4,\"close-on-select\"],\"conjunction\":[1],\"dateFormat\":[1,\"date-format\"],\"defaultDate\":[8,\"default-date\"],\"defaultHour\":[2,\"default-hour\"],\"defaultMinute\":[2,\"default-minute\"],\"defaultSeconds\":[2,\"default-seconds\"],\"disable\":[16],\"disableMobile\":[4,\"disable-mobile\"],\"enable\":[16],\"enableSeconds\":[4,\"enable-seconds\"],\"enableTime\":[4,\"enable-time\"],\"formatDate\":[16],\"hourIncrement\":[2,\"hour-increment\"],\"inline\":[4],\"locale\":[1],\"maxDate\":[8,\"max-date\"],\"maxTime\":[8,\"max-time\"],\"minDate\":[8,\"min-date\"],\"minTime\":[8,\"min-time\"],\"minuteIncrement\":[2,\"minute-increment\"],\"mode\":[1],\"monthSelectorType\":[1,\"month-selector-type\"],\"nextArrow\":[1,\"next-arrow\"],\"noCalendar\":[4,\"no-calendar\"],\"dateParser\":[16],\"position\":[1],\"positionElement\":[16],\"prevArrow\":[1,\"prev-arrow\"],\"shorthandCurrentMonth\":[4,\"shorthand-current-month\"],\"static\":[4],\"showMonths\":[2,\"show-months\"],\"time_24hr\":[4,\"time_-2-4hr\"],\"weekNumbers\":[4,\"week-numbers\"],\"wrap\":[4]}],[0,\"salla-file-upload\",{\"required\":[4],\"disabled\":[4],\"allowDrop\":[4,\"allow-drop\"],\"allowBrowse\":[4,\"allow-browse\"],\"allowPaste\":[4,\"allow-paste\"],\"allowMultiple\":[4,\"allow-multiple\"],\"allowReplace\":[4,\"allow-replace\"],\"allowRevert\":[4,\"allow-revert\"],\"allowRemove\":[4,\"allow-remove\"],\"allowProcess\":[4,\"allow-process\"],\"allowReorder\":[4,\"allow-reorder\"],\"storeAsFile\":[4,\"store-as-file\"],\"forceRevert\":[4,\"force-revert\"],\"maxFilesCount\":[2,\"max-files-count\"],\"maxParallelUploads\":[2,\"max-parallel-uploads\"],\"checkValidity\":[4,\"check-validity\"],\"itemInsertLocation\":[1,\"item-insert-location\"],\"itemInsertInterval\":[2,\"item-insert-interval\"],\"credits\":[4],\"dropOnPage\":[4,\"drop-on-page\"],\"dropOnElement\":[4,\"drop-on-element\"],\"dropValidation\":[4,\"drop-validation\"],\"ignoredFiles\":[16],\"serverConfig\":[1,\"server-config\"],\"instantUpload\":[4,\"instant-upload\"],\"chunkUploads\":[4,\"chunk-uploads\"],\"chunkForce\":[4,\"chunk-force\"],\"chunkSize\":[2,\"chunk-size\"],\"chunkRetryDelays\":[16],\"labelDecimalSeparator\":[1,\"label-decimal-separator\"],\"labelThousandsSeparator\":[1,\"label-thousands-separator\"],\"labelIdle\":[1,\"label-idle\"],\"labelInvalidField\":[1,\"label-invalid-field\"],\"labelFileWaitingForSize\":[1,\"label-file-waiting-for-size\"],\"labelFileSizeNotAvailable\":[1,\"label-file-size-not-available\"],\"labelFileLoading\":[1,\"label-file-loading\"],\"labelFileLoadError\":[1,\"label-file-load-error\"],\"labelFileProcessing\":[1,\"label-file-processing\"],\"labelFileProcessingComplete\":[1,\"label-file-processing-complete\"],\"labelFileProcessingAborted\":[1,\"label-file-processing-aborted\"],\"labelFileProcessingError\":[1,\"label-file-processing-error\"],\"labelFileProcessingRevertError\":[1,\"label-file-processing-revert-error\"],\"labelFileRemoveError\":[1,\"label-file-remove-error\"],\"labelTapToCancel\":[1,\"label-tap-to-cancel\"],\"labelTapToRetry\":[1,\"label-tap-to-retry\"],\"labelTapToUndo\":[1,\"label-tap-to-undo\"],\"labelButtonRemoveItem\":[1,\"label-button-remove-item\"],\"labelButtonAbortItemLoad\":[1,\"label-button-abort-item-load\"],\"labelButtonRetryItemLoad\":[1,\"label-button-retry-item-load\"],\"labelButtonAbortItemProcessing\":[1,\"label-button-abort-item-processing\"],\"labelButtonUndoItemProcessing\":[1,\"label-button-undo-item-processing\"],\"labelButtonRetryItemProcessing\":[1,\"label-button-retry-item-processing\"],\"labelButtonProcessItem\":[1,\"label-button-process-item\"],\"iconRemove\":[1,\"icon-remove\"],\"iconProcess\":[1,\"icon-process\"],\"iconRetry\":[1,\"icon-retry\"],\"iconUndo\":[1,\"icon-undo\"],\"pond\":[32],\"files\":[32],\"appendFile\":[64]}],[0,\"salla-rating-stars\",{\"name\":[1],\"size\":[1],\"value\":[2]}],[4,\"salla-swiper\",{\"loop\":[4],\"speed\":[2],\"itemPerView\":[8,\"item-per-view\"],\"spaceBetweenItems\":[2,\"space-between-items\"],\"currentIndex\":[32],\"isLastSlideItem\":[32],\"isFirstSlideItem\":[32]}],[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-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-scopes.cjs\",[[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],\"close\":[64],\"open\":[64],\"handleSubmit\":[64]}]]],[\"salla-add-product-button.cjs\",[[4,\"salla-add-product-button\",{\"channels\":[513],\"quantity\":[514],\"donatingAmount\":[514,\"donating-amount\"],\"productId\":[520,\"product-id\"],\"productStatus\":[513,\"product-status\"],\"productType\":[513,\"product-type\"]}]]],[\"salla-conditional-fields.cjs\",[[4,\"salla-conditional-fields\",null,[[0,\"change\",\"changeHandler\"]]]]],[\"salla-installment.cjs\",[[0,\"salla-installment\",{\"price\":[1],\"language\":[1],\"currency\":[1],\"tamaraIsActive\":[32],\"tabbyIsActive\":[32],\"spotiiIsActive\":[32]}]]],[\"salla-loyalty-prize-item.cjs\",[[0,\"salla-loyalty-prize-item\",{\"item\":[16]}]]],[\"salla-select.cjs\",[[0,\"salla-select\",{\"label\":[1],\"items\":[16],\"itemText\":[1,\"item-text\"],\"itemValue\":[1,\"item-value\"],\"itemDisabled\":[1,\"item-disabled\"],\"size\":[1],\"value\":[1032],\"autofocus\":[4],\"clearable\":[4],\"clearIcon\":[1,\"clear-icon\"],\"color\":[1],\"flat\":[4],\"disabled\":[4],\"loading\":[4],\"loadingColor\":[1,\"loading-color\"],\"hint\":[1],\"persistHint\":[4,\"persist-hint\"],\"placeholder\":[1],\"multiple\":[4],\"autocomplete\":[4],\"required\":[4],\"chips\":[4],\"shape\":[1],\"returnObject\":[4,\"return-object\"],\"hideDetail\":[4,\"hide-detail\"]}]]]]"), options);
|
|
80
|
+
return index.bootstrapLazy(JSON.parse("[[\"salla-button_32.cjs\",[[4,\"salla-gifting\",{\"productId\":[2,\"product-id\"],\"sectionTitle\":[32],\"sectionSubtitle\":[32],\"sectionBtnText\":[32],\"giftDetails\":[32],\"selectImageForYourGift\":[32],\"selectImageOrUpload\":[32],\"selectGiftMessage\":[32],\"giftCustomText\":[32],\"textId\":[32],\"incorrectGiftText\":[32],\"nextStep\":[32],\"senderNameLabel\":[32],\"receiverNameFieldLabel\":[32],\"receiverMobileFieldLabel\":[32],\"receiverEmailFieldLabel\":[32],\"emailPlaceholder\":[32],\"sendLater\":[32],\"selectSendDateAndTime\":[32],\"canNotEditOrderAfterSelectDate\":[32],\"sendGift\":[32],\"donationRequired\":[32],\"step1Elems\":[32],\"step2Elems\":[32],\"stepsWrapper\":[32],\"textArea\":[32],\"imageCover\":[32],\"textSelect\":[32],\"customTextArea\":[32],\"calendarFormGroup\":[32],\"currentStep\":[32],\"showCalendar\":[32],\"showGiftText\":[32],\"currentLang\":[32],\"parentClass\":[32],\"errors\":[32],\"gift\":[32],\"selectedGiftTextOption\":[32],\"showTextArea\":[32],\"selectedImage\":[32],\"uploadedImage\":[32],\"selectedText\":[32],\"senderName\":[32],\"errorMessage\":[32],\"hasError\":[32],\"quantity\":[32],\"deliveryDate\":[32],\"timeZone\":[32],\"receiverName\":[32],\"receiverMobile\":[32],\"receiverCountryCode\":[32],\"receiverEmail\":[32],\"open\":[64],\"close\":[64],\"goToStep2\":[64]}],[4,\"salla-loyalty\",{\"prizePoints\":[8,\"prize-points\"],\"customerPoints\":[2,\"customer-points\"],\"prizeTitle\":[1,\"prize-title\"],\"allowEmail\":[4,\"allow-email\"],\"allowMobile\":[4,\"allow-mobile\"],\"requireEmail\":[4,\"require-email\"],\"guestMessage\":[1,\"guest-message\"],\"loyaltyProgram\":[32],\"buttonLoading\":[32],\"selectedItem\":[32],\"askConfirmation\":[32],\"is_loggedin\":[32],\"hasError\":[32],\"errorMessage\":[32],\"translationLoaded\":[32],\"open\":[64],\"close\":[64],\"resetExchange\":[64],\"exchangeLoyaltyPoint\":[64]}],[4,\"salla-product-size-guide\",{\"guides\":[32],\"productId\":[32],\"placeholder_title\":[32],\"placeholder_description\":[32],\"modal_title\":[32],\"hasError\":[32],\"open\":[64],\"close\":[64]}],[0,\"salla-rating-modal\",{\"orderId\":[2,\"order-id\"],\"order\":[32],\"hasError\":[32],\"errorMessage\":[32],\"translationLoaded\":[32],\"open\":[64],\"close\":[64]}],[0,\"salla-localization-modal\",{\"language\":[1537],\"currency\":[1537],\"translationLoaded\":[32],\"languages\":[32],\"currencies\":[32],\"hasError\":[32],\"errorMessage\":[32],\"open\":[64],\"close\":[64],\"submit\":[64]}],[4,\"salla-login-modal\",{\"isEmailAllowed\":[1028,\"is-email-allowed\"],\"isMobileAllowed\":[1028,\"is-mobile-allowed\"],\"isEmailRequired\":[1028,\"is-email-required\"],\"supportWebAuth\":[516,\"support-web-auth\"],\"currentTabName\":[32],\"regType\":[32],\"translationLoaded\":[32],\"title\":[32],\"emailErrorMsg\":[32],\"firstNameErrorMsg\":[32],\"lastNameErrorMsg\":[32],\"open\":[64]},[[8,\"verified\",\"onVerified\"]]],[0,\"salla-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-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-sheet\",{\"position\":[1],\"width\":[2],\"height\":[2],\"sheetColor\":[1,\"sheet-color\"],\"persistent\":[4],\"flag\":[32],\"open\":[64],\"close\":[64]}],[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],\"logout\":[32],\"hello\":[32],\"first_name\":[32],\"last_name\":[32],\"avatar\":[32],\"badges\":[32],\"OrderUpdate\":[32]}],[0,\"salla-product-availability\",{\"channels\":[1],\"productId\":[2,\"product-id\"],\"isSubscribed\":[1028,\"is-subscribed\"],\"translationLoaded\":[32],\"title_\":[32],\"isVisitorSubscribed\":[32]}],[4,\"salla-verify\",{\"display\":[1],\"type\":[1025],\"autoReload\":[4,\"auto-reload\"],\"supportWebAuth\":[4,\"support-web-auth\"],\"translationLoaded\":[32],\"title\":[32],\"resendAfter\":[32],\"isProfileVerify\":[32],\"getCode\":[64],\"open\":[64]}],[0,\"salla-datetime-picker\",{\"value\":[1025],\"placeholder\":[1],\"allowInput\":[4,\"allow-input\"],\"allowInvalidPreload\":[4,\"allow-invalid-preload\"],\"altFormat\":[1,\"alt-format\"],\"altInput\":[4,\"alt-input\"],\"altInputClass\":[1,\"alt-input-class\"],\"appendTo\":[16],\"ariaDateFormat\":[1,\"aria-date-format\"],\"autoFillDefaultTime\":[4,\"auto-fill-default-time\"],\"clickOpens\":[4,\"click-opens\"],\"closeOnSelect\":[4,\"close-on-select\"],\"conjunction\":[1],\"dateFormat\":[1,\"date-format\"],\"defaultDate\":[8,\"default-date\"],\"defaultHour\":[2,\"default-hour\"],\"defaultMinute\":[2,\"default-minute\"],\"defaultSeconds\":[2,\"default-seconds\"],\"disable\":[16],\"disableMobile\":[4,\"disable-mobile\"],\"enable\":[16],\"enableSeconds\":[4,\"enable-seconds\"],\"enableTime\":[4,\"enable-time\"],\"formatDate\":[16],\"hourIncrement\":[2,\"hour-increment\"],\"inline\":[4],\"locale\":[1],\"maxDate\":[8,\"max-date\"],\"maxTime\":[8,\"max-time\"],\"minDate\":[8,\"min-date\"],\"minTime\":[8,\"min-time\"],\"minuteIncrement\":[2,\"minute-increment\"],\"mode\":[1],\"monthSelectorType\":[1,\"month-selector-type\"],\"nextArrow\":[1,\"next-arrow\"],\"noCalendar\":[4,\"no-calendar\"],\"dateParser\":[16],\"position\":[1],\"positionElement\":[16],\"prevArrow\":[1,\"prev-arrow\"],\"shorthandCurrentMonth\":[4,\"shorthand-current-month\"],\"static\":[4],\"showMonths\":[2,\"show-months\"],\"time_24hr\":[4,\"time_-2-4hr\"],\"weekNumbers\":[4,\"week-numbers\"],\"wrap\":[4]}],[0,\"salla-file-upload\",{\"required\":[4],\"disabled\":[4],\"allowDrop\":[4,\"allow-drop\"],\"allowBrowse\":[4,\"allow-browse\"],\"allowPaste\":[4,\"allow-paste\"],\"allowMultiple\":[4,\"allow-multiple\"],\"allowReplace\":[4,\"allow-replace\"],\"allowRevert\":[4,\"allow-revert\"],\"allowRemove\":[4,\"allow-remove\"],\"allowProcess\":[4,\"allow-process\"],\"allowReorder\":[4,\"allow-reorder\"],\"storeAsFile\":[4,\"store-as-file\"],\"forceRevert\":[4,\"force-revert\"],\"maxFilesCount\":[2,\"max-files-count\"],\"maxParallelUploads\":[2,\"max-parallel-uploads\"],\"checkValidity\":[4,\"check-validity\"],\"itemInsertLocation\":[1,\"item-insert-location\"],\"itemInsertInterval\":[2,\"item-insert-interval\"],\"credits\":[4],\"dropOnPage\":[4,\"drop-on-page\"],\"dropOnElement\":[4,\"drop-on-element\"],\"dropValidation\":[4,\"drop-validation\"],\"ignoredFiles\":[16],\"serverConfig\":[1,\"server-config\"],\"instantUpload\":[4,\"instant-upload\"],\"chunkUploads\":[4,\"chunk-uploads\"],\"chunkForce\":[4,\"chunk-force\"],\"chunkSize\":[2,\"chunk-size\"],\"chunkRetryDelays\":[16],\"labelDecimalSeparator\":[1,\"label-decimal-separator\"],\"labelThousandsSeparator\":[1,\"label-thousands-separator\"],\"labelIdle\":[1,\"label-idle\"],\"labelInvalidField\":[1,\"label-invalid-field\"],\"labelFileWaitingForSize\":[1,\"label-file-waiting-for-size\"],\"labelFileSizeNotAvailable\":[1,\"label-file-size-not-available\"],\"labelFileLoading\":[1,\"label-file-loading\"],\"labelFileLoadError\":[1,\"label-file-load-error\"],\"labelFileProcessing\":[1,\"label-file-processing\"],\"labelFileProcessingComplete\":[1,\"label-file-processing-complete\"],\"labelFileProcessingAborted\":[1,\"label-file-processing-aborted\"],\"labelFileProcessingError\":[1,\"label-file-processing-error\"],\"labelFileProcessingRevertError\":[1,\"label-file-processing-revert-error\"],\"labelFileRemoveError\":[1,\"label-file-remove-error\"],\"labelTapToCancel\":[1,\"label-tap-to-cancel\"],\"labelTapToRetry\":[1,\"label-tap-to-retry\"],\"labelTapToUndo\":[1,\"label-tap-to-undo\"],\"labelButtonRemoveItem\":[1,\"label-button-remove-item\"],\"labelButtonAbortItemLoad\":[1,\"label-button-abort-item-load\"],\"labelButtonRetryItemLoad\":[1,\"label-button-retry-item-load\"],\"labelButtonAbortItemProcessing\":[1,\"label-button-abort-item-processing\"],\"labelButtonUndoItemProcessing\":[1,\"label-button-undo-item-processing\"],\"labelButtonRetryItemProcessing\":[1,\"label-button-retry-item-processing\"],\"labelButtonProcessItem\":[1,\"label-button-process-item\"],\"iconRemove\":[1,\"icon-remove\"],\"iconProcess\":[1,\"icon-process\"],\"iconRetry\":[1,\"icon-retry\"],\"iconUndo\":[1,\"icon-undo\"],\"pond\":[32],\"files\":[32],\"appendFile\":[64]}],[0,\"salla-rating-stars\",{\"name\":[1],\"size\":[1],\"value\":[2]}],[4,\"salla-swiper\",{\"loop\":[4],\"speed\":[2],\"itemPerView\":[8,\"item-per-view\"],\"spaceBetweenItems\":[2,\"space-between-items\"],\"currentIndex\":[32],\"isLastSlideItem\":[32],\"isFirstSlideItem\":[32]}],[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-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\"]]],[0,\"salla-loading\",{\"size\":[8],\"width\":[8],\"color\":[1],\"bgColor\":[1,\"bg-color\"]}],[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]}]]],[\"salla-scopes.cjs\",[[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],\"close\":[64],\"open\":[64],\"handleSubmit\":[64]}]]],[\"salla-add-product-button.cjs\",[[4,\"salla-add-product-button\",{\"channels\":[513],\"quantity\":[514],\"donatingAmount\":[514,\"donating-amount\"],\"productId\":[520,\"product-id\"],\"productStatus\":[513,\"product-status\"],\"productType\":[513,\"product-type\"]}]]],[\"salla-conditional-fields.cjs\",[[4,\"salla-conditional-fields\",null,[[0,\"change\",\"changeHandler\"]]]]],[\"salla-installment.cjs\",[[0,\"salla-installment\",{\"price\":[1],\"language\":[1],\"currency\":[1],\"tamaraIsActive\":[32],\"tabbyIsActive\":[32],\"spotiiIsActive\":[32]}]]],[\"salla-loyalty-prize-item.cjs\",[[0,\"salla-loyalty-prize-item\",{\"item\":[16]}]]],[\"salla-select.cjs\",[[0,\"salla-select\",{\"label\":[1],\"items\":[16],\"itemText\":[1,\"item-text\"],\"itemValue\":[1,\"item-value\"],\"itemDisabled\":[1,\"item-disabled\"],\"size\":[1],\"value\":[1032],\"autofocus\":[4],\"clearable\":[4],\"clearIcon\":[1,\"clear-icon\"],\"color\":[1],\"flat\":[4],\"disabled\":[4],\"loading\":[4],\"loadingColor\":[1,\"loading-color\"],\"hint\":[1],\"persistHint\":[4,\"persist-hint\"],\"placeholder\":[1],\"multiple\":[4],\"autocomplete\":[4],\"required\":[4],\"chips\":[4],\"shape\":[1],\"returnObject\":[4,\"return-object\"],\"hideDetail\":[4,\"hide-detail\"]}]]]]"), options);
|
|
81
81
|
});
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"./components/salla-scopes/salla-scopes.js",
|
|
28
28
|
"./components/salla-search/salla-search.js",
|
|
29
29
|
"./components/salla-select/salla-select.js",
|
|
30
|
+
"./components/salla-sheet/salla-sheet.js",
|
|
30
31
|
"./components/salla-skeleton/salla-skeleton.js",
|
|
31
32
|
"./components/salla-social-share/salla-social-share.js",
|
|
32
33
|
"./components/salla-swiper/salla-swiper.js",
|
|
@@ -34,6 +35,7 @@
|
|
|
34
35
|
"./components/salla-tabs/salla-tab-header.js",
|
|
35
36
|
"./components/salla-tabs/salla-tabs.js",
|
|
36
37
|
"./components/salla-tel-input/salla-tel-input.js",
|
|
38
|
+
"./components/salla-user-menu/salla-user-menu.js",
|
|
37
39
|
"./components/salla-user-settings/salla-user-settings.js",
|
|
38
40
|
"./components/salla-verify/salla-verify.js"
|
|
39
41
|
],
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.s-sheet-overlay {
|
|
2
|
+
position: fixed;
|
|
3
|
+
top: 0px;
|
|
4
|
+
left: 0px;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
background-color: #00000080;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: flex-end;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
display: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.s-sheet-overlay.active {
|
|
15
|
+
display: flex;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.s-sheet-container {
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 40%;
|
|
21
|
+
background-color: #ffffff;
|
|
22
|
+
transform: translateY(100%);
|
|
23
|
+
transition: transform 0.4s ease-in-out;
|
|
24
|
+
}
|