@everymatrix/cashier-page 1.45.5 → 1.45.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierConfirmModal-DDkEGERx.cjs → CashierConfirmModal--OD-hUTU.cjs} +3 -3
- package/components/{CashierConfirmModal-DcDzn1gw.js → CashierConfirmModal-C9xSSS5E.js} +99 -114
- package/components/{CashierError-BUdqkPz2.cjs → CashierError-B58k_TKu.cjs} +1 -1
- package/components/{CashierError-BN74rRfp.js → CashierError-DiAu7_Is.js} +1 -1
- package/components/{CashierHeader-GJVoWu3a.js → CashierHeader-BkwEYoEO.js} +2 -2
- package/components/{CashierHeader-CWh9KvU8.cjs → CashierHeader-BxZcJ-N1.cjs} +1 -1
- package/components/{CashierIframeRedirect-7U7Ng9Ft.js → CashierIframeRedirect-C7coTzDT.js} +57 -65
- package/components/{CashierIframeRedirect-CPmCxUNQ.cjs → CashierIframeRedirect-DTxx83T0.cjs} +1 -1
- package/components/{CashierMethodDetails-DMCJoyAU.cjs → CashierMethodDetails--cJnMIbQ.cjs} +3 -3
- package/components/{CashierMethodDetails-DG-OxC4l.js → CashierMethodDetails-DsV4hif0.js} +585 -573
- package/components/{CashierMethodsList-MomZcE_X.js → CashierMethodsList-DmnMx-T2.js} +163 -154
- package/components/CashierMethodsList-jK6TJ3Ca.cjs +1 -0
- package/components/{CashierModal-CvDVHRiy.js → CashierModal-I1QtxcFA.js} +10 -10
- package/components/{CashierModal-35ipXOuJ.cjs → CashierModal-mf-bBvAJ.cjs} +1 -1
- package/components/CashierNotifications-Cl4QSCVa.cjs +1 -0
- package/components/{CashierNotifications-D46oKwQX.js → CashierNotifications-DAfCB9qX.js} +16 -23
- package/components/{CashierPage-DCDiepch.cjs → CashierPage-Baw56QNh.cjs} +1 -1
- package/components/{CashierPage-B5VmEdqF.js → CashierPage-DZJrRzZ5.js} +232 -227
- package/components/{CashierReceiptPage-BCDzLzKW.cjs → CashierReceiptPage-BH3SXu1c.cjs} +1 -1
- package/components/{CashierReceiptPage-cql-m43F.js → CashierReceiptPage-CghwASvi.js} +23 -23
- package/components/{CashierSessionExpirationModal-DiSrDBr6.cjs → CashierSessionExpirationModal-BevlxRlw.cjs} +1 -1
- package/components/{CashierSessionExpirationModal-DnqZeHho.js → CashierSessionExpirationModal-sFdzzPUg.js} +4 -4
- package/components/{CashierSpinner-BDeVd6_8.js → CashierSpinner-BZlaoEwF.js} +1 -1
- package/components/{CashierSpinner-BHiwUIfx.cjs → CashierSpinner-_5rOeQbt.cjs} +1 -1
- package/components/{CashierVerifications-CQbtD6wt.js → CashierVerifications-C_wUCzid.js} +17 -17
- package/components/{CashierVerifications-j41yayqU.cjs → CashierVerifications-_ZVIVLED.cjs} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/package.json +10 -9
- package/components/CashierMethodsList-DehDat-K.cjs +0 -1
- package/components/CashierNotifications-C_H5sqTD.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var we=Object.defineProperty,_e=Object.defineProperties;var ye=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var be=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable;var Q=(n,t,s)=>t in n?we(n,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[t]=s,G=(n,t)=>{for(var s in t||(t={}))be.call(t,s)&&Q(n,s,t[s]);if(K)for(var s of K(t))Le.call(t,s)&&Q(n,s,t[s]);return n},J=(n,t)=>_e(n,ye(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal--OD-hUTU.cjs"),B=require("./CashierError-B58k_TKu.cjs"),V=require("./CashierMethodDetails--cJnMIbQ.cjs");function $(n,t){B.addMessages(n,t)}function Me(n){B.init({fallbackLocale:"en"}),B.$locale.set(n)}const ee={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS"},uk:{generalMin:"Мін",generalMax:"Макс"},hr:{generalMin:"Minimalno",generalMax:"Maksimalno",showAll:"Prikaži sve",showLess:"Prikaži manje"},tr:{generalMin:"Min",generalMax:"Maks",showAll:"HEPSİNİ GÖSTER",showLess:"DAHA AZ GÖSTER"}};function ve(n){e.append_styles(n,"svelte-a5920l","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px);container-name:method-list;container-type:inline-size}.SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:var(--mmw-method-height, 80px);box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);min-width:var(--mmw-logo-width, 110px);min-height:var(--mmw-logo-height, 64px);background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--line-height-xl, 24px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.ShowAllButton{cursor:pointer;color:var(--mmw--color-grey-290, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;background:var(--emw--color-gray-50, #F7F8FA);line-height:normal;border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}@container method-list (width < 450px){.MethodLogo{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList .MethodTitle{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-medium, 16px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}")}function te(n,t,s){const c=n.slice();return c[47]=t[s],c[49]=s,c}function ne(n){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",n[4]),e.set_custom_element_data(t,"clientstyling",n[3])},m(s,c){e.insert(s,t,c)},p(s,c){c[0]&16&&e.set_custom_element_data(t,"clientstylingurl",s[4]),c[0]&8&&e.set_custom_element_data(t,"clientstyling",s[3])},d(s){s&&e.detach(t)}}}function se(n){let t,s,c,r=e.ensure_array_like(n[8]),i=[];for(let o=0;o<r.length;o+=1)i[o]=le(te(n,r,o));let a=n[7]&&ie(n);return{c(){t=e.element("div"),s=e.element("div");for(let o=0;o<i.length;o+=1)i[o].c();c=e.space(),a&&a.c(),e.attr(s,"class","CashierMethodList"),e.attr(t,"class","CashierMethodListWidget")},m(o,m){e.insert(o,t,m),e.append(t,s);for(let d=0;d<i.length;d+=1)i[d]&&i[d].m(s,null);e.append(t,c),a&&a.m(t,null),n[26](t)},p(o,m){if(m[0]&57664){r=e.ensure_array_like(o[8]);let d;for(d=0;d<r.length;d+=1){const L=te(o,r,d);i[d]?i[d].p(L,m):(i[d]=le(L),i[d].c(),i[d].m(s,null))}for(;d<i.length;d+=1)i[d].d(1);i.length=r.length}o[7]?a?a.p(o,m):(a=ie(o),a.c(),a.m(t,null)):a&&(a.d(1),a=null)},d(o){o&&e.detach(t),e.destroy_each(i,o),a&&a.d(),n[26](null)}}}function le(n){let t,s,c,r,i,a,o,m,d=(n[47].Label||n[47].Name)+"",L,M,y,g,k=n[13]("generalMin")+"",C,p,w=n[14].format(n[47].DisplayCurrency.MinAmountLimit)+"",S,T,_=n[47].DisplayCurrency.Name+"",x,H,b,A=n[13]("generalMax")+"",P,j,E=n[14].format(n[47].DisplayCurrency.MaxAmountLimit)+"",O,R,D=n[47].DisplayCurrency.Name+"",z,W,F,q;function I(){return n[24](n[47])}return{c(){t=e.element("div"),s=e.element("div"),c=e.element("img"),a=e.space(),o=e.element("div"),m=e.element("span"),L=e.text(d),M=e.space(),y=e.element("div"),g=e.element("span"),C=e.text(k),p=e.space(),S=e.text(w),T=e.space(),x=e.text(_),H=e.space(),b=e.element("span"),P=e.text(A),j=e.space(),O=e.text(E),R=e.space(),z=e.text(D),W=e.space(),e.src_url_equal(c.src,r=n[47].LogoUrl)||e.attr(c,"src",r),e.attr(c,"alt",i=n[47].Label),e.attr(s,"class","MethodLogo"),e.attr(o,"class","MethodTitle"),e.attr(g,"class","Limits"),e.attr(b,"class","Limits"),e.attr(y,"class","MethodLimits"),e.attr(t,"class","SelectorWrapper"),e.toggle_class(t,"checked",n[6]===n[47].Name)},m(N,f){e.insert(N,t,f),e.append(t,s),e.append(s,c),e.append(t,a),e.append(t,o),e.append(o,m),e.append(m,L),e.append(t,M),e.append(t,y),e.append(y,g),e.append(g,C),e.append(g,p),e.append(g,S),e.append(g,T),e.append(g,x),e.append(y,H),e.append(y,b),e.append(b,P),e.append(b,j),e.append(b,O),e.append(b,R),e.append(b,z),e.append(t,W),F||(q=[e.listen(t,"click",I),e.listen(t,"keyup",Se)],F=!0)},p(N,f){n=N,f[0]&256&&!e.src_url_equal(c.src,r=n[47].LogoUrl)&&e.attr(c,"src",r),f[0]&256&&i!==(i=n[47].Label)&&e.attr(c,"alt",i),f[0]&256&&d!==(d=(n[47].Label||n[47].Name)+"")&&e.set_data(L,d),f[0]&8192&&k!==(k=n[13]("generalMin")+"")&&e.set_data(C,k),f[0]&256&&w!==(w=n[14].format(n[47].DisplayCurrency.MinAmountLimit)+"")&&e.set_data(S,w),f[0]&256&&_!==(_=n[47].DisplayCurrency.Name+"")&&e.set_data(x,_),f[0]&8192&&A!==(A=n[13]("generalMax")+"")&&e.set_data(P,A),f[0]&256&&E!==(E=n[14].format(n[47].DisplayCurrency.MaxAmountLimit)+"")&&e.set_data(O,E),f[0]&256&&D!==(D=n[47].DisplayCurrency.Name+"")&&e.set_data(z,D),f[0]&320&&e.toggle_class(t,"checked",n[6]===n[47].Name)},d(N){N&&e.detach(t),F=!1,e.run_all(q)}}}function ie(n){let t,s,c,r;return{c(){t=e.element("div"),s=e.text(n[7]),e.attr(t,"class","ShowAllButton")},m(i,a){e.insert(i,t,a),e.append(t,s),c||(r=e.listen(t,"click",n[25]),c=!0)},p(i,a){a[0]&128&&e.set_data(s,i[7])},d(i){i&&e.detach(t),c=!1,r()}}}function oe(n){let t,s,c;return{c(){t=e.element("cashier-error"),s=e.element("span"),c=e.text(n[10]),e.attr(s,"slot","text"),e.set_custom_element_data(t,"lang",n[0]),e.set_custom_element_data(t,"assetsurl",n[1]),e.set_custom_element_data(t,"translationurl",n[2]),e.set_custom_element_data(t,"clientstylingurl",n[4]),e.set_custom_element_data(t,"clientstyling",n[3]),e.set_custom_element_data(t,"hidebuttons","true")},m(r,i){e.insert(r,t,i),e.append(t,s),e.append(s,c)},p(r,i){i[0]&1024&&e.set_data(c,r[10]),i[0]&1&&e.set_custom_element_data(t,"lang",r[0]),i[0]&2&&e.set_custom_element_data(t,"assetsurl",r[1]),i[0]&4&&e.set_custom_element_data(t,"translationurl",r[2]),i[0]&16&&e.set_custom_element_data(t,"clientstylingurl",r[4]),i[0]&8&&e.set_custom_element_data(t,"clientstyling",r[3])},d(r){r&&e.detach(t)}}}function ke(n){let t,s,c,r=n[12]&&ne(n),i=(n[9]||n[11])&&se(n),a=n[10]&&oe(n);return{c(){r&&r.c(),t=e.space(),i&&i.c(),s=e.space(),a&&a.c(),c=e.empty()},m(o,m){r&&r.m(o,m),e.insert(o,t,m),i&&i.m(o,m),e.insert(o,s,m),a&&a.m(o,m),e.insert(o,c,m)},p(o,m){o[12]?r?r.p(o,m):(r=ne(o),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),o[9]||o[11]?i?i.p(o,m):(i=se(o),i.c(),i.m(s.parentNode,s)):i&&(i.d(1),i=null),o[10]?a?a.p(o,m):(a=oe(o),a.c(),a.m(c.parentNode,c)):a&&(a.d(1),a=null)},i:e.noop,o:e.noop,d(o){o&&(e.detach(t),e.detach(s),e.detach(c)),r&&r.d(o),i&&i.d(o),a&&a.d(o)}}}const Se=()=>{};function Ce(n,t,s){let c;e.component_subscribe(n,B.$format,l=>s(13,c=l)),V.dayjs.extend(V.utc);let{lang:r="en"}=t,{local:i="en-US"}=t,{endpoint:a}=t,{session:o}=t,{customerid:m}=t,{assetsurl:d}=t,{currency:L}=t,{numberofmethodsshown:M}=t,{translationurl:y=""}=t,{clientstyling:g=""}=t,{clientstylingurl:k=""}=t,{ismobileview:C}=t,p=[],w,S,T="",_=[],x=!0,H=new Intl.NumberFormat(i,{minimumFractionDigits:2}),b="",A,P=!0,j=!1;var E;(function(l){l.PlayerSessionIsNotValid="PlayerSessionIsNotValid",l.Success="Success",l.JwtTokenError="JwtTokenError"})(E||(E={})),e.createEventDispatcher();const O=()=>{let l=y;if(l)return fetch(l).then(u=>u.json()).then(u=>{Object.keys(u).forEach(v=>{$(v,u[v])})}).catch(u=>{console.log(u)})};Object.keys(ee).forEach(l=>{$(l,ee[l])});const R=()=>{Me(r)},D=()=>{s(12,j=!0);const l=new URL(`${a}/v1/player/${m}/payment/GetPaymentMetadata`),u=new Headers;u.append("accept","application/json"),u.append("Content-Type","application/json"),u.append("X-Client-Request-Timestamp",V.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const v={method:"POST",headers:u,body:JSON.stringify({XPaymentSessionToken:o,Currency:L,Tags:{UserAgent:window.navigator.userAgent}})};fetch(l,v).then(h=>h.json()).then(h=>{var U;if(h.error){s(10,b=h.error);return}if(h.ResponseCode!==E.Success){A=h.ResponseCode,q();return}p=(U=h.PaymentMethods)!=null&&U.Ordering?z(h):W(h),s(7,T=M&&+M>0&&p.length>+M?c("showAll"):""),s(8,_=T?p.slice(0,+M):p),window.postMessage({type:"StartSessionCountdown",paymentMethodName:p[0].Name,xPaymentSessionToken:h.XPaymentSessionToken},window.location.href)}).finally(()=>s(12,j=!1))},z=l=>{const u=[];return l.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(v=>{const h=l.PaymentMethods.PaymentMethods.find(U=>U.Name===v);if(h){const U=(h==null?void 0:h.Logos.find(Y=>Y.LogoType==="Desktop"))||{},pe=(h==null?void 0:h.Logos.find(Y=>Y.LogoType==="Mobile"))||{},Z=P?U:pe;u.push(J(G({},h),{LogoUrl:Z.LogoUrl?`https:${Z.LogoUrl}`:""}))}}),u},W=l=>l.PaymentMethods.PaymentMethods.map(u=>J(G({},u),{LogoUrl:u.Logos&&u.Logos.length&&u.Logos[0].LogoUrl?`https:${u.Logos[0].LogoUrl}`:""})),F=l=>{s(6,S=l.Name),window.postMessage({type:"SelectPayMeth",details:l},window.location.href),dispatchEvent(new CustomEvent("selectPayMeth",{detail:l,bubbles:!0,cancelable:!0,composed:!0}))},q=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:A},window.location.href)},I=()=>{s(11,P=C==="false")},N=()=>{_==p?ae():f()},f=()=>{s(8,_=p),s(7,T=c("showLess"))},ae=()=>{s(8,_=p.slice(0,+M)),S&&!_.find(l=>l.Name===S)&&_.splice(0,0,p.find(l=>l.Name===S)),s(7,T=c("showAll"))},ce=()=>{s(9,x=!0)},me=l=>{s(9,x=!l.hideMethodsList)},de=()=>{let l=document.createElement("style");l.innerHTML=g,w.appendChild(l)},ue=()=>{let l=new URL(k),u=document.createElement("style");fetch(l.href).then(v=>v.text()).then(v=>{u.innerHTML=v,setTimeout(()=>{w.appendChild(u)},1),setTimeout(()=>{},500)})};e.onMount(()=>(window.addEventListener("message",X,!1),()=>{window.removeEventListener("message",X,!1)}));const X=l=>{switch(l.data.type){case"BackToMethodList":ce();break;case"HideMethodsList":me(l.data.details);break}},he=l=>F(l),fe=()=>N();function ge(l){e.binding_callbacks[l?"unshift":"push"](()=>{w=l,s(5,w)})}return n.$$set=l=>{"lang"in l&&s(0,r=l.lang),"local"in l&&s(17,i=l.local),"endpoint"in l&&s(18,a=l.endpoint),"session"in l&&s(19,o=l.session),"customerid"in l&&s(20,m=l.customerid),"assetsurl"in l&&s(1,d=l.assetsurl),"currency"in l&&s(21,L=l.currency),"numberofmethodsshown"in l&&s(22,M=l.numberofmethodsshown),"translationurl"in l&&s(2,y=l.translationurl),"clientstyling"in l&&s(3,g=l.clientstyling),"clientstylingurl"in l&&s(4,k=l.clientstylingurl),"ismobileview"in l&&s(23,C=l.ismobileview)},n.$$.update=()=>{n.$$.dirty[0]&1835008&&a&&o&&m&&D(),n.$$.dirty[0]&1&&r&&R(),n.$$.dirty[0]&40&&g&&w&&de(),n.$$.dirty[0]&48&&k&&w&&ue(),n.$$.dirty[0]&8388608&&C&&I(),n.$$.dirty[0]&5&&r&&y&&O()},[r,d,y,g,k,w,S,T,_,x,b,P,j,c,H,F,N,i,a,o,m,L,M,C,he,fe,ge]}class re extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ce,ke,e.safe_not_equal,{lang:0,local:17,endpoint:18,session:19,customerid:20,assetsurl:1,currency:21,numberofmethodsshown:22,translationurl:2,clientstyling:3,clientstylingurl:4,ismobileview:23},ve,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get local(){return this.$$.ctx[17]}set local(t){this.$$set({local:t}),e.flush()}get endpoint(){return this.$$.ctx[18]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[19]}set session(t){this.$$set({session:t}),e.flush()}get customerid(){return this.$$.ctx[20]}set customerid(t){this.$$set({customerid:t}),e.flush()}get assetsurl(){return this.$$.ctx[1]}set assetsurl(t){this.$$set({assetsurl:t}),e.flush()}get currency(){return this.$$.ctx[21]}set currency(t){this.$$set({currency:t}),e.flush()}get numberofmethodsshown(){return this.$$.ctx[22]}set numberofmethodsshown(t){this.$$set({numberofmethodsshown:t}),e.flush()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get ismobileview(){return this.$$.ctx[23]}set ismobileview(t){this.$$set({ismobileview:t}),e.flush()}}e.create_custom_element(re,{lang:{},local:{},endpoint:{},session:{},customerid:{},assetsurl:{},currency:{},numberofmethodsshown:{},translationurl:{},clientstyling:{},clientstylingurl:{},ismobileview:{}},[],[],!0);exports.default=re;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as
|
|
2
|
-
function x(n, { delay: t = 0, duration: e = 400, easing: i =
|
|
1
|
+
import { R as F, S as O, b as D, f as g, c as G, a as N, d as P, x as A, k as L, t as m, p, q as I, v as j, G as J, e as K, g as y, j as h, F as M, l as v, T as Q, u as V, m as X, o as Y, U as k, B as Z, C as S } from "./CashierConfirmModal-C9xSSS5E.js";
|
|
2
|
+
function x(n, { delay: t = 0, duration: e = 400, easing: i = F } = {}) {
|
|
3
3
|
const l = +getComputedStyle(n).opacity;
|
|
4
4
|
return {
|
|
5
5
|
delay: t,
|
|
@@ -32,7 +32,7 @@ function E(n) {
|
|
|
32
32
|
)), h(t, "part", "CustomStylingContainer");
|
|
33
33
|
},
|
|
34
34
|
m(a, c) {
|
|
35
|
-
|
|
35
|
+
L(a, t, c), v(t, e), v(e, i), r && r.m(i, null), n[10](e), l = Q(
|
|
36
36
|
e,
|
|
37
37
|
/*div1_elementresize_handler*/
|
|
38
38
|
n[11].bind(e)
|
|
@@ -80,7 +80,7 @@ function E(n) {
|
|
|
80
80
|
)), o.run(0)), d = !1;
|
|
81
81
|
},
|
|
82
82
|
d(a) {
|
|
83
|
-
a &&
|
|
83
|
+
a && j(t), r && r.d(a), n[10](null), l(), a && o && o.end(), n[12](null);
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
}
|
|
@@ -94,7 +94,7 @@ function et(n) {
|
|
|
94
94
|
i && i.c(), t = A();
|
|
95
95
|
},
|
|
96
96
|
m(l, o) {
|
|
97
|
-
i && i.m(l, o),
|
|
97
|
+
i && i.m(l, o), L(l, t, o), e = !0;
|
|
98
98
|
},
|
|
99
99
|
p(l, [o]) {
|
|
100
100
|
/*show*/
|
|
@@ -110,7 +110,7 @@ function et(n) {
|
|
|
110
110
|
p(i), e = !1;
|
|
111
111
|
},
|
|
112
112
|
d(l) {
|
|
113
|
-
l &&
|
|
113
|
+
l && j(t), i && i.d(l);
|
|
114
114
|
}
|
|
115
115
|
};
|
|
116
116
|
}
|
|
@@ -172,9 +172,9 @@ function nt(n, t, e) {
|
|
|
172
172
|
q
|
|
173
173
|
];
|
|
174
174
|
}
|
|
175
|
-
class
|
|
175
|
+
class H extends O {
|
|
176
176
|
constructor(t) {
|
|
177
|
-
super(),
|
|
177
|
+
super(), D(
|
|
178
178
|
this,
|
|
179
179
|
t,
|
|
180
180
|
nt,
|
|
@@ -221,10 +221,10 @@ class j extends D {
|
|
|
221
221
|
this.$$set({ height: t }), g();
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
G(
|
|
224
|
+
G(H, { clientstyling: {}, clientstylingurl: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
|
|
225
225
|
const st = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
226
226
|
__proto__: null,
|
|
227
|
-
default:
|
|
227
|
+
default: H
|
|
228
228
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
229
229
|
export {
|
|
230
230
|
st as C,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./CashierConfirmModal-
|
|
1
|
+
"use strict";const t=require("./CashierConfirmModal--OD-hUTU.cjs");function m(i,{delay:e=0,duration:n=400,easing:l=t.identity}={}){const s=+getComputedStyle(i).opacity;return{delay:e,duration:n,easing:l,css:r=>`opacity: ${r*s}`}}function E(i){t.append_styles(i,"svelte-pil2bm","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:4;top:0;left:0;background-color:var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));container-type:inline-size;container-name:modal-window;border-radius:6px}.ModalContainer{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);padding:var(--emw--spacing-large, 20px);width:400px}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--mmw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:32px;height:32px}.ModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}@container modal-window (max-width:750px){.ModalWindow .ModalContainer{width:90%;max-width:400px}}")}const L=i=>({}),p=i=>({});function b(i){let e,n,l,s,r,c;const h=i[9].content,d=t.create_slot(h,i,i[8],p);return{c(){e=t.element("div"),n=t.element("div"),l=t.element("div"),d&&d.c(),t.attr(l,"class","ModalContainer"),t.attr(l,"part","ModalContainer"),t.attr(n,"class","ModalWindow"),t.attr(n,"part","ModalWindow"),t.attr(n,"id","Modal"),t.add_render_callback(()=>i[11].call(n)),t.attr(e,"part","CustomStylingContainer")},m(a,u){t.insert(a,e,u),t.append(e,n),t.append(n,l),d&&d.m(l,null),i[10](n),s=t.add_iframe_resize_listener(n,i[11].bind(n)),i[12](e),c=!0},p(a,u){i=a,d&&d.p&&(!c||u&256)&&t.update_slot_base(d,h,i,i[8],c?t.get_slot_changes(h,i[8],u,L):t.get_all_dirty_from_scope(i[8]),p)},i(a){c||(t.transition_in(d,a),a&&t.add_render_callback(()=>{c&&(r||(r=t.create_bidirectional_transition(n,m,i[2],!0)),r.run(1))}),c=!0)},o(a){t.transition_out(d,a),a&&(r||(r=t.create_bidirectional_transition(n,m,i[2],!1)),r.run(0)),c=!1},d(a){a&&t.detach(e),d&&d.d(a),i[10](null),s(),a&&r&&r.end(),i[12](null)}}}function H(i){let e,n,l=i[5]&&b(i);return{c(){l&&l.c(),e=t.empty()},m(s,r){l&&l.m(s,r),t.insert(s,e,r),n=!0},p(s,[r]){s[5]?l?(l.p(s,r),r&32&&t.transition_in(l,1)):(l=b(s),l.c(),t.transition_in(l,1),l.m(e.parentNode,e)):l&&(t.group_outros(),t.transition_out(l,1,1,()=>{l=null}),t.check_outros())},i(s){n||(t.transition_in(l),n=!0)},o(s){t.transition_out(l),n=!1},d(s){s&&t.detach(e),l&&l.d(s)}}}function W(i,e,n){let{$$slots:l={},$$scope:s}=e,{clientstyling:r=""}=e,{clientstylingurl:c=""}=e,{duration:h=200}=e,{width:d}=e,{height:a}=e,u,f,g=!1;const C=()=>{n(5,g=!1),window.postMessage({type:"ClosedCashierModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},w=o=>{o.data.type=="ShowCashierModal"&&(n(5,g=!0),window.postMessage({type:"DisableScroll"},window.location.href)),o.data.type=="HideCashierModal"&&C()},v=()=>{let o=document.createElement("style");o.innerHTML=r,f.appendChild(o)},k=()=>{let o=new URL(c),y=document.createElement("style");fetch(o.href).then(_=>_.text()).then(_=>{y.innerHTML=_,setTimeout(()=>{f.appendChild(y)},1)})};t.onMount(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)}));function S(o){t.binding_callbacks[o?"unshift":"push"](()=>{u=o,n(4,u)})}function x(){d=this.clientWidth,a=this.clientHeight,n(0,d),n(1,a)}function z(o){t.binding_callbacks[o?"unshift":"push"](()=>{f=o,n(3,f)})}return i.$$set=o=>{"clientstyling"in o&&n(6,r=o.clientstyling),"clientstylingurl"in o&&n(7,c=o.clientstylingurl),"duration"in o&&n(2,h=o.duration),"width"in o&&n(0,d=o.width),"height"in o&&n(1,a=o.height),"$$scope"in o&&n(8,s=o.$$scope)},i.$$.update=()=>{i.$$.dirty&72&&r&&f&&v(),i.$$.dirty&136&&c&&f&&k()},[d,a,h,f,u,g,r,c,s,l,S,x,z]}class M extends t.SvelteComponent{constructor(e){super(),t.init(this,e,W,H,t.safe_not_equal,{clientstyling:6,clientstylingurl:7,duration:2,width:0,height:1},E)}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get duration(){return this.$$.ctx[2]}set duration(e){this.$$set({duration:e}),t.flush()}get width(){return this.$$.ctx[0]}set width(e){this.$$set({width:e}),t.flush()}get height(){return this.$$.ctx[1]}set height(e){this.$$set({height:e}),t.flush()}}t.create_custom_element(M,{clientstyling:{},clientstylingurl:{},duration:{},width:{},height:{}},["content"],[],!0);const j=Object.freeze(Object.defineProperty({__proto__:null,default:M},Symbol.toStringTag,{value:"Module"}));exports.CashierModal_ce=j;exports.fade=m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal--OD-hUTU.cjs");function y(i){t.append_styles(i,"svelte-ags340",".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}")}function b(i){let e,s,c,f,o,a,l,d;return{c(){e=t.element("div"),s=t.element("span"),c=t.text(i[0]),f=t.space(),o=t.element("button"),a=t.text(i[1]),t.attr(e,"class","CashierNotifications")},m(r,u){t.insert(r,e,u),t.append(e,s),t.append(s,c),t.append(e,f),t.append(e,o),t.append(o,a),i[6](e),l||(d=t.listen(o,"click",i[3]),l=!0)},p(r,[u]){u&1&&t.set_data(c,r[0]),u&2&&t.set_data(a,r[1])},i:t.noop,o:t.noop,d(r){r&&t.detach(e),i[6](null),l=!1,d()}}}function x(i,e,s){let{text:c}=e,{button:f}=e,{clientstyling:o=""}=e,{clientstylingurl:a=""}=e,l;const d=()=>{window.postMessage({type:"NotificationButtonClick"},window.location.href)},r=()=>{let n=document.createElement("style");n.innerHTML=o,l.appendChild(n)},u=()=>{let n=new URL(a),h=document.createElement("style");fetch(n.href).then(m=>m.text()).then(m=>{h.innerHTML=m,setTimeout(()=>{l.appendChild(h)},1)})};function p(n){t.binding_callbacks[n?"unshift":"push"](()=>{l=n,s(2,l)})}return i.$$set=n=>{"text"in n&&s(0,c=n.text),"button"in n&&s(1,f=n.button),"clientstyling"in n&&s(4,o=n.clientstyling),"clientstylingurl"in n&&s(5,a=n.clientstylingurl)},i.$$.update=()=>{i.$$.dirty&20&&o&&l&&r(),i.$$.dirty&36&&a&&l&&u()},[c,f,l,d,o,a,p]}class g extends t.SvelteComponent{constructor(e){super(),t.init(this,e,x,b,t.safe_not_equal,{text:0,button:1,clientstyling:4,clientstylingurl:5},y)}get text(){return this.$$.ctx[0]}set text(e){this.$$set({text:e}),t.flush()}get button(){return this.$$.ctx[1]}set button(e){this.$$set({button:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}}t.create_custom_element(g,{text:{},button:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=g;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
function
|
|
1
|
+
import { S as C, b as v, f as d, c as _, a as k, d as N, g as h, y as b, h as z, j as S, k as E, l as f, A as L, z as p, n as x, v as M, C as T } from "./CashierConfirmModal-C9xSSS5E.js";
|
|
2
|
+
function H(n) {
|
|
3
3
|
N(n, "svelte-ags340", ".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}");
|
|
4
4
|
}
|
|
5
5
|
function R(n) {
|
|
6
6
|
let t, s, r, u, l, a, i, m;
|
|
7
7
|
return {
|
|
8
8
|
c() {
|
|
9
|
-
t = h("div"), s = h("span"), r =
|
|
9
|
+
t = h("div"), s = h("span"), r = b(
|
|
10
10
|
/*text*/
|
|
11
11
|
n[0]
|
|
12
|
-
), u = z(), l = h("button"), a =
|
|
12
|
+
), u = z(), l = h("button"), a = b(
|
|
13
13
|
/*button*/
|
|
14
14
|
n[1]
|
|
15
|
-
),
|
|
15
|
+
), S(t, "class", "CashierNotifications");
|
|
16
16
|
},
|
|
17
17
|
m(o, c) {
|
|
18
|
-
|
|
18
|
+
E(o, t, c), f(t, s), f(s, r), f(t, u), f(t, l), f(l, a), n[6](t), i || (m = L(
|
|
19
19
|
l,
|
|
20
20
|
"click",
|
|
21
21
|
/*notificationClick*/
|
|
@@ -38,37 +38,30 @@ function R(n) {
|
|
|
38
38
|
i: x,
|
|
39
39
|
o: x,
|
|
40
40
|
d(o) {
|
|
41
|
-
o &&
|
|
41
|
+
o && M(t), n[6](null), i = !1, m();
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
function U(n, t, s) {
|
|
46
46
|
let { text: r } = t, { button: u } = t, { clientstyling: l = "" } = t, { clientstylingurl: a = "" } = t, i;
|
|
47
47
|
const m = () => {
|
|
48
|
-
|
|
49
|
-
"notificationButtonClick",
|
|
50
|
-
{
|
|
51
|
-
bubbles: !0,
|
|
52
|
-
cancelable: !0,
|
|
53
|
-
composed: !0
|
|
54
|
-
}
|
|
55
|
-
));
|
|
48
|
+
window.postMessage({ type: "NotificationButtonClick" }, window.location.href);
|
|
56
49
|
}, o = () => {
|
|
57
50
|
let e = document.createElement("style");
|
|
58
51
|
e.innerHTML = l, i.appendChild(e);
|
|
59
52
|
}, c = () => {
|
|
60
|
-
let e = new URL(a),
|
|
53
|
+
let e = new URL(a), y = document.createElement("style");
|
|
61
54
|
fetch(e.href).then((g) => g.text()).then((g) => {
|
|
62
|
-
|
|
55
|
+
y.innerHTML = g, setTimeout(
|
|
63
56
|
() => {
|
|
64
|
-
i.appendChild(
|
|
57
|
+
i.appendChild(y);
|
|
65
58
|
},
|
|
66
59
|
1
|
|
67
60
|
);
|
|
68
61
|
});
|
|
69
62
|
};
|
|
70
|
-
function
|
|
71
|
-
|
|
63
|
+
function w(e) {
|
|
64
|
+
T[e ? "unshift" : "push"](() => {
|
|
72
65
|
i = e, s(2, i);
|
|
73
66
|
});
|
|
74
67
|
}
|
|
@@ -85,10 +78,10 @@ function U(n, t, s) {
|
|
|
85
78
|
m,
|
|
86
79
|
l,
|
|
87
80
|
a,
|
|
88
|
-
|
|
81
|
+
w
|
|
89
82
|
];
|
|
90
83
|
}
|
|
91
|
-
class j extends
|
|
84
|
+
class j extends C {
|
|
92
85
|
constructor(t) {
|
|
93
86
|
super(), v(
|
|
94
87
|
this,
|
|
@@ -102,7 +95,7 @@ class j extends w {
|
|
|
102
95
|
clientstyling: 4,
|
|
103
96
|
clientstylingurl: 5
|
|
104
97
|
},
|
|
105
|
-
|
|
98
|
+
H
|
|
106
99
|
);
|
|
107
100
|
}
|
|
108
101
|
get text() {
|