"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8126],{8126:(t,e,o)=>{o.r(e),o.d(e,{default:()=>b});var n=o(10467),i=o(75383),r=o(1453),_=o(86654),s=o(54438),a=o(60177),g=o(2910),l=o(16986),c=o(86198),p=o(35407),m=o(88246),f=o(43570),E=o(73955),u=o(59528);function CoreSettingsErrorLogPage_ion_buttons_8_Template(t,e){if(1&t){const t=s.RV6();s.j41(0,"ion-buttons",5)(1,"ion-button",6),s.nI1(2,"translate"),s.bIt("click",(function CoreSettingsErrorLogPage_ion_buttons_8_Template_ion_button_click_1_listener(){s.eBV(t);const e=s.XpG();return s.Njj(e.copyError())})),s.nrm(3,"ion-icon",7),s.k0s()()}2&t&&(s.R7$(),s.Y8G("ariaLabel",s.bMT(2,1,"core.settings.copyinfo")))}function CoreSettingsErrorLogPage_ion_list_10_ion_item_1_ng_container_6_Template(t,e){if(1&t&&(s.qex(0),s.j41(1,"p",11),s.EFF(2,"Method"),s.k0s(),s.j41(3,"p",12),s.EFF(4),s.k0s(),s.bVm()),2&t){const t=s.XpG().$implicit;s.R7$(4),s.JRh(t.method)}}function CoreSettingsErrorLogPage_ion_list_10_ion_item_1_ng_container_7_Template(t,e){if(1&t&&(s.qex(0),s.j41(1,"p",11),s.EFF(2,"Type"),s.k0s(),s.j41(3,"p",12),s.EFF(4),s.k0s(),s.bVm()),2&t){const t=s.XpG().$implicit;s.R7$(4),s.JRh(t.type)}}function CoreSettingsErrorLogPage_ion_list_10_ion_item_1_ng_container_8_Template(t,e){if(1&t&&(s.qex(0),s.j41(1,"p",11),s.EFF(2,"Data"),s.k0s(),s.j41(3,"p",12),s.EFF(4),s.nI1(5,"json"),s.k0s(),s.bVm()),2&t){const t=s.XpG().$implicit;s.R7$(4),s.JRh(s.bMT(5,1,t.data))}}function CoreSettingsErrorLogPage_ion_list_10_ion_item_1_p_9_Template(t,e){if(1&t&&(s.j41(0,"p",15),s.EFF(1),s.nI1(2,"coreFormatDate"),s.k0s()),2&t){const t=s.XpG().$implicit;s.R7$(),s.SpI(" ",s.i5U(2,1,t.time,"strftimedatetimeshort")," ")}}function CoreSettingsErrorLogPage_ion_list_10_ion_item_1_Template(t,e){if(1&t){const t=s.RV6();s.j41(0,"ion-item",9),s.bIt("click",(function CoreSettingsErrorLogPage_ion_list_10_ion_item_1_Template_ion_item_click_0_listener(){const e=s.eBV(t).$implicit,o=s.XpG(2);return s.Njj(o.copyError(e))})),s.j41(1,"ion-label",10)(2,"p",11),s.EFF(3,"Trace"),s.k0s(),s.j41(4,"p",12),s.EFF(5),s.k0s(),s.DNE(6,CoreSettingsErrorLogPage_ion_list_10_ion_item_1_ng_container_6_Template,5,1,"ng-container",13)(7,CoreSettingsErrorLogPage_ion_list_10_ion_item_1_ng_container_7_Template,5,1,"ng-container",13)(8,CoreSettingsErrorLogPage_ion_list_10_ion_item_1_ng_container_8_Template,6,3,"ng-container",13)(9,CoreSettingsErrorLogPage_ion_list_10_ion_item_1_p_9_Template,3,4,"p",14),s.k0s()()}if(2&t){const t=e.$implicit;s.R7$(),s.Y8G("collapsible-item",96),s.R7$(4),s.JRh(t.message),s.R7$(),s.Y8G("ngIf",t.method),s.R7$(),s.Y8G("ngIf",t.type),s.R7$(),s.Y8G("ngIf",t.data),s.R7$(),s.Y8G("ngIf",t.time)}}function CoreSettingsErrorLogPage_ion_list_10_Template(t,e){if(1&t&&(s.j41(0,"ion-list"),s.DNE(1,CoreSettingsErrorLogPage_ion_list_10_ion_item_1_Template,10,6,"ion-item",8),s.k0s()),2&t){const t=s.XpG();s.R7$(),s.Y8G("ngForOf",t.errorLogs)}}function CoreSettingsErrorLogPage_ng_template_11_Template(t,e){1&t&&s.nrm(0,"core-empty-box",16)}let b=(()=>{var t;class CoreSettingsErrorLogPage{constructor(){this.errorLogs=[]}ngOnInit(){this.errorLogs=r.F.getErrorLogs()}copyError(t){var e=this;return(0,n.A)((function*(){t?yield i.Ni.copyToClipboard(JSON.stringify(t)):yield i.Ni.copyToClipboard(JSON.stringify({errors:e.errorLogs}))}))()}}return(t=CoreSettingsErrorLogPage).ɵfac=function CoreSettingsErrorLogPage_Factory(e){return new(e||t)},t.ɵcmp=s.VBU({type:t,selectors:[["page-core-app-settings-error-log"]],standalone:!0,features:[s.aNF],decls:13,vars:6,consts:[["noLogs",""],["slot","start"],[3,"text"],["slot","end",4,"ngIf"],[4,"ngIf","ngIfElse"],["slot","end"],["fill","clear",3,"click","ariaLabel"],["slot","icon-only","name","fas-clipboard","aria-hidden","true"],["button","","lines","full","class","ion-text-wrap",3,"click",4,"ngFor","ngForOf"],["button","","lines","full",1,"ion-text-wrap",3,"click"],[1,"ion-padding",3,"collapsible-item"],[1,"item-heading"],[1,"ion-text-wrap"],[4,"ngIf"],["class","ion-text-end",4,"ngIf"],[1,"ion-text-end"],["message","No logs available","icon","fas-clipboard-question"]],template:function CoreSettingsErrorLogPage_Template(t,e){if(1&t&&(s.j41(0,"ion-header")(1,"ion-toolbar")(2,"ion-buttons",1),s.nrm(3,"ion-back-button",2),s.nI1(4,"translate"),s.k0s(),s.j41(5,"ion-title")(6,"h1"),s.EFF(7,"Error log"),s.k0s()(),s.DNE(8,CoreSettingsErrorLogPage_ion_buttons_8_Template,4,3,"ion-buttons",3),s.k0s()(),s.j41(9,"ion-content"),s.DNE(10,CoreSettingsErrorLogPage_ion_list_10_Template,2,1,"ion-list",4)(11,CoreSettingsErrorLogPage_ng_template_11_Template,1,0,"ng-template",null,0,s.C5r),s.k0s()),2&t){const t=s.sdS(12);s.R7$(3),s.Y8G("text",s.bMT(4,4,"core.back")),s.R7$(5),s.Y8G("ngIf",e.errorLogs.length),s.R7$(2),s.Y8G("ngIf",e.errorLogs.length)("ngIfElse",t)}},dependencies:[_.n,a.Sq,a.bT,g.Jm,g.QW,g.W9,g.eU,g.iq,g.uz,g.he,g.nf,g.BC,g.ai,g.el,l.h,c.t,p.K,m.i,f.T,a.TG,E.D9,u.f],encapsulation:2}),CoreSettingsErrorLogPage})()}}]);