1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8827],{92096:function(e,t,n){"use strict";n.d(t,{Z:function(){return N}});var r=n(7896),i=n(31461),o=n(2784),a=n(6277),s=n(69075),u=n(65992),l=n(43853),c=n(17377),p=n(69222),d=n(15672);function T(e){return(0,d.Z)("MuiCard",e)}(0,p.Z)("MuiCard",["root"]);var h=n(52322);let y=["className","raised"],_=e=>{let{classes:t}=e;return(0,s.Z)({root:["root"]},T,t)},I=(0,u.ZP)(c.Z,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"}));var N=o.forwardRef(function(e,t){let n=(0,l.Z)({props:e,name:"MuiCard"}),{className:o,raised:s=!1}=n,u=(0,i.Z)(n,y),c=(0,r.Z)({},n,{raised:s}),p=_(c);return(0,h.jsx)(I,(0,r.Z)({className:(0,a.Z)(p.root,o),elevation:s?8:void 0,ref:t,ownerState:c},u))})},70020:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/partner/[slug]/opportunities/[opportunityId]/redirect",function(){return n(51121)}])},11460:function(e,t,n){"use strict";var r=n(52322),i=n(2784),o=n(47746),a=n(67550),s=n(92096),u=n(33927),l=n(62197),c=n(83249),p=n(7586),d=n(38471),T=n(96577),h=n.n(T),y=n(5632),_=n(33787),I=n(90736),N=n(42285),m=n(38804),f=n(87705),E=n(94955);t.Z=e=>{let{type:t="event"}=e,n=(0,y.useRouter)(),T=(0,o.Z)(),{authenticated:g}=(0,N.Eu)(),{slug:P,eventId:R,openingId:w,projectId:x,applicationId:O,opportunityId:S}=n.query,L="string"==typeof P?P:void 0,{data:v,isLoading:A}=(0,E.e9)(L),{data:C}=(0,f.ZB)("opportunity"===t?S:""),j=(0,i.useCallback)(()=>{let e="".concat(I.$w.PARTNER_EVENTS.replace("[slug]",P)).concat(window.location.search);if("event"===t)g?n.push({pathname:I.$w.EVENT_REGISTER,query:{eventId:R,partnerSlug:P,returnUrl:e}}):n.push({pathname:I.$w.EVENT_PUBLIC_REGISTER,query:{eventId:R,partnerSlug:P,returnUrl:e}});else if("opening"===t)g?n.push({pathname:I.$w.JOB_APPLICATION_FORM_PERSONAL,query:{openingId:w,applicationId:"fromPartner"}}):n.push({pathname:I.$w.LOGIN,query:{returnUrlKey:"JOB_OPENING_DETAILS",...n.query,redirected:!0}});else if("programme"===t){let e=n.query.programmeType;g?n.push({pathname:I.$w.PROJECT_APPLICATION_FORM_PERSONAL,query:{projectId:x,programmeType:e,applicationId:O||"new"}}):n.push({pathname:I.$w.LOGIN,query:{returnUrlKey:"PROJECT_DETAILS",programmeType:e,projectId:x,redirected:!0}})}else if("opportunity"===t){let e=n.query.opportunityId;if(g){if((null==C?void 0:C.submissionType)==="EXTERNAL_LINK"){(0,m.hd)({actionType:"OPPORTUNITY_APPLY_BUTTON_CLICK",eventId:e}).catch(()=>{});return}(null==C?void 0:C.submissionType)==="SG_INNOVATE"&&((0,m.hd)({actionType:"OPPORTUNITY_APPLY_BUTTON_CLICK",eventId:e}).catch(()=>{}),n.push({pathname:I.$w.OPPORTUNITY_APPLICATIONS_FORM,query:{opportunityId:e,applicationId:"new"}}))}else if((null==C?void 0:C.submissionType)==="EXTERNAL_LINK"){let t=I.$w.PARTNER_OPPORTUNITY_DETAILS.replace("[slug]",P).replace("[opportunityId]",e);n.push({pathname:I.$w.LOGIN,query:{returnUrl:t,redirected:!0,opportunityId:e}})}else(null==C?void 0:C.submissionType)==="SG_INNOVATE"&&n.push({pathname:I.$w.LOGIN,query:{returnUrlKey:"OPPORTUNITY_APPLICATIONS_FORM",opportunityId:e,applicationId:"new"}})}},[g,R,w,x,O,C,n,P,t]);if((0,i.useEffect)(()=>{if("event"===t&&(!R||!P)||"opening"===t&&(!w||!P)||"programme"===t&&(!x||!P)||"opportunity"===t&&(!S||!P))return;let e=setTimeout(()=>{"opportunity"===t&&g&&(null==C?void 0:C.submissionType)==="EXTERNAL_LINK"&&(null==C?void 0:C.submissionLink)?window.location.href=C.submissionLink:j()},5e3);return()=>clearTimeout(e)},[R,w,x,S,P,t,g,C,j]),A||!v)return(0,r.jsx)(_.GC,{open:!0});let b=p.VF.getPath("/images/logo.png"),Z=v.logo;return(0,r.jsx)(a.Z,{sx:{minHeight:"100vh",backgroundColor:"#f5f5f5",display:"flex",alignItems:"center",justifyContent:"center",p:2},children:(0,r.jsx)(s.Z,{sx:{width:406,height:298,textAlign:"center",borderRadius:"12px",boxShadow:T.shadows[8],opacity:1},children:(0,r.jsxs)(u.Z,{spacing:"10px",alignItems:"center",sx:{py:12,px:10},children:[(0,r.jsxs)(u.Z,{direction:"row",alignItems:"center",justifyContent:"center",spacing:6,sx:{mb:3.5,width:"358px",height:"56px"},children:[(0,r.jsx)(h(),{src:b,alt:"SGInnovate Logo",width:50,height:35,style:{objectFit:"contain"}}),(0,r.jsx)(l.Z,{sx:{color:"#333F48",fontSize:"24px",fontWeight:300},children:"\xd7"}),Z&&(0,r.jsx)(h(),{src:(0,d.Jn)(Z),alt:"".concat(v.name," Logo"),width:50,height:80,style:{objectFit:"contain"}})]}),(0,r.jsxs)(u.Z,{spacing:2,sx:{mt:4},children:[(0,r.jsx)(l.Z,{sx:{color:T.palette.text.primary,fontWeight:700,fontSize:"16px"},children:"Hang tight..."}),(0,r.jsx)(l.Z,{variant:"body1",sx:{color:T.palette.text.secondary,lineHeight:1.6,maxWidth:400},children:"We are redirecting you to Deep Tech Central to complete your registration."}),(0,r.jsx)(c.Z,{variant:"text",onClick:()=>{"opportunity"===t&&g&&(null==C?void 0:C.submissionType)==="EXTERNAL_LINK"&&(null==C?void 0:C.submissionLink)?window.location.href=C.submissionLink:j()},sx:{mt:1},children:"Take me there now"})]})]})})})}},51121:function(e,t,n){"use strict";n.r(t);var r=n(52322);n(2784);var i=n(97729),o=n.n(i),a=n(11460);t.default=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o(),{children:[(0,r.jsx)("title",{children:"Redirecting to Registration - PersonaHub"}),(0,r.jsx)("meta",{name:"description",content:"Redirecting you to complete your opportunity application"})]}),(0,r.jsx)(a.Z,{type:"opportunity"})]})},38804:function(e,t,n){"use strict";n.d(t,{DO:function(){return u},hd:function(){return a}});var r=n(58943),i=n(7586),o=n(2282);let a=async e=>(await i.Sl.post(o.Sj.USER_ACTION_TRACKING,e),null);async function s(e,t){let{data:n}=await i.Sl.get("".concat(o.Sj.GET_CLICK_ACTIVITY.replace(":eventId",e).replace(":eventType",t)));return n}let u=(e,t)=>
1(0,r.a)({queryKey:[o.Sj.GET_CLICK_ACTIVITY,e,t],queryFn:()=>t?s(e,t):Promise.reject(Error("eventType is required")),enabled:!!e&&!!t})},94955:function(e,t,n){"use strict";n.d(t,{HU:function(){return l},e9:function(){return s}});var r=n(58943),i=n(7586),o=n(2282);let a=async e=>{let t=o.Sj.GET_PARTNER.replace(":urlSlug",e),{data:n}=await i.Sl.get(t);return n},s=e=>(0,r.a)({queryKey:[o.Sj.GET_PARTNER,e],queryFn:()=>a(e),enabled:!!e}),u=async e=>{let t=o.Sj.GET_PARTNER_SNAPSHOT.replace(":urlSlug",e),{data:n}=await i.Sl.get(t);return n},l=e=>(0,r.a)({queryKey:[o.Sj.GET_PARTNER_SNAPSHOT,e],queryFn:()=>u(e),enabled:!!e})}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=70020)}),_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.