{"version":3,"sources":["webpack:///./src/components/SoMeShare.js","webpack:///./src/templates/articleTemplate.js","webpack:///./src/icons/Twitter.js","webpack:///./src/icons/email.svg"],"names":["SoMeShare","title","url","query","render","data","className","linkText","Facebook","fill","externalURL","Twitter","PageTemplate","path","pageData","sanityStory","sanityStoryFromProfessional","sanityPost","videourl","isYouTubeVideo","split","join","indexOf","isVimeoVideo","vimeoVideoId","length","youtubeVideoId","displayTitle","description","intro","pathname","sanitySiteSettings","image","mainImage","asset","fixed","src","width","height","frameBorder","allow","allowFullScreen","alt","_rawBody","blocks","style","author","publishedAt","name","slug","current","props","viewBox","fillRule","xmlns","id","clipRule","d","React","Email","createElement","defaultProps","module","exports","default"],"mappings":"oQA8CeA,EArCG,SAAC,GAAD,IAAEC,EAAF,EAAEA,MAAMC,EAAR,EAAQA,IAAR,OAEhB,YAAC,cAAD,CACEC,MAAK,aAQLC,OAAQ,SAAAC,GAAI,OACV,mBAAKC,UAAU,WAEb,YAAC,IAAD,CACEA,UAAU,yBACVC,SAAU,oBAAMD,UAAU,QAAO,YAACE,EAAA,EAAD,CAAUC,KAAM,WACjDC,YAAW,gDAAkDR,IAG/D,YAAC,IAAD,CACEI,UAAU,yBACVC,SAAU,oBAAMD,UAAU,QAAO,YAACK,EAAA,EAAD,CAASF,KAAM,WAChDC,YAAW,iCAAmCT,EAAnC,QAAgDC,IAG7D,YAAC,IAAD,CACEI,UAAU,yBACVC,SAAU,oBAAMD,UAAU,QAAO,YAAC,IAAD,CAAOG,KAAM,WAC9CC,YAAW,mBAAqBT,EAArB,SAAmCC,S,YC9BzC,SAASU,EAAT,GAAuC,IAAfC,EAAc,EAAdA,KAAMR,EAAQ,EAARA,KAErCS,EAAWT,EAAOA,EAAKU,aAAeV,EAAKW,6BAA+BX,EAAKY,WAAa,KAE5FC,EAAWJ,GAAYA,EAASI,SAEhCC,EAAiBD,GAAYA,EAChCE,MAAM,KACNC,OACAD,MAAM,KACNE,QAAQ,YAAc,EAEnBC,EAAeL,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iC,cAC5B,uBACE,oBAAMF,MAAO,CAAC,QAAW,UACtB/B,EAASgC,QAAT,MAAyBhC,EAASgC,OAAOE,MAE5C,oBAAMH,MAAO,CAAC,QAAW,UACtB/B,EAASiC,aAAT,aAAqCjC,EAASiC,cAIrD,uBACE,YAAC,EAAD,CACE9C,MAAOa,EAASb,MAChBC,IAAQG,EAAK0B,mBAAmB7B,IAA7B,YAA4CY,EAASmC,KAAKC,mB,oCChHnF,0BASevC,IAPC,SAACwC,GAAD,OACd,mBAAKd,MAAM,KAAKC,OAAO,KAAKc,QAAQ,YAAYC,SAAS,OAAOC,MAAM,8BACpE,iBAAGC,GAAG,0BACJ,oBAAMC,SAAS,UAAUC,EAAE,u6DAAu6DhD,KAAM0C,EAAM1C,W,qBCLp9D,IAAIiD,EAAQ,EAAQ,QAEpB,SAASC,EAAOR,GACZ,OAAOO,EAAME,cAAc,MAAMT,EAAMO,EAAME,cAAc,OAAO,CAAC,SAAW,UAAU,SAAW,UAAU,EAAI,qNAAqN,KAAO,WAGjVD,EAAME,aAAe,CAAC,MAAQ,KAAK,OAAS,KAAK,QAAU,YAAY,KAAO,QAE9EC,EAAOC,QAAUJ,EAEjBA,EAAMK,QAAUL","file":"component---src-templates-article-template-js-d3f8af18c744b432f1f3.js","sourcesContent":["import React from 'react';\nimport { graphql, StaticQuery } from \"gatsby\";\n\nimport Facebook from \"./../icons/Facebook\";\nimport Twitter from \"./../icons/Twitter\";\nimport Email from \"./../icons/email.svg\";\n\nimport Link from \"./editorial/link\";\n\nconst SoMeShare = ({title,url}) => (\n\n (\n
\n\n } \n externalURL={`https://www.facebook.com/sharer/sharer.php?u=${url}`}\n />\n\n }\n externalURL={`http://twitter.com/share?text=${title}&url=${url}`}\n />\n\n }\n externalURL={`mailto:?subject=${title}&body=${url}`}\n />\n\n
\n )}\n />\n \n);\nexport default SoMeShare;\n","import React from \"react\"\nimport { graphql } from 'gatsby'\n\nimport Body from \"../components/editorial/body\";\nimport Container from '../components/layout/container'\nimport SoMeShare from '../components/SoMeShare'\nimport SEO from '../components/seo'\n\nexport default function PageTemplate({ path, data }) {\n \n const pageData = data ? data.sanityStory || data.sanityStoryFromProfessional || data.sanityPost : null\n\n const videourl = pageData && pageData.videourl\n\n const isYouTubeVideo = videourl && videourl\n .split('/')\n .join()\n .split('.')\n .indexOf('youtube') > -1\n\n const isVimeoVideo = videourl && videourl\n .split('/')\n .join()\n .indexOf('vimeo.com') > -1\n\n const vimeoVideoId = videourl && videourl\n .split('/')[videourl.split('/').length - 1]\n\n const youtubeVideoId = videourl && videourl\n .split('/')\n .join()\n .split('=')[videourl.split('/').join().split('=').length - 1]\n\n\n return (\n \n\n \n\n
\n\n {videourl &&\n\n
\n\n
\n \n