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OC,UAAUC,eAAeC,KAAK9H,EAAQ0H,KAE/CF,EAAOE,GAAY1H,EAAO0H,IAG9B,OAAOF,CACT,C","sources":["webpack://Rohto/./node_modules/date-fns/esm/formatDistanceStrict/index.js","webpack://Rohto/./node_modules/date-fns/esm/compareAsc/index.js","webpack://Rohto/./node_modules/date-fns/esm/_lib/cloneObject/index.js","webpack://Rohto/./node_modules/date-fns/esm/formatDistanceToNowStrict/index.js","webpack://Rohto/./src/pages/Home/api/SurveySkinApi.ts","webpack://Rohto/./src/pages/Home/components/HomeLogged.tsx","webpack://Rohto/./src/pages/Home/views/HomePage.tsx","webpack://Rohto/./src/pages/User/api/AnalysisApi.ts","webpack://Rohto/./node_modules/date-fns/esm/_lib/assign/index.js"],"sourcesContent":["import { getDefaultOptions } from \"../_lib/defaultOptions/index.js\";\nimport getTimezoneOffsetInMilliseconds from \"../_lib/getTimezoneOffsetInMilliseconds/index.js\";\nimport compareAsc from \"../compareAsc/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport cloneObject from \"../_lib/cloneObject/index.js\";\nimport assign from \"../_lib/assign/index.js\";\nimport defaultLocale from \"../_lib/defaultLocale/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nvar MILLISECONDS_IN_MINUTE = 1000 * 60;\nvar MINUTES_IN_DAY = 60 * 24;\nvar MINUTES_IN_MONTH = MINUTES_IN_DAY * 30;\nvar MINUTES_IN_YEAR = MINUTES_IN_DAY * 365;\n\n/**\n * @name formatDistanceStrict\n * @category Common Helpers\n * @summary Return the distance between the given dates in words.\n *\n * @description\n * Return the distance between the given dates in words, using strict units.\n * This is like `formatDistance`, but does not use helpers like 'almost', 'over',\n * 'less than' and the like.\n *\n * | Distance between dates | Result |\n * |------------------------|---------------------|\n * | 0 ... 59 secs | [0..59] seconds |\n * | 1 ... 59 mins | [1..59] minutes |\n * | 1 ... 23 hrs | [1..23] hours |\n * | 1 ... 29 days | [1..29] days |\n * | 1 ... 11 months | [1..11] months |\n * | 1 ... N years | [1..N] years |\n *\n * @param {Date|Number} date - the date\n * @param {Date|Number} baseDate - the date to compare with\n * @param {Object} [options] - an object with options.\n * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first\n * @param {'second'|'minute'|'hour'|'day'|'month'|'year'} [options.unit] - if specified, will force a unit\n * @param {'floor'|'ceil'|'round'} [options.roundingMethod='round'] - which way to round partial units\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @returns {String} the distance in words\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `baseDate` must not be Invalid Date\n * @throws {RangeError} `options.roundingMethod` must be 'floor', 'ceil' or 'round'\n * @throws {RangeError} `options.unit` must be 'second', 'minute', 'hour', 'day', 'month' or 'year'\n * @throws {RangeError} `options.locale` must contain `formatDistance` property\n *\n * @example\n * // What is the distance between 2 July 2014 and 1 January 2015?\n * const result = formatDistanceStrict(new Date(2014, 6, 2), new Date(2015, 0, 2))\n * //=> '6 months'\n *\n * @example\n * // What is the distance between 1 January 2015 00:00:15\n * // and 1 January 2015 00:00:00?\n * const result = formatDistanceStrict(\n * new Date(2015, 0, 1, 0, 0, 15),\n * new Date(2015, 0, 1, 0, 0, 0)\n * )\n * //=> '15 seconds'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, with a suffix?\n * const result = formatDistanceStrict(new Date(2015, 0, 1), new Date(2016, 0, 1), {\n * addSuffix: true\n * })\n * //=> '1 year ago'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, in minutes?\n * const result = formatDistanceStrict(new Date(2016, 0, 1), new Date(2015, 0, 1), {\n * unit: 'minute'\n * })\n * //=> '525600 minutes'\n *\n * @example\n * // What is the distance from 1 January 2015\n * // to 28 January 2015, in months, rounded up?\n * const result = formatDistanceStrict(new Date(2015, 0, 28), new Date(2015, 0, 1), {\n * unit: 'month',\n * roundingMethod: 'ceil'\n * })\n * //=> '1 month'\n *\n * @example\n * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), {\n * locale: eoLocale\n * })\n * //=> '1 jaro'\n */\n\nexport default function formatDistanceStrict(dirtyDate, dirtyBaseDate, options) {\n var _ref, _options$locale, _options$roundingMeth;\n requiredArgs(2, arguments);\n var defaultOptions = getDefaultOptions();\n var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale;\n if (!locale.formatDistance) {\n throw new RangeError('locale must contain localize.formatDistance property');\n }\n var comparison = compareAsc(dirtyDate, dirtyBaseDate);\n if (isNaN(comparison)) {\n throw new RangeError('Invalid time value');\n }\n var localizeOptions = assign(cloneObject(options), {\n addSuffix: Boolean(options === null || options === void 0 ? void 0 : options.addSuffix),\n comparison: comparison\n });\n var dateLeft;\n var dateRight;\n if (comparison > 0) {\n dateLeft = toDate(dirtyBaseDate);\n dateRight = toDate(dirtyDate);\n } else {\n dateLeft = toDate(dirtyDate);\n dateRight = toDate(dirtyBaseDate);\n }\n var roundingMethod = String((_options$roundingMeth = options === null || options === void 0 ? void 0 : options.roundingMethod) !== null && _options$roundingMeth !== void 0 ? _options$roundingMeth : 'round');\n var roundingMethodFn;\n if (roundingMethod === 'floor') {\n roundingMethodFn = Math.floor;\n } else if (roundingMethod === 'ceil') {\n roundingMethodFn = Math.ceil;\n } else if (roundingMethod === 'round') {\n roundingMethodFn = Math.round;\n } else {\n throw new RangeError(\"roundingMethod must be 'floor', 'ceil' or 'round'\");\n }\n var milliseconds = dateRight.getTime() - dateLeft.getTime();\n var minutes = milliseconds / MILLISECONDS_IN_MINUTE;\n var timezoneOffset = getTimezoneOffsetInMilliseconds(dateRight) - getTimezoneOffsetInMilliseconds(dateLeft);\n\n // Use DST-normalized difference in minutes for years, months and days;\n // use regular difference in minutes for hours, minutes and seconds.\n var dstNormalizedMinutes = (milliseconds - timezoneOffset) / MILLISECONDS_IN_MINUTE;\n var defaultUnit = options === null || options === void 0 ? void 0 : options.unit;\n var unit;\n if (!defaultUnit) {\n if (minutes < 1) {\n unit = 'second';\n } else if (minutes < 60) {\n unit = 'minute';\n } else if (minutes < MINUTES_IN_DAY) {\n unit = 'hour';\n } else if (dstNormalizedMinutes < MINUTES_IN_MONTH) {\n unit = 'day';\n } else if (dstNormalizedMinutes < MINUTES_IN_YEAR) {\n unit = 'month';\n } else {\n unit = 'year';\n }\n } else {\n unit = String(defaultUnit);\n }\n\n // 0 up to 60 seconds\n if (unit === 'second') {\n var seconds = roundingMethodFn(milliseconds / 1000);\n return locale.formatDistance('xSeconds', seconds, localizeOptions);\n\n // 1 up to 60 mins\n } else if (unit === 'minute') {\n var roundedMinutes = roundingMethodFn(minutes);\n return locale.formatDistance('xMinutes', roundedMinutes, localizeOptions);\n\n // 1 up to 24 hours\n } else if (unit === 'hour') {\n var hours = roundingMethodFn(minutes / 60);\n return locale.formatDistance('xHours', hours, localizeOptions);\n\n // 1 up to 30 days\n } else if (unit === 'day') {\n var days = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_DAY);\n return locale.formatDistance('xDays', days, localizeOptions);\n\n // 1 up to 12 months\n } else if (unit === 'month') {\n var months = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_MONTH);\n return months === 12 && defaultUnit !== 'month' ? locale.formatDistance('xYears', 1, localizeOptions) : locale.formatDistance('xMonths', months, localizeOptions);\n\n // 1 year up to max Date\n } else if (unit === 'year') {\n var years = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_YEAR);\n return locale.formatDistance('xYears', years, localizeOptions);\n }\n throw new RangeError(\"unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'\");\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name compareAsc\n * @category Common Helpers\n * @summary Compare the two dates and return -1, 0 or 1.\n *\n * @description\n * Compare the two dates and return 1 if the first date is after the second,\n * -1 if the first date is before the second or 0 if dates are equal.\n *\n * @param {Date|Number} dateLeft - the first date to compare\n * @param {Date|Number} dateRight - the second date to compare\n * @returns {Number} the result of the comparison\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Compare 11 February 1987 and 10 July 1989:\n * const result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10))\n * //=> -1\n *\n * @example\n * // Sort the array of dates:\n * const result = [\n * new Date(1995, 6, 2),\n * new Date(1987, 1, 11),\n * new Date(1989, 6, 10)\n * ].sort(compareAsc)\n * //=> [\n * // Wed Feb 11 1987 00:00:00,\n * // Mon Jul 10 1989 00:00:00,\n * // Sun Jul 02 1995 00:00:00\n * // ]\n */\nexport default function compareAsc(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n var diff = dateLeft.getTime() - dateRight.getTime();\n if (diff < 0) {\n return -1;\n } else if (diff > 0) {\n return 1;\n // Return 0 if diff is 0; return NaN if diff is NaN\n } else {\n return diff;\n }\n}","import assign from \"../assign/index.js\";\nexport default function cloneObject(object) {\n return assign({}, object);\n}","import formatDistanceStrict from \"../formatDistanceStrict/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name formatDistanceToNowStrict\n * @category Common Helpers\n * @summary Return the distance between the given date and now in words.\n * @pure false\n *\n * @description\n * Return the distance between the given dates in words, using strict units.\n * This is like `formatDistance`, but does not use helpers like 'almost', 'over',\n * 'less than' and the like.\n *\n * | Distance between dates | Result |\n * |------------------------|---------------------|\n * | 0 ... 59 secs | [0..59] seconds |\n * | 1 ... 59 mins | [1..59] minutes |\n * | 1 ... 23 hrs | [1..23] hours |\n * | 1 ... 29 days | [1..29] days |\n * | 1 ... 11 months | [1..11] months |\n * | 1 ... N years | [1..N] years |\n *\n * @param {Date|Number} date - the given date\n * @param {Object} [options] - an object with options.\n * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first\n * @param {'second'|'minute'|'hour'|'day'|'month'|'year'} [options.unit] - if specified, will force a unit\n * @param {'floor'|'ceil'|'round'} [options.roundingMethod='round'] - which way to round partial units\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @returns {String} the distance in words\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `options.locale` must contain `formatDistance` property\n *\n * @example\n * // If today is 1 January 2015, what is the distance to 2 July 2014?\n * const result = formatDistanceToNowStrict(\n * new Date(2014, 6, 2)\n * )\n * //=> '6 months'\n *\n * @example\n * // If now is 1 January 2015 00:00:00,\n * // what is the distance to 1 January 2015 00:00:15, including seconds?\n * const result = formatDistanceToNowStrict(\n * new Date(2015, 0, 1, 0, 0, 15)\n * )\n * //=> '15 seconds'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 January 2016, with a suffix?\n * const result = formatDistanceToNowStrict(\n * new Date(2016, 0, 1),\n * {addSuffix: true}\n * )\n * //=> 'in 1 year'\n *\n * @example\n * // If today is 28 January 2015,\n * // what is the distance to 1 January 2015, in months, rounded up??\n * const result = formatDistanceToNowStrict(new Date(2015, 0, 1), {\n * unit: 'month',\n * roundingMethod: 'ceil'\n * })\n * //=> '1 month'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 January 2016 in Esperanto?\n * const eoLocale = require('date-fns/locale/eo')\n * const result = formatDistanceToNowStrict(\n * new Date(2016, 0, 1),\n * {locale: eoLocale}\n * )\n * //=> '1 jaro'\n */\nexport default function formatDistanceToNowStrict(dirtyDate, options) {\n requiredArgs(1, arguments);\n return formatDistanceStrict(dirtyDate, Date.now(), options);\n}","import HttpService from 'utils/http';\r\n\r\nclass SurveySkinApi {\r\n constructor(private model: string) {}\r\n getSurveySkin() {\r\n return HttpService.get(`${this.model}/GetByCurrentId`);\r\n }\r\n}\r\n\r\nconst surveySkinApi = new SurveySkinApi('SurveySkin');\r\n\r\nexport default surveySkinApi;\r\n","import { formatDistanceToNowStrict } from 'date-fns';\r\nimport format from 'date-fns/format';\r\nimport { getLastDetailAnalysis } from 'pages/User/api/AnalysisApi';\r\nimport { profileUser } from 'pages/User/api/UserApi';\r\nimport { AnalysisDetail, UserDetail } from 'pages/User/model/UserModel';\r\nimport { useEffect, useState } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport surveySkinApi from '../api/SurveySkinApi';\r\nimport { SurveySkinModel } from '../model/HomeModel';\r\nimport {\r\n initValueAnalysisDetail,\r\n initValueSurveySkin,\r\n initValueUserDetail,\r\n OPTIONS_SKINTARGET,\r\n OPTIONS_TYPESKIN,\r\n} from '../store/constans';\r\n\r\nconst defaultImg = require('assets/images/404.png');\r\nconst bannerText = require('assets/images/banner-text.png');\r\nconst logoBanner = require('assets/images/logo-banner.png');\r\nconst logoBanner2 = require('assets/images/logo-banner-2.png');\r\nconst personBanner = require('assets/images/person-banner.png');\r\nconst person = require('assets/images/person.png');\r\n\r\nconst HomeLogged = () => {\r\n const [userDetail, setUserDetail] = useState(initValueUserDetail);\r\n const [analysisRight, setAnalysisRight] = useState(initValueAnalysisDetail);\r\n const [surveySkin, setSurveySkin] = useState(initValueSurveySkin);\r\n const [timeUpdate, setTimeUpdate] = useState('');\r\n\r\n const fetchUserProfile = async () => {\r\n const res = await profileUser();\r\n if (res.data) setUserDetail(res?.data);\r\n };\r\n\r\n const fetchLastAnalysis = async () => {\r\n const res = await getLastDetailAnalysis();\r\n if (res?.data) setAnalysisRight(res?.data);\r\n if (res.data && res.data.updateTime != null) {\r\n setTimeUpdate(formatDistanceToNowStrict(new Date(format(new Date(res.data.updateTime), 'yyyy, MM, dd'))));\r\n }\r\n };\r\n\r\n const fetSurveySkin = async () => {\r\n const res = await surveySkinApi.getSurveySkin();\r\n if (res.data) setSurveySkin(res.data);\r\n };\r\n\r\n useEffect(() => {\r\n fetchLastAnalysis();\r\n fetchUserProfile();\r\n fetSurveySkin();\r\n }, []);\r\n\r\n return (\r\n <>\r\n {/* mobile */}\r\n
\r\n
\r\n
\r\n
\r\n

{userDetail?.fullName}

\r\n
\r\n
\r\n

Tổng điểm da

\r\n
\r\n {`${\r\n analysisRight?.resultMid?.grading || 0\r\n }/5`}\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n

Loại da

\r\n

\r\n {!surveySkin?.typeSkin\r\n ? 'Chưa có dữ liệu'\r\n : OPTIONS_TYPESKIN.map((item: any) => {\r\n if (surveySkin?.typeSkin == item.value) return item.name;\r\n })}\r\n

\r\n

Mục tiêu cho da

\r\n

\r\n {!surveySkin?.skinTarget\r\n ? 'chưa có dữ liệu'\r\n : OPTIONS_SKINTARGET.map((item: any) => {\r\n if (surveySkin?.skinTarget == item.value) return item.name;\r\n })}\r\n

\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n Phân tích da\r\n \r\n
\r\n
\r\n
\r\n\r\n
\r\n \"bannerText\"\r\n \"logoBanner\"\r\n \"personBanner\"\r\n
\r\n
\r\n\r\n {/* desktop */}\r\n
\r\n
\r\n
\r\n \"bannerText\"\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n

{userDetail?.fullName}

\r\n {analysisRight?.updateTime ? (\r\n
\r\n \r\n {timeUpdate}\r\n
\r\n ) : (\r\n ''\r\n )}\r\n
\r\n

Tổng điểm da

\r\n
\r\n {`${\r\n analysisRight?.resultMid?.grading || 0\r\n }/5`}\r\n
\r\n

Kết quả phân tích

\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n

Loại da

\r\n

\r\n {!surveySkin?.typeSkin\r\n ? 'Chưa có dữ liệu'\r\n : OPTIONS_TYPESKIN.map((item: any) => {\r\n if (surveySkin?.typeSkin == item.value) return item.name;\r\n })}\r\n

\r\n
\r\n\r\n
\r\n

Mục tiêu cho da

\r\n

\r\n {!surveySkin?.skinTarget\r\n ? 'chưa có dữ liệu'\r\n : OPTIONS_SKINTARGET.map((item: any) => {\r\n if (surveySkin?.skinTarget == item.value) return item.name;\r\n })}\r\n

\r\n
\r\n\r\n
\r\n \r\n Phân tích da\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n \"logoBanner\"\r\n \"person\"\r\n
\r\n
\r\n \r\n );\r\n};\r\n\r\nexport default HomeLogged;\r\n","import { isLogin } from 'utils/jwt';\r\nimport HomeDefault from '../components/HomeDefault';\r\nimport HomeLogged from '../components/HomeLogged';\r\nimport '../styles/homepage.scss';\r\nimport '../styles/responsive.scss';\r\n\r\nconst HomePage = () => {\r\n const authLogged = isLogin();\r\n\r\n return (\r\n <>\r\n {authLogged ? (\r\n
\r\n \r\n
\r\n ) : (\r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nexport default HomePage;\r\n","import HttpService from 'utils/http';\r\n\r\nconst baseUrl = 'Analysis';\r\n\r\nexport const getListGallery = (payload: any) => HttpService.post(`${baseUrl}/ListGalleryPhoto`, payload);\r\nexport const getDetailAnalysis = (id: any) => HttpService.get(`${baseUrl}/Detail?id=${id}`);\r\nexport const getListAnalysisByDate = (param: any) =>\r\n HttpService.get(`${baseUrl}/List?FromDate=${param.FromDate}&ToDate=${param.ToDate}`);\r\nexport const getLastDetailAnalysis = () => HttpService.get(`${baseUrl}/DetailLastTime`);\r\n","export default function assign(target, object) {\n if (target == null) {\n throw new TypeError('assign requires that input parameter not be null or undefined');\n }\n for (var property in object) {\n if (Object.prototype.hasOwnProperty.call(object, property)) {\n ;\n target[property] = object[property];\n }\n }\n return target;\n}"],"names":["MILLISECONDS_IN_MINUTE","MINUTES_IN_DAY","MINUTES_IN_MONTH","MINUTES_IN_YEAR","formatDistanceStrict","dirtyDate","dirtyBaseDate","options","_ref","_options$locale","_options$roundingMeth","requiredArgs","arguments","defaultOptions","locale","defaultLocale","formatDistance","RangeError","comparison","dirtyDateLeft","dirtyDateRight","dateLeft","toDate","dateRight","diff","getTime","compareAsc","isNaN","object","localizeOptions","addSuffix","Boolean","roundingMethodFn","roundingMethod","String","Math","floor","ceil","round","unit","milliseconds","minutes","dstNormalizedMinutes","getTimezoneOffsetInMilliseconds","defaultUnit","seconds","roundedMinutes","hours","days","months","years","formatDistanceToNowStrict","Date","now","SurveySkinApi","model","_classCallCheck","_createClass","key","value","HttpService","concat","this","defaultImg","require","bannerText","logoBanner","logoBanner2","personBanner","person","_analysisRight$result","_analysisRight$result2","_useState","useState","initValueUserDetail","_useState2","_slicedToArray","userDetail","setUserDetail","_useState3","initValueAnalysisDetail","_useState4","analysisRight","setAnalysisRight","_useState5","initValueSurveySkin","_useState6","surveySkin","setSurveySkin","_useState7","_useState8","timeUpdate","setTimeUpdate","fetchUserProfile","_asyncToGenerator","_regeneratorRuntime","_callee","res","_context","prev","next","profileUser","sent","data","stop","apply","fetchLastAnalysis","_ref2","_callee2","_context2","getLastDetailAnalysis","updateTime","format","fetSurveySkin","_ref3","_callee3","_context3","surveySkinApi","useEffect","_jsxs","_Fragment","children","className","_jsx","fullName","resultMid","grading","src","avatar","alt","typeSkin","OPTIONS_TYPESKIN","item","name","skinTarget","OPTIONS_SKINTARGET","Link","to","authLogged","isLogin","HomeLogged","HomeDefault","baseUrl","getListGallery","payload","getDetailAnalysis","id","assign","target","TypeError","property","Object","prototype","hasOwnProperty","call"],"sourceRoot":""}