@equinor/echo-cli 0.13.6-beta-2 → 0.13.6-beta-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see main.echo.bundle.js.LICENSE.txt */
2
- (()=>{var e,t,n,r,o,s={"./node_modules/css-loader/dist/cjs.js!./src/app.css":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n("./node_modules/css-loader/dist/runtime/sourceMaps.js"),o=n.n(r),s=n("./node_modules/css-loader/dist/runtime/api.js"),i=n.n(s)()(o());i.push([e.id,"/* Applied in echo application by bootstrap so it should exist here to */\n*,\n:after,\n:before {\n box-sizing: border-box;\n}\n\n#root {\n height: 100%;\n overflow: hidden;\n width: 100%;\n}\n","",{version:3,sources:["webpack://./src/app.css"],names:[],mappings:"AAAA,wEAAwE;AACxE;;;IAGI,sBAAsB;AAC1B;;AAEA;IACI,YAAY;IACZ,gBAAgB;IAChB,WAAW;AACf",sourcesContent:["/* Applied in echo application by bootstrap so it should exist here to */\r\n*,\r\n:after,\r\n:before {\r\n box-sizing: border-box;\r\n}\r\n\r\n#root {\r\n height: 100%;\r\n overflow: hidden;\r\n width: 100%;\r\n}\r\n"],sourceRoot:""}]);const u=i},"./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./src/components/Home/home.module.css":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n("./node_modules/css-loader/dist/runtime/sourceMaps.js"),o=n.n(r),s=n("./node_modules/css-loader/dist/runtime/api.js"),i=n.n(s)()(o());i.push([e.id,".echo-Home__wrapper-OTYWP {\n padding-top: 150px;\n display: flex;\n justify-content: center;\n align-items: baseline;\n}\n\n.echo-Home__heading-vnGkQ {\n padding-left: 18px;\n}\n\n.echo-Home__brandSliderContainer-qt0N4 {\n display: flex;\n flex: 1 1;\n flex-flow: column-reverse;\n max-height: 350px;\n margin: 0;\n width: 100%;\n position: fixed;\n bottom: 55px;\n overflow: hidden;\n object-fit: cover;\n}\n\n.echo-Home__appBar-XBn9u {\n margin: 0 auto 48px;\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n align-items: flex-start;\n}\n","",{version:3,sources:["webpack://./src/components/Home/home.module.css"],names:[],mappings:"AAAA;IACI,kBAAkB;IAClB,aAAa;IACb,uBAAuB;IACvB,qBAAqB;AACzB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,aAAa;IACb,SAAS;IACT,yBAAyB;IACzB,iBAAiB;IACjB,SAAS;IACT,WAAW;IACX,eAAe;IACf,YAAY;IACZ,gBAAgB;IAChB,iBAAiB;AACrB;;AAEA;IACI,mBAAmB;IACnB,aAAa;IACb,eAAe;IACf,uBAAuB;IACvB,uBAAuB;AAC3B",sourcesContent:[".wrapper {\r\n padding-top: 150px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: baseline;\r\n}\r\n\r\n.heading {\r\n padding-left: 18px;\r\n}\r\n\r\n.brandSliderContainer {\r\n display: flex;\r\n flex: 1 1;\r\n flex-flow: column-reverse;\r\n max-height: 350px;\r\n margin: 0;\r\n width: 100%;\r\n position: fixed;\r\n bottom: 55px;\r\n overflow: hidden;\r\n object-fit: cover;\r\n}\r\n\r\n.appBar {\r\n margin: 0 auto 48px;\r\n display: flex;\r\n flex-wrap: wrap;\r\n justify-content: center;\r\n align-items: flex-start;\r\n}\r\n"],sourceRoot:""}]),i.locals={wrapper:"echo-Home__wrapper-OTYWP",heading:"echo-Home__heading-vnGkQ",brandSliderContainer:"echo-Home__brandSliderContainer-qt0N4",appBar:"echo-Home__appBar-XBn9u"};const u=i},"./src/images/frontpage-brand-placeholder.jpg":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n.p+"d2d97a9feca22f12a8c8c7413d7867ac.jpg"},"./src/app.css":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),o=n.n(r),s=n("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),i=n.n(s),u=n("./node_modules/style-loader/dist/runtime/insertBySelector.js"),a=n.n(u),l=n("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),c=n.n(l),d=n("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),f=n.n(d),p=n("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),h=n.n(p),m=n("./node_modules/css-loader/dist/cjs.js!./src/app.css"),v={};v.styleTagTransform=h(),v.setAttributes=c(),v.insert=a().bind(null,"head"),v.domAPI=i(),v.insertStyleElement=f(),o()(m.default,v);const _=m.default&&m.default.locals?m.default.locals:void 0},"./src/components/Home/home.module.css":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),o=n.n(r),s=n("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),i=n.n(s),u=n("./node_modules/style-loader/dist/runtime/insertBySelector.js"),a=n.n(u),l=n("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),c=n.n(l),d=n("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),f=n.n(d),p=n("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),h=n.n(p),m=n("./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./src/components/Home/home.module.css"),v={};v.styleTagTransform=h(),v.setAttributes=c(),v.insert=a().bind(null,"head"),v.domAPI=i(),v.insertStyleElement=f(),o()(m.default,v);const _=m.default&&m.default.locals?m.default.locals:void 0},"./src/api/api-plants.ts":function(e,t,n){"use strict";var r=n("./node_modules/console-browserify/index.js"),o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,s){function i(e){try{a(r.next(e))}catch(e){s(e)}}function u(e){try{a(r.throw(e))}catch(e){s(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,u)}a((r=r.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}},i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.getCorePlants=void 0;var u=n("./node_modules/@equinor/echo-core/index.cjs.js"),a=n("./src/utils/plants.ts");function l(){return o(this,void 0,void 0,(function(){var e,t;return s(this,(function(n){switch(n.label){case 0:return e="".concat(u.EchoEnv.env().REACT_APP_API_URL,"/plants"),[4,(0,u.request)({url:e})];case 1:return[2,null!==(t=n.sent())&&void 0!==t?t:[]]}}))}))}t.getCorePlants=function(){return o(this,void 0,void 0,(function(){var e,t,n;return s(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,l()];case 1:return e=o.sent(),t=(0,u.getPlants)(),e&&e.length>0&&(0,a.checkIsPlantsListUpdated)(e,i([],t,!0))&&(0,u.setPlantsData)({plants:e}),[3,3];case 2:return n=o.sent(),r.error(n),[3,3];case 3:return[2]}}))}))}},"./src/app.tsx":function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,s){function i(e){try{a(r.next(e))}catch(e){s(e)}}function u(e){try{a(r.throw(e))}catch(e){s(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,u)}a((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.EchoApp=void 0;var s=n("../../node_modules/react/jsx-runtime.js"),i=n("./node_modules/@equinor/echo-core/index.cjs.js"),u=n("./node_modules/@equinor/echo-framework/index.cjs.js"),a=n("./node_modules/@equinor/echo-search/index.cjs.js"),l=n("./node_modules/@equinor/echo-utils/index.esm.js"),c=n("../../node_modules/react-router-dom/esm/react-router-dom.js"),d=n("./src/api/api-plants.ts");n("./src/app.css");var f=n("./src/components/Home/Home.tsx"),p=n("./src/components/legend.tsx"),h=c.Switch,m=c.Route,v=c.Redirect;t.EchoApp=function(){return(0,i.useInitial)((function(){return r(void 0,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,a.Syncer.configuration.setApiBaseUrl(i.EchoEnv.env().REACT_APP_API_URL)];case 1:return e.sent(),(0,l.fireAndForget)(d.getCorePlants),[2]}}))}))})),(0,s.jsx)(u.EchoEventHandler,{children:(0,s.jsxs)(u.EchoContent,{Legend:p.Legend,children:[(0,s.jsxs)(h,{children:[(0,s.jsx)(u.EchoRoutes,{homeComponent:f.Home}),(0,s.jsx)(m,{render:function(){return(0,s.jsx)(v,{to:"/"})}})]}),(0,s.jsx)(u.Toasters,{})]})})}},"./src/components/Home/Home.tsx":function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Home=void 0;var o=n("../../node_modules/react/jsx-runtime.js"),s=n("./node_modules/@equinor/echo-framework/index.cjs.js"),i=r(n("./src/images/frontpage-brand-placeholder.jpg")),u=r(n("./src/components/Home/home.module.css"));t.Home=function(){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:u.default.wrapper,children:[(0,o.jsx)("div",{children:(0,o.jsx)(s.EchoLogo,{})}),(0,o.jsx)(s.PlantSelector,{variant:"compact"})]}),(0,o.jsx)(s.AppLinks,{}),(0,o.jsx)("div",{className:u.default.brandSliderContainer,children:(0,o.jsx)("img",{src:i.default,alt:"Application Echo on tablet"})}),(0,o.jsx)(s.Footer,{})]})}},"./src/components/legend.tsx":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Legend=void 0,t.Legend=function(){return null}},"./src/index.tsx":function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var u=n("../../node_modules/react/jsx-runtime.js");n("./node_modules/@equinor/echo-components/style-reset.css");var a=i(n("./node_modules/@equinor/echo-core/index.cjs.js")),l=n("./node_modules/@equinor/echo-framework/index.cjs.js"),c=n("./node_modules/@equinor/eds-core-react/dist/esm/index.js"),d=i(n("./node_modules/@equinor/eds-icons/dist/esm/index.js")),f=n("./src/utils/setupSkipAuth.ts"),p=n("../../node_modules/@tanstack/react-query/build/modern/index.cjs"),h=n("../../node_modules/react-dom/client.js"),m=n("../../node_modules/react-router-dom/esm/react-router-dom.js"),v=n("./src/app.tsx"),_=m.BrowserRouter,A=a.EventHubProvider;if(window===window.parent||window.opener){var b=document.getElementById("root");(0,h.createRoot)(b).render((0,u.jsx)((function(){(0,f.initForE2ETests)();var e=a.default.useEchoSetup({leftPanels:[l.searchPanel],rightPanel:l.mainMenu});c.Icon.add(r({},d));var t={createApi:(0,a.createEchoAppModuleApi)(),dependencies:{react:n("../../node_modules/react/index.js"),"react-dom":n("../../node_modules/react-dom/index.js"),"react-router-dom":n("../../node_modules/react-router-dom/esm/react-router-dom.js"),"@equinor/echo-core":n("./node_modules/@equinor/echo-core/index.cjs.js"),"@equinor/echo-framework":n("./node_modules/@equinor/echo-framework/index.cjs.js"),"@equinor/echo-utils":n("./node_modules/@equinor/echo-utils/index.esm.js"),"@equinor/echo-components":n("./node_modules/@equinor/echo-components/index.cjs.js"),"@equinor/echo-base":n("./node_modules/@equinor/echo-base/index.cjs.js"),"@equinor/echo-search":n("./node_modules/@equinor/echo-search/index.cjs.js"),"@equinor/eds-core-react":n("./node_modules/@equinor/eds-core-react/dist/esm/index.js"),"@equinor/eds-icons":n("./node_modules/@equinor/eds-icons/dist/esm/index.js"),"styled-components":n("../../node_modules/styled-components/dist/styled-components.browser.esm.js"),classnames:n("../../node_modules/classnames/index.js"),lodash:n("../../node_modules/lodash/lodash.js"),zustand:n("../../node_modules/zustand/esm/index.js")},fetchModules:function(){return new Promise((function(e){fetch("./echoModuleManifest.json").then((function(t){t.json().then((function(t){t.forEach((function(e){e.fileUri="/index.js"})),e(t)}))}))}))}};return(0,u.jsx)(u.Fragment,{children:e&&(0,u.jsx)(a.default.AuthProviderComponent,{children:(0,u.jsx)(p.QueryClientProvider,{client:a.queryClient,children:(0,u.jsxs)(A,{children:[(0,u.jsx)(l.Mediator,{options:t}),(0,u.jsx)(_,{children:(0,u.jsx)(v.EchoApp,{})})]})})})})}),{}))}},"./src/utils/plants.ts":function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.checkIsPlantsListUpdated=void 0;var s=o(n("./node_modules/@equinor/echo-utils/index.esm.js")).default.Utils.arraysIsEqual;t.checkIsPlantsListUpdated=function(e,t){return!t||0===t.length||!s(r([],t,!0),e)}},"./src/utils/setupSkipAuth.ts":function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,s){function i(e){try{a(r.next(e))}catch(e){s(e)}}function u(e){try{a(r.throw(e))}catch(e){s(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,u)}a((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setupSkipAuth=t.initForE2ETests=void 0;var i=s(n("./node_modules/@equinor/echo-core/index.cjs.js")),u=n("./node_modules/@equinor/echo-utils/index.esm.js");t.initForE2ETests=function(){var e=(0,u.getDeepLinkParams)(["skipAuth"]).skipAuth;"true"===(null==e?void 0:e.toLowerCase())&&l()};var a=function(){i.default.EchoAuthProvider.isAuthenticated=!0,i.default.EchoAuthProvider.userProperties={account:{homeAccountId:"homeAccountId",environment:"testingEnvironment",tenantId:"tenantId",username:"tester",localAccountId:"tester123"}}};function l(){var e=this;i.default.EchoAuthProvider.isAuthenticated=!0,i.default.EchoAuthProvider.handleLogin=function(t){return r(e,void 0,void 0,(function(){return o(this,(function(e){return a(),[2,Promise.resolve(void 0)]}))}))},i.default.EchoAuthProvider.ssoSilentOrRedirectToAuthenticate=function(){return r(e,void 0,void 0,(function(){return o(this,(function(e){return a(),[2,Promise.resolve(void 0)]}))}))},i.default.EchoAuthProvider.aquireTokenSilentOrRedirectToAuthenticate=function(){return r(e,void 0,void 0,(function(){return o(this,(function(e){return a(),[2,null]}))}))},i.default.EchoAuthProvider.login=function(){return r(e,void 0,void 0,(function(){return o(this,(function(e){return a(),[2,Promise.resolve()]}))}))}}t.setupSkipAuth=l},"?0863":()=>{},"?3697":()=>{},"?4937":()=>{},"?d03a":()=>{},"?6875":()=>{},"?f3db":()=>{},"?d546":()=>{},"?8131":()=>{},"?3fc0":()=>{},"?cad2":()=>{},"?593c":()=>{},"?4068":()=>{},"?e7e4":()=>{},"?7bec":()=>{},"?802b":()=>{},"?1e44":()=>{},"?0aec":()=>{},"?fbf1":()=>{},"?3e83":()=>{},"?19e6":()=>{}},i={};function u(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return s[e].call(n.exports,n,n.exports,u),n.loaded=!0,n.exports}u.m=s,u.amdO={},e=[],u.O=(t,n,r,o)=>{if(!n){var s=1/0;for(c=0;c<e.length;c++){for(var[n,r,o]=e[c],i=!0,a=0;a<n.length;a++)(!1&o||s>=o)&&Object.keys(u.O).every((e=>u.O[e](n[a])))?n.splice(a--,1):(i=!1,o<s&&(s=o));if(i){e.splice(c--,1);var l=r();void 0!==l&&(t=l)}}return t}o=o||0;for(var c=e.length;c>0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[n,r,o]},u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,u.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var o=Object.create(null);u.r(o);var s={};t=t||[null,n({}),n([]),n(n)];for(var i=2&r&&e;"object"==typeof i&&!~t.indexOf(i);i=n(i))Object.getOwnPropertyNames(i).forEach((t=>s[t]=()=>e[t]));return s.default=()=>e,u.d(o,s),o},u.d=(e,t)=>{for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.f={},u.e=e=>Promise.all(Object.keys(u.f).reduce(((t,n)=>(u.f[n](e,t),t)),[])),u.u=e=>"assets/"+e+".67f514ed2d9b83f4a735.chunk.js",u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},o="@equinor/echo-client:",u.l=(e,t,n,s)=>{if(r[e])r[e].push(t);else{var i,a;if(void 0!==n)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var d=l[c];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==o+n){i=d;break}}i||(a=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,u.nc&&i.setAttribute("nonce",u.nc),i.setAttribute("data-webpack",o+n),i.src=e),r[e]=[t];var f=(t,n)=>{i.onerror=i.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),a&&document.head.appendChild(i)}},u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),u.p="/",(()=>{var e={main:0};u.f.j=(t,n)=>{var r=u.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var s=u.p+u.u(t),i=new Error;u.l(s,(n=>{if(u.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+s+")",i.name="ChunkLoadError",i.type=o,i.request=s,r[1](i)}}),"chunk-"+t,t)}},u.O.j=t=>0===e[t];var t=(t,n)=>{var r,o,[s,i,a]=n,l=0;if(s.some((t=>0!==e[t]))){for(r in i)u.o(i,r)&&(u.m[r]=i[r]);if(a)var c=a(u)}for(t&&t(n);l<s.length;l++)o=s[l],u.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return u.O(c)},n=self.webpackChunk_equinor_echo_client=self.webpackChunk_equinor_echo_client||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),u.nc=void 0,u.O(void 0,["vendors-node_modules_react-dom_client_js-node_modules_babel-polyfill_lib_index_js-node_module-649d03"],(()=>u("./node_modules/babel-polyfill/lib/index.js")));var a=u.O(void 0,["vendors-node_modules_react-dom_client_js-node_modules_babel-polyfill_lib_index_js-node_module-649d03"],(()=>u("./src/index.tsx")));a=u.O(a)})();
2
+ (()=>{var e,n,t,o,r,s={"./node_modules/css-loader/dist/cjs.js!./src/app.css":(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var o=t("./node_modules/css-loader/dist/runtime/sourceMaps.js"),r=t.n(o),s=t("./node_modules/css-loader/dist/runtime/api.js"),i=t.n(s)()(r());i.push([e.id,"/* Applied in echo application by bootstrap so it should exist here to */\n*,\n:after,\n:before {\n box-sizing: border-box;\n}\n\n#root {\n height: 100%;\n overflow: hidden;\n width: 100%;\n}\n","",{version:3,sources:["webpack://./src/app.css"],names:[],mappings:"AAAA,wEAAwE;AACxE;;;IAGI,sBAAsB;AAC1B;;AAEA;IACI,YAAY;IACZ,gBAAgB;IAChB,WAAW;AACf",sourcesContent:["/* Applied in echo application by bootstrap so it should exist here to */\r\n*,\r\n:after,\r\n:before {\r\n box-sizing: border-box;\r\n}\r\n\r\n#root {\r\n height: 100%;\r\n overflow: hidden;\r\n width: 100%;\r\n}\r\n"],sourceRoot:""}]);const u=i},"./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./src/components/Home/home.module.css":(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var o=t("./node_modules/css-loader/dist/runtime/sourceMaps.js"),r=t.n(o),s=t("./node_modules/css-loader/dist/runtime/api.js"),i=t.n(s)()(r());i.push([e.id,".echo-Home__wrapper-OTYWP {\n padding-top: 150px;\n display: flex;\n justify-content: center;\n align-items: baseline;\n}\n\n.echo-Home__heading-vnGkQ {\n padding-left: 18px;\n}\n\n.echo-Home__brandSliderContainer-qt0N4 {\n display: flex;\n flex: 1 1;\n flex-flow: column-reverse;\n max-height: 350px;\n margin: 0;\n width: 100%;\n position: fixed;\n bottom: 55px;\n overflow: hidden;\n object-fit: cover;\n}\n\n.echo-Home__appBar-XBn9u {\n margin: 0 auto 48px;\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n align-items: flex-start;\n}\n","",{version:3,sources:["webpack://./src/components/Home/home.module.css"],names:[],mappings:"AAAA;IACI,kBAAkB;IAClB,aAAa;IACb,uBAAuB;IACvB,qBAAqB;AACzB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,aAAa;IACb,SAAS;IACT,yBAAyB;IACzB,iBAAiB;IACjB,SAAS;IACT,WAAW;IACX,eAAe;IACf,YAAY;IACZ,gBAAgB;IAChB,iBAAiB;AACrB;;AAEA;IACI,mBAAmB;IACnB,aAAa;IACb,eAAe;IACf,uBAAuB;IACvB,uBAAuB;AAC3B",sourcesContent:[".wrapper {\r\n padding-top: 150px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: baseline;\r\n}\r\n\r\n.heading {\r\n padding-left: 18px;\r\n}\r\n\r\n.brandSliderContainer {\r\n display: flex;\r\n flex: 1 1;\r\n flex-flow: column-reverse;\r\n max-height: 350px;\r\n margin: 0;\r\n width: 100%;\r\n position: fixed;\r\n bottom: 55px;\r\n overflow: hidden;\r\n object-fit: cover;\r\n}\r\n\r\n.appBar {\r\n margin: 0 auto 48px;\r\n display: flex;\r\n flex-wrap: wrap;\r\n justify-content: center;\r\n align-items: flex-start;\r\n}\r\n"],sourceRoot:""}]),i.locals={wrapper:"echo-Home__wrapper-OTYWP",heading:"echo-Home__heading-vnGkQ",brandSliderContainer:"echo-Home__brandSliderContainer-qt0N4",appBar:"echo-Home__appBar-XBn9u"};const u=i},"./src/images/frontpage-brand-placeholder.jpg":(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>o});const o=t.p+"d2d97a9feca22f12a8c8c7413d7867ac.jpg"},"./src/app.css":(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>A});var o=t("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),r=t.n(o),s=t("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),i=t.n(s),u=t("./node_modules/style-loader/dist/runtime/insertBySelector.js"),a=t.n(u),d=t("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),l=t.n(d),c=t("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),f=t.n(c),p=t("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),h=t.n(p),m=t("./node_modules/css-loader/dist/cjs.js!./src/app.css"),v={};v.styleTagTransform=h(),v.setAttributes=l(),v.insert=a().bind(null,"head"),v.domAPI=i(),v.insertStyleElement=f(),r()(m.default,v);const A=m.default&&m.default.locals?m.default.locals:void 0},"./src/components/Home/home.module.css":(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>A});var o=t("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),r=t.n(o),s=t("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),i=t.n(s),u=t("./node_modules/style-loader/dist/runtime/insertBySelector.js"),a=t.n(u),d=t("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),l=t.n(d),c=t("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),f=t.n(c),p=t("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),h=t.n(p),m=t("./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./src/components/Home/home.module.css"),v={};v.styleTagTransform=h(),v.setAttributes=l(),v.insert=a().bind(null,"head"),v.domAPI=i(),v.insertStyleElement=f(),r()(m.default,v);const A=m.default&&m.default.locals?m.default.locals:void 0},"./src/api/api-plants.ts":function(e,n,t){"use strict";var o=t("./node_modules/console-browserify/index.js"),r=this&&this.__awaiter||function(e,n,t,o){return new(t||(t=Promise))((function(r,s){function i(e){try{a(o.next(e))}catch(e){s(e)}}function u(e){try{a(o.throw(e))}catch(e){s(e)}}function a(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,u)}a((o=o.apply(e,n||[])).next())}))},s=this&&this.__generator||function(e,n){var t,o,r,s,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(i=0)),i;)try{if(t=1,o&&(r=2&u[0]?o.return:u[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,u[1])).done)return r;switch(o=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,o=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){i.label=u[1];break}if(6===u[0]&&i.label<r[1]){i.label=r[1],r=u;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(u);break}r[2]&&i.ops.pop(),i.trys.pop();continue}u=n.call(e,i)}catch(e){u=[6,e],o=0}finally{t=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.getCorePlants=void 0;var i=t("./node_modules/@equinor/echo-core/index.cjs.js");function u(){return r(this,void 0,void 0,(function(){var e;return s(this,(function(n){return e="".concat(i.EchoEnv.env().REACT_APP_API_URL,"/plants"),[2,(0,i.request)({url:e,cache:{timeInSeconds:14400}})]}))}))}n.getCorePlants=function(){return r(this,void 0,void 0,(function(){var e,n,t;return s(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,u()];case 1:return(e=null!==(t=r.sent())&&void 0!==t?t:[])&&e.length>0&&(0,i.setPlantsData)({plants:e}),[3,3];case 2:return n=r.sent(),o.error(n),[3,3];case 3:return[2]}}))}))}},"./src/app.tsx":function(e,n,t){"use strict";var o=this&&this.__awaiter||function(e,n,t,o){return new(t||(t=Promise))((function(r,s){function i(e){try{a(o.next(e))}catch(e){s(e)}}function u(e){try{a(o.throw(e))}catch(e){s(e)}}function a(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,u)}a((o=o.apply(e,n||[])).next())}))},r=this&&this.__generator||function(e,n){var t,o,r,s,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(i=0)),i;)try{if(t=1,o&&(r=2&u[0]?o.return:u[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,u[1])).done)return r;switch(o=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,o=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){i.label=u[1];break}if(6===u[0]&&i.label<r[1]){i.label=r[1],r=u;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(u);break}r[2]&&i.ops.pop(),i.trys.pop();continue}u=n.call(e,i)}catch(e){u=[6,e],o=0}finally{t=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.EchoApp=void 0;var s=t("../../node_modules/react/jsx-runtime.js"),i=t("./node_modules/@equinor/echo-core/index.cjs.js"),u=t("./node_modules/@equinor/echo-framework/index.cjs.js"),a=t("./node_modules/@equinor/echo-search/index.cjs.js"),d=t("./node_modules/@equinor/echo-utils/index.esm.js"),l=t("../../node_modules/react-router-dom/esm/react-router-dom.js"),c=t("./src/api/api-plants.ts");t("./src/app.css");var f=t("./src/components/Home/Home.tsx"),p=t("./src/components/legend.tsx"),h=l.Switch,m=l.Route,v=l.Redirect;n.EchoApp=function(){return(0,i.useInitial)((function(){return o(void 0,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,a.Syncer.configuration.setApiBaseUrl(i.EchoEnv.env().REACT_APP_API_URL)];case 1:return e.sent(),(0,d.fireAndForget)(c.getCorePlants),[2]}}))}))})),(0,s.jsx)(u.EchoEventHandler,{children:(0,s.jsxs)(u.EchoContent,{Legend:p.Legend,children:[(0,s.jsxs)(h,{children:[(0,s.jsx)(u.EchoRoutes,{homeComponent:f.Home}),(0,s.jsx)(m,{render:function(){return(0,s.jsx)(v,{to:"/"})}})]}),(0,s.jsx)(u.Toasters,{})]})})}},"./src/components/Home/Home.tsx":function(e,n,t){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.Home=void 0;var r=t("../../node_modules/react/jsx-runtime.js"),s=t("./node_modules/@equinor/echo-framework/index.cjs.js"),i=o(t("./src/images/frontpage-brand-placeholder.jpg")),u=o(t("./src/components/Home/home.module.css"));n.Home=function(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:u.default.wrapper,children:[(0,r.jsx)("div",{children:(0,r.jsx)(s.EchoLogo,{})}),(0,r.jsx)(s.PlantSelector,{variant:"compact"})]}),(0,r.jsx)(s.AppLinks,{}),(0,r.jsx)("div",{className:u.default.brandSliderContainer,children:(0,r.jsx)("img",{src:i.default,alt:"Application Echo on tablet"})}),(0,r.jsx)(s.Footer,{})]})}},"./src/components/legend.tsx":(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Legend=void 0,n.Legend=function(){return null}},"./src/index.tsx":function(e,n,t){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o.apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),s=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&r(n,e,t);return s(n,e),n};Object.defineProperty(n,"__esModule",{value:!0});var u=t("../../node_modules/react/jsx-runtime.js");t("./node_modules/@equinor/echo-components/style-reset.css");var a=i(t("./node_modules/@equinor/echo-core/index.cjs.js")),d=t("./node_modules/@equinor/echo-framework/index.cjs.js"),l=t("./node_modules/@equinor/eds-core-react/dist/esm/index.js"),c=i(t("./node_modules/@equinor/eds-icons/dist/esm/index.js")),f=t("./src/utils/setupSkipAuth.ts"),p=t("../../node_modules/@tanstack/react-query/build/modern/index.cjs"),h=t("../../node_modules/react-dom/client.js"),m=t("../../node_modules/react-router-dom/esm/react-router-dom.js"),v=t("./src/app.tsx"),A=m.BrowserRouter,_=a.EventHubProvider;if(window===window.parent||window.opener){var b=document.getElementById("root");(0,h.createRoot)(b).render((0,u.jsx)((function(){(0,f.initForE2ETests)();var e=a.default.useEchoSetup({leftPanels:[d.searchPanel],rightPanel:d.mainMenu});l.Icon.add(o({},c));var n={createApi:(0,a.createEchoAppModuleApi)(),dependencies:{react:t("../../node_modules/react/index.js"),"react-dom":t("../../node_modules/react-dom/index.js"),"react-router-dom":t("../../node_modules/react-router-dom/esm/react-router-dom.js"),"@equinor/echo-core":t("./node_modules/@equinor/echo-core/index.cjs.js"),"@equinor/echo-framework":t("./node_modules/@equinor/echo-framework/index.cjs.js"),"@equinor/echo-utils":t("./node_modules/@equinor/echo-utils/index.esm.js"),"@equinor/echo-components":t("./node_modules/@equinor/echo-components/index.cjs.js"),"@equinor/echo-base":t("./node_modules/@equinor/echo-base/index.cjs.js"),"@equinor/echo-search":t("./node_modules/@equinor/echo-search/index.cjs.js"),"@equinor/eds-core-react":t("./node_modules/@equinor/eds-core-react/dist/esm/index.js"),"@equinor/eds-icons":t("./node_modules/@equinor/eds-icons/dist/esm/index.js"),"styled-components":t("../../node_modules/styled-components/dist/styled-components.browser.esm.js"),classnames:t("../../node_modules/classnames/index.js"),lodash:t("../../node_modules/lodash/lodash.js"),zustand:t("../../node_modules/zustand/esm/index.js")},fetchModules:function(){return new Promise((function(e){fetch("./echoModuleManifest.json").then((function(n){n.json().then((function(n){n.forEach((function(e){e.fileUri="/index.js"})),e(n)}))}))}))}};return(0,u.jsx)(u.Fragment,{children:e&&(0,u.jsx)(a.default.AuthProviderComponent,{children:(0,u.jsx)(p.QueryClientProvider,{client:a.queryClient,children:(0,u.jsxs)(_,{children:[(0,u.jsx)(d.Mediator,{options:n}),(0,u.jsx)(A,{children:(0,u.jsx)(v.EchoApp,{})})]})})})})}),{}))}},"./src/utils/setupSkipAuth.ts":function(e,n,t){"use strict";var o=this&&this.__awaiter||function(e,n,t,o){return new(t||(t=Promise))((function(r,s){function i(e){try{a(o.next(e))}catch(e){s(e)}}function u(e){try{a(o.throw(e))}catch(e){s(e)}}function a(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,u)}a((o=o.apply(e,n||[])).next())}))},r=this&&this.__generator||function(e,n){var t,o,r,s,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(i=0)),i;)try{if(t=1,o&&(r=2&u[0]?o.return:u[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,u[1])).done)return r;switch(o=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,o=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){i.label=u[1];break}if(6===u[0]&&i.label<r[1]){i.label=r[1],r=u;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(u);break}r[2]&&i.ops.pop(),i.trys.pop();continue}u=n.call(e,i)}catch(e){u=[6,e],o=0}finally{t=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.setupSkipAuth=n.initForE2ETests=void 0;var i=s(t("./node_modules/@equinor/echo-core/index.cjs.js")),u=t("./node_modules/@equinor/echo-utils/index.esm.js");n.initForE2ETests=function(){var e=(0,u.getDeepLinkParams)(["skipAuth"]).skipAuth;"true"===(null==e?void 0:e.toLowerCase())&&d()};var a=function(){i.default.EchoAuthProvider.isAuthenticated=!0,i.default.EchoAuthProvider.userProperties={account:{homeAccountId:"homeAccountId",environment:"testingEnvironment",tenantId:"tenantId",username:"tester",localAccountId:"tester123"}}};function d(){var e=this;i.default.EchoAuthProvider.isAuthenticated=!0,i.default.EchoAuthProvider.handleLogin=function(n){return o(e,void 0,void 0,(function(){return r(this,(function(e){return a(),[2,Promise.resolve(void 0)]}))}))},i.default.EchoAuthProvider.ssoSilentOrRedirectToAuthenticate=function(){return o(e,void 0,void 0,(function(){return r(this,(function(e){return a(),[2,Promise.resolve(void 0)]}))}))},i.default.EchoAuthProvider.aquireTokenSilentOrRedirectToAuthenticate=function(){return o(e,void 0,void 0,(function(){return r(this,(function(e){return a(),[2,null]}))}))},i.default.EchoAuthProvider.login=function(){return o(e,void 0,void 0,(function(){return r(this,(function(e){return a(),[2,Promise.resolve()]}))}))}}n.setupSkipAuth=d},"?0863":()=>{},"?3697":()=>{},"?4937":()=>{},"?d03a":()=>{},"?6875":()=>{},"?f3db":()=>{},"?d546":()=>{},"?8131":()=>{},"?3fc0":()=>{},"?cad2":()=>{},"?593c":()=>{},"?4068":()=>{},"?e7e4":()=>{},"?7bec":()=>{},"?802b":()=>{},"?1e44":()=>{},"?0aec":()=>{},"?fbf1":()=>{},"?3e83":()=>{},"?19e6":()=>{}},i={};function u(e){var n=i[e];if(void 0!==n)return n.exports;var t=i[e]={id:e,loaded:!1,exports:{}};return s[e].call(t.exports,t,t.exports,u),t.loaded=!0,t.exports}u.m=s,u.amdO={},e=[],u.O=(n,t,o,r)=>{if(!t){var s=1/0;for(l=0;l<e.length;l++){for(var[t,o,r]=e[l],i=!0,a=0;a<t.length;a++)(!1&r||s>=r)&&Object.keys(u.O).every((e=>u.O[e](t[a])))?t.splice(a--,1):(i=!1,r<s&&(s=r));if(i){e.splice(l--,1);var d=o();void 0!==d&&(n=d)}}return n}r=r||0;for(var l=e.length;l>0&&e[l-1][2]>r;l--)e[l]=e[l-1];e[l]=[t,o,r]},u.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return u.d(n,{a:n}),n},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,u.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var r=Object.create(null);u.r(r);var s={};n=n||[null,t({}),t([]),t(t)];for(var i=2&o&&e;"object"==typeof i&&!~n.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((n=>s[n]=()=>e[n]));return s.default=()=>e,u.d(r,s),r},u.d=(e,n)=>{for(var t in n)u.o(n,t)&&!u.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},u.f={},u.e=e=>Promise.all(Object.keys(u.f).reduce(((n,t)=>(u.f[t](e,n),n)),[])),u.u=e=>"assets/"+e+".67f514ed2d9b83f4a735.chunk.js",u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),u.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),o={},r="@equinor/echo-client:",u.l=(e,n,t,s)=>{if(o[e])o[e].push(n);else{var i,a;if(void 0!==t)for(var d=document.getElementsByTagName("script"),l=0;l<d.length;l++){var c=d[l];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")==r+t){i=c;break}}i||(a=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,u.nc&&i.setAttribute("nonce",u.nc),i.setAttribute("data-webpack",r+t),i.src=e),o[e]=[n];var f=(n,t)=>{i.onerror=i.onload=null,clearTimeout(p);var r=o[e];if(delete o[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach((e=>e(t))),n)return n(t)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),a&&document.head.appendChild(i)}},u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),u.p="/",(()=>{var e={main:0};u.f.j=(n,t)=>{var o=u.o(e,n)?e[n]:void 0;if(0!==o)if(o)t.push(o[2]);else{var r=new Promise(((t,r)=>o=e[n]=[t,r]));t.push(o[2]=r);var s=u.p+u.u(n),i=new Error;u.l(s,(t=>{if(u.o(e,n)&&(0!==(o=e[n])&&(e[n]=void 0),o)){var r=t&&("load"===t.type?"missing":t.type),s=t&&t.target&&t.target.src;i.message="Loading chunk "+n+" failed.\n("+r+": "+s+")",i.name="ChunkLoadError",i.type=r,i.request=s,o[1](i)}}),"chunk-"+n,n)}},u.O.j=n=>0===e[n];var n=(n,t)=>{var o,r,[s,i,a]=t,d=0;if(s.some((n=>0!==e[n]))){for(o in i)u.o(i,o)&&(u.m[o]=i[o]);if(a)var l=a(u)}for(n&&n(t);d<s.length;d++)r=s[d],u.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return u.O(l)},t=self.webpackChunk_equinor_echo_client=self.webpackChunk_equinor_echo_client||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))})(),u.nc=void 0,u.O(void 0,["vendors-node_modules_react-dom_client_js-node_modules_babel-polyfill_lib_index_js-node_module-649d03"],(()=>u("./node_modules/babel-polyfill/lib/index.js")));var a=u.O(void 0,["vendors-node_modules_react-dom_client_js-node_modules_babel-polyfill_lib_index_js-node_module-649d03"],(()=>u("./src/index.tsx")));a=u.O(a)})();
3
3
  //# sourceMappingURL=main.echo.bundle.js.map
@@ -36,8 +36,6 @@
36
36
 
37
37
  /*! ../node_modules/css-loader/dist/runtime/sourceMaps.js */
38
38
 
39
- /*! ../utils/plants */
40
-
41
39
  /*! ./api/api-plants */
42
40
 
43
41
  /*! ./app */
@@ -124,10 +122,6 @@
124
122
  !*** node-fetch (ignored) ***!
125
123
  \****************************/
126
124
 
127
- /*!*****************************!*\
128
- !*** ./src/utils/plants.ts ***!
129
- \*****************************/
130
-
131
125
  /*!*****************************!*\
132
126
  !*** eventsource (ignored) ***!
133
127
  \*****************************/
@@ -1 +1 @@
1
- {"version":3,"file":"main.echo.bundle.js","mappings":";UAAIA,ECCAC,EADAC,ECAAC,EACAC,8OCEAC,QAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,gNAYtC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,2BAA2B,MAAQ,GAAG,SAAW,oFAAoF,eAAiB,CAAC,yOAAyO,WAAa,MAE3a,wSChBIH,QAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,2mBA+BtC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,mDAAmD,MAAQ,GAAG,SAAW,sRAAsR,eAAiB,CAAC,smBAAsmB,W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,gDACtK,IAAI+G,EAAsB/G,EAAoBS,OAAEvH,EAAW,CAAC,yGAAyG,IAAO8G,EAAoB,qBAChM+G,EAAsB/G,EAAoBS,EAAEsG","sources":["webpack://@equinor/echo-client/webpack/runtime/chunk loaded","webpack://@equinor/echo-client/webpack/runtime/create fake namespace object","webpack://@equinor/echo-client/webpack/runtime/load script","webpack://@equinor/echo-client/./src/app.css","webpack://@equinor/echo-client/./src/components/Home/home.module.css","webpack://@equinor/echo-client/./src/images/frontpage-brand-placeholder.jpg","webpack://@equinor/echo-client/./src/app.css?a672","webpack://@equinor/echo-client/./src/components/Home/home.module.css?96e0","webpack://@equinor/echo-client/./src/api/api-plants.ts","webpack://@equinor/echo-client/./src/app.tsx","webpack://@equinor/echo-client/./src/components/Home/Home.tsx","webpack://@equinor/echo-client/./src/components/legend.tsx","webpack://@equinor/echo-client/./src/index.tsx","webpack://@equinor/echo-client/./src/utils/plants.ts","webpack://@equinor/echo-client/./src/utils/setupSkipAuth.ts","webpack://@equinor/echo-client/webpack/bootstrap","webpack://@equinor/echo-client/webpack/runtime/amd options","webpack://@equinor/echo-client/webpack/runtime/compat get default export","webpack://@equinor/echo-client/webpack/runtime/define property getters","webpack://@equinor/echo-client/webpack/runtime/ensure chunk","webpack://@equinor/echo-client/webpack/runtime/get javascript chunk filename","webpack://@equinor/echo-client/webpack/runtime/global","webpack://@equinor/echo-client/webpack/runtime/hasOwnProperty shorthand","webpack://@equinor/echo-client/webpack/runtime/make namespace object","webpack://@equinor/echo-client/webpack/runtime/node module decorator","webpack://@equinor/echo-client/webpack/runtime/publicPath","webpack://@equinor/echo-client/webpack/runtime/jsonp chunk loading","webpack://@equinor/echo-client/webpack/runtime/nonce","webpack://@equinor/echo-client/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (value);\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","var inProgress = {};\nvar dataWebpackPrefix = \"@equinor/echo-client:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* Applied in echo application by bootstrap so it should exist here to */\r\n*,\r\n:after,\r\n:before {\r\n box-sizing: border-box;\r\n}\r\n\r\n#root {\r\n height: 100%;\r\n overflow: hidden;\r\n width: 100%;\r\n}\r\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/app.css\"],\"names\":[],\"mappings\":\"AAAA,wEAAwE;AACxE;;;IAGI,sBAAsB;AAC1B;;AAEA;IACI,YAAY;IACZ,gBAAgB;IAChB,WAAW;AACf\",\"sourcesContent\":[\"/* Applied in echo application by bootstrap so it should exist here to */\\r\\n*,\\r\\n:after,\\r\\n:before {\\r\\n box-sizing: border-box;\\r\\n}\\r\\n\\r\\n#root {\\r\\n height: 100%;\\r\\n overflow: hidden;\\r\\n width: 100%;\\r\\n}\\r\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.echo-Home__wrapper-OTYWP {\r\n padding-top: 150px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: baseline;\r\n}\r\n\r\n.echo-Home__heading-vnGkQ {\r\n padding-left: 18px;\r\n}\r\n\r\n.echo-Home__brandSliderContainer-qt0N4 {\r\n display: flex;\r\n flex: 1 1;\r\n flex-flow: column-reverse;\r\n max-height: 350px;\r\n margin: 0;\r\n width: 100%;\r\n position: fixed;\r\n bottom: 55px;\r\n overflow: hidden;\r\n object-fit: cover;\r\n}\r\n\r\n.echo-Home__appBar-XBn9u {\r\n margin: 0 auto 48px;\r\n display: flex;\r\n flex-wrap: wrap;\r\n justify-content: center;\r\n align-items: flex-start;\r\n}\r\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/Home/home.module.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,kBAAkB;IAClB,aAAa;IACb,uBAAuB;IACvB,qBAAqB;AACzB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,aAAa;IACb,SAAS;IACT,yBAAyB;IACzB,iBAAiB;IACjB,SAAS;IACT,WAAW;IACX,eAAe;IACf,YAAY;IACZ,gBAAgB;IAChB,iBAAiB;AACrB;;AAEA;IACI,mBAAmB;IACnB,aAAa;IACb,eAAe;IACf,uBAAuB;IACvB,uBAAuB;AAC3B\",\"sourcesContent\":[\".wrapper {\\r\\n padding-top: 150px;\\r\\n display: flex;\\r\\n justify-content: center;\\r\\n align-items: baseline;\\r\\n}\\r\\n\\r\\n.heading {\\r\\n padding-left: 18px;\\r\\n}\\r\\n\\r\\n.brandSliderContainer {\\r\\n display: flex;\\r\\n flex: 1 1;\\r\\n flex-flow: column-reverse;\\r\\n max-height: 350px;\\r\\n margin: 0;\\r\\n width: 100%;\\r\\n position: fixed;\\r\\n bottom: 55px;\\r\\n overflow: hidden;\\r\\n object-fit: cover;\\r\\n}\\r\\n\\r\\n.appBar {\\r\\n margin: 0 auto 48px;\\r\\n display: flex;\\r\\n flex-wrap: wrap;\\r\\n justify-content: center;\\r\\n align-items: flex-start;\\r\\n}\\r\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"wrapper\": `echo-Home__wrapper-OTYWP`,\n\t\"heading\": `echo-Home__heading-vnGkQ`,\n\t\"brandSliderContainer\": `echo-Home__brandSliderContainer-qt0N4`,\n\t\"appBar\": `echo-Home__appBar-XBn9u`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","export default __webpack_public_path__ + \"d2d97a9feca22f12a8c8c7413d7867ac.jpg\";","\n import API from \"!../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../node_modules/css-loader/dist/cjs.js!./app.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../node_modules/css-loader/dist/cjs.js!./app.css\";\n export default content && content.locals ? content.locals : undefined;\n","\n import API from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./home.module.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./home.module.css\";\n export default content && content.locals ? content.locals : undefined;\n","import { EchoEnv, Plant, getPlants, request, setPlantsData } from '@equinor/echo-core';\r\nimport { checkIsPlantsListUpdated } from '../utils/plants';\r\n\r\nasync function getPlantsFromApi(): Promise<Plant[]> {\r\n const url = `${EchoEnv.env().REACT_APP_API_URL}/plants`;\r\n return (await request<Plant[]>({ url })) ?? [];\r\n}\r\n\r\nexport async function getCorePlants(): Promise<void> {\r\n try {\r\n const apiPlants: Plant[] = await getPlantsFromApi();\r\n const localPlants = getPlants();\r\n\r\n if (apiPlants && apiPlants.length > 0 && checkIsPlantsListUpdated(apiPlants, [...localPlants])) {\r\n setPlantsData({ plants: apiPlants });\r\n }\r\n } catch (ex) {\r\n console.error(ex);\r\n }\r\n}\r\n","import { EchoEnv, useInitial } from '@equinor/echo-core';\r\nimport { EchoContent, EchoEventHandler, EchoRoutes, Toasters } from '@equinor/echo-framework';\r\nimport { Syncer } from '@equinor/echo-search';\r\nimport { fireAndForget } from '@equinor/echo-utils';\r\nimport React from 'react';\r\nimport { Redirect as TypedRedirect, Route as TypedRoute, Switch as TypedSwitch } from 'react-router-dom';\r\nimport { getCorePlants } from './api/api-plants';\r\nimport './app.css';\r\nimport { Home } from './components/Home/Home';\r\nimport { Legend } from './components/legend';\r\n\r\n/**\r\n * TODO: further investigation needed.\r\n * Getting these type errors for React components, which have children.\r\n * Same setup works in echopediaWeb. Maybe it will be resolved with a next version bump?\r\n * Doing a workaround now: setting them to 'any' type.\r\n * \r\n * TS2786: 'BrowserRouter' cannot be used as a JSX component.\r\n Its type 'typeof BrowserRouter' is not a valid JSX element type.\r\n Type 'typeof BrowserRouter' is not assignable to type 'new (props: any, deprecatedLegacyContext?: any) => Component<any,\r\n any, any>'.\r\n Construct signature return types 'BrowserRouter' and 'Component<any, any, any>' are incompatible.\r\n The types returned by 'render()' are incompatible between these types.\r\n */\r\nconst Switch = TypedSwitch as any; // TS has an issue with the return type\r\nconst Route = TypedRoute as any;\r\nconst Redirect = TypedRedirect as any;\r\n\r\nexport const EchoApp: React.FC = () => {\r\n useInitial(async () => {\r\n await Syncer.configuration.setApiBaseUrl(EchoEnv.env().REACT_APP_API_URL);\r\n fireAndForget(getCorePlants);\r\n });\r\n\r\n return (\r\n <EchoEventHandler>\r\n <EchoContent Legend={Legend}>\r\n <Switch>\r\n <EchoRoutes homeComponent={Home} />\r\n <Route render={(): JSX.Element => <Redirect to=\"/\" />} />\r\n </Switch>\r\n <Toasters />\r\n </EchoContent>\r\n </EchoEventHandler>\r\n );\r\n};\r\n","import { AppLinks, EchoLogo, Footer, PlantSelector } from '@equinor/echo-framework';\r\nimport React from 'react';\r\nimport placeholderHomeImage from '../../images/frontpage-brand-placeholder.jpg';\r\nimport style from './home.module.css';\r\n\r\nexport const Home: React.FC = () => {\r\n return (\r\n <>\r\n <div className={style.wrapper}>\r\n <div>\r\n <EchoLogo />\r\n </div>\r\n\r\n <PlantSelector variant=\"compact\" />\r\n </div>\r\n <AppLinks />\r\n <div className={style.brandSliderContainer}>\r\n <img src={placeholderHomeImage} alt=\"Application Echo on tablet\" />\r\n </div>\r\n <Footer />\r\n </>\r\n )\r\n}\r\n","export const Legend: React.FC = () => {\r\n return null;\r\n};\r\n","import { LoadingModuleOptions } from '@equinor/echo-base';\r\nimport '@equinor/echo-components/style-reset.css';\r\nimport EchoCore, { createEchoAppModuleApi, queryClient, EventHubProvider as TypedEventHubProvider } from '@equinor/echo-core';\r\nimport { mainMenu, Mediator, searchPanel } from '@equinor/echo-framework';\r\nimport { Icon } from '@equinor/eds-core-react';\r\nimport * as Icons from '@equinor/eds-icons';\r\nimport React from 'react';\r\nimport { initForE2ETests } from './utils/setupSkipAuth';\r\n\r\nimport { QueryClientProvider } from '@tanstack/react-query';\r\nimport { createRoot } from 'react-dom/client';\r\nimport { BrowserRouter as TypedBrowserRouter } from 'react-router-dom';\r\nimport { EchoApp } from './app';\r\n\r\n/**\r\n * TODO: further investigation needed.\r\n * Getting these type errors for React components, which have children.\r\n * Same setup works in echopediaWeb. Maybe it will be resolved with a next version bump?\r\n * Doing a workaround now: setting them to 'any' type.\r\n *\r\n * TS2786: 'BrowserRouter' cannot be used as a JSX component.\r\n Its type 'typeof BrowserRouter' is not a valid JSX element type.\r\n Type 'typeof BrowserRouter' is not assignable to type 'new (props: any, deprecatedLegacyContext?: any) => Component<any,\r\n any, any>'.\r\n Construct signature return types 'BrowserRouter' and 'Component<any, any, any>' are incompatible.\r\n The types returned by 'render()' are incompatible between these types.\r\n */\r\nconst BrowserRouter = TypedBrowserRouter as any;\r\nconst EventHubProvider = TypedEventHubProvider as any;\r\n\r\nconst useEdsIcon = (): void => {\r\n Icon.add({\r\n ...Icons\r\n });\r\n};\r\n\r\nconst Echo: React.FC = (): JSX.Element => {\r\n /* Needed to skip authentication when running e2e tests*/\r\n initForE2ETests();\r\n\r\n const isAuthenticated = EchoCore.useEchoSetup({\r\n leftPanels: [searchPanel],\r\n rightPanel: mainMenu\r\n });\r\n useEdsIcon();\r\n const moduleOptions: LoadingModuleOptions = {\r\n createApi: createEchoAppModuleApi(),\r\n dependencies: {\r\n react: require('react'),\r\n 'react-dom': require('react-dom'),\r\n 'react-router-dom': require('react-router-dom'),\r\n '@equinor/echo-core': require('@equinor/echo-core'),\r\n '@equinor/echo-framework': require('@equinor/echo-framework'),\r\n '@equinor/echo-utils': require('@equinor/echo-utils'),\r\n '@equinor/echo-components': require('@equinor/echo-components'),\r\n '@equinor/echo-base': require('@equinor/echo-base'),\r\n '@equinor/echo-search': require('@equinor/echo-search'),\r\n '@equinor/eds-core-react': require('@equinor/eds-core-react'),\r\n '@equinor/eds-icons': require('@equinor/eds-icons'),\r\n 'styled-components': require('styled-components'),\r\n classnames: require('classnames'),\r\n lodash: require('lodash'),\r\n zustand: require('zustand')\r\n },\r\n fetchModules: () => {\r\n return new Promise((resolve) => {\r\n fetch('./echoModuleManifest.json').then((response) => {\r\n response.json().then((manifests) => {\r\n manifests.forEach((manifest) => {\r\n manifest.fileUri = `/index.js`;\r\n });\r\n resolve(manifests);\r\n });\r\n });\r\n });\r\n }\r\n };\r\n return (\r\n <>\r\n {isAuthenticated && (\r\n <EchoCore.AuthProviderComponent>\r\n <QueryClientProvider client={queryClient}>\r\n <EventHubProvider>\r\n <Mediator options={moduleOptions} />\r\n <BrowserRouter>\r\n <EchoApp />\r\n </BrowserRouter>\r\n </EventHubProvider>\r\n </QueryClientProvider>\r\n </EchoCore.AuthProviderComponent>\r\n )}\r\n </>\r\n );\r\n};\r\n\r\nif (!(window !== window.parent && !window.opener)) {\r\n const container = document.getElementById('root') as HTMLElement;\r\n const root = createRoot(container);\r\n root.render(<Echo />);\r\n}\r\n","import { Plant } from '@equinor/echo-core';\r\nimport EchoUtils from '@equinor/echo-utils';\r\n\r\nconst { arraysIsEqual } = EchoUtils.Utils;\r\n\r\nexport const checkIsPlantsListUpdated = (apiPlants: Plant[], localStoragePlants: Plant[]): boolean => {\r\n if (!localStoragePlants || localStoragePlants.length === 0 || !arraysIsEqual([...localStoragePlants], apiPlants)) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n};\r\n","import EchoCore, { AuthenticationResult } from '@equinor/echo-core';\r\nimport { getDeepLinkParams } from '@equinor/echo-utils';\r\n\r\nexport function initForE2ETests() {\r\n const { skipAuth } = getDeepLinkParams(['skipAuth']);\r\n if (skipAuth?.toLowerCase() === 'true') {\r\n setupSkipAuth();\r\n }\r\n}\r\n\r\nconst setAuthentication = () => {\r\n EchoCore.EchoAuthProvider.isAuthenticated = true;\r\n EchoCore.EchoAuthProvider.userProperties = {\r\n account: {\r\n homeAccountId: 'homeAccountId',\r\n environment: 'testingEnvironment',\r\n tenantId: 'tenantId',\r\n username: 'tester',\r\n localAccountId: 'tester123'\r\n }\r\n };\r\n};\r\n\r\nexport function setupSkipAuth() {\r\n EchoCore.EchoAuthProvider.isAuthenticated = true;\r\n EchoCore.EchoAuthProvider.handleLogin = async (logRequest?: (...args: unknown[]) => void): Promise<void> => {\r\n setAuthentication();\r\n return Promise.resolve(undefined);\r\n };\r\n EchoCore.EchoAuthProvider.ssoSilentOrRedirectToAuthenticate = async () => {\r\n setAuthentication();\r\n return Promise.resolve(undefined);\r\n };\r\n EchoCore.EchoAuthProvider.aquireTokenSilentOrRedirectToAuthenticate =\r\n async (): Promise<AuthenticationResult | null> => {\r\n setAuthentication();\r\n return null;\r\n };\r\n EchoCore.EchoAuthProvider.login = async () => {\r\n setAuthentication();\r\n return Promise.resolve();\r\n };\r\n}\r\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.amdO = {};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"assets/\" + chunkId + \".\" + \"67f514ed2d9b83f4a735\" + \".chunk.js\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"/\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"main\": 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunk_equinor_echo_client\"] = self[\"webpackChunk_equinor_echo_client\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","__webpack_require__.nc = undefined;","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\n__webpack_require__.O(undefined, [\"vendors-node_modules_react-dom_client_js-node_modules_babel-polyfill_lib_index_js-node_module-649d03\"], () => (__webpack_require__(\"./node_modules/babel-polyfill/lib/index.js\")))\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"vendors-node_modules_react-dom_client_js-node_modules_babel-polyfill_lib_index_js-node_module-649d03\"], () => (__webpack_require__(\"./src/index.tsx\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","leafPrototypes","getProto","inProgress","dataWebpackPrefix","___CSS_LOADER_EXPORT___","push","module","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","getPlantsFromApi","url","EchoEnv","env","REACT_APP_API_URL","request","apiPlants","localPlants","getPlants","length","checkIsPlantsListUpdated","setPlantsData","plants","console","error","Switch","Route","Redirect","EchoApp","useInitial","Syncer","configuration","setApiBaseUrl","fireAndForget","getCorePlants","EchoEventHandler","EchoContent","Legend","EchoRoutes","homeComponent","Home","render","to","Toasters","className","wrapper","EchoLogo","PlantSelector","variant","AppLinks","brandSliderContainer","src","alt","Footer","BrowserRouter","EventHubProvider","window","parent","opener","container","document","getElementById","createRoot","initForE2ETests","isAuthenticated","useEchoSetup","leftPanels","searchPanel","rightPanel","mainMenu","Icon","add","Icons","moduleOptions","createApi","createEchoAppModuleApi","dependencies","react","classnames","lodash","zustand","fetchModules","Promise","resolve","fetch","then","response","json","manifests","forEach","manifest","fileUri","AuthProviderComponent","QueryClientProvider","client","queryClient","Mediator","arraysIsEqual","Utils","localStoragePlants","skipAuth","getDeepLinkParams","toLowerCase","setupSkipAuth","setAuthentication","EchoAuthProvider","userProperties","account","homeAccountId","environment","tenantId","username","localAccountId","handleLogin","logRequest","ssoSilentOrRedirectToAuthenticate","aquireTokenSilentOrRedirectToAuthenticate","login","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","loaded","__webpack_modules__","call","m","amdO","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","Object","keys","every","key","splice","r","n","getter","__esModule","d","a","getPrototypeOf","obj","t","value","mode","this","ns","create","def","current","indexOf","getOwnPropertyNames","definition","o","defineProperty","enumerable","get","f","e","chunkId","all","reduce","promises","u","g","globalThis","Function","prop","prototype","hasOwnProperty","l","done","script","needAttach","scripts","getElementsByTagName","s","getAttribute","createElement","charset","timeout","nc","setAttribute","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","setTimeout","bind","type","target","head","appendChild","Symbol","toStringTag","nmd","paths","children","p","installedChunks","installedChunkData","promise","reject","Error","errorType","realSrc","message","name","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""}
1
+ {"version":3,"file":"main.echo.bundle.js","mappings":";UAAIA,ECCAC,EADAC,ECAAC,EACAC,8OCEAC,QAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,gNAYtC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,2BAA2B,MAAQ,GAAG,SAAW,oFAAoF,eAAiB,CAAC,yOAAyO,WAAa,MAE3a,wSChBIH,QAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,2mBA+BtC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,mDAAmD,MAAQ,GAAG,SAAW,sRAAsR,eAAiB,CAAC,smBAAsmB,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AMgL,KAAOe,EACb/L,EAAMR,QAAUwM,EAChBL,EAAmB,GAAG3L,EACvB,CACD,GAEwC,SAAW6I,EAASA,EAE/D,CACD,EAWFjD,EAAoBS,EAAES,EAAK+B,GAA0C,IAA7B6C,EAAgB7C,GAGxD,IAAIsD,EAAuB,CAACC,EAA4BC,KACvD,IAGIxG,EAAUgD,GAHTtC,EAAU+F,EAAaC,GAAWF,EAGhBzF,EAAI,EAC3B,GAAGL,EAASiG,MAAM9N,GAAgC,IAAxBgN,EAAgBhN,KAAa,CACtD,IAAImH,KAAYyG,EACZ1G,EAAoB2C,EAAE+D,EAAazG,KACrCD,EAAoBO,EAAEN,GAAYyG,EAAYzG,IAGhD,GAAG0G,EAAS,IAAIjG,EAASiG,EAAQ3G,EAClC,CAEA,IADGwG,GAA4BA,EAA2BC,GACrDzF,EAAIL,EAAS3G,OAAQgH,IACzBiC,EAAUtC,EAASK,GAChBhB,EAAoB2C,EAAEmD,EAAiB7C,IAAY6C,EAAgB7C,IACrE6C,EAAgB7C,GAAS,KAE1B6C,EAAgB7C,GAAW,EAE5B,OAAOjD,EAAoBS,EAAEC,EAAO,EAGjCmG,EAAqBC,KAAuC,iCAAIA,KAAuC,kCAAK,GAChHD,EAAmBxI,QAAQkI,EAAqBpB,KAAK,KAAM,IAC3D0B,EAAmBjO,KAAO2N,EAAqBpB,KAAK,KAAM0B,EAAmBjO,KAAKuM,KAAK0B,QCrFvF7G,EAAoBuE,QAAKjL,ECGzB0G,EAAoBS,OAAEnH,EAAW,CAAC,yGAAyG,IAAO0G,EAAoB,gDACtK,IAAI+G,EAAsB/G,EAAoBS,OAAEnH,EAAW,CAAC,yGAAyG,IAAO0G,EAAoB,qBAChM+G,EAAsB/G,EAAoBS,EAAEsG","sources":["webpack://@equinor/echo-client/webpack/runtime/chunk loaded","webpack://@equinor/echo-client/webpack/runtime/create fake namespace object","webpack://@equinor/echo-client/webpack/runtime/load script","webpack://@equinor/echo-client/./src/app.css","webpack://@equinor/echo-client/./src/components/Home/home.module.css","webpack://@equinor/echo-client/./src/images/frontpage-brand-placeholder.jpg","webpack://@equinor/echo-client/./src/app.css?a672","webpack://@equinor/echo-client/./src/components/Home/home.module.css?96e0","webpack://@equinor/echo-client/./src/api/api-plants.ts","webpack://@equinor/echo-client/./src/app.tsx","webpack://@equinor/echo-client/./src/components/Home/Home.tsx","webpack://@equinor/echo-client/./src/components/legend.tsx","webpack://@equinor/echo-client/./src/index.tsx","webpack://@equinor/echo-client/./src/utils/setupSkipAuth.ts","webpack://@equinor/echo-client/webpack/bootstrap","webpack://@equinor/echo-client/webpack/runtime/amd options","webpack://@equinor/echo-client/webpack/runtime/compat get default export","webpack://@equinor/echo-client/webpack/runtime/define property getters","webpack://@equinor/echo-client/webpack/runtime/ensure chunk","webpack://@equinor/echo-client/webpack/runtime/get javascript chunk filename","webpack://@equinor/echo-client/webpack/runtime/global","webpack://@equinor/echo-client/webpack/runtime/hasOwnProperty shorthand","webpack://@equinor/echo-client/webpack/runtime/make namespace object","webpack://@equinor/echo-client/webpack/runtime/node module decorator","webpack://@equinor/echo-client/webpack/runtime/publicPath","webpack://@equinor/echo-client/webpack/runtime/jsonp chunk loading","webpack://@equinor/echo-client/webpack/runtime/nonce","webpack://@equinor/echo-client/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (value);\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","var inProgress = {};\nvar dataWebpackPrefix = \"@equinor/echo-client:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* Applied in echo application by bootstrap so it should exist here to */\r\n*,\r\n:after,\r\n:before {\r\n box-sizing: border-box;\r\n}\r\n\r\n#root {\r\n height: 100%;\r\n overflow: hidden;\r\n width: 100%;\r\n}\r\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/app.css\"],\"names\":[],\"mappings\":\"AAAA,wEAAwE;AACxE;;;IAGI,sBAAsB;AAC1B;;AAEA;IACI,YAAY;IACZ,gBAAgB;IAChB,WAAW;AACf\",\"sourcesContent\":[\"/* Applied in echo application by bootstrap so it should exist here to */\\r\\n*,\\r\\n:after,\\r\\n:before {\\r\\n box-sizing: border-box;\\r\\n}\\r\\n\\r\\n#root {\\r\\n height: 100%;\\r\\n overflow: hidden;\\r\\n width: 100%;\\r\\n}\\r\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.echo-Home__wrapper-OTYWP {\r\n padding-top: 150px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: baseline;\r\n}\r\n\r\n.echo-Home__heading-vnGkQ {\r\n padding-left: 18px;\r\n}\r\n\r\n.echo-Home__brandSliderContainer-qt0N4 {\r\n display: flex;\r\n flex: 1 1;\r\n flex-flow: column-reverse;\r\n max-height: 350px;\r\n margin: 0;\r\n width: 100%;\r\n position: fixed;\r\n bottom: 55px;\r\n overflow: hidden;\r\n object-fit: cover;\r\n}\r\n\r\n.echo-Home__appBar-XBn9u {\r\n margin: 0 auto 48px;\r\n display: flex;\r\n flex-wrap: wrap;\r\n justify-content: center;\r\n align-items: flex-start;\r\n}\r\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/Home/home.module.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,kBAAkB;IAClB,aAAa;IACb,uBAAuB;IACvB,qBAAqB;AACzB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,aAAa;IACb,SAAS;IACT,yBAAyB;IACzB,iBAAiB;IACjB,SAAS;IACT,WAAW;IACX,eAAe;IACf,YAAY;IACZ,gBAAgB;IAChB,iBAAiB;AACrB;;AAEA;IACI,mBAAmB;IACnB,aAAa;IACb,eAAe;IACf,uBAAuB;IACvB,uBAAuB;AAC3B\",\"sourcesContent\":[\".wrapper {\\r\\n padding-top: 150px;\\r\\n display: flex;\\r\\n justify-content: center;\\r\\n align-items: baseline;\\r\\n}\\r\\n\\r\\n.heading {\\r\\n padding-left: 18px;\\r\\n}\\r\\n\\r\\n.brandSliderContainer {\\r\\n display: flex;\\r\\n flex: 1 1;\\r\\n flex-flow: column-reverse;\\r\\n max-height: 350px;\\r\\n margin: 0;\\r\\n width: 100%;\\r\\n position: fixed;\\r\\n bottom: 55px;\\r\\n overflow: hidden;\\r\\n object-fit: cover;\\r\\n}\\r\\n\\r\\n.appBar {\\r\\n margin: 0 auto 48px;\\r\\n display: flex;\\r\\n flex-wrap: wrap;\\r\\n justify-content: center;\\r\\n align-items: flex-start;\\r\\n}\\r\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"wrapper\": `echo-Home__wrapper-OTYWP`,\n\t\"heading\": `echo-Home__heading-vnGkQ`,\n\t\"brandSliderContainer\": `echo-Home__brandSliderContainer-qt0N4`,\n\t\"appBar\": `echo-Home__appBar-XBn9u`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","export default __webpack_public_path__ + \"d2d97a9feca22f12a8c8c7413d7867ac.jpg\";","\n import API from \"!../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../node_modules/css-loader/dist/cjs.js!./app.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../node_modules/css-loader/dist/cjs.js!./app.css\";\n export default content && content.locals ? content.locals : undefined;\n","\n import API from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./home.module.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./home.module.css\";\n export default content && content.locals ? content.locals : undefined;\n","import { EchoEnv, Plant, request, setPlantsData } from '@equinor/echo-core';\r\n\r\nasync function getPlantsFromApi(): Promise<Plant[] | undefined> {\r\n const url = `${EchoEnv.env().REACT_APP_API_URL}/plants`;\r\n return request<Plant[]>({\r\n url, cache: {\r\n timeInSeconds: 4 * 60 * 60 // 4 hours\r\n }\r\n });\r\n}\r\n\r\nexport async function getCorePlants(): Promise<void> {\r\n try {\r\n const apiPlants = (await getPlantsFromApi() ?? []);\r\n\r\n if (apiPlants && apiPlants.length > 0) {\r\n setPlantsData({ plants: apiPlants });\r\n }\r\n } catch (ex) {\r\n console.error(ex);\r\n }\r\n}\r\n","import { EchoEnv, useInitial } from '@equinor/echo-core';\r\nimport { EchoContent, EchoEventHandler, EchoRoutes, Toasters } from '@equinor/echo-framework';\r\nimport { Syncer } from '@equinor/echo-search';\r\nimport { fireAndForget } from '@equinor/echo-utils';\r\nimport React from 'react';\r\nimport { Redirect as TypedRedirect, Route as TypedRoute, Switch as TypedSwitch } from 'react-router-dom';\r\nimport { getCorePlants } from './api/api-plants';\r\nimport './app.css';\r\nimport { Home } from './components/Home/Home';\r\nimport { Legend } from './components/legend';\r\n\r\n/**\r\n * TODO: further investigation needed.\r\n * Getting these type errors for React components, which have children.\r\n * Same setup works in echopediaWeb. Maybe it will be resolved with a next version bump?\r\n * Doing a workaround now: setting them to 'any' type.\r\n * \r\n * TS2786: 'BrowserRouter' cannot be used as a JSX component.\r\n Its type 'typeof BrowserRouter' is not a valid JSX element type.\r\n Type 'typeof BrowserRouter' is not assignable to type 'new (props: any, deprecatedLegacyContext?: any) => Component<any,\r\n any, any>'.\r\n Construct signature return types 'BrowserRouter' and 'Component<any, any, any>' are incompatible.\r\n The types returned by 'render()' are incompatible between these types.\r\n */\r\nconst Switch = TypedSwitch as any; // TS has an issue with the return type\r\nconst Route = TypedRoute as any;\r\nconst Redirect = TypedRedirect as any;\r\n\r\nexport const EchoApp: React.FC = () => {\r\n useInitial(async () => {\r\n await Syncer.configuration.setApiBaseUrl(EchoEnv.env().REACT_APP_API_URL);\r\n fireAndForget(getCorePlants);\r\n });\r\n\r\n return (\r\n <EchoEventHandler>\r\n <EchoContent Legend={Legend}>\r\n <Switch>\r\n <EchoRoutes homeComponent={Home} />\r\n <Route render={(): JSX.Element => <Redirect to=\"/\" />} />\r\n </Switch>\r\n <Toasters />\r\n </EchoContent>\r\n </EchoEventHandler>\r\n );\r\n};\r\n","import { AppLinks, EchoLogo, Footer, PlantSelector } from '@equinor/echo-framework';\r\nimport React from 'react';\r\nimport placeholderHomeImage from '../../images/frontpage-brand-placeholder.jpg';\r\nimport style from './home.module.css';\r\n\r\nexport const Home: React.FC = () => {\r\n return (\r\n <>\r\n <div className={style.wrapper}>\r\n <div>\r\n <EchoLogo />\r\n </div>\r\n\r\n <PlantSelector variant=\"compact\" />\r\n </div>\r\n <AppLinks />\r\n <div className={style.brandSliderContainer}>\r\n <img src={placeholderHomeImage} alt=\"Application Echo on tablet\" />\r\n </div>\r\n <Footer />\r\n </>\r\n )\r\n}\r\n","export const Legend: React.FC = () => {\r\n return null;\r\n};\r\n","import { LoadingModuleOptions } from '@equinor/echo-base';\r\nimport '@equinor/echo-components/style-reset.css';\r\nimport EchoCore, { createEchoAppModuleApi, queryClient, EventHubProvider as TypedEventHubProvider } from '@equinor/echo-core';\r\nimport { mainMenu, Mediator, searchPanel } from '@equinor/echo-framework';\r\nimport { Icon } from '@equinor/eds-core-react';\r\nimport * as Icons from '@equinor/eds-icons';\r\nimport React from 'react';\r\nimport { initForE2ETests } from './utils/setupSkipAuth';\r\n\r\nimport { QueryClientProvider } from '@tanstack/react-query';\r\nimport { createRoot } from 'react-dom/client';\r\nimport { BrowserRouter as TypedBrowserRouter } from 'react-router-dom';\r\nimport { EchoApp } from './app';\r\n\r\n/**\r\n * TODO: further investigation needed.\r\n * Getting these type errors for React components, which have children.\r\n * Same setup works in echopediaWeb. Maybe it will be resolved with a next version bump?\r\n * Doing a workaround now: setting them to 'any' type.\r\n *\r\n * TS2786: 'BrowserRouter' cannot be used as a JSX component.\r\n Its type 'typeof BrowserRouter' is not a valid JSX element type.\r\n Type 'typeof BrowserRouter' is not assignable to type 'new (props: any, deprecatedLegacyContext?: any) => Component<any,\r\n any, any>'.\r\n Construct signature return types 'BrowserRouter' and 'Component<any, any, any>' are incompatible.\r\n The types returned by 'render()' are incompatible between these types.\r\n */\r\nconst BrowserRouter = TypedBrowserRouter as any;\r\nconst EventHubProvider = TypedEventHubProvider as any;\r\n\r\nconst useEdsIcon = (): void => {\r\n Icon.add({\r\n ...Icons\r\n });\r\n};\r\n\r\nconst Echo: React.FC = (): JSX.Element => {\r\n /* Needed to skip authentication when running e2e tests*/\r\n initForE2ETests();\r\n\r\n const isAuthenticated = EchoCore.useEchoSetup({\r\n leftPanels: [searchPanel],\r\n rightPanel: mainMenu\r\n });\r\n useEdsIcon();\r\n const moduleOptions: LoadingModuleOptions = {\r\n createApi: createEchoAppModuleApi(),\r\n dependencies: {\r\n react: require('react'),\r\n 'react-dom': require('react-dom'),\r\n 'react-router-dom': require('react-router-dom'),\r\n '@equinor/echo-core': require('@equinor/echo-core'),\r\n '@equinor/echo-framework': require('@equinor/echo-framework'),\r\n '@equinor/echo-utils': require('@equinor/echo-utils'),\r\n '@equinor/echo-components': require('@equinor/echo-components'),\r\n '@equinor/echo-base': require('@equinor/echo-base'),\r\n '@equinor/echo-search': require('@equinor/echo-search'),\r\n '@equinor/eds-core-react': require('@equinor/eds-core-react'),\r\n '@equinor/eds-icons': require('@equinor/eds-icons'),\r\n 'styled-components': require('styled-components'),\r\n classnames: require('classnames'),\r\n lodash: require('lodash'),\r\n zustand: require('zustand')\r\n },\r\n fetchModules: () => {\r\n return new Promise((resolve) => {\r\n fetch('./echoModuleManifest.json').then((response) => {\r\n response.json().then((manifests) => {\r\n manifests.forEach((manifest) => {\r\n manifest.fileUri = `/index.js`;\r\n });\r\n resolve(manifests);\r\n });\r\n });\r\n });\r\n }\r\n };\r\n return (\r\n <>\r\n {isAuthenticated && (\r\n <EchoCore.AuthProviderComponent>\r\n <QueryClientProvider client={queryClient}>\r\n <EventHubProvider>\r\n <Mediator options={moduleOptions} />\r\n <BrowserRouter>\r\n <EchoApp />\r\n </BrowserRouter>\r\n </EventHubProvider>\r\n </QueryClientProvider>\r\n </EchoCore.AuthProviderComponent>\r\n )}\r\n </>\r\n );\r\n};\r\n\r\nif (!(window !== window.parent && !window.opener)) {\r\n const container = document.getElementById('root') as HTMLElement;\r\n const root = createRoot(container);\r\n root.render(<Echo />);\r\n}\r\n","import EchoCore, { AuthenticationResult } from '@equinor/echo-core';\r\nimport { getDeepLinkParams } from '@equinor/echo-utils';\r\n\r\nexport function initForE2ETests() {\r\n const { skipAuth } = getDeepLinkParams(['skipAuth']);\r\n if (skipAuth?.toLowerCase() === 'true') {\r\n setupSkipAuth();\r\n }\r\n}\r\n\r\nconst setAuthentication = () => {\r\n EchoCore.EchoAuthProvider.isAuthenticated = true;\r\n EchoCore.EchoAuthProvider.userProperties = {\r\n account: {\r\n homeAccountId: 'homeAccountId',\r\n environment: 'testingEnvironment',\r\n tenantId: 'tenantId',\r\n username: 'tester',\r\n localAccountId: 'tester123'\r\n }\r\n };\r\n};\r\n\r\nexport function setupSkipAuth() {\r\n EchoCore.EchoAuthProvider.isAuthenticated = true;\r\n EchoCore.EchoAuthProvider.handleLogin = async (logRequest?: (...args: unknown[]) => void): Promise<void> => {\r\n setAuthentication();\r\n return Promise.resolve(undefined);\r\n };\r\n EchoCore.EchoAuthProvider.ssoSilentOrRedirectToAuthenticate = async () => {\r\n setAuthentication();\r\n return Promise.resolve(undefined);\r\n };\r\n EchoCore.EchoAuthProvider.aquireTokenSilentOrRedirectToAuthenticate =\r\n async (): Promise<AuthenticationResult | null> => {\r\n setAuthentication();\r\n return null;\r\n };\r\n EchoCore.EchoAuthProvider.login = async () => {\r\n setAuthentication();\r\n return Promise.resolve();\r\n };\r\n}\r\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.amdO = {};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"assets/\" + chunkId + \".\" + \"67f514ed2d9b83f4a735\" + \".chunk.js\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"/\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"main\": 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunk_equinor_echo_client\"] = self[\"webpackChunk_equinor_echo_client\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","__webpack_require__.nc = undefined;","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\n__webpack_require__.O(undefined, [\"vendors-node_modules_react-dom_client_js-node_modules_babel-polyfill_lib_index_js-node_module-649d03\"], () => (__webpack_require__(\"./node_modules/babel-polyfill/lib/index.js\")))\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"vendors-node_modules_react-dom_client_js-node_modules_babel-polyfill_lib_index_js-node_module-649d03\"], () => (__webpack_require__(\"./src/index.tsx\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","leafPrototypes","getProto","inProgress","dataWebpackPrefix","___CSS_LOADER_EXPORT___","push","module","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","getPlantsFromApi","url","EchoEnv","env","REACT_APP_API_URL","request","cache","timeInSeconds","apiPlants","length","setPlantsData","plants","console","error","Switch","Route","Redirect","EchoApp","useInitial","Syncer","configuration","setApiBaseUrl","fireAndForget","getCorePlants","EchoEventHandler","EchoContent","Legend","EchoRoutes","homeComponent","Home","render","to","Toasters","className","wrapper","EchoLogo","PlantSelector","variant","AppLinks","brandSliderContainer","src","alt","Footer","BrowserRouter","EventHubProvider","window","parent","opener","container","document","getElementById","createRoot","initForE2ETests","isAuthenticated","useEchoSetup","leftPanels","searchPanel","rightPanel","mainMenu","Icon","add","Icons","moduleOptions","createApi","createEchoAppModuleApi","dependencies","react","classnames","lodash","zustand","fetchModules","Promise","resolve","fetch","then","response","json","manifests","forEach","manifest","fileUri","AuthProviderComponent","QueryClientProvider","client","queryClient","Mediator","skipAuth","getDeepLinkParams","toLowerCase","setupSkipAuth","setAuthentication","EchoAuthProvider","userProperties","account","homeAccountId","environment","tenantId","username","localAccountId","handleLogin","logRequest","ssoSilentOrRedirectToAuthenticate","aquireTokenSilentOrRedirectToAuthenticate","login","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","loaded","__webpack_modules__","call","m","amdO","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","Object","keys","every","key","splice","r","n","getter","__esModule","d","a","getPrototypeOf","obj","t","value","mode","this","ns","create","def","current","indexOf","getOwnPropertyNames","definition","o","defineProperty","enumerable","get","f","e","chunkId","all","reduce","promises","u","g","globalThis","Function","prop","prototype","hasOwnProperty","l","done","script","needAttach","scripts","getElementsByTagName","s","getAttribute","createElement","charset","timeout","nc","setAttribute","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","setTimeout","bind","type","target","head","appendChild","Symbol","toStringTag","nmd","paths","children","p","installedChunks","installedChunkData","promise","reject","Error","errorType","realSrc","message","name","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""}
package/lib/coc/.env ADDED
File without changes
@@ -0,0 +1,3 @@
1
+ * text=auto
2
+ *.sh text eol=lf
3
+ .env text eol=lf
@@ -0,0 +1,12 @@
1
+ [
2
+ {
3
+ "name": "coc",
4
+ "key": "coc",
5
+ "shortName": "coc",
6
+ "fileUri": "module-url-placeholder",
7
+ "path": "/coc",
8
+ "version": "0.0.1",
9
+ "private": false,
10
+ "requireRef": "echoDepLoader"
11
+ }
12
+ ]
@@ -0,0 +1,136 @@
1
+
2
+ (function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
3
+ (function(g,f){function define(d, f){typeof document !== "undefined" && (document.currentScript.module = {});f(document.currentScript.module, ...d.filter((d) => d !== "exports").map(window["echoDepLoader"]));}define.amd = !0;typeof exports==='object'&&typeof module!=='undefined'?f(exports,require('@equinor/echo-core'),require('react')):typeof define==='function'&&define.amd?define(['exports','@equinor/echo-core','react'],f):(g=typeof globalThis!=='undefined'?globalThis:g||self,f(g["echo-module"]={},g[">= 0"]["9"]["0 < 0"]["10"]["0"],g[">= 17"]["0"]["2"]));})(this,(function(exports,EchoCore,React){'use strict';/******************************************************************************
4
+ Copyright (c) Microsoft Corporation.
5
+
6
+ Permission to use, copy, modify, and/or distribute this software for any
7
+ purpose with or without fee is hereby granted.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
+ PERFORMANCE OF THIS SOFTWARE.
16
+ ***************************************************************************** */
17
+ /* global Reflect, Promise, SuppressedError, Symbol */
18
+
19
+
20
+ function __awaiter(thisArg, _arguments, P, generator) {
21
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
22
+ return new (P || (P = Promise))(function (resolve, reject) {
23
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
24
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
25
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
26
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
27
+ });
28
+ }
29
+
30
+ function __generator(thisArg, body) {
31
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
32
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
33
+ function verb(n) { return function (v) { return step([n, v]); }; }
34
+ function step(op) {
35
+ if (f) throw new TypeError("Generator is already executing.");
36
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
37
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
38
+ if (y = 0, t) op = [op[0] & 2, t.value];
39
+ switch (op[0]) {
40
+ case 0: case 1: t = op; break;
41
+ case 4: _.label++; return { value: op[1], done: false };
42
+ case 5: _.label++; y = op[1]; op = [0]; continue;
43
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
44
+ default:
45
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
46
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
47
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
48
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
49
+ if (t[2]) _.ops.pop();
50
+ _.trys.pop(); continue;
51
+ }
52
+ op = body.call(thisArg, _);
53
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
54
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
55
+ }
56
+ }
57
+
58
+ function __read(o, n) {
59
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
60
+ if (!m) return o;
61
+ var i = m.call(o), r, ar = [], e;
62
+ try {
63
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
64
+ }
65
+ catch (error) { e = { error: error }; }
66
+ finally {
67
+ try {
68
+ if (r && !r.done && (m = i["return"])) m.call(i);
69
+ }
70
+ finally { if (e) throw e.error; }
71
+ }
72
+ return ar;
73
+ }
74
+
75
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
76
+ var e = new Error(message);
77
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
78
+ };function styleInject(css, ref) {
79
+ if ( ref === void 0 ) ref = {};
80
+ var insertAt = ref.insertAt;
81
+
82
+ if (!css || typeof document === 'undefined') { return; }
83
+
84
+ var head = document.head || document.getElementsByTagName('head')[0];
85
+ var style = document.createElement('style');
86
+ style.type = 'text/css';
87
+
88
+ if (insertAt === 'top') {
89
+ if (head.firstChild) {
90
+ head.insertBefore(style, head.firstChild);
91
+ } else {
92
+ head.appendChild(style);
93
+ }
94
+ } else {
95
+ head.appendChild(style);
96
+ }
97
+
98
+ if (style.styleSheet) {
99
+ style.styleSheet.cssText = css;
100
+ } else {
101
+ style.appendChild(document.createTextNode(css));
102
+ }
103
+ }var css_248z = ".app-module_wrapper__-eXbe{margin-top:150px;padding:16px;text-align:center}";
104
+ var style = {"wrapper":"app-module_wrapper__-eXbe"};
105
+ styleInject(css_248z);var baseApiUrl = EchoCore.EchoEnv.env().REACT_APP_API_URL;
106
+ function getVersion() {
107
+ return __awaiter(this, void 0, void 0, function () {
108
+ var data;
109
+ return __generator(this, function (_a) {
110
+ switch (_a.label) {
111
+ case 0:
112
+ return [4, EchoCore.EchoClient.fetch("".concat(baseApiUrl, "/Version"))];
113
+ case 1:
114
+ data = _a.sent();
115
+ return [4, data.text()];
116
+ case 2:
117
+ return [2, _a.sent()];
118
+ }
119
+ });
120
+ });
121
+ }
122
+ var App = function App() {
123
+ var _a = __read(React.useState(''), 2),
124
+ echoVersion = _a[0],
125
+ setEchoVersion = _a[1];
126
+ React.useEffect(function () {
127
+ getVersion().then(function (version) {
128
+ setEchoVersion(version);
129
+ });
130
+ });
131
+ return /*#__PURE__*/React.createElement("div", {
132
+ className: style.wrapper
133
+ }, /*#__PURE__*/React.createElement("h1", null, "Echo App Template"), /*#__PURE__*/React.createElement("p", null, "This is an app template for Echo Applications"), /*#__PURE__*/React.createElement("h6", null, "Echo v", echoVersion));
134
+ };function setup(api) {
135
+ api.registerApp(App);
136
+ }exports.setup=setup;}));//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../node_modules/style-inject/dist/style-inject.es.js","../src/app.tsx","../src/index.ts"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import EchoCore, { EchoEnv } from '@equinor/echo-core';\r\nimport React, { useEffect, useState } from 'react';\r\nimport style from './app.module.css';\r\n\r\nconst baseApiUrl = EchoEnv.env().REACT_APP_API_URL;\r\n\r\nasync function getVersion(): Promise<string> {\r\n const data = await EchoCore.EchoClient.fetch(`${baseApiUrl}/Version`);\r\n return await data.text();\r\n}\r\n\r\nconst App: React.FC = (): JSX.Element => {\r\n const [echoVersion, setEchoVersion] = useState('');\r\n\r\n useEffect(() => {\r\n getVersion().then((version: string) => {\r\n setEchoVersion(version);\r\n });\r\n });\r\n\r\n return (\r\n <div className={style.wrapper}>\r\n <h1>Echo App Template</h1>\r\n <p>This is an app template for Echo Applications</p>\r\n <h6>Echo v{echoVersion}</h6>\r\n </div>\r\n );\r\n};\r\n\r\nexport default App;\r\n","import { EchoModuleApi } from '@equinor/echo-core';\r\nimport App from './app';\r\n\r\nexport function setup(api: EchoModuleApi): void {\r\n api.registerApp(App);\r\n}\r\n"],"names":["baseApiUrl","EchoEnv","env","REACT_APP_API_URL","getVersion","EchoCore","EchoClient","fetch","concat","data","_a","sent","text","App","__read","useState","echoVersion","setEchoVersion","useEffect","then","version","React","createElement","className","style","wrapper","setup","api","registerApp"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;AACjC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC9B;AACA,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;AAC1D;AACA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AAOF,SAAiB,CAAC,CAAA;;;;AAC5B,CAAA;AAED,IAAMG,GAAG,GAAa,SAAhBA,GAAGA,GAAa;EACZ,IAAAH,EAAA,GAAAI,MAAA,CAAgCC,cAAQ,CAAC,EAAE,CAAC,EAAA,CAAA,CAAA;AAA3CC,IAAAA,WAAW,GAAAN,EAAA,CAAA,CAAA,CAAA;AAAEO,IAAAA,cAAc,QAAgB,CAAA;AAElDC,EAAAA,eAAS,CAAC,YAAA;AACNd,IAAAA,UAAU,EAAE,CAACe,IAAI,CAAC,UAACC,OAAe,EAAA;MAC9BH,cAAc,CAACG,OAAO,CAAC,CAAA;AAC3B,KAAC,CAAC,CAAA;AACN,GAAC,CAAC,CAAA;AAEF,EAAA,oBACIC,KAAK,CAAAC,aAAA,CAAA,KAAA,EAAA;IAAAC,SAAS,EAAEC,KAAK,CAACC,OAAAA;AAAO,GAAA,eACzBJ,KAA0B,CAAAC,aAAA,CAAA,IAAA,EAAA,IAAA,EAAA,mBAAA,CAAA,eAC1BD,KAAoD,CAAAC,aAAA,CAAA,GAAA,EAAA,IAAA,EAAA,+CAAA,CAAA,eACpDD,KAAA,CAAAC,aAAA,CAAA,IAAA,EAAA,IAAA,YAAWN,WAAW,CAAM,CAC1B,CAAA;AAEd,CAAC,CCxBK,SAAUU,KAAKA,CAACC,GAAkB,EAAA;AACpCA,EAAAA,GAAG,CAACC,WAAW,CAACf,GAAG,CAAC,CAAA;AACxB","x_google_ignoreList":[0]}
@@ -0,0 +1,22 @@
1
+ {
2
+ "bundler": "rollup",
3
+ "manifest": {
4
+ "name": "coc",
5
+ "key": "coc",
6
+ "shortName": "coc",
7
+ "path": "/coc",
8
+ "description": "",
9
+ "private": false,
10
+ "fileUri": "module-url-placeholder"
11
+ },
12
+ "server": {
13
+ "contentBase": "/build",
14
+ "port": 3000,
15
+ "open": true,
16
+ "host": "localhost",
17
+ "logging": "none"
18
+ },
19
+ "devMiddleware": {
20
+ "stats": "errors-warnings"
21
+ }
22
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "moduleId": "<<------Insert moduleId here ------>>"
3
+ }