PageSourceSearch

https://yamap.com/_next/static/chunks/pages/model-courses/[id]/plan-guide-29045c0e50199c35.js

js yamap.com collected 2026-10-01 09:13:13 UTC 55,996 bytes, 995 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="33241501-88e4-49f8-9e8f-dd4e089a508b",e._sentryDebugIdIdentifier="sentry-dbid-33241501-88e4-49f8-9e8f-dd4e089a508b")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1117],{1842:(e,t,i)=>{"use strict";i.d(t,{w:()=>d});var n=i(49111),a=i(95132),r=i(83500),l=i(5502),s=i(94780),o=i(8179);let d=({landmarkTypeId:e,size:t=24,...i})=>{let s=(0,r.gf)(),{data:d,isLoading:h}=(0,l.IT)({queryKey:s.landmarkTypes.queryKey.list(),queryFn:s.landmarkTypes.list,refetchOnMount:!1}),m=(0,a.useRef)(h);if((0,a.useEffect)(()=>{!h&&m.current&&(m.current=!1)},[h]),null==d||h)return(0,n.Y)("div",{css:c(t)});let u=d.landmarkTypes.find(t=>t.id===e);return(0,n.Y)("img",{css:m.current&&p,src:u?.icon.url??o.Ew,width:t,height:t,alt:u?.name??"",...i})},c=e=>(0,s.AH)`
2  width: ${e}px;
3  height: ${e}px;
4`,p=(0,s.AH)`
5  animation: fade-in 1s ease-out;
6
7  @keyframes fade-in {
8    0% {
9      opacity: 0;
10    }
11
12    100% {
13      opacity: 1;
14    }
15  }
16`},8179:(e,t,i)=>{"use strict";i.d(t,{AX:()=>I,DT:()=>y,Ei:()=>u,Ew:()=>g,FM:()=>d,I7:()=>m,IH:()=>B,J7:()=>r,PS:()=>S,R2:()=>W,SA:()=>o,TY:()=>T,Tw:()=>H,YC:()=>P,Ym:()=>c,ZF:()=>A,Zh:()=>a,hL:()=>$,i9:()=>Y,m8:()=>_,mu:()=>f,pm:()=>x,rd:()=>h,sE:()=>F,tP:()=>w,v4:()=>l,vN:()=>C,vZ:()=>k,wC:()=>b,x8:()=>v,xg:()=>K,yp:()=>s});let{publicRuntimeConfig:n}=(0,i(48960).A)(),a={version:8,name:"YamapGsiMap",glyphs:"https://file.yamap.co.jp/fonts/{fontstack}/{range}.pbf",sprite:n.landmarkSpriteUrl||"https://api-dev.yamap.com/landmarks/icon_sprite",sources:{"yamap-source-gsi":{type:"raster",tiles:[n.gsiTilesBaseUrl+"/xyz/std/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"yamap-layer-gsi",type:"raster",source:"yamap-source-gsi"}]},r="premium-map-relief-source",l="premium-map-relief-layer",s=`${n.gsiTilesBaseUrl}/xyz/relief/{z}/{x}/{y}.png`,o=15,d=.3,c=`${n.apiBaseUrl}/maps/plan_style`;n.mapboxOutdoorStyle;let p="yamap/cj5j1g9n908e52sph6ywzp0bp",h=`mapbox://styles/${p}`,m="mapbox://styles/yamap/cjdz7es2s09ld2srly1ie8sko",u="yamap-source-gsi",x={type:"raster",tiles:[`https://api.mapbox.com/styles/v1/${p}/tiles/256/{z}/{x}/{y}?access_token=pk.eyJ1IjoieWFtYXAiLCJhIjoiY2xhaGp2cXYwMDM5cjN1cGg0enN0Y3J5dCJ9.7ZvKxiZLhm5pFw1wlqZoWQ`],tileSize:256,attribution:'<a href="https://www.mapbox.com/about/maps/" target="_blank" rel="noopener">\xa9 Mapbox</a> <a href="https://www.openstreetmap.org/copyright" target="_blank" rel="noopener">\xa9 OpenStreetMap</a>'},f={...a,sources:{...a.sources,[u]:x}},g="https://image.yamap.co.jp/mark/12_Information%20Center.png",y=n.apiBaseUrl.match(/https:\/\/api(-staging)?\.yamap\.com/)?35:37,$="normal",Y=Object.freeze({high:
167,normal:4,low:2.5}),k={default:"default","trajectory-heatmap":"trajectory-heatmap"},b="field-memo-markers-source",w="field-memo-symbols",v="field-memo-photos",A="field-memo-symbols-selected",K="field-memo-photos-selected",H="--manual-mode-header-height",W=`var(${H}, 72px)`,T="route-plan-map",_=14,F=14,I=.0635,B={required:{name:"required-badge-landmark",url:"/__v2__/images/icons/map-icon_landmark.svg",size:56},completed:{name:"completed-badge-landmark",url:"/__v2__/images/icons/map-icon_landmark-check.svg",size:56},ineligible:{name:"ineligible-badge-landmark",url:"/__v2__/images/icons/map-icon_landmark-not-found.svg",size:56}},P=200,S="activity-detail-popup-fade",C="shared-locations-popup"},24648:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__N_SSP:()=>iq,default:()=>iV});var n=i(49111),a=i(95132),r=i(98721),l=i(39174),s=i(69711),o=i(31021),d=i(63991),c=i(68848),p=i(15745),h=i(94780),m=i(69189);let u=({total:e,current:t})=>{let i=e>0?Math.min(Math.max(t/e,0),1):0;return(0,n.Y)("div",{css:x,role:"progressbar","aria-valuemin":1,"aria-valuemax":e,"aria-valuenow":t,children:(0,n.Y)("span",{css:f,style:{width:`${100*i}%`}})})},x=(0,h.AH)`
17  flex: 1 0 0;
18  min-width: 0;
19  height: ${p.YK["4xs.px"]};
20  overflow: hidden;
21  background-color: ${p.yW["background.secondary"]};
22  border-radius: ${p.Vq.full};
23`,f=(0,h.AH)`
24  display: block;
25  height: 100%;
26  background-color: ${p.yW["border.secondary"]};
27  border-radius: ${p.Vq.full};
28  transition: width 0.3s ease;
29`,g=({currentStep:e,totalStep:t,scrollResetKey:i,onBack:l,footer:s,children:o})=>{let{t:c}=(0,r.Bd)(["prePlanBook"]),p=(0,a.useRef)(null);return(0,r.w5)(()=>{p.current?.scrollTo({top:0})},[i]),(0,n.FD)("div",{css:y,children:[(0,n.FD)("header",{css:$,children:[(0,n.Y)(d.K0,{variant:"secondary",size:"m",icon:(0,n.Y)(m.IconBack,{}),"aria-label":c("prePlanBook:back"),onClick:l}),void 0===e||void 0===t?(0,n.Y)("span",{css:Y,"aria-hidden":!0}):(0,n.Y)(u,{total:t,current:e}),(0,n.Y)("span",{css:Y,"aria-hidden":!0})]}),(0,n.Y)("main",{ref:p,css:k,children:o}),(0,n.Y)("footer",{css:b,children:s})]})},y=(0,h.AH)`
30  position: relative;
31  display: flex;
32  flex-direction: column;
33  width: 100%;
34  max-width: 600px;
35  height: 100dvh;
36  margin-inline: auto;
37  font-family: ${h.Il.ja.fontFamily};
38  background-color: ${p.yW["background.primary"]};
39`,$=(0,h.AH)`
40  display: flex;
41  gap: ${p.YK["2xs.px"]};
42  align-items: center;
43  padding: ${p.YK["2xs.px"]} ${p.YK["xs.px"]} 0;
44`,Y=(0,h.AH)`
45  flex-shrink: 0;
46  width: ${p.YK["xl.px"]};
47  height: ${p.YK["xl.px"]};
48`,k=(0,h.AH)`
49  flex: 1 1 0;
50  min-height: 0;
51  padding: ${p.YK["xs.px"]} ${p.YK["m.px"]};
52  overflow-y: auto;
53  -webkit-overflow-scrolling: touch;
54`,b=(0,h.AH)`
55  padding: ${p.YK["xs.px"]} ${p.YK["m.px"]}
56    calc(${p.YK["xs.px"]} + env(safe-area-inset-bottom));
57  background-color: ${p.yW["background.primary"]};
58  box-shadow: 0 0 8px rgb(0, 0, 0, 0.2);
59`,w="calc(60 / var(--yamap-root-font-size, 10) * 1rem)",v="登山中",A=[{id:"car",title:"車"},{id:"train",title:"電車・バス"}],K=e=>null==e?void 0:"car"===e?"car":"public_transport",H=e=>({accessMethod:"car",startTime:e,beforeChoice:"shop",selectedShopId:null,descentChoice:"onsen",selectedOnsenId:null,selectedParkingId:null}),W=({label:e,icon:t,selected:i,onSelect:a})=>{let r=i?m.IconFormRadiobuttonsOn:m.IconFormRadiobuttonsOff;return(0,n.FD)("button",{type:"button",css:[T,i?_:F],"aria-pressed":i,onClick:a,children:[(0,n.Y)("span",{css:I,"aria-hidden":!0,children:t}),(0,n.Y)("span",{css:B,children:e}),(0,n.Y)(r,{css:P,"aria-hidden":!0})]})},T=(0,h.AH)`
60  display: flex;
61  flex: 1 0 0;
62  flex-direction: column;
63  gap: ${p.YK["4xs.px"]};
64  align-items: center;
65  min-width: 0;
66  padding: ${p.YK["s.px"]} ${p.YK["2xs.px"]};
67  margin: 0;
68  appearance: none;
69  cursor: pointer;
70  background-color: ${p.yW["background.primary"]};
71  /* 選択で幅が変わって位置がずれないよう、枠線幅は 2px 固定にして色だけ切り替える */
72  border: 2px solid;
73  border-radius: ${p.Vq.m};
74`,_=(0,h.AH)`
75  border-color: ${p.yW["border.secondary"]};
76`,F=(0,h.AH)`
77  border-color: ${p.yW["border.primary"]};
78`,I=(0,h.AH)`
79  display: flex;
80  align-items: center;
81  justify-content: center;
82  width: 56px;
83  height: 56px;
84`,B=(0,h.AH)`
85  width: 100%;
86  font-size: ${p.J.m};
87  font-weight: ${p.Wy["600"]};
88  line-height: ${p.K_.default};
89  color: ${p.yW["text.primary"]};
90  text-align: center;
91`,P=(0,h.AH)`
92  flex-shrink: 0;
93  width: ${p.YK["m.px"]};
94  height: ${p.YK["m.px"]};
95`,S=({title:e,description:t})=>(0,n.FD)("div",{css:C,children:[(0,n.Y)("h1",{css:D,children:e}),null!=t&&(0,n.Y)("p",{css:z,children:t})]}),C=(0,h.AH)`
96  display: flex;
97  flex-direction: column;
98  gap: ${p.YK["3xs.px"]};
99  align-items: center;
100  width: 100%;
101  text-align: center;
102`,D=(0,h.AH)`
103  margin: 0;
104  font-size: ${p.J.xl};
105  font-weight: ${p.Wy["600"]};
106  line-height: ${p.K_.default};
107  color: ${p.yW["text.primary"]};
108`,z=(0,h.AH)`
109  margin: 0;
110  font-size: ${p.J.s};
111  font-weight: ${p.Wy["400"]};
112  line-height: ${p.K_.default};
113  color: ${p.yW["text.primary"]};
114`,J=({state:e,isTraverse:t,onSelectAccessMethod:i})=>{let{t:a}=(0,r.Bd)(["prePlanBook"]);return(0,n.FD)("div",{css:L,children:[(0,n.Y)(S,{title:a("prePlanBook:access.title"),description:a("prePlanBook:access.description")}),(0,n.Y)("div",{css:M,children:A.map(t=>(0,n.Y)(W,{label:t.title,icon:"car"===t.id?(0,n.Y)("img",{src:"/__v2__/images/icons/pre-plan-book/icon_car.svg",alt:"",width:56,height:56}):(0,n.Y)(d.pv0,{css:j,"aria-hidden":!0}),selected:e.accessMethod===t.id,onSelect:()=>i(t.id)},t.id))}),t&&"car"===e.accessMethod&&(0,n.FD)("div",{css:O,children:[(0,n.Y)(m.IconWarningColor,{css:R,"aria-hidden":!0}),(0,n.Y)("p",{css:E,children:a("prePlanBook:access.traverseNote")})]})]})},L=(0,h.AH)`
115  display: flex;
116  flex-direction: column;
117  gap: ${p.YK["s.px"]};
118  width: 100%;
119  /* 縦走の注意カードを margin-top: auto で画面下部(フッター直上)に寄せるため、表示領域いっぱいに広げる */
120  min-height: 100%;
121`,M=(0,h.AH)`
122  display: flex;
123  gap: ${p.YK["2xs.px"]};
124  align-items: stretch;
125  width: 100%;
126`,j=(0,h.AH)`
127  width: 56px;
128  height: 56px;
129  color: ${p.yW["text.primary"]};
130`,O=(0,h.AH)`
131  display: flex;
132  gap: ${p.YK["3xs.px"]};
133  align-items: center;
134  padding: ${p.YK["2xs.px"]};
135  margin-top: auto;
136  background-color: ${p.yW["background.secondary"]};
137  border-radius: ${p.Vq.m};
138`,R=(0,h.AH)`
139  flex-shrink: 0;
140  width: 28px;
141  height: 28px;
142`,E=(0,h.AH)`
143  margin: 0;
144  font-size: ${p.J.s};
145  font-weight: ${p.Wy["400"]};
146  line-height: ${p.K_.default};
147  color: ${p.yW["text.primary"]};
148`,N=({state:e,onSelectBefore:t})=>{let{t:i}=(0,r.Bd)(["prePlanBook"]);return(0,n.FD)("div",{css:U,children:[(0,n.Y)(S,{title:i("prePlanBook:before.title")}),(0,n.FD)("div",{css:q,children:[(0,n.Y)(W,{label:i("prePlanBook:before.shop"),icon:(0,n.Y)(m.IconStore,{css:V,"aria-hidden":!0}),selected:"shop"===e.beforeChoice,onSelect:()=>t("shop")}),(0,n.Y)(W,{label:i("prePlanBook:before.skip"),icon:(0,n.Y)(m.IconWalking,{css:V,"aria-hidden":!0}),selected:"skip"===e.beforeChoice,onSelect:()=>t("skip")})]}),(0,n.FD)("div",{css:Z,children:[(0,n.Y)("img",{css:X,src:"/__v2__/images/icons/pre-plan-book/icon_light.svg",alt:"",width:28,height:28}),(0,n.Y)("p",{css:G,children:i("prePlanBook:before.tip")})]})]})},U=(0,h.AH)`
149  display: flex;
150  flex-direction: column;
151  gap: ${p.YK["s.px"]};
152  width: 100%;
153  /* コンテンツ領域いっぱいに広げ、ヒントを最下部(ボタンの上)へ寄せる */
154  min-height: 100%;
155`,q=(0,h.AH)`
156  display: flex;
157  gap: ${p.YK["2xs.px"]};
158  align-items: stretch;
159  width: 100%;
160`,V=(0,h.AH)`
161  width: 56px;
162  height: 56px;
163  color: ${p.yW["text.primary"]};
164`,Z=(0,h.AH)`
165  display: flex;
166  gap: ${p.YK["3xs.px"]};
167  align-items: center;
168  padding: ${p.YK["2xs.px"]};
169  margin-top: auto;
170  background-color: ${p.yW["background.secondary"]};
171  border-radius: ${p.Vq.m};
172`,X=(0,h.AH)`
173  flex-shrink: 0;
174  width: 28px;
175  height: 28px;
176`,G=(0,h.AH)`
177  flex: 1 0 0;
178  min-width: 0;
179  margin: 0;
180  font-size: ${p.J.s};
181  font-weight: ${p.Wy["400"]};
182  line-height: ${p.K_.default};
183  color: ${p.yW["text.primary"]};
184`,Q=({state:e,onSelectDescent:t})=>{let{t:i}=(0,r.Bd)(["prePlanBook"]);return(0,n.FD)("div",{css:ee,children:[(0,n.Y)(S,{title:i("prePlanBook:descent.title")}),(0,n.FD)("div",{css:et,children:[(0,n.Y)(W,{label:i("prePlanBook:descent.onsen"),icon:(0,n.Y)(d.Mwu,{css:ei,"aria-hidden":!0}
184),selected:"onsen"===e.descentChoice,onSelect:()=>t("onsen")}),(0,n.Y)(W,{label:i("prePlanBook:descent.return"),icon:(0,n.Y)(d.lZg,{css:ei,"aria-hidden":!0}),selected:"return"===e.descentChoice,onSelect:()=>t("return")})]}),(0,n.FD)("div",{css:en,children:[(0,n.Y)("img",{css:ea,src:"/__v2__/images/icons/pre-plan-book/icon_light.svg",alt:"",width:28,height:28}),(0,n.Y)("p",{css:er,children:i("prePlanBook:descent.tip")})]})]})},ee=(0,h.AH)`
185  display: flex;
186  flex-direction: column;
187  gap: ${p.YK["s.px"]};
188  width: 100%;
189  /* コンテンツ領域いっぱいに広げ、ヒントを最下部(ボタンの上)へ寄せる */
190  min-height: 100%;
191`,et=(0,h.AH)`
192  display: flex;
193  gap: ${p.YK["2xs.px"]};
194  align-items: stretch;
195  width: 100%;
196`,ei=(0,h.AH)`
197  width: 56px;
198  height: 56px;
199  color: ${p.yW["text.primary"]};
200`,en=(0,h.AH)`
201  display: flex;
202  gap: ${p.YK["3xs.px"]};
203  align-items: center;
204  padding: ${p.YK["2xs.px"]};
205  margin-top: auto;
206  background-color: ${p.yW["background.secondary"]};
207  border-radius: ${p.Vq.m};
208`,ea=(0,h.AH)`
209  flex-shrink: 0;
210  width: 28px;
211  height: 28px;
212`,er=(0,h.AH)`
213  flex: 1 0 0;
214  min-width: 0;
215  margin: 0;
216  font-size: ${p.J.s};
217  font-weight: ${p.Wy["400"]};
218  line-height: ${p.K_.default};
219  color: ${p.yW["text.primary"]};
220`;var el=i(12436),es=i(83500),eo=i(83527);let ed=(0,h.AH)`
221  height: auto;
222  max-width: 100%;
223  padding-block: ${p.YK["3xs.px"]};
224  white-space: normal;
225
226  & > span {
227    text-wrap: wrap;
228    overflow-wrap: anywhere;
229  }
230`,ec=({text:e,buttonLabel:t,onSelect:i})=>(0,n.FD)("div",{css:ep,children:[(0,n.Y)("span",{css:eh}),(0,n.FD)("div",{css:em,children:[(0,n.Y)("p",{css:eu,children:e}),(0,n.Y)(d.$nd,{variant:"outline",size:"s",isFullWidth:!0,css:ed,onClick:i,children:t})]})]}),ep=(0,h.AH)`
231  display: flex;
232  gap: ${p.YK["2xs.px"]};
233  align-items: flex-start;
234`,eh=(0,h.AH)`
235  flex-shrink: 0;
236  width: ${w};
237`,em=(0,h.AH)`
238  display: flex;
239  flex: 1 0 0;
240  flex-direction: column;
241  gap: ${p.YK["3xs.px"]};
242  align-items: center;
243  justify-content: center;
244  min-width: 0;
245  padding: ${p.YK["2xs.px"]};
246  border: 1px dashed ${p.yW["border.primary"]};
247  border-radius: ${p.Vq.m};
248`,eu=(0,h.AH)`
249  width: 100%;
250  margin: 0;
251  font-size: ${p.J.s};
252  font-weight: ${p.Wy["400"]};
253  line-height: ${p.K_.default};
254  color: ${p.yW["text.primary"]};
255  text-align: center;
256`;var ex=i(72366),ef=i(1842);let eg=({landmarkTypeId:e,pointRole:t})=>(0,n.Y)("span",{css:ey,"aria-hidden":!0,children:"start"===t?(0,n.Y)(d.eTu,{css:e$}):"goal"===t?(0,n.Y)(d.Ptv,{css:e$}):(0,n.Y)(ef.w,{landmarkTypeId:e,size:24})}),ey=(0,h.AH)`
257  display: flex;
258  flex-shrink: 0;
259  width: ${p.YK["m.px"]};
260  height: ${p.YK["m.px"]};
261`,e$=(0,h.AH)`
262  width: 100%;
263  height: 100%;
264`,eY=({time:e,landmarkTypeId:t,name:i,subtitle:a,details:l,secondaryLabel:s,onSecondaryClick:o,mapUrl:c})=>{let{t:p}=(0,r.Bd)(["prePlanBook"]);return(0,n.FD)("div",{css:ek,children:[(0,n.Y)("span",{css:eb,children:e}),(0,n.FD)("div",{css:ew,children:[(0,n.FD)("div",{css:ev,children:[(0,n.FD)("div",{css:eA,children:[(0,n.Y)(eg,{landmarkTypeId:t}),(0,n.FD)("div",{css:eK,children:[(0,n.Y)("span",{css:eH,children:i}),null!=a&&(0,n.Y)("span",{css:eW,children:a})]})]}),(0,n.Y)(ex.M,{css:eT,children:l.join("\n")})]}),null!=c&&(0,n.Y)(d.$nd,{variant:"secondary",size:"s",isFullWidth:!0,css:ed,prefixIcon:(0,n.Y)("img",{src:"/__v2__/images/icons/pre-plan-book/icon_turnright.svg",alt:"",width:16,height:16}),onClick:()=>{null!=c&&window.open(c,"_blank","noopener,noreferrer")},children:p("prePlanBook:result.viewRoute")}),null!=s&&(0,n.Y)(d.$nd,{variant:"outline",size:"s",isFullWidth:!0,css:ed,onClick:o,children:s})]})]})},ek=(0,h.AH)`
265  /* カードは枠線1px+内側パディング8pxぶん右にずれるため、gap を詰めて
266     カード内アイコンを上のポイントのアイコン(時刻60 + gap20 = 80px)に揃える
267     (60 + 12 + 枠1 + パディング8 = 81px でほぼ一致) */
268  display: flex;
269  gap: ${p.YK["2xs.px"]};
270  align-items: flex-start;
271`,eb=(0,h.AH)`
272  flex-shrink: 0;
273  width: ${w};
274  padding-top: ${p.YK["3xs.px"]};
275  font-family: ${h.Il.en.fontFamily};
276  font-size: ${p.J.m};
277  font-weight: ${p.Wy["700"]};
278  line-height: ${p.K_.default};
279  color: ${p.yW["text.primary"]};
280  text-align: right;
281`,ew=(0,h.AH)`
282  display: flex;
283  flex: 1 0 0;
284  flex-direction: column;
285  gap: ${p.YK["3xs.px"]};
286  min-width: 0;
287  padding: ${p.YK["3xs.px"]};
288  border: 1px solid ${p.yW["border.primary"]};
289  border-radius: ${p.Vq.m};
290`,ev=(0,h.AH)`
291  display: flex;
292  flex-direction: column;
293  gap: ${p.YK["4xs.px"]};
294  min-width: 0;
295`,eA=(0,h.AH)`
296  display: flex;
297  gap: ${p.YK["4xs.px"]};
298  align-items: center;
299  width: 100%;
300`,eK=(0,h.AH)`
301  display: flex;
302  flex: 1 0 0;
303  flex-direction: column;
304  min-width: 0;
305`,eH=(0,h.AH)`
306  font-size: ${p.J.s};
307  font-weight: ${p.Wy["600"]};
308  line-height: ${p.K_.default};
309  color: ${p.yW["text.primary"]};
310`,eW=(0,h.AH)`
311  font-size: ${p.J.xs};
312  font-weight: ${p.Wy["400"]};
313  line-height: ${p.K_.default};
314  color: ${p.yW["text.secondary"]};
315`,eT=(0,h.AH)`
316  width: 100%;
317  margin: 0;
318  font-size: ${p.J.xs};
319  font-weight: ${p.Wy["400"]};
320  line-height: ${p.K_.default};
321  color: ${p.yW["text.primary"]};
322  overflow-wrap: anywhere;
323  /* 改行を保持しつつ、長い URL はカード幅で折り返す */
324  white-space: pre-line;
325`,e_=({imageUrl:e,subtitle:t,milestones:i})=>{let{t:l}=(0,r.Bd)(["prePlanBook"]);return(0,n.FD)("div",{css:eF,children:[(0,n.Y)("img",{src:e,alt:"",width:390,height:220,css:eI,"aria-hidden":!0}),(0,n.Y)("span",{css:eB,"aria-hidden":!0}),(0,n.Y)("h1",{css:eP,children:l("prePlanBook:result.heroTitle")}),(0,n.Y)("p",{css:eS,children:t}),(0,n.Y)("div",{css:eC,children:i.map((e,t)=>(0,n.FD)(a.Fragment,{children:[t>0&&(0,n.Y)(m.IconArrowRight,{css:eL,"aria-hidden":!0}),(0,n.FD)("span",{css:eD,children:[(0,n.Y)("span",{css:ez,children:e.label}),(0,n.Y)("span",{css:eJ,children:e.time})]})]},e.label))})]})},eF=(0,h.AH)`
326  position: relative;
327  display: flex;
328  flex-direction: column;
329  gap: ${p.YK["4xs.px"]};
330  justify-content: flex-end;
331  min-height: 220px;
332  padding: ${p.YK["xs.px"]};
333  overflow: hidden;
334`,eI=(0,h.AH)`
335  position: absolute;
336  inset: 0;
337  width: 100%;
338  height: 100%;
339  object-fit: cover;
340  background-color: ${p.yW["border.primary"]};
341`,eB=(0,h.AH)`
342  position: absolute;
343  inset: 0;
344  background-color: rgb(0, 0, 0, 0.5);
345`,eP=(0,h.AH)`
346  position: relative;
347  margin: 0;
348  font-size: ${p.J["2xl"]};
349  font-weight: ${p.Wy["600"]};
350  line-height: ${p.K_.default};
351  color: #fff;
352`,eS=(0,h.AH)`
353  position: relative;
354  margin: 0;
355  font-size: ${p.J.s};
356  font-weight: ${p.Wy["400"]};
357  line-height: ${p.K_.default};
358  color: #fff;
359`,eC=(0,h.AH)`
360  position: relative;
361  display: flex;
362  flex-wrap: wrap;
363  gap: ${p.YK["4xs.px"]};
364  align-items: center;
365`,eD=(0,h.AH)`
366  display: flex;
367  gap: ${p.YK["4xs.px"]};
368  align-items: center;
369  white-space: nowrap;
370`,ez=(0,h.AH)`
371  font-size: ${p.J.xs};
372  font-weight: ${p.Wy["400"]};
373  line-height: ${p.K_.default};
374  color: #fff;
375`,eJ=(0,h.AH)`
376  font-family: ${h.Il.en.fontFamily};
377  font-size: ${p.J.s};
378  font-weight: ${p.Wy["600"]};
379  line-height: ${p.K_.default};
380  color: #fff;
381`,eL=(0,h.AH)`
382  flex-shrink: 0;
383  width: 14px;
384  height: 14px;
385  color: #fff;
386`,eM=({title:e,caption:t})=>(0,n.FD)("div",{css:ej,children:[(0,n.Y)("span",{css:eO,children:e}),null!=t&&(0,n.Y)("span",{css:eR,children:t})]}),ej=(0,h.AH)`
387  display: flex;
388  gap: ${p.YK["2xs.px"]};
389  align-items: center;
390  padding: ${p.YK["2xs.px"]} ${p.YK["xs.px"]};
391`,eO=(0,h.AH)`
392  font-size: ${p.J.l};
393  font-weight: ${p.Wy["600"]};
394  line-height: ${p.K_.default};
395  color: ${p.yW["text.primary"]};
396`,eR=(0,h.AH)`
397  font-size: ${p.J.xs};
398  font-weight: ${p.Wy["400"]};
399  line-height: ${p.K_.default};
400  color: ${p.yW["text.primary"]};
401`,eE=()=>(0,n.Y)("div",{css:eN,"aria-hidden":!0}),eN=(0,h.AH)`
402  width: 100%;
403  height: ${p.YK["3xs.px"]};
404  background-color: ${p.yW["background.secondary"]};
405`,eU="openExternalBrowser=1",eq=(e,t)=>{let[i,n]=e,a=null!=t?`&origin=${t[1]},${t[0]}`:"";return`https://www.google.com/maps/dir/?api=1&destination=${n},${i}${a}&${eU}`};var eV=i(329),eZ=i(36296),eX=i(28358),eG=i(4158);let eQ=({open:e,title:t,onClose:i,children:l,footer:s})=>{let{t:o}=(0,r.Bd)(["prePlanBook"]),[d,c]=(0,a.useState)(e),[p,u]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{e?(c(!0),u(!1)):d&&u(!0)},[e,d]),(0,a.useEffect)(()=>{if(!e)return;let t=e=>{(0,eG.nx)(e.key)&&i()};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[e,i]),!d||"u"<typeof document)?null:(0,eV.createPortal)((0,n.Y)(eX.O,{autoFocus:!0,restoreFocus:!0,children:(0,n.Y)(eZ.A,{enabled:!0,children:(0,n.Y)("div",{css:[e3,p?e8:e6],onClick:i,children:(0,n.FD)("div",{css:[e5,p?e7:e9],onClick:e=>e.stopPropagation(),onAnimationEnd:()=>{p&&c(!1)},role:"dialog","aria-modal":"true","aria-label":t,children:[(0,n.Y)("button",{type:"button",css:[h.vE.visuallyHiddenCss]}),(0,n.FD)("div",{css:te,children:[(0,n.Y)("span",{css:tt,children:t}),(0,n.Y)("button",{type:"button",css:ti,onClick:i,"aria-label":o("prePlanBook:close"),children:(0,n.Y)(m.IconClose,{css:tn,"aria-hidden":!0})})]}),(0,n.Y)("div",{css:ta,children:l}),null!=s&&(0,n.Y)("div",{css:tr,children:s})]})})})}),document.body)},e0=(0,h.i7)`
406  from {
407    transform: translateY(100%);
408  }
409  to {
410    transform: translateY(0);
411  }
412`,e1=(0,h.i7)`
413  from {
414    transform: translateY(0);
415  }
416  to {
417    transform: translateY(100%);
418  }
419`,e2=(0,h.i7)`
420  from {
421    opacity: 0;
422  }
423  to {
424    opacity: 1;
425  }
426`,e4=(0,h.i7)`
427  from {
428    opacity: 1;
429  }
430  to {
431    opacity: 0;
432  }
433`,e3=(0,h.AH)`
434  position: fixed;
435  inset: 0;
436  z-index: ${p.fE.modal};
437  display: flex;
438  align-items: flex-end;
439  background-color: rgb(0, 0, 0, 0.4);
440`,e6=(0,h.AH)`
441  animation: ${e2} ${250}ms ease-out forwards;
442`,e8=(0,h.AH)`
443  animation: ${e4} ${250}ms ease-out forwards;
444`,e5=(0,h.AH)`
445  display: flex;
446  flex-direction: column;
447  width: 100%;
448  max-width: 600px;
449  max-height: 90dvh;
450  margin-inline: auto;
451  background-color: ${p.yW["background.primary"]};
452  border-top-left-radius: ${p.Vq.m};
453  border-top-right-radius: ${p.Vq.m};
454`,e9=(0,h.AH)`
455  animation: ${e0} ${250}ms ease-out forwards;
456`,e7=(0,h.AH)`
457  animation: ${e1} ${250}ms ease-out forwards;
458`,te=(0,h.AH)`
459  display: flex;
460  flex-shrink: 0;
461  gap: ${p.YK["2xs.px"]};
462  align-items: center;
463  padding: ${p.YK["2xs.px"]} ${p.YK["xs.px"]} ${p.YK["3xs.px"]};
464`,tt=(0,h.AH)`
465  flex: 1 0 0;
466  min-width: 0;
467  font-size: ${p.J.l};
468  font-weight: ${p.Wy["600"]};
469  line-height: ${p.K_.default};
470  color: ${p.yW["text.primary"]};
471`,ti=(0,h.AH)`
472  display: flex;
473  flex-shrink: 0;
474  align-items: center;
475  justify-content: center;
476  width: 32px;
477  height: 32px;
478  padding: 0;
479  margin: 0;
480  appearance: none;
481  cursor: pointer;
482  background-color: ${p.yW["background.secondary"]};
483  border: none;
484  border-radius: ${p.Vq.full};
485`,tn=(0,h.AH)`
486  width: ${p.YK["m.px"]};
487  height: ${p.YK["m.px"]};
488  color: ${p.yW["text.primary"]};
489`,ta=(0,h.AH)`
490  /* シート高さが内容依存(auto)のとき basis:0 だと高さが 0 に潰れてリストが
491     フッターに隠れる。basis:auto で内容ぶんの高さを取り、90dvh 超過時のみスクロールさせる */
492  flex: 1 1 auto;
493  min-height: 0;
494  padding: ${p.YK["xs.px"]};
495  overflow-y: auto;
496  -webkit-overflow-scrolling: touch;
497`,tr=(0,h.AH)`
498  flex-shrink: 0;
499  padding: ${p.YK["xs.px"]} ${p.YK["m.px"]}
500    calc(${p.YK["xs.px"]} + env(safe-area-inset-bottom));
501  background-color: ${p.yW["background.primary"]};
502  box-shadow: 0 0 8px rgb(0, 0, 0, 0.2);
503`,tl=({open:e,title:t,spots:i,selectedId:l,distancePrefix:s,onClose:o,onConfirm:c})=>{let{t:p}=(0,r.Bd)(["prePlanBook"]),[h,u]=(0,a.useState)(l??i[0]?.id??null);(0,a.useEffect)(()=>{e&&u(l??i[0]?.id??null)},[e,l,i]);let x=(0,n.Y)(d.$nd,{variant:"primary",isFullWidth:!0,css:ed,disabled:null==h,onClick:()=>{null!=h&&(c(h),o())},children:p("prePlanBook:picker.confirm")});return(0,n.Y)(eQ,{open:e,title:t,onClose:o,footer:x,children:(0,n.Y)("ul",{css:ts,children:i.map(e=>{let t,i=h===e.id,a=i?m.IconFormRadiobuttonsOn:m.IconFormRadiobuttonsOff;return(0,n.FD)("li",{css:to,children:[(0,n.FD)("div",{css:td,children:[(0,n.FD)("div",{css:tc,children:[(0,n.Y)(eg,{landmarkTypeId:e.landmarkTypeId}),(0,n.FD)("span",{css:tp,children:[(0,n.Y)("span",{css:th,children:e.name}),(0,n.FD)("span",{css:tm,children:[s,(t=e.distanceMeters)>=1e3?`${(t/1e3).toFixed(1)}km`:`${t}m`]})]})]}),e.description.length>0&&(0,n.Y)(ex.M,{css:tu,children:e.description}),null!=e.coord&&(0,n.Y)("div",{css:tx,children:(0,n.FD)("button",{type:"button",css:tf,onClick:()=>{null!=e.coord&&window.open((e=>{let[t,i]=e;return`https://www.google.com/maps/search/?api=1&query=${i},${t}&${eU}`})(e.coord),"_blank","noopener,noreferrer")},children:[(0,n.Y)(d.ftX,{css:tg,"aria-hidden":!0}),p("prePlanBook:picker.viewLocation")]})})]}),(0,n.Y)("button",{type:"button",css:ty,"aria-label":e.name,"aria-pressed":i,onClick:()=>u(e.id),children:(0,n.Y)(a,{css:t$,"aria-hidden":!0})})]},e.id)})})})},ts=(0,h.AH)`
504  display: flex;
505  flex-direction: column;
506  gap: ${p.YK["s.px"]};
507  padding: 0;
508  margin: 0;
509  list-style: none;
510`,to=(0,h.AH)`
511  /* ラジオボタンの ::after(全面ヒットエリア)の基準にする */
512  position: relative;
513  display: flex;
514  gap: ${p.YK["3xs.px"]};
515  align-items: center;
516  width: 100%;
517`,td=(0,h.AH)`
518  display: flex;
519  flex: 1 0 0;
520  flex-direction: column;
521  gap: ${p.YK["3xs.px"]};
522  min-width: 0;
523`,tc=(0,h.AH)`
524  display: flex;
525  gap: ${p.YK["3xs.px"]};
526  align-items: center;
527  width: 100%;
528  text-align: left;
529`,tp=(0,h.AH)`
530  display: flex;
531  flex: 1 0 0;
532  flex-direction: column;
533  min-width: 0;
534`,th=(0,h.AH)`
535  font-size: ${p.J.m};
536  font-weight: ${p.Wy["600"]};
537  line-height: ${p.K_.default};
538  color: ${p.yW["text.primary"]};
539`,tm=(0,h.AH)`
540  font-size: ${p.J.xs};
541  font-weight: ${p.Wy["400"]};
542  line-height: ${p.K_.default};
543  color: ${p.yW["text.secondary"]};
544`,tu=(0,h.AH)`
545  /* アイコン(24)+gap(8)ぶん字下げして名前の下に揃える */
546  padding-left: calc(${p.YK["m.px"]} + ${p.YK["3xs.px"]});
547  margin: ${p.YK["4xs.px"]} 0 0;
548  font-size: ${p.J.xs};
549  font-weight: ${p.Wy["400"]};
550  line-height: ${p.K_.default};
551  color: ${p.yW["text.primary"]};
552  overflow-wrap: anywhere;
553  /* 説明文の改行を保持する(LinkableText はテキストをそのまま描画する) */
554  white-space: pre-line;
555
556  /* 説明文中のリンクは全面ヒットエリアより前面に出してタップ可能にする */
557  a {
558    position: relative;
559    z-index: 1;
560  }
561`,tx=(0,h.AH)`
562  padding-left: calc(${p.YK["m.px"]} + ${p.YK["3xs.px"]});
563`,tf=(0,h.AH)`
564  /* 全面ヒットエリアより前面に出してタップ可能にする */
565  position: relative;
566  z-index: 1;
567  display: inline-flex;
568  gap: ${p.YK["4xs.px"]};
569  align-items: center;
570  min-width: 0;
571  /* 文字拡大時: 親幅を超えず、ラベルは折り返して縦に伸びる。
572     折り返さないと min-content がシートを画面幅より広げ、右端が見切れるため。 */
573  max-width: 100%;
574  min-height: 32px;
575  padding: ${p.YK["4xs.px"]} ${p.YK["xs.px"]};
576  margin: 0;
577  font-size: ${p.J.s};
578  font-weight: ${p.Wy["600"]};
579  color: ${p.yW["text.primary"]};
580  text-align: left;
581  white-space: normal;
582  appearance: none;
583  cursor: pointer;
584  background-color: ${p.yW["background.secondary"]};
585  border: none;
586  border-radius: ${p.Vq.full};
587`,tg=(0,h.AH)`
588  flex-shrink: 0;
589  width: ${p.YK["xs.px"]};
590  height: ${p.YK["xs.px"]};
591`,ty=(0,h.AH)`
592  display: flex;
593  flex-shrink: 0;
594  align-items: center;
595  justify-content: center;
596  padding: 0;
597  margin: 0;
598  appearance: none;
599  cursor: pointer;
600  background: none;
601  border: none;
602
603  /* タップ領域を候補カード全体(li)に広げる */
604  &::after {
605    position: absolute;
606    inset: 0;
607    content: '';
608  }
609`,t$=(0,h.AH)`
610  width: ${p.YK["m.px"]};
611  height: ${p.YK["m.px"]};
612`;var tY=i(98985);let tk=e=>{let[t,i]=e.split(":").map(Number);return 60*t+i},tb=e=>{let t=(e%1440+1440)%1440,i=Math.floor(t/60);return`${String(i).padStart(2,"0")}:${String(t%60).padStart(2,"0")}`},tw=(e,t,i)=>tk(e)+t>tk(i),tv=e=>{let t=/^(\d{1,2}):(\d{2})$/.exec(e);return null==t?e:`${Number(t[1])}:${t[2]}`},tA=e=>{let t=Math.floor(e/60),i=e%60;return t>0&&i>0?`${t}時間${i}分`:t>0?`${t}時間`:`${i}分`},tK=({title:e,description:t,label:i,selected:a,onSelect:r})=>{let l=a?m.IconFormRadiobuttonsOn:m.IconFormRadiobuttonsOff;return(0,n.FD)("button",{type:"button",css:[tH,a?tT:tW],"aria-pressed":a,onClick:r,children:[(0,n.Y)(l,{css:t_,"aria-hidden":!0}),(0,n.FD)("span",{css:tF,children:[(0,n.FD)("span",{css:tI,children:[(0,n.Y)("span",{css:tB,children:e}),null!=i&&(0,n.Y)("span",{css:tP,children:i})]}),null!=t&&(0,n.Y)("span",{css:tS,children:t})]})]})},tH=(0,h.AH)`
613  display: flex;
614  gap: ${p.YK["3xs.px"]};
615  align-items: center;
616  width: 100%;
617  padding: ${p.YK["2xs.px"]};
618  margin: 0;
619  text-align: left;
620  appearance: none;
621  cursor: pointer;
622  background: none;
623  border: 2px solid;
624  border-radius: ${p.Vq.s};
625`,tW=(0,h.AH)`
626  border-color: ${p.yW["border.primary"]};
627`,tT=(0,h.AH)`
628  border-color: ${p.yW["border.secondary"]};
629`,t_=(0,h.AH)`
630  flex-shrink: 0;
631  width: ${p.YK["m.px"]};
632  height: ${p.YK["m.px"]};
633`,tF=(0,h.AH)`
634  display: flex;
635  flex: 1 0 0;
636  flex-direction: column;
637  gap: ${p.YK["4xs.px"]};
638  align-items: flex-start;
639  min-width: 0;
640`,tI=(0,h.AH)`
641  display: flex;
642  gap: ${p.YK["3xs.px"]};
643  align-items: center;
644`,tB=(0,h.AH)`
645  font-size: ${p.J.m};
646  font-weight: ${p.Wy["600"]};
647  line-height: ${p.K_.default};
648  color: ${p.yW["text.primary"]};
649`,tP=(0,h.AH)`
650  font-size: ${p.J.xs};
651  font-weight: ${p.Wy["400"]};
652  line-height: ${p.K_.default};
653  color: ${p.yW["text.secondary"]};
654`,tS=(0,h.AH)`
655  font-size: ${p.J.xs};
656  font-weight: ${p.Wy["400"]};
657  line-height: ${p.K_.default};
658  color: ${p.yW["text.secondary"]};
659`,tC=({timeOptions:e,defaultStartTime:t,courseTimeMinutes:i,courseTimeLabel:l,sunsetTime:s,selectedTime:o,onSelectTime:d})=>{let{t:c}=(0,r.Bd)(["prePlanBook"]),p=tb(tk(o)+i),h=/^\d{1,2}:\d{2}$/.test(s),u=tw(o,i,s),x=!h||tw(t,i,s);return(0,n.FD)(a.Fragment,{children:[(0,n.Y)("div",{css:tD,children:e.map(e=>(0,n.Y)(tK,{title:tv(e),label:e!==t||x?void 0:c("prePlanBook:start.popularLabel"),selected:o===e,onSelect:()=>d(e)},e))}),(0,n.FD)("div",{css:tz,children:[(0,n.FD)("div",{css:tJ,children:[(0,n.FD)("div",{css:tL,children:[(0,n.Y)("span",{css:tM,children:tv(o)}),(0,n.Y)(m.IconArrowRight,{css:tj,"aria-hidden":!0}),(0,n.FD)("span",{css:tO,children:[(0,n.Y)("span",{css:tR,children:c("prePlanBook:start.arrivalLabel")}),(0,n.Y)("span",{css:tM,children:tv(p)})]})]}),(0,n.FD)("span",{css:tE,children:[(0,n.Y)("span",{css:tN,children:c("prePlanBook:start.actionTimeLabel")}),(0,n.Y)("span",{css:tN,children:l})]}),(0,n.Y)("p",{css:tU,children:c("prePlanBook:start.restNote")})]}),h&&(0,n.FD)(n.FK,{children:[(0,n.Y)("div",{css:tq}),(0,n.FD)("div",{css:tV,children:[u?(0,n.Y)(m.IconWarningColor,{css:tZ,"aria-hidden":!0}):(0,n.Y)(m.IconCheckCircleOn,{css:[tZ,tX],"aria-hidden":!0}),(0,n.Y)("span",{css:tG,children:(0,n.Y)(tY.x6,{t:c,i18nKey:u?"prePlanBook:start.sunsetWarning":"prePlanBook:start.sunsetSafe",values:{time:tv(s)},components:{bold:(0,n.Y)("b",{css:tQ})}})})]})]})]})]})},tD=(0,h.AH)`
660  display: flex;
661  flex-direction: column;
662  gap: ${p.YK["3xs.px"]};
663  width: 100%;
664`,tz=(0,h.AH)`
665  display: flex;
666  flex-direction: column;
667  gap: ${p.YK["2xs.px"]};
668  align-items: center;
669  width: 100%;
670  padding: ${p.YK["3xs.px"]} ${p.YK["2xs.px"]} ${p.YK["2xs.px"]};
671  /* オプションとの間の余白を吸収して下部へ寄せる */
672  margin-top: auto;
673  background-color: ${p.yW["background.secondary"]};
674  border-radius: ${p.Vq.m};
675`,tJ=(0,h.AH)`
676  display: flex;
677  flex-direction: column;
678  gap: ${p.YK["4xs.px"]};
679  align-items: center;
680`,tL=(0,h.AH)`
681  display: flex;
682  gap: ${p.YK["2xs.px"]};
683  align-items: center;
684`,tM=(0,h.AH)`
685  font-family: ${h.Il.en.fontFamily};
686  font-size: ${p.J.xl};
687  font-weight: ${p.Wy["600"]};
688  line-height: ${p.K_.default};
689  color: ${p.yW["text.primary"]};
690`,tj=(0,h.AH)`
691  flex-shrink: 0;
692  width: ${p.YK["s.px"]};
693  height: ${p.YK["s.px"]};
694  color: ${p.yW["text.primary"]};
695`,tO=(0,h.AH)`
696  display: flex;
697  gap: ${p.YK["3xs.px"]};
698  align-items: center;
699`,tR=(0,h.AH)`
700  font-size: ${p.J.xs};
701  font-weight: ${p.Wy["400"]};
702  line-height: ${p.K_.default};
703  color: ${p.yW["text.primary"]};
704`,tE=(0,h.AH)`
705  display: flex;
706  gap: ${p.YK["4xs.px"]};
707  align-items: baseline;
708`,tN=(0,h.AH)`
709  font-size: ${p.J.s};
710  font-weight: ${p.Wy["400"]};
711  line-height: ${p.K_.default};
712  color: ${p.yW["text.primary"]};
713`,tU=(0,h.AH)`
714  margin: 0;
715  font-size: ${p.J.xs};
716  font-weight: ${p.Wy["400"]};
717  line-height: ${p.K_.default};
718  color: ${p.yW["text.secondary"]};
719  text-align: center;
720  white-space: pre-line;
721`,tq=(0,h.AH)`
722  width: 100%;
723  height: 1px;
724  background-color: ${p.yW["border.primary"]};
725`,tV=(0,h.AH)`
726  display: flex;
727  gap: ${p.YK["3xs.px"]};
728  align-items: center;
729  width: 100%;
730`,tZ=(0,h.AH)`
731  flex-shrink: 0;
732  width: ${p.YK["s.px"]};
733  height: ${p.YK["s.px"]};
734`,tX=(0,h.AH)`
735  color: ${p.yW["icon.success"]};
736`,tG=(0,h.AH)`
737  flex: 1 0 0;
738  min-width: 0;
739  font-size: ${p.J.s};
740  font-weight: ${p.Wy["400"]};
741  line-height: ${p.K_.default};
742  color: ${p.yW["text.primary"]};
743`,tQ=(0,h.AH)`
744  font-weight: ${p.Wy["700"]};
745`,t0=({open:e,timeOptions:t,defaultStartTime:i,courseTimeMinutes:l,courseTimeLabel:s,sunsetTime:o,currentStartTime:c,onClose:p,onConfirm:h})=>{let{t:m}=(0,r.Bd)(["prePlanBook"]),[u,x]=(0,a.useState)(c);(0,a.useEffect)(()=>{e&&x(c)},[e,c]);let f=(0,n.Y)(d.$nd,{variant:"primary",isFullWidth:!0,css:ed,onClick:()=>{h(u),p()},children:m("prePlanBook:picker.confirm")});return(0,n.Y)(eQ,{open:e,title:m("prePlanBook:start.reselectTitle"),onClose:p,footer:f,children:(0,n.Y)("div",{css:t1,children:(0,n.Y)(tC,{timeOptions:t,defaultStartTime:i,courseTimeMinutes:l,courseTimeLabel:s,sunsetTime:o,selectedTime:u,onSelectTime:x})})})},t1=(0,h.AH)`
746  display: flex;
747  flex-direction: column;
748  gap: ${p.YK["s.px"]};
749  width: 100%;
750  min-height: 100%;
751`,t2=({time:e,name:t,landmarkTypeId:i,approx:a=!1,pointRole:r})=>(0,n.FD)("div",{css:t4,children:[(0,n.FD)("span",{css:t3,children:[e,a&&(0,n.Y)("span",{css:t6,children:"頃"})]}),(0,n.FD)("span",{css:t8,children:[(0,n.Y)(eg,{landmarkTypeId:i,pointRole:r}),(0,n.Y)("span",{css:t5,children:t})]})]}),t4=(0,h.AH)`
752  display: flex;
753  gap: ${p.YK["s.px"]};
754  align-items: center;
755  padding-right: ${p.YK["2xs.px"]};
756`,t3=(0,h.AH)`
757  /* 時刻+「頃」をひとまとまりとして右揃え・ベースライン揃えにする */
758  display: flex;
759  flex-shrink: 0;
760  align-items: baseline;
761  justify-content: flex-end;
762  width: ${w};
763  font-family: ${h.Il.en.fontFamily};
764  font-size: ${p.J.m};
765  font-weight: ${p.Wy["700"]};
766  line-height: ${p.K_.default};
767  color: ${p.yW["text.primary"]};
768  white-space: nowrap;
769`,t6=(0,h.AH)`
770  margin-left: 1px;
771  font-family: ${h.Il.ja.fontFamily};
772  font-size: ${p.J.xs};
773  font-weight: ${p.Wy["400"]};
774`,t8=(0,h.AH)`
775  display: flex;
776  flex: 1 0 0;
777  gap: ${p.YK["2xs.px"]};
778  align-items: center;
779  min-width: 0;
780`,t5=(0,h.AH)`
781  flex: 1 0 0;
782  min-width: 0;
783  overflow: hidden;
784  font-size: ${p.J.s};
785  font-weight: ${p.Wy["600"]};
786  line-height: ${p.K_.default};
787  color: ${p.yW["text.primary"]};
788  text-overflow: ellipsis;
789  white-space: nowrap;
790`,t9=e=>{let t="walk"===e.variant||"transfer"===e.variant||"stub"===e.variant,i=("walk"===e.variant||"transfer"===e.variant)&&""===e.label;return(0,n.FD)("div",{css:[t7,"stub"===e.variant&&ie,i&&it],children:[(0,n.Y)("span",{css:ii,"aria-hidden":!0}),(0,n.FD)("div",{css:ia,children:[(0,n.Y)("span",{css:ir,"aria-hidden":!0,children:(0,n.Y)("span",{css:t?is:il(e.variant)})}),"transit"===e.variant?(0,n.FD)("div",{css:id,children:[(0,n.FD)("span",{css:ic,children:[(0,n.Y)("span",{css:ip,children:e.lineLabel}),null!=e.note&&(0,n.Y)("span",{css:ih,children:e.note})]}),(0,n.Y)("span",{css:im,children:e.durationLabel.split(/(\d+)/).filter(e=>""!==e).map((e,t)=>/^\d+$/.test(e)?(0,n.Y)("span",{css:iu,children:e},`${t}-${e}`):(0,n.Y)("span",{css:ix,children:e},`${t}-${e}`))})]}):"stub"!==e.variant?(0,n.Y)("div",{css:io,children:(0,n.Y)("span",{css:"transfer"===e.variant?iy:ig,children:e.label})}):null]})]})},t7=(0,h.AH)`
791  display: flex;
792  gap: ${p.YK["s.px"]};
793  align-items: stretch;
794  min-height: 40px;
795`,ie=(0,h.AH)`
796  height: ${p.YK["xs.px"]};
797  min-height: 0;
798`,it=(0,h.AH)`
799  height: ${p.YK["m.px"]};
800  min-height: 0;
801`,ii=(0,h.AH)`
802  flex-shrink: 0;
803  width: ${w};
804`,ia=(0,h.AH)`
805  display: flex;
806  flex: 1 0 0;
807  gap: ${p.YK["2xs.px"]};
808  align-items: stretch;
809  min-width: 0;
810`,ir=(0,h.AH)`
811  display: flex;
812  flex-shrink: 0;
813  align-items: stretch;
814  justify-content: center;
815  width: ${p.YK["m.px"]};
816`,il=e=>(0,h.AH)`
817  width: 4px;
818  background-color: ${"transit"===e?"#1971ff":p.yW["border.primary"]};
819`,is=(0,h.AH)`
820  width: 0;
821  border-left: 4px dotted ${p.yW["border.primary"]};
822`,io=(0,h.AH)`
823  display: flex;
824  flex: 1 0 0;
825  flex-direction: column;
826  justify-content: center;
827  min-width: 0;
828`,id=(0,h.AH)`
829  display: flex;
830  flex: 1 0 0;
831  flex-direction: column;
832  gap: ${p.YK["4xs.px"]};
833  justify-content: center;
834  min-width: 0;
835  padding-top: ${p.YK["4xs.px"]};
836  padding-bottom: ${p.YK["2xs.px"]};
837`,ic=(0,h.AH)`
838  display: flex;
839  flex-direction: column;
840  align-items: flex-start;
841  min-width: 0;
842`,ip=(0,h.AH)`
843  font-size: ${p.J.xs};
844  font-weight: ${p.Wy["400"]};
845  line-height: ${p.K_.default};
846  color: ${p.yW["text.primary"]};
847  word-break: break-word;
848`,ih=(0,h.AH)`
849  font-size: ${p.J.xs};
850  font-weight: ${p.Wy["400"]};
851  line-height: ${p.K_.default};
852  color: ${p.yW["text.secondary"]};
853`,im=(0,h.AH)`
854  display: flex;
855  align-items: baseline;
856  color: ${p.yW["text.secondary"]};
857  white-space: nowrap;
858`,iu=(0,h.AH)`
859  font-family: ${h.Il.en.fontFamily};
860  font-size: ${p.J.s};
861  font-weight: ${p.Wy["600"]};
862  line-height: ${p.K_.default};
863`,ix=(0,h.AH)`
864  font-family: ${h.Il.ja.fontFamily};
865  font-size: ${p.J.xs};
866  font-weight: ${p.Wy["600"]};
867  line-height: ${p.K_.default};
868`,ig=(0,h.AH)`
869  font-size: ${p.J.s};
870  font-weight: ${p.Wy["600"]};
871  line-height: ${p.K_.default};
872  color: ${p.yW["text.secondary"]};
873`,iy=(0,h.AH)`
874  font-size: ${p.J.xs};
875  font-weight: ${p.Wy["400"]};
876  line-height: ${p.K_.default};
877  color: ${p.yW["text.secondary"]};
878`,i$={kind:"walk",label:""},iY=e=>e.flatMap(e=>[i$,e]),ik="※時刻は所要時間から計算した目安です。実際の発着時刻はバスの時刻表をご覧ください。",ib=e=>[e.operatorName,e.lineName].filter(e=>null!=e&&e.length>0).join(" ");var iw=i(89669);let iv=e=>null!=e?[{name:e.name,url:e.url}]:[],iA=(e,t,i)=>{switch(e.kind){case"point":return(0,n.Y)(t2,{time:e.time,name:e.name,landmarkTypeId:e.landmarkTypeId,approx:e.approx,pointRole:e.pointRole},t);case"transit":return(0,n.Y)(t9,{variant:"transit",lineLabel:e.lineLabel,note:e.note,durationLabel:e.durationLabel},t);case"transfer":return(0,n.Y)(t9,{variant:"transfer",label:e.label},t);case"duration":return(0,n.Y)(t9,{variant:"duration",label:e.label},t);case"walk":return(0,n.Y)(t9,{variant:"walk",label:e.label},t);case"detailCard":{let{changeTarget:a}=e;return(0,n.Y)(eY,{time:e.time,landmarkTypeId:e.landmarkTypeId,name:e.name,subtitle:e.subtitle,details:e.details,secondaryLabel:e.secondaryLabel,onSecondaryClick:null!=a?()=>i(a):void 0,mapUrl:e.mapUrl},t)}case"emptySpot":return(0,n.Y)(ec,{text:e.text,buttonLabel:e.buttonLabel,onSelect:()=>i(e.target)},t)}},iK=(e,t,i,n)=>({kind:"detailCard",landmarkTypeId:e.landmarkTypeId,name:e.name,details:e.description.length>0?[e.description]:[],secondaryLabel:i,changeTarget:t,mapUrl:null!=e.coord?eq(e.coord,n):void 0}),iH=({courseId:e,mapId:t,state:i,courseInfo:l,courseName:s,hikingCheckpoints:o,parkings:p,beforeSpots:h,descentSpots:m,goalCoord:u,accessToTrailhead:x,access
878FromTrailhead:f,heroImageUrl:g,isInApp:y,onChangeSelection:$,onRecreate:Y})=>{var k,b,w,A,H;let W,T,_,F,I,B,P,{t:S}=(0,r.Bd)(["prePlanBook"]),C=(0,es.gf)(),D=(0,r.dj)(),z=(0,r.Ul)(),J=(0,r.vz)(),L="car"===i.accessMethod,[M,j]=(0,a.useState)(null),[O,R]=(0,a.useState)(!1);(0,a.useEffect)(()=>{var e;e=navigator.userAgent,(0,iw.J_)(e)?window.webkit?.messageHandlers?.callbackHandler?.postMessage?.(JSON.stringify({type:"planResultReached"})):(0,iw.lB)(e)&&window.Android?.onReachPlanResult?.()},[]);let E=L?m:f?.hotSprings??[],N=L?S("prePlanBook:picker.distanceFromGoal"):S("prePlanBook:picker.distanceFromStation"),U=p.find(e=>e.id===i.selectedParkingId)??p[0]??null,q=L&&"shop"===i.beforeChoice?h.find(e=>e.id===i.selectedShopId)??h[0]??null:null,V="onsen"===i.descentChoice?E.find(e=>e.id===i.selectedOnsenId)??E[0]??null:null,[Z,X]=(0,a.useState)(!1),{mutateAsync:G,isPending:Q}=(0,el.n)({mutationFn:({description:i,startAt:n,startTime:a})=>C.plans.createFromModelCourse({modelCourseId:e,mapId:t??0,title:s,description:i,startAt:n,startTime:a,dryRun:!1})}),ee=async()=>{var n,a,r;let l,s,o,d,p;if(null==t||Q||Z||!J())return;let h=(n={accessLines:L&&null!=U?[`・${U.name}`,U.url]:L?[]:null!=x?(l=[x.operatorName,x.lineName].filter(e=>null!=e&&e.length>0).join(" "),s=null!=x.durationMinutes?`(約${x.durationMinutes}分)`:"",o=`${l}${s}`,[`・${x.originName} - ${x.destinationName}`,...o.length>0?[o]:[],...null!=x.note&&x.note.length>0?[`※${x.note}`]:[]]):[],beforeSpots:iv(q),descentSpots:iv(V)},d=e=>e.map(e=>`${e.name}
879${e.url}`).join("\n"),p=[],n.accessLines.length>0&&p.push(`【登山口まで】
880${n.accessLines.join("\n")}`),n.beforeSpots.length>0&&p.push(`【登山前の立ち寄り場所】
881${d(n.beforeSpots)}`),n.descentSpots.length>0&&p.push(`【下山後の立ち寄り場所】
882${d(n.descentSpots)}`),p.join("\n\n")),m=new Date(Date.now()+324e5),u=Math.floor(Date.UTC(m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate()+1)/1e3);try{let{plan:t}=await G({description:h,startAt:u,startTime:i.startTime});X(!0);let n={event:"x_plan_guide_created",access_method:K(i.accessMethod),flow_version:1,item_id:e};((0,c.U)(n),y)?(a=t.id,r=navigator.userAgent,(0,iw.J_)(r)?window.webkit?.messageHandlers?.callbackHandler?.postMessage?.(JSON.stringify({type:"planCreated",planId:a})):(0,iw.lB)(r)&&window.Android?.onCreatePlan?.(a)):D.success(S("prePlanBook:result.createSuccess"))}catch(e){(0,es.NF)(e)?D.error(S("prePlanBook:result.createError"),{description:e.userMessage}):(z.error(e),D.error(S("prePlanBook:result.createError")))}},et=((e,t)=>{if(0===e.length)return null;let i=tk(t),n=e=>tv(tb(i+Math.round(e/60)));return{startTime:n(e[0].offsetSeconds),descentTime:n(e[e.length-1].offsetSeconds)}})(o,i.startTime),ei=null!=et?[{label:S("prePlanBook:result.heroStartLabel"),time:et.startTime},{label:S("prePlanBook:result.heroDescentLabel"),time:et.descentTime}]:[],en=et?.descentTime??i.startTime,ea=o[0],er=o[o.length-1],ec=null!=q?[iK(q,"shop",S("prePlanBook:result.changeShop"))]:h.length>0?[{kind:"emptySpot",text:S("prePlanBook:result.emptyShopText"),buttonLabel:S("prePlanBook:result.emptyShopButton"),target:"shop"}]:[],ep=null!=ea?((e,t,i,n=[],a)=>{let r=tk(i),l=null!=e?Math.ceil(e.distanceMeters/65):null,s=null!=e&&null!=l?[{kind:"detailCard",time:tv(tb(r-l)),landmarkTypeId:e.landmarkTypeId,name:e.name,details:e.description.length>0?[e.description]:[],secondaryLabel:a,changeTarget:"parking",mapUrl:null!=e.coord?eq(e.coord):void 0},{kind:"walk",label:`徒歩${tA(l)}`}]:[];return{title:"登山口まで",caption:"車で移動",entries:[...n.flatMap(e=>[e,i$]),...s,{kind:"point",time:tv(i),name:t.name,landmarkTypeId:t.landmarkTypeId,pointRole:"start"}]}})(U,{name:ea.name,landmarkTypeId:ea.landmarkTypeId},i.startTime,ec,S("prePlanBook:result.changeParking")):null,eh=L?ep:null!=x?(b=x,W=tk(i.startTime),{title:"登山口まで",caption:"バス・電車で移動",entries:[{kind:"point",time:null!=(T=b.durationMinutes)?tv(tb(W-T)):"",approx:!0,name:b.originName,landmarkTypeId:b.originLandmarkTypeId},{kind:"transit",lineLabel:ib(b),note:b.note??void 0,durationLabel:null!=T?tA(T):""},{kind:"point",time:tv(tb(W)),approx:!0,name:b.destinationName,landmarkTypeId:b.destinationLandmarkTypeId}],note:ik}):null,em=(I=tk(i.startTime),B=[],o.forEach((e,t)=>{let i=I+Math.round(e.offsetSeconds/60),n=0===t?"start":t===o.length-1?"goal":void 0;B.push({kind:"point",time:tv(tb(i)),name:e.name,landmarkTypeId:e.landmarkTypeId,...null!=n&&{pointRole:n}});let a=o[t+1];if(null!=a){let t=Math.round((a.offsetSeconds-e.offsetSeconds)/60);t>0&&B.push({kind:"duration",label:tA(t)})}}),{title:v,entries:B}),eu=L?u??void 0:f?.destinationCoord??void 0,ex=null!=V?[iK(V,"onsen",S("prePlanBook:result.changeOnsen"),eu)]:E.length>0?[{kind:"emptySpot",text:S("prePlanBook:result.emptyOnsenText"),buttonLabel:S("prePlanBook:result.emptyOnsenButton"),target:"onsen"}]:[],ef=[eh,em,L?(k=null!=er?{name:er.name,landmarkTypeId:er.landmarkTypeId}:null,P=[],null!=k&&P.push({kind:"point",time:tv(en),name:k.name,landmarkTypeId:k.landmarkTypeId,pointRole:"goal"}),P.push(...iY(ex)),{title:"下山後",caption:"車で移動",entries:P}):null!=f?(w=f,A=en,H=ex,_=tk(A),F=w.durationMinutes,{title:"下山後",caption:"バス・電車で移動",entries:[{kind:"point",time:tv(tb(_)),approx:!0,name:w.originName,landmarkTypeId:w.originLandmarkTypeId},{kind:"transit",lineLabel:ib(w),note:w.note??void 0,durationLabel:null!=F?tA(F):""},{kind:"point",time:null!=F?tv(tb(_+F)):"",approx:!0,name:w.destinationName,landmarkTypeId:w.destinationLandmarkTypeId},...iY(H)],note:ik}):null].filter(e=>null!=e);return(0,n.FD)("div",{css:iW,children:[(0,n.FD)("main",{css:iT,children:[(0,n.Y)(e_,{imageUrl:g,subtitle:s,milestones:ei}),ef.map((e,t)=>{let r=e.title===v;return(0,n.FD)(a.Fragment,{children:[t>0&&(0,n.Y)(eE,{}),(0,n.Y)(eM,{title:e.title,caption:e.caption}),r?(0,n.FD)("div",{css:iF,children:[(0,n.FD)("div",{css:iI,children:[(0,n.FD)("div",{css:iP,children:[(0,n.Y)("span",{css:iS,children:S("prePlanBook:start.reselectLabel")}),(0,n.Y)(d.$nd,{variant:"outline",size:"s",css:ed,prefixIcon:(0,n.Y)(d.R4w,{"aria-hidden":!0}),onClick:()=>R(!0),children:tv(i.startTime)})]}),(0,n.FD)("span",{css:iD,children:[(0,n.Y)(d.kud,{css:iz,"aria-hidden":!0}),(0,n.Y)("span",{css:iJ,children:S("prePlanBook:start.sunriseLabel")}),(0,n.Y)("span",{css:iL,children:tv(l.sunriseTime)})]})]}),(0,n.FD)("div",{css:iB,children:[(0,n.Y)(t9,{variant:"stub"}),e.entries.map((e,t)=>iA(e,t,j)),(0,n.Y)(t9,{variant:"stub"}),null!=e.note&&(0,n.Y)("p",{css:iM,children:e.note})]}),(0,n.Y)("div",{css:iC,children:(0,n.FD)("span",{css:iD,children:[(0,n.Y)(d.kud,{css:iz,"aria-hidden":!0}),(0,n.Y)("span",{css:iJ,children:S("prePlanBook:start.sunsetLabelShort")}),(0,n.Y)("span",{css:iL,children:tv(l.sunsetTime)})]})})]}):(0,n.FD)("div",{css:i_,children:[(0,n.Y)(t9,{variant:"stub"}),e.entries.map((e,t)=>iA(e,t,j)),(0,n.Y)(t9,{variant:"stub"}),null!=e.note&&(0,n.Y)("p",{css:iM,children:e.note})]})]},e.title)}),(0,n.Y)("div",{css:ij,children:(0,n.Y)(d.$nd,{variant:"secondary",size:"m",isFullWidth:!0,css:ed,onClick:Y,children:S("prePlanBook:recreatePlan")})})]}),(0,n.FD)("footer",{css:iO,children:[(0,n.Y)(d.$nd,{variant:"primary",isFullWidth:!0,css:ed,disabled:null==t||Q||Z,onClick:ee,children:S("prePlanBook:result.reflectCta")}),(0,n.Y)("p",{css:iR,children:S("prePlanBook:result.reflectNote")})]}),(0,n.Y)(tl,{open:"parking"===M,title:S("prePlanBook:picker.parkingTitle"),spots:p,selectedId:U?.id??null,distancePrefix:S("prePlanBook:picker.distanceFromStart"),onClose:()=>j(null),onConfirm:e=>$({selectedParkingId:e})}),(0,n.Y)(tl,{open:"shop"===M,title:S("prePlanBook:picker.shopTitle"),spots:h,selectedId:q?.id??null,distancePrefix:S("prePlanBook:picker.distanceFromStart"),onClose:()=>j(null),onConfirm:e=>$({selectedShopId:e,beforeChoice:"shop"})}),(0,n.Y)(tl,{open:"onsen"===M,title:S("prePlanBook:picker.onsenTitle"),spots:E,selectedId:V?.id??null,distancePrefix:N,onClose:()=>j(null),onConfirm:e=>$({selectedOnsenId:e,descentChoice:"onsen"})}),(0,n.Y)(t0,{open:O,timeOptions:l.startTimeOptions,defaultStartTime:l.defaultStartTime,courseTimeMinutes:l.courseTimeMinutes,courseTimeLabel:l.courseTimeLabel,sunsetTime:l.sunsetTime,currentStartTime:i.startTime,onClose:()=>R(!1),onConfirm:e=>$({startTime:e})}),(0,n.Y)(eo.H,{isOpen:Q})]})},iW=(0,h.AH)`
883  display: flex;
884  flex-direction: column;
885  width: 100%;
886  max-width: 600px;
887  height: 100dvh;
888  margin-inline: auto;
889  font-family: ${h.Il.ja.fontFamily};
890  background-color: ${p.yW["background.primary"]};
891`,iT=(0,h.AH)`
892  flex: 1 1 0;
893  min-height: 0;
894  overflow-y: auto;
895  -webkit-overflow-scrolling: touch;
896`,i_=(0,h.AH)`
897  padding: ${p.YK["4xs.px"]} ${p.YK["xs.px"]} ${p.YK["m.px"]};
898`,iF=(0,h.AH)`
899  display: flex;
900  flex-direction: column;
901  gap: ${p.YK["3xs.px"]};
902  padding: 0 ${p.YK["xs.px"]} ${p.YK["xs.px"]};
903`,iI=(0,h.AH)`
904  display: flex;
905  flex-wrap: wrap;
906  gap: ${p.YK["2xs.px"]};
907  align-items: center;
908  justify-content: space-between;
909`,iB=(0,h.AH)`
910  display: flex;
911  flex-direction: column;
912`,iP=(0,h.AH)`
913  display: flex;
914  gap: ${p.YK["3xs.px"]};
915  align-items: center;
916  min-width: 0;
917`,iS=(0,h.AH)`
918  flex-shrink: 0;
919  font-size: ${p.J.xs};
920  font-weight: ${p.Wy["400"]};
921  line-height: ${p.K_.default};
922  color: ${p.yW["text.primary"]};
923`,iC=(0,h.AH)`
924  display: flex;
925  justify-content: flex-end;
926`,iD=(0,h.AH)`
927  display: flex;
928  flex-shrink: 0;
929  gap: ${p.YK["3xs.px"]};
930  align-items: center;
931`,iz=(0,h.AH)`
932  flex-shrink: 0;
933  width: ${p.YK["m.px"]};
934  height: ${p.YK["m.px"]};
935`,iJ=(0,h.AH)`
936  font-size: ${p.J.xs};
937  font-weight: ${p.Wy["400"]};
938  line-height: ${p.K_.default};
939  color: ${p.yW["text.primary"]};
940`,iL=(0,h.AH)`
941  font-family: ${h.Il.en.fontFamily};
942  font-size: ${p.J.m};
943  font-weight: ${p.Wy["600"]};
944  line-height: ${p.K_.default};
945  color: ${p.yW["text.primary"]};
946`,iM=(0,h.AH)`
947  margin: ${p.YK["2xs.px"]} 0 0;
948  font-size: ${p.J.xs};
949  font-weight: ${p.Wy["400"]};
950  line-height: ${p.K_.default};
951  color: ${p.yW["text.secondary"]};
952`,ij=(0,h.AH)`
953  padding: ${p.YK["s.px"]} ${p.YK["m.px"]};
954`,iO=(0,h.AH)`
955  display: flex;
956  flex-direction: column;
957  gap: ${p.YK["3xs.px"]};
958  align-items: center;
959  padding: ${p.YK["xs.px"]} ${p.YK["m.px"]}
960    calc(${p.YK["xs.px"]} + env(safe-area-inset-bottom));
961  background-color: ${p.yW["background.primary"]};
962  box-shadow: 0 0 8px rgb(0, 0, 0, 0.2);
963`,iR=(0,h.AH)`
964  margin: 0;
965  font-size: ${p.J.xs};
966  font-weight: ${p.Wy["400"]};
967  line-height: ${p.K_.default};
968  color: ${p.yW["text.primary"]};
969  text-align: center;
970`,iE=({state:e,timeOptions:t,defaultStartTime:i,courseTimeMinutes:a,courseTimeLabel:l,sunsetTime:s,onSelectStartTime:o})=>{let{t:d}=(0,r.Bd)(["prePlanBook"]);return(0,n.FD)("div",{css:iN,children:[(0,n.Y)(S,{title:d("prePlanBook:start.title"),description:d("prePlanBook:start.description")}),(0,n.Y)(tC,{timeOptions:t,defaultStartTime:i,courseTimeMinutes:a,courseTimeLabel:l,sunsetTime:s,selectedTime:e.startTime,onSelectTime:o})]})},iN=(0,h.AH)`
971  display: flex;
972  flex-direction: column;
973  gap: ${p.YK["s.px"]};
974  align-items: center;
975  width: 100%;
976  /* コンテンツ領域の高さいっぱいに広げ、サマリーを画面下部へ寄せる */
977  min-height: 100%;
978`,iU=({courseId:e,mapId:t,courseInfo:i,hikingCheckpoints:l,parkings:s,beforeSpots:p,descentSpots:h,goalCoord:m,accessToTrailhead:u,accessFromTrailhead:x,heroImageUrl:f,courseName:y,isInApp:$,isTraverse:Y})=>{let{t:k}=(0,r.Bd)(["prePlanBook"]),b=(0,o.useRouter)(),{state:w,update:v,reset:A}=(e=>{let[t,i]=(0,a.useState)(()=>H(e));return{state:t,update:(0,a.useCallback)(e=>{i(t=>({...t,...e}))},[]),reset:(0,a.useCallback)(()=>{i(H(e))},[e])}})(i.defaultStartTime),[W,T]=(0,a.useState)("access");(0,a.useEffect)(()=>{let t={event:"x_plan_guide_step",step:"descent"===W?"after":W,access_method:K(w.accessMethod),flow_version:1,item_id:e};(0,c.U)(t)},[W]);let _=["access","start",..."car"===w.accessMethod?["before"]:[],"descent"];if("result"===W)return(0,n.Y)(iH,{courseId:e,mapId:t,state:w,courseInfo:i,courseName:y,hikingCheckpoints:l,parkings:s,beforeSpots:p,descentSpots:h,goalCoord:m,accessToTrailhead:u,accessFromTrailhead:x,heroImageUrl:f,isInApp:$,onChangeSelection:v,onRecreate:()=>{A(),T("access")}});let F=_.indexOf(W)+1,I="access"===W?4:_.length,B="descent"===W,P="access"===W&&null==w.accessMethod||"before"===W&&null==w.beforeChoice||B&&null==w.descentChoice,S=(0,n.Y)(d.$nd,{variant:"primary",isFullWidth:!0,css:ed,disabled:P,onClick:B?()=>T("result"):()=>{let e=_[_.indexOf(W)+1];null!=e&&T(e)},children:k("prePlanBook:next")});return(0,n.FD)(g,{currentStep:F,totalStep:I,scrollResetKey:W,onBack:()=>{let e=_.indexOf(W);e<=0?b.back():T(_[e-1])},footer:S,children:["access"===W&&(0,n.Y)(J,{state:w,isTraverse:Y,onSelectAccessMethod:e=>{e!==w.accessMethod&&v({accessMethod:e,beforeChoice:"shop",selectedShopId:null,descentChoice:"onsen",selectedOnsenId:null})}}),"start"===W&&(0,n.Y)(iE,{state:w,timeOptions:i.startTimeOptions,defaultStartTime:i.defaultStartTime,courseTimeMinutes:i.courseTimeMinutes,courseTimeLabel:i.courseTimeLabel,sunsetTime:i.sunsetTime,onSelectStartTime:e=>v({startTime:e})}),"before"===W&&(0,n.Y)(N,{state:w,onSelectBefore:e=>v({beforeChoice:e})}),"descent"===W&&(0,n.Y)(Q,{state:w,onSelectDescent:e=>v({descentChoice:e})})]})};var iq=!0;let iV=({courseId:e,mapId:t,courseInfo:i,hikingCheckpoints:o,parkings:d,beforeSpots:c,descentSpots:p,goalCoord:h,accessToTrailhead:m,accessFromTrailhead:u,heroImageUrl:x,courseName:f,isInApp:g,isTraverse:y,error:$})=>{let{t:Y}=(0,r.Bd)(["prePlanBook"]);return null!=$||null==i?(0,n.Y)(l.e,{status:$?.status??500,noindex:!0}):(0,n.FD)(a.Fragment,{children:[(0,n.Y)(s.p,{title:Y("prePlanBook:metaTitle"),noindex:!0}),(0,n.Y)(iU,{courseId:e,mapId:t,courseInfo:i,hikingCheckpoints:o,parkings:d,beforeSpots:c,descentSpots:p,goalCoord:h,accessToTrailhead:m,accessFromTrailhead:u,heroImageUrl:x,courseName:f,isInApp:g,isTraverse:y})]})}},48093:(e,t,i)=>{"use strict";i.d(t,{M:()=>d});var n=i(49111),a=i(95132),r=i(9241),l=i(94780),s=i(69033),o=i(78523);let d=(0,r.R)(function({tag:e="p",css:t,children:i,hashtags:r,...d},p){return(0,n.Y)(e,{ref:p,css:[c,t],...d,children:"string"==typeof i?(0,o.d)(i,r).map((e,t)=>(0,n.Y)(a.Fragment,{children:e.linkable?"hashtag"===e.type?(0,n.Y)("a",{href:`/search/moments?keyword=${encodeURIComponent(e.text)}`,css:l.vE.ridgeLinkTextCss,children:e.text}):(0,n.Y)(s.N,{href:e.text,newTab:!0,css:l.vE.ridgeLinkTextCss,rel:(0,o.a)(e.text)?"noopener":"noopener noreferrer",children:e.text}):e.text},t)):i})}),c=(0,l.AH)`
979  word-break: break-all;
980`},68848:(e,t,i)=>{"use strict";i.d(t,{U:()=>n});let n=e=>{"object"!=typeof e||Array.isArray(e)||(window.dataLayer=window.dataLayer||[],window.dataLayer.push(e))}},72366:(e,t,i)=>{"use strict";i.d(t,{M:()=>n.M});var n=i(48093)},74339:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/model-courses/[id]/plan-guide",function(){return i(24648)}])},78523:(e,t,i)=>{"use strict";i.d(t,{a:()=>n,d:()=>a});let n=e=>/^https:\/\/(\w+\.)?yamap\.(com|co\.jp)/.test(e),a=(e,t)=>{let i,n=[],a=[];if(t&&t.length>0)for(let e of t){let t=e.startsWith("#")?e:`#${e}`;a.push(t)}let r=[],l=RegExp("https?://[\\w\\p{scx=Hiragana}\\p{scx=Katakana}\\p{scx=Han}.\\-/:#?=&;%~+@]+","ug");for(;null!==(i=l.exec(e));)r.push({index:i.index,text:i[0],type:"url",length:i[0].length});for(let t of a){let i,n=RegExp(t.replace(/[.*+?^=!:${}()|[\]/\\]/g,"\\$&"),"g");for(;null!==(i=n.exec(e));)r.push({index:i.index,text:t,type:"hashtag",length:t.length})}r.sort((e,t)=>
980e.index-t.index);let s=[];for(let e=0;e<r.length;e++){let t=r[e],i=r[e+1];(!i||t.index+t.length<=i.index)&&s.push(t)}let o=e,d=0;for(let e of s){if(e.index-d<0)continue;let t=e.text.replace(/[.*+?^=!:${}()|[\]/\\]/g,"\\$&"),[i,a]=o.split(RegExp(`${t}(.*)`,"s"),2);""!==i&&n.push({text:i,linkable:!1}),n.push({text:e.text,linkable:!0,type:e.type}),o=a||"",d=e.index+e.length}return""!==o&&n.push({text:o,linkable:!1}),n}},83527:(e,t,i)=>{"use strict";i.d(t,{H:()=>c});var n=i(49111),a=i(95132),r=i(36296),l=i(28358),s=i(94780),o=i(24494),d=i(74101);let c=({isOpen:e,isFocusLockDisabled:t=!1})=>{let i=(0,a.useRef)(null);return(0,n.Y)(o.Z,{targetId:"yamap-spinner-modal",children:e&&(0,n.Y)(l.O,{contentRef:i,isDisabled:t,children:(0,n.Y)(r.A,{children:(0,n.FD)("div",{css:p,children:[(0,n.Y)("button",{css:h}),(0,n.Y)("div",{ref:i,children:(0,n.Y)(d.y,{size:"l"})})]})})})})},p=(0,s.AH)`
981  position: fixed;
982  top: 0;
983  right: 0;
984  bottom: 0;
985  left: 0;
986  z-index: ${s.fE.modal};
987  display: flex;
988  flex-direction: column;
989  align-items: center;
990  justify-content: center;
991  margin: auto;
992  background: rgb(255 255 255 / 80%);
993`,h=(0,s.AH)`
994  ${s.vE.visuallyHiddenCss};
995`}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=74339)),_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.