@bigbinary/neeto-thank-you-frontend 1.2.0-beta1 → 2.0.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 +33 -16
- package/dist/BrandingInfo-da0b773a.js +32 -0
- package/dist/BrandingInfo-da0b773a.js.map +1 -0
- package/dist/ConfigureThankYou.js +536 -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 +578 -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 +54 -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-302df56a.js +58 -0
- package/dist/cjs/useThankYouConfigurationApi-302df56a.js.map +1 -0
- package/dist/cjs/useThankYouPageApi-b6b47745.js +43 -0
- package/dist/cjs/useThankYouPageApi-b6b47745.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 +43 -877
- 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-ed20746a.js +51 -0
- package/dist/useThankYouConfigurationApi-ed20746a.js.map +1 -0
- package/dist/useThankYouPageApi-1ac56883.js +37 -0
- package/dist/useThankYouPageApi-1ac56883.js.map +1 -0
- package/dist/utils.js +12 -0
- package/dist/utils.js.map +1 -0
- package/package.json +24 -15
- 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 -924
- package/dist/index.cjs.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfigureThankYou.js","sources":["../../app/javascript/src/components/ConfigureThankYou/constants.js","../../node_modules/@babel/runtime/helpers/esm/extends.js","../../app/javascript/src/components/ConfigureThankYou/Customize/Image/constants.js","../../app/javascript/src/components/ConfigureThankYou/Customize/Image/index.jsx","../../app/javascript/src/components/ConfigureThankYou/Customize/ResubmissionWarningModal.jsx","../../app/javascript/src/components/ConfigureThankYou/Customize/index.jsx","../../app/assets/images/browser-controls.svg","../../app/javascript/src/components/ConfigureThankYou/Customize/Preview.jsx","../../app/javascript/src/components/ConfigureThankYou/ExternalLink.jsx","../../app/javascript/src/components/ConfigureThankYou/Label.jsx","../../app/javascript/src/components/ConfigureThankYou/utils.js","../../app/javascript/src/components/ConfigureThankYou/Form.jsx","../../app/javascript/src/components/ConfigureThankYou/Header.jsx","../../app/javascript/src/components/ConfigureThankYou/index.jsx"],"sourcesContent":["import { t } from \"i18next\";\n\nexport const FORM_OPTIONS = {\n customize: {\n label: t(\"neetoThankYou.thankYou.customize\"),\n description: t(\"neetoThankYou.thankYou.customizeDescription\"),\n kind: \"custom_message\",\n },\n externalLink: {\n label: t(\"neetoThankYou.thankYou.externalLink\"),\n description: t(\"neetoThankYou.thankYou.externalLinkDescription\"),\n kind: \"redirect_to_url\",\n },\n};\n\nexport const DEFAULT_IMAGE_PROPERTIES = { imageSignedId: null, imageUrl: \"\" };\n\nexport const EXTERNAL_URL_PREFIX = \"https://\";\n\nexport const THANK_YOU_TEXT_ALIGNMENTS = {\n left: \"left\",\n center: \"center\",\n};\n","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export const IMAGE_SIZE_LIMIT = 1; // MB\nexport const IMAGE_UPLOADER_CONFIG = { maxImageSize: IMAGE_SIZE_LIMIT };\n","import React from \"react\";\n\nimport { ImageUploader } from \"@bigbinary/neeto-image-uploader-frontend\";\nimport { useFormikContext } from \"formik\";\nimport { isEmpty } from \"ramda\";\n\nimport { IMAGE_UPLOADER_CONFIG } from \"./constants\";\n\nconst Image = () => {\n const { setFieldValue, values } = useFormikContext();\n\n const handleImageChange = image => {\n if (isEmpty(image.signedId)) {\n setFieldValue(\"imageUrl\", \"\");\n setFieldValue(\"imageSignedId\", null);\n\n return;\n }\n setFieldValue(\"imageUrl\", image.url);\n setFieldValue(\"imageSignedId\", image.signedId);\n };\n\n return (\n <ImageUploader\n className=\"h-60\"\n key={values.imageUrl}\n src={values.imageUrl}\n uploadConfig={IMAGE_UPLOADER_CONFIG}\n onUploadComplete={handleImageChange}\n />\n );\n};\n\nexport default Image;\n","import React from \"react\";\n\nimport { withT } from \"neetocommons/react-utils\";\nimport { Button, Typography, Modal } from \"neetoui\";\n\nconst ResubmissionWarningModal = withT(\n ({ t, isOpen, setIsOpen, uniqueSubmissionLink }) => (\n <Modal {...{ isOpen }} onClose={() => setIsOpen(false)}>\n <Modal.Header>\n <Typography style=\"h3\" weight=\"semibold\">\n {t(\"neetoThankYou.common.alert\")}!\n </Typography>\n </Modal.Header>\n <Modal.Body>{t(\"neetoThankYou.thankYou.resubmissionWarning\")}</Modal.Body>\n <Modal.Footer className=\"space-x-2\">\n <Button\n label={t(\"neetoThankYou.common.ok\")}\n style=\"tertiary\"\n onClick={() => setIsOpen(false)}\n />\n <Button\n label={t(\"neetoThankYou.thankYou.uniqueSubmissionLinkText\")}\n to={uniqueSubmissionLink}\n />\n </Modal.Footer>\n </Modal>\n )\n);\n\nexport default ResubmissionWarningModal;\n","import React, { useEffect, useState } from \"react\";\n\nimport classNames from \"classnames\";\nimport { useFormikContext } from \"formik\";\nimport { FormikEditor } from \"neetoeditor\";\nimport { Label } from \"neetoui\";\nimport { Input, Switch } from \"neetoui/formik\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { useShowThankYouConfiguration } from \"hooks/reactQuery/useThankYouConfigurationApi\";\n\nimport Image from \"./Image\";\nimport ResubmissionWarningModal from \"./ResubmissionWarningModal\";\n\nconst Customize = ({\n editorRef,\n uniqueSubmissionEnabled,\n hasImageUploader,\n uniqueSubmissionLink,\n entityId,\n disableSocialShare,\n disableSubmitAnotherResponse,\n editorProps,\n}) => {\n const [\n isUniqueSubmissionWarningModalOpen,\n setIsUniqueSubmissionWarningModalOpen,\n ] = useState(false);\n\n const { t } = useTranslation();\n\n const { values, setFieldValue } = useFormikContext();\n\n const { data: { thankYouConfiguration } = {}, isFetching } =\n useShowThankYouConfiguration({ entityId });\n\n useEffect(() => {\n if (isFetching) return;\n setFieldValue(\"message\", thankYouConfiguration.message);\n editorRef.current.editor?.commands.setContent(\n thankYouConfiguration.message\n );\n }, [isFetching]);\n\n const handleResubmitLinkChange = event => {\n uniqueSubmissionEnabled\n ? setIsUniqueSubmissionWarningModalOpen(true)\n : setFieldValue(\"showResubmitLink\", event.target.checked);\n };\n\n return (\n <div className=\"flex flex-col gap-4\">\n {hasImageUploader && (\n <div className=\"flex flex-col gap-2\">\n <Label>{t(\"neetoThankYou.thankYou.imageLabel\")}</Label>\n <Image />\n </div>\n )}\n <div className=\"flex flex-col gap-2\">\n <FormikEditor\n required\n data-cy=\"thank-you-message-editor\"\n label={t(\"neetoThankYou.thankYou.messageLabel\")}\n name=\"message\"\n ref={editorRef}\n {...editorProps}\n />\n </div>\n {!disableSocialShare && (\n <Switch\n label={t(\"neetoThankYou.thankYou.socialShareIcons\")}\n name=\"socialSharingEnabled\"\n />\n )}\n {!disableSubmitAnotherResponse && (\n <>\n <Switch\n label={t(\"neetoThankYou.thankYou.showResubmitLink\")}\n name=\"showResubmitLink\"\n className={classNames({\n \"neeto-ui-switch--disabled\": uniqueSubmissionEnabled,\n })}\n onChange={handleResubmitLinkChange}\n />\n {values.showResubmitLink && (\n <Input\n required\n label={t(\"neetoThankYou.thankYou.resubmitLinkText\")}\n name=\"resubmitLinkText\"\n />\n )}\n </>\n )}\n <ResubmissionWarningModal\n {...{ uniqueSubmissionLink }}\n isOpen={isUniqueSubmissionWarningModalOpen}\n setIsOpen={setIsUniqueSubmissionWarningModalOpen}\n />\n </div>\n );\n};\n\nexport default Customize;\n","<svg\n fill=\"none\"\n height=\"13\"\n viewBox=\"0 0 43 13\"\n width=\"43\"\n xmlns=\"http://www.w3.org/2000/svg\"\n>\n <ellipse cx=\"6.405\" cy=\"6.644\" fill=\"#FFEFED\" rx=\"5.745\" ry=\"5.859\" />\n <ellipse cx=\"37.044\" cy=\"6.644\" fill=\"#98F3F4\" rx=\"5.745\" ry=\"5.859\" />\n <ellipse cx=\"21.725\" cy=\"6.644\" fill=\"#FFF2D7\" rx=\"5.745\" ry=\"5.859\" />\n</svg>","import React from \"react\";\n\nimport classNames from \"classnames\";\nimport { useFormikContext } from \"formik\";\nimport { EditorContent } from \"neetoeditor\";\nimport { Typography } from \"neetoui\";\nimport { isEmpty } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport BrandingInfo from \"components/commons/BrandingInfo\";\nimport BrowserControls from \"images/browser-controls\";\n\nimport SocialShare from \"./SocialShare\";\n\nimport { THANK_YOU_TEXT_ALIGNMENTS } from \"../constants\";\n\nconst MemoizedEditorContent = React.memo(EditorContent);\n\nconst Preview = ({\n socialHandles,\n thankYouTextAlignment,\n resubmitLink,\n publicLinkId,\n isPublished,\n appName,\n brandingInfo,\n}) => {\n const { values } = useFormikContext();\n const { t } = useTranslation();\n\n return (\n <div className=\"flex flex-col\">\n <Typography\n className=\"mb-3 block md:hidden\"\n lineHeight=\"normal\"\n style=\"h3\"\n weight=\"semibold\"\n >\n {t(\"neetoThankYou.thankYou.preview\")}\n </Typography>\n <div\n className={classNames(\"neeto-thank-you-configuration-preview\", {\n \"neeto-thank-you-configuration-alignment--left\":\n thankYouTextAlignment === THANK_YOU_TEXT_ALIGNMENTS.left,\n \"neeto-thank-you-configuration-alignment--center\":\n thankYouTextAlignment === THANK_YOU_TEXT_ALIGNMENTS.center,\n \"pointer-events-none\": !isPublished,\n })}\n >\n <div className=\"neeto-thank-you-configuration-preview__browser-header\">\n <BrowserControls />\n </div>\n <div className=\"neeto-thank-you-configuration\">\n <main className=\"neeto-thank-you-configuration__main\">\n <div className=\"neeto-thank-you-configuration__box\">\n {!isEmpty(values?.imageUrl) && (\n <div className=\"neeto-thank-you-configuration__img\">\n <img alt=\"\" src={values.imageUrl} />\n </div>\n )}\n {values?.message && (\n <div className=\"neeto-thank-you-configuration__description\">\n <MemoizedEditorContent\n content={values.message}\n data-cy=\"preview-editor-content\"\n />\n </div>\n )}\n {values?.showResubmitLink && (\n <a\n className=\"neeto-thank-you-configuration__resubmit\"\n href={resubmitLink}\n >\n {values?.resubmitLinkText ??\n t(\"neetoThankYou.thankYou.resubmit\")}\n </a>\n )}\n {values?.socialSharingEnabled && (\n <SocialShare {...{ publicLinkId, socialHandles }} />\n )}\n </div>\n </main>\n </div>\n {values?.brandingEnabled && (\n <BrandingInfo {...{ appName, brandingInfo }} />\n )}\n </div>\n </div>\n );\n};\nexport default Preview;\n","import React from \"react\";\n\nimport { Link } from \"neetoicons\";\nimport { Input } from \"neetoui/formik\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { EXTERNAL_URL_PREFIX } from \"./constants\";\n\nconst ExternalLink = () => {\n const { t } = useTranslation();\n\n return (\n <Input\n autoFocus\n required\n label={t(\"neetoThankYou.thankYou.link\")}\n name=\"redirectUrl\"\n placeholder={EXTERNAL_URL_PREFIX}\n prefix={<Link />}\n />\n );\n};\n\nexport default ExternalLink;\n","import React from \"react\";\n\nimport { hyphenate } from \"neetocist\";\nimport { Typography } from \"neetoui\";\n\nconst Label = ({ label, description, kind }) => (\n <Typography\n className=\"neeto-ui-text-gray-700\"\n data-cy={`neeto-thank-you-configuration-${hyphenate(kind)}-label`}\n style=\"body2\"\n weight=\"semibold\"\n >\n {label}\n <span\n className=\"block text-xs font-normal leading-snug\"\n data-cy={`neeto-thank-you-configuration-${hyphenate(kind)}-description`}\n >\n {description}\n </span>\n </Typography>\n);\n\nexport default Label;\n","import { t } from \"i18next\";\nimport { isEditorEmpty } from \"neetoeditor\";\nimport * as yup from \"yup\";\n\nimport { FORM_OPTIONS } from \"./constants\";\n\nexport const buildValidationSchema = (allowEmptyCustomMessage = false) =>\n yup.object().shape({\n kind: yup.string().required(),\n message: yup\n .string()\n .test(\n \"message\",\n t(\"neetoThankYou.thankYou.validations.messageRequired\"),\n value => allowEmptyCustomMessage || !isEditorEmpty(value)\n ),\n socialSharingEnabled: yup.bool(),\n showResubmitLink: yup.bool(),\n resubmitLinkText: yup.string().when(\"showResubmitLink\", {\n is: true,\n then: yup\n .string()\n .required(\n t(\"neetoThankYou.thankYou.validations.resubmitLinkTextIsRequired\")\n ),\n }),\n redirectUrl: yup.string().when(\"kind\", {\n is: FORM_OPTIONS.externalLink.kind,\n then: yup\n .string()\n .url(t(\"neetoThankYou.thankYou.validations.invalidLink\"))\n .required(t(\"neetoThankYou.thankYou.validations.invalidLink\"))\n .when(\"kind\", {\n is: FORM_OPTIONS.customize.kind,\n then: yup.string(),\n }),\n }),\n });\n","import React, { useRef } from \"react\";\n\nimport classNames from \"classnames\";\nimport { noop } from \"neetocist\";\nimport PageLoader from \"neetomolecules/PageLoader\";\nimport {\n ActionBlock,\n BlockNavigation,\n Form as NeetoUIForm,\n Radio,\n} from \"neetoui/formik\";\nimport { isEmpty } from \"ramda\";\n\nimport {\n useShowThankYouConfiguration,\n useUpdateThankYouConfiguration,\n} from \"hooks/reactQuery/useThankYouConfigurationApi\";\n\nimport { FORM_OPTIONS, DEFAULT_IMAGE_PROPERTIES } from \"./constants\";\nimport Customize from \"./Customize\";\nimport Preview from \"./Customize/Preview\";\nimport ExternalLink from \"./ExternalLink\";\nimport Label from \"./Label\";\nimport { buildValidationSchema } from \"./utils\";\n\nconst Form = ({\n socialHandles,\n entityId,\n publicLinkId,\n hasImageUploader,\n uniqueSubmissionEnabled,\n uniqueSubmissionLink,\n redirectToOnCancel,\n thankYouTextAlignment,\n resubmitLink,\n isPublished,\n disableSubmitAnotherResponse,\n disableRadioSelection,\n appName,\n blockNavigation,\n onConfigUpdateSuccess,\n brandingInfo,\n editorProps,\n preview: CustomPreview,\n allowEmptyCustomMessage,\n}) => {\n const { data: { thankYouConfiguration } = {}, isLoading } =\n useShowThankYouConfiguration({ entityId });\n\n const { mutate: updateThankYouConfiguration, isPending: isUpdatingForm } =\n useUpdateThankYouConfiguration();\n\n const editorRef = useRef({ editor: {} });\n\n if (isLoading) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <PageLoader />\n </div>\n );\n }\n\n const resetEditor = () =>\n editorRef.current.editor?.commands.setContent(\n thankYouConfiguration.message\n );\n\n return (\n <NeetoUIForm\n formikProps={{\n enableReinitialize: true,\n initialValues: {\n ...DEFAULT_IMAGE_PROPERTIES,\n ...thankYouConfiguration,\n },\n validationSchema: buildValidationSchema(allowEmptyCustomMessage),\n onSubmit: values =>\n updateThankYouConfiguration(\n {\n entityId,\n payload: { ...values, image: values.imageSignedId },\n },\n {\n onSuccess: (...args) =>\n onConfigUpdateSuccess(args, thankYouConfiguration),\n }\n ),\n }}\n >\n {({ values }) => (\n <div className=\"grid grid-cols-1 gap-10 pb-6 md:grid-cols-2 md:gap-6\">\n <div className=\"flex flex-col\">\n {blockNavigation && <BlockNavigation />}\n {!disableRadioSelection && (\n <div className=\"mb-6 w-full\">\n <Radio\n containerClassName=\"grid grid-cols-1 sm:grid-cols-2 gap-6 items-stretch w-full\"\n name=\"kind\"\n >\n {Object.values(FORM_OPTIONS).map(option => (\n <Radio.Item\n key={option.kind}\n label={<Label {...option} />}\n name=\"kind\"\n value={option.kind}\n className={classNames(\n \"neeto-thank-you-configuration-radio__item\",\n { active: values.kind === option.kind }\n )}\n />\n ))}\n </Radio>\n </div>\n )}\n {values.kind === FORM_OPTIONS.customize.kind ? (\n <Customize\n {...{\n disableSubmitAnotherResponse,\n editorProps,\n editorRef,\n entityId,\n hasImageUploader,\n uniqueSubmissionEnabled,\n uniqueSubmissionLink,\n }}\n disableSocialShare={isEmpty(socialHandles)}\n />\n ) : (\n <ExternalLink />\n )}\n <ActionBlock\n className=\"mt-6\"\n isSubmitting={isUpdatingForm}\n cancelButtonProps={{\n \"data-cy\": \"neeto-thank-you-configuration-cancel-button\",\n ...(redirectToOnCancel\n ? { to: redirectToOnCancel, onClick: noop }\n : { type: \"reset\", onClick: resetEditor }),\n }}\n submitButtonProps={{\n \"data-cy\": \"neeto-thank-you-configuration-save-button\",\n }}\n />\n </div>\n {values.kind === FORM_OPTIONS.customize.kind &&\n (CustomPreview ? (\n <CustomPreview {...{ values }} />\n ) : (\n <Preview\n {...{\n appName,\n brandingInfo,\n isPublished,\n publicLinkId,\n resubmitLink,\n socialHandles,\n thankYouTextAlignment,\n }}\n />\n ))}\n </div>\n )}\n </NeetoUIForm>\n );\n};\n\nexport default Form;\n","import React from \"react\";\n\nimport NeetoUIHeader from \"neetomolecules/Header\";\nimport { useTranslation } from \"react-i18next\";\n\nconst Header = ({ breadcrumbs }) => {\n const { t } = useTranslation();\n\n return (\n <div className=\"w-full px-6\">\n <NeetoUIHeader\n breadcrumbs={breadcrumbs}\n size=\"small\"\n title={t(\"neetoThankYou.common.thankYou\")}\n />\n </div>\n );\n};\n\nexport default Header;\n","import React from \"react\";\n\nimport { noop } from \"neetocist\";\nimport Scrollable from \"neetomolecules/Scrollable\";\n\n// eslint-disable-next-line import/extensions\nimport \"stylesheets/components/_thank-you.scss\";\n// eslint-disable-next-line import/extensions\nimport \"stylesheets/layout/_thank-you.scss\";\n\nimport { THANK_YOU_TEXT_ALIGNMENTS } from \"./constants\";\nimport Form from \"./Form\";\nimport Header from \"./Header\";\n\nconst ConfigureThankYou = ({\n breadcrumbs,\n isPublished,\n entityId,\n publicLinkId,\n resubmitLink,\n redirectToOnCancel,\n socialHandles = [],\n uniqueSubmissionLink = \"\",\n uniqueSubmissionEnabled = false,\n hasImageUploader = false,\n disableSubmitAnotherResponse = false,\n disableRadioSelection = false,\n thankYouTextAlignment = THANK_YOU_TEXT_ALIGNMENTS.center,\n customHeader,\n appName,\n blockNavigation = false,\n onConfigUpdateSuccess = noop,\n brandingInfo,\n editorProps = {},\n preview,\n allowEmptyCustomMessage = false,\n}) => (\n <>\n {customHeader || <Header {...{ breadcrumbs }} />}\n <Scrollable className=\"w-full p-6 pt-0\">\n <div className=\"mx-auto h-full max-w-7xl\">\n <Form\n {...{\n allowEmptyCustomMessage,\n appName,\n blockNavigation,\n brandingInfo,\n disableRadioSelection,\n disableSubmitAnotherResponse,\n editorProps,\n entityId,\n hasImageUploader,\n isPublished,\n onConfigUpdateSuccess,\n preview,\n publicLinkId,\n redirectToOnCancel,\n resubmitLink,\n socialHandles,\n thankYouTextAlignment,\n uniqueSubmissionEnabled,\n uniqueSubmissionLink,\n }}\n />\n </div>\n </Scrollable>\n </>\n);\n\nexport default ConfigureThankYou;\n"],"names":["FORM_OPTIONS","customize","label","t","description","kind","externalLink","DEFAULT_IMAGE_PROPERTIES","imageSignedId","imageUrl","EXTERNAL_URL_PREFIX","THANK_YOU_TEXT_ALIGNMENTS","left","center","_extends","IMAGE_SIZE_LIMIT","IMAGE_UPLOADER_CONFIG","maxImageSize","Image","setFieldValue","values","useFormikContext","handleImageChange","image","isEmpty","signedId","url","React","createElement","ImageUploader","className","key","src","uploadConfig","onUploadComplete","ResubmissionWarningModal","withT","_ref","isOpen","setIsOpen","uniqueSubmissionLink","Modal","onClose","Header","Typography","style","weight","Body","Footer","Button","onClick","to","Customize","editorRef","uniqueSubmissionEnabled","hasImageUploader","entityId","disableSocialShare","disableSubmitAnotherResponse","editorProps","isUniqueSubmissionWarningModalOpen","setIsUniqueSubmissionWarningModalOpen","useState","useTranslation","data","thankYouConfiguration","isFetching","useShowThankYouConfiguration","useEffect","message","current","editor","commands","setContent","handleResubmitLinkChange","event","target","checked","Label","FormikEditor","required","name","ref","Switch","Fragment","classNames","onChange","showResubmitLink","Input","MemoizedEditorContent","memo","EditorContent","Preview","socialHandles","thankYouTextAlignment","resubmitLink","publicLinkId","isPublished","appName","brandingInfo","lineHeight","BrowserControls","alt","content","href","resubmitLinkText","socialSharingEnabled","SocialShare","brandingEnabled","BrandingInfo","ExternalLink","autoFocus","placeholder","prefix","Link","hyphenate","buildValidationSchema","allowEmptyCustomMessage","arguments","length","undefined","yup","object","shape","string","test","value","isEditorEmpty","bool","when","is","then","redirectUrl","Form","redirectToOnCancel","disableRadioSelection","blockNavigation","onConfigUpdateSuccess","preview","CustomPreview","isLoading","mutate","updateThankYouConfiguration","isPending","isUpdatingForm","useUpdateThankYouConfiguration","useRef","PageLoader","resetEditor","NeetoUIForm","formikProps","enableReinitialize","initialValues","validationSchema","onSubmit","payload","onSuccess","_len","args","Array","_key","_ref2","BlockNavigation","Radio","containerClassName","Object","map","option","Item","active","ActionBlock","isSubmitting","cancelButtonProps","noop","type","submitButtonProps","breadcrumbs","NeetoUIHeader","size","title","ConfigureThankYou","customHeader","Scrollable"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEO,MAAMA,YAAY,GAAG;AAC1BC,EAAAA,SAAS,EAAE;AACTC,IAAAA,KAAK,EAAEC,SAAC,CAAC,kCAAkC,CAAC;AAC5CC,IAAAA,WAAW,EAAED,SAAC,CAAC,6CAA6C,CAAC;AAC7DE,IAAAA,IAAI,EAAE,gBAAA;GACP;AACDC,EAAAA,YAAY,EAAE;AACZJ,IAAAA,KAAK,EAAEC,SAAC,CAAC,qCAAqC,CAAC;AAC/CC,IAAAA,WAAW,EAAED,SAAC,CAAC,gDAAgD,CAAC;AAChEE,IAAAA,IAAI,EAAE,iBAAA;AACR,GAAA;AACF,CAAC,CAAA;AAEM,MAAME,wBAAwB,GAAG;AAAEC,EAAAA,aAAa,EAAE,IAAI;AAAEC,EAAAA,QAAQ,EAAE,EAAA;AAAG,CAAC,CAAA;AAEtE,MAAMC,mBAAmB,GAAG,UAAU,CAAA;AAEtC,MAAMC,yBAAyB,GAAG;AACvCC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,MAAM,EAAE,QAAA;AACV,CAAC;;ACtBc,SAASC,UAAQ,GAAG;AACnC,EAAEA,UAAQ,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,UAAU,MAAM,EAAE;AACtE,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC/C,MAAM,IAAI,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,KAAK,IAAI,GAAG,IAAI,MAAM,EAAE;AAC9B,Q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C5B,GAAC,GAAAhF,IAAA,CAAA;AAAA,EAAA,oBACCV,yBAAA,CAAAC,aAAA,CAAAD,yBAAA,CAAAyD,QAAA,EACGiG,IAAAA,EAAAA,YAAY,iBAAI1J,yBAAA,CAAAC,aAAA,CAACe,MAAM,EAAA;AAAOqI,IAAAA,WAAAA;AAAW,GAAK,CAAC,eAChDrJ,yBAAA,CAAAC,aAAA,CAAC0J,8BAAU,EAAA;AAACxJ,IAAAA,SAAS,EAAC,iBAAA;GACpBH,eAAAA,yBAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKE,IAAAA,SAAS,EAAC,0BAAA;AAA0B,GAAA,eACvCH,yBAAA,CAAAC,aAAA,CAACyG,IAAI,EAAA;IAEDhB,uBAAuB;IACvBnB,OAAO;IACPsC,eAAe;IACfrC,YAAY;IACZoC,qBAAqB;IACrB7E,4BAA4B;IAC5BC,WAAW;IACXH,QAAQ;IACRD,gBAAgB;IAChB0C,WAAW;IACXwC,qBAAqB;IACrBC,OAAO;IACP1C,YAAY;IACZsC,kBAAkB;IAClBvC,YAAY;IACZF,aAAa;IACbC,qBAAqB;IACrBxC,uBAAuB;AACvBd,IAAAA,oBAAAA;GAEH,CACE,CACK,CACZ,CAAC,CAAA;AAAA;;;;"}
|
|
@@ -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-b6b47745.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('@tanstack/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,yBAA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 +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":";;;;;;;;;AAAA,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,CAAC,GAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,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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;;;;;"}
|
|
@@ -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,54 @@
|
|
|
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-302df56a.js');
|
|
8
|
+
var useThankYouPageApi = require('./useThankYouPageApi-b6b47745.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/FormikEditor');
|
|
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('@bigbinary/neeto-editor/EditorContent');
|
|
33
|
+
require('./BrandingInfo-cdb9a379.js');
|
|
34
|
+
require('./utils.js');
|
|
35
|
+
require('@bigbinary/neeto-commons-frontend/utils');
|
|
36
|
+
require('./constants.js');
|
|
37
|
+
require('@bigbinary/neeto-commons-frontend/initializers');
|
|
38
|
+
require('@bigbinary/neeto-icons/Link');
|
|
39
|
+
require('@bigbinary/neeto-editor/utils');
|
|
40
|
+
require('yup');
|
|
41
|
+
require('@bigbinary/neeto-molecules/Header');
|
|
42
|
+
require('@tanstack/react-query');
|
|
43
|
+
require('axios');
|
|
44
|
+
require('./query-95d5312e.js');
|
|
45
|
+
require('dompurify');
|
|
46
|
+
|
|
47
|
+
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))}";
|
|
48
|
+
SocialShare.n(css,{});
|
|
49
|
+
|
|
50
|
+
exports.ConfigureThankYou = ConfigureThankYou;
|
|
51
|
+
exports.ShowThankYou = ShowThankYou;
|
|
52
|
+
exports.useShowThankYouConfiguration = useThankYouConfigurationApi.useShowThankYouConfiguration;
|
|
53
|
+
exports.useShowThankYouPage = useThankYouPageApi.useShowThankYouPage;
|
|
54
|
+
//# 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-302df56a.js');
|
|
4
|
+
require('@tanstack/react-query');
|
|
5
|
+
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
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-b6b47745.js');
|
|
4
|
+
require('@tanstack/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,58 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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;AAAE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
+
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
|
|
@@ -0,0 +1 @@
|
|
|
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;;;;"}
|
|
@@ -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;;;;"}
|