@bigbinary/neeto-thank-you-frontend 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -0
- package/app/javascript/src/translations/ar.json +1 -1
- package/app/javascript/src/translations/bg.json +1 -1
- package/app/javascript/src/translations/ca.json +1 -1
- package/app/javascript/src/translations/cs.json +1 -1
- package/app/javascript/src/translations/da.json +1 -1
- package/app/javascript/src/translations/de.json +1 -1
- package/app/javascript/src/translations/es-MX.json +1 -1
- package/app/javascript/src/translations/es.json +1 -1
- package/app/javascript/src/translations/et.json +1 -1
- package/app/javascript/src/translations/fi.json +1 -1
- package/app/javascript/src/translations/fil.json +1 -1
- package/app/javascript/src/translations/fr.json +1 -1
- package/app/javascript/src/translations/hi.json +1 -1
- package/app/javascript/src/translations/hr.json +1 -1
- package/app/javascript/src/translations/id.json +1 -1
- package/app/javascript/src/translations/it.json +1 -1
- package/app/javascript/src/translations/ja.json +1 -1
- package/app/javascript/src/translations/ko.json +1 -1
- package/app/javascript/src/translations/nl.json +1 -1
- package/app/javascript/src/translations/pl.json +1 -1
- package/app/javascript/src/translations/pt-BR.json +1 -1
- package/app/javascript/src/translations/pt.json +1 -1
- package/app/javascript/src/translations/ro.json +1 -1
- package/app/javascript/src/translations/ru.json +1 -1
- package/app/javascript/src/translations/sk.json +1 -1
- package/app/javascript/src/translations/sl.json +1 -1
- package/app/javascript/src/translations/sv.json +1 -1
- package/app/javascript/src/translations/th.json +1 -1
- package/app/javascript/src/translations/tr.json +1 -1
- package/app/javascript/src/translations/uk.json +1 -1
- package/app/javascript/src/translations/vi.json +1 -1
- package/app/javascript/src/translations/zh-CN.json +1 -1
- package/app/javascript/src/translations/zh-TW.json +1 -1
- package/dist/ConfigureThankYou.js +49 -22
- package/dist/ConfigureThankYou.js.map +1 -1
- package/dist/ShowThankYou.js +57 -30
- package/dist/ShowThankYou.js.map +1 -1
- package/dist/SocialShare-DRpEs_-B.js +97 -0
- package/dist/SocialShare-DRpEs_-B.js.map +1 -0
- package/dist/cjs/ConfigureThankYou.js +48 -21
- package/dist/cjs/ConfigureThankYou.js.map +1 -1
- package/dist/cjs/ShowThankYou.js +57 -30
- package/dist/cjs/ShowThankYou.js.map +1 -1
- package/dist/cjs/SocialShare-DRVbUnBv.js +105 -0
- package/dist/cjs/SocialShare-DRVbUnBv.js.map +1 -0
- package/dist/cjs/index.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +9 -9
- package/types/ConfigureThankYou.d.ts +5 -1
- package/types/ShowThankYou.d.ts +4 -0
- package/dist/SocialShare-SyR23dOh.js +0 -62
- package/dist/SocialShare-SyR23dOh.js.map +0 -1
- package/dist/cjs/SocialShare-BtTtwb5-.js +0 -69
- package/dist/cjs/SocialShare-BtTtwb5-.js.map +0 -1
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { t as t$1 } from 'i18next';
|
|
2
|
-
import { useTranslation } from 'react-i18next';
|
|
3
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
var THANK_YOU_KINDS = {
|
|
6
|
-
CUSTOM_MESSAGE: "custom_message",
|
|
7
|
-
REDIRECT_TO_URL: "redirect_to_url"
|
|
8
|
-
};
|
|
9
|
-
var FORM_OPTIONS = {
|
|
10
|
-
customize: {
|
|
11
|
-
label: t$1("neetoThankYou.thankYou.customize"),
|
|
12
|
-
description: t$1("neetoThankYou.thankYou.customizeDescription"),
|
|
13
|
-
kind: THANK_YOU_KINDS.CUSTOM_MESSAGE
|
|
14
|
-
},
|
|
15
|
-
externalLink: {
|
|
16
|
-
label: t$1("neetoThankYou.thankYou.externalLink"),
|
|
17
|
-
description: t$1("neetoThankYou.thankYou.externalLinkDescription"),
|
|
18
|
-
kind: THANK_YOU_KINDS.REDIRECT_TO_URL
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
var THANK_YOU_TEXT_ALIGNMENTS = {
|
|
22
|
-
left: "left",
|
|
23
|
-
center: "center"
|
|
24
|
-
};
|
|
25
|
-
var REDIRECT_DELAY = 5;
|
|
26
|
-
|
|
27
|
-
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}}
|
|
28
|
-
|
|
29
|
-
var css = ".neeto-thank-you-configuration,.neeto-thank-you-configuration-preview__wrapper{display:flex;flex-direction:column}.neeto-thank-you-configuration{height:100vh;overflow-y:hidden;position:relative}.neeto-thank-you-configuration__nav{display:flex;justify-content:center;padding:.25rem;width:100%}.neeto-thank-you-configuration__link{align-items:center;color:inherit;display:flex;font-weight:600;gap:.25rem;text-decoration:none}.neeto-thank-you-configuration__link:hover{opacity:.8}.neeto-thank-you-configuration__link span{border-bottom:1px solid}.neeto-thank-you-configuration__link svg{height:1rem;width:auto}.neeto-thank-you-configuration__main{align-items:center;display:flex;height:100vh;justify-content:center;overflow-y:auto}.neeto-thank-you-configuration__box{margin:auto;max-width:100%;padding:3.5rem .9375rem;position:relative;text-align:center;width:51.25rem}.neeto-thank-you-configuration__redirect-message{bottom:.375rem;font-size:.75rem;left:0;opacity:.75;position:absolute;right:0}.neeto-thank-you-configuration__redirect-failure-message a[href]{color:#2d36d4!important}.neeto-thank-you-configuration__default-img-wrap{font-size:2.5rem;text-align:center}.neeto-thank-you-configuration-alignment--left .neeto-thank-you-configuration__box{align-items:flex-start;text-align:left}.neeto-thank-you-configuration__title{font-size:2rem;line-height:1.25;margin:.67em 0}.neeto-thank-you-configuration__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__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-thankyou-nano__right-panel .neeto-molecules-browser-preview{height:100%;min-height:500px}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration{flex-grow:1;height:100%;max-height:100%}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration .neeto-thank-you-configuration__main{height:100%}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration__branding-wrapper{position:absolute}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration__box{pointer-events:none}.neeto-thank-you-configuration__branding-wrapper{bottom:.75rem;left:.75rem;position:fixed}.neeto-thank-you-configuration__draft-preview-message{font-size:.75rem;line-height:1.5}";
|
|
30
|
-
n(css,{});
|
|
31
|
-
|
|
32
|
-
var SocialShare = function SocialShare(_ref) {
|
|
33
|
-
var socialHandles = _ref.socialHandles,
|
|
34
|
-
publicLinkId = _ref.publicLinkId;
|
|
35
|
-
var _useTranslation = useTranslation(),
|
|
36
|
-
t = _useTranslation.t;
|
|
37
|
-
return /*#__PURE__*/jsxs("div", {
|
|
38
|
-
className: "neeto-thank-you-configuration__social-share",
|
|
39
|
-
children: [/*#__PURE__*/jsx("h3", {
|
|
40
|
-
className: "neeto-thank-you-configuration__social-share-title",
|
|
41
|
-
children: t("neetoThankYou.thankYou.socialShareHeading")
|
|
42
|
-
}), /*#__PURE__*/jsx("div", {
|
|
43
|
-
className: "neeto-thank-you-configuration-social-follow",
|
|
44
|
-
children: socialHandles === null || socialHandles === void 0 ? void 0 : socialHandles.map(function (data, idx) {
|
|
45
|
-
var Icon = data.icon,
|
|
46
|
-
generateShareUrl = data.generateShareUrl;
|
|
47
|
-
return /*#__PURE__*/jsx("div", {
|
|
48
|
-
className: "neeto-thank-you-configuration-social-follow__item",
|
|
49
|
-
children: /*#__PURE__*/jsx("a", {
|
|
50
|
-
href: generateShareUrl(publicLinkId),
|
|
51
|
-
rel: "noreferrer",
|
|
52
|
-
target: "_blank",
|
|
53
|
-
children: /*#__PURE__*/jsx(Icon, {})
|
|
54
|
-
})
|
|
55
|
-
}, idx);
|
|
56
|
-
})
|
|
57
|
-
})]
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export { FORM_OPTIONS as F, REDIRECT_DELAY as R, SocialShare as S, THANK_YOU_TEXT_ALIGNMENTS as T, THANK_YOU_KINDS as a, n };
|
|
62
|
-
//# sourceMappingURL=SocialShare-SyR23dOh.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SocialShare-SyR23dOh.js","sources":["../app/javascript/src/components/commons/constants.js","../node_modules/rollup-plugin-styles/dist/runtime/inject-css.js","../app/javascript/src/components/ConfigureThankYou/Customize/SocialShare.jsx"],"sourcesContent":["import { t } from \"i18next\";\n\nexport const THANK_YOU_KINDS = {\n CUSTOM_MESSAGE: \"custom_message\",\n REDIRECT_TO_URL: \"redirect_to_url\",\n};\n\nexport const FORM_OPTIONS = {\n customize: {\n label: t(\"neetoThankYou.thankYou.customize\"),\n description: t(\"neetoThankYou.thankYou.customizeDescription\"),\n kind: THANK_YOU_KINDS.CUSTOM_MESSAGE,\n },\n externalLink: {\n label: t(\"neetoThankYou.thankYou.externalLink\"),\n description: t(\"neetoThankYou.thankYou.externalLinkDescription\"),\n kind: THANK_YOU_KINDS.REDIRECT_TO_URL,\n },\n};\n\nexport const THANK_YOU_TEXT_ALIGNMENTS = {\n left: \"left\",\n center: \"center\",\n};\n\nexport const REDIRECT_DELAY = 5;\n","var e=[],t=[];function n(n,r){if(n&&\"undefined\"!=typeof document){var a,s=!0===r.prepend?\"prepend\":\"append\",d=!0===r.singleTag,i=\"string\"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName(\"head\")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c()}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n))}function c(){var e=document.createElement(\"style\");if(e.setAttribute(\"type\",\"text/css\"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a=\"prepend\"===s?\"afterbegin\":\"beforeend\";return i.insertAdjacentElement(a,e),e}}export{n as default};\n","import { useTranslation } from \"react-i18next\";\n\nconst SocialShare = ({ socialHandles, publicLinkId }) => {\n const { t } = useTranslation();\n\n return (\n <div className=\"neeto-thank-you-configuration__social-share\">\n <h3 className=\"neeto-thank-you-configuration__social-share-title\">\n {t(\"neetoThankYou.thankYou.socialShareHeading\")}\n </h3>\n <div className=\"neeto-thank-you-configuration-social-follow\">\n {socialHandles?.map((data, idx) => {\n const { icon: Icon, generateShareUrl } = data;\n\n return (\n <div\n className=\"neeto-thank-you-configuration-social-follow__item\"\n key={idx}\n >\n <a\n href={generateShareUrl(publicLinkId)}\n rel=\"noreferrer\"\n target=\"_blank\"\n >\n <Icon />\n </a>\n </div>\n );\n })}\n </div>\n </div>\n );\n};\n\nexport default SocialShare;\n"],"names":["THANK_YOU_KINDS","CUSTOM_MESSAGE","REDIRECT_TO_URL","FORM_OPTIONS","customize","label","t","description","kind","externalLink","THANK_YOU_TEXT_ALIGNMENTS","left","center","REDIRECT_DELAY","SocialShare","_ref","socialHandles","publicLinkId","_useTranslation","useTranslation","_jsxs","className","children","_jsx","map","data","idx","Icon","icon","generateShareUrl","href","rel","target"],"mappings":";;;;AAEO,IAAMA,eAAe,GAAG;AAC7BC,EAAAA,cAAc,EAAE,gBAAgB;AAChCC,EAAAA,eAAe,EAAE;AACnB;AAEO,IAAMC,YAAY,GAAG;AAC1BC,EAAAA,SAAS,EAAE;AACTC,IAAAA,KAAK,EAAEC,GAAC,CAAC,kCAAkC,CAAC;AAC5CC,IAAAA,WAAW,EAAED,GAAC,CAAC,6CAA6C,CAAC;IAC7DE,IAAI,EAAER,eAAe,CAACC;GACvB;AACDQ,EAAAA,YAAY,EAAE;AACZJ,IAAAA,KAAK,EAAEC,GAAC,CAAC,qCAAqC,CAAC;AAC/CC,IAAAA,WAAW,EAAED,GAAC,CAAC,gDAAgD,CAAC;IAChEE,IAAI,EAAER,eAAe,CAACE;AACxB;AACF;AAEO,IAAMQ,yBAAyB,GAAG;AACvCC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,MAAM,EAAE;AACV;AAEO,IAAMC,cAAc,GAAG;;ACzB9B,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,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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AA,GAAA,EAAA;AACEO,YAAAA,IAAI,EAAED,gBAAgB,CAACZ,YAAY,CAAE;AACrCc,YAAAA,GAAG,EAAC,YAAY;AAChBC,YAAAA,MAAM,EAAC,QAAQ;AAAAV,YAAAA,QAAA,eAEfC,GAAA,CAACI,IAAI,EAAE,EAAA;WACN;AAAC,SAAA,EARCD,GASF,CAAC;OAET;AAAC,KACC,CAAC;AAAA,GACH,CAAC;AAEV;;;;","x_google_ignoreList":[1]}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var i18next = require('i18next');
|
|
4
|
-
var reactI18next = require('react-i18next');
|
|
5
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
|
|
7
|
-
var THANK_YOU_KINDS = {
|
|
8
|
-
CUSTOM_MESSAGE: "custom_message",
|
|
9
|
-
REDIRECT_TO_URL: "redirect_to_url"
|
|
10
|
-
};
|
|
11
|
-
var FORM_OPTIONS = {
|
|
12
|
-
customize: {
|
|
13
|
-
label: i18next.t("neetoThankYou.thankYou.customize"),
|
|
14
|
-
description: i18next.t("neetoThankYou.thankYou.customizeDescription"),
|
|
15
|
-
kind: THANK_YOU_KINDS.CUSTOM_MESSAGE
|
|
16
|
-
},
|
|
17
|
-
externalLink: {
|
|
18
|
-
label: i18next.t("neetoThankYou.thankYou.externalLink"),
|
|
19
|
-
description: i18next.t("neetoThankYou.thankYou.externalLinkDescription"),
|
|
20
|
-
kind: THANK_YOU_KINDS.REDIRECT_TO_URL
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
var THANK_YOU_TEXT_ALIGNMENTS = {
|
|
24
|
-
left: "left",
|
|
25
|
-
center: "center"
|
|
26
|
-
};
|
|
27
|
-
var REDIRECT_DELAY = 5;
|
|
28
|
-
|
|
29
|
-
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
30
|
-
|
|
31
|
-
var css = ".neeto-thank-you-configuration,.neeto-thank-you-configuration-preview__wrapper{display:flex;flex-direction:column}.neeto-thank-you-configuration{height:100vh;overflow-y:hidden;position:relative}.neeto-thank-you-configuration__nav{display:flex;justify-content:center;padding:.25rem;width:100%}.neeto-thank-you-configuration__link{align-items:center;color:inherit;display:flex;font-weight:600;gap:.25rem;text-decoration:none}.neeto-thank-you-configuration__link:hover{opacity:.8}.neeto-thank-you-configuration__link span{border-bottom:1px solid}.neeto-thank-you-configuration__link svg{height:1rem;width:auto}.neeto-thank-you-configuration__main{align-items:center;display:flex;height:100vh;justify-content:center;overflow-y:auto}.neeto-thank-you-configuration__box{margin:auto;max-width:100%;padding:3.5rem .9375rem;position:relative;text-align:center;width:51.25rem}.neeto-thank-you-configuration__redirect-message{bottom:.375rem;font-size:.75rem;left:0;opacity:.75;position:absolute;right:0}.neeto-thank-you-configuration__redirect-failure-message a[href]{color:#2d36d4!important}.neeto-thank-you-configuration__default-img-wrap{font-size:2.5rem;text-align:center}.neeto-thank-you-configuration-alignment--left .neeto-thank-you-configuration__box{align-items:flex-start;text-align:left}.neeto-thank-you-configuration__title{font-size:2rem;line-height:1.25;margin:.67em 0}.neeto-thank-you-configuration__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__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-thankyou-nano__right-panel .neeto-molecules-browser-preview{height:100%;min-height:500px}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration{flex-grow:1;height:100%;max-height:100%}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration .neeto-thank-you-configuration__main{height:100%}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration__branding-wrapper{position:absolute}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration__box{pointer-events:none}.neeto-thank-you-configuration__branding-wrapper{bottom:.75rem;left:.75rem;position:fixed}.neeto-thank-you-configuration__draft-preview-message{font-size:.75rem;line-height:1.5}";
|
|
32
|
-
n(css,{});
|
|
33
|
-
|
|
34
|
-
var SocialShare = function SocialShare(_ref) {
|
|
35
|
-
var socialHandles = _ref.socialHandles,
|
|
36
|
-
publicLinkId = _ref.publicLinkId;
|
|
37
|
-
var _useTranslation = reactI18next.useTranslation(),
|
|
38
|
-
t = _useTranslation.t;
|
|
39
|
-
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
40
|
-
className: "neeto-thank-you-configuration__social-share",
|
|
41
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("h3", {
|
|
42
|
-
className: "neeto-thank-you-configuration__social-share-title",
|
|
43
|
-
children: t("neetoThankYou.thankYou.socialShareHeading")
|
|
44
|
-
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
45
|
-
className: "neeto-thank-you-configuration-social-follow",
|
|
46
|
-
children: socialHandles === null || socialHandles === void 0 ? void 0 : socialHandles.map(function (data, idx) {
|
|
47
|
-
var Icon = data.icon,
|
|
48
|
-
generateShareUrl = data.generateShareUrl;
|
|
49
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
50
|
-
className: "neeto-thank-you-configuration-social-follow__item",
|
|
51
|
-
children: /*#__PURE__*/jsxRuntime.jsx("a", {
|
|
52
|
-
href: generateShareUrl(publicLinkId),
|
|
53
|
-
rel: "noreferrer",
|
|
54
|
-
target: "_blank",
|
|
55
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Icon, {})
|
|
56
|
-
})
|
|
57
|
-
}, idx);
|
|
58
|
-
})
|
|
59
|
-
})]
|
|
60
|
-
});
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
exports.FORM_OPTIONS = FORM_OPTIONS;
|
|
64
|
-
exports.REDIRECT_DELAY = REDIRECT_DELAY;
|
|
65
|
-
exports.SocialShare = SocialShare;
|
|
66
|
-
exports.THANK_YOU_KINDS = THANK_YOU_KINDS;
|
|
67
|
-
exports.THANK_YOU_TEXT_ALIGNMENTS = THANK_YOU_TEXT_ALIGNMENTS;
|
|
68
|
-
exports.n = n;
|
|
69
|
-
//# sourceMappingURL=SocialShare-BtTtwb5-.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SocialShare-BtTtwb5-.js","sources":["../../app/javascript/src/components/commons/constants.js","../../node_modules/rollup-plugin-styles/dist/runtime/inject-css.js","../../app/javascript/src/components/ConfigureThankYou/Customize/SocialShare.jsx"],"sourcesContent":["import { t } from \"i18next\";\n\nexport const THANK_YOU_KINDS = {\n CUSTOM_MESSAGE: \"custom_message\",\n REDIRECT_TO_URL: \"redirect_to_url\",\n};\n\nexport const FORM_OPTIONS = {\n customize: {\n label: t(\"neetoThankYou.thankYou.customize\"),\n description: t(\"neetoThankYou.thankYou.customizeDescription\"),\n kind: THANK_YOU_KINDS.CUSTOM_MESSAGE,\n },\n externalLink: {\n label: t(\"neetoThankYou.thankYou.externalLink\"),\n description: t(\"neetoThankYou.thankYou.externalLinkDescription\"),\n kind: THANK_YOU_KINDS.REDIRECT_TO_URL,\n },\n};\n\nexport const THANK_YOU_TEXT_ALIGNMENTS = {\n left: \"left\",\n center: \"center\",\n};\n\nexport const REDIRECT_DELAY = 5;\n","var e=[],t=[];function n(n,r){if(n&&\"undefined\"!=typeof document){var a,s=!0===r.prepend?\"prepend\":\"append\",d=!0===r.singleTag,i=\"string\"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName(\"head\")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c()}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n))}function c(){var e=document.createElement(\"style\");if(e.setAttribute(\"type\",\"text/css\"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a=\"prepend\"===s?\"afterbegin\":\"beforeend\";return i.insertAdjacentElement(a,e),e}}export{n as default};\n","import { useTranslation } from \"react-i18next\";\n\nconst SocialShare = ({ socialHandles, publicLinkId }) => {\n const { t } = useTranslation();\n\n return (\n <div className=\"neeto-thank-you-configuration__social-share\">\n <h3 className=\"neeto-thank-you-configuration__social-share-title\">\n {t(\"neetoThankYou.thankYou.socialShareHeading\")}\n </h3>\n <div className=\"neeto-thank-you-configuration-social-follow\">\n {socialHandles?.map((data, idx) => {\n const { icon: Icon, generateShareUrl } = data;\n\n return (\n <div\n className=\"neeto-thank-you-configuration-social-follow__item\"\n key={idx}\n >\n <a\n href={generateShareUrl(publicLinkId)}\n rel=\"noreferrer\"\n target=\"_blank\"\n >\n <Icon />\n </a>\n </div>\n );\n })}\n </div>\n </div>\n );\n};\n\nexport default SocialShare;\n"],"names":["THANK_YOU_KINDS","CUSTOM_MESSAGE","REDIRECT_TO_URL","FORM_OPTIONS","customize","label","t","description","kind","externalLink","THANK_YOU_TEXT_ALIGNMENTS","left","center","REDIRECT_DELAY","SocialShare","_ref","socialHandles","publicLinkId","_useTranslation","useTranslation","_jsxs","className","children","_jsx","map","data","idx","Icon","icon","generateShareUrl","href","rel","target"],"mappings":";;;;;;AAEO,IAAMA,eAAe,GAAG;AAC7BC,EAAAA,cAAc,EAAE,gBAAgB;AAChCC,EAAAA,eAAe,EAAE;AACnB;AAEO,IAAMC,YAAY,GAAG;AAC1BC,EAAAA,SAAS,EAAE;AACTC,IAAAA,KAAK,EAAEC,SAAC,CAAC,kCAAkC,CAAC;AAC5CC,IAAAA,WAAW,EAAED,SAAC,CAAC,6CAA6C,CAAC;IAC7DE,IAAI,EAAER,eAAe,CAACC;GACvB;AACDQ,EAAAA,YAAY,EAAE;AACZJ,IAAAA,KAAK,EAAEC,SAAC,CAAC,qCAAqC,CAAC;AAC/CC,IAAAA,WAAW,EAAED,SAAC,CAAC,gDAAgD,CAAC;IAChEE,IAAI,EAAER,eAAe,CAACE;AACxB;AACF;AAEO,IAAMQ,yBAAyB,GAAG;AACvCC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,MAAM,EAAE;AACV;AAEO,IAAMC,cAAc,GAAG;;ACzB9B,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,WAAW,EAAE,OAAO,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAA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