-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsrc__pages__ai__components__ProjectCard.async.js
1 lines (1 loc) · 2.9 KB
/
src__pages__ai__components__ProjectCard.async.js
1
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6436],{13107:function(I,_,e){e.d(_,{Z:function(){return P}});var u=e(38497),r=e(66850),c=e(36499),D=e(65993),l=e(76009),M=e(69521),O=e(39408),d=e(44474),n=e(96469);function P(i){var a=i.open,s=a===void 0?!1:a,E=i.onClose,m=E===void 0?function(){}:E;return(0,n.jsx)(u.Fragment,{children:(0,n.jsxs)(c.Z,{open:s,onClose:m,children:[(0,n.jsx)(O.Z,{children:"Unauthorized to view"}),(0,n.jsx)(l.Z,{children:(0,n.jsxs)(M.Z,{children:[(0,n.jsx)(d.Z,{severity:"error",icon:!1,children:"The service is temporarily unavailable in your region."}),(0,n.jsxs)(d.Z,{icon:!1,sx:{mt:2},children:["You can access open-source projects related to Project X under the",(0,n.jsx)("br",{}),'"Ecosystem" - "Design & Front-end" section.']})]})}),(0,n.jsx)(D.Z,{children:(0,n.jsx)(r.Z,{onClick:m,autoFocus:!0,children:"CLOSE"})})]})})}},51834:function(I,_,e){e.r(_);var u=e(9083),r=e.n(u),c=e(59117),D=e(63631),l=e(38497),M=e(85043),O=e(54646),d=e(65671),n=e(47743),P=e(57908),i=e(81538),a=e(17713),s=e(7543),E=e(69087),m=e(13107),t=e(96469);_.default=function(v){var T=v.items,U=v.className,A=(0,l.useState)(!1),h=r()(A,2),B=h[0],C=h[1],R=(0,l.useState)(null),g=r()(R,2),L=g[0],j=g[1];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Z,{container:!0,spacing:0,sx:{justifyContent:"center",alignItems:"stretch"},children:T.map(function(o,x){return(0,t.jsxs)(i.Z,{size:{xs:12,sm:6,md:4},sx:{cursor:o.disabled?"not-allowed":"pointer",position:"relative",p:1},onMouseEnter:function(){return j(x)},onMouseLeave:function(){return j(null)},onClick:function(){o.disabled||C(!0)},children:[(0,t.jsx)(c.M,{children:L===x&&(0,t.jsx)(M.Z,{component:D.E.span,sx:{position:"absolute",inset:"0",width:"100%",backgroundColor:"rgba(200, 200, 200, 1)",borderRadius:1},layoutId:"hoverBackground",initial:{opacity:0},animate:{opacity:1,transition:{duration:.15}},exit:{opacity:0,transition:{duration:.15,delay:.2}}})}),(0,t.jsxs)(d.Z,{sx:{position:"relative",zIndex:2,margin:"0 auto",height:"100%",boxSizing:"border-box"},elevation:(o.disabled,1),children:[(0,t.jsx)(P.Z,{component:"img",height:"140",image:o.img}),(0,t.jsxs)(n.Z,{children:[(0,t.jsxs)(O.Z,{direction:"row",spacing:1,alignItems:"center",sx:{mb:1},children:[o.tab==="beta"&&(0,t.jsx)(s.Z,{label:"Beta",color:"warning",size:"small",sx:{borderRadius:1,fontSize:12,height:20}}),o.tab==="unpublished"&&(0,t.jsx)(s.Z,{label:"Unpublished",icon:(0,t.jsx)(E.Z,{}),color:"error",size:"small",sx:{borderRadius:1,fontSize:12,height:20}}),(0,t.jsx)(s.Z,{label:"v0.0.2-beta",size:"small",sx:{borderRadius:1,fontSize:12,height:20}})]}),(0,t.jsx)(a.Z,{fontSize:18,fontWeight:700,color:"text.primary",sx:{mb:1},children:o.title}),(0,t.jsx)(a.Z,{variant:"caption",sx:{color:"text.secondary",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:2,overflow:"hidden",textOverflow:"ellipsis"},children:o.description})]})]})]},x)})}),(0,t.jsx)(m.Z,{open:B,onClose:function(){C(!1)}})]})}}}]);