1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9267],{99267:function(e,n,t){t.r(n),t.d(n,{EnrollFormSection:function(){return y}});var o=t(40872),l=t(828),i=t(36305),r=t(35944),a=t(61730),d=t(65582),s=t(86886),c=t(31955),m=t(67294),u=t(81913),f=t(23418),v=t(34039),g=t(38749),h=t(82412),p=t(99126),Z=t(16023),E=t(11441),b=t(91864),w=t(29611),x=t(1158),C=t(79954),S=function(e){var n,t=e.modalFormOfEntry,o=(0,l.Z)((0,m.useState)(!1),2),i=o[0],a=o[1];return(null==t?void 0:null===(n=t.topic)||void 0===n?void 0:n.length)>0?(0,r.tZ)(C.J,{handleOpen:i,setHandleOpen:a,modalData:t,textElementName:"sobre-as-formas-de-ingresso",modalName:"form-of-entry",linkText:(0,x.t)("offerSelection.modalFormOfEntryTitle")}):null},y=function(e){var n,t,x=(0,o.Z)({},e),C=(0,b.Fb)(),y=C.brandContext,F=C.selectedCourse,O=C.selectedDegree,L=C.selection,I=C.selectedModality,N=C.selectedNeighborhood,k=C.selectedEnroll,D=C.setSelectedEnroll,_=C.setSelectedInterestModality,M=C.sectionCrossUpSellIsVisible,P=C.setDisplayMissingOffer,R=C.featureFlagsSelecao,T=(0,a.Z)("(min-width: ".concat(E.eq.tablet,") and (max-width: ").concat(E.eq.tabletLarge,")")),q=(0,a.Z)("(min-width: ".concat(E.eq.tablet,") and (max-width: 1117px)")),A=new h.f(y.brandName).getConfig(),B=(0,m.useRef)(),H=(0,l.Z)((0,m.useState)(null),2),U=H[0],J=H[1],V=function(e){c.Z.set("formaIngresso",e,{secure:!0})},W=function(e,n){var t,o=null===(t=A.getEnrollRedirectUrl)||void 0===t?void 0:t.call(A,n);if(o||e.isRedirect&&!e.isMissingOffer){window.open(o||e.isRedirect,"_self");return}D(n),J(e.name),V(e.name),_(null),e.isMissingOffer&&P(!0)},X=function(e){var n;return T&&e.name===p.L.INTERNATIONAL?"Internacional":(null==R?void 0:R.featureFlagEnableSimplificadoIbmec)&&e.name===p.L.SIMPLIFIED&&(null==y?void 0:null===(n=y.brandName)||void 0===n?void 0:n.toLowerCase())==="ibmec"?"Olimp\xedadas de Conhecimento":e.name};return(0,v.m)({elementRef:B,trigger:k,name:"EnrollFormSection"}),(0,m.useEffect)(function(){if(U){var e,n,t,o,l,i={event:"selecao_curso",brand:null===(e=y.brandName)||void 0===e?void 0:e.toLowerCase(),name:null==F?void 0:null===(n=F.name)||void 0===n?void 0:n.toLowerCase(),category2:null==O?void 0:null===(t=O.name)||void 0===t?void 0:t.toLowerCase(),category3:null==I?void 0:I.toLowerCase(),state:null===(o=x.selectedState)||void 0===o?void 0:o.toLowerCase(),city:null===(l=x.selectedCity)||void 0===l?void 0:l.toLowerCase(),neighborhood:void 0,variant:null==U?void 0:U.toLowerCase(),turn:void 0,itemId:null==F?void 0:F.code};Z.I.subscriptionFunnelEvent(i)}},[U]),(0,m.useEffect)(function(){N&&J(null);var e=(0,i.Z)(x.enrolls.keys());x.handleSelectedFirstComponentDefault(e,function(){return W(x.enrolls.get(e[0]),e[0])})},[N]),(0,m.useEffect)(function(){if(k){var e=x.enrolls.get(k);if(e){if(J(e.name),V(e.name),D(k),M()&&"true"===(0,w.gO)("freemium")){_([g.q.EAD]);return}_(null)}}},[k]),(0,r.tZ)(d.Z,{ref:B,maxWidth:"xl","data-section":"section_selecao-forma-de-ingresso","data-testid":"enroll-form-section",sx:{px:{xs:"1.5rem",md:"2rem",lg:"5.5rem"},paddingBottom:{xs:"2.5rem",md:"3rem"},paddingTop:"0"},children:(0,r.BX)(s.ZP,{container:!0,children:[(0,r.tZ)(s.ZP,{item:!0,sx:{paddingBottom:{xs:"1rem"}},"data-testid":"title-enroll-form",children:(0,r.tZ)(u.D,{variant:"h3",children:(0,r.tZ)(r.HY,{children:L.enrollSelectionFlow.title})})}),(null==L?void 0:null===(n=L.modalFormOfEntry)||void 0===n?void 0:null===(t=n.topic)||void 0===t?void 0:t.length)>0&&(0,r.tZ)(s.ZP,{container:!0,sx:{paddingBottom:{xs:"1rem"}},children:(0,r.tZ)(S,{modalFormOfEntry:null==L?void 0:L.modalFormOfEntry})}),(0,r.tZ)(s.ZP,{container:!0,rowSpacing:{xs:"0.5rem",md:"1rem"},columnSpacing:{md:2,lg:3},"data-testid":"enroll-button-group",children:(0,i.Z)(x.enrolls.keys()).map(function(e){var n=x.enrolls.get(e);return n.isActiveEnroll?(0,r.tZ)(s.ZP,{item:!0,xs:12,sm:12,md:3,lg:3,"data-testid":n.tag,children:(0,r.tZ)(f.O,{"data-element":n.tag,wrap:q,active:!!(U&&n.name&&U===n.name),onClick:function(){W(n,e)},children:X(n)})},n.id):null})})]})})}}}]);
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.