1import{_ as fe}from"./C0fHjE28.js";import{_ as pe}from"./CbrxTHHZ.js";import{_ as Z}from"./BTfm7E1K.js";import{u as J,_ as Y,P as F,t as L,c as ve}from"./BEQbJKKZ.js";import{_ as be,a as me,b as he,c as ge,d as ye}from"./CMrhkHuI.js";import{r as T,a8 as W,p as B,a9 as ne,aa as we,g as Se,a0 as ke,U as _e,f as ze,ab as $e,J as G,o as k,c as I,a as D,w as O,n as j,u as n,K as x,e as ee,t as te,i as N,j as q,Q as A,b as R,F as Q,ac as xe,k as _,v as le,ad as Ce,Y as re,d as ce,P as ue,G as X,O as je,a1 as Ee,ae as De,af as Oe}from"./pOih5CZk.js";import{c as ae,b as Te,d as Me}from"./NwrPPP4O.js";import{u as de}from"./CRKBUtqR.js";import{_ as Pe}from"./GDZheItK.js";import"./DlAUqK2U.js";import"./5OOGLFVg.js";import"./DQjukj4-.js";import"./E3QYEmfB.js";import"./CwwqiEVL.js";import"./CyXkk-u2.js";import"./xyIIsUS2.js";import"./DpMcjQlg.js";import"./BBfWLzsl.js";import"./DFyBYJKN.js";import"./PT8AzPKt.js";import"./DcYI9v1_.js";const qe=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function Ne(e,a){if(typeof e!="string")throw new TypeError("argument str must be a string");const t=new qe,o=a||{},s=o.decode||Re;let i=0;for(;i<e.length;){const l=e.indexOf("=",i);if(l===-1)break;let c=e.indexOf(";",i);if(c===-1)c=e.length;else if(c<l){i=e.lastIndexOf(";",l-1)+1;continue}const r=e.slice(i,l).trim();if(o?.filter&&!o?.filter(r)){i=c+1;continue}if(t[r]===void 0){let f=e.slice(l+1,c).trim();f.codePointAt(0)===34&&(f=f.slice(1,-1)),t[r]=Ue(f,s)}i=c+1}return t}function Re(e){return e.includes("%")?decodeURIComponent(e):e}function Ue(e,a){try{return a(e)}catch{return e}}const V=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function oe(e,a,t){const o=t||{},s=o.encode||encodeURIComponent;if(typeof s!="function")throw new TypeError("option encode is invalid");if(!V.test(e))throw new TypeError("argument name is invalid");const i=s(a);if(i&&!V.test(i))throw new TypeError("argument val is invalid");let l=e+"="+i;if(o.maxAge!==void 0&&o.maxAge!==null){const c=o.maxAge-0;if(Number.isNaN(c)||!Number.isFinite(c))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(c)}if(o.domain){if(!V.test(o.domain))throw new TypeError("option domain is invalid");l+="; Domain="+o.domain}if(o.path){if(!V.test(o.path))throw new TypeError("option path is invalid");l+="; Path="+o.path}if(o.expires){if(!Ie(o.expires)||Number.isNaN(o.expires.valueOf()))throw new TypeError("option expires is invali
1d");l+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(l+="; HttpOnly"),o.secure&&(l+="; Secure"),o.priority)switch(typeof o.priority=="string"?o.priority.toLowerCase():o.priority){case"low":{l+="; Priority=Low";break}case"medium":{l+="; Priority=Medium";break}case"high":{l+="; Priority=High";break}default:throw new TypeError("option priority is invalid")}if(o.sameSite)switch(typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite){case!0:{l+="; SameSite=Strict";break}case"lax":{l+="; SameSite=Lax";break}case"strict":{l+="; SameSite=Strict";break}case"none":{l+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return o.partitioned&&(l+="; Partitioned"),l}function Ie(e){return Object.prototype.toString.call(e)==="[object Date]"||e instanceof Date}function P(e){if(typeof e!="object")return e;var a,t,o=Object.prototype.toString.call(e);if(o==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){t=new e.constructor;for(a in e)e.hasOwnProperty(a)&&t[a]!==e[a]&&(t[a]=P(e[a]))}else{t={};for(a in e)a==="__proto__"?Object.defineProperty(t,a,{value:P(e[a]),configurable:!0,enumerable:!0,writable:!0}):t[a]=P(e[a])}return t}if(o==="[object Array]"){for(a=e.length,t=Array(a);a--;)t[a]=P(e[a]);return t}return o==="[object Set]"?(t=new Set,e.forEach(function(s){t.add(P(s))}),t):o==="[object Map]"?(t=new Map,e.forEach(function(s,i){t.set(P(i),P(s))}),t):o==="[object Date]"?new Date(+e):o==="[object RegExp]"?(t=new RegExp(e.source,e.flags),t.lastIndex=e.lastIndex,t):o==="[object DataView]"?new e.constructor(P(e.buffer)):o==="[object ArrayBuffer]"?e.slice(0):o.slice(-6)==="Array]"?new e.constructor(e):e}function Le(e){if(e!=="undefined")try{const a=JSON.parse(e);return typeof a=="number"&&String(a)!==e?e:a}catch{return e}}const Ae={path:"/",watch:!0,decode:e=>e&&Le(decodeURIComponent(e)),encode:e=>{if(typeof e!="string"||e==="undefined")return encodeURIComponent(JSON.stringify(e));try{if(typeof JSON.parse(e)!="string")return encodeURIComponent(JSON.stringify(e))}catch{}return encodeURIComponent(e)},refresh:!1},H=globalThis.cookieStore;function Be(e,a){const t={...Ae,...a};t.filter??=f=>f===e;const o=se(t)||{};let s;t.maxAge!==void 0?s=t.maxAge*1e3:t.expires&&(s=t.expires.getTime()-Date.now());const i=s!==void 0&&s<=0,l=i||o[e]===void 0||o[e]===null,c=P(i?void 0:o[e]??t.default?.()),r=s&&!i?Je(c,s,t.watch&&t.watch!=="shallow"):T(c);{let f=null;try{!H&&typeof BroadcastChannel<"u"&&(f=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const b=(y=!1)=>{if(!y&&(t.readonly||ke(r.value,o[e])))return;const C=r.value===null||r.value===void 0?void 0:t.encode(r.value);Fe(e,C,t),o[e]=P(r.value),f?.postMessage({value:t.encode(r.value)})},g=y=>{const C=y.refresh?se(t)?.[e]:t.decode(y.value);v=!0,r.value=C,o[e]=P(C),Se(()=>{v=!1})};let v=!1;const d=!!ne();if(d&&W(()=>{v=!0,b(),f?.close()}),H){const y=C=>{const w=C.changed.find(E=>E.name===e),m=C.deleted.find(E=>E.name===e);w&&g({value:w.value}),m&&g({value:null})};H.addEventListener("change",y),d&&W(()=>H.removeEventListener("change",y))}else f&&(f.onmessage=({data:y})=>g(y));t.watch&&B(r,()=>{v||b(t.refresh)},{deep:t.watch!=="shallow"}),l&&b(l)}return r}function se(e={}){return Ne(document.cookie,e)}const Xe=e=>e;function Ve(e){const{encode:a,decode:t,...o}=e;return{...o,encode:Xe}}function He(e,a,t={}){const o=Ve(t);return a===void 0?oe(e,"",{...o,maxAge:-1}):oe(e,a,o)}function Fe(e,a,t={}){document.cookie=He(e,a,t)}const ie=2147483647;function Je(e,a,t){let o,s,i=0;const l=t?T(e):{value:e};return ne()&&W(()=>{s?.(),clearTimeout(o)}),we((c,r)=>{t&&(s=B(l,r));function f(){const g=a-i,v=g<ie?g:ie;o=setTimeout(()=>{if(i+=v,i<a)return f();l.value=void 0,r()},v)}function b(){i=0,clearTimeout(o),f()}return{get(){return c(),l.value},set(g){b(),l.value=g,r()}}})}const Ge={slots:{root:"peer [--sidebar-width:16rem] [--sidebar-width-icon:4rem]",gap:"relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",container:"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear lg:flex",inner:"flex size-full flex-col overflow-hidden divide-y divide-default",header:"flex items-center gap-1.5 overflow-hidden px-4 min-h-(--ui-header-height)",wrapper:"min-w-0 flex-1",title:"text-highlighted font-semibold truncate",description:"text-muted text-sm truncate",actions:"flex items-center gap-1.5 shrink-0",close:"",body:"flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto p-4",footer:"flex items-center gap-1.5 overflow-hidden p-4",rail:["absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-px lg:flex hover:after:bg-(--ui-border-accented)","after:transition-colors"]},variants:{side:{left:{container:"left-0 border-e border-default",rail:"end-0 translate-x-1/2"},right:{container:"right-0 border-s border-default",rail:"-start-px -translate-x-1/2"}},collapsible:{offcanvas:{root:"group/sidebar hidden lg:block",gap:"data-[state=collapsed]:w-0"},icon:{root:"group/sidebar hidden lg:block",gap:"data-[state=collapsed]:w-(--sidebar-width-icon)",container:"data-[state=collapsed]:w-(--sidebar-width-icon)",actions:"group-data-[state=collapsed]/sidebar:hidden",body:"group-data-[state=collapsed]/sidebar:overflow-hidden"},none:{root:"h-full w-(--sidebar-width)"}},variant:{sidebar:{},floating:{container:"p-4 border-transparent",inner:"rounded-lg ring ring-default shadow-lg",rail:"inset-y-4"},inset:{container:"py-4 border-transparent",inner:"divide-transparent",rail:"inset-y-4"}}},compoundVariants:[{side:"left",collapsible:["offcanvas","icon"],class:{rail:"cursor-w-resize data-[state=collapsed]:cursor-e-resize"}},{side:"right",collapsible:["offcanvas","icon"],class:{rail:"cursor-e-resize data-[state=collapsed]:cursor-w-resize"}},{side:"left",collapsible:"none",class:{root:"border-e border-default"}},{side:"right",collapsible:"none",class:{root:"border-s border-default"}},{side:"left",collapsible:"offcanvas",class:{container:"data-[state=collapsed]:-left-(--sidebar-width)"}},{side:"right",collapsible:"offcanvas",class:{container:"data-[state=collapsed]:-right-(--sidebar-width)"}},{variant:"floating",collapsible:"icon",class:{gap:"data-[state=collapsed]:w-[calc(var(--sidebar-width-icon)+--spacing(8))]",container:"data-[state=collapsed]:w-[calc(var(--sidebar-width-icon)+--spacing(8)+2px)]"}},{variant:"floating",collapsible:"none",class:{root:"p-4 border-0"}},{variant:"inset",collapsible:"none",class:{root:"py-4 border-0"}},{variant:"floating",side:"left",class:{rail:"end-4"}},{variant:"floating",side:"right",class:{rail:"start-[calc(--spacing(4)-1px)]"}}]},Ke=["data-state"],We=["data-state"],Qe=["data-state","aria-label"],Ye=Object.assign({inheritAttrs:!1},{__name:"USidebar",props:xe({as:{type:null,required:!1,default:"aside"},variant:{type:null,required:!1,default:"sidebar"},collapsible:{type:null,required:!1,default:"offcanvas"},side:{type:null,required:!1,default:"left"},title:{type:String,required:!1},description:{type:String,required:!1},close:{type:[Boolean,Object],required:!1,default:!1},closeIcon:{type:null,required:!1},rail:{type:Boolean,required:!1,default:!1},mode:{type:null,required:!1,default:"slideover"},menu:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},{open:{type:Boolean,default:!0},openModifiers:{}}),emits:["update:open"],setup(e){const a=e,t=_e(),[o,s]=ae(),[i,l]=ae(),c=Te("(max-width: 1023px)"),r=T(!1);ze(()=>{r.value=!0});const f=_(()=>r.value&&c.value),b=$e(e,"open",{type:Boolean,default:!0}),g=T(!1),v=T(b.value),d=_({get:()=>f.value?g.value:b.value,set:p=>{f.value?g.value=p:b.value=p}});B(f,p=>{p?(v.value=b.value,b.value=!1):b.value=v.value},{immediate:!0}),B(b,p=>{f.value&&(g.value=p)}),B(g,p=>{f.value&&(b.value=p)});const{t:y}=de(),C=G(),w=J("sidebar",a),m=_(()=>d.value?"expanded":"collapsed"),E=_(()=>a.close&&a.collapsible!=="none"||f.value);function u(){d.value=!1}const S=_(()=>!!t.header||a.title||!!t.title||a.description||!!t.description||!!t.actions||E.value||!!t.close),h=_(()=>L({extend:L(Ge),...C.ui?.sidebar||{}})({side:a.side,variant:a.variant,collapsible:a.collapsible})),U=_(()=>({slideover:me,modal:Pe,drawer:be})[a.mode]),M=le(()=>
1Ce(a.menu,{title:a.title,description:a.description,close:a.close,closeIcon:a.closeIcon},a.mode==="modal"?{}:a.mode==="slideover"?{side:a.side,inset:a.variant==="inset"}:{}));return(p,z)=>(k(),I(Q,null,[D(n(i),null,{default:O(()=>[S.value?(k(),I("div",{key:0,"data-slot":"header",class:j(h.value.header({class:n(w)?.header}))},[x(p.$slots,"header",{state:m.value,open:d.value,close:u},()=>[e.title||t.title||e.description||t.description?(k(),I("div",{key:0,"data-slot":"wrapper",class:j(h.value.wrapper({class:n(w)?.wrapper}))},[e.title||t.title?(k(),I("p",{key:0,"data-slot":"title",class:j(h.value.title({class:n(w)?.title}))},[x(p.$slots,"title",{state:m.value},()=>[ee(te(e.title),1)])],2)):N("",!0),e.description||t.description?(k(),I("p",{key:1,"data-slot":"description",class:j(h.value.description({class:n(w)?.description}))},[x(p.$slots,"description",{state:m.value},()=>[ee(te(e.description),1)])],2)):N("",!0)],2)):N("",!0),t.actions||E.value?(k(),I("div",{key:1,"data-slot":"actions",class:j(h.value.actions({class:n(w)?.actions}))},[x(p.$slots,"actions",{state:m.value}),x(p.$slots,"close",{state:m.value,ui:h.value},()=>[E.value?(k(),q(Y,A({key:0,icon:e.closeIcon||n(C).ui.icons.close,color:"neutral",variant:"ghost","aria-label":n(y)("sidebar.close")},typeof a.close=="object"?a.close:{},{"data-slot":"close",class:h.value.close({class:n(w)?.close}),onClick:u}),null,16,["icon","aria-label","class"])):N("",!0)])],2)):N("",!0)])],2)):N("",!0),R("div",{"data-slot":"body",class:j(h.value.body({class:n(w)?.body}))},[x(p.$slots,"default",{state:m.value,open:d.value,close:u})],2),t.footer?(k(),I("div",{key:1,"data-slot":"footer",class:j(h.value.footer({class:n(w)?.footer}))},[x(p.$slots,"footer",{state:m.value,open:d.value,close:u})],2)):N("",!0)]),_:3}),D(n(o),null,{default:O(()=>[R("div",{"data-slot":"inner",class:j(h.value.inner({class:n(w)?.inner}))},[D(n(l))],2)]),_:1}),e.collapsible==="none"?(k(),q(n(F),A({key:0,as:e.as},p.$attrs,{"data-slot":"root","data-variant":e.variant,class:h.value.root({class:[n(w)?.root,a.class]})}),{default:O(()=>[D(n(s))]),_:1},16,["as","data-variant","class"])):(k(),I(Q,{key:1},[D(n(F),A({as:e.as},p.$attrs,{"data-slot":"root","data-state":m.value,"data-collapsible":m.value==="collapsed"?e.collapsible:void 0,"data-variant":e.variant,"data-side":e.side,class:h.value.root({class:[n(w)?.root,a.class]})}),{default:O(()=>[R("div",{"data-slot":"gap","data-state":m.value,class:j(h.value.gap({class:n(w)?.gap}))},null,10,Ke),R("div",{"data-slot":"container","data-state":m.value,class:j(h.value.container({class:n(w)?.container}))},[D(n(s)),e.rail?x(p.$slots,"rail",{key:0,state:m.value,ui:h.value},()=>[R("button",{"data-slot":"rail","data-state":m.value,"aria-label":n(y)("sidebar.toggle"),tabindex:-1,class:j(h.value.rail({class:n(w)?.rail})),onClick:z[0]||(z[0]=$=>d.value=!d.value)},null,10,Qe)]):N("",!0)],10,We)]),_:3},16,["as","data-state","data-collapsible","data-variant","data-side","class"]),f.value?(k(),q(n(U),A({key:0,open:g.value,"onUpdate:open":z[1]||(z[1]=$=>g.value=$)},M.value),{content:O($=>[x(p.$slots,"content",A($,{close:u}),()=>[D(n(l))])]),_:3},16,["open"])):N("",!0)],64))],64))}}),Ze=()=>{const e=re(),a=_(()=>{const i=e.path.split("/").filter(Boolean)[0]??"";return["just-join-it","no-fluff-jobs","pracuj-pl"].includes(i)?i:"just-join-it"}),t=_(()=>{const i=e.path.split("/").filter(Boolean)[1]??"postings";return["postings","statistics","search-criteria"].includes(i)?i:"postings"}),o=_(()=>{const i=e.path.split("/").filter(Boolean)[2]??"postings";return["postings","employers","technologies"].includes(i)?i:"postings"});return{platformState:a,scopeState:t,subScopeState:o}},et={class:"w-full overflow-hidden"},tt=ce({__name:"sidebar",setup(e){const a=re(),{platformState:t,scopeState:o,subScopeState:s}=Ze(),i=ue("sidebar-open",()=>!0),l=_(()=>{switch(t.value){case"just-join-it":return fe;case"no-fluff-jobs":return pe;case"pracuj-pl":return Z;default:return Z}});function c(v){const d=`/${v}/${o.value}`;return o.value==="statistics"?`${d}/${s.value}`:d}function r(v){const d=`/${t.value}/${v}`;return v==="statistics"?`${d}/${s.value}`:d}function f(v){return`/${t.value}/statistics/${v}`}const b=_(()=>{const v=i.value,d=o.value,y=s.value;return[{label:"Postings",icon:"i-lucide-layout-list",to:r("postings"),active:d==="postings"},{label:"Statistics",icon:"i-lucide-chart-bar",to:r("statistics"),active:d==="statistics",defaultOpen:!0,children:v?[{label:"Postings",icon:"i-lucide-inbox",to:f("postings"),active:d==="statistics"&&y==="postings"},{label:"Employers",icon:"i-lucide-building-2",to:f("employers"),active:d==="statistics"&&y==="employers"},{label:"Technologies",icon:"i-lucide-cpu",to:f("technologies"),active:d==="statistics"&&y==="technologies"}]:[]},{label:"Search criteria",icon:"i-lucide-filter",to:r("search-criteria"),active:d==="search-criteria"}]}),g=_(()=>{const v=t.value;return[{label:"Just Join It",icon:"i-lucide-building",to:c("just-join-it"),active:v==="just-join-it"},{label:"No Fluff Jobs",icon:"i-lucide-building",to:c("no-fluff-jobs"),active:v==="no-fluff-jobs"},{label:"Pracuj.pl",icon:"i-lucide-building",to:c("pracuj-pl"),active:v==="pracuj-pl"},{label:"Home",icon:"i-lucide-home",to:"/"},{label:"Sign out",icon:"i-lucide-log-out",to:"/sign-out"}]});return(v,d)=>{const y=Y,C=he,w=Ye;return k(),q(w,{open:n(i),"onUpdate:open":d[1]||(d[1]=m=>X(i)?i.value=m:null),collapsible:"icon",rail:"",ui:{container:"!top-0 !h-screen",gap:"!h-screen",inner:"divide-transparent",body:"py-0",footer
1:"overflow-hidden w-full"}},{header:O(()=>[D(y,{icon:"i-lucide-panel-left",color:"neutral",variant:"ghost","aria-label":"Toggle sidebar",onClick:d[0]||(d[0]=m=>i.value=!n(i))}),(k(),q(je(n(l)),{class:"h-15 w-auto py-3"}))]),default:O(({state:m})=>[(k(),q(C,{key:`main-${n(a).path}-${m}`,items:n(b),orientation:"vertical",ui:{link:"p-2.5 w-full overflow-hidden"}},null,8,["items"]))]),footer:O(({state:m})=>[R("div",et,[(k(),q(C,{key:`footer-${n(a).path}-${m}`,items:n(g),orientation:"vertical",ui:{link:"p-2.5 w-full overflow-hidden"}},null,8,["items"]))])]),_:1},8,["open"])}}}),at=Object.assign(tt,{__name:"DashboardSidebar"});function ot(e,a={},{collapsed:t=T(!1)}={}){const o=T(null),s=_(()=>({side:"left",minSize:0,maxSize:100,defaultSize:0,storage:"cookie",persistent:!0,collapsible:!1,collapsedSize:0,resizable:!0,unit:"%",...X(a)?a.value:a})),{dir:i}=de(),l={size:s.value.defaultSize,collapsed:n(t)??!1},c=s.value.persistent&&(s.value.resizable||s.value.collapsible)?s.value.storage==="cookie"?Be(e,{default:()=>l}):Me(e,l):T(l),r=_({get:()=>c.value.collapsed,set:u=>{s.value.collapsible&&(X(t)&&(t.value=u),c.value.collapsed=u)}}),f=T(s.value.defaultSize),b=_({get:()=>c.value.size,set:u=>{c.value.size=u}}),g=_(()=>r.value?s.value.collapsedSize:b.value),v=T(!1),d=(u,S,h)=>{if(!o.value||!s.value.resizable)return;const U=o.value.parentElement?.offsetWidth||1,M=i.value==="rtl";let p;M?p=s.value.side==="left"?S-u.clientX:u.clientX-S:p=s.value.side==="left"?u.clientX-S:S-u.clientX;const z=h+p;let $;if(s.value.unit==="rem"){const K=Number.parseFloat(getComputedStyle(document.documentElement).fontSize);$=z/K}else s.value.unit==="px"?$=z:$=z/U*100;if(s.value.collapsible&&$<s.value.collapsedSize+4){E(!0);return}else r.value&&E(!1);b.value=Math.min(s.value.maxSize,Math.max(s.value.minSize,$))},y=u=>{if(!o.value||!s.value.resizable)return;u.preventDefault(),u.stopPropagation();const S=o.value.getBoundingClientRect().width;if(!S)return;const h=u.clientX,U=S;v.value=!0;const M=z=>{d(z,h,U)},p=()=>{v.value=!1,document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",p)};document.addEventListener("mousemove",M),document.addEventListener("mouseup",p)},C=(u,S,h)=>{if(!o.value||!s.value.resizable||!u.touches[0])return;const U=o.value.parentElement?.offsetWidth||1,M=i.value==="rtl";let p;M?p=s.value.side==="left"?S-u.touches[0].clientX:u.touches[0].clientX-S:p=s.value.side==="left"?u.touches[0].clientX-S:S-u.touches[0].clientX;const z=h+p;let $;if(s.value.unit==="rem"){const K=Number.parseFloat(getComputedStyle(document.documentElement).fontSize);$=z/K}else s.value.unit==="px"?$=z:$=z/U*100;if(s.value.collapsible&&$<s.value.collapsedSize+4){E(!0);return}else r.value&&E(!1);b.value=Math.min(s.value.maxSize,Math.max(s.value.minSize,$))},w=u=>{if(!o.value||!s.value.resizable||!u.touches[0])return;u.preventDefault(),u.stopPropagation();const S=o.value.getBoundingClientRect().width;if(!S)return;const h=u.touches[0].clientX,U=S;v.value=!0;const M=z=>{C(z,h,U)},p=()=>{v.value=!1,document.removeEventListener("touchmove",M),document.removeEventListener("touchend",p),document.removeEventListener("touchcancel",p)};document.addEventListener("touchmove",M,{passive:!1}),document.addEventListener("touchend",p),document.addEventListener("touchcancel",p)},m=u=>{!o.value||!s.value.resizable||(u.preventDefault(),u.stopPropagation(),r.value&&E(!1),b.value=s.value.defaultSize)},E=u=>{if(!s.value.collapsible)return;const S=u??!r.value;S&&!r.value?f.value=b.value:!S&&r.value&&(b.value=f.value),r.value=S};return X(t)&&c.value.collapsed&&(t.value=c.value.collapsed),X(t)&&B(t,u=>{s.value.collapsible&&c.value.collapsed!==u&&(c.value.collapsed=u)}),{el:o,size:g,isDragging:v,isCollapsed:r,onMouseDown:y,onTouchStart:w,onDoubleClick:m,collapse:E}}const[st,it]=ve("DashboardGroup"),nt={base:"hidden lg:block touch-none select-none cursor-ew-resize relative before:absolute before:inset-y-0 before:-left-1.5 before:-right-1.5 before:z-1"},lt={__name:"UDashboardResizeHandle",props:{as:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e){const a=e,t=G(),o=J("dashboardResizeHandle",a),s=_(()=>L({extend:L(nt),...t.ui?.dashboardResizeHandle||{}}));return(i,l)=>(k(),q(n(F),{as:e.as,role:"separator",class:j(s.value({class:[n(o)?.base,a.class]}))},{default:O(()=>[x(i.$slots,"default")]),_:3},8,["as","class"]))}},rt={slots:{root:"relative flex flex-col min-w-0 min-h-svh lg:not-last:border-e lg:not-last:border-default shrink-0",body:"flex flex-col gap-4 sm:gap-6 flex-1 overflow-y-auto p-4 sm:p-6",handle:""},variants:{size:{true:{root:"w-full lg:w-(--width)"},false:{root:"flex-1"}}}},ct=["data-dragging"],ut=Object.assign({inheritAttrs:!1},{__name:"UDashboardPanel",props:{class:{type:null,required:!1},ui:{type:Object,required:!1},id:{type:String,required:!1},minSize:{type:Number,required:!1,default:15},maxSize:{type:Number,required:!1},defaultSize:{type:Number,required:!1},resizable:{type:Boolean,required:!1,default:!1}},setup(e){const a=e,t=G(),o=J("dashboardPanel",a),s=st({storageKey:"dashboard",unit:"%"}),i=`${s.storageKey}
1-panel-${a.id||Ee()}`,{el:l,size:c,isDragging:r,onMouseDown:f,onTouchStart:b,onDoubleClick:g}=ot(i,le(()=>({...s,...a}))),v=_(()=>L({extend:L(rt),...t.ui?.dashboardPanel||{}})({size:!!c.value}));return(d,y)=>(k(),I(Q,null,[R("div",A({id:i,ref_key:"el",ref:l},d.$attrs,{"data-dragging":n(r),"data-slot":"root",class:v.value.root({class:[n(o)?.root,a.class]}),style:[n(c)?{"--width":`${n(c)}${n(s).unit}`}:void 0]}),[x(d.$slots,"default",{},()=>[x(d.$slots,"header"),R("div",{"data-slot":"body",class:j(v.value.body({class:n(o)?.body}))},[x(d.$slots,"body")],2),x(d.$slots,"footer")])],16,ct),x(d.$slots,"resize-handle",{onMouseDown:n(f),onTouchStart:n(b),onDoubleClick:n(g)},()=>[e.resizable?(k(),q(lt,{key:0,"aria-controls":i,"data-slot":"handle",class:j(v.value.handle({class:n(o)?.handle})),onMousedown:n(f),onTouchstart:n(b),onDblclick:n(g)},null,8,["class","onMousedown","onTouchstart","onDblclick"])):N("",!0)])],64))}}),dt={base:"fixed inset-0 flex overflow-hidden"},ft={__name:"UDashboardGroup",props:{as:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},storage:{type:String,required:!1,default:"cookie"},storageKey:{type:String,required:!1,default:"dashboard"},persistent:{type:Boolean,required:!1,default:!0},unit:{type:String,required:!1,default:"%"}},setup(e){const a=e,t=De(),o=G(),s=J("dashboardGroup",a),i=_(()=>L({extend:L(dt),...o.ui?.dashboardGroup||{}})),l=T(!1),c=T(!1);return it({storage:a.storage,storageKey:a.storageKey,persistent:a.persistent,unit:a.unit,sidebarOpen:l,toggleSidebar:()=>{t.hooks.callHook("dashboard:sidebar:toggle")},sidebarCollapsed:c,collapseSidebar:r=>{t.hooks.callHook("dashboard:sidebar:collapse",r)},toggleSearch:()=>{t.hooks.callHook("dashboard:search:toggle")}}),(r,f)=>(k(),q(n(F),{as:e.as,class:j(i.value({class:[n(s)?.base,a.class]}))},{default:O(()=>[x(r.$slots,"default")]),_:3},8,["as","class"]))}},pt={class:"min-w-0"},vt={class:"mb-4 flex items-center gap-3 lg:hidden"},Nt=ce({__name:"dashboard",setup(e){const a=ue("sidebar-open",()=>!0);return(t,o)=>{const s=at,i=Y,l=Oe,c=ut,r=ye,f=ft,b=ge;return k(),q(b,null,{default:O(()=>[D(f,null,{default:O(()=>[D(s),D(c,{class:"min-w-0 min-h-0",ui:{body:"p-4 sm:p-4"}},{body:O(()=>[R("div",pt,[R("div",vt,[D(i,{icon:"i-lucide-panel-left",color:"neutral",variant:"ghost","aria-label":"Open sidebar",onClick:o[0]||(o[0]=g=>a.value=!0)})]),D(l)])]),_:1}),D(r)]),_:1})]),_:1})}}});
1export{Nt 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.