"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9535],{26615:function(e,t,r){r.d(t,{t:function(){return a}});var n=r(41256);function a(e,t){return(0,n.r)(e,t,!0)}},11250:function(e,t,r){var n=r(11527);t.Z=function(e){var t=e.className,r=e.color,a=e.size,s=void 0===a?32:a,o=e.ignoreColor;return(0,n.jsx)("svg",{className:t,width:s,height:s,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M20.7074 19.2944L17.3197 15.9092C18.5684 14.3017 19.1575 12.2787 18.9669 10.2522C18.7764 8.22558 17.8207 6.34781 16.2943 5.00118C14.7679 3.65455 12.7856 2.94032 10.7511 3.00391C8.71657 3.0675 6.78277 3.90413 5.34345 5.34345C3.90413 6.78277 3.0675 8.71657 3.00391 10.7511C2.94032 12.7856 3.65455 14.7679 5.00118 16.2943C6.34781 17.8207 8.22558 18.7764 10.2522 18.9669C12.2787 19.1575 14.3017 18.5684 15.9092 17.3197L19.2944 20.7074C19.3872 20.8001 19.4973 20.8737 19.6185 20.9239C19.7397 20.9742 19.8697 21 20.0009 21C20.1321 21 20.262 20.9742 20.3832 20.9239C20.5044 20.8737 20.6146 20.8001 20.7074 20.7074C20.8001 20.6146 20.8737 20.5044 20.9239 20.3832C20.9742 20.262 21 20.1321 21 20.0009C21 19.8697 20.9742 19.7397 20.9239 19.6185C20.8737 19.4973 20.8001 19.3872 20.7074 19.2944ZM11.0138 17.0052C9.82878 17.0052 8.6704 16.6538 7.68512 15.9954C6.69983 15.3371 5.9319 14.4014 5.47842 13.3066C5.02495 12.2118 4.9063 11.0071 5.13748 9.8449C5.36866 8.68268 5.93929 7.61511 6.7772 6.7772C7.61511 5.93929 8.68268 5.36866 9.8449 5.13748C11.0071 4.9063 12.2118 5.02495 13.3066 5.47842C14.4014 5.9319 15.3371 6.69983 15.9954 7.68512C16.6538 8.6704 17.0052 9.82878 17.0052 11.0138C17.0052 12.6028 16.3739 14.1267 15.2503 15.2503C14.1267 16.3739 12.6028 17.0052 11.0138 17.0052Z",fill:o?void 0:void 0===r?"#181B32":r})})}},17190:function(e,t,r){var n=r(11527);t.Z=function(e){var t=e.className,r=e.color,a=e.size,s=void 0===a?32:a,o=e.ignoreColor;return(0,n.jsx)("svg",{className:t,width:s,height:s,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",children:(0,n.jsx)("path",{d:"M14.707 13.293a.999.999 0 1 1-1.414 1.414L12 13.414l-1.293 1.293a.997.997 0 0 1-1.414 0 .999.999 0 0 1 0-1.414L10.586 12l-1.293-1.293a.999.999 0 1 1 1.414-1.414L12 10.586l1.293-1.293a.999.999 0 1 1 1.414 1.414L13.414 12l1.293 1.293ZM12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2Z",fill:o?void 0:void 0===r?"#181B32":r})})}},78809:function(e,t,r){var n=r(11527);t.Z=function(e){var t=e.className,r=e.color,a=e.size,s=void 0===a?32:a,o=e.ignoreColor;return(0,n.jsx)("svg",{className:t,width:s,height:s,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M9.863 18a1 1 0 0 1-.729-.315l-4.863-5.179a1 1 0 1 1 1.457-1.369l4.125 4.391 8.408-9.202a1 1 0 0 1 1.477 1.348l-9.137 10a.998.998 0 0 1-.73.326h-.008Z",fill:o?void 0:void 0===r?"#181B32":r})})}},93558:function(e,t,r){t.ZP=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"sm",t="md"===e;return{"main-title":t?"font-main-title-md":"font-main-title","main-title-reg":t?"font-main-title-reg-md":"font-main-title-reg",h1:t?"font-h1-md":"font-h1","h1-reg":t?"font-h1-reg-md":"font-h1-reg",h2:t?"font-h2-md":"font-h2","h2-reg":t?"font-h2-reg-md":"font-h2-reg",h3:t?"font-h3-md":"font-h3","h3-reg":t?"font-h3-reg-md":"font-h3-reg",h4:t?"font-h4-md":"font-h4","h4-reg":t?"font-h4-reg-md":"font-h4-reg",subtitle1:t?"font-subtitle1-md":"font-subtitle1",subtitle2:t?"font-subtitle2-md":"font-subtitle2",subtitle3:"font-subtitle3",subtitle4:"font-subtitle4",body1:t?"font-body1-md":"font-body1",body2:t?"font-body2-md":"font-body2",body3:"font-body3",body4:"font-body4",legals:"font-legals",label:"font-label",caption:"font-caption",button:t?"font-button-md":"font-button",link:"font-link","link-2":"font-link-2",currency:t?"font-currency-md":"font-currency",price:t?"font-price-md":"font-price",discount:"font-discount","currency-s":t?"font-currency-s-md":"font-currency-s","price-s":t?"font-price-s-md":"font-price-s","discount-s":t?"font-discount-s-md":"font-discount-s","currency-xs":"font-currency-xs","price-xs":"font-price-xs","discount-xs":"font-discount-xs"}}},87208:function(e,t,r){r.d(t,{Z:function(){return y}});var n,a=r(22405),s=r(76414),o=r(54737),i=r(68673),l=r(50959),c=r(97754),d=r.n(c),u=r(77592),m=r(93234),h=r(1814),f=r(93558),p=r(78809),x=r(90889),E=r(11527),g=function(e){var t=e.type,r=e.startAdornment,a=e.endAdornment,s=e.adornmentClassNames,o=e.chat,i=e.multirow,l=r;return"end"===t?l=a:"check"===t&&(l=n||(n=(0,E.jsx)(p.Z,{className:"fill-current text-green-main",size:24,ignoreColor:!0}))),(0,E.jsx)("div",{className:(0,x.Z)(s&&s[t]||"",d()("flex items-center","start"===t?"pl-16":"pr-16",o||i?"h-40":"h-56",{"pb-16":i})),style:{transition:(0,h.Z)(["padding","height"])},children:l})},b=r(48469),N=["className","wrapperClassName","innerClassName","chat","disabled","error","errorText","full","hint","noBorders","check","darkMode","inputClassName","autoComplete","autoFocus","defaultValue","endAdornment","adornmentClassNames","id","inputProps","label","description","maxLength","name","onChange","onChangeValidation","onFocus","onBlur","onKeyDown","startAdornment","type","value","data-testid","data-cy","textType","responsive","wrapperStyles","transparencyMode","htmlProps","newSidebarEnabled"],C=u.ZP.input.withConfig({componentId:"sc-7y9917-0"})(["\n ","\n"],function(e){var t=e.hintColor,r=e.darkMode;return"\n &::-webkit-input-placeholder {\n color: ".concat(t,";\n }\n &:-moz-placeholder { /* Firefox 18- */\n color: ").concat(t,";\n }\n &::-moz-placeholder { /* Firefox 19+ */\n color: ").concat(t,";\n }\n &:-ms-input-placeholder {\n color: ").concat(t,";\n }\n &::placeholder {\n color: ").concat(t,";\n }\n &:-webkit-autofill,\n &:-webkit-autofill:hover,\n &:-webkit-autofill:focus,\n &:-webkit-autofill:active {\n transition: background-color 5000s ease-in-out 0s;\n -webkit-text-fill-color: ").concat(r?m.white:m.baseMain," !important;\n }\n ")}),y=(0,l.forwardRef)(function(e,t){var r=e.className,n=void 0===r?"":r,c=e.wrapperClassName,u=void 0===c?"":c,m=e.innerClassName,p=void 0===m?"":m,x=e.chat,y=e.disabled,R=e.error,w=e.errorText,v=e.full,j=e.hint,L=e.noBorders,M=e.check,S=e.darkMode,Z=e.inputClassName,k=e.autoComplete,A=e.autoFocus,T=e.defaultValue,_=e.endAdornment,O=e.adornmentClassNames,P=e.id,B=e.inputProps,I=e.label,F=e.description,D=e.maxLength,z=e.name,H=e.onChange,U=e.onChangeValidation,V=e.onFocus,G=e.onBlur,K=e.onKeyDown,$=e.startAdornment,X=e.type,W=e.value,Y=e["data-testid"],q=e["data-cy"],J=e.textType,Q=e.responsive,ee=void 0===Q?"sm":Q,et=e.wrapperStyles,er=e.transparencyMode,en=e.htmlProps,ea=e.newSidebarEnabled,es=void 0!==ea&&ea,eo=(0,i.Z)(e,N),ei=(0,l.useRef)(null),el=(0,l.useState)(!1),ec=(0,o.Z)(el,2),ed=ec[0],eu=ec[1];(0,l.useEffect)(function(){A&&ei.current&&ei.current.focus()},[A]);var em=(0,f.ZP)(ee)[void 0===J?"body3":J],eh=S?"dark":"light",ef=S?"dark":"light",ep=S?"dark":"light";er?(eh="transparency",ef="transparency",ep="transparency",ed&&!x&&(eh="transparency-focused",ef="transparency-focused"),(R||w)&&(ep="transparency-error",ef="error"),y&&(eh="transparency-disabled",ep="transparency-disabled",ef="disabled")):(ed&&!x&&(ef=S?"dark-focused":"light-focused"),(R||w)&&(ep=S?"dark-error":"light-error",ef="error"),y&&(eh=S?"dark-disabled":"light-disabled",ep=S?"dark-disabled":"light-disabled",ef="disabled"));var ex="";L||(ex=x?"py-8":"py-16",ex=$||M||_?d()(ex,$?"pl-8":"pl-16",_||M?"pr-8":"pr-16"):d()(ex,"px-16"));var eE={startAdornment:$,endAdornment:_,adornmentClassNames:O,chat:x};return(0,E.jsxs)("label",(0,a.Z)((0,a.Z)((0,a.Z)({className:d()("inline-flex flex-col",{"w-full":v},n)},eo),en),{},{children:[I&&(0,E.jsx)("span",{className:d()("font-subtitle3 mb-8",S||er?"text-white":"text-base-main"),children:I}),F&&(0,E.jsx)("p",{className:d()("font-body4 mb-8",S||er?"text-base-lighter":"text-gray-dark"),children:F}),(0,E.jsx)("div",{className:d()("inline-flex",u,es?"tw-rounded-0.8":"rounded-5",(0,s.Z)({},"border border-solid ".concat(es?b.KG[ef]:b.d5[ef]," ").concat(b.EA[eh]),!L)),style:(0,a.Z)({transition:(0,h.Z)(["background-color","border"])},et),children:(0,E.jsxs)("div",{className:d()("flex w-full items-end",p),children:[$&&(0,E.jsx)(g,(0,a.Z)({type:"start"},eE)),(0,E.jsx)(C,(0,a.Z)({"data-testid":Y,"data-cy":q,className:d()("crehana-ui-input",b.Ij,b.Kg[ep],em,ex,Z),hintColor:b._L[eh],darkMode:S||er,placeholder:j,ref:function(e){"function"==typeof t?t(e):t&&(t.current=e),ei.current=e},autoComplete:k,defaultValue:T?T.toString():void 0,disabled:y,id:P,name:z,type:X,value:W,onKeyDown:K,maxLength:D||void 0,onChange:function(e){"function"==typeof H&&("function"!=typeof U||U(e.target.value))&&H(e)},onFocus:function(e){eu(!0),"function"==typeof V&&V(e)},onBlur:function(e){eu(!1),"function"==typeof G&&G(e)}},B)),M&&(0,E.jsx)(g,(0,a.Z)({type:"check"},eE)),_&&(0,E.jsx)(g,(0,a.Z)({type:"end"},eE))]})}),w&&(0,E.jsx)("span",{className:d()("font-caption mt-8",y?"text-gray-dark":"text-red-main"),role:"alert",children:w})]}))})},48469:function(e,t,r){r.d(t,{EA:function(){return s},Ij:function(){return a},KG:function(){return i},Kg:function(){return l},_L:function(){return c},d5:function(){return o}});var n=r(93234),a="w-full z-1 border-0 resize-none focus:outline-none min-h-40 bg-transparent",s={light:"bg-white","light-disabled":"bg-gray-main",dark:"bg-gray-main-dark-mode","dark-disabled":"bg-gray-dark-70",transparency:"bg-gray-dark-8","transparency-disabled":"bg-gray-dark-70","transparency-focused":"bg-gray-dark-8"},o={light:"border-gray-dark","light-focused":"border-primary-main",dark:"border-transparent","dark-focused":"border-primary-lighter",transparency:"border-base-lighter","transparency-focused":"border-white",error:"border-red-main",disabled:"border-transparent"},i={light:"border-gray-light","light-focused":"border-primary-main",dark:"border-transparent","dark-focused":"border-primary-lighter",transparency:"border-base-lighter","transparency-focused":"border-white",error:"border-red-main",disabled:"border-transparent"},l={light:"text-base-main caret-primary-main","light-error":"text-base-main caret-red-main","light-disabled":"text-gray-dark",dark:"text-white caret-primary-lighter","dark-error":"text-white caret-red-main","dark-disabled":"text-gray-dark",transparency:"text-white caret-primary-lighter","transparency-error":"text-white caret-red-main","transparency-disabled":"text-gray-dark"},c={light:n.hU,"light-disabled":n.hU,dark:n.zl,"dark-disabled":n.hU,transparency:n.zl,"transparency-focused":n.zl,"transparency-disabled":n.hU}},42858:function(e,t,r){var n,a,s,o,i,l,c,d,u,m,h,f,p,x,E,g;r.d(t,{c_:function(){return c},jS:function(){return n},lG:function(){return a}}),(u=n||(n={})).LIKES="LIKES",u.PUBLICATION_DATE="PUBLICATION_DATE",u.VIEWS="VIEWS",(m=a||(a={})).en="en",m.es="es",m.pt="pt",(h=s||(s={})).ALL="ALL",h.AR="AR",h.BO="BO",h.BR="BR",h.CL="CL",h.CO="CO",h.CR="CR",h.EC="EC",h.ES="ES",h.MX="MX",h.PA="PA",h.PE="PE",(f=o||(o={})).AR="AR",f.BO="BO",f.BR="BR",f.CL="CL",f.CO="CO",f.CR="CR",f.EC="EC",f.ES="ES",f.MX="MX",f.PA="PA",f.PE="PE",(p=i||(i={})).B2B="B2B",p.B2B_CLASSROOMS="B2B_CLASSROOMS",p.DEGREE="DEGREE",p.FREE="FREE",p.FREEMIUM="FREEMIUM",p.MEMBERSHIP="MEMBERSHIP",p.PAID="PAID",p.PARTNER="PARTNER",p.ROCKSTAR="ROCKSTAR",p.TEMPORAL_ACCESS="TEMPORAL_ACCESS",(x=l||(l={})).ENROLLMENT_B2B="ENROLLMENT_B2B",x.ENROLLMENT_DEGREE="ENROLLMENT_DEGREE",x.ENROLLMENT_FREE="ENROLLMENT_FREE",x.ENROLLMENT_FREEMIUM="ENROLLMENT_FREEMIUM",x.ENROLLMENT_FREE_MEMBERSHIP="ENROLLMENT_FREE_MEMBERSHIP",x.ENROLLMENT_GITCARD="ENROLLMENT_GITCARD",x.ENROLLMENT_MEMBERSHIP="ENROLLMENT_MEMBERSHIP",x.ENROLLMENT_MENTOR="ENROLLMENT_MENTOR",x.ENROLLMENT_PAID="ENROLLMENT_PAID",x.ENROLLMENT_PROFESSOR="ENROLLMENT_PROFESSOR",x.ENROLLMENT_STAFF="ENROLLMENT_STAFF",x.ENROLLMENT_TEMPORAL_ACCESS="ENROLLMENT_TEMPORAL_ACCESS",(E=c||(c={})).ASC="ASC",E.DESC="DESC",(g=d||(d={})).EN="EN",g.ES="ES",g.PT="PT"},62548:function(e,t,r){r.d(t,{Z:function(){return N}});var n=r(11527),a=r(51626),s=r(25431),o=r.n(s),i=r(74782),l=r(66287),c=r(89261),d=r(2632),u=r(35435),m=r(82095),h=r(77592);function f(){let e=(0,m._)(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"]);return f=function(){return e},e}function p(){let e=(0,m._)(["\n animation: ",";\n animation-duration: 0.7s;\n animation-timing-function: ease-out;\n"]);return p=function(){return e},e}function x(){let e=(0,m._)(["\n width: 92px;\n min-height: 55px;\n height: auto;\n "," {\n width: 80px;\n }\n"]);return x=function(){return e},e}let E=(0,h.F4)(f()),g=h.ZP.article.withConfig({componentId:"sc-1d03f6b2-0"})(p(),E),b=h.ZP.div.withConfig({componentId:"sc-1d03f6b2-1"})(x(),e=>{let{theme:t}=e;return t.breakpoints.up("sm")});var N=e=>{let{article:t,className:r,source:s,onClick:m}=e,{t:h}=(0,l.$)();return(0,n.jsx)(g,{className:(0,a.Z)("tw-w-full tw-flex tw-flex-col sm:tw-py-2.4 lg:tw-py-2",r),children:(0,n.jsxs)(o(),{href:(0,i.jV)({url:t.url.relativeUrl,source:s,sourceDetail:"News Articles Card"}),className:"tw-text-neutral-light-800",onClick:()=>(m&&m(),!0),children:[(0,n.jsx)(u.Z,{cardType:h("CARD_TYPE_ARTICLE"),chipLabel:t.category.name,read:t.read}),(0,n.jsxs)("div",{className:"tw-flex tw-flex-row tw-items-center tw-justify-between",children:[(0,n.jsx)("h3",{className:"tw-font-body4 tw-my-1.2 tw-mr-1.2",children:t.title}),(0,n.jsx)(b,{className:"tw-flex-shrink-0 tw-relative tw-overflow-hidden tw-rounded-5",children:(0,n.jsx)(c.Z,{layout:"fill",alt:t.title,src:t.image.url,objectFit:"cover"})})]}),(0,n.jsx)(d.Z,{author:t.author,modifiedDate:t.modifiedDate})]})})}},62181:function(e,t,r){r.d(t,{Z:function(){return s}});var n=r(11527),a=r(51626),s=e=>{let{className:t}=e;return(0,n.jsx)("div",{className:(0,a.Z)("tw-h-[1px] tw-bg-neutral-light-400 tw-w-full",t)})}},55893:function(e,t,r){r.r(t),r.d(t,{default:function(){return P}});var n=r(11527),a=r(50959),s=r(26615),o=r(66292),i=r.n(o),l=r(82797),c=r(66287),d=r(17190),u=r(15017),m=r(11250),h=r(5945),f=r(36528),p=r(97198),x=r(58747),E=r(12331),g=r(87208),b=r(75796),N=r(36662),C=r(42858),y=r(42519),R=r.n(y),w=r(93234),v=e=>{let{searchString:t}=e,{t:r}=(0,c.$)();return(0,n.jsxs)("div",{className:"flex flex-col sm:flex-row items-center sm:items-start mt-40",children:[(0,n.jsx)("div",{className:"w-64 h-64 bg-gray-lighter rounded-full flex items-center justify-center",children:(0,n.jsx)(m.Z,{size:24,color:w.hU})}),(0,n.jsxs)("div",{className:"sm:ml-20 text-center sm:text-left",children:[(0,n.jsxs)("h4",{className:"font-subtitle2 mt-12 mb-4",children:[r("SEARCH_NO_RESULTS")," ",(0,n.jsxs)("span",{className:"text-primary-main",children:[" “",t,"” "]})]}),(0,n.jsx)("p",{className:"font-body4 text-gray-dark ",children:r("SEARCH_NO_RESULTS_DESCRIPTION")})]})]})},j=r(71498),L=r(62743),M=r(67748),S=r(62548),Z=r(62181),k=r(61055),A=r.n(k),T=e=>{let{handleClose:t,source:r}=e,{matches:a}=(0,L.Z)("md"),{t:s}=(0,c.$)(),{data:o}=(0,j.a)(A(),{context:{clientName:"v4"}}),i=(null==o?void 0:o.customHeroArticles)?(0,N.Z)(o.customHeroArticles).map(e=>({...e})):[];return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.Z,{children:(0,n.jsxs)(x.Z,{children:[(0,n.jsx)("h3",{className:"font-h4-reg mt-24 text-left sm:text-left",children:s("SEARCH_FEATURED")}),(0,n.jsx)(Z.Z,{className:"my-16 sm:hidden"})]})}),(0,n.jsx)(p.Z,{itemsPerRow:{xs:1,sm:2,md:3,lg:4},gutter:24,children:null==i?void 0:i.map(e=>(0,n.jsx)(x.Z,{children:a?(0,n.jsx)(M.Z,{article:e,source:r,onClick:t}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(S.Z,{article:e,source:r,onClick:t}),(0,n.jsx)(Z.Z,{className:"mt-24"})]})},"card-".concat(e.originalId)))})]})},_=r(82666),O=e=>{let{searchResult:t,source:r,totalResults:a,hasMoreResults:s,searchString:o,handleClose:i,fetchMore:l}=e,{t:d}=(0,c.$)(),{matches:u}=(0,L.Z)("md");return(0,n.jsxs)("div",{className:"mb-32",children:[(0,n.jsxs)("h3",{id:"search-result-total-count",className:"font-subtitle2 mt-24 text-center sm:text-left",children:[d("SEARCH_RESULTS",{interpolation:{totalResults:a}}),(0,n.jsxs)("span",{className:"text-primary-main",children:[" “",o,"”"]})]}),(0,n.jsx)(Z.Z,{className:"my-16"}),(0,n.jsx)(p.Z,{itemsPerRow:{xs:1,sm:2,md:3,lg:4},gutter:24,children:t.map(e=>(0,n.jsx)(x.Z,{htmlProps:{id:"search-result-".concat(e.originalId)},children:u?(0,n.jsx)(M.Z,{article:e,source:r,onClick:i}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(S.Z,{article:e,source:r,onClick:i}),(0,n.jsx)(Z.Z,{className:"mt-24"})]})},"card-".concat(e.originalId)))}),s&&l?(0,n.jsx)(p.Z,{children:(0,n.jsx)(x.Z,{className:"flex justify-center w-full relative",children:(0,n.jsx)(_.Z,{htmlProps:{id:"search-see-more"},as:"button",className:"text-center text-primary-main",label:d("ARTICLES_SEE_MORE"),onClick:l})})}):null]})},P=e=>{let{open:t,handleClose:r,source:o}=e,{t:y,languageCode:w}=(0,c.$)(),{query:j}=(0,l.useRouter)(),[L,M]=(0,a.useState)(""),[S,{data:Z,loading:k,error:A,fetchMore:_}]=(0,s.t)(R(),{context:{clientName:"v4"},variables:{first:20,languages:["es"===w?C.lG.es:C.lG.pt]},fetchPolicy:"network-only",notifyOnNetworkStatusChange:!0}),P=e=>{S({variables:{first:20,search:e}})},B=(0,a.useRef)(i()(e=>P(e),350));(0,a.useEffect)(()=>{B.current(L)},[L]),(0,a.useEffect)(()=>{(null==j?void 0:j.search)&&"string"==typeof(null==j?void 0:j.search)&&M(j.search)},[j.search,M]);let I=null==Z?void 0:Z.articlesV2.pageInfo.hasNextPage,F=(null==Z?void 0:Z.articlesV2)?(0,N.Z)(Z.articlesV2).map(e=>({...e})):[],D=(0,a.useMemo)(()=>!!L&&(k||!!(null==Z?void 0:Z.articlesV2.totalCount)),[null==Z?void 0:Z.articlesV2.totalCount,L,k]),z=null==Z?void 0:Z.articlesV2.totalCount;return(0,n.jsx)(h.Z,{size:"full",backdropWithBlur:!0,className:"pt-32",hideCloseBtn:!0,open:t,children:(0,n.jsxs)(f.Z,{children:[(0,n.jsx)(p.Z,{children:(0,n.jsxs)(x.Z,{children:[(0,n.jsxs)("div",{className:"flex flex-row items-center justify-between mb-24",children:[(0,n.jsx)("h4",{className:"font-body2 text-primary-main",children:y("SEARCH_TITLE")}),(0,n.jsx)(E.Z,{htmlProps:{id:"close-search-dialog"},withoutBorders:!0,icon:{component:u.Z,size:24},onClick:r})]}),(0,n.jsx)("div",{className:"flex flex-row items-center",children:(0,n.jsx)(g.Z,{startAdornment:(0,n.jsx)(m.Z,{className:"fill-current text-base-lighter",ignoreColor:!0,size:24}),endAdornment:(0,n.jsxs)(n.Fragment,{children:[k&&(0,n.jsx)(b.Z,{size:16,className:"ml-12"}),(0,n.jsx)(E.Z,{withoutBorders:!0,onClick:()=>M(""),customIcon:()=>(0,n.jsx)(d.Z,{className:"fill-current text-base-lighter",ignoreColor:!0,size:16})})]}),inputProps:{placeholder:y("SEARCH_PLACEHOLDER"),id:"search"},value:L,className:"w-full lg:w-360",onChange:e=>M(e.target.value)})}),L.length>0&&!k&&0===z&&(0,n.jsx)(v,{searchString:L}),A&&D&&(0,n.jsx)("div",{className:"border border-solid border-red-main bg-red-lighter w-full p-12 mb-32 flex justify-center items-center relative",children:(0,n.jsx)("span",{className:"font-subtitle2",children:"Ha ocurrido un error inesperado :("})})]})}),D&&F?(0,n.jsx)(O,{source:o,hasMoreResults:I,searchString:L,totalResults:z,searchResult:F,handleClose:r,fetchMore:()=>{_&&_({variables:{after:null==Z?void 0:Z.articlesV2.pageInfo.endCursor}})}}):(0,n.jsx)(T,{source:o,handleClose:r})]})})}}}]);