PageSourceSearch

https://www.promonews.tv/_next/static/chunks/pages/upgrade/company/choose-profile-e8c909166a419a7c.js

js promonews.tv collected 2026-10-02 05:49:08 UTC 14,200 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4440],{13219:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/upgrade/company/choose-profile",function(){return n(9220)}])},45211:function(e,t,n){"use strict";n.d(t,{Z:function(){return N}});var i=n(85893),r=n(67294),s=n(57747);var a=n(55227),o=n(85607),[l,c]=(0,a.k)({name:"StepContext"}),[u,d]=(0,o.eC)("Stepper"),p=n(25432),h=n(16554),x=n(77030),m=n(33179),f=n(16914),v=(0,h.G)((function(e,t){const n=(0,x.jC)("Stepper",e),{children:s,index:a,orientation:o="horizontal",showLastSeparator:c=!1,...d}=(0,m.Lr)(e),h=r.Children.toArray(s),v=h.length;return(0,i.jsx)(f.m.div,{ref:t,"aria-label":"Progress","data-orientation":o,...d,__css:n.stepper,className:(0,p.cx)("chakra-stepper",e.className),children:(0,i.jsx)(u,{value:n,children:h.map(((e,t)=>{return(0,i.jsx)(l,{value:{index:t,status:(n=t,n<a?"complete":n>a?"incomplete":"active"),orientation:o,showLastSeparator:c,count:v,isFirst:0===t,isLast:t===v-1},children:e},t);var n}))})})})),g=(0,h.G)((function(e,t){const{orientation:n,status:r,showLastSeparator:s}=c(),a=d();return(0,i.jsx)(f.m.div,{ref:t,"data-status":r,"data-orientation":n,"data-stretch":(0,p.PB)(s),__css:a.step,...e,className:(0,p.cx)("chakra-step",e.className)})}));function j(e){const{status:t}=c(),n=d();return(0,i.jsx)(f.m.div,{"data-status":t,...e,__css:n.indicator,className:(0,p.cx)("chakra-step__indicator",e.className)})}function y(e){const{complete:t,incomplete:n,active:r}=e,s=c();let a=null;switch(s.status){case"complete":a=(0,p.Pu)(t,s);break;case"incomplete":a=(0,p.Pu)(n,s);break;case"active":a=(0,p.Pu)(r,s)}return a?(0,i.jsx)(i.Fragment,{children:a}):null}function w(e){return(0,i.jsx)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1em",width:"1em",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}var b=n(36948);function _(e){const{status:t}=c(),n=d(),r="complete"===t?w:void 0;return(0,i.jsx)(b.J,{as:r,__css:n.icon,...e,className:(0,p.cx)("chakra-step__icon",e.className)})}var k=(0,h.G)((function(e,t){const{children:n,...r}=e,{status:s,index:a}=c(),o=d();return(0,i.jsx)(f.m.div,{ref:t,"data-status":s,__css:o.number,...r,className:(0,p.cx)("chakra-step__number",e.className),children:n||a+1})})),S=(0,h.G)((function(e,t){const{status:n}=c(),r=d();return(0,i.jsx)(f.m.h3,{ref:t,"data-status":n,...e,__css:r.title,className:(0,p.cx)("chakra-step__title",e.className)})})),E=(0,h.G)((function(e,t){const{orientation:n,status:r,isLast:s,showLastSeparator:a}=c(),o=d();return s&&!a?null:(0,i.jsx)(f.m.div,{ref:t,role:"separator","data-orientation":n,"data-status":r,__css:o.separator,...e,className:(0,p.cx)("chakra-step__separator",e.className)})})),N=function(e){var t=e.current,n=e.steps,a=e.colorScheme,o=function(e={}){const{index:t=0,count:n}=e,[i,s]=(0,r.useState)(t);return{activeStep:i,setActiveStep:s,activeStepPercent:i/("number"===typeof n?n-1:0),isActiveStep:e=>e===i,isCompleteStep:e=>e<i,isIncompleteStep:e=>e>i,getStatus:e=>e<i?"complete":e>i?"incomplete":"active",goToNext(){s((e=>"number"===typeof n?Math.min(n,e+1):e+1))},goToPrevious(){s((e=>Math.max(0,e-1)))}}}({index:t-1,count:n.length}).activeStep;return(0,i.jsx)(s.xu,{mx:"auto",maxH:"350px",pb:"8",pt:"8",px:{base:"6",md:"8"},borderTop:"1px solid",borderColor:"borders.default",children:(0,i.jsx)(v,{index:1===t?0:o,colorScheme:a||"primary",orientation:"vertical",height:"".concat(50*n.length,"px"),gap:0,children:n.map((function(e,t){return(0,i.jsxs)(g,{children:[(0,i.jsx)(j,{children:(0,i.jsx)(y,{complete:(0,i.jsx)(_,{}),incomplete:(0,i.jsx)(k,{}),active:(0,i.jsx)(k,{})})}),(0,i.jsx)(s.xu,{flexShrink:"0",children:(0,i.jsx)(S,{fontSize:"md",children:e.label})}),(0,i.jsx)(E,{})]},t)}))})})}},83961:function(e,t,n){"use strict";var i=n(85893),r=(n(67294),n(93717)),s=n(57747),a=n(22757),o=n(71293),l=n(25675),c=n.n(l),u=n(23262);t.Z=function(e){var t=e.variant,n="small"===(void 0===t?"large":t);return(0,i.jsx)(u.W2,{variant:"grey",children:(0,i.jsxs)(r.k,{direction:["column","row"],align:["flex-start","flex-end"],gap:n?3:4,py:n?2:4,children:[(0,i.jsx)(s.xu,{w:n?["133px","160px"]:["200px","267px"],children:(0,i.jsx)(c(),{unoptimized:!0,height:n?"83px":"139px",width:n?"160px":"267px",layout:"intrinsic",src:"/pro/img/Pro_orange_logo.svg",alt:"Promonews PRO"})}),(0,i.jsxs)(s.xu,{flexDirection:"column",textAlign:"left",children:[(0,i.jsx)(a.X,{size:n?"lg":"2xl",textTransform:"uppercase",fontFamily:"Router Bold",children:"Company"}),(0,i.jsx)(o.x,{fontSize:n?"md":"lg",color:"gray.600",children:"Premium visibility for companies and creatives."})]})]})})}},9220:function(e,t,n){"use strict";n.r(t);var i=n(47568),r=n(26042),s=n(828),a=n(97582),o=n(85893),l=n(67294),c=n(95962),u=n(22757),d=n(71293),p=n(85970),h=n(
15418),x=n(93717),m=n(82140),f=n(33090),v=n(32735),g=n(93108),j=n(26105),y=n(57747),w=n(10429),b=n(57169),_=n(19042),k=n(23262),S=n(83961),E=n(87536),N=n(47533),P=n(56276),L=n(11163),C=n(74231),U=n(6547),I=n(36855),R=n(55106),z=n(88383),Z=n(46800),T=n(71464),H=n(38280),O=n(2292),V=n(25675),A=n.n(V),X=n(32711),G=n(83409),F=n(45211),M=n(91296),W=C.Ry().shape({profileUrl:C.Z_().trim("").matches(/^(https:\/\/)?(www)\.promonews\.tv\/profiles\/([a-zA-Z0-9-%]*)\/([0-9]+)$/i,"Please enter a valid profile URL").required("Please enter a valid profile URL")});t.default=function(){var e,t,n,C=(0,L.useRouter)(),V=(0,P.a)(),B=V.isAuthenticated,D=V.isLoggedIn,q=V.setSignupProfile,Y=V.signUpData,$=V.isPro,J=(0,s.Z)((0,c.k)(!!Y.duplicates),2),K=J[0],Q=J[1],ee=Y.profile?{status:T.E0.resolved,data:Y.profile,error:void 0}:{status:T.E0.idle,data:null,error:void 0},te=(0,l.useState)(ee),ne=te[0],ie=te[1],re=(0,l.useState)((null===Y||void 0===Y?void 0:Y.duplicates)||""),se=re[0],ae=re[1],oe=ne.data,le=(0,E.cI)({mode:"onBlur",resolver:(0,N.X)(W),defaultValues:{profileUrl:(null===(e=Y.profile)||void 0===e?void 0:e.path)?"https://www.promonews.tv".concat(Y.profile.path.replace(/https?:\/\/[^/]+/,""),"/").concat(Y.profile.nid):""}}),ce=le.register,ue=le.handleSubmit,de=le.formState.errors,pe=le.setError,he=le.getValues,xe=le.control,me=le.watch;(0,l.useEffect)((function(){B&&!D?C.push("/login?redirect=upgrade/company/choose-profile"):B&&D&&$&&C.push("/upgrade/company")}),[B,D,$,C]),(0,l.useEffect)((function(){ne.error&&we()}),[ne.error,ne.data]);var fe=(0,E.cl)({control:xe}),ve=fe.isValid,ge=fe.isValidating,je=(0,l.useCallback)(M((function(e){ie((0,r.Z)({},ne,{status:T.E0.loading})),(0,R.k7)(e).then((function(t){t.nid&&e===parseInt(t.nid,10)?ie((0,r.Z)({},ne,{nid:e,status:parseInt(t.uid,10)>1?T.E0.rejected:T.E0.resolved,data:t,error:parseInt(t.uid,10)>1?"This profile is already linked to another account":void 0})):ie((0,r.Z)({},ne,{nid:e,status:T.E0.rejected,error:"This profile doesn't exist, please check the URL and try again"}))}),(function(){ie((0,r.Z)({},ne,{nid:e,status:T.E0.rejected,error:"This profile doesn't exist, please check the URL and try again"}))}))}),0),[ne]),ye=function(){var e=(0,i.Z)((function(){return(0,a.__generator)(this,(function(e){return!ve||ne.error?we():oe&&(q(oe,se),C.push("/upgrade/company/payment")),[2]}))}
1));return function(){return e.apply(this,arguments)}}(),we=function(){pe("profileUrl",{type:"manual",message:ne.error})};(0,l.useEffect)((function(){var e=me((function(e,t){"profileUrl"===t.name&&ne.status===T.E0.resolved&&ie(ee)}));return function(){return e.unsubscribe()}}),[me,ne,ee]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(H.Z,{title:"Upgrade to PRO Company"}),(0,o.jsx)(S.Z,{variant:"small"}),(0,o.jsx)(k.W2,{children:(0,o.jsxs)(k.X2,{children:[(0,o.jsxs)(k.sg,{variant:"two-thirds",children:[(0,o.jsx)(u.X,{size:"lg",pb:"7",children:"1. Link your account to a Promonews profile"}),(0,o.jsx)(d.x,{children:"Please choose the profile you'd like to link to your account."}),(0,o.jsx)(d.x,{children:"The Promonews database contains some duplicate profiles, to ensure your account is linked correctly, please enter the full URL of the profile below."}),(0,o.jsxs)("form",{onSubmit:ue(ye),children:[(0,o.jsxs)(p.NI,{isInvalid:!!(null===de||void 0===de||null===(t=de.profileUrl)||void 0===t?void 0:t.message),pb:"6",isRequired:!0,children:[(0,o.jsx)(h.l,{children:"Profile URL"}),(0,o.jsxs)(x.k,{children:[(0,o.jsxs)(m.B,{children:[(0,o.jsx)(f.I,(0,r.Z)({type:"text",flexGrow:1,placeholder:"https://www.promonews.tv/profiles/david-knight/647871"},ce("profileUrl"))),(0,o.jsx)(v.x,{children:ne.status===T.E0.loading?(0,o.jsx)(O.Z,{}):null})]}),(0,o.jsx)(g.z,{px:6,isDisabled:ne.status===T.E0.resolved,onClick:function(){if(ve&&!ge&&ne.status!==T.E0.loading){var e=he("profileUrl"),t=parseInt(e.split("/").slice(-1)[0],10);return je(t)}},fontSize:["sm","md"],children:"Verify profile URL"})]}),(0,o.jsx)(j.J1,{children:null===de||void 0===de||null===(n=de.profileUrl)||void 0===n?void 0:n.message}),(0,o.jsx)(p.Q6,{children:"Enter the profile URL in the format: https://www.promonews.tv/profiles/david-knight/647871"})]}),"resolved"===ne.status&&(0,o.jsxs)(y.xu,{pb:7,children:[oe&&(0,o.jsxs)(d.x,{children:["This profile is available. Your account will be linked to"," ",(0,o.jsx)(Z.rU,{isExternal:!0,href:(0,z.EW)(oe.path,oe.nid),children:oe.title})]}),(0,o.jsxs)(g.z,{variant:"link",colorScheme:"primary",onClick:Q.toggle,flex:1,width:"100%",flexDirection:"row",alignItems:"center",children:[(0,o.jsx)(y.xu,{flex:1,textAlign:"left",children:"Do you have multiple profiles on Promonews?"}),K?(0,o.jsx)(U.V,{fontSize:"12px"}):(0,o.jsx)(I.d,{fontSize:"12px"})]}),(0,o.jsxs)(w.U,{in:K,animateOpacity:!0,children:[(0,o.jsx)(d.x,{py:4,children:"If you'd like to merge any other profiles into the page you've selected above, add the URLs in the textbox below and we'll consolidate the content."}),(0,o.jsx)(b.g,{value:se,onChange:function(e){var t=e.target.value;ae(t)},borderRadius:0,placeholder:"https://www.promonews.tv/profiles/david-knight/647871"})]})]}),(0,o.jsx)(x.k,{justifyContent:"flex-end",children:ne.status===T.E0.resolved&&(0,o.jsx)(g.z,{disabled:ne.status!==T.E0.resolved,type:"submit",rightIcon:(0,o.jsx)(_.WFu,{}),children:"Next"})})]})]}),(0,o.jsx)(k.sg,{variant:"one-third",children:(0,o.jsx)(x.k,{direction:"column",alignItems:"flex-end",pt:[10,0],children:(0,o.jsx)(X.Z,{heading:(0,o.jsx)(A(),{height:"50px",width:"100px",layout:"intrinsic",src:"/pro/img/Pro_orange_logo.svg",unoptimized:!0,alt:"Promonews PRO Company"}),border:"1px solid",borderColor:"secondary.500",borderRadius:"20",headingSize:"lg",maxW:["100%","300px"],header:(0,o.jsxs)(y.xu,{pt:2,children:[(0,o.jsx)(d.x,{children:"Premium visibility for companies and creatives."}),(0,o.jsxs)(x.k,{justifyContent:"space-between",pt:2,children:[(0,o.jsx)(y.xu,{children:(0,o.jsx)(G.vN,{mode:"productPrice",paymentType:T.IX.company_monthly,size:"sm"})}),(0,o.jsx)(y.xu,{children:(0,o.jsx)(G.vN,{mode:"productPrice",paymentType:T.IX.company_annual,size:"sm"})})]})]}),children:(0,o.jsx)(F.Z,{steps:[{label:"Select your profile",description:""},{label:"Payment",description:""},{label:"Set up your profile",description:"(optional)"}],current:1})})})})]})})]})}},6547:function(e,t,n){"use strict";n.d(t,{V:function(){return s}});var i=n(24027),r=n(85893),s=(0,i.I)({displayName:"MinusIcon",path:(0,r.jsx)("g",{fill:"currentColor",children:(0,r.jsx)("rect",{height:"4",width:"20",x:"2",y:"10"})})})},36855:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var i=(0,n(24027).I)({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"})},57169:function(e,t,n){"use strict";n.d(t,{g:function(){return d}});var i=n(28912),r=n(16554),s=n(77030),a=n(33179),o=n(16914),l=n(25432),c=n(85893);var u=["h","minH","height","minHeight"],d=(0,r.G)(((e,t)=>{const n=(0,s.mq)("Textarea",e),{className:r,rows:d,...p}=(0,a.Lr)(e),h=(0,i.Y)(p),x=d?function(e,t=[]){const n=Object.assign({},e);for(const i of t)i in n&&delete n[i];return n}(n,u):n;return(0,c.jsx)(o.m.textarea,{ref:t,rows:d,...h,className:(0,l.cx)("chakra-textarea",r),__css:x})}));d.displayName="Textarea"},10429:function(e,t,n){"use strict";n.d(t,{U:function(){return d}});var i=n(52094),r=n(25432),s=n(51526),a=n(81046),o=n(67294),l=n(85893),c={exit:{height:{duration:.2,ease:i.Lj.ease},opacity:{duration:.3,ease:i.Lj.ease}},enter:{height:{duration:.3,ease:i.Lj.ease},opacity:{duration:.4,ease:i.Lj.ease}}},u={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:s})=>{var a,o;return{...e&&{opacity:(o=t,null!=o&&parseInt(o.toString(),10)>0?1:0)},height:t,transitionEnd:null==r?void 0:r.exit,transition:null!=(a=null==n?void 0:n.exit)?a:i.p$.exit(c.exit,s)}},enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:s})=>{var a;return{...e&&{opacity:1},height:t,transitionEnd:null==r?void 0:r.enter,transition:null!=(a=null==n?void 0:n.enter)?a:i.p$.enter(c.enter,s
1)}}},d=(0,o.forwardRef)(((e,t)=>{const{in:n,unmountOnExit:i,animateOpacity:c=!0,startingHeight:d=0,endingHeight:p="auto",style:h,className:x,transition:m,transitionEnd:f,...v}=e,[g,j]=(0,o.useState)(!1);(0,o.useEffect)((()=>{const e=setTimeout((()=>{j(!0)}));return()=>clearTimeout(e)}),[]),(0,r.ZK)({condition:Number(d)>0&&!!i,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const y=parseFloat(d.toString())>0,w={startingHeight:d,endingHeight:p,animateOpacity:c,transition:g?m:{enter:{duration:0}},transitionEnd:{enter:null==f?void 0:f.enter,exit:i?null==f?void 0:f.exit:{...null==f?void 0:f.exit,display:y?"block":"none"}}},b=!i||n,_=n||i?"enter":"exit";return(0,l.jsx)(s.M,{initial:!1,custom:w,children:b&&(0,l.jsx)(a.E.div,{ref:t,...v,className:(0,r.cx)("chakra-collapse",x),style:{overflow:"hidden",display:"block",...h},custom:w,variants:u,initial:!!i&&"exit",animate:_,exit:"exit"})})}));d.displayName="Collapse"}},function(e){e.O(0,[4321,7533,2694,9774,2888,179],(function(){return t=13219,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.