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,iBACvBtG,UAAWiG,EAAKjG,UAChBsF,SAAUW,EAAKX,SACf1F,MAAOqG,EAAKrG,MACZC,eAAgBoG,EAAKpG,mBAI3B,IAAKmF,IAAUA,EAAMlB,OAASkB,EAAMlB,KAAKkC,WACvC,MAAMT,MAAM,4CAEd,OAAOP,EAAMlB,KAAKkC,UAAU,EAGjBhF,EAAgBD,UAC3B,MAAMiE,QAAeC,EAAAA,EAAIC,QAAQ,CAC/BC,MAAOoB,EAAAA,GACPlB,UAAW,CACTO,MAAO,CACLpG,aAAcyG,EAAKzG,aACnB0G,SAAUD,EAAKC,SACfL,OAAQI,EAAKJ,OACblG,GAAIsG,EAAKtG,GACTG,gBAAiBmG,EAAKnG,gBACtBqG,SAAUF,EAAKE,SACfpG,YAAakG,EAAKlG,YAClBqG,WAAYH,EAAKG,WACjBC,UAAWJ,EAAKI,UAChBC,iBAAkBL,EAAKK,iBACvBtG,UAAWiG,EAAKjG,UAChBsF,SAAUW,EAAKX,SACf1F,MAAOqG,EAAKrG,MACZC,eAAgBoG,EAAKpG,mBAI3B,IAAKmF,IAAUA,EAAMlB,OAASkB,EAAMlB,KAAKyC,WACvC,MAAMhB,MAAM,sBAEd,OAAOP,EAAMlB,KAAKyC,UAAU,EAEjBC,EAAgBzF,UAC3B,MAAMiE,QAAeC,EAAAA,EAAIC,QAAQ,CAC/BC,MAAOsB,EAAAA,GACPpB,UAAW,CACTO,MAAO,CACLjG,GAAIsG,EAAKtG,OAMf,IAAKqF,IAAUA,EAAMlB,OAASkB,EAAMlB,KAAK2C,WACvC,MAAMlB,MAAM,sBAEd,OAAOP,EAAMlB,KAAK2C,UAAU,C,+BCtN9B,0mH","sources":["webpack://ask-pcos-application/./src/components/pageComponents/GoalSetting/GoalList/GoalReviewButton.tsx","webpack://ask-pcos-application/./src/components/types/index.ts","webpack://ask-pcos-application/./src/components/cards/GoalReviewCircleIndicator.tsx","webpack://ask-pcos-application/./src/components/cards/GoalReviewCard.tsx","webpack://ask-pcos-application/./src/components/cards/base.tsx","webpack://ask-pcos-application/./src/components/cards/ListingCard.tsx","webpack://ask-pcos-application/./src/components/cards/ArticleTopicCard.tsx","webpack://ask-pcos-application/./src/components/cards/AskSectionCard.tsx","webpack://ask-pcos-application/./src/components/cards/HabitCard.tsx","webpack://ask-pcos-application/./src/components/cards/AddHabitIconCard.tsx","webpack://ask-pcos-application/./src/components/cards/AddHabitCard.tsx","webpack://ask-pcos-application/./src/components/providors/goals-api.tsx","webpack://ask-pcos-application/./src/images/no-image-image.png"],"sourcesContent":["import React from \"react\"\nimport { FaPencilAlt } from \"react-icons/fa\"\n\nconst GoalReviewButton: React.FC<{\n enable: boolean\n onClick: () => void\n}> = ({ enable, onClick }) => {\n return (\n {\n if (enable) onClick()\n }}\n >\n Review\n \n )\n}\n\nexport default GoalReviewButton\n","import { CheckIn, CreateGoalInput } from \"../../api/graphql/API\"\n\nexport interface iAppButton {\n title?: any\n Icon?: object\n className?: string\n iconOnRight?: boolean\n [id: string]: any\n onClick?: () => void\n}\n\nexport type registrationButtonWrapper_FuncType = (ButtonElement: object) => any\n\nexport interface iListingCardView {\n title: string\n image: any\n description: string\n link?: string\n}\n\nexport interface iAskSectionCard extends iListingCardView {\n image: any\n isUser?: boolean\n buttonTitle?: string\n buttonIcon?: any\n}\n\nexport interface iNavbarView {\n pageTitle: string\n links: iNavSidebarLink[]\n SignupButton: any\n LoginButton: any\n LogoutButton: any\n}\n\nexport interface iNavbar {\n pageTitle: string\n}\n\nexport type toggleSidebar_FuncType = (open: boolean) => void\n\nexport interface iSidebarWrapper {\n children?: object\n sidebarOpen: boolean\n onToggleSidebar: toggleSidebar_FuncType\n}\n\nexport interface iNavSidebarLink {\n title: string\n to?: string\n external: boolean\n Icon?: object\n wrapper?: registrationButtonWrapper_FuncType\n ButtonComponent?: any\n wrapperClassName?: string\n onClick?: () => void\n}\n\nexport interface iNavSidebar {\n sidebarOpen: boolean\n onToggleSidebar: toggleSidebar_FuncType\n links?: iNavSidebarLink[]\n pageTitle: string\n}\n\nexport interface iAskSectionView {\n content: iAskSectionCard[]\n isUser: boolean\n}\n\nexport interface iContentSectionWrapper {\n children?: object\n title: string\n Icon?: object\n showSearchButton?: boolean\n}\n\nexport interface iExploreSectionView {\n topics: iArticleTopicForPageContext[]\n}\n\nexport interface iTopicMetaData {\n title: string\n image: any\n description: string\n Icon: any\n}\n\nexport interface iArticleTopic extends iTopicMetaData {\n slug: string\n slugPrefix?: string\n}\n\nexport interface iArticleThumbnail {\n childImageSharp: {\n fluid: any\n }\n}\n\nexport interface iPageExcerpt {\n id: number\n title: string\n slug: string\n link: string\n introduction: string\n thumbnail: {\n childImageSharp: {\n fluid: any\n }\n }\n}\n\nexport interface iArticleTranslation {\n language: string\n content: string\n}\n\nexport interface iUsefulLink {\n title: string\n link: string\n}\n\nexport type iFeaturedMedia = string\n\nexport interface iArticleContentData {\n default: string\n translations: iArticleTranslation[]\n}\n\nexport interface iArticleContent {\n title?: iArticleContentData\n heading?: iArticleContentData\n paragraph?: iArticleContentData\n bullets?: {\n default: string[]\n translations: {\n language: string\n content: string[]\n }[]\n }\n}\n\nexport interface RelatedVideo {\n link: string\n title: string\n}\n\nexport interface iArticleData {\n slug: string\n title: string\n source: string\n description: string\n read_time: string\n last_updated_at: string\n related_articles: string[]\n related_videos: RelatedVideo[]\n previous_articles: string[]\n next_articles: string[]\n useful_links: iUsefulLink[]\n content: iArticleContent[]\n thumbnail: iArticleThumbnail\n}\n\nexport interface iArticleTopicForPageContext {\n slug: string\n title: string\n image: any\n description: string\n slugPrefix: string\n Icon: any\n}\n\nexport interface IRelatedArticle {\n node: iArticleData\n}\n\nexport interface iPrevNextArticle {\n node: iArticleData\n}\n\nexport interface iRelatedArticle {\n node: iArticleData\n}\n\nexport interface iPageContext {\n data: iArticleData\n topic: iArticleTopicForPageContext\n related_articles: iRelatedArticle[]\n previous_articles: iPrevNextArticle[]\n next_articles: iPrevNextArticle[]\n}\n\nexport type AskPCOSUserType = {\n __typename: \"AskPCOSUser\"\n id: string\n user_sub: string\n firstname: string\n lastname: string\n weight?: number | null\n height?: number | null\n country?: string | null\n phone_number?: string | null\n pcos_diagnosed?: boolean | null\n use_smart_goal?: boolean | null\n bookmarked_articles?: Array | null\n selected_questions_qpl?: Array | null\n read_articles?: Array | null\n created_at?: string | null\n last_updated_at?: string | null\n email?: string | null\n weight_history?: Array | null\n consent?: boolean | null\n badges?: Array | null\n self_assessment?: string | null\n additional_data?: string | null\n} | null\n\nexport type BmiMetricType = {\n __typename: \"AskPCOSUser\"\n id: string\n weight: number\n height: number\n}\n\nexport interface iHabitCard {\n title: string\n Icon: any\n}\n\nexport interface iAddHabitIconCard {\n IconName: string\n title: string\n}\n\nexport interface iHabitsDetailsForTabs {\n slug: string\n title: string\n category: string\n Icon: any\n id: string\n}\n\nexport interface iHabitCategory {\n name: string\n id: string\n defaultIcon: any\n}\n\nexport interface iGoalProgressBar {\n forNoPeriods: number\n checkIns?: iCheckIn[]\n}\n\nexport interface iGoal {\n id: string\n forNoPeriods: number\n response: string\n goalId: string\n noTimesInPeriod: number\n obstacle: string\n monthPeriod: string\n yearPeriod: string\n solutions?: string\n selectedSolution: string\n startDate: string\n user_sub: string\n title: string\n checkIns?: iCheckInDict\n completed_goal: Boolean\n}\n\nexport interface iCheckIn {\n id: string\n goalId: string\n dateTime: string\n user_sub: string\n goalCompleted: boolean\n feelingScale?: number | null | undefined\n}\n\nexport interface iCheckInDict {\n [dateStr: string]: iCheckIn\n}\n\nexport enum CheckInCompletion {\n Completed,\n NotCompleted,\n Available,\n NotAvailable,\n}\n\nexport type iCheckInUnit = { [dateStr: string]: CheckInCompletion }\n\nexport type iCheckInValues = {\n [id: string]: iCheckInUnit\n}\n","import { CheckInCompletion } from \"components/types\"\nimport React from \"react\"\n\nimport { FaCheck, FaCheckGoal } from \"../../AppReactIcons\"\n\ninterface CircleFillProps {\n completed: CheckInCompletion\n date: string\n onClick: (date: string, completed: number) => void\n}\n\nexport const GoalReviewCircleIndicator: React.FC = ({\n completed,\n date,\n onClick,\n}) => {\n const weekdays = [\"S\", \"M\", \"T\", \"W\", \"T\", \"F\", \"S\"] // This will convert the index to the first letter of the day of the week\n const dayOfWeek = new Date(date).getDay() // This will get the day from the date\n\n if (completed === 0) {\n return (\n onClick(date, completed)}\n >\n \n \n )\n } else if (completed == 1) {\n return (\n onClick(date, completed)}\n >\n \n \n )\n } else if (completed == 2) {\n return (\n onClick(date, completed)}\n >\n

{weekdays[dayOfWeek]}

\n \n )\n } else if (completed == 3) {\n return (\n onClick(date, completed)}\n >\n

{weekdays[dayOfWeek]}

\n \n )\n }\n return null\n}\n","import { Link } from \"gatsby\"\nimport moment from \"moment\"\nimport React, { useEffect, useState } from \"react\"\nimport { FaArrowLeft } from \"react-icons/fa\"\nimport { toast } from \"react-toastify\"\n\nimport SetGoalMetrics from \"../../pages/goal-setting/set-goal-metrics\"\nimport toastError from \"../../utils/toastError\"\nimport {\n AddHabits_InternalLink,\n SetGoalMetrics_InternalLink,\n} from \"../../utils/urls\"\nimport { DarkAppButton, GreenAppButton } from \"../buttons\"\nimport ProceedButton from \"../buttons/ProceedButton\"\nimport Badge from \"../logos/Badge\"\nimport AddHabitsPage from \"../pageComponents/GoalSetting/AddHabitsPage\"\nimport GoalReviewButton from \"../pageComponents/GoalSetting/GoalList/GoalReviewButton\"\nimport GoalUpdateButton from \"../pageComponents/GoalSetting/GoalList/GoalReviewButton\"\nimport useStore from \"../pageComponents/Utils/Store\"\nimport { apiUpdateCheckIn, apiUpdateGoal } from \"../providors/goals-api\"\nimport {\n CheckInCompletion,\n iCheckInDict,\n iCheckInValues,\n iGoal,\n} from \"../types/index\"\nimport { GoalReviewCircleIndicator } from \"./GoalReviewCircleIndicator\"\n\ntype GoalWithCheckIns = iGoal & { checkIns?: iCheckInDict }\n\nexport type iCheckinValues = {\n [id: string]: iCheckinUnit\n}\n\nexport type iCheckinUnit = { [dateStr: string]: CheckInCompletion }\n\nexport interface iGoalReviewCard {\n updateDetails: () => void\n location: any\n goalID: string\n // updateSelection: (id: any) => void\n goalWithCheckins: GoalWithCheckIns\n onClickOpenCheckInModal: (\n date: string,\n completed: number,\n goalid: string,\n title: string\n ) => void\n}\n\nfunction checkIfDayHasCheckin(\n date: string,\n goalWithCheckins: GoalWithCheckIns\n) {\n if (goalWithCheckins.checkIns) {\n for (const [key] of Object.entries(goalWithCheckins.checkIns)) {\n const keyDate = moment(key).format()\n const dateTime = moment(date).format()\n if (keyDate == dateTime) {\n return true\n }\n }\n }\n return false\n}\n\nexport const GoalReviewCard: React.FC = ({\n goalWithCheckins,\n updateDetails,\n location,\n goalID,\n // updateSelection,\n onClickOpenCheckInModal,\n}) => {\n const { reloadTrue } = useStore()\n\n function checkInDays(goalWithCheckins: GoalWithCheckIns) {\n // This will return an array from with the dates from this Monday to Sunday, and the check in status.\n\n // TODO: Handle week spanning two months (shouldn't be needed anymore - pls confirm)\n const _values: iCheckinValues = { weekdays: {} }\n const today = moment()\n\n for (let i = 0; i < 7; i++) {\n // This will get the first day of the current week, starting from a Monday, as ISO has Monday as start of week. It will then add i days.\n const day = moment().startOf(\"isoWeek\").add(i, \"d\")\n const dayStr = day.format()\n if (day <= today) {\n if (\n goalWithCheckins.checkIns &&\n checkIfDayHasCheckin(dayStr, goalWithCheckins)\n ) {\n const existingValue = goalWithCheckins.checkIns[dayStr].goalCompleted\n _values[\"weekdays\"][dayStr] = existingValue\n ? CheckInCompletion.Completed\n : CheckInCompletion.NotCompleted\n } else {\n _values[\"weekdays\"][dayStr] = CheckInCompletion.Available\n }\n } else {\n _values[\"weekdays\"][dayStr] = CheckInCompletion.NotAvailable\n }\n }\n return _values\n }\n\n function checkInCompletionBuilder(checkIns: iCheckInValues) {\n // This returns an array of 0-6, which is Monday to Sunday, and the check in status for each day.\n const completionArray = []\n for (var date in checkIns[\"weekdays\"]) {\n completionArray.push({\n date: date,\n checkInStatus: checkIns[\"weekdays\"][date],\n })\n }\n return completionArray\n }\n\n const checkInDatesAndCompletion = checkInCompletionBuilder(\n checkInDays(goalWithCheckins)\n )\n const goalCompleteDate = (\n dateString: string,\n periodicityString: string\n ): Date => {\n return periodicityString == \"day\"\n ? moment(dateString).add(goalWithCheckins.forNoPeriods, \"d\").toDate()\n : periodicityString == \"week\"\n ? moment(dateString).add(goalWithCheckins.forNoPeriods, \"w\").toDate()\n : periodicityString == \"month\"\n ? moment(dateString).add(goalWithCheckins.forNoPeriods, \"M\").toDate()\n : new Date(dateString)\n }\n\n // Function to handle the checkbox state change\n const handleGoalCompletion = async () => {\n goalWithCheckins.completed_goal = true\n apiUpdateGoal(goalWithCheckins).catch(error => {\n toastError(toast, \"There was an error updating your goal\", \"top-right\")\n })\n }\n\n function onClickCheckInDayCircle(date: string, completed: number) {\n /* \n 0 is checked in, and completed\n 1 is check in, but not completed\n 2 is not checked in, and not completed\n\n This onClick function will call the onClick function in GoalReviewPage, which will pull up the modal with the information.\n \n \n Passing the 1's and 2's through just for extensibility for updating a checkin.\n */\n\n if (completed == 2) {\n onClickOpenCheckInModal(\n date,\n completed,\n goalWithCheckins.id,\n goalWithCheckins.title\n )\n } else if (completed == 3) {\n onClickOpenCheckInModal(\n date,\n completed,\n goalWithCheckins.id,\n goalWithCheckins.title\n )\n // If we get anything other than 0, we should not be able to change it for now.\n }\n }\n\n if (!goalWithCheckins.completed_goal)\n return (\n
\n

{goalWithCheckins.title}

\n

\n {goalWithCheckins.noTimesInPeriod +\n \" times a \" +\n goalWithCheckins.monthPeriod}\n

\n

\n {new Date(goalWithCheckins.startDate).toLocaleDateString(\"en-UK\") +\n \" - \" +\n goalCompleteDate(\n goalWithCheckins.startDate,\n goalWithCheckins.monthPeriod\n ).toLocaleDateString(\"en-UK\")}\n

\n
\n {/* We are passing in the checkIn Dates in order from Monday to Sunday already, so just need to convert them to days of the week in GoalReviewCircleIndicator */}\n {checkInDatesAndCompletion.map((checkIn, index) => (\n \n ))}\n
\n\n
\n \n \n \n\n
\n reloadTrue()}\n className=\"flex items-center justify-center\"\n type=\"checkbox\"\n onChange={handleGoalCompletion}\n />\n \n
\n
\n\n {/*
\n \n
*/}\n
\n )\n\n return (\n
\n
\n

\n {goalWithCheckins.title}\n

\n

\n {goalWithCheckins.noTimesInPeriod +\n \" times a \" +\n goalWithCheckins.monthPeriod}\n

\n

\n {new Date(goalWithCheckins.startDate).toLocaleDateString(\"en-Uk\") +\n \" - \" +\n goalCompleteDate(\n goalWithCheckins.startDate,\n goalWithCheckins.monthPeriod\n ).toLocaleDateString(\"en-UK\")}\n

\n
\n
\n \n
\n
\n )\n}\n","import Img from \"gatsby-image\"\nimport React from \"react\"\n\nexport const CardWrapper: React.FC<{\n children: object\n className?: string\n flexRow?: Boolean\n rounded?: Boolean\n}> = ({ children, className, flexRow = false, rounded = true }) => (\n \n {children}\n \n)\n\nexport const CardImage: React.FC<{ src: any }> = ({ src }) => {\n if (!src) {\n return (\n \n )\n }\n return (\n \n )\n}\n\nexport const CardContentWrapper: React.FC<{ children: object }> = ({\n children,\n}) => (\n
\n {children}\n
\n)\n","import { Link } from \"gatsby\"\nimport { navigate } from \"gatsby\"\nimport React from \"react\"\n\nimport { FaBookOpen } from \"../../AppReactIcons\"\nimport { DarkAppButton } from \"../buttons\"\nimport { iListingCardView } from \"../types\"\nimport { CardContentWrapper, CardImage, CardWrapper } from \"./base\"\n\nexport const ListingCardView: React.FC = ({\n title,\n image,\n // description,\n link,\n}) => {\n const CardLink = () => {\n if (!link) return \n else\n return (\n
\n \n } />\n \n
\n )\n }\n\n return (\n \n {\n if (!link) return\n navigate(link)\n }}\n >\n \n \n \n

{title}

\n {/* {description ? (\n

{description}

\n ) : (\n \n )} */}\n
\n \n
\n
\n
\n )\n}\n\nexport const ListingCard: React.FC = ({ ...rest }) => {\n return \n}\n","import { Link } from \"gatsby\"\nimport Img from \"gatsby-image\"\nimport React from \"react\"\n\nimport { iArticleTopicForPageContext, iTopicMetaData } from \"../types\"\n\nconst TopicCardView: React.FC = ({ title, image, Icon }) => {\n return (\n
\n
\n \n )\n}\n\nexport const ArticleTopicCard: React.FC = ({\n title,\n slug,\n image,\n description,\n slugPrefix,\n Icon,\n}) => {\n return (\n \n \n \n )\n}\n","import { Link, navigate } from \"gatsby\"\nimport Img from \"gatsby-image\"\nimport React from \"react\"\n\nimport { FaLink } from \"../../AppReactIcons\"\nimport { Lifestyle_InternalLink, Profile_InternalLink } from \"../../utils/urls\"\nimport OnlyWithProfile from \"../QueryUserProfile/OnlyWithProfile\"\nimport { DarkAppButton } from \"../buttons\"\nimport useStore from \"../pageComponents/Utils/Store\"\nimport { iAskSectionCard } from \"../types\"\nimport { CardContentWrapper, CardWrapper } from \"./base\"\n\nconst CardLink = ({\n title = \"Visit\",\n Icon = ,\n link = \"\",\n isUser = false,\n}) => {\n if (!link) return \n\n const { turnQuizTrue, turnQplTrue } = useStore()\n\n if (!isUser) {\n switch (title) {\n case \"Explore questions\":\n return (\n
\n \n \n \n
\n )\n case \"Take self assessment quiz\":\n return (\n
\n \n \n \n
\n )\n case \"Manage lifestyle\":\n return (\n
\n \n \n \n
\n )\n }\n } else {\n return (\n {\n let _LINK = data && data.length ? link : Profile_InternalLink\n if (link === Lifestyle_InternalLink) _LINK = link\n return (\n
\n \n \n \n
\n )\n }}\n />\n )\n }\n}\n\nexport const AskSectionCard: React.FC = ({\n title,\n link,\n description,\n image,\n buttonTitle,\n buttonIcon,\n isUser,\n}) => {\n const DESCRIPTION_LENGTH = 200\n\n let Button = () => (\n // @ts-ignore\n \n )\n\n return (\n \n {\n if (!link) return\n navigate(link)\n }}\n >\n \n \n \n

{title}

\n

\n {description.slice(0, DESCRIPTION_LENGTH)}\n {description.length > DESCRIPTION_LENGTH && \"...\"}\n

\n
\n
\n
\n
\n )\n}\n","import React from \"react\";\n\nimport { DarkAppButton } from \"../buttons\";\nimport { iHabitCard } from \"../types\";\n\nexport const HabitCard: React.FC = ({ title, Icon }) => {\n return (\n
\n

\n {Icon}\n {title}\n

\n
\n );\n};\n","import React from \"react\";\n\nimport { iAddHabitIconCard } from \"../types\";\n\nexport const AddHabitIconCard: React.FC = ({\n IconName,\n title,\n}) => {\n return (\n
\n \n

{IconName}

\n
\n
\n

{title}

\n
\n \n );\n};\n","import React from \"react\";\nimport { FaPlus } from \"react-icons/fa\";\n\nexport const AddHabitCard: React.FC = () => {\n return (\n
\n
\n \n \n
\n Add new\n
\n \n );\n};\n","import { API } from \"aws-amplify\"\n\nimport {\n CreateCheckInInput,\n CreateCheckInMutation,\n CreateCheckInMutationVariables,\n QueryCheckInsByUserSubQuery,\n QueryCheckInsByUserSubQueryVariables,\n QueryGoalsByUserSubQuery,\n QueryGoalsByUserSubQueryVariables,\n UpdateGoalInput,\n UpdateGoalMutation,\n UpdateGoalMutationVariables,\n CreateHabitInput,\n CreateHabitMutation,\n CreateHabitMutationVariables,\n ListHabitCategoriesQueryVariables,\n ListHabitCategoriesQuery,\n QueryHabitsByUserSubQueryVariables,\n QueryHabitsByUserSubQuery,\n CreateGoalInput,\n CreateGoalMutationVariables,\n CreateGoalMutation,\n UpdateCheckInInput,\n UpdateCheckInMutationVariables,\n UpdateCheckInMutation,\n DeleteGoalMutationVariables,\n DeleteGoalMutation,\n DeleteGoalInput,\n} from \"../../api/graphql/API\"\nimport {\n createCheckIn,\n updateGoal,\n createHabit,\n createGoal,\n updateCheckIn,\n deleteGoal,\n} from \"../../graphql/mutations\"\nimport {\n listHabitCategories,\n queryCheckInsByUserSub,\n queryGoalsByUserSub,\n queryHabitsByUserSub,\n} from \"../../graphql/queries\"\n\nexport const apiGetHabitCategories = async () => {\n const _data = (await API.graphql({\n query: listHabitCategories,\n variables: {} as ListHabitCategoriesQueryVariables,\n })) as { data: ListHabitCategoriesQuery }\n if (!_data || !_data.data || !_data.data.listHabitCategories) {\n throw Error(\"There are no categories\")\n }\n return _data.data.listHabitCategories\n}\n\nexport const apiGetHabits = async (user_sub: String) => {\n const _data = (await API.graphql({\n query: queryHabitsByUserSub,\n variables: { user_sub } as QueryHabitsByUserSubQueryVariables,\n })) as { data: QueryHabitsByUserSubQuery }\n if (!_data || !_data.data || !_data.data.queryHabitsByUserSub) {\n throw Error(\"There are no habits\")\n }\n return _data.data.queryHabitsByUserSub\n}\n\nexport const apiCreateNewHabit = async (habit: CreateHabitInput) => {\n const _data = (await API.graphql({\n query: createHabit,\n variables: {\n input: {\n categoryId: habit.categoryId,\n description: habit.description,\n user_sub: habit.user_sub,\n iconName: habit?.iconName,\n },\n } as CreateHabitMutationVariables,\n })) as { data: CreateHabitMutation }\n if (!_data || !_data.data || !_data.data.createHabit) {\n throw Error(\"No data - while updating user activities\")\n }\n return _data.data.createHabit\n}\n\nexport const apiQueryUserGoals = async (user_sub: String) => {\n const _data = (await API.graphql({\n query: queryGoalsByUserSub,\n variables: { user_sub } as QueryGoalsByUserSubQueryVariables,\n })) as { data: QueryGoalsByUserSubQuery }\n if (!_data || !_data.data || !_data.data.queryGoalsByUserSub) {\n throw Error(\"There are no categories\")\n }\n return _data.data.queryGoalsByUserSub\n}\n\nexport const apiQueryUserCheckIns = async (user_sub: String) => {\n const _data = (await API.graphql({\n query: queryCheckInsByUserSub,\n variables: { user_sub } as QueryCheckInsByUserSubQueryVariables,\n })) as { data: QueryCheckInsByUserSubQuery }\n\n if (!_data || !_data.data || !_data.data.queryCheckInsByUserSub) {\n throw Error(\"There are no Check ins\")\n }\n return _data.data.queryCheckInsByUserSub\n}\n\nexport const apiCreateNewCheckIn = async (checkIn: CreateCheckInInput) => {\n const _data = (await API.graphql({\n query: createCheckIn,\n variables: {\n input: {\n id: checkIn.id,\n goalId: checkIn.goalId,\n dateTime: checkIn.dateTime,\n user_sub: checkIn.user_sub,\n goalCompleted: checkIn.goalCompleted,\n },\n } as CreateCheckInMutationVariables,\n })) as { data: CreateCheckInMutation }\n if (!_data || !_data.data || !_data.data.createCheckIn) {\n throw Error(\"No data - while updating user activities\")\n }\n return _data.data.createCheckIn\n}\n\nexport const apiUpdateCheckIn = async (checkIn: UpdateCheckInInput) => {\n const _data = (await API.graphql({\n query: updateCheckIn,\n variables: {\n input: {\n id: checkIn.id,\n goalId: checkIn.goalId,\n dateTime: checkIn.dateTime,\n user_sub: checkIn.user_sub,\n goalCompleted: checkIn.goalCompleted,\n },\n } as UpdateCheckInMutationVariables,\n })) as { data: UpdateCheckInMutation }\n if (!_data || !_data.data || !_data.data.updateCheckIn) {\n throw Error(\"Cannot update goal checkin\")\n }\n return _data.data.updateCheckIn\n}\n\nexport const apiCreateNewGoal = async (goal: CreateGoalInput) => {\n const _data = (await API.graphql({\n query: createGoal,\n variables: {\n input: {\n forNoPeriods: goal.forNoPeriods,\n response: goal.response,\n goalId: goal.goalId,\n noTimesInPeriod: goal.noTimesInPeriod,\n obstacle: goal.obstacle,\n monthPeriod: goal.monthPeriod,\n yearPeriod: goal.yearPeriod,\n solutions: goal.solutions,\n selectedSolution: goal.selectedSolution,\n startDate: goal.startDate,\n user_sub: goal.user_sub,\n title: goal.title,\n completed_goal: goal.completed_goal,\n },\n } as CreateGoalMutationVariables,\n })) as { data: CreateGoalMutation }\n if (!_data || !_data.data || !_data.data.createGoal) {\n throw Error(\"No data - while updating user activities\")\n }\n return _data.data.createGoal\n}\n\nexport const apiUpdateGoal = async (goal: UpdateGoalInput) => {\n const _data = (await API.graphql({\n query: updateGoal,\n variables: {\n input: {\n forNoPeriods: goal.forNoPeriods,\n response: goal.response,\n goalId: goal.goalId,\n id: goal.id,\n noTimesInPeriod: goal.noTimesInPeriod,\n obstacle: goal.obstacle,\n monthPeriod: goal.monthPeriod,\n yearPeriod: goal.yearPeriod,\n solutions: goal.solutions,\n selectedSolution: goal.selectedSolution,\n startDate: goal.startDate,\n user_sub: goal.user_sub,\n title: goal.title,\n completed_goal: goal.completed_goal,\n },\n } as UpdateGoalMutationVariables,\n })) as { data: UpdateGoalMutation }\n if (!_data || !_data.data || !_data.data.updateGoal) {\n throw Error(\"Cannot update goal\")\n }\n return _data.data.updateGoal\n}\nexport const apiDeleteGoal = async (goal: DeleteGoalInput) => {\n const _data = (await API.graphql({\n query: deleteGoal,\n variables: {\n input: {\n id: goal.id,\n\n // completed_goal: goal.completed_goal,\n },\n } as DeleteGoalMutationVariables,\n })) as { data: DeleteGoalMutation }\n if (!_data || !_data.data || !_data.data.deleteGoal) {\n throw Error(\"Cannot delete goal\")\n }\n return _data.data.deleteGoal\n}\n","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAIAAAD2HxkiAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAACldJREFUeNrs3Wtv03YbwGEoZRyebRLivA22aYhNQki82vf/Apu2Fdi6lh62MppTW0jTloYkz/20kpenFJo4dg72db1AiIMLrn+9/3Yd53yv1zsHTM55EYIIQYSACEGEgAhBhIAIQYSACEGEgAhBhIAIQYSACEGEgAhBhIAIQYSACEGEgAhBhIAIQYSACEGEgAhBhMBsRLi1tbW6umpfM4vu379/8+bNXD/E/Bj+G+12u9ls+nQyi+LozftDzNnLMFkiBBGCCAERgggBEYIIARGCCAERgggBEYIIARGCCAERggiBnM1P+b9vbm7uzp07Pk+MolKpdDodEaaP8OHDhw4jRrG1tTXNEVqOgghBhIAIQYSACEGEgAhBhIAIQYSACEGEgAhBhIAIQYSACEGEgAhBhIAIQYSACEGEgAhBhIAIQYRARubtgkEcHBy02+0LFy5cvXrV3kCE49Dr9ba3txuNRr1ef/v27f/tsvn5a9eu3bp1K36Mn9tXiDB7r169WltbO9Fe4t27d7UjMRjvHYmf2GmIMButVuv58+fx4yB/uNPpRKv//PPP999/f/36dXuPdFyY+VcsPn/++ecBC0wcHh4uLCz89ddfdiAiHEmlUomWUr+p8srKytLSkt2ICFN68+bN4uLiiBt5+fJlLE3tTEQ4tHa7/fTp0263O/qmlpeXo2e7FBEOJ07n4rwuk01FyS9evCjPrsvkKxdlj/Dg4CCWkRlu8PXr1/V6vSR7L86Em82mikQ4kjiLy/zL+d9//12GXbezsxNfv169eqUiEY6kWq1mvs04LYzzzGLvt06ns7i42Ov1KpVK6kvKiPB/35qP5Wj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WpGWMUJjcPqV6vJM6SI0BmdCqS7PlC5CY3BWlOcbhuWK0BicIfv7+yW5PFOuCI1Bw1CExiBDqNfrJx6fJUJjkLHq9Xpl+MZ9WSI0BmdURFj4Z4WU5e2y4yz/iy++cEzPordv316+fFmEM0+BWI4CIgQRAiIEEQIiBBECIgQRAiIEEQIiBBGCCAERgggBEYIIgYmY9sdb9Hq9ZrPp88Qout2uCNPrdDo//fSTwwjLUUCEIEJAhCBCQIQgQkCEIEJAhCBCQIQgQkCEIEJAhCBCQIQgQkCEIEJAhCBCQIQgQkCEIEJAhCBCQIQgQkCEIEJAhCBCQIQgQkCEIEJAhCBCQIQgQkCEIEJAhCBCECEgQhAhIEIQISBCECEgQhAhIEIQISBCECEgQhAhIEIQISBCECEgQhAhIEIQIZCx871ez14AEYIIARGCCAERgggBEYIIARGCCAERgggBEYIIARGCCAERgggBEYIIARGCCAERgggBEYIIARGCCAERgggBEYIIARHC7PqvAAMA/BkrMLAeft8AAAAASUVORK5CYII=\""],"names":["_ref","enable","onClick","React","className","CheckInCompletion","GoalReviewCircleIndicator","completed","date","weekdays","dayOfWeek","Date","getDay","FaCheckGoal","checkIfDayHasCheckin","goalWithCheckins","checkIns","key","Object","entries","moment","format","GoalReviewCard","updateDetails","location","goalID","onClickOpenCheckInModal","reloadTrue","useStore","checkInDatesAndCompletion","completionArray","push","checkInStatus","checkInCompletionBuilder","_values","today","i","day","startOf","add","dayStr","existingValue","goalCompleted","Completed","NotCompleted","Available","NotAvailable","checkInDays","goalCompleteDate","dateString","periodicityString","forNoPeriods","toDate","onClickCheckInDayCircle","id","title","completed_goal","noTimesInPeriod","monthPeriod","startDate","toLocaleDateString","Badge","width","map","checkIn","index","Link","to","AddHabits_InternalLink","state","path","GoalReviewButton","type","onChange","async","apiUpdateGoal","catch","error","toastError","toast","CardWrapper","children","flexRow","rounded","join","CardImage","_ref2","src","Img","style","borderTopRightRadius","borderTopLeftRadius","height","fluid","backgroundImage","require","CardContentWrapper","_ref3","ListingCardView","image","link","CardLink","DarkAppButton","Icon","FaBookOpen","navigate","ListingCard","rest","TopicCardView","ArticleTopicCard","slug","description","slugPrefix","FaLink","isUser","turnQuizTrue","turnQplTrue","OnlyWithProfile","hideLoader","noRedirectToProfilePage","childrenWithProfileData","data","_LINK","length","Profile_InternalLink","Lifestyle_InternalLink","AskSectionCard","buttonTitle","buttonIcon","Button","slice","HabitCard","AddHabitIconCard","IconName","AddHabitCard","border","padding","FaPlus","apiQueryUserGoals","_data","API","graphql","query","queryGoalsByUserSub","variables","user_sub","Error","apiQueryUserCheckIns","queryCheckInsByUserSub","apiCreateNewCheckIn","createCheckIn","input","goalId","dateTime","apiCreateNewGoal","createGoal","goal","response","obstacle","yearPeriod","solutions","selectedSolution","updateGoal","apiDeleteGoal","deleteGoal"],"sourceRoot":""}