{"version":3,"file":"static/chunks/2091.253147d8cd3da5a7.js","mappings":"iOAUA,IAAMA,EAA+C,CACnDC,UAAW,GACXC,SAAU,GACVC,MAAO,EACT,EAeA,IAAAC,EAbmB,IACjB,GAAM,CAACC,EAAe,CAAGC,CAAAA,EAAAA,EAAAA,CAAAA,EAAYC,EAAAA,EAAiBA,EAChDC,EAA+C,MAAOC,IAC1D,IAAMC,EAAe,CAAE,GAAGD,CAAM,CAAEN,MAAOM,EAAON,KAAK,CAACQ,IAAI,EAAG,EACvDC,EAAyBC,CAAAA,EAAAA,EAAAA,CAAAA,EAAuBH,EAAcV,EACpE,OAAMK,EAAe,CAAES,UAAW,CAAEC,MAAOH,CAAuB,CAAE,EACtE,EACM,CAAEI,uBAAAA,CAAsB,CAAE,GAAGC,EAAQ,CAAGC,EAG9C,MAFAC,CAAAA,EAAAA,EAAAA,EAAAA,EAAUD,GAEH,GAAAE,EAAAC,GAAA,EAACC,EAAAA,CAAYA,CAAAA,CAACd,OAAQA,EAAQe,iBAAkBP,EAAyB,GAAGC,CAAM,EAC3F","sources":["webpack://_N_E/./src/components/NewsLetter/NewsLetter.tsx","webpack://_N_E/./src/components/NewsLetter/index.ts"],"sourcesContent":["import React from 'react'\nimport { useMutation } from '@apollo/client'\nimport NewsLetterUI, { Props } from '@interflora/ui-components/build/components/NewsLatter/NewsLetter'\nimport { populateTemplateValues } from 'utils/components'\nimport { HandleSubmit, NewsletterSignUpValues } from '@interflora/ui-components/build/common/props'\nimport { NEWSLETTER_SIGNUP } from '../../graphql/queries'\nimport NewsLetterSignUpProps from '@interflora/ui-components/build/components/NewsletterSignUp/NewsletterSignUp'\nimport { useLoaded } from '@interflora/ui-components'\n\ntype NewsLetterProps = Props & { newsLetterSignUpButton: typeof NewsLetterSignUpProps }\nconst updateSignUpTemplate: NewsletterSignUpValues = {\n firstName: '',\n lastName: '',\n email: '',\n}\n\nconst NewsLetter = (props: NewsLetterProps) => {\n const [signUpMutation] = useMutation(NEWSLETTER_SIGNUP)\n const signUp: HandleSubmit = async (values) => {\n const signUpValues = { ...values, email: values.email.trim() }\n const signUpNewsletterValues = populateTemplateValues(signUpValues, updateSignUpTemplate)\n await signUpMutation({ variables: { input: signUpNewsletterValues } })\n }\n const { newsLetterSignUpButton, ...others } = props\n useLoaded(props)\n\n return \n}\n\nexport default NewsLetter\n","export { default } from './NewsLetter'\n"],"names":["updateSignUpTemplate","firstName","lastName","email","components_NewsLetter_NewsLetter","signUpMutation","useMutation","NEWSLETTER_SIGNUP","signUp","values","signUpValues","trim","signUpNewsletterValues","populateTemplateValues","variables","input","newsLetterSignUpButton","others","props","useLoaded","jsx_runtime","jsx","NewsLetterUI","newsletterSignUp"],"sourceRoot":""}