1import{r as o,j as e}from"./vendor-react-DfYGAhtm.js";import{D as O,P as B,G as N}from"./vendor-pdf-DSVa-ed6.js";import{H as U,a as $,f as E,r as z}from"./vendor-icons-1odZwi-b.js";import{m as t}from"./index-DsBgCU7r.js";import{a as n,i as G,T as f,F as i,S as I}from"./vendor-ui-DA_r9yXk.js";import"./vendor-state-BsBVN-fX.js";import"./vendor-forms-BP-7CbAP.js";const q="/assets/myka-legal-DyA-PYF_.pdf";N.workerSrc=new URL("/assets/pdf.worker.min-qwK7q_zL.mjs",import.meta.url).toString();const j=[{title:"Privacy Policy",page:2},{title:"Intellectual Property Policy",page:7},{title:"Terms of Use",page:8},{title:"Security Policy",page:11},{title:"Fraud Detection Policy",page:13},{title:"Terms of Business Agreement",page:15},{title:"Cookie Policy",page:17},{title:"NAICOM Licence & Registration Status",page:19},{title:"NCRIB Membership Evidence",page:21},{title:"Internal Complaints Redressal Mechanism",page:22},{title:"Claims Process & Evidence Guide",page:24},{title:'"No Premium, No Cover" Notice',page:26},{title:"Anti-Money Laundering (AML) Policy",page:27},{title:"Conflict of Interest Policy",page:29},{title:"Whistleblowing Policy",page:31},{title:"Cancellation & Refund Policy",page:34},{title:"Premium Remittance Policy",page:36},{title:"Statutory Corporate Identity",page:40}],A="82vh",H=({sections:p,activeSection:g,onSelect:u})=>e.jsx(e.Fragment,{children:p.length===0?e.jsx(i,{align:"center",justify:"center",py:6,px:3,children:e.jsx(f,{fontSize:"xs",color:t.text.info,children:"No results"})}):p.map(({title:c,page:h})=>{const l=c===g;return e.jsx(n,{as:"button",w:"full",textAlign:"left",px:3,py:"10px",fontSize:"xs",lineHeight:"snug",fontWeight:l?"semibold":"normal",color:l?t.orange[500]:t.text.label,bg:l?t.orange[25]:"transparent",borderBottom:`1px solid ${t.gray[100]}`,cursor:"pointer",transition:"background 0.1s",_hover:{bg:l?t.orange[50]:t.gray[50]},_last:{borderBottom:"none"},onClick:()=>u(c,h),children:c},c)})}),ee=()=>{const[p,g]=o.useState(0),[u,c]=o.useState(0),[h,l]=o.useState(!0),[T,D]=o.useState(!1),[b,W]=o.useState(j[0].title),[a,m]=o.useState(!1),[d,x]=o.use
1State(""),y=o.useRef(null),w=o.useRef(null),S=o.useRef(null),F=o.useRef(null),k=o.useRef(new Map);o.useEffect(()=>{if(!y.current)return;const r=new ResizeObserver(([s])=>{c(s.contentRect.width)});return r.observe(y.current),()=>r.disconnect()},[]),o.useEffect(()=>{if(!a)return;const r=s=>{w.current?.contains(s.target)||(m(!1),x(""))};return document.addEventListener("mousedown",r),()=>document.removeEventListener("mousedown",r)},[a]),o.useEffect(()=>{a&&setTimeout(()=>S.current?.focus(),50)},[a]);const M=o.useCallback(({numPages:r})=>{g(r),l(!1)},[]),_=o.useCallback(()=>{l(!1),D(!0)},[]),v=o.useCallback((r,s)=>{W(r),m(!1),x("");const R=()=>{const P=k.current.get(s);P?P.scrollIntoView({behavior:"smooth",block:"start"}):requestAnimationFrame(R)};R()},[]),C=o.useMemo(()=>{const r=d.trim().toLowerCase();return r?j.filter(s=>s.title.toLowerCase().includes(r)):j},[d]),L=u>32?Math.floor(u-32):void 0;return e.jsxs(n,{children:[e.jsxs(n,{mb:5,children:[e.jsx(G,{fontSize:{base:"2xl",md:"28px"},fontWeight:"bold",color:t.text.label,children:"Legal & Compliance"}),e.jsx(f,{fontSize:"md",color:t.text.info,mt:1,children:"Our policies and regulatory documents"})]}),e.jsxs(n,{display:{base:"block",md:"none"},position:"relative",mb:4,ref:w,children:[e.jsxs(n,{as:"button",w:"full",onClick:()=>m(r=>!r),display:"flex",alignItems:"center",justifyContent:"space-between",px:4,h:"48px",border:`1.5px solid ${a?t.orange[400]:t.border.primary}`,borderRadius:"xl",bg:t.white.DEFAULT,cursor:"pointer",transition:"border-color 0.15s",_hover:{borderColor:t.orange[300]},children:[e.jsx(f,{fontSize:"sm",fontWeight:"medium",color:t.text.label,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,textAlign:"left",children:b}),a?e.jsx(U,{size:18,color:t.orange[500],style:{flexShrink:0,marginLeft:8}}):e.jsx($,{size:18,color:t.text.info,style:{flexShrink:0,marginLeft:8}})]}),a&&e.jsxs(n,{position:"absolute",top:"calc(100% + 6px)",left:0,right:0,zIndex:200,bg:t.white.DEFAULT,border:`1.5px solid ${t.orange[200]}`,borderRadius:"xl",boxShadow:"0 8px 32px rgba(0,0,0,0.12)",overflow:"hidden",children:[e.jsxs(i,{align:"center",gap:2,px:3,h:"44px",borderBottom:`1px solid ${t.border.primary}`,children:[e.jsx(E,{size:15,color:t.text.info,style:{flexShrink:0}}),e.jsx("input",{ref:S,type:"text",placeholder:"Search ...",value:d,onChange:r=>x(r.target.value),style:{flex:1,fontSize:"13px",color:t.text.label,background:"transparent",border:"none",outline:"none"}}),d&&e.jsx(n,{as:"button",onClick:()=>x(""),color:t.text.info,display:"flex",alignItems:"center",_hover:{color:t.text.label},children:e.jsx(z,{size:14})})]}),e.jsx(n,{maxH:"260px",overflowY:"auto",css:{"&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-thumb":{background:t.gray[200],borderRadius:"4px"}},children:e.jsx(H,{sections:C,activeSection:b,onSelect:v})})]})]}),e.jsxs(i,{align:"stretch",border:`1px solid ${t.border.secondary}`,borderRadius:"xl",overflow:"hidden",bg:t.white.DEFAULT,children:[e.jsxs(i,{display:{base:"none",md:"flex"},flexDirection:"column",w:"220px",flexShrink:0,borderRight:`1px solid ${t.border.primary}`,children:[e.jsxs(i,{align:"center",gap:2,px:3,h:"44px",borderBottom:`1px solid ${t.border.primary}`,flexShrink:0,children:[e.jsx(E,{size:14,color:t.text.info,style:{flexShrink:0}}),e.jsx("input",{ref:F,type:"text",placeholder:"Search ...",value:d,onChange:r=>x(r.target.value),style:{flex:1,fontSize:"12px",color:t.text.label,background:"transparent",border:"none",outline:"none"}}),d&&e.jsx(n,{as:"button",onClick:()=>x(""),color:t.text.info,display:"flex",alignItems:"center",_hover:{color:t.text.label},children:e.jsx(z,{size:13})})]}),e.jsx(n,{flex:1,overflowY:"auto",maxH:A,css:{"&::-webkit-scrollbar":{width:"3px"},"&::-webkit-scrollbar-thumb":{background:t.gray[200],borderRadius:"4px"}},children:e.jsx(H,{sections:C,activeSection:b,onSelect:v})})]}),e.jsx(n,{ref:y,flex:1,minW:0,children:e.jsxs(n,{bg:t.gray[100],maxH:A,overflowY:"auto",display:"flex",flexDirection:"column",alignItems:"center",py:4,px:4,position:"relative",css:{"&::-webkit-scrollbar":{width:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:t.gray[300],borderRadius:"4px"}},children:[h&&e.jsx(i,{position:"absolute",inset:0,align:"center",justify:"center",bg:"rgba(255,255,255,0.75)",zIndex:1,children:e.jsx(I,{size:"lg",color:t.orange[500],borderWidth:"3px"})}),T?e.jsx(i,{align:"center",justify:"center",py:20,children:e.jsx(f,{fontSize:"sm",color:t.text.info,children:"Failed to load document. Please refresh and try again."})}):e.jsx(O,{file:q,onLoadSuccess:M,onLoadError:_,loading:null,children:Array.from({length:p},(r,s)=>s+1).map(r=>e.jsx(n,{ref:s=>{s&&k.current.set(r,s)},mb:3,boxShadow:"0 2px 8px rgba(0,0,0,0.08)",borderRadius:"sm",overflow:"hidden",lineHeight:0,children:e.jsx(B,{pageNumber:r,...L!==void 0?{width:L}:{},renderTextLayer:!0,renderAnnotationLayer:!0,loading:e.jsx(i,{align:"center",justify:"center",h:"200px",bg:t.white.DEFAULT,children:e.jsx(I,{size:"sm",color:t.orange[500],borderWidth:"2px"})})})},r))})]})})]})]})};export{ee as default};
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.