"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[42161],{42161:(e,o,n)=>{n.r(o),n.d(o,{CoreViewerTextComponent:()=>C});var t=n(86654),i=n(91416),r=n(75383),c=n(79555),l=n(54438),p=n(60177),a=n(2910),s=n(6128),m=n(86198),d=n(58197),f=n(88246),_=n(43570),u=n(73955);function CoreViewerTextComponent_ion_card_11_core_file_1_Template(e,o){if(1&e&&l.nrm(0,"core-file",7),2&e){const e=o.$implicit,n=l.XpG(2);l.Y8G("file",e)("component",n.component)("componentId",n.componentId)}}function CoreViewerTextComponent_ion_card_11_Template(e,o){if(1&e&&(l.j41(0,"ion-card"),l.DNE(1,CoreViewerTextComponent_ion_card_11_core_file_1_Template,1,3,"core-file",6),l.k0s()),2&e){const e=l.XpG();l.R7$(),l.Y8G("ngForOf",e.files)}}function CoreViewerTextComponent_ion_footer_12_Template(e,o){if(1&e){const e=l.RV6();l.j41(0,"ion-footer")(1,"ion-button",8),l.bIt("click",(function CoreViewerTextComponent_ion_footer_12_Template_ion_button_click_1_listener(){l.eBV(e);const o=l.XpG();return l.Njj(o.copyText())})),l.nrm(2,"ion-icon",9),l.EFF(3),l.nI1(4,"translate"),l.k0s()()}2&e&&(l.R7$(3),l.SpI(" ",l.bMT(4,1,"core.copytoclipboard")," "))}let C=(()=>{var e;class CoreViewerTextComponent{constructor(){this.displayCopyButton=!1}closeModal(){c.W3.dismiss()}copyText(){r.Ni.copyToClipboard(this.content||"")}}return(e=CoreViewerTextComponent).ɵfac=function CoreViewerTextComponent_Factory(o){return new(o||e)},e.ɵcmp=l.VBU({type:e,selectors:[["page-core-viewer-text"]],inputs:{title:"title",content:"content",component:"component",componentId:"componentId",files:"files",filter:[l.Mj6.HasDecoratorInputTransform,"filter","filter",i.G],contextLevel:"contextLevel",instanceId:"instanceId",courseId:"courseId",displayCopyButton:[l.Mj6.HasDecoratorInputTransform,"displayCopyButton","displayCopyButton",i.G]},standalone:!0,features:[l.GFd,l.aNF],decls:13,vars:13,consts:[["slot","end"],["fill","clear",3,"click","ariaLabel"],["slot","icon-only","name","fas-xmark","aria-hidden","true"],[1,"ion-padding"],[3,"text","component","componentId","filter","contextLevel","contextInstanceId","courseId"],[4,"ngIf"],[3,"file","component","componentId",4,"ngFor","ngForOf"],[3,"file","component","componentId"],["expand","block","fill","outline",3,"click"],["name","fas-copy","aria-hidden","true","slot","start"]],template:function CoreViewerTextComponent_Template(e,o){1&e&&(l.j41(0,"ion-header")(1,"ion-toolbar")(2,"ion-title")(3,"h1"),l.EFF(4),l.k0s()(),l.j41(5,"ion-buttons",0)(6,"ion-button",1),l.nI1(7,"translate"),l.bIt("click",(function CoreViewerTextComponent_Template_ion_button_click_6_listener(){return o.closeModal()})),l.nrm(8,"ion-icon",2),l.k0s()()()(),l.j41(9,"ion-content",3),l.nrm(10,"core-format-text",4),l.DNE(11,CoreViewerTextComponent_ion_card_11_Template,2,1,"ion-card",5),l.k0s(),l.DNE(12,CoreViewerTextComponent_ion_footer_12_Template,5,3,"ion-footer",5)),2&e&&(l.R7$(4),l.JRh(o.title),l.R7$(2),l.Y8G("ariaLabel",l.bMT(7,11,"core.close")),l.R7$(4),l.Y8G("text",o.content)("component",o.component)("componentId",o.componentId)("filter",o.filter)("contextLevel",o.contextLevel)("contextInstanceId",o.instanceId)("courseId",o.courseId),l.R7$(),l.Y8G("ngIf",null==o.files?null:o.files.length),l.R7$(),l.Y8G("ngIf",o.displayCopyButton))},dependencies:[t.n,p.Sq,p.bT,a.Jm,a.QW,a.b_,a.W9,a.M0,a.eU,a.iq,a.BC,a.ai,s.t,m.t,d.B,f.i,_.T,u.D9],styles:["ion-footer[_ngcontent-%COMP%]{padding:6px}"]}),CoreViewerTextComponent})()}}]);