"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[22985],{22985:(e,n,o)=>{o.r(n),o.d(n,{AddonBlockBadgesComponent:()=>g});var t=o(86654),c=o(2638),l=o(54438),i=o(60177),a=o(2910),d=o(64422),s=o(58197),r=o(73955);function AddonBlockBadgesComponent_ion_item_divider_0_Template(e,n){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 AddonBlockBadgesComponent_ion_item_2_Template(e,n){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 AddonBlockBadgesComponent_ion_item_3_Template(e,n){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 g=(()=>{var e;class AddonBlockBadgesComponent extends c.CoreBlockPreRenderedComponent{}return(e=AddonBlockBadgesComponent).ɵfac=(()=>{let n;return function AddonBlockBadgesComponent_Factory(o){return(n||(n=l.xGo(e)))(o||e)}})(),e.ɵcmp=l.VBU({type:e,selectors:[["addon-block-badges"]],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 AddonBlockBadgesComponent_Template(e,n){1&e&&(l.DNE(0,AddonBlockBadgesComponent_ion_item_divider_0_Template,5,6,"ion-item-divider",0),l.j41(1,"core-loading",1),l.DNE(2,AddonBlockBadgesComponent_ion_item_2_Template,3,3,"ion-item",2)(3,AddonBlockBadgesComponent_ion_item_3_Template,3,3,"ion-item",3),l.k0s()),2&e&&(l.Y8G("ngIf",n.title),l.R7$(),l.Y8G("hideUntil",n.loaded)("fullscreen",!1)("placeholderLimit",1),l.R7$(),l.Y8G("ngIf",null==n.block.contents?null:n.block.contents.content),l.R7$(),l.Y8G("ngIf",null==n.block.contents?null:n.block.contents.footer))},dependencies:[t.n,i.bT,a.uz,a.Dg,a.he,d.R,s.B,r.D9],styles:['[_nghost-%COMP%]{--badge-size: 100px;--badge-container-size: 150px}[_nghost-%COMP%]   .core-block-content[_ngcontent-%COMP%]     ul.badges{list-style:none;margin:0}[_nghost-%COMP%]   .core-block-content[_ngcontent-%COMP%]     ul.badges li{position:relative;display:inline-block;text-align:center;margin-top:1em;vertical-align:top;width:var(--badge-container-size)}[_nghost-%COMP%]   .core-block-content[_ngcontent-%COMP%]     ul.badges li .badge-name{display:block;padding:5px}[_nghost-%COMP%]   .core-block-content[_ngcontent-%COMP%]     ul.badges li .badge-image{width:var(--badge-size)}[_nghost-%COMP%]   .core-block-content[_ngcontent-%COMP%]     ul.badges li .expireimage{content:"expired";background-image:url(/assets/img/expired.svg);background-repeat:no-repeat;background-size:var(--badge-size) var(--badge-size);width:var(--badge-size);height:var(--badge-size);left:calc((var(--badge-container-size) - var(--badge-size)) / 2);top:0;position:absolute;z-index:2;opacity:.85}']}),AddonBlockBadgesComponent})()}}]);