PageSourceSearch

https://55.ai/_app/immutable/nodes/4.DOqDpLA6.js

js 55.ai collected 2026-10-05 11:48:15 UTC 3,948 bytes, 2 lines download raw bytes

1import"../chunks/CWj6FrbW.js";import"../chunks/69_IOA4Y.js";import{p as ct,g as dt,v as vt,o as ut,t as d,a as l,b as ft,s as pt,d as $,f as p,k as v,w as _t,e as u,m as H,c as s,n as f,l as m,r as o,q as D,i as E,h as xt,u as bt}from"../chunks/DtFjAPax.js";import{i as y}from"../chunks/BKqLVPYF.js";import{s as gt}from"../chunks/DFGcei0c.js";import{c as ht}from"../chunks/oCX3ffdl.js";import{s as F,a as G}from"../chunks/BLgWsK8X.js";import{i as wt}from"../chunks/CWPhcWBV.js";import{s as $t}from"../chunks/DazRNbaE.js";import{g as J}from"../chunks/CytST22Y.js";import{a as K,c as yt,u as kt,m as St}from"../chunks/CBaip62z.js";import{g as At}from"../chunks/CGnOy9T8.js";import{f as Ct}from"../chunks/C-pssYKk.js";import{S as Nt}from"../chunks/D8xJk9OU.js";import{T as Ht}from"../chunks/Bh2ro1oi.js";var Tt=p('<button id="sidebar-toggle-button" class="flex size-7 items-center justify-center text-gray-400 transition" type="button"><!></button>'),qt=p("<div><!></div>"),zt=p('<button class="min-w-fit px-1 text-sm select-none transition" type="button"> </button>'),Ot=p('<span class="min-w-fit px-1 text-sm select-none"> </span>'),Pt=p('<span class="text-sm text-gray-300 dark:text-gray-800 px-2">/</span> <span class="min-w-0 flex-1 truncate text-sm text-gray-900 dark:text-white"> </span>',1),jt=p('<div><div class="flex h-full min-h-0 flex-col"><div class="shrink-0 px-2.5 pt-2 pb-1"><div class="flex items-center gap-0.5 md:gap-1"><!> <div class="flex w-full min-w-0 items-center"><div class="flex min-w-0 flex-1 items-center gap-1 py-1"><!> <span class="text-sm text-gray-500 dark:text-gray-500"> </span> <!></div> <!></div></div></div> <div class="min-h-0 flex-1 overflow-hidden"><!></div></div></div>');function Xt(Q,T){ct(T,!1);const R=()=>u(yt,"$config",c),q=()=>u(kt,"$user",c),_=()=>u(K,"$showSidebar",c),U=()=>u(St,"$mobile",c),n=()=>u(W,"$i18n",c),z=()=>u(g,"$total",c),[c,V]=pt(),W=dt("i18n"),g=_t(null);let x=H(null),h=H(null),k=H({});const X=({itemName:t=null,actions:a=null,actionProps:e={}})=>{v(x,t),v(h,a),v(k,e)},Y=()=>{v(x,null),v(h,null),v(k,{})},O=async()=>{const t=await At(localStorage.token,null,"all",1).catch(()=>null);t&&g.set(t.total)};vt("automationsLayout",{total:g,setTotal:t=>g.set(t),refreshCount:O,setHeader:X,clearHeader:Y}),ut(async()=>{var t,a,e,r,i,N;if(!((a=(t=R())==null?void 0:t.features)!=null&&a.enable_automations)||((e=q())==null?void 0:e.role)!=="admin"&&!(((N=(i=(r=q())==null?void 0:r.permissions)==null?void 0:i.features)==null?void 0:N.automations)??!1)){J("/");return}await O()}),wt();var w=jt(),P=s(w),S=s(P),j=s(S),B=s(j);{var Z=t=>{var a=qt(),e=s(a);{let r=bt(()=>_()?n().t("Close Sidebar"):n().t("Open Sidebar"));Ht(e,{get content(){return m(r)},children:(i,N)=>{var b=Tt(),lt=s(b);Nt(lt,{className:"size-4"}),o(b),d(mt=>G(b,"aria-label",mt),[()=>_()?n().t("Close Sidebar"):n().t("Open Sidebar")]),D("click",b,()=>{K.set(!_())}),l(i,b)},$$slots:{default:!0}})}o(a),d(()=>F(a,1,`${_()?"md:hidden":""} flex flex-none items-center`)),l(t,a)};y(B,t=>{U()&&t(Z)})}var I=f(B,2),A=s(I),L=s(A);{var tt=t=>{var a=zt(),e=s(a,!0);o(a),d((r,i)=>{G(a,"aria-label",r),$(e,i)},[()=>n().t("Back"),()=>n().t("Automations")]),D("click",a,()=>J("/automations")),l(t,a)},at=t=>{var a=Ot(),e=s(a,!0);o(a),d(r=>$(e,r),[()=>n().t("Automations")]),l(t,a)};y(L,t=>{m(x)?t(tt):t(at,-1)})}var C=f(L,2),et=s(C,!0);o(C);var st=f(C,2);{var ot=t=>{var a=Pt(),e=f(E(a),2),r=s(e,!0);o(e),d(()=>$(r,m(x))),l(t,a)};y(st,t=>{m(x)&&t(ot)})}o(A);var rt=f(A,2);{var it=t=>{var a=xt(),e=E(a);ht(e,()=>m(h),(r,i)=>{i(r,$t(()=>m(k)))}),l(t,a)};y(rt,t=>{m(h)&&t(it)})}o(I),o(j),o(S);var M=f(S,2),nt=s(M);gt(nt,T,"default",{},null),o(M),o(P),o(w),d(t=>{F(w,1,`flex flex-col w-full h-screen max-h-[100dvh] transition-width duration-200 ease-in-out ${_()?"md:max-w-[calc(100%-var(--sidebar-width))]":""} max-w-full`),$(et,t)},[()=>z()===null?"":Ct(z())]),l(Q,w),ft(),V()}export{Xt as component};
2//# sourceMappingURL=4.DOqDpLA6.js.map

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.