@saasquatch/mint-components 2.5.10-0 → 2.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +18 -20
- package/dist/cjs/sqm-big-stat_47.cjs.entry.js +2 -2
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +3 -2
- package/dist/cjs/{sqm-user-info-form-view-df5b95be.js → sqm-user-info-form-view-9b773a7c.js} +1 -1
- package/dist/cjs/{subregions-fd4e4ee2.js → subregions-77aac151.js} +8 -0
- package/dist/cjs/{useIndirectTaxForm-76b94531.js → useIndirectTaxForm-102d5c24.js} +3 -3
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +2 -0
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +13 -16
- package/dist/collection/components/tax-and-cash/utils.js +7 -0
- package/dist/esm/sqm-banking-info-form_10.entry.js +18 -20
- package/dist/esm/sqm-big-stat_47.entry.js +2 -2
- package/dist/esm/sqm-stencilbook.entry.js +3 -2
- package/dist/esm/{sqm-user-info-form-view-d35324ba.js → sqm-user-info-form-view-0d95c791.js} +1 -1
- package/dist/esm/{subregions-c7df98a1.js → subregions-ec4682c7.js} +8 -1
- package/dist/esm/{useIndirectTaxForm-6ea561e4.js → useIndirectTaxForm-09809605.js} +3 -3
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/{sqm-user-info-form-view-d35324ba.js → sqm-user-info-form-view-0d95c791.js} +1 -1
- package/dist/esm-es5/{subregions-c7df98a1.js → subregions-ec4682c7.js} +1 -1
- package/dist/esm-es5/{useIndirectTaxForm-6ea561e4.js → useIndirectTaxForm-09809605.js} +2 -2
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-aaf05ef1.entry.js → p-24d56265.entry.js} +1 -1
- package/dist/mint-components/p-2bd3f2ac.system.js +6 -0
- package/dist/mint-components/{p-477fe6fa.system.entry.js → p-363bf460.system.entry.js} +1 -1
- package/dist/mint-components/{p-98659a12.system.js → p-3dc446ec.system.js} +1 -1
- package/dist/mint-components/{p-089c0803.js → p-461a068d.js} +1 -1
- package/dist/mint-components/{p-9e90f38e.entry.js → p-71b1cd71.entry.js} +8 -8
- package/dist/mint-components/p-99d4ddee.js +107 -0
- package/dist/mint-components/p-b1d6a6f2.system.js +1 -0
- package/dist/mint-components/{p-4314e5c9.entry.js → p-c0e26b94.entry.js} +2 -2
- package/dist/mint-components/{p-615dbc66.system.entry.js → p-df62cb1b.system.entry.js} +1 -1
- package/dist/mint-components/p-e78ec46b.system.js +1 -1
- package/dist/mint-components/p-ec78006c.system.entry.js +1 -0
- package/dist/mint-components/{p-2401753b.js → p-f15ad5b6.js} +1 -1
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/utils.d.ts +3 -1
- package/docs/docs.docx +0 -0
- package/docs/stats.json +209 -208
- package/package.json +1 -1
- package/dist/mint-components/p-1cb0fc65.system.js +0 -6
- package/dist/mint-components/p-59f9d9bb.js +0 -107
- package/dist/mint-components/p-db8e74e0.system.entry.js +0 -1
- package/dist/mint-components/p-ed18f6a0.system.js +0 -1
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import{d as n,b as o,f as t,g as e,e as i,v as r,u,ac as a,ad as d}from"./p-807b9f18.js";import{k as c,j as l,m as s,u as f}from"./p-056845fb.js";import{T as v}from"./p-76d36b05.js";import{b as m,c as p,d as E,I,a as h,g as b,e as w}from"./p-461a068d.js";import{j as g}from"./p-c6d2a452.js";import{a as T,T as R,U as y,c as N,d as _}from"./p-f9f604a7.js";var A=function(n){for(var o=Array(n.length),t=0;t<n.length;++t)o[t]=n[t];return o},C=function(n){return Array.isArray(n)?n:[n]},D=function(n,o){var t=n.tabIndex-o.tabIndex;if(t){if(!n.tabIndex)return 1;if(!o.tabIndex)return-1}return t||n.index-o.index},S=function(n,o,t){return A(n).map((function(n,o){return{node:n,index:o,tabIndex:t&&-1===n.tabIndex?(n.dataset||{}).focusGuard?0:-1:n.tabIndex}})).filter((function(n){return!o||n.tabIndex>=0})).sort(D)};const F=["button:enabled:not([readonly])","select:enabled:not([readonly])","textarea:enabled:not([readonly])","input:enabled:not([readonly])","a[href]","area[href]","iframe","object","embed","[tabindex]","[contenteditable]","[autofocus]"];var O="data-focus-lock",V=F.join(","),x=V+", [data-focus-guard]",M=function(n,o){return n.reduce((function(n,t){return n.concat(A(t.querySelectorAll(o?x:V)),t.parentNode?A(t.parentNode.querySelectorAll(F.join(","))).filter((function(n){return n===t})):[])}),[])},L=function n(o){return!o||o===document||o.nodeType===Node.DOCUMENT_NODE||!((t=window.getComputedStyle(o,null))&&t.getPropertyValue&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility")))&&n(o.parentNode);var t},H=function n(o){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.push(o),o.parentNode&&n(o.parentNode,t),t},U=function(n,o){for(var t=H(n),e=H(o),i=0;i<t.length;i+=1){var r=t[i];if(e.indexOf(r)>=0)return r}return!1},P=function(n){return A(n).filter((function(n){return L(n)})).filter((function(n){return function(n){return!(("INPUT"===n.tagName||"BUTTON"===n.tagName)&&("hidden"===n.type||n.disabled))}(n)}))},k=function(n,o){return S(P(M(n,o)),!0,o)},B=function(n){return"INPUT"===n.tagName&&"radio"===n.type},W=function(n,o){return o.filter(B).filter((function(o){return o.name===n.name})).filter((function(n){return n.checked}))[0]||n},j=function(n,o){return n.length>1&&B(n[o])&&n[o].name?n.indexOf(W(n[o],n)):o},Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Q=function n(o){for(var t=o.length,e=0;e<t;e+=1)for(var i=function(t){if(e!==t&&o[e].contains(o[t]))return{v:n(o.filter((function(n){return n!==o[t]})))}},r=0;r<t;r+=1){var u=i(r);if("object"===(void 0===u?"undefined":Y(u)))return u.v}return o},K=function n(o){return o.parentNode?n(o.parentNode):o},$=function(n){return C(n).filter(Boolean).reduce((function(n,o){var t=o.getAttribute(O);return n.push.apply(n,t?Q(A(K(o).querySelectorAll("["+O+'="'+t+'"]:not([data-focus-lock-disabled="disabled"])'))):[o]),n}),[])},q=function(n){return n&&n.dataset&&n.dataset.focusGuard},G=function(n){return!q(n)},z=function(n,o){var t=document&&document.activeElement,e=$(n).filter(G),i=function(n,o,t){var e=C(n),i=C(o),r=e[0],u=null;return i.filter(Boolean).forEach((function(n){u=U(u||n,n)||u,t.filter(Boolean).forEach((function(n){var o=U(r,n);o&&(u=!u||o.contains(u)?o:U(o,u))}))})),u}(t||n,n,e),r=k(e).filter((function(n){return G(n.node)}));if(r[0]||(r=(u=e,S(P(M(u)),!1)).filter((function(n){return G(n.node)})))[0]){var u,a,d,c,l,s=k([i]).map((function(n){return n.node})),f=(a=s,d=r,c=new Map,d.forEach((function(n){return c.set(n.node,n)})),a.map((function(n){return c.get(n)})).filter(Boolean)),v=f.map((function(n){return n.node})),m=function(n,o,t,e,i){var r,u=n.length,a=n[0],d=n[u-1],c=q(t);if(!(n.indexOf(t)>=0)){var l=o.indexOf(t),s=o.indexOf(e||l),f=n.indexOf(e),v=l-s,m=o.indexOf(a),p=o.indexOf(d),E=j(n,0),I=j(n,u-1);return-1===l||-1===f?n.indexOf((r=i&&i.length?i:n)[0]&&r.length>1&&B(r[0])&&r[0].name?W(r[0],r):r[0]):!v&&f>=0?f:l<=m&&c&&Math.abs(v)>1?I:l>=m&&c&&Math.abs(v)>1?E:v&&Math.abs(v)>1?f:l<=m?I:l>p?E:v?Math.abs(v)>1?f:(u+f+v)%u:void 0}}(v,s,t,o,v.filter((l=function(n){return n.reduce((function(n,o){return n.concat(function(n){return P((o=n.querySelectorAll("[data-autofocus-inside]"),A(o).map((function(n){return M([n])})).reduce((function(n,o){return n.concat(o)}),[])));var o}(o))}),[])}(e),function(n){return!!n.autofocus||n.dataset&&!!n.dataset.autofocus||l.indexOf(n)>=0})));return void 0===m?m:f[m]}},X=function(n){return n===document.activeElement},J=0,Z=!1,nn=0,on=null,tn=function(){var n,o,t=!1;if(nn){var e=nn;document&&document.activeElement===document.body||document&&A(document.querySelectorAll("[data-no-focus-lock]")).some((function(n){return n.contains(document.activeElement)}))||(e&&(n=e,!(!(!(o=document&&document.activeElement)||o.dataset&&o.dataset.focusGuard)&&$(n).reduce((function(n,t){return n||t.contains(o)||function(n){return o=A(n.querySelectorAll("iframe")),t=X,!!o.filter((function(n){return n===t}))[0];var o,t}(t)}),!1)))&&(t=function(n){var o,t=z(n,on);if(!Z&&t){if(J>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Z=!0,void setTimeout((function(){Z=!1}),1);J++,(o=t.node).focus(),o.contentWindow&&o.contentWindow.focus(),J--}}(e)),on=document.activeElement)}return t},en=[],rn=function(n){return o=en.filter((function(n){return n})).slice(-1)[0],nn=o,!!void(o&&tn())&&(n&&n.preventDefault(),!0);var o},un=function(n){0===en.length&&document.addEventListener("focusin",rn),en.indexOf(n)<0&&(en.push(n),rn())},an=function(){return"undefined"==typeof window},dn=function(n){n=n||navigator.userAgent;var o=/(iPad).*OS\s([\d_]+)/.test(n);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(n)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(n)}},cn=0,ln=0,sn=0,fn=null,vn=!1,mn=[],pn=function(n){if(an())return!1;if(!n)throw new Error("options must be provided");var o=!1,t={get passive(){o=!0}},e=function(){},i="__TUA_BSL_TEST_PASSIVE__";window.addEventListener(i,e,t),window.removeEventListener(i,e,t);var r=n.capture;return o?n:void 0!==r&&r}({passive:!1}),En=!an()&&"scrollBehavior"in document.documentElement.style,In=function(n){n.cancelable&&n.preventDefault()},hn=function(n){var o,t,e,i,r;an()||(dn().ios?(n&&(Array.isArray(n)?n:[n]).forEach((function(n){n&&-1===mn.indexOf(n)&&(n.ontouchstart=function(n){ln=n.targetTouches[0].clientY,sn=n.targetTouches[0].clientX},n.ontouchmove=function(o){1===o.targetTouches.length&&function(n,o){if(o){var t=o.scrollTop,e=o.scrollLeft,i=o.scrollWidth,r=o.scrollHeight,u=o.clientWidth,a=o.clientHeight,d=n.targetTouches[0].clientX-sn,c=n.targetTouches[0].clientY-ln,l=Math.abs(c)>Math.abs(d);if(l&&(c>0&&0===t||c<0&&t+a+1>=r)||!l&&(d>0&&0===e||d<0&&e+u+1>=i))return In(n)}n.stopPropagation()}(o,n)},mn.push(n))})),vn||(document.addEventListener("touchmove",In,pn),vn=!0)):cn<=0&&(fn=dn().android?(o=document.documentElement,t=document.body,e=o.scrollTop||t.scrollTop,i=Object.assign({},o.style),r=Object.assign({},t.style),o.style.height="100%",o.style.overflow="hidden",t.style.top="-".concat(e,"px"),t.style.width="100%",t.style.height="auto",t.style.position="fixed",t.style.overflow="hidden",function(){o.style.height=i.height||"",o.style.overflow=i.overflow||"",["top","width","height","overflow","position"].forEach((function(n){t.style[n]=r[n]||""})),En?window.scrollTo({top:e,behavior:"instant"}):window.scrollTo(0,e)}):function(){var n=document.body,o=Object.assign({},n.style),t=window.innerWidth-n.clientWidth;return n.style.overflow="hidden",n.style.boxSizing="border-box",n.style.paddingRight="".concat(t,"px"),function(){["overflow","boxSizing","paddingRight"].forEach((function(t){n.style[t]=o[t]||""}))}}()),cn+=1)},bn=function(n){an()||(cn-=1)>0||(dn().ios||"function"!=typeof fn?(n&&(Array.isArray(n)?n:[n]).forEach((function(n){var o=mn.indexOf(n);-1!==o&&(n.ontouchmove=null,n.ontouchstart=null,mn.splice(o,1))})),vn&&(document.removeEventListener("touchmove",In,pn),vn=!1)):fn())};const wn="\n position: fixed !important;\n top: 0 !important;\n right: 0 !important;\n bottom: 0 !important;\n left: 0 !important;\n z-index: 9999999;\n display: block !important;\n width: 100vw;\n height: 100%;\n margin: 0 !important;\n padding: 0 !important;\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n background: rgba(0, 0, 0, 0.6);\n",gn="\n position: absolute !important;\n top: 0 !important;\n right: 0 !important;\n bottom: 0 !important;\n left: 0 !important;\n width: 100vw;\n height: 100%;\n margin: 0 !important;\n padding: 0 !important;\n background: none;\n border: none\n",Tn="\n position: static;\n width: 100%;\n height: 100%;\n";let Rn=function(n){return n.VERIFF_HANDSHAKE="VERIFF_HANDSHAKE",n.VERIFF_RENDER="VERIFF_RENDER",n.VERIFF_STARTED="VERIFF_STARTED",n.VERIFF_SUBMITTED="VERIFF_SUBMITTED",n.VERIFF_FINISHED="VERIFF_FINISHED",n.VERIFF_CANCELED="VERIFF_CANCELED",n.VERIFF_FORCE_RELOAD="VERIFF_FORCE_RELOAD",n.VERIFF_RELOAD_REQUEST="VERIFF_RELOAD_REQUEST",n}({}),yn=function(n){return n.STARTED="STARTED",n.SUBMITTED="SUBMITTED",n.FINISHED="FINISHED",n.CANCELED="CANCELED",n.RELOAD_REQUEST="RELOAD",n}({});const Nn="veriffFrame";function _n(n){let{url:o,lang:t,onEvent:e=(()=>{}),embedded:i=!1,embeddedOptions:r,onReload:u}=n;if(!o)throw new Error("URL is not provided. Please provide a valid Veriff session url.");const a=function(n){if(n)try{return matchMedia("(max-width: 767px), (hover: none)").matches}catch(n){return console.error("Error while checking if iframe is mobile",n),!1}return!1}(i);function d(){const n=document.getElementById(Nn);if(n&&n.parentNode){o=n,en=en.filter((function(n){return n!==o})),rn(),0===en.length&&document.removeEventListener("focusin",rn),bn(n);let t=n.parentNode.parentNode,e=n.parentNode;i&&!a&&(t=n.parentNode,e=n),t&&t.removeChild(e)}else bn();var o;window.removeEventListener("message",c)}function c(n){const o=document.getElementById(Nn);n.data===Rn.VERIFF_HANDSHAKE&&function(n,o){n.contentWindow?.postMessage({name:Rn.VERIFF_RENDER,payload:o},"*")}(o,{version:"2.5.0",isReloadHandled:"function"==typeof u,isVeriffIframeMobile:a,embeddedConfigured:i,embedded:!a&&i}),n.data===Rn.VERIFF_STARTED&&e(yn.STARTED),n.data===Rn.VERIFF_CANCELED&&(d(),e(yn.CANCELED)),n.data===Rn.VERIFF_SUBMITTED&&e(yn.SUBMITTED),n.data===Rn.VERIFF_FINISHED&&(d(),e(yn.FINISHED)),n.data===Rn.VERIFF_FORCE_RELOAD&&window.location.reload(),n.data===Rn.VERIFF_RELOAD_REQUEST&&("function"==typeof u&&u(),e(yn.RELOAD_REQUEST))}return function(n,o,t,e){const i=document.createElement("iframe");if(i.src=n,i.allow="autoplay; camera; microphone; fullscreen; accelerometer; magnetometer; gyroscope; picture-in-picture;",i.id=Nn,o)!function(n){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const{rootElementID:e}=o;if(t){n.style.cssText=gn;const o=document.createElement("div");o.style.cssText=wn,o.appendChild(n),document.body.appendChild(o),un(n),hn(n)}else{if(!e)throw new Error("rootElementID must be specified in embedded mode");if(!document.getElementById(e))throw new Error("rootElementID must point to an existing DOM element");n.style.cssText=Tn,document.getElementById(e).appendChild(n)}}(i,t,e);else{i.style.cssText=gn;const n=function(){const n=document.createElement("div");return n.style.cssText=wn,n}();n.appendChild(i),document.body.appendChild(n),un(i),hn(i)}}(t&&t.length>0?function(n,o,t){if(t){const o=new URL(n),e=o.searchParams;return e.set("lang",t),o.search=e.toString(),o.toString()}return n}(o,0,t):o,i,r,a),window.addEventListener("message",c),{close:d}}const An=n.gql`
|
|
2
|
+
mutation createImpactVerificationSession($user: UserIdInput!) {
|
|
3
|
+
createImpactPublisherIdentityVerificationSession(user: $user) {
|
|
4
|
+
sessionUrl
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
`,Cn=n.gql`
|
|
8
|
+
mutation refreshImpactPublisherFinanceStatus($user: UserIdInput!) {
|
|
9
|
+
refreshImpactPublisherFinanceStatus(user: $user) {
|
|
10
|
+
id
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
`,Dn="sqm:veriff-updated";function Sn(){const{id:n,accountId:e}=o(),[i,{loading:r,errors:u}]=t(An),[a,{loading:d,errors:c}]=t(Cn);return{render:async()=>{try{const o=await i({user:{id:n,accountId:e}});if(!o||o.message)throw new Error;_n({url:o.createImpactPublisherIdentityVerificationSession.sessionUrl,onEvent:o=>{switch(o){case yn.FINISHED:case yn.CANCELED:(async()=>{try{const o=await a({user:{id:n,accountId:e}});if(!o||o.message)throw new Error;window.dispatchEvent(new Event(Dn))}catch(n){console.error("Failed to initialise Veriff:",n)}})()}}})}catch(n){console.error("Failed to initialise Veriff:",n)}},loading:r||d,errors:u||c}}const Fn=n.gql`
|
|
14
|
+
query getUserStatus {
|
|
15
|
+
user: viewer {
|
|
16
|
+
... on User {
|
|
17
|
+
id
|
|
18
|
+
impactConnection {
|
|
19
|
+
connected
|
|
20
|
+
publisher {
|
|
21
|
+
id
|
|
22
|
+
currency
|
|
23
|
+
currentTaxDocument {
|
|
24
|
+
status
|
|
25
|
+
type
|
|
26
|
+
dateCreated
|
|
27
|
+
}
|
|
28
|
+
withdrawalSettings {
|
|
29
|
+
paymentMethod
|
|
30
|
+
paypalEmailAddress
|
|
31
|
+
bankCountry
|
|
32
|
+
bankAccountNumber
|
|
33
|
+
paymentSchedulingType
|
|
34
|
+
paymentThreshold
|
|
35
|
+
paymentDay
|
|
36
|
+
}
|
|
37
|
+
payoutsAccount {
|
|
38
|
+
hold
|
|
39
|
+
holdReasons
|
|
40
|
+
balance
|
|
41
|
+
balanceAmount
|
|
42
|
+
currencyCode
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
`,On=n.gql`
|
|
50
|
+
query getTenantSettings {
|
|
51
|
+
tenantSettings {
|
|
52
|
+
enforceUsTaxCompliance
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
`;function Vn(n){var o,t,e,i,r,u,a,d;const c=null===(t=null===(o=n.user.impactConnection)||void 0===o?void 0:o.publisher)||void 0===t?void 0:t.payoutsAccount;if(!(null===(i=null===(e=n.user)||void 0===e?void 0:e.impactConnection)||void 0===i?void 0:i.connected)||!c)return"INFORMATION_REQUIRED";const l=null===(u=null===(r=n.user.impactConnection)||void 0===r?void 0:r.publisher)||void 0===u?void 0:u.currentTaxDocument,s=c.balanceAmount>0,f=(null!==(a=c.holdReasons)&&void 0!==a?a:[]).filter((n=>"NEW_PAYEE_REVIEW"!==n||s));if(f.includes("NO_W9_DOCUMENT")&&!l)return"OVER_W9_THRESHOLD";if(f.includes("IDV_CHECK_REQUIRED"))return"VERIFICATION:REQUIRED";if(f.includes("IDV_CHECK_REQUIRED_INTERNAL"))return"VERIFICATION:INTERNAL";if(f.includes("IDV_CHECK_REVIEW_INTERNAL"))return"VERIFICATION:REVIEW";if(f.includes("IDV_CHECK_FAILED_INTERNAL"))return"VERIFICATION:FAILED";if(f.includes("NEW_PAYEE_REVIEW"))return"NEW_PAYEE_REVIEW";if(f.includes("PAYMENT_HOLD_ON_CHANGE"))return"PAYMENT_HOLD_ON_CHANGE";if(f.includes("BENEFICIARY_NAME_INVALID"))return"BENEFICIARY_NAME_INVALID";if(f.includes("BENEFICIARY_NAME_MISMATCH"))return"BENEFICIARY_NAME_MISMATCH";if(f.includes("BANK_TAX_NAME_MISMATCH"))return"BANK_TAX_NAME_MISMATCH";if(f.includes("WITHDRAWAL_SETTINGS_INVALID"))return"WITHDRAWAL_SETTINGS_INVALID";if(f.includes("PAYMENT_RETURNED"))return"PAYMENT_RETURNED";const v=!(null===(d=c.holdReasons)||void 0===d?void 0:d.length);return c.hold&&(f.length>0||v)?"HOLD":"DONE"}function xn(n){var o,t,r,u,a;const{type:d}=e(),{loading:s,data:f,errors:E,refetch:I}=i(Fn,{}),{data:h}=i(On,{}),{render:b,loading:w}=Sn(),[g,T]=c(void 0),R=null===(o=null==h?void 0:h.tenantSettings)||void 0===o?void 0:o.enforceUsTaxCompliance;return l((()=>{if(!f)return;const n=Vn(f);T(n)}),[f]),l((()=>{const n=()=>I();return window.addEventListener(v,n),window.addEventListener(Dn,n),()=>{window.removeEventListener(v,n),window.removeEventListener(Dn,n)}}),[]),{states:{loading:s,veriffLoading:w,status:g,error:!!E,enforceUsTaxComplianceOption:R,belowPayoutThreshold:m(null===(r=null===(t=null==f?void 0:f.user)||void 0===t?void 0:t.impactConnection)||void 0===r?void 0:r.publisher),minPayoutAmount:p(null===(a=null===(u=null==f?void 0:f.user)||void 0===u?void 0:u.impactConnection)||void 0===a?void 0:a.publisher)},data:{type:d},text:n.getTextProps(),callbacks:{onTermsClick:()=>{let o=n.cashPayoutsPageUrl;o.includes("#")&&(o=o.split("#")[0]),"INFORMATION_REQUIRED"===g?o+="#1":"OVER_W9_THRESHOLD"===g&&"CASH_ONLY_DEFER_W9"===R&&(o+="#3"),window.history.pushState(null,"",o)},onClick:b,onPaymentInfoClick:()=>{let o=n.cashPayoutsPageUrl;o+="#4",window.history.pushState(null,"",o)},onNewFormClick:()=>{let o=n.cashPayoutsPageUrl;o+="#3",window.history.pushState(null,"",o)}}}}const Mn=n.gql`
|
|
56
|
+
mutation createImpactConnection($vars: ImpactConnectionInput!) {
|
|
57
|
+
createImpactConnection(impactConnectionInput: $vars) {
|
|
58
|
+
success
|
|
59
|
+
validationErrors {
|
|
60
|
+
field
|
|
61
|
+
message
|
|
62
|
+
}
|
|
63
|
+
user {
|
|
64
|
+
id
|
|
65
|
+
accountId
|
|
66
|
+
impactConnection {
|
|
67
|
+
connected
|
|
68
|
+
publisher {
|
|
69
|
+
brandedSignup
|
|
70
|
+
requiredTaxDocumentType
|
|
71
|
+
currentTaxDocument {
|
|
72
|
+
type
|
|
73
|
+
status
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
`,Ln=n.gql`
|
|
81
|
+
mutation completeImpactConnection($vars: ImpactConnectionInput!) {
|
|
82
|
+
completeImpactConnection(impactConnectionInput: $vars) {
|
|
83
|
+
success
|
|
84
|
+
validationErrors {
|
|
85
|
+
field
|
|
86
|
+
message
|
|
87
|
+
}
|
|
88
|
+
user {
|
|
89
|
+
id
|
|
90
|
+
accountId
|
|
91
|
+
impactConnection {
|
|
92
|
+
connected
|
|
93
|
+
publisher {
|
|
94
|
+
phoneNumber
|
|
95
|
+
phoneNumberCountryCode
|
|
96
|
+
brandedSignup
|
|
97
|
+
requiredTaxDocumentType
|
|
98
|
+
currentTaxDocument {
|
|
99
|
+
type
|
|
100
|
+
status
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
`;function Hn(n){var e,i,m,p,A,C,D,S,F;const O=o(),V=r(),x=s(null),M=u(T),[L,H]=a(R),[U,{loading:P}]=t(Mn),[k,{loading:B}]=t(Ln),W=u(y),{data:j,refetch:Y,errors:Q}=d(N),{data:K,loading:$}=d(_),q=(null==V?void 0:V.replace("_","-"))||"en",G=f((()=>{var n,o;return null===(o=null===(n=null==K?void 0:K.impactPayoutCountries)||void 0===n?void 0:n.data)||void 0===o?void 0:o.map((n=>b({countryCode:n.countryCode,locale:q})))}),[null===(e=null==K?void 0:K.impactPayoutCountries)||void 0===e?void 0:e.data]),[z,X]=c(!1),[J,Z]=c({}),[nn,on]=c({}),[tn,en]=c(""),[rn,un]=c(G||[]),[an,dn]=c("notRegistered"),cn=null===(m=null===(i=null==j?void 0:j.user)||void 0===i?void 0:i.impactConnection)||void 0===m?void 0:m.publisher;return l((()=>{window.location.hash=""}),[]),l((()=>{var n;if(!(null===(n=null==cn?void 0:cn.taxInformation)||void 0===n?void 0:n.indirectTaxCountryCode))return;const o=function(n,o){if(n)return n.find((n=>n.countryCode===o))?"otherRegion":"notRegistered"}(G,cn.taxInformation.indirectTaxCountryCode);dn(o)}),[cn,G]),l((()=>{""===tn.trim()?un(G||[]):un((null==G?void 0:G.filter((n=>n.displayName.toLowerCase().includes(tn.toLowerCase()))))||[])}),[tn,G]),l((()=>{var n,o;const t=null==j?void 0:j.user;t&&((null===(o=null===(n=t.impactConnection)||void 0===n?void 0:n.publisher)||void 0===o?void 0:o.taxInformation)?Z({province:t.impactConnection.publisher.taxInformation.indirectTaxRegion,subRegion:t.impactConnection.publisher.taxInformation.indirectTaxRegion,hasQst:!!t.impactConnection.publisher.taxInformation.additionalTaxId,qstNumber:t.impactConnection.publisher.taxInformation.additionalTaxId,hasSubRegionTaxNumber:!!t.impactConnection.publisher.taxInformation.withholdingTaxId,subRegionTaxNumber:t.impactConnection.publisher.taxInformation.withholdingTaxId,selectedRegion:t.impactConnection.publisher.taxInformation.indirectTaxCountryCode,indirectTaxNumber:t.impactConnection.publisher.taxInformation.indirectTaxId}):Z({selectedRegion:(null==t?void 0:t.countryCode)||(null==W?void 0:W.countryCode)}))}),[j,W]),{states:{step:null==L?void 0:L.replace("/",""),hideSteps:M.hideSteps,disabled:z||$||P||B,loading:z||P||$||B,isPartner:!!(null===(A=null===(p=null==j?void 0:j.user)||void 0===p?void 0:p.impactConnection)||void 0===A?void 0:A.publisher),isPartnerLegacy:!!(null===(D=null===(C=null==j?void 0:j.user)||void 0===C?void 0:C.impactConnection)||void 0===D?void 0:D.publisher)&&"STARTED"!==(null===(F=null===(S=null==j?void 0:j.user)||void 0===S?void 0:S.impactConnection)||void 0===F?void 0:F.connectionStatus),email:(null==W?void 0:W.email)||E(null==j?void 0:j.user),loadingError:!!(null==Q?void 0:Q.message),formState:{checked:an,errors:nn}},callbacks:{onBack:()=>{H(M.overrideBackStep||"/1")},onSubmit:async n=>{if(!an)return void on({taxDetails:!0});let o={taxOption:an},t={};if(n.target.getFormControls().forEach((n=>{if(!n.name||!n.id)return;if("notRegistered"===an)return;const e=n.name,i=n.value;g.set(o,e,i),n.required&&!i&&g.set(t,e,!0)})),on(t),!Object.keys(t).length){X(!0);try{const{resultPublisher:n,hasValidCurrentDocument:t}=await async function(n){var o,t,e,i;const r={user:{id:O.id,accountId:O.accountId},firstName:W.firstName,lastName:W.lastName,countryCode:W.countryCode,currency:W.currency,address:W.address,city:W.city,state:W.state,postalCode:W.postalCode,phoneNumber:W.phoneNumber,phoneNumberCountryCode:W.phoneNumberCountryCode,indirectTaxCountryCode:n.selectedRegion,indirectTaxRegion:n.province||n.subRegion,indirectTaxId:n.indirectTaxNumber,additionalTaxId:n.qstNumber,withholdingTaxId:n.subRegionTaxNumber};let u,a=null;if("STARTED"===(null===(t=null===(o=null==j?void 0:j.user)||void 0===o?void 0:o.impactConnection)||void 0===t?void 0:t.connectionStatus)?(a=await k({vars:r}),u=null==a?void 0:a.completeImpactConnection):(a=await U({vars:r}),u=null==a?void 0:a.createImpactConnection),!a||(null==a?void 0:a.message))throw new Error;if(!(null==u?void 0:u.success))throw console.error("Failed to create Impact connection: ",null==u?void 0:u.validationErrors),new Error;await Y();const d=null===(i=null===(e=null==u?void 0:u.user)||void 0===e?void 0:e.impactConnection)||void 0===i?void 0:i.publisher,c=w(null==d?void 0:d.requiredTaxDocumentType)&&(null==d?void 0:d.currentTaxDocument);return window.dispatchEvent(new Event(v)),{resultPublisher:d,hasValidCurrentDocument:c}}(o);H((null==n?void 0:n.requiredTaxDocumentType)&&!t?"/3":(null==n?void 0:n.brandedSignup)?"/4":"/dashboard")}catch(n){on({general:!0})}finally{X(!1)}}},onFormChange:(n,o)=>{var t,e;const i=null===(e=null===(t=o.detail)||void 0===t?void 0:t.item)||void 0===e?void 0:e.__value;i||console.error("Could not detect select change"),Z((o=>({...o,[n]:i})))},onChange:dn,setCountrySearch:en,onQstToggle:()=>Z((n=>({...n,hasQst:!n.hasQst}))),onSpainToggle:()=>Z((n=>({...n,hasSubRegionTaxNumber:!n.hasSubRegionTaxNumber})))},data:{esRegions:I,countries:rn,allCountries:G,provinces:h},text:n.getTextProps(),refs:{formRef:x},slotProps:{formState:{...J,errors:nn}}}}export{Ln as C,Dn as V,Hn as a,Sn as b,Mn as c,Vn as g,xn as u}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-16a23aba.system.js","./p-eac100d1.system.js","./p-8740794e.system.js","./p-dd7e8c95.system.js"],(function(e){"use strict";var r,t,n,a,o,i,l,u,c,f,s,v,b,p,y,d,m,h,O;return{setters:[function(e){r=e.i},function(e){t=e.m;n=e.V;a=e.M;o=e.P;i=e.a;l=e.p;u=e.b;c=e.c;f=e.d;s=e.e;v=e.i;b=e.f;p=e.g;y=e.h;d=e.j;m=e.k},function(e){h=e.h},function(e){O=e.c}],execute:function(){e({b:br,c:vr,d:rr,e:ir,g:sr,h:tr,i:nr,v:cr});function A(e,r){var n=Array.prototype.slice.call(r);n.push(t);return e.apply(this,n)}var g=";ext=";var N=function e(r){return"([".concat(n,"]{1,").concat(r,"})")};function S(e){var r="20";var t="15";var n="9";var a="6";var o="[ \\t,]*";var i="[:\\..]?[ \\t,-]*";var l="#?";var u="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)";var c="(?:[xx##~~]|int|int)";var f="[- ]+";var s="[ \\t]*";var v="(?:,{2}|;)";var b=g+N(r);var p=o+u+i+N(r)+l;var y=o+c+i+N(n)+l;var d=f+N(a)+"#";var m=s+v+i+N(t)+l;var h=s+"(?:,)+"+i+N(n)+l;return b+"|"+p+"|"+y+"|"+d+"|"+m+"|"+h}var w="["+n+"]{"+a+"}";var T="["+o+"]{0,1}"+"(?:"+"["+i+"]*"+"["+n+"]"+"){3,}"+"["+i+n+"]*";var I=new RegExp("^"+"["+o+"]{0,1}"+"(?:"+"["+i+"]*"+"["+n+"]"+"){1,2}"+"$","i");var C=T+"(?:"+S()+")?";var E=new RegExp("^"+w+"$"+"|"+"^"+C+"$","i");function R(e){return e.length>=a&&E.test(e)}function x(e){return I.test(e)}function P(e){"@babel/helpers - typeof";return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function j(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,M(n.key),n)}}function D(e,r,t){return r&&j(e.prototype,r),t&&j(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function M(e){var r=L(e,"string");return"symbol"==P(r)?r:r+""}function L(e,r){if("object"!=P(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!=P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}function W(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function U(e,r,t){return r=q(r),H(e,Y()?Reflect.construct(r,t||[],q(e).constructor):r.apply(e,t))}function H(e,r){if(r&&("object"==P(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return k(e)}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&G(e,r)}function V(e){var r="function"==typeof Map?new Map:void 0;return V=function e(t){if(null===t||!K(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,n)}function n(){return _(t,arguments,q(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),G(n,t)},V(e)}function _(e,r,t){if(Y())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,r);var a=new(e.bind.apply(e,n));return t&&G(a,t.prototype),a}function Y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Y=function r(){return!!e})()}function K(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(r){return"function"==typeof e}}function G(e,r){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,r){return e.__proto__=r,e},G(e,r)}function q(e){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},q(e)}var F=function(e){function r(e){var t;W(this,r);t=U(this,r,[e]);Object.setPrototypeOf(t,r.prototype);t.name=t.constructor.name;return t}B(r,e);return D(r)}(V(Error));var $=new RegExp("(?:"+S()+")$","i");function Q(e){var r=e.search($);if(r<0){return{}}var t=e.slice(0,r);var n=e.match($);var a=1;while(a<n.length){if(n[a]){return{number:t,ext:n[a]}}a++}}function Z(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=z(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function z(e,r){if(e){if("string"==typeof e)return J(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?J(e,r):void 0}}function J(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function X(e){var r="";for(var t=Z(e.split("")),n;!(n=t()).done;){var a=n.value;r+=ee(a,r)||""}return r}function ee(e,r,t){if(e==="+"){if(r){if(typeof t==="function"){t("end")}return}return"+"}return l(e)}var re="+";var te="[\\-\\.\\(\\)]?";var ne="("+"["+n+"]"+"|"+te+")";var ae="^"+"\\"+re+ne+"*"+"["+n+"]"+ne+"*"+"$";var oe=new RegExp(ae,"g");var ie=n;var le="["+ie+"]+((\\-)*["+ie+"])*";var ue="a-zA-Z";var ce="["+ue+"]+((\\-)*["+ie+"])*";var fe="^("+le+"\\.)*"+ce+"\\.?$";var se=new RegExp(fe,"g");var ve="tel:";var be=";phone-context=";var pe=";isub=";function ye(e){var r=e.indexOf(be);if(r<0){return null}var t=r+be.length;if(t>=e.length){return""}var n=e.indexOf(";",t);if(n>=0){return e.substring(t,n)}else{return e.substring(t)}}function de(e){if(e===null){return true}if(e.length===0){return false}return oe.test(e)||se.test(e)}function me(e,r){var t=r.extractFormattedPhoneNumber;var n=ye(e);if(!de(n)){throw new F("NOT_A_NUMBER")}var a;if(n===null){a=t(e)||""}else{a="";if(n.charAt(0)===re){a+=n}var o=e.indexOf(ve);var i;if(o>=0){i=o+ve.length}else{i=0}var l=e.indexOf(be);a+=e.substring(i,l)}var u=a.indexOf(pe);if(u>0){a=a.substring(0,u)}if(a!==""){return a}}var he=250;var Oe=new RegExp("["+o+n+"]");var Ae=new RegExp("[^"+n+"#"+"]+$");function ge(e,r,t){r=r||{};var n=new u(t);if(r.defaultCountry&&!n.hasCountry(r.defaultCountry)){if(r.v2){throw new F("INVALID_COUNTRY")}throw new Error("Unknown country: ".concat(r.defaultCountry))}var o=Se(e,r.v2,r.extract),i=o.number,l=o.ext,b=o.error;if(!i){if(r.v2){if(b==="TOO_SHORT"){throw new F("TOO_SHORT")}throw new F("NOT_A_NUMBER")}return{}}var p=Te(i,r.defaultCountry,r.defaultCallingCode,n),y=p.country,d=p.nationalNumber,m=p.countryCallingCode,h=p.countryCallingCodeSource,O=p.carrierCode;if(!n.hasSelectedNumberingPlan()){if(r.v2){throw new F("INVALID_COUNTRY")}return{}}if(!d||d.length<a){if(r.v2){throw new F("TOO_SHORT")}return{}}if(d.length>c){if(r.v2){throw new F("TOO_LONG")}return{}}if(r.v2){var A=new f(m,d,n.metadata);if(y){A.country=y}if(O){A.carrierCode=O}if(l){A.ext=l}A.__countryCallingCodeSource=h;return A}var g=(r.extended?n.hasSelectedNumberingPlan():y)?s(d,n.nationalNumberPattern()):false;if(!r.extended){return g?we(y,d,l):{}}return{country:y,countryCallingCode:m,carrierCode:O,valid:g,possible:g?true:r.extended===true&&n.possibleLengths()&&v(d,n)?true:false,phone:d,ext:l}}function Ne(e,r,t){if(!e){return}if(e.length>he){if(t){throw new F("TOO_LONG")}return}if(r===false){return e}var n=e.search(Oe);if(n<0){return}return e.slice(n).replace(Ae,"")}function Se(e,r,t){var n=me(e,{extractFormattedPhoneNumber:function e(n){return Ne(n,t,r)}});if(!n){return{}}if(!R(n)){if(x(n)){return{error:"TOO_SHORT"}}return{}}var a=Q(n);if(a.ext){return a}return{number:n}}function we(e,r,t){var n={country:e,phone:r};if(t){n.ext=t}return n}function Te(e,r,t,n){var a=b(X(e),undefined,r,t,n.metadata),o=a.countryCallingCodeSource,i=a.countryCallingCode,l=a.number;var u;if(i){n.selectNumberingPlan(i)}else if(l&&(r||t)){if(r){u=r;n.selectNumberingPlan(r);i=n.numberingPlan.callingCode()}else{n.selectNumberingPlan(t);i=t}}else return{};if(!l){return{countryCallingCodeSource:o,countryCallingCode:i}}var c=p(X(l),undefined,n),f=c.nationalNumber,s=c.carrierCode;var v=y(i,{nationalNumber:f,metadata:n});if(v){u=v;if(v==="001");else{n.selectNumberingPlan(u)}}return{country:u,countryCallingCode:i,countryCallingCodeSource:o,nationalNumber:f,carrierCode:s}}function Ie(e){"@babel/helpers - typeof";return Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ie(e)}function Ce(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function Ee(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Ce(Object(t),!0).forEach((function(r){Re(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ce(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Re(e,r,t){return(r=xe(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function xe(e){var r=Pe(e,"string");return"symbol"==Ie(r)?r:r+""}function Pe(e,r){if("object"!=Ie(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!=Ie(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}function je(e,r,t){return ge(e,Ee(Ee({},r),{},{v2:true}),t)}function De(e){"@babel/helpers - typeof";return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}function Me(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function Le(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Me(Object(t),!0).forEach((function(r){We(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Me(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function We(e,r,t){return(r=Ue(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Ue(e){var r=He(e,"string");return"symbol"==De(r)?r:r+""}function He(e,r){if("object"!=De(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!=De(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}function ke(e,r){return Ke(e)||Ye(e,r)||Ve(e,r)||Be()}function Be(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ve(e,r){if(e){if("string"==typeof e)return _e(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_e(e,r):void 0}}function _e(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function Ye(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,o,i,l=[],u=!0,c=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=o.call(t)).done)&&(l.push(n.value),l.length!==r);u=!0);}catch(e){c=!0,a=e}finally{try{if(!u&&null!=t["return"]&&(i=t["return"](),Object(i)!==i))return}finally{if(c)throw a}}return l}}function Ke(e){if(Array.isArray(e))return e}function Ge(e){var r=Array.prototype.slice.call(e),t=ke(r,4),n=t[0],a=t[1],o=t[2],i=t[3];var l;var u;var c;if(typeof n==="string"){l=n}else throw new TypeError("A text for parsing must be a string.");if(!a||typeof a==="string"){if(i){u=o;c=i}else{u=undefined;c=o}if(a){u=Le({defaultCountry:a},u)}}else if(d(a)){if(o){u=a;c=o}else{c=a}}else throw new Error("Invalid second argument: ".concat(a));return{text:l,options:u,metadata:c}}function qe(e){"@babel/helpers - typeof";return qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qe(e)}function Fe(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function $e(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Fe(Object(t),!0).forEach((function(r){Qe(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Fe(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Qe(e,r,t){return(r=Ze(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Ze(e){var r=ze(e,"string");return"symbol"==qe(r)?r:r+""}function ze(e,r){if("object"!=qe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!=qe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}function Je(e,r,t){if(r&&r.defaultCountry&&!m(r.defaultCountry,t)){r=$e($e({},r),{},{defaultCountry:undefined})}try{return je(e,r,t)}catch(e){if(e instanceof F);else{throw e}}}function Xe(){var e=Ge(arguments),r=e.text,t=e.options,n=e.metadata;return Je(r,t,n)}function er(){return A(Xe,arguments)}function rr(e){var r;return((r=e===null||e===void 0?void 0:e.managedIdentity)===null||r===void 0?void 0:r.emailVerified)?e.managedIdentity.email:e===null||e===void 0?void 0:e.email}function tr(e,r){var t;if(!r)return"";var n=er(r,e===null||e===void 0?void 0:e.toUpperCase());return(t=n===null||n===void 0?void 0:n.nationalNumber)!==null&&t!==void 0?t:r.replace(/\D/g,"")}function nr(e,r){if(!e||!(r===null||r===void 0?void 0:r.trim()))return false;var t=e.toUpperCase();var n=er(r,t);if(!(n===null||n===void 0?void 0:n.isValid()))return false;return ar(t,tr(t,r))}function ar(e,r){if(!r)return false;switch(e){case"US":case"CA":{var t=r.startsWith("1")?r.slice(1):r;return t.length===10}case"AU":return r.length===9||r.length===10;case"NZ":{var t=r;if(t.length>9){if(t.startsWith("640"))t=t.slice(3);else if(t.startsWith("0"))t=t.slice(1)}return t.length>=8&&t.length<=10}default:return or(r).length>=6}}function or(e){return e.startsWith("0")?e.slice(1):e}function ir(e){var r=["W9","W8BENE","W8BEN"];if(r.includes(e))return true;return false}var lr=e("o",(function(e){return!Object.keys(e).find((function(r){return e[r]==undefined}))}));var ur=e("t",(function(e){switch(e){case"W9":return"W-9";case"W8BEN":case"W8BENE":return"W-8";default:return""}}));function cr(e,r){var t=r.trim();var n=t.search(e);return n>-1}var fr=e("f",(function(e,t){return r.formatMessage({id:e,defaultMessage:t},{fieldName:e})}));function sr(e){var r=e.countryCode,t=e.locale;var n=new Intl.DisplayNames([t],{type:"region"}).of(r);return{countryCode:r,displayName:n}}function vr(e){var r,t;var n=(r=e===null||e===void 0?void 0:e.withdrawalSettings)===null||r===void 0?void 0:r.paymentThreshold;if(!n)return undefined;return"".concat((t=e===null||e===void 0?void 0:e.currency)!==null&&t!==void 0?t:"").concat(n)}function br(e){var r,t;var n=(r=e===null||e===void 0?void 0:e.withdrawalSettings)===null||r===void 0?void 0:r.paymentThreshold;var a=e===null||e===void 0?void 0:e.payoutsAccount;if(!n||!a)return false;var o=Number(n);if(!Number.isFinite(o)||!Number.isFinite(a.balanceAmount))return false;if(a.balanceAmount<=0)return false;var i=a.currencyCode||(e===null||e===void 0?void 0:e.currency);if(!i)return false;var l=Math.pow(10,(t=new Intl.NumberFormat("en-US",{style:"currency",currency:i}).resolvedOptions().maximumFractionDigits)!==null&&t!==void 0?t:2);return a.balanceAmount<Math.round(o*l)}var pr={Container:{display:"flex",flexDirection:"column",gap:"35px"},HeaderContainer:{display:"flex",flexDirection:"column",gap:"10px"}};var yr=O(pr);var dr=yr.toString();var mr=e("L",(function(){return h("div",{class:yr.classes.Container},h("style",{type:"text/css"},dr),h("sqm-skeleton",{width:"45%",height:"40px !important"}),h("div",{class:yr.classes.HeaderContainer},h("sqm-skeleton",{width:"15%"}),h("sqm-skeleton",{width:"25%",height:"30px !important"})),h("sqm-skeleton",{width:"75%",height:"35px"}),h("sqm-skeleton",{width:"75%",height:"35px"}),h("sqm-skeleton",{width:"75%",height:"35px"}),h("sqm-skeleton",{width:"75%",height:"35px"}),h("sqm-skeleton",{width:"75%",height:"35px"}),h("sqm-skeleton",{width:"75%",height:"35px"}),h("sqm-skeleton",{width:"75%",height:"35px"}),h("sqm-skeleton",{width:"75%",height:"35px"}),h("sqm-skeleton",{width:"75%",height:"35px"}),h("sqm-skeleton",{width:"75%",height:"35px"}),h("sqm-skeleton",{width:"75%",height:"35px"}),h("sqm-skeleton",{width:"15%"}),h("sqm-skeleton",{width:"80px",height:"30px !important"}))}));var hr=e("a",[{regionCode:"ALBERTA",taxType:"GST",displayName:"Alberta"},{regionCode:"BRITISHCOLUMBIA",taxType:"HST",displayName:"British Columbia"},{regionCode:"MANITOBA",taxType:"HST",displayName:"Manitoba"},{regionCode:"NEWBRUNSWICK",taxType:"HST",displayName:"New Brunswick"},{regionCode:"NEWFOUNDLANDLABRADOR",taxType:"HST",displayName:"Newfoundland"},{regionCode:"NORTHWESTTERRITORIES",taxType:"GST",displayName:"North West Territories"},{regionCode:"NOVASCOTIA",taxType:"HST",displayName:"Nova Scotia"},{regionCode:"NUNAVUT",taxType:"HST",displayName:"Nunavut"},{regionCode:"ONTARIO",taxType:"HST",displayName:"Ontario"},{regionCode:"PRINCEEDWARDISLAND",taxType:"HST",displayName:"Prince Edward Island"},{regionCode:"QUEBEC",taxType:"GST",displayName:"Quebec"},{regionCode:"SASKATCHEWAN",taxType:"HST",displayName:"Saskatchewan"},{regionCode:"YUKON",taxType:"GST",displayName:"Yukon"}]);var Or=e("I",[{regionCode:"SPAINPROPER",taxType:"VAT",displayName:"Spain Proper"},{regionCode:"CANARYISLANDS",taxType:"VAT",displayName:"Canary Islands"}]);var Ar=e("A",{CA:{labelEnum:"PROVINCE",regions:[{label:"Alberta",value:"ALBERTA"},{label:"British Columbia",value:"BRITISHCOLUMBIA"},{label:"Manitoba",value:"MANITOBA"},{label:"New Brunswick",value:"NEWBRUNSWICK"},{label:"Newfoundland & Labrador",value:"NEWFOUNDLANDANDLABRADOR"},{label:"Northwest Territories",value:"NORTHWESTTERRITORIES"},{label:"Nova Scotia",value:"NOVASCOTIA"},{label:"Nunavut",value:"NUNAVUT"},{label:"Ontario",value:"ONTARIO"},{label:"Prince Edward Island",value:"PRINCEEDWARDISLAND"},{label:"Quebec",value:"QUEBEC"},{label:"Saskatchewan",value:"SASKATCHEWAN"},{label:"Yukon",value:"YUKON"}]},ES:{labelEnum:"REGION",regions:[{label:"Canary Islands",value:"CANARYISLANDS"},{label:"Spain Proper",value:"SPAINPROPER"}]},AU:{labelEnum:"STATE",regions:[{label:"Australian Capital Territory",value:"CAPITALTERRITORY"},{label:"New South Wales",value:"NEWSOUTHWALES"},{label:"Northern Territory",value:"NORTHERNTERRITORY"},{label:"Queensland",value:"QUEENSLAND"},{label:"South Australia",value:"SOUTHAUSTRALIA"},{label:"Tasmania",value:"TASMANIA"},{label:"Victoria",value:"VICTORIA"},{label:"Western Australia",value:"WESTERNAUSTRALIA"}]},US:{labelEnum:"STATE",regions:[{label:"Alabama",value:"ALABAMA"},{label:"Alaska",value:"ALASKA"},{label:"Arizona",value:"ARIZONA"},{label:"Arkansas",value:"ARKANSAS"},{label:"California",value:"CALIFORNIA"},{label:"Colorado",value:"COLORADO"},{label:"Connecticut",value:"CONNECTICUT"},{label:"Delaware",value:"DELAWARE"},{label:"District of Columbia",value:"DISTRICTOFCOLUMBIA"},{label:"Florida",value:"FLORIDA"},{label:"Georgia",value:"GEORGIA"},{label:"Hawaii",value:"HAWAII"},{label:"Idaho",value:"IDAHO"},{label:"Illinois",value:"ILLINOIS"},{label:"Indiana",value:"INDIANA"},{label:"Iowa",value:"IOWA"},{label:"Kansas",value:"KANSAS"},{label:"Kentucky",value:"KENTUCKY"},{label:"Louisiana",value:"LOUISIANA"},{label:"Maine",value:"MAINE"},{label:"Maryland",value:"MARYLAND"},{label:"Massachusetts",value:"MASSACHUSETTS"},{label:"Michigan",value:"MICHIGAN"},{label:"Minnesota",value:"MINNESOTA"},{label:"Mississippi",value:"MISSISSIPPI"},{label:"Missouri",value:"MISSOURI"},{label:"Montana",value:"MONTANA"},{label:"Nebraska",value:"NEBRASKA"},{label:"Nevada",value:"NEVADA"},{label:"New Hampshire",value:"NEWHAMPSHIRE"},{label:"New Jersey",value:"NEWJERSEY"},{label:"New Mexico",value:"NEWMEXICO"},{label:"New York",value:"NEWYORK"},{label:"North Carolina",value:"NORTHCAROLINA"},{label:"North Dakota",value:"NORTHDAKOTA"},{label:"Ohio",value:"OHIO"},{label:"Oklahoma",value:"OKLAHOMA"},{label:"Oregon",value:"OREGON"},{label:"Pennsylvania",value:"PENNSYLVANIA"},{label:"Rhode Island",value:"RHODEISLAND"},{label:"South Carolina",value:"SOUTHCAROLINA"},{label:"South Dakota",value:"SOUTHDAKOTA"},{label:"Tennessee",value:"TENNESSEE"},{label:"Texas",value:"TEXAS"},{label:"Utah",value:"UTAH"},{label:"Vermont",value:"VERMONT"},{label:"Virgin Islands",value:"VIRGINISLANDS"},{label:"Virginia",value:"VIRGINIA"},{label:"Washington",value:"WASHINGTON"},{label:"West Virginia",value:"WESTVIRGINIA"},{label:"Wisconsin",value:"WISCONSIN"},{label:"Wyoming",value:"WYOMING"},{label:"Americas Forces",value:"AAMILITARY"},{label:"Europe, Middle East, Canada, Africa and Canada Forces",value:"AEMILITARY"},{label:"Pacific Forces",value:"APMILITARY"},{label:"Other",value:"OTHER"}]}})}}}));
|