(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0124d4ba"],{1929:function(e,t,n){},"310c":function(e,t,n){},"8a81":function(e,t,n){"use strict";n("310c")},a4da:function(e,t,n){"use strict";n.r(t);var c=n("7a23"),i={class:"single-blog person-container",ref:"personCont"},a={class:"jessica-experience"},s={key:0,class:"jessica-picture-container"},r=["src","alt"],o={class:"experience-1"},l={key:0},u={key:1,class:"carousel",ref:"carousel"},b=["src","alt"],g={key:0,class:"caption"},d={class:"single-blog"},f={key:0};function j(e,t,n,j,O,h){var m,p=Object(c["D"])("WorkTogether");return Object(c["v"])(),Object(c["f"])(c["a"],null,[Object(c["g"])("div",i,[Object(c["g"])("div",a,[null!==(m=O.featuredImage)&&void 0!==m&&m.asset?(Object(c["v"])(),Object(c["f"])("div",s,[Object(c["g"])("img",{src:O.featuredImage.asset.url,alt:O.title,class:"jessica-img featured-image"},null,8,r)])):Object(c["e"])("",!0),Object(c["g"])("h1",{class:"jessica-name",ref:"title"},Object(c["G"])(O.title),513),Object(c["g"])("div",o,[O.content&&O.content.length>0?(Object(c["v"])(),Object(c["f"])("div",l,[(Object(c["v"])(!0),Object(c["f"])(c["a"],null,Object(c["B"])(O.content,(function(e,t){return Object(c["v"])(),Object(c["f"])("div",{key:t},[(Object(c["v"])(),Object(c["d"])(Object(c["E"])(h.getComponentType(e)),Object(c["r"])(Object(c["m"])(e)),{default:Object(c["L"])((function(){return[Object(c["i"])(Object(c["G"])(e.children?e.children[0].text:""),1)]})),_:2},1040))])})),128))])):Object(c["e"])("",!0),O.imageCarousel&&O.imageCarousel.length>0?(Object(c["v"])(),Object(c["f"])("div",u,[(Object(c["v"])(!0),Object(c["f"])(c["a"],null,Object(c["B"])(O.imageCarousel,(function(e){return Object(c["v"])(),Object(c["f"])("div",{key:e.asset._id,class:"carousel-image"},[Object(c["g"])("img",{src:e.asset.url,alt:e.alt||"Blog image"},null,8,b),e.caption?(Object(c["v"])(),Object(c["f"])("p",g,Object(c["G"])(e.caption),1)):Object(c["e"])("",!0)])})),128))],512)):Object(c["e"])("",!0)])])],512),Object(c["g"])("div",d,["/work-together"!==e.$route.fullPath?(Object(c["v"])(),Object(c["f"])("div",f,[Object(c["j"])(p)])):Object(c["e"])("",!0)])],64)}var O=n("7ed9"),h=n("5d4f"),m=n("1157"),p=n.n(m),v=(n("65e8"),n("b725"),n("2bb9"),'*[_type == "blog" && slug.current == $slug][0]{\n _id,\n title,\n slug,\n description,\n content,\n featuredImage {\n asset->{\n _id,\n url\n }\n },\n imageCarousel[] {\n asset->{\n _id,\n url\n },\n caption,\n alt\n }\n}'),k={name:"SingleBlog",components:{WorkTogether:h["a"]},data:function(){return{loading:!0,pages:null,title:"",content:[],imageCarousel:[],featuredImage:null,error:""}},created:function(){this.fetchPage()},mounted:function(){var e=this;this.$nextTick((function(){e.initializeCarousel()}))},watch:{imageCarousel:{handler:function(){var e=this;this.$nextTick((function(){e.initializeCarousel()}))},immediate:!0}},methods:{fetchPage:function(){var e=this;this.error=this.pages=null,this.loading=!0,O["a"].fetch(v,{slug:this.$route.params.slug}).then((function(t){e.loading=!1,e.pages=t,e.title=t.title,e.content=t.content,e.imageCarousel=t.imageCarousel,e.featuredImage=t.featuredImage}),(function(t){console.error(t),e.error="Failed to fetch data"}))},getComponentType:function(e){if("block"===e._type)switch(e.style){case"h1":return"h1";case"h2":return"h2";case"h3":return"h3";case"h4":return"h4";case"blockquote":return"blockquote";default:return"p"}return"div"},initializeCarousel:function(){this.imageCarousel&&this.imageCarousel.length>0&&p()(this.$refs.carousel).slick({slidesToShow:1,slidesToScroll:1,fade:!0,arrows:!1,dots:!0,infinite:!0,responsive:[{breakpoint:768,settings:{slidesToShow:1,slidesToScroll:1}}]})}}},C=(n("8a81"),n("cb42"),n("6b0d")),w=n.n(C);const y=w()(k,[["render",j]]);t["default"]=y},cb42:function(e,t,n){"use strict";n("1929")}}]); //# sourceMappingURL=chunk-0124d4ba.c759b21e.js.map