@everymatrix/cashier-verifications 1.86.6 → 1.86.7

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.
@@ -4258,7 +4258,7 @@ var Lr = { exports: {} };
4258
4258
  var uo = Lr.exports;
4259
4259
  const lo = /* @__PURE__ */ yt(uo);
4260
4260
  function ho(e) {
4261
- Wr(e, "svelte-19ii49m", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--emw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{width:100%;padding:10px;border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);position:relative;overflow:hidden;isolation:isolate;flex-direction:column;background-color:rgba(255, 255, 255, 0.063);display:flex;z-index:1;width:97%;margin:auto;cursor:pointer;user-select:none}.CashierVerificationsWrapper::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary) 0%, var(--emw--color-black) 100%);background-size:200% 200%;animation:gradientWave 8s ease infinite}.CashierVerificationsWrapper::after{content:"";position:absolute;inset:-2px;z-index:-2;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary), var(--emw--color-black) transparent);background-size:200% 200%;animation:gradientWave 8s ease infinite reverse;filter:blur(10px);opacity:0.6}@keyframes gradientWave{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}.VerificationsHeader{display:flex;align-items:center}.VerificationsList{max-height:0;overflow:hidden;transform:translateY(-10px);opacity:0;transition:max-height 0.3s ease, transform 0.3s ease, opacity 0.3s ease}.VerificationsList.ShowVerifications{max-height:100%;transform:translateY(0);opacity:1}.CashierVerificationChevron.ShowVerifications svg{-o-transform:rotateX(180deg);-ms-transform:rotateX(180deg);-moz-transform:rotateX(180deg);-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:rgba(0, 0, 0, 0.15);border-radius:10px;margin-bottom:10px;padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg path{stroke:var(--emw--color-typography, var(--emw--color-white, #ffffff))}p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:500;font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word;font-weight:200;font-size:12px}.text a{color:var(--emw--color-primary, #f9c408);font-weight:500}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s;margin-right:5px}.CashierVerificationChevron svg path{fill:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotateX(90deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center;fill:var(--emw--color-primary, #f9c408)}.CashierVerificationVideoLink{cursor:pointer;color:var(--emw--color-primary, #f9c408);font-family:inherit;font-size:var(--emw--font-size-small, 12px);line-height:120%;margin:var(--emw--spacing-small, 12px);font-weight:500}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}');
4261
+ Wr(e, "svelte-etf668", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--emw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin:var(--emw--spacing-small, 12px) 0}.CashierVerificationsWrapper{width:100%;padding:10px;border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);position:relative;overflow:hidden;isolation:isolate;flex-direction:column;background-color:rgba(255, 255, 255, 0.063);display:flex;z-index:1;width:97%;margin:auto;cursor:pointer;user-select:none}.CashierVerificationsWrapper::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary) 0%, var(--emw--color-black) 100%);background-size:200% 200%;animation:gradientWave 8s ease infinite}.CashierVerificationsWrapper::after{content:"";position:absolute;inset:-2px;z-index:-2;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary), var(--emw--color-black) transparent);background-size:200% 200%;animation:gradientWave 8s ease infinite reverse;filter:blur(10px);opacity:0.6}@keyframes gradientWave{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}.VerificationsHeader{display:flex;align-items:center}.VerificationsList{max-height:0;overflow:hidden;transform:translateY(-10px);opacity:0;transition:max-height 0.3s ease, transform 0.3s ease, opacity 0.3s ease}.VerificationsList.ShowVerifications{max-height:100%;transform:translateY(0);opacity:1}.CashierVerificationChevron.ShowVerifications svg{-o-transform:rotateX(180deg);-ms-transform:rotateX(180deg);-moz-transform:rotateX(180deg);-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:rgba(0, 0, 0, 0.15);border-radius:10px;margin-bottom:10px;padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg path{stroke:var(--emw--color-typography, var(--emw--color-white, #ffffff))}p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:500;font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word;font-weight:200;font-size:12px}.text a{color:var(--emw--color-primary, #f9c408);font-weight:500}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s;margin-right:5px}.CashierVerificationChevron svg path{fill:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotateX(90deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center;fill:var(--emw--color-primary, #f9c408)}.CashierVerificationVideoLink{cursor:pointer;color:var(--emw--color-primary, #f9c408);font-family:inherit;font-size:var(--emw--font-size-small, 12px);line-height:120%;margin:var(--emw--spacing-small, 12px);font-weight:500}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}');
4262
4262
  }
4263
4263
  function Yt(e, t, r) {
4264
4264
  const i = e.slice();
@@ -4258,7 +4258,7 @@ var Lr = { exports: {} };
4258
4258
  var uo = Lr.exports;
4259
4259
  const lo = /* @__PURE__ */ yt(uo);
4260
4260
  function ho(e) {
4261
- Wr(e, "svelte-19ii49m", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--emw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{width:100%;padding:10px;border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);position:relative;overflow:hidden;isolation:isolate;flex-direction:column;background-color:rgba(255, 255, 255, 0.063);display:flex;z-index:1;width:97%;margin:auto;cursor:pointer;user-select:none}.CashierVerificationsWrapper::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary) 0%, var(--emw--color-black) 100%);background-size:200% 200%;animation:gradientWave 8s ease infinite}.CashierVerificationsWrapper::after{content:"";position:absolute;inset:-2px;z-index:-2;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary), var(--emw--color-black) transparent);background-size:200% 200%;animation:gradientWave 8s ease infinite reverse;filter:blur(10px);opacity:0.6}@keyframes gradientWave{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}.VerificationsHeader{display:flex;align-items:center}.VerificationsList{max-height:0;overflow:hidden;transform:translateY(-10px);opacity:0;transition:max-height 0.3s ease, transform 0.3s ease, opacity 0.3s ease}.VerificationsList.ShowVerifications{max-height:100%;transform:translateY(0);opacity:1}.CashierVerificationChevron.ShowVerifications svg{-o-transform:rotateX(180deg);-ms-transform:rotateX(180deg);-moz-transform:rotateX(180deg);-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:rgba(0, 0, 0, 0.15);border-radius:10px;margin-bottom:10px;padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg path{stroke:var(--emw--color-typography, var(--emw--color-white, #ffffff))}p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:500;font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word;font-weight:200;font-size:12px}.text a{color:var(--emw--color-primary, #f9c408);font-weight:500}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s;margin-right:5px}.CashierVerificationChevron svg path{fill:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotateX(90deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center;fill:var(--emw--color-primary, #f9c408)}.CashierVerificationVideoLink{cursor:pointer;color:var(--emw--color-primary, #f9c408);font-family:inherit;font-size:var(--emw--font-size-small, 12px);line-height:120%;margin:var(--emw--spacing-small, 12px);font-weight:500}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}');
4261
+ Wr(e, "svelte-etf668", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--emw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin:var(--emw--spacing-small, 12px) 0}.CashierVerificationsWrapper{width:100%;padding:10px;border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);position:relative;overflow:hidden;isolation:isolate;flex-direction:column;background-color:rgba(255, 255, 255, 0.063);display:flex;z-index:1;width:97%;margin:auto;cursor:pointer;user-select:none}.CashierVerificationsWrapper::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary) 0%, var(--emw--color-black) 100%);background-size:200% 200%;animation:gradientWave 8s ease infinite}.CashierVerificationsWrapper::after{content:"";position:absolute;inset:-2px;z-index:-2;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary), var(--emw--color-black) transparent);background-size:200% 200%;animation:gradientWave 8s ease infinite reverse;filter:blur(10px);opacity:0.6}@keyframes gradientWave{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}.VerificationsHeader{display:flex;align-items:center}.VerificationsList{max-height:0;overflow:hidden;transform:translateY(-10px);opacity:0;transition:max-height 0.3s ease, transform 0.3s ease, opacity 0.3s ease}.VerificationsList.ShowVerifications{max-height:100%;transform:translateY(0);opacity:1}.CashierVerificationChevron.ShowVerifications svg{-o-transform:rotateX(180deg);-ms-transform:rotateX(180deg);-moz-transform:rotateX(180deg);-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:rgba(0, 0, 0, 0.15);border-radius:10px;margin-bottom:10px;padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg path{stroke:var(--emw--color-typography, var(--emw--color-white, #ffffff))}p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:500;font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word;font-weight:200;font-size:12px}.text a{color:var(--emw--color-primary, #f9c408);font-weight:500}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s;margin-right:5px}.CashierVerificationChevron svg path{fill:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotateX(90deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center;fill:var(--emw--color-primary, #f9c408)}.CashierVerificationVideoLink{cursor:pointer;color:var(--emw--color-primary, #f9c408);font-family:inherit;font-size:var(--emw--font-size-small, 12px);line-height:120%;margin:var(--emw--spacing-small, 12px);font-weight:500}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}');
4262
4262
  }
4263
4263
  function Yt(e, t, r) {
4264
4264
  const i = e.slice();
@@ -17,4 +17,4 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17
17
  PERFORMANCE OF THIS SOFTWARE.
18
18
  ***************************************************************************** */var it=function(e,t){return it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},it(e,t)};function Oe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");it(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function nt(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ot(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),n,o=[],s;try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(u){s={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(s)throw s.error}}return o}function st(e,t,r){if(arguments.length===2)for(var i=0,n=t.length,o;i<n;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||t)}function re(e){return typeof e=="function"}function cr(e){var t=function(i){Error.call(i),i.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var qe=cr(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
19
19
  `+r.map(function(i,n){return n+1+") "+i.toString()}).join(`
20
- `):"",this.name="UnsubscriptionError",this.errors=r}});function at(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Fe=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,n,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var u=nt(s),l=u.next();!l.done;l=u.next()){var f=l.value;f.remove(this)}}catch(d){t={error:d}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}else s.remove(this);var c=this.initialTeardown;if(re(c))try{c()}catch(d){o=d instanceof qe?d.errors:[d]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var g=nt(m),x=g.next();!x.done;x=g.next()){var w=x.value;try{Pt(w)}catch(d){o=o!=null?o:[],d instanceof qe?o=st(st([],ot(o)),ot(d.errors)):o.push(d)}}}catch(d){i={error:d}}finally{try{x&&!x.done&&(n=g.return)&&n.call(g)}finally{if(i)throw i.error}}}if(o)throw new qe(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Pt(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&at(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&at(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),dr=Fe.EMPTY;function pr(e){return e instanceof Fe||e&&"closed"in e&&re(e.remove)&&re(e.add)&&re(e.unsubscribe)}function Pt(e){re(e)?e():e.unsubscribe()}var bn={Promise:void 0},yn={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,st([e,t],ot(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function xn(e){yn.setTimeout(function(){throw e})}function At(){}function Ie(e){e()}var mr=function(e){Oe(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,pr(r)&&r.add(i)):i.destination=wn,i}return t.create=function(r,i,n){return new ut(r,i,n)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Fe),_n=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(i){Me(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){Me(i)}else Me(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Me(r)}},e}(),ut=function(e){Oe(t,e);function t(r,i,n){var o=e.call(this)||this,s;return re(r)||!r?s={next:r!=null?r:void 0,error:i!=null?i:void 0,complete:n!=null?n:void 0}:s=r,o.destination=new _n(s),o}return t}(mr);function Me(e){xn(e)}function En(e){throw e}var wn={closed:!0,next:At,error:En,complete:At},Sn=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Tn(e){return e}function Hn(e){return e.length===0?Tn:e.length===1?e[0]:function(r){return e.reduce(function(i,n){return n(i)},r)}}var Mt=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,i){var n=this,o=Pn(t)?t:new ut(t,r,i);return Ie(function(){var s=n,u=s.operator,l=s.source;o.add(u?u.call(o,l):l?n._subscribe(o):n._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=Bt(r),new r(function(n,o){var s=new ut({next:function(u){try{t(u)}catch(l){o(l),s.unsubscribe()}},error:o,complete:n});i.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Sn]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Hn(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Bt(t),new t(function(i,n){var o;r.subscribe(function(s){return o=s},function(s){return n(s)},function(){return i(o)})})},e.create=function(t){return new e(t)},e}();function Bt(e){var t;return(t=e!=null?e:bn.Promise)!==null&&t!==void 0?t:Promise}function On(e){return e&&re(e.next)&&re(e.error)&&re(e.complete)}function Pn(e){return e&&e instanceof mr||On(e)&&pr(e)}var An=cr(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),vr=function(e){Oe(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var i=new Ct(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new An},t.prototype.next=function(r){var i=this;Ie(function(){var n,o;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var s=nt(i.currentObservers),u=s.next();!u.done;u=s.next()){var l=u.value;l.next(r)}}catch(f){n={error:f}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}}})},t.prototype.error=function(r){var i=this;Ie(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var n=i.observers;n.length;)n.shift().error(r)}})},t.prototype.complete=function(){var r=this;Ie(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,n=this,o=n.hasError,s=n.isStopped,u=n.observers;return o||s?dr:(this.currentObservers=null,u.push(r),new Fe(function(){i.currentObservers=null,at(u,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,n=i.hasError,o=i.thrownError,s=i.isStopped;n?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new Mt;return r.source=this,r},t.create=function(r,i){return new Ct(r,i)},t}(Mt),Ct=function(e){Oe(t,e);function t(r,i){var n=e.call(this)||this;return n.destination=r,n.source=i,n}return t.prototype.next=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,r)},t.prototype.error=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&n!==void 0?n:dr},t}(vr),gr={now:function(){return(gr.delegate||Date).now()},delegate:void 0},Mn=function(e){Oe(t,e);function t(r,i,n){r===void 0&&(r=1/0),i===void 0&&(i=1/0),n===void 0&&(n=gr);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=i,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=i===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,i),o}return t.prototype.next=function(r){var i=this,n=i.isStopped,o=i._buffer,s=i._infiniteTimeWindow,u=i._timestampProvider,l=i._windowTime;n||(o.push(r),!s&&o.push(u.now()+l)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(r),n=this,o=n._infiniteTimeWindow,s=n._buffer,u=s.slice(),l=0;l<u.length&&!r.closed;l+=o?1:2)r.next(u[l]);return this._checkFinalizedStatuses(r),i},t.prototype._trimBuffer=function(){var r=this,i=r._bufferSize,n=r._timestampProvider,o=r._buffer,s=r._infiniteTimeWindow,u=(s?1:2)*i;if(i<1/0&&u<o.length&&o.splice(0,o.length-u),!s){for(var l=n.now(),f=0,c=1;c<o.length&&o[c]<=l;c+=2)f=c;f&&o.splice(0,f+1)}},t}(vr);const It=[],Dt={},Bn=(e,t=0)=>{if(It.indexOf(e)==-1){const r=new Mn(t);Dt[e]=r,It.push(e)}return Dt[e]};window.emWidgets={topic:Bn};const Cn=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));String(Number.MAX_SAFE_INTEGER).length;if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CashierModal-CsJICZpd.cjs")).then(t=>t.CashierModal_ce).then(({default:t})=>{!customElements.get("cashier-modal")&&customElements.define("cashier-modal",t.element)})}var br={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(Vt,function(){var r=1e3,i=6e4,n=36e5,o="millisecond",s="second",u="minute",l="hour",f="day",c="week",m="month",g="quarter",x="year",w="date",d="Invalid Date",L=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(E){var b=["th","st","nd","rd"],p=E%100;return"["+E+(b[(p-20)%10]||b[p]||b[0])+"]"}},H=function(E,b,p){var y=String(E);return!y||y.length>=b?E:""+Array(b+1-y.length).join(p)+E},O={s:H,z:function(E){var b=-E.utcOffset(),p=Math.abs(b),y=Math.floor(p/60),v=p%60;return(b<=0?"+":"-")+H(y,2,"0")+":"+H(v,2,"0")},m:function E(b,p){if(b.date()<p.date())return-E(p,b);var y=12*(p.year()-b.year())+(p.month()-b.month()),v=b.clone().add(y,m),S=p-v<0,T=b.clone().add(y+(S?-1:1),m);return+(-(y+(p-v)/(S?v-T:T-v))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:m,y:x,w:c,d:f,D:w,h:l,m:u,s,ms:o,Q:g}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},D="en",P={};P[D]=A;var W="$isDayjsObject",K=function(E){return E instanceof j||!(!E||!E[W])},Z=function E(b,p,y){var v;if(!b)return D;if(typeof b=="string"){var S=b.toLowerCase();P[S]&&(v=S),p&&(P[S]=p,v=S);var T=b.split("-");if(!v&&T.length>1)return E(T[0])}else{var N=b.name;P[N]=b,v=N}return!y&&v&&(D=v),v||!y&&D},k=function(E,b){if(K(E))return E.clone();var p=typeof b=="object"?b:{};return p.date=E,p.args=arguments,new j(p)},C=O;C.l=Z,C.i=K,C.w=function(E,b){return k(E,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var j=function(){function E(p){this.$L=Z(p.locale,null,!0),this.parse(p),this.$x=this.$x||p.x||{},this[W]=!0}var b=E.prototype;return b.parse=function(p){this.$d=function(y){var v=y.date,S=y.utc;if(v===null)return new Date(NaN);if(C.u(v))return new Date;if(v instanceof Date)return new Date(v);if(typeof v=="string"&&!/Z$/i.test(v)){var T=v.match(L);if(T){var N=T[2]-1||0,V=(T[7]||"0").substring(0,3);return S?new Date(Date.UTC(T[1],N,T[3]||1,T[4]||0,T[5]||0,T[6]||0,V)):new Date(T[1],N,T[3]||1,T[4]||0,T[5]||0,T[6]||0,V)}}return new Date(v)}(p),this.init()},b.init=function(){var p=this.$d;this.$y=p.getFullYear(),this.$M=p.getMonth(),this.$D=p.getDate(),this.$W=p.getDay(),this.$H=p.getHours(),this.$m=p.getMinutes(),this.$s=p.getSeconds(),this.$ms=p.getMilliseconds()},b.$utils=function(){return C},b.isValid=function(){return this.$d.toString()!==d},b.isSame=function(p,y){var v=k(p);return this.startOf(y)<=v&&v<=this.endOf(y)},b.isAfter=function(p,y){return k(p)<this.startOf(y)},b.isBefore=function(p,y){return this.endOf(y)<k(p)},b.$g=function(p,y,v){return C.u(p)?this[y]:this.set(v,p)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(p,y){var v=this,S=!!C.u(y)||y,T=C.p(p),N=function(te,X){var J=C.w(v.$u?Date.UTC(v.$y,X,te):new Date(v.$y,X,te),v);return S?J:J.endOf(f)},V=function(te,X){return C.w(v.toDate()[te].apply(v.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(X)),v)},G=this.$W,$=this.$M,Y=this.$D,ne="set"+(this.$u?"UTC":"");switch(T){case x:return S?N(1,0):N(31,11);case m:return S?N(1,$):N(0,$+1);case c:var ee=this.$locale().weekStart||0,ue=(G<ee?G+7:G)-ee;return N(S?Y-ue:Y+(6-ue),$);case f:case w:return V(ne+"Hours",0);case l:return V(ne+"Minutes",1);case u:return V(ne+"Seconds",2);case s:return V(ne+"Milliseconds",3);default:return this.clone()}},b.endOf=function(p){return this.startOf(p,!1)},b.$set=function(p,y){var v,S=C.p(p),T="set"+(this.$u?"UTC":""),N=(v={},v[f]=T+"Date",v[w]=T+"Date",v[m]=T+"Month",v[x]=T+"FullYear",v[l]=T+"Hours",v[u]=T+"Minutes",v[s]=T+"Seconds",v[o]=T+"Milliseconds",v)[S],V=S===f?this.$D+(y-this.$W):y;if(S===m||S===x){var G=this.clone().set(w,1);G.$d[N](V),G.init(),this.$d=G.set(w,Math.min(this.$D,G.daysInMonth())).$d}else N&&this.$d[N](V);return this.init(),this},b.set=function(p,y){return this.clone().$set(p,y)},b.get=function(p){return this[C.p(p)]()},b.add=function(p,y){var v,S=this;p=Number(p);var T=C.p(y),N=function($){var Y=k(S);return C.w(Y.date(Y.date()+Math.round($*p)),S)};if(T===m)return this.set(m,this.$M+p);if(T===x)return this.set(x,this.$y+p);if(T===f)return N(1);if(T===c)return N(7);var V=(v={},v[u]=i,v[l]=n,v[s]=r,v)[T]||1,G=this.$d.getTime()+p*V;return C.w(G,this)},b.subtract=function(p,y){return this.add(-1*p,y)},b.format=function(p){var y=this,v=this.$locale();if(!this.isValid())return v.invalidDate||d;var S=p||"YYYY-MM-DDTHH:mm:ssZ",T=C.z(this),N=this.$H,V=this.$m,G=this.$M,$=v.weekdays,Y=v.months,ne=v.meridiem,ee=function(X,J,le,ce){return X&&(X[J]||X(y,S))||le[J].slice(0,ce)},ue=function(X){return C.s(N%12||12,X,"0")},te=ne||function(X,J,le){var ce=X<12?"AM":"PM";return le?ce.toLowerCase():ce};return S.replace(R,function(X,J){return J||function(le){switch(le){case"YY":return String(y.$y).slice(-2);case"YYYY":return C.s(y.$y,4,"0");case"M":return G+1;case"MM":return C.s(G+1,2,"0");case"MMM":return ee(v.monthsShort,G,Y,3);case"MMMM":return ee(Y,G);case"D":return y.$D;case"DD":return C.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return ee(v.weekdaysMin,y.$W,$,2);case"ddd":return ee(v.weekdaysShort,y.$W,$,3);case"dddd":return $[y.$W];case"H":return String(N);case"HH":return C.s(N,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return te(N,V,!0);case"A":return te(N,V,!1);case"m":return String(V);case"mm":return C.s(V,2,"0");case"s":return String(y.$s);case"ss":return C.s(y.$s,2,"0");case"SSS":return C.s(y.$ms,3,"0");case"Z":return T}return null}(X)||T.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(p,y,v){var S,T=this,N=C.p(y),V=k(p),G=(V.utcOffset()-this.utcOffset())*i,$=this-V,Y=function(){return C.m(T,V)};switch(N){case x:S=Y()/12;break;case m:S=Y();break;case g:S=Y()/3;break;case c:S=($-G)/6048e5;break;case f:S=($-G)/864e5;break;case l:S=$/n;break;case u:S=$/i;break;case s:S=$/r;break;default:S=$}return v?S:C.a(S)},b.daysInMonth=function(){return this.endOf(m).$D},b.$locale=function(){return P[this.$L]},b.locale=function(p,y){if(!p)return this.$L;var v=this.clone(),S=Z(p,y,!0);return S&&(v.$L=S),v},b.clone=function(){return C.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},E}(),ie=j.prototype;return k.prototype=ie,[["$ms",o],["$s",s],["$m",u],["$H",l],["$W",f],["$M",m],["$y",x],["$D",w]].forEach(function(E){ie[E[1]]=function(b){return this.$g(b,E[0],E[1])}}),k.extend=function(E,b){return E.$i||(E(b,j,k),E.$i=!0),k},k.locale=Z,k.isDayjs=K,k.unix=function(E){return k(1e3*E)},k.en=P[D],k.Ls=P,k.p={},k})})(br);var In=br.exports;const Lt=lt(In);var yr={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(Vt,function(){var r="minute",i=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(o,s,u){var l=s.prototype;u.utc=function(d){var L={date:d,utc:!0,args:arguments};return new s(L)},l.utc=function(d){var L=u(this.toDate(),{locale:this.$L,utc:!0});return d?L.add(this.utcOffset(),r):L},l.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var f=l.parse;l.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),f.call(this,d)};var c=l.init;l.init=function(){if(this.$u){var d=this.$d;this.$y=d.getUTCFullYear(),this.$M=d.getUTCMonth(),this.$D=d.getUTCDate(),this.$W=d.getUTCDay(),this.$H=d.getUTCHours(),this.$m=d.getUTCMinutes(),this.$s=d.getUTCSeconds(),this.$ms=d.getUTCMilliseconds()}else c.call(this)};var m=l.utcOffset;l.utcOffset=function(d,L){var R=this.$utils().u;if(R(d))return this.$u?0:R(this.$offset)?m.call(this):this.$offset;if(typeof d=="string"&&(d=function(D){D===void 0&&(D="");var P=D.match(i);if(!P)return null;var W=(""+P[0]).match(n)||["-",0,0],K=W[0],Z=60*+W[1]+ +W[2];return Z===0?0:K==="+"?Z:-Z}(d),d===null))return this;var A=Math.abs(d)<=16?60*d:d,H=this;if(L)return H.$offset=A,H.$u=d===0,H;if(d!==0){var O=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(H=this.local().add(A+O,r)).$offset=A,H.$x.$localOffset=O}else H=this.utc();return H};var g=l.format;l.format=function(d){var L=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return g.call(this,L)},l.valueOf=function(){var d=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*d},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var x=l.toDate;l.toDate=function(d){return d==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():x.call(this)};var w=l.diff;l.diff=function(d,L,R){if(d&&this.$u===d.$u)return w.call(this,d,L,R);var A=this.local(),H=u(d).local();return w.call(A,H,L,R)}}})})(yr);var Dn=yr.exports;const Ln=lt(Dn);function Nn(e){a.append_styles(e,"svelte-19ii49m",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--emw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{width:100%;padding:10px;border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);position:relative;overflow:hidden;isolation:isolate;flex-direction:column;background-color:rgba(255, 255, 255, 0.063);display:flex;z-index:1;width:97%;margin:auto;cursor:pointer;user-select:none}.CashierVerificationsWrapper::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary) 0%, var(--emw--color-black) 100%);background-size:200% 200%;animation:gradientWave 8s ease infinite}.CashierVerificationsWrapper::after{content:"";position:absolute;inset:-2px;z-index:-2;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary), var(--emw--color-black) transparent);background-size:200% 200%;animation:gradientWave 8s ease infinite reverse;filter:blur(10px);opacity:0.6}@keyframes gradientWave{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}.VerificationsHeader{display:flex;align-items:center}.VerificationsList{max-height:0;overflow:hidden;transform:translateY(-10px);opacity:0;transition:max-height 0.3s ease, transform 0.3s ease, opacity 0.3s ease}.VerificationsList.ShowVerifications{max-height:100%;transform:translateY(0);opacity:1}.CashierVerificationChevron.ShowVerifications svg{-o-transform:rotateX(180deg);-ms-transform:rotateX(180deg);-moz-transform:rotateX(180deg);-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:rgba(0, 0, 0, 0.15);border-radius:10px;margin-bottom:10px;padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg path{stroke:var(--emw--color-typography, var(--emw--color-white, #ffffff))}p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:500;font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word;font-weight:200;font-size:12px}.text a{color:var(--emw--color-primary, #f9c408);font-weight:500}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s;margin-right:5px}.CashierVerificationChevron svg path{fill:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotateX(90deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center;fill:var(--emw--color-primary, #f9c408)}.CashierVerificationVideoLink{cursor:pointer;color:var(--emw--color-primary, #f9c408);font-family:inherit;font-size:var(--emw--font-size-small, 12px);line-height:120%;margin:var(--emw--spacing-small, 12px);font-weight:500}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}')}function Nt(e,t,r){const i=e.slice();return i[53]=t[r],i}function Rn(e){let t,r=e[3].length>0&&Rt(e);return{c(){t=a.element("div"),r&&r.c(),a.attr(t,"class","CashierVerificationsWrapper")},m(i,n){a.insert(i,t,n),r&&r.m(t,null)},p(i,n){i[3].length>0?r?r.p(i,n):(r=Rt(i),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(i){i&&a.detach(t),r&&r.d()}}}function kn(e){let t;return{c(){t=a.element("cashier-spinner"),a.set_custom_element_data(t,"clientstylingurl",e[1]),a.set_custom_element_data(t,"clientstyling",e[0])},m(r,i){a.insert(r,t,i)},p(r,i){i[0]&2&&a.set_custom_element_data(t,"clientstylingurl",r[1]),i[0]&1&&a.set_custom_element_data(t,"clientstyling",r[0])},d(r){r&&a.detach(t)}}}function Rt(e){let t,r,i,n,o,s,u,l=e[8]("verificationsRequired")+"",f,c,m,g,x,w,d,L,R=a.ensure_array_like(e[3]),A=[];for(let O=0;O<R.length;O+=1)A[O]=kt(Nt(e,R,O));let H=e[6]&&Ut(e);return{c(){t=a.element("div"),r=a.svg_element("svg"),i=a.svg_element("path"),n=a.svg_element("path"),o=a.svg_element("path"),s=a.space(),u=a.element("p"),f=a.text(l),c=a.space(),m=a.element("span"),m.innerHTML='<svg width="13" height="8" viewBox="0 0 13 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.335805 2.19101L5.63841 7.62117C5.75331 7.74121 5.89002 7.83649 6.04064 7.9015C6.19127 7.96652 6.35282 8 6.51599 8C6.67917 8 6.84072 7.96652 6.99135 7.9015C7.14197 7.83649 7.27868 7.74121 7.39358 7.62117L12.6344 2.19101C12.7502 2.07195 12.8422 1.93031 12.9049 1.77424C12.9677 1.61818 13 1.45078 13 1.28171C13 1.11265 12.9677 0.945251 12.9049 0.789186C12.8422 0.633121 12.7502 0.491475 12.6344 0.372417C12.4028 0.133886 12.0895 -7.95968e-08 11.763 -1.08144e-07C11.4364 -1.36691e-07 11.1232 0.133886 10.8916 0.372417L6.51599 4.90609L2.14042 0.372417C1.91019 0.135815 1.59946 0.00242849 1.27519 0.00101368C1.11252 3.90151e-05 0.951266 0.0323442 0.80067 0.0960778C0.650074 0.159811 0.513102 0.25372 0.397606 0.372416C0.277618 0.48719 0.180769 0.625461 0.112655 0.779242C0.0445407 0.933023 0.00651199 1.09926 0.000765141 1.26836C-0.00498171 1.43746 0.0216687 1.60606 0.0791753 1.76442C0.136682 1.92279 0.223905 2.06777 0.335805 2.19101Z" fill="#6E738F"></path></svg>',g=a.space(),x=a.element("div");for(let O=0;O<A.length;O+=1)A[O].c();w=a.space(),H&&H.c(),a.attr(i,"d","M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"),a.attr(i,"stroke","#6E738F"),a.attr(i,"stroke-width","2"),a.attr(i,"stroke-linecap","round"),a.attr(i,"stroke-linejoin","round"),a.attr(n,"d","M12 8V12"),a.attr(n,"stroke","#6E738F"),a.attr(n,"stroke-width","2"),a.attr(n,"stroke-linecap","round"),a.attr(n,"stroke-linejoin","round"),a.attr(o,"d","M12 16H12.01"),a.attr(o,"stroke","#6E738F"),a.attr(o,"stroke-width","2"),a.attr(o,"stroke-linecap","round"),a.attr(o,"stroke-linejoin","round"),a.attr(r,"width","24"),a.attr(r,"height","24"),a.attr(r,"viewBox","0 0 24 24"),a.attr(r,"fill","none"),a.attr(r,"xmlns","http://www.w3.org/2000/svg"),a.attr(m,"class","CashierVerificationChevron"),a.toggle_class(m,"ShowVerifications",e[4]),a.attr(t,"class","VerificationsHeader"),a.attr(x,"class","VerificationsList"),a.toggle_class(x,"ShowVerifications",e[4])},m(O,D){a.insert(O,t,D),a.append(t,r),a.append(r,i),a.append(r,n),a.append(r,o),a.append(t,s),a.append(t,u),a.append(u,f),a.append(t,c),a.append(t,m),a.insert(O,g,D),a.insert(O,x,D);for(let P=0;P<A.length;P+=1)A[P]&&A[P].m(x,null);a.append(x,w),H&&H.m(x,null),d||(L=a.listen(t,"click",e[9]),d=!0)},p(O,D){if(D[0]&256&&l!==(l=O[8]("verificationsRequired")+"")&&a.set_data(f,l),D[0]&16&&a.toggle_class(m,"ShowVerifications",O[4]),D[0]&8){R=a.ensure_array_like(O[3]);let P;for(P=0;P<R.length;P+=1){const W=Nt(O,R,P);A[P]?A[P].p(W,D):(A[P]=kt(W),A[P].c(),A[P].m(x,w))}for(;P<A.length;P+=1)A[P].d(1);A.length=R.length}O[6]?H?H.p(O,D):(H=Ut(O),H.c(),H.m(x,null)):H&&(H.d(1),H=null),D[0]&16&&a.toggle_class(x,"ShowVerifications",O[4])},d(O){O&&(a.detach(t),a.detach(g),a.detach(x)),a.destroy_each(A,O),H&&H.d(),d=!1,L()}}}function kt(e){let t,r,i,n,o=e[53]+"";return{c(){t=a.element("div"),r=a.element("div"),r.innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V7L15 2Z" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14 2V6C14 6.53043 14.2107 7.03914 14.5858 7.41421C14.9609 7.78929 15.4696 8 16 8H20" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10 9H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 13H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 17H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>',i=a.space(),n=a.element("p"),a.attr(r,"class","IconVerification"),a.attr(n,"class","text"),a.attr(t,"class","CashierVerificationMessage Test")},m(s,u){a.insert(s,t,u),a.append(t,r),a.append(t,i),a.append(t,n),n.innerHTML=o},p(s,u){u[0]&8&&o!==(o=s[53]+"")&&(n.innerHTML=o)},d(s){s&&a.detach(t)}}}function Ut(e){let t,r,i,n,o=e[8]("verification.video.how-to")+"",s,u,l;return{c(){t=a.element("div"),r=a.element("div"),r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>',i=a.space(),n=a.element("div"),s=a.text(o),a.attr(r,"class","IconVideo"),a.attr(n,"class","CashierVerificationVideoLink"),a.toggle_class(n,"CashierVerificationVideoLinkDesktop",e[5]),a.attr(t,"class","CashierVerificationVideo Test")},m(f,c){a.insert(f,t,c),a.append(t,r),a.append(t,i),a.append(t,n),a.append(n,s),u||(l=a.listen(t,"click",e[10]),u=!0)},p(f,c){c[0]&256&&o!==(o=f[8]("verification.video.how-to")+"")&&a.set_data(s,o),c[0]&32&&a.toggle_class(n,"CashierVerificationVideoLinkDesktop",f[5])},d(f){f&&a.detach(t),u=!1,l()}}}function Un(e){let t;function r(o,s){if(o[7])return kn;if(o[3])return Rn}let i=r(e),n=i&&i(e);return{c(){t=a.element("div"),n&&n.c(),a.attr(t,"class","CashierVerifications"),a.toggle_class(t,"CashierVerificationsDesktop",e[5])},m(o,s){a.insert(o,t,s),n&&n.m(t,null),e[19](t)},p(o,s){i===(i=r(o))&&n?n.p(o,s):(n&&n.d(1),n=i&&i(o),n&&(n.c(),n.m(t,null))),s[0]&32&&a.toggle_class(t,"CashierVerificationsDesktop",o[5])},i:a.noop,o:a.noop,d(o){o&&a.detach(t),n&&n.d(),e[19](null)}}}const Vn="verification_explanation_video_widgets.MP4";function Fn(e,t,r){let i,n;a.component_subscribe(e,mn,h=>r(8,i=h)),a.component_subscribe(e,gn,h=>r(27,n=h)),Lt.extend(Ln);let{endpoint:o}=t,{lang:s="en"}=t,{translationurl:u=""}=t,{clientstyling:l=""}=t,{clientstylingurl:f=""}=t,{session:c=""}=t,{customerid:m=""}=t,{playersession:g=""}=t,{mbsource:x=""}=t,w,d=new Set,L=new Set,R,A,H,O=!1,D=!0,P=!1,W="",K=!1,Z=window.navigator.userAgent;var k;(function(h){h.Manual="Manual",h.ShuftiPro="ShuftiPro"})(k||(k={}));var C;(function(h){h.Requested="Requested"})(C||(C={}));var j;(function(h){h.Unknown="Unknown",h.Unverified="Unverified",h.InProgress="InProgress",h.Failed="Failed",h.Verified="Verified",h.Referred="Referred",h.True="True",h.False="False",h.AwaitingForResponse="AwaitingForResponse"})(j||(j={}));var ie;(function(h){h.Unknown="Unknown",h.Documents="Documents",h.Age="Age",h.Pep="Pep",h.Sanction="Sanction",h.Aml="Aml",h.ProofOfAddress="ProofOfAddress",h.SourceOfWealth="SourceOfWealth",h.SocialMedia="SocialMedia",h.Biometric="Biometric"})(ie||(ie={}));const E=h=>{h.data&&h.data.type};a.onMount(()=>(window.addEventListener("message",E),_r(),()=>{window.removeEventListener("message",E)}));const b=[j.InProgress,j.Referred,j.AwaitingForResponse],p=()=>{let h=u;if(h)return fetch(h).then(_=>_.json()).then(_=>{Object.keys(_).forEach(I=>{Ht(I,_[I])})}).catch(_=>{console.log(_)})};Object.keys(Ot).forEach(h=>{Ht(h,Ot[h])});const y=()=>{vn(s)},v=()=>{r(18,A=N());const h=new URL(`${o}/v1/player/${m}/verification/GetKYCCustomerStatus?language=${s}`),_=new Headers;_.append("accept","application/json"),_.append("Content-Type","application/json"),_.append("x-sessionid",`${g}`),_.append("X-Client-Request-Timestamp",Lt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const I={method:"POST",headers:_,body:JSON.stringify({})};r(7,K=!0),fetch(h,I).then(z=>z.json()).then(z=>{const oe=S(z==null?void 0:z.Verifications);R=V(oe),R.VerificationStatuses.forEach(Pe=>{Pe.VerificationUrlType!=="Widget"&&d.add(Pe.Vendor)}),r(3,H=ue())}).finally(()=>r(7,K=!1))},S=h=>h?h.sort((_,I)=>new Date(I.Created).getTime()-new Date(_.Created).getTime()):[],T=()=>{n&&v()},N=()=>{let h=(c||n).split(".")[1];if(h){let _=JSON.parse(atob(h));return _.cdn+"/cashier/operator-assets/"+(_==null?void 0:_.mid)}return""},V=h=>{var I;if(!h||!h.length)return{VerificationSummaryStatus:j.Unverified,VerificationStatuses:[]};const _=Y(h);if(_&&_.length){const z=G(_);return{VerificationSummaryStatus:z.Status,VerificationUrl:(I=z.Flags)==null?void 0:I.DeferredUrlKey,VerificationStatuses:$(_,z.Status)}}else return{VerificationSummaryStatus:h.some(oe=>oe.Status===j.Failed)?j.Failed:j.Verified,VerificationStatuses:$(h,[j.Failed])}},G=h=>h.reduce((_,I)=>_?new Date(_)<new Date(I)?I:_:I,0),$=(h,_)=>h.filter(I=>_.includes(I.Status)).map(I=>{var z,oe;return{Type:I.Type,Vendor:I.VendorName,VerificationDocuments:I.Documents?[...I.Documents]:[],VerificationUrlType:(z=I.FlowInfo)==null?void 0:z.Type,VerificationUrl:(oe=I.FlowInfo)==null?void 0:oe.Url}}),Y=h=>h.filter(_=>b.includes(_.Status)?_.FlowInfo&&_.FlowInfo.Url||ne(_)||ee(_):!1),ne=h=>{const _=h.Documents&&h.VendorName===k.Manual,I=h.Documents&&h.Documents.some(z=>z.Status===C.Requested);return _&&I},ee=h=>h.VendorName===k.ShuftiPro&&h.Status===j.Referred,ue=()=>{switch(R.VerificationSummaryStatus){case j.InProgress:const h=[];return d.forEach(_=>{h.push(te(_))}),h;case j.Referred:return[i("verification.idenfy.referred-awaiting")];case j.Failed:return[i("verification.message.failed")]}},te=h=>{const _=R.VerificationStatuses.filter(I=>I.Vendor===h);if(h===k.ShuftiPro)return X(_);{const I=i("verification.idenfy.link-name"),z={link:`<a href="${_[0].VerificationUrl}" target="_blank">${I}</a>`};return i("verification.idenfy.in-progress",{values:z})}},X=h=>{const _=[],I={},z=[ie.Biometric,ie.Documents,ie.ProofOfAddress];h.forEach(he=>{z.includes(he.Type)&&(_.push(he.Type),I[he.Type]=J(he,le(he.Type)))});let oe=_.every(he=>L.has(he)),Pe=`verification.shuftipro.in-progress.${_.sort().join(".")}`;return oe?i("verification.shuftipro.validations-started"):i(Pe,{values:I})},J=(h,_)=>`<a class="verificationLink ${h.Type}" href=" ${h.VerificationUrl} " target="_blank">${_}</a>`,le=h=>i(`verification.shuftipro.link-name.${h}`),ce=()=>{r(4,O=!O)},_r=()=>{r(5,D=!Cn(Z))},Er=()=>{W=A+"/"+s+"/"+Vn;try{fetch(W,{method:"HEAD"}).then(h=>{r(6,P=h.ok)})}catch(h){r(6,P=!1)}},wr=()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"video",data:{videoSrc:W}}}))};function Sr(h){a.binding_callbacks[h?"unshift":"push"](()=>{w=h,r(2,w)})}return e.$$set=h=>{"endpoint"in h&&r(11,o=h.endpoint),"lang"in h&&r(12,s=h.lang),"translationurl"in h&&r(13,u=h.translationurl),"clientstyling"in h&&r(0,l=h.clientstyling),"clientstylingurl"in h&&r(1,f=h.clientstylingurl),"session"in h&&r(14,c=h.session),"customerid"in h&&r(15,m=h.customerid),"playersession"in h&&r(16,g=h.playersession),"mbsource"in h&&r(17,x=h.mbsource)},e.$$.update=()=>{e.$$.dirty[0]&4096&&s&&y(),e.$$.dirty[0]&83968&&o&&c&&g&&v(),e.$$.dirty[0]&83968&&o&&!c&&g&&T(),e.$$.dirty[0]&8192&&u&&p(),e.$$.dirty[0]&5&&l&&w&&a.setClientStyling(w,l),e.$$.dirty[0]&6&&f&&w&&a.setClientStylingURL(w,f),e.$$.dirty[0]&262144&&A&&Er(),e.$$.dirty[0]&131076&&x&&w&&a.setStreamStyling(w,`${x}.Style`)},[l,f,w,H,O,D,P,K,i,ce,wr,o,s,u,c,m,g,x,A,Sr]}class xr extends a.SvelteComponent{constructor(t){super(),a.init(this,t,Fn,Un,a.safe_not_equal,{endpoint:11,lang:12,translationurl:13,clientstyling:0,clientstylingurl:1,session:14,customerid:15,playersession:16,mbsource:17},Nn,[-1,-1])}get endpoint(){return this.$$.ctx[11]}set endpoint(t){this.$$set({endpoint:t}),a.flush()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),a.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),a.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),a.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),a.flush()}get session(){return this.$$.ctx[14]}set session(t){this.$$set({session:t}),a.flush()}get customerid(){return this.$$.ctx[15]}set customerid(t){this.$$set({customerid:t}),a.flush()}get playersession(){return this.$$.ctx[16]}set playersession(t){this.$$set({playersession:t}),a.flush()}get mbsource(){return this.$$.ctx[17]}set mbsource(t){this.$$set({mbsource:t}),a.flush()}}a.create_custom_element(xr,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},playersession:{},mbsource:{}},[],[],!0);exports.default=xr;
20
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function at(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Fe=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,n,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var u=nt(s),l=u.next();!l.done;l=u.next()){var f=l.value;f.remove(this)}}catch(d){t={error:d}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}else s.remove(this);var c=this.initialTeardown;if(re(c))try{c()}catch(d){o=d instanceof qe?d.errors:[d]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var g=nt(m),x=g.next();!x.done;x=g.next()){var w=x.value;try{Pt(w)}catch(d){o=o!=null?o:[],d instanceof qe?o=st(st([],ot(o)),ot(d.errors)):o.push(d)}}}catch(d){i={error:d}}finally{try{x&&!x.done&&(n=g.return)&&n.call(g)}finally{if(i)throw i.error}}}if(o)throw new qe(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Pt(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&at(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&at(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),dr=Fe.EMPTY;function pr(e){return e instanceof Fe||e&&"closed"in e&&re(e.remove)&&re(e.add)&&re(e.unsubscribe)}function Pt(e){re(e)?e():e.unsubscribe()}var bn={Promise:void 0},yn={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,st([e,t],ot(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function xn(e){yn.setTimeout(function(){throw e})}function At(){}function Ie(e){e()}var mr=function(e){Oe(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,pr(r)&&r.add(i)):i.destination=wn,i}return t.create=function(r,i,n){return new ut(r,i,n)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Fe),_n=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(i){Me(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){Me(i)}else Me(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Me(r)}},e}(),ut=function(e){Oe(t,e);function t(r,i,n){var o=e.call(this)||this,s;return re(r)||!r?s={next:r!=null?r:void 0,error:i!=null?i:void 0,complete:n!=null?n:void 0}:s=r,o.destination=new _n(s),o}return t}(mr);function Me(e){xn(e)}function En(e){throw e}var wn={closed:!0,next:At,error:En,complete:At},Sn=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Tn(e){return e}function Hn(e){return e.length===0?Tn:e.length===1?e[0]:function(r){return e.reduce(function(i,n){return n(i)},r)}}var Mt=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,i){var n=this,o=Pn(t)?t:new ut(t,r,i);return Ie(function(){var s=n,u=s.operator,l=s.source;o.add(u?u.call(o,l):l?n._subscribe(o):n._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=Bt(r),new r(function(n,o){var s=new ut({next:function(u){try{t(u)}catch(l){o(l),s.unsubscribe()}},error:o,complete:n});i.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Sn]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Hn(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Bt(t),new t(function(i,n){var o;r.subscribe(function(s){return o=s},function(s){return n(s)},function(){return i(o)})})},e.create=function(t){return new e(t)},e}();function Bt(e){var t;return(t=e!=null?e:bn.Promise)!==null&&t!==void 0?t:Promise}function On(e){return e&&re(e.next)&&re(e.error)&&re(e.complete)}function Pn(e){return e&&e instanceof mr||On(e)&&pr(e)}var An=cr(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),vr=function(e){Oe(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var i=new Ct(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new An},t.prototype.next=function(r){var i=this;Ie(function(){var n,o;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var s=nt(i.currentObservers),u=s.next();!u.done;u=s.next()){var l=u.value;l.next(r)}}catch(f){n={error:f}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}}})},t.prototype.error=function(r){var i=this;Ie(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var n=i.observers;n.length;)n.shift().error(r)}})},t.prototype.complete=function(){var r=this;Ie(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,n=this,o=n.hasError,s=n.isStopped,u=n.observers;return o||s?dr:(this.currentObservers=null,u.push(r),new Fe(function(){i.currentObservers=null,at(u,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,n=i.hasError,o=i.thrownError,s=i.isStopped;n?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new Mt;return r.source=this,r},t.create=function(r,i){return new Ct(r,i)},t}(Mt),Ct=function(e){Oe(t,e);function t(r,i){var n=e.call(this)||this;return n.destination=r,n.source=i,n}return t.prototype.next=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,r)},t.prototype.error=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&n!==void 0?n:dr},t}(vr),gr={now:function(){return(gr.delegate||Date).now()},delegate:void 0},Mn=function(e){Oe(t,e);function t(r,i,n){r===void 0&&(r=1/0),i===void 0&&(i=1/0),n===void 0&&(n=gr);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=i,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=i===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,i),o}return t.prototype.next=function(r){var i=this,n=i.isStopped,o=i._buffer,s=i._infiniteTimeWindow,u=i._timestampProvider,l=i._windowTime;n||(o.push(r),!s&&o.push(u.now()+l)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(r),n=this,o=n._infiniteTimeWindow,s=n._buffer,u=s.slice(),l=0;l<u.length&&!r.closed;l+=o?1:2)r.next(u[l]);return this._checkFinalizedStatuses(r),i},t.prototype._trimBuffer=function(){var r=this,i=r._bufferSize,n=r._timestampProvider,o=r._buffer,s=r._infiniteTimeWindow,u=(s?1:2)*i;if(i<1/0&&u<o.length&&o.splice(0,o.length-u),!s){for(var l=n.now(),f=0,c=1;c<o.length&&o[c]<=l;c+=2)f=c;f&&o.splice(0,f+1)}},t}(vr);const It=[],Dt={},Bn=(e,t=0)=>{if(It.indexOf(e)==-1){const r=new Mn(t);Dt[e]=r,It.push(e)}return Dt[e]};window.emWidgets={topic:Bn};const Cn=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));String(Number.MAX_SAFE_INTEGER).length;if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CashierModal-CsJICZpd.cjs")).then(t=>t.CashierModal_ce).then(({default:t})=>{!customElements.get("cashier-modal")&&customElements.define("cashier-modal",t.element)})}var br={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(Vt,function(){var r=1e3,i=6e4,n=36e5,o="millisecond",s="second",u="minute",l="hour",f="day",c="week",m="month",g="quarter",x="year",w="date",d="Invalid Date",L=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(E){var b=["th","st","nd","rd"],p=E%100;return"["+E+(b[(p-20)%10]||b[p]||b[0])+"]"}},H=function(E,b,p){var y=String(E);return!y||y.length>=b?E:""+Array(b+1-y.length).join(p)+E},O={s:H,z:function(E){var b=-E.utcOffset(),p=Math.abs(b),y=Math.floor(p/60),v=p%60;return(b<=0?"+":"-")+H(y,2,"0")+":"+H(v,2,"0")},m:function E(b,p){if(b.date()<p.date())return-E(p,b);var y=12*(p.year()-b.year())+(p.month()-b.month()),v=b.clone().add(y,m),S=p-v<0,T=b.clone().add(y+(S?-1:1),m);return+(-(y+(p-v)/(S?v-T:T-v))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:m,y:x,w:c,d:f,D:w,h:l,m:u,s,ms:o,Q:g}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},D="en",P={};P[D]=A;var W="$isDayjsObject",K=function(E){return E instanceof j||!(!E||!E[W])},Z=function E(b,p,y){var v;if(!b)return D;if(typeof b=="string"){var S=b.toLowerCase();P[S]&&(v=S),p&&(P[S]=p,v=S);var T=b.split("-");if(!v&&T.length>1)return E(T[0])}else{var N=b.name;P[N]=b,v=N}return!y&&v&&(D=v),v||!y&&D},k=function(E,b){if(K(E))return E.clone();var p=typeof b=="object"?b:{};return p.date=E,p.args=arguments,new j(p)},C=O;C.l=Z,C.i=K,C.w=function(E,b){return k(E,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var j=function(){function E(p){this.$L=Z(p.locale,null,!0),this.parse(p),this.$x=this.$x||p.x||{},this[W]=!0}var b=E.prototype;return b.parse=function(p){this.$d=function(y){var v=y.date,S=y.utc;if(v===null)return new Date(NaN);if(C.u(v))return new Date;if(v instanceof Date)return new Date(v);if(typeof v=="string"&&!/Z$/i.test(v)){var T=v.match(L);if(T){var N=T[2]-1||0,V=(T[7]||"0").substring(0,3);return S?new Date(Date.UTC(T[1],N,T[3]||1,T[4]||0,T[5]||0,T[6]||0,V)):new Date(T[1],N,T[3]||1,T[4]||0,T[5]||0,T[6]||0,V)}}return new Date(v)}(p),this.init()},b.init=function(){var p=this.$d;this.$y=p.getFullYear(),this.$M=p.getMonth(),this.$D=p.getDate(),this.$W=p.getDay(),this.$H=p.getHours(),this.$m=p.getMinutes(),this.$s=p.getSeconds(),this.$ms=p.getMilliseconds()},b.$utils=function(){return C},b.isValid=function(){return this.$d.toString()!==d},b.isSame=function(p,y){var v=k(p);return this.startOf(y)<=v&&v<=this.endOf(y)},b.isAfter=function(p,y){return k(p)<this.startOf(y)},b.isBefore=function(p,y){return this.endOf(y)<k(p)},b.$g=function(p,y,v){return C.u(p)?this[y]:this.set(v,p)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(p,y){var v=this,S=!!C.u(y)||y,T=C.p(p),N=function(te,X){var J=C.w(v.$u?Date.UTC(v.$y,X,te):new Date(v.$y,X,te),v);return S?J:J.endOf(f)},V=function(te,X){return C.w(v.toDate()[te].apply(v.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(X)),v)},G=this.$W,$=this.$M,Y=this.$D,ne="set"+(this.$u?"UTC":"");switch(T){case x:return S?N(1,0):N(31,11);case m:return S?N(1,$):N(0,$+1);case c:var ee=this.$locale().weekStart||0,ue=(G<ee?G+7:G)-ee;return N(S?Y-ue:Y+(6-ue),$);case f:case w:return V(ne+"Hours",0);case l:return V(ne+"Minutes",1);case u:return V(ne+"Seconds",2);case s:return V(ne+"Milliseconds",3);default:return this.clone()}},b.endOf=function(p){return this.startOf(p,!1)},b.$set=function(p,y){var v,S=C.p(p),T="set"+(this.$u?"UTC":""),N=(v={},v[f]=T+"Date",v[w]=T+"Date",v[m]=T+"Month",v[x]=T+"FullYear",v[l]=T+"Hours",v[u]=T+"Minutes",v[s]=T+"Seconds",v[o]=T+"Milliseconds",v)[S],V=S===f?this.$D+(y-this.$W):y;if(S===m||S===x){var G=this.clone().set(w,1);G.$d[N](V),G.init(),this.$d=G.set(w,Math.min(this.$D,G.daysInMonth())).$d}else N&&this.$d[N](V);return this.init(),this},b.set=function(p,y){return this.clone().$set(p,y)},b.get=function(p){return this[C.p(p)]()},b.add=function(p,y){var v,S=this;p=Number(p);var T=C.p(y),N=function($){var Y=k(S);return C.w(Y.date(Y.date()+Math.round($*p)),S)};if(T===m)return this.set(m,this.$M+p);if(T===x)return this.set(x,this.$y+p);if(T===f)return N(1);if(T===c)return N(7);var V=(v={},v[u]=i,v[l]=n,v[s]=r,v)[T]||1,G=this.$d.getTime()+p*V;return C.w(G,this)},b.subtract=function(p,y){return this.add(-1*p,y)},b.format=function(p){var y=this,v=this.$locale();if(!this.isValid())return v.invalidDate||d;var S=p||"YYYY-MM-DDTHH:mm:ssZ",T=C.z(this),N=this.$H,V=this.$m,G=this.$M,$=v.weekdays,Y=v.months,ne=v.meridiem,ee=function(X,J,le,ce){return X&&(X[J]||X(y,S))||le[J].slice(0,ce)},ue=function(X){return C.s(N%12||12,X,"0")},te=ne||function(X,J,le){var ce=X<12?"AM":"PM";return le?ce.toLowerCase():ce};return S.replace(R,function(X,J){return J||function(le){switch(le){case"YY":return String(y.$y).slice(-2);case"YYYY":return C.s(y.$y,4,"0");case"M":return G+1;case"MM":return C.s(G+1,2,"0");case"MMM":return ee(v.monthsShort,G,Y,3);case"MMMM":return ee(Y,G);case"D":return y.$D;case"DD":return C.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return ee(v.weekdaysMin,y.$W,$,2);case"ddd":return ee(v.weekdaysShort,y.$W,$,3);case"dddd":return $[y.$W];case"H":return String(N);case"HH":return C.s(N,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return te(N,V,!0);case"A":return te(N,V,!1);case"m":return String(V);case"mm":return C.s(V,2,"0");case"s":return String(y.$s);case"ss":return C.s(y.$s,2,"0");case"SSS":return C.s(y.$ms,3,"0");case"Z":return T}return null}(X)||T.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(p,y,v){var S,T=this,N=C.p(y),V=k(p),G=(V.utcOffset()-this.utcOffset())*i,$=this-V,Y=function(){return C.m(T,V)};switch(N){case x:S=Y()/12;break;case m:S=Y();break;case g:S=Y()/3;break;case c:S=($-G)/6048e5;break;case f:S=($-G)/864e5;break;case l:S=$/n;break;case u:S=$/i;break;case s:S=$/r;break;default:S=$}return v?S:C.a(S)},b.daysInMonth=function(){return this.endOf(m).$D},b.$locale=function(){return P[this.$L]},b.locale=function(p,y){if(!p)return this.$L;var v=this.clone(),S=Z(p,y,!0);return S&&(v.$L=S),v},b.clone=function(){return C.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},E}(),ie=j.prototype;return k.prototype=ie,[["$ms",o],["$s",s],["$m",u],["$H",l],["$W",f],["$M",m],["$y",x],["$D",w]].forEach(function(E){ie[E[1]]=function(b){return this.$g(b,E[0],E[1])}}),k.extend=function(E,b){return E.$i||(E(b,j,k),E.$i=!0),k},k.locale=Z,k.isDayjs=K,k.unix=function(E){return k(1e3*E)},k.en=P[D],k.Ls=P,k.p={},k})})(br);var In=br.exports;const Lt=lt(In);var yr={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(Vt,function(){var r="minute",i=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(o,s,u){var l=s.prototype;u.utc=function(d){var L={date:d,utc:!0,args:arguments};return new s(L)},l.utc=function(d){var L=u(this.toDate(),{locale:this.$L,utc:!0});return d?L.add(this.utcOffset(),r):L},l.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var f=l.parse;l.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),f.call(this,d)};var c=l.init;l.init=function(){if(this.$u){var d=this.$d;this.$y=d.getUTCFullYear(),this.$M=d.getUTCMonth(),this.$D=d.getUTCDate(),this.$W=d.getUTCDay(),this.$H=d.getUTCHours(),this.$m=d.getUTCMinutes(),this.$s=d.getUTCSeconds(),this.$ms=d.getUTCMilliseconds()}else c.call(this)};var m=l.utcOffset;l.utcOffset=function(d,L){var R=this.$utils().u;if(R(d))return this.$u?0:R(this.$offset)?m.call(this):this.$offset;if(typeof d=="string"&&(d=function(D){D===void 0&&(D="");var P=D.match(i);if(!P)return null;var W=(""+P[0]).match(n)||["-",0,0],K=W[0],Z=60*+W[1]+ +W[2];return Z===0?0:K==="+"?Z:-Z}(d),d===null))return this;var A=Math.abs(d)<=16?60*d:d,H=this;if(L)return H.$offset=A,H.$u=d===0,H;if(d!==0){var O=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(H=this.local().add(A+O,r)).$offset=A,H.$x.$localOffset=O}else H=this.utc();return H};var g=l.format;l.format=function(d){var L=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return g.call(this,L)},l.valueOf=function(){var d=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*d},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var x=l.toDate;l.toDate=function(d){return d==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():x.call(this)};var w=l.diff;l.diff=function(d,L,R){if(d&&this.$u===d.$u)return w.call(this,d,L,R);var A=this.local(),H=u(d).local();return w.call(A,H,L,R)}}})})(yr);var Dn=yr.exports;const Ln=lt(Dn);function Nn(e){a.append_styles(e,"svelte-etf668",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--emw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin:var(--emw--spacing-small, 12px) 0}.CashierVerificationsWrapper{width:100%;padding:10px;border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);position:relative;overflow:hidden;isolation:isolate;flex-direction:column;background-color:rgba(255, 255, 255, 0.063);display:flex;z-index:1;width:97%;margin:auto;cursor:pointer;user-select:none}.CashierVerificationsWrapper::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary) 0%, var(--emw--color-black) 100%);background-size:200% 200%;animation:gradientWave 8s ease infinite}.CashierVerificationsWrapper::after{content:"";position:absolute;inset:-2px;z-index:-2;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary), var(--emw--color-black) transparent);background-size:200% 200%;animation:gradientWave 8s ease infinite reverse;filter:blur(10px);opacity:0.6}@keyframes gradientWave{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}.VerificationsHeader{display:flex;align-items:center}.VerificationsList{max-height:0;overflow:hidden;transform:translateY(-10px);opacity:0;transition:max-height 0.3s ease, transform 0.3s ease, opacity 0.3s ease}.VerificationsList.ShowVerifications{max-height:100%;transform:translateY(0);opacity:1}.CashierVerificationChevron.ShowVerifications svg{-o-transform:rotateX(180deg);-ms-transform:rotateX(180deg);-moz-transform:rotateX(180deg);-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:rgba(0, 0, 0, 0.15);border-radius:10px;margin-bottom:10px;padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg path{stroke:var(--emw--color-typography, var(--emw--color-white, #ffffff))}p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:500;font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word;font-weight:200;font-size:12px}.text a{color:var(--emw--color-primary, #f9c408);font-weight:500}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s;margin-right:5px}.CashierVerificationChevron svg path{fill:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotateX(90deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center;fill:var(--emw--color-primary, #f9c408)}.CashierVerificationVideoLink{cursor:pointer;color:var(--emw--color-primary, #f9c408);font-family:inherit;font-size:var(--emw--font-size-small, 12px);line-height:120%;margin:var(--emw--spacing-small, 12px);font-weight:500}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}')}function Nt(e,t,r){const i=e.slice();return i[53]=t[r],i}function Rn(e){let t,r=e[3].length>0&&Rt(e);return{c(){t=a.element("div"),r&&r.c(),a.attr(t,"class","CashierVerificationsWrapper")},m(i,n){a.insert(i,t,n),r&&r.m(t,null)},p(i,n){i[3].length>0?r?r.p(i,n):(r=Rt(i),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(i){i&&a.detach(t),r&&r.d()}}}function kn(e){let t;return{c(){t=a.element("cashier-spinner"),a.set_custom_element_data(t,"clientstylingurl",e[1]),a.set_custom_element_data(t,"clientstyling",e[0])},m(r,i){a.insert(r,t,i)},p(r,i){i[0]&2&&a.set_custom_element_data(t,"clientstylingurl",r[1]),i[0]&1&&a.set_custom_element_data(t,"clientstyling",r[0])},d(r){r&&a.detach(t)}}}function Rt(e){let t,r,i,n,o,s,u,l=e[8]("verificationsRequired")+"",f,c,m,g,x,w,d,L,R=a.ensure_array_like(e[3]),A=[];for(let O=0;O<R.length;O+=1)A[O]=kt(Nt(e,R,O));let H=e[6]&&Ut(e);return{c(){t=a.element("div"),r=a.svg_element("svg"),i=a.svg_element("path"),n=a.svg_element("path"),o=a.svg_element("path"),s=a.space(),u=a.element("p"),f=a.text(l),c=a.space(),m=a.element("span"),m.innerHTML='<svg width="13" height="8" viewBox="0 0 13 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.335805 2.19101L5.63841 7.62117C5.75331 7.74121 5.89002 7.83649 6.04064 7.9015C6.19127 7.96652 6.35282 8 6.51599 8C6.67917 8 6.84072 7.96652 6.99135 7.9015C7.14197 7.83649 7.27868 7.74121 7.39358 7.62117L12.6344 2.19101C12.7502 2.07195 12.8422 1.93031 12.9049 1.77424C12.9677 1.61818 13 1.45078 13 1.28171C13 1.11265 12.9677 0.945251 12.9049 0.789186C12.8422 0.633121 12.7502 0.491475 12.6344 0.372417C12.4028 0.133886 12.0895 -7.95968e-08 11.763 -1.08144e-07C11.4364 -1.36691e-07 11.1232 0.133886 10.8916 0.372417L6.51599 4.90609L2.14042 0.372417C1.91019 0.135815 1.59946 0.00242849 1.27519 0.00101368C1.11252 3.90151e-05 0.951266 0.0323442 0.80067 0.0960778C0.650074 0.159811 0.513102 0.25372 0.397606 0.372416C0.277618 0.48719 0.180769 0.625461 0.112655 0.779242C0.0445407 0.933023 0.00651199 1.09926 0.000765141 1.26836C-0.00498171 1.43746 0.0216687 1.60606 0.0791753 1.76442C0.136682 1.92279 0.223905 2.06777 0.335805 2.19101Z" fill="#6E738F"></path></svg>',g=a.space(),x=a.element("div");for(let O=0;O<A.length;O+=1)A[O].c();w=a.space(),H&&H.c(),a.attr(i,"d","M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"),a.attr(i,"stroke","#6E738F"),a.attr(i,"stroke-width","2"),a.attr(i,"stroke-linecap","round"),a.attr(i,"stroke-linejoin","round"),a.attr(n,"d","M12 8V12"),a.attr(n,"stroke","#6E738F"),a.attr(n,"stroke-width","2"),a.attr(n,"stroke-linecap","round"),a.attr(n,"stroke-linejoin","round"),a.attr(o,"d","M12 16H12.01"),a.attr(o,"stroke","#6E738F"),a.attr(o,"stroke-width","2"),a.attr(o,"stroke-linecap","round"),a.attr(o,"stroke-linejoin","round"),a.attr(r,"width","24"),a.attr(r,"height","24"),a.attr(r,"viewBox","0 0 24 24"),a.attr(r,"fill","none"),a.attr(r,"xmlns","http://www.w3.org/2000/svg"),a.attr(m,"class","CashierVerificationChevron"),a.toggle_class(m,"ShowVerifications",e[4]),a.attr(t,"class","VerificationsHeader"),a.attr(x,"class","VerificationsList"),a.toggle_class(x,"ShowVerifications",e[4])},m(O,D){a.insert(O,t,D),a.append(t,r),a.append(r,i),a.append(r,n),a.append(r,o),a.append(t,s),a.append(t,u),a.append(u,f),a.append(t,c),a.append(t,m),a.insert(O,g,D),a.insert(O,x,D);for(let P=0;P<A.length;P+=1)A[P]&&A[P].m(x,null);a.append(x,w),H&&H.m(x,null),d||(L=a.listen(t,"click",e[9]),d=!0)},p(O,D){if(D[0]&256&&l!==(l=O[8]("verificationsRequired")+"")&&a.set_data(f,l),D[0]&16&&a.toggle_class(m,"ShowVerifications",O[4]),D[0]&8){R=a.ensure_array_like(O[3]);let P;for(P=0;P<R.length;P+=1){const W=Nt(O,R,P);A[P]?A[P].p(W,D):(A[P]=kt(W),A[P].c(),A[P].m(x,w))}for(;P<A.length;P+=1)A[P].d(1);A.length=R.length}O[6]?H?H.p(O,D):(H=Ut(O),H.c(),H.m(x,null)):H&&(H.d(1),H=null),D[0]&16&&a.toggle_class(x,"ShowVerifications",O[4])},d(O){O&&(a.detach(t),a.detach(g),a.detach(x)),a.destroy_each(A,O),H&&H.d(),d=!1,L()}}}function kt(e){let t,r,i,n,o=e[53]+"";return{c(){t=a.element("div"),r=a.element("div"),r.innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V7L15 2Z" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14 2V6C14 6.53043 14.2107 7.03914 14.5858 7.41421C14.9609 7.78929 15.4696 8 16 8H20" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10 9H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 13H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 17H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>',i=a.space(),n=a.element("p"),a.attr(r,"class","IconVerification"),a.attr(n,"class","text"),a.attr(t,"class","CashierVerificationMessage Test")},m(s,u){a.insert(s,t,u),a.append(t,r),a.append(t,i),a.append(t,n),n.innerHTML=o},p(s,u){u[0]&8&&o!==(o=s[53]+"")&&(n.innerHTML=o)},d(s){s&&a.detach(t)}}}function Ut(e){let t,r,i,n,o=e[8]("verification.video.how-to")+"",s,u,l;return{c(){t=a.element("div"),r=a.element("div"),r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>',i=a.space(),n=a.element("div"),s=a.text(o),a.attr(r,"class","IconVideo"),a.attr(n,"class","CashierVerificationVideoLink"),a.toggle_class(n,"CashierVerificationVideoLinkDesktop",e[5]),a.attr(t,"class","CashierVerificationVideo Test")},m(f,c){a.insert(f,t,c),a.append(t,r),a.append(t,i),a.append(t,n),a.append(n,s),u||(l=a.listen(t,"click",e[10]),u=!0)},p(f,c){c[0]&256&&o!==(o=f[8]("verification.video.how-to")+"")&&a.set_data(s,o),c[0]&32&&a.toggle_class(n,"CashierVerificationVideoLinkDesktop",f[5])},d(f){f&&a.detach(t),u=!1,l()}}}function Un(e){let t;function r(o,s){if(o[7])return kn;if(o[3])return Rn}let i=r(e),n=i&&i(e);return{c(){t=a.element("div"),n&&n.c(),a.attr(t,"class","CashierVerifications"),a.toggle_class(t,"CashierVerificationsDesktop",e[5])},m(o,s){a.insert(o,t,s),n&&n.m(t,null),e[19](t)},p(o,s){i===(i=r(o))&&n?n.p(o,s):(n&&n.d(1),n=i&&i(o),n&&(n.c(),n.m(t,null))),s[0]&32&&a.toggle_class(t,"CashierVerificationsDesktop",o[5])},i:a.noop,o:a.noop,d(o){o&&a.detach(t),n&&n.d(),e[19](null)}}}const Vn="verification_explanation_video_widgets.MP4";function Fn(e,t,r){let i,n;a.component_subscribe(e,mn,h=>r(8,i=h)),a.component_subscribe(e,gn,h=>r(27,n=h)),Lt.extend(Ln);let{endpoint:o}=t,{lang:s="en"}=t,{translationurl:u=""}=t,{clientstyling:l=""}=t,{clientstylingurl:f=""}=t,{session:c=""}=t,{customerid:m=""}=t,{playersession:g=""}=t,{mbsource:x=""}=t,w,d=new Set,L=new Set,R,A,H,O=!1,D=!0,P=!1,W="",K=!1,Z=window.navigator.userAgent;var k;(function(h){h.Manual="Manual",h.ShuftiPro="ShuftiPro"})(k||(k={}));var C;(function(h){h.Requested="Requested"})(C||(C={}));var j;(function(h){h.Unknown="Unknown",h.Unverified="Unverified",h.InProgress="InProgress",h.Failed="Failed",h.Verified="Verified",h.Referred="Referred",h.True="True",h.False="False",h.AwaitingForResponse="AwaitingForResponse"})(j||(j={}));var ie;(function(h){h.Unknown="Unknown",h.Documents="Documents",h.Age="Age",h.Pep="Pep",h.Sanction="Sanction",h.Aml="Aml",h.ProofOfAddress="ProofOfAddress",h.SourceOfWealth="SourceOfWealth",h.SocialMedia="SocialMedia",h.Biometric="Biometric"})(ie||(ie={}));const E=h=>{h.data&&h.data.type};a.onMount(()=>(window.addEventListener("message",E),_r(),()=>{window.removeEventListener("message",E)}));const b=[j.InProgress,j.Referred,j.AwaitingForResponse],p=()=>{let h=u;if(h)return fetch(h).then(_=>_.json()).then(_=>{Object.keys(_).forEach(I=>{Ht(I,_[I])})}).catch(_=>{console.log(_)})};Object.keys(Ot).forEach(h=>{Ht(h,Ot[h])});const y=()=>{vn(s)},v=()=>{r(18,A=N());const h=new URL(`${o}/v1/player/${m}/verification/GetKYCCustomerStatus?language=${s}`),_=new Headers;_.append("accept","application/json"),_.append("Content-Type","application/json"),_.append("x-sessionid",`${g}`),_.append("X-Client-Request-Timestamp",Lt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const I={method:"POST",headers:_,body:JSON.stringify({})};r(7,K=!0),fetch(h,I).then(z=>z.json()).then(z=>{const oe=S(z==null?void 0:z.Verifications);R=V(oe),R.VerificationStatuses.forEach(Pe=>{Pe.VerificationUrlType!=="Widget"&&d.add(Pe.Vendor)}),r(3,H=ue())}).finally(()=>r(7,K=!1))},S=h=>h?h.sort((_,I)=>new Date(I.Created).getTime()-new Date(_.Created).getTime()):[],T=()=>{n&&v()},N=()=>{let h=(c||n).split(".")[1];if(h){let _=JSON.parse(atob(h));return _.cdn+"/cashier/operator-assets/"+(_==null?void 0:_.mid)}return""},V=h=>{var I;if(!h||!h.length)return{VerificationSummaryStatus:j.Unverified,VerificationStatuses:[]};const _=Y(h);if(_&&_.length){const z=G(_);return{VerificationSummaryStatus:z.Status,VerificationUrl:(I=z.Flags)==null?void 0:I.DeferredUrlKey,VerificationStatuses:$(_,z.Status)}}else return{VerificationSummaryStatus:h.some(oe=>oe.Status===j.Failed)?j.Failed:j.Verified,VerificationStatuses:$(h,[j.Failed])}},G=h=>h.reduce((_,I)=>_?new Date(_)<new Date(I)?I:_:I,0),$=(h,_)=>h.filter(I=>_.includes(I.Status)).map(I=>{var z,oe;return{Type:I.Type,Vendor:I.VendorName,VerificationDocuments:I.Documents?[...I.Documents]:[],VerificationUrlType:(z=I.FlowInfo)==null?void 0:z.Type,VerificationUrl:(oe=I.FlowInfo)==null?void 0:oe.Url}}),Y=h=>h.filter(_=>b.includes(_.Status)?_.FlowInfo&&_.FlowInfo.Url||ne(_)||ee(_):!1),ne=h=>{const _=h.Documents&&h.VendorName===k.Manual,I=h.Documents&&h.Documents.some(z=>z.Status===C.Requested);return _&&I},ee=h=>h.VendorName===k.ShuftiPro&&h.Status===j.Referred,ue=()=>{switch(R.VerificationSummaryStatus){case j.InProgress:const h=[];return d.forEach(_=>{h.push(te(_))}),h;case j.Referred:return[i("verification.idenfy.referred-awaiting")];case j.Failed:return[i("verification.message.failed")]}},te=h=>{const _=R.VerificationStatuses.filter(I=>I.Vendor===h);if(h===k.ShuftiPro)return X(_);{const I=i("verification.idenfy.link-name"),z={link:`<a href="${_[0].VerificationUrl}" target="_blank">${I}</a>`};return i("verification.idenfy.in-progress",{values:z})}},X=h=>{const _=[],I={},z=[ie.Biometric,ie.Documents,ie.ProofOfAddress];h.forEach(he=>{z.includes(he.Type)&&(_.push(he.Type),I[he.Type]=J(he,le(he.Type)))});let oe=_.every(he=>L.has(he)),Pe=`verification.shuftipro.in-progress.${_.sort().join(".")}`;return oe?i("verification.shuftipro.validations-started"):i(Pe,{values:I})},J=(h,_)=>`<a class="verificationLink ${h.Type}" href=" ${h.VerificationUrl} " target="_blank">${_}</a>`,le=h=>i(`verification.shuftipro.link-name.${h}`),ce=()=>{r(4,O=!O)},_r=()=>{r(5,D=!Cn(Z))},Er=()=>{W=A+"/"+s+"/"+Vn;try{fetch(W,{method:"HEAD"}).then(h=>{r(6,P=h.ok)})}catch(h){r(6,P=!1)}},wr=()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"video",data:{videoSrc:W}}}))};function Sr(h){a.binding_callbacks[h?"unshift":"push"](()=>{w=h,r(2,w)})}return e.$$set=h=>{"endpoint"in h&&r(11,o=h.endpoint),"lang"in h&&r(12,s=h.lang),"translationurl"in h&&r(13,u=h.translationurl),"clientstyling"in h&&r(0,l=h.clientstyling),"clientstylingurl"in h&&r(1,f=h.clientstylingurl),"session"in h&&r(14,c=h.session),"customerid"in h&&r(15,m=h.customerid),"playersession"in h&&r(16,g=h.playersession),"mbsource"in h&&r(17,x=h.mbsource)},e.$$.update=()=>{e.$$.dirty[0]&4096&&s&&y(),e.$$.dirty[0]&83968&&o&&c&&g&&v(),e.$$.dirty[0]&83968&&o&&!c&&g&&T(),e.$$.dirty[0]&8192&&u&&p(),e.$$.dirty[0]&5&&l&&w&&a.setClientStyling(w,l),e.$$.dirty[0]&6&&f&&w&&a.setClientStylingURL(w,f),e.$$.dirty[0]&262144&&A&&Er(),e.$$.dirty[0]&131076&&x&&w&&a.setStreamStyling(w,`${x}.Style`)},[l,f,w,H,O,D,P,K,i,ce,wr,o,s,u,c,m,g,x,A,Sr]}class xr extends a.SvelteComponent{constructor(t){super(),a.init(this,t,Fn,Un,a.safe_not_equal,{endpoint:11,lang:12,translationurl:13,clientstyling:0,clientstylingurl:1,session:14,customerid:15,playersession:16,mbsource:17},Nn,[-1,-1])}get endpoint(){return this.$$.ctx[11]}set endpoint(t){this.$$set({endpoint:t}),a.flush()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),a.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),a.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),a.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),a.flush()}get session(){return this.$$.ctx[14]}set session(t){this.$$set({session:t}),a.flush()}get customerid(){return this.$$.ctx[15]}set customerid(t){this.$$set({customerid:t}),a.flush()}get playersession(){return this.$$.ctx[16]}set playersession(t){this.$$set({playersession:t}),a.flush()}get mbsource(){return this.$$.ctx[17]}set mbsource(t){this.$$set({mbsource:t}),a.flush()}}a.create_custom_element(xr,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},playersession:{},mbsource:{}},[],[],!0);exports.default=xr;
@@ -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/CashierVerifications-HkQ8MdDi.cjs")).then(({default:t})=>{!customElements.get("cashier-verifications")&&customElements.define("cashier-verifications",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierVerifications-DblaMQNQ.cjs")).then(({default:t})=>{!customElements.get("cashier-verifications")&&customElements.define("cashier-verifications",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CashierVerifications-4DRlPs3v.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CashierVerifications-CUL9BHgC.js").then(({ default: t }) => {
14
14
  !customElements.get("cashier-verifications") && customElements.define("cashier-verifications", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as i } from "../components/CashierVerifications-BkOiwFD_.js";
1
+ import { C as i } from "../components/CashierVerifications-CpFwmo_X.js";
2
2
  function n(t) {
3
3
  return function(...s) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-verifications",
3
- "version": "1.86.6",
3
+ "version": "1.86.7",
4
4
  "type": "module",
5
5
  "main": "es2015/cashier-verifications.cjs",
6
6
  "module": "esnext/cashier-verifications.js",