@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.
- package/components/CashierVideoModal-CriB4Qhl.cjs +1 -0
- package/components/{CashierVideoModal-BSe6pvaT.js → CashierVideoModal-DzdA_jCG.js} +174 -160
- package/es2015/cashier-video-modal.cjs +1 -1
- package/es2015/cashier-video-modal.js +1 -1
- package/package.json +1 -1
- package/components/CashierVideoModal-B-EqUnTa.cjs +0 -1
|
@@ -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
|
|
1
|
+
var ot = Object.defineProperty, lt = Object.defineProperties;
|
|
2
2
|
var ct = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var A = (e, t, n) => t in e ?
|
|
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
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
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
|
-
},
|
|
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 = (
|
|
15
|
+
var s = (l) => {
|
|
16
16
|
try {
|
|
17
|
-
u(n.next(
|
|
17
|
+
u(n.next(l));
|
|
18
18
|
} catch (o) {
|
|
19
19
|
r(o);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, c = (l) => {
|
|
22
22
|
try {
|
|
23
|
-
u(n.throw(
|
|
23
|
+
u(n.throw(l));
|
|
24
24
|
} catch (o) {
|
|
25
25
|
r(o);
|
|
26
26
|
}
|
|
27
|
-
}, u = (
|
|
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
|
|
30
|
+
function p() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
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(
|
|
39
|
+
e.forEach(X);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Y(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
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
|
|
48
|
-
function
|
|
49
|
-
return e === t ? !0 : (
|
|
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
|
|
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
|
|
58
|
-
const i =
|
|
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,
|
|
61
|
+
r.id = t, r.textContent = n, _t(i, r);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function
|
|
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
|
|
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
|
|
92
|
+
function tt(e) {
|
|
93
93
|
return document.createTextNode(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
return
|
|
95
|
+
function F() {
|
|
96
|
+
return tt(" ");
|
|
97
97
|
}
|
|
98
|
-
function
|
|
99
|
-
return
|
|
98
|
+
function gt() {
|
|
99
|
+
return tt("");
|
|
100
100
|
}
|
|
101
|
-
function
|
|
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
|
|
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
|
|
126
|
+
function wt() {
|
|
124
127
|
if (!L) throw new Error("Function called outside component initialization");
|
|
125
128
|
return L;
|
|
126
129
|
}
|
|
127
|
-
function
|
|
128
|
-
|
|
130
|
+
function bt(e) {
|
|
131
|
+
wt().$$.on_mount.push(e);
|
|
129
132
|
}
|
|
130
133
|
const w = [], B = [];
|
|
131
134
|
let y = [];
|
|
132
|
-
const
|
|
135
|
+
const Z = [], yt = /* @__PURE__ */ Promise.resolve();
|
|
133
136
|
let P = !1;
|
|
134
|
-
function
|
|
135
|
-
P || (P = !0,
|
|
137
|
+
function Ct() {
|
|
138
|
+
P || (P = !0, yt.then(b));
|
|
136
139
|
}
|
|
137
|
-
function
|
|
140
|
+
function D(e) {
|
|
138
141
|
y.push(e);
|
|
139
142
|
}
|
|
140
143
|
const H = /* @__PURE__ */ new Set();
|
|
141
|
-
let
|
|
144
|
+
let m = 0;
|
|
142
145
|
function b() {
|
|
143
|
-
if (
|
|
146
|
+
if (m !== 0)
|
|
144
147
|
return;
|
|
145
148
|
const e = L;
|
|
146
149
|
do {
|
|
147
150
|
try {
|
|
148
|
-
for (;
|
|
149
|
-
const t = w[
|
|
150
|
-
|
|
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,
|
|
156
|
+
throw w.length = 0, m = 0, t;
|
|
154
157
|
}
|
|
155
|
-
for (v(null), w.length = 0,
|
|
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 (;
|
|
163
|
-
|
|
165
|
+
for (; Z.length; )
|
|
166
|
+
Z.pop()();
|
|
164
167
|
P = !1, H.clear(), v(e);
|
|
165
168
|
}
|
|
166
|
-
function
|
|
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(
|
|
173
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(D);
|
|
171
174
|
}
|
|
172
175
|
}
|
|
173
|
-
function
|
|
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
|
|
178
|
-
function
|
|
179
|
-
e && e.i && (
|
|
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
|
|
184
|
+
function Et(e, t, n) {
|
|
182
185
|
const { fragment: i, after_update: r } = e.$$;
|
|
183
|
-
i && i.m(t, n),
|
|
184
|
-
const s = e.$$.on_mount.map(
|
|
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(
|
|
189
|
+
}), r.forEach(D);
|
|
187
190
|
}
|
|
188
|
-
function
|
|
191
|
+
function Vt(e, t) {
|
|
189
192
|
const n = e.$$;
|
|
190
|
-
n.fragment !== null && (
|
|
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),
|
|
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,
|
|
196
|
-
const
|
|
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:
|
|
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 || (
|
|
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 ||
|
|
220
|
+
root: t.target || l.$$.root
|
|
218
221
|
};
|
|
219
|
-
|
|
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
|
|
223
|
-
return o.ctx && r(o.ctx[h], o.ctx[h] =
|
|
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 =
|
|
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 &&
|
|
233
|
+
t.intro && kt(e.$$.fragment), Et(e, t.target, t.anchor), b();
|
|
231
234
|
}
|
|
232
|
-
v(
|
|
235
|
+
v(l);
|
|
233
236
|
}
|
|
234
|
-
let
|
|
235
|
-
typeof HTMLElement == "function" && (
|
|
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
|
|
279
|
+
let c;
|
|
277
280
|
return {
|
|
278
281
|
c: function() {
|
|
279
|
-
|
|
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,
|
|
289
|
+
x(o, c, d);
|
|
287
290
|
},
|
|
288
291
|
d: function(o) {
|
|
289
|
-
o && C(
|
|
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
|
|
301
|
-
|
|
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:
|
|
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
|
|
321
|
+
const c = M(
|
|
319
322
|
s,
|
|
320
323
|
this.$$d[s],
|
|
321
324
|
this.$$p_d,
|
|
322
325
|
"toAttribute"
|
|
323
326
|
);
|
|
324
|
-
|
|
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
|
|
331
|
-
const u = this.$$c.$on(s,
|
|
332
|
-
this.$$l_u.set(
|
|
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] =
|
|
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
|
|
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
|
|
386
|
-
let
|
|
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(
|
|
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(
|
|
404
|
+
set(l) {
|
|
402
405
|
var o;
|
|
403
|
-
|
|
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(
|
|
410
|
+
Object.defineProperty(c.prototype, u, {
|
|
408
411
|
get() {
|
|
409
|
-
var
|
|
410
|
-
return (
|
|
412
|
+
var l;
|
|
413
|
+
return (l = this.$$c) == null ? void 0 : l[u];
|
|
411
414
|
}
|
|
412
415
|
});
|
|
413
416
|
}), e.element = /** @type {any} */
|
|
414
|
-
|
|
417
|
+
c, c;
|
|
415
418
|
}
|
|
416
|
-
class
|
|
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
|
-
|
|
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 (!
|
|
447
|
-
return
|
|
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 && !
|
|
462
|
+
this.$$set && !at(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
460
463
|
}
|
|
461
464
|
}
|
|
462
|
-
const
|
|
463
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
464
|
-
function
|
|
465
|
-
|
|
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
|
|
468
|
-
let t, n, i, r, s,
|
|
469
|
-
e[2] &&
|
|
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] &&
|
|
474
|
+
e[2] && Q(e)
|
|
472
475
|
);
|
|
473
476
|
return {
|
|
474
477
|
c() {
|
|
475
|
-
t = g("div"),
|
|
476
|
-
e[0]) || f(
|
|
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),
|
|
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] ?
|
|
484
|
-
d[2] ? o ? o.p(d, h) : (o =
|
|
485
|
-
1 && !
|
|
486
|
-
d[0]) && f(
|
|
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),
|
|
503
|
+
d && C(t), l && l.d(), o && o.d(), e[10](null);
|
|
490
504
|
}
|
|
491
505
|
};
|
|
492
506
|
}
|
|
493
|
-
function
|
|
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(
|
|
500
|
-
x(
|
|
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
|
|
508
|
-
d(
|
|
509
|
-
|
|
521
|
+
p,
|
|
522
|
+
d(c) {
|
|
523
|
+
c && C(t), r = !1, s();
|
|
510
524
|
}
|
|
511
525
|
};
|
|
512
526
|
}
|
|
513
|
-
function
|
|
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,
|
|
520
|
-
x(s, t,
|
|
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
|
|
541
|
+
p,
|
|
528
542
|
d(s) {
|
|
529
543
|
s && C(t), i = !1, r();
|
|
530
544
|
}
|
|
531
545
|
};
|
|
532
546
|
}
|
|
533
|
-
function
|
|
547
|
+
function Ht(e) {
|
|
534
548
|
let t, n = (
|
|
535
549
|
/*show*/
|
|
536
|
-
e[3] &&
|
|
550
|
+
e[3] && G(e)
|
|
537
551
|
);
|
|
538
552
|
return {
|
|
539
553
|
c() {
|
|
540
|
-
n && n.c(), 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 =
|
|
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:
|
|
550
|
-
o:
|
|
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
|
|
557
|
-
let { clientstyling: i = "" } = t, { clientstylingurl: r = "" } = t, { ismobileview: s } = t, { videosrc:
|
|
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,
|
|
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,
|
|
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
|
-
},
|
|
568
|
-
let a = new URL(r),
|
|
581
|
+
}, V = () => {
|
|
582
|
+
let a = new URL(r), z = document.createElement("style");
|
|
569
583
|
fetch(a.href).then((O) => O.text()).then((O) => {
|
|
570
|
-
|
|
584
|
+
z.innerHTML = O, setTimeout(
|
|
571
585
|
() => {
|
|
572
|
-
o.appendChild(
|
|
586
|
+
o.appendChild(z);
|
|
573
587
|
},
|
|
574
588
|
1
|
|
575
589
|
);
|
|
576
590
|
});
|
|
577
591
|
};
|
|
578
|
-
|
|
592
|
+
bt(() => (window.addEventListener("message", h, !1), () => {
|
|
579
593
|
window.removeEventListener("message", h);
|
|
580
594
|
}));
|
|
581
|
-
const
|
|
582
|
-
function
|
|
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,
|
|
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 &&
|
|
607
|
+
66 && r && o && V();
|
|
594
608
|
}, [
|
|
595
|
-
|
|
609
|
+
c,
|
|
596
610
|
o,
|
|
597
611
|
u,
|
|
598
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
664
|
+
jt(Pt, { clientstyling: {}, clientstylingurl: {}, ismobileview: {}, videosrc: {} }, [], [], !0);
|
|
651
665
|
export {
|
|
652
|
-
|
|
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-
|
|
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-
|
|
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 +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;
|