-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1-c5d1c699694675debb0a.js
2 lines (2 loc) · 4.75 KB
/
1-c5d1c699694675debb0a.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{173:function(e,t,n){"use strict";n.r(t),n.d(t,"graphql",function(){return f}),n.d(t,"StaticQueryContext",function(){return p}),n.d(t,"StaticQuery",function(){return h});var a=n(0),r=n.n(a),i=n(4),c=n.n(i),o=n(175),u=n.n(o);n.d(t,"Link",function(){return u.a}),n.d(t,"withPrefix",function(){return o.withPrefix}),n.d(t,"navigate",function(){return o.navigate}),n.d(t,"push",function(){return o.push}),n.d(t,"replace",function(){return o.replace}),n.d(t,"navigateTo",function(){return o.navigateTo});var s=n(38);n.d(t,"waitForRouteChange",function(){return s.c});var l=n(243),d=n.n(l);n.d(t,"PageRenderer",function(){return d.a});var m=n(54);n.d(t,"parsePath",function(){return m.a});var p=r.a.createContext({}),h=function(e){return r.a.createElement(p.Consumer,null,function(t){return e.data||t[e.query]&&t[e.query].data?(e.render||e.children)(e.data?e.data.data:t[e.query].data):r.a.createElement("div",null,"Loading (StaticQuery)")})};function f(){throw new Error("It appears like Gatsby is misconfigured. Gatsby related `graphql` calls are supposed to only be evaluated at compile time, and then compiled away,. Unfortunately, something went wrong and the query was left in the compiled code.\n\n.Unless your site has a complex or custom babel/Gatsby configuration this is likely a bug in Gatsby.")}h.propTypes={data:c.a.object,query:c.a.string.isRequired,render:c.a.func,children:c.a.func}},181:function(e,t,n){"use strict";var a=n(10),r=n.n(a),i=n(173),c=n(0),o=n(287),u=(n(288),n(58),n(87),n(193),n(237)),s=n(484),l=n(482),d=n(239),m=Object(u.b)(function(e){return{visible:e.isSidebarVisible}})(function(e){var t=e.items,n=e.pathname,a=e.Link,r=e.visible,i=function(e){return e.exact?n===e.path:n.startsWith(e.path)},o=t.find(function(e){return i(e)})||{};return c.createElement(s.a,{as:l.a,animation:"slide along",width:"thin",visible:r,icon:"labeled",vertical:!0,inverted:o.inverted},t.map(function(e){var t=i(e);return c.createElement(l.a.Item,{as:a,to:e.path,active:t,key:e.path},c.createElement(d.a,{name:e.icon}),e.name)}))}),p=n(485),h=(n(438),n(439),n(440),n(441),n(289));n.d(t,"a",function(){return f}),n.d(t,"b",function(){return v});var f=[{name:"Home",path:"/",exact:!0,icon:"home",inverted:!0},{name:"Insurance",path:"/insurance/",icon:"car",exact:!0},{name:"About",path:"/about/",exact:!0,icon:"info circle"},{name:"Client Services",path:"/clients/",icon:"user",exact:!0},{name:"Blog",path:"/blog/",exact:!1,icon:"newspaper"}],b=function(e){var t=e.location.pathname,n="/"===t;return c.createElement(u.a,{store:h.a},c.createElement(s.a.Pushable,{as:p.a},c.createElement(m,{Link:i.Link,pathname:t,items:f,visible:!1}),c.createElement(s.a.Pusher,{style:{minHeight:"100vh"}},n?null:c.createElement(o.a,{Link:i.Link,pathname:t,items:f}),c.createElement("div",{style:{paddingBottom:60}},e.children))))},v=function(e){return function(t){function n(){return t.apply(this,arguments)||this}return r()(n,t),n.prototype.render=function(){return c.createElement(b,{location:this.props.location},c.createElement(e,this.props))},n}(c.Component)}},243:function(e,t,n){var a;e.exports=(a=n(304))&&a.default||a},287:function(e,t,n){"use strict";n(288),n(193),n(58);var a=n(0),r=n(237),i=n(289),c=n(475),o=n(482),u=n(481);t.a=Object(r.b)()(function(e){var t=e.items,n=e.pathname,r=e.Link,s=e.inverted,l=e.dispatch;return a.createElement(c.a,null,a.createElement(o.a,{size:"large",pointing:!0,secondary:!0,inverted:s},a.createElement(o.a.Item,{as:"a",className:"mobile only",icon:"sidebar",onClick:function(){return l&&l(Object(i.b)())}}),t.map(function(e){var t=e.exact?n===e.path:n.startsWith(e.path);return a.createElement(o.a.Item,{as:r,className:"mobile hidden",name:e.name,to:e.path,key:e.path,active:t})}),a.createElement(o.a.Item,{position:"right"},a.createElement(u.a,{href:"/contact",as:"a",inverted:s},"Contact Us"),a.createElement(u.a,{href:"/quote",as:"a",primary:!s,inverted:s,style:{marginLeft:"0.5em"}},"Get a Quote"))))})},289:function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return c});n(40);var a=n(238),r=n(419),i=function(){return{type:"TOGGLE_SIDEBAR"}},c=Object(a.createStore)(function(e,t){switch(t.type){case"TOGGLE_SIDEBAR":return Object.assign({},e,{isSidebarVisible:!e.isSidebarVisible});default:return e}},{isSidebarVisible:!1},Object(r.devToolsEnhancer)({}))},304:function(e,t,n){"use strict";n.r(t);n(40);var a=n(0),r=n.n(a),i=n(4),c=n.n(i),o=n(79),u=n(1),s=function(e){var t=e.location,n=u.default.getResourcesForPathnameSync(t.pathname);return r.a.createElement(o.a,Object.assign({key:t.pathname,location:t,pageResources:n},n.json))};s.propTypes={location:c.a.shape({pathname:c.a.string.isRequired}).isRequired},t.default=s},438:function(e,t,n){},439:function(e,t,n){},440:function(e,t,n){}}]);
//# sourceMappingURL=1-c5d1c699694675debb0a.js.map