PageSourceSearch

https://taskon.xyz/assets/useFslOauth-BO4nv4MS.js

js taskon.xyz collected 2026-09-24 10:10:18 UTC 2,141 bytes, 1 lines download raw bytes

1import{K as e}from"./vue.runtime.esm-bundler-BZJEAd2_.js";import{Er as t,Fo as n,Ko as r,T as i,ga as a,ha as o,ia as s,ms as c,s as l,va as u,ya as d}from"./track-CV3zh0zK.js";import{$ as f}from"./useDialogControl-B0r4COHK.js";import{t as p}from"./SnsType-BXrRIJby.js";import{c as m,s as h}from"./vue-router-B6c_zBdC.js";import{a as g,n as _,o as v,t as y}from"./useWhiteLabelPullOauthResult-CQb0Nlhb.js";import{t as b}from"./ConfirmNotice-DPW96L2A.js";var x=(t,i,o,l)=>{let _=r(),x=h(),S=m(),C=f(c.TelegramOauthSourceId,``),w=f(c.OauthFrom,``),T=()=>{C.value=``,w.value=``},{triggerWhiteLabelOauth:E}=y(t,`telegram`,e=>{i?.(JSON.parse(e))},e=>{o?.(e.error||``)}),D=async()=>{if(w.value=window.location.href,C.value=t,s){v(p.Telegram,l);return}try{window?.Telegram?.Login?.auth({widget_origin:`https://oauth.telegram.org/auth`,origin_url:`https://core.telegram.org`,bot_id:`6396701051`,request_access:`write`,embed:1},async e=>{if(e)i&&await i(e);else{let e=n.global.t(`auth_not_approved`);b({title:n.global.t(`auth_failed`),desc:n.global.t(`tg_auth_failed_desc`),confirmButton:n.global.t(`ok`)}),o&&await o(e)}T()})}catch(e){console.error(e),o&&await o(JSON.stringify(e))}},O=async()=>{await S.replace({query:{...x.query,[d]:void 0,[u]:void 0,[a]:void 0}})},k=async()=>{let{[u]:e,[a]:t}=x.query;e&&i?await i(JSON.parse(e)):t&&(g(!1,t),o&&await o(t)),T(),await O()};return e(async()=>{if(await S.isReady(),t===C.value){if(s&&x.query.oauth_type===p.Telegram){k();return}if(_.value){let e=localStorage.getItem(`TG_USER`);localStorage.removeItem(`TG_USER`),e&&i&&await i(JSON.parse(e))}}}),{go2TelegramOauth:D}},S=(r,g,y)=>{let b=m(),x=h(),S=f(c.FslOauthSourceId,``),C=f(c.OauthFrom,``),w=()=>{if(i()){t({message:n.global.t(`use_fsl_in_browser`),type:`error`,ok:!0});return}if(C.value=window.location.href,S.value=r,s){v(p.FSLID,y);return}l(_())},T=()=>{S.value=``,C.value=``},E=async()=>{await b.replace({query:{...x.query,[d]:void 0,[u]:void 0,[a]:void 0,[o]:void 0}})};return e(async()=>{if(S.value!==r)return;await b.isReady();let{[d]:e,[u]:t}=x.query;e===p.FSLID&&(t&&g&&await g(t),T(),await E())}),{go2FslOauth:w}};export{x as n,S as t};

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.