@bigbinary/neeto-thank-you-frontend 3.0.0 → 3.1.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 (55) hide show
  1. package/README.md +22 -0
  2. package/app/javascript/src/translations/ar.json +1 -1
  3. package/app/javascript/src/translations/bg.json +1 -1
  4. package/app/javascript/src/translations/ca.json +1 -1
  5. package/app/javascript/src/translations/cs.json +1 -1
  6. package/app/javascript/src/translations/da.json +1 -1
  7. package/app/javascript/src/translations/de.json +1 -1
  8. package/app/javascript/src/translations/es-MX.json +1 -1
  9. package/app/javascript/src/translations/es.json +1 -1
  10. package/app/javascript/src/translations/et.json +1 -1
  11. package/app/javascript/src/translations/fi.json +1 -1
  12. package/app/javascript/src/translations/fil.json +1 -1
  13. package/app/javascript/src/translations/fr.json +1 -1
  14. package/app/javascript/src/translations/hi.json +1 -1
  15. package/app/javascript/src/translations/hr.json +1 -1
  16. package/app/javascript/src/translations/id.json +1 -1
  17. package/app/javascript/src/translations/it.json +1 -1
  18. package/app/javascript/src/translations/ja.json +1 -1
  19. package/app/javascript/src/translations/ko.json +1 -1
  20. package/app/javascript/src/translations/nl.json +1 -1
  21. package/app/javascript/src/translations/pl.json +1 -1
  22. package/app/javascript/src/translations/pt-BR.json +1 -1
  23. package/app/javascript/src/translations/pt.json +1 -1
  24. package/app/javascript/src/translations/ro.json +1 -1
  25. package/app/javascript/src/translations/ru.json +1 -1
  26. package/app/javascript/src/translations/sk.json +1 -1
  27. package/app/javascript/src/translations/sl.json +1 -1
  28. package/app/javascript/src/translations/sv.json +1 -1
  29. package/app/javascript/src/translations/th.json +1 -1
  30. package/app/javascript/src/translations/tr.json +1 -1
  31. package/app/javascript/src/translations/uk.json +1 -1
  32. package/app/javascript/src/translations/vi.json +1 -1
  33. package/app/javascript/src/translations/zh-CN.json +1 -1
  34. package/app/javascript/src/translations/zh-TW.json +1 -1
  35. package/dist/ConfigureThankYou.js +49 -22
  36. package/dist/ConfigureThankYou.js.map +1 -1
  37. package/dist/ShowThankYou.js +57 -30
  38. package/dist/ShowThankYou.js.map +1 -1
  39. package/dist/SocialShare-DRpEs_-B.js +97 -0
  40. package/dist/SocialShare-DRpEs_-B.js.map +1 -0
  41. package/dist/cjs/ConfigureThankYou.js +48 -21
  42. package/dist/cjs/ConfigureThankYou.js.map +1 -1
  43. package/dist/cjs/ShowThankYou.js +57 -30
  44. package/dist/cjs/ShowThankYou.js.map +1 -1
  45. package/dist/cjs/SocialShare-DRVbUnBv.js +105 -0
  46. package/dist/cjs/SocialShare-DRVbUnBv.js.map +1 -0
  47. package/dist/cjs/index.js +2 -2
  48. package/dist/index.js +2 -2
  49. package/package.json +9 -9
  50. package/types/ConfigureThankYou.d.ts +5 -1
  51. package/types/ShowThankYou.d.ts +4 -0
  52. package/dist/SocialShare-SyR23dOh.js +0 -62
  53. package/dist/SocialShare-SyR23dOh.js.map +0 -1
  54. package/dist/cjs/SocialShare-BtTtwb5-.js +0 -69
  55. package/dist/cjs/SocialShare-BtTtwb5-.js.map +0 -1
package/README.md CHANGED
@@ -136,6 +136,12 @@ application.
136
136
  the second argument represents the previous configuration object.
137
137
  - `isPassEventDetailsEnabled` - A boolean flag that, when set to true, displays
138
138
  a checkbox to pass event details to redirect url as parameters.
139
+ - `ctaProps` - An object containing properties for the call-to-action button
140
+ that appears in the thank you page preview. When provided, this button will
141
+ link to the Neeto product page for the specified app. The button will not be
142
+ rendered if this prop is not provided. The object can contain:
143
+ - `message` - The message text displayed to the left of the button
144
+ - `buttonLabel` - The text displayed on the button
139
145
 
140
146
  ##### Configuration
141
147
 
@@ -184,6 +190,11 @@ const App = () => {
184
190
  thankYouTextAlignment={thankYouTextAlignment}
185
191
  appName="NeetoForm"
186
192
  appIcon={() => {}}
193
+ ctaProps={{
194
+ message:
195
+ "This form was built with NeetoForm — modern forms made simple.",
196
+ buttonLabel: "Create your NeetoForm",
197
+ }}
187
198
  onConfigUpdateSuccess={handleConfigUpdateSuccess}
188
199
  helpPopoverProps={HELP_POPOVER_PROPS}
189
200
  eventDetailsSwitchLabel={eventDetailsSwitchLabel}
@@ -229,6 +240,12 @@ yarn add dompurify
229
240
  - `eventDetails` – An object containing key-value pairs that will be appended as
230
241
  query parameters to the redirect URL if `pass_event_details_to_redirect_url`
231
242
  is set to true. Defaults to an empty object ({}).
243
+ - `ctaProps` - An object containing properties for the call-to-action button
244
+ that appears in the thank you page. When provided, this button will link to
245
+ the Neeto product page for the specified app. The button will not be rendered
246
+ if this prop is not provided. The object can contain:
247
+ - `message` - The message text displayed to the left of the button
248
+ - `buttonLabel` - The text displayed on the button
232
249
  - `resourceId` - ID of the resource associated with the thank you configuration
233
250
  (e.g., `submissionId` in NeetoForm).
234
251
 
@@ -252,6 +269,11 @@ const App = () => {
252
269
  <ShowThankYou
253
270
  appName="NeetoForm"
254
271
  appIcon={() => {}}
272
+ ctaProps={{
273
+ message:
274
+ "This form was built with NeetoForm — modern forms made simple.",
275
+ buttonLabel: "Create your NeetoForm",
276
+ }}
255
277
  entityId={entityId}
256
278
  isDraftPreview={isDraftPreview}
257
279
  resubmitLink={resubmitLink}
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "لم نتمكن من إعادة توجيهك في الوقت الحالي. يرجى <Link>النقر هنا</Link> للمتابعة.<br/>إذا لم ينجح ذلك، قم بنسخ الرابط وفتحه في علامة تبويب جديدة."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "В момента не можем да ви пренасочим. Моля, <Link>кликнете тук</Link>, за да продължите.<br/>Ако това не сработи, копирайте линка и го отворете в нов раздел."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "No hem pogut redirigir-te en aquest moment. Si us plau, <Link>clica aquí</Link> per continuar.<br/>Si això no funciona, copia l'enllaç i obre'l en una nova pestanya."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "Momentálně vás nemůžeme přesměrovat. Prosím <Link>klikněte zde</Link> pro pokračování.<br/>Pokud to nefunguje, zkopírujte odkaz a otevřete jej v nové záložce."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "Vi kunne ikke omdirigere dig i øjeblikket. Please <Link>klik her</Link> for at fortsætte.<br/>Hvis det ikke virker, skal du kopiere linket og åbne det i en ny fane."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -54,4 +54,4 @@
54
54
  "resetChanges": "Änderungen zurücksetzen"
55
55
  }
56
56
  }
57
- }
57
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "No pudimos redirigirte en este momento. Por favor <Link>clic aquí</Link> para continuar.<br/>Si eso no funciona, copia el enlace y ábrelo en una nueva pestaña."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -54,4 +54,4 @@
54
54
  "resetChanges": "Restablecer cambios"
55
55
  }
56
56
  }
57
- }
57
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "Me ei saanud teid hetkel suunata. Palun <Link>klõpsake siin</Link>, et jätkata.<br/>Kui see ei õnnestu, kopeerige link ja avage see uues vahekaardis."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "Emme voineet siirtää sinua tällä hetkellä. Ole hyvä <Link>klikkaa täällä</Link> jatkaaksesi.<br/>Jos se ei toimi, kopioi linkki ja avaa se uudessa välilehdessä."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "Hindi kami makapag-redirect sa iyo sa pagkakataong ito. Mangyaring <Link>ikiklik dito</Link> upang magpatuloy.<br/>Kung hindi iyon gumana, kopyahin ang link at buksan ito sa isang bagong tab."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -54,4 +54,4 @@
54
54
  "resetChanges": "Réinitialiser les modifications"
55
55
  }
56
56
  }
57
- }
57
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "हम इस समय आपको रीडायरेक्ट नहीं कर सके। कृपया <Link>यहां क्लिक करें</Link> जारी रखने के लिए।<br/>यदि यह काम नहीं करता है, तो लिंक को कॉपी करें और इसे एक नए टैब में खोलें।"
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "Trenutno vas ne možemo preusmjeriti. Molimo <Link>kliknite ovdje</Link> za nastavak.<br/>Ako to ne uspije, kopirajte link i otvorite ga u novoj kartici."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "Kami tidak dapat mengalihkan Anda saat ini. Silakan <Link>click here</Link> untuk melanjutkan.<br/>Jika itu tidak berhasil, salin tautan dan buka di tab baru."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "Non siamo riusciti a reindirizzarti in questo momento. Per favore <Link>clicca qui</Link> per procedere.<br/>Se non funziona, copia il link e aprilo in una nuova scheda."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "現在リダイレクトできませんでした。<Link>ここをクリックしてください</Link> で進んでください。<br/>それが機能しない場合は、リンクをコピーして新しいタブで開いてください。"
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "현재 리디렉션할 수 없습니다. 진행하려면 <Link>여기를 클릭</Link> 해주세요.<br/>작동하지 않는 경우, 링크를 복사하여 새 탭에서 열어주세요."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "We konden je op dit moment niet omleiden. Klik <Link>hier</Link> om verder te gaan.<br/>Als dat niet werkt, kopieer de link en open deze in een nieuw tabblad."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "Nie mogliśmy Cię teraz przekierować. Proszę <Link>kliknij tutaj</Link>, aby kontynuować.<br/>Jeśli to nie zadziała, skopiuj link i otwórz go w nowej karcie."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "Não conseguimos redirecioná-lo no momento. Por favor, <Link>clique aqui</Link> para continuar.<br/>Se isso não funcionar, copie o link e abra-o em uma nova aba."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "Não conseguimos redirecioná-lo no momento. Por favor <Link>clique aqui</Link> para continuar.<br/>Se isso não funcionar, copie o link e abra-o em uma nova aba."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "Nu am putut să te redirecționăm în acest moment. Te rugăm să <Link>clic aici</Link> pentru a continua.<br/>Dacă asta nu funcționează, copiază linkul și deschide-l într-o filă nouă."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "В данный момент мы не можем вас перенаправить. Пожалуйста, <Link>нажмите здесь</Link>, чтобы продолжить.<br/>Если это не сработает, скопируйте ссылку и откройте ее в новой вкладке."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "Momentálne vás nemôžeme presmerovať. Prosím <Link>clicknite sem</Link>, aby ste pokračovali.<br/>Ak to nefunguje, skopírujte odkaz a otvorte ho v novom okne."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "Trenutno vas ne moremo preusmeriti. Prosim <Link>kliknite tukaj</Link>, da nadaljujete.<br/>Če to ne deluje, kopirajte povezavo in jo odprite v novem zavihku."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "Vi kunde inte omdirigera dig just nu. Vänligen <Link>klicka här</Link> för att fortsätta.<br/>Om det inte fungerar, kopiera länken och öppna den i en ny flik."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "เราไม่สามารถเปลี่ยนเส้นทางคุณในขณะนี้ กรุณา <Link>คลิกที่นี่</Link> เพื่อดำเนินการต่อ.<br/>หากไม่สามารถทำได้ ให้คัดลอกลิงก์และเปิดในแท็บใหม่"
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "Şu anda sizi yönlendiremiyoruz. Lütfen <Link>buraya tıklayın</Link> devam etmek için.<br/>Eğer bu işe yaramazsa, bağlantıyı kopyalayın ve yeni bir sekmede açın."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "На жаль, ми не можемо вас перенаправити. Будь ласка, <Link>натисніть тут</Link> для продовження.<br/>Якщо це не спрацює, скопіюйте посилання і відкрийте його в новій вкладці."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "Chúng tôi không thể chuyển hướng bạn ngay lúc này. Vui lòng <Link>click here</Link> để tiếp tục.<br/>Nếu điều đó không hoạt động, hãy sao chép liên kết và mở nó trong một tab mới."
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "我们目前无法重定向您。请<Link>点击这里</Link>继续。<br/>如果那不起作用,请复制链接并在新标签页中打开。"
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -38,4 +38,4 @@
38
38
  "redirectFailureMessage": "我們目前無法為您重定向。請 u003cLink u003e點擊這裡 u003c/Link u003e以繼續。 u003cbr/ u003e如果這不起作用,請複製該鏈接並在新標籤頁中打開。"
39
39
  }
40
40
  }
41
- }
41
+ }
@@ -1,5 +1,5 @@
1
- import { hyphenate, isNotEmpty, isPresent, noop } from '@bigbinary/neeto-cist';
2
- import { n, S as SocialShare, R as REDIRECT_DELAY, T as THANK_YOU_TEXT_ALIGNMENTS, F as FORM_OPTIONS, a as THANK_YOU_KINDS } from './SocialShare-SyR23dOh.js';
1
+ import { isPresent, hyphenate, isNotEmpty, noop } from '@bigbinary/neeto-cist';
2
+ import { n, S as SocialShare, C as CallToAction, R as REDIRECT_DELAY, T as THANK_YOU_TEXT_ALIGNMENTS, F as FORM_OPTIONS, a as THANK_YOU_KINDS } from './SocialShare-DRpEs_-B.js';
3
3
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
4
4
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
5
5
  import { useEffect, memo, useState, useRef } from 'react';
@@ -34,13 +34,13 @@ import NeetoUIHeader from '@bigbinary/neeto-molecules/Header';
34
34
  import { t } from 'i18next';
35
35
  import { isEditorEmpty } from '@bigbinary/neeto-editor/utils';
36
36
  import * as yup from 'yup';
37
+ import '@bigbinary/neeto-commons-frontend/initializers';
37
38
  import '@tanstack/react-query';
38
39
  import 'axios';
39
40
  import '@bigbinary/neeto-commons-frontend/utils';
40
41
  import './index-CJXBMIZP.js';
41
42
  import './query.js';
42
43
  import '@bigbinary/neeto-molecules/MadeWith';
43
- import '@bigbinary/neeto-commons-frontend/initializers';
44
44
 
45
45
  var css = ".neeto-thank-you-configuration-radio__item{align-items:flex-start;background-color:rgb(var(--neeto-ui-white));border:1px solid rgb(var(--neeto-ui-gray-300));border-radius:var(--neeto-ui-rounded);padding:.75rem 1rem}.neeto-thank-you-configuration-radio__item.neeto-ui-radio__item:not(:last-child){margin-right:0!important}.neeto-thank-you-configuration-radio__item.neeto-ui-radio__item{align-items:flex-start!important}.neeto-thank-you-configuration-radio__item.neeto-ui-radio__item .neeto-ui-radio{margin-top:.1875rem}.neeto-thank-you-configuration-radio__item.active{border:1.5px solid rgb(var(--neeto-ui-primary-800))}";
46
46
  n(css,{});
@@ -79,8 +79,8 @@ var ResubmissionWarningModal = withT(function (_ref) {
79
79
  });
80
80
  });
81
81
 
82
- function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
83
- function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
82
+ function ownKeys$6(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
83
+ function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
84
84
  var Customize = function Customize(_ref) {
85
85
  var editorRef = _ref.editorRef,
86
86
  editorProps = _ref.editorProps,
@@ -109,7 +109,7 @@ var Customize = function Customize(_ref) {
109
109
  className: "flex flex-col gap-4",
110
110
  children: [/*#__PURE__*/jsx("div", {
111
111
  className: "flex flex-col gap-2",
112
- children: /*#__PURE__*/jsx(FormikEditor, _objectSpread$5({
112
+ children: /*#__PURE__*/jsx(FormikEditor, _objectSpread$6({
113
113
  required: true,
114
114
  addons: hasImageUploader ? ["image-upload"] : [],
115
115
  "data-cy": "thank-you-message-editor",
@@ -141,15 +141,18 @@ var Customize = function Customize(_ref) {
141
141
  });
142
142
  };
143
143
 
144
- function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
145
- function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
144
+ function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
145
+ function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
146
146
  var MemoizedEditorContent$1 = /*#__PURE__*/memo(EditorContent);
147
147
  var CustomMessage = function CustomMessage(_ref) {
148
148
  var _values$resubmitLinkT;
149
149
  var resubmitLink = _ref.resubmitLink,
150
150
  publicLinkId = _ref.publicLinkId,
151
151
  socialHandles = _ref.socialHandles,
152
- editorProps = _ref.editorProps;
152
+ editorProps = _ref.editorProps,
153
+ appName = _ref.appName,
154
+ _ref$ctaProps = _ref.ctaProps,
155
+ ctaProps = _ref$ctaProps === void 0 ? {} : _ref$ctaProps;
153
156
  var _useTranslation = useTranslation(),
154
157
  t = _useTranslation.t;
155
158
  var _useFormikContext = useFormikContext(),
@@ -157,7 +160,7 @@ var CustomMessage = function CustomMessage(_ref) {
157
160
  return /*#__PURE__*/jsxs(Fragment, {
158
161
  children: [(values === null || values === void 0 ? void 0 : values.message) && /*#__PURE__*/jsx("div", {
159
162
  className: "neeto-thank-you-configuration__description neeto-ui-text-gray-800",
160
- children: /*#__PURE__*/jsx(MemoizedEditorContent$1, _objectSpread$4({
163
+ children: /*#__PURE__*/jsx(MemoizedEditorContent$1, _objectSpread$5({
161
164
  content: values.message,
162
165
  "data-cy": "preview-editor-content"
163
166
  }, editorProps))
@@ -168,15 +171,20 @@ var CustomMessage = function CustomMessage(_ref) {
168
171
  }), (values === null || values === void 0 ? void 0 : values.socialSharingEnabled) && /*#__PURE__*/jsx(SocialShare, {
169
172
  publicLinkId: publicLinkId,
170
173
  socialHandles: socialHandles
171
- })]
174
+ }), isPresent(ctaProps) && /*#__PURE__*/jsx(CallToAction, _objectSpread$5({}, _objectSpread$5({
175
+ appName: appName
176
+ }, ctaProps)))]
172
177
  });
173
178
  };
174
179
 
175
- function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
176
- function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
180
+ function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
181
+ function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
177
182
  var MemoizedEditorContent = /*#__PURE__*/memo(EditorContent);
178
183
  var RedirectMessage = function RedirectMessage(_ref) {
179
- var editorProps = _ref.editorProps;
184
+ var editorProps = _ref.editorProps,
185
+ appName = _ref.appName,
186
+ _ref$ctaProps = _ref.ctaProps,
187
+ ctaProps = _ref$ctaProps === void 0 ? {} : _ref$ctaProps;
180
188
  var _useTranslation = useTranslation(),
181
189
  t = _useTranslation.t;
182
190
  var _useFormikContext = useFormikContext(),
@@ -184,7 +192,7 @@ var RedirectMessage = function RedirectMessage(_ref) {
184
192
  return /*#__PURE__*/jsxs(Fragment, {
185
193
  children: [(values === null || values === void 0 ? void 0 : values.redirectMessage) && /*#__PURE__*/jsx("div", {
186
194
  className: "neeto-thank-you-configuration__description mt-6",
187
- children: /*#__PURE__*/jsx(MemoizedEditorContent, _objectSpread$3({
195
+ children: /*#__PURE__*/jsx(MemoizedEditorContent, _objectSpread$4({
188
196
  content: values.redirectMessage,
189
197
  "data-cy": "preview-editor-content"
190
198
  }, editorProps))
@@ -193,10 +201,14 @@ var RedirectMessage = function RedirectMessage(_ref) {
193
201
  children: t("neetoThankYou.thankYou.redirectingInSecondsMessage", {
194
202
  seconds: REDIRECT_DELAY
195
203
  })
196
- })]
204
+ }), isPresent(ctaProps) && /*#__PURE__*/jsx(CallToAction, _objectSpread$4({}, _objectSpread$4({
205
+ appName: appName
206
+ }, ctaProps)))]
197
207
  });
198
208
  };
199
209
 
210
+ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
211
+ function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
200
212
  var Preview = function Preview(_ref) {
201
213
  var socialHandles = _ref.socialHandles,
202
214
  thankYouTextAlignment = _ref.thankYouTextAlignment,
@@ -204,11 +216,13 @@ var Preview = function Preview(_ref) {
204
216
  publicLinkId = _ref.publicLinkId,
205
217
  appName = _ref.appName,
206
218
  appIcon = _ref.appIcon,
219
+ ctaProps = _ref.ctaProps,
207
220
  editorProps = _ref.editorProps;
208
221
  var _useTranslation = useTranslation(),
209
222
  t = _useTranslation.t;
210
223
  var _useFormikContext = useFormikContext(),
211
224
  values = _useFormikContext.values;
225
+ var isCtaVisible = !IS_PRO_ORGANIZATION && (values === null || values === void 0 ? void 0 : values.brandingEnabled);
212
226
  return /*#__PURE__*/jsxs("div", {
213
227
  className: "neeto-thank-you-configuration-preview__wrapper neeto-ui-theme--light",
214
228
  children: [/*#__PURE__*/jsx(Typography, {
@@ -228,15 +242,23 @@ var Preview = function Preview(_ref) {
228
242
  className: "neeto-thank-you-configuration__main",
229
243
  "data-cy": "neeto-thankyou-preview-main",
230
244
  children: /*#__PURE__*/jsx("div", {
231
- className: "neeto-thank-you-configuration__box",
232
- children: values.kind === FORM_OPTIONS.customize.kind ? /*#__PURE__*/jsx(CustomMessage, {
245
+ className: classNames("neeto-thank-you-configuration__box", {
246
+ "neeto-thank-you-configuration__box--is-cta-visible": isCtaVisible
247
+ }),
248
+ children: values.kind === FORM_OPTIONS.customize.kind ? /*#__PURE__*/jsx(CustomMessage, _objectSpread$3({}, _objectSpread$3({
249
+ appName: appName,
233
250
  editorProps: editorProps,
234
251
  publicLinkId: publicLinkId,
235
252
  resubmitLink: resubmitLink,
236
253
  socialHandles: socialHandles
237
- }) : /*#__PURE__*/jsx(RedirectMessage, {
254
+ }, isCtaVisible && {
255
+ ctaProps: ctaProps
256
+ }))) : /*#__PURE__*/jsx(RedirectMessage, _objectSpread$3({}, _objectSpread$3({
257
+ appName: appName,
238
258
  editorProps: editorProps
239
- })
259
+ }, isCtaVisible && {
260
+ ctaProps: ctaProps
261
+ })))
240
262
  })
241
263
  })
242
264
  }), !IS_PRO_ORGANIZATION && (values === null || values === void 0 ? void 0 : values.brandingEnabled) && /*#__PURE__*/jsx(BrandingInfo, {
@@ -413,7 +435,8 @@ var Form = function Form(_ref) {
413
435
  customHeader = _ref.customHeader,
414
436
  breadcrumbs = _ref.breadcrumbs,
415
437
  eventDetailsSwitchLabel = _ref.eventDetailsSwitchLabel,
416
- helpPopoverProps = _ref.helpPopoverProps;
438
+ helpPopoverProps = _ref.helpPopoverProps,
439
+ ctaProps = _ref.ctaProps;
417
440
  var _useState = useState(false),
418
441
  _useState2 = _slicedToArray(_useState, 2),
419
442
  isUniqueSubmissionWarningModalOpen = _useState2[0],
@@ -561,6 +584,7 @@ var Form = function Form(_ref) {
561
584
  children: /*#__PURE__*/jsx(Preview, {
562
585
  appIcon: appIcon,
563
586
  appName: appName,
587
+ ctaProps: ctaProps,
564
588
  editorProps: editorProps,
565
589
  isPublished: isPublished,
566
590
  publicLinkId: publicLinkId,
@@ -616,13 +640,16 @@ var ConfigureThankYou = function ConfigureThankYou(_ref) {
616
640
  _ref$eventDetailsSwit = _ref.eventDetailsSwitchLabel,
617
641
  eventDetailsSwitchLabel = _ref$eventDetailsSwit === void 0 ? "" : _ref$eventDetailsSwit,
618
642
  _ref$helpPopoverProps = _ref.helpPopoverProps,
619
- helpPopoverProps = _ref$helpPopoverProps === void 0 ? {} : _ref$helpPopoverProps;
643
+ helpPopoverProps = _ref$helpPopoverProps === void 0 ? {} : _ref$helpPopoverProps,
644
+ _ref$ctaProps = _ref.ctaProps,
645
+ ctaProps = _ref$ctaProps === void 0 ? {} : _ref$ctaProps;
620
646
  return /*#__PURE__*/jsx(Form, {
621
647
  allowEmptyCustomMessage: allowEmptyCustomMessage,
622
648
  appIcon: appIcon,
623
649
  appName: appName,
624
650
  blockNavigation: blockNavigation,
625
651
  breadcrumbs: breadcrumbs,
652
+ ctaProps: ctaProps,
626
653
  customHeader: customHeader,
627
654
  disableRadioSelection: disableRadioSelection,
628
655
  disableSubmitAnotherResponse: disableSubmitAnotherResponse,