/*! For license information please see LICENSES */
(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{1251:function(t,e,r){"use strict";r.r(e);r(172);var n=r(11),o=(r(15),r(17),r(24),r(20),r(25),r(146),r(74),r(16),r(10),r(26),r(27),r(28),r(83),r(29),r(12),r(13),r(22),r(14),r(48),r(42),r(106),r(41),r(51),r(50),r(43),r(46),r(8)),c=r.n(o),l=r(86),f=r(19),h=r(32),v=r(463);function d(){d=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,c=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof x?e:x,a=Object.create(i.prototype),o=new M(n||[]);return c(a,"_invoke",{value:S(t,r,o)}),a}function v(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var w="suspendedStart",y="suspendedYield",m="executing",s="completed",_={};function x(){}function R(){}function k(){}var p={};f(p,a,(function(){return this}));var L=Object.getPrototypeOf,E=L&&L(L($([])));E&&E!==r&&o.call(E,a)&&(p=E);var g=k.prototype=x.prototype=Object.create(p);function C(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(c,l,i,a){var f=v(t[c],t,l);if("throw"!==f.type){var u=f.arg,h=u.value;return h&&"object"==Object(n.a)(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,i,a)}),(function(t){r("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,a)}))}a(f.arg)}var l;c(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return l=l?l.then(o,o):o()}})}function S(e,r,n){var o=w;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=O(c,n);if(u){if(u===_)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===w)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var p=v(e,r,n);if("normal"===p.type){if(o=n.done?s:y,p.arg===_)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),_;var i=v(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,_;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,_):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,_)}function G(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function $(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var c=-1,i=function r(){for(;++c<e.length;)if(o.call(e,c))return r.value=e[c],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Object(n.a)(e)+" is not iterable")}return R.prototype=k,c(g,"constructor",{value:k,configurable:!0}),c(k,"constructor",{value:R,configurable:!0}),R.displayName=f(k,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===R||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,k):(t.__proto__=k,f(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},C(j.prototype),f(j.prototype,l,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new j(h(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(g),f(g,u,"Generator"),f(g,a,(function(){return this})),f(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=$,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var c=this.tryEntries.length-1;c>=0;--c){var i=this.tryEntries[c],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,_):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),_},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:$(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),_}},e}var w,y=r(52),m={name:"SectionReviewsGriffey",components:{BaseStarRating:v.a},props:{fontColor:{type:String,default:"text-dark"},backgroundColor:{type:String,default:"bg-white"},buttonVariant:{type:String,default:"outline-dark"}},data:function(){return{reviews:[],reviewsTotal:null,skip:0,num_items:0,showReviews:!0,showStagingMessage:!1}},mounted:function(){var t=this;this.$nextTick(c()(d().mark((function e(){var r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{r="https://us-central1-pug-snowplow.cloudfunctions.net/reviews-for-website-partial?take=3&stage="+h.a.stage+"&account_id="+t.accountId,t.locationFromRoute&&0!==Object.keys(t.locationFromRoute).length&&(r="https://us-central1-pug-snowplow.cloudfunctions.net/reviews-for-website-partial?take=3&location_id="+t.locationFromRoute.id+"&stage="+h.a.stage+"&account_id="+t.accountId),y.get(r).then((function(e){var r=e.data;!0===r.success&&(t.reviews=r.data.reviews,t.num_items=r.total,t.reviewsTotal=t.reviews?t.reviews.length:0,0===t.reviewsTotal&&(h.b?t.$emit("noReviews",!0):t.showStagingMessage=!0,t.showReviews=!1)),t.reviews&&t.reviewsTotal>0&&(t.reviews=t.reviews.map((function(t){return Object.assign({},t,{date_of_review:Object(l.a)(new Date(t.date_of_review),"MM/dd/yy"),truncate_length:225})})))})).catch((function(e){console.error("SectionReviewsWIth Picture Jerry: Error getting reviews: ",e,r),t.$rollbar.error("SectionReviewsWIth Picture Jerry: Error getting reviews",e)}))}catch(e){console.error("SectionReviewsGriffey: Error getting reviews: ",e),t.$rollbar.error("SectionReviewsGriffey: Error getting reviews",e)}case 1:case"end":return e.stop()}}),e)}))))},computed:Object.assign({},Object(f.c)({accountId:"clientWebsite/getAccountId",locationFromRoute:"clientWebsite/getLocationFromRoute"}),{filteredReviews:function(){return this.reviews?this.reviews.slice(0,this.skip+3):null},showLoadButton:function(){return!!(this.reviewsTotal>0&&this.reviews)&&this.reviews.length<=this.num_items-1},subtextClass:function(){return"bg-white"===this.backgroundColor?"text-black-50":this.fontColor+" font-weight-light"}}),methods:{onLoadMoreReviews:function(){this.skip+=3,this.fetchReviews()},onReadMore:function(t){this.reviews[t].truncate_length=1/0},onReadLess:function(t){this.reviews[t].truncate_length=225},fetchReviews:(w=c()(d().mark((function t(){var e,r,n,o=this;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{this.$wait.start("reviews"),e=[],this.locationFromRoute&&0!==Object.keys(this.locationFromRoute).length?(r="https://us-central1-pug-snowplow.cloudfunctions.net/reviews-for-website-partial?location_id="+this.locationFromRoute.id+"&skip="+this.skip+"&take=3&stage="+h.a.stage+"&account_id="+this.accountId,y.get(r).then((function(t){var r=t.data;!0===r.success&&r.data.reviews?(e=r.data.reviews,o.reviewsTotal+=3,0===o.reviewsTotal&&o.$emit("noReviews",!0),e.length&&(e=e.map((function(t){return Object.assign({},t,{date_of_review:Object(l.a)(new Date(t.date_of_review),"MM/dd/yy"),truncate_length:225})})),o.reviews=o.reviews.concat(e))):o.$emit("noReviews",!0)})).catch((function(t){console.error("SectionReviewsGriffey: Error getting reviews: ",t,r),o.$rollbar.error("SectionReviewsGriffey: Error getting reviews: ",t)}))):(n="https://us-central1-pug-snowplow.cloudfunctions.net/reviews-for-website-partial?skip="+this.skip+"&take=3&stage="+h.a.stage+"&account_id="+this.accountId,y.get(n).then((function(t){var r=t.data;!0===r.success&&r.data.reviews?(e=r.data.reviews,o.reviewsTotal+=3,0===o.reviewsTotal&&o.$emit("noReviews",!0),e.length&&(e=e.map((function(t){return Object.assign({},t,{date_of_review:Object(l.a)(new Date(t.date_of_review),"MM/dd/yy"),truncate_length:225})})),o.reviews=o.reviews.concat(e))):o.$emit("noReviews",!0)})).catch((function(t){console.error("SectionReviewsGriffey: Error getting reviews: 22",t,n),o.$rollbar.error("SectionReviewsGriffey: Error getting reviews: 22",t)})))}catch(t){console.error("SectionReviewsGriffey: Error getting reviews: ",t),this.$rollbar.error("SectionReviewsGriffey: Error getting reviews",t)}this.$wait.end("reviews");case 2:case"end":return t.stop()}}),t,this)}))),function(){return w.apply(this,arguments)})}},_=m,x=(r(2327),r(23)),component=Object(x.a)(_,(function(){var t=this,e=t._self._c;return e("div",[t.showReviews?e("div",{staticClass:"griffey-reviews-wrapper py-5 px-3 px-md-0",class:t.fontColor+" "+t.backgroundColor},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[t._l(t.filteredReviews,(function(r,n){return e("div",{key:n,staticClass:"col-12"},[e("div",{staticClass:"row",attrs:{"data-aos":"fade-up","data-aos-once":"true","data-aos-delay":n>2?250:100,"data-aos-offset":"0"}},[e("div",{staticClass:"col-12 col-sm-2 col-xl-1 mb-4 mb-md-0 d-flex justify-content-center align-items-center justify-content-sm-end align-items-sm-start"},["sparefoot"!==r.source?e("b-link",{attrs:{href:r.link,target:"_blank"}},[r.icon?e("b-img-lazy",{staticClass:"griffey-image rounded-circle",attrs:{src:r.icon,title:r.source+" icon",alt:r.source+" icon"}}):t._e()],1):t._e(),"sparefoot"==r.source&&r.icon?e("b-img-lazy",{staticClass:"griffey-image rounded-circle",attrs:{src:r.icon,title:r.source+" icon",alt:r.source+" icon"}}):t._e()],1),e("div",{staticClass:"col-12 col-sm-10 col-xl-11"},[r.text?e("h4",{staticStyle:{"font-size":"16px"}},[t._v('"'+t._s(t._f("truncate")(r.text,r.truncate_length))+'"'),r.text.length>225&&225===r.truncate_length?e("span",{staticClass:"cursor-pointer text-underline ml-2",on:{click:function(e){return t.onReadMore(n)}}},[t._v("read more")]):t._e(),r.truncate_length===1/0?e("span",{staticClass:"cursor-pointer text-underline ml-2",on:{click:function(e){return t.onReadLess(n)}}},[t._v("read less")]):t._e()]):e("h4",{staticClass:"py-3"}),e("div",{staticClass:"griffey-reviewer pt-2 d-flex flex-wrap flex-md-nowrap align-items-center",staticStyle:{"font-size":"14px"}},[r.rating?e("base-star-rating",{staticClass:"mr-md-1",attrs:{"star-size":15,"read-only":!0,"show-rating":!1,rating:r.rating,padding:5,"rounded-corners":!1,glowColor:"","border-color":"#ffd055"}}):t._e(),r.author?e("div",{staticClass:"col-12 col-md px-0"},[e("span",[t._v(t._s(r.author))]),r.date_of_review?e("span",[t._v(", ")]):t._e(),r.date_of_review?e("span",{class:t.subtextClass},[t._v(t._s(r.date_of_review))]):t._e(),r.source?e("span",{class:t.subtextClass},[t._v(", from ")]):t._e(),e("span",{staticClass:"text-capitalize",class:t.subtextClass},[t._v(t._s(r.source))])]):t._e()],1),t.filteredReviews&&n!==t.filteredReviews.length-1?e("div",{staticClass:"border-bottom pt-4 mb-4"}):t._e()])])])})),t.showLoadButton?e("div",{staticClass:"col-12 text-center mt-5",attrs:{"data-aos":"fade-zoom-in","data-aos-once":"true","data-aos-delay":"150","data-aos-offset":"0"}},[e("b-button",{attrs:{variant:t.buttonVariant,squared:t.isSquaredButton,pill:t.isPillButton,disabled:t.$wait&&t.$wait.is("reviews")},on:{click:t.onLoadMoreReviews}},[t._v("Show more reviews")])],1):t._e()],2)]),t.showStagingMessage?e("div",{staticClass:"container h-100 d-flex align-items-center justify-content-center",staticStyle:{"min-height":"300px"}},[t._m(0)]):t._e()]):t._e()])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row h-100"},[e("div",{staticClass:"col text-center"},[e("h3",[t._v("Reviews will show here once you have some")]),e("h5",[t._v("This message won't be here when your website goes live!")])])])}],!1,null,null,null);e.default=component.exports},2081:function(t,e,r){var content=r(2328);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(57).default)("6931bc3d",content,!0,{sourceMap:!1})},2327:function(t,e,r){"use strict";r(2081)},2328:function(t,e,r){var n=r(56)((function(i){return i[1]}));n.push([t.i,".griffey-reviews-wrapper{min-height:397px;overflow:hidden}.griffey-image{height:60px;width:60px}",""]),n.locals={},t.exports=n}}]);