1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7003],{3998:(e,t,a)=>{"use strict";a.d(t,{$:()=>c});var l=a(95155),s=a(12115),r=a(17129),n=a(83101),i=a(64269);let o=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"btn-primary bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=s.forwardRef((e,t)=>{let{className:a,variant:s,size:n,asChild:c=!1,...d}=e,u=c?r.DX:"button";return(0,l.jsx)(u,{className:(0,i.cn)(o({variant:s,size:n,className:a})),ref:t,...d})});c.displayName="Button"},6259:(e,t,a)=>{"use strict";a.d(t,{SQ:()=>p,_2:()=>x,rI:()=>d,ty:()=>u});var l=a(95155),s=a(12115),r=a(65555),n=a(27937),i=a(5917),o=a(99051),c=a(64269);let d=r.bL,u=r.l9;r.YJ,r.ZL,r.Pb,r.z6,s.forwardRef((e,t)=>{let{className:a,inset:s,children:i,...o}=e;return(0,l.jsxs)(r.ZP,{ref:t,className:(0,c.cn)("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",s&&"pl-8",a),...o,children:[i,(0,l.jsx)(n.A,{className:"ml-auto"})]})}).displayName=r.ZP.displayName,s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,l.jsx)(r.G5,{ref:t,className:(0,c.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...s})}).displayName=r.G5.displayName;let p=s.forwardRef((e,t)=>{let{className:a,sideOffset:s=4,...n}=e;return(0,l.jsx)(r.ZL,{children:(0,l.jsx)(r.UC,{ref:t,sideOffset:s,className:(0,c.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...n})})});p.displayName=r.UC.displayName;let x=s.forwardRef((e,t)=>{let{className:a,inset:s,...n}=e;return(0,l.jsx)(r.q7,{ref:t,className:(0,c.cn)("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",s&&"pl-8",a),...n})});x.displayName=r.q7.displayName,s.forwardRef((e,t)=>{let{className:a,children:s,checked:n,...o}=e;return(0,l.jsxs)(r.H_,{ref:t,className:(0,c.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:n,...o,children:[(0,l.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,l.jsx)(r.VF,{children:(0,l.jsx)(i.A,{className:"h-4 w-4"})})}),s]})}).displayName=r.H_.displayName,s.forwardRef((e,t)=>
1{let{className:a,children:s,...n}=e;return(0,l.jsxs)(r.hN,{ref:t,className:(0,c.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...n,children:[(0,l.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,l.jsx)(r.VF,{children:(0,l.jsx)(o.A,{className:"h-2 w-2 fill-current"})})}),s]})}).displayName=r.hN.displayName,s.forwardRef((e,t)=>{let{className:a,inset:s,...n}=e;return(0,l.jsx)(r.JU,{ref:t,className:(0,c.cn)("px-2 py-1.5 text-sm font-semibold",s&&"pl-8",a),...n})}).displayName=r.JU.displayName,s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,l.jsx)(r.wv,{ref:t,className:(0,c.cn)("-mx-1 my-1 h-px bg-muted",a),...s})}).displayName=r.wv.displayName},11186:(e,t,a)=>{"use strict";a.d(t,{bq:()=>x,eb:()=>g,gC:()=>f,l6:()=>d,s3:()=>u,yv:()=>p});var l=a(95155),s=a(12115),r=a(22080),n=a(24033),i=a(12108),o=a(5917),c=a(64269);let d=r.bL,u=r.YJ,p=r.WT,x=s.forwardRef((e,t)=>{let{className:a,children:s,...i}=e;return(0,l.jsxs)(r.l9,{ref:t,className:(0,c.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...i,children:[s,(0,l.jsx)(r.In,{asChild:!0,children:(0,l.jsx)(n.A,{className:"h-4 w-4 opacity-50"})})]})});x.displayName=r.l9.displayName;let m=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,l.jsx)(r.PP,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",a),...s,children:(0,l.jsx)(i.A,{className:"h-4 w-4"})})});m.displayName=r.PP.displayName;let h=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,l.jsx)(r.wn,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",a),...s,children:(0,l.jsx)(n.A,{className:"h-4 w-4"})})});h.displayName=r.wn.displayName;let f=s.forwardRef((e,t)=>{let{className:a,children:s,position:n="popper",...i}=e;return(0,l.jsx)(r.ZL,{children:(0,l.jsxs)(r.UC,{ref:t,className:(0,c.cn)("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:n,...i,children:[(0,l.jsx)(m,{}),(0,l.jsx)(r.LM,{className:(0,c.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,l.jsx)(h,{})]})})});f.displayName=r.UC.displayName,s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,l.jsx)(r.JU,{ref:t,className:(0,c.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",a),...s})}).displayName=r.JU.displayName;let g=s.forwardRef((e,t)=>{let{className:a,children:s,...n}=e;return(0,l.jsxs)(r.q7,{ref:t,className:(0,c.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...n,children:[(0,l.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,l.jsx)(r.VF,{children:(0,l.jsx)(o.A,{className:"h-4 w-4"})})}),(0,l.jsx)(r.p4,{children:s})]})});g.displayName=r.q7.displayName,s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,l.jsx)(r.wv,{ref:t,className:(0,c.cn)("-mx-1 my-1 h-px bg-muted",a),...s})}).displayName=r.wv.displayName},11860:(e,t,a)=>{"use strict";a.d(t,{AppProvider:()=>i,U:()=>o});var l=a(95155),s=a(12115),r=a(20063);let n=(0,s.createContext)(void 0),i=e=>{let{children:t,serverData:a}=e,[i,o]=(0,s.useState)(a.selectedCountry.toLowerCase()),[c,d]=(0,s.useState)(a.country),[u,p]=(0,s.useState)(null),x=(0,r.usePathname)().includes("industria"),[m,h]=(0,s.useState)("consumidor"),[f,g]=(0,s.useState)(!1),[b,v]=(0,s.useState)(null),[w,j]=(0,s.useState)(!1),[y,N]=(0,s.useState)(null),[C,S]=(0,s.useState)(!1),[F,k]=(0,s.useState)(!1),[_]=(0,s.useState)(!1),P=()=>{g(!1),v(null),j(!1)};return(0,l.jsx)(n.Provider,{value:{...a,selectedCountry:i,setSelectedCountry:o,isMenuOpen:f,setIsMenuOpen:g,menuSlug:b,setMenuSlug:v,mobile1stStepOpened:w,setMobile1stStepOpened:j,submenuSlug:y,setSubmenuSlug:N,submenuOpened:C,setSubmenuOpened:S,segment:m,setSegment:h,setMegamenuOpen:e=>{v(e),e!=b?(g(!0),N(x?null:"consumer_type")):P()},closeMegamenu:P,setMegamenuOpenMobile:e=>{v(e),e!=b?(j(!0),N(null)):P()},isProfessional:x,isLogged:_,currentCountry:c,setCurrentCountry:d,brands:u,setBrands:p,isLoadingBrands:F,setIsLoadingBrands:k},children:t})},o=()=>{let e=(0,s.useContext)(n);if(!e)throw Error("useAppContext debe utilizarse dentro de un AppProvider");return e}},13406:(e,t,a)=>{"use strict";a.d(t,{Xi:()=>c,av:()=>d,j7:()=>o,tU:()=>i});var l=a(95155),s=a(12115),r=a(37693),n=a(64269);
1let i=r.bL,o=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,l.jsx)(r.B8,{ref:t,className:(0,n.cn)("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",a),...s})});o.displayName=r.B8.displayName;let c=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,l.jsx)(r.l9,{ref:t,className:(0,n.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",a),...s})});c.displayName=r.l9.displayName;let d=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,l.jsx)(r.UC,{ref:t,className:(0,n.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...s})});d.displayName=r.UC.displayName},17037:(e,t,a)=>{"use strict";a.d(t,{$:()=>o,F:()=>i});var l=a(95155),s=a(12115),r=a(88698),n=a(64269);let i=s.forwardRef((e,t)=>{let{className:a,children:s,...i}=e;return(0,l.jsxs)(r.bL,{ref:t,className:(0,n.cn)("relative overflow-hidden",a),...i,children:[(0,l.jsx)(r.LM,{className:"h-full w-full rounded-[inherit]",children:s}),(0,l.jsx)(o,{}),(0,l.jsx)(r.OK,{})]})});i.displayName=r.bL.displayName;let o=s.forwardRef((e,t)=>{let{className:a,orientation:s="vertical",...i}=e;return(0,l.jsx)(r.VM,{ref:t,orientation:s,className:(0,n.cn)("flex touch-none select-none transition-colors","vertical"===s&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===s&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",a),...i,children:(0,l.jsx)(r.lr,{className:"relative flex-1 rounded-full bg-border"})})});o.displayName=r.VM.displayName},27937:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(71847).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},46202:(e,t,a)=>{"use strict";a.d(t,{y:()=>s});var l=a(95155);a(12115);let s=()=>(0,l.jsx)("article",{className:"flex items-center justify-center",children:(0,l.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border border-gray-400"})})},48672:(e,t,a)=>{"use strict";a.d(t,{B:()=>l});let l=e=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)}},53918:(e,t,a)=>{"use strict";a.d(t,{X:()=>l,y:()=>s});let l=[{slug:"la",name_es:"Latinoam\xe9rica",name_pt:"Latinoamerica",http_equiv:"es",i18n:"es"},{slug:"ar",name_es:"Argentina",name_pt:"Argentina",http_equiv:"es-ar",i18n:"es"},{slug:"br",name_es:"Brasil",name_pt:"Brazil",http_equiv:"es-br",i18n:"pt-BR"},{slug:"ch",name_es:"Chile",name_pt:"Chile",http_equiv:"es-cl",i18n:"es"},{slug:"co",name_es:"Colombia",name_pt:"Colombia",http_equiv:"es-co",i18n:"es"},{slug:"mx",name_es:"M\xe9xico",name_pt:"Mexico",http_equiv:"es-mx",i18n:"es"},{slug:"pe",name_es:"Per\xfa",name_pt:"Peru",http_equiv:"es-pe",i18n:"es"},{slug:"ec",name_es:"Ecuador",name_pt:"Ecuador",http_equiv:"es-ec",i18n:"es"},{slug:"py",name_es:"Paraguay",name_pt:"Paraguay",http_equiv:"es-py",i18n:"es"},{slug:"uy",name_es:"Uruguay",name_pt:"Uruguay",http_equiv:"es-uy",i18n:"es"},{slug:"cr",name_es:"Costa Rica",name_pt:"Costa Rica",http_equiv:"es-cr",i18n:"es"},{slug:"bo",name_es:"Bolivia",name_pt:"Bolivia",http_equiv:"es-bo",i18n:"es"},{slug:"sv",name_es:"El Salvador",name_pt:"El Salvador",http_equiv:"es-sv",i18n:"es"},{slug:"gt",name_es:"Guatemala",name_pt:"Guatemala",http_equiv:"es-gt",i18n:"es"}].sort((e,t)=>"la"===e.slug?-1:"la"===t.slug?1:e.name_es.localeCompare(t.name_es)),s={la:{lat:-10,lng:-70},ar:{lat:-34.6037,lng:-58.3816},bo:{lat:-16.4897,lng:-68.1193},br:{lat:-15.7801,lng:-47.9292},ch:{lat:-33.4489,lng:-70.6693},co:{lat:4.711,lng:-74.0721},cr:{lat:9.9281,lng:-84.0907},ec:{lat:-.1807,lng:-78.4678},sv:{lat:13.6929,lng:-89.2182},gt:{lat:14.6349,lng:-90.5069},mx:{lat:19.4326,lng:-99.1332},py:{lat:-25.2637,lng:-57.5759},pe:{lat:-12.0464,lng:-77.0428},uy:{lat:-34.9011,lng:-56.1645}}},60698:(e,t,a)=>{"use strict";a.d(t,{p:()=>r});var l=a(20063),s=a(12115);function r(){let e=(0,l.usePathname)(),t=(0,l.useSearchParams)(),a=t.get("brand"),[r,n]=(0,s.use
1State)(()=>a?a.split(","):[]),[i,o]=(0,s.useState)([]),[c,d]=(0,s.useState)(!1),[u,p]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{n(a?a.split(","):[])},[a]),(0,s.useEffect)(()=>{(a=>{let l=new URLSearchParams(window.location.search);if(a.length>0?l.set("brand",a.join(",")):l.delete("brand"),l.toString()===t.toString())return;let s=l.toString(),r=s?"".concat(e,"?").concat(s.replace(/%2C/gi,",")):e;window.history.replaceState(null,"",r)})(r)},[r]),{checkedBrands:r,checkedProjects:i,handleBrandItemChange:(e,t)=>{n(a=>t?a.includes(e)?a:[...a,e]:a.filter(t=>t!==e))},handleCheckAllBrands:(e,t)=>{n(t?e:[])},handleProjectItemChange:(e,t)=>{o(a=>t?[...a,e]:a.filter(t=>t!==e))},handleCheckAllProjects:(e,t)=>{o(t?e:[])},isBrandsFilterOpen:c,setIsBrandsFilterOpen:d,isProjectsFilterOpen:u,setIsProjectsFilterOpen:p}}},61247:(e,t,a)=>{"use strict";a.d(t,{FindStoreMain:()=>ec});var l=a(95155),s=a(12115),r=a(18955),n=a(44897),i=a(11860),o=a(46202),c=a(13406),d=a(28122);let u=e=>{let{value:t,onValueChange:a}=e,s=(0,r.c3)("shared.stores");return(0,l.jsx)(c.tU,{value:t,onValueChange:a,className:"w-full order-3 lg:order-1 p-0 flex justify-center",children:(0,l.jsxs)(c.j7,{className:"flex w-full max-w-[322px] lg:max-w-[536px] h-10 bg-transparent p-0 rounded-none",children:[(0,l.jsxs)(c.Xi,{value:"onlineStore",className:"flex-1 lg:w-[255px] h-10 rounded-none px-2 lg:px-6 text-[14px] lg:text-base font-normal gap-2 bg-[#222222] text-white border-t border-l border-r border-[rgba(255,255,255,0.2)] data-[state=active]:bg-white data-[state=active]:text-[#222222] data-[state=active]:border-0 data-[state=active]:border-b-2 data-[state=active]:border-b-[#FF240C] data-[state=active]:font-bold",children:[(0,l.jsx)(d.VeH,{className:"h-4 w-4 shrink-0"}),(0,l.jsx)("span",{className:"lg:hidden",children:s("tabs.mobile.online")}),(0,l.jsx)("span",{className:"hidden lg:inline",children:s("tabs.desktop.online")})]}),(0,l.jsxs)(c.Xi,{value:"localSale",className:"w-[161px] lg:w-[261px] h-10 rounded-none px-2 lg:px-6 text-[14px] lg:text-base font-normal gap-2 bg-[#222222] text-white border-t border-l border-r border-[rgba(255,255,255,0.2)] data-[state=active]:bg-white data-[state=active]:text-[#222222] data-[state=active]:border-0 data-[state=active]:border-b-2 data-[state=active]:border-b-[#FF240C] data-[state=active]:font-bold",children:[(0,l.jsx)(d.HzC,{className:"h-4 w-4 shrink-0"}),(0,l.jsx)("span",{className:"lg:hidden",children:s("tabs.mobile.local")}),(0,l.jsx)("span",{className:"hidden lg:inline",children:s("tabs.desktop.local")})]})]})})};var p=a(53918);let x={lat:-15,lng:-63};var m=a(20063),h=a(60698),f=a(22454),g=a(95125),b=a(60919);let v=async e=>{let{code:t,search:a,brand:l,segment:s,lat:r,lng:n,city:i,campaign:o}=e;try{return(await g.A.get("".concat("https://adm.rustoleumla.com/api","/distributors?country=").concat(t,"&noLimit=true").concat(s?"&segment=".concat(s):"").concat(l?"&brand=".concat(l):"").concat(r?"&latitude=".concat(r):"").concat(n?"&longitude=".concat(n):"").concat(i?"&city=".concat(i):"").concat(o?"&campaign=".concat(o):"").concat(a?"&search=".concat(a):""))).data}catch(e){if(e instanceof b.pe){var c;return Promise.reject("".concat(null==(c=e.response)?void 0:c.data.message))}return Promise.reject("An error occurred")}},w=async e=>{let{code:t,search:a,segment:l,brand:s,campaign:r,page:n,limit:i=20}=e;try{return(await g.A.get("".concat("https://adm.rustoleumla.com/api","/distributors-onlines?country=").concat(t).concat("&limit=".concat(i)).concat(l?"&segment=".concat(l):"").concat(s?"&brand=".concat(s):"").concat(r?"&campaign=".concat(r):"").concat(a?"&search=".concat(a):"").concat(n?"&page=".concat(n):"&page=1"))).data}catch(e){if(e instanceof b.pe){var o;return Promise.reject("".concat(null==(o=e.response)?void 0:o.data.message))}return Promise.reject("An error occurred")}};var j=a(80155),y=a(93048),N=a(3998),C=a(65142),S=a(9577),F=a(42878);let k=e=>{let{value:t,placeholder:a,clearLabel:r,onValueChange:i,onPlaceChanged:o,onClear:c}=e,[d,u]=(0,s.useState)(null);return(0,l.jsxs)("div",{className:"w- relative",children:[(0,l.jsx)(n.jT,{onLoad:u,onPlaceChanged:()=>{d&&o(d.getPlace())},children:(0,l.jsx)(C.p,{placeholder:a,type:"text",className:"w-full h-[50px] rounded-none border border-[rgba(0,0,0,0.1)] bg-white pr-10 text-base font-bold text-[#222222] placeholder:text-[rgba(34,34,34,0.6)] placeholder:text-base placeholder:font-bold focus-visible:ring-0 focus-visible:ring-offset-0",value:t,onChange:e=>i(e.target.value)})}),!t&&(0,l.jsx)("span",{className:"pointer-events-none absolute right-[14px] top-1/2 -translate-y-1/2 text-[#222222]",children:(0,l.jsx)(S.Xj1,{className:"h-5 w-5"})}),!!t&&(0,l.jsx)(N.$,{variant:"ghost",onClick:c,className:"absolute right-[10px] top-1/2 -translate-y-1/2 p-1 h-auto text-[#222222] hover:bg-transparent","aria-label":r,children:(0,l.jsx)(F.$8F,{})})]})};var _=a(11186);let P=e=>{let{cities:t,value:a,allCitiesLabel:r,onChange:n}
1=e,[i,o]=(0,s.useState)(!1);return(0,l.jsx)("div",{className:"w-full relative ".concat(i?"z-10":""),children:(0,l.jsxs)(_.l6,{onValueChange:e=>{n("all-cities"===e?"":e)},value:a||"all-cities",onOpenChange:o,children:[(0,l.jsx)(_.bq,{className:"w-full h-[50px] rounded-none border border-[rgba(0,0,0,0.1)] lg:border-l-0 bg-white px-[14px] text-[rgba(34,34,34,0.6)] text-base font-bold focus:ring-0 focus:ring-offset-0 [&>svg]:h-4 [&>svg]:w-4 [&>svg]:opacity-70 [&>span]:font-bold",onFocus:()=>o(!0),onBlur:()=>o(!1),children:(0,l.jsx)(_.yv,{placeholder:r})}),(0,l.jsx)(_.gC,{className:"bg-white",children:(0,l.jsxs)(_.s3,{children:[t.length>1&&(0,l.jsx)(_.eb,{value:"all-cities",className:"text-[#495057] font-light text-base focus:bg-blue-100 focus:text-[#444] data-[state=checked]:bg-[#cbe0ff] data-[state=checked]:text-[#222] data-[state=checked]:font-light",children:r}),t.map(e=>(0,l.jsx)(_.eb,{value:e,className:"text-[#495057] font-light text-base focus:bg-blue-100 focus:text-[#444] data-[state=checked]:bg-[#cbe0ff] data-[state=checked]:text-[#222] data-[state=checked]:font-light",children:e},e))]})})]})})},L=e=>{let{cities:t,searchValue:a,citySelected:s,onSearchValueChange:n,onCitySelectedChange:i,onSelectedPlaceChange:o}=e,c=(0,r.c3)("shared.stores");return(0,l.jsxs)("div",{className:"hidden lg:w-full lg:max-w-[1156px] lg:mx-auto lg:flex lg:my-8 lg:flex-row lg:gap-0 lg:items-center",children:[(0,l.jsx)("div",{className:"w-full lg:w-1/2",children:(0,l.jsx)(k,{value:a,placeholder:c("input_placeholder"),clearLabel:"Limpiar busqueda",onValueChange:n,onPlaceChanged:e=>{o({lat:e.geometry&&e.geometry.location?e.geometry.location.lat():0,lng:e.geometry&&e.geometry.location?e.geometry.location.lng():0}),n(e.vicinity||e.name||"")},onClear:()=>{n(""),o(null)}})}),(0,l.jsx)("div",{className:"w-full lg:w-1/2",children:(0,l.jsx)(P,{cities:t,value:s,allCitiesLabel:c("select_all_cities"),onChange:i})})]})},A=()=>{let e=(0,r.c3)("shared.stores");return(0,l.jsxs)("div",{className:"hidden lg:flex w-full order-4 lg:order-3 bg-[#E4E8EC] px-[10px] py-[12px] mt-5 lg:mt-0 items-start",children:[(0,l.jsx)("p",{className:"w-[293px] text-[#0A0A0A] text-[16px] font-bold leading-normal",children:e("filters.title")}),(0,l.jsx)("p",{className:"pl-2 text-[#0A0A0A] text-[16px] font-bold leading-normal",children:e("countResults.results")})]})};var z=a(17037),R=a(48672),E=a(50742),M=a(53483);let V=e=>{let{isActive:t,store:a,onClick:s,setView:n}=e,i=(0,r.c3)("shared.stores");return(0,l.jsxs)("div",{className:"w-full border-0 border-b border-[#E4E8EC] p-2 lg:p-4 flex flex-col items-start transition-colors duration-200 cursor-pointer\n ".concat(t?"bg-[#222]":""),onClick:()=>{s(),(0,R.B)({event:"distributor_click",distributor_id:a.id,distributor_name:a.name,distributor_address:"".concat(a.city," - ").concat(a.fullAddress),distributor_type:"fisico"})},children:[(0,l.jsx)("h4",{className:"font-bold text-sm leading-5 ".concat(t?"text-white":"text-[#222]"),children:a.name}),(0,l.jsx)("p",{className:"font-light text-xs ".concat(t?"text-white":"text-[#222]"," leading-[18px]"),children:a.fullAddress}),a.phone&&(0,l.jsxs)("div",{className:"font-light text-xs ".concat(t?"text-white":"text-[#222]"," flex items-center gap-[5px] leading-[18px]"),children:[(0,l.jsx)(d.QFc,{})," ",(0,l.jsx)("span",{children:a.phone})]}),t&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("hr",{className:"w-full my-2 mt-3 md:max-w-96 h-px bg-[#FFF] border-none opacity-20 lg:hidden"}),(0,l.jsxs)(N.$,{variant:"ghost",className:"flex items-center justify-between w-full text-white lg:hidden px-0",onClick:()=>n("map"),children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(E.kMs,{className:"text-white"}),(0,l.jsx)("span",{className:"font-light text-xs text-white",children:i("view_on_map")})]}),(0,l.jsx)(M.YZI,{className:"font-bold text-sm text-white"})]})]})]})},B=e=>{let{distributorsLocal:t,distributorLocalSelected:a,onStoreClick:s,setView:n}=e,i=(0,r.c3)("shared.stores");return(0,l.jsx)("div",{className:"h-[425px] lg:h-[525px] overflow-y-auto order-6 mb-10 md:mb-0 md:order-6 w-full",children:(0,l.jsxs)(z.F,{className:"scroll-always bg-white lg:bg-[#FAFAFA] w-full flex flex-col items-center justify-center",children:[(null==t?void 0:t.length)===0?(0,l.jsx)("p",{className:"text-[#212529] text-base text-center mb-4",children:i("empty_state")}):(0,l.jsx)("div",{className:"flex flex-col gap-1 w-full",children:t.map(e=>(0,l.jsx)(V,{store:e,isActive:(null==a?void 0:a.id)===e.id,onClick:()=>s(e),setView:n},e.id))}),(0,l.jsx)(z.$,{orientation:"vertical"})]})})},I=e=>{let{view:t,distributorsLocal:a,distributorLocalSelected:s,onStoreClick:r,setView:n}=e;return(0,l.jsx)("div",{className:"w-full h-full ".concat("list"===t?"block":"hidden"," lg:block lg:w-[30%]"),children:(0,l.jsx)(B,{distributorsLocal:a,distributorLocalSelected:s,onStoreClick:r,setView:n})})},U=e=>{let{distributorLocalSelected:t}=e;return t?(0,l.jsxs)("div",{className:"bg-white flex flex-col gap-[5px] max-w-72 max-h-36 px-2",children:[(0,l.jsx)("h2",{className:"text-base text-[#222] font-semibold",children:t.name}),(0,l.jsx)("p",{className:"text-[15px] text-[#222] font-light",children:t.fullAddress}),t.phone&&(0,l.jsxs)("p",{className:"text-[15px] text-[#222] font-light flex items-center gap-[5px]",children:[(0,l.jsx)(d.QFc,{})," ",t.phone]}),t.website&&(0,l.jsxs)("div",{className:"text-[15px] font-light flex items-center gap-[5px]",children:[(0,l.jsx)(d.VeH,{className:"text-[#212529]"}),(0,l.jsx)("a",{href:(e=>e.startsWith("http://")||e.startsWith("https://")?e:"https://".concat(e))(t.website),target:"_blank",className:"flex text-[#007BFF] font-light hover:underline hover:text-[#0454b4]",children:t.website})]}),(0,l.jsx)("hr",{className:"my-4"}),t.brands.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:"text-xs text-[#666] font-normal isolate uppercase",children:"PRODUCTOS"}),(0,l.jsx)("p",{className:"text-[12px] text-[#444] leading-[18px] font-bold",children:t.segments[0].name}),(0,l.jsx)("p",{}),t.brands.map(e=>(0,l.jsx)("div",{children:(0,l.jsx)("ul",{children:(0,l.jsxs)("li",{className:" flex text-xs text-[#666] font-normal",children:[(0,l.jsx)(M.NBD,{className:"text-black"})," ",e.name]},e.id)})},e.id))]})]}):null},q={styles:[{url:"/markercluster/m1.svg",height:50,width:50,textColor:"#fff",textSize:14},{url:"/markercluster/m2.svg",height:60,width:60,textColor:"#fff",textSize:16}],maxZoom:15},O={width:"100%",height:"100%"},D=e=>{let{currentPosition:t,distributorLocalSelected:a,selectedCountry:r,markers:i=[],onCloseInfoWindow:o,onStoreClick:c}
1=e,[d,u]=(0,s.useState)(null),p=(0,s.useCallback)(function(e){u(e)},[]),x=(0,s.useCallback)(()=>{u(null)},[]);return(0,s.useEffect)(()=>{if(d)if(a){let e=new window.google.maps.LatLngBounds;e.extend({lat:Number(a.latitude_in_decimals),lng:Number(a.longitude_in_decimals)}),d.fitBounds(e)}else d.setCenter(t),d.setZoom("la"===r?3:5)},[d,a,t,r]),(0,l.jsx)("div",{className:"order-7 w-full h-[475px] lg:h-full lg:relative ",children:(0,l.jsxs)(n.u6,{"aria-label":"Mapa de ubicaciones",mapContainerStyle:O,center:{lat:Number(a?a.latitude_in_decimals:t.lat),lng:Number(a?a.longitude_in_decimals:t.lng)},zoom:2,onLoad:p,onUnmount:x,options:{streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1},children:[(0,l.jsx)(n.w1,{options:q,children:e=>(0,l.jsx)(l.Fragment,{children:i.map(t=>(0,l.jsx)(n.X0,{position:{lat:Number(t.latitude_in_decimals),lng:Number(t.longitude_in_decimals)},title:t.name,icon:{url:"/map-marker.png",scaledSize:new google.maps.Size(50,60)},clusterer:e,onClick:()=>c(t)},t.id))})}),a&&(0,l.jsx)(n.pE,{position:{lat:Number(a.latitude_in_decimals),lng:Number(a.longitude_in_decimals)},options:{pixelOffset:new window.google.maps.Size(0,-55)},onCloseClick:o,children:(0,l.jsx)(U,{distributorLocalSelected:a})})]})})},T=e=>{let{view:t,currentPosition:a,distributorLocalSelected:s,distributorsLocal:r,selectedCountry:n,onCloseInfoWindow:i,onStoreClick:o}=e;return(0,l.jsx)("div",{className:"w-full h-full ".concat("map"===t?"block":"hidden"," lg:block lg:w-[70%]"),children:(0,l.jsx)(D,{currentPosition:a,distributorLocalSelected:s,markers:r,selectedCountry:n,onCloseInfoWindow:i,onStoreClick:o})})};var X=a(73457),Z=a(6259),$=a(33828);let Q={Consumidor:"consumidor",Industria:"industria",Construccion:"construccion"},W={consumidor:"Consumidor",industria:"Industria",construccion:"Construccion"},H=e=>e.replace(/%2C/gi,","),K=e=>e.length?{primary:(e=>e.length<=22?e:"".concat(e.slice(0,22).trimEnd(),"..."))(e[0]),suffix:e.length>1?"(+".concat(e.length-1,")"):""}:{primary:"",suffix:""},J=e=>{let{checkedItems:t,activeContent:a,selectedCountry:n,items:i,campaigns:o,searchValue:c,selectedProductSegments:d,selectedCampaigns:u,onSearchValueChange:p,onProductSegmentsApply:x,onCampaignToggle:m,onClearCampaigns:h,onCheckAll:f}=e,g="onlineStore"===a&&"la"===n,b=(0,r.c3)("shared.stores"),[v,w]=(0,s.useState)(""),[y,N]=(0,s.useState)(c),[C,S]=(0,s.useState)(!1),[F,k]=(0,s.useState)(!1),[_,P]=(0,s.useState)(!1),[L,A]=(0,s.useState)(t),[z,R]=(0,s.use
1State)(u),[E,V]=(0,s.useState)(d.map(e=>W[e])),[B,I]=(0,s.useState)(t),[U,q]=(0,s.useState)(u),[O,D]=(0,s.useState)(d.map(e=>W[e])),T=(0,j.A)(v,600),J=(e,t)=>{if(e.length!==t.length)return!1;let a=[...e].sort((e,t)=>e.localeCompare(t)),l=[...t].sort((e,t)=>e.localeCompare(t));return a.every((e,t)=>e===l[t])};(0,s.useEffect)(()=>{A(t),I(t)},[t]),(0,s.useEffect)(()=>{R(u),q(u)},[u]),(0,s.useEffect)(()=>{let e=d.map(e=>W[e]);V(e),D(e)},[d]),(0,s.useEffect)(()=>{N(c)},[c]);let G=(0,s.useMemo)(()=>{let e=T.trim().toLowerCase();return e?i.filter(t=>t.name.toLowerCase().includes(e)):i},[T,i]),Y=G.length>0,ee=()=>{let e=y.trim();p(e);let t=new URLSearchParams(window.location.search);e?t.set("search",e):t.delete("search"),t.delete("page");let a=t.toString(),l=a?"".concat(window.location.pathname,"?").concat(H(a)):window.location.pathname;window.history.replaceState(null,"",l)},et=(0,s.useMemo)(()=>i.filter(e=>L.includes(e.slug)).map(e=>e.name),[L,i]),ea=K(E),el=K(et),es=K(o.filter(e=>z.includes(e.slug)).map(e=>e.name)),er=y.trim(),en=(null!=c?c:"").trim(),ei=er.length>0||L.length>0||z.length>0||E.length>0,eo=er!==en||!J(L,B)||!J(z,U)||!J(E,O),ec=g||!ei,ed=g||!ei||!eo;return(0,l.jsxs)("aside",{className:"w-full p-4 md:w-[40%] lg:w-[23%] bg-[#F2F6FA] lg:px-4 lg:py-6 flex flex-col gap-8",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-4 w-full",children:[(0,l.jsxs)("div",{className:"bg-white flex items-center justify-end w-full",children:[(0,l.jsx)("div",{className:"flex-1 h-10 border border-[rgba(0,0,0,0.23)] border-r-0 pl-2",children:(0,l.jsx)("input",{type:"text",value:y,onChange:e=>N(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),ee())},placeholder:b("filters.search_placeholder"),className:"w-full h-full bg-transparent text-[16px] text-[#00000099] placeholder:text-[rgba(0,0,0,0.38)] focus:outline-none",disabled:g})}),(0,l.jsx)("button",{type:"button",onClick:ee,className:"shrink-0 size-10 border border-[#FF240C] text-[#FF240C] flex items-center justify-center","aria-label":b("filters.search_placeholder"),disabled:g,children:(0,l.jsx)($.VxX,{className:"h-4 w-4"})})]}),(0,l.jsxs)(Z.rI,{open:C,onOpenChange:S,children:[(0,l.jsx)("div",{className:"w-full relative",children:(0,l.jsx)(Z.ty,{asChild:!0,children:(0,l.jsxs)("button",{type:"button",className:"relative w-full h-10 px-[14px] pr-14 border border-[rgba(0,0,0,0.23)] bg-white text-left",children:[!!ea.primary&&(0,l.jsx)("span",{className:"absolute -top-[6px] left-[10px] bg-white px-1 text-[12px] leading-[12px] text-[#00000099]",children:b("filters.type")}),(0,l.jsx)("span",{className:ea.primary?"flex w-full items-center gap-1 pr-1 text-[#222222] text-[16px] leading-[40px]":"block w-full truncate whitespace-nowrap pr-1 text-[#00000099] text-base leading-[40px]",children:ea.primary?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"min-w-0 truncate whitespace-nowrap",children:ea.primary}),!!ea.suffix&&(0,l.jsx)("span",{className:"shrink-0 whitespace-nowrap",children:ea.suffix})]}):"".concat(b("filters.type"))}),C?(0,l.jsx)(M.Br,{className:"absolute right-[10px] top-1/2 -translate-y-1/2 h-6 w-6 text-[#787878]"}):(0,l.jsx)(M.oss,{className:"absolute right-[10px] top-1/2 -translate-y-1/2 h-6 w-6 text-[#787878]"})]})})}),(0,l.jsx)(Z.SQ,{align:"start",sideOffset:0,className:"w-[var(--radix-dropdown-menu-trigger-width)] rounded-none border border-t-0 border-[rgba(0,0,0,0.23)] bg-white px-4 py-3 shadow-none",children:(0,l.jsx)("ul",{className:"flex flex-col gap-4",children:["Consumidor","Industria","Construccion"].map(e=>(0,l.jsx)("li",{children:(0,l.jsxs)("label",{className:"flex items-center text-[16px] leading-[1.2] text-[#444444]",children:[(0,l.jsx)(X.S,{variant:"outlineRed",checked:E.includes(e),onCheckedChange:t=>((e,t)=>{if(t)return void V(t=>t.includes(e)?t:[...t,e]);V(t=>t.filter(t=>t!==e))})(e,t)}),(0,l.jsx)("span",{className:"text-[16px] font-light",children:e})]})},e))})})]}),(0,l.jsxs)(Z.rI,{open:F,onOpenChange:k,children:[(0,l.jsx)("div",{className:"w-full relative",children:(0,l.jsx)(Z.ty,{asChild:!0,children:(0,l.jsxs)("button",{type:"button",className:"relative w-full h-10 px-[14px] pr-14 border border-[rgba(0,0,0,0.23)] bg-white text-left",disabled:g,children:[!!el.primary&&(0,l.jsx)("span",{className:"absolute -top-[6px] left-[10px] bg-white px-1 text-[12px] leading-[12px] text-[#00000099]",children:b("filters.brand")}),(0,l.jsx)("span",{className:el.primary?"flex w-full items-center gap-1 pr-1 text-[#222222] text-[16px] leading-[40px]":"block w-full truncate whitespace-nowrap pr-1 text-[#00000099] text-base leading-[40px]",children:el.primary?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"min-w-0 truncate whitespace-nowrap",children:el.primary}),!!el.suffix&&(0,l.jsx)("span",{className:"shrink-0 whitespace-nowrap",children:el.suffix})]}):"".concat(b("filters.brand"))}),F?(0,l.jsx)(M.Br,{className:"absolute right-[10px] top-1/2 -translate-y-1/2 h-6 w-6 text-[#787878]"}):(0,l.jsx)(M.oss,{className:"absolute right-[10px] top-1/2 -translate-y-1/2 h-6 w-6 text-[#787878]"})]})})}),(0,l.jsxs)(Z.SQ,{align:"start",sideOffset:0,className:"w-[var(--radix-dropdown-menu-trigger-width)] rounded-none border border-t-0 border-[rgba(0,0,0,0.23)] bg-white p-0 shadow-none",children:[(0,l.jsxs)("div",{className:"flex items-stretch w-full h-10 bg-white",children:[(0,l.jsx)("input",{type:"text",value:v,onCh
1ange:e=>w(e.target.value),placeholder:b("filters.brand_placeholder"),className:"w-full h-10 px-[14px] border-b border-r-0 border-[rgba(0,0,0,0.23)] bg-white text-base text-[#00000099] placeholder:text-[#00000061] focus:outline-none",disabled:g}),(0,l.jsx)("button",{type:"button",className:"shrink-0 size-10 rounded-none border border-[#FF240C] text-[#FF240C] flex items-center justify-center","aria-label":b("filters.brand_placeholder"),disabled:g,children:(0,l.jsx)($.VxX,{className:"h-4 w-4"})})]}),(0,l.jsx)("div",{className:"px-3 py-3 max-h-[236px] overflow-y-auto shadow-[0px_1px_8px_0px_rgba(0,0,0,0.12),0px_3px_4px_0px_rgba(0,0,0,0.14),0px_3px_3px_-2px_rgba(0,0,0,0.2)]",children:(0,l.jsx)("ul",{className:"flex flex-col gap-3",children:Y?G.map(e=>{let{id:t,name:a,slug:s}=e;return(0,l.jsx)("li",{children:(0,l.jsxs)("label",{className:"flex items-center text-[13px] leading-[1.2] text-[#444444]",children:[(0,l.jsx)(X.S,{variant:"outlineRed",disabled:g,checked:L.includes(s),onCheckedChange:e=>{A(t=>e?t.includes(s)?t:[...t,s]:t.filter(e=>e!==s))}}),(0,l.jsx)("span",{className:L.includes(s)?"font-bold":"font-light",children:a})]})},t)}):(0,l.jsx)("li",{className:"text-[13px] leading-[1.2] text-[#666666] font-light",children:b("filters.empty_brands")})})})]})]}),o.length>0&&(0,l.jsxs)(Z.rI,{open:_,onOpenChange:P,children:[(0,l.jsx)("div",{className:"w-full relative",children:(0,l.jsx)(Z.ty,{asChild:!0,children:(0,l.jsxs)("button",{type:"button",className:"relative w-full h-10 px-[14px] pr-14 border border-[rgba(0,0,0,0.23)] bg-white text-left",children:[!!es.primary&&(0,l.jsx)("span",{className:"absolute -top-[6px] left-[10px] bg-white px-1 text-[12px] leading-[12px] text-[#00000099]",children:"Oportunidades"}),(0,l.jsx)("span",{className:es.primary?"flex w-full items-center gap-1 pr-1 text-[#222222] text-[16px] leading-[40px]":"block w-full truncate whitespace-nowrap pr-1 text-[#00000099] text-base leading-[40px]",children:es.primary?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"min-w-0 truncate whitespace-nowrap",children:es.primary}),!!es.suffix&&(0,l.jsx)("span",{className:"shrink-0 whitespace-nowrap",children:es.suffix})]}):"Oportunidades"}),_?(0,l.jsx)(M.Br,{className:"absolute right-[10px] top-1/2 -translate-y-1/2 h-6 w-6 text-[#787878]"}):(0,l.jsx)(M.oss,{className:"absolute right-[10px] top-1/2 -translate-y-1/2 h-6 w-6 text-[#787878]"})]})})}),(0,l.jsx)(Z.SQ,{align:"start",sideOffset:0,className:"w-[var(--radix-dropdown-menu-trigger-width)] rounded-none border border-t-0 border-[rgba(0,0,0,0.23)] bg-white px-4 py-3 shadow-none",children:(0,l.jsx)("ul",{className:"flex flex-col gap-4",children:o.map(e=>{let{id:t,name:a,slug:s}=e;return(0,l.jsx)("li",{children:(0,l.jsxs)("label",{className:"flex items-center text-[16px] leading-[1.2] text-[#444444]",children:[(0,l.jsx)(X.S,{variant:"outlineRed",checked:z.includes(s),onCheckedChange:e=>{R(t=>e?t.includes(s)?t:[...t,s]:t.filter(e=>e!==s))}}),(0,l.jsx)("span",{className:"text-[16px] font-light",children:a})]})},t)})})})]})]}),(0,l.jsxs)("div",{className:"flex items-center gap-4 w-full",children:[(0,l.jsx)("button",{type:"button",onClick:()=>{N(""),p(""),w(""),A([]),R([]),V([]),I([]),q([]),D([]),x([]),h(),f(i.map(e=>e.slug),!1);let e=new URLSearchParams(window.location.search);e.delete("search"),e.delete("segment"),e.delete("campaign");let t=e.toString(),a=t?"".concat(window.location.pathname,"?").concat(H(t)):window.location.pathname;window.history.replaceState(null,"",a)},disabled:ec,className:"flex-1 h-10 border-2 text-[11px] font-black tracking-[0.55px] uppercase transition-colors ".concat(ec?"border-[#C5C5C5] text-[#5F5F5F] bg-transparent":"border-[#FF240C] text-[#FF240C] bg-white"),children:b("filters.btnClear")}),(0,l.jsx)("button",{type:"button",onClick:()=>{let e=E.map(e=>Q[e]).filter(Boolean),t=new URLSearchParams(window.location.search),a=y.trim();p(a),a?t.set("search",a):t.delete("search"),e.length>0?t.set("segment",e.join(",")):t.delete("segment"),z.length>0?t.set("campaign",z.join(",")):t.delete("campaign");let l=t.toString(),s=l?"".concat(window.location.pathname,"?").concat(H(l)):window.location.pathname;window.history.replaceState(null,"",s),f(i.map(e=>e.slug),!1),L.length>
10&&f(L,!0),h(),z.forEach(e=>{m(e,!0)}),x(e),I(L),q(z),D(E)},disabled:ed,className:"flex-1 h-10 text-[11px] font-black tracking-[0.55px] uppercase transition-colors ".concat(ed?"bg-[#C5C5C5] text-[#5F5F5F]":"bg-[#FF240C] text-white"),children:b("filters.btnApply")})]})]})},G=e=>{let{activeContent:t,cities:a,searchValue:s,citySelected:r,onSearchValueChange:n,onCitySelectedChange:i,onSelectedPlaceChange:o,view:c,distributorsLocal:d,distributorLocalSelected:u,onStoreClick:p,setView:x,currentPosition:m,selectedCountry:h,onCloseInfoWindow:f,brandFilterProps:g}=e;return"localSale"!==t?null:(0,l.jsxs)("div",{className:"hidden lg:container lg:block",children:[(0,l.jsx)(L,{cities:a,searchValue:s,citySelected:r,onSearchValueChange:n,onCitySelectedChange:i,onSelectedPlaceChange:o}),(0,l.jsx)(A,{}),(0,l.jsxs)("div",{className:"flex pb-[72px]",children:[(0,l.jsx)(J,{...g}),(0,l.jsx)("div",{className:"bg-white w-[77%] flex flex-row h-[525px] items-center justify-center",children:(0,l.jsxs)("div",{className:"w-full h-full lg:flex bg-[#FFF] lg:bg-[#FAFAFA]",children:[(0,l.jsx)(I,{view:c,distributorsLocal:d,distributorLocalSelected:u,onStoreClick:p,setView:x}),(0,l.jsx)(T,{view:c,currentPosition:m,distributorLocalSelected:u,distributorsLocal:d,selectedCountry:h,onCloseInfoWindow:f,onStoreClick:p})]})})]})]})};var Y=a(70898);let ee=e=>{let{view:t,mapLabel:a,listLabel:s,onToggle:r}=e;return(0,l.jsxs)(N.$,{variant:"ghost",className:"w-full h-[50px] bg-[#FFF] flex lg:hidden items-center justify-between gap-2 py-[1px] px-[6px]",onClick:r,children:[(0,l.jsx)("span",{className:"flex gap-3 items-center text-[#222] font-bold text-base",children:"map"===t?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Y.svy,{}),s]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(E.kMs,{}),a]})}),(0,l.jsx)(M.YZI,{className:"text-[#FF240C]"})]})},et=e=>{let{activeContent:t,view:a,mapLabel:r,listLabel:n,onToggle:i,distributorsLocal:o,distributorLocalSelected:c,onStoreClick:u,setView:p,currentPosition:x,selectedCountry:m,onCloseInfoWindow:h,brandFilterProps:f}=e,[g,b]=(0,s.useState)(!1);return"localSale"!==t?null:(0,l.jsxs)("div",{className:"lg:hidden container flex flex-col gap-4 py-10",children:[(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsxs)(N.$,{variant:"outline",onClick:()=>b(e=>!e),className:"w-full h-10 px-10 border-2 border-[#FF240C] flex items-center justify-center gap-2 uppercase",children:[(0,l.jsx)(d.ou6,{className:"h-4 w-4 text-[#FF240C]"}),(0,l.jsx)("span",{className:"text-[11px] font-black text-[#FF240C] ",children:g?"Ocultar filtros":"Mostrar filtros"})]})}),g&&(0,l.jsx)(J,{...f}),o&&(0,l.jsxs)("section",{className:"bg-white min-h-96 w-full flex flex-col items-center justify-center",children:[(0,l.jsx)(ee,{view:a,mapLabel:r,listLabel:n,onToggle:i}),(0,l.jsxs)("div",{className:"w-full h-full bg-[#FFF]",children:[(0,l.jsx)(I,{view:a,distributorsLocal:o,distributorLocalSelected:c,onStoreClick:u,setView:p}),(0,l.jsx)(T,{view:a,currentPosition:x,distributorLocalSelected:c,distributorsLocal:o,selectedCountry:m,onCloseInfoWindow:h,onStoreClick:u})]})]})]})};var ea=a(15239);let el=e=>{var t;let{distributor:a}=e;return(0,l.jsx)("article",{className:"relative w-[98px] h-[120px] border-2 border-[#D3D3D3] bg-white md:size-[176px] md:border",children:(0,l.jsxs)("a",{href:null!=(t=a.website)?t:"#",className:"relative flex size-full items-center justify-center",target:a.website?"_blank":void 0,rel:a.website?"noreferrer noopener":void 0,onClick:e=>{a.website||e.preventDefault()},children:[(0,l.jsx)("div",{className:"relative size-[70px] md:size-[157.895px]",children:(0,l.jsx)(ea.default,{src:a.logo.url,alt:a.name,fill:!0,className:"object-contain"})}),(0,l.jsx)("div",{className:"absolute -bottom-[2px] -right-[2px] flex size-6 items-center justify-center bg-[#D3D3D3] text-[#222222] md:bottom-0 md:right-0 md:size-[25px]",children:(0,l.jsx)($.hUl,{className:"h-[11px] w-[11px] md:h-[12px] md:w-[12px]"})})]})})},es=e=>{var t,a,n,i,o,c,d,u,p;let{distributors:x,meta:h}=e,f=(0,r.c3)("shared.stores"),g=(0,m.useRouter)(),b=(0,m.usePathname)(),v=(0,m.useSearchParams)(),w=null!=(c=null==h||null==(t=h.pagination)?void 0:t.total)?c:x.length,j="number"==typeof(null==h||null==(a=h.pagination)?void 0:a.total)&&(null==h||null==(n=h.pagination)?void 0:n.total)>x.length,y=Math.max(1,Math.ceil(w/(null!=(d=null==h||null==(i=h.pagination)?void 0:i.pageSize)?d:12))),N=Number(null!=(u=v.get("page"))?u:"
11"),C=Number.isFinite(N)&&N>0?Math.min(Math.floor(N),y):1,S=e=>{let t=Math.max(1,Math.min(y,e)),a=new URLSearchParams(v.toString());t<=1?a.delete("page"):a.set("page",String(t)),g.replace(a.toString()?"".concat(b,"?").concat(a.toString()):b,{scroll:!0})},F=(0,s.useMemo)(()=>{var e,t,a,l;if(j)return x;let s=(C-1)*(null!=(a=null==h||null==(e=h.pagination)?void 0:e.pageSize)?a:0);return x.slice(s,s+(null!=(l=null==h||null==(t=h.pagination)?void 0:t.pageSize)?l:0))},[C,x,j]),k=(0,s.useMemo)(()=>y<=7?Array.from({length:y},(e,t)=>t+1):C<=4?[1,2,3,4,5,"ellipsis",y]:C>=y-3?[1,"ellipsis",y-4,y-3,y-2,y-1,y]:[1,"ellipsis",C-1,C,C+1,"ellipsis",y],[C,y]),_=Math.min(C*(null!=(p=null==h||null==(o=h.pagination)?void 0:o.pageSize)?p:0),w);return(0,l.jsxs)("div",{className:"lg:px-14 lg:pt-4 lg:w-[77%] flex flex-col gap-4 bg-white",children:[x.length>0&&(0,l.jsx)("p",{className:"font-light text-[rgba(102,102,102,1)] text-[14px]",children:"".concat(f("countResults.prepend")," ").concat(_," ").concat(f("countResults.inner")," ").concat(w," ").concat(f("countResults.append"))}),0===x.length?(0,l.jsx)("p",{className:"text-[#212529] text-base text-center mb-4",children:f("empty_state")}):(0,l.jsx)("div",{className:"grid grid-cols-3 lg:grid-cols-4 gap-4 lg:gap-10 w-full justify-items-center",children:F.map(e=>(0,l.jsx)(el,{distributor:e},e.id))}),x.length>0&&y>1&&(0,l.jsx)("div",{className:"flex items-center justify-center lg:py-2",children:(0,l.jsxs)("nav",{className:"flex items-center gap-[6px] px-[6px]","aria-label":"Paginacion",children:[(0,l.jsx)("button",{type:"button",onClick:()=>S(C-1),disabled:1===C,className:"size-10 rounded-[4px] flex items-center justify-center text-[#222222] disabled:opacity-40","aria-label":"Pagina anterior",children:(0,l.jsx)(M.B13,{className:"h-[22px] w-[22px]"})}),k.map((e,t)=>"ellipsis"===e?(0,l.jsx)("span",{className:"size-10 rounded-[4px] flex items-center justify-center text-[#222222] text-[22px] leading-none font-bold",children:"..."},"ellipsis-".concat(t)):(0,l.jsx)("button",{type:"button",onClick:()=>S(e),className:e===C?"size-10 rounded-[4px] bg-[#FF240C] text-white text-[14px] font-bold leading-[20px]":"size-10 rounded-[4px] text-[#222222] text-[14px] font-bold leading-[20px]","aria-current":e===C?"page":void 0,"aria-label":"Ir a pagina ".concat(e),children:e},e)),(0,l.jsx)("button",{type:"button",onClick:()=>S(C+1),disabled:C===y,className:"size-10 rounded-[4px] flex items-center justify-center text-[#222222] disabled:opacity-40","aria-label":"Pagina siguiente",children:(0,l.jsx)(M.YZI,{className:"h-[22px] w-[22px]"})})]})})]})},er=()=>(0,l.jsx)("section",{className:"bg-white md:bg-[#FAFAFA] min-h-96 md:h-[525px] w-full order-5 md:order-5 md:w-[60%] lg:w-[77%] flex flex-col items-center justify-center gap-4 px-6 py-3",children:(0,l.jsxs)("p",{className:"text-[#212529] text-center font-light",children:["Indica tu pa\xeds en el selector de la barra superior para ver las"," ",(0,l.jsx)("strong",{className:"font-bold",children:"tiendas online disponibles."})]})}),en=e=>{let{activeContent:t,brandFilterProps:a,distributors:s,meta:r,selectedCountry:n}=e;return"onlineStore"!==t?null:(0,l.jsxs)("div",{className:"hidden lg:container lg:block lg:pt-8 lg:pb-[72px]",children:[(0,l.jsx)(A,{}),(0,l.jsxs)("div",{className:"lg:flex",children:[(0,l.jsx)(J,{...a}),"la"===n?(0,l.jsx)(er,{}):(0,l.jsx)(es,{distributors:s,meta:r})]})]})},ei=e=>{let{activeContent:t,brandFilterProps:a,distributors:r,meta:n,selectedCountry:i}=e,[o,c]=(0,s.useState)(!1);return"onlineStore"!==t?null:(0,l.jsxs)("div",{className:"container flex flex-col gap-4 py-10 lg:hidden",children:[(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsxs)(N.$,{variant:"outline",onClick:()=>c(e=>!e),className:"w-full h-10 px-10 border-2 border-[#FF240C] flex items-center justify-center gap-2 uppercase",children:[(0,l.jsx)(d.ou6,{className:"h-4 w-4 text-[#FF240C]"}),(0,l.jsx)("span",{className:"text-[11px] font-black text-[#FF240C] ",children:o?"Ocultar filtros":"Mostrar filtros"})]})}),o&&(0,l.jsx)(J,{...a}),"la"===i?(0,l.jsx)(er,{}):(0,l.jsx)(es,{distributors:r,meta:n})]})},eo=["places"],ec=()=>{var e,t,a,c,d,g,b,N,C;let S=(0,r.c3)("shared.stores"),{selectedCountry:F}=(0,i.U)(),k=(e=>
1{let[t,a]=(0,s.useState)(x);return(0,s.useEffect)(()=>{let t=!1,l=()=>{var l;let s=null!=(l=p.y[e])?l:x;t||a(s)};return navigator.geolocation?(navigator.geolocation.getCurrentPosition(s=>{let r={lat:s.coords.latitude,lng:s.coords.longitude};new google.maps.Geocoder().geocode({location:r},(s,n)=>{if(t)return;if("OK"!==n||!(null==s?void 0:s.length))return void l();let i=s.flatMap(e=>e.address_components).find(e=>e.types.includes("country")),o=((null==i?void 0:i.short_name)||"").toLowerCase();if(o&&o===e)return void a(r);l()})},()=>l(),{enableHighAccuracy:!0,timeout:8e3,maximumAge:6e4}),()=>{t=!0}):void l()},[e]),t})(F),_=(()=>{let e=(0,m.useSearchParams)(),{checkedBrands:t,isBrandsFilterOpen:a,setIsBrandsFilterOpen:l,handleBrandItemChange:r,handleCheckAllBrands:n}=(0,h.p)(),[i,o]=(0,s.useState)(""),[c,d]=(0,s.useState)(""),[u,p]=(0,s.useState)([]),[x,f]=(0,s.useState)([]),[g,b]=(0,s.useState)(""),[v,w]=(0,s.useState)(null),[j,y]=(0,s.useState)("onlineStore"),N=(0,s.useMemo)(()=>[...t].sort((e,t)=>e.localeCompare(t)),[t]),C=N.join(","),S=(0,s.useMemo)(()=>[...u].sort((e,t)=>e.localeCompare(t)),[u]),F=S.join(","),k=(0,s.useMemo)(()=>[...x].sort((e,t)=>e.localeCompare(t)),[x]),_=k.join(","),P=!!v&&(i.trim().length>0||""!==g),L=e=>e?e.split(",").map(e=>e.trim()).filter(Boolean):[],A=e=>"consumidor"===e||"industria"===e||"construccion"===e;return(0,s.useEffect)(()=>{var t;let a=null!=(t=e.get("search"))?t:"",l=L(e.get("campaign")),s=L(e.get("segment")).filter(A);d(a),p(l),f(s)},[e]),{activeContent:j,setActiveContent:y,searchValue:i,setSearchValue:o,onlineSearchValue:c,setOnlineSearchValue:d,selectedProductSegments:x,setSelectedProductSegments:f,normalizedSelectedProductSegments:k,selectedProductSegmentsParam:_,citySelected:g,setCitySelected:b,selectedPlace:v,setSelectedPlace:w,checkedBrands:t,normalizedCheckedBrands:N,checkedBrandsParam:C,selectedCampaigns:u,normalizedSelectedCampaigns:S,selectedCampaignsParam:F,handleCampaignToggle:(e,t)=>{if(t)return void p(t=>t.includes(e)?t:[...t,e]);p(t=>t.filter(t=>t!==e))},clearCampaigns:()=>p([]),shouldUseCoords:P,isBrandsFilterOpen:a,setIsBrandsFilterOpen:l,handleBrandItemChange:r,handleCheckAllBrands:n,resetFilters:()=>{p([]);{let e=new URLSearchParams(window.location.search);e.delete("campaign");let t=e.toString(),a=t?"".concat(window.location.pathname,"?").concat(t.replace(/%2C/gi,",")):window.location.pathname;window.history.replaceState(null,"",a)}}}})(),[P,L]=(0,s.useState)("list"),[A,z]=(0,s.useState)(null),{isLoaded:R}=(0,n.KD)({id:"google-map-script",googleMapsApiKey:"AIzaSyDIw-V52uX2zH2IUybplqBNWH0Lx3XNNhU",libraries:eo}),{onlineDistributorsQuery:E,distributorsFiltersQuery:M,localDistributorsQuery:V}=(e=>{var t,a,l;let{normalizedSelectedProductSegments:s,selectedProductSegmentsParam:r,selectedCountry:n,activeContent:i,onlineSearchValue:o,normalizedCheckedBrands:c,checkedBrandsParam:d,normalizedSelectedCampaigns:u,selectedCampaignsParam:p,selectedPlace:x,shouldUseCoords:h,citySelected:g}=e,b=(0,m.useSearchParams)(),N=(0,y.U)("(max-width: 1024px)"),C=(0,j.A)(o,600),S=null!=(t=b.get("page"))?t:"1",F=r||void 0,k=(0,f.I)({queryKey:["distributors-online",s,n,C,S,c,u],queryFn:()=>w({code:n,segment:F,search:C||void 0,brand:d||void 0,campaign:p||void 0,page:S,limit:N?18:20}),enabled:"onlineStore"===i&&"la"!==n,placeholderData:e=>e});return{onlineDistributorsQuery:k,distributorsFiltersQuery:(0,f.I)({queryKey:["distributors-filters",s,n,i],queryFn:()=>"localSale"===i?v({code:n,segment:F}):w({code:n,segment:F}),placeholderData:e=>e}),localDistributorsQuery:(0,f.I)({queryKey:["distributors",s,n,C,h&&null!=(a=null==x?void 0:x.lat)?a:null,h&&null!=(l=null==x?void 0:x.lng)?l:null,g,c,u],queryFn:()=>v({code:n,search:C||void 0,segment:F,lat:h?null==x?void 0:x.lat:void 0,lng:h?null==x?void 0:x.lng:void 0,city:g,brand:d||void 0,campaign:p||void 0}),enabled:"localSale"===i,placeholderData:e=>e})}})({normalizedSelectedProductSegments:_.normalizedSelectedProductSegments,selectedProductSegmentsParam:_.selectedProductSegmentsParam,selectedCountry:F,activeContent:_.activeContent,onlineSearchValue:_.onlineSearchValue,normalizedCheckedBrands:_.normalizedCheckedBrands,checkedBrandsParam:_.checkedBrandsParam,normalizedSelectedCampaigns:_.normalizedSelectedCampaigns,selectedCampaignsParam:_.selectedCampaignsParam,selectedPlace:_.selectedPlace,shouldUseCo
1ords:_.shouldUseCoords,citySelected:_.citySelected}),B=e=>{z(e)},I=(0,s.useCallback)(()=>{z(null)},[]),U=()=>{L(e=>"list"===e?"map":"list")};if((0,s.useEffect)(()=>{"localSale"!==_.activeContent&&(L("list"),z(null))},[_.activeContent]),!R)return(0,l.jsx)(o.y,{});let q={items:(null==M||null==(e=M.data)?void 0:e.filters.brands)||[],campaigns:(null==M||null==(t=M.data)?void 0:t.filters.campaigns)||[],searchValue:_.onlineSearchValue,selectedProductSegments:_.selectedProductSegments,selectedCampaigns:_.selectedCampaigns,checkedItems:_.checkedBrands,isOpen:_.isBrandsFilterOpen,activeContent:_.activeContent,selectedCountry:F,onSearchValueChange:_.setOnlineSearchValue,onProductSegmentsApply:_.setSelectedProductSegments,onCampaignToggle:_.handleCampaignToggle,onClearCampaigns:_.clearCampaigns,onToggle:()=>_.setIsBrandsFilterOpen(e=>!e),onCheckAll:_.handleCheckAllBrands,onItemChange:_.handleBrandItemChange};return(0,l.jsxs)("section",{children:[(0,l.jsxs)("div",{className:"bg-[#222222] pt-10 px-4 md:px-0 flex flex-col gap-6 justify-center items-center text-center",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-1 items-center",children:[(0,l.jsx)("h1",{className:"text-white font-bold text-[28px] leading-[1.2] md:text-[32px]",children:S("title")}),(0,l.jsx)("p",{className:"text-[#CDCDCD] text-[16px] leading-[1.5] max-w-[320px] md:max-w-none",children:S("lead")})]}),(0,l.jsx)(u,{value:_.activeContent,onValueChange:e=>{"localSale"===e&&_.resetFilters(),_.setActiveContent(e)}})]}),(0,l.jsx)(G,{activeContent:_.activeContent,cities:(null==(a=V.data)?void 0:a.filters.cities)||[],searchValue:_.searchValue,citySelected:_.citySelected,onSearchValueChange:_.setSearchValue,onCitySelectedChange:_.setCitySelected,onSelectedPlaceChange:_.setSelectedPlace,view:P,mapLabel:S("view_map"),listLabel:S("view_list"),onToggle:U,distributorsLocal:(null==V||null==(c=V.data)?void 0:c.data)||[],distributorLocalSelected:A,onStoreClick:B,setView:L,currentPosition:k,selectedCountry:F,onCloseInfoWindow:I,brandFilterProps:q}),(0,l.jsx)(et,{activeContent:_.activeContent,view:P,mapLabel:S("view_map"),listLabel:S("view_list"),onToggle:U,distributorsLocal:(null==V||null==(d=V.data)?void 0:d.data)||[],distributorLocalSelected:A,onStoreClick:B,setView:L,currentPosition:k,selectedCountry:F,onCloseInfoWindow:I,brandFilterProps:q}),(0,l.jsx)(en,{activeContent:_.activeContent,brandFilterProps:q,distributors:(null==(g=E.data)?void 0:g.data)||[],meta:null==(b=E.data)?void 0:b.meta,selectedCountry:F}),(0,l.jsx)(ei,{activeContent:_.activeContent,brandFilterProps:q,distributors:(null==(N=E.data)?void 0:N.data)||[],meta:null==(C=E.data)?void 0:C.meta,selectedCountry:F})]})}},64269:(e,t,a)=>{"use strict";a.d(t,{cn:()=>r});var l=a(2821),s=a(75889);function r(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,s.QP)((0,l.$)(t))}},65142:(e,t,a)=>{"use strict";a.d(t,{p:()=>o});var l=a(95155),s=a(12115),r=a(83101),n=a(64269);let i=(0,r.F)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",{variants:{variant:{default:"",borderRed:"bg-white border-0 border-b-2 border-[#EEE] focus:border-b-[#FF240C] focus:border-b-2 focus:caret-[#FF240C] placeholder:text-[#EEE] text-black",floating:"peer pt-6 pb-2 px-4 h-14 bg-[#F5F5F5] border-0 border-b-[1px] border-[#00000099] font-light text-[#000000DE] focus:border-b-[#FF240C] focus:bg-[#E6E6E6] focus:border-b-2 focus:caret-[#FF240C] rounded-t-[5px] overflow-hidden"}},defaultVariants:{variant:"default"}}),o=s.forwardRef((e,t)=>{let{className:a,variant:s,type:r,label:o,error:c,...d}=e;return"floating"===s?(0,l.jsxs)("div",{className:"relative h-14 ",children:[(0,l.jsx)("input",{type:r,className:(0,n.cn)(i({variant:s,className:a})),ref:t,placeholder:" ",...d}),o&&(0,l.jsx)("label",{className:"absolute left-3 text-xs font-light transition-all top-2\n peer-placeholder-shown:top-4 peer-placeholder-shown:text-base\n peer-focus:top-2 peer-focus:text-xs peer-focus:text-[#FF240C] pointer-events-none ".concat(c?"text-[#F44336]":"text-[#00000099]"),children:o})]}):(0,l.jsx)("input",{type:r,className:(0,n.cn)(i({variant:s,className:a})),ref:t,...d})});o.displayName="Input"},73457:(e,t,a)=>{"use strict";a.d(t,{S:()=>d});var l=a(95155),s=a(12115),r=a(33206),n=a(5917),i=a(83101),o=a(64269);let c=(0,i.F)("peer h-4 w-4 shrink-0 rounded-sm border ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",{variants:{variant:{default:"border-black",outlineRed:"border-black border-2 data-[state=checked]:text-[#FF240C] mr-1 md:mr-2",redBg:"relative cursor-pointer shadow hover:shadow-md transition-all before:absolute before:top-2/4 before:left-2/4 before:block before:h-10 before:w-10 before:-translate-y-2/4 before:-translate-x-2/4 before:rounded-full before:bg-[#FF240C] before:opacity-0 before:transition-opacity hover:before:opacity-10 checked:bg-[#FF240C] mr-1 md:mr-2 data-[state=checked]:bg-[#FF240C] data-[state=checked]:text-white",contactPink:"relative cursor-pointer transition-all h-[18px] w-[18px] rounded-[3px] border-2 border-[#0000008A] data-[state=checked]:bg-[#FF4081] data-[state=checked]:border-[#FF4081] data-[state=checked]:text-white before:absolute before:top-2/4 before:left-2/4 before:block before:h-10 before:w-10 before:-translate-y-2/4 before:-translate-x-2/4 before:rounded-full before:bg-[#ff40db] before:opacity-0 before:transition-opacity hover:before:opacity-10"}},defaultVariants:{variant:"default"}}),d=s.forwardRef((e,t)=>
1{let{className:a,variant:s,...i}=e;return(0,l.jsx)(r.bL,{ref:t,className:(0,o.cn)(c({variant:s,className:a})),...i,children:(0,l.jsx)(r.C1,{className:(0,o.cn)("flex items-center justify-center text-current"),children:(0,l.jsx)(n.A,{className:"h-3 w-4 stroke-[4]"})})})});d.displayName=r.bL.displayName},80155:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var l=a(12115);let s=function(e,t){let[a,s]=(0,l.useState)(e);return(0,l.useEffect)(()=>{let a=setTimeout(()=>{s(e)},t);return()=>{clearTimeout(a)}},[e,t]),a}},83011:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return s}});let l=a(12115);function s(e,t){let a=(0,l.useRef)(null),s=(0,l.useRef)(null);return(0,l.useCallback)(l=>{if(null===l){let e=a.current;e&&(a.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(a.current=r(e,l)),t&&(s.current=r(t,l))},[e,t])}function r(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let a=e(t);return"function"==typeof a?a:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93048:(e,t,a)=>{"use strict";a.d(t,{U:()=>s});var l=a(12115);function s(e){let t=e=>window.matchMedia(e).matches,[a,s]=(0,l.useState)(t(e));function r(){s(t(e))}return(0,l.useEffect)(()=>{let t=window.matchMedia(e);return r(),t.addListener?t.addListener(r):t.addEventListener("change",r),()=>{t.removeListener?t.removeListener(r):t.removeEventListener("change",r)}},[e]),a}},95273:(e,t,a)=>{Promise.resolve().then(a.bind(a,61247))}}]);
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.