@everymatrix/cashier-video-modal 0.4.2 → 0.4.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.
@@ -0,0 +1 @@
1
+ "use strict";var lt=Object.defineProperty,ct=Object.defineProperties;var ut=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var ft=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable;var A=(e,t,n)=>t in e?lt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R=(e,t)=>{for(var n in t||(t={}))ft.call(t,n)&&A(e,n,t[n]);if(z)for(var n of z(t))dt.call(t,n)&&A(e,n,t[n]);return e},W=(e,t)=>ct(e,ut(t));var $=(e,t,n)=>A(e,typeof t!="symbol"?t+"":t,n);var I=(e,t,n)=>new Promise((i,r)=>{var s=l=>{try{u(n.next(l))}catch(o){r(o)}},c=l=>{try{u(n.throw(l))}catch(o){r(o)}},u=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,c);u((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function p(){}function X(e){return e()}function U(){return Object.create(null)}function O(e){e.forEach(X)}function Y(e){return typeof e=="function"}function at(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let V;function q(e,t){return e===t?!0:(V||(V=document.createElement("a")),V.href=t,e===V.href)}function ht(e){return Object.keys(e).length===0}function g(e,t){e.appendChild(t)}function $t(e,t,n){const i=gt(e);if(!i.getElementById(t)){const r=_("style");r.id=t,r.textContent=n,_t(i,r)}}function gt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function _t(e,t){return g(e.head||e,t),t.sheet}function k(e,t,n){e.insertBefore(t,n||null)}function C(e){e.parentNode&&e.parentNode.removeChild(e)}function _(e){return document.createElement(e)}function j(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function tt(e){return document.createTextNode(e)}function F(){return tt(" ")}function pt(){return tt("")}function et(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function f(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function mt(e){return Array.from(e.childNodes)}function J(e,t,n){e.classList.toggle(t,!!n)}function wt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let L;function v(e){L=e}function bt(){if(!L)throw new Error("Function called outside component initialization");return L}function yt(e){bt().$$.on_mount.push(e)}const w=[],P=[];let y=[];const Z=[],Ct=Promise.resolve();let B=!1;function vt(){B||(B=!0,Ct.then(b))}function D(e){y.push(e)}const H=new Set;let m=0;function b(){if(m!==0)return;const e=L;do{try{for(;m<w.length;){const t=w[m];m++,v(t),Lt(t.$$)}}catch(t){throw w.length=0,m=0,t}for(v(null),w.length=0,m=0;P.length;)P.pop()();for(let t=0;t<y.length;t+=1){const n=y[t];H.has(n)||(H.add(n),n())}y.length=0}while(w.length);for(;Z.length;)Z.pop()();B=!1,H.clear(),v(e)}function Lt(e){if(e.fragment!==null){e.update(),O(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(D)}}function kt(e){const t=[],n=[];y.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),y=t}const xt=new Set;function Et(e,t){e&&e.i&&(xt.delete(e),e.i(t))}function St(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),D(()=>{const s=e.$$.on_mount.map(X).filter(Y);e.$$.on_destroy?e.$$.on_destroy.push(...s):O(s),e.$$.on_mount=[]}),r.forEach(D)}function Vt(e,t){const n=e.$$;n.fragment!==null&&(kt(n.after_update),O(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Mt(e,t){e.$$.dirty[0]===-1&&(w.push(e),vt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function jt(e,t,n,i,r,s,c=null,u=[-1]){const l=L;v(e);const o=e.$$={fragment:null,ctx:[],props:s,update:p,not_equal:r,bound:U(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:U(),dirty:u,skip_bound:!1,root:t.target||l.$$.root};c&&c(o.root);let d=!1;if(o.ctx=n?n(e,t.props||{},(h,x,...E)=>{const S=E.length?E[0]:x;return o.ctx&&r(o.ctx[h],o.ctx[h]=S)&&(!o.skip_bound&&o.bound[h]&&o.bound[h](S),d&&Mt(e,h)),x}):[],o.update(),d=!0,O(o.before_update),o.fragment=i?i(o.ctx):!1,t.target){if(t.hydrate){const h=mt(t.target);o.fragment&&o.fragment.l(h),h.forEach(C)}else o.fragment&&o.fragment.c();t.intro&&Et(e.$$.fragment),St(e,t.target,t.anchor),b()}v(l)}let nt;typeof HTMLElement=="function"&&(nt=class extends HTMLElement{constructor(t,n,i){super();$(this,"$$ctor");$(this,"$$s");$(this,"$$c");$(this,"$$cn",!1);$(this,"$$d",{});$(this,"$$r",!1);$(this,"$$p_d",{});$(this,"$$l",{});$(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}connectedCallback(){return I(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let c;return{c:function(){c=_("slot"),s!=="default"&&f(c,"name",s)},m:function(o,d){k(o,c,d)},d:function(o){o&&C(c)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=wt(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const c=this.$$g_p(s.name);c in this.$$d||(this.$$d[c]=M(c,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:W(R({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const c=M(s,this.$$d[s],this.$$p_d,"toAttribute");c==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,c)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const c of this.$$l[s]){const u=this.$$c.$on(s,c);this.$$l_u.set(c,u)}this.$$l={}}})}attributeChangedCallback(t,n,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=M(t,i,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function M(e,t,n,i){var s;const r=(s=n[e])==null?void 0:s.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ot(e,t,n,i,r,s){let c=class extends nt{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(c.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(l){var o;l=M(u,l,t),this.$$d[u]=l,(o=this.$$c)==null||o.$set({[u]:l})}})}),i.forEach(u=>{Object.defineProperty(c.prototype,u,{get(){var l;return(l=this.$$c)==null?void 0:l[u]}})}),e.element=c,c}class Nt{constructor(){$(this,"$$");$(this,"$$set")}$destroy(){Vt(this,1),this.$destroy=p}$on(t,n){if(!Y(n))return p;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!ht(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const At="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(At);function Ht(e){$t(e,"svelte-1nj5tcr",".CashierVideoWrapper{position:fixed;width:100%;height:calc(100% - 55px);left:0;top:55px;z-index:5;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoWrapperDesktop{height:calc(100% - 110px);top:110px}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}")}function G(e){let t,n,i,r,s,c,u,l=!e[2]&&K(e),o=e[2]&&Q(e);return{c(){t=_("div"),l&&l.c(),n=F(),i=_("div"),o&&o.c(),r=F(),s=_("video"),c=_("source"),q(c.src,u=e[0])||f(c,"src",u),s.autoplay=!0,s.controls=!0,f(s,"controlslist","nodownload"),f(s,"disablepictureinpicture",""),f(i,"class","CashierVideo"),f(t,"class","CashierVideoWrapper"),f(t,"part","CustomStylingContainer"),J(t,"CashierVideoWrapperDesktop",e[2])},m(d,h){k(d,t,h),l&&l.m(t,null),g(t,n),g(t,i),o&&o.m(i,null),g(i,r),g(i,s),g(s,c),e[10](t)},p(d,h){d[2]?l&&(l.d(1),l=null):l?l.p(d,h):(l=K(d),l.c(),l.m(t,n)),d[2]?o?o.p(d,h):(o=Q(d),o.c(),o.m(i,r)):o&&(o.d(1),o=null),h&1&&!q(c.src,u=d[0])&&f(c,"src",u),h&4&&J(t,"CashierVideoWrapperDesktop",d[2])},d(d){d&&C(t),l&&l.d(),o&&o.d(),e[10](null)}}}function K(e){let t,n,i,r,s;return{c(){t=_("div"),n=j("svg"),i=j("path"),f(i,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),f(i,"fill","#111111"),f(n,"xmlns","http://www.w3.org/2000/svg"),f(n,"width","13"),f(n,"height","13"),f(n,"viewBox","0 0 13 13"),f(n,"fill","none"),f(t,"class","CashierVideoHeader")},m(c,u){k(c,t,u),g(t,n),g(n,i),r||(s=et(n,"click",e[8]),r=!0)},p,d(c){c&&C(t),r=!1,s()}}}function Q(e){let t,n,i,r;return{c(){t=j("svg"),n=j("path"),f(n,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),f(n,"fill","#111111"),f(t,"xmlns","http://www.w3.org/2000/svg"),f(t,"width","13"),f(t,"height","13"),f(t,"viewBox","0 0 13 13"),f(t,"fill","none")},m(s,c){k(s,t,c),g(t,n),i||(r=et(t,"click",e[9]),i=!0)},p,d(s){s&&C(t),i=!1,r()}}}function Pt(e){let t,n=e[3]&&G(e);return{c(){n&&n.c(),t=pt()},m(i,r){n&&n.m(i,r),k(i,t,r)},p(i,[r]){i[3]?n?n.p(i,r):(n=G(i),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:p,o:p,d(i){i&&C(t),n&&n.d(i)}}}function Bt(e,t,n){let{clientstyling:i=""}=t,{clientstylingurl:r=""}=t,{ismobileview:s}=t,{videosrc:c}=t,u=!0,l=!1,o;const d=()=>{n(3,l=!1),window.postMessage({type:"ClosedCashierVideoModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},h=a=>{a.data.type=="ShowCashierVideoModal"&&(n(3,l=!0),window.postMessage({type:"DisableScroll"},window.location.href)),a.data.type=="HideCashierVideoModal"&&d()},x=()=>{n(2,u=s==="false")},E=()=>{let a=document.createElement("style");a.innerHTML=i,o.appendChild(a)},S=()=>{let a=new URL(r),T=document.createElement("style");fetch(a.href).then(N=>N.text()).then(N=>{T.innerHTML=N,setTimeout(()=>{o.appendChild(T)},1)})};yt(()=>(window.addEventListener("message",h,!1),()=>{window.removeEventListener("message",h)}));const st=()=>d(),rt=()=>d();function ot(a){P[a?"unshift":"push"](()=>{o=a,n(1,o)})}return e.$$set=a=>{"clientstyling"in a&&n(5,i=a.clientstyling),"clientstylingurl"in a&&n(6,r=a.clientstylingurl),"ismobileview"in a&&n(7,s=a.ismobileview),"videosrc"in a&&n(0,c=a.videosrc)},e.$$.update=()=>{e.$$.dirty&128&&s&&x(),e.$$.dirty&34&&i&&o&&E(),e.$$.dirty&66&&r&&o&&S()},[c,o,u,l,d,i,r,s,st,rt,ot]}class it extends Nt{constructor(t){super(),jt(this,t,Bt,Pt,at,{clientstyling:5,clientstylingurl:6,ismobileview:7,videosrc:0},Ht)}get clientstyling(){return this.$$.ctx[5]}set clientstyling(t){this.$$set({clientstyling:t}),b()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),b()}get ismobileview(){return this.$$.ctx[7]}set ismobileview(t){this.$$set({ismobileview:t}),b()}get videosrc(){return this.$$.ctx[0]}set videosrc(t){this.$$set({videosrc:t}),b()}}Ot(it,{clientstyling:{},clientstylingurl:{},ismobileview:{},videosrc:{}},[],[],!0);exports.default=it;
@@ -1,67 +1,67 @@
1
- var rt = Object.defineProperty, ot = Object.defineProperties;
1
+ var ot = Object.defineProperty, lt = Object.defineProperties;
2
2
  var ct = Object.getOwnPropertyDescriptors;
3
- var T = Object.getOwnPropertySymbols;
4
- var lt = Object.prototype.hasOwnProperty, ut = Object.prototype.propertyIsEnumerable;
5
- var A = (e, t, n) => t in e ? rt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, D = (e, t) => {
3
+ var R = Object.getOwnPropertySymbols;
4
+ var ut = Object.prototype.hasOwnProperty, ft = Object.prototype.propertyIsEnumerable;
5
+ var A = (e, t, n) => t in e ? ot(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, T = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- lt.call(t, n) && A(e, n, t[n]);
8
- if (T)
9
- for (var n of T(t))
10
- ut.call(t, n) && A(e, n, t[n]);
7
+ ut.call(t, n) && A(e, n, t[n]);
8
+ if (R)
9
+ for (var n of R(t))
10
+ ft.call(t, n) && A(e, n, t[n]);
11
11
  return e;
12
- }, q = (e, t) => ot(e, ct(t));
12
+ }, W = (e, t) => lt(e, ct(t));
13
13
  var $ = (e, t, n) => A(e, typeof t != "symbol" ? t + "" : t, n);
14
14
  var I = (e, t, n) => new Promise((i, r) => {
15
- var s = (c) => {
15
+ var s = (l) => {
16
16
  try {
17
- u(n.next(c));
17
+ u(n.next(l));
18
18
  } catch (o) {
19
19
  r(o);
20
20
  }
21
- }, l = (c) => {
21
+ }, c = (l) => {
22
22
  try {
23
- u(n.throw(c));
23
+ u(n.throw(l));
24
24
  } catch (o) {
25
25
  r(o);
26
26
  }
27
- }, u = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(s, l);
27
+ }, u = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(s, c);
28
28
  u((n = n.apply(e, t)).next());
29
29
  });
30
- function m() {
30
+ function p() {
31
31
  }
32
- function Q(e) {
32
+ function X(e) {
33
33
  return e();
34
34
  }
35
35
  function U() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
38
  function N(e) {
39
- e.forEach(Q);
39
+ e.forEach(X);
40
40
  }
41
- function X(e) {
41
+ function Y(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function ft(e, t) {
44
+ function dt(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- let M;
48
- function F(e, t) {
49
- return e === t ? !0 : (M || (M = document.createElement("a")), M.href = t, e === M.href);
47
+ let S;
48
+ function q(e, t) {
49
+ return e === t ? !0 : (S || (S = document.createElement("a")), S.href = t, e === S.href);
50
50
  }
51
- function dt(e) {
51
+ function at(e) {
52
52
  return Object.keys(e).length === 0;
53
53
  }
54
54
  function _(e, t) {
55
55
  e.appendChild(t);
56
56
  }
57
- function at(e, t, n) {
58
- const i = ht(e);
57
+ function ht(e, t, n) {
58
+ const i = $t(e);
59
59
  if (!i.getElementById(t)) {
60
60
  const r = g("style");
61
- r.id = t, r.textContent = n, $t(i, r);
61
+ r.id = t, r.textContent = n, _t(i, r);
62
62
  }
63
63
  }
64
- function ht(e) {
64
+ function $t(e) {
65
65
  if (!e) return document;
66
66
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
67
67
  return t && /** @type {ShadowRoot} */
@@ -70,7 +70,7 @@ function ht(e) {
70
70
  t
71
71
  ) : e.ownerDocument;
72
72
  }
73
- function $t(e, t) {
73
+ function _t(e, t) {
74
74
  return _(
75
75
  /** @type {Document} */
76
76
  e.head || e,
@@ -89,24 +89,27 @@ function g(e) {
89
89
  function j(e) {
90
90
  return document.createElementNS("http://www.w3.org/2000/svg", e);
91
91
  }
92
- function Y(e) {
92
+ function tt(e) {
93
93
  return document.createTextNode(e);
94
94
  }
95
- function J() {
96
- return Y(" ");
95
+ function F() {
96
+ return tt(" ");
97
97
  }
98
- function _t() {
99
- return Y("");
98
+ function gt() {
99
+ return tt("");
100
100
  }
101
- function tt(e, t, n, i) {
101
+ function et(e, t, n, i) {
102
102
  return e.addEventListener(t, n, i), () => e.removeEventListener(t, n, i);
103
103
  }
104
104
  function f(e, t, n) {
105
105
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
106
106
  }
107
- function gt(e) {
107
+ function pt(e) {
108
108
  return Array.from(e.childNodes);
109
109
  }
110
+ function J(e, t, n) {
111
+ e.classList.toggle(t, !!n);
112
+ }
110
113
  function mt(e) {
111
114
  const t = {};
112
115
  return e.childNodes.forEach(
@@ -120,87 +123,87 @@ let L;
120
123
  function v(e) {
121
124
  L = e;
122
125
  }
123
- function pt() {
126
+ function wt() {
124
127
  if (!L) throw new Error("Function called outside component initialization");
125
128
  return L;
126
129
  }
127
- function wt(e) {
128
- pt().$$.on_mount.push(e);
130
+ function bt(e) {
131
+ wt().$$.on_mount.push(e);
129
132
  }
130
133
  const w = [], B = [];
131
134
  let y = [];
132
- const W = [], bt = /* @__PURE__ */ Promise.resolve();
135
+ const Z = [], yt = /* @__PURE__ */ Promise.resolve();
133
136
  let P = !1;
134
- function yt() {
135
- P || (P = !0, bt.then(b));
137
+ function Ct() {
138
+ P || (P = !0, yt.then(b));
136
139
  }
137
- function z(e) {
140
+ function D(e) {
138
141
  y.push(e);
139
142
  }
140
143
  const H = /* @__PURE__ */ new Set();
141
- let p = 0;
144
+ let m = 0;
142
145
  function b() {
143
- if (p !== 0)
146
+ if (m !== 0)
144
147
  return;
145
148
  const e = L;
146
149
  do {
147
150
  try {
148
- for (; p < w.length; ) {
149
- const t = w[p];
150
- p++, v(t), Ct(t.$$);
151
+ for (; m < w.length; ) {
152
+ const t = w[m];
153
+ m++, v(t), vt(t.$$);
151
154
  }
152
155
  } catch (t) {
153
- throw w.length = 0, p = 0, t;
156
+ throw w.length = 0, m = 0, t;
154
157
  }
155
- for (v(null), w.length = 0, p = 0; B.length; ) B.pop()();
158
+ for (v(null), w.length = 0, m = 0; B.length; ) B.pop()();
156
159
  for (let t = 0; t < y.length; t += 1) {
157
160
  const n = y[t];
158
161
  H.has(n) || (H.add(n), n());
159
162
  }
160
163
  y.length = 0;
161
164
  } while (w.length);
162
- for (; W.length; )
163
- W.pop()();
165
+ for (; Z.length; )
166
+ Z.pop()();
164
167
  P = !1, H.clear(), v(e);
165
168
  }
166
- function Ct(e) {
169
+ function vt(e) {
167
170
  if (e.fragment !== null) {
168
171
  e.update(), N(e.before_update);
169
172
  const t = e.dirty;
170
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(z);
173
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(D);
171
174
  }
172
175
  }
173
- function vt(e) {
176
+ function Lt(e) {
174
177
  const t = [], n = [];
175
178
  y.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : n.push(i)), n.forEach((i) => i()), y = t;
176
179
  }
177
- const Lt = /* @__PURE__ */ new Set();
178
- function xt(e, t) {
179
- e && e.i && (Lt.delete(e), e.i(t));
180
+ const xt = /* @__PURE__ */ new Set();
181
+ function kt(e, t) {
182
+ e && e.i && (xt.delete(e), e.i(t));
180
183
  }
181
- function kt(e, t, n) {
184
+ function Et(e, t, n) {
182
185
  const { fragment: i, after_update: r } = e.$$;
183
- i && i.m(t, n), z(() => {
184
- const s = e.$$.on_mount.map(Q).filter(X);
186
+ i && i.m(t, n), D(() => {
187
+ const s = e.$$.on_mount.map(X).filter(Y);
185
188
  e.$$.on_destroy ? e.$$.on_destroy.push(...s) : N(s), e.$$.on_mount = [];
186
- }), r.forEach(z);
189
+ }), r.forEach(D);
187
190
  }
188
- function Et(e, t) {
191
+ function Vt(e, t) {
189
192
  const n = e.$$;
190
- n.fragment !== null && (vt(n.after_update), N(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
193
+ n.fragment !== null && (Lt(n.after_update), N(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
191
194
  }
192
195
  function St(e, t) {
193
- e.$$.dirty[0] === -1 && (w.push(e), yt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
196
+ e.$$.dirty[0] === -1 && (w.push(e), Ct(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
194
197
  }
195
- function Mt(e, t, n, i, r, s, l = null, u = [-1]) {
196
- const c = L;
198
+ function Mt(e, t, n, i, r, s, c = null, u = [-1]) {
199
+ const l = L;
197
200
  v(e);
198
201
  const o = e.$$ = {
199
202
  fragment: null,
200
203
  ctx: [],
201
204
  // state
202
205
  props: s,
203
- update: m,
206
+ update: p,
204
207
  not_equal: r,
205
208
  bound: U(),
206
209
  // lifecycle
@@ -209,30 +212,30 @@ function Mt(e, t, n, i, r, s, l = null, u = [-1]) {
209
212
  on_disconnect: [],
210
213
  before_update: [],
211
214
  after_update: [],
212
- context: new Map(t.context || (c ? c.$$.context : [])),
215
+ context: new Map(t.context || (l ? l.$$.context : [])),
213
216
  // everything else
214
217
  callbacks: U(),
215
218
  dirty: u,
216
219
  skip_bound: !1,
217
- root: t.target || c.$$.root
220
+ root: t.target || l.$$.root
218
221
  };
219
- l && l(o.root);
222
+ c && c(o.root);
220
223
  let d = !1;
221
224
  if (o.ctx = n ? n(e, t.props || {}, (h, k, ...E) => {
222
- const S = E.length ? E[0] : k;
223
- return o.ctx && r(o.ctx[h], o.ctx[h] = S) && (!o.skip_bound && o.bound[h] && o.bound[h](S), d && St(e, h)), k;
225
+ const V = E.length ? E[0] : k;
226
+ return o.ctx && r(o.ctx[h], o.ctx[h] = V) && (!o.skip_bound && o.bound[h] && o.bound[h](V), d && St(e, h)), k;
224
227
  }) : [], o.update(), d = !0, N(o.before_update), o.fragment = i ? i(o.ctx) : !1, t.target) {
225
228
  if (t.hydrate) {
226
- const h = gt(t.target);
229
+ const h = pt(t.target);
227
230
  o.fragment && o.fragment.l(h), h.forEach(C);
228
231
  } else
229
232
  o.fragment && o.fragment.c();
230
- t.intro && xt(e.$$.fragment), kt(e, t.target, t.anchor), b();
233
+ t.intro && kt(e.$$.fragment), Et(e, t.target, t.anchor), b();
231
234
  }
232
- v(c);
235
+ v(l);
233
236
  }
234
- let et;
235
- typeof HTMLElement == "function" && (et = class extends HTMLElement {
237
+ let nt;
238
+ typeof HTMLElement == "function" && (nt = class extends HTMLElement {
236
239
  constructor(t, n, i) {
237
240
  super();
238
241
  /** The Svelte component constructor */
@@ -273,20 +276,20 @@ typeof HTMLElement == "function" && (et = class extends HTMLElement {
273
276
  if (this.$$cn = !0, !this.$$c) {
274
277
  let t = function(s) {
275
278
  return () => {
276
- let l;
279
+ let c;
277
280
  return {
278
281
  c: function() {
279
- l = g("slot"), s !== "default" && f(l, "name", s);
282
+ c = g("slot"), s !== "default" && f(c, "name", s);
280
283
  },
281
284
  /**
282
285
  * @param {HTMLElement} target
283
286
  * @param {HTMLElement} [anchor]
284
287
  */
285
288
  m: function(o, d) {
286
- x(o, l, d);
289
+ x(o, c, d);
287
290
  },
288
291
  d: function(o) {
289
- o && C(l);
292
+ o && C(c);
290
293
  }
291
294
  };
292
295
  };
@@ -297,14 +300,14 @@ typeof HTMLElement == "function" && (et = class extends HTMLElement {
297
300
  for (const s of this.$$s)
298
301
  s in i && (n[s] = [t(s)]);
299
302
  for (const s of this.attributes) {
300
- const l = this.$$g_p(s.name);
301
- l in this.$$d || (this.$$d[l] = V(l, s.value, this.$$p_d, "toProp"));
303
+ const c = this.$$g_p(s.name);
304
+ c in this.$$d || (this.$$d[c] = M(c, s.value, this.$$p_d, "toProp"));
302
305
  }
303
306
  for (const s in this.$$p_d)
304
307
  !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
305
308
  this.$$c = new this.$$ctor({
306
309
  target: this.shadowRoot || this,
307
- props: q(D({}, this.$$d), {
310
+ props: W(T({}, this.$$d), {
308
311
  $$slots: n,
309
312
  $$scope: {
310
313
  ctx: []
@@ -315,21 +318,21 @@ typeof HTMLElement == "function" && (et = class extends HTMLElement {
315
318
  this.$$r = !0;
316
319
  for (const s in this.$$p_d)
317
320
  if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
318
- const l = V(
321
+ const c = M(
319
322
  s,
320
323
  this.$$d[s],
321
324
  this.$$p_d,
322
325
  "toAttribute"
323
326
  );
324
- l == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, l);
327
+ c == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, c);
325
328
  }
326
329
  this.$$r = !1;
327
330
  };
328
331
  this.$$c.$$.after_update.push(r), r();
329
332
  for (const s in this.$$l)
330
- for (const l of this.$$l[s]) {
331
- const u = this.$$c.$on(s, l);
332
- this.$$l_u.set(l, u);
333
+ for (const c of this.$$l[s]) {
334
+ const u = this.$$c.$on(s, c);
335
+ this.$$l_u.set(c, u);
333
336
  }
334
337
  this.$$l = {};
335
338
  }
@@ -339,7 +342,7 @@ typeof HTMLElement == "function" && (et = class extends HTMLElement {
339
342
  // and setting attributes through setAttribute etc, this is helpful
340
343
  attributeChangedCallback(t, n, i) {
341
344
  var r;
342
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = V(t, i, this.$$p_d, "toProp"), (r = this.$$c) == null || r.$set({ [t]: this.$$d[t] }));
345
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = M(t, i, this.$$p_d, "toProp"), (r = this.$$c) == null || r.$set({ [t]: this.$$d[t] }));
343
346
  }
344
347
  disconnectedCallback() {
345
348
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -352,7 +355,7 @@ typeof HTMLElement == "function" && (et = class extends HTMLElement {
352
355
  ) || t;
353
356
  }
354
357
  });
355
- function V(e, t, n, i) {
358
+ function M(e, t, n, i) {
356
359
  var s;
357
360
  const r = (s = n[e]) == null ? void 0 : s.type;
358
361
  if (t = r === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !n[e])
@@ -382,8 +385,8 @@ function V(e, t, n, i) {
382
385
  return t;
383
386
  }
384
387
  }
385
- function Vt(e, t, n, i, r, s) {
386
- let l = class extends et {
388
+ function jt(e, t, n, i, r, s) {
389
+ let c = class extends nt {
387
390
  constructor() {
388
391
  super(e, n, r), this.$$p_d = t;
389
392
  }
@@ -394,26 +397,26 @@ function Vt(e, t, n, i, r, s) {
394
397
  }
395
398
  };
396
399
  return Object.keys(t).forEach((u) => {
397
- Object.defineProperty(l.prototype, u, {
400
+ Object.defineProperty(c.prototype, u, {
398
401
  get() {
399
402
  return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
400
403
  },
401
- set(c) {
404
+ set(l) {
402
405
  var o;
403
- c = V(u, c, t), this.$$d[u] = c, (o = this.$$c) == null || o.$set({ [u]: c });
406
+ l = M(u, l, t), this.$$d[u] = l, (o = this.$$c) == null || o.$set({ [u]: l });
404
407
  }
405
408
  });
406
409
  }), i.forEach((u) => {
407
- Object.defineProperty(l.prototype, u, {
410
+ Object.defineProperty(c.prototype, u, {
408
411
  get() {
409
- var c;
410
- return (c = this.$$c) == null ? void 0 : c[u];
412
+ var l;
413
+ return (l = this.$$c) == null ? void 0 : l[u];
411
414
  }
412
415
  });
413
416
  }), e.element = /** @type {any} */
414
- l, l;
417
+ c, c;
415
418
  }
416
- class jt {
419
+ class Nt {
417
420
  constructor() {
418
421
  /**
419
422
  * ### PRIVATE API
@@ -434,7 +437,7 @@ class jt {
434
437
  }
435
438
  /** @returns {void} */
436
439
  $destroy() {
437
- Et(this, 1), this.$destroy = m;
440
+ Vt(this, 1), this.$destroy = p;
438
441
  }
439
442
  /**
440
443
  * @template {Extract<keyof Events, string>} K
@@ -443,8 +446,8 @@ class jt {
443
446
  * @returns {() => void}
444
447
  */
445
448
  $on(t, n) {
446
- if (!X(n))
447
- return m;
449
+ if (!Y(n))
450
+ return p;
448
451
  const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
449
452
  return i.push(n), () => {
450
453
  const r = i.indexOf(n);
@@ -456,170 +459,181 @@ class jt {
456
459
  * @returns {void}
457
460
  */
458
461
  $set(t) {
459
- this.$$set && !dt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
462
+ this.$$set && !at(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
460
463
  }
461
464
  }
462
- const Nt = "4";
463
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Nt);
464
- function Ot(e) {
465
- at(e, "svelte-crbnq2", ".CashierVideoWrapper{position:fixed;width:100%;height:100%;left:0;top:0;z-index:5;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}");
465
+ const Ot = "4";
466
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ot);
467
+ function At(e) {
468
+ ht(e, "svelte-1nj5tcr", ".CashierVideoWrapper{position:fixed;width:100%;height:calc(100% - 55px);left:0;top:55px;z-index:5;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoWrapperDesktop{height:calc(100% - 110px);top:110px}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}");
466
469
  }
467
- function Z(e) {
468
- let t, n, i, r, s, l, u, c = !/*desktopView*/
469
- e[2] && G(e), o = (
470
+ function G(e) {
471
+ let t, n, i, r, s, c, u, l = !/*desktopView*/
472
+ e[2] && K(e), o = (
470
473
  /*desktopView*/
471
- e[2] && K(e)
474
+ e[2] && Q(e)
472
475
  );
473
476
  return {
474
477
  c() {
475
- t = g("div"), c && c.c(), n = J(), i = g("div"), o && o.c(), r = J(), s = g("video"), l = g("source"), F(l.src, u = /*videosrc*/
476
- e[0]) || f(l, "src", u), s.autoplay = !0, s.controls = !0, f(s, "controlslist", "nodownload"), f(s, "disablepictureinpicture", ""), f(i, "class", "CashierVideo"), f(t, "class", "CashierVideoWrapper"), f(t, "part", "CustomStylingContainer");
478
+ t = g("div"), l && l.c(), n = F(), i = g("div"), o && o.c(), r = F(), s = g("video"), c = g("source"), q(c.src, u = /*videosrc*/
479
+ e[0]) || f(c, "src", u), s.autoplay = !0, s.controls = !0, f(s, "controlslist", "nodownload"), f(s, "disablepictureinpicture", ""), f(i, "class", "CashierVideo"), f(t, "class", "CashierVideoWrapper"), f(t, "part", "CustomStylingContainer"), J(
480
+ t,
481
+ "CashierVideoWrapperDesktop",
482
+ /*desktopView*/
483
+ e[2]
484
+ );
477
485
  },
478
486
  m(d, h) {
479
- x(d, t, h), c && c.m(t, null), _(t, n), _(t, i), o && o.m(i, null), _(i, r), _(i, s), _(s, l), e[10](t);
487
+ x(d, t, h), l && l.m(t, null), _(t, n), _(t, i), o && o.m(i, null), _(i, r), _(i, s), _(s, c), e[10](t);
480
488
  },
481
489
  p(d, h) {
482
490
  /*desktopView*/
483
- d[2] ? c && (c.d(1), c = null) : c ? c.p(d, h) : (c = G(d), c.c(), c.m(t, n)), /*desktopView*/
484
- d[2] ? o ? o.p(d, h) : (o = K(d), o.c(), o.m(i, r)) : o && (o.d(1), o = null), h & /*videosrc*/
485
- 1 && !F(l.src, u = /*videosrc*/
486
- d[0]) && f(l, "src", u);
491
+ d[2] ? l && (l.d(1), l = null) : l ? l.p(d, h) : (l = K(d), l.c(), l.m(t, n)), /*desktopView*/
492
+ d[2] ? o ? o.p(d, h) : (o = Q(d), o.c(), o.m(i, r)) : o && (o.d(1), o = null), h & /*videosrc*/
493
+ 1 && !q(c.src, u = /*videosrc*/
494
+ d[0]) && f(c, "src", u), h & /*desktopView*/
495
+ 4 && J(
496
+ t,
497
+ "CashierVideoWrapperDesktop",
498
+ /*desktopView*/
499
+ d[2]
500
+ );
487
501
  },
488
502
  d(d) {
489
- d && C(t), c && c.d(), o && o.d(), e[10](null);
503
+ d && C(t), l && l.d(), o && o.d(), e[10](null);
490
504
  }
491
505
  };
492
506
  }
493
- function G(e) {
507
+ function K(e) {
494
508
  let t, n, i, r, s;
495
509
  return {
496
510
  c() {
497
511
  t = g("div"), n = j("svg"), i = j("path"), f(i, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), f(i, "fill", "#111111"), f(n, "xmlns", "http://www.w3.org/2000/svg"), f(n, "width", "13"), f(n, "height", "13"), f(n, "viewBox", "0 0 13 13"), f(n, "fill", "none"), f(t, "class", "CashierVideoHeader");
498
512
  },
499
- m(l, u) {
500
- x(l, t, u), _(t, n), _(n, i), r || (s = tt(
513
+ m(c, u) {
514
+ x(c, t, u), _(t, n), _(n, i), r || (s = et(
501
515
  n,
502
516
  "click",
503
517
  /*click_handler*/
504
518
  e[8]
505
519
  ), r = !0);
506
520
  },
507
- p: m,
508
- d(l) {
509
- l && C(t), r = !1, s();
521
+ p,
522
+ d(c) {
523
+ c && C(t), r = !1, s();
510
524
  }
511
525
  };
512
526
  }
513
- function K(e) {
527
+ function Q(e) {
514
528
  let t, n, i, r;
515
529
  return {
516
530
  c() {
517
531
  t = j("svg"), n = j("path"), f(n, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), f(n, "fill", "#111111"), f(t, "xmlns", "http://www.w3.org/2000/svg"), f(t, "width", "13"), f(t, "height", "13"), f(t, "viewBox", "0 0 13 13"), f(t, "fill", "none");
518
532
  },
519
- m(s, l) {
520
- x(s, t, l), _(t, n), i || (r = tt(
533
+ m(s, c) {
534
+ x(s, t, c), _(t, n), i || (r = et(
521
535
  t,
522
536
  "click",
523
537
  /*click_handler_1*/
524
538
  e[9]
525
539
  ), i = !0);
526
540
  },
527
- p: m,
541
+ p,
528
542
  d(s) {
529
543
  s && C(t), i = !1, r();
530
544
  }
531
545
  };
532
546
  }
533
- function At(e) {
547
+ function Ht(e) {
534
548
  let t, n = (
535
549
  /*show*/
536
- e[3] && Z(e)
550
+ e[3] && G(e)
537
551
  );
538
552
  return {
539
553
  c() {
540
- n && n.c(), t = _t();
554
+ n && n.c(), t = gt();
541
555
  },
542
556
  m(i, r) {
543
557
  n && n.m(i, r), x(i, t, r);
544
558
  },
545
559
  p(i, [r]) {
546
560
  /*show*/
547
- i[3] ? n ? n.p(i, r) : (n = Z(i), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
561
+ i[3] ? n ? n.p(i, r) : (n = G(i), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
548
562
  },
549
- i: m,
550
- o: m,
563
+ i: p,
564
+ o: p,
551
565
  d(i) {
552
566
  i && C(t), n && n.d(i);
553
567
  }
554
568
  };
555
569
  }
556
- function Ht(e, t, n) {
557
- let { clientstyling: i = "" } = t, { clientstylingurl: r = "" } = t, { ismobileview: s } = t, { videosrc: l } = t, u = !0, c = !1, o;
570
+ function Bt(e, t, n) {
571
+ let { clientstyling: i = "" } = t, { clientstylingurl: r = "" } = t, { ismobileview: s } = t, { videosrc: c } = t, u = !0, l = !1, o;
558
572
  const d = () => {
559
- n(3, c = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
573
+ n(3, l = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
560
574
  }, h = (a) => {
561
- a.data.type == "ShowCashierVideoModal" && (n(3, c = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), a.data.type == "HideCashierVideoModal" && d();
575
+ a.data.type == "ShowCashierVideoModal" && (n(3, l = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), a.data.type == "HideCashierVideoModal" && d();
562
576
  }, k = () => {
563
577
  n(2, u = s === "false");
564
578
  }, E = () => {
565
579
  let a = document.createElement("style");
566
580
  a.innerHTML = i, o.appendChild(a);
567
- }, S = () => {
568
- let a = new URL(r), R = document.createElement("style");
581
+ }, V = () => {
582
+ let a = new URL(r), z = document.createElement("style");
569
583
  fetch(a.href).then((O) => O.text()).then((O) => {
570
- R.innerHTML = O, setTimeout(
584
+ z.innerHTML = O, setTimeout(
571
585
  () => {
572
- o.appendChild(R);
586
+ o.appendChild(z);
573
587
  },
574
588
  1
575
589
  );
576
590
  });
577
591
  };
578
- wt(() => (window.addEventListener("message", h, !1), () => {
592
+ bt(() => (window.addEventListener("message", h, !1), () => {
579
593
  window.removeEventListener("message", h);
580
594
  }));
581
- const nt = () => d(), it = () => d();
582
- function st(a) {
595
+ const it = () => d(), st = () => d();
596
+ function rt(a) {
583
597
  B[a ? "unshift" : "push"](() => {
584
598
  o = a, n(1, o);
585
599
  });
586
600
  }
587
601
  return e.$$set = (a) => {
588
- "clientstyling" in a && n(5, i = a.clientstyling), "clientstylingurl" in a && n(6, r = a.clientstylingurl), "ismobileview" in a && n(7, s = a.ismobileview), "videosrc" in a && n(0, l = a.videosrc);
602
+ "clientstyling" in a && n(5, i = a.clientstyling), "clientstylingurl" in a && n(6, r = a.clientstylingurl), "ismobileview" in a && n(7, s = a.ismobileview), "videosrc" in a && n(0, c = a.videosrc);
589
603
  }, e.$$.update = () => {
590
604
  e.$$.dirty & /*ismobileview*/
591
605
  128 && s && k(), e.$$.dirty & /*clientstyling, customStylingContainer*/
592
606
  34 && i && o && E(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
593
- 66 && r && o && S();
607
+ 66 && r && o && V();
594
608
  }, [
595
- l,
609
+ c,
596
610
  o,
597
611
  u,
598
- c,
612
+ l,
599
613
  d,
600
614
  i,
601
615
  r,
602
616
  s,
603
- nt,
604
617
  it,
605
- st
618
+ st,
619
+ rt
606
620
  ];
607
621
  }
608
- class Bt extends jt {
622
+ class Pt extends Nt {
609
623
  constructor(t) {
610
624
  super(), Mt(
611
625
  this,
612
626
  t,
627
+ Bt,
613
628
  Ht,
614
- At,
615
- ft,
629
+ dt,
616
630
  {
617
631
  clientstyling: 5,
618
632
  clientstylingurl: 6,
619
633
  ismobileview: 7,
620
634
  videosrc: 0
621
635
  },
622
- Ot
636
+ At
623
637
  );
624
638
  }
625
639
  get clientstyling() {
@@ -647,7 +661,7 @@ class Bt extends jt {
647
661
  this.$$set({ videosrc: t }), b();
648
662
  }
649
663
  }
650
- Vt(Bt, { clientstyling: {}, clientstylingurl: {}, ismobileview: {}, videosrc: {} }, [], [], !0);
664
+ jt(Pt, { clientstyling: {}, clientstylingurl: {}, ismobileview: {}, videosrc: {} }, [], [], !0);
651
665
  export {
652
- Bt as default
666
+ Pt as default
653
667
  };
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierVideoModal-B-EqUnTa.cjs")).then(({default:t})=>{!customElements.get("cashier-video-modal")&&customElements.define("cashier-video-modal",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierVideoModal-CriB4Qhl.cjs")).then(({default:t})=>{!customElements.get("cashier-video-modal")&&customElements.define("cashier-video-modal",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CashierVideoModal-BSe6pvaT.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CashierVideoModal-DzdA_jCG.js").then(({ default: t }) => {
14
14
  !customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", t.element);
15
15
  });
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-video-modal",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "type": "module",
5
5
  "main": "es2015/cashier-video-modal.cjs",
6
6
  "module": "es2015/cashier-video-modal.js",
@@ -1 +0,0 @@
1
- "use strict";var ot=Object.defineProperty,lt=Object.defineProperties;var ct=Object.getOwnPropertyDescriptors;var R=Object.getOwnPropertySymbols;var ut=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable;var A=(e,t,n)=>t in e?ot(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,D=(e,t)=>{for(var n in t||(t={}))ut.call(t,n)&&A(e,n,t[n]);if(R)for(var n of R(t))ft.call(t,n)&&A(e,n,t[n]);return e},q=(e,t)=>lt(e,ct(t));var $=(e,t,n)=>A(e,typeof t!="symbol"?t+"":t,n);var I=(e,t,n)=>new Promise((i,r)=>{var s=l=>{try{u(n.next(l))}catch(o){r(o)}},c=l=>{try{u(n.throw(l))}catch(o){r(o)}},u=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,c);u((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function m(){}function Q(e){return e()}function U(){return Object.create(null)}function V(e){e.forEach(Q)}function X(e){return typeof e=="function"}function dt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let M;function F(e,t){return e===t?!0:(M||(M=document.createElement("a")),M.href=t,e===M.href)}function at(e){return Object.keys(e).length===0}function _(e,t){e.appendChild(t)}function ht(e,t,n){const i=$t(e);if(!i.getElementById(t)){const r=g("style");r.id=t,r.textContent=n,_t(i,r)}}function $t(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function _t(e,t){return _(e.head||e,t),t.sheet}function x(e,t,n){e.insertBefore(t,n||null)}function C(e){e.parentNode&&e.parentNode.removeChild(e)}function g(e){return document.createElement(e)}function O(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Y(e){return document.createTextNode(e)}function J(){return Y(" ")}function gt(){return Y("")}function tt(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function f(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function mt(e){return Array.from(e.childNodes)}function pt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let L;function v(e){L=e}function bt(){if(!L)throw new Error("Function called outside component initialization");return L}function wt(e){bt().$$.on_mount.push(e)}const b=[],P=[];let y=[];const W=[],yt=Promise.resolve();let B=!1;function Ct(){B||(B=!0,yt.then(w))}function T(e){y.push(e)}const H=new Set;let p=0;function w(){if(p!==0)return;const e=L;do{try{for(;p<b.length;){const t=b[p];p++,v(t),vt(t.$$)}}catch(t){throw b.length=0,p=0,t}for(v(null),b.length=0,p=0;P.length;)P.pop()();for(let t=0;t<y.length;t+=1){const n=y[t];H.has(n)||(H.add(n),n())}y.length=0}while(b.length);for(;W.length;)W.pop()();B=!1,H.clear(),v(e)}function vt(e){if(e.fragment!==null){e.update(),V(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(T)}}function Lt(e){const t=[],n=[];y.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),y=t}const xt=new Set;function kt(e,t){e&&e.i&&(xt.delete(e),e.i(t))}function Et(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),T(()=>{const s=e.$$.on_mount.map(Q).filter(X);e.$$.on_destroy?e.$$.on_destroy.push(...s):V(s),e.$$.on_mount=[]}),r.forEach(T)}function St(e,t){const n=e.$$;n.fragment!==null&&(Lt(n.after_update),V(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Mt(e,t){e.$$.dirty[0]===-1&&(b.push(e),Ct(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function jt(e,t,n,i,r,s,c=null,u=[-1]){const l=L;v(e);const o=e.$$={fragment:null,ctx:[],props:s,update:m,not_equal:r,bound:U(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:U(),dirty:u,skip_bound:!1,root:t.target||l.$$.root};c&&c(o.root);let d=!1;if(o.ctx=n?n(e,t.props||{},(h,k,...E)=>{const S=E.length?E[0]:k;return o.ctx&&r(o.ctx[h],o.ctx[h]=S)&&(!o.skip_bound&&o.bound[h]&&o.bound[h](S),d&&Mt(e,h)),k}):[],o.update(),d=!0,V(o.before_update),o.fragment=i?i(o.ctx):!1,t.target){if(t.hydrate){const h=mt(t.target);o.fragment&&o.fragment.l(h),h.forEach(C)}else o.fragment&&o.fragment.c();t.intro&&kt(e.$$.fragment),Et(e,t.target,t.anchor),w()}v(l)}let et;typeof HTMLElement=="function"&&(et=class extends HTMLElement{constructor(t,n,i){super();$(this,"$$ctor");$(this,"$$s");$(this,"$$c");$(this,"$$cn",!1);$(this,"$$d",{});$(this,"$$r",!1);$(this,"$$p_d",{});$(this,"$$l",{});$(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}connectedCallback(){return I(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let c;return{c:function(){c=g("slot"),s!=="default"&&f(c,"name",s)},m:function(o,d){x(o,c,d)},d:function(o){o&&C(c)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=pt(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const c=this.$$g_p(s.name);c in this.$$d||(this.$$d[c]=j(c,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:q(D({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const c=j(s,this.$$d[s],this.$$p_d,"toAttribute");c==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,c)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const c of this.$$l[s]){const u=this.$$c.$on(s,c);this.$$l_u.set(c,u)}this.$$l={}}})}attributeChangedCallback(t,n,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=j(t,i,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function j(e,t,n,i){var s;const r=(s=n[e])==null?void 0:s.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ot(e,t,n,i,r,s){let c=class extends et{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(c.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(l){var o;l=j(u,l,t),this.$$d[u]=l,(o=this.$$c)==null||o.$set({[u]:l})}})}),i.forEach(u=>{Object.defineProperty(c.prototype,u,{get(){var l;return(l=this.$$c)==null?void 0:l[u]}})}),e.element=c,c}class Vt{constructor(){$(this,"$$");$(this,"$$set")}$destroy(){St(this,1),this.$destroy=m}$on(t,n){if(!X(n))return m;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!at(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Nt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Nt);function At(e){ht(e,"svelte-crbnq2",".CashierVideoWrapper{position:fixed;width:100%;height:100%;left:0;top:0;z-index:5;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}")}function Z(e){let t,n,i,r,s,c,u,l=!e[2]&&G(e),o=e[2]&&K(e);return{c(){t=g("div"),l&&l.c(),n=J(),i=g("div"),o&&o.c(),r=J(),s=g("video"),c=g("source"),F(c.src,u=e[0])||f(c,"src",u),s.autoplay=!0,s.controls=!0,f(s,"controlslist","nodownload"),f(s,"disablepictureinpicture",""),f(i,"class","CashierVideo"),f(t,"class","CashierVideoWrapper"),f(t,"part","CustomStylingContainer")},m(d,h){x(d,t,h),l&&l.m(t,null),_(t,n),_(t,i),o&&o.m(i,null),_(i,r),_(i,s),_(s,c),e[10](t)},p(d,h){d[2]?l&&(l.d(1),l=null):l?l.p(d,h):(l=G(d),l.c(),l.m(t,n)),d[2]?o?o.p(d,h):(o=K(d),o.c(),o.m(i,r)):o&&(o.d(1),o=null),h&1&&!F(c.src,u=d[0])&&f(c,"src",u)},d(d){d&&C(t),l&&l.d(),o&&o.d(),e[10](null)}}}function G(e){let t,n,i,r,s;return{c(){t=g("div"),n=O("svg"),i=O("path"),f(i,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),f(i,"fill","#111111"),f(n,"xmlns","http://www.w3.org/2000/svg"),f(n,"width","13"),f(n,"height","13"),f(n,"viewBox","0 0 13 13"),f(n,"fill","none"),f(t,"class","CashierVideoHeader")},m(c,u){x(c,t,u),_(t,n),_(n,i),r||(s=tt(n,"click",e[8]),r=!0)},p:m,d(c){c&&C(t),r=!1,s()}}}function K(e){let t,n,i,r;return{c(){t=O("svg"),n=O("path"),f(n,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),f(n,"fill","#111111"),f(t,"xmlns","http://www.w3.org/2000/svg"),f(t,"width","13"),f(t,"height","13"),f(t,"viewBox","0 0 13 13"),f(t,"fill","none")},m(s,c){x(s,t,c),_(t,n),i||(r=tt(t,"click",e[9]),i=!0)},p:m,d(s){s&&C(t),i=!1,r()}}}function Ht(e){let t,n=e[3]&&Z(e);return{c(){n&&n.c(),t=gt()},m(i,r){n&&n.m(i,r),x(i,t,r)},p(i,[r]){i[3]?n?n.p(i,r):(n=Z(i),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:m,o:m,d(i){i&&C(t),n&&n.d(i)}}}function Pt(e,t,n){let{clientstyling:i=""}=t,{clientstylingurl:r=""}=t,{ismobileview:s}=t,{videosrc:c}=t,u=!0,l=!1,o;const d=()=>{n(3,l=!1),window.postMessage({type:"ClosedCashierVideoModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},h=a=>{a.data.type=="ShowCashierVideoModal"&&(n(3,l=!0),window.postMessage({type:"DisableScroll"},window.location.href)),a.data.type=="HideCashierVideoModal"&&d()},k=()=>{n(2,u=s==="false")},E=()=>{let a=document.createElement("style");a.innerHTML=i,o.appendChild(a)},S=()=>{let a=new URL(r),z=document.createElement("style");fetch(a.href).then(N=>N.text()).then(N=>{z.innerHTML=N,setTimeout(()=>{o.appendChild(z)},1)})};wt(()=>(window.addEventListener("message",h,!1),()=>{window.removeEventListener("message",h)}));const it=()=>d(),st=()=>d();function rt(a){P[a?"unshift":"push"](()=>{o=a,n(1,o)})}return e.$$set=a=>{"clientstyling"in a&&n(5,i=a.clientstyling),"clientstylingurl"in a&&n(6,r=a.clientstylingurl),"ismobileview"in a&&n(7,s=a.ismobileview),"videosrc"in a&&n(0,c=a.videosrc)},e.$$.update=()=>{e.$$.dirty&128&&s&&k(),e.$$.dirty&34&&i&&o&&E(),e.$$.dirty&66&&r&&o&&S()},[c,o,u,l,d,i,r,s,it,st,rt]}class nt extends Vt{constructor(t){super(),jt(this,t,Pt,Ht,dt,{clientstyling:5,clientstylingurl:6,ismobileview:7,videosrc:0},At)}get clientstyling(){return this.$$.ctx[5]}set clientstyling(t){this.$$set({clientstyling:t}),w()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),w()}get ismobileview(){return this.$$.ctx[7]}set ismobileview(t){this.$$set({ismobileview:t}),w()}get videosrc(){return this.$$.ctx[0]}set videosrc(t){this.$$set({videosrc:t}),w()}}Ot(nt,{clientstyling:{},clientstylingurl:{},ismobileview:{},videosrc:{}},[],[],!0);exports.default=nt;