@everymatrix/cashier-verifications 1.43.4 → 1.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -571,14 +571,14 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
|
571
571
|
(e,t=Wt())=>new vt(e,t,kt().formats,{ignoreTag:kt().ignoreTag}))),fr=(e,t={})=>{var r,i,n,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:c=Wt(),default:u}=s;if(null==c)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Et(e,c);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(o=null!=(n=null==(i=(r=kt()).handleMissingMessage)?void 0:i.call(r,{locale:c,id:e,defaultValue:u}))?n:u)?o:e;if(!a)return l;let h=l;try{h=hr(l,c).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},pr=(e,t)=>((e={})=>{var t=e,{locale:r=Wt()}=t,i=sr(t,["locale"]);return lr(or({locale:r},i))})(t).format(e),dr=(e,t)=>((e={})=>{var t=e,{locale:r=Wt()}=t,i=sr(t,["locale"]);return ur(or({locale:r},i))})(t).format(e),mr=(e,t)=>((e={})=>{var t=e,{locale:r=Wt()}=t,i=sr(t,["locale"]);return cr(or({locale:r},i))})(t).format(e),gr=(e,t=Wt())=>Et(e,t),vr=N([Zt,wt],(()=>fr));function yr(e,t){St(e,t)}N([Zt],(()=>pr)),N([Zt],(()=>dr)),N([Zt],(()=>mr)),N([Zt,wt],(()=>gr)),function(e){const t=e,{formats:r}=t,i=((e,t)=>{var r={};for(var i in e)Lt.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&$t)for(var i of $t(e))t.indexOf(i)<0&&Dt.call(e,i)&&(r[i]=e[i]);return r})(t,["formats"]);let n=e.fallbackLocale;if(e.initialLocale)try{vt.resolveLocale(e.initialLocale)&&(n=e.initialLocale)}catch(t){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}i.warnOnMissingMessages&&(delete i.warnOnMissingMessages,null==i.handleMissingMessage?i.handleMissingMessage=It:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(Nt,i,{initialLocale:n}),r&&("number"in r&&Object.assign(Nt.formats.number,r.number),"date"in r&&Object.assign(Nt.formats.date,r.date),"time"in r&&Object.assign(Nt.formats.time,r.time)),Zt.set(n)}({fallbackLocale:"en"});const br={en:{"verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"},tr:{"verification.idenfy.referred-awaiting":"Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz","verification.message.failed":"Döküman doğrulama başarısız, hesabınız doğrulanamadı","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"Hesabınızdan çekim yapabilmek için kullanıcı doğrulaması gerekiyor. Lütfen kimliğinizi hazır edin ve {link} adresinden doğrulamayı başlatın","verification.shuftipro.in-progress.Biometric":"İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. Doğrulamayı başlatmak için Lütfen linke tıklayın {Biometric}","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Doğrulama Yap","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"},hr:{"verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"}};"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function Er(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}var Tr=Er((function(e,t){e.exports=function(){var e=1e3,t=6e4,r=36e5,i="millisecond",n="second",o="minute",s="hour",a="day",c="week",u="month",l="quarter",h="year",f="date",p="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,g={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 t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},v=function(e,t,r){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(r)+e},y={s:v,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),i=Math.floor(r/60),n=r%60;return(t<=0?"+":"-")+v(i,2,"0")+":"+v(n,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var i=12*(r.year()-t.year())+(r.month()-t.month()),n=t.clone().add(i,u),o=r-n<0,s=t.clone().add(i+(o?-1:1),u);return+(-(i+(r-n)/(o?n-s:s-n))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:h,w:c,d:a,D:f,h:s,m:o,s:n,ms:i,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",E={};E[b]=g;var T="$isDayjsObject",w=function(e){return e instanceof B||!(!e||!e[T])},A=function e(t,r,i){var n;if(!t)return b;if("string"==typeof t){var o=t.toLowerCase();E[o]&&(n=o),r&&(E[o]=r,n=o);var s=t.split("-");if(!n&&s.length>1)return e(s[0])}else{var a=t.name;E[a]=t,n=a}return!i&&n&&(b=n),n||!i&&b},H=function(e,t){if(w(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new B(r)},S=y;S.l=A,S.i=w,S.w=function(e,t){return H(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var B=function(){function g(e){this.$L=A(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[T]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(d);if(i){var n=i[2]-1||0,o=(i[7]||"0").substring(0,3);return r?new Date(Date.UTC(i[1],n,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],n,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return S},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var r=H(e);return this.startOf(t)<=r&&r<=this.endOf(t)},v.isAfter=function(e,t){return H(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<H(e)},v.$g=function(e,t,r){return S.u(e)?this[t]:this.set(r,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var r=this,i=!!S.u(t)||t,l=S.p(e),p=function(e,t){var n=S.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return i?n:n.endOf(a)},d=function(e,t){return S.w(r.toDate()[e].apply(r.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(l){case h:return i?p(1,0):p(31,11);case u:return i?p(1,g):p(0,g+1);case c:var b=this.$locale().weekStart||0,E=(m<b?m+7:m)-b;return p(i?v-E:v+(6-E),g);case a:case f:return d(y+"Hours",0);case s:return d(y+"Minutes",1);case o:return d(y+"Seconds",2);case n:return d(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var r,c=S.p(e),l="set"+(this.$u?"UTC":""),p=(r={},r[a]=l+"Date",r[f]=l+"Date",r[u]=l+"Month",r[h]=l+"FullYear",r[s]=l+"Hours",r[o]=l+"Minutes",r[n]=l+"Seconds",r[i]=l+"Milliseconds",r)[c],d=c===a?this.$D+(t-this.$W):t;if(c===u||c===h){var m=this.clone().set(f,1);m.$d[p](d),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](d);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[S.p(e)]()},v.add=function(i,l){var f,p=this;i=Number(i);var d=S.p(l),m=function(e){var t=H(p);return S.w(t.date(t.date()+Math.round(e*i)),p)};if(d===u)return this.set(u,this.$M+i);if(d===h)return this.set(h,this.$y+i);if(d===a)return m(1);if(d===c)return m(7);var g=(f={},f[o]=t,f[s]=r,f[n]=e,f)[d]||1,v=this.$d.getTime()+i*g;return S.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||p;var i=e||"YYYY-MM-DDTHH:mm:ssZ",n=S.z(this),o=this.$H,s=this.$m,a=this.$M,c=r.weekdays,u=r.months,l=r.meridiem,h=function(e,r,n,o){return e&&(e[r]||e(t,i))||n[r].slice(0,o)},f=function(e){return S.s(o%12||12,e,"0")},d=l||function(e,t,r){var i=e<12?"AM":"PM";return r?i.toLowerCase():i};return i.replace(m,(function(e,i){return i||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return S.s(t.$y,4,"0");case"M":return a+1;case"MM":return S.s(a+1,2,"0");case"MMM":return h(r.monthsShort,a,u,3);case"MMMM":return h(u,a);case"D":return t.$D;case"DD":return S.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(r.weekdaysMin,t.$W,c,2);case"ddd":return h(r.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(o);case"HH":return S.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return d(o,s,!0);case"A":return d(o,s,!1);case"m":return String(s);case"mm":return S.s(s,2,"0");case"s":return String(t.$s);case"ss":return S.s(t.$s,2,"0");case"SSS":return S.s(t.$ms,3,"0");case"Z":return n}return null}(e)||n.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(i,f,p){var d,m=this,g=S.p(f),v=H(i),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,E=function(){return S.m(m,v)};switch(g){case h:d=E()/12;break;case u:d=E();break;case l:d=E()/3;break;case c:d=(b-y)/6048e5;break;case a:d=(b-y)/864e5;break;case s:d=b/r;break;case o:d=b/t;break;case n:d=b/e;break;default:d=b}return p?d:S.a(d)},v.daysInMonth=function(){return this.endOf(u).$D},v.$locale=function(){return E[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),i=A(e,t,!0);return i&&(r.$L=i),r},v.clone=function(){return S.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),_=B.prototype;return H.prototype=_,[["$ms",i],["$s",n],["$m",o],["$H",s],["$W",a],["$M",u],["$y",h],["$D",f]].forEach((function(e){_[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),H.extend=function(e,t){return e.$i||(e(t,B,H),e.$i=!0),H},H.locale=A,H.isDayjs=w,H.unix=function(e){return H(1e3*e)},H.en=E[b],H.Ls=E,H.p={},H}()})),wr=Er((function(e,t){var r,i,n;e.exports=(r="minute",i=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g,function(e,t,o){var s=t.prototype;o.utc=function(e){return new t({date:e,utc:!0,args:arguments})},s.utc=function(e){var t=o(this.toDate(),{locale:this.$L,utc:!0});return e?t.add(this.utcOffset(),r):t},s.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),a.call(this,e)};var c=s.init;s.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var u=s.utcOffset;s.utcOffset=function(e,t){var o=this.$utils().u;if(o(e))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof e&&(e=function(e){void 0===e&&(e="");var t=e.match(i);if(!t)return null;var r=(""+t[0]).match(n)||["-",0,0],o=r[0],s=60*+r[1]+ +r[2];return 0===s?0:"+"===o?s:-s}(e),null===e))return this;var s=Math.abs(e)<=16?60*e:e,a=this;if(t)return a.$offset=s,a.$u=0===e,a;if(0!==e){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(s+c,r)).$offset=s,a.$x.$localOffset=c}else a=this.utc();return a};var l=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var h=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var f=s.diff;s.diff=function(e,t,r){if(e&&this.$u===e.$u)return f.call(this,e,t,r);var i=this.local(),n=o(e).local();return f.call(i,n,t,r)}})}));
|
|
572
572
|
/* src/CashierVerifications.svelte generated by Svelte v3.59.2 */
|
|
573
573
|
function Ar(e,t,r){const i=e.slice();return i[43]=t[r],i[45]=r,i}
|
|
574
|
-
// (
|
|
574
|
+
// (269:2) {#if displayMessages}
|
|
575
575
|
function Hr(e){let t,r=/*displayMessages*/e[1],i=[];for(let t=0;t<r.length;t+=1)i[t]=Br(Ar(e,r,t));return{c(){t=l("div");for(let e=0;e<i.length;e+=1)i[e].c();p(t,"class","CashierVerificationsWrapper")},m(e,r){c(e,t,r);for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,null)},p(e,n){if(/*allVerificationsVisible, showAllVerifications, displayMessages*/22&n[0]){let o;for(r=/*displayMessages*/e[1],o=0;o<r.length;o+=1){const s=Ar(e,r,o);i[o]?i[o].p(s,n):(i[o]=Br(s),i[o].c(),i[o].m(t,null))}for(;o<i.length;o+=1)i[o].d(1);i.length=r.length}},d(e){e&&u(t),function(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}(i,e)}}}
|
|
576
|
-
// (
|
|
576
|
+
// (275:10) {#if displayMessages.length > 1 && index === 0}
|
|
577
577
|
function Sr(e){let t,r,i;function n(...t){/*click_handler*/
|
|
578
578
|
return e[13](/*index*/e[45],...t)}return{c(){t=l("span"),t.innerHTML='<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>',p(t,"class","CashierVerificationChevron")},m(e,o){c(e,t,o),r||(i=f(t,"click",n),r=!0)},p(t,r){e=t},d(e){e&&u(t),r=!1,i()}}}
|
|
579
|
-
// (
|
|
579
|
+
// (271:6) {#each displayMessages as message, index}
|
|
580
580
|
function Br(e){let t,r,i,n,o,s,m,g,v=/*message*/e[43]+"",y=/*displayMessages*/e[1].length>1&&/*index*/0===e[45]&&Sr(e);function b(...t){/*click_handler_1*/
|
|
581
581
|
return e[14](/*index*/e[45],...t)}return{c(){t=l("div"),r=l("div"),r.innerHTML='<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>',i=h(),n=l("p"),o=h(),y&&y.c(),s=h(),p(r,"class","IconVerification"),p(n,"class","text"),p(t,"class","CashierVerificationMessage"),d(t,"ShowAll",/*allVerificationsVisible*/e[2])},m(e,u){c(e,t,u),a(t,r),a(t,i),a(t,n),n.innerHTML=v,a(t,o),y&&y.m(t,null),a(t,s),m||(g=f(t,"click",b),m=!0)},p(r,i){e=r,/*displayMessages*/2&i[0]&&v!==(v=/*message*/e[43]+"")&&(n.innerHTML=v),/*displayMessages*/e[1].length>1&&/*index*/0===e[45]?y?y.p(e,i):(y=Sr(e),y.c(),y.m(t,s)):y&&(y.d(1),y=null),/*allVerificationsVisible*/4&i[0]&&d(t,"ShowAll",/*allVerificationsVisible*/e[2])},d(e){e&&u(t),y&&y.d(),m=!1,g()}}}function _r(t){let r,i=/*displayMessages*/t[1]&&Hr(t);return{c(){r=l("div"),i&&i.c(),this.c=e,p(r,"class","CashierVerifications"),d(r,"CashierVerificationsDesktop",/*desktopView*/t[3])},m(e,n){c(e,r,n),i&&i.m(r,null)
|
|
582
582
|
/*div_binding*/,t[15](r)},p(e,t){/*displayMessages*/e[1]?i?i.p(e,t):(i=Hr(e),i.c(),i.m(r,null)):i&&(i.d(1),i=null),/*desktopView*/8&t[0]&&d(r,"CashierVerificationsDesktop",/*desktopView*/e[3])},i:e,o:e,d(e){e&&u(r),i&&i.d()
|
|
583
|
-
/*div_binding*/,t[15](null)}}}function Pr(e,t,r){let i;var n,o;n=vr,o=e=>r(21,i=e),e.$$.on_destroy.push(s(n,o)),Tr.extend(wr);let a,c,u,{endpoint:l}=t,{lang:h="en"}=t,{translationurl:f=""}=t,{clientstyling:p=""}=t,{clientstylingurl:d=""}=t,{session:m=""}=t,{customerid:g=""}=t,{ismobileview:v=""}=t,y=new Set,E=new Set,T=!0,w=!0;var A,H,S,B;!function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"}(A||(A={})),function(e){e.Requested="Requested"}(H||(H={})),function(e){e.Unknown="Unknown",e.Unverified="Unverified",e.InProgress="InProgress",e.Failed="Failed",e.Verified="Verified",e.Referred="Referred",e.True="True",e.False="False",e.AwaitingForResponse="AwaitingForResponse"}(S||(S={})),function(e){e.Unknown="Unknown",e.Documents="Documents",e.Age="Age",e.Pep="Pep",e.Sanction="Sanction",e.Aml="Aml",e.ProofOfAddress="ProofOfAddress",e.SourceOfWealth="SourceOfWealth",e.SocialMedia="SocialMedia",e.Biometric="Biometric"}(B||(B={}));const _=[S.InProgress,S.Referred,S.AwaitingForResponse];Object.keys(br).forEach((e=>{yr(e,br[e])}));const P=()=>{var e;e=h,Zt.set(e)},O=()=>{let e=m.split(".")[1];if(e){let t=JSON.parse(atob(e));return{merchantId:null==t?void 0:t.mid,customerId:`${null==t?void 0:t.mid}~${g}`}}return{merchantId:null,customerId:null}},M=e=>{var t;if(!e||!e.length)return{VerificationSummaryStatus:S.Unverified,VerificationStatuses:[]};const r=L(e);if(r&&r.length){const e=C(r);return{VerificationSummaryStatus:e.Status,VerificationUrl:null===(t=e.Flags)||void 0===t?void 0:t.DeferredUrlKey,VerificationStatuses:$(r,e.Status)}}return{VerificationSummaryStatus:e.some((e=>e.Status===S.Failed))?S.Failed:S.Verified,VerificationStatuses:$(e,[S.Failed])}},C=e=>e.reduce(((e,t)=>e?new Date(e)<new Date(t)?t:e:t),0),$=(e,t)=>e.filter((e=>t.includes(e.Status))).map((e=>{var t,r;return{Type:e.Type,Vendor:e.VendorName,VerificationDocuments:e.Documents?[...Object.values(e.Documents)]:[],VerificationUrlType:null===(t=e.Flags)||void 0===t?void 0:t.DeferredUrlTypeKey,VerificationUrl:null===(r=e.Flags)||void 0===r?void 0:r.DeferredUrlKey}})),L=e=>e.filter((e=>!!_.includes(e.Status)&&(e.Flags&&e.Flags.DeferredUrlKey||D(e)||I(e)))),D=e=>{const t=e.Documents&&e.VendorName===A.Manual,r=Object.values(e.Documents).some((e=>e.Status===H.Requested));return t&&r},I=e=>e.VendorName===A.ShuftiPro&&e.Status===S.Referred,N=()=>{switch(c.VerificationSummaryStatus){case S.InProgress:const e=[];return y.forEach((t=>{e.push(k(t))})),e;case S.Referred:return[i("verification.idenfy.referred-awaiting")];case S.Failed:return[i("verification.message.failed")]}},k=e=>{const t=c.VerificationStatuses.filter((t=>t.Vendor===e));if(e===A.ShuftiPro)return R(t);{const e=i("verification.idenfy.link-name"),r={link:`<a href="${t[0].VerificationUrl}" target="_blank">${e}</a>`};return i("verification.idenfy.in-progress",{values:r})}},R=e=>{const t=[],r={},n=[B.Biometric,B.Documents,B.ProofOfAddress];e.forEach((e=>{n.includes(e.Type)&&(t.push(e.Type),r[e.Type]=U(e,G(e.Type)))}));let o=t.every((e=>E.has(e))),s=`verification.shuftipro.in-progress.${t.sort().join(".")}`;return o?i("verification.shuftipro.validations-started"):i(s,{values:r})},U=(e,t)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${t}</a>`,G=e=>i(`verification.shuftipro.link-name.${e}`),x=(e,t)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))){if(e.target.closest(".verificationLink")){const t=e.target.className.split(" ")[1];E.add(t),r(1,u=N())}}else 0===t&&r(2,T=!T)};return e.$$set=e=>{"endpoint"in e&&r(5,l=e.endpoint),"lang"in e&&r(6,h=e.lang),"translationurl"in e&&r(7,f=e.translationurl),"clientstyling"in e&&r(8,p=e.clientstyling),"clientstylingurl"in e&&r(9,d=e.clientstylingurl),"session"in e&&r(10,m=e.session),"customerid"in e&&r(11,g=e.customerid),"ismobileview"in e&&r(12,v=e.ismobileview)},e.$$.update=()=>{/*lang*/64&e.$$.dirty[0]&&h&&P(),/*endpoint, session*/1056&e.$$.dirty[0]&&l&&m&&(()=>{const{merchantId:e,customerId:t}=O();if(!e)return;const i=new URL(`${l}/v1/player/verification/GetKYCStatus`),n=new Headers;n.append("accept","application/json"),n.append("Content-Type","application/json"),n.append("X-Client-Request-Timestamp",Tr.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const o={method:"POST",headers:n,body:JSON.stringify({MerchantId:e,CustomerId:t,All:!1,AllParameters:!1})};fetch(i,o).then((e=>e.json())).then((e=>{
|
|
583
|
+
/*div_binding*/,t[15](null)}}}function Pr(e,t,r){let i;var n,o;n=vr,o=e=>r(21,i=e),e.$$.on_destroy.push(s(n,o)),Tr.extend(wr);let a,c,u,{endpoint:l}=t,{lang:h="en"}=t,{translationurl:f=""}=t,{clientstyling:p=""}=t,{clientstylingurl:d=""}=t,{session:m=""}=t,{customerid:g=""}=t,{ismobileview:v=""}=t,y=new Set,E=new Set,T=!0,w=!0;var A,H,S,B;!function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"}(A||(A={})),function(e){e.Requested="Requested"}(H||(H={})),function(e){e.Unknown="Unknown",e.Unverified="Unverified",e.InProgress="InProgress",e.Failed="Failed",e.Verified="Verified",e.Referred="Referred",e.True="True",e.False="False",e.AwaitingForResponse="AwaitingForResponse"}(S||(S={})),function(e){e.Unknown="Unknown",e.Documents="Documents",e.Age="Age",e.Pep="Pep",e.Sanction="Sanction",e.Aml="Aml",e.ProofOfAddress="ProofOfAddress",e.SourceOfWealth="SourceOfWealth",e.SocialMedia="SocialMedia",e.Biometric="Biometric"}(B||(B={}));const _=[S.InProgress,S.Referred,S.AwaitingForResponse];Object.keys(br).forEach((e=>{yr(e,br[e])}));const P=()=>{var e;e=h,Zt.set(e)},O=()=>{let e=m.split(".")[1];if(e){let t=JSON.parse(atob(e));return{merchantId:null==t?void 0:t.mid,customerId:`${null==t?void 0:t.mid}~${g}`}}return{merchantId:null,customerId:null}},M=e=>{var t;if(!e||!e.length)return{VerificationSummaryStatus:S.Unverified,VerificationStatuses:[]};const r=L(e);if(r&&r.length){const e=C(r);return{VerificationSummaryStatus:e.Status,VerificationUrl:null===(t=e.Flags)||void 0===t?void 0:t.DeferredUrlKey,VerificationStatuses:$(r,e.Status)}}return{VerificationSummaryStatus:e.some((e=>e.Status===S.Failed))?S.Failed:S.Verified,VerificationStatuses:$(e,[S.Failed])}},C=e=>e.reduce(((e,t)=>e?new Date(e)<new Date(t)?t:e:t),0),$=(e,t)=>e.filter((e=>t.includes(e.Status))).map((e=>{var t,r;return{Type:e.Type,Vendor:e.VendorName,VerificationDocuments:e.Documents?[...Object.values(e.Documents)]:[],VerificationUrlType:null===(t=e.Flags)||void 0===t?void 0:t.DeferredUrlTypeKey,VerificationUrl:null===(r=e.Flags)||void 0===r?void 0:r.DeferredUrlKey}})),L=e=>e.filter((e=>!!_.includes(e.Status)&&(e.Flags&&e.Flags.DeferredUrlKey||D(e)||I(e)))),D=e=>{const t=e.Documents&&e.VendorName===A.Manual,r=Object.values(e.Documents).some((e=>e.Status===H.Requested));return t&&r},I=e=>e.VendorName===A.ShuftiPro&&e.Status===S.Referred,N=()=>{switch(c.VerificationSummaryStatus){case S.InProgress:const e=[];return y.forEach((t=>{e.push(k(t))})),e;case S.Referred:return[i("verification.idenfy.referred-awaiting")];case S.Failed:return[i("verification.message.failed")]}},k=e=>{const t=c.VerificationStatuses.filter((t=>t.Vendor===e));if(e===A.ShuftiPro)return R(t);{const e=i("verification.idenfy.link-name"),r={link:`<a href="${t[0].VerificationUrl}" target="_blank">${e}</a>`};return i("verification.idenfy.in-progress",{values:r})}},R=e=>{const t=[],r={},n=[B.Biometric,B.Documents,B.ProofOfAddress];e.forEach((e=>{n.includes(e.Type)&&(t.push(e.Type),r[e.Type]=U(e,G(e.Type)))}));let o=t.every((e=>E.has(e))),s=`verification.shuftipro.in-progress.${t.sort().join(".")}`;return o?i("verification.shuftipro.validations-started"):i(s,{values:r})},U=(e,t)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${t}</a>`,G=e=>i(`verification.shuftipro.link-name.${e}`),x=(e,t)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))){if(e.target.closest(".verificationLink")){const t=e.target.className.split(" ")[1];E.add(t),r(1,u=N())}}else 0===t&&r(2,T=!T)};return e.$$set=e=>{"endpoint"in e&&r(5,l=e.endpoint),"lang"in e&&r(6,h=e.lang),"translationurl"in e&&r(7,f=e.translationurl),"clientstyling"in e&&r(8,p=e.clientstyling),"clientstylingurl"in e&&r(9,d=e.clientstylingurl),"session"in e&&r(10,m=e.session),"customerid"in e&&r(11,g=e.customerid),"ismobileview"in e&&r(12,v=e.ismobileview)},e.$$.update=()=>{/*lang*/64&e.$$.dirty[0]&&h&&P(),/*endpoint, session*/1056&e.$$.dirty[0]&&l&&m&&(()=>{const{merchantId:e,customerId:t}=O();if(!e)return;const i=new URL(`${l}/v1/player/verification/GetKYCStatus`),n=new Headers;n.append("accept","application/json"),n.append("Content-Type","application/json"),n.append("X-Client-Request-Timestamp",Tr.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const o={method:"POST",headers:n,body:JSON.stringify({MerchantId:e,CustomerId:t,All:!1,AllParameters:!1})};fetch(i,o).then((e=>e.json())).then((e=>{c=M(e.Verifications),c.VerificationStatuses.forEach((e=>{"Widget"!==e.VerificationUrlType&&y.add(e.Vendor)})),r(1,u=N())}))})(),/*translationurl*/128&e.$$.dirty[0]&&f&&(()=>{if(f)fetch(f).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{yr(t,e[t])}))})).catch((e=>{console.log(e)}))})(),/*clientstyling, customStylingContainer*/257&e.$$.dirty[0]&&p&&a&&(()=>{let e=document.createElement("style");e.innerHTML=p,a.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/513&e.$$.dirty[0]&&d&&a&&(()=>{let e=new URL(d),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{a.appendChild(t)}),1)}))})(),/*ismobileview*/4096&e.$$.dirty[0]&&v&&r(3,w="false"===v)},[a,u,T,w,x,l,h,f,p,d,m,g,v,(e,t)=>x(t,e),(e,t)=>x(t,e),function(e){b[e?"unshift":"push"]((()=>{a=e,r(0,a)}))}]}class Or extends L{constructor(e){super();const t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:calc(var(--emw--size-small, 14px) + 3px);margin:var(--emw--spacing-small, 12px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);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:rotate(180deg)}",this.shadowRoot.appendChild(t),$(this,{target:this.shadowRoot,props:m(this.attributes),customElement:!0},Pr,_r,o,{endpoint:5,lang:6,translationurl:7,clientstyling:8,clientstylingurl:9,session:10,customerid:11,ismobileview:12},null,[-1,-1]),e&&(e.target&&c(e.target,this,e.anchor),e.props&&(this.$set(e.props),_()))}static get observedAttributes(){return["endpoint","lang","translationurl","clientstyling","clientstylingurl","session","customerid","ismobileview"]}get endpoint(){return this.$$.ctx[5]}set endpoint(e){this.$$set({endpoint:e}),_()}get lang(){return this.$$.ctx[6]}set lang(e){this.$$set({lang:e}),_()}get translationurl(){return this.$$.ctx[7]}set translationurl(e){this.$$set({translationurl:e}),_()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(e){this.$$set({clientstyling:e}),_()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),_()}get session(){return this.$$.ctx[10]}set session(e){this.$$set({session:e}),_()}get customerid(){return this.$$.ctx[11]}set customerid(e){this.$$set({customerid:e}),_()}get ismobileview(){return this.$$.ctx[12]}set ismobileview(e){this.$$set({ismobileview:e}),_()}}return!customElements.get("cashier-verifications")&&customElements.define("cashier-verifications",Or),Or}));
|
|
584
584
|
//# sourceMappingURL=cashier-verifications.js.map
|