@everymatrix/cashier-error 1.43.1 → 1.43.3

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.
@@ -573,8 +573,8 @@ A.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
573
573
  // (57:4) {#if assetsurl}
574
574
  function Le(A){let f,e;return{c(){f=o("img"),P(f.src,e=`${/*assetsurl*/A[0]}/error-general-icon.png`)||B(f,"src",e),B(f,"width","300px"),B(f,"alt","error")},m(A,e){g(A,f,e)},p(A,n){/*assetsurl*/1&n&&!P(f.src,e=`${/*assetsurl*/A[0]}/error-general-icon.png`)&&B(f,"src",e)},d(A){A&&C(f)}}}
575
575
  // (69:2) {#if !hidebuttons || hidebuttons === 'false'}
576
- function xe(A){let f,e,n,t,r,w,i=/*$_*/A[4]("errorGeneralButton")+"";return{c(){f=o("div"),e=o("slot"),n=o("span"),t=h(i),B(e,"name","button"),B(f,"class","CashierErrorButton")},m(i,P){g(i,f,P),E(f,e),E(e,n),E(n,t),r||(w=function(A,f,e,n){return A.addEventListener(f,e,n),()=>A.removeEventListener(f,e,n)}(f,"click",/*close*/A[5]),r=!0)},p(A,f){/*$_*/16&f&&i!==(i=/*$_*/A[4]("errorGeneralButton")+"")&&c(t,i)},d(A){A&&C(f),r=!1,w()}}}function Xe(f){let e,n,t,r,w,i,P,v,u,a,D,I,H=/*$_*/f[4]("errorGeneralTitle")+"",T=/*$_*/f[4](`${/*errorcode*/f[2]||"errorGeneralText"}`)+"";function l(A,f){/*assetsurl*/
576
+ function xe(A){let f,e,n,t,r,w,i=/*$_*/A[4]("errorGeneralButton")+"";return{c(){f=o("slot"),e=o("button"),n=o("span"),t=h(i),B(e,"class","CashierErrorButton"),B(f,"name","button")},m(i,P){g(i,f,P),E(f,e),E(e,n),E(n,t),r||(w=function(A,f,e,n){return A.addEventListener(f,e,n),()=>A.removeEventListener(f,e,n)}(e,"click",/*close*/A[5]),r=!0)},p(A,f){/*$_*/16&f&&i!==(i=/*$_*/A[4]("errorGeneralButton")+"")&&c(t,i)},d(A){A&&C(f),r=!1,w()}}}function Xe(f){let e,n,t,r,w,i,P,v,u,a,D,I,H=/*$_*/f[4]("errorGeneralTitle")+"",T=/*$_*/f[4](`${/*errorcode*/f[2]||"errorGeneralText"}`)+"";function l(A,f){/*assetsurl*/
577
577
  return A[0]?Le:le}let L=l(f),x=L(f),X=(!/*hidebuttons*/f[1]||/*hidebuttons*/"false"===f[1])&&xe(f);return{c(){e=o("div"),n=o("div"),t=o("slot"),x.c(),r=s(),w=o("slot"),i=o("span"),P=h(H),v=s(),u=o("slot"),a=o("span"),D=h(T),I=s(),X&&X.c(),this.c=A,B(t,"name","icon"),B(t,"class","CashierErrorIcon"),B(w,"name","title"),B(w,"class","CashierErrorTitle"),B(u,"name","text"),B(u,"class","CashierErrorText"),B(n,"class","CashierErrorContent"),B(e,"class","CashierError")},m(A,C){g(A,e,C),E(e,n),E(n,t),x.m(t,null),E(n,r),E(n,w),E(w,i),E(i,P),E(n,v),E(n,u),E(u,a),E(a,D),E(n,I),X&&X.m(n,null)
578
578
  /*div1_binding*/,f[10](e)},p(A,[f]){L===(L=l(A))&&x?x.p(A,f):(x.d(1),x=L(A),x&&(x.c(),x.m(t,null))),/*$_*/16&f&&H!==(H=/*$_*/A[4]("errorGeneralTitle")+"")&&c(P,H),/*$_, errorcode*/20&f&&T!==(T=/*$_*/A[4](`${/*errorcode*/A[2]||"errorGeneralText"}`)+"")&&c(D,T),/*hidebuttons*/A[1]&&/*hidebuttons*/"false"!==A[1]?X&&(X.d(1),X=null):X?X.p(A,f):(X=xe(A),X.c(),X.m(n,null))},i:A,o:A,d(A){A&&C(e),x.d(),X&&X.d()
579
- /*div1_binding*/,f[10](null)}}}function ze(A,f,e){let n;var t,r;t=De,r=A=>e(4,n=A),A.$$.on_destroy.push(v(t,r));let w,{assetsurl:i=""}=f,{lang:P="en"}=f,{hidebuttons:E=""}=f,{errorcode:g=""}=f,{clientstyling:C=""}=f,{clientstylingurl:o=""}=f,{translationurl:h=""}=f;const s=()=>{var A;A=P,Ae.set(A)};Object.keys(He).forEach((A=>{Ie(A,He[A])}));return A.$$set=A=>{"assetsurl"in A&&e(0,i=A.assetsurl),"lang"in A&&e(6,P=A.lang),"hidebuttons"in A&&e(1,E=A.hidebuttons),"errorcode"in A&&e(2,g=A.errorcode),"clientstyling"in A&&e(7,C=A.clientstyling),"clientstylingurl"in A&&e(8,o=A.clientstylingurl),"translationurl"in A&&e(9,h=A.translationurl)},A.$$.update=()=>{/*lang*/64&A.$$.dirty&&P&&s(),/*clientstyling, customStylingContainer*/136&A.$$.dirty&&C&&w&&(()=>{let A=document.createElement("style");A.innerHTML=C,w.appendChild(A)})(),/*clientstylingurl, customStylingContainer*/264&A.$$.dirty&&o&&w&&(()=>{let A=new URL(o),f=document.createElement("style");fetch(A.href).then((A=>A.text())).then((A=>{f.innerHTML=A,setTimeout((()=>{w.appendChild(f)}),1)}))})(),/*translationurl*/512&A.$$.dirty&&h&&fetch(h).then((A=>A.json())).then((A=>{Object.keys(A).forEach((f=>{Ie(f,A[f])}))})).catch((A=>{console.log(A)}))},[i,E,g,w,n,()=>{window.postMessage({type:"ErrorClose"},window.location.href)},P,C,o,h,function(A){I[A?"unshift":"push"]((()=>{w=A,e(3,w)}))}]}class Me extends J{constructor(A){super();const f=document.createElement("style");f.textContent=".CashierError{display:flex;width:100%;justify-content:center}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:400px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:0 var(--emw--spacing-medium, 15px)}.CashierErrorTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-x-small, 12px);line-height:120%;text-align:center}.CashierErrorText{color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px);line-height:120%;text-align:center}.CashierErrorButton{display:flex;width:100%;height:36px;flex-direction:column;justify-content:center;flex-shrink:0;color:var(--emw--color-white, #FFF);cursor:pointer;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;line-height:36px;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E)}.CashierErrorButton:hover{background:var(--mmw--color-main-button-hover, #71B11B)}.CashierErrorButton:active{background:var(--mmw--color-main-button-active, #5C950F)}",this.shadowRoot.appendChild(f),F(this,{target:this.shadowRoot,props:u(this.attributes),customElement:!0},ze,Xe,r,{assetsurl:0,lang:6,hidebuttons:1,errorcode:2,clientstyling:7,clientstylingurl:8,translationurl:9},null),A&&(A.target&&g(A.target,this,A.anchor),A.props&&(this.$set(A.props),M()))}static get observedAttributes(){return["assetsurl","lang","hidebuttons","errorcode","clientstyling","clientstylingurl","translationurl"]}get assetsurl(){return this.$$.ctx[0]}set assetsurl(A){this.$$set({assetsurl:A}),M()}get lang(){return this.$$.ctx[6]}set lang(A){this.$$set({lang:A}),M()}get hidebuttons(){return this.$$.ctx[1]}set hidebuttons(A){this.$$set({hidebuttons:A}),M()}get errorcode(){return this.$$.ctx[2]}set errorcode(A){this.$$set({errorcode:A}),M()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(A){this.$$set({clientstyling:A}),M()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(A){this.$$set({clientstylingurl:A}),M()}get translationurl(){return this.$$.ctx[9]}set translationurl(A){this.$$set({translationurl:A}),M()}}return!customElements.get("cashier-error")&&customElements.define("cashier-error",Me),Me}));
579
+ /*div1_binding*/,f[10](null)}}}function ze(A,f,e){let n;var t,r;t=De,r=A=>e(4,n=A),A.$$.on_destroy.push(v(t,r));let w,{assetsurl:i=""}=f,{lang:P="en"}=f,{hidebuttons:E=""}=f,{errorcode:g=""}=f,{clientstyling:C=""}=f,{clientstylingurl:o=""}=f,{translationurl:h=""}=f;const s=()=>{var A;A=P,Ae.set(A)};Object.keys(He).forEach((A=>{Ie(A,He[A])}));return A.$$set=A=>{"assetsurl"in A&&e(0,i=A.assetsurl),"lang"in A&&e(6,P=A.lang),"hidebuttons"in A&&e(1,E=A.hidebuttons),"errorcode"in A&&e(2,g=A.errorcode),"clientstyling"in A&&e(7,C=A.clientstyling),"clientstylingurl"in A&&e(8,o=A.clientstylingurl),"translationurl"in A&&e(9,h=A.translationurl)},A.$$.update=()=>{/*lang*/64&A.$$.dirty&&P&&s(),/*clientstyling, customStylingContainer*/136&A.$$.dirty&&C&&w&&(()=>{let A=document.createElement("style");A.innerHTML=C,w.appendChild(A)})(),/*clientstylingurl, customStylingContainer*/264&A.$$.dirty&&o&&w&&(()=>{let A=new URL(o),f=document.createElement("style");fetch(A.href).then((A=>A.text())).then((A=>{f.innerHTML=A,setTimeout((()=>{w.appendChild(f)}),1)}))})(),/*translationurl*/512&A.$$.dirty&&h&&fetch(h).then((A=>A.json())).then((A=>{Object.keys(A).forEach((f=>{Ie(f,A[f])}))})).catch((A=>{console.log(A)}))},[i,E,g,w,n,()=>{window.postMessage({type:"ErrorClose"},window.location.href)},P,C,o,h,function(A){I[A?"unshift":"push"]((()=>{w=A,e(3,w)}))}]}class Me extends J{constructor(A){super();const f=document.createElement("style");f.textContent=".CashierError{height:inherit;display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-x-small, 12px);line-height:120%;text-align:center}.CashierErrorText{color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px);line-height:120%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-white, #FFF);text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E)}.CashierErrorButton:hover{background:var(--mmw--color-main-button-hover, #71B11B)}.CashierErrorButton:active{background:var(--mmw--color-main-button-active, #5C950F)}",this.shadowRoot.appendChild(f),F(this,{target:this.shadowRoot,props:u(this.attributes),customElement:!0},ze,Xe,r,{assetsurl:0,lang:6,hidebuttons:1,errorcode:2,clientstyling:7,clientstylingurl:8,translationurl:9},null),A&&(A.target&&g(A.target,this,A.anchor),A.props&&(this.$set(A.props),M()))}static get observedAttributes(){return["assetsurl","lang","hidebuttons","errorcode","clientstyling","clientstylingurl","translationurl"]}get assetsurl(){return this.$$.ctx[0]}set assetsurl(A){this.$$set({assetsurl:A}),M()}get lang(){return this.$$.ctx[6]}set lang(A){this.$$set({lang:A}),M()}get hidebuttons(){return this.$$.ctx[1]}set hidebuttons(A){this.$$set({hidebuttons:A}),M()}get errorcode(){return this.$$.ctx[2]}set errorcode(A){this.$$set({errorcode:A}),M()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(A){this.$$set({clientstyling:A}),M()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(A){this.$$set({clientstylingurl:A}),M()}get translationurl(){return this.$$.ctx[9]}set translationurl(A){this.$$set({translationurl:A}),M()}}return!customElements.get("cashier-error")&&customElements.define("cashier-error",Me),Me}));
580
580
  //# sourceMappingURL=cashier-error.js.map