1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[804],{4287:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/compensa-aqui/mp10",function(){return s(8677)}])},4544:(e,t,s)=>{"use strict";s.d(t,{T:()=>a});var r=s(7876);s(4232);let a=e=>{let{...t}=e;return(0,r.jsx)("textarea",{className:"mt-2 w-full resize-none rounded-lg bg-[#E3E1E180] bg-opacity-50 px-7 py-3 text-white placeholder-white",...t})}},5515:(e,t,s)=>{"use strict";s.d(t,{_:()=>n});var r=s(7876),a=s(9810);let n=e=>{let{placeholder:t="Seleccione un cerro",setSelected:s,options:n}=e;return(0,r.jsx)(a.Ay,{placeholder:t,components:{IndicatorSeparator:()=>null},onChange:s,options:n,styles:{control:(e,t)=>({...e,background:"rgba(227, 225, 225, 0.5)",whiteSpace:"nowrap",padding:"6px 10px 6px 16px",width:"100%",border:0,borderRadius:"0.5rem",color:"#fff",outline:"none",boxShadow:(t.isFocused,0),"&:hover":{border:(t.isFocused,0)}}),placeholder:e=>({...e,color:"#fff"}),singleValue:(e,t)=>({...e,color:"#fff"}),input:e=>({...e,color:"#fff","input:focus":{boxShadow:"none","&:hover":{boxShadow:"none"}},"input:active":{borderColor:"red"}}),menuList:e=>({...e,borderRadius:"10px",background:"#E3E1E1"}),menu:e=>({...e,borderRadius:"10px",background:"#E3E1E1"}),option:(e,t)=>({...e,backgroundColor:t.isSelected?"#66666526":"#E3E1E1",color:e.isSelected?"#fff":"#666665","&:hover":{background:"#66666526"}})}})}},8677:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>T});var r=s(7876),a=s(9710),n=s(5536),l=s(7854),o=s(4544),i=s(8395),c=s(6474),d=s(6176),m=s(4683),x=s(9394),h=s(2813),p=s(2569),u=s(5772),b=s(7700),g=s(5034),C=s(16),j=s(4356),f=s(6488),y=s(8519),v=s(3607),N=s(4232);let w=[{date:"2021-12-27"},{date:"2021-12-28"},{date:"2021-12-29"},{date:"2021-12-30"},{date:"2021-12-31"},{date:"2022-01-01",isCurrentMonth:!0},{date:"2022-01-02",isCurrentMonth:!0},{date:"2022-01-03",isCurrentMonth:!0},{date:"2022-01-04",isCurrentMonth:!0},{date:"2022-01-05",isCurrentMonth:!0},{date:"2022-01-06",isCurrentMonth:!0},{date:"2022-01-07",isCurrentMonth:!0},{date:"2022-01-08",isCurrentMonth:!0},{date:"2022-01-09",isCurrentMonth:!0},{date:"2022-01-10",isCurrentMonth:!0},{date:"2022-01-11",isCurrentMonth:!0},{date:"2022-01-12",isCurrentMonth:!0,isToday:!0},{date:"2022-01-13",isCurrentMonth:!0},{date:"2022-01-14",isCurrentMonth:!0},{date:"2022-01-15",isCurrentMonth:!0},{date:"2022-01-16",isCurrentMonth:!0},{date:"2022-01-17",isCurrentMonth:!0},{date:"2022-01-18",isCurrentMonth:!0},{date:"2022-01-19",isCurrentMonth:!0},{date:"2022-01-20",isCurrentMonth:!0},{date:"2022-01-21",isCurrentMonth:!0},{date:"2022-01-22",isCurrentMonth:!0,isSelected:!0},{date:"2022-01-23",isCurrentMonth:!0},{date:"2022-01-24",isCurrentMonth:!0},{date:"2022-01-25",isCurrentMonth:!0},{date:"2022-01-26",isCurrentMonth:!0},{date:"2022-01-27",isCurrentMonth:!0},{date:"2022-01-28",isCurrentMonth:!0},{date:"2022-01-29",isCurrentMonth:!0},{date:"2022-01-30",isCurrentMonth:!0},{date:"2022-01-31",isCurrentMonth:!0},{date:"2022-02-01"},{date:"2022-02-02"},{date:"2022-02-03"},{date:"2022-02-04"},{date:"2022-02-05"},{date:"2022-02-06"}];function _(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return t.filter(Boolean).join(" ")}function M(e){let{selectedDay:t,setSelectedDay:s}=e,a=(0,d.A)(),[n,l]=(0,N.useState)((0,m.A)(a,"MMM/yyyy",{weekStartsOn:1})),o=(0,x.A)(n,"MMM/yyyy",new Date),M=(0,h.A)({start:(0,p.A)(o),end:(0,u.A)((0,b.A)(o))});function D(){let e=(0,g.A)(o,{months:-1});l((0,m.A)(e,"MMM/yyyy"))}function F(){let e=(0,g.A)(o,{months:1});l((0,m.A)(e,"MMM/yyyy"))}return(0,r.jsxs)("div",{className:"rounded-3xl border-2 border-white px-1 pb-4 pt-3 text-center",children:[(0,r.jsxs)("div",{className:"grid grid-cols-3 border-b-2 pb-3",children:[(0,r.jsxs)("div",{className:"cursor-pointer text-sm font-semibold text-white opacity-70 md:text-base",onClick:()=>D(),children:[(0,r.jsx)("p",{className:"capitalize",children:(0,m.A)((0,g.A)(o,{months:-1}),"MMM",{locale:v.A})}),(0,r.jsx)("p",{children:(0,m.A)((0,g.A)(o,{months:-1}),"yyyy",{locale:v.A})})]}),(0,r.jsxs)("div",{className:"grid grid-cols-3 place-items-center",children:[(0,r.jsxs)("button",{onClick:()=>D(),type:"button",className:"-m-1.5 mr-8 flex flex-none items-center justify-center text-white hover:text-gray-500",children:[(0,r.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,r.jsx)(i.A,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,r.jsxs)("div",{className:"flex-1 text-sm font-semibold text-white md:text-base",children:[(0,r.jsx)("p",{className:"capitalize",children:(0,m.A)(o,"MMMM",{locale:v.A})}
1),(0,r.jsx)("p",{children:(0,m.A)(o,"yyyy",{locale:v.A})})]}),(0,r.jsxs)("button",{onClick:()=>F(),type:"button",className:"-m-1.5 ml-8 flex flex-none items-center justify-center text-white hover:text-gray-500",children:[(0,r.jsx)("span",{className:"sr-only",children:"Next month"}),(0,r.jsx)(c.A,{className:"h-5 w-5","aria-hidden":"true"})]})]}),(0,r.jsxs)("div",{className:"cursor-pointer text-sm font-semibold text-white opacity-70 md:text-base",onClick:()=>F(),children:[(0,r.jsx)("p",{className:"capitalize",children:(0,m.A)((0,g.A)(o,{months:1}),"MMM",{locale:v.A})}),(0,r.jsx)("p",{children:(0,m.A)((0,g.A)(o,{months:1}),"yyyy",{locale:v.A})})]})]}),(0,r.jsxs)("div",{className:"mt-5 grid grid-cols-7 text-xs font-bold leading-6 text-white md:text-base lg:mx-3",children:[(0,r.jsx)("div",{children:"Dom"}),(0,r.jsx)("div",{children:"Lun"}),(0,r.jsx)("div",{children:"Mar"}),(0,r.jsx)("div",{children:"Mie"}),(0,r.jsx)("div",{children:"Jue"}),(0,r.jsx)("div",{children:"Vie"}),(0,r.jsx)("div",{children:"Sab"})]}),(0,r.jsx)("div",{className:"isolate mt-2 grid grid-cols-7 gap-px rounded-lg text-xs md:text-base lg:mx-3",children:M.map((e,n)=>{var l;return(0,r.jsx)("button",{onClick:()=>{s(e)},type:"button",className:_("py-0.5 focus:z-10",0===n&&null!=(l=A[(0,C.A)(e)])?l:"",(0,j.A)(e,a)?"bg-transparent":"",(0,f.A)(e,t)||(0,y.A)(a)?"font-semibold":"",(0,f.A)(e,t)?"text-[#37575B]":"",!(0,f.A)(e,t)&&(0,j.A)(e,o)&&!(0,y.A)(e)?"text-white":"",(0,f.A)(e,t)||(0,j.A)(e,o)||(0,y.A)(e)?"":"pointer-events-none text-white opacity-30",(0,y.A)(a)&&!(0,f.A)(e,t)?"text-white":"",0===n?"rounded-tl-lg":"",6===n?"rounded-tr-lg":"",n===w.length-7?"rounded-bl-lg":"",n===w.length-1?"rounded-br-lg":""),children:(0,r.jsx)("time",{dateTime:(0,m.A)(e,"dd/MM/yyyy"),className:_("mx-auto flex h-7 w-7 items-center justify-center rounded-full",(0,f.A)(e,t)&&(0,y.A)(a)?"bg-[#DDCC2D] ":"",(0,f.A)(e,t)&&!(0,y.A)(a)?"bg-[#DDCC2D]":""),children:(0,m.A)(e,"d")})},e.toString())})})]})}let A=["","col-start-2","col-start-3","col-start-4","col-start-5","col-start-6","col-start-7"];var D=s(7763),F=s(7568),k=s(1992),S=s(9099),E=s(9027),L=s(5515);let H=()=>{let e=(0,d.A)(),[t,s]=(0,N.useState)([]),[a,n]=(0,N.useState)(),l=async()=>(await F.A.get("api/cerros")).data,{isLoading:o}=(0,k.useQuery)(["Cerros"],()=>l(),{onSuccess:e=>{s(e.map(e=>({label:e.nombre_cerro,value:e.id})))}}),[i,c]=(0,N.useState)({modal_success:!1,step:1,cerro_id:{label:"Seleccione cerro",value:""},tiempo:"",toneladas_mp10:"",fecha_inicio:e,resolucion_rca:"",documento:null,nombre_empresa:"",rut:"",nombre_proyecto:"",descripcion_proyecto:"",comentario:"",fecha_reunion:e,hora:""}),m=async()=>{let e=(await F.A.get("/api/auth/profile")).data;n(e),"Titular de la compensaci\xf3n"===e.tipo_usuario&&c(t=>({...t,nombre_empresa:e.nombre_empresa,rut:e.rut_empresa}))};function x(e,t){c(s=>({...s,[e]:t}))}return(0,N.useEffect)(()=>{m()},[]),(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("section",{className:"min-h-[calc(100vh-710px)] bg-[linear-gradient(180deg,rgba(0,0,0,0.35)100%,rgba(55,87,91,0)60%,rgba(255,255,255,1)),url('../assets/images/backgrounds/mp10/1.jpg')] bg-cover bg-top px-4 pb-12 pt-1 md:px-9 lg:px-28 xl:pb-24",children:[(0,r.jsxs)("h2",{className:"-mt-8 text-center text-2xl text-[#37575B] lg:-mt-16 lg:text-6xl",children:["Formulario ",(0,r.jsx)("strong",{children:"compensaci\xf3n MP10"})]}),(0,r.jsxs)("div",{className:"mt-7 flex items-center justify-center lg:mt-14",children:[i.step>=2?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"grid h-4 w-4 place-items-center rounded-full border-2 border-[#fff] bg-[#37575B]",children:(0,r.jsx)(E.vK,{})}),(0,r.jsx)("div",{className:"h-2 w-11 ".concat(i.step>=2?"bg-[#DDCC2D]":"bg-white bg-opacity-40")})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"h-4 w-4 rounded-full border-2 bg-[#DDCC2D]"}),(0,r.jsx)("div",{className:"h-2 w-11 bg-white bg-opacity-40"})]}),(0,r.jsx)(r.Fragment,{children:2===i.step?(0,r.jsx)("div",{className:"h-4 w-4 rounded-full border-2 bg-[#DDCC2D]"}):i.step>2?(0,r.jsx)("div",{className:"grid h-4 w-4 place-items-center rounded-full border-2 border-[#fff] bg-[#37575B]",children:(0,r.jsx)(E.vK,{})}):(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"h-4 w-4 roun
1ded-full border-2 bg-[#BFBEBE]"})})}),(0,r.jsx)(r.Fragment,{children:3===i.step?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"h-2 w-11 bg-[#DDCC2D]"}),(0,r.jsx)("div",{className:"h-4 w-4 rounded-full border-2 bg-[#DDCC2D]"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"h-2 w-11 bg-white bg-opacity-40"}),(0,r.jsx)("div",{className:"h-4 w-4 rounded-full border-2 bg-[#BFBEBE]"})]})})]}),o?"Loading...":(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"mx-auto mt-12 max-w-[900px] rounded-3xl bg-white bg-opacity-20 px-7 pb-9 pt-11 text-white backdrop-blur-xl xl:px-9",children:[1===i.step&&(0,r.jsx)(B,{state:i,setState:x,setForm:c,cerros:t}),2===i.step&&(0,r.jsx)(V,{state:i,setForm:c,profile:a}),3===i.step&&(0,r.jsx)(Z,{state:i,setState:x,setForm:c})]}),(0,r.jsx)("div",{className:"mx-auto -mb-2 h-2 w-36 rounded-b-lg bg-[#DDCC2D]"})]})]})})},B=e=>{let{state:t,setState:s,setForm:a,cerros:o}=e,i="Seleccione cerro"===t.cerro_id.label||""===t.tiempo||""===t.toneladas_mp10||""===t.resolucion_rca||null===t.documento;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex justify-between",children:(0,r.jsx)("p",{className:"text-2xl",children:(0,r.jsx)("strong",{children:"Datos de compensaci\xf3n"})})}),(0,r.jsx)("hr",{className:"mb-5 mt-7"}),(0,r.jsxs)("form",{children:[(0,r.jsxs)("div",{className:"grid-cols-3 gap-x-6 gap-y-5 lg:grid",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"mt-4 block lg:mt-0",children:"Tiempo (Duraci\xf3n)*"}),(0,r.jsx)(n.p,{placeholder:"Ingrese a\xf1os",value:t.tiempo,onChange:e=>{(/^[0-9]*\.?[0-9]*$/.test(e.target.value)||""===e.target.value)&&a(t=>({...t,tiempo:e.target.value}))}})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"mt-4 block lg:mt-0",children:"Toneladas MP10*"}),(0,r.jsx)(n.p,{placeholder:"Ingrese toneladas",value:t.toneladas_mp10,onChange:e=>{(/^[0-9]*\.?[0-9]*$/.test(e.target.value)||""===e.target.value)&&a(t=>({...t,toneladas_mp10:e.target.value}))}})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"mt-4 block lg:mt-0",children:"Fecha estimada de inicio*"}),(0,r.jsxs)(D.A,{className:"relative",children:[(0,r.jsx)(D.A.Button,{className:"w-full",children:(0,r.jsx)(n.p,{value:String((0,m.A)(t.fecha_inicio,"dd/MM/yyyy")),onChange:()=>null})}),(0,r.jsx)(D.A.Panel,{className:"absolute z-10 mt-1 rounded-3xl bg-[#666665]",children:(0,r.jsx)(M,{selectedDay:t.fecha_inicio,setSelectedDay:function(e){a(t=>({...t,fecha_inicio:e}))}})})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"mt-4 block lg:mt-0 mb-2",children:"Cerro de preferencia*"}),(0,r.jsx)(L._,{setSelected:e=>{a(t=>({...t,cerro_id:e}))},options:o})]}),(0,r.jsxs)("div",{className:"",children:[(0,r.jsx)("label",{className:"mt-4 block lg:mt-0",children:"Resoluci\xf3n RCA*"}),(0,r.jsx)(n.p,{placeholder:"N\xfamero de resoluci\xf3n",value:t.resolucion_rca,onChange:e=>a(t=>({...t,resolucion_rca:e.target.value}))})]}),(0,r.jsxs)("div",{className:"mt-6 flex items-center justify-between",children:[(0,r.jsx)("input",{className:"hidden",type:"file",id:"doc_rca_file",name:"avatar",accept:".pdf",onChange:e=>a(t=>({...t,documento:e.target.files}))}),(0,r.jsxs)("label",{htmlFor:"doc_rca_file",className:"mr-2 flex max-h-[50px] min-h-[50px] flex-none cursor-pointer items-center rounded-full bg-gradient-to-b from-[#F5F5CF] from-[177%] to-[#FFF] to-[109%] px-5 text-xl font-medium leading-5 text-[#8A8A81] md:px-3",children:[(0,r.jsx)("svg",{className:"mr-3",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M21 10.9989C21.553 10.9989 22 11.4469 22 11.9989L22 15.9989C22 18.7559 19.757 20.9989 17 20.9989L7 20.9989C4.243 20.9989 2 18.7559 2 15.9989L2 11.9989C2 11.4469 2.447 10.9989 3 10.9989C3.553 10.9989 4 11.4469 4 11.9989L4 15.9989C4 17.6529 5.346 18.9989 7 18.9989L17 18.9989C18.654 18.9989 20 17.6529 20 15.9989L20 11.9989C20 11.4469 20.447 10.9989 21 10.9989ZM12.382 3.07691C12.138 2.97591 11.862 2.97591 11.618 3.07691C11.495 3.12791 11.385 3.20092 11.292 3.29392L7.29297 7.29291C6.90197 7.68391 6.90197 8.31591 7.29297 8.70691C7.68397 9.09791 8.31603 9.09791 8.70703 8.70691L11 6.41391L11 13.9999C11 14.5519 11.447 14.9999 12 14.9999C12.553 14.9999 13 14.5
1519 13 13.9999L13 6.41391L15.293 8.70691C15.684 9.09791 16.316 9.09791 16.707 8.70691C16.902 8.51191 17 8.25591 17 7.99991C17 7.74391 16.902 7.48791 16.707 7.29291L12.708 3.29392C12.615 3.20092 12.505 3.12691 12.382 3.07691Z",fill:"#8A8A81"})}),(0,r.jsx)("span",{className:"lg:hidden",children:"Subir doc."}),(0,r.jsx)("span",{className:"hidden lg:block",children:"Subir documento"})]}),t.documento&&(0,r.jsx)("button",{onClick:()=>s("documento",null),className:"grid h-12 max-h-[50px] min-h-[50px] w-12 flex-none place-items-center rounded-full bg-gradient-to-b from-[#F5F5CF] from-[177%] to-[#FFF] to-[109%] text-xl font-medium leading-5 text-[#8A8A81]",children:(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M21 5H17.441C17.01 5 16.629 4.72602 16.492 4.31702L16.176 3.36694C15.903 2.54994 15.14 2 14.279 2H9.71997C8.85797 2 8.095 2.55004 7.823 3.36804L7.50702 4.31604C7.37102 4.72504 6.98898 5 6.55798 5H3C2.448 5 2 5.447 2 6C2 6.553 2.448 7 3 7H4.065L4.81598 18.266C4.95498 20.36 6.70801 22 8.80701 22H15.194C17.293 22 19.046 20.359 19.185 18.266L19.936 7H21C21.552 7 22 6.553 22 6C22 5.447 21.552 5 21 5ZM9.72101 4L14.28 3.99902L14.596 4.94897C14.602 4.96697 14.611 4.982 14.618 5H9.38397C9.38997 4.982 9.40001 4.966 9.40601 4.948L9.72101 4ZM17.189 18.1331C17.119 19.1801 16.243 20 15.193 20H8.80603C7.75703 20 6.88 19.1801 6.81 18.1331L6.06897 7H6.55902C6.66602 7 6.77098 6.98598 6.87598 6.97498C6.91898 6.98098 6.95598 7 7.00098 7H17.001C17.045 7 17.083 6.97998 17.126 6.97498C17.231 6.98598 17.335 7 17.443 7H17.933L17.189 18.1331ZM15 11V16C15 16.553 14.552 17 14 17C13.448 17 13 16.553 13 16V11C13 10.447 13.448 10 14 10C14.552 10 15 10.447 15 11ZM11 11V16C11 16.553 10.552 17 10 17C9.448 17 9 16.553 9 16V11C9 10.447 9.448 10 10 10C10.552 10 11 10.447 11 11Z",fill:"#8A8A81"})})})]})]}),(0,r.jsx)("div",{className:"mx-auto mt-7 w-40 lg:mt-12",children:(0,r.jsx)(l.$,{intent:i?"disabled":"primary",size:"large",onClick:()=>{i||a(e=>({...e,step:2}))},children:"Confirmar"})})]})]})},V=e=>{let{state:t,setForm:s,profile:a}=e,i=""===t.nombre_empresa||""===t.rut||""===t.nombre_proyecto||""===t.descripcion_proyecto,{mutate:c,isLoading:d}=(e=>{let t=async e=>{let{data:t}=await F.A.post("".concat("https://api.cerrosisla.cl/","api/postulacion"),e);return t},s=async e=>{await F.A.post("api/upload/",e)},{mutate:r,isLoading:a,isError:n}=(0,k.useMutation)(t,{onSuccess:async t=>{let r=e[0],a=new FormData;a.append("id_postulacion",t.id),a.append("file",r),a.append("fecha",(0,m.A)(new Date,"yyyy-MM-dd")),a.append("status","Disponible"),await s(a)},onError:e=>{console.log("\uD83D\uDE80 ~ CreatePostMP10 ~ error:",e)}});return{mutate:r,isLoading:a,isError:n}})(t.documento);async function x(){if(i||d)return;let e={cerro_id:t.cerro_id.value},r={tiempo:t.tiempo,toneladas_mp10:t.toneladas_mp10,fecha_inicio:t.fecha_inicio,resolucion_rca:t.resolucion_rca},a={nombre_empresa:t.nombre_empresa,rut:t.rut,nombre_proyecto:t.nombre_proyecto,descripcion_proyecto:t.descripcion_proyecto,comentario:t.comentario,hora:t.hora||"",fecha_reunion:t.fecha_reunion||""};try{c({postulacion:e,mp10:r,antecedentes:a});let n={subject:"Agendamiento ".concat(t.nombre_proyecto,", ").concat(t.nombre_empresa),html:"\n Nombre proyecto: ".concat(t.nombre_proyecto,",<br/>\n Empresa: ").concat(t.nombre_empresa,",<br/>\n Rut: ").concat(t.rut,",<br/><br/>\n "),text:"\n Nombre proyecto: ".concat(t.nombre_proyecto,",\n Empresa: ").concat(t.nombre_empresa,",\n Rut: ").concat(t.rut,"\n ")};await F.A.post("api/email",n),s(e=>({...e,modal_success:!0,step:3}))}catch(e){console.log("\uD83D\uDE80 ~ error:",e)}}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex justify-between",children:(0,r.jsx)("p",{className:"text-2xl",children:(0,r.jsx)("strong",{children:"Datos de compensaci\xf3n"})})}),(0,r.jsx)("hr",{className:"mb-5 mt-7"}),(0,r.jsxs)("div",{className:"mt-8 grid-cols-4 justify-evenly rounded-3xl border-2 border-[#DDCC2D] py-5 lg:grid lg:py-0",children:[(0,r.jsxs)("div",{className:"border-b-2 border-[#DDCC2D] px-7 pb-5 lg:border-b-0 lg:border-r-2 lg:pt-5",children:[(0,r.jsx)("p",{className:"font-bold",children:"Toneladas MP10"}),(0,r.jsxs)("p",{className:"text-xs",children:[t.toneladas_mp10," tonelada(s)"]})]}),(0,r.jsxs)("div",{className:"border-b-2 border-[#DDCC2D] px-7 py-5 lg:border-b-0 lg:border-r-2",children:[(0,r.jsx)("p",{className:"font-bold",children:"Tiempo (Duraci\xf3n)"}),(0,r.jsxs)("p",{className:"text-xs",children:[t.tiempo," a\xf1o(s)"]})]}),(0,r.jsxs)("div",{className:"border-b-2 border-[#DDCC2D] px-7 py-5 lg:border-b-0 lg:border-r-2",children:[(0,r.jsx)("p",{className:"font-bold",children:"Fecha estimada de inicio"}),(0,r.jsx)("p",{className:"text-xs",children:(0,m.A)(t.fecha_inicio,"dd/MM/yyyy")})]}),(0,r.jsxs)("div",{className:"px-7 pt-5",children:[(0,r.jsx)("p",{className:"font-bold",children:"Cerro seleccionado"}),(0,r.jsx)("p",{className:"text-xs",children:t.cerro_id.label})]})]}),(0,r.jsx)("div",{className:"mt-12 flex justify-between",children:(0,r.jsx)("p",{className:"text-2xl",children:(0,r.jsx)("strong",{children:"Informaci\xf3n empresa titular de la compensaci\xf3n"})})}),(0,r.jsx)("hr",{className:"mb-5 mt-7"}),(0,r.jsxs)("form",{children:[(0,r.jsxs)("div",{className:"grid-cols-2 gap-x-10 gap-y-5 lg:grid",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{children:"Nombre empresa*"}),(0,r.jsx)(n.p,{value:t.nombre_empresa,onChange:e=>{(null==a?void 0:a.tipo_usuario)!=="Titular de la compensaci\xf3n"&&s(t=>({...t,nombre_empresa:e.target.value}))}})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"mt-4 block lg:mt-0",children:"RUT*"}
1),(0,r.jsx)(n.p,{value:t.rut,onChange:e=>{(null==a?void 0:a.tipo_usuario)!=="Titular de la compensaci\xf3n"&&(/^[-0-9kK]+$/.test(e.target.value)||""===e.target.value)&&s(t=>({...t,rut:e.target.value}))}})]})]}),(0,r.jsxs)("div",{className:"mt-4",children:[(0,r.jsx)("label",{className:"mt-4 block lg:mt-0",children:"Nombre del proyecto de compesaci\xf3n*"}),(0,r.jsx)(n.p,{onChange:e=>s(t=>({...t,nombre_proyecto:e.target.value}))})]}),(0,r.jsxs)("div",{className:"mt-4",children:[(0,r.jsx)("label",{className:"mt-4 block lg:mt-0",children:"Descripci\xf3n del proyecto (breve)*"}),(0,r.jsx)(o.T,{onChange:e=>s(t=>({...t,descripcion_proyecto:e.target.value}))})]}),(0,r.jsxs)("div",{className:"mt-4",children:[(0,r.jsx)("label",{className:"mt-4 block",children:"Comentario"}),(0,r.jsx)(o.T,{onChange:e=>s(t=>({...t,comentario:e.target.value}))})]}),(0,r.jsx)("div",{className:"mx-auto mt-7 w-40 lg:mt-12",children:(0,r.jsx)(l.$,{intent:i?"disabled":"primary",onClick:x,size:"large",children:"Enviar"})})]})]})},Z=e=>{let{state:t,setForm:s}=e,a=(0,S.useRouter)(),n="https://calendar.app.google/FcGRvvwmFWQbFVw69",[o,i]=(0,N.useState)(!1);return(0,N.useEffect)(()=>{o||(i(!0),window.open(n,"_blank"))},[o]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex justify-between",children:(0,r.jsx)("p",{className:"text-2xl",children:(0,r.jsx)("strong",{children:"Propuesta enviada exitosamente"})})}),(0,r.jsx)("hr",{className:"mb-5 mt-7"}),(0,r.jsxs)("div",{className:"flex items-center justify-center lg:px-16",children:[(0,r.jsxs)("svg",{className:"flex-none",xmlns:"http://www.w3.org/2000/svg",width:"114",height:"114",viewBox:"0 0 114 114",fill:"none",children:[(0,r.jsx)("path",{d:"M80.75 14.25C80.75 11.6233 78.622 9.5 76 9.5C73.378 9.5 71.25 11.6233 71.25 14.25H42.75C42.75 11.6233 40.622 9.5 38 9.5C35.378 9.5 33.25 11.6233 33.25 14.25C20.1542 14.25 9.5 24.9042 9.5 38V80.75C9.5 93.8457 20.1542 104.5 33.25 104.5H80.75C93.8457 104.5 104.5 93.8457 104.5 80.75V38C104.5 24.9042 93.8457 14.25 80.75 14.25ZM33.25 23.75V28.5C33.25 31.1267 35.378 33.25 38 33.25C40.622 33.25 42.75 31.1267 42.75 28.5V23.75H71.25V28.5C71.25 31.1267 73.378 33.25 76 33.25C78.622 33.25 80.75 31.1267 80.75 28.5V23.75C88.6065 23.75 95 30.1435 95 38H19C19 30.1435 25.3935 23.75 33.25 23.75ZM80.75 95H33.25C25.3935 95 19 88.6065 19 80.75V47.5H95V80.75C95 88.6065 88.6065 95 80.75 95ZM80.75 61.75C80.75 64.372 78.622 66.5 76 66.5C73.378 66.5 71.25 64.372 71.25 61.75C71.25 59.128 73.378 57 76 57C78.622 57 80.75 59.128 80.75 61.75ZM61.75 61.75C61.75 64.372 59.622 66.5 57 66.5C54.378 66.5 52.25 64.372 52.25 61.75C52.25 59.128 54.378 57 57 57C59.622 57 61.75 59.128 61.75 61.75ZM42.75 61.75C42.75 64.372 40.622 66.5 38 66.5C35.378 66.5 33.25 64.372 33.25 61.75C33.25 59.128 35.378 57 38 57C40.622 57 42.75 59.128 42.75 61.75ZM80.75 80.75C80.75 83.372 78.622 85.5 76 85.5C73.378 85.5 71.25 83.372 71.25 80.75C71.25 78.128 73.378 76 76 76C78.622 76 80.75 78.128 80.75 80.75ZM61.75 80.75C61.75 83.372 59.622 85.5 57 85.5C54.378 85.5 52.25 83.372 52.25 80.75C52.25 78.128 54.378 76 57 76C59.622 76 61.75 78.128 61.75 80.75ZM42.75 80.75C42.75 83.372 40.622 85.5 38 85.5C35.378 85.5 33.25 83.372 33.25 80.75C33.25 78.128 35.378 76 38 76C40.622 76 42.75 78.128 42.75 80.75Z",fill:"url(#paint0_linear_2311_157405)"}),(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"paint0_linear_2311_157405",x1:"57",y1:"9.5",x2:"57",y2:"104.5",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"white"}),(0,r.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0.28"})]})})]}),(0,r.jsx)("p",{className:"lg:text-2xl text-[#FCFCFC] font-bold ml-4",children:"Para agendar reuni\xf3n revisa nuestros horarios disponibles en Calendly"})]}),(0,r.jsxs)("div",{className:"mt-6 lg:mt-10 flex flex-col lg:flex-row items-center text-center justify-center",children:[(0,r.jsx)("span",{className:"lg:text-xl",children:"Si no se abre una ventana nueva, haz click"}),(0,r.jsx)("div",{className:"w-[100px] lg:ml-4 mt-4 lg:mt-0",children:(0,r.jsx)(l.$,{intent:"secondary",onClick:()=>window.open(n,"_blank"),children:"aqu\xed"})})]}),(0,r.jsx)("div",{className:"mx-auto mt-10 max-w-[195px] items-center gap-8 space-y-7 lg:flex lg:max-w-[500px] lg:flex-row-reverse lg:space-y-0",children:(0,r.jsx)("button",{className:"max-h-[50px] max-w-[200px] mx-auto min-h-[50px] w-full rounded-full border-2 border-[#F5F5CF] px-5 text-xl font-medium leading-5",onClick:async()=>await a.push("/panel"),children:"Volver"})})]})};
1H.getLayout=function(e){return(0,r.jsx)(a.P,{noSolidBg:!0,children:e})};let T=H}},e=>{e.O(0,[47,810,448,710,27,636,593,792],()=>e(e.s=4287)),_N_E=e.O()}]);
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.