"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8838],{29058:function(e,t,n){var i=n(85893),o=n(67294),r=n(84677),a=n(56027),s=n(1420);let l=(0,a.ZL)()(()=>({root:{backgroundColor:s.nS,borderRadius:"24px",boxShadow:"none",width:"200px","&:hover, &:focus":{boxShadow:"none",backgroundColor:"#062327"},textTransform:"none","&, .CgHtmlContent &, .CgHtmlContent &:hover":{color:"white",fontWeight:600}}}));t.Z=o.forwardRef(function(e,t){let{size:n="large",className:o=null,...a}=e,{classes:s,cx:c}=l();return(0,i.jsx)(r.Z,{...a,variant:"contained",color:"primary",ref:t,size:n,className:c(s.root,o)})})},89077:function(e,t,n){n.d(t,{W:function(){return s}});var i=n(85893);n(67294);var o=n(21485),r=n(56027),a=n(1420);let s=e=>({font:{fontFamily:'"Montserrat", sans-serif',fontSize:34,lineHeight:"38px",fontWeight:600,color:a.$R,[e.breakpoints.down("md")]:{fontSize:28}}}),l=(0,r.ZL)()(s);t.Z=e=>{let{className:t,...n}=e,{classes:r,cx:a}=l();return(0,i.jsx)(o.Z,{component:"h1",className:a(t,r.font),...n})}},80685:function(e,t,n){n.d(t,{W:function(){return s}});var i=n(85893);n(67294);var o=n(21485),r=n(56027),a=n(61099);let s=e=>({font:{fontFamily:'"Montserrat", sans-serif',fontSize:28,lineHeight:"30px",fontWeight:400,[e.breakpoints.down("md")]:{fontSize:21}},asH3Styles:{...(0,a.W)(e).font}}),l=(0,r.ZL)()(s);t.Z=e=>{let{styleAsH3:t,className:n,...r}=e,{classes:a,cx:s}=l(),c=t?a.asH3Styles:a.font;return(0,i.jsx)(o.Z,{component:"h2",...r,className:s(n,c)})}},13658:function(e,t,n){n.d(t,{W:function(){return a}});var i=n(85893);n(67294);var o=n(21485),r=n(56027);let a=e=>({font:{fontFamily:'"Montserrat", sans-serif',fontSize:16,lineHeight:"18px",fontWeight:300,[e.breakpoints.down("md")]:{fontSize:14,lineHeight:"16px"}}}),s=(0,r.ZL)()(a);t.Z=e=>{let{className:t,...n}=e,{classes:r,cx:a}=s();return(0,i.jsx)(o.Z,{className:a(r.font,t),...n})}},51813:function(e,t,n){n.d(t,{c:function(){return ex},Z:function(){return ej}});var i=n(85893),o=n(67294),r=n(68573),a=n(31754),s=n(56027),l=n(11163),c=n(69151),d=n(1420),u=e=>({desktopMenuRoot:{position:"sticky",top:20,alignSelf:"flex-start",borderRadius:"36px 0px 0px 36px",padding:"".concat(e.spacing(2)," 0"),boxSizing:"border-box",overflowY:"auto",overflowX:"hidden",maxHeight:"calc(100vh - 40px)",...(0,c.Z)(e),"& .Dashboard-access":{textDecoration:"none",color:"inherit"}},menuButton:{float:"right"},zIndexMenu:{zIndex:"9999 !important"},linkHighlight:{color:d.nS,fontFamily:"Montserrat",fontStyle:"normal",fontWeight:600,fontSize:14,lineHeight:"18px",position:"relative"},profileTitle:{color:d.$R,padding:"6px 16px",left:"15px"}}),p=n(31589);let f=e=>(0,i.jsx)(p.Z,{...e,children:(0,i.jsx)("path",{d:"M17.14 10.936C17.176 10.636 17.2 10.324 17.2 9.99999C17.2 9.67599 17.176 9.36399 17.128 9.06399L19.156 7.47999C19.336 7.33599 19.384 7.07199 19.276 6.86799L17.356 3.54399C17.236 3.32799 16.984 3.25599 16.768 3.32799L14.38 4.28799C13.876 3.90399 13.348 3.59199 12.76 3.35199L12.4 0.807994C12.364 0.567994 12.16 0.399994 11.92 0.399994H8.08C7.84 0.399994 7.648 0.567994 7.612 0.807994L7.252 3.35199C6.664 3.59199 6.124 3.91599 5.632 4.28799L3.244 3.32799C3.028 3.24399 2.776 3.32799 2.656 3.54399L0.736 6.86799C0.616 7.08399 0.664 7.33599 0.856 7.47999L2.884 9.06399C2.836 9.36399 2.8 9.68799 2.8 9.99999C2.8 10.312 2.824 10.636 2.872 10.936L0.844 12.52C0.664 12.664 0.616 12.928 0.724 13.132L2.644 16.456C2.764 16.672 3.016 16.744 3.232 16.672L5.62 15.712C6.124 16.096 6.652 16.408 7.24 16.648L7.6 19.192C7.648 19.432 7.84 19.6 8.08 19.6H11.92C12.16 19.6 12.364 19.432 12.388 19.192L12.748 16.648C13.336 16.408 13.876 16.084 14.368 15.712L16.756 16.672C16.972 16.756 17.224 16.672 17.344 16.456L19.264 13.132C19.384 12.916 19.336 12.664 19.144 12.52L17.14 10.936ZM10 13.6C8.02 13.6 6.4 11.98 6.4 9.99999C6.4 8.01999 8.02 6.39999 10 6.39999C11.98 6.39999 13.6 8.01999 13.6 9.99999C13.6 11.98 11.98 13.6 10 13.6Z"})});var h=n(56912);let m=(0,s.ZL)()(e=>({divider:{margin:e.spacing(3),height:2,backgroundColor:d.$7}}));var g=n(47407);function x(e){let{items:t,itemComponent:n=null}=e;return(0,i.jsx)(i.Fragment,{children:t.map(e=>{let{key:t,component:o=n,...r}=e;return(0,i.jsx)(o,{...r},e.key)})})}var j=n(13658);let k=(0,s.ZL)()(e=>({list:{color:d.gu},...(0,j.W)(e)}));var b=n(41664),y=n.n(b);let C=(0,s.ZL)()((e,t,n)=>({root:{width:"100%",display:"flex",boxSizing:"border-box",alignItems:"center"},rootSelected:{},iconWrapper:{padding:"".concat(e.spacing(2)," ").concat(e.spacing(2)," ").concat(e.spacing(2)," ").concat(e.spacing(4)," "),color:d.iT,borderRadius:"0px 24px 27px 0px",[".".concat(n.root,":hover > &")]:{color:d.nS},[".".concat(n.rootSelected," > &, .").concat(n.rootSelected,":hover > &")]:{color:d.nS,backgroundColor:d.EQ}},icon:{display:"block"},titleWrapper:{padding:e.spacing(2),paddingBottom:e.spacing(1),[".".concat(n.rootSelected," > &")]:{color:d.nS,fontWeight:600},[".".concat(n.root,":hover > &")]:{color:d.nS},"&:after":{content:'""',borderBottom:"4px solid transparent",display:"inline-block",width:"100%"},"&:hover":{"&:after":{borderBottom:"4px solid ".concat(d.Q3)}}}}));function Z(e){let{title:t,icon:n,isSelected:o=!1}=e,{classes:r,cx:a}=C(),s=a(r.root,o?r.rootSelected:"");return(0,i.jsxs)("span",{className:s,children:[(0,i.jsx)("span",{className:r.iconWrapper,children:(0,i.jsx)(n,{className:r.icon})}),(0,i.jsx)("span",{className:r.titleWrapper,children:t})]})}var v=n(85770);let S=(0,s.ZL)()(e=>({item:{display:"block",paddingTop:0,paddingBottom:0}}));function H(e){let{children:t,className:n}=e,{classes:o,cx:r}=S(),a=r(o.item,n);return(0,i.jsx)(v.ZP,{disableGutters:!0,className:a,children:t})}function L(e){let{tree:t}=e,{component:n,...o}=t;return(0,i.jsx)(n,{...o})}var w=n(97427);let M=(0,s.ZL)()(()=>({a:{justifyContent:"left","&, &:hover, &:visited":{textDecoration:"none",color:"inherit"},"&:focus":{background:"#f0f0f0",width:"100%",justifyContent:"left"}}}));var A=o.forwardRef((e,t)=>{let{href:n,onClick:o,children:r}=e,{classes:a}=M();return(0,i.jsx)(w.Z,{href:n,onClick:o,className:a.a,ref:t,children:r})});function N(e){let t,{href:n,hrefAs:o,icon:r,title:a,subtree:s,selectedAt:c}=e,d=(0,l.useRouter)().pathname;return t=c?c.test(d):n===d,(0,i.jsxs)(H,{children:[(0,i.jsx)(y(),{href:n,as:o,passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(A,{children:(0,i.jsx)(Z,{title:a,icon:r,isSelected:t})})}),t&&!!s&&(0,i.jsx)(L,{tree:s})]})}var V=n(59886);let W=(0,s.ZL)()(e=>({root:{display:"flex",flexWrap:"wrap",padding:"".concat(e.spacing(2)," ").concat(e.spacing(1.5)," ").concat(e.spacing(1)," ").concat(e.spacing(11)),"&:hover":{color:d.nS,"&:after":{borderBottom:"4px solid ".concat(d.Q3)}},"&:after":{content:'""',borderBottom:"4px solid transparent",width:"100%",display:"inline-block",marginTop:4},rootSelected:{color:d.nS,fontWeight:600}},rootSelected:{color:d.nS,fontWeight:600}}));function R(e){let{title:t,className:n="",isSelected:o=!1}=e,{classes:r,cx:a}=W(),s=a(r.root,o?r.rootSelected:"",n);return(0,i.jsx)("span",{className:s,children:t})}var P=n(44139);function B(e){let{href:t,hrefAs:n,title:r,subtree:a}=e,s=t===(0,l.useRouter)().pathname,{dispatch:c,shouldValidate:d,isClickedSidebar:u}=(0,o.useContext)(P.yd);return(0,i.jsxs)(H,{children:[(0,i.jsx)(y(),{href:t,as:n,passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(A,{onClick:e=>{s||!d||u?s||d||u||c({type:P.aO.CHANGED_LINK,payload:{currentLink:t,isClicked:!1}}):(e.preventDefault(),c({type:P.aO.CHANGED_LINK,payload:{currentLink:t,isClicked:!0}})),c({type:P.aO.CLICKED_SIDEBAR,payload:{isClickedSidebar:!1}})},children:(0,i.jsx)(R,{title:r,isSelected:s})})}),s&&!!a&&(0,i.jsx)(L,{tree:a})]})}function I(e){let{items:t,itemComponent:n=null}=e;return(0,i.jsx)(g.Z,{children:(0,i.jsx)(x,{items:t,itemComponent:n})})}let T=(0,s.ZL)()((e,t,n)=>({root:{fontSize:14,padding:"".concat(e.spacing(1.5)," ").concat(e.spacing(1)," ").concat(e.spacing(1)," ").concat(e.spacing(11)),display:"flex",flexWrap:"wrap","&:hover":{color:d.nS,"&:after":{borderBottom:"4px solid ".concat(d.Q3)}},"&:after":{content:'""',borderBottom:"4px solid transparent",width:"100%",display:"inline-block",marginTop:4},rootSelected:{color:d.nS,fontWeight:600}},rootSelected:{color:d.nS,fontWeight:600},bullet:{flexGrow:0,paddingRight:e.spacing(1)}}));function D(e){let{title:t,isSelected:n=!1}=e,{classes:o,cx:r}=T(),a=r(o.root,n?o.rootSelected:"");return(0,i.jsx)("span",{className:a,children:(0,i.jsxs)("span",{children:[(0,i.jsx)("span",{className:o.bullet,children:"–"}),(0,i.jsx)("span",{children:t})]})})}function z(e){let{fragment:t,title:n,className:r}=e,a=()=>window.location.hash.substr(1)===t,[s,l]=(0,o.useState)(a);return(0,o.useEffect)(()=>{let e=()=>{l(a())};return window.addEventListener("hashchange",e),()=>{window.removeEventListener("hashchange",e)}}),(0,i.jsx)(H,{className:r,children:(0,i.jsx)(A,{href:"#".concat(t),children:(0,i.jsx)(D,{title:n,isSelected:s})})})}let q=(0,s.ZL)()(()=>({label:{"&, &:hover":{color:d.iT,fontWeight:300,"&:after":{borderBottom:"0 none"}}}}));function E(e){let{items:t,itemComponent:n=null}=e;return(0,i.jsx)(g.Z,{children:(0,i.jsx)(x,{items:t,itemComponent:n})})}let $=(e,t)=>t?e.map(e=>({...e,href:"/user/edit-profile/[id]".concat(e.hrefSuffix),hrefAs:"/user/edit-profile/".concat(encodeURIComponent(t)).concat(e.hrefSuffix)})):[],_=(0,s.ZL)()(()=>({label:{"&, &:hover":{color:d.iT,fontWeight:600,"&:after":{borderBottom:"0 none"}}}}));var F=n(53947),Q=n(91553),G=(0,Q.Z)({remount:!0,token:!0})(e=>{let{token:t,...n}=e;return t.canMasquerade()?(0,i.jsx)(N,{...n}):null}),O=(0,Q.Z)({remount:!0,token:!0})(e=>{let{token:t,...n}=e;if(!t.hasDashboardAccess())return null;let o=(0,l.useRouter)().pathname,r=n.href===o;return(0,i.jsx)(H,{children:(0,i.jsx)("a",{href:n.href,className:"MuiButtonBase-root Dashboard-access",target:"_blank",rel:"noreferrer",children:(0,i.jsx)(Z,{title:n.title,icon:n.icon,isSelected:r})})})}),U=n(15678),K=n(55276);let X=(0,s.ZL)()(e=>({profileTitle:{color:d.$R,fontFamily:"Montserrat",fontStyle:"normal",fontWeight:600,fontSize:18,lineHeight:"20px",display:"block",padding:"16px 16px 16px 58px"}})),Y={component:I,itemComponent:z,items:[{key:"name",fragment:"section-name",title:"Name"},{key:"contact",fragment:"section-contact",title:"Contact Information"},{key:"legal",fragment:"section-legal",title:"Legal Details"},{key:"disciplines",fragment:"section-disciplines",title:"Professional Disciplines"},{key:"activities",fragment:"section-activities",title:"Professional Activities and Services"}]},J={component:function(e){let{items:t,itemComponent:n=null}=e,{classes:o}=k();return(0,i.jsx)(g.Z,{className:"".concat(o.font," ").concat(o.list),children:(0,i.jsx)(x,{items:t,itemComponent:n})})},itemComponent:N,items:[{key:"dashboard",href:"/user/account",title:"Dashboard",icon:e=>(0,i.jsx)(p.Z,{...e,children:(0,i.jsx)("path",{d:"M0 6H5V0H0V6ZM0 13H5V7H0V13ZM6 13H11V7H6V13ZM12 13H17V7H12V13ZM6 6H11V0H6V6ZM12 0V6H17V0H12Z"})})},{key:"create-profile",href:"/user/create-profile/start",title:"Create a New Public Profile",icon:e=>(0,i.jsx)(p.Z,{...e,children:(0,i.jsx)("path",{d:"M18 2H10L8 0H2C0.89 0 0.00999999 0.89 0.00999999 2L0 14C0 15.11 0.89 16 2 16H18C19.11 16 20 15.11 20 14V4C20 2.89 19.11 2 18 2ZM17 10H14V13H12V10H9V8H12V5H14V8H17V10Z"})}),selectedAt:/^\/user\/create-profile($|\/)/,subtree:{component:E,itemComponent:function(e){let{title:t,...n}=e,{classes:o}=q();return(0,i.jsx)(H,{...n,children:(0,i.jsx)(R,{title:t,className:o.label})})},items:[{key:"base",component:B,title:"Basic Required Information",href:"/user/create-profile",subtree:Y},{key:"more-info",component:function(e){let{title:t,...n}=e,{classes:o}=_();return(0,i.jsx)(H,{...n,children:(0,i.jsx)(R,{title:t,className:o.label})})},title:"Add More Information"},{key:"artist",title:"Artists Only"},{key:"media",title:"Profile Images and other Media"},{key:"ihww",title:"I Have Worked With..."},{key:"accomplishments",title:"Affiliations & Accomplishments"},{key:"venues",title:"Venues"}]}},{key:"manage-profiles",href:"/user/manage-profiles",selectedAt:/^\/user\/(manage-profiles|edit-profile)($|\/)/,title:"Manage My Public Profiles",icon:e=>(0,i.jsx)(p.Z,{...e,children:(0,i.jsx)("path",{d:"M2.75001 4.7003H0.916672V19.7413C0.916672 20.7753 1.74167 21.6214 2.75001 21.6214H17.4167V19.7413H2.75001V4.7003ZM19.25 0.940063H6.41667C5.40834 0.940063 4.58334 1.78612 4.58334 2.82018V15.981C4.58334 17.0151 5.40834 17.8611 6.41667 17.8611H19.25C20.2583 17.8611 21.0833 17.0151 21.0833 15.981V2.82018C21.0833 1.78612 20.2583 0.940063 19.25 0.940063ZM19.25 15.981H6.41667V2.82018H19.25V15.981Z"})}),subtree:{component:function(e){let{items:t,...n}=e,r=(0,l.useRouter)().query.id||null,a=(0,o.useMemo)(()=>$(t,r),[t,r]);return a.length?(0,i.jsx)(E,{items:a,...n}):null},itemComponent:B,items:[{key:"title",component:function(){let{classes:e}=X(),{profile:t}=(0,o.useContext)(K.WT);return(0,i.jsx)("li",{className:e.profileTitle,children:(0,i.jsx)("span",{children:(0,i.jsxs)("b",{children:["Editing: ",null==t?void 0:t.title]})})})}},{key:"base",title:"Basic Required Information",hrefSuffix:"",subtree:Y},{key:"artist",title:"Artists Only",hrefSuffix:"/artists-only",subtree:{component:I,itemComponent:z,items:[{key:"native-american-artist",fragment:"section-native-american-artist",title:"Native American Artist"},{key:"teaching-artist",fragment:"section-teaching-artist",title:"Teaching Artist"},{key:"touring-artist",fragment:"section-touring-artist",title:"Touring Artist"},{key:"saa-rosters",fragment:"section-saa-rosters",title:"State Arts Agency Rosters"}]}},{key:"media",title:"Profile Images and other Media",hrefSuffix:"/media",subtree:{component:I,itemComponent:z,items:[{key:"profile-image",fragment:"section-profile-image",title:"Profile Image"},{key:"media-collection",fragment:"section-media-collection",title:"Image and Video Gallery"},{key:"social-media",fragment:"section-social-media",title:"Social Media"},{key:"url-collection",fragment:"section-url-collection",title:"Additional Content"}]}},{key:"ihww",title:"I Have Worked With...",hrefSuffix:"/ihww"},{key:"accomplishments",title:"Affiliations & Accomplishments",hrefSuffix:"/accomplishments",subtree:{component:I,itemComponent:z,items:[{key:"designations",fragment:"section-designations",title:"Special Designations"}]}},{key:"venues",title:"Venues for Rent/Use",hrefSuffix:"/venues"}]}},{key:"account-divider",component:function(){let{classes:e}=m();return(0,i.jsx)(h.Z,{className:e.divider})}},{key:"account-settings",href:"/user/settings",title:"Account Settings",icon:f},{key:"masquerade",component:G,href:"/user/masquerade",title:"Masquerade",icon:F.Z},{key:"approval-queues",component:O,href:(0,U.Z)("/user/login?destination=/admin/dashboard"),title:"Access my Approval Queues and Reports",icon:f},{key:"logout",component:function(e){let{title:t,icon:n}=e,o=(0,l.useRouter)(),{clearToken:r}=(0,V.Z)();return(0,i.jsx)(H,{children:(0,i.jsx)(A,{href:"#",onClick:e=>{e.preventDefault(),r(),o.push("/")},children:(0,i.jsx)(Z,{title:t,icon:n})})})},title:"Logout",icon:e=>(0,i.jsx)(p.Z,{...e,children:(0,i.jsx)("path",{d:"M20 0.0100021H2C0.9 0.0100021 0 0.910002 0 2.01V6H2V1.99H20V16.02H2V12H0V16.01C0 17.11 0.9 17.99 2 17.99H20C21.1 17.99 22 17.11 22 16.01V2.01C22 0.900002 21.1 0.0100021 20 0.0100021ZM10 13L14 9L10 5V8H0V10H10V13Z"})})}]};function ee(){return(0,i.jsx)(L,{tree:J})}var et=n(41268),en=n(28577),ei=n(84677),eo=n(35076),er=n(50899);let ea=(0,s.ZL)()(u);function es(e){let{mainLinks:t,logoutAction:n}=e,[r,a]=(0,o.useState)(null),{classes:s}=ea(),c=()=>{a(null)},d=t.map((e,t)=>{let n=(0,l.useRouter)().pathname,o=!1;return((null==e?void 0:e.selectedAt)&&(o=e.selectedAt.test(n)),""===e.path)?(0,i.jsx)("li",{className:"".concat(e.class," ").concat(s.linkHighlight),children:e.title},"mobile-menu-item-".concat(t)):o?(0,i.jsx)(et.Z,{href:e.path,isChildNav:!0===e.path.includes("edit"),className:s.linkHighlight,children:e.title},"mobile-menu-item-".concat(t)):(0,i.jsx)(et.Z,{href:e.path,isChildNav:!0===e.path.includes("edit"),handleClose:c,children:e.title},"mobile-menu-item-".concat(t))});return d.push((0,i.jsx)(en.Z,{onClick:()=>n(),children:"Logout"},"mobile-menu-item-logout")),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ei.Z,{"aria-controls":"mobile-dashboard-menu","aria-haspopup":"true",onClick:e=>{a(e.currentTarget)},endIcon:(0,i.jsx)(er.Z,{children:"Dashboard Menu"}),className:s.menuButton,children:"Dashboard"}),(0,i.jsx)(eo.Z,{id:"mobile-menu",anchorEl:r,keepMounted:!0,open:!!r,onClose:c,className:s.zIndexMenu,children:d})]})}var el=n(61730),ec=n(18745);let ed=(0,s.ZL)()(u);var eu=function(){let e=(0,l.useRouter)(),{classes:t}=ed(),{clearToken:n,token:r}=(0,V.Z)(),s=e.asPath,{profile:c}=(0,o.useContext)(K.WT),d=(0,ec.Z)(),u=(0,el.Z)(d.breakpoints.up("lg")),p=[{path:"/user/account",title:"Dashboard"},{path:"/user/create-profile/start",title:"Create a profile",selectedAt:/^\/user\/create-profile($|\/)/},{path:"/user/manage-profiles",title:"Manage My Public Profiles",selectedAt:/^\/user\/(manage-profiles|edit-profile)($|\/)/},{path:"/user/settings",title:"Account settings"}],f=[];if(!0===s.includes("edit")){let e=s.split("/");f=[{path:"/user/account",title:"Dashboard"},{path:"/user/create-profile/start",title:"Create a profile",selectedAt:/^\/user\/create-profile($|\/)/},{path:"/user/manage-profiles",title:"Manage My Public Profiles",selectedAt:/^\/user\/(manage-profiles|edit-profile)($|\/)/},{path:"",title:null==c?void 0:c.title,class:t.profileTitle},{path:"/user/edit-profile/".concat(e[3]),title:"Basic required information"},{path:"/user/edit-profile/".concat(e[3],"/artists-only"),title:"Artists only"},{path:"/user/edit-profile/".concat(e[3],"/media"),title:"Profile Images and other Media"},{path:"/user/edit-profile/".concat(e[3],"/ihww"),title:"I have worked with"},{path:"/user/edit-profile/".concat(e[3],"/accomplishments"),title:"Affiliations & accomplishments"},{path:"/user/edit-profile/".concat(e[3],"/venues"),title:"Venues for Rent/Use"},{path:"/user/settings",title:"Account settings"}]}else f=p;let h=!1===s.includes("edit")?p:f;return(r.canMasquerade()&&h.push({path:"/user/masquerade",title:"Masquerade"}),r.hasDashboardAccess()&&h.push({path:(0,U.Z)("/user/login?destination=/admin/dashboard"),title:"Access my Approval Queues and Reports"}),u)?(0,i.jsx)(a.Z,{className:t.desktopMenuRoot,elevation:0,children:(0,i.jsx)("nav",{"aria-label":"User dashboard menu",children:(0,i.jsx)(ee,{})})}):(0,i.jsx)(es,{mainLinks:h,logoutAction:()=>{n(),e.push("/")}})},ep=n(8248),ef=n(8679),eh=n.n(ef),em=n(35889);let eg=(0,s.ZL)()(e=>({paper:{padding:e.spacing(4),[e.breakpoints.down("lg")]:{padding:e.spacing(2)}},menuSticky:{position:"sticky",top:0,zIndex:999,background:"white"}}));function ex(e){let{menuTree:t,children:n,...o}=e,{classes:s}=eg();return(0,i.jsx)(K.Sp,{children:(0,i.jsx)(ep.Z,{menuTree:t,mainContentAnchor:!1,...o,children:(0,i.jsxs)(r.ZP,{container:!0,spacing:3,children:[(0,i.jsx)(r.ZP,{item:!0,lg:3,sm:12,className:s.menuSticky,children:(0,i.jsx)(eu,{})}),(0,i.jsx)(r.ZP,{item:!0,lg:9,sm:12,children:(0,i.jsxs)(a.Z,{className:s.paper,elevation:0,children:[(0,i.jsx)(em.Z,{}),n]})})]})})})}var ej=(e=>{let t=o.forwardRef(function(t,n){let r=(0,l.useRouter)(),{token:a}=(0,V.Z)(),[s,c]=(0,o.useState)(!1);return((0,o.useEffect)(()=>{a.isAuthenticated()?c(!0):r.push({pathname:"/user/login",query:{destination:r.asPath}})},[r.asPath]),!0===s)?(0,i.jsx)(e,{ref:n,...t}):null});return eh()(t,e),t})(ex)},55276:function(e,t,n){n.d(t,{Sp:function(){return l},WT:function(){return s}});var i=n(85893),o=n(67294);let r=(e,t)=>({...e,profile:t.profile}),a={dispatch:null,profile:null},s=(0,o.createContext)(a),l=e=>{let{children:t,initialState:n={}}=e,[l,c]=(0,o.useReducer)(r,{...a,...n});return(0,i.jsx)(s.Provider,{value:{...l,dispatch:c},children:t})}},8248:function(e,t,n){var i=n(85893);n(67294);var o=n(91825),r=n(56027),a=n(57929),s=n(55153),l=n(1420),c=n(27747),d=n(35889),u=n(24382),p=n(44139),f=n(11163),h=n(5804);let m=(0,r.ZL)()(e=>({fancyBg:{backgroundColor:l.$7,[e.breakpoints.down("md")]:{paddingTop:1}},lessPadding:{overflowX:"visible",paddingTop:1,paddingBottom:1,[e.breakpoints.down("xl")]:{paddingLeft:"14px",paddingRight:0}}}));t.Z=e=>{let{menuTree:t,mainContentAnchor:n=!0,children:r}=e,{classes:l}=m(),g="/user/edit-profile/[id]"===(0,f.useRouter)().pathname;return(0,i.jsxs)(u.Z,{children:[(0,i.jsx)(c.Z,{}),(0,i.jsxs)(p.h0,{initialState:{shouldValidate:g},children:[(0,i.jsx)(h.Z,{menuTree:t,maxWidth:"xl"}),(0,i.jsx)("div",{className:l.fancyBg,children:(0,i.jsx)(o.Z,{maxWidth:"xl",className:l.lessPadding,children:(0,i.jsxs)(s.ZP,{children:[n&&(0,i.jsx)(d.Z,{}),r]})})})]}),(0,i.jsx)(a.Z,{classes:{}})]})}},15678:function(e,t,n){n.d(t,{Z:function(){return o}});let i="https://api.creativeground.org".replace(/\/$/,"");function o(e){let t=e;return null!=e&&"/"===e[0]&&(t=i+t),t}}}]);