1import{_ as T}from"./DhJwmxzA.js";import{_ as z}from"./BncccEzO.js";import{_ as O}from"./pijlIKxp.js";import{_ as A}from"./CmeTQzQF.js";import{a8 as $,a2 as q,d as R,c as B,o as E,g as o,k as l,w as p,a as t,$ as I,H as S,l as f}from"./DZoUjrKx.js";import{u as H}from"./Hg5H5z-c.js";/* empty css */import"./C4nDtbsx.js";import"./DwmVY1fc.js";import{u as N,a as P}from"./BB4DpIHh.js";import{A as g}from"./DU1X-ngK.js";import{_ as j}from"./DMbo1yZW.js";import{_ as J}from"./DskSQ8JE.js";import{u as F}from"./D2jwNP95.js";import"./BscWaSPj.js";import"./BOQ_U2IK.js";import"./C874-iVt.js";import"./DXZBXwJ0.js";import"./BOReQQ3F.js";import"./CUmrnKdJ.js";import"./mM8bO2fs.js";import"./CFVxVGBI.js";import"./BPf8cDED.js";import"./BG0Uxk2A.js";import"./BCNJxvGT.js";const x="rat_control",V=()=>{const{customHopeTimeOptions:a,initSelectedType:n}=K(),r=$(),m=q(),{selectedRegion:c,availableArea:d,isLoadingArea:i}=H(x),{goToCheckout:y,asEntry:b}=N(x);return b(),{customHopeTimeOptions:a,selectedRegion:c,availableArea:d,isLoadingArea:i,onCheckout:e=>{r.trackEvent("Booking Started",m,{service_type:x,service_detail:e.map(u=>({service_name:u.description,service_quantity:u.quantity})),service_location:[c.value.county,c.value.district].join(" ").trim()}),y({selectedRegion:c.value})},initSelectedType:n}},K=()=>{const{cartCache:a}=P(x);return{customHopeTimeOptions:[{label:"䏿å®",value:"no"},{label:"å¹³æ¥ä¸å",value:"morning"},{label:"å¹³æ¥ä¸å",value:"afternoon"},{label:"å¹³æ¥æä¸",value:"evening"},{label:"忥ä¸å",value:"holidaymorning"},{label:"忥ä¸å",value:"holidayafternoon"},{label:"忥æä¸",value:"holidayevening"}],initSelectedType:()=>{let m=!1;return a.value&&typeof a.value=="object"&&"selectedIsOffice"in a.value&&typeof a.value.selectedIsOffice=="boolean"&&(m=a.value.selectedIsOffice),m}}},L={class:"container-800 mx-auto pt-40px pb-85px lt-tablet:py-0"},D={class:"lt-tablet:sticky lt-tablet:z-100 lt-tablet:top-0"},G={class:"bg-white px-4 pt-3 pb-4 hidden lt-tablet:block"},M={class:"mb-6 px-6 lt-tablet:px-4"},Q={class:"shadow-[0px_2px_20px_0px_#1324581A] rounded-2 bg-white"},U={class:"py-6 lt-tablet:pt-3 bg-white rounded-[0_0_8px_8px]"},W={class:"px-6 lt-tablet:px-4"},X={class:"px-6 lt-tablet:px-4"},Y={class:"grid grid-cols-2 gap-6 lt-tablet:grid-cols-1 lt-tablet:gap-0"},Z={class:"sticky bottom-0 flex justify-between p-[8px_20px_20px] shadow-[0px_2px_20px_0px_#1324581A] bg-white z-106 rounded-[0_0_8px_8px] lt-tablet:hidden"},ee={class:"hidden sticky bottom-0 left-0 right-0 bg-white z-106 p-[8px_20px_20px] lt-tablet:block"},ze=R({__name:"rat-control",setup(a){const{form:n,rules:r,customHopeTimeOptions:m,availableArea:c,returnPage:d,handleChange:i,onAddressInfoChange:y,checkout:b}=F({serviceType:"rat_control",trackingKey:"rat_control",useOrderPayment:V,productName:"å°æ¥æ»
é¼ ",exitRoute:"/n/services/rat-control"});return(h,e)=>{const u=T,k=z,_=O,C=A,w=I,v=S;return E(),B("main",L,[o("section",null,[o("div",D,[o("div",G,[l(u,{size:"small",onClick:t(d)},{icon:p(()=>[l(t(g),{direction:"left",class:"square-20"})]),default:p(()=>[e[7]||(e[7]=f(" è¿å "))]),_:1},8,["onClick"])]),l(j)])]),o("section",M,[o("section",Q,[e[12]||(e[12]=o("header",{class:"flex justify-between items-center p-x-20px p-y-16px bg-primary-10 rounded-[8px_8px_0_0]"},[o("h2",{class:"ty-body-title"},"æåè³æ")],-1)),o("div",U,[e[8]||(e[8]=o("h3",{class:"ty-body-title relative pl-6 lt-tablet:pl-4 before:content-empty before:block before:absolute before:left-0 before:w-1 before:h-100% before:bg-primary-30 before:rounded-2 mb-4 lt-tablet:mb-3"}," è©³ç´°è³æ ",-1)),o("div",W,[l(k,{class:"mb-18px",options:t(m),"option-label":"label","option-value":"value",label:"é ææåæé","sub-label":"師å
å°æ¼24å°æå
§ä¸»åè¯ç¹«æ¨ï¼ç¢ºèªæåæ¥æèæéãè«çæéçä¾é»ï¼æè¬æ¨çé
åã",placeholder:"è«é¸æå¸ææåçæé",name:"hopeTime",rule:t(r).hopeTime,required:"",onChange:e[0]||(e[0]=s=>t(i)("hopeTime",s))},null,8,["options","rule"]),l(_,{name:"remark",label:"è¨å®å註",placeholder:"å¦:ç°¡æå¡«å¯«ç¼ç¾èé¼ å¤ä¹
åæ
æ³",onChange:e[1]||(e[1]=s=>t(i)("userComment",s))})]),e[9]||(e[9]=o("h3",{class:"ty-body-title relative pl-6 lt-tablet:pl-4 before:content-empty before:block before:absolute before:left-0 before:w-1 before:h-100% before:bg-primary-30 before:rounded-2 mb-4 mt-10 lt-tablet:mb-3"}," è¯ç¹«è³æ ",-1)),o("div",X,[l(_,{name:"name",class:"mb-18px",label:"å§å",placeholder:"ç實å§å",required:!0,rule:t(r).name,autocomplete:"name",onChange:e[2]||(e[2]=s=>t(i)("customerName",s))},null,8,["rule"]),o("div",Y,[l(_,{name:"phone",label:"ææ©",placeholder:"ææ©è碼",class:"mb-18px",required:!0,rule:t(r).phone,type:"tel",autocomplete:"tel",maxlength:"10",onChange:e[3]||(e[3]=s=>t(i)("customerPhone",s))},null,8,["rule"]),l(_,{name:"email",label:"Email",placeholder:"[email protected]",class:"mb-18px",required:!0,rule:t(r).email,type:"email",autocomplete:"email",onChange:e[4]||(e[4]=s=>
1t(i)("customerEmail",s))},null,8,["rule"])]),l(C,{required:"","zipcode-data":t(c),"selected-address":{address:t(n).address,county:t(n).county,district:t(n).district,zipcode:t(n).zipCode},onChange:t(y)},null,8,["zipcode-data","selected-address","onChange"]),l(w,null,{default:p(()=>[l(t(J),{class:"mt-40px"})]),_:1})])]),o("div",Z,[l(u,{size:"small",onClick:t(d)},{icon:p(()=>[l(t(g),{direction:"left",class:"square-20"})]),default:p(()=>[e[10]||(e[10]=f(" è¿å "))]),_:1},8,["onClick"]),l(v,{size:"l",class:"w-33",onClick:e[5]||(e[5]=s=>t(b)())},{default:p(()=>e[11]||(e[11]=[f("éåºéæ±å®")])),_:1})])])]),o("section",ee,[l(v,{size:"l",class:"w-full",onClick:e[6]||(e[6]=s=>t(b)())},{default:p(()=>e[13]||(e[13]=[f("éåºéæ±å®")])),_:1})])])}}});export{ze 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.