1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="530df4ae-e189-43f2-904a-04b826c76f0e",e._sentryDebugIdIdentifier="sentry-dbid-530df4ae-e189-43f2-904a-04b826c76f0e")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6581],{68739:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/teams/[slug]/edit",function(){return n(5670)}])},4501:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(97458),r=n(73278);n(52983);let o=(0,n(1166).zo)("div",{padding:" 300px 0",textAlign:"center",width:"100%"});var a=()=>(0,i.jsx)(o,{children:(0,i.jsx)("p",{children:"Sorry, you are not authorized to view this content."})}),l=e=>{let{loadingComponent:t,failureComponent:n,isLoading:o,allowed:l,children:s}=e;if(o)return t||(0,i.jsx)(r.Z,{pageContent:!0,loadingText:"Loading"});if(!l)return n||(0,i.jsx)(a,{});if(null==s)throw Error("Need to provide children to Access Gate");return s}},30188:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var i=n(97458);n(52983);var r=n(1166);let o=e=>{let{message:t,theme:n="info",className:r,style:o}=e;return(0,i.jsx)(a,{theme:n,className:r,style:o,children:(0,i.jsx)("p",{children:t})})},a=(0,r.zo)("div",{fontSize:"15px",borderWidth:"1px",borderStyle:"solid",padding:"$4",borderRadius:"$1",display:"flex",alignItems:"center",".material-icon":{fontSize:"1.4em"},p:{margin:0},variants:{theme:{info:{backgroundColor:"#f9f9f9",borderColor:"$nsgGray30"},error:{backgroundColor:"$red10",borderColor:"$red20"},warning:{backgroundColor:"$yellow10",borderColor:"$yellow20"},success:{backgroundColor:"$green10",borderColor:"$green20"}}}})},46592:function(e,t,n){"use strict";let i=(0,n(1166).zo)("div",{boxSizing:"border-box"});t.Z=i},22758:function(e,t,n){"use strict";n.d(t,{O:function(){return c},W:function(){return u}});var i=n(97458),r=n(64131),o=n(3379),a=n(1166),l=n(2744),s=n(65662);let d=(0,a.zo)("div",{marginBottom:"$4"}),c=e=>{let t=(0,r.qo)({name:e}),{control:n,errors:i,register:a,setValue:l}=(0,r.Gc)();return{control:n,errors:(0,o.b_)(e,i),register:a,setValue:l,value:t}},u=e=>{let{children:t,errors:n,hint:r,label:a,...c}=e,{id:u,rules:h}=c;return(0,i.jsxs)(d,{children:[a&&(0,i.jsxs)(s.Z,{htmlFor:u,children:[a,r&&(0,i.jsx)(s.O,{children:r})]}),t,n&&(0,i.jsx)(l.Z,{error:n.type&&(0,o.e$)(a,n,h)})]})}},2744:function(e,t,n){"use strict";var i=n(97458);n(52983);let r=(0,n(1166).zo)("small",{color:"$danger",fontSize:"$1",height:"32px",marginBottom:"12px",marginTop:"-12px",width:"100%","& + small":{marginTop:"-22px"}});t.Z=e=>{let{css:t,error:n}=e;return n?(0,i.jsx)(r,{css:{...t},children:n}):(0,i.jsx)(i.Fragment,{})}},9590:function(e,t,n){"use strict";var i=n(97458);n(52983);var r=n(1166),o=n(4288);let a=(0,r.zo)("div",{display:"inline-block",overflow:"hidden",position:"relative","input[type='file']":{fontSize:"100px",height:"100%",left:0,opacity:0,position:"absolute",top:0,width:"100%"}});t.Z=e=>{let{id:t,label:n,onChange:r}=e;return(0,i.jsxs)(a,{children:[(0,i.jsx)(o.ZP,{children:"Select a File"}),(0,i.jsx)("label",{htmlFor:t,className:"sr-only",children:n}),(0,i.jsx)("input",{id:t,type:"file",accept:"image/*",onChange:r})]})}},65662:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var i=n(97458);n(52983);var r=n(1166);let o=(0,r.zo)("span",{color:"$nsgBlack70",display:"block",fontWeight:"normal",marginTop:"$2",variants:{display:{inline:{display:"inline"}}}}),a=(0,r.zo)("label",{cursor:"pointer",fontSize:"$3",fontWeight:"bold",display:"block",marginBottom:"$3"});t.Z=e=>{let{children:t,className:n,htmlFor:r,isRequired:o,onClick:l}=e;return(0,i.jsxs)(a,{htmlFor:r,onClick:l,className:n,children:[t," ",o?"*":""]})}},93538:function(e,t,n){"use strict";n.d(t,{U:function(){return l}});var i=n(97458);n(52983);var r=n(1166),o=n(22758),a=n(25044);let l=e=>{let{hint:t,label:n,rules:r,type:a="text",...l}=e,{id:d,name:c}=l,{errors:u,register:h}=(0,o.O)(c);return(0,i.jsx)(o.W,{errors:u,id:d,hint:t,label:n,rules:r,children:(0,i.jsx)(s,{css:{marginBottom:0},hasError:!!u,ref:h(r),type:a,...l})})},s=(0,r.zo)("input",a.T,{borderRadius:"0",height:"44px",padding:"0 10px",variants:{size:{large:{fontSize:"$3",height:"52px"}}}});t.Z=s},24342:function(e,t,n){"use strict";let i=(0,n(1166).zo)("div",{alignItems:"center",display:"flex",flexDirection:"column"});t.Z=i},72370:function(e,t,n){"use strict";let i=(0,n(1166).zo)("form",{display:"flex",flexDirection:"column",margin:"0 auto"});t.Z=i},25044:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});let i=(0,n(37210).iv)({backgroundColor:"$nsgGray10",border:"2px s
1olid $nsgGray10",transition:"all 0.2s ease-out",marginBottom:"20px",width:"100%",fontSize:"$3",fontFamily:"$body","&:disabled":{backgroundColor:"$nsgGray30",borderColor:"$nsgGray30"},"&:focus":{outline:"none",borderColor:"$nsgBlue"},"&:focus::-webkit-input-placeholder":{opacity:0},"&::placeholder":{color:"$nsgBlack30",opacity:1,transition:"opacity 0.2s ease-out"},variants:{hasError:{true:{borderColor:"$danger"}}}})},2864:function(e,t,n){"use strict";var i=n(97458);n(52983);var r=n(1166);let o=(0,r.zo)("button",{alignItems:"center",backgroundColor:"transparent",border:"0",color:"$primary",cursor:"pointer",display:"flex",margin:"0 $3",opacity:"1",overflow:"hidden",padding:0,transition:"opacity 0.2s ease-out",fontSize:"$4","&:hover":{opacity:"0.7"}}),a=(0,r.zo)("span",{marginLeft:"6px"});t.Z=e=>{let{ariaLabel:t,icon:n,label:r}=e;return(0,i.jsxs)(o,{type:"button",...e,"aria-label":t,children:[n,r&&(0,i.jsx)(a,{children:r})]})}},73278:function(e,t,n){"use strict";var i=n(97458);n(52983);var r=n(92306),o=n(1166),a=n(52281);let l=(0,o.zo)("div",{display:"flex"}),s=(0,o.zo)("div",{fontFamily:"$heading",fontSize:"$5",fontWeight:"bold",marginLeft:"$4",height:"40px",lineHeight:"40px"}),d=(0,o.zo)("div",a.z,{alignItems:"center",background:"$nsgWhite",display:"flex",justifyContent:"center",minHeight:"100px",variants:{pageContent:{true:{bottom:0,left:0,position:"absolute",right:0,top:"$$headHeight","@bp4":{marginLeft:"$$navWidthSmall"},"@bp5":{marginLeft:"$$navWidthMedium"}}},overlay:{true:{bottom:0,left:0,position:"absolute",right:0,top:0}}}});t.Z=e=>{let{loadingText:t,...n}=e;return(0,i.jsx)(d,{...n,children:(0,i.jsx)("div",{children:(0,i.jsxs)(l,{children:[(0,i.jsx)(r.Z,{title:"Loading"}),t&&(0,i.jsx)(s,{children:t})]})})})}},70042:function(e,t,n){"use strict";var i=n(97458),r=n(52983),o=n(63730),a=n(88397),l=n(84360),s=n(1166),d=n(82491),c=n(2864);let u=(0,s.zo)("div",{backgroundColor:"$modalBackground",bottom:0,display:"flex",justifyContent:"center",left:0,opacity:0,position:"fixed",right:0,top:0,transition:"opacity 0.2s ease-out",zIndex:99999,variants:{isOpen:{true:{opacity:"1"}}}}),h=(0,s.zo)("div",{backgroundColor:"white",borderRadius:"$2",margin:"auto",width:"95%",overflow:"hidden",maxHeight:"95%","@bp2":{width:"75%"},"@bp3":{width:"65%"},"@bp4":{width:"50%"},variants:{width:{40:{"@bp3":{width:"40%"}},30:{"@bp3":{width:"30%"}}}}}),m=(0,s.zo)("div",{alignItems:"center",display:"flex",justifyContent:"space-between",padding:"0 $5",height:"$4",borderBottom:"1px solid $nsgGray20",h5:{fontSize:"$4",margin:0,textTransform:"uppercase"}}),f=(0,s.zo)("div",{padding:"$5",maxHeight:"calc(95vh - $4 - 1px)",overflowY:"auto",form:{width:"100%"},"@supports (-webkit-touch-callout: none)":{paddingBottom:"200px"}});t.Z=e=>{let{activator:t,children:n,headerText:s,onClose:g,visible:p=!1,width:x}=e,[v,y]=(0,r.useState)(p);return(0,r.useEffect)(()=>y(p),[p]),(0,i.jsxs)(i.Fragment,{children:[t&&t({setShow:y}),(0,o.createPortal)((0,i.jsx)(l.ZP,{in:v,timeout:120,unmountOnExit:!0,children:e=>(0,i.jsx)(u,{isOpen:"entered"===e,children:(0,i.jsxs)(h,{width:x,children:[(0,i.jsxs)(m,{children:[s&&(0,i.jsx)("h5",{children:s}),(0,i.jsx)(c.Z,{icon:(0,i.jsx)(d.Tw,{}),onClick:()=>{y(!1),g&&g()}})]}),(0,i.jsx)(a.Z,{children:(0,i.jsx)(f,{children:n&&r.cloneElement(n,{setShow:e=>{y(e),!e&&g&&g()}})})})]})})}),document.body)]})}},95872:function(e,t,n){"use strict";var i=n(97458);n(52983);let r=(0,n(1166).zo)("div",{alignItems:"center",borderBottom:"1px solid $gray2",display:"flex",flex:"0 0 auto",justifyContent:"spaceBetween",marginBottom:"$5",width:"100%"});t.Z=e=>{let{children:t,title:n}=e;return(0,i.jsxs)(r,{...e,children:[(0,i.jsx)("h1",{children:n}),(0,i.jsx)("div",{children:t})]})}},82311:function(e,t,n){"use strict";n.d(t,{Fo:function(){return r},KO:function(){return o},Uj:function(){return l}});var i=n(3556);let r=e=>!!(e.birthDate&&e.username),o=e=>e.username||"Legacy user - not yet registered",a=i.ou.fromISO("2020-07-28"),l=e=>{if(!e||!e.termsAcceptedDate)return!1;let t=i.ou.fromISO(e.termsAcceptedDate);return t.isValid&&t>=a}},15314:function(e,t,n){"use strict";n.d(t,{V:function(){return s}});var i=n(89949),r=n(52983),o=n(82311),a=n(22834),l=n(17436);let s=()=>{let e=(0,i.useRouter)(),{user:t,lobbyUser:n,initializing:s}=(0,l.C)(a.dy);(0,r.useEffect)(()=>
1{if(!s&&t&&n&&!t.isAnonymous){if(n&&!(0,o.Fo)(n)&&!e.route.includes("account-setup")){e.push("/account-setup");return}if(n&&!(0,o.Uj)(n)&&!e.route.includes("terms-accept")){e.push("/terms-accept");return}if(n&&n.accountFlagged){e.push("/account-locked");return}}},[t,n,e])}},89603:function(e,t,n){"use strict";n.d(t,{y:function(){return a}});var i=n(37738),r=n(90610),o=n(65270);let a=()=>{let{data:e,error:t,mutate:n,revalidate:a}=(0,i.ZP)(r.Oy,o.Z);return{setTeams:n,teams:e||[],teamsError:t,isPending:!e,loadTeams:a}}},31704:function(e,t,n){"use strict";n.d(t,{f:function(){return a}});var i=n(37738),r=n(90610),o=n(65270);let a=()=>{let{data:e,error:t,mutate:n}=(0,i.ZP)(r.$K,o.Z);return{userEvents:e||null,userEventsError:t,setUserEvents:n,isPending:!e}}},5670:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return K},default:function(){return Y}});var i=n(97458),r=n(30188),o=n(64663),a=n.n(o),l=n(3556),s=n(89949),d=n(52983),c=n(64131),u=n(37738),h=n(4501),m=n(50961),f=n(71590),g=n(46592),p=n(4288),x=n(72370),v=n(93538),y=n(65662),b=n(24342),j=n(69848),w=n(70042),$=n(95872),Z=n(26867),z=n.n(Z),C=n(90610),S=n(33338),k=n(65270);let I=e=>{let{data:t,error:n,revalidate:i}=(0,u.ZP)((0,C.FV)(e),k.Z);return{team:t||null,teamError:n,isPending:!t,loadTeam:i}};var D=n(1166),E=n(9590);let P=(0,D.zo)("div",{alignItems:"center",display:"flex",flexDirection:"column"}),T=(0,D.zo)("div",{marginBottom:"$4",marginTop:"$6"}),_=(0,D.zo)("div",{display:"flex",marginBottom:"$6"}),B=(0,D.zo)("div",{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%","@bp2":{flexDirection:"row"},canvas:{borderRadius:"$1",flex:0,height:"90px",marginBottom:"$4",width:"90px","@bp2":{marginBottom:0}}}),F=(0,D.zo)("div",{display:"flex",button:{marginLeft:"0.75em"}}),O=(0,D.zo)("div",{alignItems:"center",display:"flex",flexDirection:"column",marginBottom:"$5","@bp2":{flexDirection:"row",marginBottom:0},span:{"@bp2":{marginLeft:"$4"}}}),W=(0,D.zo)("div",{alignItems:"center",display:"flex",flexDirection:"column",p:{margin:"40px 0 40px 0"}});var R=e=>{let{team:t,setShow:n}=e,[r,o]=(0,d.useState)(),a=(0,d.useRef)(null),l=(0,d.useRef)(null),[s,c]=(0,d.useState)({width:240,aspect:1}),[u,h]=(0,d.useState)(),[m,f]=(0,d.useState)(""),{loadTeam:g}=I(t.slug),x=(e,t,n)=>{let i=document.createElement("canvas");i.width=t,i.height=n;let r=i.getContext("2d");return r?r.drawImage(e,0,0,e.width,e.height,0,0,t,n):f("Whoops! Something went wrong. Please try again."),i},v=async e=>{try{f("");let i=await (0,k.Z)((0,C.NX)(t.slug,e.type)),{filename:r,url:o}=i;await (0,k.Z)(o,{method:"PUT",body:e},!1),i=await (0,k.Z)("".concat(C.Oy,"/").concat(t.slug),{method:"PUT",body:JSON.stringify({avatar:r})}),g(),n(!1)}catch(e){f((0,S.E)(e))}},y=(e,t)=>{if(!e||!t){f("Whoops! Something went wrong. Please try again.");return}x(e,t.width,t.height).toBlob(e=>{e.name="",v(e)},"image/jpeg")},b=e=>{if(e.target.files&&e.target.files.length>0){let t=new FileReader;t.addEventListener("load",()=>o(t.result)),t.readAsDataURL(e.target.files[0])}},j=(0,d.useCallback)(e=>{a.current=e},[]);return(0,d.useEffect)(()=>{if(!u||!l.current||!a.current)return;let e=a.current,t=l.current,n=e.naturalWidth/e.width,i=e.naturalHeight/e.height,r=t.getContext("2d");t.width=4*u.width,t.height=4*u.height,r.setTransform(4,0,0,4,0,0),r.imageSmoothingEnabled=!1,r.drawImage(e,u.x*n,u.y*i,u.width*n,u.height*i,0,0,u.width,u.height)},[u]),(0,i.jsx)(i.Fragment,{children:m?(0,i.jsxs)(W,{children:[(0,i.jsx)("p",{children:m}),(0,i.jsx)(p.ZP,{onClick:()=>{f(""),o(null)},children:"Retry"})]}):(0,i.jsxs)(P,{children:[!r&&(0,i.jsx)(T,{children:(0,i.jsx)(E.Z,{id:"file-select",label:"Select a File",onChange:e=>b(e)})}),(0,i.jsx)(_,{children:r&&(0,i.jsx)(z(),{src:r,onImageLoaded:j,crop:s,onChange:e=>c(e),onComplete:e=>h(e),ruleOfThirds:!0,style:{flex:1,maxWidth:"100%"},minHeight:240,minWidth:240})}),r&&(0,i.jsxs)(B,{children:[(0,i.jsxs)(O,{children:[(0,i.jsx)("canvas",{ref:l}),(0,i.jsx)("span",{children:"Preview"})]}),(0,i.jsxs)(F,{children:[(0,i.jsx)(p.ZP,{appearance:"secondary",minWidth:!1,onClick:()=>n(!1),children:"Cancel"}),(0,i.jsx)(p.ZP,{minWidth:!1,onClick:()=>y(l.current,u),children:"Set Image"})]})]})]})})},L=n(15314),N=n(89603),A=n(31704),q=n(22834),U=n(17436);let G=e=>{let{team:t,onDeactivate:n}=e,r=()=>l.ou.local().toMillis(),{userEvents:o}=(0,A.f)(),s=null;return s=(o||[]).filter(e=>e.start>r()).filter(e=>a()(e.attendees,{meta:{kind:"team",_id:null==t?void 0:t._id}}).length>0).length>0?(0,i.jsxs)(g.Z,{children:['You cannot deactivate "$',t.name,'" because it has an upcoming event.']}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(g.Z,{css:{marginBottom:"0.3rem",fontWeight:600},children:['Deactivate "',t.name,'"']}),(0,i.jsx)(g.Z,{css:{textDecoration:"underline",cursor:"pointer"},onClick:n,children:"Deactivate this team"})]}),(0,i.jsx)(g.Z,{css:{width:"30%",alignItems:"center",marginLeft:"2.5rem",fontSize:"0.65rem",padding:"1rem",lineHeight:"1rem",borderRadius:"2px",backgroundColor:"$gray8"},children:s})},H=(0,D.zo)("div",{marginBottom:"$7"}),V=(0,D.zo)("div",{width:"100%"}),M=(0,D.zo)(b.Z,{flexDirection:"row",justifyContent:"flex-end"}),X=(0,D.zo)("div",{alignItems:"center",display:"flex",flex:"0 0 auto",flexDirection:"column",marginBottom:"2.5em",marginRight:"0",maxWidth:"250px","@bp2":{marginBottom:"0",marginRight:"2.5em"},div:{marginBottom:"1.25em"}}),J=(0,D.zo)("div",{alignItems:"center",display:"flex",flex:"1",flexDirection:"column",marginTop:"1.25em",width:"100%","@bp2":{alignItems:"flex-start",flexDirection:"row"}});var K=!0,Y=e=>{(0,L.V)();let{lobbyUser:t,user:n,initializing:o}=(0,U.C)(q.dy),{slug:a}=e,{data:l}=(0,u.ZP)(a?(0,C.FV)(a):null,k.Z,{initialData:e.team}),{teams:g,setTeams:b}=(0,N.y)(),Z=(0,s.useRouter)(),[z,I]=(0,d.useState)(""),{handleSubmit:D,register:E}=(0,c.cI)({defaultValues:{name:l&&l.name?l.name:""}}),P=t&&l&&t._id.toString()===l.captain._id.toString(),T=async e=>{try{let t=await (0,k.Z)("".concat(C.Oy,"/").concat(null==l?void 0:l.slug),{body:JSON.stringify(e),method:"PUT"});t&&Z.push("/dashboard/teams/[slug]","/dashboard/teams/".concat(t.slug),{shallow:!0})}catch(e){I((0,S.E)(e))}},_=async()=>
1{if(confirm("Are you sure?")){b(g.filter(e=>(null==l?void 0:l._id)!==e._id),!1);try{await (0,k.Z)("".concat(C.Oy,"/").concat(null==l?void 0:l.slug,"/archive"),{method:"POST"})&&(b(),Z.push("/dashboard"))}catch(e){I((0,S.E)(e))}}};return(0,i.jsx)(j.Z,{sectionTitle:"Edit Team",children:(0,i.jsx)(h.Z,{isLoading:o,allowed:void 0!==P&&P,children:(0,i.jsx)(H,{children:n&&l&&(0,i.jsxs)(f.Z,{css:{marginBottom:"3rem",flexDirection:"column",form:{width:"100%"}},children:[l.deleted&&(0,i.jsx)(r.b,{message:"This team has been deactivated",theme:"warning",style:{width:"100%",marginTop:"1rem"}}),(0,i.jsx)($.Z,{title:"Editing ".concat(l.name)}),(0,i.jsxs)(J,{children:[(0,i.jsxs)(X,{children:[(0,i.jsx)(m.Z,{name:l.name,image:l.avatar,size:"xl"}),(0,i.jsx)(w.Z,{headerText:"Upload Image",width:"40",activator:e=>{let{setShow:t}=e;return(0,i.jsx)(p.ZP,{appearance:"secondary",onClick:()=>t(!0),children:"Upload Image"})},children:(0,i.jsx)(R,{team:l})})]}),(0,i.jsxs)(V,{children:[(0,i.jsxs)(x.Z,{onSubmit:D(T),children:[(0,i.jsx)(y.Z,{htmlFor:"name",children:"Team Name"}),(0,i.jsx)(v.Z,{name:"name",type:"text",ref:E({required:"Required"})}),(0,i.jsxs)(M,{children:[(0,i.jsx)(p.ZP,{type:"submit",children:"Submit"}),(0,i.jsx)(p.ZP,{appearance:"secondary",onClick:()=>Z.push("/dashboard/teams/[slug]","/dashboard/teams/".concat(l.slug)),children:"Cancel"})]})]}),z&&(0,i.jsx)("p",{children:z})]}),(0,i.jsx)(G,{team:l,onDeactivate:_})]})]})})})})}},3379:function(e,t,n){"use strict";n.d(t,{MP:function(){return l},P6:function(){return o},ZA:function(){return s},bD:function(){return a},b_:function(){return r},e$:function(){return i}});let i=(e,t,n)=>{let{type:i,message:r}=t;if(r&&""!==r)return r.toString();switch(i){case"required":return"".concat(e||"Field"," is required");case"min":if(n&&void 0!==n.min)return"".concat(e||"Field"," must be at least ").concat(n.min);break;case"max":if(n&&void 0!==n.max)return"".concat(e||"Field"," must be a maximum of ").concat(n.max)}return"This caused a problem submitting your request"},r=(e,t)=>{let n;if(e){if(t[e])return t[e];let i=e.replace(/\]/g,"").split("[");n=i.reduce((e,n,r)=>{let o=e||t;return o[n]?o[n]:r===i.length-1?null:e},null)}return n},o=(e,t,n,i)=>n&&(Array.isArray(e)||void 0===e)?e?i?t.filter(t=>e.includes(t.value)):e:[]:i?t.find(t=>e===t.value):""===e?void 0:e,a=(e,t,n)=>{if(!n)return e;let i=null;return t&&(Array.isArray(e)||void 0===e)?(i=e?e.map(e=>"object"==typeof e&&e.value?e.value:e):[]).length?i:[]:(null==e?void 0:e.value)||null},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Field",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;if(!t)return t;let i={...t};if(n&&(null==t?void 0:t.required)){let n="function"==typeof t.validate?{validate:t.validate}:t.validate;i.validate={...n,requiredMultiSelect:n=>{let i="string"==typeof t.required?t.required:"".concat(e," is required");return n&&!!n.length||i}}}return i},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"name";return null==e?void 0:e.map(e=>{let{_id:n}=e;return{label:e[t]?e[t]:n,value:n}})}}},function(e){e.O(0,[3556,7738,554,6832,2326,2888,9774,179],function(){return e(e.s=68739)}),_N_E=e.O()}]);
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.