PageSourceSearch

https://app.healthplexus.net/js/PostsView-vue.6b0bdc1b.js

js healthplexus.net collected 2026-10-02 06:22:28 UTC 7,437 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunklumenii"]=self["webpackChunklumenii"]||[]).push([[848],{91410:function(t,e,s){s.d(e,{A:function(){return h}});var o=s(1032),r=s(55993),i=s(339),n=function(){var t=this,e=t._self._c;return t.isLoading?e(i.A,{ref:"table",attrs:{type:"table-thead, table-tbody, table-tfoot"}}):e(r.A,t._g({ref:"table",staticClass:"c-table",attrs:{"group-by":t.groupBy,"group-desc":t.groupDesc,headers:t.translatedHeaders,items:t.items,"item-class":"c-row","item-key":"id",loading:t.isLoading,"loading-text":t.loadingText,"sort-by":t.sortBy,"sort-desc":t.sortDesc,"multi-sort":"","show-expand":!0,"show-group-by":t.showGroupBy},scopedSlots:t._u([t._l(t.slotNames,function(e){return{key:`item.${e}`,fn:function(s){let{item:o}=s;return[t._t(e,null,{item:o})]}}}),{key:"expanded-item",fn:function(s){let{item:o}=s;return[e("td",{staticClass:"c-details py-4",attrs:{colspan:t.headers.length}},[t._t("card",null,{item:o})],2)]}},{key:"no-data",fn:function(){return[e(o.A,{attrs:{color:"primary"},on:{click:function(e){return t.$emit("resync")}}},[t._v(" "+t._s(t.$t("ui.reset"))+" ")])]},proxy:!0}],null,!0)},t.$listeners))},a=[],u=(s(18111),s(61701),{name:"CardTable",components:{},props:{headers:{type:Array,required:!0},items:{type:Array,required:!0},loading:{type:Boolean,required:!0},width:{type:Number,required:!1,default:0}},data:function(){return{tableWidth:this.width,expanded:[],groupBy:[],groupDesc:[],sortBy:[],sortDesc:[!1],showGroupBy:!1,singleExpand:!1}},computed:{isLoading(){return this.loading},loadingText(){return this.$t("ui.loading")},slotNames(){return this.headers.map(t=>t.name)},translatedHeaders(){return this.headers.map(t=>Object.assign({},t,{text:this.$t(t.text),value:t.name}))}},watch:{width:{immediate:!1,handler:function(t,e){this.tableWidth=t||this.$refs.table.clientWidth}}},mounted:function(){},methods:{}}),l=u,d=s(81656),c=(0,d.A)(l,n,a,!1,null,"0a3ea36b",null),h=c.exports},40419:function(t,e,s){s.r(e),s.d(e,{default:function(){return M}});var o=s(82115),r=function(){var t=this,e=t._self._c;return e("div",{ref:"postsView",staticClass:"c-posts-view",attrs:{id:"postsView"}},[e("LayoutToolbar",{staticClass:"c-toolbar",attrs:{items:t.posts,expand:t.expand,filters:t.postFilters,layouts:t.layouts,reset:t.resetToolbar,"scroll-target":t.scrollTarget,sort:t.postSortOptionName,sorts:t.postSortOptions},on:{results:function(e){return t.onResults(e)},collapse:function(e){t.expand=!1},expand:function(e){t.expand=!0},"update:layout":function(e){return t.updatePreferences({postsLayout:e})},"update:sort":function(e){return t.updatePreferences({postsSort:e})}},model:{value:t.layout,callback:function(e){t.layout=e},expression:"layout"}}),e(o.A,{attrs:{active:t.isLoading,color:"red",height:8,indeterminate:"",striped:""}}),t.isCardLayout?e("CardView",{attrs:{layout:t.layout,items:t.resultSet,"max-items":t.maxItems,loading:t.isLoading,"tree-attribute":"postedBy","tree-expand":t.expand},scopedSlots:t._u([{key:"card",fn:function(s){return[t.isLoading?e("PostCardSkeleton"):e("PostCard",{attrs:{post:s.item},on:{share:function(e){return t.sharePost(s.item)},"view:post":function(e){return t.viewPost(s.item)}}})]}}],null,!1,1533048836)}):e("PostTable",{staticClass:"mb-4",attrs:{posts:t.resultSet,loading:t.isLoading},on:{resync:function(e){t.resetToolbar+=1},view:function(e){return t.viewPost(e)}},scopedSlots:t._u([{key:"card",fn:function(s){return[e("PostCard",{attrs:{post:s.item},on:{share:function(e){return t.sharePost(s.item)},"view:post":function(e){return t.viewPost(s.item)}}})]}}])}),t.showPostViewer?e("PostModal",{attrs:{post:t.activePost},model:{value:t.showPostViewer,callback:function(e){t.showPostViewer=e},expression:"showPostViewer"}}):t._e(),t.showSharingModal?e("ShareModal",{attrs:{entity:t.sharedEntity},model:{value:t.showSharingModal,callback:function(e){t.showSharingModal=e},expression:"showSharingModal"}}):t._e()],1)},i=[],n=(s(74423),s(44114),s(95353)),a=s(11115),u=s(47849),l=s(9326),d=s(34512),c=function(){var t=this,e=t._self._c;return e("CardTable",{attrs:{headers:t.headers,items:t.posts,loading:t.loading},on:{resync:function(e){return t.$emit("resync")},"click:row":function(e){return t.$emit("view",e)}},scopedSlots:t._u([{key:"thumbnail",fn:function(t){let{item:s}=t;return[e(d.A,{staticClass:"my-2",attrs:{alt:"thumbnail",contain:"",src:s.thumbnail,"max-height":50,"max-width":50}})]}},{key:"title",fn:function(e){let{item:s}=e;return[t._v(" "+t._s(s.title)+" ")]}},{key:"episode",fn:function(e){let{item:s}=e;return[t._v(" "+t._s(s.episode)+" ")]}},{key:"author",fn:function(e){let{item:s}=e;return[t._v(" "+t._s(s.author.displayName)+" ")]}},{key:"topic",fn:function(e){let{item:s}=e;return[t._v(" "+t._s(s.topic?s.topic[t.locale]:"")+" ")]}},{key:"postType",fn:function(e){let{item:s}=e;return[t._v(" "+t._s(t.$t(`post.type.${s.genre}`))+" ")]}},{key:"card",fn:function(e){return[t._t("card",null,{item:e.item})]}}],null,!0)})},h=[],p=s(91410),m={name:"PostTable",components:{CardTable:p.A},props:{posts:{type:Array,required:!0},loading:{type:Boolean,required:!0}},data:function(){return{}},computed:{headers(){return this.$store.state.postStore.headers},locale(){return this.$store.state.userStore.locale},loadingText(){return this.$t("ui.loading")}},methods:{}},f=m,y=s(81656),g=(0,y.A)(f,c,h,!1,null,"293956be",null),w=g.exports,P=s(75402),b=s(52626),v=s(93610),x=s(10653),S=s(88772),_=s(15944),k=s(7968),L={name:"PostsView",components:{PostCard:a.A,PostCardSkeleton:u.A,PostModal:l.A,PostTable:w,CardView:P.A,LayoutToolbar:b.A,ShareModal:v.A},mixins:[x.A,S.A,_.A],data:function(){return{activated:!1,activePost:null,resultSet:[],skeletonPosts:(0,k.M)(24),layout:"grid",expand:!1,resetToolbar:0,sharedEntity:{},showSharingModal:!1,showPostViewer:!1}},computed:{...(0,n.L8)("postStore",["arePostsPrimed"]),...(0,n.L8)("userStore",["getPreference"]),isLoading(){return!this.arePostsPrimed},posts(){return this.isLoading?this.skeletonPosts:this.$store.state.postStore.posts},maxItems(){return this.posts.length},scrollTarget(){return"window"},isCardLayout(){return["carousel","grid","tree"].includes(this.layout)},layouts(){return["grid","carousel"]},postsLayout(){return this.getPreference("postsLayout")},postFilters(){return this.postMixin_filters},postSortOptions(){return this.postMixin_sorts},postSortOptionName(){return this.getPreference("postsSort")}},watch:{postsLayout:{immediate:!0,handler:function(t,e){"vgrid"===t&&(this.updatePreferences({postsLayout:"grid"}),this.layout="grid")}}},created:async function(){this.layout=this.postsLayout,this.fetchPosts()},mounted:function(){},activated:function(){this.activated=!0,this.isLoading||this.$emit("count",this.resultSet.length)},deactivated:function(){this.activated=!1,this.closeModals()},beforeDestroy:function(){this.closeModals()},methods:{...(0,n.i0)("postStore",["fetchPosts"]),...(0,n.i0)("userStore",["updatePreferences"]),onResults(t){this.resultSet=t,this.isLoading||this.$emit("count",this.resultSet.length)},closeModals(){this.activePost=null,this.showSharingModal=!1,this.showPostViewer=!1},async sharePost(t){this.activePost=t,this.sharedEntity=await this.shareMixin_sharePost(t),this.showSharingModal=!!this.sharedEntity},viewPost2(t){this.activePost=t,this.showPostViewer=!0},viewPost(t){this.activePost=t,this.$router.push({name:"ipost",params:{id:t.id}})}}},A=L,C=(0,y.A)(A,r,i,!1,null,"6f7c7a20",null),M=C.exports}}]);
2//# sourceMappingURL=PostsView-vue.6b0bdc1b.js.map

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.