@bigbinary/neeto-thank-you-frontend 2.1.18 → 2.1.19

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,21 +1,23 @@
1
1
  'use strict';
2
2
 
3
3
  var classNames = require('classnames');
4
- var DOMPurify = require('dompurify');
5
4
  var NeetoUIPageLoader = require('@bigbinary/neeto-molecules/PageLoader');
6
- var Typography = require('@bigbinary/neetoui/Typography');
7
- var ramda = require('ramda');
8
- var reactI18next = require('react-i18next');
9
5
  var BrandingInfo = require('./BrandingInfo-y5Zm6Bej.js');
10
- var SocialShare = require('./SocialShare-D1d9PJ9g.js');
6
+ var SocialShare = require('./SocialShare-Cd11m5TM.js');
11
7
  var useThankYouPageApi = require('./useThankYouPageApi-DD3HwY6D.js');
8
+ var DOMPurify = require('dompurify');
9
+ var neetoCist = require('@bigbinary/neeto-cist');
10
+ var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
12
11
  var jsxRuntime = require('react/jsx-runtime');
13
- require('@bigbinary/neeto-cist');
14
- require('@bigbinary/neeto-commons-frontend/react-utils');
12
+ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
13
+ var react = require('react');
14
+ var ramda = require('ramda');
15
+ var reactI18next = require('react-i18next');
15
16
  require('./utils.js');
16
17
  require('@bigbinary/neeto-commons-frontend/utils');
17
18
  require('./constants.js');
18
19
  require('@bigbinary/neeto-commons-frontend/initializers');
20
+ require('i18next');
19
21
  require('@tanstack/react-query');
20
22
  require('axios');
21
23
  require('./index-BeYCcFRQ.js');
@@ -24,8 +26,117 @@ require('./query.js');
24
26
  var buildDraftUrl = function buildDraftUrl(url) {
25
27
  return "".concat(url, "?draftPreview=true");
26
28
  };
29
+ var getSafeURL = function getSafeURL(url) {
30
+ try {
31
+ var parsed = new URL(url);
32
+ if (parsed.protocol !== "https:" && parsed.protocol !== "http:") {
33
+ return undefined;
34
+ }
35
+ return DOMPurify.sanitize(url);
36
+ } catch (_unused) {
37
+ return undefined;
38
+ }
39
+ };
40
+
41
+ var sanitize$1 = DOMPurify.sanitize;
42
+ var CustomMessage = reactUtils.withT(function (_ref) {
43
+ var _thankYouConfiguratio;
44
+ var t = _ref.t,
45
+ isDraftPreview = _ref.isDraftPreview,
46
+ publicLinkId = _ref.publicLinkId,
47
+ resubmitLink = _ref.resubmitLink,
48
+ socialHandles = _ref.socialHandles,
49
+ thankYouConfiguration = _ref.thankYouConfiguration;
50
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
51
+ children: [neetoCist.isPresent(thankYouConfiguration === null || thankYouConfiguration === void 0 ? void 0 : thankYouConfiguration.imageUrl) && /*#__PURE__*/jsxRuntime.jsx("div", {
52
+ className: "neeto-thank-you-configuration__img",
53
+ children: /*#__PURE__*/jsxRuntime.jsx("img", {
54
+ alt: "",
55
+ "data-cy": "thank-you-page-image",
56
+ src: thankYouConfiguration.imageUrl
57
+ })
58
+ }), (thankYouConfiguration === null || thankYouConfiguration === void 0 ? void 0 : thankYouConfiguration.message) && /*#__PURE__*/jsxRuntime.jsx("div", {
59
+ className: "neeto-thank-you-configuration__description",
60
+ "data-cy": "thank-you-page-message",
61
+ dangerouslySetInnerHTML: {
62
+ __html: sanitize$1(thankYouConfiguration.message)
63
+ }
64
+ }), (thankYouConfiguration === null || thankYouConfiguration === void 0 ? void 0 : thankYouConfiguration.showResubmitLink) && /*#__PURE__*/jsxRuntime.jsx("a", {
65
+ className: "neeto-thank-you-configuration__resubmit",
66
+ "data-cy": "thank-you-page-resubmit-link",
67
+ href: isDraftPreview ? buildDraftUrl(resubmitLink) : resubmitLink,
68
+ children: (_thankYouConfiguratio = thankYouConfiguration === null || thankYouConfiguration === void 0 ? void 0 : thankYouConfiguration.resubmitLinkText) !== null && _thankYouConfiguratio !== void 0 ? _thankYouConfiguratio : t("neetoThankYou.common.resubmit")
69
+ }), (thankYouConfiguration === null || thankYouConfiguration === void 0 ? void 0 : thankYouConfiguration.socialSharingEnabled) && /*#__PURE__*/jsxRuntime.jsx(SocialShare.SocialShare, {
70
+ publicLinkId: publicLinkId,
71
+ socialHandles: socialHandles
72
+ }), isDraftPreview && /*#__PURE__*/jsxRuntime.jsx("p", {
73
+ className: "neeto-thank-you-configuration__draft-preview-message",
74
+ children: t("neetoThankYou.thankYou.draftVersionForm")
75
+ })]
76
+ });
77
+ });
27
78
 
28
79
  var sanitize = DOMPurify.sanitize;
80
+ var ExternalLink = function ExternalLink(_ref) {
81
+ var _ref$thankYouConfigur = _ref.thankYouConfiguration,
82
+ thankYouConfiguration = _ref$thankYouConfigur === void 0 ? {} : _ref$thankYouConfigur;
83
+ var _useState = react.useState(SocialShare.REDIRECT_DELAY),
84
+ _useState2 = _slicedToArray(_useState, 2),
85
+ countdown = _useState2[0],
86
+ setCountdown = _useState2[1];
87
+ var _useState3 = react.useState(false),
88
+ _useState4 = _slicedToArray(_useState3, 2),
89
+ isUnableToRedirect = _useState4[0],
90
+ setIsUnableToRedirect = _useState4[1];
91
+ var _useTranslation = reactI18next.useTranslation(),
92
+ t = _useTranslation.t;
93
+ var _thankYouConfiguratio = thankYouConfiguration.redirectUrl,
94
+ redirectUrl = _thankYouConfiguratio === void 0 ? "" : _thankYouConfiguratio,
95
+ _thankYouConfiguratio2 = thankYouConfiguration.redirectMessage,
96
+ redirectMessage = _thankYouConfiguratio2 === void 0 ? "" : _thankYouConfiguratio2;
97
+ react.useEffect(function () {
98
+ if (countdown === 0) {
99
+ try {
100
+ // eslint-disable-next-line xss/no-location-href-assign
101
+ window.location.href = getSafeURL(redirectUrl);
102
+ } catch (_unused) {
103
+ setIsUnableToRedirect(true);
104
+ }
105
+ return undefined;
106
+ }
107
+ var timer = setInterval(function () {
108
+ setCountdown(ramda.dec);
109
+ }, 1000);
110
+ return function () {
111
+ return clearInterval(timer);
112
+ };
113
+ }, [countdown, redirectUrl]);
114
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
115
+ children: [redirectMessage && /*#__PURE__*/jsxRuntime.jsx("div", {
116
+ className: "neeto-thank-you-configuration__description",
117
+ dangerouslySetInnerHTML: {
118
+ __html: sanitize(redirectMessage)
119
+ },
120
+ "data-cy": "thank-you-page-message"
121
+ }), isUnableToRedirect && /*#__PURE__*/jsxRuntime.jsx("p", {
122
+ className: "neeto-thank-you-configuration__redirect-failure-message",
123
+ children: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
124
+ components: {
125
+ Link: /*#__PURE__*/jsxRuntime.jsx("a", {
126
+ href: redirectUrl
127
+ })
128
+ },
129
+ i18nKey: "neetoThankYou.thankYou.redirect_failure_message"
130
+ })
131
+ }), !isUnableToRedirect && countdown > 0 && /*#__PURE__*/jsxRuntime.jsx("p", {
132
+ className: "neeto-thank-you-configuration__redirect-message",
133
+ children: t("neetoThankYou.thankYou.redirecting_in_seconds_message", {
134
+ seconds: countdown
135
+ })
136
+ })]
137
+ });
138
+ };
139
+
29
140
  var DefaultPageLoader = function DefaultPageLoader() {
30
141
  return /*#__PURE__*/jsxRuntime.jsx("div", {
31
142
  className: "neeto-thank-you-configuration",
@@ -33,7 +144,6 @@ var DefaultPageLoader = function DefaultPageLoader() {
33
144
  });
34
145
  };
35
146
  var ShowThankYou = function ShowThankYou(_ref) {
36
- var _thankYouConfiguratio;
37
147
  var entityId = _ref.entityId,
38
148
  isDraftPreview = _ref.isDraftPreview,
39
149
  resubmitLink = _ref.resubmitLink,
@@ -44,8 +154,6 @@ var ShowThankYou = function ShowThankYou(_ref) {
44
154
  CustomPageLoader = _ref.customPageLoader,
45
155
  _ref$thankYouTextAlig = _ref.thankYouTextAlignment,
46
156
  thankYouTextAlignment = _ref$thankYouTextAlig === void 0 ? SocialShare.THANK_YOU_TEXT_ALIGNMENTS.center : _ref$thankYouTextAlig;
47
- var _useTranslation = reactI18next.useTranslation(),
48
- t = _useTranslation.t;
49
157
  var _useShowThankYouPage = useThankYouPageApi.useShowThankYouPage({
50
158
  entityId: entityId
51
159
  }),
@@ -64,34 +172,18 @@ var ShowThankYou = function ShowThankYou(_ref) {
64
172
  "neeto-thank-you-configuration-alignment--left": thankYouTextAlignment === SocialShare.THANK_YOU_TEXT_ALIGNMENTS.left,
65
173
  "neeto-thank-you-configuration-alignment--center": thankYouTextAlignment === SocialShare.THANK_YOU_TEXT_ALIGNMENTS.center
66
174
  }),
67
- children: /*#__PURE__*/jsxRuntime.jsxs("div", {
175
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
68
176
  className: "neeto-thank-you-configuration__box",
69
177
  "data-cy": "thank-you-page-content",
70
- children: [!ramda.isEmpty(thankYouConfiguration === null || thankYouConfiguration === void 0 ? void 0 : thankYouConfiguration.imageUrl) && /*#__PURE__*/jsxRuntime.jsx("div", {
71
- className: "neeto-thank-you-configuration__img",
72
- children: /*#__PURE__*/jsxRuntime.jsx("img", {
73
- alt: "",
74
- "data-cy": "thank-you-page-image",
75
- src: thankYouConfiguration === null || thankYouConfiguration === void 0 ? void 0 : thankYouConfiguration.imageUrl
76
- })
77
- }), (thankYouConfiguration === null || thankYouConfiguration === void 0 ? void 0 : thankYouConfiguration.message) && /*#__PURE__*/jsxRuntime.jsx("div", {
78
- className: "neeto-thank-you-configuration__description",
79
- "data-cy": "thank-you-page-message",
80
- dangerouslySetInnerHTML: {
81
- __html: sanitize(thankYouConfiguration.message)
82
- }
83
- }), (thankYouConfiguration === null || thankYouConfiguration === void 0 ? void 0 : thankYouConfiguration.showResubmitLink) && /*#__PURE__*/jsxRuntime.jsx("a", {
84
- className: "neeto-thank-you-configuration__resubmit",
85
- "data-cy": "thank-you-page-resubmit-link",
86
- href: isDraftPreview ? buildDraftUrl(resubmitLink) : resubmitLink,
87
- children: (_thankYouConfiguratio = thankYouConfiguration === null || thankYouConfiguration === void 0 ? void 0 : thankYouConfiguration.resubmitLinkText) !== null && _thankYouConfiguratio !== void 0 ? _thankYouConfiguratio : t("neetoThankYou.common.resubmit")
88
- }), (thankYouConfiguration === null || thankYouConfiguration === void 0 ? void 0 : thankYouConfiguration.socialSharingEnabled) && /*#__PURE__*/jsxRuntime.jsx(SocialShare.SocialShare, {
178
+ children: (thankYouConfiguration === null || thankYouConfiguration === void 0 ? void 0 : thankYouConfiguration.kind) === SocialShare.FORM_OPTIONS.customize.kind ? /*#__PURE__*/jsxRuntime.jsx(CustomMessage, {
179
+ isDraftPreview: isDraftPreview,
89
180
  publicLinkId: publicLinkId,
90
- socialHandles: socialHandles
91
- }), isDraftPreview && /*#__PURE__*/jsxRuntime.jsx(Typography, {
92
- style: "body3",
93
- children: t("neetoThankYou.thankYou.draftVersionForm")
94
- })]
181
+ resubmitLink: resubmitLink,
182
+ socialHandles: socialHandles,
183
+ thankYouConfiguration: thankYouConfiguration
184
+ }) : /*#__PURE__*/jsxRuntime.jsx(ExternalLink, {
185
+ thankYouConfiguration: thankYouConfiguration
186
+ })
95
187
  })
96
188
  }), (thankYouConfiguration === null || thankYouConfiguration === void 0 ? void 0 : thankYouConfiguration.brandingEnabled) && /*#__PURE__*/jsxRuntime.jsx(BrandingInfo.BrandingInfo, {
97
189
  appName: appName
@@ -1 +1 @@
1
- {"version":3,"file":"ShowThankYou.js","sources":["../../app/javascript/src/components/ShowThankYou/utils.js","../../app/javascript/src/components/ShowThankYou/index.jsx"],"sourcesContent":["export const buildDraftUrl = url => `${url}?draftPreview=true`;\n","import classNames from \"classnames\";\nimport DOMPurify from \"dompurify\";\nimport NeetoUIPageLoader from \"neetomolecules/PageLoader\";\nimport { Typography } from \"neetoui\";\nimport { isEmpty } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport BrandingInfo from \"components/commons/BrandingInfo\";\nimport { THANK_YOU_TEXT_ALIGNMENTS } from \"components/commons/constants\";\nimport SocialShare from \"components/ConfigureThankYou/Customize/SocialShare\";\nimport { useShowThankYouPage } from \"hooks/reactQuery/useThankYouPageApi\";\n// eslint-disable-next-line import/extensions\nimport \"stylesheets/layout/_thank-you.scss\";\n\nimport { buildDraftUrl } from \"./utils\";\n\nconst sanitize = DOMPurify.sanitize;\n\nconst DefaultPageLoader = () => (\n <div className=\"neeto-thank-you-configuration\">\n <NeetoUIPageLoader />\n </div>\n);\n\nconst ShowThankYou = ({\n entityId,\n isDraftPreview,\n resubmitLink,\n socialHandles,\n isThankYouPageLoading,\n publicLinkId,\n appName,\n customPageLoader: CustomPageLoader,\n thankYouTextAlignment = THANK_YOU_TEXT_ALIGNMENTS.center,\n}) => {\n const { t } = useTranslation();\n\n const { data: { thankYouConfiguration } = {}, isFetching } =\n useShowThankYouPage({ entityId });\n\n const PageLoader = CustomPageLoader || DefaultPageLoader;\n\n if (isFetching && isThankYouPageLoading) {\n return <PageLoader />;\n }\n\n return (\n <div className=\"neeto-thank-you-configuration\">\n <main\n className={classNames(\"neeto-thank-you-configuration__main\", {\n \"neeto-thank-you-configuration-alignment--left\":\n thankYouTextAlignment === THANK_YOU_TEXT_ALIGNMENTS.left,\n \"neeto-thank-you-configuration-alignment--center\":\n thankYouTextAlignment === THANK_YOU_TEXT_ALIGNMENTS.center,\n })}\n >\n <div\n className=\"neeto-thank-you-configuration__box\"\n data-cy=\"thank-you-page-content\"\n >\n {!isEmpty(thankYouConfiguration?.imageUrl) && (\n <div className=\"neeto-thank-you-configuration__img\">\n <img\n alt=\"\"\n data-cy=\"thank-you-page-image\"\n src={thankYouConfiguration?.imageUrl}\n />\n </div>\n )}\n {thankYouConfiguration?.message && (\n <div\n className=\"neeto-thank-you-configuration__description\"\n data-cy=\"thank-you-page-message\"\n dangerouslySetInnerHTML={{\n __html: sanitize(thankYouConfiguration.message),\n }}\n />\n )}\n {thankYouConfiguration?.showResubmitLink && (\n <a\n className=\"neeto-thank-you-configuration__resubmit\"\n data-cy=\"thank-you-page-resubmit-link\"\n href={isDraftPreview ? buildDraftUrl(resubmitLink) : resubmitLink}\n >\n {thankYouConfiguration?.resubmitLinkText ??\n t(\"neetoThankYou.common.resubmit\")}\n </a>\n )}\n {thankYouConfiguration?.socialSharingEnabled && (\n <SocialShare {...{ publicLinkId, socialHandles }} />\n )}\n {isDraftPreview && (\n <Typography style=\"body3\">\n {t(\"neetoThankYou.thankYou.draftVersionForm\")}\n </Typography>\n )}\n </div>\n </main>\n {thankYouConfiguration?.brandingEnabled && (\n <BrandingInfo {...{ appName }} />\n )}\n </div>\n );\n};\n\nexport default ShowThankYou;\n"],"names":["buildDraftUrl","url","concat","sanitize","DOMPurify","DefaultPageLoader","_jsx","className","children","NeetoUIPageLoader","ShowThankYou","_ref","_thankYouConfiguratio","entityId","isDraftPreview","resubmitLink","socialHandles","isThankYouPageLoading","publicLinkId","appName","CustomPageLoader","customPageLoader","_ref$thankYouTextAlig","thankYouTextAlignment","THANK_YOU_TEXT_ALIGNMENTS","center","_useTranslation","useTranslation","t","_useShowThankYouPage","useShowThankYouPage","_useShowThankYouPage$","data","_useShowThankYouPage$2","thankYouConfiguration","isFetching","PageLoader","_jsxs","classNames","left","isEmpty","imageUrl","alt","src","message","dangerouslySetInnerHTML","__html","showResubmitLink","href","resubmitLinkText","socialSharingEnabled","SocialShare","Typography","style","brandingEnabled","BrandingInfo"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAO,IAAMA,aAAa,GAAG,SAAhBA,aAAaA,CAAGC,GAAG,EAAA;EAAA,OAAAC,EAAAA,CAAAA,MAAA,CAAOD,GAAG,EAAA,oBAAA,CAAA;AAAA,CAAoB;;ACgB9D,IAAME,QAAQ,GAAGC,SAAS,CAACD,QAAQ;AAEnC,IAAME,iBAAiB,GAAG,SAApBA,iBAAiBA,GAAA;AAAA,EAAA,oBACrBC,cAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,+BAA+B;AAAAC,IAAAA,QAAA,eAC5CF,cAAA,CAACG,iBAAiB,EAAE,EAAA;AAAC,GAClB,CAAC;AAAA,CACP;AAED,IAAMC,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAUZ;AAAA,EAAA,IAAAC,qBAAA;AAAA,EAAA,IATJC,QAAQ,GAAAF,IAA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EAAQ,8BAA8B;UACtCyC,IAAI,EAAElC,cAAc,GAAGd,aAAa,CAACe,YAAY,CAAC,GAAGA,YAAa;AAAAP,UAAAA,QAAA,GAAAI,qBAAA,GAEjEsB,qBAAqB,KAAA,IAAA,IAArBA,qBAAqB,KAArBA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,qBAAqB,CAAEe,gBAAgB,cAAArC,qBAAA,KAAA,KAAA,CAAA,GAAAA,qBAAA,GACtCgB,CAAC,CAAC,+BAA+B;AAAC,SACnC,CACJ,EACA,CAAAM,qBAAqB,KAArBA,IAAAA,IAAAA,qBAAqB,KAArBA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,qBAAqB,CAAEgB,oBAAoB,kBAC1C5C,cAAA,CAAC6C,uBAAW,EAAA;AAAOjC,UAAAA,YAAY,EAAZA,YAAY;AAAEF,UAAAA,aAAa,EAAbA;AAAa,SAAK,CACpD,EACAF,cAAc,iBACbR,cAAA,CAAC8C,UAAU,EAAA;AAACC,UAAAA,KAAK,EAAC,OAAO;UAAA7C,QAAA,EACtBoB,CAAC,CAAC,yCAAyC;AAAC,SACnC,CACb;OACE;AAAC,KACF,CAAC,EACN,CAAAM,qBAAqB,KAArBA,IAAAA,IAAAA,qBAAqB,KAArBA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,qBAAqB,CAAEoB,eAAe,kBACrChD,cAAA,CAACiD,yBAAY,EAAA;AAAOpC,MAAAA,OAAO,EAAPA;AAAO,KAAK,CACjC;AAAA,GACE,CAAC;AAEV;;;;"}
1
+ {"version":3,"file":"ShowThankYou.js","sources":["../../app/javascript/src/components/ShowThankYou/utils.js","../../app/javascript/src/components/ShowThankYou/CustomMessage.jsx","../../app/javascript/src/components/ShowThankYou/ExternalLink.jsx","../../app/javascript/src/components/ShowThankYou/index.jsx"],"sourcesContent":["import DOMPurify from \"dompurify\";\n\nexport const buildDraftUrl = url => `${url}?draftPreview=true`;\n\nexport const getSafeURL = url => {\n try {\n const parsed = new URL(url);\n if (parsed.protocol !== \"https:\" && parsed.protocol !== \"http:\") {\n return undefined;\n }\n\n return DOMPurify.sanitize(url);\n } catch {\n return undefined;\n }\n};\n","import DOMPurify from \"dompurify\";\nimport { isPresent } from \"neetocist\";\nimport { withT } from \"neetocommons/react-utils\";\n\nimport SocialShare from \"components/ConfigureThankYou/Customize/SocialShare\";\n\nimport { buildDraftUrl } from \"./utils\";\n\nconst sanitize = DOMPurify.sanitize;\n\nconst CustomMessage = withT(\n ({\n t,\n isDraftPreview,\n publicLinkId,\n resubmitLink,\n socialHandles,\n thankYouConfiguration,\n }) => (\n <>\n {isPresent(thankYouConfiguration?.imageUrl) && (\n <div className=\"neeto-thank-you-configuration__img\">\n <img\n alt=\"\"\n data-cy=\"thank-you-page-image\"\n src={thankYouConfiguration.imageUrl}\n />\n </div>\n )}\n {thankYouConfiguration?.message && (\n <div\n className=\"neeto-thank-you-configuration__description\"\n data-cy=\"thank-you-page-message\"\n dangerouslySetInnerHTML={{\n __html: sanitize(thankYouConfiguration.message),\n }}\n />\n )}\n {thankYouConfiguration?.showResubmitLink && (\n <a\n className=\"neeto-thank-you-configuration__resubmit\"\n data-cy=\"thank-you-page-resubmit-link\"\n href={isDraftPreview ? buildDraftUrl(resubmitLink) : resubmitLink}\n >\n {thankYouConfiguration?.resubmitLinkText ??\n t(\"neetoThankYou.common.resubmit\")}\n </a>\n )}\n {thankYouConfiguration?.socialSharingEnabled && (\n <SocialShare {...{ publicLinkId, socialHandles }} />\n )}\n {isDraftPreview && (\n <p className=\"neeto-thank-you-configuration__draft-preview-message\">\n {t(\"neetoThankYou.thankYou.draftVersionForm\")}\n </p>\n )}\n </>\n )\n);\n\nexport default CustomMessage;\n","import { useEffect, useState } from \"react\";\n\nimport DOMPurify from \"dompurify\";\nimport { dec } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { REDIRECT_DELAY } from \"components/commons/constants\";\n\nimport { getSafeURL } from \"./utils\";\n\nconst sanitize = DOMPurify.sanitize;\n\nconst ExternalLink = ({ thankYouConfiguration = {} }) => {\n const [countdown, setCountdown] = useState(REDIRECT_DELAY);\n const [isUnableToRedirect, setIsUnableToRedirect] = useState(false);\n\n const { t } = useTranslation();\n\n const { redirectUrl = \"\", redirectMessage = \"\" } = thankYouConfiguration;\n\n useEffect(() => {\n if (countdown === 0) {\n try {\n // eslint-disable-next-line xss/no-location-href-assign\n window.location.href = getSafeURL(redirectUrl);\n } catch {\n setIsUnableToRedirect(true);\n }\n\n return undefined;\n }\n\n const timer = setInterval(() => {\n setCountdown(dec);\n }, 1000);\n\n return () => clearInterval(timer);\n }, [countdown, redirectUrl]);\n\n return (\n <>\n {redirectMessage && (\n <div\n className=\"neeto-thank-you-configuration__description\"\n dangerouslySetInnerHTML={{ __html: sanitize(redirectMessage) }}\n data-cy=\"thank-you-page-message\"\n />\n )}\n {isUnableToRedirect && (\n <p className=\"neeto-thank-you-configuration__redirect-failure-message\">\n <Trans\n components={{ Link: <a href={redirectUrl} /> }}\n i18nKey=\"neetoThankYou.thankYou.redirect_failure_message\"\n />\n </p>\n )}\n {!isUnableToRedirect && countdown > 0 && (\n <p className=\"neeto-thank-you-configuration__redirect-message\">\n {t(\"neetoThankYou.thankYou.redirecting_in_seconds_message\", {\n seconds: countdown,\n })}\n </p>\n )}\n </>\n );\n};\n\nexport default ExternalLink;\n","import classNames from \"classnames\";\nimport NeetoUIPageLoader from \"neetomolecules/PageLoader\";\n\nimport BrandingInfo from \"components/commons/BrandingInfo\";\nimport {\n FORM_OPTIONS,\n THANK_YOU_TEXT_ALIGNMENTS,\n} from \"components/commons/constants\";\nimport { useShowThankYouPage } from \"hooks/reactQuery/useThankYouPageApi\";\n// eslint-disable-next-line import/extensions\nimport \"stylesheets/layout/_thank-you.scss\";\n\nimport CustomMessage from \"./CustomMessage\";\nimport ExternalLink from \"./ExternalLink\";\n\nconst DefaultPageLoader = () => (\n <div className=\"neeto-thank-you-configuration\">\n <NeetoUIPageLoader />\n </div>\n);\n\nconst ShowThankYou = ({\n entityId,\n isDraftPreview,\n resubmitLink,\n socialHandles,\n isThankYouPageLoading,\n publicLinkId,\n appName,\n customPageLoader: CustomPageLoader,\n thankYouTextAlignment = THANK_YOU_TEXT_ALIGNMENTS.center,\n}) => {\n const { data: { thankYouConfiguration } = {}, isFetching } =\n useShowThankYouPage({ entityId });\n\n const PageLoader = CustomPageLoader || DefaultPageLoader;\n\n if (isFetching && isThankYouPageLoading) {\n return <PageLoader />;\n }\n\n return (\n <div className=\"neeto-thank-you-configuration\">\n <main\n className={classNames(\"neeto-thank-you-configuration__main\", {\n \"neeto-thank-you-configuration-alignment--left\":\n thankYouTextAlignment === THANK_YOU_TEXT_ALIGNMENTS.left,\n \"neeto-thank-you-configuration-alignment--center\":\n thankYouTextAlignment === THANK_YOU_TEXT_ALIGNMENTS.center,\n })}\n >\n <div\n className=\"neeto-thank-you-configuration__box\"\n data-cy=\"thank-you-page-content\"\n >\n {thankYouConfiguration?.kind === FORM_OPTIONS.customize.kind ? (\n <CustomMessage\n {...{\n isDraftPreview,\n publicLinkId,\n resubmitLink,\n socialHandles,\n thankYouConfiguration,\n }}\n />\n ) : (\n <ExternalLink {...{ thankYouConfiguration }} />\n )}\n </div>\n </main>\n {thankYouConfiguration?.brandingEnabled && (\n <BrandingInfo {...{ appName }} />\n )}\n </div>\n );\n};\n\nexport default ShowThankYou;\n"],"names":["buildDraftUrl","url","concat","getSafeURL","parsed","URL","protocol","undefined","DOMPurify","sanitize","_unused","CustomMessage","withT","_ref","_thankYouConfiguratio","t","isDraftPreview","publicLinkId","resubmitLink","socialHandles","thankYouConfiguration","_jsxs","_Fragment","children","isPresent","imageUrl","_jsx","className","alt","src","message","dangerouslySetInnerHTML","__html","showResubmitLink","href","resubmitLinkText","socialSharingEnabled","SocialShare","ExternalLink","_ref$thankYouConfigur","_useState","useState","REDIRECT_DELAY","_useState2","_slicedToArray","countdown","setCountdown","_useState3","_useState4","isUnableToRedirect","setIsUnableToRedirect","_useTranslation","useTranslation","redirectUrl","_thankYouConfiguratio2","redirectMessage","useEffect","window","location","timer","setInterval","dec","clearInterval","Trans","components","Link","i18nKey","seconds","DefaultPageLoader","NeetoUIPageLoader","ShowThankYou","entityId","isThankYouPageLoading","appName","CustomPageLoader","customPageLoader","_ref$thankYouTextAlig","thankYouTextAlignment","THANK_YOU_TEXT_ALIGNMENTS","center","_useShowThankYouPage","useShowThankYouPage","_useShowThankYouPage$","data","_useShowThankYouPage$2","isFetching","PageLoader","classNames","left","kind","FORM_OPTIONS","customize","brandingEnabled","BrandingInfo"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEO,IAAMA,aAAa,GAAG,SAAhBA,aAAaA,CAAGC,GAAG,EAAA;EAAA,OAAAC,EAAAA,CAAAA,MAAA,CAAOD,GAAG,EAAA,oBAAA,CAAA;AAAA,CAAoB;AAEvD,IAAME,UAAU,GAAG,SAAbA,UAAUA,CAAGF,GAAG,EAAI;EAC/B,IAAI;AACF,IAAA,IAAMG,MAAM,GAAG,IAAIC,GAAG,CAACJ,GAAG,CAAC;IAC3B,IAAIG,MAAM,CAACE,QAAQ,KAAK,QAAQ,IAAIF,MAAM,CAACE,QAAQ,KAAK,OAAO,EAAE;AAC/D,MAAA,OAAOC,SAAS;AAClB;AAEA,IAAA,OAAOC,SAAS,CAACC,QAAQ,CAACR,GAAG,CAAC;GAC/B,CAAC,OAAAS,OAAA,EAAM;AACN,IAAA,OAAOH,SAAS;AAClB;AACF,CAAC;;ACPD,IAAME,UAAQ,GAAGD,SAAS,CAACC,QAAQ;AAEnC,IAAME,aAAa,GAAGC,gBAAK,CACzB,UAAAC,IAAA,EAAA;AAAA,EAAA,IAAAC,qBAAA;AAAA,EAAA,IACEC,CAAC,GAAAF,IAAA,CAADE,CAAC;IACDC,cAAc,GAAAH,IAAA,CAAdG,cAAc;IACdC,YAAY,GAAAJ,IAAA,CAAZI,YAAY;IACZC,YAAY,GAAAL,IAAA,CAAZK,Y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AAY,EAAZA,YAAY;AACZC,UAAAA,aAAa,EAAbA,aAAa;AACbC,UAAAA,qBAAqB,EAArBA;AAAqB,SAExB,CAAC,gBAEFM,cAAA,CAACY,YAAY,EAAA;AAAOlB,UAAAA,qBAAqB,EAArBA;SAA0B;OAE7C;AAAC,KACF,CAAC,EACN,CAAAA,qBAAqB,KAArBA,IAAAA,IAAAA,qBAAqB,KAArBA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,qBAAqB,CAAEwE,eAAe,kBACrClE,cAAA,CAACmE,yBAAY,EAAA;AAAOpB,MAAAA,OAAO,EAAPA;AAAO,KAAK,CACjC;AAAA,GACE,CAAC;AAEV;;;;"}
@@ -0,0 +1,68 @@
1
+ 'use strict';
2
+
3
+ var i18next = require('i18next');
4
+ var reactI18next = require('react-i18next');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+
7
+ var THANK_YOU_KINDS = {
8
+ CUSTOM_MESSAGE: "custom_message",
9
+ REDIRECT_TO_URL: "redirect_to_url"
10
+ };
11
+ var FORM_OPTIONS = {
12
+ customize: {
13
+ label: i18next.t("neetoThankYou.thankYou.customize"),
14
+ description: i18next.t("neetoThankYou.thankYou.customizeDescription"),
15
+ kind: THANK_YOU_KINDS.CUSTOM_MESSAGE
16
+ },
17
+ externalLink: {
18
+ label: i18next.t("neetoThankYou.thankYou.externalLink"),
19
+ description: i18next.t("neetoThankYou.thankYou.externalLinkDescription"),
20
+ kind: THANK_YOU_KINDS.REDIRECT_TO_URL
21
+ }
22
+ };
23
+ var THANK_YOU_TEXT_ALIGNMENTS = {
24
+ left: "left",
25
+ center: "center"
26
+ };
27
+ var REDIRECT_DELAY = 5;
28
+
29
+ var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
30
+
31
+ var css = ".neeto-thank-you-configuration,.neeto-thank-you-configuration-preview__wrapper{display:flex;flex-direction:column}.neeto-thank-you-configuration{height:100vh;overflow-y:hidden;position:relative}.neeto-thank-you-configuration__nav{display:flex;justify-content:center;padding:.25rem;width:100%}.neeto-thank-you-configuration__link{align-items:center;color:inherit;display:flex;font-weight:600;gap:.25rem;text-decoration:none}.neeto-thank-you-configuration__link:hover{opacity:.8}.neeto-thank-you-configuration__link span{border-bottom:1px solid}.neeto-thank-you-configuration__link svg{height:1rem;width:auto}.neeto-thank-you-configuration__main{align-items:center;display:flex;height:100vh;justify-content:center;overflow-y:auto}.neeto-thank-you-configuration__box{margin:auto;max-width:100%;padding:3.5rem .9375rem;position:relative;text-align:center;width:51.25rem}.neeto-thank-you-configuration__redirect-message{bottom:.375rem;font-size:.75rem;left:0;opacity:.75;position:absolute;right:0}.neeto-thank-you-configuration__redirect-failure-message a[href]{color:#2d36d4!important}.neeto-thank-you-configuration__default-img-wrap{font-size:2.5rem;text-align:center}.neeto-thank-you-configuration-alignment--left .neeto-thank-you-configuration__box{align-items:flex-start;text-align:left}.neeto-thank-you-configuration__title{font-size:2rem;line-height:1.25;margin:.67em 0}.neeto-thank-you-configuration__img{margin-bottom:1.5rem;margin-top:2.5rem}.neeto-thank-you-configuration__img img{display:inline-block;max-height:50vh;max-width:100%;vertical-align:top}.neeto-thank-you-configuration__description{font-size:1rem;line-height:1.5;margin:0 0 2rem}.neeto-thank-you-configuration__description a[href]{color:#2d36d4}.neeto-thank-you-configuration__description .neeto-editor-content h1,.neeto-thank-you-configuration__description .neeto-editor-content h2,.neeto-thank-you-configuration__description .neeto-editor-content h3{font-weight:500;line-height:1.325;margin-bottom:.25rem}.neeto-thank-you-configuration__description .neeto-editor-content h1{font-size:2.5rem}.neeto-thank-you-configuration__description .neeto-editor-content h2{font-size:1.5rem}.neeto-thank-you-configuration__description .neeto-editor-content h3{font-size:1.25rem}.neeto-thank-you-configuration__social-share{margin-top:2rem}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow{align-items:center;display:inline-flex;flex-wrap:wrap;gap:1rem;justify-content:center}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow__item{font-size:1.5rem;width:-moz-fit-content;width:fit-content}.neeto-thank-you-configuration__social-share-title{font-size:.8rem;font-weight:400;line-height:1.2;margin:.8rem 0}.neeto-thank-you-configuration__resubmit{border-bottom:1px solid;font-weight:600}.neeto-thank-you-configuration__nav-footer{align-items:center;display:flex;font-size:.875rem;gap:.5rem;justify-content:center}.neeto-thank-you-configuration__payment-pending{align-items:center;display:flex;flex-direction:column;height:100vh;justify-content:center;width:100%}.neeto-thank-you-configuration__payment-pending-body{align-items:center;color:\"#2f3941\";display:flex;flex-direction:column;gap:1rem;justify-content:center}.neeto-molecules-browser-preview{height:100%;min-height:500px;pointer-events:none}.neeto-molecules-browser-preview .neeto-thank-you-configuration{flex-grow:1;height:100%;max-height:100%}.neeto-molecules-browser-preview .neeto-thank-you-configuration .neeto-thank-you-configuration__main{height:100%}.neeto-molecules-browser-preview .neeto-thank-you-configuration__branding-wrapper{position:absolute}.neeto-thank-you-configuration__branding-wrapper{bottom:.75rem;left:.75rem;position:fixed}.neeto-thank-you-configuration__branding-link{background:#fff;border:1px solid #dfdfde;border-radius:.25rem;color:#000;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Fira Sans,Droid Sans,Helvetica Neue;font-size:.875rem;font-weight:400;padding:.25rem .375rem;transition:all;transition-duration:.3s;-webkit-user-select:none;-moz-user-select:none;user-select:none}.neeto-thank-you-configuration__branding-link strong{font-weight:700}.neeto-thank-you-configuration__branding-link:hover{box-shadow:inset 0 0 0 1px #dfdfde;text-decoration:none}.neeto-thank-you-configuration__draft-preview-message{font-size:.75rem;line-height:1.5}";
32
+ n(css,{});
33
+
34
+ var SocialShare = function SocialShare(_ref) {
35
+ var socialHandles = _ref.socialHandles,
36
+ publicLinkId = _ref.publicLinkId;
37
+ var _useTranslation = reactI18next.useTranslation(),
38
+ t = _useTranslation.t;
39
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
40
+ className: "neeto-thank-you-configuration__social-share",
41
+ children: [/*#__PURE__*/jsxRuntime.jsx("h3", {
42
+ className: "neeto-thank-you-configuration__social-share-title",
43
+ children: t("neetoThankYou.thankYou.socialShareHeading")
44
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
45
+ className: "neeto-thank-you-configuration-social-follow",
46
+ children: socialHandles === null || socialHandles === void 0 ? void 0 : socialHandles.map(function (data, idx) {
47
+ var Icon = data.icon,
48
+ generateShareUrl = data.generateShareUrl;
49
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
50
+ className: "neeto-thank-you-configuration-social-follow__item",
51
+ children: /*#__PURE__*/jsxRuntime.jsx("a", {
52
+ href: generateShareUrl(publicLinkId),
53
+ rel: "noreferrer",
54
+ target: "_blank",
55
+ children: /*#__PURE__*/jsxRuntime.jsx(Icon, {})
56
+ })
57
+ }, idx);
58
+ })
59
+ })]
60
+ });
61
+ };
62
+
63
+ exports.FORM_OPTIONS = FORM_OPTIONS;
64
+ exports.REDIRECT_DELAY = REDIRECT_DELAY;
65
+ exports.SocialShare = SocialShare;
66
+ exports.THANK_YOU_TEXT_ALIGNMENTS = THANK_YOU_TEXT_ALIGNMENTS;
67
+ exports.n = n;
68
+ //# sourceMappingURL=SocialShare-Cd11m5TM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SocialShare-Cd11m5TM.js","sources":["../../app/javascript/src/components/commons/constants.js","../../node_modules/rollup-plugin-styles/dist/runtime/inject-css.js","../../app/javascript/src/components/ConfigureThankYou/Customize/SocialShare.jsx"],"sourcesContent":["import { t } from \"i18next\";\n\nconst THANK_YOU_KINDS = {\n CUSTOM_MESSAGE: \"custom_message\",\n REDIRECT_TO_URL: \"redirect_to_url\",\n};\n\nexport const FORM_OPTIONS = {\n customize: {\n label: t(\"neetoThankYou.thankYou.customize\"),\n description: t(\"neetoThankYou.thankYou.customizeDescription\"),\n kind: THANK_YOU_KINDS.CUSTOM_MESSAGE,\n },\n externalLink: {\n label: t(\"neetoThankYou.thankYou.externalLink\"),\n description: t(\"neetoThankYou.thankYou.externalLinkDescription\"),\n kind: THANK_YOU_KINDS.REDIRECT_TO_URL,\n },\n};\n\nexport const THANK_YOU_TEXT_ALIGNMENTS = {\n left: \"left\",\n center: \"center\",\n};\n\nexport const REDIRECT_DELAY = 5;\n","var e=[],t=[];function n(n,r){if(n&&\"undefined\"!=typeof document){var a,s=!0===r.prepend?\"prepend\":\"append\",d=!0===r.singleTag,i=\"string\"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName(\"head\")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c()}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n))}function c(){var e=document.createElement(\"style\");if(e.setAttribute(\"type\",\"text/css\"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a=\"prepend\"===s?\"afterbegin\":\"beforeend\";return i.insertAdjacentElement(a,e),e}}export{n as default};\n","import { useTranslation } from \"react-i18next\";\n\nconst SocialShare = ({ socialHandles, publicLinkId }) => {\n const { t } = useTranslation();\n\n return (\n <div className=\"neeto-thank-you-configuration__social-share\">\n <h3 className=\"neeto-thank-you-configuration__social-share-title\">\n {t(\"neetoThankYou.thankYou.socialShareHeading\")}\n </h3>\n <div className=\"neeto-thank-you-configuration-social-follow\">\n {socialHandles?.map((data, idx) => {\n const { icon: Icon, generateShareUrl } = data;\n\n return (\n <div\n className=\"neeto-thank-you-configuration-social-follow__item\"\n key={idx}\n >\n <a\n href={generateShareUrl(publicLinkId)}\n rel=\"noreferrer\"\n target=\"_blank\"\n >\n <Icon />\n </a>\n </div>\n );\n })}\n </div>\n </div>\n );\n};\n\nexport default SocialShare;\n"],"names":["THANK_YOU_KINDS","CUSTOM_MESSAGE","REDIRECT_TO_URL","FORM_OPTIONS","customize","label","t","description","kind","externalLink","THANK_YOU_TEXT_ALIGNMENTS","left","center","REDIRECT_DELAY","SocialShare","_ref","socialHandles","publicLinkId","_useTranslation","useTranslation","_jsxs","className","children","_jsx","map","data","idx","Icon","icon","generateShareUrl","href","rel","target"],"mappings":";;;;;;AAEA,IAAMA,eAAe,GAAG;AACtBC,EAAAA,cAAc,EAAE,gBAAgB;AAChCC,EAAAA,eAAe,EAAE;AACnB,CAAC;AAEM,IAAMC,YAAY,GAAG;AAC1BC,EAAAA,SAAS,EAAE;AACTC,IAAAA,KAAK,EAAEC,SAAC,CAAC,kCAAkC,CAAC;AAC5CC,IAAAA,WAAW,EAAED,SAAC,CAAC,6CAA6C,CAAC;IAC7DE,IAAI,EAAER,eAAe,CAACC;GACvB;AACDQ,EAAAA,YAAY,EAAE;AACZJ,IAAAA,KAAK,EAAEC,SAAC,CAAC,qCAAqC,CAAC;AAC/CC,IAAAA,WAAW,EAAED,SAAC,CAAC,gDAAgD,CAAC;IAChEE,IAAI,EAAER,eAAe,CAACE;AACxB;AACF;AAEO,IAAMQ,yBAAyB,GAAG;AACvCC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,MAAM,EAAE;AACV;AAEO,IAAMC,cAAc,GAAG;;ACzB9B,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CA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uBF,IAAI,CAArCG,IAAI;UAAQC,gBAAgB,GAAKJ,IAAI,CAAzBI,gBAAgB;AAEpC,QAAA,oBACEN,cAAA,CAAA,KAAA,EAAA;AACEF,UAAAA,SAAS,EAAC,mDAAmD;AAAAC,UAAAA,QAAA,eAG7DC,cAAA,CAAA,GAAA,EAAA;AACEO,YAAAA,IAAI,EAAED,gBAAgB,CAACZ,YAAY,CAAE;AACrCc,YAAAA,GAAG,EAAC,YAAY;AAChBC,YAAAA,MAAM,EAAC,QAAQ;AAAAV,YAAAA,QAAA,eAEfC,cAAA,CAACI,IAAI,EAAE,EAAA;WACN;AAAC,SAAA,EARCD,GASF,CAAC;OAET;AAAC,KACC,CAAC;AAAA,GACH,CAAC;AAEV;;;;;;;;","x_google_ignoreList":[1]}
package/dist/cjs/index.js CHANGED
@@ -4,7 +4,7 @@ var ConfigureThankYou = require('./ConfigureThankYou.js');
4
4
  var ShowThankYou = require('./ShowThankYou.js');
5
5
  var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-khbEl5wW.js');
6
6
  var useThankYouPageApi = require('./useThankYouPageApi-DD3HwY6D.js');
7
- var SocialShare = require('./SocialShare-D1d9PJ9g.js');
7
+ var SocialShare = require('./SocialShare-Cd11m5TM.js');
8
8
  require('@bigbinary/neeto-cist');
9
9
  require('@babel/runtime/helpers/defineProperty');
10
10
  require('@babel/runtime/helpers/slicedToArray');
@@ -17,7 +17,6 @@ require('@bigbinary/neetoui/formik/BlockNavigation');
17
17
  require('@bigbinary/neetoui/formik/Form');
18
18
  require('@bigbinary/neetoui/formik/Radio');
19
19
  require('ramda');
20
- require('i18next');
21
20
  require('formik');
22
21
  require('@bigbinary/neeto-editor/FormikEditor');
23
22
  require('@bigbinary/neetoui/Label');
@@ -30,26 +29,27 @@ require('@bigbinary/neeto-commons-frontend/react-utils');
30
29
  require('@bigbinary/neetoui/Button');
31
30
  require('@bigbinary/neetoui/Typography');
32
31
  require('@bigbinary/neetoui/Modal');
33
- require('@bigbinary/neeto-editor/EditorContent');
34
32
  require('@bigbinary/neeto-molecules/BrowserPreview');
35
33
  require('./BrandingInfo-y5Zm6Bej.js');
36
34
  require('./utils.js');
37
35
  require('@bigbinary/neeto-commons-frontend/utils');
38
36
  require('./constants.js');
39
37
  require('@bigbinary/neeto-commons-frontend/initializers');
38
+ require('@bigbinary/neeto-editor/EditorContent');
40
39
  require('@bigbinary/neeto-icons/Link');
40
+ require('@babel/runtime/helpers/objectWithoutProperties');
41
41
  require('@bigbinary/neeto-molecules/Header');
42
+ require('i18next');
42
43
  require('@bigbinary/neeto-editor/utils');
43
44
  require('yup');
44
- require('dompurify');
45
45
  require('@bigbinary/neeto-molecules/PageLoader');
46
- require('@babel/runtime/helpers/objectWithoutProperties');
46
+ require('dompurify');
47
47
  require('@tanstack/react-query');
48
48
  require('axios');
49
49
  require('./index-BeYCcFRQ.js');
50
50
  require('./query.js');
51
51
 
52
- var css = ":root{--neeto-thank-you-editor-content-color:0,0,0;--neeto-thank-you-background-color:255,255,255;--neeto-thank-you-background-image-position:center;--neeto-thank-you-gray-100:248,249,249;--neeto-thank-you-gray-800:31,31,31}.neeto-thank-you-configuration,.neeto-thank-you-configuration-preview__wrapper{display:flex;flex-direction:column}.neeto-thank-you-configuration{height:100vh;overflow-y:hidden;position:relative}.neeto-thank-you-configuration__nav{display:flex;justify-content:center;padding:.25rem;width:100%}.neeto-thank-you-configuration__link{align-items:center;color:inherit;display:flex;font-weight:600;gap:.25rem;text-decoration:none}.neeto-thank-you-configuration__link:hover{opacity:.8}.neeto-thank-you-configuration__link span{border-bottom:1px solid}.neeto-thank-you-configuration__link svg{height:1rem;width:auto}.neeto-thank-you-configuration__main{align-items:center;display:flex;height:100vh;justify-content:center;overflow-y:auto}.neeto-thank-you-configuration__box{margin:auto;max-width:100%;padding:3.5rem .9375rem;text-align:center;width:51.25rem}.neeto-thank-you-configuration__default-img-wrap{font-size:2.5rem;text-align:center}.neeto-thank-you-configuration-alignment--left .neeto-thank-you-configuration__box{align-items:flex-start;text-align:left}.neeto-thank-you-configuration__title{font-size:2rem;line-height:1.25;margin:.67em 0}.neeto-thank-you-configuration__img{margin-bottom:1.5rem;margin-top:2.5rem}.neeto-thank-you-configuration__img img{display:inline-block;max-height:50vh;max-width:100%;vertical-align:top}.neeto-thank-you-configuration__description{font-size:1rem;line-height:1.5;margin:0 0 2rem}.neeto-thank-you-configuration__description a[href]{color:#2d36d4}.neeto-thank-you-configuration__description .neeto-editor-content h1,.neeto-thank-you-configuration__description .neeto-editor-content h2,.neeto-thank-you-configuration__description .neeto-editor-content h3{font-weight:500;line-height:1.325;margin-bottom:.25rem}.neeto-thank-you-configuration__description .neeto-editor-content h1{font-size:2.5rem}.neeto-thank-you-configuration__description .neeto-editor-content h2{font-size:1.5rem}.neeto-thank-you-configuration__description .neeto-editor-content h3{font-size:1.25rem}.neeto-thank-you-configuration__social-share{margin-top:2rem}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow{align-items:center;display:inline-flex;flex-wrap:wrap;gap:1rem;justify-content:center}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow__item{font-size:1.5rem;width:-moz-fit-content;width:fit-content}.neeto-thank-you-configuration__social-share-title{font-size:.8rem;font-weight:400;line-height:1.2;margin:.8rem 0}.neeto-thank-you-configuration__resubmit{border-bottom:1px solid;font-weight:600}.neeto-thank-you-configuration__nav-footer{align-items:center;display:flex;font-size:.875rem;gap:.5rem;justify-content:center}.neeto-thank-you-configuration__payment-pending{align-items:center;display:flex;flex-direction:column;height:100vh;justify-content:center;width:100%}.neeto-thank-you-configuration__payment-pending-body{align-items:center;color:\"#2f3941\";display:flex;flex-direction:column;gap:1rem;justify-content:center}.neeto-molecules-browser-preview{height:100%;min-height:500px;pointer-events:none}.neeto-molecules-browser-preview .neeto-thank-you-configuration{flex-grow:1;height:100%;max-height:100%}.neeto-molecules-browser-preview .neeto-thank-you-configuration .neeto-thank-you-configuration__main{height:100%}.neeto-molecules-browser-preview .neeto-thank-you-configuration__branding-wrapper{position:absolute}.neeto-thank-you-configuration__branding-wrapper{bottom:.75rem;left:.75rem;position:fixed}.neeto-thank-you-configuration__branding-link{background:#fff;border:1px solid #dfdfde;border-radius:.25rem;color:#000;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Fira Sans,Droid Sans,Helvetica Neue;font-size:.875rem;font-weight:400;padding:.25rem .375rem;transition:all;transition-duration:.3s;-webkit-user-select:none;-moz-user-select:none;user-select:none}.neeto-thank-you-configuration__branding-link strong{font-weight:700}.neeto-thank-you-configuration__branding-link:hover{box-shadow:inset 0 0 0 1px #dfdfde;text-decoration:none}.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: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))}";
52
+ var css = ":root{--neeto-thank-you-editor-content-color:0,0,0;--neeto-thank-you-background-color:255,255,255;--neeto-thank-you-background-image-position:center;--neeto-thank-you-gray-100:248,249,249;--neeto-thank-you-gray-800:31,31,31}.neeto-thank-you-configuration,.neeto-thank-you-configuration-preview__wrapper{display:flex;flex-direction:column}.neeto-thank-you-configuration{height:100vh;overflow-y:hidden;position:relative}.neeto-thank-you-configuration__nav{display:flex;justify-content:center;padding:.25rem;width:100%}.neeto-thank-you-configuration__link{align-items:center;color:inherit;display:flex;font-weight:600;gap:.25rem;text-decoration:none}.neeto-thank-you-configuration__link:hover{opacity:.8}.neeto-thank-you-configuration__link span{border-bottom:1px solid}.neeto-thank-you-configuration__link svg{height:1rem;width:auto}.neeto-thank-you-configuration__main{align-items:center;display:flex;height:100vh;justify-content:center;overflow-y:auto}.neeto-thank-you-configuration__box{margin:auto;max-width:100%;padding:3.5rem .9375rem;position:relative;text-align:center;width:51.25rem}.neeto-thank-you-configuration__redirect-message{bottom:.375rem;font-size:.75rem;left:0;opacity:.75;position:absolute;right:0}.neeto-thank-you-configuration__redirect-failure-message a[href]{color:#2d36d4!important}.neeto-thank-you-configuration__default-img-wrap{font-size:2.5rem;text-align:center}.neeto-thank-you-configuration-alignment--left .neeto-thank-you-configuration__box{align-items:flex-start;text-align:left}.neeto-thank-you-configuration__title{font-size:2rem;line-height:1.25;margin:.67em 0}.neeto-thank-you-configuration__img{margin-bottom:1.5rem;margin-top:2.5rem}.neeto-thank-you-configuration__img img{display:inline-block;max-height:50vh;max-width:100%;vertical-align:top}.neeto-thank-you-configuration__description{font-size:1rem;line-height:1.5;margin:0 0 2rem}.neeto-thank-you-configuration__description a[href]{color:#2d36d4}.neeto-thank-you-configuration__description .neeto-editor-content h1,.neeto-thank-you-configuration__description .neeto-editor-content h2,.neeto-thank-you-configuration__description .neeto-editor-content h3{font-weight:500;line-height:1.325;margin-bottom:.25rem}.neeto-thank-you-configuration__description .neeto-editor-content h1{font-size:2.5rem}.neeto-thank-you-configuration__description .neeto-editor-content h2{font-size:1.5rem}.neeto-thank-you-configuration__description .neeto-editor-content h3{font-size:1.25rem}.neeto-thank-you-configuration__social-share{margin-top:2rem}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow{align-items:center;display:inline-flex;flex-wrap:wrap;gap:1rem;justify-content:center}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow__item{font-size:1.5rem;width:-moz-fit-content;width:fit-content}.neeto-thank-you-configuration__social-share-title{font-size:.8rem;font-weight:400;line-height:1.2;margin:.8rem 0}.neeto-thank-you-configuration__resubmit{border-bottom:1px solid;font-weight:600}.neeto-thank-you-configuration__nav-footer{align-items:center;display:flex;font-size:.875rem;gap:.5rem;justify-content:center}.neeto-thank-you-configuration__payment-pending{align-items:center;display:flex;flex-direction:column;height:100vh;justify-content:center;width:100%}.neeto-thank-you-configuration__payment-pending-body{align-items:center;color:\"#2f3941\";display:flex;flex-direction:column;gap:1rem;justify-content:center}.neeto-molecules-browser-preview{height:100%;min-height:500px;pointer-events:none}.neeto-molecules-browser-preview .neeto-thank-you-configuration{flex-grow:1;height:100%;max-height:100%}.neeto-molecules-browser-preview .neeto-thank-you-configuration .neeto-thank-you-configuration__main{height:100%}.neeto-molecules-browser-preview .neeto-thank-you-configuration__branding-wrapper{position:absolute}.neeto-thank-you-configuration__branding-wrapper{bottom:.75rem;left:.75rem;position:fixed}.neeto-thank-you-configuration__branding-link{background:#fff;border:1px solid #dfdfde;border-radius:.25rem;color:#000;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Fira Sans,Droid Sans,Helvetica Neue;font-size:.875rem;font-weight:400;padding:.25rem .375rem;transition:all;transition-duration:.3s;-webkit-user-select:none;-moz-user-select:none;user-select:none}.neeto-thank-you-configuration__branding-link strong{font-weight:700}.neeto-thank-you-configuration__branding-link:hover{box-shadow:inset 0 0 0 1px #dfdfde;text-decoration:none}.neeto-thank-you-configuration__draft-preview-message{font-size:.75rem;line-height:1.5}.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: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))}";
53
53
  SocialShare.n(css,{});
54
54
 
55
55
  exports.ConfigureThankYou = ConfigureThankYou;
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ export { default as ConfigureThankYou } from './ConfigureThankYou.js';
2
2
  export { default as ShowThankYou } from './ShowThankYou.js';
3
3
  export { a as useCreateThankYouConfiguration, d as useDeleteThankYouConfiguration, u as useFetchThankYouConfigurations, b as useShowThankYouConfiguration, c as useUpdateThankYouConfiguration } from './useThankYouConfigurationApi-BiVg-jmY.js';
4
4
  export { u as useShowThankYouPage } from './useThankYouPageApi-D61bhK5l.js';
5
- import { n } from './SocialShare-C1uZ66yt.js';
5
+ import { n } from './SocialShare-Io6E20Sy.js';
6
6
  import '@bigbinary/neeto-cist';
7
7
  import '@babel/runtime/helpers/defineProperty';
8
8
  import '@babel/runtime/helpers/slicedToArray';
@@ -15,7 +15,6 @@ import '@bigbinary/neetoui/formik/BlockNavigation';
15
15
  import '@bigbinary/neetoui/formik/Form';
16
16
  import '@bigbinary/neetoui/formik/Radio';
17
17
  import 'ramda';
18
- import 'i18next';
19
18
  import 'formik';
20
19
  import '@bigbinary/neeto-editor/FormikEditor';
21
20
  import '@bigbinary/neetoui/Label';
@@ -28,25 +27,26 @@ import '@bigbinary/neeto-commons-frontend/react-utils';
28
27
  import '@bigbinary/neetoui/Button';
29
28
  import '@bigbinary/neetoui/Typography';
30
29
  import '@bigbinary/neetoui/Modal';
31
- import '@bigbinary/neeto-editor/EditorContent';
32
30
  import '@bigbinary/neeto-molecules/BrowserPreview';
33
31
  import './BrandingInfo-57u33B-f.js';
34
32
  import './utils.js';
35
33
  import '@bigbinary/neeto-commons-frontend/utils';
36
34
  import './constants.js';
37
35
  import '@bigbinary/neeto-commons-frontend/initializers';
36
+ import '@bigbinary/neeto-editor/EditorContent';
38
37
  import '@bigbinary/neeto-icons/Link';
38
+ import '@babel/runtime/helpers/objectWithoutProperties';
39
39
  import '@bigbinary/neeto-molecules/Header';
40
+ import 'i18next';
40
41
  import '@bigbinary/neeto-editor/utils';
41
42
  import 'yup';
42
- import 'dompurify';
43
43
  import '@bigbinary/neeto-molecules/PageLoader';
44
- import '@babel/runtime/helpers/objectWithoutProperties';
44
+ import 'dompurify';
45
45
  import '@tanstack/react-query';
46
46
  import 'axios';
47
47
  import './index-CGjGDIfp.js';
48
48
  import './query.js';
49
49
 
50
- var css = ":root{--neeto-thank-you-editor-content-color:0,0,0;--neeto-thank-you-background-color:255,255,255;--neeto-thank-you-background-image-position:center;--neeto-thank-you-gray-100:248,249,249;--neeto-thank-you-gray-800:31,31,31}.neeto-thank-you-configuration,.neeto-thank-you-configuration-preview__wrapper{display:flex;flex-direction:column}.neeto-thank-you-configuration{height:100vh;overflow-y:hidden;position:relative}.neeto-thank-you-configuration__nav{display:flex;justify-content:center;padding:.25rem;width:100%}.neeto-thank-you-configuration__link{align-items:center;color:inherit;display:flex;font-weight:600;gap:.25rem;text-decoration:none}.neeto-thank-you-configuration__link:hover{opacity:.8}.neeto-thank-you-configuration__link span{border-bottom:1px solid}.neeto-thank-you-configuration__link svg{height:1rem;width:auto}.neeto-thank-you-configuration__main{align-items:center;display:flex;height:100vh;justify-content:center;overflow-y:auto}.neeto-thank-you-configuration__box{margin:auto;max-width:100%;padding:3.5rem .9375rem;text-align:center;width:51.25rem}.neeto-thank-you-configuration__default-img-wrap{font-size:2.5rem;text-align:center}.neeto-thank-you-configuration-alignment--left .neeto-thank-you-configuration__box{align-items:flex-start;text-align:left}.neeto-thank-you-configuration__title{font-size:2rem;line-height:1.25;margin:.67em 0}.neeto-thank-you-configuration__img{margin-bottom:1.5rem;margin-top:2.5rem}.neeto-thank-you-configuration__img img{display:inline-block;max-height:50vh;max-width:100%;vertical-align:top}.neeto-thank-you-configuration__description{font-size:1rem;line-height:1.5;margin:0 0 2rem}.neeto-thank-you-configuration__description a[href]{color:#2d36d4}.neeto-thank-you-configuration__description .neeto-editor-content h1,.neeto-thank-you-configuration__description .neeto-editor-content h2,.neeto-thank-you-configuration__description .neeto-editor-content h3{font-weight:500;line-height:1.325;margin-bottom:.25rem}.neeto-thank-you-configuration__description .neeto-editor-content h1{font-size:2.5rem}.neeto-thank-you-configuration__description .neeto-editor-content h2{font-size:1.5rem}.neeto-thank-you-configuration__description .neeto-editor-content h3{font-size:1.25rem}.neeto-thank-you-configuration__social-share{margin-top:2rem}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow{align-items:center;display:inline-flex;flex-wrap:wrap;gap:1rem;justify-content:center}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow__item{font-size:1.5rem;width:-moz-fit-content;width:fit-content}.neeto-thank-you-configuration__social-share-title{font-size:.8rem;font-weight:400;line-height:1.2;margin:.8rem 0}.neeto-thank-you-configuration__resubmit{border-bottom:1px solid;font-weight:600}.neeto-thank-you-configuration__nav-footer{align-items:center;display:flex;font-size:.875rem;gap:.5rem;justify-content:center}.neeto-thank-you-configuration__payment-pending{align-items:center;display:flex;flex-direction:column;height:100vh;justify-content:center;width:100%}.neeto-thank-you-configuration__payment-pending-body{align-items:center;color:\"#2f3941\";display:flex;flex-direction:column;gap:1rem;justify-content:center}.neeto-molecules-browser-preview{height:100%;min-height:500px;pointer-events:none}.neeto-molecules-browser-preview .neeto-thank-you-configuration{flex-grow:1;height:100%;max-height:100%}.neeto-molecules-browser-preview .neeto-thank-you-configuration .neeto-thank-you-configuration__main{height:100%}.neeto-molecules-browser-preview .neeto-thank-you-configuration__branding-wrapper{position:absolute}.neeto-thank-you-configuration__branding-wrapper{bottom:.75rem;left:.75rem;position:fixed}.neeto-thank-you-configuration__branding-link{background:#fff;border:1px solid #dfdfde;border-radius:.25rem;color:#000;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Fira Sans,Droid Sans,Helvetica Neue;font-size:.875rem;font-weight:400;padding:.25rem .375rem;transition:all;transition-duration:.3s;-webkit-user-select:none;-moz-user-select:none;user-select:none}.neeto-thank-you-configuration__branding-link strong{font-weight:700}.neeto-thank-you-configuration__branding-link:hover{box-shadow:inset 0 0 0 1px #dfdfde;text-decoration:none}.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: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))}";
50
+ var css = ":root{--neeto-thank-you-editor-content-color:0,0,0;--neeto-thank-you-background-color:255,255,255;--neeto-thank-you-background-image-position:center;--neeto-thank-you-gray-100:248,249,249;--neeto-thank-you-gray-800:31,31,31}.neeto-thank-you-configuration,.neeto-thank-you-configuration-preview__wrapper{display:flex;flex-direction:column}.neeto-thank-you-configuration{height:100vh;overflow-y:hidden;position:relative}.neeto-thank-you-configuration__nav{display:flex;justify-content:center;padding:.25rem;width:100%}.neeto-thank-you-configuration__link{align-items:center;color:inherit;display:flex;font-weight:600;gap:.25rem;text-decoration:none}.neeto-thank-you-configuration__link:hover{opacity:.8}.neeto-thank-you-configuration__link span{border-bottom:1px solid}.neeto-thank-you-configuration__link svg{height:1rem;width:auto}.neeto-thank-you-configuration__main{align-items:center;display:flex;height:100vh;justify-content:center;overflow-y:auto}.neeto-thank-you-configuration__box{margin:auto;max-width:100%;padding:3.5rem .9375rem;position:relative;text-align:center;width:51.25rem}.neeto-thank-you-configuration__redirect-message{bottom:.375rem;font-size:.75rem;left:0;opacity:.75;position:absolute;right:0}.neeto-thank-you-configuration__redirect-failure-message a[href]{color:#2d36d4!important}.neeto-thank-you-configuration__default-img-wrap{font-size:2.5rem;text-align:center}.neeto-thank-you-configuration-alignment--left .neeto-thank-you-configuration__box{align-items:flex-start;text-align:left}.neeto-thank-you-configuration__title{font-size:2rem;line-height:1.25;margin:.67em 0}.neeto-thank-you-configuration__img{margin-bottom:1.5rem;margin-top:2.5rem}.neeto-thank-you-configuration__img img{display:inline-block;max-height:50vh;max-width:100%;vertical-align:top}.neeto-thank-you-configuration__description{font-size:1rem;line-height:1.5;margin:0 0 2rem}.neeto-thank-you-configuration__description a[href]{color:#2d36d4}.neeto-thank-you-configuration__description .neeto-editor-content h1,.neeto-thank-you-configuration__description .neeto-editor-content h2,.neeto-thank-you-configuration__description .neeto-editor-content h3{font-weight:500;line-height:1.325;margin-bottom:.25rem}.neeto-thank-you-configuration__description .neeto-editor-content h1{font-size:2.5rem}.neeto-thank-you-configuration__description .neeto-editor-content h2{font-size:1.5rem}.neeto-thank-you-configuration__description .neeto-editor-content h3{font-size:1.25rem}.neeto-thank-you-configuration__social-share{margin-top:2rem}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow{align-items:center;display:inline-flex;flex-wrap:wrap;gap:1rem;justify-content:center}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow__item{font-size:1.5rem;width:-moz-fit-content;width:fit-content}.neeto-thank-you-configuration__social-share-title{font-size:.8rem;font-weight:400;line-height:1.2;margin:.8rem 0}.neeto-thank-you-configuration__resubmit{border-bottom:1px solid;font-weight:600}.neeto-thank-you-configuration__nav-footer{align-items:center;display:flex;font-size:.875rem;gap:.5rem;justify-content:center}.neeto-thank-you-configuration__payment-pending{align-items:center;display:flex;flex-direction:column;height:100vh;justify-content:center;width:100%}.neeto-thank-you-configuration__payment-pending-body{align-items:center;color:\"#2f3941\";display:flex;flex-direction:column;gap:1rem;justify-content:center}.neeto-molecules-browser-preview{height:100%;min-height:500px;pointer-events:none}.neeto-molecules-browser-preview .neeto-thank-you-configuration{flex-grow:1;height:100%;max-height:100%}.neeto-molecules-browser-preview .neeto-thank-you-configuration .neeto-thank-you-configuration__main{height:100%}.neeto-molecules-browser-preview .neeto-thank-you-configuration__branding-wrapper{position:absolute}.neeto-thank-you-configuration__branding-wrapper{bottom:.75rem;left:.75rem;position:fixed}.neeto-thank-you-configuration__branding-link{background:#fff;border:1px solid #dfdfde;border-radius:.25rem;color:#000;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Fira Sans,Droid Sans,Helvetica Neue;font-size:.875rem;font-weight:400;padding:.25rem .375rem;transition:all;transition-duration:.3s;-webkit-user-select:none;-moz-user-select:none;user-select:none}.neeto-thank-you-configuration__branding-link strong{font-weight:700}.neeto-thank-you-configuration__branding-link:hover{box-shadow:inset 0 0 0 1px #dfdfde;text-decoration:none}.neeto-thank-you-configuration__draft-preview-message{font-size:.75rem;line-height:1.5}.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: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))}";
51
51
  n(css,{});
52
52
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-thank-you-frontend",
3
- "version": "2.1.18",
3
+ "version": "2.1.19",
4
4
  "description": "A repo acts as the source of truth for the new nano's structure, configs, data etc.",
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://github.com/bigbinary/neeto-thank-you-nano",
@@ -60,13 +60,13 @@
60
60
  "@bigbinary/babel-preset-neeto": "^1.0.3",
61
61
  "@bigbinary/eslint-plugin-neeto": "1.5.6",
62
62
  "@bigbinary/neeto-cist": "1.0.14",
63
- "@bigbinary/neeto-commons-frontend": "4.13.13",
64
- "@bigbinary/neeto-editor": "1.43.33",
65
- "@bigbinary/neeto-filters-frontend": "4.3.10",
63
+ "@bigbinary/neeto-commons-frontend": "4.13.14",
64
+ "@bigbinary/neeto-editor": "1.43.36",
65
+ "@bigbinary/neeto-filters-frontend": "4.3.13",
66
66
  "@bigbinary/neeto-icons": "1.20.22",
67
67
  "@bigbinary/neeto-image-uploader-frontend": "2.3.15",
68
- "@bigbinary/neeto-molecules": "3.14.3",
69
- "@bigbinary/neetoui": "8.2.48",
68
+ "@bigbinary/neeto-molecules": "3.15.2",
69
+ "@bigbinary/neetoui": "8.2.51",
70
70
  "@emotion/is-prop-valid": "1.2.0",
71
71
  "@faker-js/faker": "8.2.0",
72
72
  "@honeybadger-io/js": "6.10.1",
@@ -172,13 +172,13 @@
172
172
  "peerDependencies": {
173
173
  "@babel/runtime": "7.26.0",
174
174
  "@bigbinary/neeto-cist": "1.0.14",
175
- "@bigbinary/neeto-commons-frontend": "4.13.13",
176
- "@bigbinary/neeto-editor": "1.43.33",
177
- "@bigbinary/neeto-filters-frontend": "4.3.10",
175
+ "@bigbinary/neeto-commons-frontend": "4.13.14",
176
+ "@bigbinary/neeto-editor": "1.43.36",
177
+ "@bigbinary/neeto-filters-frontend": "4.3.13",
178
178
  "@bigbinary/neeto-icons": "1.20.22",
179
179
  "@bigbinary/neeto-image-uploader-frontend": "2.3.15",
180
- "@bigbinary/neeto-molecules": "3.14.3",
181
- "@bigbinary/neetoui": "8.2.48",
180
+ "@bigbinary/neeto-molecules": "3.15.2",
181
+ "@bigbinary/neetoui": "8.2.51",
182
182
  "@honeybadger-io/js": "6.10.1",
183
183
  "@honeybadger-io/react": "6.1.25",
184
184
  "@tailwindcss/container-queries": "^0.1.1",
@@ -1,44 +0,0 @@
1
- import { useTranslation } from 'react-i18next';
2
- import { jsxs, jsx } from 'react/jsx-runtime';
3
-
4
- var THANK_YOU_TEXT_ALIGNMENTS = {
5
- left: "left",
6
- center: "center"
7
- };
8
-
9
- var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
10
-
11
- var css = ".neeto-thank-you-configuration,.neeto-thank-you-configuration-preview__wrapper{display:flex;flex-direction:column}.neeto-thank-you-configuration{height:100vh;overflow-y:hidden;position:relative}.neeto-thank-you-configuration__nav{display:flex;justify-content:center;padding:.25rem;width:100%}.neeto-thank-you-configuration__link{align-items:center;color:inherit;display:flex;font-weight:600;gap:.25rem;text-decoration:none}.neeto-thank-you-configuration__link:hover{opacity:.8}.neeto-thank-you-configuration__link span{border-bottom:1px solid}.neeto-thank-you-configuration__link svg{height:1rem;width:auto}.neeto-thank-you-configuration__main{align-items:center;display:flex;height:100vh;justify-content:center;overflow-y:auto}.neeto-thank-you-configuration__box{margin:auto;max-width:100%;padding:3.5rem .9375rem;text-align:center;width:51.25rem}.neeto-thank-you-configuration__default-img-wrap{font-size:2.5rem;text-align:center}.neeto-thank-you-configuration-alignment--left .neeto-thank-you-configuration__box{align-items:flex-start;text-align:left}.neeto-thank-you-configuration__title{font-size:2rem;line-height:1.25;margin:.67em 0}.neeto-thank-you-configuration__img{margin-bottom:1.5rem;margin-top:2.5rem}.neeto-thank-you-configuration__img img{display:inline-block;max-height:50vh;max-width:100%;vertical-align:top}.neeto-thank-you-configuration__description{font-size:1rem;line-height:1.5;margin:0 0 2rem}.neeto-thank-you-configuration__description a[href]{color:#2d36d4}.neeto-thank-you-configuration__description .neeto-editor-content h1,.neeto-thank-you-configuration__description .neeto-editor-content h2,.neeto-thank-you-configuration__description .neeto-editor-content h3{font-weight:500;line-height:1.325;margin-bottom:.25rem}.neeto-thank-you-configuration__description .neeto-editor-content h1{font-size:2.5rem}.neeto-thank-you-configuration__description .neeto-editor-content h2{font-size:1.5rem}.neeto-thank-you-configuration__description .neeto-editor-content h3{font-size:1.25rem}.neeto-thank-you-configuration__social-share{margin-top:2rem}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow{align-items:center;display:inline-flex;flex-wrap:wrap;gap:1rem;justify-content:center}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow__item{font-size:1.5rem;width:-moz-fit-content;width:fit-content}.neeto-thank-you-configuration__social-share-title{font-size:.8rem;font-weight:400;line-height:1.2;margin:.8rem 0}.neeto-thank-you-configuration__resubmit{border-bottom:1px solid;font-weight:600}.neeto-thank-you-configuration__nav-footer{align-items:center;display:flex;font-size:.875rem;gap:.5rem;justify-content:center}.neeto-thank-you-configuration__payment-pending{align-items:center;display:flex;flex-direction:column;height:100vh;justify-content:center;width:100%}.neeto-thank-you-configuration__payment-pending-body{align-items:center;color:\"#2f3941\";display:flex;flex-direction:column;gap:1rem;justify-content:center}.neeto-molecules-browser-preview{height:100%;min-height:500px;pointer-events:none}.neeto-molecules-browser-preview .neeto-thank-you-configuration{flex-grow:1;height:100%;max-height:100%}.neeto-molecules-browser-preview .neeto-thank-you-configuration .neeto-thank-you-configuration__main{height:100%}.neeto-molecules-browser-preview .neeto-thank-you-configuration__branding-wrapper{position:absolute}.neeto-thank-you-configuration__branding-wrapper{bottom:.75rem;left:.75rem;position:fixed}.neeto-thank-you-configuration__branding-link{background:#fff;border:1px solid #dfdfde;border-radius:.25rem;color:#000;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Fira Sans,Droid Sans,Helvetica Neue;font-size:.875rem;font-weight:400;padding:.25rem .375rem;transition:all;transition-duration:.3s;-webkit-user-select:none;-moz-user-select:none;user-select:none}.neeto-thank-you-configuration__branding-link strong{font-weight:700}.neeto-thank-you-configuration__branding-link:hover{box-shadow:inset 0 0 0 1px #dfdfde;text-decoration:none}";
12
- n(css,{});
13
-
14
- var SocialShare = function SocialShare(_ref) {
15
- var socialHandles = _ref.socialHandles,
16
- publicLinkId = _ref.publicLinkId;
17
- var _useTranslation = useTranslation(),
18
- t = _useTranslation.t;
19
- return /*#__PURE__*/jsxs("div", {
20
- className: "neeto-thank-you-configuration__social-share",
21
- children: [/*#__PURE__*/jsx("h3", {
22
- className: "neeto-thank-you-configuration__social-share-title",
23
- children: t("neetoThankYou.thankYou.socialShareHeading")
24
- }), /*#__PURE__*/jsx("div", {
25
- className: "neeto-thank-you-configuration-social-follow",
26
- children: socialHandles === null || socialHandles === void 0 ? void 0 : socialHandles.map(function (data, idx) {
27
- var Icon = data.icon,
28
- generateShareUrl = data.generateShareUrl;
29
- return /*#__PURE__*/jsx("div", {
30
- className: "neeto-thank-you-configuration-social-follow__item",
31
- children: /*#__PURE__*/jsx("a", {
32
- href: generateShareUrl(publicLinkId),
33
- rel: "noreferrer",
34
- target: "_blank",
35
- children: /*#__PURE__*/jsx(Icon, {})
36
- })
37
- }, idx);
38
- })
39
- })]
40
- });
41
- };
42
-
43
- export { SocialShare as S, THANK_YOU_TEXT_ALIGNMENTS as T, n };
44
- //# sourceMappingURL=SocialShare-C1uZ66yt.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SocialShare-C1uZ66yt.js","sources":["../app/javascript/src/components/commons/constants.js","../node_modules/rollup-plugin-styles/dist/runtime/inject-css.js","../app/javascript/src/components/ConfigureThankYou/Customize/SocialShare.jsx"],"sourcesContent":["export const THANK_YOU_TEXT_ALIGNMENTS = {\n left: \"left\",\n center: \"center\",\n};\n","var e=[],t=[];function n(n,r){if(n&&\"undefined\"!=typeof document){var a,s=!0===r.prepend?\"prepend\":\"append\",d=!0===r.singleTag,i=\"string\"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName(\"head\")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c()}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n))}function c(){var e=document.createElement(\"style\");if(e.setAttribute(\"type\",\"text/css\"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a=\"prepend\"===s?\"afterbegin\":\"beforeend\";return i.insertAdjacentElement(a,e),e}}export{n as default};\n","import { useTranslation } from \"react-i18next\";\n\nconst SocialShare = ({ socialHandles, publicLinkId }) => {\n const { t } = useTranslation();\n\n return (\n <div className=\"neeto-thank-you-configuration__social-share\">\n <h3 className=\"neeto-thank-you-configuration__social-share-title\">\n {t(\"neetoThankYou.thankYou.socialShareHeading\")}\n </h3>\n <div className=\"neeto-thank-you-configuration-social-follow\">\n {socialHandles?.map((data, idx) => {\n const { icon: Icon, generateShareUrl } = data;\n\n return (\n <div\n className=\"neeto-thank-you-configuration-social-follow__item\"\n key={idx}\n >\n <a\n href={generateShareUrl(publicLinkId)}\n rel=\"noreferrer\"\n target=\"_blank\"\n >\n <Icon />\n </a>\n </div>\n );\n })}\n </div>\n </div>\n );\n};\n\nexport default SocialShare;\n"],"names":["THANK_YOU_TEXT_ALIGNMENTS","left","center","SocialShare","_ref","socialHandles","publicLinkId","_useTranslation","useTranslation","t","_jsxs","className","children","_jsx","map","data","idx","Icon","icon","generateShareUrl","href","rel","target"],"mappings":";;;AAAO,IAAMA,yBAAyB,GAAG;AACvCC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,MAAM,EAAE;AACV;;ACHA,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,WAAW,EAAE,OAAO,QAAQ,CAAC,CAAC,IAAI,CAAC,CAA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