1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];if(null!=i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:opencollective-frontend":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4f3d3cd0-126f-4d19-8f89-57c76b31282b",e._sentryDebugIdIdentifier="sentry-dbid-4f3d3cd0-126f-4d19-8f89-57c76b31282b")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[18],{3812:(e,t,i)=>{i.d(t,{Ap:()=>d,Ay:()=>h,Ne:()=>a,UI:()=>s,XL:()=>c});var r=i(37876);i(14232);var n=i(62449),o=i(43682);let s={ALL:"ALL",CORE:"CORE",FINANCIAL:"FINANCIAL"},a=Object.values(s),l=(0,n.YK)({[s.ALL]:{id:"ContributorsFilter.All",defaultMessage:"All contributors"},[s.CORE]:{id:"Team",defaultMessage:"Team"},[s.FINANCIAL]:{id:"ContributorsFilter.Financial",defaultMessage:"Financial contributors"}}),d=e=>{let t=new Set([s.ALL]),i=e=>(t.add(e),t.size===a.length);for(let t of e)if(t.isCore||t.isAdmin){if(i(s.CORE))break}else if(t.isBacker&&i(s.FINANCIAL))break;return Array.from(t).sort((e,t)=>a.indexOf(e)>a.indexOf(t)?1:-1)},c=(e,t)=>e?t===s.FINANCIAL?e.filter(e=>e.isBacker):t===s.CORE?e.filter(e=>e.isCore||e.isAdmin):e:[],h=({selected:e,onChange:t,filters:i=a,...d})=>{let c=(0,n.tz)();return(0,r.jsx)(o.A,{filters:i,getLabel:e=>c.formatMessage(l[e]),onChange:t,selected:e||s.ALL,multiSelect:!1,...d})}},4281:(e,t,i)=>{i.d(t,{A:()=>c});var r=i(37876);i(14232);var n=i(45884),o=i(61184),s=i(8545),a=i(47537),l=i(69020);let d=({children:e,data:t={},description:i,image:l,loadingLoggedInUser:d,LoggedInUser:c,title:h,metaTitle:u,noRobots:p,twitterHandle:g,showSearch:m=!0,canonicalURL:f,collective:b,showMenuItems:x=!0,withTopBar:A=!0,showFooter:v=!0,showProfileAndChangelogMenu:C=!0,loading:y,updatesRss:I})=>t.error?(0,r.jsx)(s.A,{data:t,LoggedInUser:c}):(0,r.jsxs)("div",{className:"flex min-h-screen flex-col",children:[(0,r.jsx)(a.A,{showSearch:m,title:h,noRobots:p,twitterHandle:g,description:i,image:l,metaTitle:u,canonicalURL:f,collective:b,showMenuItems:x,LoggedInUser:c,showProfileAndChangelogMenu:C,loading:y,withTopBar:A,updatesRss:I}),(0,r.jsx)(o.A,{className:"flex-1",children:"function"==typeof e?e({LoggedInUser:c,loadingLoggedInUser:d}):e}),v&&(0,r.jsx)(n.A,{})]});d.displayName="Page";let c=(0,l.Cb)(d)},12930:(e,t,i)=>{i.d(t,{A:()=>$});var r=i(37876),n=i(14232),o=i(40125),s=i(62449),a=i(5646),l=i(19176),d=i(51669),c=i(48519),h=i(30619),u=i(40056),p=i(93523),g=i(98477),m=i(17771),f=i(2948),b=i(11046),x=i(35027),A=i(86937),v=i(13881),C=i(81899),y=i(99202),I=i(68901),w=i(90983),M=i(51020),j=i(72945);let E=a.I4.div.withConfig({componentId:"sc-50a4f150-0"})(["position:absolute;padding:8px;border:1px solid #f3f3f3;border-radius:8px;background:white;box-shadow:0px 4px 8px rgba(20,20,20,0.16);animation:"," 0.3s ease-in-out;z-index:1;width:275px;"],M.qG),D=(0,a.I4)("div").withConfig({componentId:"sc-50a4f150-1"})(["position:absolute;width:3em;height:3em;&[data-placement*='bottom']{top:0;left:0;margin-top:-0.9em;width:3em;height:1em;&::before{border-width:0 1.5em 1em 1.5em;border-color:transparent transparent #ffffff transparent;filter:drop-shadow(0px -3px 3px rgba(20,20,20,0.1));}}&[data-placement*='top']{bottom:0;left:0;margin-bottom:-0.9em;width:3em;height:1em;&::before{border-width:1em 1.5em 0 1.5em;border-color:#ffffff transparent transparent transparent;filter:drop-shadow(0px 3px 3px rgba(20,20,20,0.1));}}&[data-placement*='right']{left:0;margin-left:-0.9em;height:3em;width:1em;&::before{border-width:1.5em 1em 1.5em 0;border-color:transparent #ffffff transparent transparent;filter:drop-shadow(-4px 3px 3px rgba(20,20,20,0.1));}}&[data-placement*='left']{right:0;margin-right:-0.9em;height:3em;width:1em;&::before{border-width:1.5em 0 1.5em 1em;border-color:transparent transparent transparent #ffffff;filter:drop-shadow(4px 3px 3px rgba(20,20,20,0.1));}}&::before{content:'';margin:auto;display:block;width:0;height:0;border-style:solid;}"]),L=(0,b.ou)` 2 mutation EditPublicMessage($fromCollectiveId: Int!, $collectiveId: Int!, $message: String) { 3 editPublicMessage(FromCollectiveId: $fromCollectiveId, CollectiveId: $collectiveId, message: $message) { 4 id 5 publicMessage 6 tier { 7 id 8 } 9 collective { 10 id 11 slug 12 } 13 } 14 } 15`,P=(0,s.YK)({publicMessagePlaceholder:{id:"contribute.publicMessage.placeholder",defaultMessage:"Motivate others to contribute in 140 characters :) ..."}}),S=[{name:"flip",options:{fallbackPlacements:["right","bottom","top"],padding:{right:100}}}],R=(0,x.Ay)(function({width:e,fromCollectiveId:t,collectiveId:i,cardRef:o,onClose:a,message:l="",intl:d}
15){let[c,h]=(0,n.useState)(l||"");return o.current?(0,g.createPortal)((0,r.jsx)(u.s,{mutation:L,context:b.$V,children:(n,{loading:l,error:u})=>(0,r.jsx)(m.N,{referenceElement:o.current,placement:e<780?"bottom":"right",modifiers:S,children:({ref:e,style:o,placement:g,arrowProps:m})=>(0,r.jsxs)(E,{"data-cy":"EditPublicMessagePopup",ref:e,style:o,"data-placement":g,children:[(0,r.jsx)(y.so,{justifyContent:"flex-end",children:(0,r.jsx)(p.F,{size:"1em",color:"#a2a2a2",cursor:"pointer",onClick:a})}),(0,r.jsxs)(y.so,{flexDirection:"column",p:2,children:[(0,r.jsx)(j.L9,{fontSize:"14px",color:"black.600",mb:2,children:(0,r.jsx)(s.sA,{id:"contribute.publicMessage",defaultMessage:"Leave a public message (optional)"})}),(0,r.jsx)(w.A,{name:"publicMessage",as:"textarea",px:10,py:10,width:"100%",height:112,fontSize:"14px",style:{resize:"none"},placeholder:d.formatMessage(P.publicMessagePlaceholder),value:c,maxLength:140,onChange:e=>h(e.target.value),disabled:l}),u&&(0,r.jsx)(j.L9,{color:"red.500",fontSize:"12px",mt:2,children:(0,f.NR)(d,(0,f.P1)(u))}),(0,r.jsx)(y.az,{m:"0 auto",children:(0,r.jsx)(I.A,{"data-cy":"EditPublicMessagePopup_SubmitButton",buttonSize:"small",fontWeight:"bold",px:4,mt:3,loading:l,onClick:async()=>{await n({variables:{fromCollectiveId:t,collectiveId:i,message:c?c.trim():null},refetchQueries({data:{editPublicMessage:e}}){let[t]=e,i=t.collective.slug,r=t.tier,n=[{query:A.E,context:b.$V,variables:{slug:i,nbContributorsPerContributeCard:C.Pj}}];return r&&n.push({query:v.k,context:b.$V,variables:{tierId:r.id}}),n}}),a()},children:(0,r.jsx)(s.sA,{id:"submit",defaultMessage:"Submit"})})})]}),(0,r.jsx)(D,{...m,"data-placement":g})]})})}),document.body):null},{withWidth:!0});var N=i(2996),T=i(99245),k=i(62939),F=i(74143);let O=(0,a.Ay)(k.A).withConfig({componentId:"sc-d82cae7-0"})(["a{display:block;text-decoration:none;&:hover{opacity:0.9;}}"]),U=a.Ay.div.withConfig({componentId:"sc-d82cae7-1"})(["display:flex;justify-content:center;margin-top:44px;border-top:1px solid #e6e8eb;"]),B=(0,a.AH)(["margin:4px 0px;font-size:12px;line-height:16px;color:#4e5052;text-align:center;word-break:break-word;"]),K=a.Ay.q.withConfig({componentId:"sc-d82cae7-2"})(["display:block;",""],B),z=a.Ay.button.withConfig({componentId:"sc-d82cae7-3"})([""," appearance:none;border:none;cursor:pointer;outline:0;background:transparent;"],B),W=(0,a.Ay)(F.A).withConfig({componentId:"sc-d82cae7-4"})(["margin-bottom:8px;padding:5px;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:12px;"]),$=n.memo((0,c.A)(({intl:e,width:t=144,height:i=272,contributor:a,currency:c="USD",isLoggedUser:u,collectiveId:p,hideTotalAmountDonated:g=!1,...m})=>{var f;let{collectiveId:b,publicMessage:x,description:A}=a,v=x&&(0,o.A)(x,{length:50}),C=A&&(0,o.A)(A,{length:30}),[I,w]=(0,n.useState)(!1),M=(0,n.useRef)(void 0);return(0,r.jsxs)(O,{width:t,height:i,...m,ref:M,children:[(0,r.jsx)(U,{children:(0,r.jsx)(y.az,{mt:-32,children:(0,r.jsx)(T.A,{contributor:a,children:(0,r.jsx)(h.bi,{contributor:a,radius:64})})})}),(0,r.jsxs)(y.so,{flexDirection:"column",alignItems:"center",p:2,pt:2,children:[(0,r.jsx)(T.A,{contributor:a,children:(0,r.jsx)(j.P,{color:"black.900",fontSize:"14px",fontWeight:"500",textAlign:"center",lineHeight:"18px",title:a.name,children:(0,o.A)(a.name,{length:16})})}),(0,r.jsxs)(y.az,{mt:2,children:[a.isAdmin||a.isCore?(0,r.jsx)(W,{children:(0,d.A)(e,(f=a).isAdmin?l.A.ADMIN:f.isCore?l.A.MEMBER:f.isBacker&&f.totalAmountDonated<1?l.A.CONTRIBUTOR:f.isBacker?l.A.BACKER:f.roles[0])}):C?(0,r.jsx)(j.P,{fontSize:"12px",fontWeight:"700",title:A,mb:1,textAlign:"center",children:C}):null,a.totalAmountDonated>0&&!g&&(0,r.jsx)(j.P,{fontSize:"12px",fontWeight:"700",textAlign:"center",children:(0,r.jsx)(N.A,{amount:a.totalAmountDonated,currency:c,precision:0})})]}),(0,r.jsx)(y.az,{mt:1,children:u&&!I?(0,r.jsx)(z,{"data-cy":"ContributorCard_EditPublicMessageButton",onClick:()=>{w(!0)},children:v||(0,r.jsx)(s.sA,{id:"contribute.publicMessage",defaultMessage:"Leave a public message (optional)"})}):v&&(0,r.jsx)(K,{title:x,children:v})})]}),I&&(0,r.jsx)(R,{cardRef:M,message:x,onClose:()=>w(!1),intl:e,fromCollectiveId:b,collectiveId:p})]})}))},13881:(e,t,i)=>{i.d(t,{k:()=>o});var r=i(11046),n=i(81008);let o=(0,r.ou)` 16 query TierPage($tierId: Int!) { 17 Tier(id: $tierId) { 18 id 19 idV2 20 name 21 slug 22 description 23 longDescription 24 videoUrl 25 goal 26 type 27 currency 28 interval 29 endsAt 30 button 31 32 stats { 33 id 34 totalDonated 35 totalRecurringDonations 36 contributors { 37 id 38 all 39 collectives 40 organizations 41 users 42 } 43 } 44 45 collective { 46 id 47 slug 48 type 49 name 50 backgroundImage 51 backgroundImageUrl 52 imageUrl 53 isHost 54 settings 55 currency 56 isArchived 57 path 58 host { 59 id 60 } 61 features { 62 id 63 ...NavbarFieldsV1 64 } 65 admins: members(role: "ADMIN") { 66 id 67 role 68 collective: member { 69 id 70 type 71 slug 72 name 73 image 74 } 75 } 76 parentCollective { 77 id 78 slug 79 name 80 twitterHandle 81 image 82 backgroundImageUrl 83 imageUrl 84 } 85 } 86 87 contributors { 88 id 89 name 90 roles 91 isAdmin 92 isCore 93 isBacker 94 since 95 description 96 publicMessage 97 collectiveSlug 98 totalAmountDonated 99 type 100 isIncognito 101 collectiveId 102 } 103 } 104 } 105 ${n.ut} 106`},17554:(e,t,i)=>{i.d(t,{A:()=>x});var r=i(37876),n=i(14232),o=i(64487),s=i(34368),a=i(5646),l=i(22696),d=i(35027),c=i(12930),h=i(51020),u=i(69020);let p=a.I4.div.withConfig({componentId:"sc-1f3ecf8f-0"})([""," &:not(:hover){&::-webkit-scrollbar-thumb{background:transparent;}&::-webkit-scrollbar-track{background:transparent;}}"],l.X),g=({style:e,...t})=>(0,r.jsx)("div",{style:{...e,position:"relative",width:e.width+32},...t}),m=a.I4.div.withConfig({componentId:"sc-1f3ecf8f-1"})(["animation:"," 0.3s;position:absolute;"],h.qG),f=(e,t,i,r,n)=>n?t+i*e:t*r+e,b={[d.y8.UNKNOWN]:1,[d.y8.XSMALL]:1,[d.y8.SMALL]:2,[d.y8.MEDIUM]:3,[d.y8.LARGE]:3},x=(0,d.Ay)((0,u.Cb)(({contributors:e,width:t,maxNbRowsForViewports:i=b,viewport:
106a,maxWidthWhenNotFull:l,currency:h,LoggedInUser:u,collectiveId:x,gridRef:A})=>{var v,C,y,I,w,M,j;let E,D=i[a],[L,P]=(v=e.length,C=t,y=D,v<=(E=Math.trunc(C/176))*y?[Math.min(E,v),Math.ceil(v/E)]:[Math.ceil(v/y),y]),S=a===d.y8.UNKNOWN?3*t:t,R=176*L+32,N=(I=t,w=R,M=P,I<(j=l)?0:M>1?w<=I?(I-w)/2-16:0:(I-Math.max(j,w))/2-16),T=R+N>t,k=(0,o.A)(u,"CollectiveId");return(0,r.jsx)(s.yi,{columnCount:L,columnWidth:176,height:246*P+26,rowCount:P,rowHeight:246,width:S,outerElementType:n.forwardRef(({style:e,...t},i)=>(0,r.jsx)(p,{"data-cy":"contributors-grid",ref:i,style:{...e,width:"100%",paddingLeft:N,overflowX:T?"auto":"hidden"},...t})),innerElementType:g,itemKey:({columnIndex:t,rowIndex:i})=>{let r=f(t,i,P,L,T);return r<e.length?e[r].id:`empty-${r}`},ref:A,children:({columnIndex:t,rowIndex:i,style:n})=>{let o=e[f(t,i,P,L,T)];return o?(0,r.jsx)(m,{style:{left:n.left+32,top:n.top+26},children:(0,r.jsx)(c.A,{"data-cy":"ContributorsGrid_ContributorCard",width:144,height:220,contributor:o,currency:h,collectiveId:x,isLoggedUser:o.collectiveId&&k===o.collectiveId})},o.id):null}})}),{withWidth:!0})},54428:(e,t,i)=>{i.d(t,{A:()=>b});var r=i(37876),n=i(14232),o=i(95062),s=i.n(o),a=i(64487),l=i(6612),d=i(47221),c=i(38333),h=i(64656),u=i(5646),p=i(71321),g=i(78640),m=i(34583),f=i(10651);class b extends n.PureComponent{static{this.propTypes={children:s().oneOfType([s().node,s().func]),collective:s().shape({settings:s().shape({collectivePage:s().shape({primaryColor:s().string})})})}}render(){let{collective:e,children:t}=this.props,i=this.state.newPrimaryColor||(0,a.A)(e,"settings.collectivePage.primaryColor"),o=this.getPalette(i);return(0,r.jsxs)(u.NP,{theme:this.getTheme(i),children:["function"==typeof t?t({onPrimaryColorChange:this.onPrimaryColorChange}):(0,r.jsx)(n.Fragment,{children:t}),(0,r.jsx)(f.A,{palette:o})]})}constructor(...e){super(...e),this.state={newPrimaryColor:null},this.adjustColorContrast=e=>{let t=(0,h.bJ)(e,"#fff");return t>=7?e:(0,h.e$)((7-t)/21,e)},this.getPalette=(0,c.A)(e=>{if(!e)return m.A.primary;if(!(0,p.isHexColor)(e))return console.warn(`Invalid custom color: ${e}`),m.A.primary;{let t=this.adjustColorContrast(e),i=(0,h.J1)(t),r=i<.05?-.1:i/5,n=e=>(0,h.iv)((0,l.A)(e+r,0,.97),t);return{900:n(.1),800:n(.2),700:n(.3),600:n(.42),500:n(.5),400:n(.6),300:n(.65),200:n(.72),100:n(.92),50:n(.97),base:e}}}),this.getTheme=(0,c.A)(e=>{if(!e)return g.A;if(!(0,p.isHexColor)(e))return console.warn(`Invalid custom color: ${e}`),g.A;{let t=this.getPalette(e);return(0,g.V)({colors:{...g.A.colors,primary:t}})}}),this.onPrimaryColorChange=(0,d.A)(e=>{this.setState({newPrimaryColor:e})},2e3)}}},62939:(e,t,i)=>{i.d(t,{A:()=>s});var r=i(5646),n=i(23968),o=i(56611);let s=r.I4.div.withConfig({shouldForwardProp:(e,t)=>(0,o.x)(e,t),componentId:"sc-2c35d607-0"}).attrs(e=>({bg:e.bg??"white.full",borderWidth:e.borderWidth??"1px",borderStyle:e.borderStyle??"solid",borderColor:e.borderColor??"black.300",borderRadius:e.borderRadius??"8px",overflowX:e.overflowX??"hidden",overflowY:e.overflowY??"hidden"}))((0,n.Zz)(n.pn,n.Il,n.Tp,n.PQ,n.r7,n.yW,n.Zp,n.G1,n.xe))},78807:(e,t,i)=>{i.d(t,{A:()=>M});var r=i(37876),n=i(14232),o=i(95062),s=i.n(o),a=i(40056),l=i(86715),d=i(64487),c=i(10611),h=i(62449),u=i(5646),p=i(48519),g=i(56593),m=i(99202),f=i(98263),b=i(68901),x=i(51020),A=i(58201),v=i(33520);let C=(0,u.I4)(l.r).withConfig({componentId:"sc-ef060d91-0"})(["cursor:pointer;background-color:white;border:1px solid #aaaeb3;border-radius:25%;padding:15%;color:#aaaeb3;&:hover{color:#8697ad;}"]),y=(0,u.I4)(b.A).withConfig({componentId:"sc-ef060d91-1"})(["width:35%;font-weight:normal;text-transform:capitalize;margin:4px 8px;animation:"," 0.3s;"],x.qG),I=(0,h.YK)({warnDiscardChanges:{id:"warning.discardUnsavedChanges",defaultMessage:"Are you sure you want to discard your unsaved changes?"}});class w extends n.Component{static{this.propTypes={field:s().string.isRequired,values:s().object.isRequired,mutation:s().object.isRequired,mutationOptions:s().object,canEdit:s().bool,isEditing:s().bool,warnIfUnsavedChanges:s().bool,required:s().bool,maxLength:s().number,prepareVariables:s().func,disableEditor:s().func,showEditIcon:s().bool,children:s().func,placeholder:s().node,buttonsMinWidth:s().oneOfType([s().number,s().string]),topEdit:s().number,intl:s().object.isRequired}}static{this.defaultProps={showEditIcon:!0,buttonsMinWidth:225,topEdit:-5}}componentDidUpdate(e){e.isEditing!==this.props.isEditing&&(this.props.isEditing?this.setState({isEditing:!0,draft:(0,d.A)(this.props.values,this.props.field)}):this.setState({isEditing:!1}))}renderContent(e,t,i,n,o){return o?o({value:i,isEditing:!1,enableEditor:this.enableEditor,disableEditor:this.disableEditor,setValue:this.setDraft}):i?(0,r.jsx)("span",{children:i}):t&&n?(0,r.jsx)(b.A,{buttonSize:"large",onClick:this.enableEditor,"data-cy":`InlineEditField-Add-${e}`,children:n}):null}render(){let{field:e,values:t,mutation:i,canEdit:o,prepareVariables:s,showEditIcon:l,placeholder:u,children:p,topEdit:b,mutationOptions:x,warnIfUnsavedChanges:I}=this.props,{draft:w,isEditing:M}=this.state,{buttonsMinWidth:j}=this.props,E=(0,d.A)(t,e),D=w!==E,L=this.props.required?D&&!!w:D;return M?(0,r.jsx)(v.A,{hasUnsavedChanges:I&&L,children:(0,r.jsx)(a.s,{mutation:i,...x,children:(i,{loading:o,error:a})=>(0,r.jsxs)(n.Fragment,{children:[p?p({isEditing:!0,value:w,maxLength:this.props.maxLength,setValue:this.setDraft,enableEditor:this.enableEditor,disableEditor:this.disableEditor,setUploading:e=>this.setState({uploading:e})}):(0,r.jsx)(A.A,{autoSize:!0,autoFocus:!0,width:1,value:w||"",onChange:e=>this.setDraft(e.target.value),px:0,py:0,border:"0",letterSpacing:"inherit",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit",maxLength:this.props.maxLength,"data-cy":`InlineEditField-Textarea-${e}`,withOutline:!0}),(0,r.jsxs)(m.az,{width:1,children:[a&&(0,r.jsx)(f.A,{type:"error",my:2,fontSize:"14px",lineHeight:"20px",fontWeight:"normal",withIcon:!0,children:a.message}),(0,r.jsxs)(m.so,{flexWrap:"wrap",justifyContent:"space-evenly",mt:3,children:[(0,r.jsx)(y,{"data-cy":"InlineEditField-Btn-Cancel",disabled:o,minWidth:j,onClick:this.disableEditor,children:(0,r.jsx)(h.sA,{id:"form.cancel",defaultMessage:"cancel"})}),(0,r.jsx)(y,{buttonStyle:"primary",loading:o,disabled:!L||this.state.uploading,"data-cy":"InlineEditField-Btn-Save",minWidth:j,onClick:()=>{i({variables:s?s(t,w):{...(0,c.A)(t,["id"]),[e]:w}}).then(()=>this.disableEditor(!0))},children:this.state.uploading?(0,r.jsx)(h.sA,{id:"uploadImage.isUploading",defaultMessage:"Uploading image..."}):(0,r.jsx)(h.sA,{id:"save",defaultMessage:"Save"})})]})]})]})})}):(0,r.jsxs)(g.A,{position:"relative",children:[o&&l&&(0,r.jsx)(g.A,{position:"absolute",top:b,right:-5,zIndex:2,children:(0,r.jsx)(C,{size:24,onClick:this.enableEditor,"data-cy":`InlineEditField-Trigger-${e}`})}),this.renderContent(e,o,E,u,p)]})}constructor(...e){super(...e),this.state={isEditing:!1,draft:"",uploading:!1},this.enableEditor=()=>{this.setState({isEditing:!0,draft:(0,d.A)(this.props.values,this.props.field)})},this.disableEditor=e=>{let{warnIfUnsavedChanges:t,intl:i,values:r,field:n}=this.props;(e||!t||(0,d.A)(r,n)===this.state.draft||confirm(i.formatMessage(I.warnDiscardChanges)))&&
106(this.setState({isEditing:!1}),this.props.disableEditor&&this.props.disableEditor())},this.setDraft=e=>{this.setState({draft:e})}}}let M=(0,p.A)(w)},84223:(e,t,i)=>{i.d(t,{CP:()=>w,Cc:()=>y,DL:()=>C,IE:()=>b,IF:()=>j,Lj:()=>D,Lv:()=>E,Mg:()=>M,Tg:()=>I,ZY:()=>p,jT:()=>A,lq:()=>g,rn:()=>m});var r=i(18075),n=i(77820),o=i(72976),s=i(13289),a=i(96918),l=i(64487),d=i(30988),c=i(72903),h=i(16614),u=i(17374);let p="collectivePage.tiersOrder",g="collectivePage.ticketsOrder",m=[500,1e3,2e3,5e3],f=[1e5,2e5,5e5,1e6],b=100,x={STD:2e4,VND:2e4,LAK:1e4,IDR:1e4,SLL:1e4,UZS:1e4,GNF:8e3,PYG:6e3,KHR:4e3,MGA:4e3,UGX:3e3,COP:3e3,MNT:3e3,TZS:2e3,CDF:2e3,BIF:2e3,MWK:1e3,KRW:1e3,LBP:1e3,MMK:1e3,RWF:1e3,CLP:800,XAF:600,XOF:600,CRC:600,SOS:500,KZT:400,KMF:400,AMD:400,NGN:400,AOA:400,HUF:300,LKR:300,MRO:300,GYD:200,PKR:200,YER:200,DJF:100,JPY:100,RSD:100,KES:100,XPF:100,NPR:100,ALL:100,HTG:100,VUV:100,ISK:100,JMD:100,LRD:100,CVE:100,DZD:100,ARS:100,BDT:90,SEK:90,MAD:90,AFN:80,KGS:70,INR:70,RUB:60,MZN:60,PHP:50,GMD:50,DOP:50,MKD:50,ETB:50,UYU:40,MUR:40,NIO:30,THB:30,HNL:20,TWD:20,CZK:20,UAH:20,SRD:20,LSL:10,ZAR:10,SZL:10,MVR:10,ZMW:10,NAD:10,EGP:10,MDL:10,TJS:10,MXN:10,SCR:10,TRY:10,BWP:10,NOK:9,MOP:8,SBD:8,HKD:7,HRK:7,GTQ:7,TTD:6,CNY:6,BOB:6,DKK:6,RON:4,BRL:4,MYR:4,PLN:4,PEN:3,PGK:3,SAR:3,BYN:3,AED:3,ILS:3,QAR:3,BBD:2,TOP:2,FJD:2,GEL:2,BZD:2,XCD:2,WST:2},A=(e,t)=>
106{let i=x[t]||1;return e?e.amountType===h.w.FIXED?e.amount?.valueInCents||0:null!==e.minimumAmount.valueInCents?e.minimumAmount.valueInCents:e.presets?.length&&0===(0,r.A)(e.presets)?0:b*i:b*i},v=(e,t)=>{let i=x[t];return i?e.map(e=>Math.round(e*i)):e},C=(e,t,i)=>{if(e?.presets?.length>0)return e.presets;if(t===d.Td.FUND)return v(f,i);if(!e)return v(m,i);let r=A(e,i);if(0===r)return[0,500,1500,5e3];{if(r<1e3)return[r,1e3,2500,5e3];let e=e=>{let t=Math.pow(10,e.toString().length-1);return Math.round(Math.round(e/t)*t)};return(0,n.A)([r,e(2*r),e(3*r),e(5*r)])}},y=(e,t,i)=>{if(e&&!(0,o.A)(e.amount?.valueInCents))return e.amount.valueInCents;{if(0===A(e,i))return 0;let r=C(e,t.type,i);return r[Math.floor(r.length/2)]}},I=e=>{let t=!!e,i=e&&e.amountType===h.w.FIXED;return!(e&&e.amountType===h.w.FLEXIBLE)&&t&&i},w=e=>e?.endsAt&&new Date(e.endsAt)<new Date,M=(e,t)=>{let[i,r]=(0,s.A)(e,e=>t.includes(e.id));return[...(0,a.A)(i,e=>t.findIndex(t=>t===e.id)),...(0,a.A)(r,["endsAt","legacyId","id"],["desc","desc","desc"])]},j=e=>(0,l.A)(e.settings,g,u.M),E=(e,t)=>((e,t,i)=>{let r=e.filter(e=>e.type!==h.Y.TICKET);i&&r.push("custom");let n=e=>"custom"===e?"custom":Number.isInteger(e?.id)?e.id:e.legacyId,[o,l]=(0,s.A)(r,e=>t.includes(n(e)));return[...(0,a.A)(o,e=>t.findIndex(t=>t===n(e))),...(0,a.A)(l,e=>n(e))]})(t,(0,l.A)(e.settings,p,u.M),!(0,l.A)(e,"settings.disableCustomContributions",!1)),D=e=>e?.interval?e.interval===c.Ay.flexible?c.Ay.month:e.interval:c.Ay.oneTime},94145:(e,t,i)=>{i.d(t,{A:()=>s});var r=i(5646),n=i(23968),o=i(76654);let s=r.I4.button.attrs(e=>({color:e.color??"#3385FF",$hoverColor:e.$hoverColor??"#797d80"})).withConfig({componentId:"sc-c4c5990b-0"})(["background:none;border:none;padding:0;cursor:pointer;"," "," "," &:hover{color:",";text-decoration:",";}",""],n.yW,n.Il,o.es,e=>e.$hoverColor,e=>e.$underlineOnHover?"underline":void 0,(0,n.Ox)({prop:"variant",variants:{danger:{color:"red.500","&:hover":{color:"red.400"}}}}))}}]); 107//# sourceMappingURL=18-2d254b1414461752.js.map
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.