PageSourceSearch

https://www.jackercleaning.com/_nuxt/D5uNujsK.js

js jackercleaning.com collected 2026-10-02 15:31:56 UTC 20,889 bytes, 2 lines download raw bytes

1import{d as et,b5 as st,bV as Vt,r as k,h as gt,i as C,c,o as n,F as at,f as Bt,g as e,m as u,b as D,a as t,n as q,t as a,G as kt,b4 as ut,k as d,_ as Kt,w as b,j as Ot,cu as dt,A as Ut,p as mt,q as Jt,ac as yt,bY as qt,be as Rt,bZ as Wt,b7 as wt,e as tt,bS as Nt,I as nt,l as $t,K as Zt,aO as Ct,a8 as Ht,b0 as It,cs as Tt,aj as Lt,aI as Pt,al as Yt,b6 as Et,ct as At,H as Xt,cv as Mt,ai as Gt,z as Qt,cA as te,aM as ee,$ as se,ak as vt}from"./B8NNqaMP.js";import{_ as oe}from"./3ptK5yiw.js";import{u as ae}from"./CM1DE8nS.js";/* empty css        */import{_ as ne}from"./DfxDY-Wr.js";import"./CbERI_ll.js";import{f as z,t as j,h as _t,p as xt,u as re,g as le}from"./BV7yRyHf.js";import{_ as ie}from"./DcqnsrSk.js";import{_ as ce}from"./DKkeOvrU.js";import{_ as bt}from"./hLRP0kJQ.js";import{_ as ue}from"./DLzI0oya.js";import{_ as de}from"./Co8u5k2h.js";import{_ as pe}from"./B7MMpIbq.js";import{A as fe}from"./BN_p6RhH.js";import{_ as St}from"./WQxEVFtg.js";import{u as Ft}from"./DzVGUEB8.js";import{u as me,a as ye}from"./DRNpLZPs.js";import"./Dpb7GfQG.js";import"./kfc4XkVh.js";const ve={class:"flex items-center justify-center pointer-events-none",id:"steps"},_e={key:0,class:"line w-full flex items-center justify-center h-[10px]"},xe=et({__name:"CheckoutSteps",setup(l){const s=st(),{y:o}=Vt(),r=k(["預訂服務","填寫資料","確認付款"]);k(2);const x=gt("tablet"),_=C(()=>x.value?o.value<30:!0);return(y,p)=>{const v=ie;return n(),c("div",ve,[(n(!0),c(at,null,Bt(r.value,(i,w)=>(n(),c(at,{key:w},[e("div",{class:q(["step relative bg-grey-20 w-[16px] h-[16px] min-w-[16px] min-h-[16px] rounded-[100%]",{active:t(s).orderStepStatus>=w+1}])},[t(s).orderStepStatus>=w+2?(n(),D(v,{key:0,class:"text-secondary-30 absolute transform w-[20px] h-[20px] left-1/2 -translate-x-1/2 w-[max-content] top-1/2 -translate-y-1/2"})):u("",!0),e("div",{class:q(["step-label absolute transform text-center text-sm text-gray-500 top-[calc(100%+8px)] left-1/2 -translate-x-1/2 w-[max-content] lt-tablet:ty-tiny",{"opacity-0":!_.value}])},a(i),3)],2),w<r.value.length-1?(n(),c("div",_e,[e("div",{class:q(["line-progress bg-grey-20 w-[calc(100%-7px)] h-[2px]",{active:t(s).orderStepStatus>w+1}])},null,2)])):u("",!0)],64))),128))])}}}),be=kt(xe,[["__scopeId","data-v-d30c567e"]]),Se={key:0,class:"error-status w-full h-full flex flex-col items-center justify-center top-0 left-0 bg-white"},he={key:0,class:"flex flex-col items-center justify-center"},ge={key:1,class:"flex flex-col items-center justify-center"},ke={key:2,class:"flex flex-col items-center justify-center"},we={key:3,class:"flex flex-col items-center justify-center gap-[8px]"},$e={key:4,class:"flex flex-col items-center justify-center gap-[8px]"},Ce=et({__name:"errorStatus",setup(l){const s=st(),o=ut(),r=dt(),x=()=>{o.setState("isErrorStatus",!1),o.setState("orderStepStatus",1),r.push("/book/platform-four/checkout")},_=()=>{o.setState("isErrorStatus",!1),r.push("/book/platform-four")};return(y,p)=>{const v=Kt,i=ce;return t(s).isErrorStatus?(n(),c("div",Se,[t(s).errorStatusInfo==="match"?(n(),c("div",he,[d(v,{"model-value":t(s).isErrorStatus},null,8,["model-value"]),p[0]||(p[0]=e("p",{class:"mt-[60px]"},a("稍等一下... 我們正在幫您鎖定最適合的潔客!"),-1))])):u("",!0),t(s).errorStatusInfo==="orderCreating"?(n(),c("div",ge,[d(v,{"model-value":t(s).isErrorStatus},null,8,["model-value"]),p[1]||(p[1]=e("p",{class:"mt-[60px]"},a("稍等一下... 我們正在幫您鎖定最適合的潔客!"),-1))])):u("",!0),t(s).errorStatusInfo==="leavePayment"?(n(),c("div",ke,[d(v,{"model-value":t(s).isErrorStatus},null,8,["model-value"])])):u("",!0),t(s).errorStatusInfo==="noJacker"?(n(),c("div",we,[d(i,{class:"w-[60px] h-[60px]"}),p[3]||(p[3]=e("p",{class:"ty-body-bold text-black"},a("哎呀!被搶先一步了,請重新訂購"),-1)),d(bt,{class:"mt-5",size:"l-1",theme:"primary-1",onClick:x},{default:b(()=>p[2]||(p[2]=[e("p",null,a("回上一步"),-1)])),_:1})])):u("",!0),t(s).errorStatusInfo==="blackUser"?(n(),c("div",$e,[d(i,{class:"w-[60px] h-[60px]"}),p[5]||(p[5]=Ot(`<p class="text-prewrap-center ty-body-bold text-black" data-v-c01d95f1>很抱歉,您的會員目前暫時無法使用預約功能。如需協助或
2了解詳情,請聯絡潔客幫客服團隊,我們將竭誠為您服務。</p><div class="email" data-v-c01d95f1><p class="ty-text-16 text-primary-30" data-v-c01d95f1>[email protected]</p></div><div class="phone" data-v-c01d95f1><p class="ty-text-16 text-primary-30" data-v-c01d95f1>02-7702-1808</p></div><div class="line" data-v-c01d95f1><p class="ty-text-16 text-primary-30" data-v-c01d95f1>LINE:@jkc168</p></div>`,4)),d(bt,{class:"mt-5",size:"l-1",theme:"primary-1",onClick:_},{default:b(()=>p[4]||(p[4]=[e("p",null,a("返回首頁"),-1)])),_:1})])):u("",!0)])):u("",!0)}}}),Ie=kt(Ce,[["__scopeId","data-v-c01d95f1"]]),Te={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function Le(l,s){return n(),c("svg",Te,s[0]||(s[0]=[e("path",{fill:"#AEAEB5","fill-rule":"evenodd",d:"M14.375 2.344a.625.625 0 1 0-1.25 0v.937h-6.25v-.937a.625.625 0 1 0-1.25 0v.937H3.75c-.69 0-1.25.56-1.25 1.25v12.5c0 .69.56 1.25 1.25 1.25h12.5c.69 0 1.25-.56 1.25-1.25v-12.5c0-.69-.56-1.25-1.25-1.25h-1.875v-.937ZM3.75 8.28h12.5v8.75H3.75v-8.75Z","clip-rule":"evenodd"},null,-1)]))}const Pe={render:Le},Ee={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function Ae(l,s){return n(),c("svg",Ee,s[0]||(s[0]=[e("path",{fill:"#AEAEB5",d:"M17.5 10a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0Z"},null,-1),e("path",{stroke:"#fff","stroke-linecap":"round","stroke-width":"1.875",d:"M10 6.667V10l2.5 2.5"},null,-1)]))}const Me={render:Ae},Fe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function ze(l,s){return n(),c("svg",Fe,s[0]||(s[0]=[e("path",{fill:"#AEAEB5","fill-rule":"evenodd",d:"M6.25 5a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0ZM3.126 16.754a6.875 6.875 0 0 1 13.748 0 .625.625 0 0 1-.364.58A
215.569 15.569 0 0 1 10 18.75c-2.322 0-4.527-.507-6.51-1.417a.625.625 0 0 1-.364-.579Z","clip-rule":"evenodd"},null,-1)]))}const je={render:ze},ht=l=>{const s=Math.max(0,Math.floor(l)),o=String(Math.floor(s/60)).padStart(2,"0"),r=String(s%60).padStart(2,"0");return`${o}:${r}`},zt=l=>{let s=Math.max(0,Math.floor(l.initialSeconds)),o=null;const r=()=>{var i;(i=l.onTick)==null||i.call(l,{remainingSeconds:s,formatted:ht(s),isFinished:s<=0})},x=()=>{o&&(clearInterval(o),o=null)},_=()=>{if(o||s<=0){r();return}r(),o=Ut(()=>{var i;if(s-=1,s<=0){s=0,r(),x(),(i=l.onFinish)==null||i.call(l);return}r()},1e3)},y=i=>{x(),s=typeof i=="number"?Math.max(0,Math.floor(i)):Math.max(0,Math.floor(l.initialSeconds)),r()},p=()=>s,v=i=>{i({remainingSeconds:s,formatted:ht(s),isFinished:s<=0})};return l.autoStart?_():r(),{start:_,stop:x,reset:y,subscribe:v,getRemainingSeconds:p}},De={key:0,class:"flex items-end"},Ve={class:"ty-body-bold text-error-1 mx-1"},Be={class:"p-5"},Ke={class:"p-5"},Oe={class:"mb-4"},Ue=10*60,Je=et({__name:"JCart",props:mt({referrer:{type:[Object,null,String],required:!0},title:{type:String,required:!0},modifiable:{type:Boolean,default:!1},expandable:{type:Boolean,default:!0}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:mt(["modify"],["update:modelValue"]),setup(l,{emit:s}){const o=st(),r=s,x=k("10:00"),_=zt({initialSeconds:Ue,autoStart:!1,onTick:({formatted:S})=>{x.value=S},onFinish:()=>{}}),y=Jt(l,"modelValue"),p=C(()=>o.orderStepStatus>1?(_.start(),!0):(_.reset(),_.stop(),!1));yt(()=>o.orderStepStatus,S=>{y.value=!1},{immediate:!0,deep:!0});const v=C(()=>!$.value||y.value),i=()=>{y.value=!y.value},w=qt(),$=C(()=>w.smallerOrEqual("tablet").value),f=()=>{r("modify")},R=Rt(),{lock:V,unlock:I}=Wt();return yt(()=>$.value&&y.value,S=>{S===!1?I():V()},{immediate:!0}),wt(()=>{_.stop()}),(S,h)=>{const H=Zt,M=de,Y=pe,X=Ct;return n(),c(at,null,[!$.value||!l.referrer?(n(),D(St,{key:0,title:l.title},{"header-right":b(()=>[p.value?(n(),c("div",De,[h[2]||(h[2]=e("p",{class:"ty-body"},a("請於"),-1)),e("p",Ve,a(x.value),1),h[3]||(h[3]=e("p",{class:"ty-body"},a("完成預約"),-1))])):u("",!0)]),default:b(()=>[e("div",Be,[tt(S.$slots,"default")])]),_:3},8,["title"])):u("",!0),$.value&&l.referrer?(n(),D(Nt,{key:1,to:l.referrer},[v.value?(n(),c("div",{key:0,class:"body-mask-bg fixed inset-0 bottom-0 z-106",style:nt({zIndex:t(R).cart-1}),onClick:h[0]||(h[0]=P=>i())},null,4)):u("",!0),e("div",{class:"sticky bottom-0 left-0 right-0 bg-white z-106 rounded-[8px_8px_0_0]",style:nt({zIndex:t(R).cart})},[d(Y,{modelValue:v.value,"onUpdate:modelValue":h[1]||(h[1]=P=>v.value=P),duration:"0.2s"},{default:b(()=>[d(St,{title:l.title},{"header-right":b(()=>[e("button",{class:"flex-center",onClick:i},[d(H,{class:"square-20 text-grey-40"})])]),"title-append":b(()=>[l.modifiable?(n(),D(M,{key:0,underline:"",size:"small",onClick:f},{default:b(()=>h[4]||(h[4]=[$t(a("修改"))])),_:1})):u("",!0)]),default:b(()=>[e("div",Ke,[tt(S.$slots,"default")])]),_:3},8,["title"])]),_:3},8,["modelValue"]),tt(S.$slots,"extension"),v.value?(n(),D(X,{key:0,class:"px-5",type:"dashed",theme:"grey-30"})):u("",!0),e("div",{class:q(["bg-white p-[8px_20px_20px]",{"lt-tablet:shadow-[0px_2px_20px_0px_#1324581A]":!v.value}])},[e("div",Oe,[l.expandable?(n(),c("button",{key:0,class:"flex items-center select-none w-full",type:"button",onClick:i},[tt(S.$slots,"trigger"),d(t(fe),{class:q(["square-20 text-grey-40 ml-1 transition",{"rotate-180":v.value}]),direction:"down"},null,8,["class"])])):u("",!0)]),tt(S.$slots,"footer")],2)],4)],8,["to"])):u("",!0)],64)}}}),qe={class:"flex flex-col gap-[12px]"},Re={key:0,class:"flex items-center gap-2"},We={class:"flex items-center gap-2 ty-body-bold text-black"},Ne={key:1,class:"flex items-center gap-2 ty-body-bold text-black"},Ze={class:"flex items-center gap-2 ty-body-bold text-black"},He={class:"flex flex-col gap-[12px]"},Ye={class:"flex justify-between items-center"},Xe={class:"ty-body-bold text-black"},Ge={key:0,class:"flex justify-between items-center"},Qe={class:"ty-text-16 text-black"},ts={class:"ty-body-bold text-black"},es={key:1,class:"flex justify-between items-center"},ss={class:"ty-body-bold text-black"},os={key:2,class:"flex justify-between items-center"},as={class:"ty-body-bold color-[#FE7171]"},ns={key:3,class:"flex justify-between items-center"},rs={class:"ty-body-bold color-[#FE7171]"},ls={class:"flex justify-between items-end lt-tablet:hidden"},is={class:"flex items-end"},cs={class:"flex justify-start items-center w-full gap-2"},us={class:"flex items-end"},ds="#orderInfo",ps=et({__name:"checkoutCart",props:{syncWithDesktopValidation:{type:Boolean,default:!1}},setup(l){const s=Ht(),o=st(),r=ut(),x=Ft(),_=It(),y=Tt(),p=k(!1),v=dt(),i=At(),w=Lt(),$=Pt(),{openLoginModal:f}=Yt(),{loadUserPoint:R,jpoint:V}
2=Et(),I=l,S=C(()=>i.path==="/book/platform-four/checkout/payment"),h=C(()=>S.value?!o.isOrderValidate||!o.isAutoMatch:!I.syncWithDesktopValidation&&!o.isOrderValidate),H=()=>{f("platform-four-order",!1,async()=>{var B,T,W,K;x.setState("isLogin",w.value),x.setState("userInfo",$.value.userInfo||null),x.setState("userToken",$.value.userToken||null),r.setKeyState("orderInfo","customerName",((B=$.value.userInfo)==null?void 0:B.name)||""),r.setKeyState("orderInfo","customerPhone",((T=$.value.userInfo)==null?void 0:T.phone)||""),r.setKeyState("orderInfo","customerEmail",((W=$.value.userInfo)==null?void 0:W.email)||"");const P={service:"regular",zip:o.addressInfo.zipcode,phone:((K=_.userInfo)==null?void 0:K.phone)||"",serviceDate:o.selectedDay,hour:o.availableDate.hour,fee:y.totalPrice,product_nos:[]};try{await R();const F=await Mt(P).then(G=>G.data.reduce((L,Q)=>(L[Q.coupon]=Q,L),{}));r.setState("availableCoupons",F),r.setState("userAvailableJpoint",V.value)}catch{}const m=setTimeout(()=>{r.setState("orderStepStatus",2),v.push("/book/platform-four/checkout/info"),clearTimeout(m)},800)})},M=C(()=>{switch(o.orderStepStatus){case 1:return"下一步";case 2:return"前往付款";case 3:return"確認付款";default:return"下一步"}}),Y=()=>{window.dispatchEvent(new CustomEvent("platform-four-checkout-info-next"))},X=()=>{switch(r.setState("isOrderValidate",!1),o.orderStepStatus){case 1:{if(I.syncWithDesktopValidation){window.dispatchEvent(new CustomEvent("platform-four-checkout-next"));return}if(!w.value){H();return}const P=i.query.city?`/book/platform-four/checkout/info?city=${i.query.city}`:"/book/platform-four/checkout/info";v.push(P),r.setState("orderStepStatus",2),s.trackEvent("Service Info Select Step-1",i,r.mixpanelStep_1_Data);break}case 2:Y();break;case 3:{r.setState("responseData",{title:"請確認居家清潔相關規定",image:"",textClass:"text-black-0 ty-small-light grid grid-gap-3 p-[16px]",text:["<p class='ty-body'>本服務為【居家清潔】,不包含【居家深度細清/搬家、空屋清潔/裝潢後細清】。如因服務內容誤解而申請取消或更改,將依官網公告之取消/更改政策收取手續費。</p>"]}),r.setState("isShowPopup",!0);break}}};return(P,m)=>{const B=Pe,T=Me,W=je,K=Ct,F=ue,G=Xt;return n(),D(Je,{modelValue:p.value,"onUpdate:modelValue":m[0]||(m[0]=L=>p.value=L),referrer:ds,title:"價格詳情",modifiable:!1},{default:b(()=>{var L;return[e("div",qe,[t(o).selectedDay&&t(o).selectedServiceTime?(n(),c("div",Re,[d(B,{class:"square-20 text-grey-40"}),e("span",We,[e("p",null,a(t(o).selectedDay),1),e("p",null,a(t(o).selectedServiceTime),1)])])):u("",!0),(L=t(o).jackerLevelData.data)!=null&&L.price?(n(),c("div",Ne,[d(T,{class:"square-20 text-grey-40"}),e("p",null,a(`$ ${t(o).jackerLevelData.data.price} X ${t(o).availableDate.hour} hr`),1)])):u("",!0),e("div",Ze,[d(W,{class:"square-20 text-grey-40"}),e("p",null,a(t(o).availableDate.cleaner_num===1?"單人打掃":"雙人打掃"),1)])]),d(K,{class:"my-[20px]",type:"dashed",theme:"grey-30"}),e("div",He,[m[5]||(m[5]=e("p",{class:"ty-body-bold text-grey-40"},a("金額結算"),-1)),e("div",Ye,[m[1]||(m[1]=e("p",{class:"ty-body-bold text-black"},a("居家清潔"),-1)),e("p",Xe,a(`$ ${t(_t)?t(_t).toLocaleString("zh-TW"):"-"}`),1)]),t(o).dateFeeInfo.plus>0?(n(),c("div",Ge,[e("p",Qe,a(`旺季加價($ ${t(o).dateFeeInfo.plus}/hr)`),1),e("p",ts,a(`$ ${t(xt)?t(xt).toLocaleString("zh-TW"):"-"}`),1)])):u("",!0),t(o).bonusPrice>0?(n(),c("div",es,[m[2]||(m[2]=e("p",{class:"ty-text-16 text-black"},a("媒合獎勵"),-1)),e("p",ss,a(`$ ${t(z)?t(z).toLocaleString("zh-TW"):"-"}`),1)])):u("",!0),t(o).userUsedCoupon>0?(n(),c("div",os,[m[3]||(m[3]=e("p",{class:"ty-text-16 text-black"},a("優惠券折抵"),-1)),e("p",as,a(` -$ ${t(re)?t(o).userUsedCoupon.toLocaleString("zh-TW"):"-"}`),1)])):u("",!0),t(o).userUsedJpoint>0?(n(),c("div",ns,[m[4]||(m[4]=e("p",{class:"ty-text-16 text-black"},a("J 點折抵"),-1)),e("p",rs,a(` -$ ${t(le)?t(o).userUsedJpoint.toLocaleString("zh-TW"):"-"}`),1)])):u("",!0)]),d(K,{class:"my-[20px] !lt-tablet:hidden",type:"dashed",theme:"grey-30"}),e("div",ls,[m[6]||(m[6]=e("p",{class:"ty-body-bold text-black"},a("總價"),-1)),e("div",is,[t(y).originalPrice+t(z)>t(j)?(n(),D(F,{key:0,class:"mr-2 text-grey-40 line-through",num:t(y).originalPrice+t(z)},null,8,["num"])):u("",!0),e("p",{class:q(["ty-title-2 text-primary-30",t(y).originalPrice+t(z)>t(j)?"text-secondary-40":""])},a(`$ ${t(j)>
2=0?t(j).toLocaleString("zh-TW"):"-"}`),3)])])]}),trigger:b(()=>[e("div",cs,[m[7]||(m[7]=e("p",{class:"ty-body-bold text-black"},a("總價"),-1)),e("div",us,[t(y).originalPrice+t(z)>t(j)?(n(),D(F,{key:0,class:"mr-2 text-grey-40 line-through",num:t(y).originalPrice+t(z)},null,8,["num"])):u("",!0),e("p",{class:q(["ty-title-2 text-primary-30",t(y).originalPrice+t(z)>t(j)?"text-secondary-40":""])},a(`$ ${t(j)>=0?t(j).toLocaleString("zh-TW"):"-"}`),3)])])]),footer:b(()=>[d(G,{class:"w-100%",disabled:h.value,onClick:X},{default:b(()=>[$t(a(M.value),1)]),_:1},8,["disabled"])]),_:1},8,["modelValue"])}}}),fs={class:"z-100 lt-tablet:sticky lt-tablet:top-0"},ms={class:"bg-white px-4 pt-3 pb-4 hidden lt-tablet:block"},ys={key:0,class:"flex items-end"},vs={class:"ty-body-bold text-error-1 mx-1"},_s={class:"px-6 flex-1 lt-tablet:px-4 lt-tablet:pb-[16px]"},xs={class:"container-1160 mx-auto gap-[40px] tablet:grid tablet:grid-cols-[1fr_320px] tablet:grid-items-start"},bs={class:"lt-tablet:mb-[10px]"},Ss=10*60,Ks=et({__name:"checkout",setup(l){const{goToPrevStep:s}=me(),o={taichung:["台中市"]};function r(E,g){const N=typeof g=="string"?g.toLowerCase().trim():Array.isArray(g)&&typeof g[0]=="string"?g[0].toLowerCase().trim():"",A=o[N];return A!=null&&A.length?A.reduce((O,U)=>(E[U]&&(O[U]=E[U]),O),{}):E}const x=k("10:00"),_=zt({initialSeconds:Ss,autoStart:!1,onTick:({formatted:E})=>{x.value=E},onFinish:()=>{}}),y=C(()=>I.orderStepStatus>1?(_.start(),!0):(_.reset(),_.stop(),!1)),p=k("延期/取消"),v=k(!0),i=k("注意事項:"),w=k(["最晚需於服務日前兩天 17:30 前,聯絡潔客幫延期。","取消服務退款將酌收整體費用 10% 為服務手續費用。","服務開始前兩日 17:30 後 ~ 前一日 23:59 前取消或更改酌收整體服務費用 30%。","服務當天取消或更改服務則酌收整體服務費用 50%。"]),$=k(["本服務為【居家清潔】,不包含【居家深度細清/搬家、空屋清潔/裝潢後細清】。","如因服務內容誤解而申請取消或更改,將依官網公告之取消/更改政策收取手續費。","如原預約的潔客有臨時狀況無法服務,我們將會於第一時間與您聯繫,提供其他替代方案。"]),f=ut(),{clearCheckoutOnLeave:R}=ye(),V=Ft(),I=st(),S=It(),h=Tt(),H=dt(),M=At(),Y=C(()=>M.path),X=C(()=>M.path==="/book/platform-four/checkout"?14001:888),P=k(null),m=ae(),B=Lt(),T=Pt(),{loadUserPoint:W,jpoint:K}=Et(),F=gt("tablet"),G=C(()=>F.value?{zIndex:X.value}:void 0),L=C(()=>m.navbar.height+24+"px"),Q=k(!1),jt=k(null);vt("platformFourCartTeleportTarget",jt);const{validate:Dt}=Gt("platform-four",{keepValuesOnUnmount:!0,scrollToError:!0});return vt("platformFourCheckoutValidate",Dt),Qt(async()=>{var E,g,N,A,O;if(await te().then(U=>{const Z=r(U.data,M.query.city);f.setState("availableArea",Z);const J=M.query.city;if((typeof J=="string"?J:Array.isArray(J)&&typeof J[0]=="string"?J[0]:"").toLowerCase()==="taichung"){const ot=Object.keys(Z)[0];if(!ot)return;const it=Z[ot],pt=Object.entries(it!=null?it:{})[0];if(!pt)return;const[ft,ct]=pt;f.setKeyState("addressInfo","county",ot),f.setKeyState("addressInfo","district",ft),f.setKeyState("addressInfo","zipcode",ct),f.setKeyState("availableDate","region",ct),f.setKeyState("condition","region",ct),f.setKeyState("condition","address",ot+ft)}}),Q.value=!0,f.initIdempotencyKey(),f.setState("isErrorStatus",!1),await f.clearRegularCancelDeferredContext(),B.value){V.setState("isLogin",B.value),V.setState("userInfo",T.value.userInfo||null),V.setState("userToken",T.value.userToken||null),f.setKeyState("orderInfo","customerName",((E=T.value.userInfo)==null?void 0:E.name)||""),f.setKeyState("orderInfo","customerPhone",((g=T.value.userInfo)==null?void 0:g.phone)||""),f.setKeyState("orderInfo","customerEmail",((N=T.value.userInfo)==null?void 0:N.email)||""),f.setKeyState("availableDate","phone",((A=T.value.userInfo)==null?void 0:A.phone)||"");const U={service:"regular",zip:I.addressInfo.zipcode,phone:((O=S.userInfo)==null?void 0:O.phone)||"",serviceDate:I.selectedDay,hour:I.availableDate.hour,fee:h.totalPrice,product_nos:[]};try{await W();const Z=await Mt(U).then(J=>J.data.reduce((rt,lt)=>(rt[lt.coupon]=lt,rt),{}));f.setState("availableCoupons",Z),f.setState("userAvailableJpoint",K.value)}catch{}}(I.orderStepStatus===3||I.orderStepStatus===2)&&(f.setState("skipPaymentLeaveOnce",!0),H.push("/book/platform-four/checkout"))}),wt(()=>{_.stop(),R()}),(E,g)=>{const N=ee,A=se,O=oe;return n(),c(at,null,[d(Ie),e("div",{class:"pt-40px pb-85px lt-tablet:py-0 flex flex-1 flex-col",ref_key:"pageRoot",ref:P},[e("div",fs,[e("div",ms,[d(t(ne),{onClick:t(s)},{extension:b(()=>[y.value?(n(),c("div",ys,[g[0]||(g[0]=e("p",{class:"ty-body"},a("請於"),-1)),e("p",vs,a(x.value),1),g[1]||(g[1]=e("p",{class:"ty-body"},a("完成預約"),-1))])):u("",!0)]),_:1},8,["onClick"])]),d(be,{class:"z-101 mx-auto w-full relative mb-[80px] max-w-[605px] top-[-8px] lt-tablet:mb-[38px] lt-tablet:max-w-[calc(100%-70px)]"})]),e("div",_s,[e("div",xs,[e("div",bs,[d(N,{"page-key":Y.value},null,8,["page-key"])]),e("div",{class:"sticky grid gap-6",style:nt({top:Q.value&&t(F)?"auto":L.value})},[d(A,null,{default:b(()=>[d(ps,{"sync-with-desktop-validation":!0})]),_:1}),d(O,{class:"bg-white p-5 rounded-3 solid bg-white p-5 rounded-3 solid border border-grey-20",title:p.value,isShowSub:v.value,subTitle:i.value,cancelPolicyForm:w.value,subCancelPolicyForm:$.value},null,8,["title","isShowSub","subTitle","cancelPolicyForm","subCancelPolicyForm"])],4)])])],512),e("div",{class:"sticky bottom-0 left-0 right-0 bg-primary-30 rounded-[8px_8px_0_0]",id:"orderInfo",style:nt(G.value)},null,4)],64)}}});
2export{Ks 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.