1import{_ as X}from"./DhJwmxzA.js";import{d as Z,Y as ee,x as te,a2 as oe,s as se,a8 as re,aI as ne,J as ie,aJ as ae,ag as le,ai as ue,r as D,i as pe,ao as b,ap as O,ac as ce,c as me,o as de,g as s,k as r,w as p,$ as fe,a as o,H as be,aK as ge,l as _}from"./DZoUjrKx.js";import{_ as _e}from"./C3Kbv8lx.js";import{_ as ve}from"./BncccEzO.js";import{_ as he}from"./BLn6dW8Y.js";import{_ as xe}from"./pijlIKxp.js";import{_ as ye}from"./CmeTQzQF.js";import{u as Ce,c as Ie,_ as ke}from"./COcftAJz.js";import{b as we}from"./BCNJxvGT.js";import{a as Te}from"./BB4DpIHh.js";/* empty css */import{A as P}from"./DU1X-ngK.js";import"./DH9OHKJv.js";import"./DwmVY1fc.js";import"./C4nDtbsx.js";import{p as ze}from"./BOReQQ3F.js";import{_ as qe}from"./BlnIB1dT.js";import{_ as $e}from"./DMbo1yZW.js";import"./Ch1q7-5O.js";import{a as De}from"./B0oSgadj.js";import"./BscWaSPj.js";import"./BOQ_U2IK.js";import"./C874-iVt.js";import"./CvzaTUlh.js";import"./xagX8YDy.js";import"./BG0Uxk2A.js";import"./Hg5H5z-c.js";import"./DXZBXwJ0.js";import"./_8N5HVOF.js";import"./WWfiJCzG.js";import"./C7CNVYA0.js";import"./mtSx5oSW.js";import"./CUmrnKdJ.js";const Oe={class:"container-800 mx-auto pt-40px pb-85px lt-tablet:py-0"},Pe={class:"lt-tablet:sticky lt-tablet:z-100 lt-tablet:top-0"},Se={class:"bg-white px-4 pt-3 pb-4 hidden lt-tablet:block"},Je={class:"mb-6 px-6 lt-tablet:px-4"},Ee={class:"shadow-[0px_2px_20px_0px_#1324581A] rounded-2 bg-white"},Ne={class:"py-6 lt-tablet:pt-3 bg-white rounded-[0_0_8px_8px]"},Ue={id:"products",class:"px-6 lt-tablet:px-4"},Ae={class:"mt-3 p-4 bg-grey-10 rounded-8px"},Fe={class:"px-6 lt-tablet:px-4"},Ve={class:"px-6 lt-tablet:px-4"},je={class:"grid grid-cols-2 gap-6"},Be={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"},Le={class:"hidden sticky bottom-0 left-0 right-0 bg-white z-106 p-[8px_20px_20px] lt-tablet:block"},v="organize",kt=Z({__name:"organize",setup(Re){const C=ee.organize.trackingName,S=te(),J=oe(),E=se(),I=re(),k=ne(),{scrollToElement:N}=ie(),{cookieUser:w}=ae(),{start:U,finish:A}=le(),{clearCartCache:F}=Te(v),{validate:V}=ue(C,{keepValuesOnUnmount:!0,scrollToError:!0}),{organizeType:j,customHopeTimeOptions:B,initSelectedProducts:L,initSelectedType:R,availableArea:G,selectedRegion:c}=Ce(),h=D(!1),t=D({customerName:"",customerPhone:"",customerEmail:"",address:"",county:"",district:"",zipCode:"",userComment:"",hopeTime:"",registerContent:{product:[],isOffice:!1,img:[],lineID:""}}),m=pe(()=>({name:b().required(),phone:b().phone().required(),email:b().email().required("è«è¼¸å
¥Email"),lineID:b().required("è«è¼¸å
¥Line ID"),hopeTime:b().required("è«é¸ææåæé")})),{setValue:H}=O("addressInfo.county"),{setValue:K}=O("addressInfo.district"),T=()=>{t.value.county=c.value.county,t.value.district=c.value.district,H(c.value.county),K(c.value.district)};T(),ce([c],()=>{T()},{deep:!0});const z=()=>{S.push({path:"/n/services/organize"})},d=(l,e)=>{t.value[l]=e},M=l=>{const{fieldName:e,value:a}=l;e==="zipcode"?t.value.zipCode=a:t.value[e]=a},W=l=>{t.value.registerContent.isOffice=l,t.value.registerContent.product.forEach(e=>{e.quantity=0})},Y=({description:l,quantity:e})=>{for(let a=0;a<t.value.registerContent.product.length;a++)if(t.value.registerContent.product[a].description===l){t.value.registerContent.product[a].quantity=e;break}},Q=()=>{N("#products")},q=async()=>{const l=t.value.registerContent.product.filter(n=>n.quantity>0),e=l.map(({description:n,unit:u,quantity:f})=>`${n}: ${f} ${u}`),a=l.map(({description:n,quantity:u})=>({service_name:n,service_quantity:u}));if(await I.trackSubmitRegisterOrder("æ¶ç´æ´ç",{service_detail_selected:a,expected_service_period:t.value.hopeTime==="no"?"":t.value.hopeTime}),e.length===0&&!t.value.registerContent.isOffice){h.value=!0,Q();return}h.value=!1;const{valid:x}=await V();if(!x)return;U();const g=await De(v,t.value.registerContent.img).then(n=>n),y={orderType:"organize",userToken:w.value&&w.value.token||"",orderData:{os:"web",...t.value,hopeTime:t.value.hopeTime==="no"?"":t.value.hopeTime,registerContent:JSON.stringify({product:e.join(", "),isOffice:t.value.registerContent.isOffice,img:g.length?g.join(","):"",lineID:t.value.registerContent.lineID})}};ze(y).then(async n=>{var u;if(n.success===!0){const f=ge();await I.trackInquiry({route:J,customerId:(u=k.value.userInfo)!=null&&u.no?String(k.value.userInfo.no):"",business:we({hashId:n.data.hashID,serviceType:v,serviceName:"æ¶ç´æ´ç",city:t.value.county,district:t.value.district}
1),journeySnapshot:f.createSnapshot(),email:t.value.customerEmail,phone:t.value.customerPhone}),window.location.href=`/n/user/register/${n.data.hashID}`,F()}}).catch(n=>{A(),E.error(n.type==="client"?n.message:"æç«è¨å®æéå°é¯èª¤ï¼è«ç¨å¾å試")})};return t.value.registerContent.product=L(),t.value.registerContent.isOffice=R(),(l,e)=>{const a=X,x=fe,g=_e,y=ve,n=he,u=xe,f=ye,$=be;return de(),me("main",Oe,[s("section",null,[s("div",Pe,[s("div",Se,[r(a,{size:"small",onClick:z},{icon:p(()=>[r(o(P),{direction:"left",class:"square-20"})]),default:p(()=>[e[9]||(e[9]=_(" è¿å "))]),_:1})]),r($e)])]),s("section",Je,[s("section",Ee,[e[16]||(e[16]=s("header",{class:"flex justify-between items-center p-x-20px p-y-16px bg-primary-10 rounded-[8px_8px_0_0]"},[s("h2",{class:"ty-body-title"},"æåè³æ")],-1)),s("div",Ne,[e[11]||(e[11]=s("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)),s("div",Ue,[r(x,null,{default:p(()=>[r(o(ke),{service:v,count:6,"organize-type":o(j),products:o(t).registerContent.product,"selected-is-office":o(t).registerContent.isOffice,"is-show-warning":o(h),onSetSelectIsOffice:W,onUpdate:Y},null,8,["organize-type","products","selected-is-office","is-show-warning"])]),_:1}),e[10]||(e[10]=s("div",{class:"mt-3 mb-4"},[s("p",{class:"mb-2"},"è«ä¸å³ç
§ç以å éæ¶ç´é¡§å諮詢æå"),s("ol",{class:"ml-5 list-decimal text-grey-40"},[s("li",null," è«ä¾ææé¸çæåååï¼ææå°æç°å¢ç
§çï¼ç
§çä¸å³æ¸é 6 å¼µçºä¸éï¼ã "),s("li",null," çºç¡éåç¾ç©ºéå
§çæ´é«é
ç½®ä»¥å©æ¶ç´å¸«è©ä¼°ï¼è«ç¡å¯è½å°æ«å忽屿éï¼ä¸¦æ¼éå£æç©ºéçååè§è½ææç
§çã ")])],-1)),r(o(qe),{class:"mt-4","service-name":o(C),examples:o(Ie).examples,"mixpanel-event":"Order Product Photo Sample Checked",description:"çºç¡éåç¾ç©ºéå
§çæ´é«é
ç½®ä»¥å©æ¶ç´å¸«è©ä¼°ï¼è«ç¡å¯è½å°æ«å忽屿éï¼ä¸¦æ¼éå£æç©ºéçååè§è½ææç
§çã"},null,8,["service-name","examples"]),s("div",Ae,[r(g,{"model-value":o(t).registerContent.img,limit:6,"onUpdate:modelValue":e[0]||(e[0]=i=>o(t).registerContent.img=i)},null,8,["model-value"])])]),e[12]||(e[12]=s("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)),s("div",Fe,[r(y,{class:"mb-18px",options:o(B),"option-label":"label","option-value":"value",label:"é ææåæé","sub-label":"師å
å°æ¼24å°æå
§ä¸»åè¯ç¹«æ¨ï¼ç¢ºèªæåæ¥æèæéãè«çæéçä¾é»ï¼æè¬æ¨çé
åã",placeholder:"è«é¸æå¸ææåçæé",name:"hopeTime",rule:o(m).hopeTime,required:"",onChange:e[1]||(e[1]=i=>d("hopeTime",i))},null,8,["options","rule"]),r(n,{name:"remark",label:"è¨å®å註",placeholder:"è¨å®å註",onChange:e[2]||(e[2]=i=>d("userComment",i))})]),e[13]||(e[13]=s("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)),s("div",Ve,[r(u,{name:"name",class:"mb-18px",label:"å§å",placeholder:"ç實å§å",required:!0,rule:o(m).name,autocomplete:"name",onChange:e[3]||(e[3]=i=>d("customerName",i))},null,8,["rule"]),s("div",je,[r(u,{name:"phone",label:"ææ©",placeholder:"ææ©è碼",class:"mb-18px",required:!0,rule:o(m).phone,type:"tel",autocomplete:"tel",maxlength:"10",onChange:e[4]||(e[4]=i=>d("customerPhone",i))},null,8,["rule"]),r(u,{name:"email",label:"Email",placeholder:"[email protected]",class:"mb-18px",required:!0,rule:o(m).email,type:"email",autocomplete:"email",onChange:e[5]||(e[5]=i=>d("customerEmail",i))},null,8,["rule"])]),r(u,{name:"lineID",label:"Line ID",placeholder:"Line IDï¼ééåå©ç¨ ID 被å 好åä¸¦æ¥æ¶éçè¨æ¯ï¼",class:"mb-18px",required:!0,rule:o(m).lineID,autocomplete:"line-ID",onChange:e[6]||(e[6]=i=>o(t).registerContent.lineID=i)},null,8,["rule"]),r(f,{required:"","zipcode-data":o(G),"selected-address":{address:o(t).address,county:o(t).county,district:o(t).district,zipcode:o(t).zipCode},onChange:M},null,8,["zipcode-data","selected-address"])])]),s("div",Be,[r(a,{size:"small",onClick:z},{icon:p(()=>[r(o(P),{direction:"left",class:"square-20"})]),default:p(()=>[e[14]||(e[14]=_(" è¿å "))]),_:1}),r($,{size:"l",class:"w-33",onClick:e[7]||(e[7]=i=>q())},{default:p(()=>e[15]||(e[15]=[_(" éåºéæ±å® ")])),_:1})])])]),s("section",Le,[r($,{size:"l",class:"w-full",onClick:e[8]||(e[8]=i=>q())},{default:p(()=>e[17]||(e[17]=[_("éåºéæ±å®")])),_:1})])])}}});
1export{kt 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.