PageSourceSearch

https://www.yamatomichi.com/_next/static/chunks/pages/program/reserve/[pid]-dce7a054f85858a0.js

js yamatomichi.com collected 2026-09-24 09:25:44 UTC 61,854 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1811],{4474:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});let a={BASIC:"BASIC",PRACTICE:"PRACTICE",LOCAL:"LOCAL STUDY HIKING",GUEST:"GUEST SEMINAR",AMBASSADOR:"AMBASSADOR'S SIGNATURE",LIFE:"LIFE&COMMUNITY",SHOP:"SHOP/STAFF/PRODUCTS",NONE:"なし"};function r(e){var t;return null!=(t=a[e])?t:e}},34527:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>F,default:()=>w});var a=n(37876),r=n(85278),i=n(92303),s=n(14232),o=n(23255),l=n(42247),c=n(96652),d=n(10614),u=n(43008),m=n.n(u),h=n(59486),p=n(53067),x=n(59487),v=n(69040),j=n.n(v),f=function(e){return e.TEXT="TEXT",e.RADIO="RADIO",e.RADIO_FREE="RADIO_FREE",e.CHECKBOX="CHECKBOX",e.CHECKBOX_FREE="CHECKBOX_FREE",e}({});function g(e){switch(e){case"TEXT":default:return"TEXT";case"RADIO":return"RADIO";case"RADIO_FREE":return"RADIO_FREE";case"CHECKBOX":return"CHECKBOX";case"CHECKBOX_FREE":return"CHECKBOX_FREE"}}function y(e){let{question:t,type:n,options:r,questionIndex:i,onChange:s,hasError:o}=e;switch((!r||0===r.length)&&(r=null),n){case"RADIO":return(0,a.jsx)(N,{question:t,options:r,questionIndex:i,onChange:s,hasError:o});case"RADIO_FREE":return(0,a.jsx)(C,{question:t,options:r,questionIndex:i,onChange:s,hasError:o});case"CHECKBOX":return(0,a.jsx)(b,{question:t,options:r,questionIndex:i,onChange:s,hasError:o});case"CHECKBOX_FREE":return(0,a.jsx)(I,{question:t,options:r,questionIndex:i,onChange:s,hasError:o});case"TEXT":return(0,a.jsx)(E,{question:t,questionIndex:i,onChange:s,hasError:o});default:return null}}function N(e){let{question:t,options:n,questionIndex:r,onChange:i,hasError:s}=e;return(0,a.jsxs)("div",{className:j().QuestionItem,children:[(0,a.jsx)("div",{className:j().Question,children:t}),(0,a.jsx)("div",{className:j().Answer,children:(0,a.jsx)("div",{className:s?"".concat(j().RadioButtons," ").concat(j().RadioButtonsError):j().RadioButtons,children:n.map((e,t)=>(0,a.jsxs)("div",{className:j().RadioButtonItem,children:[(0,a.jsx)("input",{type:"radio",name:"question".concat(r),id:"question".concat(r,"_").concat(t),value:e,onChange:i}),(0,a.jsx)("label",{htmlFor:"question".concat(r,"_").concat(t),children:e})]},t))})})]})}function C(e){let{question:t,options:n,questionIndex:r,onChange:i,hasError:s}=e;return(0,a.jsxs)("div",{className:j().QuestionItem,children:[(0,a.jsx)("div",{className:j().Question,children:t}),(0,a.jsx)("div",{className:j().Answer,children:(0,a.jsxs)("div",{className:s?"".concat(j().RadioButtons," ").concat(j().RadioButtonsError):j().RadioButtons,children:[n.map((e,t)=>(0,a.jsxs)("div",{className:j().RadioButtonItem,children:[(0,a.jsx)("input",{type:"radio",name:"question".concat(r),id:"question".concat(r,"_").concat(t),value:e,onChange:i}),(0,a.jsx)("label",{htmlFor:"question".concat(r,"_").concat(t),children:e})]},t)),(0,a.jsxs)("div",{className:j().Other,children:[(0,a.jsx)("input",{type:"radio",name:"question".concat(r),id:"question".concat(r,"_other"),value:"other",onChange:i}),(0,a.jsx)("label",{htmlFor:"question".concat(r,"_other"),children:"その他"}),(0,a.jsx)("input",{type:"text",name:"question".concat(r,"_other_text"),id:"question".concat(r,"_other_text"),onChange:i,className:j().OtherInput,placeholder:"その他の場合はこちらにご記入ください"})]})]})})]})}function b(e){let{question:t,options:n,questionIndex:r,onChange:i,hasError:s}=e;return(0,a.jsxs)("div",{className:j().QuestionItem,children:[(0,a.jsx)("div",{className:j().Question,children:t}),(0,a.jsx)("div",{className:j().Answer,children:(0,a.jsx)("div",{className:s?"".concat(j().CheckboxButtons," ").concat(j().CheckboxButtonsError):j().CheckboxButtons,children:n.map((e,t)=>(0,a.jsxs)("div",{className:j().CheckboxButtonItem,children:[(0,a.jsx)("input",{type:"checkbox",name:"question".concat(r),id:"question".concat(r,"_").concat(t),value:e,onChange:i}),(0,a.jsx)("label",{htmlFor:"question".concat(r,"_").concat(t),children:e})]},t))})})]})}function I(e){let{question:t,options:n=[],questionIndex:r,onChange:i,hasError:s}=e;return(0,a.jsxs)("div",{className:j().QuestionItem,children:[(0,a.jsx)("div",{className:j().Question,children:t}),(0,a.jsx)("div",{className:j().Answer,children:(0,a.jsxs)("div",{className:s?"".concat(j().CheckboxButtons," ").concat(j().CheckboxButtonsError):j().CheckboxButtons,children:[n.map((e,t)=>(0,a.jsxs)("div",{className:j().CheckboxButtonItem,children:[(0,a.jsx)("input",{type:"checkbox",name:"question".concat(r),id:"question".concat(r,"_").concat(t),value:e,onCh
1ange:i}),(0,a.jsx)("label",{htmlFor:"question".concat(r,"_").concat(t),children:e})]},t)),(0,a.jsxs)("div",{className:j().Other,children:[(0,a.jsx)("input",{type:"checkbox",name:"question".concat(r),id:"question".concat(r,"_other"),value:"other",onChange:i}),(0,a.jsx)("label",{htmlFor:"question".concat(r,"_other"),children:"その他"}),(0,a.jsx)("input",{type:"text",name:"question".concat(r,"_other_text"),id:"question".concat(r,"_other_text"),onChange:i,className:j().OtherInput,placeholder:"その他の場合はこちらにご記入ください"})]})]})})]})}function E(e){let{question:t,questionIndex:n,onChange:r,hasError:i}=e;return(0,a.jsxs)("div",{className:j().QuestionItem,children:[(0,a.jsx)("div",{className:j().Question,children:t}),(0,a.jsx)("div",{className:j().Answer,children:(0,a.jsx)("textarea",{name:"question".concat(n),id:"question".concat(n),onChange:r,className:i?j().TextareaError:void 0})})]})}function k(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{children:"山と道HLCプログラム参加規約"}),(0,a.jsx)("p",{children:"株式会社山と道(以下、「当社(山と道HLCアンバサダーや引率者を含む)」といいます。)が開催する本プログラムに参加するにあたり、参加者の皆さんは以下の内容をご確認のうえ、本プログラムへお申し込みしてください。当社が開催する本プログラムに参加した場合は、山と道HLCプログラム参加規約(以下、「本参加規約」といいます。)に同意されたものとみなします。"}),(0,a.jsxs)("ol",{children:[(0,a.jsx)("li",{children:"本プログラムにおいて宿泊する場合、宿泊先はテント場あるいは山小屋(旅館・ホテル営業、簡易宿泊所営業、下宿営業に用いる施設にあたらないものに限る。)に限定されます。"}),(0,a.jsx)("li",{children:"本プログラムは現地集合・現地解散となり、集合場所まで又は解散場所からの移動費・交通費は参加者負担となります。集合場所まで又は解散場所からの移動手段がない場合、当社が参加者を送迎する場合があります。ただし、送迎を希望する参加者の人数、集合・解散場所、その他の状況次第で送迎できない場合があります。"}),(0,a.jsx)("li",{children:"参加者は、本プログラムの参加にあたり、『モンベル野あそび保険(その他当社が指定する保険)』への加入を義務づけられます。ただし、すでに当社が指定する保険の補償内容と同等の保険に加入している場合は、追加加入は不要です。"}),(0,a.jsx)("li",{children:"参加者は、本プログラムの申し込みページに定める参加費を当社が指定する方法で支払わなければなりません。"}),(0,a.jsx)("li",{children:"参加者は、本プログラムの参加にあたり、当社に通知すべき健康状態、持病、疾患、手術履歴、入通院履歴、障害がある場合、必ず、申し込み時に当社に連絡してください。その内容次第では、当社の判断により参加をお断りする場合があります。"}),(0,a.jsxs)("li",{children:[(0,a.jsx)("p",{children:"参加者が以下の事由に該当すると判断した場合、本プログラムの参加をお断りする場合があります。また、参加者が以下の事由に該当することが本プログラムの開催中に判明した場合、それ以降の本プログラムへの参加をお断りさせて頂く場合があります。それらの場合、参加費の返金は行いません。"}),(0,a.jsxs)("ol",{children:[(0,a.jsx)("li",{children:"参加者が飲酒状態(二日酔いを含みます。)の場合"}),(0,a.jsx)("li",{children:"参加者が妊娠中の場合"}),(0,a.jsx)("li",{children:"参加者の体調が優れない場合"}),(0,a.jsx)("li",{children:"当社が指定する必携品を準備していない場合"}),(0,a.jsx)("li",{children:"参加者の服装又は装備が本プログラムの参加に不適当な場合"})]})]}),(0,a.jsx)("li",{children:"本プログラムの開催日の天候、参加者が最少催行人数未満の場合、その他の事情により、当社の判断で本プログラムの中止又は延期を行う場合があります。その場合、当社は、開催日の前日の15時までに参加者にご連絡します。"}),(0,a.jsx)("li",{children:"本プログラムの開催日の天候、プログラム開催場所の状況、その他の事情に基づき、当社の判断でプログラムの内容やコースが変更になる場合があります。"}),(0,a.jsx)("li",{children:"前項に基づき当社が本プログラムの中止又は延期を決定した場合であっても、当社は、事前に支払済みの参加費の返金を原則行いません。"}),(0,a.jsx)("li",{children:"本プログラムは自然の中における活動であり、予測不能な危険を伴いますので、本プログラムの参加にあたっては、当社の指示を必ず守って下さい。"}),(0,a.jsx)("li",{children:"参加者が本参加規約に違反した場合は当社の安全配慮義務は負わないことから、本参加規約に違反した参加者に損害が発生したとしても、当社はその損害について責任を負いません。"}),(0,a.jsx)("li",{children:"本プログラムにおいて、人身事故、携行品の盗難、破損、紛失その他の事由により参加者に損害が生じたとしても、その事由及び請求原因の如何を問わず、当社に故意又は重大な過失がã
1ªã„限り、当社は、10,000円を超えて損害賠償義務を負いません。"})]})]})}function _(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{children:"株式会社山と道(以下、「当社(山と道HLCアンバサダーや引率者を含む)」といいます。)が開催する本プログラムに参加するにあたり、参加者の皆さんは以下の内容をご確認のうえ、本プログラムへお申し込みしてください。当社が開催する本プログラムに参加した場合は、山と道HLCプログラム参加規約(以下、「本参加規約」といいます。)に同意されたものとみなします。"}),(0,a.jsxs)("ol",{children:[(0,a.jsx)("li",{children:"本プログラムにおいて宿泊する場合、宿泊先はテント場あるいは山小屋(旅館・ホテル営業、簡易宿泊所営業、下宿営業に用いる施設にあたらないものに限る。)に限定されます。"}),(0,a.jsx)("li",{children:"本プログラムは現地集合・現地解散となり、集合場所まで又は解散場所からの移動費・交通費は参加者負担となります。集合場所まで又は解散場所からの移動手段がない場合、当社が参加者を送迎する場合があります。ただし、送迎を希望する参加者の人数、集合・解散場所、その他の状況次第で送迎できない場合があります。"}),(0,a.jsx)("li",{children:"参加者は、本プログラムの参加にあたり、『モンベル山岳保険(その他当社が指定する保険)』への加入を義務づけられます。ただし、すでに当社が指定する保険の補償内容と同等の保険に加入している場合は、追加加入は不要です。"}),(0,a.jsx)("li",{children:"参加者は、本プログラムの申し込みページに定める参加費を当社が指定する方法で支払わなければなりません。"}),(0,a.jsx)("li",{children:"参加者は、本プログラムの参加にあたり、当社に通知すべき健康状態、持病、疾患、手術履歴、入通院履歴、障害がある場合、必ず、申し込み時に当社に連絡してください。その内容次第では、当社の判断により参加をお断りする場合があります。"}),(0,a.jsxs)("li",{children:[(0,a.jsx)("p",{children:"参加者が以下の事由に該当すると判断した場合、本プログラムの参加をお断りする場合があります。また、参加者が以下の事由に該当することが本プログラムの開催中に判明した場合、それ以降の本プログラムへの参加をお断りさせて頂く場合があります。それらの場合、参加費の返金は行いません。"}),(0,a.jsxs)("ol",{children:[(0,a.jsx)("li",{children:"参加者が飲酒状態(二日酔いを含みます。)の場合"}),(0,a.jsx)("li",{children:"参加者が妊娠中の場合"}),(0,a.jsx)("li",{children:"参加者の体調が優れない場合"}),(0,a.jsx)("li",{children:"当社が指定する必携品を準備していない場合"}),(0,a.jsx)("li",{children:"参加者の服装又は装備が本プログラムの参加に不適当な場合"})]})]}),(0,a.jsx)("li",{children:"本プログラムの開催日の天候、参加者が最少催行人数未満の場合、その他の事情により、当社の判断で本プログラムの中止又は延期を行う場合があります。その場合、当社は、開催日の前日の15時までに参加者にご連絡します。"}),(0,a.jsx)("li",{children:"本プログラムの開催日の天候、プログラム開催場所の状況、その他の事情に基づき、当社の判断でプログラムの内容やコースが変更になる場合があります。"}),(0,a.jsx)("li",{children:"前項に基づき当社が本プログラムの中止又は延期を決定した場合であっても、当社は、事前に支払済みの参加費の返金を原則行いません。"}),(0,a.jsx)("li",{children:"本プログラムは自然の中における活動であり、予測不能な危険を伴いますので、本プログラムの参加にあたっては、当社の指示を必ず守って下さい。"}),(0,a.jsx)("li",{children:"参加者が本参加規約に違反した場合は当社の安全配慮義務は負わないことから、本参加規約に違反した参加者に損害が発生したとしても、当社はその損害について責任を負いません。"}),(0,a.jsx)("li",{children:"本プログラムにおいて、人身事故、携行品の盗難、破損、紛失その他の事由により参加者に損害が生じたとしても、その事由及び請求原因の如何を問わず、当社に故意又は重大な過失がã
1ªã„限り、当社は、10,000円を超えて損害賠償義務を負いません。"})]})]})}function q(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{children:"株式会社山と道(以下、「当社」といいます。)が開催する本イベントに参加するにあたり、参加者の皆様は以下の内容をご確認のうえ、本イベントへの参加のお申し込みください。当社が開催する本イベントにご参加頂いた場合は、山道祭参加規約(以下、「本参加規約」といいます。)に同意されたものとみなします。"}),(0,a.jsxs)("ol",{children:[(0,a.jsx)("li",{children:"本イベントではキャンピングサイトでテント泊が可能です。テント泊以外の宿泊を希望される場合は、各自、自己費用・責任で宿泊先を用意することも可能です。"}),(0,a.jsx)("li",{children:"本イベントは現地集合・現地解散となり、集合場所まで又は解散場所からの移動費・交通費は参加者負担となります。"}),(0,a.jsx)("li",{children:"参加者が本イベントの会場まで徒歩で移動される場合、その徒歩移動は各自の責任でご対応いただき、徒歩移動における事故について参加者の自己責任となります。"}),(0,a.jsx)("li",{children:"参加者は、本イベントの参加ページに定める参加料を当社が指定する方法で支払わなければなりません。"}),(0,a.jsx)("li",{children:"参加者は、本イベントの参加にあたり、当社に通知すべき健康状態、持病、疾患、手術履歴、入通院履歴、障害がある場合、必ず、申し込み時に当社に連絡してください。その内容次第では、当社の判断により参加をお断りする場合があります。"}),(0,a.jsxs)("li",{children:[(0,a.jsx)("p",{children:"参加者が以下の事由に該当すると判断した場合、本イベントの参加をお断りする場合があります。その場合、参加費の返金は行いません。"}),(0,a.jsxs)("ol",{children:[(0,a.jsx)("li",{children:"参加者が著しく酩酊している場合"}),(0,a.jsx)("li",{children:"参加者の体調が優れない場合"})]})]}),(0,a.jsx)("li",{children:"本イベントの参加を当社に帰責事由なく、参加者の都合でキャンセルする場合、参加費の返金には応じられません。"}),(0,a.jsx)("li",{children:"本イベントの開催日の天候、その他の事情により、当社の判断で本イベントの中止又は延期を行う場合があります。その場合、当社は、開催日の前々日の15時までに参加者にご連絡します。"}),(0,a.jsx)("li",{children:"本イベントの開催日の天候、開催場所の状況、その他の事情に基づき、当社の判断でイベント内容が中止又は変更(延期を含みます。)になる場合があります。"}),(0,a.jsx)("li",{children:"前項に記載された事情に基づき当社が本イベントを予備日を含めて中止を決定した場合は、当社は、事前に支払済みの参加費を返金する場合があります。"}),(0,a.jsx)("li",{children:"本イベントは自然の中における活動であり、予測不能な危険を伴いますので、本イベントの参加にあたっては、当社の指示を必ず守って下さい。"}),(0,a.jsx)("li",{children:"参加者が本参加規約に違反した場合は当社の安全配慮義務は負わないことから、本参加規約に違反した参加者に損害が発生したとしても、当社はその損害について責任を負いません。"}),(0,a.jsx)("li",{children:"本イベントにおいて、人身事故、携行品の盗難、破損、紛失その他の事由により参加者に損害が生じたとしても、その事由及び請求原因の如何を問わず、当社に故意又は重大な過失がない限り、当社は、10,000円を超えて損害賠償義務を負いません。"})]})]})}async function O(e){let{getShopifyAccountConfig:t}
1=await Promise.resolve().then(n.bind(n,74969)),a=t(),r="".concat(a.eventApp.url,"/programs/").concat(e),i=await fetch(r,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"}});if(!i.ok)throw Error("API取得エラー: ".concat(i.status," ").concat(i.statusText));return await i.json()}var S=n(74969),T=n(4474);let A=(0,S.getShopifyAccountConfig)(),R=(0,S.pD)();function B(e){var t,n,u,v,j,N,C;let{wpData:b,appEventData:I,wpId:E,appEventId:S}=e,[A,R]=(0,s.useState)(""),[B,F]=(0,s.useState)(!1),[w,U]=(0,s.useState)(I),[M,L]=(0,s.useState)(!I),[Q]=(0,r.fp)(i.A),[H,Y]=(0,r.fp)(h.Ay);(0,s.useEffect)(()=>{!w&&S&&K()},[S,w]);let K=async()=>{try{L(!0),R("");let e=await O(S);U(e)}catch(e){R("イベント情報の取得に失敗しました。ページを再読み込みしてください。")}finally{L(!1)}};if(window.location.href,!(null==b||null==(t=b.graphQL)?void 0:t.data))return(0,a.jsx)(a.Fragment,{children:"Loading..."});if(M)return(0,a.jsx)(a.Fragment,{});let P=b.graphQL.data,X={categoryData:P.productsCategoriesForMenu,infoData:P.productsCategoriesInfoForMenu},W=Q?"Reservation":"予約ページ",z=(0,l.C3)({inEnglish:Q}),G={pc:null==(u=b.graphQL.data.event)||null==(n=u.eventInfo.image)?void 0:n.mediaItemUrl,sp:null==(j=b.graphQL.data.event)||null==(v=j.eventInfo.image)?void 0:v.mediaItemUrl},J=w.eventTitle,Z=w.area,$=(0,o.Df)(Z,Q),V=(0,o.EO)(w.start,w.end,Q),ee=w.category,et=(0,T.W)(ee);w.conditions;let en=w.conditions,ea=w.entryFee,er=ea.toString().replace(/(\d)(?=(\d{3})+$)/g,"$1,"),ei=((e,t,n)=>{if(!t||void 0===n)return{feeAmount:0,feeRate:0,description:"エラー: イベント情報が不完全です",refundAmount:n||0};let a=new Date,r=Math.ceil((new Date(t).getTime()-a.getTime())/864e5);if("NONE"===e)return{feeAmount:0,feeRate:0,description:Q?"No refunds for personal reasons":"個人の都合によるキャンセルへの返金はありません",refundAmount:0};let i=0,s="";"NO"===e?r<=3?(i=1,s=Q?"Cancelation 3 days before: 100%":"プログラムの当日ー3日前:参加費の100%"):r<=10?(i=.5,s=Q?"Cancelation 4 - 10 days before: 50%":"プログラムの4日前ー10日前:参加費の50%"):(i=0,s=Q?"Cancelation 11 days before: 0%":"プログラムの11日前まで:無料"):r<=7?(i=1,s=Q?"Cancelation 7 days before: 100%":"プログラムの当日ー7日前:参加費の100%"):r<=21?(i=.5,s=Q?"Cancelation 8 - 21 days before: 50%":"プログラムの8日前ー21日前:参加費の50%"):(i=0,s=Q?"Cancelation 22 days before: 0%":"プログラムの22日前まで:無料");let o=Math.floor(n*i);return{feeAmount:o,feeRate:i,description:s,refundAmount:n-o}})(w.cancellationFee,w.start,w.entryFee),es=(0,a.jsxs)("ul",{className:m().CancelFee,children:[(0,a.jsx)("li",{children:Q?"Cancelation 7 days before : 100%":"プログラムの当日ー7日前:参加費の100%"}),(0,a.jsx)("li",{children:Q?"Cancelation 8 - 21 days before: 50%":"プログラムの8日前ー21日前:参加費の50%"}),(0,a.jsx)("li",{children:Q?"Cancelation 22 days before: 0%":"プログラムの22日前まで:無料"})]}),eo=(0,a.jsxs)("ul",{className:m().CancelFee,children:[(0,a.jsx)("li",{children:Q?"Cancelation 3 days before: 100%":"プログラムの当日ー3日前:参加費の100%"}),(0,a.jsx)("li",{children:Q?"Cancelation 4 - 10 days before: 50%":"プログラムの4日前ー10日前:参加費の50%"}),(0,a.jsx)("li",{children:Q?"Cancelation 11 days before: 0%":"プログラムの11日前まで:無料"})]}),el=(0,a.jsx)("ul",{className:m().CancelFee,children:(0,a.jsx)("li",{children:Q?"We cannot provide refunds for cancellations due to personal reasons. However, in the event that the event is canceled due to bad weather, natural disasters, or other unavoidable circumstances, the full participation fee will be refunded.":"個人の都合によるキャンセルへの返金はできません。悪天候や災害等の影響によりイベントが中止になった場合、参加費は全額返金します。"})}),ec=es;"NO"===w.cancellationFee?ec=eo:"NONE"===w.cancellationFee&&(ec=el);let ed=null!=(N=w.maxNumberOfTickets)?N:1,eu="MULTI"===w.restriction,em=w.rule,eh=null;"INDOOR"===em||("OUTDOOR1"===em?eh=(0,a.jsx)(k,{}):"OUTDOOR2"===em?eh=(0,a.jsx)(_,{}):"YAMAMICHISAI"===em&&(eh=(0,a.jsx)(q,{})));let ep="OUTDOOR1"===em||"OUTDOOR2"===em,ex=w.question,ev=null!=(C=null==ex?void 0:ex.length)?C:0,ej=ex?ex.map((e,t)=>({index:t,type:g(e.type),question:e.q,options:e.options})):[],ef=w.status;w.isWaiting;let eg=!0,ey="";"BEFORE"===ef?(eg=!1,ey=Q?"Not yet open for reservation":"募集期間前です"):"CLOSE"===ef?(eg=!1,ey=Q?"Closed":"受付終了しました"):"DRAFT"===ef&&(eg=!1,ey=Q?"Not yet open for reservation":"募集期間前です");let eN=[{text:"PROGRAM",uri:"/community/program"},{text:J,uri:"/program/".concat(E)},{text:"予約ページ",uri:""}];return(0,a.jsxs)(c.Ay,{translateUri:Q?"/yamamichisai2024/reserve":"/en/yamamichisai2024/reserve",productsCategoryDataForMenu:X,breadCrumbData:eN,ogpData:z,pageTitle:W,children:[B&&(0,a.jsx)(d.w,{}),(0,a.jsx)("div",{className:m().TopSpacer}),(0,a.jsx)("h1",{className:m().PageTitle,children:Q?"Reserve a spot":"イベントを予約する"}),A&&(0,a.jsx)("div",{className:m().ErrorMessage,children:A}),!A&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:m().EventInfo,children:[(0,a.jsx)("div",{className:m().EventInfoTitle,children:Q?"Event Information":"イベント情報"}),G.pc&&(0,a.jsxs)("div",{className:m().EventMainImage,children:[(0,a.jsx)("img",{src:G.pc,alt:"",className:m().pc}),(0,a.jsx)("img",{src:G.sp,alt:"",className:m().sp})]}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{children:Q?"Event Name":"イベント名"}),(0,a.jsx)("dd",{children:J}),$&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("dt",{children:Q?"Location":"エリア"}),(0,a.jsx)("dd",{children:$})]}),"NONE"!==ee&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("dt",{children:Q?"Category":"カテゴリ"}),(0,a.jsx)("dd",{children:et})]}),en&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("dt",{children:Q?"Requirements":"参加条件"}),(0,a.jsx)("dd",{children:(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:en}})})]}),(0,a.jsx)("dt",{children:Q?"Date":"日時"}),(0,a.jsx)("dd",{children:V}),(0,a.jsx)("dt",{children:Q?"Participation Fee":"参加費"}),(0,a.jsxs)("dd",{children:["\xa5",er," ",Q?"Tax Included":"(税込)"]}),ea>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("dt",{children:Q?"Cancellation Fee":"キャンセル料金"}),(0,a.jsx)("dd",{children:"NONE"===w.cancellationFee?(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{children:Q?"No refund":"返金なし"}),ec]}):(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:m().CancelFeeNow,children:["¥",ei.feeAmount.toLocaleStr
1ing()," ",Q?"(tax included)":"(税込)"]}),(0,a.jsx)("div",{children:ec})]})})]})]})]}),(0,a.jsx)("div",{className:m().Spacer,children:(0,a.jsx)("hr",{})}),!H.isLoaded&&eg&&(0,a.jsx)("div",{className:m().LoginForm,children:Q?"Checking login status...":"ログイン状態を確認中..."}),H.isLoaded&&!H.shopifyId&&eg&&(0,a.jsx)("div",{className:m().mb80_160,children:(0,a.jsx)(x.Q,{loginText:"ログインして予約する"})}),H.isLoaded&&H.shopifyId&&eg&&(0,a.jsx)(function(e){let{account:t}=e,[n,i]=(0,s.useState)(!0),[o,l]=(0,r.fp)(p.AN);l(w.isWaiting);let[c,d]=(0,s.useState)(null),[u,h]=(0,s.useState)(!1),[x,v]=(0,s.useState)(!1),[j,N]=(0,s.useState)(!1),[C,b]=(0,s.useState)({lastName:!1,firstName:!1,kana:!1,gender:!1,birthYear:!1,birthMonth:!1,birthDay:!1,prefecture:!1,postalCode:!1,address:!1,phone:!1,condition:!1,agreement:!1,questions:!1,emergencyContactNumber:!1,emergencyContactName:!1,emergencyContactRelationship:!1}),[I,k]=(0,s.useState)([]),[_,q]=(0,s.useState)(""),[O,T]=(0,s.useState)(""),[A,R]=(0,s.useState)(""),[B,U]=(0,s.useState)(""),[M,L]=(0,s.useState)(""),[H,Y]=(0,s.useState)(""),[K,P]=(0,s.useState)(""),[X,W]=(0,s.useState)(""),[z,G]=(0,s.useState)(""),[J,Z]=(0,s.useState)(""),[$,V]=(0,s.useState)(""),[ee,et]=(0,s.useState)(""),[ea,er]=(0,s.useState)(""),[ei,es]=(0,s.useState)(""),[eo,el]=(0,s.useState)(""),ec=(0,s.useCallback)(()=>""!==ee.trim(),[ee]),ex=(0,s.useCallback)(()=>""!==ea.trim(),[ea]),ef=(0,s.useCallback)(()=>""!==ei.trim(),[ei]),eg=(0,s.useCallback)(()=>{var e;
1let t=null==(e=document.querySelector('input[name="gender"]:checked'))?void 0:e.value,n=""!==eo||void 0!==t;return t&&!eo&&el(t),n},[eo,el]),ey=(0,s.useCallback)(()=>({year:""!==_,month:""!==O,day:""!==A}),[_,O,A]),eN=(0,s.useCallback)(()=>{let e=document.getElementById("prefecture"),t=(null==e?void 0:e.value)||"";return t&&t!==H&&Y(t),""!==H&&void 0!==H||""!==t&&void 0!==t},[H,Y]),eC=(0,s.useCallback)(()=>{if(!(null==w?void 0:w.conditions))return!0;let e=document.getElementById("conditionYes"),t=document.getElementById("conditionNo");return(null==e?void 0:e.checked)||(null==t?void 0:t.checked)||!1},[null==w?void 0:w.conditions]),eb=(0,s.useCallback)(()=>{if(!eh)return!0;let e=document.getElementById("agreeYES");return document.getElementById("agreeNO"),(null==e?void 0:e.checked)||!1},[eh,null==w?void 0:w.rule]),eI=(0,s.useCallback)(()=>{let e=null==w?void 0:w.question;if(!e||0===e.length)return k([]),!0;let t=e.map((e,t)=>({index:t,type:g(e.type),question:e.q,options:e.options})).map(e=>{let t=!1;switch(e.type){case f.RADIO:t=function(e){let t=document.querySelectorAll('input[name="question'.concat(e,'"]')),n=!1;return t.forEach(e=>{e.checked&&(n=!0)}),n}(e.index);break;case f.RADIO_FREE:t=function(e){let t=document.querySelectorAll('input[name="question'.concat(e,'"]')),n=document.querySelector('input[name="question'.concat(e,'"][value="other"]')),a=document.querySelector('input[name="question'.concat(e,'_other_text"]')),r=!1;return t.forEach(e=>{e.checked&&(r=!0)}),!!r&&(null==n||!n.checked||(null==a?void 0:a.value.trim())!=="")}(e.index);break;case f.CHECKBOX:t=function(e){let t=document.querySelectorAll('input[name="question'.concat(e,'"]')),n=!1;return t.forEach(e=>{e.checked&&(n=!0)}),n}(e.index);break;case f.CHECKBOX_FREE:t=function(e){let t=document.querySelectorAll('input[name="question'.concat(e,'"]')),n=document.querySelector('input[name="question'.concat(e,'"][value="other"]')),a=document.querySelector('input[name="question'.concat(e,'_other_text"]')),r=!1;return t.forEach(e=>{e.checked&&(r=!0)}),!!r&&(null==n||!n.checked||(null==a?void 0:a.value.trim())!=="")}(e.index);break;case f.TEXT:t=function(e){let t=document.querySelector('textarea[name="question'.concat(e,'"]'));return(null==t?void 0:t.value.trim())!==""}(e.index);break;default:t=!0}return t});return k(t.map(e=>!e)),t.every(e=>e)},[null==w?void 0:w.question]),eE=(0,s.useCallback)(()=>!!c&&!!c.email,[c]),ek=(0,s.useCallback)(()=>{let e=null==w?void 0:w.rule;return"OUTDOOR1"!==e&&"OUTDOOR2"!==e||!!z},[null==w?void 0:w.rule,z]),e_=(0,s.useCallback)(()=>{let e=null==w?void 0:w.rule;return"OUTDOOR1"!==e&&"OUTDOOR2"!==e||!!J},[null==w?void 0:w.rule,J]),eq=(0,s.useCallback)(()=>{let e=null==w?void 0:w.rule;return"OUTDOOR1"!==e&&"OUTDOOR2"!==e||!!$},[null==w?void 0:w.rule,$]),eO=(0,s.useCallback)(()=>{let e=null==w?void 0:w.rule;if("OUTDOOR1"!==e&&"OUTDOOR2"!==e)return!0;let t=/^\d{3}$/.test(B),n=/^\d{4}$/.test(M);return t&&n},[null==w?void 0:w.rule,B,M]),eS=(0,s.useCallback)(()=>{let e=null==w?void 0:w.rule;return"OUTDOOR1"!==e&&"OUTDOOR2"!==e||""!==K.trim()},[null==w?void 0:w.rule,K]),eT=(0,s.useCallback)(()=>{let e=null==w?void 0:w.rule;return"OUTDOOR1"!==e&&"OUTDOOR2"!==e||/^[\d-]{10,}$/.test(X)},[null==w?void 0:w.rule,X]),eA=(0,s.useCallback)(()=>{let e=[{name:"lastName",condition:C.lastName,selector:"#lastName"},{name:"firstName",condition:C.firstName,selector:"#firstName"},{name:"kana",condition:C.kana,selector:"#kana"},{name:"gender",condition:C.gender,selector:'input[name="gender"]'},{name:"birthYear",condition:C.birthYear,selector:"#birthYear"},{name:"birthMonth",condition:C.birthMonth,selector:"#birthMonth"},{name:"birthDay",condition:C.birthDay,selector:"#birthDay"},{name:"postalCode",condition:C.postalCode,selector:"#zip1"},{name:"prefecture",condition:C.prefecture,selector:"#prefecture"},{name:"address",condition:C.address,selector:"#address"},{name:"phone",condition:C.phone,selector:"#phone"},{name:"condition",condition:C.condition,selector:'input[name="condition"]'},{name:"agreement",condition:C.agreement,selector:'input[name="agree"]'},{name:"emergencyContactNumber",condition:C.emergencyContactNumber,selector:"#emergencyContactNumber"},{name:"emergencyContactName",condition:C.emergencyContactName,selector:"#emergencyContactName"},{name:"emergencyContactRelationship",condition:C.emergencyContactRelationship,selector:"#relationship"}];if((null==w?void 0:w.questions)&&w.questions.forEach((t,n)=>{I[n]&&e.push({name:"question_".concat(n),condition:!0,selector:"#question-wrapper-".concat(n)})}),C.questions&&I.some(e=>e)){let t=I.findIndex(e=>e);-1!==t&&e.push({name:"question_fallback_".concat(t),condition:!0,selector:"#question-wrapper-".concat(t)})}for(let t of e)if(t.condition){let e=document.querySelector(t.selector);if(e||"gender"!==t.name||(e=document.querySelector('input[name="gender"]:first-of-type')),e||"condition"!==t.name||(e=document.querySelector('input[name="condition"]:first-of-type')),e||"agreement"!==t.name||(e=document.querySelector('input[name="agree"]:first-of-type')),!e&&(t.name.startsWith("question_")||t.name.startsWith("question_fallback_"))){let n=t.name.includes("fallback")?t.name.split("_")[2]:t.name.split("_")[1];if((e=document.querySelector("#question-wrapper-".concat(n)))||(e=document.querySelector("#question-wrapper-".concat(n," input, #question-wrapper-").concat(n," textarea"))),e||(e=document.querySelector('input[name="question'.concat(n,'"], textarea[name="question').concat(n,'"]'))),!e){let t=document.querySelector('.questions-section, [class*="question"]');t&&(e=t)}}if(e){e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}),setTimeout(()=>{e&&"function"==typeof e.focus&&e.focus()},300);break}}},[C,I,null==w?void 0:w.questions]),eR=(0,s.useCallback)(()=>{let e=ey(),t={lastName:!ec(),firstName:!ex(),kana:!ef(),gender:!eg(),birthYear:!e.year,birthMonth:!e.month,birthDay:!e.day,prefecture:!eN(),postalCode:!eO(),address:!eS(),phone:!eT(),condition:!eC(),agreement:!eb(),questions:!eI(),emergencyContactNumber:!ek(),emergencyContactName:!e_(),emergencyContactRelationship:!eq()};b(t);let n=eE()&&!t.lastName&&!t.firstName&&!t.kana&&!t.gender&&!t.birthYear&&!t.birthMonth&&!t.birthDay&&!t.prefecture&&!t.postalCode&&!t.address&&!t.phone&&!t.condition&&!t.agreement&&!t.questions&&!t.emergencyContactNumber&&!t.emergencyContactName&&!t.emergencyContactRelationship;return i(!n),n},[ec,ex,ef,eg,ey,eN,eO,eS,eT,eC,eb,eI,eE,ek,e_,eq]),eB=(0,s.useCallback)(()=>{let e=[],t=[];if(C.lastName&&t.push("姓(漢字)"),C.firstName&&t.push("名(漢字)"),C.kana&&t.push("お名前(かな)"),C.gender&&t.push("性別"),(C.birthYear||C.birthMonth||C.birthDay)&&t.push("生年月日"),C.prefecture&&t.push("都道府県"),ep&&(C.postalCode&&t.push("郵便番号"),C.address&&t.push("住所"),C.phone&&t.push("電話番号")),ep&&(C.emergencyContactNumber&&t.push("緊急連絡先"),C.emergencyContactName&&t.push("緊急連絡先の方のお名前"),C.emergencyContactRelationship&&t.pu
1sh("緊急連絡先の方とのご関係")),C.condition&&t.push("参加条件への回答"),C.agreement&&t.push("参加規約への同意"),t.length>0&&e.push("次の必須項目を入力してください: ".concat(t.join("、"))),c&&!c.email.match(/^[^\s@]+@[^\s@]+\.[^\s@]+$/)&&e.push("有効なメールアドレスを入力してください"),C.questions&&I.length>0){let t=[];I.forEach((e,n)=>{if(e){let e=ej[n];e&&((e.type===f.RADIO_FREE||e.type===f.CHECKBOX_FREE)&&document.querySelector('input[name="question'.concat(n,'"][value="other"]:checked'))?t.push("質問".concat(n+1,"の「その他」を選択した場合は、詳細を入力してください")):t.push("質問".concat(n+1,"に回答してください")))}}),t.length>0&&e.push(...t)}return e},[C,I,ej,c,ep,ep]);function eD(e){if(e){if(et(e.lastName||""),er(e.firstName||""),e.metafields.birthDate){let[t,n,a]=e.metafields.birthDate.split("-");q(t),T(n),R(a)}else q(""),T(""),R("");if(e.defaultAddress&&e.defaultAddress.zip){let[t,n]=e.defaultAddress.zip.split("-");U(t||""),L(n||"")}else U(""),L("");if(e.defaultAddress&&e.defaultAddress.province?Y({Aichi:"愛知県",Akita:"秋田県",Aomori:"青森県",Chiba:"千葉県",Ehime:"愛媛県",Fukui:"福井県",Fukuoka:"福岡県",Fukushima:"福島県",Gifu:"岐阜県",Gunma:"群馬県",Hiroshima:"広島県",Hokkaidō:"北海道",Hyōgo:"兵庫県",Ibaraki:"茨城県",Ishikawa:"石川県",Iwate:"岩手県",Kagawa:"香川県",Yamanashi:"山梨県",Yamaguchi:"山口県",Kōchi:"高知県",Kumamoto:"熊本県",Kyōto:"京都府",Mie:"三重県",Yamagata:"山形県",Miyazaki:"宮崎県",Nagano:"長野県",Nagasaki:"長崎県",Nara:"奈良県",Niigata:"新潟県",Ōita:"大分県",Okayama:"岡山県",Okinawa:"沖縄県",Ōsaka:"大阪府",Saga:"佐賀県",Saitama:"埼玉県",Shiga:"滋賀県",Shimane:"島根県",Shizuoka:"静岡県",Tochigi:"栃木県",Tokushima:"徳島県",Tottori:"鳥取県",Toyama:"富山県",Tōkyō:"東京都",Miyagi:"宮城県",Wakayama:"和歌山県",Kanagawa:"神奈川県",Kagoshima:"鹿児島県"}[e.defaultAddress.province]||""):Y(""),e.defaultAddress){let{city:t,address1:n,address2:a}=e.defaultAddress;P([t,n,a].filter(Boolean).join(" "))}else P("");e.defaultAddress&&e.defaultAddress.phone?W(e.defaultAddress.phone):W(""),e.metafields.emergencyContactNumber?G(e.metafields.emergencyContactNumber):G(""),e.metafields.emergencyContactName?Z(e.metafields.emergencyContactName):Z(""),e.metafields.relationship?V(e.metafields.relationship):V(""),e.metafields.kana?es(e.metafields.kana):es(""),e.metafields.gender?el(e.metafields.gender):el(""),setTimeout(()=>{eR()},100)}}if((0,s.useEffect)(()=>{},[I]),(0,s.useEffect)(()=>{x&&setTimeout(()=>eR(),100)},[x,eR]),(0,s.useEffect)(()=>{t.customerAccessToken?D(t.customerAccessToken,d,h):h(!0)},[t.customerAccessToken]),(0,s.useEffect)(()=>{let e="confirmData_".concat(S,"_").concat(E),t=sessionStorage.getItem(e);if(t&&c)try{var n=JSON.parse(t);let e=n.reservationData;if(e.birthday){let[t,n,a]=e.birthday.split("-");q(t),T(n),R(a)}if(e.lastName&&et(e.lastName),e.firstName&&er(e.firstName),e.postalCode){let[t,n]=e.postalCode.split("-");U(t||""),L(n||"")}e.prefectures&&Y(e.prefectures),e.address&&P(e.address),e.phone&&W(e.phone),e.emergencyContactNumber&&G(e.emergencyContactNumber),e.emergencyContactName&&Z(e.emergencyContactName),e.relationship&&V(e.relationship),e.kana&&es(e.kana),setTimeout(()=>{var t;if(e.numberOfPeople){let t=document.getElementById("numberOfTickets");t&&(t.value=e.numberOfPeople.toString())}if(e.gender){el(e.gender);let t=document.querySelector('input[name="gender"][value="'.concat(e.gender,'"]'));t&&(t.checked=!0)}else if(null==c||null==(t=c.metafields)?void 0:t.gender){el(c.metafields.gender);let e=document.querySelector('input[name="gender"][value="'.concat(c.metafields.gender,'"]'));e&&(e.checked=!0)}let n="formState_".concat(S,"_").concat(E),a=sessionStorage.getItem(n);if(a)try{let e=JSON.parse(a);if(e.condition){let t=document.querySelector('input[name="condition"][value="'.concat(e.condition,'"]'));t&&(t.checked=!0)}if(e.agreement){let e=document.getElementById("agreeYES");e&&(e.checked=!0)}}catch(e){}e.question&&Array.isArray(e.question)&&e.question.forEach((e,t)=>{let n=e.a;if(!n)return;let a=document.querySelectorAll('input[name="question'.concat(t,'"][type="radio"]')),r=document.querySelectorAll('input[name="question'.concat(t,'"][type="checkbox"]')),i=document.querySelector('textarea[name="question'.concat(t,'"]'));if(a.length>0){let e=document.querySelector('input[name="question'.concat(t,'"][value="other"]'));if(e){let a=document.querySelector('input[name="question'.concat(t,'"][value="').concat(n,'"]'));if(a)a.checked=!0;else{e.checked=!0;let a=document.querySelector('input[name="question'.concat(t,'_other_text"]'));a&&(a.value=n)}}else{let e=document.querySelector('input[name="question'.concat(t,'"][value="').concat(n,'"]'));e&&(e.checked=!0)}}else r.length>0?n.split(",").map(e=>
1e.trim()).forEach(e=>{if(e.startsWith("その他: ")){let n=document.querySelector('input[name="question'.concat(t,'"][value="other"]'));if(n){n.checked=!0;let a=e.replace("その他: ",""),r=document.querySelector('input[name="question'.concat(t,'_other_text"]'));r&&(r.value=a)}}else{let n=document.querySelector('input[name="question'.concat(t,'"][value="').concat(e,'"]'));n&&(n.checked=!0)}}):i&&(i.value=n)})},100),setTimeout(()=>{v(!0),eR()},200)}catch(e){eD(c)}else c&&eD(c);v(!0)},[c,S,E]),u)return(0,a.jsxs)("div",{className:m().ReserveFormWrapper,children:[j&&eB().length>0&&(0,a.jsx)("div",{className:m().ErrorMessages,children:(0,a.jsx)("ul",{children:eB().map((e,t)=>(0,a.jsx)("li",{children:e},t))})}),eu&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:m().Title,children:Q?"Reservation Number":"予約人数"}),(0,a.jsx)("div",{className:m().mb16,children:Q?(0,a.jsxs)("p",{children:["Up to ",(0,a.jsxs)("strong",{children:[ed," ",1===ed?"person":"people"]})]}):(0,a.jsxs)("p",{children:["最大 ",(0,a.jsxs)("strong",{children:[ed,"名"]})," までご予約いただけます"]})}),(0,a.jsx)("div",{children:(0,a.jsx)("select",{name:"numberOfTickets",id:"numberOfTickets",className:m().Select,children:Array.from({length:ed},(e,t)=>{let n=t+1;return(0,a.jsxs)("option",{value:n,children:[n,Q?1===n?" person":" people":"名"]},n)})})})]}),en&&(0,a.jsxs)("div",{className:m().RequiresWrapper,children:[(0,a.jsx)("div",{className:m().Title,children:Q?"Participation Requirements":"参加条件"}),(0,a.jsx)("div",{className:m().text,children:Q?"To participate in the event, you must meet the following conditions:":"イベント参加にあたり、以下の条件を満たす必要があります。"}),(0,a.jsx)("div",{className:m().Requires,children:(0,a.jsxs)("div",{className:[m().Require,j&&C.condition&&m().RadioError].filter(
1Boolean).join(" "),children:[(0,a.jsx)("div",{className:m().RequireTitle,children:en}),(0,a.jsxs)("ul",{className:m().RadioButtons,children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("input",{type:"radio",name:"condition",id:"conditionYes",value:"YES",onChange:eR}),(0,a.jsx)("label",{htmlFor:"conditionYes",children:Q?"Yes, I meet this requirement":"はい、条件を満たしています"})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("input",{type:"radio",name:"condition",id:"conditionNo",value:"NO",onChange:eR}),(0,a.jsx)("label",{htmlFor:"conditionNo",children:Q?"No, I don't meet this requirement yet, but I plan to before the event":"いいえ、条件を満たしていませんが、参加前に参加条件を満たす予定です"})]})]})]})})]}),eh&&(0,a.jsxs)("div",{className:m().TermsWrapper,children:[(0,a.jsx)("div",{className:m().Title,children:Q?"Participation Agreement":"参加規約"}),(0,a.jsx)("div",{className:m().TermsNote,children:Q?"To participate in the event, you must agree to the participation agreement.":"イベント参加にあたり、参加規約に同意いただく必要があります。"}),(0,a.jsx)("div",{className:m().Terms,children:(0,a.jsx)("div",{className:m().TermsContent,children:eh})}),(0,a.jsxs)("ul",{className:[m().RadioButtons,j&&C.agreement&&m().RadioError].filter(
1Boolean).join(" "),children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("input",{type:"radio",name:"agree",id:"agreeYES",value:"YES",onChange:eR}),(0,a.jsx)("label",{htmlFor:"agreeYES",children:Q?"I have read and agree to the above participation agreement.":"上記の参加規約を読み、同意します"})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("input",{type:"radio",name:"agree",id:"agreeNO",value:"NO",onChange:eR}),(0,a.jsx)("label",{htmlFor:"agreeNO",children:Q?"I do not agree to the participation agreement.":"参加規約には同意しません"})]})]})]}),c&&(0,a.jsxs)("div",{className:m().UserInfo,children:[(0,a.jsx)("div",{className:m().UserInfoTitle,children:"お客様情報"}),(0,a.jsx)("p",{className:m().UserInfoTitleText,children:"イベント参加にあたり、以下の情報を登録ください(必須)。"}),(0,a.jsxs)("div",{className:m().UserInfoItems,children:[(0,a.jsxs)("div",{className:m().UserInfoItem,children:[(0,a.jsx)("div",{className:m().UserInfoItemTitle,children:"メールアドレス"}),(0,a.jsx)("div",{className:m().UserInfoItemValue,children:c.email}),(0,a.jsxs)("div",{className:m().UserInfoItemNote,children:["メールアドレスが正しくない場合は",(0,a.jsx)("a",{href:"https://support.yamatomichi.com/hc/ja/requests/new?ticket_form_id=6861911457167",target:"_blank",rel:"noopener noreferrer",children:"お問い合わせ"}),"ください。"]})]}),(0,a.jsx)("div",{className:m().UserInfoItem,children:(0,a.jsxs)("div",{className:m().NameRow,children:[(0,a.jsxs)("div",{className:m().UserInfoItem,children:[(0,a.jsx)("div",{className:m().UserInfoItemTitle,children:"姓"}),(0,a.jsx)("input",{type:"text",name:"lastName",id:"lastName",value:ee,maxLength:255,onChange:e=>{et(e.target.value),eR()},onBlur:eR,className:j&&C.lastName?m().InputError:void 0})]}),(0,a.jsxs)("div",{className:m().UserInfoItem,children:[(0,a.jsx)("div",{className:m().UserInfoItemTitle,children:"名"}),(0,a.jsx)("input",{type:"text",name:"firstName",id:"firstName",value:ea,maxLength:255,onChange:e=>{er(e.target.value),eR()},onBlur:eR,className:j&&C.firstName?m().InputError:void 0})]})]})}),(0,a.jsxs)("div",{className:m().UserInfoItem,children:[(0,a.jsx)("div",{className:m().UserInfoItemTitle,children:"ふりがな"}),(0,a.jsx)("input",{type:"text",name:"kana",id:"kana",value:ei,onChange:e=>{es(e.target.value),eR()},onBlur:eR,className:j&&C.kana?m().InputError:void 0})]}),(0,a.jsxs)("div",{className:[m().UserInfoItem,j&&C.gender&&m().RadioError].filter(
1Boolean).join(" "),children:[(0,a.jsx)("div",{className:m().UserInfoItemTitle,children:"性別"}),(0,a.jsxs)("div",{className:m().RadioButtons,children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("input",{type:"radio",name:"gender",id:"genderMale",value:"MAN",checked:"MAN"===eo,onChange:e=>{el(e.target.value),eR()}}),(0,a.jsx)("label",{htmlFor:"genderMale",children:"男性"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("input",{type:"radio",name:"gender",id:"genderFemale",value:"WOMAN",checked:"WOMAN"===eo,onChange:e=>{el(e.target.value),eR()}}),(0,a.jsx)("label",{htmlFor:"genderFemale",children:"女性"})]})]})]}),(0,a.jsxs)("div",{className:m().UserInfoItem,children:[(0,a.jsx)("div",{className:m().UserInfoItemTitle,children:"生年月日"}),(0,a.jsxs)("div",{className:m().BirthDateRow,children:[(0,a.jsx)("input",{type:"number",name:"birthYear",id:"birthYear",placeholder:"年",min:"1900",max:"2100",value:_,onChange:e=>{q(e.target.value),eR()},onBlur:eR,className:j&&C.birthYear?m().InputError:void 0}),(0,a.jsx)("span",{children:"年"}),(0,a.jsx)("input",{type:"number",name:"birthMonth",id:"birthMonth",placeholder:"月",min:"1",max:"12",value:O,onChange:e=>{T(e.target.value),eR()},onBlur:eR,className:j&&C.birthMonth?m().InputError:void 0}),(0,a.jsx)("span",{children:"月"}),(0,a.jsx)("input",{type:"number",name:"birthDay",id:"birthDay",placeholder:"日",min:"1",max:"31",value:A,onChange:e=>{R(e.target.value),eR()},onBlur:eR,className:j&&C.birthDay?m().InputError:void 0}),(0,a.jsx)("span",{children:"日"})]})]}),ep&&(0,a.jsxs)("div",{className:m().UserInfoItem,children:[(0,a.jsx)("div",{className:m().UserInfoItemTitle,children:"郵便番号"}),(0,a.jsxs)("div",{className:m().ZipCodeRow,children:[(0,a.jsx)("input",{type:"text",name:"zip1",id:"zip1",maxLength:3,className:"".concat(m().ZipInput," ").concat(j&&C.postalCode?m().InputError:""),autoComplete:"postal-code",inputMode:"numeric",pattern:"[0-9]*",value:B,onChange:e=>U(e.target.value),onBlur:eR}),(0,a.jsx)("span",{className:m().ZipHyphen,children:"-"}),(0,a.jsx)("input",{type:"text",name:"zip2",id:"zip2",maxLength:4,className:"".concat(m().ZipInput," ").concat(j&&C.postalCode?m().InputError:""),autoComplete:"postal-code",inputMode:"numeric",pattern:"[0-9]*",value:M,onChange:e=>L(e.target.value),onBlur:eR})]})]}),(0,a.jsxs)("div",{className:m().UserInfoItem,children:[(0,a.jsx)("div",{className:m().UserInfoItemTitle,children:"都道府県"}),(0,a.jsxs)("div",{className:m().PrefectureRow,children:[(0,a.jsxs)("select",{name:"prefecture",id:"prefecture",className:"".concat(m().PrefectureSelect," ").concat(j&&C.prefecture?m().SelectError:""),value:H,onChange:e=>{Y(e.target.value),eR()},onBlur:eR,children:[(0,a.jsx)("option",{value:"",children:"選択してください"}),(0,a.jsx)("option",{value:"北海道",children:"北海道"}),(0,a.jsx)("option",{value:"青森県",children:"青森県"}),(0,a.jsx)("option",{value:"岩手県",children:"岩手県"}),(0,a.jsx)("option",{value:"宮城県",children:"宮城県"}),(0,a.jsx)("option",{value:"秋田県",children:"秋田県"}),(0,a.jsx)("option",{value:"山形県",children:"山形県"}),(0,a.jsx)("option",{value:"福島県",children:"福島県"}),(0,a.jsx)("option",{value:"茨城県",children:"茨城県"}),(0,a.jsx)("option",{value:"栃木県",children:"栃木県"}),(0,a.jsx)("option",{value:"群馬県",children:"群馬県"}),(0,a.jsx)("option",{value:"埼玉県",children:"埼玉県"}),(0,a.jsx)("option",{value:"千葉県",children:"千葉県"}),(0,a.jsx)("option",{value:"東京都",children:"東京都"}),(0,a.jsx)("option",{value:"神奈川県",children:"神奈川県"}),(0,a.jsx)("option",{value:"新潟県",children:"新潟県"}),(0,a.jsx)("option",{value:"富山県",children:"富山県"}),(0,a.jsx)("option",{value:"石川県",children:"石川県"}),(0,a.jsx)("option",{value:"福井県",children:"福井県"}),(0,a.jsx)("option",{value:"山梨県",children:"山梨県"}),(0,a.jsx)("option",{value:"長野県",children:"長野県"}),(0,a.jsx)("option",{value:"岐阜県",children:"岐阜県"}),(0,a.jsx)("option",{value:"静岡県",children:"静岡県"}),(0,a.jsx)("option",{value:"愛知県",children:"愛知県"}),(0,a.jsx)("option",{value:"三重県",children:"三重県"}),(0,a.jsx)("option",{value:"滋賀県",children:"滋賀県"}),(0,a.jsx)("option",{value:"京都府",children:"京都府"}),(0,a.jsx)("option",{value:"大阪府",children:"大阪府"}),(0,a.jsx)("option",{value:"兵庫県",children:"兵庫県"}),(0,a.jsx)("option",{value:"奈良県",children:"奈良県"}),(0,a.jsx)("option",{value:"和歌山県",children:"和歌山県"}),(0,a.jsx)("option",{value:"鳥取県",children:"鳥取県"}),(0,a.jsx)("option",{value:"島根県",children:"島根県"}),(0,a.jsx)("option",{value:"岡山県",children:"岡山県"}),(0,a.jsx)("option",{value:"広島県",children:"広島県"}),(0,a.jsx)("option",{value:"山口県",children:"山口県"}),(0,a.jsx)("option",{value:"徳島県",children:"徳島県"}),(0,a.jsx)("option",{value:"香川県",children:"香川県"}),(0,a.jsx)("option",{value:"愛媛県",children:"愛媛県"}),(0,a.jsx)("option",{value:"高知県",children:"高知県"}),(0,a.jsx)("option",{value:"福岡県",children:"福岡県"}),(0,a.jsx)("option",{value:"佐賀県",children:"佐賀県"}),(0,a.jsx)("option",{value:"長崎県",children:"長崎県"}),(0,a.jsx)("option",{value:"熊本県",children:"熊本県"}),(0,a.jsx)("option",{value:"大分県",children:"大分県"}),(0,a.jsx)("option",{value:"宮崎県",children:"宮崎県"}),(0,a.jsx)("option",{value:"鹿児島県",children:"鹿児島県"}),(0,a.jsx)("option",{value:"沖縄県",children:"沖縄県"})]}
1),(0,a.jsx)("span",{className:m().PrefectureIcon,children:(0,a.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsxs)("g",{children:[(0,a.jsx)("path",{d:"M12.5402 18.8091C12.3994 18.9313 12.2084 19 12.0092 19C11.8101 19 11.6191 18.9313 11.4782 18.8091L7.2293 15.1209C7.15756 15.0608 7.10034 14.9888 7.06098 14.9093C7.02161 14.8298 7.00089 14.7442 7.00003 14.6576C6.99916 14.5711 7.01817 14.4852 7.05593 14.4051C7.0937 14.325 7.14947 14.2522 7.21999 14.191C7.29051 14.1297 7.37437 14.0813 7.46668 14.0485C7.55898 14.0158 7.65789 13.9993 7.75762 14C7.85734 14.0008 7.9559 14.0188 8.04754 14.0529C8.13917 14.0871 8.22205 14.1368 8.29134 14.199L12.0092 17.4263L15.7271 14.199C15.8688 14.0803 16.0585 14.0146 16.2554 14.016C16.4524 14.0175 16.6408 14.0861 16.78 14.207C16.9193 14.3279 16.9983 14.4914 17 14.6623C17.0017 14.8333 16.926 14.998 16.7892 15.1209L12.5402 18.8091Z",fill:"#888888"}),(0,a.jsx)("path",{d:"M11.4598 5.19089C11.6006 5.06866 11.7916 5 11.9908 5C12.1899 5 12.3809 5.06866 12.5218 5.19089L16.7707 8.87908C16.8424 8.93922 16.8997 9.01116 16.939 9.0907C16.9784 9.17025 16.9991 9.2558 17 9.34237C17.0008 9.42893 16.9818 9.51478 16.9441 9.59491C16.9063 9.67503 16.8505 9.74783 16.78 9.80904C16.7095 9.87026 16.6256 9.91867 16.5333 9.95145C16.441 9.98423 16.3421 10.0007 16.2424 9.99998C16.1427 9.99922 16.0441 9.98124 15.9525 9.94707C15.8608 9.9129 15.7779 9.86323 15.7087 9.80096L11.9908 6.57371L8.27288 9.80096C8.13122 9.91972 7.9415 9.98544 7.74456 9.98395C7.54763 9.98247 7.35925 9.9139 7.21999 9.79302C7.08073 9.67214 7.00174 9.50862 7.00003 9.33767C6.99832 9.16673 7.07402 9.00204 7.21084 8.87908L11.4598 5.19089Z",fill:"#888888"})]})})})]})]}),ep&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:m().UserInfoItem,children:[(0,a.jsx)("div",{className:m().UserInfoItemTitle,children:"住所"}),(0,a.jsx)("input",{type:"text",name:"address",id:"address",value:K,onChange:e=>P(e.target.value),onBlur:eR,className:j&&C.address?m().InputError:void 0})]}),(0,a.jsxs)("div",{className:m().UserInfoItem,children:[(0,a.jsx)("div",{className:m().UserInfoItemTitle,children:"電話番号"}),(0,a.jsx)("input",{type:"tel",name:"phone",id:"phone",value:X,onChange:e=>W(e.target.value),onBlur:eR,className:j&&C.phone?m().InputError:void 0})]})]}),ep&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:m().UserInfoItem,children:[(0,a.jsx)("div",{className:m().UserInfoItemTitle,children:"緊急連絡先"}),(0,a.jsx)("input",{type:"text",name:"emergencyContactNumber",id:"emergencyContactNumber",value:z,onChange:e=>{G(e.target.value),eR()},onBlur:eR,className:j&&C.emergencyContactNumber?m().InputError:void 0})]}),(0,a.jsxs)("div",{className:m().UserInfoItem,children:[(0,a.jsx)("div",{className:m().UserInfoItemTitle,children:"緊急連絡先の方のお名前"}),(0,a.jsx)("input",{type:"text",name:"emergencyContactName",id:"emergencyContactName",value:J,onChange:e=>{Z(e.target.value),eR()},onBlur:eR,className:j&&C.emergencyContactName?m().InputError:void 0})]}),(0,a.jsxs)("div",{className:m().UserInfoItem,children:[(0,a.jsx)("div",{className:m().UserInfoItemTitle,children:"緊急連絡先の方とのご関係"}),(0,a.jsx)("input",{type:"text",name:"relationship",id:"relationship",value:$,onChange:e=>{V(e.target.value),eR()},onBlur:eR,className:j&&C.emergencyContactRelationship?m().InputError:void 0})]})]})]})]}),ev>0&&(0,a.jsxs)("div",{className:m().Questions,children:[(0,a.jsx)("div",{className:m().Title,children:Q?"Questionnaire":"アンケート"}),(0,a.jsx)("div",{className:m().QuestionNote,children:Q?"Please answer all of the following questions for event participation.":"イベント参加にあたり、以下のアンケートにお答えください(必須)。"}),(0,a.jsx)("div",{children:ej.map((e,t)=>(0,a.jsx)("div",{id:"question-wrapper-".concat(t),children:(0,a.jsx)(y,{question:e.question,type:e.type,options:e.options,questionIndex:t,onChange:eR,hasError:j&&(I[t]||!1)})},t))}),!1]}),(0,a.jsx)("div",{className:m().ButtonWrapper,children:(0,a.jsx)("button",{onClick:eF,children:"確認画面へ進む"})})]});return(0,a.jsx)("div",{className:m().Loading,children:"Loading..."});async function eF(){var e;if(!eR()){N(!0),setTimeout(()=>{eA()},100);return}F(!0);let t=document.getElementById("kana"),n=(null==t?void 0:t.value)||"",a=document.getElementById("birthYear"),r=document.getElementById("birthMonth"),i=document.getElementById("birthDay"),s="".concat((null==a?void 0:a.value)||"","-").concat(String((null==r?void 0:r.value)||"").padStart(2,"0"),"-").concat(String((null==i?void 0:i.value)||"").padStart(2,"0")),o=document.getElementById("zip1"),l=d
1ocument.getElementById("zip2"),d="".concat((null==o?void 0:o.value)||"","-").concat((null==l?void 0:l.value)||""),u=document.getElementById("prefecture"),m=(null==u?void 0:u.value)||"",h=document.getElementById("address"),p=(null==h?void 0:h.value)||"",x=document.getElementById("phone"),v=(null==x?void 0:x.value)||"",j=document.getElementById("emergencyContactNumber"),g=(null==j?void 0:j.value)||"",y=document.getElementById("emergencyContactName"),C=(null==y?void 0:y.value)||"",b=document.getElementById("relationship"),I=(null==b?void 0:b.value)||"",k=parseInt((null==(e=document.getElementById("numberOfTickets"))?void 0:e.value)||"1"),_=[];if(ev>0)for(let e=0;e<ev;e++){let t=ej[e],n="";switch(t.type){case f.RADIO:let a=document.querySelectorAll('input[name="question'.concat(e,'"]:checked'));n=a.length>0?a[0].value:"";break;case f.RADIO_FREE:let r=document.querySelectorAll('input[name="question'.concat(e,'"]:checked'));if(r.length>0)if("other"===r[0].value){let t=document.querySelector('input[name="question'.concat(e,'_other_text"]'));n=(null==t?void 0:t.value)||""}else n=r[0].value;break;case f.CHECKBOX:n=Array.from(document.querySelectorAll('input[name="question'.concat(e,'"]:checked'))).map(e=>e.value).join(", ");break;case f.CHECKBOX_FREE:let i=document.querySelectorAll('input[name="question'.concat(e,'"]:checked')),s=[];Array.from(i).forEach(t=>{if("other"===t.value){let t=document.querySelector('input[name="question'.concat(e,'_other_text"]'));(null==t?void 0:t.value)&&s.push("その他: ".concat(t.value))}else s.push(t.value)}),n=s.join(", ");break;case f.TEXT:let o=document.querySelector('textarea[name="question'.concat(e,'"]'));n=(null==o?void 0:o.value)||"";break;default:n=""}_.push({q:w.question[e].q,a:n})}let q={reservationData:{numberOfPeople:k,lastName:ee,firstName:ea,kana:n,gender:eo,birthday:s,postalCode:d,prefectures:m,address:p,phone:v,emergencyContactNumber:g,emergencyContactName:C,relationship:I,question:_},userInfo:{firstName:(null==c?void 0:c.firstName)||"",lastName:(null==c?void 0:c.lastName)||"",email:(null==c?void 0:c.email)||""},wpId:E,appEventId:S,ruleType:em},O="confirmData_".concat(S,"_").concat(E);sessionStorage.setItem(O,JSON.stringify(q));let T="formState_".concat(S,"_").concat(E),A={condition:"",agreement:!1},R=document.querySelector('input[name="condition"]:checked');R&&(A.condition=R.value);let B=document.querySelector("#agreeYES");B&&(A.agreement=B.checked),sessionStorage.setItem(T,JSON.stringify(A));let D=Q?"/en/program/confirm/".concat(S,"-").concat(E):"/program/confirm/".concat(S,"-").concat(E);window.location.href=D}},{account:H}),!eg&&(0,a.jsx)("div",{className:m().UnReservable,children:(0,a.jsx)("div",{children:ey})})]})]})}async function D(e,t,n){var a;let r=A.storefront.url,i=A.storefront.token,s=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json","X-Shopify-Storefront-Access-Token":i},body:JSON.stringify({query:'\n				query {\n					customer(customerAccessToken: "'.concat(e,'") {\n						id\n						firstName\n						lastName\n						email\n						defaultAddress {\n							id\n							address1\n							address2\n							city\n							country\n							phone\n							province\n							zip\n						}\n						metafields(identifiers: [\n							{namespace: "custom", key: "kana"},\n							{namespace: "custom", key: "gender"},\n							{namespace: "facts", key: "birth_date"},\n							{namespace: "custom", key: "career"},\n							{namespace: "custom", key: "ul_hiker_kbn"},\n							{namespace: "custom", key: "emergency_contact_number"},\n							{namespace: "custom", key: "emergency_contact_name"},\n							{namespace: "custom", key: "relationship"}\n						]) {\n							id\n							namespace\n							key\n							value\n							type\n						}\n					}\n				}\n			')})}),o=await s.json();if(o.errors)throw n(!0),Error(o.errors[0].message);if(!(null==(a=o.data)?void 0:a.customer))throw n(!0),Error("Customer data not found");let l=o.data.customer.metafields.reduce((e,t)=>{if(!t)return e;switch(t.key){case"kana":e.kana=t.value;break;case"gender":e.gender=t.value;break;case"birth_date":e.birthDate=t.value;break;case"career":e.career=t.value;break;case"ul_hiker_kbn":e.ulHikerKbn=t.value;break;case"emergency_contact_number":e.emergencyContactNumber=t.value;break;case"emergency_contact_name":e.emergencyContactName=t.value;break;case"relationship":e.relationship=t.value}return e},{kana:null,gender:null,birthDate:null,career:null,ulHikerKbn:null,emergencyContactNumber:null,emergencyContactName:null,relationship:null}),c={id:o.data.customer.id,firstName:o.data.customer.firstName,lastName:o.data.customer.lastName,email:o.data.customer.email,defaultAddress:o.data.customer.defaultAddress?{id:o.data.customer.defaultAddress.id,address1:o.data.customer.defaultAddress.address1,address2:o.data.customer.defaultAddress.address2,city:o.data.customer.defaultAddress.city,country:o.data.customer.defaultAddress.country,phone:o.data.customer.defaultAddress.phone,province:o.data.customer.defaultAddress.province,zip:o.data.customer.defaultAddress.zip}:null,metafields:l};return t(c),n(!0),{data:{customer:c}}}A.eventApp.url,R.url,(0,S.getShopifyAccountConfig)().eventApp.url;var F=!0;function w(e){let{wpData:t,appEventData:n,wpId:o,appEventId:l,isEnglish:c}=e,[d,u]=(0,r.fp)(i.A);return((0,s.useEffect)(()=>{u(c)},[c,u]),t)?(0,a.jsx)(B,{wpData:t,appEventData:n,wpId:o,appEventId:l}):(0,a.jsx)(a.Fragment,{})}},69040:e=>{e.exports={__pc:"programQuestion___pc__7RaU5",__sp:"programQuestion___sp__6DjA8",__commonMarginBottom:"programQuestion___commonMarginBottom__K_g9R",CheckboxLabelWrapper:"programQuestion_CheckboxLabelWrapper__1l07W",Checkbox:"programQuestion_Checkbox__xXJoR",QuestionItem:"programQuestion_QuestionItem__4bBft",Question:"programQuestion_Question__DHSUP",Answer:"programQuestion_Answer__kIFzw",QuestionError:"programQuestion_QuestionError__thiyv",TextareaError:"programQuestion_TextareaError__81PPD",RadioButtons:"programQuestion_RadioButtons__ivTEy",RadioButtonsError:"programQuestion_RadioButtonsError__Tk__h",Other:"programQuestion_Other__hCed8",CheckboxButtons:"programQuestion_CheckboxButtons__Qp2Ke",CheckboxButtonsError:"programQuestion_CheckboxButtonsError__acSFy"}},69144:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/program/reserve/[pid]",function(){return n(34527)}])}},e=>{e.O(0,[2916,4293,2545,2592,3421,584,9477,6652,4197,8817,8336,9957,3917,1354,5157,3067,636,6593,8792],()=>e(e.s=69144)),_N_E=e.O()}]);

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.