PageSourceSearch

https://cobudget.com/_next/static/chunks/764-bda0358674675144.js

js cobudget.com collected 2026-10-09 23:56:23 UTC 9,497 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[764],{55517:function(e,t,n){var a=n(81225),r=n(44168),s=n(67294),i=(n(45697),n(86010)),o=n(40922),l=n(59693),d=s.forwardRef((function(e,t){var n=e.absolute,o=void 0!==n&&n,l=e.classes,d=e.className,u=e.component,c=void 0===u?"hr":u,m=e.flexItem,g=void 0!==m&&m,p=e.light,h=void 0!==p&&p,v=e.orientation,y=void 0===v?"horizontal":v,x=e.role,f=void 0===x?"hr"!==c?"separator":void 0:x,b=e.variant,j=void 0===b?"fullWidth":b,Z=(0,r.Z)(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return s.createElement(c,(0,a.Z)({className:(0,i.Z)(l.root,d,"fullWidth"!==j&&l[j],o&&l.absolute,g&&l.flexItem,h&&l.light,"vertical"===y&&l.vertical),role:f,ref:t},Z))}));t.Z=(0,o.Z)((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:(0,l.Fq)(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(d)},95757:function(e,t,n){var a=n(81225),r=n(44168),s=n(67294),i=(n(45697),n(86010)),o=n(40922),l=n(22318),d=n(66987),u=s.forwardRef((function(e,t){var n=e.children,o=e.classes,u=e.className,c=e.disableTypography,m=void 0!==c&&c,g=e.inset,p=void 0!==g&&g,h=e.primary,v=e.primaryTypographyProps,y=e.secondary,x=e.secondaryTypographyProps,f=(0,r.Z)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),b=s.useContext(d.Z).dense,j=null!=h?h:n;null==j||j.type===l.Z||m||(j=s.createElement(l.Z,(0,a.Z)({variant:b?"body2":"body1",className:o.primary,component:"span",display:"block"},v),j));var Z=y;return null==Z||Z.type===l.Z||m||(Z=s.createElement(l.Z,(0,a.Z)({variant:"body2",className:o.secondary,color:"textSecondary",display:"block"},x),Z)),s.createElement("div",(0,a.Z)({className:(0,i.Z)(o.root,u,b&&o.dense,p&&o.inset,j&&Z&&o.multiline),ref:t},f),j,Z)}));t.Z=(0,o.Z)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(u)},13764:function(e,t,n){n.r(t),n.d(t,{ROUND_QUERY:function(){return A},default:function(){return F}});var a=n(16835),r=n(71383),s=n(35283),i=n(92432),o=n(62822),l=n(50998),d=n(95757),u=n(55517),c=n(27484),m=n.n(c),g=n(96486),p=n(67216),h=n(85893);var v=function(e){var t=e.parts,n=e.totalTitle,a=e.totalAmount;return(0,h.jsxs)("div",{className:"shadow overflow-hidden",children:[t.map((function(e,t){return(0,h.jsxs)("div",{children:[(0,h.jsxs)("div",{className:"p-4 grid grid-cols-funding bg-gray-100 even:bg-white font-medium",children:[(0,h.jsx)("p",{children:e.title}),(0,h.jsx)("p",{children:e.total})]}),e.breakdown.map((function(e,t){return(0,h.jsxs)("div",{className:"p-4 grid grid-cols-funding bg-gray-100 even:bg-white",children:[(0,h.jsx)("p",{children:e.title}),(0,h.jsx)("p",{children:e.amount})]},t)}))]},t)})),(0,h.jsxs)("div",{className:"p-4 grid grid-cols-funding bg-gray-200 font-medium",children:[(0,h.jsx)("p",{children:n}),(0,h.jsx)("p",{children:a})]})]})},y=n(61765),x=n(86896),f=n(44012),b=n(88411);function j(e){e.router;var t,n=e.round,a=(0,x.Z)();return n?(0,h.jsxs)("div",{className:"max-w-screen-md",children:[Boolean(null===n||void 0===n||null===(t=n.guidelines)||void 0===t?void 0:t.length)&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("h2",{className:"text-xl font-semibold mb-3",id:"guidelines",children:(0,h.jsx)(f.Z,{id:"kNTMgq",defaultMessage:[{type:0,value:"Guidelines"}]})}),(0,h.jsx)("div",{className:"shadow rounded-lg bg-white relative mb-6 divide-y-default divide-gray-200",children:(0,g.sortBy)(n.guidelines,(function(e){return e.position})).map((function(e){return(0,h.jsxs)("div",{className:"p-4",children:[(0,h.jsx)("h3",{className:"text-lg font-medium",children:e.title}),(0,h.jsx)(p.Z,{source:e.description})]},e.id)}))})]}),(0,h.jsx)("h2",{className:"text-xl font-semibold mb-3",children:(0,h.jsx)(f.Z,{id:"wLJgOo",defaultMessage:[{type:0,value:"Funding settings"}]})}),(0,h.jsx)("div",{className:"bg-white rounded-lg shadow mb-6",children:(0,h.jsxs)(o.Z,{children:[(0,h.jsx)(l.Z,{children:(0,h.jsx)(d.Z,{primary:a.formatMessage({id:"55hdQy",defaultMessage:[{type:0,value:"Currency"}]}),secondary:n.currency})}),!!n.maxAmountToBucketPerUser&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(u.Z,{}),(0,h.jsx)(l.Z,{children:(0,h.jsx)(d.Z,{primary:a.formatMessage({id:"LwwbmT",defaultMessage:[{type:0,value:"Max. amount to one "}
1,{type:1,value:"bucketName"},{type:0,value:" per user"}]},{bucketName:"bucket"}),secondary:a.formatNumber(n.maxAmountToBucketPerUser/100,{style:"currency",currency:n.currency})})})]}),(0,h.jsx)(u.Z,{}),(0,h.jsx)(l.Z,{children:(0,h.jsx)(d.Z,{primary:a.formatMessage({id:"ruqVKe",defaultMessage:[{type:0,value:"Allow stretch goals"}]}),secondary:n.allowStretchGoals?(0,h.jsx)(f.Z,{id:"a5msuh",defaultMessage:[{type:0,value:"Yes"}]}):(0,h.jsx)(f.Z,{id:"oUWADl",defaultMessage:[{type:0,value:"No"}]})})}),n.bucketCreationCloses&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(u.Z,{}),(0,h.jsx)(l.Z,{children:(0,h.jsx)(d.Z,{primary:a.formatMessage({id:"QiHuNh",defaultMessage:[{type:1,value:"bucketName"},{type:0,value:" creation closes"}]},{bucketName:(0,y.Z)("bucket")}),secondary:m()(n.bucketCreationCloses).format("MMMM D, YYYY - h:mm a")})})]}),n.grantingOpens&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(u.Z,{}),(0,h.jsx)(l.Z,{children:(0,h.jsx)(d.Z,{primary:a.formatMessage({id:"6DPaGY",defaultMessage:[{type:0,value:"Funding opens"}]}),secondary:m()(n.grantingOpens).format("MMMM D, YYYY - h:mm a")})})]}),n.grantingCloses&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(u.Z,{}),(0,h.jsx)(l.Z,{children:(0,h.jsx)(d.Z,{primary:a.formatMessage({id:"NBY6F7",defaultMessage:[{type:0,value:"Funding closes"}]}),secondary:m()(n.grantingCloses).format("MMMM D, YYYY - h:mm a")})})]})]})}),(0,h.jsx)("h2",{className:"text-xl font-semibold mb-3",children:(0,h.jsx)(f.Z,{id:"6xDVtW",defaultMessage:[{type:0,value:"Funding status"}]})}),(0,h.jsx)("div",{className:"bg-white rounded-lg shadow mb-6",children:(0,h.jsx)(v,{parts:[{title:a.formatMessage({id:"4R4A9d",defaultMessage:[{type:0,value:"Allocated funds"}]}),total:(0,h.jsx)(b.Z,{value:n.totalContributions,currency:n.currency}),breakdown:[{title:a.formatMessage({id:"DCx6L9",defaultMessage:[{type:0,value:"Contributions made to "}
1,{type:1,value:"bucketName"},{type:0,value:" open for funding"}]},{bucketName:"bucket"}),amount:(0,h.jsx)(b.Z,{value:n.totalContributionsFunding,currency:n.currency})},{title:a.formatMessage({id:"fbanqe",defaultMessage:[{type:0,value:"Contributions made to funded "},{type:1,value:"bucketName"}]},{bucketName:"buckets"}),amount:(0,h.jsx)(b.Z,{value:n.totalContributionsFunded,currency:n.currency})}]},{title:a.formatMessage({id:"PVFlgB",defaultMessage:[{type:0,value:"Unallocated funds"}]}),total:(0,h.jsx)(b.Z,{value:n.totalInMembersBalances,currency:n.currency}),breakdown:[]}],totalTitle:a.formatMessage({id:"6KDeAe",defaultMessage:[{type:0,value:"Total funds available"}]}),totalAmount:(0,h.jsx)(b.Z,{value:n.totalAllocations,currency:n.currency})})})]}):(0,h.jsx)("div",{children:(0,h.jsx)(f.Z,{id:"gjBiyj",defaultMessage:[{type:0,value:"Loading..."}]})})}var Z,M,N=n(83505),k=n(52634),C=n(9534),w=n(70615),T=n(11163),A=(0,s.Ps)(Z||(Z=(0,r.Z)(["\n  query RoundQuery($groupSlug: String!, $roundSlug: String!) {\n    round(groupSlug: $groupSlug, roundSlug: $roundSlug) {\n      id\n      about\n      guidelines {\n        id\n        title\n        description\n        position\n      }\n      maxAmountToBucketPerUser\n      allowStretchGoals\n      bucketCreationCloses\n      grantingOpens\n      grantingCloses\n      color\n      currency\n      totalContributions\n      totalAllocations\n      totalInMembersBalances\n      totalContributionsFunding\n      totalContributionsFunded\n      membersLimit {\n        consumedPercentage\n        currentCount\n        limit\n      }\n    }\n  }\n"])));function F(e){var t,n,o=e.currentUser,l=(0,T.useRouter)(),d=(0,i.aM)({query:A,variables:{groupSlug:l.query.group,roundSlug:l.query.round}}),u=(0,a.Z)(d,1)[0],c=u.data,m=(c=void 0===c?{round:null}:c).round,g=(u.fetching,u.error,(null===m||void 0===m?void 0:m.membersLimit.currentCount)>=(null===m||void 0===m?void 0:m.membersLimit.limit));return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(N.Z,{currentUser:o,round:m}),(0,h.jsx)(k.Z,{children:(0,h.jsx)("div",{className:"grid gap-6 grid-cols-1 sm:grid-cols-3",children:(0,h.jsx)("div",{className:"col-span-2",children:m?(0,h.jsx)(C.Z,{defaultValue:m.about,label:"Add about text",placeholder:"# About ".concat(m.title),canEdit:!g&&((null===o||void 0===o||null===(t=o.currentGroupMember)||void 0===t?void 0:t.isAdmin)||(null===o||void 0===o||null===(n=o.currentCollMember)||void 0===n?void 0:n.isAdmin)),name:"about",className:"h-10",MUTATION:(0,s.Ps)(M||(M=(0,r.Z)(["\n                  mutation EditRoundAbout($roundId: ID!, $about: String) {\n                    editRound(roundId: $roundId, about: $about) {\n                      id\n                      about\n                    }\n                  }\n                "]))),variables:{roundId:m.id}}):(0,h.jsx)(w.D,{})})})}),(0,h.jsx)("div",{className:"page",children:(0,h.jsx)(j,{router:l,round:m})})]})}}}]);

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.