@salla.sa/twilight-components 1.0.57 → 1.0.60
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-0b5b5867.js → index-543e387e.js} +293 -8
- package/dist/cjs/index.cjs.js +0 -11
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-branches.cjs.entry.js +2 -2
- package/dist/cjs/salla-button.cjs.entry.js +9 -9
- package/dist/cjs/salla-conditional-fields.cjs.entry.js +90 -0
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +2 -2
- package/dist/cjs/salla-localization-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-login-modal.cjs.entry.js +199 -4
- package/dist/cjs/salla-modal_2.cjs.entry.js +87 -4
- package/dist/cjs/salla-offer-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-product-availability.cjs.entry.js +2 -2
- package/dist/cjs/salla-quantity-input.cjs.entry.js +67 -0
- package/dist/cjs/salla-rating-modal.cjs.entry.js +6 -56
- package/dist/cjs/salla-rating-stars.cjs.entry.js +80 -0
- package/dist/cjs/salla-tabby.cjs.entry.js +19 -0
- package/dist/cjs/salla-tamara.cjs.entry.js +19 -0
- package/dist/cjs/salla-tel-input.cjs.entry.js +2 -2
- package/dist/cjs/salla-verify-modal.cjs.entry.js +2 -2
- package/dist/cjs/twilight-components.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +7 -2
- package/dist/collection/components/salla-branches/salla-branches.css +1077 -0
- package/dist/collection/components/salla-button/salla-button.css +1077 -0
- package/dist/collection/components/salla-button/salla-button.js +10 -10
- package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.css +3 -0
- package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +96 -0
- package/dist/collection/components/salla-infinite-scroll/salla-infinite-scroll.css +1077 -0
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.css +1077 -0
- package/dist/collection/components/salla-login-modal/salla-login-modal.css +1077 -0
- package/dist/collection/components/salla-modal/salla-modal.css +1077 -0
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.css +1077 -0
- package/dist/collection/components/salla-product-availability/salla-product-availability.css +1077 -0
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.css +3 -0
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +74 -0
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.css +1077 -0
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +5 -59
- package/dist/collection/components/salla-rating-stars/salla-rating-stars.css +1089 -0
- package/dist/collection/components/salla-rating-stars/salla-rating-stars.js +137 -0
- package/dist/collection/components/salla-search/salla-search.css +1077 -0
- package/dist/collection/components/salla-tabby/salla-tabby.css +1117 -0
- package/dist/collection/components/salla-tabby/salla-tabby.js +14 -0
- package/dist/collection/components/salla-tamara/salla-tamara.css +1135 -0
- package/dist/collection/components/salla-tamara/salla-tamara.js +15 -0
- package/dist/collection/components/salla-tel-input/salla-tel-input.css +1290 -0
- package/dist/collection/components/salla-verify-modal/salla-verify-modal.css +1077 -0
- package/dist/collection/index.js +1 -2
- package/dist/components/Helper.js +23 -0
- package/dist/components/index.d.ts +26 -0
- package/dist/components/index.js +1 -0
- package/dist/components/salla-branches.d.ts +7 -0
- package/dist/components/salla-branches.js +90 -0
- package/dist/components/salla-button.d.ts +7 -0
- package/dist/components/salla-button.js +118 -0
- package/dist/components/salla-conditional-fields.d.ts +7 -0
- package/dist/components/salla-conditional-fields.js +89 -0
- package/dist/components/salla-infinite-scroll.d.ts +7 -0
- package/dist/components/salla-infinite-scroll.js +93 -0
- package/dist/components/salla-localization-modal.d.ts +7 -0
- package/dist/components/salla-localization-modal.js +116 -0
- package/dist/components/salla-login-modal.d.ts +7 -0
- package/dist/components/salla-login-modal.js +205 -0
- package/dist/components/salla-modal.d.ts +7 -0
- package/dist/components/salla-modal.js +152 -0
- package/dist/components/salla-offer-modal.d.ts +7 -0
- package/dist/components/salla-offer-modal.js +141 -0
- package/dist/components/salla-product-availability.d.ts +7 -0
- package/dist/components/salla-product-availability.js +114 -0
- package/dist/components/salla-quantity-input.d.ts +7 -0
- package/dist/components/salla-quantity-input.js +66 -0
- package/dist/components/salla-rating-modal.d.ts +7 -0
- package/dist/components/salla-rating-modal.js +178 -0
- package/dist/components/salla-rating-stars.d.ts +7 -0
- package/dist/components/salla-rating-stars.js +79 -0
- package/dist/components/salla-search.d.ts +7 -0
- package/dist/components/salla-search.js +91 -0
- package/dist/components/salla-tabby.d.ts +7 -0
- package/dist/components/salla-tabby.js +18 -0
- package/dist/components/salla-tamara.d.ts +7 -0
- package/dist/components/salla-tamara.js +19 -0
- package/dist/components/salla-tel-input.d.ts +7 -0
- package/dist/components/salla-tel-input.js +1477 -0
- package/dist/components/salla-verify-modal.d.ts +7 -0
- package/dist/components/salla-verify-modal.js +147 -0
- package/dist/esm/{index-8b97d225.js → index-2423ebcb.js} +293 -8
- package/dist/esm/index.js +1 -4
- package/dist/esm/loader.js +2 -2
- package/dist/esm/salla-branches.entry.js +2 -2
- package/dist/esm/salla-button.entry.js +9 -9
- package/dist/esm/salla-conditional-fields.entry.js +86 -0
- package/dist/esm/salla-infinite-scroll.entry.js +2 -2
- package/dist/esm/salla-localization-modal.entry.js +2 -2
- package/dist/esm/salla-login-modal.entry.js +202 -3
- package/dist/esm/salla-modal_2.entry.js +87 -4
- package/dist/esm/salla-offer-modal.entry.js +2 -2
- package/dist/esm/salla-product-availability.entry.js +2 -2
- package/dist/esm/salla-quantity-input.entry.js +63 -0
- package/dist/esm/salla-rating-modal.entry.js +6 -56
- package/dist/esm/salla-rating-stars.entry.js +76 -0
- package/dist/esm/salla-tabby.entry.js +15 -0
- package/dist/esm/salla-tamara.entry.js +15 -0
- package/dist/esm/salla-tel-input.entry.js +2 -2
- package/dist/esm/salla-verify-modal.entry.js +2 -2
- package/dist/esm/twilight-components.js +2 -2
- package/dist/twilight-components/index.esm.js +0 -1
- package/dist/twilight-components/p-01accdcd.entry.js +1 -0
- package/dist/twilight-components/p-0e85664f.entry.js +1 -0
- package/dist/twilight-components/p-0ee36dd8.entry.js +1 -0
- package/dist/twilight-components/p-1fb0ca8a.js +1 -0
- package/dist/twilight-components/p-1ffd27c4.entry.js +1 -0
- package/dist/twilight-components/p-2012882b.entry.js +1 -0
- package/dist/twilight-components/p-3d9fd3d3.entry.js +1 -0
- package/dist/twilight-components/p-5b2cdd7c.entry.js +1 -0
- package/dist/twilight-components/p-728bd268.entry.js +1 -0
- package/dist/twilight-components/p-72985a41.entry.js +1 -0
- package/dist/twilight-components/p-747f80df.entry.js +1 -0
- package/dist/twilight-components/p-81a7a676.entry.js +1 -0
- package/dist/twilight-components/p-880711d4.entry.js +1 -0
- package/dist/twilight-components/p-8dd742df.entry.js +1 -0
- package/dist/twilight-components/p-9642541b.entry.js +1 -0
- package/dist/twilight-components/p-a24588ab.entry.js +1 -0
- package/dist/twilight-components/p-e3cbda45.entry.js +1 -0
- package/dist/twilight-components/twilight-components.css +1 -1
- package/dist/twilight-components/twilight-components.esm.js +1 -1
- package/dist/types/components/salla-button/salla-button.d.ts +2 -2
- package/dist/types/components/salla-conditional-fields/salla-conditional-fields.d.ts +10 -0
- package/dist/types/components/salla-quantity-input/salla-quantity-input.d.ts +19 -0
- package/dist/types/components/salla-rating-modal/salla-rating-modal.d.ts +0 -3
- package/dist/types/components/salla-rating-stars/salla-rating-stars.d.ts +11 -0
- package/dist/types/components/salla-tabby/salla-tabby.d.ts +3 -0
- package/dist/types/components/salla-tamara/salla-tamara.d.ts +3 -0
- package/dist/types/components.d.ts +79 -8
- package/dist/types/index.d.ts +1 -2
- package/example/assets/images/star.png +0 -0
- package/example/dist/tailwind.css +964 -329
- package/example/dist/twilight.js +437 -2
- package/example/index.html +681 -125
- package/package.json +17 -10
- package/dist/cjs/salla-login-modal-02e4e65e.js +0 -204
- package/dist/cjs/salla-search-9d17eb96.js +0 -90
- package/dist/esm/salla-login-modal-7ad386c8.js +0 -202
- package/dist/esm/salla-search-ce45eb5b.js +0 -88
- package/dist/loader/cdn.js +0 -3
- package/dist/loader/index.cjs.js +0 -3
- package/dist/loader/index.d.ts +0 -13
- package/dist/loader/index.es2017.js +0 -3
- package/dist/loader/index.js +0 -4
- package/dist/loader/package.json +0 -10
- package/dist/twilight-components/p-1514ed09.js +0 -1
- package/dist/twilight-components/p-2a032b88.entry.js +0 -1
- package/dist/twilight-components/p-2f3f4cce.entry.js +0 -1
- package/dist/twilight-components/p-635c08a7.entry.js +0 -1
- package/dist/twilight-components/p-646fbb7f.entry.js +0 -1
- package/dist/twilight-components/p-64977eab.entry.js +0 -1
- package/dist/twilight-components/p-79ab1ed9.entry.js +0 -1
- package/dist/twilight-components/p-7c4ba872.entry.js +0 -1
- package/dist/twilight-components/p-84936d9d.entry.js +0 -1
- package/dist/twilight-components/p-884a80ca.entry.js +0 -1
- package/dist/twilight-components/p-c51984d6.entry.js +0 -1
- package/dist/twilight-components/p-cb1c59a2.js +0 -1
- package/dist/twilight-components/p-ebd63ad4.js +0 -1
- package/dist/twilight-components/p-ee9d8563.entry.js +0 -1
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
|
+
import { H as Helper } from './Helper.js';
|
|
3
|
+
|
|
4
|
+
const sallaVerifyModalCss = ".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}salla-verify-modal{display:block}[dir=ltr] #s-verify-modal .s-verify-modal-back{transform:scale(-1)}";
|
|
5
|
+
|
|
6
|
+
const SallaVerifyModal$1 = class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.verified = createEvent(this, "verified", 7);
|
|
11
|
+
// Helper.setHost(this.host);
|
|
12
|
+
this.initiated = false;
|
|
13
|
+
/**
|
|
14
|
+
* Verifying method
|
|
15
|
+
*/
|
|
16
|
+
this.by = 'sms';
|
|
17
|
+
/**
|
|
18
|
+
* should auto reloading the page after success verification
|
|
19
|
+
*/
|
|
20
|
+
this.autoReload = true;
|
|
21
|
+
if (this.withoutModal) {
|
|
22
|
+
this.modal = { show: () => '', hide: () => '' };
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
salla.event.on('profile::verify.mobile', data => {
|
|
26
|
+
this.url = 'profile/verify-mobile';
|
|
27
|
+
this.show(data);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
salla.event.on('languages::translations.loaded', () => {
|
|
31
|
+
var _a;
|
|
32
|
+
this.title = salla.lang.get('pages.profile.verify_title');
|
|
33
|
+
(_a = this.btn) === null || _a === void 0 ? void 0 : _a.setText(salla.lang.get('pages.profile.verify'));
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Get current code
|
|
38
|
+
* @return {string}
|
|
39
|
+
*/
|
|
40
|
+
async getCode() {
|
|
41
|
+
return this.code.value;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Show verifying modal
|
|
45
|
+
* @param data
|
|
46
|
+
*/
|
|
47
|
+
async show(data) {
|
|
48
|
+
var _a;
|
|
49
|
+
this.data = data;
|
|
50
|
+
this.resendTimer();
|
|
51
|
+
this.otpInputs = this.host.querySelectorAll('.s-verify-modal-input');
|
|
52
|
+
if (!this.initiated) {
|
|
53
|
+
Helper.on('input', '.s-verify-modal-input', e => salla.helpers.inputDigitsOnly(e.target));
|
|
54
|
+
Helper.onKeyUp('.s-verify-modal-input', event => {
|
|
55
|
+
var _a, _b, _c, _d;
|
|
56
|
+
let key = event.keyCode || event.charCode;
|
|
57
|
+
if (event.target.value) {
|
|
58
|
+
(_a = event.target.nextElementSibling) === null || _a === void 0 ? void 0 : _a.focus();
|
|
59
|
+
(_b = event.target.nextElementSibling) === null || _b === void 0 ? void 0 : _b.select();
|
|
60
|
+
}
|
|
61
|
+
else if ([8, 46].includes(key)) {
|
|
62
|
+
(_c = event.target.previousElementSibling) === null || _c === void 0 ? void 0 : _c.focus();
|
|
63
|
+
(_d = event.target.previousElementSibling) === null || _d === void 0 ? void 0 : _d.select();
|
|
64
|
+
}
|
|
65
|
+
this.toggleOTPSubmit();
|
|
66
|
+
});
|
|
67
|
+
Helper.on('paste', '.s-verify-modal-input', event => {
|
|
68
|
+
let text = salla.helpers.number(event.clipboardData.getData('text')).replace(/[^0-9.]/g, '').replace('..', '.');
|
|
69
|
+
this.otpInputs.forEach((input, i) => input.value = text[i] || '');
|
|
70
|
+
this.toggleOTPSubmit();
|
|
71
|
+
setTimeout(() => this.otpInputs[3].focus(), 100);
|
|
72
|
+
});
|
|
73
|
+
// return this.modal.show();
|
|
74
|
+
this.initiated = true;
|
|
75
|
+
}
|
|
76
|
+
this.reset();
|
|
77
|
+
!this.withoutModal && ((_a = this.modal) === null || _a === void 0 ? void 0 : _a.setTitle(this.title));
|
|
78
|
+
this.modal.show();
|
|
79
|
+
}
|
|
80
|
+
toggleOTPSubmit() {
|
|
81
|
+
let otp = [];
|
|
82
|
+
this.otpInputs.forEach(input => input.value && otp.push(input.value));
|
|
83
|
+
this.code.value = otp.join('');
|
|
84
|
+
if (otp.length === 4) {
|
|
85
|
+
this.btn.removeAttribute('disabled');
|
|
86
|
+
this.btn.click();
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
this.btn.setAttribute('disabled', '');
|
|
90
|
+
}
|
|
91
|
+
reset() {
|
|
92
|
+
this.otpInputs.forEach((input) => input.value = '');
|
|
93
|
+
this.code.value = '';
|
|
94
|
+
this.otpInputs[0].focus();
|
|
95
|
+
}
|
|
96
|
+
resendTimer() {
|
|
97
|
+
Helper.showElement(this.resendMessage).hideElement(this.resend);
|
|
98
|
+
let resendAfter = 30;
|
|
99
|
+
let timerId = setInterval(() => {
|
|
100
|
+
if (resendAfter === -1) {
|
|
101
|
+
clearTimeout(timerId);
|
|
102
|
+
Helper.hideElement(this.resendMessage).showElement(this.resend);
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
this.timer.innerHTML = `${resendAfter >= 10 ? resendAfter : '0' + resendAfter} : 00`;
|
|
106
|
+
resendAfter--;
|
|
107
|
+
}
|
|
108
|
+
}, 1000);
|
|
109
|
+
}
|
|
110
|
+
resendCode() {
|
|
111
|
+
return this.btn.stop()
|
|
112
|
+
.then(() => this.btn.disable())
|
|
113
|
+
.then(() => {
|
|
114
|
+
this.otpInputs.forEach(input => input.value = '');
|
|
115
|
+
this.otpInputs[0].focus();
|
|
116
|
+
})
|
|
117
|
+
.then(() => salla.api.auth.resend(Object.assign({ resend_by: this.by }, this.data)))
|
|
118
|
+
.then(() => this.resendTimer())
|
|
119
|
+
.catch(() => this.resendTimer());
|
|
120
|
+
}
|
|
121
|
+
submit() {
|
|
122
|
+
let data = Object.assign({ code: this.code.value }, this.data);
|
|
123
|
+
return this.btn.load()
|
|
124
|
+
.then(() => this.btn.disable())
|
|
125
|
+
.then(() => this.url
|
|
126
|
+
? salla.api.auth.request(this.url, data)
|
|
127
|
+
: salla.api.auth.verify(this.by == 'sms' ? 'mobile' : this.by, data))
|
|
128
|
+
.then(response => this.verified.emit(response))
|
|
129
|
+
.then(() => this.btn.stop() && this.btn.disable())
|
|
130
|
+
.then(() => this.modal.hide())
|
|
131
|
+
.then(() => this.autoReload && window.location.reload())
|
|
132
|
+
.catch(() => this.btn.stop() && this.btn.enable() && this.reset());
|
|
133
|
+
}
|
|
134
|
+
render() {
|
|
135
|
+
return this.withoutModal ? h(Host, null, this.myBody()) :
|
|
136
|
+
h("salla-modal", { icon: "sicon-android-phone", width: "xs", id: "s-verify-modal", ref: modal => this.modal = modal, title: this.title }, this.myBody());
|
|
137
|
+
}
|
|
138
|
+
myBody() {
|
|
139
|
+
return (h("div", { id: "s-verify-modal" }, h("div", { class: "s-verify-modal-message", innerHTML: salla.lang.get('pages.profile.verify_message') }), h("input", { type: "hidden", name: "code", maxlength: "4", required: true, ref: code => this.code = code }), h("div", { class: "s-verify-modal-codes", dir: "ltr" }, [1, 2, 3, 4].map(() => h("input", { type: "text", maxlength: "1", class: "s-verify-modal-input", required: true }))), h("div", { slot: "footer", class: "s-verify-modal-footer" }, h("salla-button", { class: "s-verify-modal-submit", "loader-position": 'center', disabled: true, onClick: () => this.submit(), ref: b => this.btn = b }, salla.lang.get('pages.profile.verify')), h("p", { class: "s-verify-modal-resend-message", ref: el => this.resendMessage = el }, salla.lang.get('blocks.header.resend_after'), h("b", { class: "s-verify-modal-timer", ref: el => this.timer = el })), h("a", { href: "#", class: "s-verify-modal-resend", onClick: () => this.resendCode(), ref: el => this.resend = el }, salla.lang.get('blocks.comments.submit'))), h("slot", { name: "after-footer" })));
|
|
140
|
+
}
|
|
141
|
+
get host() { return this; }
|
|
142
|
+
static get style() { return sallaVerifyModalCss; }
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
const SallaVerifyModal = /*@__PURE__*/proxyCustomElement(SallaVerifyModal$1, [4,"salla-verify-modal",{"withoutModal":[4,"without-modal"],"url":[513],"by":[1],"autoReload":[4,"auto-reload"],"title":[32]}]);
|
|
146
|
+
|
|
147
|
+
export { SallaVerifyModal };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const NAMESPACE = 'twilight-components';
|
|
2
2
|
|
|
3
|
+
let scopeId;
|
|
3
4
|
let contentRef;
|
|
4
5
|
let hostTagName;
|
|
5
6
|
let useNativeShadowDom = false;
|
|
@@ -18,6 +19,7 @@ const plt = {
|
|
|
18
19
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
19
20
|
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
20
21
|
};
|
|
22
|
+
const supportsShadow = true;
|
|
21
23
|
const promiseResolve = (v) => Promise.resolve(v);
|
|
22
24
|
const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
|
|
23
25
|
try {
|
|
@@ -57,6 +59,13 @@ const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
57
59
|
};
|
|
58
60
|
// prettier-ignore
|
|
59
61
|
const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
|
|
62
|
+
const CONTENT_REF_ID = 'r';
|
|
63
|
+
const ORG_LOCATION_ID = 'o';
|
|
64
|
+
const SLOT_NODE_ID = 's';
|
|
65
|
+
const TEXT_NODE_ID = 't';
|
|
66
|
+
const HYDRATE_ID = 's-id';
|
|
67
|
+
const HYDRATED_STYLE_ID = 'sty-id';
|
|
68
|
+
const HYDRATE_CHILD_ID = 'c-id';
|
|
60
69
|
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
61
70
|
const XLINK_NS = 'http://www.w3.org/1999/xlink';
|
|
62
71
|
const createTime = (fnName, tagName = '') => {
|
|
@@ -100,7 +109,12 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
100
109
|
rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
|
|
101
110
|
}
|
|
102
111
|
if (!appliedStyles.has(scopeId)) {
|
|
103
|
-
|
|
112
|
+
if (styleContainerNode.host &&
|
|
113
|
+
(styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId}"]`))) {
|
|
114
|
+
// This is only happening on native shadow-dom, do not needs CSS var shim
|
|
115
|
+
styleElm.innerHTML = style;
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
104
118
|
{
|
|
105
119
|
styleElm = doc.createElement('style');
|
|
106
120
|
styleElm.innerHTML = style;
|
|
@@ -121,11 +135,24 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
121
135
|
const attachStyles = (hostRef) => {
|
|
122
136
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
123
137
|
const elm = hostRef.$hostElement$;
|
|
138
|
+
const flags = cmpMeta.$flags$;
|
|
124
139
|
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
|
125
|
-
addStyle(elm.getRootNode(), cmpMeta);
|
|
140
|
+
const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
|
|
141
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
142
|
+
// only required when we're NOT using native shadow dom (slot)
|
|
143
|
+
// or this browser doesn't support native shadow dom
|
|
144
|
+
// and this host element was NOT created with SSR
|
|
145
|
+
// let's pick out the inner content for slot projection
|
|
146
|
+
// create a node to represent where the original
|
|
147
|
+
// content was first placed, which is useful later on
|
|
148
|
+
// DOM WRITE!!
|
|
149
|
+
elm['s-sc'] = scopeId;
|
|
150
|
+
elm.classList.add(scopeId + '-h');
|
|
151
|
+
}
|
|
126
152
|
endAttachStyles();
|
|
127
153
|
};
|
|
128
154
|
const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
155
|
+
const convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, '$1{');
|
|
129
156
|
/**
|
|
130
157
|
* Default style mode id
|
|
131
158
|
*/
|
|
@@ -134,6 +161,7 @@ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
|
134
161
|
* Don't add values to these!!
|
|
135
162
|
*/
|
|
136
163
|
const EMPTY_OBJ = {};
|
|
164
|
+
const isDef = (v) => v != null;
|
|
137
165
|
const isComplexType = (o) => {
|
|
138
166
|
// https://jsperf.com/typeof-fn-object/5
|
|
139
167
|
o = typeof o;
|
|
@@ -418,6 +446,10 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
418
446
|
// remember for later we need to check to relocate nodes
|
|
419
447
|
checkSlotRelocate = true;
|
|
420
448
|
if (newVNode.$tag$ === 'slot') {
|
|
449
|
+
if (scopeId) {
|
|
450
|
+
// scoped css needs to add its scoped id to the parent element
|
|
451
|
+
parentElm.classList.add(scopeId + '-s');
|
|
452
|
+
}
|
|
421
453
|
newVNode.$flags$ |= newVNode.$children$
|
|
422
454
|
? // slot element has fallback content
|
|
423
455
|
2 /* isSlotFallback */
|
|
@@ -443,10 +475,15 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
443
475
|
{
|
|
444
476
|
updateElement(null, newVNode, isSvgMode);
|
|
445
477
|
}
|
|
478
|
+
if (isDef(scopeId) && elm['s-si'] !== scopeId) {
|
|
479
|
+
// if there is a scopeId and this is the initial render
|
|
480
|
+
// then let's add the scopeId as a css class
|
|
481
|
+
elm.classList.add((elm['s-si'] = scopeId));
|
|
482
|
+
}
|
|
446
483
|
if (newVNode.$children$) {
|
|
447
484
|
for (i = 0; i < newVNode.$children$.length; ++i) {
|
|
448
485
|
// create the node
|
|
449
|
-
childNode = createElm(oldParentVNode, newVNode, i);
|
|
486
|
+
childNode = createElm(oldParentVNode, newVNode, i, elm);
|
|
450
487
|
// return node could have been null
|
|
451
488
|
if (childNode) {
|
|
452
489
|
// append our new node
|
|
@@ -502,9 +539,12 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
502
539
|
const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
503
540
|
let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
|
|
504
541
|
let childNode;
|
|
542
|
+
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
543
|
+
containerElm = containerElm.shadowRoot;
|
|
544
|
+
}
|
|
505
545
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
506
546
|
if (vnodes[startIdx]) {
|
|
507
|
-
childNode = createElm(null, parentVNode, startIdx);
|
|
547
|
+
childNode = createElm(null, parentVNode, startIdx, parentElm);
|
|
508
548
|
if (childNode) {
|
|
509
549
|
vnodes[startIdx].$elm$ = childNode;
|
|
510
550
|
containerElm.insertBefore(childNode, referenceNode(before) );
|
|
@@ -607,7 +647,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
607
647
|
if (idxInOld >= 0) {
|
|
608
648
|
elmToMove = oldCh[idxInOld];
|
|
609
649
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
610
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
|
|
650
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
|
|
611
651
|
}
|
|
612
652
|
else {
|
|
613
653
|
patch(elmToMove, newStartVnode);
|
|
@@ -618,7 +658,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
618
658
|
}
|
|
619
659
|
else {
|
|
620
660
|
// new element
|
|
621
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
|
|
661
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
|
|
622
662
|
newStartVnode = newCh[++newStartIdx];
|
|
623
663
|
}
|
|
624
664
|
if (node) {
|
|
@@ -853,7 +893,10 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
853
893
|
rootVnode.$tag$ = null;
|
|
854
894
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
855
895
|
hostRef.$vnode$ = rootVnode;
|
|
856
|
-
rootVnode.$elm$ = oldVNode.$elm$ = (hostElm);
|
|
896
|
+
rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
|
|
897
|
+
{
|
|
898
|
+
scopeId = hostElm['s-sc'];
|
|
899
|
+
}
|
|
857
900
|
{
|
|
858
901
|
contentRef = hostElm['s-cr'];
|
|
859
902
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
@@ -1136,6 +1179,211 @@ const then = (promise, thenFn) => {
|
|
|
1136
1179
|
};
|
|
1137
1180
|
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
1138
1181
|
;
|
|
1182
|
+
const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
1183
|
+
const endHydrate = createTime('hydrateClient', tagName);
|
|
1184
|
+
const shadowRoot = hostElm.shadowRoot;
|
|
1185
|
+
const childRenderNodes = [];
|
|
1186
|
+
const slotNodes = [];
|
|
1187
|
+
const shadowRootNodes = shadowRoot ? [] : null;
|
|
1188
|
+
const vnode = (hostRef.$vnode$ = newVNode(tagName, null));
|
|
1189
|
+
if (!plt.$orgLocNodes$) {
|
|
1190
|
+
initializeDocumentHydrate(doc.body, (plt.$orgLocNodes$ = new Map()));
|
|
1191
|
+
}
|
|
1192
|
+
hostElm[HYDRATE_ID] = hostId;
|
|
1193
|
+
hostElm.removeAttribute(HYDRATE_ID);
|
|
1194
|
+
clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
|
|
1195
|
+
childRenderNodes.map((c) => {
|
|
1196
|
+
const orgLocationId = c.$hostId$ + '.' + c.$nodeId$;
|
|
1197
|
+
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
1198
|
+
const node = c.$elm$;
|
|
1199
|
+
if (orgLocationNode && supportsShadow && orgLocationNode['s-en'] === '') {
|
|
1200
|
+
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
1201
|
+
}
|
|
1202
|
+
if (!shadowRoot) {
|
|
1203
|
+
node['s-hn'] = tagName;
|
|
1204
|
+
if (orgLocationNode) {
|
|
1205
|
+
node['s-ol'] = orgLocationNode;
|
|
1206
|
+
node['s-ol']['s-nr'] = node;
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
plt.$orgLocNodes$.delete(orgLocationId);
|
|
1210
|
+
});
|
|
1211
|
+
if (shadowRoot) {
|
|
1212
|
+
shadowRootNodes.map((shadowRootNode) => {
|
|
1213
|
+
if (shadowRootNode) {
|
|
1214
|
+
shadowRoot.appendChild(shadowRootNode);
|
|
1215
|
+
}
|
|
1216
|
+
});
|
|
1217
|
+
}
|
|
1218
|
+
endHydrate();
|
|
1219
|
+
};
|
|
1220
|
+
const clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
|
|
1221
|
+
let childNodeType;
|
|
1222
|
+
let childIdSplt;
|
|
1223
|
+
let childVNode;
|
|
1224
|
+
let i;
|
|
1225
|
+
if (node.nodeType === 1 /* ElementNode */) {
|
|
1226
|
+
childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
|
|
1227
|
+
if (childNodeType) {
|
|
1228
|
+
// got the node data from the element's attribute
|
|
1229
|
+
// `${hostId}.${nodeId}.${depth}.${index}`
|
|
1230
|
+
childIdSplt = childNodeType.split('.');
|
|
1231
|
+
if (childIdSplt[0] === hostId || childIdSplt[0] === '0') {
|
|
1232
|
+
childVNode = {
|
|
1233
|
+
$flags$: 0,
|
|
1234
|
+
$hostId$: childIdSplt[0],
|
|
1235
|
+
$nodeId$: childIdSplt[1],
|
|
1236
|
+
$depth$: childIdSplt[2],
|
|
1237
|
+
$index$: childIdSplt[3],
|
|
1238
|
+
$tag$: node.tagName.toLowerCase(),
|
|
1239
|
+
$elm$: node,
|
|
1240
|
+
$attrs$: null,
|
|
1241
|
+
$children$: null,
|
|
1242
|
+
$key$: null,
|
|
1243
|
+
$name$: null,
|
|
1244
|
+
$text$: null,
|
|
1245
|
+
};
|
|
1246
|
+
childRenderNodes.push(childVNode);
|
|
1247
|
+
node.removeAttribute(HYDRATE_CHILD_ID);
|
|
1248
|
+
// this is a new child vnode
|
|
1249
|
+
// so ensure its parent vnode has the vchildren array
|
|
1250
|
+
if (!parentVNode.$children$) {
|
|
1251
|
+
parentVNode.$children$ = [];
|
|
1252
|
+
}
|
|
1253
|
+
// add our child vnode to a specific index of the vnode's children
|
|
1254
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1255
|
+
// this is now the new parent vnode for all the next child checks
|
|
1256
|
+
parentVNode = childVNode;
|
|
1257
|
+
if (shadowRootNodes && childVNode.$depth$ === '0') {
|
|
1258
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
// recursively drill down, end to start so we can remove nodes
|
|
1263
|
+
for (i = node.childNodes.length - 1; i >= 0; i--) {
|
|
1264
|
+
clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.childNodes[i], hostId);
|
|
1265
|
+
}
|
|
1266
|
+
if (node.shadowRoot) {
|
|
1267
|
+
// keep drilling down through the shadow root nodes
|
|
1268
|
+
for (i = node.shadowRoot.childNodes.length - 1; i >= 0; i--) {
|
|
1269
|
+
clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.shadowRoot.childNodes[i], hostId);
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
else if (node.nodeType === 8 /* CommentNode */) {
|
|
1274
|
+
// `${COMMENT_TYPE}.${hostId}.${nodeId}.${depth}.${index}`
|
|
1275
|
+
childIdSplt = node.nodeValue.split('.');
|
|
1276
|
+
if (childIdSplt[1] === hostId || childIdSplt[1] === '0') {
|
|
1277
|
+
// comment node for either the host id or a 0 host id
|
|
1278
|
+
childNodeType = childIdSplt[0];
|
|
1279
|
+
childVNode = {
|
|
1280
|
+
$flags$: 0,
|
|
1281
|
+
$hostId$: childIdSplt[1],
|
|
1282
|
+
$nodeId$: childIdSplt[2],
|
|
1283
|
+
$depth$: childIdSplt[3],
|
|
1284
|
+
$index$: childIdSplt[4],
|
|
1285
|
+
$elm$: node,
|
|
1286
|
+
$attrs$: null,
|
|
1287
|
+
$children$: null,
|
|
1288
|
+
$key$: null,
|
|
1289
|
+
$name$: null,
|
|
1290
|
+
$tag$: null,
|
|
1291
|
+
$text$: null,
|
|
1292
|
+
};
|
|
1293
|
+
if (childNodeType === TEXT_NODE_ID) {
|
|
1294
|
+
childVNode.$elm$ = node.nextSibling;
|
|
1295
|
+
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
|
|
1296
|
+
childVNode.$text$ = childVNode.$elm$.textContent;
|
|
1297
|
+
childRenderNodes.push(childVNode);
|
|
1298
|
+
// remove the text comment since it's no longer needed
|
|
1299
|
+
node.remove();
|
|
1300
|
+
if (!parentVNode.$children$) {
|
|
1301
|
+
parentVNode.$children$ = [];
|
|
1302
|
+
}
|
|
1303
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1304
|
+
if (shadowRootNodes && childVNode.$depth$ === '0') {
|
|
1305
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
else if (childVNode.$hostId$ === hostId) {
|
|
1310
|
+
// this comment node is specifcally for this host id
|
|
1311
|
+
if (childNodeType === SLOT_NODE_ID) {
|
|
1312
|
+
// `${SLOT_NODE_ID}.${hostId}.${nodeId}.${depth}.${index}.${slotName}`;
|
|
1313
|
+
childVNode.$tag$ = 'slot';
|
|
1314
|
+
if (childIdSplt[5]) {
|
|
1315
|
+
node['s-sn'] = childVNode.$name$ = childIdSplt[5];
|
|
1316
|
+
}
|
|
1317
|
+
else {
|
|
1318
|
+
node['s-sn'] = '';
|
|
1319
|
+
}
|
|
1320
|
+
node['s-sr'] = true;
|
|
1321
|
+
if (shadowRootNodes) {
|
|
1322
|
+
// browser support shadowRoot and this is a shadow dom component
|
|
1323
|
+
// create an actual slot element
|
|
1324
|
+
childVNode.$elm$ = doc.createElement(childVNode.$tag$);
|
|
1325
|
+
if (childVNode.$name$) {
|
|
1326
|
+
// add the slot name attribute
|
|
1327
|
+
childVNode.$elm$.setAttribute('name', childVNode.$name$);
|
|
1328
|
+
}
|
|
1329
|
+
// insert the new slot element before the slot comment
|
|
1330
|
+
node.parentNode.insertBefore(childVNode.$elm$, node);
|
|
1331
|
+
// remove the slot comment since it's not needed for shadow
|
|
1332
|
+
node.remove();
|
|
1333
|
+
if (childVNode.$depth$ === '0') {
|
|
1334
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
slotNodes.push(childVNode);
|
|
1338
|
+
if (!parentVNode.$children$) {
|
|
1339
|
+
parentVNode.$children$ = [];
|
|
1340
|
+
}
|
|
1341
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1342
|
+
}
|
|
1343
|
+
else if (childNodeType === CONTENT_REF_ID) {
|
|
1344
|
+
// `${CONTENT_REF_ID}.${hostId}`;
|
|
1345
|
+
if (shadowRootNodes) {
|
|
1346
|
+
// remove the content ref comment since it's not needed for shadow
|
|
1347
|
+
node.remove();
|
|
1348
|
+
}
|
|
1349
|
+
else {
|
|
1350
|
+
hostElm['s-cr'] = node;
|
|
1351
|
+
node['s-cn'] = true;
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
else if (parentVNode && parentVNode.$tag$ === 'style') {
|
|
1358
|
+
const vnode = newVNode(null, node.textContent);
|
|
1359
|
+
vnode.$elm$ = node;
|
|
1360
|
+
vnode.$index$ = '0';
|
|
1361
|
+
parentVNode.$children$ = [vnode];
|
|
1362
|
+
}
|
|
1363
|
+
};
|
|
1364
|
+
const initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
1365
|
+
if (node.nodeType === 1 /* ElementNode */) {
|
|
1366
|
+
let i = 0;
|
|
1367
|
+
for (; i < node.childNodes.length; i++) {
|
|
1368
|
+
initializeDocumentHydrate(node.childNodes[i], orgLocNodes);
|
|
1369
|
+
}
|
|
1370
|
+
if (node.shadowRoot) {
|
|
1371
|
+
for (i = 0; i < node.shadowRoot.childNodes.length; i++) {
|
|
1372
|
+
initializeDocumentHydrate(node.shadowRoot.childNodes[i], orgLocNodes);
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
else if (node.nodeType === 8 /* CommentNode */) {
|
|
1377
|
+
const childIdSplt = node.nodeValue.split('.');
|
|
1378
|
+
if (childIdSplt[0] === ORG_LOCATION_ID) {
|
|
1379
|
+
orgLocNodes.set(childIdSplt[1] + '.' + childIdSplt[2], node);
|
|
1380
|
+
node.nodeValue = '';
|
|
1381
|
+
// useful to know if the original location is
|
|
1382
|
+
// the root light-dom of a shadow dom component
|
|
1383
|
+
node['s-en'] = childIdSplt[3];
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
};
|
|
1139
1387
|
const parsePropertyValue = (propValue, propType) => {
|
|
1140
1388
|
// ensure this value is of the correct prop type
|
|
1141
1389
|
if (propValue != null && !isComplexType(propValue)) {
|
|
@@ -1383,7 +1631,18 @@ const connectedCallback = (elm) => {
|
|
|
1383
1631
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
1384
1632
|
// first time this component has connected
|
|
1385
1633
|
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
1634
|
+
let hostId;
|
|
1386
1635
|
{
|
|
1636
|
+
hostId = elm.getAttribute(HYDRATE_ID);
|
|
1637
|
+
if (hostId) {
|
|
1638
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1639
|
+
const scopeId = addStyle(elm.shadowRoot, cmpMeta);
|
|
1640
|
+
elm.classList.remove(scopeId + '-h', scopeId + '-s');
|
|
1641
|
+
}
|
|
1642
|
+
initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
if (!hostId) {
|
|
1387
1646
|
// initUpdate
|
|
1388
1647
|
// if the slot polyfill is required we'll need to put some nodes
|
|
1389
1648
|
// in here to act as original content anchors as we move nodes around
|
|
@@ -1399,7 +1658,10 @@ const connectedCallback = (elm) => {
|
|
|
1399
1658
|
while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
|
|
1400
1659
|
// climb up the ancestors looking for the first
|
|
1401
1660
|
// component that hasn't finished its lifecycle update yet
|
|
1402
|
-
if (ancestorComponent
|
|
1661
|
+
if ((ancestorComponent.nodeType === 1 /* ElementNode */ &&
|
|
1662
|
+
ancestorComponent.hasAttribute('s-id') &&
|
|
1663
|
+
ancestorComponent['s-p']) ||
|
|
1664
|
+
ancestorComponent['s-p']) {
|
|
1403
1665
|
// we found this components first ancestor component
|
|
1404
1666
|
// keep a reference to this component's ancestor component
|
|
1405
1667
|
attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
|
|
@@ -1462,10 +1724,22 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1462
1724
|
const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
|
|
1463
1725
|
const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
|
|
1464
1726
|
const deferredConnectedCallbacks = [];
|
|
1727
|
+
const styles = /*@__PURE__*/ doc.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
|
|
1465
1728
|
let appLoadFallback;
|
|
1466
1729
|
let isBootstrapping = true;
|
|
1730
|
+
let i = 0;
|
|
1467
1731
|
Object.assign(plt, options);
|
|
1468
1732
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
|
|
1733
|
+
{
|
|
1734
|
+
// If the app is already hydrated there is not point to disable the
|
|
1735
|
+
// async queue. This will improve the first input delay
|
|
1736
|
+
plt.$flags$ |= 2 /* appLoaded */;
|
|
1737
|
+
}
|
|
1738
|
+
{
|
|
1739
|
+
for (; i < styles.length; i++) {
|
|
1740
|
+
registerStyle(styles[i].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles[i].innerHTML), true);
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1469
1743
|
lazyBundles.map((lazyBundle) => lazyBundle[1].map((compactMeta) => {
|
|
1470
1744
|
const cmpMeta = {
|
|
1471
1745
|
$flags$: compactMeta[0],
|
|
@@ -1493,6 +1767,17 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1493
1767
|
super(self);
|
|
1494
1768
|
self = this;
|
|
1495
1769
|
registerHost(self, cmpMeta);
|
|
1770
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1771
|
+
// this component is using shadow dom
|
|
1772
|
+
// and this browser supports shadow dom
|
|
1773
|
+
// add the read-only property "shadowRoot" to the host element
|
|
1774
|
+
// adding the shadow root build conditionals to minimize runtime
|
|
1775
|
+
{
|
|
1776
|
+
{
|
|
1777
|
+
self.attachShadow({ mode: 'open' });
|
|
1778
|
+
}
|
|
1779
|
+
}
|
|
1780
|
+
}
|
|
1496
1781
|
}
|
|
1497
1782
|
connectedCallback() {
|
|
1498
1783
|
if (appLoadFallback) {
|
package/dist/esm/index.js
CHANGED
package/dist/esm/loader.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-2423ebcb.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
Stencil Client Patch Esm v2.8.1 | MIT Licensed | https://stenciljs.com
|
|
@@ -10,7 +10,7 @@ const patchEsm = () => {
|
|
|
10
10
|
const defineCustomElements = (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
12
|
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy([["salla-
|
|
13
|
+
return bootstrapLazy([["salla-modal_2",[[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"],"title":[32],"show":[64],"hide":[64],"setTitle":[64],"loading":[64],"stopLoading":[64]}]]],["salla-login-modal",[[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",[[4,"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",[[0,"salla-rating-modal",{"orderId":[2,"order-id"],"order":[32],"show":[64],"hide":[64]}]]],["salla-branches",[[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",[[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",[[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",[[4,"salla-conditional-fields",null,[[0,"change","changeHandler"]]]]],["salla-infinite-scroll",[[4,"salla-infinite-scroll",{"nextPage":[1,"next-page"],"nextPageAutoload":[1028,"next-page-autoload"],"container":[1],"item":[1],"loadMore":[32],"noMore":[32],"failedToLoad":[32]}]]],["salla-quantity-input",[[4,"salla-quantity-input",{"quantity":[32]}]]],["salla-tabby",[[4,"salla-tabby"]]],["salla-tamara",[[1,"salla-tamara"]]],["salla-verify-modal",[[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",[[0,"salla-rating-stars",{"name":[1],"size":[1],"value":[2]}]]],["salla-tel-input",[[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]}]]],["salla-button",[[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]}]]]], options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|