PageSourceSearch

https://www.brighteon.com/_next/static/chunks/pages/dashboard/request-invitation/request-fb480627c7efc0cd.js

js brighteon.com collected 2026-09-24 08:04:42 UTC 15,635 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6455],{57948:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/request-invitation/request",function(){return t(3110)}])},36282:function(e,n,t){"use strict";t.d(n,{Lw:function(){return l},O2:function(){return u},jK:function(){return c},pg:function(){return d}});var r,i=t(51037),s=t(85556),a=t(55539),o=t(38497),c=(r=(0,i._)(function(e){return(0,s.Jh)(this,function(n){switch(n.label){case 0:return[4,a.Z.post("".concat(o.KZ,"/invitations/request"),e)];case 1:return[2,n.sent()]}})}),function(e){return r.apply(this,arguments)}),l=function(e,n){return a.Z.post("".concat(o.KZ,"/invitations/code/").concat(e),{email:n})},u=function(e,n){return a.Z.post("".concat(o.KZ,"/invitations/send/").concat(e),n)},d=function(e){return a.Z.get("".concat(o.KZ,"/invitations/code/").concat(e))}},46321:function(e,n,t){"use strict";t.d(n,{CX:function(){return u},Gh:function(){return l},Kn:function(){return a},ME:function(){return o},pB:function(){return c}});var r=t(55539),i=t(38497),s=t(13341),a=function(e){var n="".concat(i.KZ,"/inviteurl").concat((0,s.Nq)(e));return r.Z.get(n)},o=function(e){return r.Z.post("".concat(i.KZ,"/inviteurl/delete"),{ids:e})},c=function(e){return r.Z.post("".concat(i.KZ,"/inviteurl"),{email:e})},l=function(e){return r.Z.post("".concat(i.KZ,"/inviteurl/resend"),{ids:e})},u=function(e){return r.Z.get("".concat(i.KZ,"/inviteurl/").concat(e))}},52514:function(e,n,t){"use strict";t.d(n,{Z:function(){return h}});var r=t(60053),i=t(24246),s=t(27378),a=t(34139),o=t(77418),c=t(97283),l=t(26574),u=t(70533),d=function(e){if(!e||!e.startsWith("+"))return{country:"US",number:e||""};var n=Object.entries(u.Qd).sort(function(e,n){return n[1].dialCode.length-e[1].dialCode.length}),t=!0,i=!1,s=void 0;try{for(var a,o=n[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var c=(0,r._)(a.value,2),l=c[0],d=c[1].dialCode;if(e.startsWith(d))return{country:l,number:e.substring(d.length)}}}catch(e){i=!0,s=e}finally{try{t||null==o.return||o.return()}finally{if(i)throw s}}return{country:"US",number:e.substring(1)}},h=s.memo(function(e){var n=e.value,t=void 0===n?"":n,h=e.onChange,m=e.defaultCountry,f=e.direction,v=e.classes,p=e.dropdownClasses,g=e.error,x=e.disabled,b=void 0!==x&&x,N=s.useMemo(function(){return d(t)},[t]),j=(0,r._)(s.useState(N.country||(void 0===m?"US":m)),2),y=j[0],_=j[1],w=(0,r._)(s.useState(N.number),2),k=w[0],C=w[1],S=(0,r._)(s.useState(!1),2),T=S[0],Z=S[1];s.useEffect(function(){if(t){var e=d(t);_(e.country),C(e.number)}},[t]);var M=s.useCallback(function(e){_(e),h&&h("".concat(u.Qd[e].dialCode).concat(k))},[k,h]),P=s.useCallback(function(){return Z(function(e){return!e})},[]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"phone-number-input full-width",children:[(0,i.jsxs)(a.Z,{isOpen:T,toggle:P,direction:void 0===f?"down":f,className:"".concat(v||""," Button PostOptions ActionButtonDashboard"),disabled:b,children:[(0,i.jsx)(o.Z,{caret:!0,className:"dropdown-toggle",children:u.Qd[y].dialCode}),(0,i.jsx)(c.Z,{className:"".concat(p||""," dropdown-menu Dropdown DropdownPrimary DropdownPrimary BoxShadow NoClose USN DropdownOpen"),style:{maxHeight:"300px",overflowY:"auto"},children:Object.entries(u.Qd).map(function(e){var n=(0,r._)(e,2),t=n[0],s=n[1],a=s.name,o=s.dialCode;return(0,i.jsx)(l.Z,{onClick:function(){return M(t)},children:(0,i.jsx)("div",{className:"AutoLabel",children:(0,i.jsx)("div",{className:"AutoText",children:"".concat(a," (").concat(o,")")})})},t)})})]}),(0,i.jsx)("div",{className:"FormInput full-width phone-input",children:(0,i.jsx)("input",{type:"tel",value:k,maxLength:20,onChange:function(e){var n=e.target.value.replace(/\D/g,"");C(n),h&&(n?h("".concat(u.Qd[y].dialCode).concat(n)):h(""))},placeholder:"Enter phone number",disabled:b})})]}),g&&(0,i.jsx)("div",{style:{display:g?"block":"none"},className:"FormError FS12 FW600",children:g})]})})},64561:function(e,n,t){"use strict";var r=t(60053),i=t(15322),s=t(95485),a=t(27378);n.Z=function(e){var n=a.useRef(null),t=a.useRef(""),o=(0,r._)(a.use
1State(!1),2),c=o[0],l=o[1];return a.useEffect(function(){var e=document.createElement("script");return e.src=s.PX,e.async=!0,document.body.appendChild(e),function(){document.body.removeChild(e)}},(0,i._)(e||[])),{turnstileRef:n,turnstileToken:t,verifyTurnstile:c,setVerifyTurnstile:l}}},95485:function(e,n,t){"use strict";t.d(n,{hO:function(){return i},gO:function(){return a},PX:function(){return s}});var r=t(14029),i=(0,r.e)("https://legal.brighteon.com/PrivacyPolicy.html"),s="https://challenges.cloudflare.com/turnstile/v0/api.js?onload=onloadTurnstileCallback";(0,r.e)("https://legal.brighteon.com/PremiumVideoTermsandConditions.html");var a="https://app.fluidpay.com/tokenizer/tokenizer.js"},4928:function(e,n,t){"use strict";t.d(n,{Z:function(){return d}});var r=t(24246);t(27378);var i=t(15693),s=t(62018),a=t(9897),o=t(14029),c=function(){return(0,r.jsx)("div",{id:"AuthFooter",children:(0,r.jsxs)("div",{className:"Content",children:[(0,r.jsx)("a",{href:(0,o.e)("https://support.brighteon.com"),target:"_blank",rel:"noreferrer",children:"Help Center"})," ","•"," ",(0,r.jsx)("a",{href:(0,o.e)("https://legal.brighteon.com/TermsofService.html"),target:"_blank",rel:"noreferrer",children:"Terms of Use"})," ","•"," ",(0,r.jsx)("a",{href:(0,o.e)("https://legal.brighteon.com/PrivacyPolicy.html"),target:"_blank",rel:"noreferrer",children:"Privacy Policy"})," ","•\xa0\xa9\xa0",s.cg.subName,".com"]})})},l=t(69473),u=function(e){var n,i,a,o=e.setOpenMenuHandle,c=e.theme;return(0,r.jsx)("div",{className:"StickyTop",children:(0,r.jsx)("div",{id:"AuthMasthead",className:"header-".concat(c),children:(0,r.jsxs)("div",{className:"Content",children:[(0,r.jsx)("div",{id:"AuthLogo",children:(0,r.jsx)("a",{id:"HomeLink",href:"/",children:(0,r.jsx)("img",{src:c===s.bM.LIGHT||c===s.bM.SYSTEM&&(null===(a=window)||void 0===a?void 0:null===(i=a.matchMedia)||void 0===i?void 0:null===(n=i.call(a,"(prefers-color-scheme:light)"))||void 0===n?void 0:n.matches)?t(10060).xB.getLogoUrl("light"):t(10060).xB.getLogoUrl("dark"),alt:s.cg.name,className:"Logo"})})}),(0,r.jsxs)("div",{id:"AuthNavigation",children:[(0,r.jsx)("div",{className:"AuthLink",id:"AuthLinkAction",children:(0,r.jsx)("a",{href:(0,l.UD)(),children:"Login"})}),(0,r.jsx)("div",{className:"AuthLink NoClose SettingsOpen",id:"AuthLinkHelp",children:(0,r.jsx)("a",{onClick:function(){return o(s.E7.RIGHT_MENU)},children:"Help & Support"})})]}),(0,r.jsx)("div",{id:"AuthMenu",children:(0,r.jsx)("div",{className:"ButtonIcon NoClose SettingsOpen","aria-label":"Menu",id:"ButtonAuthMenu",onClick:function(){return o(s.E7.RIGHT_MENU)},children:(0,r.jsx)("div",{className:"Icon",children:(0,r.jsx)("img",{src:"/icons/new-ui/Icon-Menu.svg",alt:"".concat(s.cg.subName,"-Menu"),className:"Menu"})})})})]})})})},d=function(e){var n=e.children,t=(0,a.Z)(),o=t.setThemeHandle,l=t.setOpenMenuHandle,d=t.theme,h=t.openMenu,m=t.openPrivacy,f=t.messageTheme,v=t.showMessageTheme,p=t.closeOpenPrivacyHandle,g=function(e){if(e===s.bM.SYSTEM){var n;return(null===(n=window)||void 0===n?void 0:n.matchMedia("(prefers-color-scheme: dark)").matches)?s.bM.DARK:s.bM.LIGHT}return e}(d);return(0,r.jsx)("div",{className:"theme__".concat(g),children:(0,r.jsxs)("div",{className:"request-invitation-container request-invitation-container__".concat(g),children:[(0,r.jsxs)("div",{className:h?"Blur":"",children:[(0,r.jsx)(u,{setOpenMenuHandle:l,theme:g}),(0,r.jsx)("div",{className:"invitation invitation__".concat(g),children:n}),(0,r.jsx)(c,{})]}),(0,r.jsx)(i.nU,{setThemeHandle:o,setOpenMenuHandle:l,theme:d,openMenu:h,openPrivacy:m,messageTheme:f,showMessageTheme:v,closeOpenPrivacyHandle:p}),(0,r.jsx)("div",{className:"CoverDark",style:{display:h?"block":"none"},onClick:function(){return l("")}})]})})}},61751:function(e,n,t){"use strict";t.d(n,{B:function(){return f}});var r=t(51037),i=t(50858),s=t(55818),a=t(60053),o=t(85556),c=t(27378),l=t(86677),u=t(4510),d=t(36282),h=t(45097),m=t(62018),f={fullName:"",email:"",username:"",password:"",confirmPassword:""};n.Z=function(e){var n,t,v,p=(0,a._)((0,c.useState)({step:m.AD.CODE}),2),g=p[0],x=p[1],b=(0,a._)((0,u.Z)("registerInfo",{initRegisterData:f}),2),N=b[0],j=b[1],y=function(e){x(function(n){return(0,s._)((0,i._)({},n),{step:e})})},_=(0,l.useRouter)(),w=(n=(0,r._)(function(n){var t,r,s,a;return(0,o.Jh)(this,function(o){switch(o.label){case 0:if((t=(0,i._)({},n)).password!==t.confirmPassword)return[2,(0,h.ke)("The entered passwords do not match. Try again.")];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,(0,d.O2)(t.email,{fullName:n.fullName,username:n.username,password:n.password,phoneNumber:n.phoneNumber})];case 2:return o.sent(),j(t),_.push("/dashboard/register/".concat(e,"/verify-code")),[3,4];case 3:throw"Email already exists"===(s=((r=o.sent())&&(r.response||r.data)).message)&&(a=document.getElementById("email"))&&a.scrollIntoView(),(0,h.ke)(s||"Unknown error. Please ask tech support."),r;case 4:return[2]}})}),function(e){return n.apply(this,arguments)}),k=(t=(0,r._)(function(e){var n;return(0,o.Jh)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,d.O2)(e,{fullName:N.fullName,username:N.username,password:N.password})];case 1:return t.sent(),[3,3];case 2:throw n=t.sent(),(0,h.ke)("Cannot send new code"),n;case 3:return[2]}})}),function(e){return t.apply(this,arguments)}),C=(v=(0,r._)(function(e,n){var t;return(0,o.Jh)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,(0,d.Lw)(e,n)];case 1:return r.sent(),y(m.AD.FINISH),j(f),[3,3];case 2:throw t=r.sent(),(0,h.ke)("Code Invalid"),t;case 3:return[2]}})}),function(e,n){return v.apply(this,arguments)});return{handleSubmit:w,setStepState:y,handleSubmitCode:C,handleResendCode:k,step:g.step,storedRegister:N}}},3110:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return w}});var r=t(51037),i=t(50858),s=t(55818),a=t(60053),o=t(85556),c=t(24246),l=t(36282),u=t(46321),d=t(52514),h=t(64561),m=t(13341),f=t(45097),v=t(91003),p=t(95036),g=t(86677),x=t(27378),b=t(4510),N=t(4928),j=t(61751),y=t(62018),_=t(14029),w=function(){var e,n=(0,a._)((0,x.useState)(""),2),t=n[0],w=n[1],k=(0,a._)((0,x.useState)(!1),2),C=k[0],S=k[1],T=(0,g.useRouter)(),Z=(0,m.R)(T),M=(0,a._)((0,b.Z)("registerInfo",{initRegisterData:j.B}),2),P=M[0],A=M[1],E=(0,h.Z)(),H=E.turnstileRef,O=E.turnstileToken,I=E.verifyTurnstile,L=E.setVerifyTurnstile,B=(e=(0,r._)(function(e){var n,t,r,c,u,d,h;return(0,o.Jh)(this,function(o){switch(o.label){case 0:if(!I)return(0,f.ke)("Please complete the security check"),[2];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,(0,l.jK)((0,s._)((0,i._)({},e),{turnstileToken:O.current}))];case 2:return n=o.sent(),A((0,s._)((0,i._)({},P),{email:e.email,fullName:e.fullName,phone:e.phone})),n&&T.push("/dashboard/register/".concat(n.code)),[3,4];case 3:return c=(r=(t=o.sent())&&t.data).message,(u=r.data)&&"ValidationError"===c?(d=(0,a._)(Object.keys(u),1)[0],h=u[d],(0,f.ke)(h||"Unknown error. Please ask tech support.")):c&&(0,f.ke)(c.toString()),[3,4];case 4:return[2]}})}),function(n){return e.apply(this,arguments)});(0,x.useEffect)(function(){Z.invite_id&&(0,u.CX)(Z.invite_id).then(function(e){w(e.email)})},[]);var R=(0,p.TA)({validationSchema:v.JQ,initialValues:{inviteUrlId:Z.invite_id,fullName:(null==P?void 0:P.fullName)||"",email:(null==P?void 0:P.email)||t||"",turnstileToken:""},enableReinitialize:!0,onSubmit:B});return(0,c.jsx)(N.Z,{children:(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{className:"invitation__title",children:[(0,c.jsx)("div",{className:"invitation__title__step Text",children:"Step 1 of 3"}),(0,c.jsx)("div",{className:"invitation__title__title Headline",children:"Setup Your Account"}),(0,c.jsx)("div",{className:"invitation__title__desc Text",children:"Please enter your name and email address below. In a later step, we'll send you a code to confirm your account, so please use an email you have access to."})]}),(0,c.jsx)(p.Hy,{value:R,children:(0,c.jsx)("form",{onSubmit:R.handleSubmit,autoComplete:"off",children:(0,c.jsxs)("div",{className:"form",children:[(0,c.jsxs)("div",{className:"register-form",children:[(0,c.jsx)("div",{className:"register-form-label Headline",children:"FULL NAME"}),(0,c.jsx)("input",{title:"Enter your full name",type:"text",onCh
1ange:R.handleChange,value:R.values.fullName,name:"fullName",className:"register-form-input",autoFocus:!0}),(0,c.jsx)("div",{className:"register-form-error",children:R.touched.fullName&&R.errors.fullName})]}),(0,c.jsxs)("div",{className:"register-form",children:[(0,c.jsx)("div",{className:"register-form-label Headline",children:"EMAIL"}),(0,c.jsx)("input",{title:"Enter Your Email Address",type:"text",onChange:R.handleChange,value:R.values.email,name:"email",disabled:!!t,className:"register-form-input"}),(0,c.jsx)("div",{className:"register-form-error",children:R.touched.email&&R.errors.email})]}),(0,c.jsxs)("div",{className:"register-form",children:[(0,c.jsx)("div",{className:"register-form-label Headline",children:"PHONE"}),(0,c.jsx)(p.gN,{name:"phone",className:"register-form-input",children:function(e){var n=e.field;return(0,c.jsx)(d.Z,(0,s._)((0,i._)({},n),{onChange:function(e){return R.setFieldValue("phone",e)}}))}}),(0,c.jsx)("div",{className:"register-form-error",children:R.touched.phone&&R.errors.phone})]}),(0,c.jsx)("div",{className:"form__submit",children:(0,c.jsxs)("label",{htmlFor:"terms",className:"register-form-label Headline d-flex",children:[(0,c.jsx)("div",{children:(0,c.jsx)("input",{type:"checkbox",id:"terms",checked:C,onChange:function(e){return S(e.target.checked)}})}),(0,c.jsxs)("p",{className:"ml-1",children:["By checking this box, I consent to receive automated SMS messages (including promotions, offers, and updates) from $",y.cg.name,"."]})]})}),(0,c.jsx)("div",{ref:function(e){H.current=e,window.onloadTurnstileCallback=function(){e&&window.turnstile.render(e,{sitekey:"0x4AAAAAABg6qafxURfdj4Np",callback:function(e){O.current=e,L(!0)},"error-callback":function(){console.error("Turnstile error"),O.current="",L(!1)}})}}}),(0,c.jsx)("div",{className:"form__submit",children:(0,c.jsx)("input",{disabled:R.isSubmitting||!R.values.fullName||!R.values.email||!I,type:"submit",className:"button-submit Button MGB20",title:"Send Invitation Request",value:"Continue"})}),(0,c.jsxs)("p",{className:"FS12 Text",children:[y.cg.name," will use your contact information for communication purposes only. Your information will remain private and will not be visible to other users. By creating an account, you agree to our"," ",(0,c.jsx)("a",{href:(0,_.e)("https://legal.brighteon.com/TermsofService.html"),target:"_blank",rel:"noreferrer",children:"terms of use"})," ","and acknowledge that you have read our"," ",(0,c.jsx)("a",{href:(0,_.e)("https://legal.brighteon.com/PrivacyPolicy.html"),target:"_blank",rel:"noreferrer",children:"Privacy Policy"}),"."]}),(0,c.jsxs)("p",{className:"FS12 Text",children:["If you have any issues creating your account,"," ",(0,c.jsx)("a",{href:(0,_.e)("https://support.brighteon.com"),children:"please contact our Help Center"})," ","for further assistance."]})]})})})]})})}},4510:function(e,n,t){"use strict";var r=t(60053),i=t(27378);n.Z=function(e,n){var t=(0,r._)((0,i.useState)(function(){try{var t=window.localStorage.getItem(e);return t?JSON.parse(t):n}catch(e){return console.error(e),n}}),2),s=t[0],a=t[1];return[s,function(n){try{var t=n instanceof Function?n(s):n;a(t),window.localStorage.setItem(e,JSON.stringify(t))}catch(e){console.error(e)}}]}}},function(e){e.O(0,[3187,2888,9774,179],function(){return e(e.s=57948)}),_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.