PageSourceSearch

https://learncove.io/chunk-AM3P5OEU.js

js learncove.io collected 2026-10-08 04:27:27 UTC 37,819 bytes, 1 lines download raw bytes

1import{a as si,b as Di,c as pi,d as Ui,e as te,f as li}from"./chunk-3YTGYXOA.js";import"./chunk-54MO7QLJ.js";import{a as we,b as ri,e as ai,f as Li}from"./chunk-BPTZHM75.js";import{Jb as ni,Kb as Bi,R as X,S as it}from"./chunk-B2SPK3IG.js";import{a as O,b as tt}from"./chunk-BVFVD6OH.js";import{a as Me,b as ei,c as ti,d as Ni}from"./chunk-OBSO5W73.js";import"./chunk-MSAE3S77.js";import{Id as Zt,Jd as Ae,Je as Pe,Kd as Oe,Ke as Jt,Oa as kt,Pa as Ii,Rd as Xt,Zd as Kt,_d as wi,jd as Yt,kd as Gi,ld as Ht,md as Wt,od as $t,pd as jt,qd as Ai,qg as ii,rd as zt,rg as Ri,sc as Q,sd as Oi,tc as Ke,td as Qt,ud as Pi,ug as oi,vd as Ge,wd as et,xc as Z,xg as Vi,zc as Je}from"./chunk-FJWYGIPG.js";import{b as qt,e as Mi}from"./chunk-7XWD64YW.js";import"./chunk-2BBDVCN3.js";import{c as R,d as ft}from"./chunk-J7KHEJQX.js";import{Qb as Ft,R as Ce,S as wt,Sa as ve,Ta as Lt,Tb as vi,W as fe,Y as Nt,Ya as j,Za as qe}from"./chunk-NT6YUEFG.js";import{B as Y,D as Qe,G as ye,I as Mt,L as Se,O as Te,S as xe,T as Vt,e as Pt,h as Si}from"./chunk-KB4V47PQ.js";import"./chunk-ENDX2BKL.js";import{H as Rt,J as Ti,M as H,Na as Dt,P as W,Q as Ze,R as be,T as $,U as Xe,fa as Bt,ob as Ut,u as ee,wb as Ee,y as xt,ya as xi,za as z}from"./chunk-52S7N7V6.js";import{Bb as At,Cb as yi,Fb as Ot,Gb as fi,Ib as bi,Jb as A,Kb as ze,a as ht,b as M,g as ge,h as v,i as F,j as k,m as he,n as vt,p as Et,r as It,s as Gt}from"./chunk-UD5EBHOY.js";import{a as Ie,e as Ei}
1from"./chunk-HHWCKN2Y.js";import{F as je,c as bt,j as We,k as St,x as $e,z as Tt}from"./chunk-UR66OFCA.js";import{t as yt,y as hi}from"./chunk-YRXPJKGP.js";import{e as Ci}from"./chunk-244O5MFV.js";import"./chunk-AFRE35PB.js";import"./chunk-3WLKQOFJ.js";import{Aa as C,Ad as gt,Ba as h,Bb as d,Bc as U,Db as m,Dc as ce,Dd as ue,Ec as Fe,Fb as lt,Fc as ut,Gb as B,Hb as L,Ib as p,Jb as l,Kb as c,Kc as u,Lb as f,Lc as _,Mc as x,Qa as ae,Qc as ke,Rb as De,Sb as S,Vb as y,Yb as s,_a as st,ab as r,ac as ct,ae as Ct,bb as N,bc as dt,cc as mt,de as _e,f as ne,gc as Ue,he as Ye,ic as K,id as G,ie as He,kc as pe,lc as g,ld as de,mb as P,mc as J,na as at,nb as se,nc as T,oc as D,pd as _t,qb as V,sa as re,sb as pt,va as b,yc as le,yd as me}from"./chunk-MRH42WUF.js";import"./chunk-GVGHWWNN.js";import{f as w,i as gi}from"./chunk-I7AXXHAK.js";var E,Ne=w(()=>{E=(function(t){return t[t.OWN=0]="OWN",t[t.SHARED=1]="SHARED",t})(E||{})});function $i(t,o){if(t&1){let e=S();l(0,"app-icon",16),y("click",function(a){C(e);let n=s(2);return a.stopPropagation(),h(n.toggleExpand())}),c()}if(t&2){let e=s(2);p("ngClass",ce(2,Hi,e.expanded))("icon",e.ICON.CHEVRON_RIGHT)}}function ji(t,o){if(t&1){let e=S();l(0,"app-checkbox",17),y("selectEmit",function(){C(e);let a=s(2);return h(a.onSelected())}),c()}if(t&2){let e=s(2);p("selected",e.isSelected)("disabled",e.isActionsDisabled)}}function zi(t,o){if(t&1&&(d(0,$i,1,4,"app-icon",14),d(1,ji,1,2,"app-checkbox",15)),t&2){let e=s();m(e.hasVersions?0:-1),r(),m(e.isGroupsActionsAvailable?1:-1)}}function Qi(t,o){if(t&1&&(f(0,"app-icon",6),u(1,"translate")),t&2){let e=s();p("icon",e.alertIcon)("type",e.ICON_TYPE.CUSTOM)("title",_(1,3,"GROUP.HINT.UNAVAILABLE_DRAFT_COURSE"))}}function Zi(t,o){if(t&1&&(l(0,"span"),g(1),u(2,"translate"),u(3,"formatDate"),c()),t&2){let e=s();r(),D(" ",_(2,2,"COMMON.LABEL.START_DATE"),": ",_(3,4,e.group.startTime)," ")}}function Xi(t,o){t&1&&(l(0,"span",11),g(1,"-"),c())}function qi(t,o){if(t&1&&(l(0,"span"),g(1),u(2,"translate"),u(3,"formatDate"),c()),t&2){let e=s();r(),D(" ",_(2,2,"COMMON.LABEL.END_DATE"),": ",_(3,4,e.group.endTime)," ")}}function Ki(t,o){if(t&1&&(l(0,"app-table-col",21)(1,"app-block-ui",22),f(2,"app-popover-actions",23),c()()),t&2){let e=s(2);p("isLast",!0),r(),p("disabled",e.isActionsDisabled),r(),p("popoverItems",e.popoverOptions)}}function Ji(t,o){if(t&1&&(l(0,"app-table-col",18),f(1,"app-sharing-label",19),c(),l(2,"app-table-col",18),f(3,"app-status-label",20),c(),d(4,Ki,3,3,"app-table-col",21)),t&2){let e=s();r(),p("entity",e.group)("type",e.SHARING_LABEL_TYPES.SIMPLE_WITH_ICON),r(2),p("entity",e.group),r(),m(e.isGroupsActionsAvailable?4:-1)}}function eo(t,o){if(t&1&&f(0,"app-category-groups-table-item",24),t&2){let e=o.$implicit,i=s(2);p("group",e)("isVersion",!0)("isSelected",i.isSelected)("copyStatus",i.copyStatus)("categoryAccess",i.categoryAccess)("selectedGroups",i.selectedGroups)("isStudentVisible",i.isStudentVisible)}}function to(t,o){if(t&1&&(l(0,"div"),B(1,eo,1,7,"app-category-groups-table-item",24,Wi),c()),t&2){let e=s();p("@enterAnimation",void 0),r(),L(e.group.versions)}}var ki,Yi,Hi,Wi,q,Re=w(()=>{G();He();ge();ue();Xt();je();Xe();he();xt();ze();li();ft();ei();Ne();tt();xi();et();fi();Ee();it();Qe();Je();qe();G();Gi();yi();Ze();Ke();Lt();ki=(t,o)=>({"hover:bg-neutral-100":t,"bg-primary/10":o}),Yi=(t,o)=>({"pl-6":t,"pl-32":o}),Hi=t=>({"rotate-90":t}),Wi=(t,o)=>o==null?null:o._id;q=(()=>{let o=class o{constructor(){this.router=b(_e),this.subscriptions=b(A),this.categoriesModalsService=b(te),this.breadcrumbService=b(Me),this.selectEmit=new N,this.removeGroup=new N,this.SHARING_LABEL_TYPES=Zt,this.ICON=v,this.ICON_TYPE=F,this.popoverOptions=[],this.expanded=!1}set selectedGroups(i){this.checkIsSelected(i)}set isStudentVisible(i){this.setAlertIcon(i)}get isGroupsActionsAvailable(){return this.categoryAccess===E.OWN}get isActionsDisabled(){return this.isCopyGroupsInProgres}get isCopyGroupsInProgres(){return this.copyStatus===O.PENDING}get hasVersions(){return this.group?.isCollection&&this.group?.versions?.length>0}ngOnInit(){this.checkIsCourse(),this.initPrice(),this.initPopoverOptions()}openGroup(){this.isGroupsActionsAvailable&&(this.breadcrumbService.isResetBreadcrumb=!1,this.router.navigateByUrl(`/${St}/${this.group._id}`))}onSelected(){this.selectEmit.emit(this.group)}toggleExpand(){this.expanded=!this.expanded}checkIsCourse(){this.isCourse=this.group?.courseInfo?.isShared}initPrice(){this.isCourse&&!this.group.courseInfo.isFree&&this.group.courseInfo.price&&(this.price=this.group.courseInfo.price,this.currency=this.group.courseInfo.priceCurrency)}initPopoverOptions(){this.popoverOptions=[new H({text:"COMMON.BUTTON.VIEW_DETAILS",icon:v.EYE,command:this.openGroup.bind(this)})],this.isVersion||this.popoverOptions.push(new be,new H({text:"COMMON.BUTTON.REMOVE",icon:v.TRASH,iconType:F.SECONDARY,command:this.confirmRemoveGroup.bind(this)}))}setAlertIcon(i){!this.group.published&&!this.group.archived&&i?this.alertIcon=v.ALERT_TRIANGLE:this.alertIcon=null}checkIsSelected(i){!i||this.isVersion||(this.isSelected=i.some(a=>ee(a)===ee(this.group)))}confirmRemoveGroup(){this.subscriptions.addSubscription(this.categoriesModalsService.confirmCategoryAction(R.removeCategoryGroup,this.category).onClose.subscribe(i=>{i&&this.removeGroup.emit(this.group._id)}))}};o.\u0275fac=function(a){return new(a||o)}
1,o.\u0275cmp=P({type:o,selectors:[["app-category-groups-table-item"]],inputs:{category:"category",group:"group",selectedGroups:"selectedGroups",isStudentVisible:"isStudentVisible",categoryAccess:"categoryAccess",copyStatus:"copyStatus",isVersion:"isVersion",isSelected:"isSelected"},outputs:{selectEmit:"selectEmit",removeGroup:"removeGroup"},features:[U([A])],decls:26,vars:43,consts:[[1,"flex","w-full",3,"ngClass"],[1,"grid","grid-cols-1","w-full"],[3,"isFirst"],[1,"w-full",3,"content","isDisabled"],["tabindex","0",1,"flex","items-center","w-full",3,"click","keydown.enter"],[1,"flex","items-center",3,"ngClass"],[1,"mr-2","fill-warning",3,"icon","type","title"],[3,"icon","type"],["imageField","cardImage.url","styleClass","h-10 w-16",1,"mr-2",3,"entity"],[1,"text-base","line-clamp-2","group-hover:underline","group-hover:text-primary"],[1,"hint-grey"],[1,"mx-1"],[1,"w-full","min-w-[120px]","max-w-[120px]",3,"isLast"],[1,"text-base","max-w-full","overflow-hidden","text-ellipsis",3,"title"],[1,"mr-2",3,"ngClass","icon"],[1,"mr-4",3,"selected","disabled"],[1,"mr-2",3,"click","ngClass","icon"],[1,"mr-4",3,"selectEmit","selected","disabled"],[1,"w-full","min-w-[120px]","max-w-[120px]"],[1,"max-w-full",3,"entity","type"],[3,"entity"],[1,"w-full","min-w-[48px]","max-w-[48px]",3,"isLast"],["message","COMMON.HINT.COPY_CATEGORY_IN_PROGRESS",3,"disabled"],[3,"popoverItems"],[3,"group","isVersion","isSelected","copyStatus","categoryAccess","selectedGroups","isStudentVisible"]],template:function(a,n){a&1&&(l(0,"div",0)(1,"div",1)(2,"app-table-col",2)(3,"app-tooltip",3),u(4,"translate"),l(5,"div",4),y("click",function(){return n.openGroup()})("keydown.enter",function(){return n.openGroup()}),d(6,zi,2,2),l(7,"div",5),d(8,Qi,2,5,"app-icon",6),f(9,"app-icon",7)(10,"app-entity-image",8),l(11,"div")(12,"p",9),g(13),u(14,"translatedValue"),c(),l(15,"p",10),d(16,Zi,4,6,"span"),d(17,Xi,2,0,"span",11),d(18,qi,4,6,"span"),c()()()()()()(),l(19,"app-table-col",12)(20,"p",13),u(21,"currency"),g(22),u(23,"currency"),c()(),d(24,Ji,5,4),c(),d(25,to,3,1,"div")),a&2&&(p("ngClass",Fe(37,ki,n.isGroupsActionsAvailable,n.isSelected)),r(2),K("group",n.isGroupsActionsAvailable),p("isFirst",!0),r(),p("content",_(4,26,"COMMON.LABEL.CLICK_TO_OPEN_DETAILS"))("isDisabled",!n.isGroupsActionsAvailable),r(2),K("cursor-pointer",n.isGroupsActionsAvailable),r(),m(n.isVersion?-1:6),r(),p("ngClass",Fe(40,Yi,!n.alertIcon&&!n.isVersion,n.isVersion)),r(),m(n.alertIcon&&n.isGroupsActionsAvailable?8:-1),r(),pe(le("mr-2 ",n.isCourse?"fill-warning-500":"fill-tertiary")),p("icon",n.isCourse?n.ICON.FOLDER_FILLED:n.ICON.GROUP_FILLED)("type",n.ICON_TYPE.CUSTOM),r(),p("entity",n.group),r(3),T(" ",x(14,28,n.group,"name")," "),r(3),m(n.group.isStartTimeActive?16:-1),r(),m(n.group.isStartTimeActive&&n.group.isEndTimeActive?17:-1),r(),m(n.group.isEndTimeActive?18:-1),r(),p("isLast",!n.isGroupsActionsAvailable),r(),p("title",n.price?x(21,31,n.price,n.currency):"- -"),r(2),T(" ",n.price?x(23,34,n.price,n.currency):"- -"," "),r(2),m(n.isGroupsActionsAvailable?24:-1),r(),m(n.expanded?25:-1))},dependencies:[o,de,Ge,Yt,Ot,At,k,z,X,Ae,Oe,Y,$,W,Z,j,me,Q,M,ve],encapsulation:2,data:{animation:[Bt(250)]}});let t=o;return t})()});function ro(t,o){if(t&1){let e=S();l(0,"app-icon",13),y("click",function(a){C(e);let n=s(2);return a.stopPropagation(),h(n.toggleExpand())}),c()}if(t&2){let e=s(2);p("ngClass",ce(2,oo,e.expanded))("icon",e.ICON.CHEVRON_RIGHT)}}function ao(t,o){if(t&1){let e=S();l(0,"app-checkbox",14),y("selectEmit",function(){C(e);let a=s(2);return h(a.onSelected())}),c()}if(t&2){let e=s(2);p("selected",e.isSelected)("disabled",e.isActionsDisabled)}}function so(t,o){if(t&1&&(d(0,ro,1,4,"app-icon",11),d(1,ao,1,2,"app-checkbox",12)),t&2){let e=s();m(e.hasVersions?0:-1),r(),m(e.isGroupsActionsAvailable?1:-1)}}function po(t,o){if(t&1&&f(0,"app-icon",4),t&2){let e=s();p("icon",e.alertIcon)("type",e.ICON_TYPE.CUSTOM)}}function lo(t,o){if(t&1&&(l(0,"span"),g(1),u(2,"translate"),u(3,"formatDate"),c()),t&2){let e=s();r(),D(" ",_(2,2,"COMMON.LABEL.START_DATE"),": ",_(3,4,e.group.startTime)," ")}}function co(t,o){t&1&&(l(0,"span",9),g(1,"-"),c())}function mo(t,o){if(t&1&&(l(0,"span"),g(1),u(2,"translate"),u(3,"formatDate"),c()),t&2){let e=s();r(),D(" ",_(2,2,"COMMON.LABEL.END_DATE"),": ",_(3,4,e.group.endTime)," ")}}function uo(t,o){if(t&1&&(l(0,"app-block-ui",18),f(1,"app-popover-actions",19),c()),t&2){let e=s(2);p("disabled",e.isActionsDisabled),r(),p("popoverItems",e.popoverOptions)}}function _o(t,o){if(t&1&&(l(0,"p",1),g(1),u(2,"translate"),c(),f(3,"app-sharing-label",15),l(4,"p",1),g(5),u(6,"translate"),c(),l(7,"div",16),f(8,"app-status-label",17),c(),d(9,uo,2,2,"app-block-ui",18)),t&2){let e=s();r(),T(" ",_(2,6,"COMMON.TITLE.SHARING")," "),r(2),p("entity",e.group)("type",e.SHARING_LABEL_TYPES.S
1IMPLE_WITH_ICON),r(2),T(" ",_(6,8,"COMMON.LABEL.STATUS")," "),r(3),p("entity",e.group),r(),m(e.isGroupsActionsAvailable?9:-1)}}function go(t,o){if(t&1&&f(0,"app-category-groups-mobile-table-item",20),t&2){let e=o.$implicit,i=s(2);p("group",e)("isVersion",!0)("isSelected",i.isSelected)("copyStatus",i.copyStatus)("categoryAccess",i.categoryAccess)("selectedGroups",i.selectedGroups)("isStudentVisible",i.isStudentVisible)}}function Co(t,o){if(t&1&&(l(0,"div"),B(1,go,1,7,"app-category-groups-mobile-table-item",20,no),c()),t&2){let e=s();p("@enterAnimation",void 0),r(),L(e.group.versions)}}var io,oo,no,Ve,ot=w(()=>{ue();ge();Re();he();Ee();it();Xt();Qe();Xe();Je();qe();G();Ze();Ke();Lt();io=(t,o,e)=>({"border-y":t,"pl-12":o,"bg-primary/10":e}),oo=t=>({"rotate-90":t}),no=(t,o)=>o==null?null:o._id;Ve=(()=>{let o=class o extends q{};o.\u0275fac=(()=>{let i;return function(n){return(i||(i=ae(o)))(n||o)}})(),o.\u0275cmp=P({type:o,selectors:[["app-category-groups-mobile-table-item"]],inputs:{isFirst:"isFirst"},features:[V],decls:27,vars:38,consts:[[1,"border-b","border-x","border-neutral-400","p-2","w-full","flex","flex-col",3,"ngClass"],[1,"caption","text-neutral-600","mb-4"],["tabindex","0",1,"flex","items-center","w-full","mb-4",3,"click","keydown.enter"],[1,"flex","items-center"],[1,"mr-2","fill-warning",3,"icon","type"],[3,"icon","type"],["imageField","cardImage.url","styleClass","h-10 w-16",1,"mr-2",3,"entity"],[1,"text-base","line-clamp-2"],[1,"hint-grey"],[1,"mx-1"],[1,"max-w-full","mb-4","overflow-hidden","text-ellipsis",3,"title"],[1,"mr-2",3,"ngClass","icon"],[1,"mr-4",3,"selected","disabled"],[1,"mr-2",3,"click","ngClass","icon"],[1,"mr-4",3,"selectEmit","selected","disabled"],[1,"max-w-full","mb-4",3,"entity","type"],[1,"mb-4","w-fit"],[3,"entity"],["message","COMMON.HINT.COPY_CATEGORY_IN_PROGRESS",3,"disabled"],[1,"mt-4",3,"popoverItems"],[3,"group","isVersion","isSelected","copyStatus","categoryAccess","selectedGroups","isStudentVisible"]],template:function(a,n){a&1&&(l(0,"div",0)(1,"p",1),g(2),u(3,"translate"),c(),l(4,"div",2),y("click",function(){return n.openGroup()})("keydown.enter",function(){return n.openGroup()}),d(5,so,2,2),l(6,"div",3),d(7,po,1,2,"app-icon",4),f(8,"app-icon",5)(9,"app-entity-image",6),l(10,"div")(11,"p",7),g(12),u(13,"translatedValue"),c(),l(14,"p",8),d(15,lo,4,6,"span"),d(16,co,2,0,"span",9),d(17,mo,4,6,"span"),c()()()(),l(18,"p",1),g(19),u(20,"translate"),c(),l(21,"p",10),u(22,"currency"),g(23),u(24,"currency"),c(),d(25,_o,10,10),c(),d(26,Co,3,1,"div")),a&2&&(p("ngClass",ut(34,io,n.isFirst,n.isVersion,n.isSelected)),r(2),T(" ",_(3,21,"COMMON.TITLE.NAME")," "),r(2),K("cursor-pointer",n.isGroupsActionsAvailable),r(),m(n.isVersion?-1:5),r(2),m(n.alertIcon&&n.isGroupsActionsAvailable?7:-1),r(),pe(le("mr-2 ",n.isCourse?"fill-warning-500":"fill-tertiary")),p("icon",n.isCourse?n.ICON.FOLDER_FILLED:n.ICON.GROUP_FILLED)("type",n.ICON_TYPE.CUSTOM),r(),p("entity",n.group),r(3),T(" ",x(13,23,n.group,"name")," "),r(3),m(n.group.isStartTimeActive?15:-1),r(),m(n.group.isStartTimeActive&&n.group.isEndTimeActive?16:-1),r(),m(n.group.isEndTimeActive?17:-1),r(2),T(" ",_(20,26,"GROUP.TITLE.PRICE")," "),r(2),p("title",n.price?x(22,28,n.price,n.currency):"- -"),r(2),T(" ",n.price?x(24,31,n.price,n.currency):"- -"," "),r(2),m(n.isGroupsActionsAvailable?25:-1),r(),m(n.expanded?26:-1))},dependencies:[o,de,k,z,X,Ae,Oe,Y,$,W,Z,j,me,Q,M,ve],encapsulation:2});let t=o;return t})()});function ho(t,o){t&1&&f(0,"app-inplace-loading")}function yo(t,o){if(t&1){let e=S();l(0,"app-table-selection-info",7),y("whenSelectAll",function(){C(e);let a=s(3);return h(a.selectAllGroups())})("whenUnselectAll",function(){C(e);let a=s(3);return h(a.unselectAllGroups())}),c()}if(t&2){let e=s(3);p("selectedCount",e.selectedCount)("isAllSelected",e.isAllSelected)("isNonSelected",!e.isAllSelected&&!e.isAnySelected)}}function fo(t,o){if(t&1){let e=S();l(0,"app-checkbox",15),y("selectEmit",function(){C(e);let a=s(4);return h(a.togglePageSelection())}),c()}if(t&2){let e=s(4);p("selected",e.pageSelected)("intermediate",e.someItemsOnPageSelected)("disabled",e.isActionsDisabled)}}function bo(t,o){t&1&&(l(0,"app-table-header",13),g(1),u(2,"translate"),c()),t&2&&(r(),J(_(2,1,"COMMON.TITLE.SHARING")))}function So(t,o){t&1&&(l(0,"app-table-header",13),g(1),u(2,"translate"),c()),t&2&&(r(),J(_(2,1,"COMMON.LABEL.STATUS")))}function To(t,o){t&1&&f(0,"app-table-header",14),t&2&&p("isLast",!0)}function xo(t,o){if(t&1){let e=S();l(0,"div",5)(1,"div",8)(2,"app-table-header",9),y("sortChanged",function(){C(e);let a=s(3);return h(a.refetchGroups())}),l(3,"div",10),d(4,fo,1,3,"app-checkbox",11),g(5),u(6,"translate"),c()()(),l(7,"app-table-header",12),g(8),u(9,"translate"),c(),d(10,bo,3,3,"app-table-header",13),d(11,So,3,3,"app-table-header",13),d(12,To,1,1,"app-table-header",14),c()}if(t&2){let e=s(3);r(2),p("isFirst",!0)("sortable",!0)("sortBy",e.sortBy),r(2),m(e.isGroupsActionsAvailable?4:-1),r(),T(" ",_(6,10,"COMMON.TITLE.NAME")," "),r(2),p("isLast",!e.isGroupsActionsAvailable),r(),J(_(9,12,"GROUP.TITLE.PRICE")),r(2),m(e.isGroupsActionsAvailable?10:-1),r(),m(e.isGroupsActionsAvailable?11:-1),r(),m(e.isGroupsActionsAvailable?12:-1)}}function vo(t,o){if(t&1){let e=S();l(0,"app-category-groups-table-item",18),y("selectEmit",function(a){C(e);let n=s(4);return h(n.groupSelected(a))})("removeGroup",function(a){C(e);let n=s(4);return h(n.removeGroup.emit(a))}),c()}if(t&2){let e=s().$implicit,i=s(3);p("group",e)("category",i.category)("copyStatus",i.copyStatus)("categoryAccess",i.c
1ategoryAccess)("selectedGroups",i.selectedGroups)("isStudentVisible",i.category.isStudentVisible)}}function Eo(t,o){if(t&1){let e=S();l(0,"app-category-groups-mobile-table-item",19),y("selectEmit",function(a){C(e);let n=s(4);return h(n.groupSelected(a))})("removeGroup",function(a){C(e);let n=s(4);return h(n.removeGroup.emit(a))}),c()}if(t&2){let e=s(),i=e.$implicit,a=e.$index,n=s(3);p("group",i)("category",n.category)("copyStatus",n.copyStatus)("categoryAccess",n.categoryAccess)("selectedGroups",n.selectedGroups)("isFirst",a===0)("isStudentVisible",n.category.isStudentVisible)}}function Io(t,o){if(t&1&&(d(0,vo,1,6,"app-category-groups-table-item",16),d(1,Eo,1,7,"app-category-groups-mobile-table-item",17)),t&2){let e=s(3);m(e.isMobile?-1:0),r(),m(e.isMobile?1:-1)}}function Go(t,o){if(t&1){let e=S();l(0,"div",6)(1,"app-table-pagination",20),y("pageChanged",function(a){C(e);let n=s(3);return h(n.changePage(a))}),c()()}if(t&2){let e=s(3);r(),p("pagination",e.pagination)}}function Ao(t,o){if(t&1&&(l(0,"app-loading-spinner",2)(1,"div",0),d(2,yo,1,3,"app-table-selection-info",4),d(3,xo,13,14,"div",5),B(4,Io,2,2,null,null,lt),d(6,Go,2,1,"div",6),c()()),t&2){let e=s(2);p("isLoading",e.pending),r(2),m(e.selectedCount?2:-1),r(),m(e.isMobile?-1:3),r(),L(e.groups),r(2),m(e.groups.length?6:-1)}}function Oo(t,o){if(t&1&&(l(0,"app-no-data",3),g(1),u(2,"translate"),c()),t&2){let e=s(2);p("header",e.emptyStateTitle),r(),T(" ",_(2,2,e.emptyStateHint)," ")}}function Po(t,o){if(t&1&&(f(0,"app-search",1),d(1,Ao,7,4,"app-loading-spinner",2)(2,Oo,3,4,"app-no-data",3)),t&2){let e=s();p("searchText",e.searchControl)("isDisabled",!e.category.groups.length),r(),m(e.groups.length?1:2)}}var oe,nt=w(()=>{G();at();ri();ze();he();Mt();Mi();tt();Ne();Vt();et();Nt();Ee();Re();ot();Jt();G();Ai();Oi();Pi();wi();ge();oe=(()=>{let o=class o extends xe{get isGroupsActionsAvailable(){return this.categoryAccess===E.OWN}get emptyStateTitle(){return this.isCopyGroupsInProgres&&this.isGroupsActionsAvailable?"":"COMMON.TITLE.NO_GROUPS_ASSIGNED"}get emptyStateHint(){return this.isCopyGroupsInProgres&&this.isGroupsActionsAvailable?"COMMON.HINT.COPY_CATEGORY_IN_PROGRESS":""}get isActionsDisabled(){return this.isCopyGroupsInProgres}get isCopyGroupsInProgres(){return this.copyStatus===O.PENDING}get selectedGroups(){return this.selection.selectedItems}get pageIds(){return this.selection.tablePageItems}get selectedCount(){return this.selection.selectedCount}get isAllSelected(){return this.selection.allSelected}get isAnySelected(){return this.selection.anySelected}get pageSelected(){return this.selection.wholePageSelected}get someItemsOnPageSelected(){return this.selection.somePageItemsSelected}constructor(){super(),this.subscriptions=b(A),this.categoriesApiService=b(we),this.messages=b(ye),this.responsiveService=b(qt),this.events=b(Ce),this.searchControl=new ne(""),this.whenGroupsSelected=new N,this.whenAllSelected=new N,this.removeGroup=new N,this.ICON=v,this.sortBy=new Ht("translations.name",!0),this.pagination=new Wt(0,1,10),this.groups=[],this.onResize()}ngOnInit(){this.initLoading=!0,this.subscribeOnPagination(),this.subscribeOnSearchText(),this.subscribeOnGroupsAssigning(),this.fetchGroups()}onResize(){this.isMobile=this.responsiveService.isMobileWidth()}refetchGroups(){this.pagination.changePage(1),this.selection.resetSelected(),this.fetchGroups()}changePage(i){this.pagination.changePage(i),this.fetchGroups()}selectAllGroups(){this.selection.selectAll()}unselectAllGroups(){this.selection.resetSelected()}togglePageSelection(){this.selection.togglePageSelection()}groupSelected(i){this.selection.selectItem(i)}subscribeOnPagination(){this.subscriptions.addSubscription(this.pagination.perPageControl.valueChanges.subscribe(()=>{this.refetchGroups()}))}subscribeOnSearchText(){this.subscriptions.addSubscription(this.searchControl.subscribe(()=>{this.refetchGroups()}))}subscribeOnGroupsAssigning(){this.subscriptions.addSubscription(this.events.subscribe(fe.GroupsAssigned,()=>{this.refetchGroups()}))}fetchGroups(){let i=this.getSearchOptions();this.subscriptions.addSubscription(this.wait(this.categoriesApiService.fetchGroups(this.categoryId,i)).subscribe({next:a=>{this.groups=a.data,this.selection.setPageItems([...this.groups]),this.pagination.page=a.page,this.pagination.all!==a.allCount&&(this.pagination.all=a.allCount,this.selection.setAllItemsCount(a.allCount)),this.pagination.pages!==a.pages&&(this.pagination.pages=a.pages),this.initLoading=!1},error:()=>{this.messages.addError("MESSAGES.GROUPS_FETCH_FAILED"),this.groups=[],this.initLoading=!1}}))}getSearchOptions(){return{search:this.searchControl.value,page:this.pagination.page,perPage:this.pagination.perPage,sort:this.sortBy.field,sortOrder:this.sortBy.order}}};o.\u0275fac=function(a){return new(a||o)}
1,o.\u0275cmp=P({type:o,selectors:[["app-category-groups-table"]],hostBindings:function(a,n){a&1&&y("resize",function(){return n.onResize()},st)},inputs:{categoryId:"categoryId",category:"category",copyStatus:"copyStatus",categoryAccess:"categoryAccess",selection:"selection",searchControl:"searchControl"},outputs:{whenGroupsSelected:"whenGroupsSelected",whenAllSelected:"whenAllSelected",removeGroup:"removeGroup"},features:[U([A]),V],decls:6,vars:5,consts:[[1,"w-full"],[1,"w-full","mt-4","mb-2",3,"searchText","isDisabled"],[3,"isLoading"],["emptyStateImage","14",1,"block","mt-16",3,"header"],[3,"selectedCount","isAllSelected","isNonSelected"],[1,"flex","w-full"],[1,"p-2","border-x","border-b","border-neutral-400"],[3,"whenSelectAll","whenUnselectAll","selectedCount","isAllSelected","isNonSelected"],[1,"grid","grid-cols-1","w-full"],["sortField","translations.name",3,"sortChanged","isFirst","sortable","sortBy"],[1,"flex","items-center"],[1,"mr-10",3,"selected","intermediate","disabled"],[1,"min-w-[120px]",3,"isLast"],[1,"min-w-[120px]"],[1,"min-w-[48px]",3,"isLast"],[1,"mr-10",3,"selectEmit","selected","intermediate","disabled"],[3,"group","category","copyStatus","categoryAccess","selectedGroups","isStudentVisible"],[3,"group","category","copyStatus","categoryAccess","selectedGroups","isFirst","isStudentVisible"],[3,"selectEmit","removeGroup","group","category","copyStatus","categoryAccess","selectedGroups","isStudentVisible"],[3,"selectEmit","removeGroup","group","category","copyStatus","categoryAccess","selectedGroups","isFirst","isStudentVisible"],[3,"pageChanged","pagination"]],template:function(a,n){a&1&&(l(0,"div",0)(1,"h5"),g(2),u(3,"translate"),c(),d(4,ho,1,0,"app-inplace-loading"),d(5,Po,3,3),c()),a&2&&(r(2),J(_(3,3,"COMMON.TITLE.GROUPS")),r(2),m(n.initLoading?4:-1),r(),m(n.initLoading?-1:5))},dependencies:[Se,Dt,Te,Ge,jt,zt,Qt,z,q,Ve,Pe,Kt,M],encapsulation:2});let t=o;return t})()});function Mo(t,o){t&1&&(l(0,"div",3),f(1,"app-inplace-loading"),c())}function wo(t,o){if(t&1&&De(0,9),t&2){s(2);let e=Ue(4);p("ngTemplateOutlet",e)}}function No(t,o){if(t&1&&De(0,9),t&2){s(2);let e=Ue(6);p("ngTemplateOutlet",e)}}function Ro(t,o){if(t&1){let e=S();l(0,"app-alert-clossable",12),u(1,"translate"),y("afterClosed",function(){C(e);let a=s(2);return h(a.categoryGroupsSharingInProgress=!1)}),c()}t&2&&p("titleText",_(1,1,"COMMON.HINT.GROUPS_PUBLISHING"))}function Vo(t,o){if(t&1){let e=S();l(0,"app-loading-spinner",4)(1,"div",5)(2,"div",6)(3,"h3",7),u(4,"translatedValue"),g(5),u(6,"translatedValue"),c(),f(7,"app-entity-image",8),c()(),d(8,wo,1,1,"ng-container",9),d(9,No,1,1,"ng-container",9),d(10,Ro,2,3,"app-alert-clossable",10),l(11,"app-category-groups-table",11),y("removeGroup",function(a){C(e);let n=s();return h(n.removeGroup(a))}),c()()}if(t&2){let e=s();p("isLoading",e.pending),r(3),p("title",x(4,14,e.category,"name")),r(2),T(" ",x(6,17,e.category,"name")," "),r(2),p("entity",e.category)("gradients",e.CATEGORY_GRADIENTS),r(),m(e.selectedGroups.length?-1:8),r(),m(e.selectedGroups.length?9:-1),r(),m(e.categoryGroupsSharingInProgress?10:-1),r(),p("categoryId",e.categoryId)("category",e.category)("copyStatus",e.copyStatus)("categoryAccess",e.categoryAccess)("selection",e.selection)("searchControl",e.searchControl)}}function Bo(t,o){if(t&1){let e=S();l(0,"app-block-ui",14)(1,"div",15)(2,"app-button",16),y("whenClicked",function(){C(e);let a=s(2);return h(a.manageSharing())}),g(3),u(4,"translate"),c(),l(5,"app-button",16),y("whenClicked",function(){C(e);let a=s(2);return h(a.addNewGroups())}),g(6),u(7,"translate"),c(),l(8,"app-button",16),y("whenClicked",function(){C(e);let a=s(2);return h(a.confirmPublishGroups())}),g(9),u(10,"translate"),c(),l(11,"app-popover-actions",17),f(12,"app-icon-button",18),c()()()}if(t&2){let e=s(2);p("disabled",e.isCopyGroupsInProgres),r(2),p("prefixIcon",e.ICON.SHARE)("type",e.BUTTON_TYPE.DEFAULT),r(),T(" ",_(4,14,"COMMON.BUTTON.SHARE")," "),r(2),p("prefixIcon",e.ICON.PLUS)("type",e.BUTTON_TYPE.DEFAULT),r(),T(" ",_(7,16,"GROUP.BUTTON.ADD_GROUP")," "),r(2),p("prefixIcon",e.ICON.EXPORT)("type",e.BUTTON_TYPE.DEFAULT),r(),T(" ",_(10,18,"COMMON.BUTTON.PUBLISH_ALL")," "),r(2),p("popoverItems",e.morePopoverOptions),r(),p("icon",e.ICON.MORE)("type",e.BUTTON_TYPE.DEFAULT)("size",e.ICON_BUTTON_SIZE.BIG)}}function Lo(t,o){if(t&1){let e=S();l(0,"app-button",16),y("whenClicked",function(){C(e);let a=s(3);
1return h(a.mapWithExisting())}),g(1),u(2,"translate"),c()}if(t&2){let e=s(3);p("prefixIcon",e.ICON.MAPPING)("type",e.BUTTON_TYPE.DEFAULT),r(),T(" ",_(2,3,"COMMON.BUTTON.MAP_WITH_EXISTING")," ")}}function Do(t,o){if(t&1){let e=S();l(0,"div",15)(1,"app-button",19),y("whenClicked",function(){C(e);let a=s(2);return h(a.confirmCopyCategory())}),g(2),u(3,"translate"),c(),d(4,Lo,3,5,"app-button",20),c()}if(t&2){let e=s(2);r(),p("disabled",!e.categoriesPermissions.copyingAllowed)("prefixIcon",e.ICON.COPY)("type",e.BUTTON_TYPE.DEFAULT),r(),T(" ",_(3,5,"COMMON.TITLE.COPY_CATEGORY")," "),r(2),m(e.category.groups!=null&&e.category.groups.length?4:-1)}}function Uo(t,o){if(t&1){let e=S();l(0,"app-block-ui",14)(1,"div",21),u(2,"translate"),l(3,"app-switch",22),u(4,"translate"),y("changeHandler",function(){C(e);let a=s(2);return h(a.toggleLearnersVisibility())}),c(),f(5,"app-icon",23),c()()}if(t&2){let e=s(2);p("disabled",e.isCopyGroupsInProgres),r(),p("title",_(2,6,"COMMON.HINT.CATEGORY_VISIBILITY_FOR_USERS")),r(2),p("text",_(4,8,"COMMON.LABEL.CATEGORY_VISIBLE_FOR_USERS"))("checked",e.category.isStudentVisible),r(2),p("icon",e.ICON.HELP_CIRCLE)("type",e.ICON_TYPE.GREY)}}function Fo(t,o){if(t&1&&(l(0,"div",13),d(1,Bo,13,20,"app-block-ui",14),d(2,Do,5,7,"div",15),d(3,Uo,6,10,"app-block-ui",14),c()),t&2){let e=s();r(),m(e.isEditCategoryActionsVisible?1:-1),r(),m(e.isCopyCategoryActionsVisible?2:-1),r(),m(e.isEditCategoryActionsVisible?3:-1)}}function ko(t,o){if(t&1){let e=S();l(0,"app-block-ui",14)(1,"app-button",24),y("whenClicked",function(){C(e);let a=s(2);return h(a.confirmRemoveSelectedGroups())}),g(2),u(3,"translate"),c()()}if(t&2){let e=s(2);p("disabled",e.isCopyGroupsInProgres),r(),p("prefixIcon",e.ICON.TRASH)("type",e.BUTTON_TYPE.ERROR),r(),T(" ",_(3,4,"COMMON.BUTTON.REMOVE")," ")}}function Yo(t,o){if(t&1&&d(0,ko,4,6,"app-block-ui",14),t&2){let e=s();m(e.isEditCategoryActionsVisible?0:-1)}}var Be,Le,rt=w(()=>{G();ge();Be=gi(Ci());at();He();ze();ri();Mt();tt();Vi();he();bi();Xe();li();ei();Ni();je();ft();nt();Ii();Ne();Vt();Nt();hi();et();xt();it();ue();Si();Qe();Ee();Je();G();Ze();Ke();Le=(()=>{let o=class o extends xe{constructor(){super(...arguments),this.route=b(Ct),this.subscriptions=b(A),this.categoriesApiService=b(we),this.messages=b(ye),this.categoriesModalsService=b(te),this.breadcrumbService=b(Me),this.translate=b(ht),this.events=b(Ce),this.router=b(_e),this.schoolsService=b(kt),this.CATEGORY_GRADIENTS=oi,this.ICON=v,this.ICON_TYPE=F,this.BUTTON_TYPE=vt,this.ICON_BUTTON_SIZE=It,this.categoriesPermissions={},this.loading=!0,this.morePopoverOptions=[],this.categoryGroups=[],this.newAddedGroups=[],this.categoryGroupsSharingInProgress=!1,this.searchControl=new ne(""),this.selection=new $t}get isEditCategoryActionsVisible(){return this.categoryAccess===E.OWN}get isCopyCategoryActionsVisible(){return this.categoryAccess===E.SHARED}get isCopyGroupsInProgres(){return this.copyStatus===O.PENDING}get selectedGroups(){return this.selection.selectedItems}get isAllSelected(){return this.selection.allSelected}ngOnInit(){this.categoryId=this.route.snapshot.paramMap.get("id"),this.subscribeOnGroupsAssign(),this.subscribeOnCategoryGroupsCoppied(),this.subscribeForLanguageChange(),this.fetchCategory(),this.initMoreOptions()}manageSharing(){let i=this.category.sharedWithSchools||[];this.subscriptions.addSubscription(this.categoriesModalsService.manageCategoriesSharing([this.categoryId],i).onClose.subscribe(([a,n])=>{this.updateSharedWithSchools(a,n),(a.length||n.length)&&(this.categoryGroupsSharingInProgress=!0)}))}toggleLearnersVisibility(){let i=!this.category.isStudentVisible;this.subscriptions.addSubscription(this.wait(this.categoriesApiService.updateCategory({_id:this.categoryId,isStudentVisible:i})).subscribe({next:a=>{this.category=a,i&&this.messages.addInfo("COMMON.TITLE.ONLY_PUBLISHED_VISIBLE",{life:3e3},"COMMON.HINT.PUBLISH_DRAFT_FOR_VISIBILITY")},error:()=>{this.messages.addError("MESSAGES.CATEGORY_SAVED_FAILED")}}))}addNewGroups(){this.categoriesModalsService.openAssignGroupsModal(this.categoryId,this.categoryGroups,this.assignGroupsToCategory.bind(this))}confirmRemoveSelectedGroups(){this.subscriptions.addSubscription(this.categoriesModalsService.confirmCategoryAction(R.removeCategoryGroups,this.category).onClose.subscribe(i=>{if(i){let a=this.selectedGroups.map(ee);this.removeGroups(a,this.isAllSelected,this.searchControl.value)}}))}removeGroup(i){this.removeGroups([i])}confirmPublishGroups(){this.subscriptions.addSubscription(this.categoriesModalsService.confirmCategoryAction(R.publishCoursesInCategory).onClose.subscribe(i=>{i&&this.publishGroups()}))}confirmCopyCategory(){this.categoriesPermissions.copyingAllowed&&this.subscriptions.addSubscription(this.categoriesModalsService.confirmCategoryAction(R.copyCategory,this.category).onClose.subscribe(i=>{i&&this.copyCategory()}))}
1mapWithExisting(){this.categoriesModalsService.mapWithExistingCategory(this.categoryId).onClose.subscribe(({mapped:i})=>{i&&this.messages.addInfo("MESSAGES.COPY_CATEGORY_GROUPS_IN_PROGRESS",void 0,"COMMON.HINT.COPY_CATEGORY_GROUPS_IN_PROGRESS")})}subscribeOnGroupsAssign(){this.subscriptions.addSubscription(this.events.subscribe(fe.GroupsAssigned,()=>{this.categoryGroups.push(...this.newAddedGroups),this.newAddedGroups=[]}))}subscribeOnCategoryGroupsCoppied(){this.subscriptions.addSubscription(this.events.subscribe(wt.CategoryCoursesCoppied,i=>{i.status===O.SUCCESS&&i.categoryId===this.categoryId&&(this.fetchCategory(),this.categoryGroupsTable.refetchGroups())}))}fetchCategory(){this.subscriptions.addSubscription(this.categoriesApiService.fetchCategoryById(this.categoryId).subscribe({next:i=>{this.categoryCame(i)},error:()=>{this.messages.addError("MESSAGES.FETCH_CATEGORY_FAILED")}}))}categoryCame(i){this.category=i.category,this.copyStatus=i.copyStatus,this.categoryGroups=i.category.groups,this.updateBreadcrumb(),this.initCategoryAccess(this.category),this.getCategoriesPermissions(),this.loading=!1,i.copyStatus===O.PENDING&&this.messages.addInfo("MESSAGES.COPY_CATEGORY_GROUPS_IN_PROGRESS",void 0,"COMMON.HINT.COPY_CATEGORY_GROUPS_IN_PROGRESS")}updateBreadcrumb(){this.breadcrumbService.setCustomItem$.next({label:yt(this.category.translations?.name,this.translate.currentLang),type:ti.CATEGORY,replaceSameType:!0,id:this.categoryId,url:`/${We}/${$e}/${this.categoryId}`,params:{}})}initMoreOptions(){this.morePopoverOptions=[new H({text:"COMMON.BUTTON.EDIT",icon:v.EDIT,command:this.editCategory.bind(this)}),new be,new H({text:"COMMON.BUTTON.REMOVE",icon:v.TRASH,iconType:F.SECONDARY,command:this.confirmRemovingCategory.bind(this)})]}editCategory(){this.subscriptions.addSubscription(this.categoriesModalsService.manageCategory("COMMON.TITLE.EDIT_CATEGORY",this.category).onClose.subscribe(i=>{i&&(this.category=i)}))}confirmRemovingCategory(){this.subscriptions.addSubscription(this.categoriesModalsService.confirmCategoryAction(R.removeCategory,this.category).onClose.subscribe(i=>{i?.radio&&this.removeCategory(i?.radio)}))}removeCategory(i){this.subscriptions.addSubscription(this.wait(this.categoriesApiService.deleteCategory(this.categoryId,i)).subscribe({next:()=>{window.history.back()},error:()=>{this.messages.addError("MESSAGES.REMOVE_CATEGORY_FAILED")}}))}updateSharedWithSchools(i,a){let n=this.category.sharedWithSchools||[],I=(0,Be.difference)(i,n),_i=(0,Be.difference)(n,a);this.category.sharedWithSchools=[..._i,...I]}assignGroupsToCategory(i,a){return this.newAddedGroups=a,this.categoriesApiService.addGroups(i,a)}removeGroups(i,a,n){this.subscriptions.addSubscription(this.wait(this.categoriesApiService.removeGroups(this.categoryId,i,a,n)).subscribe({next:()=>{this.categoryGroupsTable.refetchGroups(),this.clearCategoryGroups(i)},error:()=>{this.messages.addError("MESSAGES.CATEGORY_COURSES_REMOVING_FAILED")}}))}clearCategoryGroups(i){this.categoryGroups=(0,Be.difference)(this.categoryGroups,i)}publishGroups(){this.subscriptions.addSubscription(this.wait(this.categoriesApiService.publishGroups(this.categoryId)).subscribe({next:()=>{this.categoryGroupsTable.refetchGroups(),this.messages.addSuccess("MESSAGES.CATEGORY_COURSES_PUBLISH_SUCCESS")},error:()=>{this.messages.addError("MESSAGES.CATEGORY_COURSES_PUBLISH_FAILED")}}))}subscribeForLanguageChange(){this.subscriptions.addSubscription(this.translate.onLangChange.subscribe(()=>{this.updateBreadcrumb()}))}initCategoryAccess(i){i.school===this.schoolsService.activeSchool._id?this.categoryAccess=E.OWN:this.categoryAccess=E.SHARED}getCategoriesPermissions(){this.categoriesApiService.getCategoiesPermissions().subscribe(i=>{this.categoriesPermissions=i})}copyCategory(){this.wait(this.categoriesApiService.copy\u0421ategory(this.category._id)).subscribe(i=>{this.router.navigateByUrl(`/${We}/${$e}/${this.categoryId}`),this.categoryId=i.category._id,this.categoryCame(i),this.categoryGroupsTable.refetchGroups(),i.copyStatus===O.SUCCESS&&this.messages.addSuccess("MESSAGES.COPY_CATEGORY_GROUPS_SUCCESS",void 0,"COMMON.HINT.COPY_CATEGORY_GROUPS_SUCCESS")})}ngOnDestroy(){this.breadcrumbService.resetBreadcrumb()}};o.\u0275fac=(()=>{let i;return function(n){return(i||(i=ae(o)))(n||o)}})(),o.\u0275cmp=P({type:o,selectors:[["app-category-page"]],viewQuery:function(a,n){if(a&1&&ct(oe,5),a&2){let I;dt(I=mt())&&(n.categoryGroupsTable=I.first)}},features:[U([A,te]),V],decls:7,vars:2,consts:[["categoryActionButtons",""],["removeGroups",""],[1,"w-full","h-full","p-4"],[1,"mt-8"],[3,"isLoading"],[1,"w-full"],[1,"flex","justify-between","items-center","w-full"],[1,"line-clamp-2","max-w-[calc(100%_-_140px)]",3,"title"],["imageField","coverImage.url","colorField","backgroundColor","styleClass","w-24 h-24 rounded-full cursor-pointer",3,"entity","gradients"],[3,"ngTemplateOutlet"],[1,"mt-7","block",3,"titleText"],[1,"block","mt-7",3,"removeGroup","categoryId","category","copyStatus","categoryAccess","selection","searchControl"],[1,"mt-7","block",3,"afterClosed","titleText"],[1,"mt-4","flex","items-center","justify-between"],["message","COMMON.HINT.COPY_CATEGORY_IN_PROGRESS",3,"disabled"],[1,"flex","items-center"],["hideText","md",1,"mr-2",3,"whenClicked","prefixIcon","type"],[3,"popoverItems"],["trigger","",1,"mr-2",3,"icon","type","size"],["hideText","md",1,"mr-2",3,"whenClicked","disabled","prefixIcon","type"],["hideText","md",1,"mr-2",3,"prefixIcon","type"],[1,"flex","items-center",3,"title"],[1,"mr-2",3,"changeHandler","text","checked"],[3,"icon","type"],[3,"whenClicked","prefixIcon","type"]],template:function(a,n){a&1&&(l(0,"div",2),d(1,Mo,2,0,"div",3),d(2,Vo,12,20,"app-loading-spinner",4),c(),pt(3,Fo,4,3,"ng-template",null,0,ke)(5,Yo,1,1,"ng-template",null,1,ke)),a&2&&(r(),m(n.loading?1:-1),r(),m(n.loading?-1:2))},dependencies:[Se,Te,X,_t,Pt,oe,Y,Et,$,W,Gt,Ut,k,Z,Q,M],encapsulation:2});let t=o;return t})()});var Ho,Wo,mi,ui=w(()=>{He();Ti();rt();Ei();je();G();Ho={except:[Ie.STUDENT,Ie.SUPER_ADMIN,Ie.TEACHER],redirectTo:{"SUPER-ADMIN":`/${Tt}`,default:`/${bt}`}},Wo=[{path:":id",component:Le,canActivate:[Rt],data:{permissions:Ho}}],mi=(()=>{let o=class o{};o.\u0275fac=function(a){return new(a||o)}
1,o.\u0275mod=se({type:o}),o.\u0275inj=re({imports:[Ye.forChild(Wo),Ye]});let t=o;return t})()});var pa,$o=w(()=>{ue();Jt();Di();rt();ui();nt();Re();ot();Ui();Li();Bi();Ri();vi();qe();G();pa=(()=>{let o=class o{};o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=se({type:o}),o.\u0275inj=re({imports:[gt,ni,Pe,mi,ai,ii,Ft,j,si,Le,oe,q,Ve,pi]});let t=o;return t})()});$o();export{pa as CategoriesModule};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.