Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- define("modules/Nutrients/lib/NutrientsNormItem", ["require", "exports", "lodash", "modules/Utils/lib/Utils"], function(e, t, r, o) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var n = function() {
- function e(e, t, r, o) {
- void 0 === e && (e = 0), void 0 === t && (t = -1), void 0 === r && (r = -1), void 0 === o && (o = !1), this.norm = 0, this.normFrom = 0, this.normTo = 0, this.userSet = !1, this.extraNorm = 0, this.norm = e, this.normFrom = t, -1 == this.normFrom && (this.normFrom = this.norm), this.normTo = r, -1 == this.normTo && (this.normTo = this.norm), this.userSet = o
- }
- return e.prototype.isSetNorm = function() {
- return 0 !== this.norm || 0 !== this.normFrom || 0 !== this.normTo
- }, e.prototype.isMaxNorm = function() {
- return !0 === this.isSetNorm() && !0 === this.isCorridor() && 0 === this.normFrom && this.normTo > 0
- }, e.prototype.isMinNorm = function() {
- return !0 === this.isSetNorm() && !0 === this.isCorridor() && 0 === this.normTo && this.normFrom > 0
- }, e.prototype.inCorridor = function(e, t) {
- return void 0 === t && (t = 0), !0 === this.isCorridor() ? e >= this.normFrom && e <= this.normTo || t > 0 && e >= this.normFrom - this.normFrom / 100 * t && e <= this.normTo + this.normTo / 100 * t : e === this.norm || t > 0 && e >= this.norm - this.norm / 100 * t && e <= this.norm + this.norm / 100 * t
- }, e.prototype.isCorridor = function() {
- return this.normFrom !== this.normTo
- }, e.prototype.normS = function() {
- return !1 === this.isSetNorm() ? "~" : !1 === this.isCorridor() ? "" + this.norm : !0 === this.isMaxNorm() ? "max " + this.normTo : !0 === this.isMinNorm() ? "min " + this.normFrom : "от " + this.normFrom + " до " + this.normTo
- }, e.prototype.add = function(e) {
- this.norm = r.round(this.norm + e.norm, 6), this.normFrom = r.round(this.normFrom + e.normFrom, 6), this.normTo = r.round(this.normTo + e.normTo, 6), this.extraNorm = r.round(this.extraNorm + e.extraNorm, 6), !0 === e.userSet && (this.userSet = !0)
- }, e.prototype.addExtraNorm = function(e) {
- this.norm = this.norm + e, this.normFrom = this.normFrom + e, this.normTo = this.normTo + e, this.extraNorm = this.extraNorm + e
- }, e.prototype.percent = function(e, t) {
- return e = e || 0, t = t || 2, 0 === e ? 0 : !1 === this.isSetNorm() ? 0 : !0 === this.isMaxNorm() ? r.round(e / this.normTo * 100, t) : this.isMinNorm() ? r.round(e / this.normFrom * 100, t) : !0 === this.isCorridor() ? this.inCorridor(e) ? 100 : e >= this.normTo ? 0 === this.normTo ? 0 : r.round(e / this.normTo * 100, t) : 0 === this.normFrom ? 0 : r.round(e / this.normFrom * 100, t) : 0 === this.norm ? 0 : r.round(e / this.norm * 100, t)
- }, e.prototype.toObject = function() {
- var e = {
- n: this.norm
- };
- return this.norm != this.normFrom && (e.f = this.normFrom), this.normFrom != this.normTo && (e.t = this.normTo), this.userSet && (e.u = 1), e
- }, e.fromObject = function(t) {
- void 0 === t && (t = {});
- var r = o.toNumber(t.n, 0),
- n = o.toNumber(t.f, -1),
- i = o.toNumber(t.t, -1);
- return 0 == n && -1 == i && (n = -1), new e(r, n, i, 1 == t.u)
- }, e
- }();
- t.default = n
- }), define("modules/Constant/lib/Purpose", ["require", "exports", "lodash"], function(e, t, r) {
- "use strict";
- return {
- _list: [{
- id: 0,
- name: "Снижение веÑа"
- }, {
- id: 1,
- name: "Ðабор маÑÑÑ‹"
- }, {
- id: 2,
- name: "Поддержание веÑа"
- }],
- getList: function() {
- return this._list
- },
- getState: function() {
- return this.getList().map(function(e) {
- return {
- id: e.id,
- value: e.id,
- name: e.name,
- label: e.name
- }
- })
- },
- byId: function(e) {
- var t = r.find(this._list, "id", Number(e));
- return void 0 === t ? {
- id: 2,
- name: "Поддержание веÑа"
- } : t
- }
- }
- }), define("modules/Constant/lib/Constant", ["require", "exports", "./Purpose"], function(e, t, r) {
- "use strict";
- return {
- MALE: 1,
- FEMALE: 2,
- cSEX_FEMALE: 2,
- cSEX_MALE: 1,
- SOURCE_OF_BASE: {
- MAIN_BASE: 0,
- USER_BASE: 1
- },
- PURPOSE_SAVE_WEIGHT: 2,
- PURPOSE_LOSE_WEIGHT: 0,
- PURPOSE_GAIN_WEIGHT: 1,
- SOMATOTYPE_THINT: 0,
- SOMATOTYPE_NORMT: 1,
- SOMATOTYPE_WIDET: 2,
- PREGNANCY_NONE: 0,
- PREGNANCY_FIRST_PART: 1,
- PREGNANCY_SECOND_PART: 2,
- PREGNANCY_FEED_1m_6m: 3,
- PREGNANCY_FEED_7m_12m: 4,
- cFAT: 14,
- cPROTEIN: 13,
- cCARBOHYDRATE: 15,
- cCALORIE: 11,
- cWATER: 12,
- cFIBER: 18,
- cSODIUM: 36,
- cK: 32,
- cCHOLESTEROL: 55,
- cNGK: 83,
- cPNGK: 148,
- cMNGK: 147,
- cTRANSFAT: 178,
- cOMEGA3: 212,
- cOMEGA6: 213,
- cMETHOD_OF_CALCULATION_ENERGY_MIFFLINA: 0,
- cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT: 1,
- cMETHOD_OF_CALCULATION_ENERGY_USER: 2,
- cMETHOD_OF_CALCULATION_ENERGY_GAIN_WEIGHT: 3,
- cMETHOD_OF_CALCULATION_ENERGY_RUSSIAN_MR: 4,
- cMETHOD_OF_CALCULATION_ENERGY_USER_WITHOUT_SPORT: 5,
- cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_WITHOUT_SPORT: 6,
- cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_LOW_CARB: 7,
- cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_LOW_FAT: 8,
- cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_PROTEIN: 9,
- cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_KETO: 10,
- cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_OLD: 11,
- cMETHOD_OF_CALCULATION_VITAMINS_MINERALS_RUSSIAN_MR: 0,
- user_energy_settings: {
- cFIELD_METABOLISM: "metabolism",
- cFIELD_OUTCOMEMAIN: "outcomeMain",
- cFIELD_INCOME_RECOMMEND: "11",
- cFIELD_PROTEIN: "13",
- cFIELD_FAT: "14",
- cFIELD_CARB: "15"
- },
- EXERCISE: {
- TYPE_OF_PARAMETER_NUMBER: 0,
- TYPE_OF_PARAMETER_INT: 1,
- TYPE_OF_PARAMETER_STRING: 2,
- TYPE_OF_PARAMETER_LIST: 3,
- TYPE_OF_PARAMETER_TIME: 4,
- TYPE_OF_PARAMETER_BOOLEAN: 5,
- PARAMETER_TIME: 1,
- PARAMETER_NUMBER: 2,
- PARAMETER_WEIGHT: 3,
- PARAMETER_DISTANCE: 4,
- PARAMETER_PULSE: 16,
- PARAMETER_SPEED: 17,
- PARAMETER_POWER_INPUTS: 18,
- PARAMETER_AMPLITUDE: 20,
- FORMULA_SUM: "SUM",
- FORMULA_AVERAGE: "AVERAGE",
- FORMULA_SUM_OR_PER_COUNT: "SUM_OR_PER_COUNT",
- FORMULA_SUM_FOR_BOOL: "SUM_BOOL",
- POWER_INPUTS_PER_TIME_AND_WEIGHT: 1,
- POWER_INPUTS_PER_TIME: 2,
- POWER_INPUTS_PER_WORK: 3,
- POWER_INPUTS_PER_DISTANCE_AND_WEIGHT: 4,
- POWER_INPUTS_PER_EXERCISE: 5
- },
- TYPE_DIARY_ITEMS: {
- EXERCISE: "EX",
- SUPERSET: "ST",
- TRAINING: "TR",
- EXERCISE_IN_PROGRAM: "EX_P",
- DAY_IN_PROGRAM: "DAY_P",
- SUPERSET_IN_PROGRAM: "ST_P",
- VIDEO: "V",
- IMAGE: "I",
- TEXT: "T"
- },
- Purpose: r
- }
- }), define("modules/Constant/lib/index", ["require", "exports", "./Constant"], function(e, t, r) {
- "use strict";
- return r
- }), define("modules/Nutrients/lib/IntensityOfLabour", ["require", "exports", "lodash", "modules/Constant/lib/index"], function(e, t, r, o) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var n = {
- _list: [{
- id: 1,
- name: "ОÑновной обмен",
- coefficient: 1,
- numberInMinzdrav: 1
- }, {
- id: 2,
- name: "ОтÑутÑтвие активноÑти",
- coefficient: 1.3,
- numberInMinzdrav: 1
- }, {
- id: 3,
- name: "ÐÐ¸Ð·ÐºÐ°Ñ Ð°ÐºÑ‚Ð¸Ð²Ð½Ð¾ÑÑ‚ÑŒ",
- coefficient: 1.4,
- numberInMinzdrav: 1
- }, {
- id: 4,
- name: "Ð£Ð¼ÐµÑ€ÐµÐ½Ð½Ð°Ñ Ð°ÐºÑ‚Ð¸Ð²Ð½Ð¾ÑÑ‚ÑŒ",
- coefficient: 1.6,
- numberInMinzdrav: 2
- }, {
- id: 5,
- name: "ÐктивноÑÑ‚ÑŒ выше Ñредней",
- coefficient: 1.9,
- numberInMinzdrav: 3
- }, {
- id: 6,
- name: "Ð’Ñ‹ÑÐ¾ÐºÐ°Ñ Ð°ÐºÑ‚Ð¸Ð²Ð½Ð¾ÑÑ‚ÑŒ",
- coefficient: 2.2,
- numberInMinzdrav: 4
- }, {
- id: 7,
- name: "Очень выÑÐ¾ÐºÐ°Ñ Ð°ÐºÑ‚Ð¸Ð²Ð½Ð¾ÑÑ‚ÑŒ",
- coefficient: 2.5,
- numberInMinzdrav: 5
- }],
- getList: function() {
- return this._list
- },
- getState: function(e) {
- return r.chain(this.getList()).filter(function(e) {
- return 1 !== e.id
- }).map(function(t) {
- return e === o.cSEX_FEMALE && 7 === t.id ? null : {
- id: t.id,
- value: t.id,
- name: t.name,
- label: t.name,
- coefficient: t.coefficient,
- numberInMinzdrav: t.numberInMinzdrav
- }
- }).compact().value()
- },
- byId: function(e) {
- var t = r.find(this._list, "id", Number(e));
- return void 0 === t ? {
- id: 0,
- name: "",
- coefficient: 0,
- numberInMinzdrav: 1
- } : t
- }
- };
- t.default = n
- }), define("modules/Nutrients/lib/NutrientsHelper", ["require", "exports", "modules/Utils/lib/Utils", "./IntensityOfLabour", "./NutrientsNormItem", "lodash", "modules/Constant/lib/index", "../../Utils/lib/Utils"], function(e, t, r, o, n, i, u, a) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var m = {
- formulaMifflina: function(e, t, r, o) {
- return e = e || 2, t = t || 60, r = r || 160, o = o || 30, 1 == e ? i.round(10 * t + 6.25 * r - 5 * o + 5, 0) : i.round(10 * t + 6.25 * r - 5 * o - 161, 0)
- },
- bmi: function(e, t) {
- return i.round(a.toNumber(e / Math.pow(t / 100, 2)), 1)
- },
- weightForBigMan: function(e, t) {
- var r = m.bmi(e, t);
- return r > 25 ? i.round(r * (1 - (r - 25) / 100) * Math.pow(t / 100, 2), 1) : e
- },
- formulaMifflinaMZR: function(e, t, r, o) {
- var n = m.weightForBigMan(t, r);
- return m.formulaMifflina(e, n, r, o)
- },
- formulaKharrisabenedikta: function(e, t, r, o) {
- return e = e || 2, t = t || 60, r = r || 160, o = o || 30, 1 == e ? i.round(66.5 + 13.75 * t + 5.003 * r - 6.775 * o, 0) : i.round(655.1 + 9.563 * t + 1.85 * r - 4.676 * o, 0)
- },
- formulaTomVenuto: function(e, t, r, o) {
- return e = e || 2, t = t || 60, r = r || 160, o = o || 30, 1 == e ? i.round(66 + 13.7 * t + 5 * r - 6.8 * o, 0) : i.round(665 + 9.6 * t + 1.8 * r - 4.7 * o, 0)
- },
- calculateCalorie: function(e, t, r, n) {
- void 0 === n && (n = "mifflina");
- var u = this.formulaMifflina(e.sex, e.weight, e.height, e.age);
- "mifflinaMZR" == n && (u = this.formulaMifflinaMZR(e.sex, e.weight, e.height, e.age));
- var m = 1;
- if (e.user_calorie_norm && e.user_calorie_norm.useMyKoef && e.user_calorie_norm.outcomeKoef) m = a.toNumber(e.user_calorie_norm.outcomeKoef);
- else {
- m = o.default.byId(e.id_intensity_of_labour).coefficient
- }
- var s = i.round(u * m, 0);
- u = i.round(u, 0);
- var l = i.round(s + s / 100 * t, 0),
- d = i.round(s + s / 100 * r, 0);
- return u > l && (l = u), u > d && (d = u), {
- outcomeMain: s,
- incomeRecommendStart: l,
- incomeRecommendEnd: d,
- metabolism: u,
- power_inputs: s,
- calorie_corridor_start: l,
- calorie_corridor_end: d
- }
- },
- isFattyAcids: function(e) {
- return (e = r.toNumber(e)) === u.cNGK || e === u.cPNGK || e === u.cMNGK || e === u.cTRANSFAT || e === u.cOMEGA3 || e === u.cOMEGA6
- },
- isFattyAcidsOrCPFC: function(e) {
- return !((e = r.toNumber(e)) !== u.cCALORIE && e !== u.cPROTEIN && e !== u.cFAT && e !== u.cCARBOHYDRATE && !m.isFattyAcids(e))
- },
- createUserNorm: function(e) {
- if (!i.isString(e) && !i.isNumber(e)) return new n.default(0, 0, 0, !0);
- var t = "" + e;
- if (t = t.toLowerCase().trim(), t = r.replace(t, "min", "от"), t = r.replace(t, "max", "до"), t.indexOf("от") >= 0 && t.indexOf("до") >= 0) {
- t = r.replace(t, "от", "").trim();
- var o = t.split("до");
- return 2 === o.length ? new n.default(r.toNumber(o[0].trim()), r.toNumber(o[0].trim()), r.toNumber(o[1].trim()), !0) : new n.default(0, 0, 0, !0)
- }
- if (t.indexOf("от") >= 0) {
- var u = r.toNumber(r.replace(t, "от", ""));
- return new n.default(0, u, 0, !0)
- }
- if (t.indexOf("до") >= 0) {
- var a = r.toNumber(r.replace(t, "до", ""));
- return new n.default(0, 0, a, !0)
- }
- var m = r.toNumber(t);
- return new n.default(m, -1, -1, !0)
- },
- calculateTypeOfFatUser: function(e) {
- var t = {};
- return i.forOwn(e, function(e, r) {
- if (m.isFattyAcids(r)) {
- var o = m.createUserNorm(e);
- o && (t[r] = o)
- }
- }), t
- },
- calculateTypeOfFat: function(e, t) {
- var r = {},
- o = .1 * e / 9;
- r[u.cNGK] = new n.default(0, 0, i.round(o, 1));
- var a = .06 * e / 9,
- m = .11 * e / 9;
- r[u.cPNGK] = new n.default(0, i.round(a, 1), i.round(m, 1));
- var s = .005 * e / 9,
- l = .02 * e / 9;
- r[u.cOMEGA3] = new n.default(0, i.round(s, 1), i.round(l, 1));
- var d = .025 * e / 9,
- _ = .09 * e / 9;
- r[u.cOMEGA6] = new n.default(0, i.round(d, 1), i.round(_, 1));
- var c = .09 * e / 9;
- r[u.cMNGK] = new n.default(0, i.round(c, 1), -1);
- var h = .01 * e / 9;
- return r[u.cTRANSFAT] = new n.default(0, 0, i.round(h, 1)), r
- },
- fixOutcomeSport: function(e, t) {
- var r = 300,
- o = 1300;
- 1 === e && (r = 400, o = 1400);
- return t <= r ? t : t <= o ? i.round(r + (t - r) * (1 - (t - r) / 2e3), 0) : i.round(r + (o - r) / 2, 0)
- },
- waterNormPerWeight: function(e, t) {
- var r = i.round(40 * e, 0);
- return 1 == t && r > 4e3 ? r = 4e3 : 2 == t && r > 3e3 && (r = 3e3), r
- },
- waterNormPerOutcomeMain: function(e, t, r) {
- t = m.fixOutcomeSport(r, t);
- var o = 0;
- return 1 == r ? o = 1.48 * (e + t) : 2 === r && (o = 1.35 * (e + t)), o = i.round(o, 0), 1 == r && o > 4500 ? o = 4500 : 2 === r && o > 3500 && (o = 3500), o
- }
- };
- t.default = m
- }), define("modules/Nutrients/lib/AMethodOfCalculationEnergy", ["require", "exports", "./NutrientsNormItem", "./NutrientsHelper", "modules/Constant/lib/index", "lodash", "modules/Utils/lib/Utils"], function(e, t, r, o, n, i, u) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var a = function() {
- function e(e, t) {
- void 0 === t && (t = !1), this._norms = {}, this._metabolism = 0, this._outcomeMain = 0, this._incomeRecommend = void 0, this._incomeMin = 0, this._outcomeSport = 0, this.withoutSport = !1, this.params = e, this._outcomeSport = e.outcomeSport, this.withoutSport = t, e.user_calorie_norm && e.user_calorie_norm.withoutSport && (this.withoutSport = !0)
- }
- return e.prototype.outcomeSport = function() {
- return this._outcomeSport
- }, e.prototype.incomeMin = function() {
- return this._incomeMin
- }, e.prototype.incomeRecommend = function() {
- return this._incomeRecommend
- }, e.prototype.getNorms = function() {
- return this._norms
- }, e.prototype.metabolism = function() {
- return this._metabolism
- }, e.prototype.outcomeMain = function() {
- return this._outcomeMain
- }, e.prototype.calorieCorridor = function() {
- return {
- start: this._incomeRecommend.normFrom,
- end: this._incomeRecommend.normTo
- }
- }, e.prototype.fillFats = function() {
- var e = this;
- this._norms[n.cFAT] && i.forOwn(o.default.calculateTypeOfFat(this._outcomeMain, this._norms[n.cFAT].norm), function(t, r) {
- e._norms[r] = t
- }), i.forOwn(o.default.calculateTypeOfFatUser(this.params.user_nutrients_norm), function(t, r) {
- e._norms[r] = t
- })
- }, e.prototype.fillPregnancy = function() {
- if (this.params.id_pregnancy >= 2) {
- var e = JSON.parse('{"2":{"11":350,"13":30,"14":12,"15":30},"3":{"11":500,"13":40,"14":15,"15":40},"4":{"11":450,"13":30,"14":15,"15":30}}');
- for (var t in e[this.params.id_pregnancy]) e[this.params.id_pregnancy].hasOwnProperty(t) && (this._norms[t].addExtraNorm(e[this.params.id_pregnancy][t]), Number(t) == n.cCALORIE && (this._incomeRecommend.addExtraNorm(e[this.params.id_pregnancy][t]), this._outcomeMain = this._outcomeMain + e[this.params.id_pregnancy][t]))
- }
- }, e.prototype.fillFromResultNorms = function() {
- var e = this;
- this.params && this.params.resultNorms && i.isObject(this.params.resultNorms) && i.forOwn(this.params.resultNorms, function(t, a) {
- t && i.isObject(t) && ("ocm" == a ? e._outcomeMain = u.toNumber(t.n || 0) : "voo" == a ? e._outcomeMain = u.toNumber(t.n || 0) : o.default.isFattyAcidsOrCPFC(a) && (e._norms[a] = r.default.fromObject(t), a == n.cCALORIE && (e._incomeRecommend = e._norms[a])))
- })
- }, e
- }();
- t.default = a
- }), define("modules/Nutrients/lib/MethodOfCalculationEnergy_Gain_Weight", ["require", "exports", "tslib", "./NutrientsHelper", "./NutrientsNormItem", "lodash", "modules/Constant/lib/index", "./AMethodOfCalculationEnergy"], function(e, t, r, o, n, i, u, a) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var m = .2,
- s = .3,
- l = .5,
- d = function(e) {
- function t(t) {
- var r = e.call(this, t) || this;
- r.proteinPercent = m, r.fatPercent = s, r.carbPercent = l;
- var o = r.calculateCalorie(t);
- r._outcomeMain = o.outcomeMain, r._metabolism = o.metabolism;
- var a = 0;
- t.outcomeSport > 0 && 0 == r.withoutSport && (a = t.outcomeSport, 1 === t.sex && a > 3e3 ? a = 3e3 : 2 === t.sex && a > 2e3 && (a = 2e3)), r._incomeRecommend = new n.default(i.round(o.incomeRecommendStart + a, 0)), r._incomeMin = i.round(r._outcomeMain + a, 0), r._outcomeSport = t.outcomeSport, r._norms[u.cCALORIE] = r._incomeRecommend;
- var d = r._incomeRecommend.normFrom * r.proteinPercent / 4;
- r._norms[u.cPROTEIN] = new n.default(i.round(d, 0));
- var _ = r._incomeRecommend.normFrom * r.fatPercent / 9;
- r._norms[u.cFAT] = new n.default(i.round(_, 0));
- var c = r._incomeRecommend.normFrom * r.carbPercent / 4;
- return r._norms[u.cCARBOHYDRATE] = new n.default(i.round(c, 0)), r.fillFats(), r
- }
- return r.__extends(t, e), t.getProteinPercent = function() {
- return 100 * m + "%"
- }, t.getFatPercent = function() {
- return 100 * s + "%"
- }, t.getCarbPercent = function() {
- return 100 * l + "%"
- }, t.prototype.calculateCalorie = function(e) {
- return o.default.calculateCalorie(e, 20, 20)
- }, t
- }(a.default);
- t.default = d
- }), define("modules/Nutrients/lib/MethodOfCalculationEnergy_Lose_Weight", ["require", "exports", "tslib", "./NutrientsHelper", "./NutrientsNormItem", "lodash", "modules/Constant/lib/index", "./AMethodOfCalculationEnergy"], function(e, t, r, o, n, i, u, a) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var m = function(e) {
- function t(t, r) {
- void 0 === r && (r = !1);
- var a = e.call(this, t, r) || this,
- m = a.calculateCalorie(t);
- a._metabolism = m.metabolism, a._outcomeMain = m.outcomeMain;
- var s = m.incomeRecommendStart;
- if (0 == t.outcomeSport || 1 == a.withoutSport) a._incomeRecommend = new n.default(i.round(s, 0)), a._incomeMin = i.round(a._metabolism, 0);
- else {
- var l = m.incomeRecommendEnd,
- d = o.default.fixOutcomeSport(t.sex, t.outcomeSport);
- if (s - d >= a._metabolism) a._incomeMin = a._metabolism, l = i.round(s + d, 0);
- else {
- var _ = a._metabolism - (s - d);
- a._incomeMin = i.round(a._metabolism + _, 0), l = i.round(s + d, 0), s = i.round(s + _, 0)
- }
- a._incomeRecommend = new n.default(s, s, l)
- }
- a._outcomeSport = t.outcomeSport, a._norms[u.cCALORIE] = a._incomeRecommend;
- var c = i.round(a._incomeRecommend.normFrom * a.proteinPercent() / 4, 0),
- h = i.round(a._incomeRecommend.normFrom * a.fatPercent() / 9, 0),
- f = i.round(a._incomeRecommend.normFrom * a.carbPercent() / 4, 0);
- if (a._incomeRecommend.isCorridor()) {
- var p = i.round(a._incomeRecommend.normTo * a.proteinPercent() / 4, 0),
- g = i.round(a._incomeRecommend.normTo * a.fatPercent() / 9, 0),
- F = i.round(a._incomeRecommend.normTo * a.carbPercent() / 4, 0);
- a._norms[u.cPROTEIN] = new n.default(c, c, p), a._norms[u.cFAT] = new n.default(h, h, g), a._norms[u.cCARBOHYDRATE] = new n.default(f, f, F)
- } else a._norms[u.cPROTEIN] = new n.default(c), a._norms[u.cFAT] = new n.default(h), a._norms[u.cCARBOHYDRATE] = new n.default(f);
- return a.fillFats(), a
- }
- return r.__extends(t, e), t.getProteinPercent = function() {
- return "24%"
- }, t.getFatPercent = function() {
- return "39.5%"
- }, t.getCarbPercent = function() {
- return "36.5%"
- }, t.prototype.proteinPercent = function() {
- return .24
- }, t.prototype.fatPercent = function() {
- return .395
- }, t.prototype.carbPercent = function() {
- return .365
- }, t.prototype.calculateCalorie = function(e) {
- o.default.bmi(e.weight, e.height) >= 25 && (e.updateWeightReasonBMI = !0);
- var t = -24;
- return (2 == e.id_intensity_of_labour || e.user_calorie_norm.useMyKoef && e.user_calorie_norm.outcomeKoef && e.user_calorie_norm.outcomeKoef <= 1.3) && (t = -21), o.default.calculateCalorie(e, t, t, "mifflinaMZR")
- }, t
- }(a.default);
- t.default = m
- }), define("modules/Nutrients/lib/MethodOfCalculationEnergy_Mifflina", ["require", "exports", "tslib", "./NutrientsHelper", "./NutrientsNormItem", "lodash", "modules/Constant/lib/index", "./AMethodOfCalculationEnergy"], function(e, t, r, o, n, i, u, a) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var m = .18,
- s = .3,
- l = .52,
- d = function(e) {
- function t(t) {
- var r = e.call(this, t) || this;
- r.proteinPercent = m, r.fatPercent = s, r.carbPercent = l;
- var a = r.calculateCalorie(t);
- r._outcomeMain = a.outcomeMain, r._metabolism = a.metabolism;
- var d = 0;
- t.outcomeSport > 0 && 0 == r.withoutSport && (d = o.default.fixOutcomeSport(t.sex, t.outcomeSport)), r._incomeRecommend = new n.default(i.round(r._outcomeMain + d, 0)), r._incomeMin = i.round(r._metabolism + d, 0), r._outcomeSport = t.outcomeSport, r._norms[u.cCALORIE] = new n.default(i.round(r._outcomeMain + d, 0));
- var _ = r._incomeRecommend.normFrom * r.proteinPercent / 4;
- r._norms[u.cPROTEIN] = new n.default(i.round(_, 0));
- var c = r._incomeRecommend.normFrom * r.fatPercent / 9;
- r._norms[u.cFAT] = new n.default(i.round(c, 0));
- var h = r._incomeRecommend.normFrom * r.carbPercent / 4;
- return r._norms[u.cCARBOHYDRATE] = new n.default(i.round(h, 0)), r.fillPregnancy(), r.fillFats(), r
- }
- return r.__extends(t, e), t.getProteinPercent = function() {
- return 100 * m + "%"
- }, t.getFatPercent = function() {
- return 100 * s + "%"
- }, t.getCarbPercent = function() {
- return 100 * l + "%"
- }, t.prototype.calculateCalorie = function(e) {
- return o.default.calculateCalorie(e, 0, 0)
- }, t
- }(a.default);
- t.default = d
- }), define("modules/Nutrients/lib/MethodOfCalculationEnergy_RussianMR", ["require", "exports", "tslib", "./NutrientsNormItem", "lodash", "modules/Constant/lib/index", "./AMethodOfCalculationEnergy"], function(e, t, r, o, n, i, u) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var a = function(e) {
- function t(t) {
- var r = e.call(this, t) || this;
- 2 == t.sex && 5 == t.get_intensity_of_labour().numberInMinzdrav && (t.id_intensity_of_labour = 6);
- for (var u = JSON.parse('[{"sex":0,"from":0,"to":0.25,"group":0,"weight":1,"nutrients":{"11":115,"13":2.2,"14":6.5,"15":13}},{"sex":0,"from":0.26,"to":0.5,"group":0,"weight":1,"nutrients":{"11":115,"13":2.6,"14":6,"15":13}},{"sex":0,"from":0.51,"to":0.99,"group":0,"weight":1,"nutrients":{"11":110,"13":2.9,"14":5.5,"15":13}},{"sex":0,"from":1,"to":1.99,"group":0,"weight":0,"nutrients":{"11":1200,"13":36,"14":40,"15":174}},{"sex":0,"from":2,"to":2.99,"group":0,"weight":0,"nutrients":{"11":1400,"13":42,"14":47,"15":203}},{"sex":0,"from":3,"to":6.99,"group":0,"weight":0,"nutrients":{"11":1800,"13":54,"14":60,"15":261}},{"sex":0,"from":7,"to":10.99,"group":0,"weight":0,"nutrients":{"11":2100,"13":63,"14":70,"15":305}},{"sex":1,"from":11,"to":13.99,"group":0,"weight":0,"nutrients":{"11":2500,"13":75,"14":83,"15":363}},{"sex":2,"from":11,"to":13.99,"group":0,"weight":0,"nutrients":{"11":2300,"13":69,"14":77,"15":334}},{"sex":1,"from":14,"to":17.99,"group":0,"weight":0,"nutrients":{"11":2900,"13":87,"14":97,"15":421}},{"sex":2,"from":14,"to":17.99,"group":0,"weight":0,"nutrients":{"11":2500,"13":75,"14":83,"15":363}},{"sex":1,"from":18,"to":28.99,"group":1,"weight":0,"nutrients":{"11":2450,"13":72,"14":81,"15":358}},{"sex":1,"from":29,"to":38.99,"group":1,"weight":0,"nutrients":{"11":2300,"13":68,"14":77,"15":335}},{"sex":1,"from":39,"to":59.99,"group":1,"weight":0,"nutrients":{"11":2100,"13":65,"14":70,"15":303}},{"sex":1,"from":60,"to":200,"group":0,"weight":0,"nutrients":{"11":2300,"13":68,"14":77,"15":335}},{"sex":1,"from":18,"to":28.99,"group":2,"weight":0,"nutrients":{"11":2800,"13":80,"14":93,"15":411}},{"sex":1,"from":29,"to":38.99,"group":2,"weight":0,"nutrients":{"11":2650,"13":77,"14":88,"15":387}},{"sex":1,"from":39,"to":59.99,"group":2,"weight":0,"nutrients":{"11":2500,"13":72,"14":83,"15":366}},{"sex":1,"from":18,"to":28.99,"group":3,"weight":0,"nutrients":{"11":3300,"13":94,"14":110,"15":484}},{"sex":1,"from":29,"to":38.99,"group":3,"weight":0,"nutrients":{"11":3150,"13":89,"14":105,"15":462}},{"sex":1,"from":39,"to":59.99,"group":3,"weight":0,"nutrients":{"11":2950,"13":84,"14":98,"15":432}},{"sex":1,"from":18,"to":28.99,"group":4,"weight":0,"nutrients":{"11":3850,"13":108,"14":128,"15":566}},{"sex":1,"from":29,"to":38.99,"group":4,"weight":0,"nutrients":{"11":3600,"13":102,"14":120,"15":528}},{"sex":1,"from":39,"to":59.99,"group":4,"weight":0,"nutrients":{"11":3400,"13":96,"14":113,"15":499}},{"sex":1,"from":18,"to":28.99,"group":5,"weight":0,"nutrients":{"11":4200,"13":117,"14":154,"15":586}},{"sex":1,"from":29,"to":38.99,"group":5,"weight":0,"nutrients":{"11":3950,"13":111,"14":144,"15":550}},{"sex":1,"from":39,"to":59.99,"group":5,"weight":0,"nutrients":{"11":3750,"13":104,"14":137,"15":524}},{"sex":2,"from":18,"to":28.99,"group":1,"weight":0,"nutrients":{"11":2000,"13":61,"14":67,"15":289}},{"sex":2,"from":29,"to":38.99,"group":1,"weight":0,"nutrients":{"11":1900,"13":59,"14":63,"15":274}},{"sex":2,"from":39,"to":59.99,"group":1,"weight":0,"nutrients":{"11":1800,"13":58,"14":60,"15":257}},{"sex":2,"from":60,"to":200,"group":0,"weight":0,"nutrients":{"11":1975,"13":61,"14":66,"15":284}},{"sex":2,"from":18,"to":28.99,"group":2,"weight":0,"nutrients":{"11":2200,"13":66,"14":73,"15":318}},{"sex":2,"from":29,"to":38.99,"group":2,"weight":0,"nutrients":{"11":2150,"13":65,"14":72,"15":311}},{"sex":2,"from":39,"to":59.99,"group":2,"weight":0,"nutrients":{"11":2100,"13":63,"14":70,"15":305}},{"sex":2,"from":18,"to":28.99,"group":3,"weight":0,"nutrients":{"11":2600,"13":76,"14":87,"15":378}},{"sex":2,"from":29,"to":38.99,"group":3,"weight":0,"nutrients":{"11":2550,"13":74,"14":85,"15":372}},{"sex":2,"from":39,"to":59.99,"group":3,"weight":0,"nutrients":{"11":2500,"13":72,"14":83,"15":366}},{"sex":2,"from":18,"to":28.99,"group":4,"weight":0,"nutrients":{"11":3050,"13":87,"14":102,"15":462}},{"sex":2,"from":29,"to":38.99,"group":4,"weight":0,"nutrients":{"11":2950,"13":84,"14":98,"15":432}},{"sex":2,"from":39,"to":59.99,"group":4,"weight":0,"nutrients":{"11":2850,"13":82,"14":95,"15":417}}]'), a = !1, m = 0; m < u.length; m++) {
- var s = u[m];
- if ((0 === s.sex || s.sex == t.sex) && ((0 === s.group || s.group == t.get_intensity_of_labour().numberInMinzdrav) && s.from <= t.age && t.age <= s.to)) {
- a = !0;
- for (var l in s.nutrients) s.nutrients.hasOwnProperty(l) && (1 == s.weight && (s.nutrients[l] = s.nutrients[l] * t.weight), r._norms[l] = new o.default(s.nutrients[l]));
- break
- }
- }
- return !1 === a && (console.error("По заданным параметрам не найдены нормы нутриентов RussionMR:Energy"), console.error(t)), r._metabolism = 0, 1 == t.sex ? r._metabolism = 10 * t.weight + 6.25 * t.height - 5 * t.age + 5 : r._metabolism = 10 * t.weight + 6.25 * t.height - 5 * t.age - 161, r._outcomeMain = r._norms[i.cCALORIE].norm, r._incomeRecommend = r._norms[i.cCALORIE], r._incomeMin = n.round(r._metabolism, 0), r._metabolism = n.round(r._metabolism, 0), r._outcomeSport = t.outcomeSport, r.fillPregnancy(), r.fillFats(), r
- }
- return r.__extends(t, e), t
- }(u.default);
- t.default = a
- }), define("modules/Nutrients/lib/MethodOfCalculationNutrients_RussianMR", ["require", "exports", "./NutrientsHelper", "./NutrientsNormItem", "lodash", "modules/Constant/lib/index"], function(e, t, r, o, n, i) {
- "use strict";
- Object.defineProperty(t, "__esModule""По заданным параметрам не найдены нормы нутриентов RussionMR:Nutr"), console.error(e));
- var c = 0;
- if (c = 0 == t ? r.default.waterNormPerWeight(e.weight, e.sex) : r.default.waterNormPerOutcomeMain(t, u, e.sex), c = n.round(c, 0), this._norms[i.cWATER] = new o.default(c), this._norms[i.cFIBER] = new o.default(20), this._norms[55] = new o.default(0, 0, 300), this._norms[16] = new o.default(0, 0, 100), null !== e.user_nutrients_norm && n.forOwn(e.user_nutrients_norm, function(e, t) {
- if (r.default.isFattyAcids(t));
- else {
- var o = r.default.createUserNorm(e);
- o && (a._norms[t] = o)
- }
- }), e.id_pregnancy >= 2) {
- var h = {
- 2: {
- 22: .2,
- 23: .2,
- 24: 1,
- 25: .3,
- 26: 200,
- 27: 10,
- 31: 15,
- 33: 300,
- 35: 50,
- 38: 200,
- 43: 70,
- 45: .2,
- 46: 100,
- 53: 3,
- 56: .5,
- 58: 10,
- 62: 2.5,
- 84: 2,
- 85: 100,
- 86: 2
- },
- 3: {
- 22: .3,
- 23: .3,
- 24: 2,
- 25: .5,
- 26: 100,
- 27: 30,
- 33: 400,
- 35: 50,
- 38: 200,
- 43: 140,
- 45: .8,
- 46: 400,
- 53: 3,
- 56: .5,
- 58: 10,
- 62: 2.5,
- 84: 3,
- 85: 400,
- 86: 4
- },
- 4: {
- 22: .3,
- 23: .3,
- 24: 2,
- 25: .5,
- 26: 100,
- 27: 30,
- 33: 400,
- 35: 50,
- 38: 200,
- 43: 140,
- 45: .8,
- 46: 400,
- 53: 3,
- 56: .5,
- 58: 10,
- 62: 2.5,
- 84: 3,
- 85: 400,
- 86: 4
- }
- };
- for (var f in h[e.id_pregnancy]) h[e.id_pregnancy].hasOwnProperty(f) && this._norms[f].addExtraNorm(h[e.id_pregnancy][f])
- }
- }
- return e.prototype.getNorms = function() {
- return this._norms
- }, e.prototype.fillFromResultNorms = function() {
- var e = this;
- this.params && this.params.resultNorms && n.isObject(this.params.resultNorms) && n.forOwn(this.params.resultNorms, function(t, i) {
- r.default.isFattyAcidsOrCPFC(i) || "ocm" == i || "voo" == i || t && n.isObject(t) && (e._norms[i] = o.default.fromObject(t))
- })
- }, e
- }();
- t.default = u
- }), define("modules/Nutrients/lib/UserEnergySettings", ["require", "exports", "./NutrientsNormItem", "lodash", "../../Utils/lib/Utils"], function(e, t, r, o, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var i = function() {
- function e(t) {
- void 0 === t && (t = {}), this.metabolism = 0, this.outcomeMain = 0, this.incomeRecommend = void 0, this.protein = void 0, this.fat = void 0, this.carb = void 0, this.userNorms = {}, this.userNorms = t, !0 === t.hasOwnProperty("metabolism") && (this.metabolism = Number(t.metabolism)), !0 === t.hasOwnProperty("outcomeMain") && (this.outcomeMain = Number(t.outcomeMain)), this.incomeRecommend = e.getNutrientNorm("11", t), this.protein = e.getNutrientNorm("13", t), this.fat = e.getNutrientNorm("14", t), this.carb = e.getNutrientNorm("15", t)
- }
- return e.prototype.getMetabolismFormula = function() {
- return this.userNorms.metabolismFormula ? this.userNorms.metabolismFormula : this.userNorms.metabolism ? "value" : "mifflina"
- }, e.prototype.setMetabolism = function(e) {
- this.metabolism = e, this.metabolism > this.outcomeMain && (this.outcomeMain = o.round(this.metabolism + this.metabolism / 100 * 10, 0))
- }, e.prototype.getOutcomeFormula = function() {
- return this.userNorms.outcomeFormula ? this.userNorms.outcomeFormula : this.userNorms.outcomeMain ? "value" : "koef"
- }, e.prototype.getNumberProp = function(e, t) {
- return void 0 === t && (t = 0), this.userNorms[e] ? n.toNumber(this.userNorms[e]) : t
- }, e.prototype.getNutrientFormula = function(e) {
- var t = e + "Formula";
- return this.userNorms[t] ? this.userNorms[t] : this.userNorms[e] ? "value" : "percent"
- }, e.prototype.getIncomeRecommendFormula = function() {
- return this.userNorms.incomeRecommendFormula ? this.userNorms.incomeRecommendFormula : this.userNorms[11] ? "value" : "percent"
- }, e.getNutrientNorm = function(e, t) {
- var o = 0,
- i = -1;
- return !0 === t.hasOwnProperty(e) ? (o = n.toNumber(t[e]), !0 === t.hasOwnProperty(e + "end") && 0 == (i = n.toNumber(t[e + "end"])) && (i = -1), new r.default(o, o, i, !0)) : new r.default(0, -1, -1, !0)
- }, e
- }();
- t.default = i
- }), define("modules/Nutrients/lib/MethodOfCalculationEnergy_UsersV2", ["require", "exports", "tslib", "./NutrientsHelper", "lodash", "modules/Constant/lib/index", "./MethodOfCalculationEnergy_Mifflina", "./UserEnergySettings", "./AMethodOfCalculationEnergy", "modules/Utils/lib/Utils", "./NutrientsNormItem"], function(e, t, r, o, n, i, u, a, m, s, l) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var d = function(e) {
- function t(t, r) {
- void 0 === r && (r = !1);
- var o = e.call(this, t, r) || this;
- return o.userSettings = new a.default(t.user_calorie_norm), o.calculateMetabolism(), o.calculateOutcomeMain(), o.calculateIncomeRecommend(), o.calculateNutrient("13", "protein"), o.calculateNutrient("14", "fat"), o.calculateNutrient("15", "carb"), o.calculateNutrientRest("13", "protein"), o.calculateNutrientRest("14", "fat"), o.calculateNutrientRest("15", "carb"), o.calculateSport(), o.fillFats(), o
- }
- return r.__extends(t, e), t.prototype.calculateIncomeRecommend = function() {
- var e = this.userSettings.getIncomeRecommendFormula();
- if ("value" == e) this.userSettings.incomeRecommend && this.userSettings.incomeRecommend.isSetNorm() && (this._incomeRecommend = this.userSettings.incomeRecommend);
- else if ("addValue" == e) {
- var t = this.userSettings.getNumberProp("11a"),
- r = this.userSettings.getNumberProp("11aend");
- this._incomeRecommend = 0 == r ? new l.default(this._outcomeMain + t, -1, -1, !0) : new l.default(this._outcomeMain + t, this._outcomeMain + t, this._outcomeMain + r, !0)
- } else if ("percent" == e) {
- var t = this.userSettings.getNumberProp("11p"),
- o = n.round(this._outcomeMain + this._outcomeMain * t / 100, 0),
- r = this.userSettings.getNumberProp("11pend"),
- a = n.round(this._outcomeMain + this._outcomeMain * r / 100, 0);
- this._incomeRecommend = 0 == r ? new l.default(o, -1, -1, !0) : new l.default(o, o, a, !0)
- }
- if (!this._incomeRecommend) {
- var m = new u.default(this.params);
- this._incomeRecommend = m.incomeRecommend()
- }
- this._incomeRecommend.isCorridor() && this._incomeRecommend.normFrom > this._incomeRecommend.normTo && (this._incomeRecommend.normFrom = this._incomeRecommend.normTo), this._incomeRecommend.normFrom < this._metabolism && (this._incomeRecommend.normFrom = this._metabolism + 1, this._incomeRecommend.isCorridor() && this._incomeRecommend.normTo < this._metabolism && (this._incomeRecommend.normTo = this._metabolism + 2)), this._norms[i.cCALORIE] = this._incomeRecommend
- }, t.prototype.calculateNutrientRest = function(e, t) {
- if ("rest" == this.userSettings.getNutrientFormula(e) && ("13" == e && this._norms[14] && this._norms[15] || "14" == e && this._norms[13] && this._norms[15] || "15" == e && this._norms[13] && this._norms[14])) {
- var r = 0,
- o = 0;
- "13" == e ? (r = n.round((this.incomeRecommend().normFrom - 9 * this._norms[14].normFrom - 4 * this._norms[15].normFrom) / 4, 1), o = n.round((this.incomeRecommend().normTo - 9 * this._norms[14].normTo - 4 * this._norms[15].normTo) / 4, 1)) : "14" == e ? (r = n.round((this.incomeRecommend().normFrom - 4 * this._norms[13].normFrom - 4 * this._norms[15].normFrom) / 9, 1), o = n.round((this.incomeRecommend().normTo - 4 * this._norms[13].normTo - 4 * this._norms[15].normTo) / 9, 1)) : "15" == e && (r = n.round((this.incomeRecommend().normFrom - 9 * this._norms[14].normFrom - 4 * this._norms[13].normFrom) / 4, 1), o = n.round((this.incomeRecommend().normTo - 9 * this._norms[14].normTo - 4 * this._norms[13].normTo) / 4, 1)), this._norms[e] = r == o ? new l.default(r, -1, -1, !0) : r < o ? new l.default(r, r, o, !0) : new l.default(o, o, r, !0)
- }
- this._norms[e] || (this._norms[e] = new l.default(0, -1, -1, !0))
- }, t.prototype.calculateNutrient = function(e, t) {
- var r = this.userSettings.getNutrientFormula(e);
- if ("value" == r) this.userSettings[t] && this.userSettings[t].isSetNorm() && (this._norms[e] = this.userSettings[t]);
- else if ("percent" == r) {
- var o = this.userSettings.getNumberProp(e + "p"),
- i = this.userSettings.getNumberProp(e + "pend", null),
- u = -1,
- a = -1,
- m = 4;
- "14" == e && (m = 9), this.incomeRecommend().isCorridor() ? (u = n.round(this.incomeRecommend().normFrom * o / 100 / m, 1), a = null == i ? n.round(this.incomeRecommend().normTo * o / 100 / m, 1) : n.round(this.incomeRecommend().normTo * i / 100 / m, 1)) : (u = n.round(this.incomeRecommend().normFrom * o / 100 / m, 1), null != i && (a = n.round(this.incomeRecommend().normTo * i / 100 / m, 1))), this._norms[e] = -1 == a || a == u ? new l.default(u, -1, -1, !0) : new l.default(u, u, a, !0)
- } else if ("perWeight" == r) {
- var o = this.userSettings.getNumberProp(e + "w"),
- i = this.userSettings.getNumberProp(e + "wend", null),
- u = n.round(this.params.weight * o, 1);
- if (i) {
- var s = n.round(this.params.weight * i);
- this._norms[e] = new l.default(u, u, s, !0)
- } else this._norms[e] = new l.default(u, -1, -1, !0)
- }
- }, t.prototype.calculateOutcomeMain = function() {
- var e = this.userSettings.getOutcomeFormula();
- if ("value" == e ? this.userSettings.outcomeMain && (this._outcomeMain = s.toNumber(this.userSettings.outcomeMain, 0)) : "addValue" == e ? this._outcomeMain = this._metabolism + this.userSettings.getNumberProp("outcomeAdd") : "koef" == e && (this._outcomeMain = this._metabolism * this.userSettings.getNumberProp("outcomeKoef", 1.1)), !this._outcomeMain) {
- var t = new u.default(this.params);
- this._outcomeMain = t.outcomeMain()
- }
- this._outcomeMain = n.round(this._outcomeMain, 0), this._outcomeMain < this._metabolism && (this._outcomeMain = this._metabolism + 1)
- }, t.prototype.calculateSport = function() {
- if (0 == this.withoutSport && this._outcomeSport > 0) {
- var e = this._outcomeSport;
- this.params.user_calorie_norm.fixOutcomeSport && (e = o.default.fixOutcomeSport(this.params.sex, this._outcomeSport));
- var t = this.userSettings.getNumberProp("sportProtein"),
- r = this.userSettings.getNumberProp("sportFat"),
- i = this.userSettings.getNumberProp("sportCarb");
- if (this._incomeRecommend.normFrom - e >= this._metabolism) this._incomeRecommend.normTo = n.round(this._incomeRecommend.normTo + e, 0), this._norms[13] = this.addPercent(this._norms[13], e / 4, t), this._norms[14] = this.addPercent(this._norms[14], e / 9, r), this._norms[15] = this.addPercent(this._norms[15], e / 4, i);
- else {
- var u = this._metabolism - (this._incomeRecommend.normFrom - e);
- this._incomeMin = n.round(this._metabolism + u, 0);
- var a = n.round(this._incomeRecommend.normTo + e, 0),
- m = n.round(this._incomeRecommend.normFrom + u, 0);
- this._incomeRecommend.normTo = a, this._incomeRecommend.normFrom = m, this._incomeRecommend.norm = m, this._norms[13] = this.addPercent2(this._norms[13], e / 4, u / 4, t), this._norms[14] = this.addPercent2(this._norms[14], e / 9, u / 9, r), this._norms[15] = this.addPercent2(this._norms[15], e / 4, u / 4, i)
- }
- }
- }, t.prototype.addPercent2 = function(e, t, r, o) {
- if (o > 0)
- if (e.isCorridor()) {
- var i = n.round(e.norm + r / 100 * o, 1),
- u = n.round(e.normTo + t / 100 * o, 1);
- e.normFrom = i, e.norm = i, e.normTo = u
- } else {
- var i = n.round(e.norm + r / 100 * o, 1),
- u = n.round(e.norm + t / 100 * o, 1);
- e.normFrom = i, e.norm = i, e.normTo = u
- } return e
- }, t.prototype.addPercent = function(e, t, r) {
- return r > 0 && (e.isCorridor() ? (e.normFrom = n.round(e.normFrom + t / 100 * r, 1), e.norm = e.normFrom, e.normTo = n.round(e.normTo + t / 100 * r, 1)) : e.normTo = n.round(e.norm + t / 100 * r, 1)), e
- }, t.prototype.calculateMetabolism = function() {
- var e = this.userSettings.getMetabolismFormula();
- "value" == e ? this._metabolism = s.toNumber(this.userSettings.metabolism, 0) : "mifflina" == e ? this._metabolism = o.default.formulaMifflina(this.params.sex, this.params.weight, this.params.height, this.params.age) : "mifflinaMZR" == e ? this._metabolism = o.default.formulaMifflinaMZR(this.params.sex, this.params.weight, this.params.height, this.params.age) : "venuto" == e ? this._metabolism = o.default.formulaTomVenuto(this.params.sex, this.params.weight, this.params.height, this.params.age) : "benedikt" == e && (this._metabolism = o.default.formulaKharrisabenedikta(this.params.sex, this.params.weight, this.params.height, this.params.age)), this._metabolism || (this._metabolism = o.default.formulaMifflina(this.params.sex, this.params.weight, this.params.height, this.params.age)), this._metabolism = n.round(this._metabolism, 0), this._incomeMin = this._metabolism
- }, t
- }(m.default);
- t.default = d
- }), define("modules/Nutrients/lib/MethodOfCalculationEnergy_Lose_WeightLowCarb", ["require", "exports", "tslib", "./MethodOfCalculationEnergy_Lose_Weight", "lodash"], function(e, t, r, o, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var i = function(e) {
- function t() {
- return null !== e && e.apply(this, arguments) || this
- }
- return r.__extends(t, e), t.getProteinPercent = function() {
- return n.round(35, 2) + "%"
- }, t.getFatPercent = function() {
- return n.round(40, 2) + "%"
- }, t.getCarbPercent = function() {
- return n.round(25, 2) + "%"
- }, t.prototype.proteinPercent = function() {
- return .35
- }, t.prototype.fatPercent = function() {
- return .4
- }, t.prototype.carbPercent = function() {
- return .25
- }, t
- }(o.default);
- t.default = i
- }), define("modules/Nutrients/lib/MethodOfCalculationEnergy_Lose_WeightLowFat", ["require", "exports", "tslib", "./MethodOfCalculationEnergy_Lose_Weight", "lodash"], function(e, t, r, o, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var i = function(e) {
- function t() {
- return null !== e && e.apply(this, arguments) || this
- }
- return r.__extends(t, e), t.getProteinPercent = function() {
- return n.round(20, 2) + "%"
- }, t.getFatPercent = function() {
- return n.round(25, 2) + "%"
- }, t.getCarbPercent = function() {
- return n.round(.55 * 100, 2) + "%"
- }, t.prototype.proteinPercent = function() {
- return .2
- }, t.prototype.fatPercent = function() {
- return .25
- }, t.prototype.carbPercent = function() {
- return .55
- }, t
- }(o.default);
- t.default = i
- }), define("modules/Nutrients/lib/MethodOfCalculationEnergy_Lose_WeightKeto", ["require", "exports", "tslib", "./MethodOfCalculationEnergy_Lose_Weight", "./NutrientsNormItem", "modules/Constant/lib/index", "lodash"], function(e, t, r, o, n, i, u) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var a = .18,
- m = 50,
- s = function(e) {
- function t(t) {
- var r = e.call(this, t) || this;
- r.getNorms()[15].normFrom > m ? (r.getNorms()[15].normFrom = m, r.getNorms()[15].norm = m, r.getNorms()[15].normTo = m) : r.getNorms()[15].isCorridor() && r.getNorms()[15].normTo > m && (r.getNorms()[15].normTo = m);
- var o = u.round(r._incomeRecommend.normFrom * a / 4, 0),
- s = u.round((r._incomeRecommend.normFrom - 4 * o - 4 * r.getNorms()[15].normFrom) / 9, 0);
- if (r._incomeRecommend.isCorridor()) {
- var l = u.round(r._incomeRecommend.normTo * a / 4, 1),
- d = u.round((r._incomeRecommend.normTo - 4 * l - 4 * r.getNorms()[15].normTo) / 9, 0);
- r._norms[i.cFAT] = new n.default(s, s, d)
- } else r._norms[i.cFAT] = new n.default(s, -1, -1);
- return r.fillFats(), r
- }
- return r.__extends(t, e), t.getProteinPercent = function() {
- return u.round(100 * a, 2) + "%"
- }, t.getFatPercent = function() {
- return u.round(72, 2) + "% и выше"
- }, t.getCarbPercent = function() {
- return u.round(10, 2) + "%, max " + m + " г"
- }, t.prototype.proteinPercent = function() {
- return a
- }, t.prototype.fatPercent = function() {
- return .72
- }, t.prototype.carbPercent = function() {
- return .1
- }, t
- }(o.default);
- t.default = s
- }), define("modules/Nutrients/lib/MethodOfCalculationEnergy_Lose_WeightProtein", ["require", "exports", "tslib", "./MethodOfCalculationEnergy_Lose_Weight", "lodash"], function(e, t, r, o, n) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var i = function(e) {
- function t() {
- return null !== e && e.apply(this, arguments) || this
- }
- return r.__extends(t, e), t.getProteinPercent = function() {
- return n.round(40, 2) + "%"
- }, t.getFatPercent = function() {
- return n.round(30, 2) + "%"
- }, t.getCarbPercent = function() {
- return n.round(30, 2) + "%"
- }, t.prototype.proteinPercent = function() {
- return .4
- }, t.prototype.fatPercent = function() {
- return .3
- }, t.prototype.carbPercent = function() {
- return .3
- }, t
- }(o.default);
- t.default = i
- }), define("modules/Nutrients/lib/MethodOfCalculationEnergy_Lose_WeightOld", ["require", "exports", "tslib", "./NutrientsHelper", "lodash", "modules/Constant/lib/index", "./AMethodOfCalculationEnergy", "./NutrientsNormItem"], function(e, t, r, o, n, i, u, a) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var m = function(e) {
- function t(t, r) {
- void 0 === r && (r = !1);
- var u = e.call(this, t) || this;
- u.withoutSport = r;
- var m = u.calculateCalorie(t);
- if (u._outcomeMain = m.outcomeMain, u._metabolism = m.metabolism, 0 === t.outcomeSport || 1 == u.withoutSport) u._incomeRecommend = new a.default(n.round(m.incomeRecommendStart, 0)), u._incomeMin = n.round(u._metabolism, 0);
- else {
- var s = 300,
- l = 600;
- 1 === t.sex && (s = 400, l = 700);
- var d = 0;
- if (d = t.outcomeSport <= s ? t.outcomeSport : t.outcomeSport <= l ? n.round(s + (t.outcomeSport - s) / 2, 0) : n.round(s + (l - s) / 2, 0), m.incomeRecommendStart - t.outcomeSport >= u._metabolism) u._incomeMin = u._metabolism, m.incomeRecommendEnd = n.round(m.incomeRecommendStart + d, 0);
- else {
- var _ = u._metabolism - (m.incomeRecommendStart - d);
- u._incomeMin = n.round(u._metabolism + _, 0), m.incomeRecommendEnd = n.round(m.incomeRecommendStart + d, 0), m.incomeRecommendStart = n.round(m.incomeRecommendStart + _, 0)
- }
- u._incomeRecommend = new a.default(m.incomeRecommendStart, m.incomeRecommendStart, m.incomeRecommendEnd)
- }
- u._outcomeSport = t.outcomeSport, u._norms[i.cCALORIE] = u._incomeRecommend;
- var c = .18,
- h = .32;
- t.id_intensity_of_labour >= 4 && (c = .18, h = .3);
- var f = u._outcomeMain * c / 4;
- u._norms[i.cPROTEIN] = new a.default(n.round(f, 0));
- var p = u._outcomeMain * h / 9;
- if (u._norms[i.cFAT] = new a.default(n.round(p, 0)), u._incomeRecommend.isCorridor()) {
- var g = n.round((m.incomeRecommendEnd - (4 * f + 9 * p)) / 4, 0),
- F = n.round((m.incomeRecommendStart - (4 * f + 9 * p)) / 4, 0);
- u._norms[i.cCARBOHYDRATE] = new a.default(F, F, g)
- } else {
- var F = n.round((m.incomeRecommendStart - (4 * f + 9 * p)) / 4, 0);
- u._norms[i.cCARBOHYDRATE] = new a.default(F)
- }
- return n.forOwn(u.calculateTypeOfFat(u._outcomeMain, u._norms[i.cFAT].norm), function(e, t) {
- this._norms[t] = e
- }, u), n.forOwn(o.default.calculateTypeOfFatUser(t.user_nutrients_norm), function(e, t) {
- this._norms[t] = e
- }, u), u
- }
- return r.__extends(t, e), t.getProteinPercent = function() {
- return ""
- }, t.getFatPercent = function() {
- return ""
- }, t.getCarbPercent = function() {
- return ""
- }, t.prototype.calculateCalorie = function(e) {
- return n.round(e.weight / Math.pow(e.height / 100, 2), 1) <= 25 || (e.weight = n.round(25 * Math.pow(e.height / 100, 2), 1), e.updateWeightReasonBMI = !0), 2 == e.id_intensity_of_labour ? o.default.calculateCalorie(e, -20, -12) : o.default.calculateCalorie(e, -22, -12)
- }, t.prototype.calculateTypeOfFat = function(e, t) {
- var r = {},
- o = .1 * e / 9;
- r[i.cNGK] = new a.default(0, 0, n.round(o, 1));
- var u = .06 * e / 9,
- m = .11 * e / 9;
- r[i.cPNGK] = new a.default(0, n.round(u, 1), n.round(m, 1));
- var s = .005 * e / 9,
- l = .02 * e / 9;
- r[i.cOMEGA3] = new a.default(0, n.round(s, 1), n.round(l, 1));
- var d = .025 * e / 9,
- _ = .09 * e / 9;
- r[i.cOMEGA6] = new a.default(0, n.round(d, 1), n.round(_, 1));
- var c = t - .22 * e / 9,
- h = t - .06 * e / 9;
- r[i.cMNGK] = new a.default(0, n.round(c, 1), n.round(h, 1));
- var f = .01 * e / 9;
- return r[i.cTRANSFAT] = new a.default(0, 0, n.round(f, 1)), r
- }, t
- }(u.default);
- t.default = m
- }), define("modules/Nutrients/lib/ParamsForCalculateNormsOfNutrients", ["require", "exports", "./IntensityOfLabour", "./MethodOfCalculationEnergy_Gain_Weight", "./MethodOfCalculationEnergy_Lose_Weight", "./MethodOfCalculationEnergy_Mifflina", "./MethodOfCalculationEnergy_RussianMR", "./MethodOfCalculationNutrients_RussianMR", "modules/Constant/lib/index", "lodash", "./MethodOfCalculationEnergy_UsersV2", "modules/Utils/lib/Utils", "./MethodOfCalculationEnergy_Lose_WeightLowCarb", "./MethodOfCalculationEnergy_Lose_WeightLowFat", "./MethodOfCalculationEnergy_Lose_WeightKeto", "./MethodOfCalculationEnergy_Lose_WeightProtein", "./MethodOfCalculationEnergy_Lose_WeightOld"], function(e, t, r, o, n, i, u, a, m, s, l, d, _, c, h, f, p) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var g = function() {
- function e() {
- this.age = 30, this.sex = 2, this.height = 160, this.weight = 60, this.id_intensity_of_labour = 3, this.id_pregnancy = 0, this.user_nutrients_norm = {}, this.user_calorie_norm = {}, this.method_of_calculation_energy = 0, this.method_of_calculation_vitamins_minerals = 0, this.outcomeSport = 0, this.updateWeightReasonBMI = !1, this.somatotype = 1, this.resultNorms = null
- }
- return e.prototype.getMethodOfCalculationEnergy = function() {
- var e;
- return e = this.method_of_calculation_energy === m.cMETHOD_OF_CALCULATION_ENERGY_MIFFLINA ? new i.default(this) : this.method_of_calculation_energy === m.cMETHOD_OF_CALCULATION_ENERGY_RUSSIAN_MR ? new u.default(this) : this.method_of_calculation_energy === m.cMETHOD_OF_CALCULATION_ENERGY_GAIN_WEIGHT ? new o.default(this) : this.method_of_calculation_energy === m.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT ? new n.default(this) : this.method_of_calculation_energy === m.cMETHOD_OF_CALCULATION_ENERGY_USER ? new l.default(this) : this.method_of_calculation_energy === m.cMETHOD_OF_CALCULATION_ENERGY_USER_WITHOUT_SPORT ? new l.default(this, !0) : this.method_of_calculation_energy === m.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_WITHOUT_SPORT ? new p.default(this, !0) : this.method_of_calculation_energy === m.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_LOW_CARB ? new _.default(this) : this.method_of_calculation_energy === m.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_LOW_FAT ? new c.default(this) : this.method_of_calculation_energy === m.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_KETO ? new h.default(this) : this.method_of_calculation_energy === m.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_PROTEIN ? new f.default(this) : this.method_of_calculation_energy === m.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_OLD ? new p.default(this) : new i.default(this), this.resultNorms && e.fillFromResultNorms(), e
- }, e.prototype.getMethodOfCalculationNutrients = function(e, t) {
- void 0 === e && (e = 0), void 0 === t && (t = 0);
- var r = new a.default(this, e, t);
- return this.resultNorms && r.fillFromResultNorms(), r
- }, e.prototype.get_intensity_of_labour = function() {
- return r.default.byId(this.id_intensity_of_labour)
- }, e.getMethodOfCalculationEnergy = function(e, t, r) {
- return t = t || 18, r = r || 0, t < 18 || 0 !== r ? {
- id: m.cMETHOD_OF_CALCULATION_ENERGY_RUSSIAN_MR,
- title: "Методика раÑчета норм калорийноÑти, белков, жиров и углеводов по методичеÑким рекомендациÑм МР2.3.1.2432 -08"
- } : e === m.PURPOSE_LOSE_WEIGHT ? {
- id: m.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT,
- title: 'Методика раÑчета норм калорийноÑти, белков, жиров и углеводов "СбаланÑированное похудение"'
- } : e === m.PURPOSE_GAIN_WEIGHT ? {
- id: m.cMETHOD_OF_CALCULATION_ENERGY_GAIN_WEIGHT,
- title: 'Методика раÑчета норм калорийноÑти, белков, жиров и углеводов "Ðабор веÑа"'
- } : {
- id: m.cMETHOD_OF_CALCULATION_ENERGY_MIFFLINA,
- title: 'Методика раÑчета норм калорийноÑти, белков, жиров и углеводов "СбаланÑированное питание"'
- }
- }, e.prototype.createClone = function() {
- var t = new e;
- return t.age = this.age, t.sex = this.sex, t.height = this.height, t.weight = this.weight, t.id_pregnancy = this.id_pregnancy, t.id_intensity_of_labour = this.id_intensity_of_labour, t.user_nutrients_norm = s.clone(this.user_nutrients_norm, !0), t.user_calorie_norm = s.clone(this.user_calorie_norm), t.method_of_calculation_energy = this.method_of_calculation_energy, t.method_of_calculation_vitamins_minerals = this.method_of_calculation_vitamins_minerals, t.outcomeSport = this.outcomeSport, t.somatotype = this.somatotype, t
- }, e.prototype.toObject = function() {
- return {
- age: this.age,
- sex: this.sex,
- height: this.height,
- weight: this.weight,
- id_pregnancy: this.id_pregnancy,
- id_intensity_of_labour: this.id_intensity_of_labour,
- user_nutrients_norm: this.user_nutrients_norm,
- user_calorie_norm: this.user_calorie_norm,
- method_of_calculation_energy: this.method_of_calculation_energy,
- method_of_calculation_vitamins_minerals: this.method_of_calculation_vitamins_minerals,
- outcomeSport: this.outcomeSport,
- somatotype: this.somatotype
- }
- }, e.prototype.fromObject = function(e, t) {
- var r = this;
- if (void 0 === e && (e = {}), void 0 === t && (t = null), e && s.isObject(e)) {
- var o = !1,
- n = !1;
- if (s.isObject(e.params)) {
- var i = e.params;
- if (i.sex && (this.sex = d.toNumber(i.sex)), i.age && (this.age = d.toNumber(i.age)), i.height && (this.height = d.toNumber(i.height)), i.weight && (this.weight = d.toNumber(i.weight), o = !0), i.id_pregnancy && (this.id_pregnancy = d.toNumber(i.id_pregnancy)), i.id_intensity_of_labour && (this.id_intensity_of_labour = d.toNumber(i.id_intensity_of_labour)), i.user_nutrients_norm && (this.user_nutrients_norm = d.toObject(i.user_nutrients_norm)), i.user_calorie_norm && (this.user_calorie_norm = d.toObject(i.user_calorie_norm)), i.method_of_calculation_energy && (this.method_of_calculation_energy = d.toNumber(i.method_of_calculation_energy)), i.method_of_calculation_vitamins_minerals && (this.method_of_calculation_vitamins_minerals = d.toNumber(i.method_of_calculation_vitamins_minerals)), i.outcomeSport && (null != t && t != d.toNumber(i.outcomeSport) ? n = !0 : this.outcomeSport = d.toNumber(i.outcomeSport)), i.resultNorms) {
- var u = d.toObject(i.resultNorms);
- n ? (this.resultNorms = {}, s.forOwn(i.resultNorms, function(e, t) {
- 11 == t || 12 == t || 13 == t || 14 == t || 15 == t || (r.resultNorms[t] = e)
- })) : this.resultNorms = u
- }
- }
- s.isObject(e.c) && (this.resultNorms || (this.resultNorms = {}), !this.resultNorms.ocm && e.c.ocm && (this.resultNorms.ocm = {
- n: d.toNumber(e.c.ocm)
- })), !o && e.w && (this.weight = d.toNumber(e.w))
- }
- }, e
- }();
- t.default = g
- }), define("modules/Nutrients/lib/NutrientsNorm", ["require", "exports", "./NutrientsNormItem", "./ParamsForCalculateNormsOfNutrients", "modules/Constant/lib/index", "lodash"], function(e, t, r, o, n, i) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var u = function() {
- function e() {
- this.perDays = 0, this.params_for_nutrients_norm = [], this._norms_of_nutrients = {}, this.metabolism = 0, this.incomeMin = 0, this.incomeRecommend = null, this.calorieCorridor = {
- start: 0,
- end: 0
- }, this.outcomeMain = 0, this.outcomeSport = 0
- }
- return e.prototype.getParams = function(e) {
- return e = e || 0, null === this.params_for_nutrients_norm || 0 === this.params_for_nutrients_norm.length || e >= this.params_for_nutrients_norm.length ? null : this.params_for_nutrients_norm[e]
- }, e.prototype.toObject = function(e) {
- if (null === this.params_for_nutrients_norm) return {};
- if (1 == this.params_for_nutrients_norm.length) {
- var t = this.getParams(0);
- if (t) {
- var r = t.toObject();
- return e && (r.resultNorms = {
- voo: {
- n: this.metabolism
- },
- ocm: {
- n: this.outcomeMain
- }
- }, i.forOwn(this._norms_of_nutrients, function(e, t) {
- r.resultNorms[t] = e.toObject()
- })), r
- }
- }
- return {}
- }, e.prototype.setParams = function(e, t) {
- void 0 === t && (t = 1), i.isArray(e) ? e.forEach(function(e) {
- this.params_for_nutrients_norm.push(e)
- }, this) : this.params_for_nutrients_norm.push(e), this.perDays = t
- }, e.prototype.element = function(e) {
- return !0 === this._norms_of_nutrients.hasOwnProperty(e) ? this._norms_of_nutrients[e] : new r.default(0)
- }, e.prototype._fillNormsOfNutrients = function(e) {
- for (var t in e) e.hasOwnProperty(t) && (!1 === this._norms_of_nutrients.hasOwnProperty(t) && (this._norms_of_nutrients[t] = new r.default(0)), this._norms_of_nutrients[t].add(e[t]))
- }, e.prototype.calculateNorms = function() {
- this._norms_of_nutrients = {}, this.outcomeMain = 0, this.metabolism = 0, this.incomeMin = 0, this.calorieCorridor = {
- start: 0,
- end: 0
- }, this.incomeRecommend = new r.default(0), this.outcomeSport = 0;
- for (var e = this.params_for_nutrients_norm.length, t = 0; t < e; t++) {
- var o = this.params_for_nutrients_norm[t],
- n = o.getMethodOfCalculationEnergy(),
- i = n.getNorms();
- this._fillNormsOfNutrients(i), this.metabolism = this.metabolism + n.metabolism(), this.outcomeMain = this.outcomeMain + n.outcomeMain(), this.incomeMin = this.incomeMin + n.incomeMin(), this.calorieCorridor.start = this.calorieCorridor.start + n.calorieCorridor().start, this.calorieCorridor.end = this.calorieCorridor.end + n.calorieCorridor().end, this.incomeRecommend.add(n.incomeRecommend()), this.outcomeSport = this.outcomeSport + n.outcomeSport();
- var u = o.getMethodOfCalculationNutrients(n.outcomeMain(), n.outcomeSport()),
- a = u.getNorms();
- this._fillNormsOfNutrients(a)
- }
- }, e.prototype.getNormsOfNutrients = function() {
- return this._norms_of_nutrients
- }, e.sumNorms = function(t) {
- var r = new e,
- o = 0,
- n = i.chain(t).compact().forEach(function(e) {
- o += e.perDays
- }).map(function(e) {
- return e.params_for_nutrients_norm
- }).flatten().value();
- return r.setParams(n, o), r.calculateNorms(), r
- }, e.getDefault = function() {
- if (null === e._default_nutrients_norm) {
- var t = new o.default;
- t.sex = 2, t.age = 35, t.height = 160, t.weight = 60, t.id_intensity_of_labour = 2, t.method_of_calculation_energy = n.cMETHOD_OF_CALCULATION_ENERGY_MIFFLINA;
- var r = new e;
- r.setParams(t), r.calculateNorms(), e._default_nutrients_norm = r
- }
- return this._default_nutrients_norm
- }, e._default_nutrients_norm = null, e
- }();
- t.default = u
- }), define("modules/Nutrients/lib/NutrientsList", ["require", "exports", "./NutrientsNormItem", "./NutrientsNorm", "modules/Constant/lib/index", "lodash"], function(e, t, r, o, n, i) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var u = function() {
- function e() {
- this.id = -1, this.name = "", this.name2 = "", this.nameShort = "", this.unit = "", this.norm = new r.default, this.round = 4, this.barColor = "", this.inRating = !1, this.inDiagram = !1, this.maxValueForFilter = 0, this.isUser = !1, this.groupId = 0, this.isDetailed = !1, this.group = a.getGroup(this.groupId)
- }
- return e.prototype.nameWithUnit = function() {
- return "" === this.unit ? this.name : this.name + " (" + this.unit + ")"
- }, e.prototype.fromObject = function(e, t) {
- return e = e || {}, this.id = Number(i.get(e, "id", 0)), this.name = i.get(e, "name", ""), this.name2 = i.get(e, "name2", ""), this.unit = i.get(e, "unit", ""), this.nameShort = i.get(e, "nameShort", ""), this.round = i.get(e, "round", 4), this.barColor = i.get(e, "barColor", ""), this.inRating = i.get(e, "inRating", !1), this.inDiagram = i.get(e, "inDg", !1), this.isUser = i.get(e, "isUser", !1), this.norm = t, this.maxValueForFilter = i.round(i.get(e, "maxValueForFilter", this.norm.norm), 1), this.groupId = i.get(e, "group", 0), this.isDetailed = !1 !== i.get(e, "isDetailed", !1), this.group = a.getGroup(this.groupId), this
- }, e.prototype.isCPFU = function() {
- return this.id === n.cCALORIE || this.id === n.cPROTEIN || this.id === n.cFAT || this.id === n.cCARBOHYDRATE
- }, e.prototype.isCalorie = function() {
- return this.id === n.cCALORIE
- }, e.prototype.isIds = function(e) {
- return -1 !== i.indexOf(e, this.id)
- }, e
- }();
- t.Nutrient = u;
- var a = function() {
- function e(t) {
- this.nutrients_norm = null, this._nutrients = {}, this._nutrientCache = {}, t = t || {}, this._nutrients = e._getList(), void 0 !== t.nutrients && i.isArray(t.nutrients) && t.nutrients.forEach(function(e) {
- this._nutrients[e.id] = {
- name: e.name,
- unit: "",
- isUser: !0
- }, this._nutrients.order.push(e.id)
- }, this), void 0 !== t.norm ? this.nutrients_norm = t.norm : this.nutrients_norm = o.default.getDefault()
- }
- return e.prototype.getNorms = function() {
- return this.nutrients_norm
- }, e.prototype.getList = function() {
- return this._nutrients.order.map(function(e) {
- return this.byId(e)
- }, this)
- }, e.prototype.forEach = function(e) {
- var t = this;
- this._nutrients.order.forEach(function(r) {
- e(t.byId(r))
- })
- }, e.prototype.map = function(e) {
- var t = this;
- return this._nutrients.order.map(function(r) {
- return e(t.byId(r))
- })
- }, e.prototype.byId = function(e) {
- if (this._nutrientCache.hasOwnProperty("" + e)) return this._nutrientCache["" + e];
- if (this._nutrients.hasOwnProperty(e)) {
- var t = new u;
- return this._nutrientCache["" + e] = t.fromObject(this._nutrients[e], this.nutrients_norm.element(e)), t
- }
- return !1 === this._nutrientCache.hasOwnProperty("notFound") && (this._nutrientCache.notFound = new u), this._nutrientCache.notFound
- }, e.getGroup = function(t) {
- var r = {
- name: "",
- id: 0,
- parent_id: null,
- level: 0
- };
- return 0 === t ? r : this._groupCache[t] ? this._groupCache[t] : (e._getList().groups.forEach(function(e) {
- e.id == t && (this._groupCache[t] = e, r = e)
- }, this), r)
- }, e._groupCache = [], e.Nutrient = u, e._getList = function() {
- return {
- 11: {
- name: "КалорийноÑÑ‚ÑŒ",
- id: 11,
- nameShort: "кКал",
- group: "67",
- unit: "кКал",
- round: 1,
- barColor: "#FF6B2D",
- maxValueForFilter: 902
- },
- 13: {
- name: "Белки",
- id: 13,
- nameShort: "Б",
- group: "67",
- unit: "г",
- round: 1,
- barColor: "#00CC00",
- maxValueForFilter: 87.75
- },
- 14: {
- name: "Жиры",
- id: 14,
- nameShort: "Ж",
- group: "67",
- unit: "г",
- round: 1,
- barColor: "#00CC00",
- maxValueForFilter: 100
- },
- 15: {
- name: "Углеводы",
- id: 15,
- nameShort: "У",
- group: "67",
- unit: "г",
- round: 1,
- barColor: "#00CC00",
- maxValueForFilter: 99.98
- },
- 87: {
- name: "Ðлкоголь (Ñтиловый Ñпирт)",
- id: 87,
- group: "67",
- unit: "г",
- round: 1,
- maxValueForFilter: 42.5
- },
- 19: {
- name: "ОрганичеÑкие киÑлоты",
- id: 19,
- nameShort: "КиÑлоты",
- group: "67",
- name2: "органичеÑкими киÑлотами",
- unit: "г",
- round: 1,
- maxValueForFilter: 1330.2
- },
- 18: {
- name: "Пищевые волокна",
- id: 18,
- nameShort: "Вол.",
- group: "67",
- name2: "пищевыми волокнами",
- unit: "г",
- round: 1,
- maxDose: 40,
- barColor: "#FD7E00",
- inRating: !1,
- maxValueForFilter: 79.4
- },
- 12: {
- name: "Вода",
- id: 12,
- nameShort: "Вода",
- group: "67",
- unit: "г",
- round: 0,
- barColor: "#0051E6",
- maxValueForFilter: 607
- },
- 20: {
- name: "Зола",
- id: 20,
- group: "67",
- unit: "г",
- round: 3,
- maxValueForFilter: 100
- },
- 85: {
- name: "Витамин Ð, Ð Ð",
- id: 85,
- nameShort: "A",
- group: "64",
- name2: "витамином Ð",
- unit: "мкг",
- round: 1,
- maxDose: 3e3,
- barColor: "#F3DC00",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 42200
- },
- 21: {
- name: "Ретинол",
- id: 21,
- nameShort: "A",
- group: "64",
- unit: "мг",
- round: 3,
- maxValueForFilter: 42.2
- },
- 93: {
- name: "альфа Каротин",
- id: 93,
- group: "64",
- isDetailed: 1,
- unit: "мкг",
- round: 3,
- maxValueForFilter: 14251
- },
- 74: {
- name: "бета Каротин",
- id: 74,
- nameShort: "b-car",
- group: "64",
- isDetailed: 1,
- name2: "бÑта-каротином",
- unit: "мг",
- round: 3,
- barColor: "#F3DC00",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 140
- },
- 94: {
- name: "бета КриптокÑантин",
- id: 94,
- group: "64",
- isDetailed: 1,
- unit: "мкг",
- round: 3,
- maxValueForFilter: 6252
- },
- 95: {
- name: "Ликопин",
- id: 95,
- group: "64",
- unit: "мкг",
- round: 3,
- maxValueForFilter: 46260
- },
- 96: {
- name: "Лютеин + ЗеакÑантин",
- id: 96,
- group: "64",
- isDetailed: 1,
- unit: "мкг",
- round: 3,
- maxValueForFilter: 19697
- },
- 22: {
- name: "Витамин В1, тиамин",
- id: 22,
- nameShort: "Ð’1",
- group: "64",
- name2: "витамином B1",
- unit: "мг",
- round: 3,
- barColor: "#F3DC00",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 23.375
- },
- 23: {
- name: "Витамин В2, рибофлавин",
- id: 23,
- nameShort: "B2",
- group: "64",
- name2: "витамином B2",
- unit: "мг",
- round: 3,
- barColor: "#F3DC00",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 17.5
- },
- 57: {
- name: "Витамин В4, холин",
- id: 57,
- nameShort: "Холин",
- group: "64",
- name2: "холином",
- unit: "мг",
- round: 2,
- maxDose: 3500,
- barColor: "#F3DC00",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 2403.3
- },
- 24: {
- name: "Витамин Ð’5, пантотеноваÑ",
- id: 24,
- nameShort: "B5",
- group: "64",
- name2: "витамином B5",
- unit: "мг",
- round: 3,
- barColor: "#F3DC00",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 21.879
- },
- 25: {
- name: "Витамин Ð’6, пиридокÑин",
- id: 25,
- nameShort: "B6",
- group: "64",
- name2: "витамином B6",
- unit: "мг",
- round: 3,
- maxDose: 1e3,
- barColor: "#F3DC00",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 8
- },
- 26: {
- name: "Витамин В9, фолаты",
- id: 26,
- nameShort: "B9",
- group: "64",
- name2: "витамином B9",
- unit: "мкг",
- round: 3,
- maxDose: 1e4,
- barColor: "#F3DC00",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 5881
- },
- 56: {
- name: "Витамин В12, кобаламин",
- id: 56,
- nameShort: "B12",
- group: "64",
- name2: "витамином B12",
- unit: "мкг",
- round: 3,
- barColor: "#F3DC00",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 98.89
- },
- 123: {
- name: "Витамин B12, добавленный",
- id: 123,
- group: "64",
- isDetailed: 1,
- unit: "мкг",
- round: 3,
- maxValueForFilter: 10.3
- },
- 27: {
- name: "Витамин C, аÑкорбиноваÑ",
- id: 27,
- nameShort: "C",
- group: "64",
- name2: "витамином C",
- unit: "мг",
- round: 2,
- maxDose: 2e3,
- barColor: "#F3DC00",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 2400
- },
- 62: {
- name: "Витамин D, кальциферол",
- id: 62,
- nameShort: "D",
- group: "64",
- name2: "витамином D",
- unit: "мкг",
- round: 3,
- maxDose: 50,
- barColor: "#F3DC00",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 250
- },
- 193: {
- name: "Витамин D2, Ñргокальциферол",
- id: 193,
- group: "64",
- isDetailed: 1,
- unit: "мкг",
- round: 3,
- maxValueForFilter: 28.1
- },
- 194: {
- name: "Витамин D3, холекальциферол",
- id: 194,
- group: "64",
- isDetailed: 1,
- unit: "мкг",
- round: 3,
- maxValueForFilter: 27.4
- },
- 86: {
- name: "Витамин Е, альфа токоферол, ТÐ",
- id: 86,
- nameShort: "E",
- group: "64",
- name2: "витамином E",
- unit: "мг",
- round: 3,
- maxDose: 300,
- barColor: "#F3DC00",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 149.4
- },
- 97: {
- name: "бета Токоферол",
- id: 97,
- group: "64",
- isDetailed: 1,
- unit: "мг",
- round: 3,
- maxValueForFilter: 8.3
- },
- 98: {
- name: "гамма Токоферол",
- id: 98,
- group: "64",
- isDetailed: 1,
- unit: "мг",
- round: 3,
- maxValueForFilter: 100.88
- },
- 99: {
- name: "дельта Токоферол",
- id: 99,
- group: "64",
- isDetailed: 1,
- unit: "мг",
- round: 3,
- maxValueForFilter: 30.88
- },
- 122: {
- name: "Витамин E, добавленный",
- id: 122,
- group: "64",
- isDetailed: 1,
- unit: "мг",
- round: 3,
- maxValueForFilter: 36.9
- },
- 29: {
- name: "Витамин Ð, биотин",
- id: 29,
- nameShort: "H",
- group: "64",
- name2: "витамином H",
- unit: "мкг",
- round: 3,
- barColor: "#F3DC00",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 140
- },
- 68: {
- name: "Витамин К, филлохинон",
- id: 68,
- nameShort: "К",
- group: "64",
- name2: "витамином K",
- unit: "мкг",
- round: 1,
- barColor: "#F3DC00",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 1714.5
- },
- 195: {
- name: "Менахинон-4 (МК4)",
- id: 195,
- nameShort: "Витамин К2",
- group: "64",
- isDetailed: 1,
- unit: "мкг",
- round: 3,
- maxValueForFilter: 41.7
- },
- 196: {
- name: "Дигидрофиллохинон",
- id: 196,
- group: "64",
- isDetailed: 1,
- unit: "мкг",
- round: 3,
- maxValueForFilter: 164.9
- },
- 84: {
- name: "Витамин Ð Ð , ÐÐ",
- id: 84,
- nameShort: "PP",
- group: "64",
- name2: "витамином PP",
- unit: "мг",
- round: 4,
- maxDose: 60,
- barColor: "#F3DC00",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 127.5
- },
- 30: {
- name: "Ðиацин",
- id: 30,
- nameShort: "PP",
- group: "64",
- isDetailed: 1,
- unit: "мг",
- round: 3,
- maxValueForFilter: 82
- },
- 103: {
- name: "Бетаин",
- id: 103,
- group: "64",
- unit: "мг",
- round: 3,
- maxValueForFilter: 630.4
- },
- 32: {
- name: "Калий, K",
- id: 32,
- nameShort: "K",
- group: "65",
- name2: "калием",
- unit: "мг",
- round: 2,
- barColor: "#3498DB",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 16500
- },
- 33: {
- name: "Кальций, Ca",
- id: 33,
- nameShort: "Ca",
- group: "65",
- name2: "кальцием",
- unit: "мг",
- round: 2,
- maxDose: 2500,
- barColor: "#3498DB",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 7364
- },
- 34: {
- name: "Кремний, Si",
- id: 34,
- nameShort: "Si",
- group: "65",
- name2: "кремнием",
- unit: "мг",
- round: 3,
- barColor: "#9B59B6",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 1240
- },
- 35: {
- name: "Магний, Mg",
- id: 35,
- nameShort: "Mg",
- group: "65",
- name2: "магнием",
- unit: "мг",
- round: 2,
- barColor: "#3498DB",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 1416
- },
- 36: {
- name: "Ðатрий, Na",
- id: 36,
- nameShort: "Na",
- group: "65",
- name2: "натрием",
- unit: "мг",
- round: 2,
- maxDose: 2400,
- barColor: "#3498DB",
- inDg: !0,
- maxValueForFilter: 38946
- },
- 37: {
- name: "Сера, S",
- id: 37,
- nameShort: "S",
- group: "65",
- name2: "Ñерой",
- unit: "мг",
- round: 2,
- barColor: "#3498DB",
- maxValueForFilter: 1340
- },
- 38: {
- name: "ФоÑфор, Ph",
- id: 38,
- nameShort: "Ph",
- group: "65",
- name2: "фоÑфором",
- unit: "мг",
- round: 1,
- barColor: "#3498DB",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 9918
- },
- 39: {
- name: "Хлор, Cl",
- id: 39,
- nameShort: "Cl",
- group: "65",
- name2: "хлором",
- unit: "мг",
- round: 2,
- barColor: "#3498DB",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 60077
- },
- 40: {
- name: "Ðлюминий, Al",
- id: 40,
- group: "66",
- unit: "мкг",
- round: 1,
- maxValueForFilter: 1970
- },
- 41: {
- name: "Бор, B",
- id: 41,
- nameShort: "Бор",
- group: "66",
- name2: "бором",
- unit: "мкг",
- round: 1,
- maxDose: 6e3,
- barColor: "#9B59B6",
- maxValueForFilter: 900
- },
- 42: {
- name: "Ванадий, V",
- id: 42,
- nameShort: "V",
- group: "66",
- name2: "ванадием",
- unit: "мкг",
- round: 2,
- barColor: "#9B59B6",
- maxValueForFilter: 400
- },
- 31: {
- name: "Железо, Fe",
- id: 31,
- nameShort: "Fe",
- group: "66",
- name2: "железом",
- unit: "мг",
- round: 3,
- barColor: "#9B59B6",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 133
- },
- 43: {
- name: "Йод, I",
- id: 43,
- nameShort: "I",
- group: "66",
- name2: "йодом",
- unit: "мкг",
- round: 2,
- maxDose: 600,
- barColor: "#9B59B6",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 2500
- },
- 44: {
- name: "Кобальт, Co",
- id: 44,
- nameShort: "Co",
- group: "66",
- name2: "кобальтом",
- unit: "мкг",
- round: 3,
- barColor: "#9B59B6",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 1e4
- },
- 63: {
- name: "Литий, Li",
- id: 63,
- group: "66",
- name2: "литием",
- unit: "мкг",
- round: 3,
- maxValueForFilter: 138.7
- },
- 45: {
- name: "Марганец, Mn",
- id: 45,
- nameShort: "Mn",
- group: "66",
- name2: "марганцем",
- unit: "мг",
- round: 4,
- maxDose: 5,
- barColor: "#9B59B6",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 133
- },
- 46: {
- name: "Медь, Cu",
- id: 46,
- nameShort: "Cu",
- group: "66",
- name2: "медью",
- unit: "мкг",
- round: 2,
- maxDose: 5e3,
- barColor: "#9B59B6",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 15050
- },
- 47: {
- name: "Молибден, Mo",
- id: 47,
- nameShort: "Mo",
- group: "66",
- name2: "молибденом",
- unit: "мкг",
- round: 3,
- maxDose: 600,
- barColor: "#9B59B6",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 847.5
- },
- 48: {
- name: "Ðикель, Ni",
- id: 48,
- nameShort: "Ni",
- group: "66",
- name2: "никелем",
- unit: "мкг",
- round: 3,
- maxValueForFilter: 304
- },
- 60: {
- name: "Олово, Sn",
- id: 60,
- group: "66",
- unit: "мкг",
- round: 2,
- maxValueForFilter: 140.9
- },
- 59: {
- name: "Рубидий, Rb",
- id: 59,
- group: "66",
- unit: "мкг",
- round: 1,
- maxValueForFilter: 1089.5
- },
- 58: {
- name: "Селен, Se",
- id: 58,
- nameShort: "Se",
- group: "66",
- name2: "Ñеленом",
- unit: "мкг",
- round: 3,
- maxDose: 300,
- barColor: "#9B59B6",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 1917
- },
- 51: {
- name: "Стронций, Sr",
- id: 51,
- group: "66",
- unit: "мкг",
- round: 2,
- maxValueForFilter: 500
- },
- 49: {
- name: "Титан, Ti",
- id: 49,
- group: "66",
- unit: "мкг",
- round: 2,
- maxValueForFilter: 300
- },
- 50: {
- name: "Фтор, F",
- id: 50,
- nameShort: "F",
- group: "66",
- name2: "фтором",
- unit: "мкг",
- round: 2,
- maxDose: 1e4,
- barColor: "#9B59B6",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 1e4
- },
- 52: {
- name: "Хром, Cr",
- id: 52,
- nameShort: "Cr",
- group: "66",
- name2: "хромом",
- unit: "мкг",
- round: 2,
- maxDose: 600,
- barColor: "#9B59B6",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 107.9
- },
- 53: {
- name: "Цинк, Zn",
- id: 53,
- nameShort: "Zn",
- group: "66",
- name2: "цинком",
- unit: "мг",
- round: 4,
- maxDose: 25,
- barColor: "#9B59B6",
- inRating: !0,
- inDg: !0,
- maxValueForFilter: 90.95
- },
- 61: {
- name: "Цирконий, Zr",
- id: 61,
- group: "66",
- unit: "мкг",
- round: 2,
- maxValueForFilter: 61.4
- },
- 17: {
- name: "Крахмал и декÑтрины",
- id: 17,
- group: "211",
- unit: "г",
- round: 3,
- maxValueForFilter: 83.5
- },
- 16: {
- name: "Моно- и диÑахариды (Ñахара)",
- id: 16,
- group: "211",
- unit: "г",
- round: 1,
- maxValueForFilter: 99.9
- },
- 162: {
- name: "Галактоза",
- id: 162,
- group: "211",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: .87
- },
- 160: {
- name: "Глюкоза (декÑтроза)",
- id: 160,
- group: "211",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: 57
- },
- 158: {
- name: "Лактоза",
- id: 158,
- group: "211",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: 56
- },
- 159: {
- name: "Мальтоза",
- id: 159,
- group: "211",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: 8.11
- },
- 157: {
- name: "Сахароза",
- id: 157,
- group: "211",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: 99.8
- },
- 161: {
- name: "Фруктоза",
- id: 161,
- group: "211",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: 42.83
- },
- 209: {
- name: "Ðезаменимые аминокиÑлоты",
- id: 209,
- group: "201",
- unit: "г",
- round: 3,
- maxValueForFilter: 0
- },
- 114: {
- name: "Ðргинин*",
- id: 114,
- group: "201",
- unit: "г",
- round: 3,
- maxValueForFilter: 1832
- },
- 113: {
- name: "Валин",
- id: 113,
- group: "201",
- unit: "г",
- round: 3,
- maxValueForFilter: 6.17
- },
- 115: {
- name: "ГиÑтидин*",
- id: 115,
- group: "201",
- unit: "г",
- round: 3,
- maxValueForFilter: 2.999
- },
- 106: {
- name: "Изолейцин",
- id: 106,
- group: "201",
- unit: "г",
- round: 3,
- maxValueForFilter: 5.023
- },
- 107: {
- name: "Лейцин",
- id: 107,
- group: "201",
- unit: "г",
- round: 3,
- maxValueForFilter: 7.2
- },
- 108: {
- name: "Лизин",
- id: 108,
- group: "201",
- unit: "г",
- round: 3,
- maxValueForFilter: 6.69
- },
- 109: {
- name: "Метионин",
- id: 109,
- group: "201",
- unit: "г",
- round: 3,
- maxValueForFilter: 3.204
- },
- 207: {
- name: "Метионин + ЦиÑтеин",
- id: 207,
- group: "201",
- unit: "г",
- round: 3,
- maxValueForFilter: 5.13
- },
- 105: {
- name: "Треонин",
- id: 105,
- group: "201",
- unit: "г",
- round: 3,
- maxValueForFilter: 3.685
- },
- 104: {
- name: "Триптофан",
- id: 104,
- group: "201",
- unit: "г",
- round: 3,
- maxValueForFilter: 1.27
- },
- 111: {
- name: "Фенилаланин",
- id: 111,
- group: "201",
- unit: "г",
- round: 3,
- maxValueForFilter: 5.181
- },
- 208: {
- name: "Фенилаланин+Тирозин",
- id: 208,
- group: "201",
- unit: "г",
- round: 3,
- maxValueForFilter: 8.26
- },
- 210: {
- name: "Заменимые аминокиÑлоты",
- id: 210,
- group: "205",
- unit: "г",
- round: 3,
- maxValueForFilter: 0
- },
- 116: {
- name: "Ðланин",
- id: 116,
- group: "205",
- unit: "г",
- round: 3,
- maxValueForFilter: 8.009
- },
- 117: {
- name: "ÐÑÐ¿Ð°Ñ€Ð°Ð³Ð¸Ð½Ð¾Ð²Ð°Ñ ÐºÐ¸Ñлота",
- id: 117,
- group: "205",
- unit: "г",
- round: 3,
- maxValueForFilter: 1810
- },
- 174: {
- name: "ГидрокÑипролин",
- id: 174,
- group: "205",
- unit: "г",
- round: 3,
- maxValueForFilter: .89
- },
- 119: {
- name: "Глицин",
- id: 119,
- group: "205",
- unit: "г",
- round: 3,
- maxValueForFilter: 20.23
- },
- 118: {
- name: "Ð“Ð»ÑƒÑ‚Ð°Ð¼Ð¸Ð½Ð¾Ð²Ð°Ñ ÐºÐ¸Ñлота",
- id: 118,
- group: "205",
- unit: "г",
- round: 3,
- maxValueForFilter: 17.452
- },
- 120: {
- name: "Пролин",
- id: 120,
- group: "205",
- unit: "г",
- round: 3,
- maxValueForFilter: 14.64
- },
- 121: {
- name: "Серин",
- id: 121,
- group: "205",
- unit: "г",
- round: 3,
- maxValueForFilter: 6.29
- },
- 112: {
- name: "Тирозин",
- id: 112,
- group: "205",
- unit: "г",
- round: 3,
- maxValueForFilter: 3.309
- },
- 110: {
- name: "ЦиÑтеин",
- id: 110,
- group: "205",
- unit: "г",
- round: 3,
- maxValueForFilter: 2.102
- },
- 55: {
- name: "ХолеÑтерин",
- id: 55,
- group: "204",
- unit: "мг",
- round: 2,
- maxDose: 300,
- maxValueForFilter: 3100
- },
- 177: {
- name: "ФитоÑтеролы",
- id: 177,
- group: "204",
- unit: "мг",
- round: 3,
- maxValueForFilter: 1190
- },
- 145: {
- name: "КампеÑтерол",
- id: 145,
- group: "204",
- isDetailed: 1,
- unit: "мг",
- round: 3,
- maxValueForFilter: 241
- },
- 144: {
- name: "СтигмаÑтерол",
- id: 144,
- group: "204",
- isDetailed: 1,
- unit: "мг",
- round: 3,
- maxValueForFilter: 59
- },
- 146: {
- name: "бета СитоÑтерол",
- id: 146,
- group: "204",
- isDetailed: 1,
- unit: "мг",
- round: 3,
- maxValueForFilter: 621
- },
- 178: {
- name: "ТранÑжиры",
- id: 178,
- group: "203",
- unit: "г",
- round: 3,
- maxValueForFilter: 42.851
- },
- 179: {
- name: "мононенаÑыщенные транÑжиры",
- id: 179,
- group: "203",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: 40.118
- },
- 184: {
- name: "полиненаÑыщенные транÑжиры",
- id: 184,
- group: "203",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: 4.524
- },
- 212: {
- name: "Омега-3 жирные киÑлоты",
- id: 212,
- group: "203",
- unit: "г",
- round: 1,
- inRating: !0,
- maxValueForFilter: 53.449
- },
- 213: {
- name: "Омега-6 жирные киÑлоты",
- id: 213,
- group: "203",
- unit: "г",
- round: 1,
- inRating: !0,
- maxValueForFilter: 74.623
- },
- 229: {
- name: "Омега-9 жирные киÑлоты",
- id: 229,
- group: "203",
- round: 3,
- maxValueForFilter: 0
- },
- 83: {
- name: "ÐаÑыщеные жирные киÑлоты",
- id: 83,
- group: "198",
- unit: "г",
- round: 1,
- maxValueForFilter: 95.6
- },
- 124: {
- name: "4:0 МаÑлÑнаÑ",
- id: 124,
- group: "198",
- unit: "г",
- round: 3,
- maxValueForFilter: 3.74
- },
- 125: {
- name: "6:0 КапроноваÑ",
- id: 125,
- group: "198",
- unit: "г",
- round: 3,
- maxValueForFilter: 2.007
- },
- 126: {
- name: "8:0 КаприловаÑ",
- id: 126,
- group: "198",
- unit: "г",
- round: 3,
- maxValueForFilter: 10.9
- },
- 127: {
- name: "10:0 КаприноваÑ",
- id: 127,
- group: "198",
- unit: "г",
- round: 3,
- maxValueForFilter: 6
- },
- 128: {
- name: "12:0 ЛауриноваÑ",
- id: 128,
- group: "198",
- unit: "г",
- round: 3,
- maxValueForFilter: 53.428
- },
- 176: {
- name: "13:0 ТридекановаÑ",
- id: 176,
- group: "198",
- unit: "г",
- round: 3,
- maxValueForFilter: .032
- },
- 129: {
- name: "14:0 МириÑтиноваÑ",
- id: 129,
- group: "198",
- unit: "г",
- round: 1,
- maxValueForFilter: 82.6
- },
- 164: {
- name: "15:0 ПентадекановаÑ",
- id: 164,
- group: "198",
- unit: "г",
- round: 3,
- maxValueForFilter: .8
- },
- 130: {
- name: "16:0 ПальмитиноваÑ",
- id: 130,
- group: "198",
- unit: "г",
- round: 3,
- maxValueForFilter: 43.5
- },
- 149: {
- name: "17:0 МаргариноваÑ",
- id: 149,
- group: "198",
- unit: "г",
- round: 3,
- maxValueForFilter: 1.4
- },
- 131: {
- name: "18:0 СтеариноваÑ",
- id: 131,
- group: "198",
- unit: "г",
- round: 3,
- maxValueForFilter: 38.8
- },
- 132: {
- name: "20:0 ÐрахиноваÑ",
- id: 132,
- group: "198",
- unit: "г",
- round: 3,
- maxValueForFilter: 1.944
- },
- 165: {
- name: "22:0 БегеноваÑ",
- id: 165,
- group: "198",
- unit: "г",
- round: 3,
- maxValueForFilter: 2.8
- },
- 166: {
- name: "24:0 ЛигноцериноваÑ",
- id: 166,
- group: "198",
- unit: "г",
- round: 3,
- maxValueForFilter: .92
- },
- 147: {
- name: "МононенаÑыщенные жирные киÑлоты",
- id: 147,
- group: "199",
- unit: "г",
- round: 3,
- maxValueForFilter: 83.689
- },
- 163: {
- name: "14:1 МириÑтолеиноваÑ",
- id: 163,
- group: "199",
- unit: "г",
- round: 3,
- maxValueForFilter: 1.7
- },
- 173: {
- name: "15:1 ПентадеценоваÑ",
- id: 173,
- group: "199",
- unit: "г",
- round: 3,
- maxValueForFilter: 2.169
- },
- 138: {
- name: "16:1 ПальмитолеиноваÑ",
- id: 138,
- group: "199",
- unit: "г",
- round: 3,
- maxValueForFilter: 20.33
- },
- 153: {
- name: "16:1 циÑ",
- id: 153,
- group: "199",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: 1.831
- },
- 180: {
- name: "16:1 транÑ",
- id: 180,
- group: "199",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: .106
- },
- 169: {
- name: "17:1 ГептадеценоваÑ",
- id: 169,
- group: "199",
- unit: "г",
- round: 3,
- maxValueForFilter: 1.085
- },
- 133: {
- name: "18:1 ÐžÐ»ÐµÐ¸Ð½Ð¾Ð²Ð°Ñ (омега-9)",
- id: 133,
- group: "199",
- unit: "г",
- round: 3,
- maxValueForFilter: 82.63
- },
- 154: {
- name: "18:1 циÑ",
- id: 154,
- group: "199",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: 74.742
- },
- 150: {
- name: "18:1 транÑ",
- id: 150,
- group: "199",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: 40.118
- },
- 197: {
- name: "18:1-11t (18:1t n-7)",
- id: 197,
- group: "199",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: .596
- },
- 140: {
- name: "20:1 Ð“Ð°Ð´Ð¾Ð»ÐµÐ¸Ð½Ð¾Ð²Ð°Ñ (омега-9)",
- id: 140,
- group: "199",
- unit: "г",
- round: 3,
- maxValueForFilter: 15.02
- },
- 142: {
- name: "22:1 ÐÑ€ÑƒÐºÐ¾Ð²Ð°Ñ (омега-9)",
- id: 142,
- group: "199",
- unit: "г",
- round: 3,
- maxValueForFilter: 41.175
- },
- 183: {
- name: "22:1 циÑ",
- id: 183,
- group: "199",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: 1.263
- },
- 181: {
- name: "22:1 транÑ",
- id: 181,
- group: "199",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: .014
- },
- 167: {
- name: "24:1 ÐервоноваÑ, Ñ†Ð¸Ñ (омега-9) ",
- id: 167,
- group: "199",
- unit: "г",
- round: 3,
- maxValueForFilter: .644
- },
- 148: {
- name: "ПолиненаÑыщенные жирные киÑлоты",
- id: 148,
- group: "200",
- unit: "г",
- round: 3,
- maxValueForFilter: 79
- },
- 134: {
- name: "18:2 ЛинолеваÑ",
- id: 134,
- group: "200",
- unit: "г",
- round: 3,
- maxValueForFilter: 74.623
- },
- 182: {
- name: "18:2 транÑ-изомер, не определён",
- id: 182,
- group: "200",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: .811
- },
- 151: {
- name: "18:2 Ñмешанные изомеры",
- id: 151,
- group: "200",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: 4.029
- },
- 155: {
- name: "18:2 Омега-6, циÑ, циÑ",
- id: 155,
- group: "200",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: 56.601
- },
- 187: {
- name: "18:2 транÑ, транÑ",
- id: 187,
- group: "200",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: .842
- },
- 152: {
- name: "18:2 ÐšÐ¾Ð½ÑŠÑŽÐ³Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð½Ð°Ñ Ð»Ð¸Ð½Ð¾Ð»ÐµÐ²Ð°Ñ ÐºÐ¸Ñлота",
- id: 152,
- group: "200",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: .897
- },
- 135: {
- name: "18:3 ЛиноленоваÑ",
- id: 135,
- group: "200",
- unit: "г",
- round: 3,
- maxValueForFilter: 53.368
- },
- 156: {
- name: "18:3 Омега-3, альфа-линоленоваÑ",
- id: 156,
- group: "200",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: 53.368
- },
- 175: {
- name: "18:3 Омега-6, гамма-линоленоваÑ",
- id: 175,
- group: "200",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: .59
- },
- 188: {
- name: "18:3 Ñ‚Ñ€Ð°Ð½Ñ (прочие изомеры)",
- id: 188,
- group: "200",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: 1.446
- },
- 139: {
- name: "18:4 СтиоридоваÑ",
- id: 139,
- group: "200",
- unit: "г",
- round: 3,
- maxValueForFilter: 3.025
- },
- 168: {
- name: "20:2 ÐйкозадиеноваÑ, Омега-6, циÑ, циÑ",
- id: 168,
- group: "200",
- unit: "г",
- round: 3,
- maxValueForFilter: .445
- },
- 170: {
- name: "20:3 ÐйкозатриеноваÑ",
- id: 170,
- group: "200",
- unit: "г",
- round: 3,
- maxValueForFilter: .353
- },
- 185: {
- name: "20:3 Омега-3",
- id: 185,
- group: "200",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: .081
- },
- 186: {
- name: "20:3 Омега-6",
- id: 186,
- group: "200",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: .056
- },
- 136: {
- name: "20:4 ÐрахидоноваÑ",
- id: 136,
- group: "200",
- unit: "г",
- round: 3,
- maxValueForFilter: 1.756
- },
- 190: {
- name: "20:4 Омега-6",
- id: 190,
- group: "200",
- isDetailed: 1,
- unit: "г",
- round: 3,
- maxValueForFilter: .67
- },
- 141: {
- name: "20:5 ÐÐ¹ÐºÐ¾Ð·Ð°Ð¿ÐµÐ½Ñ‚Ð°ÐµÐ½Ð¾Ð²Ð°Ñ (ÐПК), Омега-3 ",
- id: 141,
- group: "200",
- unit: "г",
- round: 3,
- maxValueForFilter: 13.168
- },
- 171: {
- name: "21:5",
- id: 171,
- group: "200",
- unit: "г",
- round: 3,
- maxValueForFilter: .28
- },
- 172: {
- name: "22:4 ДокозатетраеноваÑ",
- id: 172,
- group: "200",
- unit: "г",
- round: 3,
- maxValueForFilter: .18
- },
- 143: {
- name: "22:5 Ð”Ð¾ÐºÐ¾Ð·Ð°Ð¿ÐµÐ½Ñ‚Ð°ÐµÐ½Ð¾Ð²Ð°Ñ (ДПК), Омега-3",
- id: 143,
- group: "200",
- unit: "г",
- round: 3,
- maxValueForFilter: 4.915
- },
- 137: {
- name: "22:6 ДокозагекÑÐ°ÐµÐ½Ð¾Ð²Ð°Ñ (ДГК), Омега-3 ",
- id: 137,
- group: "200",
- unit: "г",
- round: 3,
- maxValueForFilter: 18.232
- },
- 89: {
- name: "Кофеин",
- id: 89,
- group: "206",
- unit: "мг",
- round: 3,
- maxValueForFilter: 3680
- },
- 90: {
- name: "Теобромин",
- id: 90,
- group: "206",
- unit: "мг",
- round: 3,
- maxValueForFilter: 2634
- },
- order: [11, 13, 14, 15, 87, 19, 18, 12, 20, 85, 21, 93, 74, 94, 95, 96, 22, 23, 57, 24, 25, 26, 56, 123, 27, 62, 193, 194, 86, 97, 98, 99, 122, 29, 68, 195, 196, 84, 30, 103, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 31, 43, 44, 63, 45, 46, 47, 48, 60, 59, 58, 51, 49, 50, 52, 53, 61, 17, 16, 162, 160, 158, 159, 157, 161, 209, 114, 113, 115, 106, 107, 108, 109, 207, 105, 104, 111, 208, 210, 116, 117, 174, 119, 118, 120, 121, 112, 110, 55, 177, 145, 144, 146, 178, 179, 184, 212, 213, 229, 83, 124, 125, 126, 127, 128, 176, 129, 164, 130, 149, 131, 132, 165, 166, 147, 163, 173, 138, 153, 180, 169, 133, 154, 150, 197, 140, 142, 183, 181, 167, 148, 134, 182, 151, 155, 187, 152, 135, 156, 175, 188, 139, 168, 170, 185, 186, 136, 190, 141, 171, 172, 143, 137, 89, 90],
- groups: [{
- name: "Витамины",
- id: 64,
- parent_id: null,
- level: 0
- }, {
- name: "МакроÑлементы",
- id: 65,
- parent_id: null,
- level: 0
- }, {
- name: "МикроÑлементы",
- id: 66,
- parent_id: null,
- level: 0
- }, {
- name: "ÐŸÐ¸Ñ‰ÐµÐ²Ð°Ñ Ñ†ÐµÐ½Ð½Ð¾ÑÑ‚ÑŒ",
- id: 67,
- parent_id: null,
- level: 0
- }, {
- name: "УÑвоÑемые углеводы",
- id: 211,
- parent_id: null,
- level: 0
- }, {
- name: "ÐминокиÑлоты",
- id: 227,
- parent_id: null,
- level: 0
- }, {
- name: "Липиды",
- id: 228,
- parent_id: null,
- level: 0
- }, {
- name: "Прочие вещеÑтва",
- id: 206,
- parent_id: null,
- level: 0
- }, {
- name: "Ðе иÑпользуемые",
- id: 88,
- parent_id: null,
- level: 0
- }, {
- name: "Ðезаменимые аминокиÑлоты",
- id: 201,
- parent_id: 227,
- level: 1
- }, {
- name: "Заменимые аминокиÑлоты",
- id: 205,
- parent_id: 227,
- level: 1
- }, {
- name: "Стеролы (Ñтерины)",
- id: 204,
- parent_id: 228,
- level: 1
- }, {
- name: "Жирные киÑлоты",
- id: 203,
- parent_id: 228,
- level: 1
- }, {
- name: "ÐаÑыщенные жирные киÑлоты",
- id: 198,
- parent_id: 203,
- level: 2
- }, {
- name: "МононенаÑыщенные жирные киÑлоты",
- id: 199,
- parent_id: 203,
- level: 2
- }, {
- name: "ПолиненаÑыщенные жирные киÑлоты",
- id: 200,
- parent_id: 203,
- level: 2
- }, {
- name: "ОрганичеÑкие киÑлоты",
- id: 216,
- parent_id: 88,
- level: 1
- }, {
- name: "ПолиÑахариды",
- id: 220,
- parent_id: 88,
- level: 1
- }, {
- name: "Моно- и диÑахариды",
- id: 202,
- parent_id: 88,
- level: 1
- }]
- }
- }, e
- }();
- t.default = a
- }), define("modules/Nutrients/lib/MethodOfCalculationEnergy_Users", ["require", "exports", "tslib", "lodash", "modules/Constant/lib/index", "./MethodOfCalculationEnergy_Mifflina", "./UserEnergySettings", "./AMethodOfCalculationEnergy"], function(e, t, r, o, n, i, u, a) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var m = function(e) {
- function t(t, r) {
- void 0 === r && (r = !1);
- var a = e.call(this, t, r) || this,
- m = new u.default(t.user_calorie_norm);
- a._metabolism = m.metabolism, 0 === a._metabolism && (1 === t.sex ? a._metabolism = 10 * t.weight + 6.25 * t.height - 5 * t.age + 5 : a._metabolism = 10 * t.weight + 6.25 * t.height - 5 * t.age - 161, a._metabolism = o.round(a._metabolism, 0));
- var s = new i.default(t);
- a._outcomeMain = s.outcomeMain(), a._metabolism = s.metabolism();
- s.calorieCorridor();
- return a._norms = s.getNorms(), a._incomeRecommend = s.incomeRecommend(), a._incomeMin = s.metabolism(), a._outcomeSport = t.outcomeSport, 0 !== m.metabolism && (a._metabolism = m.metabolism, a._incomeMin = a._metabolism), 0 !== m.outcomeMain && (a._outcomeMain = m.outcomeMain), m.incomeRecommend.isSetNorm() && (a._incomeRecommend = m.incomeRecommend, a._norms[n.cCALORIE] = m.incomeRecommend), m.protein.isSetNorm() && (a._norms[n.cPROTEIN] = m.protein), m.fat.isSetNorm() && (a._norms[n.cFAT] = m.fat), m.carb.isSetNorm() && (a._norms[n.cCARBOHYDRATE] = m.carb), a._outcomeSport > 0 && 0 == a.withoutSport && (a._incomeRecommend.addExtraNorm(a._outcomeSport), a._norms[n.cCARBOHYDRATE].addExtraNorm(o.round(a._outcomeSport / 4))), a.fillFats(), a
- }
- return r.__extends(t, e), t
- }(a.default);
- t.default = m
- }), define("modules/Nutrients/lib/MethodOfCalculationEnergy", ["require", "exports", "lodash", "modules/Constant/lib/index"], function(e, t, r, o) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var n = {
- _list: [{
- id: o.cMETHOD_OF_CALCULATION_ENERGY_MIFFLINA,
- name: "СбаланÑированное питание"
- }, {
- id: o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT,
- name: "СбаланÑированное похудение"
- }, {
- id: o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_WITHOUT_SPORT,
- name: "Похудение (без учета дневника тренировок)"
- }, {
- id: o.cMETHOD_OF_CALCULATION_ENERGY_USER,
- name: "Ðормы КБЖУ уÑтановлены пользователем"
- }, {
- id: o.cMETHOD_OF_CALCULATION_ENERGY_USER_WITHOUT_SPORT,
- name: "Ðормы КБЖУ уÑтановлены пользователем (без тренировок)"
- }, {
- id: o.cMETHOD_OF_CALCULATION_ENERGY_GAIN_WEIGHT,
- name: "Ðабор веÑа"
- }, {
- id: o.cMETHOD_OF_CALCULATION_ENERGY_RUSSIAN_MR,
- name: "МетодичеÑкие рекомендации МР2.3.1.2432"
- }, {
- id: o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_PROTEIN,
- name: "Ð’Ñ‹ÑÐ¾ÐºÐ¾Ð±ÐµÐ»ÐºÐ¾Ð²Ð°Ñ Ð´Ð¸ÐµÑ‚Ð°"
- }, {
- id: o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_LOW_FAT,
- name: "ÐÐ¸Ð·ÐºÐ¾Ð¶Ð¸Ñ€Ð¾Ð²Ð°Ñ Ð´Ð¸ÐµÑ‚Ð°"
- }, {
- id: o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_LOW_CARB,
- name: "ÐÐ¸Ð·ÐºÐ¾ÑƒÐ³Ð»ÐµÐ²Ð¾Ð´Ð½Ð°Ñ Ð´Ð¸ÐµÑ‚Ð°"
- }, {
- id: o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_KETO,
- name: "Ð£Ð¼ÐµÑ€ÐµÐ½Ð½Ð°Ñ ÐºÐµÑ‚Ð¾-диета"
- }, {
- id: o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_OLD,
- name: "Методика Ð¿Ð¾Ñ…ÑƒÐ´ÐµÐ½Ð¸Ñ Ð´Ð¾ 09.04.2019"
- }],
- getList: function() {
- return this._list
- },
- getState: function(e) {
- var t = [],
- n = r.get(e, "withoutUser", !1);
- return 1 == r.get(e, "age18", !1) ? (t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_RUSSIAN_MR)), 0 == n && (t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_USER)), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_USER_WITHOUT_SPORT)))) : 1 == r.get(e, "hasPregnancy", !1) ? 1 == r.get(e, "loseWeight", !1) ? (0 == n && (t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_USER)), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_USER_WITHOUT_SPORT))), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_MIFFLINA)), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_RUSSIAN_MR))) : (t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_MIFFLINA)), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_RUSSIAN_MR)), 0 == n && (t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_USER)), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_USER_WITHOUT_SPORT)))) : (1 == r.get(e, "gainWeight", !1) ? t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_GAIN_WEIGHT)) : 1 == r.get(e, "loseWeight", !1) ? (t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT)), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_KETO)), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_LOW_CARB)), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_LOW_FAT)), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_PROTEIN)), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_OLD))) : (t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_MIFFLINA)), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_RUSSIAN_MR))), 0 == n && (t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_USER)), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_USER_WITHOUT_SPORT)))), r.get(e, "addId") && t.push(r.find(this._list, "id", r.get(e, "addId"))), t.map(function(e) {
- return {
- id: e.id,
- value: e.id,
- name: e.name,
- label: e.name
- }
- })
- },
- byId: function(e) {
- var t = r.find(this._list, "id", Number(e));
- return void 0 === t ? r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_MIFFLINA) : t
- },
- getMethodOfCalculationEnergyId: function(e, t) {
- var n = o.cMETHOD_OF_CALCULATION_ENERGY_MIFFLINA;
- e === o.PURPOSE_LOSE_WEIGHT ? n = o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT : e === o.PURPOSE_GAIN_WEIGHT ? n = o.cMETHOD_OF_CALCULATION_ENERGY_GAIN_WEIGHT : e === o.PURPOSE_SAVE_WEIGHT && (n = o.cMETHOD_OF_CALCULATION_ENERGY_MIFFLINA);
- var i = this.getState(t);
- return i && void 0 === r.find(i, "id", n) && i.length > 0 && (n = i[0].id), n
- }
- };
- t.default = n
- }), define("modules/Nutrients/lib/Pregnancy", ["require", "exports", "lodash", "modules/Constant/lib/index"], function(e, t, r, o) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var n = {
- _list: [{
- id: o.PREGNANCY_NONE,
- name: "Ðет"
- }, {
- id: o.PREGNANCY_FIRST_PART,
- name: "БеременноÑÑ‚ÑŒ 1-Ð°Ñ Ð¿Ð¾Ð»Ð¾Ð²Ð¸Ð½Ð°"
- }, {
- id: o.PREGNANCY_SECOND_PART,
- name: "БеременноÑÑ‚ÑŒ 2-Ð°Ñ Ð¿Ð¾Ð»Ð¾Ð²Ð¸Ð½Ð°"
- }, {
- id: o.PREGNANCY_FEED_1m_6m,
- name: "Грудное вÑкармливание (1-6 меÑÑцев)"
- }, {
- id: o.PREGNANCY_FEED_7m_12m,
- name: "Грудное вÑкармливание (7-12 меÑÑцев)"
- }],
- getList: function() {
- return this._list
- },
- getState: function() {
- return this.getList().map(function(e) {
- return {
- id: e.id,
- value: e.id,
- name: e.name,
- label: e.name
- }
- })
- },
- byId: function(e) {
- var t = r.find(this._list, "id", Number(e));
- return void 0 === t ? {
- id: o.PREGNANCY_NONE,
- name: "Ðет"
- } : t
- }
- };
- t.default = n
- }), define("modules/Nutrients/lib/Sex", ["require", "exports", "lodash", "modules/Constant/lib/index"], function(e, t, r, o) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- });
- var n = {
- _list: [{
- id: o.cSEX_MALE,
- name: "МужÑкой"
- }, {
- id: o.cSEX_FEMALE,
- name: "ЖенÑкий"
- }],
- getList: function() {
- return this._list
- },
- getState: function() {
- return this.getList().map(function(e) {
- return {
- id: e.id,
- value: e.id,
- name: e.name,
- label: e.name
- }
- })
- },
- byId: function(e) {
- var t = r.find(this._list, "id", Number(e));
- return void 0 === t ? {
- id: o.cSEX_FEMALE,
- name: "ЖенÑкий"
- } : t
- }
- };
- t.default = n
- }), define("modules/Nutrients/lib/Nutrients", ["require", "exports", "./NutrientsList", "./IntensityOfLabour", "./NutrientsNormItem", "./MethodOfCalculationEnergy_Gain_Weight", "./ParamsForCalculateNormsOfNutrients", "./MethodOfCalculationEnergy_Lose_Weight", "./MethodOfCalculationEnergy_Mifflina", "./MethodOfCalculationEnergy_RussianMR", "./MethodOfCalculationEnergy_Users", "./MethodOfCalculationEnergy_UsersV2", "./MethodOfCalculationEnergy_Lose_WeightProtein", "./MethodOfCalculationEnergy_Lose_WeightLowFat", "./MethodOfCalculationEnergy_Lose_WeightLowCarb", "./MethodOfCalculationEnergy_Lose_WeightKeto", "./NutrientsNorm", "./UserEnergySettings", "modules/Constant/lib/index", "./NutrientsHelper", "./MethodOfCalculationEnergy", "./Pregnancy", "./Sex"], function(e, t, r, o, n, i, u, a, m, s, l, d, _, c, h, f, p, g, F, E, O, N, R) {
- "use strict";
- Object.defineProperty(t, "__esModule", {
- value: !0
- }), t.NutrientsList = r.default, t.IntensityOfLabour = o.default, t.NutrientsNormItem = n.default, t.MethodOfCalculationEnergy_Gain_Weight = i.default, t.ParamsForCalculateNormsOfNutrients = u.default, t.MethodOfCalculationEnergy_Lose_Weight = a.default, t.MethodOfCalculationEnergy_Mifflina = m.default, t.MethodOfCalculationEnergy_RussianMR = s.default, t.MethodOfCalculationEnergy_Users = l.default, t.MethodOfCalculationEnergy_UsersV2 = d.default, t.MethodOfCalculationEnergy_Lose_WeightProtein = _.default, t.MethodOfCalculationEnergy_Lose_WeightLowFat = c.default, t.MethodOfCalculationEnergy_Lose_WeightLowCarb = h.default, t.MethodOfCalculationEnergy_Lose_WeightKeto = f.default, t.NutrientsNorm = p.default, t.UserEnergySettings = g.default, t.Constant = F, t.NutrientsHelper = E.default, t.MethodOfCalculationEnergy = O.default, t.Pregnancy = N.default, t.Sex = R.default
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement