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0BAADnf,OAA2BuhB,GAAiBrC,IAC1F,CAAE,MAAOrf,GAQP,MAPAC,EAAAA,EAAgBC,SAAS,GAADC,OACnBwe,KAAKxd,UAAS,sFAAAhB,OAC4CuhB,GAC7D1hB,GAIIA,CACR,CACF,CAEA,sBAAoB2hB,CAAUtC,GAC5B,UACQV,KAAKC,aAAY,IAAMC,EAAAA,EAAWS,KAAK,mBAAoBD,IACnE,CAAE,MAAOrf,GAIP,MAHAC,EAAAA,EAAgBC,SAAS,GAADC,OAAIwe,KAAKxd,UAAS,yEAA0EnB,GAG9GA,CACR,CACF,EA5EmBuV,EACJpU,UAAY,iB","sources":["components/Advisor/AdvisorReviews.tsx","components/Helpers/AdvisorsHelper.tsx","components/Helpers/ErrorsHelper.ts","components/Pages/Account/Advisor/AdvisorEditPersonalPhoto/AdvisorEditPersonalPhoto.tsx","components/Pages/Account/Advisor/AdvisorEditProfilePhoto/AdvisorEditProfilePhoto.tsx","components/Pages/Advisors/AdvisorDetails/AdvisorDetailsSkeleton.tsx","components/Pages/Advisors/AdvisorDetails/AdvisorEditAttributes/AdvisorEditAttributes.tsx","components/Pages/Advisors/AdvisorDetails/AdvisorEditBio/AdvisorEditBio.tsx","components/Pages/Advisors/AdvisorDetails/AdvisorEditCustomAttributes/AdvisorEditCustomAttributes.tsx","components/Pages/Advisors/AdvisorDetails/AdvisorDetails.tsx","components/ui/LoadingAnimations/LoadingDots/LoadingDots.tsx","components/ui/NectarineButton/NectarineButton.tsx","components/ui/NectarineCheckboxInput/NectarineCheckboxInput.tsx","components/ui/NectarineDateInput/NectarineDateInput.tsx","components/ui/NectarineInfoIcon/NectarineInfoIcon.tsx","components/ui/NectarineSelectInput/NectarineSelectInput.tsx","components/ui/NectarineTextAreaInput/NectarineTextAreaInput.tsx","components/ui/NectarineTextInput/NectarineTextInput.tsx","services/api/AdvisorsApiService.ts","services/api/ReviewsApiService.ts","services/api/UsersApiService.ts"],"sourcesContent":["import uniqBy from 'lodash/uniqBy';\nimport { useEffect, useState } from 'react';\nimport { Label } from 'reactstrap';\nimport { SortOptions } from '../../constants';\nimport ReviewsApiService from '../../services/api/ReviewsApiService';\nimport { ErrorLogService } from '../../services/ErrorLogService';\nimport DateHelper from '../Helpers/DateHelper';\nimport AdvisorDetails from '../Pages/Advisors/AdvisorDetails/AdvisorDetails';\nimport LoadingSpinner from '../ui/LoadingAnimations/LoadingSpinner/LoadingSpinner';\nimport NectarineButton from '../ui/NectarineButton/NectarineButton';\nimport NectarineSelectInput from '../ui/NectarineSelectInput/NectarineSelectInput';\nimport { useNotificationsPanelContext } from '../ui/Notifications/NotificationsPanel/NotificationsPanelContext';\n\ninterface AdvisorReviewsProps {\n  advisorId: string;\n  title: string;\n  showPrivateComments: boolean;\n}\n\ninterface ReviewsViewInformation {\n  currentPage: number;\n  sortOption: SortOptions;\n  filteredByRating: number | null;\n}\n\nconst defaultReviewViewInformation: ReviewsViewInformation = {\n  currentPage: 1,\n  filteredByRating: null,\n  sortOption: SortOptions.Newest\n};\n\nconst reviewsResultsPerPage = 10;\n\nconst AdvisorReviews: React.FC<AdvisorReviewsProps> = (props: AdvisorReviewsProps) => {\n  const [isLoadingReviews, setIsLoadingReviews] = useState<boolean>(false);\n\n  const [reviewViewOptions, setReviewViewOptions] = useState<ReviewsViewInformation>(defaultReviewViewInformation);\n\n  const [reviewsAggregateData, setReviewsAggregateData] = useState<Advisor_ReviewsAggregateData_ViewModel | null>(null);\n\n  const [sortedReviewsData, setSortedReviewsData] = useState<Reviews_Review_ViewModel[]>([]);\n\n  const { showErrorNotification } = useNotificationsPanelContext();\n\n  useEffect(() => {\n    const loadData = async () => {\n      const [reviewsAggregateDataResult, reviewsDataResult] = await Promise.all([\n        ReviewsApiService.getAdvisorReviewsAggregateData(props.advisorId),\n        ReviewsApiService.getAdvisorReviewsData(\n          props.advisorId,\n          reviewViewOptions.currentPage,\n          reviewViewOptions.sortOption,\n          reviewViewOptions.filteredByRating ?? 0,\n          props.showPrivateComments\n        )\n      ]);\n\n      setReviewsAggregateData(reviewsAggregateDataResult);\n      setSortedReviewsData(reviewsDataResult);\n    };\n    loadData();\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, []);\n\n  const updateDisplayedReviews = async (viewOptions: ReviewsViewInformation, changedProperty: keyof ReviewsViewInformation) => {\n    try {\n      setIsLoadingReviews(true);\n\n      const nextResults = await ReviewsApiService.getAdvisorReviewsData(\n        props.advisorId,\n        viewOptions.currentPage,\n        viewOptions.sortOption,\n        viewOptions.filteredByRating ?? 0,\n        props.showPrivateComments\n      );\n\n      let newReviewsList: Reviews_Review_ViewModel[] = [];\n\n      // Start fresh if the sort or filter options changed\n      if (changedProperty === 'sortOption' || changedProperty === 'filteredByRating') {\n        newReviewsList = [...nextResults];\n      } else {\n        newReviewsList = [...sortedReviewsData, ...nextResults];\n\n        // Scroll to the first of the new batch of reviews we just got from the server,\n        // if we are appending more reviews to existing ones\n        const firstResultOfNewData = nextResults[0];\n        if (firstResultOfNewData) {\n          setTimeout(() => {\n            const elementToScrollTo = document.getElementById(firstResultOfNewData.id);\n            if (elementToScrollTo) {\n              document.getElementById(firstResultOfNewData.id)?.scrollIntoView();\n            }\n          }, 500);\n        }\n      }\n\n      newReviewsList = uniqBy(newReviewsList, (v) => v.id);\n\n      setSortedReviewsData(newReviewsList);\n    } catch (error) {\n      showErrorNotification('Sorry, but something went wrong when updating the displayed reviews.');\n\n      ErrorLogService.logError(\n        `${AdvisorDetails} - updateDisplayedReviews()`,\n        `An error occurred while updating displayed reviews.`,\n        error\n      );\n    } finally {\n      setIsLoadingReviews(false);\n    }\n  };\n\n  const getStyleOfReviewBar = (barValue: number): any => {\n    if (!reviewsAggregateData) {\n      return {};\n    }\n\n    const returnValue: any = {\n      width: (reviewsAggregateData.reviewsByValue[barValue] / reviewsAggregateData.totalReviews) * 100 + '%'\n    };\n\n    return returnValue;\n  };\n\n  const getRemainingReviewResultsToDisplay = (): number => {\n    if (!reviewsAggregateData) {\n      return 0;\n    }\n\n    const filteredReviews = reviewsAggregateData?.reviewsByValue[reviewViewOptions.filteredByRating ?? 0];\n\n    return Math.max(0, (filteredReviews ?? reviewsAggregateData.totalReviews) - reviewViewOptions.currentPage * reviewsResultsPerPage);\n  };\n\n  const getSortDisplayText = (): string => {\n    switch (reviewViewOptions.sortOption) {\n      case SortOptions.Highest:\n        return 'from highest to lowest';\n      case SortOptions.Lowest:\n        return 'from lowest to highest';\n      case SortOptions.Newest:\n        return 'from newest to oldest';\n      case SortOptions.Oldest:\n        return 'from oldest to newest';\n    }\n  };\n\n  return (\n    <>\n      <h1 className=\"font-rem-2-5\">{props.title}</h1>\n\n      {reviewsAggregateData ? (\n        <div className=\"reviewsSummary\">\n          <div className=\"d-flex flex-nowrap align-items-center\">\n            {[...Array(5).keys()].map((currRating) => {\n              return Math.floor(reviewsAggregateData.overallRating) > currRating ? (\n                <i key={currRating} className={`me-1 fa-solid fa-star greenStar`}></i>\n              ) : reviewsAggregateData.overallRating < currRating ? (\n                <i key={currRating} className={`me-1 fa-solid fa-star grayStar`}></i>\n              ) : (\n                // Partial star\n                <div key={currRating} className=\"partialStarArea\">\n                  <i className={`me-1 fa-solid fa-star grayStar`}></i>\n\n                  <i\n                    className={`me-1 fa-solid fa-star greenStar`}\n                    style={{ width: (reviewsAggregateData.overallRating - currRating) * 100 + '%' }}\n                  ></i>\n                </div>\n              );\n            })}\n            <span className=\"bold ms-3\">{reviewsAggregateData.overallRating ? reviewsAggregateData.overallRating.toFixed(1) : 'N/A'}</span>{' '}\n            &nbsp;overall rating (<span className=\"bold\">{reviewsAggregateData.totalReviews}</span> &nbsp;review\n            {reviewsAggregateData.totalReviews === 1 ? '' : 's'})\n          </div>\n\n          <div className=\"ratingBarsArea mt-4\">\n            {[...Array(5).keys()].reverse().map((currRating) => {\n              return (\n                <div\n                  key={currRating}\n                  className={`ratingBar pointer ${reviewViewOptions.filteredByRating === currRating + 1 ? 'isSelected' : ''}`}\n                  onClick={() => {\n                    const newVal: ReviewsViewInformation = {\n                      ...reviewViewOptions,\n                      filteredByRating: reviewViewOptions.filteredByRating === currRating + 1 ? null : currRating + 1,\n                      currentPage: 1\n                    };\n\n                    setReviewViewOptions(newVal);\n                    updateDisplayedReviews(newVal, 'filteredByRating');\n                  }}\n                  title={`${reviewsAggregateData.reviewsByValue[currRating + 1]}`}\n                >\n                  <span className=\"ratingLabel\">{currRating + 1}</span>\n                  <span\n                    className={`filledInArea ${reviewViewOptions.filteredByRating === currRating + 1 ? 'isSelected' : ''}`}\n                    style={{ ...getStyleOfReviewBar(currRating + 1) }}\n                  ></span>\n                </div>\n              );\n            })}\n          </div>\n          <div className=\"mt-5\">\n            <Label for=\"reviewsSort\" className=\"bold\">\n              Sort\n            </Label>\n          </div>\n\n          <div className=\"w-25\">\n            <NectarineSelectInput\n              style=\"rounded\"\n              items={[\n                { name: 'Newest First', value: SortOptions.Newest },\n                { name: 'Oldest First', value: SortOptions.Oldest },\n                { name: 'Highest First', value: SortOptions.Highest },\n                { name: 'Lowest First', value: SortOptions.Lowest }\n              ]}\n              value={reviewViewOptions.sortOption}\n              onChange={(v) => {\n                const newVal: ReviewsViewInformation = {\n                  ...reviewViewOptions,\n                  sortOption: v as number,\n                  currentPage: 1\n                };\n\n                // If the user sorts by highest or lowest, clear the filter\n                if ([SortOptions.Highest, SortOptions.Lowest].includes(newVal.sortOption)) {\n                  newVal.filteredByRating = null;\n                }\n\n                setReviewViewOptions(newVal);\n                updateDisplayedReviews(newVal, 'sortOption');\n              }}\n            />\n          </div>\n\n          {!sortedReviewsData.length ? (\n            <div className=\"mt-5 mb-3 text-center\">\n              {reviewsAggregateData.totalReviews > 0 ? (\n                <Label>\n                  No reviews were found that matched your filters.\n                  <br />\n                  <span\n                    className=\"underline pointer\"\n                    onClick={() => {\n                      const newObj: ReviewsViewInformation = {\n                        ...defaultReviewViewInformation,\n                        sortOption: reviewViewOptions.sortOption\n                      };\n\n                      setReviewViewOptions(newObj);\n                      updateDisplayedReviews(newObj, 'filteredByRating');\n                    }}\n                  >\n                    Show all reviews.\n                  </span>\n                </Label>\n              ) : (\n                <Label>No reviews were found.</Label>\n              )}\n            </div>\n          ) : (\n            <></>\n          )}\n\n          {sortedReviewsData.length && reviewViewOptions.filteredByRating ? (\n            <div className=\"mt-3\">\n              Showing <span className=\"bold\">{reviewViewOptions.filteredByRating} star reviews</span>\n              &nbsp;{getSortDisplayText()}. &nbsp;\n              <Label>\n                <span\n                  className=\"underline pointer\"\n                  onClick={() => {\n                    const newObj: ReviewsViewInformation = {\n                      ...defaultReviewViewInformation,\n                      sortOption: reviewViewOptions.sortOption\n                    };\n\n                    setReviewViewOptions(newObj);\n                    updateDisplayedReviews(newObj, 'filteredByRating');\n                  }}\n                >\n                  Show all reviews.\n                </span>\n              </Label>\n            </div>\n          ) : (\n            <></>\n          )}\n\n          <div className=\"mt-5\"></div>\n\n          {sortedReviewsData.map((currReview) => (\n            <div key={currReview.id} id={currReview.id} className=\"details-review\">\n              {[...Array(5).keys()].map((v) => {\n                return <i key={v} className={`me-1 fa-solid fa-star ${v < Math.floor(currReview.rating) ? 'greenStar' : 'grayStar'}`}></i>;\n              })}\n\n              <h3>{currReview.title}</h3>\n              <p>{currReview.body}</p>\n\n              {currReview.privateComments ? (\n                <div className=\"my-2\">\n                  <strong>Private Notes From {currReview.displayName}</strong>\n                  <div>{currReview.privateComments}</div>\n                </div>\n              ) : (\n                <></>\n              )}\n\n              <div className=\"review-footer\">\n                <div className=\"reviewer-name\">{currReview.displayName}</div>\n                <div className=\"review-date\">{DateHelper.printMonthYearLong(currReview.modifiedAt)}</div>\n              </div>\n            </div>\n          ))}\n\n          {isLoadingReviews ? <LoadingSpinner message=\"Loading reviews...\" /> : <></>}\n\n          {getRemainingReviewResultsToDisplay() ? (\n            <div className=\"text-center mb-5\">\n              <NectarineButton\n                text={`Show more (${getRemainingReviewResultsToDisplay()})`}\n                color=\"white\"\n                onClick={() => {\n                  const newVal: ReviewsViewInformation = {\n                    ...reviewViewOptions,\n                    currentPage: reviewViewOptions.currentPage + 1\n                  };\n\n                  setReviewViewOptions(newVal);\n                  updateDisplayedReviews(newVal, 'currentPage');\n                }}\n              />\n            </div>\n          ) : (\n            <></>\n          )}\n\n          {sortedReviewsData.length && reviewViewOptions.filteredByRating !== null && !getRemainingReviewResultsToDisplay() ? (\n            <div className=\"text-center mb-5\">\n              <NectarineButton\n                text=\"Show all reviews\"\n                color=\"white\"\n                onClick={() => {\n                  const newVal: ReviewsViewInformation = {\n                    ...reviewViewOptions,\n                    currentPage: 1,\n                    filteredByRating: null\n                  };\n\n                  setReviewViewOptions(newVal);\n                  updateDisplayedReviews(newVal, 'filteredByRating');\n                }}\n              />\n            </div>\n          ) : (\n            <></>\n          )}\n        </div>\n      ) : (\n        <></>\n      )}\n    </>\n  );\n};\n\nexport default AdvisorReviews;\n","export default class AdvisorsHelper {\n  public static getAdvisorDisplayName(advisorObj: Advisor_BasicDetails_ViewModel | User_BasicDetails_ViewModel): string {\n    if (!advisorObj) {\n      return '';\n    }\n\n    return [advisorObj.fullName, advisorObj.certifications].filter((v) => v).join(', ');\n  }\n\n  public static getAdvisorDisplayNameJSX(\n    advisorObj: Advisor_BasicDetails_ViewModel | User_BasicDetails_ViewModel,\n    fontSize: 'sm' | 'md' | 'lg'\n  ): JSX.Element {\n    if (!advisorObj) {\n      return <></>;\n    }\n\n    const trademarkSymbol = '®';\n    const certificationsContainsTrademarkSymbol = advisorObj.certifications?.includes(trademarkSymbol);\n\n    const returnString = [advisorObj.fullName, advisorObj.certifications].filter((v) => v).join(', ');\n\n    if (certificationsContainsTrademarkSymbol) {\n      const stringParts = returnString.split(trademarkSymbol);\n      let className = '';\n      switch (fontSize) {\n        case 'sm':\n          className = 'sm';\n          break;\n\n        case 'md':\n          className = 'm';\n          break;\n\n        case 'lg':\n          className = 'lg';\n          break;\n      }\n\n      const trademarkSymbolJSX = <span className={`font-${className}`}>{trademarkSymbol}</span>;\n\n      if (stringParts.length > 1) {\n        const stringPartsJSX: JSX.Element[] = stringParts.map((v, i) => <span key={i}>{v}</span>);\n        const stringPartsJSX2 = [...stringPartsJSX];\n\n        const iterationCount =\n          stringPartsJSX.length % 2 == 0 ? Math.floor(stringPartsJSX.length / 2) : Math.floor(stringPartsJSX.length / 2) + 1;\n        for (let i = 0; i < iterationCount; i++) {\n          stringPartsJSX2.splice(i * 2 + 1, 0, trademarkSymbolJSX);\n        }\n\n        return <>{stringPartsJSX2.map((v) => v)}</>;\n      } else {\n        return <span key={0}>{returnString}</span>;\n      }\n    } else {\n      return <span key={0}>{returnString}</span>;\n    }\n  }\n}\n","import { CommonApiBadRequestErrors, CommonErrorMessages } from '../../constants';\n\nexport default class ErrorsHelper {\n  public static getErrorMessageFromErrorObject(errorObject: string | Error | unknown): string {\n    let errorObjectAsString = '';\n\n    if (typeof errorObject === 'string') {\n      errorObjectAsString = (errorObject || '').trim();\n    } else if (errorObject instanceof Error) {\n      errorObjectAsString = errorObject.message;\n    }\n\n    if (!errorObjectAsString) {\n      return CommonErrorMessages.General;\n    }\n\n    switch (errorObjectAsString) {\n      case 'Failed to fetch':\n        return CommonErrorMessages.General;\n\n      case CommonApiBadRequestErrors.NotLoggedIn:\n        return CommonErrorMessages.NotLoggedIn;\n\n      default:\n        return errorObjectAsString;\n    }\n  }\n}\n","import { useRef, useState } from 'react';\nimport { Alert, Input, Modal, ModalBody, ModalFooter, ModalHeader } from 'reactstrap';\nimport AuthorizeService from '../../../../api-authorization/AuthorizeService';\nimport ErrorsHelper from '../../../../Helpers/ErrorsHelper';\nimport NectarineButton from '../../../../ui/NectarineButton/NectarineButton';\n\ninterface AdvisorEditPersonalPhotoProps {\n  show: boolean;\n  toggle: () => void;\n  save: () => void;\n  advisor: Advisor_BasicDetails_ViewModel;\n}\n\nconst AdvisorEditPersonalPhoto: React.FC<AdvisorEditPersonalPhotoProps> = (props: AdvisorEditPersonalPhotoProps) => {\n  const [savePhotoLoading, setSavePhotoLoading] = useState(false);\n  const [errorSection, setErrorSection] = useState<ErrorSection>({ show: false, text: null });\n  const [selectedFile, setSelectedFile] = useState<File | null>(null);\n\n  const formRef = useRef<HTMLFormElement | null>(null);\n\n  const handleFileSelect = (event: React.ChangeEvent<HTMLInputElement>) => {\n    setSelectedFile(event.target.files![0]);\n    hideError();\n  };\n\n  //Post the selected file to the API at /api/advisor/photo\n  const onSave = async () => {\n    if (selectedFile) {\n      hideError();\n      setSavePhotoLoading(true);\n      const formData = new FormData();\n      formData.append('file', selectedFile);\n\n      const token = await AuthorizeService.getAccessToken();\n\n      try {\n        await fetch('/api/advisor/photo', {\n          method: 'POST',\n          body: formData,\n          headers: !token\n            ? {}\n            : {\n                Authorization: `Bearer ${token}`\n              }\n        });\n\n        setSavePhotoLoading(false);\n\n        props.save();\n      } catch (error) {\n        showError(ErrorsHelper.getErrorMessageFromErrorObject(error));\n        setSavePhotoLoading(false);\n      }\n    }\n  };\n\n  function showError(text: string) {\n    setErrorSection({\n      show: true,\n      text\n    });\n  }\n\n  function hideError() {\n    setErrorSection({ text: null, show: false });\n  }\n\n  return (\n    <Modal isOpen={props.show} toggle={props.toggle}>\n      <form ref={formRef} noValidate>\n        <ModalHeader toggle={props.toggle}>Edit Personal Photo</ModalHeader>\n        <ModalBody>\n          {errorSection.show && <Alert color=\"danger\">{errorSection.text}</Alert>}\n          <p>\n            Choose a personal photo that highlights your personality, family, or interests. We recommend the photo be{' '}\n            <strong>horizontal</strong> orientation (wide, not tall) and a maximum of <strong>1MB</strong>.\n          </p>\n\n          <Input type=\"file\" onChange={handleFileSelect} />\n        </ModalBody>\n        <ModalFooter>\n          <div className=\"d-flex justify-content-end gap-2\">\n            <NectarineButton\n              text=\"Save Photo\"\n              color=\"blue\"\n              isDisabled={savePhotoLoading}\n              showLoadingDots={savePhotoLoading}\n              onClick={async () => {\n                const formIsValid = formRef.current?.checkValidity();\n                formRef.current!.reportValidity();\n\n                if (formIsValid) {\n                  await onSave();\n                }\n              }}\n            />\n          </div>\n        </ModalFooter>\n      </form>\n    </Modal>\n  );\n};\n\nexport default AdvisorEditPersonalPhoto;\n","import { useRef, useState } from 'react';\nimport { Alert, Input, Modal, ModalBody, ModalFooter, ModalHeader } from 'reactstrap';\nimport AdvisorsApiService from '../../../../../services/api/AdvisorsApiService';\nimport ErrorsHelper from '../../../../Helpers/ErrorsHelper';\nimport NectarineButton from '../../../../ui/NectarineButton/NectarineButton';\nimport { useNotificationsPanelContext } from '../../../../ui/Notifications/NotificationsPanel/NotificationsPanelContext';\n\ninterface AdvisorEditProfilePhotoProps {\n  show: boolean;\n  toggle: () => void;\n  save: () => void;\n  advisor: Advisor_BasicDetails_ViewModel;\n}\n\nconst AdvisorEditProfilePhoto: React.FC<AdvisorEditProfilePhotoProps> = (props: AdvisorEditProfilePhotoProps) => {\n  const [savePhotoLoading, setSavePhotoLoading] = useState(false);\n  const [errorSection, setErrorSection] = useState<ErrorSection>({ show: false, text: null });\n  const [selectedFile, setSelectedFile] = useState<File | null>(null);\n\n  const { showSuccessNotification, showInfoNotification } = useNotificationsPanelContext();\n\n  const formRef = useRef<HTMLFormElement | null>(null);\n\n  const handleFileSelect = (event: React.ChangeEvent<HTMLInputElement>) => {\n    setSelectedFile(event.target.files![0]);\n    hideError();\n  };\n\n  //Post the selected file to the API at /api/advisor/photo\n  const onSave = async () => {\n    if (selectedFile) {\n      hideError();\n\n      const formData = new FormData();\n      formData.append('file', selectedFile);\n\n      try {\n        setSavePhotoLoading(true);\n\n        await AdvisorsApiService.uploadProfilePhoto(formData);\n\n        showSuccessNotification('Your profile photo was uploaded successfully.');\n\n        props.save();\n      } catch (error) {\n        showError(ErrorsHelper.getErrorMessageFromErrorObject(error));\n      } finally {\n        setSavePhotoLoading(false);\n      }\n    }\n  };\n\n  function showError(text: string) {\n    setErrorSection({\n      show: true,\n      text\n    });\n  }\n\n  function hideError() {\n    setErrorSection({ show: false, text: null });\n  }\n\n  return (\n    <Modal isOpen={props.show} toggle={props.toggle}>\n      <form noValidate ref={formRef}>\n        <ModalHeader toggle={props.toggle}>Upload New Profile Pic</ModalHeader>\n\n        <ModalBody>\n          {errorSection.show && <Alert color=\"danger\">{errorSection.text}</Alert>}\n          <p>\n            Please make sure you are looking directly at the camera, and your face and part of your shoulders are visible.\n            <br />\n            There is a maximum photo size of <strong>1MB</strong>.\n          </p>\n\n          <Input type=\"file\" onChange={handleFileSelect} />\n        </ModalBody>\n        <ModalFooter>\n          <NectarineButton\n            color=\"blue\"\n            text=\"Save Profile Pic\"\n            isDisabled={savePhotoLoading || !selectedFile}\n            onDisabledClickFn={() => {\n              showInfoNotification('Please select a photo to upload.');\n            }}\n            showLoadingDots={savePhotoLoading}\n            onClick={async () => {\n              await onSave();\n            }}\n          />\n        </ModalFooter>\n      </form>\n    </Modal>\n  );\n};\n\nexport default AdvisorEditProfilePhoto;\n","import { Col, Container, Row } from 'reactstrap';\nimport Skeleton from 'react-loading-skeleton';\nimport { AttributeCategoriesText, SortOptions } from '../../../../constants';\nimport { FAQs } from '../../../HomeElements/FAQs';\nimport { DisclaimerRow } from '../../../DisclaimerRow/DisclaimerRow';\n\nconst AdvisorDetailsSkeleton = () => {\n  return (\n    <Container>\n      <Row className=\"advisor-details\">\n        <Col xl=\"4\" lg=\"5\">\n          <div className=\"checkout-box position-relative\">\n            <Skeleton circle={true} height={280} width={280} className=\"circle-image headshot center\" />\n\n            <div className=\"center\">\n              <Skeleton inline={true} width=\"60%\" />\n            </div>\n            <h3 className=\"center\">\n              <Skeleton inline={true} width=\"40%\" />\n            </h3>\n\n            <Skeleton height={200} borderRadius=\"1rem\" />\n            <Skeleton height={200} borderRadius=\"1rem\" className=\"mt-3\" />\n            <p className=\"center mt-2\">\n              <Skeleton inline={true} width=\"50%\" />\n            </p>\n            <p className=\"center mt-2\">\n              <Skeleton height={40} width=\"80%\" borderRadius=\"5rem\" />\n            </p>\n            <Row className=\"center\">\n              <div className=\"next-available\">\n                <i className=\"fa-regular fa-clock att-icon\"></i> <Skeleton inline={true} width=\"60%\" />\n              </div>\n            </Row>\n          </div>\n        </Col>\n\n        <Col xl=\"8\" lg=\"7\">\n          <h1>\n            <Skeleton inline={true} width=\"40%\" />\n          </h1>\n          <Row className=\"details-highlights\">\n            <Col lg=\"12\" xl=\"4\" className=\"center\">\n              <i className=\"fa-regular fa-lightbulb att-icon\"></i> <Skeleton inline={true} width=\"15%\" /> years of experience\n            </Col>\n            <Col lg=\"12\" xl=\"4\" className=\"center\">\n              <i className=\"fa-regular fa-calendar att-icon\"></i>{' '}\n              <strong>\n                <Skeleton inline={true} width=\"15%\" />\n              </strong>{' '}\n              meetings completed\n            </Col>\n\n            <Col lg=\"12\" xl=\"4\" className=\"center\">\n              <i className=\"fa-solid fa-star att-icon\"></i>{' '}\n              <strong>\n                <Skeleton inline={true} width=\"15%\" />\n              </strong>{' '}\n              average review\n            </Col>\n          </Row>\n\n          <div className=\"d-flex\">\n            <h2>Bio</h2>\n          </div>\n\n          <div>\n            <Skeleton count={5} />\n          </div>\n\n          <h2>{AttributeCategoriesText.ICanHelpYouWith}</h2>\n\n          <Row>\n            {Array.from({ length: 8 }).map((_, i) => (\n              <Col xs=\"12\" xl=\"6\" className=\"mb-4\" key={i}>\n                <Skeleton inline={true} width=\"80%\" />\n              </Col>\n            ))}\n          </Row>\n\n          <h2>{AttributeCategoriesText.IEnjoyWorkingWith}</h2>\n\n          <Row>\n            {Array.from({ length: 8 }).map((_, i) => (\n              <Col xs=\"12\" xl=\"6\" className=\"mb-4\" key={i}>\n                <Skeleton inline={true} width=\"80%\" />\n              </Col>\n            ))}\n          </Row>\n\n          <div className=\"d-flex\">\n            <h2>Personal Stuff</h2>\n          </div>\n\n          <p>\n            <Skeleton count={3} />\n          </p>\n\n          <Row>\n            <Col xs=\"12\" className=\"mb-4\">\n              <Skeleton height={400} />\n            </Col>\n          </Row>\n\n          <div className=\"d-flex\">\n            <h2>Education &amp; Designations</h2>\n          </div>\n\n          <Row>\n            {Array.from({ length: 4 }).map((_, i) => (\n              <Col xs=\"12\" xl=\"6\" className=\"mb-4\" key={i}>\n                <Skeleton inline={true} width=\"10%\" /> <Skeleton inline={true} width=\"80%\" />\n              </Col>\n            ))}\n          </Row>\n\n          <div className=\"d-flex\">\n            <h2>Experience</h2>\n          </div>\n\n          <Row>\n            {Array.from({ length: 4 }).map((_, i) => (\n              <Col xs=\"12\" xl=\"6\" className=\"mb-4\" key={i}>\n                <Skeleton inline={true} width=\"10%\" /> <Skeleton inline={true} width=\"80%\" />\n              </Col>\n            ))}\n          </Row>\n\n          <h2>Reviews</h2>\n\n          <div className=\"reviewsSummary\">\n            <Skeleton count={5} />\n          </div>\n\n          <div className=\"mt-4\"></div>\n          <h2>Frequently Asked Questions</h2>\n          <FAQs />\n\n          <DisclaimerRow />\n        </Col>\n      </Row>\n    </Container>\n  );\n};\nexport default AdvisorDetailsSkeleton;\n","import React, { useEffect, useRef, useState } from 'react';\nimport { Alert, Col, Input, Label, Modal, ModalBody, ModalFooter, ModalHeader, Row } from 'reactstrap';\nimport { AttributeCategoriesText } from '../../../../../constants';\nimport AdvisorsApiService from '../../../../../services/api/AdvisorsApiService';\nimport ErrorsHelper from '../../../../Helpers/ErrorsHelper';\nimport NectarineButton from '../../../../ui/NectarineButton/NectarineButton';\n\n// NOTE: This is also enforced on the server so any changes made here must also be made elsewhere\nconst attributesSectionLimit = 10;\n\ninterface AdvisorEditAttributesProps {\n  advisor: Advisor_BasicDetails_ViewModel;\n  show: boolean;\n  toggle: () => void;\n  save: () => void;\n}\n\nexport const AdvisorEditAttributes: React.FC<AdvisorEditAttributesProps> = (props: AdvisorEditAttributesProps) => {\n  const [errorSection, setErrorSection] = useState<ErrorSection>({ show: false, text: null });\n  const [sharedAttributes, setSharedAttributes] = useState<Advisor_BasicDetails_ViewModel | null>(null);\n  const [selectedAttributes, setSelectedAttributes] = useState<string[]>([]);\n  const [saveAttributesLoading, setSaveAttributesLoading] = useState<boolean>(false);\n\n  const formRef = useRef<HTMLFormElement | null>(null);\n\n  useEffect(() => {\n    const loadData = async () => {\n      const attributesData = await AdvisorsApiService.getAdvisorsSharedAttributes();\n      setSharedAttributes(attributesData);\n\n      //Populate selected attiributes based on advisor sharedAttribute IDs\n      const allAttributes = props.advisor.iCanHelpYouWith.map((a) => a.id).concat(props.advisor.iEnjoyWorkingWith.map((a) => a.id));\n      setSelectedAttributes(allAttributes);\n\n      validateSelectedAttributes(allAttributes);\n    };\n    loadData();\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, []);\n\n  const handleCheckboxChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n    const { value, checked } = event.target;\n\n    let newArray = [];\n\n    if (checked) {\n      newArray = [...selectedAttributes, value];\n      setSelectedAttributes(newArray);\n    } else {\n      newArray = selectedAttributes.filter((v) => v !== value);\n      setSelectedAttributes(newArray);\n    }\n\n    validateSelectedAttributes(newArray);\n  };\n\n  // NOTE: We have to pass parameters to this function instead of referencing state variables because\n  // we will get stale state values if this code references them in the same render cycle that they get set\n  function validateSelectedAttributes(allSelectedAttributes: string[]) {\n    const countOfSelectedAttributes1 = getCountOfSelectedAttributesBySection(1, allSelectedAttributes);\n    const countOfSelectedAttributes2 = getCountOfSelectedAttributesBySection(2, allSelectedAttributes);\n\n    if (countOfSelectedAttributes1 > attributesSectionLimit || countOfSelectedAttributes2 > attributesSectionLimit) {\n      showError(`Please select up to ${attributesSectionLimit} details from each section.`);\n    } else {\n      hideError();\n    }\n  }\n\n  const onSave = async () => {\n    setSaveAttributesLoading(true);\n\n    try {\n      await AdvisorsApiService.setAdvisorsSharedAttributes(selectedAttributes);\n      setSaveAttributesLoading(false);\n      props.save();\n    } catch (error) {\n      showError(ErrorsHelper.getErrorMessageFromErrorObject(error));\n      setSaveAttributesLoading(false);\n    }\n\n    return false;\n  };\n\n  function showError(text: string) {\n    setErrorSection({\n      show: true,\n      text\n    });\n  }\n\n  function hideError() {\n    setErrorSection({\n      show: false,\n      text: null\n    });\n  }\n\n  // NOTE: We have to pass parameters to this function instead of referencing state variables because\n  // we will get stale state values if this code references them in the same render cycle that they get set\n  function getCountOfSelectedAttributesBySection(sectionType: number, allSelectedAttributes: string[]) {\n    if (!sharedAttributes) {\n      return 0;\n    }\n\n    if (sectionType === 1) {\n      const allAttributeIdsInSection = sharedAttributes.iCanHelpYouWith.map((v) => v.id);\n      return allSelectedAttributes.filter((v) => allAttributeIdsInSection.includes(v)).length;\n    } else {\n      const allAttributeIdsInSection = sharedAttributes.iEnjoyWorkingWith.map((v) => v.id);\n      return allSelectedAttributes.filter((v) => allAttributeIdsInSection.includes(v)).length;\n    }\n  }\n\n  function isSaveButtonEnabled() {\n    if (saveAttributesLoading) {\n      return false;\n    }\n\n    // We only allow the user to choose up to x attributes from each section\n    const countOfSelectedAttributes1 = getCountOfSelectedAttributesBySection(1, selectedAttributes);\n    const countOfSelectedAttributes2 = getCountOfSelectedAttributesBySection(2, selectedAttributes);\n\n    if (countOfSelectedAttributes1 > attributesSectionLimit || countOfSelectedAttributes2 > attributesSectionLimit) {\n      return false;\n    }\n\n    return true;\n  }\n\n  return (\n    <Modal isOpen={props.show} toggle={() => {}}>\n      <form ref={formRef} noValidate>\n        <ModalHeader toggle={props.toggle}>\n          <div className=\"bold\">Edit Experience Details</div>\n        </ModalHeader>\n        <ModalBody>\n          {errorSection.show && <Alert color=\"danger\">{errorSection.text}</Alert>}\n\n          <h3>\n            {AttributeCategoriesText.ICanHelpYouWith}\n\n            <div className=\"c-gray\">\n              <div className=\"mb-2\">\n                (Choose up to {attributesSectionLimit}\n                {getCountOfSelectedAttributesBySection(1, selectedAttributes) > 0 ? (\n                  <>\n                    <span className={'mx-2'}>&bull;</span>\n                    <span className={getCountOfSelectedAttributesBySection(1, selectedAttributes) > attributesSectionLimit ? 'c-red' : ''}>\n                      {getCountOfSelectedAttributesBySection(1, selectedAttributes)} Currently Selected\n                    </span>\n                  </>\n                ) : (\n                  <></>\n                )}\n                )\n              </div>\n            </div>\n          </h3>\n\n          {sharedAttributes && (\n            <Row>\n              {sharedAttributes.iCanHelpYouWith\n                .sort((a, b) => (a.title > b.title ? 1 : -1))\n                .map((item) => (\n                  <Col key={item.id} sm=\"6\" xs=\"12\">\n                    <Input\n                      type=\"checkbox\"\n                      id={item.id}\n                      value={item.id}\n                      checked={selectedAttributes.includes(item.id)}\n                      onChange={handleCheckboxChange}\n                    />{' '}\n                    <Label for={item.id}>\n                      <i className={'fa-light att-icon ' + item.iconTag}></i> {item.title}\n                    </Label>\n                  </Col>\n                ))}\n            </Row>\n          )}\n\n          <h3 className=\"mt-2\">\n            {AttributeCategoriesText.IEnjoyWorkingWith}\n\n            <div className=\"c-gray\">\n              <span className=\"mb-2\">\n                (Choose up to {attributesSectionLimit}\n                {getCountOfSelectedAttributesBySection(2, selectedAttributes) > 0 ? (\n                  <>\n                    <span className=\"mx-2\">&bull;</span>\n\n                    <span className={getCountOfSelectedAttributesBySection(2, selectedAttributes) > attributesSectionLimit ? 'c-red' : ''}>\n                      {getCountOfSelectedAttributesBySection(2, selectedAttributes)} Currently Selected\n                    </span>\n                  </>\n                ) : (\n                  <></>\n                )}\n                )\n              </span>\n            </div>\n          </h3>\n          {sharedAttributes && (\n            <Row>\n              {sharedAttributes.iEnjoyWorkingWith\n                .sort((a, b) => (a.title > b.title ? 1 : -1))\n                .map((item) => (\n                  <Col key={item.id} sm=\"6\" xs=\"12\">\n                    <Input\n                      type=\"checkbox\"\n                      id={item.id}\n                      value={item.id}\n                      checked={selectedAttributes.includes(item.id)}\n                      onChange={handleCheckboxChange}\n                    />{' '}\n                    <Label for={item.id}>\n                      <i className={'fa-light att-icon ' + item.iconTag}></i> {item.title}\n                    </Label>\n                  </Col>\n                ))}\n            </Row>\n          )}\n        </ModalBody>\n        <ModalFooter>\n          <div className=\"d-flex gap-2\">\n            <NectarineButton\n              text=\"Cancel\"\n              color=\"white\"\n              onClick={() => {\n                props.toggle();\n              }}\n            />\n\n            <NectarineButton\n              text=\"Save Details\"\n              showLoadingDots={saveAttributesLoading}\n              isDisabled={!isSaveButtonEnabled()}\n              onClick={() => {\n                const formIsValid = formRef.current?.checkValidity();\n                formRef.current!.reportValidity();\n\n                if (formIsValid) {\n                  onSave();\n                }\n              }}\n            />\n          </div>\n        </ModalFooter>\n      </form>\n    </Modal>\n  );\n};\n","import { useRef, useState } from 'react';\nimport { Alert, Modal, ModalBody, ModalFooter, ModalHeader } from 'reactstrap';\nimport AdvisorsApiService from '../../../../../services/api/AdvisorsApiService';\nimport ErrorsHelper from '../../../../Helpers/ErrorsHelper';\nimport NectarineButton from '../../../../ui/NectarineButton/NectarineButton';\nimport NectarineDateInput from '../../../../ui/NectarineDateInput/NectarineDateInput';\nimport NectarineTextAreaInput from '../../../../ui/NectarineTextAreaInput/NectarineTextAreaInput';\nimport { useNotificationsPanelContext } from '../../../../ui/Notifications/NotificationsPanel/NotificationsPanelContext';\n\ninterface AdvisorEditBioProps {\n  show: boolean;\n  toggle: () => void;\n  advisor: Advisor_BasicDetails_ViewModel;\n  save: (updatedAdvisorVM: Advisor_BasicDetails_ViewModel) => void;\n}\n\nconst AdvisorEditBio: React.FC<AdvisorEditBioProps> = (props: AdvisorEditBioProps) => {\n  const [saveBioLoading, setSaveBioLoading] = useState(false);\n  const [advisorToEdit, setAdvisorToEdit] = useState<Advisor_EditAdvisor_EditModel>({ ...props.advisor });\n  const [errorSection, setErrorSection] = useState<ErrorSection>({ show: false, text: null });\n\n  const { showSuccessNotification } = useNotificationsPanelContext();\n\n  const formRef = useRef<HTMLFormElement | null>(null);\n\n  const onSave = async () => {\n    try {\n      setSaveBioLoading(true);\n\n      await AdvisorsApiService.updateAdvisorBio(advisorToEdit);\n\n      props.save({\n        ...props.advisor,\n        experienceStart: advisorToEdit.experienceStart,\n        personalBio: advisorToEdit.personalBio,\n        longBio: advisorToEdit.longBio\n      });\n\n      showSuccessNotification('Your profile information was updated successfully.');\n    } catch (error) {\n      showError(ErrorsHelper.getErrorMessageFromErrorObject(error));\n    } finally {\n      setSaveBioLoading(false);\n    }\n\n    return false;\n  };\n\n  function showError(text: string) {\n    setErrorSection({\n      show: true,\n      text\n    });\n  }\n\n  function hideError() {\n    setErrorSection({ show: false, text: null });\n  }\n\n  return (\n    <Modal isOpen={props.show} toggle={props.toggle}>\n      <form ref={formRef} noValidate>\n        <ModalHeader toggle={props.toggle}>\n          <div className=\"bold\">Edit Bio</div>\n        </ModalHeader>\n        <ModalBody>\n          {errorSection.show ? <Alert color=\"danger\">{errorSection.text}</Alert> : <></>}\n\n          <NectarineDateInput\n            label=\"Experience Start Date\"\n            value={advisorToEdit.experienceStart ?? new Date()}\n            onChange={(newVal) => {\n              setAdvisorToEdit((a) => ({\n                ...a,\n                experienceStart: newVal\n              }));\n            }}\n          />\n\n          <div className=\"mt-3\"></div>\n\n          <NectarineTextAreaInput\n            label=\"Bio (1,000 max characters)\"\n            placeholder=\"e.g. Hi, I'm Shane! I'm such a personal finance nerd that I kept a budget on our family trips at age 7. After working at a Wall Street firm for eight years, I started my own financial planning firm and also became a personal finance content creator. My main goal is to make you feel more confident with your money. And I will always encourage you to pursue your dreams, whether it is being a successful entrepreneur or achieving financial independence. I'd love to learn about your story, how you got to where you are today, and how I can help!\"\n            rows={6}\n            required\n            maxLength={1000}\n            value={advisorToEdit.longBio}\n            onChange={(e) => {\n              hideError();\n              setAdvisorToEdit((a) => ({\n                ...a,\n                longBio: e ?? ''\n              }));\n            }}\n          />\n\n          <div className=\"mt-3\"></div>\n\n          <NectarineTextAreaInput\n            label=\"Personal Stuff (500 max characters)\"\n            placeholder=\"e.g. I've lived all over the US - from LA to NYC, Boston, SF, Austin, and Chicago. But this guy likes my backyard in the suburbs so I guess I'm staying put.\"\n            rows={6}\n            required\n            maxLength={500}\n            value={advisorToEdit.personalBio}\n            onChange={(e) => {\n              hideError();\n              setAdvisorToEdit((a) => ({\n                ...a,\n                personalBio: e ?? ''\n              }));\n            }}\n          />\n        </ModalBody>\n        <ModalFooter>\n          <div className=\"d-flex gap-2\">\n            <NectarineButton\n              text=\"Cancel\"\n              color=\"white\"\n              onClick={() => {\n                props.toggle();\n              }}\n            />\n\n            <NectarineButton\n              text=\"Save Bio\"\n              showLoadingDots={saveBioLoading}\n              isDisabled={saveBioLoading}\n              onClick={() => {\n                const formIsValid = formRef.current?.checkValidity();\n                formRef.current!.reportValidity();\n\n                if (formIsValid) {\n                  onSave();\n                }\n              }}\n            />\n          </div>\n        </ModalFooter>\n      </form>\n    </Modal>\n  );\n};\n\nexport default AdvisorEditBio;\n","import { addMonths, startOfDay, subYears } from 'date-fns';\nimport orderBy from 'lodash/orderBy';\nimport { useEffect, useRef, useState } from 'react';\nimport { Col, Modal, ModalBody, ModalFooter, ModalHeader, Row } from 'reactstrap';\nimport AdvisorsApiService from '../../../../../services/api/AdvisorsApiService';\nimport DateHelper from '../../../../Helpers/DateHelper';\nimport ErrorsHelper from '../../../../Helpers/ErrorsHelper';\nimport { useConfirmationOverlayContext } from '../../../../ui/ConfirmationOverlay/ConfirmationOverlayContext';\nimport NectarineButton from '../../../../ui/NectarineButton/NectarineButton';\nimport NectarineCheckboxInput from '../../../../ui/NectarineCheckboxInput/NectarineCheckboxInput';\nimport NectarineDateInput from '../../../../ui/NectarineDateInput/NectarineDateInput';\nimport NectarineSelectInput from '../../../../ui/NectarineSelectInput/NectarineSelectInput';\nimport NectarineTextInput from '../../../../ui/NectarineTextInput/NectarineTextInput';\nimport { useNotificationsPanelContext } from '../../../../ui/Notifications/NotificationsPanel/NotificationsPanelContext';\n\ninterface EditCustomAttributesProps {\n  attributes: Advisor_Attribute_ViewModel[];\n  sortByFn?: (inputItem: Advisor_Attribute_ViewModel) => unknown;\n  sortByDirection?: 'asc' | 'desc';\n  show: boolean;\n  onSave: () => void;\n  toggle: () => void;\n  categoryId: number;\n  title: string;\n}\n\ninterface AdvisorEditModel extends Advisor_Attribute_EditModel {\n  current: boolean;\n}\n\nconst startDate_Min = subYears(new Date(), 50);\nconst startDate_Max = addMonths(new Date(), 1);\n\nconst endDate_Min = subYears(new Date(), 50);\nconst endDate_Max = addMonths(new Date(), 3);\n\nconst AdvisorEditCustomAttributes: React.FC<EditCustomAttributesProps> = (props: EditCustomAttributesProps) => {\n  const [attributes, setAttributes] = useState<Advisor_Attribute_ViewModel[]>([]);\n  // const [errorSection, setErrorSection] = useState<ErrorSection>({ show: false, text: null });\n  const [newAttribute, setNewAttribute] = useState<AdvisorEditModel | null>(null);\n\n  const formRef = useRef<HTMLFormElement | null>(null);\n\n  const { showConfirmationOverlay } = useConfirmationOverlayContext();\n\n  const { showSuccessNotification, showErrorNotification } = useNotificationsPanelContext();\n\n  useEffect(() => {\n    let newArray = props.attributes;\n\n    if (props.sortByFn) {\n      newArray = orderBy(newArray, [props.sortByFn], [props.sortByDirection ?? 'asc']);\n    }\n\n    setAttributes(newArray);\n\n    if (newArray.length == 0) {\n      createNewItem();\n    }\n\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, []);\n\n  const saveItem = async () => {\n    try {\n      const savedAttributeId = await AdvisorsApiService.updateAdvisorAttribute(newAttribute!);\n\n      const newAttributesArray = attributes.filter((v) => v.id !== savedAttributeId);\n      newAttributesArray.push({\n        ...newAttribute!,\n        id: savedAttributeId\n      });\n\n      setAttributes(newAttributesArray);\n\n      setNewAttribute(null);\n    } catch (error) {\n      showErrorNotification(ErrorsHelper.getErrorMessageFromErrorObject(error));\n    }\n  };\n\n  const deleteItem = async (attributeToDelete: Advisor_Attribute_ViewModel) => {\n    showConfirmationOverlay({\n      title: 'Confirm',\n      text: 'Are you sure you want to remove this item?',\n      yesButtonText: 'Remove',\n      yesAction: async () => {\n        try {\n          await AdvisorsApiService.deleteAdvisorAttribute(attributeToDelete.id);\n\n          // Remove the deleted attribute from the attributes array\n          const newAttributes = attributes.filter((item) => item.id !== attributeToDelete.id);\n          setAttributes(newAttributes);\n\n          showSuccessNotification('The item was removed successfully.');\n        } catch (error) {\n          showErrorNotification(ErrorsHelper.getErrorMessageFromErrorObject(error));\n        }\n      }\n    });\n  };\n\n  function createNewItem() {\n    const newEducation: AdvisorEditModel = {\n      categoryId: props.categoryId,\n      title: '',\n      subtitle: '',\n      iconTag: 'fa-graduation-cap',\n      id: '',\n      startDate: null,\n      endDate: null,\n      slug: '',\n      current: false\n    };\n\n    setNewAttribute(newEducation);\n  }\n\n  function editItem(itemtoEdit: Advisor_Attribute_ViewModel) {\n    setNewAttribute({\n      ...itemtoEdit,\n      current: itemtoEdit.endDate === null || startOfDay(itemtoEdit.endDate) > startOfDay(new Date())\n    });\n    return false;\n  }\n\n  function cancelNewItem() {\n    setNewAttribute(null);\n  }\n\n  return (\n    <Modal isOpen={props.show} toggle={props.toggle}>\n      <ModalHeader toggle={props.toggle}>\n        <div className=\"bold\">Edit {props.title}</div>\n      </ModalHeader>\n      <ModalBody>\n        {newAttribute ? (\n          <form ref={formRef} noValidate>\n            <Row>\n              <Col xs=\"6\">\n                <NectarineTextInput\n                  label=\"Title\"\n                  placeholder=\"e.g. UCLA or Certified Financial Planner\"\n                  required\n                  maxLength={40}\n                  value={newAttribute.title}\n                  onChange={(newVal) => {\n                    setNewAttribute((v) => ({ ...v!, title: newVal! }));\n                  }}\n                />\n              </Col>\n            </Row>\n\n            <Row className=\"mt-3\">\n              <Col xs=\"6\">\n                <NectarineTextInput\n                  label=\"Subtitle (Optional)\"\n                  placeholder=\"e.g. Bachelors of Science or Since 2017\"\n                  maxLength={40}\n                  value={newAttribute.subtitle}\n                  onChange={(newVal) => {\n                    setNewAttribute((v) => ({ ...v!, subtitle: newVal! }));\n                  }}\n                />\n              </Col>\n            </Row>\n\n            <Row className=\"mt-3\">\n              <Col xs=\"6\">\n                <NectarineDateInput\n                  label=\"Start Date (Optional)\"\n                  value={newAttribute.startDate}\n                  onChange={(newVal) => {\n                    setNewAttribute((v) => ({ ...v!, startDate: newVal! }));\n                  }}\n                  min={startDate_Min}\n                  max={startDate_Max}\n                />\n              </Col>\n\n              <Col xs=\"6\">\n                <NectarineDateInput\n                  label=\"End Date (Optional)\"\n                  value={newAttribute.endDate}\n                  onChange={(newVal) => {\n                    setNewAttribute((v) => ({ ...v!, endDate: newVal! }));\n                  }}\n                  min={endDate_Min}\n                  max={endDate_Max}\n                  isDisabled={newAttribute.current}\n                />\n\n                <div className=\"mt-2\"></div>\n\n                <NectarineCheckboxInput\n                  label=\"Current\"\n                  labelPosition=\"after\"\n                  checked={newAttribute.current}\n                  onChange={(newVal) => {\n                    setNewAttribute((v) => ({ ...v!, current: newVal, endDate: newVal ? null : v!.endDate }));\n                  }}\n                />\n              </Col>\n            </Row>\n            <Row className=\"mt-3\">\n              <Col xs=\"6\">\n                <NectarineSelectInput\n                  display=\"block\"\n                  label=\"Icon\"\n                  value={newAttribute.iconTag}\n                  items={iconSelectItems}\n                  onChange={(newVal) => {\n                    setNewAttribute((v) => ({ ...v!, iconTag: newVal as string }));\n                  }}\n                />\n              </Col>\n              <Col xs=\"auto\" className=\"d-flex align-items-center\">\n                <i className={'fa-light fa-xl att-icon att-details ' + newAttribute.iconTag}></i>\n              </Col>\n            </Row>\n          </form>\n        ) : (\n          <></>\n        )}\n        {!newAttribute ? (\n          <Row>\n            {attributes.map((item) => (\n              <Col key={item.id} md=\"12\" className=\"mb-4\">\n                <div className=\"d-flex\">\n                  <i className={'fa-light fa-xl att-icon att-details ' + item.iconTag}></i>\n                  <div className=\"att-caption\">\n                    <div className=\"title\">{item.title}</div>\n                    <div className=\"att-subtitle\">{item.subtitle}</div>\n                    <div className=\"att-subtitle\">\n                      {DateHelper.printYearRange(item.startDate ?? new Date(), item.endDate ?? new Date())}\n                    </div>\n                  </div>\n\n                  <div className=\"d-flex flex-grow-1 justify-content-end gap-2\">\n                    <NectarineButton\n                      size=\"small\"\n                      color=\"white\"\n                      text=\"Edit\"\n                      iconClassString=\"fa fa-pen-to-square\"\n                      onClick={async () => {\n                        await editItem(item);\n                      }}\n                    />\n\n                    <NectarineButton\n                      size=\"small\"\n                      color=\"red\"\n                      text=\"Delete\"\n                      onClick={async () => {\n                        await deleteItem(item);\n                      }}\n                    />\n                  </div>\n                </div>\n              </Col>\n            ))}\n\n            {!attributes.length ? <div className=\"c-gray\">No education listings were found.</div> : <></>}\n          </Row>\n        ) : (\n          <></>\n        )}\n      </ModalBody>\n\n      <ModalFooter>\n        {newAttribute ? (\n          <div className=\"d-flex gap-2\">\n            <NectarineButton color=\"white\" text=\"Cancel\" onClick={cancelNewItem} />\n\n            <NectarineButton\n              text=\"Save\"\n              onClick={async () => {\n                const formIsValid = formRef.current?.checkValidity();\n                formRef.current!.reportValidity();\n\n                if (formIsValid) {\n                  await saveItem();\n                }\n              }}\n            />\n          </div>\n        ) : (\n          <></>\n        )}\n\n        {!newAttribute ? (\n          <div className=\"d-flex justify-content-end gap-2\">\n            <NectarineButton text=\"New Item\" color=\"green\" iconClassString=\"fa-solid fa-plus\" onClick={createNewItem} />\n\n            <NectarineButton\n              text=\"Done\"\n              color=\"blue\"\n              onClick={() => {\n                props.onSave();\n\n                props.toggle();\n              }}\n            />\n          </div>\n        ) : (\n          <></>\n        )}\n      </ModalFooter>\n    </Modal>\n  );\n};\n\nconst iconSelectItems: NectarineInputListItem[] = [\n  {\n    name: 'Briefcase',\n    value: 'fa-briefcase'\n  },\n  {\n    name: 'Building',\n    value: 'fa-building'\n  },\n  {\n    name: 'Building with Columns',\n    value: 'fa-building-columns'\n  },\n  {\n    name: 'Certificate',\n    value: 'fa-file-certificate'\n  },\n  {\n    name: 'Chair',\n    value: 'fa-chair-office'\n  },\n  {\n    name: 'Diploma',\n    value: 'fa-diploma'\n  },\n  {\n    name: 'Dollar Bill',\n    value: 'fa-money-bill'\n  },\n  {\n    name: 'Graduation Cap',\n    value: 'fa-graduation-cap'\n  },\n  {\n    name: 'School',\n    value: 'fa-school'\n  }\n];\n\nexport default AdvisorEditCustomAttributes;\n","import { subYears } from 'date-fns';\nimport orderBy from 'lodash/orderBy';\nimport sortBy from 'lodash/sortBy';\nimport React, { useEffect, useState } from 'react';\nimport { Helmet } from 'react-helmet';\nimport Skeleton from 'react-loading-skeleton';\nimport { Link, useParams } from 'react-router-dom';\nimport { Alert, Button, Col, Container, Form, Input, Label, Row, UncontrolledTooltip } from 'reactstrap';\nimport { ApplicationRoutes, AppSettings, AttributeCategoriesText, ProductNames, Products } from '../../../../constants';\nimport useNavigationService from '../../../../hooks/UseNavigationService';\nimport AdvisorsApiService from '../../../../services/api/AdvisorsApiService';\nimport UsersApiService from '../../../../services/api/UsersApiService';\nimport { ErrorLogService } from '../../../../services/ErrorLogService';\nimport AdvisorReviews from '../../../Advisor/AdvisorReviews';\nimport AuthorizeService from '../../../api-authorization/AuthorizeService';\nimport { DisclaimerRow } from '../../../DisclaimerRow/DisclaimerRow';\nimport AdvisorsHelper from '../../../Helpers/AdvisorsHelper';\nimport DateHelper from '../../../Helpers/DateHelper';\nimport ErrorsHelper from '../../../Helpers/ErrorsHelper';\nimport StateHelper from '../../../Helpers/StateHelper';\nimport { FAQs } from '../../../HomeElements/FAQs';\nimport { useLoadingOverlayContext } from '../../../ui/LoadingAnimations/LoadingOverlay/LoadingOverlayContext';\nimport LoadingSpinner from '../../../ui/LoadingAnimations/LoadingSpinner/LoadingSpinner';\nimport NectarineButton from '../../../ui/NectarineButton/NectarineButton';\nimport AdvisorEditPersonalPhoto from '../../Account/Advisor/AdvisorEditPersonalPhoto/AdvisorEditPersonalPhoto';\nimport AdvisorEditProfilePhoto from '../../Account/Advisor/AdvisorEditProfilePhoto/AdvisorEditProfilePhoto';\nimport './AdvisorDetails.scss';\nimport AdvisorDetailsSkeleton from './AdvisorDetailsSkeleton';\nimport { AdvisorEditAttributes } from './AdvisorEditAttributes/AdvisorEditAttributes';\nimport AdvisorEditBio from './AdvisorEditBio/AdvisorEditBio';\nimport AdvisorEditCustomAttributes from './AdvisorEditCustomAttributes/AdvisorEditCustomAttributes';\n\nconst filteredAttributesSessionKey = 'filteredAttributes';\nconst stateDropdownAbbreviation_NotUS = 'non-us';\n\nconst stateDropdownOptions = [\n  {\n    name: `I don't live in the US`,\n    abbreviation: stateDropdownAbbreviation_NotUS\n  },\n  ...StateHelper.usStatesAndTerritories\n];\n\nconst planOptions: { title: string; bulletPoints: string[]; price: number; learnMoreText?: string }[] = [\n  {\n    title: ProductNames.TheHour,\n    bulletPoints: ['Ask a financial advisor anything about investing in one hour', 'No commissions, products, or sales pitch'],\n    price: 0\n  },\n  {\n    title: ProductNames.ThePlan,\n    bulletPoints: [\n      'An 8 week program to achieve a strategic plan for your financial life',\n      'Get an 8+ page financial plan',\n      '$0 due now, pay after your 1st meeting'\n    ],\n    price: 0,\n    learnMoreText: 'Learn more about The Plan'\n  }\n];\n\nconst AdvisorDetails = () => {\n  const componentName = 'AdvisorDetails';\n\n  const { slug } = useParams();\n\n  const { navigateTo_Error } = useNavigationService();\n  const { showLoadingOverlay, hideLoadingOverlay } = useLoadingOverlayContext();\n\n  const [advisor, setAdvisor] = useState<Advisor_BasicDetails_ViewModel | null>(null);\n  const [consumer, setConsumer] = useState<User_BasicDetails_ViewModel | null>(null);\n\n  const [redirectTo, setRedirectTo] = useState<boolean>(false);\n  const [errorSection, setErrorSection] = useState<ErrorSection>({ show: false, text: null });\n  const [agreeIsChecked, setAgreeIsChecked] = useState<boolean>(false);\n  const [isAuthenticated, setIsAuthenticated] = useState<boolean>(false);\n  const [state, setState] = useState<string | null>(localStorage.getItem('userState'));\n  const [stateIsInUS, setStateIsInUS] = useState<boolean>(false);\n  const [editBioModal, setEditBioModal] = useState<boolean>(false);\n  const [editAttributesModal, setEditAttributesModal] = useState<boolean>(false);\n  const [editEducationModal, setEditEducationModal] = useState<boolean>(false);\n  const [editExperienceModal, setEditExperienceModal] = useState<boolean>(false);\n  const [editPhotoModal, setEditPhotoModal] = useState<boolean>(false);\n  const [editProfilePicModal, setEditProfilePicModal] = useState<boolean>(false);\n  const [canEdit, setCanEdit] = useState<boolean>(false);\n  const [selectedPlanOption, setSelectedPlanOption] = useState<string>(planOptions[0].title);\n\n  const toggleEditBioModal = () => setEditBioModal(!editBioModal);\n  const toggleEditPhotoModal = () => setEditPhotoModal(!editPhotoModal);\n  const toggleEditProfilePicModal = () => setEditProfilePicModal(!editProfilePicModal);\n  const toggleEditAttributesModal = () => setEditAttributesModal(!editAttributesModal);\n  const toggleEditEducationModal = () => setEditEducationModal(!editEducationModal);\n\n  const toggleEditExperienceModal = () => setEditExperienceModal(!editExperienceModal);\n\n  const now = new Date();\n  const fiftyYearsAgo = subYears(now, 50);\n\n  useEffect(() => {\n    setStateIsInUS(state !== stateDropdownAbbreviation_NotUS);\n  }, [state]);\n\n  useEffect(() => {\n    const loadData = async () => {\n      try {\n        const isAuthenticatedResult = await AuthorizeService.isAuthenticated();\n        setIsAuthenticated(isAuthenticatedResult);\n\n        const userViewModel = await AuthorizeService.populateActiveUser();\n        setConsumer(userViewModel);\n\n        const advisorObj = await AdvisorsApiService.getAdvisorDetailsByIdOrSlug(slug ?? '', true, true, false);\n        advisorObj.experienceStart = advisorObj.experienceStart ? new Date(advisorObj.experienceStart) : null;\n        setAdvisor(advisorObj);\n\n        planOptions[0].price = advisorObj.hourlyRate;\n        planOptions[1].price = advisorObj.thePlanRate > 0 ? advisorObj.thePlanRate : 2500;\n      } catch (error) {\n        ErrorLogService.logError(`${componentName} - loadData()`, 'An error occurred while loading page data.', error);\n        navigateTo_Error();\n      }\n    };\n    loadData();\n\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, []);\n\n  const reloadAdvisorDetails = async () => {\n    const advisorObj = await AdvisorsApiService.getAdvisorDetailsByIdOrSlug(slug ?? '', true, true, false);\n    advisorObj.experienceStart = advisorObj.experienceStart ? new Date(advisorObj.experienceStart) : null;\n    setAdvisor(advisorObj);\n  };\n\n  useEffect(() => {\n    if (isAuthenticated && consumer && advisor && consumer.id == advisor.id) {\n      setCanEdit(true);\n    }\n  }, [isAuthenticated, consumer, advisor]);\n\n  // NOTE: This MUST come after any useEffects, or it violates the rule of hooks and React breaks\n  if (redirectTo) {\n    if (selectedPlanOption === ProductNames.TheHour) {\n      window.location.href = getRedirectLinkForTheHour();\n      return <LoadingSpinner message=\"Looking up calendar...\" />;\n    } else {\n      window.location.href = ApplicationRoutes.ThePlan_Signup;\n    }\n  }\n\n  function closeAllModals() {\n    setEditBioModal(false);\n    setEditAttributesModal(false);\n    setEditEducationModal(false);\n    setEditExperienceModal(false);\n    setEditPhotoModal(false);\n    setEditProfilePicModal(false);\n  }\n\n  function isScheduleButtonEnabled() {\n    return stateIsInUS && agreeIsChecked;\n  }\n\n  function docSeparator(i: number, length: number) {\n    if (i == 0 && length == 2) {\n      return <span> and </span>;\n    }\n    if (i < length - 2) {\n      return <span>, </span>;\n    }\n    if (i < length - 1) {\n      return <span>, and </span>;\n    }\n\n    return <span> </span>;\n  }\n\n  const onStateChange = (e: React.ChangeEvent<HTMLSelectElement>) => {\n    const value = e.target.value;\n\n    setState(value);\n\n    if (value !== stateDropdownAbbreviation_NotUS) {\n      localStorage.setItem('userState', e.target.value);\n    }\n  };\n\n  async function onScheduleClick(e: React.FormEvent, state: string) {\n    e.preventDefault();\n    hideError();\n\n    try {\n      showLoadingOverlay();\n\n      await UsersApiService.agreeToPlanTerms(advisor!.id, {\n        product: selectedPlanOption === ProductNames.TheHour ? Products.TheHour : Products.ThePlan,\n        stateAbbreviation: state,\n        additionalComplianceDocumentIds: []\n      });\n\n      setRedirectTo(true);\n    } catch (error: any) {\n      showError(ErrorsHelper.getErrorMessageFromErrorObject(error.message));\n    } finally {\n      hideLoadingOverlay();\n    }\n\n    return false;\n  }\n\n  function showError(text: string): void {\n    setErrorSection({ show: true, text });\n  }\n\n  function hideError(): void {\n    setErrorSection({ show: false, text: null });\n  }\n\n  function getRedirectLinkForTheHour(): string {\n    // const params = new URLSearchParams(window.location.search);\n\n    if (!consumer || !advisor) {\n      return '';\n    }\n\n    const outputParams = new URLSearchParams();\n    outputParams.set('email', consumer.email);\n    outputParams.set('name', consumer.firstName + ' ' + consumer.lastName);\n\n    return advisor.calendarLink + '?' + outputParams.toString();\n  }\n\n  function getResultsLink() {\n    let url = `/${ApplicationRoutes.Advisors}`;\n\n    const filteredAttributesSessionDataString = sessionStorage.getItem(filteredAttributesSessionKey);\n    const filteredAttributesSessionData = filteredAttributesSessionDataString ? JSON.parse(filteredAttributesSessionDataString) : null;\n\n    if (filteredAttributesSessionData && filteredAttributesSessionData.length) {\n      url += '?filters=' + filteredAttributesSessionData.join('+');\n    }\n\n    return url;\n  }\n\n  function onSelectedPlanOptionClick(title: string): void {\n    setSelectedPlanOption(title);\n\n    // Reset the agree checkbox\n    setAgreeIsChecked(false);\n  }\n\n  return (\n    <Container>\n      <Helmet>\n        {advisor ? <title>{AdvisorsHelper.getAdvisorDisplayName(advisor)} - Fiduciary Financial Advisor</title> : <div></div>}\n\n        {!advisor ? <title>Loading... - {AppSettings.ApplicationName}</title> : <div></div>}\n      </Helmet>\n\n      <Row>\n        <Link to={getResultsLink()}>\n          <i className=\"c-black fa-regular fa-arrow-left back-arrow\"></i> Back\n        </Link>\n      </Row>\n\n      {!advisor ? <AdvisorDetailsSkeleton /> : <></>}\n\n      {advisor ? (\n        <Row className=\"advisor-details\">\n          <Col xl=\"4\" lg=\"5\">\n            <div className=\"checkout-box position-relative\">\n              {canEdit ? (\n                <div>\n                  <Button className=\"end-0 position-absolute me-3\" color=\"light\" onClick={toggleEditProfilePicModal}>\n                    <i className=\"fa-light fa-pen-to-square\"></i> Edit Profile Pic\n                  </Button>\n\n                  <AdvisorEditProfilePhoto\n                    show={editProfilePicModal}\n                    toggle={toggleEditProfilePicModal}\n                    save={async () => {\n                      closeAllModals();\n                      await reloadAdvisorDetails();\n                    }}\n                    advisor={advisor}\n                  />\n                </div>\n              ) : (\n                <></>\n              )}\n\n              {advisor.profilePicUrl ? (\n                <img\n                  src={advisor.profilePicUrl}\n                  className=\"circle-image headshot center\"\n                  alt={AdvisorsHelper.getAdvisorDisplayName(advisor)}\n                />\n              ) : (\n                <div className=\"text-center\">\n                  <span className=\"fa-duotone fa-solid fa-circle-user font-rem-10 c-blue\"></span>\n                </div>\n              )}\n\n              <h2 className=\"center\">{AdvisorsHelper.getAdvisorDisplayNameJSX(advisor, 'lg')}</h2>\n              <h3 className=\"center\">{advisor.title}</h3>\n\n              <div className=\"planOptions mt-4\">\n                {planOptions.map((currPlan) => {\n                  return (\n                    <React.Fragment key={currPlan.title}>\n                      <div\n                        className={`planOption mt-3 ${selectedPlanOption === currPlan.title ? 'isSelected' : ''}`}\n                        onClick={() => {\n                          onSelectedPlanOptionClick(currPlan.title);\n                        }}\n                      >\n                        <h2>{currPlan.title}</h2>\n\n                        <div className=\"radioButton\"></div>\n\n                        <ul className=\"mb-2\">\n                          {currPlan.bulletPoints.map((currBulletPoint) => {\n                            return <li key={currBulletPoint}>{currBulletPoint}</li>;\n                          })}\n                        </ul>\n\n                        {currPlan.price > 0 ? (\n                          <div className=\"price\">${Math.round(currPlan.price).toLocaleString('en-US')}</div>\n                        ) : (\n                          <Skeleton width={80} height={45} inline={true} />\n                        )}\n                      </div>\n\n                      {currPlan.learnMoreText ? (\n                        <Link to={`/${ApplicationRoutes.ThePlan}`} className=\"learnMoreLink mt-2\">\n                          <i className=\"fa-light fa-circle-question me-2\"></i>\n                          <div className=\"text-center c-gray\">{currPlan.learnMoreText}</div>\n                        </Link>\n                      ) : (\n                        <> </>\n                      )}\n                    </React.Fragment>\n                  );\n                })}\n              </div>\n\n              {!isAuthenticated ? (\n                <div>\n                  <Row className=\"center\">\n                    <Link to={`/${ApplicationRoutes.Register}?advisor=${advisor.slug}`} className=\"btn btn-primary btn-lg schedule-btn\">\n                      Schedule an appointment\n                    </Link>\n                  </Row>\n                </div>\n              ) : (\n                <></>\n              )}\n\n              {isAuthenticated ? (\n                <Form onSubmit={(e) => onScheduleClick(e, state!)}>\n                  <Row className=\"center agree-section\">\n                    <Label for=\"state\" className=\"state-label\">\n                      Which state do you live in?\n                      <i id=\"notUsTooltipIcon\" className=\"ms-2 light-blue fa-regular fa-circle-info\"></i>\n                      <UncontrolledTooltip target=\"notUsTooltipIcon\">\n                        We ask for your state so we can stay in compliance with state and federal regulations. Currently our services are\n                        only available to US residents.\n                      </UncontrolledTooltip>\n                    </Label>\n                    <select id=\"state\" name=\"state\" className=\"state-search\" required onChange={onStateChange} value={state ?? undefined}>\n                      <option value=\"\">Which state do you live in?</option>\n                      {stateDropdownOptions.map((state) => (\n                        <option key={state.abbreviation} value={state.abbreviation}>\n                          {state.name}\n                        </option>\n                      ))}\n                    </select>\n                    <br />\n\n                    <Input\n                      id=\"agreeToTerms\"\n                      name=\"agreeToTerms\"\n                      type=\"checkbox\"\n                      onChange={() => {\n                        setAgreeIsChecked((v) => !v);\n                      }}\n                      checked={agreeIsChecked}\n                    />\n\n                    {selectedPlanOption === ProductNames.TheHour ? (\n                      <Label for=\"agreeToTerms\">\n                        I agree to the\n                        {advisor.nectarineHourComplianceDocuments.map((v, i) => (\n                          <span key={v.displayName}>\n                            {' '}\n                            <a href={v.url} target=\"_blank\" rel=\"noopener noreferrer\">\n                              {v.displayName}\n                            </a>\n                            {docSeparator(i, advisor.nectarineHourComplianceDocuments.length)}\n                          </span>\n                        ))}\n                        of Nectarine\n                        {advisor.advisorHourComplianceDocuments.length > 0 ? (\n                          <span>\n                            {' '}\n                            and the\n                            {advisor.advisorHourComplianceDocuments.map((currDocument, i) => (\n                              <span key={currDocument.id}>\n                                {' '}\n                                <a href={currDocument.url} target=\"_blank\" rel=\"noopener noreferrer\">\n                                  {currDocument.displayName}\n                                </a>\n                                {docSeparator(i, advisor.advisorHourComplianceDocuments.length)}\n                              </span>\n                            ))}\n                          </span>\n                        ) : (\n                          <></>\n                        )}\n                      </Label>\n                    ) : (\n                      <></>\n                    )}\n\n                    {selectedPlanOption === ProductNames.ThePlan ? (\n                      <Label for=\"agreeToTerms\">\n                        I agree to the\n                        {advisor.nectarinePlanComplianceDocuments.map((currDocument, i) => (\n                          <span key={i}>\n                            {' '}\n                            <a href={currDocument.url} target=\"_blank\" rel=\"noopener noreferrer\">\n                              {currDocument.displayName}\n                            </a>\n                            {docSeparator(i, advisor.nectarinePlanComplianceDocuments.length)}\n                          </span>\n                        ))}\n                        of Nectarine\n                        {advisor.advisorPlanComplianceDocuments.length > 0 ? (\n                          <span>\n                            {' '}\n                            and the\n                            {advisor.advisorPlanComplianceDocuments.map((currDocument, i) => (\n                              <span key={currDocument.id}>\n                                {' '}\n                                <a href={currDocument.url} target=\"_blank\" rel=\"noopener noreferrer\">\n                                  {currDocument.displayName}\n                                </a>\n                                {docSeparator(i, advisor.advisorPlanComplianceDocuments.length)}\n                              </span>\n                            ))}\n                          </span>\n                        ) : (\n                          <></>\n                        )}\n                      </Label>\n                    ) : (\n                      <></>\n                    )}\n                  </Row>\n\n                  {!stateIsInUS ? (\n                    <Alert color=\"danger\" className=\"mt-4\">\n                      Currently our services are only available to US residents. &nbsp;\n                      <Link className=\"mt-4\" to={`/${ApplicationRoutes.NonUS}`}>\n                        Learn more.\n                      </Link>\n                    </Alert>\n                  ) : (\n                    <></>\n                  )}\n\n                  {errorSection.show && (\n                    <Alert color=\"danger\" className=\"mt-4\">\n                      {errorSection.text}\n                    </Alert>\n                  )}\n\n                  <div className=\"center\">\n                    <Button disabled={!isScheduleButtonEnabled()} size=\"md\" className=\"btn btn-primary btn-lg schedule-btn\">\n                      {selectedPlanOption === ProductNames.TheHour ? (\n                        <>View Availability</>\n                      ) : (\n                        <>Sign up - ${Math.round(advisor.thePlanRate).toLocaleString('en-US')} ($0 due upfront)</>\n                      )}\n                    </Button>\n                  </div>\n                </Form>\n              ) : (\n                <></>\n              )}\n\n              {advisor ? (\n                <Row className=\"center\">\n                  {new Date(advisor.nextAvailability!) > now && (\n                    <div className=\"next-available\">\n                      <i className=\"fa-regular fa-clock att-icon\"></i> Next Available:{' '}\n                      <strong>{DateHelper.casualDateFormat(advisor.nextAvailability!)}</strong>\n                    </div>\n                  )}\n                </Row>\n              ) : (\n                <></>\n              )}\n            </div>\n          </Col>\n\n          <Col xl=\"8\" lg=\"7\">\n            <h1>About {advisor.firstName}</h1>\n            <Row className=\"details-highlights\">\n              {(advisor.experienceStart ?? now) > fiftyYearsAgo && (advisor.experienceStart ?? now) < now ? (\n                <Col lg=\"12\" xl=\"4\" className=\"center\">\n                  <i className=\"fa-regular fa-lightbulb att-icon\"></i> <strong>{advisor.yearsExperience}</strong> year\n                  {advisor.yearsExperience == 1 ? '' : 's'} of experience\n                </Col>\n              ) : (\n                <></>\n              )}\n\n              {advisor.eventCount > 0 ? (\n                <Col lg=\"12\" xl=\"4\" className=\"center\">\n                  <i className=\"fa-regular fa-calendar att-icon\"></i> <strong>{advisor.eventCount}</strong> meeting\n                  {advisor.eventCount == 1 ? '' : 's'} completed\n                </Col>\n              ) : (\n                <></>\n              )}\n\n              {advisor.showReviews && advisor.reviewCount > 0 ? (\n                <Col lg=\"12\" xl=\"4\" className=\"center\">\n                  <i className=\"fa-solid fa-star att-icon\"></i> <strong>{advisor.reviewAverage.toFixed(1)}</strong> average review\n                </Col>\n              ) : (\n                <></>\n              )}\n            </Row>\n\n            <div className=\"d-flex\">\n              <h2>Bio</h2>\n\n              {canEdit ? (\n                <div className=\"flex-grow-1 text-end\">\n                  <NectarineButton text=\"Edit Bio\" color=\"blue\" iconClassString=\"fa-light fa-pen-to-square\" onClick={toggleEditBioModal} />\n                </div>\n              ) : (\n                <></>\n              )}\n            </div>\n\n            <div>\n              {advisor.longBio ? <p>{advisor.longBio}</p> : <></>}\n\n              {!(advisor.longBio ?? '').length ? <span className=\"c-gray\">No bio has been set yet.</span> : <></>}\n            </div>\n\n            {canEdit ? (\n              <div>\n                <AdvisorEditAttributes\n                  show={editAttributesModal}\n                  toggle={toggleEditAttributesModal}\n                  save={async () => {\n                    closeAllModals();\n                    await reloadAdvisorDetails();\n                  }}\n                  advisor={advisor}\n                />\n\n                <AdvisorEditBio\n                  show={editBioModal}\n                  toggle={toggleEditBioModal}\n                  save={async () => {\n                    closeAllModals();\n                    await reloadAdvisorDetails();\n                  }}\n                  advisor={advisor}\n                />\n              </div>\n            ) : (\n              <></>\n            )}\n\n            {canEdit ? <hr className=\"c-gray my-4\" /> : <></>}\n\n            <div className=\"d-flex\">\n              <h2>{AttributeCategoriesText.ICanHelpYouWith}</h2>\n\n              {canEdit ? (\n                <div className=\"flex-grow-1 text-end\">\n                  <NectarineButton\n                    text=\"Edit Details\"\n                    color=\"blue\"\n                    iconClassString=\"fa-light fa-pen-to-square\"\n                    onClick={toggleEditAttributesModal}\n                  />\n                </div>\n              ) : (\n                <></>\n              )}\n            </div>\n\n            <Row>\n              {sortBy(advisor.iCanHelpYouWith, (v) => v.title.toLowerCase()).map((item) => (\n                <Col xs=\"12\" xl=\"6\" className=\"mb-4\" key={item.id}>\n                  <i className={'fa-light fa-xl att-icon att-details ' + item.iconTag}></i>\n                  <div className=\"att-caption\">{item.title}</div>\n                </Col>\n              ))}\n\n              {!advisor.iCanHelpYouWith.length ? <span className=\"c-gray\">No items were found.</span> : <></>}\n            </Row>\n\n            <h2>{AttributeCategoriesText.IEnjoyWorkingWith}</h2>\n\n            <Row>\n              {sortBy(advisor.iEnjoyWorkingWith, (v) => v.title.toLowerCase()).map((item) => (\n                <Col xs=\"12\" xl=\"6\" className=\"mb-4\" key={item.id}>\n                  <i className={'fa-light fa-xl att-icon att-details ' + item.iconTag}></i>\n                  <div className=\"att-caption\">{item.title}</div>\n                </Col>\n              ))}\n\n              {!advisor.iEnjoyWorkingWith.length ? <span className=\"c-gray\">No items were found.</span> : <></>}\n            </Row>\n\n            {canEdit ? <hr className=\"c-gray my-4\" /> : <></>}\n\n            <div className=\"d-flex\">\n              <h2>Personal Stuff</h2>\n\n              {canEdit ? (\n                <div className=\"flex-grow-1 text-end\">\n                  <NectarineButton\n                    color=\"blue\"\n                    iconClassString=\"fa-light fa-pen-to-square\"\n                    text=\"Edit Personal Stuff\"\n                    onClick={toggleEditBioModal}\n                  />\n                </div>\n              ) : (\n                <></>\n              )}\n            </div>\n\n            {advisor.personalBio ? <p>{advisor.personalBio}</p> : <></>}\n\n            {!(advisor.personalBio ?? '').length ? <span className=\"c-gray\">No personal stuff has been set yet.</span> : <></>}\n\n            {canEdit ? (\n              <div className=\"mb-3 text-end\">\n                <NectarineButton\n                  color=\"blue\"\n                  iconClassString=\"fa-light fa-pen-to-square\"\n                  text=\"Edit Photo\"\n                  onClick={toggleEditPhotoModal}\n                />\n              </div>\n            ) : (\n              <></>\n            )}\n\n            {advisor.photos.length > 0 ? (\n              <Row>\n                {advisor.photos.map((item) => (\n                  <Col xs=\"12\" className=\"mb-4\" key={item.id}>\n                    <img src={item.url} className=\"personal-photo\" />\n                  </Col>\n                ))}\n              </Row>\n            ) : (\n              <></>\n            )}\n\n            {canEdit ? (\n              <div>\n                <AdvisorEditPersonalPhoto\n                  show={editPhotoModal}\n                  toggle={toggleEditPhotoModal}\n                  save={async () => {\n                    closeAllModals();\n                    await reloadAdvisorDetails();\n                  }}\n                  advisor={advisor}\n                />\n\n                <AdvisorEditCustomAttributes\n                  show={editEducationModal}\n                  toggle={toggleEditEducationModal}\n                  onSave={async () => {\n                    toggleEditEducationModal();\n\n                    await reloadAdvisorDetails();\n                  }}\n                  categoryId={3}\n                  title=\"Education &amp; Designations\"\n                  attributes={advisor.education}\n                />\n              </div>\n            ) : (\n              <></>\n            )}\n\n            {canEdit ? <hr className=\"c-gray my-4\" /> : <></>}\n\n            <div className=\"d-flex\">\n              <h2>Education &amp; Designations</h2>\n\n              {canEdit ? (\n                <div className=\"flex-grow-1 text-end\">\n                  <NectarineButton\n                    color=\"blue\"\n                    iconClassString=\"fa-light fa-pen-to-square\"\n                    text=\"Edit Education\"\n                    onClick={toggleEditEducationModal}\n                  />\n                </div>\n              ) : (\n                <></>\n              )}\n            </div>\n\n            <Row>\n              {advisor.education.map((item) => (\n                <Col xs=\"12\" xl=\"6\" className=\"mb-4\" key={item.id}>\n                  <i className={'fa-light fa-xl att-icon att-details ' + item.iconTag}></i>\n                  <div className=\"att-caption\">\n                    <div className=\"att-title\">{item.title}</div>\n                    <div className=\"att-subtitle\">{item.subtitle}</div>\n                  </div>\n                </Col>\n              ))}\n\n              {!advisor.education.length ? <span className=\"c-gray\">No education & designations have been added.</span> : <></>}\n            </Row>\n\n            {canEdit ? <hr className=\"c-gray my-4\" /> : <></>}\n\n            <div className=\"d-flex\">\n              <h2>Experience</h2>\n\n              {canEdit ? (\n                <div className=\"flex-grow-1 text-end\">\n                  <NectarineButton\n                    color=\"blue\"\n                    iconClassString=\"fa-light fa-pen-to-square\"\n                    text=\"Edit Experience\"\n                    onClick={toggleEditExperienceModal}\n                  />\n                </div>\n              ) : (\n                <></>\n              )}\n            </div>\n\n            {canEdit ? (\n              <div>\n                <AdvisorEditCustomAttributes\n                  show={editExperienceModal}\n                  toggle={() => {}}\n                  onSave={async () => {\n                    toggleEditExperienceModal();\n\n                    await reloadAdvisorDetails();\n                  }}\n                  categoryId={4}\n                  title=\"Experience\"\n                  attributes={advisor.experience}\n                  sortByFn={(inputItem) => (inputItem.endDate ? new Date(inputItem.endDate) : new Date())}\n                  sortByDirection=\"desc\"\n                />\n              </div>\n            ) : (\n              <></>\n            )}\n\n            <Row>\n              {orderBy(advisor.experience, [(v) => (v.endDate ? new Date(v.endDate) : new Date())], ['desc']).map((item) => (\n                <Col xs=\"12\" xl=\"6\" className=\"mb-4\" key={item.id}>\n                  <i className={'fa-light fa-xl att-icon att-details ' + item.iconTag}></i>\n                  <div className=\"att-caption\">\n                    <div className=\"att-title\">{item.title}</div>\n                    <div className=\"att-subtitle\">{item.subtitle}</div>\n                    <div className=\"att-subtitle\">\n                      {DateHelper.printYearRange(item.startDate ?? new Date(), item.endDate ?? new Date())}\n                    </div>\n                  </div>\n                </Col>\n              ))}\n\n              {!advisor.experience.length ? <span className=\"c-gray\">No experience has been added.</span> : <></>}\n            </Row>\n\n            <AdvisorReviews title=\"Reviews\" advisorId={advisor.id} showPrivateComments={false} />\n\n            {!advisor.showReviews && advisor.reviewCount > 0 ? (\n              <div>\n                <h2>Reviews</h2>\n                <p>\n                  {advisor.firstName} has received {advisor.reviewCount} review{advisor.reviewCount > 1 && 's'} but{' '}\n                  {advisor.reviewCount > 1 ? 'they are' : 'it is'} hidden due to state regulations not allowing the posting of testimonials.\n                </p>\n              </div>\n            ) : (\n              <></>\n            )}\n\n            <div className=\"mt-4\"></div>\n            <h2>Frequently Asked Questions</h2>\n            <FAQs />\n\n            <DisclaimerRow />\n          </Col>\n        </Row>\n      ) : (\n        <></>\n      )}\n    </Container>\n  );\n};\n\nexport default AdvisorDetails;\n","import React from 'react';\n\nconst LoadingDots: React.FC = () => {\n  return (\n    <div className=\"lds-ellipsis\">\n      <div></div>\n      <div></div>\n      <div></div>\n      <div></div>\n    </div>\n  );\n};\n\nexport default LoadingDots;\n","import { forwardRef, useRef } from 'react';\nimport { UncontrolledTooltip } from 'reactstrap';\nimport GeneralHelper from '../../Helpers/GeneralHelper';\nimport LoadingDots from '../LoadingAnimations/LoadingDots/LoadingDots';\nimport './NectarineButton.scss';\n\nexport type NectarineButtonColors = 'blue' | 'red' | 'white' | 'green' | 'gray';\n\ninterface NectarineButtonProps {\n  text: string;\n  iconClassString?: string;\n  onClick?: (() => void) | (() => Promise<void>);\n  href?: string;\n  // An optional click event that always fires, even if the button is disabled\n  onClickValidationFn?: () => void;\n  // An optional click event that only fires when the button is disabled\n  onDisabledClickFn?: () => void;\n  color?: NectarineButtonColors;\n  size?: 'regular' | 'medium' | 'small';\n  displayStyle?: 'block' | 'inline-block';\n  isDisabled?: boolean;\n  showLoadingDots?: boolean;\n  disabledTooltipText?: string;\n  allowClickEventToBubble?: boolean;\n}\n\nconst NectarineButton = forwardRef<HTMLButtonElement, NectarineButtonProps>((props: NectarineButtonProps, ref) => {\n  // NOTE: We have to put a letter in front of the GUID, or else the UncontrolledTooltip breaks\n  const id = useRef<string>('M' + GeneralHelper.generateGuid());\n\n  const getColorClass = () => {\n    switch (props.color) {\n      case 'red':\n        return 'btn-danger';\n\n      case 'white':\n        return 'btn-light';\n\n      case 'green':\n        return 'btn-success';\n\n      case 'gray':\n        return 'btn-secondary';\n\n      case 'blue':\n      default:\n        return 'btn-primary';\n    }\n  };\n\n  const getButtonSizeCSSClass = () => {\n    switch (props.size) {\n      case 'regular':\n        return '';\n\n      case 'small':\n        return 'isSmallButton';\n\n      default:\n        return 'isMediumButton';\n    }\n  };\n\n  const getButtonJsx = (): JSX.Element => {\n    return (\n      <button\n        ref={ref}\n        type=\"button\"\n        className={`btn ${getColorClass()} nectarineButton ${props.isDisabled ? 'isDisabled' : ''} ${!props.text.length ? 'noText' : ''}`}\n        disabled={props.isDisabled ?? false}\n        onClick={(e) => {\n          if (!props.allowClickEventToBubble && !props.href) {\n            e.preventDefault();\n            e.stopPropagation();\n          }\n\n          props.onClickValidationFn?.();\n\n          // If we have an href, we can stop here without calling the onClick event\n          if (props.href) {\n            return;\n          }\n\n          if (!props.isDisabled) {\n            props.onClick?.();\n          }\n        }}\n        onKeyDown={(e) => {\n          if ((!props.isDisabled && e.key === ' ') || e.key === 'Enter') {\n            props.onClick?.();\n          }\n        }}\n      >\n        <div className={`nectarineButtonContent`}>\n          {props.iconClassString ? (\n            <span className={props.text.length ? 'me-2' : ''}>\n              <span className={props.iconClassString}></span>\n            </span>\n          ) : (\n            <></>\n          )}\n\n          {props.text.length ? <span className=\"buttonText\">{props.text}</span> : <></>}\n\n          <div className={`loadingDotsWrapper ${props.showLoadingDots ? 'isDisplayed' : ''}`}>\n            <LoadingDots />\n          </div>\n        </div>\n      </button>\n    );\n  };\n\n  return (\n    <div\n      id={id.current}\n      className={`buttonWrapper ${props.displayStyle === 'block' ? 'isBlock' : 'd-inline-block'} ${getButtonSizeCSSClass()}`}\n    >\n      {/* Include an overlay so we can still receive a click event and run a validation function if we need */}\n      {props.isDisabled ? (\n        <div\n          className=\"disabledButtonOverlay\"\n          onClick={(e) => {\n            e.preventDefault();\n            e.stopPropagation();\n\n            props.onClickValidationFn?.();\n\n            props.onDisabledClickFn?.();\n          }}\n        ></div>\n      ) : (\n        <></>\n      )}\n\n      {props.isDisabled && props.disabledTooltipText ? (\n        <UncontrolledTooltip target={id.current}>{props.disabledTooltipText}</UncontrolledTooltip>\n      ) : (\n        <></>\n      )}\n\n      {props.href ? (\n        <a href={props.href} target=\"_blank\" rel=\"noopener noreferrer\">\n          {getButtonJsx()}\n        </a>\n      ) : (\n        <>{getButtonJsx()}</>\n      )}\n    </div>\n  );\n});\n\nNectarineButton.displayName = 'NectarineButton';\n\nexport default NectarineButton;\n","import { forwardRef, ReactElement } from 'react';\nimport NectarineInfoIcon from '../NectarineInfoIcon/NectarineInfoIcon';\nimport './NectarineCheckboxInput.scss';\n\ninterface NectarineCheckboxInputProps {\n  label?: string;\n  isDisabled?: boolean;\n  secondaryLabel?: string;\n  labelPosition?: 'before' | 'after';\n  checked: boolean;\n  onChange: (newVal: boolean) => void;\n  infoIconTooltipText?: string;\n}\n\nconst NectarineCheckboxInput = forwardRef<HTMLInputElement, NectarineCheckboxInputProps>((props: NectarineCheckboxInputProps, ref) => {\n  const labelDisplayType = props.labelPosition ?? 'before';\n\n  const getLabelJsx = (): ReactElement => {\n    return props.label ? (\n      <div\n        className={`labelWrapper ${labelDisplayType === 'after' ? 'ms-2' : ''}`}\n        onClick={(e) => {\n          e.stopPropagation();\n          e.preventDefault();\n\n          if (!props.isDisabled) {\n            props.onChange(!props.checked);\n          }\n        }}\n      >\n        <label className=\"bold\">{props.label}</label>\n\n        {props.infoIconTooltipText ? <NectarineInfoIcon tooltipText={props.infoIconTooltipText} /> : <></>}\n\n        {props.secondaryLabel ? <span className=\"ms-1\">{props.secondaryLabel}</span> : <></>}\n      </div>\n    ) : (\n      <></>\n    );\n  };\n\n  return (\n    <div className={`nectarineCheckboxInput ${props.isDisabled ? 'isDisabled' : ''}`}>\n      {labelDisplayType === 'before' ? <div>{getLabelJsx()}</div> : <></>}\n\n      <input\n        ref={ref}\n        className=\"form-check-input\"\n        type=\"checkbox\"\n        checked={props.checked}\n        onChange={(e) => {\n          // NOTE: We just want to stop propagation, not prevent the default behavior,\n          // or else the checkbox \"checked\" state doesn't work correctly\n          e.stopPropagation();\n\n          if (!props.isDisabled) {\n            props.onChange(e.target.checked);\n          }\n        }}\n        disabled={props.isDisabled}\n      />\n\n      {labelDisplayType === 'after' ? <div>{getLabelJsx()}</div> : <></>}\n    </div>\n  );\n});\n\nNectarineCheckboxInput.displayName = 'NectarineCheckboxInput';\n\nexport default NectarineCheckboxInput;\n","import { format } from 'date-fns';\nimport { forwardRef } from 'react';\nimport DateHelper from '../../Helpers/DateHelper';\nimport NectarineInfoIcon from '../NectarineInfoIcon/NectarineInfoIcon';\nimport './NectarineDateInput.scss';\n\ninterface NectarineDateInputProps {\n  initialValue?: Date | null;\n  value?: Date | null;\n  onChange: (newValue: Date | null) => void;\n  isDisabled?: boolean;\n  required?: boolean;\n  min?: Date;\n  max?: Date;\n  placeholder?: string;\n  label?: string;\n  secondaryLabel?: string;\n  infoIconTooltipText?: string;\n  readOnly?: boolean;\n  readOnlyPlaceholderText?: string;\n  onBlur?: (latestValue: Date | null) => void;\n  onFocus?: () => void;\n}\n\nconst NectarineDateInput = forwardRef<HTMLInputElement, NectarineDateInputProps>((props: NectarineDateInputProps, ref) => {\n  if ((props.min !== undefined || props.max !== undefined) && !props.required) {\n    console.warn(\n      'The min or max is set on a NectarineDateInput but the required attribute was false, ' +\n        'which means HTML form validation will not occur for this input.' +\n        (props.label ? `\\nThis was for text input with label '${props.label}'.` : '')\n    );\n  }\n\n  const isUncontrolledComponent = props.initialValue !== undefined;\n\n  return (\n    <>\n      <div>\n        {props.label ? (\n          <div className=\"labelWrapper\">\n            <label className=\"bold mb-1\">\n              {props.label}\n              {props.required ? <span className=\"ms-1 c-green\"> *</span> : ''}\n            </label>\n\n            {props.infoIconTooltipText ? <NectarineInfoIcon tooltipText={props.infoIconTooltipText} /> : <></>}\n\n            {props.secondaryLabel ? <span className=\"ms-1\">{props.secondaryLabel}</span> : <></>}\n          </div>\n        ) : (\n          <></>\n        )}\n\n        <div className=\"dateInputWrapper\">\n          <div className=\"inputIconContainer\">\n            <i className=\"fa-duotone fa-light fa-calendar-days\"></i>\n          </div>\n\n          {props.readOnly ? (\n            props.value ? (\n              <div className=\"readOnlyText d-flex align-items-center\">{DateHelper.mediumDateFormat(props.value)}</div>\n            ) : (\n              <span className=\"c-gray\">{props.readOnlyPlaceholderText || '(No content)'}</span>\n            )\n          ) : (\n            <>\n              <input\n                className=\"form-control\"\n                ref={ref}\n                type=\"date\"\n                // NOTE: We use an empty string for an \"empty\" value with HTML date pickers\n                value={!isUncontrolledComponent ? (props.value ? format(props.value, 'yyyy-MM-dd') : '') : undefined}\n                defaultValue={props.initialValue ? format(props.initialValue, 'yyyy-MM-dd') : undefined}\n                onChange={(e) => {\n                  e.preventDefault();\n                  e.stopPropagation();\n\n                  if (props.isDisabled) {\n                    return;\n                  }\n\n                  if (!isUncontrolledComponent) {\n                    if (!e.target.value) {\n                      props.onChange(null);\n                    } else {\n                      const date = new Date(`${e.target.value}T00:00:00`);\n                      props.onChange(date ? new Date(date.toISOString()) : null);\n                    }\n                  }\n                }}\n                onFocus={() => {\n                  props.onFocus?.();\n                }}\n                onBlur={(e) => {\n                  const date = new Date(`${e.target.value}T00:00:00`);\n                  props.onBlur?.(date ? new Date(date.toISOString()) : null);\n                }}\n                placeholder={props.placeholder}\n                required={props.required}\n                disabled={props.isDisabled}\n                min={props.min ? format(props.min, 'yyyy-MM-dd') : undefined}\n                max={props.max ? format(props.max, 'yyyy-MM-dd') : undefined}\n              />\n\n              {!props.required && !props.isDisabled && props.value ? (\n                <span\n                  className=\"clearIcon\"\n                  onClick={(e) => {\n                    e.preventDefault();\n                    e.stopPropagation();\n\n                    props.onChange(null);\n                  }}\n                >\n                  <span className=\"fa-solid fa-times\"></span>\n                </span>\n              ) : (\n                <></>\n              )}\n            </>\n          )}\n        </div>\n      </div>\n    </>\n  );\n});\n\nNectarineDateInput.displayName = 'NectarineDateInput';\n\nexport default NectarineDateInput;\n","import { useRef } from 'react';\nimport { UncontrolledTooltip } from 'reactstrap';\nimport GeneralHelper from '../../Helpers/GeneralHelper';\nimport './NectarineInfoIcon.scss';\n\ninterface NectarineInfoIconProps {\n  tooltipText: string;\n}\n\nconst NectarineInfoIcon: React.FC<NectarineInfoIconProps> = (props) => {\n  // This ID cannot start with a number or the tooltip code gets confused and dies -- it's very dramatic.\n  const id = useRef<string>('a' + GeneralHelper.generateGuid());\n\n  return (\n    <>\n      <span id={id.current} className=\"infoIcon c-blue fa-duotone fa-regular fa-circle-info\"></span>\n      <UncontrolledTooltip target={id.current}>{props.tooltipText}</UncontrolledTooltip>\n    </>\n  );\n};\n\nexport default NectarineInfoIcon;\n","import { forwardRef } from 'react';\nimport NectarineInfoIcon from '../NectarineInfoIcon/NectarineInfoIcon';\nimport './NectarineSelectInput.scss';\n\ninterface NectarineSelectInputProps {\n  value: string | number | null;\n  onChange: (newValue: string | number | null) => void;\n  isDisabled?: boolean;\n  required?: boolean;\n  placeholder?: string;\n  label?: string;\n  secondaryLabel?: string;\n  items: NectarineInputListItem[];\n  style?: 'regular' | 'rounded' | 'rounded-thin';\n  display?: 'block' | 'inline-block';\n  infoIconTooltipText?: string;\n}\n\nconst NectarineSelectInput = forwardRef<HTMLSelectElement, NectarineSelectInputProps>((props: NectarineSelectInputProps, ref) => {\n  const getSelectInputWrapperCSSClasses = () => {\n    const returnValue: string[] = [];\n    switch (props.style) {\n      case 'rounded':\n        returnValue.push('isRounded');\n        break;\n\n      case 'rounded-thin':\n        returnValue.push('isRounded thin');\n        break;\n    }\n\n    return returnValue.join(' ');\n  };\n\n  return (\n    <>\n      <div>\n        {props.label ? (\n          <div className=\"labelWrapper\">\n            <label className=\"bold mb-1\">\n              {props.label}\n              {props.required ? <span className=\"ms-1 c-green\"> *</span> : ''}\n            </label>\n\n            {props.secondaryLabel ? <span className=\"ms-1\">{props.secondaryLabel}</span> : <></>}\n\n            {props.infoIconTooltipText ? <NectarineInfoIcon tooltipText={props.infoIconTooltipText} /> : <></>}\n          </div>\n        ) : (\n          <></>\n        )}\n\n        <div\n          className={`selectInputWrapper ${getSelectInputWrapperCSSClasses()} ${(props.display ?? 'block') === 'block' ? 'd-block' : 'd-inline-block'}`}\n        >\n          <select\n            ref={ref}\n            name=\"name\"\n            className=\"form-select\"\n            onChange={(e) => {\n              props.onChange(e.target.value);\n            }}\n            value={props.value ?? undefined}\n            disabled={props.isDisabled}\n            required={props.required}\n          >\n            {props.items.map((currItem) => {\n              return (\n                <option key={currItem.value} value={currItem.value} disabled={currItem.isReadOnly ?? undefined}>\n                  {currItem.name}\n                </option>\n              );\n            })}\n          </select>\n        </div>\n      </div>\n    </>\n  );\n});\n\nNectarineSelectInput.displayName = 'NectarineSelectInput';\n\nexport default NectarineSelectInput;\n","import { forwardRef } from 'react';\nimport NectarineInfoIcon from '../NectarineInfoIcon/NectarineInfoIcon';\nimport './NectarineTextAreaInput.scss';\n\ninterface NectarineTextAreaInputProps {\n  value: string | null;\n  onChange: (newValue: string | null) => void;\n  isDisabled?: boolean;\n  required?: boolean;\n  minLength?: number;\n  maxLength?: number;\n  placeholder?: string;\n  label?: string;\n  rows?: number;\n  secondaryLabel?: string;\n  readOnly?: boolean;\n  readOnlyPlaceholderText?: string;\n  infoIconTooltipText?: string;\n}\n\nconst NectarineTextAreaInput = forwardRef<HTMLTextAreaElement, NectarineTextAreaInputProps>((props: NectarineTextAreaInputProps, ref) => {\n  if (props.minLength !== undefined && !props.required) {\n    console.warn(\n      'The min length is set on a NectarineTextAreaInput but the required attribute was false, ' +\n        'which means text length validation will not occur for this input.' +\n        (props.label ? `\\nThis was for text input with label '${props.label}'.` : '')\n    );\n  }\n\n  return (\n    <>\n      <div>\n        {props.label ? (\n          <>\n            <div className=\"labelWrapper\">\n              <label className=\"bold mb-1\">{props.label}</label>\n              {props.secondaryLabel ? <span className=\"ms-1\">{props.secondaryLabel}</span> : <></>}\n\n              {props.required ? <span className=\"ms-1 c-green\"> *</span> : ''}\n            </div>\n\n            {props.infoIconTooltipText ? <NectarineInfoIcon tooltipText={props.infoIconTooltipText} /> : <></>}\n          </>\n        ) : (\n          <></>\n        )}\n\n        <div className={`textAreaInputWrapper ${props.readOnly ? 'isReadOnly' : ''}`}>\n          {props.readOnly ? (\n            props.value ? (\n              <div>{props.value}</div>\n            ) : (\n              <span className=\"c-gray\">{props.readOnlyPlaceholderText || '(No content)'}</span>\n            )\n          ) : (\n            <textarea\n              ref={ref}\n              className=\"form-control\"\n              required={props.required}\n              disabled={props.isDisabled}\n              minLength={props.minLength}\n              maxLength={props.maxLength}\n              placeholder={props.placeholder}\n              value={props.value ?? ''}\n              rows={!props.readOnly ? (props.rows ?? 2) : 2}\n              onChange={(e) => {\n                e.preventDefault();\n                e.stopPropagation();\n\n                if (props.isDisabled) {\n                  return;\n                }\n\n                let newValue = e.target.value;\n\n                if (props.maxLength !== undefined && (newValue ?? '').length > props.maxLength) {\n                  newValue = newValue.substring(0, props.maxLength);\n                }\n\n                props.onChange(e.target.value);\n              }}\n            />\n          )}\n        </div>\n      </div>\n    </>\n  );\n});\n\nNectarineTextAreaInput.displayName = 'NectarineTextAreaInput';\n\nexport default NectarineTextAreaInput;\n","import { forwardRef, useImperativeHandle, useRef } from 'react';\nimport GeneralHelper from '../../Helpers/GeneralHelper';\nimport NectarineInfoIcon from '../NectarineInfoIcon/NectarineInfoIcon';\nimport { useNotificationsPanelContext } from '../Notifications/NotificationsPanel/NotificationsPanelContext';\nimport './NectarineTextInput.scss';\n\nconst NectarineTextInput = forwardRef<HTMLInputElement, NectarineTextInputProps>((props: NectarineTextInputProps, ref) => {\n  if (props.minLength !== undefined && !props.required) {\n    throw new Error(\n      'The min length is set on a NectarineTextInput but the required attribute was false, ' +\n        'which means text length validation will not occur for this input.' +\n        (props.label ? `\\nThis was for text input with label '${props.label}'.` : '')\n    );\n  }\n\n  if (props.value !== undefined && props.debounceTimeout) {\n    throw new Error(`The debounce timeout cannot be used in conjunction with a controlled component (ie. a provided 'value' property.)`);\n  }\n\n  const textChangeTimeout = useRef<NodeJS.Timeout | null>(null);\n\n  const inputRef = useRef<HTMLInputElement | null>(null);\n\n  const { showInfoNotification } = useNotificationsPanelContext();\n\n  // We have our own internal ref for the input, so forward that along to the forwardRef ref object\n  // that comes into this component as a parameter\n  useImperativeHandle(ref, () => inputRef.current!);\n\n  const isUncontrolledComponent = props.debounceTimeout !== undefined;\n\n  return (\n    <>\n      <div className=\"nectarineTextInput\">\n        {props.label ? (\n          <div className=\"labelWrapper\">\n            <label className=\"bold mb-1\">\n              {props.label} {props.required ? <span className=\"ms-1 c-green\"> *</span> : ''}\n            </label>\n\n            {props.infoIconTooltipText ? <NectarineInfoIcon tooltipText={props.infoIconTooltipText} /> : <></>}\n\n            {props.secondaryLabel ? (\n              <>\n                {(props.secondaryLabelAlignment ?? 'inline') === 'inline' ? (\n                  <div>\n                    {props.secondaryLabelIconCssClass ? <span className={props.secondaryLabelIconCssClass}></span> : <></>}\n\n                    <span\n                      className=\"ms-1\"\n                      dangerouslySetInnerHTML={{ __html: GeneralHelper.sanitizeHtml(props.secondaryLabel, false) }}\n                    ></span>\n                  </div>\n                ) : (\n                  <div className=\"ms-1 flex-grow-1 text-end\">\n                    {props.secondaryLabelIconCssClass ? <span className={`${props.secondaryLabelIconCssClass} me-2`}></span> : <></>}\n\n                    <span dangerouslySetInnerHTML={{ __html: GeneralHelper.sanitizeHtml(props.secondaryLabel, false) }}></span>\n                  </div>\n                )}\n              </>\n            ) : (\n              <></>\n            )}\n          </div>\n        ) : (\n          <></>\n        )}\n\n        <div\n          className={`textInputWrapper ${props.iconClassString ? 'hasIcon' : ''} ${props.iconPosition ?? 'start'} ${props.readOnly ? 'isReadOnly' : ''}`}\n        >\n          {props.readOnly ? (\n            props.value ? (\n              <div className=\"d-flex align-items-center\">{props.value}</div>\n            ) : (\n              <span className=\"c-gray\">{props.readOnlyPlaceholderText || '(No content)'}</span>\n            )\n          ) : (\n            <>\n              <input\n                ref={inputRef}\n                className=\"form-control\"\n                type={props.type ?? 'text'}\n                value={!isUncontrolledComponent ? (props.value ?? '') : undefined}\n                defaultValue={props.initialValue ?? undefined}\n                onChange={(e) => {\n                  e.preventDefault();\n                  e.stopPropagation();\n\n                  if (props.isDisabled) {\n                    return;\n                  }\n\n                  let newValue = e.target.value;\n\n                  if (props.maxLength !== undefined && (newValue ?? '').length > props.maxLength) {\n                    newValue = newValue.substring(0, props.maxLength);\n                  }\n\n                  // If we're debouncing things, the input is uncontrolled and we want to fire the\n                  // onChange event after the user stops typing for the specified duration\n                  if (isUncontrolledComponent) {\n                    if (textChangeTimeout.current) {\n                      clearTimeout(textChangeTimeout.current);\n                    }\n\n                    textChangeTimeout.current = setTimeout(() => {\n                      props.onChange(newValue);\n                    }, props.debounceTimeout);\n                  } else {\n                    props.onChange(newValue);\n                  }\n                }}\n                onFocus={() => {\n                  props.onFocus?.();\n                }}\n                onBlur={() => {\n                  props.onBlur?.();\n                }}\n                onKeyDown={(e) => {\n                  props.onKeyDown?.(e);\n                }}\n                placeholder={props.placeholder}\n                required={props.required}\n                disabled={props.isDisabled}\n                minLength={props.minLength}\n                maxLength={props.maxLength}\n              />\n\n              {props.iconClassString ? (\n                <span\n                  className={`inputIcon ${props.iconPosition ?? 'start'}`}\n                  onClick={() => {\n                    if (props.iconClickAction == 'copy-content') {\n                      const textToCopy = props.value;\n                      const tempInput = document.createElement('input');\n                      tempInput.value = textToCopy!;\n                      document.body.appendChild(tempInput);\n                      tempInput.select();\n                      document.execCommand('copy');\n                      document.body.removeChild(tempInput);\n                      showInfoNotification('The text has been copied to your clipboard.');\n                    } else if (props.iconClickAction) {\n                      props.iconClickAction();\n                    }\n                  }}\n                >\n                  <span className={props.iconClassString}></span>\n                </span>\n              ) : (\n                <></>\n              )}\n\n              {!props.isDisabled &&\n              (isUncontrolledComponent\n                ? ((inputRef as any)?.current?.value ?? '').trim().length > 0\n                : (props.value ?? '').trim().length > 0) ? (\n                <span\n                  className=\"clearIcon\"\n                  onClick={(e) => {\n                    e.preventDefault();\n                    e.stopPropagation();\n\n                    props.onChange('');\n\n                    if (isUncontrolledComponent && (inputRef as any)?.current) {\n                      (inputRef as any).current.value = '';\n                    }\n\n                    // Give focus immediately back to the input\n                    inputRef.current?.focus();\n                  }}\n                >\n                  <span className=\"fa-solid fa-times\"></span>\n                </span>\n              ) : (\n                <></>\n              )}\n            </>\n          )}\n        </div>\n      </div>\n    </>\n  );\n});\n\nNectarineTextInput.displayName = 'NectarineTextInput';\n\nexport default NectarineTextInput;\n","import HttpHelper from '../../components/Helpers/HttpHelper';\nimport { ErrorLogService } from '../ErrorLogService';\nimport ApiServiceBase from './ApiServiceBase';\n\nexport default class AdvisorsApiService extends ApiServiceBase {\n  private static className = 'AdvisorsApiService';\n\n  public static async getAllAdvisorDetails(queryStringParams?: string): Promise<Advisor_BasicDetails_ViewModel[]> {\n    const url = `api/AdvisorResults/get-advisors-details${queryStringParams ?? ''}`;\n\n    try {\n      const result = await this.makeApiCall<Advisor_BasicDetails_ViewModel[]>(() => HttpHelper.get(url));\n\n      return result;\n    } catch (error: unknown) {\n      ErrorLogService.logError(\n        `${this.className} - getAllAdvisorDetails()`,\n        `An error occurred while loading advisors details: ${url}.`,\n        error\n      );\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async getAdvisorDetailsByIdOrSlug(\n    idOrSlug: string,\n    showAttributes: boolean,\n    showDetails: boolean,\n    showReviewDetails: boolean\n  ): Promise<Advisor_BasicDetails_ViewModel> {\n    try {\n      const result = await this.makeApiCall<Advisor_BasicDetails_ViewModel>(() =>\n        HttpHelper.get(`api/users/slug/${showAttributes}/${showDetails}/${showReviewDetails}/${idOrSlug}`)\n      );\n      return result;\n    } catch (error: unknown) {\n      ErrorLogService.logError(\n        `${this.className} - getAdvisorDetailsBySlug()`,\n        `An error occurred while loading advisor details with slug: ${idOrSlug}.`,\n        error\n      );\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async getAdvisorsSharedAttributes(): Promise<Advisor_BasicDetails_ViewModel> {\n    try {\n      const result = await this.makeApiCall<Advisor_BasicDetails_ViewModel>(() => HttpHelper.get(`api/advisor/sharedattributes`));\n      return result;\n    } catch (error: unknown) {\n      ErrorLogService.logError(\n        `${this.className} - getAdvisorsSharedAttributes()`,\n        `An error occurred while setting an advisor's shared attributes.`,\n        error\n      );\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async getAdvisorThePlanAvailability(): Promise<Advisor_ThePlanAvailability_ViewModel> {\n    try {\n      const result = await this.makeApiCall<Advisor_ThePlanAvailability_ViewModel>(() =>\n        HttpHelper.get(`api/advisor/get-plan-availability`)\n      );\n      return result;\n    } catch (error: unknown) {\n      ErrorLogService.logError(\n        `${this.className} - getAdvisorThePlanAvailability()`,\n        `An error occurred while setting an advisor's shared attributes.`,\n        error\n      );\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async saveAdvisorThePlanAvailability(editModel: Advisor_ThePlanAvailability_EditModel): Promise<void> {\n    try {\n      const result = await this.makeApiCall<void>(() => HttpHelper.post(`api/advisor/save-plan-availability`, editModel));\n      return result;\n    } catch (error: unknown) {\n      ErrorLogService.logError(\n        `${this.className} - saveAdvisorThePlanAvailability()`,\n        `An error occurred while saving an advisor's Plan availability.`,\n        error\n      );\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async setAdvisorsSharedAttributes(newAttributes: string[]): Promise<void> {\n    try {\n      await this.makeApiCall<void>(() => HttpHelper.put(`api/advisor/sharedattributes`, newAttributes));\n    } catch (error: unknown) {\n      ErrorLogService.logError(\n        `${this.className} - setAdvisorsSharedAttributes()`,\n        `An error occurred while setting an advisor's shared attributes.`,\n        error\n      );\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async updateAdvisorAttribute(editModel: Advisor_Attribute_EditModel): Promise<string> {\n    try {\n      const result = (await this.makeApiCall(() => HttpHelper.put<string>(`api/advisor/attribute`, editModel)))!;\n      return result;\n    } catch (error: unknown) {\n      ErrorLogService.logError(\n        `${this.className} - updateAdvisorAttribute()`,\n        `An error occurred while updating an attribute for an advisor.`,\n        error\n      );\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async deleteAdvisorAttribute(attributeId: string): Promise<void> {\n    try {\n      await this.makeApiCall<void>(() => HttpHelper.delete(`api/advisor/attribute/${attributeId}`));\n    } catch (error: unknown) {\n      ErrorLogService.logError(\n        `${this.className} - deleteAdvisorAttribute()`,\n        `An error occurred while deleting an attribute for an advisor.`,\n        error\n      );\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async uploadProfilePhoto(formData: FormData): Promise<User_UserPhoto_ViewModel> {\n    try {\n      const result = (await this.makeApiCall(() =>\n        HttpHelper.post<User_UserPhoto_ViewModel>(`api/advisor/profilepic`, formData, 'multipart/form-data')\n      ))!;\n      return result;\n    } catch (error: unknown) {\n      ErrorLogService.logError(\n        `${this.className} - uploadProfilePhoto()`,\n        `An error occurred while uploading a profile photo for an advisor.`,\n        error\n      );\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async getAdvisorsToReview(): Promise<User_BasicDetails_ViewModel[]> {\n    try {\n      const result = await this.makeApiCall<User_BasicDetails_ViewModel[]>(() => HttpHelper.get(`api/reviews/advisors-to-review`));\n      return result;\n    } catch (error: unknown) {\n      ErrorLogService.logError(`${this.className} - getAdvisorsToReview()`, `An error occurred while loading advisors to review.`, error);\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async getAdvisorReviews(): Promise<Reviews_Review_ViewModel[]> {\n    try {\n      const result = await this.makeApiCall<Reviews_Review_ViewModel[]>(() => HttpHelper.get(`api/advisor/reviews`));\n      return result;\n    } catch (error: unknown) {\n      ErrorLogService.logError(\n        `${this.className} - getAdvisorReviews()`,\n        `An error occurred while loading reviews for the advisor.`,\n        error\n      );\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async getAdvisorClientInfo(clientIdOrEmailAddress: string): Promise<Advisor_ClientDetails_ViewModel> {\n    try {\n      const result = await this.makeApiCall<Advisor_ClientDetails_ViewModel>(() =>\n        HttpHelper.get(`api/advisor/client/${clientIdOrEmailAddress}`)\n      );\n      return result;\n    } catch (error: unknown) {\n      ErrorLogService.logError(\n        `${this.className} - getAdvisorClientInfo()`,\n        `An error occurred while loading advisor client data for client ID: ${clientIdOrEmailAddress}.`,\n        error\n      );\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async getAdvisorClients(): Promise<Advisor_ClientDetails_ViewModel[]> {\n    try {\n      const result = await this.makeApiCall<Advisor_ClientDetails_ViewModel[]>(() => HttpHelper.get(`api/advisor/clients`));\n      return result;\n    } catch (error: unknown) {\n      ErrorLogService.logError(`${this.className} - getAdvisorClients()`, `An error occurred while loading advisor clients data.`, error);\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async checkThePlanCalendlyLink(): Promise<boolean> {\n    try {\n      const result = await this.makeApiCall<boolean>(() => HttpHelper.get(`api/advisor/check-the-plan-calendly-link`));\n      return result;\n    } catch (error: unknown) {\n      ErrorLogService.logError(\n        `${this.className} - checkThePlanCalendlyLink()`,\n        `An error occurred while checking the Calendly link for The Plan.`,\n        error\n      );\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async updateAdvisor(editModel: Advisor_EditAdvisor_EditModel): Promise<void> {\n    try {\n      await this.makeApiCall<void>(() => HttpHelper.put(`api/advisor/update-advisor`, editModel));\n    } catch (error: unknown) {\n      ErrorLogService.logError(`${this.className} - updateAdvisor()`, `An error occurred while updating advisor information.`, error);\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async updateAdvisorBio(editModel: Advisor_EditAdvisor_EditModel): Promise<void> {\n    try {\n      await this.makeApiCall<void>(() => HttpHelper.put(`api/advisor/update-advisor-bio`, editModel));\n    } catch (error: unknown) {\n      ErrorLogService.logError(`${this.className} - updateAdvisorBio()`, `An error occurred while updating the advisor bio.`, error);\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async updateAdvisorRates(product: string, editModel: Advisor_EditAdvisor_EditModel): Promise<void> {\n    try {\n      await this.makeApiCall<void>(() => HttpHelper.put(`api/advisor/update-advisor-rates/${product}`, editModel));\n    } catch (error: unknown) {\n      ErrorLogService.logError(`${this.className} - updateAdvisorRates()`, `An error occurred while updating the advisor bio.`, error);\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async updateAdvisorStates(userId: string, states: string[]): Promise<void> {\n    try {\n      await this.makeApiCall<void>(() => HttpHelper.put(`api/advisor/${userId}/states`, states));\n    } catch (error: unknown) {\n      ErrorLogService.logError(`${this.className} - updateAdvisorStates()`, `An error occurred while updating the advisor states.`, error);\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async updateAdvisorFinancialPlanningLinks(editModel: Advisor_EditAdvisor_EditModel): Promise<void> {\n    try {\n      await this.makeApiCall<void>(() => HttpHelper.put(`api/advisor/update-advisor-financial-links`, editModel));\n    } catch (error: unknown) {\n      ErrorLogService.logError(\n        `${this.className} - updateAdvisorFinancialPlanningLinks()`,\n        `An error occurred while updating the advisor financial planning links.`,\n        error\n      );\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async getDashboardData(): Promise<Advisors_DashboardPage_ViewModel> {\n    try {\n      const result = await this.makeApiCall<Advisors_DashboardPage_ViewModel>(() => HttpHelper.get(`api/advisor/dashboard`));\n\n      return result;\n    } catch (error: unknown) {\n      ErrorLogService.logError(`${this.className} - getDashboardData()`, 'An error occurred while loading dashboard data.', error);\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async getPaymentsDashboardData(): Promise<Advisors_PaymentsDashboardPage_ViewModel> {\n    try {\n      const result = await this.makeApiCall<Advisors_PaymentsDashboardPage_ViewModel>(() => HttpHelper.get(`api/advisor/payments`));\n\n      return result;\n    } catch (error: unknown) {\n      ErrorLogService.logError(\n        `${this.className} - getPaymentsDashboardData()`,\n        'An error occurred while loading payments dashboard data.',\n        error\n      );\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async saveMeetingNotes(editModel: Advisor_Event_EditModel, shouldSendMeetingNotes: boolean): Promise<void> {\n    try {\n      await this.makeApiCall(() =>\n        HttpHelper.put(`api/advisor/${shouldSendMeetingNotes ? 'sendnotes' : 'savenotes'}/${editModel.id}`, editModel)\n      );\n    } catch (error: unknown) {\n      ErrorLogService.logError(`${this.className} - saveMeetingNotes()`, 'An error occurred while saving the meeting notes.', error);\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async initiateThePlan_Full(editModel: Advisors_InitiateThePlan_EditModel): Promise<void> {\n    try {\n      await this.makeApiCall(() => HttpHelper.post(`api/advisor/initiate-the-plan-full`, editModel));\n    } catch (error: unknown) {\n      ErrorLogService.logError(`${this.className} - initiateThePlan_Full()`, 'An error occurred while initiating the Plan (full).', error);\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async getMeetingNotesDraft(eventId: string): Promise<Advisor_MeetingNotesDraft_ViewModel> {\n    try {\n      const result = await this.makeApiCall(() =>\n        HttpHelper.get<Advisor_MeetingNotesDraft_ViewModel>(`api/advisor/get-meeting-notes-draft/${eventId}`)\n      );\n      return result;\n    } catch (error: unknown) {\n      ErrorLogService.logError(\n        `${this.className} - getMeetingNotesDraft()`,\n        `An error occurred while getting the meeting notes draft for event ID: '${eventId}'.`,\n        error\n      );\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n}\n","import HttpHelper from '../../components/Helpers/HttpHelper';\nimport { SortOptions } from '../../constants';\nimport { ErrorLogService } from '../ErrorLogService';\nimport ApiServiceBase from './ApiServiceBase';\n\nconst apiRouteBase = 'api/reviews';\n\nexport default class ReviewsApiService extends ApiServiceBase {\n  private static className = 'ReviewsApiService';\n\n  public static async getReviewsForCurrentUser(): Promise<Reviews_Review_ViewModel[]> {\n    try {\n      const result = await this.makeApiCall<Reviews_Review_ViewModel[]>(() => HttpHelper.get(`${apiRouteBase}/reviews`));\n      return result;\n    } catch (error: unknown) {\n      ErrorLogService.logError(\n        `${this.className} - getReviewsForCurrentUser()`,\n        'An error occurred while loading reviews for the current user.',\n        error\n      );\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async saveReview(\n    reviewObj: Reviews_Review_EditModel,\n    isNonAuthenticatedReview: boolean\n  ): Promise<Reviews_Review_ViewModel> {\n    try {\n      const url = `${apiRouteBase}/save-review${isNonAuthenticatedReview ? '-2' : ''}`;\n\n      const result = await this.makeApiCall<Reviews_Review_ViewModel>(\n        async () => (await HttpHelper.put(url, reviewObj)) as Reviews_Review_ViewModel\n      );\n\n      return result;\n    } catch (error: unknown) {\n      ErrorLogService.logError(\n        `${this.className} - saveReview()`,\n        `An error occurred while saving a review for reviewer with ID ${reviewObj.reviewerId} & reviewee with ID ${reviewObj.revieweeId}.`,\n        error\n      );\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async getAdvisorReviewsAggregateData(advisorId: string): Promise<Advisor_ReviewsAggregateData_ViewModel> {\n    try {\n      const result = await this.makeApiCall<Advisor_ReviewsAggregateData_ViewModel>(() =>\n        HttpHelper.get(`api/reviews/get-reviews-aggregate-data/${advisorId}`)\n      );\n      return result;\n    } catch (error: unknown) {\n      ErrorLogService.logError(\n        `${this.className} - getAdvisorReviewsAggregateData()`,\n        `An error occurred while loading advisor reviews aggregate data for advisor ID: ${advisorId}.`,\n        error\n      );\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async getAdvisorReviewsData(\n    advisorId: string,\n    pageNumber: number,\n    sort: SortOptions,\n    ratingToFilterBy: number,\n    showPrivateComments: boolean\n  ): Promise<Reviews_Review_ViewModel[]> {\n    try {\n      const result = await this.makeApiCall<Reviews_Review_ViewModel[]>(() =>\n        HttpHelper.get(`api/reviews/get-reviews-data/${advisorId}/${pageNumber}/${sort}/${ratingToFilterBy}/${showPrivateComments}`)\n      );\n      return result;\n    } catch (error: unknown) {\n      ErrorLogService.logError(\n        `${this.className} - getAdvisorReviewsData()`,\n        `An error occurred while loading advisor reviews data for advisor ID: ${advisorId}.`,\n        error\n      );\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n}\n","import HttpHelper from '../../components/Helpers/HttpHelper';\nimport { ErrorLogService } from '../ErrorLogService';\nimport ApiServiceBase from './ApiServiceBase';\n\nexport default class UsersApiService extends ApiServiceBase {\n  private static className = 'UsersApiService';\n\n  public static async register(editModel: Users_Register_EditModel): Promise<void> {\n    try {\n      await this.makeApiCall(() => HttpHelper.post(`api/home/register`, editModel));\n    } catch (error: unknown) {\n      ErrorLogService.logError(\n        `${this.className} - register()`,\n        `An error occurred while registering a user: ${editModel.firstName} ${editModel.lastName}`,\n        error\n      );\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async getBasicUserInformation(userId: string): Promise<User_BasicDetails_ViewModel> {\n    try {\n      const result = await this.makeApiCall<User_BasicDetails_ViewModel>(() => HttpHelper.get(`api/home/users/${userId}`));\n      return result;\n    } catch (error: unknown) {\n      ErrorLogService.logError(\n        `${this.className} - getBasicUserInformation()`,\n        `An error occurred while loading user information for user ID '${userId}'.`,\n        error\n      );\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async getAdvisorComplianceDocument_ThePlan(thePlanDetailId: string): Promise<Advisor_ComplianceDocument_ViewModel> {\n    try {\n      const result = await this.makeApiCall<Advisor_ComplianceDocument_ViewModel>(() =>\n        HttpHelper.get(`api/users/get-advisor-compliance-document/the-plan/${thePlanDetailId}`)\n      );\n      return result;\n    } catch (error: unknown) {\n      ErrorLogService.logError(\n        `${this.className} - getAdvisorComplianceDocument_ThePlan()`,\n        `An error occurred while loading the compliance document for the plan detail ID: '${thePlanDetailId}'.`,\n        error\n      );\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async agreeToPlanTerms(advisorUserId: string, editModel: Users_AgreeToTerms_EditModel): Promise<void> {\n    try {\n      await this.makeApiCall(() => HttpHelper.post(`api/users/agreetoterms/${advisorUserId}`, editModel));\n    } catch (error: unknown) {\n      ErrorLogService.logError(\n        `${this.className} - agreeToPlanTerms()`,\n        `An error occurred while agreeing to terms for advisor ID: ${advisorUserId}`,\n        error\n      );\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n\n  public static async contactUs(editModel: Users_ContactUs_EditModel): Promise<void> {\n    try {\n      await this.makeApiCall(() => HttpHelper.post(`api/home/contact`, editModel));\n    } catch (error: unknown) {\n      ErrorLogService.logError(`${this.className} - contactUs()`, `An error occurred while submitting the contact form.`, error);\n\n      // Rethrow the error so the calling code can react and fail gracefully\n      throw error;\n    }\n  }\n}\n"],"names":["defaultReviewViewInformation","currentPage","filteredByRating","sortOption","SortOptions","Newest","props","isLoadingReviews","setIsLoadingReviews","useState","reviewViewOptions","setReviewViewOptions","reviewsAggregateData","setReviewsAggregateData","sortedReviewsData","setSortedReviewsData","showErrorNotification","useNotificationsPanelContext","useEffect","async","_reviewViewOptions$fi","reviewsAggregateDataResult","reviewsDataResult","Promise","all","ReviewsApiService","getAdvisorReviewsAggregateData","advisorId","getAdvisorReviewsData","showPrivateComments","loadData","updateDisplayedReviews","viewOptions","changedProperty","_viewOptions$filtered","nextResults","newReviewsList","firstResultOfNewData","setTimeout","_document$getElementB","document","getElementById","id","scrollIntoView","uniqBy","v","error","ErrorLogService","logError","concat","AdvisorDetails","getStyleOfReviewBar","barValue","width","reviewsByValue","totalReviews","getRemainingReviewResultsToDisplay","_reviewViewOptions$fi2","filteredReviews","Math","max","_jsxs","_Fragment","children","_jsx","className","title","Array","keys","map","currRating","floor","overallRating","style","toFixed","reverse","onClick","newVal","_objectSpread","Label","for","NectarineSelectInput","items","name","value","Oldest","Highest","Lowest","onChange","includes","length","newObj","getSortDisplayText","currReview","rating","body","privateComments","displayName","DateHelper","printMonthYearLong","modifiedAt","LoadingSpinner","message","NectarineButton","text","color","AdvisorsHelper","getAdvisorDisplayName","advisorObj","fullName","certifications","filter","join","getAdvisorDisplayNameJSX","fontSize","_advisorObj$certifica","certificationsContainsTrademarkSymbol","returnString","stringParts","split","trademarkSymbolJSX","stringPartsJSX","i","stringPartsJSX2","iterationCount","splice","ErrorsHelper","getErrorMessageFromErrorObject","errorObject","errorObjectAsString","trim","Error","CommonErrorMessages","General","CommonApiBadRequestErrors","NotLoggedIn","savePhotoLoading","setSavePhotoLoading","errorSection","setErrorSection","show","selectedFile","setSelectedFile","formRef","useRef","onSave","hideError","formData","FormData","append","token","AuthorizeService","getAccessToken","fetch","method","headers","Authorization","save","Modal","isOpen","toggle","ref","noValidate","ModalHeader","ModalBody","Alert","Input","type","event","target","files","ModalFooter","isDisabled","showLoadingDots","_formRef$current","formIsValid","current","checkValidity","reportValidity","showSuccessNotification","showInfoNotification","AdvisorsApiService","uploadProfilePhoto","onDisabledClickFn","AdvisorDetailsSkeleton","Container","Row","Col","xl","lg","Skeleton","circle","height","inline","borderRadius","count","AttributeCategoriesText","ICanHelpYouWith","from","_","xs","IEnjoyWorkingWith","FAQs","DisclaimerRow","attributesSectionLimit","AdvisorEditAttributes","sharedAttributes","setSharedAttributes","selectedAttributes","setSelectedAttributes","saveAttributesLoading","setSaveAttributesLoading","attributesData","getAdvisorsSharedAttributes","allAttributes","advisor","iCanHelpYouWith","a","iEnjoyWorkingWith","validateSelectedAttributes","handleCheckboxChange","checked","newArray","allSelectedAttributes","countOfSelectedAttributes1","getCountOfSelectedAttributesBySection","countOfSelectedAttributes2","showError","sectionType","allAttributeIdsInSection","sort","b","item","sm","iconTag","isSaveButtonEnabled","setAdvisorsSharedAttributes","_advisorToEdit$experi","saveBioLoading","setSaveBioLoading","advisorToEdit","setAdvisorToEdit","updateAdvisorBio","experienceStart","personalBio","longBio","NectarineDateInput","label","Date","NectarineTextAreaInput","placeholder","rows","required","maxLength","e","startDate_Min","subYears","startDate_Max","addMonths","endDate_Min","endDate_Max","iconSelectItems","attributes","setAttributes","newAttribute","setNewAttribute","showConfirmationOverlay","useConfirmationOverlayContext","_props$sortByDirectio","sortByFn","orderBy","sortByDirection","createNewItem","newEducation","categoryId","subtitle","startDate","endDate","slug","NectarineTextInput","min","NectarineCheckboxInput","labelPosition","display","_item$startDate","_item$endDate","md","printYearRange","size","iconClassString","itemtoEdit","startOfDay","yesButtonText","yesAction","deleteAdvisorAttribute","attributeToDelete","newAttributes","deleteItem","savedAttributeId","updateAdvisorAttribute","newAttributesArray","push","saveItem","stateDropdownAbbreviation_NotUS","stateDropdownOptions","abbreviation","StateHelper","usStatesAndTerritories","planOptions","ProductNames","TheHour","bulletPoints","price","ThePlan","learnMoreText","_advisor$experienceSt","_advisor$experienceSt2","_advisor$longBio","_advisor$personalBio","useParams","navigateTo_Error","useNavigationService","showLoadingOverlay","hideLoadingOverlay","useLoadingOverlayContext","setAdvisor","consumer","setConsumer","redirectTo","setRedirectTo","agreeIsChecked","setAgreeIsChecked","isAuthenticated","setIsAuthenticated","state","setState","localStorage","getItem","stateIsInUS","setStateIsInUS","editBioModal","setEditBioModal","editAttributesModal","setEditAttributesModal","editEducationModal","setEditEducationModal","editExperienceModal","setEditExperienceModal","editPhotoModal","setEditPhotoModal","editProfilePicModal","setEditProfilePicModal","canEdit","setCanEdit","selectedPlanOption","setSelectedPlanOption","toggleEditBioModal","toggleEditPhotoModal","toggleEditProfilePicModal","toggleEditAttributesModal","toggleEditEducationModal","toggleEditExperienceModal","now","fiftyYearsAgo","isAuthenticatedResult","userViewModel","populateActiveUser","getAdvisorDetailsByIdOrSlug","hourlyRate","thePlanRate","reloadAdvisorDetails","window","location","href","outputParams","URLSearchParams","set","email","firstName","lastName","calendarLink","toString","getRedirectLinkForTheHour","ApplicationRoutes","ThePlan_Signup","closeAllModals","docSeparator","onScheduleClick","preventDefault","UsersApiService","agreeToPlanTerms","product","Products","stateAbbreviation","additionalComplianceDocumentIds","Helmet","AppSettings","ApplicationName","Link","to","url","Advisors","filteredAttributesSessionDataString","sessionStorage","filteredAttributesSessionData","JSON","parse","getResultsLink","Button","AdvisorEditProfilePhoto","profilePicUrl","src","alt","currPlan","React","currBulletPoint","round","toLocaleString","Register","Form","onSubmit","UncontrolledTooltip","setItem","undefined","nectarineHourComplianceDocuments","rel","advisorHourComplianceDocuments","currDocument","nectarinePlanComplianceDocuments","advisorPlanComplianceDocuments","NonUS","disabled","nextAvailability","casualDateFormat","yearsExperience","eventCount","showReviews","reviewCount","reviewAverage","AdvisorEditBio","sortBy","toLowerCase","photos","AdvisorEditPersonalPhoto","AdvisorEditCustomAttributes","education","experience","inputItem","AdvisorReviews","LoadingDots","forwardRef","GeneralHelper","generateGuid","getColorClass","getButtonJsx","_props$isDisabled","_props$onClickValidat","_props$onClick","allowClickEventToBubble","stopPropagation","onClickValidationFn","call","onKeyDown","_props$onClick2","key","displayStyle","getButtonSizeCSSClass","_props$onClickValidat2","_props$onDisabledClic","disabledTooltipText","_props$labelPosition","labelDisplayType","getLabelJsx","infoIconTooltipText","NectarineInfoIcon","tooltipText","secondaryLabel","console","warn","isUncontrolledComponent","initialValue","readOnly","mediumDateFormat","readOnlyPlaceholderText","format","defaultValue","date","toISOString","onFocus","_props$onFocus","onBlur","_props$onBlur","_props$display","_props$value","getSelectInputWrapperCSSClasses","returnValue","currItem","_currItem$isReadOnly","isReadOnly","_props$rows","minLength","_newValue","newValue","substring","_props$secondaryLabel","_props$iconPosition","_props$type","_props$initialValue","_props$iconPosition2","_current$value","_current","_props$value2","debounceTimeout","textChangeTimeout","inputRef","useImperativeHandle","secondaryLabelAlignment","secondaryLabelIconCssClass","dangerouslySetInnerHTML","__html","sanitizeHtml","iconPosition","clearTimeout","_props$onKeyDown","iconClickAction","textToCopy","tempInput","createElement","appendChild","select","execCommand","removeChild","_inputRef$current","focus","ApiServiceBase","getAllAdvisorDetails","queryStringParams","this","makeApiCall","HttpHelper","get","idOrSlug","showAttributes","showDetails","showReviewDetails","getAdvisorThePlanAvailability","saveAdvisorThePlanAvailability","editModel","post","put","attributeId","delete","getAdvisorsToReview","getAdvisorReviews","getAdvisorClientInfo","clientIdOrEmailAddress","getAdvisorClients","checkThePlanCalendlyLink","updateAdvisor","updateAdvisorRates","updateAdvisorStates","userId","states","updateAdvisorFinancialPlanningLinks","getDashboardData","getPaymentsDashboardData","saveMeetingNotes","shouldSendMeetingNotes","initiateThePlan_Full","getMeetingNotesDraft","eventId","apiRouteBase","getReviewsForCurrentUser","saveReview","reviewObj","isNonAuthenticatedReview","reviewerId","revieweeId","pageNumber","ratingToFilterBy","register","getBasicUserInformation","getAdvisorComplianceDocument_ThePlan","thePlanDetailId","advisorUserId","contactUs"],"sourceRoot":""}