1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["hQha4Ok0.js","Br3jrAqb.js","app-DhbzpxNh.js","BI8qgwQJ.js","BTqQ_sdn.js","cPPnkASS.css","lQ9B5QVJ.css","BSsQVpG2.css"])))=>i.map(i=>d[i]); 2import{ar as C,i as o,M as V,f as B,C as I,y as T,g as A}from"./app-DhbzpxNh.js";import{M as L}from"./BdPJoEdF.js";import{F as f}from"./BefQnGvb.js";import{F as m}from"./BnMO1UyO.js";import{M as E}from"./Cavlms1A.js";import{M as F}from"./BbrKSk-I.js";import{b as x,a as P,c as b,z as u,g as h,h as i,j as e,s as c,C as t,H as n,B as l,q as r,l as d,M as N,N as O,A as j,d as R}from"./BI8qgwQJ.js";import"./BTqQ_sdn.js";const D={class:"_gaps_m"},G={class:"_gaps_m"},H={class:"_gaps_m"},U={class:"_gaps"},Y={key:0,class:"ph-pause ph-bold ph-lg"},J={key:1,class:"ph-circle ph-bold ph-lg"},K={key:2,class:"ph-check ph-bold ph-lg",style:{color:"var(--MI_THEME-success)"}},W={key:3,class:"ph-warning ph-bold ph-lg",style:{color:"var(--MI_THEME-error)"}},ne=x({__name:"connect",setup(q){const y=P(window.innerWidth>=1100),v={endpoint:"i/webhooks/list",limit:100,noPaging:!0};function M(){const{dispose:g}=B(R(()=>A(()=>import("./hQha4Ok0.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),{},{done:async s=>{const{name:k,permissions:_}=s,{token:p}=await I("miauth/gen-token",{session:null,name:k,permission:_});T({type:"success",title:o.ts.token,text:p})},closed:()=>g()})}return b(()=>[]),b(()=>[]),C(()=>({title:o.ts._settings.serviceConnection,icon:"ph-link ph-bold ph-lg"})),(g,s)=>{const k=u("SearchKeyword"),_=u("SearchLabel"),p=u("SearchMarker"),S=u("MkTime");return i(),h(p,{path:"/settings/connect",label:r(o).ts._settings.serviceConnection,keywords:["app","service","connect","webhook","api","token"],icon:"ph-link ph-bold ph-lg",markerId:"BlJ2rsw9h","data-in-app-search-marker-id":"BlJ2rsw9h",children:["9bLU1nIjt","5VSGOVYR0"]},{default:e(()=>[c("div",D,[t(E,{icon:"/client-assets/link_3d.png",color:"#ff0088"},{default:e(()=>[t(k,null,{default:e(()=>[n(l(r(o).ts._settings.serviceConnectionBanner),1)]),_:1})]),_:1}),t(p,{keywords:["api","app","token","accessToken"],markerId:"9bLU1nIjt","data-in-app-search-marker-id":"9bLU1nIjt"},{default:e(()=>[t(f,null,{label:e(()=>[s[0]||(s[0]=c("i",{class:"ph-key ph-bold ph-lg"},null,-1)),s[1]||(s[1]=n()),t(_,null,{default:e(()=>[n(l(r(o).ts._settings.api),1)]),_:1})]),default:e(()=>[c("div",G,[t(V,{primary:"",onClick:M},{default:e(()=>[n(l(r(o).ts.generateAccessToken),1)]),_:1}),t(m,{to:"/settings/apps"},{default:e(()=>[n(l(r(o).ts.manageAccessTokens),1)]),_:1}),t(m,{to:"/api-console",behavior:y.value?"window":null},{default:e(()=>s[2]||(s[2]=[n("API console")])),_:1,__:[2]},8,["behavior"])])]),_:1})]),_:1}),t(p,{keywords:["webhook"],markerId:"5VSGOVYR0","data-in-app-search-marker-id":"5VSGOVYR0"},{default:e(()=>[t(f,null,{label:e(()=>[s[3]||(s[3]=c("i",{class:"ph-webhooks-logo ph-bold ph-lg"},null,-1)),s[4]||(s[4]=n()),t(_,null,{default:e(()=>[n(l(r(o).ts._settings.webhook),1)]),_:1})]),default:e(()=>[c("div",H,[t(m,{to:"/settings/webhook/new"},{default:e(()=>[n(l(r(o).ts._webhookSettings.createWebhook),1)]),_:1}),t(F,{defaultOpen:!0},{label:e(()=>[n(l(r(o).ts.manage),1)]),default:e(()=>[t(L,{pagination:v},{default:e(({items:w})=>[c("div",U,[(i(!0),d(N,null,O(w,a=>(i(),h(m,{key:a.id,to:`/settings/webhook/edit/${a.id}`},{icon:e(()=>[a.active===!1?(i(),d("i",Y)):a.latestStatus===null?(i(),d("i",J)):[200,201,204].includes(a.latestStatus)?(i(),d("i",K)):(i(),d("i",W))]),suffix:e(()=>[a.latestSentAt?(i(),h(S,{key:0,time:a.latestSentAt},null,8,["time"])):j("",!0)]),default:e(()=>[n(" "+l(a.name||a.url)+" ",1)]),_:2},1032,["to"]))),128))])]),_:1})]),_:1})])]),_:1})]),_:1})])]),_:1},8,["label"])}}});export{ne 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.