PageSourceSearch

https://www.start.gg/assets/__static/2219/_next/static/chunks/pages/create/league-fbb3311e37f71bdc.js

js start.gg collected 2026-09-24 08:49:56 UTC 7,974 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4193],{38615:function(e,t,r){"use strict";r.d(t,{Z:function(){return N}});var n=r(59499),a=r(67294),i=r(72555),o=r.n(i),s=r(96486),u=r(68722),c=r.n(u),l=r(13770),d=r(92777),m=r(82262),p=r(81531),f=r(63553),v=r(37247),g=r(98844),h=r(85893);function y(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,v.Z)(e);if(t){var a=(0,v.Z)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,f.Z)(this,r)}}var b=function(e){(0,p.Z)(r,e);var t=y(r);function r(){return(0,d.Z)(this,r),t.apply(this,arguments)}return(0,m.Z)(r,[{key:"render",value:function(){return(0,h.jsxs)("div",{className:"text-center",children:[(0,h.jsxs)(g.ZT,{variant:"h4",component:"h2",className:"text-warning",children:[(0,h.jsx)("i",{className:"fa fa-flag"}),"\xa0Permission Required"]}),(0,h.jsx)("p",{children:"You do not have the permissions needed to view this content"})]})}}]),r}(a.Component),j=b,k=r(4899);function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e,t,r){var i=o()({displayName:"PermissionWrapper",hasPermissions:function(){var r=null;if("function"===typeof t)r=t(this.props);else{if(!(0,s.isArray)(t))throw new Error("No `getPermissions` function or array was passed for component that uses requiresPermissions. Check definition of ".concat(e.displayName));r=t}var n=!0;if(r){var a=this.props.currentUser;if(!a)return!1;n=new l.Z(a).hasAllPermissions(r)}return n},render:function(){if(this.hasPermissions())return a.createElement(e,this.props);if(void 0===r)return a.createElement(j,this.props);if("function"===typeof r)return r(this.props);var t=r;return(0,h.jsx)(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},this.props))}});return c()(i,e),(0,k.Z)(i)}var N=O},30013:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return q},default:function(){return V}});var n=r(59499),a=r(59899),i=r(67294),o=r(38615),s=r(93267),u=r(98844),c=r(85033),l=r(50029),d=r(17674),m=r(87794),p=r.n(m),f=r(50319),v=r(66688),g=r(80008),h=r.n(g),y=r(38668),b=r(37342),j=r(99971),k=r(93665),x=r(21671),O=r(25403),N=r(39171),P=r(36347),S=r(23080),Z=r(6327),w=r(74469),L=r(85893),E={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateLeagueForm"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"params"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateLeagueParams"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createLeague"},arguments:[{kind:"Argument",name:{kind:"Name",value:"params"},value:{kind:"Variable",name:{kind:"Name",value:"params"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"createLeagueForm"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"createLeagueForm"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"League"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"adminUrl"},arguments:[{kind:"Argument",name:{kind:"Name",value:"tab"},value:{kind:"StringValue",value:"details",block:!1}}],directives:[]}]}}],loc:{start:0,end:162,source:{body:'#import "./CreateLeagueForm.fragment.gql"\n\nmutation CreateLeagueForm ($params: CreateLeagueParams!) {\n\tcreateLeague (params: $params) {\n\t\t...createLeagueForm\n\t}\n}',name:"GraphQL request",locationOffset:{line:1,column:1}}}};var C=function(e){var t=(0,f.D)(E),r=(0,d.Z)(t,1)[0],n=(0,y.eF)().translate,a=(0,y.s0)().refetchUserAndNavigate,o=new j.Z(n),s=i.useState(!1),u=(0,d.Z)(s,2),c=(u[0],u[1]),m=h().tz.guess(),g=h().tz.zone(m).name,C=[{value:S.Z.SINGLES,label:n("EventType.name.".concat(S.Z.SINGLES))},{value:S.Z.TEAMS,label:n("EventType.name.".concat(S.Z.TEAMS))}],F=function(e){c(w.Z.supportsMixedMode(e.id))},A=function(){var e=(0,l.Z)(p().mark((function e(t){var n,i,o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({variables:{params:t}});case 2:return(n=e.sent).errors||(i=n.data,o=i.createLeague,a(o.adminUrl)),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,L.jsx)(b.Z,{onSubmit:A,children:function(e){var t=e.handleSubmit;return(0,L.jsxs)("form",{onSubmit:t,children:[(0,L.jsx)(k.hj,{headerText:n("CreateLeagueForm.name.header")}),(0,L.jsx)(v.gN,{name:"name",component:k.II.ffAdapter,placeholder:n("CreateLeagueForm.name.placeholder"),validate:o.composeValidators(o.required,o.maxLength(80))}),(0,L.jsx)(k.hj,{headerText:n("CreateLeagueForm.videogame.header")}),(0,L.jsx)(x.xu,{sx:{mt:1},children:(0,L.jsx)(v.gN,{name:"videogameId",onSelected:F,required:!0,validate:o.required,
1component:N.Z})}),(0,L.jsx)(v.gN,{name:"eventType",placeholder:n("CreateLeagueForm.eventType.placeholder"),label:n("CreateLeagueForm.eventType.label"),required:!0,options:C,component:O.Ph.ffAdapter}),(0,L.jsx)(v.gN,{name:"requireEntrantVerification",label:n("CreateLeagueForm.requireEntrantVerification.label"),defaultChecked:!1,component:k.XZ.ffAdapter}),(0,L.jsx)(P.Z.ffAdapter,{}),(0,L.jsx)(k.hj,{headerText:n("CreateLeagueForm.dates.header")}),(0,L.jsxs)(x.MI,{direction:"row",spacing:1,itemProps:{xs:!0},children:[(0,L.jsx)(v.gN,{name:"startAt",component:O.xZ.ffAdapter,label:n("CreateLeagueForm.dates.startAt"),isRequired:!0,timezone:g,allowPastDates:!1,unix:!0,validate:o.composeValidators(o.required,o.isValidStart("endAt"))}),(0,L.jsx)(v.gN,{name:"endAt",component:O.xZ.ffAdapter,label:n("CreateLeagueForm.dates.endAt"),isRequired:!0,timezone:g,allowPastDates:!1,unix:!0,validate:o.composeValidators(o.required,o.isValidEnd("startAt"))})]}),(0,L.jsx)(Z.Mm,{label:n("CreateLeagueForm.submit")})]})}})},F=C;var A=(0,o.Z)((function(){return(0,L.jsx)(c.Z,{children:(0,L.jsx)(F,{})})}),(function(){return[{type:{permissionType:s.Z.prefix},permission:s.Z.PERMISSION_BETA}]}),(function(){return(0,L.jsx)(u.l_,{})}));function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var _=function(e){return(0,L.jsx)(A,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?T(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e))},D={titleKey:"league_create",loginRequired:!0,pageTelemetry:{name:"Create",content:{audienceMode:r(29229)._l.Enterprise}}};_.routeMeta=D,_.getLayout=(0,a.G)(D);var q=!0,V=_},1400:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/create/league",function(){return r(30013)}])}},function(e){e.O(0,[4193],(function(){e.E(5720)}),5);e.O(0,[5675,4738,3206,4591,6376,9127,866,9774,2888,179],(function(){return t=1400,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
2//# sourceMappingURL=league-fbb3311e37f71bdc.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.