@salla.sa/twilight-components 1.6.15-alpha.20 → 1.6.15-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/dist/cjs/{index-ccab76e9.js → index-a7bec25d.js} +2 -2
  2. package/dist/cjs/{index-2d91726c.js → index-cac2fd59.js} +10 -89
  3. package/dist/cjs/loader.cjs.js +3 -3
  4. package/dist/cjs/salla-add-product-button.cjs.entry.js +1 -1
  5. package/dist/cjs/{salla-button_29.cjs.entry.js → salla-button_27.cjs.entry.js} +107 -231
  6. package/dist/cjs/salla-conditional-fields.cjs.entry.js +1 -1
  7. package/dist/cjs/salla-installment.cjs.entry.js +9 -4
  8. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  9. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  10. package/dist/cjs/salla-select.cjs.entry.js +1 -1
  11. package/dist/cjs/twilight.cjs.js +3 -3
  12. package/dist/collection/Helpers/Helper.js +15 -22
  13. package/dist/collection/collection-manifest.json +0 -2
  14. package/dist/collection/components/salla-gifting/salla-gifting.js +3 -9
  15. package/dist/collection/components/salla-infinite-scroll/salla-infinite-scroll.js +2 -1
  16. package/dist/collection/components/salla-installment/salla-installment.css +0 -3
  17. package/dist/collection/components/salla-installment/salla-installment.js +7 -2
  18. package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +4 -2
  19. package/dist/collection/components/salla-login-modal/salla-login-modal.js +1 -1
  20. package/dist/collection/components/salla-modal/salla-modal.js +9 -18
  21. package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +28 -61
  22. package/dist/collection/components/salla-placeholder/salla-placeholder.js +6 -6
  23. package/dist/collection/components/salla-product-availability/salla-product-availability.js +2 -2
  24. package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +32 -32
  25. package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
  26. package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +18 -15
  27. package/dist/collection/components/salla-rating-stars/salla-rating-stars.js +1 -1
  28. package/dist/collection/components/salla-search/salla-search.js +4 -3
  29. package/dist/collection/components/salla-swiper/salla-swiper.js +0 -1
  30. package/dist/collection/components/salla-tel-input/salla-tel-input.js +4 -2
  31. package/dist/collection/components/salla-verify/salla-verify.js +33 -38
  32. package/dist/components/Helper.js +15 -22
  33. package/dist/components/index.d.ts +0 -2
  34. package/dist/components/index.js +2 -4
  35. package/dist/components/salla-gifting.js +3 -7
  36. package/dist/components/salla-infinite-scroll.js +1 -0
  37. package/dist/components/salla-installment.js +8 -3
  38. package/dist/components/salla-localization-modal.js +4 -2
  39. package/dist/components/salla-login-modal.js +1 -1
  40. package/dist/components/salla-modal2.js +8 -10
  41. package/dist/components/salla-offer-modal.js +19 -41
  42. package/dist/components/salla-placeholder2.js +2 -2
  43. package/dist/components/salla-product-availability2.js +1 -1
  44. package/dist/components/salla-product-size-guide.js +6 -13
  45. package/dist/components/salla-rating-modal.js +21 -21
  46. package/dist/components/salla-rating-stars2.js +1 -1
  47. package/dist/components/salla-search.js +4 -3
  48. package/dist/components/salla-swiper2.js +0 -1
  49. package/dist/components/salla-tel-input2.js +3 -1
  50. package/dist/components/salla-verify2.js +31 -37
  51. package/dist/esm/{index-03197930.js → index-0ce70ad2.js} +10 -89
  52. package/dist/esm/{index-1cc8829f.js → index-3020d26f.js} +2 -2
  53. package/dist/esm/loader.js +3 -3
  54. package/dist/esm/salla-add-product-button.entry.js +1 -1
  55. package/dist/esm/{salla-button_29.entry.js → salla-button_27.entry.js} +108 -230
  56. package/dist/esm/salla-conditional-fields.entry.js +1 -1
  57. package/dist/esm/salla-installment.entry.js +9 -4
  58. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  59. package/dist/esm/salla-scopes.entry.js +1 -1
  60. package/dist/esm/salla-select.entry.js +1 -1
  61. package/dist/esm/twilight.js +3 -3
  62. package/dist/esm-es5/index-0ce70ad2.js +4 -0
  63. package/dist/esm-es5/{index-1cc8829f.js → index-3020d26f.js} +2 -2
  64. package/dist/esm-es5/loader.js +1 -1
  65. package/dist/esm-es5/salla-add-product-button.entry.js +1 -1
  66. package/dist/esm-es5/salla-button_27.entry.js +34 -0
  67. package/dist/esm-es5/salla-conditional-fields.entry.js +1 -1
  68. package/dist/esm-es5/salla-installment.entry.js +1 -1
  69. package/dist/esm-es5/salla-loyalty-prize-item.entry.js +1 -1
  70. package/dist/esm-es5/salla-scopes.entry.js +1 -1
  71. package/dist/esm-es5/salla-select.entry.js +1 -1
  72. package/dist/esm-es5/twilight.js +1 -1
  73. package/dist/twilight/p-0db2b810.entry.js +4 -0
  74. package/dist/twilight/{p-2b8f1167.entry.js → p-10ac9c79.entry.js} +1 -1
  75. package/dist/twilight/{p-06ecc027.entry.js → p-13129ac9.entry.js} +1 -1
  76. package/dist/twilight/{p-f0415183.system.entry.js → p-1914490f.system.entry.js} +1 -1
  77. package/dist/twilight/p-24e726cc.system.entry.js +34 -0
  78. package/dist/twilight/{p-3feb37f5.system.entry.js → p-26a23097.system.entry.js} +1 -1
  79. package/dist/twilight/p-48b393ab.js +24 -0
  80. package/dist/twilight/{p-092ad6d4.entry.js → p-521b6fde.entry.js} +1 -1
  81. package/dist/twilight/p-65c324c0.system.js +24 -0
  82. package/dist/twilight/{p-bac267ae.entry.js → p-97daba27.entry.js} +1 -1
  83. package/dist/twilight/{p-a1cd00a6.system.entry.js → p-a7caaba3.system.entry.js} +1 -1
  84. package/dist/twilight/{p-20584294.entry.js → p-bbc94b9b.entry.js} +1 -1
  85. package/dist/twilight/p-ca68752d.js +5 -0
  86. package/dist/twilight/p-ce3e3fa2.system.entry.js +4 -0
  87. package/dist/twilight/p-d64f3123.entry.js +22 -0
  88. package/dist/twilight/p-db0ba553.system.js +5 -0
  89. package/dist/twilight/{p-f7bb47ef.system.entry.js → p-dd9b3c90.system.entry.js} +1 -1
  90. package/dist/twilight/{p-a82f8d33.system.entry.js → p-f610b6bf.system.entry.js} +1 -1
  91. package/dist/twilight/p-f6171fb9.system.js +4 -0
  92. package/dist/twilight/twilight.esm.js +1 -1
  93. package/dist/twilight/twilight.js +1 -1
  94. package/dist/types/Helpers/Helper.d.ts +6 -6
  95. package/dist/types/components/salla-installment/salla-installment.d.ts +2 -1
  96. package/dist/types/components/salla-modal/salla-modal.d.ts +0 -1
  97. package/dist/types/components/salla-offer-modal/offer-schema.d.ts +0 -1
  98. package/dist/types/components/salla-offer-modal/salla-offer-modal.d.ts +0 -4
  99. package/dist/types/components/salla-placeholder/salla-placeholder.d.ts +3 -3
  100. package/dist/types/components/salla-rating-modal/salla-rating-modal.d.ts +1 -2
  101. package/dist/types/components/salla-verify/salla-verify.d.ts +1 -2
  102. package/dist/types/components.d.ts +7 -35
  103. package/package.json +4 -4
  104. package/dist/collection/components/salla-cart-summary/salla-cart-summary.css +0 -3
  105. package/dist/collection/components/salla-cart-summary/salla-cart-summary.js +0 -35
  106. package/dist/collection/components/salla-user-settings/salla-user-settings.css +0 -0
  107. package/dist/collection/components/salla-user-settings/salla-user-settings.js +0 -107
  108. package/dist/components/salla-cart-summary.d.ts +0 -11
  109. package/dist/components/salla-cart-summary.js +0 -53
  110. package/dist/components/salla-user-settings.d.ts +0 -11
  111. package/dist/components/salla-user-settings.js +0 -116
  112. package/dist/esm-es5/index-03197930.js +0 -4
  113. package/dist/esm-es5/salla-button_29.entry.js +0 -34
  114. package/dist/twilight/p-2bdd14ea.entry.js +0 -22
  115. package/dist/twilight/p-a058465b.system.js +0 -24
  116. package/dist/twilight/p-a2cc9062.entry.js +0 -4
  117. package/dist/twilight/p-b95c5d8c.system.entry.js +0 -34
  118. package/dist/twilight/p-c571b40b.js +0 -5
  119. package/dist/twilight/p-ca961962.system.js +0 -5
  120. package/dist/twilight/p-ee91a41b.system.js +0 -4
  121. package/dist/twilight/p-f59fe82e.js +0 -24
  122. package/dist/twilight/p-f99821d3.system.entry.js +0 -4
  123. package/dist/types/components/salla-cart-summary/salla-cart-summary.d.ts +0 -6
  124. package/dist/types/components/salla-user-settings/salla-user-settings.d.ts +0 -18
@@ -0,0 +1,5 @@
1
+ var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function l(e){try{$(n.next(e))}catch(e){i(e)}}function s(e){try{$(n["throw"](e))}catch(e){i(e)}}function $(e){e.done?r(e.value):a(e.value).then(l,s)}$((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,l;return l={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function s(e){return function(t){return $([e,t])}}function $(l){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=l[0]&2?a["return"]:l[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;if(a=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:r.label++;return{value:l[1],done:false};case 5:r.label++;a=l[1];l=[0];continue;case 7:l=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1];i=l;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(l);break}if(i[2])r.ops.pop();r.trys.pop();continue}l=t.call(e,r)}catch(e){l=[6,e];a=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++){if(i||!(n in t)){if(!i)i=Array.prototype.slice.call(t,0,n);i[n]=t[n]}}return e.concat(i||Array.prototype.slice.call(t))};
2
+ /*!
3
+ * Crafted with ❤ by Salla
4
+ */System.register([],(function(e,t){"use strict";return{execute:function(){var r=this;var n=e("N","twilight");var a;var i;var l=false;var s=false;var $=false;var o=false;var f=false;var u=e("w",typeof window!=="undefined"?window:{});var c=e("C",u.CSS);var v=e("d",u.document||{head:{}});var d=e("p",{$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,r,n){return e.addEventListener(t,r,n)},rel:function(e,t,r,n){return e.removeEventListener(t,r,n)},ce:function(e,t){return new CustomEvent(e,t)}});var h=true;var p=e("a",(function(e){return Promise.resolve(e)}));var m=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var g=function(e,t,r,n){if(r){r.map((function(r){var n=r[0],a=r[1],i=r[2];var l=b(e,n);var s=y(t,i);var $=w(n);d.ael(l,a,s,$);(t.$rmListeners$=t.$rmListeners$||[]).push((function(){return d.rel(l,a,s,$)}))}))}};var y=function(e,t){return function(r){try{{if(e.$flags$&256){e.$lazyInstance$[t](r)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,r])}}}catch(e){He(e)}}};var b=function(e,t){if(t&8)return u;return e};var w=function(e){return(e&2)!==0};var N="r";var S="o";var R="s";var x="t";var _="s-id";var T="sty-id";var k="c-id";var C="{visibility:hidden}.hydrated{visibility:inherit}";var L="http://www.w3.org/1999/xlink";var A=function(e,t){if(t===void 0){t=""}{return function(){return}}};var j=function(e,t){{return function(){return}}};var I=new WeakMap;var P=function(e,t,r){var n=We.get(e);if(m&&r){n=n||new CSSStyleSheet;if(typeof n==="string"){n=t}else{n.replaceSync(t)}}else{n=t}We.set(e,n)};var E=function(e,t,r,n){var a=O(t);var i=We.get(a);e=e.nodeType===11?e:v;if(i){if(typeof i==="string"){e=e.head||e;var l=I.get(e);var s=void 0;if(!l){I.set(e,l=new Set)}if(!l.has(a)){if(e.host&&(s=e.querySelector("[".concat(T,'="').concat(a,'"]')))){s.innerHTML=i}else{if(d.$cssShim$){s=d.$cssShim$.createHostStyle(n,a,i,!!(t.$flags$&10));var $=s["s-sc"];if($){a=$;l=null}}else{s=v.createElement("style");s.innerHTML=i}e.insertBefore(s,e.querySelector("link"))}if(l){l.add(a)}}}else if(!e.adoptedStyleSheets.includes(i)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[i],false)}}return a};var M=function(e){var t=e.$cmpMeta$;var r=e.$hostElement$;var n=A("attachStyles",t.$tagName$);E(r.getRootNode(),t,e.$modeName$,r);n()};var O=function(e,t){return"sc-"+e.$tagName$};var B={};var q="http://www.w3.org/2000/svg";var z="http://www.w3.org/1999/xhtml";var H=function(e){e=typeof e;return e==="object"||e==="function"};var U=e("h",(function(e,t){var r=[];for(var n=2;n<arguments.length;n++){r[n-2]=arguments[n]}var a=null;var i=null;var l=null;var s=false;var $=false;var o=[];var f=function(t){for(var r=0;r<t.length;r++){a=t[r];if(Array.isArray(a)){f(a)}else if(a!=null&&typeof a!=="boolean"){if(s=typeof e!=="function"&&!H(a)){a=String(a)}if(s&&$){o[o.length-1].$text$+=a}else{o.push(s?V(null,a):a)}$=s}}};f(r);if(t){if(t.key){i=t.key}if(t.name){l=t.name}{var u=t.className||t.class;if(u){t.class=typeof u!=="object"?u:Object.keys(u).filter((function(e){return u[e]})).join(" ")}}}var c=V(e,null);c.$attrs$=t;if(o.length>0){c.$children$=o}{c.$key$=i}{c.$name$=l}return c}));var V=function(e,t){var r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};{r.$attrs$=null}{r.$key$=null}{r.$name$=null}return r};var W=e("H",{});var D=function(e){return e&&e.$tag$===W};var F=function(e,t,r,n,a,i){if(r!==n){var l=ze(e,t);var s=t.toLowerCase();if(t==="class"){var $=e.classList;var o=J(r);var f=J(n);$.remove.apply($,o.filter((function(e){return e&&!f.includes(e)})));$.add.apply($,f.filter((function(e){return e&&!o.includes(e)})))}else if(t==="style"){{for(var c in r){if(!n||n[c]==null){if(c.includes("-")){e.style.removeProperty(c)}else{e.style[c]=""}}}}for(var c in n){if(!r||n[c]!==r[c]){if(c.includes("-")){e.style.setProperty(c,n[c])}else{e.style[c]=n[c]}}}}else if(t==="key");else if(t==="ref"){if(n){n(e)}}else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(ze(u,s)){t=s.slice(2)}else{t=s[2]+t.slice(3)}if(r){d.rel(e,t,r,false)}if(n){d.ael(e,t,n,false)}}else{var v=H(n);if((l||v&&n!==null)&&!a){try{if(!e.tagName.includes("-")){var h=n==null?"":n;if(t==="list"){l=false}else if(r==null||e[t]!=h){e[t]=h}}else{e[t]=n}}catch(e){}}var p=false;{if(s!==(s=s.replace(/^xlink\:?/,""))){t=s;p=true}}if(n==null||n===false){if(n!==false||e.getAttribute(t)===""){if(p){e.removeAttributeNS(L,t)}else{e.removeAttribute(t)}}}else if((!l||i&4||a)&&!v){n=n===true?"":n;if(p){e.setAttributeNS(L,t,n)}else{e.setAttribute(t,n)}}}}};var G=/\s/;var J=function(e){return!e?[]:e.split(G)};var K=function(e,t,r,n){var a=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$;var i=e&&e.$attrs$||B;var l=t.$attrs$||B;{for(n in i){if(!(n in l)){F(a,n,i[n],undefined,r,t.$flags$)}}}for(n in l){F(a,n,i[n],l[n],r,t.$flags$)}};var Q=function(e,t,r,n){var s=t.$children$[r];var f=0;var u;var c;var d;if(!l){$=true;if(s.$tag$==="slot"){s.$flags$|=s.$children$?2:1}}if(s.$text$!==null){u=s.$elm$=v.createTextNode(s.$text$)}else if(s.$flags$&1){u=s.$elm$=v.createTextNode("")}else{if(!o){o=s.$tag$==="svg"}u=s.$elm$=v.createElementNS(o?q:z,s.$flags$&2?"slot-fb":s.$tag$);if(o&&s.$tag$==="foreignObject"){o=false}{K(null,s,o)}if(s.$children$){for(f=0;f<s.$children$.length;++f){c=Q(e,s,f);if(c){u.appendChild(c)}}}{if(s.$tag$==="svg"){o=false}else if(u.tagName==="foreignObject"){o=true}}}{u["s-hn"]=i;if(s.$flags$&(2|1)){u["s-sr"]=true;u["s-cr"]=a;u["s-sn"]=s.$name$||"";d=e&&e.$children$&&e.$children$[r];if(d&&d.$tag$===s.$tag$&&e.$elm$){X(e.$elm$,false)}}}return u};var X=function(e,t){d.$flags$|=1;var r=e.childNodes;for(var n=r.length-1;n>=0;n--){var a=r[n];if(a["s-hn"]!==i&&a["s-ol"]){ne(a).insertBefore(a,re(a));a["s-ol"].remove();a["s-ol"]=undefined;$=true}if(t){X(a,t)}}d.$flags$&=~1};var Y=function(e,t,r,n,a,i){var l=e["s-cr"]&&e["s-cr"].parentNode||e;var s;for(;a<=i;++a){if(n[a]){s=Q(null,r,a);if(s){n[a].$elm$=s;l.insertBefore(s,re(t))}}}};var Z=function(e,t,r,n,a){for(;t<=r;++t){if(n=e[t]){a=n.$elm$;oe(n);{s=true;if(a["s-ol"]){a["s-ol"].remove()}else{X(a,true)}}a.remove()}}};var ee=function(e,t,r,n){var a=0;var i=0;var l=0;var s=0;var $=t.length-1;var o=t[0];var f=t[$];var u=n.length-1;var c=n[0];var v=n[u];var d;var h;while(a<=$&&i<=u){if(o==null){o=t[++a]}else if(f==null){f=t[--$]}else if(c==null){c=n[++i]}else if(v==null){v=n[--u]}else if(te(o,c)){ae(o,c);o=t[++a];c=n[++i]}else if(te(f,v)){ae(f,v);f=t[--$];v=n[--u]}else if(te(o,v)){if(o.$tag$==="slot"||v.$tag$==="slot"){X(o.$elm$.parentNode,false)}ae(o,v);e.insertBefore(o.$elm$,f.$elm$.nextSibling);o=t[++a];v=n[--u]}else if(te(f,c)){if(o.$tag$==="slot"||v.$tag$==="slot"){X(f.$elm$.parentNode,false)}ae(f,c);e.insertBefore(f.$elm$,o.$elm$);f=t[--$];c=n[++i]}else{l=-1;{for(s=a;s<=$;++s){if(t[s]&&t[s].$key$!==null&&t[s].$key$===c.$key$){l=s;break}}}if(l>=0){h=t[l];if(h.$tag$!==c.$tag$){d=Q(t&&t[i],r,l)}else{ae(h,c);t[l]=undefined;d=h.$elm$}c=n[++i]}else{d=Q(t&&t[i],r,i);c=n[++i]}if(d){{ne(o.$elm$).insertBefore(d,re(o.$elm$))}}}}if(a>$){Y(e,n[u+1]==null?null:n[u+1].$elm$,r,n,i,u)}else if(i>u){Z(t,a,$)}};var te=function(e,t){if(e.$tag$===t.$tag$){if(e.$tag$==="slot"){return e.$name$===t.$name$}{return e.$key$===t.$key$}}return false};var re=function(e){return e&&e["s-ol"]||e};var ne=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode};var ae=function(e,t){var r=t.$elm$=e.$elm$;var n=e.$children$;var a=t.$children$;var i=t.$tag$;var l=t.$text$;var s;if(l===null){{o=i==="svg"?true:i==="foreignObject"?false:o}{if(i==="slot");else{K(e,t,o)}}if(n!==null&&a!==null){ee(r,n,t,a)}else if(a!==null){if(e.$text$!==null){r.textContent=""}Y(r,null,t,a,0,a.length-1)}else if(n!==null){Z(n,0,n.length-1)}if(o&&i==="svg"){o=false}}else if(s=r["s-cr"]){s.parentNode.textContent=l}else if(e.$text$!==l){r.data=l}};var ie=function(e){var t=e.childNodes;var r;var n;var a;var i;var l;var s;for(n=0,a=t.length;n<a;n++){r=t[n];if(r.nodeType===1){if(r["s-sr"]){l=r["s-sn"];r.hidden=false;for(i=0;i<a;i++){s=t[i].nodeType;if(t[i]["s-hn"]!==r["s-hn"]||l!==""){if(s===1&&l===t[i].getAttribute("slot")){r.hidden=true;break}}else{if(s===1||s===3&&t[i].textContent.trim()!==""){r.hidden=true;break}}}}ie(r)}}};var le=[];var se=function(e){var t;var r;var n;var a;var i;var l;var $=0;var o=e.childNodes;var f=o.length;for(;$<f;$++){t=o[$];if(t["s-sr"]&&(r=t["s-cr"])&&r.parentNode){n=r.parentNode.childNodes;a=t["s-sn"];for(l=n.length-1;l>=0;l--){r=n[l];if(!r["s-cn"]&&!r["s-nr"]&&r["s-hn"]!==t["s-hn"]){if($e(r,a)){i=le.find((function(e){return e.$nodeToRelocate$===r}));s=true;r["s-sn"]=r["s-sn"]||a;if(i){i.$slotRefNode$=t}else{le.push({$slotRefNode$:t,$nodeToRelocate$:r})}if(r["s-sr"]){le.map((function(e){if($e(e.$nodeToRelocate$,r["s-sn"])){i=le.find((function(e){return e.$nodeToRelocate$===r}));if(i&&!e.$slotRefNode$){e.$slotRefNode$=i.$slotRefNode$}}}))}}else if(!le.some((function(e){return e.$nodeToRelocate$===r}))){le.push({$nodeToRelocate$:r})}}}}if(t.nodeType===1){se(t)}}};var $e=function(e,t){if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var oe=function(e){{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null);e.$children$&&e.$children$.map(oe)}};var fe=function(e,t){var r=e.$hostElement$;var n=e.$cmpMeta$;var o=e.$vnode$||V(null,null);var f=D(t)?t:U(null,null,t);i=r.tagName;if(n.$attrsToReflect$){f.$attrs$=f.$attrs$||{};n.$attrsToReflect$.map((function(e){var t=e[0],n=e[1];return f.$attrs$[n]=r[t]}))}f.$tag$=null;f.$flags$|=4;e.$vnode$=f;f.$elm$=o.$elm$=r;{a=r["s-cr"];l=(n.$flags$&1)!==0;s=false}ae(o,f);{d.$flags$|=1;if($){se(f.$elm$);var u=void 0;var c=void 0;var h=void 0;var p=void 0;var m=void 0;var g=void 0;var y=0;for(;y<le.length;y++){u=le[y];c=u.$nodeToRelocate$;if(!c["s-ol"]){h=v.createTextNode("");h["s-nr"]=c;c.parentNode.insertBefore(c["s-ol"]=h,c)}}for(y=0;y<le.length;y++){u=le[y];c=u.$nodeToRelocate$;if(u.$slotRefNode$){p=u.$slotRefNode$.parentNode;m=u.$slotRefNode$.nextSibling;h=c["s-ol"];while(h=h.previousSibling){g=h["s-nr"];if(g&&g["s-sn"]===c["s-sn"]&&p===g.parentNode){g=g.nextSibling;if(!g||!g["s-nr"]){m=g;break}}}if(!m&&p!==c.parentNode||c.nextSibling!==m){if(c!==m){if(!c["s-hn"]&&c["s-ol"]){c["s-hn"]=c["s-ol"].parentNode.nodeName}p.insertBefore(c,m)}}}else{if(c.nodeType===1){c.hidden=true}}}}if(s){ie(f.$elm$)}d.$flags$&=~1;le.length=0}};var ue=e("g",(function(e){return Oe(e).$hostElement$}));var ce=e("c",(function(e,t,r){var n=ue(e);return{emit:function(e){return ve(n,t,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:e})}}}));var ve=function(e,t,r){var n=d.ce(t,r);e.dispatchEvent(n);return n};var de=function(e,t){if(t&&!e.$onRenderResolve$&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))}};var he=function(e,t){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}de(e,e.$ancestorComponent$);var r=function(){return pe(e,t)};return Xe(r)};var pe=function(e,t){var r=A("scheduleUpdate",e.$cmpMeta$.$tagName$);var n=e.$lazyInstance$;var a;if(t){{e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var t=e[0],r=e[1];return we(n,t,r)}));e.$queuedListeners$=null}}{a=we(n,"componentWillLoad")}}r();return Ne(a,(function(){return me(e,n,t)}))};var me=function(e,t,n){return __awaiter(r,void 0,void 0,(function(){var r,a,i,l,s,$;return __generator(this,(function(o){r=e.$hostElement$;a=A("update",e.$cmpMeta$.$tagName$);i=r["s-rc"];if(n){M(e)}l=A("render",e.$cmpMeta$.$tagName$);{ge(e,t)}if(d.$cssShim$){d.$cssShim$.updateHost(r)}if(i){i.map((function(e){return e()}));r["s-rc"]=undefined}l();a();{s=r["s-p"];$=function(){return ye(e)};if(s.length===0){$()}else{Promise.all(s).then($);e.$flags$|=4;s.length=0}}return[2]}))}))};var ge=function(e,t,r){try{t=t.render();{e.$flags$&=~16}{e.$flags$|=2}{{{fe(e,t)}}}}catch(t){He(t,e.$hostElement$)}return null};var ye=function(e){var t=e.$cmpMeta$.$tagName$;var r=e.$hostElement$;var n=A("postUpdate",t);var a=e.$lazyInstance$;var i=e.$ancestorComponent$;{we(a,"componentDidRender")}if(!(e.$flags$&64)){e.$flags$|=64;{Se(r)}{we(a,"componentDidLoad")}n();{e.$onReadyResolve$(r);if(!i){be()}}}else{n()}{e.$onInstanceResolve$(r)}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){Qe((function(){return he(e,false)}))}e.$flags$&=~(4|512)}};var be=function(e){{Se(v.documentElement)}Qe((function(){return ve(u,"appload",{detail:{namespace:n}})}))};var we=function(e,t,r){if(e&&e[t]){try{return e[t](r)}catch(e){He(e)}}return undefined};var Ne=function(e,t){return e&&e.then?e.then(t):t()};var Se=function(e){return e.classList.add("hydrated")};var Re=function(e,t,r,n){var a=A("hydrateClient",t);var i=e.shadowRoot;var l=[];var s=[];var $=null;var o=n.$vnode$=V(t,null);if(!d.$orgLocNodes$){_e(v.body,d.$orgLocNodes$=new Map)}e[_]=r;e.removeAttribute(_);xe(o,l,s,$,e,e,r);l.map((function(e){var r=e.$hostId$+"."+e.$nodeId$;var n=d.$orgLocNodes$.get(r);var a=e.$elm$;if(n&&h&&n["s-en"]===""){n.parentNode.insertBefore(a,n.nextSibling)}if(!i){a["s-hn"]=t;if(n){a["s-ol"]=n;a["s-ol"]["s-nr"]=a}}d.$orgLocNodes$.delete(r)}));a()};var xe=function(e,t,r,n,a,i,l){var s;var $;var o;var f;if(i.nodeType===1){s=i.getAttribute(k);if(s){$=s.split(".");if($[0]===l||$[0]==="0"){o={$flags$:0,$hostId$:$[0],$nodeId$:$[1],$depth$:$[2],$index$:$[3],$tag$:i.tagName.toLowerCase(),$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null};t.push(o);i.removeAttribute(k);if(!e.$children$){e.$children$=[]}e.$children$[o.$index$]=o;e=o;if(n&&o.$depth$==="0"){n[o.$index$]=o.$elm$}}}for(f=i.childNodes.length-1;f>=0;f--){xe(e,t,r,n,a,i.childNodes[f],l)}if(i.shadowRoot){for(f=i.shadowRoot.childNodes.length-1;f>=0;f--){xe(e,t,r,n,a,i.shadowRoot.childNodes[f],l)}}}else if(i.nodeType===8){$=i.nodeValue.split(".");if($[1]===l||$[1]==="0"){s=$[0];o={$flags$:0,$hostId$:$[1],$nodeId$:$[2],$depth$:$[3],$index$:$[4],$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null};if(s===x){o.$elm$=i.nextSibling;if(o.$elm$&&o.$elm$.nodeType===3){o.$text$=o.$elm$.textContent;t.push(o);i.remove();if(!e.$children$){e.$children$=[]}e.$children$[o.$index$]=o;if(n&&o.$depth$==="0"){n[o.$index$]=o.$elm$}}}else if(o.$hostId$===l){if(s===R){o.$tag$="slot";if($[5]){i["s-sn"]=o.$name$=$[5]}else{i["s-sn"]=""}i["s-sr"]=true;r.push(o);if(!e.$children$){e.$children$=[]}e.$children$[o.$index$]=o}else if(s===N){{a["s-cr"]=i;i["s-cn"]=true}}}}}else if(e&&e.$tag$==="style"){var u=V(null,i.textContent);u.$elm$=i;u.$index$="0";e.$children$=[u]}};var _e=function(e,t){if(e.nodeType===1){var r=0;for(;r<e.childNodes.length;r++){_e(e.childNodes[r],t)}if(e.shadowRoot){for(r=0;r<e.shadowRoot.childNodes.length;r++){_e(e.shadowRoot.childNodes[r],t)}}}else if(e.nodeType===8){var n=e.nodeValue.split(".");if(n[0]===S){t.set(n[1]+"."+n[2],e);e.nodeValue="";e["s-en"]=n[3]}}};var Te=function(e,t){if(e!=null&&!H(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var ke=function(e,t){return Oe(e).$instanceValues$.get(t)};var Ce=function(e,t,r,n){var a=Oe(e);var i=a.$hostElement$;var l=a.$instanceValues$.get(t);var s=a.$flags$;var $=a.$lazyInstance$;r=Te(r,n.$members$[t][0]);var o=Number.isNaN(l)&&Number.isNaN(r);var f=r!==l&&!o;if((!(s&8)||l===undefined)&&f){a.$instanceValues$.set(t,r);if($){if(n.$watchers$&&s&128){var u=n.$watchers$[t];if(u){u.map((function(e){try{$[e](r,l,t)}catch(e){He(e,i)}}))}}if((s&(2|16))===2){he(a,false)}}}};var Le=function(e,t,r){if(t.$members$){if(e.watchers){t.$watchers$=e.watchers}var n=Object.entries(t.$members$);var a=e.prototype;n.map((function(e){var n=e[0],i=e[1][0];if(i&31||r&2&&i&32){Object.defineProperty(a,n,{get:function(){return ke(this,n)},set:function(e){Ce(this,n,e,t)},configurable:true,enumerable:true})}else if(r&1&&i&64){Object.defineProperty(a,n,{value:function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=Oe(this);return r.$onInstancePromise$.then((function(){var t;return(t=r.$lazyInstance$)[n].apply(t,e)}))}})}}));if(r&1){var i=new Map;a.attributeChangedCallback=function(e,t,r){var n=this;d.jmp((function(){var t=i.get(e);if(n.hasOwnProperty(t)){r=n[t];delete n[t]}else if(a.hasOwnProperty(t)&&typeof n[t]==="number"&&n[t]==r){return}n[t]=r===null&&typeof n[t]==="boolean"?false:r}))};e.observedAttributes=n.filter((function(e){var t=e[0],r=e[1];return r[0]&15})).map((function(e){var r=e[0],n=e[1];var a=n[1]||r;i.set(a,r);if(n[0]&512){t.$attrsToReflect$.push([r,a])}return a}))}}return e};var Ae=function(e,t,n,a,i){return __awaiter(r,void 0,void 0,(function(){var e,r,a,l,s,$,o;return __generator(this,(function(f){switch(f.label){case 0:if(!((t.$flags$&32)===0))return[3,3];t.$flags$|=32;i=Ve(n);if(!i.then)return[3,2];e=j();return[4,i];case 1:i=f.sent();e();f.label=2;case 2:if(!i.isProxied){{n.$watchers$=i.watchers}Le(i,n,2);i.isProxied=true}r=A("createInstance",n.$tagName$);{t.$flags$|=8}try{new i(t)}catch(e){He(e)}{t.$flags$&=~8}{t.$flags$|=128}r();if(i.style){a=i.style;l=O(n);if(!We.has(l)){s=A("registerStyles",n.$tagName$);P(l,a,!!(n.$flags$&1));s()}}f.label=3;case 3:$=t.$ancestorComponent$;o=function(){return he(t,true)};if($&&$["s-rc"]){$["s-rc"].push(o)}else{o()}return[2]}}))}))};var je=function(e){if((d.$flags$&1)===0){var t=Oe(e);var r=t.$cmpMeta$;var n=A("connectedCallback",r.$tagName$);if(!(t.$flags$&1)){t.$flags$|=1;var a=void 0;{a=e.getAttribute(_);if(a){Re(e,r.$tagName$,a,t)}}if(!a){if(r.$flags$&(4|8)){Ie(e)}}{var i=e;while(i=i.parentNode||i.host){if(i.nodeType===1&&i.hasAttribute("s-id")&&i["s-p"]||i["s-p"]){de(t,t.$ancestorComponent$=i);break}}}if(r.$members$){Object.entries(r.$members$).map((function(t){var r=t[0],n=t[1][0];if(n&31&&e.hasOwnProperty(r)){var a=e[r];delete e[r];e[r]=a}}))}{Ae(e,t,r)}}else{g(e,t,r.$listeners$)}n()}};var Ie=function(e){var t=e["s-cr"]=v.createComment("");t["s-cn"]=true;e.insertBefore(t,e.firstChild)};var Pe=function(e){if((d.$flags$&1)===0){var t=Oe(e);{if(t.$rmListeners$){t.$rmListeners$.map((function(e){return e()}));t.$rmListeners$=undefined}}if(d.$cssShim$){d.$cssShim$.removeHost(e)}}};var Ee=e("b",(function(e,t){if(t===void 0){t={}}var r=A();var n=[];var a=t.exclude||[];var i=u.customElements;var l=v.head;var s=l.querySelector("meta[charset]");var $=v.createElement("style");var o=[];var f;var c=true;Object.assign(d,t);d.$resourcesUrl$=new URL(t.resourcesUrl||"./",v.baseURI).href;{d.$flags$|=2}e.map((function(e){e[1].map((function(t){var r={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};{r.$members$=t[2]}{r.$listeners$=t[3]}{r.$attrsToReflect$=[]}{r.$watchers$={}}var l=r.$tagName$;var s=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;t=n;qe(t,r);return n}t.prototype.connectedCallback=function(){var e=this;if(f){clearTimeout(f);f=null}if(c){o.push(this)}else{d.jmp((function(){return je(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;d.jmp((function(){return Pe(e)}))};t.prototype.componentOnReady=function(){return Oe(this).$onReadyPromise$};return t}(HTMLElement);r.$lazyBundleId$=e[0];if(!a.includes(l)&&!i.get(l)){n.push(l);i.define(l,Le(s,r,1))}}))}));{$.innerHTML=n+C;$.setAttribute("data-styles","");l.insertBefore($,s?s.nextSibling:l.firstChild)}c=false;if(o.length){o.map((function(e){return e.connectedCallback()}))}else{{d.jmp((function(){return f=setTimeout(be,30)}))}}r()}));var Me=new WeakMap;var Oe=function(e){return Me.get(e)};var Be=e("r",(function(e,t){return Me.set(t.$lazyInstance$=e,t)}));var qe=function(e,t){var r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};{r.$onInstancePromise$=new Promise((function(e){return r.$onInstanceResolve$=e}))}{r.$onReadyPromise$=new Promise((function(e){return r.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}g(e,r,t.$listeners$);return Me.set(e,r)};var ze=function(e,t){return t in e};var He=function(e,t){return(0,console.error)(e,t)};var Ue=new Map;var Ve=function(e,r,n){var a=e.$tagName$.replace(/-/g,"_");var i=e.$lazyBundleId$;var l=Ue.get(i);if(l){return l[a]}
5
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return t.import("./".concat(i,".entry.js").concat("")).then((function(e){{Ue.set(i,e)}return e[a]}),He)};var We=new Map;var De=[];var Fe=[];var Ge=function(e,t){return function(r){e.push(r);if(!f){f=true;if(t&&d.$flags$&4){Qe(Ke)}else{d.raf(Ke)}}}};var Je=function(e){for(var t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){He(e)}}e.length=0};var Ke=function(){Je(De);{Je(Fe);if(f=De.length>0){d.raf(Ke)}}};var Qe=function(e){return p().then(e)};var Xe=Ge(Fe,true)}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- System.register(["./p-ca961962.system.js"],(function(e){"use strict";var t,r,n,a;return{setters:[function(e){t=e.r;r=e.h;n=e.H;a=e.g}],execute:function(){var i=e("salla_conditional_fields",function(){function e(e){t(this,e)}e.prototype.changeHandler=function(e){var t=this;var r;salla.log("Received the change event: ",e);if(!e.target||!["SELECT"].includes(e.target.tagName)&&!["checkbox"].includes(e.target.getAttribute("type"))){salla.log("Ignore the change because is not support input: "+(((r=e===null||e===void 0?void 0:e.target)===null||r===void 0?void 0:r.tagName)||"N/A"));return}var n=e.target.name.replace("[]","");var a=e.target.getAttribute("type")==="checkbox";salla.log("Trying to find all the element with condition:",'[data-show-when^="'.concat(n,'"]'));this.host.querySelectorAll('[data-show-when^="'.concat(n,'"]')).forEach((function(r){var n=!(r===null||r===void 0?void 0:r.dataset.showWhen.includes("!="));var i=r===null||r===void 0?void 0:r.dataset.showWhen.replace(/(.*)(=|!=)(.*)/gm,"$3").trim();var o;if(a){var l=Array.from(t.host.querySelectorAll('input[name="'.concat(e.target.name,'"]:checked')),(function(e){return e===null||e===void 0?void 0:e.value}));o=l.includes(i.toString())}else{o=i===e.target.value}salla.log("The input is ",a?"Multiple":"Single"," value:",o);var c=n&&o||!n&&!o;if(c){r.classList.remove("hidden");r.querySelectorAll("[name]").forEach((function(e){e.removeAttribute("disabled");if(!["checkbox"].includes(e.getAttribute("type"))&&r.getElementsByClassName("required").length){e.setAttribute("required","")}}))}else{r.classList.add("hidden");r.querySelectorAll("[name]").forEach((function(e){e.setAttribute("disabled","");e.removeAttribute("required");if(["checkbox"].includes(e.getAttribute("type"))&&e.hasOwnProperty("checked")){e.checked=false}}))}}))};e.prototype.componentDidRender=function(){var e=this;this.host.querySelectorAll("[data-show-when]").forEach((function(t){var r;var n=(r=t===null||t===void 0?void 0:t.dataset)===null||r===void 0?void 0:r.showWhen.replace(/(.*)(=|!=)(.*)/gm,"$1").trim();if(!n){return}e.changeHandler({target:e.host.querySelector('[name^="'+n+'"]')})}))};e.prototype.render=function(){return r(n,null,r("slot",null))};Object.defineProperty(e.prototype,"host",{get:function(){return a(this)},enumerable:false,configurable:true});return e}())}}}));
4
+ System.register(["./p-db0ba553.system.js"],(function(e){"use strict";var t,r,n,a;return{setters:[function(e){t=e.r;r=e.h;n=e.H;a=e.g}],execute:function(){var i=e("salla_conditional_fields",function(){function e(e){t(this,e)}e.prototype.changeHandler=function(e){var t=this;var r;salla.log("Received the change event: ",e);if(!e.target||!["SELECT"].includes(e.target.tagName)&&!["checkbox"].includes(e.target.getAttribute("type"))){salla.log("Ignore the change because is not support input: "+(((r=e===null||e===void 0?void 0:e.target)===null||r===void 0?void 0:r.tagName)||"N/A"));return}var n=e.target.name.replace("[]","");var a=e.target.getAttribute("type")==="checkbox";salla.log("Trying to find all the element with condition:",'[data-show-when^="'.concat(n,'"]'));this.host.querySelectorAll('[data-show-when^="'.concat(n,'"]')).forEach((function(r){var n=!(r===null||r===void 0?void 0:r.dataset.showWhen.includes("!="));var i=r===null||r===void 0?void 0:r.dataset.showWhen.replace(/(.*)(=|!=)(.*)/gm,"$3").trim();var o;if(a){var l=Array.from(t.host.querySelectorAll('input[name="'.concat(e.target.name,'"]:checked')),(function(e){return e===null||e===void 0?void 0:e.value}));o=l.includes(i.toString())}else{o=i===e.target.value}salla.log("The input is ",a?"Multiple":"Single"," value:",o);var c=n&&o||!n&&!o;if(c){r.classList.remove("hidden");r.querySelectorAll("[name]").forEach((function(e){e.removeAttribute("disabled");if(!["checkbox"].includes(e.getAttribute("type"))&&r.getElementsByClassName("required").length){e.setAttribute("required","")}}))}else{r.classList.add("hidden");r.querySelectorAll("[name]").forEach((function(e){e.setAttribute("disabled","");e.removeAttribute("required");if(["checkbox"].includes(e.getAttribute("type"))&&e.hasOwnProperty("checked")){e.checked=false}}))}}))};e.prototype.componentDidRender=function(){var e=this;this.host.querySelectorAll("[data-show-when]").forEach((function(t){var r;var n=(r=t===null||t===void 0?void 0:t.dataset)===null||r===void 0?void 0:r.showWhen.replace(/(.*)(=|!=)(.*)/gm,"$1").trim();if(!n){return}e.changeHandler({target:e.host.querySelector('[name^="'+n+'"]')})}))};e.prototype.render=function(){return r(n,null,r("slot",null))};Object.defineProperty(e.prototype,"host",{get:function(){return a(this)},enumerable:false,configurable:true});return e}())}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- System.register(["./p-ca961962.system.js"],(function(e){"use strict";var t,i,s;return{setters:[function(e){t=e.r;i=e.h;s=e.H}],execute:function(){var l=".s-select-label{display:block;margin-bottom:0.5rem;color:#111827;font-size:0.875rem;line-height:1.25rem;font-weight:500}.s-select-underline{display:block;padding-left:0;padding-right:0;padding-top:0.625rem;padding-bottom:0.625rem;background-color:transparent;color:#6B7280;font-size:0.875rem;line-height:1.25rem;width:100%;border-width:0;border-bottom-width:2px;border-color:#E5E7EB;-webkit-appearance:none;-moz-appearance:none;appearance:none}.s-select-outlined{display:block;padding:0.625rem;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;background-color:#F9FAFB;color:#111827;font-size:0.875rem;line-height:1.25rem;width:100%;border-radius:0.5rem;border-width:1px;border-color:#D1D5DB}.s-select-x-large{height:5rem}.s-select-large{height:4rem}.s-select-normal{height:3rem}.s-select-small{height:3rem}.s-select-x-small{height:2.5rem}.s-select-field{padding-top:0.25rem;padding-bottom:0.25rem;padding-right:0.5rem;padding-left:0.5rem;margin:0;font-size:1.125rem;line-height:1.75rem;font-weight:400;line-height:1.75rem;width:100%;border-radius:0.375rem;border-color:#9CA3AF;-webkit-box-shadow:none;box-shadow:none}.s-select-hint{margin-top:0.25rem;color:#374151;font-size:0.875rem;line-height:1.25rem;line-height:1.25rem}";var r=e("salla_select",function(){function e(e){t(this,e);this.label=undefined;this.items=[];this.itemText="text";this.itemValue="value";this.itemDisabled="disabled";this.size="normal";this.value=undefined;this.autofocus=false;this.clearable=false;this.clearIcon="sicon-cancel";this.color="primary";this.flat=undefined;this.disabled=false;this.loading=false;this.loadingColor="primary";this.hint=undefined;this.persistHint=false;this.placeholder=undefined;this.multiple=false;this.autocomplete=false;this.required=false;this.chips=false;this.shape="outlined";this.returnObject=false;this.hideDetail=false}e.prototype.selectClass=function(){return"s-select-field s-select-".concat(this.shape," ").concat(this.color," ").concat(this.size)};e.prototype.onSelectedItemChange=function(e){var t=e.target.selectedIndex;if(t<0){this.value=undefined;return}var i=this.items[!!this.placeholder?t-1:t];this.value=this.returnObject?i:i[this.itemValue];console.log("🚀 ~ file: salla-select.tsx ~ line 153 ~ SallaSelect ~ onSelectedItemChange ~ this.value",this.value)};e.prototype.generateHint=function(){if(!this.persistHint&&!this.value){return""}return i("div",{class:"s-select-hint"},this.hint)};e.prototype.checkForSelected=function(e){if(this.returnObject&&!!this.value){return e[this.itemValue]=this.value[this.itemValue]}return e[this.itemValue]==this.value};e.prototype.render=function(){var e=this;return i(s,null,!!this.label?i("label",{htmlFor:"s-select",class:"s-select-label"},this.label):"",i("select",{multiple:this.multiple,autocomplete:this.autocomplete?"on":"off",disabled:this.disabled,autoFocus:this.autofocus,id:"s-select",class:this.selectClass(),onChange:this.onSelectedItemChange.bind(this)},!!this.placeholder?i("option",{selected:!this.value},this.placeholder):"",this.items.map((function(t){return i("option",{label:t[e.itemText],value:t[e.itemValue],selected:e.checkForSelected(t),disabled:t[e.itemDisabled]})}))),i("div",{class:{"s-hidden":this.hideDetail}},this.generateHint()))};return e}());r.style=l}}}));
4
+ System.register(["./p-db0ba553.system.js"],(function(e){"use strict";var t,i,s;return{setters:[function(e){t=e.r;i=e.h;s=e.H}],execute:function(){var l=".s-select-label{display:block;margin-bottom:0.5rem;color:#111827;font-size:0.875rem;line-height:1.25rem;font-weight:500}.s-select-underline{display:block;padding-left:0;padding-right:0;padding-top:0.625rem;padding-bottom:0.625rem;background-color:transparent;color:#6B7280;font-size:0.875rem;line-height:1.25rem;width:100%;border-width:0;border-bottom-width:2px;border-color:#E5E7EB;-webkit-appearance:none;-moz-appearance:none;appearance:none}.s-select-outlined{display:block;padding:0.625rem;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;background-color:#F9FAFB;color:#111827;font-size:0.875rem;line-height:1.25rem;width:100%;border-radius:0.5rem;border-width:1px;border-color:#D1D5DB}.s-select-x-large{height:5rem}.s-select-large{height:4rem}.s-select-normal{height:3rem}.s-select-small{height:3rem}.s-select-x-small{height:2.5rem}.s-select-field{padding-top:0.25rem;padding-bottom:0.25rem;padding-right:0.5rem;padding-left:0.5rem;margin:0;font-size:1.125rem;line-height:1.75rem;font-weight:400;line-height:1.75rem;width:100%;border-radius:0.375rem;border-color:#9CA3AF;-webkit-box-shadow:none;box-shadow:none}.s-select-hint{margin-top:0.25rem;color:#374151;font-size:0.875rem;line-height:1.25rem;line-height:1.25rem}";var r=e("salla_select",function(){function e(e){t(this,e);this.label=undefined;this.items=[];this.itemText="text";this.itemValue="value";this.itemDisabled="disabled";this.size="normal";this.value=undefined;this.autofocus=false;this.clearable=false;this.clearIcon="sicon-cancel";this.color="primary";this.flat=undefined;this.disabled=false;this.loading=false;this.loadingColor="primary";this.hint=undefined;this.persistHint=false;this.placeholder=undefined;this.multiple=false;this.autocomplete=false;this.required=false;this.chips=false;this.shape="outlined";this.returnObject=false;this.hideDetail=false}e.prototype.selectClass=function(){return"s-select-field s-select-".concat(this.shape," ").concat(this.color," ").concat(this.size)};e.prototype.onSelectedItemChange=function(e){var t=e.target.selectedIndex;if(t<0){this.value=undefined;return}var i=this.items[!!this.placeholder?t-1:t];this.value=this.returnObject?i:i[this.itemValue];console.log("🚀 ~ file: salla-select.tsx ~ line 153 ~ SallaSelect ~ onSelectedItemChange ~ this.value",this.value)};e.prototype.generateHint=function(){if(!this.persistHint&&!this.value){return""}return i("div",{class:"s-select-hint"},this.hint)};e.prototype.checkForSelected=function(e){if(this.returnObject&&!!this.value){return e[this.itemValue]=this.value[this.itemValue]}return e[this.itemValue]==this.value};e.prototype.render=function(){var e=this;return i(s,null,!!this.label?i("label",{htmlFor:"s-select",class:"s-select-label"},this.label):"",i("select",{multiple:this.multiple,autocomplete:this.autocomplete?"on":"off",disabled:this.disabled,autoFocus:this.autofocus,id:"s-select",class:this.selectClass(),onChange:this.onSelectedItemChange.bind(this)},!!this.placeholder?i("option",{selected:!this.value},this.placeholder):"",this.items.map((function(t){return i("option",{label:t[e.itemText],value:t[e.itemValue],selected:e.checkForSelected(t),disabled:t[e.itemDisabled]})}))),i("div",{class:{"s-hidden":this.hideDetail}},this.generateHint()))};return e}());r.style=l}}}));
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ System.register(["./p-db0ba553.system.js","./p-65c324c0.system.js","./p-9beb6b7b.system.js"],(function(e,a){"use strict";var l,t,o,r,i,s;return{setters:[function(e){l=e.p;t=e.w;o=e.d;r=e.N;i=e.a;s=e.b},function(){},function(){}],execute:function(){var e=function(e){return"__sc_import_".concat(e.replace(/\s|-/g,"_"))};var n=function(){{l.$cssShim$=t.__cssshim}var e=Array.from(o.querySelectorAll("script")).find((function(e){return new RegExp("/".concat(r,"(\\.esm)?\\.js($|\\?|#)")).test(e.src)||e.getAttribute("data-stencil-namespace")===r}));var s=a.meta.url;var n={};if(s!==""){n.resourcesUrl=new URL(".",s).href}else{n.resourcesUrl=new URL(".",new URL(e.getAttribute("data-resources-url")||e.src,t.location.href)).href;{c(n.resourcesUrl,e)}if(!t.customElements){return a.import("./p-89f1c6be.system.js").then((function(){return n}))}}return i(n)};var c=function(a,l){var i=e(r);try{t[i]=new Function("w","return import(w);//".concat(Math.random()))}catch(e){var s=new Map;t[i]=function(e){var r=new URL(e,a).href;var n=s.get(r);if(!n){var c=o.createElement("script");c.type="module";c.crossOrigin=l.crossOrigin;c.src=URL.createObjectURL(new Blob(["import * as m from '".concat(r,"'; window.").concat(i,".m = m;")],{type:"application/javascript"}));n=new Promise((function(e){c.onload=function(){e(t[i].m);c.remove()}}));s.set(r,n);o.head.appendChild(c)}return n}}};n().then((function(e){return s(JSON.parse('[["p-24e726cc.system",[[4,"salla-gifting",{"productId":[2,"product-id"],"sectionTitle":[32],"sectionSubtitle":[32],"sectionBtnText":[32],"giftDetails":[32],"selectImageForYourGift":[32],"selectImageOrUpload":[32],"selectGiftMessage":[32],"giftCustomText":[32],"textId":[32],"incorrectGiftText":[32],"nextStep":[32],"senderNameLabel":[32],"receiverNameFieldLabel":[32],"receiverMobileFieldLabel":[32],"receiverEmailFieldLabel":[32],"emailPlaceholder":[32],"sendLater":[32],"selectSendDateAndTime":[32],"canNotEditOrderAfterSelectDate":[32],"sendGift":[32],"donationRequired":[32],"step1Elems":[32],"step2Elems":[32],"stepsWrapper":[32],"textArea":[32],"imageCover":[32],"textSelect":[32],"customTextArea":[32],"calendarFormGroup":[32],"currentStep":[32],"showCalendar":[32],"showGiftText":[32],"currentLang":[32],"parentClass":[32],"errors":[32],"gift":[32],"selectedGiftTextOption":[32],"showTextArea":[32],"selectedImage":[32],"uploadedImage":[32],"selectedText":[32],"senderName":[32],"errorMessage":[32],"hasError":[32],"quantity":[32],"deliveryDate":[32],"timeZone":[32],"receiverName":[32],"receiverMobile":[32],"receiverCountryCode":[32],"receiverEmail":[32],"open":[64],"close":[64],"goToStep2":[64]}],[4,"salla-loyalty",{"prizePoints":[8,"prize-points"],"customerPoints":[2,"customer-points"],"prizeTitle":[1,"prize-title"],"allowEmail":[4,"allow-email"],"allowMobile":[4,"allow-mobile"],"requireEmail":[4,"require-email"],"guestMessage":[1,"guest-message"],"loyaltyProgram":[32],"buttonLoading":[32],"selectedItem":[32],"askConfirmation":[32],"is_loggedin":[32],"hasError":[32],"errorMessage":[32],"translationLoaded":[32],"open":[64],"close":[64],"resetExchange":[64],"exchangeLoyaltyPoint":[64]}],[4,"salla-product-size-guide",{"guides":[32],"productId":[32],"placeholder_title":[32],"placeholder_description":[32],"modal_title":[32],"hasError":[32],"open":[64],"close":[64]}],[0,"salla-localization-modal",{"language":[1537],"currency":[1537],"translationLoaded":[32],"languages":[32],"currencies":[32],"hasError":[32],"errorMessage":[32],"open":[64],"close":[64],"submit":[64]}],[4,"salla-login-modal",{"isEmailAllowed":[1028,"is-email-allowed"],"isMobileAllowed":[1028,"is-mobile-allowed"],"isEmailRequired":[1028,"is-email-required"],"supportWebAuth":[516,"support-web-auth"],"currentTabName":[32],"regType":[32],"translationLoaded":[32],"title":[32],"emailErrorMsg":[32],"firstNameErrorMsg":[32],"lastNameErrorMsg":[32],"open":[64]},[[8,"verified","onVerified"]]],[0,"salla-offer-modal",{"offer":[32],"offer_name":[32],"offer_message":[32],"hasError":[32],"errorMessage":[32],"translationLoaded":[32],"open":[64],"showOffer":[64]}],[0,"salla-rating-modal",{"orderId":[2,"order-id"],"order":[32],"hasError":[32],"errorMessage":[32],"translationLoaded":[32],"open":[64],"close":[64]}],[0,"salla-search",{"inline":[4],"oval":[4],"height":[2],"translationLoaded":[32],"results":[32],"loading":[32],"typing":[32],"debounce":[32],"search_term":[32]},[[0,"keydown","handleKeyDown"]]],[4,"salla-social-share",{"url":[513],"urlName":[513,"url-name"],"platforms":[16],"opened":[32],"allPlatforms":[32],"platformIcons":[32],"open":[64]}],[4,"salla-infinite-scroll",{"nextPage":[1,"next-page"],"autoload":[1028],"container":[1],"item":[1],"loadMore":[32],"noMore":[32],"failedToLoad":[32]}],[4,"salla-quantity-input",{"quantity":[32],"decrease":[64],"increase":[64],"setValue":[64]}],[0,"salla-product-availability",{"channels":[1],"productId":[2,"product-id"],"isSubscribed":[1028,"is-subscribed"],"translationLoaded":[32],"title_":[32],"isVisitorSubscribed":[32]}],[4,"salla-verify",{"display":[1],"type":[1025],"autoReload":[4,"auto-reload"],"supportWebAuth":[4,"support-web-auth"],"translationLoaded":[32],"title":[32],"resendAfter":[32],"isProfileVerify":[32],"getCode":[64],"open":[64]}],[0,"salla-datetime-picker",{"value":[1025],"placeholder":[1],"allowInput":[4,"allow-input"],"allowInvalidPreload":[4,"allow-invalid-preload"],"altFormat":[1,"alt-format"],"altInput":[4,"alt-input"],"altInputClass":[1,"alt-input-class"],"appendTo":[16],"ariaDateFormat":[1,"aria-date-format"],"autoFillDefaultTime":[4,"auto-fill-default-time"],"clickOpens":[4,"click-opens"],"closeOnSelect":[4,"close-on-select"],"conjunction":[1],"dateFormat":[1,"date-format"],"defaultDate":[8,"default-date"],"defaultHour":[2,"default-hour"],"defaultMinute":[2,"default-minute"],"defaultSeconds":[2,"default-seconds"],"disable":[16],"disableMobile":[4,"disable-mobile"],"enable":[16],"enableSeconds":[4,"enable-seconds"],"enableTime":[4,"enable-time"],"formatDate":[16],"hourIncrement":[2,"hour-increment"],"inline":[4],"locale":[1],"maxDate":[8,"max-date"],"maxTime":[8,"max-time"],"minDate":[8,"min-date"],"minTime":[8,"min-time"],"minuteIncrement":[2,"minute-increment"],"mode":[1],"monthSelectorType":[1,"month-selector-type"],"nextArrow":[1,"next-arrow"],"noCalendar":[4,"no-calendar"],"onChange":[16],"onClose":[16],"onDayCreate":[16],"onDestroy":[16],"onKeyDown":[16],"onMonthChange":[16],"onOpen":[16],"onParseConfig":[16],"onReady":[16],"onValueUpdate":[16],"onYearChange":[16],"dateParser":[16],"position":[1],"positionElement":[16],"prevArrow":[1,"prev-arrow"],"shorthandCurrentMonth":[4,"shorthand-current-month"],"static":[4],"showMonths":[2,"show-months"],"time_24hr":[4,"time_-2-4hr"],"weekNumbers":[4,"week-numbers"],"wrap":[4]}],[0,"salla-file-upload",{"required":[4],"disabled":[4],"allowDrop":[4,"allow-drop"],"allowBrowse":[4,"allow-browse"],"allowPaste":[4,"allow-paste"],"allowMultiple":[4,"allow-multiple"],"allowReplace":[4,"allow-replace"],"allowRevert":[4,"allow-revert"],"allowRemove":[4,"allow-remove"],"allowProcess":[4,"allow-process"],"allowReorder":[4,"allow-reorder"],"storeAsFile":[4,"store-as-file"],"forceRevert":[4,"force-revert"],"maxFilesCount":[2,"max-files-count"],"maxParallelUploads":[2,"max-parallel-uploads"],"checkValidity":[4,"check-validity"],"itemInsertLocation":[1,"item-insert-location"],"itemInsertInterval":[2,"item-insert-interval"],"credits":[4],"dropOnPage":[4,"drop-on-page"],"dropOnElement":[4,"drop-on-element"],"dropValidation":[4,"drop-validation"],"ignoredFiles":[16],"serverConfig":[1,"server-config"],"instantUpload":[4,"instant-upload"],"chunkUploads":[4,"chunk-uploads"],"chunkForce":[4,"chunk-force"],"chunkSize":[2,"chunk-size"],"chunkRetryDelays":[16],"labelDecimalSeparator":[1,"label-decimal-separator"],"labelThousandsSeparator":[1,"label-thousands-separator"],"labelIdle":[1,"label-idle"],"labelInvalidField":[1,"label-invalid-field"],"labelFileWaitingForSize":[1,"label-file-waiting-for-size"],"labelFileSizeNotAvailable":[1,"label-file-size-not-available"],"labelFileLoading":[1,"label-file-loading"],"labelFileLoadError":[1,"label-file-load-error"],"labelFileProcessing":[1,"label-file-processing"],"labelFileProcessingComplete":[1,"label-file-processing-complete"],"labelFileProcessingAborted":[1,"label-file-processing-aborted"],"labelFileProcessingError":[1,"label-file-processing-error"],"labelFileProcessingRevertError":[1,"label-file-processing-revert-error"],"labelFileRemoveError":[1,"label-file-remove-error"],"labelTapToCancel":[1,"label-tap-to-cancel"],"labelTapToRetry":[1,"label-tap-to-retry"],"labelTapToUndo":[1,"label-tap-to-undo"],"labelButtonRemoveItem":[1,"label-button-remove-item"],"labelButtonAbortItemLoad":[1,"label-button-abort-item-load"],"labelButtonRetryItemLoad":[1,"label-button-retry-item-load"],"labelButtonAbortItemProcessing":[1,"label-button-abort-item-processing"],"labelButtonUndoItemProcessing":[1,"label-button-undo-item-processing"],"labelButtonRetryItemProcessing":[1,"label-button-retry-item-processing"],"labelButtonProcessItem":[1,"label-button-process-item"],"iconRemove":[1,"icon-remove"],"iconProcess":[1,"icon-process"],"iconRetry":[1,"icon-retry"],"iconUndo":[1,"icon-undo"],"pond":[32],"files":[32],"appendFile":[64]}],[0,"salla-rating-stars",{"name":[1],"size":[1],"value":[2]}],[4,"salla-swiper",{"loop":[4],"speed":[2],"itemPerView":[8,"item-per-view"],"spaceBetweenItems":[2,"space-between-items"],"currentIndex":[32],"isLastSlideItem":[32],"isFirstSlideItem":[32]}],[4,"salla-tab-content",{"name":[1],"isSelected":[32],"getChild":[64]}],[4,"salla-tab-header",{"name":[1],"activeClass":[1,"active-class"],"height":[8],"centered":[4],"isSelected":[32],"getChild":[64]}],[4,"salla-tabs",{"backgroundColor":[1,"background-color"],"vertical":[4]},[[0,"tabSelected","onSelectedTab"]]],[4,"salla-list-tile",{"href":[1],"target":[1]}],[0,"salla-tel-input",{"phone":[1025],"name":[1],"countryCode":[1025,"country-code"],"mobileRequired":[32],"countryCodeLabel":[32],"mobileLabel":[32],"tooShort":[32],"tooLong":[32],"invalidCountryCode":[32],"invalidNumber":[32],"errorMap":[32],"getValues":[64],"isValid":[64]}],[4,"salla-placeholder",{"icon":[1],"alignment":[1],"iconSize":[1,"icon-size"],"translationLoaded":[32]}],[0,"salla-skeleton",{"type":[1],"width":[1],"height":[1]}],[4,"salla-modal",{"isClosable":[1028,"is-closable"],"width":[513],"position":[513],"visible":[516],"hasSkeleton":[516,"has-skeleton"],"isLoading":[1540,"is-loading"],"subTitleFirst":[4,"sub-title-first"],"noPadding":[4,"no-padding"],"subTitle":[1,"sub-title"],"centered":[4],"iconStyle":[1,"icon-style"],"modalTitle":[32],"open":[64],"close":[64],"setTitle":[64],"loading":[64],"stopLoading":[64]}],[4,"salla-button",{"shape":[513],"color":[513],"fill":[513],"size":[513],"width":[513],"loading":[516],"disabled":[516],"loaderPosition":[1,"loader-position"],"href":[1],"load":[64],"stop":[64],"setText":[64],"disable":[64],"enable":[64]}],[0,"salla-loading",{"size":[8],"width":[8],"color":[1],"bgColor":[1,"bg-color"]}]]],["p-1914490f.system",[[4,"salla-scopes",{"selection":[1],"searchDisplayLimit":[2,"search-display-limit"],"translationLoaded":[32],"mode":[32],"current_scope":[32],"scopes":[32],"originalScopesList":[32],"selected_scope":[32],"isOpenedBefore":[32],"hasError":[32],"close":[64],"open":[64],"handleSubmit":[64]}]]],["p-a7caaba3.system",[[4,"salla-add-product-button",{"channels":[513],"quantity":[514],"donatingAmount":[514,"donating-amount"],"productId":[520,"product-id"],"productStatus":[513,"product-status"],"productType":[513,"product-type"]}]]],["p-dd9b3c90.system",[[4,"salla-conditional-fields",null,[[0,"change","changeHandler"]]]]],["p-ce3e3fa2.system",[[0,"salla-installment",{"price":[1],"language":[1],"currency":[1],"tamaraIsActive":[32],"tabbyIsActive":[32],"spotiiIsActive":[32]}]]],["p-26a23097.system",[[0,"salla-loyalty-prize-item",{"item":[16]}]]],["p-f610b6bf.system",[[0,"salla-select",{"label":[1],"items":[16],"itemText":[1,"item-text"],"itemValue":[1,"item-value"],"itemDisabled":[1,"item-disabled"],"size":[1],"value":[1032],"autofocus":[4],"clearable":[4],"clearIcon":[1,"clear-icon"],"color":[1],"flat":[4],"disabled":[4],"loading":[4],"loadingColor":[1,"loading-color"],"hint":[1],"persistHint":[4,"persist-hint"],"placeholder":[1],"multiple":[4],"autocomplete":[4],"required":[4],"chips":[4],"shape":[1],"returnObject":[4,"return-object"],"hideDetail":[4,"hide-detail"]}]]]]'),e)}))}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import{p as e,w as a,d as l,N as t,a as o,b as r}from"./p-c571b40b.js";import"./p-f59fe82e.js";import"./p-f84bae34.js";(()=>{e.l=a.__cssshim;const r=Array.from(l.querySelectorAll("script")).find((e=>new RegExp(`/${t}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===t)),i={};return i.resourcesUrl=new URL(".",new URL(r.getAttribute("data-resources-url")||r.src,a.location.href)).href,((e,o)=>{const r=`__sc_import_${t.replace(/\s|-/g,"_")}`;try{a[r]=new Function("w",`return import(w);//${Math.random()}`)}catch(t){const i=new Map;a[r]=t=>{const s=new URL(t,e).href;let n=i.get(s);if(!n){const e=l.createElement("script");e.type="module",e.crossOrigin=o.crossOrigin,e.src=URL.createObjectURL(new Blob([`import * as m from '${s}'; window.${r}.m = m;`],{type:"application/javascript"})),n=new Promise((l=>{e.onload=()=>{l(a[r].m),e.remove()}})),i.set(s,n),l.head.appendChild(e)}return n}}})(i.resourcesUrl,r),a.customElements?o(i):__sc_import_twilight("./p-5db948f2.js").then((()=>i))})().then((e=>r(JSON.parse('[["p-2bdd14ea",[[4,"salla-gifting",{"productId":[2,"product-id"],"sectionTitle":[32],"sectionSubtitle":[32],"sectionBtnText":[32],"giftDetails":[32],"selectImageForYourGift":[32],"selectImageOrUpload":[32],"selectGiftMessage":[32],"giftCustomText":[32],"textId":[32],"incorrectGiftText":[32],"nextStep":[32],"senderNameLabel":[32],"receiverNameFieldLabel":[32],"receiverMobileFieldLabel":[32],"receiverEmailFieldLabel":[32],"emailPlaceholder":[32],"sendLater":[32],"selectSendDateAndTime":[32],"canNotEditOrderAfterSelectDate":[32],"sendGift":[32],"donationRequired":[32],"step1Elems":[32],"step2Elems":[32],"stepsWrapper":[32],"textArea":[32],"imageCover":[32],"textSelect":[32],"customTextArea":[32],"calendarFormGroup":[32],"currentStep":[32],"showCalendar":[32],"showGiftText":[32],"currentLang":[32],"parentClass":[32],"errors":[32],"gift":[32],"selectedGiftTextOption":[32],"showTextArea":[32],"selectedImage":[32],"uploadedImage":[32],"selectedText":[32],"senderName":[32],"errorMessage":[32],"hasError":[32],"quantity":[32],"deliveryDate":[32],"timeZone":[32],"receiverName":[32],"receiverMobile":[32],"receiverCountryCode":[32],"receiverEmail":[32],"open":[64],"close":[64],"goToStep2":[64]}],[4,"salla-loyalty",{"prizePoints":[8,"prize-points"],"customerPoints":[2,"customer-points"],"prizeTitle":[1,"prize-title"],"allowEmail":[4,"allow-email"],"allowMobile":[4,"allow-mobile"],"requireEmail":[4,"require-email"],"guestMessage":[1,"guest-message"],"loyaltyProgram":[32],"buttonLoading":[32],"selectedItem":[32],"askConfirmation":[32],"is_loggedin":[32],"hasError":[32],"errorMessage":[32],"translationLoaded":[32],"open":[64],"close":[64],"resetExchange":[64],"exchangeLoyaltyPoint":[64]}],[4,"salla-product-size-guide",{"guides":[32],"productId":[32],"placeholder_title":[32],"placeholder_description":[32],"modal_title":[32],"hasError":[32],"open":[64],"close":[64]}],[0,"salla-rating-modal",{"orderId":[2,"order-id"],"order":[32],"hasError":[32],"errorMessage":[32],"translationLoaded":[32],"open":[64],"close":[64]}],[0,"salla-localization-modal",{"language":[1537],"currency":[1537],"translationLoaded":[32],"languages":[32],"currencies":[32],"hasError":[32],"errorMessage":[32],"open":[64],"close":[64],"submit":[64]}],[4,"salla-login-modal",{"isEmailAllowed":[1028,"is-email-allowed"],"isMobileAllowed":[1028,"is-mobile-allowed"],"isEmailRequired":[1028,"is-email-required"],"supportWebAuth":[516,"support-web-auth"],"currentTabName":[32],"regType":[32],"translationLoaded":[32],"title":[32],"emailErrorMsg":[32],"firstNameErrorMsg":[32],"lastNameErrorMsg":[32],"open":[64]},[[8,"verified","onVerified"]]],[0,"salla-offer-modal",{"offer":[32],"offer_name":[32],"offer_message":[32],"hasError":[32],"errorMessage":[32],"productID":[32],"translationLoaded":[32],"addToCartLabel":[32],"open":[64],"showOffer":[64]}],[0,"salla-user-settings",{"isNotifiable":[516,"is-notifiable"],"deactivateAccount":[32],"promotionalMsgs":[32],"deactivateDesc":[32],"promotionalMsgsDesc":[32],"sorryForLeavingText":[32],"warningText":[32],"keepAccount":[32],"buttonLoading":[32]}],[0,"salla-search",{"inline":[4],"oval":[4],"height":[2],"translationLoaded":[32],"results":[32],"loading":[32],"typing":[32],"debounce":[32],"search_term":[32]},[[0,"keydown","handleKeyDown"]]],[4,"salla-social-share",{"url":[513],"urlName":[513,"url-name"],"platforms":[16],"opened":[32],"allPlatforms":[32],"platformIcons":[32],"open":[64]}],[1,"salla-cart-summary",{"cartSummaryCount":[32],"cartSummaryTotal":[32]}],[4,"salla-infinite-scroll",{"nextPage":[1,"next-page"],"autoload":[1028],"container":[1],"item":[1],"loadMore":[32],"noMore":[32],"failedToLoad":[32]}],[4,"salla-quantity-input",{"quantity":[32],"decrease":[64],"increase":[64],"setValue":[64]}],[0,"salla-product-availability",{"channels":[1],"productId":[2,"product-id"],"isSubscribed":[1028,"is-subscribed"],"translationLoaded":[32],"title_":[32],"isVisitorSubscribed":[32]}],[4,"salla-verify",{"display":[1],"type":[1025],"autoReload":[4,"auto-reload"],"supportWebAuth":[4,"support-web-auth"],"translationLoaded":[32],"title":[32],"resendAfter":[32],"isProfileVerify":[32],"getCode":[64],"open":[64]}],[0,"salla-datetime-picker",{"value":[1025],"placeholder":[1],"allowInput":[4,"allow-input"],"allowInvalidPreload":[4,"allow-invalid-preload"],"altFormat":[1,"alt-format"],"altInput":[4,"alt-input"],"altInputClass":[1,"alt-input-class"],"appendTo":[16],"ariaDateFormat":[1,"aria-date-format"],"autoFillDefaultTime":[4,"auto-fill-default-time"],"clickOpens":[4,"click-opens"],"closeOnSelect":[4,"close-on-select"],"conjunction":[1],"dateFormat":[1,"date-format"],"defaultDate":[8,"default-date"],"defaultHour":[2,"default-hour"],"defaultMinute":[2,"default-minute"],"defaultSeconds":[2,"default-seconds"],"disable":[16],"disableMobile":[4,"disable-mobile"],"enable":[16],"enableSeconds":[4,"enable-seconds"],"enableTime":[4,"enable-time"],"formatDate":[16],"hourIncrement":[2,"hour-increment"],"inline":[4],"locale":[1],"maxDate":[8,"max-date"],"maxTime":[8,"max-time"],"minDate":[8,"min-date"],"minTime":[8,"min-time"],"minuteIncrement":[2,"minute-increment"],"mode":[1],"monthSelectorType":[1,"month-selector-type"],"nextArrow":[1,"next-arrow"],"noCalendar":[4,"no-calendar"],"onChange":[16],"onClose":[16],"onDayCreate":[16],"onDestroy":[16],"onKeyDown":[16],"onMonthChange":[16],"onOpen":[16],"onParseConfig":[16],"onReady":[16],"onValueUpdate":[16],"onYearChange":[16],"dateParser":[16],"position":[1],"positionElement":[16],"prevArrow":[1,"prev-arrow"],"shorthandCurrentMonth":[4,"shorthand-current-month"],"static":[4],"showMonths":[2,"show-months"],"time_24hr":[4,"time_-2-4hr"],"weekNumbers":[4,"week-numbers"],"wrap":[4]}],[0,"salla-file-upload",{"required":[4],"disabled":[4],"allowDrop":[4,"allow-drop"],"allowBrowse":[4,"allow-browse"],"allowPaste":[4,"allow-paste"],"allowMultiple":[4,"allow-multiple"],"allowReplace":[4,"allow-replace"],"allowRevert":[4,"allow-revert"],"allowRemove":[4,"allow-remove"],"allowProcess":[4,"allow-process"],"allowReorder":[4,"allow-reorder"],"storeAsFile":[4,"store-as-file"],"forceRevert":[4,"force-revert"],"maxFilesCount":[2,"max-files-count"],"maxParallelUploads":[2,"max-parallel-uploads"],"checkValidity":[4,"check-validity"],"itemInsertLocation":[1,"item-insert-location"],"itemInsertInterval":[2,"item-insert-interval"],"credits":[4],"dropOnPage":[4,"drop-on-page"],"dropOnElement":[4,"drop-on-element"],"dropValidation":[4,"drop-validation"],"ignoredFiles":[16],"serverConfig":[1,"server-config"],"instantUpload":[4,"instant-upload"],"chunkUploads":[4,"chunk-uploads"],"chunkForce":[4,"chunk-force"],"chunkSize":[2,"chunk-size"],"chunkRetryDelays":[16],"labelDecimalSeparator":[1,"label-decimal-separator"],"labelThousandsSeparator":[1,"label-thousands-separator"],"labelIdle":[1,"label-idle"],"labelInvalidField":[1,"label-invalid-field"],"labelFileWaitingForSize":[1,"label-file-waiting-for-size"],"labelFileSizeNotAvailable":[1,"label-file-size-not-available"],"labelFileLoading":[1,"label-file-loading"],"labelFileLoadError":[1,"label-file-load-error"],"labelFileProcessing":[1,"label-file-processing"],"labelFileProcessingComplete":[1,"label-file-processing-complete"],"labelFileProcessingAborted":[1,"label-file-processing-aborted"],"labelFileProcessingError":[1,"label-file-processing-error"],"labelFileProcessingRevertError":[1,"label-file-processing-revert-error"],"labelFileRemoveError":[1,"label-file-remove-error"],"labelTapToCancel":[1,"label-tap-to-cancel"],"labelTapToRetry":[1,"label-tap-to-retry"],"labelTapToUndo":[1,"label-tap-to-undo"],"labelButtonRemoveItem":[1,"label-button-remove-item"],"labelButtonAbortItemLoad":[1,"label-button-abort-item-load"],"labelButtonRetryItemLoad":[1,"label-button-retry-item-load"],"labelButtonAbortItemProcessing":[1,"label-button-abort-item-processing"],"labelButtonUndoItemProcessing":[1,"label-button-undo-item-processing"],"labelButtonRetryItemProcessing":[1,"label-button-retry-item-processing"],"labelButtonProcessItem":[1,"label-button-process-item"],"iconRemove":[1,"icon-remove"],"iconProcess":[1,"icon-process"],"iconRetry":[1,"icon-retry"],"iconUndo":[1,"icon-undo"],"pond":[32],"files":[32],"appendFile":[64]}],[0,"salla-rating-stars",{"name":[1],"size":[1],"value":[2]}],[4,"salla-swiper",{"loop":[4],"speed":[2],"itemPerView":[8,"item-per-view"],"spaceBetweenItems":[2,"space-between-items"],"currentIndex":[32],"isLastSlideItem":[32],"isFirstSlideItem":[32]}],[4,"salla-tab-content",{"name":[1],"isSelected":[32],"getChild":[64]}],[4,"salla-tab-header",{"name":[1],"activeClass":[1,"active-class"],"height":[8],"centered":[4],"isSelected":[32],"getChild":[64]}],[4,"salla-tabs",{"backgroundColor":[1,"background-color"],"vertical":[4]},[[0,"tabSelected","onSelectedTab"]]],[4,"salla-list-tile",{"href":[1],"target":[1]}],[0,"salla-tel-input",{"phone":[1025],"name":[1],"countryCode":[1025,"country-code"],"mobileRequired":[32],"countryCodeLabel":[32],"mobileLabel":[32],"tooShort":[32],"tooLong":[32],"invalidCountryCode":[32],"invalidNumber":[32],"errorMap":[32],"getValues":[64],"isValid":[64]}],[4,"salla-placeholder",{"icon":[1],"alignment":[1],"iconSize":[1,"icon-size"],"translationLoaded":[32]}],[0,"salla-skeleton",{"type":[1],"width":[1],"height":[1]}],[4,"salla-modal",{"isClosable":[1028,"is-closable"],"width":[513],"position":[513],"visible":[516],"hasSkeleton":[516,"has-skeleton"],"isLoading":[1540,"is-loading"],"subTitleFirst":[4,"sub-title-first"],"noPadding":[4,"no-padding"],"subTitle":[1,"sub-title"],"centered":[4],"iconStyle":[1,"icon-style"],"modalTitle":[32],"open":[64],"close":[64],"setTitle":[64],"loading":[64],"stopLoading":[64]},[[0,"keyup","handleKeyUp"]]],[4,"salla-button",{"shape":[513],"color":[513],"fill":[513],"size":[513],"width":[513],"loading":[516],"disabled":[516],"loaderPosition":[1,"loader-position"],"href":[1],"load":[64],"stop":[64],"setText":[64],"disable":[64],"enable":[64]}],[0,"salla-loading",{"size":[8],"width":[8],"color":[1],"bgColor":[1,"bg-color"]}]]],["p-20584294",[[4,"salla-scopes",{"selection":[1],"searchDisplayLimit":[2,"search-display-limit"],"translationLoaded":[32],"mode":[32],"current_scope":[32],"scopes":[32],"originalScopesList":[32],"selected_scope":[32],"isOpenedBefore":[32],"hasError":[32],"close":[64],"open":[64],"handleSubmit":[64]}]]],["p-06ecc027",[[4,"salla-add-product-button",{"channels":[513],"quantity":[514],"donatingAmount":[514,"donating-amount"],"productId":[520,"product-id"],"productStatus":[513,"product-status"],"productType":[513,"product-type"]}]]],["p-092ad6d4",[[4,"salla-conditional-fields",null,[[0,"change","changeHandler"]]]]],["p-a2cc9062",[[0,"salla-installment",{"price":[1],"language":[1],"currency":[1],"tamaraIsActive":[32],"tabbyIsActive":[32],"spotiiIsActive":[32]}]]],["p-2b8f1167",[[0,"salla-loyalty-prize-item",{"item":[16]}]]],["p-bac267ae",[[0,"salla-select",{"label":[1],"items":[16],"itemText":[1,"item-text"],"itemValue":[1,"item-value"],"itemDisabled":[1,"item-disabled"],"size":[1],"value":[1032],"autofocus":[4],"clearable":[4],"clearIcon":[1,"clear-icon"],"color":[1],"flat":[4],"disabled":[4],"loading":[4],"loadingColor":[1,"loading-color"],"hint":[1],"persistHint":[4,"persist-hint"],"placeholder":[1],"multiple":[4],"autocomplete":[4],"required":[4],"chips":[4],"shape":[1],"returnObject":[4,"return-object"],"hideDetail":[4,"hide-detail"]}]]]]'),e)));
4
+ import{p as e,w as a,d as l,N as t,a as o,b as i}from"./p-ca68752d.js";import"./p-48b393ab.js";import"./p-f84bae34.js";(()=>{e.l=a.__cssshim;const i=Array.from(l.querySelectorAll("script")).find((e=>new RegExp(`/${t}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===t)),r={};return r.resourcesUrl=new URL(".",new URL(i.getAttribute("data-resources-url")||i.src,a.location.href)).href,((e,o)=>{const i=`__sc_import_${t.replace(/\s|-/g,"_")}`;try{a[i]=new Function("w",`return import(w);//${Math.random()}`)}catch(t){const r=new Map;a[i]=t=>{const s=new URL(t,e).href;let n=r.get(s);if(!n){const e=l.createElement("script");e.type="module",e.crossOrigin=o.crossOrigin,e.src=URL.createObjectURL(new Blob([`import * as m from '${s}'; window.${i}.m = m;`],{type:"application/javascript"})),n=new Promise((l=>{e.onload=()=>{l(a[i].m),e.remove()}})),r.set(s,n),l.head.appendChild(e)}return n}}})(r.resourcesUrl,i),a.customElements?o(r):__sc_import_twilight("./p-5db948f2.js").then((()=>r))})().then((e=>i(JSON.parse('[["p-d64f3123",[[4,"salla-gifting",{"productId":[2,"product-id"],"sectionTitle":[32],"sectionSubtitle":[32],"sectionBtnText":[32],"giftDetails":[32],"selectImageForYourGift":[32],"selectImageOrUpload":[32],"selectGiftMessage":[32],"giftCustomText":[32],"textId":[32],"incorrectGiftText":[32],"nextStep":[32],"senderNameLabel":[32],"receiverNameFieldLabel":[32],"receiverMobileFieldLabel":[32],"receiverEmailFieldLabel":[32],"emailPlaceholder":[32],"sendLater":[32],"selectSendDateAndTime":[32],"canNotEditOrderAfterSelectDate":[32],"sendGift":[32],"donationRequired":[32],"step1Elems":[32],"step2Elems":[32],"stepsWrapper":[32],"textArea":[32],"imageCover":[32],"textSelect":[32],"customTextArea":[32],"calendarFormGroup":[32],"currentStep":[32],"showCalendar":[32],"showGiftText":[32],"currentLang":[32],"parentClass":[32],"errors":[32],"gift":[32],"selectedGiftTextOption":[32],"showTextArea":[32],"selectedImage":[32],"uploadedImage":[32],"selectedText":[32],"senderName":[32],"errorMessage":[32],"hasError":[32],"quantity":[32],"deliveryDate":[32],"timeZone":[32],"receiverName":[32],"receiverMobile":[32],"receiverCountryCode":[32],"receiverEmail":[32],"open":[64],"close":[64],"goToStep2":[64]}],[4,"salla-loyalty",{"prizePoints":[8,"prize-points"],"customerPoints":[2,"customer-points"],"prizeTitle":[1,"prize-title"],"allowEmail":[4,"allow-email"],"allowMobile":[4,"allow-mobile"],"requireEmail":[4,"require-email"],"guestMessage":[1,"guest-message"],"loyaltyProgram":[32],"buttonLoading":[32],"selectedItem":[32],"askConfirmation":[32],"is_loggedin":[32],"hasError":[32],"errorMessage":[32],"translationLoaded":[32],"open":[64],"close":[64],"resetExchange":[64],"exchangeLoyaltyPoint":[64]}],[4,"salla-product-size-guide",{"guides":[32],"productId":[32],"placeholder_title":[32],"placeholder_description":[32],"modal_title":[32],"hasError":[32],"open":[64],"close":[64]}],[0,"salla-localization-modal",{"language":[1537],"currency":[1537],"translationLoaded":[32],"languages":[32],"currencies":[32],"hasError":[32],"errorMessage":[32],"open":[64],"close":[64],"submit":[64]}],[4,"salla-login-modal",{"isEmailAllowed":[1028,"is-email-allowed"],"isMobileAllowed":[1028,"is-mobile-allowed"],"isEmailRequired":[1028,"is-email-required"],"supportWebAuth":[516,"support-web-auth"],"currentTabName":[32],"regType":[32],"translationLoaded":[32],"title":[32],"emailErrorMsg":[32],"firstNameErrorMsg":[32],"lastNameErrorMsg":[32],"open":[64]},[[8,"verified","onVerified"]]],[0,"salla-offer-modal",{"offer":[32],"offer_name":[32],"offer_message":[32],"hasError":[32],"errorMessage":[32],"translationLoaded":[32],"open":[64],"showOffer":[64]}],[0,"salla-rating-modal",{"orderId":[2,"order-id"],"order":[32],"hasError":[32],"errorMessage":[32],"translationLoaded":[32],"open":[64],"close":[64]}],[0,"salla-search",{"inline":[4],"oval":[4],"height":[2],"translationLoaded":[32],"results":[32],"loading":[32],"typing":[32],"debounce":[32],"search_term":[32]},[[0,"keydown","handleKeyDown"]]],[4,"salla-social-share",{"url":[513],"urlName":[513,"url-name"],"platforms":[16],"opened":[32],"allPlatforms":[32],"platformIcons":[32],"open":[64]}],[4,"salla-infinite-scroll",{"nextPage":[1,"next-page"],"autoload":[1028],"container":[1],"item":[1],"loadMore":[32],"noMore":[32],"failedToLoad":[32]}],[4,"salla-quantity-input",{"quantity":[32],"decrease":[64],"increase":[64],"setValue":[64]}],[0,"salla-product-availability",{"channels":[1],"productId":[2,"product-id"],"isSubscribed":[1028,"is-subscribed"],"translationLoaded":[32],"title_":[32],"isVisitorSubscribed":[32]}],[4,"salla-verify",{"display":[1],"type":[1025],"autoReload":[4,"auto-reload"],"supportWebAuth":[4,"support-web-auth"],"translationLoaded":[32],"title":[32],"resendAfter":[32],"isProfileVerify":[32],"getCode":[64],"open":[64]}],[0,"salla-datetime-picker",{"value":[1025],"placeholder":[1],"allowInput":[4,"allow-input"],"allowInvalidPreload":[4,"allow-invalid-preload"],"altFormat":[1,"alt-format"],"altInput":[4,"alt-input"],"altInputClass":[1,"alt-input-class"],"appendTo":[16],"ariaDateFormat":[1,"aria-date-format"],"autoFillDefaultTime":[4,"auto-fill-default-time"],"clickOpens":[4,"click-opens"],"closeOnSelect":[4,"close-on-select"],"conjunction":[1],"dateFormat":[1,"date-format"],"defaultDate":[8,"default-date"],"defaultHour":[2,"default-hour"],"defaultMinute":[2,"default-minute"],"defaultSeconds":[2,"default-seconds"],"disable":[16],"disableMobile":[4,"disable-mobile"],"enable":[16],"enableSeconds":[4,"enable-seconds"],"enableTime":[4,"enable-time"],"formatDate":[16],"hourIncrement":[2,"hour-increment"],"inline":[4],"locale":[1],"maxDate":[8,"max-date"],"maxTime":[8,"max-time"],"minDate":[8,"min-date"],"minTime":[8,"min-time"],"minuteIncrement":[2,"minute-increment"],"mode":[1],"monthSelectorType":[1,"month-selector-type"],"nextArrow":[1,"next-arrow"],"noCalendar":[4,"no-calendar"],"onChange":[16],"onClose":[16],"onDayCreate":[16],"onDestroy":[16],"onKeyDown":[16],"onMonthChange":[16],"onOpen":[16],"onParseConfig":[16],"onReady":[16],"onValueUpdate":[16],"onYearChange":[16],"dateParser":[16],"position":[1],"positionElement":[16],"prevArrow":[1,"prev-arrow"],"shorthandCurrentMonth":[4,"shorthand-current-month"],"static":[4],"showMonths":[2,"show-months"],"time_24hr":[4,"time_-2-4hr"],"weekNumbers":[4,"week-numbers"],"wrap":[4]}],[0,"salla-file-upload",{"required":[4],"disabled":[4],"allowDrop":[4,"allow-drop"],"allowBrowse":[4,"allow-browse"],"allowPaste":[4,"allow-paste"],"allowMultiple":[4,"allow-multiple"],"allowReplace":[4,"allow-replace"],"allowRevert":[4,"allow-revert"],"allowRemove":[4,"allow-remove"],"allowProcess":[4,"allow-process"],"allowReorder":[4,"allow-reorder"],"storeAsFile":[4,"store-as-file"],"forceRevert":[4,"force-revert"],"maxFilesCount":[2,"max-files-count"],"maxParallelUploads":[2,"max-parallel-uploads"],"checkValidity":[4,"check-validity"],"itemInsertLocation":[1,"item-insert-location"],"itemInsertInterval":[2,"item-insert-interval"],"credits":[4],"dropOnPage":[4,"drop-on-page"],"dropOnElement":[4,"drop-on-element"],"dropValidation":[4,"drop-validation"],"ignoredFiles":[16],"serverConfig":[1,"server-config"],"instantUpload":[4,"instant-upload"],"chunkUploads":[4,"chunk-uploads"],"chunkForce":[4,"chunk-force"],"chunkSize":[2,"chunk-size"],"chunkRetryDelays":[16],"labelDecimalSeparator":[1,"label-decimal-separator"],"labelThousandsSeparator":[1,"label-thousands-separator"],"labelIdle":[1,"label-idle"],"labelInvalidField":[1,"label-invalid-field"],"labelFileWaitingForSize":[1,"label-file-waiting-for-size"],"labelFileSizeNotAvailable":[1,"label-file-size-not-available"],"labelFileLoading":[1,"label-file-loading"],"labelFileLoadError":[1,"label-file-load-error"],"labelFileProcessing":[1,"label-file-processing"],"labelFileProcessingComplete":[1,"label-file-processing-complete"],"labelFileProcessingAborted":[1,"label-file-processing-aborted"],"labelFileProcessingError":[1,"label-file-processing-error"],"labelFileProcessingRevertError":[1,"label-file-processing-revert-error"],"labelFileRemoveError":[1,"label-file-remove-error"],"labelTapToCancel":[1,"label-tap-to-cancel"],"labelTapToRetry":[1,"label-tap-to-retry"],"labelTapToUndo":[1,"label-tap-to-undo"],"labelButtonRemoveItem":[1,"label-button-remove-item"],"labelButtonAbortItemLoad":[1,"label-button-abort-item-load"],"labelButtonRetryItemLoad":[1,"label-button-retry-item-load"],"labelButtonAbortItemProcessing":[1,"label-button-abort-item-processing"],"labelButtonUndoItemProcessing":[1,"label-button-undo-item-processing"],"labelButtonRetryItemProcessing":[1,"label-button-retry-item-processing"],"labelButtonProcessItem":[1,"label-button-process-item"],"iconRemove":[1,"icon-remove"],"iconProcess":[1,"icon-process"],"iconRetry":[1,"icon-retry"],"iconUndo":[1,"icon-undo"],"pond":[32],"files":[32],"appendFile":[64]}],[0,"salla-rating-stars",{"name":[1],"size":[1],"value":[2]}],[4,"salla-swiper",{"loop":[4],"speed":[2],"itemPerView":[8,"item-per-view"],"spaceBetweenItems":[2,"space-between-items"],"currentIndex":[32],"isLastSlideItem":[32],"isFirstSlideItem":[32]}],[4,"salla-tab-content",{"name":[1],"isSelected":[32],"getChild":[64]}],[4,"salla-tab-header",{"name":[1],"activeClass":[1,"active-class"],"height":[8],"centered":[4],"isSelected":[32],"getChild":[64]}],[4,"salla-tabs",{"backgroundColor":[1,"background-color"],"vertical":[4]},[[0,"tabSelected","onSelectedTab"]]],[4,"salla-list-tile",{"href":[1],"target":[1]}],[0,"salla-tel-input",{"phone":[1025],"name":[1],"countryCode":[1025,"country-code"],"mobileRequired":[32],"countryCodeLabel":[32],"mobileLabel":[32],"tooShort":[32],"tooLong":[32],"invalidCountryCode":[32],"invalidNumber":[32],"errorMap":[32],"getValues":[64],"isValid":[64]}],[4,"salla-placeholder",{"icon":[1],"alignment":[1],"iconSize":[1,"icon-size"],"translationLoaded":[32]}],[0,"salla-skeleton",{"type":[1],"width":[1],"height":[1]}],[4,"salla-modal",{"isClosable":[1028,"is-closable"],"width":[513],"position":[513],"visible":[516],"hasSkeleton":[516,"has-skeleton"],"isLoading":[1540,"is-loading"],"subTitleFirst":[4,"sub-title-first"],"noPadding":[4,"no-padding"],"subTitle":[1,"sub-title"],"centered":[4],"iconStyle":[1,"icon-style"],"modalTitle":[32],"open":[64],"close":[64],"setTitle":[64],"loading":[64],"stopLoading":[64]}],[4,"salla-button",{"shape":[513],"color":[513],"fill":[513],"size":[513],"width":[513],"loading":[516],"disabled":[516],"loaderPosition":[1,"loader-position"],"href":[1],"load":[64],"stop":[64],"setText":[64],"disable":[64],"enable":[64]}],[0,"salla-loading",{"size":[8],"width":[8],"color":[1],"bgColor":[1,"bg-color"]}]]],["p-bbc94b9b",[[4,"salla-scopes",{"selection":[1],"searchDisplayLimit":[2,"search-display-limit"],"translationLoaded":[32],"mode":[32],"current_scope":[32],"scopes":[32],"originalScopesList":[32],"selected_scope":[32],"isOpenedBefore":[32],"hasError":[32],"close":[64],"open":[64],"handleSubmit":[64]}]]],["p-13129ac9",[[4,"salla-add-product-button",{"channels":[513],"quantity":[514],"donatingAmount":[514,"donating-amount"],"productId":[520,"product-id"],"productStatus":[513,"product-status"],"productType":[513,"product-type"]}]]],["p-521b6fde",[[4,"salla-conditional-fields",null,[[0,"change","changeHandler"]]]]],["p-0db2b810",[[0,"salla-installment",{"price":[1],"language":[1],"currency":[1],"tamaraIsActive":[32],"tabbyIsActive":[32],"spotiiIsActive":[32]}]]],["p-10ac9c79",[[0,"salla-loyalty-prize-item",{"item":[16]}]]],["p-97daba27",[[0,"salla-select",{"label":[1],"items":[16],"itemText":[1,"item-text"],"itemValue":[1,"item-value"],"itemDisabled":[1,"item-disabled"],"size":[1],"value":[1032],"autofocus":[4],"clearable":[4],"clearIcon":[1,"clear-icon"],"color":[1],"flat":[4],"disabled":[4],"loading":[4],"loadingColor":[1,"loading-color"],"hint":[1],"persistHint":[4,"persist-hint"],"placeholder":[1],"multiple":[4],"autocomplete":[4],"required":[4],"chips":[4],"shape":[1],"returnObject":[4,"return-object"],"hideDetail":[4,"hide-detail"]}]]]]'),e)));
@@ -117,7 +117,7 @@ var __assign=this&&this.__assign||function(){return(__assign=Object.assign||func
117
117
  var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
118
118
  var start = function() {
119
119
  // if src is not present then origin is "null", and new URL() throws TypeError: Failed to construct 'URL': Invalid base URL
120
- var url = new URL('./p-ee91a41b.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
120
+ var url = new URL('./p-f6171fb9.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
121
121
  System.import(url.href);
122
122
  };
123
123
 
@@ -1,9 +1,9 @@
1
- declare class Helper {
2
- private debounce_;
3
- toggleElementClassIf(element: any, classes1: any, classes2: any, callback: any): this;
4
- toggleClassIf(selector: any, classes1: any, classes2: any, callback: any): this;
5
- isValidEmail(email: any): boolean;
6
- debounce(fn: any, ...data: any[]): any;
1
+ declare class Helper extends salla.AppHelpers {
2
+ setHost(host: any): void;
3
+ getElement(selector: any): any;
4
+ getAttribute(selector: any, attribute: any): any;
5
+ val(selector: any): any;
6
+ isUser(): boolean;
7
7
  }
8
8
  declare const _default: Helper;
9
9
  export default _default;
@@ -1,6 +1,7 @@
1
1
  export declare class SallaInstallment {
2
2
  private tabbyBorderRemoved;
3
3
  private tabbyRemoveBorderTries;
4
+ private readyToRender;
4
5
  constructor();
5
6
  /**
6
7
  * Current product price
@@ -18,7 +19,7 @@ export declare class SallaInstallment {
18
19
  tabbyIsActive: boolean;
19
20
  spotiiIsActive: boolean;
20
21
  render(): any;
21
- renderInstallments(): void;
22
+ componentDidRender(): void;
22
23
  /**
23
24
  * this is workaround to remove the default border and add margin
24
25
  * we will try to remove tabby border 5 times for 7.5 seconds
@@ -53,7 +53,6 @@ export declare class SallaModal {
53
53
  host: HTMLElement;
54
54
  modalVisibilityChanged: EventEmitter<Boolean>;
55
55
  handleVisible(newValue: boolean): void;
56
- handleKeyUp(ev: KeyboardEvent): void;
57
56
  /**
58
57
  * Open the modal
59
58
  */
@@ -13,7 +13,6 @@ export default interface Offer {
13
13
  };
14
14
  get: {
15
15
  categories: null | Array<any>;
16
- discounts_table: null | Array<any>;
17
16
  products: null | Array<{
18
17
  id: number;
19
18
  type: string;
@@ -14,10 +14,8 @@ export declare class SallaOfferModal {
14
14
  offer_message: string;
15
15
  hasError: boolean;
16
16
  errorMessage: string;
17
- productID: number;
18
17
  constructor();
19
18
  translationLoaded: boolean;
20
- addToCartLabel: string;
21
19
  /**
22
20
  * Show the available offers for the product
23
21
  * @param product_id
@@ -29,8 +27,6 @@ export declare class SallaOfferModal {
29
27
  */
30
28
  showOffer(offer: any): Promise<void>;
31
29
  private rememberMe;
32
- private addToCart;
33
- private getOfferContent;
34
30
  private addItem;
35
31
  private defaultProductSlot;
36
32
  render(): any;
@@ -2,7 +2,7 @@ export declare class SallaPlaceholder {
2
2
  constructor();
3
3
  translationLoaded: boolean;
4
4
  /**
5
- * Custom icon to display, defaults to [`Inbox`], can be any valid svg icon or inline element with font icon
5
+ * Custom icon to display, defaults to [`sicon-inbox`]
6
6
  */
7
7
  icon: string;
8
8
  /**
@@ -10,9 +10,9 @@ export declare class SallaPlaceholder {
10
10
  */
11
11
  alignment: 'left' | 'center' | 'right';
12
12
  /**
13
- * The size of the icon. Defaults to [`md`] = 45px for font icon & width/height: 3.5rem for svg icon
13
+ * The size of the icon. Defaults to [`md`]
14
14
  */
15
- iconSize: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
15
+ iconSize: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
16
16
  private alignmentClass;
17
17
  render(): any;
18
18
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import OrderFeedbackResponse from "./order-feedback-response";
3
2
  export declare class SallaRatingModal {
4
3
  constructor();
@@ -26,7 +25,7 @@ export declare class SallaRatingModal {
26
25
  /**
27
26
  * Show the rating modal
28
27
  */
29
- open(): Promise<void | NodeJS.Timeout>;
28
+ open(): Promise<any>;
30
29
  /**
31
30
  * Show the rating modal
32
31
  */
@@ -14,6 +14,7 @@ export declare class SallaVerify {
14
14
  private resend;
15
15
  private otpInputs;
16
16
  private data;
17
+ private initiated;
17
18
  translationLoaded: boolean;
18
19
  host: HTMLElement;
19
20
  /**
@@ -42,8 +43,6 @@ export declare class SallaVerify {
42
43
  * to use: `salla.api.auth.verify` or `salla.profile.verify`
43
44
  */
44
45
  isProfileVerify: boolean;
45
- private handleKeyUp;
46
- private handlePaste;
47
46
  /**
48
47
  * Get current code
49
48
  * @return {string}
@@ -95,8 +95,6 @@ export namespace Components {
95
95
  */
96
96
  "width": 'wide' | 'normal';
97
97
  }
98
- interface SallaCartSummary {
99
- }
100
98
  interface SallaConditionalFields {
101
99
  }
102
100
  interface SallaDatetimePicker {
@@ -830,13 +828,13 @@ export namespace Components {
830
828
  */
831
829
  "alignment": 'left' | 'center' | 'right';
832
830
  /**
833
- * Custom icon to display, defaults to [`Inbox`], can be any valid svg icon or inline element with font icon
831
+ * Custom icon to display, defaults to [`sicon-inbox`]
834
832
  */
835
833
  "icon": string;
836
834
  /**
837
- * The size of the icon. Defaults to [`md`] = 45px for font icon & width/height: 3.5rem for svg icon
835
+ * The size of the icon. Defaults to [`md`]
838
836
  */
839
- "iconSize": 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
837
+ "iconSize": 'xs' | 'sm' | 'md' | 'lg' | 'xl';
840
838
  }
841
839
  interface SallaProductAvailability {
842
840
  /**
@@ -887,7 +885,7 @@ export namespace Components {
887
885
  /**
888
886
  * Show the rating modal
889
887
  */
890
- "open": () => Promise<void | NodeJS.Timeout>;
888
+ "open": () => Promise<any>;
891
889
  /**
892
890
  * The order id, to rate on its products & shipping
893
891
  */
@@ -1161,9 +1159,6 @@ export namespace Components {
1161
1159
  */
1162
1160
  "phone": string;
1163
1161
  }
1164
- interface SallaUserSettings {
1165
- "isNotifiable": boolean;
1166
- }
1167
1162
  interface SallaVerify {
1168
1163
  /**
1169
1164
  * should auto reloading the page after success verification
@@ -1238,12 +1233,6 @@ declare global {
1238
1233
  prototype: HTMLSallaButtonElement;
1239
1234
  new (): HTMLSallaButtonElement;
1240
1235
  };
1241
- interface HTMLSallaCartSummaryElement extends Components.SallaCartSummary, HTMLStencilElement {
1242
- }
1243
- var HTMLSallaCartSummaryElement: {
1244
- prototype: HTMLSallaCartSummaryElement;
1245
- new (): HTMLSallaCartSummaryElement;
1246
- };
1247
1236
  interface HTMLSallaConditionalFieldsElement extends Components.SallaConditionalFields, HTMLStencilElement {
1248
1237
  }
1249
1238
  var HTMLSallaConditionalFieldsElement: {
@@ -1424,12 +1413,6 @@ declare global {
1424
1413
  prototype: HTMLSallaTelInputElement;
1425
1414
  new (): HTMLSallaTelInputElement;
1426
1415
  };
1427
- interface HTMLSallaUserSettingsElement extends Components.SallaUserSettings, HTMLStencilElement {
1428
- }
1429
- var HTMLSallaUserSettingsElement: {
1430
- prototype: HTMLSallaUserSettingsElement;
1431
- new (): HTMLSallaUserSettingsElement;
1432
- };
1433
1416
  interface HTMLSallaVerifyElement extends Components.SallaVerify, HTMLStencilElement {
1434
1417
  }
1435
1418
  var HTMLSallaVerifyElement: {
@@ -1439,7 +1422,6 @@ declare global {
1439
1422
  interface HTMLElementTagNameMap {
1440
1423
  "salla-add-product-button": HTMLSallaAddProductButtonElement;
1441
1424
  "salla-button": HTMLSallaButtonElement;
1442
- "salla-cart-summary": HTMLSallaCartSummaryElement;
1443
1425
  "salla-conditional-fields": HTMLSallaConditionalFieldsElement;
1444
1426
  "salla-datetime-picker": HTMLSallaDatetimePickerElement;
1445
1427
  "salla-file-upload": HTMLSallaFileUploadElement;
@@ -1470,7 +1452,6 @@ declare global {
1470
1452
  "salla-tab-header": HTMLSallaTabHeaderElement;
1471
1453
  "salla-tabs": HTMLSallaTabsElement;
1472
1454
  "salla-tel-input": HTMLSallaTelInputElement;
1473
- "salla-user-settings": HTMLSallaUserSettingsElement;
1474
1455
  "salla-verify": HTMLSallaVerifyElement;
1475
1456
  }
1476
1457
  }
@@ -1547,8 +1528,6 @@ declare namespace LocalJSX {
1547
1528
  */
1548
1529
  "width"?: 'wide' | 'normal';
1549
1530
  }
1550
- interface SallaCartSummary {
1551
- }
1552
1531
  interface SallaConditionalFields {
1553
1532
  }
1554
1533
  interface SallaDatetimePicker {
@@ -2206,13 +2185,13 @@ declare namespace LocalJSX {
2206
2185
  */
2207
2186
  "alignment"?: 'left' | 'center' | 'right';
2208
2187
  /**
2209
- * Custom icon to display, defaults to [`Inbox`], can be any valid svg icon or inline element with font icon
2188
+ * Custom icon to display, defaults to [`sicon-inbox`]
2210
2189
  */
2211
2190
  "icon"?: string;
2212
2191
  /**
2213
- * The size of the icon. Defaults to [`md`] = 45px for font icon & width/height: 3.5rem for svg icon
2192
+ * The size of the icon. Defaults to [`md`]
2214
2193
  */
2215
- "iconSize"?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
2194
+ "iconSize"?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
2216
2195
  }
2217
2196
  interface SallaProductAvailability {
2218
2197
  /**
@@ -2481,9 +2460,6 @@ declare namespace LocalJSX {
2481
2460
  */
2482
2461
  "phone"?: string;
2483
2462
  }
2484
- interface SallaUserSettings {
2485
- "isNotifiable"?: boolean;
2486
- }
2487
2463
  interface SallaVerify {
2488
2464
  /**
2489
2465
  * should auto reloading the page after success verification
@@ -2509,7 +2485,6 @@ declare namespace LocalJSX {
2509
2485
  interface IntrinsicElements {
2510
2486
  "salla-add-product-button": SallaAddProductButton;
2511
2487
  "salla-button": SallaButton;
2512
- "salla-cart-summary": SallaCartSummary;
2513
2488
  "salla-conditional-fields": SallaConditionalFields;
2514
2489
  "salla-datetime-picker": SallaDatetimePicker;
2515
2490
  "salla-file-upload": SallaFileUpload;
@@ -2540,7 +2515,6 @@ declare namespace LocalJSX {
2540
2515
  "salla-tab-header": SallaTabHeader;
2541
2516
  "salla-tabs": SallaTabs;
2542
2517
  "salla-tel-input": SallaTelInput;
2543
- "salla-user-settings": SallaUserSettings;
2544
2518
  "salla-verify": SallaVerify;
2545
2519
  }
2546
2520
  }
@@ -2550,7 +2524,6 @@ declare module "@stencil/core" {
2550
2524
  interface IntrinsicElements {
2551
2525
  "salla-add-product-button": LocalJSX.SallaAddProductButton & JSXBase.HTMLAttributes<HTMLSallaAddProductButtonElement>;
2552
2526
  "salla-button": LocalJSX.SallaButton & JSXBase.HTMLAttributes<HTMLSallaButtonElement>;
2553
- "salla-cart-summary": LocalJSX.SallaCartSummary & JSXBase.HTMLAttributes<HTMLSallaCartSummaryElement>;
2554
2527
  "salla-conditional-fields": LocalJSX.SallaConditionalFields & JSXBase.HTMLAttributes<HTMLSallaConditionalFieldsElement>;
2555
2528
  "salla-datetime-picker": LocalJSX.SallaDatetimePicker & JSXBase.HTMLAttributes<HTMLSallaDatetimePickerElement>;
2556
2529
  "salla-file-upload": LocalJSX.SallaFileUpload & JSXBase.HTMLAttributes<HTMLSallaFileUploadElement>;
@@ -2581,7 +2554,6 @@ declare module "@stencil/core" {
2581
2554
  "salla-tab-header": LocalJSX.SallaTabHeader & JSXBase.HTMLAttributes<HTMLSallaTabHeaderElement>;
2582
2555
  "salla-tabs": LocalJSX.SallaTabs & JSXBase.HTMLAttributes<HTMLSallaTabsElement>;
2583
2556
  "salla-tel-input": LocalJSX.SallaTelInput & JSXBase.HTMLAttributes<HTMLSallaTelInputElement>;
2584
- "salla-user-settings": LocalJSX.SallaUserSettings & JSXBase.HTMLAttributes<HTMLSallaUserSettingsElement>;
2585
2557
  "salla-verify": LocalJSX.SallaVerify & JSXBase.HTMLAttributes<HTMLSallaVerifyElement>;
2586
2558
  }
2587
2559
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salla.sa/twilight-components",
3
- "version": "1.6.15-alpha.20",
3
+ "version": "1.6.15-alpha.4",
4
4
  "license": "MIT",
5
5
  "author": "Salla Team <support@salla.dev> (https://salla.dev)",
6
6
  "bugs": {
@@ -75,8 +75,8 @@
75
75
  "typescript": "^4.4.3"
76
76
  },
77
77
  "dependencies": {
78
- "@salla.sa/twilight": "^1.6.15-alpha.20",
79
- "@salla.sa/twilight-tailwind-theme": "^1.6.15-alpha.18",
78
+ "@salla.sa/twilight": "^1.6.15-alpha.4",
79
+ "@salla.sa/twilight-tailwind-theme": "^1.6.15-alpha.4",
80
80
  "animejs": "^3.2.1",
81
81
  "filepond": "^4.30.4",
82
82
  "filepond-plugin-file-validate-size": "^2.2.7",
@@ -87,5 +87,5 @@
87
87
  "intl-tel-input": "^17.0.13",
88
88
  "swiper": "^8.3.1"
89
89
  },
90
- "gitHead": "a2e5a343a1493bea00467d2973999acd31a942d2"
90
+ "gitHead": "f9a3f2ef255c5a6088d52385400947747cb69cac"
91
91
  }
@@ -1,3 +0,0 @@
1
- :host {
2
- display: block;
3
- }
@@ -1,35 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- import { Component, Host, h, State } from '@stencil/core';
5
- import CartIcon from "../../assets/svg/cart.svg";
6
- export class SallaCartSummary {
7
- constructor() {
8
- this.cartSummaryCount = 0;
9
- this.cartSummaryTotal = 0;
10
- salla.cart.event.onUpdated(() => {
11
- this.cartSummaryCount = salla.storage.get('cart.summary.count');
12
- this.cartSummaryCount = salla.storage.get('cart.summary.total');
13
- });
14
- }
15
- render() {
16
- return (h(Host, null,
17
- h("a", { class: "s-cart-summary", href: salla.url.get('cart') },
18
- h("slot", { name: "icon" },
19
- h("i", { class: "s-cart-summary-icon", innerHTML: CartIcon })),
20
- h("span", { class: "s-cart-summary-count" }, salla.helpers.number(this.cartSummaryCount)),
21
- h("b", { class: "s-cart-summary-total" }, salla.money(this.cartSummaryTotal)))));
22
- }
23
- static get is() { return "salla-cart-summary"; }
24
- static get encapsulation() { return "shadow"; }
25
- static get originalStyleUrls() { return {
26
- "$": ["salla-cart-summary.scss"]
27
- }; }
28
- static get styleUrls() { return {
29
- "$": ["salla-cart-summary.css"]
30
- }; }
31
- static get states() { return {
32
- "cartSummaryCount": {},
33
- "cartSummaryTotal": {}
34
- }; }
35
- }