1import{_ as N,a as B}from"./CKsK5B1C.js";import{a5 as j,aD as q,aj as F,aW as O,x as H,aP as G,az as K,ay as W,aq as y,an as A,as as n,ar as s,av as r,aw as Y,aR as p,aX as v,aS as _,aT as z,r as f,a0 as c,ak as U}from"./BrSRS2Es.js";import{L as I}from"./BQ6CTF3M.js";import{_ as J}from"./B87YLHm0.js";const X={class:"uninstall-page"},Q={class:"uninstall-page__main"},Z={class:"uninstall-page__card"},ee={class:"uninstall-page__head"},ne=["alt"],te={class:"uninstall-page__product-title"},ae={class:"uninstall-page__product-name"},se={class:"uninstall-page__thanks"},oe={class:"uninstall-page__question"},le={class:"uninstall-page__option"},ie={class:"uninstall-page__option"},re={class:"uninstall-page__option"},ue={class:"uninstall-page__option"},ce={class:"uninstall-page__option uninstall-page__option--other"},pe={class:"uninstall-page__other-label"},_e=["placeholder"],de={id:"report-btn",type:"submit",class:"uninstall-page__submit"},me={key:1,class:"uninstall-page__done"},ve="https://extension-us.us-west-1.log.aliyuncs.com/logstores/scrm-privacy/track?APIVersion=0.6.0",ge=j({name:"WaplusPrivacyUninstallPage",__name:"waplus-privacy-uninstall",setup(he){const l=f([]),d=f(""),b=f(!1),w=q(),{locale:D,t:o}=F(),S=O(),g=H().public,h=c(()=>{const t=g.waplusPrivacyUninstallEndpoint;if(t)return t;const e=g.aliyunSls;return e?.host&&e?.project&&e?.logstore?`https://${e.project}.${e.host}/logstores/${e.logstore}/track?APIVersion=0.6.0`:ve}),m=g.siteUrl?.replace(/\/$/,"")||"",T=c(()=>D.value==="en"?"/waplus-privacy-uninstall":`/${D.value}/waplus-privacy-uninstall`);function $(){const t=S("/");if(typeof window<"u"){const e=window.location.origin;return t==="/"?`${e}/`:`${e}${t}`}return m?t==="/"?`${m}/`:`${m}${t}`:t}function k(){if(typeof navigator>"u")return{userAgent:"",browser:""};const t=navigator.userAgent,e=t.toLowerCase(),i=[[/edge\/([\d.]+)|edg\/([\d.]+)/,"Edge"],[/rv:([\d.]+)\) like gecko/,"IE"],[/msie ([\d.]+)/,"IE"],[/firefox\/([\d.]+)/,"Firefox"],[/chrome\/([\d.]+)/,"Chrome"],[/opera.([\d.]+)/,"Opera"],[/version\/([\d.]+).*safari/,"Safari"]];for(const[u,a]of i)if(u.test(e))return{userAgent:t,browser:a};return{userAgent:t,browser:""}}function x(t){return Object.entries(t).filter(([,e])=>e!=null&&e!=="").map(([e,i])=>`&${e}=${encodeURIComponent(String(i))}`).join("")}G(()=>{if(h.value){const{userAgent:t,browser:e}=k(),i=w.query,u={event_type:I.PRIVACY_UNINSTALL_PAGE_SHOWN,event_time:Math.round(Date.now()/1e3),install_time:parseInt(i.install_time||"0",10),uninstall_time:Math.round(Date.now()/1e3),platform:navigator.platform,user_agent:t,browser_type:e,language:navigator.language,uuid:i.uuid,version:i.version,user_phone_num:parseInt(i.utm_source||"0",10),country_code:i.country_name},a=h.value+x(u);$fetch(a,{method:"GET"}).catch(()=>{})}});function P(){const t=[...l.value].sort((V,M)=>V-M),e=d.value.trim(),{userAgent:i,browser:u}=k(),a=w.query,E={event_type:I.PRIVACY_UNINSTALL_FEEDBACK_SUBMITTED,event_time:Math.round(Date.now()/1e3),install_time:parseInt(a.install_time||"0",10),uninstall_time:Math.round(Date.now()/1e3),platform:typeof navigator<"u"?navigator.platform:"",user_agent:i,browser_type:u,language:typeof navigator<"u"?navigator.language:"",uuid:a.uuid,version:a.version,user_phone_num:parseInt(a.utm_source||"0",10),country_code:a.country_name},C="&reason_type="+encodeURIComponent(JSON.stringify(t)),L="&reason_desc="+encodeURIComponent(e),R=h.value+x(E)+C+L;$fetch(R,{method:"GET"}).then(()=>{window.location.href=$()}).catch(()=>{b.value=!0})}return K({title:c(()=>o("privacyUninstall.seoTitle")),description:c(()=>o("privacyUninstall.seoDescription")),ogTitle:c(()=>o("privacyUninstall.seoTitle")),ogDescription:c(()=>o("privacyUninstall.seoDescription"))}),W({link:[{rel:"canonical",href:c(()=>`${m}${T.value}`)}]}),(t,e)=>{const i=N,u=B;return U(),y("div",X,[A(i),n("main",Q,[n("div",Z,[n("div",ee,[n("img",{src:"https://resource.wawebsender.com/uninstall/privacy-128.png",alt:s(o)("privacyUninstall.logoAlt"),class:"uninstall-page__logo",width:"64",height:"64"},null,8,ne),n("h1",te,[n("span",ae,r(s(o)("privacyUninstall.productName")),1)])]),n("p",se,r(s(o)("privacyUninstall.thanks")),1),n("p",oe,r(s(o)("privacyUninstall.question")),1),s(b)?(U(),y("p",me,r(s(o)("privacyUninstall.done")),1)):(U(),y("form",{key:0,class:"uninstall-page__form",onSubmit:Y(P,["prevent"])},[n("label",le,[p(n("input",{"onUpdate:modelValue":e[0]||(e[0]=a=>_(l)?l.value=a:null),type:"checkbox",class:"uninstall-reason",value:1},null,512),[[v,s(l)]]),n("span",null,r(s(o)("privacyUninstall.reasonDontKnow")),1)]),n("label",ie,[p(n("input",{"onUpdate:modelValue":e[1]||(e[1]=a=>_(l)?l.value=a:null),type:"checkbox",class:"uninstall-reason",value:2},null,512),[[v,s(l)]]),n("span",null,r(s(o)("privacyUninstall.reasonUnclearPrompts")),1)]),n("label",re,[p(n("input",{"onUpdate:modelValue":e[2]||(e[2]=a=>_(l)?l.value=a:null),type:"checkbox",class:"uninstall-reason",value:3},null,512),[[v,s(l)]]),n("span",null,r(s(o)("privacyUninstall.reasonDontNeedFeatures")),1)]),n("label",ue,[p(n("input",{"onUpdate:modelValue":e[3]||(e[3]=a=>_(l)?l.value=a:null),type:"checkbox",class:"uninstall-reason",value:4},null,512),[[v,s(l)]]),n("span",null,r(s(o)("privacyUninstall.reasonAbnormal")),1)]),n("label",ce,[n("span",pe,r(s(o)("privacyUninstall.otherLabel")),1),p(n("textarea",{id:"reason-desc","onUpdate:modelValue":e[4]||(e[4]=a=>_(d)?d.value=a:null),class:"uninstall-page__textarea",placeholder:s(o)("privacyUninstall.otherPlaceholder"),rows:"4"},null,8,_e),[[z,s(d)]])]),n("button",de,r(s(o)("privacyUninstall.submit")),1)],32))])]),A(u)])}}}),we=J(ge,[["__scopeId","data-v-d34d9d3b"]]);export{we 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.