1(function(){var t={5358:function(t,e,s){var n={"./af":5177,"./af.js":5177,"./ar":1509,"./ar-dz":1488,"./ar-dz.js":1488,"./ar-kw":8676,"./ar-kw.js":8676,"./ar-ly":2353,"./ar-ly.js":2353,"./ar-ma":4496,"./ar-ma.js":4496,"./ar-ps":6947,"./ar-ps.js":6947,"./ar-sa":2682,"./ar-sa.js":2682,"./ar-tn":9756,"./ar-tn.js":9756,"./ar.js":1509,"./az":5533,"./az.js":5533,"./be":8959,"./be.js":8959,"./bg":7777,"./bg.js":7777,"./bm":4903,"./bm.js":4903,"./bn":1290,"./bn-bd":7357,"./bn-bd.js":7357,"./bn.js":1290,"./bo":1545,"./bo.js":1545,"./br":1470,"./br.js":1470,"./bs":4429,"./bs.js":4429,"./ca":7306,"./ca.js":7306,"./cs":6464,"./cs.js":6464,"./cv":3635,"./cv.js":3635,"./cy":4226,"./cy.js":4226,"./da":3601,"./da.js":3601,"./de":7853,"./de-at":6111,"./de-at.js":6111,"./de-ch":4697,"./de-ch.js":4697,"./de.js":7853,"./dv":708,"./dv.js":708,"./el":4691,"./el.js":4691,"./en-au":3872,"./en-au.js":3872,"./en-ca":8298,"./en-ca.js":8298,"./en-gb":6195,"./en-gb.js":6195,"./en-ie":6584,"./en-ie.js":6584,"./en-il":5543,"./en-il.js":5543,"./en-in":9033,"./en-in.js":9033,"./en-nz":9402,"./en-nz.js":9402,"./en-sg":3004,"./en-sg.js":3004,"./eo":2934,"./eo.js":2934,"./es":7650,"./es-do":838,"./es-do.js":838,"./es-mx":7730,"./es-mx.js":7730,"./es-us":6575,"./es-us.js":6575,"./es.js":7650,"./et":3035,"./et.js":3035,"./eu":3508,"./eu.js":3508,"./fa":119,"./fa.js":119,"./fi":527,"./fi.js":527,"./fil":5995,"./fil.js":5995,"./fo":2477,"./fo.js":2477,"./fr":5498,"./fr-ca":6435,"./fr-ca.js":6435,"./fr-ch":7892,"./fr-ch.js":7892,"./fr.js":5498,"./fy":7071,"./fy.js":7071,"./ga":1734,"./ga.js":1734,"./gd":217,"./gd.js":217,"./gl":7329,"./gl.js":7329,"./gom-deva":2124,"./gom-deva.js":2124,"./gom-latn":3383,"./gom-latn.js":3383,"./gu":5050,"./gu.js":5050,"./he":1713,"./he.js":1713,"./hi":3861,"./hi.js":3861,"./hr":6308,"./hr.js":6308,"./hu":609,"./hu.js":609,"./hy-am":7160,"./hy-am.js":7160,"./id":4063,"./id.js":4063,"./is":9374,"./is.js":9374,"./it":8383,"./it-ch":1827,"./it-ch.js":1827,"./it.js":8383,"./ja":6208,"./ja.js":6208,"./jv":9722,"./jv.js":9722,"./ka":1794,"./ka.js":1794,"./kk":7088,"./kk.js":7088,"./km":6870,"./km.js":6870,"./kn":4451,"./kn.js":4451,"./ko":3164,"./ko.js":3164,"./ku":8174,"./ku-kmr":6181,"./ku-kmr.js":6181,"./ku.js":8174,"./ky":8474,"./ky.js":8474,"./lb":9680,"./lb.js":9680,"./lo":5867,"./lo.js":5867,"./lt":5766,"./lt.js":5766,"./lv":9532,"./lv.js":9532,"./me":8076,"./me.js":8076,"./mi":1848,"./mi.js":1848,"./mk":306,"./mk.js":306,"./ml":3739,"./ml.js":3739,"./mn":9053,"./mn.js":9053,"./mr":6169,"./mr.js":6169,"./ms":3386,"./ms-my":2297,"./ms-my.js":2297,"./ms.js":3386,"./mt":7075,"./mt.js":7075,"./my":2264,"./my.js":2264,"./nb":2274,"./nb.js":2274,"./ne":8235,"./ne.js":8235,"./nl":2572,"./nl-be":3784,"./nl-be.js":3784,"./nl.js":2572,"./nn":4566,"./nn.js":4566,"./oc-lnc":9330,"./oc-lnc.js":9330,"./pa-in":9849,"./pa-in.js":9849,"./pl":4418,"./pl.js":4418,"./pt":9834,"./pt-br":8303,"./pt-br.js":8303,"./pt.js":9834,"./ro":4457,"./ro.js":4457,"./ru":2271,"./ru.js":2271,"./sd":1221,"./sd.js":1221,"./se":3478,"./se.js":3478,"./si":7538,"./si.js":7538,"./sk":5784,"./sk.js":5784,"./sl":6637,"./sl.js":6637,"./sq":6794,"./sq.js":6794,"./sr":5719,"./sr-cyrl":3322,"./sr-cyrl.js":3322,"./sr.js":5719,"./ss":6e3,"./ss.js":6e3,"./sv":1011,"./sv.js":1011,"./sw":748,"./sw.js":748,"./ta":1025,"./ta.js":1025,"./te":1885,"./te.js":1885,"./tet":8861,"./tet.js":8861,"./tg":6571,"./tg.js":6571,"./th":5802,"./th.js":5802,"./tk":9527,"./tk.js":9527,"./tl-ph":9231,"./tl-ph.js":9231,"./tlh":1052,"./tlh.js":1052,"./tr":5096,"./tr.js":5096,"./tzl":9846,"./tzl.js":9846,"./tzm":1765,"./tzm-latn":7711,"./tzm-latn.js":7711,"./tzm.js":1765,"./ug-cn":8414,"./ug-cn.js":8414,"./uk":6618,"./uk.js":6618,"./ur":158,"./ur.js":158,"./uz":7609,"./uz-latn":2475,"./uz-latn.js":2475,"./uz.js":7609,"./vi":1135,"./vi.js":1135,"./x-pseudo":4051,"./x-pseudo.js":4051,"./yo":2218,"./yo.js":2218,"./zh-cn":2648,"./zh-cn.js":2648,"./zh-hk":1632,"./zh-hk.js":1632,"./zh-mo":1541,"./zh-mo.js":1541,"./zh-tw":304,"./zh-tw.js":304};function r(t){var e=o(t);return s(e)}function o(t){if(!s.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}r.keys=function(){return Object.keys(n)},r.resolve=o,t.exports=r,r.id=5358},6665:function(t,e,s){"use strict";var n=s(5471),r=s(6513),o=s(7043),i=s(234),a=s(2605),l=s(9310),c=s(7295),d=s(1698),p=s(8756),u=function(){var t=this,e=t._self._c;return e(r.A,[e(o.A,{attrs:{app:"",dark:"",flat:""}},[e(i.A,{attrs:{text:"",href:"https://foodfastfit.com/"}},[e(c.A,{attrs:{left:""}},[t._v("mdi-pound")]),t._v(" FOODFASTFIT")],1),e("WaitForExtension2",{attrs:{extensionId:"mfdcclpjngnnnhplbbldfnbfkjipfald"},scopedSlots:t._u([{key:"ready",fn:function(){return[e(l.A,{scopedSlots:t._u([{key:"default",fn:function({hover:s}
1){return[e(i.A,{staticClass:"d-none d-sm-flex",attrs:{href:"https://eatandtrack.com/",outlined:"",color:"orange"}},[e(c.A,{attrs:{left:""}},[s?[t._v("mdi-alert-decagram")]:[t._v("mdi-alert-decagram-outline")]],2),t._v("New: eatandtrack.com")],1)]}}])})]},proxy:!0},{key:"default",fn:function(){return[e(i.A,{staticClass:"d-none d-sm-flex",attrs:{text:"",href:"https://chrome.google.com/webstore/detail/mfp-recipes-by-foodfastfi/fpcgaacncglfohpfjcfidijnjnlmlhdd"}},[e(c.A,{attrs:{left:""}},[t._v("mdi-google-chrome")]),t._v(" New: Quickly search your MFP recipes")],1)]},proxy:!0}])}),e(p.A)],1),e(d.A,[e("Uid",[e("router-view")],1),e(a.A,[e("Footer")],1)],1)],1)},f=[],m=s(2302),h=s(2573),g=function(){var t=this,e=t._self._c;return e("div",[t.response?t._e():t._t("default"),t.response?t._t("ready",null,{response:t.response}):t._e()],2)},_=[],v=s(4480),y=s.n(v);const A=function(){window?.chrome?.runtime?.sendMessage?.(this.extensionId,null,t=>{this.response=t,this.$emit("update:response",this.response),(0,v.cond)([[v.identity,window.console.log]])(window?.chrome?.runtime?.lastError)})};var j={data(){return{response:null}},mounted:A,props:{extensionId:{required:!0}}},w=j,b=s(1656),x=(0,b.A)(w,g,_,!1,null,null,null),k=x.exports,C={components:{Footer:m.A,Uid:h.A,WaitForExtension2:k}},S=C,I=(0,b.A)(S,u,f,!1,null,null,null),F=I.exports,z=s(173),E=function(){var t=this,e=t._self._c;return e("Home")},$=[],R=s(8126),M=s(8728),T=s(200),O=function(){var t=this,e=t._self._c;return e("div",[e(a.A,{attrs:{fluid:""}},[e("MacroSettings2")],1),e("WaitForExtension2",{attrs:{extensionId:"mfdcclpjngnnnhplbbldfnbfkjipfald"},scopedSlots:t._u([{key:"ready",fn:function(){return[e(a.A,{attrs:{fluid:""}},[e(R.A,{attrs:{flat:"",outlined:""}},[e(M.ri,[t._v("How I would hit 175g of protein")]),e(M.ZR,[t._v("EatAndTrack.com Demo")]),e(M.OQ,[e(a.A,{staticClass:"pa-0"},[e(T.A,{attrs:{"aspect-ratio":16/9}},[e("iframe",{attrs:{width:"100%",height:"100%",src:"https://www.youtube.com/embed/K8IEQEQ_Ei0?si=s3vQDE9rU512nwAb",title:"YouTube video player",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerpolicy:"strict-origin-when-cross-origin",allowfullscreen:""}})])],1)],1)],1)],1)]},proxy:!0}])}),e(a.A,{attrs:{fluid:""}},[e("InteractiveCharts2")],1),e(a.A,{attrs:{fluid:""}},[e("Recipes")],1),e("Apps")],1)},P=[],D=s(225),U=s(2437),Z=s(6807),W=s(7143),q=s(5410),N=function(){var t=this,e=t._self._c;return e("WaitForExtension2",{attrs:{extensionId:t.extensionId},scopedSlots:t._u([{key:"ready",fn:function(){return[e(a.A,[e(R.A,{attrs:{flat:""}},[e(M.ri,[t._v("Food Tracker Apps")]),e(M.OQ,[e(D.A,{attrs:{color:"transparent"}},[e(W.A,[e(U.A,{attrs:{href:"https://shareasale.com/r.cfm?b=766203&u=3479135&m=61121&urllink=&afftrack="}},[e(q.A,[e(c.A,[t._v("mdi-link")])],1),e(Z.pr,[e(Z.UZ,{domProps:{textContent:t._s("Cronometer")}})],1)],1),e(U.A,{attrs:{href:"https://www.eatandtrack.com/"}},[e(q.A,[e(c.A,[t._v("mdi-link")])],1),e(Z.pr,[e(Z.UZ,{domProps:{textContent:t._s("EatAndTrack")}})],1)],1),e(U.A,{attrs:{href:"https://lifesum.com/"}},[e(q.A,[e(c.A,[t._v("mdi-link")])],1),e(Z.pr,[e(Z.UZ,{domProps:{textContent:t._s("Lifesum")}})],1)],1),e(U.A,{attrs:{href:"https://www.loseit.com/"}},[e(q.A,[e(c.A,[t._v("mdi-link")])],1),e(Z.pr,[e(Z.UZ,{domProps:{textContent:t._s("Lose It!")}})],1)],1),e(U.A,{attrs:{href:"https://www.myfitnesspal.com/"}},[e(q.A,[e(c.A,[t._v("mdi-link")])],1),e(Z.pr,[e(Z.UZ,{domProps:{textContent:t._s("MyFitnessPal")}})],1)],1),e(U.A,{attrs:{href:"https://www.macrosfirst.com/"}},[e(q.A,[e(c.A,[t._v("mdi-link")])],1),e(Z.pr,[e(Z.UZ,{domProps:{textContent:t._s("MacrosFirst")}})],1)],1),e(U.A,{attrs:{href:"https://www.mynetdiary.com/"}},[e(q.A,[e(c.A,[t._v("mdi-link")])],1),e(Z.pr,[e(Z.UZ,{domProps:{textContent:t._s("MyNetDiary")}})],1)],1)],1)],1)],1)],1)],1)]},proxy:!0},{key:"default",fn:function(){},proxy:!0}])})},H=[],V={components:{WaitForExtension2:k},data(){return{extensionId:"mfdcclpjngnnnhplbbldfnbfkjipfald"}}},L=V,Q=(0,b.A)(L,N,H,!1,null,null,null),B=Q.exports,G=s(1112),Y=s(3218),K=s(2967),J=s(5359),X=s(1070),tt=s(5225),et=function(){var t=this,e=t._self._c;return e(R.A,{attrs:{flat:"",outlined:""}}
1,[e(M.ri,[t._v("Interactive Charts")]),e(M.ZR,[t._v("Visualize your MFP data")]),t.installed?e("SettingsRead",{on:{"update:settings":e=>t.$store.commit("settings_update",e)}}):t._e(),t.installed?t._e():e(a.A,[e(Y.A,[e(G.A,[e("div",{staticClass:"d-flex justify-center"},[e(i.A,{attrs:{href:"https://chrome.google.com/webstore/detail/amkolaphnpboccgiidldgjfihahlhlkb",color:"primary",depressed:""}},[e(c.A,{attrs:{left:""}},[t._v("mdi-google-chrome")]),t._v(" Get this extension")],1)],1)])],1)],1),t.installed?e(a.A,[e(K.A,{staticClass:"elevation-0",attrs:{"non-linear":"",vertical:""}},[e(X.A,{attrs:{editable:"",step:"1"}},[t._v("Visit your reports page")]),e(J.A,{attrs:{step:"1"}},[e("div",{staticClass:"pa-2"},[e(tt.A,{attrs:{label:`Export report data for the last ${t.exporting_period} days`,value:t.exporting_period,required:"",type:"number",outlined:""},on:{input:t.exporting_period_update}}),e(i.A,{attrs:{href:"https://www.myfitnesspal.com/reports",outlined:""}},[t._v("Reports")])],1)]),e(X.A,{attrs:{step:"2"}},[t._v('Choose "Interactive Charts by FOODFASTFIT"')]),e(J.A,{attrs:{step:"2"}}),e(X.A,{attrs:{editable:"",step:"3"}},[t._v("View your data")]),e(J.A,{attrs:{step:"3"}},[e("ReportsRead",{scopedSlots:t._u([{key:"default",fn:function({reports:t}){return[e("Reports",{attrs:{reports:t}})]}}],null,!1,2166294789)})],1)],1)],1):t._e()],1)},st=[],nt=s(2997),rt=function(){var t=this,e=t._self._c;return e(Y.A,[e(G.A,[e(D.A,t._l(t.reports,function(s,n){return e(nt.A,{key:n,on:{click:function(e){return t.download(s)}},scopedSlots:t._u([{key:"activator",fn:function(){return[e(Z.pr,[e(Z.UZ,[t._v(t._s(t.listItemTitles[n]))])],1)]},proxy:!0}],null,!0)},[e(U.A,{attrs:{href:t.href,download:t.filename}},[e(q.A,[e(c.A,[t._v("mdi-download")])],1),e(Z.pr,[e(Z.UZ,[t._v("Download chart data")])],1)],1)],1)}),1)],1),e(G.A,[t.report?e("LineChart",{key:t.reportKey,attrs:{title:t.report.title,x:t.reportToDates(t.report),y:t.reportToTotals(t.report)}}):t._e()],1)],1)},ot=[],it=(s(4603),s(7566),s(8721),s(5093)),at=s.n(it),lt=s(4809),ct=s.n(lt),dt=function(){var t=this,e=t._self._c;return e(R.A,{staticClass:"example pa-12",attrs:{flat:""}},[e(T.A,{staticClass:"v-card-border pa-6",attrs:{"aspect-ratio":1}},[e("canvas",{ref:"plot",staticStyle:{height:"100%",width:"100%"}})])],1)},pt=[];const ut=async function(){const t="rgb(250, 155, 101)",e=t,s=[{label:this.title,data:this.ySanitized,backgroundColor:t,borderColor:e}],n=this.xSanitized,r={labels:n,datasets:s},o={type:"line",data:r,options:{scales:{x:{border:{display:!1},grid:{display:!1},ticks:{color:"rgb(255, 255, 255)",padding:12},title:{color:"rgb(255, 255, 255)",display:!0,text:"Date"}},y:{border:{display:!1,dash:[2,2]},grid:{drawTicks:!1,color:"rgba(255, 255, 255, 0.4)"},ticks:{color:"rgb(255, 255, 255)",padding:12},title:{color:"rgb(255, 255, 255)",display:!0,text:"Value"},position:"right"}},plugins:{legend:{align:"start",labels:{color:"rgb(255, 255, 255)",boxWidth:8,boxHeight:8}}}}};new window.Chart(this.$refs.plot,o)},ft=function(){return(0,v.reverse)(this.x)},mt=function(){return(0,v.reverse)(this.y)};var ht={computed:{xSanitized:ft,ySanitized:mt},mounted:ut,props:{title:{required:!0},x:{required:!0},y:{required:!0}}},gt=ht,_t=(0,b.A)(gt,dt,pt,!1,null,"d9a376e2",null),vt=_t.exports;const yt=(0,v.pipe)([(0,v.get)("results"),v.reverse,(0,v.get)("0.date"),(0,v.split)("/"),(0,v.map)(window.Number),v.head,(0,v.subtract)(v.placeholder,1)]),At=(0,v.pipe)([(0,v.get)("results"),v.reverse,(0,v.get)("0.date"),(0,v.split)("/"),(0,v.map)(window.Number),v.last]),jt=t=>at()().month(yt(t)).date(At(t)).startOf("day"),wt=t=>(0,v.map)(([t,e])=>({date:t,total:e}))((0,v.zip)(xt(t))(kt(t))),bt=function(t){this.report=t},xt=t=>{const e=t=>e=>t.clone().subtract(e,"days").format("YYYY-MM-DD"),s=jt(t);return(0,v.pipe)([(0,v.get)("results"),v.size,(0,v.range)(0),(0,v.map)(e(s))])(t)},kt=t=>(0,v.pipe)([(0,v.get)("results"),v.reverse,(0,v.map)("total")])(t),Ct=function(){return(0,v.pipe)([(0,v.get)("report"),wt,ct().unparse])(this)},St=function(){return(0,v.pipe)([(0,v.get)("report.title"),t=>`${t}.csv`])(this)},It=function(){return(0,v.pipe)([(0,v.wrap)(null)("Combined"),t=>`${t}.csv`])(this)},Ft=(0,v.pipe)([t=>new window.Blob([t]),t=>window.URL.createObjectURL(t,{type:"text/plain"})]),zt=function(){return(0,v.pipe)([(0,v.get)("csv"),Ft])(this)},Et=function(){return(0,v.pipe)([(0,v.get)("csvCombined"),Ft])(this)},$t=null,Rt={required:!0},Mt=function(){return(0,v.pipe)([(0,v.get)("reports"),(0,v.map)(t=>(0,v.pipe)([wt,(0,v.map)(({date:e,total:s})=>({date:e,[t.label]:s}))])(t)),v.zipAll,(0,v.map)(v.mergeAll),ct().unparse])(this)},Tt=function(){return(0,v.pipe)([(0,v.get)("reports"),(0,v.map)((0,v.pipe)([(0,v.over)([(0,v.get)("title"),
1(0,v.pipe)([(0,v.get)("results"),v.last,(0,v.get)("date")]),(0,v.pipe)([(0,v.get)("results"),v.size])]),(0,v.join)(" - ")]))])(this)},Ot=function(){return(0,v.pipe)([(0,v.at)(["title","results.0.date"]),window.JSON.stringify])(this?.report)};var Pt={components:{LineChart:vt},computed:{csv:Ct,csvCombined:Mt,filename:St,filenameCombined:It,href:zt,hrefCombined:Et,listItemTitles:Tt,reportKey:Ot},data(){return{report:$t}},methods:{download:bt,reportToDates:xt,reportToTotals:kt},props:{reports:Rt}},Dt=Pt,Ut=(0,b.A)(Dt,rt,ot,!1,null,null,null),Zt=Ut.exports,Wt=s(7048),qt=s(6068);const Nt=function(){return y().pipe([y().get("$store.state.settings.settings.exporting_period"),y().defaultTo(365)])(this)},Ht=function(t){y().cond([[y().identity,y().pipe([window.Number,t=>this.$store.commit("exporting_period_update",t)])]])(t)};var Vt={components:{Reports:Zt,ReportsRead:Wt.A,SettingsRead:qt.A},computed:{exporting_period:Nt},methods:{exporting_period_update:Ht},props:{installed:{required:!0}}},Lt=Vt,Qt=(0,b.A)(Lt,et,st,!1,null,null,null),Bt=Qt.exports,Gt=function(){var t=this,e=t._self._c;return e(R.A,{attrs:{flat:"",outlined:""}},[e(M.ri,[t._v("Interactive Charts")]),e(M.ZR,[t._v("Visualize your MFP data")]),e("WaitForExtension2",{attrs:{extensionId:t.extensionId},scopedSlots:t._u([{key:"default",fn:function(){return[e(a.A,[e(Y.A,[e(G.A,[e("div",{staticClass:"d-flex justify-center"},[e(i.A,{attrs:{href:"https://chrome.google.com/webstore/detail/amkolaphnpboccgiidldgjfihahlhlkb",color:"primary",depressed:""}},[e(c.A,{attrs:{left:""}},[t._v("mdi-google-chrome")]),t._v(" Get this extension")],1)],1)])],1)],1)]},proxy:!0},{key:"ready",fn:function({response:s}){return[e(a.A,[e(K.A,{staticClass:"elevation-0",attrs:{"non-linear":"",vertical:"",value:s?.reportsV2?2:1}},[e(X.A,{attrs:{editable:"",step:"1"}},[t._v("View your reports on MyFitnessPal")]),e(J.A,{attrs:{step:"1"}},[e("div",{staticClass:"pa-2"},[e(l.A,{scopedSlots:t._u([{key:"default",fn:function({hover:s}){return[e(i.A,{attrs:{outlined:""},on:{click:t.redirect}},[e(c.A,{attrs:{left:""}},[s?[t._v("mdi-chart-box")]:[t._v("mdi-chart-box-outline")]],2),t._v("Reports")],1)]}}],null,!0)})],1)]),e(X.A,{attrs:{editable:"",step:"2"}},[t._v("View your reports on https://myfitnesspal.foodfastfit.com/")]),e(J.A,{attrs:{step:"2"}},[s.reportsV2?e("Reports",{attrs:{reports:s.reportsV2}}):t._e()],1)],1)],1)]}}])})],1)},Yt=[];const Kt=function(){return(0,v.pipe)([(0,v.defaultTo)(365)])(this?.$store?.state?.settings?.settings_interactive_charts?.exporting_period)},Jt=function(){this.exporting_period_update_interactive_charts(this.exporting_period)},Xt=function(t){(0,v.cond)([[v.identity,(0,v.pipe)([window.Number,t=>this.$store.commit("exporting_period_update_interactive_charts",t)])]])(t);const e=this?.$store?.state?.settings?.settings_interactive_charts;window?.chrome?.runtime?.sendMessage?.(this.extensionId,{settings:e},()=>{(0,v.cond)([[v.identity,window.console.log]]),window})},te=function(){window?.chrome?.runtime?.sendMessage?.(this.extensionId,"redirect",()=>{(0,v.cond)([[v.identity,window.console.log]]),window,window.location="https://www.myfitnesspal.com/reports"})};var ee={components:{Reports:Zt,WaitForExtension2:k},computed:{exporting_period:Kt},data(){return{extensionId:"amkolaphnpboccgiidldgjfihahlhlkb"}},methods:{exporting_period_update_interactive_charts:Xt,redirect:te},mounted:Jt},se=ee,ne=(0,b.A)(se,Gt,Yt,!1,null,null,null),re=ne.exports,oe=s(7111),ie=s(6474),ae=function(){var t=this,e=t._self._c;return e(R.A,{attrs:{flat:"",outlined:"",color:"grey lighten-4"}},[e(M.ri,[t._v("Set your macros")]),e(M.ZR,[t._v("Convert grams and calories")]),e("WaitForExtension2",{attrs:{extensionId:t.extensionId},scopedSlots:t._u([{key:"ready",fn:function({response:s}){return[e("SettingsRead2",{attrs:{settingsInitial:s.settings},on:{"update:settings":e=>t.$store.commit("settings_update",e)}}),t._l(t.presets,function(s,n){return e(a.A,{key:n},[e(R.A,{attrs:{outlined:""}},[e(a.A,{attrs:{fluid:""}},[e(Y.A,[e(G.A,[e(ie.A,{attrs:{"offset-y":""},scopedSlots:t._u([{key:"activator",fn:function({attrs:s,on:r}){return[n?t._e():e(i.A,t._g(t._b({attrs:{outlined:"",disabled:""}},"v-btn",s,!1),r),[t._v("Default Preset")]),n?e(i.A,t._g(t._b({attrs:{outlined:""}},"v-btn",s,!1),r),[t._v("Preset "+t._s(n+1)+" "),e(c.A,{attrs:{right:""}},[t._v("mdi-menu-down")])],1):t._e()]}}],null,!0)},[e(D.A,[e(U.A,{on:{click:function(e){return t.preset_delete(n)}}},[e(Z.UZ,[t._v("Delete preset")])],1)],1)],1)],1)],1),e("EventToProp",{scopedSlots:t._u([{key:"default",fn:function({prop:r,updateProp:o,timestamp:i}){return[e(Y.A,[e(G.A,{attrs:{cols:"12",sm:"6",md:"8",lg:"8",xl:"8"}},[e(tt.A,{attrs:{label:"Preset Name (optional)",type:"text",value:s?.name,outlined:""},on:{input:e=>t.preset_update_name(`${n}.name`)(e)}}),e("MacroCalculatorFormCalories3",{attrs:{initial_carbs:s.carbs,initial_fat:s.fat,initial_protein:s.protein},on:{"update:carbs":e=>t.preset_update(`${n}.carbs`)(e),"update:fat":e=>t.preset_update(`${n}.fat`)(e),"update:protein":e=>t.preset_update(`${n}.protein`)(e),"update:calories_total":o}}),e("ButtonHover",{attrs:{icon:"mdi-check"},on:{click:function(e){return t.preset_copy_legacy(n)}}},[t._v("Save to MFP")])],1),e(G.A,{attrs:{cols:"12",sm:"6",md:"4",lg:"4",xl:"4"}},[e("PieChart2",{attrs:{initial_carbs:s.carbs,initial_fat:s.fat,initial_protein:s.protein,isDark:!1}})],1)],1)]}}],null,!0)})],1)],1)],1)}),e(a.A,[e(Y.A,[e(G.A,[e("ButtonHover",{attrs:{icon:"mdi-plus"},on:{click:t.preset_add}},[t._v("Add preset")])],1)],1)],1),e(a.A,[e(Y.A,[e(G.A,[e(oe.A,{attrs:{icon:"mdi-information",outlined:""}},[t._v("Extension not working? Try disabling ad blockers.")])],1)],1)],1)]}},{key:"default",fn:function(){return[e(a.A,[e(Y.A,[e(G.A,[e("div",{staticClass:"d-flex justify-center"},[e(i.A,{attrs:{href:"https://chrome.google.com/webstore/detail/mfdcclpjngnnnhplbbldfnbfkjipfald",color:"primary",depressed:""}},[e(c.A,{attrs:{left:""}},[t._v("mdi-google-chrome")]),t._v(" Get this extension")],1)],1)])],1)],1)]},proxy:!0}])})],1)}
1,le=[],ce=s(6009),de=s(2610),pe=s(5742),ue=function(){var t=this,e=t._self._c;return e("div",[t._t("default",null,{settings:t.settings,settingsDefault:t.settingsDefault})],2)},fe=[];const me={net_carbs:!0,net_calories:!0,exporting_period:365,exporting_period_calories:30,carbs:0,fat:0,protein:0,date_format:"shortDate",daily_goals:[{carbs:0,fat:0,protein:0},{carbs:0,fat:0,protein:0},{carbs:0,fat:0,protein:0},{carbs:0,fat:0,protein:0},{carbs:0,fat:0,protein:0},{carbs:0,fat:0,protein:0},{carbs:0,fat:0,protein:0}],presets:[{carbs:0,fat:0,protein:0}]},he=function(){return(0,v.assign)(this.settingsDefault)(this.settingsInitial)},ge=function(){this.$emit("update:settings",this.settings),this.$emit("update:settingsDefault",this.settingsDefault)};var _e={computed:{settings:he},data(){return{settingsDefault:me}},mounted:ge,props:{settingsInitial:{required:!1}}},ve=_e,ye=(0,b.A)(ve,ue,fe,!1,null,null,null),Ae=ye.exports,je=function(){var t=this,e=t._self._c;return e(l.A,{scopedSlots:t._u([{key:"default",fn:function({hover:s}){return[e(i.A,{attrs:{outlined:""},on:{click:function(e){return t.$emit("click")}}},[e(c.A,{attrs:{left:""}},[s?[t._v(t._s(t.icon))]:[t._v(t._s(t.icon)+"-outline")]],2),t._t("default",function(){return[t._v("Okay")]})],2)]}}],null,!0)})},we=[],be={props:{icon:{default:"mdi-check",required:!1}}},xe=be,ke=(0,b.A)(xe,je,we,!1,null,null,null),Ce=ke.exports;const Se=function(){return(0,v.pipe)([(0,v.get)("$store.state.settings.settings.presets"),(0,v.defaultTo)([])])(this)},Ie=function(t){return e=>{(0,v.cond)([[(0,v.eq)(0),(0,v.pipe)([v.toFinite,e=>this.$store.commit("preset_update",{path:t,value:e})])],[v.identity,(0,v.pipe)([v.toFinite,e=>this.$store.commit("preset_update",{path:t,value:e})])]])(e),window?.chrome?.runtime?.sendMessage?.(this.extensionId,this.$store.state.settings,()=>{(0,v.cond)([[v.identity,window.console.log]])(window?.chrome?.runtime?.lastError)})}},Fe=function(t){return e=>{this.$store.commit("preset_update",{path:t,value:e}),window?.chrome?.runtime?.sendMessage?.(this.extensionId,this.$store.state.settings,()=>{(0,v.cond)([[v.identity,window.console.log]])(window?.chrome?.runtime?.lastError)})}},ze=function(){this.$store.commit("preset_add"),window?.chrome?.runtime?.sendMessage?.(this.extensionId,this.$store.state.settings,()=>{(0,v.cond)([[v.identity,window.console.log]])(window?.chrome?.runtime?.lastError)})},Ee=function(t){this.$store.commit("preset_delete",t),window?.chrome?.runtime?.sendMessage?.(this.extensionId,this.$store.state.settings,()=>{(0,v.cond)([[v.identity,window.console.log]])(window?.chrome?.runtime?.lastError)})},$e=function(t){const e="preset_copy",s={event_callback:()=>{this.$store.commit(e,t),window?.chrome?.runtime?.sendMessage?.(this.extensionId,this.$store.state.settings,()=>{(0,v.cond)([[v.identity,window.console.log]])(window?.chrome?.runtime?.lastError)}),window?.chrome?.runtime?.sendMessage?.(this.extensionId,"save_goals_to_myfitnesspal",t=>{(0,v.cond)([[v.identity,()=>window.location="https://www.myfitnesspal.com/account/my-goals/daily-nutrition-goals"]])(t?.save_goals_to_myfitnesspal),(0,v.cond)([[v.identity,window.console.log]])(window?.chrome?.runtime?.lastError)})}};window.gtag("event",e,s)};var Re={components:{ButtonHover:Ce,EventToProp:ce.A,MacroCalculatorFormCalories3:de.A,PieChart2:pe.A,SettingsRead2:Ae,WaitForExtension2:k},computed:{presets:Se},data(){return{extensionId:"mfdcclpjngnnnhplbbldfnbfkjipfald"}},methods:{preset_add:ze,preset_copy_legacy:$e,preset_delete:Ee,preset_update:Ie,preset_update_name:Fe}},Me=Re,Te=(0,b.A)(Me,ae,le,!1,null,null,null),Oe=Te.exports,Pe=function(){var t=this,e=t._self._c;return e(R.A,{attrs:{flat:"",outlined:""}},[e(M.ri,[t._v("Recipes")]),e(M.ZR,[t._v("Search your MFP recipes")]),e(a.A,[e("WaitForExtension2",{attrs:{extensionId:t.extensionId},on:{"update:response":t.setNames},scopedSlots:t._u([{key:"default",fn:function(){return[e(Y.A,[e(G.A,[e("div",{staticClass:"d-flex justify-center"},[e(i.A,{attrs:{href:"https://chrome.google.com/webstore/detail/mfp-recipes-by-foodfastfi/fpcgaacncglfohpfjcfidijnjnlmlhdd",color:"primary",depressed:""}},[e(c.A,{attrs:{left:""}},[t._v("mdi-google-chrome")]),t._v(" Get this extension")],1)],1)])],1)]},proxy:!0},{key:"ready",fn:function({response:s}){return[e(a.A,[e(K.A,{staticClass:"elevation-0",attrs:{"non-linear":"",vertical:"",value:t.names?.length?2:1}},[e(X.A,{attrs:{step:"1",editable:""}}
1,[t._v("Sync recipes")]),e(J.A,{attrs:{step:"1"}},[e("div",{staticClass:"pa-2"},[e("ButtonHover",{on:{click:t.sync}},[t._v("Sync")])],1)]),e(X.A,{attrs:{step:"2",editable:""}},[t._v("Search recipes")]),e(J.A,{attrs:{step:"2"}},[e("div",{staticClass:"pa-2"},[e(tt.A,{attrs:{label:"Search your recipes by name",required:"",type:"text",outlined:""},on:{input:function(t){}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}),e(D.A,t._l(t.namesFiltered,function(s){return e(U.A,{key:s[1],attrs:{href:s[1]}},[e(Z.pr,[e(Z.UZ,[t._v(t._s(s[0]))])],1)],1)}),1)],1)])],1)],1)]}}])})],1)],1)},De=[];const Ue=function(){return(0,v.pipe)([(0,v.over)([(0,v.pipe)([(0,v.get)("names")]),(0,v.pipe)([(0,v.get)("search")])]),([t,e])=>(0,v.pipe)([(0,v.filter)((0,v.pipe)([(0,v.nth)(0),t=>t.toLowerCase().includes(e.toLowerCase())]))])(t)])(this)},Ze=function(t){this.names=(0,v.pipe)([(0,v.get)("names")])(t)},We=function(){try{window.chrome.runtime.sendMessage(this.extensionId,{shouldSync:!0})}catch(t){window.console.log({err:t})}};var qe={components:{ButtonHover:Ce,Reports:Zt,ReportsRead:Wt.A,SettingsRead:qt.A,WaitForExtension2:k},computed:{namesFiltered:Ue},data(){return{extensionId:"fpcgaacncglfohpfjcfidijnjnlmlhdd",names:null,search:""}},methods:{setNames:Ze,sync:We}},Ne=qe,He=(0,b.A)(Ne,Pe,De,!1,null,null,null),Ve=He.exports,Le=s(9335),Qe={components:{Apps:B,InteractiveCharts:Bt,InteractiveCharts2:re,MacroSettings2:Oe,Recipes:Ve,WaitForExtension:Le.A,WaitForExtension2:k}},Be=Qe,Ge=(0,b.A)(Be,O,P,!1,null,null,null),Ye=Ge.exports,Ke={components:{Home:Ye}},Je=Ke,Xe=(0,b.A)(Je,E,$,!1,null,null,null),ts=Xe.exports,es=function(){var t=this,e=t._self._c;return e("div",[e(a.A,{attrs:{fluid:""}},[e("Recipes")],1),e("Apps")],1)},ss=[],ns={components:{Apps:B,Recipes:Ve}},rs=ns,os=(0,b.A)(rs,es,ss,!1,null,null,null),is=os.exports;n.Ay.use(z.Ay);const as=[{path:"/",name:"Home",component:ts},{path:"/myfitnesspal-x-foodfastfit",name:"myfitnesspal-x-foodfastfit",component:ts},{path:"/recipes",name:"recipes",component:is}],ls=new z.Ay({mode:"history",base:"/",routes:as});var cs=ls,ds=s(5353),ps=s(6193),us=s(2641);const fs=new ps.Ay({storage:window.localStorage});n.Ay.use(ds.Ay);var ms=new ds.Ay.Store({state:{},mutations:{},actions:{},modules:{settings:us.A},plugins:[fs.plugin]}),hs=s(8933),gs=s(9723);n.Ay.use(hs.A);var _s=new hs.A({theme:{themes:{dark:{primary:gs.A.green.darken2,warning:gs.A.lightGreen},light:{primary:gs.A.green.darken2,warning:gs.A.lightGreen}}}}),vs=s(5158);n.Ay.use(vs.IQ),n.Ay.config.productionTip=!1,new n.Ay({router:cs,store:ms,vuetify:_s,render:t=>t(F)}).$mount("#app")}},e={};function s(n){var r=e[n];if(void 0!==r)return r.exports;var o=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(o.exports,o,o.exports,s),o.loaded=!0,o.exports}s.m=t,function(){var t=[];s.O=function(e,n,r,o){if(!n){var i=1/0;for(d=0;d<t.length;d++){n=t[d][0],r=t[d][1],o=t[d][2];for(var a=!0,l=0;l<n.length;l++)(!1&o||i>=o)&&Object.keys(s.O).every(function(t){return s.O[t](n[l])})?n.splice(l--,1):(a=!1,o<i&&(i=o));if(a){t.splice(d--,1);var c=r();void 0!==c&&(e=c)}}return e}o=o||0;for(var d=t.length;d>0&&t[d-1][2]>o;d--)t[d]=t[d-1];t[d]=[n,r,o]}}(),function(){s.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return s.d(e,{a:e}),e}}(),function(){s.d=function(t,e){for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}}(),function(){s.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){s.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){s.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t}}(),function(){var t={524:0};s.O.j=function(e){return 0===t[e]};var e=function(e,n){var r,o,i=n[0],a=n[1],l=n[2],c=0;if(i.some(function(e){return 0!==t[e]})){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);if(l)var d=l(s)}for(e&&e(n);c<i.length;c++)o=i[c],s.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return s.O(d)},n=self["webpackChunkmyfitnesspal_foodfastfit_com"]=self["webpackChunkmyfitnesspal_foodfastfit_com"]||[];
1n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))}();var n=s.O(void 0,[504],function(){return s(6665)});n=s.O(n)})(); 2//# sourceMappingURL=app.9a845d89.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.