PageSourceSearch

https://ai.neurospace.pro/_nuxt/loading.6af8d24c.js

js neurospace.pro collected 2026-10-06 00:22:37 UTC 2,904 bytes, 1 lines download raw bytes

1import{_ as b,B as S,r,k as w,h,S as d,o as i,c as l,f as p,q as k,a as t,m as N,s as q,x as O,F as y,y as T,t as C,D as F,g as R,p as E,e as X,i as B}from"./entry.128c00c2.js";import{u as K}from"./vue.f36acd1f.8e9fbb2c.js";import{u as v}from"./useApiFetch.fb005c54.js";import"./fetch.c7e48f66.js";const g=n=>(E("data-v-aad48145"),n=n(),X(),n),D={key:0,class:"bg-gray-50 h-[600px]"},I=g(()=>t("div",{class:"flex justify-center items-center h-[600px]"},[t("span",{class:"loader"})],-1)),A=[I],M={class:"bg-gray-50 h-[600px]"},V={class:"flex flex-col items-center justify-center px-6 py-8 mx-auto md:h-screen lg:py-0"},j={class:"w-full bg-white rounded-lg shadow md:mt-0 sm:max-w-md xl:p-0"},H={class:"p-6 space-y-4 md:space-y-6 sm:p-8"},P=g(()=>t("h1",{class:"text-xl font-semibold leading-tight tracking-tight text-gray-900 md:text-2xl"}," Выберите страницу ",-1)),$={class:"space-y-4 md:space-y-6",action:"#"},L=g(()=>t("label",{for:"account_access_token",class:"block mb-2 text-sm font-medium text-gray-900"},"Страницы",-1)),U=["value"],z={__name:"loading",setup(n){K({title:"Успешная интеграция | NeuroSpace"});const s=S(),{$toast:m}=B(),_=R().public.BACKEND_HOST,u=r(!0);r([]);const f=r([]),c=r();w(async()=>{if(s.query.code&&s.query.state)try{const{error:a,data:e}=await v(_+"/api/chat_bot/"+s.query.state+"/instagram/integrate",{headers:{"X-XSRF-TOKEN":h("XSRF-TOKEN")},credentials:"include",method:"POST",body:{code:s.query.code}});e.value.status===!0?(f.value=e.value.accounts,u.value=!1):d("/account/integration/"+s.query.state)}catch(a){console.log(a)}else d("/account/chatbot")});const x=async()=>{try{u.value=!0;const{error:a,data:e}=await v(_+"/api/chat_bot/"+s.query.state+"/instagram/integrate/page",{headers:{"X-XSRF-TOKEN":h("XSRF-TOKEN")},credentials:"include",watch:!1,method:"POST",body:{page_id:c}});e.value&&e.value.status==!0?m.success(e.value.message,{position:"top"}):e.value&&e.value.status==!1&&m.error(e.value.message,{position:"top"}),d("/account/integration/"+s.query.state)}catch(a){console.log(a)}};return(a,e)=>(i(),l(y,null,[p(u)===!0?(i(),l("section",D,A)):k("",!0),t("section",M,[t("div",V,[t("div",j,[t("div",H,[P,t("form",$,[t("div",null,[L,N(t("select",{"onUpdate:modelValue":e[0]||(e[0]=o=>O(c)?c.value=o:null),id:"account_access_token",class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-orange-500 focus:border-orange-500 block w-full p-2.5"},[(i(!0),l(y,null,T(p(f),o=>(i(),l("option",{value:o.id},C(o.name),9,U))),256))],512),[[q,p(c)]])]),t("button",{type:"submit",onClick:e[1]||(e[1]=F(o=>x(),["prevent"])),class:"w-full text-white bg-tempoOrange-500 hover:bg-orange-500 focus:ring-4 focus:outline-none focus:ring-orange-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center"}," Выбрать ")])])])])])],64))}},Z=b(z,[["__scopeId","data-v-aad48145"]]);export{Z 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.