1import{u as h,a as g,g as T,j as e,G as r,b,c as v,d as m,r as S,C as H,e as U,S as p,B as a,I as w,f as x,L as I,T as B,h as u,H as E}from"./index-ns1xYkE3.js";import{H as $,U as F}from"./UserTypeFilter-D1Ptq43R.js";import"./Autocomplete-BQ3yUMMZ.js";import"./Close-Cb-0IJco.js";import"./Popper-D8GmS6IQ.js";import"./popper-CMBiYTiD.js";import"./TextField-C2-ggeEL.js";const L=function({category:t,index:n}){const{t:s}=g(b(t.type)),o=v(),i=m(),[l,j]=S.useState(!1),c=()=>j(C=>!C),d=s(`categories.${t.type}.title`,t.title),f=s(`categories.${t.type}.description`,t.description),y=s("translation:categories.seeAll","See all {{title}}",{title:d}),k=s("translation:categories.try","Try {{title}}",{title:s(t.example.title)});return e.jsx(r,{item:!0,xs:12,md:6,onMouseEnter:c,onMouseLeave:c,children:e.jsx(H,{sx:{height:"100%",backgroundColor:l?"background.hover":"background.paper"},children:e.jsx(U,{sx:{height:"100%"},children:e.jsxs(p,{direction:"column",height:"100%",justifyContent:"space-between",children:[e.jsxs(a,{children:[e.jsxs(p,{direction:"row",spacing:2,alignItems:"center",children:[e.jsx(w,{icon:t.icon,fontSize:"60px",style:{transform:`scale(${l?1.1:1}`},color:x[n%x.length]}),e.jsx(I,{style:{fontSize:20,fontWeight:700,color:i.palette.mode==="dark"?"white":"black"},to:"/categories/"+t.type,children:d})]}),e.jsx(B,{sx:{mt:2},children:f})]}),e.jsxs(r,{container:!0,spacing:2,mt:2,children:[e.jsx(r,{item:!0,xs:12,md:6,children:e.jsx(u,{fullWidth:!0,sx:{height:"100%"},onClick:()=>o("/categories/"+t.type),variant:"contained",children:y})}),e.jsx(r,{item:!0,xs:12,md:6,children:e.jsx(u,{sx:{backgroundColor:"background.default",height:"100%"},fullWidth:!0,onClick:()=>o(t.example.path),variant:"outlined",children:k})})]})]})})})})};function W(){const{selectedUserTypes:t}=h(),{t:n}=g(),s=T(t,n);return e.jsx(r,{width:"80%",container:!0,spacing:2,children:s.map((o,i)=>e.jsx(L,{category:o,index:i},o.type))})}function R(){const t=m(),{selectedUserTypes:n,setSelectedUserTypes:s}=h();return e.jsxs(a,{padding:{xs:1,md:3,lg:5},sx:{background:`url(/assets/${t.palette.mode==="dark"?"background-dark.png":"background.svg"})`,backgroundColor:"background.default"},display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",children:[e.jsx(E,{title:"OmniTools"}),e.jsx($,{}),e.jsx(a,{my:3,children:e.jsx(F,{selectedUserTypes:n,onUserTypesChange:s})}),e.jsx(W,{})]})}export{R 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.