PageSourceSearch

https://www.emergencias.com.ar/_next/static/chunks/192-b19f41090daa82ba.js

js emergencias.com.ar collected 2026-09-25 19:59:45 UTC 8,669 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[192],{5101:function(e,t,n){var a=n(2729),l=n(5893);n(7294);var r=n(6829),i=n(2734),o=n(8385),s=n(1123);function _templateObject(){let e=(0,a._)(["\n    width: fit-content;\n    padding: 0 20px;\n    height: 60px;\n    right: 12px;\n    bottom: 12px;\n    position: fixed;\n    display: flex;\n    gap: 6px;\n    align-items: center;\n    justify-content: center;\n    background-color: ",';\n    z-index: 9999;\n    border-radius: 100px;\n    color: #fff;\n    border: 2px solid #fff;\n    box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.3);        \n    cursor: pointer;\n    opacity: .9;\n    transition: 0.2s all ease-in;\n    &:hover{\n        opacity: 1;\n        box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3);\n    }\n    /* &:hover::after {\n        content: "\xa1Llamanos!";\n    }\n    &::after {\n        content: "\xbfConsultas?";\n    }     */\n']);return _templateObject=function(){return e},e}t.Z=e=>{let t=(0,i.Z)();return(0,l.jsx)(l.Fragment,{children:"undefined"!=typeof document&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(o.h,{container:document.getElementById("portal"),children:(0,l.jsx)("a",{href:"tel:".concat(e.tel),target:"_blank",rel:"noopener noreferrer",children:(0,l.jsxs)(d,{color:t.palette.other02.main,tel:e.tel,children:[(0,l.jsx)(s.Z,{})," ",(0,l.jsx)("span",{children:e.tel})]})})})})})};let d=r.Z.div(_templateObject(),e=>e.color)},1798:function(e,t,n){n.d(t,{Z:function(){return components_FormularioOrganizaciones}});var a=n(5893),l=n(7294),r=n(2729),i=n(6829);function _templateObject(){let e=(0,r._)(["\n    width: 100%;\n    padding: 40px 20px;\n    background: #fafafa;\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,r._)(["\n    color: #727272;\n    margin-bottom: 12px;\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,r._)(["\n    width: 100%;\n    margin: auto;\n    max-width: 800px;\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,r._)(["\n    display: flex;\n    justify-content: flex-end;\n"]);return _templateObject3=function(){return e},e}let o=i.Z.div(_templateObject()),s=i.Z.h3(_templateObject1()),d=i.Z.form(_templateObject2()),c=i.Z.div(_templateObject3());var m=n(5820),h=n(7762),templates_FormularioOrganizaciones=e=>{let{data:t}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{style:{width:"100%",margin:0,padding:"0 !important",lineHeight:"100%",backgroundColor:"#fff"},children:(0,a.jsx)("div",{style:{maxWidth:"600px",margin:"0 auto"},className:"email-container",children:(0,a.jsxs)("table",{align:"center",role:"presentation",cellSpacing:"0",cellPadding:"0",border:"0",width:"100%",style:{margin:"auto"},children:[(0,a.jsx)("tr",{children:(0,a.jsx)("td",{valign:"top",className:"bg_white",style:{padding:"1em 2.5em 0 2.5em"},children:(0,a.jsx)("table",{role:"presentation",border:"0",cellPadding:"0",cellSpacing:"0",width:"100%",children:(0,a.jsx)("tr",{children:(0,a.jsx)("td",{className:"logo",style:{textAlign:"left"},children:(0,a.jsx)("img",{src:"".concat("https://www.emergencias.com.ar","/img/meta-1200x627.jpg"),alt:"Logo",width:"100%"})})})})})}),(0,a.jsx)("tr",{children:(0,a.jsx)("td",{valign:"middle",className:"hero bg_white",style:{padding:"2em 0 2em 0"},children:(0,a.jsx)("table",{role:"presentation",border:"0",cellPadding:"0",cellSpacing:"0",width:"100%",children:(0,a.jsx)("tr",{children:(0,a.jsx)("td",{style:{padding:"0 2.5em",textAlign:"left"},children:(0,a.jsxs)("div",{className:"text",children:[(0,a.jsx)("h2",{children:t.subject}),(0,a.jsxs)("p",{children:["Nombre y apellido: ",t.fullName]}),(0,a.jsxs)("p",{children:["Empresa: ",t.company]}),(0,a.jsxs)("p",{children:["Email: ",t.email]}),(0,a.jsxs)("p",{children:["Tel\xe9fono: ",t.phone]}),(0,a.jsxs)("p",{children:["Cantidad de empleados: ",t.employeesLength]}),(0,a.jsxs)("p",{children:["Comentarios: ",t.comments]})]})})})})})})]})})})})},FormularioOrganizaciones_useHook=()=>{let[e,t]=(0,l.useState)(!0),[n,r]=(0,l.useState)(!1),[i,o]=(0,l.useState)(""),[s,d]=(0,l.useState)(""),[c,p]=(0,l.useState)(""),[x,u]=(0,l.useState)(""),[g,j]=(0,l.useState)(""),[f,b]=(0,l.useState)(""),[v,y]=(0,l.useState)(!0),[_,Z]=(0,l.useState)(!1),[O,w]=(0,l.useState)(""),handleEmail=async e=>{p(e),y((0,m.oH)(e))},cleanForm=()=>{o(""),d(""),p(""),u(""),j(""),b("")},handleSubmit=async e=>{e.preventDefault(),r(!0);let t=(0,h.Dq)((0,a.jsx)(templates_FormularioOrganizaciones,{data:{subject:"Mensaje recibido mediante formulario de Organizaciones",fullName:i,company:s,email:c,phone:x,employeesLength:g,comments:f}}));try{let e=await fetch("".concat("https://www.emergencias.com.ar","/api/email/send-email"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({subject:"Mensaje recibido mediante formulario de Organizaciones",template:t})});(await e.json()).id&&(r(!0),cleanForm(),Z(!0),w("\xa1Mensaje enviado correctamente!"))}catch(e){console.log("Error",e),Z(!0),w("Ocurri\xf3 un problema inesperado.")}r(!1)};return(0,l.useEffect)(()=>{t((0,m.tq)())},[]),{mobile:e,loading:n,handleSubmit,fullName:i,setFullName:o,company:s,setCompany:d,email:c,handleEmail,emailIsValid:v,phone:x,setPhone:u,employeesLength:g,setEmployeesLength:j,comments:f,setComments:b,employeesItems:["De 1 a 15","De 16 a 50","De 51 a 100","M\xe1s de 100"],showSnackbar:_,setShowSnackbar:Z,snackbarMessage:O}},p=n(6886),x=n(1903),u=n(4054),g=n(3841),j=n(315),f=n(9840),b=n(9417),v=n(8385),y=n(8703),components_FormularioOrganizaciones=()=>{let{mobile:e,loading:t,handleSubmit:n,fullName:l,setFullName:r,company:i,setCompany:m,email:h,handleEmail:_,emailIsValid:Z,phone:O,setPhone:w,employeesLength:S,setEmployeesLength:C,comments:E,setComments:N,employeesItems:P,showSnackbar:F,setShowSnackbar:k,snackbarMessage:z}=FormularioOrganizaciones_useHook();return(0,a.jsxs)(o,{children:[(0,a.jsx)(d,{onSubmit:n,children:(0,a.jsxs)(p.ZP,{container:!0,spacing:3,children:[(0,a.jsx)(p.ZP,{item:!0,xs:12,children:(0,a.jsx)(s,{children:"Complet\xe1 tus datos y nos contactaremos con vos."})}),(0,a.jsx)(p.ZP,{item:!0,xs:12,md:6,children:(0,a.jsx)(x.Z,{fullWidth:!0,id:"fullName",label:"Nombre y apellido",variant:"outlined",type:"text",required:!0,value:l||"",onChange:e=>r(e.target.value),error:l.length<2&&l.length>0,helperText:l.length<2&&l.length>0&&"Ingresar un nombre v\xe1lido"})}),(0,a.jsx)(p.ZP,{item:!0,xs:12,md:6,children:(0,a.jsx)(x.Z,{fullWidth:!0,id:"company",label:"Empresa",variant:"outlined",type:"text",required:!0,value:i||"",onChange:e=>m(e.target.value),error:i.length<2&&i.length>0,helperText:i.length<2&&i.length>0&&"Ingresar un nombre v\xe1lido"})}),(0,a.jsx)(p.ZP,{item:!0,xs:12,md:12,children:(0,a.jsx)(x.Z,{fullWidth:!0,id:"email",label:"Email",variant:"outlined",type:"email",required:!0,value:h||"",onChange:e=>_(e.target.value),error:!Z,helperText:!Z&&"Ingresar un email v\xe1lido"})}),(0,a.jsx)(p.ZP,{item:!0,xs:12,md:6,children:(0,a.jsx)(x.Z,{fullWidth:!0,id:"phone",label:"Tel\xe9fono",variant:"outlined",type:"tel",required:!0,value:O||"",onChange:e=>w(e.target.value),error:O.length<4&&O.length>0,helperText:O.length<4&&O.length>0&&"Ingresar un tel\xe9fono v\xe1lido"})}),(0,a.jsx)(p.ZP,{item:!0,xs:12,md:6,children:(0,a.jsxs)(u.Z,{fullWidth:!0,required:!0,children:[(0,a.jsx)(g.Z,{id:"employeesLength",children:"Cantidad de empleados"}),(0,a.jsxs)(j.Z,{labelId:"employeesLength",id:"employeesLength",value:S,label:"Cantidad de empleados",onChange:e=>C(e.target.value),children:[(0,a.jsx)(f.Z,{value:"",disabled:!0,selected:!0,children:"Seleccionar"}),null==P?void 0:P.map(e=>(0,a.jsx)(f.Z,{value:e,children:e},e))]})]})}),(0,a.jsx)(p.ZP,{item:!0,xs:12,md:12,children:(0,a.jsx)(x.Z,{fullWidth:!0,id:"comments",label:"Comentarios",variant:"outlined",type:"text",rows:4,multiline:!0,required:!0,value:E||"",onChange:e=>N(e.target.value),error:E.length<1&&E.length>0,helperText:E.length<1&&E.length>0&&"Ingresar un comentario"})}),(0,a.jsx)(p.ZP,{item:!0,xs:12,md:12,children:(0,a.jsx)(c,{children:(0,a.jsx)(b.Z,{type:"submit",variant:"contained",color:"secondary",style:{borderRadius:"100px",width:"100%",maxWidth:"300px",textTransform:"inherit",padding:"12px 34px",color:"#fff"},disabled:t,children:"Enviar"})})})]})}),"undefined"!=typeof document&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(v.h,{container:document.getElementById("portal"),children:(0,a.jsx)(y.Z,{open:F,autoHideDuration:4e3,message:z,onClose:()=>k(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"}})})})]})}}}]);

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.