PageSourceSearch

https://mindcapital.co/_next/static/chunks/pages/invest/user-portal/verification/contract-a2c232701b609288.js

js mindcapital.co collected 2026-10-09 21:56:51 UTC 23,889 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8153],{5130:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(53441);function s(e,t){void 0===t&&(t={});var r,n,s=(r=e)&&"j"===r[0]&&":"===r[1]?r.substr(2):r;if(void 0===(n=t.doNotParse)&&(n=!s||"{"!==s[0]&&"["!==s[0]&&'"'!==s[0]),!n)try{return JSON.parse(s)}catch(e){}return e}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)};let c=function(){function e(e,t){var r=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies="string"==typeof e?n.q(e,t):"object"==typeof e&&null!==e?e:{},new Promise(function(){r.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie}).catch(function(){})}return e.prototype._updateBrowserValues=function(e){this.HAS_DOCUMENT_COOKIE&&(this.cookies=n.q(document.cookie,e))},e.prototype._emitChange=function(e){for(var t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)},e.prototype.get=function(e,t,r){return void 0===t&&(t={}),this._updateBrowserValues(r),s(this.cookies[e],t)},e.prototype.getAll=function(e,t){void 0===e&&(e={}),this._updateBrowserValues(t);var r={};for(var n in this.cookies)r[n]=s(this.cookies[n],e);return r},e.prototype.set=function(e,t,r){var s;"object"==typeof t&&(t=JSON.stringify(t)),this.cookies=o(o({},this.cookies),((s={})[e]=t,s)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=n.l(e,t,r)),this._emitChange({name:e,value:t,options:r})},e.prototype.remove=function(e,t){var r=t=o(o({},t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=o({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=n.l(e,"",r)),this._emitChange({name:e,value:void 0,options:t})},e.prototype.addChangeListener=function(e){this.changeListeners.push(e)},e.prototype.removeChangeListener=function(e){var t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1)},e}()},7422:(e,t,r)=>{"use strict";r.d(t,{R:()=>f});var n=r(14232),s=r(48230),o=r.n(s),c=r(89099),a=r(49995),i=r(72436),l=r(34846),u=r(46863),d=r(67677),p=r(37876);function f(e){var t=e.children,r=(0,l.Bd)([]).t,s=(0,c.useRouter)(),f=(0,d.fS)(),m=(0,n.useMemo)(function(){var e=f.findIndex(function(e){return e.child?e.child.some(function(e){return e.pathname===s.pathname}):e.pathname===s.pathname});return{currentStepIndex:e,totalSteps:f.length,currentStepLabel:e>=0?f[e].label:""}},[s.pathname,f]),h=m.currentStepIndex,x=m.totalSteps,v=m.currentStepLabel;return(0,p.jsxs)(u.Y,{children:[(0,p.jsxs)(o(),{href:"/invest/user-portal/verification",className:"flex items-center mb-6 cursor-pointer -ml-2",children:[(0,p.jsx)(i.UZh,{className:"w-6 h-6 text-merkle-blue"}),(0,p.jsx)("span",{className:"text-merkle-blue font-bold text-sm md:text-base",children:r("verify_identity",{ns:"tab"})})]}),(0,p.jsxs)("div",{className:"mb-6",children:[(0,p.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,p.jsxs)("span",{className:"text-teal-200 font-bold text-sm md:text-base tracking-wide",children:[r("step",{ns:"kyc"})," ",h+1," / ",x]}),(0,p.jsx)("span",{className:"text-merkle-blue font-bold text-sm md:text-base tracking-wide uppercase",children:r(v,{ns:"kyc"})})]}),(0,p.jsx)("div",{className:"flex gap-2",children:f.map(function(e,t){return(0,p.jsx)("div",{className:"flex-1 h-[6px] rounded-full overflow-hidden",children:(0,p.jsx)("div",{className:(0,a.A)("h-full rounded-full transition-all duration-300 w-full",t<h-1&&"bg-teal-200",t===h&&"bg-blue-200",t>h&&"bg-[#E3E8EE]"),style:t===h-1&&h>0?{background:"linear-gradient(to right, #09AF9F, #162A79)"}:void 0})},e.label)})})]}),t]})}},9496:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(14232),s=r(11944),o=r.n(s),c=r(37876);let a=function(e){var t,r,s,a,i=e.content,l=e.onReadComplete,u=e.maxHeight,d=e.className,p=e.containerClassName,f=e.scrollThreshold,m=void 0===f?.97:f,h=e.debounceMs,x=e.showScrollToBottom,v=(0,n.useRef)(null),b=(0,n.useRef)(!1),g=(0,n.useState)(!1),y=g[0],k=g[1],j=(0,n.use
1State)(!1),w=j[0],N=j[1],_=(t=function(){var e=v.current;e&&!b.current&&e.scrollTop/(e.scrollHeight-e.clientHeight)>=m&&(b.current=!0,null==l||l())},r=void 0===h?100:h,s=(0,n.useRef)(null),a=(0,n.useRef)(t),(0,n.useEffect)(function(){a.current=t},[t]),(0,n.useEffect)(function(){return function(){s.current&&clearTimeout(s.current)}},[]),(0,n.useCallback)(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];s.current&&clearTimeout(s.current),s.current=setTimeout(function(){a.current.apply(a,t)},r)},[r])),O=function(){var e=v.current;e&&k(e.scrollTop/(e.scrollHeight-e.clientHeight)>=.95)};return(0,n.useEffect)(function(){var e=v.current;if(e&&i){var t=e.scrollHeight>e.clientHeight;N(t),t||b.current||(b.current=!0,null==l||l())}},[i]),(0,c.jsxs)("div",{className:"m-auto text-center p-2 ".concat(void 0===p?"":p," relative"),children:[(0,c.jsx)("div",{ref:v,className:"legal-content text-[#30313D] border-2 border-gray-100 rounded overflow-y-auto overflow-x-hidden p-8 hover-blue-scrollbar text-left prose max-w-full ".concat(void 0===d?"":d," "),style:{maxHeight:void 0===u?"34rem":u},onScroll:function(){_(),O()},onTouchEnd:function(){_(),O()},dangerouslySetInnerHTML:{__html:o().sanitize(i)}}),(void 0===x||x)&&w&&!y&&(0,c.jsx)("button",{type:"button",onClick:function(){var e=v.current;e&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"})},className:"absolute bottom-5 right-5 bg-teal-200 hover:bg-primary-dark text-white rounded-full w-12 h-12 flex items-center justify-center shadow-lg transition-all duration-200 hover:scale-105 z-10","aria-label":"Scroll to bottom",children:(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,c.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 14l-7 7m0 0l-7-7m7 7V3"})})})]})}},32836:e=>{e.exports=function(e){return e&&e.length?e[0]:void 0}},34868:(e,t,r)=>{"use strict";r.d(t,{r:()=>f});var n=r(14232),s=r(48230),o=r.n(s),c=r(89099),a=r(49995),i=r(72436),l=r(34846),u=r(27028),d=r(67677),p=r(37876);function f(e){var t=e.children,r=(0,l.Bd)([]).t,s=(0,c.useRouter)(),f=(0,d.fS)(),m=(0,n.useMemo)(function(){var e=f.findIndex(function(e){return e.child?e.child.some(function(e){return e.pathname===s.pathname}):e.pathname===s.pathname});return{currentStepIndex:e,totalSteps:f.length,currentStepLabel:e>=0?f[e].label:""}},[s.pathname,f]),h=m.currentStepIndex,x=m.totalSteps,v=m.currentStepLabel;return(0,p.jsxs)(u.A,{enableBreadcrumb:!1,enableKycReviewBar:!1,enableSecWarning:!1,enableSideBar:!1,background:"#F6F8FA",className:"xl:!pt-[0px]",children:[(0,p.jsxs)(o(),{href:"/invest/user-portal/verification",className:"flex items-center mb-6 cursor-pointer -ml-2",children:[(0,p.jsx)(i.UZh,{className:"w-6 h-6 text-merkle-blue"}),(0,p.jsx)("span",{className:"text-merkle-blue font-bold text-sm md:text-base",children:r("verify_identity",{ns:"tab"})})]}),(0,p.jsxs)("div",{className:"mb-6",children:[(0,p.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,p.jsxs)("span",{className:"text-merkle-green font-bold text-sm md:text-base tracking-wide",children:[r("step",{ns:"kyc"})," ",h+1," / ",x]}),(0,p.jsx)("span",{className:"text-merkle-blue font-bold text-sm md:text-base tracking-wide uppercase",children:r(v,{ns:"kyc"})})]}),(0,p.jsx)("div",{className:"flex gap-2",children:f.map(function(e,t){return(0,p.jsx)("div",{className:"flex-1 h-[6px] rounded-full overflow-hidden",children:(0,p.jsx)("div",{className:(0,a.A)("h-full rounded-full transition-all duration-300 w-full",t<h-1&&"bg-merkle-green",t===h&&"bg-merkle-blue",t>h&&"bg-[#E3E8EE]"),style:t===h-1&&h>0?{background:"linear-gradient(to right, #09AF9F, #162A79)"}:void 0})},e.label)})})]}),t]})}},40341:(e,t,r)=>{"use strict";r.d(t,{ru:()=>N});var n=r(63857),s=r(42969),o=r(43081),c=r.n(o);r(14232);var a=r(89099),i=r.n(a),l=r(60072),u=r.n(l),d=r(26757),p=r(33191),f=r.n(p),m=r(88488),h=r(99536),x=r(66763),v=r(94706),b=r(54902),g=r(37876);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?y(Object(r),!0).forEach(function(t){(0,s.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function j(e,t){i().push(e)}var w=function(e,t){var r=u()(e)[m.T],n=t.reverse,s=r?(0,d.A)(r):null;return{token:r,user:s,reverse:void 0!==n&&n}},N=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=function(t){return(0,g.jsx)(e,k({},t))};return t=(0,n.A)(c().mark(function t(n){var s,o,a,i,l,u,p,g,y,N,_,O,E,S;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=w(n,r).token,a=null,i=w(n,r).reverse,v.v.debug("withAuth headers",null==(s=n.req)?void 0:s.headers),l=function(e){var t,r,n,s,o,c;return b._.TRUE_MONEY_DEV_ACCESS_TOKEN?(v.v.debug("get tmnToken from ENV TRUE_MONEY_DEV_ACCESS_TOKEN: ".concat(b._.TRUE_MONEY_DEV_ACCESS_TOKEN)),b._.TRUE_MONEY_DEV_ACCESS_TOKEN):null!=e&&null!=(t=e.query)&&t.tmnAccessToken?(v.v.debug("get tmnToken from query params ".concat(null==e||null==(o=e.query)?void 0:o.tmnAccessToken)),null==e||null==(c=e.query)?void 0:c.tmnAccessToken):f().get(m.cr)?(v.v.debug("get tmnToken from cookie: ".concat(f().get(m.cr))),f().get(m.cr)):(v.v.debug("get tmnToken from header: ".concat(null==(r=e.req)?void 0:r.headers["tmn-access-token"])),null!=(n=null==(s=e.req)?void 0:s.headers["tmn-access-token"])?n:null)}(n),u=null,l&&(n.tmnAccessToken=l),(p=function(e){var t,r,n,s,o;return null!=e&&null!=(t=e.query)&&t.scbsAccessToken?(v.v.debug("get scbsToken from query params ".concat(null==e||null==(s=e.query)?void 0:s.scbsAccessToken)),null==e||null==(o=e.query)?void 0:o.scbsAccessToken):f().get(m.T)?f().get(m.T):null!=(r=null==(n=e.req)?void 0:n.headers["scbs-access-token"])?r:null}(n))&&(n.scbsAccessToken=p),!o){t.next=14;break}n.token=o,a=(0,d.A)(o),t.next=33;break;case 14:if(!(!o&&n.tmnAccessToken)){t.next=32;break}return t.next=17,(0,h.F)(l?{accessToken:l}:{});case 17:if(g=t.sent,v.v.debug("withAuth tmnUser: ".concat(JSON.stringify(g))),y=g.public_profile,N=g.email,_=g.tmn_id,!y){t.next=30;break}return t.next=23,(0,x.ds)(N,_);case 23:n.token=o=(O=t.sent).token,n.tmnUserId=u=_,a=o?(0,d.A)(o):null,n.res&&O.setCookie?(v.v.debug("Forwarding Set-Cookie to client: ".concat(O.setCookie)),n.res.setHeader("Set-Cookie",O.setCookie)):v.v.warn("No Set-Cookie header received from API response");case 30:t.next=33;break;case 32:!o&&n.scbsAccessToken&&(n.token=o=p,a=o?(0,d.A)(o):null);case 33:if(v.v.debug("withAuth merkle token: ".concat(o)),v.v.debug("withAuth tmnAccessToken: ".concat(l)),v.v.debug("withAuth user: ".concat(a?a.uuid:"null")),v.v.debug("reverse: ".concat(i)),!(!o&&!i)){t.next=43;break}j("/"!==(E=n.asPath||"/")?"/invest/login?redirect=".concat(encodeURIComponent(E)):"/invest/login",n),t.next=50;break;case 43:if(!(a&&!a.isVerified&&!a.trueMoneyId&&!a.scbsId)){t.next=49;break}return t.next=46,(0,x.ri)("/invest/login");case 46:j("/",n),t.next=50;break;case 49:o&&i&&j("/invest/user-portal",n);case 50:if(t.t0=e.getInitialProps,!t.t0){t.next=55;break}return t.next=54,e.getInitialProps(n);case 54:t.t0=t.sent;case 55:return S=t.t0,t.abrupt("return",k(k({},S),{},{token:o,user:a,tmnAccessToken:l,tmnUserId:u}));case 57:case"end":return t.stop()}},t)})),s.getInitialProps=function(e){return t.apply(this,arguments)},s}},49035:e=>{e.exports=function(e,t,r){for(var n=r-1,s=e.length;++n<s;)if(e[n]===t)return n;return -1}},53113:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>H});var n=r(42969),s=r(63857),o=r(7766),c=r.n(o),a=r(43081),i=r.n(a),l=r(48230),u=r.n(l),d=r(14232),p=r(37983),f=r(89099),m=r(89890),h=r(75625),x=r(58103),v=r.n(x),b=r(34846),g=r(9496),y=r(16839),k=r(20520),j=r(84780),w=r(88488),N=r(80318),_=r(20924),O=r(34868),E=r(7422),S=r(40341),A=r(74780),T=r(65470),C=r(11746),I=r(37876);function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?P(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var D=function(e){return(0,I.jsx)("svg",R(R({},e),{},{children:(0,I.jsx)("g",{id:"Icon",children:(0,I.jsx)("path",{id:"Glyph",fillRule:"evenodd",clipRule:"evenodd",d:"M7.587.981l4.225 8.452A1.774 1.774 0 0 1 10.226 12H1.774A1.774 1.774 0 0 1 .187 9.433L4.413.98a1.774 1.774 0 0 1 3.174 0zM6 7.875a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25zM6 6.75c.414 0 .75-.24.75-.536V3.536C6.75 3.24 6.414 3 6 3s-.75.24-.75.536v2.678c0 .296.336.536.75.536z",fill:"#DF1B41"})})}))};D.defaultProps={width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var M=function(e){var t=e.user,r=e.contractVerified,n=e.readContract,o=void 0!==n&&n,c=e.contractIds,a=(0,h.mN)({mode:"onChange"}),l=a.handleSubmit,x=a.register,g=a.setValue,k=a.watch,O=a.formState.errors,E=(0,f.useRouter)(),S=(0,b.Bd)(["common","kyc","button"]).t,A=(0,w.Jt)(),T=k("check1"),C=k("check2"),P=k("check3"),M=!!r||!o,q=(0,m.Ay)(A?"/true-money/user/profile/verify?accessToken=".concat(A):null,y.GO).error;(0,d.useEffect)(function(){q&&E.replace("/invest/true-money?tmnAccessToken=".concat(A))},[E,A,q]);var H=(0,d.useState)(!1),L=H[0],U=H[1];function F(){return(F=(0,s.A)(i().mark(function e(t){var r;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,y.FH.post("/contract/accept",{contract_ids:t});case 3:return r=e.sent,e.abrupt("return",r);case 7:return e.prev=7,e.t0=e.catch(0),(0,p.oR)((0,j.u1)(e.t0),{type:"error"}),e.abrupt("return",void 0);case 11:case"end":return e.stop()}},e,null,[[0,7]])}))).apply(this,arguments)}function V(e){return B.apply(this,arguments)}function B(){return(B=(0,s.A)(i().mark(function e(r){var n,s;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!A){e.next=8;break}return n=R(R({},n={"Content-Type":"application/json"}),(0,_.W1)(r)),e.next=6,y.FH.post("/contract/verify-true-money-user",{},{headers:n});case 6:e.next=10;break;case 8:return e.next=10,y.FH.post("/contract/verify");case 10:if(!c){e.next=13;break}return e.next=13,function(e){return F.apply(this,arguments)}([c]);case 13:return e.next=15,(0,m.Tk)("/user/".concat(t.uuid,"/verify-check"));case 15:null!=t&&t.scbsId&&window.ReactNativeWebView&&((0,w.zs)(),window.ReactNativeWebView.postMessage('{ "action": "COMPLETE_SUIT_TEST" }')),E.replace("/invest/user-portal/verification?contractSubmitSuccess=true"),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(0),(null==(s=e.t0.response)||null==(s=s.data)?void 0:s.statusCode)===404?(0,p.oR)((0,I.jsxs)(I.Fragment,{children:[S("please",{ns:"kyc"}),(0,I.jsx)(u(),{href:"/invest/user-portal/verification",className:"underline",children:S("fill_identity_info",{ns:"kyc"})}),S("before_contract",{ns:"kyc"})]}),{type:"error",autoClose:!1,position:"top-center"}):p.oR.error((0,j.u1)(e.t0));case 22:case"end":return e.stop()}},e,null,[[0,19]])}))).apply(this,arguments)}function K(){return(K=(0,s.A)(i().mark(function e(){return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(A){e.next=5;break}return e.next=3,V({});case 3:e.next=6;break;case 5:A&&U(!0);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function z(){return(z=(0,s.A)(i().mark(function e(t){return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,V(t);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}return(0,d.useEffect)(function(){return r&&(g("check1",!0),g("check2",!0),g("check3",!0)),function(){null!=t&&t.scbsId&&window.ReactNativeWebView&&(0,w.zs)()}},[r]),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(N.A,{action:"verify-kyc",callback:function(e){return z.apply(this,arguments)},open:L,closeModal:function(){return U(!1)},disableEmail:!0}),(0,I.jsx)(h.Op,R(R({},a),{},{children:(0,I.jsxs)("form",{className:"text-center mt-6",onSubmit:l(function(){return K.apply(this,arguments)}),children:[(0,I.jsxs)("div",{className:"w-full text-[#30313D] pb-4 border-b border-[#
1EBEEF1]",children:[(0,I.jsxs)("label",{className:v()("space-x-2 flex items-start mb-1",M?"cursor-not-allowed opacity-50":"cursor-pointer"),children:[(0,I.jsx)("input",R(R({type:"checkbox",className:"mr-3 mt-1 rounded"},x("check1",{required:!r&&"Required"})),{},{disabled:M})),(0,I.jsx)("div",{className:"text-left",children:S("contract_main_agree1",{ns:"kyc"})})]}),!r&&O.check1&&(0,I.jsxs)("div",{className:"flex items-start md:items-center pl-9 mb-2",children:[(0,I.jsx)(D,{className:"mr-2.5 min-w-[16px] mt-1.5 md:mt-0"}),(0,I.jsx)("div",{className:"text-xs text-[#CD3D64] text-left",children:S("contract_validate_agreement1",{ns:"kyc"})})]}),(0,I.jsxs)("label",{className:v()("space-x-2 flex items-start mb-1",M?"cursor-not-allowed opacity-50":"cursor-pointer"),children:[(0,I.jsx)("input",R(R({type:"checkbox",className:"mr-3 mt-1 rounded"},x("check2",{required:!r&&"Required"})),{},{disabled:M})),(0,I.jsx)("div",{className:"text-left",children:S("contract_main_agree2",{ns:"kyc"})})]}),!r&&O.check2&&(0,I.jsxs)("div",{className:"flex items-start md:items-center pl-9 mb-2",children:[(0,I.jsx)(D,{className:"mr-2.5 min-w-[16px] mt-1.5 md:mt-0"}),(0,I.jsx)("div",{className:"text-xs text-[#CD3D64] text-left",children:S("contract_validate_agreemen2",{ns:"kyc"})})]}),(0,I.jsxs)("label",{className:v()("space-x-2 flex items-start mb-1",M?"cursor-not-allowed opacity-50":"cursor-pointer"),children:[(0,I.jsx)("input",R(R({type:"checkbox",className:"mr-3 mt-1 rounded"},x("check3",{required:!r&&"Required"})),{},{disabled:M})),(0,I.jsx)("div",{className:"text-left",children:S("contract_main_agree3",{ns:"kyc"})})]}),!r&&O.check3&&(0,I.jsxs)("div",{className:"flex items-start md:items-center pl-9 mb-2",children:[(0,I.jsx)(D,{className:"mr-2.5 min-w-[16px] mt-1.5 md:mt-0"}),(0,I.jsx)("div",{className:"text-xs text-[#CD3D64] text-left",children:S("contract_validate_agreement3",{ns:"kyc"})})]})]}),r?"":(0,I.jsx)("div",{className:"flex justify-end pt-4",children:(0,I.jsx)("button",{disabled:!!(!T||!C||!P||!o),type:"submit",className:v()("btn w-fit px-6 py-2",[A?"btn-primary-orange":"btn-primary-green"]),children:S("confirm",{ns:"button"})})})]})}))]})};M.defaultProps={readContract:!1,contractIds:""};var q=function(){var e=(0,k.A)().user,t=(0,m.Ay)(e?"/user/".concat(e.uuid,"/verify-check"):null,y.GO).data,r=(0,m.Ay)("/contract/main",y.GO).data,n=(0,b.Bd)(["common","kyc","button"]).t,s=(0,d.useState)(!1),o=s[0],a=s[1],i=c()(t,"kyc.contractVerified"),l=c()(t,"allowInvest");return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"text-merkle-blue leading-[1.05] text-[52px] font-extrabold",children:n("verify_step_contract",{ns:"kyc"})}),(0,I.jsx)(A.A,{minute:"5",className:"mb-3"}),(0,I.jsxs)("div",{className:"text-gray-200 mb-2",children:[n("verify_step_contract_detail",{ns:"kyc"}),(0,I.jsxs)("span",{className:"text-red-primary mb-2 pl-2",children:["(",n("contract_please_scroll_down_new",{ns:"kyc"}),")"]})]}),(0,I.jsx)("div",{className:"text-gray-700",children:(0,I.jsx)(g.A,{content:null==r?void 0:r.content,onReadComplete:function(){o||a(!0)},scrollThreshold:.95})}),(0,I.jsx)(M,{user:e,contractVerified:i,allowInvest:l,readContract:o,contractIds:null==r?void 0:r.id})]})};let H=(0,S.ru)(function(){var e=(0,T.x)("newKyc"),t=(0,w.Jt)();return e&&(0,C.Nz)()&&!t?(0,I.jsx)(O.r,{children:(0,I.jsx)(q,{})}):(0,I.jsx)(E.R,{children:(0,I.jsx)(q,{})})})},53441:(e,t)=>{"use strict";t.q=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var n={},o=e.split(s),c=(t||{}).decode||r,a=0;a<o.length;a++){var i=o[a],l=i.indexOf("=");if(!(l<0)){var u=i.substr(0,l).trim(),d=i.substr(++l,i.length).trim();'"'==d[0]&&(d=d.slice(1,-1)),void 0==n[u]&&(n[u]=function(e,t){try{return t(e)}catch(t){return e}}(d,c))}}return n},t.l=function(e,t,r){var s=r||{},c=s.encode||n;if("function"!=typeof c)throw TypeError("option encode is invalid");if(!o.test(e))throw TypeError("argument name is invalid");var a=c(t);if(a&&!o.test(a))throw TypeError("argument val is invalid");var i=e+"="+a;if(null!=s.maxAge){var l=s.maxAge-0;if(isNaN(l)||!isFinite(l))throw TypeError("option maxAge is invali
1d");i+="; Max-Age="+Math.floor(l)}if(s.domain){if(!o.test(s.domain))throw TypeError("option domain is invalid");i+="; Domain="+s.domain}if(s.path){if(!o.test(s.path))throw TypeError("option path is invalid");i+="; Path="+s.path}if(s.expires){if("function"!=typeof s.expires.toUTCString)throw TypeError("option expires is invalid");i+="; Expires="+s.expires.toUTCString()}if(s.httpOnly&&(i+="; HttpOnly"),s.secure&&(i+="; Secure"),s.sameSite)switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:case"strict":i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"none":i+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return i};var r=decodeURIComponent,n=encodeURIComponent,s=/; */,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/},54355:e=>{e.exports=function(e,t,r,n){for(var s=e.length,o=r+(n?1:-1);n?o--:++o<s;)if(t(e[o],o,e))return o;return -1}},58103:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function s(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var c=s.apply(null,r);c&&e.push(c)}else if("object"===o)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}e.exports?(s.default=s,e.exports=s):void 0===(r=(function(){return s}).apply(t,[]))||(e.exports=r)}()},59320:(e,t,r)=>{e.exports=r(32836)},60072:(e,t,r)=>{var n=r(5130);n=n.default||n,e.exports=function(e,t){var r=e.req&&e.req.headers&&e.req.headers.cookie;return new n(r).getAll(t)}},67895:(e,t,r)=>{var n=r(54355),s=r(95975),o=r(49035);e.exports=function(e,t,r){return t==t?o(e,t,r):n(e,s,r)}},74780:(e,t,r)=>{"use strict";r.d(t,{A:()=>c}),r(14232);var n=r(34846),s=r(37876);function o(e){var t=e.minute,r=e.textKey,o=e.iconColor,c=e.textColor,a=e.className,i=(0,n.Bd)("kyc").t;return(0,s.jsxs)("div",{className:"flex items-center gap-2 uppercase tracking-[0.2em] font-semibold ".concat(void 0===a?"":a),children:[(0,s.jsx)("svg",{className:"w-4 h-4 ".concat(void 0===o?"text-gray-25":o),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}),(0,s.jsx)("span",{className:void 0===c?"text-gray-25":c,children:i(void 0===r?"estimate_time":r,{minute:t})})]})}o.defaultProps={textKey:"estimate_time",iconColor:"text-gray-25",textColor:"text-gray-25",className:""};let c=o},90158:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/invest/user-portal/verification/contract",function(){return r(53113)}])},95975:e=>{e.exports=function(e){return e!=e}},98639:(e,t,r)=>{var n=r(67895),s=r(13051),o=Math.max;e.exports=function(e,t,r){var c=null==e?0:e.length;if(!c)return -1;var a=null==r?0:s(r);return a<0&&(a=o(c+a,0)),n(e,t,a)}}},e=>{e.O(0,[6497,8306,4355,3371,7743,4386,956,8752,8230,5625,5434,1146,1882,6863,996,318,7677,7028,636,6593,8792],()=>e(e.s=90158)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.