PageSourceSearch

https://www.1000oceanstartups.org/src_app_features_blog_blog_compo…lper_ts-src_app_-1f51b4.7bdaf3713332ecff.js

js 1000oceanstartups.org collected 2026-09-28 07:26:39 UTC 32,072 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkinitiative_as_a_service=self.webpackChunkinitiative_as_a_service||[]).push([["src_app_features_blog_blog_component_ts-src_app_features_blog_helpers_blog_helper_ts-src_app_-1f51b4"],{24569(R,M,i){i.d(M,{BlogComponent:()=>$t});var a=i(72200),n=i(78884),O=i(84412),d=i(25558),_=i(983),f=i(96354),b=i(44668),P=i(5964),E=i(96697),y=i(53993),S=i(99437),v=i(12257),I=i(97005),D=i(91708),g=i(4810),m=i(1835),t=i(73664),c=i(99213),C=i(59115),p=i(9183),h=i(76192),X=i(86820),K=i(88141),w=i(15955),Y=i(52889),z=i(89451),u=function(s){return s.EDIT="edit",s.SETTINGS="settings",s.UNPUBLISH="unpublish",s}(u||{});const J={[u.EDIT]:{label:"Edit",id:u.EDIT,icon:{icon:"pencil_inline",isSVG:!0}},[u.UNPUBLISH]:{label:"Unpublish",id:u.UNPUBLISH,icon:{icon:"globe-minus",isSVG:!0}},[u.SETTINGS]:{label:"Settings",id:u.SETTINGS,icon:{icon:"settings",isSVG:!0}}};var j=i(1345),Q=i(95060),$=i(26860);let Z=(()=>{class s{transform(e){return[...e.internalAuthors,...e.externalAuthors].map(o=>({name:o.fullName,imageSrc:o.thumbnailUrl}))}static{this.\u0275fac=function(r){return new(r||s)}}static{this.\u0275pipe=t.EJ8({name:"postAuthorsAvatarGroup",type:s,pure:!0})}}return s})();var V=i(36484),q=i(84100);let tt=(()=>{class s{constructor(){this.updatedAt=null,this.lastModifiedBy=null,this.DatePipeFormat=q.u}static{this.\u0275fac=function(r){return new(r||s)}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-modified-cell"]],inputs:{updatedAt:"updatedAt",lastModifiedBy:"lastModifiedBy"},decls:9,vars:9,consts:[[1,"cell-wrapper","body-sm-regular"],[1,"author"],[1,"date"],[1,"d-block"]],template:function(r,o){1&r&&(t.rj2(0,"div",0)(1,"div",1),t.EFF(2),t.eux(),t.rj2(3,"div",2)(4,"span",3),t.EFF(5),t.nI1(6,"date"),t.eux(),t.EFF(7),t.nI1(8,"date"),t.eux()()),2&r&&(t.R7$(2),t.JRh(null==o.lastModifiedBy?null:o.lastModifiedBy.fullName),t.R7$(3),t.JRh(t.i5U(6,3,o.updatedAt,o.DatePipeFormat.MMM_D_Y)),t.R7$(2),t.SpI(" ",t.i5U(8,6,o.updatedAt,o.DatePipeFormat.HH_MM)," "))},dependencies:[a.vh],styles:[".cell-wrapper[_ngcontent-%COMP%]   .author[_ngcontent-%COMP%]{color:var(--colour-text-primary);margin-bottom:var(--space-050)}.cell-wrapper[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{color:var(--colour-text-secondary)}"],changeDetection:0})}}return s})();var et=i(86156),W=i(86906),nt=i(40455);let st=(()=>{class s{constructor(){this.status="",this.unpublishedChanges=!1,this.postStatus=$.n,this.forumTheme=W.C,this.statusComponentSize=n.Iqg.Small,this.statusComponentStyle=n.WO1.Subtle,this.statusComponentType=n.XUj.Positive}ngOnInit(){if(this.unpublishedChanges)this.statusComponentType=n.XUj.Warning;else switch(this.status){case this.postStatus.ACTIVE:this.statusComponentType=n.XUj.Positive;break;case this.postStatus.ARCHIVED:this.statusComponentType=n.ZUJ.Secondary;break;case this.postStatus.DRAFT:this.statusComponentType=n.ZUJ.Primary}}static{this.\u0275fac=function(r){return new(r||s)}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-status-cell"]],inputs:{status:"status",unpublishedChanges:"unpublishedChanges"},decls:3,vars:11,consts:[["matTooltip","The post is live but there are some unpublished changes","matTooltipPosition","below",3,"matTooltipDisabled","type","size"]],template:function(r,o){1&r&&(t.j41(0,"lib-status",0),t.EFF(1),t.nI1(2,"titlecase"),t.k0s()),2&r&&(t.Aen(o.statusComponentStyle),t.HbH(t.VkB("",o.forumTheme," status-badge")),t.Y8G("matTooltipDisabled",!o.unpublishedChanges)("type",o.statusComponentType)("size",o.statusComponentSize),t.R7$(),t.SpI(" ",t.bMT(2,9,o.unpublishedChanges?o.postStatus.ACTIVE:o.status),"\n"))},dependencies:[et.u,nt.oV,n.q9O,a.PV],encapsulation:2,changeDetection:0})}}return s})();function it(s,l){if(1&s&&t.nrm(0,"lib-chip",2),2&s){const e=l.$implicit,r=t.XpG
1();t.HbH(r.forumTheme),t.Y8G("label",e.title)("size",r.chipSize.Small)("selectable",!1)}}let rt=(()=>{class s{constructor(){this.topics=[],this.chipSize=n.SbS,this.forumTheme=W.C}static{this.\u0275fac=function(r){return new(r||s)}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-topics-cell"]],inputs:{topics:"topics"},decls:2,vars:1,consts:[[1,"cell-wrapper"],[3,"class","label","size","selectable",4,"ngFor","ngForOf"],[3,"label","size","selectable"]],template:function(r,o){1&r&&(t.j41(0,"div",0),t.DNE(1,it,1,5,"lib-chip",1),t.k0s()),2&r&&(t.R7$(),t.Y8G("ngForOf",o.topics))},dependencies:[a.Sq,n.wux],styles:["[_nghost-%COMP%]{display:flex;overflow:hidden}.cell-wrapper[_ngcontent-%COMP%]{display:flex;gap:10px;flex-wrap:wrap;overflow:hidden}.cell-wrapper[_ngcontent-%COMP%]   lib-chip[_ngcontent-%COMP%]{overflow:auto}.cell-wrapper[_ngcontent-%COMP%]   lib-chip[_ngcontent-%COMP%]     .chip__touch-target{height:100%}"],changeDetection:0})}}return s})();var x=i(2615),ot=i(17705),at=i(57303),G=i(91029),ct=i(61945),lt=i(68169),mt=i(54219);const k=()=>[],pt=()=>({});function dt(s,l){if(1&s){const e=t.RV6();t.j41(0,"div",6)(1,"app-filter",7),t.nI1(2,"async"),t.bIt("filterChange",function(o){x.eBV(e);const T=t.XpG(2);return x.Njj(T.onFiltersChanged(o))}),t.k0s()()}if(2&s){const e=t.XpG(2);t.R7$(),t.Y8G("isAdmin",!0)("facets",e.facets||t.lJ4(6,k))("siteId",e.siteId)("selectedFilter",t.bMT(2,4,e.originalFilterValues$)||t.lJ4(7,pt))}}function gt(s,l){if(1&s&&(t.qex(0),t.DNE(1,dt,3,8,"div",5),t.bVm()),2&s){const e=t.XpG();t.R7$(),t.Y8G("ngIf",e.facets.length)}}function ut(s,l){1&s&&(t.j41(0,"mat-header-cell"),t.EFF(1,"Title"),t.k0s())}function _t(s,l){if(1&s&&(t.j41(0,"mat-cell")(1,"div",21),t.EFF(2),t.k0s()()),2&s){const e=l.$implicit;t.R7$(2),t.JRh(e.title)}}function ht(s,l){1&s&&(t.j41(0,"mat-header-cell"),t.EFF(1,"Topics"),t.k0s())}function ft(s,l){if(1&s&&(t.j41(0,"mat-cell"),t.nrm(1,"app-topics-cell",22),t.k0s()),2&s){const e=l.$implicit;t.R7$(),t.Y8G("topics",e.topics)}}function Pt(s,l){1&s&&(t.j41(0,"mat-header-cell"),t.EFF(1,"Author(s)"),t.k0s())}function vt(s,l){if(1&s&&(t.j41(0,"mat-cell"),t.nrm(1,"lib-avatar-group",23),t.nI1(2,"postAuthorsAvatarGroup"),t.k0s()),2&s){const e=l.$implicit,r=t.XpG
1(3);t.R7$(),t.Y8G("users",t.bMT(2,4,e))("size",r.avatarSize.XSmall)("limit",r.avatarsVisibleCount)("surplus",!0)}}function Ct(s,l){1&s&&(t.j41(0,"mat-header-cell"),t.EFF(1,"Last modified"),t.k0s())}function Tt(s,l){if(1&s&&(t.j41(0,"mat-cell"),t.nrm(1,"app-modified-cell",24),t.k0s()),2&s){const e=l.$implicit;t.R7$(),t.Y8G("updatedAt",e.updatedAt)("lastModifiedBy",e.lastModifiedBy)}}function Mt(s,l){1&s&&(t.j41(0,"mat-header-cell"),t.EFF(1,"Status"),t.k0s())}function bt(s,l){if(1&s&&(t.j41(0,"mat-cell"),t.nrm(1,"app-status-cell",25),t.k0s()),2&s){const e=l.$implicit;t.R7$(),t.Y8G("status",e.status)("unpublishedChanges",e.unpublishedChanges)}}function Et(s,l){1&s&&t.nrm(0,"mat-header-cell")}function Ot(s,l){if(1&s){const e=t.RV6();t.j41(0,"mat-cell")(1,"lib-icon-button",26),t.bIt("buttonClick",function(){const o=x.eBV(e).$implicit,T=t.XpG(3);return x.Njj(T.postMenuClick(o))}),t.j41(2,"mat-icon",27),t.EFF(3,"more_vert"),t.k0s()()()}if(2&s){const e=t.XpG(3),r=t.sdS(8);t.R7$(),t.Aen(e.buttonStyle.Ghost),t.Y8G("type",e.buttonType.Secondary)("matMenuTriggerFor",r.menu)}}function yt(s,l){1&s&&t.nrm(0,"mat-header-row")}function It(s,l){1&s&&t.nrm(0,"mat-row")}function Dt(s,l){if(1&s){const e=t.RV6();t.j41(0,"mat-table",10),t.bIt("scrolled",function(){x.eBV(e);const o=t.XpG(2);return x.Njj(o.loadMore())}),t.qex(1,11),t.DNE(2,ut,2,0,"mat-header-cell",12)(3,_t,3,1,"mat-cell",13),t.bVm(),t.qex(4,14),t.DNE(5,ht,2,0,"mat-header-cell",12)(6,ft,2,1,"mat-cell",13),t.bVm(),t.qex(7,15),t.DNE(8,Pt,2,0,"mat-header-cell",12)(9,vt,3,6,"mat-cell",13),t.bVm(),t.qex(10,16),t.DNE(11,Ct,2,0,"mat-header-cell",12)(12,Tt,2,2,"mat-cell",13),t.bVm(),t.qex(13,17),t.DNE(14,Mt,2,0,"mat-header-cell",12)(15,bt,2,2,"mat-cell",13),t.bVm(),t.qex(16,18),t.DNE(17,Et,1,0,"mat-header-cell",12)(18,Ot,4,4,"mat-cell",13),t.bVm(),t.DNE(19,yt,1,0,"mat-header-row",19)(20,It,1,0,"mat-row",20),t.k0s()}if(2&s){const e=t.XpG().ngIf,r=t.XpG();t.AVh("table-empty",!(null!=e&&e.length)),t.Y8G("dataSource",e||t.lJ4(9,k))("infiniteScrollDistance",1)("infiniteScrollThrottle",250)("scrollWindow",!1),t.R7$(19),t.Y8G("matHeaderRowDef",r.displayedColumns)("matHeaderRowDefSticky",!0),t.R7$(),t.Y8G("matRowDefColumns",r.displayedColumns)}}function St(s,l){1&s&&(t.j41(0,"div",28),t.nrm(1,"mat-icon",29),t.j41(2,"div"),t.EFF(3," Looks like you don't have any post "),t.nrm(4,"br"),t.EFF(5," When you will write your first blog post, it will be displayed here "),t.k0s()())}function At(s,l){if(1&s&&(t.qex(0),t.DNE(1,Dt,21,10,"mat-table",8)(2,St,6,0,"div",9),t.nI1(3,"async"),t.bVm()),2&s){const e=l.ngIf,r=t.XpG();t.R7$(),t.Y8G("ngIf",null==e?null:e.length),t.R7$(),t.Y8G("ngIf",!(t.bMT(3,2,r.isPostsLoading$)||null!=e&&e.length))}}function xt(s,l){1&s&&(t.j41(0,"div",30),t.nrm(1,"mat-spinner",31),t.k0s())}let Lt=(()=>{class s extends Y.c{set blogData(e){e&&(this._blogData=e,this.initFilters(),this.resetData(),this.fetchPosts())}get blogData(){return this._blogData}set actionOnPost(e){e&&(this.resetData(),this.fetchPosts())}constructor(e,r,o,T,A,L,U,F){super(o,r,e,T,A,L,U),this.location=e,this.route=r,this.sitesSnapshotsService=o,this.filtersMapperService=T,this.routerHelperService=A,this.cdr=L,this.router=U,this.postsService=F,this.action=new t.bkB,this.posts$=this.postsService.posts$.pipe((0,f.T)(B=>B.data)),this.filters$=this.postsService.posts$.pipe((0,f.T)(B=>B.filters),(0,K.M)(B=>this.updateFilterFacets(B)),(0,b.t)(1)),this.isPostsLoading$=this.postsService.isPostsLoading$.asObservable(),this.displayedColumns=["title","topics","authors","lastModifiedBy","status","actions"],this.postStatus=$.n,this.avatarSize=n.PfE,this.buttonStyle=n.inm,this.buttonType=n.ZUJ,this.avatarsVisibleCount=j.HV,this.postMenuItems=J,this.activePost=null,this.filtersInitialized=!1}getMenuConfig(){const e=[this.postMenuItems[u.EDIT],this.postMenuItems[u.SETTINGS]];return(this.activePost?.status===this.postStatus.ACTIVE||this.activePost?.unpublishedChanges)&&e.splice(1,0,this.postMenuItems[u.UNPUBLISH]),{items:e}}loadMore(){this.postsService.nextPostsPage&&this.fetchPosts()}ngOnInit(){super.ngOnInit(),this.initFilters()}ngOnDestroy(){this.resetData(),super.ngOnDestroy()}postMenuClick(e){this.activePost=e}postMenuItemClicked(e){if(this.activePost)switch(e.id){case u.EDIT:this.editAction(this.activePost);break;case u.SETTINGS:this.settingsAction(this.activePost);break;case u.UNPUBLISH:this.unpublishAction(this.activePost)}}editAction(e){this.action.emit({post:e,action:u.EDIT})}settingsAction(e){this.action.emit({post:e,action:u.SETTINGS})}unpublishAction(e){this.action.emit({post:e,action:u.UNPUBLISH})}fetchPosts(){this.postsService.fetchPosts({siteId:this.blogData.siteId,blogId:this.blogData.blogId,options:{per_page:j.cg,filters:!0,...this.filterValues}}).pipe((0,E.s)(1)).subscribe()}resetData(){this.postsService.resetPostsPages()}handleFilterGetData(){this.postsService.resetPostsPages(),this.fetchPosts()}onFiltersChanged(e){this.handleFilter(e)}initFilters(){this.filtersInitialized||(this.filtersMapperService.filtersHelper=Q.n,this.readFragmentFilters(),this.filtersInitialized=!0)}updateFilterFacets(e){e&&Object.keys(e).length>0&&(this.filtersMapperService.filterOptions={...e},this.filtersMapperService.buildFilterFacets())}static{this.\u0275fac=function(r){return new(r||s)(t.rXU(at.aZ),t.rXU(G.nX),t.rXU(ct.X),t.rXU(w.W),t.rXU(lt.T),t.rXU(ot.gRc),t.rXU(G.Ix),t.rXU(V.v))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-post-listing"]],inputs:{blogData:"blogData",actionOnPost:"actionOnPost"},outputs:{action:"action"},features:[t.Jv_([V.v,w.W]),t.Vt3],decls:9,vars:10,consts:[["menuInstance","libMenu"],[1,"content-wrapper"],[4,"ngIf"],["class","table-spinner",4,"ngIf"],["xPosition","before",3,"clicked","menuItemsConfig"],["class","filter-wrapper",4,"ngIf"],[1,"filter-wrapper"],[3,"filterChange","isAdmin","facets","siteId","selectedFilter"],["infiniteScroll","",3,"dataSource","infiniteScrollDistance","infiniteScrollThrottle","scrollWindow","table-empty","scrolled",4,"ngIf"],["class","table-no-content",4,"ngIf"],["infiniteScroll","",3,"scrolled","dataSource","infiniteScrollDistance","infiniteScrollThrottle","scrollWindow"],["matColumnDef","title"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","topics"],["matColumnDef","authors"],["matColumnDef","lastModifiedBy"],["matColumnDef","status"],["matColumnDef","actions"],[4,"matHeaderRowDef","matHeaderRowDefSticky"],[4,"matRowDef","matRowDefColumns"],[1,"title-cell","body-sm-regular"],[3,"topics"],[3,"users","size","limit","surplus"],[3,"updatedAt","lastModifiedBy"],[3,"status","unpublishedChanges"],[3,"buttonClick","type","matMenuTriggerFor"],["libIconContent",""],[1,"table-no-content"],["svgIcon","pen-edit-write"],[1,"table-spinner"],["diameter","40",1,"loading"]],template:function(r,o){if(1&r){const T=t.RV6();t.j41(0,"div",1),t.DNE(1,gt,2,1,"ng-container",2),t.nI1(2,"async"),t.DNE(3,At,4,4,"ng-container",2),t.nI1(4,"async"),t.DNE(5,xt,2,0,"div",3),t.nI1(6,"async"),t.k0s(),t.j41(7,"lib-menu",4,0),t.bIt("clicked",function(L){return x.eBV(T),x.Njj(o.postMenuItemClicked(L))}),t.k0s()}2&r&&(t.R7$(),t.Y8G("ngIf",t.bMT(2,4,o.filters$)),t.R7$(2),t.Y8G("ngIf",t.bMT(4,6,o.posts$)),t.R7$(2),t.Y8G("ngIf",t.bMT(6,8,o.isPostsLoading$)),t.R7$(2),t.Y8G("menuItemsConfig",o.getMenuConfig()))},dependencies:[h.tP,h.Zl,h.tL,h.ji,h.cC,h.YV,h.iL,h.KS,h.$R,h.YZ,h.NB,a.bT,rt,st,tt,X.D,p.D6,p.LG,c.m_,c.An,C.Cn,C.Cp,n.mhw,n.ZuA,n.xBz,n.CR$,z.R,mt.i,a.Jj,Z],styles:["@keyframes _ngcontent-%COMP%_shine-lines{to{transform:translate(100%)}}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}.content-wrapper[_ngcontent-%COMP%]{height:100%;position:relative}.content-wrapper[_ngcontent-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   app-filter[_ngcontent-%COMP%]{padding:0 0 var(--space-200) 0}.content-wrapper[_ngcontent-%COMP%]   mat-table[_ngcontent-%COMP%]   .mat-mdc-row[_ngcontent-%COMP%]{min-height:96px}.content-wrapper[_ngcontent-%COMP%]   mat-table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{padding:var(--space-100) 8px}.content-wrapper[_ngcontent-%COMP%]   mat-table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:first-of-type{padding-left:16px}.content-wrapper[_ngcontent-%COMP%]   mat-table[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]:last-of-type{padding-right:16px}.content-wrapper[_ngcontent-%COMP%]   mat-table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]{padding:var(--space-150) 8px}.content-wrapper[_ngcontent-%COMP%]   mat-table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:16px}.content-wrapper[_ngcontent-%COMP%]   mat-table[_ngcontent-%COMP%]   .mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type{padding-right:16px}.content-wrapper[_ngcontent-%COMP%]   mat-table[_ngcontent-%COMP%]   .mat-column-authors[_ngcontent-%COMP%]{flex:0 1 220px}.content-wrapper[_ngcontent-%COMP%]   mat-table[_ngcontent-%COMP%]   .mat-column-lastModifiedBy[_ngcontent-%COMP%]{flex:0 1 130px}.content-wrapper[_ngcontent-%COMP%]   mat-table[_ngcontent-%COMP%]   .mat-column-status[_ngcontent-%COMP%]{flex:0 1 120px;justify-content:center}.content-wrapper[_ngcontent-%COMP%]   mat-table[_ngcontent-%COMP%]   .mat-column-actions[_ngcontent-%COMP%]{flex:0 1 56px;justify-content:center}.content-wrapper[_ngcontent-%COMP%]   .table-no-content[_ngcontent-%COMP%]{font-family:var(--typography-body-small-font-family);
1font-weight:var(--typography-body-small-font-weight);line-height:var(--typography-body-small-line-height);font-size:var(--typography-body-small-font-size);letter-spacing:var(--typography-body-regular-letter-spacing);text-transform:var(--typography-body-regular-text-case);padding:100px 0;display:flex;flex-direction:column;align-items:center;text-align:center;gap:var(--space-200);color:var(--colour-text-secondary)}.content-wrapper[_ngcontent-%COMP%]   .table-no-content[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:var(--size-600);width:var(--size-600);font-size:var(--size-600);line-height:var(--size-600)}.content-wrapper[_ngcontent-%COMP%]   .title-cell[_ngcontent-%COMP%]{color:var(--colour-text-primary)}"],changeDetection:0})}}return s})();var Rt=i(50105),N=i(72388),H=i(20114),Ut=i(32591),Bt=i(79629),Gt=i(95416),Ft=i(20332);let $t=(()=>{class s{constructor(e,r,o,T,A,L){this.route=e,this.dialog=r,this.router=o,this.blogService=T,this.snackbar=A,this.mixPanelService=L,this.buttonStyle=n.inm,this.resolverData$=this.route.data.pipe((0,f.T)(({data:U})=>U)).pipe((0,f.T)(({blog:U,site:F})=>({siteId:F.id,blogId:U.id,siteUrl:F.path})),(0,b.t)(1)),this.actionOnPost$=new O.t(null)}openPostSettings(e){this.resolverData$.pipe((0,P.p)(Boolean),(0,E.s)(1),(0,d.n)(r=>{const{siteId:o,blogId:T,siteUrl:A}=r;return this.dialog.open(Rt.t,(0,H.bM)(o,T,`${A}${v.n.BLOG_DETAILS}/`,e)).afterClosed().pipe((0,P.p)(Boolean),(0,E.s)(1))})).subscribe(r=>this.onSettingsDialogAction(r))}onPostAction({post:e,action:r}){switch(r){case u.EDIT:this.trackPostMenuAction(e,this.mixPanelService.SUBMIT_TYPE.EDIT),this.router.navigate([e.id],{relativeTo:this.route});break;case u.SETTINGS:this.trackPostMenuAction(e,this.mixPanelService.SUBMIT_TYPE.SETTINGS),this.openPostSettings(e);break;case u.UNPUBLISH:this.unpublishPost(e)}}onSettingsDialogAction({post:e,action:r}){switch(r){case N.h.CREATE:this.router.navigate([e.id],{relativeTo:this.route});break;case N.h.UPDATE:this.trackPostMenuAction(e,this.mixPanelService.SUBMIT_TYPE.SAVE_SETTINGS),this.actionOnPost$.next({post:e,action:r})}}unpublishPost(e){this.dialog.open(I.P,(0,H.om)()).afterClosed().pipe((0,E.s)(1),(0,P.p)(Boolean),(0,y.E)(this.resolverData$),(0,d.n)(([,{siteId:o,blogId:T}])=>this.blogService.patchPost(o,T,e.id,{status:$.n.DRAFT}).pipe((0,E.s)(1),(0,S.W)(()=>(this.snackbar.openFromComponent(D.Y,m.xm),_.w))))).subscribe(()=>{this.snackbar.openFromComponent(D.Y,m.dG),this.actionOnPost$.next({post:e,action:N.h.UPDATE}),this.trackPostUnpublishAction(e)})}trackPostUnpublishAction(e){this.mixPanelService.pageTrack(this.mixPanelService.ACTIONS.CREATE_BLOG,{entityId:e.id,entityName:e.title,entityType:g.Gz.BLOG,created:!1})}trackPostMenuAction(e,r){this.mixPanelService.pageTrack(this.mixPanelService.ACTIONS.SUBMIT,{entityId:e.id,entityName:e.title,entityType:g.Gz.BLOG,type:r})}static{this.\u0275fac=function(r){return new(r||s)(t.rXU(G.nX),t.rXU(Ut.bZ),t.rXU(G.Ix),t.rXU(Bt.c),t.rXU(Gt.UG),t.rXU(Ft.a))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-blog"]],decls:9,vars:8,consts:[[1,"header"],[1,"heading-bold"],["data-cy","new-blog-post-button",3,"buttonClick"],[1,"blog-post-list","d-flex","flex-column"],[3,"action","blogData","actionOnPost"]],template:function(r,o){1&r&&(t.j41(0,"div",0)(1,"div",1),t.EFF(2,"Blog Management"),t.k0s(),t.j41(3,"lib-button",2),t.bIt("buttonClick",function(){return o.openPostSettings()}),t.EFF(4," New Post "),t.k0s()(),t.j41(5,"div",3)(6,"app-post-listing",4),t.nI1(7,"async"),t.nI1(8,"async"),t.bIt("action",function(A){return o.onPostAction(A)}),t.k0s()()),2&r&&(t.R7$(3),t.Aen(o.buttonStyle.Solid),t.R7$(3),t.Y8G("blogData",t.bMT(7,4,o.resolverData$))("actionOnPost",t.bMT(8,6,o.actionOnPost$)))},dependencies:[Lt,n.Qpp,a.Jj],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;padding-top:var(--space-500)}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:var(--space-300)}.blog-post-list[_ngcontent-%COMP%]{height:100%;padding-bottom:var(--space-200)}"],changeDetection:0})}}return s})()},1345(R,M,i){i.d(M,{BO:()=>v,C7:()=>O,CM:()=>a,G3:()=>E,HV:()=>P,Mg:()=>f,VH:()=>d,b4:()=>b,cg:()=>_,lO:()=>y,mB:()=>n,t4:()=>I});const a=500,n=5,O=370,d=3,_=10,f=12,b=2,P=4,E="assets/images/post-placeholder-image.png",y="assets/images/post-placeholder-image-thumbnail.jpeg",S=(D,g)=>({required:"Field is required",minlength:`Min length: ${D} chars`,maxlength:`Max length: ${g} chars`,pattern:"Value can\u2019t start or end with whitespace symbol",whitespace:"Value can\u2019t start or end with whitespace symbol",forbiddenSlug:"Page with this slug already exists"}),v=S(n,a),I=S(b,a)},95060(R,M,i){i.d(M,{n:()=>n});var a=i(62965);const n={authors:{label:"Authors",placeholder:"Choose an author",type:a.c.DROPDOWN,multiply:!0}
1,topics:{label:"Topics",placeholder:"Choose a topic",type:a.c.DROPDOWN,multiply:!0}}},83541(R,M,i){i.d(M,{B:()=>n});var a=i(88192);class n{static mapToUser({id:d,fullName:_,organization:f,position:b,thumbnailUrl:P}){return{id:d,name:_,location:f?b+", "+f:b,...P&&{photoUrl:P}}}static mapToTopics(d){return d?.map(_=>({id:_.document.id,name:_.document.title,title:_.document.title}))}static getEndpointTier({isPublicView:d,currentTier:_,permissions:f}){return!d&&_?_:f?.isManager?a.J.MEMBERS:null}static getPostDate(d){return d.composedAt||d.publishedAt||d.createdAt}static getBackgroundColor(d){return{color:d}}}},36484(R,M,i){i.d(M,{v:()=>E});var a=i(84412),n=i(983),O=i(88141),d=i(99437),_=i(70980),f=i(96354),b=i(2615),P=i(79629);let E=(()=>{class y{constructor(v){this.blogService=v,this.nextPostsPage=null,this.posts$=new a.t({data:[],filters:{}}),this.postsLength$=new a.t(0),this.postsError$=new a.t(null),this.isPostsLoading$=new a.t(!1),this.isPostsLoaded$=new a.t(!1)}fetchPosts(v){this.isPostsLoading$.next(!0);const I={...v.options,...this.nextPostsPage&&{page:this.nextPostsPage}},D={...v.headers,...v.headers?.tier&&{tier:v.headers?.tier}};return this.blogService.getPosts({...v,options:I,headers:D}).pipe((0,O.M)(g=>{this.nextPostsPage=Number(g.headers.get("X-Page"))||null,this.postsLength$.next(Number(g.headers.get("X-Total-Count")))}),(0,f.T)(g=>({data:[...this.posts$.value.data,...g.body?.data||[]],filters:g.body?.filters||{}})),(0,O.M)(g=>this.posts$.next(g)),(0,_.j)(()=>{this.isPostsLoading$.next(!1),this.isPostsLoaded$.next(!0)}),(0,d.W)(g=>(this.postsError$.next(g),n.w)))}resetPostsPages(){this.nextPostsPage=null,this.postsLength$.next(0),this.postsError$.next(null),this.isPostsLoading$.next(!1),this.isPostsLoaded$.next(!1),this.posts$.next({data:[],filters:{}})}static{this.\u0275fac=function(I){return new(I||y)(b.KVO(P.c))}}static{this.\u0275prov=b.jDH({token:y,factory:y.\u0275fac})}}return y})()},48090(R,M,i){i.d(M,{T:()=>a});var a=function(n){return n[n.MOBILE=360]="MOBILE",n[n.TABLET=768]="TABLET",n[n.TABLET_PORTRAIT=786]="TABLET_PORTRAIT",n[n.DESKTOP=1024]="DESKTOP",n[n.LAPTOP=1366]="LAPTOP",n[n.LARGE_DESKTOP=1440]="LARGE_DESKTOP",n[n.FULL_HD=1920]="FULL_HD",n[n.EXTRA_LARGE_DESKTOP=3840]="EXTRA_LARGE_DESKTOP",n}(a||{})},53993(R,M,i){i.d(M,{E:()=>b});var a=i(39974),n=i(54360),O=i(58750),d=i(33669),_=i(85343),f=i(9326);function b(...P){const E=(0,f.ms)(P);return(0,a.N)((y,S)=>{const v=P.length,I=new Array(v);let D=P.map(()=>!1),g=!1;for(let m=0;m<v;m++)(0,O.Tg)(P[m]).subscribe((0,n._)(S,t=>{I[m]=t,!g&&!D[m]&&(D[m]=!0,(g=D.every(d.D))&&(D=null))},_.l));y.subscribe((0,n._)(S,m=>{if(g){const t=[m,...I];S.next(E?E(...t):t)}}))})}},9183(R,M,i){i.d(M,{D6:()=>g,LG:()=>I});var a=i(2615),n=i(73664),O=i(17705),d=i(72200),_=i(31804),f=i(22466);const b=["determinateSpinner"];function P(m,t){if(1&m&&(a.qSk(),n.j41(0,"svg",11),n.nrm(1,"circle",12),n.k0s()),2&m){const c=n.XpG();n.BMQ("viewBox",c._viewBox()),n.R7$(),n.xc7("stroke-dasharray",c._strokeCircumference(),"px")("stroke-dashoffset",c._strokeCircumference()/2,"px")("stroke-width",c._circleStrokeWidth(),"%"),n.BMQ("r",c._circleRadius())}}const E=new a.nKC("mat-progress-spinner-default-options",{providedIn:"root",factory:function y(){return{diameter:S}}}),S=100;let I=(()=>{class m{_elementRef=(0,a.WQX)(n.aKT);_noopAnimations;get color(){return this._color||this._defaultColor}set color(c){this._color=c}_color;_defaultColor="primary";_determinateCircle;constructor(){const c=(0,a.WQX)(E),C=(0,_._J)(),p=this._elementRef.nativeElement;this._noopAnimations="di-disabled"===C&&!!c&&!c._forceAnimations,this.mode="mat-spinner"===p.nodeName.toLowerCase()?"indeterminate":"determinate",!this._noopAnimations&&"reduced-motion"===C&&p.classList.add("mat-progress-spinner-reduced-motion"),c&&(c.color&&(this.color=this._defaultColor=c.color),c.diameter&&(this.diameter=c.diameter),c.strokeWidth&&(this.strokeWidth=c.strokeWidth))}mode;get value(){return"determinate"===this.mode?this._value:0}set value(c){this._value=Math.max(0,Math.min(100,c||0))}_value=0;get diameter(){return this._diameter}set diameter(c){this._diameter=c||0}_diameter=S;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(c){this._strokeWidth=c||0}_strokeWidth;_circleRadius(){return(this.diameter-10)/2}_viewBox(){const c=2*this._circleRadius()+this.strokeWidth;return`0 0 ${c} ${c}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(C){return new(C||m)};static \u0275cmp=n.VBU({type:m,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(C,p){if(1&C&&n.GBs(b,5),2&C){let h;n.mGM(h=n.lsd())&&(p._determinateCircle=h.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(C,p){2&C&&(n.BMQ("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===p.mode?p.value:null)("mode",p.mode),n.HbH("mat-"+p.color),n.xc7("width",p.diameter,"px")("height",p.diameter,"px")("--mat-progress-spinner-size",p.diameter+"px")("--mat-progress-spinner-active-indicator-width",p.diameter+"px"),n.AVh("_mat-animation-noopable",p._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===p.mode))},inputs:{color:"color",mode:"mode",value:[2,"value","value",O.Udg],diameter:[2,"diameter","diameter",O.Udg],strokeWidth:[2,"strokeWidth","strokeWidth",O.Udg]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(C,p){if(1&C&&(n.DNE(0,P,2,8,"ng-template",null,0,n.C5r),n.j41(2,"div",2,1),a.qSk(),n.j41(4,"svg",3),n.nrm(5,"circle",4),n.k0s()(),a.joV(),n.j41(6,"div",5)(7,"div",6)(8,"div",7),n.eu8(9,8),n.k0s(),n.j41(10,"div",9),n.eu8(11,8),n.k0s(),n.j41(12,"div",10),n.eu8(13,8),n.k0s()()()),2&C){const h=n.sdS(1);
1n.R7$(4),n.BMQ("viewBox",p._viewBox()),n.R7$(),n.xc7("stroke-dasharray",p._strokeCircumference(),"px")("stroke-dashoffset",p._strokeDashOffset(),"px")("stroke-width",p._circleStrokeWidth(),"%"),n.BMQ("r",p._circleRadius()),n.R7$(4),n.Y8G("ngTemplateOutlet",h),n.R7$(2),n.Y8G("ngTemplateOutlet",h),n.R7$(2),n.Y8G("ngTemplateOutlet",h)}},dependencies:[d.T3],styles:[".mat-mdc-progress-spinner{--mat-progress-spinner-animation-multiplier: 1;display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mat-progress-spinner-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mat-progress-spinner-reduced-motion{--mat-progress-spinner-animation-multiplier: 1.25}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate calc(1568.2352941176ms*var(--mat-progress-spinner-animation-multiplier)) linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mat-progress-spinner-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate calc(5332ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}\n"],encapsulation:2,changeDetection:0})}return m})(),g=(()=>{class m{static \u0275fac=function(C){return new(C||m)};static \u0275mod=n.$C({type:m});static \u0275inj=a.G2t({imports:[f.y]})}return m})()}}]);

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.