@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
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var dompurify = require('dompurify');
|
|
5
|
+
var PageLoader = require('@bigbinary/neeto-molecules/PageLoader');
|
|
6
|
+
var Typography = require('@bigbinary/neetoui/Typography');
|
|
7
|
+
var ramda = require('ramda');
|
|
8
|
+
var reactI18next = require('react-i18next');
|
|
9
|
+
var BrandingInfo = require('./BrandingInfo-cdb9a379.js');
|
|
10
|
+
var SocialShare = require('./SocialShare-99170cdb.js');
|
|
11
|
+
var useThankYouPageApi = require('./useThankYouPageApi-8ed1dad1.js');
|
|
12
|
+
require('./utils.js');
|
|
13
|
+
require('@bigbinary/neeto-commons-frontend/utils');
|
|
14
|
+
require('./constants.js');
|
|
15
|
+
require('@bigbinary/neeto-commons-frontend/initializers');
|
|
16
|
+
require('react-query');
|
|
17
|
+
require('axios');
|
|
18
|
+
require('./query-95d5312e.js');
|
|
19
|
+
|
|
20
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
21
|
+
|
|
22
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
23
|
+
var PageLoader__default = /*#__PURE__*/_interopDefaultLegacy(PageLoader);
|
|
24
|
+
var Typography__default = /*#__PURE__*/_interopDefaultLegacy(Typography);
|
|
25
|
+
|
|
26
|
+
const buildDraftUrl = url => `${url}?draftPreview=true`;
|
|
27
|
+
|
|
28
|
+
const DefaultPageLoader = () => /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29
|
+
className: "neeto-thank-you-configuration"
|
|
30
|
+
}, /*#__PURE__*/React__default["default"].createElement(PageLoader__default["default"], null));
|
|
31
|
+
const ShowThankYou = _ref => {
|
|
32
|
+
let {
|
|
33
|
+
entityId,
|
|
34
|
+
isDraftPreview,
|
|
35
|
+
resubmitLink,
|
|
36
|
+
socialHandles,
|
|
37
|
+
isThankYouPageLoading,
|
|
38
|
+
publicLinkId,
|
|
39
|
+
appName,
|
|
40
|
+
customPageLoader: CustomPageLoader,
|
|
41
|
+
brandingInfo
|
|
42
|
+
} = _ref;
|
|
43
|
+
const {
|
|
44
|
+
t
|
|
45
|
+
} = reactI18next.useTranslation();
|
|
46
|
+
const {
|
|
47
|
+
data: {
|
|
48
|
+
thankYouConfiguration
|
|
49
|
+
} = {},
|
|
50
|
+
isLoading
|
|
51
|
+
} = useThankYouPageApi.useShowThankYouPage({
|
|
52
|
+
entityId
|
|
53
|
+
});
|
|
54
|
+
const PageLoader = CustomPageLoader || DefaultPageLoader;
|
|
55
|
+
if (isLoading && isThankYouPageLoading) {
|
|
56
|
+
return /*#__PURE__*/React__default["default"].createElement(PageLoader, null);
|
|
57
|
+
}
|
|
58
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
59
|
+
className: "neeto-thank-you-configuration"
|
|
60
|
+
}, /*#__PURE__*/React__default["default"].createElement("main", {
|
|
61
|
+
className: "neeto-thank-you-configuration__main"
|
|
62
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
63
|
+
className: "neeto-thank-you-configuration__box",
|
|
64
|
+
"data-cy": "thank-you-page-content"
|
|
65
|
+
}, !ramda.isEmpty(thankYouConfiguration?.imageUrl) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
66
|
+
className: "neeto-thank-you-configuration__img"
|
|
67
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
68
|
+
alt: "",
|
|
69
|
+
"data-cy": "thank-you-page-image",
|
|
70
|
+
src: thankYouConfiguration?.imageUrl
|
|
71
|
+
})), thankYouConfiguration?.message && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
72
|
+
className: "neeto-thank-you-configuration__description",
|
|
73
|
+
"data-cy": "thank-you-page-message",
|
|
74
|
+
dangerouslySetInnerHTML: {
|
|
75
|
+
__html: dompurify.sanitize(thankYouConfiguration.message)
|
|
76
|
+
}
|
|
77
|
+
}), thankYouConfiguration?.showResubmitLink && /*#__PURE__*/React__default["default"].createElement("a", {
|
|
78
|
+
className: "neeto-thank-you-configuration__resubmit",
|
|
79
|
+
"data-cy": "thank-you-page-resubmit-link",
|
|
80
|
+
href: isDraftPreview ? buildDraftUrl(resubmitLink) : resubmitLink
|
|
81
|
+
}, thankYouConfiguration?.resubmitLinkText ?? t("neetoThankYou.common.resubmit")), thankYouConfiguration?.socialSharingEnabled && /*#__PURE__*/React__default["default"].createElement(SocialShare.SocialShare, {
|
|
82
|
+
publicLinkId,
|
|
83
|
+
socialHandles
|
|
84
|
+
}), isDraftPreview && /*#__PURE__*/React__default["default"].createElement(Typography__default["default"], {
|
|
85
|
+
style: "body3"
|
|
86
|
+
}, t("neetoThankYou.thankYou.draftVersionForm")))), thankYouConfiguration?.brandingEnabled && /*#__PURE__*/React__default["default"].createElement(BrandingInfo.BrandingInfo, {
|
|
87
|
+
appName,
|
|
88
|
+
brandingInfo
|
|
89
|
+
}));
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
module.exports = ShowThankYou;
|
|
93
|
+
//# sourceMappingURL=ShowThankYou.js.map
|
|
@@ -0,0 +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 React from \"react\";\n\nimport { sanitize } 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 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 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 brandingInfo,\n}) => {\n const { t } = useTranslation();\n\n const { data: { thankYouConfiguration } = {}, isLoading } =\n useShowThankYouPage({ entityId });\n\n const PageLoader = CustomPageLoader || DefaultPageLoader;\n\n if (isLoading && isThankYouPageLoading) {\n return <PageLoader />;\n }\n\n return (\n <div className=\"neeto-thank-you-configuration\">\n <main className=\"neeto-thank-you-configuration__main\">\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, brandingInfo }} />\n )}\n </div>\n );\n};\n\nexport default ShowThankYou;\n"],"names":["buildDraftUrl","url","DefaultPageLoader","React","createElement","className","NeetoUIPageLoader","ShowThankYou","_ref","entityId","isDraftPreview","resubmitLink","socialHandles","isThankYouPageLoading","publicLinkId","appName","customPageLoader","CustomPageLoader","brandingInfo","t","useTranslation","data","thankYouConfiguration","isLoading","useShowThankYouPage","PageLoader","isEmpty","imageUrl","alt","src","message","dangerouslySetInnerHTML","__html","sanitize","showResubmitLink","href","resubmitLinkText","socialSharingEnabled","SocialShare","Typography","style","brandingEnabled","BrandingInfo"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAO,MAAMA,aAAa,GAAGC,GAAG,IAAK,CAAA,EAAEA,GAAI,CAAmB,kBAAA,CAAA;;ACgB9D,MAAMC,iBAAiB,GAAGA,mBACxBC,yBAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,EAAAA,SAAS,EAAC,+BAAA;AAA+B,CAAA,eAC5CF,yBAAA,CAAAC,aAAA,CAACE,8BAAiB,EAAA,IAAE,CACjB,CACN,CAAA;AAEKC,MAAAA,YAAY,GAAGC,IAAA,IAUf;EAAA,IAVgB;IACpBC,QAAQ;IACRC,cAAc;IACdC,YAAY;IACZC,aAAa;IACbC,qBAAqB;IACrBC,YAAY;IACZC,OAAO;AACPC,IAAAA,gBAAgB,EAAEC,gBAAgB;AAClCC,IAAAA,YAAAA;AACF,GAAC,GAAAV,IAAA,CAAA;EACC,MAAM;AAAEW,IAAAA,CAAAA;GAAG,GAAGC,2BAAc,EAAE,CAAA;EAE9B,MAAM;AAAEC,IAAAA,IAAI,EAAE;AAAEC,MAAAA,qBAAAA;KAAuB,GAAG,EAAE;AAAEC,IAAAA,SAAAA;GAAW,GACvDC,sCAAmB,CAAC;AAAEf,IAAAA,QAAAA;AAAS,GAAC,CAAC,CAAA;AAEnC,EAAA,MAAMgB,UAAU,GAAGR,gBAAgB,IAAIf,iBAAiB,CAAA;EAExD,IAAIqB,SAAS,IAAIV,qBAAqB,EAAE;AACtC,IAAA,oBAAOV,yBAAA,CAAAC,aAAA,CAACqB,UAAU,MAAE,CAAC,CAAA;AACvB,GAAA;EAEA,oBACEtB,yBAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,+BAAA;GACbF,eAAAA,yBAAA,CAAAC,aAAA,CAAA,MAAA,EAAA;AAAMC,IAAAA,SAAS,EAAC,qCAAA;GACdF,eAAAA,yBAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACEC,IAAAA,SAAS,EAAC,oCAAoC;IAC9C,SAAQ,EAAA,wBAAA;GAEP,EAAA,CAACqB,aAAO,CAACJ,qBAAqB,EAAEK,QAAQ,CAAC,iBACxCxB,yBAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,oCAAA;GACbF,eAAAA,yBAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACEwB,IAAAA,GAAG,EAAC,EAAE;AACN,IAAA,SAAA,EAAQ,sBAAsB;IAC9BC,GAAG,EAAEP,qBAAqB,EAAEK,QAAAA;GAC7B,CACE,CACN,EACAL,qBAAqB,EAAEQ,OAAO,iBAC7B3B,yBAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACEC,IAAAA,SAAS,EAAC,4CAA4C;AACtD,IAAA,SAAA,EAAQ,wBAAwB;AAChC0B,IAAAA,uBAAuB,EAAE;AACvBC,MAAAA,MAAM,EAAEC,kBAAQ,CAACX,qBAAqB,CAACQ,OAAO,CAAA;AAChD,KAAA;GACD,CACF,EACAR,qBAAqB,EAAEY,gBAAgB,iBACtC/B,yBAAA,CAAAC,aAAA,CAAA,GAAA,EAAA;AACEC,IAAAA,SAAS,EAAC,yCAAyC;AACnD,IAAA,SAAA,EAAQ,8BAA8B;AACtC8B,IAAAA,IAAI,EAAEzB,cAAc,GAAGV,aAAa,CAACW,YAAY,CAAC,GAAGA,YAAAA;AAAa,GAAA,EAEjEW,qBAAqB,EAAEc,gBAAgB,IACtCjB,CAAC,CAAC,+BAA+B,CAClC,CACJ,EACAG,qBAAqB,EAAEe,oBAAoB,iBAC1ClC,yBAAA,CAAAC,aAAA,CAACkC,uBAAW,EAAA;IAAOxB,YAAY;AAAEF,IAAAA,aAAAA;GAAkB,CACpD,EACAF,cAAc,iBACbP,yBAAA,CAAAC,aAAA,CAACmC,8BAAU,EAAA;AAACC,IAAAA,KAAK,EAAC,OAAA;AAAO,GAAA,EACtBrB,CAAC,CAAC,yCAAyC,CAClC,CAEX,CACD,CAAC,EACNG,qBAAqB,EAAEmB,eAAe,iBACrCtC,yBAAA,CAAAC,aAAA,CAACsC,yBAAY,EAAA;IAAO3B,OAAO;AAAEG,IAAAA,YAAAA;AAAY,GAAK,CAE7C,CAAC,CAAA;AAEV;;;;"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var reactI18next = require('react-i18next');
|
|
5
|
+
|
|
6
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
7
|
+
|
|
8
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
9
|
+
|
|
10
|
+
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}}
|
|
11
|
+
|
|
12
|
+
var css = ".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:rgb(var(--neeto-thank-you-gray-100));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%}";
|
|
13
|
+
n(css,{});
|
|
14
|
+
|
|
15
|
+
const SocialShare = _ref => {
|
|
16
|
+
let {
|
|
17
|
+
socialHandles,
|
|
18
|
+
publicLinkId
|
|
19
|
+
} = _ref;
|
|
20
|
+
const {
|
|
21
|
+
t
|
|
22
|
+
} = reactI18next.useTranslation();
|
|
23
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
24
|
+
className: "neeto-thank-you-configuration__social-share"
|
|
25
|
+
}, /*#__PURE__*/React__default["default"].createElement("h3", {
|
|
26
|
+
className: "neeto-thank-you-configuration__social-share-title"
|
|
27
|
+
}, t("neetoThankYou.thankYou.socialShareHeading")), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28
|
+
className: "neeto-thank-you-configuration-social-follow"
|
|
29
|
+
}, socialHandles?.map((data, idx) => {
|
|
30
|
+
const {
|
|
31
|
+
icon: Icon,
|
|
32
|
+
generateShareUrl
|
|
33
|
+
} = data;
|
|
34
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
35
|
+
className: "neeto-thank-you-configuration-social-follow__item",
|
|
36
|
+
key: idx
|
|
37
|
+
}, /*#__PURE__*/React__default["default"].createElement("a", {
|
|
38
|
+
href: generateShareUrl(publicLinkId),
|
|
39
|
+
rel: "noreferrer",
|
|
40
|
+
target: "_blank"
|
|
41
|
+
}, /*#__PURE__*/React__default["default"].createElement(Icon, null)));
|
|
42
|
+
})));
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
exports.SocialShare = SocialShare;
|
|
46
|
+
exports.n = n;
|
|
47
|
+
//# sourceMappingURL=SocialShare-99170cdb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SocialShare-99170cdb.js","sources":["../../node_modules/rollup-plugin-styles/dist/runtime/inject-css.js","../../app/javascript/src/components/ConfigureThankYou/Customize/SocialShare.jsx"],"sourcesContent":["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 React from \"react\";\n\nimport { 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":["SocialShare","_ref","socialHandles","publicLinkId","t","useTranslation","React","createElement","className","map","data","idx","icon","Icon","generateShareUrl","key","href","rel","target"],"mappings":"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"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var BrandingInfo = require('./BrandingInfo-cdb9a379.js');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var framerMotion = require('framer-motion');
|
|
8
|
+
require('react-i18next');
|
|
9
|
+
require('./utils.js');
|
|
10
|
+
require('@bigbinary/neeto-commons-frontend/utils');
|
|
11
|
+
require('./constants.js');
|
|
12
|
+
require('@bigbinary/neeto-commons-frontend/initializers');
|
|
13
|
+
|
|
14
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
15
|
+
|
|
16
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
17
|
+
|
|
18
|
+
const ProgressBar = _ref => {
|
|
19
|
+
let {
|
|
20
|
+
progressPercentage,
|
|
21
|
+
progressValue
|
|
22
|
+
} = _ref;
|
|
23
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
24
|
+
className: "neeto-ui-bg-gray-200 neeto-ui-rounded-full w-full overflow-hidden"
|
|
25
|
+
}, /*#__PURE__*/React__default["default"].createElement(framerMotion.motion.div, {
|
|
26
|
+
animate: {
|
|
27
|
+
width: `${progressPercentage}%`
|
|
28
|
+
},
|
|
29
|
+
className: "neeto-ui-bg-primary-600 neeto-ui-text-primary-100 text-2xs neeto-ui-rounded-full flex h-3 animate-pulse items-center justify-center font-medium leading-none",
|
|
30
|
+
initial: {
|
|
31
|
+
width: 0
|
|
32
|
+
},
|
|
33
|
+
transition: {
|
|
34
|
+
duration: 0.5,
|
|
35
|
+
ease: "easeInOut"
|
|
36
|
+
}
|
|
37
|
+
}, progressValue));
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
exports.BrandingInfo = BrandingInfo.BrandingInfo;
|
|
41
|
+
exports.ProgressBar = ProgressBar;
|
|
42
|
+
//# sourceMappingURL=commons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commons.js","sources":["../../app/javascript/src/components/commons/ProgressBar.jsx"],"sourcesContent":["import React from \"react\";\n\nimport { motion } from \"framer-motion\";\n\nconst ProgressBar = ({ progressPercentage, progressValue }) => (\n <div className=\"neeto-ui-bg-gray-200 neeto-ui-rounded-full w-full overflow-hidden\">\n <motion.div\n animate={{ width: `${progressPercentage}%` }}\n className=\"neeto-ui-bg-primary-600 neeto-ui-text-primary-100 text-2xs neeto-ui-rounded-full flex h-3 animate-pulse items-center justify-center font-medium leading-none\"\n initial={{ width: 0 }}\n transition={{ duration: 0.5, ease: \"easeInOut\" }}\n >\n {progressValue}\n </motion.div>\n </div>\n);\n\nexport default ProgressBar;\n"],"names":["ProgressBar","_ref","progressPercentage","progressValue","React","createElement","className","motion","div","animate","width","initial","transition","duration","ease"],"mappings":";;;;;;;;;;;;;;;;;AAIMA,MAAAA,WAAW,GAAGC,IAAA,IAAA;EAAA,IAAC;IAAEC,kBAAkB;AAAEC,IAAAA,aAAAA;AAAc,GAAC,GAAAF,IAAA,CAAA;EAAA,oBACxDG,yBAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,mEAAA;AAAmE,GAAA,eAChFF,yBAAA,CAAAC,aAAA,CAACE,mBAAM,CAACC,GAAG,EAAA;AACTC,IAAAA,OAAO,EAAE;MAAEC,KAAK,EAAG,GAAER,kBAAmB,CAAA,CAAA,CAAA;KAAK;AAC7CI,IAAAA,SAAS,EAAC,8JAA8J;AACxKK,IAAAA,OAAO,EAAE;AAAED,MAAAA,KAAK,EAAE,CAAA;KAAI;AACtBE,IAAAA,UAAU,EAAE;AAAEC,MAAAA,QAAQ,EAAE,GAAG;AAAEC,MAAAA,IAAI,EAAE,WAAA;AAAY,KAAA;GAE9CX,EAAAA,aACS,CACT,CAAC,CAAA;AAAA;;;;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var initializers = require('@bigbinary/neeto-commons-frontend/initializers');
|
|
6
|
+
|
|
7
|
+
const ENVIRONMENTS = {
|
|
8
|
+
development: "development",
|
|
9
|
+
staging: "staging",
|
|
10
|
+
production: "production",
|
|
11
|
+
heroku: "heroku"
|
|
12
|
+
};
|
|
13
|
+
const IS_PRODUCTION_ENV = initializers.globalProps.railsEnv === ENVIRONMENTS.production;
|
|
14
|
+
const TLD = IS_PRODUCTION_ENV ? "com" : "net";
|
|
15
|
+
|
|
16
|
+
exports.ENVIRONMENTS = ENVIRONMENTS;
|
|
17
|
+
exports.IS_PRODUCTION_ENV = IS_PRODUCTION_ENV;
|
|
18
|
+
exports.TLD = TLD;
|
|
19
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../app/javascript/src/components/constants.js"],"sourcesContent":["import { globalProps } from \"neetocommons/initializers\";\n\nexport const ENVIRONMENTS = {\n development: \"development\",\n staging: \"staging\",\n production: \"production\",\n heroku: \"heroku\",\n};\n\nexport const IS_PRODUCTION_ENV =\n globalProps.railsEnv === ENVIRONMENTS.production;\n\nexport const TLD = IS_PRODUCTION_ENV ? \"com\" : \"net\";\n"],"names":["ENVIRONMENTS","development","staging","production","heroku","IS_PRODUCTION_ENV","globalProps","railsEnv","TLD"],"mappings":";;;;;;AAEO,MAAMA,YAAY,GAAG;AAC1BC,EAAAA,WAAW,EAAE,aAAa;AAC1BC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,UAAU,EAAE,YAAY;AACxBC,EAAAA,MAAM,EAAE,QAAA;AACV,EAAC;AAEM,MAAMC,iBAAiB,GAC5BC,wBAAW,CAACC,QAAQ,KAAKP,YAAY,CAACG,WAAU;MAErCK,GAAG,GAAGH,iBAAiB,GAAG,KAAK,GAAG;;;;;;"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var ConfigureThankYou = require('./ConfigureThankYou.js');
|
|
6
|
+
var ShowThankYou = require('./ShowThankYou.js');
|
|
7
|
+
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-d04d9e79.js');
|
|
8
|
+
var useThankYouPageApi = require('./useThankYouPageApi-8ed1dad1.js');
|
|
9
|
+
var SocialShare = require('./SocialShare-99170cdb.js');
|
|
10
|
+
require('react');
|
|
11
|
+
require('@bigbinary/neeto-cist');
|
|
12
|
+
require('@bigbinary/neeto-molecules/Scrollable');
|
|
13
|
+
require('i18next');
|
|
14
|
+
require('classnames');
|
|
15
|
+
require('@bigbinary/neeto-molecules/PageLoader');
|
|
16
|
+
require('@bigbinary/neetoui/formik/ActionBlock');
|
|
17
|
+
require('@bigbinary/neetoui/formik/BlockNavigation');
|
|
18
|
+
require('@bigbinary/neetoui/formik/Form');
|
|
19
|
+
require('@bigbinary/neetoui/formik/Radio');
|
|
20
|
+
require('ramda');
|
|
21
|
+
require('formik');
|
|
22
|
+
require('@bigbinary/neeto-editor');
|
|
23
|
+
require('@bigbinary/neetoui/Label');
|
|
24
|
+
require('@bigbinary/neetoui/formik/Input');
|
|
25
|
+
require('@bigbinary/neetoui/formik/Switch');
|
|
26
|
+
require('react-i18next');
|
|
27
|
+
require('@bigbinary/neeto-image-uploader-frontend');
|
|
28
|
+
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
29
|
+
require('@bigbinary/neetoui/Button');
|
|
30
|
+
require('@bigbinary/neetoui/Typography');
|
|
31
|
+
require('@bigbinary/neetoui/Modal');
|
|
32
|
+
require('./BrandingInfo-cdb9a379.js');
|
|
33
|
+
require('./utils.js');
|
|
34
|
+
require('@bigbinary/neeto-commons-frontend/utils');
|
|
35
|
+
require('./constants.js');
|
|
36
|
+
require('@bigbinary/neeto-commons-frontend/initializers');
|
|
37
|
+
require('@bigbinary/neeto-icons');
|
|
38
|
+
require('yup');
|
|
39
|
+
require('@bigbinary/neeto-molecules/Header');
|
|
40
|
+
require('react-query');
|
|
41
|
+
require('axios');
|
|
42
|
+
require('./query-95d5312e.js');
|
|
43
|
+
require('dompurify');
|
|
44
|
+
|
|
45
|
+
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))}";
|
|
46
|
+
SocialShare.n(css,{});
|
|
47
|
+
|
|
48
|
+
exports.ConfigureThankYou = ConfigureThankYou;
|
|
49
|
+
exports.ShowThankYou = ShowThankYou;
|
|
50
|
+
exports.useShowThankYouConfiguration = useThankYouConfigurationApi.useShowThankYouConfiguration;
|
|
51
|
+
exports.useShowThankYouPage = useThankYouPageApi.useShowThankYouPage;
|
|
52
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const THANK_YOU_ENGINE_BASE_URL = "/neeto_thank_you_engine";
|
|
4
|
+
|
|
5
|
+
const QUERY_KEYS = {
|
|
6
|
+
THANK_YOU_CONFIGURATION: "thank-you-configuration",
|
|
7
|
+
THANK_YOU_PAGE: "thank-you-page"
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
exports.QUERY_KEYS = QUERY_KEYS;
|
|
11
|
+
exports.THANK_YOU_ENGINE_BASE_URL = THANK_YOU_ENGINE_BASE_URL;
|
|
12
|
+
//# sourceMappingURL=query-95d5312e.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-95d5312e.js","sources":["../../app/javascript/src/constants/index.js","../../app/javascript/src/constants/query.js"],"sourcesContent":["export const THANK_YOU_ENGINE_BASE_URL = \"/neeto_thank_you_engine\";\n","export const QUERY_KEYS = {\n THANK_YOU_CONFIGURATION: \"thank-you-configuration\",\n THANK_YOU_PAGE: \"thank-you-page\",\n};\n"],"names":["THANK_YOU_ENGINE_BASE_URL","QUERY_KEYS","THANK_YOU_CONFIGURATION","THANK_YOU_PAGE"],"mappings":";;AAAO,MAAMA,yBAAyB,GAAG;;ACAlC,MAAMC,UAAU,GAAG;AACxBC,EAAAA,uBAAuB,EAAE,yBAAyB;AAClDC,EAAAA,cAAc,EAAE,gBAAA;AAClB;;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-d04d9e79.js');
|
|
4
|
+
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
5
|
+
require('react-query');
|
|
6
|
+
require('axios');
|
|
7
|
+
require('./query-95d5312e.js');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
module.exports = useThankYouConfigurationApi.useShowThankYouConfiguration;
|
|
12
|
+
//# sourceMappingURL=useShowThankYouConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useShowThankYouConfiguration.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var useThankYouPageApi = require('./useThankYouPageApi-8ed1dad1.js');
|
|
4
|
+
require('react-query');
|
|
5
|
+
require('axios');
|
|
6
|
+
require('./query-95d5312e.js');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
module.exports = useThankYouPageApi.useShowThankYouPage;
|
|
11
|
+
//# sourceMappingURL=useShowThankYouPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useShowThankYouPage.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
4
|
+
var reactQuery = require('react-query');
|
|
5
|
+
var axios = require('axios');
|
|
6
|
+
var query = require('./query-95d5312e.js');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
11
|
+
|
|
12
|
+
const baseUrl = `${query.THANK_YOU_ENGINE_BASE_URL}/thank_you_configuration`;
|
|
13
|
+
const show = entityId => axios__default["default"].get(baseUrl, {
|
|
14
|
+
params: {
|
|
15
|
+
entityId
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
const update = _ref => {
|
|
19
|
+
let {
|
|
20
|
+
entityId,
|
|
21
|
+
payload
|
|
22
|
+
} = _ref;
|
|
23
|
+
return axios__default["default"].put(baseUrl, {
|
|
24
|
+
entityId,
|
|
25
|
+
thankYouConfiguration: payload
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
const thankYouConfigurationApi = {
|
|
29
|
+
show,
|
|
30
|
+
update
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const useShowThankYouConfiguration = _ref => {
|
|
34
|
+
let {
|
|
35
|
+
entityId
|
|
36
|
+
} = _ref;
|
|
37
|
+
return reactQuery.useQuery([query.QUERY_KEYS.THANK_YOU_CONFIGURATION, entityId], () => thankYouConfigurationApi.show(entityId));
|
|
38
|
+
};
|
|
39
|
+
const useUpdateThankYouConfiguration = options => reactUtils.useMutationWithInvalidation(_ref2 => {
|
|
40
|
+
let {
|
|
41
|
+
entityId,
|
|
42
|
+
payload
|
|
43
|
+
} = _ref2;
|
|
44
|
+
return thankYouConfigurationApi.update({
|
|
45
|
+
entityId,
|
|
46
|
+
payload
|
|
47
|
+
});
|
|
48
|
+
}, {
|
|
49
|
+
keysToInvalidate: [query.QUERY_KEYS.THANK_YOU_CONFIGURATION],
|
|
50
|
+
...options
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
exports.useShowThankYouConfiguration = useShowThankYouConfiguration;
|
|
54
|
+
exports.useUpdateThankYouConfiguration = useUpdateThankYouConfiguration;
|
|
55
|
+
//# sourceMappingURL=useThankYouConfigurationApi-d04d9e79.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useThankYouConfigurationApi-d04d9e79.js","sources":["../../app/javascript/src/apis/thank_you_configuration.js","../../app/javascript/src/hooks/reactQuery/useThankYouConfigurationApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { THANK_YOU_ENGINE_BASE_URL } from \"src/constants\";\n\nconst baseUrl = `${THANK_YOU_ENGINE_BASE_URL}/thank_you_configuration`;\n\nconst show = entityId => axios.get(baseUrl, { params: { entityId } });\n\nconst update = ({ entityId, payload }) =>\n axios.put(baseUrl, { entityId, thankYouConfiguration: payload });\n\nconst thankYouConfigurationApi = { show, update };\n\nexport default thankYouConfigurationApi;\n","import { useMutationWithInvalidation } from \"neetocommons/react-utils\";\nimport { useQuery } from \"react-query\";\n\nimport thankYouConfigurationApi from \"apis/thank_you_configuration\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useShowThankYouConfiguration = ({ entityId }) =>\n useQuery([QUERY_KEYS.THANK_YOU_CONFIGURATION, entityId], () =>\n thankYouConfigurationApi.show(entityId)\n );\n\nexport const useUpdateThankYouConfiguration = options =>\n useMutationWithInvalidation(\n ({ entityId, payload }) =>\n thankYouConfigurationApi.update({ entityId, payload }),\n {\n keysToInvalidate: [QUERY_KEYS.THANK_YOU_CONFIGURATION],\n\n ...options,\n }\n );\n"],"names":["baseUrl","THANK_YOU_ENGINE_BASE_URL","show","entityId","axios","get","params","update","_ref","payload","put","thankYouConfiguration","thankYouConfigurationApi","useShowThankYouConfiguration","useQuery","QUERY_KEYS","THANK_YOU_CONFIGURATION","useUpdateThankYouConfiguration","options","useMutationWithInvalidation","_ref2","keysToInvalidate"],"mappings":";;;;;;;;;;;AAIA,MAAMA,OAAO,GAAI,CAAEC,EAAAA,+BAA0B,CAAyB,wBAAA,CAAA,CAAA;AAEtE,MAAMC,IAAI,GAAGC,QAAQ,IAAIC,yBAAK,CAACC,GAAG,CAACL,OAAO,EAAE;AAAEM,EAAAA,MAAM,EAAE;AAAEH,IAAAA,QAAAA;AAAS,GAAA;AAAE,CAAC,CAAC,CAAA;AAErE,MAAMI,MAAM,GAAGC,IAAA,IAAA;EAAA,IAAC;IAAEL,QAAQ;AAAEM,IAAAA,OAAAA;AAAQ,GAAC,GAAAD,IAAA,CAAA;AAAA,EAAA,OACnCJ,yBAAK,CAACM,GAAG,CAACV,OAAO,EAAE;IAAEG,QAAQ;AAAEQ,IAAAA,qBAAqB,EAAEF,OAAAA;AAAQ,GAAC,CAAC,CAAA;AAAA,CAAA,CAAA;AAElE,MAAMG,wBAAwB,GAAG;EAAEV,IAAI;AAAEK,EAAAA,MAAAA;AAAO,CAAC;;ACL1C,MAAMM,4BAA4B,GAAGL,IAAA,IAAA;EAAA,IAAC;AAAEL,IAAAA,QAAAA;AAAS,GAAC,GAAAK,IAAA,CAAA;AAAA,EAAA,OACvDM,mBAAQ,CAAC,CAACC,gBAAU,CAACC,uBAAuB,EAAEb,QAAQ,CAAC,EAAE,MACvDS,wBAAwB,CAACV,IAAI,CAACC,QAAQ,CACxC,CAAC,CAAA;AAAA,EAAA;MAEUc,8BAA8B,GAAGC,OAAO,IACnDC,sCAA2B,CACzBC,KAAA,IAAA;EAAA,IAAC;IAAEjB,QAAQ;AAAEM,IAAAA,OAAAA;AAAQ,GAAC,GAAAW,KAAA,CAAA;EAAA,OACpBR,wBAAwB,CAACL,MAAM,CAAC;IAAEJ,QAAQ;AAAEM,IAAAA,OAAAA;AAAQ,GAAC,CAAC,CAAA;AAAA,CACxD,EAAA;AACEY,EAAAA,gBAAgB,EAAE,CAACN,gBAAU,CAACC,uBAAuB,CAAC;EAEtD,GAAGE,OAAAA;AACL,CACF;;;;;"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var reactQuery = require('react-query');
|
|
4
|
+
var axios = require('axios');
|
|
5
|
+
var query = require('./query-95d5312e.js');
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
10
|
+
|
|
11
|
+
const baseUrl = `${query.THANK_YOU_ENGINE_BASE_URL}/thank_you_page`;
|
|
12
|
+
const show = _ref => {
|
|
13
|
+
let {
|
|
14
|
+
entityId,
|
|
15
|
+
isTemplateView
|
|
16
|
+
} = _ref;
|
|
17
|
+
return axios__default["default"].get(baseUrl, {
|
|
18
|
+
params: {
|
|
19
|
+
entityId,
|
|
20
|
+
isTemplateView
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
const thankYouPageApi = {
|
|
25
|
+
show
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const useShowThankYouPage = _ref => {
|
|
29
|
+
let {
|
|
30
|
+
entityId,
|
|
31
|
+
isTemplateView
|
|
32
|
+
} = _ref;
|
|
33
|
+
return reactQuery.useQuery([query.QUERY_KEYS.THANK_YOU_PAGE, entityId], () => thankYouPageApi.show({
|
|
34
|
+
entityId,
|
|
35
|
+
isTemplateView
|
|
36
|
+
}));
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
exports.useShowThankYouPage = useShowThankYouPage;
|
|
40
|
+
//# sourceMappingURL=useThankYouPageApi-8ed1dad1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useThankYouPageApi-8ed1dad1.js","sources":["../../app/javascript/src/apis/thank_you_page.js","../../app/javascript/src/hooks/reactQuery/useThankYouPageApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { THANK_YOU_ENGINE_BASE_URL } from \"src/constants\";\n\nconst baseUrl = `${THANK_YOU_ENGINE_BASE_URL}/thank_you_page`;\n\nconst show = ({ entityId, isTemplateView }) =>\n axios.get(baseUrl, { params: { entityId, isTemplateView } });\n\nconst thankYouPageApi = { show };\n\nexport default thankYouPageApi;\n","import { useQuery } from \"react-query\";\n\nimport thankYouPageApi from \"apis/thank_you_page\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useShowThankYouPage = ({ entityId, isTemplateView }) =>\n useQuery([QUERY_KEYS.THANK_YOU_PAGE, entityId], () =>\n thankYouPageApi.show({ entityId, isTemplateView })\n );\n"],"names":["baseUrl","THANK_YOU_ENGINE_BASE_URL","show","_ref","entityId","isTemplateView","axios","get","params","thankYouPageApi","useShowThankYouPage","useQuery","QUERY_KEYS","THANK_YOU_PAGE"],"mappings":";;;;;;;;;;AAIA,MAAMA,OAAO,GAAI,CAAEC,EAAAA,+BAA0B,CAAgB,eAAA,CAAA,CAAA;AAE7D,MAAMC,IAAI,GAAGC,IAAA,IAAA;EAAA,IAAC;IAAEC,QAAQ;AAAEC,IAAAA,cAAAA;AAAe,GAAC,GAAAF,IAAA,CAAA;AAAA,EAAA,OACxCG,yBAAK,CAACC,GAAG,CAACP,OAAO,EAAE;AAAEQ,IAAAA,MAAM,EAAE;MAAEJ,QAAQ;AAAEC,MAAAA,cAAAA;AAAe,KAAA;AAAE,GAAC,CAAC,CAAA;AAAA,CAAA,CAAA;AAE9D,MAAMI,eAAe,GAAG;AAAEP,EAAAA,IAAAA;AAAK,CAAC;;ACJzB,MAAMQ,mBAAmB,GAAGP,IAAA,IAAA;EAAA,IAAC;IAAEC,QAAQ;AAAEC,IAAAA,cAAAA;AAAe,GAAC,GAAAF,IAAA,CAAA;AAAA,EAAA,OAC9DQ,mBAAQ,CAAC,CAACC,gBAAU,CAACC,cAAc,EAAET,QAAQ,CAAC,EAAE,MAC9CK,eAAe,CAACP,IAAI,CAAC;IAAEE,QAAQ;AAAEC,IAAAA,cAAAA;AAAe,GAAC,CACnD,CAAC,CAAA;AAAA;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var utils = require('@bigbinary/neeto-commons-frontend/utils');
|
|
6
|
+
var constants = require('./constants.js');
|
|
7
|
+
require('@bigbinary/neeto-commons-frontend/initializers');
|
|
8
|
+
|
|
9
|
+
const getNeetoAuthRoute = topLevelDomain => `https://app.neetoauth.${topLevelDomain}/signups/new`;
|
|
10
|
+
const getRedirectUri = appName => `${appName.toLowerCase()}.${constants.TLD}`;
|
|
11
|
+
const buildSignUpUrl = appName => utils.buildUrl(getNeetoAuthRoute(constants.TLD), {
|
|
12
|
+
redirectUri: getRedirectUri(appName)
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
exports.buildSignUpUrl = buildSignUpUrl;
|
|
16
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../app/javascript/src/components/utils.js"],"sourcesContent":["import { buildUrl } from \"neetocommons/utils\";\n\nimport { TLD } from \"./constants\";\n\nconst getNeetoAuthRoute = topLevelDomain =>\n `https://app.neetoauth.${topLevelDomain}/signups/new`;\n\nconst getRedirectUri = appName => `${appName.toLowerCase()}.${TLD}`;\n\nexport const buildSignUpUrl = appName =>\n buildUrl(getNeetoAuthRoute(TLD), { redirectUri: getRedirectUri(appName) });\n"],"names":["getNeetoAuthRoute","topLevelDomain","getRedirectUri","appName","toLowerCase","TLD","buildSignUpUrl","buildUrl","redirectUri"],"mappings":";;;;;;;;AAIA,MAAMA,iBAAiB,GAAGC,cAAc,IACrC,CAAA,sBAAA,EAAwBA,cAAe,CAAa,YAAA,CAAA,CAAA;AAEvD,MAAMC,cAAc,GAAGC,OAAO,IAAK,CAAEA,EAAAA,OAAO,CAACC,WAAW,EAAG,CAAGC,CAAAA,EAAAA,aAAI,CAAC,CAAA,CAAA;AAE5D,MAAMC,cAAc,GAAGH,OAAO,IACnCI,cAAQ,CAACP,iBAAiB,CAACK,aAAG,CAAC,EAAE;EAAEG,WAAW,EAAEN,cAAc,CAACC,OAAO,CAAA;AAAE,CAAC;;;;"}
|
package/dist/commons.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export { B as BrandingInfo } from './BrandingInfo-da0b773a.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { motion } from 'framer-motion';
|
|
4
|
+
import 'react-i18next';
|
|
5
|
+
import './utils.js';
|
|
6
|
+
import '@bigbinary/neeto-commons-frontend/utils';
|
|
7
|
+
import './constants.js';
|
|
8
|
+
import '@bigbinary/neeto-commons-frontend/initializers';
|
|
9
|
+
|
|
10
|
+
const ProgressBar = _ref => {
|
|
11
|
+
let {
|
|
12
|
+
progressPercentage,
|
|
13
|
+
progressValue
|
|
14
|
+
} = _ref;
|
|
15
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
16
|
+
className: "neeto-ui-bg-gray-200 neeto-ui-rounded-full w-full overflow-hidden"
|
|
17
|
+
}, /*#__PURE__*/React__default.createElement(motion.div, {
|
|
18
|
+
animate: {
|
|
19
|
+
width: `${progressPercentage}%`
|
|
20
|
+
},
|
|
21
|
+
className: "neeto-ui-bg-primary-600 neeto-ui-text-primary-100 text-2xs neeto-ui-rounded-full flex h-3 animate-pulse items-center justify-center font-medium leading-none",
|
|
22
|
+
initial: {
|
|
23
|
+
width: 0
|
|
24
|
+
},
|
|
25
|
+
transition: {
|
|
26
|
+
duration: 0.5,
|
|
27
|
+
ease: "easeInOut"
|
|
28
|
+
}
|
|
29
|
+
}, progressValue));
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export { ProgressBar };
|
|
33
|
+
//# sourceMappingURL=commons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commons.js","sources":["../app/javascript/src/components/commons/ProgressBar.jsx"],"sourcesContent":["import React from \"react\";\n\nimport { motion } from \"framer-motion\";\n\nconst ProgressBar = ({ progressPercentage, progressValue }) => (\n <div className=\"neeto-ui-bg-gray-200 neeto-ui-rounded-full w-full overflow-hidden\">\n <motion.div\n animate={{ width: `${progressPercentage}%` }}\n className=\"neeto-ui-bg-primary-600 neeto-ui-text-primary-100 text-2xs neeto-ui-rounded-full flex h-3 animate-pulse items-center justify-center font-medium leading-none\"\n initial={{ width: 0 }}\n transition={{ duration: 0.5, ease: \"easeInOut\" }}\n >\n {progressValue}\n </motion.div>\n </div>\n);\n\nexport default ProgressBar;\n"],"names":["ProgressBar","_ref","progressPercentage","progressValue","React","createElement","className","motion","div","animate","width","initial","transition","duration","ease"],"mappings":";;;;;;;;;AAIMA,MAAAA,WAAW,GAAGC,IAAA,IAAA;EAAA,IAAC;IAAEC,kBAAkB;AAAEC,IAAAA,aAAAA;AAAc,GAAC,GAAAF,IAAA,CAAA;EAAA,oBACxDG,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,mEAAA;AAAmE,GAAA,eAChFF,cAAA,CAAAC,aAAA,CAACE,MAAM,CAACC,GAAG,EAAA;AACTC,IAAAA,OAAO,EAAE;MAAEC,KAAK,EAAG,GAAER,kBAAmB,CAAA,CAAA,CAAA;KAAK;AAC7CI,IAAAA,SAAS,EAAC,8JAA8J;AACxKK,IAAAA,OAAO,EAAE;AAAED,MAAAA,KAAK,EAAE,CAAA;KAAI;AACtBE,IAAAA,UAAU,EAAE;AAAEC,MAAAA,QAAQ,EAAE,GAAG;AAAEC,MAAAA,IAAI,EAAE,WAAA;AAAY,KAAA;GAE9CX,EAAAA,aACS,CACT,CAAC,CAAA;AAAA;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { globalProps } from '@bigbinary/neeto-commons-frontend/initializers';
|
|
2
|
+
|
|
3
|
+
const ENVIRONMENTS = {
|
|
4
|
+
development: "development",
|
|
5
|
+
staging: "staging",
|
|
6
|
+
production: "production",
|
|
7
|
+
heroku: "heroku"
|
|
8
|
+
};
|
|
9
|
+
const IS_PRODUCTION_ENV = globalProps.railsEnv === ENVIRONMENTS.production;
|
|
10
|
+
const TLD = IS_PRODUCTION_ENV ? "com" : "net";
|
|
11
|
+
|
|
12
|
+
export { ENVIRONMENTS, IS_PRODUCTION_ENV, TLD };
|
|
13
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../app/javascript/src/components/constants.js"],"sourcesContent":["import { globalProps } from \"neetocommons/initializers\";\n\nexport const ENVIRONMENTS = {\n development: \"development\",\n staging: \"staging\",\n production: \"production\",\n heroku: \"heroku\",\n};\n\nexport const IS_PRODUCTION_ENV =\n globalProps.railsEnv === ENVIRONMENTS.production;\n\nexport const TLD = IS_PRODUCTION_ENV ? \"com\" : \"net\";\n"],"names":["ENVIRONMENTS","development","staging","production","heroku","IS_PRODUCTION_ENV","globalProps","railsEnv","TLD"],"mappings":";;AAEO,MAAMA,YAAY,GAAG;AAC1BC,EAAAA,WAAW,EAAE,aAAa;AAC1BC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,UAAU,EAAE,YAAY;AACxBC,EAAAA,MAAM,EAAE,QAAA;AACV,EAAC;AAEM,MAAMC,iBAAiB,GAC5BC,WAAW,CAACC,QAAQ,KAAKP,YAAY,CAACG,WAAU;MAErCK,GAAG,GAAGH,iBAAiB,GAAG,KAAK,GAAG;;;;"}
|