PageSourceSearch

https://omise-craft.com/assets/stations-7dad4205.js

js omise-craft.com collected 2026-10-04 19:18:56 UTC 4,984 bytes, 2 lines download raw bytes

1import{O as H,k as C,c as a,r as n,o as E,u as Q,m as $,q as W,A as z,j as s,M as J,d as u,S as K,n as T,F as X}from"./index-7936947f.js";import{B as Y}from"./index-b7f353d4.js";import{p as Z}from"./SearchConst-b5ee85f9.js";import{S as t}from"./SearchAtom-7d02f0e1.js";import{B as S}from"./index-58956b95.js";import{S as ee}from"./index-182d70cf.js";import{I as te}from"./icon_storefront-b08d3b70.js";import{u as se}from"./mStation-c7d2befe.js";import{u as ae}from"./CategoryIdConst-bb7ed93a.js";import{C as re}from"./ChkboxProperty-fad4fbe4.js";import"./index-ff8fc7cd.js";import"./react-select.esm-60c387a8.js";import"./assertThisInitialized-4a893623.js";import"./Validation-3a42cb40.js";import"./index-45b1ca18.js";import"./ButtonBase-a6c873ee.js";const ie=I=>{const[j]=H(),p=j.get("prefectures"),L=C(t.prefectures);let d,f="";p&&(d=Number(p),f=p),L(d);const y={prefectures:a(t.prefectures),line:a(t.line),station:a(t.station),distanceMinutesMin:a(t.distanceMinutesMin),distanceMinutesMax:a(t.distanceMinutesMax),priceMin:a(t.priceMin),priceMax:a(t.priceMax),tsuboMin:a(t.tsuboMin),tsuboMax:a(t.tsuboMax),age:a(t.age),style:a(t.possibleUsage),status:a(t.status),floorNumber:a(t.floorNumber),hasExperienceRestaurant:a(t.hasExperienceRestaurant),possibleUsage:a(t.possibleUsage),plannedOpeningArea:a(t.plannedOpeningArea),isIncludeHidden:a(t.isIncludeHidden),isIncludeDeleted:a(t.isIncludeDeleted),type:"station"},[_,B]=n.useState([]),h=y.line.filter(e=>e.value).map(e=>Number(e.value)),[F,V]=n.useState(!1),x=n.useRef(null),[N,D]=n.useState(void 0),b=ae();n.useEffect(()=>{b.isSuccess&&D(b.data),console.warn(N)},[b.isSuccess]);const o=se(void 0,h,void 0,1);n.useEffect(()=>{h.length===0&&k({pathname:"/properties/route",search:`?${E({prefectures:f})}`}),x.current&&new IntersectionObserver(([r])=>{V(r.isIntersecting)}).observe(x.current)},[]),n.useEffect(()=>{var m;const e=((m=o==null?void 0:o.data)==null?void 0:m.stations)&&o.data.stations,r=[];if(e!==void 0)for(let i=0;i<e.length;i++){let O=!1;for(let c=0;c<r.length;c++)if(r[c].id===e[i].line_id){r[c].stations.push({id:e[i].id,name:e[i].name,property_count:e[i].property_count}),O=!0;break}if(!O){const c={id:e[i].id,name:e[i].name,property_count:e[i].property_count},P=[];P.push(c),r.push({id:e[i].line_id,name:e[i].line_name,stations:P})}}B(r)},[o.data,o.isSuccess]);const k=Q(),g=$(Z,d),{control:A,setValue:U,handleSubmit:v,formState:{errors:l}}=W(),R=a(z.isAuth),q=[{value:"エリア選択",link:!0,path:"/properties/prefectures"},{value:g,link:!1,path:""},{value:g+"の路線選択",link:!0,path:"/properties/route?prefectures="+f},{value:g+"の駅",link:!1,path:""}],M=()=>{const e=T(y);k({pathname:I.searchPath,search:`?${E(e)}`})},w=C(t.station);n.useEffect(()=>{w([])},[w]);const G=n.useMemo(()=>s(J,{isOpen:!0}),[]);return u("div",{children:[G,s(Y,{breadcrumbs:q}),u("div",{className:"bg-contents md:mx-auto mx-0 md:max-w-[1230px] md:p-[30px] p-[20px] md:pb-[40px] rounded-[15px]",children:[u("h1",{className:"text-sub text-2xl",children:[s("span",{children:s("img",{className:"inline w-[30px] h-[30px] mr-[20px]",src:te})}),s("span",{children:"物件検索"})]}),s("h2",{className:"text-sub text-left md:mt-[40px] mt-[30px]",children:"駅名から探す"}),u("form",{children:[s("div",{children:h.map(e=>{const r=_.find(m=>m.id==Number(e));if(r)return s("div",{className:"mx-auto md:mt-[30px] mt-[20px] max-h-fit h-fit w-full",children:s(re,{areaClass:"",label:r.name,labelClass:"md:mt-[15px] mt-[20px]",list:r.stations,control:A,required:!0,inputAreaClass:"",inputAreaWidth:" !bg-background md:w-[370px] w-full md:min-h-[40px] !m-0 pr-[20px] text-left ",name:"municipalities",listClass:"stationArea flex justify-start items-wrap gap-[20px_30px]",atom:t.station,listLabelClass:"text-left",selectAllLabel:"すべての駅を選択",setValue:U})},e)})}),Object.keys(l).length>0&&s("p",{className:"mt-[10px] text-error font-bold text-xs text-left",children:"駅は、最低1つを選択してください"}),s("div",{className:"md:mt-[60px] md:my-0 my-[30px]",children:s(S,{onclickEvent:v(M),label:"選択した駅名で物件検索する",buttonClass:" searchButton ",id:"searchFirst",disabled:Object.keys(l).length>0})}),s("div",{className:"mx-auto md:mt-[40px] mt-[30px] md:p-[30px] p-[20px] bg-background rounded-[15p
1x]",children:s(ee,{control:A,mOption:N})}),s("div",{className:"mt-[30px]",ref:x,children:s(S,{onclickEvent:v(M),label:"物件検索する",buttonClass:" searchButton ",id:"searchSecond",disabled:Object.keys(l).length>0})})]})]}),F?"":s("div",{className:"visibleArea sticky w-full h-[84px] flex justify-center items-center bg-[#00000080] bottom-0 left-0",children:s(S,{onclickEvent:v(M),label:"物件検索する",buttonClass:" searchButton hover:!text-contents md:!w-[370px] !w-[calc(100%_-_80px)] !m-0",disabled:Object.keys(l).length>0})}),!R&&s(K,{})]})};function ye(){return s(X,{children:s(ie,{searchPath:"/property"})})}export{ye as default};
2//# sourceMappingURL=stations-7dad4205.js.map

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.