@everymatrix/cashier-error 1.39.2 → 1.40.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,7 @@
3
3
 
4
4
  | Version | Release date | Impacted areas | Changes |
5
5
  | ------- | ------------ | ----------------------------- | --------------------------------------- |
6
+ | 1.39.3 | Thu Sep 12 2024 | cashier-error | fix(MMFE-1161)(cashier-page,cashier-error,cashier-method-details,cashier-verifications): fix translations for header, fix verifications displaying |
6
7
  | 1.38.0 | Fri Aug 30 2024 | cashier-error | feat(MMFE-1100)(cashier-error,cashier-method-details,cashier-page,cashier-session-expiration-modal): add session expiration widget |
7
8
  | 1.37.2 | Mon Aug 12 2024 | cashier-error | chore(EMFE-31698)(cashier-error,and-everything-else): update Turkish translations <br /> fix(GMMMFE-981)(cashier-page,cashier-error,cashier-method-details,cashier-receipt-page): show error message on receipt page, small fixes <br /> fix(MMFE-971)(cashier-error,cashier-page,cashier-receipt-page): added funct to initialize the fallback lang <br /> feat(GMMMFE-781)(cashier-page,cashier-confirm-page,cashier-method-deposit,cashier-receipt-page,cashier-error,cashier-method-list): add transaction <br /> fix(MMFE-885)(cashier-confirm-modal,cashier-error,cashier-method-details,cashier-methods-list,cashier-notifications,cashier-receipt-page): add inherit font-family for buttons |
8
9
  | 1.36.0 | Mon Jul 29 2024 | cashier-error | chore(EMFE-31698)(cashier-error,and-everything-else): update Turkish translations |
@@ -573,5 +573,5 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
573
573
  // (67:2) {#if !hidebuttons || hidebuttons === 'false'}
574
574
  function Br(e){let t,r,n,i,o,s,a=/*$_*/e[5]("errorGeneralButton")+"";return{c(){t=p("div"),r=p("slot"),n=p("span"),i=m(a),d(r,"name","button"),d(t,"class","CashierErrorButton")},m(a,l){u(a,t,l),c(t,r),c(r,n),c(n,i),o||(s=function(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}(t,"click",/*close*/e[6]),o=!0)},p(e,t){/*$_*/32&t&&a!==(a=/*$_*/e[5]("errorGeneralButton")+"")&&b(i,a)},d(e){e&&f(t),o=!1,s()}}}function _r(t){let r,n,i,o,s,a,l,h,E,y,v,T,H=/*$_*/t[5]("errorGeneralTitle")+"",B=/*$_*/t[5](`${/*errorcode*/t[3]||"errorGeneralText"}`)+"",_=/*assetsurl*/t[0]&&Hr(t),A=(!/*hidebuttons*/t[2]||/*hidebuttons*/"false"===t[2])&&Br(t);return{c(){r=p("div"),n=p("div"),i=p("slot"),_&&_.c(),o=g(),s=p("slot"),a=p("span"),l=m(H),h=g(),E=p("slot"),y=p("span"),v=m(B),T=g(),A&&A.c(),this.c=e,d(i,"name","icon"),d(i,"class","CashierErrorIcon"),d(s,"name","title"),d(s,"class","CashierErrorTitle"),d(E,"name","text"),d(E,"class","CashierErrorText"),d(n,"class","CashierErrorContent"),d(r,"class","CashierError")},m(e,f){u(e,r,f),c(r,n),c(n,i),_&&_.m(i,null),c(n,o),c(n,s),c(s,a),c(a,l),c(n,h),c(n,E),c(E,y),c(y,v),c(n,T),A&&A.m(n,null)
575
575
  /*div1_binding*/,t[11](r)},p(e,[t]){/*assetsurl*/e[0]?_?_.p(e,t):(_=Hr(e),_.c(),_.m(i,null)):_&&(_.d(1),_=null),/*$_*/32&t&&H!==(H=/*$_*/e[5]("errorGeneralTitle")+"")&&b(l,H),/*$_, errorcode*/40&t&&B!==(B=/*$_*/e[5](`${/*errorcode*/e[3]||"errorGeneralText"}`)+"")&&b(v,B),/*hidebuttons*/e[2]&&/*hidebuttons*/"false"!==e[2]?A&&(A.d(1),A=null):A?A.p(e,t):(A=Br(e),A.c(),A.m(n,null))},i:e,o:e,d(e){e&&f(r),_&&_.d(),A&&A.d()
576
- /*div1_binding*/,t[11](null)}}}function Ar(e,t,r){let n;var i,o;i=yr,o=e=>r(5,n=e),e.$$.on_destroy.push(h(i,o));let s,{assetsurl:a=""}=t,{imgurl:l=""}=t,{lang:c="en"}=t,{hidebuttons:u=""}=t,{errorcode:f=""}=t,{clientstyling:p=""}=t,{clientstylingurl:m=""}=t,{translationurl:g=""}=t;Object.keys(Tr).forEach((e=>{vr(e,Tr[e])}));const d=()=>{var e;e=c,qt.set(e)};return e.$$set=e=>{"assetsurl"in e&&r(0,a=e.assetsurl),"imgurl"in e&&r(1,l=e.imgurl),"lang"in e&&r(7,c=e.lang),"hidebuttons"in e&&r(2,u=e.hidebuttons),"errorcode"in e&&r(3,f=e.errorcode),"clientstyling"in e&&r(8,p=e.clientstyling),"clientstylingurl"in e&&r(9,m=e.clientstylingurl),"translationurl"in e&&r(10,g=e.translationurl)},e.$$.update=()=>{/*lang*/128&e.$$.dirty&&c&&d(),/*clientstyling, customStylingContainer*/272&e.$$.dirty&&p&&s&&(()=>{let e=document.createElement("style");e.innerHTML=p,s.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/528&e.$$.dirty&&m&&s&&(()=>{let e=new URL(m),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{s.appendChild(t)}),1)}))})(),/*translationurl*/1024&e.$$.dirty&&g&&fetch(g).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{vr(t,e[t])}))})).catch((e=>{console.log(e)}))},[a,l,u,f,s,n,()=>{window.postMessage({type:"ErrorClose"},window.location.href)},c,p,m,g,function(e){T[e?"unshift":"push"]((()=>{s=e,r(4,s)}))}]}class Pr extends R{constructor(e){super();const t=document.createElement("style");t.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(t),M(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Ar,_r,o,{assetsurl:0,imgurl:1,lang:7,hidebuttons:2,errorcode:3,clientstyling:8,clientstylingurl:9,translationurl:10},null),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),w()))}static get observedAttributes(){return["assetsurl","imgurl","lang","hidebuttons","errorcode","clientstyling","clientstylingurl","translationurl"]}get assetsurl(){return this.$$.ctx[0]}set assetsurl(e){this.$$set({assetsurl:e}),w()}get imgurl(){return this.$$.ctx[1]}set imgurl(e){this.$$set({imgurl:e}),w()}get lang(){return this.$$.ctx[7]}set lang(e){this.$$set({lang:e}),w()}get hidebuttons(){return this.$$.ctx[2]}set hidebuttons(e){this.$$set({hidebuttons:e}),w()}get errorcode(){return this.$$.ctx[3]}set errorcode(e){this.$$set({errorcode:e}),w()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(e){this.$$set({clientstyling:e}),w()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),w()}get translationurl(){return this.$$.ctx[10]}set translationurl(e){this.$$set({translationurl:e}),w()}}return!customElements.get("cashier-error")&&customElements.define("cashier-error",Pr),Pr}));
576
+ /*div1_binding*/,t[11](null)}}}function Ar(e,t,r){let n;var i,o;i=yr,o=e=>r(5,n=e),e.$$.on_destroy.push(h(i,o));let s,{assetsurl:a=""}=t,{imgurl:l=""}=t,{lang:c="en"}=t,{hidebuttons:u=""}=t,{errorcode:f=""}=t,{clientstyling:p=""}=t,{clientstylingurl:m=""}=t,{translationurl:g=""}=t;const d=()=>{var e;e=c,qt.set(e)};Object.keys(Tr).forEach((e=>{vr(e,Tr[e])}));return e.$$set=e=>{"assetsurl"in e&&r(0,a=e.assetsurl),"imgurl"in e&&r(1,l=e.imgurl),"lang"in e&&r(7,c=e.lang),"hidebuttons"in e&&r(2,u=e.hidebuttons),"errorcode"in e&&r(3,f=e.errorcode),"clientstyling"in e&&r(8,p=e.clientstyling),"clientstylingurl"in e&&r(9,m=e.clientstylingurl),"translationurl"in e&&r(10,g=e.translationurl)},e.$$.update=()=>{/*lang*/128&e.$$.dirty&&c&&d(),/*clientstyling, customStylingContainer*/272&e.$$.dirty&&p&&s&&(()=>{let e=document.createElement("style");e.innerHTML=p,s.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/528&e.$$.dirty&&m&&s&&(()=>{let e=new URL(m),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{s.appendChild(t)}),1)}))})(),/*translationurl*/1024&e.$$.dirty&&g&&fetch(g).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{vr(t,e[t])}))})).catch((e=>{console.log(e)}))},[a,l,u,f,s,n,()=>{window.postMessage({type:"ErrorClose"},window.location.href)},c,p,m,g,function(e){T[e?"unshift":"push"]((()=>{s=e,r(4,s)}))}]}class Pr extends R{constructor(e){super();const t=document.createElement("style");t.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(t),M(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Ar,_r,o,{assetsurl:0,imgurl:1,lang:7,hidebuttons:2,errorcode:3,clientstyling:8,clientstylingurl:9,translationurl:10},null),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),w()))}static get observedAttributes(){return["assetsurl","imgurl","lang","hidebuttons","errorcode","clientstyling","clientstylingurl","translationurl"]}get assetsurl(){return this.$$.ctx[0]}set assetsurl(e){this.$$set({assetsurl:e}),w()}get imgurl(){return this.$$.ctx[1]}set imgurl(e){this.$$set({imgurl:e}),w()}get lang(){return this.$$.ctx[7]}set lang(e){this.$$set({lang:e}),w()}get hidebuttons(){return this.$$.ctx[2]}set hidebuttons(e){this.$$set({hidebuttons:e}),w()}get errorcode(){return this.$$.ctx[3]}set errorcode(e){this.$$set({errorcode:e}),w()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(e){this.$$set({clientstyling:e}),w()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),w()}get translationurl(){return this.$$.ctx[10]}set translationurl(e){this.$$set({translationurl:e}),w()}}return!customElements.get("cashier-error")&&customElements.define("cashier-error",Pr),Pr}));
577
577
  //# sourceMappingURL=cashier-error.js.map