1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1535],{10044:(t,e,r)=>{r.d(e,{A:()=>j});var i=r(14232),n=r(99809),o=r(23215),a=r(63857),s=r(27925),d=r(43081),l=r.n(d),c=r(70186),h=r.n(c),u=r(94555),g=r(65517),x=r(45793),f=r(76554),m=r(37876);function v(t){var e=t.child,r=t.handleDrag,d=(t.setOrgText,t.setOrgPercent,t.gridContainerRef),c=t.index,v=(t.explanation,t.gridItems,t.donationPercentage,t.showIconGap),p=void 0!==v&&v;(0,u.S)().userGridInfo;var j=(0,i.useRef)(null),A=(0,g.L)(d),S=(0,i.useState)(),w=S[0],y=S[1],b=(0,i.useState)(!1),C=b[0];b[1];var I=function(t){return(1>=Math.abs(t)?t:t/500)*A},z={x:I(e.controlledPosition.x),y:I(e.controlledPosition.y)},N=(0,i.useMemo)(function(){return{width:e.width,height:e.height,x:e.x,y:e.y}},[e]),P=i.useState(null),O=(0,s.A)(P,2);O[0],O[1];var k=i.useRef(null),M=i.useState(!1),W=(0,s.A)(M,2);if(W[0],W[1],(0,i.useEffect)(function(){var t,r=!0;return(t=(0,a.A)(l().mark(function t(){var i,o,a,s;return l().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,n.vv)(e.src,N,!p,e.organization);case 2:o=(i=t.sent).favorWidth,a=i.imgSize,s=i.imgSrc,r&&y({favorWidth:o,imgSize:a,imgSrc:s});case 7:case"end":return t.stop()}},t)})),function(){return t.apply(this,arguments)})(),function(){r=!1}},[e,N]),!w||w.imgSize.width<=0||w.imgSize.height<=0)return(0,m.jsx)(m.Fragment,{});var R=C?f.A.palette.secondary.main:x.HN,B=(0,n.Ot)(w.favorWidth,w.imgSize,N);return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(o.EX,{children:(0,m.jsx)("div",{style:{width:N.width,height:N.height,top:N.y,left:N.x,cursor:"pointer",borderColor:R,borderRadius:(0,o.Rf)(e,p?o.$X:o.UT)},className:p?"gridChildContainer2":"gridChildContainerIcon",onFocus:function(){},onBlur:function(){},ref:0===c?k:null,children:(0,m.jsx)(h(),{nodeRef:j,position:z,defaultPosition:{x:0,y:0},onDrag:function(t,i){return r(t,i,e.organizationId,A)},disabled:!0,bounds:{top:w.favorWidth?B:0,left:w.favorWidth?0:B,right:0,bottom:0},children:(0,m.jsx)("img",{style:{cursor:"pointer",backgroundColor:x.X1},ref:j,draggable:!1,role:"presentation",src:(null==w?void 0:w.imgSrc)||"",alt:e.organization,height:w.favorWidth?"auto":"100%",width:w.favorWidth?"100%":"auto"})})})})})}v.defaultProps={index:void 0,explanation:{},gridItems:[],donationPercentage:"",showIconGap:!1};var p=r(40540);let j=(0,i.memo)(function(t){var e=t.currGridObj,r=t.setCurrGridObj,a=t.height,s=t.width,d=t.aspectRatio,l=t.allocationValid,c=void 0===l?{validAllocationAmount:!0,validVisibleOrgAmount:!0}:l,h=t.explanation,u=void 0===h?{}:h,g=t.showIconGap,x=void 0!==g&&g,f=t.vis,j=void 0===f?"normal":f,A=(0,i.useState)(""),S=(A[0],A[1]),w=(0,i.useState)(""),y=(w[0],w[1]);e.sort(function(t,e){return t.gridIndex-e.gridIndex});var b=function(t,i,n,o){for(var a=[],s=0;s<e.length;s++){var d=e[s];d.organizationId===n&&(d.controlledPosition={x:i.x/o,y:i.y/o}),a.push(d)}r(a)},C=e.reduce(function(t,e){return t+ +e.size},0),I={children:e,height:a,width:s,x:0,y:0,size:C},z=(0,i.useMemo)(function(){return"alt"===j?(0,n.O1)(d,I,!x):(0,n.Bd)(d,I,!x)},[I]),N=(0,i.useRef)(null);return(0,m.jsx)(o.eH,{children:(0,m.jsx)("div",{className:x?"pageContainer2":"pageContainerIcon",children:(0,m.jsxs)("div",{id:"my-gravvy-grid",className:"gridContainer",style:{width:s,height:a,top:0,left:0,boxShadow:"none",borderRadius:x?o.$X:o.UT},ref:N,children:[c.validAllocationAmount&&c.validVisibleOrgAmount?(0,m.jsx)(m.Fragment,{}):(0,m.jsx)(p.A,{allocationValid:c}),z.children&&z.children.map(function(t,r){return(0,m.jsx)("div",{children:(0,m.jsx)(v,{child:t,handleDrag:b,setOrgText:S,setOrgPercent:y,gridContainerRef:N,index:r,explanation:u,gridItems:e,donationPercentage:t.donationPercentage,showIconGap:x})},t.organizationId)})]})})})})},41535:(t,e,r)=>{r.d(e,{A:()=>b});var i=r(14232),n=r(39548),o=r(48848),a=r(20852),s=r(28778),d=r(55105),l=r(52189),c=r(48230),h=r.n(c),u=r(10044),g=r(40169),x=r(31866),f=r(69592),m=r(44128),v=r(57683),p=r(96743),j=(0,v.Ay)(p.A)(function(t){return{cursor:"pointer",".gridCardLink":{textDecoration:"none"},".gridCardMedia":{height:"337px"},".learnMoreButton":{margin:"auto",color:t.theme.palette.common.black},".learnMoreButtonOutlined":{width:"100%",padding:"1px"},".gridDescription":{margin:"15px 10px 0",fontSize:"14px",color:"#000000",height:"90px",overflow:"scroll"},".gridSummary":{margin:"15px 10px 0",fontSize:"14px",color:"#000000",height:"40px",overflow:"scroll"},".gridIcon":{marginTop:"0",display:"inline-block",verticalAlign:"top",cursor:"pointer"},".fontSizeSmall":{fontSize:"0.875rem"}}}),A=(0,v.Ay)("div")(function(){return{}});let S={src:"/_next/static/media/gravvyAvatar.310b4df9.png"};var w=r(12619),y=r(37876);let b=function(t){var e=t.gridName,r=t.gridID,c=t.ownerID,v=t.description,p=t.additionalInfo,b=t.link,C=t.target,I=t.grid,z=t.height,N=void 0===z?313:z,P=t.width,O=void 0===P?313:P,k=t.marginLeft,M=t.actionButtonText,W
1=void 0===M?"Learn More":M,R=t.actionButtonVariant,B=void 0===R?"text":R,G=t.fontSizeSmaller,L=void 0!==G&&G,T=t.vis,D=(0,n.A)(),F=(0,i.useState)(!1),V=F[0],_=F[1];if(C){var E=O+24;return(0,y.jsxs)(j,{sx:{width:"".concat(E,"px")},children:[(0,y.jsx)(g.A,{href:b||"".concat(m.rW,"/").concat(r),target:C,content:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(o.A,{avatar:(0,y.jsx)(a.A,{src:S.src,alt:"Profile Picture"}),title:e,titleTypographyProps:{fontWeight:700,color:D.palette.primary.main,textAlign:"left",height:"55px",fontSize:L?"0.875rem":"1.1rem",overflow:"scroll"}}),I?(0,y.jsx)("div",{className:"gridIcon",children:I?(0,y.jsx)(A,{sx:{marginLeft:{marginLeft:void 0===k?"auto":k}},children:(0,y.jsx)(u.A,{currGridObj:I.gridInfo,setCurrGridObj:function(){},height:N,width:O,aspectRatio:1,showIconGap:!0,vis:void 0===T?"normal":T})}):(0,y.jsx)(w.A,{})}):(0,y.jsx)(s.A,{className:"gridCardMedia",image:(0,f.S7)(c,r)})]}),className:"gridCardLink"}),(0,y.jsx)("div",{className:"gridDescription".concat(L?" fontSizeSmall":""),onClick:function(){return _(!V)},children:function(t,e){if(t||(t="This ".concat(x.KM.toLowerCase()," has no description yet.")),e||t.length<100)return t;var r=t.substring(0,100),i=r.lastIndexOf(" ");return -1!==i&&i<t.length&&(r="".concat(r.substring(0,i)," â¦")),r}(v,V)}),p&&(0,y.jsx)("div",{className:"gridSummary".concat(L?" fontSizeSmall":""),children:p}),(0,y.jsx)(g.A,{href:b||"".concat(m.rW,"/").concat(r),target:C,content:(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(d.A,{children:"text"===B?(0,y.jsx)(l.A,{className:"learnMoreButton",children:W}):(0,y.jsx)(l.A,{className:"learnMoreButton learnMoreButtonOutlined",variant:B,children:W})})}),className:"gridCardLink"})]})}return(0,y.jsx)(h(),{href:"".concat(m.rW,"/").concat(r),children:(0,y.jsxs)(j,{className:"gridCard",children:[(0,y.jsx)(o.A,{avatar:(0,y.jsx)(a.A,{src:S.src,alt:"Profile Picture"}),title:e,titleTypographyProps:{fontWeight:700,color:D.palette.primary.main,textAlign:"left"}}),(0,y.jsx)(s.A,{sx:{height:N,width:O},image:(0,f.S7)(c,r)}),(0,y.jsx)(d.A,{children:(0,y.jsx)(l.A,{className:"learnMoreButton",children:W})})]})})}}}]);
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.