PageSourceSearch

https://opencollective.com/_next/static/chunks/pages/embed/contribution-flow-01c2fee1f25147fa.js

js opencollective.com collected 2026-09-24 08:35:11 UTC 6,378 bytes, 2 lines download raw bytes

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 r=arguments[t];if(null!=r)for(var o in r)r.hasOwnProperty(o)&&(e[o]=r[o])}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]="f56d3d43-71f3-405f-8be6-d7cfc9fe64c8",e._sentryDebugIdIdentifier="sentry-dbid-f56d3d43-71f3-405f-8be6-d7cfc9fe64c8")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8877],{3688:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/contribution-flow",function(){return r(84983)}])},16085:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var o=r(37876),s=r(14232),n=r(5646),i=r(23968),l=r(47537),a=r(69020);let c=(0,n.DU)(["body{overflow-y:auto;}body > div:first-child{height:100%;}"]),d=n.Ay.main.withConfig({componentId:"sc-5ab814fb-0"})(["margin:0;padding:0;height:100%;",""],i.yW),u=(0,a.Cb)(({children:e,description:t,title:r,canonicalURL:n,collective:i,backgroundColor:a})=>(0,o.jsxs)(s.Fragment,{children:[(0,o.jsx)(c,{}),(0,o.jsx)(l.A,{title:r,description:t,canonicalURL:n,collective:i,withTopBar:!1,noRobots:!0}),(0,o.jsx)(d,{backgroundColor:a,children:e})]}))},54428:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var o=r(37876),s=r(14232),n=r(95062),i=r.n(n),l=r(64487),a=r(6612),c=r(47221),d=r(38333),u=r(64656),p=r(5646),h=r(71321),g=r(78640),f=r(34583),m=r(10651);class y extends s.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,r=this.state.newPrimaryColor||(0,l.A)(e,"settings.collectivePage.primaryColor"),n=this.getPalette(r);return(0,o.jsxs)(p.NP,{theme:this.getTheme(r),children:["function"==typeof t?t({onPrimaryColorChange:this.onPrimaryColorChange}):(0,o.jsx)(s.Fragment,{children:t}),(0,o.jsx)(m.A,{palette:n})]})}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,h.isHexColor)(e))return console.warn(`Invalid custom color: ${e}`),f.A.primary;{let t=this.adjustColorContrast(e),r=(0,u.J1)(t),o=r<.05?-.1:r/5,s=e=>(0,u.iv)((0,a.A)(e+o,0,.97),t);return{900:s(.1),800:s(.2),700:s(.3),600:s(.42),500:s(.5),400:s(.6),300:s(.65),200:s(.72),100:s(.92),50:s(.97),base:e}}}),this.getTheme=(0,d.A)(e=>{if(!e)return g.A;if(!(0,h.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)}}},84983:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>T});var o=r(37876),s=r(14232),n=r(99525),i=r(64487),l=r(94772),a=r(10611),c=r(89099),d=r(2948),u=r(33123),p=r(87058),h=r(6435),g=r(48519),f=r(54428),m=r(56593),y=r(33370),b=r(30924),A=r(91627),w=r(82393),v=r(69064),C=r(16085),_=r(8545),P=r(99202),x=r(98064),I=r(17204),j=r(69020),M=r(85418);class E extends s.Component{static getInitialProps({query:e,res:t}){return t&&t.removeHeader("X-Frame-Options"),{collectiveSlug:e.eventSlug||e.collectiveSlug,tierId:parseInt(e.tierId)||null,error:e.error,queryParams:w.H_.decode(e)}}componentDidMount(){this.loadExternalScripts();let{router:e,data:t}=this.props,r=t?.account,o=e.asPath.replace(RegExp(`^/embed/${r?.slug}/`),"/");(0,p.Bb)(e,r,o,void 0,{prefix:"/embed"}),this.postMessage("initialized"),window.addEventListener("resize",this.onResize)}componentDidUpdate(e){let t="data.account.host";(0,i.A)(this.props,t)!==(0,i.A)(e,t)&&this.loadExternalScripts(),this.props.LoggedInUser&&!e.LoggedInUser&&this.props.data.refetch()}componentWillUnmount(){window.removeEventListener("resize",this.onResize)}postMessage(e,t=null){if(window.parent)try{let r={height:document.body.scrollHeight,width:document.body.scrollWidth},o={event:e,size:r};t&&(o.payload=t),window.parent.postMessage(o,"*")}catch(e){console.error("Post message failed",e)}}loadExternalScripts(){(0,i.A)(this.props.data,"account.host.supportedPaymentMethods",[]).includes(u.RTb.CREDIT_CARD)&&this.props.loadStripe()}getPageMetadata(){let{intl:e,data:t}=this.props;return{...(0,v.i)(e,t?.account,t?.tier),canonicalURL:null}}renderPageContent(){let{data:e,LoggedInUser:t}=this.props,{account:r,tier:s,loading:n,me:i}=e||{};if(n)return(0,o.jsx)(m.A,{py:[5,6],children:(0,o.jsx)(x.A,{})});let c=(0,y.tg)(t,r,s,!!this.props.tierId);return c?(0,o.jsx)(y.Ay,{blocker:c,account:r}):(0,o.jsx)(P.az,{height:"100%",pt:3,children:(0,o.jsx)(A.A,{isEmbed:!0,collective:r,host:r.host,tier:s,error:this.props.error,contributorProfiles:i?.contributorProfiles||[],onStepChange:e=>this.postMessage("stepChange",{step:e,height:document.body.scrollHeight,width:document.body.scrollWidth}
1),onSuccess:e=>this.postMessage("success",{order:{id:e.id,legacyId:e.legacyId,status:e.status,frequency:e.frequency,amount:(0,l.A)(e.amount,["__typename"]),platformTipAmount:(0,l.A)(e.platformTipAmount,["__typename"]),tier:e.tier?(0,a.A)(e.tier,["id"]):null,fromAccount:(0,a.A)(e.fromAccount,["id"]),toAccount:(0,a.A)(e.toAccount,["id"])}})})})}render(){let{data:e,queryParams:t}=this.props;if(e.loading||e.account)if(!e.loading&&e.account&&(0,h._w)(e.account))return(0,o.jsx)(M.default,{});else return(0,o.jsx)(f.A,{collective:t.useTheme?e.account:null,children:(0,o.jsx)(C.A,{backgroundColor:t.backgroundColor,children:this.renderPageContent()})});{let t=e.error?(0,d.P1)(e.error):(0,d.hK)(this.props.collectiveSlug);return(0,o.jsx)(_.A,{error:t})}}constructor(...e){super(...e),this.onResize=()=>{this.postMessage("resized")}}}let T=(0,n.U)(b.e,{options:e=>({variables:{collectiveSlug:e.collectiveSlug,tierId:e.tierId,includeTier:!!e.tierId}})})((0,j.Cb)((0,g.A)((0,I.$)((0,c.withRouter)(E)))))}},e=>{e.O(0,[888,1507,924,2024,297,1321,6525,1596,5956,533,3337,5520,8235,5303,8122,6091,7147,9918,341,8545,7871,5192,8610,4550,266,9473,1636,1295,8407,636,6593,8792],()=>e(e.s=3688)),_N_E=e.O()}]);
2//# sourceMappingURL=contribution-flow-01c2fee1f25147fa.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.