1"use strict";(self["webpackChunkcm_web_app"]=self["webpackChunkcm_web_app"]||[]).push([[27339],{27339:function(e,a,t){t.r(a),t.d(a,{default:function(){return p}});var s=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"daily-recipes"},[t("div",{staticClass:"daily-recipes__top"},[t("div",{staticClass:"daily-recipes__title"},[t("div",[t("h2",{staticClass:"daily-recipes__heading"},[e._v(" "+e._s(e.$t("cards.recipes/recipeOfTheDayHeading"))+" ")]),t("h4",{staticClass:"daily-recipes__subheading"},[e._v(" "+e._s(e.$t("cards.recipes/recipeOfTheDaySubHeading"))+" ")])])])]),t("RecipeCardSlider",{key:e.lastRefreshParam,attrs:{data:e.data,cta:!1,"is-loading":e.isLoading,"analytics-origin-food-view":e.analyticsOriginFoodView}})],1)},i=[],r=t(74353),n=t.n(r),c=t(95810),h=t(94747),d=t(85849),l=t(70783),o={name:"RecipeOfTheDayContainer",components:{RecipeCardSlider:c.A},static:()=>({analyticsOriginFoodView:l.YD.DAILY_LOG_PREMIUM_RECIPES}),data(){return{isLoading:!1,lastRefreshParam:null,refreshParam:null,data:[]}},beforeDestroy(){clearInterval(this.timer),window.removeEventListener("focus",this.onFocus)},created(){this.timer=setInterval(this.updateRefreshParam,6e4),window.addEventListener("focus",this.onFocus),this.fetchData()},methods:{fetchData(){this.updateRefreshParam(),this.isLoading=!0;const{lang:e}=this.userSettings;h.A.searchFoods({refresh:this.refreshParam,filters:{hitsPerPage:3,filters:"isRecipeOfTheDay=1",facetFilters:`(item.segment:${d.GZ.RECIPE_PREMIUM})`},lang:e}).then((e=>{this.data=e.data,this.lastRefreshParam=this.refreshParam})).finally((()=>{this.isLoading=!1}))},updateRefreshParam(){const e=(new Date).toLocaleString("en-US",{timeZone:"America/Los_Angeles"}),a=n()(e),t=n()(Date.now()),s=t.diff(a,"hour");this.refreshParam=n()().startOf("day").add(1,"minute").add(s,"hour").unix()},async onFocus(){this.refreshParam!==this.lastRefreshParam&&await this.fetchData()}}},f=o,u=t(81656),m=(0,u.A)(f,s,i,!1,null,"08c0a142",null),p=m.exports}}]); 2//# sourceMappingURL=27339.fdb415ae.v13_5_0.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.