@everymatrix/cashier-error 1.28.8 → 1.29.0

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,5 +573,5 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
573
573
  // (65:2) {#if !hidebuttons || hidebuttons === 'false'}
574
574
  function yr(e){let t,r,n,i,o,s,a=/*$_*/e[4]("errorGeneralButton")+"";return{c(){t=p("div"),r=p("slot"),n=p("span"),i=m(a),E(r,"name","button"),E(t,"class","CashierErrorButton")},m(a,h){c(a,t,h),u(t,r),u(r,n),u(n,i),o||(s=function(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}(t,"click",/*close*/e[5]),o=!0)},p(e,t){/*$_*/16&t&&a!==(a=/*$_*/e[4]("errorGeneralButton")+"")&&b(i,a)},d(e){e&&f(t),o=!1,s()}}}function vr(t){let r,n,i,o,s,a,h,l,d,y,v,T=/*$_*/t[4]("errorGeneralTitle")+"",H=/*$_*/t[4](`${/*errorcode*/t[2]}`)+"",B=/*assetsurl*/t[0]&&dr(t),_=(!/*hidebuttons*/t[1]||/*hidebuttons*/"false"===t[1])&&yr(t);return{c(){r=p("div"),n=p("slot"),B&&B.c(),i=g(),o=p("slot"),s=p("span"),a=m(T),h=g(),l=p("slot"),d=p("span"),y=m(H),v=g(),_&&_.c(),this.c=e,E(n,"name","icon"),E(n,"class","CashierErrorIcon"),E(o,"name","title"),E(o,"class","CashierErrorTitle"),E(l,"name","text"),E(l,"class","CashierErrorText"),E(r,"class","CashierError")},m(e,f){c(e,r,f),u(r,n),B&&B.m(n,null),u(r,i),u(r,o),u(o,s),u(s,a),u(r,h),u(r,l),u(l,d),u(d,y),u(r,v),_&&_.m(r,null)
575
575
  /*div_binding*/,t[10](r)},p(e,[t]){/*assetsurl*/e[0]?B?B.p(e,t):(B=dr(e),B.c(),B.m(n,null)):B&&(B.d(1),B=null),/*$_*/16&t&&T!==(T=/*$_*/e[4]("errorGeneralTitle")+"")&&b(a,T),/*$_, errorcode*/20&t&&H!==(H=/*$_*/e[4](`${/*errorcode*/e[2]}`)+"")&&b(y,H),/*hidebuttons*/e[1]&&/*hidebuttons*/"false"!==e[1]?_&&(_.d(1),_=null):_?_.p(e,t):(_=yr(e),_.c(),_.m(r,null))},i:e,o:e,d(e){e&&f(r),B&&B.d(),_&&_.d()
576
- /*div_binding*/,t[10](null)}}}function Tr(e,t,r){let n;var i,o;i=gr,o=e=>r(4,n=e),e.$$.on_destroy.push(l(i,o));let s,{assetsurl:a=""}=t,{lang:h="en"}=t,{hidebuttons:u=""}=t,{errorcode:c=""}=t,{clientstyling:f=""}=t,{clientstylingurl:p=""}=t,{translationurl:m=""}=t;Object.keys(br).forEach((e=>{Er(e,br[e])}));const g=()=>{var e;e=h,Zt.set(e)};return e.$$set=e=>{"assetsurl"in e&&r(0,a=e.assetsurl),"lang"in e&&r(6,h=e.lang),"hidebuttons"in e&&r(1,u=e.hidebuttons),"errorcode"in e&&r(2,c=e.errorcode),"clientstyling"in e&&r(7,f=e.clientstyling),"clientstylingurl"in e&&r(8,p=e.clientstylingurl),"translationurl"in e&&r(9,m=e.translationurl)},e.$$.update=()=>{/*lang*/64&e.$$.dirty&&h&&g(),/*clientstyling, customStylingContainer*/136&e.$$.dirty&&f&&s&&(()=>{let e=document.createElement("style");e.innerHTML=f,s.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/264&e.$$.dirty&&p&&s&&(()=>{let e=new URL(p),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{s.appendChild(t)}),1)}))})(),/*translationurl*/512&e.$$.dirty&&m&&fetch(m).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Er(t,e[t])}))})).catch((e=>{console.log(e)}))},[a,u,c,s,n,()=>{window.postMessage({type:"ErrorClose"},window.location.href)},h,f,p,m,function(e){T[e?"unshift":"push"]((()=>{s=e,r(3,s)}))}]}class Hr extends R{constructor(e){super();const t=document.createElement("style");t.textContent=".CashierError{width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--emw--spacing-large, 20px)}.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);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(t),M(this,{target:this.shadowRoot,props:d(this.attributes),customElement:!0},Tr,vr,o,{assetsurl:0,lang:6,hidebuttons:1,errorcode:2,clientstyling:7,clientstylingurl:8,translationurl:9},null),e&&(e.target&&c(e.target,this,e.anchor),e.props&&(this.$set(e.props),C()))}static get observedAttributes(){return["assetsurl","lang","hidebuttons","errorcode","clientstyling","clientstylingurl","translationurl"]}get assetsurl(){return this.$$.ctx[0]}set assetsurl(e){this.$$set({assetsurl:e}),C()}get lang(){return this.$$.ctx[6]}set lang(e){this.$$set({lang:e}),C()}get hidebuttons(){return this.$$.ctx[1]}set hidebuttons(e){this.$$set({hidebuttons:e}),C()}get errorcode(){return this.$$.ctx[2]}set errorcode(e){this.$$set({errorcode:e}),C()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),C()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),C()}get translationurl(){return this.$$.ctx[9]}set translationurl(e){this.$$set({translationurl:e}),C()}}return!customElements.get("cashier-error")&&customElements.define("cashier-error",Hr),Hr}));
576
+ /*div_binding*/,t[10](null)}}}function Tr(e,t,r){let n;var i,o;i=gr,o=e=>r(4,n=e),e.$$.on_destroy.push(l(i,o));let s,{assetsurl:a=""}=t,{lang:h="en"}=t,{hidebuttons:u=""}=t,{errorcode:c=""}=t,{clientstyling:f=""}=t,{clientstylingurl:p=""}=t,{translationurl:m=""}=t;Object.keys(br).forEach((e=>{Er(e,br[e])}));const g=()=>{var e;e=h,Zt.set(e)};return e.$$set=e=>{"assetsurl"in e&&r(0,a=e.assetsurl),"lang"in e&&r(6,h=e.lang),"hidebuttons"in e&&r(1,u=e.hidebuttons),"errorcode"in e&&r(2,c=e.errorcode),"clientstyling"in e&&r(7,f=e.clientstyling),"clientstylingurl"in e&&r(8,p=e.clientstylingurl),"translationurl"in e&&r(9,m=e.translationurl)},e.$$.update=()=>{/*lang*/64&e.$$.dirty&&h&&g(),/*clientstyling, customStylingContainer*/136&e.$$.dirty&&f&&s&&(()=>{let e=document.createElement("style");e.innerHTML=f,s.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/264&e.$$.dirty&&p&&s&&(()=>{let e=new URL(p),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{s.appendChild(t)}),1)}))})(),/*translationurl*/512&e.$$.dirty&&m&&fetch(m).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Er(t,e[t])}))})).catch((e=>{console.log(e)}))},[a,u,c,s,n,()=>{window.postMessage({type:"ErrorClose"},window.location.href)},h,f,p,m,function(e){T[e?"unshift":"push"]((()=>{s=e,r(3,s)}))}]}class Hr extends R{constructor(e){super();const t=document.createElement("style");t.textContent=".CashierError{width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--emw--spacing-large, 20px)}.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(t),M(this,{target:this.shadowRoot,props:d(this.attributes),customElement:!0},Tr,vr,o,{assetsurl:0,lang:6,hidebuttons:1,errorcode:2,clientstyling:7,clientstylingurl:8,translationurl:9},null),e&&(e.target&&c(e.target,this,e.anchor),e.props&&(this.$set(e.props),C()))}static get observedAttributes(){return["assetsurl","lang","hidebuttons","errorcode","clientstyling","clientstylingurl","translationurl"]}get assetsurl(){return this.$$.ctx[0]}set assetsurl(e){this.$$set({assetsurl:e}),C()}get lang(){return this.$$.ctx[6]}set lang(e){this.$$set({lang:e}),C()}get hidebuttons(){return this.$$.ctx[1]}set hidebuttons(e){this.$$set({hidebuttons:e}),C()}get errorcode(){return this.$$.ctx[2]}set errorcode(e){this.$$set({errorcode:e}),C()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),C()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),C()}get translationurl(){return this.$$.ctx[9]}set translationurl(e){this.$$set({translationurl:e}),C()}}return!customElements.get("cashier-error")&&customElements.define("cashier-error",Hr),Hr}));
577
577
  //# sourceMappingURL=cashier-error.js.map