import{b7 as M,u as U,a as j,t as z,O as H,h as R,aS as A,aT as n,bf as _,a$ as s,N as c,ba as e,b0 as i,aY as a,b9 as W,a_ as I,bg as p,bh as v,bi as Y}from"./index-xnhGKCfe.js";import{I as Z}from"./index-Czg2jSsg.js";import{P as J}from"./index-97-mhYEo.js";import{_ as K}from"./SubButton.vue_vue_type_style_index_0_lang-ClM4jLgx.js";import{u as X}from"./index-CExwpARe.js";import"./pre-D84pmYLY.js";import"./currency-DTUBf2lI.js";import"./useProtocol-DJp7lFWi.js";import"./index-BPVaJMve.js";import"./use-route-ooe9RtXE.js";import"./use-placeholder-CaxDMxdA.js";import"./use-height-D2WRcW7G.js";import"./index-C0hGNjES.js";const ss="/images/banner-DIZ3j1EO.webp",es="/images/6006_faq-CP6f0vzM.webp",ts={class:"workOrder-main"},os={class:"banner"},ns=["src"],as={class:"workOrder-cont"},is={class:"service-text"},rs=["src"],ls={class:"right-arrow"},cs=["onClick"],us={class:"service-text"},ds={class:"right-arrow"},gs={class:"workOrder-cont"},ms={class:"tip-icon"},_s={key:0,class:"home-tips"},ps={key:1,class:"home-tips"},vs={class:"dialog-message"},fs={class:"dialog-btn"},Ns=M({__name:"index",setup(ks){var C,b;const{handleQueryProgress:L,serviceList:T,goServicePage:S,getServiceList:x,goToFaq:f,getHomeConfig:F,homeConfig:u,showDialogForm:k,goAutoServicePage:h}=X(),{onAnalyticsTrigger:N}=R(),{t:l}=U(),{getLanguageList:O,getActiveLanguage:B}=j(),D=z(),P=[l("t1221"),l("t1222")],q=O.value.find(r=>{var t;return(r==null?void 0:r.toLocaleLowerCase())===((t=B.value)==null?void 0:t.toLocaleLowerCase())}),V=String(((C=window._CONFIG_)==null?void 0:C.tenantId)??((b=window._DATA_)==null?void 0:b.tenantId)??"3004"??"")==="6006";return H(()=>{N("cs_ticket_trigger",{}),x(),F()}),(r,t)=>{const E=I,g=I,Q=Z,G=Y;return n(),A(J,null,{extra:_(()=>[c(E,{onClick:t[0]||(t[0]=m=>e(D).push({name:"language"})),name:"language_"+e(q),iconClass:"language",class:"language"},null,8,["name"])]),default:_(()=>{var m,w,y,$;return[s("div",ts,[s("section",os,[s("img",{src:((m=e(u))==null?void 0:m.bannerUrl)||e(ss),alt:""},null,8,ns)]),s("section",as,[s("h2",null,i(r.$t("selfService")),1),s("ul",null,[(w=e(u))!=null&&w.isEnabledFaq?(n(),a("li",{key:0,onClick:t[1]||(t[1]=(...o)=>e(f)&&e(f)(...o))},[s("div",is,[V?(n(),a("img",{key:0,class:"img-icon",src:e(es),alt:""},null,8,rs)):(n(),A(g,{key:1,name:"icon_FAQ",class:"img-icon"})),t[5]||(t[5]=s("span",null,"FAQ",-1))]),s("div",ls,[c(g,{name:"icon_return_01",class:"rightArrow"})])])):W("",!0),(n(!0),a(p,null,v(e(T),o=>(n(),a("li",{key:o.id,onClick:d=>e(S)(o)},[s("div",us,[c(Q,{class:"img-icon",src:o.icon},null,8,["src"]),s("span",null,i(o.displayName),1)]),s("div",ds,[c(g,{name:"icon_return_01",class:"rightArrow"})])],8,cs))),128))])]),s("section",gs,[s("h2",ms,i(r.$t("reminder")),1),(y=e(u))!=null&&y.kindTipsText?(n(),a("div",_s,[(n(!0),a(p,null,v(($=e(u))==null?void 0:$.kindTipsText.split(`
`),(o,d)=>(n(),a("p",{key:d},i(o),1))),128))])):(n(),a("div",ps,[(n(),a(p,null,v(P,(o,d)=>s("p",{key:d},i(o),1)),64))]))]),c(K,{onSubmit:e(L),text:r.$t("progressQuery")},null,8,["onSubmit","text"])]),c(G,{modelValue:e(k),hideClose:!1,maskNotClose:!0,title:e(l)("t1230"),customClass:"faq-dialog",onClose:t[4]||(t[4]=o=>k.value=!1)},{default:_(()=>[s("section",vs,[s("p",null,i(e(l)("t1231")),1),s("div",fs,[s("section",{class:"remindBtn",onClick:t[2]||(t[2]=o=>e(h)(1))},i(e(l)("t1232")),1),s("section",{class:"remindBtn comfir-btn",onClick:t[3]||(t[3]=o=>e(h)(0))},i(e(l)("t1233")),1)])])]),_:1},8,["modelValue","title"])]}),_:1})}}});export{Ns as default};
