PageSourceSearch

https://bromovil.com/_next/static/chunks/pages/cambiate-a-bromovil-db93406576e12fd6.js

js bromovil.com collected 2026-10-02 22:35:00 UTC 17,394 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8687],{32545:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/cambiate-a-bromovil",function(){return n(6276)}])},76698:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var o=n(99391),r=function(e){return{type:o.V.setTheme,payload:e}}},72412:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var o=n(72006),r=n(4637),a=n(59496),i=n(4405),l=(0,n(72327).Z)({"@keyframes onAutoFillStart":{from:{},to:{}},mainContainer:function(){return{display:"flex",flexDirection:"column",height:"80px",justifyContent:"flex-start",marginTop:"10px",position:"relative"}},mainContainerAlt:function(){return{display:"flex",flexDirection:"column",justifyContent:"flex-start",marginTop:"10px",position:"relative"}},inputContainer:function(e){var t=e.themeMode,n=e.colors,r=e.stateColor,a=e.backgrounds;return(0,i.Z)((0,o.Z)({alignItems:"center",border:"1.20385px solid",borderColor:r,borderRadius:"9.02885px",display:"flex",height:"54px",justifyContent:"space-between",padding:"16px",position:"relative",backgroundColor:n.white},"dark"===t&&{backgroundColor:a.darkModeBg,borderColor:r}),{"& input":(0,i.Z)((0,o.Z)({border:"none",width:"90%"},"dark"===t&&{color:n.white,backgroundColor:a.darkModeBg}),{"&:-webkit-autofill":{animationName:"$onAutoFillStart",animationDuration:"0.001s"}})})},label:function(e){var t=e.themeMode,n=e.colors,r=e.stateColor,a=e.backgrounds;return(0,o.Z)({background:n.white,color:r,height:"18px",fontSize:"12px",fontStyle:"normal",fontWeight:"300",left:"15px",padding:"0 10px",position:"absolute",textAlign:"center",top:"-10px",width:"fit-content",zIndex:"1"},"dark"===t&&{backgroundColor:a.darkModeBg,color:r})},helper:function(e){return{bottom:"0",color:e.stateColor,fontSize:"12px",fontStyle:"normal",fontWeight:"300",height:"20px",left:"0px",lineHeight:"18px",position:"absolute"}},placesList:function(e){var t=e.themeMode,n=e.colors,r=e.backgrounds;return(0,o.Z)({boxShadow:"0px 2px 7px 1px rgba(0,0,0,0.23)",borderRadius:"0px 0px 12px 12px",listStyleType:"none",padding:"10px 10px",background:n.white,zIndex:"1"},"dark"===t&&{backgroundColor:r.darkModeBg,"& label":{color:n.white}})},placeOption:function(e){return{cursor:"pointer",margin:"10px 5px","& p":{color:e.colors.lead},"&:hover":{borderBottom:"1px solid rgba(0,0,0,0.23)"}}}}),s=n(170),c=n(58795),u=n(47921),d=n(67793),p=n.n(d),m=function(e){var t=e.standarInput,n=void 0===t||t,i=e.tabindex,d=void 0===i?"0":i,m=e.testId,f=void 0===m?"":m,g=e.value,x=void 0===g?null:g,h=e.type,b=e.name,v=e.placeholder,w=e.helperText,y=e.icon,k=e.maxLength,C=e.optional,j=void 0!==C&&C,S=e.customValidation,I=void 0!==S&&S,N=e.externalTrigger,Z=void 0!==N&&N,M=e.externalState,T=e.onChange,E=e.autoComplete,O=e.handleComplete,A=e.tabSection,_=void 0!==A&&A,P=e.onTabAction,F=e.disabled,D=void 0!==F&&F,B=e.showSpinner,L=void 0!==B&&B,R=e.tittle,z=e.onlyThisMonth,V=e.disableAutoComplete,W=void 0!==V&&V,G=(0,u.v9)((function(e){return e.config})).mode,J=(0,a.useState)("resting"),H=J[0],q=J[1],X=(0,a.useState)(!1),Y=X[0],Q=X[1],$=(0,a.useRef)(null),K=["@gmail.com","@hotmail.com","@yahoo.com","@outlook.com"];(0,a.useEffect)((function(){"dark"===G&&q("restingStep")}),[G]);var U=l({stateColor:s.d.palette.states[H],colors:s.d.palette.primary,components:s.d.palette.components,backgrounds:s.d.palette.background,themeMode:G}),ee="error"===H,te=function(e){var t=e.target;""!==t.value||j?""===t.value&&j?q("resting"):q(I?"error":"success"):q("error")};(0,a.useEffect)((function(){Z&&(x&&te({target:{value:x}}))}),[Z,I,x]),(0,a.useEffect)((function(){q(M),"success"===M&&Q(!0)}),[M]),(0,a.useEffect)((function(){var e=$.current;if(e){var t=function(){e.value!==x&&T({target:{name:b,value:e.value}})};return e.addEventListener("animationstart",t),function(){return e.removeEventListener("animationstart",t)}}}),[b,x,T]),(0,a.useEffect)((function(){_&&document.getElementsByName(b)[0].addEventListener("keydown",(function(e){"Tab"===e.key&&P()}))}),[_]);return(0,r.jsxs)("div",{className:n?U.mainContainer:U.mainContainerAlt,children:[Y&&(0,r.jsx)("label",{className:U.label,children:R}),(0,r.jsxs)("div",{className:U.inputContainer,children:[(0,r.jsx)("input",(0,o.Z)({ref:$,"data-testid":f,tabIndex:d,value:null!==x&&void 0!==x?x:"",type:h,name:b,disabled:D,placeholder:v,onChange:T,onInput:T,maxLength:k,onFocus:function(){Q(!0),q("default")},onBlur:te},z&&{min:function(){var e=new Date;return new Date(e.getFullYear(),e.getMonth(),1).toISOString().split("T")[0]}(),max:function(){var e=new Date;return new Date(e.getFullYear(),e.getMonth()+1,0).toISOString().split("T")[0]}()},W&&{autocomplete:"off"})),L&&(0,r.jsx)("span",{className:"spinner-border spinner-border-sm"}),y&&!L&&(0,r.jsx)(c.Z,{iconName:y})]}),w&&ee&&(0,r.jsx)("p",{className:U.helper,children:w}),"email"===b&&null!==x&&!p().isEmail(x)&&!(!x.includes("@")||K.some((function(e){return x.includes(e)})))&&(0,r.jsx)("ul",{className:U.placesList,children:K.map((function(e,t){return(0,r.jsx)("li",{className:U.placeOption,onClick:function(){return function(e){var t=x.split("@");E("email",t[0]+e),Q(!0),q("success"),O()}(e)},children:(0,r.jsx)("label",{children:e})},t)}))})]})}},6276:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return O}});var o=n(57135),r=n(15767),a=n(4637),i=n(59496),l=n(9597),s=n(47921),c=n(76698),u=n(17735),d=n(170),p=n(57389),m=n(72006),f=n(4405),g=n(72327),x=(0,g.Z)((function(e){return{main:function(t){var n=t.themeMode,o=t.backgrounds;return(0,f.Z)((0,m.Z)({marginTop:"25px",marginBottom:"25px",display:"flex",padding:"0px 232px",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"26px",backgroundColor:o.lightModeBg},"dark"===n&&{backgroundColor:o.darkModeBg}),(0,p.Z)({},e.breakpoints.down("md"),{display:"flex",padding:"0px 18px",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",ga
1p:"26px"}))}}})),h=function(e){var t=e.themeMode,n=e.mode,o=void 0===n?"top":n,r=x({backgrounds:d.d.palette.background,themeMode:t});return(0,a.jsx)(i.Fragment,{children:(0,a.jsx)("div",{className:r.main,children:(0,a.jsx)("img",{src:{top:{imageFull:"/images/marketing/full-top.jpg",imageMobile:"/images/marketing/res-top.jpg"},bottom:{imageFull:"/images/marketing/general-bottom.png",imageMobile:"/images/marketing/general-bottom.png"}}[o][screen.width>767?"imageFull":"imageMobile"]})})})},b=(0,g.Z)((function(e){return{main:function(t){var n=t.themeMode,o=t.backgrounds;return(0,f.Z)((0,m.Z)({display:"flex",padding:"0px 232px",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"26px",backgroundColor:o.lightModeBg},"dark"===n&&{backgroundColor:o.darkModeBg}),(0,p.Z)({},e.breakpoints.down("md"),{display:"flex",padding:"0px 18px",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",gap:"26px"}))},content:function(){return{display:"flex",padding:"10px 0px",flexDirection:"column",alignItems:"flex-start",gap:"32px",alignSelf:"stretch"}},textContent:function(){return{marginTop:"30px",width:"100%",display:"flex",flexDirection:"column",alignItems:"center",gap:"16px"}},purple:function(e){return{color:e.colors.purple}},title:function(t){var n=t.themeMode,o=t.texts,r=t.colors;return(0,f.Z)((0,m.Z)({color:o.navGray,fontFamily:"Poppins",fontSize:"38px",lineHeight:"122.5%",textAlign:"center"},"dark"===n&&{color:r.white}),(0,p.Z)({},e.breakpoints.down("md"),{fontSize:"25px"}))},contactsContent:function(){return(0,p.Z)({width:"100%",display:"flex",justifyContent:"space-around"},e.breakpoints.down("md"),{gap:"20px",flexDirection:"column"})},contactItem:function(t){var n=t.themeMode,o=t.colors;return(0,f.Z)((0,m.Z)({padding:"20px",borderRadius:"50px",border:"1px solid "+o.gray,display:"flex",alignItems:"center",gap:"5px",boxShadow:"0px 4px 17px -2px rgba(0,0,0,0.75)",WebkitBoxShadow:"0px 4px 17px -2px rgba(0,0,0,0.75)",MozBoxShadow:"0px 4px 17px -2px rgba(0,0,0,0.75)",cursor:"pointer"},"dark"===n&&{border:"1px solid "+o.white}),(0,p.Z)({},e.breakpoints.down("md"),{justifyContent:"center"}))},titleContact:function(t){var n=t.colors;return(0,p.Z)({textAlign:"center",color:n.purple,fontSize:"25px",fontStyle:"bold",fontWeight:600},e.breakpoints.down("md"),{fontSize:"15px"})},circlePurple:function(e){return{backgroundColor:e.colors.purple,width:"45px",height:"45px",display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"30px"}},circleGreen:function(e){return{backgroundColor:e.colors.greenMid,width:"45px",height:"45px",display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"30px"}},whiteIcon:function(e){return{color:e.colors.white}}}})),v=n(59072),w=(0,g.Z)((function(e){return{box:function(){return{width:"25px",height:"25px"}},color:function(e){return{color:e.colors.blue+" !important"}},modalFade:function(){return{height:"100% !important"}},extra:function(){return{marginTop:"30px"}}}})),y=n(70815),k=n(55808),C=n(12497),j=n(72412),S=n(62596),I=n(85176),N=n.n(I),Z=n(99182),M=function(e){var t=e.themeMode,n=e.showModal,l=void 0!==n&&n,s=e.onClose,c=(0,i.useState)(""),u=c[0],p=c[1],m=(0,i.useState)(""),f=m[0],g=m[1],x=(0,i.useState)(""),h=x[0],b=x[1],I=(0,i.useState)(!1),M=I[0],T=I[1],E=(0,i.useState)(!1),O=E[0],A=E[1],_=(0,v.Z)(function(){var e=(0,i.useRef)(null);return[(0,i.useCallback)((function(t){e.current=t,e.current&&e.current.scrollIntoView({})}),[])]}(),1),P=_[0],F=w({colors:d.d.palette.primary,themeMode:t}),D=function(){var e=(0,o.Z)((function(){var e;return(0,r.__generator)(this,(function(t){switch(t.label){case 0:return[4,Z.wk.httpsCallable("contact-save")({fullname:u,phonenumber:f})];case 1:return(e=t.sent()).data.success?(A(!1),p(""),g(""),b(""),T(!1),s(),[2,N().fire({position:"center",icon:"success",title:"\xc9xito",text:"Se envi\xf3 el formulario correctamente"})]):(A(!1),[2,N().fire({position:"center",icon:"warning",title:"Aviso",text:e.data.message})])}}))}));return function(){return e.apply(this,arguments)}}();return(0,a.jsxs)(y.Z,{isOpen:l,centered:!0,backdropClassName:F.modalFade,contentClassName:F.extra,toggle:function(){return s()},children:[(0,a.jsx)("div",{ref:P}
1),(0,a.jsx)(k.Z,{children:"Nosotros te marcamos"}),(0,a.jsxs)(C.Z,{children:[(0,a.jsx)(j.Z,{value:u,type:"text",name:"fullname",placeholder:"Nombre completo",onChange:function(e){return p(e.target.value)}}),(0,a.jsx)(j.Z,{value:f,type:"tel",name:"phonenumber",placeholder:"Tel\xe9fono de contacto",onChange:function(e){return g(e.target.value)}}),(0,a.jsx)(j.Z,{value:h,type:"tel",name:"phonenumberConfirm",placeholder:"Confirmar Tel\xe9fono de contacto",onChange:function(e){return b(e.target.value)}}),(0,a.jsxs)("label",{children:[(0,a.jsx)("input",{type:"checkbox",id:"cbox",className:F.box,checked:M,onChange:function(){return T(!M)}})," He le\xeddo, entendido y considero al uso de mis datos personales conforme al ",(0,a.jsx)("a",{className:F.color,href:"https://firebasestorage.googleapis.com/v0/b/bromovil.appspot.com/o/%22lading_footer%22%2FAVISO%20DE%20PRIVACIDAD%20INTEGRAL%20BROMOVIL%202024.pdf?alt=media&token=23056860-335b-4ad9-bffc-de848816f8cd",children:"Aviso de Privacidad"})]}),(0,a.jsx)(S.Z,{disabled:O,name:"next",text:"Quiero que me llamen",onClick:function(){return A(!0),u?f?f.includes("52")||isNaN(f)||10!==f.length?(A(!1),N().fire({position:"center",icon:"warning",title:"Aviso",text:"El formato del tel\xe9fono es incorrecto"})):h?f!==h?(A(!1),N().fire({position:"center",icon:"warning",title:"Aviso",text:"Los n\xfameros telef\xf3nicos ingresados no coinciden"})):M?void D():(A(!1),N().fire({position:"center",icon:"warning",title:"Aviso",text:"Falta checkear el aviso de privacidad"})):(A(!1),N().fire({position:"center",icon:"warning",title:"Aviso",text:"Falta ingresar la confirmacion de n\xfamero telef\xf3nico"})):(A(!1),N().fire({position:"center",icon:"warning",title:"Aviso",text:"Falta ingresar n\xfamero telef\xf3nico"})):(A(!1),N().fire({position:"center",icon:"warning",title:"Aviso",text:"Falta ingresar nombre"}))}})]})]})},T=n(78090),E=function(e){var t=e.themeMode,n=(0,i.useState)([]),o=n[0],r=n[1],l=(0,i.useState)(!1),s=l[0],c=l[1],u=b({colors:d.d.palette.primary,texts:d.d.palette.texts,components:d.d.palette.components,backgrounds:d.d.palette.background,themeMode:t});return(0,i.useEffect)((function(){Z.db.collection("plans").where("mkt-site","==",!0).where("isSupplementary","==",!1).where("isPre","==",!0).where("planType","==","MOV").get().then((function(e){setTimeout((function(){var t=e.docs.map((function(e){return e.data()}));r(t)}),50)}))}),[]),(0,a.jsxs)(i.Fragment,{children:[(0,a.jsx)(M,{themeMode:t,showModal:s,onClose:function(){return c(!1)}}),(0,a.jsx)("div",{className:u.main,children:(0,a.jsxs)("div",{className:u.content,children:[(0,a.jsx)("div",{className:u.textContent,children:(0,a.jsxs)("h4",{className:u.title,children:["Compra en l\xednea tu ",(0,a.jsx)("span",{className:u.purple,children:"SIM BROMOVIL"})," y rec\xedbela en tu domicilio"]})}),o.length>0&&(0,a.jsx)(T.Z,{themeMode:t,testId:"pending",enableLowPrice:!0,hideDiscount:!0,plans:o}),(0,a.jsx)("div",{className:u.textContent,children:(0,a.jsx)("h4",{className:u.title,children:"\xbfNecesitas ayuda? Con gusto te apoyamos."})}),(0,a.jsxs)("div",{className:u.contactsContent,children:[(0,a.jsx)("a",{href:"https://wa.me/525568278695",children:(0,a.jsxs)("div",{className:u.contactItem,children:[(0,a.jsx)("span",{className:u.titleContact,children:"Compra desde"}),(0,a.jsx)("div",{className:u.circleGreen,children:(0,a.jsx)("i",{className:"bx bxl-whatsapp bx-md ".concat(u.whiteIcon)})}),(0,a.jsx)("span",{className:u.titleContact,children:"WhatsApp"})]})}),(0,a.jsxs)("div",{className:u.contactItem,onClick:function(){return c(!0)},children:[(0,a.jsx)("div",{className:u.circlePurple,children:(0,a.jsx)("i",{className:"bx bx-phone bx-md ".concat(u.whiteIcon)})}),(0,a.jsx)("span",{className:u.titleContact,children:"Nosotros te marcamos"})]})]})]})})]})},O=function(){var e=(0,s.I0)(),t=(0,s.v9)((function(e){return e.config})).mode,n=(0,l.useRouter)().query.codigo;return(0,i.useEffect)((function(){function t(){return(t=(0,o.Z)((function(){var t;return(0,r.__generator)(this,(function(o){switch(o.label){case 0:return[4,(0,u.g)(n)];case 1:return(t=o.sent())&&e((0,c.l)(t)),[2]}}))}))).apply(this,arguments)}!function(){t.apply(this,arguments)}()}),[]),(0,a.jsxs)(i.Fragment,{children:[(0,a.jsx)(h,{themeMode:t}),(0,a.jsx)(E,{themeMode:t}),(0,a.jsx)(h,{themeMode:t,mode:"bottom"})]})}},17735:function(e,t,n){"use strict";n.d(t,{g:function(){return l}});var o=n(57135),r=n(15767),a=n(99182),i=n(11723),l=function(){var e=(0,o.Z)((function(e){var t,n;return(0,r.__generator)(this,(function(o){switch(o.label){case 0:return!localStorage.getItem("landingTheme")||e?[3,2]:(n=JSON.parse(localStorage.getItem("landingTheme")),[4,s(n)]);case 1:case 3:return t=o.sent(),u(t),[2,t];case 2:return e&&"bromovil"!==e?[4,s(e)]:[3,4];case 4:return[4,c()];case 5:return[2,t=o.sent()];case 6:return[2]}}
1))}));return function(t){return e.apply(this,arguments)}}(),s=function(){var e=(0,o.Z)((function(e){var t,n,o,i;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:return t="",[4,a.db.collection("themes").where("themeOf","==",e).where("deleted","==",!1).get()];case 1:return n=r.sent().docs,[4,a.db.collection("coupons").where("code","==",e).get()];case 2:return o=r.sent().docs,n.length>0?(t=n[0].data(),localStorage.setItem("landingTheme",JSON.stringify(t.themeOf)),o.length>0?(i=o[0].data(),localStorage.setItem("code",e),i.landingPlans&&i.landingPlans.length>=0?localStorage.setItem("landingPlans",JSON.stringify(i.landingPlans)):localStorage.removeItem("landingPlans")):(localStorage.removeItem("code"),localStorage.removeItem("landingPlans")),[3,7]):[3,3];case 3:return o.length>0?[4,c()]:[3,5];case 4:return t=r.sent(),localStorage.setItem("code",e),localStorage.removeItem("landingPlans"),[3,7];case 5:return[4,c()];case 6:t=r.sent(),localStorage.removeItem("code"),localStorage.removeItem("landingPlans"),r.label=7;case 7:return[2,t]}}))}));return function(t){return e.apply(this,arguments)}}(),c=function(){var e=(0,o.Z)((function(){var e,t;return(0,r.__generator)(this,(function(n){switch(n.label){case 0:return e="",[4,a.db.collection("themes").where("themeOf","==","bromovil").get()];case 1:return(t=n.sent().docs).length>0?(e=t[0].data(),localStorage.setItem("landingTheme",JSON.stringify(e.themeOf))):localStorage.removeItem("landingTheme"),[2,e]}}))}));return function(){return e.apply(this,arguments)}}(),u=function(e){delete e.deleted,delete e.dashBoardImg,delete e.themeName,Object.keys(e).forEach((function(t){var n=e[t];if("colors"===t)for(var o in n)""===n[o]&&(n[o]=i.wE.colors[o]);else if("themeOf"!==t)for(var r in n)for(var a in n[r])for(var l in n[r][a])""===n[r][a][l]&&(n.hasOwnProperty("postPlans")||n.hasOwnProperty("prePlans")?n[r][a][l]=i.wE.plans[r][a][l]:n.hasOwnProperty("slider")?n[r][a][l]=i.wE.home[r][a][l]:n[r][a][l]=i.wE[r][a][l])}))}},59072:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var o=n(45421);var r=n(27319);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||(0,o.Z)(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}}},function(e){e.O(0,[3145,7793,2392,8090,9774,2888,179],(function(){return t=32545,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.