1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1898],{17731:function(n,e,t){t.d(e,{i:function(){return Z}});var o=t(26042),r=t(69396),u=t(99534),i=t(828),a=t(35944),c=t(5616),l=t(50135),d=t(26905),s=t.n(d),f=t(96486),p=t(67294),h=t(48366),v=t(7297),m=t(16829),b=t(417);function g(){var n=(0,v.Z)(["\n &input {\n font-family: ",";\n font-size: 1rem;\n font-style: normal;\n font-weight: 500;\n line-height: 18.72px;\n letter-spacing: 0em;\n text-align: left;\n }\n\n /* Garante alinhamento consistente do endAdornment */\n .MuiAutocomplete-endAdornment {\n position: absolute;\n right: 9px;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n }\n\n label {\n &.Mui-focused {\n color: ",";\n }\n }\n\n &label,\n &.MuiInputLabel-outlined {\n color: ",";\n font-weight: 400;\n }\n\n &.MuiInputLabel-shrink {\n color: ",";\n }\n\n &label:focus {\n color: ",";\n font-weight: 400;\n }\n\n &input:focus {\n font-weight: 500;\n }\n\n .MuiSvgIcon-root {\n z-index: 110;\n color: ",";\n }\n\n &:hover .MuiOutlinedInput-notchedOutline {\n border: 1px solid;\n border-color: ",";\n }\n\n &.MuiOutlinedInput-notchedOutline {\n border: 1px solid ",";\n z-index: -100;\n background-color: ",";\n color: ",";\n }\n\n legend {\n span {\n font-size: 0.71rem;\n }\n }\n\n .Mui-disabled .MuiOutlinedInput-notchedOutline {\n border: 1px solid ",";\n }\n\n &&.Mui-focused .MuiOutlinedInput-notchedOutline {\n border: 2px solid ",";\n\n &&input::placeholder {\n color: ",";\n opacity: 2;\n }\n }\n"]);return g=function(){return n},n}var C=(0,m.default)(b.Z)(g(),function(n){return n.theme.fontFamilyBase},function(n){return n.theme.neutralColorDarkLow},function(n){return n.theme.mainOpacity},function(n){return n.theme.neutralColorDarkPure},function(n){return n.theme.neutralColorDarkPure},function(n){return n.disabled?n.theme.neutralColorLightLow:n.theme.neutralColorDarkPure},function(n){return n.disabled?n.theme.neutralColorLightLow:n.theme.neutralColorDarkPure},function(n){return n.theme.mainOpacity},function(n){return n.value?n.theme.backgroundColorPublic01Pure:n.theme.neutralColorLightPure},function(n){return n.theme.backgroundColorPublic01Pure},function(n){return n.theme.neutralColorLightLow},function(n){return n.theme.neutralColorDarkPure},function(n){return n.theme.backgroundColorPublic01Pure}),Z=function(n){var e=n.field,t=void 0===e?"label":e,d=n.label,v=void 0===d?void 0:d,m=n.search,b=void 0===m?function(){}:m,g=n.value,Z=n.disabled,x=n.placeholder,y=void 0===x?void 0:x,w=(n.tag,n.onClear),I=void 0===w?function(){}:w,P=n.controlled,k=void 0!==P&&P,O=n["data-testid"],L=n.actionLoading,M=void 0!==L&&L,E=n.inputPropsStyle,_=void 0===E?{fontSize:"1rem",fontWeight:"500",lineHeight:"18.72px"}:E,D=n.dataElement,T=n.iconInputDefault,S=void 0===T?null:T,A=n.iconInputActive,F=void 0===A?null:A,G=n.inputLabelProps,N=void 0===G?{}:G,z=n.dataElementSelectedOption,H=void 0===z?null:z,U=n.class,B=(0,u.Z)(n,["field","label","search","value","disabled","placeholder","tag","onClear","controlled","data-testid","actionLoading","inputPropsStyle","dataElement","iconInputDefault","iconInputActive","inputLabelProps","dataElementSelectedOption","class"]),R=(0,i.Z)((0,p.useState)(null),2),Y=R[0],j=R[1],W=p.useRef(null),K=function(n,e){if(!n)return null;var t="string"==typeof n?n:n[e];return"".concat(null!=H?H:"option_").concat((0,f.kebabCase)(t))},X=function(n){if(n.preventDefault(),n.stopPropagation(),W.current){W.current.focus();var e=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});W.current.dispatchEvent(e)}};return(0,a.tZ)("form",{action:"#",autoComplete:"off",children:(0,a.tZ)(C,{disabled:void 0!==Z&&Z,"data-testid":void 0===O?"select-autocomplete":O,disablePortal:!0,noOptionsText:"",className:void 0===U?"":U,onChange:function(n,e,t){"clear"===t&&I(),k||j(e),b(e)},value:k?void 0===g?null:g:Y,options:B.data,getOptionLabel:function(n){return s()(n,"".concat(t))||n},renderOption:function(n,e){var u=s()(e,"".concat(t)),i=H?K(null!=e?e:Y,t):null;return(0,a.tZ)(c.Z,(0,r.Z)((0,o.Z)({}
1,n),{component:"li","data-element":i,children:u||e}))},"data-element":void 0===D?null:D,renderInput:function(n){var e,u,i;return(0,a.tZ)(l.Z,(0,r.Z)((0,o.Z)({},n),{label:v,InputLabelProps:N,placeholder:y,inputRef:W,"data-element":K(Y,t),InputProps:(0,r.Z)((0,o.Z)({},n.InputProps),{endAdornment:(0,a.tZ)(a.HY,{children:(u=(null===(e=n.inputProps)||void 0===e?void 0:e["aria-expanded"])===!0,i=n.InputProps.endAdornment,M?(0,a.tZ)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px"},children:(0,a.tZ)(h.T,{size:24,withContainer:!1})}):S||M?(0,a.BX)(a.HY,{children:[i,(0,a.tZ)("button",{type:"button",onClick:X,onMouseDown:function(n){return n.preventDefault()},style:{cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",minWidth:"24px",height:"24px",border:"none",background:"transparent"},children:u?F:S})]}):i)}),style:_})}))}})})}},56171:function(n,e,t){t.d(e,{K:function(){return a}});var o=t(828),r=t(67294),u=t(76154),i=t(31841),a=function(n,e){var t=(0,i.s)(),a=t.dataCity,c=t.setDataCity,l=(0,o.Z)((0,r.useState)(!1),2),d=l[0],s=l[1],f=(0,o.Z)((0,r.useState)(null),2),p=f[0],h=f[1];return(0,r.useEffect)(function(){c(null),h(null)},[e.courseCode,e.federativeUnit]),(0,r.useEffect)(function(){n&&e.federativeUnit&&(h(null),s(!0),c(null),u.Z.execute({uf:e.federativeUnit,brandContext:e.brandContext,courseType:e.courseType,courseCode:e.courseCode}).then(function(n){return c(n)}).catch(function(){return h(!0)}).finally(function(){return s(!1)})),e.federativeUnit||(c(null),s(!0),setTimeout(function(){return s(!1)},200))},[n,e.courseCode,e.federativeUnit]),[a,d,p]}},29612:function(n,e,t){t.d(e,{k:function(){return r}});var o=t(61575),r=function(n,e,t){var r,u=n!==o.c.TECNICO&&(null==e?void 0:e.activeMissingOffer);return t?u&&(null==e?void 0:null===(r=e.modalities)||void 0===r?void 0:r.includes(t)):u}},76154:function(n,e,t){t.d(e,{Z:function(){return m}});var o=t(47568),r=t(51438),u=t(97582),i=t(29612),a=t(74217),c=t(83319),l=t(51643),d=t(12047),s=t(129),f=t(26905),p=t.n(f),h=function(){function n(){(0,r.Z)(this,n)}return n.execute=function(n){return p()(n,[],null).map(function(n){return{code:p()(n,"codigo",null),name:p()(n,"nome",null)}})},n}(),v=function(){function n(){(0,r.Z)(this,n)}return n.execute=function(n){var e=n.uf,t=n.brandContext,r=n.courseType,f=n.courseCode,p=n.courseEnableCode,v=n.modality,m=n.missingOffer;return(0,o.Z)(function(){var n,o,b,g,C,Z,x,y,w,I,P,k;return(0,u.__generator)(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),n="/ofertas/api/v1/ofertas",o="uf=".concat(e),b="&codigoTipoCurso=".concat(r),g="&idsMarca=".concat(t.brandsIds),C=f?"&codigoCurso=".concat(f):"",(0,i.k)(r,m,v)?n=n.concat("/municipios-by-estado-ofertas?".concat(o).concat(b).concat(g).concat(C)):(Z=p||0===p?"&codigoHabilitacao=".concat(p):"",x=v?"&modalidade=".concat(v):"",n=n.concat("/cidades?".concat(o).concat(b).concat(g).concat(C).concat(Z).concat(x))),[4,(0,s.Z)((0,l.G)(t,d.I.BFF_OFFER),t.brandName,!0).get(n)];case 1:return y=u.sent(),[2,(0,c.G5)(y.data)?y.data:h.execute(y.data)];case 2:throw w=u.sent(),a.Z.error("City API error: ".concat(w.message),{method:"CityGateway.execute",parameters:"courseCode=".concat(f,",modality=").concat(v,",uf=").concat(e,"&codigoTipoCurso=").concat(r),error:w,response:{data:null==w?void 0:null===(I=w.response)||void 0===I?void 0:I.data,headers:null==w?void 0:null===(P=w.response)||void 0===P?void 0:P.headers,status:null==w?void 0:null===(k=w.response)||void 0===k?void 0:k.status}}),w;case 3:return[2]}})})()},n}(),m=function(){function n(){(0,r.Z)(this,n)}return n.execute=function(n){return(0,o.Z)(function(){return(0,u.__generator)(this,function(e){return[2,v.execute(n)]})})()},n}()},29122:function(n,e,t){t.d(e,{b:function(){return v}});var o=t(47568),r=t(51438),u=t(97582),i=t(74217),a=t(83319),c=t(51643),l=t(12047),d=t(129),s=t(26905),f=t.n(s),p=function(){function n(){(0,r.Z)(this,n)}return n.execute=function(n){return f()(n,[],null).map(function(n){return{shortName:f()(n,"sigla",null),name:f()(n,"nome",null)}})},n}(),h=function(){function n(){(0,r.Z)(this,n)}return n.execute=function(n){var e=n.brandContext,t=n.courseType,r=n.courseCode,s=n.courseEnableCode,f=n.modality;return(0,o.Z)(function(){var n,o,h,v,m,b,g;return(0,u.__generator)(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),o="/ofertas/api/v1/ofertas/estados?idsMarca=".concat(e.brandsIds,"&codigoTipoCurso=").concat(t),r&&(o=o.concat("&codigoCurso=".concat(r))),(s||0===s)&&(o=o.c
1oncat("&codigoHabilitacao=".concat(s))),f&&(o=o.concat("&modalidade=".concat(f))),[4,(0,d.Z)((0,c.G)(e,l.I.BFF_OFFER),null===(n=e.brandName)||void 0===n?void 0:n.toLowerCase(),!0).get(o)];case 1:return h=u.sent(),[2,(0,a.G5)(h.data)?h.data:p.execute(h.data)];case 2:throw v=u.sent(),i.Z.error("State API error: ".concat(v.message),{method:"StateGateway.execute",parameters:"courseCode: ".concat(r,", modality: ").concat(f,", codigoTipoCurso: ").concat(t),error:v,response:{data:null==v?void 0:null===(m=v.response)||void 0===m?void 0:m.data,headers:null==v?void 0:null===(b=v.response)||void 0===b?void 0:b.headers,status:null==v?void 0:null===(g=v.response)||void 0===g?void 0:g.status}}),v;case 3:return[2]}})})()},n}(),v=function(){function n(){(0,r.Z)(this,n)}return n.execute=function(n){return(0,o.Z)(function(){return(0,u.__generator)(this,function(e){return[2,h.execute(n)]})})()},n}()}}]);
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.