<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9335],{32866:function(e,t,r){"use strict";r.d(t,{B:function(){return s}});var a=r(67294),n=r(42283),s=function(e){var t=e.as,r=e.errors,s=e.name,l=e.message,i=e.render,o=function(e,t){if(null==e)return{};var r,a,n={},s=Object.keys(e);for(a=0;a&lt;s.length;a++)t.indexOf(r=s[a])&gt;=0||(n[r]=e[r]);return n}(e,["as","errors","name","message","render"]),d=(0,n.Gc)(),c=(0,n.U2)(r||d.formState.errors,s);if(!c)return null;var u=c.message,m=c.types,p=Object.assign({},o,{children:u||l});return a.isValidElement(t)?a.cloneElement(t,p):i?i({message:u||l,messages:m}):a.createElement(t||a.Fragment,p)}},81382:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact",function(){return r(51655)}])},22509:function(e,t,r){"use strict";var a=r(85893),n=r(31798),s=r(24494),l=r(67294);let i=(0,s.Z)(e=&gt;({hint:{backgroundColor:"white",color:"rgba(0, 0, 0, 0.9)",fontWeight:"normal",border:"1px solid #aaa",padding:8,fontSize:14,whiteSpace:"pre-line"},hintwidthfull:{backgroundColor:"white",color:"rgba(0, 0, 0, 0.9)",fontWeight:"normal",border:"1px solid #aaa",padding:8,margin:8,fontSize:14,whiteSpace:"pre-line",maxWidth:"100%"}}));t.Z=e=&gt;{let[t,r]=(0,l.useState)(!1),s=i();return(0,a.jsx)(n.Z,{classes:{tooltip:(null==e?void 0:e.hintwidthfull)||(null==e?void 0:e.hintwithsimplesign)?s.hintwidthfull:s.hint},open:t,leaveTouchDelay:(null==e?void 0:e.hintwidthfull)?6e4:15e3,onClick:()=&gt;{r(!0)},onClose:()=&gt;{r(!1)},...e})}},62869:function(e,t,r){"use strict";var a=r(85893),n=r(71722),s=r(61076);t.Z=e=&gt;{let{children:t,color:r=null,outline:l=null,loading:i,sm:o=!1,semiSmall:d=!1,className:c,...u}=e,m=(0,s.A)("rounded-full disabled:cursor-not-allowed focus:outline-none text-center inline-block disabled:opacity-50 font-bold tracking-widest min-w-max max-w-full",o?"text-sm px-4 py-2":d?"w-32 px-6 py-2":"w-40 px-6 py-3"),p=(0,s.A)(m,c);if(l)switch(r){case"gray":p=(0,s.A)(p,"text-gray-500 border border-gray-300");break;case"red":p=(0,s.A)(p,"text-red-500 border border-red-300");break;default:p=(0,s.A)(p,"text-primary border border-primary")}else switch(r){case"gray":p=(0,s.A)(p,"text-white bg-gray-300");break;case"red":p=(0,s.A)(p,"text-white bg-red-400");break;default:p=(0,s.A)(p,"text-white bg-primary")}return(0,a.jsx)("button",{...u,disabled:u.disabled||i,className:p,children:i?(0,a.jsx)(n.Z,{className:"w-5 h-5 inline-block animate-spin"}):(0,a.jsx)("span",{children:t})})}},5649:function(e,t,r){"use strict";var a=r(85893),n=r(67294),s=r(61076);let l=n.forwardRef((e,t)=&gt;{let{error:r,className:n,children:l,...i}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("label",{className:(0,s.A)("inline-flex items-center",n),children:[(0,a.jsx)("input",{ref:t,type:"checkbox",...i,className:"focus:ring-primary disabled:opacity-40 h-4 w-4 text-primary border-gray-300 rounded"}),(0,a.jsx)("span",{className:"ml-2 block font-medium text-gray-700",children:l})]})})});l.displayName="Checkbox",t.Z=l},17159:function(e,t,r){"use strict";var a=r(85893);t.Z=e=&gt;{let{children:t}=e;return(0,a.jsx)("p",{className:"mt-1 text-sm text-red-500 error-text",children:t})}},51914:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var a=r(85893),n=r(96361),s=r(22600),l=r(53737),i=r(67294),o=r(61076);let d=(e,t)=&gt;{(0,i.useEffect)(()=&gt;{let r=r=&gt;{!e.current||e.current.contains(r.target)||t(r)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=&gt;{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[e,t])};var c=r(17159);let u=i.forwardRef((e,t)=&gt;{let{error:r,className:u,action:m,autoComplete:p="off",menu:x,unit:h,menuAction:f,type:y,isSearch:b,skipFullWidth:g,...w}=e,[v,j]=(0,i.useState)(),[N,Z]=(0,i.useState)(!1),k="password"===y,A=(0,i.useRef)();return d(A,()=&gt;Z(!1)),(0,a.jsxs)("span",{className:"relative flex-1",children:[(0,a.jsxs)("span",{className:(0,o.A)((m||h)&amp;&amp;"flex",x&amp;&amp;"relative block"),children:[(0,a.jsx)("input",{autoComplete:p,className:(0,o.A)("relative disabled:opacity-40 flex-1 ".concat(g?"":"w-full"," readon border rounded-lg px-3 outline-none py-2 border-gray-300 bg-gray-100"),u,(k||b)&amp;&amp;"pr-10",w.readOnly&amp;&amp;"opacity-30"),type:k?v?"text":"password":y,...w,onFocus:()=&gt;Z(!0),ref:t}),h&amp;&amp;(0,a.jsx)("span",{className:"ml-2 self-center",children:h}),m&amp;&amp;m,x&amp;&amp;N&amp;&amp;(0,a.jsx)("div",{ref:A,className:"absolute z-10 max-h-40 overflow-auto mt-1 top-full left-0 w-full shadow rounded bg-white",children:x.map((e,t)=&gt;(0,a.jsx)("button",{type:"button",onClick:t=&gt;{null==f||f(e),setTimeout(()=&gt;{Z(!1)},10)},className:"py-2 px-4 w-full text-left hover:bg-gray-100",children:e.name},t))})]}),k&amp;&amp;(0,a.jsx)("button",{type:"button",className:"absolute top-1/2 transform focus:outline-none -translate-y-1/2 right-2 text-gray-400 w-6",onClick:()=&gt;j(e=&gt;!e),children:v?(0,a.jsx)(n.Z,{}):(0,a.jsx)(s.Z,{})}),b&amp;&amp;(0,a.jsx)("button",{className:"absolute top-1/2 transform focus:outline-none -translate-y-1/2 right-2 text-gray-400 w-6",children:(0,a.jsx)(l.Z,{})}),r&amp;&amp;(0,a.jsx)(c.Z,{children:r})]})});u.displayName="Input";var m=u},60185:function(e,t,r){"use strict";var a=r(85893),n=r(2905);r(67294);var s=r(61076),l=r(22509),i=r(17159);t.Z=e=&gt;{let{error:t,children:r,label:o,smallLabel:d,isPublic:c,required:u,hint:m,hintwidthfull:p,hintwithsimplesign:x,className:h,...f}=e;return(0,a.jsx)(a.Fragment,{children:m&amp;&amp;(null==f?void 0:f.htmlFor)?(0,a.jsxs)("div",{className:(0,s.A)("block"),children:[(0,a.jsxs)("span",{className:"flex items-center mb-2",children:[(0,a.jsxs)("label",{className:(0,s.A)("inline",h),...f,children:[(0,a.jsxs)("span",{className:(0,s.A)(d&amp;&amp;"text-sm text-gray-600 truncate"),children:[u&amp;&amp;(0,a.jsx)("span",{className:"text-red-500 mr-1 text-sm",children:"[必須]"}),o]}),c&amp;&amp;(0,a.jsx)("span",{className:"ml-2 mb-1 text-xs border border-primary rounded text-primary px-1 py-0.5",children:"公開"})]}),(0,a.jsx)(l.Z,{placement:"top-start",title:m,hintwidthfull:p,hintwithsimplesign:x,children:(0,a.jsx)("span",{className:"flex",children:p?(0,a.jsx)("span",{className:"mx-2 rounded-full py-1 px-2 font-bold text-xs text-white border border-gray-500 bg-gray-400 border-solid",children:"ヒント"}):(0,a.jsx)(n.Z,{className:"ml-1 w-5 h-5 text-gray-400"})})})]}),r,t&amp;&amp;(0,a.jsx)(i.Z,{children:t})]}):(0,a.jsxs)("label",{className:(0,s.A)("block",h),...f,children:[(0,a.jsxs)("span",{className:"flex items-center mb-2",children:[(0,a.jsxs)("span",{className:(0,s.A)(d&amp;&amp;"text-sm text-gray-600 truncate"),children:[u&amp;&amp;(0,a.jsx)("span",{className:"text-red-500 mr-1 text-sm",children:"[必須]"}),o]}),m&amp;&amp;(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(l.Z,{placement:"top-start",title:m,hintwidthfull:p,hintwithsimplesign:x,children:(0,a.jsx)("span",{className:"flex",children:p?(0,a.jsx)("span",{className:"mx-2 rounded-full py-1 px-2 font-bold text-xs text-white border border-gray-500 bg-gray-400 border-solid",children:"ヒント"}):(0,a.jsx)(n.Z,{className:"ml-1 w-5 h-5 text-gray-400"})})})}),c&amp;&amp;(0,a.jsx)("span",{className:"ml-2 text-xs border border-primary rounded text-primary px-1 py-0.5",children:"公開"})]}),r,t&amp;&amp;(0,a.jsx)(i.Z,{children:t})]})})}},33856:function(e,t,r){"use strict";var a=r(85893),n=r(67294),s=r(61076),l=r(17159);let i=n.forwardRef((e,t)=&gt;{let{error:r,className:n,options:i,readOnly:o,emptyOption:d=!0,...c}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("select",{ref:t,className:(0,s.A)("relative disabled:opacity-40 w-full readon border rounded-lg pl-3 pr-10 outline-none py-2 border-gray-300 bg-gray-100",n,o&amp;&amp;"pointer-events-none opacity-30"),...c,children:[d&amp;&amp;(0,a.jsx)("option",{value:null}),i.map((e,t)=&gt;(0,a.jsx)("option",{value:e.value,children:e.label},t))]}),r&amp;&amp;(0,a.jsx)(l.Z,{children:r})]})});i.displayName="Input",t.Z=i},96426:function(e,t,r){"use strict";var a=r(85893),n=r(67294),s=r(61076),l=r(17159);let i=n.forwardRef((e,t)=&gt;{let{error:r,className:n,...i}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("textarea",{ref:t,className:(0,s.A)("relative disabled:opacity-40 w-full readon border rounded-lg px-3 outline-none py-2 border-gray-300 bg-gray-100",n,i.readOnly&amp;&amp;"opacity-30"),...i}),r&amp;&amp;(0,a.jsx)(l.Z,{children:r})]})});i.displayName="Textarea",t.Z=i},51655:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return g}});var a=r(85893),n=r(67294),s=r(42283),l=r(32866),i=r(5649),o=r(51914),d=r(60185),c=r(33856),u=r(96426),m=r(17159),p=r(19492),x=r(22461),h=r(47126),f=r(10893),y=r(62869),b=r(11163),g=!0;t.default=()=&gt;{var e,t,r,g,w,v;let j=(0,b.useRouter)(),[N,Z]=(0,n.useState)(!1),{setAlert:k}=(0,p.VY)(),{register:A,handleSubmit:E,watch:C,reset:_,setValue:z,getValues:$,trigger:q,formState:{errors:F,isValid:L}}=(0,s.cI)({mode:"onChange",defaultValues:{type:"company",name:"",companyName:"",email:"",tel:"",body:"",isPolicyAccepted:null}});return(0,n.useEffect)(()=&gt;{"teacher"===j.query.type&amp;&amp;z("type","teacher")},[j.query.type]),(0,a.jsxs)("div",{className:"rounded-md shadow px-4 py-10 md:p-20 my-10 max-w-4xl bg-white mx-auto",children:[(0,a.jsx)("h1",{className:"font-bold text-4xl text-center mb-10",children:"お問い合わせ"}),$("type")&amp;&amp;(0,a.jsxs)("p",{className:"mb-8 text-center",children:[(0,a.jsx)("a",{href:"/".concat($("type"),"#qa"),className:"text-primary",target:"_blank",rel:"noopener noreferrer",children:"よくある質問"}),"もご用意しておりますのでご覧ください。"]}),(0,a.jsxs)("form",{onSubmit:E(e=&gt;{Z(!0),"teacher"===e.type&amp;&amp;(delete e.companyName,delete e.tel);let t=(0,x.Ki)(),r={id:t,status:"waiting",lastMessage:e.body,replyCount:1,createdAt:x.EK.now(),updatedAt:x.EK.now(),userContactedAt:x.EK.now(),type:e.type,email:e.email,name:e.name,tel:e.tel,body:e.body,companyName:e.companyName,isMember:!1};x.RZ.doc("contacts/".concat(t)).set(r).then(()=&gt;{k({severity:"success",message:"お問い合わせを送信しました"}),_()}).catch(()=&gt;{k({severity:"error",message:"エラーが発生しました"})}),Z(!1)}),className:"space-y-6",children:[(0,a.jsx)(d.Z,{required:!0,label:"タイプを選択してください",className:"max-w-sm",children:(0,a.jsx)(c.Z,{...A("type",{required:"タイプを選択してください",validate:e=&gt;"company"==e||"teacher"==e||"タイプに不正な値が設定されました。フォームを利用して最初からやり直してください"}),options:[{label:"企業・団体のご担当者様",value:"company"},{label:"講師の方",value:"teacher"}],error:null==F?void 0:null===(e=F.type)||void 0===e?void 0:e.message})}),(0,a.jsx)(d.Z,{required:!0,label:"お名前",className:"max-w-sm",children:(0,a.jsx)(o.Z,{type:"text",autoComplete:"name",required:!0,...A("name",{required:"お名前を入力してください"}),error:null==F?void 0:null===(t=F.name)||void 0===t?void 0:t.message})}),"company"===C("type")&amp;&amp;(0,a.jsx)(d.Z,{label:"企業・団体名",className:"max-w-sm",children:(0,a.jsx)(o.Z,{type:"text",autoComplete:"organization",...A("companyName"),error:null==F?void 0:null===(r=F.companyName)||void 0===r?void 0:r.message})}),(0,a.jsx)(d.Z,{required:!0,label:"メールアドレス",className:"max-w-sm",children:(0,a.jsx)(o.Z,{type:"email",autoComplete:"email",required:!0,...A("email",{required:"メールアドレスを入力してください",validate:e=&gt;(0,h.s9)(e,h.Uf.email,"メールアドレスは正しい形式で入力してください")}),error:null==F?void 0:null===(g=F.email)||void 0===g?void 0:g.message})}),"company"===C("type")&amp;&amp;(0,a.jsx)(d.Z,{label:"電話番号",className:"max-w-sm",children:(0,a.jsx)(o.Z,{type:"tel",autoComplete:"tel",...A("tel",{required:!1,validate:e=&gt;(0,h.s9)(e,h.Uf.tel,"電話番号は正しい形式で入力してください")}),error:null==F?void 0:null===(w=F.tel)||void 0===w?void 0:w.message})}),(0,a.jsx)(d.Z,{required:!0,label:"お問い合わせ",children:(0,a.jsx)(u.Z,{required:!0,rows:8,...A("body",{required:"お問い合わせの内容を入力してください"}),error:null==F?void 0:null===(v=F.body)||void 0===v?void 0:v.message})}),(0,a.jsxs)(i.Z,{required:!0,...A("isPolicyAccepted",{required:"個人情報の取扱いに同意してください"}),children:[(0,a.jsx)("a",{target:"_blank",href:"/privacy",className:"text-primary",onClick:e=&gt;e.stopPropagation(),children:"個人情報の取扱い"}),"に同意する"]}),(0,a.jsx)(l.B,{errors:F,name:"isPolicyAccepted",render:e=&gt;{let{message:t}=e;return(0,a.jsx)(m.Z,{children:t})}}),(0,a.jsx)("div",{className:"text-center",children:(0,a.jsx)("span",{onClick:async()=&gt;{await q(),await (0,f.od)(k,F)},children:(0,a.jsx)(y.Z,{type:"submit",disabled:!L||N,loading:N,children:"送信"})})})]})]})}},47126:function(e,t,r){"use strict";r.d(t,{DJ:function(){return l},Uf:function(){return a},iB:function(){return s},s9:function(){return n}});let a={password:/(?=.*[0-9])(?=.*[a-zA-Z])[a-zA-Z0-9~˜@#¥$%^&amp;*\+=`|\,\{\}:;!.?\'\"\(\)\[\]\-_\/\&lt;\&gt;\\]*$/,newPassword:/(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])[a-zA-Z0-9~˜@#¥$%^&amp;*\+=`|\,\{\}:;!.?\'\"\(\)\[\]\-_\/\&lt;\&gt;\\]*$/,email:/^(([^&lt;&gt;()\\[\]\\.,;:\s@"]+(\.[^&lt;&gt;()\\[\]\\.,;:\s@"]+)*)|(".+"))@(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,})$/,tel:/^(?:\d{10,11}|\d{5}-\d{1}-\d{4}|\d{4}-\d{2}-\d{4}|\d{3}-\d{3}-\d{4}|\d{2}-\d{4}-\d{4}|\d{3}-\d{4}-\d{4})$/,katakana:new RegExp(/^[ァ-ヾ]+$/),instagramUrl:/^https?:\/\/(www\.)?instagram.com\/[_.a-zA-Z0-9]{1,30}\/?$/,youtubeUrl:RegExp("(https?)?:?(www)?youtube.com/[@_a-zA-Z0-9].{3}"),twitterUrl:/^https?:\/\/(www\.)?twitter.com\/[_a-zA-Z0-9]{5,15}\/?$/,facebookUrl:RegExp("(https?)?:?(www)?facebook.com/[a-zA-Z0-9].{3}"),movieUrl:/https?:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&amp;=+\$,%#\u3000-\u30FE\u4E00-\u9FA0\uFF01-\uFFE3]+/g,zipcode:/^[0-9]+$/,jpPostal:/^[0-9]{7}$/,bankNumber:/^[0-9]+$/,jpBankAccountCode:/^[0-9]{7}$/,bankAccountName:/^[ァ-ヾ（），「」．－／　]+$/,httpUrl:/https?:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&amp;=+\$,%#]+/g,japaneses:/[一-龠]+|[ぁ-ゔ]+|[ァ-ヾ]+|[a-zA-Z0-9]+|[ａ-ｚＡ-Ｚ０-９]+|[々〆〤]+/u,name:/^[一-龠ぁ-ゔァ-ヾａ-ｚＡ-Ｚ０-９a-zA-Z0-9々〆〤ァ-ヾ（），「」．－／：＠、。・：；？！゛゜´｀¨＾￣＿ヽヾゝゞ〃仝々〆〇ー―‐＼～∥｜…‥　 ]+$/,referralCode:/^[a-zA-Z0-9]{5,32}$/,ipAddress:/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])$/,qualifiedInvoiceIssuerId:/^T\d{13}$/,minimumFee:/^[0-9]+$/},n=(e,t,r)=&gt;null==e||""===String(e)||!!String(e).match(t)||r,s=function(e,t){let r=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]&amp;&amp;arguments[2];if(r&amp;&amp;!t.length)return"本項目は必須です";let a=t.filter(t=&gt;e.find(e=&gt;e.value==t));return t.length!=a.length?"不正な値です":""},l=(e,t,r)=&gt;{if(!e||0===e.length)return!0;let a=e.filter(e=&gt;r.find(t=&gt;t.value==e));return e.length==a.length||"".concat(t,"に不正な値が設定されました")}},22600:function(e,t,r){"use strict";var a=r(67294);let n=a.forwardRef(function(e,t){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"}))});t.Z=n},96361:function(e,t,r){"use strict";var a=r(67294);let n=a.forwardRef(function(e,t){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"}))});t.Z=n},71722:function(e,t,r){"use strict";var a=r(67294);let n=a.forwardRef(function(e,t){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"}))});t.Z=n},53737:function(e,t,r){"use strict";var a=r(67294);let n=a.forwardRef(function(e,t){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"}))});t.Z=n}},function(e){e.O(0,[2283,5551,6050,2888,9774,179],function(){return e(e.s=81382)}),_N_E=e.O()}]);</pre></body></html>