1import{d as w,e as F,Q as b,R as S}from"./element-plus-Dili4IpY.js";import{_ as h}from"./svgIcon-DyfUxL_w.js";import{b as B,u as D}from"./vue-router-D4NYRPph.js";import{a as V,t as $,_ as E}from"./index-BfKQpagI.js";import{d as H,X as L,w as M,k as R,ac as N,c,a,O as u,Q as l,L as n,F as y,a6 as g,J as q,K as f,I as v,o as i}from"./@vue-DUk3FjKi.js";import"./@element-plus-qCw2jGK4.js";import"./lodash-es-Dbzq5gb_.js";import"./async-validator-CRx4dHSJ.js";import"./@ctrl-r5W6hzzQ.js";import"./@popperjs-DB1lLFnh.js";import"./normalize-wheel-es-BQoi3Ox2.js";import"./pinia-CrzrwD2A.js";import"./js-cookie-Cz0CWeBA.js";import"./axios-NIGUFBhG.js";import"./renderer-pixi-BZdT2t-D.js";import"./uuid-CtRu48qb.js";import"./rxjs-BYzC9ufy.js";import"./vue-i18n-Fhtom3Bx.js";import"./@intlify-CXEHj0wc.js";import"./vue-DbL3nRc-.js";import"./pouchdb-find-CS0sgkcH.js";import"./pouchdb-errors-Nr-dVszh.js";import"./pouchdb-fetch-CVv6zVb8.js";import"./pouchdb-abstract-mapreduce-DqzPn1tM.js";import"./pouchdb-binary-utils-Cpnoy8M5.js";import"./pouchdb-collate-BelqQoNM.js";import"./pouchdb-utils-Bco8-zda.js";import"./events-Be9xdRwo.js";import"./spark-md5-CnnoW4q1.js";import"./pouchdb-md5-TKLkGpLu.js";import"./pouchdb-mapreduce-utils-BuWW8dPW.js";import"./pouchdb-selector-core-CLpW_zHq.js";import"./pouchdb-960pUlw4.js";import"./vuvuzela-D4e09Uxl.js";import"./dexie-2jmnBxhj.js";import"./long-TZbvz1zH.js";import"./protobufjs-CigtOYyM.js";import"./@protobufjs-LQCbOUwE.js";import"./mitt-DJ65BbbF.js";import"./register-service-worker-TYP_X6yW.js";import"./onyx-reditor-CMHA5PJY.js";import"./opencc-js-CD_vXXFw.js";const T=H({name:"UserFeedbackFaq",components:{SvgIcon:h},setup(){const t=L({category:[],categoryID:"",faqs:[],activeIds:[]}),r=V(),m=D(),s=B();M(s,async()=>{await p()}),R(async()=>{await _()});const _=async()=>{const o=await r.getFaqCategory();t.category=o.data.results,s.name==="Faq"&&(s.query.id?(t.categoryID=s.query.id,await p()):(m.push({name:"Faq",query:{id:t.category[0]._id}}),t.categoryID=t.category[0]._id))},p=async()=>{const o=await r.getFaqs({limit:1e4,page:1,sortBy:"createdAt",category:t.categoryID});if(o.data.results.length)t.faqs=o.data.results;else return},d=o=>{o!==s.query.id&&(t.categoryID=o,m.push({name:"Faq",query:{id:o}}))};return{t:$,...N(t),clickHandle:d,route:s,router:m}}}),U={class:"faq-container"},z={class:"faq-category"},Q={class:"faq-category-list"},A={class:"faq-category-title font-format-normal multiple-family white-color"},J=["onClick"],K={class:"font-format-normal multiple-family white-color"},O={class:"font-format-small regular-family white-color"},X={ref:"faqMain",class:"faq-main"},j={class:"collapse-main-title font-format-normal multiple-family"},G=["id","innerHTML"];function P(t,r,m,s,_,p){const d=h,o=w,k=F,C=b,I=S;return i(),c("div",U,[a("div",z,[a("div",Q,[a("p",A,l(t.t("userCenter.classify")),1),u(o,null,{default:n(()=>[(i(!0),c(y,null,g(t.category,e=>(i(),c("div",{key:e._id,class:q(["faq-category-item",{"active-menu":t.route.query.id===e._id}]),onClick:W=>t.clickHandle(e._id)},[a("p",{class:q(["font-format-normal omitText",t.route.query.id===e._id?"multiple-family":"medium-family"])},l(e.name),3),e.count?(i(),f(d,{key:0,name:"icon_arrow_right",size:"16"})):v("",!0)],10,J))),128)),r[2]||(r[2]=a("div",{class:"faq-category-last-div"},null,-1))]),_:1,__:[2]})]),u(k,{class:"gb-button faq-feedback-btn",onClick:r[0]||(r[0]=e=>t.router.push({name:"Service"}))},{default:n(()=>[a("div",null,[a("p",K,l(t.t("userCenter.customerService")),1),a("p",O,l(t.t("userCenter.tips1")),1)])]),_:1})]),a("div",X,[t.faqs.length?(i(),f(o,{key:0,class:"collapse-main"},{default:n(()=>[u(I,{modelValue:t.activeIds,"onUpdate:modelValue":r[1]||(r[1]=e=>t.activeIds=e)},{default:n(()=>[(i(!0),c(y,null,g(t.faqs,e=>(i(),f(C,{key:e._id,name:e._id},{title:n(()=>[a("p",j,l(e.title),1)]),default:n(()=>[a("div",{id:e._id,class:"collapse-main-description font-format-medium regular-family",innerHTML:e.description},null,8,G)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"])]),_:1})):v("",!0)],512)])}const Ut=E(T,[["render",P],["__scopeId","data-v-da786152"]]);export{Ut 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.