PageSourceSearch

https://www.one-s-top.co.jp/_nuxt/COIfxY2W.js

js one-s-top.co.jp collected 2026-10-08 21:41:27 UTC 9,173 bytes, 1 lines download raw bytes

1import se from"./Qndgh3b4.js";import{f as j,o as i,c as p,b as s,h as e,a as n,n as L,F as N,r as le,t as F,D as z,q as c,g as ne,w as M,m as me,d as ue,i as de,x as ie,_ as pe}from"./CARf0gk4.js";import{g as ce,u as ge,P as be,F as fe,b as O,c as T,C as A,d as P,e as ye,f as Ve}from"./CfnlnicG.js";import{C as xe,B as ve}from"./B-9tQQQe.js";import{P as ke}from"./D3nEJJ96.js";import{u as Fe}from"./Ceo9sjhz.js";import{u as we}from"./9vDFlCis.js";import{u as qe}from"./Drd2pwRv.js";import"./CxYqzQvW.js";const he={class:"flex min-h-[80px] flex-col border-b border-dotted border-gray-400 md:flex-row"},Se={class:"relative flex w-full items-center py-5 pl-8"},Ce=["name","value","checked","onChange"],_e={key:1,class:"px-3 py-1.5 text-gray-800"},Be={key:2,class:"absolute bottom-2 left-8 pt-1 text-sm text-red-600"},Ie=j({__name:"FormCheckboxGroup",props:{modelValue:{},label:{},name:{},options:{},required:{type:Boolean},conditionalRequired:{type:Boolean},errorMessage:{},mode:{}},emits:["update:modelValue"],setup(u,{emit:f}){const m=u,x=f,v=c(()=>!!(m.required||m.conditionalRequired)),w=c(()=>m.options.filter(d=>m.modelValue.map(String).includes(String(d.value))).map(d=>d.label).join("、")),q=c(()=>Array.isArray(m.modelValue)&&m.modelValue.length>0),h=c(()=>m.errorMessage?"bg-red-50 border border-red-500":v.value&&!q.value?"bg-inputError border border-red-300":"bg-white border border-gray-300"),l=(d,k)=>{const a=[...m.modelValue];if(k)a.map(String).includes(String(d))||a.push(d);else{const g=a.findIndex(S=>String(S)===String(d));g>=0&&a.splice(g,1)}x("update:modelValue",a)};return(d,k)=>(i(),p("div",he,[s(ce,{label:u.label,required:e(v)},null,8,["label","required"]),n("div",Se,[u.mode==="input"?(i(),p("div",{key:0,class:L(["flex flex-wrap gap-4 px-3 py-1.5 rounded-md transition-colors",e(h)])},[(i(!0),p(N,null,le(u.options,a=>(i(),p("label",{key:a.value,class:"flex items-center cursor-pointer"},[n("input",{name:u.name,type:"checkbox",value:a.value,checked:u.modelValue.map(String).includes(String(a.value)),onChange:g=>l(a.value,g.target.checked),class:"mr-2 text-corporate focus:ring-corporate"},null,40,Ce),n("span",null,F(a.label),1)]))),128))],2)):(i(),p("div",_e,F(e(w)),1)),u.errorMessage&&u.mode==="input"?(i(),p("p",Be,F(u.errorMessage),1)):z("",!0)])]))}}),V=Object.assign(Ie,{__name:"FormsFormCheckboxGroup"}),Ue={class:"form-page"},Ee={class:"mx-auto mt-12 mb-4 max-w-[830px] bg-white"},Re={class:"mt-4 flex items-center justify-center gap-4 p-4 border border-corporate-dark"},$e={href:"tel:0557815588",class:"text-corporate-dark text-2xl","aria-label":"0557-81-5588"},De=["srcset"],Me=["src"],Oe={key:1,class:"completed"},Te=j({__name:"purchase",async setup(u){let f,m;const x={title:"購入相談",description:"ご希望条件に合った物件探しや不動産購入について、購入相談フォームからご相談いただけます。",robots:"noindex,follow"},{createBaseForm:v,getConditionalRequiredFields:w,prepareBaseSubmitData:q,validateClientForm:h,formMode:l,isSubmitting:d,processImageRef:k,errors:a,generalError:g,isRateLimitError:S,backToInput:G,cancelForm:H,createValidateForm:J,createSubmitForm:K,findLabel:C}=ge(),{propertyTypeOptions:_,areaOptions:B}=ye(),Q=Fe(),o=ie({...v("request"),property_types:[],areas:[],budget:"",features:[],message:""}),y=me([]),{data:W,error:X}=([f,m]=ne(()=>we("contact-purchase-features",()=>Q("/api/features"))),f=await f,m(),f);y.value=(W.value??[]).map(b=>({value:b.id,label:b.name})),X.value&&(g.value="特徴データの読み込みに失敗しました。");const Y=c(()=>[...Ve,"property_types","areas","budget","features",...w(o)]),I=c(()=>h(o,Y.value)),Z=c(()=>Object.keys(I.value).length===0&&y.value.length>0),ee=c(()=>Object.keys(I.value).length>0),U=c(()=>l.value==="completed"?3:l.value==="confirm"?2:1),E=c(()=>({webp:`/images/company/form-process-${U.value}.webp`,png:`/images/company/form-process-${U.value}.png`})),R=(b,r)=>{r?a.value[b]=r:delete a.value[b]},re=()=>y.value.length===0?(g.value="特徴データが読み込まれていません。",!1):!0,oe=()=>({...q(o),type:o.type,property_types:o.property_types.map(r=>C(_,r)),areas:o.areas.map(r=>C(B,r)),budget:o.budget,features:o.features.map(r=>C(y.value,r)),message:o.message}),$=J(()=>
1I.value,re),ae=K("request",oe),D=[{label:x.title}];return qe(x,D),(b,r)=>{const te=se;return i(),p(N,null,[s(ve,{items:D}),s(ke,{title:x.title},null,8,["title"]),n("section",Ue,[n("div",Ee,[r[15]||(r[15]=n("p",{class:"leading-7"},"ホームページ掲載物件に関するお問い合わせ、不動産の売買、建築の新築・リフォーム、欲しい、弊社へのご意見・ご要望など、下記お問い合わせフォームに必要事項をご入力の上、お問い合わせください。",-1)),r[16]||(r[16]=n("p",{class:"leading-7"},"お急ぎの方はお電話でもお受けいたしますので、お気軽にお申し付け下さい。",-1)),n("div",Re,[n("a",$e,[s(te,{name:"heroicons:phone-solid",class:"mr-2","aria-hidden":"true"}),r[13]||(r[13]=n("span",null,"0557-81-5588",-1))]),r[14]||(r[14]=n("ul",{class:"text-sm"},[n("li",{class:"inline-block mr-2"},"営業時間 9:30-19:00"),n("li",{class:"inline-block mr-2"},"|"),n("li",{class:"inline-block"},"定休日 第二火曜日・毎週水曜日")],-1))])]),s(xe,{size:"narrow",class:"my-8"},{default:M(()=>[n("picture",{ref_key:"processImageRef",ref:k,class:"mx-auto mb-12 block max-w-[830px]"},[n("source",{srcset:e(E).webp,type:"image/webp"},null,8,De),n("img",{src:e(E).png,alt:"",width:"830",height:"80",loading:"lazy",decoding:"async",class:"block h-auto w-full"},null,8,Me)],512),s(be,null,{default:M(()=>[...r[17]||(r[17]=[ue("購入相談フォーム",-1)])]),_:1}),s(fe,{mode:e(l)},null,8,["mode"]),e(l)!=="completed"?(i(),p("form",{key:0,class:"form",onSubmit:r[7]||(r[7]=de((...t)=>e($)&&e($)(...t),["prevent"]))},[s(V,{modelValue:e(o).property_types,"onUpdate:modelValue":r[0]||(r[0]=t=>e(o).property_types=t),name:"property_types",label:"ご希望の物件種別",options:e(_),"error-message":e(a).property_types,mode:e(l),required:""},null,8,["modelValue","options","error-message","mode"]),s(V,{modelValue:e(o).areas,"onUpdate:modelValue":r[1]||(r[1]=t=>e(o).areas=t),name:"areas",label:"ご希望の物件所在地",options:e(B),"error-message":e(a).areas,mode:e(l),required:""},null,8,["modelValue","options","error-message","mode"]),s(O,{modelValue:e(o).budget,"onUpdate:modelValue":r[2]||(r[2]=t=>e(o).budget=t),name:"budget",label:"ご予算",placeholder:"例:3000万円以下、月額15万円以下","error-message":e(a).budget,mode:e(l),required:"","validate-on-input":"",onValidationError:r[3]||(r[3]=t=>R("budget",t))},null,8,["modelValue","error-message","mode"]),s(V,{modelValue:e(o).features,"onUpdate:modelValue":r[4]||(r[4]=t=>e(o).features=t),name:"features",label:"ご希望の条件",options:e(y),"error-message":e(a).features,mode:e(l),required:""},null,8,["modelValue","options","error-message","mode"]),s(T,{modelValue:e(o).message,"onUpdate:modelValue":r[5]||(r[5]=t=>e(o).message=t),name:"message",label:"お問い合わせ・ご要望など",placeholder:"その他ご要望やご相談内容などご記入ください",rows:4,"max-length":500,"error-message":e(a).message,mode:e(l)},null,8,["modelValue","error-message","mode"]),s(A,{form:e(o),errors:e(a),mode:e(l),onValidationError:R},null,8,["form","errors","mode"]),e(g)?(i(),p("p",{key:0,class:L(["error",{"pt-4 text-center":e(S)}])},F(e(g)),3)):z("",!0),s(P,{mode:e(l),"can-submit":e(Z)&&!e(ee),"is-submitting":e(d),onSubmit:e(ae),onBack:e(G),onClear:r[6]||(r[6]=t=>e(H)(e(o)))},null,8,["mode","can-submit","is-submitting","onSubmit","onBack"])],32)):(i(),p("div",Oe,[s(V,{modelValue:e(o).property_types,"onUpdate:modelValue":r[8]||(r[8]=t=>e(o).property_types=t),name:"property_types",label:"ご希望の物件種別",options:e(_),"error-message":e(a).property_types,mode:e(l),required:""},null,8,["modelValue","options","error-message","mode"]),s(V,{modelValue:e(o).areas,"onUpdate:modelValue":r[9]||(r[9]=t=>e(o).areas=t),name:"areas",label:"ご希望の物件所在地",options:e(B),"error-message":e(a).areas,mode:e(l),required:""},null,8,["modelValue","options","error-message","mode"]),s(O,{modelValue:e(o).budget,"onUpdate:modelValue":r[10]||(r[10]=t=>e(o).budget=t),name:"budget",label:"ご予算","error-message":e(a).budget,mode:e(l),required:""},null,8,["modelValue","error-message","mode"]),s(V,{modelValue:e(o).features,"onUpdate:modelValue":r[11]||(r[11]=t=>e(o).features=t),name:"features",label:"ご希望の条件",options:e(y),"error-message":e(a).features,mode:e(l),required:""},null,8,["modelValue","options","error-message","mode"]),s(T,{modelValue:e(o).message,"onUpdate:modelValue":r[12]||(r[12]=t=>e(o).message=t),name:"message",label:"お問い合わせ・ご要望など",rows:4,"max-length":500,"error-message":e(a).message,mode:e(l)},null,8,["modelValue","error-message","mode"]),s(A,{form:e(o),errors:e(a),mode:e(l)},null,8,["form","errors","mode"]),s(P,{mode:e(l),"can-submit":!0,"is-submitting":!1},null,8,["mode"])]))]),_:1})])],64)}}}),Ke=pe(Te,[["__scopeId","data-v-26e33599"]]);export{Ke as default};

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.