{"version":3,"sources":["webpack:///./src/components/contact.js","webpack:///./src/pages/wechat-advertising-service.js"],"names":["Contact","props","state","messageSent","contactSchema","Yup","shape","name","min","max","required","matches","email","companyName","phoneNumber","positive","message","render","id","className","initialValues","to","cc","validationSchema","this","onSubmit","values","resetForm","axios","method","url","data","then","response","statusCode","setState","prevState","catch","error","console","log","errors","touched","placeholder","type","component","rows","React","Component","WechatAdvertisingPage","metaData","get","servicesNav","HeroSection","MainSection","title","style","background","backgroundSize","src","alt","image","map","benfit","index","key","solution","pageQuery"],"mappings":"sNAOMA,E,YAEL,WAAYC,GAAQ,IAAD,SAClB,cAAMA,IAAN,MACKC,MAAQ,CACZC,aAAa,GAEd,EAAKC,cAAgBC,WAAaC,MAAM,CACvCC,KAAMF,WAAaG,IAAI,EAAG,cAAcC,IAAI,GAAI,aAAaC,SAAS,YAAYC,QAAQ,SAAS,wBACnGC,MAAOP,WAAaO,MAAM,iBAAiBF,SAAS,aACpDG,YAAaR,WAAaG,IAAI,EAAG,cAAcE,SAAS,aACxDI,YAAaT,WAAaK,SAAS,YAAYK,WAC/CC,QAASX,UAAYK,SAAS,cAVb,E,4BAcnBO,OAAA,WAAU,IAAD,OACR,OACA,6BAASC,GAAG,UAAUC,UAAU,gCAC/B,yBAAKA,UAAU,aACd,wBAAIA,UAAU,qEAAd,cACA,kBAAC,IAAD,CACCC,cAAe,CACdC,GAAG,iCACHC,GAAG,+BACHf,KAAK,GACLK,MAAM,GACNC,YAAY,GACZC,YAAY,GACZE,QAAQ,IAETO,iBAAkBC,KAAKpB,cACvBqB,SAAU,SAACC,EAAD,GAA0B,IAAhBC,EAAe,EAAfA,UAEnBC,IAAM,CACLC,OAAQ,OACRC,IAAI,0EACJC,KAAK,OAAQL,EAAM,GAAf,QAA6BA,EAAM,GAAnC,aAAsDA,EAAM,MAA5D,SAA8EA,EAAM,KAApF,UAAsGA,EAAM,MAA5G,YAAiIA,EAAM,YAAvI,UAAgKA,EAAM,YAAtK,YAAiMA,EAAM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GA,wBAAIA,UAAU,kCACd,yBAAKA,UAAU,wBAjFZ,CACf,CACIoC,MAAM,qCACNM,MAAM,oDAEV,CACIN,MAAM,6BACNM,MAAM,8CAEV,CACIN,MAAM,+CACNM,MAAM,+DAwEqBC,KAAI,SAACI,EAAUF,GACtB,OACI,yBAAK7C,UAAU,wCAAwC8C,IAAKD,GACxD,wBAAI7C,UAAU,SAAS+C,EAASX,OAChC,4BAAQpC,UAAU,SACd,yBAAKwC,IAAKO,EAASL,MAAOD,IAAKM,EAASX,gBASxE,6BAASpC,UAAU,WACf,yBAAKA,UAAU,cACX,yBAAKA,UAAU,uBACX,yBAAKA,UAAU,eACX,wBAAIA,UAAU,2BAAd,wH,GAjIN4B,IAAMC,WA8IjBC,YAER,IAAMkB,EAAS","file":"component---src-pages-wechat-advertising-service-js-3bd6578cd771b086a2c4.js","sourcesContent":["import React from 'react'\nimport Img from 'gatsby-image'\nimport { Link } from 'gatsby'\nimport { Formik, Form, Field} from 'formik'\nimport * as Yup from 'yup'\nimport axios from 'axios'\n\nclass Contact extends React.Component {\n\n\tconstructor(props) {\n\t\tsuper(props)\n\t\tthis.state = {\n\t\t\tmessageSent: false\n\t\t}\n\t\tthis.contactSchema = Yup.object().shape({\n\t\t\tname: Yup.string().min(2, 'Too Short!').max(50, 'Too Long!').required('Required').matches(/[^0-9]/,'Numbers in the name?'),\n\t\t\temail: Yup.string().email('invalid email').required('Required!'),\n\t\t\tcompanyName: Yup.string().min(2, 'Too short!').required('Required!'),\n\t\t\tphoneNumber: Yup.number().required('Required').positive(),\n\t\t\tmessage: Yup.mixed().required('Required')\n\t\t})\n\t}\n\n\trender() {\n\t\treturn(\n\t\t
\n\t\t\t
\n\t\t\t\t

Contact Us

\n\t\t\t\t {\n\t\t\t\t\t\t// same shape as initial values\n\t\t\t\t\t\taxios({\n\t\t\t\t\t\t\tmethod: 'post',\n\t\t\t\t\t\t\turl:'https://8dbp32h7ge.execute-api.eu-west-1.amazonaws.com/dev/?format=json',\n\t\t\t\t\t\t\tdata: `_to=${values[\"to\"]}&_cc=${values[\"cc\"]}&_replyTo=${values[\"email\"]}&name=${values[\"name\"]}&email=${values[\"email\"]}&company=${values[\"companyName\"]}&phone=${values[\"phoneNumber\"]}&message=${values[\"message\"]}`,\n\t\t\t\t\t\t}).then((response) => {\n\t\t\t\t\t\t\tif (response.data.statusCode==200) {\n\t\t\t\t\t\t\t\tthis.setState(prevState => ({\n\t\t\t\t\t\t\t\t\tmessageSent: !prevState.messageSent\n\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tresetForm({\n\t\t\t\t\t\t\t\tto:'sarahyam%40reddigitalchina.com',\n\t\t\t\t\t\t\t\tcc:'sunqqxp%40gmail.com',\n\t\t\t\t\t\t\t\tname:'',\n\t\t\t\t\t\t\t\temail:'',\n\t\t\t\t\t\t\t\tcompanyName:'',\n\t\t\t\t\t\t\t\tphoneNumber:'',\n\t\t\t\t\t\t\t\tmessage:'',\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}).catch((error) => {\n\t\t\t\t\t\t\tconsole.log(error)\n\t\t\t\t\t\t})\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{({errors, touched}) => (\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t{this.state.messageSent ? (

Thanks for your message we will get back to you within 3 business days

) : null}\n\t\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\t\t\t\t{errors.name && touched.name ? (

{errors.name}

) : null}\n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\t\t\t\t{errors.email && touched.email ? (

{errors.email}

) : null}\n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\t\t\t\t{errors.companyName && touched.companyName ? (

{errors.companyName}

) : null}\n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\t\t\t\t{errors.phoneNumber && touched.phoneNumber ? (

Wrong phone number format, please enter number only

) : null}\n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t{errors.message && touched.message ? (

{errors.message}

) : null}\n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t)}\t\n\t\t\t\t
\n\n\t\t\t
\n\t\t
\n\t)}\n}\n\nexport default Contact","import React from 'react'\nimport { graphql } from 'gatsby'\nimport get from 'lodash/get'\nimport SiteMeta from '../components/meta-data'\nimport Nav from '../components/navigation'\nimport Contact from '../components/contact'\nimport Footer from '../components/footer'\n\nclass WechatAdvertisingPage extends React.Component{\n\n render(){\n const metaData = get(this.props, 'data.site.siteMetadata.wechatAdvertisingPage')\n const servicesNav = get(this.props,'data.allContentfulOurServices.edges')\n return(\n
\n \n \n \n \n
\n )\n }\n\n}\n\nclass HeroSection extends React.Component {\n render() {\n const title = \"wechat advertising solution\"\n const subtitle = \"reach chinese tourists in UK & Europe\"\n const heroImage = {\n background:`linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(\"/img/wechat/banner-background.jpg\")`,\n backgroundSize:'cover' \n }\n const {servicesNav} = this.props\n return(\n
\n
\n
\n
\n
\n
\n
\n
\n {title}/ \n
\n
\n
\n
\n

{title}

\n

{subtitle}

\n
\n
\n
\n
\n
\n
\n )\n }\n}\n\nclass MainSection extends React.Component {\n render() {\n const benefits = [\n {\n title:\"Sale leads generation\",\n image:\"/img/wechat/sale-leads-generation.svg\"\n },\n {\n title:\"M-commerce promotion\",\n image:\"/img/wechat/m-commerce-promotion.svg\"\n },\n {\n title:\"Online to Offline retail store promotion\",\n image:\"/img/wechat/online-to-offline-retail-store-promotion.svg\"\n },\n {\n title:\"Promote WeChat official account\",\n image:\"/img/wechat/promote-wechat-official-account.svg\"\n },\n {\n title:\"Promote WeChat mini program\",\n image:\"/img/wechat/promote-wechat-mini-program.svg\"\n },\n {\n title:\"Promote seasonal promotion with coupon\",\n image:\"/img/wechat/promote-seasonal-promotion-with-coupon.svg\"\n }\n ]\n const soulutions = [\n {\n title:\"Localized ads copywriting & design\",\n image:\"/img/wechat/localized-ads-copywriting-design.svg\"\n },\n {\n title:\"Advertising media planning\",\n image:\"/img/wechat/advertising-media-planning.svg\"\n },\n {\n title:\"Advertising analytics & campaign measurement\",\n image:\"/img/wechat/advertising-analytics-campaign-measurement.svg\" \n }\n\n ]\n return(\n
\n
\n
\n

\n Opportunity that brands can’t miss\n

\n
\n
\n
\n
\n \"Opportunity\n
\n
\n
\n

Europe has become the favoriate long haul travel destination among Chinese tourists. \n Chinese tourism in Europe keep growing in 2019 and beyond. \n Engage with Red Digital China with a team of Chinese tourism \n sales consultant and Chinese digital marketing experts to help you reach Chinese group and individaul travel tourists with our WeChat advertising solution.

\n
\n
\n
\n
\n
\n
\n

\n WeChat Eco-System \n

\n
\n
\n
\n
\n \"wechat\n
\n
\n
\n
\n
\n
\n
\n

\n WeChat advertising benefits \n

\n
\n
\n {\n benefits.map((benfit, index)=>{\n return(\n
\n

{benfit.title}

\n
\n {benfit.title}/\n
\n
\n )\n }) \n } \n
\n
\n
\n
\n
\n

\n WeChat advertising solution \n

\n
\n
\n {\n soulutions.map((solution, index)=>{\n return(\n
\n

{solution.title}

\n
\n {solution.title}/\n
\n
\n )\n }) \n } \n
\n
\n
\n
\n
\n
\n
\n

\n Want to learn more our completed WeChat advertising targeting features and solution? Contact us to learn more! \n

\n
\n
\n
\n
\n\n
\n ) \n }\n}\n\nexport default WechatAdvertisingPage\n\nexport const pageQuery = graphql`\n query WechatAdvertisingPage {\n site {\n siteMetadata {\n wechatAdvertisingPage {\n title\n description\n imageUrl\n siteUrl\n }\n }\n } \n allContentfulOurServices(filter: {node_locale: {eq: \"en-GB\"}}, sort: {order: ASC, fields: order}) {\n edges {\n node {\n title\n slug\n }\n }\n } \n }\n`"],"sourceRoot":""}