{"version":3,"sources":["util/FetchUtil.js","config/settings.js","controller/AuthController.js","controller/CustomerController.js","controller/FloorController.js","view/LoginParams.js","view/ExportOptions.js","view/Response.js","view/RequiredParams.js","view/ImdfParams.js","view/MapOptionalParams.js","view/IpsOptionalParams.js","view/EmptyOptionalParams.js","controller/LocalIPSController.js","controller/JacsQueController.js","controller/index.js","view/ExportParent.js","App.js","serviceWorker.js","index.js"],"names":["FetchUtil","url","a","headers","fetch","method","mode","req","json","cors","blob","data","body","status","format","properties","jacsQueUrl","generateUrl","generateIpsUrl","clientId","AuthController","this","username","password","host","client_id","grant_type","encodedBody","Object","keys","map","key","encodeURIComponent","join","post","authReponse","CustomerController","customerId","hostUrl","token","entity","Authorization","get","reponse","Array","isArray","FloorController","venue","id","response","length","getBuildingId","buildingId","LoginParams","props","handleChange","bind","authorize","authController","customerController","floorController","state","errorMessage","loginClick","event","target","setState","value","auth","access_token","jwtDecode","cid","getByCustomer","clients","templates","venues","forEach","v","name","getByVenue","initFloors","sdkClients","filter","c","sdkCredentials","onLoginClick","inputProps","style","color","inputLabelProps","shrink","className","TextField","required","label","margin","onChange","InputProps","InputLabelProps","type","Button","variant","onClick","CircularProgress","Component","ExportOptions","onExportClick","onExportSelect","onExportChange","FormControl","component","FormLabel","focused","RadioGroup","aria-label","defaultValue","row","FormControlLabel","control","Radio","endIcon","disabled","exportClick","Response","handleClick","handleClose","handleViewClick","handleDownloadClick","handleImdfDownloadClick","fetchUtil","anchorEl","currentTarget","innerHTML","exports","find","e","window","open","getFile","saveAs","fileUrl","aria-controls","aria-haspopup","Menu","keepMounted","Boolean","onClose","MenuItem","createErrorMessage","createExportLinks","createImdfExportLinks","message","showResponseButtons","export","RequiredParams","onVenueChange","onClientChange","InputLabel","Select","autoWidth","selectedVenue","selectedClient","client","ImdfParams","paddingTop","MapOptionalParams","boundingBoxParams","focusToWaypointParams","onFloorChange","bboxX","bboxY","waypointId","unitPadding","minWidth","minHeight","selectedFloor","optional","floors","floor","Checkbox","checked","focusToWaypoint","fontSize","IpsOptionalParams","EmptyOptionalParams","LocalIPSController","lat1","lon1","lat2","lon2","PI","Math","cos","sin","sqrt","atan2","radsInSingleDegree","dLat","dLon","coordinates","mapSize","topLat","topLeft","topLng","bottomLat","bottomRight","bottomLng","distance","measure","latlng","proj4","mmPerPX","hypot","pxPerMeter","Promise","resolve","reject","clientSec","clientSecret","authResponse","getVenueFullCall","vfcResponse","mapTemplateResponse","defaultMapTemplateId","getMapTemplateById","getBuildingFullCall","buildings","items","bfcResponse","vfc","bfc","mt","svg","docwidth","docheight","scale","width","height","canvas","OffscreenCanvas","ctx","getContext","Canvg","fromString","presets","offscreen","resize","render","convertToBlob","mapTemplateId","venueId","client_secret","mapNames","building","templateBlob","text","templateText","pngSize","round","replace","address","md","JacsQueController","JSON","stringify","uuid","setIfNotNull","field","getGeneratedImdfFile","controller","isAwaiting","interval","setInterval","getImdfFile","generatedImdfFile","clearInterval","GenerateController","localIPSController","jacsQueueController","f","customer_id","venue_id","host_name","map_id","mapId","building_id","focus_waypoint","export_formats","fontFamily","fontFill","fontStroke","fontStrokeWidth","bboxWidth","bboxHeight","updateMessage","getAllVenueData","venueData","zip","JSZip","venueName","file","exportIPSData","mapNameArray","i","mapName","shortName","includes","level","parser","DOMParser","doc","parseFromString","cssRawRuleList","k","getElementsByTagName","push","prototype","slice","call","sheet","cssRules","cssCombinedRuleList","m","n","cssRuleList","element","index","indexOf","customStyleString","customStylingSVGXml","mapStyleList","mapStyle","j","cssObject","selectorText","toLowerCase","concat","layerName","layerObject","fill","opacity","stroke","strokeWidth","strokeOpacity","cssText","split","documentElement","viewBox","baseVal","Error","svgToRasterize","rasterizeMap","svgBlob","Blob","exportSupportFile","generateAsync","then","selectedTemplate","t","map_style","postFile","pushImdfExportRequest","exportResponse","ExportParent","handleExportChange","handleVenueChange","handleClientChange","handleOptionalParamChange","handleFloorChange","handleIpsParamChange","generateExport","generateController","templatesWithDefault","venueFloorMap","exportMessage","venueKey","alreadyLoaded","localGenerateIPS","showUpdateMessage","exportImdf","showRequiredParams","showMainPage","App","login","handleLogout","loggedIn","location","hostname","match","ReactDOM","document","getElementById","navigator","serviceWorker","ready","registration","unregister"],"mappings":"qgBA4DeA,E,0HA1Db,WAAUC,GAAV,+BAAAC,EAAA,6DAAeC,EAAf,+BAAyB,GAAzB,SACoBC,MAAMH,EAAK,CAC3BI,OAAQ,MACRC,KAAM,OACNH,YAJJ,cACQI,EADR,gBAMqBA,EAAIC,OANzB,cAMQA,EANR,yBAOSA,GAPT,2C,mHAUA,WAAcP,GAAd,iCAAAC,EAAA,6DAAmBC,EAAnB,+BAA6B,GAAIM,EAAjC,+BAAwC,OAAxC,SACoBL,MAAMH,EAAK,CAC3BI,OAAQ,MACRC,KAAMG,EACNN,YAJJ,cACQI,EADR,gBAMqBA,EAAIG,OANzB,cAMQA,EANR,yBAOSA,GAPT,2C,gHAWA,WAAWT,EAAKE,EAASQ,GAAzB,iBAAAT,EAAA,sEACoBE,MAAMH,EAAK,CAC3BI,OAAQ,OACRC,KAAM,OACNH,UACAS,KAAMD,IALV,cACQJ,EADR,gBAOqBA,EAAIC,OAPzB,cAOQA,EAPR,yBAQSA,GART,2C,wHAYA,WAAeP,EAAKE,EAASQ,GAA7B,mBAAAT,EAAA,sEACoBE,MAAMH,EAAK,CAC3BI,OAAQ,OACRC,KAAM,OACNH,UACAS,KAAMD,IALV,UAOqB,OANbJ,EADR,QAOUM,OAPV,gCAQuBN,EAAIG,OAR3B,cAQUA,EARV,yBASWA,GATX,wBAWqBH,EAAIC,OAXzB,eAWQA,EAXR,yBAYSA,GAZT,4C,uFAeA,SAAeM,GACb,OAAQA,GACN,IAAK,MAAO,MAAO,gBACnB,IAAK,MAAO,MAAO,2BACnB,IAAK,MAAO,MAAO,kBACnB,QAAS,MAAO,Q,cC/ChBC,EAJO,CACTC,WAAY,+CAOD,eAEXC,YAAa,6CACbC,eAAgB,gDAChBC,SAAU,wCACPJ,GCQQK,E,WApBb,aAAe,oBACbC,K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mBC,WACrBA,UAAUC,cAAcC,MAAMtC,MAAK,SAAAuC,GACjCA,EAAaC,kB","file":"static/js/main.ebb74c16.chunk.js","sourcesContent":["class FetchUtil {\r\n // GET, good for re-use!\r\n async get(url, headers = []) {\r\n const req = await fetch(url, {\r\n method: 'GET',\r\n mode: 'cors',\r\n headers,\r\n })\r\n const json = await req.json()\r\n return json\r\n }\r\n\r\n async getFile(url, headers = {}, cors = 'cors') {\r\n const req = await fetch(url, {\r\n method: 'GET',\r\n mode: cors,\r\n headers,\r\n })\r\n const blob = await req.blob()\r\n return blob\r\n }\r\n\r\n // POST, good for re-use!\r\n async post(url, headers, data) {\r\n const req = await fetch(url, {\r\n method: 'POST',\r\n mode: 'cors',\r\n headers,\r\n body: data,\r\n })\r\n const json = await req.json()\r\n return json\r\n }\r\n\r\n // POST, good for re-use!\r\n async postFile(url, headers, data) {\r\n const req = await fetch(url, {\r\n method: 'POST',\r\n mode: 'cors',\r\n headers,\r\n body: data,\r\n })\r\n if (req.status === 200) {\r\n const blob = await req.blob()\r\n return blob\r\n }\r\n const json = await req.json()\r\n return json\r\n }\r\n\r\n getContentType(format) {\r\n switch (format) {\r\n case 'svg': return 'image/svg+xml'\r\n case 'png': return 'application/octet-stream'\r\n case 'pdf': return 'application/pdf'\r\n default: return ''\r\n }\r\n }\r\n}\r\n\r\nexport default FetchUtil\r\n","const dev = {\r\n jacsQueUrl: \"https://jacs-que.azurewebsites.net/JACS-QUE\"\r\n};\r\n\r\nconst prod = {\r\n jacsQueUrl: \"https://jacs-que.azurewebsites.net/JACS-QUE\"\r\n};\r\n\r\nconst properties = process.env.NODE_ENV === 'production'\r\n ? prod\r\n : dev;\r\n\r\nexport default {\r\n // Add common config values here\r\n generateUrl: 'https://mapexports.jibestream.com/generate',\r\n generateIpsUrl: 'https://mapexports.jibestream.com/generateIPS',\r\n clientId: '047cbf8a-513a-4afe-9a8c-2df5effcf30b',\r\n ...properties\r\n};\r\n","import FetchUtil from '../util/FetchUtil'\r\nimport properties from '../config/settings'\r\n\r\n// Controller for any authorization requests\r\nclass AuthController {\r\n constructor() {\r\n this.fetch = new FetchUtil()\r\n }\r\n\r\n // Authorize user and password for environment\r\n async auth(username, password, host) {\r\n const url = `${host}/JACS/api/auth/token`\r\n const headers = { 'Content-Type': 'application/x-www-form-urlencoded' }\r\n const body = {\r\n client_id: properties.clientId,\r\n grant_type: 'password',\r\n username,\r\n password,\r\n }\r\n const encodedBody = Object.keys(body).map(key => `${encodeURIComponent(key)}=${encodeURIComponent(body[key])}`).join('&')\r\n const authReponse = await this.fetch.post(url, headers, encodedBody)\r\n return authReponse\r\n }\r\n}\r\n\r\nexport default AuthController\r\n","import FetchUtil from '../util/FetchUtil'\r\n\r\n// Controller to retrieve customer level entities from JACS\r\nclass CustomerController {\r\n constructor() {\r\n this.fetch = new FetchUtil()\r\n }\r\n\r\n async getByCustomer(customerId, hostUrl, token, entity) {\r\n const url = `${hostUrl}/JACS/api/customer/${customerId}/${entity}`\r\n const headers = { 'Content-Type': 'application/json', Authorization: `Bearer ${token}` }\r\n const reponse = await this.fetch.get(url, headers)\r\n if (Array.isArray(reponse)) {\r\n return reponse\r\n }\r\n return []\r\n }\r\n}\r\n\r\nexport default CustomerController\r\n","import FetchUtil from '../util/FetchUtil'\r\n\r\n// Controller for retrieving floor data\r\nclass FloorController {\r\n constructor() {\r\n this.fetch = new FetchUtil()\r\n }\r\n\r\n // Get the building id for the specified venue\r\n async getBuildingId(venue, hostUrl, token) {\r\n const url = `${hostUrl}/JACS/api/customer/${venue.customerId}/venue/${venue.id}/building`\r\n const headers = { 'Content-Type': 'application/json', Authorization: `Bearer ${token}` }\r\n const response = await this.fetch.get(url, headers)\r\n if (Array.isArray(response) && response.length) {\r\n return response[0].id\r\n }\r\n return null\r\n }\r\n\r\n // Get all floors in a venue, return an empty array if no floors\r\n async getByVenue(venue, hostUrl, token) {\r\n const buildingId = await this.getBuildingId(venue, hostUrl, token)\r\n if (!buildingId) return []\r\n const url = `${hostUrl}/JACS/api/customer/${venue.customerId}/venue/${venue.id}/building/${buildingId}/floor`\r\n const headers = { 'Content-Type': 'application/json', Authorization: `Bearer ${token}` }\r\n const response = await this.fetch.get(url, headers)\r\n if (Array.isArray(response)) {\r\n return response\r\n }\r\n return []\r\n }\r\n}\r\n\r\nexport default FloorController\r\n","import React, { Component } from 'react'\r\nimport TextField from '@material-ui/core/TextField'\r\nimport Button from '@material-ui/core/Button'\r\nimport * as jwtDecode from 'jwt-decode'\r\nimport CircularProgress from '@material-ui/core/CircularProgress'\r\nimport PropTypes from 'prop-types'\r\nimport AuthController from '../controller/AuthController'\r\nimport CustomerController from '../controller/CustomerController'\r\nimport FloorController from '../controller/FloorController'\r\n\r\nimport './css/LoginParams.css'\r\n\r\nclass LoginParams extends Component {\r\n constructor(props) {\r\n super(props)\r\n this.handleChange = this.handleChange.bind(this)\r\n this.authorize = this.authorize.bind(this)\r\n this.authController = new AuthController()\r\n this.customerController = new CustomerController()\r\n this.floorController = new FloorController()\r\n this.state = { username: '', password: '', hostUrl: 'https://api.jibestream.com', errorMessage: '', loginClick: false }\r\n }\r\n\r\n handleChange(event) {\r\n if (event.target.id === 'username') this.setState({ username: event.target.value })\r\n if (event.target.id === 'password') this.setState({ password: event.target.value })\r\n if (event.target.id === 'hostUrl') this.setState({ hostUrl: event.target.value })\r\n }\r\n\r\n // Call the auth controller and authorize based on the user inputted data\r\n async authorize() {\r\n const { username, password, hostUrl } = this.state\r\n this.setState({ errorMessage: '', loginClick: true })\r\n const auth = await this.authController.auth(username, password, hostUrl)\r\n if (auth.access_token) {\r\n const customerId = jwtDecode(auth.access_token).cid\r\n const clients = await this.customerController.getByCustomer(customerId, hostUrl, auth.access_token, 'app')\r\n const templates = await this.customerController.getByCustomer(customerId, hostUrl, auth.access_token, 'map-template')\r\n const venues = await this.customerController.getByCustomer(customerId, hostUrl, auth.access_token, 'venue')\r\n venues.forEach(v => v.key = `${v.id}-${v.name}`)\r\n const initFloors = await this.floorController.getByVenue(venues[0],\r\n hostUrl, auth.access_token)\r\n const sdkClients = clients.filter(c => c.sdkCredentials)\r\n this.props.onLoginClick(auth, hostUrl, sdkClients, venues, initFloors, templates)\r\n } else {\r\n this.setState({ errorMessage: 'Invalid Username or Password', loginClick: false })\r\n }\r\n }\r\n\r\n render() {\r\n const inputProps = { style: { color: 'white' } }\r\n const inputLabelProps = { shrink: true, style: { color: 'white' } }\r\n return (\r\n
{this.state.exportMessage}
\r\n