1"use strict";(self.webpackChunk_griddo_cx=self.webpackChunk_griddo_cx||[]).push([[3811],{93062:function(e,l,t){t.r(l);var o=t(61466),n=t(30207),a=t(86246),u=t(50432),s=t(50669),d=t(26322),i=t(26322);l.default=({heroSection:e,mainSection:l,formType:t})=>{var r,c,m,v;const[{query:p},S]=(0,a.UH)(),g=(0,d.useRef)([]),{0:f,1:h}=(0,d.useState)(!1),{0:b,1:y}=(0,d.useState)("close"),{0:C,1:E}=(0,d.useState)(!1),{0:k,1:T}=(0,d.useState)(null),{0:O,1:P}=(0,d.useState)(null),{0:B,1:I}=(0,d.useState)(""),{0:_,1:w}=(0,d.useState)("");(0,d.useEffect)(()=>{var e;S({data:null==t||null===(e=t.modules[0])||void 0===e?void 0:e.data})},[t]);const D=()=>{E(!0),setTimeout(()=>{E(!1)},1e3);const e=document.getElementById("scrollTarget");e&&e.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})},F=e=>{w(e.target.value)},j=(e,l,t,o)=>{var n,a,u;(T(e),"programType"===B)&&F({target:{value:null==o||null===(a=o[0])||void 0===a?void 0:a.label}});"location"===B&&F({target:{value:null==t||null===(u=t[0])||void 0===u?void 0:u.label}});"courseMode"===B&&F({target:{value:null==l?void 0:l.label}}),P((null===(n=o[0])||void 0===n?void 0:n.label)||"")};(0,d.useEffect)(()=>{h("close"!==b)},[b]);const x=(0,d.useCallback)(()=>{h(!1),y("close")}),A=null==e||null===(r=e.modules[0])||void 0===r||null===(c=r.formOptions)||void 0===c?void 0:c.includes("hideStudyTypeField");return i.createElement(u.A,null,i.createElement(n.BasicLdJson,null),null==e||null===(m=e.modules)||void 0===m?void 0:m.map(e=>i.createElement(s.BW,Object.assign({},e,{key:e.editorID}))),null==l||null===(v=l.modules)||void 0===v?void 0:v.map((e,l)=>i.createElement(s.BW,Object.assign({},e,{key:e.editorID,itemEls:g,position:l,animateOnSelect:D,handleCardSelect:j,setFormOpen:y}))),i.createElement(o.default,{open:f,onClose:x,title:"Solicita información",selectedProgram:k,selectedTypeProgram:O,handleSelectChange:e=>{e(e)},selectAnimation:C,selectedCourseProp:_,handleDependentSelectChange:F,setSelectedCourseProp:w,setCourseProp:I,hideStudyTypeField:A,dataLanding:null==p?void 0:p.items}))}}}]);
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.