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 o=arguments[t];if(null!=o)for(var s in o)o.hasOwnProperty(s)&&(e[s]=o[s])}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]="da341f9e-d367-4270-a5f1-08bfdcb836f9",e._sentryDebugIdIdentifier="sentry-dbid-da341f9e-d367-4270-a5f1-08bfdcb836f9")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6275],{241:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>C});var s=o(37876);o(14232);var n=o(670),r=o(89099),i=o(62449),l=o(6435),a=o(2948),c=o(11046),d=o(61732),u=o(8084),h=o(16201),p=o(61205),g=o(7830),f=o(54428),y=o(56593),x=o(8545),m=o(98064),A=o(98263);let v=(0,c.J1)` 2 query CollectiveContactPage($collectiveSlug: String!) { 3 account(slug: $collectiveSlug, throwIfMissing: false) { 4 id 5 slug 6 name 7 type 8 isSuspended 9 permissions { 10 id 11 contact { 12 allowed 13 } 14 } 15 description 16 settings 17 imageUrl 18 twitterHandle 19 features { 20 id 21 ...NavbarFields 22 } 23 } 24 } 25 ${p.P} 26`,C=()=>{var e;let t,o=(0,i.tz)(),c=(0,r.useRouter)(),p=c.query?.collectiveSlug,{loading:C,data:b,error:w}=(0,n.IT)(v,{variables:{collectiveSlug:p}});if(!C){if(w)return(0,s.jsx)(x.A,{data:w});else if((0,l._w)(b?.account))return(0,s.jsx)(x.A,{error:(0,a.hK)(),log:!1})}return(0,s.jsx)(d.A,{...(e=b?.account,t=(0,l.zJ)(e),e?{...t,title:o.formatMessage({id:"ContactCollective",defaultMessage:"Contact {collective}"},{collective:e.name}),noRobots:!1}:{...t,title:"Contact collective",noRobots:!1}),children:()=>b?.account?(0,s.jsx)(f.A,{collective:b.account,children:(0,s.jsxs)(y.A,{children:[(0,s.jsx)(u.A,{collective:b.account,selectedCategory:h.q.CONNECT}),(0,s.jsx)(y.A,{py:[4,5],px:[2,3,4],children:b.account.permissions.contact.allowed?(0,s.jsx)(g.A,{collective:b.account}):(0,s.jsx)(A.A,{type:"warning",withIcon:!0,maxWidth:600,m:"0 auto",children:(0,s.jsx)(i.sA,{id:"CollectiveContact.NotAllowed",defaultMessage:"This Collective can't be contacted via Open Collective."})})})]})}):(0,s.jsx)(m.A,{})})}},4281:(e,t,o)=>{"use strict";o.d(t,{A:()=>d});var s=o(37876);o(14232);var n=o(45884),r=o(61184),i=o(8545),l=o(47537),a=o(69020);let c=({children:e,data:t={},description:o,image:a,loadingLoggedInUser:c,LoggedInUser:d,title:u,metaTitle:h,noRobots:p,twitterHandle:g,showSearch:f=!0,canonicalURL:y,collective:x,showMenuItems:m=!0,withTopBar:A=!0,showFooter:v=!0,showProfileAndChangelogMenu:C=!0,loading:b,updatesRss:w})=>t.error?(0,s.jsx)(i.A,{data:t,LoggedInUser:d}):(0,s.jsxs)("div",{className:"flex min-h-screen flex-col",children:[(0,s.jsx)(l.A,{showSearch:f,title:u,noRobots:p,twitterHandle:g,description:o,image:a,metaTitle:h,canonicalURL:y,collective:x,showMenuItems:m,LoggedInUser:d,showProfileAndChangelogMenu:C,loading:b,withTopBar:A,updatesRss:w}),(0,s.jsx)(r.A,{className:"flex-1",children:"function"==typeof e?e({LoggedInUser:d,loadingLoggedInUser:c}):e}),v&&(0,s.jsx)(n.A,{})]});c.displayName="Page";let d=(0,a.Cb)(c)},11850:(e,t,o)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/collective-contact",function(){return o(241)}])},51391:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});let s=(0,o(49950).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},54428:(e,t,o)=>{"use strict";o.d(t,{A:()=>x});var s=o(37876),n=o(14232),r=o(95062),i=o.n(r),l=o(64487),a=o(6612),c=o(47221),d=o(38333),u=o(64656),h=o(5646),p=o(71321),g=o(78640),f=o(34583),y=o(10651);class x extends n.PureComponent{static{this.propTypes={children:i().oneOfType([i().node,i().func]),collective:i().shape({settings:i().shape({collectivePage:i().shape({primaryColor:i().string})})})}}render(){let{collective:e,children:t}=this.props,o=this.state.newPrimaryColor||(0,l.A)(e,"settings.collectivePage.primaryColor"),r=this.getPalette(o);return(0,s.jsxs)(h.NP,{theme:this.getTheme(o),children:["function"==typeof t?t({onPrimaryColorChange:this.onPrimaryColorChange}):(0,s.jsx)(n.Fragment,{children:t}),(0,s.jsx)(y.A,{palette:r})]})}constructor(...e){super(...e),this.state={newPrimaryColor:null},this.adjustColorContrast=e=>{let t=(0,u.bJ)(e,"#fff");return t>=7?e:(0,u.e$)((7-t)/21,e)},this.getPalette=(0,d.A)(e=>{if(!e)return f.A.primary;if(!(0,p.isHexColor)(e))return console.warn(`Invalid custom color: ${e}`),f.A.primary;{let t=this.adjustColorContrast(e),o=(0,u.J1)(t),s=o<.05?-.1:o/5,n=e=>(0,u.iv)((0,a.A)(e+s,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,d.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,c.A)(e=>{this.setState({newPrimaryColor:e})},2e3)}}},61732:(e,t,o)=>{"use strict";o.d(t,{A:()=>y});var s=o(37876),n=o(14232),r=o(95062),i=o.n(r),l=o(62449),a=o(56593),c=o(99202),d=o(98064),u=o(98263),h=o(4281),p=o(266),g=o(69020);class f extends n.Component{static{this.propTypes={children:i().oneOfType([i().func,i().node]),disableSignup:i().bool,rootOnly:i().bool,loadingLoggedInUser:i().bool,LoggedInUser:i().object}}renderContent(e,t){return t?this.props.rootOnly&&!t.isRoot?(0,s.jsx)(c.so,{flexDirection:"column",alignItems:"center",children:(0,s.jsx)(u.A,{type:"warning",my:[5,6,7],maxWidth:400,withIcon:!0,children:(0,s.jsx)(l.sA,{id:"AuthenticatedPage.RootOnly",defaultMessage:"This page is limited to site administrators"})})}):"function"==typeof this.props.children?this.props.children(t):this.props.children:(0,s.jsx)(a.A,{display:"flex",justifyContent:"center",py:[5,null,6],px:2,children:e?(0,s.jsx)(d.A,{}):(0,s.jsxs)(c.so,{flexDirection:"column",alignItems:"center",children:[(0,s.jsx)(u.A,{type:"warning",mb:4,maxWidth:400,withIcon:!0,children:(0,s.jsx)(l.sA,{id:"authorization.loginRequired",defaultMessage:"You need to be logged in to continue."})}),(0,s.jsx)(p.A,{defaultForm:"signin",disableSignup:this.props.disableSignup})]})})}render(){let{LoggedInUser:e,loadingLoggedInUser:t,...o}=this.props;return(0,s.jsx)(h.A,{noRobots:!0,...o,children:this.renderContent(t,e)})}}let y=(0,g.Cb)(f)}},e=>{e.O(0,[1152,888,1507,924,2024,297,1321,6525,1596,5536,5956,533,552
260,7103,8235,4876,7147,9918,341,8545,7871,5192,8610,4550,266,9473,713,7357,8084,8407,636,6593,8792],()=>e(e.s=11850)),_N_E=e.O()}]); 27//# sourceMappingURL=collective-contact-d60f9d3ff0ea9921.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.