PageSourceSearch

https://www.barstoolsports.com/_next/static/chunks/8476-348acefc579aee89.js

js barstoolsports.com collected 2026-09-24 08:40:12 UTC 14,950 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8476],{62592:function(e,t,r){r.d(t,{O:function(){return FormikWrapped}});var i=r(85893),n=r(5379),l=r.n(n),a=r(67294),o=r(82580),s=r(93514),d=r(63750),c=r(40810);function FormFileInputField(e){let{accept:t="image/jpeg,image/png,image/gif",prompt:r="",heading:n,onChange:o,value:m,name:u,error:b,ctaText:p="Browse Files",multiple:x=!1}=e,h=m?Array.isArray(m)?m:[m]:[];return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.Z,{heading:n,error:b,children:(0,i.jsxs)("label",{htmlFor:u,className:l().dynamic([["d809916653b2eec",[s.C6.FONTS.HELVETICA,s.C6.COLORS.GRAY,s.C6.COLORS.ERROR,s.C6.COLORS.ERROR]]])+" file-upload-label",children:[(0,i.jsx)("p",{className:l().dynamic([["d809916653b2eec",[s.C6.FONTS.HELVETICA,s.C6.COLORS.GRAY,s.C6.COLORS.ERROR,s.C6.COLORS.ERROR]]])+" prompt-text",children:r}),(0,i.jsx)("div",{className:l().dynamic([["d809916653b2eec",[s.C6.FONTS.HELVETICA,s.C6.COLORS.GRAY,s.C6.COLORS.ERROR,s.C6.COLORS.ERROR]]])+" upload-cta",children:(0,i.jsx)("span",{className:l().dynamic([["d809916653b2eec",[s.C6.FONTS.HELVETICA,s.C6.COLORS.GRAY,s.C6.COLORS.ERROR,s.C6.COLORS.ERROR]]])+" browse-cta",children:h.length?"Change File":p})}),(0,i.jsx)("input",{onChange:function(e){let{files:t}=e.target,r=x?t:t[0];null==o||o(r)},type:"file",name:u,id:u,accept:t,multiple:!1,className:l().dynamic([["d809916653b2eec",[s.C6.FONTS.HELVETICA,s.C6.COLORS.GRAY,s.C6.COLORS.ERROR,s.C6.COLORS.ERROR]]])}),(null==h?void 0:h.length)>0&&h.map((e,t)=>{let{name:r}=e;return(0,i.jsx)(a.Fragment,{children:(0,i.jsxs)("p",{className:l().dynamic([["d809916653b2eec",[s.C6.FONTS.HELVETICA,s.C6.COLORS.GRAY,s.C6.COLORS.ERROR,s.C6.COLORS.ERROR]]])+" upload-progress",children:[r," ",(0,i.jsx)(d.nRB,{color:"green",size:"20px"})]})},t)})]})}),(0,i.jsx)(l(),{id:"d809916653b2eec",dynamic:[s.C6.FONTS.HELVETICA,s.C6.COLORS.GRAY,s.C6.COLORS.ERROR,s.C6.COLORS.ERROR],children:".super-heading.__jsx-style-dynamic-selector{font-weight:bold;font-size:14px;line-height:16px;font-family:".concat(s.C6.FONTS.HELVETICA,";text-align:left;margin-top:24px}.file-upload-label.__jsx-style-dynamic-selector{position:relative;font-weight:normal;text-align:left;font-size:14px;border:2px solid#666;border-style:dashed;color:").concat(s.C6.COLORS.GRAY,";background-color:transparent;padding:24px 16px;margin-top:10px}.label-errored.__jsx-style-dynamic-selector{border:2px solid ").concat(s.C6.COLORS.ERROR,"}.file-upload-label.__jsx-style-dynamic-selector p.__jsx-style-dynamic-selector{font-size:12px}.file-upload-label.__jsx-style-dynamic-selector input.__jsx-style-dynamic-selector{position:absolute;top:0;right:0;bottom:0;left:0;height:100%;opacity:0;opacity:0%;cursor:pointer}.field-error.__jsx-style-dynamic-selector{font-size:14px;line-height:155.14%;color:").concat(s.C6.COLORS.ERROR,";margin-bottom:1rem;text-align:left}.upload-cta.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin:0 auto;text-align:center;font-size:12px}.uploaded.__jsx-style-dynamic-selector{background-color:white;border:1px solid#999}.browse-cta.__jsx-style-dynamic-selector{padding:8px 16px;-webkit-border-radius:24px;-moz-border-radius:24px;border-radius:24px;font-size:12px;text-transform:uppercase;border:1px solid#eb3e3e;background-color:transparent;color:#eb3e3e;font-weight:700;line-height:1}.upload-progress.__jsx-style-dynamic-selector{font-size:14px;text-align:center;font-weight:500;margin-top:1rem;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;
1-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:100%}.upload-progress.__jsx-style-dynamic-selector:last-of-type{margin-bottom:0}.prompt-text.__jsx-style-dynamic-selector{margin-bottom:24px;text-align:center;font-size:12px;font-weight:400;color:#000;line-height:1.25}")})]})}function FormikWrapped(e){let[t,r,n]=(0,o.U$)(e);return(0,i.jsx)(FormFileInputField,{error:r.touched&&r.error,...t,...e,onChange:n.setValue})}},98476:function(e,t,r){r.d(t,{Z:function(){return components_ViralVideoSubmission}});var i=r(85893),n=r(67294),l=r(82580),a=r(5379),o=r.n(a),s=r(93514),d=r(83160),c=r(12648),m=r(62592),u=r(35818),b=r(81710),p=r(40810),x=r(93967),h=r.n(x);function FormSelectInput(e){var t;let{errors:r,options:n,label:a,required:o,name:d,placeholder:c,marginBottom:m="0"}=e,u=r?r.includes(".")?null==d?void 0:null===(t=d.split("."))||void 0===t?void 0:t.reduce((e,t)=>null==e?void 0:e[t],r):r:null;return(0,i.jsx)(p.Z,{error:u,children:(0,i.jsxs)("div",{className:h()("selectContainer min-h-[44px] block relative bg-transparent border-solid mb-4",{"border-2 border-black mb-4":!u,"border border-[#EB3E3E] mb-1":u}),children:[a&&(0,i.jsxs)("label",{htmlFor:"input-".concat(d),className:"text-left bg-transparent font-semibold text-[10px] leading-[18px] pt-[10px] px-4 pb-0 text-[".concat(s.C6.COLORS.TEXTCOLOR,"] border-none mt-0 mr-0 mb-[6px] ml-0"),children:[a,o&&"*"]}),(0,i.jsx)("div",{className:"h-8",children:(0,i.jsxs)(l.gN,{className:"bg-transparent pt-[39px] px-4 pb-[10px] absolute top-0 h-full z-[3] cursor-pointer color-black leading-5 focus:border-none focus:outline-none",style:{marginBottom:m},component:"select",name:d,placeholder:c,children:[(0,i.jsx)("option",{value:"",disabled:!0,children:"-- Select --"}),n.map((e,t)=>{let{value:r,label:n,...l}=e;return(0,i.jsx)("option",{value:r,...l,children:n},t)})]})}),(0,i.jsx)("div",{className:"absolute top-[28px] right-[28px]",children:(0,i.jsx)(b.Z,{direction:"down",width:"auto",height:"12px",color:"#141E30"})})]})})}let FormikWrapped=e=>{let{onChange:t,...r}=e,[n,a]=(0,l.U$)(r);return(0,i.jsx)(FormSelectInput,{...n,...r,errors:a.touched&&(r.error||a.error),onChange:e=>{null==t||t(e),n.onChange({target:{value:e,name:r.name},name:r.name})}})};var f=r(76980),y=r(8731),g=r(41609),C=r.n(g),O=r(41664),R=r.n(O);let j=[{id:"anonymous",value:"anonymous",label:"Anonymous"},{id:"twitter",value:"twitter",label:"Twitter"},{id:"instagram",value:"instagram",label:"Instagram"},{id:"tiktok",value:"tiktok",label:"TikTok"}];async function formatViralVideoValues(e){var t;let r;let{full_name:i,email:n,birthday:l,attribution:a,social_handle:o,college:d,content_submission:c,id_image:m}=e,u=null===(t=c.split(".com/"))||void 0===t?void 0:t[1];return m&&(r=await (0,s.Wj)(m,"viral_video_form")),{key:u,attribution:a&&"anonymous"!==a?{name:i,email:n,[a]:o,college:d,birthday:l,id_image:r}:{name:i,email:n,college:d,birthday:l,id_image:r}}}var S=r(48403),v=r.n(S),_=r(8100);async function fetchCollegesList(){let e=await fetch("https://media.barstoolsports.com/brands/config/college-list.json");return e.json()}function ViralVideosForm(e){let{values:t,errors:r,isSubmitting:a,setFieldTouched:b,submissionError:p,successfulSubmission:x,title:h,minAge:g,brandContent:O=!1,college:S=!1}=e,{attribution:w,policy:E,age_minimum:k,outside_agreements:F,ownership:N,alcohol:L,signature:T}=t,A=(0,s.Ay)(t.birthday)>=21,B=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:18;return[{name:"policy",label:(0,i.jsxs)(i.Fragment,{children:["I understand and agree to the"," ",(0,i.jsx)("a",{href:"https://www.barstoolsports.com/content-policy",target:"_blank",rel:"norefferer noreferrer",style:{color:"#2F63EA"},children:"content policy"})," ","and"," ",(0,i.jsx)("a",{href:"https://www.barstoolsports.com/privacy-policy",target:"_blank",rel:"norefferer noreferrer",style:{color:"#2F63EA"},children:"privacy policy"})]})},{name:"age_minimum",label:"I am over the age of ".concat(e)},{name:"outside_agreements",label:"I have not signed any exclusive agreements with anyone else, or any other website(s)"},{name:"ownership",label:"I physically recorded this content"},{name:"alcohol",label:"I've confirmed that everyone in the content, including myself, is over the age of 21 (if my content shows any alcohol products or branding or any other 21+ products or branding)"}]}(),q=w&&"anonymous"!==w,V=(null==t?void 0:t.birthday)&&O&&!A,z=V||!(E&&k&&F&&N&&L&&(null==T?void 0:T.length)>0),{data:I=[]}=function(){let{data:e,error:t}=(0,_.ZP)(["/api/media/college-list"],fetchCollegesList);return{data:e,error:t,isLoading:!(e||t)}}();return(0,n.useEffect)(()=>{b("social_handle",q)},[q]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.l0,{children:[(0,i.jsx)("h1",{className:o().dynamic([["2bd9dfe0f83a242b",[s.C6.FONTS.BEBAS]]])+" bebas uppercase text-[32px] m-0 font-normal leading-none text-center",children:x?"Your Form Has Been Submitted":h}),(0,i.jsx)("h4",{className:o().dynamic([["2bd9dfe0f83a242b",[s.C6.FONTS.BEBAS]]])+" mt-4 mb-8 text-base font-normal text-center",children:x?"Thank You!":"Please fill out the form below to submit c
1ontent."}),!x&&(0,i.jsxs)("div",{id:"viral-video-form",className:o().dynamic([["2bd9dfe0f83a242b",[s.C6.FONTS.BEBAS]]]),children:[(0,i.jsx)(c.O,{required:!0,name:"full_name",placeholder:"First and last name",label:"Full Name"}),(0,i.jsx)(c.O,{required:!0,name:"email",type:"email",placeholder:"Email address",label:"Email"}),(0,i.jsx)(FormikWrapped,{name:"attribution",placeholder:"Select",required:!0,label:"Attribution",options:j}),q&&(0,i.jsx)(c.O,{required:!0,name:"social_handle",startEnhancer:"@",placeholder:"Handle",label:v()(w)+" Handle"}),S&&(0,i.jsx)(f.O,{name:"college",placeholder:"Search for College / University",allowCustomChoice:!0,required:!0,label:"College or University",options:I.map(e=>{let{schools:t}=e;return{id:t,value:t,label:t}}),inputColor:"#000"}),O&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.O,{required:!0,name:"birthday",placeholder:"MM/DD/YYYY",label:"Birthdate",inputMask:s._G}),A&&(0,i.jsx)(m.O,{accept:"image/png,image/jpeg",prompt:"You have indicated that you are 21+. In order to verify your age, please upload a copy of a valid driver’s license or other valid government-issued ID.",name:"id_image",error:r.id_image,ctaText:"Submit Photo ID"})]}),(0,i.jsx)("h3",{className:o().dynamic([["2bd9dfe0f83a242b",[s.C6.FONTS.BEBAS]]])+" mt-6 mb-3 text-2xl font-normal leading-none text-center uppercase bebas",children:"Upload Your Content"}),(0,i.jsx)(u.O,{name:"content_submission",error:r.content_submission,ctaText:"Choose a File",useV2:!0}),(0,i.jsx)("h4",{className:o().dynamic([["2bd9dfe0f83a242b",[s.C6.FONTS.BEBAS]]])+" mt-6 mb-4 text-sm font-medium",children:"Terms & Conditions"}),B.map((e,t)=>{let{label:r,name:n}=e;return(0,i.jsx)(d.XZ,{border:"none",name:n,label:(0,i.jsx)(d.ke,{required:!0,children:r}),boxPosition:{left:"0px",top:"2px"},checkPosition:{left:"4px",top:"6px"}},t)}),(0,i.jsxs)("p",{className:o().dynamic([["2bd9dfe0f83a242b",[s.C6.FONTS.BEBAS]]])+" text-[#757575] text-sm font-normal",children:["By signing/typing your name below, you agree to the Barstool Sports"," ",(0,i.jsx)(R(),{href:"/content-policy",target:"_blank",rel:"norefferer noreferrer",children:"Non-Exclusive Content License & Submission Policy"}),","," ",(0,i.jsx)(R(),{href:"/terms-of-use",target:"_blank",rel:"norefferer noreferrer",children:"Terms of Service"}),", and"," ",(0,i.jsx)(R(),{href:"/privacy-policy",target:"_blank",rel:"norefferer noreferrer",children:"Privacy Policy"}),", and you certify that all of the information submitted to Barstool Sports through this electronic form is true and accurate."]}),(0,i.jsx)(c.O,{name:"signature",placeholder:"*Signature",label:"Signature",required:!0,marginBottom:"16px",style:{fontFamily:"cursive"}}),(V||!C()(r))&&(0,i.jsxs)("div",{className:o().dynamic([["2bd9dfe0f83a242b",[s.C6.FONTS.BEBAS]]])+" bg-[#FEEAEC] text-sm border-solid border border-[#C62232] text-[#C62232] mb-4 py-4 text-center",children:["Error:"," ",V?"You must be at least 21 years old to submit content":null!=p?p:"Please complete the required fields above"]}),(0,i.jsx)(y.Z,{disabled:z,className:"btn",style:{margin:"0",padding:"22px 0",fontSize:"16px",fontWeight:"700"},loading:a,children:"Submit"})]})]}),(0,i.jsx)(o(),{id:"2bd9dfe0f83a242b",dynamic:[s.C6.FONTS.BEBAS],children:".bebas.__jsx-style-dynamic-selector{font-family:".concat(s.C6.FONTS.BEBAS,"}")})]})}var w=r(7484),E=r(20984),k=r(74231);let F={full_name:"",email:"",birthday:"",attribution:"",college:"",social_handle:""},N={full_name:k.Z_().trim().min(1,"Please enter your full name").required("Full name is required"),attribution:k.Z_().required("Attribution is required"),social_handle:k.Z_().when("attribution",{is:e=>"twitter"===e||"instagram"===e,then:k.Z_().trim().min(1,"Please enter your social handle").required("Social handle is required for the selected attribution type"),otherwise:k.Z_().nullable()}),email:k.Z_().email("Please enter a valid email").required("Email is required"),id_image:k.nK().when("birthday",{is:e=>{let t=(0,s.Ay)(e)>=21;return t},then:k.nK().test("required","Photo ID is required.",e=>!!e).test("size","This uploaded file is too large",e=>e&&e.size<=12582912),otherwise:k.Z_().nullable()}),content_submission:k.nK().test("required","Content Submission is required.",e=>!!e)};
1var components_ViralVideoSubmission=function(e){let{college:t=!1,brandContent:r=!1}=e,[a,o]=(0,n.useState)(!1),[s,d]=(0,n.useState)();async function handleSubmit(e){try{let i=await formatViralVideoValues(e);await E.Xn.create({...i,source:r?"brand":"barstool"}),(0,w.qP)("viral_video_form_submission",t?"college-form":r?"brand-content":"standard-form"),o(!0),window.scrollTo(0,0)}catch(e){var i,n;console.error(null!==(i=null==e?void 0:e.message)&&void 0!==i?i:e),d(null!==(n=null==e?void 0:e.message)&&void 0!==n?n:e)}}let c=r?21:18,m=r?"Brand Content Submission Form (21+ Only)":"Send Us Your Best Content";return(0,i.jsx)("div",{className:"mt-[10px] w-full mx-auto max-w-[528px] bg-white px-6 py-8 md:mt-6",children:(0,i.jsx)(l.J9,{initialValues:F,enableReinitialize:!0,validateOnChange:!1,validationSchema:k.Ry().shape({...N,birthday:r?k.Z_().trim().min(1,"Please enter your birth date").test("is date","Must be a valid date",e=>{let t=new Date(e).getTime();return!isNaN(t)&&new Date(e)<new Date}).required("Birthdate is required"):k.Z_().trim().nullable(),college:t?k.Z_().trim().min(1,"Please enter your college or university").required("College/University is required"):k.Z_().trim().nullable()}),validateOnBlur:!1,onSubmit:handleSubmit,children:e=>(0,i.jsx)(ViralVideosForm,{...e,successfulSubmission:a,submissionError:s,title:m,minAge:c,college:t,brandContent:r})})})}}}]);

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.