PageSourceSearch

https://my.eroad.co.nz/adminIntegrationsRouter.myeroad.58ed38708ce9160184c5.js

js eroad.co.nz collected 2026-09-26 07:47:07 UTC 41,285 bytes, 2 lines download raw bytes

1!function(){try{("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).__faroGitHash_myeroad="5ce3e63ee526711d9fdee9e150f093852f3a7cc4"}catch(e){}}(),function(){try{("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).__faroBundleId_myeroad="10.1.5092-apac"}catch(e){}}();try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1db64330-1d56-46d5-af18-7b8b25025e80",e._sentryDebugIdIdentifier="sentry-dbid-1db64330-1d56-46d5-af18-7b8b25025e80")}catch(e){}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"10.1.5092-apac"},(self.webpackChunk_eroad_myeroad=self.webpackChunk_eroad_myeroad||[]).push([[7734],{9898:(e,t,n)=>{"use strict";n.d(t,{Q:()=>s});var r=n(14041),a=n(70541),l=n(39626),o=n(13587),i=n(54012);const s=()=>{const e=(0,a.d4)(o.T.getProductsById),t=(0,a.d4)(o.T.getProductsIdList),n=(0,a.d4)(o.T.getIsProductsLoaded),s=(0,i.V)(),c=(0,a.wA)();return(0,r.useEffect)(()=>{n||c(l.o.fetchProducts({version:s}))},[c,n,s]),[{productsById:e,productsIdList:t},n]}},11219:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Ce});var r=n(62664),a=n(70541),l=n(68063),o=n(43420),i=n(81736),s=n(37506),c=n(31820),d=n(15897),u=n(39626),p=n(47954),m=n(30975),E=n(13587),g=n(9898),h=n(54012),y=n(1454);const f=(0,y.wY)(e=>({root:{display:"flex",flexDirection:"row"},productsList:{minWidth:200,width:200},productsTree:{backgroundColor:"transparent"},productsLoading:{margin:e.spacing(5),width:"100%"},content:{flex:1,margin:`-${e.spacing(4)}px`,"& .redoc-wrap > div":{"&:nth-child(1), &:nth-child(2)":{display:"none"},"&:nth-child(3)":{width:"100%"},"&:nth-child(4)":{width:"calc(100% * 0.4)"}}},usageInstructions:{width:"100%","& div:first-child":{fontSize:e.typography.sizes.lg},"& div":{margin:"0 auto",maxWidth:550}},redocLoading:{padding:e.spacing(16),width:"100%"}}),{name:"Documentation"});var b=n(14041),A=Object.defineProperty,w=Object.defineProperties,v=Object.getOwnPropertyDescriptors,I=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,P=(e,t,n)=>t in e?A(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const k=(0,m.A)(()=>{const e=f(),t=(0,a.wA)(),[{productsById:n,productsIdList:r},m]=(0,g.Q)(),y=(0,h.V)(),A=(0,a.d4)(E.T.getSelectedSpec),k=(0,a.d4)(E.T.getIsSelectedApiSpecLoading),O=(0,a.d4)(E.T.getSelectedApiSpec),S=r.reduce((e,t)=>{const r=n[t].proxies;var a,l;return r.find(e=>e===t)?e.push((a=((e,t)=>{for(var n in t||(t={}))T.call(t,n)&&P(e,n,t[n]);if(I)for(var n of I(t))D.call(t,n)&&P(e,n,t[n]);return e})({},n[t]),l={proxies:r.filter(e=>e!==t),selectable:!0},w(a,v(l)))):e.push(n[t]),e},[]);return b.createElement(s.YW,null,b.createElement(s.zY,{hasTopNav:!0},b.createElement(p.L,null),b.createElement(s.sT,{title:b.createElement(o.s,{id:"integrations-page-title-docs"}),overrideCase:!0})),b.createElement(s.TK,null,b.createElement("div",{className:e.root},b.createElement("div",{className:e.productsList},m?b.createElement(d.P,{className:e.productsTree,onSelect:([e])=>{var n;(n=e?String(e):void 0)?(t(u.o.specSelected(n)),t(u.o.fetchApiSpec({specName:n,version:y}))):t(u.o.specUnselected())},treeData:S.map(({id:e,name:t,proxies:n,selectable:r=!1})=>({title:t,key:e,selectable:r,children:n.map(e=>({title:e,key:e}))}))}):b.createElement(c.t,{className:e.productsLoading,"data-testid":"loading-products-spin"})),b.createElement("div",{className:e.content},A?k?b.createElement(c.t,{className:e.redocLoading,"data-testid":"loading-api-spec-spin"}):O?b.createElement(l.RedocStandalone,{spec:O,options:{disableSearch:!0,theme:{sidebar:{width:"0px"}}}}):null:b.createElement("div",{className:e.usageInstructions},b.createElement(i.Y,{description:b.createElement(o.s,{id:"integrations-docs-subtitle"}),title:b.createElement(o.s,{id:"integrations-docs-title"})}))))))});var O=n(14041),S=n(76866),C=n(62397),R=n(79623),L=n(46186),N=n(30920);const _=(0,y.wY)({root:{backgroundColor:"white",padding:20,"& img":{maxWidth:"100%"}},downloadContainer:{display:"flex"},downloadButton:{marginLeft:"auto"}},{name:"EdcDocs"});var K=n(14041);const V=(0,m.A)(()=>{const e=_(),[t,n]=(0,O.useState)(!1);return K.createElement(s.YW,null,K.createElement(s.zY,{hasTopNav:!0},K.createElement(p.L,null),K.createElement(s.sT,{title:K.createElement(o.s,{id:"integrations-page-title-edc-docs"})})),K.createElement("div",{className:e.root},K.createElement("div",{className:e.downloadContainer},K.createElement("p",null,"The Enterprise Data Connector (EDC) provides a direct bridge to your EROAD data via the Snowflake data platform."),K.createElement(C.$,{type:"primary",onClick:()=>{return e=function*(){n(!0);try{yield(0,N.P)("https://api-my.eroad.co.nz/datautilities","/dictionary/edc","edcDictionary.pdf")}catch(e){R.i.error("Failed to download data dictionary"),(0,L.N)(e)}n(!1)},new Promise((t,n)=>{var r=t=>{try{l(e.next(t))}catch(e){n(e)}},a=t=>{try{l(e.throw(t))}catch(e){n(e)}},l=e=>e.done?t(e.value):Promise.resolve(e.value).then(r,a);l((e=e.apply(void 0,null)).next())});var e},loading:t,className:e.downloadButton},"Download data dictionary")),K.createElement("p",null,K.createElement("br",null),"EROAD's EDC package is a read-only account that allows subscribing customers full access to the data they've generated through EROAD's telematic services.",K.createElement("br",null),K.createElement("br",null),"EROAD will set up a Snowflake reader-account for each subscribing customer, including credentials to connect to the account."),K.createElement("h3",null,"How it works"),K.createElement("p",null,"The Enterprise Data Connector (EDC) uses"," ",K.createElement("a",{href:"https://docs.snowflake.com/en/user-guide/data-sharing-gs.html",target:"_blank",rel:"noreferrer"},"Snowflake's secure data sharing")," ","in order to provide selected datasets to EROAD enterprise customers. You will have access to a"," ",K.createElement("a",{href:"https://docs.snowflake.com/en/user-guide/data-sharing-intro.html#reader-accounts",target:"_blank",rel:"noreferrer"},"Snowflake Reader-Account"),", which contains a defined schema of read-only datasets.",K.createElement("br",null),K.createElement("br",null),"If you are already using Snowflake internally, the EROAD dataset can be shared with your account."),K.createElement("h3",null,"Restricting connections to your Snowflake data via Networking-Policy"),K.createElement("p",null,"Snowflake accounts are hosted in the public cloud. Access can be restricted via a network policy, which defines a whitelist of allowed IP addresses or CIDR ranges. Contact EROAD customer support or your Key Account Manager to manage the networking policy."),K.createElement(S.F,{showIcon:!0,type:"info",description:"Login credentials will only work from these whitelisted addresses."}),K.createElement("br",null),K.createElement("h2",null,"Configuring your Connection"),K.createElement("p",null,"EROAD will send you the configuration information you'll need to connect to Snowflake. These include:"),K.createElement("ul",null,K.createElement("li",null,"Web-UI URL"),K.createElement("li",null,"Snowflake Account-ID"),K.createElement("li",null,"Snowflake Region"),K.createElement("li",null,"Connection URL"),K.createElement("li",null,"Warehouse
1-Name"),K.createElement("li",null,"Role-Name")),K.createElement("h3",null,"Connecting to the Snowflake Web-UI"),K.createElement("p",null,"You will be sent username / password credentials and URL for Snowflake as part of your purchase, but for security reasons, you will be required to change your password on your first login."),K.createElement("ol",null,K.createElement("li",null,"Go to the URL, and enter your username / password. A 'Password Expired' dialog will appear."),K.createElement("li",null,"Enter and confirm a new password. You may also receive a dialog box like this:",K.createElement("br",null),K.createElement("img",{src:"./images/admin/integrations/edc/welcome.png",alt:"welcome.png"}),K.createElement("br",null),K.createElement("br",null),K.createElement(S.F,{showIcon:!0,type:"info",description:K.createElement("p",null,"This choice drives Snowflake's introductory tutorial. Choosing the other option still gets you to the same set of permissions, but you might receive a more detailed tutorial.",K.createElement("br",null),K.createElement("br",null),"You may ",K.createElement("strong",null,"Dismiss")," this box to avoid the tutorial.")}),K.createElement("br",null)),K.createElement("li",null,"Choose ",K.createElement("strong",null,"I'm a Data Consumer"),", or ",K.createElement("strong",null,"Dismiss"),".")),K.createElement("h2",null,"Your Snowflake view"),K.createElement("img",{src:"./images/admin/integrations/edc/snowflake-ui.png",alt:"snowflake-ui.png"}),K.createElement("br",null),K.createElement("br",null),K.createElement("p",null,"After logging in, access will be read-only, with the following predefined settings:"),K.createElement("ul",null,K.createElement("li",null,"Role: CONSUMER_ROLE"),K.createElement("li",null,"Warehouse: CONSUMER_WH"),K.createElement("li",null,"Database: EROAD"),K.createElement("li",null,"Schema: EDC")),K.createElement(S.F,{showIcon:!0,type:"info",message:K.createElement("strong",null,"What's a 'warehouse'?"),description:K.createElement("p",null,"A warehouse is a compute cluster - an assigned set of resources dealing with a database.",K.createElement("br",null),K.createElement("br",null),"Some people mistake the warehouse-name for the database-name when configuring connection parameters, eg. put EROAD as the warehouse. EROAD is the database (containing the data objects).")}),K.createElement("br",null),K.createElement("p",null,"Snowflake has several tools for onboarding and help:"),K.createElement("ul",null,K.createElement("li",null,"An overview of the datasets is on the left (in the EROAD database, EDC schema)."),K.createElement("li",null,"Queries are conducted in the top central pane."),K.createElement("li",null,"Results are shown in the lower central pane.")),K.createElement("p",null,"For specific instructions on how to interact with your Snowflake account directly, refer to"," ",K.createElement("a",{href:"https://docs.snowflake.com/en/user-guide-connecting.html",target:"_blank",rel:"noreferrer"},"Snowflake's documentation"),"."),K.createElement("h2",null,"EDC data"),K.createElement("p",null,"The following datasets are available in the EDC schema:"),K.createElement("ul",null,K.createElement("li",null,"Dimension-views containing domain objects like machines, drivers and groups. These objects can be used to filter the event data and aggregated data. Dimension views are named ",K.createElement("strong",null,"DIM_*")),K.createElement("li",null,"Event-data (for example ",K.createElement("strong",null,"FACT_MACHINE_EVENT")," or ",K.createElement("strong",null,"FACT_GEOFENCE_VISIT"),")"),K.createElement("li",null,"Summarized data (for example ",K.createElement("strong",null,"FACT_DAILY_MACHINE_REPORT")," or"," ",K.createElement("strong",null,"FACT_LOGBOOK_DAILY_SUMMARY"),")"),K.createElement("li",null,"Derived datasets (for example ",K.createElement("strong",null,"FACT_OVERSPEED_SESSION")," or ",K.createElement("strong",null,"FACT_VEHICLE_TRIP"),")")),K.createElement("p",null,"By far the largest is ",K.createElement("strong",null,"FACT_MACHINE_MOVEMENT"),", with potentially hundreds of millions of records. Queries over the whole dataset may take several minutes. Generally, queries will perform best when filtered by the 'event' timestamp (e.g. \"EVENT_DATETIME\"), as the data is internally clustered by date.")))});var B=n(65418),x=n(23894),F=n(14041);const M=(0,B.R)(()=>Promise.all([n.e(7653),n.e(4912),n.e(4773),n.e(9301),n.e(1644),n.e(1060),n.e(5580),n.e(7252),n.e(677),n.e(6988),n.e(3575),n.e(9639),n.e(2879),n.e(3193)]).then(n.bind(n,38485))),U=(0,B.R)(()=>Promise.all([n.e(7653),n.e(4773),n.e(9110),n.e(9301),n.e(4251),n.e(9639),n.e(7158)]).then(n.bind(n,99018))),Y=()=>{const{apiKeyAccess:e}=(0,x._)();return F.createElement(r.BV,null,e.CREATE&&F.createElement(r.qh,{path:"/create/*",element:F.createElement(M,null)}),e.UPDATE&&F.createElement(r.qh,{path:"/:id/edit/*",element:F.createElement(M,null)}),e.READ&&F.createElement(r.qh,{path:"/*",element:F.createElement(U,null)}),F.createElement(r.qh,{path:"*",element:F.createElement(r.C5,{replace:!0,to:"/unauthorised"})}))};var j=n(91921),$=n(82162),G=Object.defineProperty,z=Object.defineProperties,q=Object.getOwnPropertyDescriptors,W=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable,Q=(e,t,n)=>t in e?G(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,J=(e,t)=>
1{for(var n in t||(t={}))X.call(t,n)&&Q(e,n,t[n]);if(W)for(var n of W(t))H.call(t,n)&&Q(e,n,t[n]);return e};const Z=(0,y.wY)(e=>{return{root:{backgroundColor:"white",padding:20,"& img":{maxWidth:"100%"}},downloadContainer:{paddingTop:e.spacing(5),display:"flex"},downloadButton:{marginLeft:"auto"},templateButton:(t=J({},e.typography.sizes.sm),n={padding:0,"& > span:first-letter":{textTransform:"none"}},z(t,q(n)))};var t,n},{name:"PowerBiDocs"});var ee=n(14041),te=(e,t,n)=>new Promise((r,a)=>{var l=e=>{try{i(n.next(e))}catch(e){a(e)}},o=e=>{try{i(n.throw(e))}catch(e){a(e)}},i=e=>e.done?r(e.value):Promise.resolve(e.value).then(l,o);i((n=n.apply(e,t)).next())});const ne="https://api-my.eroad.co.nz/datautilities",re=(0,m.A)(()=>{const{organisationId:e}=(0,a.d4)($.T.getSelectedOrganisation),t=Z(),[n,l]=(0,O.useState)(!1),[i,c]=(0,O.useState)(!1);return ee.createElement(s.YW,null,ee.createElement(s.zY,{hasTopNav:!0},ee.createElement(p.L,null),ee.createElement(s.sT,{title:ee.createElement(o.s,{id:"integrations-page-title-power-bi-docs"}),overrideCase:!0})),ee.createElement("div",{className:t.root},ee.createElement(S.F,{showIcon:!0,type:"info",description:`Your organization id is: ${e}`}),ee.createElement("div",{className:t.downloadContainer},ee.createElement("p",null,"EROAD has partnered with Microsoft to use the Power BI application suite for business intelligence analytics and visualizations."),ee.createElement(C.$,{type:"primary",onClick:()=>te(void 0,null,function*(){l(!0);try{yield(0,N.P)(ne,"/dictionary/odata","odataDictionary.pdf")}catch(e){R.i.error("Failed to download data dictionary"),(0,L.N)(e)}l(!1)}),loading:n,className:t.downloadButton},"Download data dictionary")),ee.createElement("br",null),ee.createElement("p",null,ee.createElement("br",null),"To set up your Power BI ↔ EROAD app integration, you will need:"),ee.createElement("ul",null,ee.createElement("li",null,"A Power BI account"),ee.createElement("li",null,"Your EROAD organization key"),ee.createElement("li",null,"Your EROAD API key")),ee.createElement("h2",{id:"Setting_Up"},"Setting up Microsoft Power BI"),ee.createElement("p",null,"New users will have to set up their own account for Power BI. Users of Microsoft Office suite may have already established an account, but if you haven't, start here:"," ",ee.createElement("a",{href:"https://powerbi.microsoft.com/en-us/",target:"_blank",rel:"noreferrer"},"https://powerbi.microsoft.com/en-us/")),ee.createElement(S.F,{type:"info",showIcon:!0,description:ee.createElement("p",null,"Microsoft offers new users a free trial period for Power BI. Ongoing access will be through EROAD's premium Power BI workspace.",ee.createElement("br",null),ee.createElement("br",null),"EROAD Ltd. does not provide customer support in the use of Power BI, even if it involves EROAD data. If you have difficulty in operating Power BI, please refer to"," ",ee.createElement("a",{href:"https://docs.microsoft.com/en-us/power-bi/?WT.mc_id=PBIService_HelpMenu",target:"_blank",rel:"noreferrer"},"Microsoft's documentation"),".")}),ee.createElement("br",null),"Within Power BI:",ee.createElement("ol",null,ee.createElement("li",null,"Select ",ee.createElement("strong",null,"Apps.")," This will list Power BI's available application sources."),ee.createElement("li",null,"Search and select ",ee.createElement("strong",null,"EROAD.")," Selecting EROAD will prompt you to create a Power BI workspace.",ee.createElement("br",null),ee.createElement("img",{src:"./images/admin/integrations/powerbi/getstarted-powerbi.png",alt:"get-started.png"})),ee.createElement("li",null,"Install the app."),ee.createElement(S.F,{type:"info",showIcon:!0,description:ee.createElement("p",null,"Workspace names are pre-populated with a current timestamp for your convenience.")}),ee.createElement("li",null,"Click ",ee.createElement("strong",null,"Go to App."))),ee.createElement("br",null),ee.createElement("h3",{id:"Explore_App"},"Explore with sample data / explore the app"),ee.createElement("p",null,"You can navigate and experiment with the EROAD app using sample data. The included reports are listed on the app's report navigation panel."),ee.createElement("p",null,"If the initially-displayed reports aren't populated with data, try broadening the date range."),ee.createElement("h2",{id:"Connect_Data"},"Connect your data / Connect"),ee.createElement("p",null,"Click the link ",ee.createElement("strong",null,"Connect your data")," to connect to your EROAD dataset via the ODATA API."),ee.createElement("img",{src:"./images/admin/integrations/powerbi/connect-your-data.png",alt:"connect-your-data.png"}),ee.createElement("br",null),ee.createElement("br",null),ee.createElement("h3",{id:"Organization_Key"},"EROAD Organization Key"),ee.createElement("p",null,"This Group Identification (GID) key allows Power BI to access your EROAD data. EROAD will supply this to you when you purchase the Power BI Integrations app.",ee.createElement("br",null),"The ",ee.createElement("strong",null,"Organization Key")," is a key assigned by EROAD to the customer to allow you"," ",ee.createElement("strong",null,"general access")," to the data."),ee.createElement("img",{src:"./images/admin/integrations/powerbi/connect-to-eroad.png",alt:"connect-to-eroad.png"}),ee.createElement("br",null),ee.createElement("br",null),ee.createElement("ol",null,ee.createElement("li",null,"Enter your ",ee.createElement("strong",null,"Organization Key")," in the box provided."),ee.createElement("li",null,"Click the ",ee.createElement("strong",null,"Advanced arrow.")," You may choose to ensure your data is automatically refreshed at midnight (On), or manually update the data when appropriate for you (Off)."),ee.createElement("li",null,"Click ",ee.createElement("strong",null,"Next"),". The next window will ask for your API Key.")),ee.createElement("h3",{id:"API_Key"},"EROAD Integration API Key"),ee.createElement("p",null,"The ",ee.createElement("strong",null,"API Key")," is for making ",ee.createElement("strong",null,"ongoing queries")," to that data, and is"," ",ee.createElement(r.N_,{to:"/admin/integrations/keys"},"created within Depot"),". (The key requires ODATA API access: that comes with your Power BI integration purchase.)"),ee.createElement("ol",null,ee.createElement("li",null,"Click ",ee.createElement("strong",null,"Create new API key.")," The Create an API Key screen opens."),ee.createElement("li",null,"Fill in your details."),ee.createElement("li",null,"Click ",ee.createElement("strong",null,"Add Products.")),ee.createElement("li",null,"Select ",ee.createElement("strong",null,"OData.")),ee.createElement("li",null,"Click ",ee.createElement("strong",null,"OK.")),ee.createElement("li",null,"Click ",ee.createElement("strong",null,"Create key")),ee.createElement("br",null),ee.createElement("img",{src:"./images/admin/integrations/powerbi/create-key.png",alt:"create-key.png"}),ee.createElement("br",null),ee.createElement("br",null),ee.createElement("p",null,"On returning to the Manage API Keys page, your key will be listed."),ee.createElement("img",{src:"./images/admin/integrations/powerbi/created-key.png",alt:"created-key.png"}),ee.createElement("br",null),ee.createElement("br",null),ee.createElement("li",null,ee.createElement("strong",null,"Click Copy Key (",ee.createElement(j.A,null),")"),". This copies your API key to your clipboard buffer."),ee.createElement("li",null,"Switch windows back to Power BI and paste the key into the provided field."),ee.createElement("li",null,"Click ",ee.createElement("strong",null,"Sign in."))),ee.createElement("p",null,"You are now using your data within Power BI."),ee.createElement("hr",null),ee.createElement("h2",{id:"Desktop_App"},"Power BI Desktop Template"),ee.createElement("p",null,"The Desktop Template is for customers that need more flexibility in combining their own data sources with EROAD's, to generate meaningful measures, trends, charts and insights.",ee.createElement("br",null),ee.createElement("br",null),"The Desktop Template is opened in"," ",ee.createElement("a",{href:"https://powerbi.microsoft.com/en-us
1/desktop/",target:"_blank",rel:"noreferrer"},"Microsoft Power BI Desktop")," ","(available through the Windows 10 Microsoft Store). The template has a built-in data model with pre-configured (but empty) reports included. The template automatically connects with EROAD's API on opening, and uses the same authentication model as the Power BI service."),ee.createElement(S.F,{showIcon:!0,type:"info",description:ee.createElement("p",null,"These instructions assume you've already downloaded and installed Power BI Desktop, and that you have signed in/created a valid login for the Power BI service.",ee.createElement("br",null),ee.createElement("br",null),"While using Power BI Desktop is free, users will need a Pro licence to integrate it with the Power BI service (and EROAD data).")}),ee.createElement("br",null),ee.createElement("h3",{id:"Desktop_Template"},"Opening from the Desktop Template"),ee.createElement("p",null,"The Desktop Template is available for"," ",ee.createElement(C.$,{className:t.templateButton,type:"link",loading:i,onClick:()=>te(void 0,null,function*(){c(!0);try{yield(0,N.P)(ne,"/templates","pbiDesktopTemplates.zip")}catch(e){R.i.error("Failed to download Power BI desktop templates"),(0,L.N)(e)}c(!1)})},"download here"),"."),ee.createElement("ol",null,ee.createElement("li",null,"Double-click the file. This will open the Desktop Template in Power BI Desktop."),ee.createElement("li",null,"Enter your authentication parameters."),ee.createElement("li",null,"Enter the ",ee.createElement("strong",null,"Organization key"),".",ee.createElement("img",{src:"./images/admin/integrations/powerbi/enter-org-id.png",alt:"enter-org-id.png"})),ee.createElement("li",null,"Select ",ee.createElement("strong",null,"Web API"),"."),ee.createElement("li",null,"Enter your ",ee.createElement(r.N_,{to:"/admin/integrations/keys"},"EROAD API key"),".",ee.createElement("img",{src:"./images/admin/integrations/powerbi/enter-api-key.png",alt:"enter-api-key.png"})),ee.createElement("li",null,"Click ",ee.createElement("strong",null,"Connect"),".")),ee.createElement("p",null,"The Desktop Template App starts importing data via the ODATA API. After a moment, the packaged reports are populated and it's ready to use."),ee.createElement("h3",{id:"Desktop_Reports"},"Pre-configured reports"),ee.createElement("p",null,"The Desktop Template App's pre-configured reports are region-specific."),ee.createElement("ul",null,ee.createElement("li",null,ee.createElement("strong",null,"Fleet Utilization (all regions)"),": Running hours, Distance, Idle time, etc. in various presentations."),ee.createElement("li",null,ee.createElement("strong",null,"Overspeed Insights (all regions)"),": Insight into the over speeding exceptions generated for your fleet."),ee.createElement("li",null,ee.createElement("strong",null,"Hours of Service (HoS)")),ee.createElement("li",null,ee.createElement("strong",null,"Violation Insights (USA)"),": Driver fatigue insights."),ee.createElement("li",null,ee.createElement("strong",null,"Violation Insights (AUS, NZL)"),": Driver fatigue insights."))))});var ae=n(40026),le=n(13215),oe=n(12463),ie=n(85817),se=n(51962),ce=n(80601),de=n(29676),ue=n(4078),pe=n(72627);const me=[{value:"ACTIVATED",colour:"decorativeGreenLight",i18nId:"integrations-v1-partner-status-active"},{value:"PENDING_ACTIVATION",colour:"decorativeYellowLight",i18nId:"integrations-v1-partner-status-pending-activation"},{value:"PENDING_DEACTIVATION",colour:"decorativeYellowLight",i18nId:"integrations-v1-partner-status-pending-deactivation"},{value:"AVAILABLE",colour:"onsurfaceTechnicalFont",i18nId:"integrations-v1-partner-status-available"},{value:"DEACTIVATED",colour:"eroadBrand",i18nId:"integrations-v1-partner-status-deactivated"}];var Ee=Object.defineProperty,ge=Object.defineProperties,he=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Ae=(e,t,n)=>t in e?Ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,we=(e,t)=>{for(var n in t||(t={}))fe.call(t,n)&&Ae(e,n,t[n]);if(ye)for(var n of ye(t))be.call(t,n)&&Ae(e,n,t[n]);return e};const ve=(0,y.wY)(e=>{return{titleBox:{display:"flex",justifyContent:"space-between",textTransform:"uppercase","& > span:first-child":{flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},contentFieldContainer:{display:"flex",padding:e.spacing(2),"&:first-child":{paddingTop:e.spacing(1)}},contentFieldLabels:{"& > span:first-child":we({},e.typography.sizes.xs),"& > span:nth-child(3)":(t=we({},e.typography.sizes.sm),n={overflow:"hidden",textOverflow:"ellipsis",lineClamp:5,display:"-webkit-box",boxOrient:"vertical"},ge(t,he(n)))},button:{position:"absolute",bottom:16,left:"50%",transform:"translateX(-50%)"},confirmText:{whiteSpace:"pre-wrap"}};var t,n},{name:"PartnerCard"});var Ie=n(14041);const Te=({integration:e,status:t})=>{const n=(0,a.d4)(E.T.getIsV1PartnersBusy),r=(0,a.wA)(),l=ve(),{t:i}=(0,ce.t)(),{description:s,id:c,name:d,provider:u}=e,p=Pe(t),m=(0,se.O)(p);return Ie.createElement(de.Z,{height:300,"data-testid":d,title:d,titleTextTransform:"uppercase",extra:Ie.createElement(pe.h,{status:t,statusOptions:me})},Ie.createElement(De,{description:s,provider:u}),m&&Ie.createElement(C.$,{className:l.button,disabled:n,onClick:function(){(0,se.O)(p)&&ue.a.confirm({title:i(p.confirmTitle),content:Ie.createElement("span",{className:l.confirmText},i(p.confirmText)),onOk:()=>{r(p.onConfirm(c))}})}},Ie.createElement(o.s,{id:p.buttonText})))},De=({description:e,provider:t})=>{const{t:n}=(0,ce.t)(),r=ve(),a=[{title:n("integrations-v1-partner-card-provider"),value:t,testId:"provider"},{title:n("integrations-v1-partner-card-description"),value:e,testId:"description"}];return Ie.createElement(Ie.Fragment,null,a.map(({testId:e,title:t,value:n})=>Ie.createElement("div",{className:r.contentFieldContainer,key:e},Ie.createElement("div",{className:r.contentFieldLabels},Ie.createElement("span",null,t),Ie.createElement("br",null),Ie.createElement("span",{"data-testid":`integrations-v1-partner-card-${e}`},n)))))},Pe=e=>{switch(e){case"AVAILABLE":case"DEACTIVATED":return{buttonText:"integrations-v1-partner-actions-request",confirmTitle:"integrations-v1-partner-actions-request-confirm-title",confirmText:"integrations-v1-partner-actions-request-confirm-text",onConfirm:u.o.createPartner};case"ACTIVATED":return{buttonText:"integrations-v1-partner-actions-cancel",confirmTitle:"integrations-v1-partner-actions-cancel-confirm-title",confirmText:"integrations-v1-partner-actions-cancel-confirm-text",onConfirm:u.o.cancelPartner};default:return}};var ke=n(14041);const Oe=(0,m.A)(()=>{const[{partnersById:e,partnersIdList:t},n]=(()=>{const e=(0,a.d4)(E.T.getV1PartnersById),t=(0,a.d4)(E.T.getV1PartnersIdList),n=(0,a.d4)(E.T.getIsV1PartnersLoaded),r=(0,a.wA)();return(0,O.useEffect)(()=>{n||r(u.o.fetchV1Partners())},[r,n]),[{partnersById:e,partnersIdList:t},n]})(),[r,l]=(0,O.useState)(""),[i,c]=(0,O.useState)([]),d=(0,O.useMemo)(()=>{const n=new RegExp((0,ie.N)(r),"i");return t.filter(t=>{const{status:a,integration:l}=e[t];return!(r.length&&!n.test(l.name))&&(0===i.length||i.includes(a))}).sort((t,n)=>e[t].integration.name.localeCompare(e[n].integration.name))},[e,t,r,i]);return ke.createElement(s.YW,null,ke.createElement(s.zY,{hasTopNav:!0},ke.createElement(p.L,null),ke.createElement(s.sT,{title:ke.createElement(o.s,{id:"integrations-page-title-partners"})})),n?ke.createElement(s.TK,null,ke.createElement(oe.v,{filterOptions:me,onFilterChange:c,onSearchChange:l,searchValue:r}),ke.createElement(le.h,{size:4}),ke.createElement(ae.y,{gutter:[16,16]},d.map(t=>{const{status:n,integration:r}=e[t];return ke.createElement(ae.f,{xs:24,sm:12,lg:8,xxl:4,key:r.id},ke.createElement(Te,{integration:r,status:n,"data-testid":"integrations-partners-card"}))})),ke.createElement(le.h,{size:4})):ke.createElement(s.LK,null))});var Se=n(14041);const Ce=()=>{const{apiKeyAccess:e,apiDocAccess:t,partnerAccess:n,powerBiDocAccess:a,dataConnectorDocAccess:l}=(0,x._)(),o=Se.createElement(r.C5,{replace:!0,to:"/admin/integrations/"+(n.READ?"partners":"keys")});return Se.createElement(r.BV,null,e.READ&&Se.createElement(r.qh,{path:"/keys/*",element:Se.createElement(Y,null)}),t.READ&&Se.createElement(r.qh,{path:"/docs/*",element:Se.createElement(k,null)}),n.READ&&Se.createElement(r.qh,{path:"/partners/*",element:Se.createElement(Oe,null)}),a.READ&&Se.createElement(r.qh,{path:"/powerbi/*",element:Se.createElement(re,null)}),l.READ&&Se.createElement(r.qh,{path:"/edc/*",element:Se.createElement(V,null)}),(n.READ||e.READ)&&Se.createElement(Se.Fragment,null,Se.createElement(r.qh,{path:"/*",element:o}),Se.createElement(r.qh,{path:"/integrations/*",element:o})),Se.createElement(r.qh,{path:"*",element:Se.createElement(r.C5,{replace:!0,to:"/unauthorised"})}))}},12463:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});var r=n(80601),a=n(15313),l=n(62457),o=n(14041);const i=({filterOptions:e,onFilterChange:t,onSearchChange:n,searchValue:i})=>{const{t:s}=(0,r.t)(),c=e.map(({value:e,i18nId:t})=>({title:s(t),value:e}));return o.createElement(a.Qn,null,o.createElement(l.NJ,{enterButton:!0,onChange:e=>n(e.target.value),placeholder:s("integrations-filter-bar-search"),value:i}),o.createElement(a.yH,{onChange:t,treeData:c,parentNodeLabel:s("integrations-filter-bar-status-all"),placeholder:s("integrations-filter-bar-status-placeholder")}))}},13587:(e,t,n)=>{"use strict";n.d(t,{T:()=>a});const r=n(18198).$n.ADMIN,a={getApiKeysById:e=>e[r].apiKeys.byId,getApiKeysIdList:e=>e[r].apiKeys.idList,getIsApiKeyDeleting:e=>e[r].isApiKeyDeleting,getIsApiKeyFormSubmitting:e=>e[r].isApiKeyFormSubmitting,getIsApiKeysLoaded:e=>e[r].isApiKeysLoaded,getIsProductsLoaded:e=>e[r].isProductsLoaded,getIsV1PartnersBusy:e=>e[r].isV1PartnersBusy,getIsV1PartnersLoaded:e=>e[r].isV1PartnersLoaded,getIsSelectedApiSpecLoading:e=>"pending"===e[r].apiSpec.request.status,getProductsById:e=>e[r].products.byId,getProductsIdList:e=>e[r].products.idList,getSelectedApiSpec:e=>"success"===e[r].apiSpec.request.status?e[r].apiSpec.result:null,getSelectedSpec:e=>e[r].selectedSpec,getV1PartnersById:e=>e[r].v1Partners.byId,getV1PartnersIdList:e=>e[r].v1Partners.idList}},20462:()=>{},23501:(e,t,n)=>{"use strict";n.d(t,{Nt:()=>a,X$:()=>r});var r=(e=>(e.V1="v1",e.V2="v2",e))(r||{}),a=(e=>(e.ACTIVATED="ACTIVATED",e.AVAILABLE="AVAILABLE",e.DEACTIVATED="DEACTIVATED",e.PENDING_ACTIVATION="PENDING_ACTIVATION",e.PENDING_DEACTIVATION="PENDING_DEACTIVATION",e))(a||{})},23894:(e,t,n)=>{"use strict";n.d(t,{_:()=>l});var r=n(14041),a=n(67595);const l=()=>{const e=(0,a.T)("READ.API_MANAGEMENT"),t=(0,a.T)("CREATE.API_MANAGEMENT"),n=(0,a.T)("UPDATE.API_MANAGEMENT"),l=(0,a.T)("DELETE.API_MANAGEMENT"),o=(0,a.T)("READ.PARTNER_MANAGEMENT"),i=(0,a.T)("READ.ODATA_DOCUMENTATION"),s=(0,a.T)("READ.DATA_CONNECTOR_DOCUMENTATION");return(0,r.useMemo)(()=>({apiKeyAccess:{READ:e,CREATE:t,UPDATE:n,DELETE:l},apiDocAccess:{READ:e},partnerAccess:{READ:o},powerBiDocAccess:{READ:i},dataConnectorDocAccess:{READ:s}}),[t,e,n,l,i,s,o])}},30920:(e,t,n)=>{"use strict";n.d(t,{P:()=>o,_:()=>l});var r=n(12291),a=n(94386);const l=e=>(0,r.Y)(e,Date.now()),o=(e,t,n)=>{return r=function*(){const r=yield(0,a.F)({url:t,baseURL:e,method:"GET"}),l=document.createElement("a");l.href=`data:application/octet-stream;base64,${encodeURI(r)}`,l.setAttribute("download",n),document.body.appendChild(l),l.click(),document.body.removeChild(l)},new Promise((e,t)=>
1{var n=e=>{try{l(r.next(e))}catch(e){t(e)}},a=e=>{try{l(r.throw(e))}catch(e){t(e)}},l=t=>t.done?e(t.value):Promise.resolve(t.value).then(n,a);l((r=r.apply(void 0,null)).next())});var r}},30975:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r=n(83381),a=n(18198),l=n(90645),o=n(40421),i=n(96711),s=n(44013),c=n(89590),d=n(39626),u=n(23501),p=Object.defineProperty,m=Object.defineProperties,E=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,f=(e,t,n)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b=(e,t)=>{for(var n in t||(t={}))h.call(t,n)&&f(e,n,t[n]);if(g)for(var n of g(t))y.call(t,n)&&f(e,n,t[n]);return e},A=(e,t)=>m(e,E(t));const w={apiKeys:{byId:{},idList:[]},apiSpec:c.mQ,selectedSpec:null,isApiKeyDeleting:!1,isApiKeyFormSubmitting:!1,isApiKeysLoaded:!1,isProductsLoaded:!1,products:{byId:{},idList:[]},isV1PartnersLoaded:!1,isV1PartnersBusy:!1,v1Partners:{byId:{},idList:[]}},v=(0,l.HY)({apiKeys:(0,o.v)([d.o.deleteApiKey.success.reduce(({byId:e,idList:t},n)=>({byId:Object.fromEntries(Object.entries(e).filter(([e])=>e!==n)),idList:t.filter(e=>e!==n)})),d.o.fetchApiKeys.success.reduce((e,t)=>({byId:Object.fromEntries(t.map(e=>[e.id,e])),idList:t.map(e=>e.id)})),d.o.submitApiKeyForm.success.reduce(({byId:e,idList:t},n)=>{const{id:r}=n;return{byId:A(b({},e),{[r]:n}),idList:t.find(e=>e===r)?t:[...t,r]}})],w.apiKeys),selectedSpec:(0,o.v)([i.o.orgSwitcherOrgSelected.reduce(()=>w.selectedSpec),i.o.user.logout.success.reduce(()=>w.selectedSpec),d.o.specSelected.reduce((e,t)=>t),d.o.specUnselected.reduce(()=>w.selectedSpec)],w.selectedSpec),apiSpec:(0,o.v)([i.o.orgSwitcherOrgSelected.reduce(()=>w.apiSpec),i.o.user.logout.success.reduce(()=>w.apiSpec),d.o.fetchApiSpec.request.reduce(e=>(0,s.m$)(e)),d.o.fetchApiSpec.failure.reduce(e=>(0,s.C1)(e)),d.o.fetchApiSpec.success.reduce((e,t)=>(0,s.tU)(e,t))],w.apiSpec),isApiKeyDeleting:(0,o.v)([d.o.deleteApiKey.reduce(()=>!0),d.o.deleteApiKey.success.reduce(()=>!1),d.o.deleteApiKey.failure.reduce(()=>!1)],w.isApiKeyDeleting),isApiKeyFormSubmitting:(0,o.v)([d.o.submitApiKeyForm.reduce(()=>!0),d.o.submitApiKeyForm.success.reduce(()=>!1),d.o.submitApiKeyForm.failure.reduce(()=>!1)],w.isApiKeyFormSubmitting),isApiKeysLoaded:(0,o.v)([d.o.fetchApiKeys.success.reduce(()=>!0),d.o.fetchApiKeys.failure.reduce(()=>!0)],w.isApiKeysLoaded),isProductsLoaded:(0,o.v)([d.o.fetchProducts.success.reduce(()=>!0),d.o.fetchProducts.failure.reduce(()=>!0)],w.isProductsLoaded),products:(0,o.v)([d.o.fetchProducts.success.reduce((e,t)=>({byId:Object.fromEntries(t.map(e=>[e.id,e])),idList:t.map(e=>e.id)}))],w.products),isV1PartnersLoaded:(0,o.v)([d.o.fetchV1Partners.success.reduce(()=>!0),d.o.fetchV1Partners.failure.reduce(()=>!0)],w.isV1PartnersLoaded),isV1PartnersBusy:(0,o.v)([d.o.createPartner.reduce(()=>!0),d.o.cancelPartner.reduce(()=>!0),d.o.createPartner.success.reduce(()=>!1),d.o.cancelPartner.success.reduce(()=>!1),d.o.createPartner.failure.reduce(()=>!1),d.o.cancelPartner.failure.reduce(()=>!1)],w.isV1PartnersBusy),v1Partners:(0,o.v)([d.o.fetchV1Partners.success.reduce((e,t)=>({byId:Object.fromEntries(t.map(e=>[e.integration.id,e])),idList:t.map(e=>e.integration.id)})),d.o.createPartner.success.reduce((e,t)=>A(b({},e),{byId:A(b({},e.byId),{[t]:A(b({},e.byId[t]),{status:u.Nt.PENDING_ACTIVATION})})})),d.o.cancelPartner.success.reduce((e,t)=>A(b({},e),{byId:A(b({},e.byId),{[t]:A(b({},e.byId[t]),{status:u.Nt.PENDING_DEACTIVATION})})}))],w.v1Partners)});var I=n(24392),T=n(35060),D=n(95737),P=n(48194);function*k(){yield(0,P.G)()}function*O({payload:e}){const t=yield(0,I.SD)("router"),{apiKeyId:n,keyData:r,version:a}=e;yield(0,I.yJ)(d.o.submitApiKeyForm.request());try{const e=n?yield(0,I.T1)(D.C$,{id:n,payload:r},a):yield(0,I.T1)(D.Iq,{payload:r},a);yield(0,I.yJ)(d.o.submitApiKeyForm.success(e)),yield(0,I.T1)(t.navigate,"/admin/integrations/keys")}catch(e){const t=e instanceof Error?e:new Error(String(e));yield(0,I.yJ)(d.o.submitApiKeyForm.failure(t))}}var S=n(49067);const C=(0,r.G)({key:a.$n.ADMIN,reducer:v,saga:function*(){yield(0,I.Q7)([(0,I.p8)(d.o.deleteApiKey.type,function*(e){yield*(0,T.X)(d.o.deleteApiKey,e=>(0,D.Lh)(e.id,e.version),{makeSuccessPayload:(e,t)=>t.payload.id})(e)}),(0,I.p8)(d.o.deleteApiKey.failure.type,k),(0,I.p8)(d.o.fetchApiKeys.type,function*(e){yield*(0,T.X)(d.o.fetchApiKeys,()=>(0,D.PX)(e.payload.version))(e)}),(0,I.p8)(d.o.fetchApiKeys.failure.type,k),(0,I.p8)(d.o.fetchProducts.type,function*(e){yield*(0,T.X)(d.o.fetchProducts,()=>(0,D.d$)(e.payload.version))(e)}),(0,I.p8)(d.o.fetchProducts.failure.type,k),(0,I.p8)(d.o.fetchV1Partners.type,(0,T.X)(d.o.fetchV1Partners,D.J0)),(0,I.p8)(d.o.fetchV1Partners.failure.type,k),(0,I.p8)(d.o.cancelPartner.type,(0,T.X)(d.o.cancelPartner,D.$C,{makeSuccessPayload:(e,t)=>t.payload})),(0,I.p8)(d.o.cancelPartner.failure.type,k),(0,I.p8)(d.o.createPartner.type,(0,T.X)(d.o.createPartner,D.Fo,{makeSuccessPayload:(e,t)=>t.payload})),(0,I.p8)(d.o.createPartner.failure.type,k),(0,I.p8)(d.o.submitApiKeyForm.type,O),
1(0,I.p8)(d.o.submitApiKeyForm.failure.type,k),(0,I.p8)(d.o.fetchApiSpec.type,function*(e){yield*(0,T.X)(d.o.fetchApiSpec,e=>(0,D.pS)(e.specName,e.version))(e)})])},translations:S.A})},39626:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});const r=(0,n(40421).E)("API_KEYS",e=>({cancelPartner:e.asyncAction(),createPartner:e.asyncAction(),deleteApiKey:e.asyncAction(),fetchApiKeys:e.asyncAction(),fetchApiSpec:e.asyncAction(),fetchProducts:e.asyncAction(),fetchV1Partners:e.asyncAction(),specSelected:e.action(),specUnselected:e.action(),submitApiKeyForm:e.asyncAction()}))},47954:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});var r=n(34164),a=n(23894),l=n(14041);const o=()=>{const{apiKeyAccess:e,apiDocAccess:t,partnerAccess:n,powerBiDocAccess:o,dataConnectorDocAccess:i}=(0,a._)();return l.createElement(r.I,{activeKey:window.location.pathname,tabs:[n.READ&&{path:"/admin/integrations/partners",titleId:"integrations-tabs-partners",tabTestId:"integrations-tabs-partners"},e.READ&&{path:"/admin/integrations/keys",titleId:"integrations-tabs-keys",tabTestId:"integrations-tabs-keys"},t.READ&&{path:"/admin/integrations/docs",titleId:"integrations-tabs-docs",tabTestId:"integrations-tabs-docs"},o.READ&&{path:"/admin/integrations/powerbi",titleId:"integrations-tabs-power-bi-docs",tabTestId:"integrations-tabs-powerbi"},i.READ&&{path:"/admin/integrations/edc",titleId:"integrations-tabs-edc-docs",tabTestId:"integrations-tabs-edc"}].filter(e=>!1!==e)})}},54012:(e,t,n)=>{"use strict";n.d(t,{V:()=>s});var r=n(70541),a=n(82162),l=n(62009),o=n(39612),i=n(23501);const s=()=>{const{organisationId:e}=(0,r.d4)(a.T.getSelectedOrganisation),t=(0,r.d4)(o.T.getDynamicConfig);return e&&(0,l.l)({dynamicConfig:t,namespaceDotFeature:"admin.integrationV2Enabled",whitelist:"integrationV2Whitelist",whitelistItem:e})?i.X$.V2:i.X$.V1}},68766:()=>{},72627:(e,t,n)=>{"use strict";n.d(t,{h:()=>d});var r=n(94752),a=n(43420),l=n(33233),o=n(83593),i=n(30920);const s=(0,n(1454).wY)(()=>({root:{textTransform:"uppercase",fontWeight:"bold"}}),{name:"StatusTag"});var c=n(14041);const d=({status:e,statusOptions:t,expiresAt:n})=>{var d;const u=s(),p=(0,o.D)(),m=(0,i._)(n)?"EXPIRED":e,{colour:E,i18nId:g}=null!=(d=t.find(({value:e})=>e===m))?d:{};return(0,r.g)(g)||(0,r.g)(E)?null:c.createElement("span",{className:u.root},c.createElement(l.v,{color:p.colors[E]},c.createElement(a.s,{id:g})))}},77801:()=>{},88059:()=>{},95737:(e,t,n)=>{"use strict";n.d(t,{$C:()=>g,C$:()=>s,Fo:()=>E,Iq:()=>o,J0:()=>m,Lh:()=>i,PX:()=>c,d$:()=>p,ed:()=>d,pS:()=>u});var r=n(94386),a=n(23501);const l=e=>e===a.X$.V2?"https://api-my.eroad.co.nz/apikeys/v2":"https://api-my.eroad.co.nz/apikeys",o=({payload:e},t)=>(0,r.F)({url:"/keys",baseURL:l(t),data:e,method:"POST"}),i=(e,t)=>(0,r.F)({url:`/keys/${e}`,baseURL:l(t),method:"DELETE"}),s=({id:e,payload:t},n)=>(0,r.F)({url:`/keys/${e}`,baseURL:l(n),data:t,method:"PUT"}),c=e=>(0,r.F)({url:"/keys",baseURL:l(e)}),d=(e,t)=>(0,r.F)({url:`/products/${e}/entities`,baseURL:l(t),method:"GET"}),u=(e,t)=>(0,r.F)({url:`/spec/${e}`,baseURL:l(t),method:"GET"}),p=e=>(0,r.F)({url:"/products",baseURL:l(e)}),m=()=>{var e;return(0,r.F)({url:"/integrations",baseURL:null==(e=l(a.X$.V1))?void 0:e.replace("/apikeys","/partner-integrations")})},E=e=>{var t;return(0,r.F)({url:`/integrations/${e}/activation`,baseURL:null==(t=l(a.X$.V1))?void 0:t.replace("/apikeys","/partner-integrations"),method:"POST"})},g=e=>{var t;return(0,r.F)({url:`/integrations/${e}/activation`,baseURL:null==(t=l(a.X$.V1))?void 0:t.replace("/apikeys","/partner-integrations"),method:"DELETE"})}}}]);
2//# sourceMappingURL=adminIntegrationsRouter.myeroad.58ed38708ce9160184c5.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.