@bigbinary/neeto-thank-you-frontend 2.0.4 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/javascript/src/translations/en.json +1 -0
- package/dist/BrandingInfo-cb3c7c87.js +26 -0
- package/dist/BrandingInfo-cb3c7c87.js.map +1 -0
- package/dist/ConfigureThankYou.js +453 -375
- package/dist/ConfigureThankYou.js.map +1 -1
- package/dist/ShowThankYou.js +80 -69
- package/dist/ShowThankYou.js.map +1 -1
- package/dist/SocialShare-4ece80cd.js +44 -0
- package/dist/SocialShare-4ece80cd.js.map +1 -0
- package/dist/cjs/BrandingInfo-2f9123ba.js +28 -0
- package/dist/cjs/BrandingInfo-2f9123ba.js.map +1 -0
- package/dist/cjs/ConfigureThankYou.js +453 -376
- package/dist/cjs/ConfigureThankYou.js.map +1 -1
- package/dist/cjs/ShowThankYou.js +80 -70
- package/dist/cjs/ShowThankYou.js.map +1 -1
- package/dist/cjs/SocialShare-5ebb5ae3.js +48 -0
- package/dist/cjs/SocialShare-5ebb5ae3.js.map +1 -0
- package/dist/cjs/commons.js +24 -27
- package/dist/cjs/commons.js.map +1 -1
- package/dist/cjs/constants.js +3 -3
- package/dist/cjs/constants.js.map +1 -1
- package/dist/cjs/index.js +8 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/{query-95d5312e.js → query-63e48fba.js} +3 -3
- package/dist/cjs/{query-95d5312e.js.map → query-63e48fba.js.map} +1 -1
- package/dist/cjs/useShowThankYouConfiguration.js +2 -2
- package/dist/cjs/useShowThankYouPage.js +2 -2
- package/dist/cjs/useThankYouConfigurationApi-27b0ace0.js +101 -0
- package/dist/cjs/useThankYouConfigurationApi-27b0ace0.js.map +1 -0
- package/dist/cjs/useThankYouPageApi-8d0e4fbc.js +41 -0
- package/dist/cjs/useThankYouPageApi-8d0e4fbc.js.map +1 -0
- package/dist/cjs/utils.js +11 -5
- package/dist/cjs/utils.js.map +1 -1
- package/dist/commons.js +24 -23
- package/dist/commons.js.map +1 -1
- package/dist/constants.js +3 -3
- package/dist/constants.js.map +1 -1
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/dist/{query-ab526f47.js → query-3e439d01.js} +3 -3
- package/dist/{query-ab526f47.js.map → query-3e439d01.js.map} +1 -1
- package/dist/useShowThankYouConfiguration.js +3 -3
- package/dist/useShowThankYouPage.js +3 -3
- package/dist/useThankYouConfigurationApi-5b45610e.js +93 -0
- package/dist/useThankYouConfigurationApi-5b45610e.js.map +1 -0
- package/dist/useThankYouPageApi-660012d0.js +35 -0
- package/dist/useThankYouPageApi-660012d0.js.map +1 -0
- package/dist/utils.js +11 -5
- package/dist/utils.js.map +1 -1
- package/package.json +11 -11
- package/dist/BrandingInfo-da0b773a.js +0 -32
- package/dist/BrandingInfo-da0b773a.js.map +0 -1
- package/dist/SocialShare-e7e5efc6.js +0 -45
- package/dist/SocialShare-e7e5efc6.js.map +0 -1
- package/dist/cjs/BrandingInfo-cdb9a379.js +0 -38
- package/dist/cjs/BrandingInfo-cdb9a379.js.map +0 -1
- package/dist/cjs/SocialShare-4607aba6.js +0 -53
- package/dist/cjs/SocialShare-4607aba6.js.map +0 -1
- package/dist/cjs/useThankYouConfigurationApi-302df56a.js +0 -58
- package/dist/cjs/useThankYouConfigurationApi-302df56a.js.map +0 -1
- package/dist/cjs/useThankYouPageApi-b6b47745.js +0 -43
- package/dist/cjs/useThankYouPageApi-b6b47745.js.map +0 -1
- package/dist/useThankYouConfigurationApi-ed20746a.js +0 -51
- package/dist/useThankYouConfigurationApi-ed20746a.js.map +0 -1
- package/dist/useThankYouPageApi-1ac56883.js +0 -37
- package/dist/useThankYouPageApi-1ac56883.js.map +0 -1
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { useQuery } from '@tanstack/react-query';
|
|
2
|
+
import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
3
|
+
import axios from 'axios';
|
|
4
|
+
import { T as THANK_YOU_ENGINE_BASE_URL, Q as QUERY_KEYS } from './query-3e439d01.js';
|
|
5
|
+
|
|
6
|
+
function _typeof(o) {
|
|
7
|
+
"@babel/helpers - typeof";
|
|
8
|
+
|
|
9
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
10
|
+
return typeof o;
|
|
11
|
+
} : function (o) {
|
|
12
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
13
|
+
}, _typeof(o);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function _toPrimitive(input, hint) {
|
|
17
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
18
|
+
var prim = input[Symbol.toPrimitive];
|
|
19
|
+
if (prim !== undefined) {
|
|
20
|
+
var res = prim.call(input, hint || "default");
|
|
21
|
+
if (_typeof(res) !== "object") return res;
|
|
22
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
23
|
+
}
|
|
24
|
+
return (hint === "string" ? String : Number)(input);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function _toPropertyKey(arg) {
|
|
28
|
+
var key = _toPrimitive(arg, "string");
|
|
29
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function _defineProperty(obj, key, value) {
|
|
33
|
+
key = _toPropertyKey(key);
|
|
34
|
+
if (key in obj) {
|
|
35
|
+
Object.defineProperty(obj, key, {
|
|
36
|
+
value: value,
|
|
37
|
+
enumerable: true,
|
|
38
|
+
configurable: true,
|
|
39
|
+
writable: true
|
|
40
|
+
});
|
|
41
|
+
} else {
|
|
42
|
+
obj[key] = value;
|
|
43
|
+
}
|
|
44
|
+
return obj;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
var baseUrl = "".concat(THANK_YOU_ENGINE_BASE_URL, "/thank_you_configuration");
|
|
48
|
+
var show = function show(entityId) {
|
|
49
|
+
return axios.get(baseUrl, {
|
|
50
|
+
params: {
|
|
51
|
+
entityId: entityId
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
var update = function update(_ref) {
|
|
56
|
+
var entityId = _ref.entityId,
|
|
57
|
+
payload = _ref.payload;
|
|
58
|
+
return axios.put(baseUrl, {
|
|
59
|
+
entityId: entityId,
|
|
60
|
+
thankYouConfiguration: payload
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
var thankYouConfigurationApi = {
|
|
64
|
+
show: show,
|
|
65
|
+
update: update
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
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; }
|
|
69
|
+
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; }
|
|
70
|
+
var useShowThankYouConfiguration = function useShowThankYouConfiguration(_ref) {
|
|
71
|
+
var entityId = _ref.entityId;
|
|
72
|
+
return useQuery({
|
|
73
|
+
queryKey: [QUERY_KEYS.THANK_YOU_CONFIGURATION, entityId],
|
|
74
|
+
queryFn: function queryFn() {
|
|
75
|
+
return thankYouConfigurationApi.show(entityId);
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
var useUpdateThankYouConfiguration = function useUpdateThankYouConfiguration(options) {
|
|
80
|
+
return useMutationWithInvalidation(function (_ref2) {
|
|
81
|
+
var entityId = _ref2.entityId,
|
|
82
|
+
payload = _ref2.payload;
|
|
83
|
+
return thankYouConfigurationApi.update({
|
|
84
|
+
entityId: entityId,
|
|
85
|
+
payload: payload
|
|
86
|
+
});
|
|
87
|
+
}, _objectSpread({
|
|
88
|
+
keysToInvalidate: [[QUERY_KEYS.THANK_YOU_CONFIGURATION]]
|
|
89
|
+
}, options));
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export { _defineProperty as _, useUpdateThankYouConfiguration as a, useShowThankYouConfiguration as u };
|
|
93
|
+
//# sourceMappingURL=useThankYouConfigurationApi-5b45610e.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useThankYouConfigurationApi-5b45610e.js","sources":["../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../app/javascript/src/apis/thank_you_configuration.js","../app/javascript/src/hooks/reactQuery/useThankYouConfigurationApi.js"],"sourcesContent":["export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","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 { useQuery } from \"@tanstack/react-query\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport thankYouConfigurationApi from \"apis/thank_you_configuration\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useShowThankYouConfiguration = ({ entityId }) =>\n useQuery({\n queryKey: [QUERY_KEYS.THANK_YOU_CONFIGURATION, entityId],\n queryFn: () => 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 ...options,\n }\n );\n"],"names":["toPrimitive","toPropertyKey","baseUrl","concat","THANK_YOU_ENGINE_BASE_URL","show","entityId","axios","get","params","update","_ref","payload","put","thankYouConfiguration","thankYouConfigurationApi","useShowThankYouConfiguration","useQuery","queryKey","QUERY_KEYS","THANK_YOU_CONFIGURATION","queryFn","useUpdateThankYouConfiguration","options","useMutationWithInvalidation","_ref2","_objectSpread","keysToInvalidate"],"mappings":";;;;;AAAe,SAAS,OAAO,CAAC,CAAC,EAAE;AACnC,EAAE,yBAAyB,CAAC;AAC5B;AACA,EAAE,OAAO,OAAO,GAAG,UAAU,IAAI,OAAO,MAAM,IAAI,QAAQ,IAAI,OAAO,MA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AAA,EAAA,IAAML,QAAQ,GAAAK,IAAA,CAARL,QAAQ,CAAA;AAAA,EAAA,OACrDW,QAAQ,CAAC;AACPC,IAAAA,QAAQ,EAAE,CAACC,UAAU,CAACC,uBAAuB,EAAEd,QAAQ,CAAC;IACxDe,OAAO,EAAE,SAAAA,OAAA,GAAA;AAAA,MAAA,OAAMN,wBAAwB,CAACV,IAAI,CAACC,QAAQ,CAAC,CAAA;AAAA,KAAA;AACxD,GAAC,CAAC,CAAA;AAAA,EAAA;IAESgB,8BAA8B,GAAG,SAAjCA,8BAA8BA,CAAGC,OAAO,EAAA;EAAA,OACnDC,2BAA2B,CACzB,UAAAC,KAAA,EAAA;AAAA,IAAA,IAAGnB,QAAQ,GAAAmB,KAAA,CAARnB,QAAQ;MAAEM,OAAO,GAAAa,KAAA,CAAPb,OAAO,CAAA;IAAA,OAClBG,wBAAwB,CAACL,MAAM,CAAC;AAAEJ,MAAAA,QAAQ,EAARA,QAAQ;AAAEM,MAAAA,OAAO,EAAPA,OAAAA;AAAQ,KAAC,CAAC,CAAA;AAAA,GAAA,EAAAc,aAAA,CAAA;AAEtDC,IAAAA,gBAAgB,EAAE,CAAC,CAACR,UAAU,CAACC,uBAAuB,CAAC,CAAA;GACpDG,EAAAA,OAAO,CAEd,CAAC,CAAA;AAAA;;;;"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { useQuery } from '@tanstack/react-query';
|
|
2
|
+
import axios from 'axios';
|
|
3
|
+
import { T as THANK_YOU_ENGINE_BASE_URL, Q as QUERY_KEYS } from './query-3e439d01.js';
|
|
4
|
+
|
|
5
|
+
var baseUrl = "".concat(THANK_YOU_ENGINE_BASE_URL, "/thank_you_page");
|
|
6
|
+
var show = function show(_ref) {
|
|
7
|
+
var entityId = _ref.entityId,
|
|
8
|
+
isTemplateView = _ref.isTemplateView;
|
|
9
|
+
return axios.get(baseUrl, {
|
|
10
|
+
params: {
|
|
11
|
+
entityId: entityId,
|
|
12
|
+
isTemplateView: isTemplateView
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
var thankYouPageApi = {
|
|
17
|
+
show: show
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
var useShowThankYouPage = function useShowThankYouPage(_ref) {
|
|
21
|
+
var entityId = _ref.entityId,
|
|
22
|
+
isTemplateView = _ref.isTemplateView;
|
|
23
|
+
return useQuery({
|
|
24
|
+
queryKey: [QUERY_KEYS.THANK_YOU_PAGE, entityId],
|
|
25
|
+
queryFn: function queryFn() {
|
|
26
|
+
return thankYouPageApi.show({
|
|
27
|
+
entityId: entityId,
|
|
28
|
+
isTemplateView: isTemplateView
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export { useShowThankYouPage as u };
|
|
35
|
+
//# sourceMappingURL=useThankYouPageApi-660012d0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useThankYouPageApi-660012d0.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 \"@tanstack/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({\n queryKey: [QUERY_KEYS.THANK_YOU_PAGE, entityId],\n queryFn: () => thankYouPageApi.show({ entityId, isTemplateView }),\n });\n"],"names":["baseUrl","concat","THANK_YOU_ENGINE_BASE_URL","show","_ref","entityId","isTemplateView","axios","get","params","thankYouPageApi","useShowThankYouPage","useQuery","queryKey","QUERY_KEYS","THANK_YOU_PAGE","queryFn"],"mappings":";;;;AAIA,IAAMA,OAAO,GAAA,EAAA,CAAAC,MAAA,CAAMC,yBAAyB,EAAiB,iBAAA,CAAA,CAAA;AAE7D,IAAMC,IAAI,GAAG,SAAPA,IAAIA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,cAAc,GAAAF,IAAA,CAAdE,cAAc,CAAA;AAAA,EAAA,OACtCC,KAAK,CAACC,GAAG,CAACR,OAAO,EAAE;AAAES,IAAAA,MAAM,EAAE;AAAEJ,MAAAA,QAAQ,EAARA,QAAQ;AAAEC,MAAAA,cAAc,EAAdA,cAAAA;AAAe,KAAA;AAAE,GAAC,CAAC,CAAA;AAAA,CAAA,CAAA;AAE9D,IAAMI,eAAe,GAAG;AAAEP,EAAAA,IAAI,EAAJA,IAAAA;AAAK,CAAC;;ICJnBQ,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAAP,IAAA,EAAA;AAAA,EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,cAAc,GAAAF,IAAA,CAAdE,cAAc,CAAA;AAAA,EAAA,OAC5DM,QAAQ,CAAC;AACPC,IAAAA,QAAQ,EAAE,CAACC,UAAU,CAACC,cAAc,EAAEV,QAAQ,CAAC;IAC/CW,OAAO,EAAE,SAAAA,OAAA,GAAA;MAAA,OAAMN,eAAe,CAACP,IAAI,CAAC;AAAEE,QAAAA,QAAQ,EAARA,QAAQ;AAAEC,QAAAA,cAAc,EAAdA,cAAAA;AAAe,OAAC,CAAC,CAAA;AAAA,KAAA;AACnE,GAAC,CAAC,CAAA;AAAA;;;;"}
|
package/dist/utils.js
CHANGED
|
@@ -2,11 +2,17 @@ import { buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
|
|
|
2
2
|
import { TLD } from './constants.js';
|
|
3
3
|
import '@bigbinary/neeto-commons-frontend/initializers';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
var getNeetoAuthRoute = function getNeetoAuthRoute(topLevelDomain) {
|
|
6
|
+
return "https://app.neetoauth.".concat(topLevelDomain, "/signups/new");
|
|
7
|
+
};
|
|
8
|
+
var getRedirectUri = function getRedirectUri(appName) {
|
|
9
|
+
return "".concat(appName.toLowerCase(), ".").concat(TLD);
|
|
10
|
+
};
|
|
11
|
+
var buildSignUpUrl = function buildSignUpUrl(appName) {
|
|
12
|
+
return buildUrl(getNeetoAuthRoute(TLD), {
|
|
13
|
+
redirectUri: getRedirectUri(appName)
|
|
14
|
+
});
|
|
15
|
+
};
|
|
10
16
|
|
|
11
17
|
export { buildSignUpUrl };
|
|
12
18
|
//# sourceMappingURL=utils.js.map
|
package/dist/utils.js.map
CHANGED
|
@@ -1 +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,
|
|
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","concat","getRedirectUri","appName","toLowerCase","TLD","buildSignUpUrl","buildUrl","redirectUri"],"mappings":";;;;AAIA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAGC,cAAc,EAAA;EAAA,OAAAC,wBAAAA,CAAAA,MAAA,CACbD,cAAc,EAAA,cAAA,CAAA,CAAA;AAAA,CAAc,CAAA;AAEvD,IAAME,cAAc,GAAG,SAAjBA,cAAcA,CAAGC,OAAO,EAAA;EAAA,OAAAF,EAAAA,CAAAA,MAAA,CAAOE,OAAO,CAACC,WAAW,EAAE,EAAA,GAAA,CAAA,CAAAH,MAAA,CAAII,GAAG,CAAA,CAAA;AAAA,CAAE,CAAA;IAEtDC,cAAc,GAAG,SAAjBA,cAAcA,CAAGH,OAAO,EAAA;AAAA,EAAA,OACnCI,QAAQ,CAACR,iBAAiB,CAACM,GAAG,CAAC,EAAE;IAAEG,WAAW,EAAEN,cAAc,CAACC,OAAO,CAAA;AAAE,GAAC,CAAC,CAAA;AAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-thank-you-frontend",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "A repo acts as the source of truth for the new nano's structure, configs, data etc.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://github.com/bigbinary/neeto-thank-you-nano",
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
"@bigbinary/eslint-plugin-neeto": "1.5.2",
|
|
61
61
|
"@bigbinary/neeto-audit-frontend": "2.0.12",
|
|
62
62
|
"@bigbinary/neeto-cist": "1.0.11",
|
|
63
|
-
"@bigbinary/neeto-commons-frontend": "4.
|
|
63
|
+
"@bigbinary/neeto-commons-frontend": "4.3.7",
|
|
64
64
|
"@bigbinary/neeto-editor": "^1.28.6",
|
|
65
|
-
"@bigbinary/neeto-filters-frontend": "4.0
|
|
66
|
-
"@bigbinary/neeto-icons": "1.
|
|
65
|
+
"@bigbinary/neeto-filters-frontend": "4.2.0",
|
|
66
|
+
"@bigbinary/neeto-icons": "1.20.0",
|
|
67
67
|
"@bigbinary/neeto-image-uploader-frontend": "1.4.16",
|
|
68
|
-
"@bigbinary/neeto-molecules": "3.
|
|
69
|
-
"@bigbinary/neetoui": "8.
|
|
68
|
+
"@bigbinary/neeto-molecules": "3.3.11",
|
|
69
|
+
"@bigbinary/neetoui": "8.2.2",
|
|
70
70
|
"@emotion/is-prop-valid": "1.2.0",
|
|
71
71
|
"@faker-js/faker": "8.2.0",
|
|
72
72
|
"@honeybadger-io/js": "6.5.3",
|
|
@@ -166,13 +166,13 @@
|
|
|
166
166
|
},
|
|
167
167
|
"peerDependencies": {
|
|
168
168
|
"@bigbinary/neeto-cist": "latest",
|
|
169
|
-
"@bigbinary/neeto-commons-frontend": "4.
|
|
169
|
+
"@bigbinary/neeto-commons-frontend": "4.3.7",
|
|
170
170
|
"@bigbinary/neeto-editor": "^1.28.6",
|
|
171
|
-
"@bigbinary/neeto-filters-frontend": "4.0
|
|
172
|
-
"@bigbinary/neeto-icons": "1.
|
|
171
|
+
"@bigbinary/neeto-filters-frontend": "4.2.0",
|
|
172
|
+
"@bigbinary/neeto-icons": "1.20.0",
|
|
173
173
|
"@bigbinary/neeto-image-uploader-frontend": "^1.4.14",
|
|
174
|
-
"@bigbinary/neeto-molecules": "3.
|
|
175
|
-
"@bigbinary/neetoui": "8.
|
|
174
|
+
"@bigbinary/neeto-molecules": "3.3.11",
|
|
175
|
+
"@bigbinary/neetoui": "8.2.2",
|
|
176
176
|
"@honeybadger-io/js": "^6.5.3",
|
|
177
177
|
"@honeybadger-io/react": "^6.1.9",
|
|
178
178
|
"@tanstack/react-query": "5.40.0",
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import { Trans } from 'react-i18next';
|
|
3
|
-
import { buildSignUpUrl } from './utils.js';
|
|
4
|
-
|
|
5
|
-
const BrandingInfo = _ref => {
|
|
6
|
-
let {
|
|
7
|
-
brandingInfo,
|
|
8
|
-
appName
|
|
9
|
-
} = _ref;
|
|
10
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
11
|
-
className: "neeto-thank-you-configuration__branding-wrap"
|
|
12
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
13
|
-
className: "neeto-thank-you-configuration__nav"
|
|
14
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
15
|
-
className: "neeto-thank-you-configuration__nav-footer"
|
|
16
|
-
}, /*#__PURE__*/React__default.createElement(Trans, {
|
|
17
|
-
i18nKey: brandingInfo.displayText,
|
|
18
|
-
components: {
|
|
19
|
-
signUpLink: /*#__PURE__*/React__default.createElement("a", {
|
|
20
|
-
className: "neeto-thank-you-configuration__link",
|
|
21
|
-
href: buildSignUpUrl(appName),
|
|
22
|
-
rel: "noreferrer",
|
|
23
|
-
target: "_blank"
|
|
24
|
-
}),
|
|
25
|
-
span: /*#__PURE__*/React__default.createElement("span", null),
|
|
26
|
-
...(brandingInfo.additionalComponents ?? {})
|
|
27
|
-
}
|
|
28
|
-
}))));
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export { BrandingInfo as B };
|
|
32
|
-
//# sourceMappingURL=BrandingInfo-da0b773a.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BrandingInfo-da0b773a.js","sources":["../app/javascript/src/components/commons/BrandingInfo.jsx"],"sourcesContent":["import React from \"react\";\n\nimport { Trans } from \"react-i18next\";\n\nimport { buildSignUpUrl } from \"components/utils\";\n\nconst BrandingInfo = ({ brandingInfo, appName }) => (\n <div className=\"neeto-thank-you-configuration__branding-wrap\">\n <div className=\"neeto-thank-you-configuration__nav\">\n <div className=\"neeto-thank-you-configuration__nav-footer\">\n <Trans\n i18nKey={brandingInfo.displayText}\n components={{\n signUpLink: (\n <a\n className=\"neeto-thank-you-configuration__link\"\n href={buildSignUpUrl(appName)}\n rel=\"noreferrer\"\n target=\"_blank\"\n />\n ),\n span: <span />,\n ...(brandingInfo.additionalComponents ?? {}),\n }}\n />\n </div>\n </div>\n </div>\n);\n\nexport default BrandingInfo;\n"],"names":["BrandingInfo","_ref","brandingInfo","appName","React","createElement","className","Trans","i18nKey","displayText","components","signUpLink","href","buildSignUpUrl","rel","target","span","additionalComponents"],"mappings":";;;;AAMMA,MAAAA,YAAY,GAAGC,IAAA,IAAA;EAAA,IAAC;IAAEC,YAAY;AAAEC,IAAAA,OAAAA;AAAQ,GAAC,GAAAF,IAAA,CAAA;EAAA,oBAC7CG,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,8CAAA;GACbF,eAAAA,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,oCAAA;GACbF,eAAAA,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,2CAAA;AAA2C,GAAA,eACxDF,cAAA,CAAAC,aAAA,CAACE,KAAK,EAAA;IACJC,OAAO,EAAEN,YAAY,CAACO,WAAY;AAClCC,IAAAA,UAAU,EAAE;MACVC,UAAU,eACRP,cAAA,CAAAC,aAAA,CAAA,GAAA,EAAA;AACEC,QAAAA,SAAS,EAAC,qCAAqC;AAC/CM,QAAAA,IAAI,EAAEC,cAAc,CAACV,OAAO,CAAE;AAC9BW,QAAAA,GAAG,EAAC,YAAY;AAChBC,QAAAA,MAAM,EAAC,QAAA;AAAQ,OAChB,CACF;AACDC,MAAAA,IAAI,eAAEZ,cAAA,CAAAC,aAAA,aAAO,CAAC;AACd,MAAA,IAAIH,YAAY,CAACe,oBAAoB,IAAI,EAAE,CAAA;AAC7C,KAAA;GACD,CACE,CACF,CACF,CAAC,CAAA;AAAA;;;;"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import { useTranslation } from 'react-i18next';
|
|
3
|
-
|
|
4
|
-
const THANK_YOU_TEXT_ALIGNMENTS = {
|
|
5
|
-
left: "left",
|
|
6
|
-
center: "center"
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
10
|
-
|
|
11
|
-
var css = ".neeto-thank-you-configuration{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 a[href]{color:#2d36d4}.neeto-thank-you-configuration__description .neeto-editor-content h1,.neeto-thank-you-configuration__description .neeto-editor-content h2,.neeto-thank-you-configuration__description .neeto-editor-content h3{font-weight:500;line-height:1.325;margin-bottom: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__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:100%}.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%}";
|
|
12
|
-
n(css,{});
|
|
13
|
-
|
|
14
|
-
const SocialShare = _ref => {
|
|
15
|
-
let {
|
|
16
|
-
socialHandles,
|
|
17
|
-
publicLinkId
|
|
18
|
-
} = _ref;
|
|
19
|
-
const {
|
|
20
|
-
t
|
|
21
|
-
} = useTranslation();
|
|
22
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
23
|
-
className: "neeto-thank-you-configuration__social-share"
|
|
24
|
-
}, /*#__PURE__*/React__default.createElement("h3", {
|
|
25
|
-
className: "neeto-thank-you-configuration__social-share-title"
|
|
26
|
-
}, t("neetoThankYou.thankYou.socialShareHeading")), /*#__PURE__*/React__default.createElement("div", {
|
|
27
|
-
className: "neeto-thank-you-configuration-social-follow"
|
|
28
|
-
}, socialHandles?.map((data, idx) => {
|
|
29
|
-
const {
|
|
30
|
-
icon: Icon,
|
|
31
|
-
generateShareUrl
|
|
32
|
-
} = data;
|
|
33
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
34
|
-
className: "neeto-thank-you-configuration-social-follow__item",
|
|
35
|
-
key: idx
|
|
36
|
-
}, /*#__PURE__*/React__default.createElement("a", {
|
|
37
|
-
href: generateShareUrl(publicLinkId),
|
|
38
|
-
rel: "noreferrer",
|
|
39
|
-
target: "_blank"
|
|
40
|
-
}, /*#__PURE__*/React__default.createElement(Icon, null)));
|
|
41
|
-
})));
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export { SocialShare as S, THANK_YOU_TEXT_ALIGNMENTS as T, n };
|
|
45
|
-
//# sourceMappingURL=SocialShare-e7e5efc6.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SocialShare-e7e5efc6.js","sources":["../app/javascript/src/components/commons/constants.js","../node_modules/rollup-plugin-styles/dist/runtime/inject-css.js","../app/javascript/src/components/ConfigureThankYou/Customize/SocialShare.jsx"],"sourcesContent":["export const THANK_YOU_TEXT_ALIGNMENTS = {\n left: \"left\",\n center: \"center\",\n};\n","var e=[],t=[];function n(n,r){if(n&&\"undefined\"!=typeof document){var a,s=!0===r.prepend?\"prepend\":\"append\",d=!0===r.singleTag,i=\"string\"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName(\"head\")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c()}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n))}function c(){var e=document.createElement(\"style\");if(e.setAttribute(\"type\",\"text/css\"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a=\"prepend\"===s?\"afterbegin\":\"beforeend\";return i.insertAdjacentElement(a,e),e}}export{n as default};\n","import 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":["THANK_YOU_TEXT_ALIGNMENTS","left","center","SocialShare","_ref","socialHandles","publicLinkId","t","useTranslation","React","createElement","className","map","data","idx","icon","Icon","generateShareUrl","key","href","rel","target"],"mappings":";;;AAAO,MAAMA,yBAAyB,GAAG;AACvCC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,MAAM,EAAE,QAAA;AACV;;ACHA,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,WAAW,EAAE,OAAO,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,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IC,IAAAA,SAAS,EAAC,mDAAA;GACXJ,EAAAA,CAAC,CAAC,2CAA2C,CAC5C,CAAC,eACLE,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,6CAAA;GACZN,EAAAA,aAAa,EAAEO,GAAG,CAAC,CAACC,IAAI,EAAEC,GAAG,KAAK;IACjC,MAAM;AAAEC,MAAAA,IAAI,EAAEC,IAAI;AAAEC,MAAAA,gBAAAA;AAAiB,KAAC,GAAGJ,IAAI,CAAA;IAE7C,oBACEJ,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACEC,MAAAA,SAAS,EAAC,mDAAmD;AAC7DO,MAAAA,GAAG,EAAEJ,GAAAA;KAELL,eAAAA,cAAA,CAAAC,aAAA,CAAA,GAAA,EAAA;AACES,MAAAA,IAAI,EAAEF,gBAAgB,CAACX,YAAY,CAAE;AACrCc,MAAAA,GAAG,EAAC,YAAY;AAChBC,MAAAA,MAAM,EAAC,QAAA;KAEPZ,eAAAA,cAAA,CAAAC,aAAA,CAACM,IAAI,EAAE,IAAA,CACN,CACA,CAAC,CAAA;GAET,CACE,CACF,CAAC,CAAA;AAEV;;;;"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var reactI18next = require('react-i18next');
|
|
5
|
-
var utils = require('./utils.js');
|
|
6
|
-
|
|
7
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
-
|
|
9
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
|
-
|
|
11
|
-
const BrandingInfo = _ref => {
|
|
12
|
-
let {
|
|
13
|
-
brandingInfo,
|
|
14
|
-
appName
|
|
15
|
-
} = _ref;
|
|
16
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17
|
-
className: "neeto-thank-you-configuration__branding-wrap"
|
|
18
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19
|
-
className: "neeto-thank-you-configuration__nav"
|
|
20
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
21
|
-
className: "neeto-thank-you-configuration__nav-footer"
|
|
22
|
-
}, /*#__PURE__*/React__default["default"].createElement(reactI18next.Trans, {
|
|
23
|
-
i18nKey: brandingInfo.displayText,
|
|
24
|
-
components: {
|
|
25
|
-
signUpLink: /*#__PURE__*/React__default["default"].createElement("a", {
|
|
26
|
-
className: "neeto-thank-you-configuration__link",
|
|
27
|
-
href: utils.buildSignUpUrl(appName),
|
|
28
|
-
rel: "noreferrer",
|
|
29
|
-
target: "_blank"
|
|
30
|
-
}),
|
|
31
|
-
span: /*#__PURE__*/React__default["default"].createElement("span", null),
|
|
32
|
-
...(brandingInfo.additionalComponents ?? {})
|
|
33
|
-
}
|
|
34
|
-
}))));
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
exports.BrandingInfo = BrandingInfo;
|
|
38
|
-
//# sourceMappingURL=BrandingInfo-cdb9a379.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BrandingInfo-cdb9a379.js","sources":["../../app/javascript/src/components/commons/BrandingInfo.jsx"],"sourcesContent":["import React from \"react\";\n\nimport { Trans } from \"react-i18next\";\n\nimport { buildSignUpUrl } from \"components/utils\";\n\nconst BrandingInfo = ({ brandingInfo, appName }) => (\n <div className=\"neeto-thank-you-configuration__branding-wrap\">\n <div className=\"neeto-thank-you-configuration__nav\">\n <div className=\"neeto-thank-you-configuration__nav-footer\">\n <Trans\n i18nKey={brandingInfo.displayText}\n components={{\n signUpLink: (\n <a\n className=\"neeto-thank-you-configuration__link\"\n href={buildSignUpUrl(appName)}\n rel=\"noreferrer\"\n target=\"_blank\"\n />\n ),\n span: <span />,\n ...(brandingInfo.additionalComponents ?? {}),\n }}\n />\n </div>\n </div>\n </div>\n);\n\nexport default BrandingInfo;\n"],"names":["BrandingInfo","_ref","brandingInfo","appName","React","createElement","className","Trans","i18nKey","displayText","components","signUpLink","href","buildSignUpUrl","rel","target","span","additionalComponents"],"mappings":";;;;;;;;;;AAMMA,MAAAA,YAAY,GAAGC,IAAA,IAAA;EAAA,IAAC;IAAEC,YAAY;AAAEC,IAAAA,OAAAA;AAAQ,GAAC,GAAAF,IAAA,CAAA;EAAA,oBAC7CG,yBAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,8CAAA;GACbF,eAAAA,yBAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,oCAAA;GACbF,eAAAA,yBAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,2CAAA;AAA2C,GAAA,eACxDF,yBAAA,CAAAC,aAAA,CAACE,kBAAK,EAAA;IACJC,OAAO,EAAEN,YAAY,CAACO,WAAY;AAClCC,IAAAA,UAAU,EAAE;MACVC,UAAU,eACRP,yBAAA,CAAAC,aAAA,CAAA,GAAA,EAAA;AACEC,QAAAA,SAAS,EAAC,qCAAqC;AAC/CM,QAAAA,IAAI,EAAEC,oBAAc,CAACV,OAAO,CAAE;AAC9BW,QAAAA,GAAG,EAAC,YAAY;AAChBC,QAAAA,MAAM,EAAC,QAAA;AAAQ,OAChB,CACF;AACDC,MAAAA,IAAI,eAAEZ,yBAAA,CAAAC,aAAA,aAAO,CAAC;AACd,MAAA,IAAIH,YAAY,CAACe,oBAAoB,IAAI,EAAE,CAAA;AAC7C,KAAA;GACD,CACE,CACF,CACF,CAAC,CAAA;AAAA;;;;"}
|
|
@@ -1,53 +0,0 @@
|
|
|
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
|
-
const THANK_YOU_TEXT_ALIGNMENTS = {
|
|
11
|
-
left: "left",
|
|
12
|
-
center: "center"
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
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}}
|
|
16
|
-
|
|
17
|
-
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 a[href]{color:#2d36d4}.neeto-thank-you-configuration__description .neeto-editor-content h1,.neeto-thank-you-configuration__description .neeto-editor-content h2,.neeto-thank-you-configuration__description .neeto-editor-content h3{font-weight:500;line-height:1.325;margin-bottom: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__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:100%}.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%}";
|
|
18
|
-
n(css,{});
|
|
19
|
-
|
|
20
|
-
const SocialShare = _ref => {
|
|
21
|
-
let {
|
|
22
|
-
socialHandles,
|
|
23
|
-
publicLinkId
|
|
24
|
-
} = _ref;
|
|
25
|
-
const {
|
|
26
|
-
t
|
|
27
|
-
} = reactI18next.useTranslation();
|
|
28
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29
|
-
className: "neeto-thank-you-configuration__social-share"
|
|
30
|
-
}, /*#__PURE__*/React__default["default"].createElement("h3", {
|
|
31
|
-
className: "neeto-thank-you-configuration__social-share-title"
|
|
32
|
-
}, t("neetoThankYou.thankYou.socialShareHeading")), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
33
|
-
className: "neeto-thank-you-configuration-social-follow"
|
|
34
|
-
}, socialHandles?.map((data, idx) => {
|
|
35
|
-
const {
|
|
36
|
-
icon: Icon,
|
|
37
|
-
generateShareUrl
|
|
38
|
-
} = data;
|
|
39
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
40
|
-
className: "neeto-thank-you-configuration-social-follow__item",
|
|
41
|
-
key: idx
|
|
42
|
-
}, /*#__PURE__*/React__default["default"].createElement("a", {
|
|
43
|
-
href: generateShareUrl(publicLinkId),
|
|
44
|
-
rel: "noreferrer",
|
|
45
|
-
target: "_blank"
|
|
46
|
-
}, /*#__PURE__*/React__default["default"].createElement(Icon, null)));
|
|
47
|
-
})));
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
exports.SocialShare = SocialShare;
|
|
51
|
-
exports.THANK_YOU_TEXT_ALIGNMENTS = THANK_YOU_TEXT_ALIGNMENTS;
|
|
52
|
-
exports.n = n;
|
|
53
|
-
//# sourceMappingURL=SocialShare-4607aba6.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SocialShare-4607aba6.js","sources":["../../app/javascript/src/components/commons/constants.js","../../node_modules/rollup-plugin-styles/dist/runtime/inject-css.js","../../app/javascript/src/components/ConfigureThankYou/Customize/SocialShare.jsx"],"sourcesContent":["export const THANK_YOU_TEXT_ALIGNMENTS = {\n left: \"left\",\n center: \"center\",\n};\n","var e=[],t=[];function n(n,r){if(n&&\"undefined\"!=typeof document){var a,s=!0===r.prepend?\"prepend\":\"append\",d=!0===r.singleTag,i=\"string\"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName(\"head\")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c()}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n))}function c(){var e=document.createElement(\"style\");if(e.setAttribute(\"type\",\"text/css\"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a=\"prepend\"===s?\"afterbegin\":\"beforeend\";return i.insertAdjacentElement(a,e),e}}export{n as default};\n","import 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":["THANK_YOU_TEXT_ALIGNMENTS","left","center","SocialShare","_ref","socialHandles","publicLinkId","t","useTranslation","React","createElement","className","map","data","idx","icon","Icon","generateShareUrl","key","href","rel","target"],"mappings":";;;;;;;;;AAAO,MAAMA,yBAAyB,GAAG;AACvCC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,MAAM,EAAE,QAAA;AACV;;ACHA,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,WAAW,EAAE,OAAO,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,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A;GACbF,eAAAA,yBAAA,CAAAC,aAAA,CAAA,IAAA,EAAA;AAAIC,IAAAA,SAAS,EAAC,mDAAA;GACXJ,EAAAA,CAAC,CAAC,2CAA2C,CAC5C,CAAC,eACLE,yBAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,6CAAA;GACZN,EAAAA,aAAa,EAAEO,GAAG,CAAC,CAACC,IAAI,EAAEC,GAAG,KAAK;IACjC,MAAM;AAAEC,MAAAA,IAAI,EAAEC,IAAI;AAAEC,MAAAA,gBAAAA;AAAiB,KAAC,GAAGJ,IAAI,CAAA;IAE7C,oBACEJ,yBAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACEC,MAAAA,SAAS,EAAC,mDAAmD;AAC7DO,MAAAA,GAAG,EAAEJ,GAAAA;KAELL,eAAAA,yBAAA,CAAAC,aAAA,CAAA,GAAA,EAAA;AACES,MAAAA,IAAI,EAAEF,gBAAgB,CAACX,YAAY,CAAE;AACrCc,MAAAA,GAAG,EAAC,YAAY;AAChBC,MAAAA,MAAM,EAAC,QAAA;KAEPZ,eAAAA,yBAAA,CAAAC,aAAA,CAACM,IAAI,EAAE,IAAA,CACN,CACA,CAAC,CAAA;GAET,CACE,CACF,CAAC,CAAA;AAEV;;;;;;"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var reactQuery = require('@tanstack/react-query');
|
|
4
|
-
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
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({
|
|
38
|
-
queryKey: [query.QUERY_KEYS.THANK_YOU_CONFIGURATION, entityId],
|
|
39
|
-
queryFn: () => thankYouConfigurationApi.show(entityId)
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
const useUpdateThankYouConfiguration = options => reactUtils.useMutationWithInvalidation(_ref2 => {
|
|
43
|
-
let {
|
|
44
|
-
entityId,
|
|
45
|
-
payload
|
|
46
|
-
} = _ref2;
|
|
47
|
-
return thankYouConfigurationApi.update({
|
|
48
|
-
entityId,
|
|
49
|
-
payload
|
|
50
|
-
});
|
|
51
|
-
}, {
|
|
52
|
-
keysToInvalidate: [[query.QUERY_KEYS.THANK_YOU_CONFIGURATION]],
|
|
53
|
-
...options
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
exports.useShowThankYouConfiguration = useShowThankYouConfiguration;
|
|
57
|
-
exports.useUpdateThankYouConfiguration = useUpdateThankYouConfiguration;
|
|
58
|
-
//# sourceMappingURL=useThankYouConfigurationApi-302df56a.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useThankYouConfigurationApi-302df56a.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 { useQuery } from \"@tanstack/react-query\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport thankYouConfigurationApi from \"apis/thank_you_configuration\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useShowThankYouConfiguration = ({ entityId }) =>\n useQuery({\n queryKey: [QUERY_KEYS.THANK_YOU_CONFIGURATION, entityId],\n queryFn: () => 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 ...options,\n }\n );\n"],"names":["baseUrl","THANK_YOU_ENGINE_BASE_URL","show","entityId","axios","get","params","update","_ref","payload","put","thankYouConfiguration","thankYouConfigurationApi","useShowThankYouConfiguration","useQuery","queryKey","QUERY_KEYS","THANK_YOU_CONFIGURATION","queryFn","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;AACPC,IAAAA,QAAQ,EAAE,CAACC,gBAAU,CAACC,uBAAuB,EAAEd,QAAQ,CAAC;AACxDe,IAAAA,OAAO,EAAEA,MAAMN,wBAAwB,CAACV,IAAI,CAACC,QAAQ,CAAA;AACvD,GAAC,CAAC,CAAA;AAAA,EAAA;MAESgB,8BAA8B,GAAGC,OAAO,IACnDC,sCAA2B,CACzBC,KAAA,IAAA;EAAA,IAAC;IAAEnB,QAAQ;AAAEM,IAAAA,OAAAA;AAAQ,GAAC,GAAAa,KAAA,CAAA;EAAA,OACpBV,wBAAwB,CAACL,MAAM,CAAC;IAAEJ,QAAQ;AAAEM,IAAAA,OAAAA;AAAQ,GAAC,CAAC,CAAA;AAAA,CACxD,EAAA;AACEc,EAAAA,gBAAgB,EAAE,CAAC,CAACP,gBAAU,CAACC,uBAAuB,CAAC,CAAC;EACxD,GAAGG,OAAAA;AACL,CACF;;;;;"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var reactQuery = require('@tanstack/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({
|
|
34
|
-
queryKey: [query.QUERY_KEYS.THANK_YOU_PAGE, entityId],
|
|
35
|
-
queryFn: () => thankYouPageApi.show({
|
|
36
|
-
entityId,
|
|
37
|
-
isTemplateView
|
|
38
|
-
})
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
exports.useShowThankYouPage = useShowThankYouPage;
|
|
43
|
-
//# sourceMappingURL=useThankYouPageApi-b6b47745.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useThankYouPageApi-b6b47745.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 \"@tanstack/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({\n queryKey: [QUERY_KEYS.THANK_YOU_PAGE, entityId],\n queryFn: () => thankYouPageApi.show({ entityId, isTemplateView }),\n });\n"],"names":["baseUrl","THANK_YOU_ENGINE_BASE_URL","show","_ref","entityId","isTemplateView","axios","get","params","thankYouPageApi","useShowThankYouPage","useQuery","queryKey","QUERY_KEYS","THANK_YOU_PAGE","queryFn"],"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;AACPC,IAAAA,QAAQ,EAAE,CAACC,gBAAU,CAACC,cAAc,EAAEV,QAAQ,CAAC;AAC/CW,IAAAA,OAAO,EAAEA,MAAMN,eAAe,CAACP,IAAI,CAAC;MAAEE,QAAQ;AAAEC,MAAAA,cAAAA;KAAgB,CAAA;AAClE,GAAC,CAAC,CAAA;AAAA;;;;"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { useQuery } from '@tanstack/react-query';
|
|
2
|
-
import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
3
|
-
import axios from 'axios';
|
|
4
|
-
import { T as THANK_YOU_ENGINE_BASE_URL, Q as QUERY_KEYS } from './query-ab526f47.js';
|
|
5
|
-
|
|
6
|
-
const baseUrl = `${THANK_YOU_ENGINE_BASE_URL}/thank_you_configuration`;
|
|
7
|
-
const show = entityId => axios.get(baseUrl, {
|
|
8
|
-
params: {
|
|
9
|
-
entityId
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
const update = _ref => {
|
|
13
|
-
let {
|
|
14
|
-
entityId,
|
|
15
|
-
payload
|
|
16
|
-
} = _ref;
|
|
17
|
-
return axios.put(baseUrl, {
|
|
18
|
-
entityId,
|
|
19
|
-
thankYouConfiguration: payload
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
const thankYouConfigurationApi = {
|
|
23
|
-
show,
|
|
24
|
-
update
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
const useShowThankYouConfiguration = _ref => {
|
|
28
|
-
let {
|
|
29
|
-
entityId
|
|
30
|
-
} = _ref;
|
|
31
|
-
return useQuery({
|
|
32
|
-
queryKey: [QUERY_KEYS.THANK_YOU_CONFIGURATION, entityId],
|
|
33
|
-
queryFn: () => thankYouConfigurationApi.show(entityId)
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
const useUpdateThankYouConfiguration = options => useMutationWithInvalidation(_ref2 => {
|
|
37
|
-
let {
|
|
38
|
-
entityId,
|
|
39
|
-
payload
|
|
40
|
-
} = _ref2;
|
|
41
|
-
return thankYouConfigurationApi.update({
|
|
42
|
-
entityId,
|
|
43
|
-
payload
|
|
44
|
-
});
|
|
45
|
-
}, {
|
|
46
|
-
keysToInvalidate: [[QUERY_KEYS.THANK_YOU_CONFIGURATION]],
|
|
47
|
-
...options
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
export { useUpdateThankYouConfiguration as a, useShowThankYouConfiguration as u };
|
|
51
|
-
//# sourceMappingURL=useThankYouConfigurationApi-ed20746a.js.map
|