(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{"7pVj":function(e,a,t){"use strict";var r=t("q1tI"),n=t.n(r);a.a=function(e){var a,t=e.moreCTA,c=e.moreText,l=e.moreTitle,i=Object(r.useState)([]),s=i[0],o=i[1],m=[],u=[];return n.a.createElement("div",{className:"accordion "+(a=0,s.accordion&&s.accordion[a]?"open":"closed")},n.a.createElement("div",{className:"accordion-title",onClick:function(e){e.preventDefault(),function(e,a){var t=a.currentTarget.parentNode.getElementsByClassName("accordion-body-inner")[0].offsetHeight,r=!0;void 0!==s.accordion&&(r=!s.accordion[e]),m[e]=r,u[e]=t,o({accordion:m,height:u})}(0,e)}},t,n.a.createElement("div",{className:"cross"})),n.a.createElement("div",{className:"accordion-body",style:{height:function(e){return s.height?s.height[e]:0}(0)}},n.a.createElement("div",{className:"accordion-body-inner"},n.a.createElement("div",{className:"accordion-body-inner"},l&&n.a.createElement("h3",null,l),n.a.createElement("div",{dangerouslySetInnerHTML:{__html:c}})))))}},"82kg":function(e,a,t){"use strict";var r=t("q1tI"),n=t.n(r),c=t("Wbzz"),l=t("vDqi"),i=t.n(l);t("xhuL");a.a=function(e){var a=e.searchTitle,t=e.placeholderCopy,l=Object(r.useState)(!1),s=l[0],o=l[1],m=Object(r.useState)([]),u=m[0],d=m[1],v=Object(r.useState)(!1),p=v[0],E=v[1];return n.a.createElement("section",{className:"search-form-wrapper"},n.a.createElement("div",{className:"container"},n.a.createElement("div",{className:"row justify-content-center"},n.a.createElement("div",{className:"col-5 col-lg-5"},n.a.createElement("div",{className:"card"},n.a.createElement("div",{className:"card-body text-center"},n.a.createElement("h4",null,a),n.a.createElement("form",{className:"form-inline justify-content-center",onSubmit:function(e){e.preventDefault()}},n.a.createElement("div",{className:"form-group form-group-suggestion"},n.a.createElement("input",{type:"text",className:"form-control form-control-lg",id:"zip",name:"zip",placeholder:t,onChange:function(e){var a;a=e.target.value,E(!0),i.a.post("https://www.dinggo.com.au/endpoints/postcodeseosearch",{keyword:a,url:window.location.href}).then((function(e){var a=e.data;a.success&&null!==a.data?d(a.data):d([]),E(!1)}))},onFocus:function(){o(!1)}}),p&&n.a.createElement("div",{className:"lds-ring"},n.a.createElement("div",null),n.a.createElement("div",null),n.a.createElement("div",null),n.a.createElement("div",null)),n.a.createElement("span",{className:"icon-search"}),u&&u.length>0&&n.a.createElement("ul",{className:"suggestion-wrapper "+(s?"hide":"")},u.map((function(e,a){return n.a.createElement("li",{key:e.list+"-"+a,onClick:function(a){!function(e,a){e.preventDefault(),o(!0),Object(c.navigate)(a)}(a,e.url)}},e.list)})))))))))))}},H9HT:function(e,a,t){"use strict";var r=t("q1tI"),n=t.n(r),c=t("40+L"),l=t.n(c),i=t("oxxs");t("VLDe"),t("vF7b");a.a=function(e){var a=e.reviews;return 0===a.length?null:n.a.createElement("div",{className:"customer-reviews-wrapper"},n.a.createElement("div",{className:"container"},n.a.createElement("div",{className:"intro"},n.a.createElement("h2",null,"Latest Customer Reviews")),n.a.createElement(l.a,{additionalTransfrom:0,arrows:!1,infinite:!1,autoPlay:!0,autoPlaySpeed:3e4,centerMode:!1,className:"",dotListClass:"",draggable:!0,focusOnSelect:!1,keyBoardControl:!0,minimumTouchDrag:80,partialVisible:!0,renderButtonGroupOutside:!1,renderDotsOutside:!1,responsive:{desktop:{breakpoint:{max:6e3,min:1024},items:3,partialVisibilityGutter:0},tablet:{breakpoint:{max:1100,min:767},items:2,partialVisibilityGutter:30},mobile:{breakpoint:{max:464,min:0},items:1,partialVisibilityGutter:30}},showDots:"undefined"==typeof window||(window.innerWidth>1024?a.length>3:a.length>1),swipeable:!0},a.length>0&&a.map((function(e){return n.a.createElement("div",{className:"customer-review-slide",key:e.reviewText},n.a.createElement("div",{className:"customer-review-slide-inner"},n.a.createElement("div",{className:"review"},e.reviewText),n.a.createElement("div",{className:"rating-stars-container"},n.a.createElement("span",{className:"rating-stars rating-stars-off"},"★★★★★"),n.a.createElement("span",{className:"rating-stars rating-stars-on",style:{width:Object(i.a)(e.rating)+"%"}},"★★★★★")),n.a.createElement("div",{className:"review-author"},e.customerName," - ",e.reviewDate),n.a.createElement("div",{className:"review-car"},e.pbName)))})))))}},fOH8:function(e,a,t){"use strict";var r=t("q1tI"),n=t.n(r);a.a=function(e){var a=e.title,t=e.faqs,c=Object(r.useState)([]),l=c[0],i=c[1],s=[],o=[],m=function(e){return!!l.accordion&&l.accordion[e]},u=function(e){return l.height?l.height[e]:0};return n.a.createElement("div",{className:"services-faq-wrapper"},n.a.createElement("div",{className:"container"},n.a.createElement("h2",null,a),t.map((function(e,a){return n.a.createElement("div",{className:"accordion "+(m(a)?"open":"closed"),key:e.question+"-"+a},n.a.createElement("div",{className:"accordion-title",onClick:function(e){e.preventDefault(),function(e,a){var t=a.currentTarget.parentNode.getElementsByClassName("accordion-body-inner")[0].offsetHeight,r=!0;void 0!==l.accordion&&(r=!l.accordion[e]),s[e]=r,o[e]=t,i({accordion:s,height:o})}(a,e)}},e.question,n.a.createElement("div",{className:"cross"})),n.a.createElement("div",{className:"accordion-body",style:{height:u(a)}},n.a.createElement("div",{className:"accordion-body-inner",dangerouslySetInnerHTML:{__html:e.answer}})))}))))}},m5uw:function(e,a,t){"use strict";t.r(a),t.d(a,"query",(function(){return g}));var r=t("q1tI"),n=t.n(r),c=t("Wbzz"),l=t("9eSz"),i=t.n(l),s=t("Bl7J"),o=t("vrFN"),m=t("A6Tw"),u=t("H9HT"),d=t("wqLW"),v=t("rpg5"),p=t("yptg"),E=t("82kg"),f=t("fOH8"),h=t("7pVj"),b=t("xBJI"),g=(t("sp9E"),"3685203897");a.default=function(e){var a=e.data,t=a.seocarstate;null===t&&(t=a.seoservicestate);var r=t,l=r.seo,g=r.breadcrumbs,N=r.states,w=r.reviews,y=r.faq,x=r.jumbotron,T=r.moreInfo,k=r.exploreInfo,q=r.aboutInfo,_=r.searchText,I=r.quoteInfo,C=r.searchPlaceholder,L=r.structuredData;return n.a.createElement(s.a,{wrapperClass:"standard-page service-list-wrapper",showSiteIndex:!0,hideHeaderFooter:!0},n.a.createElement(o.a,{title:l.title,description:l.title,canonical:l.canonical,stucturedData:L,ogTitle:l.og.title,ogDescription:l.og.description,ogImage:l.og.image,ogType:l.og.type,ogUrl:l.og.url}),n.a.createElement(m.a,null),n.a.createElement(d.a,{subHeading:x.header,title:x.body,btnText:x.button}),n.a.createElement(v.a,{breadcrumbs:g}),n.a.createElement(E.a,{searchTitle:_,placeholderCopy:C}),n.a.createElement("div",{className:"container"},k&&n.a.createElement(p.a,{title:k.header,text:k.body,classWrapper:"intro"}),n.a.createElement("div",{className:"row"},N.map((function(e){return n.a.createElement(c.Link,{to:e.url,className:"service-tile col-3 text-center",key:e.state},n.a.createElement("div",{className:"card"},n.a.createElement("div",{className:"card-body"},e.photoLink.local&&n.a.createElement("div",{className:"service-tile-image"},n.a.createElement(i.a,{fluid:e.photoLink.local.childImageSharp.fluid})),n.a.createElement("h3",null,e.state))))}))),T&&n.a.createElement(h.a,{moreCTA:T.title,moreText:T.body,moreTitle:T.header}),q&&n.a.createElement(p.a,{title:q.header,text:q.body,classWrapper:"outro"})),I&&n.a.createElement(b.a,{callToAction:I}),y&&n.a.createElement(f.a,{title:y.header,faqs:y.faqs}),n.a.createElement(u.a,{reviews:w}))}},rpg5:function(e,a,t){"use strict";var r=t("q1tI"),n=t.n(r);a.a=function(e){var a=e.breadcrumbs;return n.a.createElement("nav",{className:"breadcrumb","aria-label":"Breadcrumb"},n.a.createElement("ol",{className:"breadcrumb__list"},a.map((function(e){return function(e){return""===e.url?n.a.createElement("li",{className:"breadcrumb__item",key:e.text},n.a.createElement("span",{className:"breadcrumb__link breadcrumb__link__active"},e.text)):n.a.createElement("li",{className:"breadcrumb__item",key:e.text},n.a.createElement("a",{className:"breadcrumb__link",href:e.url},e.text),n.a.createElement("span",{className:"breadcrumb__separator","aria-hidden":"true"}," / "))}(e)}))))}},sp9E:function(e,a,t){},wqLW:function(e,a,t){"use strict";var r=t("q1tI"),n=t.n(r),c=t("Wbzz");a.a=function(e){var a=e.subHeading,t=e.title,r=e.btnText,l=r||"Compare Quotes";return n.a.createElement("div",{className:"hero-banner"},n.a.createElement("div",{className:"container"},a&&n.a.createElement("h1",null,a),t&&n.a.createElement("h4",null,t),n.a.createElement(c.Link,{to:"/quote",className:"btn"},l)))}},xBJI:function(e,a,t){"use strict";var r=t("q1tI"),n=t.n(r);a.a=function(e){var a=e.callToAction,t=a.button?a.button:"Compare Quotes";return n.a.createElement("div",{className:"call-to-action-wrapper"},n.a.createElement("div",{className:"container"},a.header&&n.a.createElement("h3",{className:"mb-4"},a.header),t&&n.a.createElement("a",{href:"/quote",className:"btn"},t)))}},xhuL:function(e,a,t){},yptg:function(e,a,t){"use strict";var r=t("q1tI"),n=t.n(r);a.a=function(e){var a=e.title,t=e.text,r=e.classWrapper;return n.a.createElement("div",{className:"text-center intro-wrapper "+r},a&&"intro"===r&&n.a.createElement("h3",null,a),a&&"outro"===r&&n.a.createElement("h2",null,a),t&&n.a.createElement("div",{className:"intro-text",dangerouslySetInnerHTML:{__html:t}}))}}}]);
//# sourceMappingURL=component---src-templates-states-list-js-83846ba92ac96b7bc394.js.map