@cuemath/leap 3.3.28 → 3.3.29-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/dist/assets/line-icons/icons/chevron-right.js.map +1 -1
  2. package/dist/features/auth/pla-signup/pla-analytics-events.js +9 -3
  3. package/dist/features/auth/pla-signup/pla-analytics-events.js.map +1 -1
  4. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +1 -1
  5. package/dist/features/auth/signup/custom-input-field/custom-input-field.js +8 -8
  6. package/dist/features/auth/signup/custom-input-field/custom-input-field.js.map +1 -1
  7. package/dist/features/circle-games/sign-up/sign-up.js +6 -6
  8. package/dist/features/circle-games/sign-up/sign-up.js.map +1 -1
  9. package/dist/features/homework/hw-card-list/hw-card-list-view.js +17 -17
  10. package/dist/features/milestone/create/comps/goal-completion-date-selector/goal-completion-date-selector.js +6 -6
  11. package/dist/features/milestone/create/comps/sheets-list/sheets-list-styled.js +2 -2
  12. package/dist/features/milestone/create/milestone-create-helpers.js +13 -7
  13. package/dist/features/milestone/create/milestone-create-helpers.js.map +1 -1
  14. package/dist/features/parent-dashboard/api/cancel-subscription.js +9 -0
  15. package/dist/features/parent-dashboard/api/cancel-subscription.js.map +1 -0
  16. package/dist/features/parent-dashboard/comps/billing-information/billing-information-styled.js +20 -0
  17. package/dist/features/parent-dashboard/comps/billing-information/billing-information-styled.js.map +1 -0
  18. package/dist/features/parent-dashboard/comps/billing-information/billing-information.js +96 -0
  19. package/dist/features/parent-dashboard/comps/billing-information/billing-information.js.map +1 -0
  20. package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/next-steps/next-steps-constants.js +1 -1
  21. package/dist/features/parent-dashboard/comps/next-steps/next-steps-constants.js.map +1 -0
  22. package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/next-steps/next-steps-styled.js +1 -1
  23. package/dist/features/parent-dashboard/comps/next-steps/next-steps-styled.js.map +1 -0
  24. package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/next-steps/next-steps.js +5 -5
  25. package/dist/features/parent-dashboard/comps/next-steps/next-steps.js.map +1 -0
  26. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.js +28 -22
  27. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.js.map +1 -1
  28. package/dist/features/parent-dashboard/comps/session-status/hooks/use-countdown.js +34 -0
  29. package/dist/features/parent-dashboard/comps/session-status/hooks/use-countdown.js.map +1 -0
  30. package/dist/features/parent-dashboard/comps/session-status/hooks/use-session-status-config.js +137 -0
  31. package/dist/features/parent-dashboard/comps/session-status/hooks/use-session-status-config.js.map +1 -0
  32. package/dist/features/parent-dashboard/comps/session-status/session-status-constants.js +20 -0
  33. package/dist/features/parent-dashboard/comps/session-status/session-status-constants.js.map +1 -0
  34. package/dist/features/parent-dashboard/comps/session-status/session-status-helpers.js +19 -0
  35. package/dist/features/parent-dashboard/comps/session-status/session-status-helpers.js.map +1 -0
  36. package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/session-status/session-status-styled.js +2 -2
  37. package/dist/features/parent-dashboard/comps/session-status/session-status-styled.js.map +1 -0
  38. package/dist/features/parent-dashboard/comps/session-status/session-status.js +124 -0
  39. package/dist/features/parent-dashboard/comps/session-status/session-status.js.map +1 -0
  40. package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/session-summary/session-summary-constants.js +2 -2
  41. package/dist/features/parent-dashboard/comps/session-summary/session-summary-constants.js.map +1 -0
  42. package/dist/features/parent-dashboard/comps/session-summary/session-summary.js +53 -0
  43. package/dist/features/parent-dashboard/comps/session-summary/session-summary.js.map +1 -0
  44. package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/session-summary/summary-card/summary-card-styled.js +1 -1
  45. package/dist/features/parent-dashboard/comps/session-summary/summary-card/summary-card-styled.js.map +1 -0
  46. package/dist/features/parent-dashboard/comps/session-summary/summary-card/summary-card.js +63 -0
  47. package/dist/features/parent-dashboard/comps/session-summary/summary-card/summary-card.js.map +1 -0
  48. package/dist/features/parent-dashboard/comps/upcoming-sessions/upcoming-sessions-constants.js.map +1 -0
  49. package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/upcoming-sessions/upcoming-sessions-styled.js +1 -1
  50. package/dist/features/parent-dashboard/comps/upcoming-sessions/upcoming-sessions-styled.js.map +1 -0
  51. package/dist/features/parent-dashboard/comps/upcoming-sessions/upcoming-sessions-types.js.map +1 -0
  52. package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/upcoming-sessions/upcoming-sessions.js +14 -14
  53. package/dist/features/parent-dashboard/comps/upcoming-sessions/upcoming-sessions.js.map +1 -0
  54. package/dist/features/parent-dashboard/hooks/use-fetch-parent-home.js +1 -1
  55. package/dist/features/parent-dashboard/hooks/use-fetch-parent-home.js.map +1 -1
  56. package/dist/features/parent-dashboard/hooks/use-parent-home-data.js +48 -46
  57. package/dist/features/parent-dashboard/hooks/use-parent-home-data.js.map +1 -1
  58. package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription-constants.js +21 -0
  59. package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription-constants.js.map +1 -0
  60. package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription.js +85 -0
  61. package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription.js.map +1 -0
  62. package/dist/features/parent-dashboard/modals/cancellation-confirmation/cancellation-confirmation.js +23 -0
  63. package/dist/features/parent-dashboard/modals/cancellation-confirmation/cancellation-confirmation.js.map +1 -0
  64. package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-constant.js +55 -0
  65. package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-constant.js.map +1 -0
  66. package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-styled.js +59 -0
  67. package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-styled.js.map +1 -0
  68. package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason.js +93 -0
  69. package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason.js.map +1 -0
  70. package/dist/features/parent-dashboard/modals/hooks/use-pla-model-handlers.js +66 -0
  71. package/dist/features/parent-dashboard/modals/hooks/use-pla-model-handlers.js.map +1 -0
  72. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js +3 -3
  73. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js.map +1 -1
  74. package/dist/features/parent-dashboard/modals/view-payment-method/view-payment-method.js +76 -0
  75. package/dist/features/parent-dashboard/modals/view-payment-method/view-payment-method.js.map +1 -0
  76. package/dist/features/parent-dashboard/parent-dashboard-constants.js +45 -4
  77. package/dist/features/parent-dashboard/parent-dashboard-constants.js.map +1 -1
  78. package/dist/features/parent-dashboard/parent-dashboard-types.js +3 -3
  79. package/dist/features/parent-dashboard/parent-dashboard-types.js.map +1 -1
  80. package/dist/features/parent-dashboard/parent-dashboard-view.js +197 -173
  81. package/dist/features/parent-dashboard/parent-dashboard-view.js.map +1 -1
  82. package/dist/features/student-details/class-details/class-details-utils.js +6 -6
  83. package/dist/features/student-username/add/add-student-username-constants.js +6 -0
  84. package/dist/features/student-username/add/add-student-username-constants.js.map +1 -0
  85. package/dist/features/student-username/add/add-student-username-helpers.js +6 -0
  86. package/dist/features/student-username/add/add-student-username-helpers.js.map +1 -0
  87. package/dist/features/student-username/add/add-student-username-styled.js +10 -0
  88. package/dist/features/student-username/add/add-student-username-styled.js.map +1 -0
  89. package/dist/features/student-username/add/add-student-username.js +78 -0
  90. package/dist/features/student-username/add/add-student-username.js.map +1 -0
  91. package/dist/features/student-username/add/api/update-username.js +9 -0
  92. package/dist/features/student-username/add/api/update-username.js.map +1 -0
  93. package/dist/features/student-username/add/api/username-availability.js +10 -0
  94. package/dist/features/student-username/add/api/username-availability.js.map +1 -0
  95. package/dist/features/student-username/add/hooks/use-check-username-availability.js +41 -0
  96. package/dist/features/student-username/add/hooks/use-check-username-availability.js.map +1 -0
  97. package/dist/features/trial-session/api/teacher-availability.js +9 -0
  98. package/dist/features/trial-session/api/teacher-availability.js.map +1 -0
  99. package/dist/features/trial-session/comps/class-preference/class-preference.js +61 -49
  100. package/dist/features/trial-session/comps/class-preference/class-preference.js.map +1 -1
  101. package/dist/features/trial-session/comps/class-preference/helpers.js +28 -0
  102. package/dist/features/trial-session/comps/class-preference/helpers.js.map +1 -0
  103. package/dist/features/trial-session/comps/navigation-bar/index.js +24 -24
  104. package/dist/features/trial-session/comps/navigation-bar/index.js.map +1 -1
  105. package/dist/features/trial-session/comps/school-goals/school-goals.js +51 -50
  106. package/dist/features/trial-session/comps/school-goals/school-goals.js.map +1 -1
  107. package/dist/features/trial-session/comps/session-report/session-report.js +15 -15
  108. package/dist/features/trial-session/comps/session-report/session-report.js.map +1 -1
  109. package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js +39 -38
  110. package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js.map +1 -1
  111. package/dist/features/trial-session/comps/student-feedback/student-feedback-constants.js +5 -0
  112. package/dist/features/trial-session/comps/student-feedback/student-feedback-constants.js.map +1 -1
  113. package/dist/features/trial-session/comps/student-feedback/student-feedback.js +96 -51
  114. package/dist/features/trial-session/comps/student-feedback/student-feedback.js.map +1 -1
  115. package/dist/features/trial-session/comps/student-profile/student-profile.js +70 -63
  116. package/dist/features/trial-session/comps/student-profile/student-profile.js.map +1 -1
  117. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js +43 -44
  118. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js.map +1 -1
  119. package/dist/features/trial-session/comps/test-prep/test-prep.js +40 -39
  120. package/dist/features/trial-session/comps/test-prep/test-prep.js.map +1 -1
  121. package/dist/features/trial-session/helper.js +69 -53
  122. package/dist/features/trial-session/helper.js.map +1 -1
  123. package/dist/features/trial-session/hooks/use-slide-config-update.js +49 -0
  124. package/dist/features/trial-session/hooks/use-slide-config-update.js.map +1 -0
  125. package/dist/features/trial-session/hooks/use-trial-session-navigation.js +150 -130
  126. package/dist/features/trial-session/hooks/use-trial-session-navigation.js.map +1 -1
  127. package/dist/features/trial-session/trial-session-types.js.map +1 -1
  128. package/dist/features/trial-session/trial-session-view.js +103 -112
  129. package/dist/features/trial-session/trial-session-view.js.map +1 -1
  130. package/dist/features/utils/utils.js +1 -1
  131. package/dist/features/utils/utils.js.map +1 -1
  132. package/dist/index.d.ts +77 -77
  133. package/dist/index.js +310 -309
  134. package/package.json +2 -3
  135. package/dist/features/trial-session/comps/pla/next-steps/next-steps-constants.js.map +0 -1
  136. package/dist/features/trial-session/comps/pla/next-steps/next-steps-styled.js.map +0 -1
  137. package/dist/features/trial-session/comps/pla/next-steps/next-steps.js.map +0 -1
  138. package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-countdown.js +0 -29
  139. package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-countdown.js.map +0 -1
  140. package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-status-config.js +0 -132
  141. package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-status-config.js.map +0 -1
  142. package/dist/features/trial-session/comps/pla/session-status/session-status-constants.js +0 -11
  143. package/dist/features/trial-session/comps/pla/session-status/session-status-constants.js.map +0 -1
  144. package/dist/features/trial-session/comps/pla/session-status/session-status-helpers.js +0 -19
  145. package/dist/features/trial-session/comps/pla/session-status/session-status-helpers.js.map +0 -1
  146. package/dist/features/trial-session/comps/pla/session-status/session-status-styled.js.map +0 -1
  147. package/dist/features/trial-session/comps/pla/session-status/session-status.js +0 -127
  148. package/dist/features/trial-session/comps/pla/session-status/session-status.js.map +0 -1
  149. package/dist/features/trial-session/comps/pla/session-summary/session-summary-constants.js.map +0 -1
  150. package/dist/features/trial-session/comps/pla/session-summary/session-summary.js +0 -53
  151. package/dist/features/trial-session/comps/pla/session-summary/session-summary.js.map +0 -1
  152. package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card-styled.js.map +0 -1
  153. package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card.js +0 -56
  154. package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card.js.map +0 -1
  155. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-constants.js.map +0 -1
  156. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-styled.js.map +0 -1
  157. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-types.js.map +0 -1
  158. package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions.js.map +0 -1
  159. package/dist/node_modules/date-fns/_lib/getRoundingMethod.js +0 -10
  160. package/dist/node_modules/date-fns/_lib/getRoundingMethod.js.map +0 -1
  161. package/dist/node_modules/date-fns/differenceInMilliseconds.js +0 -9
  162. package/dist/node_modules/date-fns/differenceInMilliseconds.js.map +0 -1
  163. package/dist/node_modules/date-fns/differenceInSeconds.js +0 -11
  164. package/dist/node_modules/date-fns/differenceInSeconds.js.map +0 -1
  165. /package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/upcoming-sessions/upcoming-sessions-constants.js +0 -0
  166. /package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/upcoming-sessions/upcoming-sessions-types.js +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"upcoming-sessions.js","sources":["../../../../../../src/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions.tsx"],"sourcesContent":["import type { ISpacingConfig } from '../../../../parent-dashboard/parent-dashboard-types';\nimport type { TColorNames } from '../../../../ui/types';\n\nimport { format, isToday, addDays } from 'date-fns';\nimport React, { useCallback, memo, useMemo } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport Check2Icon from '../../../../../assets/line-icons/icons/check2';\nimport { CUEMATH_APP_URL } from '../../../../../constants/config';\nimport {\n DESKTOP_SPACING,\n MOBILE_SPACING,\n} from '../../../../parent-dashboard/parent-dashboard-constants';\nimport TextButton from '../../../../ui/buttons/text-button/text-button';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Separator from '../../../../ui/separator/separator';\nimport Text from '../../../../ui/text/text';\nimport { EDeviceType } from '../../../../ui/theme/constants';\nimport { DAYS_TO_SHOW } from './upcoming-sessions-constants';\nimport * as Styled from './upcoming-sessions-styled';\nimport { ESessionStatus, type IUpcomingSessionsProps } from './upcoming-sessions-types';\n\nconst UpcomingSessions: React.FC<IUpcomingSessionsProps> = ({ sessions = [] }) => {\n const theme = useTheme();\n const isMobile = theme.device <= EDeviceType.MOBILE;\n const today = useMemo(() => new Date(), []);\n const sessionsMap = useMemo(\n () =>\n new Map(\n sessions.map(session => [\n format(new Date(session.session_start * 1000), 'yyyy-MM-dd'),\n session,\n ]),\n ),\n [sessions],\n );\n\n const days = useMemo(\n () => Array.from({ length: DAYS_TO_SHOW }, (_, i) => addDays(today, i)),\n [today],\n );\n\n const spacing: ISpacingConfig = useMemo(\n () => (isMobile ? MOBILE_SPACING : DESKTOP_SPACING),\n [isMobile],\n );\n\n const handleOpenApp = useCallback(() => {\n window.open(CUEMATH_APP_URL, '_blank');\n }, []);\n\n if (sessions.length === 0) return null;\n\n return (\n <FlexView>\n <Separator height={spacing.separator.extraLarge} />\n <FlexView>\n <Text $renderAs=\"ah4-bold\" $renderOnMobileAs=\"ab1-bold\" $color=\"WHITE\">\n Upcoming sessions\n </Text>\n <Separator height={4} />\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $flexColumnGapX={0.25}>\n <Text $renderAs=\"ub1\" $color=\"WHITE_T_60\">\n For more details,\n </Text>\n <TextButton label=\"download the Cuemath app\" onClick={handleOpenApp} color=\"WHITE\" />\n </FlexView>\n </FlexView>\n <Separator height={isMobile ? 16 : 20} />\n <FlexView $borderColor=\"BLACK_5\">\n {days.map(day => {\n const dateKey = format(day, 'yyyy-MM-dd');\n const session = sessionsMap.get(dateKey);\n const isTodayFlag = isToday(day);\n const isSessionCompleted = session?.session_status === ESessionStatus.COMPLETED;\n const defaultTimecellBg =\n session?.session_status === ESessionStatus.IN_FUTURE ? 'GREEN_6' : 'BLACK_1';\n const timeCellBg = isSessionCompleted ? 'WHITE_T_10' : defaultTimecellBg;\n\n return (\n <Styled.SessionRow key={dateKey} $flex={1} $flexDirection=\"row\">\n <Styled.DayLabel\n $width={80}\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $flexColumnGapX={0.25}\n $gutterX={1}\n $gapX={0.5}\n >\n <Text $renderAs=\"ac4-black\" $color=\"WHITE_1\">\n {format(day, 'EEE').toUpperCase()}\n </Text>\n <Styled.DateWrapper\n $background={isTodayFlag ? 'WHITE' : 'TRANSPARENT'}\n $width={22}\n $height={22}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $borderRadius={11}\n $gutter={1}\n $gap={2}\n >\n <Text $renderAs=\"ab3-bold\" $color={isTodayFlag ? 'BLACK_1' : 'WHITE_1'}>\n {format(day, 'd')}\n </Text>\n </Styled.DateWrapper>\n </Styled.DayLabel>\n <FlexView\n $flex={1}\n $gutterX={1}\n $gap={14}\n $background={timeCellBg as TColorNames}\n $flexDirection=\"row\"\n $justifyContent=\"space-between\"\n $alignItems=\"center\"\n >\n {session ? (\n <Text $renderAs=\"ab2\" $color={isSessionCompleted ? 'WHITE_T_38' : 'WHITE'}>\n {format(new Date(session.session_start * 1000), 'p')}\n </Text>\n ) : null}\n {isSessionCompleted && <Check2Icon color={theme.colors.WHITE_T_38} />}\n </FlexView>\n </Styled.SessionRow>\n );\n })}\n </FlexView>\n </FlexView>\n );\n};\n\nexport default memo(UpcomingSessions);\n"],"names":["UpcomingSessions","sessions","theme","useTheme","isMobile","EDeviceType","today","useMemo","sessionsMap","session","format","days","DAYS_TO_SHOW","_","i","addDays","spacing","MOBILE_SPACING","DESKTOP_SPACING","handleOpenApp","useCallback","CUEMATH_APP_URL","FlexView","jsx","Separator","Text","TextButton","day","dateKey","isTodayFlag","isToday","isSessionCompleted","ESessionStatus","defaultTimecellBg","timeCellBg","Styled.SessionRow","jsxs","Styled.DayLabel","Styled.DateWrapper","Check2Icon","Up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A,UAACd;AAAA,UAAA;AAAA,YACC,OAAO;AAAA,YACP,UAAU;AAAA,YACV,MAAM;AAAA,YACN,aAAaY;AAAA,YACb,gBAAe;AAAA,YACf,iBAAgB;AAAA,YAChB,aAAY;AAAA,YAEX,UAAA;AAAA,cAAAzB,sBACEgB,GAAK,EAAA,WAAU,OAAM,QAAQM,IAAqB,eAAe,SAC/D,UAAOrB,EAAA,IAAI,KAAKD,EAAQ,gBAAgB,GAAI,GAAG,GAAG,EACrD,CAAA,IACE;AAAA,cACHsB,KAAuB,gBAAAR,EAAAgB,GAAA,EAAW,OAAOrC,EAAM,OAAO,YAAY;AAAA,YAAA;AAAA,UAAA;AAAA,QACrE;AAAA,MAAA,EAAA,GA1CsB0B,CA2CxB;AAAA,IAEH,CAAA,GACH;AAAA,EACF,EAAA,CAAA;AAEJ,GAEeY,KAAAC,EAAKzC,CAAgB;"}
@@ -1,10 +0,0 @@
1
- function o(n) {
2
- return (r) => {
3
- const t = (n ? Math[n] : Math.trunc)(r);
4
- return t === 0 ? 0 : t;
5
- };
6
- }
7
- export {
8
- o as getRoundingMethod
9
- };
10
- //# sourceMappingURL=getRoundingMethod.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getRoundingMethod.js","sources":["../../../../node_modules/date-fns/_lib/getRoundingMethod.mjs"],"sourcesContent":["export function getRoundingMethod(method) {\n return (number) => {\n const round = method ? Math[method] : Math.trunc;\n const result = round(number);\n // Prevent negative zero\n return result === 0 ? 0 : result;\n };\n}\n"],"names":["getRoundingMethod","method","number","result"],"mappings":"AAAO,SAASA,EAAkBC,GAAQ;AACxC,SAAO,CAACC,MAAW;AAEjB,UAAMC,KADQF,IAAS,KAAKA,CAAM,IAAI,KAAK,OACtBC,CAAM;AAE3B,WAAOC,MAAW,IAAI,IAAIA;AAAA,EAC9B;AACA;","x_google_ignoreList":[0]}
@@ -1,9 +0,0 @@
1
- import { toDate as e } from "./toDate.js";
2
- function r(t, n) {
3
- return +e(t) - +e(n);
4
- }
5
- export {
6
- r as default,
7
- r as differenceInMilliseconds
8
- };
9
- //# sourceMappingURL=differenceInMilliseconds.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"differenceInMilliseconds.js","sources":["../../../node_modules/date-fns/differenceInMilliseconds.mjs"],"sourcesContent":["import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name differenceInMilliseconds\n * @category Millisecond Helpers\n * @summary Get the number of milliseconds between the given dates.\n *\n * @description\n * Get the number of milliseconds between the given dates.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dateLeft - The later date\n * @param dateRight - The earlier date\n *\n * @returns The number of milliseconds\n *\n * @example\n * // How many milliseconds are between\n * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?\n * const result = differenceInMilliseconds(\n * new Date(2014, 6, 2, 12, 30, 21, 700),\n * new Date(2014, 6, 2, 12, 30, 20, 600)\n * )\n * //=> 1100\n */\nexport function differenceInMilliseconds(dateLeft, dateRight) {\n return +toDate(dateLeft) - +toDate(dateRight);\n}\n\n// Fallback for modularized imports:\nexport default differenceInMilliseconds;\n"],"names":["differenceInMilliseconds","dateLeft","dateRight","toDate"],"mappings":";AA0BO,SAASA,EAAyBC,GAAUC,GAAW;AAC5D,SAAO,CAACC,EAAOF,CAAQ,IAAI,CAACE,EAAOD,CAAS;AAC9C;","x_google_ignoreList":[0]}
@@ -1,11 +0,0 @@
1
- import { getRoundingMethod as r } from "./_lib/getRoundingMethod.js";
2
- import { differenceInMilliseconds as c } from "./differenceInMilliseconds.js";
3
- function o(d, f, e) {
4
- const n = c(d, f) / 1e3;
5
- return r(e == null ? void 0 : e.roundingMethod)(n);
6
- }
7
- export {
8
- o as default,
9
- o as differenceInSeconds
10
- };
11
- //# sourceMappingURL=differenceInSeconds.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"differenceInSeconds.js","sources":["../../../node_modules/date-fns/differenceInSeconds.mjs"],"sourcesContent":["import { getRoundingMethod } from \"./_lib/getRoundingMethod.mjs\";\nimport { differenceInMilliseconds } from \"./differenceInMilliseconds.mjs\";\n\n/**\n * The {@link differenceInSeconds} function options.\n */\n\n/**\n * @name differenceInSeconds\n * @category Second Helpers\n * @summary Get the number of seconds between the given dates.\n *\n * @description\n * Get the number of seconds between the given dates.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dateLeft - The later date\n * @param dateRight - The earlier date\n * @param options - An object with options.\n *\n * @returns The number of seconds\n *\n * @example\n * // How many seconds are between\n * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000?\n * const result = differenceInSeconds(\n * new Date(2014, 6, 2, 12, 30, 20, 0),\n * new Date(2014, 6, 2, 12, 30, 7, 999)\n * )\n * //=> 12\n */\nexport function differenceInSeconds(dateLeft, dateRight, options) {\n const diff = differenceInMilliseconds(dateLeft, dateRight) / 1000;\n return getRoundingMethod(options?.roundingMethod)(diff);\n}\n\n// Fallback for modularized imports:\nexport default differenceInSeconds;\n"],"names":["differenceInSeconds","dateLeft","dateRight","options","diff","differenceInMilliseconds","getRoundingMethod"],"mappings":";;AAgCO,SAASA,EAAoBC,GAAUC,GAAWC,GAAS;AAChE,QAAMC,IAAOC,EAAyBJ,GAAUC,CAAS,IAAI;AAC7D,SAAOI,EAAkBH,KAAA,gBAAAA,EAAS,cAAc,EAAEC,CAAI;AACxD;","x_google_ignoreList":[0]}