PageSourceSearch

https://agentic.botsify.com/assets/SlackCallback-Bf8dLl1-.js

js botsify.com collected 2026-09-24 17:09:16 UTC 1,561 bytes, 1 lines download raw bytes

1import{u as p}from"./index-9TprLG59.js";import{k as w,x as g,c as i,z as n,A as r,B as t,C as _,E as f}from"./vendor-boBpabsJ.js";const h={class:"flex items-center justify-center min-h-screen bg-gray-50 p-4"},v={class:"text-center"},x={key:0,class:"space-y-4"},S={key:1,class:"text-red-600"},b={class:"mt-2"},P=w({__name:"SlackCallback",setup(k){const l=p(),o=i(!0),s=i(""),c=()=>{window.close()},u=()=>new URLSearchParams(window.location.search).get("authId")||localStorage.getItem("slack_auth_id");return g(()=>{const a=new URLSearchParams(window.location.search),e=u(),d=l.params.status,m=a.get("message");if(!e){s.value="Missing authentication context",o.value=!1;return}d==="success"?window.opener&&window.opener.postMessage({type:"SLACK_AUTH_RESPONSE",authId:e,status:"success"},window.location.origin):(s.value=m||"Failed to connect to Slack",window.opener&&window.opener.postMessage({type:"SLACK_AUTH_RESPONSE",authId:e,status:"error",message:s.value},window.location.origin)),setTimeout(()=>{o.value=!1,c()},1e3)}),(a,e)=>(r(),n("div",h,[t("div",v,[o.value?(r(),n("div",x,[...e[0]||(e[0]=[t("div",{class:"w-16 h-16 mx-auto border-4 border-blue-500 border-t-transparent rounded-full animate-spin"},null,-1),t("p",{class:"text-gray-700"},"Completing Slack connection...",-1)])])):s.value?(r(),n("div",S,[e[1]||(e[1]=t("p",{class:"text-xl font-medium"},"Connection Failed",-1)),t("p",b,f(s.value),1),t("button",{onClick:c,class:"px-4 py-2 mt-4 text-white bg-blue-500 rounded hover:bg-blue-600"}," Close Window ")])):_("",!0)])]))}});export{P 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.