@everymatrix/cashier-video-modal 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
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;
@@ -0,0 +1,653 @@
1
+ var rt = Object.defineProperty, ot = Object.defineProperties;
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) => {
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]);
11
+ return e;
12
+ }, q = (e, t) => ot(e, ct(t));
13
+ var $ = (e, t, n) => A(e, typeof t != "symbol" ? t + "" : t, n);
14
+ var I = (e, t, n) => new Promise((i, r) => {
15
+ var s = (c) => {
16
+ try {
17
+ u(n.next(c));
18
+ } catch (o) {
19
+ r(o);
20
+ }
21
+ }, l = (c) => {
22
+ try {
23
+ u(n.throw(c));
24
+ } catch (o) {
25
+ r(o);
26
+ }
27
+ }, u = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(s, l);
28
+ u((n = n.apply(e, t)).next());
29
+ });
30
+ function m() {
31
+ }
32
+ function Q(e) {
33
+ return e();
34
+ }
35
+ function U() {
36
+ return /* @__PURE__ */ Object.create(null);
37
+ }
38
+ function N(e) {
39
+ e.forEach(Q);
40
+ }
41
+ function X(e) {
42
+ return typeof e == "function";
43
+ }
44
+ function ft(e, t) {
45
+ return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
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);
50
+ }
51
+ function dt(e) {
52
+ return Object.keys(e).length === 0;
53
+ }
54
+ function _(e, t) {
55
+ e.appendChild(t);
56
+ }
57
+ function at(e, t, n) {
58
+ const i = ht(e);
59
+ if (!i.getElementById(t)) {
60
+ const r = g("style");
61
+ r.id = t, r.textContent = n, $t(i, r);
62
+ }
63
+ }
64
+ function ht(e) {
65
+ if (!e) return document;
66
+ const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
67
+ return t && /** @type {ShadowRoot} */
68
+ t.host ? (
69
+ /** @type {ShadowRoot} */
70
+ t
71
+ ) : e.ownerDocument;
72
+ }
73
+ function $t(e, t) {
74
+ return _(
75
+ /** @type {Document} */
76
+ e.head || e,
77
+ t
78
+ ), t.sheet;
79
+ }
80
+ function x(e, t, n) {
81
+ e.insertBefore(t, n || null);
82
+ }
83
+ function C(e) {
84
+ e.parentNode && e.parentNode.removeChild(e);
85
+ }
86
+ function g(e) {
87
+ return document.createElement(e);
88
+ }
89
+ function j(e) {
90
+ return document.createElementNS("http://www.w3.org/2000/svg", e);
91
+ }
92
+ function Y(e) {
93
+ return document.createTextNode(e);
94
+ }
95
+ function J() {
96
+ return Y(" ");
97
+ }
98
+ function _t() {
99
+ return Y("");
100
+ }
101
+ function tt(e, t, n, i) {
102
+ return e.addEventListener(t, n, i), () => e.removeEventListener(t, n, i);
103
+ }
104
+ function f(e, t, n) {
105
+ n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
106
+ }
107
+ function gt(e) {
108
+ return Array.from(e.childNodes);
109
+ }
110
+ function mt(e) {
111
+ const t = {};
112
+ return e.childNodes.forEach(
113
+ /** @param {Element} node */
114
+ (n) => {
115
+ t[n.slot || "default"] = !0;
116
+ }
117
+ ), t;
118
+ }
119
+ let L;
120
+ function v(e) {
121
+ L = e;
122
+ }
123
+ function pt() {
124
+ if (!L) throw new Error("Function called outside component initialization");
125
+ return L;
126
+ }
127
+ function wt(e) {
128
+ pt().$$.on_mount.push(e);
129
+ }
130
+ const w = [], B = [];
131
+ let y = [];
132
+ const W = [], bt = /* @__PURE__ */ Promise.resolve();
133
+ let P = !1;
134
+ function yt() {
135
+ P || (P = !0, bt.then(b));
136
+ }
137
+ function z(e) {
138
+ y.push(e);
139
+ }
140
+ const H = /* @__PURE__ */ new Set();
141
+ let p = 0;
142
+ function b() {
143
+ if (p !== 0)
144
+ return;
145
+ const e = L;
146
+ do {
147
+ try {
148
+ for (; p < w.length; ) {
149
+ const t = w[p];
150
+ p++, v(t), Ct(t.$$);
151
+ }
152
+ } catch (t) {
153
+ throw w.length = 0, p = 0, t;
154
+ }
155
+ for (v(null), w.length = 0, p = 0; B.length; ) B.pop()();
156
+ for (let t = 0; t < y.length; t += 1) {
157
+ const n = y[t];
158
+ H.has(n) || (H.add(n), n());
159
+ }
160
+ y.length = 0;
161
+ } while (w.length);
162
+ for (; W.length; )
163
+ W.pop()();
164
+ P = !1, H.clear(), v(e);
165
+ }
166
+ function Ct(e) {
167
+ if (e.fragment !== null) {
168
+ e.update(), N(e.before_update);
169
+ const t = e.dirty;
170
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(z);
171
+ }
172
+ }
173
+ function vt(e) {
174
+ const t = [], n = [];
175
+ y.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : n.push(i)), n.forEach((i) => i()), y = t;
176
+ }
177
+ const Lt = /* @__PURE__ */ new Set();
178
+ function xt(e, t) {
179
+ e && e.i && (Lt.delete(e), e.i(t));
180
+ }
181
+ function kt(e, t, n) {
182
+ const { fragment: i, after_update: r } = e.$$;
183
+ i && i.m(t, n), z(() => {
184
+ const s = e.$$.on_mount.map(Q).filter(X);
185
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : N(s), e.$$.on_mount = [];
186
+ }), r.forEach(z);
187
+ }
188
+ function Et(e, t) {
189
+ 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 = []);
191
+ }
192
+ 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;
194
+ }
195
+ function Mt(e, t, n, i, r, s, l = null, u = [-1]) {
196
+ const c = L;
197
+ v(e);
198
+ const o = e.$$ = {
199
+ fragment: null,
200
+ ctx: [],
201
+ // state
202
+ props: s,
203
+ update: m,
204
+ not_equal: r,
205
+ bound: U(),
206
+ // lifecycle
207
+ on_mount: [],
208
+ on_destroy: [],
209
+ on_disconnect: [],
210
+ before_update: [],
211
+ after_update: [],
212
+ context: new Map(t.context || (c ? c.$$.context : [])),
213
+ // everything else
214
+ callbacks: U(),
215
+ dirty: u,
216
+ skip_bound: !1,
217
+ root: t.target || c.$$.root
218
+ };
219
+ l && l(o.root);
220
+ let d = !1;
221
+ 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;
224
+ }) : [], o.update(), d = !0, N(o.before_update), o.fragment = i ? i(o.ctx) : !1, t.target) {
225
+ if (t.hydrate) {
226
+ const h = gt(t.target);
227
+ o.fragment && o.fragment.l(h), h.forEach(C);
228
+ } else
229
+ o.fragment && o.fragment.c();
230
+ t.intro && xt(e.$$.fragment), kt(e, t.target, t.anchor), b();
231
+ }
232
+ v(c);
233
+ }
234
+ let et;
235
+ typeof HTMLElement == "function" && (et = class extends HTMLElement {
236
+ constructor(t, n, i) {
237
+ super();
238
+ /** The Svelte component constructor */
239
+ $(this, "$$ctor");
240
+ /** Slots */
241
+ $(this, "$$s");
242
+ /** The Svelte component instance */
243
+ $(this, "$$c");
244
+ /** Whether or not the custom element is connected */
245
+ $(this, "$$cn", !1);
246
+ /** Component props data */
247
+ $(this, "$$d", {});
248
+ /** `true` if currently in the process of reflecting component props back to attributes */
249
+ $(this, "$$r", !1);
250
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
251
+ $(this, "$$p_d", {});
252
+ /** @type {Record<string, Function[]>} Event listeners */
253
+ $(this, "$$l", {});
254
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
255
+ $(this, "$$l_u", /* @__PURE__ */ new Map());
256
+ this.$$ctor = t, this.$$s = n, i && this.attachShadow({ mode: "open" });
257
+ }
258
+ addEventListener(t, n, i) {
259
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
260
+ const r = this.$$c.$on(t, n);
261
+ this.$$l_u.set(n, r);
262
+ }
263
+ super.addEventListener(t, n, i);
264
+ }
265
+ removeEventListener(t, n, i) {
266
+ if (super.removeEventListener(t, n, i), this.$$c) {
267
+ const r = this.$$l_u.get(n);
268
+ r && (r(), this.$$l_u.delete(n));
269
+ }
270
+ }
271
+ connectedCallback() {
272
+ return I(this, null, function* () {
273
+ if (this.$$cn = !0, !this.$$c) {
274
+ let t = function(s) {
275
+ return () => {
276
+ let l;
277
+ return {
278
+ c: function() {
279
+ l = g("slot"), s !== "default" && f(l, "name", s);
280
+ },
281
+ /**
282
+ * @param {HTMLElement} target
283
+ * @param {HTMLElement} [anchor]
284
+ */
285
+ m: function(o, d) {
286
+ x(o, l, d);
287
+ },
288
+ d: function(o) {
289
+ o && C(l);
290
+ }
291
+ };
292
+ };
293
+ };
294
+ if (yield Promise.resolve(), !this.$$cn || this.$$c)
295
+ return;
296
+ const n = {}, i = mt(this);
297
+ for (const s of this.$$s)
298
+ s in i && (n[s] = [t(s)]);
299
+ 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"));
302
+ }
303
+ for (const s in this.$$p_d)
304
+ !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
305
+ this.$$c = new this.$$ctor({
306
+ target: this.shadowRoot || this,
307
+ props: q(D({}, this.$$d), {
308
+ $$slots: n,
309
+ $$scope: {
310
+ ctx: []
311
+ }
312
+ })
313
+ });
314
+ const r = () => {
315
+ this.$$r = !0;
316
+ for (const s in this.$$p_d)
317
+ if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
318
+ const l = V(
319
+ s,
320
+ this.$$d[s],
321
+ this.$$p_d,
322
+ "toAttribute"
323
+ );
324
+ l == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, l);
325
+ }
326
+ this.$$r = !1;
327
+ };
328
+ this.$$c.$$.after_update.push(r), r();
329
+ 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
+ }
334
+ this.$$l = {};
335
+ }
336
+ });
337
+ }
338
+ // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
339
+ // and setting attributes through setAttribute etc, this is helpful
340
+ attributeChangedCallback(t, n, i) {
341
+ 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] }));
343
+ }
344
+ disconnectedCallback() {
345
+ this.$$cn = !1, Promise.resolve().then(() => {
346
+ !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
347
+ });
348
+ }
349
+ $$g_p(t) {
350
+ return Object.keys(this.$$p_d).find(
351
+ (n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
352
+ ) || t;
353
+ }
354
+ });
355
+ function V(e, t, n, i) {
356
+ var s;
357
+ const r = (s = n[e]) == null ? void 0 : s.type;
358
+ if (t = r === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !n[e])
359
+ return t;
360
+ if (i === "toAttribute")
361
+ switch (r) {
362
+ case "Object":
363
+ case "Array":
364
+ return t == null ? null : JSON.stringify(t);
365
+ case "Boolean":
366
+ return t ? "" : null;
367
+ case "Number":
368
+ return t == null ? null : t;
369
+ default:
370
+ return t;
371
+ }
372
+ else
373
+ switch (r) {
374
+ case "Object":
375
+ case "Array":
376
+ return t && JSON.parse(t);
377
+ case "Boolean":
378
+ return t;
379
+ case "Number":
380
+ return t != null ? +t : t;
381
+ default:
382
+ return t;
383
+ }
384
+ }
385
+ function Vt(e, t, n, i, r, s) {
386
+ let l = class extends et {
387
+ constructor() {
388
+ super(e, n, r), this.$$p_d = t;
389
+ }
390
+ static get observedAttributes() {
391
+ return Object.keys(t).map(
392
+ (u) => (t[u].attribute || u).toLowerCase()
393
+ );
394
+ }
395
+ };
396
+ return Object.keys(t).forEach((u) => {
397
+ Object.defineProperty(l.prototype, u, {
398
+ get() {
399
+ return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
400
+ },
401
+ set(c) {
402
+ var o;
403
+ c = V(u, c, t), this.$$d[u] = c, (o = this.$$c) == null || o.$set({ [u]: c });
404
+ }
405
+ });
406
+ }), i.forEach((u) => {
407
+ Object.defineProperty(l.prototype, u, {
408
+ get() {
409
+ var c;
410
+ return (c = this.$$c) == null ? void 0 : c[u];
411
+ }
412
+ });
413
+ }), e.element = /** @type {any} */
414
+ l, l;
415
+ }
416
+ class jt {
417
+ constructor() {
418
+ /**
419
+ * ### PRIVATE API
420
+ *
421
+ * Do not use, may change at any time
422
+ *
423
+ * @type {any}
424
+ */
425
+ $(this, "$$");
426
+ /**
427
+ * ### PRIVATE API
428
+ *
429
+ * Do not use, may change at any time
430
+ *
431
+ * @type {any}
432
+ */
433
+ $(this, "$$set");
434
+ }
435
+ /** @returns {void} */
436
+ $destroy() {
437
+ Et(this, 1), this.$destroy = m;
438
+ }
439
+ /**
440
+ * @template {Extract<keyof Events, string>} K
441
+ * @param {K} type
442
+ * @param {((e: Events[K]) => void) | null | undefined} callback
443
+ * @returns {() => void}
444
+ */
445
+ $on(t, n) {
446
+ if (!X(n))
447
+ return m;
448
+ const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
449
+ return i.push(n), () => {
450
+ const r = i.indexOf(n);
451
+ r !== -1 && i.splice(r, 1);
452
+ };
453
+ }
454
+ /**
455
+ * @param {Partial<Props>} props
456
+ * @returns {void}
457
+ */
458
+ $set(t) {
459
+ this.$$set && !dt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
460
+ }
461
+ }
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}");
466
+ }
467
+ function Z(e) {
468
+ let t, n, i, r, s, l, u, c = !/*desktopView*/
469
+ e[2] && G(e), o = (
470
+ /*desktopView*/
471
+ e[2] && K(e)
472
+ );
473
+ return {
474
+ 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");
477
+ },
478
+ 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);
480
+ },
481
+ p(d, h) {
482
+ /*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);
487
+ },
488
+ d(d) {
489
+ d && C(t), c && c.d(), o && o.d(), e[10](null);
490
+ }
491
+ };
492
+ }
493
+ function G(e) {
494
+ let t, n, i, r, s;
495
+ return {
496
+ c() {
497
+ 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
+ },
499
+ m(l, u) {
500
+ x(l, t, u), _(t, n), _(n, i), r || (s = tt(
501
+ n,
502
+ "click",
503
+ /*click_handler*/
504
+ e[8]
505
+ ), r = !0);
506
+ },
507
+ p: m,
508
+ d(l) {
509
+ l && C(t), r = !1, s();
510
+ }
511
+ };
512
+ }
513
+ function K(e) {
514
+ let t, n, i, r;
515
+ return {
516
+ c() {
517
+ 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
+ },
519
+ m(s, l) {
520
+ x(s, t, l), _(t, n), i || (r = tt(
521
+ t,
522
+ "click",
523
+ /*click_handler_1*/
524
+ e[9]
525
+ ), i = !0);
526
+ },
527
+ p: m,
528
+ d(s) {
529
+ s && C(t), i = !1, r();
530
+ }
531
+ };
532
+ }
533
+ function At(e) {
534
+ let t, n = (
535
+ /*show*/
536
+ e[3] && Z(e)
537
+ );
538
+ return {
539
+ c() {
540
+ n && n.c(), t = _t();
541
+ },
542
+ m(i, r) {
543
+ n && n.m(i, r), x(i, t, r);
544
+ },
545
+ p(i, [r]) {
546
+ /*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);
548
+ },
549
+ i: m,
550
+ o: m,
551
+ d(i) {
552
+ i && C(t), n && n.d(i);
553
+ }
554
+ };
555
+ }
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;
558
+ const d = () => {
559
+ n(3, c = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
560
+ }, h = (a) => {
561
+ a.data.type == "ShowCashierVideoModal" && (n(3, c = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), a.data.type == "HideCashierVideoModal" && d();
562
+ }, k = () => {
563
+ n(2, u = s === "false");
564
+ }, E = () => {
565
+ let a = document.createElement("style");
566
+ a.innerHTML = i, o.appendChild(a);
567
+ }, S = () => {
568
+ let a = new URL(r), R = document.createElement("style");
569
+ fetch(a.href).then((O) => O.text()).then((O) => {
570
+ R.innerHTML = O, setTimeout(
571
+ () => {
572
+ o.appendChild(R);
573
+ },
574
+ 1
575
+ );
576
+ });
577
+ };
578
+ wt(() => (window.addEventListener("message", h, !1), () => {
579
+ window.removeEventListener("message", h);
580
+ }));
581
+ const nt = () => d(), it = () => d();
582
+ function st(a) {
583
+ B[a ? "unshift" : "push"](() => {
584
+ o = a, n(1, o);
585
+ });
586
+ }
587
+ 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);
589
+ }, e.$$.update = () => {
590
+ e.$$.dirty & /*ismobileview*/
591
+ 128 && s && k(), e.$$.dirty & /*clientstyling, customStylingContainer*/
592
+ 34 && i && o && E(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
593
+ 66 && r && o && S();
594
+ }, [
595
+ l,
596
+ o,
597
+ u,
598
+ c,
599
+ d,
600
+ i,
601
+ r,
602
+ s,
603
+ nt,
604
+ it,
605
+ st
606
+ ];
607
+ }
608
+ class Bt extends jt {
609
+ constructor(t) {
610
+ super(), Mt(
611
+ this,
612
+ t,
613
+ Ht,
614
+ At,
615
+ ft,
616
+ {
617
+ clientstyling: 5,
618
+ clientstylingurl: 6,
619
+ ismobileview: 7,
620
+ videosrc: 0
621
+ },
622
+ Ot
623
+ );
624
+ }
625
+ get clientstyling() {
626
+ return this.$$.ctx[5];
627
+ }
628
+ set clientstyling(t) {
629
+ this.$$set({ clientstyling: t }), b();
630
+ }
631
+ get clientstylingurl() {
632
+ return this.$$.ctx[6];
633
+ }
634
+ set clientstylingurl(t) {
635
+ this.$$set({ clientstylingurl: t }), b();
636
+ }
637
+ get ismobileview() {
638
+ return this.$$.ctx[7];
639
+ }
640
+ set ismobileview(t) {
641
+ this.$$set({ ismobileview: t }), b();
642
+ }
643
+ get videosrc() {
644
+ return this.$$.ctx[0];
645
+ }
646
+ set videosrc(t) {
647
+ this.$$set({ videosrc: t }), b();
648
+ }
649
+ }
650
+ Vt(Bt, { clientstyling: {}, clientstylingurl: {}, ismobileview: {}, videosrc: {} }, [], [], !0);
651
+ export {
652
+ Bt as default
653
+ };
@@ -0,0 +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)})}
@@ -0,0 +1,16 @@
1
+ if (typeof window != "undefined") {
2
+ let n = function(t) {
3
+ return function(...s) {
4
+ try {
5
+ return t.apply(this, s);
6
+ } catch (e) {
7
+ 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"))
8
+ return !1;
9
+ throw e;
10
+ }
11
+ };
12
+ };
13
+ customElements.define = n(customElements.define), import("../components/CashierVideoModal-BSe6pvaT.js").then(({ default: t }) => {
14
+ !customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", t.element);
15
+ });
16
+ }
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@everymatrix/cashier-video-modal",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "main": "es2015/cashier-video-modal.cjs",
6
+ "module": "es2015/cashier-video-modal.js",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./es2015/cashier-video-modal.js",
10
+ "require": "./es2015/cashier-video-modal.cjs"
11
+ },
12
+ "./es2015/cashier-video-modal.cjs": "./es2015/cashier-video-modal.cjs",
13
+ "./esnext/cashier-video-modal.cjs": "./esnext/cashier-video-modal.cjs"
14
+ },
15
+ "files": [
16
+ "components/",
17
+ "es2015/",
18
+ "stencil",
19
+ "angular",
20
+ "esnext/"
21
+ ],
22
+ "publishConfig": {
23
+ "access": "public"
24
+ }
25
+ }