1import{k as L,r as U}from"./chunk-5XHJENN4.js";import{$a as o,Hc as O,Ic as S,Kb as f,Lb as v,Qb as s,Qc as z,Rb as r,Sb as g,Tb as E,Ub as _,Wb as P,Za as h,cc as x,d as N,dc as k,fa as y,fc as M,gc as D,ic as C,ka as d,kc as w,la as p,qa as T,qb as b,ua as u}from"./chunk-M6BYH6T6.js";function Q(n,c){if(n&1&&(s(0,"div",11),g(1,"img",16),r()),n&2){let e=c.$implicit;o(),_("src",e.desktopImageUrl+"?h=60&fm=webp",h)("alt",e.alt)}}function R(n,c){if(n&1&&(s(0,"li",15)(1,"div",11),g(2,"img",17),r()()),n&2){let e=c.$implicit;o(2),_("src",e.desktopImageUrl+"?h=60&fm=webp",h)("alt",e.alt)}}var I,j,V,Z,W=N(()=>{z();U();z();I=["sliderContainer"],j=["sliderTrack"],V=(n,c)=>c.desktopImageUrl;Z=(()=>{class n{sectionData=O.required();sliderContainer=S("sliderContainer");sliderTrack=S("sliderTrack");translatePx=u(0);isSliderDragging=u(!1);destroyRef=y(T);touchStartClientX=null;touchStartTranslatePx=0;constructor(){if(typeof globalThis.addEventListener=="function"){let e=()=>{let i=this.clampTranslate(this.translatePx());i!==this.translatePx()&&this.translatePx.set(i)};globalThis.addEventListener("resize",e),this.destroyRef.onDestroy(()=>{globalThis.removeEventListener("resize",e)})}}getSliderTrackTransform(){return`translateX(${this.translatePx()}px)`}onSliderTouchStart(e){e.touches.length===1&&(this.touchStartClientX=e.touches[0].clientX,this.touchStartTranslatePx=this.translatePx(),this.isSliderDragging.set(!0))}onSliderTouchMove(e){if(this.touchStartClientX===null||e.touches.length!==1)return;let i=e.touches[0].clientX-this.touchStartClientX,t=this.clampTranslate(this.touchStartTranslatePx+i);this.translatePx.set(t)}onSliderTouchEnd(){this.finalizeSliderTouch()}onSliderTouchCancel(){this.finalizeSliderTouch()}finalizeSliderTouch(){this.isSliderDragging.set(!1),this.touchStartClientX=null;let e=this.snapToNearestLogo(this.translatePx());this.translatePx.set(e)}getScrollBounds(){let e=this.sliderContainer()?.nativeElement,i=this.sliderTrack()?.nativeElement;if(!e||!i)return{min:0,max:0};let t=e.clientWidth,l=i.scrollWidth;return{min:Math.min(0,t-l),max:0}}clampTranslate(e){let{min:i,max:t}=this.getScrollBounds();return Math.max(i,Math.min(t,e))}snapToNearestLogo(e){let i=this.sliderTrack()?.nativeElement;if(!i||i.children.length<2)return this.clampTranslate(e);let t=i.children[0],a=i.children[1].offsetLeft-t.offsetLeft;if(a<=0)return this.clampTranslate(e);let X=-Math.round(-e/a)*a;return this.clampTranslate(X)}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=b({type:n,selectors:[["app-empresas-section"]],viewQuery:function(i,t){i&1&&(x(t.sliderContainer,I,5),x(t.sliderTrack,j,5)),i&2&&k(2)},inputs:{sectionData:[1,"sectionData"]},decls:20,vars:8,consts:[["sliderContainer",""],["sliderTrack",""],["aria-labelledby","empresas-title",1,"empresas-section","section-padding","w-full"],[1,"mx-auto","max-w-page","px-4","lg:px-16"],[1,"mx-auto","max-w-content"],[1,"empresas-section__header"],[1,"empresas-section__main-logo",3,"src","alt"],["id","empresas-title",1,"empresas-section__title"],[1,"empresas-section__subtitle"],[1,"empresas-section__separator"],["aria-hidden","true",1,"empresas-section__logos-desktop"],[1,"empresas-section__logo-item"],["aria-hidden","true",1,"empresas-section__slider-wrapper"],[1,"empresas-section__slider-container",3,"touchstart","touchmove","touchend","touchcancel"],[1,"empresas-section__slider-track"],[1,"empresas-section__slider-slide-item"],[1,"empresas-section__logo-image","empresas-section__logo-image--desktop",3,"src","alt"],[1,"empresas-section__logo-image","empresas-section__logo-image--mobile",3,"src","alt"]],template:function(i,t){if(i&1){let l=E();s(0,"section",2)(1,"div",3)(2,"div",4)(3,"div",5),g(4,"img",6),s(5,"h2",7),C(6),r(),s(7,"p",8),C(8),r(),g(9,"div",9),r(),s(10,"div",10),f(11,Q,2,2,"div",11,V),r(),s(13,"div",12)(14,"div",13,0),P("touchstart",function(m){return d(l),p(t.onSliderTouchStart(m))})("touchmove",function(m){return d(l),p(t.onSliderTouchMove(m))})("touchend",function(){return d(l),p(t.onSliderTouchEnd())})("touchcancel",function(){return d(l),p(t.onSliderTouchCancel())}),s(16,"ul",14,1),f(18,R,3,2,"li",15,V),r()()()()()()}
1i&2&&(o(4),_("src",t.sectionData().mainLogo.desktopImageUrl+"?h=60&fm=webp",h)("alt",t.sectionData().mainLogo.alt),o(2),w(" ",t.sectionData().title.underlinedTitle||t.sectionData().title.plainTitle," "),o(2),w(" ",t.sectionData().subtitle," "),o(3),v(t.sectionData().otherLogos),o(5),M("transform",t.getSliderTrackTransform()),D("empresas-section__slider-track--dragging",t.isSliderDragging()),o(2),v(t.sectionData().otherLogos))},dependencies:[L],styles:[".empresas-section[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(244 245 249 / var(--tw-bg-opacity, 1));padding-top:2rem;padding-bottom:2rem}@media(min-width:1024px){.empresas-section[_ngcontent-%COMP%]{padding-top:80px;padding-bottom:80px}}.empresas-section__header[_ngcontent-%COMP%]{margin-bottom:2rem;display:flex;flex-direction:column;align-items:center;text-align:center}.empresas-section__main-logo[_ngcontent-%COMP%]{margin-bottom:.5rem;height:auto;max-width:162px}.empresas-section__title[_ngcontent-%COMP%]{margin-bottom:.25rem;max-width:305px;font-size:1.25rem;line-height:1.75rem;font-weight:700;line-height:26px;--tw-text-opacity: 1;color:rgb(38 61 131 / var(--tw-text-opacity, 1))}@media(min-width:1024px){.empresas-section__title[_ngcontent-%COMP%]{max-width:none;font-size:1.5rem;line-height:2rem;line-height:30px}}.empresas-section__subtitle[_ngcontent-%COMP%]{margin-bottom:1.5rem;font-size:.75rem;line-height:1rem;line-height:18px;--tw-text-opacity: 1;color:rgb(67 94 177 / var(--tw-text-opacity, 1))}@media(min-width:1024px){.empresas-section__subtitle[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;line-height:22px}}
1.empresas-section__separator[_ngcontent-%COMP%]{height:1px;width:170px;--tw-bg-opacity: 1;background-color:rgb(185 187 198 / var(--tw-bg-opacity, 1))}.empresas-section__logos-desktop[_ngcontent-%COMP%]{display:none;flex-wrap:nowrap;align-items:center;justify-content:center;gap:2rem;padding-top:1rem;padding-bottom:1rem}@media(min-width:1024px){.empresas-section__logos-desktop[_ngcontent-%COMP%]{display:flex;gap:3rem}}.empresas-section__slider-wrapper[_ngcontent-%COMP%]{position:relative}@media(min-width:1024px){.empresas-section__slider-wrapper[_ngcontent-%COMP%]{display:none}}.empresas-section__slider-container[_ngcontent-%COMP%]{width:100%;overflow:hidden;touch-action:none;container-type:inline-size}.empresas-section__slider-track[_ngcontent-%COMP%]{margin:0;display:flex;list-style-type:none;flex-direction:row;gap:1rem;padding:0;padding-top:1rem;padding-bottom:1rem;will-change:transform;transition:transform .22s ease-out}.empresas-section__slider-track--dragging[_ngcontent-%COMP%]{transition:none}.empresas-section__slider-slide-item[_ngcontent-%COMP%]{flex:0 0 40cqw;display:flex;align-items:center;justify-content:center}.empresas-section__logo-item[_ngcontent-%COMP%]{display:flex;flex-shrink:0;align-items:center;justify-content:center}.empresas-section__logo-image[_ngcontent-%COMP%]{max-height:58px;max-width:143px;width:auto;height:auto;image-rendering:-webkit-optimize-contrast;image-rendering:crisp-edges;image-rendering:auto;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0)}.empresas-section__logo-image--desktop[_ngcontent-%COMP%]{filter:grayscale(100%);opacity:.5;transition:filter .3s ease,opacity .3s ease}.empresas-section__logo-image--desktop[_ngcontent-%COMP%]:hover, .empresas-section__logo-item[_ngcontent-%COMP%]:hover .empresas-section__logo-image--desktop[_ngcontent-%COMP%]{filter:grayscale(0%);opacity:1}.empresas-section__logo-image--mobile[_ngcontent-%COMP%]{filter:none;opacity:1}"],changeDetection:0})}return n})()});W();export{Z as EmpresasSectionComponent};
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.