@salla.sa/twilight-components 1.0.63 → 1.0.64
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/{Helper-98cc9f18.js → Helper-8ae6a805.js} +3 -0
- package/dist/cjs/{index-e729d94c.js → index-c0f5bb97.js} +96 -58
- package/dist/cjs/index.cjs.js +3 -0
- package/dist/cjs/loader.cjs.js +6 -3
- package/dist/cjs/salla-branches.cjs.entry.js +5 -2
- package/dist/cjs/salla-button.cjs.entry.js +4 -1
- package/dist/cjs/salla-conditional-fields.cjs.entry.js +4 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +5 -2
- package/dist/cjs/salla-installment.cjs.entry.js +4 -1
- package/dist/cjs/salla-localization-modal.cjs.entry.js +5 -2
- package/dist/cjs/salla-login-modal.cjs.entry.js +6 -3
- package/dist/cjs/salla-modal_2.cjs.entry.js +18 -15
- package/dist/cjs/salla-offer-modal.cjs.entry.js +6 -4
- package/dist/cjs/salla-product-availability.cjs.entry.js +6 -3
- package/dist/cjs/salla-quantity-input.cjs.entry.js +4 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +6 -4
- package/dist/cjs/salla-rating-stars.cjs.entry.js +5 -2
- package/dist/cjs/salla-tel-input.cjs.entry.js +5 -2
- package/dist/cjs/salla-verify-modal.cjs.entry.js +6 -3
- package/dist/cjs/twilight-components.cjs.js +6 -3
- package/dist/collection/Helpers/Helper.js +3 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/salla-branches/salla-branches.js +4 -1
- package/dist/collection/components/salla-button/salla-button.js +5 -2
- package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +3 -0
- package/dist/collection/components/salla-infinite-scroll/salla-infinite-scroll.js +3 -0
- package/dist/collection/components/salla-installment/salla-installment.js +3 -0
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +3 -0
- package/dist/collection/components/salla-login-modal/salla-login-modal.js +4 -1
- package/dist/collection/components/salla-modal/salla-modal.js +17 -14
- package/dist/collection/components/salla-offer-modal/offer-schema.js +3 -0
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +8 -6
- package/dist/collection/components/salla-product-availability/salla-product-availability.js +4 -1
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +3 -0
- package/dist/collection/components/salla-rating-modal/order-feedback-response.js +3 -0
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +4 -2
- package/dist/collection/components/salla-rating-stars/salla-rating-stars.js +3 -0
- package/dist/collection/components/salla-search/salla-search.css +12 -2
- package/dist/collection/components/salla-search/salla-search.js +7 -4
- package/dist/collection/components/salla-search/search-response.js +3 -0
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +3 -0
- package/dist/collection/components/salla-verify-modal/salla-verify-modal.js +6 -3
- package/dist/collection/index.js +3 -0
- package/dist/collection/interfaces/colors.js +3 -0
- package/dist/collection/interfaces/index.js +3 -0
- package/dist/collection/interfaces/ratio.js +3 -0
- package/dist/components/Helper.js +3 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +3 -0
- package/dist/components/salla-branches.d.ts +4 -0
- package/dist/components/salla-branches.js +47 -6
- package/dist/components/salla-button.d.ts +4 -0
- package/dist/components/salla-button.js +7 -116
- package/dist/components/salla-button2.js +149 -0
- package/dist/components/salla-conditional-fields.d.ts +4 -0
- package/dist/components/salla-conditional-fields.js +23 -5
- package/dist/components/salla-infinite-scroll.d.ts +4 -0
- package/dist/components/salla-infinite-scroll.js +31 -5
- package/dist/components/salla-installment.d.ts +4 -0
- package/dist/components/salla-installment.js +30 -5
- package/dist/components/salla-localization-modal.d.ts +4 -0
- package/dist/components/salla-localization-modal.js +46 -5
- package/dist/components/salla-login-modal.d.ts +4 -0
- package/dist/components/salla-login-modal.js +67 -6
- package/dist/components/salla-modal.d.ts +4 -0
- package/dist/components/salla-modal.js +7 -150
- package/dist/components/salla-modal2.js +185 -0
- package/dist/components/salla-offer-modal.d.ts +4 -0
- package/dist/components/salla-offer-modal.js +46 -7
- package/dist/components/salla-product-availability.d.ts +4 -0
- package/dist/components/salla-product-availability.js +54 -6
- package/dist/components/salla-quantity-input.d.ts +4 -0
- package/dist/components/salla-quantity-input.js +25 -5
- package/dist/components/salla-rating-modal.d.ts +4 -0
- package/dist/components/salla-rating-modal.js +47 -7
- package/dist/components/salla-rating-stars.d.ts +4 -0
- package/dist/components/salla-rating-stars.js +7 -79
- package/dist/components/salla-rating-stars2.js +100 -0
- package/dist/components/salla-search.d.ts +4 -0
- package/dist/components/salla-search.js +41 -10
- package/dist/components/salla-tel-input.d.ts +4 -0
- package/dist/components/salla-tel-input.js +6 -1474
- package/dist/components/salla-tel-input2.js +1506 -0
- package/dist/components/salla-verify-modal.d.ts +4 -0
- package/dist/components/salla-verify-modal.js +7 -145
- package/dist/components/salla-verify-modal2.js +182 -0
- package/dist/esm/{Helper-7162a06c.js → Helper-e1d414a5.js} +3 -0
- package/dist/esm/{index-8c9eabea.js → index-a1271335.js} +96 -58
- package/dist/esm/index.js +3 -1
- package/dist/esm/loader.js +6 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/salla-branches.entry.js +5 -2
- package/dist/esm/salla-button.entry.js +4 -1
- package/dist/esm/salla-conditional-fields.entry.js +4 -1
- package/dist/esm/salla-infinite-scroll.entry.js +5 -2
- package/dist/esm/salla-installment.entry.js +4 -1
- package/dist/esm/salla-localization-modal.entry.js +5 -2
- package/dist/esm/salla-login-modal.entry.js +6 -3
- package/dist/esm/salla-modal_2.entry.js +18 -15
- package/dist/esm/salla-offer-modal.entry.js +6 -4
- package/dist/esm/salla-product-availability.entry.js +6 -3
- package/dist/esm/salla-quantity-input.entry.js +4 -1
- package/dist/esm/salla-rating-modal.entry.js +6 -4
- package/dist/esm/salla-rating-stars.entry.js +5 -2
- package/dist/esm/salla-tel-input.entry.js +5 -2
- package/dist/esm/salla-verify-modal.entry.js +6 -3
- package/dist/esm/twilight-components.js +6 -3
- package/dist/twilight-components/index.esm.js +3 -0
- package/dist/twilight-components/{p-5a8f3684.entry.js → p-18b36fe0.entry.js} +4 -1
- package/dist/twilight-components/{p-75ff6410.entry.js → p-191c7430.entry.js} +4 -1
- package/dist/twilight-components/{p-0c3cea73.entry.js → p-2aaea044.entry.js} +4 -1
- package/dist/twilight-components/{p-40df26b0.entry.js → p-4679b0f7.entry.js} +4 -1
- package/dist/twilight-components/{p-11bf3444.entry.js → p-51ef8f42.entry.js} +4 -1
- package/dist/twilight-components/{p-29fdfcd3.entry.js → p-676beef2.entry.js} +4 -1
- package/dist/twilight-components/{p-b79f8eca.entry.js → p-69b8ebc1.entry.js} +4 -1
- package/dist/twilight-components/{p-c24a274d.entry.js → p-81dedc75.entry.js} +4 -1
- package/dist/twilight-components/{p-791e7cb1.entry.js → p-87e0df12.entry.js} +4 -1
- package/dist/twilight-components/p-8ee2e4db.js +4 -0
- package/dist/twilight-components/{p-7f8ba787.entry.js → p-976b7d27.entry.js} +4 -1
- package/dist/twilight-components/{p-ed1c00c5.js → p-9d2ca9c8.js} +3 -0
- package/dist/twilight-components/{p-9a7943e6.entry.js → p-9eaeceb7.entry.js} +4 -1
- package/dist/twilight-components/{p-2c88c8a0.entry.js → p-a6a4a2bd.entry.js} +4 -1
- package/dist/twilight-components/p-ab83b063.entry.js +4 -0
- package/dist/twilight-components/{p-fd6c850b.entry.js → p-c3b196f3.entry.js} +4 -1
- package/dist/twilight-components/p-fa55e3ea.entry.js +4 -0
- package/dist/twilight-components/twilight-components.esm.js +4 -1
- package/dist/types/components/salla-modal/salla-modal.d.ts +4 -4
- package/dist/types/components/salla-search/salla-search.d.ts +2 -2
- package/dist/types/components/salla-search/search-response.d.ts +42 -16
- package/dist/types/components.d.ts +3 -3
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/loader/cdn.js +3 -1
- package/loader/index.cjs.js +3 -1
- package/loader/index.d.ts +0 -1
- package/loader/index.es2017.js +3 -1
- package/loader/index.js +3 -1
- package/package.json +1 -1
- package/dist/twilight-components/p-2e6ee2bc.js +0 -1
- package/dist/twilight-components/p-c1bad97f.entry.js +0 -1
- package/dist/twilight-components/p-da60f8ae.entry.js +0 -1
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
1
4
|
'use strict';
|
|
2
5
|
|
|
3
6
|
function _interopNamespace(e) {
|
|
@@ -370,7 +373,6 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
370
373
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
371
374
|
if (memberName === 'list') {
|
|
372
375
|
isProp = false;
|
|
373
|
-
// tslint:disable-next-line: triple-equals
|
|
374
376
|
}
|
|
375
377
|
else if (oldValue == null || elm[memberName] != n) {
|
|
376
378
|
elm[memberName] = n;
|
|
@@ -1349,6 +1351,29 @@ const initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
|
1349
1351
|
}
|
|
1350
1352
|
}
|
|
1351
1353
|
};
|
|
1354
|
+
/**
|
|
1355
|
+
* Parse a new property value for a given property type.
|
|
1356
|
+
*
|
|
1357
|
+
* While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
|
|
1358
|
+
* it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
|
|
1359
|
+
* 1. `any`, the type given to `propValue` in the function signature
|
|
1360
|
+
* 2. the type stored from `propType`.
|
|
1361
|
+
*
|
|
1362
|
+
* This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
|
|
1363
|
+
*
|
|
1364
|
+
* Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
|
|
1365
|
+
* a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
|
|
1366
|
+
* based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
|
|
1367
|
+
* ```tsx
|
|
1368
|
+
* <my-cmp prop-val={0}></my-cmp>
|
|
1369
|
+
* ```
|
|
1370
|
+
*
|
|
1371
|
+
* HTML prop values on the other hand, will always a string
|
|
1372
|
+
*
|
|
1373
|
+
* @param propValue the new value to coerce to some type
|
|
1374
|
+
* @param propType the type of the prop, expressed as a binary number
|
|
1375
|
+
* @returns the parsed/coerced value
|
|
1376
|
+
*/
|
|
1352
1377
|
const parsePropertyValue = (propValue, propType) => {
|
|
1353
1378
|
// ensure this value is of the correct prop type
|
|
1354
1379
|
if (propValue != null && !isComplexType(propValue)) {
|
|
@@ -1382,7 +1407,10 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1382
1407
|
const flags = hostRef.$flags$;
|
|
1383
1408
|
const instance = hostRef.$lazyInstance$ ;
|
|
1384
1409
|
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
1385
|
-
|
|
1410
|
+
// explicitly check for NaN on both sides, as `NaN === NaN` is always false
|
|
1411
|
+
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1412
|
+
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1413
|
+
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && didValueChange) {
|
|
1386
1414
|
// gadzooks! the property's value has changed!!
|
|
1387
1415
|
// set our new value!
|
|
1388
1416
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
@@ -1454,14 +1482,14 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1454
1482
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1455
1483
|
plt.jmp(() => {
|
|
1456
1484
|
const propName = attrNameToPropName.get(attrName);
|
|
1457
|
-
// In a
|
|
1485
|
+
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
|
1458
1486
|
// in the case where an attribute was set inline.
|
|
1459
1487
|
// ```html
|
|
1460
1488
|
// <my-component some-attribute="some-value"></my-component>
|
|
1461
1489
|
// ```
|
|
1462
1490
|
//
|
|
1463
|
-
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
|
1464
|
-
// changes it before it has been upgraded as shown below:
|
|
1491
|
+
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
|
1492
|
+
// programmatically changes it before it has been upgraded as shown below:
|
|
1465
1493
|
//
|
|
1466
1494
|
// ```html
|
|
1467
1495
|
// <!-- this component has _not_ been upgraded yet -->
|
|
@@ -1471,13 +1499,13 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1471
1499
|
// el = document.querySelector("#test");
|
|
1472
1500
|
// el.someAttribute = "another-value";
|
|
1473
1501
|
// // upgrade component
|
|
1474
|
-
//
|
|
1502
|
+
// customElements.define('my-component', MyComponent);
|
|
1475
1503
|
// </script>
|
|
1476
1504
|
// ```
|
|
1477
1505
|
// In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1478
1506
|
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1479
1507
|
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1480
|
-
// the connectedCallback attempts to unshadow it will use "some-value" as the
|
|
1508
|
+
// the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
|
|
1481
1509
|
//
|
|
1482
1510
|
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
|
|
1483
1511
|
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
@@ -1491,6 +1519,14 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1491
1519
|
newValue = this[propName];
|
|
1492
1520
|
delete this[propName];
|
|
1493
1521
|
}
|
|
1522
|
+
else if (prototype.hasOwnProperty(propName) &&
|
|
1523
|
+
typeof this[propName] === 'number' &&
|
|
1524
|
+
this[propName] == newValue) {
|
|
1525
|
+
// if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
|
|
1526
|
+
// APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
|
|
1527
|
+
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
1528
|
+
return;
|
|
1529
|
+
}
|
|
1494
1530
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1495
1531
|
});
|
|
1496
1532
|
};
|
|
@@ -1576,7 +1612,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1576
1612
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1577
1613
|
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1578
1614
|
if (ancestorComponent && ancestorComponent['s-rc']) {
|
|
1579
|
-
// this is the
|
|
1615
|
+
// this is the initial load and this component it has an ancestor component
|
|
1580
1616
|
// but the ancestor component has NOT fired its will update lifecycle yet
|
|
1581
1617
|
// so let's just cool our jets and wait for the ancestor to continue first
|
|
1582
1618
|
// this will get fired off when the ancestor component
|
|
@@ -1694,60 +1730,62 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1694
1730
|
// async queue. This will improve the first input delay
|
|
1695
1731
|
plt.$flags$ |= 2 /* appLoaded */;
|
|
1696
1732
|
}
|
|
1697
|
-
lazyBundles.map((lazyBundle) =>
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
connectedCallback() {
|
|
1726
|
-
if (appLoadFallback) {
|
|
1727
|
-
clearTimeout(appLoadFallback);
|
|
1728
|
-
appLoadFallback = null;
|
|
1733
|
+
lazyBundles.map((lazyBundle) => {
|
|
1734
|
+
lazyBundle[1].map((compactMeta) => {
|
|
1735
|
+
const cmpMeta = {
|
|
1736
|
+
$flags$: compactMeta[0],
|
|
1737
|
+
$tagName$: compactMeta[1],
|
|
1738
|
+
$members$: compactMeta[2],
|
|
1739
|
+
$listeners$: compactMeta[3],
|
|
1740
|
+
};
|
|
1741
|
+
{
|
|
1742
|
+
cmpMeta.$members$ = compactMeta[2];
|
|
1743
|
+
}
|
|
1744
|
+
{
|
|
1745
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
|
1746
|
+
}
|
|
1747
|
+
{
|
|
1748
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
1749
|
+
}
|
|
1750
|
+
{
|
|
1751
|
+
cmpMeta.$watchers$ = {};
|
|
1752
|
+
}
|
|
1753
|
+
const tagName = cmpMeta.$tagName$;
|
|
1754
|
+
const HostElement = class extends HTMLElement {
|
|
1755
|
+
// StencilLazyHost
|
|
1756
|
+
constructor(self) {
|
|
1757
|
+
// @ts-ignore
|
|
1758
|
+
super(self);
|
|
1759
|
+
self = this;
|
|
1760
|
+
registerHost(self, cmpMeta);
|
|
1729
1761
|
}
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1762
|
+
connectedCallback() {
|
|
1763
|
+
if (appLoadFallback) {
|
|
1764
|
+
clearTimeout(appLoadFallback);
|
|
1765
|
+
appLoadFallback = null;
|
|
1766
|
+
}
|
|
1767
|
+
if (isBootstrapping) {
|
|
1768
|
+
// connectedCallback will be processed once all components have been registered
|
|
1769
|
+
deferredConnectedCallbacks.push(this);
|
|
1770
|
+
}
|
|
1771
|
+
else {
|
|
1772
|
+
plt.jmp(() => connectedCallback(this));
|
|
1773
|
+
}
|
|
1733
1774
|
}
|
|
1734
|
-
|
|
1735
|
-
plt.jmp(() =>
|
|
1775
|
+
disconnectedCallback() {
|
|
1776
|
+
plt.jmp(() => disconnectedCallback(this));
|
|
1736
1777
|
}
|
|
1778
|
+
componentOnReady() {
|
|
1779
|
+
return getHostRef(this).$onReadyPromise$;
|
|
1780
|
+
}
|
|
1781
|
+
};
|
|
1782
|
+
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1783
|
+
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1784
|
+
cmpTags.push(tagName);
|
|
1785
|
+
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1737
1786
|
}
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
}
|
|
1741
|
-
componentOnReady() {
|
|
1742
|
-
return getHostRef(this).$onReadyPromise$;
|
|
1743
|
-
}
|
|
1744
|
-
};
|
|
1745
|
-
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1746
|
-
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1747
|
-
cmpTags.push(tagName);
|
|
1748
|
-
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1749
|
-
}
|
|
1750
|
-
}));
|
|
1787
|
+
});
|
|
1788
|
+
});
|
|
1751
1789
|
{
|
|
1752
1790
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1753
1791
|
visibilityStyle.setAttribute('data-styles', '');
|
package/dist/cjs/index.cjs.js
CHANGED
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
1
4
|
'use strict';
|
|
2
5
|
|
|
3
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
7
|
|
|
5
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-c0f5bb97.js');
|
|
6
9
|
|
|
7
10
|
/*
|
|
8
|
-
Stencil Client Patch Esm v2.
|
|
11
|
+
Stencil Client Patch Esm v2.15.0 | MIT Licensed | https://stenciljs.com
|
|
9
12
|
*/
|
|
10
13
|
const patchEsm = () => {
|
|
11
14
|
return index.promiseResolve();
|
|
@@ -14,7 +17,7 @@ const patchEsm = () => {
|
|
|
14
17
|
const defineCustomElements = (win, options) => {
|
|
15
18
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
19
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["salla-modal_2.cjs",[[0,"salla-search",{"inline":[4],"oval":[4],"height":[2],"results":[32],"placeholder":[32],"noResultsText":[32]},[[0,"modalOpened","onModalOpen"],[0,"modalClosed","onModalClose"]]],[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"],"
|
|
20
|
+
return index.bootstrapLazy([["salla-modal_2.cjs",[[0,"salla-search",{"inline":[4],"oval":[4],"height":[2],"results":[32],"placeholder":[32],"noResultsText":[32]},[[0,"modalOpened","onModalOpen"],[0,"modalClosed","onModalClose"]]],[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],"show":[64],"hide":[64],"setTitle":[64],"loading":[64],"stopLoading":[64]}]]],["salla-login-modal.cjs",[[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],"show":[64]},[[0,"verified","onVerified"]]]]],["salla-product-availability.cjs",[[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]}]]],["salla-rating-modal.cjs",[[0,"salla-rating-modal",{"orderId":[2,"order-id"],"order":[32],"show":[64],"hide":[64]}]]],["salla-branches.cjs",[[4,"salla-branches",{"position":[1],"displayAs":[1,"display-as"],"browseProductsFrom":[1,"browse-products-from"],"branches":[16],"current":[1026],"open":[32],"selected":[32],"isOpenedBefore":[32],"show":[64],"hide":[64]}]]],["salla-localization-modal.cjs",[[0,"salla-localization-modal",{"language":[1537],"currency":[1537],"languages":[32],"currencies":[32],"languagesTitle":[32],"currenciesTitle":[32],"isLoading":[32],"show":[64],"hide":[64],"submit":[64]}]]],["salla-offer-modal.cjs",[[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],"show":[64],"showOffer":[64]}]]],["salla-conditional-fields.cjs",[[4,"salla-conditional-fields",null,[[0,"change","changeHandler"]]]]],["salla-infinite-scroll.cjs",[[4,"salla-infinite-scroll",{"nextPage":[1,"next-page"],"nextPageAutoload":[1028,"next-page-autoload"],"container":[1],"item":[1],"loadMore":[32],"noMore":[32],"failedToLoad":[32]}]]],["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]}]]],["salla-button.cjs",[[4,"salla-button",{"shape":[513],"color":[513],"fill":[513],"size":[513],"width":[513],"loading":[516],"disabled":[516],"loaderPosition":[1,"loader-position"],"wide":[4],"href":[1],"load":[64],"stop":[64],"setText":[64],"disable":[64],"enable":[64]}]]],["salla-verify-modal.cjs",[[4,"salla-verify-modal",{"withoutModal":[4,"without-modal"],"url":[513],"by":[1],"autoReload":[4,"auto-reload"],"title":[32],"getCode":[64],"show":[64]}]]],["salla-rating-stars.cjs",[[0,"salla-rating-stars",{"name":[1],"size":[1],"value":[2]}]]],["salla-tel-input.cjs",[[0,"salla-tel-input",{"mobile":[1025],"countryCode":[1025,"country-code"],"countryKey":[1025,"country-key"],"mobileRequired":[32],"countryCodeLabel":[32],"mobileLabel":[32],"tooShort":[32],"tooLong":[32],"invalidCountryCode":[32],"invalidNumber":[32],"errorMap":[32],"getValues":[64],"isValid":[64]}]]]], options);
|
|
18
21
|
});
|
|
19
22
|
};
|
|
20
23
|
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
1
4
|
'use strict';
|
|
2
5
|
|
|
3
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
7
|
|
|
5
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-c0f5bb97.js');
|
|
6
9
|
|
|
7
10
|
const sallaBranchesCss = "";
|
|
8
11
|
|
|
@@ -62,7 +65,7 @@ const SallaBranches = class {
|
|
|
62
65
|
}, 300);
|
|
63
66
|
}
|
|
64
67
|
render() {
|
|
65
|
-
return (index.h("salla-modal", { icon: "sicon-store-alt", title: "\u0641\u0631\u0639 \u0627\u0644\u0631\u064A\u0627\u0636", "sub-title": "\u0623\u0646\u062A \u0627\u0644\u0622\u0646 \u062A\u062A\u0635\u0641\u062D \u0627\u0644\u0645\u062A\u062C\u0631 \u0645\u0646", "sub-title-first": true, "is-closable": !this.isOpenedBefore && this.displayAs == 'popup' ? 'false' : 'true', ref: modal => this.modal = modal, width: "sm", id: "s-branches-modal", class: "s-hidden" }, index.h("h4", { class: "s-branches-title" }, this.formTitle()), this.branches.length <= 5 ?
|
|
68
|
+
return (index.h("salla-modal", { icon: "sicon-store-alt", "modal-title": "\u0641\u0631\u0639 \u0627\u0644\u0631\u064A\u0627\u0636", "sub-title": "\u0623\u0646\u062A \u0627\u0644\u0622\u0646 \u062A\u062A\u0635\u0641\u062D \u0627\u0644\u0645\u062A\u062C\u0631 \u0645\u0646", "sub-title-first": true, "is-closable": !this.isOpenedBefore && this.displayAs == 'popup' ? 'false' : 'true', ref: modal => this.modal = modal, width: "sm", id: "s-branches-modal", class: "s-hidden" }, index.h("h4", { class: "s-branches-title" }, this.formTitle()), this.branches.length <= 5 ?
|
|
66
69
|
index.h("div", { class: "s-branches-space-v" }, this.branches.map((branch) => index.h("div", { class: "s-branches-input-wrap" }, index.h("input", { id: this.position + '_branch_' + branch.id, disabled: !branch.open && this.isChoiceable(), name: "lang", type: "radio", value: branch.id, onChange: (event) => this.handelChange(event), class: {
|
|
67
70
|
's-branches-input': true,
|
|
68
71
|
'opacity-50': !branch.open,
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
1
4
|
'use strict';
|
|
2
5
|
|
|
3
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
7
|
|
|
5
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-c0f5bb97.js');
|
|
6
9
|
|
|
7
10
|
const sallaButtonCss = "salla-button{pointer-events:none}salla-button[type=submit]{-webkit-appearance:none}salla-button[width=wide]{width:100%}.s-button-wrap[loading]{pointer-events:none}.s-button-wrap[loading] .s-button-element{pointer-events:none !important}.s-button-wrap[loading] .s-button-loader-center .s-button-text{opacity:0}.s-button-wrap .s-button-element[loading]{pointer-events:none !important}.s-button-wrap .s-button-element:not(:disabled){pointer-events:auto}.s-button-wrap .s-button-solid .s-button-loader:before{border-color:#fff #fff rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.2)}.s-button-wrap .s-button-outline{border:1px solid currentColor}.s-button-wrap .s-button-outline:hover{border-color:transparent}.s-button-wrap .s-button-outline .s-button-loader:before{border-top-color:currentColor;border-left-color:currentColor}.s-button-wrap .s-button-icon.s-button-large{width:56px;height:56px}.s-button-wrap .s-button-icon.s-button-small{width:24px;height:24px}.s-button-wrap .s-button-icon.s-button-small .s-button-loader:before{width:0.85rem;height:0.85rem}.s-button-wrap .s-button-loader-after .s-button-load{flex-direction:row}.s-button-wrap .s-button-loader-start.s-button-element{padding-right:40px}.s-button-wrap .s-button-loader-start .s-button-loader{position:absolute;right:8px}.s-button-wrap .s-button-loader-start .s-button-loader [dir=ltr]{left:8px;right:auto}.s-button-wrap .s-button-loader-end.s-button-element{padding-left:40px}.s-button-wrap .s-button-loader-end .s-button-loader{position:absolute;left:8px}.s-button-wrap .s-button-loader-end .s-button-loader [dir=ltr]{right:8px;left:auto}.s-button-wrap .s-button-loader-center .s-button-loader{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);margin:0 !important}";
|
|
8
11
|
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
1
4
|
'use strict';
|
|
2
5
|
|
|
3
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
7
|
|
|
5
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-c0f5bb97.js');
|
|
6
9
|
|
|
7
10
|
const sallaConditionalFieldsCss = ":host{display:block}";
|
|
8
11
|
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
1
4
|
'use strict';
|
|
2
5
|
|
|
3
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
7
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const Helper = require('./Helper-
|
|
8
|
+
const index = require('./index-c0f5bb97.js');
|
|
9
|
+
const Helper = require('./Helper-8ae6a805.js');
|
|
7
10
|
|
|
8
11
|
const sallaInfiniteScrollCss = "";
|
|
9
12
|
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
1
4
|
'use strict';
|
|
2
5
|
|
|
3
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
7
|
|
|
5
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-c0f5bb97.js');
|
|
6
9
|
|
|
7
10
|
const sallaInstallmentCss = "#tabbyPromoWrapper{background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);margin-bottom:20px}#tabbyPromoWrapper:hover{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;padding:15px;box-shadow:none}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet{max-width:100%;min-height:100px;padding:18px 20px;border:none}#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;border:1px solid var(--color-grey-dark);padding:18px 20px 18px 100px !important;background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1)}.tamara-product-widget:hover,.spotii-wrapper:hover{box-shadow:0 0 #0000, 0 0 #0000, 5px 10px 30px #2B2D340D}.spotii-wrapper .spotii-promo{font-size:var(--font-md)}.spotii-wrapper .spotii-product-widget{font-size:var(--font-sm);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}";
|
|
8
11
|
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
1
4
|
'use strict';
|
|
2
5
|
|
|
3
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
7
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const Helper = require('./Helper-
|
|
8
|
+
const index = require('./index-c0f5bb97.js');
|
|
9
|
+
const Helper = require('./Helper-8ae6a805.js');
|
|
7
10
|
|
|
8
11
|
const sallaLocalizationModalCss = "#salla-localization .s-localization-modal-select{appearance:none;-webkit-appearance:none}.iti__flag{width:20px}.iti__flag.iti__be{width:18px}.iti__flag.iti__ch{width:15px}.iti__flag.iti__mc{width:19px}.iti__flag.iti__ne{width:18px}.iti__flag.iti__np{width:13px}.iti__flag.iti__va{width:15px}@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi){.iti__flag{background-size:5652px 15px}}.iti__flag.iti__ac{height:10px;background-position:0px 0px}.iti__flag.iti__ad{height:14px;background-position:-22px 0px}.iti__flag.iti__ae{height:10px;background-position:-44px 0px}.iti__flag.iti__af{height:14px;background-position:-66px 0px}.iti__flag.iti__ag{height:14px;background-position:-88px 0px}.iti__flag.iti__ai{height:10px;background-position:-110px 0px}.iti__flag.iti__al{height:15px;background-position:-132px 0px}.iti__flag.iti__am{height:10px;background-position:-154px 0px}.iti__flag.iti__ao{height:14px;background-position:-176px 0px}.iti__flag.iti__aq{height:14px;background-position:-198px 0px}.iti__flag.iti__ar{height:13px;background-position:-220px 0px}.iti__flag.iti__as{height:10px;background-position:-242px 0px}.iti__flag.iti__at{height:14px;background-position:-264px 0px}.iti__flag.iti__au{height:10px;background-position:-286px 0px}.iti__flag.iti__aw{height:14px;background-position:-308px 0px}.iti__flag.iti__ax{height:13px;background-position:-330px 0px}.iti__flag.iti__az{height:10px;background-position:-352px 0px}.iti__flag.iti__ba{height:10px;background-position:-374px 0px}.iti__flag.iti__bb{height:14px;background-position:-396px 0px}.iti__flag.iti__bd{height:12px;background-position:-418px 0px}.iti__flag.iti__be{height:15px;background-position:-440px 0px}.iti__flag.iti__bf{height:14px;background-position:-460px 0px}.iti__flag.iti__bg{height:12px;background-position:-482px 0px}.iti__flag.iti__bh{height:12px;background-position:-504px 0px}.iti__flag.iti__bi{height:12px;background-position:-526px 0px}.iti__flag.iti__bj{height:14px;background-position:-548px 0px}.iti__flag.iti__bl{height:14px;background-position:-570px 0px}.iti__flag.iti__bm{height:10px;background-position:-592px 0px}.iti__flag.iti__bn{height:10px;background-position:-614px 0px}.iti__flag.iti__bo{height:14px;background-position:-636px 0px}.iti__flag.iti__bq{height:14px;background-position:-658px 0px}.iti__flag.iti__br{height:14px;background-position:-680px 0px}.iti__flag.iti__bs{height:10px;background-position:-702px 0px}.iti__flag.iti__bt{height:14px;background-position:-724px 0px}.iti__flag.iti__bv{height:15px;background-position:-746px 0px}.iti__flag.iti__bw{height:14px;background-position:-768px 0px}.iti__flag.iti__by{height:10px;background-position:-790px 0px}.iti__flag.iti__bz{height:14px;background-position:-812px 0px}.iti__flag.iti__ca{height:10px;background-position:-834px 0px}.iti__flag.iti__cc{height:10px;background-position:-856px 0px}.iti__flag.iti__cd{height:15px;background-position:-878px 0px}.iti__flag.iti__cf{height:14px;background-position:-900px 0px}.iti__flag.iti__cg{height:14px;background-position:-922px 0px}.iti__flag.iti__ch{height:15px;background-position:-944px 0px}.iti__flag.iti__ci{height:14px;background-position:-961px 0px}.iti__flag.iti__ck{height:10px;background-position:-983px 0px}.iti__flag.iti__cl{height:14px;background-position:-1005px 0px}.iti__flag.iti__cm{height:14px;background-position:-1027px 0px}.iti__flag.iti__cn{height:14px;background-position:-1049px 0px}.iti__flag.iti__co{height:14px;background-position:-1071px 0px}.iti__flag.iti__cp{height:14px;background-position:-1093px 0px}.iti__flag.iti__cr{height:12px;background-position:-1115px 0px}.iti__flag.iti__cu{height:10px;background-position:-1137px 0px}.iti__flag.iti__cv{height:12px;background-position:-1159px 0px}.iti__flag.iti__cw{height:14px;background-position:-1181px 0px}.iti__flag.iti__cx{height:10px;background-position:-1203px 0px}.iti__flag.iti__cy{height:14px;background-position:-1225px 0px}.iti__flag.iti__cz{height:14px;background-position:-1247px 0px}.iti__flag.iti__de{height:12px;background-position:-1269px 0px}.iti__flag.iti__dg{height:10px;background-position:-1291px 0px}.iti__flag.iti__dj{height:14px;background-position:-1313px 0px}.iti__flag.iti__dk{height:15px;background-position:-1335px 0px}.iti__flag.iti__dm{height:10px;background-position:-1357px 0px}.iti__flag.iti__do{height:14px;background-position:-1379px 0px}.iti__flag.iti__dz{height:14px;background-position:-1401px 0px}.iti__flag.iti__ea{height:14px;background-position:-1423px 0px}.iti__flag.iti__ec{height:14px;background-position:-1445px 0px}.iti__flag.iti__ee{height:13px;background-position:-1467px 0px}.iti__flag.iti__eg{height:14px;background-position:-1489px 0px}.iti__flag.iti__eh{height:10px;background-position:-1511px 0px}.iti__flag.iti__er{height:10px;background-position:-1533px 0px}.iti__flag.iti__es{height:14px;background-position:-1555px 0px}.iti__flag.iti__et{height:10px;background-position:-1577px 0px}.iti__flag.iti__eu{height:14px;background-position:-1599px 0px}.iti__flag.iti__fi{height:12px;background-position:-1621px 0px}.iti__flag.iti__fj{height:10px;background-position:-1643px 0px}.iti__flag.iti__fk{height:10px;background-position:-1665px 0px}.iti__flag.iti__fm{height:11px;background-position:-1687px 0px}.iti__flag.iti__fo{height:15px;background-position:-1709px 0px}.iti__flag.iti__fr{height:14px;background-position:-1731px 0px}.iti__flag.iti__ga{height:15px;background-position:-1753px 0px}.iti__flag.iti__gb{height:10px;background-position:-1775px 0px}.iti__flag.iti__gd{height:12px;background-position:-1797px 0px}.iti__flag.iti__ge{height:14px;background-position:-1819px 0px}.iti__flag.iti__gf{height:14px;background-position:-1841px 0px}.iti__flag.iti__gg{height:14px;background-position:-1863px 0px}.iti__flag.iti__gh{height:14px;background-position:-1885px 0px}.iti__flag.iti__gi{height:10px;background-position:-1907px 0px}.iti__flag.iti__gl{height:14px;background-position:-1929px 0px}.iti__flag.iti__gm{height:14px;background-position:-1951px 0px}.iti__flag.iti__gn{height:14px;background-position:-1973px 0px}.iti__flag.iti__gp{height:14px;background-position:-1995px 0px}.iti__flag.iti__gq{height:14px;background-position:-2017px 0px}.iti__flag.iti__gr{height:14px;background-position:-2039px 0px}.iti__flag.iti__gs{height:10px;background-position:-2061px 0px}.iti__flag.iti__gt{height:13px;background-position:-2083px 0px}.iti__flag.iti__gu{height:11px;background-position:-2105px 0px}.iti__flag.iti__gw{height:10px;background-position:-2127px 0px}.iti__flag.iti__gy{height:12px;background-position:-2149px 0px}.iti__flag.iti__hk{height:14px;background-position:-2171px 0px}.iti__flag.iti__hm{height:10px;background-position:-2193px 0px}.iti__flag.iti__hn{height:10px;background-position:-2215px 0px}.iti__flag.iti__hr{height:10px;background-position:-2237px 0px}.iti__flag.iti__ht{height:12px;background-position:-2259px 0px}.iti__flag.iti__hu{height:10px;background-position:-2281px 0px}.iti__flag.iti__ic{height:14px;background-position:-2303px 0px}.iti__flag.iti__id{height:14px;background-position:-2325px 0px}.iti__flag.iti__ie{height:10px;background-position:-2347px 0px}.iti__flag.iti__il{height:15px;background-position:-2369px 0px}.iti__flag.iti__im{height:10px;background-position:-2391px 0px}.iti__flag.iti__in{height:14px;background-position:-2413px 0px}.iti__flag.iti__io{height:10px;background-position:-2435px 0px}.iti__flag.iti__iq{height:14px;background-position:-2457px 0px}.iti__flag.iti__ir{height:12px;background-position:-2479px 0px}.iti__flag.iti__is{height:15px;background-position:-2501px 0px}.iti__flag.iti__it{height:14px;background-position:-2523px 0px}.iti__flag.iti__je{height:12px;background-position:-2545px 0px}.iti__flag.iti__jm{height:10px;background-position:-2567px 0px}.iti__flag.iti__jo{height:10px;background-position:-2589px 0px}.iti__flag.iti__jp{height:14px;background-position:-2611px 0px}.iti__flag.iti__ke{height:14px;background-position:-2633px 0px}.iti__flag.iti__kg{height:12px;background-position:-2655px 0px}.iti__flag.iti__kh{height:13px;background-position:-2677px 0px}.iti__flag.iti__ki{height:10px;background-position:-2699px 0px}.iti__flag.iti__km{height:12px;background-position:-2721px 0px}.iti__flag.iti__kn{height:14px;background-position:-2743px 0px}.iti__flag.iti__kp{height:10px;background-position:-2765px 0px}.iti__flag.iti__kr{height:14px;background-position:-2787px 0px}.iti__flag.iti__kw{height:10px;background-position:-2809px 0px}.iti__flag.iti__ky{height:10px;background-position:-2831px 0px}.iti__flag.iti__kz{height:10px;background-position:-2853px 0px}.iti__flag.iti__la{height:14px;background-position:-2875px 0px}.iti__flag.iti__lb{height:14px;background-position:-2897px 0px}.iti__flag.iti__lc{height:10px;background-position:-2919px 0px}.iti__flag.iti__li{height:12px;background-position:-2941px 0px}.iti__flag.iti__lk{height:10px;background-position:-2963px 0px}.iti__flag.iti__lr{height:11px;background-position:-2985px 0px}.iti__flag.iti__ls{height:14px;background-position:-3007px 0px}.iti__flag.iti__lt{height:12px;background-position:-3029px 0px}.iti__flag.iti__lu{height:12px;background-position:-3051px 0px}.iti__flag.iti__lv{height:10px;background-position:-3073px 0px}.iti__flag.iti__ly{height:10px;background-position:-3095px 0px}.iti__flag.iti__ma{height:14px;background-position:-3117px 0px}.iti__flag.iti__mc{height:15px;background-position:-3139px 0px}.iti__flag.iti__md{height:10px;background-position:-3160px 0px}.iti__flag.iti__me{height:10px;background-position:-3182px 0px}.iti__flag.iti__mf{height:14px;background-position:-3204px 0px}.iti__flag.iti__mg{height:14px;background-position:-3226px 0px}.iti__flag.iti__mh{height:11px;background-position:-3248px 0px}.iti__flag.iti__mk{height:10px;background-position:-3270px 0px}.iti__flag.iti__ml{height:14px;background-position:-3292px 0px}.iti__flag.iti__mm{height:14px;background-position:-3314px 0px}.iti__flag.iti__mn{height:10px;background-position:-3336px 0px}.iti__flag.iti__mo{height:14px;background-position:-3358px 0px}.iti__flag.iti__mp{height:10px;background-position:-3380px 0px}.iti__flag.iti__mq{height:14px;background-position:-3402px 0px}.iti__flag.iti__mr{height:14px;background-position:-3424px 0px}.iti__flag.iti__ms{height:10px;background-position:-3446px 0px}.iti__flag.iti__mt{height:14px;background-position:-3468px 0px}.iti__flag.iti__mu{height:14px;background-position:-3490px 0px}.iti__flag.iti__mv{height:14px;background-position:-3512px 0px}.iti__flag.iti__mw{height:14px;background-position:-3534px 0px}.iti__flag.iti__mx{height:12px;background-position:-3556px 0px}.iti__flag.iti__my{height:10px;background-position:-3578px 0px}.iti__flag.iti__mz{height:14px;background-position:-3600px 0px}.iti__flag.iti__na{height:14px;background-position:-3622px 0px}.iti__flag.iti__nc{height:10px;background-position:-3644px 0px}.iti__flag.iti__ne{height:15px;background-position:-3666px 0px}.iti__flag.iti__nf{height:10px;background-position:-3686px 0px}.iti__flag.iti__ng{height:10px;background-position:-3708px 0px}.iti__flag.iti__ni{height:12px;background-position:-3730px 0px}.iti__flag.iti__nl{height:14px;background-position:-3752px 0px}.iti__flag.iti__no{height:15px;background-position:-3774px 0px}.iti__flag.iti__np{height:15px;background-position:-3796px 0px}.iti__flag.iti__nr{height:10px;background-position:-3811px 0px}.iti__flag.iti__nu{height:10px;background-position:-3833px 0px}.iti__flag.iti__nz{height:10px;background-position:-3855px 0px}.iti__flag.iti__om{height:10px;background-position:-3877px 0px}.iti__flag.iti__pa{height:14px;background-position:-3899px 0px}.iti__flag.iti__pe{height:14px;background-position:-3921px 0px}.iti__flag.iti__pf{height:14px;background-position:-3943px 0px}.iti__flag.iti__pg{height:15px;background-position:-3965px 0px}.iti__flag.iti__ph{height:10px;background-position:-3987px 0px}.iti__flag.iti__pk{height:14px;background-position:-4009px 0px}.iti__flag.iti__pl{height:13px;background-position:-4031px 0px}.iti__flag.iti__pm{height:14px;background-position:-4053px 0px}.iti__flag.iti__pn{height:10px;background-position:-4075px 0px}.iti__flag.iti__pr{height:14px;background-position:-4097px 0px}.iti__flag.iti__ps{height:10px;background-position:-4119px 0px}.iti__flag.iti__pt{height:14px;background-position:-4141px 0px}.iti__flag.iti__pw{height:13px;background-position:-4163px 0px}.iti__flag.iti__py{height:11px;background-position:-4185px 0px}.iti__flag.iti__qa{height:8px;background-position:-4207px 0px}.iti__flag.iti__re{height:14px;background-position:-4229px 0px}.iti__flag.iti__ro{height:14px;background-position:-4251px 0px}.iti__flag.iti__rs{height:14px;background-position:-4273px 0px}.iti__flag.iti__ru{height:14px;background-position:-4295px 0px}.iti__flag.iti__rw{height:14px;background-position:-4317px 0px}.iti__flag.iti__sa{height:14px;background-position:-4339px 0px}.iti__flag.iti__sb{height:10px;background-position:-4361px 0px}.iti__flag.iti__sc{height:10px;background-position:-4383px 0px}.iti__flag.iti__sd{height:10px;background-position:-4405px 0px}.iti__flag.iti__se{height:13px;background-position:-4427px 0px}.iti__flag.iti__sg{height:14px;background-position:-4449px 0px}.iti__flag.iti__sh{height:10px;background-position:-4471px 0px}.iti__flag.iti__si{height:10px;background-position:-4493px 0px}.iti__flag.iti__sj{height:15px;background-position:-4515px 0px}.iti__flag.iti__sk{height:14px;background-position:-4537px 0px}.iti__flag.iti__sl{height:14px;background-position:-4559px 0px}.iti__flag.iti__sm{height:15px;background-position:-4581px 0px}.iti__flag.iti__sn{height:14px;background-position:-4603px 0px}.iti__flag.iti__so{height:14px;background-position:-4625px 0px}.iti__flag.iti__sr{height:14px;background-position:-4647px 0px}.iti__flag.iti__ss{height:10px;background-position:-4669px 0px}.iti__flag.iti__st{height:10px;background-position:-4691px 0px}.iti__flag.iti__sv{height:12px;background-position:-4713px 0px}.iti__flag.iti__sx{height:14px;background-position:-4735px 0px}.iti__flag.iti__sy{height:14px;background-position:-4757px 0px}.iti__flag.iti__sz{height:14px;background-position:-4779px 0px}.iti__flag.iti__ta{height:10px;background-position:-4801px 0px}.iti__flag.iti__tc{height:10px;background-position:-4823px 0px}.iti__flag.iti__td{height:14px;background-position:-4845px 0px}.iti__flag.iti__tf{height:14px;background-position:-4867px 0px}.iti__flag.iti__tg{height:13px;background-position:-4889px 0px}.iti__flag.iti__th{height:14px;background-position:-4911px 0px}.iti__flag.iti__tj{height:10px;background-position:-4933px 0px}.iti__flag.iti__tk{height:10px;background-position:-4955px 0px}.iti__flag.iti__tl{height:10px;background-position:-4977px 0px}.iti__flag.iti__tm{height:14px;background-position:-4999px 0px}.iti__flag.iti__tn{height:14px;background-position:-5021px 0px}.iti__flag.iti__to{height:10px;background-position:-5043px 0px}.iti__flag.iti__tr{height:14px;background-position:-5065px 0px}.iti__flag.iti__tt{height:12px;background-position:-5087px 0px}.iti__flag.iti__tv{height:10px;background-position:-5109px 0px}.iti__flag.iti__tw{height:14px;background-position:-5131px 0px}.iti__flag.iti__tz{height:14px;background-position:-5153px 0px}.iti__flag.iti__ua{height:14px;background-position:-5175px 0px}.iti__flag.iti__ug{height:14px;background-position:-5197px 0px}.iti__flag.iti__um{height:11px;background-position:-5219px 0px}.iti__flag.iti__un{height:14px;background-position:-5241px 0px}.iti__flag.iti__us{height:11px;background-position:-5263px 0px}.iti__flag.iti__uy{height:14px;background-position:-5285px 0px}.iti__flag.iti__uz{height:10px;background-position:-5307px 0px}.iti__flag.iti__va{height:15px;background-position:-5329px 0px}.iti__flag.iti__vc{height:14px;background-position:-5346px 0px}.iti__flag.iti__ve{height:14px;background-position:-5368px 0px}.iti__flag.iti__vg{height:10px;background-position:-5390px 0px}.iti__flag.iti__vi{height:14px;background-position:-5412px 0px}.iti__flag.iti__vn{height:14px;background-position:-5434px 0px}.iti__flag.iti__vu{height:12px;background-position:-5456px 0px}.iti__flag.iti__wf{height:14px;background-position:-5478px 0px}.iti__flag.iti__ws{height:10px;background-position:-5500px 0px}.iti__flag.iti__xk{height:15px;background-position:-5522px 0px}.iti__flag.iti__ye{height:14px;background-position:-5544px 0px}.iti__flag.iti__yt{height:14px;background-position:-5566px 0px}.iti__flag.iti__za{height:14px;background-position:-5588px 0px}.iti__flag.iti__zm{height:14px;background-position:-5610px 0px}.iti__flag.iti__zw{height:10px;background-position:-5632px 0px}.iti__flag{height:15px;box-shadow:0px 0px 1px 0px #888;background-image:url(\"https://intl-tel-input.com/node_modules/intl-tel-input/build/img/flags.png\");background-repeat:no-repeat;background-color:#f5f7f9;background-position:20px 0}@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi){.iti__flag{background-image:url(\"https://intl-tel-input.com/node_modules/intl-tel-input/build/img/flags@2x.png\")}}.iti__flag.iti__np{background-color:transparent}";
|
|
9
12
|
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
1
4
|
'use strict';
|
|
2
5
|
|
|
3
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
7
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const Helper = require('./Helper-
|
|
8
|
+
const index = require('./index-c0f5bb97.js');
|
|
9
|
+
const Helper = require('./Helper-8ae6a805.js');
|
|
7
10
|
|
|
8
11
|
const sallaLoginModalCss = "[dir=ltr] #salla-login .s-login-modal-main-btn .arrow{display:inline-block;transform:scale(-1)}";
|
|
9
12
|
|
|
@@ -191,7 +194,7 @@ const SallaLoginModal = class {
|
|
|
191
194
|
field.nextElementSibling['innerText'] = '* ' + errorMsg;
|
|
192
195
|
}
|
|
193
196
|
render() {
|
|
194
|
-
return (index.h("salla-modal", { id: "salla-login", icon: "sicon-user", title: this.title, ref: modal => this.modal = modal, width: "xs" }, index.h("div", { class: "s-login-modal-wrapper" }, this.isEmailAllowed && this.isMobileAllowed ?
|
|
197
|
+
return (index.h("salla-modal", { id: "salla-login", icon: "sicon-user", "modal-title": this.title, ref: modal => this.modal = modal, width: "xs" }, index.h("div", { class: "s-login-modal-wrapper" }, this.isEmailAllowed && this.isMobileAllowed ?
|
|
195
198
|
index.h("div", { class: "s-login-modal-tab", ref: tab => this.homeTab = tab }, index.h("p", { class: "s-login-modal-sub-title" }, this.loginTypeTitle), index.h("slot", { name: "before-login-type" }), index.h("a", { href: "#", class: "s-login-modal-main-btn", onClick: (evt) => this.showTab(this.mobileTab, evt) }, index.h("i", { class: "s-login-modal-main-btn-icon sicon-phone" }), index.h("span", { class: "s-login-modal-main-btn-text" }, this.smsLabel), index.h("i", { class: "sicon-keyboard_arrow_left arrow" })), index.h("a", { href: "#", class: "s-login-modal-main-btn", onClick: (evt) => this.showTab(this.emailTab, evt) }, index.h("i", { class: "s-login-modal-main-btn-icon sicon-mail" }), index.h("span", { class: "s-login-modal-main-btn-text" }, this.emailLabel), index.h("i", { class: "sicon-keyboard_arrow_left arrow" })), index.h("slot", { name: "after-login-type" }))
|
|
196
199
|
: '', this.isMobileAllowed ?
|
|
197
200
|
index.h("div", { class: "s-login-modal-tab", ref: tab => this.mobileTab = tab }, index.h("slot", { name: "before-login-mobile" }), index.h("label", { class: "s-login-modal-label" }, this.mobileLabel), index.h("salla-tel-input", { ref: el => this.loginTelInput = el, onKeyDown: e => this.typing(e, this.loginBySMS) }), index.h("salla-button", { "loader-position": 'center', width: "wide", onClick: () => this.loginBySMS(), ref: b => this.smsBtn = b }, salla.lang.get('blocks.header.enter')), this.isEmailAllowed ?
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
1
4
|
'use strict';
|
|
2
5
|
|
|
3
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
7
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const Helper = require('./Helper-
|
|
8
|
+
const index = require('./index-c0f5bb97.js');
|
|
9
|
+
const Helper = require('./Helper-8ae6a805.js');
|
|
7
10
|
|
|
8
11
|
const sallaModalCss = "";
|
|
9
12
|
|
|
@@ -44,8 +47,8 @@ const SallaModal = class {
|
|
|
44
47
|
Helper.Helper.setHost(this.host);
|
|
45
48
|
salla.event.on('modal::open', btn => btn.dataset.target == this.host.id && this.show());
|
|
46
49
|
salla.event.on('modal::close', btn => btn.dataset.target == this.host.id && this.hide());
|
|
47
|
-
this.
|
|
48
|
-
this.host.removeAttribute('
|
|
50
|
+
this.modalTitle = this.host.title;
|
|
51
|
+
this.host.removeAttribute('modalTitle');
|
|
49
52
|
}
|
|
50
53
|
handleVisible(newValue) {
|
|
51
54
|
if (!newValue) {
|
|
@@ -72,11 +75,11 @@ const SallaModal = class {
|
|
|
72
75
|
return this.host;
|
|
73
76
|
}
|
|
74
77
|
/**
|
|
75
|
-
* Change the
|
|
76
|
-
* @param {string}
|
|
78
|
+
* Change the Modal Title
|
|
79
|
+
* @param {string} modalTitle
|
|
77
80
|
*/
|
|
78
|
-
async setTitle(
|
|
79
|
-
this.
|
|
81
|
+
async setTitle(modalTitle) {
|
|
82
|
+
this.modalTitle = modalTitle;
|
|
80
83
|
return this.host;
|
|
81
84
|
}
|
|
82
85
|
/**
|
|
@@ -134,10 +137,10 @@ const SallaModal = class {
|
|
|
134
137
|
[
|
|
135
138
|
index.h("div", { class: { 's-modal-header': true, 's-modal-is-center': this.icon != '' || this.imageIcon != '' } }, this.isClosable ?
|
|
136
139
|
index.h("button", { class: "s-modal-close", onClick: () => this.closeModal(), type: "button" }, index.h("span", { class: "sicon-cancel" }))
|
|
137
|
-
: '', this.
|
|
140
|
+
: '', this.modalTitle || this.subTitle ?
|
|
138
141
|
index.h("div", { class: "s-modal-header-inner" }, this.iconStyle || this.icon
|
|
139
142
|
? index.h("div", { class: this.iconBlockClasses() }, index.h("i", { class: this.iconClasses() }))
|
|
140
|
-
: this.imageIcon ? index.h("img", { class: "s-modal-header-img", src: this.imageIcon }) : '', index.h("div", { class: "s-modal-header-content" }, index.h("div", { class: { 's-modal-title': true, 's-modal-title-below': this.subTitleFirst }, innerHTML: this.
|
|
143
|
+
: this.imageIcon ? index.h("img", { class: "s-modal-header-img", src: this.imageIcon }) : '', index.h("div", { class: "s-modal-header-content" }, index.h("div", { class: { 's-modal-title': true, 's-modal-title-below': this.subTitleFirst }, innerHTML: this.modalTitle }), index.h("p", { class: { 's-modal-sub-title': true }, innerHTML: this.subTitle })))
|
|
141
144
|
: ''),
|
|
142
145
|
index.h("slot", null),
|
|
143
146
|
index.h("slot", { name: "footer" })
|
|
@@ -150,7 +153,7 @@ const SallaModal = class {
|
|
|
150
153
|
};
|
|
151
154
|
SallaModal.style = sallaModalCss;
|
|
152
155
|
|
|
153
|
-
const sallaSearchCss = "#s-search-modal .s-search-inline{border:1px solid #eee}#s-search-modal .s-search-no-results .s-search-input,#s-search-modal .s-search-container-open .s-search-input{border-bottom:1px solid #f4f4f5}#s-search-modal .s-search-product-image
|
|
156
|
+
const sallaSearchCss = "#s-search-modal .s-search-inline{border:1px solid #eee}#s-search-modal .s-search-no-results .s-search-input,#s-search-modal .s-search-container-open .s-search-input{border-bottom:1px solid #f4f4f5}#s-search-modal .s-search-product-image{font-size:0;position:relative}#s-search-modal .s-search-product-image:before{content:\"\";position:absolute;width:100%;height:100%;left:0;top:0;background:#eee}#s-search-modal .s-modal-wrapper{align-items:flex-start;padding:0}#s-search-modal .s-modal-spacer{display:inline}#s-search-modal .s-modal-body{padding:0;max-width:90%;margin-top:3.2rem;border-radius:0.5rem;background:transparent;overflow:visible}#s-search-modal .s-modal-close{top:50%;transform:translateY(-50%)}";
|
|
154
157
|
|
|
155
158
|
const SallaSearch = class {
|
|
156
159
|
constructor(hostRef) {
|
|
@@ -199,9 +202,9 @@ const SallaSearch = class {
|
|
|
199
202
|
}
|
|
200
203
|
//run loading spinner or stop it
|
|
201
204
|
Helper.Helper.toggleElementClassIf(this.searchIcon, 's-search-spinner-loader', 'sicon-search', () => true);
|
|
202
|
-
salla.search.api.
|
|
205
|
+
salla.search.api.products(e.target.value)
|
|
203
206
|
.then(response => this.results = response)
|
|
204
|
-
.catch(err => err !== 'Query
|
|
207
|
+
.catch(err => err !== 'Query is same as previous one!' ? this.results = undefined : null)
|
|
205
208
|
.finally(() => this.afterSearching(/*isEmpty*/ false));
|
|
206
209
|
}
|
|
207
210
|
afterSearching(isEmpty = true) {
|
|
@@ -209,7 +212,7 @@ const SallaSearch = class {
|
|
|
209
212
|
this.noResults.style.display = isEmpty || ((_a = this.results) === null || _a === void 0 ? void 0 : _a.data.length) > 0 ? 'none' : 'block';
|
|
210
213
|
Helper.Helper.toggleElementClassIf(this.container, 's-search-container-open', 's-search-no-results', () => { var _a; return (_a = this.results) === null || _a === void 0 ? void 0 : _a.data.length; })
|
|
211
214
|
.toggleElementClassIf(this.searchIcon, 's-search-spinner-loader', 'sicon-search', () => false); //stop searching anime
|
|
212
|
-
salla.search.api.previousQuery = ''; //avoid having error 'Query
|
|
215
|
+
salla.search.api.previousQuery = ''; //avoid having error 'Query is same as previous one!' after reopen modal;
|
|
213
216
|
this.inputValue.length == 0 ? this.container.classList.remove('s-search-no-results') : '';
|
|
214
217
|
}
|
|
215
218
|
render() {
|
|
@@ -218,7 +221,7 @@ const SallaSearch = class {
|
|
|
218
221
|
_a.data.map(item => index.h("a", { href: item.url, class: "s-search-product", innerHTML: this.productSlot
|
|
219
222
|
.replace(/\{name\}/g, item.name)
|
|
220
223
|
.replace(/\{price\}/g, salla.money(item.price)) //todo:: get discounted price too
|
|
221
|
-
.replace(/\{image\}/g, item.
|
|
224
|
+
.replace(/\{image\}/g, item.thumbnail) })), index.h("p", { ref: el => this.noResults = el, class: "s-search-no-results-placeholder" }, this.noResultsText)));
|
|
222
225
|
return (this.inline ?
|
|
223
226
|
index.h("div", { id: "s-search-modal" }, searchContent)
|
|
224
227
|
:
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
1
4
|
'use strict';
|
|
2
5
|
|
|
3
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
7
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const Helper = require('./Helper-
|
|
8
|
+
const index = require('./index-c0f5bb97.js');
|
|
9
|
+
const Helper = require('./Helper-8ae6a805.js');
|
|
7
10
|
|
|
8
11
|
const sallaOfferModalCss = "#salla-offer-modal .s-offer-modal-body{-webkit-overflow-scrolling:touch}#salla-offer-modal .s-offer-modal-body::-webkit-scrollbar{display:none}#salla-offer-modal .s-offer-modal-next-btn{background:linear-gradient(90deg, #fff 25%, rgba(255, 255, 255, 0.4) 80%, rgba(255, 255, 255, 0) 100%)}#salla-offer-modal .s-offer-modal-prev-btn{background:linear-gradient(-90deg, #fff 25%, rgba(255, 255, 255, 0.4) 80%, rgba(255, 255, 255, 0) 100%)}.ltr #salla-offer-modal .s-offer-modal-nav-btn,.ltr #salla-offer-modal .s-offer-modal-nav-btn-icon{transform:scale(-1)}";
|
|
9
12
|
|
|
@@ -83,8 +86,7 @@ const SallaOfferModal = class {
|
|
|
83
86
|
.replace(/\{image\}/g, product.thumbnail)
|
|
84
87
|
.replace(/\{price\}/g, product.has_special_price
|
|
85
88
|
? salla.money(product.price) + '<span class="s-offer-modal-product-old-price">' + salla.money(product.regular_price) + '</span>'
|
|
86
|
-
: salla.money(product.price)) }, index.h("div", { class: "s-offer-modal-btn-wrap" }, index.h("salla-button", { width: "wide", fill: 'outline', "data-id": product.id, disabled: !product.is_available, "loader-position": "center", onClick: this.addItem }, product.is_available ? this.add_to_cart : this.out_of_stock))))), index.h("div", { class: "s-offer-modal-slider-nav" }, index.h("button", { class: "s-offer-modal-nav-btn s-offer-modal-prev-btn" }, index.h("span", { class: "s-offer-modal-nav-btn-icon sicon-keyboard_arrow_left" })), index.h("button", { class: "s-offer-modal-nav-btn s-offer-modal-next-btn" }, index.h("span", { class: "s-offer-modal-nav-btn-icon sicon-keyboard_arrow_right" })))),
|
|
87
|
-
index.h("div", { class: "s-offer-modal-footer", slot: "footer" }, this.offer.expiry_date ?
|
|
89
|
+
: salla.money(product.price)) }, index.h("div", { class: "s-offer-modal-btn-wrap" }, index.h("salla-button", { width: "wide", fill: 'outline', "data-id": product.id, disabled: !product.is_available, "loader-position": "center", onClick: this.addItem }, product.is_available ? this.add_to_cart : this.out_of_stock))))), index.h("div", { class: "s-offer-modal-slider-nav" }, index.h("button", { class: "s-offer-modal-nav-btn s-offer-modal-prev-btn" }, index.h("span", { class: "s-offer-modal-nav-btn-icon sicon-keyboard_arrow_left" })), index.h("button", { class: "s-offer-modal-nav-btn s-offer-modal-next-btn" }, index.h("span", { class: "s-offer-modal-nav-btn-icon sicon-keyboard_arrow_right" })))), index.h("div", { class: "s-offer-modal-footer", slot: "footer" }, this.offer.expiry_date ?
|
|
88
90
|
index.h("p", { class: "s-offer-modal-expiry" }, this.offer_expires_in, " ", this.offer.expiry_date)
|
|
89
91
|
: '', index.h("label", { class: "s-offer-modal-remember-label" }, index.h("input", { type: "checkbox", onChange: e => this.rememberMe(e), class: "s-offer-modal-remember-input" }), "\u00A0 ", this.remember_my_choice)),
|
|
90
92
|
] : '');
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
1
4
|
'use strict';
|
|
2
5
|
|
|
3
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
7
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const Helper = require('./Helper-
|
|
8
|
+
const index = require('./index-c0f5bb97.js');
|
|
9
|
+
const Helper = require('./Helper-8ae6a805.js');
|
|
7
10
|
|
|
8
11
|
const sallaProductAvailabilityCss = "";
|
|
9
12
|
|
|
@@ -97,7 +100,7 @@ const SallaProductAvailability = class {
|
|
|
97
100
|
index.h("salla-button", { width: "wide", onClick: () => this.isUser ? this.submit() : this.modal.show(), ref: btn => this.inlineBtn = btn }, salla.lang.get('pages.products.notify_availability')), this.isUser || this.isSubscribed || this.isVisitorSubscribed ? '' : this.renderModal()));
|
|
98
101
|
}
|
|
99
102
|
renderModal() {
|
|
100
|
-
return (index.h("salla-modal", { ref: modal => this.modal = modal, title: this.title_, subTitle: this.subTitle, icon: "sicon-bell-ring", width: "sm" }, index.h("div", { class: "s-product-availability-body" }, this.channels_.includes('email') ? [
|
|
103
|
+
return (index.h("salla-modal", { ref: modal => this.modal = modal, "modal-title": this.title_, subTitle: this.subTitle, icon: "sicon-bell-ring", width: "sm" }, index.h("div", { class: "s-product-availability-body" }, this.channels_.includes('email') ? [
|
|
101
104
|
index.h("label", { class: "s-product-availability-label" }, this.emailLabel),
|
|
102
105
|
index.h("input", { class: "s-product-availability-input", onKeyDown: e => this.typing(e, this.submit), placeholder: this.emailPlaceholder, ref: el => this.email = el, type: "email" }),
|
|
103
106
|
index.h("span", { class: "s-product-availability-error-msg" })
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
1
4
|
'use strict';
|
|
2
5
|
|
|
3
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
7
|
|
|
5
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-c0f5bb97.js');
|
|
6
9
|
|
|
7
10
|
const sallaQuantityInputCss = ":host{display:block}";
|
|
8
11
|
|