diff --git a/3028.36ca6d9b32732ad9.js b/3028.36ca6d9b32732ad9.js new file mode 100644 index 0000000..ea48c02 --- /dev/null +++ b/3028.36ca6d9b32732ad9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3028],{73028:(D,g,a)=>{a.r(g),a.d(g,{CommunityComponent:()=>z});var h=a(10467),t=a(54438),C=a(88834),l=a(25596),v=a(99213),u=a(96850),b=a(98703),F=a(30046),d=a(3902),f=a(60177),E=a(28741),O=a(55911),M=a(99631),y=a(96084),T=a(36815),R=a(85297),j=a(9183),k=a(14823),o=a(60385),p=a(53719);const i=()=>["/profile","did:dht:my6nm5s1n9xmuuh5yixe668k7xbkmmuddzatn1fojzgdg5f5to8y"];function m(n,s){1&n&&(t.j41(0,"mat-icon",3),t.EFF(1,"info"),t.k0s(),t.j41(2,"span",4),t.EFF(3,"About"),t.k0s())}function c(n,s){if(1&n&&(t.j41(0,"div",5)(1,"mat-card",6)(2,"mat-card-header")(3,"mat-card-title"),t.EFF(4,"About this community"),t.k0s(),t.j41(5,"mat-card-subtitle",7),t.EFF(6),t.nI1(7,"ago"),t.k0s()(),t.j41(8,"mat-card-content")(9,"p"),t.EFF(10),t.k0s(),t.j41(11,"p"),t.EFF(12," Tier: "),t.j41(13,"strong",8),t.EFF(14),t.k0s()(),t.j41(15,"p"),t.EFF(16," Type: "),t.j41(17,"strong",8),t.EFF(18),t.k0s()(),t.j41(19,"p"),t.EFF(20," Membership fee: $"),t.j41(21,"strong"),t.EFF(22),t.k0s()(),t.j41(23,"p"),t.EFF(24," Max members: "),t.j41(25,"strong"),t.EFF(26),t.k0s()()()(),t.j41(27,"mat-card",6)(28,"mat-card-header")(29,"mat-card-title"),t.EFF(30,"Owner"),t.k0s()(),t.j41(31,"mat-card-content"),t.nrm(32,"app-profile-header",9),t.k0s()()()),2&n){const e=t.XpG(2);t.R7$(5),t.Y8G("matTooltip",e.community().record.dateCreated),t.R7$(),t.SpI("Created ",t.bMT(7,8,e.community().record.dateCreated),""),t.R7$(4),t.SpI("About: ",e.community().data.bio,""),t.R7$(4),t.JRh(e.community().data.option),t.R7$(4),t.JRh(e.community().data.type),t.R7$(4),t.JRh(e.community().data.fee),t.R7$(4),t.JRh(e.community().data.members),t.R7$(6),t.Y8G("did",e.community().data.owners[0])}}function P(n,s){1&n&&(t.j41(0,"mat-icon",3),t.EFF(1,"chat"),t.k0s(),t.j41(2,"span",4),t.EFF(3,"Discussions"),t.k0s())}function I(n,s){1&n&&(t.j41(0,"div",5)(1,"mat-card",10)(2,"mat-card-content")(3,"button",11)(4,"mat-icon"),t.EFF(5,"chat"),t.k0s(),t.EFF(6," Post "),t.k0s(),t.j41(7,"button",11)(8,"mat-icon"),t.EFF(9,"event"),t.k0s(),t.EFF(10," Event "),t.k0s(),t.j41(11,"button",11)(12,"mat-icon"),t.EFF(13,"photo_library"),t.k0s(),t.EFF(14," Media "),t.k0s(),t.j41(15,"button",11)(16,"mat-icon"),t.EFF(17,"attach_file"),t.k0s(),t.EFF(18," File "),t.k0s()()(),t.j41(19,"mat-card",6)(20,"mat-card-header"),t.nrm(21,"img",12),t.j41(22,"mat-card-title"),t.EFF(23,"Sondre"),t.k0s(),t.j41(24,"mat-card-subtitle"),t.EFF(25),t.nI1(26,"ago"),t.k0s()(),t.j41(27,"mat-card-content")(28,"p"),t.EFF(29," Lorem ipsum dolor sit amet consectetur adipisicing elit. Esse cupiditate omnis consectetur facere modi dolore ipsum harum, distinctio corrupti aliquam possimus explicabo! Distinctio, adipisci. Ipsum, repellat! Velit eos consectetur in. Lorem ipsum dolor sit, amet consectetur adipisicing elit. Culpa vero accusantium rem repudiandae velit praesentium explicabo sit! Amet nulla repellat beatae pariatur, velit eius ut sunt, placeat labore, esse saepe? "),t.k0s()(),t.j41(30,"mat-card-actions")(31,"button",13),t.EFF(32,"LIKE"),t.k0s(),t.j41(33,"button",13),t.EFF(34,"COMMENT"),t.k0s()()(),t.j41(35,"mat-card",6)(36,"mat-card-header"),t.nrm(37,"img",14),t.j41(38,"mat-card-title"),t.EFF(39,"Lu"),t.k0s(),t.j41(40,"mat-card-subtitle"),t.EFF(41),t.nI1(42,"ago"),t.k0s()(),t.j41(43,"mat-card-content")(44,"p"),t.EFF(45," Lorem ipsum dolor sit amet consectetur adipisicing elit. Esse cupiditate omnis consectetur facere modi dolore ipsum harum, distinctio corrupti aliquam possimus explicabo! Distinctio, adipisci. Ipsum, repellat! Velit eos consectetur in. Lorem ipsum dolor sit, amet consectetur adipisicing elit. Culpa vero accusantium rem repudiandae velit praesentium explicabo sit! Amet nulla repellat beatae pariatur, velit eius ut sunt, placeat labore, esse saepe? "),t.k0s()(),t.j41(46,"mat-card-actions")(47,"button",13),t.EFF(48,"LIKE"),t.k0s(),t.j41(49,"button",13),t.EFF(50,"COMMENT"),t.k0s()()()()),2&n&&(t.R7$(25),t.JRh(t.bMT(26,2,"2024-07-16 10:00")),t.R7$(16),t.JRh(t.bMT(42,4,"2024-07-16 14:00")))}function L(n,s){1&n&&(t.j41(0,"mat-icon",3),t.EFF(1,"group"),t.k0s(),t.j41(2,"span",4),t.EFF(3,"Members"),t.k0s())}function x(n,s){if(1&n){const e=t.RV6();t.j41(0,"mat-form-field",25)(1,"mat-label"),t.EFF(2,"Search"),t.k0s(),t.nrm(3,"input",26),t.j41(4,"mat-icon",27),t.EFF(5,"search"),t.k0s()(),t.j41(6,"button",28),t.bIt("click",function(){t.eBV(e);const _=t.XpG(3);return t.Njj(_.hideMembersSearch())}),t.j41(7,"mat-icon"),t.EFF(8,"close"),t.k0s()()}}function A(n,s){if(1&n){const e=t.RV6();t.j41(0,"button",11)(1,"mat-icon"),t.EFF(2,"chat"),t.k0s(),t.EFF(3," Add Member "),t.k0s(),t.j41(4,"button",11)(5,"mat-icon"),t.EFF(6,"event"),t.k0s(),t.EFF(7," Invite "),t.k0s(),t.j41(8,"button",29),t.bIt("click",function(){t.eBV(e);const _=t.XpG(3);return t.Njj(_.searchMembers())}),t.j41(9,"mat-icon"),t.EFF(10,"seardh"),t.k0s(),t.EFF(11," Search "),t.k0s()}}function B(n,s){if(1&n&&(t.j41(0,"div",5)(1,"mat-card",10)(2,"mat-card-content",15),t.DNE(3,x,9,0)(4,A,12,0),t.k0s()(),t.j41(5,"div",16)(6,"a",17),t.nrm(7,"img",18),t.k0s(),t.j41(8,"a",19),t.nrm(9,"img",20),t.k0s(),t.j41(10,"a",19),t.nrm(11,"img",21),t.k0s(),t.j41(12,"a",19),t.nrm(13,"img",22),t.k0s(),t.j41(14,"a",19),t.nrm(15,"img",23),t.k0s(),t.j41(16,"a",19),t.nrm(17,"img",24),t.k0s()()()),2&n){const e=t.XpG(2);t.R7$(3),t.vxM(e.searchingMembers()?3:4),t.R7$(3),t.Y8G("routerLink",t.lJ4(7,i)),t.R7$(2),t.Y8G("routerLink",t.lJ4(8,i)),t.R7$(2),t.Y8G("routerLink",t.lJ4(9,i)),t.R7$(2),t.Y8G("routerLink",t.lJ4(10,i)),t.R7$(2),t.Y8G("routerLink",t.lJ4(11,i)),t.R7$(2),t.Y8G("routerLink",t.lJ4(12,i))}}function W(n,s){1&n&&(t.j41(0,"mat-icon",3),t.EFF(1,"event"),t.k0s(),t.j41(2,"span",4),t.EFF(3,"Events"),t.k0s())}function $(n,s){1&n&&(t.j41(0,"div",5)(1,"mat-card",10)(2,"mat-card-content")(3,"button",11)(4,"mat-icon"),t.EFF(5,"add"),t.k0s(),t.EFF(6," Create event "),t.k0s()()(),t.j41(7,"mat-card",30)(8,"mat-card-header")(9,"mat-card-title"),t.EFF(10,"Upcoming events"),t.k0s()(),t.j41(11,"mat-card-content")(12,"mat-list")(13,"mat-list-item")(14,"mat-icon",31),t.EFF(15,"event"),t.k0s(),t.j41(16,"div",32),t.EFF(17,"Summer Party 2024"),t.k0s(),t.j41(18,"div",33),t.EFF(19),t.nI1(20,"date"),t.k0s()(),t.j41(21,"mat-list-item")(22,"mat-icon",31),t.EFF(23,"event"),t.k0s(),t.j41(24,"div",32),t.EFF(25,"Workshop #5"),t.k0s(),t.j41(26,"div",33),t.EFF(27),t.nI1(28,"date"),t.k0s()()()(),t.j41(29,"mat-card-actions")(30,"button",13),t.EFF(31,"SEE MORE"),t.k0s()()(),t.j41(32,"mat-card",30)(33,"mat-card-header")(34,"mat-card-title"),t.EFF(35,"Past events"),t.k0s()(),t.j41(36,"mat-card-content")(37,"mat-list")(38,"mat-list-item")(39,"mat-icon",31),t.EFF(40,"event"),t.k0s(),t.j41(41,"div",32),t.EFF(42,"Workshop #4"),t.k0s(),t.j41(43,"div",33),t.EFF(44),t.nI1(45,"date"),t.k0s()()()(),t.j41(46,"mat-card-actions")(47,"button",13),t.EFF(48,"SEE MORE"),t.k0s()()()()),2&n&&(t.R7$(19),t.JRh(t.bMT(20,3,"2024-07-16 10:00")),t.R7$(8),t.JRh(t.bMT(28,5,"2024-07-30 10:00")),t.R7$(17),t.JRh(t.bMT(45,7,"2024-07-30 10:00")))}function U(n,s){1&n&&(t.j41(0,"mat-icon",3),t.EFF(1,"photo_library"),t.k0s(),t.j41(2,"span",4),t.EFF(3,"Media"),t.k0s())}function G(n,s){if(1&n&&(t.j41(0,"mat-card"),t.nrm(1,"img",36),t.k0s()),2&n){const e=s.$implicit;t.R7$(),t.Y8G("src",e.thumbnail,t.B4B)}}function K(n,s){if(1&n&&(t.j41(0,"div",5)(1,"div",34),t.DNE(2,G,2,1,"mat-card",35),t.k0s()()),2&n){const e=t.XpG(2);t.R7$(2),t.Y8G("ngForOf",e.photos())}}function N(n,s){1&n&&(t.j41(0,"mat-icon",3),t.EFF(1,"attach_file"),t.k0s(),t.j41(2,"span",4),t.EFF(3,"Files"),t.k0s())}function X(n,s){if(1&n){const e=t.RV6();t.j41(0,"mat-form-field",25)(1,"mat-label"),t.EFF(2,"Search"),t.k0s(),t.nrm(3,"input",26),t.j41(4,"mat-icon",27),t.EFF(5,"search"),t.k0s()(),t.j41(6,"button",28),t.bIt("click",function(){t.eBV(e);const _=t.XpG(3);return t.Njj(_.hideMembersSearch())}),t.j41(7,"mat-icon"),t.EFF(8,"close"),t.k0s()()}}function S(n,s){1&n&&(t.j41(0,"button",11)(1,"mat-icon"),t.EFF(2,"attach_file"),t.k0s(),t.EFF(3," Upload file "),t.k0s())}function Y(n,s){if(1&n&&(t.j41(0,"div",5)(1,"mat-card",10)(2,"mat-card-content",15),t.DNE(3,X,9,0)(4,S,4,0,"button",11),t.k0s()(),t.j41(5,"mat-card",37)(6,"mat-card-content")(7,"mat-list")(8,"mat-list-item")(9,"mat-icon",31),t.EFF(10,"attach_file"),t.k0s(),t.j41(11,"div",32),t.EFF(12,"Community Rules.pdf"),t.k0s(),t.j41(13,"div",33),t.EFF(14),t.nI1(15,"date"),t.nI1(16,"size"),t.k0s()(),t.j41(17,"mat-list-item")(18,"mat-icon",31),t.EFF(19,"attach_file"),t.k0s(),t.j41(20,"div",32),t.EFF(21,"Admin instructions.pdf"),t.k0s(),t.j41(22,"div",33),t.EFF(23),t.nI1(24,"date"),t.nI1(25,"size"),t.k0s()()()()()()),2&n){const e=t.XpG(2);t.R7$(3),t.vxM(e.searchingMembers()?3:4),t.R7$(11),t.Lme("",t.bMT(15,5,"2024-07-16 10:00")," | ",t.bMT(16,7,"100000"),""),t.R7$(9),t.Lme("",t.bMT(24,9,"2024-07-30 10:00")," | ",t.bMT(25,11,"350000"),"")}}function J(n,s){1&n&&(t.j41(0,"mat-tab-group")(1,"mat-tab"),t.DNE(2,m,4,0,"ng-template",1)(3,c,33,10,"ng-template",2),t.k0s(),t.j41(4,"mat-tab"),t.DNE(5,P,4,0,"ng-template",1)(6,I,51,6,"ng-template",2),t.k0s(),t.j41(7,"mat-tab"),t.DNE(8,L,4,0,"ng-template",1)(9,B,18,13,"ng-template",2),t.k0s(),t.j41(10,"mat-tab"),t.DNE(11,W,4,0,"ng-template",1)(12,$,49,9,"ng-template",2),t.k0s(),t.j41(13,"mat-tab"),t.DNE(14,U,4,0,"ng-template",1)(15,K,3,1,"ng-template",2),t.k0s(),t.j41(16,"mat-tab"),t.DNE(17,N,4,0,"ng-template",1)(18,Y,26,13,"ng-template",2),t.k0s()())}function V(n,s){1&n&&(t.j41(0,"div",0),t.nrm(1,"mat-spinner"),t.k0s())}let z=(()=>{class n{constructor(){var e=this;this.images=["nature","sky","grass","mountains","rivers","glacier","forest","streams","rain","clouds"],this.photos=(0,t.vPA)([]),this.app=(0,t.WQX)(y.d),this.layout=(0,t.WQX)(T.Y),this.route=(0,t.WQX)(F.nX),this.data=(0,t.WQX)(R.u),this.selectedCommunity=(0,t.vPA)(null),this.community=(0,t.vPA)(null),this.searchingMembers=(0,t.vPA)(!1),(0,t.QZP)((0,h.A)(function*(){e.app.initialized()&&e.selectedCommunity()&&(yield e.loadCommunity())}))}ngOnInit(){this.layout.marginOff(),this.route.paramMap.subscribe(r=>{this.layout.resetActions();const _=r.get("id");console.log("Loading community: ",_),this.selectedCommunity.set(_&&":id"!=_&&"home"!=_?r.get("id"):null)});const e=[];for(let r=0;r{a.d(g,{w:()=>k});var h=a(10467),t=a(54438),C=a(34635),l=a(25596),v=a(5794),u=a(345),b=a(78013),F=a(33347),d=a(14823),f=a(30046);const E=o=>["/profile",o];function O(o,p){if(1&o&&(t.nrm(0,"img",0),t.nI1(1,"safeResourceUrl")),2&o){const i=t.XpG();t.Y8G("routerLink",t.eq3(4,E,i.did()))("src",t.bMT(1,2,i.data().avatar),t.B4B)}}function M(o,p){if(1&o&&t.nrm(0,"img",1),2&o){const i=t.XpG();t.Y8G("routerLink",t.eq3(2,E,i.did()))("src","/avatar-placeholder.png",t.B4B)}}function y(o,p){if(1&o&&t.EFF(0),2&o){let i;const m=t.XpG(2);t.SpI(" (",null==(i=m.data().profile)?null:i.title,") ")}}function T(o,p){if(1&o&&(t.j41(0,"a",3),t.EFF(1),t.DNE(2,y,1,1),t.k0s()),2&o){let i,m;const c=t.XpG();t.Y8G("routerLink",t.eq3(3,E,c.did())),t.R7$(),t.SpI("",null==(i=c.data().profile)?null:i.name," "),t.R7$(),t.vxM(null!=(m=c.data().profile)&&m.title?2:-1)}}function R(o,p){if(1&o&&t.EFF(0),2&o){let i;const m=t.XpG(2);t.SpI(" (",null==(i=m.data().profile)?null:i.title,") ")}}function j(o,p){if(1&o&&(t.j41(0,"em")(1,"a",3),t.EFF(2,"No name set "),t.DNE(3,R,1,1),t.k0s()()),2&o){let i;const m=t.XpG();t.R7$(),t.Y8G("routerLink",t.eq3(2,E,m.did())),t.R7$(2),t.vxM(null!=(i=m.data().profile)&&i.title?3:-1)}}let k=(()=>{class o{constructor(){this.identity=(0,t.WQX)(C.K),this.profile=(0,t.WQX)(v.p),this.sanitizer=(0,t.WQX)(u.up),this.did=t.hFB.required(),this.data=(0,t.vPA)({})}ngAfterViewInit(){var i=this;return(0,h.A)(function*(){if(i.did()){let m=yield i.profile.loadProfile(i.did());i.data.set(m)}})()}static{this.\u0275fac=function(m){return new(m||o)}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["app-profile-header"]],inputs:{did:[1,"did"]},standalone:!0,features:[t.aNF],decls:10,vars:9,consts:[["mat-card-avatar","","onerror","this.src='/avatar-placeholder.png';this.onerror='';",1,"profile-thumbnail",3,"routerLink","src"],["mat-card-avatar","",1,"profile-thumbnail",3,"routerLink","src"],[1,"profile-header-title"],[3,"routerLink"],[1,"profile-header-subtitle"],[3,"routerLink","matTooltip"]],template:function(m,c){if(1&m&&(t.DNE(0,O,2,6,"img",0)(1,M,1,4,"img",1),t.j41(2,"div")(3,"div",2),t.DNE(4,T,3,5,"a",3)(5,j,4,4,"em"),t.k0s(),t.j41(6,"div",4)(7,"a",5),t.EFF(8),t.nI1(9,"did"),t.k0s()()()),2&m){let P;t.vxM(c.data().avatar?0:1),t.R7$(4),t.vxM(null!=(P=c.data().profile)&&P.name?4:5),t.R7$(3),t.Y8G("routerLink",t.eq3(7,E,c.did()))("matTooltip",c.did()),t.R7$(),t.JRh(t.bMT(9,5,c.did()))}},dependencies:[f.iI,f.Wk,d.uc,d.oV,l.Hu,l.QG,b.d,F.k],styles:[".profile-thumbnail[_ngcontent-%COMP%]{cursor:pointer;border-radius:50%;margin-right:1em}a[_ngcontent-%COMP%]{text-decoration:none}a[_ngcontent-%COMP%]:hover{text-decoration:underline}[_nghost-%COMP%]{display:flex}.profile-header-title[_ngcontent-%COMP%]{font-size:1.4em}.profile-header-subtitle[_ngcontent-%COMP%]{font-size:1em}"]})}}return o})()}}]); \ No newline at end of file diff --git a/3028.97d518034656f736.js b/3028.97d518034656f736.js deleted file mode 100644 index 76cc836..0000000 --- a/3028.97d518034656f736.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3028],{73028:(D,g,a)=>{a.r(g),a.d(g,{CommunityComponent:()=>z});var h=a(10467),t=a(54438),C=a(88834),l=a(25596),M=a(99213),u=a(96850),b=a(98703),F=a(30046),d=a(3902),f=a(60177),E=a(28741),O=a(55911),v=a(99631),y=a(96084),T=a(36815),R=a(85297),j=a(9183),k=a(14823),o=a(60385),p=a(53719);const i=()=>["/profile","did:dht:my6nm5s1n9xmuuh5yixe668k7xbkmmuddzatn1fojzgdg5f5to8y"];function m(n,s){1&n&&(t.j41(0,"mat-icon",2),t.EFF(1,"info"),t.k0s(),t.j41(2,"span",3),t.EFF(3,"About"),t.k0s())}function c(n,s){if(1&n&&(t.j41(0,"div",4)(1,"mat-card",5)(2,"mat-card-header")(3,"mat-card-title"),t.EFF(4,"About this community"),t.k0s(),t.j41(5,"mat-card-subtitle",6),t.EFF(6),t.nI1(7,"ago"),t.k0s()(),t.j41(8,"mat-card-content")(9,"p"),t.EFF(10),t.k0s(),t.j41(11,"p"),t.EFF(12," Tier: "),t.j41(13,"strong",7),t.EFF(14),t.k0s()(),t.j41(15,"p"),t.EFF(16," Type: "),t.j41(17,"strong",7),t.EFF(18),t.k0s()(),t.j41(19,"p"),t.EFF(20," Membership fee: $"),t.j41(21,"strong"),t.EFF(22),t.k0s()(),t.j41(23,"p"),t.EFF(24," Max members: "),t.j41(25,"strong"),t.EFF(26),t.k0s()()()(),t.j41(27,"mat-card",5)(28,"mat-card-header")(29,"mat-card-title"),t.EFF(30,"Owner"),t.k0s()(),t.j41(31,"mat-card-content"),t.nrm(32,"app-profile-header",8),t.k0s()()()),2&n){const e=t.XpG(2);t.R7$(5),t.Y8G("matTooltip",e.community().record.dateCreated),t.R7$(),t.SpI("Created ",t.bMT(7,8,e.community().record.dateCreated),""),t.R7$(4),t.SpI("About: ",e.community().data.bio,""),t.R7$(4),t.JRh(e.community().data.option),t.R7$(4),t.JRh(e.community().data.type),t.R7$(4),t.JRh(e.community().data.fee),t.R7$(4),t.JRh(e.community().data.members),t.R7$(6),t.Y8G("did",e.community().data.owners[0])}}function P(n,s){1&n&&(t.j41(0,"mat-icon",2),t.EFF(1,"chat"),t.k0s(),t.j41(2,"span",3),t.EFF(3,"Discussions"),t.k0s())}function I(n,s){1&n&&(t.j41(0,"div",4)(1,"mat-card",9)(2,"mat-card-content")(3,"button",10)(4,"mat-icon"),t.EFF(5,"chat"),t.k0s(),t.EFF(6," Post "),t.k0s(),t.j41(7,"button",10)(8,"mat-icon"),t.EFF(9,"event"),t.k0s(),t.EFF(10," Event "),t.k0s(),t.j41(11,"button",10)(12,"mat-icon"),t.EFF(13,"photo_library"),t.k0s(),t.EFF(14," Media "),t.k0s(),t.j41(15,"button",10)(16,"mat-icon"),t.EFF(17,"attach_file"),t.k0s(),t.EFF(18," File "),t.k0s()()(),t.j41(19,"mat-card",5)(20,"mat-card-header"),t.nrm(21,"img",11),t.j41(22,"mat-card-title"),t.EFF(23,"Sondre"),t.k0s(),t.j41(24,"mat-card-subtitle"),t.EFF(25),t.nI1(26,"ago"),t.k0s()(),t.j41(27,"mat-card-content")(28,"p"),t.EFF(29," Lorem ipsum dolor sit amet consectetur adipisicing elit. Esse cupiditate omnis consectetur facere modi dolore ipsum harum, distinctio corrupti aliquam possimus explicabo! Distinctio, adipisci. Ipsum, repellat! Velit eos consectetur in. Lorem ipsum dolor sit, amet consectetur adipisicing elit. Culpa vero accusantium rem repudiandae velit praesentium explicabo sit! Amet nulla repellat beatae pariatur, velit eius ut sunt, placeat labore, esse saepe? "),t.k0s()(),t.j41(30,"mat-card-actions")(31,"button",12),t.EFF(32,"LIKE"),t.k0s(),t.j41(33,"button",12),t.EFF(34,"COMMENT"),t.k0s()()(),t.j41(35,"mat-card",5)(36,"mat-card-header"),t.nrm(37,"img",13),t.j41(38,"mat-card-title"),t.EFF(39,"Lu"),t.k0s(),t.j41(40,"mat-card-subtitle"),t.EFF(41),t.nI1(42,"ago"),t.k0s()(),t.j41(43,"mat-card-content")(44,"p"),t.EFF(45," Lorem ipsum dolor sit amet consectetur adipisicing elit. Esse cupiditate omnis consectetur facere modi dolore ipsum harum, distinctio corrupti aliquam possimus explicabo! Distinctio, adipisci. Ipsum, repellat! Velit eos consectetur in. Lorem ipsum dolor sit, amet consectetur adipisicing elit. Culpa vero accusantium rem repudiandae velit praesentium explicabo sit! Amet nulla repellat beatae pariatur, velit eius ut sunt, placeat labore, esse saepe? "),t.k0s()(),t.j41(46,"mat-card-actions")(47,"button",12),t.EFF(48,"LIKE"),t.k0s(),t.j41(49,"button",12),t.EFF(50,"COMMENT"),t.k0s()()()()),2&n&&(t.R7$(25),t.JRh(t.bMT(26,2,"2024-07-16 10:00")),t.R7$(16),t.JRh(t.bMT(42,4,"2024-07-16 14:00")))}function L(n,s){1&n&&(t.j41(0,"mat-icon",2),t.EFF(1,"group"),t.k0s(),t.j41(2,"span",3),t.EFF(3,"Members"),t.k0s())}function x(n,s){if(1&n){const e=t.RV6();t.j41(0,"mat-form-field",24)(1,"mat-label"),t.EFF(2,"Search"),t.k0s(),t.nrm(3,"input",25),t.j41(4,"mat-icon",26),t.EFF(5,"search"),t.k0s()(),t.j41(6,"button",27),t.bIt("click",function(){t.eBV(e);const _=t.XpG(3);return t.Njj(_.hideMembersSearch())}),t.j41(7,"mat-icon"),t.EFF(8,"close"),t.k0s()()}}function A(n,s){if(1&n){const e=t.RV6();t.j41(0,"button",10)(1,"mat-icon"),t.EFF(2,"chat"),t.k0s(),t.EFF(3," Add Member "),t.k0s(),t.j41(4,"button",10)(5,"mat-icon"),t.EFF(6,"event"),t.k0s(),t.EFF(7," Invite "),t.k0s(),t.j41(8,"button",28),t.bIt("click",function(){t.eBV(e);const _=t.XpG(3);return t.Njj(_.searchMembers())}),t.j41(9,"mat-icon"),t.EFF(10,"seardh"),t.k0s(),t.EFF(11," Search "),t.k0s()}}function B(n,s){if(1&n&&(t.j41(0,"div",4)(1,"mat-card",9)(2,"mat-card-content",14),t.DNE(3,x,9,0)(4,A,12,0),t.k0s()(),t.j41(5,"div",15)(6,"a",16),t.nrm(7,"img",17),t.k0s(),t.j41(8,"a",18),t.nrm(9,"img",19),t.k0s(),t.j41(10,"a",18),t.nrm(11,"img",20),t.k0s(),t.j41(12,"a",18),t.nrm(13,"img",21),t.k0s(),t.j41(14,"a",18),t.nrm(15,"img",22),t.k0s(),t.j41(16,"a",18),t.nrm(17,"img",23),t.k0s()()()),2&n){const e=t.XpG(2);t.R7$(3),t.vxM(e.searchingMembers()?3:4),t.R7$(3),t.Y8G("routerLink",t.lJ4(7,i)),t.R7$(2),t.Y8G("routerLink",t.lJ4(8,i)),t.R7$(2),t.Y8G("routerLink",t.lJ4(9,i)),t.R7$(2),t.Y8G("routerLink",t.lJ4(10,i)),t.R7$(2),t.Y8G("routerLink",t.lJ4(11,i)),t.R7$(2),t.Y8G("routerLink",t.lJ4(12,i))}}function W(n,s){1&n&&(t.j41(0,"mat-icon",2),t.EFF(1,"event"),t.k0s(),t.j41(2,"span",3),t.EFF(3,"Events"),t.k0s())}function $(n,s){1&n&&(t.j41(0,"div",4)(1,"mat-card",9)(2,"mat-card-content")(3,"button",10)(4,"mat-icon"),t.EFF(5,"add"),t.k0s(),t.EFF(6," Create event "),t.k0s()()(),t.j41(7,"mat-card",29)(8,"mat-card-header")(9,"mat-card-title"),t.EFF(10,"Upcoming events"),t.k0s()(),t.j41(11,"mat-card-content")(12,"mat-list")(13,"mat-list-item")(14,"mat-icon",30),t.EFF(15,"event"),t.k0s(),t.j41(16,"div",31),t.EFF(17,"Summer Party 2024"),t.k0s(),t.j41(18,"div",32),t.EFF(19),t.nI1(20,"date"),t.k0s()(),t.j41(21,"mat-list-item")(22,"mat-icon",30),t.EFF(23,"event"),t.k0s(),t.j41(24,"div",31),t.EFF(25,"Workshop #5"),t.k0s(),t.j41(26,"div",32),t.EFF(27),t.nI1(28,"date"),t.k0s()()()(),t.j41(29,"mat-card-actions")(30,"button",12),t.EFF(31,"SEE MORE"),t.k0s()()(),t.j41(32,"mat-card",29)(33,"mat-card-header")(34,"mat-card-title"),t.EFF(35,"Past events"),t.k0s()(),t.j41(36,"mat-card-content")(37,"mat-list")(38,"mat-list-item")(39,"mat-icon",30),t.EFF(40,"event"),t.k0s(),t.j41(41,"div",31),t.EFF(42,"Workshop #4"),t.k0s(),t.j41(43,"div",32),t.EFF(44),t.nI1(45,"date"),t.k0s()()()(),t.j41(46,"mat-card-actions")(47,"button",12),t.EFF(48,"SEE MORE"),t.k0s()()()()),2&n&&(t.R7$(19),t.JRh(t.bMT(20,3,"2024-07-16 10:00")),t.R7$(8),t.JRh(t.bMT(28,5,"2024-07-30 10:00")),t.R7$(17),t.JRh(t.bMT(45,7,"2024-07-30 10:00")))}function U(n,s){1&n&&(t.j41(0,"mat-icon",2),t.EFF(1,"photo_library"),t.k0s(),t.j41(2,"span",3),t.EFF(3,"Media"),t.k0s())}function G(n,s){if(1&n&&(t.j41(0,"mat-card"),t.nrm(1,"img",35),t.k0s()),2&n){const e=s.$implicit;t.R7$(),t.Y8G("src",e.thumbnail,t.B4B)}}function K(n,s){if(1&n&&(t.j41(0,"div",4)(1,"div",33),t.DNE(2,G,2,1,"mat-card",34),t.k0s()()),2&n){const e=t.XpG(2);t.R7$(2),t.Y8G("ngForOf",e.photos())}}function N(n,s){1&n&&(t.j41(0,"mat-icon",2),t.EFF(1,"attach_file"),t.k0s(),t.j41(2,"span",3),t.EFF(3,"Files"),t.k0s())}function X(n,s){if(1&n){const e=t.RV6();t.j41(0,"mat-form-field",24)(1,"mat-label"),t.EFF(2,"Search"),t.k0s(),t.nrm(3,"input",25),t.j41(4,"mat-icon",26),t.EFF(5,"search"),t.k0s()(),t.j41(6,"button",27),t.bIt("click",function(){t.eBV(e);const _=t.XpG(3);return t.Njj(_.hideMembersSearch())}),t.j41(7,"mat-icon"),t.EFF(8,"close"),t.k0s()()}}function S(n,s){1&n&&(t.j41(0,"button",10)(1,"mat-icon"),t.EFF(2,"attach_file"),t.k0s(),t.EFF(3," Upload file "),t.k0s())}function Y(n,s){if(1&n&&(t.j41(0,"div",4)(1,"mat-card",9)(2,"mat-card-content",14),t.DNE(3,X,9,0)(4,S,4,0,"button",10),t.k0s()(),t.j41(5,"mat-card",36)(6,"mat-card-content")(7,"mat-list")(8,"mat-list-item")(9,"mat-icon",30),t.EFF(10,"attach_file"),t.k0s(),t.j41(11,"div",31),t.EFF(12,"Community Rules.pdf"),t.k0s(),t.j41(13,"div",32),t.EFF(14),t.nI1(15,"date"),t.nI1(16,"size"),t.k0s()(),t.j41(17,"mat-list-item")(18,"mat-icon",30),t.EFF(19,"attach_file"),t.k0s(),t.j41(20,"div",31),t.EFF(21,"Admin instructions.pdf"),t.k0s(),t.j41(22,"div",32),t.EFF(23),t.nI1(24,"date"),t.nI1(25,"size"),t.k0s()()()()()()),2&n){const e=t.XpG(2);t.R7$(3),t.vxM(e.searchingMembers()?3:4),t.R7$(11),t.Lme("",t.bMT(15,5,"2024-07-16 10:00")," | ",t.bMT(16,7,"100000"),""),t.R7$(9),t.Lme("",t.bMT(24,9,"2024-07-30 10:00")," | ",t.bMT(25,11,"350000"),"")}}function J(n,s){1&n&&(t.j41(0,"mat-tab-group")(1,"mat-tab"),t.DNE(2,m,4,0,"ng-template",0)(3,c,33,10,"ng-template",1),t.k0s(),t.j41(4,"mat-tab"),t.DNE(5,P,4,0,"ng-template",0)(6,I,51,6,"ng-template",1),t.k0s(),t.j41(7,"mat-tab"),t.DNE(8,L,4,0,"ng-template",0)(9,B,18,13,"ng-template",1),t.k0s(),t.j41(10,"mat-tab"),t.DNE(11,W,4,0,"ng-template",0)(12,$,49,9,"ng-template",1),t.k0s(),t.j41(13,"mat-tab"),t.DNE(14,U,4,0,"ng-template",0)(15,K,3,1,"ng-template",1),t.k0s(),t.j41(16,"mat-tab"),t.DNE(17,N,4,0,"ng-template",0)(18,Y,26,13,"ng-template",1),t.k0s()())}function V(n,s){1&n&&t.nrm(0,"mat-spinner")}let z=(()=>{class n{constructor(){var e=this;this.images=["nature","sky","grass","mountains","rivers","glacier","forest","streams","rain","clouds"],this.photos=(0,t.vPA)([]),this.app=(0,t.WQX)(y.d),this.layout=(0,t.WQX)(T.Y),this.route=(0,t.WQX)(F.nX),this.data=(0,t.WQX)(R.u),this.selectedCommunity=(0,t.vPA)(null),this.community=(0,t.vPA)(null),this.searchingMembers=(0,t.vPA)(!1),(0,t.QZP)((0,h.A)(function*(){e.app.initialized()&&e.selectedCommunity()&&(yield e.loadCommunity())}))}ngOnInit(){this.layout.marginOff(),this.route.paramMap.subscribe(r=>{this.layout.resetActions();const _=r.get("id");console.log("Loading community: ",_),this.selectedCommunity.set(_&&":id"!=_&&"home"!=_?r.get("id"):null)});const e=[];for(let r=0;r{a.d(g,{w:()=>k});var h=a(10467),t=a(54438),C=a(34635),l=a(25596),M=a(5794),u=a(345),b=a(78013),F=a(33347),d=a(14823),f=a(30046);const E=o=>["/profile",o];function O(o,p){if(1&o&&(t.nrm(0,"img",0),t.nI1(1,"safeResourceUrl")),2&o){const i=t.XpG();t.Y8G("routerLink",t.eq3(4,E,i.did()))("src",t.bMT(1,2,i.data().avatar),t.B4B)}}function v(o,p){if(1&o&&t.nrm(0,"img",1),2&o){const i=t.XpG();t.Y8G("routerLink",t.eq3(2,E,i.did()))("src","/avatar-placeholder.png",t.B4B)}}function y(o,p){if(1&o&&t.EFF(0),2&o){let i;const m=t.XpG(2);t.SpI(" (",null==(i=m.data().profile)?null:i.title,") ")}}function T(o,p){if(1&o&&(t.j41(0,"a",3),t.EFF(1),t.DNE(2,y,1,1),t.k0s()),2&o){let i,m;const c=t.XpG();t.Y8G("routerLink",t.eq3(3,E,c.did())),t.R7$(),t.SpI("",null==(i=c.data().profile)?null:i.name," "),t.R7$(),t.vxM(null!=(m=c.data().profile)&&m.title?2:-1)}}function R(o,p){if(1&o&&t.EFF(0),2&o){let i;const m=t.XpG(2);t.SpI(" (",null==(i=m.data().profile)?null:i.title,") ")}}function j(o,p){if(1&o&&(t.j41(0,"em")(1,"a",3),t.EFF(2,"No name set "),t.DNE(3,R,1,1),t.k0s()()),2&o){let i;const m=t.XpG();t.R7$(),t.Y8G("routerLink",t.eq3(2,E,m.did())),t.R7$(2),t.vxM(null!=(i=m.data().profile)&&i.title?3:-1)}}let k=(()=>{class o{constructor(){this.identity=(0,t.WQX)(C.K),this.profile=(0,t.WQX)(M.p),this.sanitizer=(0,t.WQX)(u.up),this.did=t.hFB.required(),this.data=(0,t.vPA)({})}ngAfterViewInit(){var i=this;return(0,h.A)(function*(){if(i.did()){let m=yield i.profile.loadProfile(i.did());i.data.set(m)}})()}static{this.\u0275fac=function(m){return new(m||o)}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["app-profile-header"]],inputs:{did:[1,"did"]},standalone:!0,features:[t.aNF],decls:10,vars:9,consts:[["mat-card-avatar","","onerror","this.src='/avatar-placeholder.png';this.onerror='';",1,"profile-thumbnail",3,"routerLink","src"],["mat-card-avatar","",1,"profile-thumbnail",3,"routerLink","src"],[1,"profile-header-title"],[3,"routerLink"],[1,"profile-header-subtitle"],[3,"routerLink","matTooltip"]],template:function(m,c){if(1&m&&(t.DNE(0,O,2,6,"img",0)(1,v,1,4,"img",1),t.j41(2,"div")(3,"div",2),t.DNE(4,T,3,5,"a",3)(5,j,4,4,"em"),t.k0s(),t.j41(6,"div",4)(7,"a",5),t.EFF(8),t.nI1(9,"did"),t.k0s()()()),2&m){let P;t.vxM(c.data().avatar?0:1),t.R7$(4),t.vxM(null!=(P=c.data().profile)&&P.name?4:5),t.R7$(3),t.Y8G("routerLink",t.eq3(7,E,c.did()))("matTooltip",c.did()),t.R7$(),t.JRh(t.bMT(9,5,c.did()))}},dependencies:[f.iI,f.Wk,d.uc,d.oV,l.Hu,l.QG,b.d,F.k],styles:[".profile-thumbnail[_ngcontent-%COMP%]{cursor:pointer;border-radius:50%;margin-right:1em}a[_ngcontent-%COMP%]{text-decoration:none}a[_ngcontent-%COMP%]:hover{text-decoration:underline}[_nghost-%COMP%]{display:flex}.profile-header-title[_ngcontent-%COMP%]{font-size:1.4em}.profile-header-subtitle[_ngcontent-%COMP%]{font-size:1em}"]})}}return o})()}}]); \ No newline at end of file diff --git a/404.html b/404.html index 65d0388..b1a1050 100644 --- a/404.html +++ b/404.html @@ -35,5 +35,5 @@ - + diff --git a/6702.203c75ec9fca1fea.js b/6702.203c75ec9fca1fea.js deleted file mode 100644 index 87bb41e..0000000 --- a/6702.203c75ec9fca1fea.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6702],{6702:(q,C,s)=>{s.r(C),s.d(C,{CommunitiesComponent:()=>U});var d=s(10467),t=s(54438),p=s(65571),v=s(99213),F=s(99631),j=s(53719),l=s(89417),R=s(60177),u=s(2042),h=s(96695),m=s(9159),c=s(25596),y=s(88834),S=s(45024),k=s(96354),x=s(57786),E=s(7673);class T extends S.qS{constructor(){super()}connect(){if(this.paginator&&this.sort)return(0,x.h)((0,E.of)(this.data),this.paginator.page,this.sort.sortChange).pipe((0,k.T)(()=>this.getPagedData(this.getSortedData([...this.data]))));throw Error("Please set the paginator and sort on the data source before connecting.")}disconnect(){}getPagedData(a){return this.paginator?a.splice(this.paginator.pageIndex*this.paginator.pageSize,this.paginator.pageSize):a}getSortedData(a){return this.sort&&this.sort.active&&""!==this.sort.direction?a.sort((e,n)=>{const o="asc"===this.sort?.direction;switch(this.sort?.active){case"name":return b(e.name,n.name,o);case"id":return b(+e.id,+n.id,o);default:return 0}}):a}}function b(i,a,e){return(i["/communities","create"],M=i=>["/communities","create",i],z=i=>["/community",i],N=()=>[5,10,20];function B(i,a){if(1&i&&(t.j41(0,"a",11),t.EFF(1),t.k0s(),t.nrm(2,"br")),2&i){const e=a.$implicit;t.Y8G("routerLink",t.eq3(2,M,e.id)),t.R7$(),t.SpI("",e.data.name," - Awaiting approval")}}function V(i,a){if(1&i&&(t.j41(0,"mat-card",1)(1,"mat-card-content",2)(2,"strong"),t.EFF(3,"NOTICE"),t.k0s(),t.j41(4,"div"),t.EFF(5," You have communities in draft mode. Please review any status update on their verification status. "),t.nrm(6,"br")(7,"br"),t.Z7z(8,B,3,4,null,null,t.fX1),t.k0s()()()),2&i){const e=t.XpG();t.R7$(8),t.Dyx(e.drafts())}}function Y(i,a){if(1&i){const e=t.RV6();t.j41(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title")(3,"a",12),t.EFF(4),t.k0s()()(),t.nrm(5,"br")(6,"img",13),t.j41(7,"mat-card-content"),t.nrm(8,"br"),t.j41(9,"p"),t.EFF(10),t.k0s()(),t.j41(11,"mat-card-actions")(12,"button",14),t.bIt("click",function(){const o=t.eBV(e).$implicit,r=t.XpG(2);return t.Njj(r.open(o.id))}),t.EFF(13,"VIEW"),t.k0s(),t.j41(14,"button",14),t.bIt("click",function(){const o=t.eBV(e).$implicit,r=t.XpG(2);return t.Njj(r.join(o.id))}),t.EFF(15,"JOIN"),t.k0s()()()}if(2&i){const e=a.$implicit;t.R7$(3),t.Y8G("routerLink",t.eq3(4,z,e.id)),t.R7$(),t.JRh(e.data.name),t.R7$(2),t.Y8G("src",e.data.avatar,t.B4B),t.R7$(4),t.SpI(" ",e.data.bio," ")}}function P(i,a){if(1&i){const e=t.RV6();t.j41(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),t.EFF(3),t.k0s()(),t.nrm(4,"br")(5,"img",13),t.j41(6,"mat-card-content"),t.nrm(7,"br"),t.j41(8,"p"),t.EFF(9),t.k0s()(),t.j41(10,"mat-card-actions")(11,"button",14),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.open("did:dht:my6nm5s1n9xmuuh5yixe668k7xbkmmuddzatn1fojzgdg5f5to8y"))}),t.EFF(12,"JOIN"),t.k0s(),t.j41(13,"button",14),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.open("did:dht:my6nm5s1n9xmuuh5yixe668k7xbkmmuddzatn1fojzgdg5f5to8y"))}),t.EFF(14,"PREVIEW"),t.k0s()()()}if(2&i){const e=a.$implicit;t.R7$(3),t.SpI("",e.name," "),t.R7$(2),t.Y8G("src",e.thumbnail,t.B4B),t.R7$(4),t.SpI(" ",e.description," ")}}function X(i,a){if(1&i&&(t.j41(0,"div",9),t.Z7z(1,Y,16,6,"mat-card",null,t.fX1),t.Z7z(3,P,15,3,"mat-card",null,t.fX1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Dyx(e.communities()),t.R7$(2),t.Dyx(e.cards())}}function A(i,a){1&i&&(t.j41(0,"th",24),t.EFF(1,"Id"),t.k0s())}function L(i,a){if(1&i&&(t.j41(0,"td",25),t.EFF(1),t.k0s()),2&i){const e=a.$implicit;t.R7$(),t.JRh(e.id)}}function J(i,a){1&i&&(t.j41(0,"th",24),t.EFF(1,"Name"),t.k0s())}function O(i,a){if(1&i&&(t.j41(0,"td",25),t.EFF(1),t.k0s()),2&i){const e=a.$implicit;t.R7$(),t.JRh(e.name)}}function Q(i,a){1&i&&(t.j41(0,"th",24),t.EFF(1,"Description"),t.k0s())}function W(i,a){if(1&i&&(t.j41(0,"td",25),t.EFF(1),t.k0s()),2&i){const e=a.$implicit;t.R7$(),t.JRh(e.description)}}function Z(i,a){1&i&&t.nrm(0,"tr",26)}function H(i,a){1&i&&t.nrm(0,"tr",27)}function K(i,a){if(1&i&&(t.j41(0,"div",10)(1,"table",15),t.qex(2,16),t.DNE(3,A,2,0,"th",17)(4,L,2,1,"td",18),t.bVm(),t.qex(5,19),t.DNE(6,J,2,0,"th",17)(7,O,2,1,"td",18),t.bVm(),t.qex(8,20),t.DNE(9,Q,2,0,"th",17)(10,W,2,1,"td",18),t.bVm(),t.DNE(11,Z,1,0,"tr",21)(12,H,1,0,"tr",22),t.k0s(),t.nrm(13,"mat-paginator",23,0),t.k0s()),2&i){const e=t.XpG();t.R7$(11),t.Y8G("matHeaderRowDef",e.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",e.displayedColumns),t.R7$(),t.Y8G("length",e.dataSource.data.length)("pageIndex",0)("pageSize",10)("pageSizeOptions",t.lJ4(6,N))}}let U=(()=>{class i{constructor(e){var n=this;this.router=e,this.search=new l.MJ(""),this.dataSource=new T,this.cards=(0,t.vPA)([]),this.app=(0,t.WQX)(_.d),this.layout=(0,t.WQX)(I.Y),this.images=["nature","sky","grass","mountains","rivers","glacier","forest"],this.viewStyle=(0,t.geq)("card"),this.checked=(0,t.geq)(!1),this.displayedColumns=["name","description"],this.data=(0,t.WQX)(w.u),this.drafts=(0,t.vPA)([]),this.communities=(0,t.vPA)([]),this.layout.marginOn(),(0,t.QZP)((0,d.A)(function*(){n.app.initialized()&&(setTimeout(()=>{n.table&&(n.dataSource.sort=n.sort,n.dataSource.paginator=n.paginator,n.table.dataSource=n.dataSource)}),yield n.loadCommunities(),yield n.loadDrafts())}));const o=[];for(let r=0;r0?13:-1),t.R7$(),t.vxM("card"==o.viewStyle()?14:15))},dependencies:[f.iI,f.Wk,p.Vg,p.ec,p.pc,v.m_,v.An,F.fS,j.RG,l.X1,l.BC,R.MD,y.Hl,y.$z,c.Hu,c.RN,c.YY,c.m2,c.MM,c.kF,c.dh,m.tP,m.Zl,m.tL,m.ji,m.cC,m.YV,m.iL,m.KS,m.$R,m.YZ,m.NB,h.Ou,h.iy,u.NQ,u.B4,u.aE,$.mV,l.YN,l.vS,D.s5],styles:[".search-input[_ngcontent-%COMP%]{width:100%}img[_ngcontent-%COMP%]{width:100%;height:200px;object-fit:cover}.responsive-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:24px}"]})}}return i})()}}]); \ No newline at end of file diff --git a/6702.629a279b79681856.js b/6702.629a279b79681856.js new file mode 100644 index 0000000..1a25803 --- /dev/null +++ b/6702.629a279b79681856.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6702],{6702:(q,C,a)=>{a.r(C),a.d(C,{CommunitiesComponent:()=>K});var l=a(10467),t=a(54438),p=a(65571),v=a(99213),S=a(99631),R=a(53719),d=a(89417),k=a(60177),u=a(2042),h=a(96695),m=a(9159),c=a(25596),y=a(88834);a(45024),a(96354),a(57786),a(7673);class E extends m.I6{constructor(n){super(),this.dataService=n,this.load()}load(){var n=this;return(0,l.A)(function*(){const e=yield n.dataService.load({type:"community",status:"active"});n.data=e})()}}var f=a(30046),x=a(30450),$=a(55911),M=a(96084),G=a(36815),I=a(85297);const Y=()=>["/communities","create"],L=i=>["/communities","create",i],F=i=>["/community",i],N=()=>[5,10,25,100];function P(i,n){if(1&i&&(t.j41(0,"a",10),t.EFF(1),t.k0s(),t.nrm(2,"br")),2&i){const e=n.$implicit;t.Y8G("routerLink",t.eq3(2,L,e.id)),t.R7$(),t.SpI("",e.data.name," - Awaiting approval")}}function A(i,n){if(1&i&&(t.j41(0,"mat-card",0)(1,"mat-card-content",1)(2,"strong"),t.EFF(3,"NOTICE"),t.k0s(),t.j41(4,"div"),t.EFF(5," You have communities in draft mode. Please review any status update on their verification status. "),t.nrm(6,"br")(7,"br"),t.Z7z(8,P,3,4,null,null,t.fX1),t.k0s()()()),2&i){const e=t.XpG();t.R7$(8),t.Dyx(e.drafts())}}function V(i,n){if(1&i){const e=t.RV6();t.j41(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title")(3,"a",11),t.EFF(4),t.k0s()()(),t.nrm(5,"br")(6,"img",12),t.j41(7,"mat-card-content"),t.nrm(8,"br"),t.j41(9,"p"),t.EFF(10),t.k0s()(),t.j41(11,"mat-card-actions")(12,"button",13),t.bIt("click",function(){const s=t.eBV(e).$implicit,r=t.XpG(2);return t.Njj(r.open(s.id))}),t.EFF(13,"VIEW"),t.k0s(),t.j41(14,"button",13),t.bIt("click",function(){const s=t.eBV(e).$implicit,r=t.XpG(2);return t.Njj(r.join(s.id))}),t.EFF(15,"JOIN"),t.k0s()()()}if(2&i){const e=n.$implicit;t.R7$(3),t.Y8G("routerLink",t.eq3(4,F,e.id)),t.R7$(),t.JRh(e.data.name),t.R7$(2),t.Y8G("src",e.data.avatar,t.B4B),t.R7$(4),t.SpI(" ",e.data.bio," ")}}function O(i,n){if(1&i&&(t.j41(0,"div",8),t.Z7z(1,V,16,6,"mat-card",null,t.fX1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Dyx(e.dataSource.data)}}function X(i,n){1&i&&(t.j41(0,"th",23),t.EFF(1,"Id"),t.k0s())}function _(i,n){if(1&i&&(t.j41(0,"td",24),t.EFF(1),t.k0s()),2&i){const e=n.$implicit;t.R7$(),t.JRh(e.id)}}function z(i,n){1&i&&(t.j41(0,"th",23),t.EFF(1,"Name"),t.k0s())}function B(i,n){if(1&i&&(t.j41(0,"td",24),t.EFF(1),t.k0s()),2&i){const e=n.$implicit;t.R7$(),t.JRh(e.data.name)}}function J(i,n){1&i&&(t.j41(0,"th",23),t.EFF(1,"Description"),t.k0s())}function Q(i,n){if(1&i&&(t.j41(0,"td",24),t.EFF(1),t.k0s()),2&i){const e=n.$implicit;t.R7$(),t.JRh(e.data.bio)}}function H(i,n){1&i&&t.nrm(0,"tr",25)}function W(i,n){1&i&&t.nrm(0,"tr",26),2&i&&t.Y8G("routerLink",t.eq3(1,F,n.$implicit.id))}function Z(i,n){if(1&i&&t.nrm(0,"mat-paginator",22),2&i){const e=t.XpG(2);t.Y8G("length",e.dataSource.data.length)("pageSizeOptions",t.lJ4(2,N))}}function U(i,n){if(1&i&&(t.j41(0,"div",9)(1,"table",14),t.qex(2,15),t.DNE(3,X,2,0,"th",16)(4,_,2,1,"td",17),t.bVm(),t.qex(5,18),t.DNE(6,z,2,0,"th",16)(7,B,2,1,"td",17),t.bVm(),t.qex(8,19),t.DNE(9,J,2,0,"th",16)(10,Q,2,1,"td",17),t.bVm(),t.DNE(11,H,1,0,"tr",20)(12,W,1,3,"tr",21),t.k0s(),t.DNE(13,Z,1,3,"mat-paginator",22),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("dataSource",e.dataSource),t.R7$(10),t.Y8G("matHeaderRowDef",e.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",e.displayedColumns),t.R7$(),t.vxM(e.dataSource?13:-1)}}let K=(()=>{class i{constructor(e){var o=this;this.router=e,this.search=new d.MJ(""),this.app=(0,t.WQX)(M.d),this.layout=(0,t.WQX)(G.Y),this.images=["nature","sky","grass","mountains","rivers","glacier","forest"],this.viewStyle=(0,t.geq)("table"),this.checked=(0,t.geq)(!1),this.displayedColumns=["name","description"],this.data=(0,t.WQX)(I.u),this.drafts=(0,t.vPA)([]),this.communities=(0,t.vPA)([]),this.layout.marginOn(),(0,t.QZP)(()=>{const r=this.viewStyle();console.log(`View style changed to: ${r}`),"table"===r&&console.log("DATA SOURCE: ",this.dataSource)}),(0,t.QZP)((0,l.A)(function*(){o.app.initialized()&&(yield o.loadDrafts(),o.dataSource=new E(o.data),o.dataSource.paginator=o.paginator,o.dataSource.sort=o.sort)}));const s=[];for(let r=0;r0?13:-1),t.R7$(),t.vxM("card"==s.viewStyle()?14:15))},dependencies:[f.iI,f.Wk,p.Vg,p.ec,p.pc,v.m_,v.An,S.fS,R.RG,d.X1,d.BC,k.MD,y.Hl,y.$z,c.Hu,c.RN,c.YY,c.m2,c.MM,c.kF,c.dh,m.tP,m.Zl,m.tL,m.ji,m.cC,m.YV,m.iL,m.KS,m.$R,m.YZ,m.NB,h.Ou,h.iy,u.NQ,u.B4,u.aE,x.mV,d.YN,d.vS,$.s5],styles:[".search-input[_ngcontent-%COMP%]{width:100%}img[_ngcontent-%COMP%]{width:100%;height:200px;object-fit:cover}.responsive-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:24px}.clickable-row[_ngcontent-%COMP%]{cursor:pointer}.clickable-row[_ngcontent-%COMP%]:hover{background-color:#0000000a}"]})}}return i})()}}]); \ No newline at end of file diff --git a/index.html b/index.html index 65d0388..b1a1050 100644 --- a/index.html +++ b/index.html @@ -35,5 +35,5 @@ - + diff --git a/ngsw.json b/ngsw.json index 7f08659..33e48db 100644 --- a/ngsw.json +++ b/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1730973757382, + "timestamp": 1730980920705, "index": "/index.html", "assetGroups": [], "dataGroups": [], diff --git a/runtime.229e676babc282dc.js b/runtime.6f9f8e0c3a5cc9b0.js similarity index 96% rename from runtime.229e676babc282dc.js rename to runtime.6f9f8e0c3a5cc9b0.js index 32d1858..4a401da 100644 --- a/runtime.229e676babc282dc.js +++ b/runtime.6f9f8e0c3a5cc9b0.js @@ -1 +1 @@ -(()=>{"use strict";var e,v={},g={};function f(e){var r=g[e];if(void 0!==r)return r.exports;var a=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(a.exports,a,a.exports,f),a.loaded=!0,a.exports}f.m=v,e=[],f.O=(r,a,c,b)=>{if(!a){var t=1/0;for(d=0;d=b)&&Object.keys(f.O).every(p=>f.O[p](a[n]))?a.splice(n--,1):(l=!1,b0&&e[d-1][2]>b;d--)e[d]=e[d-1];e[d]=[a,c,b]},f.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return f.d(r,{a:r}),r},(()=>{var r,e=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__;f.t=function(a,c){if(1&c&&(a=this(a)),8&c||"object"==typeof a&&a&&(4&c&&a.__esModule||16&c&&"function"==typeof a.then))return a;var b=Object.create(null);f.r(b);var d={};r=r||[null,e({}),e([]),e(e)];for(var t=2&c&&a;"object"==typeof t&&!~r.indexOf(t);t=e(t))Object.getOwnPropertyNames(t).forEach(l=>d[l]=()=>a[l]);return d.default=()=>a,f.d(b,d),b}})(),f.d=(e,r)=>{for(var a in r)f.o(r,a)&&!f.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce((r,a)=>(f.f[a](e,r),r),[])),f.u=e=>(2076===e?"common":e)+"."+{60:"dd56a698bb4b11c7",92:"29548a9b964df122",450:"6408b8e5de5d627d",946:"5d801615b29684a3",959:"8a6a267f2c68265a",1391:"5982e61fcbdbcc04",2076:"5c3cced81c20707e",2084:"16c5e5b6f2f8f212",2228:"6c8ca37f85dbbad6",2276:"955ff276a2528ff4",2320:"8ab6ed1f9557e52c",2765:"e0758a1ca25e97e4",3028:"97d518034656f736",3287:"866db70e75e9dbdd",3416:"dcd3877ff49a5bb2",3446:"12e41e58066efacd",3474:"d0b0ac5fb6caeba1",3475:"1d4960c80daccb08",3907:"a586520cb47ea37c",4101:"1521732a9048a277",4388:"b853de9ef7ccf425",4392:"0d56e23507a649aa",4500:"98c54e798a0bf78e",4630:"88eab6ada321c6ce",4885:"90fe7ee70b20f1f5",4976:"f3c92980a94bb178",5026:"9bf2c634b0697f7d",5216:"c26f14292868335d",5680:"672856de26505dc5",5806:"0d0e0c845b25dee6",5832:"d521a1fe1209029e",5854:"a51cd4a644a7c25f",5874:"0df7182c5d9edeaf",5962:"16d2e48cc9f4b210",6195:"7857de4ac4543855",6406:"46747b6961e189b8",6471:"f9d95bbc4d6d59f9",6486:"bee23a6261a70679",6489:"955d60f01c43053b",6695:"d8e9a5f98e779dd2",6702:"203c75ec9fca1fea",6797:"12edfd8f3e319402",6850:"88865711a8a6fcb3",7160:"7c337d7f794a5ae1",7358:"440b00fbfb0f64be",7380:"d52677bc1c14dedc",7660:"20118dbe1a9a2047",7848:"fcadeb3cc9aa00d2",7880:"471f4da76baf114d",7988:"aa19765ddea12d37",8008:"4013eed772c0bedc",8012:"fa72aa7e6b5b041f",8067:"d53f5ca6c5591a04",8101:"d98e82825e786d48",8552:"222c77f601c5c66c",8834:"e245eb68c89f83e8",8864:"6764927e933490e0",8880:"b11a9499df5ed9f5",9128:"24964fbc6e92e42a",9158:"842ef26f15a3579f",9238:"d9292fac7f9d7c5a",9379:"6965cb033e50010d",9454:"fdb6542e7277673f",9461:"28cb55a7dce9fed1",9466:"4362b5ce66b1d9c6",9533:"e7aedbb0b758d1d3",9613:"79015bd91f9b1a5e",9727:"df1eefe0b7f531c9",9847:"dc3a89a6bba25fff",9996:"24d0b0fa3c2c70a4"}[e]+".js",f.miniCssF=e=>{},f.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={},r="app:";f.l=(a,c,b,d)=>{if(e[a])e[a].push(c);else{var t,l;if(void 0!==b)for(var n=document.getElementsByTagName("script"),i=0;i{t.onerror=t.onload=null,clearTimeout(u);var h=e[a];if(delete e[a],t.parentNode&&t.parentNode.removeChild(t),h&&h.forEach(y=>y(p)),_)return _(p)},u=setTimeout(s.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=s.bind(null,t.onerror),t.onload=s.bind(null,t.onload),l&&document.head.appendChild(t)}}})(),f.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;f.tt=()=>(void 0===e&&(e={createScriptURL:r=>r},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),f.tu=e=>f.tt().createScriptURL(e),f.p="",(()=>{var e={9121:0};f.f.j=(c,b)=>{var d=f.o(e,c)?e[c]:void 0;if(0!==d)if(d)b.push(d[2]);else if(9121!=c){var t=new Promise((o,s)=>d=e[c]=[o,s]);b.push(d[2]=t);var l=f.p+f.u(c),n=new Error;f.l(l,o=>{if(f.o(e,c)&&(0!==(d=e[c])&&(e[c]=void 0),d)){var s=o&&("load"===o.type?"missing":o.type),u=o&&o.target&&o.target.src;n.message="Loading chunk "+c+" failed.\n("+s+": "+u+")",n.name="ChunkLoadError",n.type=s,n.request=u,d[1](n)}},"chunk-"+c,c)}else e[c]=0},f.O.j=c=>0===e[c];var r=(c,b)=>{var n,i,[d,t,l]=b,o=0;if(d.some(u=>0!==e[u])){for(n in t)f.o(t,n)&&(f.m[n]=t[n]);if(l)var s=l(f)}for(c&&c(b);o{"use strict";var e,v={},g={};function f(e){var r=g[e];if(void 0!==r)return r.exports;var a=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(a.exports,a,a.exports,f),a.loaded=!0,a.exports}f.m=v,e=[],f.O=(r,a,c,b)=>{if(!a){var t=1/0;for(d=0;d=b)&&Object.keys(f.O).every(p=>f.O[p](a[n]))?a.splice(n--,1):(l=!1,b0&&e[d-1][2]>b;d--)e[d]=e[d-1];e[d]=[a,c,b]},f.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return f.d(r,{a:r}),r},(()=>{var r,e=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__;f.t=function(a,c){if(1&c&&(a=this(a)),8&c||"object"==typeof a&&a&&(4&c&&a.__esModule||16&c&&"function"==typeof a.then))return a;var b=Object.create(null);f.r(b);var d={};r=r||[null,e({}),e([]),e(e)];for(var t=2&c&&a;"object"==typeof t&&!~r.indexOf(t);t=e(t))Object.getOwnPropertyNames(t).forEach(l=>d[l]=()=>a[l]);return d.default=()=>a,f.d(b,d),b}})(),f.d=(e,r)=>{for(var a in r)f.o(r,a)&&!f.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce((r,a)=>(f.f[a](e,r),r),[])),f.u=e=>(2076===e?"common":e)+"."+{60:"dd56a698bb4b11c7",92:"29548a9b964df122",450:"6408b8e5de5d627d",946:"5d801615b29684a3",959:"8a6a267f2c68265a",1391:"5982e61fcbdbcc04",2076:"5c3cced81c20707e",2084:"16c5e5b6f2f8f212",2228:"6c8ca37f85dbbad6",2276:"955ff276a2528ff4",2320:"8ab6ed1f9557e52c",2765:"e0758a1ca25e97e4",3028:"36ca6d9b32732ad9",3287:"866db70e75e9dbdd",3416:"dcd3877ff49a5bb2",3446:"12e41e58066efacd",3474:"d0b0ac5fb6caeba1",3475:"1d4960c80daccb08",3907:"a586520cb47ea37c",4101:"1521732a9048a277",4388:"b853de9ef7ccf425",4392:"0d56e23507a649aa",4500:"98c54e798a0bf78e",4630:"88eab6ada321c6ce",4885:"90fe7ee70b20f1f5",4976:"f3c92980a94bb178",5026:"9bf2c634b0697f7d",5216:"c26f14292868335d",5680:"672856de26505dc5",5806:"0d0e0c845b25dee6",5832:"d521a1fe1209029e",5854:"a51cd4a644a7c25f",5874:"0df7182c5d9edeaf",5962:"16d2e48cc9f4b210",6195:"7857de4ac4543855",6406:"46747b6961e189b8",6471:"f9d95bbc4d6d59f9",6486:"bee23a6261a70679",6489:"955d60f01c43053b",6695:"d8e9a5f98e779dd2",6702:"629a279b79681856",6797:"12edfd8f3e319402",6850:"88865711a8a6fcb3",7160:"7c337d7f794a5ae1",7358:"440b00fbfb0f64be",7380:"d52677bc1c14dedc",7660:"20118dbe1a9a2047",7848:"fcadeb3cc9aa00d2",7880:"471f4da76baf114d",7988:"aa19765ddea12d37",8008:"4013eed772c0bedc",8012:"fa72aa7e6b5b041f",8067:"d53f5ca6c5591a04",8101:"d98e82825e786d48",8552:"222c77f601c5c66c",8834:"e245eb68c89f83e8",8864:"6764927e933490e0",8880:"b11a9499df5ed9f5",9128:"24964fbc6e92e42a",9158:"842ef26f15a3579f",9238:"d9292fac7f9d7c5a",9379:"6965cb033e50010d",9454:"fdb6542e7277673f",9461:"28cb55a7dce9fed1",9466:"4362b5ce66b1d9c6",9533:"e7aedbb0b758d1d3",9613:"79015bd91f9b1a5e",9727:"df1eefe0b7f531c9",9847:"dc3a89a6bba25fff",9996:"24d0b0fa3c2c70a4"}[e]+".js",f.miniCssF=e=>{},f.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={},r="app:";f.l=(a,c,b,d)=>{if(e[a])e[a].push(c);else{var t,l;if(void 0!==b)for(var n=document.getElementsByTagName("script"),i=0;i{t.onerror=t.onload=null,clearTimeout(u);var h=e[a];if(delete e[a],t.parentNode&&t.parentNode.removeChild(t),h&&h.forEach(y=>y(p)),_)return _(p)},u=setTimeout(s.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=s.bind(null,t.onerror),t.onload=s.bind(null,t.onload),l&&document.head.appendChild(t)}}})(),f.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;f.tt=()=>(void 0===e&&(e={createScriptURL:r=>r},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),f.tu=e=>f.tt().createScriptURL(e),f.p="",(()=>{var e={9121:0};f.f.j=(c,b)=>{var d=f.o(e,c)?e[c]:void 0;if(0!==d)if(d)b.push(d[2]);else if(9121!=c){var t=new Promise((o,s)=>d=e[c]=[o,s]);b.push(d[2]=t);var l=f.p+f.u(c),n=new Error;f.l(l,o=>{if(f.o(e,c)&&(0!==(d=e[c])&&(e[c]=void 0),d)){var s=o&&("load"===o.type?"missing":o.type),u=o&&o.target&&o.target.src;n.message="Loading chunk "+c+" failed.\n("+s+": "+u+")",n.name="ChunkLoadError",n.type=s,n.request=u,d[1](n)}},"chunk-"+c,c)}else e[c]=0},f.O.j=c=>0===e[c];var r=(c,b)=>{var n,i,[d,t,l]=b,o=0;if(d.some(u=>0!==e[u])){for(n in t)f.o(t,n)&&(f.m[n]=t[n]);if(l)var s=l(f)}for(c&&c(b);o