(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-12758c94"],{"0381":function(t,e,i){},"04d1":function(t,e,i){var a=i("342f"),r=a.match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},"06c5":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));i("fb6a"),i("d3b7"),i("b0c0"),i("a630"),i("3ca3"),i("ac1f"),i("00b4");var a=i("6b75");function r(t,e){if(t){if("string"===typeof t)return Object(a["a"])(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Object(a["a"])(t,e):void 0}}},2909:function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var a=i("6b75");function r(t){if(Array.isArray(t))return Object(a["a"])(t)}i("a4d3"),i("e01a"),i("d3b7"),i("d28b"),i("3ca3"),i("ddb0"),i("a630");function n(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}var s=i("06c5");function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(t){return r(t)||n(t)||Object(s["a"])(t)||o()}},"3c27":function(t,e,i){"use strict";i("0381")},"4df4":function(t,e,i){"use strict";var a=i("da84"),r=i("0366"),n=i("c65b"),s=i("7b0b"),o=i("9bdd"),c=i("e95a"),l=i("68ee"),u=i("07fa"),d=i("8418"),f=i("9a1f"),p=i("35a1"),m=a.Array;t.exports=function(t){var e=s(t),i=l(this),a=arguments.length,v=a>1?arguments[1]:void 0,h=void 0!==v;h&&(v=r(v,a>2?arguments[2]:void 0));var g,b,y,_,w,C,k=p(e),x=0;if(!k||this==m&&c(k))for(g=u(e),b=i?new this(g):m(g);g>x;x++)C=h?v(e[x],x):e[x],d(b,x,C);else for(_=f(e,k),w=_.next,b=i?new this:[];!(y=n(w,_)).done;x++)C=h?o(_,v,[y.value,x],!0):y.value,d(b,x,C);return b.length=x,b}},"4e50":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"mb-0"},[i("header-view"),i("PageLoader",{attrs:{isLoading:t.isLoading}}),t.featuredPost?i("div",{staticClass:"featured-community-post",style:"background-image: url("+t.imgsrc+t.featuredPost.image+");"},[i("div",{staticClass:"container"},[i("div",{staticClass:"featured-community-post-tag-container"},t._l(t.featuredPost.tags,(function(e,a){return i("div",{key:a,staticClass:"featured-community-post-tag-item"},[t._v(" "+t._s(e.name)+" ")])})),0),i("router-link",{staticStyle:{"text-decoration":"none"},attrs:{to:{name:"blog"===t.featuredPost.id_type?"blog_detail":"receipe_detail",params:{id:t.featuredPost.slug||t.featuredPost.id}}}},[i("h2",{staticClass:"featured-community-post-title"},[t._v(" "+t._s(t.featuredPost.title)+" ")])]),i("div",{staticClass:"d-flex influencer-container-mini"},[i("img",{attrs:{src:t.imgsrc+t.featuredPost.influencers.image}}),i("div",{staticClass:"my-3 text-capitalize",staticStyle:{color:"white","text-shadow":"0 0 1px #333"}},[t._v(" "+t._s(t.featuredPost.influencers.name)+" ")])]),i("div",["blog"===t.featuredPost.id_type?i("a",{staticClass:"featured-btn btn btn-info",attrs:{href:"/bloglist"},on:{click:function(e){return e.preventDefault(),t.$router.push("/bloglist")}}},[i("img",{staticClass:"pr-3",attrs:{src:t.uploadURL+"/front/img/pbtn.svg"}}),t._v(" View Blogs ")]):i("a",{staticClass:"featured-btn btn btn-info",attrs:{href:"/receipelist"},on:{click:function(e){return e.preventDefault(),t.$router.push("/receipelist")}}},[i("img",{staticClass:"pr-3",attrs:{src:t.uploadURL+"/front/img/pbtn.svg"}}),t._v(" View Recipes ")])])],1)]):t._e(),t._m(0),i("div",{staticClass:"container"},[t._m(1),i("div",{staticClass:"row"},[i("div",{staticClass:"col-md-6 pt-5"},[t.latest&&t.latest[0]?i("div",[i("RecipeItem",{attrs:{data:t.latest[0],type:t.latest[0].type}})],1):t._e(),0===t.latest.length?i("div",[t._v("No Latest Posts found")]):t._e()]),i("div",{staticClass:"col-md-6"},[t.latest.length?i("Slider",{attrs:{doubleRow:!0}},t._l(t.latest.slice(1),(function(t,e){return i("div",{key:"latest-"+e,staticClass:"p-2"},[i("RecipeItem",{attrs:{data:t,type:t.type,equalDetailHeight:""}})],1)})),0):t._e()],1)]),t._m(2),t.getCommunityPosts("blog").length||t.getCommunityPosts("receipe").length?i("Slider",[t._l(t.getCommunityPosts("blog"),(function(t,e){return i("div",{key:"communityblog-"+e,staticClass:"p-2"},[i("RecipeItem",{attrs:{data:t,type:"blog"}})],1)})),t._l(t.getCommunityPosts("receipe"),(function(t,e){return i("div",{key:"communityrecipe-"+e,staticClass:"p-2"},[i("RecipeItem",{attrs:{data:t,type:"recipe"}})],1)}))],2):i("div",[t._v("No community TV Posts found")])],1),i("NewsLater")],1)},r=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"container"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("h2",{staticClass:"comttiit pt-3"},[t._v("The Rooted Community")])])])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"mt-5 mb-3"},[i("h4",[t._v("Latest at The Rooted Co")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"mt-5 mb-3"},[i("h4",[t._v("The Rooted Co TV")])])}],n=i("2909"),s=i("b85c"),o=i("5530"),c=i("1da1"),l=(i("fb6a"),i("4e82"),i("99af"),i("96cf"),i("0315")),u=i("2f62"),d=i("7867"),f=i("1285"),p=i("b475"),m=i("1b37"),v=i("7ecd"),h=i("825e"),g=(i("b725"),function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"d-flex justify-content-end align-items-center allslider"},[i("button",{staticClass:"btn btn-sm btn-primary m-1",staticStyle:{width:"30px"},on:{click:t.slickPrev}},[i("img",{attrs:{src:"front/img/pre.svg"}})]),i("button",{staticClass:"btn btn-sm btn-primary m-1",staticStyle:{width:"30px"},on:{click:t.slickNext}},[i("img",{attrs:{src:"front/img/nxt.svg"}})]),i("a",{staticClass:"m-1 text-decoration-none allsliderv",attrs:{href:"javascript:void(0);"}},[t._v("View All")])]),i("div",{attrs:{id:"slick"+t.slickId}},[t._t("default",(function(){return[t._v("no content")]}))],2)])}),b=[],y={mounted:function(){var t=this.slickOptions;this.doubleRow&&(t=this.doubleRowSlickOptions),$("#slick"+this.slickId).slick(Object(o["a"])({},t))},props:{doubleRow:{type:Boolean}},components:{Slick:v["a"]},methods:{slickNext:function(){$("#slick"+this.slickId).slick("slickNext")},slickPrev:function(){$("#slick"+this.slickId).slick("slickPrev")}},data:function(){return{slickId:"slick"+Math.floor(1e6*Math.random()),slickOptions:{slidesToShow:4,slidesToScroll:1,arrows:!1,autoplay:!1,autoplaySpeed:2e3,dots:!1,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3,infinite:!0,dots:!1}},{breakpoint:600,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]},doubleRowSlickOptions:{slidesPerRow:2,rows:2,arrows:!1,autoplay:!1,autoplaySpeed:2e3,dots:!1,responsive:[{breakpoint:1024,settings:{slidesPerRow:2,infinite:!0,dots:!1}},{breakpoint:600,settings:{rows:1,slidesPerRow:2}},{breakpoint:480,settings:{rows:1,slidesPerRow:1}}]}}}},_=y,w=i("2877"),C=Object(w["a"])(_,g,b,!1,null,"e599214e",null),k=C.exports,x={data:function(){return{imgsrc:"https://demo.therootedcompany.in/public/images/",settings:[],blogs:[],single_name:"",community:[],influencers:[],type_receipe:[],type_blog:[],featuredPost:null,uploadURL:h["c"],isLoading:!1}},head:{title:{inner:"Tips on how to embrace an active & healthy lifestyle"},meta:[{name:"application-name",content:"Tips on how to embrace an active & healthy lifestyle"},{name:"description",content:"Join our Munchilicious community to stay updated with healthy recipes & tips from various health influencers to help you achieve your health and fitness goals.",id:"desc"},{name:"twitter:title",content:"Tips on how to embrace an active & healthy lifestyle"},{n:"twitter:description",c:"Join our Munchilicious community to stay updated with healthy recipes & tips from various health influencers to help you achieve your health and fitness goals."},{itemprop:"name",content:"Tips on how to embrace an active & healthy lifestyle"},{itemprop:"description",content:"Join our Munchilicious community to stay updated with healthy recipes & tips from various health influencers to help you achieve your health and fitness goals."},{property:"fb:app_id",content:"123456789"},{property:"og:title",content:"Tips on how to embrace an active & healthy lifestyle"}]},components:{HeaderView:l["a"],Slick:v["a"],Slider:k,RecipeItem:d["a"],PageLoader:p["a"],Press:f["a"],NewsLater:m["a"]},methods:{communityDetails:function(){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,h["b"].get(h["a"]+"/community");case 3:i=e.sent,t.community=i.data.result,t.influencers=i.data.all_influencers,t.type_receipe=i.data.type_receipe,t.type_blog=i.data.type_blog,console.log("type receipe",t.type_receipe),e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](0),console.log("error in loadinng community details");case 14:case"end":return e.stop()}}),e,null,[[0,11]])})))()},communityFeatured:function(){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,h["b"].get(h["a"]+"/community-featured");case 3:i=e.sent,t.featuredPost=i.data.result,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),console.log("Error in laoding featured post");case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))()},getCommunityPosts:function(t){var e=this.community;if(e&&Array.isArray(e)&&e.length>0&&e[0][t]){var i=e[0][t];return console.log("data beingn returned",i),i}return[]}},mounted:function(){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.isLoading=!0,e.prev=1,e.next=4,t.communityFeatured();case 4:return e.next=6,t.communityDetails();case 6:e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](1),console.log("error in fetching community details");case 11:t.isLoading=!1;case 12:case"end":return e.stop()}}),e,null,[[1,8]])})))()},computed:Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])({},Object(u["d"])("auth",{})),Object(u["d"])("products",{open:function(t){return t.products}})),Object(u["d"])("cart",{cartTotalQty:function(t){return t.cart?t.cart.total_qty:""}})),Object(u["c"])({authenticated:"auth/authenticated",user:"auth/user"})),{},{latest:function(){var t,e=[],i=Object(s["a"])(this.type_receipe);try{for(i.s();!(t=i.n()).done;){var a=t.value;a.type="recipe",e=[].concat(Object(n["a"])(e),[a])}}catch(l){i.e(l)}finally{i.f()}var r,o=Object(s["a"])(this.type_blog);try{for(o.s();!(r=o.n()).done;){var c=r.value;c.type="blog",e=[].concat(Object(n["a"])(e),[c])}}catch(l){o.e(l)}finally{o.f()}return e=e.sort((function(t,e){return e.created_at-t.created_at})).slice(0,13),e}})},S=x,j=(i("f585"),Object(w["a"])(S,a,r,!1,null,"5e84be83",null));e["default"]=j.exports},"4e82":function(t,e,i){"use strict";var a=i("23e7"),r=i("e330"),n=i("59ed"),s=i("7b0b"),o=i("07fa"),c=i("577e"),l=i("d039"),u=i("addb"),d=i("a640"),f=i("04d1"),p=i("d998"),m=i("2d00"),v=i("512c"),h=[],g=r(h.sort),b=r(h.push),y=l((function(){h.sort(void 0)})),_=l((function(){h.sort(null)})),w=d("sort"),C=!l((function(){if(m)return m<70;if(!(f&&f>3)){if(p)return!0;if(v)return v<603;var t,e,i,a,r="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:i=3;break;case 68:case 71:i=4;break;default:i=2}for(a=0;a<47;a++)h.push({k:e+a,v:i})}for(h.sort((function(t,e){return e.v-t.v})),a=0;ac(i)?1:-1}};a({target:"Array",proto:!0,forced:k},{sort:function(t){void 0!==t&&n(t);var e=s(this);if(C)return void 0===t?g(e):g(e,t);var i,a,r=[],c=o(e);for(a=0;at.length)&&(e=t.length);for(var i=0,a=new Array(e);i=51||!n((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),_=f("concat"),w=function(t){if(!o(t))return!1;var e=t[v];return void 0!==e?!!e:s(t)},C=!y||!_;a({target:"Array",proto:!0,forced:C},{concat:function(t){var e,i,a,r,n,s=c(this),o=d(s,0),f=0;for(e=-1,a=arguments.length;eh)throw b(g);for(i=0;i=h)throw b(g);u(o,f++,n)}return o.length=f,o}})},"9bdd":function(t,e,i){var a=i("825a"),r=i("2a62");t.exports=function(t,e,i,n){try{return n?e(a(i)[0],i[1]):e(i)}catch(s){r(t,"throw",s)}}},a630:function(t,e,i){var a=i("23e7"),r=i("4df4"),n=i("1c7e"),s=!n((function(t){Array.from(t)}));a({target:"Array",stat:!0,forced:s},{from:r})},addb:function(t,e,i){var a=i("4dae"),r=Math.floor,n=function(t,e){var i=t.length,c=r(i/2);return i<8?s(t,e):o(t,n(a(t,0,c),e),n(a(t,c),e),e)},s=function(t,e){var i,a,r=t.length,n=1;while(n0)t[a]=t[--a];a!==n++&&(t[a]=i)}return t},o=function(t,e,i,a){var r=e.length,n=i.length,s=0,o=0;while(s=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,c=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return o=t.done,t},e:function(t){c=!0,s=t},f:function(){try{o||null==i["return"]||i["return"]()}finally{if(c)throw s}}}}},d28b:function(t,e,i){var a=i("746f");a("iterator")},d998:function(t,e,i){var a=i("342f");t.exports=/MSIE|Trident/.test(a)},f585:function(t,e,i){"use strict";i("fead")},fead:function(t,e,i){}}]); //# sourceMappingURL=chunk-12758c94.3b22c73c.js.map