1import{aC as o,r as p,j as e,e as h,a1 as v,T as j,aH as y,t as b,b as I,S as N,I as S,k,w as u,d as F}from"./index-C20KSdOe.js";import{t as C}from"./zod-lXa_-HUq.js";import{u as R}from"./index.esm-rJAa7zgX.js";import{C as q}from"./card-BSxRrRq2.js";import{F as L,a as l,b as c,c as m,d as x}from"./form-ChiihR_7.js";import{I as d}from"./input-CryRY2nm.js";const D=()=>o.object({name:o.string().trim().min(1,"ãååãå
¥åãã¦ãã ãã").max(255,"ãååã¯255æå以å
ã§å
¥åãã¦ãã ãã"),email:o.string().trim().min(1,"ã¡ã¼ã«ã¢ãã¬ã¹ãå
¥åãã¦ãã ãã").email("ã¡ã¼ã«ã¢ãã¬ã¹ã®å½¢å¼ãæ£ããããã¾ãã"),reservationId:o.string().trim().max(255,"äºç´IDã¯255æå以å
ã§å
¥åãã¦ãã ãã"),content:o.string().trim().min(1,"ãåãåããå
容ãå
¥åãã¦ãã ãã").max(4096,"ãåãåããå
容ã¯4096æå以å
ã§å
¥åãã¦ãã ãã")}),f=p.forwardRef(({className:a,...i},n)=>e.jsx("textarea",{className:h("flex min-h-[160px] w-full rounded-[12px] border-[1px] border-border bg-white px-3 py-3 text-sm text-text ring-offset-background web-body-2 placeholder:text-text-weaker","focus:border-primary-purple focus:shadow-focus","placeholder:text-muted-foreground focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50",a),ref:n,...i}));f.displayName="Textarea";const E=async a=>await v.post(j.inquiry.index,a),M=()=>{const a=async(i,{arg:n})=>{const r=await E(n);return r.isSuccess||b({title:r.errorResponse?.title,description:r.errorResponse?.message??"ãåãåããã®éä¿¡ã«å¤±æãã¾ããã"}),r};return y(j.inquiry.index,a)};function _(){const{trigger:a}=M(),{pushLangPath:i}=I(),[n,r]=p.useState(!1),s=R({resolver:C(D()),mode:"onChange",defaultValues:{name:"",email:"",reservationId:"",content:""}}),g=s.handleSubmit(async t=>{(await a({name:t.name,email:t.email,reservationId:t.reservationId||void 0,content:t.content}))?.isSuccess&&(b({description:"ãåãåãããåãä»ãã¾ããã"}),s.reset(),r(!0))}),w=s.formState.isValid&&!s.formState.isSubmitting;return e.jsxs("div",{children:[e.jsx(N,{title:"ãåãåãã"}),e.jsx("div",{className:"flex justify-center px-4 py-8",children:e.jsx("div",{className:"w-full max-w-[358px]",children:n?e.jsxs("div",{className:"flex flex-col items-center pt-12 duration-500 animate-in fade-in-0",children:[e.jsx(S,{src:k.checkmark,alt:"check",width:132,height:132}),e.jsx("p",{className:"mt-8 text-center text-text web-body-1-strong",children:"ãåãåãããåãä»ãã¾ãã"}),e.jsx(u,{className:"mt-6 w-full",onClick:()=>i(F.lp),children:"ãããã«æ»ã"})]}):e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"mb-4 text-text-weak web-caption-1",children:"ã質åããå°ããã¨ãããã¾ãããã以ä¸ã®ãã©ã¼ã ãããåãåãããã ããã"}),e.jsx(L,{...s,children:e.jsxs("form",{onSubmit:g,children:[e.jsxs(q,{variant:"panel",children:[e.jsx(l,{name:"name",control:s.control,render:({field:t})=>e.jsxs(c,{children:[e.jsx("label",{className:"text-text web-caption-1-strong",children:"ãåå"}),e.jsx(m,{children:e.jsx(d,{placeholder:"å±±ç° å¤ªé",...t,value:t.value||"",maxLength:255})}),e.jsx(x,{})]})}),e.jsx(l,{name:"email",control:s.control,render:({field:t})=>e.jsxs(c,{className:"mt-6",children:[e.jsx("label",{className:"text-text web-caption-1-strong",children:"ã¡ã¼ã«ã¢ãã¬ã¹"}),e.jsx(m,{children:e.jsx(d,{type:"email",placeholder:"[email protected]",...t,value:t.value||"",maxLength:254})}),e.jsx(x,{})]})}),e.jsx(l,{name:"reservationId",control:s.control,render:({field:t})=>e.jsxs(c,{className:"mt-6",children:[e.jsx("label",{className:"text-text web-caption-1-strong",children:"äºç´ID"}),e.jsx(m,{children:e.jsx(d,{placeholder:"abc123",...t,value:t.value||"",maxLength:255})}),e.jsx("p",{className:"text-text-weak web-caption-2",children:"äºç´IDãåããå ´åã«ãè¨å
¥ãã ããã"}),e.jsx(x,{})]})}),e.jsx(l,{name:"content",control:s.control,render:({field:t})=>e.jsxs(c,{className:"mt-6",children:[e.jsx("label",{className:"text-text web-caption-1-strong",children:"ãåãåããå
容"}),e.jsx(m,{children:e.jsx(f,{placeholder:"ã¹ãã£ã³çµæã«ã¤ãã¦è³ªåãããã¾ãã",...t,value:t.value||"",maxLength:4096,className:h("h-[160px] ")})}),e.jsx(x,{})]})})]}),e.jsx(u,{type:"submit",variant:s.formState.isValid?"default":"invalid",disabled:!w,className:"mt-6 w-full",children:s.formState.isSubmitting?"éä¿¡ä¸...":"éä¿¡"})]})})]})})})]})}export{_ as component};
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.