{"version":3,"sources":["webpack:///./src/components/RichText.vue?9e84","webpack:///./src/components/RichText.vue?a456","webpack:///./src/components/RichText.vue?3a5a","webpack:///src/components/RichText.vue","webpack:///./src/components/RichText.vue?4d6a","webpack:///./src/components/RichText.vue","webpack:///./src/components/RichText.vue?71b7"],"names":["exports","module","push","i","render","_vm","this","_h","$createElement","_c","_self","staticClass","domProps","_s","html","staticRenderFns","injectStyles","context","style0","__inject__","component","content","__esModule","default","locals","add"],"mappings":"qGAAAA,EAAUC,EAAOD,QAAU,EAAQ,OAAR,EAAyD,GAKpFA,EAAQE,KAAK,CAACD,EAAOE,EAAI,8fAA+f,M,kCCLxhB,oH,yCCAA,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,MAAM,CAACG,SAAS,CAAC,UAAYP,EAAIQ,GAAGR,EAAIS,YAC3KC,EAAkB,G,gDCUtB,GACE,WAAF,kBAEA,wCAAI,IAAJ,uBAAI,MAAJ,oBACA,WADA,iCACA,QADA,WAKA,GACE,KAAF,WAEE,MAAF,CACI,QAAJ,QAGE,SAAF,CACI,KADJ,WAEM,IAAN,eACA,yCAEM,GAAN,gBACQ,IAAR,sIACQ,OAAR,EAEQ,OAAR,GAII,UAbJ,WAcM,QAAN,4BAGI,YAjBJ,WAkBM,QAAN,6DC5CqS,I,YCGrS,SAASC,EAAcC,GAErB,IAAIC,EAAS,EAAQ,QACnBA,EAAOC,YAAYD,EAAOC,WAAWF,GAMzC,IAAIG,EAAY,eACd,EACAhB,EACAW,GACA,EACAC,EACA,KACA,YAIa,aAAAI,E,8BCpBf,IAAIC,EAAU,EAAQ,QACnBA,EAAQC,aAAYD,EAAUA,EAAQE,SACnB,kBAAZF,IAAsBA,EAAU,CAAC,CAACpB,EAAOE,EAAIkB,EAAS,MAC7DA,EAAQG,SAAQvB,EAAOD,QAAUqB,EAAQG,QAE5C,IAAIC,EAAM,EAAQ,QAA+DF,QACpEE,EAAI,WAAYJ,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa","file":"js/chunks/chunk-27cbbf16.js?id=4acdc9d37bf009a7d2c1","sourcesContent":["exports = module.exports = require(\"../../node_modules/css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \".rich-text p{font-size:16px}.rich-text li p{margin:0}.rich-text h2,.rich-text h3{margin-top:50px}.rich-text h1 i,.rich-text h2 i,.rich-text h3 i{font-style:normal;text-transform:capitalize;color:#fff}.rich-text ul+img{margin-top:0}.rich-text a{font-weight:700}.rich-text img{margin:30px auto;display:block;max-width:100%;border-radius:5px}.rich-text blockquote{border-left:6px solid rgba(0,0,0,.05);margin:0;padding-left:15px;font-style:italic}.rich-text blockquote p{font-size:13px!important;color:#757575}\", \"\"]);\n\n// exports\n","export * from \"-!../../node_modules/vue-style-loader/index.js??ref--9-oneOf-1-0!../../node_modules/css-loader/index.js??ref--9-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-3!../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-4!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RichText.vue?vue&type=style&index=0&lang=sass&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"rich-text\"},[_c('div',{domProps:{\"innerHTML\":_vm._s(_vm.html)}})])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template lang=\"html\">\n  <div class=\"rich-text\">\n    <div v-html=\"html\"></div>\n  </div>\n</template>\n\n<script>\n  import { BLOCKS } from '@contentful/rich-text-types'\n  import { documentToHtmlString } from '@contentful/rich-text-html-renderer'\n\n\nconst options = {\n    renderNode: {\n      // Images\n      [BLOCKS.EMBEDDED_ASSET]: ({ data: { target: { fields }}}) =>\n        `<img src=\"${fields.file.url}?w=1600&fm=webp\" alt=\"${fields.title}\"/>`\n    }\n  }\n\n  export default {\n    name: 'RichText',\n\n    props: {\n      content: Object\n    },\n\n    computed: {\n      html() {\n        const content = this.content\n        let string = documentToHtmlString(content, options)\n\n        if(this.isLanding) {\n          let newString = string.replace(/linkParam/g, `${this.$route.params.slug}`).replace(/param/g, `<span class=\"param\">${this.replacement}</a>`)\n          return newString\n        } else {\n          return string\n        }\n      },\n\n      isLanding() {\n        return !!this.$route.params.service\n      },\n\n      replacement() {\n        return this.isLanding ? this.$route.params.slug.replace(/-/g, ' ') : false\n      }\n    }\n  }\n</script>\n\n<style lang=\"sass\">\n  @import '../stylesheets/base/variables'\n  @import '../stylesheets/helpers/mixins'\n\n  .rich-text\n    p\n      font-size: 16px\n\n    li\n      p\n        margin: 0\n\n    h2, h3\n      margin-top: $gap-large\n\n    h1, h2, h3\n      i\n        font-style: normal\n        text-transform: capitalize\n        color: #fff\n\n    ul + img\n      margin-top: 0\n\n    a\n      font-weight: bold\n\n    img\n      margin: $gap-medium auto\n      display: block\n      max-width: 100%\n      border-radius: 5px\n\n    blockquote\n      border-left: 6px solid rgba(0, 0, 0, 0.05)\n      margin: 0\n      padding-left: $gap-small\n      font-style: italic\n\n      p\n        font-size: 13px!important\n        color: #757575\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RichText.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RichText.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./RichText.vue?vue&type=template&id=66d07192&lang=html&\"\nimport script from \"./RichText.vue?vue&type=script&lang=js&\"\nexport * from \"./RichText.vue?vue&type=script&lang=js&\"\nfunction injectStyles (context) {\n  \n  var style0 = require(\"./RichText.vue?vue&type=style&index=0&lang=sass&\")\nif (style0.__inject__) style0.__inject__(context)\n\n}\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  injectStyles,\n  null,\n  \"6c815410\"\n  \n)\n\nexport default component.exports","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../node_modules/css-loader/index.js??ref--9-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-3!../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-4!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RichText.vue?vue&type=style&index=0&lang=sass&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"08677a41\", content, true, {\"sourceMap\":false,\"shadowMode\":false});"],"sourceRoot":""}