@saasquatch/mint-components 1.14.1 → 1.14.3-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/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +13 -4
- package/dist/cjs/sqm-big-stat_41.cjs.entry.js +1 -1
- package/dist/cjs/{usePayoutStatus-639cc554.js → usePayoutStatus-feeac99b.js} +3 -3
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +27 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +31 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_17.entry.js +13 -4
- package/dist/esm/sqm-big-stat_41.entry.js +1 -1
- package/dist/esm/{usePayoutStatus-68c2fe88.js → usePayoutStatus-fed17fc9.js} +3 -3
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- 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-68c2fe88.js → usePayoutStatus-fed17fc9.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-070e5813.entry.js +205 -0
- package/dist/mint-components/{p-ba749252.js → p-11dff275.js} +1 -1
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/p-4df3526e.system.entry.js +1 -0
- package/dist/mint-components/{p-f2f8d39a.system.entry.js → p-6604658c.system.entry.js} +1 -1
- package/dist/mint-components/{p-4886f44d.entry.js → p-73891ac0.entry.js} +1 -1
- package/dist/mint-components/{p-9b85baf6.system.js → p-9721a29a.system.js} +1 -1
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +5 -0
- package/dist/types/components.d.ts +18 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/mint-components/p-9fb65fb5.system.entry.js +0 -1
- package/dist/mint-components/p-e3e4a466.entry.js +0 -205
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -2
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
|
@@ -3,4 +3,4 @@ var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,n){if(Objec
|
|
|
3
3
|
* tua-body-scroll-lock v1.2.1
|
|
4
4
|
* (c) 2021 Evinma, BuptStEve
|
|
5
5
|
* @license MIT
|
|
6
|
-
*/var me=function e(){return typeof window==="undefined"};var Ee=function e(n){n=n||navigator.userAgent;var t=/(iPad).*OS\s([\d_]+)/.test(n);var r=!t&&/(iPhone\sOS)\s([\d_]+)/.test(n);var o=/(Android);?[\s/]+([\d.]+)?/.test(n);var i=r||t;return{ios:i,android:o}};function he(e){if(me())return false;if(!e){throw new Error("options must be provided")}var n=false;var t={get passive(){n=true;return}};var r=function e(){};var o="__TUA_BSL_TEST_PASSIVE__";window.addEventListener(o,r,t);window.removeEventListener(o,r,t);var i=e.capture;return n?e:typeof i!=="undefined"?i:false}var pe=0;var ye=0;var Ie=0;var ge=null;var be=false;var we=[];var Re=he({passive:false});var _e=!me()&&"scrollBehavior"in document.documentElement.style;var Fe=function e(){var n=document.body;var t=Object.assign({},n.style);var r=window.innerWidth-n.clientWidth;n.style.overflow="hidden";n.style.boxSizing="border-box";n.style.paddingRight="".concat(r,"px");return function(){["overflow","boxSizing","paddingRight"].forEach((function(e){n.style[e]=t[e]||""}))}};var Te=function e(){var n=document.documentElement;var t=document.body;var r=n.scrollTop||t.scrollTop;var o=Object.assign({},n.style);var i=Object.assign({},t.style);n.style.height="100%";n.style.overflow="hidden";t.style.top="-".concat(r,"px");t.style.width="100%";t.style.height="auto";t.style.position="fixed";t.style.overflow="hidden";return function(){n.style.height=o.height||"";n.style.overflow=o.overflow||"";["top","width","height","overflow","position"].forEach((function(e){t.style[e]=i[e]||""}));_e?window.scrollTo({top:r,behavior:"instant"}):window.scrollTo(0,r)}};var Se=function e(n){if(!n.cancelable)return;n.preventDefault()};var De=function e(n,t){if(t){var r=t.scrollTop,o=t.scrollLeft,i=t.scrollWidth,a=t.scrollHeight,u=t.clientWidth,c=t.clientHeight;var f=n.targetTouches[0].clientX-Ie;var s=n.targetTouches[0].clientY-ye;var d=Math.abs(s)>Math.abs(f);var l=s>0&&r===0;var v=f>0&&o===0;var m=f<0&&o+u+1>=i;var E=s<0&&r+c+1>=a;if(d&&(l||E)||!d&&(v||m)){return Se(n)}}n.stopPropagation();return true};var Ae=function e(n){if(me())return;if(Ee().ios){if(n){var t=Array.isArray(n)?n:[n];t.forEach((function(e){if(e&&we.indexOf(e)===-1){e.ontouchstart=function(e){ye=e.targetTouches[0].clientY;Ie=e.targetTouches[0].clientX};e.ontouchmove=function(n){if(n.targetTouches.length!==1)return;De(n,e)};we.push(e)}}))}if(!be){document.addEventListener("touchmove",Se,Re);be=true}}else if(pe<=0){ge=Ee().android?Te():Fe()}pe+=1};var Ne=function e(n){if(me())return;pe-=1;if(pe>0)return;if(!Ee().ios&&typeof ge==="function"){ge();return}if(n){var t=Array.isArray(n)?n:[n];t.forEach((function(e){var n=we.indexOf(e);if(n!==-1){e.ontouchmove=null;e.ontouchstart=null;we.splice(n,1)}}))}if(be){document.removeEventListener("touchmove",Se,Re);be=false}};var Oe="\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";var xe="\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";var Ve="\n position: static;\n width: 100%;\n height: 100%;\n";var Ce=function(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var t=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;var r=n.rootElementID;if(t){e.style.cssText=xe;var o=document.createElement("div");o.style.cssText=Oe;o.appendChild(e);document.body.appendChild(o);ve.on(e);Ae(e)}else{if(!r){throw new Error("rootElementID must be specified in embedded mode")}if(!document.getElementById(r)){throw new Error("rootElementID must point to an existing DOM element")}e.style.cssText=Ve;document.getElementById(r).appendChild(e)}};var Le=function(e){e["VERIFF_HANDSHAKE"]="VERIFF_HANDSHAKE";e["VERIFF_RENDER"]="VERIFF_RENDER";e["VERIFF_STARTED"]="VERIFF_STARTED";e["VERIFF_SUBMITTED"]="VERIFF_SUBMITTED";e["VERIFF_FINISHED"]="VERIFF_FINISHED";e["VERIFF_CANCELED"]="VERIFF_CANCELED";e["VERIFF_FORCE_RELOAD"]="VERIFF_FORCE_RELOAD";e["VERIFF_RELOAD_REQUEST"]="VERIFF_RELOAD_REQUEST";return e}({});var Ue=function(e){e["STARTED"]="STARTED";e["SUBMITTED"]="SUBMITTED";e["FINISHED"]="FINISHED";e["CANCELED"]="CANCELED";e["RELOAD_REQUEST"]="RELOAD";return e}({});var ke="veriffFrame";function Pe(e,n){var t;(t=e.contentWindow)===null||t===void 0?void 0:t.postMessage({name:Le.VERIFF_RENDER,payload:n},"*")}function He(e){if(e){try{var n=matchMedia("(max-width: 767px), (hover: none)");return n.matches}catch(e){console.error("Error while checking if iframe is mobile",e);return false}}return false}function Me(e,n,t){if(t){var r=new URL(e);var o=r.searchParams;o.set(n,t);r.search=o.toString();return r.toString()}return e}function Be(){var e=document.createElement("div");e.style.cssText=Oe;return e}function je(e,n,t,r){var o=document.createElement("iframe");o.src=e;o.allow="autoplay; camera; microphone; fullscreen; accelerometer; magnetometer; gyroscope; picture-in-picture;";o.id=ke;if(n){Ce(o,t,r)}else{o.style.cssText=xe;var i=Be();i.appendChild(o);document.body.appendChild(i);ve.on(o);Ae(o)}return o}function qe(e){var n=e.url,t=e.lang,r=e.onEvent,o=r===void 0?function(){return}:r,i=e.embedded,a=i===void 0?false:i,u=e.embeddedOptions,c=e.onReload;if(!n){throw new Error("URL is not provided. Please provide a valid Veriff session url.")}var f=He(a);function s(){var e=document.getElementById(ke);if(e&&e.parentNode){ve.off(e);Ne(e);var n=e.parentNode.parentNode;var t=e.parentNode;if(a&&!f){n=e.parentNode;t=e}if(n)n.removeChild(t)}else{Ne()}window.removeEventListener("message",d)}function d(e){var n=document.getElementById(ke);var t="2.3.1";if(e.data===Le.VERIFF_HANDSHAKE){Pe(n,{version:t,isReloadHandled:typeof c==="function",isVeriffIframeMobile:f,embeddedConfigured:a,embedded:f?false:a})}if(e.data===Le.VERIFF_STARTED){o(Ue.STARTED)}if(e.data===Le.VERIFF_CANCELED){s();o(Ue.CANCELED)}if(e.data===Le.VERIFF_SUBMITTED){o(Ue.SUBMITTED)}if(e.data===Le.VERIFF_FINISHED){s();o(Ue.FINISHED)}if(e.data===Le.VERIFF_FORCE_RELOAD){window.location.reload()}if(e.data===Le.VERIFF_RELOAD_REQUEST){if(typeof c==="function"){c()}o(Ue.RELOAD_REQUEST)}}var l=t&&t.length>0?Me(n,"lang",t):n;je(l,a,u,f);window.addEventListener("message",d);return{close:s}}var We=r.gql(__makeTemplateObject(["\n mutation createImpactVerificationSession($user: UserIdInput!) {\n createImpactPublisherIdentityVerificationSession(user: $user) {\n sessionUrl\n }\n }\n"],["\n mutation createImpactVerificationSession($user: UserIdInput!) {\n createImpactPublisherIdentityVerificationSession(user: $user) {\n sessionUrl\n }\n }\n"]));var Qe=r.gql(__makeTemplateObject(["\n mutation refreshImpactPublisherFinanceStatus($user: UserIdInput!) {\n refreshImpactPublisherFinanceStatus(user: $user) {\n id\n }\n }\n"],["\n mutation refreshImpactPublisherFinanceStatus($user: UserIdInput!) {\n refreshImpactPublisherFinanceStatus(user: $user) {\n id\n }\n }\n"]));var $e=e("V","sqm:veriff-updated");function Ke(){var e=this;var n=o(),t=n.id,r=n.accountId;var a=i(We),u=a[0],c=a[1],f=c.loading,s=c.errors;var d=i(Qe),l=d[0],v=d[1],m=v.loading,E=v.errors;var h=function(){return __awaiter(e,void 0,void 0,(function(){var e,n;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);return[4,l({user:{id:t,accountId:r}})];case 1:e=o.sent();if(!e||e.message)throw new Error;window.dispatchEvent(new Event($e));return[3,3];case 2:n=o.sent();console.error("Failed to initialise Veriff:",n);return[3,3];case 3:return[2]}}))}))};var p=function(){return __awaiter(e,void 0,void 0,(function(){var e,n,o;return __generator(this,(function(i){switch(i.label){case 0:i.trys.push([0,2,,3]);return[4,u({user:{id:t,accountId:r}})];case 1:e=i.sent();if(!e||e.message)throw new Error;n=e.createImpactPublisherIdentityVerificationSession.sessionUrl;qe({url:n,onEvent:function(e){switch(e){case Ue.FINISHED:case Ue.CANCELED:h()}}});return[3,3];case 2:o=i.sent();console.error("Failed to initialise Veriff:",o);return[3,3];case 3:return[2]}}))}))};return{render:p,loading:f||m,errors:s||E}}var Ge=r.gql(__makeTemplateObject(["\n query getUserStatus {\n user: viewer {\n ... on User {\n id\n impactConnection {\n connected\n publisher {\n id\n payoutsAccount {\n hold\n holdReasons\n }\n }\n }\n }\n }\n }\n"],["\n query getUserStatus {\n user: viewer {\n ... on User {\n id\n impactConnection {\n connected\n publisher {\n id\n payoutsAccount {\n hold\n holdReasons\n }\n }\n }\n }\n }\n }\n"]));function ze(e){var n,t,r,o,i,a,u,c,f,s;var d=(t=(n=e.user.impactConnection)===null||n===void 0?void 0:n.publisher)===null||t===void 0?void 0:t.payoutsAccount;if(((r=d.holdReasons)===null||r===void 0?void 0:r.length)===1&&((o=d.holdReasons)===null||o===void 0?void 0:o.includes("NEW_PAYEE_REVIEW"))){return"DONE"}if(!((a=(i=e.user)===null||i===void 0?void 0:i.impactConnection)===null||a===void 0?void 0:a.connected)||!d)return"INFORMATION_REQUIRED";if((u=d.holdReasons)===null||u===void 0?void 0:u.includes("IDV_CHECK_REQUIRED"))return"VERIFICATION:REQUIRED";if((c=d.holdReasons)===null||c===void 0?void 0:c.includes("IDV_CHECK_REQUIRED_INTERNAL"))return"VERIFICATION:INTERNAL";if((f=d.holdReasons)===null||f===void 0?void 0:f.includes("IDV_CHECK_REVIEW_INTERNAL"))return"VERIFICATION:REVIEW";if((s=d.holdReasons)===null||s===void 0?void 0:s.includes("IDV_CHECK_FAILED_INTERNAL"))return"VERIFICATION:FAILED";if(d.hold)return"HOLD";return"DONE"}function Ye(e){var r=a().type;var o=u(Ge,{}),i=o.loading,f=o.data,s=o.errors,d=o.refetch;var l=Ke(),v=l.render,m=l.loading,E=l.errors;var h=n(undefined),p=h[0],y=h[1];t((function(){if(!f)return;var e=ze(f);y(e)}),[f]);t((function(){var e=function(){return d()};window.addEventListener(c,e);window.addEventListener($e,e);return function(){window.removeEventListener(c,e);window.removeEventListener($e,e)}}),[]);return{states:{loading:i,veriffLoading:m,status:p,error:!!s},data:{type:r},text:e.getTextProps(),callbacks:{onTermsClick:function(){return window.open(e.cashPayoutsPageUrl,"_blank").focus()},onClick:v}}}}}}));
|
|
6
|
+
*/var me=function e(){return typeof window==="undefined"};var Ee=function e(n){n=n||navigator.userAgent;var t=/(iPad).*OS\s([\d_]+)/.test(n);var r=!t&&/(iPhone\sOS)\s([\d_]+)/.test(n);var o=/(Android);?[\s/]+([\d.]+)?/.test(n);var i=r||t;return{ios:i,android:o}};function he(e){if(me())return false;if(!e){throw new Error("options must be provided")}var n=false;var t={get passive(){n=true;return}};var r=function e(){};var o="__TUA_BSL_TEST_PASSIVE__";window.addEventListener(o,r,t);window.removeEventListener(o,r,t);var i=e.capture;return n?e:typeof i!=="undefined"?i:false}var pe=0;var ye=0;var Ie=0;var ge=null;var be=false;var we=[];var Re=he({passive:false});var _e=!me()&&"scrollBehavior"in document.documentElement.style;var Fe=function e(){var n=document.body;var t=Object.assign({},n.style);var r=window.innerWidth-n.clientWidth;n.style.overflow="hidden";n.style.boxSizing="border-box";n.style.paddingRight="".concat(r,"px");return function(){["overflow","boxSizing","paddingRight"].forEach((function(e){n.style[e]=t[e]||""}))}};var Te=function e(){var n=document.documentElement;var t=document.body;var r=n.scrollTop||t.scrollTop;var o=Object.assign({},n.style);var i=Object.assign({},t.style);n.style.height="100%";n.style.overflow="hidden";t.style.top="-".concat(r,"px");t.style.width="100%";t.style.height="auto";t.style.position="fixed";t.style.overflow="hidden";return function(){n.style.height=o.height||"";n.style.overflow=o.overflow||"";["top","width","height","overflow","position"].forEach((function(e){t.style[e]=i[e]||""}));_e?window.scrollTo({top:r,behavior:"instant"}):window.scrollTo(0,r)}};var Se=function e(n){if(!n.cancelable)return;n.preventDefault()};var De=function e(n,t){if(t){var r=t.scrollTop,o=t.scrollLeft,i=t.scrollWidth,a=t.scrollHeight,u=t.clientWidth,c=t.clientHeight;var f=n.targetTouches[0].clientX-Ie;var s=n.targetTouches[0].clientY-ye;var d=Math.abs(s)>Math.abs(f);var l=s>0&&r===0;var v=f>0&&o===0;var m=f<0&&o+u+1>=i;var E=s<0&&r+c+1>=a;if(d&&(l||E)||!d&&(v||m)){return Se(n)}}n.stopPropagation();return true};var Ae=function e(n){if(me())return;if(Ee().ios){if(n){var t=Array.isArray(n)?n:[n];t.forEach((function(e){if(e&&we.indexOf(e)===-1){e.ontouchstart=function(e){ye=e.targetTouches[0].clientY;Ie=e.targetTouches[0].clientX};e.ontouchmove=function(n){if(n.targetTouches.length!==1)return;De(n,e)};we.push(e)}}))}if(!be){document.addEventListener("touchmove",Se,Re);be=true}}else if(pe<=0){ge=Ee().android?Te():Fe()}pe+=1};var Ne=function e(n){if(me())return;pe-=1;if(pe>0)return;if(!Ee().ios&&typeof ge==="function"){ge();return}if(n){var t=Array.isArray(n)?n:[n];t.forEach((function(e){var n=we.indexOf(e);if(n!==-1){e.ontouchmove=null;e.ontouchstart=null;we.splice(n,1)}}))}if(be){document.removeEventListener("touchmove",Se,Re);be=false}};var Oe="\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";var xe="\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";var Ve="\n position: static;\n width: 100%;\n height: 100%;\n";var Ce=function(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var t=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;var r=n.rootElementID;if(t){e.style.cssText=xe;var o=document.createElement("div");o.style.cssText=Oe;o.appendChild(e);document.body.appendChild(o);ve.on(e);Ae(e)}else{if(!r){throw new Error("rootElementID must be specified in embedded mode")}if(!document.getElementById(r)){throw new Error("rootElementID must point to an existing DOM element")}e.style.cssText=Ve;document.getElementById(r).appendChild(e)}};var Le=function(e){e["VERIFF_HANDSHAKE"]="VERIFF_HANDSHAKE";e["VERIFF_RENDER"]="VERIFF_RENDER";e["VERIFF_STARTED"]="VERIFF_STARTED";e["VERIFF_SUBMITTED"]="VERIFF_SUBMITTED";e["VERIFF_FINISHED"]="VERIFF_FINISHED";e["VERIFF_CANCELED"]="VERIFF_CANCELED";e["VERIFF_FORCE_RELOAD"]="VERIFF_FORCE_RELOAD";e["VERIFF_RELOAD_REQUEST"]="VERIFF_RELOAD_REQUEST";return e}({});var Ue=function(e){e["STARTED"]="STARTED";e["SUBMITTED"]="SUBMITTED";e["FINISHED"]="FINISHED";e["CANCELED"]="CANCELED";e["RELOAD_REQUEST"]="RELOAD";return e}({});var ke="veriffFrame";function Pe(e,n){var t;(t=e.contentWindow)===null||t===void 0?void 0:t.postMessage({name:Le.VERIFF_RENDER,payload:n},"*")}function He(e){if(e){try{var n=matchMedia("(max-width: 767px), (hover: none)");return n.matches}catch(e){console.error("Error while checking if iframe is mobile",e);return false}}return false}function Me(e,n,t){if(t){var r=new URL(e);var o=r.searchParams;o.set(n,t);r.search=o.toString();return r.toString()}return e}function Be(){var e=document.createElement("div");e.style.cssText=Oe;return e}function je(e,n,t,r){var o=document.createElement("iframe");o.src=e;o.allow="autoplay; camera; microphone; fullscreen; accelerometer; magnetometer; gyroscope; picture-in-picture;";o.id=ke;if(n){Ce(o,t,r)}else{o.style.cssText=xe;var i=Be();i.appendChild(o);document.body.appendChild(i);ve.on(o);Ae(o)}return o}function qe(e){var n=e.url,t=e.lang,r=e.onEvent,o=r===void 0?function(){return}:r,i=e.embedded,a=i===void 0?false:i,u=e.embeddedOptions,c=e.onReload;if(!n){throw new Error("URL is not provided. Please provide a valid Veriff session url.")}var f=He(a);function s(){var e=document.getElementById(ke);if(e&&e.parentNode){ve.off(e);Ne(e);var n=e.parentNode.parentNode;var t=e.parentNode;if(a&&!f){n=e.parentNode;t=e}if(n)n.removeChild(t)}else{Ne()}window.removeEventListener("message",d)}function d(e){var n=document.getElementById(ke);var t="2.3.1";if(e.data===Le.VERIFF_HANDSHAKE){Pe(n,{version:t,isReloadHandled:typeof c==="function",isVeriffIframeMobile:f,embeddedConfigured:a,embedded:f?false:a})}if(e.data===Le.VERIFF_STARTED){o(Ue.STARTED)}if(e.data===Le.VERIFF_CANCELED){s();o(Ue.CANCELED)}if(e.data===Le.VERIFF_SUBMITTED){o(Ue.SUBMITTED)}if(e.data===Le.VERIFF_FINISHED){s();o(Ue.FINISHED)}if(e.data===Le.VERIFF_FORCE_RELOAD){window.location.reload()}if(e.data===Le.VERIFF_RELOAD_REQUEST){if(typeof c==="function"){c()}o(Ue.RELOAD_REQUEST)}}var l=t&&t.length>0?Me(n,"lang",t):n;je(l,a,u,f);window.addEventListener("message",d);return{close:s}}var We=r.gql(__makeTemplateObject(["\n mutation createImpactVerificationSession($user: UserIdInput!) {\n createImpactPublisherIdentityVerificationSession(user: $user) {\n sessionUrl\n }\n }\n"],["\n mutation createImpactVerificationSession($user: UserIdInput!) {\n createImpactPublisherIdentityVerificationSession(user: $user) {\n sessionUrl\n }\n }\n"]));var Qe=r.gql(__makeTemplateObject(["\n mutation refreshImpactPublisherFinanceStatus($user: UserIdInput!) {\n refreshImpactPublisherFinanceStatus(user: $user) {\n id\n }\n }\n"],["\n mutation refreshImpactPublisherFinanceStatus($user: UserIdInput!) {\n refreshImpactPublisherFinanceStatus(user: $user) {\n id\n }\n }\n"]));var $e=e("V","sqm:veriff-updated");function Ke(){var e=this;var n=o(),t=n.id,r=n.accountId;var a=i(We),u=a[0],c=a[1],f=c.loading,s=c.errors;var d=i(Qe),l=d[0],v=d[1],m=v.loading,E=v.errors;var h=function(){return __awaiter(e,void 0,void 0,(function(){var e,n;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);return[4,l({user:{id:t,accountId:r}})];case 1:e=o.sent();if(!e||e.message)throw new Error;window.dispatchEvent(new Event($e));return[3,3];case 2:n=o.sent();console.error("Failed to initialise Veriff:",n);return[3,3];case 3:return[2]}}))}))};var p=function(){return __awaiter(e,void 0,void 0,(function(){var e,n,o;return __generator(this,(function(i){switch(i.label){case 0:i.trys.push([0,2,,3]);return[4,u({user:{id:t,accountId:r}})];case 1:e=i.sent();if(!e||e.message)throw new Error;n=e.createImpactPublisherIdentityVerificationSession.sessionUrl;qe({url:n,onEvent:function(e){switch(e){case Ue.FINISHED:case Ue.CANCELED:h()}}});return[3,3];case 2:o=i.sent();console.error("Failed to initialise Veriff:",o);return[3,3];case 3:return[2]}}))}))};return{render:p,loading:f||m,errors:s||E}}var Ge=r.gql(__makeTemplateObject(["\n query getUserStatus {\n user: viewer {\n ... on User {\n id\n impactConnection {\n connected\n publisher {\n id\n payoutsAccount {\n hold\n holdReasons\n }\n }\n }\n }\n }\n }\n"],["\n query getUserStatus {\n user: viewer {\n ... on User {\n id\n impactConnection {\n connected\n publisher {\n id\n payoutsAccount {\n hold\n holdReasons\n }\n }\n }\n }\n }\n }\n"]));function ze(e){var n,t,r,o,i,a,u,c,f,s;var d=(t=(n=e.user.impactConnection)===null||n===void 0?void 0:n.publisher)===null||t===void 0?void 0:t.payoutsAccount;if(!((o=(r=e.user)===null||r===void 0?void 0:r.impactConnection)===null||o===void 0?void 0:o.connected)||!d)return"INFORMATION_REQUIRED";if(((i=d.holdReasons)===null||i===void 0?void 0:i.length)===1&&((a=d.holdReasons)===null||a===void 0?void 0:a.includes("NEW_PAYEE_REVIEW"))){return"DONE"}if((u=d.holdReasons)===null||u===void 0?void 0:u.includes("IDV_CHECK_REQUIRED"))return"VERIFICATION:REQUIRED";if((c=d.holdReasons)===null||c===void 0?void 0:c.includes("IDV_CHECK_REQUIRED_INTERNAL"))return"VERIFICATION:INTERNAL";if((f=d.holdReasons)===null||f===void 0?void 0:f.includes("IDV_CHECK_REVIEW_INTERNAL"))return"VERIFICATION:REVIEW";if((s=d.holdReasons)===null||s===void 0?void 0:s.includes("IDV_CHECK_FAILED_INTERNAL"))return"VERIFICATION:FAILED";if(d.hold)return"HOLD";return"DONE"}function Ye(e){var r=a().type;var o=u(Ge,{}),i=o.loading,f=o.data,s=o.errors,d=o.refetch;var l=Ke(),v=l.render,m=l.loading,E=l.errors;var h=n(undefined),p=h[0],y=h[1];t((function(){if(!f)return;var e=ze(f);y(e)}),[f]);t((function(){var e=function(){return d()};window.addEventListener(c,e);window.addEventListener($e,e);return function(){window.removeEventListener(c,e);window.removeEventListener($e,e)}}),[]);return{states:{loading:i,veriffLoading:m,status:p,error:!!s},data:{type:r},text:e.getTextProps(),callbacks:{onTermsClick:function(){return window.open(e.cashPayoutsPageUrl,"_blank").focus()},onClick:v}}}}}}));
|
|
@@ -81,6 +81,10 @@ export declare class BankingInfoForm {
|
|
|
81
81
|
* @uiName Beneficiary account field label
|
|
82
82
|
*/
|
|
83
83
|
beneficiaryAccountNameLabel: string;
|
|
84
|
+
/**
|
|
85
|
+
* @uiName Beneficiary account field description
|
|
86
|
+
*/
|
|
87
|
+
beneficiaryAccountNameDescription: string;
|
|
84
88
|
/**
|
|
85
89
|
* @uiName Bank account type field label
|
|
86
90
|
*/
|
|
@@ -366,6 +366,11 @@ export declare class TaxAndCashMonolith {
|
|
|
366
366
|
* @uiGroup Step 4 Properties
|
|
367
367
|
*/
|
|
368
368
|
step4_beneficiaryAccountNameLabel: string;
|
|
369
|
+
/**
|
|
370
|
+
* @uiName Beneficiary account field description
|
|
371
|
+
* @uiGroup Step 4 Properties
|
|
372
|
+
*/
|
|
373
|
+
step4_beneficiaryAccountNameDescription: string;
|
|
369
374
|
/**
|
|
370
375
|
* @uiName Bank account type field label
|
|
371
376
|
* @uiGroup Step 4 Properties
|
|
@@ -116,6 +116,10 @@ export namespace Components {
|
|
|
116
116
|
* @uiName Bank province/state field label
|
|
117
117
|
*/
|
|
118
118
|
"bankStateLabel": string;
|
|
119
|
+
/**
|
|
120
|
+
* @uiName Beneficiary account field description
|
|
121
|
+
*/
|
|
122
|
+
"beneficiaryAccountNameDescription": string;
|
|
119
123
|
/**
|
|
120
124
|
* @uiName Beneficiary account field label
|
|
121
125
|
*/
|
|
@@ -5100,6 +5104,11 @@ export namespace Components {
|
|
|
5100
5104
|
* @uiGroup Step 4 Properties
|
|
5101
5105
|
*/
|
|
5102
5106
|
"step4_bankStateLabel": string;
|
|
5107
|
+
/**
|
|
5108
|
+
* @uiName Beneficiary account field description
|
|
5109
|
+
* @uiGroup Step 4 Properties
|
|
5110
|
+
*/
|
|
5111
|
+
"step4_beneficiaryAccountNameDescription": string;
|
|
5103
5112
|
/**
|
|
5104
5113
|
* @uiName Beneficiary account field label
|
|
5105
5114
|
* @uiGroup Step 4 Properties
|
|
@@ -6860,6 +6869,10 @@ declare namespace LocalJSX {
|
|
|
6860
6869
|
* @uiName Bank province/state field label
|
|
6861
6870
|
*/
|
|
6862
6871
|
"bankStateLabel"?: string;
|
|
6872
|
+
/**
|
|
6873
|
+
* @uiName Beneficiary account field description
|
|
6874
|
+
*/
|
|
6875
|
+
"beneficiaryAccountNameDescription"?: string;
|
|
6863
6876
|
/**
|
|
6864
6877
|
* @uiName Beneficiary account field label
|
|
6865
6878
|
*/
|
|
@@ -11815,6 +11828,11 @@ declare namespace LocalJSX {
|
|
|
11815
11828
|
* @uiGroup Step 4 Properties
|
|
11816
11829
|
*/
|
|
11817
11830
|
"step4_bankStateLabel"?: string;
|
|
11831
|
+
/**
|
|
11832
|
+
* @uiName Beneficiary account field description
|
|
11833
|
+
* @uiGroup Step 4 Properties
|
|
11834
|
+
*/
|
|
11835
|
+
"step4_beneficiaryAccountNameDescription"?: string;
|
|
11818
11836
|
/**
|
|
11819
11837
|
* @uiName Beneficiary account field label
|
|
11820
11838
|
* @uiGroup Step 4 Properties
|
package/docs/docs.docx
CHANGED
|
Binary file
|