1import{e as I}from"./chunk-H73H5QHZ.js";import{E,F as R,c as T,u as k}from"./chunk-ZH6PW57E.js";import{Bb as _,Db as j,Fb as a,Oa as o,Qb as m,Qf as S,Rb as x,Ua as C,Ub as h,Ud as y,Wb as u,Wd as w,Xa as v,be as D,hb as b,lb as d,mb as s,mc as M,nc as P,oa as g,pa as f,rb as p,sb as i,tb as r,ub as c,uf as O}from"./chunk-IKJR3UV5.js";function V(t,B){if(t&1&&(i(0,"div",10)(1,"div")(2,"small",11),h(3),M(4,"translate"),r()()()),t&2){let e=a(2);o(2),x("text-italic",((e.project.description==null?null:e.project.description.length)??0)===0),p("title",e.project.description),o(),u(" ",(e.project.description==null?null:e.project.description.length)>0?e.project.description:P(4,4,"projects.exampleProjects.NoDescriptionAvailable")," ")}}function z(t,B){if(t&1){let e=_();i(0,"div",1),j("appContextMenu",function(l){g(e);let N=a();return f(l.open(N.getContextMenu()))}),i(1,"div",2),c(2,"div",3),i(3,"div",4),c(4,"app-project-thumbnail",5),i(5,"div",6)(6,"span"),c(7,"ng-icon",7),r()()()(),i(8,"div",8)(9,"h5",9),h(10),r()(),d(11,V,5,6,"div",10),r()}if(t&2){let e=a();b("data-testid",e.project.name),o(2),m("background-color",e.project.library.color),o(2),p("project",e.project)("borderStyle",e.ThumbnailBorderStyle.None),o(2),m("background-color",e.project.library.color),o(3),x("mb-1",e.showDescription),p("title",e.project.name),o(),u(" ",e.project.name," "),o(),s(e.showDescription?11:-1)}}var W=(()=>{class t{constructor(e){this.projectMenuService=e,this.showDescription=!0,this.ThumbnailBorderStyle=E}getContextMenu(){return this.projectMenuService.createDemoProjectContextMenu(this.project)}static{this.\u0275fac=function(n){return new(n||t)(C(I))}}static{this.\u0275cmp=v({type:t,selectors:[["app-demo-project-card"]],inputs:{project:"project",showDescription:"showDescription"},decls:1,vars:1,consts:[["matRipple","","appTouchRipple","",1,"card"],["matRipple","","appTouchRipple","",1,"card",3,"appContextMenu"],[1,"head"],[1,"color-stripe"],[1,"image-container"],[3,"project","borderStyle"],[1,"example-ribbon","hide-on-hover"],["size","24","name","ion-school-outline"],[1,"card-body"],["appEllipsify","",3,"title"],[1,"card-footer"],[1,"text-muted",3,"title"]],template:function(n,l){n&1&&d(0,z,12,12,"div",0),n&2&&s(l.project?0:-1)},dependencies:[O,k,R,D,T,w,S,y],styles:[".card[_ngcontent-%COMP%]{border-radius:6px;overflow:hidden;width:100%;cursor:pointer;-webkit-user-select:none;user-select:none;transition:all .1s ease-out}.color-stripe[_ngcontent-%COMP%]{border-radius:6px 6px 0 0;height:6px;background-color:#888}.card-body[_ngcontent-%COMP%]{padding:0;margin:0 12px;overflow:hidden}.card-body[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:1em;margin:8px 0}.image-container[_ngcontent-%COMP%]{position:relative;border-bottom:1px solid rgba(0,0,0,.175)}.card-footer[_ngcontent-%COMP%]{background-color:#fff;border-radius:0 0 6px 6px;padding-left:12px;padding-right:12px}.card-footer[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{height:44px;line-height:.9;overflow:hidden;text-decoration:none;text-overflow:ellipsis}.text-italic[_ngcontent-%COMP%]{font-style:italic;color:#666}.example-ribbon[_ngcontent-%COMP%]{color:#fff;width:40px;height:40px;overflow:hidden;position:absolute;top:0;right:0;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.example-ribbon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;width:100%;display:block;padding:8px 0;color:#fff;text-align:center}@media(hover:hover){.card[_ngcontent-%COMP%]:hover{box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}.card[_ngcontent-%COMP%]:hover .hide-on-hover[_ngcontent-%COMP%]{opacity:0;transition:.25s ease-in-out all}}"],changeDetection:0})}}return t})();export{W as a};
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.