-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1-f26b1adba3e74ff92c01.js
2 lines (2 loc) · 4.8 KB
/
1-f26b1adba3e74ff92c01.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{177:function(e,t,n){"use strict";var a=n(10),r=n.n(a),i=n(182),c=n(0),o=n(300),u=(n(242),n(58),n(88),n(202),n(248)),s=n(533),l=n(532),d=n(250),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(534),h=(n(458),n(459),n(460),n(461),n(301));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)}},182: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(184),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(257),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}},257:function(e,t,n){var a;e.exports=(a=n(325))&&a.default||a},300:function(e,t,n){"use strict";n(242),n(202),n(58);var a=n(0),r=n(248),i=n(301),c=n(525),o=n(532),u=n(531);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(r,{to:"/contact"},a.createElement(u.a,{inverted:s},"Contact Us")),a.createElement(r,{to:"/insurance"},a.createElement(u.a,{href:"/insurance",primary:!s,inverted:s,style:{marginLeft:"0.5em"}},"Get a Quote")))))})},301: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(249),r=n(439),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)({}))},325: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},458:function(e,t,n){},459:function(e,t,n){},460:function(e,t,n){}}]);
//# sourceMappingURL=1-f26b1adba3e74ff92c01.js.map