@bigbinary/neeto-thank-you-frontend 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -16
- package/dist/BrandingInfo-da0b773a.js +32 -0
- package/dist/BrandingInfo-da0b773a.js.map +1 -0
- package/dist/ConfigureThankYou.js +534 -0
- package/dist/ConfigureThankYou.js.map +1 -0
- package/dist/ShowThankYou.js +85 -0
- package/dist/ShowThankYou.js.map +1 -0
- package/dist/SocialShare-d2986d0d.js +40 -0
- package/dist/SocialShare-d2986d0d.js.map +1 -0
- package/dist/cjs/BrandingInfo-cdb9a379.js +38 -0
- package/dist/cjs/BrandingInfo-cdb9a379.js.map +1 -0
- package/dist/cjs/ConfigureThankYou.js +573 -0
- package/dist/cjs/ConfigureThankYou.js.map +1 -0
- package/dist/cjs/ShowThankYou.js +93 -0
- package/dist/cjs/ShowThankYou.js.map +1 -0
- package/dist/cjs/SocialShare-99170cdb.js +47 -0
- package/dist/cjs/SocialShare-99170cdb.js.map +1 -0
- package/dist/cjs/commons.js +42 -0
- package/dist/cjs/commons.js.map +1 -0
- package/dist/cjs/constants.js +19 -0
- package/dist/cjs/constants.js.map +1 -0
- package/dist/cjs/index.js +52 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/query-95d5312e.js +12 -0
- package/dist/cjs/query-95d5312e.js.map +1 -0
- package/dist/cjs/useShowThankYouConfiguration.js +12 -0
- package/dist/cjs/useShowThankYouConfiguration.js.map +1 -0
- package/dist/cjs/useShowThankYouPage.js +11 -0
- package/dist/cjs/useShowThankYouPage.js.map +1 -0
- package/dist/cjs/useThankYouConfigurationApi-d04d9e79.js +55 -0
- package/dist/cjs/useThankYouConfigurationApi-d04d9e79.js.map +1 -0
- package/dist/cjs/useThankYouPageApi-8ed1dad1.js +40 -0
- package/dist/cjs/useThankYouPageApi-8ed1dad1.js.map +1 -0
- package/dist/cjs/utils.js +16 -0
- package/dist/cjs/utils.js.map +1 -0
- package/dist/commons.js +33 -0
- package/dist/commons.js.map +1 -0
- package/dist/constants.js +13 -0
- package/dist/constants.js.map +1 -0
- package/dist/index.js +41 -871
- package/dist/index.js.map +1 -1
- package/dist/query-ab526f47.js +9 -0
- package/dist/query-ab526f47.js.map +1 -0
- package/dist/useShowThankYouConfiguration.js +7 -0
- package/dist/useShowThankYouConfiguration.js.map +1 -0
- package/dist/useShowThankYouPage.js +6 -0
- package/dist/useShowThankYouPage.js.map +1 -0
- package/dist/useThankYouConfigurationApi-4d803194.js +48 -0
- package/dist/useThankYouConfigurationApi-4d803194.js.map +1 -0
- package/dist/useThankYouPageApi-14742993.js +34 -0
- package/dist/useThankYouPageApi-14742993.js.map +1 -0
- package/dist/utils.js +12 -0
- package/dist/utils.js.map +1 -0
- package/package.json +18 -10
- package/types/ConfigureThankYou.d.ts +49 -0
- package/types/ShowThankYou.d.ts +28 -0
- package/types/useShowThankYouConfiguration.d.ts +8 -0
- package/types/useShowThankYouPage.d.ts +17 -0
- package/types.d.ts +4 -78
- package/dist/index.cjs.js +0 -918
- package/dist/index.cjs.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,873 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
kind: "redirect_to_url"
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
var DEFAULT_IMAGE_PROPERTIES = {
|
|
46
|
-
imageSignedId: null,
|
|
47
|
-
imageUrl: ""
|
|
48
|
-
};
|
|
49
|
-
var EXTERNAL_URL_PREFIX = "https://";
|
|
50
|
-
var THANK_YOU_TEXT_ALIGNMENTS = {
|
|
51
|
-
left: "left",
|
|
52
|
-
center: "center"
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
function _typeof(o) {
|
|
56
|
-
"@babel/helpers - typeof";
|
|
57
|
-
|
|
58
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
59
|
-
return typeof o;
|
|
60
|
-
} : function (o) {
|
|
61
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
62
|
-
}, _typeof(o);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
function _toPrimitive(input, hint) {
|
|
66
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
67
|
-
var prim = input[Symbol.toPrimitive];
|
|
68
|
-
if (prim !== undefined) {
|
|
69
|
-
var res = prim.call(input, hint || "default");
|
|
70
|
-
if (_typeof(res) !== "object") return res;
|
|
71
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
72
|
-
}
|
|
73
|
-
return (hint === "string" ? String : Number)(input);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
function _toPropertyKey(arg) {
|
|
77
|
-
var key = _toPrimitive(arg, "string");
|
|
78
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
function _defineProperty(obj, key, value) {
|
|
82
|
-
key = _toPropertyKey(key);
|
|
83
|
-
if (key in obj) {
|
|
84
|
-
Object.defineProperty(obj, key, {
|
|
85
|
-
value: value,
|
|
86
|
-
enumerable: true,
|
|
87
|
-
configurable: true,
|
|
88
|
-
writable: true
|
|
89
|
-
});
|
|
90
|
-
} else {
|
|
91
|
-
obj[key] = value;
|
|
92
|
-
}
|
|
93
|
-
return obj;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
var THANK_YOU_ENGINE_BASE_URL = "/neeto_thank_you_engine";
|
|
97
|
-
|
|
98
|
-
var baseUrl$1 = "".concat(THANK_YOU_ENGINE_BASE_URL, "/thank_you_configuration");
|
|
99
|
-
var show$1 = function show(entityId) {
|
|
100
|
-
return axios.get(baseUrl$1, {
|
|
101
|
-
params: {
|
|
102
|
-
entityId: entityId
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
};
|
|
106
|
-
var update = function update(_ref) {
|
|
107
|
-
var entityId = _ref.entityId,
|
|
108
|
-
payload = _ref.payload;
|
|
109
|
-
return axios.put(baseUrl$1, {
|
|
110
|
-
entityId: entityId,
|
|
111
|
-
thankYouConfiguration: payload
|
|
112
|
-
});
|
|
113
|
-
};
|
|
114
|
-
var thankYouConfigurationApi = {
|
|
115
|
-
show: show$1,
|
|
116
|
-
update: update
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
var QUERY_KEYS = {
|
|
120
|
-
THANK_YOU_CONFIGURATION: "thank-you-configuration",
|
|
121
|
-
THANK_YOU_PAGE: "thank-you-page"
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
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; }
|
|
125
|
-
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; }
|
|
126
|
-
var useShowThankYouConfiguration = function useShowThankYouConfiguration(_ref) {
|
|
127
|
-
var entityId = _ref.entityId;
|
|
128
|
-
return useQuery([QUERY_KEYS.THANK_YOU_CONFIGURATION, entityId], function () {
|
|
129
|
-
return thankYouConfigurationApi.show(entityId);
|
|
130
|
-
});
|
|
131
|
-
};
|
|
132
|
-
var useUpdateThankYouConfiguration = function useUpdateThankYouConfiguration(options) {
|
|
133
|
-
return useMutationWithInvalidation(function (_ref2) {
|
|
134
|
-
var entityId = _ref2.entityId,
|
|
135
|
-
payload = _ref2.payload;
|
|
136
|
-
return thankYouConfigurationApi.update({
|
|
137
|
-
entityId: entityId,
|
|
138
|
-
payload: payload
|
|
139
|
-
});
|
|
140
|
-
}, _objectSpread$3({
|
|
141
|
-
keysToInvalidate: [QUERY_KEYS.THANK_YOU_CONFIGURATION]
|
|
142
|
-
}, options));
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
function _arrayWithHoles(arr) {
|
|
146
|
-
if (Array.isArray(arr)) return arr;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
function _iterableToArrayLimit(r, l) {
|
|
150
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
151
|
-
if (null != t) {
|
|
152
|
-
var e,
|
|
153
|
-
n,
|
|
154
|
-
i,
|
|
155
|
-
u,
|
|
156
|
-
a = [],
|
|
157
|
-
f = !0,
|
|
158
|
-
o = !1;
|
|
159
|
-
try {
|
|
160
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
161
|
-
if (Object(t) !== t) return;
|
|
162
|
-
f = !1;
|
|
163
|
-
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
164
|
-
} catch (r) {
|
|
165
|
-
o = !0, n = r;
|
|
166
|
-
} finally {
|
|
167
|
-
try {
|
|
168
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
169
|
-
} finally {
|
|
170
|
-
if (o) throw n;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
return a;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
function _arrayLikeToArray(arr, len) {
|
|
178
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
179
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
180
|
-
return arr2;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
184
|
-
if (!o) return;
|
|
185
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
186
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
187
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
188
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
189
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
function _nonIterableRest() {
|
|
193
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
function _slicedToArray(arr, i) {
|
|
197
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
var IMAGE_SIZE_LIMIT = 1; // MB
|
|
201
|
-
var IMAGE_UPLOADER_CONFIG = {
|
|
202
|
-
maxImageSize: IMAGE_SIZE_LIMIT
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
var Image = function Image() {
|
|
206
|
-
var _useFormikContext = useFormikContext(),
|
|
207
|
-
setFieldValue = _useFormikContext.setFieldValue,
|
|
208
|
-
values = _useFormikContext.values;
|
|
209
|
-
var handleImageChange = function handleImageChange(image) {
|
|
210
|
-
if (isEmpty(image.signedId)) {
|
|
211
|
-
setFieldValue("imageUrl", "");
|
|
212
|
-
setFieldValue("imageSignedId", null);
|
|
213
|
-
return;
|
|
214
|
-
}
|
|
215
|
-
setFieldValue("imageUrl", image.url);
|
|
216
|
-
setFieldValue("imageSignedId", image.signedId);
|
|
217
|
-
};
|
|
218
|
-
return /*#__PURE__*/jsx(ImageUploader, {
|
|
219
|
-
className: "h-60",
|
|
220
|
-
src: values.imageUrl,
|
|
221
|
-
uploadConfig: IMAGE_UPLOADER_CONFIG,
|
|
222
|
-
onUploadComplete: handleImageChange
|
|
223
|
-
}, values.imageUrl);
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
var ResubmissionWarningModal = withT(function (_ref) {
|
|
227
|
-
var t = _ref.t,
|
|
228
|
-
isOpen = _ref.isOpen,
|
|
229
|
-
setIsOpen = _ref.setIsOpen,
|
|
230
|
-
uniqueSubmissionLink = _ref.uniqueSubmissionLink;
|
|
231
|
-
return /*#__PURE__*/jsxs(Modal, {
|
|
232
|
-
isOpen: isOpen,
|
|
233
|
-
onClose: function onClose() {
|
|
234
|
-
return setIsOpen(false);
|
|
235
|
-
},
|
|
236
|
-
children: [/*#__PURE__*/jsx(Modal.Header, {
|
|
237
|
-
children: /*#__PURE__*/jsxs(Typography, {
|
|
238
|
-
style: "h3",
|
|
239
|
-
weight: "semibold",
|
|
240
|
-
children: [t("neetoThankYou.common.alert"), "!"]
|
|
241
|
-
})
|
|
242
|
-
}), /*#__PURE__*/jsx(Modal.Body, {
|
|
243
|
-
children: t("neetoThankYou.thankYou.resubmissionWarning")
|
|
244
|
-
}), /*#__PURE__*/jsxs(Modal.Footer, {
|
|
245
|
-
className: "space-x-2",
|
|
246
|
-
children: [/*#__PURE__*/jsx(Button, {
|
|
247
|
-
label: t("neetoThankYou.common.ok"),
|
|
248
|
-
style: "tertiary",
|
|
249
|
-
onClick: function onClick() {
|
|
250
|
-
return setIsOpen(false);
|
|
251
|
-
}
|
|
252
|
-
}), /*#__PURE__*/jsx(Button, {
|
|
253
|
-
label: t("neetoThankYou.thankYou.uniqueSubmissionLinkText"),
|
|
254
|
-
to: uniqueSubmissionLink
|
|
255
|
-
})]
|
|
256
|
-
})]
|
|
257
|
-
});
|
|
258
|
-
});
|
|
259
|
-
|
|
260
|
-
function ownKeys$2(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; }
|
|
261
|
-
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
262
|
-
var Customize = function Customize(_ref) {
|
|
263
|
-
var editorRef = _ref.editorRef,
|
|
264
|
-
uniqueSubmissionEnabled = _ref.uniqueSubmissionEnabled,
|
|
265
|
-
hasImageUploader = _ref.hasImageUploader,
|
|
266
|
-
uniqueSubmissionLink = _ref.uniqueSubmissionLink,
|
|
267
|
-
entityId = _ref.entityId,
|
|
268
|
-
disableSocialShare = _ref.disableSocialShare,
|
|
269
|
-
disableSubmitAnotherResponse = _ref.disableSubmitAnotherResponse,
|
|
270
|
-
editorProps = _ref.editorProps;
|
|
271
|
-
var _useState = useState(false),
|
|
272
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
273
|
-
isUniqueSubmissionWarningModalOpen = _useState2[0],
|
|
274
|
-
setIsUniqueSubmissionWarningModalOpen = _useState2[1];
|
|
275
|
-
var _useTranslation = useTranslation(),
|
|
276
|
-
t = _useTranslation.t;
|
|
277
|
-
var _useFormikContext = useFormikContext(),
|
|
278
|
-
values = _useFormikContext.values,
|
|
279
|
-
setFieldValue = _useFormikContext.setFieldValue;
|
|
280
|
-
var _useShowThankYouConfi = useShowThankYouConfiguration({
|
|
281
|
-
entityId: entityId
|
|
282
|
-
}),
|
|
283
|
-
_useShowThankYouConfi2 = _useShowThankYouConfi.data,
|
|
284
|
-
_useShowThankYouConfi3 = _useShowThankYouConfi2 === void 0 ? {} : _useShowThankYouConfi2,
|
|
285
|
-
thankYouConfiguration = _useShowThankYouConfi3.thankYouConfiguration,
|
|
286
|
-
isFetching = _useShowThankYouConfi.isFetching;
|
|
287
|
-
useEffect(function () {
|
|
288
|
-
var _editorRef$current$ed;
|
|
289
|
-
if (isFetching) return;
|
|
290
|
-
setFieldValue("message", thankYouConfiguration.message);
|
|
291
|
-
(_editorRef$current$ed = editorRef.current.editor) === null || _editorRef$current$ed === void 0 || _editorRef$current$ed.commands.setContent(thankYouConfiguration.message);
|
|
292
|
-
}, [isFetching]);
|
|
293
|
-
var handleResubmitLinkChange = function handleResubmitLinkChange(event) {
|
|
294
|
-
uniqueSubmissionEnabled ? setIsUniqueSubmissionWarningModalOpen(true) : setFieldValue("showResubmitLink", event.target.checked);
|
|
295
|
-
};
|
|
296
|
-
return /*#__PURE__*/jsxs("div", {
|
|
297
|
-
className: "flex flex-col gap-4",
|
|
298
|
-
children: [hasImageUploader && /*#__PURE__*/jsxs("div", {
|
|
299
|
-
className: "flex flex-col gap-2",
|
|
300
|
-
children: [/*#__PURE__*/jsx(Label$1, {
|
|
301
|
-
children: t("neetoThankYou.thankYou.imageLabel")
|
|
302
|
-
}), /*#__PURE__*/jsx(Image, {})]
|
|
303
|
-
}), /*#__PURE__*/jsx("div", {
|
|
304
|
-
className: "flex flex-col gap-2",
|
|
305
|
-
children: /*#__PURE__*/jsx(FormikEditor, _objectSpread$2({
|
|
306
|
-
required: true,
|
|
307
|
-
"data-cy": "thank-you-message-editor",
|
|
308
|
-
label: t("neetoThankYou.thankYou.messageLabel"),
|
|
309
|
-
name: "message",
|
|
310
|
-
ref: editorRef
|
|
311
|
-
}, editorProps))
|
|
312
|
-
}), !disableSocialShare && /*#__PURE__*/jsx(Switch, {
|
|
313
|
-
label: t("neetoThankYou.thankYou.socialShareIcons"),
|
|
314
|
-
name: "socialSharingEnabled"
|
|
315
|
-
}), !disableSubmitAnotherResponse && /*#__PURE__*/jsxs(Fragment, {
|
|
316
|
-
children: [/*#__PURE__*/jsx(Switch, {
|
|
317
|
-
label: t("neetoThankYou.thankYou.showResubmitLink"),
|
|
318
|
-
name: "showResubmitLink",
|
|
319
|
-
className: classNames({
|
|
320
|
-
"neeto-ui-switch--disabled": uniqueSubmissionEnabled
|
|
321
|
-
}),
|
|
322
|
-
onChange: handleResubmitLinkChange
|
|
323
|
-
}), values.showResubmitLink && /*#__PURE__*/jsx(Input, {
|
|
324
|
-
required: true,
|
|
325
|
-
label: t("neetoThankYou.thankYou.resubmitLinkText"),
|
|
326
|
-
name: "resubmitLinkText"
|
|
327
|
-
})]
|
|
328
|
-
}), /*#__PURE__*/jsx(ResubmissionWarningModal, {
|
|
329
|
-
uniqueSubmissionLink: uniqueSubmissionLink,
|
|
330
|
-
isOpen: isUniqueSubmissionWarningModalOpen,
|
|
331
|
-
setIsOpen: setIsUniqueSubmissionWarningModalOpen
|
|
332
|
-
})]
|
|
333
|
-
});
|
|
334
|
-
};
|
|
335
|
-
|
|
336
|
-
var ENVIRONMENTS = {
|
|
337
|
-
development: "development",
|
|
338
|
-
staging: "staging",
|
|
339
|
-
production: "production",
|
|
340
|
-
heroku: "heroku"
|
|
341
|
-
};
|
|
342
|
-
var IS_PRODUCTION_ENV = globalProps.railsEnv === ENVIRONMENTS.production;
|
|
343
|
-
var TLD = IS_PRODUCTION_ENV ? "com" : "net";
|
|
344
|
-
|
|
345
|
-
var getNeetoAuthRoute = function getNeetoAuthRoute(topLevelDomain) {
|
|
346
|
-
return "https://app.neetoauth.".concat(topLevelDomain, "/signups/new");
|
|
347
|
-
};
|
|
348
|
-
var getRedirectUri = function getRedirectUri(appName) {
|
|
349
|
-
return "".concat(appName.toLowerCase(), ".").concat(TLD);
|
|
350
|
-
};
|
|
351
|
-
var buildSignUpUrl = function buildSignUpUrl(appName) {
|
|
352
|
-
return buildUrl(getNeetoAuthRoute(TLD), {
|
|
353
|
-
redirectUri: getRedirectUri(appName)
|
|
354
|
-
});
|
|
355
|
-
};
|
|
356
|
-
|
|
357
|
-
function ownKeys$1(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; }
|
|
358
|
-
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
359
|
-
var BrandingInfo = function BrandingInfo(_ref) {
|
|
360
|
-
var _brandingInfo$additio;
|
|
361
|
-
var brandingInfo = _ref.brandingInfo,
|
|
362
|
-
appName = _ref.appName;
|
|
363
|
-
return /*#__PURE__*/jsx("div", {
|
|
364
|
-
className: "neeto-thank-you-configuration__branding-wrap",
|
|
365
|
-
children: /*#__PURE__*/jsx("div", {
|
|
366
|
-
className: "neeto-thank-you-configuration__nav",
|
|
367
|
-
children: /*#__PURE__*/jsx("div", {
|
|
368
|
-
className: "neeto-thank-you-configuration__nav-footer",
|
|
369
|
-
children: /*#__PURE__*/jsx(Trans, {
|
|
370
|
-
i18nKey: brandingInfo.displayText,
|
|
371
|
-
components: _objectSpread$1({
|
|
372
|
-
signUpLink: /*#__PURE__*/jsx("a", {
|
|
373
|
-
className: "neeto-thank-you-configuration__link",
|
|
374
|
-
href: buildSignUpUrl(appName),
|
|
375
|
-
rel: "noreferrer",
|
|
376
|
-
target: "_blank"
|
|
377
|
-
}),
|
|
378
|
-
span: /*#__PURE__*/jsx("span", {})
|
|
379
|
-
}, (_brandingInfo$additio = brandingInfo.additionalComponents) !== null && _brandingInfo$additio !== void 0 ? _brandingInfo$additio : {})
|
|
380
|
-
})
|
|
381
|
-
})
|
|
382
|
-
})
|
|
383
|
-
});
|
|
384
|
-
};
|
|
385
|
-
|
|
386
|
-
var _ellipse, _ellipse2, _ellipse3;
|
|
387
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
388
|
-
const SvgBrowserControls = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
389
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
390
|
-
width: 43,
|
|
391
|
-
height: 13,
|
|
392
|
-
fill: "none"
|
|
393
|
-
}, props), _ellipse || (_ellipse = /*#__PURE__*/React.createElement("ellipse", {
|
|
394
|
-
cx: 6.405,
|
|
395
|
-
cy: 6.644,
|
|
396
|
-
fill: "#FFEFED",
|
|
397
|
-
rx: 5.745,
|
|
398
|
-
ry: 5.859
|
|
399
|
-
})), _ellipse2 || (_ellipse2 = /*#__PURE__*/React.createElement("ellipse", {
|
|
400
|
-
cx: 37.044,
|
|
401
|
-
cy: 6.644,
|
|
402
|
-
fill: "#98F3F4",
|
|
403
|
-
rx: 5.745,
|
|
404
|
-
ry: 5.859
|
|
405
|
-
})), _ellipse3 || (_ellipse3 = /*#__PURE__*/React.createElement("ellipse", {
|
|
406
|
-
cx: 21.725,
|
|
407
|
-
cy: 6.644,
|
|
408
|
-
fill: "#FFF2D7",
|
|
409
|
-
rx: 5.745,
|
|
410
|
-
ry: 5.859
|
|
411
|
-
})));
|
|
412
|
-
|
|
413
|
-
var SocialShare = function SocialShare(_ref) {
|
|
414
|
-
var socialHandles = _ref.socialHandles,
|
|
415
|
-
publicLinkId = _ref.publicLinkId;
|
|
416
|
-
var _useTranslation = useTranslation(),
|
|
417
|
-
t = _useTranslation.t;
|
|
418
|
-
return /*#__PURE__*/jsxs("div", {
|
|
419
|
-
className: "neeto-thank-you-configuration__social-share",
|
|
420
|
-
children: [/*#__PURE__*/jsx("h3", {
|
|
421
|
-
className: "neeto-thank-you-configuration__social-share-title",
|
|
422
|
-
children: t("neetoThankYou.thankYou.socialShareHeading")
|
|
423
|
-
}), /*#__PURE__*/jsx("div", {
|
|
424
|
-
className: "neeto-thank-you-configuration-social-follow",
|
|
425
|
-
children: socialHandles === null || socialHandles === void 0 ? void 0 : socialHandles.map(function (data, idx) {
|
|
426
|
-
var Icon = data.icon,
|
|
427
|
-
generateShareUrl = data.generateShareUrl;
|
|
428
|
-
return /*#__PURE__*/jsx("div", {
|
|
429
|
-
className: "neeto-thank-you-configuration-social-follow__item",
|
|
430
|
-
children: /*#__PURE__*/jsx("a", {
|
|
431
|
-
href: generateShareUrl(publicLinkId),
|
|
432
|
-
rel: "noreferrer",
|
|
433
|
-
target: "_blank",
|
|
434
|
-
children: /*#__PURE__*/jsx(Icon, {})
|
|
435
|
-
})
|
|
436
|
-
}, idx);
|
|
437
|
-
})
|
|
438
|
-
})]
|
|
439
|
-
});
|
|
440
|
-
};
|
|
441
|
-
|
|
442
|
-
var MemoizedEditorContent = /*#__PURE__*/React__default.memo(EditorContent);
|
|
443
|
-
var Preview = function Preview(_ref) {
|
|
444
|
-
var _values$resubmitLinkT;
|
|
445
|
-
var socialHandles = _ref.socialHandles,
|
|
446
|
-
thankYouTextAlignment = _ref.thankYouTextAlignment,
|
|
447
|
-
resubmitLink = _ref.resubmitLink,
|
|
448
|
-
publicLinkId = _ref.publicLinkId,
|
|
449
|
-
isPublished = _ref.isPublished,
|
|
450
|
-
appName = _ref.appName,
|
|
451
|
-
brandingInfo = _ref.brandingInfo;
|
|
452
|
-
var _useFormikContext = useFormikContext(),
|
|
453
|
-
values = _useFormikContext.values;
|
|
454
|
-
var _useTranslation = useTranslation(),
|
|
455
|
-
t = _useTranslation.t;
|
|
456
|
-
return /*#__PURE__*/jsxs("div", {
|
|
457
|
-
className: "flex flex-col",
|
|
458
|
-
children: [/*#__PURE__*/jsx(Typography, {
|
|
459
|
-
className: "mb-3 block md:hidden",
|
|
460
|
-
lineHeight: "normal",
|
|
461
|
-
style: "h3",
|
|
462
|
-
weight: "semibold",
|
|
463
|
-
children: t("neetoThankYou.thankYou.preview")
|
|
464
|
-
}), /*#__PURE__*/jsxs("div", {
|
|
465
|
-
className: classNames("neeto-thank-you-configuration-preview", {
|
|
466
|
-
"neeto-thank-you-configuration-alignment--left": thankYouTextAlignment === THANK_YOU_TEXT_ALIGNMENTS.left,
|
|
467
|
-
"neeto-thank-you-configuration-alignment--center": thankYouTextAlignment === THANK_YOU_TEXT_ALIGNMENTS.center,
|
|
468
|
-
"pointer-events-none": !isPublished
|
|
469
|
-
}),
|
|
470
|
-
children: [/*#__PURE__*/jsx("div", {
|
|
471
|
-
className: "neeto-thank-you-configuration-preview__browser-header",
|
|
472
|
-
children: /*#__PURE__*/jsx(SvgBrowserControls, {})
|
|
473
|
-
}), /*#__PURE__*/jsx("div", {
|
|
474
|
-
className: "neeto-thank-you-configuration",
|
|
475
|
-
children: /*#__PURE__*/jsx("main", {
|
|
476
|
-
className: "neeto-thank-you-configuration__main",
|
|
477
|
-
children: /*#__PURE__*/jsxs("div", {
|
|
478
|
-
className: "neeto-thank-you-configuration__box",
|
|
479
|
-
children: [!isEmpty(values === null || values === void 0 ? void 0 : values.imageUrl) && /*#__PURE__*/jsx("div", {
|
|
480
|
-
className: "neeto-thank-you-configuration__img",
|
|
481
|
-
children: /*#__PURE__*/jsx("img", {
|
|
482
|
-
alt: "",
|
|
483
|
-
src: values.imageUrl
|
|
484
|
-
})
|
|
485
|
-
}), (values === null || values === void 0 ? void 0 : values.message) && /*#__PURE__*/jsx("div", {
|
|
486
|
-
className: "neeto-thank-you-configuration__description",
|
|
487
|
-
children: /*#__PURE__*/jsx(MemoizedEditorContent, {
|
|
488
|
-
content: values.message,
|
|
489
|
-
"data-cy": "preview-editor-content"
|
|
490
|
-
})
|
|
491
|
-
}), (values === null || values === void 0 ? void 0 : values.showResubmitLink) && /*#__PURE__*/jsx("a", {
|
|
492
|
-
className: "neeto-thank-you-configuration__resubmit",
|
|
493
|
-
href: resubmitLink,
|
|
494
|
-
children: (_values$resubmitLinkT = values === null || values === void 0 ? void 0 : values.resubmitLinkText) !== null && _values$resubmitLinkT !== void 0 ? _values$resubmitLinkT : t("neetoThankYou.thankYou.resubmit")
|
|
495
|
-
}), (values === null || values === void 0 ? void 0 : values.socialSharingEnabled) && /*#__PURE__*/jsx(SocialShare, {
|
|
496
|
-
publicLinkId: publicLinkId,
|
|
497
|
-
socialHandles: socialHandles
|
|
498
|
-
})]
|
|
499
|
-
})
|
|
500
|
-
})
|
|
501
|
-
}), (values === null || values === void 0 ? void 0 : values.brandingEnabled) && /*#__PURE__*/jsx(BrandingInfo, {
|
|
502
|
-
appName: appName,
|
|
503
|
-
brandingInfo: brandingInfo
|
|
504
|
-
})]
|
|
505
|
-
})]
|
|
506
|
-
});
|
|
507
|
-
};
|
|
508
|
-
|
|
509
|
-
var ExternalLink = function ExternalLink() {
|
|
510
|
-
var _useTranslation = useTranslation(),
|
|
511
|
-
t = _useTranslation.t;
|
|
512
|
-
return /*#__PURE__*/jsx(Input, {
|
|
513
|
-
autoFocus: true,
|
|
514
|
-
required: true,
|
|
515
|
-
label: t("neetoThankYou.thankYou.link"),
|
|
516
|
-
name: "redirectUrl",
|
|
517
|
-
placeholder: EXTERNAL_URL_PREFIX,
|
|
518
|
-
prefix: /*#__PURE__*/jsx(Link, {})
|
|
519
|
-
});
|
|
520
|
-
};
|
|
521
|
-
|
|
522
|
-
var Label = function Label(_ref) {
|
|
523
|
-
var label = _ref.label,
|
|
524
|
-
description = _ref.description,
|
|
525
|
-
kind = _ref.kind;
|
|
526
|
-
return /*#__PURE__*/jsxs(Typography, {
|
|
527
|
-
className: "neeto-ui-text-gray-700",
|
|
528
|
-
"data-cy": "neeto-thank-you-configuration-".concat(hyphenate(kind), "-label"),
|
|
529
|
-
style: "body2",
|
|
530
|
-
weight: "semibold",
|
|
531
|
-
children: [label, /*#__PURE__*/jsx("span", {
|
|
532
|
-
className: "block text-xs font-normal leading-snug",
|
|
533
|
-
"data-cy": "neeto-thank-you-configuration-".concat(hyphenate(kind), "-description"),
|
|
534
|
-
children: description
|
|
535
|
-
})]
|
|
536
|
-
});
|
|
537
|
-
};
|
|
538
|
-
|
|
539
|
-
var buildValidationSchema = function buildValidationSchema() {
|
|
540
|
-
var allowEmptyCustomMessage = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
541
|
-
return yup.object().shape({
|
|
542
|
-
kind: yup.string().required(),
|
|
543
|
-
message: yup.string().test("message", t$1("neetoThankYou.thankYou.validations.messageRequired"), function (value) {
|
|
544
|
-
return allowEmptyCustomMessage || !isEditorEmpty(value);
|
|
545
|
-
}),
|
|
546
|
-
socialSharingEnabled: yup.bool(),
|
|
547
|
-
showResubmitLink: yup.bool(),
|
|
548
|
-
resubmitLinkText: yup.string().when("showResubmitLink", {
|
|
549
|
-
is: true,
|
|
550
|
-
then: yup.string().required(t$1("neetoThankYou.thankYou.validations.resubmitLinkTextIsRequired"))
|
|
551
|
-
}),
|
|
552
|
-
redirectUrl: yup.string().when("kind", {
|
|
553
|
-
is: FORM_OPTIONS.externalLink.kind,
|
|
554
|
-
then: yup.string().url(t$1("neetoThankYou.thankYou.validations.invalidLink")).required(t$1("neetoThankYou.thankYou.validations.invalidLink")).when("kind", {
|
|
555
|
-
is: FORM_OPTIONS.customize.kind,
|
|
556
|
-
then: yup.string()
|
|
557
|
-
})
|
|
558
|
-
})
|
|
559
|
-
});
|
|
560
|
-
};
|
|
561
|
-
|
|
562
|
-
function ownKeys(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; }
|
|
563
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
564
|
-
var Form = function Form(_ref) {
|
|
565
|
-
var socialHandles = _ref.socialHandles,
|
|
566
|
-
entityId = _ref.entityId,
|
|
567
|
-
publicLinkId = _ref.publicLinkId,
|
|
568
|
-
hasImageUploader = _ref.hasImageUploader,
|
|
569
|
-
uniqueSubmissionEnabled = _ref.uniqueSubmissionEnabled,
|
|
570
|
-
uniqueSubmissionLink = _ref.uniqueSubmissionLink,
|
|
571
|
-
redirectToOnCancel = _ref.redirectToOnCancel,
|
|
572
|
-
thankYouTextAlignment = _ref.thankYouTextAlignment,
|
|
573
|
-
resubmitLink = _ref.resubmitLink,
|
|
574
|
-
isPublished = _ref.isPublished,
|
|
575
|
-
disableSubmitAnotherResponse = _ref.disableSubmitAnotherResponse,
|
|
576
|
-
disableRadioSelection = _ref.disableRadioSelection,
|
|
577
|
-
appName = _ref.appName,
|
|
578
|
-
blockNavigation = _ref.blockNavigation,
|
|
579
|
-
onConfigUpdateSuccess = _ref.onConfigUpdateSuccess,
|
|
580
|
-
brandingInfo = _ref.brandingInfo,
|
|
581
|
-
editorProps = _ref.editorProps,
|
|
582
|
-
CustomPreview = _ref.preview,
|
|
583
|
-
allowEmptyCustomMessage = _ref.allowEmptyCustomMessage;
|
|
584
|
-
var _useShowThankYouConfi = useShowThankYouConfiguration({
|
|
585
|
-
entityId: entityId
|
|
586
|
-
}),
|
|
587
|
-
_useShowThankYouConfi2 = _useShowThankYouConfi.data,
|
|
588
|
-
_useShowThankYouConfi3 = _useShowThankYouConfi2 === void 0 ? {} : _useShowThankYouConfi2,
|
|
589
|
-
thankYouConfiguration = _useShowThankYouConfi3.thankYouConfiguration,
|
|
590
|
-
isLoading = _useShowThankYouConfi.isLoading;
|
|
591
|
-
var _useUpdateThankYouCon = useUpdateThankYouConfiguration(),
|
|
592
|
-
updateThankYouConfiguration = _useUpdateThankYouCon.mutate,
|
|
593
|
-
isUpdatingForm = _useUpdateThankYouCon.isLoading;
|
|
594
|
-
var editorRef = useRef({
|
|
595
|
-
editor: {}
|
|
596
|
-
});
|
|
597
|
-
if (isLoading) {
|
|
598
|
-
return /*#__PURE__*/jsx("div", {
|
|
599
|
-
className: "flex h-full w-full items-center justify-center",
|
|
600
|
-
children: /*#__PURE__*/jsx(PageLoader, {})
|
|
601
|
-
});
|
|
602
|
-
}
|
|
603
|
-
var resetEditor = function resetEditor() {
|
|
604
|
-
var _editorRef$current$ed;
|
|
605
|
-
return (_editorRef$current$ed = editorRef.current.editor) === null || _editorRef$current$ed === void 0 ? void 0 : _editorRef$current$ed.commands.setContent(thankYouConfiguration.message);
|
|
606
|
-
};
|
|
607
|
-
return /*#__PURE__*/jsx(NeetoUIForm, {
|
|
608
|
-
formikProps: {
|
|
609
|
-
enableReinitialize: true,
|
|
610
|
-
initialValues: _objectSpread(_objectSpread({}, DEFAULT_IMAGE_PROPERTIES), thankYouConfiguration),
|
|
611
|
-
validationSchema: buildValidationSchema(allowEmptyCustomMessage),
|
|
612
|
-
onSubmit: function onSubmit(values) {
|
|
613
|
-
return updateThankYouConfiguration({
|
|
614
|
-
entityId: entityId,
|
|
615
|
-
payload: _objectSpread(_objectSpread({}, values), {}, {
|
|
616
|
-
image: values.imageSignedId
|
|
617
|
-
})
|
|
618
|
-
}, {
|
|
619
|
-
onSuccess: function onSuccess() {
|
|
620
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
621
|
-
args[_key] = arguments[_key];
|
|
622
|
-
}
|
|
623
|
-
return onConfigUpdateSuccess(args, thankYouConfiguration);
|
|
624
|
-
}
|
|
625
|
-
});
|
|
626
|
-
}
|
|
627
|
-
},
|
|
628
|
-
children: function children(_ref2) {
|
|
629
|
-
var values = _ref2.values;
|
|
630
|
-
return /*#__PURE__*/jsxs("div", {
|
|
631
|
-
className: "grid grid-cols-1 gap-10 pb-6 md:grid-cols-2 md:gap-6",
|
|
632
|
-
children: [/*#__PURE__*/jsxs("div", {
|
|
633
|
-
className: "flex flex-col",
|
|
634
|
-
children: [blockNavigation && /*#__PURE__*/jsx(BlockNavigation, {}), !disableRadioSelection && /*#__PURE__*/jsx("div", {
|
|
635
|
-
className: "mb-6 w-full",
|
|
636
|
-
children: /*#__PURE__*/jsx(Radio, {
|
|
637
|
-
containerClassName: "grid grid-cols-1 sm:grid-cols-2 gap-6 items-stretch w-full",
|
|
638
|
-
name: "kind",
|
|
639
|
-
children: Object.values(FORM_OPTIONS).map(function (option) {
|
|
640
|
-
return /*#__PURE__*/jsx(Radio.Item, {
|
|
641
|
-
label: /*#__PURE__*/jsx(Label, _objectSpread({}, option)),
|
|
642
|
-
name: "kind",
|
|
643
|
-
value: option.kind,
|
|
644
|
-
className: classNames("neeto-thank-you-configuration-radio__item", {
|
|
645
|
-
active: values.kind === option.kind
|
|
646
|
-
})
|
|
647
|
-
}, option.kind);
|
|
648
|
-
})
|
|
649
|
-
})
|
|
650
|
-
}), values.kind === FORM_OPTIONS.customize.kind ? /*#__PURE__*/jsx(Customize, {
|
|
651
|
-
disableSubmitAnotherResponse: disableSubmitAnotherResponse,
|
|
652
|
-
editorProps: editorProps,
|
|
653
|
-
editorRef: editorRef,
|
|
654
|
-
entityId: entityId,
|
|
655
|
-
hasImageUploader: hasImageUploader,
|
|
656
|
-
uniqueSubmissionEnabled: uniqueSubmissionEnabled,
|
|
657
|
-
uniqueSubmissionLink: uniqueSubmissionLink,
|
|
658
|
-
disableSocialShare: isEmpty(socialHandles)
|
|
659
|
-
}) : /*#__PURE__*/jsx(ExternalLink, {}), /*#__PURE__*/jsx(ActionBlock, {
|
|
660
|
-
className: "mt-6",
|
|
661
|
-
isSubmitting: isUpdatingForm,
|
|
662
|
-
cancelButtonProps: _objectSpread({
|
|
663
|
-
"data-cy": "neeto-thank-you-configuration-cancel-button"
|
|
664
|
-
}, redirectToOnCancel ? {
|
|
665
|
-
to: redirectToOnCancel,
|
|
666
|
-
onClick: noop
|
|
667
|
-
} : {
|
|
668
|
-
type: "reset",
|
|
669
|
-
onClick: resetEditor
|
|
670
|
-
}),
|
|
671
|
-
submitButtonProps: {
|
|
672
|
-
"data-cy": "neeto-thank-you-configuration-save-button"
|
|
673
|
-
}
|
|
674
|
-
})]
|
|
675
|
-
}), values.kind === FORM_OPTIONS.customize.kind && (CustomPreview ? /*#__PURE__*/jsx(CustomPreview, {
|
|
676
|
-
values: values
|
|
677
|
-
}) : /*#__PURE__*/jsx(Preview, {
|
|
678
|
-
appName: appName,
|
|
679
|
-
brandingInfo: brandingInfo,
|
|
680
|
-
isPublished: isPublished,
|
|
681
|
-
publicLinkId: publicLinkId,
|
|
682
|
-
resubmitLink: resubmitLink,
|
|
683
|
-
socialHandles: socialHandles,
|
|
684
|
-
thankYouTextAlignment: thankYouTextAlignment
|
|
685
|
-
}))]
|
|
686
|
-
});
|
|
687
|
-
}
|
|
688
|
-
});
|
|
689
|
-
};
|
|
690
|
-
|
|
691
|
-
var Header = function Header(_ref) {
|
|
692
|
-
var breadcrumbs = _ref.breadcrumbs;
|
|
693
|
-
var _useTranslation = useTranslation(),
|
|
694
|
-
t = _useTranslation.t;
|
|
695
|
-
return /*#__PURE__*/jsx("div", {
|
|
696
|
-
className: "w-full px-6",
|
|
697
|
-
children: /*#__PURE__*/jsx(NeetoUIHeader, {
|
|
698
|
-
breadcrumbs: breadcrumbs,
|
|
699
|
-
size: "small",
|
|
700
|
-
title: t("neetoThankYou.common.thankYou")
|
|
701
|
-
})
|
|
702
|
-
});
|
|
703
|
-
};
|
|
704
|
-
|
|
705
|
-
var ConfigureThankYou = function ConfigureThankYou(_ref) {
|
|
706
|
-
var breadcrumbs = _ref.breadcrumbs,
|
|
707
|
-
isPublished = _ref.isPublished,
|
|
708
|
-
entityId = _ref.entityId,
|
|
709
|
-
publicLinkId = _ref.publicLinkId,
|
|
710
|
-
resubmitLink = _ref.resubmitLink,
|
|
711
|
-
redirectToOnCancel = _ref.redirectToOnCancel,
|
|
712
|
-
_ref$socialHandles = _ref.socialHandles,
|
|
713
|
-
socialHandles = _ref$socialHandles === void 0 ? [] : _ref$socialHandles,
|
|
714
|
-
_ref$uniqueSubmission = _ref.uniqueSubmissionLink,
|
|
715
|
-
uniqueSubmissionLink = _ref$uniqueSubmission === void 0 ? "" : _ref$uniqueSubmission,
|
|
716
|
-
_ref$uniqueSubmission2 = _ref.uniqueSubmissionEnabled,
|
|
717
|
-
uniqueSubmissionEnabled = _ref$uniqueSubmission2 === void 0 ? false : _ref$uniqueSubmission2,
|
|
718
|
-
_ref$hasImageUploader = _ref.hasImageUploader,
|
|
719
|
-
hasImageUploader = _ref$hasImageUploader === void 0 ? false : _ref$hasImageUploader,
|
|
720
|
-
_ref$disableSubmitAno = _ref.disableSubmitAnotherResponse,
|
|
721
|
-
disableSubmitAnotherResponse = _ref$disableSubmitAno === void 0 ? false : _ref$disableSubmitAno,
|
|
722
|
-
_ref$disableRadioSele = _ref.disableRadioSelection,
|
|
723
|
-
disableRadioSelection = _ref$disableRadioSele === void 0 ? false : _ref$disableRadioSele,
|
|
724
|
-
_ref$thankYouTextAlig = _ref.thankYouTextAlignment,
|
|
725
|
-
thankYouTextAlignment = _ref$thankYouTextAlig === void 0 ? THANK_YOU_TEXT_ALIGNMENTS.center : _ref$thankYouTextAlig,
|
|
726
|
-
customHeader = _ref.customHeader,
|
|
727
|
-
appName = _ref.appName,
|
|
728
|
-
_ref$blockNavigation = _ref.blockNavigation,
|
|
729
|
-
blockNavigation = _ref$blockNavigation === void 0 ? false : _ref$blockNavigation,
|
|
730
|
-
_ref$onConfigUpdateSu = _ref.onConfigUpdateSuccess,
|
|
731
|
-
onConfigUpdateSuccess = _ref$onConfigUpdateSu === void 0 ? noop : _ref$onConfigUpdateSu,
|
|
732
|
-
brandingInfo = _ref.brandingInfo,
|
|
733
|
-
_ref$editorProps = _ref.editorProps,
|
|
734
|
-
editorProps = _ref$editorProps === void 0 ? {} : _ref$editorProps,
|
|
735
|
-
preview = _ref.preview,
|
|
736
|
-
_ref$allowEmptyCustom = _ref.allowEmptyCustomMessage,
|
|
737
|
-
allowEmptyCustomMessage = _ref$allowEmptyCustom === void 0 ? false : _ref$allowEmptyCustom;
|
|
738
|
-
return /*#__PURE__*/jsxs(Fragment, {
|
|
739
|
-
children: [customHeader || /*#__PURE__*/jsx(Header, {
|
|
740
|
-
breadcrumbs: breadcrumbs
|
|
741
|
-
}), /*#__PURE__*/jsx(Scrollable, {
|
|
742
|
-
className: "w-full p-6 pt-0",
|
|
743
|
-
children: /*#__PURE__*/jsx("div", {
|
|
744
|
-
className: "mx-auto h-full max-w-7xl",
|
|
745
|
-
children: /*#__PURE__*/jsx(Form, {
|
|
746
|
-
allowEmptyCustomMessage: allowEmptyCustomMessage,
|
|
747
|
-
appName: appName,
|
|
748
|
-
blockNavigation: blockNavigation,
|
|
749
|
-
brandingInfo: brandingInfo,
|
|
750
|
-
disableRadioSelection: disableRadioSelection,
|
|
751
|
-
disableSubmitAnotherResponse: disableSubmitAnotherResponse,
|
|
752
|
-
editorProps: editorProps,
|
|
753
|
-
entityId: entityId,
|
|
754
|
-
hasImageUploader: hasImageUploader,
|
|
755
|
-
isPublished: isPublished,
|
|
756
|
-
onConfigUpdateSuccess: onConfigUpdateSuccess,
|
|
757
|
-
preview: preview,
|
|
758
|
-
publicLinkId: publicLinkId,
|
|
759
|
-
redirectToOnCancel: redirectToOnCancel,
|
|
760
|
-
resubmitLink: resubmitLink,
|
|
761
|
-
socialHandles: socialHandles,
|
|
762
|
-
thankYouTextAlignment: thankYouTextAlignment,
|
|
763
|
-
uniqueSubmissionEnabled: uniqueSubmissionEnabled,
|
|
764
|
-
uniqueSubmissionLink: uniqueSubmissionLink
|
|
765
|
-
})
|
|
766
|
-
})
|
|
767
|
-
})]
|
|
768
|
-
});
|
|
769
|
-
};
|
|
770
|
-
|
|
771
|
-
var baseUrl = "".concat(THANK_YOU_ENGINE_BASE_URL, "/thank_you_page");
|
|
772
|
-
var show = function show(_ref) {
|
|
773
|
-
var entityId = _ref.entityId,
|
|
774
|
-
isTemplateView = _ref.isTemplateView;
|
|
775
|
-
return axios.get(baseUrl, {
|
|
776
|
-
params: {
|
|
777
|
-
entityId: entityId,
|
|
778
|
-
isTemplateView: isTemplateView
|
|
779
|
-
}
|
|
780
|
-
});
|
|
781
|
-
};
|
|
782
|
-
var thankYouPageApi = {
|
|
783
|
-
show: show
|
|
784
|
-
};
|
|
785
|
-
|
|
786
|
-
var useShowThankYouPage = function useShowThankYouPage(_ref) {
|
|
787
|
-
var entityId = _ref.entityId,
|
|
788
|
-
isTemplateView = _ref.isTemplateView;
|
|
789
|
-
return useQuery([QUERY_KEYS.THANK_YOU_PAGE, entityId], function () {
|
|
790
|
-
return thankYouPageApi.show({
|
|
791
|
-
entityId: entityId,
|
|
792
|
-
isTemplateView: isTemplateView
|
|
793
|
-
});
|
|
794
|
-
});
|
|
795
|
-
};
|
|
796
|
-
|
|
797
|
-
var buildDraftUrl = function buildDraftUrl(url) {
|
|
798
|
-
return "".concat(url, "?draftPreview=true");
|
|
799
|
-
};
|
|
800
|
-
|
|
801
|
-
var DefaultPageLoader = function DefaultPageLoader() {
|
|
802
|
-
return /*#__PURE__*/jsx("div", {
|
|
803
|
-
className: "neeto-thank-you-configuration",
|
|
804
|
-
children: /*#__PURE__*/jsx(PageLoader, {})
|
|
805
|
-
});
|
|
806
|
-
};
|
|
807
|
-
var ShowThankYou = function ShowThankYou(_ref) {
|
|
808
|
-
var _thankYouConfiguratio;
|
|
809
|
-
var entityId = _ref.entityId,
|
|
810
|
-
isDraftPreview = _ref.isDraftPreview,
|
|
811
|
-
resubmitLink = _ref.resubmitLink,
|
|
812
|
-
socialHandles = _ref.socialHandles,
|
|
813
|
-
isThankYouPageLoading = _ref.isThankYouPageLoading,
|
|
814
|
-
publicLinkId = _ref.publicLinkId,
|
|
815
|
-
appName = _ref.appName,
|
|
816
|
-
CustomPageLoader = _ref.customPageLoader,
|
|
817
|
-
brandingInfo = _ref.brandingInfo;
|
|
818
|
-
var _useTranslation = useTranslation(),
|
|
819
|
-
t = _useTranslation.t;
|
|
820
|
-
var _useShowThankYouPage = useShowThankYouPage({
|
|
821
|
-
entityId: entityId
|
|
822
|
-
}),
|
|
823
|
-
_useShowThankYouPage$ = _useShowThankYouPage.data,
|
|
824
|
-
_useShowThankYouPage$2 = _useShowThankYouPage$ === void 0 ? {} : _useShowThankYouPage$,
|
|
825
|
-
thankYouConfiguration = _useShowThankYouPage$2.thankYouConfiguration,
|
|
826
|
-
isLoading = _useShowThankYouPage.isLoading;
|
|
827
|
-
var PageLoader = CustomPageLoader || DefaultPageLoader;
|
|
828
|
-
if (isLoading && isThankYouPageLoading) {
|
|
829
|
-
return /*#__PURE__*/jsx(PageLoader, {});
|
|
830
|
-
}
|
|
831
|
-
return /*#__PURE__*/jsxs("div", {
|
|
832
|
-
className: "neeto-thank-you-configuration",
|
|
833
|
-
children: [/*#__PURE__*/jsx("main", {
|
|
834
|
-
className: "neeto-thank-you-configuration__main",
|
|
835
|
-
children: /*#__PURE__*/jsxs("div", {
|
|
836
|
-
className: "neeto-thank-you-configuration__box",
|
|
837
|
-
children: [!isEmpty(thankYouConfiguration === null || thankYouConfiguration === void 0 ? void 0 : thankYouConfiguration.imageUrl) && /*#__PURE__*/jsx("div", {
|
|
838
|
-
className: "neeto-thank-you-configuration__img",
|
|
839
|
-
children: /*#__PURE__*/jsx("img", {
|
|
840
|
-
alt: "",
|
|
841
|
-
src: thankYouConfiguration === null || thankYouConfiguration === void 0 ? void 0 : thankYouConfiguration.imageUrl
|
|
842
|
-
})
|
|
843
|
-
}), (thankYouConfiguration === null || thankYouConfiguration === void 0 ? void 0 : thankYouConfiguration.message) && /*#__PURE__*/jsx("div", {
|
|
844
|
-
className: "neeto-thank-you-configuration__description",
|
|
845
|
-
children: /*#__PURE__*/jsx(EditorContent, {
|
|
846
|
-
content: thankYouConfiguration.message
|
|
847
|
-
})
|
|
848
|
-
}), (thankYouConfiguration === null || thankYouConfiguration === void 0 ? void 0 : thankYouConfiguration.showResubmitLink) && /*#__PURE__*/jsx("a", {
|
|
849
|
-
className: "neeto-thank-you-configuration__resubmit",
|
|
850
|
-
href: isDraftPreview ? buildDraftUrl(resubmitLink) : resubmitLink,
|
|
851
|
-
children: (_thankYouConfiguratio = thankYouConfiguration === null || thankYouConfiguration === void 0 ? void 0 : thankYouConfiguration.resubmitLinkText) !== null && _thankYouConfiguratio !== void 0 ? _thankYouConfiguratio : t("neetoThankYou.common.resubmit")
|
|
852
|
-
}), (thankYouConfiguration === null || thankYouConfiguration === void 0 ? void 0 : thankYouConfiguration.socialSharingEnabled) && /*#__PURE__*/jsx(SocialShare, {
|
|
853
|
-
publicLinkId: publicLinkId,
|
|
854
|
-
socialHandles: socialHandles
|
|
855
|
-
}), isDraftPreview && /*#__PURE__*/jsx(Typography, {
|
|
856
|
-
style: "body3",
|
|
857
|
-
children: t("neetoThankYou.thankYou.draftVersionForm")
|
|
858
|
-
})]
|
|
859
|
-
})
|
|
860
|
-
}), (thankYouConfiguration === null || thankYouConfiguration === void 0 ? void 0 : thankYouConfiguration.brandingEnabled) && /*#__PURE__*/jsx(BrandingInfo, {
|
|
861
|
-
appName: appName,
|
|
862
|
-
brandingInfo: brandingInfo
|
|
863
|
-
})]
|
|
864
|
-
});
|
|
865
|
-
};
|
|
866
|
-
|
|
867
|
-
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}}
|
|
868
|
-
|
|
869
|
-
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{display:flex;flex-direction:column;height:100vh;overflow-y:hidden;position:relative}.neeto-thank-you-configuration__nav{display:flex;justify-content:center;padding:4px;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:calc(100vh - 40px);justify-content:center;overflow-y:auto}.neeto-thank-you-configuration__box{margin:0 auto;max-width:100%;padding:0 15px;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 .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:4px}.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__description .neeto-editor-content a[href]{color:#2d36d4}.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-thank-you-configuration-preview{border:1px solid rgb(var(--neeto-ui-gray-300));border-radius:var(--neeto-ui-rounded-lg);box-shadow:var(--neeto-ui-shadow-xs);display:flex;flex-direction:column;height:100%;min-height:500px;overflow:hidden}.neeto-thank-you-configuration-preview .neeto-thank-you-configuration{height:100%;max-height:100%}.neeto-thank-you-configuration-preview .neeto-thank-you-configuration .neeto-thank-you-configuration__main{height:auto}.neeto-thank-you-configuration-preview__browser-header{border-bottom:1px solid rgb(var(--neeto-ui-gray-300));padding:5px}.neeto-thank-you-configuration__branding-wrap{align-items:center;background-color:#f8f9f9;background-color:rgb(var(--neeto-thank-you-gray-100));color:#1f1f1f;color:rgb(var(--neeto-thank-you-gray-800));display:flex;flex-shrink:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Fira Sans,Droid Sans,Helvetica Neue;font-size:14px;height:2.5rem;justify-content:center;padding:.375rem 1rem;width:100%}.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:12px 16px}.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:3px}.neeto-thank-you-configuration-radio__item.active{background-color:rgb(var(--neeto-ui-primary-100));border:1.5px solid rgb(var(--neeto-ui-primary-800))}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC9qYXZhc2NyaXB0L3N0eWxlc2hlZXRzL2Fic3RyYWN0cy9fcm9vdC5zY3NzIiwiYXBwL2phdmFzY3JpcHQvc3R5bGVzaGVldHMvYXBwbGljYXRpb24uc2NzcyIsImFwcC9qYXZhc2NyaXB0L3N0eWxlc2hlZXRzL2xheW91dC9fdGhhbmsteW91LnNjc3MiLCJhcHAvamF2YXNjcmlwdC9zdHlsZXNoZWV0cy9jb21wb25lbnRzL190aGFuay15b3Uuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUNFLDRDQUFBLENBQ0EsOENBQUEsQ0FDQSxrREFBQSxDQUNBLHNDQUFBLENBQ0EsbUNDQ0YsQ0NOQSwrQkFD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cmdiKHZhcigtLW5lZXRvLXVpLXByaW1hcnktODAwKSk7XG4gIH1cbn1cbiJdfQ== */";
|
|
1
|
+
export { default as ConfigureThankYou } from './ConfigureThankYou.js';
|
|
2
|
+
export { default as ShowThankYou } from './ShowThankYou.js';
|
|
3
|
+
export { u as useShowThankYouConfiguration } from './useThankYouConfigurationApi-4d803194.js';
|
|
4
|
+
export { u as useShowThankYouPage } from './useThankYouPageApi-14742993.js';
|
|
5
|
+
import { n } from './SocialShare-d2986d0d.js';
|
|
6
|
+
import 'react';
|
|
7
|
+
import '@bigbinary/neeto-cist';
|
|
8
|
+
import '@bigbinary/neeto-molecules/Scrollable';
|
|
9
|
+
import 'i18next';
|
|
10
|
+
import 'classnames';
|
|
11
|
+
import '@bigbinary/neeto-molecules/PageLoader';
|
|
12
|
+
import '@bigbinary/neetoui/formik/ActionBlock';
|
|
13
|
+
import '@bigbinary/neetoui/formik/BlockNavigation';
|
|
14
|
+
import '@bigbinary/neetoui/formik/Form';
|
|
15
|
+
import '@bigbinary/neetoui/formik/Radio';
|
|
16
|
+
import 'ramda';
|
|
17
|
+
import 'formik';
|
|
18
|
+
import '@bigbinary/neeto-editor';
|
|
19
|
+
import '@bigbinary/neetoui/Label';
|
|
20
|
+
import '@bigbinary/neetoui/formik/Input';
|
|
21
|
+
import '@bigbinary/neetoui/formik/Switch';
|
|
22
|
+
import 'react-i18next';
|
|
23
|
+
import '@bigbinary/neeto-image-uploader-frontend';
|
|
24
|
+
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
25
|
+
import '@bigbinary/neetoui/Button';
|
|
26
|
+
import '@bigbinary/neetoui/Typography';
|
|
27
|
+
import '@bigbinary/neetoui/Modal';
|
|
28
|
+
import './BrandingInfo-da0b773a.js';
|
|
29
|
+
import './utils.js';
|
|
30
|
+
import '@bigbinary/neeto-commons-frontend/utils';
|
|
31
|
+
import './constants.js';
|
|
32
|
+
import '@bigbinary/neeto-commons-frontend/initializers';
|
|
33
|
+
import '@bigbinary/neeto-icons';
|
|
34
|
+
import 'yup';
|
|
35
|
+
import '@bigbinary/neeto-molecules/Header';
|
|
36
|
+
import 'react-query';
|
|
37
|
+
import 'axios';
|
|
38
|
+
import './query-ab526f47.js';
|
|
39
|
+
import 'dompurify';
|
|
40
|
+
|
|
41
|
+
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{display:flex;flex-direction:column;height:100vh;overflow-y:hidden;position:relative}.neeto-thank-you-configuration__nav{display:flex;justify-content:center;padding:4px;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:calc(100vh - 40px);justify-content:center;overflow-y:auto}.neeto-thank-you-configuration__box{margin:0 auto;max-width:100%;padding:0 15px;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 .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:4px}.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__description .neeto-editor-content a[href]{color:#2d36d4}.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-thank-you-configuration-preview{border:1px solid rgb(var(--neeto-ui-gray-300));border-radius:var(--neeto-ui-rounded-lg);box-shadow:var(--neeto-ui-shadow-xs);display:flex;flex-direction:column;height:100%;min-height:500px;overflow:hidden}.neeto-thank-you-configuration-preview .neeto-thank-you-configuration{height:100%;max-height:100%}.neeto-thank-you-configuration-preview .neeto-thank-you-configuration .neeto-thank-you-configuration__main{height:auto}.neeto-thank-you-configuration-preview__browser-header{border-bottom:1px solid rgb(var(--neeto-ui-gray-300));padding:5px}.neeto-thank-you-configuration__branding-wrap{align-items:center;background-color:#f8f9f9;background-color:rgb(var(--neeto-thank-you-gray-100));color:#1f1f1f;color:rgb(var(--neeto-thank-you-gray-800));display:flex;flex-shrink:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Fira Sans,Droid Sans,Helvetica Neue;font-size:14px;height:2.5rem;justify-content:center;padding:.375rem 1rem;width:100%}.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:12px 16px}.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:3px}.neeto-thank-you-configuration-radio__item.active{background-color:rgb(var(--neeto-ui-primary-100));border:1.5px solid rgb(var(--neeto-ui-primary-800))}";
|
|
870
42
|
n(css,{});
|
|
871
|
-
|
|
872
|
-
export { ConfigureThankYou, ShowThankYou, useShowThankYouConfiguration, useShowThankYouPage };
|
|
873
43
|
//# sourceMappingURL=index.js.map
|