@cuemath/leap 2.9.4-link.1 → 2.9.4

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.
@@ -1,7 +1,7 @@
1
1
  import { jsxs as e, jsx as r, Fragment as _ } from "react/jsx-runtime";
2
2
  import { memo as P, useMemo as b } from "react";
3
3
  import { ILLUSTRATIONS as w } from "../../../../assets/illustrations/illustrations.js";
4
- import m from "../../../ui/image/image.js";
4
+ import c from "../../../ui/image/image.js";
5
5
  import D from "../../../ui/layout/flex-view.js";
6
6
  import n from "../../../ui/separator/separator.js";
7
7
  import x from "../../../ui/text/text.js";
@@ -9,9 +9,9 @@ import { useTrialSessionContext as O } from "../../context/use-trial-session-con
9
9
  import { TrialPageId as t } from "../../trial-session-constants.js";
10
10
  import N from "../slide-header/index.js";
11
11
  import { goalDetails as R, parentAppDetails as S, circleDetails as k } from "./offering-information-constants.js";
12
- import { Container as W, Wrapper as c, AnimationWrapper as B, DetailsWrapper as j, TextElement as d, RefundImageWrapper as F } from "./offering-information-styled.js";
12
+ import { Container as W, Wrapper as d, AnimationWrapper as B, DetailsWrapper as j, TextElement as p, RefundImageWrapper as F } from "./offering-information-styled.js";
13
13
  const J = P(() => {
14
- const { slideConfig: p } = O(), { id: i } = p, a = b(() => {
14
+ const { slideConfig: h } = O(), { id: i } = h, a = b(() => {
15
15
  switch (i) {
16
16
  case t.CIRCLE_INFORMATION:
17
17
  return k;
@@ -26,16 +26,16 @@ const J = P(() => {
26
26
  return /* @__PURE__ */ e(W, { children: [
27
27
  /* @__PURE__ */ r(n, { height: 60 }),
28
28
  /* @__PURE__ */ r(N, {}),
29
- /* @__PURE__ */ r(c, { $width: 750, $flexDirection: "row", $justifyContent: "center", children: a.length > 0 ? a.map((h, l, g) => {
29
+ /* @__PURE__ */ r(d, { $width: 750, $flexDirection: "row", $justifyContent: "center", children: a.length > 0 ? a.map((g, l, f) => {
30
30
  const {
31
- title: f,
31
+ title: u,
32
32
  description: o,
33
- animationBackground: u,
34
- infoBackground: $,
35
- animationSource: A,
36
- animationPadding: L,
37
- dimension: C
38
- } = h || {}, [I, E] = C || [], s = l === g.length - 1;
33
+ animationBackground: $,
34
+ infoBackground: A,
35
+ animationSource: L,
36
+ animationPadding: C,
37
+ dimension: I
38
+ } = g || {}, [E, T] = I || [], m = l === f.length - 1;
39
39
  return /* @__PURE__ */ e(D, { $flex: 1, children: [
40
40
  /* @__PURE__ */ r(
41
41
  B,
@@ -43,25 +43,25 @@ const J = P(() => {
43
43
  $justifyContent: "center",
44
44
  $alignItems: "center",
45
45
  $borderColor: "BLACK_1",
46
- $background: u,
47
- $gap: L,
48
- $isLastElement: s,
49
- children: /* @__PURE__ */ r(m, { src: A, width: I, height: E, withLoader: !0 })
46
+ $background: $,
47
+ $gap: C,
48
+ $isLastElement: m,
49
+ children: /* @__PURE__ */ r(c, { src: L, width: E, height: T, withLoader: !0 })
50
50
  }
51
51
  ),
52
52
  /* @__PURE__ */ e(
53
53
  j,
54
54
  {
55
- $background: $,
55
+ $background: A,
56
56
  $gapX: 1.375,
57
57
  $gutterX: 2,
58
58
  $borderColor: "BLACK_1",
59
- $isLastElement: s,
59
+ $isLastElement: m,
60
60
  $inherit: !0,
61
61
  children: [
62
- /* @__PURE__ */ r(d, { $renderAs: "ac2-black", children: f }),
62
+ /* @__PURE__ */ r(p, { $renderAs: "ac2-black", children: u }),
63
63
  /* @__PURE__ */ r(n, { heightX: 1 }),
64
- /* @__PURE__ */ r(d, { $renderAs: "ab3", children: typeof o == "string" ? o : o.map((T) => /* @__PURE__ */ r("li", { children: T })) })
64
+ /* @__PURE__ */ r(p, { $renderAs: "ab3", children: typeof o == "string" ? o : o.map((s) => /* @__PURE__ */ r("li", { children: s }, s)) })
65
65
  ]
66
66
  }
67
67
  )
@@ -70,7 +70,7 @@ const J = P(() => {
70
70
  i === t.PARENT_APP && /* @__PURE__ */ e(_, { children: [
71
71
  /* @__PURE__ */ r(n, { height: 50 }),
72
72
  /* @__PURE__ */ e(
73
- c,
73
+ d,
74
74
  {
75
75
  $width: 450,
76
76
  $gap: 14,
@@ -81,7 +81,7 @@ const J = P(() => {
81
81
  children: [
82
82
  /* @__PURE__ */ r(x, { $renderAs: "ab2", children: "Get 24/7 customer support through this app." }),
83
83
  /* @__PURE__ */ r(F, { children: /* @__PURE__ */ r(
84
- m,
84
+ c,
85
85
  {
86
86
  src: w.REFUND_POLICY_WITH_HEADPHONE,
87
87
  width: 135,
@@ -1 +1 @@
1
- {"version":3,"file":"offering-information.js","sources":["../../../../../src/features/trial-session/comps/offering-information/offering-information.tsx"],"sourcesContent":["import { memo, useMemo } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Image from '../../../ui/image/image';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport { TrialPageId } from '../../trial-session-constants';\nimport SlideHeader from '../slide-header';\nimport { circleDetails, goalDetails, parentAppDetails } from './offering-information-constants';\nimport * as Styled from './offering-information-styled';\n\nconst OfferingInformation = memo(() => {\n const { slideConfig } = useTrialSessionContext();\n const { id } = slideConfig;\n\n const offeringDetails = useMemo(() => {\n switch (id) {\n case TrialPageId.CIRCLE_INFORMATION:\n return circleDetails;\n case TrialPageId.PARENT_APP:\n return parentAppDetails;\n case TrialPageId.GOAL_DETAILS:\n return goalDetails;\n default:\n return [];\n }\n }, [id]);\n\n return (\n <Styled.Container>\n <Separator height={60} />\n <SlideHeader />\n <Styled.Wrapper $width={750} $flexDirection=\"row\" $justifyContent=\"center\">\n {offeringDetails.length > 0\n ? offeringDetails.map((details, index, detailsArray) => {\n const {\n title,\n description,\n animationBackground,\n infoBackground,\n animationSource,\n animationPadding,\n dimension,\n } = details || {};\n const [width, height] = dimension || [];\n const lastElement = index === detailsArray.length - 1;\n\n return (\n <FlexView key={`offering-${index}`} $flex={1}>\n <Styled.AnimationWrapper\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $borderColor=\"BLACK_1\"\n $background={animationBackground}\n $gap={animationPadding}\n $isLastElement={lastElement}\n >\n <Image src={animationSource} width={width} height={height} withLoader />\n </Styled.AnimationWrapper>\n <Styled.DetailsWrapper\n $background={infoBackground}\n $gapX={1.375}\n $gutterX={2}\n $borderColor=\"BLACK_1\"\n $isLastElement={lastElement}\n $inherit\n >\n <Styled.TextElement $renderAs=\"ac2-black\">{title}</Styled.TextElement>\n <Separator heightX={1} />\n <Styled.TextElement $renderAs=\"ab3\">\n {typeof description === 'string'\n ? description\n : description.map(desc => <li>{desc}</li>)}\n </Styled.TextElement>\n </Styled.DetailsWrapper>\n </FlexView>\n );\n })\n : null}\n </Styled.Wrapper>\n {id === TrialPageId.PARENT_APP && (\n <>\n <Separator height={50} />\n <Styled.Wrapper\n $width={450}\n $gap={14}\n $gutter={30}\n $background=\"YELLOW_1\"\n $borderColor=\"BLACK_T_15\"\n $position=\"relative\"\n >\n <Text $renderAs=\"ab2\">Get 24/7 customer support through this app.</Text>\n <Styled.RefundImageWrapper>\n <Image\n src={ILLUSTRATIONS.REFUND_POLICY_WITH_HEADPHONE}\n width={135}\n height={80}\n withLoader\n />\n </Styled.RefundImageWrapper>\n </Styled.Wrapper>\n </>\n )}\n </Styled.Container>\n );\n});\n\nexport default OfferingInformation;\n"],"names":["OfferingInformation","memo","slideConfig","useTrialSessionContext","id","offeringDetails","useMemo","TrialPageId","circleDetails","parentAppDetails","goalDetails","jsxs","Styled.Container","jsx","Separator","SlideHeader","Styled.Wrapper","details","index","detailsArray","title","description","animationBackground","infoBackground","animationSource","animationPadding","dimension","width","height","lastElement","FlexView","Styled.AnimationWrapper","Image","Styled.DetailsWrapper","Styled.TextElement","desc","Fragment","Text","Styled.RefundImageWrapper","ILLUSTRATIONS"],"mappings":";;;;;;;;;;;;AAaM,MAAAA,IAAsBC,EAAK,MAAM;AAC/B,QAAA,EAAE,aAAAC,MAAgBC,KAClB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,YAChB,UAAQ;AAAA,YAER,UAAA;AAAA,cAAA,gBAAAhB,EAACqB,GAAA,EAAmB,WAAU,aAAa,UAAMd,GAAA;AAAA,cACjD,gBAAAP,EAACC,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,gCACtBoB,GAAA,EAAmB,WAAU,OAC3B,UAAO,OAAAb,KAAgB,WACpBA,IACAA,EAAY,IAAI,CAAAc,wBAAS,MAAI,EAAA,UAAAA,GAAK,CAAK,GAC7C;AAAA,YAAA;AAAA,UAAA;AAAA,QACF;AAAA,MA1Ba,EAAA,GAAA,YAAYjB,CAAK,EA2BhC;AAAA,IAAA,CAEH,IACD,KACN,CAAA;AAAA,IACCd,MAAOG,EAAY,cAEhB,gBAAAI,EAAAyB,GAAA,EAAA,UAAA;AAAA,MAAC,gBAAAvB,EAAAC,GAAA,EAAU,QAAQ,GAAI,CAAA;AAAA,MACvB,gBAAAH;AAAA,QAACK;AAAAA,QAAA;AAAA,UACC,QAAQ;AAAA,UACR,MAAM;AAAA,UACN,SAAS;AAAA,UACT,aAAY;AAAA,UACZ,cAAa;AAAA,UACb,WAAU;AAAA,UAEV,UAAA;AAAA,YAAC,gBAAAH,EAAAwB,GAAA,EAAK,WAAU,OAAM,UAA2C,+CAAA;AAAA,YACjE,gBAAAxB,EAACyB,GAAA,EACC,UAAA,gBAAAzB;AAAA,cAACmB;AAAA,cAAA;AAAA,gBACC,KAAKO,EAAc;AAAA,gBACnB,OAAO;AAAA,gBACP,QAAQ;AAAA,gBACR,YAAU;AAAA,cAAA;AAAA,YAAA,GAEd;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA,GACF;AAAA,EAEJ,EAAA,CAAA;AAEJ,CAAC;"}
1
+ {"version":3,"file":"offering-information.js","sources":["../../../../../src/features/trial-session/comps/offering-information/offering-information.tsx"],"sourcesContent":["import { memo, useMemo } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Image from '../../../ui/image/image';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport { TrialPageId } from '../../trial-session-constants';\nimport SlideHeader from '../slide-header';\nimport { circleDetails, goalDetails, parentAppDetails } from './offering-information-constants';\nimport * as Styled from './offering-information-styled';\n\nconst OfferingInformation = memo(() => {\n const { slideConfig } = useTrialSessionContext();\n const { id } = slideConfig;\n\n const offeringDetails = useMemo(() => {\n switch (id) {\n case TrialPageId.CIRCLE_INFORMATION:\n return circleDetails;\n case TrialPageId.PARENT_APP:\n return parentAppDetails;\n case TrialPageId.GOAL_DETAILS:\n return goalDetails;\n default:\n return [];\n }\n }, [id]);\n\n return (\n <Styled.Container>\n <Separator height={60} />\n <SlideHeader />\n <Styled.Wrapper $width={750} $flexDirection=\"row\" $justifyContent=\"center\">\n {offeringDetails.length > 0\n ? offeringDetails.map((details, index, detailsArray) => {\n const {\n title,\n description,\n animationBackground,\n infoBackground,\n animationSource,\n animationPadding,\n dimension,\n } = details || {};\n const [width, height] = dimension || [];\n const lastElement = index === detailsArray.length - 1;\n\n return (\n <FlexView key={`offering-${index}`} $flex={1}>\n <Styled.AnimationWrapper\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $borderColor=\"BLACK_1\"\n $background={animationBackground}\n $gap={animationPadding}\n $isLastElement={lastElement}\n >\n <Image src={animationSource} width={width} height={height} withLoader />\n </Styled.AnimationWrapper>\n <Styled.DetailsWrapper\n $background={infoBackground}\n $gapX={1.375}\n $gutterX={2}\n $borderColor=\"BLACK_1\"\n $isLastElement={lastElement}\n $inherit\n >\n <Styled.TextElement $renderAs=\"ac2-black\">{title}</Styled.TextElement>\n <Separator heightX={1} />\n <Styled.TextElement $renderAs=\"ab3\">\n {typeof description === 'string'\n ? description\n : description.map(desc => <li key={desc}>{desc}</li>)}\n </Styled.TextElement>\n </Styled.DetailsWrapper>\n </FlexView>\n );\n })\n : null}\n </Styled.Wrapper>\n {id === TrialPageId.PARENT_APP && (\n <>\n <Separator height={50} />\n <Styled.Wrapper\n $width={450}\n $gap={14}\n $gutter={30}\n $background=\"YELLOW_1\"\n $borderColor=\"BLACK_T_15\"\n $position=\"relative\"\n >\n <Text $renderAs=\"ab2\">Get 24/7 customer support through this app.</Text>\n <Styled.RefundImageWrapper>\n <Image\n src={ILLUSTRATIONS.REFUND_POLICY_WITH_HEADPHONE}\n width={135}\n height={80}\n withLoader\n />\n </Styled.RefundImageWrapper>\n </Styled.Wrapper>\n </>\n )}\n </Styled.Container>\n );\n});\n\nexport default OfferingInformation;\n"],"names":["OfferingInformation","memo","slideConfig","useTrialSessionContext","id","offeringDetails","useMemo","TrialPageId","circleDetails","parentAppDetails","goalDetails","jsxs","Styled.Container","jsx","Separator","SlideHeader","Styled.Wrapper","details","index","detailsArray","title","description","animationBackground","infoBackground","animationSource","animationPadding","dimension","width","height","lastElement","FlexView","Styled.AnimationWrapper","Image","Styled.DetailsWrapper","Styled.TextElement","desc","Fragment","Text","Styled.RefundImageWrapper","ILLUSTRATIONS"],"mappings":";;;;;;;;;;;;AAaM,MAAAA,IAAsBC,EAAK,MAAM;AAC/B,QAAA,EAAE,aAAAC,MAAgBC,KAClB,EAAE,IAAAC,EAAO,IAAAF,GAETG,IAAkBC,EAAQ,MAAM;AACpC,YAAQF,GAAI;AAAA,MACV,KAAKG,EAAY;AACR,eAAAC;AAAA,MACT,KAAKD,EAAY;AACR,eAAAE;AAAA,MACT,KAAKF,EAAY;AACR,eAAAG;AAAA,MACT;AACE,eAAO;IACX;AAAA,EAAA,GACC,CAACN,CAAE,CAAC;AAGL,SAAA,gBAAAO,EAACC,GAAA,EACC,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAU,QAAQ,GAAI,CAAA;AAAA,sBACtBC,GAAY,EAAA;AAAA,sBACZC,GAAA,EAAe,QAAQ,KAAK,gBAAe,OAAM,iBAAgB,UAC/D,UAAAX,EAAgB,SAAS,IACtBA,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AI,EAAAyB,GAAA,EAAA,UAAA;AAAA,MAAC,gBAAAvB,EAAAC,GAAA,EAAU,QAAQ,GAAI,CAAA;AAAA,MACvB,gBAAAH;AAAA,QAACK;AAAAA,QAAA;AAAA,UACC,QAAQ;AAAA,UACR,MAAM;AAAA,UACN,SAAS;AAAA,UACT,aAAY;AAAA,UACZ,cAAa;AAAA,UACb,WAAU;AAAA,UAEV,UAAA;AAAA,YAAC,gBAAAH,EAAAwB,GAAA,EAAK,WAAU,OAAM,UAA2C,+CAAA;AAAA,YACjE,gBAAAxB,EAACyB,GAAA,EACC,UAAA,gBAAAzB;AAAA,cAACmB;AAAA,cAAA;AAAA,gBACC,KAAKO,EAAc;AAAA,gBACnB,OAAO;AAAA,gBACP,QAAQ;AAAA,gBACR,YAAU;AAAA,cAAA;AAAA,YAAA,GAEd;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA,GACF;AAAA,EAEJ,EAAA,CAAA;AAEJ,CAAC;"}
@@ -1,35 +1,35 @@
1
1
  import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
- import a from "../../../ui/layout/flex-view.js";
2
+ import d from "../../../ui/layout/flex-view.js";
3
3
  import t from "../../../ui/separator/separator.js";
4
4
  import n from "../../../ui/text/text.js";
5
- import g from "./board-comp.js";
6
- import { PricingBoard as p, ImageWrapper as f, OfferText as d } from "./pricing-styled.js";
5
+ import p from "./board-comp.js";
6
+ import { PricingBoard as f, ImageWrapper as y, OfferText as h } from "./pricing-styled.js";
7
7
  const c = {
8
8
  0: "WHITE_4",
9
9
  1: "GREEN_1"
10
- }, F = ({ pricingConfig: h, intentType: y, colorIndex: i }) => {
11
- if (y === "LOW") {
10
+ }, F = ({ pricingConfig: u, intentType: A, colorIndex: i }) => {
11
+ if (A === "LOW") {
12
12
  const {
13
- plan_name: T,
14
- original_price: m,
15
- discounted_price: W,
13
+ plan_name: W,
14
+ original_price: o,
15
+ discounted_price: _,
16
16
  price_per_class: D,
17
17
  classes_per_cycle: H,
18
18
  billing_cycle: I,
19
- offer: _,
20
- currency_symbol: o
21
- } = h || {};
22
- return /* @__PURE__ */ e(p, { $width: 287, $height: 393, $gutterX: 2.5, $gapX: 2.125, children: [
23
- /* @__PURE__ */ r(f, { $color: c[i % 2] ?? "WHITE_4", children: /* @__PURE__ */ r(g, { width: 287, height: 393 }) }),
24
- /* @__PURE__ */ e(a, { $height: "100%", $justifyContent: "space-between", children: [
19
+ offer: g,
20
+ currency_symbol: a
21
+ } = u || {};
22
+ return /* @__PURE__ */ e(f, { $width: 287, $height: 393, $gutterX: 2.5, $gapX: 2.125, children: [
23
+ /* @__PURE__ */ r(y, { $color: c[i % 2] ?? "WHITE_4", children: /* @__PURE__ */ r(p, { width: 287, height: 393 }) }),
24
+ /* @__PURE__ */ e(d, { $height: "100%", $justifyContent: "space-between", children: [
25
25
  /* @__PURE__ */ e("div", { children: [
26
26
  /* @__PURE__ */ r(t, { height: 50 }),
27
- /* @__PURE__ */ r(n, { $renderAs: "ac2-black", children: T }),
27
+ /* @__PURE__ */ r(n, { $renderAs: "ac2-black", children: W }),
28
28
  /* @__PURE__ */ r(t, { height: 20 }),
29
- /* @__PURE__ */ e(a, { $flexDirection: "row", $alignItems: "center", children: [
30
- m ? /* @__PURE__ */ r(n, { $renderAs: "ub3-bold", $textDecoration: "line-through", children: o + m }) : null,
31
- /* @__PURE__ */ e(a, { $flexDirection: "row", $alignItems: "end", children: [
32
- /* @__PURE__ */ r(n, { $renderAs: "ah3-bold", children: o + W }),
29
+ /* @__PURE__ */ e(d, { $flexDirection: "row", $alignItems: "center", children: [
30
+ o && o !== _ ? /* @__PURE__ */ r(n, { $renderAs: "ub3-bold", $textDecoration: "line-through", children: a + o }) : null,
31
+ /* @__PURE__ */ e(d, { $flexDirection: "row", $alignItems: "end", children: [
32
+ /* @__PURE__ */ r(n, { $renderAs: "ah3-bold", children: a + _ }),
33
33
  /* @__PURE__ */ e(n, { $renderAs: "ab1-bold", children: [
34
34
  "/",
35
35
  I === "yearly" ? "year" : "month"
@@ -39,7 +39,7 @@ const c = {
39
39
  /* @__PURE__ */ r(t, { height: 4 }),
40
40
  /* @__PURE__ */ e(n, { $renderAs: "ub3", children: [
41
41
  "(",
42
- o + D,
42
+ a + D,
43
43
  "/class)"
44
44
  ] }),
45
45
  /* @__PURE__ */ r(t, { height: 4 }),
@@ -49,30 +49,30 @@ const c = {
49
49
  " classes/mo)"
50
50
  ] })
51
51
  ] }),
52
- _ && /* @__PURE__ */ r(
53
- d,
52
+ g && /* @__PURE__ */ r(
53
+ h,
54
54
  {
55
55
  $renderAs: "ub3-bold",
56
56
  $background: c[i % 2] ?? "WHITE_4",
57
- children: _
57
+ children: g
58
58
  }
59
59
  )
60
60
  ] })
61
61
  ] });
62
62
  }
63
63
  const {
64
- amount: u,
65
- duration: A,
64
+ amount: $,
65
+ duration: C,
66
66
  amount_after_coupon: l,
67
- classes_per_week: C,
67
+ classes_per_week: k,
68
68
  currency_symbol: s,
69
- discount_details: k,
70
- fee_per_class_after_discount: w,
71
- meta_text: $,
72
- no_of_classes: x
73
- } = h || {}, { discount_duration: b, original_plan_details: E } = k || {}, { duration: P } = E || {};
69
+ discount_details: w,
70
+ fee_per_class_after_discount: x,
71
+ meta_text: b,
72
+ no_of_classes: E
73
+ } = u || {}, { discount_duration: m, original_plan_details: P } = w || {}, { duration: T } = P || {};
74
74
  return /* @__PURE__ */ e(
75
- p,
75
+ f,
76
76
  {
77
77
  $width: 287,
78
78
  $height: 393,
@@ -80,30 +80,30 @@ const c = {
80
80
  $gapX: 2.125,
81
81
  $justifyContent: "space-between",
82
82
  children: [
83
- /* @__PURE__ */ r(f, { $color: c[i % 2] ?? "WHITE_4", children: /* @__PURE__ */ r(g, { width: 287, height: 393 }) }),
83
+ /* @__PURE__ */ r(y, { $color: c[i % 2] ?? "WHITE_4", children: /* @__PURE__ */ r(p, { width: 287, height: 393 }) }),
84
84
  /* @__PURE__ */ e("div", { children: [
85
85
  /* @__PURE__ */ r(t, { height: 30 }),
86
86
  /* @__PURE__ */ e(n, { $renderAs: "ah2-black", children: [
87
- P || A,
87
+ T || C,
88
88
  " ",
89
89
  /* @__PURE__ */ r(n, { $renderAs: "ac2-black", $inline: !0, children: "Months" })
90
90
  ] }),
91
- b && /* @__PURE__ */ e(
92
- d,
91
+ m && /* @__PURE__ */ e(
92
+ h,
93
93
  {
94
94
  $renderAs: "ub3-bold",
95
95
  $background: c[i % 2] ?? "WHITE_4",
96
96
  children: [
97
97
  "Get extra ",
98
- b,
98
+ m,
99
99
  " Months FREE"
100
100
  ]
101
101
  }
102
102
  )
103
103
  ] }),
104
104
  /* @__PURE__ */ e("div", { children: [
105
- l !== u ? /* @__PURE__ */ e(n, { $renderAs: "ab1", $textDecoration: "line-through", children: [
106
- s + u,
105
+ l !== $ ? /* @__PURE__ */ e(n, { $renderAs: "ab1", $textDecoration: "line-through", children: [
106
+ s + $,
107
107
  /* @__PURE__ */ e(n, { $renderAs: "ab1-black", $inline: !0, children: [
108
108
  " ",
109
109
  s + l
@@ -111,27 +111,27 @@ const c = {
111
111
  ] }) : /* @__PURE__ */ r(n, { $renderAs: "ab1-black", $inline: !0, children: s + l }),
112
112
  /* @__PURE__ */ e(n, { $renderAs: "ub3", children: [
113
113
  "(",
114
- w,
114
+ x,
115
115
  "/class)"
116
116
  ] })
117
117
  ] }),
118
118
  /* @__PURE__ */ e("div", { children: [
119
119
  /* @__PURE__ */ e(n, { $renderAs: "ab1", children: [
120
- x,
120
+ E,
121
121
  " classes"
122
122
  ] }),
123
123
  /* @__PURE__ */ e(n, { $renderAs: "ub2", children: [
124
124
  "(",
125
- C * 4,
125
+ k * 4,
126
126
  " classes/mo)"
127
127
  ] })
128
128
  ] }),
129
- $ && /* @__PURE__ */ r(
130
- d,
129
+ b && /* @__PURE__ */ r(
130
+ h,
131
131
  {
132
132
  $renderAs: "ub3-bold",
133
133
  $background: c[i % 2] ?? "WHITE_4",
134
- children: $
134
+ children: b
135
135
  }
136
136
  )
137
137
  ]
@@ -1 +1 @@
1
- {"version":3,"file":"pricing-cards.js","sources":["../../../../../src/features/trial-session/comps/pricing/pricing-cards.tsx"],"sourcesContent":["import type { TColorNames } from '../../../ui/types';\nimport type {\n IPricingCardsProps,\n TLowIntentPricingDetails,\n TPricingDetails,\n} from './pricing-typed';\nimport type { FC } from 'react';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport HangingBoardComp from './board-comp';\nimport * as Styled from './pricing-styled';\n\nconst layoutPrimaryColor: Record<number, TColorNames> = {\n 0: 'WHITE_4',\n 1: 'GREEN_1',\n};\n\nconst PricingCards: FC<IPricingCardsProps> = ({ pricingConfig, intentType, colorIndex }) => {\n if (intentType === 'LOW') {\n const {\n plan_name: pricingName,\n original_price: originalPrice,\n discounted_price: discountedPrice,\n price_per_class: pricePerClass,\n classes_per_cycle: classesPerCycle,\n billing_cycle: billingCycle,\n offer: metaText,\n currency_symbol: currencySymbol,\n } = (pricingConfig as TLowIntentPricingDetails) || {};\n\n return (\n <Styled.PricingBoard $width={287} $height={393} $gutterX={2.5} $gapX={2.125}>\n <Styled.ImageWrapper $color={layoutPrimaryColor[colorIndex % 2] ?? 'WHITE_4'}>\n <HangingBoardComp width={287} height={393} />\n </Styled.ImageWrapper>\n <FlexView $height=\"100%\" $justifyContent=\"space-between\">\n <div>\n <Separator height={50} />\n <Text $renderAs=\"ac2-black\">{pricingName}</Text>\n <Separator height={20} />\n <FlexView $flexDirection=\"row\" $alignItems=\"center\">\n {originalPrice ? (\n <Text $renderAs=\"ub3-bold\" $textDecoration=\"line-through\">\n {currencySymbol + originalPrice}\n </Text>\n ) : null}\n <FlexView $flexDirection=\"row\" $alignItems=\"end\">\n <Text $renderAs=\"ah3-bold\">{currencySymbol + discountedPrice}</Text>\n <Text $renderAs=\"ab1-bold\">/{billingCycle === 'yearly' ? 'year' : 'month'}</Text>\n </FlexView>\n </FlexView>\n <Separator height={4} />\n <Text $renderAs=\"ub3\">({currencySymbol + pricePerClass}/class)</Text>\n <Separator height={4} />\n <Text $renderAs=\"ub3\">({classesPerCycle} classes/mo)</Text>\n </div>\n\n {metaText && (\n <Styled.OfferText\n $renderAs=\"ub3-bold\"\n $background={layoutPrimaryColor[colorIndex % 2] ?? 'WHITE_4'}\n >\n {metaText}\n </Styled.OfferText>\n )}\n </FlexView>\n </Styled.PricingBoard>\n );\n }\n\n const {\n amount,\n duration: durationWithoutCoupon,\n amount_after_coupon: amountAfterCoupon,\n classes_per_week: classesPerWeek,\n currency_symbol: currencySymbol,\n discount_details: discountDetails,\n fee_per_class_after_discount: feePerClassAfterDiscount,\n meta_text: metaText,\n no_of_classes: noOfClasses,\n } = (pricingConfig as TPricingDetails) || {};\n const { discount_duration: discountDuration, original_plan_details: originalPlanDetails } =\n discountDetails || {};\n const { duration } = originalPlanDetails || {};\n\n return (\n <Styled.PricingBoard\n $width={287}\n $height={393}\n $gutterX={2.5}\n $gapX={2.125}\n $justifyContent=\"space-between\"\n >\n <Styled.ImageWrapper $color={layoutPrimaryColor[colorIndex % 2] ?? 'WHITE_4'}>\n <HangingBoardComp width={287} height={393} />\n </Styled.ImageWrapper>\n <div>\n <Separator height={30} />\n <Text $renderAs=\"ah2-black\">\n {duration || durationWithoutCoupon}&nbsp;\n <Text $renderAs=\"ac2-black\" $inline>\n Months\n </Text>\n </Text>\n {discountDuration && (\n <Styled.OfferText\n $renderAs=\"ub3-bold\"\n $background={layoutPrimaryColor[colorIndex % 2] ?? 'WHITE_4'}\n >\n Get extra {discountDuration} Months FREE\n </Styled.OfferText>\n )}\n </div>\n\n <div>\n {amountAfterCoupon !== amount ? (\n <Text $renderAs=\"ab1\" $textDecoration=\"line-through\">\n {currencySymbol + amount}\n <Text $renderAs=\"ab1-black\" $inline>\n &nbsp;\n {currencySymbol + amountAfterCoupon}\n </Text>\n </Text>\n ) : (\n <Text $renderAs=\"ab1-black\" $inline>\n {currencySymbol + amountAfterCoupon}\n </Text>\n )}\n <Text $renderAs=\"ub3\">({feePerClassAfterDiscount}/class)</Text>\n </div>\n\n <div>\n <Text $renderAs=\"ab1\">{noOfClasses} classes</Text>\n <Text $renderAs=\"ub2\">({classesPerWeek * 4} classes/mo)</Text>\n </div>\n\n {metaText && (\n <Styled.OfferText\n $renderAs=\"ub3-bold\"\n $background={layoutPrimaryColor[colorIndex % 2] ?? 'WHITE_4'}\n >\n {metaText}\n </Styled.OfferText>\n )}\n </Styled.PricingBoard>\n );\n};\n\nexport default PricingCards;\n"],"names":["layoutPrimaryColor","PricingCards","pricingConfig","intentType","colorIndex","pricingName","originalPrice","discountedPrice","pricePerClass","classesPerCycle","billingCycle","metaText","currencySymbol","jsxs","Styled.PricingBoard","jsx","Styled.ImageWrapper","HangingBoardComp","FlexView","Separator","Text","Styled.OfferText","amount","durationWithoutCoupon","amountAfterCoupon","classesPerWeek","discountDetails","feePerClassAfterDiscount","noOfClasses","discountDuration","originalPlanDetails","duration"],"mappings":";;;;;;AAcA,MAAMA,IAAkD;AAAA,EACtD,GAAG;AAAA,EACH,GAAG;AACL,GAEMC,IAAuC,CAAC,EAAE,eAAAC,GAAe,YAAAC,GAAY,YAAAC,QAAiB;AAC1F,MAAID,MAAe,OAAO;AAClB,UAAA;AAAA,MACJ,WAAWE;AAAA,MACX,gBAAgBC;AAAA,MAChB,kBAAkBC;AAAA,MAClB,iBAAiBC;AAAA,MACjB,mBAAmBC;AAAA,MACnB,eAAeC;AAAA,MACf,OAAOC;AAAAA,MACP,iBAAiBC;AAAAA,IAAA,IACdV,KAA8C,CAAA;AAGjD,WAAA,gBAAAW,EAACC,GAAA,EAAoB,QAAQ,KAAK,SAAS,KAAK,UAAU,KAAK,OAAO,OACpE,UAAA;AAAA,MAAA,gBAAAC,EAACC,GAAA,EAAoB,QAAQhB,EAAmBI,IAAa,CAAC,KAAK,WACjE,4BAACa,GAAiB,EAAA,OAAO,KAAK,QAAQ,IAAK,CAAA,GAC7C;AAAA,MACC,gBAAAJ,EAAAK,GAA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A;AAAA,UAAAL,MAAsBF,IACpB,gBAAAT,EAAAO,GAAA,EAAK,WAAU,OAAM,iBAAgB,gBACnC,UAAA;AAAA,YAAiBR,IAAAU;AAAA,YACjB,gBAAAT,EAAAO,GAAA,EAAK,WAAU,aAAY,SAAO,IAAC,UAAA;AAAA,cAAA;AAAA,cAEjCR,IAAiBY;AAAA,YAAA,GACpB;AAAA,UACF,EAAA,CAAA,sBAECJ,GAAK,EAAA,WAAU,aAAY,SAAO,IAChC,cAAiBI,EACpB,CAAA;AAAA,UAEF,gBAAAX,EAACO,GAAK,EAAA,WAAU,OAAM,UAAA;AAAA,YAAA;AAAA,YAAEO;AAAA,YAAyB;AAAA,UAAA,GAAO;AAAA,QAAA,GAC1D;AAAA,0BAEC,OACC,EAAA,UAAA;AAAA,UAAC,gBAAAd,EAAAO,GAAA,EAAK,WAAU,OAAO,UAAA;AAAA,YAAAQ;AAAA,YAAY;AAAA,UAAA,GAAQ;AAAA,UAC3C,gBAAAf,EAACO,GAAK,EAAA,WAAU,OAAM,UAAA;AAAA,YAAA;AAAA,YAAEK,IAAiB;AAAA,YAAE;AAAA,UAAA,GAAY;AAAA,QAAA,GACzD;AAAA,QAECd,KACC,gBAAAI;AAAA,UAACM;AAAAA,UAAA;AAAA,YACC,WAAU;AAAA,YACV,aAAarB,EAAmBI,IAAa,CAAC,KAAK;AAAA,YAElD,UAAAO;AAAA,UAAA;AAAA,QACH;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;"}
1
+ {"version":3,"file":"pricing-cards.js","sources":["../../../../../src/features/trial-session/comps/pricing/pricing-cards.tsx"],"sourcesContent":["import type { TColorNames } from '../../../ui/types';\nimport type {\n IPricingCardsProps,\n TLowIntentPricingDetails,\n TPricingDetails,\n} from './pricing-typed';\nimport type { FC } from 'react';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport HangingBoardComp from './board-comp';\nimport * as Styled from './pricing-styled';\n\nconst layoutPrimaryColor: Record<number, TColorNames> = {\n 0: 'WHITE_4',\n 1: 'GREEN_1',\n};\n\nconst PricingCards: FC<IPricingCardsProps> = ({ pricingConfig, intentType, colorIndex }) => {\n if (intentType === 'LOW') {\n const {\n plan_name: pricingName,\n original_price: originalPrice,\n discounted_price: discountedPrice,\n price_per_class: pricePerClass,\n classes_per_cycle: classesPerCycle,\n billing_cycle: billingCycle,\n offer: metaText,\n currency_symbol: currencySymbol,\n } = (pricingConfig as TLowIntentPricingDetails) || {};\n\n return (\n <Styled.PricingBoard $width={287} $height={393} $gutterX={2.5} $gapX={2.125}>\n <Styled.ImageWrapper $color={layoutPrimaryColor[colorIndex % 2] ?? 'WHITE_4'}>\n <HangingBoardComp width={287} height={393} />\n </Styled.ImageWrapper>\n <FlexView $height=\"100%\" $justifyContent=\"space-between\">\n <div>\n <Separator height={50} />\n <Text $renderAs=\"ac2-black\">{pricingName}</Text>\n <Separator height={20} />\n <FlexView $flexDirection=\"row\" $alignItems=\"center\">\n {originalPrice && originalPrice !== discountedPrice ? (\n <Text $renderAs=\"ub3-bold\" $textDecoration=\"line-through\">\n {currencySymbol + originalPrice}\n </Text>\n ) : null}\n <FlexView $flexDirection=\"row\" $alignItems=\"end\">\n <Text $renderAs=\"ah3-bold\">{currencySymbol + discountedPrice}</Text>\n <Text $renderAs=\"ab1-bold\">/{billingCycle === 'yearly' ? 'year' : 'month'}</Text>\n </FlexView>\n </FlexView>\n <Separator height={4} />\n <Text $renderAs=\"ub3\">({currencySymbol + pricePerClass}/class)</Text>\n <Separator height={4} />\n <Text $renderAs=\"ub3\">({classesPerCycle} classes/mo)</Text>\n </div>\n\n {metaText && (\n <Styled.OfferText\n $renderAs=\"ub3-bold\"\n $background={layoutPrimaryColor[colorIndex % 2] ?? 'WHITE_4'}\n >\n {metaText}\n </Styled.OfferText>\n )}\n </FlexView>\n </Styled.PricingBoard>\n );\n }\n\n const {\n amount,\n duration: durationWithoutCoupon,\n amount_after_coupon: amountAfterCoupon,\n classes_per_week: classesPerWeek,\n currency_symbol: currencySymbol,\n discount_details: discountDetails,\n fee_per_class_after_discount: feePerClassAfterDiscount,\n meta_text: metaText,\n no_of_classes: noOfClasses,\n } = (pricingConfig as TPricingDetails) || {};\n const { discount_duration: discountDuration, original_plan_details: originalPlanDetails } =\n discountDetails || {};\n const { duration } = originalPlanDetails || {};\n\n return (\n <Styled.PricingBoard\n $width={287}\n $height={393}\n $gutterX={2.5}\n $gapX={2.125}\n $justifyContent=\"space-between\"\n >\n <Styled.ImageWrapper $color={layoutPrimaryColor[colorIndex % 2] ?? 'WHITE_4'}>\n <HangingBoardComp width={287} height={393} />\n </Styled.ImageWrapper>\n <div>\n <Separator height={30} />\n <Text $renderAs=\"ah2-black\">\n {duration || durationWithoutCoupon}&nbsp;\n <Text $renderAs=\"ac2-black\" $inline>\n Months\n </Text>\n </Text>\n {discountDuration && (\n <Styled.OfferText\n $renderAs=\"ub3-bold\"\n $background={layoutPrimaryColor[colorIndex % 2] ?? 'WHITE_4'}\n >\n Get extra {discountDuration} Months FREE\n </Styled.OfferText>\n )}\n </div>\n\n <div>\n {amountAfterCoupon !== amount ? (\n <Text $renderAs=\"ab1\" $textDecoration=\"line-through\">\n {currencySymbol + amount}\n <Text $renderAs=\"ab1-black\" $inline>\n &nbsp;\n {currencySymbol + amountAfterCoupon}\n </Text>\n </Text>\n ) : (\n <Text $renderAs=\"ab1-black\" $inline>\n {currencySymbol + amountAfterCoupon}\n </Text>\n )}\n <Text $renderAs=\"ub3\">({feePerClassAfterDiscount}/class)</Text>\n </div>\n\n <div>\n <Text $renderAs=\"ab1\">{noOfClasses} classes</Text>\n <Text $renderAs=\"ub2\">({classesPerWeek * 4} classes/mo)</Text>\n </div>\n\n {metaText && (\n <Styled.OfferText\n $renderAs=\"ub3-bold\"\n $background={layoutPrimaryColor[colorIndex % 2] ?? 'WHITE_4'}\n >\n {metaText}\n </Styled.OfferText>\n )}\n </Styled.PricingBoard>\n );\n};\n\nexport default PricingCards;\n"],"names":["layoutPrimaryColor","PricingCards","pricingConfig","intentType","colorIndex","pricingName","originalPrice","discountedPrice","pricePerClass","classesPerCycle","billingCycle","metaText","currencySymbol","jsxs","Styled.PricingBoard","jsx","Styled.ImageWrapper","HangingBoardComp","FlexView","Separator","Text","Styled.OfferText","amount","durationWithoutCoupon","amountAfterCoupon","classesPerWeek","discountDetails","feePerClassAfterDiscount","noOfClasses","discountDuration","originalPlanDetails","duration"],"mappings":";;;;;;AAcA,MAAMA,IAAkD;AAAA,EACtD,GAAG;AAAA,EACH,GAAG;AACL,GAEMC,IAAuC,CAAC,EAAE,eAAAC,GAAe,YAAAC,GAAY,YAAAC,QAAiB;AAC1F,MAAID,MAAe,OAAO;AAClB,UAAA;AAAA,MACJ,WAAWE;AAAA,MACX,gBAAgBC;AAAA,MAChB,kBAAkBC;AAAA,MAClB,iBAAiBC;AAAA,MACjB,mBAAmBC;AAAA,MACnB,eAAeC;AAAA,MACf,OAAOC;AAAAA,MACP,iBAAiBC;AAAAA,IAAA,IACdV,KAA8C,CAAA;AAGjD,WAAA,gBAAAW,EAACC,GAAA,EAAoB,QAAQ,KAAK,SAAS,KAAK,UAAU,KAAK,OAAO,OACpE,UAAA;AAAA,MAAA,gBAAAC,EAACC,GAAA,EAAoB,QAAQhB,EAAmBI,IAAa,CAAC,KAAK,WACjE,4BAACa,GAAiB,EAAA,OAAO,KAAK,QAAQ,IAAK,CAAA,GAC7C;AAAA,MACC,gBAAAJ,EAAAK,GAAA,EAAS,SAAQ,QAAO,iBAAgB,iBACvC,UAAA;AAAA,QAAA,gBAAAL,EAAC,OACC,EAAA,UAAA;AAAA,UAAC,gBAAAE,EAAAI,GAAA,EAAU,QAAQ,GAAI,CAAA;AAAA,UACtB,gBAAAJ,EAAAK,GAAA,EAAK,WAAU,aAAa,UAAYf,GAAA;AAAA,UACzC,gBAAAU,EAACI,GAAU,EAAA,QAAQ,GAAI,CAAA;AAAA,UACtB,gBAAAN,EAAAK,G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