@everymatrix/cashier-iframe-redirect 1.43.0 → 1.43.2

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.
@@ -599,5 +599,5 @@ function In(e){let n,r,i;return{c(){n=p("div"),n.innerHTML='<svg xmlns="http://w
599
599
  // (95:2) {#if isLoading}
600
600
  function Rn(t){let e;return{c(){e=p("cashier-spinner"),y(e,"clientstylingurl",/*clientstylingurl*/t[5]),y(e,"clientstyling",/*clientstyling*/t[4])},m(t,n){u(t,e,n)},p(t,n){/*clientstylingurl*/32&n&&y(e,"clientstylingurl",/*clientstylingurl*/t[5]),/*clientstyling*/16&n&&y(e,"clientstyling",/*clientstyling*/t[4])},d(t){t&&f(e)}}}function $n(e){let n,r,i,o,s,a,h,m,E,v=!!/*showbackbutton*/e[3]&&/*showbackbutton*/"false"!==e[3]&&Mn(e),H=(!/*showbackbutton*/e[3]||/*showbackbutton*/"false"===e[3])&&In(e),T=/*isLoading*/e[8]&&Rn(e);return{c(){n=p("div"),r=p("cashier-header"),v&&v.c(),i=g(),H&&H.c(),o=g(),T&&T.c(),s=g(),a=p("iframe"),this.c=t,y(r,"lang",/*lang*/e[0]),y(r,"translationurl",/*translationurl*/e[2]),y(r,"title",/*title*/e[6]),y(r,"showbackbutton",/*showbackbutton*/e[3]),y(r,"clientstylingurl",/*clientstylingurl*/e[5]),y(r,"clientstyling",/*clientstyling*/e[4]),l(a.src,h=/*iframeurl*/e[1])||b(a,"src",h),b(a,"frameborder","0"),b(n,"class","CashierRedirectIframe")},m(t,l){u(t,n,l),c(n,r),v&&v.m(r,null),c(r,i),H&&H.m(r,null),c(n,o),T&&T.m(n,null),c(n,s),c(n,a),
601
601
  /*div_binding*/e[12](n),m||(E=d(a,"load",/*load_handler*/e[11]),m=!0)},p(t,[e]){/*showbackbutton*/t[3]&&/*showbackbutton*/"false"!==t[3]?v?v.p(t,e):(v=Mn(t),v.c(),v.m(r,i)):v&&(v.d(1),v=null),/*showbackbutton*/t[3]&&/*showbackbutton*/"false"!==t[3]?H&&(H.d(1),H=null):H?H.p(t,e):(H=In(t),H.c(),H.m(r,null)),/*lang*/1&e&&y(r,"lang",/*lang*/t[0]),/*translationurl*/4&e&&y(r,"translationurl",/*translationurl*/t[2]),/*title*/64&e&&y(r,"title",/*title*/t[6]),/*showbackbutton*/8&e&&y(r,"showbackbutton",/*showbackbutton*/t[3]),/*clientstylingurl*/32&e&&y(r,"clientstylingurl",/*clientstylingurl*/t[5]),/*clientstyling*/16&e&&y(r,"clientstyling",/*clientstyling*/t[4]),/*isLoading*/t[8]?T?T.p(t,e):(T=Rn(t),T.c(),T.m(n,s)):T&&(T.d(1),T=null),/*iframeurl*/2&e&&!l(a.src,h=/*iframeurl*/t[1])&&b(a,"src",h)},i:t,o:t,d(t){t&&f(n),v&&v.d(),H&&H.d(),T&&T.d()
602
- /*div_binding*/,e[12](null),m=!1,E()}}}function Un(t,e,n){let r,{lang:i="en"}=e,{iframeurl:o}=e,{translationurl:s=""}=e,{showbackbutton:a=""}=e,{clientstyling:l=""}=e,{clientstylingurl:h=""}=e,{title:c=""}=e,u=!0;H();Object.keys(_n).forEach((t=>{wn(t,_n[t])}));const f=()=>{var t;t=i,nn.set(t)},p=t=>{t.target.src&&n(8,u=!1)};return t.$$set=t=>{"lang"in t&&n(0,i=t.lang),"iframeurl"in t&&n(1,o=t.iframeurl),"translationurl"in t&&n(2,s=t.translationurl),"showbackbutton"in t&&n(3,a=t.showbackbutton),"clientstyling"in t&&n(4,l=t.clientstyling),"clientstylingurl"in t&&n(5,h=t.clientstylingurl),"title"in t&&n(6,c=t.title)},t.$$.update=()=>{/*lang*/1&t.$$.dirty&&i&&f(),/*translationurl*/4&t.$$.dirty&&s&&(()=>{if(s)fetch(s).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{wn(e,t[e])}))})).catch((t=>{console.log(t)}))})(),/*clientstyling, customStylingContainer*/144&t.$$.dirty&&l&&r&&(()=>{let t=document.createElement("style");t.innerHTML=l,r.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/160&t.$$.dirty&&h&&r&&(()=>{let t=new URL(h),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{r.appendChild(e)}),1)}))})()},[i,o,s,a,l,h,c,r,u,()=>{dispatchEvent(new CustomEvent("closeIframe",{bubbles:!0,cancelable:!0,composed:!0}))},p,t=>p(t),function(t){B[t?"unshift":"push"]((()=>{r=t,n(7,r)}))}]}!customElements.get("cashier-spinner")&&customElements.define("cashier-spinner",class extends U{constructor(t){super();const e=document.createElement("style");e.textContent=".CashierSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}",this.shadowRoot.appendChild(e),$(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Nn,On,o,{clientstyling:1,clientstylingurl:2},null),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),O()))}static get observedAttributes(){return["clientstyling","clientstylingurl"]}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),O()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),O()}});class kn extends U{constructor(t){super();const e=document.createElement("style");e.textContent=".CashierRedirectIframe{height:inherit;width:inherit}iframe{border-radius:0 0 6px 6px;border:1px solid var(--mmw--color-grey-105, #E8E9EB);height:calc(100% - var(--mmw--header-height, 32px));width:100%;box-sizing:border-box}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}",this.shadowRoot.appendChild(e),$(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Un,$n,o,{lang:0,iframeurl:1,translationurl:2,showbackbutton:3,clientstyling:4,clientstylingurl:5,title:6},null),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),O()))}static get observedAttributes(){return["lang","iframeurl","translationurl","showbackbutton","clientstyling","clientstylingurl","title"]}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),O()}get iframeurl(){return this.$$.ctx[1]}set iframeurl(t){this.$$set({iframeurl:t}),O()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),O()}get showbackbutton(){return this.$$.ctx[3]}set showbackbutton(t){this.$$set({showbackbutton:t}),O()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),O()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),O()}get title(){return this.$$.ctx[6]}set title(t){this.$$set({title:t}),O()}}return!customElements.get("cashier-iframe-redirect")&&customElements.define("cashier-iframe-redirect",kn),kn}));
602
+ /*div_binding*/,e[12](null),m=!1,E()}}}function Un(t,e,n){let r,{lang:i="en"}=e,{iframeurl:o}=e,{translationurl:s=""}=e,{showbackbutton:a=""}=e,{clientstyling:l=""}=e,{clientstylingurl:h=""}=e,{title:c=""}=e,u=!0;H();Object.keys(_n).forEach((t=>{wn(t,_n[t])}));const f=()=>{var t;t=i,nn.set(t)},p=t=>{t.target.src&&n(8,u=!1)};return t.$$set=t=>{"lang"in t&&n(0,i=t.lang),"iframeurl"in t&&n(1,o=t.iframeurl),"translationurl"in t&&n(2,s=t.translationurl),"showbackbutton"in t&&n(3,a=t.showbackbutton),"clientstyling"in t&&n(4,l=t.clientstyling),"clientstylingurl"in t&&n(5,h=t.clientstylingurl),"title"in t&&n(6,c=t.title)},t.$$.update=()=>{/*lang*/1&t.$$.dirty&&i&&f(),/*translationurl*/4&t.$$.dirty&&s&&(()=>{if(s)fetch(s).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{wn(e,t[e])}))})).catch((t=>{console.log(t)}))})(),/*clientstyling, customStylingContainer*/144&t.$$.dirty&&l&&r&&(()=>{let t=document.createElement("style");t.innerHTML=l,r.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/160&t.$$.dirty&&h&&r&&(()=>{let t=new URL(h),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{r.appendChild(e)}),1)}))})()},[i,o,s,a,l,h,c,r,u,()=>{dispatchEvent(new CustomEvent("closeIframe",{bubbles:!0,cancelable:!0,composed:!0}))},p,t=>p(t),function(t){B[t?"unshift":"push"]((()=>{r=t,n(7,r)}))}]}!customElements.get("cashier-spinner")&&customElements.define("cashier-spinner",class extends U{constructor(t){super();const e=document.createElement("style");e.textContent=".CashierSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}",this.shadowRoot.appendChild(e),$(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Nn,On,o,{clientstyling:1,clientstylingurl:2},null),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),O()))}static get observedAttributes(){return["clientstyling","clientstylingurl"]}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),O()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),O()}});class kn extends U{constructor(t){super();const e=document.createElement("style");e.textContent=".CashierRedirectIframe{height:inherit;width:inherit}iframe{border-radius:0 0 6px 6px;border:1px solid var(--mmw--color-grey-105, #E8E9EB);height:calc(100% - var(--mmw--header-height, 32px));width:100%;box-sizing:border-box}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}",this.shadowRoot.appendChild(e),$(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Un,$n,o,{lang:0,iframeurl:1,translationurl:2,showbackbutton:3,clientstyling:4,clientstylingurl:5,title:6},null),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),O()))}static get observedAttributes(){return["lang","iframeurl","translationurl","showbackbutton","clientstyling","clientstylingurl","title"]}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),O()}get iframeurl(){return this.$$.ctx[1]}set iframeurl(t){this.$$set({iframeurl:t}),O()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),O()}get showbackbutton(){return this.$$.ctx[3]}set showbackbutton(t){this.$$set({showbackbutton:t}),O()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),O()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),O()}get title(){return this.$$.ctx[6]}set title(t){this.$$set({title:t}),O()}}return!customElements.get("cashier-iframe-redirect")&&customElements.define("cashier-iframe-redirect",kn),kn}));
603
603
  //# sourceMappingURL=cashier-iframe-redirect.js.map