PageSourceSearch

https://maxroll.gg/assets/arrow-right-to-line-5FGsGrHd.js

js maxroll.gg collected 2026-10-02 15:20:34 UTC 21,165 bytes, 41 lines download raw bytes

1import{r as j,j as e,R as S}from"./jsx-runtime-CDnd_NX6.js";import{C as T,a4 as K,c4 as Pe,H as P,L as Le,S as Ae,bo as ue,B as fe,bh as Qe,n as b,f as H,at as q,au as J,av as W,ar as X,aw as B,ah as G,aj as pe,ak as xe,al as me,aH as Ke,am as ge,ai as qe,bX as Je,c8 as V,aP as We,P as Xe,b as Be,g as Ye,c9 as Ze,a_ as es,h as ce,K as ee,R as Y,U as ss,J as as,z as ts}from"./useUiStateStore-CQw9qIf2.js";import{j as je,u as rs,f as be,a as Z,y as E,h as ns,k as Q,G as ls,F as we,n as is,b as cs,R as os}from"./dropdown-menu-1_pB7Z2D.js";import{i as oe}from"./skeleton-BWQZRiFq.js";import{c as ds}from"./pencil-CzHjpiha.js";import{a as hs}from"./loader-circle-DYLVRL2s.js";import{a as us}from"./list-BabcCMr7.js";import{I as ve}from"./column-header-DQcB1K5H.js";import{s as ye}from"./quantity-column-DyyIrkoQ.js";/**
2 * @license lucide-react v0.525.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const fs=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],ps=T("eye-off",fs);/**
7 * @license lucide-react v0.525.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const xs=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],ms=T("save",xs);/**
12 * @license lucide-react v0.525.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const gs=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]],ke=T("lock-open",gs);/**
17 * @license lucide-react v0.525.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */const js=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Ne=T("lock",js);/**
22 * @license lucide-react v0.525.0 - ISC
23 *
24 * This source code is licensed under the ISC license.
25 * See the LICENSE file in the root directory of this source tree.
26 */const bs=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],ws=T("ellipsis",bs);K.extend(Pe);const vs=({className:r,listClassName:i,league:a,selected:s,isStashListItemsFetching:t,mode:n="freeSelect",onSelect:c,onLoadStashTabsClicked:l,oldestStashData:u,setOldestStashData:d,showHideIcon:f,setHideIcon:g,enableQueries:$})=>{var ne,le;const{t:v}=P(),y=Le(Ae),[w,k]=j.useState(n==="lockUnlock"),[C,N]=j.useState(void 0),m=j.useMemo(()=>C===void 0?!s||s.length===0?[]:typeof s[0]=="string"?s||[]:typeof s[0]=="object"&&"id"in s[0]?s.map(o=>o.id):[]:C.map(o=>o.id),[C,s]),[I,F]=j.useState({});j.useEffect(()=>{F(o=>{const x={...o};return Object.keys(x).forEach(h=>{m.includes(h)||delete x[h]}),x})},[m,F]),j.useEffect(()=>{if(m.length===0)return d==null?void 0:d(void 0);const o=Object.entries(I).filter(([h])=>m.includes(h)).map(([,h])=>h);if(o.length>0&&o.every(h=>h===0))return d==null?void 0:d(-1);const x=Math.min(...o);d==null||d(x)},[u,I,d,m]);const Ee=ue(),{data:M,isFetching:L,isLoading:Ge,refetch:te}=fe(Qe(Ee,y,a)),[R,D]=j.useMemo(()=>{if(!M)return[{},[]];const o=[],x=M.flatMap(p=>{var U;return(U=p.children)!=null&&U.length?p.children:[p]}),h={};return x.map(p=>{!w||m.includes(p.id)?h[p.id]=p:o.push(p.id)}),[h,o]},[m,w,M]),re=j.useCallback((o,x)=>{const h=[];m.forEach(p=>{if(R[p]){if(x==="remove"&&p===o.id)return;h.push(R[p])}}),x==="add"&&h.unshift(o),n==="lockUnlock"&&!w?N(h):(N(void 0),c==null||c(h),h.length===0&&k(!1))},[n,c,m,w,R]),De=()=>{N(void 0),c==null||c([])},[_,He]=j.useState(""),A=j.useMemo(()=>
26{if(!_&&D.length===0||!M)return M;const o=x=>x==null?void 0:x.map(h=>{const p={...h},U=p.children;if(U){const ie=o(U);p.children=ie;const Oe=ie.length>0?1:0;return{option:p,score:Oe}}if(_){if(D.includes(p.id))return{option:p,score:0}}else return D.includes(p.id)?{option:p,score:0}:{option:p,score:1};return{option:p,score:ls(p.name.toLowerCase(),_,[])}}).filter(h=>h.score>0).sort((h,p)=>p.score-h.score).map(h=>h.option);return o(M)},[_,M,D]);return e.jsx(e.Fragment,{children:e.jsxs(je,{className:b("relative",r),shouldFilter:!1,children:[e.jsx("div",{className:"relative flex flex-row gap-1 w-full",children:e.jsxs("div",{className:"flex flex-col gap-2 p-2 border-b border-border w-full",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"font-semibold",children:"Stash Tabs"}),f&&e.jsx(H,{onClick:()=>g==null?void 0:g(!0),className:"[&_svg]:size-3 h-[1.625rem] w-[1.625rem]",variant:"ghost",size:"icon",children:e.jsx(ps,{})})]}),e.jsx(rs,{value:_,onValueChange:o=>{He(o)},className:"pr-10 h-8",containerClassName:"border rounded-md",placeholder:v("label.searchPh"),endIcon:e.jsx(q,{children:e.jsxs(J,{children:[e.jsx(W,{asChild:!0,children:e.jsx(H,{variant:"ghost",size:"inputEndIcon",className:"absolute right-0.5 top-0.5 w-[1.825rem] h-[1.825rem] rounded-none rounded-r-md shrink-0",onClick:()=>te(),disabled:L||!((ne=y==null?void 0:y.profile)!=null&&ne.uuid)||!a,children:e.jsx(X,{className:b(L&&"animate-spin","w-4 h-4 shrink-0")})})}),e.jsx(B,{children:e.jsx(G,{children:v("label.refreshStashTabs")})})]})})})]})}),e.jsx(be,{className:b("mb-12 max-h-max",i),children:e.jsxs(Z,{children:[Ge?Array.from(Array(14)).map((o,x)=>e.jsx(E,{children:e.jsxs("div",{className:"flex items-center w-full space-x-4",children:[e.jsx(oe,{className:"rounded-full h-7 w-7 shrink-0"}),e.jsx(oe,{className:"flex flex-1 h-4"})]})},x)):A==null?void 0:A.slice(0,150).map(o=>o.children?e.jsx(Z,{heading:o.name,children:o.children.map(x=>e.jsx(de,{currentUser:y,league:a,stash:x,selectedStashIds:m,selectDisabled:n==="lockUnlock"&&w,onSelect:re,setStashesFetched:F,enableQuery:$},x.id))},o.id):e.jsx(de,{currentUser:y,league:a,stash:o,selectedStashIds:m,selectDisabled:n==="lockUnlock"&&w,onSelect:re,setStashesFetched:F,enableQuery:$},o.id)),e.jsx(ns,{children:v("label.noResults")})]})}),e.jsxs("div",{className:"absolute bottom-0 flex items-center justify-end w-full h-12 gap-1 p-2 text-xs border-t",children:[e.jsx(q,{children:e.jsxs(J,{children:[e.jsx(W,{asChild:!0,children:e.jsx(H,{onClick:()=>{if(n==="lockUnlock"){const o=!w;if(k==null||k(o),o)N(void 0),C&&(c==null||c(C));else{let x=[];s&&s.length>0&&(typeof s[0]=="string"?x=s.map(h=>R[h]).filter(h=>h!==void 0):typeof s[0]=="object"&&"id"in s[0]&&(x=s)),N(x)}}else n==="freeSelect"?l==null||l():k(o=>!o)},className:"flex flex-row gap-2 text-accent-foreground",variant:"ghost",size:"default",disabled:t||!((le=y==null?void 0:y.profile)!=null&&le.uuid)||!a,children:n==="lockUnlock"?w?e.jsxs(e.Fragment,{children:[e.jsx(ds,{className:b("w-4 h-w shrink-0")}),e.jsx("span",{className:"truncate",children:"Edit Tabs"})]}):e.jsxs(e.Fragment,{children:[e.jsx(ms,{className:b("w-4 h-w  shrink-0")}),e.jsx("span",{className:"truncate",children:"Save Tabs"})]}):n==="freeSelect"?e.jsxs(e.Fragment,{children:[e.jsx(X,{className:b(t&&"animate-spin","w-4 h-4 shrink-0")}),e.jsx("span",{className:"truncate",children:v("action.loadTabs",{selected:(m==null?void 0:m.length)||0,total:Object.keys(R).length})})]}):e.jsx(e.Fragment,{children:w?e.jsxs(e.Fragment,{children:[e.jsx(ke,{className:b("w-4 h-w shrink-0")}),e.jsx("span",{className:"truncate",children:"Show All Tabs"})]}):e.jsxs(e.Fragment,{children:[e.jsx(Ne,{className:b("w-4 h-w  shrink-0")}),e.jsx("span",{className:"truncate",children:"Show Selected Tabs"})]})})})}),e.jsxs(B,{className:"whitespace-pre-line",children:[n==="freeSelect"&&e.jsxs(e.Fragment,{children:[v("label.loadStashTabsTT"),v("label.loadStashTabsNote1TT"),e.jsxs("ul",{className:"pl-4 list-disc",children:[e.jsx("li",{children:v("label.loadStashTabsNote1Li1TT")}),e.jsx("li",{children:v("label.loadStashTabsNote1Li2TT")})]})]}),v("label.loadStashTabsTextTT")]})]})}),e.jsx("div",{className:"flex flex-1"}),u!==void 0&&(u===0||u===-1||u>0&&K().valueOf()-u>
2630*60*1e3)?e.jsx(pe,{delayDuration:0,children:e.jsxs(xe,{children:[e.jsx(me,{asChild:!0,children:e.jsx(Ke,{className:"w-5 h-5 mr-2 text-yellow-400"})}),e.jsx(ge,{className:"bg-amber-600",children:e.jsx(G,{className:"whitespace-pre-line",children:u===0?v("label.notAllStashesLoaded"):u===-1?v("label.noStashesLoaded"):v("label.stashesNotUpdated",{fetchedAgo:K(u).fromNow()})})})]})}):e.jsxs(e.Fragment,{children:[e.jsx(qe,{orientation:"vertical"}),e.jsx(ys,{isStashListFetching:L,currentUser:y,mode:n,showSelectedOnly:w,setShowSelectedOnly:k,refreshEnabled:!!a,onRefreshStashtabsClicked:()=>{te()},onUnselectStashtabsClicked:De})]})]})]})})},de=({currentUser:r,league:i,stash:a,selectedStashIds:s,selectDisabled:t,onSelect:n,setStashesFetched:c,enableQuery:l=!1})=>{const{t:u}=P(),d=j.useMemo(()=>s.includes(a.id),[s,a.id]),[f,g]=j.useState(!1),$=ue(),{isSuccess:v,isError:y,isFetching:w,dataUpdatedAt:k}=fe(Je($,r,i,a,l));j.useEffect(()=>{c(m=>{if(m[a.id]&&!d){const F={...m};return delete F[a.id],F}let I=k;return w&&(I=-2),m[a.id]===I?m:{...m,[a.id]:I}})},[k,d,c,a.id,w]);const C=["MapStash"].includes(a.type),N=["UniqueStash"].includes(a.type)||C;return e.jsx(q,{disableHoverableContent:!0,children:e.jsx(J,{delayDuration:500,open:f,onOpenChange:m=>{g(m)},children:e.jsxs(E,{value:a.id,className:b("group hover:!bg-accent hover:!text-accent-foreground aria-[selected='true']:bg-inherit aria-[selected='true']:text-inherit px-0 py-0",w?"cursor-progress":t?"cursor-default":"cursor-pointer"),disabled:w||N,onSelect:()=>{t||(d?n(a,"remove"):n(a,"add"))},children:[e.jsx(W,{asChild:!0,children:e.jsxs("div",{className:"flex flex-row gap-2 items-center w-full px-2 py-1.5",children:[v?e.jsx(Q,{className:b(!d&&"group-hover:bg-grey-1"),checked:d,icon:"doubleChecked",disabled:w||N||t}):y?e.jsx(Q,{className:b(!d&&"group-hover:bg-grey-1"),checked:d,icon:"xChecked",disabled:w||N||t}):e.jsx(Q,{className:b(!d&&"group-hover:bg-grey-1"),checked:d,disabled:w||N||t}),e.jsx("div",{className:"flex flex-1",children:a.name}),!!V[a.type]&&e.jsx("img",{className:"w-7 h-7 shrink-0",width:28,height:28,src:V[a.type],alt:""})]})}),!N&&e.jsxs(B,{side:"top",className:"flex flex-col gap-1",children:[e.jsx(G,{children:k===0?u("label.notLoadedTT"):e.jsxs("span",{className:"flex flex-row gap-1",children:[u("label.updatedTT"),e.jsx(We,{createdAt:k})]})}),C&&e.jsx(G,{className:"text-red-1",children:u("label.normalMapsUnsupported")})]}),w&&e.jsx("div",{className:"absolute w-full h-full backdrop-blur-lg supports-[backdrop-filter]:backdrop-opacity-50",children:e.jsx("div",{role:"status",className:"absolute -translate-x-1/2 -translate-y-1/2 top-2/4 left-1/2",children:e.jsx(hs,{className:"w-4 h-w shrink-0 animate-spin"})})})]},a.id)})})};function ys({isStashListFetching:r,currentUser:i,mode:a,showSelectedOnly:s,setShowSelectedOnly:t,refreshEnabled:n,onRefreshStashtabsClicked:c,onUnselectStashtabsClicked:l}){var g;const{t:u}=P(),[d,f]=j.useState(!1);return e.jsxs(Xe,{open:d,onOpenChange:f,children:[e.jsx(Be,{asChild:!0,children:e.jsx(H,{className:"flex flex-row gap-2 px-0 h-7 w-7 text-muted-foreground",variant:"ghost",size:"sm",children:e.jsx(ws,{className:"w-4 h-4"})})}),e.jsx(Ye,{className:"p-0 min-w-[100px] max-w-[175px] 4xl:max-w-[210px]",side:"top",align:"end",sideOffset:16,alignOffset:0,children:e.jsx(je,{children:e.jsx(be,{children:e.jsxs(Z,{heading:u("title.actions"),children:[n&&e.jsx(E,{onSelect:()=>{c(),f(!1)},className:b("hover:!bg-accent hover:!text-accent-foreground aria-[selected='true']:bg-inherit aria-[selected='true']:text-inherit cursor-pointer",r&&"cursor-not-allowed"),disabled:r||!((g=i==null?void 0:i.profile)!=null&&g.uuid),children:e.jsxs("div",{className:"flex flex-row items-center w-full gap-2",children:[e.jsx(X,{className:b(r&&"animate-spin","w-4 h-w")}),u("action.refreshStashTabs")]})}),a!=="lockUnlock"&&e.jsx(E,{onSelect:()=>{l(),f(!1)},className:"hover:!bg-accent hover:!text-accent-foreground aria-[selected='true']:bg-inherit aria-[selected='true']:text-inherit cursor-pointer",children:e.jsxs("div",{className:"flex flex-row items-center w-full gap-2",children:[e.jsx(us,{className:"w-4 h-w"}),u("action.unselectStashTabs")]})}),a==="freeSelect"&&e.jsx(E,{onSelect:()=>{t($=>!$),f(!1)},className:"hover:!bg-accent hover:!text-accent-foreground aria-[selected='true']:bg-inherit aria-[selected='true']:text-inherit cursor-pointer",children:s?e.jsxs(e.Fragment,{children:[e.jsx(ke,{className:b("w-4 h-w shrink-0")}),e.jsx("span",{className:"truncate",children:"Show All Tabs"})]}):e.jsxs(e.Fragment,{children:[e.jsx(Ne,{className:b("w-4 h-w  shrink-0")}),e.jsx("span",{className:"truncate",children:"Show Selected Tabs"})]})})]})})})})]})}const qs=j.memo(vs);/**
27 * @license lucide-react v0.525.0 - ISC
28 *
29 * This source code is licensed under the ISC license.
30 * See the LICENSE file in the root directory of this source tree.
31 */const ks=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Js=T("circle-question-mark",ks);function Ws({showIcons:r,...i}){const a="stashTabs",s="stashTabs";return{header:({column:t})=>e.jsx(ve,{column:t,title:s,align:"left"}),id:a,accessorKey:a,accessorFn:t=>Ze(t.stashTabs),enableSorting:!0,enableGlobalFilter:!0,minSize:20,size:80,meta:{headerWording:s},cell:({table:t,row:n})=>{const c=n.original.stashTabs;return e.jsx(ye,{value:e.jsx("div",{className:"flex items-center gap-1 h-full overflow-x-hidden hover:overflow-x-auto overflow-y-hidden",onMouseOut:l=>l.stopPropagation(),children:c.map(l=>{var u,d;return e.jsx(pe,{delayDuration:50,children:e.jsxs(xe,{children:[e.jsxs(es,{variant:"outline",className:b("type"in l&&V[l.type]?"min-w-[50px]":"min-w-[20px]",(((u=t.options.meta)==null?void 0:u.highlightInStashViewClick)||((d=t.o
31ptions.meta)==null?void 0:d.highlightInStashViewHover))&&"hover:underline hover:cursor-pointer px-2 py-0.5"),onClick:()=>{var f,g;(g=(f=t.options.meta)==null?void 0:f.highlightInStashViewClick)==null||g.call(f,[n.id],l.id)},onMouseOver:()=>{var f,g;(g=(f=t.options.meta)==null?void 0:f.highlightInStashViewHover)==null||g.call(f,[n.id],l.id)},children:["type"in l&&!!V[l.type]&&e.jsx("img",{className:"w-5 h-5 shrink-0",width:20,height:20,src:V[l.type],alt:""}),e.jsx(me,{asChild:!0,children:e.jsx("span",{className:"truncate text-xs max-w-[60px]",children:l.name})})]}),e.jsx(ge,{children:e.jsx(G,{className:"whitespace-pre-line",children:l.name})})]})},l.id)})})})},...i}}const[Ns,Ss]=(()=>{const r={},i={},a={};for(const s of ce)for(const t of s.subCategories)for(const n of t.tags)a[n]??(a[n]=[]),a[n].push({name:t.name,icon:t.icon});for(const[s,t]of Object.entries(a))t.length===1&&(i[s]=t[0].name,r[s]=t[0].icon);for(const s of ce)for(const t of s.tags)r[t]??(r[t]=s.icon),i[t]??(i[t]=s.name);return[r,i]})();function $s(r){if(r)return Ns[r]}function Cs(r){if(r)return Ss[r]}function Ts(r){return r.replace(/_/g," ").replace(/\b\w/g,i=>i.toUpperCase())}function Xs(r){const i="tag",a="tag";return{header:({column:s})=>e.jsx(ve,{column:s,title:a,align:"left"}),id:i,accessorKey:i,accessorFn:s=>{var t;return"tag"in s?s.tag:"primaryGroup"in s?(t=s.primaryGroup)==null?void 0:t.tag:void 0},enableSorting:!0,enableGlobalFilter:!0,minSize:20,size:65,meta:{headerWording:a},cell:({row:s})=>{const{t}=P(),n=s.getValue(i),c=$s(n),l=n&&t(`categories.${Cs(n)??n}`,{defaultValue:Ts(n)});return e.jsx(ye,{value:e.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[c&&e.jsx("img",{className:"min-w-5 w-5 h-5 shrink-0",width:20,height:20,src:c,alt:""}),e.jsx("span",{className:"truncate",children:l})]})})},...r}}var Se="Toggle",se=j.forwardRef((r,i)=>
31{const{pressed:a,defaultPressed:s,onPressedChange:t,...n}=r,[c,l]=ee({prop:a,onChange:t,defaultProp:s??!1,caller:Se});return e.jsx(Y.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":r.disabled?"":void 0,...n,ref:i,onClick:ss(r.onClick,()=>{r.disabled||l(!c)})})});se.displayName=Se;var $e=se,z="ToggleGroup",[Ce,Bs]=as(z,[we]),Te=we(),ae=S.forwardRef((r,i)=>{const{type:a,...s}=r;if(a==="single")return e.jsx(zs,{...s,ref:i});if(a==="multiple")return e.jsx(Fs,{...s,ref:i});throw new Error(`Missing prop \`type\` expected on \`${z}\``)});ae.displayName=z;var[ze,Fe]=Ce(z),zs=S.forwardRef((r,i)=>{const{value:a,defaultValue:s,onValueChange:t=()=>{},...n}=r,[c,l]=ee({prop:a,defaultProp:s??"",onChange:t,caller:z});return e.jsx(ze,{scope:r.__scopeToggleGroup,type:"single",value:S.useMemo(()=>c?[c]:[],[c]),onItemActivate:l,onItemDeactivate:S.useCallback(()=>l(""),[l]),children:e.jsx(Me,{...n,ref:i})})}),Fs=S.forwardRef((r,i)=>{const{value:a,defaultValue:s,onValueChange:t=()=>{},...n}=r,[c,l]=ee({prop:a,defaultProp:s??[],onChange:t,caller:z}),u=S.useCallback(f=>l((g=[])=>[...g,f]),[l]),d=S.useCallback(f=>l((g=[])=>g.filter($=>$!==f)),[l]);return e.jsx(ze,{scope:r.__scopeToggleGroup,type:"multiple",value:c,onItemActivate:u,onItemDeactivate:d,children:e.jsx(Me,{...n,ref:i})})});ae.displayName=z;var[Ms,Is]=Ce(z),Me=S.forwardRef((r,i)=>{const{__scopeToggleGroup:a,disabled:s=!1,rovingFocus:t=!0,orientation:n,dir:c,loop:l=!0,...u}=r,d=Te(a),f=is(c),g={role:"group",dir:f,...u};return e.jsx(Ms,{scope:a,rovingFocus:t,disabled:s,children:t?e.jsx(cs,{asChild:!0,...d,orientation:n,dir:f,loop:l,children:e.jsx(Y.div,{...g,ref:i})}):e.jsx(Y.div,{...g,ref:i})})}),O="ToggleGroupItem",Ie=S.forwardRef((r,i)=>{const a=Fe(O,r.__scopeToggleGroup),s=Is(O,r.__scopeToggleGroup),t=Te(r.__scopeToggleGroup),n=a.value.includes(r.value),c=s.disabled||r.disabled,l={...r,pressed:n,disabled:c},u=S.useRef(null);return s.rovingFocus?e.jsx(os,{asChild:!0,...t,focusable:!c,active:n,ref:u,children:e.jsx(he,{...l,ref:i})}):e.jsx(he,{...l,ref:i})});Ie.displayName=O;var he=S.forwardRef((r,i)=>{const{__scopeToggleGroup:a,value:s,...t}=r,n=Fe(O,a),c={role:"radio","aria-checked":r.pressed,"aria-pressed":void 0},l=n.type==="single"?c:void 0;
31return e.jsx(se,{...l,...t,ref:i,onPressedChange:u=>{u?n.onItemActivate(s):n.onItemDeactivate(s)}})}),Re=ae,_e=Ie;const Ue=ts("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-secondary data-[state=on]:text-secondary-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10",noSize:""}},defaultVariants:{variant:"default",size:"default"}}),Rs=j.forwardRef(({className:r,variant:i,size:a,...s},t)=>e.jsx($e,{ref:t,className:b(Ue({variant:i,size:a,className:r})),...s}));Rs.displayName=$e.displayName;const Ve=j.createContext({size:"default",variant:"default"}),_s=j.forwardRef(({className:r,variant:i,size:a,children:s,...t},n)=>e.jsx(Re,{ref:n,className:b("group/toggle-group flex items-center justify-center rounded-md data-[variant=outline]:border data-[variant=outline]:border-input",r),...t,children:e.jsx(Ve.Provider,{value:{variant:i,size:a},children:s})}));_s.displayName=Re.displayName;const Us=j.forwardRef(({className:r,children:i,variant:a,size:s,mode:t,...n},c)=>{const l=j.useContext(Ve);return e.jsx(_e,{"data-slot":"toggle-group-item","data-variant":l.variant||a,"data-size":l.size||s,ref:c,className:b(Ue({variant:l.variant||a,size:l.size||s}),"min-w-0 flex-1 shrink-0 whitespace-nowrap rounded-none shadow-none focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l data-[variant=outline]:border-input data-[variant=outline]:first:border-l-0 first:rounded-l-md last:rounded-r-md",r),...n,children:i})});Us.displayName=_e.displayName;/**
32 * @license lucide-react v0.525.0 - ISC
33 *
34 * This source code is licensed under the ISC license.
35 * See the LICENSE file in the root directory of this source tree.
36 */const Vs=[["path",{d:"M3 19V5",key:"rwsyhb"}],["path",{d:"m13 6-6 6 6 6",key:"1yhaz7"}],["path",{d:"M7 12h14",key:"uoisry"}]],Ys=T("arrow-left-to-line",Vs);/**
37 * @license lucide-react v0.525.0 - ISC
38 *
39 * This source code is licensed under the ISC license.
40 * See the LICENSE file in the root directory of this source tree.
41 */const Es=[["path",{d:"M17 12H3",key:"8awo09"}],["path",{d:"m11 18 6-6-6-6",key:"8c2y43"}],["path",{d:"M21 5v14",key:"nzette"}]],Zs=T("arrow-right-to-line",Es);export{Ws as F,qs as L,Cs as M,Ys as a,Zs as b,Ts as c,Rs as f,_s as g,ws as l,ms as o,Js as r,Us as v,Xs as x,$s as y};

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.