1import{b as te,p as re}from"./chunk-Q5B3BLJC.js";import"./chunk-RJSAQQJR.js";import"./chunk-DJY7TLQR.js";import"./chunk-DCQ6K7MS.js";import"./chunk-6XIRPTFG.js";import"./chunk-CDN6YX5H.js";import"./chunk-HJ4QCVAO.js";import"./chunk-D3F2YJ7V.js";import"./chunk-TBB5A4RC.js";import"./chunk-2AGFAF2T.js";import"./chunk-7RHLFJDC.js";import{b as Q,c as K,f as $,j as X,k as Y,l as Z,s as ee}from"./chunk-QLVBULEA.js";import"./chunk-2VMYDSIC.js";import"./chunk-DNIVSGA6.js";import{a as ae}from"./chunk-DMKEOHTA.js";import{k as J}from"./chunk-YCP52F36.js";import{g as H,j as T}from"./chunk-FHDYJKXC.js";import{$b as z,Ab as B,Cb as O,Ja as s,Ka as t,Kb as j,La as n,Ma as g,Qa as I,Ra as M,Ta as w,Va as x,Xa as d,Zb as A,_b as U,bb as W,ca as k,e as L,eb as b,fb as l,gb as u,ha as i,hb as R,i as D,ib as V,ic as q,lb as h,mb as C,mc as G,nb as E,pa as F,pb as y,r as _,s as v,ua as N,yb as P,za as f}from"./chunk-DBXDUEE4.js";import"./chunk-TAAAIZHL.js";import{e as ie}from"./chunk-EQDQRRRY.js";var S=ie(ae());var ne=(()=>{class r{http;apiUrl=`${T.API_URL_RESTAURANT}/reportError`;constructor(e){this.http=e}getReportsByUserId(e){return this.http.get(`${this.apiUrl}/user/${e}`)}sendReport(e){return this.http.post(`${this.apiUrl}`,e)}static \u0275fac=function(a){return new(a||r)(D(H))};static \u0275prov=L({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function se(r,p){if(r&1){let e=w();t(0,"button",46),x("click",function(){let o=_(e).$implicit,m=d();return v(m.selectCategory(o.key))}),g(1,"i",47),t(2,"span",48),l(3),n()()}if(r&2){let e=p.$implicit,a=d();s("ngClass",a.form.category===e.key?"border-green-500 bg-green-50 text-green-700":"border-gray-200 text-gray-600 hover:border-gray-300"),i(),b(y("fa-solid ",e.icon," text-base shrink-0")),s("ngClass",a.form.category===e.key?"text-green-600":"text-gray-400"),i(2),u(e.label)}}function de(r,p){if(r&1){let e=w();t(0,"button",49),x("click",function(){let o=_(e).$implicit,m=d();return v(m.selectSeverity(o.key))}),t(1,"span",50),g(2,"span"),l(3),n(),t(4,"span",51),l(5),n()()}if(r&2){let e=p.$implicit,a=d();s("ngClass",a.form.severity===e.key?"border-green-500 bg-green-50":"border-gray-200 hover:border-gray-300"),i(2),b(y("w-2.5 h-2.5 rounded-full ",e.dot)),i(),u(e.label),i(2),u(e.desc)}}function pe(r,p){if(r&1&&(t(0,"option",52),l(1),n()),r&2){let e=p.$implicit;s("value",e),i(),u(e)}}function ce(r,p){if(r&1){let e=w();t(0,"label",53),g(1,"i",54),t(2,"span",55),l(3,"Toca para subir una imagen \xB7 m\xE1x 5 MB"),n(),t(4,"input",56),x("change",function(o){_(e);let m=d();return v(m.onImageSelected(o))}),n()()}}function me(r,p){if(r&1){let e=w();t(0,"div",57),g(1,"img",58),t(2,"button",59),x("click",function(){_(e);let o=d();return v(o.removeImage())}),g(3,"i",60),n()()}if(r&2){let e=d();i(),s("src",e.imagePreview,k)}}function ge(r,p){r&1&&(t(0,"div",61),g(1,"i",62),n())}function ue(r,p){if(r&1&&(t(0,"span"),l(1),n()),r&2){let e=d().$implicit,a=d(3);b(y("text-[10px] font-black px-2 py-0.5 rounded-full border ",a.severityMeta(e.severity).chip)),i(),u(a.severityMeta(e.severity).label)}}function fe(r,p){if(r&1&&(t(0,"span"),l(1),n()),r&2){let e=d().$implicit;i(),R(" \xB7 ",e.module)}}function xe(r,p){if(r&1){let e=w();t(0,"button",66),x("click",function(){let o=_(e).$implicit,m=d(3);return v(m.openDetail(o))}),t(1,"div",67),g(2,"i"),n(),t(3,"div",68)(4,"div",69)(5,"span",70),l(6),n(),f(7,ue,2,4,"span",71),t(8,"span"),g(9,"i"),l(10),n()(),t(11,"p",72),l(12),n(),t(13,"p",73),l(14),P(15,"date"),f(16,fe,2,1,"span",44),n()(),g(17,"i",74),n()}if(r&2){let e=p.$implicit,a=d(3);i(2),b(y("fa-solid ",a.categoryMeta(e.category).icon)),i(4),u(a.categoryMeta(e.category).label),i(),s("ngIf",e.severity),i(),b(y("text-[10px] font-black px-2 py-0.5 rounded-full ",a.statusMeta(e.status).chip)),i(),b(y("fa-solid ",a.statusMeta(e.status).icon," mr-1")),i(),u(a.statusMeta(e.status).label),i(2),u(e.message),i(2),V("#",e.id," \xB7 ",B(15,16,e.create_date,"short")),i(2),s("ngIf",e.module)}}function be(r,p){if(r&1&&(t(0,"div",64),f(1,xe,18,19,"button",65),n()),r&2){let e=d(2);i(),s("ngForOf",e.filteredReports)}}function ye(r,p){if(r&1&&(t(0,"div",75),g(1,"i",76),t(2,"p",77),l(3),n()()),r&2){let e=d(2);i(3),u(e.statusFilter==="all"&&!e.search?"A\xFAn no has enviado reportes.":"No hay reportes que coincidan.")}}function _e(r,p){if(r&1&&(t(0,"div"),f(1,be,2,1,"div",63)(2,ye,4,1,"ng-template",null,0,O),n()),r&2){let e=W(3),a=d();i(),s("ngIf",a.filteredReports.length)("ngIfElse",e)}}function ve(r,p){if(r&1&&(t(0,"span"),l(1),n()),r&2){let e=d(2);b(y("text-[10px] font-black px-2.5 py-1 rounded-full border ",e.severityMeta(e.selected.severity).chip)),i(),R("Gravedad: ",e.severityMeta(e.selected.severity).label)}}function he(r,p){if(r&1&&(t(0,"span",93),l(1),n()),r&2){let e=d(2);i(),u(e.selected.module)}}function Ce(r,p){if(r&1&&(I(0),t(1,"p",91),l(2,"Pasos para reproducir"),n(),t(3,"p",94),l(4),n(),M()),r&2){let e=d(2);i(4),u(e.selected.stepsToReproduce)}}function Ee(r,p){if(r&1&&(I(0),t(1,"p",91),l(2,"Captura"),n(),t(3,"a",95),g(4,"img",96),n(),M()),r&2){let e=d(2);i(3),s("href",e.selected.url,k),i(),s("src",e.selected.url,k)}}function we(r,p){if(r&1&&(t(0,"div",102)(1,"dt",103),l(2,"Pantalla"),n(),t(3,"dd",104),l(4),n()()),r&2){let e=d(2).ngIf;i(4),u(e.url)}}function Se(r,p){if(r&1&&(t(0,"div",102)(1,"dt",103),l(2,"Versi\xF3n"),n(),t(3,"dd",105),l(4),n()()),r&2){let e=d(2).ngIf;i(4),u(e.appVersion)}}
1function ke(r,p){if(r&1&&(t(0,"div",102)(1,"dt",103),l(2,"Resoluci\xF3n"),n(),t(3,"dd",105),l(4),n()()),r&2){let e=d(2).ngIf;i(4),u(e.pantalla)}}function Ie(r,p){if(r&1&&(t(0,"div",102)(1,"dt",103),l(2,"Navegador"),n(),t(3,"dd",104),l(4),n()()),r&2){let e=d(2).ngIf;i(4),u(e.navegador)}}function Me(r,p){if(r&1&&(t(0,"div",98)(1,"p",99),l(2,"Contexto t\xE9cnico"),n(),t(3,"dl",100),f(4,we,5,1,"div",101)(5,Se,5,1,"div",101)(6,ke,5,1,"div",101)(7,Ie,5,1,"div",101),n()()),r&2){let e=d().ngIf;i(4),s("ngIf",e.url),i(),s("ngIf",e.appVersion),i(),s("ngIf",e.pantalla),i(),s("ngIf",e.navegador)}}function Re(r,p){if(r&1&&(I(0),f(1,Me,8,4,"div",97),M()),r&2){let e=p.ngIf;i(),s("ngIf",e.url||e.appVersion||e.navegador||e.pantalla)}}function Te(r,p){if(r&1){let e=w();t(0,"div",78),x("click",function(){_(e);let o=d();return v(o.closeDetail())}),t(1,"div",79),x("click",function(o){return _(e),v(o.stopPropagation())}),t(2,"div",80)(3,"div",81)(4,"div",82)(5,"div",83),g(6,"i"),n(),t(7,"div",84)(8,"h3",85),l(9),n(),t(10,"p",86),l(11),P(12,"date"),n()()(),t(13,"button",87),x("click",function(){_(e);let o=d();return v(o.closeDetail())}),g(14,"i",88),n()(),t(15,"div",89),f(16,ve,2,4,"span",71),t(17,"span"),g(18,"i"),l(19),n(),f(20,he,2,1,"span",90),n(),t(21,"p",91),l(22,"Descripci\xF3n"),n(),t(23,"p",92),l(24),n(),f(25,Ce,5,1,"ng-container",44)(26,Ee,5,2,"ng-container",44)(27,Re,2,1,"ng-container",44),n()()()}if(r&2){let e=d();i(6),b(y("fa-solid ",e.categoryMeta(e.selected.category).icon," text-lg")),i(3),u(e.categoryMeta(e.selected.category).label),i(2),V("#",e.selected.id," \xB7 ",B(12,19,e.selected.create_date,"medium")),i(5),s("ngIf",e.selected.severity),i(),b(y("text-[10px] font-black px-2.5 py-1 rounded-full ",e.statusMeta(e.selected.status).chip)),i(),b(y("fa-solid ",e.statusMeta(e.selected.status).icon," mr-1")),i(),u(e.statusMeta(e.selected.status).label),i(),s("ngIf",e.selected.module),i(4),u(e.selected.message),i(),s("ngIf",e.selected.stepsToReproduce),i(),s("ngIf",e.selected.url),i(),s("ngIf",e.ctx(e.selected))}}var Ue=(()=>{class r{reportService;cdr;categories=[{key:"bug",label:"Algo no funciona",icon:"fa-bug"},{key:"pagos",label:"Pagos y cobros",icon:"fa-credit-card"},{key:"impresion",label:"Impresi\xF3n / tickets",icon:"fa-print"},{key:"pedidos",label:"Pedidos / cocina",icon:"fa-bell-concierge"},{key:"inventario",label:"Inventario / recetas",icon:"fa-boxes-stacked"},{key:"acceso",label:"Acceso / cuenta",icon:"fa-lock"},{key:"rendimiento",label:"Lento / se traba",icon:"fa-gauge-high"},{key:"sugerencia",label:"Sugerencia / mejora",icon:"fa-lightbulb"},{key:"otro",label:"Otro",icon:"fa-circle-question"}];severities=[{key:"critical",label:"Cr\xEDtica",desc:"No puedo operar",dot:"bg-red-500",chip:"bg-red-100 text-red-700 border-red-200"},{key:"high",label:"Alta",desc:"Afecta bastante",dot:"bg-orange-500",chip:"bg-orange-100 text-orange-700 border-orange-200"},{key:"medium",label:"Media",desc:"Molesto, pero opero",dot:"bg-amber-400",chip:"bg-amber-100 text-amber-700 border-amber-200"},{key:"low",label:"Baja",desc:"Menor / cosm\xE9tico",dot:"bg-gray-400",chip:"bg-gray-100 text-gray-600 border-gray-200"}];modules=["Pedidos","Caja","Inventario","Men\xFA / platillos","Reportes","N\xF3mina","Cocina (KDS)","Reservaciones","Mesero","Configuraci\xF3n","Suscripci\xF3n / pago","Otro"];form={category:"",severity:"",module:"",message:"",steps:"",name:"",email:"",phone:""};selectedImage=null;imagePreview=null;sending=!1;reportList=[];loadingList=!0;search="";statusFilter="all";selected=null;constructor(e,a){this.reportService=e,this.cdr=a}ngOnInit(){this.prefillContact(),this.getUserReports()}userData(){try{return JSON.parse(localStorage.getItem("UserData")||"{}")||{}}catch(e){return{}}}prefillContact(){let e=this.userData();this.form.name=e.name||e.fullName||e.username||"",this.form.email=e.email||"",this.form.phone=e.phone||e.phoneNumber||""}selectCategory(e){this.form.category=e}selectSeverity(e){this.form.severity=e}onImageSelected(e){let a=e.target;if(!a.files?.length)return;let o=a.files[0];if(!o.type.startsWith("image/")){S.default.fire("Archivo no v\xE1lido","Selecciona una imagen (JPG, PNG\u2026).","warning"),a.value="";return}if(o.size>5*1024*1024){S.default.fire("Imagen muy pesada","La imagen supera 5 MB.","warning"),a.value="";return}this.selectedImage=o;let m=new FileReader;m.onload=()=>{this.imagePreview=m.result,this.cdr.detectChanges()}
1,m.readAsDataURL(o),a.value=""}removeImage(){this.selectedImage=null,this.imagePreview=null}get formValido(){let e=this.form;return!!(e.category&&e.severity&&e.message.trim()&&e.name.trim()&&e.email.trim())}buildContext(){return{categoria:this.categories.find(a=>a.key===this.form.category)?.label||this.form.category,modulo:this.form.module||null,appVersion:T.APP_VERSION,url:typeof window<"u"?window.location.href:"",pantalla:typeof window<"u"?`${window.innerWidth}x${window.innerHeight}`:"",navegador:typeof navigator<"u"?navigator.userAgent:"",fecha:new Date().toISOString()}}submitReport(){if(!this.formValido){S.default.fire("Faltan datos","Elige categor\xEDa, gravedad y describe el problema.","info");return}if(this.sending)return;let e=this.userData(),a=new FormData;a.append("name",this.form.name.trim()),a.append("email",this.form.email.trim()),a.append("phone",this.form.phone||""),a.append("message",this.form.message.trim()),a.append("category",this.form.category),a.append("severity",this.form.severity),a.append("module",this.form.module||""),a.append("stepsToReproduce",this.form.steps||""),a.append("context",JSON.stringify(this.buildContext())),a.append("userId",String(e.id??0)),this.selectedImage&&a.append("image",this.selectedImage),this.sending=!0,this.cdr.detectChanges(),this.reportService.sendReport(a).subscribe({next:()=>{this.sending=!1,S.default.fire({icon:"success",title:"Reporte enviado",text:"Gracias. Lo revisaremos y te avisaremos por correo.",confirmButtonColor:"#16a34a"}),this.resetForm(),this.getUserReports(),this.cdr.detectChanges()},error:()=>{this.sending=!1,S.default.fire("Error","No se pudo enviar el reporte. Intenta de nuevo.","error"),this.cdr.detectChanges()}})}getUserReports(){let e=Number(this.userData().id||0);if(!e){this.loadingList=!1,this.cdr.detectChanges();return}this.loadingList=!0,this.reportService.getReportsByUserId(e).subscribe({next:a=>{this.reportList=(a?.data||[]).filter(o=>!o.isDeleted),this.loadingList=!1,this.cdr.detectChanges()},error:()=>{this.loadingList=!1,this.cdr.detectChanges()}})}resetForm(){this.form={category:"",severity:"",module:"",message:"",steps:"",name:this.form.name,email:this.form.email,phone:this.form.phone},this.selectedImage=null,this.imagePreview=null}get filteredReports(){let e=this.search.trim().toLowerCase();return(this.reportList||[]).filter(a=>{let o=this.statusFilter==="all"||Number(a.status)===this.statusFilter,m=!e||String(a.message||"").toLowerCase().includes(e)||this.categoryMeta(a.category).label.toLowerCase().includes(e)||String(a.module||"").toLowerCase().includes(e);return o&&m})}categoryMeta(e){return this.categories.find(a=>a.key===e)||{key:e,label:e||"Sin categor\xEDa",icon:"fa-circle-question"}}severityMeta(e){return this.severities.find(a=>a.key===e)||{key:e,label:e||"\u2014",desc:"",dot:"bg-gray-300",chip:"bg-gray-100 text-gray-600 border-gray-200"}}statusMeta(e){switch(Number(e)){case 1:return{label:"En proceso",chip:"bg-blue-100 text-blue-700",icon:"fa-spinner"};case 2:return{label:"Resuelto",chip:"bg-green-100 text-green-700",icon:"fa-circle-check"};case 3:return{label:"Cerrado",chip:"bg-gray-100 text-gray-600",icon:"fa-circle-xmark"};default:return{label:"Pendiente",chip:"bg-amber-100 text-amber-700",icon:"fa-clock"}}}ctx(e){let a=e?.context;if(typeof a=="string")try{a=JSON.parse(a)}catch(o){a=null}return a||{}}openDetail(e){this.selected=e}closeDetail(){this.selected=null}static \u0275fac=function(a){return new(a||r)(F(ne),F(j))};static \u0275cmp=N({type:r,selectors:[["app-report-error"]],decls:85,vars:23,consts:[["emptyList",""],[1,"min-h-screen","bg-gray-50","px-4","sm:px-8","py-6"],[1,"max-w-5xl","mx-auto","space-y-6"],[1,"text-2xl","sm:text-3xl","font-black","text-gray-800","flex","items-center","gap-2"],[1,"fa-solid","fa-bug","text-green-600"],[1,"text-sm","text-gray-500","mt-1"],[1,"bg-white","rounded-3xl","border","border-gray-200","p-5","sm:p-7","shadow-sm","space-y-7"],[1,"block","text-[11px]","font-black","text-gray-400","uppercase","tracking-widest","mb-3"],[1,"grid","grid-cols-2","sm:grid-cols-3","gap-2.5"],["type","button","class","flex items-center gap-2.5 border-2 rounded-2xl px-3 py-3 text-sm font-bold transition text-left",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"grid","grid-cols-2","sm:grid-cols-4","gap-2.5"],["type","button","class","border-2 rounded-2xl px-3 py-2.5 text-left transition",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"block","text-[11px]","font-black","text-gray-400","uppercase","tracking-widest","mb-2"],[1,"text-gray-300","normal-case","font-bold"],[1,"relative","sm:max-w-sm"],[1,"fa-solid","fa-layer-group","absolute","left-4","top-1/2","-translate-y-1/2","text-green-400","text-xs"],[1,"w-full","bg-white","border-2","border-gray-200","rounded-2xl","pl-10","pr-10","py-3","text-sm","font-bold","text-gray-700","focus:border-green-500","outline-none","appearance-none","cursor-pointer","transition",3,"ngModelChange","ngModel"],["value",""],[3,"value",4,"ngFor","ngForOf"],[1,"fa-solid","fa-chevron-down","absolute","right-4","top-1/2","-translate-y-1/2","text-gray-300","text-[10px]","pointer-events-none"],[1,"space-y-4"],["rows","3","placeholder","Describe el problema con tus palabras\u2026",1,"w-full","bg-white","border-2","border-gray-200","rounded-2xl","px-4","py-3","text-sm","text-gray-700","focus:border-green-500","outline-none","transition","resize-none","placeholder:text-gray-300",3,"ngModelChange","ngModel"],["rows","2","placeholder","1) Entr\xE9 a\u2026 2) Toqu\xE9\u2026 3) Pas\xF3\u2026",1,"w-full","bg-white","border-2","border-gray-200","rounded-2xl","px-4","py-3","text-sm","text-gray-700","focus:border-green-500","outline-none","transition","resize-none","placeholder:text-gray-300",3,"ngModelChange","ngModel"],["class","flex flex-col items-center justify-center gap-2 border-2 border-dashed border-gray-200 rounded-2xl py-7 cursor-pointer hover:border-green-300 hover:bg-green-50/40 transition text-gray-400",4,"ngIf"],["class","relative inline-block",4,"ngIf"],[1,"grid","grid-cols-1","sm:grid-cols-3","gap-3"],["type","text","placeholder","Nombre",1,"w-full","bg-white","border-2","border-gray-200","rounded-2xl","px-4","py-3","text-sm","font-bold","text-gray-700","focus:border-green-500","outline-none","transition","placeholder:text-gray-300","placeholder:font-normal",3,"ngModelChange","ngModel"],["type","email","placeholder","Correo",1,"w-full","bg-white","border-2","border-gray-200","rounded-2xl","px-4","py-3","text-sm","font-bold","text-gray-700","focus:border-green-500","outline-none","transition","placeholder:text-gray-300","placeholder:font-normal",3,"ngModelChange","ngModel"],["type","tel","placeholder","Tel\xE9fono (opcional)",1,"w-full","bg-white","border-2","border-gray-200","rounded-2xl","px-4","py-3","text-sm","font-bold","text-gray-700","focus:border-green-500","outline-none","transition","placeholder:text-gray-300","placeholder:font-normal",3,"ngModelChange","ngModel"],[1,"flex","flex-col","sm:flex-row","sm:items-center","gap-3","pt-2","border-t","border-gray-100"],[1,"text-[11px]","text-gray-400","flex","items-start","gap-1.5","flex-1"],[1,"fa-solid","fa-shield-halved","text-green-400","mt-0.5"],["type","button",1,"px-6","py-3","rounded-2xl","bg-green-600","text-white","text-sm","font-black","uppercase","tracking-widest","shadow-lg","shadow-green-200","hover:bg-green-700","hover:-translate-y-0.5","transition","active:scale-95","disabled:opacity-50","disabled:hover:translate-y-0","flex","items-center","justify-center","gap-2",3,"click","disabled"],[1,"fa-solid",3,"ngClass"],[1,"bg-white","rounded-3xl","border","border-gray-200","p-5","sm:p-7","shadow-sm"],[1,"flex","flex-wrap","items-center","gap-3","mb-4"],[1,"text-lg","font-black","text-gray-800","flex","items-center","gap-2"],[1,"fa-solid","fa-clock-rotate-left","text-green-600"],[1,"relative","ml-auto"],[1,"fa-solid","fa-magnifying-glass","absolute","left-3","top-1/2","-translate-y-1/2","text-gray-300","text-xs"],["type","text","placeholder","Buscar\u2026",1,"border","border-gray-200","rounded-xl","pl-9","pr-3","py-2","text-sm","focus:border-green-500","outline-none",3,"ngModelChange","ngModel"],[1,"flex","flex-wrap","gap-1.5","mb-4"],[1,"px-3","py-1.5","rounded-lg","text-xs","font-bold","transition",3,"click","ngClass"],["class","py-10 text-center text-gray-400",4,"ngIf"],[4,"ngIf"],["class","fixed inset-0 bg-black/50 flex items-center justify-center z-[15000] p-4",3,"click",4,"ngIf"],["type","button",1,"flex","items-center","gap-2.5","border-2","rounded-2xl","px-3","py-3","text-sm","font-bold","transition","text-left",3,"click","ngClass"],[3,"ngClass"],[1,"truncate"],["type","button",1,"border-2","rounded-2xl","px-3","py-2.5","text-left","transition",3,"click","ngClass"],[1,"flex","items-center","gap-2","text-sm","font-black","text-gray-800"],[1,"block","text-[11px]","text-gray-400","mt-0.5"],[3,"value"],[1,"flex","flex-col","items-center","justify-center","gap-2","border-2","border-dashed","border-gray-200","rounded-2xl","py-7","cursor-pointer","hover:border-green-300","hover:bg-green-50/40","transition","text-gray-400"],[1,"fa-solid","fa-image","text-2xl"],[1,"text-xs","font-bold"],["type","file","accept","image/*",1,"hidden",3,"change"],[1,"relative","inline-block"],["alt","Captura",1,"max-h-48","rounded-2xl","border","border-gray-200",3,"src"],["type","button",1,"absolute","-top-2","-right-2","w-8","h-8","rounded-full","bg-red-500","text-white","shadow-lg","flex","items-center","justify-center","hover:scale-110","transition",3,"click"],[1,"fa-solid","fa-xmark","text-xs"],[1,"py-10","text-center","text-gray-400"],[1,"fa-solid","fa-spinner","fa-spin","text-xl"],["class","space-y-2.5",4,"ngIf","ngIfElse"],[1,"space-y-2.5"],["class","w-full text-left bg-gray-50/70 hover:bg-white border border-gray-200 hover:border-green-200 rounded-2xl p-4 transition flex items-start gap-3",3,"click",4,"ngFor","ngForOf"],[1,"w-full","text-left","bg-gray-50/70","hover:bg-white","border","border-gray-200","hover:border-green-200","rounded-2xl","p-4","transition","flex","items-start","gap-3",3,"click"],[1,"w-10","h-10","rounded-xl","bg-green-50","text-green-500","flex","items-center","justify-center","shrink-0"],[1,"min-w-0","flex-1"],[1,"flex","items-center","gap-2","flex-wrap"],[1,"text-sm","font-black","text-gray-800"],[3,"class",4,"ngIf"],[1,"text-sm","text-gray-500","mt-1","line-clamp-2"],[1,"text-[11px]","text-gray-400","mt-1"],[1,"fa-solid","fa-chevron-right","text-gray-300","mt-3","shrink-0"],[1,"py-12","text-center","text-gray-400"],[1,"fa-solid","fa-inbox","text-3xl"],[1,"mt-2","text-sm"],[1,"fixed","inset-0","bg-black/50","flex","items-center","justify-center","z-[15000]","p-4",3,"click"],[1,"bg-white","w-full","max-w-lg","max-h-[88vh]","rounded-3xl","shadow-2xl","overflow-y-auto",3,"click"],[1,"p-6"],[1,"flex","items-start","justify-between","gap-3","mb-4"],[1,"flex","items-center","gap-3","min-w-0"],[1,"w-11","h-11","rounded-2xl","bg-green-50","text-green-500","flex","items-center","justify-center","shrink-0"],[1,"min-w-0"],[1,"text-base","font-black","text-gray-800","truncate"],[1,"text-[11px]","text-gray-400"],[1,"w-9","h-9","rounded-xl","bg-gray-100","text-gray-500","hover:bg-gray-200","transition","flex","items-center","justify-center","shrink-0",3,"click"],[1,"fa-solid","fa-xmark"],[1,"flex","flex-wrap","gap-2","mb-4"],["class","text-[10px] font-black px-2.5 py-1 rounded-full bg-gray-100 text-gray-600",4,"ngIf"],[1,"text-[10px]","font-black","text-gray-400","uppercase","tracking-widest","mb-1"],[1,"text-sm","text-gray-700","whitespace-pre-line","mb-4"],[1,"text-[10px]","font-black","px-2.5","py-1","rounded-full","bg-gray-100","text-gray-600"],[1,"text-sm","text-gray-600","whitespace-pre-line","mb-4"],["target","_blank","rel","noopener",3,"href"],["alt","Captura",1,"rounded-2xl","border","border-gray-200","max-h-60","mb-4",3,"src"],["class","bg-gray-50 rounded-2xl border border-gray-200 p-4",4,"ngIf"],[1,"bg-gray-50","rounded-2xl","border","border-gray-200","p-4"],[1,"text-[10px]","font-black","text-gray-400","uppercase","tracking-widest","mb-2"],[1,"space-y-1.5","text-xs"],["class","flex gap-2",4,"ngIf"],[1,"flex","gap-2"],[1,"text-gray-400","shrink-0","w-20"],[1,"text-gray-600","break-all"],[1,"text-gray-600"]],template:function(a,o){a&1&&(t(0,"div",1)(1,"div",2)(2,"div")(3,"h1",3),g(4,"i",4),l(5," Reportar un problema "),n(),t(6,"p",5),l(7,"Cu\xE9ntanos qu\xE9 pas\xF3. Entre m\xE1s detalle, m\xE1s r\xE1pido lo resolvemos."),n()(),t(8,"div",6)(9,"div")(10,"label",7),l(11,"1 \xB7 \xBFQu\xE9 tipo de problema es?"),n(),t(12,"div",8),f(13,se,4,6,"button",9),n()(),t(14,"div")(15,"label",7),l(16,"2 \xB7 \xBFQu\xE9 tan grave es?"),n(),t(17,"div",10),f(18,de,6,6,"button",11),n()(),t(19,"div")(20,"label",12),l(21,"3 \xB7 M\xF3dulo afectado "),t(22,"span",13),l(23,"(opcional)"),n()(),t(24,"div",14),g(25,"i",15),t(26,"select",16),E("ngModelChange",function(c){return C(o.form.module,c)||(o.form.module=c),c}),t(27,"option",17),l(28,"\xBFEn qu\xE9 parte del panel?"),n(),f(29,pe,2,2,"option",18),n(),g(30,"i",19),n()(),t(31,"div",20)(32,"div")(33,"label",12),l(34,"4 \xB7 \xBFQu\xE9 pas\xF3?"),n(),t(35,"textarea",21),E("ngModelChange",function(c){return C(o.form.message,c)||(o.form.message=c),c}),n()(),t(36,"div")(37,"label",12),l(38,"Pasos para reproducirlo "),t(39,"span",13),l(40,"(opcional)"),n()(),t(41,"textarea",22),E("ngModelChange",function(c){return C(o.form.steps,c)||(o.form.steps=c),c}),n()()(),t(42,"div")(43,"label",12),l(44,"5 \xB7 Captura de pantalla "),t(45,"span",13),l(46,"(opcional)"),n()(),f(47,ce,5,0,"label",23)(48,me,4,1,"div",24),n(),t(49,"div")(50,"label",12),l(51,"Tus datos de contacto"),n(),t(52,"div",25)(53,"
1input",26),E("ngModelChange",function(c){return C(o.form.name,c)||(o.form.name=c),c}),n(),t(54,"input",27),E("ngModelChange",function(c){return C(o.form.email,c)||(o.form.email=c),c}),n(),t(55,"input",28),E("ngModelChange",function(c){return C(o.form.phone,c)||(o.form.phone=c),c}),n()()(),t(56,"div",29)(57,"p",30),g(58,"i",31),l(59," Adjuntamos en autom\xE1tico tu pantalla actual, la versi\xF3n de la app y el navegador para resolverlo m\xE1s r\xE1pido. "),n(),t(60,"button",32),x("click",function(){return o.submitReport()}),g(61,"i",33),l(62),n()()(),t(63,"div",34)(64,"div",35)(65,"h2",36),g(66,"i",37),l(67," Mis reportes"),n(),t(68,"div",38),g(69,"i",39),t(70,"input",40),E("ngModelChange",function(c){return C(o.search,c)||(o.search=c),c}),n()()(),t(71,"div",41)(72,"button",42),x("click",function(){return o.statusFilter="all"}),l(73,"Todos"),n(),t(74,"button",42),x("click",function(){return o.statusFilter=0}),l(75,"Pendiente"),n(),t(76,"button",42),x("click",function(){return o.statusFilter=1}),l(77,"En proceso"),n(),t(78,"button",42),x("click",function(){return o.statusFilter=2}),l(79,"Resuelto"),n(),t(80,"button",42),x("click",function(){return o.statusFilter=3}),l(81,"Cerrado"),n()(),f(82,ge,2,0,"div",43)(83,_e,4,2,"div",44),n()(),f(84,Te,28,22,"div",45),n()),a&2&&(i(13),s("ngForOf",o.categories),i(5),s("ngForOf",o.severities),i(8),h("ngModel",o.form.module),i(3),s("ngForOf",o.modules),i(6),h("ngModel",o.form.message),i(6),h("ngModel",o.form.steps),i(6),s("ngIf",!o.imagePreview),i(),s("ngIf",o.imagePreview),i(5),h("ngModel",o.form.name),i(),h("ngModel",o.form.email),i(),h("ngModel",o.form.phone),i(5),s("disabled",!o.formValido||o.sending),i(),s("ngClass",o.sending?"fa-spinner fa-spin":"fa-paper-plane"),i(),R(" ",o.sending?"Enviando\u2026":"Enviar reporte"," "),i(8),h("ngModel",o.search),i(2),s("ngClass",o.statusFilter==="all"?"bg-green-600 text-white":"bg-gray-50 text-gray-600 border border-gray-200 hover:bg-gray-100"),i(2),s("ngClass",o.statusFilter===0?"bg-green-600 text-white":"bg-gray-50 text-gray-600 border border-gray-200 hover:bg-gray-100"),i(2),s("ngClass",o.statusFilter===1?"bg-green-600 text-white":"bg-gray-50 text-gray-600 border border-gray-200 hover:bg-gray-100"),i(2),s("ngClass",o.statusFilter===2?"bg-green-600 text-white":"bg-gray-50 text-gray-600 border border-gray-200 hover:bg-gray-100"),i(2),s("ngClass",o.statusFilter===3?"bg-green-600 text-white":"bg-gray-50 text-gray-600 border border-gray-200 hover:bg-gray-100"),i(2),s("ngIf",o.loadingList),i(),s("ngIf",!o.loadingList),i(),s("ngIf",o.selected))},dependencies:[G,A,U,z,ee,Y,Z,Q,X,K,$,te,re,J,q],encapsulation:2})}return r})();export{Ue as ReportErrorComponent};
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.