{"version":3,"sources":["webpack:///./src/components/icons/Contact.js","webpack:///./src/pages/contact.js"],"names":["Contact","props","React","createElement","IoniconSVG","Object","assign","fill","viewBox","strokeWidth","xmlns","d","FormInput","_ref","name","onChange","onBlur","formatValue","_objectWithoutPropertiesLoose","_excluded","Field","render","_ref2","fieldOnBlur","fieldOnChange","renderError","setValue","valid","field","form","_excluded2","Fragment","TextField","composeHandlers","e","target","value","error","Description","className","schema","yup","shape","email","required","full_name","comments","phone","positive","_useState","useState","sent","setSent","Layout","Helmet","title","Container","IconContainer","color","ContactIcon","size","Form","validationSchema","onSubmit","params","fetch","method","headers","body","JSON","stringify","then","FormControl","fullWidth","margin","label","Button","type","variant"],"mappings":"gPAkBeA,EAfC,SAAAC,GAAK,OACnBC,IAAAC,cAACC,IAAUC,OAAAC,OAAA,CACTC,KAAK,eACLC,QAAQ,cACRC,YAAa,GACTR,GAEJC,IAAAC,cAAA,aAAO,WACPD,IAAAC,cAAA,QACEO,MAAM,6BACNC,EAAE,4S,qLCDFC,EAAY,SAAHC,GAAA,IAAMC,EAAID,EAAJC,KAAMC,EAAQF,EAARE,SAAUC,EAAMH,EAANG,OAAQC,EAAWJ,EAAXI,YAAgBhB,EAAKiB,IAAAL,EAAAM,GAAA,OAChEjB,IAAAC,cAACiB,IAAK,CACJN,KAAMA,EACNO,OAAQ,SAAAC,GAAA,IACEC,EAAWD,EAAnBN,OACUQ,EAAaF,EAAvBP,SACAU,EAAWH,EAAXG,YACAC,EAAQJ,EAARI,SACAC,EAAKL,EAALK,MAEGC,GADCN,EAAJO,KACQX,IAAAI,EAAAQ,IAAA,OAER5B,IAAAC,cAAAD,IAAA6B,SAAA,KACE7B,IAAAC,cAAC6B,IAAS3B,OAAAC,OAAA,GACJL,EACA2B,EAAK,CACTZ,OAAQiB,YAAgBV,EAAaP,GACrCD,SAAU,SAAAmB,GACRnB,GAAYA,EAASmB,GACrBjB,EACIS,EAAST,EAAYiB,EAAEC,OAAOC,QAC9BZ,EAAcU,IA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S,EAAS,CAACE,KAAK,QAAQ6D,MAAM,WAEhCzE,IAAAC,cAACqE,IAAW,CAACC,WAAS,EAACC,OAAO,SAC5BxE,IAAAC,cAACS,EAAS,CAACE,KAAK,WAAW6D,MAAM,cAEnCzE,IAAAC,cAACqE,IAAW,KACVtE,IAAAC,cAAA,KAAGoC,UAAU,WAAU,wKAMzBrC,IAAAC,cAACqE,IAAW,CAACC,WAAS,EAACC,OAAO,SAC5BxE,IAAAC,cAAA,OAAKoC,UAAU,oBACbrC,IAAAC,cAACyE,IAAM,CACLC,KAAK,SACLC,QAAQ,YACRpB,MAAM,UACNnB,UAAU,gBACX","file":"component---src-pages-contact-js-04130e1053b36875b2e2.js","sourcesContent":["import React from 'react'\nimport IoniconSVG from './IoniconSVG'\n\nconst Contact = props => (\n \n contact\n \n \n)\n\nexport default Contact\n","import React, { useState } from 'react'\nimport * as yup from 'yup'\nimport Helmet from 'react-helmet'\nimport Layout from 'components/Layout'\nimport Form from 'components/Form'\nimport Container from 'components/Container'\nimport ContactIcon from 'components/icons/Contact'\nimport Field from 'components/Form/Field'\nimport IconContainer from 'components/icons/Container'\nimport { Button, FormControl, TextField } from '@material-ui/core'\nimport composeHandlers from 'utils/composeHandlers'\n\nconst FormInput = ({ name, onChange, onBlur, formatValue, ...props }) => (\n (\n <>\n {\n onChange && onChange(e)\n formatValue\n ? setValue(formatValue(e.target.value))\n : fieldOnChange(e)\n }}\n error={!valid}\n />\n {renderError()}\n \n )}\n />\n)\n\nconst Description = props => (\n

\n)\n\nconst schema = yup.object().shape({\n email: yup\n .string()\n .email('Email must be a valid email address')\n .required(\"Email can't be blank\"),\n full_name: yup.string().required(\"Full name can't be blank\"),\n comments: yup.string().required(\"Comments can't be blank\"),\n phone: yup\n .number()\n .required(\"Phone number can't be blank\")\n .positive()\n})\n\nconst Contact = () => {\n const [sent, setSent] = useState(false)\n\n return (\n \n \n \n

\n \n \n \n Contact Us\n

\n \n Please feel free to call us with any comments or questions at (503)\n 518-3384. If you prefer to contact us online, you may e-mail us any\n questions or comments by filling out the form below. A staff member\n will respond to your e-mail shortly.\n \n\n Thank you for your interest in our practice!\n
\n {sent ? (\n Successfully sent\n ) : (\n \n fetch(\n 'https://ins429.dynu.net:60429/oregon-city-smiles/contact_us',\n {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify(params)\n }\n ).then(() => {\n setSent(true)\n })\n }\n >\n \n \n \n \n \n \n \n \n \n \n \n \n \n

\n *Personal health information of any kind should not be\n included in comments sent from this form. Please call our\n office to communicate personal health information.\n

\n
\n \n
\n \n Send\n \n
\n
\n \n )}\n
\n \n \n )\n}\n\nexport default Contact\n"],"sourceRoot":""}