@churnkey/react 0.6.1 → 0.6.3

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.
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkYKDJMCSW_cjs = require('./chunk-YKDJMCSW.cjs');
4
- var chunkBDBZ5OS3_cjs = require('./chunk-BDBZ5OS3.cjs');
5
- var chunkIXGAI4LH_cjs = require('./chunk-IXGAI4LH.cjs');
3
+ var chunk224XOEYJ_cjs = require('./chunk-224XOEYJ.cjs');
4
+ var chunkWVSNF3TN_cjs = require('./chunk-WVSNF3TN.cjs');
5
+ var chunkJ6BBPG6T_cjs = require('./chunk-J6BBPG6T.cjs');
6
6
  var react = require('react');
7
7
  var jsxRuntime = require('react/jsx-runtime');
8
8
 
@@ -20,7 +20,6 @@ function RichText({ html, as = "p", className }) {
20
20
  function DefaultConfirm({
21
21
  title,
22
22
  description,
23
- subscriptions,
24
23
  losses,
25
24
  lossesLabel,
26
25
  confirmLabel,
@@ -31,33 +30,27 @@ function DefaultConfirm({
31
30
  classNames
32
31
  }) {
33
32
  const hasLosses = Array.isArray(losses) && losses.length > 0;
34
- const periodEnd = chunkBDBZ5OS3_cjs.formatPeriodEnd(subscriptions);
35
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkBDBZ5OS3_cjs.cn("ck-step ck-step-confirm", classNames?.root), children: [
36
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: chunkBDBZ5OS3_cjs.cn("ck-step-title", classNames?.title), children: title }),
37
- description && /* @__PURE__ */ jsxRuntime.jsx(RichText, { html: description, className: chunkBDBZ5OS3_cjs.cn("ck-step-description", classNames?.description) }),
38
- hasLosses && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkBDBZ5OS3_cjs.cn("ck-loss-block", classNames?.lossList), children: [
39
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkBDBZ5OS3_cjs.cn("ck-loss-label", classNames?.lossLabel), children: lossesLabel ?? "You'll lose access to:" }),
40
- /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "ck-loss-list", children: losses.map((item) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: chunkBDBZ5OS3_cjs.cn("ck-loss-item", classNames?.lossItem), children: [
41
- /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": true, className: chunkBDBZ5OS3_cjs.cn("ck-loss-bullet", classNames?.lossBullet), children: "\u25CF" }),
33
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkJ6BBPG6T_cjs.cn("ck-step ck-step-confirm", classNames?.root), children: [
34
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: chunkJ6BBPG6T_cjs.cn("ck-step-title", classNames?.title), children: title }),
35
+ description && /* @__PURE__ */ jsxRuntime.jsx(RichText, { html: description, className: chunkJ6BBPG6T_cjs.cn("ck-step-description", classNames?.description) }),
36
+ hasLosses && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkJ6BBPG6T_cjs.cn("ck-loss-block", classNames?.lossList), children: [
37
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkJ6BBPG6T_cjs.cn("ck-loss-label", classNames?.lossLabel), children: lossesLabel ?? "You'll lose access to:" }),
38
+ /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "ck-loss-list", children: losses.map((item) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: chunkJ6BBPG6T_cjs.cn("ck-loss-item", classNames?.lossItem), children: [
39
+ /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": true, className: chunkJ6BBPG6T_cjs.cn("ck-loss-bullet", classNames?.lossBullet), children: "\u25CF" }),
42
40
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: item })
43
41
  ] }, item)) })
44
42
  ] }),
45
- periodEnd && /* @__PURE__ */ jsxRuntime.jsxs("p", { className: chunkBDBZ5OS3_cjs.cn("ck-period-end", classNames?.periodEndNotice), children: [
46
- "Your access continues until ",
47
- periodEnd,
48
- "."
49
- ] }),
50
43
  /* @__PURE__ */ jsxRuntime.jsx(
51
44
  "button",
52
45
  {
53
46
  type: "button",
54
- className: chunkBDBZ5OS3_cjs.cn("ck-button ck-button-danger", classNames?.confirmButton),
47
+ className: chunkJ6BBPG6T_cjs.cn("ck-button ck-button-danger", classNames?.confirmButton),
55
48
  onClick: onConfirm,
56
49
  disabled: isProcessing,
57
50
  children: isProcessing ? "Processing..." : confirmLabel
58
51
  }
59
52
  ),
60
- /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: chunkBDBZ5OS3_cjs.cn("ck-button-link", classNames?.goBackButton), onClick: onGoBack, children: goBackLabel })
53
+ /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: chunkJ6BBPG6T_cjs.cn("ck-button-link", classNames?.goBackButton), onClick: onGoBack, children: goBackLabel })
61
54
  ] });
62
55
  }
63
56
  function DefaultFeedback({
@@ -76,13 +69,13 @@ function DefaultFeedback({
76
69
  const isUnderMin = hasMin && value.length > 0 && value.length < minLength;
77
70
  const isValid = !required || value.length >= minLength;
78
71
  const placeholderText = placeholder ?? (hasMin ? `At least ${minLength} characters\u2026` : "Type your thoughts\u2026");
79
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkBDBZ5OS3_cjs.cn("ck-step ck-step-feedback", classNames?.root), children: [
80
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: chunkBDBZ5OS3_cjs.cn("ck-step-title", classNames?.title), children: title }),
81
- description && /* @__PURE__ */ jsxRuntime.jsx(RichText, { html: description, className: chunkBDBZ5OS3_cjs.cn("ck-step-description", classNames?.description) }),
72
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkJ6BBPG6T_cjs.cn("ck-step ck-step-feedback", classNames?.root), children: [
73
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: chunkJ6BBPG6T_cjs.cn("ck-step-title", classNames?.title), children: title }),
74
+ description && /* @__PURE__ */ jsxRuntime.jsx(RichText, { html: description, className: chunkJ6BBPG6T_cjs.cn("ck-step-description", classNames?.description) }),
82
75
  /* @__PURE__ */ jsxRuntime.jsxs(
83
76
  "div",
84
77
  {
85
- className: chunkBDBZ5OS3_cjs.cn(
78
+ className: chunkJ6BBPG6T_cjs.cn(
86
79
  "ck-feedback-field",
87
80
  focused && "ck-feedback-field--focused",
88
81
  isUnderMin && "ck-feedback-field--invalid"
@@ -91,7 +84,7 @@ function DefaultFeedback({
91
84
  /* @__PURE__ */ jsxRuntime.jsx(
92
85
  "textarea",
93
86
  {
94
- className: chunkBDBZ5OS3_cjs.cn("ck-textarea", classNames?.textarea),
87
+ className: chunkJ6BBPG6T_cjs.cn("ck-textarea", classNames?.textarea),
95
88
  placeholder: placeholderText,
96
89
  value,
97
90
  onChange: (e) => onChange(e.target.value),
@@ -103,7 +96,7 @@ function DefaultFeedback({
103
96
  hasMin && /* @__PURE__ */ jsxRuntime.jsxs(
104
97
  "div",
105
98
  {
106
- className: chunkBDBZ5OS3_cjs.cn(
99
+ className: chunkJ6BBPG6T_cjs.cn(
107
100
  "ck-character-count",
108
101
  isUnderMin && "ck-character-count--invalid",
109
102
  classNames?.characterCount
@@ -122,7 +115,7 @@ function DefaultFeedback({
122
115
  "button",
123
116
  {
124
117
  type: "button",
125
- className: chunkBDBZ5OS3_cjs.cn("ck-button ck-button-primary", classNames?.submitButton),
118
+ className: chunkJ6BBPG6T_cjs.cn("ck-button ck-button-primary", classNames?.submitButton),
126
119
  onClick: onSubmit,
127
120
  disabled: !isValid,
128
121
  children: "Continue"
@@ -141,21 +134,21 @@ function DefaultContactOffer({
141
134
  }) {
142
135
  const headline = title ?? offer.copy.headline;
143
136
  const body = description ?? offer.copy.body;
144
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkBDBZ5OS3_cjs.cn("ck-step ck-step-offer", classNames?.root), children: [
145
- headline && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: chunkBDBZ5OS3_cjs.cn("ck-step-title", classNames?.title), children: headline }),
146
- body && /* @__PURE__ */ jsxRuntime.jsx(RichText, { html: body, className: chunkBDBZ5OS3_cjs.cn("ck-step-description", classNames?.description) }),
147
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkBDBZ5OS3_cjs.cn("ck-offer-card", classNames?.card), children: [
137
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkJ6BBPG6T_cjs.cn("ck-step ck-step-offer", classNames?.root), children: [
138
+ headline && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: chunkJ6BBPG6T_cjs.cn("ck-step-title", classNames?.title), children: headline }),
139
+ body && /* @__PURE__ */ jsxRuntime.jsx(RichText, { html: body, className: chunkJ6BBPG6T_cjs.cn("ck-step-description", classNames?.description) }),
140
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkJ6BBPG6T_cjs.cn("ck-offer-card", classNames?.card), children: [
148
141
  /* @__PURE__ */ jsxRuntime.jsx(
149
142
  "button",
150
143
  {
151
144
  type: "button",
152
- className: chunkBDBZ5OS3_cjs.cn("ck-button ck-button-primary", classNames?.acceptButton),
145
+ className: chunkJ6BBPG6T_cjs.cn("ck-button ck-button-primary", classNames?.acceptButton),
153
146
  onClick: () => onAccept(),
154
147
  disabled: isProcessing,
155
148
  children: isProcessing ? "Processing..." : offer.copy.cta
156
149
  }
157
150
  ),
158
- /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: chunkBDBZ5OS3_cjs.cn("ck-button-link", classNames?.declineButton), onClick: onDecline, children: offer.copy.declineCta })
151
+ /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: chunkJ6BBPG6T_cjs.cn("ck-button-link", classNames?.declineButton), onClick: onDecline, children: offer.copy.declineCta })
159
152
  ] })
160
153
  ] });
161
154
  }
@@ -171,11 +164,11 @@ function DefaultDiscountOffer({
171
164
  const o = offer;
172
165
  const headline = title ?? offer.copy.headline;
173
166
  const body = description ?? offer.copy.body;
174
- const phrase = chunkBDBZ5OS3_cjs.discountPhrase(o);
175
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkBDBZ5OS3_cjs.cn("ck-step ck-step-offer", classNames?.root), children: [
176
- headline && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: chunkBDBZ5OS3_cjs.cn("ck-step-title", classNames?.title), children: headline }),
177
- body && /* @__PURE__ */ jsxRuntime.jsx(RichText, { html: body, className: chunkBDBZ5OS3_cjs.cn("ck-step-description", classNames?.description) }),
178
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkBDBZ5OS3_cjs.cn("ck-offer-card", classNames?.card), children: [
167
+ const phrase = chunkWVSNF3TN_cjs.discountPhrase(o);
168
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkJ6BBPG6T_cjs.cn("ck-step ck-step-offer", classNames?.root), children: [
169
+ headline && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: chunkJ6BBPG6T_cjs.cn("ck-step-title", classNames?.title), children: headline }),
170
+ body && /* @__PURE__ */ jsxRuntime.jsx(RichText, { html: body, className: chunkJ6BBPG6T_cjs.cn("ck-step-description", classNames?.description) }),
171
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkJ6BBPG6T_cjs.cn("ck-offer-card", classNames?.card), children: [
179
172
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ck-offer-details ck-offer-discount", children: [
180
173
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "ck-offer-discount-eyebrow", children: "Limited-time offer" }),
181
174
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "ck-offer-discount-phrase", children: phrase })
@@ -184,13 +177,13 @@ function DefaultDiscountOffer({
184
177
  "button",
185
178
  {
186
179
  type: "button",
187
- className: chunkBDBZ5OS3_cjs.cn("ck-button ck-button-primary", classNames?.acceptButton),
180
+ className: chunkJ6BBPG6T_cjs.cn("ck-button ck-button-primary", classNames?.acceptButton),
188
181
  onClick: () => onAccept(),
189
182
  disabled: isProcessing,
190
183
  children: isProcessing ? "Processing..." : offer.copy.cta
191
184
  }
192
185
  ),
193
- /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: chunkBDBZ5OS3_cjs.cn("ck-button-link", classNames?.declineButton), onClick: onDecline, children: offer.copy.declineCta })
186
+ /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: chunkJ6BBPG6T_cjs.cn("ck-button-link", classNames?.declineButton), onClick: onDecline, children: offer.copy.declineCta })
194
187
  ] })
195
188
  ] });
196
189
  }
@@ -210,19 +203,19 @@ function DefaultPauseOffer({
210
203
  const body = description ?? offer.copy.body;
211
204
  const resume = /* @__PURE__ */ new Date();
212
205
  resume.setMonth(resume.getMonth() + months);
213
- const resumeDate = chunkBDBZ5OS3_cjs.formatMonthDayLong(resume);
214
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkBDBZ5OS3_cjs.cn("ck-step ck-step-offer", classNames?.root), children: [
215
- headline && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: chunkBDBZ5OS3_cjs.cn("ck-step-title", classNames?.title), children: headline }),
216
- body && /* @__PURE__ */ jsxRuntime.jsx(RichText, { html: body, className: chunkBDBZ5OS3_cjs.cn("ck-step-description", classNames?.description) }),
217
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkBDBZ5OS3_cjs.cn("ck-offer-card ck-pause-card", classNames?.card), children: [
206
+ const resumeDate = chunkWVSNF3TN_cjs.formatMonthDayLong(resume);
207
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkJ6BBPG6T_cjs.cn("ck-step ck-step-offer", classNames?.root), children: [
208
+ headline && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: chunkJ6BBPG6T_cjs.cn("ck-step-title", classNames?.title), children: headline }),
209
+ body && /* @__PURE__ */ jsxRuntime.jsx(RichText, { html: body, className: chunkJ6BBPG6T_cjs.cn("ck-step-description", classNames?.description) }),
210
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkJ6BBPG6T_cjs.cn("ck-offer-card ck-pause-card", classNames?.card), children: [
218
211
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "ck-pause-eyebrow", children: "We'll see you back on" }),
219
212
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "ck-pause-date", children: resumeDate }),
220
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkBDBZ5OS3_cjs.cn("ck-pause-chips", classNames?.pauseSlider), children: Array.from({ length: max }, (_, i) => i + 1).map((m) => /* @__PURE__ */ jsxRuntime.jsxs(
213
+ max > 1 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkJ6BBPG6T_cjs.cn("ck-pause-chips", classNames?.pauseSlider), children: Array.from({ length: max }, (_, i) => i + 1).map((m) => /* @__PURE__ */ jsxRuntime.jsxs(
221
214
  "button",
222
215
  {
223
216
  type: "button",
224
217
  onClick: () => setMonths(m),
225
- className: chunkBDBZ5OS3_cjs.cn("ck-pause-chip", m === months && "ck-pause-chip--selected"),
218
+ className: chunkJ6BBPG6T_cjs.cn("ck-pause-chip", m === months && "ck-pause-chip--selected"),
226
219
  "aria-pressed": m === months,
227
220
  children: [
228
221
  m,
@@ -237,13 +230,13 @@ function DefaultPauseOffer({
237
230
  "button",
238
231
  {
239
232
  type: "button",
240
- className: chunkBDBZ5OS3_cjs.cn("ck-button ck-button-primary", classNames?.acceptButton),
233
+ className: chunkJ6BBPG6T_cjs.cn("ck-button ck-button-primary", classNames?.acceptButton),
241
234
  onClick: () => onAccept({ months }),
242
235
  disabled: isProcessing,
243
236
  children: isProcessing ? "Processing..." : offer.copy.cta
244
237
  }
245
238
  ),
246
- /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: chunkBDBZ5OS3_cjs.cn("ck-button-link", classNames?.declineButton), onClick: onDecline, children: offer.copy.declineCta })
239
+ /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: chunkJ6BBPG6T_cjs.cn("ck-button-link", classNames?.declineButton), onClick: onDecline, children: offer.copy.declineCta })
247
240
  ] });
248
241
  }
249
242
  function Checkmark({ color = "currentColor", size = 14 }) {
@@ -268,10 +261,10 @@ function DefaultPlanChangeOffer({
268
261
  const headline = title ?? offer.copy.headline;
269
262
  const body = description ?? offer.copy.body;
270
263
  const ctaLabel = isProcessing ? "Processing..." : selectedPlan?.name ? `Switch to ${selectedPlan.name}` : offer.copy.cta;
271
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkBDBZ5OS3_cjs.cn("ck-step ck-step-offer", classNames?.root), children: [
272
- headline && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: chunkBDBZ5OS3_cjs.cn("ck-step-title", classNames?.title), children: headline }),
273
- body && /* @__PURE__ */ jsxRuntime.jsx(RichText, { html: body, className: chunkBDBZ5OS3_cjs.cn("ck-step-description", classNames?.description) }),
274
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkBDBZ5OS3_cjs.cn("ck-offer-card", classNames?.card), children: [
264
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkJ6BBPG6T_cjs.cn("ck-step ck-step-offer", classNames?.root), children: [
265
+ headline && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: chunkJ6BBPG6T_cjs.cn("ck-step-title", classNames?.title), children: headline }),
266
+ body && /* @__PURE__ */ jsxRuntime.jsx(RichText, { html: body, className: chunkJ6BBPG6T_cjs.cn("ck-step-description", classNames?.description) }),
267
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkJ6BBPG6T_cjs.cn("ck-offer-card", classNames?.card), children: [
275
268
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "ck-offer-details ck-plan-grid", children: plans.map((plan) => {
276
269
  const interval = plan.duration?.interval ?? "month";
277
270
  const currency = plan.amount.currency ?? "USD";
@@ -283,7 +276,7 @@ function DefaultPlanChangeOffer({
283
276
  type: "button",
284
277
  onClick: () => setSelectedPlanId(plan.id),
285
278
  disabled: isCurrent,
286
- className: chunkBDBZ5OS3_cjs.cn(
279
+ className: chunkJ6BBPG6T_cjs.cn(
287
280
  "ck-plan-card",
288
281
  isSelected && "ck-plan-card--selected",
289
282
  isCurrent && "ck-plan-card--current"
@@ -296,7 +289,7 @@ function DefaultPlanChangeOffer({
296
289
  ] }),
297
290
  plan.tagline && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "ck-plan-tagline", children: plan.tagline }),
298
291
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ck-plan-price-row", children: [
299
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ck-plan-amount", children: chunkBDBZ5OS3_cjs.formatPriceFromMinor(plan.amount.value, currency) }),
292
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ck-plan-amount", children: chunkWVSNF3TN_cjs.formatPriceFromMinor(plan.amount.value, currency) }),
300
293
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ck-plan-period", children: [
301
294
  "/",
302
295
  interval
@@ -316,13 +309,13 @@ function DefaultPlanChangeOffer({
316
309
  "button",
317
310
  {
318
311
  type: "button",
319
- className: chunkBDBZ5OS3_cjs.cn("ck-button ck-button-primary", classNames?.acceptButton),
312
+ className: chunkJ6BBPG6T_cjs.cn("ck-button ck-button-primary", classNames?.acceptButton),
320
313
  onClick: () => selectedPlanId && onAccept({ planId: selectedPlanId }),
321
314
  disabled: isProcessing || !selectedPlanId,
322
315
  children: ctaLabel
323
316
  }
324
317
  ),
325
- /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: chunkBDBZ5OS3_cjs.cn("ck-button-link", classNames?.declineButton), onClick: onDecline, children: offer.copy.declineCta })
318
+ /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: chunkJ6BBPG6T_cjs.cn("ck-button-link", classNames?.declineButton), onClick: onDecline, children: offer.copy.declineCta })
326
319
  ] })
327
320
  ] });
328
321
  }
@@ -342,45 +335,45 @@ function DefaultRebateOffer({
342
335
  const amount = o.amountMinor ?? 0;
343
336
  const refund = o.amountPaidMinor != null && o.netAfterRebateMinor != null ? o.amountPaidMinor - o.netAfterRebateMinor : amount;
344
337
  const taxRefunded = refund - amount;
345
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkBDBZ5OS3_cjs.cn("ck-step ck-step-offer", classNames?.root), children: [
346
- headline && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: chunkBDBZ5OS3_cjs.cn("ck-step-title", classNames?.title), children: headline }),
347
- body && /* @__PURE__ */ jsxRuntime.jsx(RichText, { html: body, className: chunkBDBZ5OS3_cjs.cn("ck-step-description", classNames?.description) }),
348
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkBDBZ5OS3_cjs.cn("ck-offer-card", classNames?.card), children: [
338
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkJ6BBPG6T_cjs.cn("ck-step ck-step-offer", classNames?.root), children: [
339
+ headline && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: chunkJ6BBPG6T_cjs.cn("ck-step-title", classNames?.title), children: headline }),
340
+ body && /* @__PURE__ */ jsxRuntime.jsx(RichText, { html: body, className: chunkJ6BBPG6T_cjs.cn("ck-step-description", classNames?.description) }),
341
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkJ6BBPG6T_cjs.cn("ck-offer-card", classNames?.card), children: [
349
342
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ck-offer-rebate", children: [
350
343
  o.amountPaidMinor != null && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ck-offer-rebate-row", children: [
351
344
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: "You paid this period" }),
352
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: chunkBDBZ5OS3_cjs.formatPriceFromMinor(o.amountPaidMinor, currency) })
345
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: chunkWVSNF3TN_cjs.formatPriceFromMinor(o.amountPaidMinor, currency) })
353
346
  ] }),
354
347
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ck-offer-rebate-row ck-offer-rebate-credit", children: [
355
348
  /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
356
349
  "Money back",
357
350
  taxRefunded > 0 && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ck-offer-rebate-tax", children: [
358
351
  " (incl. ",
359
- chunkBDBZ5OS3_cjs.formatPriceFromMinor(taxRefunded, currency),
352
+ chunkWVSNF3TN_cjs.formatPriceFromMinor(taxRefunded, currency),
360
353
  " tax)"
361
354
  ] })
362
355
  ] }),
363
356
  /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
364
357
  "\u2212",
365
- chunkBDBZ5OS3_cjs.formatPriceFromMinor(refund, currency)
358
+ chunkWVSNF3TN_cjs.formatPriceFromMinor(refund, currency)
366
359
  ] })
367
360
  ] }),
368
361
  o.netAfterRebateMinor != null && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ck-offer-rebate-row ck-offer-rebate-total", children: [
369
362
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Your net for this period" }),
370
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: chunkBDBZ5OS3_cjs.formatPriceFromMinor(o.netAfterRebateMinor, currency) })
363
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: chunkWVSNF3TN_cjs.formatPriceFromMinor(o.netAfterRebateMinor, currency) })
371
364
  ] })
372
365
  ] }),
373
366
  /* @__PURE__ */ jsxRuntime.jsx(
374
367
  "button",
375
368
  {
376
369
  type: "button",
377
- className: chunkBDBZ5OS3_cjs.cn("ck-button ck-button-primary", classNames?.acceptButton),
370
+ className: chunkJ6BBPG6T_cjs.cn("ck-button ck-button-primary", classNames?.acceptButton),
378
371
  onClick: () => onAccept(),
379
372
  disabled: isProcessing,
380
373
  children: isProcessing ? "Processing..." : offer.copy.cta
381
374
  }
382
375
  ),
383
- /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: chunkBDBZ5OS3_cjs.cn("ck-button-link", classNames?.declineButton), onClick: onDecline, children: offer.copy.declineCta })
376
+ /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: chunkJ6BBPG6T_cjs.cn("ck-button-link", classNames?.declineButton), onClick: onDecline, children: offer.copy.declineCta })
384
377
  ] })
385
378
  ] });
386
379
  }
@@ -388,15 +381,15 @@ function DefaultRedirectOffer({ title, description, offer, onDecline, classNames
388
381
  const url = offer.url;
389
382
  const headline = title ?? offer.copy.headline;
390
383
  const body = description ?? offer.copy.body;
391
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkBDBZ5OS3_cjs.cn("ck-step ck-step-offer", classNames?.root), children: [
392
- headline && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: chunkBDBZ5OS3_cjs.cn("ck-step-title", classNames?.title), children: headline }),
393
- body && /* @__PURE__ */ jsxRuntime.jsx(RichText, { html: body, className: chunkBDBZ5OS3_cjs.cn("ck-step-description", classNames?.description) }),
394
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkBDBZ5OS3_cjs.cn("ck-offer-card", classNames?.card), children: [
384
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkJ6BBPG6T_cjs.cn("ck-step ck-step-offer", classNames?.root), children: [
385
+ headline && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: chunkJ6BBPG6T_cjs.cn("ck-step-title", classNames?.title), children: headline }),
386
+ body && /* @__PURE__ */ jsxRuntime.jsx(RichText, { html: body, className: chunkJ6BBPG6T_cjs.cn("ck-step-description", classNames?.description) }),
387
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkJ6BBPG6T_cjs.cn("ck-offer-card", classNames?.card), children: [
395
388
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "ck-offer-details", children: /* @__PURE__ */ jsxRuntime.jsxs("a", { href: url, target: "_blank", rel: "noopener noreferrer", className: "ck-redirect-link", children: [
396
389
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: offer.copy.cta }),
397
390
  /* @__PURE__ */ jsxRuntime.jsx(ExternalIcon, {})
398
391
  ] }) }),
399
- /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: chunkBDBZ5OS3_cjs.cn("ck-button-link", classNames?.declineButton), onClick: onDecline, children: offer.copy.declineCta })
392
+ /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: chunkJ6BBPG6T_cjs.cn("ck-button-link", classNames?.declineButton), onClick: onDecline, children: offer.copy.declineCta })
400
393
  ] })
401
394
  ] });
402
395
  }
@@ -436,11 +429,11 @@ function DefaultTrialExtensionOffer({
436
429
  const body = description ?? offer.copy.body;
437
430
  const end = /* @__PURE__ */ new Date();
438
431
  end.setDate(end.getDate() + o.days);
439
- const newEnd = chunkBDBZ5OS3_cjs.formatMonthDay(end);
440
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkBDBZ5OS3_cjs.cn("ck-step ck-step-offer", classNames?.root), children: [
441
- headline && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: chunkBDBZ5OS3_cjs.cn("ck-step-title", classNames?.title), children: headline }),
442
- body && /* @__PURE__ */ jsxRuntime.jsx(RichText, { html: body, className: chunkBDBZ5OS3_cjs.cn("ck-step-description", classNames?.description) }),
443
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkBDBZ5OS3_cjs.cn("ck-offer-card", classNames?.card), children: [
432
+ const newEnd = chunkWVSNF3TN_cjs.formatMonthDay(end);
433
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkJ6BBPG6T_cjs.cn("ck-step ck-step-offer", classNames?.root), children: [
434
+ headline && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: chunkJ6BBPG6T_cjs.cn("ck-step-title", classNames?.title), children: headline }),
435
+ body && /* @__PURE__ */ jsxRuntime.jsx(RichText, { html: body, className: chunkJ6BBPG6T_cjs.cn("ck-step-description", classNames?.description) }),
436
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkJ6BBPG6T_cjs.cn("ck-offer-card", classNames?.card), children: [
444
437
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ck-offer-details ck-trial-block", children: [
445
438
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ck-trial-badge", children: [
446
439
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ck-trial-days", children: [
@@ -458,13 +451,13 @@ function DefaultTrialExtensionOffer({
458
451
  "button",
459
452
  {
460
453
  type: "button",
461
- className: chunkBDBZ5OS3_cjs.cn("ck-button ck-button-primary", classNames?.acceptButton),
454
+ className: chunkJ6BBPG6T_cjs.cn("ck-button ck-button-primary", classNames?.acceptButton),
462
455
  onClick: () => onAccept(),
463
456
  disabled: isProcessing,
464
457
  children: isProcessing ? "Processing..." : offer.copy.cta
465
458
  }
466
459
  ),
467
- /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: chunkBDBZ5OS3_cjs.cn("ck-button-link", classNames?.declineButton), onClick: onDecline, children: offer.copy.declineCta })
460
+ /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: chunkJ6BBPG6T_cjs.cn("ck-button-link", classNames?.declineButton), onClick: onDecline, children: offer.copy.declineCta })
468
461
  ] })
469
462
  ] });
470
463
  }
@@ -501,11 +494,11 @@ function pickOfferComponent(type, components) {
501
494
  }
502
495
  }
503
496
  function DefaultSuccess({ title, description, onClose, classNames }) {
504
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkBDBZ5OS3_cjs.cn("ck-step ck-step-success", classNames?.root), children: [
505
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkBDBZ5OS3_cjs.cn("ck-success-icon", classNames?.icon), children: /* @__PURE__ */ jsxRuntime.jsx(Checkmark, { color: "currentColor", size: 26 }) }),
506
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: chunkBDBZ5OS3_cjs.cn("ck-step-title", classNames?.title), children: title }),
507
- description && /* @__PURE__ */ jsxRuntime.jsx(RichText, { html: description, className: chunkBDBZ5OS3_cjs.cn("ck-step-description", classNames?.description) }),
508
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "ck-success-actions", children: /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: chunkBDBZ5OS3_cjs.cn("ck-button ck-button-primary", classNames?.closeButton), onClick: onClose, children: "Done" }) })
497
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkJ6BBPG6T_cjs.cn("ck-step ck-step-success", classNames?.root), children: [
498
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkJ6BBPG6T_cjs.cn("ck-success-icon", classNames?.icon), children: /* @__PURE__ */ jsxRuntime.jsx(Checkmark, { color: "currentColor", size: 26 }) }),
499
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: chunkJ6BBPG6T_cjs.cn("ck-step-title", classNames?.title), children: title }),
500
+ description && /* @__PURE__ */ jsxRuntime.jsx(RichText, { html: description, className: chunkJ6BBPG6T_cjs.cn("ck-step-description", classNames?.description) }),
501
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "ck-success-actions", children: /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: chunkJ6BBPG6T_cjs.cn("ck-button ck-button-primary", classNames?.closeButton), onClick: onClose, children: "Done" }) })
509
502
  ] });
510
503
  }
511
504
  function DefaultReasonButton({ reason, index, isSelected, onSelect }) {
@@ -517,7 +510,7 @@ function DefaultReasonButton({ reason, index, isSelected, onSelect }) {
517
510
  role: "radio",
518
511
  "aria-checked": isSelected,
519
512
  onClick: () => onSelect(reason.id),
520
- className: chunkBDBZ5OS3_cjs.cn("ck-reason-button", isSelected && "ck-reason-button--selected"),
513
+ className: chunkJ6BBPG6T_cjs.cn("ck-reason-button", isSelected && "ck-reason-button--selected"),
521
514
  children: [
522
515
  /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": true, className: "ck-reason-badge", children: isSelected ? /* @__PURE__ */ jsxRuntime.jsx(Checkmark, { color: "#fff", size: 12 }) : letter }),
523
516
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ck-reason-label", children: reason.label })
@@ -540,10 +533,10 @@ function DefaultSurvey({
540
533
  const ReasonButton = components?.ReasonButton ?? DefaultReasonButton;
541
534
  const selected = reasons.find((r) => r.id === selectedReason);
542
535
  const showFollowup = selected?.freeform === true;
543
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkBDBZ5OS3_cjs.cn("ck-step ck-step-survey", classNames?.root), children: [
544
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: chunkBDBZ5OS3_cjs.cn("ck-step-title", classNames?.title), children: title }),
545
- description && /* @__PURE__ */ jsxRuntime.jsx(RichText, { html: description, className: chunkBDBZ5OS3_cjs.cn("ck-step-description", classNames?.description) }),
546
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkBDBZ5OS3_cjs.cn("ck-reason-list", classNames?.reasonList), role: "radiogroup", "aria-label": title, children: reasons.map((reason, i) => /* @__PURE__ */ jsxRuntime.jsx(
536
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkJ6BBPG6T_cjs.cn("ck-step ck-step-survey", classNames?.root), children: [
537
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: chunkJ6BBPG6T_cjs.cn("ck-step-title", classNames?.title), children: title }),
538
+ description && /* @__PURE__ */ jsxRuntime.jsx(RichText, { html: description, className: chunkJ6BBPG6T_cjs.cn("ck-step-description", classNames?.description) }),
539
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkJ6BBPG6T_cjs.cn("ck-reason-list", classNames?.reasonList), role: "radiogroup", "aria-label": title, children: reasons.map((reason, i) => /* @__PURE__ */ jsxRuntime.jsx(
547
540
  ReasonButton,
548
541
  {
549
542
  reason,
@@ -556,7 +549,7 @@ function DefaultSurvey({
556
549
  showFollowup && /* @__PURE__ */ jsxRuntime.jsx(
557
550
  "textarea",
558
551
  {
559
- className: chunkBDBZ5OS3_cjs.cn("ck-reason-followup", classNames?.followupInput),
552
+ className: chunkJ6BBPG6T_cjs.cn("ck-reason-followup", classNames?.followupInput),
560
553
  placeholder: "Tell us more (optional)",
561
554
  rows: 3,
562
555
  value: followupResponse,
@@ -568,7 +561,7 @@ function DefaultSurvey({
568
561
  "button",
569
562
  {
570
563
  type: "button",
571
- className: chunkBDBZ5OS3_cjs.cn("ck-button ck-button-primary", classNames?.continueButton),
564
+ className: chunkJ6BBPG6T_cjs.cn("ck-button ck-button-primary", classNames?.continueButton),
572
565
  onClick: onNext,
573
566
  disabled: !selectedReason,
574
567
  children: "Continue"
@@ -577,7 +570,7 @@ function DefaultSurvey({
577
570
  ] });
578
571
  }
579
572
  function DefaultBackButton({ onBack, className }) {
580
- return /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", className: chunkBDBZ5OS3_cjs.cn("ck-back-button", className), onClick: onBack, children: [
573
+ return /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", className: chunkJ6BBPG6T_cjs.cn("ck-back-button", className), onClick: onBack, children: [
581
574
  /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "14", height: "14", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(
582
575
  "path",
583
576
  {
@@ -592,7 +585,7 @@ function DefaultBackButton({ onBack, className }) {
592
585
  ] });
593
586
  }
594
587
  function DefaultCloseButton({ onClose, className }) {
595
- return /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: chunkBDBZ5OS3_cjs.cn("ck-close-button", className), onClick: onClose, "aria-label": "Close", children: /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M15 5L5 15M5 5l10 10", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) }) });
588
+ return /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: chunkJ6BBPG6T_cjs.cn("ck-close-button", className), onClick: onClose, "aria-label": "Close", children: /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M15 5L5 15M5 5l10 10", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) }) });
596
589
  }
597
590
  function trapFocus(container) {
598
591
  const focusableSelector = [
@@ -652,7 +645,7 @@ function DefaultModal({ open, onClose, children, className, overlayClassName })
652
645
  "div",
653
646
  {
654
647
  ref: overlayRef,
655
- className: chunkBDBZ5OS3_cjs.cn("ck-overlay", overlayClassName),
648
+ className: chunkJ6BBPG6T_cjs.cn("ck-overlay", overlayClassName),
656
649
  onClick: (e) => {
657
650
  if (e.target === overlayRef.current) onClose();
658
651
  },
@@ -664,7 +657,7 @@ function DefaultModal({ open, onClose, children, className, overlayClassName })
664
657
  "aria-modal": "true",
665
658
  "aria-labelledby": "ck-dialog-title",
666
659
  tabIndex: -1,
667
- className: chunkBDBZ5OS3_cjs.cn("ck-modal", className),
660
+ className: chunkJ6BBPG6T_cjs.cn("ck-modal", className),
668
661
  children
669
662
  }
670
663
  )
@@ -690,7 +683,7 @@ function useColorScheme(preference) {
690
683
  return system;
691
684
  }
692
685
  function CancelFlow(props) {
693
- const { machine, state, isLoading, loadError, retry } = chunkYKDJMCSW_cjs.useCancelFlowMachine(props);
686
+ const { machine, state, isLoading, loadError, retry } = chunk224XOEYJ_cjs.useCancelFlowMachine(props);
694
687
  if (isLoading || loadError) {
695
688
  return /* @__PURE__ */ jsxRuntime.jsx(
696
689
  LoadStatus,
@@ -727,7 +720,7 @@ function LoadStatus({
727
720
  onRetry
728
721
  }) {
729
722
  const scheme = useColorScheme(appearance?.colorScheme);
730
- const appearanceStyle = chunkBDBZ5OS3_cjs.appearanceToStyle(appearance);
723
+ const appearanceStyle = chunkJ6BBPG6T_cjs.appearanceToStyle(appearance);
731
724
  const Modal = components?.Modal ?? DefaultModal;
732
725
  const CloseButton = components?.CloseButton ?? DefaultCloseButton;
733
726
  const handleClose = onClose ?? (() => {
@@ -780,7 +773,7 @@ function LoadStatus({
780
773
  }
781
774
  function FlowShell({ machine, state, appearance, classNames, components, customComponents }) {
782
775
  const scheme = useColorScheme(appearance?.colorScheme);
783
- const appearanceStyle = chunkBDBZ5OS3_cjs.appearanceToStyle(appearance);
776
+ const appearanceStyle = chunkJ6BBPG6T_cjs.appearanceToStyle(appearance);
784
777
  const Modal = components?.Modal ?? DefaultModal;
785
778
  const CloseButton = components?.CloseButton ?? DefaultCloseButton;
786
779
  const BackButton = components?.BackButton ?? DefaultBackButton;
@@ -807,7 +800,7 @@ function StepRenderer({
807
800
  return /* @__PURE__ */ jsxRuntime.jsx(
808
801
  Survey,
809
802
  {
810
- title: config?.title ?? chunkBDBZ5OS3_cjs.defaultTitles.survey,
803
+ title: config?.title ?? chunkJ6BBPG6T_cjs.defaultTitles.survey,
811
804
  description: config?.description,
812
805
  customer: state.customer,
813
806
  subscriptions: state.subscriptions,
@@ -839,7 +832,7 @@ function StepRenderer({
839
832
  }
840
833
  );
841
834
  }
842
- if (!chunkBDBZ5OS3_cjs.BUILT_IN_OFFER_TYPES.includes(offer.type)) {
835
+ if (!chunkJ6BBPG6T_cjs.BUILT_IN_OFFER_TYPES.includes(offer.type)) {
843
836
  return /* @__PURE__ */ jsxRuntime.jsx(UnregisteredOfferFallback, { offerType: offer.type, onSkip: machine.decline });
844
837
  }
845
838
  const Offer = components?.Offer ?? DefaultOffer;
@@ -866,7 +859,7 @@ function StepRenderer({
866
859
  return /* @__PURE__ */ jsxRuntime.jsx(
867
860
  Feedback,
868
861
  {
869
- title: config?.title ?? chunkBDBZ5OS3_cjs.defaultTitles.feedback,
862
+ title: config?.title ?? chunkJ6BBPG6T_cjs.defaultTitles.feedback,
870
863
  description: config?.description,
871
864
  customer: state.customer,
872
865
  subscriptions: state.subscriptions,
@@ -886,7 +879,7 @@ function StepRenderer({
886
879
  return /* @__PURE__ */ jsxRuntime.jsx(
887
880
  Confirm,
888
881
  {
889
- title: config?.title ?? chunkBDBZ5OS3_cjs.defaultTitles.confirm,
882
+ title: config?.title ?? chunkJ6BBPG6T_cjs.defaultTitles.confirm,
890
883
  description: config?.description,
891
884
  customer: state.customer,
892
885
  subscriptions: state.subscriptions,
@@ -960,55 +953,55 @@ function UnregisteredOfferFallback({ offerType, onSkip }) {
960
953
 
961
954
  Object.defineProperty(exports, "useCancelFlow", {
962
955
  enumerable: true,
963
- get: function () { return chunkYKDJMCSW_cjs.useCancelFlow; }
956
+ get: function () { return chunk224XOEYJ_cjs.useCancelFlow; }
964
957
  });
965
- Object.defineProperty(exports, "BUILT_IN_OFFER_TYPES", {
958
+ Object.defineProperty(exports, "calculateDiscountedPrice", {
966
959
  enumerable: true,
967
- get: function () { return chunkBDBZ5OS3_cjs.BUILT_IN_OFFER_TYPES; }
960
+ get: function () { return chunkWVSNF3TN_cjs.calculateDiscountedPrice; }
968
961
  });
969
- Object.defineProperty(exports, "BUILT_IN_STEP_TYPES", {
962
+ Object.defineProperty(exports, "formatPeriodEnd", {
970
963
  enumerable: true,
971
- get: function () { return chunkBDBZ5OS3_cjs.BUILT_IN_STEP_TYPES; }
964
+ get: function () { return chunkWVSNF3TN_cjs.formatPeriodEnd; }
972
965
  });
973
- Object.defineProperty(exports, "appearanceToStyle", {
966
+ Object.defineProperty(exports, "formatPrice", {
974
967
  enumerable: true,
975
- get: function () { return chunkBDBZ5OS3_cjs.appearanceToStyle; }
968
+ get: function () { return chunkWVSNF3TN_cjs.formatPrice; }
976
969
  });
977
- Object.defineProperty(exports, "calculateDiscountedPrice", {
970
+ Object.defineProperty(exports, "AnalyticsClient", {
978
971
  enumerable: true,
979
- get: function () { return chunkBDBZ5OS3_cjs.calculateDiscountedPrice; }
972
+ get: function () { return chunkJ6BBPG6T_cjs.AnalyticsClient; }
980
973
  });
981
- Object.defineProperty(exports, "cn", {
974
+ Object.defineProperty(exports, "BUILT_IN_OFFER_TYPES", {
982
975
  enumerable: true,
983
- get: function () { return chunkBDBZ5OS3_cjs.cn; }
976
+ get: function () { return chunkJ6BBPG6T_cjs.BUILT_IN_OFFER_TYPES; }
984
977
  });
985
- Object.defineProperty(exports, "defaultTitles", {
978
+ Object.defineProperty(exports, "BUILT_IN_STEP_TYPES", {
986
979
  enumerable: true,
987
- get: function () { return chunkBDBZ5OS3_cjs.defaultTitles; }
980
+ get: function () { return chunkJ6BBPG6T_cjs.BUILT_IN_STEP_TYPES; }
988
981
  });
989
- Object.defineProperty(exports, "formatPeriodEnd", {
982
+ Object.defineProperty(exports, "CancelFlowMachine", {
990
983
  enumerable: true,
991
- get: function () { return chunkBDBZ5OS3_cjs.formatPeriodEnd; }
984
+ get: function () { return chunkJ6BBPG6T_cjs.CancelFlowMachine; }
992
985
  });
993
- Object.defineProperty(exports, "formatPrice", {
986
+ Object.defineProperty(exports, "ChurnkeyApi", {
994
987
  enumerable: true,
995
- get: function () { return chunkBDBZ5OS3_cjs.formatPrice; }
988
+ get: function () { return chunkJ6BBPG6T_cjs.ChurnkeyApi; }
996
989
  });
997
- Object.defineProperty(exports, "AnalyticsClient", {
990
+ Object.defineProperty(exports, "appearanceToStyle", {
998
991
  enumerable: true,
999
- get: function () { return chunkIXGAI4LH_cjs.AnalyticsClient; }
992
+ get: function () { return chunkJ6BBPG6T_cjs.appearanceToStyle; }
1000
993
  });
1001
- Object.defineProperty(exports, "CancelFlowMachine", {
994
+ Object.defineProperty(exports, "cn", {
1002
995
  enumerable: true,
1003
- get: function () { return chunkIXGAI4LH_cjs.CancelFlowMachine; }
996
+ get: function () { return chunkJ6BBPG6T_cjs.cn; }
1004
997
  });
1005
- Object.defineProperty(exports, "ChurnkeyApi", {
998
+ Object.defineProperty(exports, "decodeSessionToken", {
1006
999
  enumerable: true,
1007
- get: function () { return chunkIXGAI4LH_cjs.ChurnkeyApi; }
1000
+ get: function () { return chunkJ6BBPG6T_cjs.decodeSessionToken; }
1008
1001
  });
1009
- Object.defineProperty(exports, "decodeSessionToken", {
1002
+ Object.defineProperty(exports, "defaultTitles", {
1010
1003
  enumerable: true,
1011
- get: function () { return chunkIXGAI4LH_cjs.decodeSessionToken; }
1004
+ get: function () { return chunkJ6BBPG6T_cjs.defaultTitles; }
1012
1005
  });
1013
1006
  exports.CancelFlow = CancelFlow;
1014
1007
  exports.DefaultBackButton = DefaultBackButton;
@@ -1027,5 +1020,6 @@ exports.DefaultRedirectOffer = DefaultRedirectOffer;
1027
1020
  exports.DefaultSuccess = DefaultSuccess;
1028
1021
  exports.DefaultSurvey = DefaultSurvey;
1029
1022
  exports.DefaultTrialExtensionOffer = DefaultTrialExtensionOffer;
1023
+ exports.RichText = RichText;
1030
1024
  //# sourceMappingURL=index.cjs.map
1031
1025
  //# sourceMappingURL=index.cjs.map