(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-be61173a"],{"32bf":function(e,t,n){"use strict";n("a822")},"96f1":function(e,t,n){},a822:function(e,t,n){},e338:function(e,t,n){"use strict";n("96f1")},fac6:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return z}));var s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",{staticClass:"content-feed",attrs:{loading:e.loading}},[n("tabs-header",{staticClass:"px-4",attrs:{tabs:e.tabs,active:"home"}}),e.isMember?n("discover-performer"):e._e(),e.isMember?n("cam-soda-models"):e._e(),e.emptyFeed?n("empty-content",{staticClass:"content-feed__empty px-4",attrs:{"img-src":"img/empty-feed.png","img-alt":"empty-feed"}},[n("div",{staticClass:"feed__text mt-4"},[e._v(e._s(e.$t("Oops! Your feed is empty")))]),e.isMember?[n("div",{staticClass:"feed__text mt-2"},[e._v(e._s(e.$t("Follow creators to build your own feed")))]),n("base-button",{staticClass:"content-feed__search-btn mt-8",attrs:{gradient:"","full-width":"",to:{name:"index"}}},[e._v(e._s(e.$t("Search Creators")))])]:n("div",{staticClass:"feed__text mt-4"},[e._v(e._s(e.$t("Try to follow creators to build your own feed")))])],2):n("content-feed-list",{ref:"feedList",staticClass:"py-6",attrs:{scroll:e.scroll,"content-feed-list":e.contentFeedList,"banner-list":e.banners,"payment-packages":e.paymentPackages,"subscription-levels":e.subscriptionLevels},on:{next:e.getNext,like:e.likeHandler,delete:e.deleteHandler}})],1)},a=[],r=(n("99af"),n("4de4"),n("7db0"),n("d81d"),n("d3b7"),n("96cf"),n("1da1")),o=n("2909"),i=n("d4ec"),c=n("bee2"),d=n("262e"),u=n("2caf"),l=n("a34a"),f=n.n(l),h=n("9ab4"),p=n("2fe1"),m=n("855c"),b=n("51ce"),v=n("e3ec"),g=n("9b43"),F=n("ff07"),y=n("78f9"),_=n("fe95"),w=n("c7e2"),O=n("a5de"),j=n("b675"),k=n("8cbe"),E=n("9b65"),x=n("a8f5"),C=n("74d1"),R=n("9310"),P=n("9058"),T=n("eb79"),L=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"camsoda-models"},[n("iframe",{ref:"camsodaThumbsFrame",style:{border:"none",height:e.frameHeight,width:"100%",marginTop:"-50px"},attrs:{id:"camsoda_thumbs",src:e.src,scrolling:"no"}})])},S=[],D=n("a6f4"),H=Object(D["c"])({name:"CamSodaModels",setup:function(){var e=Object(D["o"])("auto"),t=Object(D["o"])("https://promos.camsoda.com/promos/iframe-builder/?id=mixedmag&cmp=camsodalivefeed&type=pps&thumbs=3%22"),n=Object(D["o"])(),s=function(t){return t.data.hasOwnProperty("frameHeight")&&(e.value="".concat(t.data.frameHeight+10,"px"))},a=function(){n.value&&(n.value.src+="")};return Object(D["j"])((function(){window.addEventListener("message",s,!0),window.addEventListener("orientationchange",a,!0)})),Object(D["h"])((function(){window.removeEventListener("message",s,!0),window.removeEventListener("orientationchange",a,!0)})),{frameHeight:e,src:t,camsodaThumbsFrame:n}}}),M=H,N=(n("32bf"),n("2877")),I=Object(N["a"])(M,L,S,!1,null,"a0746ff0",null),$=I.exports,U=function(e){Object(d["a"])(n,e);var t=Object(u["a"])(n);function n(){var e;return Object(i["a"])(this,n),e=t.apply(this,arguments),e.tabs=[{name:"home",text:Object(y["a"])("Home"),to:{name:"home"},classes:{__desktop:!0}},{name:"searchModel",text:Object(y["a"])("Search"),to:{name:"index"}}].concat(Object(o["a"])(e.isMember?[{name:"liveModel",text:Object(y["a"])("Live Models"),href:"https://www.hubzter.live/"}]:[]),[{name:"discover",text:Object(y["a"])("Discover"),to:{name:"discover"}}]),e.contentFeedResponse=null,e.scroll=!1,e.loading=!1,e.subscriptionLevels=[],e.paymentPackages=[],e}return Object(c["a"])(n,[{key:"getFeed",value:function(){var e=Object(r["a"])(f.a.mark((function e(){var t,n,s,a,r,i,c=arguments;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:0,n=!(c.length>1&&void 0!==c[1])||c[1],s=c.length>2?c[2]:void 0,e.prev=3,this.scroll=!1,e.next=7,this.contentFeedFollowingSearch({followerId:this.authUserStrict.id,page:t,sort:"PUBLISH_TIME,DESC"},s);case 7:a=e.sent,!n&&this.contentFeedResponse&&(a.result=[].concat(Object(o["a"])(this.contentFeedResponse.result),Object(o["a"])(a.result))),this.contentFeedResponse=a;case 10:return e.prev=10,this.scroll=null!==(r=null===(i=this.contentFeedResponse)||void 0===i?void 0:i.hasNextPage)&&void 0!==r&&r,e.finish(10);case 13:case"end":return e.stop()}}),e,this,[[3,,10,13]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"likeHandler",value:function(e){this.contentFeedResponse&&this.$set(this.contentFeedResponse,"result",this.contentFeedResponse.result.map((function(t){return t.id===e.id?e:t})))}},{key:"deleteHandler",value:function(e){this.contentFeedResponse&&this.$set(this.contentFeedResponse,"result",this.contentFeedResponse.result.filter((function(t){return t.id!==e})))}},{key:"getNext",value:function(){var e=Object(r["a"])(f.a.mark((function e(t){var n,s,a;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,a=(null!==(n=null===(s=this.contentFeedResponse)||void 0===s?void 0:s.page)&&void 0!==n?n:0)+1,e.next=4,this.getFeed(a,!1);case 4:return e.prev=4,t(),e.finish(4);case 7:case"end":return e.stop()}}),e,this,[[0,,4,7]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"updateFeed",value:function(){var e=Object(r["a"])(f.a.mark((function e(t){return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.contentFeedResponse&&!(this.contentFeedResponse.result.length<0)){e.next=2;break}return e.abrupt("return");case 2:return e.t0=this,e.t1=this.contentFeedResponse,e.next=6,Object(w["a"])({authorId:t.userId,purchasedFeedId:t.feedId},this.contentFeedResponse);case 6:e.t2=e.sent,e.t0.$set.call(e.t0,e.t1,"result",e.t2);case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"created",value:function(){var e=this;this.loading=!0,this.getFeed().finally((function(){return e.loading=!1})),F["a"].SubscriptionLevelProvider.find({userIds:[this.authUserStrict.id]}).then((function(t){return e.subscriptionLevels=t})),F["a"].PaymentPackageProvider.findAll({type:[v["PaymentPackageEnum"].FILESET]}).then((function(t){return e.paymentPackages=t})),_["a"].on(O["b"].CONTENT_FEED_PURCHASED,this.updateFeed),_["a"].on(O["b"].CONTENT_FEED_UPDATED,this.updateFeed)}},{key:"destroyed",value:function(){_["a"].off(O["b"].CONTENT_FEED_PURCHASED,this.updateFeed),_["a"].off(O["b"].CONTENT_FEED_UPDATED,this.updateFeed)}},{key:"isMember",get:function(){return Object(g["checkRole"])(this.authUserStrict.role||"","member")}},{key:"emptyFeed",get:function(){return!this.loading&&0===this.contentFeedList.length}},{key:"contentFeedList",get:function(){var e,t;return null!==(e=null===(t=this.contentFeedResponse)||void 0===t?void 0:t.result)&&void 0!==e?e:[]}}]),n}(Object(p["c"])(b["a"],j["a"]));U=Object(h["__decorate"])([Object(p["b"])({name:"PageFeed",components:{CamSodaModels:$,DiscoverPerformer:T["a"],ContentFeedList:E["a"],BasePage:m["a"],EmptyContent:x["a"],TabsHeader:C["a"],BaseButton:R["a"],BaseIcon:P["a"]},setup:function(){var e=Object(k["a"])(),t=e.banners;return{banners:t}}})],U);var A=U,B=A,J=(n("e338"),Object(N["a"])(B,s,a,!1,null,null,null)),z=J.exports}}]);