{"version":3,"sources":["helpers/index.js","constants/index.js","utility/hooks/useSkin.js","@core/components/avatar/index.js","utility/Utils.js","components/RecipeIcon.js","utility/hooks/useRTL.js","components/PlanFreezerMealPreDayIcon.js","@core/layouts/components/layout-wrapper/index.js","router/routes/app.js","router/routes/authentication.js","router/routes/dinner-solution.js","router/routes/theme.js","router/routes/index.js","@core/layouts/BlankLayout.js","@core/components/customizer/index.js","@core/components/scrolltop/index.js","@core/layouts/components/footer/index.js","@core/layouts/components/navbar/UserDropdown.js","assets/images/avatars/avatar-blank.png","@core/layouts/components/navbar/NavbarUser.js","@core/layouts/components/navbar/NavbarBookmarks.js","@core/layouts/components/navbar/index.js","@core/layouts/components/menu/vertical-menu/VerticalMenuHeader.js","@core/layouts/components/menu/vertical-menu/VerticalNavMenuLink.js","utility/context/Can.js","@core/layouts/utils.js","@core/layouts/components/menu/vertical-menu/VerticalNavMenuGroup.js","@core/layouts/components/menu/vertical-menu/VerticalNavMenuSectionHeader.js","@core/layouts/components/menu/vertical-menu/VerticalNavMenuItems.js","@core/layouts/components/menu/vertical-menu/index.js","utility/hooks/useNavbarType.js","utility/hooks/useFooterType.js","utility/hooks/useNavbarColor.js","@core/layouts/VerticalLayout.js","components/MyFreezerInventoryIcon.js","navigation/vertical/index.js","layouts/VerticalLayout.js","@core/layouts/components/menu/horizontal-menu/HorizontalNavMenuLink.js","@core/layouts/components/menu/horizontal-menu/HorizontalNavMenuGroup.js","@core/layouts/components/menu/horizontal-menu/HorizontalNavMenuItems.js","@core/layouts/components/menu/horizontal-menu/index.js","@core/layouts/HorizontalLayout.js","navigation/horizontal/index.js","layouts/HorizontalLayout.js","router/Router.js","utility/hooks/useLayout.js","utility/hooks/useRouterTransition.js","App.js"],"names":["axiosInstance","axios","create","getRequest","url","get","APIBASEURL","getRequestByStringQuery","stringQuery","postRequest","payload","post","postRequestWithFile","headers","accept","putRequest","put","deleteRequestById","id","delete","renderQualityFraction","quantity","fraction","measurement","value","toFraction","interceptors","request","use","config","includes","token","localStorage","getItem","Authorization","err","Promise","reject","response","error","status","clear","ex","convertToMixedFraction","decimalNumber","integerPart","Math","floor","decimalPart","decimal","h1","h2","k1","k2","b","a","aux","abs","decimalToFraction","renderQualityFractionVer2","recipes","qty","debug","type","forEach","recipe","index","name","numberFraction","split","valueFraction","Number","Object","keys","r","mixedFraction","console","log","length","map","filter","join","formatDollar","Intl","NumberFormat","style","currency","format","discountPrice","priceValue","percentOff","amountOff","isNumber","apiUrls","getChracters","login","register","forgetPassword","resetPassword","resendEmail","getPlans","setupIntent","getLoggedInUser","getCountries","getStates","getCities","updateSubscription","getAisles","getIngredients","getOneIngredient","addIngredient","updateIngredient","deleteIngredient","getRecipes","getOneRecipe","addRecipe","deleteRecipe","updateRecipe","addCopyPaste","updateCopyPaste","getRecipeTypes","getRecipeSources","getRecipeBases","getCuisineTypes","getMeasurmentUnits","getRecipeTypeByName","getCuisineTypeByName","getRecipeByUrl","getFavoriteMeals","getOneFavoriteMeal","addFavoriteMeal","deleteFavoriteMeal","updateFavoriteMeal","getFreezerMeals","deleteFreezerMeal","deleteMultipleMeals","addFreezerMeal","changeStatus","assignPrepDate","getFreezerInventory","markAsUsed","getCalendarMeals","getOneCalendarMeal","addCalendarMeal","deleteCalendarMeal","updateCalendarMeal","weekAtGlance","getFreezerLabels","whatsForDinner","whatsForDinnerPdf","recipeSource","freezerInventoryReport","calendarRecipeInstructions","freezerRecipeInstructions","addItems","updateItems","getAllItems","getGroceryShoppingList","getGroceryShoppingListPrepDay","submitTextareaCopyPaste","useSkin","dispatch","useDispatch","store","useSelector","state","layout","useEffect","element","window","document","body","classList","remove","skin","add","dark","bordered","setSkin","handleSkin","Avatar","forwardRef","props","ref","img","size","icon","color","badgeUp","content","Tag","tag","initials","imgWidth","className","badgeText","imgHeight","badgeColor","imgClassName","contentStyles","rest","classnames","undefined","str","results","e","push","getInitials","pill","src","alt","height","width","defaultProps","isObjEmpty","obj","getDateWithoutTime","date","setHours","selectThemeColors","theme","colors","primary25","primary","neutral10","neutral20","neutral30","customFormatDate","dayjs","numb","result","Fraction","toString","mixedNumb","fractionStr","String","fromCharCode","RecipeIcon","xmlns","viewBox","fill","d","useRTL","isRtl","isRTL","getElementsByTagName","setAttribute","handleRTL","PlanFreezerMealPreDayIcon","LayoutWrapper","children","appLayout","wrapperClass","transition","routeMeta","navbarStore","navbar","contentWidth","Fragment","handleContentWidth","menuCollapsed","handleMenuCollapsed","menuHidden","handleMenuHidden","query","AppRoutes","path","component","lazy","AuthenticationRoutes","meta","authRoute","DinnerSolutionRoutes","ThemeRoutes","Routes","BlankLayout","useState","isMounted","setIsMounted","Customizer","setIsRtl","isHidden","setLayout","navbarType","footerType","navbarColor","setIsHidden","setLastLayout","setTransition","setNavbarType","setFooterType","setNavbarColor","setContentWidth","setMenuCollapsed","openCustomizer","setOpenCustomizer","handleToggle","preventDefault","transitionOptions","label","transitionValue","find","i","open","href","onClick","options","wheelPropagation","skinsArr","checked","radio","marginCondition","onChange","for","renderSkinsRadio","classNamePrefix","defaultValue","isClearable","selected","border","navbarTypeArr","renderNavbarTypeRadio","footerTypeArr","renderFooterTypeRadio","ScrollTop","showOffset","scrollBehaviour","visible","setVisible","addEventListener","pageYOffset","scroll","top","behavior","Footer","Date","getFullYear","target","rel","UserDropdown","user","auth","marginTop","end","setItem","handleLogout","NavbarUser","NavbarBookmarks","setMenuVisibility","getBookmarks","ThemeNavbar","VerticalMenuHeader","setGroupOpen","menuHover","Toggler","to","themeConfig","app","appLogoImage","VerticalNavMenuLink","item","activeItem","setActiveItem","currentActiveItem","LinkTag","externalLink","NavLink","t","useTranslation","location","useLocation","disabled","active","navLink","newTab","isActive","match","title","badge","AbilityContext","createContext","hasActiveChild","createContextualCan","Consumer","currentUrl","child","removeChildren","openGroup","currentActiveGroup","indexOf","splice","VerticalNavMenuGroup","groupOpen","parentItem","routerProps","groupActive","setGroupActive","setCurrentActiveGroup","currentURL","pathname","onCollapseClick","parent","activeGroup","toggleOpenGroup","isOpen","VerticalNavMenuItems","items","VerticalNavMenuSectionHeader","header","VerticalMenuNavItems","Components","TagName","resolveNavItemComponent","Sidebar","menu","menuData","setMenuHover","shadowRef","useRef","expanded","onMouseEnter","onMouseLeave","onScrollY","container","scrollTop","current","contains","scrollMenu","useNavbarType","handleNavbarType","useFooterType","handleFooterType","useNavbarColor","handleNavbarColor","VerticalLayout","footer","menuVisibility","innerWidth","windowWidth","setWindowWidth","layoutStore","handleWindowWidth","val","footerClasses","static","sticky","hidden","navbarClasses","floating","bgColorCondition","expand","light","show","customizer","MyFreezerInventoryIcon","navigation","HorizontalNavMenuLink","isChild","setOpenDropdown","HorizontalNavMenuGroup","submenu","openDropdown","menuModifiers","enabled","phase","fn","data","stylesObj","pageHeight","innerHeight","popperEl","elements","popper","ddTop","getBoundingClientRect","clientHeight","maxHeight","overflowY","ddRef","left","closest","styles","toggle","Link","modifiers","HorizontalNavMenuItems","HorizontalMenu","arr","HorizontalLayout","navbarScrolled","setNavbarScrolled","appName","Router","handleLayout","breakpoint","lastLayout","handleLastLayout","useLayout","routerTransition","handleRouterTransition","useRouterTransition","DefaultLayout","role","wizard","verifyEmailRoute","Layouts","NotAuthorized","Error","FinalRoute","route","action","resource","basename","process","exact","render","LayoutTag","LayoutRoutes","LayoutPaths","LayoutRoutesAndPaths","assign","fallback","require","withRouter","queryClient","QueryClient","history","useHistory","loading","setLoading","success","email_verified_at","handleUser","step1","nextStep","is_subscribed","handleLogin","client"],"mappings":"wlBAcaA,EAAgBC,IAAMC,SA2C5B,SAAeC,EAAW,GAAD,+BAE/B,4CAFM,WAA0BC,GAAG,iFACrBJ,EAAcK,IAAIC,IAAaF,GAAK,KAAD,+EACjD,sBAMM,SAAeG,EAAwB,EAAD,kCAE5C,4CAFM,WAAuCH,EAAKI,GAAW,iFAC/CR,EAAcK,IAAIC,IAAaF,EAAMI,GAAa,KAAD,+EAC/D,sBAEM,SAAeC,EAAY,EAAD,kCAEhC,4CAFM,WAA2BL,EAAKM,GAAO,iFAC/BV,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AAIC,UAAWgP,U,yEGhNnCe,EAAQ,KAAU7e,SAqEH8e,uBAlEf,WACI,IAAMC,EAAc,IAAIC,KAClBC,EAAUC,cACV9W,EAAWC,cACjB,EAA8BkH,oBAAS,GAAK,mBAArC4P,EAAO,KAAEC,EAAU,KACpBhK,EAAWC,cAgDjB,OAzCA3M,oBAAS,sBAAC,gCAAAhH,EAAA,+EAEqBpD,aAAW0F,KAAQS,iBAAgB,OAC9B,IADtBhE,EAAQ,QACF4a,KAAKgE,QAC8B,MAAxC5e,EAAS4a,KAAKA,KAAKiE,mBACO,kBAAtBlK,EAAS8B,WAGZ9O,EAASmX,YAAW,CAAChM,KAAM9S,EAAS4a,KAAKA,QACzCjT,EAASoX,cAAM,IACfP,EAAQhU,KAAK,YAAa,CAACwU,SAAU,KAJjCL,GAAW,IAQ0B,IAArC3e,EAAS4a,KAAKA,KAAKqE,eACjB7gB,EAAU,CACZ0U,KAAM9S,EAAS4a,KAAKA,KACpBnX,OAAO,GAEXkE,EAASuX,YAAY9gB,IACrBuJ,EAASoX,cAAM,IACfP,EAAQhU,KAAK,YAAa,CAACwU,SAAU,IACrCL,GAAW,KAELvgB,EAAU,CACZ0U,KAAM9S,EAAS4a,KAAKA,KACpBnX,OAAO,GAEXkE,EAASuX,YAAY9gB,IAErBugB,GAAW,IAGfA,GAAW,GACd,gDAEDA,GAAW,GAAM,yDAGtB,IAGC,cAAC,KAAmB,CAACQ,OAAQb,EAAY,SAE1B,GAAXI,EACA,cAAC,KAAgB,IAEjB,cAAC,GAAM","file":"static/js/20.865637f8.chunk.js","sourcesContent":["import axios from \"axios\";\r\nimport { APIBASEURL } from \"../constants\";\r\nimport { toFraction } from \"../utility/Utils\";\r\n\r\n// async function getAuthToken(){\r\n// let token;\r\n// try {\r\n// token = `Bearer ${(await Auth.currentSession()).getAccessToken().getJwtToken()}`\r\n// } catch (error) {\r\n// console.log(error);\r\n// }\r\n// return token\r\n// }\r\n\r\nexport const axiosInstance = axios.create();\r\n//Adding A Request Interceptor\r\naxiosInstance.interceptors.request.use(\r\n async function (config) {\r\n if (!config?.url.includes(APIBASEURL)) return config;\r\n const token = localStorage.getItem(\"token\");\r\n if (token != null && token !== \"\") {\r\n config.headers.Authorization = `Bearer ${token}`;\r\n config.headers[\"Content-Type\"] = \"application/json\";\r\n config.headers[\"Accept\"] = \"application/json\";\r\n }\r\n return config;\r\n },\r\n function (err) {\r\n return Promise.reject(err);\r\n }\r\n);\r\n\r\n//Adding A Response Interceptor\r\naxiosInstance.interceptors.response.use(\r\n function (response) {\r\n // //\r\n // Any status code that lie within the range of 2xx cause this function to trigger\r\n // Do something with response data\r\n return response;\r\n },\r\n function (error) {\r\n try {\r\n if (error.response.status === 401) {\r\n //Logout();\r\n //window.location.href(\"/logout\");\r\n localStorage.clear();\r\n }\r\n } catch (ex) {\r\n //Logout(\"apid\");\r\n // Common.LogError(ex, \"Api Call in api.js file\", \"Intercepter\");\r\n }\r\n // Any status codes that falls outside the range of 2xx cause this function to trigger\r\n // Do something with response error\r\n return Promise.reject(error);\r\n }\r\n);\r\n\r\nexport async function getRequest(url) {\r\n return await axiosInstance.get(APIBASEURL + url);\r\n}\r\n\r\nexport async function getRequestById(url, id) {\r\n return await axiosInstance.get(APIBASEURL + url + \"?id=\" + id);\r\n}\r\n\r\nexport async function getRequestByStringQuery(url, stringQuery) {\r\n return await axiosInstance.get(APIBASEURL + url + stringQuery);\r\n}\r\n\r\nexport async function postRequest(url, payload) {\r\n return await axiosInstance.post(APIBASEURL + url, payload);\r\n}\r\n\r\nexport async function postRequestWithFile(url, payload) {\r\n return await axiosInstance.post(APIBASEURL + url, payload, {\r\n headers: {\r\n \"Content-Type\": \"multipart/form-data\",\r\n accept: \"*/*\",\r\n },\r\n });\r\n}\r\n\r\nexport async function putRequest(url, payload) {\r\n return await axiosInstance.put(APIBASEURL + url, payload);\r\n}\r\n\r\nexport async function putRequestWithFile(url, payload) {\r\n return await axiosInstance.put(APIBASEURL + url, payload, {\r\n headers: {\r\n \"Content-Type\": \"multipart/form-data\",\r\n accept: \"*/*\",\r\n },\r\n });\r\n}\r\n\r\nexport async function deleteRequestByUrl(url) {\r\n return await axiosInstance.delete(APIBASEURL + url);\r\n}\r\n\r\nexport async function deleteRequestById(url, id) {\r\n return await axiosInstance.delete(APIBASEURL + url + id);\r\n}\r\n\r\nexport function renderQualityFraction(quantity, fraction, measurement) {\r\n let value = \"\";\r\n if (quantity && fraction) {\r\n value = `${quantity} ${fraction}`;\r\n }\r\n if (quantity && !fraction) {\r\n value = `${toFraction(quantity)}`;\r\n }\r\n if (!quantity && fraction) {\r\n value = `${fraction}`;\r\n }\r\n return `${value} ${measurement ? measurement : \"\"}`;\r\n}\r\n\r\nconst convertToFraction = (decimalNumber) => {\r\n if (decimalNumber && `${decimalNumber}`.includes(\".\")) {\r\n const tolerance = 1.0e-10;\r\n let numerator = parseFloat(decimalNumber);\r\n let denominator = 1;\r\n let error = Math.abs(numerator - Math.round(numerator));\r\n\r\n while (error > tolerance) {\r\n for (let i = 2; i < 10000; i++) {\r\n const candidate = numerator * i;\r\n const rounded = Math.round(candidate);\r\n\r\n if (Math.abs(candidate - rounded) < tolerance) {\r\n numerator = rounded;\r\n denominator = i;\r\n break;\r\n }\r\n }\r\n\r\n error = Math.abs(numerator - Math.round(numerator));\r\n }\r\n\r\n return `${numerator}/${denominator}`;\r\n } else {\r\n return decimalNumber || 0;\r\n }\r\n};\r\n\r\nconst gcd = (a, b) => {\r\n return b ? gcd(b, a % b) : a;\r\n};\r\n\r\nconst decimalToFraction = (decimal) => {\r\n const tolerance = 1.0e-6;\r\n let h1 = 1,\r\n h2 = 0,\r\n k1 = 0,\r\n k2 = 1,\r\n b = decimal;\r\n do {\r\n const a = Math.floor(b);\r\n let aux = h1;\r\n h1 = a * h1 + h2;\r\n h2 = aux;\r\n aux = k1;\r\n k1 = a * k1 + k2;\r\n k2 = aux;\r\n b = 1 / (b - a);\r\n } while (Math.abs(decimal - h1 / k1) > decimal * tolerance);\r\n\r\n return `${h1}/${k1}`;\r\n};\r\n\r\nconst convertToMixedFraction = (decimalNumber) => {\r\n const integerPart = Math.floor(decimalNumber);\r\n const decimalPart = decimalNumber - integerPart;\r\n\r\n if (decimalPart === 0) {\r\n return `${integerPart}`;\r\n }\r\n\r\n const fraction = decimalToFraction(decimalPart);\r\n if (integerPart == 0) {\r\n return `${fraction}`;\r\n } else {\r\n return `${integerPart} ${fraction}`;\r\n }\r\n};\r\n\r\nexport function renderQualityFractionVer2(recipes, qty, debug) {\r\n let type = {};\r\n\r\n recipes.forEach((recipe, index) => {\r\n // lấy các measurement\r\n if (recipe?.measurement?.name) {\r\n // thay đổi phân số\r\n if (\r\n recipe?.fraction &&\r\n typeof recipe?.fraction === \"string\" &&\r\n recipe.fraction.includes(\"/\")\r\n ) {\r\n const numberFraction = recipe.fraction.split(\"/\");\r\n let valueFraction = Number(numberFraction[0] / numberFraction[1]);\r\n valueFraction = valueFraction + (recipe?.quantity || 0);\r\n if (valueFraction) {\r\n type = {\r\n ...type,\r\n [recipe?.measurement?.name]:\r\n Number(type?.[recipe?.measurement?.name] || 0) + valueFraction,\r\n };\r\n }\r\n } else {\r\n // nếu cùng measurement thì +\r\n if (recipe?.quantity) {\r\n type = {\r\n ...type,\r\n [recipe?.measurement?.name]:\r\n (type?.[recipe?.measurement?.name] || 0) +\r\n Number(recipe.quantity),\r\n };\r\n } else if (recipe?.fraction) {\r\n //const roundPS = convertToFraction(`${recipe?.fraction}`);\r\n if (debug) {\r\n //console.log(roundPS, \"roundPS\");\r\n }\r\n type = {\r\n ...type,\r\n [`${recipe?.measurement?.name}`]: recipe?.fraction,\r\n };\r\n }\r\n }\r\n }\r\n });\r\n\r\n Object.keys(type).forEach((r) => {\r\n if (`${type?.[r]}`.includes(\".\")) {\r\n const mixedFraction = convertToMixedFraction(type?.[r]);\r\n type = {\r\n ...type,\r\n [r]: mixedFraction,\r\n };\r\n }\r\n });\r\n /*if (\r\n type?.[recipe?.measurement?.name] &&\r\n `${type?.[recipe?.measurement?.name]}`.includes(\".\")\r\n ) {\r\n // tính thành phân số nếu có .\r\n const valueCheck = `${type?.[recipe?.measurement?.name]}`.split(\".\");\r\n const roundPS = convertToFraction(`0.${valueCheck[1]}`);\r\n type = {\r\n ...type,\r\n [recipe?.measurement?.name]: valueCheck[0] ? valueCheck[0] : roundPS,\r\n [`${recipe?.measurement?.name}`]: roundPS,\r\n };\r\n if (debug) {\r\n console.log(type, \"type 3\");\r\n }\r\n }*/\r\n if (debug) console.log(type, \"type\");\r\n\r\n if (type && Object.keys(type).length > 0) {\r\n let value = Object.keys(type).map((r, index) => {\r\n if (type[r] == 0) {\r\n return null;\r\n }\r\n return `${type[r]} ${r}`;\r\n });\r\n return value.filter((r) => r != null).join(\", \");\r\n } else {\r\n return qty;\r\n }\r\n}\r\n\r\nexport function formatDollar(value) {\r\n if (typeof value === \"number\") {\r\n let USDollar = new Intl.NumberFormat(\"en-US\", {\r\n style: \"currency\",\r\n currency: \"USD\",\r\n });\r\n return USDollar.format(value);\r\n } else {\r\n let USDollar = new Intl.NumberFormat(\"en-US\", {\r\n style: \"currency\",\r\n currency: \"USD\",\r\n });\r\n return USDollar.format(0);\r\n }\r\n}\r\n\r\nexport function discountPrice(priceValue, percentOff, amountOff, isNumber) {\r\n let value = 0;\r\n if (percentOff) {\r\n value = (priceValue * percentOff) / 100;\r\n } else if (amountOff) {\r\n value = amountOff;\r\n }\r\n if (isNumber) {\r\n return value || 0;\r\n }\r\n return formatDollar(value);\r\n}\r\n","export const APIBASEURL = \"https://api.thedinnersolution.com/api\";\r\n\r\nexport const apiUrls = {\r\n getChracters: \"/character\",\r\n login: \"/auth/login\",\r\n register: \"/auth/register\",\r\n forgetPassword: \"/password/forgot-password\",\r\n resetPassword: \"/password/reset\",\r\n resendEmail: \"/email/resend\",\r\n getPlans: \"/get-subscription-plans\",\r\n setupIntent: \"/setupintent\",\r\n getLoggedInUser: \"/get-loggedin-user\",\r\n getCountries: \"/countries\",\r\n getStates: \"/states\",\r\n getCities: \"/cities\",\r\n updateSubscription: \"/update-subscription\",\r\n //Ingredient Urls\r\n getAisles: \"/ingredientaisles\",\r\n getIngredients: \"/ingredients\",\r\n getOneIngredient: \"/ingredients/\",\r\n addIngredient: \"/ingredients\",\r\n updateIngredient: \"/ingredients/\",\r\n deleteIngredient: \"/ingredients/\",\r\n //Recipe Urls\r\n getRecipes: \"/recipes\",\r\n getOneRecipe: \"/recipes/\",\r\n addRecipe: \"/recipes\",\r\n deleteRecipe: \"/recipes/\",\r\n updateRecipe: \"/recipes/\",\r\n addCopyPaste: \"/add-copy-paste-recipe\",\r\n updateCopyPaste: \"/update-copy-paste-recipe/\",\r\n getRecipeTypes: \"/get-recipe-types\",\r\n getRecipeSources: \"/get-recipe-sources\",\r\n getRecipeBases: \"/get-recipe-bases\",\r\n getCuisineTypes: \"/get-cuisine-types\",\r\n getMeasurmentUnits: \"/get-measurement-units\",\r\n getRecipeTypeByName: \"/get-recipe-type-name\",\r\n getCuisineTypeByName: \"/get-cuisine-type-name\",\r\n getRecipeByUrl: \"/get-recipe-url\",\r\n //Favorite Meal Urls\r\n getFavoriteMeals: \"/menu\",\r\n getOneFavoriteMeal: \"/menu/\",\r\n addFavoriteMeal: \"/menu\",\r\n deleteFavoriteMeal: \"/menu/\",\r\n updateFavoriteMeal: \"/menu/\",\r\n //Freezer Meal Urls\r\n getFreezerMeals: \"/freezer-meal\",\r\n deleteFreezerMeal: \"/freezer-meal/\",\r\n deleteMultipleMeals: \"/delete-freezer-meals\",\r\n addFreezerMeal: \"/freezer-meal\",\r\n changeStatus: \"/freezer-meal-update-status\",\r\n assignPrepDate: \"/freezer-meal-assign-prep-date\",\r\n //Freezer Inventory Urls\r\n getFreezerInventory: \"/get-freezer-inventory\",\r\n markAsUsed: \"/mark-inventory-used/\",\r\n //Calendar Meal Urls\r\n getCalendarMeals: \"/calendar-meal\",\r\n getOneCalendarMeal: \"/calendar-meal/\",\r\n addCalendarMeal: \"/calendar-meal\",\r\n deleteCalendarMeal: \"/calendar-meal/\",\r\n updateCalendarMeal: \"/calendar-meal/\",\r\n weekAtGlance: \"/weekly-menu\",\r\n //Reports Urls\r\n getFreezerLabels: \"/freezer-lables-report\",\r\n whatsForDinner: \"/dinner-report\",\r\n whatsForDinnerPdf: \"/dinner-report-pdf\",\r\n recipeSource: \"/recipe-source\",\r\n freezerInventoryReport: \"/freezer-inventory-report\",\r\n calendarRecipeInstructions: \"/calendar-recipe-instructions\",\r\n freezerRecipeInstructions: \"/freezer-recipe-instructions\",\r\n addItems: \"/misc-items\",\r\n updateItems: \"/update-misc-items\",\r\n getAllItems: \"/misc-items\",\r\n getGroceryShoppingList: \"/grocery-shopping-list\",\r\n getGroceryShoppingListPrepDay: \"/prep-day-grocery-shopping-list\",\r\n\r\n // Ingredients -> Copy/paste Textarea\r\n submitTextareaCopyPaste: \"/get-recipe-textarea\",\r\n // New API Fast Dev\r\n};\r\n","// ** React Imports\r\nimport { useEffect } from 'react'\r\n\r\n// ** Store Imports\r\nimport { handleSkin } from '@store/layout'\r\nimport { useDispatch, useSelector } from 'react-redux'\r\n\r\nexport const useSkin = () => {\r\n // ** Hooks\r\n const dispatch = useDispatch()\r\n const store = useSelector(state => state.layout)\r\n\r\n const setSkin = type => {\r\n dispatch(handleSkin(type))\r\n }\r\n\r\n useEffect(() => {\r\n // ** Get Body Tag\r\n const element = window.document.body\r\n\r\n // ** Define classnames for skins\r\n const classNames = {\r\n dark: 'dark-layout',\r\n bordered: 'bordered-layout',\r\n 'semi-dark': 'semi-dark-layout'\r\n }\r\n\r\n // ** Remove all classes from Body on mount\r\n element.classList.remove(...element.classList)\r\n\r\n // ** If skin is not light add skin class\r\n if (store.skin !== 'light') {\r\n element.classList.add(classNames[store.skin])\r\n }\r\n }, [store.skin])\r\n\r\n return { skin: store.skin, setSkin }\r\n}\r\n","// ** React Imports\r\nimport { forwardRef } from 'react'\r\n\r\n// ** Third Party Components\r\nimport Proptypes from 'prop-types'\r\nimport classnames from 'classnames'\r\n\r\n// ** Reactstrap Imports\r\nimport { Badge } from 'reactstrap'\r\n\r\nconst Avatar = forwardRef((props, ref) => {\r\n // ** Props\r\n const {\r\n img,\r\n size,\r\n icon,\r\n color,\r\n status,\r\n badgeUp,\r\n content,\r\n tag: Tag,\r\n initials,\r\n imgWidth,\r\n className,\r\n badgeText,\r\n imgHeight,\r\n badgeColor,\r\n imgClassName,\r\n contentStyles,\r\n ...rest\r\n } = props\r\n\r\n // ** Function to extract initials from content\r\n const getInitials = str => {\r\n const results = []\r\n const wordArray = str.split(' ')\r\n wordArray.forEach(e => {\r\n results.push(e[0])\r\n })\r\n return results.join('')\r\n }\r\n\r\n return (\r\n \r\n )}\r\n {status ? (\r\n \r\n ) : null}\r\n
Skin
\r\nContent Width
\r\nRTL
\r\n setIsRtl(!isRtl)} />\r\nRouter Transition
\r\nMenu Layout
\r\nMenu Collapsed
\r\n setMenuCollapsed(!menuCollapsed)}\r\n />\r\nMenu Hidden
\r\n setIsHidden(!isHidden)}\r\n />\r\nNavbar Color
\r\n{layout === 'HorizontalLayout' ? 'Menu' : 'Navbar'} Type
\r\nFooter Type
\r\n\r\n \r\n COPYRIGHT © {new Date().getFullYear()}{\" \"}\r\n \r\n The Dinner Solution\r\n \r\n , All rights Reserved\r\n \r\n {/* \r\n Hand-crafted & Made with\r\n