@veecode-platform/plugin-veecode-homepage-dynamic 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-scalprum/plugin-manifest.json +3 -3
- package/dist-scalprum/static/{4327.5c6f5040.chunk.js → 4327.0535c895.chunk.js} +2 -2
- package/dist-scalprum/static/{4327.5c6f5040.chunk.js.map → 4327.0535c895.chunk.js.map} +1 -1
- package/dist-scalprum/static/{5689.ba470bd3.chunk.js → 5689.44adcfd6.chunk.js} +1 -1
- package/dist-scalprum/static/{5689.ba470bd3.chunk.js.map → 5689.44adcfd6.chunk.js.map} +1 -1
- package/dist-scalprum/static/{8505.bd5ab33a.chunk.js → 8505.9dd864c9.chunk.js} +1 -1
- package/dist-scalprum/static/{8505.bd5ab33a.chunk.js.map → 8505.9dd864c9.chunk.js.map} +1 -1
- package/dist-scalprum/static/{9286.0bf88601.chunk.js → 9286.e13da971.chunk.js} +2 -2
- package/dist-scalprum/static/{9286.0bf88601.chunk.js.map → 9286.e13da971.chunk.js.map} +1 -1
- package/dist-scalprum/static/avatar.70448f05..svg +1 -0
- package/dist-scalprum/{veecode-platform.plugin-veecode-homepage.c98eadba97079a4d7d5e.js → veecode-platform.plugin-veecode-homepage.ba7df9d387f79c300ff6.js} +2 -2
- package/dist-scalprum/{veecode-platform.plugin-veecode-homepage.c98eadba97079a4d7d5e.js.map → veecode-platform.plugin-veecode-homepage.ba7df9d387f79c300ff6.js.map} +1 -1
- package/package.json +1 -1
- package/dist-scalprum/static/avatar.82d1e940..svg +0 -1
- /package/dist-scalprum/static/{9286.0bf88601.chunk.js.LICENSE.txt → 9286.e13da971.chunk.js.LICENSE.txt} +0 -0
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "veecode-platform.plugin-veecode-homepage",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.9",
|
4
4
|
"extensions": [],
|
5
5
|
"registrationMethod": "callback",
|
6
6
|
"baseURL": "auto",
|
7
7
|
"loadScripts": [
|
8
|
-
"veecode-platform.plugin-veecode-homepage.
|
8
|
+
"veecode-platform.plugin-veecode-homepage.ba7df9d387f79c300ff6.js"
|
9
9
|
],
|
10
|
-
"buildHash": "
|
10
|
+
"buildHash": "ba7df9d387f79c300ff604ac710868d5"
|
11
11
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";(self.webpackChunkveecode_platform_plugin_veecode_homepage=self.webpackChunkveecode_platform_plugin_veecode_homepage||[]).push([[4327],{49708:(e,t,n)=>{n.r(t),n.d(t,{VeeCodeHomePage:()=>Ye});var i=n(31085),r=n(58837),l=n(95478),s=n(81031),o=n(46702),a=n(1659),d=n(6530),c=n(46121),u=n(13295),x=n(22097),h=n(30330),p=n(74892),g=n(42469);const v=({title:e,label:t,color:n,handleClick:r,link:l,children:s})=>{const o=(0,i.jsx)(h.A,{size:"small","aria-label":t,color:n,"aria-controls":`${t}-menu`,"aria-haspopup":"true",sx:{width:"42px",height:"42px",borderRadius:"50%"},onClick:r,children:s});return(0,i.jsx)(p.A,{title:e,children:l?(0,i.jsx)(g.Link,{to:l,children:o}):o})},m=()=>{const e=(0,x.useApi)(x.appThemeApiRef),t="dark"===(0,d.A)().palette.mode,n=t?"Select theme Light Theme":"Select theme Dark Theme",r=e.getInstalledThemes();return(0,i.jsx)(v,{title:n,handleClick:n=>{const i=t?"light":"dark";n.preventDefault(),n.stopPropagation(),r.some((e=>e.id===i))?e.setActiveThemeId(i):e.setActiveThemeId(void 0)},color:"inherit",label:"Toggle-theme",children:t?(0,i.jsx)(c.A,{}):(0,i.jsx)(u.A,{})})};var j=n(531),f=n(21085),A=n(75638),y=n(13674);const w=(e,t)=>{if(!t)return(0,i.jsx)(i.Fragment,{children:e});const n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=new RegExp(`(${n})`,"i"),l=e.split(r);return(0,i.jsx)(i.Fragment,{children:l.map(((e,t)=>r.test(e)?(0,i.jsx)(y.A,{component:"span",sx:{fontWeight:"normal"},children:e},`${e}-${t}`):(0,i.jsx)(y.A,{component:"span",sx:{fontWeight:"bold"},children:e},`${e}-${t}`)))})};var b=n(53855),C=n(35648),k=n(55330);const S=({params:e,error:t,helperText:n})=>(0,i.jsx)(b.A,{...e,placeholder:"Search...",variant:"standard",error:t,helperText:n,InputProps:{...e.InputProps,disableUnderline:!0,startAdornment:(0,i.jsx)(C.A,{position:"start",children:(0,i.jsx)(k.A,{style:{color:"#ffffff"}})})},sx:{input:{color:"#CDCDCD"},button:{color:"inherit"},"& fieldset":{border:"none"}}});var z=n(71543),F=n(75202),I=n(89789),L=n(50232);const T=({option:e,query:t,result:n,renderProps:r})=>{const l="No results found"===e,s=(0,x.useAnalytics)();var a;return(0,i.jsx)(o.A,{component:l?"div":F.N_,to:null==n?void 0:n.document.location,underline:"none",sx:{width:"100%",...l?{}:{cursor:"pointer"}},children:(0,i.jsx)(I.Ay,{...r,sx:{py:1},onClick:e=>{var t,i,l;s.captureEvent("discover",null!==(i=null==n?void 0:n.document.title)&&void 0!==i?i:"",{attributes:{to:null!==(l=null==n?void 0:n.document.location)&&void 0!==l?l:"#"},value:null==n?void 0:n.rank}),null==r||null===(t=r.onClick)||void 0===t||t.call(r,e)},children:(0,i.jsx)(y.A,{sx:{color:"text.primary",flexGrow:1},children:l?e:w(e,null!==(a=null==t?void 0:t.term)&&void 0!==a?a:"")})})})},R=({option:e,index:t,options:n,query:r,results:l,renderProps:s,searchLink:a})=>{if(e===(null==r?void 0:r.term)&&t===n.length-1)return(0,i.jsxs)(o.A,{id:"all-results",children:[(0,i.jsx)(z.A,{sx:{my:.5}}),(0,i.jsx)(F.N_,{to:a,underline:"none",children:(0,i.jsx)(I.Ay,{...s,sx:{my:0},className:"allResultsOption",children:(0,i.jsxs)(o.A,{sx:{display:"flex",alignItems:"center"},children:[(0,i.jsx)(y.A,{sx:{flexGrow:1},children:"All results"}),(0,i.jsx)(L.A,{fontSize:"small"})]})})})]},"all-results");const d=l.find((t=>t.document.title===e));return(0,i.jsx)(T,{option:e,query:r,result:d,renderProps:s},t)},D=e=>{const{query:t,setSearchTerm:n}=e,r=(0,g.useNavigate)(),[s,o]=(0,l.useState)(-1),a=(0,l.useRef)(s),{setTerm:c}=(0,j.SQ)(),u=(0,d.A)(),x=(e=>{const t=(0,l.useRef)(null);return(0,l.useEffect)((()=>()=>{t.current&&clearTimeout(t.current)}),[]),(0,l.useCallback)(((...n)=>{t.current&&clearTimeout(t.current),t.current=setTimeout((()=>{e(...n)}),300)}),[e,300])})(((e,t)=>{n(t),c(t)}));return(0,l.useEffect)((()=>{a.current=s}),[s]),(0,i.jsx)(f.z1,{...e,children:({loading:e,error:n,value:l})=>{var d;const c=(null==t?void 0:t.term)&&null!==(d=null==l?void 0:l.results)&&void 0!==d?d:[];let h=[];var p;(null==t?void 0:t.term)&&0===c.length&&(h=["No results found"]),c.length>0&&(h=[...c.map((e=>e.document.title)),`${null==t?void 0:t.term}`]);const g=(v=null!==(p=null==t?void 0:t.term)&&void 0!==p?p:"",`/search?query=${encodeURIComponent(v)}`);var v,m;return(0,i.jsx)(A.A,{freeSolo:!0,options:h,loading:e,value:null!==(m=null==t?void 0:t.term)&&void 0!==m?m:"",getOptionLabel:e=>null!=e?e:"",onInputChange:x,onHighlightChange:(e,t)=>o(h.indexOf(null!=t?t:"")),componentsProps:{paper:{sx:{borderRadius:"4px",outline:"unset"}}},sx:{width:"100%",background:"dark"===u.palette.mode?"#FFFFFF10":"#CDCDCD10",'& [class*="MuiAutocomplete-clearIndicator"]':{visibility:(null==t?void 0:t.term)?"visible":"hidden"},padding:".2rem",borderRadius:"8px","&:hover":{background:"dark"===u.palette.mode?"#FFFFFF25":"#CDCDCD25"}},filterOptions:e=>e,onKeyDown:e=>{const n=a.current;if("Enter"===e.key){if(e.preventDefault(),-1===n&&(null==t?void 0:t.term))r(g);else if(-1!==n){var i,l,d;r(null!==(d=null===(l=c[s])||void 0===l||null===(i=l.document)||void 0===i?void 0:i.location)&&void 0!==d?d:g)}o(-1)}},renderInput:e=>(0,i.jsx)(S,{params:e,error:!!n,helperText:n?"Error fetching results":""}),renderOption:(e,n,{index:r})=>(0,i.jsx)(R,{option:n,index:r,options:h,query:t,results:c,renderProps:e,searchLink:g}),ListboxProps:{sx:{maxHeight:"60vh"}}})}})};var M=n(10394);const $=()=>{const[e,t]=(0,l.useState)("");return(0,i.jsx)(j.Lt,{children:(0,i.jsx)(M.A,{component:"div",sx:{width:"100%",maxWidth:"50vw"},children:(0,i.jsx)(D,{query:{term:e},setSearchTerm:t})})})};var E=n(49915),O=n(94087),P=n(19277),N=n(85770),W=n(26343),H=n(37197),_=n(46423),B=n(55626),G=n(22854);const U=n.p+"static/avatar.82d1e940..svg",V=({width:e,height:t})=>{const{profile:n,loading:r}=(0,N.s)();var l;return(0,i.jsx)(i.Fragment,{children:r?(0,i.jsx)(G.A,{variant:"circular",sx:{width:e,height:t}}):(0,i.jsx)(B.A,{src:null!==(l=n.picture)&&void 0!==l?l:U,sx:{width:e,height:t,objectFit:"cover"},alt:"Profile picture"})})};var q=n(84692),Y=n(27018),J=n(57368);const K=()=>{const e=(0,x.useApi)(x.identityApiRef);return(0,i.jsxs)(o.A,{component:"div",onClick:async()=>{await e.signOut()},sx:{display:"flex",alignItems:"center",justifyContent:"flex-start"},children:[(0,i.jsx)(Y.A,{children:(0,i.jsx)(J.A,{fontSize:"small"})}),"Log out"]})};var Q=n(113);const X=({handleClose:e,link:t,children:n})=>(0,i.jsx)(W.A,{onClick:e,children:(0,i.jsx)(g.Link,{to:t,children:(0,i.jsx)(o.A,{component:"div",sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",padding:".1rem 0"},children:n})})}),Z=({anchorEl:e,menuId:t,isOpen:n,handleClose:r})=>{var s,a;const c=(0,d.A)(),{displayName:u,backstageIdentity:h}=(0,N.s)(),p=(0,x.useApi)(q.v);var g;const v=null!==(g=null===(a=(0,x.useApi)(x.configApiRef).app)||void 0===a||null===(s=a.support)||void 0===s?void 0:s.url)&&void 0!==g?g:"https://github.com/orgs/veecode-platform/discussions";return(0,l.useEffect)((()=>{(async()=>{let e;try{return(null==h?void 0:h.userEntityRef)&&(e=await p.getEntityByRef(h.userEntityRef)),e}catch(e){return null}})()}),[h,p]),(0,i.jsxs)(P.A,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},id:t,keepMounted:!0,open:n,onClose:r,slotProps:{paper:{sx:{width:250,borderRadius:2,mt:.8,mr:-.5,boxShadow:3,background:`${c.palette.background.default} !important`,border:`1px solid ${c.palette.grey[600]}`}}},children:[(0,i.jsxs)(o.A,{sx:{px:2,py:1.5,display:"flex",alignItems:"center",gap:1.5},children:[(0,i.jsx)(V,{}),(0,i.jsxs)(o.A,{children:[(0,i.jsx)(y.A,{variant:"subtitle1",children:(()=>{const e=u;return/^[^:/]+:[^/]+\/[^/]+$/.test(e)?e.charAt(e.indexOf("/")+1).toLocaleUpperCase("en-US").concat(e.substring(e.indexOf("/")+2)):e})()}),(0,i.jsx)(Q.A,{size:"small",variant:"outlined",label:null==h?void 0:h.ownershipEntityRefs[0].split("/")[1]})]})]}),(0,i.jsx)(H.A,{}),(0,i.jsx)(X,{handleClose:r,link:v,children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_.A,{children:(0,i.jsx)(E.A,{fontSize:"small"})}),"Help"]})}),(0,i.jsx)(X,{handleClose:r,link:"/settings",children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_.A,{children:(0,i.jsx)(O.A,{fontSize:"small"})}),"Settings"]})}),(0,i.jsx)(H.A,{}),(0,i.jsx)(W.A,{children:(0,i.jsx)(K,{})})]})};var ee=n(33265),te=n(52452),ne=n(47566),ie=n(87094),re=n(16294),le=n(97331),se=n.n(le);const oe=()=>{var e;const[t]=(0,l.useState)(!0),[n]=(0,l.useState)(void 0),[r]=(0,l.useState)("low"),[s]=(0,l.useState)(),{lastSignal:o}=(0,re.U)("notifications"),{error:a,value:d,retry:c,loading:u}=(0,ie.s)((e=>{const i={minimumSeverity:r};return void 0!==t&&(i.read=!t),void 0!==n&&(i.saved=n),void 0!==s&&(i.topic=s),Promise.all([e.getNotifications(i),e.getStatus(),e.getTopics(i)])}),[t,r,n,s]),x=(0,l.useMemo)((()=>se()((()=>c()),2e3)),[]);var h;const p=null!==(h=null==d||null===(e=d[1])||void 0===e?void 0:e.unread)&&void 0!==h?h:0;return(0,l.useEffect)((()=>{(null==o?void 0:o.action)&&x()}),[o,x]),(0,i.jsx)(v,{title:"Notifications",label:`Mostrar ${p} notificações não lidas`,color:"inherit",link:"/notifications",children:(0,i.jsx)(ee.A,{badgeContent:p,color:"error",invisible:u||!!a||0===p,children:u?(0,i.jsx)(ne.A,{size:20,color:"inherit"}):(0,i.jsx)(te.A,{})})})},ae=({handleOpenMenu:e})=>(0,i.jsx)(v,{title:"",label:"profile-menu",handleClick:e,color:"inherit",children:(0,i.jsx)(V,{width:"42px",height:"42px"})}),de=()=>{const e=(0,d.A)(),[t,n]=l.useState(null),r=Boolean(t);return(0,i.jsxs)(o.A,{sx:{flexGrow:1,position:"relative"},children:[(0,i.jsx)(s.A,{position:"sticky",component:"nav",style:{zIndex:e.zIndex.appBar-1},children:(0,i.jsxs)(a.A,{children:[(0,i.jsx)($,{}),(0,i.jsx)(o.A,{sx:{flexGrow:1}}),(0,i.jsxs)(o.A,{sx:{display:{xs:"none",md:"flex",alignItems:"center",gap:".5rem"}},children:[(0,i.jsx)(oe,{}),(0,i.jsx)(m,{}),(0,i.jsx)(ae,{handleOpenMenu:e=>{n(e.currentTarget)}})]})]})}),(0,i.jsx)(Z,{anchorEl:t,menuId:"profile-menu",isOpen:r,handleClose:()=>{n(null)}})]})},ce=n.p+"static/waves.6d6cf859..svg",ue=()=>{var e,t,n,r,s,a,c,u,h,p,g,v,m,j,f,A;const[w,b]=(0,l.useState)(!1),{displayName:C}=(0,N.s)(),k=(0,d.A)(),S="dark"===k.palette.mode,z=(0,x.useApi)(x.configApiRef);var F;const I=null!==(F=S?null===(r=z.app)||void 0===r||null===(n=r.branding)||void 0===n||null===(t=n.theme)||void 0===t||null===(e=t.dark)||void 0===e?void 0:e.headerColor1:null===(u=z.app)||void 0===u||null===(c=u.branding)||void 0===c||null===(a=c.theme)||void 0===a||null===(s=a.light)||void 0===s?void 0:s.headerColor1)&&void 0!==F?F:"#45556D";var L;const T=null!==(L=S?null===(v=z.app)||void 0===v||null===(g=v.branding)||void 0===g||null===(p=g.theme)||void 0===p||null===(h=p.dark)||void 0===h?void 0:h.headerColor2:null===(A=z.app)||void 0===A||null===(f=A.branding)||void 0===f||null===(j=f.theme)||void 0===j||null===(m=j.light)||void 0===m?void 0:m.headerColor2)&&void 0!==L?L:"#86F4CE";return(0,l.useEffect)((()=>{b(!0),setTimeout((()=>b(!1)),1e3)}),[]),(0,i.jsxs)(o.A,{sx:{background:`linear-gradient(90deg, ${I} 0%, ${T} 100%)`,width:"100%",minHeight:"210px",display:"flex",alignItems:"center",justifyContent:"center",position:"relative",overflow:"hidden",[k.breakpoints.only("xs")]:{height:"380px",padding:"1rem 0"}},children:[(0,i.jsxs)(o.A,{sx:{width:"90%",margin:"auto",display:"flex",alignItems:"center",gap:"2rem",[k.breakpoints.only("xs")]:{flexDirection:"column",padding:"1rem 0"}},children:[(0,i.jsx)(o.A,{children:(0,i.jsx)(V,{width:"120px",height:"120px"})}),(0,i.jsxs)(o.A,{sx:{[k.breakpoints.only("xs")]:{textAlign:"center",color:k.palette.grey[100],maxWidth:"70vw"}},children:[(0,i.jsxs)(y.A,{variant:"h3",color:"#FAFAFA",children:["Welcome back",w?(0,i.jsx)(G.A,{variant:"rectangular",width:150,height:80,style:{display:"inline"}}):(0,i.jsxs)(i.Fragment,{children:[", ",(()=>{const e=C;return/^[^:/]+:[^/]+\/[^/]+$/.test(e)?e.charAt(e.indexOf("/")+1).toLocaleUpperCase("en-US").concat(e.substring(e.indexOf("/")+2)):e})()," 👋"]})," "]}),(0,i.jsx)(y.A,{variant:"h6",color:"#FAFAFA",children:"Let's get started."})]})]}),(0,i.jsx)("img",{src:ce,alt:"",style:{width:"100%",height:"250px",objectFit:"cover",position:"absolute",top:"-20%",left:"0",opacity:"0.7"}})]})};var xe=n(39240),he=n(19996),pe=n(16454);const ge=()=>{const e=(0,d.A)();return(0,i.jsx)("svg",{height:"45px",width:"45px",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 502.648 502.648",xmlSpace:"preserve",style:{cursor:"pointer "},children:(0,i.jsxs)("g",{children:[(0,i.jsx)("g",{children:(0,i.jsxs)("g",{children:[(0,i.jsx)("circle",{style:{fill:e.palette.grey[600]},cx:"250.399",cy:"91.549",r:"58.694"}),(0,i.jsx)("path",{style:{fill:e.palette.grey[600]},d:"M455.861,253.028l-54.703-11.411c-18.637-3.904-37.037,4.638-46.765,19.824 c-9.448-4.853-19.608-9.038-30.415-12.511v-32.529c0.022-24.612-20.126-44.738-44.651-44.738h-55.933 c-24.655,0-44.716,20.126-44.716,44.738v32.701c-10.699,3.408-20.751,7.593-30.264,12.468 c-9.728-15.251-28.15-23.857-46.809-19.953l-54.747,11.411c-24.03,5.026-39.626,28.862-34.6,52.978l13.741,65.64 c4.983,24.051,28.84,39.647,52.892,34.621l17.321-3.624c8.671,12.813,20.665,24.569,36.023,34.621 c31.989,20.967,74.247,32.529,119.092,32.529c68.617,0,127.721-27.589,154.943-67.215l17.602,3.689 c24.03,5.004,47.887-10.57,52.87-34.621l13.762-65.64C495.508,281.89,479.912,258.054,455.861,253.028z M251.305,447.381 c-40.51,0-78.475-10.203-106.797-28.862c-9.707-6.342-17.753-13.395-24.202-20.945l13.266-2.783 c24.073-5.004,39.669-28.84,34.643-52.913l-12.317-59.018c7.183-3.861,14.733-7.248,22.757-10.138v10.764 c0,24.569,20.104,44.695,44.716,44.695h55.933c24.548,0,44.652-20.147,44.652-44.695v-11.325 c8.175,2.912,15.854,6.256,22.973,10.052L334.439,341.9c-4.983,24.073,10.591,47.909,34.664,52.913l13.395,2.804 C357.52,427.191,308.101,447.381,251.305,447.381z"}),(0,i.jsx)("circle",{style:{fill:e.palette.grey[600]},cx:"443.954",cy:"168.708",r:"58.694"}),(0,i.jsx)("path",{style:{fill:e.palette.grey[600]},d:"M70.736,226.172c31.752-6.644,52.029-37.77,45.471-69.501 c-6.687-31.709-37.749-52.072-69.523-45.428c-31.709,6.622-52.072,37.727-45.428,69.458 C7.879,212.453,38.984,232.795,70.736,226.172z"})]})}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{})]})})},ve=()=>{const e=(0,d.A)();return(0,i.jsx)("svg",{width:"45px",height:"45px",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"none",style:{cursor:"pointer "},children:(0,i.jsx)("path",{fill:e.palette.grey[600],"fill-rule":"evenodd",d:"M4.25 1A2.25 2.25 0 002 3.25v9.5A2.25 2.25 0 004.25 15h8.5c.69 0 1.25-.56 1.25-1.25V2.25C14 1.56 13.44 1 12.75 1h-8.5zM3.5 12.75c0 .414.336.75.75.75h8.25v-2H4.25a.75.75 0 00-.75.75v.5zm0-2.622c.235-.083.487-.128.75-.128h8.25V2.5H4.25a.75.75 0 00-.75.75v6.878z","clip-rule":"evenodd"})})},me=()=>{const e=(0,d.A)();return(0,i.jsxs)("svg",{width:"45px",height:"45px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",style:{cursor:"pointer "},children:[(0,i.jsx)("rect",{x:"0",fill:"none",width:"20",height:"20"}),(0,i.jsx)("g",{fill:e.palette.grey[600],children:(0,i.jsx)("path",{d:"M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm7.5 6.48c-.274.896-.908 1.64-1.75 2.05-.45-1.69-1.658-3.074-3.27-3.75.13-.444.41-.83.79-1.09-.43-.28-1-.42-1.34.07-.53.69 0 1.61.21 2v.14c-.555-.337-.99-.84-1.24-1.44-.966-.03-1.922.208-2.76.69-.087-.565-.032-1.142.16-1.68.733.07 1.453-.23 1.92-.8.46-.52-.13-1.18-.59-1.58h.36c1.36-.01 2.702.335 3.89 1 1.36 1.005 2.194 2.57 2.27 4.26.24 0 .7-.55.91-.92.172.34.32.69.44 1.05zM9 16.84c-2.05-2.08.25-3.75-1-5.24-.92-.85-2.29-.26-3.11-1.23-.282-1.473.267-2.982 1.43-3.93.52-.44 4-1 5.42.22.83.715 1.415 1.674 1.67 2.74.46.035.918-.066 1.32-.29.41 2.98-3.15 6.74-5.73 7.73zM5.15 2.09c.786-.3 1.676-.028 2.16.66-.42.38-.94.63-1.5.72.02-.294.085-.584.19-.86l-.85-.52z"})})]})},je=()=>{const e=(0,d.A)();return(0,i.jsxs)("svg",{width:"45px",height:"45px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",style:{cursor:"pointer "},children:[(0,i.jsx)("title",{children:"support"}),(0,i.jsx)("rect",{width:"24",height:"24",fill:"none"}),(0,i.jsx)("path",{fill:e.palette.grey[600],d:"M12,2a8,8,0,0,0-8,8v1.9A2.92,2.92,0,0,0,3,14a2.88,2.88,0,0,0,1.94,2.61C6.24,19.72,8.85,22,12,22h3V20H12c-2.26,0-4.31-1.7-5.34-4.39l-.21-.55L5.86,15A1,1,0,0,1,5,14a1,1,0,0,1,.5-.86l.5-.29V11a1,1,0,0,1,1-1H17a1,1,0,0,1,1,1v5H13.91a1.5,1.5,0,1,0-1.52,2H20a2,2,0,0,0,2-2V14a2,2,0,0,0-2-2V10A8,8,0,0,0,12,2Z"})]})},fe=n.p+"static/backstage.b1940be1..png";var Ae=n(78838),ye=n(92742),we=n(59193),be=n(12302),Ce=n(80731),ke=n(97134),Se=n(16481),ze=n(45685),Fe=n(98590),Ie=n(35015);function Le(e="royalblue",t,n=70,i=30){const{h:r,s:l}=function(e){const t=document.createElement("canvas").getContext("2d");if(!t)throw new Error("Canvas not supported");t.fillStyle=e;const n=t.fillStyle.replace(/^#/,""),i=3===n.length?n.split("").map((e=>e+e)).join(""):n,r=parseInt(i,16);return function(e,t,n){const i=e/255,r=t/255,l=n/255,s=Math.max(i,r,l),o=Math.min(i,r,l),a=(s+o)/2;let d=0,c=0;if(s!==o){const e=s-o;c=a>.5?e/(2-s-o):e/(s+o),d=s===i?(r-l)/e+(r<l?6:0):s===r?(l-i)/e+2:(i-r)/e+4,d*=60}return{h:Math.round(d),s:Math.round(100*c),l:Math.round(100*a)}}(r>>16&255,r>>8&255,255&r)}(e),s=(n-i)/Math.max(t-1,1);return Array.from({length:t},((e,t)=>`hsl(${r}, ${l}%, ${n-t*s}%)`))}var Te=n(61690);const Re=(0,we.Ay)("text",{shouldForwardProp:e=>"variant"!==e})((({theme:e})=>({textAnchor:"middle",dominantBaseline:"central",fill:e.palette.text.secondary,variants:[{props:{variant:"primary"},style:{fontSize:e.typography.h5.fontSize}},{props:({variant:e})=>"primary"!==e,style:{fontSize:e.typography.body2.fontSize}},{props:{variant:"primary"},style:{fontWeight:e.typography.h5.fontWeight}},{props:({variant:e})=>"primary"!==e,style:{fontWeight:e.typography.body2.fontWeight}}]})));function De({primaryText:e,secondaryText:t}){const{width:n,height:r,left:s,top:o}=(0,ye.N)(),a=o+r/2-10,d=a+24;return(0,i.jsxs)(l.Fragment,{children:[(0,i.jsx)(Re,{variant:"primary",x:s+n/2,y:a,children:e}),(0,i.jsx)(Re,{variant:"secondary",x:s+n/2,y:d,children:t})]})}function Me(){var e,t,n,r,l,s,a,c;const{total:u,items:h,visits:p}=(()=>{const e=(0,x.useApi)(Fe.y),{value:t,loading:n,error:i}=(0,Ie.A)((async()=>{const t=await e.list();return{total:t.reduce(((e,t)=>e+t.hits),0),items:t.map((e=>({label:e.name,value:e.hits}))),visits:t.map((e=>({id:e.id,name:e.name,path:e.pathname,hits:e.hits})))}}),[]);var r,l,s;return{loading:n,error:i,total:null!==(r=null==t?void 0:t.total)&&void 0!==r?r:0,items:null!==(l=null==t?void 0:t.items)&&void 0!==l?l:[],visits:null!==(s=null==t?void 0:t.visits)&&void 0!==s?s:[]}})(),g=(0,d.A)(),v="dark"===g.palette.mode,m=(0,x.useApi)(x.configApiRef);var j;const f=Le(null!==(j=v?null===(r=m.app)||void 0===r||null===(n=r.branding)||void 0===n||null===(t=n.theme)||void 0===t||null===(e=t.dark)||void 0===e?void 0:e.headerColor1:null===(c=m.app)||void 0===c||null===(a=c.branding)||void 0===a||null===(s=a.theme)||void 0===s||null===(l=s.light)||void 0===l?void 0:l.headerColor1)&&void 0!==j?j:"#45556D",h.length),A=e=>Number((e/(u/100)).toFixed(2));return(0,i.jsxs)(be.A,{variant:"outlined",sx:{display:"flex",flexDirection:"column",gap:"8px",flexGrow:1,maxHeight:"900px",overfloyY:"auto"},children:[(0,i.jsx)(ze.A,{title:"Top Visited"}),(0,i.jsx)(H.A,{}),(0,i.jsx)(Ce.A,{children:(0,i.jsx)(o.A,{sx:{display:"flex",alignItems:"center"},children:(0,i.jsx)(Ae.r,{colors:f,margin:{left:80,right:80,top:80,bottom:80},series:[{data:h,innerRadius:75,outerRadius:100,paddingAngle:0,highlightScope:{fade:"global",highlight:"item"}}],height:260,width:260,hideLegend:!0,children:(0,i.jsx)(De,{primaryText:`${u}`,secondaryText:"Total"})})})}),(0,i.jsx)(o.A,{sx:{padding:"2rem",background:g.palette.background.default},children:p.map((e=>(0,i.jsxs)(ke.A,{direction:"row",sx:{alignItems:"center",gap:2,pb:2},children:[(0,i.jsx)(Te.A,{}),(0,i.jsxs)(ke.A,{sx:{gap:1,flexGrow:1},children:[(0,i.jsxs)(ke.A,{direction:"row",sx:{justifyContent:"space-between",alignItems:"center",gap:2},children:[(0,i.jsx)(y.A,{variant:"body2",sx:{fontWeight:"500"},children:e.name}),(0,i.jsxs)(y.A,{variant:"body2",sx:{color:"text.secondary"},children:[A(e.hits),"%"]})]}),(0,i.jsx)(Se.A,{variant:"determinate","aria-label":"Number of users by country",value:A(e.hits)})]})]},e.id)))})]})}var $e=n(54994);function Ee({icon:e,title:t,value:n,color:r}){return(0,i.jsx)(be.A,{variant:"outlined",sx:{width:"100%",height:"100%",flexGrow:1,background:(0,$e.alpha)(r,.15)},children:(0,i.jsxs)(Ce.A,{children:[(0,i.jsxs)(o.A,{component:"div",sx:{display:"flex",gap:".5rem",padding:".5rem 0"},children:[(0,i.jsx)(e,{color:"secondary",style:{fontSize:"18px"}}),(0,i.jsx)(y.A,{component:"h2",variant:"subtitle1",gutterBottom:!0,children:t})]}),(0,i.jsx)(ke.A,{direction:"row",sx:{justifyContent:"space-between",alignItems:"center"},children:(0,i.jsx)(y.A,{variant:"h4",component:"div",sx:{width:"100%",textAlign:"right",padding:"0 .5rem"},children:n})})]})})}var Oe=n(64811),Pe=n(97522),Ne=n(87318);function We(){const e=(0,d.A)();return(0,i.jsx)(be.A,{variant:"outlined",sx:{width:"100%",height:"100%",flexGrow:1,border:"1px solid transparent",[e.breakpoints.down("lg")]:{justifyContent:"center",background:e.palette.background.default}},children:(0,i.jsxs)(Ce.A,{children:[(0,i.jsxs)(o.A,{component:"div",sx:{display:"flex",gap:".5rem",padding:".5rem 0",[e.breakpoints.down("lg")]:{justifyContent:"center"}},children:[(0,i.jsx)(Pe.A,{color:"primary"}),(0,i.jsx)(y.A,{component:"h2",variant:"subtitle2",gutterBottom:!0,sx:{fontWeight:"600"},children:"Add new features"})]}),(0,i.jsx)(o.A,{sx:{[e.breakpoints.down("lg")]:{textAlign:"center"}},children:(0,i.jsxs)(Ne.z,{variant:"contained",to:"/create",children:[" ",(0,i.jsx)(Oe.A,{})," Create"]})})]})})}var He=n(27732),_e=n(97035),Be=n(3629);function Ge(){var e,t,n,r,l,s,a,c;const{resources:u,apis:h,components:p}=(()=>{const e=(0,x.useApi)(q.v),{value:t,loading:n,error:i}=(0,Ie.A)((async()=>{const t=await e.getEntities();return{resources:t.items.filter((e=>"api"!==e.kind.toLocaleLowerCase()&&"Component"!==e.kind.toLocaleLowerCase()&&"group"!==e.kind.toLocaleLowerCase()&&"user"!==e.kind.toLocaleLowerCase()&&"location"!==e.kind.toLocaleLowerCase())),apis:t.items.filter((e=>"api"===e.kind.toLocaleLowerCase())),components:t.items.filter((e=>"component"===e.kind.toLocaleLowerCase()))}}),[]);var r,l,s;return{loading:n,error:i,resources:null!==(r=null==t?void 0:t.resources)&&void 0!==r?r:[],apis:null!==(l=null==t?void 0:t.apis)&&void 0!==l?l:[],components:null!==(s=null==t?void 0:t.components)&&void 0!==s?s:[]}})(),g=(0,d.A)(),v="dark"===g.palette.mode,m=(0,x.useApi)(x.configApiRef),j=[{icon:He.A,title:"Resources",value:u.length.toString()},{icon:_e.A,title:"Components",value:p.length.toString()},{icon:Be.A,title:"APIs",value:h.length.toString()}];var f;const A=Le(null!==(f=v?null===(r=m.app)||void 0===r||null===(n=r.branding)||void 0===n||null===(t=n.theme)||void 0===t||null===(e=t.dark)||void 0===e?void 0:e.headerColor1:null===(c=m.app)||void 0===c||null===(a=c.branding)||void 0===a||null===(s=a.theme)||void 0===s||null===(l=s.light)||void 0===l?void 0:l.headerColor1)&&void 0!==f?f:"#45556D",j.length);return(0,i.jsxs)(be.A,{variant:"outlined",sx:{display:"flex",flexDirection:"column",gap:"8px",flexGrow:1,overfloyY:"auto"},children:[(0,i.jsx)(ze.A,{title:"Summary"}),(0,i.jsx)(H.A,{}),(0,i.jsx)(Ce.A,{children:(0,i.jsxs)(o.A,{sx:{display:"grid",alignItems:"center",gap:"1rem",gridTemplateColumns:"repeat(4,1fr)",[g.breakpoints.down("lg")]:{gridTemplateColumns:"1fr"}},children:[j.map(((e,t)=>(0,i.jsx)(Ee,{...e,color:A[t]},t))),(0,i.jsx)(We,{})]})})]})}const Ue=()=>{const e=[{url:"https://docs.platform.vee.codes/",label:"Docs",icon:(0,i.jsx)(ve,{})},{url:"https://github.com/orgs/veecode-platform/discussions",label:"Community",icon:(0,i.jsx)(ge,{})},{url:"https://platform.vee.codes/",label:"Website",icon:(0,i.jsx)(me,{})},{url:"https://veecode-suporte.freshdesk.com/support/login",label:"Support",icon:(0,i.jsx)(je,{})}];return(0,i.jsx)(j.Lt,{children:(0,i.jsx)(pe.U,{stretch:!0,children:(0,i.jsxs)(he.Ay,{container:!0,spacing:2,justifyContent:"center",children:[(0,i.jsx)(he.Ay,{item:!0,xs:12,children:(0,i.jsxs)(he.Ay,{container:!0,spacing:2,children:[(0,i.jsx)(he.Ay,{item:!0,xs:12,md:6,lg:8,children:(0,i.jsxs)(he.Ay,{container:!0,spacing:2,justifyContent:"center",children:[(0,i.jsx)(he.Ay,{item:!0,xs:12,md:12,lg:12,children:(0,i.jsx)(Ge,{})}),(0,i.jsx)(he.Ay,{item:!0,xs:12,md:12,lg:12,children:(0,i.jsx)(xe.bv,{})}),(0,i.jsx)(he.Ay,{item:!0,xs:12,md:12,lg:12,children:(0,i.jsx)(xe.vA,{})})]})}),(0,i.jsx)(he.Ay,{item:!0,xs:12,md:6,lg:4,children:(0,i.jsxs)(he.Ay,{container:!0,spacing:2,justifyContent:"center",children:[(0,i.jsx)(he.Ay,{item:!0,xs:12,md:12,lg:12,children:(0,i.jsx)(Me,{})}),(0,i.jsx)(he.Ay,{item:!0,xs:12,md:12,lg:12,children:(0,i.jsx)(xe.zJ,{tools:e})})]})})]})}),(0,i.jsx)(he.Ay,{item:!0,xs:12,sx:{marginTop:"7rem"},children:(0,i.jsxs)(o.A,{sx:{display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.3em",gap:"10px"},children:[(0,i.jsx)(y.A,{sx:{fontSize:"1.2em",fontWeight:"bold"},children:"Powered by"}),(0,i.jsx)("img",{src:fe,alt:"backstage logo",style:{width:"7.5em",height:"1.5em"}})]})})]})})})};var Ve=n(82326);const qe=(0,r.A)((e=>({pageRoot:{display:"flex",flexDirection:"column",backgroundColor:e.palette.background.default}}))),Ye=()=>{const{pageRoot:e}=qe();return(0,i.jsxs)(Ve.Y,{themeId:"home",className:e,children:[(0,i.jsx)(de,{}),(0,i.jsx)(ue,{}),(0,i.jsx)(Ue,{})]})}}}]);
|
2
|
-
//# sourceMappingURL=4327.
|
1
|
+
"use strict";(self.webpackChunkveecode_platform_plugin_veecode_homepage=self.webpackChunkveecode_platform_plugin_veecode_homepage||[]).push([[4327],{49708:(e,t,n)=>{n.r(t),n.d(t,{VeeCodeHomePage:()=>Ye});var i=n(31085),r=n(58837),l=n(95478),s=n(81031),o=n(46702),a=n(1659),d=n(6530),c=n(46121),u=n(13295),x=n(22097),h=n(30330),p=n(74892),g=n(42469);const v=({title:e,label:t,color:n,handleClick:r,link:l,children:s})=>{const o=(0,i.jsx)(h.A,{size:"small","aria-label":t,color:n,"aria-controls":`${t}-menu`,"aria-haspopup":"true",sx:{width:"42px",height:"42px",borderRadius:"50%"},onClick:r,children:s});return(0,i.jsx)(p.A,{title:e,children:l?(0,i.jsx)(g.Link,{to:l,children:o}):o})},m=()=>{const e=(0,x.useApi)(x.appThemeApiRef),t="dark"===(0,d.A)().palette.mode,n=t?"Select theme Light Theme":"Select theme Dark Theme",r=e.getInstalledThemes();return(0,i.jsx)(v,{title:n,handleClick:n=>{const i=t?"light":"dark";n.preventDefault(),n.stopPropagation(),r.some((e=>e.id===i))?e.setActiveThemeId(i):e.setActiveThemeId(void 0)},color:"inherit",label:"Toggle-theme",children:t?(0,i.jsx)(c.A,{}):(0,i.jsx)(u.A,{})})};var j=n(531),f=n(21085),A=n(75638),y=n(13674);const w=(e,t)=>{if(!t)return(0,i.jsx)(i.Fragment,{children:e});const n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=new RegExp(`(${n})`,"i"),l=e.split(r);return(0,i.jsx)(i.Fragment,{children:l.map(((e,t)=>r.test(e)?(0,i.jsx)(y.A,{component:"span",sx:{fontWeight:"normal"},children:e},`${e}-${t}`):(0,i.jsx)(y.A,{component:"span",sx:{fontWeight:"bold"},children:e},`${e}-${t}`)))})};var b=n(53855),C=n(35648),k=n(55330);const S=({params:e,error:t,helperText:n})=>(0,i.jsx)(b.A,{...e,placeholder:"Search...",variant:"standard",error:t,helperText:n,InputProps:{...e.InputProps,disableUnderline:!0,startAdornment:(0,i.jsx)(C.A,{position:"start",children:(0,i.jsx)(k.A,{style:{color:"#ffffff"}})})},sx:{input:{color:"#CDCDCD"},button:{color:"inherit"},"& fieldset":{border:"none"}}});var z=n(71543),F=n(75202),I=n(89789),L=n(50232);const T=({option:e,query:t,result:n,renderProps:r})=>{const l="No results found"===e,s=(0,x.useAnalytics)();var a;return(0,i.jsx)(o.A,{component:l?"div":F.N_,to:null==n?void 0:n.document.location,underline:"none",sx:{width:"100%",...l?{}:{cursor:"pointer"}},children:(0,i.jsx)(I.Ay,{...r,sx:{py:1},onClick:e=>{var t,i,l;s.captureEvent("discover",null!==(i=null==n?void 0:n.document.title)&&void 0!==i?i:"",{attributes:{to:null!==(l=null==n?void 0:n.document.location)&&void 0!==l?l:"#"},value:null==n?void 0:n.rank}),null==r||null===(t=r.onClick)||void 0===t||t.call(r,e)},children:(0,i.jsx)(y.A,{sx:{color:"text.primary",flexGrow:1},children:l?e:w(e,null!==(a=null==t?void 0:t.term)&&void 0!==a?a:"")})})})},R=({option:e,index:t,options:n,query:r,results:l,renderProps:s,searchLink:a})=>{if(e===(null==r?void 0:r.term)&&t===n.length-1)return(0,i.jsxs)(o.A,{id:"all-results",children:[(0,i.jsx)(z.A,{sx:{my:.5}}),(0,i.jsx)(F.N_,{to:a,underline:"none",children:(0,i.jsx)(I.Ay,{...s,sx:{my:0},className:"allResultsOption",children:(0,i.jsxs)(o.A,{sx:{display:"flex",alignItems:"center"},children:[(0,i.jsx)(y.A,{sx:{flexGrow:1},children:"All results"}),(0,i.jsx)(L.A,{fontSize:"small"})]})})})]},"all-results");const d=l.find((t=>t.document.title===e));return(0,i.jsx)(T,{option:e,query:r,result:d,renderProps:s},t)},D=e=>{const{query:t,setSearchTerm:n}=e,r=(0,g.useNavigate)(),[s,o]=(0,l.useState)(-1),a=(0,l.useRef)(s),{setTerm:c}=(0,j.SQ)(),u=(0,d.A)(),x=(e=>{const t=(0,l.useRef)(null);return(0,l.useEffect)((()=>()=>{t.current&&clearTimeout(t.current)}),[]),(0,l.useCallback)(((...n)=>{t.current&&clearTimeout(t.current),t.current=setTimeout((()=>{e(...n)}),300)}),[e,300])})(((e,t)=>{n(t),c(t)}));return(0,l.useEffect)((()=>{a.current=s}),[s]),(0,i.jsx)(f.z1,{...e,children:({loading:e,error:n,value:l})=>{var d;const c=(null==t?void 0:t.term)&&null!==(d=null==l?void 0:l.results)&&void 0!==d?d:[];let h=[];var p;(null==t?void 0:t.term)&&0===c.length&&(h=["No results found"]),c.length>0&&(h=[...c.map((e=>e.document.title)),`${null==t?void 0:t.term}`]);const g=(v=null!==(p=null==t?void 0:t.term)&&void 0!==p?p:"",`/search?query=${encodeURIComponent(v)}`);var v,m;return(0,i.jsx)(A.A,{freeSolo:!0,options:h,loading:e,value:null!==(m=null==t?void 0:t.term)&&void 0!==m?m:"",getOptionLabel:e=>null!=e?e:"",onInputChange:x,onHighlightChange:(e,t)=>o(h.indexOf(null!=t?t:"")),componentsProps:{paper:{sx:{borderRadius:"4px",outline:"unset"}}},sx:{width:"100%",background:"dark"===u.palette.mode?"#FFFFFF10":"#CDCDCD10",'& [class*="MuiAutocomplete-clearIndicator"]':{visibility:(null==t?void 0:t.term)?"visible":"hidden"},padding:".2rem",borderRadius:"8px","&:hover":{background:"dark"===u.palette.mode?"#FFFFFF25":"#CDCDCD25"}},filterOptions:e=>e,onKeyDown:e=>{const n=a.current;if("Enter"===e.key){if(e.preventDefault(),-1===n&&(null==t?void 0:t.term))r(g);else if(-1!==n){var i,l,d;r(null!==(d=null===(l=c[s])||void 0===l||null===(i=l.document)||void 0===i?void 0:i.location)&&void 0!==d?d:g)}o(-1)}},renderInput:e=>(0,i.jsx)(S,{params:e,error:!!n,helperText:n?"Error fetching results":""}),renderOption:(e,n,{index:r})=>(0,i.jsx)(R,{option:n,index:r,options:h,query:t,results:c,renderProps:e,searchLink:g}),ListboxProps:{sx:{maxHeight:"60vh"}}})}})};var M=n(10394);const $=()=>{const[e,t]=(0,l.useState)("");return(0,i.jsx)(j.Lt,{children:(0,i.jsx)(M.A,{component:"div",sx:{width:"100%",maxWidth:"50vw"},children:(0,i.jsx)(D,{query:{term:e},setSearchTerm:t})})})};var E=n(49915),O=n(94087),P=n(19277),N=n(85770),W=n(26343),H=n(37197),_=n(46423),B=n(55626),G=n(22854);const U=n.p+"static/avatar.70448f05..svg",V=({width:e,height:t})=>{const{profile:n,loading:r}=(0,N.s)();var l;return(0,i.jsx)(i.Fragment,{children:r?(0,i.jsx)(G.A,{variant:"circular",sx:{width:e,height:t}}):(0,i.jsx)(B.A,{src:null!==(l=n.picture)&&void 0!==l?l:U,sx:{width:e,height:t,objectFit:"cover"},alt:"Profile picture"})})};var q=n(84692),Y=n(27018),J=n(57368);const K=()=>{const e=(0,x.useApi)(x.identityApiRef);return(0,i.jsxs)(o.A,{component:"div",onClick:async()=>{await e.signOut()},sx:{display:"flex",alignItems:"center",justifyContent:"flex-start"},children:[(0,i.jsx)(Y.A,{children:(0,i.jsx)(J.A,{fontSize:"small"})}),"Log out"]})};var Q=n(113);const X=({handleClose:e,link:t,children:n})=>(0,i.jsx)(W.A,{onClick:e,children:(0,i.jsx)(g.Link,{to:t,children:(0,i.jsx)(o.A,{component:"div",sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",padding:".1rem 0"},children:n})})}),Z=({anchorEl:e,menuId:t,isOpen:n,handleClose:r})=>{var s,a;const c=(0,d.A)(),{displayName:u,backstageIdentity:h}=(0,N.s)(),p=(0,x.useApi)(q.v);var g;const v=null!==(g=null===(a=(0,x.useApi)(x.configApiRef).app)||void 0===a||null===(s=a.support)||void 0===s?void 0:s.url)&&void 0!==g?g:"https://github.com/orgs/veecode-platform/discussions";return(0,l.useEffect)((()=>{(async()=>{let e;try{return(null==h?void 0:h.userEntityRef)&&(e=await p.getEntityByRef(h.userEntityRef)),e}catch(e){return null}})()}),[h,p]),(0,i.jsxs)(P.A,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},id:t,keepMounted:!0,open:n,onClose:r,slotProps:{paper:{sx:{width:250,borderRadius:2,mt:.8,mr:-.5,boxShadow:3,background:`${c.palette.background.default} !important`,border:`1px solid ${c.palette.grey[600]}`}}},children:[(0,i.jsxs)(o.A,{sx:{px:2,py:1.5,display:"flex",alignItems:"center",gap:1.5},children:[(0,i.jsx)(V,{}),(0,i.jsxs)(o.A,{children:[(0,i.jsx)(y.A,{variant:"subtitle1",children:(()=>{const e=u;return/^[^:/]+:[^/]+\/[^/]+$/.test(e)?e.charAt(e.indexOf("/")+1).toLocaleUpperCase("en-US").concat(e.substring(e.indexOf("/")+2)):e})()}),(0,i.jsx)(Q.A,{size:"small",variant:"outlined",label:null==h?void 0:h.ownershipEntityRefs[0].split("/")[1]})]})]}),(0,i.jsx)(H.A,{}),(0,i.jsx)(X,{handleClose:r,link:v,children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_.A,{children:(0,i.jsx)(E.A,{fontSize:"small"})}),"Help"]})}),(0,i.jsx)(X,{handleClose:r,link:"/settings",children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_.A,{children:(0,i.jsx)(O.A,{fontSize:"small"})}),"Settings"]})}),(0,i.jsx)(H.A,{}),(0,i.jsx)(W.A,{children:(0,i.jsx)(K,{})})]})};var ee=n(33265),te=n(52452),ne=n(47566),ie=n(87094),re=n(16294),le=n(97331),se=n.n(le);const oe=()=>{var e;const[t]=(0,l.useState)(!0),[n]=(0,l.useState)(void 0),[r]=(0,l.useState)("low"),[s]=(0,l.useState)(),{lastSignal:o}=(0,re.U)("notifications"),{error:a,value:d,retry:c,loading:u}=(0,ie.s)((e=>{const i={minimumSeverity:r};return void 0!==t&&(i.read=!t),void 0!==n&&(i.saved=n),void 0!==s&&(i.topic=s),Promise.all([e.getNotifications(i),e.getStatus(),e.getTopics(i)])}),[t,r,n,s]),x=(0,l.useMemo)((()=>se()((()=>c()),2e3)),[]);var h;const p=null!==(h=null==d||null===(e=d[1])||void 0===e?void 0:e.unread)&&void 0!==h?h:0;return(0,l.useEffect)((()=>{(null==o?void 0:o.action)&&x()}),[o,x]),(0,i.jsx)(v,{title:"Notifications",label:`Mostrar ${p} notificações não lidas`,color:"inherit",link:"/notifications",children:(0,i.jsx)(ee.A,{badgeContent:p,color:"error",invisible:u||!!a||0===p,children:u?(0,i.jsx)(ne.A,{size:20,color:"inherit"}):(0,i.jsx)(te.A,{})})})},ae=({handleOpenMenu:e})=>(0,i.jsx)(v,{title:"",label:"profile-menu",handleClick:e,color:"inherit",children:(0,i.jsx)(V,{width:"42px",height:"42px"})}),de=()=>{const e=(0,d.A)(),[t,n]=l.useState(null),r=Boolean(t);return(0,i.jsxs)(o.A,{sx:{flexGrow:1,position:"relative"},children:[(0,i.jsx)(s.A,{position:"sticky",component:"nav",style:{zIndex:e.zIndex.appBar-1},children:(0,i.jsxs)(a.A,{children:[(0,i.jsx)($,{}),(0,i.jsx)(o.A,{sx:{flexGrow:1}}),(0,i.jsxs)(o.A,{sx:{display:{xs:"none",md:"flex",alignItems:"center",gap:".5rem"}},children:[(0,i.jsx)(oe,{}),(0,i.jsx)(m,{}),(0,i.jsx)(ae,{handleOpenMenu:e=>{n(e.currentTarget)}})]})]})}),(0,i.jsx)(Z,{anchorEl:t,menuId:"profile-menu",isOpen:r,handleClose:()=>{n(null)}})]})},ce=n.p+"static/waves.6d6cf859..svg",ue=()=>{var e,t,n,r,s,a,c,u,h,p,g,v,m,j,f,A;const[w,b]=(0,l.useState)(!1),{displayName:C}=(0,N.s)(),k=(0,d.A)(),S="dark"===k.palette.mode,z=(0,x.useApi)(x.configApiRef);var F;const I=null!==(F=S?null===(r=z.app)||void 0===r||null===(n=r.branding)||void 0===n||null===(t=n.theme)||void 0===t||null===(e=t.dark)||void 0===e?void 0:e.headerColor1:null===(u=z.app)||void 0===u||null===(c=u.branding)||void 0===c||null===(a=c.theme)||void 0===a||null===(s=a.light)||void 0===s?void 0:s.headerColor1)&&void 0!==F?F:"#45556D";var L;const T=null!==(L=S?null===(v=z.app)||void 0===v||null===(g=v.branding)||void 0===g||null===(p=g.theme)||void 0===p||null===(h=p.dark)||void 0===h?void 0:h.headerColor2:null===(A=z.app)||void 0===A||null===(f=A.branding)||void 0===f||null===(j=f.theme)||void 0===j||null===(m=j.light)||void 0===m?void 0:m.headerColor2)&&void 0!==L?L:"#86F4CE";return(0,l.useEffect)((()=>{b(!0),setTimeout((()=>b(!1)),1e3)}),[]),(0,i.jsxs)(o.A,{sx:{background:`linear-gradient(90deg, ${I} 0%, ${T} 100%)`,width:"100%",minHeight:"210px",display:"flex",alignItems:"center",justifyContent:"center",position:"relative",overflow:"hidden",[k.breakpoints.only("xs")]:{height:"380px",padding:"1rem 0"}},children:[(0,i.jsxs)(o.A,{sx:{width:"90%",margin:"auto",display:"flex",alignItems:"center",gap:"2rem",[k.breakpoints.only("xs")]:{flexDirection:"column",padding:"1rem 0"}},children:[(0,i.jsx)(o.A,{children:(0,i.jsx)(V,{width:"120px",height:"120px"})}),(0,i.jsxs)(o.A,{sx:{[k.breakpoints.only("xs")]:{textAlign:"center",color:k.palette.grey[100],maxWidth:"70vw"}},children:[(0,i.jsxs)(y.A,{variant:"h3",color:"#FAFAFA",children:["Welcome back",w?(0,i.jsx)(G.A,{variant:"rectangular",width:150,height:80,style:{display:"inline"}}):(0,i.jsxs)(i.Fragment,{children:[", ",(()=>{const e=C;return/^[^:/]+:[^/]+\/[^/]+$/.test(e)?e.charAt(e.indexOf("/")+1).toLocaleUpperCase("en-US").concat(e.substring(e.indexOf("/")+2)):e})()," 👋"]})," "]}),(0,i.jsx)(y.A,{variant:"h6",color:"#FAFAFA",children:"Let's get started."})]})]}),(0,i.jsx)("img",{src:ce,alt:"",style:{width:"100%",height:"250px",objectFit:"cover",position:"absolute",top:"-20%",left:"0",opacity:"0.7"}})]})};var xe=n(39240),he=n(19996),pe=n(16454);const ge=()=>{const e=(0,d.A)();return(0,i.jsx)("svg",{height:"45px",width:"45px",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 502.648 502.648",xmlSpace:"preserve",style:{cursor:"pointer "},children:(0,i.jsxs)("g",{children:[(0,i.jsx)("g",{children:(0,i.jsxs)("g",{children:[(0,i.jsx)("circle",{style:{fill:e.palette.grey[600]},cx:"250.399",cy:"91.549",r:"58.694"}),(0,i.jsx)("path",{style:{fill:e.palette.grey[600]},d:"M455.861,253.028l-54.703-11.411c-18.637-3.904-37.037,4.638-46.765,19.824 c-9.448-4.853-19.608-9.038-30.415-12.511v-32.529c0.022-24.612-20.126-44.738-44.651-44.738h-55.933 c-24.655,0-44.716,20.126-44.716,44.738v32.701c-10.699,3.408-20.751,7.593-30.264,12.468 c-9.728-15.251-28.15-23.857-46.809-19.953l-54.747,11.411c-24.03,5.026-39.626,28.862-34.6,52.978l13.741,65.64 c4.983,24.051,28.84,39.647,52.892,34.621l17.321-3.624c8.671,12.813,20.665,24.569,36.023,34.621 c31.989,20.967,74.247,32.529,119.092,32.529c68.617,0,127.721-27.589,154.943-67.215l17.602,3.689 c24.03,5.004,47.887-10.57,52.87-34.621l13.762-65.64C495.508,281.89,479.912,258.054,455.861,253.028z M251.305,447.381 c-40.51,0-78.475-10.203-106.797-28.862c-9.707-6.342-17.753-13.395-24.202-20.945l13.266-2.783 c24.073-5.004,39.669-28.84,34.643-52.913l-12.317-59.018c7.183-3.861,14.733-7.248,22.757-10.138v10.764 c0,24.569,20.104,44.695,44.716,44.695h55.933c24.548,0,44.652-20.147,44.652-44.695v-11.325 c8.175,2.912,15.854,6.256,22.973,10.052L334.439,341.9c-4.983,24.073,10.591,47.909,34.664,52.913l13.395,2.804 C357.52,427.191,308.101,447.381,251.305,447.381z"}),(0,i.jsx)("circle",{style:{fill:e.palette.grey[600]},cx:"443.954",cy:"168.708",r:"58.694"}),(0,i.jsx)("path",{style:{fill:e.palette.grey[600]},d:"M70.736,226.172c31.752-6.644,52.029-37.77,45.471-69.501 c-6.687-31.709-37.749-52.072-69.523-45.428c-31.709,6.622-52.072,37.727-45.428,69.458 C7.879,212.453,38.984,232.795,70.736,226.172z"})]})}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{}),(0,i.jsx)("g",{})]})})},ve=()=>{const e=(0,d.A)();return(0,i.jsx)("svg",{width:"45px",height:"45px",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"none",style:{cursor:"pointer "},children:(0,i.jsx)("path",{fill:e.palette.grey[600],"fill-rule":"evenodd",d:"M4.25 1A2.25 2.25 0 002 3.25v9.5A2.25 2.25 0 004.25 15h8.5c.69 0 1.25-.56 1.25-1.25V2.25C14 1.56 13.44 1 12.75 1h-8.5zM3.5 12.75c0 .414.336.75.75.75h8.25v-2H4.25a.75.75 0 00-.75.75v.5zm0-2.622c.235-.083.487-.128.75-.128h8.25V2.5H4.25a.75.75 0 00-.75.75v6.878z","clip-rule":"evenodd"})})},me=()=>{const e=(0,d.A)();return(0,i.jsxs)("svg",{width:"45px",height:"45px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",style:{cursor:"pointer "},children:[(0,i.jsx)("rect",{x:"0",fill:"none",width:"20",height:"20"}),(0,i.jsx)("g",{fill:e.palette.grey[600],children:(0,i.jsx)("path",{d:"M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm7.5 6.48c-.274.896-.908 1.64-1.75 2.05-.45-1.69-1.658-3.074-3.27-3.75.13-.444.41-.83.79-1.09-.43-.28-1-.42-1.34.07-.53.69 0 1.61.21 2v.14c-.555-.337-.99-.84-1.24-1.44-.966-.03-1.922.208-2.76.69-.087-.565-.032-1.142.16-1.68.733.07 1.453-.23 1.92-.8.46-.52-.13-1.18-.59-1.58h.36c1.36-.01 2.702.335 3.89 1 1.36 1.005 2.194 2.57 2.27 4.26.24 0 .7-.55.91-.92.172.34.32.69.44 1.05zM9 16.84c-2.05-2.08.25-3.75-1-5.24-.92-.85-2.29-.26-3.11-1.23-.282-1.473.267-2.982 1.43-3.93.52-.44 4-1 5.42.22.83.715 1.415 1.674 1.67 2.74.46.035.918-.066 1.32-.29.41 2.98-3.15 6.74-5.73 7.73zM5.15 2.09c.786-.3 1.676-.028 2.16.66-.42.38-.94.63-1.5.72.02-.294.085-.584.19-.86l-.85-.52z"})})]})},je=()=>{const e=(0,d.A)();return(0,i.jsxs)("svg",{width:"45px",height:"45px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",style:{cursor:"pointer "},children:[(0,i.jsx)("title",{children:"support"}),(0,i.jsx)("rect",{width:"24",height:"24",fill:"none"}),(0,i.jsx)("path",{fill:e.palette.grey[600],d:"M12,2a8,8,0,0,0-8,8v1.9A2.92,2.92,0,0,0,3,14a2.88,2.88,0,0,0,1.94,2.61C6.24,19.72,8.85,22,12,22h3V20H12c-2.26,0-4.31-1.7-5.34-4.39l-.21-.55L5.86,15A1,1,0,0,1,5,14a1,1,0,0,1,.5-.86l.5-.29V11a1,1,0,0,1,1-1H17a1,1,0,0,1,1,1v5H13.91a1.5,1.5,0,1,0-1.52,2H20a2,2,0,0,0,2-2V14a2,2,0,0,0-2-2V10A8,8,0,0,0,12,2Z"})]})},fe=n.p+"static/backstage.b1940be1..png";var Ae=n(78838),ye=n(92742),we=n(59193),be=n(12302),Ce=n(80731),ke=n(97134),Se=n(16481),ze=n(45685),Fe=n(98590),Ie=n(35015);function Le(e="royalblue",t,n=70,i=30){const{h:r,s:l}=function(e){const t=document.createElement("canvas").getContext("2d");if(!t)throw new Error("Canvas not supported");t.fillStyle=e;const n=t.fillStyle.replace(/^#/,""),i=3===n.length?n.split("").map((e=>e+e)).join(""):n,r=parseInt(i,16);return function(e,t,n){const i=e/255,r=t/255,l=n/255,s=Math.max(i,r,l),o=Math.min(i,r,l),a=(s+o)/2;let d=0,c=0;if(s!==o){const e=s-o;c=a>.5?e/(2-s-o):e/(s+o),d=s===i?(r-l)/e+(r<l?6:0):s===r?(l-i)/e+2:(i-r)/e+4,d*=60}return{h:Math.round(d),s:Math.round(100*c),l:Math.round(100*a)}}(r>>16&255,r>>8&255,255&r)}(e),s=(n-i)/Math.max(t-1,1);return Array.from({length:t},((e,t)=>`hsl(${r}, ${l}%, ${n-t*s}%)`))}var Te=n(61690);const Re=(0,we.Ay)("text",{shouldForwardProp:e=>"variant"!==e})((({theme:e})=>({textAnchor:"middle",dominantBaseline:"central",fill:e.palette.text.secondary,variants:[{props:{variant:"primary"},style:{fontSize:e.typography.h5.fontSize}},{props:({variant:e})=>"primary"!==e,style:{fontSize:e.typography.body2.fontSize}},{props:{variant:"primary"},style:{fontWeight:e.typography.h5.fontWeight}},{props:({variant:e})=>"primary"!==e,style:{fontWeight:e.typography.body2.fontWeight}}]})));function De({primaryText:e,secondaryText:t}){const{width:n,height:r,left:s,top:o}=(0,ye.N)(),a=o+r/2-10,d=a+24;return(0,i.jsxs)(l.Fragment,{children:[(0,i.jsx)(Re,{variant:"primary",x:s+n/2,y:a,children:e}),(0,i.jsx)(Re,{variant:"secondary",x:s+n/2,y:d,children:t})]})}function Me(){var e,t,n,r,l,s,a,c;const{total:u,items:h,visits:p}=(()=>{const e=(0,x.useApi)(Fe.y),{value:t,loading:n,error:i}=(0,Ie.A)((async()=>{const t=await e.list();return{total:t.reduce(((e,t)=>e+t.hits),0),items:t.map((e=>({label:e.name,value:e.hits}))),visits:t.map((e=>({id:e.id,name:e.name,path:e.pathname,hits:e.hits})))}}),[]);var r,l,s;return{loading:n,error:i,total:null!==(r=null==t?void 0:t.total)&&void 0!==r?r:0,items:null!==(l=null==t?void 0:t.items)&&void 0!==l?l:[],visits:null!==(s=null==t?void 0:t.visits)&&void 0!==s?s:[]}})(),g=(0,d.A)(),v="dark"===g.palette.mode,m=(0,x.useApi)(x.configApiRef);var j;const f=Le(null!==(j=v?null===(r=m.app)||void 0===r||null===(n=r.branding)||void 0===n||null===(t=n.theme)||void 0===t||null===(e=t.dark)||void 0===e?void 0:e.headerColor1:null===(c=m.app)||void 0===c||null===(a=c.branding)||void 0===a||null===(s=a.theme)||void 0===s||null===(l=s.light)||void 0===l?void 0:l.headerColor1)&&void 0!==j?j:"#45556D",h.length),A=e=>Number((e/(u/100)).toFixed(2));return(0,i.jsxs)(be.A,{variant:"outlined",sx:{display:"flex",flexDirection:"column",gap:"8px",flexGrow:1,maxHeight:"900px",overfloyY:"auto"},children:[(0,i.jsx)(ze.A,{title:"Top Visited"}),(0,i.jsx)(H.A,{}),(0,i.jsx)(Ce.A,{children:(0,i.jsx)(o.A,{sx:{display:"flex",alignItems:"center"},children:(0,i.jsx)(Ae.r,{colors:f,margin:{left:80,right:80,top:80,bottom:80},series:[{data:h,innerRadius:75,outerRadius:100,paddingAngle:0,highlightScope:{fade:"global",highlight:"item"}}],height:260,width:260,hideLegend:!0,children:(0,i.jsx)(De,{primaryText:`${u}`,secondaryText:"Total"})})})}),(0,i.jsx)(o.A,{sx:{padding:"2rem",background:g.palette.background.default},children:p.map((e=>(0,i.jsxs)(ke.A,{direction:"row",sx:{alignItems:"center",gap:2,pb:2},children:[(0,i.jsx)(Te.A,{}),(0,i.jsxs)(ke.A,{sx:{gap:1,flexGrow:1},children:[(0,i.jsxs)(ke.A,{direction:"row",sx:{justifyContent:"space-between",alignItems:"center",gap:2},children:[(0,i.jsx)(y.A,{variant:"body2",sx:{fontWeight:"500"},children:e.name}),(0,i.jsxs)(y.A,{variant:"body2",sx:{color:"text.secondary"},children:[A(e.hits),"%"]})]}),(0,i.jsx)(Se.A,{variant:"determinate","aria-label":"Number of users by country",value:A(e.hits)})]})]},e.id)))})]})}var $e=n(54994);function Ee({icon:e,title:t,value:n,color:r}){return(0,i.jsx)(be.A,{variant:"outlined",sx:{width:"100%",height:"100%",flexGrow:1,background:(0,$e.alpha)(r,.15)},children:(0,i.jsxs)(Ce.A,{children:[(0,i.jsxs)(o.A,{component:"div",sx:{display:"flex",gap:".5rem",padding:".5rem 0"},children:[(0,i.jsx)(e,{color:"secondary",style:{fontSize:"18px"}}),(0,i.jsx)(y.A,{component:"h2",variant:"subtitle1",gutterBottom:!0,children:t})]}),(0,i.jsx)(ke.A,{direction:"row",sx:{justifyContent:"space-between",alignItems:"center"},children:(0,i.jsx)(y.A,{variant:"h4",component:"div",sx:{width:"100%",textAlign:"right",padding:"0 .5rem"},children:n})})]})})}var Oe=n(64811),Pe=n(97522),Ne=n(87318);function We(){const e=(0,d.A)();return(0,i.jsx)(be.A,{variant:"outlined",sx:{width:"100%",height:"100%",flexGrow:1,border:"1px solid transparent",[e.breakpoints.down("lg")]:{justifyContent:"center",background:e.palette.background.default}},children:(0,i.jsxs)(Ce.A,{children:[(0,i.jsxs)(o.A,{component:"div",sx:{display:"flex",gap:".5rem",padding:".5rem 0",[e.breakpoints.down("lg")]:{justifyContent:"center"}},children:[(0,i.jsx)(Pe.A,{color:"primary"}),(0,i.jsx)(y.A,{component:"h2",variant:"subtitle2",gutterBottom:!0,sx:{fontWeight:"600"},children:"Add new features"})]}),(0,i.jsx)(o.A,{sx:{[e.breakpoints.down("lg")]:{textAlign:"center"}},children:(0,i.jsxs)(Ne.z,{variant:"contained",to:"/create",children:[" ",(0,i.jsx)(Oe.A,{})," Create"]})})]})})}var He=n(27732),_e=n(97035),Be=n(3629);function Ge(){var e,t,n,r,l,s,a,c;const{resources:u,apis:h,components:p}=(()=>{const e=(0,x.useApi)(q.v),{value:t,loading:n,error:i}=(0,Ie.A)((async()=>{const t=await e.getEntities();return{resources:t.items.filter((e=>"api"!==e.kind.toLocaleLowerCase()&&"Component"!==e.kind.toLocaleLowerCase()&&"group"!==e.kind.toLocaleLowerCase()&&"user"!==e.kind.toLocaleLowerCase()&&"location"!==e.kind.toLocaleLowerCase())),apis:t.items.filter((e=>"api"===e.kind.toLocaleLowerCase())),components:t.items.filter((e=>"component"===e.kind.toLocaleLowerCase()))}}),[]);var r,l,s;return{loading:n,error:i,resources:null!==(r=null==t?void 0:t.resources)&&void 0!==r?r:[],apis:null!==(l=null==t?void 0:t.apis)&&void 0!==l?l:[],components:null!==(s=null==t?void 0:t.components)&&void 0!==s?s:[]}})(),g=(0,d.A)(),v="dark"===g.palette.mode,m=(0,x.useApi)(x.configApiRef),j=[{icon:He.A,title:"Resources",value:u.length.toString()},{icon:_e.A,title:"Components",value:p.length.toString()},{icon:Be.A,title:"APIs",value:h.length.toString()}];var f;const A=Le(null!==(f=v?null===(r=m.app)||void 0===r||null===(n=r.branding)||void 0===n||null===(t=n.theme)||void 0===t||null===(e=t.dark)||void 0===e?void 0:e.headerColor1:null===(c=m.app)||void 0===c||null===(a=c.branding)||void 0===a||null===(s=a.theme)||void 0===s||null===(l=s.light)||void 0===l?void 0:l.headerColor1)&&void 0!==f?f:"#45556D",j.length);return(0,i.jsxs)(be.A,{variant:"outlined",sx:{display:"flex",flexDirection:"column",gap:"8px",flexGrow:1,overfloyY:"auto"},children:[(0,i.jsx)(ze.A,{title:"Summary"}),(0,i.jsx)(H.A,{}),(0,i.jsx)(Ce.A,{children:(0,i.jsxs)(o.A,{sx:{display:"grid",alignItems:"center",gap:"1rem",gridTemplateColumns:"repeat(4,1fr)",[g.breakpoints.down("lg")]:{gridTemplateColumns:"1fr"}},children:[j.map(((e,t)=>(0,i.jsx)(Ee,{...e,color:A[t]},t))),(0,i.jsx)(We,{})]})})]})}const Ue=()=>{const e=[{url:"https://docs.platform.vee.codes/",label:"Docs",icon:(0,i.jsx)(ve,{})},{url:"https://github.com/orgs/veecode-platform/discussions",label:"Community",icon:(0,i.jsx)(ge,{})},{url:"https://platform.vee.codes/",label:"Website",icon:(0,i.jsx)(me,{})},{url:"https://veecode-suporte.freshdesk.com/support/login",label:"Support",icon:(0,i.jsx)(je,{})}];return(0,i.jsx)(j.Lt,{children:(0,i.jsx)(pe.U,{stretch:!0,children:(0,i.jsxs)(he.Ay,{container:!0,spacing:2,justifyContent:"center",children:[(0,i.jsx)(he.Ay,{item:!0,xs:12,children:(0,i.jsxs)(he.Ay,{container:!0,spacing:2,children:[(0,i.jsx)(he.Ay,{item:!0,xs:12,md:6,lg:8,children:(0,i.jsxs)(he.Ay,{container:!0,spacing:2,justifyContent:"center",children:[(0,i.jsx)(he.Ay,{item:!0,xs:12,md:12,lg:12,children:(0,i.jsx)(Ge,{})}),(0,i.jsx)(he.Ay,{item:!0,xs:12,md:12,lg:12,children:(0,i.jsx)(xe.bv,{})}),(0,i.jsx)(he.Ay,{item:!0,xs:12,md:12,lg:12,children:(0,i.jsx)(xe.vA,{})})]})}),(0,i.jsx)(he.Ay,{item:!0,xs:12,md:6,lg:4,children:(0,i.jsxs)(he.Ay,{container:!0,spacing:2,justifyContent:"center",children:[(0,i.jsx)(he.Ay,{item:!0,xs:12,md:12,lg:12,children:(0,i.jsx)(Me,{})}),(0,i.jsx)(he.Ay,{item:!0,xs:12,md:12,lg:12,children:(0,i.jsx)(xe.zJ,{tools:e})})]})})]})}),(0,i.jsx)(he.Ay,{item:!0,xs:12,sx:{marginTop:"7rem"},children:(0,i.jsxs)(o.A,{sx:{display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.3em",gap:"10px"},children:[(0,i.jsx)(y.A,{sx:{fontSize:"1.2em",fontWeight:"bold"},children:"Powered by"}),(0,i.jsx)("img",{src:fe,alt:"backstage logo",style:{width:"7.5em",height:"1.5em"}})]})})]})})})};var Ve=n(82326);const qe=(0,r.A)((e=>({pageRoot:{display:"flex",flexDirection:"column",backgroundColor:e.palette.background.default}}))),Ye=()=>{const{pageRoot:e}=qe();return(0,i.jsxs)(Ve.Y,{themeId:"home",className:e,children:[(0,i.jsx)(de,{}),(0,i.jsx)(ue,{}),(0,i.jsx)(Ue,{})]})}}}]);
|
2
|
+
//# sourceMappingURL=4327.0535c895.chunk.js.map
|