1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./private-CEEL_eB7.js","./router-CJQ880g_.js","./_plugin-vue_export-helper-BPRVag0c.js","./chunk-BGWvJHEH.js","./en-US-8zoeQkBi.js","./vue-i18n-CmTqtH5D.js","./vue.runtime.esm-bundler-DGm7kVdE.js","./dist-DqCl1BES.js","./dist-DNNWDJ0b.js","./startOfWeek-B4r3gx00.js","./pinia-Dha9e2A4.js","./matchbrackets-DoTWPY-w.js","./codemirror-CMh_d9Rc.js","./simple-jPEbwGDv.js","./matchesonscrollbar-zxqEd-Y1.js","./javascript-DeCwosis.js","./markdown-DaNpzyRG.js","./xml-DJvWE0pu.js","./normalizeDates-_qLytDxr.js","./en-US-BZ1bcVcv.js","./buildMatchPatternFn-MrHfURTm.js","./formatDistance-wjQCT5kM.js","./match-BXJ8D8Ql.js","./vue-router-BA3aOc4G.js","./router-tC7Zp8Ax.css"])))=>i.map(i=>d[i]); 2import{Bt as e,E as t,G as n,Ht as r,It as i,J as a,K as o,L as s,N as c,Qt as l,Sn as u,Tr as d,W as f,Yt as p,_n as m,er as h,et as g,kr as _,nt as v,o as y,pt as b,q as x,qn as S,r as C,rr as w,rt as T,tt as E,wr as D}from"./vue.runtime.esm-bundler-DGm7kVdE.js";import{Fn as O,Ot as k,Pn as A,Zt as ee,in as j,vt as M,y as N}from"./dist-DqCl1BES.js";import{c as te,u as P}from"./dist-DNNWDJ0b.js";import{_ as ne,i as re}from"./pinia-Dha9e2A4.js";import{$ as ie,$t as F,A as ae,At as I,B as oe,C as se,Dt as ce,E as le,Et as ue,F as de,Ft as fe,G as pe,Gt as me,H as he,Ht as ge,I as _e,It as ve,J as ye,Jt as be,K as xe,Kt as Se,L,Lt as Ce,Mt as we,N as Te,Nt as R,Ot as Ee,P as De,Pt as Oe,Q as ke,Qt as z,R as Ae,Rt as je,S as Me,St as Ne,T as Pe,Tt as Fe,U as Ie,Ut as Le,Vt as Re,W as ze,Wt as Be,X as Ve,Xt as He,Y as Ue,Yt as We,Z as Ge,Zt as Ke,_ as qe,_n as Je,_t as Ye,a as Xe,an as Ze,b as Qe,bt as $e,c as et,cn as tt,ct as nt,dn as rt,dt as it,en as at,et as ot,f as st,fn as ct,g as lt,gn as ut,hn as dt,ht as ft,i as pt,in as mt,it as ht,jt as gt,k as _t,kt as vt,l as yt,ln as bt,lt as xt,m as St,mt as Ct,n as wt,nn as Tt,nt as Et,o as Dt,on as Ot,ot as kt,p as At,pn as jt,pt as Mt,r as Nt,rn as Pt,rt as Ft,s as It,st as Lt,t as Rt,tn as B,tt as zt,u as Bt,un as V,ut as H,v as Vt,vn as Ht,vt as Ut,w as Wt,wt as Gt,x as Kt,xt as qt,yn as U,yt as Jt,z as Yt,zt as Xt}from"./router-CJQ880g_.js";import{n as Zt,u as Qt}from"./vue-router-BA3aOc4G.js";import{t as W}from"./_plugin-vue_export-helper-BPRVag0c.js";import{t as $t}from"./v-breadcrumb-Bywm_HRO.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var G=Ht(),K=[`pointermove`,`pointerdown`,`keydown`],en=300*1e3,q,J=!0,Y=!1,X=(0,G.throttle)(rn,500);function tn(){document.addEventListener(`visibilitychange`,Z);for(let e of K)document.addEventListener(e,X);Q()}function nn(){document.removeEventListener(`visibilitychange`,Z);for(let e of K)document.removeEventListener(e,X)}function rn(){Y===!0&&(Y=!1,F.emit(z.tabActive)),Q()}function Z(){document.visibilityState===`hidden`&&J===!0&&(J=!1,F.emit(z.tabIdle)),document.visibilityState===`visible`&&J===!1&&(J=!0,F.emit(z.tabActive))}function Q(){q&&=(window.clearTimeout(q),null),q=window.setTimeout(()=>{Y=!0,F.emit(z.tabIdle)},en)}var an=(e,t)=>` 3<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"> 4 <style> 5 circle { 6 fill: ${e}; 7 } 8 </style> 9 10 <circle cx="100" cy="100" r="100"/> 11 12 ${t?`<path d="M143.122 109.533c-.663-.167-1.216-.334-1.715-.557a3.945 3.945 0 01-1.216-.836c.332-2.952 0-5.514.276-8.411 1.106-11.253 8.132-7.688 14.439-9.526 3.928-1.114 7.855-3.398 8.851-8.078-4.315-5.069-9.128-9.526-14.383-13.314-17.094-12.255-39.444-17.157-59.747-13.76a30.762 30.762 0 0013.428 12.535s-5.502 0-10.218-3.548c-1.383.558-4.15 1.654-5.478 2.322 10.788 10.417 27.66 11.587 39.776 2.228-.055.112-1.107 1.727-2.379 8.468-2.821 14.372-10.954 13.258-21.022 9.637-20.911-7.631-32.418-.557-42.873-15.04a9.73 9.73 0 00-4.924 8.467c0 3.621 1.992 6.685 4.868 8.356 1.57-2.098 2.275-2.695 5.014-2.695-4.239 2.42-4.737 4.533-6.563 10.382-2.213 7.075-1.272 14.317-11.617 16.211-5.477.279-5.366 4.011-7.358 9.582-2.489 7.242-5.808 10.139-12.281 16.99 2.655 3.231 5.421 3.621 8.243 2.451 5.808-2.45 10.29-10.027 14.494-14.929 4.702-5.46 15.988-3.12 24.507-8.467 5.864-3.622 8.74-8.524 4.868-16.824 2.49 2.785 3.983 6.295 4.204 10.027 9.848-1.28 23.014 10.807 35.019 12.813-1.217-1.56-2.213-3.231-2.932-4.958-1.383-3.342-1.826-6.406-1.55-9.08 1.107 6.629 7.746 15.152 18.423 15.932 2.71.223 5.697-.112 8.795-1.058 3.707-1.115 7.137-2.563 11.23-1.783 3.043.557 5.864 2.117 7.635 4.735 2.655 3.9 8.464 4.735 11.064-.056-5.864-15.43-22.018-16.433-28.878-18.216z" fill="#FFF"/>`:``} 13</svg>`,on=(e,t=!0)=>{e||=j(`--theme--primary`);let n=an(e,t),r=document.createElement(`div`);if(r.innerHTML=n.trim(),r.firstChild){let e=new XMLSerializer().serializeToString(r.firstChild);return`data:image/svg+xml;base64,`+window.btoa(e)}throw Error(`Couldn't generate favicon`)},sn={id:`directus`},cn={key:0,class:`hydrating`},ln=W(T({__name:`app`,setup(t){let l=U(),d=V(),p=B(),v=bt(),y=Qt(),{isLocked:b}=ne(v);m(b,e=>{if(!e||!p.isAdmin)return;let t=y.currentRoute.value.path;Rt.includes(t)||y.push(`/license-recovery`)});let{darkMode:S,themeDark:T,themeDarkOverrides:D,themeLight:O,themeLightOverrides:k}=at(),{hydrating:j}=h(l);A({style:[{textContent:f(()=>`:root { --project-color: ${d.info?.project?.project_color??`var(--theme--primary)`} }`)}],title:`Directus`,titleTemplate:`%s · %projectName`,templateParams:{projectName:f(()=>d.info?.project?.project_name??`Directus`)},htmlAttrs:f(()=>({lang:p.language,dir:p.textDirection})),meta:f(()=>{let e=d.info?.project?.project_color??`#6644ff`;return[{name:`msapplication-TileColor`,content:e},{name:`theme-color`,content:e}]}),link:f(()=>{let e;return e=d.info?.project?.public_favicon?be(d.info.project.public_favicon):d.info?.project?.project_color?on(d.info.project.project_color,!d.info.project.project_logo):`${dt()}favicon.ico`,[{rel:`icon`,href:e}]}),bodyAttrs:f(()=>({class:[S.value?`dark`:`light`]}))}),i(()=>tn()),e(()=>nn());let M=f(()=>d.info?.project?.custom_css||``),N=f(()=>l.error),te=()=>{window.location.reload()};return(e,t)=>(r(),a(c,null,[E(w(ee),{"dark-mode":w(S),"theme-light":w(O),"theme-dark":w(T),"theme-light-overrides":w(k),"theme-dark-overrides":w(D)},null,8,[`dark-mode`,`theme-light`,`theme-dark`,`theme-light-overrides`,`theme-dark-overrides`]),n(`div`,sn,[E(C,{name:`fade`},{default:u(()=>[w(j)?(r(),a(`div`,cn,[E(R,{indeterminate:``})])):x(``,!0)]),_:1}
13),N.value?(r(),o(H,{key:0,type:`danger`,title:e.$t(`unexpected_error`),icon:`error`,center:``},{append:u(()=>[E(L,{class:`error`,error:N.value},null,8,[`error`]),E(I,{small:``,onClick:te},{default:u(()=>[g(_(e.$t(`reload_page`)),1)]),_:1})]),default:u(()=>[g(_(e.$t(`unexpected_error_copy`))+` `,1)]),_:1},8,[`title`])):w(j)?x(``,!0):(r(),o(w(Zt),{key:1}))]),(r(),o(s,{to:`#custom-css`},[g(_(M.value),1)]))],64))}}),[[`__scopeId`,`data-v-b8bee24c`]]),un=W(T({__name:`v-resizeable`,props:{width:{},minWidth:{default:e=>e.width},maxWidth:{default:1/0},defaultWidth:{default:e=>e.minWidth??e.width},disabled:{type:Boolean},options:{}},emits:[`update:width`,`dragging`,`transitionEnd`],setup(e,{emit:n}){let i=e,o=n,s=S(),c=f(()=>{let e=s.value?.firstElementChild;if(e instanceof HTMLElement&&!e?.classList.contains(`grab-bar`))return e}),l=te(c),u=S(!1),d=S(!1),h=0,g=0,_=0,v,y;P(window,`pointermove`,k),P(window,`pointerup`,A),P(c,`transitionend`,e=>{e.target===c.value&&e.propertyName===`width`&&o(`transitionEnd`)});let b=N(i,`width`,o),C=B(),T=f(()=>C.textDirection===`rtl`);m([b,c,()=>i.maxWidth],([e,t,n])=>{if(!t)return;let r=e>n?n:e;t.style.inlineSize=`${r}px`},{immediate:!0}),m(d,e=>{o(`dragging`,e)});function E(){b.value=i.defaultWidth}function O(e){c.value&&(d.value=!0,y=document.body.style.cursor,document.body.style.cursor=`ew-resize`,h=e.pageX,g=c.value.offsetWidth,_=e.pageX)}function k(e){d.value&&(v=window.requestAnimationFrame(()=>{let t=e.pageX-h,n=(0,G.clamp)(T.value?g-t:g+t,i.minWidth,i.maxWidth),r=i.options?.snapZones;if(Array.isArray(r)){let t;e.pageX<_?t=`left`:e.pageX>_&&(t=`right`),_=e.pageX;for(let e of r){if(e.direction&&!t)return;if((!e.direction||e.direction===t)&&Math.abs(n-e.snapPos)<e.width){b.value=e.snapPos,e.onSnap&&e.onSnap();return}}}b.value=n}))}function A(){if(!d.value)return;d.value=!1,document.body.style.cursor=y;let e=i.options?.snapZones;if(Array.isArray(e)){for(let t of e)if(Math.abs(i.width-t.snapPos)<t.width){t.onPointerUp&&t.onPointerUp();break}}v&&window.cancelAnimationFrame(v)}return(n,i)=>e.disabled?p(n.$slots,`default`,{key:1}):(r(),a(`div`,{key:0,ref_key:`wrapper`,ref:s,class:D([`resize-wrapper`,{transition:!d.value&&!e.options?.disableTransition}])},[p(n.$slots,`default`),w(l)?(r(),a(`div`,{key:0,class:D([`grab-bar`,{active:u.value,"always-show":e.options?.alwaysShowHandle}]),onPointerenter:i[0]||=e=>u.value=!0,onPointerleave:i[1]||=e=>u.value=!1,onPointerdown:t(O,[`self`]),onDblclick:E},null,34)):x(``,!0)],2))}}),[[`__scopeId`,`data-v-ddbf4e9d`]]),dn={},fn={class:`v-card-subtitle`};function pn(e,t){return r(),a(`div`,fn,[p(e.$slots,`default`,{},void 0,!0)])}var mn=W(dn,[[`render`,pn],[`__scopeId`,`data-v-fe6f8f22`]]),hn=T({__name:`v-hover`,props:{closeDelay:{default:0},openDelay:{default:0},disabled:{type:Boolean,default:!1},tag:{default:`div`}},setup(e){let t=e,n=S(!1);function i(){t.disabled!==!0&&setTimeout(()=>{n.value=!0},t.openDelay)}function a(){t.disabled!==!0&&setTimeout(()=>{n.value=!1},t.closeDelay)}return(t,s)=>(r(),o(l(e.tag),{onMouseenter:i,onMouseleave:a},{default:u(()=>[p(t.$slots,`default`,d(b({hover:n.value})))]),_:3},32))}}),gn={},_n={class:`v-sheet`};function vn(e,t){return r(),a(`div`,_n,[p(e.$slots,`default`,{},void 0,!0)])}var yn=W(gn,[[`render`,vn],[`__scopeId`,`data-v-2d205cb9`]]);function bn(e){e.component(`VAvatar`,Oe),e.component(`VBadge`,ye),e.component(`VBreadcrumb`,$t),e.component(`VButton`,I),e.component(`VCardActions`,xt),e.component(`VCardSubtitle`,mn),e.component(`VCardText`,nt),e.component(`VCardTitle`,Lt),e.component(`VCard`,kt),e.component(`VCheckbox`,ce),e.component(`VCheckboxTree`,zt),e.component(`VChip`,Re),e.component(`VDetail`,Jt),e.component(`VDialog`,ft),e.component(`VDivider`,ue),e.component(`VError`,L),e.component(`VFancySelect`,Bt),e.component(`VFieldTemplate`,Ft),e.component(`VCollectionFieldTemplate`,se),e.component(`VFieldList`,ot),e.component(`VForm`,ht),e.component(`VHover`,hn),e.component(`VHighlight`,Ct),e.component(`VIcon`,Ke),e.component(`VImage`,We),e.component(`VIconFile`,oe),e.component(`VInfo`,H),e.component(`VInput`,Gt),e.component(`VItemGroup`,ze),e.component(`VItem`,ae),e.component(`VListGroup`,Fe),e.component(`VListItemContent`,Se),e.component(`VListItemHint`,_e),e.component(`VListItemIcon`,Xt),e.component(`VRemove`,ke),e.component(`VListItem`,me),e.component(`VList`,Be),e.component(`VMenu`,ge),e.component(`VDrawer`,it),e.component(`VNotice`,qt),e.component(`VOverlay`,Ye),e.component(`VPagination`,de),e.component(`VProgressCircular`,R),e.component(`VProgressLinear`,fe),e.component(`VRadio`,pe),e.component(`VRadioCards`,Ve),e.component(`VResizeable`,un),e.component(`VSelect`,Ne),e.component(`VSheet`,yn),e.component(`VSkeletonLoader`,vt),e.component(`VSlider`,Wt),e.component(`VTabItem`,yt),e.component(`VTab`,De),e.component(`VTable`,le),e.component(`VTabsItems`,et),e.component(`VTabs`,Te),e.component(`VTemplateInput`,qe),e.component(`VTextarea`,_t),e.component(`VTextOverflow`,Mt),e.component(`VUpload`,he),e.component(`VDatePicker`,ie),e.component(`VEmojiPicker`,Vt),e.component(`VWorkspace`,st),e.component(`VWorkspaceTile`,At),e.component(`VErrorBoundary`,Ce),e.component(`TransitionBounce`,Le),e.component(`TransitionDialog`,Ut),e.component(`TransitionExpand`,$e),e.component(`RenderDisplay`,Me),e.component(`RenderTemplate`,ve),e.component(`ExportSidebarDetail`,Qe),e.component(`SidebarDetail`,Kt),e.component(`UserPopover`,Ee),e.component(`ValueNull`,He),e.component(`DrawerCollection`,xe),e.component(`DrawerFiles`,Ie),e.component(`DrawerItem`,Ae),e.component(`DrawerBatch`,Pe)}var xn=(e,{value:t})=>{let{handler:n,middleware:r,events:i,disabled:a}=Tn(t);m(()=>t,n=>{JSON.stringify(n)!==JSON.stringify(t)&&Cn(e,{value:n,oldValue:null})}),a!==!0&&(e.$clickOutsideHandlers=i.map(t=>({event:t,handler:t=>En({event:t,el:e,handler:n,middleware:r})}
13)),e.$clickOutsideHandlers.forEach(({event:t,handler:n})=>{setTimeout(()=>{e.$clickOutsideHandlers&&document.documentElement.addEventListener(t,n,!1)})}))},Sn=e=>{(e.$clickOutsideHandlers||[]).forEach(({event:e,handler:t})=>{document.documentElement.removeEventListener(e,t,!1)})},Cn=(e,{value:t,oldValue:n})=>{JSON.stringify(t)!==JSON.stringify(n)&&(Sn(e),xn(e,{value:t}))},wn={beforeMount:xn,unmounted:Sn,updated:Cn};function Tn(e){let t=typeof e==`function`,n;if(t)n={handler:e,middleware:()=>!0,events:[`pointerdown`],disabled:!1};else{let t=e;n={handler:t.handler||(()=>void 0),middleware:t.middleware||(()=>!0),events:t.events||[`pointerdown`],disabled:t.disabled===void 0?!1:!!t.disabled}}return n}function En({el:e,event:t,handler:n,middleware:r}){t.stopPropagation();let i=t.composedPath();(i?i.indexOf(e)<0:e.contains(t.target)===!1)&&r(t)&&n(t)}function Dn(e,t){let n=t.instance?.$refs[t.value];n&&(e.addEventListener(`contextmenu`,An(n)),document.documentElement.addEventListener(`pointerdown`,jn(n)))}function On(e,t){let n=t.instance?.$refs[t.value];n&&(e.removeEventListener(`contextmenu`,An(n)),document.documentElement.removeEventListener(`pointerdown`,jn(n)))}var kn={mounted:Dn,unmounted:On};function An(e){return t=>{t.stopPropagation(),t.preventDefault(),e&&e.activate(t)}}function jn(e){return t=>{e&&(t.composedPath().find(t=>t.id===e.id)||e.deactivate(t))}}var Mn={mounted:e=>{e.onUpdate=()=>Nn(e),e.shadow=document.createElement(`div`),e.shadow.setAttribute(`aria-hidden`,`true`),Pn(e),document.body.appendChild(e.shadow),Nn(e),e.addEventListener(`input`,e.onUpdate)},updated:e=>{e.onUpdate&&e.onUpdate()},unmounted:e=>{document.body.removeChild(e.shadow),e.onUpdate&&e.removeEventListener(`input`,e.onUpdate)}};function Nn(e){let t=e.value||e.placeholder;e.shadow.textContent=t,e.style.inlineSize=`${e.shadow.scrollWidth}px`}function Pn(e){let t=window.getComputedStyle(e);Object.assign(e.shadow.style,{position:`absolute`,insetBlockStart:`0`,insetInlineStart:`0`,visibility:`hidden`,blockSize:`0`,overflow:`hidden`,whiteSpace:`pre`,fontSize:t.fontSize,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontStyle:t.fontStyle,letterSpacing:t.letterSpacing,textTransform:t.textTransform,paddingInlineEnd:`calc(${t.paddingInlineEnd} + ${t.borderInlineEndWidth})`,paddingInlineStart:`calc(${t.paddingInlineStart} + ${t.borderInlineStartWidth})`})}var Fn={beforeMount:In,updated:In};function In(e,t){typeof t.value==`object`&&`value`in t.value?e.innerHTML=lt(t.value.value,t.value):e.innerHTML=lt(t.value??``)}var Ln={mounted(e,t){t.value&&e.addEventListener(`focusout`,$)},updated(e,t){t.oldValue&&!t.value&&(e.removeEventListener(`focusout`,$),e.contains(document.activeElement)||e.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,composed:!0,view:window}))),t.value&&!t.oldValue&&(e.addEventListener(`focusout`,$),e.contains(document.activeElement)||e.dispatchEvent(new FocusEvent(`focusin`,{bubbles:!0})))}};function $(e){e.preventDefault(),e.stopPropagation()}function Rn(e){e.directive(`click-outside`,wn),e.directive(`context-menu`,kn),e.directive(`focus`,we),e.directive(`prevent-focusout`,Ln),e.directive(`input-auto-width`,Mn),e.directive(`md`,Fn),e.directive(`tooltip`,gt)}var zn=v(()=>Tt(()=>import(`./private-CEEL_eB7.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url));function Bn(e){e.component(`PublicView`,pt),e.component(`PrivateView`,zn),e.component(`SharedView`,Nt)}function Vn(e){e.provide(k,{useAppStore:U,useCollectionsStore:mt,useFieldsStore:Ot,useFlowsStore:Yt,useInsightsStore:St,useNotificationsStore:tt,usePermissionsStore:Et,usePresetsStore:Ue,useRelationsStore:Ze,useRequestsStore:ut,useServerStore:V,useSettingsStore:Ge,useTranslationsStore:Pt,useUserStore:B}),e.provide(`api`,ct),e.provide(`sdk`,jt),e.provide(M,It())}Hn();async function Hn(){console.log(Je),console.info(`Hey! Interested in helping build this open-source data management platform? 14If so, join our growing team of contributors at: https://directus.chat`),console.info(`%cð° Starting Directus...`,`color:Green`),console.time(`ð Application Loaded`);let e=y(ln);e.use(rt),e.use(re()),e.use(O()),e.config.errorHandler=(e,t,n)=>{let r=je(t);return console.warn(`[app-${r}-error] ${n}`),console.warn(e),!1},Rn(e),bn(e),Bn(e),await Xe(),Dt(e),e.use(wt),Vn(e),e.mount(`#app`),console.timeEnd(`ð Application Loaded`),console.group(`%c⨠Project Information`,`color:DodgerBlue`),console.info(`%cEnvironment: production`,`color:DodgerBlue`),console.groupEnd(),window.addEventListener(`dragover`,e=>e.preventDefault(),!1),window.addEventListener(`drop`,e=>e.preventDefault(),!1)}
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.