@saasquatch/mint-components 1.14.0 → 1.14.1
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_17.cjs.entry.js +1 -1
- package/dist/cjs/sqm-big-stat_41.cjs.entry.js +1 -1
- package/dist/cjs/{usePayoutStatus-4b5894ef.js → usePayoutStatus-639cc554.js} +9 -6
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +9 -6
- package/dist/esm/sqm-banking-info-form_17.entry.js +1 -1
- package/dist/esm/sqm-big-stat_41.entry.js +1 -1
- package/dist/esm/{usePayoutStatus-58aa56b4.js → usePayoutStatus-68c2fe88.js} +9 -6
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_41.entry.js +1 -1
- package/dist/esm-es5/{usePayoutStatus-58aa56b4.js → usePayoutStatus-68c2fe88.js} +2 -2
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/{p-116baa69.entry.js → p-4886f44d.entry.js} +1 -1
- package/dist/mint-components/{p-cc7af682.system.js → p-9b85baf6.system.js} +2 -2
- package/dist/mint-components/{p-4e773bb1.system.entry.js → p-9fb65fb5.system.entry.js} +1 -1
- package/dist/mint-components/{p-480e08e9.js → p-ba749252.js} +2 -2
- package/dist/mint-components/{p-57eef0af.entry.js → p-e3e4a466.entry.js} +1 -1
- package/dist/mint-components/{p-daee25f9.system.entry.js → p-f2f8d39a.system.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{k as n,f as t}from"./p-cd651f81.js";import{d as o,J as e,$ as r,g as i,w as u}from"./p-94a876b9.js";const c="sqm:tax-form-updated";var a=function(n){for(var t=Array(n.length),o=0;o<n.length;++o)t[o]=n[o];return t},d=function(n){return Array.isArray(n)?n:[n]},f=function(n,t){var o=n.tabIndex-t.tabIndex;if(o){if(!n.tabIndex)return 1;if(!t.tabIndex)return-1}return o||n.index-t.index},s=function(n,t,o){return a(n).map((function(n,t){return{node:n,index:t,tabIndex:o&&-1===n.tabIndex?(n.dataset||{}).focusGuard?0:-1:n.tabIndex}})).filter((function(n){return!t||n.tabIndex>=0})).sort(f)};const l=["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 m=l.join(","),v=m+", [data-focus-guard]",p=function(n,t){return n.reduce((function(n,o){return n.concat(a(o.querySelectorAll(t?v:m)),o.parentNode?a(o.parentNode.querySelectorAll(l.join(","))).filter((function(n){return n===o})):[])}),[])},E=function n(t){return!t||t===document||t.nodeType===Node.DOCUMENT_NODE||!((o=window.getComputedStyle(t,null))&&o.getPropertyValue&&("none"===o.getPropertyValue("display")||"hidden"===o.getPropertyValue("visibility")))&&n(t.parentNode);var o},h=function n(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return o.push(t),t.parentNode&&n(t.parentNode,o),o},w=function(n,t){for(var o=h(n),e=h(t),r=0;r<o.length;r+=1){var i=o[r];if(e.indexOf(i)>=0)return i}return!1},I=function(n){return a(n).filter((function(n){return E(n)})).filter((function(n){return function(n){return!(("INPUT"===n.tagName||"BUTTON"===n.tagName)&&("hidden"===n.type||n.disabled))}(n)}))},b=function(n,t){return s(I(p(n,t)),!0,t)},g=function(n){return"INPUT"===n.tagName&&"radio"===n.type},y=function(n,t){return t.filter(g).filter((function(t){return t.name===n.name})).filter((function(n){return n.checked}))[0]||n},R=function(n,t){return n.length>1&&g(n[t])&&n[t].name?n.indexOf(y(n[t],n)):t},F="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},_=function n(t){for(var o=t.length,e=0;e<o;e+=1)for(var r=function(o){if(e!==o&&t[e].contains(t[o]))return{v:n(t.filter((function(n){return n!==t[o]})))}},i=0;i<o;i+=1){var u=r(i);if("object"===(void 0===u?"undefined":F(u)))return u.v}return t},D=function n(t){return t.parentNode?n(t.parentNode):t},A=function(n){return d(n).filter(Boolean).reduce((function(n,t){var o=t.getAttribute("data-focus-lock");return n.push.apply(n,o?_(a(D(t).querySelectorAll('[data-focus-lock="'+o+'"]:not([data-focus-lock-disabled="disabled"])'))):[t]),n}),[])},T=function(n){return n&&n.dataset&&n.dataset.focusGuard},S=function(n){return!T(n)},V=function(n,t){var o=document&&document.activeElement,e=A(n).filter(S),r=function(n,t,o){var e=d(n),r=d(t),i=e[0],u=null;return r.filter(Boolean).forEach((function(n){u=w(u||n,n)||u,o.filter(Boolean).forEach((function(n){var t=w(i,n);t&&(u=!u||t.contains(u)?t:w(t,u))}))})),u}(o||n,n,e),i=b(e).filter((function(n){return S(n.node)}));if(i[0]||(i=(u=e,s(I(p(u)),!1)).filter((function(n){return S(n.node)})))[0]){var u,c,f,l,m,v=b([r]).map((function(n){return n.node})),E=(c=v,f=i,l=new Map,f.forEach((function(n){return l.set(n.node,n)})),c.map((function(n){return l.get(n)})).filter(Boolean)),h=E.map((function(n){return n.node})),F=function(n,t,o,e,r){var i,u=n.length,c=n[0],a=n[u-1],d=T(o);if(!(n.indexOf(o)>=0)){var f=t.indexOf(o),s=t.indexOf(e||f),l=n.indexOf(e),m=f-s,v=t.indexOf(c),p=t.indexOf(a),E=R(n,0),h=R(n,u-1);return-1===f||-1===l?n.indexOf((i=r&&r.length?r:n)[0]&&i.length>1&&g(i[0])&&i[0].name?y(i[0],i):i[0]):!m&&l>=0?l:f<=v&&d&&Math.abs(m)>1?h:f>=v&&d&&Math.abs(m)>1?E:m&&Math.abs(m)>1?l:f<=v?h:f>p?E:m?Math.abs(m)>1?l:(u+l+m)%u:void 0}}(h,v,o,t,h.filter((m=function(n){return n.reduce((function(n,t){return n.concat(function(n){return I((t=n.querySelectorAll("[data-autofocus-inside]"),a(t).map((function(n){return p([n])})).reduce((function(n,t){return n.concat(t)}),[])));var t}(t))}),[])}(e),function(n){return!!n.autofocus||n.dataset&&!!n.dataset.autofocus||m.indexOf(n)>=0})));return void 0===F?F:E[F]}},N=function(n){return n===document.activeElement},C=0,O=!1,x=0,U=null,L=function(){var n,t,o=!1;if(x){var e=x;document&&document.activeElement===document.body||document&&a(document.querySelectorAll("[data-no-focus-lock]")).some((function(n){return n.contains(document.activeElement)}))||(e&&(n=e,!(!(!(t=document&&document.activeElement)||t.dataset&&t.dataset.focusGuard)&&A(n).reduce((function(n,o){return n||o.contains(t)||function(n){return t=a(n.querySelectorAll("iframe")),o=N,!!t.filter((function(n){return n===o}))[0];var t,o}(o)}),!1)))&&(o=function(n){var t,o=V(n,U);if(!O&&o){if(C>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"),O=!0,void setTimeout((function(){O=!1}),1);C++,(t=o.node).focus(),t.contentWindow&&t.contentWindow.focus(),C--}}(e)),U=document.activeElement)}return o},k=[],M=function(n){return t=k.filter((function(n){return n})).slice(-1)[0],x=t,!!void(t&&L())&&(n&&n.preventDefault(),!0);var t},H=function(n){0===k.length&&document.addEventListener("focusin",M),k.indexOf(n)<0&&(k.push(n),M())},B=function(){return"undefined"==typeof window},P=function(n){n=n||navigator.userAgent;var t=/(iPad).*OS\s([\d_]+)/.test(n);return{ios:!t&&/(iPhone\sOS)\s([\d_]+)/.test(n)||t,android:/(Android);?[\s/]+([\d.]+)?/.test(n)}},q=0,j=0,K=0,Q=null,$=!1,z=[],W=function(n){if(B())return!1;if(!n)throw new Error("options must be provided");var t=!1,o={get passive(){t=!0}},e=function(){},r="__TUA_BSL_TEST_PASSIVE__";window.addEventListener(r,e,o),window.removeEventListener(r,e,o);var i=n.capture;return t?n:void 0!==i&&i}({passive:!1}),G=!B()&&"scrollBehavior"in document.documentElement.style,J=function(n){n.cancelable&&n.preventDefault()},X=function(n){var t,o,e,r,i;B()||(P().ios?(n&&(Array.isArray(n)?n:[n]).forEach((function(n){n&&-1===z.indexOf(n)&&(n.ontouchstart=function(n){j=n.targetTouches[0].clientY,K=n.targetTouches[0].clientX},n.ontouchmove=function(t){1===t.targetTouches.length&&function(n,t){if(t){var o=t.scrollTop,e=t.scrollLeft,r=t.scrollWidth,i=t.scrollHeight,u=t.clientWidth,c=t.clientHeight,a=n.targetTouches[0].clientX-K,d=n.targetTouches[0].clientY-j,f=Math.abs(d)>Math.abs(a);if(f&&(d>0&&0===o||d<0&&o+c+1>=i)||!f&&(a>0&&0===e||a<0&&e+u+1>=r))return J(n)}n.stopPropagation()}(t,n)},z.push(n))})),$||(document.addEventListener("touchmove",J,W),$=!0)):q<=0&&(Q=P().android?(t=document.documentElement,o=document.body,e=t.scrollTop||o.scrollTop,r=Object.assign({},t.style),i=Object.assign({},o.style),t.style.height="100%",t.style.overflow="hidden",o.style.top="-".concat(e,"px"),o.style.width="100%",o.style.height="auto",o.style.position="fixed",o.style.overflow="hidden",function(){t.style.height=r.height||"",t.style.overflow=r.overflow||"",["top","width","height","overflow","position"].forEach((function(n){o.style[n]=i[n]||""})),G?window.scrollTo({top:e,behavior:"instant"}):window.scrollTo(0,e)}):function(){var n=document.body,t=Object.assign({},n.style),o=window.innerWidth-n.clientWidth;return n.style.overflow="hidden",n.style.boxSizing="border-box",n.style.paddingRight="".concat(o,"px"),function(){["overflow","boxSizing","paddingRight"].forEach((function(o){n.style[o]=t[o]||""}))}}()),q+=1)},Y=function(n){B()||(q-=1)>0||(P().ios||"function"!=typeof Q?(n&&(Array.isArray(n)?n:[n]).forEach((function(n){var t=z.indexOf(n);-1!==t&&(n.ontouchmove=null,n.ontouchstart=null,z.splice(t,1))})),$&&(document.removeEventListener("touchmove",J,W),$=!1)):Q())};const Z="\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",nn="\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";let tn=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}({}),on=function(n){return n.STARTED="STARTED",n.SUBMITTED="SUBMITTED",n.FINISHED="FINISHED",n.CANCELED="CANCELED",n.RELOAD_REQUEST="RELOAD",n}({});function en(n){let{url:t,lang:o,onEvent:e=(()=>{}),embedded:r=!1,embeddedOptions:i,onReload:u}=n;if(!t)throw new Error("URL is not provided. Please provide a valid Veriff session url.");const c=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}(r);function a(){const n=document.getElementById("veriffFrame");if(n&&n.parentNode){t=n,k=k.filter((function(n){return n!==t})),M(),0===k.length&&document.removeEventListener("focusin",M),Y(n);let o=n.parentNode.parentNode,e=n.parentNode;r&&!c&&(o=n.parentNode,e=n),o&&o.removeChild(e)}else Y();var t;window.removeEventListener("message",d)}function d(n){const t=document.getElementById("veriffFrame");n.data===tn.VERIFF_HANDSHAKE&&function(n,t){n.contentWindow?.postMessage({name:tn.VERIFF_RENDER,payload:t},"*")}(t,{version:"2.3.1",isReloadHandled:"function"==typeof u,isVeriffIframeMobile:c,embeddedConfigured:r,embedded:!c&&r}),n.data===tn.VERIFF_STARTED&&e(on.STARTED),n.data===tn.VERIFF_CANCELED&&(a(),e(on.CANCELED)),n.data===tn.VERIFF_SUBMITTED&&e(on.SUBMITTED),n.data===tn.VERIFF_FINISHED&&(a(),e(on.FINISHED)),n.data===tn.VERIFF_FORCE_RELOAD&&window.location.reload(),n.data===tn.VERIFF_RELOAD_REQUEST&&("function"==typeof u&&u(),e(on.RELOAD_REQUEST))}return function(n,t,o,e){const r=document.createElement("iframe");if(r.src=n,r.allow="autoplay; camera; microphone; fullscreen; accelerometer; magnetometer; gyroscope; picture-in-picture;",r.id="veriffFrame",t)!function(n){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const{rootElementID:e}=t;if(o){n.style.cssText=nn;const t=document.createElement("div");t.style.cssText=Z,t.appendChild(n),document.body.appendChild(t),H(n),X(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="\n position: static;\n width: 100%;\n height: 100%;\n",document.getElementById(e).appendChild(n)}}(r,o,e);else{r.style.cssText=nn;const n=function(){const n=document.createElement("div");return n.style.cssText=Z,n}();n.appendChild(r),document.body.appendChild(n),H(r),X(r)}}(o&&o.length>0?function(n,t,o){if(o){const t=new URL(n),e=t.searchParams;return e.set("lang",o),t.search=e.toString(),t.toString()}return n}(t,0,o):t,r,i,c),window.addEventListener("message",d),{close:a}}const rn=o.gql`
|
|
1
|
+
import{k as n,f as t}from"./p-cd651f81.js";import{d as o,J as e,$ as r,g as i,w as u}from"./p-94a876b9.js";const c="sqm:tax-form-updated";var a=function(n){for(var t=Array(n.length),o=0;o<n.length;++o)t[o]=n[o];return t},d=function(n){return Array.isArray(n)?n:[n]},f=function(n,t){var o=n.tabIndex-t.tabIndex;if(o){if(!n.tabIndex)return 1;if(!t.tabIndex)return-1}return o||n.index-t.index},s=function(n,t,o){return a(n).map((function(n,t){return{node:n,index:t,tabIndex:o&&-1===n.tabIndex?(n.dataset||{}).focusGuard?0:-1:n.tabIndex}})).filter((function(n){return!t||n.tabIndex>=0})).sort(f)};const l=["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 m=l.join(","),v=m+", [data-focus-guard]",p=function(n,t){return n.reduce((function(n,o){return n.concat(a(o.querySelectorAll(t?v:m)),o.parentNode?a(o.parentNode.querySelectorAll(l.join(","))).filter((function(n){return n===o})):[])}),[])},E=function n(t){return!t||t===document||t.nodeType===Node.DOCUMENT_NODE||!((o=window.getComputedStyle(t,null))&&o.getPropertyValue&&("none"===o.getPropertyValue("display")||"hidden"===o.getPropertyValue("visibility")))&&n(t.parentNode);var o},h=function n(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return o.push(t),t.parentNode&&n(t.parentNode,o),o},w=function(n,t){for(var o=h(n),e=h(t),r=0;r<o.length;r+=1){var i=o[r];if(e.indexOf(i)>=0)return i}return!1},I=function(n){return a(n).filter((function(n){return E(n)})).filter((function(n){return function(n){return!(("INPUT"===n.tagName||"BUTTON"===n.tagName)&&("hidden"===n.type||n.disabled))}(n)}))},b=function(n,t){return s(I(p(n,t)),!0,t)},g=function(n){return"INPUT"===n.tagName&&"radio"===n.type},y=function(n,t){return t.filter(g).filter((function(t){return t.name===n.name})).filter((function(n){return n.checked}))[0]||n},R=function(n,t){return n.length>1&&g(n[t])&&n[t].name?n.indexOf(y(n[t],n)):t},F="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},_=function n(t){for(var o=t.length,e=0;e<o;e+=1)for(var r=function(o){if(e!==o&&t[e].contains(t[o]))return{v:n(t.filter((function(n){return n!==t[o]})))}},i=0;i<o;i+=1){var u=r(i);if("object"===(void 0===u?"undefined":F(u)))return u.v}return t},D=function n(t){return t.parentNode?n(t.parentNode):t},A=function(n){return d(n).filter(Boolean).reduce((function(n,t){var o=t.getAttribute("data-focus-lock");return n.push.apply(n,o?_(a(D(t).querySelectorAll('[data-focus-lock="'+o+'"]:not([data-focus-lock-disabled="disabled"])'))):[t]),n}),[])},T=function(n){return n&&n.dataset&&n.dataset.focusGuard},N=function(n){return!T(n)},V=function(n,t){var o=document&&document.activeElement,e=A(n).filter(N),r=function(n,t,o){var e=d(n),r=d(t),i=e[0],u=null;return r.filter(Boolean).forEach((function(n){u=w(u||n,n)||u,o.filter(Boolean).forEach((function(n){var t=w(i,n);t&&(u=!u||t.contains(u)?t:w(t,u))}))})),u}(o||n,n,e),i=b(e).filter((function(n){return N(n.node)}));if(i[0]||(i=(u=e,s(I(p(u)),!1)).filter((function(n){return N(n.node)})))[0]){var u,c,f,l,m,v=b([r]).map((function(n){return n.node})),E=(c=v,f=i,l=new Map,f.forEach((function(n){return l.set(n.node,n)})),c.map((function(n){return l.get(n)})).filter(Boolean)),h=E.map((function(n){return n.node})),F=function(n,t,o,e,r){var i,u=n.length,c=n[0],a=n[u-1],d=T(o);if(!(n.indexOf(o)>=0)){var f=t.indexOf(o),s=t.indexOf(e||f),l=n.indexOf(e),m=f-s,v=t.indexOf(c),p=t.indexOf(a),E=R(n,0),h=R(n,u-1);return-1===f||-1===l?n.indexOf((i=r&&r.length?r:n)[0]&&i.length>1&&g(i[0])&&i[0].name?y(i[0],i):i[0]):!m&&l>=0?l:f<=v&&d&&Math.abs(m)>1?h:f>=v&&d&&Math.abs(m)>1?E:m&&Math.abs(m)>1?l:f<=v?h:f>p?E:m?Math.abs(m)>1?l:(u+l+m)%u:void 0}}(h,v,o,t,h.filter((m=function(n){return n.reduce((function(n,t){return n.concat(function(n){return I((t=n.querySelectorAll("[data-autofocus-inside]"),a(t).map((function(n){return p([n])})).reduce((function(n,t){return n.concat(t)}),[])));var t}(t))}),[])}(e),function(n){return!!n.autofocus||n.dataset&&!!n.dataset.autofocus||m.indexOf(n)>=0})));return void 0===F?F:E[F]}},S=function(n){return n===document.activeElement},O=0,C=!1,x=0,U=null,L=function(){var n,t,o=!1;if(x){var e=x;document&&document.activeElement===document.body||document&&a(document.querySelectorAll("[data-no-focus-lock]")).some((function(n){return n.contains(document.activeElement)}))||(e&&(n=e,!(!(!(t=document&&document.activeElement)||t.dataset&&t.dataset.focusGuard)&&A(n).reduce((function(n,o){return n||o.contains(t)||function(n){return t=a(n.querySelectorAll("iframe")),o=S,!!t.filter((function(n){return n===o}))[0];var t,o}(o)}),!1)))&&(o=function(n){var t,o=V(n,U);if(!C&&o){if(O>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"),C=!0,void setTimeout((function(){C=!1}),1);O++,(t=o.node).focus(),t.contentWindow&&t.contentWindow.focus(),O--}}(e)),U=document.activeElement)}return o},k=[],M=function(n){return t=k.filter((function(n){return n})).slice(-1)[0],x=t,!!void(t&&L())&&(n&&n.preventDefault(),!0);var t},H=function(n){0===k.length&&document.addEventListener("focusin",M),k.indexOf(n)<0&&(k.push(n),M())},P=function(){return"undefined"==typeof window},B=function(n){n=n||navigator.userAgent;var t=/(iPad).*OS\s([\d_]+)/.test(n);return{ios:!t&&/(iPhone\sOS)\s([\d_]+)/.test(n)||t,android:/(Android);?[\s/]+([\d.]+)?/.test(n)}},q=0,j=0,K=0,Q=null,$=!1,W=[],z=function(n){if(P())return!1;if(!n)throw new Error("options must be provided");var t=!1,o={get passive(){t=!0}},e=function(){},r="__TUA_BSL_TEST_PASSIVE__";window.addEventListener(r,e,o),window.removeEventListener(r,e,o);var i=n.capture;return t?n:void 0!==i&&i}({passive:!1}),Y=!P()&&"scrollBehavior"in document.documentElement.style,G=function(n){n.cancelable&&n.preventDefault()},J=function(n){var t,o,e,r,i;P()||(B().ios?(n&&(Array.isArray(n)?n:[n]).forEach((function(n){n&&-1===W.indexOf(n)&&(n.ontouchstart=function(n){j=n.targetTouches[0].clientY,K=n.targetTouches[0].clientX},n.ontouchmove=function(t){1===t.targetTouches.length&&function(n,t){if(t){var o=t.scrollTop,e=t.scrollLeft,r=t.scrollWidth,i=t.scrollHeight,u=t.clientWidth,c=t.clientHeight,a=n.targetTouches[0].clientX-K,d=n.targetTouches[0].clientY-j,f=Math.abs(d)>Math.abs(a);if(f&&(d>0&&0===o||d<0&&o+c+1>=i)||!f&&(a>0&&0===e||a<0&&e+u+1>=r))return G(n)}n.stopPropagation()}(t,n)},W.push(n))})),$||(document.addEventListener("touchmove",G,z),$=!0)):q<=0&&(Q=B().android?(t=document.documentElement,o=document.body,e=t.scrollTop||o.scrollTop,r=Object.assign({},t.style),i=Object.assign({},o.style),t.style.height="100%",t.style.overflow="hidden",o.style.top="-".concat(e,"px"),o.style.width="100%",o.style.height="auto",o.style.position="fixed",o.style.overflow="hidden",function(){t.style.height=r.height||"",t.style.overflow=r.overflow||"",["top","width","height","overflow","position"].forEach((function(n){o.style[n]=i[n]||""})),Y?window.scrollTo({top:e,behavior:"instant"}):window.scrollTo(0,e)}):function(){var n=document.body,t=Object.assign({},n.style),o=window.innerWidth-n.clientWidth;return n.style.overflow="hidden",n.style.boxSizing="border-box",n.style.paddingRight="".concat(o,"px"),function(){["overflow","boxSizing","paddingRight"].forEach((function(o){n.style[o]=t[o]||""}))}}()),q+=1)},X=function(n){P()||(q-=1)>0||(B().ios||"function"!=typeof Q?(n&&(Array.isArray(n)?n:[n]).forEach((function(n){var t=W.indexOf(n);-1!==t&&(n.ontouchmove=null,n.ontouchstart=null,W.splice(t,1))})),$&&(document.removeEventListener("touchmove",G,z),$=!1)):Q())};const Z="\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",nn="\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";let tn=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}({}),on=function(n){return n.STARTED="STARTED",n.SUBMITTED="SUBMITTED",n.FINISHED="FINISHED",n.CANCELED="CANCELED",n.RELOAD_REQUEST="RELOAD",n}({});function en(n){let{url:t,lang:o,onEvent:e=(()=>{}),embedded:r=!1,embeddedOptions:i,onReload:u}=n;if(!t)throw new Error("URL is not provided. Please provide a valid Veriff session url.");const c=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}(r);function a(){const n=document.getElementById("veriffFrame");if(n&&n.parentNode){t=n,k=k.filter((function(n){return n!==t})),M(),0===k.length&&document.removeEventListener("focusin",M),X(n);let o=n.parentNode.parentNode,e=n.parentNode;r&&!c&&(o=n.parentNode,e=n),o&&o.removeChild(e)}else X();var t;window.removeEventListener("message",d)}function d(n){const t=document.getElementById("veriffFrame");n.data===tn.VERIFF_HANDSHAKE&&function(n,t){n.contentWindow?.postMessage({name:tn.VERIFF_RENDER,payload:t},"*")}(t,{version:"2.3.1",isReloadHandled:"function"==typeof u,isVeriffIframeMobile:c,embeddedConfigured:r,embedded:!c&&r}),n.data===tn.VERIFF_STARTED&&e(on.STARTED),n.data===tn.VERIFF_CANCELED&&(a(),e(on.CANCELED)),n.data===tn.VERIFF_SUBMITTED&&e(on.SUBMITTED),n.data===tn.VERIFF_FINISHED&&(a(),e(on.FINISHED)),n.data===tn.VERIFF_FORCE_RELOAD&&window.location.reload(),n.data===tn.VERIFF_RELOAD_REQUEST&&("function"==typeof u&&u(),e(on.RELOAD_REQUEST))}return function(n,t,o,e){const r=document.createElement("iframe");if(r.src=n,r.allow="autoplay; camera; microphone; fullscreen; accelerometer; magnetometer; gyroscope; picture-in-picture;",r.id="veriffFrame",t)!function(n){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const{rootElementID:e}=t;if(o){n.style.cssText=nn;const t=document.createElement("div");t.style.cssText=Z,t.appendChild(n),document.body.appendChild(t),H(n),J(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="\n position: static;\n width: 100%;\n height: 100%;\n",document.getElementById(e).appendChild(n)}}(r,o,e);else{r.style.cssText=nn;const n=function(){const n=document.createElement("div");return n.style.cssText=Z,n}();n.appendChild(r),document.body.appendChild(n),H(r),J(r)}}(o&&o.length>0?function(n,t,o){if(o){const t=new URL(n),e=t.searchParams;return e.set("lang",o),t.search=e.toString(),t.toString()}return n}(t,0,o):t,r,i,c),window.addEventListener("message",d),{close:a}}const rn=o.gql`
|
|
2
2
|
mutation createImpactVerificationSession($user: UserIdInput!) {
|
|
3
3
|
createImpactPublisherIdentityVerificationSession(user: $user) {
|
|
4
4
|
sessionUrl
|
|
@@ -28,4 +28,4 @@ import{k as n,f as t}from"./p-cd651f81.js";import{d as o,J as e,$ as r,g as i,w
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
`;function fn(n){var t,o,e,r,i,u,c,a;const
|
|
31
|
+
`;function fn(n){var t,o,e,r,i,u,c,a,d,f;const s=null===(o=null===(t=n.user.impactConnection)||void 0===t?void 0:t.publisher)||void 0===o?void 0:o.payoutsAccount;return 1===(null===(e=s.holdReasons)||void 0===e?void 0:e.length)&&(null===(r=s.holdReasons)||void 0===r?void 0:r.includes("NEW_PAYEE_REVIEW"))?"DONE":(null===(u=null===(i=n.user)||void 0===i?void 0:i.impactConnection)||void 0===u?void 0:u.connected)&&s?(null===(c=s.holdReasons)||void 0===c?void 0:c.includes("IDV_CHECK_REQUIRED"))?"VERIFICATION:REQUIRED":(null===(a=s.holdReasons)||void 0===a?void 0:a.includes("IDV_CHECK_REQUIRED_INTERNAL"))?"VERIFICATION:INTERNAL":(null===(d=s.holdReasons)||void 0===d?void 0:d.includes("IDV_CHECK_REVIEW_INTERNAL"))?"VERIFICATION:REVIEW":(null===(f=s.holdReasons)||void 0===f?void 0:f.includes("IDV_CHECK_FAILED_INTERNAL"))?"VERIFICATION:FAILED":s.hold?"HOLD":"DONE":"INFORMATION_REQUIRED"}function sn(o){const{type:e}=i(),{loading:r,data:c,errors:a,refetch:d}=u(dn,{}),{render:f,loading:s}=an(),[l,m]=n(void 0);return t((()=>{if(!c)return;const n=fn(c);m(n)}),[c]),t((()=>{const n=()=>d();return window.addEventListener("sqm:tax-form-updated",n),window.addEventListener("sqm:veriff-updated",n),()=>{window.removeEventListener("sqm:tax-form-updated",n),window.removeEventListener("sqm:veriff-updated",n)}}),[]),{states:{loading:r,veriffLoading:s,status:l,error:!!a},data:{type:e},text:o.getTextProps(),callbacks:{onTermsClick:()=>window.open(o.cashPayoutsPageUrl,"_blank").focus(),onClick:f}}}export{c as T,cn as V,an as a,fn as g,sn as u}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{h as e,r as a,c as t,g as i}from"./p-f708da7b.js";import{m as n,k as o,f as r,n as l,l as s,u as d,b as c,j as u}from"./p-cd651f81.js";import{i as p}from"./p-65069b66.js";import{d as m,_ as h,L as v,J as y,t as g,F as f,x as b,$ as x,i as C,q as S,u as T,R as w,M as I,I as k,S as P}from"./p-94a876b9.js";import{j as _}from"./p-e7e129ac.js";import{c as A}from"./p-c1086930.js";import{g as N,l as E}from"./p-9ec99ced.js";import{c as D}from"./p-cef45012.js";import{E as M}from"./p-91521e9d.js";import{G as R}from"./p-837a0fdd.js";import{u as B,a as q}from"./p-4e451f75.js";import{u as L}from"./p-19ccb4ce.js";import{l as F}from"./p-5bedb58c.js";import{g as U}from"./p-c0f19490.js";import{T as V}from"./p-c9f1dde7.js";import{E as j}from"./p-9acb5038.js";import{t as O,v as G,a as W,b as z,g as H,O as K,I as $,L as Y,c as Z,G as J,f as X,d as Q,o as ee,A as ae}from"./p-3f067fd5.js";import{e as te}from"./p-26468242.js";import{b as ie,V as ne,S as oe,a as re}from"./p-38c7775a.js";import{T as le,a as se,g as de,V as ce}from"./p-
|
|
1
|
+
import{h as e,r as a,c as t,g as i}from"./p-f708da7b.js";import{m as n,k as o,f as r,n as l,l as s,u as d,b as c,j as u}from"./p-cd651f81.js";import{i as p}from"./p-65069b66.js";import{d as m,_ as h,L as v,J as y,t as g,F as f,x as b,$ as x,i as C,q as S,u as T,R as w,M as I,I as k,S as P}from"./p-94a876b9.js";import{j as _}from"./p-e7e129ac.js";import{c as A}from"./p-c1086930.js";import{g as N,l as E}from"./p-9ec99ced.js";import{c as D}from"./p-cef45012.js";import{E as M}from"./p-91521e9d.js";import{G as R}from"./p-837a0fdd.js";import{u as B,a as q}from"./p-4e451f75.js";import{u as L}from"./p-19ccb4ce.js";import{l as F}from"./p-5bedb58c.js";import{g as U}from"./p-c0f19490.js";import{T as V}from"./p-c9f1dde7.js";import{E as j}from"./p-9acb5038.js";import{t as O,v as G,a as W,b as z,g as H,O as K,I as $,L as Y,c as Z,G as J,f as X,d as Q,o as ee,A as ae}from"./p-3f067fd5.js";import{e as te}from"./p-26468242.js";import{b as ie,V as ne,S as oe,a as re}from"./p-38c7775a.js";import{T as le,a as se,g as de,V as ce}from"./p-ba749252.js";import{u as ue}from"./p-d6831af5.js";const pe=m.gql`
|
|
2
2
|
query getUserTaxInfo {
|
|
3
3
|
user: viewer {
|
|
4
4
|
... on User {
|