PageSourceSearch

https://app.informationhub.io/libs_app_client_marketplace_templates_feature_src_index_ts.7d62c2bd65b29478.js

js informationhub.io collected 2026-10-08 10:41:26 UTC 11,345 bytes, 20 lines download raw bytes

1"use strict";(self.webpackChunkapp_client=self.webpackChunkapp_client||[]).push([["libs_app_client_marketplace_templates_feature_src_index_ts","libs_app_client_shared_components_empty-content_ui_src_lib_app-client-shared-components-empty-718386"],{60638(F,C,e){e.d(C,{AppClientMarketplaceTemplatesFeatureModule:()=>et});var s=e(65340),n=e(37582),l=e(20504);let g=(()=>{class i{static{this.type="[/Templates] FindAllTemplates"}}return i})();var f=e(90674),u=e(92341),a=e(82578),h=e(428),d=e(49102),c=e(76014),M=e(83756),O=e(17862);let A=(()=>{class i{static{this.type="[/Templates] SetTemplates"}constructor(o){this.templates=o}}return i})(),R=(()=>{class i{static{this.type="[/Templates] FindAllTemplatesSuccess"}constructor(o){this.result=o}}return i})(),x=(()=>{class i{static{this.type="[/Templates] FindAllTemplatesError"}constructor(o){this.error=o}}return i})(),y=class E{constructor(){this.apollo=(0,l.WQX)(h.Ic),this.toastService=(0,l.WQX)(f.ToastService),this.store=(0,l.WQX)(a.il)}static getState(r){return r}static templates(r){return r.templates}findAllTemplates(r){let o="cache-only";const m=this.store.selectSnapshot(T=>T.network.status);m&&(o="network-only");const b=h.J1`
2      query FindAllTemplates {
3        findAllTemplates {
4          id
5          name
6          description
7          photoURL
8          organisationLabel {
9            slug
10          }
11          groupLabel {
12            slug
13          }
14          user {
15            username
16          }
17          visibility
18        }
19      }
20    `,v=this.apollo.watchQuery({query:b,variables:{visPublic:u.xy.PUBLIC},fetchPolicy:o});return v.refetch(),v.valueChanges.pipe((0,c.s)(1),(0,M.M)(T=>{T.data&&m&&this.apollo.client.cache.writeQuery({query:b,data:T.data}),r.dispatch(new R(T))}),(0,O.W)(T=>r.dispatch(new x(T))))}findAllTemplatesSuccess(r,{result:o}){r.dispatch(new A(o?.data?.findAllTemplates||[]))}findAllTemplatesError(r,{error:o}){this.toastService.showError("Failed to fetch templates"),console.error("Find all templates error: ",o.message)}setTemplates(r,{templates:o}){r.setState((0,d.jM)(m=>{m.templates=o}))}static{this.\u0275fac=function(o){return new(o||E)}}static{this.\u0275prov=l.jDH({token:E,factory:E.\u0275fac})}};(0,n.Cg)([(0,a.rc)(g),(0,n.Sn)("design:type",Function),(0,n.Sn)("design:paramtypes",[Object]),(0,n.Sn)("design:returntype",void 0)],y.prototype,"findAllTemplates",null),(0,n.Cg)([(0,a.rc)(R),(0,n.Sn)("design:type",Function),(0,n.Sn)("design:paramtypes",[Object,R]),(0,n.Sn)("design:returntype",void 0)],y.prototype,"findAllTemplatesSuccess",null),(0,n.Cg)([(0,a.rc)(x),(0,n.Sn)("design:type",Function),(0,n.Sn)("design:paramtypes",[Object,x]),(0,n.Sn)("design:returntype",void 0)],y.prototype,"findAllTemplatesError",null),(0,n.Cg)([(0,a.rc)(A),(0,n.Sn)("design:type",Function),(0,n.Sn)("design:paramtypes",[Object,A]),(0,n.Sn)("design:returntype",void 0)],y.prototype,"setTemplates",null),(0,n.Cg)([(0,a.MD)(),(0,n.Sn)("design:type",Function),(0,n.Sn)("design:paramtypes",[Object]),(0,n.Sn)("design:returntype",void 0)],y,"getState",null),(0,n.Cg)([(0,a.MD)(),(0,n.Sn)("design:type",Function),(0,n.Sn)("design:paramtypes",[Object]),(0,n.Sn)("design:returntype",Array)],y,"templates",null),y=(0,n.Cg)([(0,a.Uw)({name:"browseTemplatesList",defaults:{templates:[]}})],y);var U=e(73843),L=e(49445),B=e(69510),t=e(28280),I=e(64584),p=e(70440),$=e(36870),W=e(17661),k=e(90649),D=e(6164),G=e(60314);const K=i=>["/project",i];function z(i,r){if(1&i&&t.nrm(0,"ion-img",12),2&i){const o=t.XpG().$implicit;t.Y8G("src",o.photoURL)}}function V(i,r){1&i&&t.nrm(0,"ion-img",13)}function X(i,r){if(1&i&&(t.j41(0,"ion-col",9)(1,"ion-card",10)(2,"div",11),t.nVh(3,z,1,1,"ion-img",12),t.nVh(4,V,1,0,"ion-img",13),t.k0s(),t.j41(5,"ion-card-header")(6,"ion-card-title"),t.EFF(7),t.k0s()(),t.j41(8,"ion-card-content")(9,"p"),t.EFF(10),t.k0s()()()()),2&i){const o=r.$implicit;t.R7$(),t.Y8G("routerLink",t.eq3(5,K,o.id)),t.R7$(2),t.vxM(o.photoURL?3:-1),t.R7$(),t.vxM(o.photoURL?-1:4),t.R7$(3),t.JRh(o.name),t.R7$(3),t.JRh(o.description)}}function Q(i,r){if(1&i&&(t.nrm(0,"ih-app-client-shared-components-empty-content-ui",14),t.nI1(1,"async")),2&i){const o=t.XpG();t.Y8G("hidden",t.bMT(1,2,o.busy$))("enableButton",!1)}}function N(i,r){1&i&&t.nrm(0,"ih-app-client-shared-components-skeleton-list-ui")}class S{constructor(){this.store=(0,l.WQX)(a.il),this.actions$=(0,l.WQX)(a.En),this.searchTerm="",this.breadcrumbs=[{title:"",link:["/browse"]},{title:"Templates",link:["/browse"]}]}ngOnInit(){this.store.dispatch(new g)}ionViewWillEnter(){this.store.dispatch(new U.j(this.breadcrumbs))}doRefresh(r){this.actions$.pipe((0,a.rM)(g),(0,M.M)(()=>{r.target.complete()}),(0,c.s)(1)).subscribe(),this.store.dispatch(new g)}static{this.\u0275fac=function(o){return new(o||S)}}static{this.\u0275cmp=t.VBU({type:S,selectors:[["ih-app-clienttemplates-feature"]],standalone:!1,decls:27,vars:9,consts:[["noItems",""],["slot","fixed",3,"ionRefresh"],["collapse","condense"],["size","large"],[2,"margin-bottom","20px"],["ngClass","ion-text-center",1,"headerText",2,"font-size","3em"],["ngClass","ion-text-center",1,"headerText",2,"font-size","1em","white-space","normal"],[3,"ngModelChange","ngModel"],["size-md","1",1,"ion-wrap"],["size-xs","12","size-sm","7","size-md","4","size-lg","2"],[3,"routerLink"],[1,"image-container"],["alt","template photo","width","100%","height","50%",1,"card-image",3,"src"],["src","https://ionicframework.com/docs/img/demos/card-media.png",1,"card-image"],["message","There are no templates available.",3,"hidden","enableButton"]],template:function(o,m){if(1&o){const b=t.RV6();t.nrm(0,"ih-app-client-shared-components-navbar-feature"),t.j41(1,"ion-content")(2,"ion-refresher",1),t.bIt("ionRefresh",function(v){return m.doRefresh(v)}),t.nrm(3,"ion-refresher-content"),t.k0s(),t.j41(4,"ion-header",2)(5,"ion-toolbar")(6,"ion-title",3),t.EFF(7,"Header"),t.k0s()()(),t.j41(8,"ion-header")(9,"ion-toolbar",4)(10,"ion-title",5),t.EFF(11,"Marketplace "),t.k0s(),t.j41(12,"ion-title",6),t.EFF(13,"The Information Hub's official Marketplace for"),t.k0s(),t.j41(14,"ion-title",6),t.EFF(15," Transdisciplinary Collaboration and Innovation "),t.k0s(),t.j41(16,"ion-searchbar",7),t.mxI("ngModelChange",function(v){return l.eBV(b),t.DH7(m.searchTerm,v)||(m.searchTerm=v),l.Njj(v)}),t.k0s()()(),t.j41(17,"ion-grid")(18,"ion-row",8),t.Z7z(19,X,11,7,"ion-col",9,t.fX1),t.nI1(21,"async"),t.nI1(22,"filterProjectsPipe"),t.k0s()(),t.DNE(23,Q,2,4,"ng-template",null,0,t.C5r),t.nVh(25,N,1,0,"ih-app-client-shared-components-skeleton-list-ui"),t.nI1(26,"async"),t.k0s()}
202&o&&(t.R7$(16),t.R50("ngModel",m.searchTerm),t.R7$(3),t.Dyx(t.i5U(22,4,t.bMT(21,2,m.templates$),m.searchTerm)),t.R7$(6),t.vxM(t.bMT(26,7,m.busy$)?25:-1))},dependencies:[I.YU,s.Wk,p.b_,p.I9,p.ME,p.tN,p.hU,p.W9,p.lO,p.eU,p.KW,p.To,p.Ki,p.ln,p.S1,p.BC,p.ai,p.Gw,p.N7,$.D,W.O,k.j,D.BC,D.vS,I.Jj,G.N],styles:["ion-card[_ngcontent-%COMP%]:hover{--background: var(--ion-color-step-100, #e6e6e6) !important}ion-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}ion-col[_ngcontent-%COMP%]{display:flex;flex:1 0 auto}.image-container[_ngcontent-%COMP%]{height:30vh;overflow:hidden;display:flex;justify-content:center;align-items:center}.card-image[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.headerText[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:10px;font-weight:700}"]})}}(0,n.Cg)([(0,a.l6)(y.templates),(0,n.Sn)("design:type",B.c)],S.prototype,"templates$",void 0),(0,n.Cg)([(0,a.l6)((0,L.S4)([g])),(0,n.Sn)("design:type",B.c)],S.prototype,"busy$",void 0);const H=[{path:"",pathMatch:"full",component:S}];let J=(()=>{class i{static{this.\u0275fac=function(m){return new(m||i)}}static{this.\u0275mod=t.$C({type:i})}static{this.\u0275inj=l.G2t({imports:[s.iI.forChild(H),s.iI]})}}return i})();var Y=e(12460),w=e(80327),Z=e(59465),_=e(45408),q=e(91875),tt=e(17954);let et=(()=>{class i{static{this.\u0275fac=function(m){return new(m||i)}}static{this.\u0275mod=t.$C({type:i})}static{this.\u0275inj=l.G2t({providers:[f.ToastService],imports:[I.MD,J,p.bv,a.rK.forFeature([y]),w.P,Z.K,s.iI,_.x,Y.U,D.YN,tt.L,q.mC]})}}return i})()},90649(F,C,e){e.d(C,{j:()=>u});var s=e(28280),n=e(70440),l=e(65340);function g(a,h){if(1&a&&(s.j41(0,"ion-row",1)(1,"ion-text",3),s.EFF(2),s.k0s()()),2&a){const d=s.XpG();s.R7$(2),s.JRh(d.message)}}function f(a,h){if(1&a&&(s.j41(0,"ion-row",2)(1,"ion-button",4),s.EFF(2),s.k0s()()),2&a){const d=s.XpG();s.R7$(),s.Y8G("routerLink",d.link),s.R7$(),s.SpI(" ",d.label," ")}}let u=(()=>{class a{constructor(){this.message="",this.label="Button",this.link="./create",this.imgSrc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAAAAACH5BAAAAAAALAAAAAABAAEAAAICTAEAOw==",this.enableButton=!0,this.enableImage=!0}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=s.VBU({type:a,selectors:[["ih-app-client-shared-components-empty-content-ui"]],inputs:{message:"message",label:"label",link:"link",imgSrc:"imgSrc",enableButton:"enableButton",enableImage:"enableImage"},standalone:!1,decls:3,vars:2,consts:[[1,"ion-justify-content-center","ion-align-items-center","ion-page"],[1,"ion-justify-content-center","ion-margin"],[1,"ion-justify-content-center"],["color","medium"],["expand","block","fill","outline","size","small",3,"routerLink"]],template:function(c,M){1&c&&(s.j41(0,"ion-grid",0),s.nVh(1,g,3,1,"ion-row",1),s.nVh(2,f,3,2,"ion-row",2),s.k0s()),2&c&&(s.R7$(),s.vxM(M.message?1:-1),s.R7$(),s.vxM(M.enableButton?2:-1))},dependencies:[n.Jm,n.lO,n.ln,n.IO,n.N7,l.Wk],styles:["ion-thumbnail[_ngcontent-%COMP%]{--size: 140px;--border-radius: 100%}"]})}}return a})()},12460(F,C,e){e.d(C,{U:()=>u});var s=e(64584),n=e(65340),l=e(70440),g=e(28280),f=e(20504);let u=(()=>{class a{static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275mod=g.$C({type:a})}static{this.\u0275inj=f.G2t({imports:[s.MD,l.bv,n.iI]})}}return a})()},73843(F,C,e){e.d(C,{h:()=>u,j:()=>s});let s=(()=>{class a{static{this.type="[Menu] SetBreadcrumbs"}constructor(d){this.breadcrumbs=d}}return a})();var n=e(37582),l=e(82578),g=e(49102),f=e(20504);let u=class j{static getState(h){return h}static breadcrumbs(h){return h.breadcrumbs}setBreadcrumbs(h,{breadcrumbs:d}){h.setState((0,g.jM)(c=>{c.breadcrumbs=d}))}static{this.\u0275fac=function(d){return new(d||j)}}static{this.\u0275prov=f.jDH({token:j,factory:j.\u0275fac})}};(0,n.Cg)([(0,l.rc)(s),(0,n.Sn)("design:type",Function),(0,n.Sn)("design:paramtypes",[Object,s]),(0,n.Sn)("design:returntype",void 0)],u.prototype,"setBreadcrumbs",null),(0,n.Cg)([(0,l.MD)(),(0,n.Sn)("design:type",Function),(0,n.Sn)("design:paramtypes",[Object]),(0,n.Sn)("design:returntype",void 0)],u,"getState",null),(0,n.Cg)([(0,l.MD)(),(0,n.Sn)("design:type",Function),(0,n.Sn)("design:paramtypes",[Object]),(0,n.Sn)("design:returntype",Array)],u,"breadcrumbs",null),u=(0,n.Cg)([(0,l.Uw)({name:"masthead",defaults:{breadcrumbs:[]}})],u)},80327(F,C,e){e.d(C,{P:()=>d});var s=e(64584),n=e(73843),l=e(65340),g=e(70440),f=e(28280),u=e(20504);let a=(()=>{class c{static{this.\u0275fac=function(A){return new(A||c)}}static{this.\u0275mod=f.$C({type:c})}static{this.\u0275inj=u.G2t({imports:[s.MD,g.bv,l.iI]})}}return c})();var h=e(82578);let d=(()=>{class c{static{this.\u0275fac=function(A){return new(A||c)}}static{this.\u0275mod=f.$C({type:c})}
20static{this.\u0275inj=u.G2t({imports:[s.MD,a,h.rK.forFeature([n.h])]})}}return c})()}}]);

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.