@saasquatch/mint-components 1.15.1-0 → 1.15.2-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +10 -1
- package/dist/cjs/sqm-big-stat_43.cjs.entry.js +1 -1
- package/dist/cjs/{usePayoutStatus-d459ddde.js → usePayoutStatus-d5acc301.js} +20 -9
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +20 -9
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +9 -0
- package/dist/esm/sqm-banking-info-form_17.entry.js +10 -1
- package/dist/esm/sqm-big-stat_43.entry.js +1 -1
- package/dist/esm/{usePayoutStatus-4a7625b9.js → usePayoutStatus-7c0f0567.js} +20 -9
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -1
- package/dist/esm-es5/{usePayoutStatus-4a7625b9.js → usePayoutStatus-7c0f0567.js} +2 -2
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-457fb652.entry.js → p-1e70b706.entry.js} +10 -1
- package/dist/mint-components/p-25501517.system.js +6 -0
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/{p-6122bf99.system.entry.js → p-48746a73.system.entry.js} +1 -1
- package/dist/mint-components/{p-3b2f1211.js → p-7d56b9e6.js} +11 -2
- package/dist/mint-components/{p-d78e7323.entry.js → p-8a9b8af2.entry.js} +1 -1
- package/dist/mint-components/p-ec09d0a0.system.entry.js +1 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/data.d.ts +9 -0
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/mint-components/p-9f22f58a.system.js +0 -6
- package/dist/mint-components/p-b965147c.system.entry.js +0 -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]",E=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})):[])}),[])},p=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},I=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},h=function(n,t){for(var o=I(n),e=I(t),r=0;r<o.length;r+=1){var i=o[r];if(e.indexOf(i)>=0)return i}return!1},w=function(n){return a(n).filter((function(n){return p(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(w(E(n,t)),!0,t)},R=function(n){return"INPUT"===n.tagName&&"radio"===n.type},g=function(n,t){return t.filter(R).filter((function(t){return t.name===n.name})).filter((function(n){return n.checked}))[0]||n},y=function(n,t){return n.length>1&&R(n[t])&&n[t].name?n.indexOf(g(n[t],n)):t},_="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},F=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":_(u)))return u.v}return t},T=function n(t){return t.parentNode?n(t.parentNode):t},D=function(n){return d(n).filter(Boolean).reduce((function(n,t){var o=t.getAttribute("data-focus-lock");return n.push.apply(n,o?F(a(T(t).querySelectorAll('[data-focus-lock="'+o+'"]:not([data-focus-lock-disabled="disabled"])'))):[t]),n}),[])},A=function(n){return n&&n.dataset&&n.dataset.focusGuard},N=function(n){return!A(n)},O=function(n,t){var o=document&&document.activeElement,e=D(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=h(u||n,n)||u,o.filter(Boolean).forEach((function(n){var t=h(i,n);t&&(u=!u||t.contains(u)?t:h(t,u))}))})),u}(o||n,n,e),i=b(e).filter((function(n){return N(n.node)}));if(i[0]||(i=(u=e,s(w(E(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})),p=(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)),I=p.map((function(n){return n.node})),_=function(n,t,o,e,r){var i,u=n.length,c=n[0],a=n[u-1],d=A(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),E=t.indexOf(a),p=y(n,0),I=y(n,u-1);return-1===f||-1===l?n.indexOf((i=r&&r.length?r:n)[0]&&i.length>1&&R(i[0])&&i[0].name?g(i[0],i):i[0]):!m&&l>=0?l:f<=v&&d&&Math.abs(m)>1?I:f>=v&&d&&Math.abs(m)>1?p:m&&Math.abs(m)>1?l:f<=v?I:f>E?p:m?Math.abs(m)>1?l:(u+l+m)%u:void 0}}(I,v,o,t,I.filter((m=function(n){return n.reduce((function(n,t){return n.concat(function(n){return w((t=n.querySelectorAll("[data-autofocus-inside]"),a(t).map((function(n){return E([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===_?_:p[_]}},S=function(n){return n===document.activeElement},V=0,C=!1,U=0,x=null,L=function(){var n,t,o=!1;if(U){var e=U;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)&&D(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=O(n,x);if(!C&&o){if(V>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);V++,(t=o.node).focus(),t.contentWindow&&t.contentWindow.focus(),V--}}(e)),x=document.activeElement)}return o},k=[],H=function(n){return t=k.filter((function(n){return n})).slice(-1)[0],U=t,!!void(t&&L())&&(n&&n.preventDefault(),!0);var t},M=function(n){0===k.length&&document.addEventListener("focusin",H),k.indexOf(n)<0&&(k.push(n),H())},P=function(){return"undefined"==typeof window},q=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)}},B=0,W=0,j=0,K=null,Q=!1,$=[],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()||(q().ios?(n&&(Array.isArray(n)?n:[n]).forEach((function(n){n&&-1===$.indexOf(n)&&(n.ontouchstart=function(n){W=n.targetTouches[0].clientY,j=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-j,d=n.targetTouches[0].clientY-W,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)},$.push(n))})),Q||(document.addEventListener("touchmove",G,z),Q=!0)):B<=0&&(K=q().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]||""}))}}()),B+=1)},X=function(n){P()||(B-=1)>0||(q().ios||"function"!=typeof K?(n&&(Array.isArray(n)?n:[n]).forEach((function(n){var t=$.indexOf(n);-1!==t&&(n.ontouchmove=null,n.ontouchstart=null,$.splice(t,1))})),Q&&(document.removeEventListener("touchmove",G,z),Q=!1)):K())};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})),H(),0===k.length&&document.removeEventListener("focusin",H),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),M(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),M(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`
|
|
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]",E=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})):[])}),[])},p=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},I=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=I(n),e=I(t),r=0;r<o.length;r+=1){var i=o[r];if(e.indexOf(i)>=0)return i}return!1},h=function(n){return a(n).filter((function(n){return p(n)})).filter((function(n){return function(n){return!(("INPUT"===n.tagName||"BUTTON"===n.tagName)&&("hidden"===n.type||n.disabled))}(n)}))},R=function(n,t){return s(h(E(n,t)),!0,t)},b=function(n){return"INPUT"===n.tagName&&"radio"===n.type},g=function(n,t){return t.filter(b).filter((function(t){return t.name===n.name})).filter((function(n){return n.checked}))[0]||n},y=function(n,t){return n.length>1&&b(n[t])&&n[t].name?n.indexOf(g(n[t],n)):t},_="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},F=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":_(u)))return u.v}return t},T=function n(t){return t.parentNode?n(t.parentNode):t},D=function(n){return d(n).filter(Boolean).reduce((function(n,t){var o=t.getAttribute("data-focus-lock");return n.push.apply(n,o?F(a(T(t).querySelectorAll('[data-focus-lock="'+o+'"]:not([data-focus-lock-disabled="disabled"])'))):[t]),n}),[])},A=function(n){return n&&n.dataset&&n.dataset.focusGuard},N=function(n){return!A(n)},O=function(n,t){var o=document&&document.activeElement,e=D(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=R(e).filter((function(n){return N(n.node)}));if(i[0]||(i=(u=e,s(h(E(u)),!1)).filter((function(n){return N(n.node)})))[0]){var u,c,f,l,m,v=R([r]).map((function(n){return n.node})),p=(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)),I=p.map((function(n){return n.node})),_=function(n,t,o,e,r){var i,u=n.length,c=n[0],a=n[u-1],d=A(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),E=t.indexOf(a),p=y(n,0),I=y(n,u-1);return-1===f||-1===l?n.indexOf((i=r&&r.length?r:n)[0]&&i.length>1&&b(i[0])&&i[0].name?g(i[0],i):i[0]):!m&&l>=0?l:f<=v&&d&&Math.abs(m)>1?I:f>=v&&d&&Math.abs(m)>1?p:m&&Math.abs(m)>1?l:f<=v?I:f>E?p:m?Math.abs(m)>1?l:(u+l+m)%u:void 0}}(I,v,o,t,I.filter((m=function(n){return n.reduce((function(n,t){return n.concat(function(n){return h((t=n.querySelectorAll("[data-autofocus-inside]"),a(t).map((function(n){return E([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===_?_:p[_]}},S=function(n){return n===document.activeElement},V=0,C=!1,U=0,x=null,L=function(){var n,t,o=!1;if(U){var e=U;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)&&D(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=O(n,x);if(!C&&o){if(V>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);V++,(t=o.node).focus(),t.contentWindow&&t.contentWindow.focus(),V--}}(e)),x=document.activeElement)}return o},M=[],k=function(n){return t=M.filter((function(n){return n})).slice(-1)[0],U=t,!!void(t&&L())&&(n&&n.preventDefault(),!0);var t},H=function(n){0===M.length&&document.addEventListener("focusin",k),M.indexOf(n)<0&&(M.push(n),k())},P=function(){return"undefined"==typeof window},q=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)}},B=0,W=0,j=0,K=null,Q=!1,$=[],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()||(q().ios?(n&&(Array.isArray(n)?n:[n]).forEach((function(n){n&&-1===$.indexOf(n)&&(n.ontouchstart=function(n){W=n.targetTouches[0].clientY,j=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-j,d=n.targetTouches[0].clientY-W,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)},$.push(n))})),Q||(document.addEventListener("touchmove",G,z),Q=!0)):B<=0&&(K=q().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]||""}))}}()),B+=1)},X=function(n){P()||(B-=1)>0||(q().ios||"function"!=typeof K?(n&&(Array.isArray(n)?n:[n]).forEach((function(n){var t=$.indexOf(n);-1!==t&&(n.ontouchmove=null,n.ontouchstart=null,$.splice(t,1))})),Q&&(document.removeEventListener("touchmove",G,z),Q=!1)):K())};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,M=M.filter((function(n){return n!==t})),k(),0===M.length&&document.removeEventListener("focusin",k),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
|
|
@@ -25,6 +25,15 @@ import{k as n,f as t}from"./p-cd651f81.js";import{d as o,J as e,$ as r,g as i,w
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
+
rewards(limit: 2000) {
|
|
29
|
+
data {
|
|
30
|
+
statuses
|
|
31
|
+
partnerFundsTransfer {
|
|
32
|
+
id
|
|
33
|
+
status
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
28
37
|
}
|
|
29
38
|
}
|
|
30
39
|
}
|
|
@@ -34,4 +43,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
|
|
|
34
43
|
enforceUsTaxCompliance
|
|
35
44
|
}
|
|
36
45
|
}
|
|
37
|
-
`;function sn(n){var t,o,e,r,i,u,c,a,d,f,s,l;const
|
|
46
|
+
`;function sn(n){var t,o,e,r,i,u,c,a,d,f,s,l,m,v,E;const p=null===(o=null===(t=n.user.impactConnection)||void 0===t?void 0:t.publisher)||void 0===o?void 0:o.payoutsAccount,I=null===(i=null===(r=null===(e=null==n?void 0:n.user)||void 0===e?void 0:e.rewards)||void 0===r?void 0:r.data)||void 0===i?void 0:i.find((n=>n.statuses.includes("REDEEMED")&&"TRANSFERRED"===n.partnerFundsTransfer.status));if(!(null===(c=null===(u=n.user)||void 0===u?void 0:u.impactConnection)||void 0===c?void 0:c.connected)||!p)return"INFORMATION_REQUIRED";const w=null===(d=null===(a=n.user.impactConnection)||void 0===a?void 0:a.publisher)||void 0===d?void 0:d.currentTaxDocument;return(null===(f=p.holdReasons)||void 0===f?void 0:f.includes("NO_W9_DOCUMENT"))&&!w?"OVER_W9_THRESHOLD":(null===(s=p.holdReasons)||void 0===s?void 0:s.includes("IDV_CHECK_REQUIRED"))?"VERIFICATION:REQUIRED":(null===(l=p.holdReasons)||void 0===l?void 0:l.includes("IDV_CHECK_REQUIRED_INTERNAL"))?"VERIFICATION:INTERNAL":(null===(m=p.holdReasons)||void 0===m?void 0:m.includes("IDV_CHECK_REVIEW_INTERNAL"))?"VERIFICATION:REVIEW":(null===(v=p.holdReasons)||void 0===v?void 0:v.includes("IDV_CHECK_FAILED_INTERNAL"))?"VERIFICATION:FAILED":(null===(E=p.holdReasons)||void 0===E?void 0:E.includes("NEW_PAYEE_REVIEW"))&&I?"ACCOUNT_REVIEW":p.hold?"HOLD":"DONE"}function ln(o){var e;const{type:r}=i(),{loading:c,data:a,errors:d,refetch:f}=u(dn,{}),{data:s}=u(fn,{}),{render:l,loading:m}=an(),[v,E]=n(void 0),p=null===(e=null==s?void 0:s.tenantSettings)||void 0===e?void 0:e.enforceUsTaxCompliance;return t((()=>{if(!a)return;const n=sn(a);E(n)}),[a]),t((()=>{const n=()=>f();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:c,veriffLoading:m,status:v,error:!!d,enforceUsTaxComplianceOption:p},data:{type:r},text:o.getTextProps(),callbacks:{onTermsClick:()=>{let n=o.cashPayoutsPageUrl;n.includes("#")&&(n=n.split("#")[0]),"INFORMATION_REQUIRED"===v?n+="#1":"OVER_W9_THRESHOLD"===v&&"CASH_ONLY_DEFER_W9"===p&&(n+="#3"),window.history.pushState(null,"",n)},onClick:l}}}export{c as T,cn as V,an as a,sn as g,ln as u}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,h as t,c as r}from"./p-f708da7b.js";import{n as s,f as a,i,k as n,m as o,u as l,b as c,j as d}from"./p-cd651f81.js";import{i as u}from"./p-65069b66.js";import{i as h,_ as m,d as p,J as v,H as g,$ as f,w as b,B as y,u as x,L as w,y as k,j as E,r as C,V as I,Q as S,k as R}from"./p-94a876b9.js";import{j as _}from"./p-e7e129ac.js";import{c as T}from"./p-c1086930.js";import{g as N,a as q}from"./p-9ec99ced.js";import{c as M}from"./p-cef45012.js";import"./p-3f7b81b8.js";import"./p-91521e9d.js";import{C as A}from"./p-31015791.js";import{a as L}from"./p-4e451f75.js";import{u as D}from"./p-19ccb4ce.js";import"./p-5bedb58c.js";import"./p-c9f1dde7.js";import{p as P}from"./p-8d363802.js";import{R as F,u as O}from"./p-98698131.js";import{R as V,L as $,u as j}from"./p-f98a4354.js";import{P as U}from"./p-dbcb5359.js";import{u as B}from"./p-4e526a94.js";import{A as H}from"./p-121cdc60.js";import{i as z}from"./p-8c23d1b8.js";import{b as W,W as G,B as Y,U as K,J as Z,i as Q,K as X,D as J,E as ee,H as te,I as re,Q as se,O as ae,X as ie,L as ne,N as oe,C as le,d as ce,h as de,P as ue,e as he,R as me,Y as pe,j as ve,a as ge,S as fe,u as be,c as ye,T as xe}from"./p-c1b074b6.js";import"./p-a9f4ddb1.js";import{u as we}from"./p-
|
|
1
|
+
import{r as e,h as t,c as r}from"./p-f708da7b.js";import{n as s,f as a,i,k as n,m as o,u as l,b as c,j as d}from"./p-cd651f81.js";import{i as u}from"./p-65069b66.js";import{i as h,_ as m,d as p,J as v,H as g,$ as f,w as b,B as y,u as x,L as w,y as k,j as E,r as C,V as I,Q as S,k as R}from"./p-94a876b9.js";import{j as _}from"./p-e7e129ac.js";import{c as T}from"./p-c1086930.js";import{g as N,a as q}from"./p-9ec99ced.js";import{c as M}from"./p-cef45012.js";import"./p-3f7b81b8.js";import"./p-91521e9d.js";import{C as A}from"./p-31015791.js";import{a as L}from"./p-4e451f75.js";import{u as D}from"./p-19ccb4ce.js";import"./p-5bedb58c.js";import"./p-c9f1dde7.js";import{p as P}from"./p-8d363802.js";import{R as F,u as O}from"./p-98698131.js";import{R as V,L as $,u as j}from"./p-f98a4354.js";import{P as U}from"./p-dbcb5359.js";import{u as B}from"./p-4e526a94.js";import{A as H}from"./p-121cdc60.js";import{i as z}from"./p-8c23d1b8.js";import{b as W,W as G,B as Y,U as K,J as Z,i as Q,K as X,D as J,E as ee,H as te,I as re,Q as se,O as ae,X as ie,L as ne,N as oe,C as le,d as ce,h as de,P as ue,e as he,R as me,Y as pe,j as ve,a as ge,S as fe,u as be,c as ye,T as xe}from"./p-c1b074b6.js";import"./p-a9f4ddb1.js";import{u as we}from"./p-7d56b9e6.js";const ke=class{constructor(t){e(this,t),this.flexReverse=!1,this.ignored=!0,s(this)}disconnectedCallback(){}render(){var e;const{props:r,label:s}=h()?W(this):G(this),a=!!(null===(e=m().innerHTML)||void 0===e?void 0:e.trim()),i=t("slot",{name:"label"},a?t("slot",null):s);return t(Y,Object.assign({},r,{labelSlot:i}))}},Ee=class{constructor(t){e(this,t),s(this)}disconnectedCallback(){}render(){var e,s;const i=null!==(e=function(e){if(e)try{return K(e)}catch{}}(this.brandColor))&&void 0!==e?e:"",n=(null!==(s=this.brandFont)&&void 0!==s?s:"Nunito Sans").trim()||void 0;a((()=>{if(!n)return;const e=document.createElement("link");return e.setAttribute("href",function(...e){return`https://fonts.googleapis.com/css2?${e.map((e=>`family=${encodeURIComponent(e)}`)).join("&")}`}(n)),e.setAttribute("rel","stylesheet"),document.head.appendChild(e),()=>document.head.removeChild(e)}),[n]);const o=null!=n?n:"";return t(r,null,t("style",null,`\n\n :host{\n display: contents;\n }\n /* \n Selects any element placed inside a slot\n - resets css variable inheritence for fonts\n \n */\n ::slotted(*) {\n --sl-font-sans: "${o}", arial;\n --sl-input-font-family: "${o}", arial;\n --sl-tooltip-font-family: "${o}", arial;\n font-family: "${o}", arial;\n\t\t\t\n ${i}\n\n --sl-focus-ring-color-primary: var(--sl-color-primary-100);\n --sl-input-border-color-focus: var(--sl-color-primary-500);\n --sl-color-primary-hue: var(--sl-color-primary-500);\n }`),t("slot",null))}},Ce=class{constructor(t){e(this,t),this.ignored=!0,this.width=347,this.gap=24,s(this)}disconnectedCallback(){}render(){return t(Z,Object.assign({},N(this)),t("slot",null))}};function Ie(e){var t;const r=i(F),[s,o]=n(!1);return a((()=>{var t,s;(null===(t=null==r?void 0:r.initialData)||void 0===t?void 0:t[e.checkboxName])&&o(!!(null===(s=null==r?void 0:r.initialData)||void 0===s?void 0:s[e.checkboxName]))}),[null===(t=null==r?void 0:r.initialData)||void 0===t?void 0:t[e.checkboxName]]),{states:{registrationFormState:r,checked:s},callbacks:{setChecked:o}}}const Se=class{constructor(t){e(this,t),this.ignored=!0,this.checkboxLabel="By signing up you agree to the {labelLink}",this.checkboxLabelLink="https://example.com",this.checkboxLabelLinkText="Terms and Conditions",this.errorMessage="Must be checked",this.checkboxOptional=!1,s(this)}disconnectedCallback(){}render(){const e=q([{attribute:"checkbox-name",value:this.checkboxName}]);if(!h()&&e)return t(V,{missingProps:e,heading:"An error occured while loading this form",subheading:"A technical problem prevented this checkbox field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"});const r={...N(this)},{states:s,callbacks:a}=h()?T({states:{registrationFormState:{},checked:!1},callbacks:{setChecked:()=>{}}},this.demoData||{},{arrayMerge:(e,t)=>t}):Ie(this);return t(Q,{states:s,content:r,callbacks:a})}},Re=p.gql`
|
|
2
2
|
query fuelTankRewardsQuery($programId: ID!) {
|
|
3
3
|
user: viewer {
|
|
4
4
|
... on User {
|