1/*! For license information please see 23.9b54b1f3.chunk.js.LICENSE.txt */ 2(this.webpackJsonpoptimx_sports_client_website=this.webpackJsonpoptimx_sports_client_website||[]).push([[23],{310:function(t,e,r){"use strict";var n=r(0),o=r(130),i=r(3),a=r(20),c=r(95),l=r(1),s=function(t){var e=t.title,r=t.pageTitle,s=t.description,u=t.keywords,p=Object(n.useContext)(a.b).globalState;return Object(l.jsxs)(o.a,{children:[Object(i.f)(e)?Object(l.jsx)("title",{children:e}):null,Object(i.f)(s)?Object(l.jsx)("meta",{name:"description",content:s}):null,Object(i.f)(u)?Object(l.jsx)("meta",{name:"keywords",content:u}):null,Object(i.f)(r)&&Object(i.d)(p)&&Object(i.d)(p.accountObject)&&Object(i.f)(p.accountObject.url)?Object(l.jsx)("script",{type:"application/ld+json",children:'\n {\n "@context": "https://schema.org",\n "@type": "BreadcrumbList",\n "itemListElement": [{\n "@type": "ListItem",\n "position": 1,\n "name": "Home",\n "item": "'.concat(p.accountObject.url,'/"\n },{\n "@type": "ListItem",\n "position": 2,\n "name": "').concat(r,'"\n }]\n }\n ')}):null,Object(i.d)(p)&&Object(i.d)(p.accountObject)&&Object(i.f)(p.accountObject.url)?Object(l.jsx)("link",{rel:"canonical",href:"".concat(p.accountObject.url).concat(window.location.pathname)}):null,Object(i.f)(e)?Object(l.jsx)("meta",{name:"twitter:title",content:e}):null,Object(i.f)(s)?Object(l.jsx)("meta",{name:"twitter:description",content:s}):null,Object(i.d)(p)&&Object(i.d)(p.socials)&&Object(i.f)(p.socials.twitterURL)?Object(l.jsx)("meta",{name:"twitter:site",content:"@".concat(Object(c.p)(p.socials.twitterURL))}):null,Object(i.f)(e)?Object(l.jsx)("meta",{property:"og:title",content:e}):null,Object(i.f)(s)?Object(l.jsx)("meta",{property:"og:description",content:s}):null]})};s.defaultProps={pageTitle:""},e.a=Object(n.memo)(s)},311:function(t,e,r){"use strict";var n=r(0),o=r(324),i=r(323),a=r(332),c=r(20),l=(r(312),r(1)),s=function(t){var e=t.links,r=t.lastCrumb,s=t.marginLeft,u=t.marginTop,p=t.fontColor,f=Object(n.useContext)(c.b).globalState;return Object(l.jsxs)(o.a,{className:"alegreya-font-family font-weight-700 breadcrumbs1-container text-uppercase font-size-s",style:{marginLeft:s,marginTop:u,color:"normal"===p?f.websiteStyles.colors.primaryColor:p},separator:"\u203a","aria-label":"breadcrumb",children:[e.map((function(t){return Object(l.jsx)(i.a,{color:"inherit",href:t.link,children:t.title},t.link)})),Object(l.jsx)(a.a,{className:"alegreya-font-family font-weight-700 font-size-s",children:r})]})};s.defaultProps={marginLeft:"100px",marginTop:"280px",fontColor:"normal"},e.a=Object(n.memo)(s)},312:function(t,e,r){},315:function(t,e,r){"use strict";r.d(e,"q",(function(){return n})),r.d(e,"l",(function(){return o})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return c})),r.d(e,"j",(function(){return l})),r.d(e,"k",(function(){return s})),r.d(e,"f",(function(){return u})),r.d(e,"g",(function(){return p})),r.d(e,"d",(function(){return f})),r.d(e,"e",(function(){return h})),r.d(e,"h",(function(){return m})),r.d(e,"i",(function(){return d})),r.d(e,"m",(function(){return b})),r.d(e,"n",(function(){return y})),r.d(e,"o",(function(){return v})),r.d(e,"p",(function(){return g}));var n="Please wait for the images to load before opening each image",o="Player not found",i="Coach not found",a="This article is not available anymore",c="This article is not available at the moment",l="This gallery is not available anymore",s="This gallery is not available at the moment",u="This event is not available anymore",p="This event is not available at the moment",f="This web page is not available anymore",h="This web page is not available at the moment",m="This form is not available anymore",d="This form is not available at the moment",b="This product is not available anymore",y="This product is not available at the moment",v="This product is out of stock",g="Please access this website again using your portal"},316:function(t,e,r){"use strict";var n=r(0),o=(r(318),r(1)),i=function(t){var e=t.text;return Object(o.jsx)("div",{className:"placeholder-component1 alegreya-font-family p-t-20px p-b-20px font-size-3xl font-weight-800 text-uppercase text-center-align",children:Object(o.jsx)("p",{children:e})})};e.a=Object(n.memo)(i)},317:function(t,e,r){"use strict";var n=r(0),o=r(3),i=r(20),a=(r(321),r(1)),c=function(t){var e=t.title,r=t.useH1,c=Object(n.useContext)(i.b).globalState;return Object(a.jsxs)("div",{className:"title1 full-width",children:[r?Object(a.jsx)("h1",{className:"alegreya-font-family font-size-5xl text-uppercase m-t-0 m-b-0 font-weight-800 text-left-align",children:e}):Object(a.jsx)("p",{className:"alegreya-font-family font-size-5xl text-uppercase m-t-0 m-b-0 font-weight-800 text-left-align",children:e}),Object(o.d)(c.logo)&&Object(o.f)(c.logo.logo3)?Object(a.jsx)("img",{className:"title1-logo",src:c.logo.logo3,alt:Object(o.f)(c.teamName)?c.teamName:"Team Logo"}):null]})};c.defaultProps={useH1:!0},e.a=Object(n.memo)(c)},318:function(t,e,r){},319:function(t,e,r){"use strict";var n=r(0),o=r(379),i=(r(343),r(20)),a=r(3),c=r(19),l=r(1),s=function(t){var e=t.title,r=t.image,s=t.url,u=t.shareTitle,p=t.center,f=t.marginTop,h=t.marginBottom,m=t.marginLeft,d=t.mobileMarginTop,b=t.mobileMarginBottom,y=t.mobileMarginLeft,v=Object(n.useContext)(i.b).globalState,g=function(){return Object(a.d)(v)&&Object(a.d)(v.socials)&&Object(a.f)(v.socials.sharingHashTags)?v.socials.sharingHashTags.replace(/\s/g,"").replace(/#\b/g,"").split(","):[]};return Object(l.jsxs)("div",{className:"share-component-1-container",children:[Object(l.jsxs)("div",{className:"share-component-1 share-component-1-desktop ".concat(p?"share-component-1-center":"share-component-1-left"," m-t-").concat(f,"px m-b-").concat(h,"px m-l-").concat(m,"px"),children:[Object(l.jsx)(o.c,{
2className:"button m-r-10px",url:s,quote:u,description:u,onClick:function(){Object(c.d)("share",{socialMedium:"facebook",socialTitle:e.toLowerCase()})},children:Object(l.jsx)(o.b,{size:50,round:!0})}),Object(l.jsx)(o.l,{className:"button m-r-10px",title:u,url:s,hashtags:g(),onClick:function(){Object(c.d)("share",{socialMedium:"twitter",socialTitle:e.toLowerCase()})},children:Object(l.jsx)(o.o,{size:50,round:!0})}),Object(l.jsx)("a",{className:"button m-r-10px",href:"mailto:?subject=".concat(u,"&body=").concat(u,": ").concat(s),onClick:function(){Object(c.d)("share",{socialMedium:"email",socialTitle:e.toLowerCase()})},children:Object(l.jsx)(o.a,{size:50,round:!0})}),Object(l.jsx)(o.n,{className:"button m-r-10px",title:u,url:s,onClick:function(){Object(c.d)("share",{socialMedium:"whatsapp",socialTitle:e.toLowerCase()})},children:Object(l.jsx)(o.m,{size:50,round:!0})}),Object(l.jsx)(o.e,{className:"button m-r-10px",title:u,summary:u,source:s,url:s,onClick:function(){Object(c.d)("share",{socialMedium:"linkedin",socialTitle:e.toLowerCase()})},children:Object(l.jsx)(o.d,{size:50,round:!0})}),Object(l.jsx)(o.i,{className:"button m-r-10px",title:u,summary:u,source:s,url:s,onClick:function(){Object(c.d)("share",{socialMedium:"reddit",socialTitle:e.toLowerCase()})},children:Object(l.jsx)(o.h,{size:50,round:!0})}),Object(l.jsx)(o.k,{className:"button m-r-10px",title:u,summary:u,source:s,url:s,onClick:function(){Object(c.d)("share",{socialMedium:"tumblr",socialTitle:e.toLowerCase()})},children:Object(l.jsx)(o.j,{size:50,round:!0})}),Object(a.f)(r)?Object(l.jsx)(o.g,{className:"button m-r-10px",title:u,summary:u,source:s,url:s,media:r,onClick:function(){Object(c.d)("share",{socialMedium:"pinterest",socialTitle:e.toLowerCase()})},children:Object(l.jsx)(o.f,{size:50,round:!0})}):null]}),Object(l.jsxs)("div",{className:"share-component-1 share-component-1-mobile ".concat(p?"share-component-1-center":"share-component-1-left"," m-t-").concat(d,"px m-b-").concat(b,"px m-l-").concat(y,"px"),children:[Object(l.jsx)(o.c,{
2className:"button m-r-10px",url:s,quote:u,hashtag:function(){if(Object(a.d)(v)&&Object(a.d)(v.socials)&&Object(a.f)(v.socials.sharingHashTags)){var t=v.socials.sharingHashTags.replace(/\s/g,"").replace(/#\b/g,"").split(",");return"#".concat(t.join(" #"))}return""}(),description:u,onClick:function(){Object(c.d)("share",{socialMedium:"facebook",socialTitle:e.toLowerCase()})},children:Object(l.jsx)(o.b,{size:35,round:!0})}),Object(l.jsx)(o.l,{className:"button m-r-10px",title:u,url:s,hashtags:g(),onClick:function(){Object(c.d)("share",{socialMedium:"twitter",socialTitle:e.toLowerCase()})},children:Object(l.jsx)(o.o,{size:35,round:!0})}),Object(l.jsx)("a",{className:"button m-r-10px",href:"mailto:?subject=".concat(u,"&body=").concat(u,": ").concat(s),onClick:function(){Object(c.d)("share",{socialMedium:"email",socialTitle:e.toLowerCase()})},children:Object(l.jsx)(o.a,{size:35,round:!0})}),Object(l.jsx)(o.n,{className:"button m-r-10px",title:u,url:s,onClick:function(){Object(c.d)("share",{socialMedium:"whatsapp",socialTitle:e.toLowerCase()})},children:Object(l.jsx)(o.m,{size:35,round:!0})}),Object(l.jsx)(o.e,{className:"button m-r-10px",title:u,summary:u,source:s,url:s,onClick:function(){Object(c.d)("share",{socialMedium:"linkedin",socialTitle:e.toLowerCase()})},children:Object(l.jsx)(o.d,{size:35,round:!0})}),Object(l.jsx)(o.i,{className:"button m-r-10px",title:u,summary:u,source:s,url:s,onClick:function(){Object(c.d)("share",{socialMedium:"reddit",socialTitle:e.toLowerCase()})},children:Object(l.jsx)(o.h,{size:35,round:!0})})]})]})};s.defaultProps={image:"",center:!1,marginTop:10,marginBottom:10,marginLeft:50,mobileMarginTop:10,mobileMarginBottom:10,mobileMarginLeft:10},e.a=Object(n.memo)(s)},321:function(t,e,r){},332:function(t,e,r){"use strict";var n=r(5),o=r(8),i=r(0),a=r(12),c=r(17),l=r(25),s={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},u=i.forwardRef((function(t,e){var r=t.align,c=void 0===r?"inherit":r,u=t.classes,p=t.className,f=t.color,h=void 0===f?"initial":f,m=t.component,d=t.display,b=void 0===d?"initial":d,y=t.gutterBottom,v=void 0!==y&&y,g=t.noWrap,j=void 0!==g&&g,O=t.paragraph,x=void 0!==O&&O,w=t.variant,T=void 0===w?"body1":w,E=t.variantMapping,L=void 0===E?s:E,N=Object(o.a)(t,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),S=m||(x?"p":L[T]||s[T])||"span";return i.createElement(S,Object(n.a)({className:Object(a.a)(u.root,p,"inherit"!==T&&u[T],"initial"!==h&&u["color".concat(Object(l.a)(h))],j&&u.noWrap,v&&u.gutterBottom,x&&u.paragraph,"inherit"!==c&&u["align".concat(Object(l.a)(c))],"initial"!==b&&u["display".concat(Object(l.a)(b))]),ref:e},N))}));e.a=Object(c.a)((function(t){return{root:{margin:0},body2:t.typography.body2,body1:t.typography.body1,caption:t.typography.caption,button:t.typography.button,h1:t.typography.h1,h2:t.typography.h2,h3:t.typography.h3,h4:t.typography.h4,h5:t.typography.h5,h6:t.typography.h6,subtitle1:t.typography.subtitle1,subtitle2:t.typography.subtitle2,overline:t.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorTextPrimary:{color:t.palette.text.primary},colorTextSecondary:{color:t.palette.text.secondary},colorError:{color:t.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(u)},343:function(t,e,r){},402:function(t,e,r){"use strict";var n;r.d(e,"a",(function(){return n})),function(t){t[t.NONE=0]="NONE",t[t.TEXT=1]="TEXT",t[t.TEXTFIELD_TEXT=2]="TEXTFIELD_TEXT",t[t.TEXTFIELD_MULTILINE_TEXT=3]="TEXTFIELD_MULTILINE_TEXT",t[t.TEXTFIELD_NUMBER=4]="TEXTFIELD_NUMBER",t[t.TEXTFIELD_DATE=5]="TEXTFIELD_DATE",t[t.SELECT_OPTIONS=6]="SELECT_OPTIONS"}(n||(n={}))},412:function(t,e,r){"use strict";var n=r(5),o=r(23),i=r(8),a=r(9),c=r(0),l=r(33),s=r(12),u=r(250),p=r(42),f=r(17),h=r(25),m=r(295),d=r(301),b=r(26),y=r(138),v=r(58),g=r(101),j=r(87),O=r(49);function x(t){return Math.round(1e5*t)/1e5}var w=!1,T=null;var E=c.forwardRef((function(t,e){var r=t.arrow,a=void 0!==r&&r,p=t.children,f=t.classes,x=t.disableFocusListener,E=void 0!==x&&x,L=t.disableHoverListener,N=void 0!==L&&L,S=t.disableTouchListener,C=void 0!==S&&S,I=t.enterDelay,k=void 0===I?100:I,_=t.enterNextDelay,P=void 0===_?0:_,F=t.enterTouchDelay,M=void 0===F?700:F,A=t.id,R=t.interactive,z=void 0!==R&&R,D=t.leaveDelay,B=void 0===D?0:D,G=t.leaveTouchDelay,X=void 0===G?1500:G,q=t.onClose,W=t.onOpen,H=t.open,U=t.placement,$=void 0===U?"bottom":U,Y=t.PopperComponent,J=void 0===Y?d.a:Y,K=t.PopperProps,V=t.title,Q=t.TransitionComponent,Z=void 0===Q?m.a:Q,tt=t.TransitionProps,et=Object(i.a)(t,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),rt=Object(O.a)(),nt=c.useState(),ot=nt[0],it=nt[1],at=c.useState(null),ct=at[0],lt=at[1],st=c.useRef(!1),ut=c.useRef(),pt=c.useRef(),ft=c.useRef(),ht=c.useRef(),mt=Object(j.a)({controlled:H,default:!1,name:"Tooltip",state:"open"}),dt=Object(o.a)(mt,2),bt=dt[0],yt=dt[1],vt=bt,gt=Object(y.a)(A);c.useEffect((function(){return function(){clearTimeout(ut.current),clearTimeout(pt.current),clearTimeout(ft.current),clearTimeout(ht.current)}}),[]);var jt=function(t){clearTimeout(T),w=!0,yt(!0),W&&W(t)},Ot=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(e){var r=p.props;"mouseover"===e.type&&r.onMouseOver&&t&&r.onMouseOver(e),st.current&&"touchstart"!==e.type||(ot&&ot.removeAttribute("title"),clearTimeout(pt.current),clearTimeout(ft.current),k||w&&P?(e.persist(),pt.current=setTimeout((function(){jt(e)}),w?P:k)):jt(e))}},xt=Object(g.a)(),wt=xt.isFocusVisible,Tt=xt.onBlurVisible,Et=xt.ref,Lt=c.useState(!1),Nt=Lt[0],St=Lt[1],Ct=function(){Nt&&(St(!1),Tt())},It=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(e){ot||it(e.currentTarget),wt(e)&&(St(!0),Ot()(e));var r=p.props;r.onFocus&&t&&r.onFocus(e)}},kt=function(t){clearTimeout(T),T=setTimeout((function(){w=!1}),800+B),yt(!1),q&&q(t),clearTimeout(ut.current),ut.current=setTimeout((function(){st.current=!1}),rt.transitions.duration.shortest)},_t=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(e){var r=p.props;"blur"===e.type&&(r.onBlur&&t&&r.onBlur(e),Ct()),"mouseleave"===e.type&&r.onMouseLeave&&e.currentTarget===ot&&r.onMouseLeave(e),clearTimeout(pt.current),clearTimeout(ft.current),e.persist(),ft.current=setTimeout((function(){kt(e)}),B)}},Pt=function(t){st.current=!0;var e=p.props;e.onTouchStart&&e.onTouchStart(t)},Ft=Object(b.a)(it,e),Mt=Object(b.a)(Et,Ft),At=c.useCallback((function(t){Object(v.a)(Mt,l.findDOMNode(t))}),[Mt]),Rt=Object(b.a)(p.ref,At);""===V&&(vt=!1);var zt=!vt&&!N,Dt=Object(n.a)({"aria-describedby":vt?gt:null,title:zt&&"string"===typeof V?V:null},et,p.props,{className:Object(s.a)(et.className,p.props.className),onTouchStart:Pt,ref:Rt}),Bt={};C||(Dt.onTouchStart=function(t){Pt(t),clearTimeout(ft.current),clearTimeout(ut.current),clearTimeout(ht.current),t.persist(),ht.current=setTimeout((function(){Ot()(t)}),M)},Dt.onTouchEnd=function(t){p.props.onTouchEnd&&p.props.onTouchEnd(t),
2clearTimeout(ht.current),clearTimeout(ft.current),t.persist(),ft.current=setTimeout((function(){kt(t)}),X)}),N||(Dt.onMouseOver=Ot(),Dt.onMouseLeave=_t(),z&&(Bt.onMouseOver=Ot(!1),Bt.onMouseLeave=_t(!1))),E||(Dt.onFocus=It(),Dt.onBlur=_t(),z&&(Bt.onFocus=It(!1),Bt.onBlur=_t(!1)));var Gt=c.useMemo((function(){return Object(u.a)({popperOptions:{modifiers:{arrow:{enabled:Boolean(ct),element:ct}}}},K)}),[ct,K]);return c.createElement(c.Fragment,null,c.cloneElement(p,Dt),c.createElement(J,Object(n.a)({className:Object(s.a)(f.popper,z&&f.popperInteractive,a&&f.popperArrow),placement:$,anchorEl:ot,open:!!ot&&vt,id:Dt["aria-describedby"],transition:!0},Bt,Gt),(function(t){var e=t.placement,r=t.TransitionProps;return c.createElement(Z,Object(n.a)({timeout:rt.transitions.duration.shorter},r,tt),c.createElement("div",{className:Object(s.a)(f.tooltip,f["tooltipPlacement".concat(Object(h.a)(e.split("-")[0]))],st.current&&f.touch,a&&f.tooltipArrow)},V,a?c.createElement("span",{className:f.arrow,ref:lt}):null))})))}));e.a=Object(f.a)((function(t){return{popper:{zIndex:t.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:Object(p.c)(t.palette.grey[700],.9),borderRadius:t.shape.borderRadius,color:t.palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(10),lineHeight:"".concat(x(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:Object(p.c)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:"".concat(x(16/14),"em"),fontWeight:t.typography.fontWeightRegular},tooltipPlacementLeft:Object(a.a)({transformOrigin:"right center",margin:"0 24px "},t.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:Object(a.a)({transformOrigin:"left center",margin:"0 24px"},t.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:Object(a.a)({transformOrigin:"center bottom",margin:"24px 0"},t.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:Object(a.a)({transformOrigin:"center top",margin:"24px 0"},t.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip",flip:!1})(E)},416:function(t,e,r){"use strict";r.d(e,"c",(function(){return l})),r.d(e,"b",(function(){return s})),r.d(e,"d",(function(){return u})),r.d(e,"a",(function(){return p}));var n=r(4),o=r(402),i=r(146),a=r(13),c=r(3),l=function(t,e,r,i){return i.map((function(t){return t.type===o.a.TEXT?Object(n.a)(Object(n.a)({},t),{},{text:t.text.replaceAll("$$##{organizationName}",r).replaceAll("$$##{teamName}",r).replaceAll("$$##{newLine}","\n")}):t.type===o.a.TEXTFIELD_TEXT||o.a.TEXTFIELD_NUMBER||o.a.TEXTFIELD_DATE||o.a.TEXTFIELD_MULTILINE_TEXT||o.a.SELECT_OPTIONS?Object(n.a)(Object(n.a)({},t),{},{title:t.title.replaceAll("$$##{organizationName}",r).replaceAll("$$##{teamName}",r),subtitle:t.subtitle.replace("$$##{organizationName}",r).replace("$$##{teamName}",r),helperText:t.helperText.replace("$$##{organizationName}",r).replace("$$##{teamName}",r)}):t}))},s=function(t,e,r){return Object(c.d)(t)&&Object(c.d)(t.emails)&&0!==t.emails.length?t.emails.filter((function(e){return!Object(c.d)(t.emailsNotAllowed[r])||(0===t.emailsNotAllowed[r].length||!t.emailsNotAllowed[r].includes(e.id))})).map((function(t){return t.email})):[e]},u=function(t,e,r){return t!==i.a.NONE&&t!==i.a.OTHER&&t!==i.a.CUSTOM_FORM&&t!==i.a.CUSTOM_PLAYER_DUES_FORM&&t!==i.a.CUSTOM_SPONSORSHIP_FORM&&t!==i.a.CUSTOM_DONATION_FORM?Object(i.b)(t):t===i.a.NONE||t===i.a.OTHER?"Unkown Form":e.toLowerCase().includes("form")?r?"".concat(e,"(").concat(Object(i.b)(t),")"):e:r?"".concat(e," Form(").concat(Object(i.b)(t),")"):"".concat(e," Form")},p=function(t){return t===a.a.WOMENSICEHOCKEY?"contact-us-form-womens-hockey":t===a.a.MENSICEHOCKEY?"contact-us-form-mens-hockey":t===a.a.WOMENSRUGBY?"contact-us-form-womens-rugby":t===a.a.MENSRUGBY?"contact-us-form-mens-rugby":t===a.a.WOMENSLACROSSE?"contact-us-form-womens-lacrosse"
2:t===a.a.MENSLACROSSE?"contact-us-form-mens-lacrosse":t===a.a.WOMENSBASEBALL?"contact-us-form-womens-baseball":t===a.a.MENSBASEBALL?"contact-us-form-mens-baseball":""}},460:function(t,e,r){"use strict";var n=r(0),o=r(1),i={position:"absolute",left:"-9999px",width:"1px",height:"1px",overflow:"hidden"},a=function(t){var e=t.value,r=t.onChange;return Object(o.jsx)("div",{style:i,"aria-hidden":"true",children:Object(o.jsx)("input",{type:"text",name:"extra_info",tabIndex:-1,autoComplete:"off",value:e,onChange:function(t){r(t.target.value)}})})};e.a=Object(n.memo)(a)},461:function(t,e,r){"use strict";r.d(e,"a",(function(){return h})),r.d(e,"b",(function(){return m}));var n,o,i=r(10),a=r(18),c=r(19),l=r(14),s=r(41),u=r(2),p=r(3);function f(){f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),c=new I(n||[]);return o(a,"_invoke",{value:L(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",m="executing",d="completed",b={};function y(){}function v(){}function g(){}var j={};s(j,a,(function(){return this}));var O=Object.getPrototypeOf,x=O&&O(O(k([])));x&&x!==r&&n.call(x,a)&&(j=x);var w=g.prototype=y.prototype=Object.create(j);function T(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,c){var l=p(t[o],t,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==typeof u&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(u).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=h;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=N(c,n);if(l){if(l===b)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var s=p(e,r,n);if("normal"===s.type){if(o=n.done?d:"suspendedYield",s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function N(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,N(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(typeof e+" is not iterable")}return v.prototype=g,o(w,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:v,configurable:!0}),v.displayName=s(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,l,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},T(E.prototype),s(E.prototype,c,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Prom
2ise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(w),s(w,l,"Generator"),s(w,a,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=k,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:k(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}var h=function(t,e,r,o,h,m,d,b,y,v,g,j,O,x,w,T){return(n=n||Object(i.a)(f().mark((function t(e,r,n,o,i,h,m,d,b,y,v,g,j,O,x,w){var T,E,L,N,S;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,T=Object(s.c)(),E={id:T,formId:o,formType:i,formTitle:h,teamId:r,organizationId:e,emails:m,adminEmails:d,otherOptions:JSON.stringify(b),read:!1,replied:!1,deleted:!1,version:"v2",sportsType:n},L=a.c.httpsCallable("onFormCheckout"),t.next=6,L({stripeAccountId:j,stripePrices:O,formObject:E,successUrl:x,cancelUrl:w});case 6:N=t.sent,S=N.data,Object(p.b)(S.optimXSuccess)?S.optimXSuccess?(v(l.S,{variant:"success"}),y({type:"setDataChanged",dataChanged:!1}),Object(c.g)(i,d),g.replace("/")):v(l.R,{variant:"error"}):window.location.assign(S.url),t.next=15;break;case 11:t.prev=11,t.t0=t.catch(0),Object(c.e)(l.R),u.c&&(v(l.R,{variant:"error"}),console.log(t.t0));case 15:case"end":return t.stop()}}),t,null,[[0,11]])})))).apply(this,arguments)},m=function(t,e,r,n,h,m,d,b,y,v){return(o=o||Object(i.a)(f().mark((function t(e,r,n,o,i,h,m,d,b,y){var v,g,j,O,x;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,v=Object(s.c)(),g={id:v,formId:o,formType:i,formTitle:h,teamId:r,organizationId:e,emails:[],adminEmails:m,otherOptions:JSON.stringify(d),read:!1,replied:!1,deleted:!1,version:"v2",sportsType:n},j=a.c.httpsCallable("onFormCheckout"),t.next=6,j({stripeAccountId:"",stripePrices:[],formObject:g,successUrl:"",cancelUrl:""});case 6:O=t.sent,x=O.data,Object(p.b)(x.optimXSuccess)&&x.optimXSuccess&&(y(l.S,{variant:"success"}),b({type:"setDataChanged",dataChanged:!1}),Object(c.g)(i,m)),t.next=15;break;case 11:t.prev=11,t.t0=t.catch(0),Object(c.e)(l.R),u.c&&(y(l.R,{variant:"error"}),console.log(t.t0));case 15:case"end":return t.stop()}}),t,null,[[0,11]])})))).apply(this,arguments)}},635:function(t,e,r){},636:function(t,e,r){},682:function(t,e,r){"use strict";r.r(e);
vendor: 4,335 bytes, line 2
2var n,o,i=r(10),a=r(23),c=r(4),l=r(0),s=r.n(l),u=r(39),p=r(36),f=r(3),h=r(20),m=r(85),d=r(310),b=r(19),y=r(14),v=r(2),g=r(416),j=r(18),O=function(t){return j.b.collection("teams/".concat(t,"/custom-forms"))},x=function(t,e){return function(t,e){return O(t).doc(e)}(t,e).get()},w=function(){return j.b.collection("pre-developed-forms")},T=function(t){return function(t){return w().doc(t)}(t).get()};function E(){E=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new I(n||[]);return o(a,"_invoke",{value:L(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",h="executing",m="completed",d={};function b(){}function y(){}function v(){}var g={};s(g,a,(function(){return this}));var j=Object.getPrototypeOf,O=j&&j(j(k([])));O&&O!==r&&n.call(O,a)&&(g=O);var x=v.prototype=b.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(o,i,a,c){var l=p(t[o],t,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==typeof u&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(u).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=f;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=N(c,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var s=p(e,r,n);if("normal"===s.type){if(o=n.done?m:"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function N(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,N(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=v,o(x,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:y,configurable:!0}),y.displayName=s(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,s(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},w(T.prototype),s(T.prototype,c,(function(){return this})),e.AsyncIterator=T,e.async=function(t,r,n,o,i){void 0===i&&(i=Prom
2ise);var a=new T(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(x),s(x,l,"Generator"),s(x,a,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=k,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:k(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),d}},e}var L=function(t,e,r,o){return(n=n||Object(i.a)(E().mark((function t(e,r,n,o){var i,a,c,l,s,u,p;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,x(e,r);case 3:return a=t.sent,t.next=6,T(r);case 6:c=t.sent,a.exists&&(null===(i=a.data())||void 0===i?void 0:i.teamId)===e?(null===(l=a.data())||void 0===l?void 0:l.deleted)?(Object(b.e)(y.N),n({type:"setError"}),v.c&&o(y.N,{variant:"error"})):(s=a.data(),n({type:"fetchFormTitle",title:null===s||void 0===s?void 0:s.title})):c.exists?(null===(u=a.data())||void 0===u?void 0:u.deleted)?(Object(b.e)(y.N),n({type:"setError"}),v.c&&o(y.N,{variant:"error"})):(p=c.data(),n({type:"fetchFormTitle",title:null===p||void 0===p?void 0:p.title})):(Object(b.e)(y.N),n({type:"setError"}),v.c&&o(y.N,{variant:"error"})),t.next=15;break;case 10:t.prev=10,t.t0=t.catch(0),Object(b.e)(y.v),n({type:"setError"}),v.c&&o(y.v,{variant:"error"});case 15:case"end":return t.stop()}}),t,null,[[0,10]])})))).apply(this,arguments)},N=function(t,e,r,n,a,c,l){return(o=o||Object(i.a)(E().mark((function t(e,r,n,o,i,a,c){var l,s,u,p,h,m,d;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,x(n,i);case 3:return s=t.sent,t.next=6,T(i);case 6:u=t.sent,s.exists&&(null===(l=s.data())||void 0===l?void 0:l.teamId)===n?(null===(p=s.data())||void 0===p?void 0:p.deleted)?(Object(b.e)(y.N),a({type:"setError"}),v.c&&c(y.N,{variant:"error"})):(h=s.data(),a({type:"fetchForm",title:null===h||void 0===h?void 0:h.title,formType:null===h||void 0===h?void 0:h.formType,description:null===h||void 0===h?void 0:h.description,notes:null===h||void 0===h?void 0:h.notes,published:null===h||void 0===h?void 0:h.published,isCustom:null===h||void 0===h?void 0:h.isCustom,content:null===h||void 0===h?void 0:h.content,paymentContent:Object(f.d)(null===h||void 0===h?void 0:h.paymentContent)?null===h||void 0===h?void 0:h.paymentContent:[]})):u.exists?(null===(m=s.data())||void 0===m?void 0:m.deleted)?(Object(b.e)(y.N),a({type:"setError"}),v.c&&c(y.N,{variant:"error"})):(d=u.data(),a({type:"fetchForm",title:null===d||void 0===d?void 0:d.title,formType:null===d||void 0===d?void 0:d.formType,description:null===d||void 0===d?void 0:d.description,notes:null===d||void 0===d?void 0:d.notes,published:null===d||void 0===d?void 0:d.published,isCustom:null===d||void 0===d?void 0:d.isCustom,content:Object(g.c)(e,r,o,null===d||void 0===d?void 0:d.content),paymentContent:[]})):(Object(b.e)(y.N),a({type:"setError"}),v.c&&c(y.N,{variant:"error"})),t.next=15;break;case 10:t.prev=10,t.t0=t.catch(0),Object(b.e)(y.v),a({type:"setError"}),v.c&&c(y.v,{variant:"error"});case 15:case"end":return t.stop()}}),t,null,[[0,10]])})))).apply(this,arguments)},S=r(53),C=r(311),I=r(314),k=r(412),_=r(315),P=r(316),F=r(402),M=r(124),A=r(294),R=r(304),z=r(308),D=r(296),B=(r(635),r(1)),G=function(t){var e=t.title,r=t.options,n=t.required,o=t.error,i=t.halfWidth,a=t.helperText,c=t.value,l=t.onChange;return Object(B.jsxs)(A.a,{variant:"outlined",className:i?"half-width select-primary-color":"full-width select-primary-color",error:o,children:[Object(B.jsx)("p",{className:"select-title text-left-align m-t-0 m-b-0",children:"".concat(e).concat(n?"*":"")}),Object(B.jsxs)(R.a,{value:c,fullWidth:!0,error:o,onChange:l,required:n,children:[n?null:Object(B.jsx)(z.a,{value:"",children:"None"}),r.map((function(t){return Object(B.jsx)(z.a,{value:t.value,children:t.title},t.value)}))]}),a?Object(B.jsx)(D.a,{children:a}):null]})};G.defaultProps={required:!1,error:!1,halfWidth:!1,helperText:""};var X=Object(l.memo)(G),q=r(319),W=r(317),H=(r(636),r(84)),U=r(22),$=r(95),Y=r(46),J=r(28),K=r(460),V={trap:""};function Q(t,e){switch(e.type){case"reset":return Object(c.a)({},V);case"setTrap":return Object(c.a)(Object(c.a)({},t),{},{trap:e.trap});default:return V}}
2var Z=function(t){var e=t.id,r=t.title,n=t.formItems,o=t.formPaymentItems,i=t.paymentOptionSelected,m=t.deleted,d=t.published,v=t.savePressed,g=t.loadingSpinner,j=t.submissionLoadingSpinner,O=t.setState,x=t.saveHandler,w=Object(l.useContext)(h.b).globalState,T=Object(l.useReducer)(Q,V),E=Object(a.a)(T,2),L=E[0],N=E[1],C=Object(u.b)().enqueueSnackbar,A=Object(p.g)(),R=function(t,e){return Object(f.f)(t.stripePriceId)&&function(){var t=!1;return o.forEach((function(e){e.title&&(t=!0)})),t}()?Object(B.jsxs)("div",{className:"form-component1-payment-option-detailed",style:i===e?Object(c.a)({},Object(U.f)(w)):null,onClick:function(){O({type:"setPaymentOption",option:e})},children:[Object(B.jsxs)("div",{className:"form-component1-title",children:[Object(B.jsx)("p",{className:"normal-font-family font-size-xl font-weight-500 text-left-align text-uppercase m-t-0 m-b-20px",children:Object(f.f)(t.title)?t.title:"Payment Option: ".concat(Object(Y.d)(t.price))}),Object(B.jsx)("p",{className:"normal-font-family font-size-m font-weight-300 text-left-align m-t-0 m-b-0",children:Object(I.a)(Object(U.c)(t.description))})]}),Object(B.jsx)("div",{className:"form-component1-price ".concat(i===e?"selected":""),style:i===e?Object(c.a)(Object(c.a)({},Object(U.g)(w)),{},{borderColor:w.websiteStyles.colors.primaryColor}):null,onClick:function(){O({type:"setPaymentOption",option:e})},children:Object(B.jsx)("p",{className:"m-t-0 m-b-0",children:Object(Y.d)(t.price)})})]}):Object(f.f)(t.stripePriceId)&&function(){var t=!1;return o.forEach((function(e){e.title&&(t=!0)})),t}()?Object(B.jsx)(k.a,{title:t.description,placement:"top",arrow:!0,children:Object(B.jsx)("div",{className:"form-component1-payment-option ".concat(i===e?"selected":""),style:i===e?Object(c.a)(Object(c.a)({},Object(U.g)(w)),{},{borderColor:w.websiteStyles.colors.primaryColor}):null,onClick:function(){O({type:"setPaymentOption",option:e})},children:Object(B.jsx)("p",{className:"m-t-0 m-b-0",children:Object(Y.d)(t.price)})})}):Object(f.f)(t.stripePriceId)?Object(B.jsx)("div",{className:"form-component1-payment-option ".concat(i===e?"selected":""),style:i===e?Object(c.a)(Object(c.a)({},Object(U.g)(w)),{},{borderColor:w.websiteStyles.colors.primaryColor}):null,onClick:function(){O({type:"setPaymentOption",option:e})},children:Object(B.jsx)("p",{className:"m-t-0 m-b-0",children:Object(Y.d)(t.price)})}):null},z=function(t){return t.type===F.a.TEXT?Object(B.jsx)("div",{className:"text-left-align normal-font-family m-t-20px m-b-0 font-weight-400 line-height-wide font-spacing-wide full-width",children:Object(I.a)(Object(U.c)("".concat(t.text,"\n\n")))}):t.type===F.a.TEXTFIELD_TEXT?Object(B.jsx)(M.a,{title:t.title,halfWidth:t.halfWidth,required:t.required,helperText:t.helperText,error:v&&t.required&&!Object(f.f)(t.value),value:t.value,onChange:function(e){O({type:"setFormItem",id:t.id,value:e.target.value,valueTitle:e.target.value})}}):t.type===F.a.TEXTFIELD_DATE?Object(B.jsx)(M.a,{title:t.title,type:"date",halfWidth:t.halfWidth,required:t.required,helperText:t.helperText,error:v&&t.required&&!Object(f.f)(t.value),value:t.value,onChange:function(e){O({type:"setFormItem",id:t.id,value:e.target.value,valueTitle:e.target.value})}}):t.type===F.a.TEXTFIELD_NUMBER?Object(B.jsx)(M.a,{title:t.title,type:"number",halfWidth:t.halfWidth,required:t.required,helperText:t.helperText,error:v&&t.required&&!Object(f.f)(t.value),value:t.value,onChange:function(e){O({type:"setFormItem",id:t.id,value:e.target.value,valueTitle:e.target.value})}}):t.type===F.a.TEXTFIELD_MULTILINE_TEXT?Object(B.jsx)(M.a,{title:t.title,halfWidth:t.halfWidth,required:t.required,helperText:t.helperText,error:v&&t.required&&!Object(f.f)(t.value),rows:t.lines,value:t.value,onChange:function(e){O({type:"setFormItem",id:t.id,value:e.target.value,valueTitle:e.target.value})}}):t.type===F.a.SELECT_OPTIONS?Object(B.jsx)(X,{title:t.title,options:t.options.map((function(t){return{value:t.id,title:t.title}})),halfWidth:t.halfWidth,required:t.required,helperText:t.helperText,error:v&&t.required&&!Object(f.f)(t.value),value:t.value,onChange:function(e){var r="";t.options.forEach((function(t){t.id===e.target.value&&(r=t.title)})),O({type:"setFormItem",id:t.id,value:e.target.value,valueTitle:r})}}):null};return Object(B.jsxs)("div",{className:"form-component1-container box-shadow-black bg-white curve-border-20px x-center p-t-20px p-b-20px p-l-50px p-r-50px m-t-50px m-b-200px",children:[Object(B.jsx)(W.a,{title:r}),m||!d||o.length>0&&!Object(J.e)(w)?m?Object(B.jsx)(P.a,{text:_.h}):d?o.length>0&&!Object(J.e)(w)?Object(B.jsx)(P.a,{text:_.i}):null:Object(B.jsx)(P.a,{text:_.i}):Object(B.jsx)(B.Fragment,{children:g?Object(B.jsx)(S.a,{color:w.websiteStyles.colors.primaryColor}):Object(B.jsxs)(B.Fragment,{children:[Object(B.jsx)(q.a,{title:"Form",url:Object($.f)(w,e),shareTitle:Object($.e)(r,w.teamAlias),marginLeft:0,marginTop:0,marginBottom:50,mobileMarginTop:0,mobileMarginLeft:0,mobileMarginBottom:50}),Object(B.jsx)("p",{className:"text-left-align m-t-40px m-b-0px",children:"Fields marked with an * are required"}),Object(B.jsx)("div",{className:"form-component1-formtypes",children:n.map((function(t){return Object(B.jsx)(s.a.Fragment,{children:z(t)},t.id)}))}),o.length>1?Object(B.jsxs)(B.Fragment,{children:[Object(B.jsx)("p",{className:"textfield-title text-left-align m-t-50px m-b-0",style:{color:"gray"},children:"PAYMENT OPTIONS*"}),Object(B.jsx)("div",{className:"form-component1-payment-options",children:o.map((function(t,e){return Object(B.jsx)(s.a.Fragment,{children:R(t,e)},t.id)}))})]}):null,o.length>0?Object(B.jsxs)(B.Fragment,{children:[Y.c?Object(B.jsxs)(B.Fragment,{children:[Object(B.jsxs)("div",{className:"form-component1-subprice-footer-container m-t-30px",children:[Object(B.jsx)("p",{className:"form-component1-subprice-footer-total-label alegreya-font-family font-weight-800 font-size-2xl text-uppercase text-right-align m-t-0 m-b-0",children:"Subtotal:"}
2),Object(B.jsx)("p",{className:"form-component1-subprice-footer-total text-right-align m-t-0 m-b-0",children:Object(Y.f)(o[i].price)})]}),Object(B.jsxs)("div",{className:"form-component1-subprice-footer-container",children:[Object(B.jsx)("p",{className:"form-component1-subprice-footer-total-label alegreya-font-family font-weight-800 font-size-2xl text-uppercase text-right-align m-t-0 m-b-0",children:"Platform Fee:"}),Object(B.jsx)("p",{className:"form-component1-subprice-footer-total text-right-align m-t-0 m-b-0",children:Object(Y.b)(o[i].price)})]})]}):null,Object(B.jsxs)("div",{className:"form-component1-price-footer-container",children:[Object(B.jsx)("p",{className:"form-component1-price-footer-total-label alegreya-font-family font-weight-800 text-uppercase font-size-3xl text-center-align m-t-0 m-b-0",children:"Total:"}),Object(B.jsx)("p",{className:"form-component1-price-footer-total text-right-align m-t-0 m-b-0",children:Object(Y.d)(o[i].price)})]})]}):null,Object(B.jsxs)("div",{className:"form-component1-submit-row m-t-20px",children:[Object(B.jsx)(K.a,{value:L.trap,onChange:function(t){N({type:"setTrap",trap:t})}}),Object(B.jsx)(H.a,{title:o.length>0?"Pay now":"Submit",backgroundColor:w.websiteStyles.colors.primaryColor,borderColor:w.websiteStyles.colors.primaryColor,fontColor:Object(f.f)(w.websiteStyles.colors.fontColor)?"".concat(w.websiteStyles.colors.fontColor):"white",fontSize:"1rem",fontFamily:"HelveticaNeue-CondensedBold, Roboto Condensed, Helvetica Neue, Helvetica,Arial, sans-serif",borderRadius:"5px",height:"44px",width:"300px",onClick:function(){if(Object(f.f)(L.trap))return Object(b.e)("honeypot"),C(y.S,{variant:"success"}),void A.replace("/");x()},loadingSpinner:j})]})]})}),Object(f.d)(w.logo)&&Object(f.f)(w.logo.logo2)?Object(B.jsx)("img",{src:w.logo.logo2,className:"form-component1-icon m-t-50px m-b-0",alt:Object(f.f)(w.teamName)?w.teamName:"Team Logo"}):null]})};Z.defaultProps={loadingSpinner:!1,submissionLoadingSpinner:!1};var tt=Object(l.memo)(Z),et=r(461);function rt(){rt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new C(n||[]);return o(a,"_invoke",{value:E(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",h="executing",m="completed",d={};function b(){}function y(){}function v(){}var g={};s(g,a,(function(){return this}));var j=Object.getPrototypeOf,O=j&&j(j(I([])));O&&O!==r&&n.call(O,a)&&(g=O);var x=v.prototype=b.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(o,i,a,c){var l=p(t[o],t,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==typeof u&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(u).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=f;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=L(c,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var s=p(e,r,n);if("normal"===s.type){if(o=n.done?m:"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function L(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&
2(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=v,o(x,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:y,configurable:!0}),y.displayName=s(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,s(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},w(T.prototype),s(T.prototype,c,(function(){return this})),e.AsyncIterator=T,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new T(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(x),s(x,l,"Generator"),s(x,a,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),d}},e}var nt={formItems:[],paymentOptionSelected:0,savePressed:!1,dataChanged:!1,loadingSpinner:!0};function ot(t,e){switch(e.type){case"reset":return Object(c.a)({},nt);case"setFormItems":return Object(c.a)(Object(c.a)({},t),{},{formItems:e.formItems});case"setPaymentOption":return Object(c.a)(Object(c.a)({},t),{},{paymentOptionSelected:e.option});case"setFormItem":return Object(c.a)(Object(c.a)({},t),{},{formItems:t.formItems.map((function(t){return t.id!==e.id?t:Object(c.a)(Object(c.a)({},t),{},{value:e.value,valueTitle:e.valueTitle})}))});case"setSavePressed":return Object(c.a)(Object(c.a)({},t),{},{savePressed:e.savePressed});case"setDataChanged":return Object(c.a)(Object(c.a)({},t),{},{dataChanged:e.dataChanged});case"setLoadingSpinner":return Object(c.a)(Object(c.a)({},t),{},{loadingSpinner:e.loadingSpinner});default:return nt}}var it=function(t){var e,r=t.title,n=t.formItems,o=t.formPaymentItems,s=t.formType,m=t.published,d=t.loadingSpinner,b=t.secondaryLoadingSpinner,v=Object(l.useReducer)(ot,nt),j=Object(a.a)(v,2),O=j[0],x=j[1],w=Object(l.useContext)(h.b).globalState,T=Object(u.b)().enqueueSnackbar,E=Object(p.g)(),L=Object(p.i)();Object(l.useEffect)((function(){x({type:"reset"}),x({type:"setLoadingSpinner",loadingSpinner:!0}),x({type:"setFormItems",formItems:n.map((function(t){return Object(c.a)(Object(c.a)({},t),{},{value:"",valueTitle:""})}))}),x({type:"setLoadingSpinner",loadingSpinner:!1})}),[E.location.pathname,n]);var N=function(){var t=!1;
2return O.formItems.forEach((function(e){e.required&&!Object(f.f)(e.value)?(T(Object(y.O)(e.title),{variant:"error"}),t=!0):e.isEmail&&Object(f.f)(e.value)&&!Object(f.c)(e.value)&&(T(y.T,{variant:"error"}),t=!0)})),!t},I=function(){var t=[];return O.formItems.forEach((function(e){e.isEmail&&Object(f.c)(e.value)&&t.push(e.value.trim())})),t},k=function(){var t=O.formItems.map((function(t){if(t.type===F.a.TEXT)return null;if(t.type===F.a.TEXTFIELD_DATE){if(Object(f.f)(t.valueTitle)){var e=t.valueTitle.split("-"),r="".concat(e[1],"/").concat(e[2],"/").concat(e[0]);return{id:t.id,title:t.title,value:r}}return{id:t.id,title:t.title,value:""}}return{id:t.id,title:t.title,value:t.valueTitle}})).filter((function(t){return!!Object(f.d)(t)}));if(o.length>0){var e=o[O.paymentOptionSelected].id,r=o[O.paymentOptionSelected].title,n=o[O.paymentOptionSelected].price,i=o[O.paymentOptionSelected].currency,a=o[O.paymentOptionSelected].stripePriceId;Object(f.f)(r)&&t.push({id:"payment-option",title:"Payment Option",value:r,paymentId:e,paymentStripeId:a}),t.push({id:"payment-amount",title:"Payment Amount",value:Object(Y.e)(n,i)})}return t};return Object(B.jsx)(B.Fragment,{children:d?Object(B.jsx)(S.a,{color:w.websiteStyles.colors.primaryColor}):Object(B.jsxs)(B.Fragment,{children:[Object(B.jsx)(C.a,{links:[{title:"Home",link:"/"}],lastCrumb:r,marginLeft:"100px"}),Object(B.jsx)(tt,{id:L.formid,title:r,formItems:O.formItems,formPaymentItems:o,paymentOptionSelected:O.paymentOptionSelected,deleted:!1,published:m,savePressed:O.savePressed,loadingSpinner:b,submissionLoadingSpinner:O.loadingSpinner,setState:x,saveHandler:function(){return(e=e||Object(i.a)(rt().mark((function t(){return rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(x({type:"setSavePressed",savePressed:!0}),x({type:"setLoadingSpinner",loadingSpinner:!0}),!N()){t.next=5;break}return t.next=5,Object(et.a)(w.organizationId,w.teamId,w.sportsType,L.formid,s,Object(g.d)(s,r,!1),I(),Object(g.b)(w.form,w.teamEmail,L.formid),k(),x,T,E,w.stripeAccountId,o.length>0?[{id:o[O.paymentOptionSelected].stripePriceId,quantity:1}]:[],Object(J.l)(w),Object($.f)(w,L.formid));case 5:x({type:"setLoadingSpinner",loadingSpinner:!1});case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}})]})})},at=Object(l.memo)(it);function ct(){ct=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new C(n||[]);return o(a,"_invoke",{value:E(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",h="executing",m="completed",d={};function b(){}function y(){}function v(){}var g={};s(g,a,(function(){return this}));var j=Object.getPrototypeOf,O=j&&j(j(I([])));O&&O!==r&&n.call(O,a)&&(g=O);var x=v.prototype=b.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(o,i,a,c){var l=p(t[o],t,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==typeof u&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(u).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=f;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=L(c,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var s=p(e,r,n);if("normal"===s.type){if(o=n.done?m:"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function L(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&
2(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=v,o(x,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:y,configurable:!0}),y.displayName=s(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,s(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},w(T.prototype),s(T.prototype,c,(function(){return this})),e.AsyncIterator=T,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new T(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(x),s(x,l,"Generator"),s(x,a,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),d}},e}var lt={title:"",published:!0,formType:r(146).a.NONE,isCustom:!1,formItems:[],formPaymentItems:[],loadingSpinner:!0,secondaryLoadingSpinner:!0,error:!1};function st(t,e){switch(e.type){case"fetchFormTitle":return Object(c.a)(Object(c.a)({},t),{},{title:e.title});case"fetchForm":return Object(c.a)(Object(c.a)({},t),{},{title:e.title,formType:e.formType,published:e.published,isCustom:e.isCustom,formItems:e.content,formPaymentItems:e.paymentContent});case"setLoadingSpinner":return Object(c.a)(Object(c.a)({},t),{},{loadingSpinner:e.loadingSpinner});case"setSecondaryLoadingSpinner":return Object(c.a)(Object(c.a)({},t),{},{secondaryLoadingSpinner:e.loadingSpinner});case"setError":return Object(c.a)(Object(c.a)({},t),{},{error:!0});default:return lt}}var ut=function(){var t=Object(l.useContext)(h.b).globalState,e=Object(p.i)(),r=Object(l.useReducer)(st,lt),n=Object(a.a)(r,2),o=n[0],c=n[1],s=Object(u.b)().enqueueSnackbar;Object(l.useEffect)((function(){Object(b.n)(t,o.title)}),[t,o.title]),Object(l.useEffect)((function(){var r;!function(){(r=r||Object(i.a)(ct().mark((function r(){return ct().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!Object(f.f)(t.accountId)||!Object(f.f)(e.formid)){r.next=9;break}return c({type:"setLoadingSpinner",loadingSpinner:!0}),c({type:"setSecondaryLoadingSpinner",loadingSpinner:!0}),r.next=5,L(t.accountId,e.formid,c,s);case 5:return c({type:"setLoadingSpinner",loadingSpinner:!1}),r.next=8,N(t.organizationName,t.teamName,t.accountId,t.teamAlias,e.formid,c,s);case 8:c({type:"setSecondaryLoadingSpinner",loadingSpinner:!1});case 9:case"end":return r.stop()}}),r)})))).apply(this,arguments)}()}),[t.accountId,e.formid]);return o.error?Object(B.jsx)(p.a,{to:"/notfound"}):Object(B.jsxs)(B.Fragment,{children:[Object(f.f)(o.title)?Object(B.jsx)(d.a,{title:Object(m.c)(o.title,t),pageTitle:o.title,de
2scription:Object(m.a)("Check out our ".concat(o.title),t),keywords:Object(m.b)("".concat(o.title,", Form"),t)}):null,Object(f.d)(t)&&Object(f.d)(t.websiteStyles)?Object(B.jsx)(at,{title:o.title,formItems:o.formItems,formType:o.formType,formPaymentItems:o.formPaymentItems,published:o.published,loadingSpinner:o.loadingSpinner,secondaryLoadingSpinner:o.secondaryLoadingSpinner}):null]})};e.default=Object(l.memo)(ut)}}]); 3//# sourceMappingURL=23.9b54b1f3.chunk.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.