1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4256],{14256:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>C});var i=t(42326),s=t(92008),l=t(24903),r=t(65049),n=t(70668),o=t(82641),d=t(64189),m=t(37184),p=t.n(m),c=t(19704),h=t(14006),u=t(97711),_=t(39343),f=t(10338),y=t(91748),b=t(73135),k=t(77924),x=t(55281),v=t.n(x);let g=e=>{let{open:a,onChange:t,stampInfo:s}=e;return(0,i.jsx)(k.A,{className:v().stampModal,open:a,onOpenChange:t,children:(0,i.jsxs)("div",{className:v().stampModal__content,children:[s.title&&(0,i.jsx)("h2",{className:v().stampModal__title,dangerouslySetInnerHTML:{__html:s.title}}),(0,i.jsx)(b.default,{className:v().stampModal__image,src:s.image,width:0,height:0,sizes:"100vw",alt:s.image})]})})};var j=t(41548),w=t(68978),N=t(56951),A=t(15803),M=t(79611),z=t(23331),L=t(59940),S=t(91042);let P=(0,d.default)(()=>Promise.all([t.e(352),t.e(1139),t.e(8543),t.e(2629),t.e(348)]).then(t.bind(t,47967)),{loadableGenerated:{webpack:()=>[47967]},ssr:!1}),R=(0,d.default)(()=>Promise.all([t.e(352),t.e(8543),t.e(2629),t.e(635)]).then(t.bind(t,40635)),{loadableGenerated:{webpack:()=>[40635]},ssr:!1}),H=(0,d.default)(()=>Promise.all([t.e(352),t.e(8543),t.e(2629),t.e(9859)]).then(t.bind(t,89859)),{loadableGenerated:{webpack:()=>[89859]},ssr:!1}),I=e=>{let{checked:a,total:t}=e,l=2*Math.PI*41,r=t>0?Math.min(a/t,1):0;return(0,i.jsxs)("div",{className:"relative shrink-0",style:{width:90,height:90},children:[(0,i.jsxs)("svg",{width:90,height:90,className:"-rotate-90",children:[(0,i.jsx)("circle",{cx:45,cy:45,r:41,fill:"none",stroke:"#e6e6e6",strokeWidth:8}),(0,i.jsx)("circle",{cx:45,cy:45,r:41,fill:"none",stroke:"#33bbff",strokeWidth:8,strokeLinecap:"round",strokeDasharray:l,strokeDashoffset:l*(1-r)})]}),(0,i.jsxs)("div",{className:(0,s.A)("absolute inset-0 flex items-center justify-center gap-0.5 text-mine-shaft",p().className),children:[(0,i.jsx)("span",{className:"text-[22px] leading-none",children:a}),(0,i.jsx)("span",{className:"text-xs leading-none",children:"/"}),(0,i.jsx)("span",{className:"text-sm leading-none",children:t})]})]})},C=e=>{let{data:a,isGrandRally:t,rallyId:d}=e,m=(0,c.c3)(),p=(0,L.A)("(max-width: 1024px)"),[b,k]=(0,h.useState)("stamp"),[x,v]=(0,h.useState)(!1),[C,E]=(0,h.useState)(!1),[T,B]=(0,h.useState)({title:"",image:""}),[Y,O]=(0,h.useState)(0),[q,D]=(0,h.useState)({page:1,per:20}),[F,G]=(0,h.useState)([]),Z=async e=>{try{let{data:a,meta:t}=await (0,w.eq)(d,{page:e?1:q.page,per:q.per});D({...q,page:null==t?void 0:t.next,next:null==t?void 0:t.next}),G((null==t?void 0:t.page)===1?a:[...F,...a])}catch(e){(0,N.I)(e,A.vl.ERROR)}};(0,h.useEffect)(()=>{d&&!t&&Z(!0)},[d,t]);let W=(e,a)=>{var t;return(null==e||null==(t=e.current_user_marks)?void 0:t.is_checked_in)?(null==e?void 0:e.after_medal)||(null==e?void 0:e.after_medal_url)?(0,j.mu)((null==e?void 0:e.after_medal)||(null==e?void 0:e.after_medal_url)):a?_.z.STAMP_MINRALLY:null:(null==e?void 0:e.before_medal)||(null==e?void 0:e.before_medal_url)?(0,j.mu)((null==e?void 0:e.before_medal)||(null==e?void 0:e.before_medal_url)):a?null===_.z||void 0===_.z?void 0:_.z.STAMP_BEFORE_MINRALLY:null},J=e=>{var a;return(null==e||null==(a=e.current_user_marks)?void 0:a.is_checked_in)?(0,j.mu)((null==e?void 0:e.after_stamp)||(null==e?void 0:e.after_stamp_url))||_.z.STAMP_MINRALLY:(0,j.mu)((null==e?void 0:e.before_stamp)||(null==e?void 0:e.before_stamp_url))||(null===_.z||void 0===_.z?void 0:_.z.STAMP_BEFORE_MINRALLY)},U=(0,h.useMemo)(()=>{let e=t?(0,l.A)(a,"subrallies",[]):[{checkpoints:F}],i=[],s={},n=0;return(0,r.A)(e,e=>{(0,r.A)(e.checkpoints,e=>{let a=W(e);i.push({image:a||J(e),title:e.title}),s[e.id]=n,n++})}),{photos:i,photoIndexById:s}},[F]),Q=(0,h.useMemo)(()=>t?(0,l.A)(a,"subrallies",[]).flatMap(e=>e.checkpoints||[]):F,[t,a,F]),K=(0,h.useMemo)(()=>Q.filter(e=>{var a,t;return(null==e||null==(a=e.spot)?void 0:a.lat)&&(null==e||null==(t=e.spot)?void 0:t.lng)}).map(e=>{var t,i,s;return{position:{lat:Number(null==(t=e.spot)?void 0:t.lat),lng:Number(null==(i=e.spot)?void 0:i.lng)},navigateTo:"/check-points/".concat(e.slug||e.id,"?rally_id=").concat((null==a?void 0:a.slug)||(null==a?void 0:a.id)),title:e.title||"",range:e.allow_checkin_range||0,isCheckedIn:!!(null==e||null==(s=e.current_user_marks)?void 0:s.is_checked_in)}}),[Q,a]),V=(0,h.useMemo)(()=>{var e,i,s,l,r,n;return t?(null==a?void 0:a.area_level)||((null==a||null==(i=a.subrallies)?void 0:i.some(e=>{var a;return null==(a=e.checkpoints)?void 0:a.some(e=>"prefecture"===e.area_level)}))?"prefecture":null==a||null==(n=a.subrallies)||null==(r=n[0])||null==(l=r.checkpoints)||null==(s=l[0])?void 0:s.area_level):(null==a?void 0:a.area_level)||((null==Q?void 0:Q.some(e=>"prefecture"===e.area_level))?"prefecture":null==Q||null==(e=Q[0])?void 0:e.area_level)},[t,a,Q]),X=(0,h.useMemo)(()=>K.map(e=>e.position).filter(e=>e.lat&&e.lng),[K]),$=(0,h.useMemo)(()=>Q.map(e=>{var a;return null==e||null==(a=e.spot)?void 0:a.title}).filter(e=>
1!!e),[Q]),ee=(0,j.jD)('{"sandai-sanmeien":"https://ihistory.site/pointmap/maps/37rally_meien3/embed?longitude=137.4003489&latitude=35.5723557&zoom=5&noHeader=1","sandai-nihonsankei":"https://ihistory.site/pointmap/maps/37rally_nihonsankei3/embed?longitude=137.1417498&latitude=36.03263104&zoom=4.6&noHeader=1","sandai-dome":"https://ihistory.site/pointmap/maps/37rally_dome3/embed?longitude=135.4762285&latitude=34.6694392&zoom=4.5&noHeader=1","sandai-meisen":"https://ihistory.site/pointmap/maps/37rally_meisen3/embed?longitude=137.2393178&latitude=35.80707355&zoom=5.7&noHeader=1","sandai-matsuri":"https://ihistory.site/pointmap/maps/37rally_matsuri3/embed?longitude=137.5971091&latitude=35.44397841&zoom=5.5&noHeader=1","sandai-airport":"https://ihistory.site/pointmap/maps/37rally_airport3/embed?longitude=137.7864337&latitude=35.28490916&zoom=5.5&noHeader=1","sandai-kassen":"https://ihistory.site/pointmap/maps/37rally_kassen3/embed?longitude=134.8783631&latitude=34.85837292&zoom=4.7&noHeader=1","sandai-bakufu":"https://ihistory.site/pointmap/maps/37rally_bakufu3/embed?longitude=138.0530313&latitude=35.57948184&zoom=5.3&noHeader=1","sandai-themapark":"https://ihistory.site/pointmap/maps/37rally_themepark3/embed?longitude=135.43234&latitude=34.66585326&zoom=4.3&noHeader=1","sandai-asaichi":"https://ihistory.site/pointmap/maps/37rally_asaichi3/embed?longitude=136.070186&latitude=35.25907725&zoom=4&noHeader=1","sandai-ajisai":"https://ihistory.site/pointmap/maps/37rally_ajisai3/embed?longitude=137.8228006&latitude=35.15364552&zoom=5.8&noHeader=1","sandai-illumination":"https://ihistory.site/pointmap/maps/37rally_illumination3/embed?longitude=139.5200651&latitude=36.31429439&zoom=3.1&noHeader=1","sandai-kudarimiya":"https://ihistory.site/pointmap/maps/37rally_kudarimiya3/embed?longitude=135.4126825&latitude=34.64291656&zoom=4.5&noHeader=1","sandai-ekimei":"https://ihistory.site/pointmap/maps/37rally_long-ekimei3/embed?longitude=136.2217186&latitude=35.50644278&zoom=5.4&noHeader=1","sandai-christmas":"https://ihistory.site/pointmap/maps/37rally_christmas-market3/embed?longitude=140.9701698&latitude=39.06023946&zoom=3.7&noHeader=1","yui-rail":"https://ihistory.site/pointmap/maps/37rally_yui-rail/embed?longitude=127.69837506441797&latitude=26.22272889331786&zoom=11&noHeader=1"}'),ea=ee?(0,l.A)(ee,d):null,et=(0,j.jD)('{"52959b99-e1ea-4912-a9aa-ab0e9edfd3fc":"https://ihistory.site/pointmap/maps/37rally_yui-rail?marker=9116","0687ae55-c906-44db-8905-dbaba88c29a1":"https://ihistory.site/pointmap/maps/37rally_yui-rail?marker=9169","a6063e35-569a-4c52-94f0-15b77d654578":"https://ihistory.site/pointmap/maps/37rally_yui-rail?marker=9170","8c4af9a2-64f7-4131-96a8-368af0da2d9c":"https://ihistory.site/pointmap/maps/37rally_yui-rail?marker=9171","7cc4202b-89e8-409e-84de-9a18d3099680":"https://ihistory.site/pointmap/maps/37rally_yui-rail?marker=9172","3ae20898-3c8d-4193-bcfd-6edb3bf635ff":"https://ihistory.site/pointmap/maps/37rally_yui-rail?marker=9173","5ec0a7be-1e54-4a71-90e2-17659dc99d65":"https://ihistory.site/pointmap/maps/37rally_yui-rail?marker=9174","c5043580-0f6e-4377-a5a0-07bdd13d0a70":"https://ihistory.site/pointmap/maps/37rally_yui-rail?marker=9175","052cd362-a782-46d3-b5a7-f9d29a29185d":"https://ihistory.site/pointmap/maps/37rally_yui-rail?marker=9176","8009e484-e10e-4865-b490-438234a6fecc":"https://ihistory.site/pointmap/maps/37rally_yui-rail?marker=9177","a6c42801-d9af-4616-84cd-238277404826":"https://ihistory.site/pointmap/maps/37rally_yui-rail?marker=9178","27734b34-738b-4d9b-b435-acd9da9d93d8":"https://ihistory.site/pointmap/maps/37rally_yui-rail?marker=9179","6b7d341a-3288-4c64-b3a6-06adb5632f28":"https://ihistory.site/pointmap/maps/37rally_yui-rail?marker=9180","99807901-59f6-4769-a4b7-ebffe9418c4a":"https://ihistory.site/pointmap/maps/37rally_yui-rail?marker=9181","8acca20f-f647-4d17-8c90-86d898015ac6":"https://ihistory.site/pointmap/maps/37rally_yui-rail?marker=9182","da91c85b-6e3b-47a9-9d45-315105218b0b":"https://ihistory.site/pointmap/maps/37rally_yui-rail?marker=9183","b6278eb3-ec25-4c46-8d5e-9834215aa4f6":"https://ihistory.site/pointmap/maps/37rally_yui-rail?marker=9184","60978b02-f94c-4965-99d8-0118181cb3de":"https://ihistory.site/pointmap/maps/37rally_yui-rail?marker=9185","10ad97c4-5297-45dc-977f-88fa3eba7a3c":"https://ihistory.site/pointmap/maps/37rally_yui-rail?marker=9186","669ad48e-cfb6-4128-9bee-c979b3d7680d":"https://ihistory.site/pointmap/maps/37rally_meien3?marker=14945","dbf750f7-29e3-46f9-a5a7-bd5f22a6ebf1":"https://ihistory.site/pointmap/maps/37rally_meien3?marker=14965","ec7b8e47-c600-4eb8-a920-b8db0d027468":"https://ihistory.site/pointmap/maps/37rally_meien3?marker=14970","fa691932-cb46-4395-aa85-a69842399e79":"https://ihistory.site/pointmap/maps/37rally_nihonsanke
1i3?marker=14975","13db080a-6da0-4203-97be-c9d2a07eca0f":"https://ihistory.site/pointmap/maps/37rally_nihonsankei3?marker=14976","e10a9069-cf3f-4604-a57e-8ed3373f6687":"https://ihistory.site/pointmap/maps/37rally_nihonsankei3?marker=14977","2a10dc95-15fb-4cd5-855c-215f22f4d548":"https://ihistory.site/pointmap/maps/37rally_dome3?marker=14980","21ef5eb5-da9d-40c7-994c-f5a042dea798":"https://ihistory.site/pointmap/maps/37rally_dome3?marker=14986","7b9d532f-7f97-4033-b581-5091e58d539c":"https://ihistory.site/pointmap/maps/37rally_dome3?marker=14988","5f0e516d-7ec9-481c-b2c6-02119c0086b6":"https://ihistory.site/pointmap/maps/37rally_meisen3?marker=15089","38daaf0b-bfa6-4e68-a177-cef22fa1db1b":"https://ihistory.site/pointmap/maps/37rally_meisen3?marker=15090","69f5cef5-2b88-4f5f-9b7e-0d8da8eb7d37":"https://ihistory.site/pointmap/maps/37rally_meisen3?marker=15091","c371f84f-b065-4dc4-aaf9-ccc0891c3abc":"https://ihistory.site/pointmap/maps/37rally_matsuri3?marker=15092","e318689a-1bd8-450c-a84c-987c0be45549":"https://ihistory.site/pointmap/maps/37rally_matsuri3?marker=15093","be18fc02-cd2c-43f2-bf10-e43f93353b2e":"https://ihistory.site/pointmap/maps/37rally_matsuri3?marker=15094","9ddee873-038e-4867-993c-e2045398964a":"https://ihistory.site/pointmap/maps/37rally_airport3?marker=15095","e575ba12-2f34-431e-8808-6a053f81c7b0":"https://ihistory.site/pointmap/maps/37rally_airport3?marker=15096","8e27925a-e8eb-4681-b0d4-51fe412ffd46":"https://ihistory.site/pointmap/maps/37rally_airport3?marker=15097","ea05d4b3-20f3-4b9c-8b9c-9ae365be4b87":"https://ihistory.site/pointmap/maps/37rally_kassen3?marker=15098","d5dedd3a-0990-420a-a8c1-ea0c2df54312":"https://ihistory.site/pointmap/maps/37rally_kassen3?marker=15099","cecf13f8-a9c1-4fde-978e-4aeea92de539":"https://ihistory.site/pointmap/maps/37rally_kassen3?marker=15100","edf787d7-ac32-4efd-8413-c5301c8e21d0":"https://ihistory.site/pointmap/maps/37rally_bakufu3?marker=15101","eddf0db4-17c5-466a-8693-d8842b2b4061":"https://ihistory.site/pointmap/maps/37rally_bakufu3?marker=15102","28de3cad-fb77-4636-99fb-04c5a75c7954":"https://ihistory.site/pointmap/maps/37rally_bakufu3?marker=15103","2d9e9c2d-f7ab-4c90-96df-2ce87495a22b":"https://ihistory.site/pointmap/maps/37rally_themepark3?marker=15104","82e8aee4-e16e-4921-bd4d-5ffab56fb956":"https://ihistory.site/pointmap/maps/37rally_themepark3?marker=15105","491de1d9-f2ff-4d11-bdb6-cc7ed6223679":"https://ihistory.site/pointmap/maps/37rally_themepark3?marker=15106","0e521e52-d996-48ca-9007-798b63ea72af":"https://ihistory.site/pointmap/maps/37rally_asaichi3?marker=15107","449cd54d-18c0-47b4-a891-36d63339bf28":"https://ihistory.site/pointmap/maps/37rally_asaichi3?marker=15108","721acd3f-b775-4d06-ba17-701ff11fec67":"https://ihistory.site/pointmap/maps/37rally_asaichi3?marker=15109","e52acd38-4d6a-454e-808a-02f553a5e611":"https://ihistory.site/pointmap/maps/37rally_ajisai3?marker=15110","54c98b99-8be0-4485-aef0-25ec744c1459":"https://ihistory.site/pointmap/maps/37rally_ajisai3?marker=15111","b1528e78-7a5b-48c2-a765-071d5bcdd6f6":"https://ihistory.site/pointmap/maps/37rally_ajisai3?marker=15112","15508413-2e28-4705-9deb-8c5dc39f46fa":"https://ihistory.site/pointmap/maps/37rally_illumination3?marker=15113","be4cec15-d8c0-4f3f-80a7-36f6b6200f65":"https://ihistory.site/pointmap/maps/37rally_illumination3?marker=15114","8e14387e-c856-42e0-be5d-b1b1e41586a5":"https://ihistory.site/pointmap/maps/37rally_illumination3?marker=15115","96581058-2f00-46bc-a731-092d5058a94e":"https://ihistory.site/pointmap/maps/37rally_kudarimiya3?marker=15116","faa63b83-8359-40c6-8b14-340e969f849f":"https://ihistory.site/pointmap/maps/37rally_kudarimiya3?marker=15117","b0fbe8e1-ff17-4090-989e-89370e9a5ecb":"https://ihistory.site/pointmap/maps/37rally_kudarimiya3?marker=15118","5474c87d-6bc0-408b-bb99-fb7e997c15e5":"https://ihistory.site/pointmap/maps/37rally_long-ekimei3?marker=15120","6a5a8e29-f732-47d3-9b12-d32ad00a8271":"https://ihistory.site/pointmap/maps/37rally_long-ekimei3?marker=15121","2b73dc3c-f48f-42ae-8c1c-90f25149aeab":"https://ihistory.site/pointmap/maps/37rally_long-ekimei3?marker=15122","75dd21bf-11f1-47ce-bb09-8cb908a3b85a":"https://ihistory.site/pointmap/maps/37rally_christmas-market3?marker=15123","3cd04bd4-d5af-4666-8183-d01bfe797295":"https://ihistory.site/pointmap/maps/37rally_christmas-market3?marker=15124","c5752685-460e-4b7d-b713-8a5b282b1ded":"https://ihistory.site/pointmap/maps/37rally_christmas-market3?marker=15125"}'),ei=(e,a,t)=>{let i=et?(0,l.A)(et,e):null;return i||"https://www.google.com/maps/search/?api=1&query=".concat(a,",").concat(t)},es=(e,t)=>{var l,r,n,o,d,p,c;let h=t?"/check-points/".concat((null==e?void 0:e.slug)||(null==e?void 0:e.id),"?rally_id=").concat((null==t?void 0:t.slug)||(null==t?void 0:t.id)):"/check-points/".concat((null==e?void 0:e.slug)||(null==e?void 0:e.id),"?rally_id=").concat((null==a?void 0:a.slug)||(null==a?void 0:a.id)),y=null==e||null==(l=e.current_user_marks)?void 0:l.is_checked_in,b=J(e),k=null==e||null==(r=e.point_rewards)?void 0:r.point;return(0,i.jsxs)("div",{className:(0,s.A)("flex items-center gap-3 p-[10px]",y?"bg-light-blue":"bg-white"),children:[(0,i.jsx)(u.default,{src:b,width:60,height:60,alt:_.z.STAMP_MINRALLY,className:"shrink-0 rounded-full",onClick:()=>{O(U.photoIndexById[null==e?void 0:e.id]),E(!0)},fallbackSrc:b}),(0,i.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,i.jsx)(f.N_,{href:h,children:(0,i.jsx)("p",{className:"line-clamp-2 text-sm leading-[1.5] font-bold text-mine-shaft",children:null==e?void 0:e.title})}),(0,i.jsxs)("div",{className:"mt-1.5 flex items-center gap-2",children:[(0,i.jsx)("a",{href:ei(null==e?void 0:e.id,null==e||null==(n=e.spot)?void 0:n.lat,null==e||null==(o=e.spot)?void 0:o.lng),target:"_blank",rel:"noopener noreferrer",className:"shrink-0 rounded-full border border-mercury bg-white px-2 py-1 text-[10px] leading-none text-mine-shaft",children:"MAP >"}),y&&(null==e||null==(d=e.current_user_marks)?void 0:d.last_checked_in_at)&&(0,i.jsxs)("div",{className:"flex min-w-0 items-center gap-1 text-xs leading-none text-gray",children:[(0,i.jsx)(S.A,{icon:"check_in_done",size:12,color:"#929292",className:"shrink-0"}),(0,i.jsxs)("span",{className:"truncate",children:[m("time",{count:String((null==e||null==(p=e.current_user_marks)?void 0:p.number_of_checked_ins)||0)})," ",(0,j.aM)(null==e||null==(c=e.current_user_marks)?void 0:c.last_checked_in_at,"yyyy/M/d H:mm")]})]}),(0,i.jsxs)("div",{className:"ml-auto flex shrink-0 items-center gap-1.5",children:[(null==e?void 0:e.allow_checkin_type)==="gps_and_qrcode"&&(0,i.jsx)(S.A,{icon:"qr",color:"#999999",size:14}),!!k&&(0,i.jsxs)("span",{className:"text-xs font-medium text-gray",children:[k,"P"]})]})]})]})]},null==e?void 0:e.id)},el=e=>{var a,l,r;let d=(null==e||null==(a=e.total_info)?void 0:a.number_of_checkpoints)||(0,n.A)(null==e?void 0:e.checkpoints),p=(null==e||null==(l=e.current_user_marks)?void 0:l.number_of_checkpoints_been_checked)||0,c=null==e||null==(r=e.current_user_marks)?void 0:r.is_finished,h=(c?(0,j.mu)(e.after_medal||e.after_medal_url):(0,j.mu)(e.before_medal||e.before_medal_url))||"",f=t?null==e?void 0:e.title:m("stamp_acquisition_status");return(0,i.jsxs)("div",{className:"border-b border-mercury p-[16px] last:border-b-0",children:[t&&(0,i.jsx)("p",{className:"mb-3 text-center text-base font-bold text-mine-shaft",children:null==e?void 0:e.title}),(0,i.jsxs)("div",{className:"flex gap-4",children:[(0,i.jsxs)("div",{className:"flex flex-1 items-center justify-center gap-3 rounded-[10px] bg-white py-[17px]",children:[(0,i.jsx)("p",{className:"w-[62px] text-center text-sm leading-[1.3] font-bold tracking-wide text-mine-shaft",children:m("stamp_acquisition_status")}),(0,i.jsx)(I,{checked:p,total:d})]}),(0,i.jsx)("button",{type:"button",className:"flex w-[120px] shrink-0 items-center justify-center rounded-[10px] border border-alabaste bg-white",onClick:()=>
1{B({title:f,image:h||(c?_.z.STAMP_RALLY:_.z.STAMP_BEFORE_RALLY)}),v(!0)},children:(0,i.jsx)(u.default,{fallbackSrc:c?_.z.STAMP_RALLY:_.z.STAMP_BEFORE_RALLY,src:h,width:90,height:90,alt:_.z.STAMP_RALLY,className:(0,s.A)("rounded-full")})})]}),(0,i.jsx)("div",{className:"mt-4 flex flex-col divide-y divide-mercury -mx-4",children:(0,o.A)(null==e?void 0:e.checkpoints,a=>es(a,e))})]},null==e?void 0:e.id)};return(0,i.jsxs)("div",{children:[p&&(0,i.jsxs)("div",{className:"mx-4 mt-4 flex h-10 items-center rounded-full border border-silver-second bg-white p-[5px]",children:[(0,i.jsx)("button",{type:"button",onClick:()=>k("stamp"),className:(0,s.A)("flex-1 rounded-full text-[13px] font-bold transition-colors h-[30px]","stamp"===b?"bg-primary text-white":"text-gray"),children:m("stamp")}),(0,i.jsx)("button",{type:"button",onClick:()=>k("map"),className:(0,s.A)("flex-1 rounded-full text-[13px] font-bold transition-colors h-[30px]","map"===b?"bg-primary text-white":"text-gray"),children:"MAP"})]}),p&&"map"===b?(0,i.jsx)("div",{className:"py-4",children:ea?(0,i.jsx)("div",{style:{position:"relative",cursor:"pointer"},onClick:()=>window.open(ea,"_blank","noopener,noreferrer"),children:(0,i.jsx)("iframe",{src:ea,height:420,width:"100%"})}):"city"===V&&X.length>0?(0,i.jsx)(H,{markers:K,height:420,showPrefectureBoundaries:!0,highlightLocations:X,highlightNames:$,hideMarkers:!0,showRefreshButton:!0,showZoomControl:!0}):"prefecture"===V&&X.length>0?(0,i.jsx)(R,{markers:K,height:420,showPrefectureBoundaries:!0,highlightLocations:X,hideMarkers:!0,showRefreshButton:!0,showZoomControl:!0}):(0,i.jsx)(P,{height:420,markers:K,showRefreshButton:!0,showZoomControl:!0})}):(()=>{var e,s;return t?(0,o.A)((0,l.A)(a,"subrallies",[]),e=>el(e)):(0,i.jsx)(z.A,{scrollableTarget:"undefined"!=typeof document?null==(s=document)||null==(e=s.getElementById("root-container"))?void 0:e.firstChild:null,dataLength:(0,n.A)(F),next:Z,hasMore:!!(null==q?void 0:q.next),loader:(0,i.jsx)(M.A,{count:5}),children:el({...a,checkpoints:F})})})(),(null==a?void 0:a.ad_image)&&((null==a?void 0:a.ad_url)?(0,i.jsx)(f.N_,{href:a.ad_url,target:"_blank",children:(0,i.jsx)("img",{className:"w-full h-auto cursor-pointer px-2.5 pb-[66px]",src:(0,j.mu)((null==a?void 0:a.ad_image)||(null==a?void 0:a.ad_image_url)),alt:a.ad_alt_text})}):(0,i.jsx)("img",{className:"w-full h-auto cursor-pointer px-2.5 pb-[66px]",src:(0,j.mu)((null==a?void 0:a.ad_image)||(null==a?void 0:a.ad_image_url)),alt:a.ad_alt_text})),(0,i.jsx)(g,{open:x,onChange:v,stampInfo:T}),(0,i.jsx)(y.A,{open:C,onChange:E,photos:null==U?void 0:U.photos,imageIndex:Y,setImageIndex:O})]})}},37184:e=>{e.exports={style:{fontFamily:"'Jua', 'Jua Fallback'",fontWeight:400,fontStyle:"normal"},className:"__className_e18df1"}},55281:e=>{e.exports={stampModal:"stamp-modal_stampModal__2ePcu",stampModal__content:"stamp-modal_stampModal__content__G7sUZ",stampModal__title:"stamp-modal_stampModal__title__OSa3Q",stampModal__image:"stamp-modal_stampModal__image__oSGPf"}},59940:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});var i=t(14006),s=t(14810);let l=function(e,a){var t=(0,i.useState)(void 0!==a?a:!!s.Bd&&window.matchMedia(e).matches),l=t[0],r=t[1];return(0,i.useEffect)(function(){var a=!0,t=window.matchMedia(e),i=function(){a&&r(!!t.matches)};return t.addEventListener("change",i),r(t.matches),function(){a=!1,t.removeEventListener("change",i)}},[e]),l}},79611:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});var i=t(42326);t(11323),t(14006);var s=t(13174);let l=e=>{let{...a}=e;return(0,i.jsx)(s.A,{...a})}},91748:(e,a,t)=>{"use strict";t.d(a,{A:()=>d});var i=t(42326),s=t(92008),l=t(70668),r=t(73135),n=t(91042),o=t(77924);let d=e=>{let{open:a,onChange:t,photos:d,imageIndex:m,setImageIndex:p}=e,c=d[m];return c?(0,i.jsx)(o.A,{className:"w-full min-w-[min(var(--breakpoint-app),90vw)]",open:a,onOpenChange:t,children:(0,i.jsxs)("div",{className:"flex items-center gap-0.75",children:[(0,i.jsx)("span",{className:(0,s.A)("cursor-pointer",{"pointer-events-none opacity-50":0===m}),onClick:()=>m>0&&p(m-1),children:(0,i.jsx)(n.A,{icon:"arrow_left",size:18,color:"#333"})}),(0,i.jsxs)("div",{className:"flex flex-1 flex-col items-center p-3",children:[c.title&&(0,i.jsx)("h2",{className:"mb-6 text-center text-base font-bold leading-6 tracking-[0.03em] text-mine-shaft",dangerouslySetInnerHTML:{__html:c.title}}),(0,i.jsx)(r.default,{className:"h-full min-h-50 w-full min-w-50 object-contain object-center",src:c.image,width:0,height:0,sizes:"100vw",alt:c.image})]}),(0,i.jsx)("span",{className:(0,s.A)("cursor-pointer",{"pointer-events-none opacity-50":m===(0,l.A)(d)-1}),onClick:()=>m<(0,l.A)(d)-1&&p(m+1),children:(0,i.jsx)(n.A,{className:"rotate-180",size:18,color:"#333",icon:"arrow_left"})})]})}):null}},97711:(e,a,t)=>{"use strict";t.d(a,{default:()=>r});var i=t(42326),s=t(73135),l=t(14006);let r=e=>{let{src:a,fallbackSrc:t,alt:r,...n}=e,[o,d]=(0,l.useState)(a||t),[m,p]=(0,l.useState)(0),c=()=>{m<5?(p(m+1),d("".concat(a,"?reload=").concat(Date.now()))):d(t)};return(0,i.jsx)(s.default,{...n,src:o,alt:r,onError:()=>{c()},placeholder:"blur",blurDataURL:t})}}}]);
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.