PageSourceSearch

https://www.causes.com/_next/static/chunks/332-7e17b96607f3b644.js

js causes.com collected 2026-10-01 08:59:14 UTC 11,447 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[332],{20580:(e,t,n)=>{n.d(t,{A:()=>u});var i=n(27925),r=n(14232),o=n(12524),a=n(79762),s=n(29562),d=n(97304),l=n(41842),c=n(39548),p=n(37876);let u=function(e){var t=e.label,n=e.options,u=e.selection,x=e.setSelection,g=e.noSelectionText,h=e.viewOptions,m=void 0===h?[]:h,A=e.viewSelection,f=e.setViewSelection;function y(e,t,n){return{fontWeight:t.includes(e)?n.typography.fontWeightMedium:n.typography.fontWeightRegular}}var j=(0,c.A)(),v=r.useState([u,void 0===A?"none":A]),b=(0,i.A)(v,2),w=b[0],H=b[1],C=function(e){var t=e[0];return"".concat("Largest"===t?"Largest":"Most Recent"===t?"Recent":"Alphabetical"===t?"Alpha":t," / ").concat(e[1])};return(0,p.jsx)(o.A,{sx:{minWidth:120},children:(0,p.jsxs)(a.A,{fullWidth:!0,size:"small",children:[(0,p.jsx)(s.A,{id:"multiple-option-label",children:t}),(0,p.jsxs)(l.A,{labelId:"multiple-option-label",id:"multiple-option",label:t,multiple:!0,value:w,renderValue:function(e){return f?C(e):e[0]},onChange:function(e){var t,i=e.target.value,r="string"==typeof i?i.split(","):i,o=w.filter(function(e){return n.includes(e)})[0],a=f?w.filter(function(e){return m.includes(e)})[0]:"none",s=r.filter(function(e){return e!==o&&e!==a})[0];s&&(n.includes(s)?(t=[s,a],x(s)):(t=[o,s],f&&f(s)),H(t))},autoWidth:!0,children:[g&&(0,p.jsx)(d.A,{value:g,children:(0,p.jsx)("em",{children:g})}),n.map(function(e){return(0,p.jsx)(d.A,{value:e,style:y(e,w,j),children:e},e)}),f&&(0,p.jsx)(d.A,{divider:!0}),m.map(function(e){return(0,p.jsx)(d.A,{value:e,style:y(e,w,j),children:e},e)})]})]})})}},33493:(e,t,n)=>{n.d(t,{A:()=>f}),n(14232);var i=n(42118),r=n(44254),o=n(14780),a=n(69813),s=n(38037),d=n(52189),l=n(48230),c=n.n(l),p=n(89099),u=n(31866),x=n(44128),g=n(57683),h=n(96709),m=(0,g.Ay)(h.A)({textAlign:"center",".closeIcon":{position:"absolute",right:"2px",top:"2px"},".adoptDialogTitle":{fontWeight:700,fontSize:"32px",lineHeight:"120%"},".adoptDialogActions":{padding:"20px",justifyContent:"center"},".buttonMargin":{margin:"0px 10px 0px 10px"}}),A=n(37876);let f=function(e){var t=e.adoptGridDialogOpen,n=e.setAdoptGridDialogOpen,l=e.gridId,g=e.gridHistory,h=void 0!==g&&g,f=(0,p.useRouter)(),y=h?"Replace the current ".concat(u.KM):"Adopt this ".concat(u.KM," as your own"),j=h?"Continue to the editor, where you can make\n        changes before you save it or cancel adoption. You can still access your old ".concat(u.KM," by visiting your\n        history."):"By adopting this ".concat(u.KM,", you are saving it as your own. Continue to the editor, where you can make\n        changes before you save it as a new ").concat(u.KM," or cancel adoption.");return(0,A.jsxs)(m,{open:t,onClose:function(){return n(!1)},children:[(0,A.jsx)(r.A,{className:"closeIcon",onClick:function(){return n(!1)},children:(0,A.jsx)(i.A,{})}),(0,A.jsx)(o.A,{className:"adoptDialogTitle",children:y}),(0,A.jsx)(a.A,{children:j}),(0,A.jsx)(s.A,{className:"adoptDialogActions",children:(0,A.jsx)(c(),{href:"".concat(f.basePath,"/").concat(x.m7,"?edit=true&adoptGrid=").concat(l),children:(0,A.jsx)(d.A,{className:"buttonMargin",color:"inherit",variant:"contained",children:"Continue"})})})]})}},46185:(e,t,n)=>{n.d(t,{A:()=>g}),n(14232);var i=n(39548),r=n(34711),o=n(12524),a=n(79762),s=n(29562),d=n(97304),l=n(41842),c=n(31866),p=n(42969),u=(0,n(57683).Ay)(o.A)(function(e){var t=e.theme;return{".switchGridMenu":{minWidth:"150px",maxWidth:"300px",margin:"30px auto 10px",label:{paddingRight:"5px",background:"white"}},".gapAbove5":{marginTop:"5px"},".gapBelow30":{marginBottom:"30px"},".positionRight":(0,p.A)({position:"fixed",top:"70px",right:"40px",width:"110px",minWidth:"110px"},t.breakpoints.down("md"),{position:"relative",top:"0",right:"0",width:"unset",minWidth:"150px",maxWidth:"300px"})}}),x=n(37876);let g=function(e){var t=e.userGridNames,n=e.currentGridIndex,p=e.includeCreateNew,g=e.isOwner,h=e.handleChange,m=e.positionRight,A=void 0!==m&&m,f=e.gapAbove,y=e.gapBelow,j=e.showGridNames,v=void 0===j?[]:j,b=(0,i.A)(),w=(0,r.A)(b.breakpoints.down("md")),H=t.length,C=function(e){var n=A&&!w?"".concat(e+1," of ").concat(H):0===v.length||v[e]?t[e]:"Private ".concat(c.KM);return 0===v.length||v[e]?n:"(".concat(n,")")};return(0,x.jsx)(u,{children:(0,x.jsx)(o.A,{className:"switchGridMenu".concat("small"===f?" gapAbove5":"").concat("medium"===y?" gapBelow30":"").concat(A?" positionRight":""),children:(0,x.jsxs)(a.A,{fullWidth:!0,children:[(0,x.jsxs)(s.A,{id:"demo-simple-select-label",children:[void 0===g||g?"Your ":"",c.KM,"s"]}),(0,x.jsxs)(l.A,{labelId:"grid-index-select-label",id:"grid-index-select",value:H>0?n.toString():"",label:"Grid",onChange:h,renderValue:function(e){return C(+e)},children:[t.map(function(e,t){return(0,x.jsx)(d.A,{value:t,children:C(t)},t)}
1),void 0!==p&&p&&(0,x.jsx)(d.A,{value:-1,children:(0,x.jsx)("i",{children:"Create New"})},-1)]})]})})})}},47918:(e,t,n)=>{n.d(t,{A:()=>x});var i=n(63857),r=n(43081),o=n.n(r),a=n(14232),s=n(39548),d=n(34711),l=n(57683),c=n(30609),p=(0,l.Ay)(c.A)(function(e){var t=e.theme;return{display:"flex",justifyContent:"center",".MuiPaginationItem-root":{color:t.palette.primary.main,borderColor:t.palette.primary.main}}}),u=n(37876);let x=function(e){var t=e.nextToken,n=e.totalResults,r=e.resultsPerPage,l=e.setLoading,c=e.queryCallback,x=e.setTotalResults,g=e.setNextToken,h=e.setCurrPageResults,m=e.paginationTopRef,A=e.userID,f=e.sortTriggered,y=e.setSortTriggered,j=void 0===y?function(){}:y,v=(0,s.A)(),b=(0,d.A)(v.breakpoints.down("md")),w=f&&!t,H=(0,a.useState)(1),C=H[0],k=H[1],N=(0,a.useState)(1),I=N[0],M=N[1],S=(0,a.useState)(0),D=S[0],z=S[1];return(0,a.useEffect)(function(){if(A||void 0===A){var e,a;(e=(0,i.A)(o().mark(function e(){var i,a,s,d,p;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t&&C===D||!n.length||w)){e.next=15;break}return l(!0),e.next=4,c();case 4:return a=(i=e.sent).results,d=Math.ceil((s=w?a:n.concat(i.results)).length/r),p=w?d:D+d,x(s),g(i.nextToken),z(p),w&&k(1),e.abrupt("return",s);case 15:return e.abrupt("return",n);case 16:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})().then(function(e){h(e.slice((C-1)*r,C*r)),M(Math.ceil(e.length/r)),l(!1),j(!1)}),n.length>0&&(null==(a=m.current)||a.scrollIntoView())}},[C,A,f]),n.length>r?(0,u.jsx)(p,{page:C,count:I,onChange:function(e,t){e.preventDefault(),k(t)},color:"primary",variant:"outlined",shape:"rounded",size:b?"small":"medium"}):(0,u.jsx)(u.Fragment,{})}},79148:(e,t,n)=>{n.d(t,{A:()=>N});var i=n(14232),r=n(82893),o=n(37876);let a=(0,r.A)((0,o.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack");var s=n(81490),d=n(52189),l=n(65484),c=n(3412),p=n(48230),u=n.n(p),x=n(96743),g=n(68572),h=n(31866),m=n(60696),A=n(33493),f=n(42969),y=n(57683),j=(0,y.Ay)("div")(function(e){var t=e.theme;return(0,f.A)((0,f.A)((0,f.A)((0,f.A)((0,f.A)((0,f.A)((0,f.A)({},t.breakpoints.up("xs"),{padding:"10px 10px 10px 10px",width:320}),".root",{display:"flex",alignItems:"center",backgroundColor:"#fff",height:"auto",width:"100%",padding:"10px 0px 0px 0px"}),".gridHistoryImage",{height:300,width:300}),".gridHistoryName",{fontSize:"1rem",fontWeight:900,color:t.palette.primary.main,margin:"0px 0px 5px 10px"}),".gridHistoryDate",(0,f.A)({color:t.palette.grey[600],fontSize:".9rem",fontWeight:700,margin:"0px 0px 5px 10px"},t.breakpoints.down("sm"),{})),".featuredCardHeader",{padding:"10px 10px 10px 10px"}),".viewFeaturedGridButton",{padding:"20px 20px 20px 20px"})});let v=function(e){var t=e.gridHistoryItemName,n=e.gridHistoryItemDate,r=e.gridHistoryItemImage,a=e.gridID,c=(0,i.useState)(!1),p=c[0],u=c[1];return(0,o.jsxs)(j,{children:[(0,o.jsx)(x.A,{className:"root",raised:!0,children:(0,o.jsxs)(s.A,{container:!0,alignItems:"center",children:[(0,o.jsxs)(s.A,{container:!0,direction:"column",size:12,children:[(0,o.jsx)(s.A,{children:(0,o.jsx)(l.A,{className:"gridHistoryName",children:t})}),(0,o.jsx)(s.A,{children:(0,o.jsx)(l.A,{className:"gridHistoryDate",children:(0,m.nK)(n)})})]}),(0,o.jsx)(s.A,{size:12,children:(0,o.jsx)("img",{id:"gridImg",src:r,alt:"Portfolio",className:"gridHistoryImage"})}),(0,o.jsx)(s.A,{size:12,className:"viewFeaturedGridButton",children:(0,o.jsx)(g.A,{title:"Set this as your current ".concat(h.KM),children:(0,o.jsx)(d.A,{variant:"outlined",color:"primary",onClick:function(){u(!0)},children:"Make Current"})})})]})}),(0,o.jsx)(A.A,{adoptGridDialogOpen:p,setAdoptGridDialogOpen:u,gridId:a,gridHistory:!0})]})};var b=n(69592),w=n(99447),H=n(44128),C=(0,y.Ay)(s.A)(function(e){var t=e.theme;return(0,f.A)((0,f.A)((0,f.A)((0,f.A)((0,f.A)((0,f.A)((0,f.A)((0,f.A)({padding:"50px 0px 0px 0px"},t.breakpoints.down("sm"),{padding:"25px 1px 0px 1px"}),".gridHistoryPageHeaderContainer",{display:"flex",justifyContent:"space-between",alignItems:"end",padding:"0px 0px 25px 0px"}),".gridHistoryPageHeader",(0,f.A)({fontSize:"1.5rem",fontWeight:900},t.breakpoints.down("sm"),{fontSize:"1.2rem"})),".selectDropDown",{width:"150px"}),".backToMyButton",(0,f.A)({fontSize:"1.1rem",textTransform:"none",color:"black"},t.breakpoints.down("sm"),{fontSize:"1rem"})),".gridHistoryComponent",{padding:"25px 0px 0px 0px",display:"flex",justifyContent:"space-evenly"}),".gridHistoryCardContainer",{display:"flex",justifyContent:"center",minWidth:320,padding:"0px 10px 0px 10px"}),".gridHistoryPaginationContainer",{display:"flex",justifyContent:"center",padding:"50px 0px 0px 0px"})}),k=n(20580);let N=function(e){var t=e.gridHistoryData,n=e.userID,i=e.sortBy,r=e.setSortBy,p=e.sortOptions,x=e.currentGridIndex,g=(0,w.A)(),m=function(){return(0,o.jsx)("div",{className:"selectDropDown",children:(0,o.jsx)(k.A,{label:"Sort By",options:p,selection:i,setSelection:r})})};return(0,o.jsxs)(C,{children:[["xxs","xs","sm"].includes(g)?(0,o.jsxs)(s.A,{container:!0,children:[(0,o.jsx)(s.A,{size:{xs:12},children:(0,o.jsx)(d.A,{variant:"text",className:"backToMyButton",startIcon:(0,o.jsx)(a,{}),children:(0,o.jsx)(u(),{href:"/".concat(H.m7,"?index=").concat(x),children:(0,o.jsx)("span",{children:"Back"})})})}),(0,o.jsxs)(s.A,{size:{xs:12},className:"gridHistoryPageHeaderContainer",children:[(0,o.jsxs)(l.A,{className:"gridHistoryPageHeader",children:[h.KM," History"]}),m()]})]}):(0,o.jsxs)(s.A,{size:{xs:12},className:"gridHistoryPageHeaderContainer",children:[(0,o.jsx)(u(),{href:"/".concat(H.m7,"?index=").concat(x),children:(0,o.jsx)(d.A,{variant:"text",className:"backToMyButton",startIcon:(0,o.jsx)(a,{}),children:(0,o.jsxs)("span",{children:[" Back to My ",h.KM]})})}),(0,o.jsxs)(l.A,{className:"gridHistoryPageHeader",children:[h.KM," History"]}),m()]}),(0,o.jsx)(c.A,{}),(0,o.jsx)(s.A,{container:!0,size:{xs:12},className:"gridHistoryComponent",children:t?t.map(function(e,i){return(0,o.jsx)(s.A,{size:{xs:12,sm:6,md:4},className:"gridHistoryCardContainer",children:(0,o.jsx)(v,{gridID:e.id,gridHistoryItemName:e.gridName||"Grid #".concat(t.length-i),gridHistoryItemDate:e.createdAt,gridHistoryItemImage:(0,b.S7)(n,e.id)})},e.id)}):(0,o.jsx)(l.A,{children:"No Grid History to show... "})})]})}}
1,92312:(e,t,n)=>{n.d(t,{A:()=>s}),n(14232);var i=n(96160),r=(0,n(57683).Ay)("div")({position:"relative",".loadingBackdrop":{backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:2,position:"absolute"}}),o=n(12619),a=n(37876);let s=function(e){var t=e.resultsLoading,n=e.children;return(0,a.jsxs)(r,{children:[(0,a.jsx)(i.A,{open:t,className:"loadingBackdrop",children:(0,a.jsx)(o.A,{withWedge:!1})}),n]})}}}]);

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.