PageSourceSearch

https://www.rhemito.com/_next/static/chunks/pages/compliance-a659be380e2edd65.js

js rhemito.com collected 2026-10-02 01:41:59 UTC 8,301 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6791],{91808:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/compliance",function(){return i(80370)}])},74273:function(e,t,i){"use strict";var n=i(85893),r=i(204),a=i(14418),l=i(89583),o=i(14735);t.Z=e=>{let{children:t,onBack:i,mb:s={sm:"3.2rem",lg:"0"}}=e;return(0,n.jsxs)(r.k,{alignItems:"center",gap:"5",mb:s,children:[i?(0,n.jsx)(a.X,{as:"h4",size:"lg_bold",variant:"black",cursor:"pointer",onClick:i,"aria-label":"Back",children:(0,n.jsx)(l.bUI,{style:{marginRight:"2px",fontSize:"27px",fontWeight:"900"},color:"#323130"})}):null,(0,n.jsx)(a.X,{size:o.b.pageTitleSize,variant:"black",cursor:"default",children:t})]})}},83015:function(e,t,i){"use strict";i.d(t,{d:function(){return useIsMobile}});var n=i(67294);let checkIsMobile=()=>{let e=navigator.userAgent||navigator.vendor||window.opera,t=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini|mobile/i.test(e.toLowerCase()),i="ontouchstart"in window||navigator.maxTouchPoints>0,n=window.innerWidth<=768;return t||i&&n},useIsMobile=()=>{let[e,t]=(0,n.useState)(()=>checkIsMobile());return(0,n.useEffect)(()=>{let handleResize=()=>{t(checkIsMobile())};return window.addEventListener("resize",handleResize),()=>window.removeEventListener("resize",handleResize)},[]),e}},2500:function(e,t,i){"use strict";i.d(t,{Z:function(){return useQueryNavigation},y:function(){return useQueryValues}});var n=i(67294),r=i(39332);function useQueryNavigation(){let e=(0,r.useRouter)(),t=(0,r.usePathname)(),i=(0,r.useSearchParams)(),a=(0,n.useMemo)(()=>new URLSearchParams(i.toString()),[i]),l=(0,n.useCallback)(e=>{let t=a.get(e);return null!=t?t:null},[a]),o=(0,n.useCallback)((t,i)=>{let n=new URLSearchParams;i&&Object.entries(i).forEach(e=>{let[t,i]=e;null!=i&&""!==i&&n.set(t,String(i))}),e.push("".concat(t,"?").concat(n.toString()))},[e]),s=(0,n.useCallback)((n,r)=>{let a=new URLSearchParams(i.toString());null==r||""===r?a.delete(n):a.set(n,String(r)),e.push("".concat(t,"?").concat(a.toString()))},[t,i,e]),u=(0,n.useCallback)(()=>{let e={};return a.forEach((t,i)=>{try{e[i]=JSON.parse(t)}catch(n){e[i]=t}}),e},[a]);return{params:a,getQuery:l,goWithQuery:o,setQuery:s,getAllQueryValues:u}}function useQueryValues(){let{getAllQueryValues:e}=useQueryNavigation();return e()}},80370:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return b}});var n=i(85893),r=i(29804),a=i(76226),l=i(81050),o=i(74273),s=i(35776),u=i(67294),c=i(3798),d=i(96156),h=i(83015);let useKycJourney=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onSuccess:t,onError:i}=e,n=(0,h.d)(),r=(0,c.T)(),{user:a,journeyKycLoader:l,journey:o}=(0,c.C)(e=>({user:e.account.userData,journey:e.kyc.journey,journeyKycLoader:e.kyc.loading.journeyKycLoader})),s=(0,u.useCallback)(async e=>{if(!(null==a?void 0:a.uid)){console.error("User ID not available");return}try{let i=await r((0,d.fw)({customerId:a.uid,returnUrl:e,journeyType:1})).unwrap();null==t||t(i)}catch(e){null==i||i(e)}},[r,null==a?void 0:a.uid,t,i]);return(0,u.useEffect)(()=>{let e=n?"".concat(window.location.origin,"/compliance"):"".concat(window.location.origin,"/kyc/return");(null==a?void 0:a.uid)&&e&&s(e)},[null==a?void 0:a.uid,s]),{user:a,journey:o,startJourney:s,isLoading:l}};var f=i(85812),p=i(23100),x=i(204),w=i(14418),v=i(96272),g=i(38854),m=i(11163),y=i(2500),C=i(37856),E=i(63458);let j=["Pending","FAILED","UNRESOLVED","UNDERREVIEW","SUCCESSFUL","IDEXPIRED","AMLEXPIRED","IDPASSED","IDBLOCKED"],Compliance=()=>{let e=(0,m.useRouter)(),t=(0,u.useRef)(null),i=(0,h.d)(),{isSidebarCollapased:l,cookieData:d}=(0,c.C)(e=>({isSidebarCollapased:e.account.isSidebarCollapased,cookieData:e.cookie.cookieData})),{orderStatus:b}=(0,y.y)(),k=(0,c.T)(),{journey:S,isLoading:_}=useKycJourney(),[R,L]=(0,u.useState)(null),[D,I]=(0,u.useState)(!1),N=(0,u.useMemo)(()=>{var e,t;let i=null===(e=null!==(t=null==S?void 0:S.data)&&void 0!==t?t:S)||void 0===e?void 0:e.hostedUrl;return"string"==typeof i?i:void 0},[S]),P=(0,u.useMemo)(()=>{var e,t;let i=null===(e=null!==(t=null==S?void 0:S.data)&&void 0!==t?t:S)||void 0===e?void 0:e.kycFlow;return["Flow_Address_Verification","Flow_No_Action_Required","Flow_Contact_Admin"].includes(i)?i:void 0},[S]),A=!!N,handleKycBlocked=()=>{(0,C.G)("Error","Your KYC has been blocked!. Please contact the administrator for further assistance with your KYC verification."),k((0,E.kS)()),e.replace("/login")};(0,u.useEffect)(()=>I(A),[A]),(0,u.useEffect)(()=>
1{if(!D)return;let e=setTimeout(()=>I(!1),15e3);return()=>clearTimeout(e)},[D]),(0,u.useEffect)(()=>{if(!A)return;let onMessage=e=>{try{let t="string"==typeof e.data?JSON.parse(e.data):e.data;(null==t?void 0:t.type)==="KYC_COMPLETE"&&j.includes(t.status)&&("IDBLOCKED"===t.status&&handleKycBlocked(),L(t.status))}catch(e){}};return window.addEventListener("message",onMessage),()=>window.removeEventListener("message",onMessage)},[A]),(0,u.useEffect)(()=>{if(i&&N&&!b){window.location.replace(N);return}if(b){"IDBLOCKED"===b&&handleKycBlocked(),L(b);return}},[i,N,b]);let renderUnderReview=()=>(0,n.jsxs)(p.xu,{pt:"0",textAlign:"left",w:"100%",minH:"60vh",children:[(0,n.jsx)(x.k,{justify:"center",className:"approved",py:"35px",children:(0,n.jsx)(g.Z,{width:"7.5rem"})}),(0,n.jsx)(w.X,{as:"h3",size:"xl_light",variant:"primary",textTransform:"initial",children:"Your KYC is under review but you can still proceed with the transaction. The transaction will then be verified by the admin for further processing."}),(0,n.jsx)(p.xu,{display:"inline-flex",justifyContent:"center",pos:"fixed",bottom:"0",left:"0",width:"100%",bg:"white.900",w:"100%",py:"20px",pr:{sm:"16px",lg:"0"},transition:l?{lg:"0.38s ease",xl:"0.6s ease"}:{lg:"0.45s ease",xl:"0.4s ease"},pl:l?{sm:"16px",lg:"200px",xl:"250px"}:{sm:"16px",lg:"65px",xl:"65px"},zIndex:"9",mb:d?"0px":"70px",children:(0,n.jsx)(p.xu,{className:"Windows"===String((0,f.I)())?"windowPadding":"",w:"100%",display:"inline-flex",justifyContent:"center",children:(0,n.jsx)(x.k,{justify:"flex-start",padding:{lg:"0 10px",xl:"0"},w:"100%",maxW:"600px",children:(0,n.jsx)(v.z,{variant:"solid_lightBlue",size:"large",w:"100%",onClick:()=>e.push("/overview"),fontWeight:"500",children:(0,n.jsx)(w.X,{as:"h4",variant:"white",size:"lg_light",children:"Continue"})})})})})]}),renderAmlVerification=()=>(null==S?void 0:S.kycType)==="AMLADDR"&&"Flow_No_Action_Required"===P&&(null==S?void 0:S.kycStatus)==="SUCCESSFUL"?(0,n.jsx)(r.Z,{}):null,renderContactSupport=()=>(0,n.jsxs)(p.xu,{pt:"0",textAlign:"left",w:"100%",children:[(0,n.jsx)(w.X,{as:"h3",size:"xxl_medium",variant:"primary",textTransform:"initial",children:"FAILED"===R?"KYC verification failed!. Please contact the administrator for further assistance with your KYC verification.":"Please contact the administrator for further assistance with your KYC verification."}),(0,n.jsx)(p.xu,{pt:"34px",children:(0,n.jsx)(v.z,{px:"11px",variant:"solidBlue",size:"large",w:{sm:"98%",lg:"65%",xl:"65%"},onClick:()=>e.push("/overview"),children:(0,n.jsx)(w.X,{as:"h4",variant:"white",size:"lg_light",children:"Done"})})})]});return(0,n.jsxs)(p.xu,{w:"100%",children:[(0,n.jsx)(o.Z,{mb:{sm:"3.2rem",lg:"3.2rem"},children:"Compliance"}),(0,n.jsx)(p.xu,{w:"100%",children:(()=>{if(_)return(0,n.jsx)(s.ZP,{});if((null==S?void 0:S.kycStatus)==="UNDERREVIEW"&&"Flow_No_Action_Required"===P||"UNDERREVIEW"===R)return renderUnderReview();let e=renderAmlVerification();return e||("Flow_No_Action_Required"===P?(0,n.jsx)(a.Z,{}):"Flow_Contact_Admin"===P?renderContactSupport():"SUCCESSFUL"===R?(0,n.jsx)(a.Z,{}):A&&!R?(0,n.jsxs)(p.xu,{pos:"relative",width:"100%",height:{sm:"calc(100dvh - 130px)",lg:"calc(100dvh - 203px)"},overflow:"hidden",children:[D&&(0,n.jsx)(s.ZP,{}),(0,n.jsx)(p.xu,{as:"iframe",ref:t,src:N,width:"100%",height:"100%",border:"none",title:"KYC Address Verification",sandbox:"allow-same-origin allow-scripts allow-forms allow-popups",allow:"camera",onLoad:()=>I(!1),style:{opacity:D?0:1,transition:"opacity 0.3s ease-in-out"}})]}):(0,n.jsx)(s.ZP,{}))})()})]})};var b=Compliance;Compliance.getLayout=function(e){return(0,n.jsx)(l.Z,{children:e})}}},function(e){e.O(0,[4885,1228,3874,4980,5445,5937,260,9866,6556,2013,6134,4102,2711,4359,4890,9005,2484,9178,9774,2888,179],function(){return e(e.s=91808)}),_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.