PageSourceSearch

https://watools.ai/_nuxt/fZ_b1LsI.js

js watools.ai collected 2026-10-02 00:42:46 UTC 6,109 bytes, 1 lines download raw bytes

1import{_ as F,a as I}from"./CKsK5B1C.js";import{a5 as M,aD as V,aj as B,aW as R,x as H,aP as z,az as G,ay as j,aq as K,an as S,as as e,ar as t,av as c,aw as Q,aR as w,aX as m,aS as f,aT as X,r as y,a0 as p,ak as J}from"./BrSRS2Es.js";import{_ as q,b as Y}from"./DAMSeYNc.js";import{L as T}from"./BQ6CTF3M.js";import{_ as Z}from"./B87YLHm0.js";const N=500;function g(a){return`${(Array.isArray(a)?a[0]:a)||""}`.trim()}function E(a,n){for(const r of n){const o=g(a[r]);if(o)return o}return""}function nn(a){const n=Number.parseInt(g(a),10);return Number.isFinite(n)&&n>0?n:0}function en(a){return{install_time:nn(a.install_time),uuid:g(a.uuid),version:g(a.version),user_phone_num:E(a,["user_phone_num","whatsapp_number","utm_source"]),country_code:E(a,["country_code","country_name"])}}function an(a,n){const r=[...new Set(a)].filter(o=>Number.isInteger(o)&&o>=1&&o<=4).sort((o,u)=>o-u);return{reason_type:JSON.stringify(r),reason_desc:`${n||""}`.trim().slice(0,N)}}function tn(a,n){const r=new URL(a);for(const[o,u]of Object.entries(n))u==null||u===""&&o!=="reason_desc"||r.searchParams.set(o,String(u));return r.toString()}function on({transport:a,navigate:n,onTransportError:r=()=>{}}){if(typeof a!="function"||typeof n!="function"||typeof r!="function")throw new TypeError("transport, navigate, and onTransportError must be functions");let o=!1;const u=_=>{try{r(_)}catch{}};return function(l){if(o)return!1;o=!0;try{Promise.resolve(a(l)).catch(u)}catch(b){u(b)}return n(),!0}}const ln={class:"uninstall-page"},sn={class:"uninstall-page__main"},rn={class:"uninstall-page__card","aria-labelledby":"wa-download-uninstall-title"},un={class:"uninstall-page__head"},dn=["alt"],cn={id:"wa-download-uninstall-title",class:"uninstall-page__product-title"},_n={class:"uninstall-page__thanks"},pn={class:"uninstall-page__reasons"},wn={class:"uninstall-page__question"},fn={class:"uninstall-page__option"},mn={class:"uninstall-page__option"},gn={class:"uninstall-page__option"},bn={class:"uninstall-page__option"},hn={for:"wa-download-reason-desc",class:"uninstall-page__other-label"},vn=["placeholder","maxlength"],Dn=["disabled","aria-busy"],yn=M({name:"WaDownloadUninstallPage",__name:"wa-download-uninstall",setup(a){const n=y([]),r=y(""),o=y(!1),u=V(),{locale:_,t:l}=B(),b=R(),U=H().public,L=p(()=>U.waDownloadUninstallEndpoint),k=U.siteUrl||"https://watools.ai/",h=k.replace(/\/$/,""),W=p(()=>_.value==="en"?"/wa-download-uninstall":`/${_.value}/wa-download-uninstall`);function O(){const s=b("/");return typeof window<"u"?s==="/"?`${window.location.origin}/`:`${window.location.origin}${s}`:h?s==="/"?`${h}/`:`${h}${s}`:s}function P(){if(typeof navigator>"u")return{userAgent:"",browser:""};const s=navigator.userAgent,i=s.toLowerCase(),v=[[/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[D,d]of v)if(D.test(i))return{userAgent:s,browser:d};return{userAgent:s,browser:""}}function A(){const{userAgent:s,browser:i}=P();return{event_time:Math.round(Date.now()/1e3),uninstall_time:Math.round(Date.now()/1e3),platform:typeof navigator<"u"?navigator.platform:"",user_agent:s,browser_type:i,language:typeof navigator<"u"?navigator.language:_.value,page_locale:_.value,...en(u.query)}}function x(s){return $fetch(tn(L.value,s),{method:"GET",retry:!1,keepalive:!0})}const $=on({transport:x,navigate:()=>{window.location.href=O()},onTransportError:s=>{console.warn("[wa-download-uninstall] feedback telemetry failed:",s)}});z(()=>{x({event_type:T.WA_DOWNLOAD_UNINSTALL_PAGE_SHOWN,...A()}).catch(s=>{console.warn("[wa-download-uninstall] page view telemetry failed:",s)})});function C(){o.value||(o.value=!0,$({event_type:T.WA_DOWNLOAD_UNINSTALL_FEEDBACK_SUBMITTED,...A(),...an(n.value,r.value)}))}return G({title:p(()=>l("waDownloadUninstall.seoTitle")),description:p(()=>l("waDownloadUninstall.seoDescription")),ogTitle:p(()=>l("waDownloadUninstall.seoTitle")),ogDescription:p(()=>l("waDownloadUninstall.seoDescription"))}),j({link:[{rel:"canonical",href:p(()=>Y(k,W.value))}]}),(s,i)=>{const v=F,D=I;return J(),K("div",ln,[S(v),e("main",sn,[e("section",rn,[e("div",un,[e("img",{src:q,alt:t(l)("waDownloadUninstall.logoAlt"),class:"uninstall-page__logo",width:"64",height:"64"},null,8,dn),e("h1",cn,c(t(l)("waDownloadUninstall.productName")),1)]),e("p",_n,c(t(l)("waDownloadUninstall.thanks")),1),e("form",{class:"uninstall-page__form",onSubmit:Q(C,["prevent"])},[e("fieldset",pn,[e("legend",wn,c(t(l)("waDownloadUninstall.question")),1),e("label",fn,[w(e("input",{"onUpdate:modelValue":i[0]||(i[0]=d=>f(n)?n.value=d:null),type:"checkbox",class:"uninstall-reason",value:1},null,512),[[m,t(n)]]),e("span",null,c(t(l)("waDownloadUninstall.reasonDontKnow")),1)]),e("label",mn,[w(e("input",{"onUpdate:modelValue":i[1]||(i[1]=d=>f(n)?n.value=d:null),type:"checkbox",class:"uninstall-reason",value:2},null,512),[[m,t(n)]]),e("span",null,c(t(l)("waDownloadUninstall.reasonUnclearPrompts")),1)]),e("label",gn,[w(e("input",{"onUpdate:modelValue":i[2]||(i[2]=d=>f(n)?n.value=d:null),type:"checkbox",class:"uninstall-reason",value:3},null,512),[[m,t(n)]]),e("span",null,c(t(l)("waDownloadUninstall.reasonDontNeedFeatures")),1)]),e("label",bn,[w(e("input",{"onUpdate:modelValue":i[3]||(i[3]=d=>f(n)?n.value=d:null),type:"checkbox",class:"uninstall-reason",value:4},null,512),[[m,t(n)]]),e("span",null,c(t(l)("waDownloadUninstall.reasonAbnormal")),1)])]),e("label",hn,c(t(l)("waDownloadUninstall.otherLabel")),1),w(e("textarea",{id:"wa-download-reason-desc","onUpdate:modelValue":i[4]||(i[4]=d=>f(r)?r.value=d:null),class:"uninstall-page__textarea",placeholder:t(l)("waDownloadUninstall.otherPlaceholder"),maxlength:t(N),rows:"4"},null,8,vn),[[X,t(r)]]),e("button",{id:"wa-download-report-btn",type:"submit",class:"uninstall-page__submit",disabled:t(o),"aria-busy":t(o)},c(t(o)?t(l)("waDownloadUninstall.submitting"):t(l)("waDownloadUninstall.submit")),9,Dn)],32)])]),S(D)])}}}),Tn=Z(yn,[["__scopeId","data-v-9f0ab346"]]);export{Tn 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.