"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[29589],{29589:(e,n,t)=>{t.r(n),t.d(n,{AddonPrivateFilesFileActionsComponent:()=>d});var i=t(86654),o=t(23676),l=t(54438),a=t(2910),s=t(86198),r=t(43570),c=t(73955);function AddonPrivateFilesFileActionsComponent_Conditional_11_Template(e,n){if(1&e){const e=l.RV6();l.j41(0,"ion-item",6),l.bIt("click",(function AddonPrivateFilesFileActionsComponent_Conditional_11_Template_ion_item_click_0_listener(){l.eBV(e);const n=l.XpG();return l.Njj(n.close({status:"deleteOffline"}))})),l.nrm(1,"ion-icon",8),l.j41(2,"ion-label"),l.EFF(3),l.nI1(4,"translate"),l.k0s()()}2&e&&(l.R7$(3),l.JRh(l.bMT(4,1,"core.removedownloadeddata")))}let d=(()=>{var e;class AddonPrivateFilesFileActionsComponent extends o.O{constructor(e){super(e),this.isDownloaded=!1,this.filename="",this.icon=""}}return(e=AddonPrivateFilesFileActionsComponent).ɵfac=function AddonPrivateFilesFileActionsComponent_Factory(n){return new(n||e)(l.rXU(l.aKT))},e.ɵcmp=l.VBU({type:e,selectors:[["addon-privatefiles-file-actions"]],inputs:{isDownloaded:"isDownloaded",filename:"filename",icon:"icon"},standalone:!0,features:[l.Vt3,l.aNF],decls:17,vars:9,consts:[["button","false","detail","false",1,"ion-text-wrap"],["slot","start"],["alt","","role","presentation",3,"src"],["shape","round","size","default","slot","end","fill","clear",3,"click","ariaLabel"],["slot","icon-only","name","close","aria-label","hidden"],["button","","detail","false","lines","none"],["button","","detail","false","lines","none",3,"click"],["slot","start","name","fas-trash","aria-hidden","true","color","danger"],["slot","start","name","fam-cloud-x","aria-hidden","true"]],template:function AddonPrivateFilesFileActionsComponent_Template(e,n){1&e&&(l.j41(0,"header")(1,"ion-item",0)(2,"ion-thumbnail",1),l.nrm(3,"img",2),l.k0s(),l.j41(4,"ion-label"),l.EFF(5),l.k0s(),l.j41(6,"ion-button",3),l.nI1(7,"translate"),l.bIt("click",(function AddonPrivateFilesFileActionsComponent_Template_ion_button_click_6_listener(){return n.close({status:"cancel"})})),l.nrm(8,"ion-icon",4),l.k0s()()(),l.nrm(9,"hr"),l.j41(10,"ion-list"),l.DNE(11,AddonPrivateFilesFileActionsComponent_Conditional_11_Template,5,3,"ion-item",5),l.j41(12,"ion-item",6),l.bIt("click",(function AddonPrivateFilesFileActionsComponent_Template_ion_item_click_12_listener(){return n.close({status:"deleteOnline"})})),l.nrm(13,"ion-icon",7),l.j41(14,"ion-label"),l.EFF(15),l.nI1(16,"translate"),l.k0s()()()),2&e&&(l.R7$(3),l.Y8G("src",n.icon,l.B4B),l.R7$(2),l.JRh(n.filename),l.R7$(),l.Y8G("ariaLabel",l.bMT(7,5,"core.close")),l.R7$(5),l.vxM(11,n.isDownloaded?11:-1),l.R7$(4),l.SpI(" ",l.bMT(16,7,"core.delete")," "))},dependencies:[i.n,a.Jm,a.iq,a.uz,a.he,a.nf,a.Zx,s.t,r.T,c.D9],styles:["hr[_ngcontent-%COMP%]{background:var(--gray-300)}ion-thumbnail[_ngcontent-%COMP%]{--size: 1.5rem;margin-inline-end:.5rem}"],changeDetection:0}),AddonPrivateFilesFileActionsComponent})()}}]);