1import{r as o,j as s}from"./vendor-trpc-BW0ubQFZ.js";import{u as x,t as g}from"./index-B27n6TE2.js";import{S as m}from"./sparkles-CH0Gf4S8.js";import{L as p}from"./lock-keyhole-CIJZxECV.js";import{A as b}from"./arrow-right-DHVhHOWc.js";import"./vendor-react-COd4auuD.js";import"./vendor-ui-BIS3fIqt.js";function w(){const[,n]=x(),[c,r]=o.useState(""),[l,d]=o.useState(""),[i,t]=o.useState(""),a=g.adminAuth.login.useMutation({onSuccess:e=>{if(e.role!=="social_host"){t("í¸ì¤í¸ ì ì© ê³ì ì¼ë¡ ë¡ê·¸ì¸í´ì£¼ì¸ì. ê´ë¦¬ì ë¡ê·¸ì¸ íë©´ì¼ë¡ ì´ëí©ëë¤."),window.setTimeout(()=>{window.location.href="/admin/login"},900);return}window.location.href=e.mustChangePassword?"/host/change-password":"/host"},onError:e=>t(e.message)});return s.jsxs("main",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"grid min-h-screen bg-[#f7f4ee] md:grid-cols-[minmax(0,1.12fr)_minmax(420px,.88fr)]",children:[s.jsxs("section",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"relative hidden overflow-hidden bg-[#171411] p-12 text-white md:flex md:flex-col md:justify-between",children:[s.jsx("div",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"absolute -left-32 -top-28 h-[440px] w-[440px] rounded-full border border-[#c59c2a]/25"}),s.jsx("div",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"absolute -bottom-24 right-0 h-[340px] w-[340px] rounded-full bg-[#c59c2a]/10 blur-3xl"}),s.jsxs("div",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"relative flex items-center gap-3",children:[s.jsx("img",{"data-loc":"client/src/pages/HostLogin.tsx:22",src:"/manus-storage/irum-logo-cropped_9307126b.png",alt:"IRUM",className:"h-10 w-10 object-contain"}),s.jsxs("div",{"data-loc":"client/src/pages/HostLogin.tsx:22",children:[s.jsx("p",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"text-[10px] font-semibold tracking-[.22em] text-[#d2ad4d]",children:"IRUM"}),s.jsx("p",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"text-sm font-semibold",children:"HOST PORTAL"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"relative max-w-md pb-12",children:[s.jsx("p",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"text-xs font-semibold tracking-[.16em] text-[#d6b65f]",children:"PARTNER ACCESS"}),s.jsxs("h1",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"mt-4 text-4xl font-semibold leading-[1.18] tracking-[-.055em]",children:["ì¢ì ì¸ì°ì ë°ê²¬íë",s.jsx("br",{"data-loc":"client/src/pages/HostLogin.tsx:22"}),"ë¹ì ì 기ë¡ì ìì íê²."]}),s.jsx("p",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"mt-5 text-sm leading-6 text-white/55",children:"íì¥ìì ë§ë ì¬ëì ë¹ ë¥´ê² ë±ë¡íê³ , ì´ìíì ê²ì ìí를 ê°ê²°íê² íì¸íì¸ì."})]})]}),s.jsx("section",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"flex min-h-screen items-center justify-center px-4 py-8",children:s.jsxs("div",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"w-full max-w-[390px]",children:[s.jsxs("div",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"mb-9 flex items-center gap-3 md:hidden",children:[s.jsx("img",{"data-loc":"client/src/pages/HostLogin.tsx:22",src:"/manus-storage/irum-logo-cropped_9307126b.png",alt:"IRUM",className:"h-9 w-9 object-contain"}),s.jsxs("div",{"data-loc":"client/src/pages/HostLogin.tsx:22",children:[s.jsx("p",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"text-[10px] font-semibold tracking-[.2em] text-[#aa8027]",children:"IRUM"}),s.jsx("p",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"text-sm font-semibold",children:"HOST PORTAL"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"border border-[#e1d9ce] bg-white p-6 shadow-[0_16px_50px_rgba(50,40,25,.08)] sm:p-8",children:[s.jsxs("div",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"flex items-start justify-between gap-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/HostLogin.tsx:22",children:[s.jsx("p",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"text-[10px] font-semibold tracking-[.16em] text-[#ad8126]",children:"HOST ACCESS"}),s.jsx("h1",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"mt-2 text-2xl font-semibold tracking-[-.04em]",children:"í¸ì¤í¸ ë¡ê·¸ì¸"}),s.jsx("p",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"mt-2 text-xs leading-5 text-[#817669]",children:"ì¹ì¸ë í¸ì¤í¸ ê³ì ì¼ë¡ ì ìí´ ì£¼ì¸ì."})]}),s.jsx("div",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"grid h-10 w-10 place-items-center border border-[#ead9a8] bg-[#fff8e4] text-[#a57c20]",children:s.jsx(m,{"data-loc":"client/src/pages/HostLogin.tsx:22",size:17})})]}),s.jsxs("form",{"data-loc":"client/src/pages/HostLogin.tsx:22",onSubmit:e=>{e.preventDefault(),t(""),a.mutate({username:c,password:l})},className:"mt-7 space-y-4",children:[s.jsxs("label",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"block text-xs font-semibold text-[#665d51]",children:["ìì´ë",s.jsx("input",{"data-loc":"client/src/pages/HostLogin.tsx:22",value:c,onChange:e=>r(e.target.value),required:!0,autoComplete:"username",className:"mt-1.5 h-11 w-full border border-[#ddd5ca] bg-[#fdfcf9] px-3 text-sm outline-none focus:border-[#b38b2b]",placeholder:"ìì´ë를 ì
ë ¥íì¸ì"})]}),s.jsxs("label",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"block text-xs font-semibold text-[#665d51]",children:["ë¹ë°ë²í¸",s.jsxs("div",{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"relative mt-1.5",children:[s.jsx(p,{"data-loc":"client/src/pages/HostLogin.tsx:22",className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-[#a19789]",size:15}),s.jsx("input",{"data-loc":"client/src/pages/HostLogin.tsx:22",value:l,onCh
1ange:e=>d(e.target.value),required:!0,type:"password",autoComplete:"current-password",className:"h-11 w-full border border-[#ddd5ca] bg-[#fdfcf9] pl-9 pr-3 text-sm outline-none focus:border-[#b38b2b]",placeholder:"ë¹ë°ë²í¸ë¥¼ ì
ë ¥íì¸ì"})]})]}),i&&s.jsx("p",{"data-loc":"client/src/pages/HostLogin.tsx:22",role:"alert",className:"border border-[#edcdc5] bg-[#fff4f1] px-3 py-2.5 text-xs leading-5 text-[#a0493b]",children:i}),s.jsx("button",{"data-loc":"client/src/pages/HostLogin.tsx:22",disabled:a.isPending,className:"flex h-11 w-full items-center justify-center gap-2 bg-[#c59c2a] text-sm font-semibold text-[#241b0e] disabled:opacity-60",children:a.isPending?"ë¡ê·¸ì¸ íì¸ ì¤...":s.jsxs(s.Fragment,{children:["HOST PORTAL ë¡ê·¸ì¸ ",s.jsx(b,{"data-loc":"client/src/pages/HostLogin.tsx:22",size:15})]})})]})]}),s.jsx("button",{"data-loc":"client/src/pages/HostLogin.tsx:22",onClick:()=>n("/admin/login"),className:"mt-5 w-full text-center text-xs font-semibold text-[#8a6a22]",children:"ê´ë¦¬ì ê³ì ì¼ë¡ ë¡ê·¸ì¸"})]})})]})}export{w 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.