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 s=arguments[t];if(null!=s)for(var r in s)s.hasOwnProperty(r)&&(e[r]=s[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]="6a398125-fb73-427d-9337-5ea71cf734ed",e._sentryDebugIdIdentifier="sentry-dbid-6a398125-fb73-427d-9337-5ea71cf734ed")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4585],{1921:(e,t,s)=>{"use strict";s.d(t,{A:()=>T});var r=s(37876),o=s(14232),i=s(78248),n=s(14664),a=s(76668),l=s(63727),c=s(86784),d=s(9701),u=s(62449),h=s(77940),p=s(31099),g=s(30988),m=s(11046),f=s(34583),x=s(99202),b=s(74143),v=s(72945);let A=(0,m.J1)` 2 query SearchTags($term: String) { 3 tagStats(tagSearchTerm: $term) { 4 nodes { 5 id 6 tag 7 } 8 } 9 } 10`,y=e=>{let{attributes:t,isDragging:s,listeners:o,setNodeRef:i,transform:n,transition:c}=(0,a.gl)({id:e.data.value}),d={transform:l.Ks.Translate.toString(n),transition:c,opacity:s?"0.4":void 0};return(0,r.jsx)("div",{style:d,...t,...o,ref:i,children:(0,r.jsx)(b.A,{m:"4px",variant:"rounded-right",maxHeight:"none",style:{cursor:"grab"},onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},closeButtonProps:{...e.removeProps,isFocused:e.isFocused,onPointerDown:e=>e.stopPropagation()},children:e.children})})},j=e=>(0,r.jsx)(h.c.Input,{...e,"data-cy":"tags-select-input"}),I=({innerProps:e,...t})=>(0,r.jsx)(h.c.Option,{...t,innerProps:{...e,"data-cy":`tags-select-option-${t.data.value}`}}),C=({innerProps:e,...t})=>(0,r.jsx)(h.c.SelectContainer,{...t,innerProps:{...e,"data-cy":"tags-select"}}),M=(0,c.A)((e,t)=>e({variables:t}),500),T=function({defaultValue:e=[],onChange:t,suggestedTags:s=[]}){let l=(0,u.tz)(),[h,{loading:m,data:T}]=(0,i._)(A),[S,w]=(0,o.useState)(!1),E=m||S,[L,_]=(0,o.useState)(""),[k,F]=(0,o.useState)([]),[P,N]=(0,o.useState)(e?.map(e=>({label:e,value:e}))||[]),[O,R]=(0,o.useState)(null);(0,o.useEffect)(()=>{t(P)},[P]),(0,o.useEffect)(()=>{L?.length?(w(!0),M(h,{term:L})):h()},[L]),(0,o.useEffect)(()=>{m||(F(T?.tagStats?.nodes.filter(({tag:e})=>!g.Du.includes(e)).map(({tag:e})=>({label:e,value:e}))||[]),w(!1))},[m,T]);let $=(0,o.useCallback)((0,c.A)(function(e){let{active:t,over:s}=e;s&&t.id!==s.id&&N(e=>{let r=e.findIndex(e=>e.value===t.id),o=e.findIndex(e=>e.value===s.id);return(0,a.be)(e,r,o)})},40,{trailing:!1,leading:!0}),[]);function z(){R(null)}return(0,r.jsxs)(o.Fragment,{children:[(0,r.jsxs)(n.Mp,{onDragStart:function(e){R(e.active.id)},onDragOver:$,onDragEnd:z,onDragCancel:z,children:[(0,r.jsx)(a.gB,{items:P.map(e=>e.value),children:(0,r.jsx)(p.A,{openMenuOnFocus:!0,placeholder:l.formatMessage({id:"collective.tags.input.placeholder",defaultMessage:"+ Add tags"}),isMulti:!0,value:P,menuPortalTarget:"u"<typeof document?null:document.body,components:{MultiValue:y,SelectContainer:C,Input:j,Option:I},onBlur:e=>{let t=e.relatedTarget;t&&("A"===t.tagName||"BUTTON"===t.tagName||"INPUT"===t.tagName)&&t.focus()},onKeyDown:e=>{"Enter"===e.key&&E&&0===k.length&&e.preventDefault()},onInputChange:e=>_(e),options:k,isLoading:E,onChange:e=>N(e),styles:{menuPortal:e=>({...e,zIndex:9999,pointerEvents:"auto"}),menu:e=>({...e,fontSize:"14px"}),control:(e,t)=>({...e,fontSize:"14px",boxShadow:`inset 0px 2px 2px ${f.A.primary[50]}`,borderColor:t.isFocused?f.A.primary[500]:f.A.black[300],"&:hover":{borderColor:t.isFocused?f.A.primary[500]:f.A.primary[300]}})}})}),(0,r.jsx)(n.Hd,{children:O?(0,r.jsx)(b.A,{m:"4px",variant:"rounded-right",style:{cursor:"grabbing",color:"black"},maxHeight:"none",backgroundColor:"black.200",closeButtonProps:!0,children:O}):null})]}),(0,r.jsx)(d.A,{height:s?.length>0?"auto":0,children:(0,r.jsxs)(x.so,{mt:2,gap:"6px",flexWrap:"wrap",alignItems:"center",children:[s&&(0,r.jsx)(v.L9,{color:"black.600",mr:1,fontSize:"12px",children:(0,r.jsx)(u.sA,{defaultMessage:"Popular tags:",id:"W4zXqr"})}),s?.map(e=>{let t=P.some(({value:t})=>t===e);return(0,r.jsx)(b.A,{variant:"rounded-right",htmlType:"button",tabIndex:-1,style:{opacity:t?.5:1,cursor:"pointer"},onClick:()=>t?N(P.filter(({value:t})=>t!==e)):N([...P,{value:e,label:e}]),children:e},e)})]})})]})}},4281:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var r=s(37876);s(14232);var o=s(45884),i=s(61184),n=s(8545),a=s(47537),l=s(69020);let c=({children:e,data:t={},description:s,image:l,loadingLoggedInUser:c,LoggedInUser:d,title:u,metaTitle:h,noRobots:p,twitterHandle:g,showSearch:m=!0,canonicalURL:f,collective:x,showMenuItems:b=!0,withTopBar:v=!0,showFooter:A=!0,showProfileAndChangelogMenu:y=!0,loading:j,updatesRss:I})=>t.error?(0,r.jsx)(n.A,{data:t,LoggedInUser:d}):(0,r.jsxs)("div",{className:"flex min-h-screen flex-col",children:[(0,r.jsx)(a.A,{showSearch:m,title:u,noRobots:p,twitterHandle:g,description:s,image:l,metaTitle:h,canonicalURL:f,collective:x,showMenuItems:b,LoggedInUser:d,showProfileAndChangelogMenu:y,loading:j,withTopBar:v,updatesRss:I}),(0,r.jsx)(i.A,{className:"flex-1",children:"function"==typeof e?e({LoggedInUser:d,loadingLoggedInUser:c}):e}),A&&(0,r.jsx)(o.A,{})]});c.displayName="Page";let d=(0,l.Cb)(c)},6853:(e,t,s)=>{"use strict";s.d(t,{A:()=>f});var r=s(37876),o=s(14232),i=s(62449),n=s(5646),a=s(71321),l=s(56593),c=s(99202),d=s(5885);let u=(e,t)=>
10e/Math.pow(2,t)*360-180,h=(e,t)=>{let s=Math.PI-2*Math.PI*e/Math.pow(2,t);return 180/Math.PI*Math.atan(.5*(Math.exp(s)-Math.exp(-s)))},p=({lat:e,long:t})=>{let[s,n]=(0,o.useState)(null);return(0,o.useEffect)(()=>{let s=(({x:e,y:t,zoom:s})=>{let r=h(t+1,s),o=h(t,s),i=u(e,s),n=u(e+1,s);return`${i}%2C${r}%2C${n}%2C${o}`})({x:Math.floor((t+180)/360*65536),y:Math.floor((1-Math.log(Math.tan(e*Math.PI/180)+1/Math.cos(e*Math.PI/180))/Math.PI)/2*65536),zoom:16});n(`https://www.openstreetmap.org/export/embed.html?bbox=${s}&marker=${e}%2C${t}&layers=ND`)},[e,t]),(0,r.jsxs)("div",{style:{width:"100%",height:"100%"},children:[(0,r.jsx)("iframe",{title:"Open Street Map",width:"100%",height:"100%",frameBorder:"0",scrolling:"no",src:s}),(0,r.jsx)(d.A,{openInNewTab:!0,href:`https://www.openstreetmap.org/?mlat=${e}&mlon=${t}#map=16/${e}/${t}`,children:(0,r.jsx)(i.sA,{id:"map.viewLarger",defaultMessage:"View Larger Map"})})]})};var g=s(72945);let m=n.I4.section.withConfig({componentId:"sc-4e26e132-0"})(["text-align:center;"]),f=function({location:e,showTitle:t=!0}){if(!e)return null;let{name:s,address:o,lat:n,long:u,country:h}=e;if("Online"===s)if(o&&(0,a.isURL)(o))return(0,r.jsx)(c.so,{flexDirection:"column",alignItems:"center",children:(0,r.jsx)(g.P,{textAlign:"center",children:(0,r.jsx)(d.A,{openInNewTabNoFollow:!0,href:o,children:o})})});else return(0,r.jsx)(g.P,{textAlign:"center",children:(0,r.jsx)(i.sA,{id:"Location.online",defaultMessage:"Online"})});if(!s&&!o&&!n&&!u&&!h)return null;let f=isNaN(n)||isNaN(u)?`https://www.openstreetmap.org/search?query=${encodeURIComponent(o)}`:`https://www.openstreetmap.org/?mlat=${n}&mlon=${u}#map=16/${n}/${u}`;return(0,r.jsxs)(m,{id:"location",children:[(0,r.jsxs)(l.A,{margin:"30px 10px",children:[t&&(0,r.jsx)("h1",{children:"Location"}),(0,r.jsx)(l.A,{"font-size":"1.05rem",margin:"5px 0px",children:s}),(0,r.jsx)(l.A,{className:"address",color:"black.600",children:(0,r.jsx)(d.A,{href:f,openInNewTab:!0,children:[o,h].filter(Boolean).join(", ")})})]}),n&&u&&(0,r.jsx)("div",{className:"relative h-80 border",children:(0,r.jsx)(p,{lat:n,long:u})})]})}},13408:(e,t,s)=>{"use strict";s.d(t,{A:()=>g});var r=s(37876),o=s(14232),i=s(21651),n=s(64487),a=s(5646),l=s(56593),c=s(90983),d=s(72945);let u=(0,a.I4)(l.A).withConfig({componentId:"sc-5a4a69e9-0"})(["&:hover{border-color:",";}&:focus-within{border-color:",";}input{border:none;outline:none;box-shadow:none;}input:focus ~ div svg{color:",";}"],(0,i.y)("colors.primary.300"),(0,i.y)("colors.primary.500"),(0,i.y)("colors.primary.300")),h=({error:e,success:t})=>e?"red.300":t?"green.300":"black.800",p=({error:e,focused:t,success:s,defaultBg:r="black.50"})=>t?"primary.100":e?"red.100":s?"green.100":r,g=({append:e,prepend:t,disabled:s,success:i,error:a,maxWidth:g,containerProps:m,prependProps:f,appendProps:x,innerRef:b,autoFocus:v,overflow:A,...y})=>{let[j,I]=(0,o.useState)(!1);return(0,r.jsxs)(o.Fragment,{children:[(0,r.jsxs)(u,{bg:s?"black.50":"white.full",maxWidth:g,border:"1px solid",borderColor:(({error:e,focused:t,success:s})=>t?"primary.300":e?"red.500":s?"green.300":"black.300")({error:a,focused:j,success:i}),borderRadius:"4px",display:"flex",alignItems:"center",lineHeight:"1.5",...m,children:[t&&(0,r.jsx)(l.A,{fontSize:"14px",borderRadius:"4px 0 0 4px",p:2,color:h({error:a,success:i}),maxHeight:"100%",whiteSpace:"nowrap",...f,bg:s&&"black.50"||(0,n.A)(f,"bg")||p({error:a,focused:j,success:i}),children:t}),(0,r.jsx)(c.A,{bare:!0,autoFocus:v,color:h({error:a,success:i}),type:"text",overflow:A||"scroll",fontSize:"14px",flex:"1 1 auto",disabled:s,py:"0",px:2,maxHeight:"100%",error:a,minWidth:"0",width:"100%",ref:b,...y,onFocus:e=>{I(!0),y.onFocus&&y.onFocus(e)},onBlur:e=>{I(!1),y.onBlur&&y.onBlur(e)}}),e&&(0,r.jsx)(l.A,{borderRadius:"4px 0 0 4px",p:2,color:h({error:a,success:i}),fontSize:"14px",...x,bg:p({error:a,focused:j,success:i,defaultBg:x?.bg}),children:e})]}),!!a&&"boolean"!=typeof a&&(0,r.jsx)(d.L9,{display:"block",color:"red.500",pt:2,fontSize:"10px",children:a})]})}},19110:(e,t,s)=>{"use strict";s.d(t,{A:()=>g});var r=s(37876),o=s(14232),i=s(78248),n=s(86784),a=s(62449),l=s(30988),c=s(11046),d=s(73369),u=s(84550);let h=(0,c.ou)` 11 query CollectivePickerSearch( 12 $term: String! 13 $types: [TypeOfCollective] 14 $limit: Int 15 $hostCollectiveIds: [Int] 16 $parentCollectiveIds: [Int] 17 $skipGuests: Boolean 18 $includeArchived: Boolean 19 $includeVendorsForHostId: Int 20 $includeAllVendors: Boolean 21 $vendorVisibleToAccountIds: [Int] 22 ) { 23 search( 24 term: $term 25 types: $types 26 limit: $limit 27 hostCollectiveIds: $hostCollectiveIds 28 parentCollectiveIds: $parentCollectiveIds 29 skipGuests: $skipGuests 30 includeArchived: $includeArchived 31 includeVendorsForHostId: $includeVendorsForHostId 32 includeAllVendors: $includeAllVendors 33 vendorVisibleToAccountIds: $vendorVisibleToAccountIds 34 ) { 35 id 36 collectives { 37 id 38 type 39 slug 40 name 41 currency 42 location { 43 id 44 address 45 country 46 } 47 imageUrl(height: 64) 48 hostFeePercent 49 isActive 50 isArchived 51 isHost 52 ... on Vendor { 53 hasPayoutMethod 54 visibleToAccounts { 55 id 56 slug 57 name 58 } 59 } 60 ... on User { 61 isTwoFactorAuthEnabled 62 } 63 ... on Organization { 64 isTrustedHost 65 } 66 } 67 } 68 } 69`,p=(0,a.YK)({searchForType:{id:"SearchFor",defaultMessage:"Search for {entity}"},searchForType_2:{id:"SearchFor2",defaultMessage:"Search for {entity1} or {entity2}"},searchForType_3:{id:"SearchFor3",defaultMessage:"Search for {entity1}, {entity2} or {entity3}"},search:{id:"Search",defaultMessage:"Search"},searchForUsers:{defaultMessage:"Search for Users by name or email",id:"xLF0/9"}}),g=({inputId:e,types:t,limit:s=20,hostCollectiveIds:g,parentCollectiveIds:m,preload:f=!1,filterResults:x,searchQuery:b=h,invitable:v=!1,emptyCustomOptions:A=[],noCache:y=!1,isLoading:j=!1,skipGuests:I=!0,includeArchived:C=!1,includeVendorsForHostId:M,defaultCollectives:T,includeAllVendors:S=!1,vendorVisibleToAccountIds:w,useBeneficiaryForVendor:E=!1,...L})=>{let[_,{loading:k,data:F}]=(0,i._)(b,{context:c.$V,fetchPolicy:y?"network-only":void 0}
69),[P,N]=o.useState(null),[O,R]=o.useState(!1),[$,z]=o.useState(null),H=o.useRef(null),D=o.useRef(null);D.current||(D.current=(0,n.A)((e,t)=>e({variables:t}),750));let U=(0,a.tz)(),B=o.useMemo(()=>{if(!T)return[];if(!P)return T;let e=P.toLowerCase();return T.filter(t=>t.name?.toLowerCase().includes(e)||t.slug?.toLowerCase().includes(e))},[T,P]),q=o.useMemo(()=>{let e=$===(P||"");if((P||f)&&e&&F?.search?.collectives){let e=[...F.search.collectives];return!k&&B.length>0&&B.forEach(t=>{e.some(e=>!!(e?.id&&t?.id&&e.id===t.id||e?.slug&&t?.slug&&e.slug===t.slug))||e.push(t)}),e}return B},[P,f,F,k,B,$]),V=x?x(q):q,G=((e,t,{useBeneficiaryForVendor:s}={})=>{let r=t?t.length:0;return 0===r||r>3?e.formatMessage(p.search):1!==r?e.formatMessage(p[`searchForType_${r}`],t.reduce((t,r,o)=>(t[`entity${o+1}`]=(0,d.A)(e,r,100,{useBeneficiaryForVendor:s}),t),{})):t[0]===l.Td.USER?e.formatMessage(p.searchForUsers):e.formatMessage(p.searchForType,{entity:(0,d.A)(e,t[0],100,{useBeneficiaryForVendor:s})})})(U,t,{useBeneficiaryForVendor:E});return o.useEffect(()=>{let e=D.current,r=P||"";P||f?(R(!0),e(({variables:e})=>(H.current=e.term,Promise.resolve(_({variables:e})).finally(()=>{H.current===e.term&&(R(!1),z(e.term))})),{term:r,types:t,limit:s,hostCollectiveIds:g,parentCollectiveIds:m,skipGuests:I,includeArchived:C,includeVendorsForHostId:M,includeAllVendors:S,vendorVisibleToAccountIds:w})):(e.cancel(),H.current=null,R(!1),z(null))},[t,s,g,m,w,C,S,P,f,_,I,M]),(0,r.jsx)(u.Ay,{inputId:e,isLoading:!!(k||j||O),collectives:V,groupByType:!t||t.length>1,filterOption:()=>!0,sortFunc:e=>e,placeholder:G,types:t,useSearchIcon:!0,isSearchable:!0,invitable:v,onInputChange:e=>{N(e.trim())},customOptions:P?[]:A,useBeneficiaryForVendor:E,vendorVisibleToAccountIds:w,...L})}},42640:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>eb});var r=s(37876),o=s(14232),i=s(670),n=s(89099),a=s(2948),l=s(11046),c=s(6435),d=s(95062),u=s.n(d),h=s(99525),p=s(62449),g=s(30988),m=s(48519),f=s(99202),x=s(98263),b=s(266),v=s(72945),A=s(69020),y=s(21651),j=s(5646),I=s(56593),C=s(69756),M=s(68901),T=s(5885);let S=(0,j.I4)(T.A).withConfig({componentId:"sc-abbca25d-0"})(["color:",";font-size:12px;&:hover{color:#dc5f7d;}"],(0,y.y)("colors.blue.500")),w=j.I4.img.withConfig({componentId:"sc-abbca25d-1"})(["@media screen and (min-width:52em){height:256px;width:256px;}@media screen and (max-width:40em){height:192px;width:192px;}@media screen and (min-width:40em) and (max-width:52em){height:208px;width:208px;}"]),E=(0,p.YK)({community:{id:"createCollective.category.community",defaultMessage:"For any community"},opensource:{id:"OSC.description",defaultMessage:"For open source projects"},climate:{id:"createCollective.category.climate",defaultMessage:"For climate initiatives"}}),L=()=>{let e=(0,n.useRouter)(),{formatMessage:t}=(0,p.tz)(),{hostCollectiveSlug:s,verb:i}=e.query,a=`/${[s,i].filter(Boolean).join("/")}`;return(0,r.jsxs)(o.Fragment,{children:[(0,r.jsx)(f.az,{mb:4,mt:5,children:(0,r.jsx)(v.H1,{fontSize:["20px","32px"],lineHeight:["24px","36px"],fontWeight:"bold",color:"black.900",textAlign:"center",children:(0,r.jsx)(p.sA,{id:"home.create",defaultMessage:"Create a Collective"})})}),(0,r.jsxs)(f.so,{justifyContent:"center",alignItems:"center",flexDirection:["column","row"],mb:[5,6],children:[(0,r.jsx)(I.A,{alignItems:"center",width:[null,280,312],mb:[4,0],children:(0,r.jsxs)(f.so,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[(0,r.jsx)(w,{src:"/static/images/create-collective/openSourceIllustration.png",alt:t(E.opensource)}),(0,r.jsx)(C.A,{href:"/opensource/apply/intro",children:(0,r.jsx)(M.A,{fontSize:"13px",buttonStyle:"primary",minHeight:"36px",mt:[2,3],mb:3,px:3,children:t(E.opensource)})}),(0,r.jsx)(S,{href:"/search?tag=open+source",openInNewTab:!0,children:(0,r.jsx)(p.sA,{id:"createCollective.examples",defaultMessage:"See examples"})})]})}),(0,r.jsx)(I.A,{borderLeft:["none","1px solid #E6E8EB"],borderTop:["1px solid #E6E8EB","none"],alignItems:"center",width:[null,280,312],children:(0,r.jsxs)(f.so,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[(0,r.jsx)(w,{src:"/static/images/create-collective/communityIllustration.png",alt:t(E.community)}),(0,r.jsx)(C.A,{href:`${a}/community`,children:(0,r.jsx)(M.A,{fontSize:"13px",buttonStyle:"primary",minHeight:"36px",mt:[2,3],mb:3,px:3,"data-cy":"ccf-category-picker-button-community",children:t(E.community)})}),(0,r.jsx)(S,{href:"/search?tag=community",openInNewTab:!0,children:(0,r.jsx)(p.sA,{id:"createCollective.examples",defaultMessage:"See examples"})})]})})]})]})};var _=s(46525),k=s(11358),F=s(64487),P=s(16907),N=s(98435),O=s(5005),R=s(66740),$=s(20322),z=s(99742);let H=e=>class extends o.Component{static async getInitialProps(t){let{Component:s}=t,o=t.req?.apolloClient||(0,R.K0)({initialState:window?.__NEXT_DATA__?.props?.[R.kG]}),i={};e.getInitialProps&&(i=await e.getInitialProps({...t}));
69try{i.pageProps?.skipDataFromTree||await (0,N.z)((0,r.jsx)(e,{Component:s,...i}),{client:o})}catch(e){z.env.DEBUG&&console.error(">>> apollo error: ",e)}return{[R.kG]:o.cache.extract(),...i}}static{this.displayName=`WithData(${function(e){return e.displayName||e.name||"Unknown"}(e)})`}constructor(e){super(e)}render(){return(0,r.jsx)(e,{...this.props})}},D=(0,$.Zz)(O.ou,H);var U=s(30619),B=s(19110),q=s(78642),V=s(1921),G=s(87784),W=s(33341),Y=s(54719),X=s(76026),K=s(45918),J=s(78027),Z=s(90983),Q=s(94089),ee=s(13408),et=s(58201);let es=(0,j.I4)(M.A).withConfig({componentId:"sc-24d3fac9-0"})(["color:",";font-size:14px;"],(0,y.y)("colors.black.600")),er=(0,j.I4)(I.A).withConfig({componentId:"sc-24d3fac9-1"})(["width:100%;@media screen and (min-width:40em){background:url('/static/images/create-collective/formIllustration.png');background-repeat:no-repeat;background-size:40%;background-position:right 17px bottom;}"]),eo=(0,p.YK)({nameLabel:{id:"createCollective.form.nameLabel",defaultMessage:"Collective name"},slugLabel:{id:"createCollective.form.slugLabel",defaultMessage:"Set your profile URL"},suggestedLabel:{id:"createCollective.form.suggestedLabel",defaultMessage:"Suggested"},descriptionLabel:{id:"createCollective.form.descriptionLabel",defaultMessage:"What does your Collective do?"},tagsLabel:{id:"Tags",defaultMessage:"Tags"},locationLabel:{id:"SectionLocation.Title",defaultMessage:"Location"},locationPlaceholder:{id:"createCollective.form.locationPlaceholder",defaultMessage:"Where are you based?"},descriptionHint:{id:"createCollective.form.descriptionHint",defaultMessage:"Write a short description (150 characters max)"},descriptionPlaceholder:{id:"create.collective.placeholder",defaultMessage:"Making the world a better place"},errorSlugHyphen:{id:"createCollective.form.error.slug.hyphen",defaultMessage:"Collective handle cannot start or end with a hyphen"}}),ei={fontWeight:500,fontSize:"14px",lineHeight:"17px"};class en extends o.Component{static{this.propTypes={error:u().string,host:u().object,loading:u().bool,onSubmit:u().func,intl:u().object.isRequired,loggedInUser:u().object,popularTags:u().arrayOf(u().string)}}hasHostTerms(){return!!this.props.host&&!!this.props.host.termsUrl}render(){let{intl:e,error:t,host:s,loading:i,popularTags:n,loggedInUser:a}=this.props,l=this.hasHostTerms(),d=e=>{let{description:t,name:s,slug:r,message:o,tags:i,location:n,inviteMembers:a}=e;return this.props.onSubmit({collective:{name:s,description:t,slug:r,tags:i,location:n},message:o,inviteMembers:a})};return(0,r.jsxs)(f.xA,{gridTemplateColumns:["1fr",null,null,"1fr 576px 1fr"],pt:48,children:[(0,r.jsx)(I.A,{display:["none",null,null,"flex"],minHeight:"32px",justifyContent:"center",alignItems:"flex-start",children:(0,r.jsxs)(es,{asLink:!0,onClick:()=>window&&window.history.back(),children:["â\xa0",(0,r.jsx)(p.sA,{id:"Back",defaultMessage:"Back"})]})}),(0,r.jsxs)(f.az,{children:[(0,r.jsx)(f.so,{flexDirection:"column",mb:[2,4,48],px:2,pt:2,children:s?(0,r.jsxs)(o.Fragment,{children:[(0,r.jsxs)(f.so,{justifyContent:"center",alignItems:"center",flexDirection:"column",gap:16,children:[(0,r.jsx)(f.az,{children:(0,r.jsx)(U.Ay,{radius:96,collective:s})}),(0,r.jsx)(f.az,{maxWidth:345,children:(0,r.jsx)(v.H1,{fontSize:["20px","32px"],lineHeight:["24px","40px"],fontWeight:"500",textAlign:"center",color:"black.900",children:(0,r.jsx)(p.sA,{id:"host.applyTo",defaultMessage:"Apply to {hostName}",values:{hostName:(0,r.jsx)("strong",{children:s.name})}})})})]}),(0,r.jsx)("div",{className:"mt-6 flex justify-center",children:(0,r.jsx)(G.A,{createdAt:s.createdAt,currency:s.currency,hostFeePercent:s.hostFeePercent,platformContributionAvailable:s.platformContributionAvailable,useAlternativeHostFeeNaming:(0,c.Lh)(s)})})]}):(0,r.jsxs)("div",{children:[(0,r.jsx)(f.az,{mb:[2,3],children:(0,r.jsx)(v.H1,{fontSize:["20px","32px"],lineHeight:["24px","36px"],fontWeight:"bold",textAlign:"center",color:"black.900",children:(0,r.jsx)(p.sA,{id:"home.create",defaultMessage:"Create a Collective"})})}),(0,r.jsx)(v.P,{fontSize:"16px",color:"black.600",textAlign:"center",mb:2,children:(0,r.jsx)(p.sA,{id:"createCollective.subtitle.introduce",defaultMessage:"Introduce your Collective to the community."})})]})}),t&&(0,r.jsx)(f.so,{alignItems:"center",justifyContent:"center",children:(0,r.jsx)(x.A,{type:"error",withIcon:!0,mb:[1,3],"data-cy":"ccf-error-message",children:t})}),(0,r.jsx)(f.so,{alignItems:"center",justifyContent:"center",children:(0,r.jsxs)(er,{mb:[1,5],border:[null,"1px solid #E6E8EB"],borderRadius:[0,"8px"],maxWidth:576,px:[2,4],pb:[0,90],children:[(0,r.jsx)(_.l1,{validate:t=>{let s=(0,P.z3)(t,["name","slug","description"]);return t.slug!==(0,k.A)(t.slug,"-")&&(s.slug=e.formatMessage(eo.errorSlugHyphen)),(0,P.gX)(e,s,t,"name",1,50),(0,P.gX)(e,s,t,"slug",1,30),(0,P.gX)(e,s,t,"description",1,160),(0,P.gX)(e,s,t,"message",0,3e3),(0,P.TF)(s,t,"tos"),l&&(0,P.TF)(s,t,"hostTos"),s},initialValues:{name:"",description:"",slug:"",tags:[],location:null,message:"",tos:!1,hostTos:!1,inviteMembers:[]},onSubmit:d,validateOnChange:!0,children:t=>{let{values:o,handleSubmit:d,touched:u,setFieldValue:h}=t;return(0,r.jsxs)(_.lV,{"data-cy":"ccf-form",children:[(0,r.jsx)(Q.A,{name:"name",htmlFor:"collective-name-input",labelProps:ei,label:e.formatMessage(eo.nameLabel),onChange:e=>{u.slug||h("slug",(0,c.a$)(e.target.value))},required:!0,mt:4,mb:3,"data-cy":"ccf-form-name",children:({field:e})=>(0,r.jsx)(Z.A,{...e,placeholder:"Agora Collective"})}),(0,r.jsx)(Q.A,{name:"slug",htmlFor:"collective-slug-input",labelProps:ei,label:e.formatMessage(eo.slugLabel),value:o.slug,required:!0,mt:3,mb:2,"data-cy":"ccf-form-slug",children:({field:e})=>(0,r.jsx)(ee.A,{onChange:e=>h("slug",e.target.value),...e,prepend:"opencollective.com/",placeholder:"agora"})}),o.name.length>0&&!u.slug&&(0,r.jsx)(v.P,{fontSize:"10px",color:"black.600",fontStyle:"italic",children:e.formatMessage(eo.suggestedLabel)}),(0,r.jsx)(Q.A,{name:"description",htmlFor:"description",labelProps:ei,label:e.formatMessage(eo.descriptionLabel),value:o.description,required:!0,mt:3,mb:2,"data-cy":"ccf-form-description",children:({field:t})=>(0,r.jsx)(Z.A,{...t,placeholder:e.formatMessage(eo.descriptionPlaceholder)})}),(0,r.jsx)(v.P,{fontSize:"11px",color:"black.600",children:e.formatMessage(eo.descriptionHint)}),s&&(0,r.jsxs)(f.az,{mt:3,mb:2,children:[(0,r.jsx)(v.P,{...ei,children:(0,r.jsx)(p.sA,{id:"onboarding.admins.header",defaultMessage:"Add administrators"})}),(0,r.jsxs)(f.so,{mt:1,width:"100%",children:[(0,r.jsxs)(v.P,{my:2,fontSize:"9px",textTransform:"uppercase",color:"black.700",letterSpacing:"0.06em",children:[(0,r.jsx)(p.sA,{id:"AddedAdm
69inistrators",defaultMessage:"Added Administrators"}),s?.policies?.COLLECTIVE_MINIMUM_ADMINS?.numberOfAdmins>1&&` (${1+o.inviteMembers.length}/${s.policies.COLLECTIVE_MINIMUM_ADMINS.numberOfAdmins})`]}),(0,r.jsx)(f.so,{flexGrow:1,alignItems:"center",children:(0,r.jsx)(J.A,{width:"100%",ml:2,borderColor:"black.300"})})]}),(0,r.jsxs)(f.so,{width:"100%",flexWrap:"wrap","data-cy":"profile-card",children:[(0,r.jsx)(X.A,{collective:a.collective},a.collective.id),o.inviteMembers?.map(e=>(0,r.jsx)(X.A,{collective:e.memberAccount,removeAdmin:()=>h("inviteMembers",o.inviteMembers.filter(t=>t.memberAccount.id!==e.memberAccount.id))},e.memberAccount.id))]}),(0,r.jsxs)(f.so,{mt:1,width:"100%",children:[(0,r.jsx)(v.P,{my:2,fontSize:"9px",textTransform:"uppercase",color:"black.700",letterSpacing:"0.06em",children:(0,r.jsx)(p.sA,{id:"InviteAdministrators",defaultMessage:"Invite Administrators"})}),(0,r.jsx)(f.so,{flexGrow:1,alignItems:"center",children:(0,r.jsx)(J.A,{width:"100%",ml:2,borderColor:"black.300"})})]}),(0,r.jsx)(f.az,{children:(0,r.jsx)(B.A,{inputId:"onboarding-admin-picker",creatable:!0,collective:null,types:["USER"],"data-cy":"admin-picker",filterResults:e=>e.filter(e=>!o.inviteMembers.some(t=>t.memberAccount.id===e.id)),onChange:e=>{h("inviteMembers",[...o.inviteMembers,{role:"ADMIN",memberAccount:e.value}])}})}),s?.policies?.COLLECTIVE_MINIMUM_ADMINS?.numberOfAdmins>1&&(0,r.jsx)(x.A,{type:"info",mt:3,fontSize:"13px",children:(0,r.jsx)(p.sA,{defaultMessage:"Your selected Fiscal Host requires you to add a minimum of {numberOfAdmins, plural, one {# admin} other {# admins} }. You can manage your admins from the Collective Settings.",id:"GTK0Wf",values:s.policies.COLLECTIVE_MINIMUM_ADMINS})})]}),(0,r.jsx)(Q.A,{name:"location",htmlFor:"location",labelProps:ei,label:e.formatMessage(eo.locationLabel),value:o.location,required:!0,mt:3,mb:2,children:({field:t})=>(0,r.jsx)(Y.A,{...t,onChange:e=>{h("location",e)},placeholder:e.formatMessage(eo.locationPlaceholder)})}),(0,r.jsx)(Q.A,{name:"tags",htmlFor:"tags",labelProps:ei,label:e.formatMessage(eo.tagsLabel),value:o.tags,required:!0,mt:3,mb:2,"data-cy":"ccf-form-tags",children:({field:e})=>(0,r.jsx)(V.A,{...e,onChange:e=>{t.setFieldValue("tags",e.map(e=>e.value.toLowerCase()))},suggestedTags:n})}),(0,r.jsx)(x.A,{type:"info",mt:3,children:(0,r.jsx)(p.sA,{id:"collective.tags.info",defaultMessage:"Tags help you improve your groupâs discoverability and connect with similar initiatives across the world."})}),s&&(0,r.jsx)(Q.A,{name:"message",htmlFor:"apply-create-message",labelProps:ei,required:!1,mt:24,label:(0,F.A)(s,"settings.applyMessage")||(0,r.jsx)(p.sA,{id:"ApplyToHost.WriteMessage",defaultMessage:"Message to the Fiscal Host"}),children:({field:e})=>(0,r.jsx)(et.A,{...e,width:"100%",minHeight:76,maxLength:3e3,showCount:!0,fontSize:"14px"})}),(0,r.jsxs)(f.az,{mx:1,my:3,children:[(0,r.jsx)(Q.A,{name:"tos",required:!0,children:({field:e})=>(0,r.jsx)(K.A,{name:e.name,required:e.required,checked:e.value,onChange:({checked:t})=>h(e.name,t),error:e.error,label:(0,r.jsx)(p.sA,{id:"createcollective.tos.label",defaultMessage:"I agree with the {toslink} of Open Collective.",values:{toslink:(0,r.jsx)(T.A,{href:"/tos",openInNewTab:!0,onClick:e=>e.stopPropagation(),children:(0,r.jsx)(p.sA,{id:"tos",defaultMessage:"terms of service"})})}})})}),l&&(0,r.jsx)(Q.A,{name:"hostTos",required:!0,mt:2,children:({field:e})=>(0,r.jsx)(K.A,{name:e.name,required:e.required,checked:e.value,onChange:({checked:t})=>h(e.name,t),error:e.error,label:(0,r.jsx)(p.sA,{id:"Host.TOSCheckbox",defaultMessage:"I agree with the <TOSLink>terms of service</TOSLink> of {hostName}",values:{hostName:s.name,TOSLink:(0,W.lv)({href:s.termsUrl,openInNewTabNoFollow:!0,onClick:e=>e.stopPropagation()})}})})})]}),(0,r.jsx)(f.so,{justifyContent:["center","left"],mb:4,children:(0,r.jsx)(M.A,{fontSize:"13px",minWidth:"148px",minHeight:"36px",buttonStyle:"primary",type:"submit",loading:i,onSubmit:d,"data-cy":"ccf-form-submit",children:(0,r.jsx)(p.sA,{id:"collective.create",defaultMessage:"Create Collective"})})})]})}}),(0,r.jsx)(I.A,{justifyContent:"center",mb:4,display:["flex","none"],children:(0,r.jsx)(q.A,{src:"/static/images/create-collective/mobileForm.png",width:320,height:200})})]})})]}),(0,r.jsx)("div",{})]})}}let ea=(0,m.A)(D(en));class el extends o.Component{static{this.propTypes={host:u().object,intl:u().object,LoggedInUser:u().object,refetchLoggedInUser:u().func.isRequired,router:u().object.isRequired,createCollective:u().func.isRequired,data:u().shape({tagStats:u().shape({nodes:u().arrayOf(u().shape({tag:u().string}))})})}}constructor(e){super(e),this.state={error:null,creating:!1},this.createCollective=this.createCollective.bind(this)}async createCollective({collective:e,message:t,inviteMembers:s}){this.setState({creating:!0}),e.tags=e.tags?[...e.tags,this.props.router.query.category]:[this.props.router.query.category];try{let r=(await this.props.createCollective({variables:{collective:e,host:this.props.host?{slug:this.props.host.slug}:null,message:t,inviteMembers:s.map(e=>({...e,memberAccount:{legacyId:e.memberAccount.id}}))}})).data.createCollective;await this.props.refetchLoggedInUser(),this.props.router.push({pathname:`/${r.slug}/onboarding`,query:{CollectiveId:r.legacyId}}).then(()=>window.scrollTo(0,0))}catch(t){let e=(0,a.Rp)(this.props.intl,t);this.setState({error:e,creating:!1})}}render(){let{LoggedInUser:e,host:t,router:s,data:o}=this.props,{error:i}
69=this.state,{category:n}=s.query,a=o?.tagStats?.nodes?.filter(e=>!g.Du.includes(e.tag)),l=a?.map(e=>e.tag);return t&&!t.isOpenToApplications?(0,r.jsxs)(f.so,{flexDirection:"column",alignItems:"center",mb:5,p:2,children:[(0,r.jsx)(f.so,{flexDirection:"column",p:4,mt:3,children:(0,r.jsx)(f.az,{mb:3,children:(0,r.jsx)(v.H1,{fontSize:"32px",lineHeight:"36px",fontWeight:"bold",textAlign:"center",children:(0,r.jsx)(p.sA,{id:"home.create",defaultMessage:"Create a Collective"})})})}),(0,r.jsx)(f.so,{alignItems:"center",justifyContent:"center",children:(0,r.jsx)(x.A,{type:"warning",withIcon:!0,mb:[1,3],children:(0,r.jsx)(p.sA,{id:"collectives.create.error.HostNotOpenToApplications",defaultMessage:"This Fiscal Host is not open to applications"})})})]}):e?t||n?(0,r.jsx)(ea,{host:t,onSubmit:this.createCollective,onChange:this.handleChange,loading:this.state.creating,error:i,popularTags:l,loggedInUser:e}):(0,r.jsx)(L,{}):(0,r.jsxs)(f.so,{flexDirection:"column",alignItems:"center",mt:5,mb:5,children:[(0,r.jsx)(x.A,{m:4,type:"warning",withIcon:!0,children:(0,r.jsx)(p.sA,{id:"mustBeLoggedIn",defaultMessage:"You must be logged in to see this page"})}),(0,r.jsx)(b.A,{createProfileTabs:["personal"]})]})}}let ec=(0,l.J1)` 70 mutation CreateCollective( 71 $collective: CollectiveCreateInput! 72 $host: AccountReferenceInput 73 $message: String 74 $inviteMembers: [InviteMemberInput] 75 ) { 76 createCollective(collective: $collective, host: $host, message: $message, inviteMembers: $inviteMembers) { 77 id 78 name 79 slug 80 tags 81 description 82 githubHandle 83 repositoryUrl 84 legacyId 85 } 86 } 87`,ed=(0,l.J1)` 88 query TagStats($host: AccountReferenceInput) { 89 tagStats(limit: 6, host: $host) { 90 nodes { 91 id 92 tag 93 } 94 } 95 } 96`,eu=(0,h.U)(ec,{name:"createCollective"}),eh=(0,h.U)(ed,{options:e=>({variables:{host:e.host?{slug:e.host.slug}:void 0}})}),ep=(0,n.withRouter)((0,A.Cb)(eu(eh((0,m.A)(el)))));var eg=s(8545),em=s(4281);let ef=(0,l.J1)` 97 query CreateCollectiveHost($slug: String!) { 98 host(slug: $slug) { 99 id 100 legacyId 101 type 102 slug 103 name 104 createdAt 105 currency 106 hostFeePercent 107 platformContributionAvailable 108 isOpenToApplications 109 isSuspended 110 termsUrl 111 features { 112 id 113 PUBLIC_PROFILE 114 } 115 policies { 116 id 117 COLLECTIVE_MINIMUM_ADMINS { 118 numberOfAdmins 119 } 120 } 121 } 122 } 123`,ex=({loadingLoggedInUser:e,LoggedInUser:t})=>{let s=(0,n.useRouter)(),o=s.query.hostCollectiveSlug||("opensource"===s.query.category?"opensource":void 0),l=!t||!o,{loading:d,error:u,data:h}=(0,i.IT)(ef,{skip:l,variables:{slug:o}});return d||e?(0,r.jsx)(eg.A,{loading:!0}):!l&&(!h||!h.host||(0,c._w)(h.host))?(0,r.jsx)(eg.A,{error:(0,a.hK)(),data:{error:u},log:!1}):(0,r.jsx)(em.A,{showFooter:!!t,showMenuItems:!1,children:(0,r.jsx)(ep,{host:h&&h.host})})};ex.getInitialProps=()=>({scripts:{googleMaps:!0}});let eb=(0,A.Cb)(ex)},54719:(e,t,s)=>{"use strict";s.d(t,{A:()=>T});var r=s(37876),o=s(14232),i=s(95062),n=s.n(i),a=s(22757),l=s(21651),c=s(20290),d=s(67752),u=s(72976),h=s(64487),p=s(62449),g=s(5646),m=s(71321),f=s(48519),x=s(56593),b=s(6853),v=s(98263),A=s(90983),y=s(94019),j=s(72945);let I=(0,g.I4)(a.k).withConfig({componentId:"sc-6bf45f94-0"})(["height:20px;width:20px;cursor:pointer;"]),C=(0,g.I4)(c.A).withConfig({componentId:"sc-6bf45f94-1"})([".geosuggest{font-size:18px;font-size:0.65rem;position:relative;text-align:left;}.geosuggest__input{min-height:36px;border:1px solid #dcdee0;border-color:#dcdee0;border-radius:4px;color:#313233;overflow:scroll;max-height:100%;min-width:0;width:100%;flex:1 1 auto;font-size:14px;line-height:1.5;overflow:scroll;padding-top:0;padding-bottom:0;padding-left:8px;padding-right:8px;box-sizing:border-box;outline:none;background-color:#ffffff;border-color:",";box-sizing:border-box;&:disabled{background-color:",";cursor:not-allowed;}&:hover:not(:disabled){border-color:",";}&:focus:not(:disabled){border-color:",";}&::placeholder{color:",";}}.geosuggest__suggests{top:100%;left:0;right:0;max-height:25em;padding:0;margin-top:-2px;background:#fff;border:1px solid #cccccc;border-radius:4px;border-top-width:0;overflow-x:hidden;overflow-y:auto;list-style:none;margin-top:1px;z-index:5;-webkit-transition:max-height 0.2s,border 0.2s;transition:max-height 0.2s,border 0.2s;}.geosuggest__suggests--hidden{max-height:0;overflow:hidden;border-width:0;}.geosuggest__item{font-size:12px;padding:1em 0.65em;cursor:pointer;margin:0;}.geosuggest__item:hover,.geosuggest__item:focus{background:",";}"],(0,l.y)("colors.black.300"),(0,l.y)("colors.black.50"),(0,l.y)("colors.primary.300"),(0,l.y)("colors.primary.500"),(0,l.y)("colors.black.400"),(0,l.y)("colors.primary.100"));class M extends o.Component{static{this.propTypes={value:n().object,intl:n().object,className:n().string,onChange:n().func.isRequired,options:n().object,placeholder:n().string}}constructor(e){super(e),this.handleChange=this.handleChange.bind(this),this.state={value:e.value||{},eventUrlError:!1},this.messages=(0,p.YK)({online:{id:"Location.online",defaultMessage:"Online"}}),this.geoSuggestRef=(0,o.createRef)()}componentDidUpdate(e){this.props.value!==e.value&&this.setState({value:this.props.value})}
123removeCountryFromAddress(e){return e.split(", ").slice(0,-1).join(", ")}handleChange(e){if(!e)return this.setState({value:null}),this.props.onChange(null);if(e.isOnline){let t={name:"Online",address:e.address};return this.setState({value:t}),this.props.onChange(t)}let t=e.gmaps.address_components.find(e=>e.types.includes("country"))?.short_name,s=e.gmaps.adr_address,r=new DOMParser().parseFromString(s,"text/html"),o={address1:r.querySelector(".street-address")?.textContent,address2:r.querySelector(".extended-address")?.textContent,postalCode:r.querySelector(".postal-code")?.textContent,city:r.querySelector(".locality")?.textContent,zone:r.querySelector(".region")?.textContent},i={address:this.removeCountryFromAddress(e.gmaps.formatted_address),name:e.label&&e.label.replace(/,.+/,""),country:t,lat:e.location.lat,long:e.location.lng,structured:(0,d.A)(o,u.A)};return this.setState({value:i}),this.props.onChange(i)}isAutocompleteServiceAvailable(){return!!(0,h.A)(window,"google.maps.places.AutocompleteService")}render(){let e=this.props.options||{},t=!this.isAutocompleteServiceAvailable();return(0,r.jsx)("div",{children:t?(0,r.jsx)(v.A,{withIcon:!0,type:"warning",children:(0,r.jsx)(p.sA,{id:"location.googleAutocompleteService.unavailable",values:{service:"Google Autocomplete Service",domain:"maps.googleapis.com",lineBreak:(0,r.jsx)("br",{})},defaultMessage:'Location field requires "{service}" to function.{lineBreak} Make sure "{domain}" is not blocked.'})}):(0,r.jsxs)(o.Fragment,{children:[(0,r.jsxs)(x.A,{position:"relative",children:[(0,r.jsx)(C,{onSuggestSelect:e=>this.handleChange(e),placeholder:this.props.placeholder,initialValue:this.props.value?.name,fixtures:[{label:this.props.intl.formatMessage(this.messages.online),location:{lat:0,lng:0},isOnline:!0}],...e,ref:this.geoSuggestRef}),(0,r.jsx)(x.A,{position:"absolute",top:"0.5em",right:"1em",children:(0,r.jsx)(I,{onClick:()=>{this.geoSuggestRef.current.clear(),this.handleChange(null)}})})]}),this.state.value?.name==="Online"?(0,r.jsx)(y.A,{mt:3,labelProps:{fontWeight:"700",fontSize:"16px"},labelColor:"#333333",label:"URL (public)",error:this.state.eventUrlError,children:e=>(0,r.jsxs)("div",{children:[(0,r.jsx)(A.A,{...e,width:"100%",placeholder:"https://meet.jit.si/opencollective",defaultValue:this.state.value.address,onBlur:e=>{e.target.value&&!(0,m.isURL)(e.target.value)&&this.setState({eventUrlError:!0})},onChange:({target:{value:e}})=>{this.setState({eventUrlError:!(0,m.isURL)(e)}),this.handleChange({isOnline:!0,address:e})}}),this.state.eventUrlError&&(0,r.jsx)(j.L9,{display:"block",color:"red.500",fontSize:"12px",mt:1,children:(0,r.jsx)(p.sA,{id:"InvalidURL",defaultMessage:"Invalid URL. It must start with http:// or https://."})})]})}):(0,r.jsx)(b.A,{location:this.state.value,showTitle:!1})]})})}}let T=(0,f.A)(M)},76026:(e,t,s)=>{"use strict";s.d(t,{A:()=>m});var r=s(37876),o=s(14232),i=s(95062),n=s.n(i),a=s(62449),l=s(5646),c=s(30619),d=s(74143),u=s(99202),h=s(61270);let p=(0,l.I4)(d.A).attrs({variant:"rounded-right"}).withConfig({componentId:"sc-9aa2d6e7-0"})([""]);class g extends o.Component{static{this.propTypes={collective:n().object,removeAdmin:n().func,isPending:n().bool}}render(){let{collective:e,removeAdmin:t,isPending:s}=this.props,{name:o}=e,i=(0,r.jsx)(p,{closeButtonProps:t?{onClick:()=>{t(e)}}:null,"data-cy":"remove-user",children:(0,r.jsxs)(u.so,{alignItems:"center",children:[(0,r.jsx)(c.Ay,{radius:16,collective:e}),(0,r.jsx)(u.az,{fontSize:"12px",ml:2,"data-cy":"name-of-admins",children:o})]})});return(0,r.jsx)(u.so,{my:1,mr:2,children:s?(0,r.jsx)(h.A,{content:()=>(0,r.jsx)(a.sA,{id:"onboarding.admins.pending",defaultMessage:"Pending approval"}),children:i}):i})}}let m=g},77142:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/create-collective",function(){return s(42640)}])},78642:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var r=s(37876);s(14232);var o=s(99202),i=s(36559);let n=function({display:e,...t}){return(0,r.jsx)(o.az,{display:e,children:(0,r.jsx)(i.A,{...t})})}},87784:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(37876);s(14232);var o=s(62449),i=s(89641);let n="mb-1 text-xs font-normal leading-[18px] text-neutral-600 text-center",a="text-base font-medium leading-6 text-neutral-900 text-center";function l({createdAt:e,currency:t,hostFeePercent:s,platformContributionAvailable:c,useAlternativeHostFeeNaming:d}){let u=d?i.i.ADMINISTRATIVE_CONTRIBUTION:i.i.HOST_FEE;return(0,r.jsxs)("div",{className:"flex flex-wrap justify-center gap-8 rounded-md border px-6 py-4",children:[(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)("p",{className:n,children:(0,r.jsx)(o.sA,{id:"HostSince",defaultMessage:"Host since"})}),(0,r.jsx)("p",{className:a,children:(0,r.jsx)(o.XU,{value:e,month:"short",year:"numeric"})})]}),(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)("p",{className:n,children:(0,r.jsx)(o.sA,{id:"Currency",defaultMessage:"Currency"})}),(0,r.jsx)("p",{className:a,children:t})]}),(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)("p",{className:n,children:(0,r.jsx)(i.A,{color:"black.700",borderColor:"#969ba3",fontSize:"12px",term:u})}),(0,r.jsx)("p",{className:a,children:Number.isFinite(s)?`${s}%`:"â"})]}),c&&(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)("p",{className:n,children:(0,r.jsx)(i.A,{term:i.i.PLATFORM_TIPS,color:"black.700",borderColor:"#969ba3",fontSize:"12px"})}),(0,r.jsx)("p",{className:a,children:(0,r.jsx)(o.sA,{id:"a5msuh",defaultMessage:"Yes"})})]})]})}},89641:(e,t,s)=>{"use strict";s.d(t,{A:()=>b,i:()=>h});var r=s(37876),o=s(14232),i=s(21651),n=s(62449),a=s(5646),l=s(23968),c=s(76654),d=s(49030),u=s(69756);let h={FISCAL_HOST:"FISCAL_HOST",GIFT_CARD:"GIFT_CARD",HOST_FEE:"HOST_FEE",ADMINISTRATIVE_CONTRIBUTION:"ADMINISTRATIVE_CONTRIBUTION",PLATFORM_FEE:"PLATFORM_FEE",PLATFORM_TIPS:"PLATFORM_TIPS",
123ESTIMATED_BUDGET:"ESTIMATED_BUDGET",EXPENSE_TYPE:"EXPENSE_TYPE",TOTAL_RAISED:"TOTAL_RAISED",TOTAL_INCOME:"TOTAL_INCOME",BALANCE:"BALANCE"},p=(0,n.YK)({[h.FISCAL_HOST]:{id:"Fiscalhost",defaultMessage:"Fiscal Host"},[h.HOST_FEE]:{id:"HostFee",defaultMessage:"Host fee"},[h.ADMINISTRATIVE_CONTRIBUTION]:{id:"AdministrativeContribution",defaultMessage:"Administrative contribution"},[h.PLATFORM_FEE]:{id:"PlatformFee",defaultMessage:"Platform fee"},[h.PLATFORM_TIPS]:{id:"ApplyToHostCard.platformTips",defaultMessage:"Platform Tips"},[h.GIFT_CARD]:{id:"GiftCard",defaultMessage:"Gift Card"},[h.ESTIMATED_BUDGET]:{id:"CollectivePage.SectionBudget.Annual",defaultMessage:"Estimated annual budget"},[h.EXPENSE_TYPE]:{id:"expense.type",defaultMessage:"Type"},[h.TOTAL_RAISED]:{id:"budgetSection-raised",defaultMessage:"Total raised"},[h.TOTAL_INCOME]:{id:"budgetSection-income",defaultMessage:"Total income"},[h.BALANCE]:{id:"CollectivePage.SectionBudget.Balance",defaultMessage:"Todayâs balance"}}),g=(0,n.YK)({[h.FISCAL_HOST]:{id:"Fiscalhost.definition",defaultMessage:"A Fiscal Host is an entity that holds the money on behalf of a Collective, and takes care of accounting, taxes, and invoices."},[h.HOST_FEE]:{id:"host.hostFee.help",defaultMessage:"Percentage of incoming contributions that this Fiscal Host retains as an administrative contribution for hosting services, such as holding funds, processing expense payouts, and handling accounting and tax obligations. <LearnMoreLink>Learn more â</LearnMoreLink>"},[h.ADMINISTRATIVE_CONTRIBUTION]:{id:"host.hostFee.help",defaultMessage:"Percentage of incoming contributions that this Fiscal Host retains as an administrative contribution for hosting services, such as holding funds, processing expense payouts, and handling accounting and tax obligations. <LearnMoreLink>Learn more â</LearnMoreLink>"},[h.PLATFORM_FEE]:{id:"host.platformFee.help",defaultMessage:"The Platform fee is what Open Collective charges for use of the software."},[h.PLATFORM_TIPS]:{id:"ApplyToHostCard.platformTips.tooltip",defaultMessage:"Contributors to Collectives hosted by this Fiscal Host are invited to add an optional tip to the Open Collective platform during checkout. The default tip is <b>15%</b> of the contribution amount; on average, contributors give about <b>6%</b>. <LearnMoreLink>Learn more â</LearnMoreLink>"},[h.GIFT_CARD]:{id:"GiftCard.definition",defaultMessage:"Gift cards empower your employees or community members to
123support the projects they love. <learn-more-link>Learn more</learn-more-link>."},[h.ESTIMATED_BUDGET]:{id:"CollectivePage.SectionBudget.Annual.Definition",defaultMessage:"Projected annual budget based on financial contributions over the past 12 months."},[h.EXPENSE_TYPE]:{id:"expense.type.tooltip",defaultMessage:"Select 'receipt' to get paid back for a purchase already made. Select 'invoice' if you are charging for your time, getting paid in advance, or do not have a receipt."},[h.TOTAL_RAISED]:{id:"budgetSection-raised-definition",defaultMessage:"Total net amount available to spend after fees."},[h.TOTAL_INCOME]:{id:"budgetSection-total-income-definition",defaultMessage:"Net all time, including host fees and direct contributions."},[h.BALANCE]:{id:"budgetSection-balance-definition",defaultMessage:"The current balance of the account. Not including Projects and Events."}}),m=e=>(0,r.jsx)("a",{href:"https://documentation.opencollective.com/collectives/choosing-a-fiscal-host",target:"_blank",rel:"noopener noreferrer",className:"underline",children:e}),f={[h.GIFT_CARD]:{"learn-more-link":e=>(0,r.jsx)(u.A,{href:"/gift-cards",children:e})},[h.PLATFORM_TIPS]:{b:e=>(0,r.jsx)("strong",{children:e}),LearnMoreLink:e=>(0,r.jsx)("a",{href:"https://documentation.opencollective.com/giving-to-collectives/platform-tips",target:"_blank",rel:"noopener noreferrer",className:"underline",children:e})},[h.ADMINISTRATIVE_CONTRIBUTION]:{b:e=>(0,r.jsx)("strong",{children:e}),LearnMoreLink:m},[h.HOST_FEE]:{LearnMoreLink:m}},x=a.I4.span.withConfig({componentId:"sc-ff69f675-0"})(["border-bottom:2px dotted;cursor:help;"," "," "," "," &:hover{color:",";border-color:",";}"],l.yW,l.Cz,l.Il,c.G7,(0,i.y)("colors.primary.500"),(0,i.y)("colors.primary.500")),b=({term:e,textTransform:t,fontSize:s,children:i=null,color:a="black.700",borderColor:l=a,extraTooltipContent:c=null})=>{let u=(0,n.tz)();return(0,r.jsxs)(d.m_,{delayDuration:100,children:[(0,r.jsx)(d.k$,{asChild:!0,children:(0,r.jsx)(x,{textTransform:t,color:a,borderColor:l,fontSize:s,children:i||u.formatMessage(p[e])})}),(0,r.jsx)(d.ZI,{className:"max-w-sm text-left text-xs leading-snug",children:(0,r.jsxs)(o.Fragment,{children:[u.formatMessage(g[e],f[e]),c]})})]})}}},e=>{e.O(0,[6593,1507,924,2024,297,1321,6525,5956,533,4287,290,5293,7147,9918,341,8545,7871,8610,4550,266,8407,636,8792],()=>e(e.s=77142)),_N_E=e.O()}]); 124//# sourceMappingURL=create-collective-f27946526996a436.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.