{"version":3,"sources":["constants/actions/security/index.js","constants/actions/product/index.js","constants/actions/policy/index.js","reducers/security/index.js","reducers/policy/index.js","reducers/product/index.js","reducers/storefront/index.js","constants/actions/storefront/index.js","registerServiceWorker.js","components/Routes/index.js","components/SupportPartner/index.js","components/Helmet/index.js","containers/App/index.js","actions/storefront/reduceStorefrontConfiguration.js","sagas/storefront/getStorefrontConfigurationSaga.js","sagas/storefront/saga.js","selectors/storefront/selectStorefrontConfiguration.js","provider/storefront/index.js","actions/storefront/getStorefrontConfiguration.js","index.js","store/configureStore.js"],"names":["LOGIN","ACTIVATE","REQUEST_PASSWORD_RESET","PASSWORD_RESET","REDUCE_SECURITY_ELEMENT","REDUCE_SECURITY","GET_PRODUCTS","GET_PRODUCT","REDUCE_PRODUCTS","REDUCE_PRODUCT","GET_POLICY","GET_POLICY_SUMMARY","EXECUTE_POLICY_ACTION","REDUCE_ENTITY","REDUCE_POLICY","REDUCE_POLICY_SUMMARY","REDUCE_POLICY_ELEMENT","REDUCE_SUBMISSION_ELEMENT","REDUCE_PAYMENT_ELEMENT","REDUCE_INSURED_ELEMENT","REDUCE_PARAMETER","REDUCE_QUOTING","initialState","email","password","account","user","contextReducer","state","action","type","dotProp","set","payload","code","value","entity","parameters","policy","policySummary","policyReducer","parameterIndex","some","x","findIndex","length","product","products","productReducer","storefront","storefrontReducer","Boolean","window","location","hostname","match","Home","React","lazy","Workflow","Quote","PaymentConfirmation","FourOhFour","Redirect","PrivacyPolicy","TermsOfService","AboutUs","ContactUs","Claims","Auto","Bundle","Commercial","Condo","HomeProduct","Landlord","Motorcycle","Pleasurecraft","Roommate","RV","Tenant","Login","Routes","this","props","Suspense","fallback","exact","path","render","component","href","Component","SupportButton","styled","div","SupportPartner","id","WrappedSupportPartner","withScript","InsuregoHelmet","getTags","title","description","keywords","image","process","context","configuration","content","Helmet","name","property","corporateWeb","rel","src","gtm","async","hotjar","pathname","Support","App","matchMedia","matches","viewport","document","getElementsByTagName","test","zESettings","webWidget","color","theme","Colors","Primary","offset","vertical","mobile","reduceStorefrontConfiguration","i","getStorefrontConfigurationSaga","call","fetch","response","put","storefrontWebConfiguration","watchConfiguration","root","takeLatest","all","fork","substate","StoreFrontProvider","offline","doReduceStorefrontConfiguration","doGetStorefrontConfiguration","nextProps","nextState","children","newProps","Children","map","child","childProps","isValidElement","cloneElement","propagatePropsToChildren","Fragment","mapStateToProps","createStructuredSelector","createSelector","contextState","withConnect","connect","dispatch","withSaga","withSagas","key","saga","storefrontSaga","compose","store","reducers","security","securityReducer","workflow","workflowReducer","reference","referenceReducer","sagaMiddleware","createSagaMiddleware","middleware","enhancers","isDevelopment","__REDUX_DEVTOOLS_EXTENSION__","push","rootReducer","combineReducers","createStore","applyMiddleware","injectedReducers","runSaga","run","injectedSagas","configureStore","initialReduxState","rootElement","getElementById","ReactDOM","messages","en","enMessages","fr","frMessages","overrideCulture","navigator","serviceWorker","ready","then","registration","unregister"],"mappings":";4GAAA,4MAAO,IAAMA,EAAQ,QACRC,EAAW,WACXC,EAAyB,yBACzBC,EAAiB,iBACjBC,EAA0B,0BAC1BC,EAAkB,mB,iCCL/B,wIAAO,IAAMC,EAAe,eACfC,EAAc,cACdC,EAAkB,kBAClBC,EAAiB,kB,s75DCH9B,wZAAO,IAAMC,EAAa,aACbC,EAAqB,qBACrBC,EAAwB,wBACxBC,EAAgB,gBAChBC,EAAgB,gBAChBC,EAAwB,wBACxBC,EAAwB,wBACxBC,EAA4B,4BAC5BC,EAAyB,yBACzBC,EAAyB,yBACzBC,EAAmB,mBACnBC,EAAiB,kB,yzCCJxBC,EAAe,CACjBC,MAAO,KACPC,SAAU,KACVC,QAAS,KACTC,KAAM,MAcKC,MAXf,WAAuD,IAA/BC,EAAK,uDAAGN,EAAcO,EAAM,uCAChD,OAAQA,EAAOC,MACX,KAAK1B,IACD,OAAO2B,IAAQC,IAAIJ,EAAOC,EAAOI,QAAQC,KAAML,EAAOI,QAAQE,OAClE,KAAK9B,IACD,OAAgBiB,EACpB,QAC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AQE,EACRM,QAASE,EACTD,SAAUC,EACVyI,UAAWC,oBAGTC,EAAiBC,cAEjBC,EAAa,CACfF,GAGEG,EAAY,GACZC,GAAgBtF,EAClBsF,GAAmC,qBAAX3I,QAA0BA,OAAO4I,8BACzDF,EAAUG,KAAK7I,OAAO4I,gCAG1B,IAAME,EAAcC,0BAAgB,eAC7Bf,IAGDD,EAAQiB,sBACVF,EACA5K,EACA4J,UAAO,cAACmB,kBAAe,aAAIR,IAAW,OAAKC,KAO/C,OAJAX,EAAMmB,iBAAmB,GACzBnB,EAAMoB,QAAUZ,EAAea,IAC/BrB,EAAMsB,cAAgB,GAEftB,EDjCGuB,CAFOtJ,OAAOuJ,mBAItBC,GAAchF,SAASiF,eAAe,OAE5CC,IAAStH,OACL,kBAAC,WAAQ,CAAC2F,MAAOA,IACb,kBAAC,kBAAe,CAAC4B,SAAU,CAAEC,GAAIC,GAAYC,GAAIC,IAAcC,gBAAe,SAC1E,kBAAC,GAAkB,KACf,kBAAC,oBAAiB,KACd,kBAAC,GAAG,UAKpBR,IXkEI,kBAAmBS,WACnBA,UAAUC,cAAcC,MAAMC,MAAK,SAAAC,GAC/BA,EAAaC,kB","file":"static/js/main.e967b09f.chunk.js","sourcesContent":["export const LOGIN = 'LOGIN';\r\nexport const ACTIVATE = 'ACTIVATE';\r\nexport const REQUEST_PASSWORD_RESET = 'REQUEST_PASSWORD_RESET';\r\nexport const PASSWORD_RESET = 'PASSWORD_RESET';\r\nexport const REDUCE_SECURITY_ELEMENT = 'REDUCE_SECURITY_ELEMENT';\r\nexport const REDUCE_SECURITY = 'REDUCE_SECURITY';","export const GET_PRODUCTS = \"GET_PRODUCTS\";\r\nexport const GET_PRODUCT = \"GET_PRODUCT\";\r\nexport const REDUCE_PRODUCTS = 'REDUCE_PRODUCTS';\r\nexport const REDUCE_PRODUCT = 'REDUCE_PRODUCT';\r\n","export const GET_POLICY = \"GET_POLICY\";\r\nexport const GET_POLICY_SUMMARY = \"GET_POLICY_SUMMARY\";\r\nexport const EXECUTE_POLICY_ACTION = 'EXECUTE_POLICY_ACTION';\r\nexport const REDUCE_ENTITY = 'REDUCE_ENTITY';\r\nexport const REDUCE_POLICY = 'REDUCE_POLICY';\r\nexport const REDUCE_POLICY_SUMMARY = 'REDUCE_POLICY_SUMMARY';\r\nexport const REDUCE_POLICY_ELEMENT = 'REDUCE_POLICY_ELEMENT';\r\nexport const REDUCE_SUBMISSION_ELEMENT = 'REDUCE_SUBMISSION_ELEMENT';\r\nexport const REDUCE_PAYMENT_ELEMENT = 'REDUCE_PAYMENT_ELEMENT';\r\nexport const REDUCE_INSURED_ELEMENT = 'REDUCE_INSURED_ELEMENT';\r\nexport const REDUCE_PARAMETER = 'REDUCE_PARAMETER';\r\nexport const REDUCE_QUOTING = 'REDUCE_QUOTING';","import dotProp from 'dot-prop-immutable';\r\n\r\nimport {\r\n REDUCE_SECURITY_ELEMENT,\r\n REDUCE_SECURITY\r\n} from '../../constants/actions/security';\r\n\r\nconst initialState = {\r\n email: null,\r\n password: null,\r\n account: null,\r\n user: null\r\n};\r\n\r\nfunction contextReducer(state = initialState, action) {\r\n switch (action.type) {\r\n case REDUCE_SECURITY_ELEMENT:\r\n return dotProp.set(state, action.payload.code, action.payload.value);\r\n case REDUCE_SECURITY:\r\n return (state = initialState);\r\n default:\r\n return state;\r\n }\r\n}\r\n\r\nexport default contextReducer;\r\n","import dotProp from 'dot-prop-immutable';\r\n\r\nimport {\r\n REDUCE_POLICY,\r\n REDUCE_POLICY_SUMMARY,\r\n REDUCE_POLICY_ELEMENT,\r\n REDUCE_SUBMISSION_ELEMENT,\r\n REDUCE_PAYMENT_ELEMENT,\r\n REDUCE_INSURED_ELEMENT,\r\n REDUCE_PARAMETER,\r\n REDUCE_ENTITY,\r\n REDUCE_QUOTING\r\n} from '../../constants/actions/policy';\r\n\r\nconst initialState = {\r\n entity: null,\r\n parameters: [],\r\n policy: null,\r\n policySummary: null\r\n};\r\n\r\nfunction policyReducer(state = initialState, action) {\r\n switch (action.type) {\r\n case REDUCE_ENTITY:\r\n return dotProp.set(state, 'entity', action.payload);\r\n case REDUCE_POLICY_ELEMENT:\r\n if (state.policy) {\r\n return dotProp.set(state, `policy.${action.payload.code}`, action.payload.value);\r\n } else {\r\n let policy = dotProp.set({}, `${action.payload.code}`, action.payload.value);\r\n return dotProp.set(state, 'policy', policy);\r\n }\r\n case REDUCE_SUBMISSION_ELEMENT:\r\n if (state.policy) {\r\n return dotProp.set(state, `policy.submission.${action.payload.code}`, action.payload.value);\r\n } else {\r\n let policy = dotProp.set({}, `${action.payload.code}`, action.payload.value);\r\n return dotProp.set(state, 'policy', policy);\r\n }\r\n case REDUCE_PAYMENT_ELEMENT:\r\n if (state.policy) {\r\n return dotProp.set(state, `policy.payment.${action.payload.code}`, action.payload.value);\r\n } else {\r\n let policy = dotProp.set({}, `${action.payload.code}`, action.payload.value);\r\n return dotProp.set(state, 'policy', policy);\r\n }\r\n case REDUCE_INSURED_ELEMENT:\r\n if (state.policy) {\r\n return dotProp.set(state, `policy.participants.insured.${action.payload.code}`, action.payload.value);\r\n } else {\r\n let policy = dotProp.set({}, `${action.payload.code}`, action.payload.value);\r\n return dotProp.set(state, 'policy', policy);\r\n }\r\n case REDUCE_POLICY_SUMMARY:\r\n return dotProp.set(state, 'policySummary', action.payload);\r\n case REDUCE_POLICY:\r\n return dotProp.set(state, 'policy', action.payload);\r\n case REDUCE_PARAMETER:\r\n if (!action.payload) return state;\r\n\r\n let parameterIndex = 0;\r\n if (state.parameters.some(x => x.code === action.payload.code)) {\r\n parameterIndex = state.parameters.findIndex(x => x.code === action.payload.code);\r\n } else {\r\n parameterIndex = state.parameters.length;\r\n }\r\n return dotProp.set(state, `parameters.${parameterIndex}`, { code: action.payload.code, value: action.payload.value });\r\n case REDUCE_QUOTING:\r\n return dotProp.set(state, 'quoting', action.payload);\r\n default:\r\n return state;\r\n }\r\n}\r\n\r\nexport default policyReducer;\r\n","import dotProp from 'dot-prop-immutable';\r\n\r\nimport {\r\n REDUCE_PRODUCTS,\r\n REDUCE_PRODUCT\r\n} from '../../constants/actions/product';\r\n\r\nconst initialState = {\r\n entity: null,\r\n parameters: [],\r\n product: null,\r\n products: []\r\n};\r\n\r\nfunction productReducer(state = initialState, action) {\r\n switch (action.type) {\r\n case REDUCE_PRODUCT:\r\n return dotProp.set(state, 'product', action.payload);\r\n case REDUCE_PRODUCTS:\r\n return dotProp.set(state, 'products', action.payload);\r\n default:\r\n return state;\r\n }\r\n}\r\n\r\nexport default productReducer;\r\n","import dotProp from 'dot-prop-immutable';\r\n\r\nimport {\r\n REDUCE_STOREFRONT_CONFIGURATION\r\n} from '../../constants/actions/storefront';\r\n\r\nconst initialState = {\r\n storefront: null\r\n};\r\n\r\nfunction storefrontReducer(state = initialState, action) {\r\n switch (action.type) {\r\n case REDUCE_STOREFRONT_CONFIGURATION:\r\n return dotProp.set(state, 'storefront', action.payload);\r\n default:\r\n return state;\r\n }\r\n}\r\n\r\nexport default storefrontReducer;\r\n","export const GET_STOREFRONT_CONFIGURATION = 'GET_STOREFRONT_CONFIGURATION';\r\nexport const REDUCE_STOREFRONT_CONFIGURATION = 'REDUCE_STOREFRONT_CONFIGURATION';","// In production, we register a service worker to serve assets from local cache.\r\n\r\n// This lets the app load faster on subsequent visits in production, and gives\r\n// it offline capabilities. However, it also means that developers (and users)\r\n// will only see deployed updates on the \"N+1\" visit to a page, since previously\r\n// cached resources are updated in the background.\r\n\r\n// To learn more about the benefits of this model, read https://goo.gl/KwvDNy.\r\n// This link also includes instructions on opting out of this behavior.\r\n\r\nconst isLocalhost = Boolean(\r\n window.location.hostname === 'localhost' ||\r\n // [::1] is the IPv6 localhost address.\r\n window.location.hostname === '[::1]' ||\r\n // 127.0.0.1/8 is considered localhost for IPv4.\r\n window.location.hostname.match(\r\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\r\n )\r\n);\r\n\r\nexport default function register() {\r\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\r\n // The URL constructor is available in all browsers that support SW.\r\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location);\r\n if (publicUrl.origin !== window.location.origin) {\r\n // Our service worker won't work if PUBLIC_URL is on a different origin\r\n // from what our page is served on. This might happen if a CDN is used to\r\n // serve assets; see https://github.com/facebookincubator/create-react-app/issues/2374\r\n return;\r\n }\r\n window.addEventListener('load', () => {\r\n\r\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\r\n \r\n if (isLocalhost) {\r\n // This is running on localhost. Lets check if a service worker still exists or not.\r\n checkValidServiceWorker(swUrl);\r\n } else {\r\n // Is not local host. Just register service worker\r\n registerValidSW(swUrl);\r\n }\r\n });\r\n }\r\n}\r\n\r\nfunction registerValidSW(swUrl) {\r\n navigator.serviceWorker\r\n .register(swUrl)\r\n .then(registration => {\r\n registration.onupdatefound = () => {\r\n const installingWorker = registration.installing;\r\n installingWorker.onstatechange = () => {\r\n if (installingWorker.state === 'installed') {\r\n if (navigator.serviceWorker.controller) {\r\n // At this point, the old content will have been purged and\r\n // the fresh content will have been added to the cache.\r\n // It's the perfect time to display a \"New content is\r\n // available; please refresh.\" message in your web app.\r\n console.log('New content is available; please refresh.');\r\n } else {\r\n // At this point, everything has been precached.\r\n // It's the perfect time to display a\r\n // \"Content is cached for offline use.\" message.\r\n console.log('Content is cached for offline use.');\r\n }\r\n }\r\n };\r\n };\r\n })\r\n .catch(error => {\r\n console.error('Error during service worker registration:', error);\r\n });\r\n}\r\n\r\nfunction checkValidServiceWorker(swUrl) {\r\n // Check if the service worker can be found. If it can't reload the page.\r\n fetch(swUrl)\r\n .then(response => {\r\n // Ensure service worker exists, and that we really are getting a JS file.\r\n if (\r\n response.status === 404 ||\r\n response.headers.get('content-type').indexOf('javascript') === -1\r\n ) {\r\n // No service worker found. Probably a different app. Reload the page.\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister().then(() => {\r\n window.location.reload();\r\n });\r\n });\r\n } else {\r\n // Service worker found. Proceed as normal.\r\n registerValidSW(swUrl);\r\n }\r\n })\r\n .catch(() => {\r\n console.log(\r\n 'No internet connection found. App is running in offline mode.'\r\n );\r\n });\r\n}\r\n\r\nexport function unregisterServiceWorker() {\r\n if ('serviceWorker' in navigator) {\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister();\r\n });\r\n }\r\n}","import React from 'react';\r\nimport {\r\n BrowserRouter,\r\n Route,\r\n Switch\r\n} from 'react-router-dom';\r\n\r\nimport { Container } from 'metrix-common';\r\n\r\nconst Home = React.lazy(() => import('../../containers/Home'));\r\nconst Workflow = React.lazy(() => import('../../components/Workflow'));\r\nconst Quote = React.lazy(() => import('../../containers/Quote'));\r\nconst PaymentConfirmation = React.lazy(() => import('../../containers/PaymentConfirmation'));\r\nconst FourOhFour = React.lazy(() => import('../../containers/FourOhFour'));\r\nconst Redirect = React.lazy(() => import('../../containers/Redirect'));\r\nconst PrivacyPolicy = React.lazy(() => import('../../containers/PrivacyPolicy'));\r\nconst TermsOfService = React.lazy(() => import('../../containers/TermsOfService'));\r\nconst AboutUs = React.lazy(() => import('../../containers/AboutUs'));\r\nconst ContactUs = React.lazy(() => import('../../containers/ContactUs'));\r\nconst Claims = React.lazy(() => import('../../containers/Claims'));\r\nconst Auto = React.lazy(() => import('../../containers/Product/Auto'));\r\nconst Bundle = React.lazy(() => import('../../containers/Product/Bundle'));\r\nconst Commercial = React.lazy(() => import('../../containers/Product/Commercial'));\r\nconst Condo = React.lazy(() => import('../../containers/Product/Condo'));\r\nconst HomeProduct = React.lazy(() => import('../../containers/Product/Home'));\r\nconst Landlord = React.lazy(() => import('../../containers/Product/Landlord'));\r\nconst Motorcycle = React.lazy(() => import('../../containers/Product/Motorcycle'));\r\nconst Pleasurecraft = React.lazy(() => import('../../containers/Product/Pleasurecraft'));\r\nconst Roommate = React.lazy(() => import('../../containers/Product/Roommate'));\r\nconst RV = React.lazy(() => import('../../containers/Product/RV'));\r\nconst Tenant = React.lazy(() => import('../../containers/Product/Tenant'));\r\nconst Login = React.lazy(() => import('../../containers/Login'));\r\n\r\nclass Routes extends React.Component {\r\n render() {\r\n\r\n return (\r\n \r\n \r\n }>\r\n \r\n } />\r\n } />\r\n } />\r\n } />\r\n } />\r\n\r\n } />\r\n } />\r\n } />\r\n } />\r\n } />\r\n } />\r\n } />\r\n } />\r\n } />\r\n } />\r\n } />\r\n } />\r\n } />\r\n } />\r\n } />\r\n } />\r\n } />\r\n {\r\n window.location.href = 'https://blog.insurego.ca/insurance/';\r\n return null;\r\n }} />\r\n } />\r\n \r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default Routes;\r\n","import React from 'react';\r\nimport styled from 'styled-components';\r\n\r\nimport {\r\n withScript\r\n} from 'metrix-common';\r\n\r\nconst SupportButton = styled.div`\r\n position: fixed;\r\n cursor: pointer;\r\n bottom: 40px;\r\n right: 10px;\r\n`;\r\n\r\nclass SupportPartner extends React.Component {\r\n\r\n render() {\r\n return (\r\n \r\n );\r\n }\r\n}\r\n\r\nconst WrappedSupportPartner = withScript(SupportPartner,\r\n `ze-snippet`,\r\n `https://static.zdassets.com/ekr/snippet.js?key=@&zendesk&@`,\r\n `!function(e){function t(t){for(var n,o,i=t[0],a=t[1],u=0,s=[];u1&&void 0!==arguments[1]?arguments[1]:function(){},n=document.createElement(\"script\");n.type=\"text/javascript\",n.onerror=function(){t(new Error(\"Script failed to load\"))},n.readyState?n.onreadystatechange=function(){\"loaded\"!==n.readyState&&\"complete\"!==n.readyState||(n.onreadystatechange=null,t())}:n.onload=function(){t()},n.src=e,document.getElementsByTagName(\"head\")[0].appendChild(n)}}},function(e,t,n){\"use strict\";n.r(t);var r=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))},o=setTimeout;function i(e){return Boolean(e&&e.length)}function a(){}function u(e){if(!(this instanceof u))throw new TypeError(\"Promises must be constructed via new\");if(\"function\"!=typeof e)throw new TypeError(\"not a function\");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function c(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,u._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void f(t.promise,e)}s(t.promise,r)}else(1===e._state?s:f)(t.promise,e._value)}))):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError(\"A promise cannot be resolved with itself.\");if(t&&(\"object\"==typeof t||\"function\"==typeof t)){var n=t.then;if(t instanceof u)return e._state=3,e._value=t,void l(e);if(\"function\"==typeof n)return void d((r=n,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,l(e)}catch(t){f(e,t)}var r,o}function f(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&u._immediateFn((function(){e._handled||u._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t0&&void 0!==arguments[0]?arguments[0]:\"\",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];v(this,e),this.message=t,this.props=n,this.error=Error(this.message),this.isUserError=r,this.rollbarFingerprint=this.message},b={},w={},g={};function _(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0];return e?g[this.product.name].assets:this.product.assets}},{key:\"load\",value:function(e,t){var n=this;return this.productIframe.ready().then((function(r){n.productIframe.injectMetadata(r,t),n.productIframe.injectAssets(r,e)})).catch((function(){return y.reject(n.loadProductError())}))}},{key:\"loadProductError\",value:function(){var e=this.product,t=e.name,n=e.id,r=e.features;return new m(\"failed to load product\",{product:t,id:n,features:r})}}])&&k(t.prototype,n),r&&k(t,r),e}(),j=n(0);function S(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1];return new y((function(r,o){var i=t.snippet.getParentWindow();n?(i.zEACLoaded=!0,i.$zopim?r(w.products):r(b.products)):h(new T(i,e).resolveComposeUrl()).then((function(e){var t=e.products;i.zEACLoaded=!0,r(t)})).catch((function(){return o(t.error(e))}))}))}},{key:\"loadProducts\",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.map((function(e){var r=e.getProductAssets(n);return e.load(r,t.snippet.getZEQueue()).catch((function(e){return y.reject(e)}))}))}},{key:\"getProductLoaders\",value:function(e){var t=this.snippet.getParentWindow();return e.map((function(e){return\"zopim_chat\"===e.name?new O(e.id,t):new P(e,t)}))}},{key:\"error\",value:function(e){return new m(\"compose request failed\",{key:e})}}])&&C(t.prototype,n),r&&C(t,r),e}();function A(e,t){for(var n=0;n {\r\n let title = ``;\r\n let description = ``;\r\n let keywords = ``\r\n let image = ``\r\n\r\n switch (path) {\r\n case `/home`:\r\n title = `Home Insurance | ${process.env.REACT_APP_Brand} | Get a Quote`;\r\n description = `Home insurance is a form of property insurance and could cover losses and damages to your home in the event of fire, flood, weather or theft.`;\r\n keywords = `home insurance, house insurance, online quote, insurance quote`;\r\n image = `${this.props.context.configuration.content}/images/home.jpg`;\r\n break;\r\n case `/condo`:\r\n title = `Condo Insurance | ${process.env.REACT_APP_Brand} | Get a Quote`;\r\n description = `Condominium insurance protects you and your personal belongings in the event of loss or damage from fire, flood or theft.`;\r\n keywords = `condo insurance, online quote, insurance quote, condominium insurance`;\r\n image = `${this.props.context.configuration.content}/images/condo.jpg`;\r\n break;\r\n case `/tenant`:\r\n title = `Tenant Insurance | ${process.env.REACT_APP_Brand} | Buy Online`;\r\n description = `If you rent, tenant insurance protects your personal property with contents insurance, personal liability coverage and additional living expenses.`;\r\n keywords = `tenant insurance, online quote, insurance quote, renters insurance`;\r\n image = `${this.props.context.configuration.content}/images/tenant.jpg`;\r\n break;\r\n case `/roommate`:\r\n title = `Roommates Insurance | ${process.env.REACT_APP_Brand} | Instant Approval`;\r\n description = `If you live with one or more people ${process.env.REACT_APP_Brand} now offers renters insurance for roommates. If you share your space, you should share your insurance!`;\r\n keywords = `roommate insurance, insurance for roommates, shared insurance`;\r\n image = `${this.props.context.configuration.content}/images/roommate.jpg`;\r\n break;\r\n case `/landlord`:\r\n title = `Landlord Insurance | ${process.env.REACT_APP_Brand} | Get a Quote`;\r\n description = `Insure their rental property from fire, wind or water from overflowing toilets, sinks, tubs, water heaters or leaky pipes with Landlord Insurance.`;\r\n keywords = `landlord insurance, investment insurance, online quote, insurance quote`;\r\n image = `${this.props.context.configuration.content}/images/landlord.jpg`;\r\n break;\r\n case `/auto`:\r\n title = `Auto Insurance | ${process.env.REACT_APP_Brand} | Get a Quote`;\r\n description = `Auto insurance protects against financial loss due to an accident or theft. Basic automotive insurance is a requirement for operating your vehicle.`;\r\n keywords = `auto insurance, auto insurance, online quote, insurance quote`;\r\n image = `${this.props.context.configuration.content}/images/auto.jpg`;\r\n break;\r\n case `/bundle`:\r\n title = `Home & Auto Insurance | ${process.env.REACT_APP_Brand} | Save More by Bundling`;\r\n description = `Save big on your property and automotive insurance by bundling. Get the best price and amazing coverage from ${process.env.REACT_APP_Brand}!`;\r\n keywords = `home and auto insurance, property insurance, insurance bundles`;\r\n image = `${this.props.context.configuration.content}/images/bundle.jpg`;\r\n break;\r\n case `/commercial`:\r\n title = `Commercial Insurance | ${process.env.REACT_APP_Brand} | Get a Quote`;\r\n description = `Thinking about Business Insurance? Need Professional Liability Insurance, Commercial Vehicle Insurance or General Liability Insurance? Think ${process.env.REACT_APP_Brand}.`;\r\n keywords = `commercial insurance, online quote, insurance quote`;\r\n image = `${this.props.context.configuration.content}/images/commercial.jpg`;\r\n break;\r\n case `/about-us`:\r\n title = `About Us | ${process.env.REACT_APP_Brand} | People Stuff`;\r\n description = `${process.env.REACT_APP_Brand} is a digital insurance brokerage, serving Ontario's automotive, home, condo, tenant, landlord and commercial insurance markets.`;\r\n keywords = `about us, ${process.env.REACT_APP_Brand}`;\r\n image = `${this.props.context.configuration.content}/images/about-us.jpg`;\r\n break;\r\n case `/contact-us`:\r\n title = `Contact Us | ${process.env.REACT_APP_Brand} | Friendly Stuff`;\r\n description = `Want to speak to a live insurance broker? Need to make a claim? Contact the insurance experts at ${process.env.REACT_APP_Brand} today!`;\r\n keywords = `contact us, ${process.env.REACT_APP_Brand}`;\r\n image = `${this.props.context.configuration.content}/images/contact-us.jpg`;\r\n break;\r\n case `/blog`:\r\n title = `${process.env.REACT_APP_Brand} Blog | Insurance in Minutes | The Bird is the Word`;\r\n description = `The Bird is the Word is ${process.env.REACT_APP_Brand}'s take on insurance and your source for informative, entertaining and educational insurance-related articles.`;\r\n image = `${this.props.context.configuration.content}/images/about-us.jpg`;\r\n break;\r\n case `/claims`:\r\n title = `Insurance Claims | ${process.env.REACT_APP_Brand} | Expert Advice`;\r\n description = `Our Insurance Experts help clients navigate their claims in a timely and professional manner.`;\r\n image = `${this.props.context.configuration.content}/images/claims.jpg`;\r\n break;\r\n case `/terms`:\r\n title = `Terms of Service | ${process.env.REACT_APP_Brand} | Wordy Stuff`;\r\n description = `This page contains ${process.env.REACT_APP_Brand}'s Terms of Service and discloses our commission rates as required by RIBO.`;\r\n image = `${this.props.context.configuration.content}/images/terms.jpg`;\r\n break;\r\n case `/privacy`:\r\n title = `Privacy Policy | ${process.env.REACT_APP_Brand} | Legal Stuff`;\r\n description = `Learn how ${process.env.REACT_APP_Brand} uses data to customize your experience navigating our website.`;\r\n image = `${this.props.context.configuration.content}/images/privacy.jpg`;\r\n break;\r\n default:\r\n title = `${process.env.REACT_APP_Brand}`;\r\n description = `${process.env.REACT_APP_Description}`;\r\n keywords = `insurance broker, on-line quote, insurance quote, insurance`;\r\n image = `${this.props.context.configuration.content}/images/homepage.jpg`;\r\n break;\r\n }\r\n\r\n return (\r\n \r\n {title}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n \r\n );\r\n }\r\n\r\n render() {\r\n return this.getTags(window.location.pathname);\r\n }\r\n}\r\n\r\nexport default InsuregoHelmet;","import React from 'react';\r\nimport styled from 'styled-components';\r\n\r\nimport { Container, Colors } from 'metrix-common';\r\n\r\nimport Routes from '../../components/Routes';\r\nimport SupportPartner from '../../components/SupportPartner';\r\nimport InsuregoHelmet from '../../components/Helmet';\r\n\r\nconst Support = styled(SupportPartner)`\r\n position: fixed;\r\n cursor: pointer;\r\n bottom: 40px;\r\n right: 10px;\r\n`;\r\n\r\nclass App extends React.Component {\r\n render() {\r\n if (!window.matchMedia(`(min-width: 576px)`).matches) {\r\n let viewport = document.getElementsByTagName(`META`).viewport;\r\n if (!/maximum-scale/.test(viewport.content)) {\r\n viewport.content += `, maximum-scale=1`;\r\n }\r\n }\r\n window.zESettings = {\r\n webWidget: {\r\n color: {\r\n theme: `${Colors.Primary}`\r\n }\r\n }\r\n };\r\n\r\n if (window.location.pathname === '/workflow') {\r\n window.zESettings = {\r\n webWidget: {\r\n offset: {\r\n vertical: '50px',\r\n mobile: {\r\n vertical: '85px'\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (window.location.pathname === '/quote') {\r\n window.zESettings = {\r\n webWidget: {\r\n offset: {\r\n vertical: '80px',\r\n mobile: {\r\n vertical: '85px'\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default App;","import { REDUCE_STOREFRONT_CONFIGURATION } from \"../../constants/actions/storefront\";\r\n\r\nexport default function reduceStorefrontConfiguration(payload) {\r\n return {\r\n type: REDUCE_STOREFRONT_CONFIGURATION,\r\n payload\r\n }\r\n}\r\n","import { put, call } from 'redux-saga/effects';\r\nimport reduceStorefrontConfiguration from '../../actions/storefront/reduceStorefrontConfiguration';\r\n\r\nexport default function* getStorefrontConfigurationSaga() {\r\n const response = yield call(fetch, \"/api/context/storefront-web-configuration\");\r\n const configuration = yield call([response, 'json']);\r\n yield put(reduceStorefrontConfiguration({ ...configuration.storefrontWebConfiguration }));\r\n return;\r\n}\r\n","import { all, takeLatest, fork } from 'redux-saga/effects';\r\n\r\nimport {\r\n GET_STOREFRONT_CONFIGURATION\r\n} from '../../constants/actions/storefront';\r\n\r\nimport getStorefrontConfigurationSaga from './getStorefrontConfigurationSaga';\r\n\r\nfunction* watchConfiguration() {\r\n yield takeLatest(GET_STOREFRONT_CONFIGURATION, getStorefrontConfigurationSaga);\r\n}\r\n\r\nfunction* root() {\r\n return yield all([\r\n fork(watchConfiguration)\r\n ]);\r\n}\r\n\r\nexport default root;","import { createSelector } from 'reselect';\r\n\r\nconst substate = state => state.storefront;\r\n\r\nexport const selectStorefrontConfiguration = () => createSelector(\r\n substate,\r\n contextState => contextState.storefront\r\n);","import React from 'react';\r\nimport { connect } from 'react-redux';\r\nimport { compose } from 'redux';\r\nimport { createStructuredSelector } from 'reselect';\r\n\r\nimport {\r\n withSagas,\r\n Loading\r\n} from 'metrix-common'\r\n\r\nimport storefrontSaga from '../../sagas/storefront/saga';\r\n\r\nimport getStorefrontConfiguration from '../../actions/storefront/getStorefrontConfiguration';\r\nimport reduceStorefrontConfiguration from '../../actions/storefront/reduceStorefrontConfiguration';\r\nimport { selectStorefrontConfiguration } from '../../selectors/storefront/selectStorefrontConfiguration';\r\n\r\nclass StoreFrontProvider extends React.Component {\r\n\r\n componentDidMount() {\r\n if (this.props.context.offline) {\r\n this.props.doReduceStorefrontConfiguration({});\r\n } else {\r\n this.props.doGetStorefrontConfiguration();\r\n }\r\n }\r\n\r\n shouldComponentUpdate(nextProps, nextState) {\r\n if (!nextProps.context.storefront) {\r\n return true\r\n }\r\n }\r\n\r\n propagatePropsToChildren(children, newProps) {\r\n return React.Children.map(children, child => {\r\n if (child) {\r\n let childProps = {};\r\n\r\n if (React.isValidElement(child)) {\r\n childProps = newProps;\r\n }\r\n\r\n //Don't propagate to HTML elements (e.g. div)\r\n if (child.props && typeof child.type !== 'string') {\r\n return React.cloneElement(child, childProps);\r\n }\r\n\r\n return child;\r\n }\r\n });\r\n }\r\n\r\n render() {\r\n const context = {\r\n ...this.props.context,\r\n storefront: this.props.storefront || {}\r\n };\r\n const child = this.propagatePropsToChildren(this.props.children, { context })[0];\r\n return (\r\n \r\n {\r\n child\r\n }\r\n \r\n );\r\n }\r\n}\r\n\r\nconst mapStateToProps = createStructuredSelector({\r\n storefront: selectStorefrontConfiguration()\r\n});\r\n\r\nfunction mapDispatchToProps(dispatch) {\r\n return {\r\n doGetStorefrontConfiguration: () => dispatch(getStorefrontConfiguration()),\r\n doReduceStorefrontConfiguration: (payload) => dispatch(reduceStorefrontConfiguration(payload))\r\n };\r\n}\r\n\r\nconst withConnect = connect(mapStateToProps, mapDispatchToProps);\r\n\r\nconst withSaga = withSagas({ key: 'storefront', saga: storefrontSaga });\r\n\r\nexport default compose(withConnect, withSaga)(StoreFrontProvider);\r\n","import { GET_STOREFRONT_CONFIGURATION } from '../../constants/actions/storefront';\r\n\r\nexport default function getStorefrontConfiguration() {\r\n return {\r\n type: GET_STOREFRONT_CONFIGURATION\r\n };\r\n}\r\n","import \"core-js/stable\";\r\nimport \"regenerator-runtime/runtime\";\r\n\r\nimport React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport { Provider } from 'react-redux';\r\nimport configureStore from './store/configureStore';\r\nimport { unregisterServiceWorker } from './registerServiceWorker';\r\n\r\nimport {\r\n ContextProvider,\r\n ReferenceProvider\r\n} from 'metrix-common';\r\n\r\nimport App from './containers/App';\r\nimport StoreFrontProvider from './provider/storefront';\r\n\r\nimport enMessages from './messages/en.json';\r\nimport frMessages from './messages/fr.json';\r\n\r\nconst initialState = window.initialReduxState;\r\n\r\nconst store = configureStore(initialState);\r\n\r\nconst rootElement = document.getElementById('app');\r\n\r\nReactDOM.render(\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ,\r\n rootElement);\r\n\r\nunregisterServiceWorker();\r\n\r\nif (module.hot) {\r\n module.hot.accept();\r\n}\r\n","import { applyMiddleware, combineReducers, compose, createStore } from 'redux';\r\n\r\nimport createSagaMiddleware from 'redux-saga';\r\n\r\nimport {\r\n contextReducer,\r\n referenceReducer\r\n} from 'metrix-common';\r\n\r\nimport { workflowReducer } from 'metrix-workflow';\r\n\r\nimport securityReducer from '../reducers/security';\r\nimport policyReducer from '../reducers/policy';\r\nimport productReducer from '../reducers/product';\r\nimport storefrontReducer from '../reducers/storefront';\r\n\r\nexport default function configureStore(initialState = {}) {\r\n\r\n const reducers = {\r\n context: contextReducer,\r\n security: securityReducer,\r\n storefront: storefrontReducer,\r\n workflow: workflowReducer,\r\n policy: policyReducer,\r\n product: productReducer,\r\n products: productReducer,\r\n reference: referenceReducer\r\n };\r\n\r\n const sagaMiddleware = createSagaMiddleware();\r\n\r\n const middleware = [\r\n sagaMiddleware\r\n ];\r\n\r\n const enhancers = [];\r\n const isDevelopment = process.env.NODE_ENV === 'development';\r\n if (isDevelopment && typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION__) {\r\n enhancers.push(window.__REDUX_DEVTOOLS_EXTENSION__());\r\n }\r\n\r\n const rootReducer = combineReducers({\r\n ...reducers\r\n });\r\n\r\n const store = createStore(\r\n rootReducer,\r\n initialState,\r\n compose(applyMiddleware(...middleware), ...enhancers)\r\n );\r\n\r\n store.injectedReducers = {};\r\n store.runSaga = sagaMiddleware.run;\r\n store.injectedSagas = {};\r\n\r\n return store;\r\n}\r\n"],"sourceRoot":""}