"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[60582],{60582:(e,t,n)=>{n.r(t),n.d(t,{AddonBlockNewsItemsComponent:()=>m});var o=n(86654),c=n(2638),l=n(54438),s=n(60177),i=n(2910),d=n(64422),r=n(58197),a=n(73955);function AddonBlockNewsItemsComponent_ion_item_divider_0_Template(e,t){if(1&e&&(l.j41(0,"ion-item-divider",4)(1,"ion-label")(2,"h2"),l.nrm(3,"core-format-text",5),l.nI1(4,"translate"),l.k0s()()()),2&e){const e=l.XpG();l.Y8G("sticky",!0),l.R7$(3),l.Y8G("text",l.bMT(4,4,e.title))("contextInstanceId",e.block.instanceid)("courseId",e.courseId)}}function AddonBlockNewsItemsComponent_ion_item_2_Template(e,t){if(1&e&&(l.j41(0,"ion-item",6)(1,"ion-label"),l.nrm(2,"core-format-text",5),l.k0s()()),2&e){const e=l.XpG();l.R7$(2),l.Y8G("text",null==e.block.contents?null:e.block.contents.content)("contextInstanceId",e.block.instanceid)("courseId",e.courseId)}}function AddonBlockNewsItemsComponent_ion_item_3_Template(e,t){if(1&e&&(l.j41(0,"ion-item",7)(1,"ion-label"),l.nrm(2,"core-format-text",5),l.k0s()()),2&e){const e=l.XpG();l.R7$(2),l.Y8G("text",null==e.block.contents?null:e.block.contents.footer)("contextInstanceId",e.block.instanceid)("courseId",e.courseId)}}let m=(()=>{var e;class AddonBlockNewsItemsComponent extends c.CoreBlockPreRenderedComponent{}return(e=AddonBlockNewsItemsComponent).ɵfac=(()=>{let t;return function AddonBlockNewsItemsComponent_Factory(n){return(t||(t=l.xGo(e)))(n||e)}})(),e.ɵcmp=l.VBU({type:e,selectors:[["addon-block-news-items"]],standalone:!0,features:[l.Vt3,l.aNF],decls:4,vars:6,consts:[["class","ion-text-wrap",3,"sticky",4,"ngIf"],["placeholderType","column","placeholderHeight","120px",3,"hideUntil","fullscreen","placeholderLimit"],["class","ion-text-wrap core-block-content",4,"ngIf"],["class","ion-text-wrap core-block-footer",4,"ngIf"],[1,"ion-text-wrap",3,"sticky"],["contextLevel","block",3,"text","contextInstanceId","courseId"],[1,"ion-text-wrap","core-block-content"],[1,"ion-text-wrap","core-block-footer"]],template:function AddonBlockNewsItemsComponent_Template(e,t){1&e&&(l.DNE(0,AddonBlockNewsItemsComponent_ion_item_divider_0_Template,5,6,"ion-item-divider",0),l.j41(1,"core-loading",1),l.DNE(2,AddonBlockNewsItemsComponent_ion_item_2_Template,3,3,"ion-item",2)(3,AddonBlockNewsItemsComponent_ion_item_3_Template,3,3,"ion-item",3),l.k0s()),2&e&&(l.Y8G("ngIf",t.title),l.R7$(),l.Y8G("hideUntil",t.loaded)("fullscreen",!1)("placeholderLimit",1),l.R7$(),l.Y8G("ngIf",null==t.block.contents?null:t.block.contents.content),l.R7$(),l.Y8G("ngIf",null==t.block.contents?null:t.block.contents.footer))},dependencies:[o.n,s.bT,i.uz,i.Dg,i.he,d.R,r.B,a.D9],styles:["[_nghost-%COMP%]   .core-block-content[_ngcontent-%COMP%]     .unlist{list-style-type:none;margin-left:0;margin-right:0;-webkit-padding-start:0}[_nghost-%COMP%]   .core-block-content[_ngcontent-%COMP%]     .unlist li.post{padding-bottom:16px}[_nghost-%COMP%]   .core-block-content[_ngcontent-%COMP%]     .unlist li.post:last-child{padding-bottom:0}[_nghost-%COMP%]   .core-block-footer[_ngcontent-%COMP%]     a{display:none}[_nghost-%COMP%]   .core-block-footer[_ngcontent-%COMP%]     a:first-child{display:inline}"]}),AddonBlockNewsItemsComponent})()}}]);