1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4916],{17267:(e,t,a)=>{a.d(t,{t:()=>n});var r=a(95155);a(12115);let n=e=>{var t;let{items:a,selectedValue:n,onClick:l}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"h-14 p-1 flex flex-row bg-white-main border border-slate-100 rounded-md shadow-[0_4px_12px_rgba(0,0,0,0.08)]",children:a.map(e=>(0,r.jsx)("button",{className:"flex-1 px-4 py-2 text-center transition-colors duration-200 rounded-sm @container sm:text-xs @container md:text-sm @container lg:text-sm ".concat(n===e.value?"bg-gradient-to-b from-main/50 to-main text-white-main":"text-gray-400 hover:text-gray-600"),onClick:()=>l(e.value),children:e.label},e.value))}),(null==(t=a.find(e=>e.value===n))?void 0:t.content)||(0,r.jsx)("div",{})]})}},23686:(e,t,a)=>{a.d(t,{Ag:()=>g});var r=a(95155),n=a(12115),l=a(7143);a(12094);var s=a(71884),o=a(54764),i=a(99159);a(37632),a(97828);var c=a(15936),d=a(79059),u=a(61400),m=a(34485),x=a(11514),p=a(53455);let g=()=>{var e,t,a;let{focusedLocation:g}=(0,m.H)(),{customTradeArea:h}=(0,u.D)(),{analysisType:f}=(0,d.H)(),{year:y,timeRange:v,dayType:w,quarter:b}=(0,s.U6)(),{type:j,value:N}=(0,c.C)(),S=(0,n.useMemo)(()=>(0,o.tS)(y,b),[y,b]),_=(0,n.useMemo)(()=>(0,o.mq)(y,b),[y,b]),{data:k,isLoading:A}=((e,t,a,r,n,l,s,o)=>{var i,c;let d=n.map(e=>{let[t,a]=e;return"".concat(a,",").concat(t)}).join("|"),{fetchData:u}=(0,x.Gs)(),m=["asahiru-polygon-layer",a,r,e,t,l,s,o,d].map(String),g=async()=>{let e=new URLSearchParams({latitude:a.toString(),longitude:r.toString(),radius:t?t.toString():"500",start_date:l?l.toString():"2024-01-01",time_range:o||"9-12"});return u("".concat("https://api-g2.gleasin.jp/api","/asahiru/mesh?").concat(e.toString()))},h=async()=>{let n=new URLSearchParams({latitude:a.toString(),longitude:r.toString(),mode:e,minutes:t?t.toString():"5",start_date:l?l.toString():"2024-01-01",time_range:o||"9-12"});return u("".concat("https://api-g2.gleasin.jp/api","/asahiru/mesh_by_polygon?").concat(n.toString()))},f=async()=>{let e=new URLSearchParams({coordinates:n.map(e=>{let[t,a]=e;return"".concat(a,",").concat(t)}).join("|"),start_date:l?l.toString():"2024-01-01",end_date:s?s.toString():"2025-01-01",time_range:o||"9-12"});return u("".concat("https://api-g2.gleasin.jp/api","/asahiru/mesh_by_drawn_polygon?").concat(e.toString()))},{data:y,refetch:v,isLoading:w,isFetching:b}=(0,p.I)({queryKey:m,queryFn:async()=>{switch(e){case"circle":return await g();case"walk":case"drive":case"bike":return await h();case"custom":return await f()}},enabled:0!==a&&0!==r});return{data:null!=(c=null==y||null==(i=y.data)?void 0:i.asahiru_mesh_summary)?c:[],isLoading:w,isFetching:b,refetch:v}})(j,N,null!=(t=null==g?void 0:g.lat)?t:0,null!=(a=null==g?void 0:g.lng)?a:0,null!=h?h:[],S,_,v),P=null==(e=l.oL.find(e=>e.value===v))?void 0:e.label;return!A&&g&&("custom"!==j||h)&&"gps"===f?(0,r.jsx)(i.ot,{data:k,year:y,timeRangeLabel:P||"åå(9æ~12æ)",dayType:w,startDate:S,endDate:_}):(0,r.jsx)(r.Fragment,{})}},30640:(e,t,a)=>{a.d(t,{i:()=>l});var r=a(95155),n=a(37911);let l=()=>(0,r.jsx)(n.EW,{position:n.HF.BOTTOM_RIGHT,children:(0,r.jsx)("div",{style:{paddingRight:"6px",paddingLeft:"6px",backgroundColor:"rgb(245, 245, 245)",boxSizing:"border-box",fontFamily:"Roboto, Arial, sans-serif",fontSize:"10px",color:"rgb(0, 0, 0)",whiteSpace:"nowrap",direction:"ltr",textAlign:"right",verticalAlign:"middle",display:"inline-block"},children:"å°å³æä¾ï¼\xa9Google / OpenStreetMap"})})},38351:(e,t,a)=>{a.d(t,{g_:()=>x,FG:()=>S});var r=a(95155),n=a(12115),l=a(7143);a(12094);var s=a(37911);a(18720);var o=a(30640);a(23686),a(8513),a(99159),a(23399),a(31852),a(92299),a(38511),a(21705),a(74959),a(48205);var i=a(54764),c=a(50007),d=a(88288);a(31752),a(15239),l.no.ROADMAP,l.no.HYBRID,a(34558),a(17267),a(59525),a(9803);var u=a(55027),m=a.n(u);a(35603),delete m().Icon.Default.prototype._getIconUrl,m().Icon.Default.mergeOptions({iconRetinaUrl:"/leaflet/marker-icon-2x.png",iconUrl:"/leaflet/marker-icon.png",shadowUrl:"/leaflet/marker-shadow.png"});let x=e=>{let{children:t,...a}=e;return(0,r.jsxs)(s.T5,{disableDefaultUI:!0,gestureHandling:"greedy",style:{borderRadius:"0.75rem"},...a,children:[t,(0,r.jsx)(o.i,{})]})};var p=a(16847),g=a(48376),h=a(26818),f=a(18810),y=a(62889);function v(e){let{data:t,isLoading:a,handleClick:n}=e;return a?(0,r.jsx)("div",{className:"max-h-72 w-full border-t border-t-border-primary p-2 overflow-y-auto space-y-2",children:Array.from({length:10}).map((e,t)=>(0,r.jsxs)(c.$n,{variant:"ghost",className:"h-10 w-full px-4 py-2 flex items-center gap-3 justify-start",children:[(0,r.jsx)(f.A,{className:"w-4 h-4 text-text-primary"}),(0,r.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,r.jsx)(y.E,{className:"w-full max-w-40 h-3"}),(0,r.jsx)(y.E,{className:"w-full max-w-20 h-3"})]})]},t))}):(null==t?void 0:t.length)===0?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)("div",{className:"max-h-72 w-full border-t border-t-border-primary p-2 overflow-y-auto space-y-2",children:null==t?void 0:t.map(e=>(0,r.jsxs)(c.$n,{variant:"ghost",className:"h-12 w-full px-4 py-2 flex items-center gap-3 justify-start",onMouseDown:e=>{e.preventDefault()},onClick:()=>n(e),children:[(0,r.jsx)(f.A,{className:"w-4 h-4 text-text-primary"}),(0,r.jsx)("p",{className:"text-xs text-text-primary font-medium min-w-0 flex-1 break-words whitespace-normal text-start",children:e.address})]},e.id))})}var w=a(86651);function b(e){let{selectedIndex:t,predictions:a,onMouseEnter:n,onClick:l}=e;return 0===a.length?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)("ul",{className:"max-h-72 w-full border-t border-t-border-primary p-2 overflow-y-auto space-y-2",children:null==a?void 0:a.filter(e=>e.placePrediction).map((e,a)=>{var s;let o=e.placePrediction,c=(null==(s=o.place)?void 0:s.id)||o.text.text||"suggestion-".concat(a);return(0,r.jsxs)("li",{className:(0,i.cn)("h-12 w-full px-4 py-2 flex items-center gap-3 justify-start",a===t?"bg-gray-200":"hover:bg-gray-100"),onMouseEnter:()=>n(a),onClick:()=>l(e),children:[(0,r.jsx)(w.A,{className:"w-4 h-4 text-text-primary"}),(0,r.jsx)("p",{className:"text-xs text-text-primary font-medium min-w-0 flex-1 break-words whitespace-normal text-start",children:o.text.text})]},c)})})}var j=a(26012);let N=e=>{let{ref:t,isFocused:a,setIsFocused:n,...l}=e;return(0,r.jsxs)("div",{className:"flex items-center justify-between w-full max-w-[25rem]",children:[(0,r.jsx)(j.p,{ref:t,className:"max-w-full min-w-0 border-none bg-none shadow-none w-full h-10",...l}),(0,r.jsx)(d.Bc,{children:(0,r.jsxs)(d.m_,{children:[(0,r.jsx)(d.k$,{asChild:!0,children:(0,r.jsx)(c.$n,{variant:"ghost",className:"h-8 w-8 text-text-primary hover:text-primary-main hover:bg-none",onClick:()=>n(!0),children:(0,r.jsx)(w.A,{className:"!h-6 !w-6"})})}),(0,r.jsx)(d.ZI,{className:"bg-black px-3 py-1 rounded-md",side:"bottom",sideOffset:6,children:(0,r.jsx)("p",{className:"whitespace-nowrap text-xs text-white-main",children:"æ¤ç´¢"})})]})})]})},S=e=>{let{leadingContent:t,moveCameraToLocationWithPin:a}
1=e,[l,o]=(0,n.useState)(!1),c=(0,n.useRef)(null),[d,u]=(0,n.useState)(""),{data:m,refetch:x,isLoading:f}=(0,h.Z)(),y=(0,s.ST)("places"),[w,j]=(0,n.useState)(""),S=(0,n.useRef)(null),[_,k]=(0,n.useState)([]);(0,n.useEffect)(()=>{if(y){let{AutocompleteSessionToken:e}=y;S.current=new e}},[y]);let[A,P]=(0,n.useState)(!1),C=async e=>{if(u(e),j(e),!y||!e)return void k([]);try{let{AutocompleteSuggestion:t,AutocompleteSessionToken:a}=y;S.current||(S.current=new a);let r={input:e,region:"jp",sessionToken:S.current},n=await t.fetchAutocompleteSuggestions(r);n.suggestions&&k(n.suggestions.slice(0,5))}catch(e){console.error("Autocomplete error:",e),k([])}},[D,F]=(0,n.useState)(-1),R=async e=>{if(!A){if("ArrowDown"===e.key){e.preventDefault(),F(e=>(e+1)%_.length);let t=D>=0?_[D+1]:_[0];if(null==t?void 0:t.placePrediction){let e=t.placePrediction.text.text;u(e),j(e)}}if("ArrowUp"===e.key){e.preventDefault(),F(e=>e<=0?_.length-1:e-1);let t=D>=0?_[D-1]:_[0];if(null==t?void 0:t.placePrediction){let e=t.placePrediction.text.text;u(e),j(e)}}if("Escape"===e.key&&(e.preventDefault(),o(!1)),"Enter"===e.key){e.preventDefault();let t=D>=0?_[D]:_[0];if(null==t?void 0:t.placePrediction)try{let e=t.placePrediction.toPlace();if(await e.fetchFields({fields:["location","formattedAddress"]}),e.location){let t=e.location;a(t.lat(),t.lng());let r=e.formattedAddress||w;j(r),u(r),(0,p.f0)({action:"enter",category:"location-search",label:"å°ç¹æ¤ç´¢"}),await (0,g.VZ)({position:[t.lat(),t.lng()]},r),k([]),F(-1),x(),S.current=null}}catch(e){console.error("Place fetch error:",e)}else new google.maps.Geocoder().geocode({address:w},async(e,t)=>{if("OK"===t&&e&&e[0]){let t=e[0].geometry.location;a(t.lat(),t.lng()),j(e[0].formatted_address),u(e[0].formatted_address),(0,p.f0)({action:"enter",category:"location-search",label:"å°ç¹æ¤ç´¢"}),await (0,g.VZ)({position:[t.lat(),t.lng()]},e[0].formatted_address),k([]),F(-1),x()}})}}},E=async e=>{if(e.placePrediction)try{let t=e.placePrediction.toPlace();if(await t.fetchFields({fields:["location","formattedAddress"]}),t.location){let r=t.location,n=t.formattedAddress||e.placePrediction.text.text;a(r.lat(),r.lng()),j(n),u(n),k([]),F(-1),await (0,g.VZ)({position:[r.lat(),r.lng()]},n),x(),S.current=null}(0,p.f0)({action:"click",category:"location-search",label:"å°ç¹æ¤ç´¢"})}catch(e){console.error("Place fetch error:",e)}},T=(0,n.useRef)(null);return(0,r.jsxs)("div",{ref:T,className:(0,i.cn)("bg-white-main w-72 shadow-elevation01",l?"rounded-2xl":"rounded-full"),children:[(0,r.jsxs)("div",{className:"px-4 py-2 flex items-center gap-3",children:[t&&t,(0,r.jsx)(N,{ref:c,isFocused:l,value:d,placeholder:"å°ç¹ãæ¤ç´¢",onFocus:()=>{o(!0)},setIsFocused:o,onChange:e=>C(e.target.value),onKeyDown:R,onBlur:e=>{T.current&&e.relatedTarget&&T.current.contains(e.relatedTarget)||setTimeout(()=>{o(!1)},200)},onCompositionStart:()=>P(!0),onCompositionEnd:()=>P(!1)})]}),l&&(0,r.jsx)(r.Fragment,{children:0===d.length?(0,r.jsx)(v,{data:m,isLoading:f,handleClick:e=>{u(e.address),a(e.coordinates[1],e.coordinates[0]),o(!1),c.current&&c.current.blur()}}):(0,r.jsx)(b,{selectedIndex:D,predictions:_,onMouseEnter:F,onClick:E})})]})}},38511:(e,t,a)=>{a.d(t,{r:()=>l});var r=a(95155);a(12115);var n=a(54764);let l=e=>{let{label:t,value:a,name:l,checked:s,onChange:o,disabled:i=!1}=e;return(0,r.jsxs)("label",{className:(0,n.cn)("flex items-center gap-2 cursor-pointer",i&&"cursor-not-allowed opacity-50"),children:[(0,r.jsx)("input",{type:"radio",name:l,value:a,checked:s,disabled:i,onChange:()=>!i&&o(a),className:"hidden"}),(0,r.jsx)("span",{className:(0,n.cn)("w-4 h-4 rounded-full border flex items-center justify-center",s?"border-primary-main":"border-text-secondary"),children:s&&(0,r.jsx)("span",{className:"w-3 h-3 rounded-full bg-primary-main"})}),(0,r.jsx)("span",{className:"text-sm",children:t})]})}},48205:(e,t,a)=>{a.d(t,{f:()=>r.SavedLocationButton}),a(95155),a(12115),a(97981),a(7446),a(54764),a(50007),a(111),a(68323),a(48106),a(96548),a(66639),a(1981);var r=a(44419)},49762:(e,t,a)=>{a.d(t,{Z:()=>i});var r=a(12115),n=a(12094),l=a(83693),s=a.n(l),o=a(1115);let i=(e,t)=>{let{account:a}=(0,n.E1)(),{refetch:l}=(0,o.T)(e,t);(0,r.useEffect)(()=>
1{if(!e||!(null==a?void 0:a.contract_brand_id))return;let t=s()(()=>{l()},500);return t(),()=>{t.cancel()}},[e,null==a?void 0:a.contract_brand_id])}},61400:(e,t,a)=>{a.d(t,{D:()=>r});let r=(0,a(25959).v)(e=>({customTradeArea:null,setCustomTradeArea:t=>e({customTradeArea:t})}))},97828:(e,t,a)=>{a.d(t,{$:()=>s});var r=a(95155);a(12115);var n=a(7143),l=a(34558);let s=e=>{let{data:t,isWeekday:a,label:s}=e,o=a?t.w:t.h;return(0,r.jsx)(l.Zp,{className:"border-0 shadow-none transition-all duration-300 group rounded-sm",style:{backgroundColor:a?"".concat(n.b4.asahiru.w,"33"):"".concat(n.b4.asahiru.h,"33")},children:(0,r.jsx)(l.Wu,{className:"p-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)("p",{className:"text-sm",children:s}),(0,r.jsx)("div",{className:"flex justify-end gap-2",children:(0,r.jsx)("p",{className:"text-lg font-bold",children:o?"".concat(o.toLocaleString(),"人"):"æªç»é²"})})]})})})}}}]);
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.