|
|
+import{R as w,r,j as o,c as d,a as e}from"./index-0d8158eb.js";import{L as b,a as y,E as v}from"./index-9af9f9f3.js";const F=w.forwardRef(({placeholder:a,name:l,key:u,required:N,onChange:f,onFocus:m,className:h,type:s,...t},x)=>{const i=r.useRef(null),[n,p]=r.useState(!1),[g,c]=r.useState(s);return r.useEffect(()=>{s==="password"&&n&&c("text"),s==="password"&&!n&&c("password")},[s,n]),r.useImperativeHandle(x,()=>i.current),o("div",{className:d("mb-xsmall rounded-rounded h-[48px] w-[320px] overflow-hidden border last:mb-0","bg-grey-5 inter-base-regular placeholder:text-grey-40","focus-within:shadow-input focus-within:border-violet-60","flex items-center",{"text-grey-40 pointer-events-none focus-within:border-none focus-within:shadow-none":t.readOnly},h),children:[t.readOnly&&e(b,{size:16,className:"text-grey-40 ml-base"}),e("input",{className:d("remove-number-spinner leading-base w-full bg-transparent py-3 px-4 outline-none outline-0",{"pl-xsmall":t.readOnly}),ref:i,name:l,placeholder:a||"Placeholder",onChange:f,onFocus:m,type:g,...t},u||l),s==="password"&&e("button",{type:"button",onClick:()=>p(!n),className:"text-grey-40 focus:text-violet-60 px-4 focus:outline-none",children:n?e(y,{}):e(v,{})})]})}),L=({children:a})=>e("div",{className:"flex min-h-screen flex-col",children:e("div",{className:"grid min-h-screen grid-cols-1 grid-rows-1",children:o("div",{className:"flex flex-col items-center",style:{background:"linear-gradient(73.29deg, #7C53FF 0%, #F796FF 100%)"},children:[a,o("div",{className:"text-grey-0 inter-base-regular pb-12",children:["© Medusa Commerce ",e("span",{children:"·"})," ",e("a",{style:{color:"inherit",textDecoration:"none"},href:"mailto:hello@medusajs.com",children:"Contact"})]})]})})});export{L,F as S};
|