import{o as s}from"./rolldown-runtime-iuO8RvI4.js";import{Mi as t,ki as a}from"./vendor-frame-CwiylG4Y.js";import{Ga as o,Pa as r,Ua as n,Wa as e}from"./shared-1-3-6x7RKF.js";import{nn as i}from"./vendor-all-2-BJdkbLSj.js";import{r as l,t as d}from"./c1c9ea8f5-DECOhseI.js";import{es as u,ts as c}from"./shared-5-UQAFGbWu.js";import{g as f,v as m}from"./shared-3-D-Ux4aGn.js";var p=a();function j(){const{data:s}=m({poll:!1}),{openKycModal:t,kycModal:a}=d();return(0,p.jsxs)(p.Fragment,{children:[s&&!f(s.status)&&(0,p.jsx)(u,{variant:"neutral",className:"w-full mb-6",icon:(0,p.jsx)(l,{size:16}),action:(0,p.jsx)(c,{variant:"secondary",onClick:()=>t({vendorSessionUrl:null,vendorInquiryId:s.vendor_inquiry_id,initialStatus:s.status,shouldPoll:s.should_poll??!1}),children:(0,p.jsx)(i,{defaultMessage:"Verify",id:"q5Xl0MIdUj"})}),children:(0,p.jsx)(i,{defaultMessage:"Complete identity verification to finish setting up your subscription.",id:"/1gA9zgHJ1"})}),a]})}var v=s(t());function g({section:s}){return(0,v.useEffect)(()=>{if(null===s)return;const t=r(s,void 0),a=e("settings_load")?o("settings_load",{route:t}):null;return null!==a?(n("settings_tab_open"),a):o("settings_tab_open",{route:t})??void 0},[s]),null}export{j as n,g as t};