1import{d as $,i as p,c as Z,S as K,l as o,y as C,o as n,m as s,t as g,_ as H,n as O,f as X,c9 as Y,h as e1,b4 as _,k as t1,Q as s1,p as T,e as w,C as b,bV as P,b as a1,q as l1,T as i1,s as n1,a4 as o1,G as U}from"./D1FcBL9p.js";import{_ as V}from"./BlRCviZe.js";import{_ as r1,i as c1}from"./Datq3-do.js";import{p as d1,q as u1,r as C1,s as m1,c as v1,u as g1,a as p1,b as h1,t as f1,g as y1,n as w1,o as b1,m as L1,h as x1}from"./DaI1dtU0.js";/* empty css */import{u as _1}from"./C8uHJLGK.js";import"./DnzarRWK.js";import"./CXXDZoq4.js";const k1={key:0,class:"image-reader-container"},I1={class:"image-reader-wrapper"},T1=["disabled"],V1={class:"image-display-area"},$1={key:0,class:"display-placeholder"},H1={class:"placeholder-content"},M1={class:"placeholder-text"},S1=["src","alt"],R1={key:2,class:"image-counter"},D1=["disabled"],q1=$({name:"ImageReader",__name:"index",props:{imageList:{},initialIndex:{}},setup(c){const d=c,i=p(d.initialIndex||0),L=Z(()=>d.imageList&&d.imageList.length>0&&d.imageList[i.value]||"");K(()=>d.imageList,()=>{d.imageList&&d.imageList.length>0?i.value=Math.min(i.value,d.imageList.length-1):i.value=0},{immediate:!0});const m=()=>{i.value>0&&i.value--},f=()=>{i.value<d.imageList.length-1&&i.value++},k=r=>{console.error("å¾çå 载失败:",r)};return(r,v)=>c.imageList&&c.imageList.length>0?(n(),o("div",k1,[s("div",I1,[c.imageList.length>1?(n(),o("button",{key:0,class:"nav-button nav-button-left",onClick:m,disabled:i.value===0},[...v[0]||(v[0]=[s("img",{src:V,class:"arrow-icon"},null,-1)])],8,T1)):C("",!0),s("div",V1,[L.value.startsWith("test-")?(n(),o("div",$1,[s("div",H1,[v[1]||(v[1]=s("div",{class:"placeholder-icon"},"ð·",-1)),s("div",M1,"åç "+g(i.value+1),1)])])):(n(),o("img",{key:1,src:L.value,alt:`å¾ç ${i.value+1}`,class:"display-image",onError:k},null,40,S1)),c.imageList.length>1?(n(),o("div",R1,g(i.value+1)+" / "+g(c.imageList.length),1)):C("",!0)]),c.imageList.length>1?(n(),o("button",{key:1,class:"nav-button nav-button-right",onClick:f,disabled:i.value===c.imageList.length-1},[...v[2]||(v[2]=[s("img",{src:V,class:"arrow-icon arrow-right"},null,-1)])],8,D1)):C("",!0)])])):C("",!0)}}),B1=H(q1,[["__scopeId","data-v-07e21821"]]),E1=["src"],P1={key:1,class:"pdf-placeholder"},U1=$({__name:"PdfViewer",props:{src:{},height:{default:"600px"}},setup(c){return(d,i)=>(n(),o("div",{class:"pdf-viewer",style:O({height:c.height})},[c.src?(n(),o("iframe",{key:0,src:c.src,class:"pdf-iframe",frameborder:"0"},null,8,E1)):(n(),o("div",P1,[...i[0]||(i[0]=[s("p",null,"PDF ææ¡£å è½½ä¸...",-1)])]))],4))}}),Z1=H(U1,[["__scopeId","data-v-caf0417c"]]),A1={class:"flex"},N1={class:"flex-1 py-8 px-6 pl-10% pr-10% w-90%"},z1={class:"flex items-center justify-between mb-6"},j1={class:"flex items-center gap-4"},F1={class:"text-xl font-medium"},G1={class:"flex flex justify-between"},Q1={key:0,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},W1={width:"100%",style:{"min-height":"600px"}},J1={class:"big-card-css"},K1={key:0,style:{width:"100%"}},O1=["innerHTML"],X1=["innerHTML"],Y1={class:"flex items-center gap-2 text-xs text-gray-500 mb-20px"},e6={class:"flex items-center mr-10px ml-10px"},t6={class:"span-title-smell"},s6={class:"flex flex-col w-100%",style:{"margin-top":"20px"}},a6={class:"mt-20px mb-20px"},l6={class:"use-inter"},i6={key:0,class:"loading-overlay"},n6="empty-line",o6=$({__name:"detailPc",setup(c,{expose:d}){const i=p(!1),{locale:L,t:m}=X(),f=Y(),k=Z(()=>{var t;return L.value==="en"||((t=f==null?void 0:f.getCurrentLocale)==null?void 0:t.lang)==="en"}),r=o1(),v=e1(),{langType:I,isTradChin:M}=_1(),a=p({}),y=p([]),A=/<p>(?:\s| | |<br\s*\/?>)*<\/p>/gi,S=t=>t?t.replace(A,`<p class="${n6}"><br></p>`):"",R=_("ssrDetailData",p(null));
1_("ssrRoute",r),_("ssrLangType",I),R.value&&(a.value=R.value,a.value.content=S(a.value.content));const N=(t,e,l="1")=>{switch(t){case"1":return x1({contentId:e,langType:l});case"2":return L1({contentId:e,langType:l});case"3":return b1({contentId:e,langType:l});case"4":return w1({contentId:e,langType:l});default:return null}},D=async()=>{const t=await N(String(r.query.type),String(r.query.id),String(I.value||"1"));t&&(a.value=t,a.value.content=S(a.value.content),B(),E())},z=_("ssrRelatedData",p([])),x=p(z.value||[]),j=async t=>{if(t){i.value=!0;try{window.scrollTo({top:0,behavior:"smooth"}),await new Promise(e=>setTimeout(e,500)),await q(t)}finally{i.value=!1}}},q=async t=>{t==null||t.type==null&&t.id==null||(v.replace({query:{...r.query,type:t.type,id:t.id}}),await D())},B=async()=>{if(!a.value||!a.value.basicId)return;const t=String(a.value.basicId),e=r.query.type;try{let l;e=="1"?l=await d1(t):e=="2"?l=await u1(t):e=="3"?l=await C1(t):e=="4"&&(l=await m1(t)),l&&(y.value=Array.isArray(l)?l:[])}catch(l){console.error(m("counselingDetail.getImageUrlFail"),l),y.value=[]}},F=async t=>{await v1(t)&&(a.value.isCollect=!0)},G=async t=>{await g1(t)&&(a.value.isCollect=!1)},Q=async t=>{await p1(t)&&(a.value.isLike=!0)},W=async t=>{await h1(t)&&(a.value.isLike=!1)},J=async()=>{try{const t=String(r.query.id||"");if(t)try{await f1({contentId:t})}catch(h){console.warn("contentShare failed",h)}const e=window.location.href;await(async h=>{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(h);else{const u=document.createElement("textarea");if(u.value=h,u.style.position="fixed",u.style.left="-999999px",u.style.top="-999999px",document.body.appendChild(u),u.focus(),u.select(),!document.execCommand("copy"))throw new Error(m("common.copyError"));document.body.removeChild(u)}})(e),U.success(m("counselingDetail.copySuccess"))}catch(t){console.error(m("counselingDetail.shareFail"),t),U.error(m("counselingDetail.copyError"))}},E=async t=>{const e=r.query.parentColumnId?String(r.query.parentColumnId):r.query.columnId?String(r.query.columnId):"workersRights",l=await y1({columnId:e,langType:I.value||"1",pageNo:"1",pageSize:"4"});if(l){const h=r.query.id;x.value=l.list.filter(u=>u.id!==h).slice(0,3)}};return t1(async()=>{!a.value||!a.value.title?await D():s1(()=>{B(),(!x.value||x.value.length===0)&&E()})}),d({getHandleDetail:q}),(t,e)=>(n(),o("div",{class:n1(["min-h-screen",{"english-font":k.value}]),style:{"background-color":"#fff"}},[s("div",A1,[s("main",N1,[s("div",z1,[s("div",j1,[s("img",{src:V,class:"w-24px h-24px",alt:"è¿åæé®",style:{cursor:"pointer"},onClick:e[0]||(e[0]=l=>w(v).back())}),s("h1",F1,g(a.value.title||a.value.name||"å¨è¯¢è¯¦æ
"),1)]),s("div",G1,[a.value.isCollect?a.value.isCollect?(n(),o("button",{key:1,onClick:e[2]||(e[2]=l=>G(a.value.basicId)),class:"search-button-collection border-css"},[...e[6]||(e[6]=[s("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s("path",{d:"M13.4589 4.00009C14.249 4.00542 15.0826 4.24383 15.6565 4.77125C16.6836 5.71542 17.0594 6.86113 16.9931 7.99424C16.928 9.10735 16.4402 10.1871 15.7846 11.0698C14.8648 12.3083 13.4847 13.5194 12.3621 14.4062C11.7961 14.8533 11.2859 15.2252 10.9168 15.4858C10.7323 15.6162 10.5826 15.7193 10.4785 15.7898C10.4379 15.8173 10.4039 15.8398 10.3776 15.8573L10.3575 15.8707C10.3497 15.8758 10.343 15.8805 10.3372 15.8845L10.3254 15.8926C10.3218 15.8949 10.3189 15.8965 10.3168 15.8979C10.1369 16.0155 9.90383 16.0316 9.71296 15.941L9.63405 15.8956L9.62234 15.8873L9.59109 15.8661C9.56433 15.8478 9.52027 15.8176 9.47391 15.7852C9.37288 15.7147 9.22765 15.6117 9.04814 15.4813C8.68934 15.2206 8.19261 14.8488 7.64039 14.4017C6.54471 13.5146 5.19538 12.3049 4.27803 11.0698C3.62823 10.1949 3.11216 9.12065 3.01636 8.01012C2.91864 6.87647 3.26316 5.72214 4.29756 4.77125C4.87137 4.2438 5.70496 4.00543 6.49512 4.00009C7.2894 3.99473 8.14371 4.22315 8.77237 4.75462L8.97705 4.94212C9.3911 5.34601 9.72874 5.84076 9.97701 6.26216C10.2652 5.77305 10.6738 5.1846 11.1824 4.75462L11.3027 4.6586C11.9174 4.19569 12.7144 3.99513 13.4589 4.00009Z",fill:"#E60013"})],-1),b(" å·²æ¶è ",-1)])])):C("",!0):(n(),o("button",{key:0,onClick:e[1]||(e[1]=l=>F(a.value.basicId)),class:"search-button-collection"},[...e[5]||(e[5]=[s("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s("path",{d:"M13.4589 4.00009C14.249 4.00542 15.0826 4.24383 15.6565 4.77125C16.6836 5.71542 17.0594 6.86113 16.9931 7.99424C16.928 9.10735 16.4402 10.1871 15.7846 11.0698C14.8648 12.3083 13.4847 13.5194 12.3621 14.4062C11.7961 14.8533 11.2859 15.2252 10.9168 15.4858C10.7323 15.6162 10.5826 15.7193 10.4785 15.7898C10.4379 15.8173 10.4039 15.8398 10.3776 15.8573L10.3575 15.8707C10.3497 15.8758 10.343 15.8805 10.3372 15.8845L10.3254 15.8926C10.3218 15.8949 10.3189 15.8965 10.3168 15.8979C10.1369 16.0155 9.90383 16.0316 9.71296 15.941L9.63405 15.8956L9.62234 15.8873L9.59109 15.8661C9.56433 15.8478 9.52027 15.8176 9.47391 15.7852C9.37288 15.7147 9.22765 15.6117 9.04814 15.4813C8.68934 15.2206 8.19261 14.8488 7.64039 14.4017C6.54471 13.5146 5.19538 12.3049 4.27803 11.0698C3.62823 10.1949 3.11216 9.12065 3.01636 8.01012C2.91864 6.87647 3.26316 5.72214 4.29756 4.77125C4.87137 4.2438 5.70496 4.00543 6.49512 4.00009C7.2894 3.99473 8.14371 4.22315 8.77237 4.75462L8.97705 4.94212C9.3911 5.34601 9.72874 5.84076 9.97701 6.26216C10.2652 5.77305 10.6738 5.1846 11.
11824 4.75462L11.3027 4.6586C11.9174 4.19569 12.7144 3.99513 13.4589 4.00009ZM13.4511 5.16137C12.9473 5.15797 12.4662 5.28785 12.1144 5.52275L11.9715 5.62936C11.5696 5.96915 11.2103 6.49496 10.9418 6.97132C10.8111 7.20329 10.7085 7.41185 10.6387 7.56179C10.6039 7.63655 10.5771 7.69627 10.5598 7.73643C10.5511 7.7565 10.5451 7.77214 10.541 7.7818C10.5391 7.78649 10.5372 7.78965 10.5364 7.79163L10.5356 7.79238L10.5364 7.79314C10.4465 8.01597 10.2242 8.16284 9.97701 8.16284C9.73008 8.16278 9.50842 8.0164 9.41844 7.79389L9.41766 7.79163C9.41684 7.78962 9.41491 7.78646 9.41297 7.7818C9.40895 7.77214 9.40287 7.7565 9.39422 7.73643C9.37691 7.69628 9.35085 7.63648 9.3161 7.56179C9.24632 7.41181 9.14304 7.20343 9.01221 6.97132C8.74365 6.49492 8.38449 5.96915 7.98256 5.62936C7.62516 5.32726 7.07934 5.15752 6.50372 5.16137C5.92387 5.16528 5.41697 5.34426 5.12409 5.61348C4.37853 6.29888 4.14194 7.09588 4.21241 7.91335C4.28488 8.75391 4.68678 9.63107 5.25221 10.3924C6.07995 11.5068 7.33661 12.6415 8.41067 13.5111C8.94329 13.9423 9.42264 14.3017 9.76842 14.5529C9.84643 14.6096 9.91834 14.6597 9.9817 14.7048C10.0488 14.6584 10.1257 14.6072 10.209 14.5483C10.5648 14.2971 11.0577 13.9377 11.6035 13.5065C12.7047 12.6366 13.9851 11.5035 14.8104 10.3924C15.3701 9.63876 15.7457 8.76656 15.7947 7.92847C15.8426 7.11053 15.5828 6.30553 14.8299 5.61348C14.5371 5.34431 14.0308 5.16533 13.4511 5.16137Z",fill:"#A8A8A8"})],-1),b(" æ¶è ",-1)])])),s("button",{class:"search-button-share",onClick:J},[(n(),o("svg",Q1,[...e[7]||(e[7]=[s("path",{d:"M13.1667 12.4819C12.7022 12.4819 12.2867 12.6627 11.9689 12.9458L7.61167 10.4458C7.64222 10.3072 7.66667 10.1687 7.66667 10.0241C7.66667 9.87952 7.64222 9.74096 7.61167 9.60241L11.92 7.12651C12.25 7.42771 12.6839 7.61446 13.1667 7.61446C14.1811 7.61446 15 6.80723 15 5.80723C15 4.80723 14.1811 4 13.1667 4C12.1522 4 11.3333 4.80723 11.3333 5.80723C11.3333 5.95181 11.3578 6.09036 11.3883 6.22892L7.08 8.70482C6.75 8.40361 6.31611 8.21687 5.83333 8.21687C4.81889 8.21687 4 9.0241 4 10.0241C4 11.0241 4.81889 11.8313 5.83333 11.8313C6.31611 11.8313 6.75 11.6446 7.08 11.3434L11.4311 13.8494C11.4006 13.9759 11.3822 14.1084 11.3822 14.241C11.3822 15.2108 12.1828 16 13.1667 16C14.1506 16 14.9511 15.2108 14.9511 14.241C14.9511 13.2711 14.1506 12.4819 13.1667 12.4819Z",fill:"#544242"},null,-1)])])),C("",!0),e[9]||(e[9]=b(" å享 ",-1))]),a.value.isLike?a.value.isLike?(n(),o("button",{key:3,onClick:e[4]||(e[4]=l=>W(a.value.basicId)),class:"search-button-like border-css-two"},[e[11]||(e[11]=P('<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-390fbabd><g clip-path="url(#clip0_5762_27652)" data-v-390fbabd><path fill-rule="evenodd" clip-rule="evenodd" d="M7.33317 0.666504C7.06971 0.666504 6.83096 0.82166 6.72396 1.06241L4.23325 6.6665H2.6665C2.13607 6.6665 1.62736 6.87722 1.25229 7.25229C0.877218 7.62736 0.666504 8.13607 0.666504 8.6665V13.3332C0.666504 13.8636 0.877218 14.3723 1.25229 14.7474C1.62736 15.1225 2.13607 15.3332 2.6665 15.3332H12.183C12.6639 15.3376 13.1304 15.1687 13.4969 14.8571C13.8643 14.5448 14.1065 14.1104 14.1789 13.6337L15.099 7.63321C15.1425 7.34657 15.1231 7.05389 15.0423 6.77546C14.9615 6.49703 14.8211 6.23951 14.6308 6.02073C14.4406 5.80195 14.205 5.62714 13.9405 5.50843C13.6773 5.39028 13.3916 5.3305 13.1031 5.33317H9.99984V3.33317C9.99984 2.62593 9.71889 1.94765 9.21879 1.44755C8.71869 0.947456 8.04041 0.666504 7.33317 0.666504ZM7.73839 2.0629L5.33317 7.47465V13.9998H12.194C12.3548 14.0017 12.5108 13.9453 12.6333 13.8412C12.7559 13.7371 12.8366 13.5922 12.8607 13.4332L13.7807 7.43313C13.7952 7.33766 13.7888 7.23993 13.7618 7.14721C13.7349 7.0544 13.6881 6.96856 13.6247 6.89563C13.5613 6.82271 13.4827 6.76444 13.3946 6.72487C13.3064 6.6853 13.2107 6.66537 13.1141 6.66646L13.1065 6.66655L9.33317 6.6665C8.96498 6.6665 8.6665 6.36803 8.6665 5.99984V3.33317C8.6665 2.97955 8.52603 2.64041 8.27598 2.39036C8.12408 2.23847 7.93931 2.127 7.73839 2.0629ZM3.99984 7.99984V13.9998H2.6665C2.48969 13.9998 2.32012 13.9296 2.1951 13.8046C2.07007 13.6795 1.99984 13.51 1.99984 13.3332V8.6665C1.99984 8.48969 2.07007 8.32012 2.1951 8.1951C2.32012 8.07008 2.48969 7.99984 2.6665 7.99984H3.99984Z" fill="#1591E4" data-v-390fbabd></path><rect x="1.6001" y="7.2002" width="3.2" height="7.2" fill="#1491E4" data-v-390fbabd></rect></g><defs data-v-390fbabd><clipPath id="clip0_5762_27652" data-v-390fbabd><rect width="16" height="16" fill="white" data-v-390fbabd></rect></clipPath></defs></svg>',1)),b(" "+g(w(M)?"å·²è®å¥½":"å·²ç¹èµ"),1)])):C("",!0):(n(),o("button",{key:2,onClick:e[3]||(e[3]=l=>Q(a.value.basicId)),class:"search-button-like"},[e[10]||(e[10]=P('<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-390fbabd><g clip-path="url(#clip0_5762_42659)" data-v-390fbabd><path fill-rule="evenodd" clip-rule="evenodd" d="M7.33317 0.666504C7.06971 0.666504 6.83096 0.82166 6.72396 1.06241L4.23325 6.6665H2.6665C2.13607 6.6665 1.62736 6.87722 1.25229 7.25229C0.877218 7.62736 0.666504 8.13607 0.666504 8.6665V13.3332C0.666504 13.8636 0.877218 14.3723 1.25229 14.7474C1.62736 15.1225 2.13607 15.3332 2.6665 15.3332H12.183C12.6639 15.3376 13.1304 15.1687 13.4969 14.8571C13.8
1643 14.5448 14.1065 14.1104 14.1789 13.6337L15.099 7.63321C15.1425 7.34657 15.1231 7.05389 15.0423 6.77546C14.9615 6.49703 14.8211 6.23951 14.6308 6.02073C14.4406 5.80195 14.205 5.62714 13.9405 5.50843C13.6773 5.39028 13.3916 5.3305 13.1031 5.33317H9.99984V3.33317C9.99984 2.62593 9.71889 1.94765 9.21879 1.44755C8.71869 0.947456 8.04041 0.666504 7.33317 0.666504ZM7.73839 2.0629L5.33317 7.47465V13.9998H12.194C12.3548 14.0017 12.5108 13.9453 12.6333 13.8412C12.7559 13.7371 12.8366 13.5922 12.8607 13.4332L13.7807 7.43313C13.7952 7.33766 13.7888 7.23993 13.7618 7.14721C13.7349 7.0544 13.6881 6.96856 13.6247 6.89563C13.5613 6.82271 13.4827 6.76444 13.3946 6.72487C13.3064 6.6853 13.2107 6.66537 13.1141 6.66646L13.1065 6.66655L9.33317 6.6665C8.96498 6.6665 8.6665 6.36803 8.6665 5.99984V3.33317C8.6665 2.97955 8.52603 2.64041 8.27598 2.39036C8.12408 2.23847 7.93931 2.127 7.73839 2.0629ZM3.99984 7.99984V13.9998H2.6665C2.48969 13.9998 2.32012 13.9296 2.1951 13.8046C2.07007 13.6795 1.99984 13.51 1.99984 13.3332V8.6665C1.99984 8.48969 2.07007 8.32012 2.1951 8.1951C2.32012 8.07008 2.48969 7.99984 2.6665 7.99984H3.99984Z" fill="#A8A8A8" data-v-390fbabd></path></g><defs data-v-390fbabd><clipPath id="clip0_5762_42659" data-v-390fbabd><rect width="16" height="16" fill="white" data-v-390fbabd></rect></clipPath></defs></svg>',1)),b(" "+g(w(M)?"è®å¥½":"ç¹èµ"),1)]))])]),s("div",W1,[s("div",J1,[a.value.pdfUrl?(n(),o("div",K1,[T(Z1,{src:a.value.pdfUrl},null,8,["src"]),s("div",{innerHTML:a.value.content,class:"html-content-css rich-text"},null,8,O1)])):a.value.content?(n(),o("div",{key:1,innerHTML:a.value.content,class:"html-content-css rich-text"},null,8,X1)):C("",!0),s("div",Y1,[s("div",e6,[e[12]||(e[12]=s("img",{src:r1,class:"w-16px h-16px",alt:""},null,-1)),s("span",t6,g(w(m)("common.union")),1)])])]),y.value&&y.value.length>0?(n(),a1(B1,{key:0,"image-list":y.value},null,8,["image-list"])):C("",!0),s("div",s6,[s("div",a6,[s("h3",l6,g(w(m)("counselingDetail.recommended")),1)]),T(c1,{onRefresh:j,"search-results":x.value},null,8,["search-results"])])]),T(i1,{name:"loading-fade"},{default:l1(()=>[i.value?(n(),o("div",i6,[...e[13]||(e[13]=[s("div",{class:"loading-spinner"},[s("div",{class:"spinner"}),s("p",{class:"loading-text"},"å è¼ä¸...")],-1)])])):C("",!0)]),_:1})])])],2))}}),p6=H(o6,[["__scopeId","data-v-390fbabd"]]);export{p6 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.